{"idx": 0, "target": 0, "func": "static int get_zbin_mode_boost ( const MB_MODE_INFO * mbmi , int enabled ) {\n if ( enabled ) {\n if ( is_inter_block ( mbmi ) ) {\n if ( mbmi -> mode == ZEROMV ) {\n return mbmi -> ref_frame [ 0 ] != LAST_FRAME ? GF_ZEROMV_ZBIN_BOOST : LF_ZEROMV_ZBIN_BOOST ;\n }\n else {\n return mbmi -> sb_type < BLOCK_8X8 ? SPLIT_MV_ZBIN_BOOST : MV_ZBIN_BOOST ;\n }\n }\n else {\n return INTRA_ZBIN_BOOST ;\n }\n }\n else {\n return 0 ;\n }\n }"}
{"idx": 1, "target": 0, "func": "static int SpoolssGetPrinter_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ;\n BUFFER buffer ;\n gint16 level = GPOINTER_TO_INT ( dcv -> se_data ) ;\n proto_item * item = NULL ;\n proto_tree * subtree = NULL ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", level %d\" , level ) ;\n offset = dissect_spoolss_buffer ( tvb , offset , pinfo , tree , di , drep , & buffer ) ;\n if ( buffer . tvb ) {\n subtree = proto_tree_add_subtree_format ( buffer . tree , buffer . tvb , 0 , - 1 , ett_PRINTER_INFO , & item , \"Print info level %d\" , level ) ;\n switch ( level ) {\n case 0 : dissect_PRINTER_INFO_0 ( buffer . tvb , 0 , pinfo , subtree , di , drep ) ;\n break ;\n case 1 : dissect_PRINTER_INFO_1 ( buffer . tvb , 0 , pinfo , subtree , di , drep ) ;\n break ;\n case 2 : dissect_PRINTER_INFO_2 ( buffer . tvb , 0 , pinfo , subtree , di , drep ) ;\n break ;\n case 3 : dissect_PRINTER_INFO_3 ( buffer . tvb , 0 , pinfo , subtree , di , drep ) ;\n break ;\n case 7 : dissect_PRINTER_INFO_7 ( buffer . tvb , 0 , pinfo , subtree , di , drep ) ;\n break ;\n default : expert_add_info ( pinfo , item , & ei_printer_info_level ) ;\n break ;\n }\n }\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_needed , NULL ) ;\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 2, "target": 0, "func": "PKCS8_PRIV_KEY_INFO * d2i_PKCS8_PRIV_KEY_INFO_fp ( FILE * fp , PKCS8_PRIV_KEY_INFO * * p8inf ) {\n return ASN1_d2i_fp_of ( PKCS8_PRIV_KEY_INFO , PKCS8_PRIV_KEY_INFO_new , d2i_PKCS8_PRIV_KEY_INFO , fp , p8inf ) ;\n }"}
{"idx": 3, "target": 0, "func": "int i2d_PKCS7_bio ( BIO * bp , PKCS7 * p7 ) {\n return ASN1_item_i2d_bio ( ASN1_ITEM_rptr ( PKCS7 ) , bp , p7 ) ;\n }"}
{"idx": 4, "target": 0, "func": "static PyObject * string_mod ( PyObject * v , PyObject * w ) {\n if ( ! PyString_Check ( v ) ) {\n Py_INCREF ( Py_NotImplemented ) ;\n return Py_NotImplemented ;\n }\n return PyString_Format ( v , w ) ;\n }"}
{"idx": 5, "target": 0, "func": "int64_t cpu_get_icount ( void ) {\n int64_t icount ;\n CPUState * cpu = current_cpu ;\n icount = qemu_icount ;\n if ( cpu ) {\n CPUArchState * env = cpu -> env_ptr ;\n if ( ! can_do_io ( env ) ) {\n fprintf ( stderr , \"Bad clock read\\n\" ) ;\n }\n icount -= ( env -> icount_decr . u16 . low + env -> icount_extra ) ;\n }\n return qemu_icount_bias + ( icount << icount_time_shift ) ;\n }"}
{"idx": 6, "target": 0, "func": "static void dtap_mm_imsi_det_ind ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_TRUE ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_COMMON , DE_MS_CM_1 , NULL ) ;\n ELEM_MAND_LV ( GSM_A_PDU_TYPE_COMMON , DE_MID , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 7, "target": 0, "func": "static int dissect_h245_EscrowData ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_EscrowData , EscrowData_sequence ) ;\n return offset ;\n }"}
{"idx": 8, "target": 0, "func": "void var_set_int ( const char * name , int value ) {\n char buf [ 21 ] ;\n my_snprintf ( buf , sizeof ( buf ) , \"%d\" , value ) ;\n var_set_string ( name , buf ) ;\n }"}
{"idx": 9, "target": 0, "func": "int16_t vp9_dc_quant ( int qindex , int delta , vpx_bit_depth_t bit_depth ) {\n # if CONFIG_VP9_HIGHBITDEPTH switch ( bit_depth ) {\n case VPX_BITS_8 : return dc_qlookup [ clamp ( qindex + delta , 0 , MAXQ ) ] ;\n case VPX_BITS_10 : return dc_qlookup_10 [ clamp ( qindex + delta , 0 , MAXQ ) ] ;\n case VPX_BITS_12 : return dc_qlookup_12 [ clamp ( qindex + delta , 0 , MAXQ ) ] ;\n default : assert ( 0 && \"bit_depth should be VPX_BITS_8, VPX_BITS_10 or VPX_BITS_12\" ) ;\n return - 1 ;\n }\n # else ( void ) bit_depth ;\n return dc_qlookup [ clamp ( qindex + delta , 0 , MAXQ ) ] ;\n # endif }"}
{"idx": 10, "target": 0, "func": "GType hb_gobject_ ## name ## _get_type ( void ) \\ {\n static gsize type_id = 0 ;\n if ( g_once_init_enter ( & type_id ) ) {\n GType id = g_boxed_type_register_static ( g_intern_static_string ( \"hb_\" # name \"_t\" ) , ( GBoxedCopyFunc ) copy_func , ( GBoxedFreeFunc ) free_func ) ;\n g_once_init_leave ( & type_id , id ) ;\n }\n return type_id ;\n \\ }\n # define HB_DEFINE_OBJECT_TYPE ( name ) HB_DEFINE_BOXED_TYPE ( name , hb_ ## name ## _reference , hb_ ## name ## _destroy ) ;\n # define HB_DEFINE_VALUE_TYPE ( name ) static hb_ ## name ## _t * _hb_ ## name ## _reference ( const hb_ ## name ## _t * l ) {\n hb_ ## name ## _t * c = ( hb_ ## name ## _t * ) calloc ( 1 , sizeof ( hb_ ## name ## _t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * l ;\n return c ;\n }\n static void _hb_ ## name ## _destroy ( hb_ ## name ## _t * l ) {\n free ( l ) ;\n }\n HB_DEFINE_BOXED_TYPE ( name , _hb_ ## name ## _reference , _hb_ ## name ## _destroy ) ;\n HB_DEFINE_OBJECT_TYPE ( buffer ) HB_DEFINE_OBJECT_TYPE ( blob ) HB_DEFINE_OBJECT_TYPE ( face ) HB_DEFINE_OBJECT_TYPE ( font ) HB_DEFINE_OBJECT_TYPE ( font_funcs ) HB_DEFINE_OBJECT_TYPE ( set )"}
{"idx": 11, "target": 0, "func": "static int dissect_h245_T_rfc2733Mode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_rfc2733Mode , T_rfc2733Mode_sequence ) ;\n return offset ;\n }"}
{"idx": 12, "target": 0, "func": "unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 ) VAR ( 8 , 4 ) SUBPIX_VAR ( 8 , 4 ) SUBPIX_AVG_VAR ( 8 , 4 ) VAR ( 8 , 8 ) SUBPIX_VAR ( 8 , 8 ) SUBPIX_AVG_VAR ( 8 , 8 ) VAR ( 8 , 16 ) SUBPIX_VAR ( 8 , 16 ) SUBPIX_AVG_VAR ( 8 , 16 ) VAR ( 16 , 8 ) SUBPIX_VAR ( 16 , 8 ) SUBPIX_AVG_VAR ( 16 , 8 ) VAR ( 16 , 16 ) SUBPIX_VAR ( 16 , 16 ) SUBPIX_AVG_VAR ( 16 , 16 ) VAR ( 16 , 32 ) SUBPIX_VAR ( 16 , 32 ) SUBPIX_AVG_VAR ( 16 , 32 ) VAR ( 32 , 16 ) SUBPIX_VAR ( 32 , 16 ) SUBPIX_AVG_VAR ( 32 , 16 ) VAR ( 32 , 32 ) SUBPIX_VAR ( 32 , 32 ) SUBPIX_AVG_VAR ( 32 , 32 )"}
{"idx": 13, "target": 0, "func": "static int com_prompt ( String * buffer __attribute__ ( ( unused ) ) , char * line ) {\n char * ptr = strchr ( line , ' ' ) ;\n prompt_counter = 0 ;\n my_free ( current_prompt ) ;\n current_prompt = my_strdup ( ptr ? ptr + 1 : default_prompt , MYF ( MY_WME ) ) ;\n if ( ! ptr ) tee_fprintf ( stdout , \"Returning to default PROMPT of %s\\n\" , default_prompt ) ;\n else tee_fprintf ( stdout , \"PROMPT set to '%s'\\n\" , current_prompt ) ;\n return 0 ;\n }"}
{"idx": 14, "target": 0, "func": "void vp9_encode_sby_pass1 ( MACROBLOCK * x , BLOCK_SIZE bsize ) {\n vp9_subtract_plane ( x , bsize , 0 ) ;\n vp9_foreach_transformed_block_in_plane ( & x -> e_mbd , bsize , 0 , encode_block_pass1 , x ) ;\n }"}
{"idx": 15, "target": 0, "func": "static int dissect_h245_H263Resolution ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_H263Resolution , H263Resolution_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 16, "target": 0, "func": "TEST_F ( NativeBackendLibsecretTest , PSLMatchingPositive ) {\n PasswordForm result ;\n const GURL kMobileURL ( \"http://m.facebook.com/\" ) ;\n EXPECT_TRUE ( CheckCredentialAvailability ( form_facebook_ , kMobileURL , PasswordForm : : SCHEME_HTML , & result ) ) ;\n EXPECT_EQ ( form_facebook_ . origin , result . origin ) ;\n EXPECT_EQ ( form_facebook_ . signon_realm , result . signon_realm ) ;\n }"}
{"idx": 17, "target": 0, "func": "static int dumpglyphs ( SplineFont * sf , struct glyphinfo * gi ) {\n int i ;\n int fixed = gi -> fixed_width ;\n int answer , answered = - 1 ;\n ff_progress_change_stages ( 2 + gi -> strikecnt ) ;\n QuickBlues ( sf , gi -> layer , & gi -> bd ) ;\n ff_progress_next_stage ( ) ;\n if ( ! gi -> onlybitmaps ) {\n if ( sf -> layers [ gi -> layer ] . order2 ) for ( i = 0 ;\n i < sf -> glyphcnt ;\n ++ i ) {\n SplineChar * sc = sf -> glyphs [ i ] ;\n if ( SCWorthOutputting ( sc ) ) if ( ! SCPointsNumberedProperly ( sc , gi -> layer ) ) {\n if ( answered == - 1 && sc -> ttf_instrs_len != 0 ) {\n char * buts [ 5 ] ;\n buts [ 0 ] = _ ( \"_Yes\" ) ;\n buts [ 1 ] = _ ( \"Yes to _All\" ) ;\n buts [ 2 ] = _ ( \"No _to All\" ) ;\n buts [ 3 ] = _ ( \"_No\" ) ;\n buts [ 4 ] = NULL ;\n ff_progress_pause_timer ( ) ;\n answer = ff_ask ( _ ( \"Bad Point Numbering\" ) , ( const char * * ) buts , 0 , 3 , _ ( \"The points in %s are not numbered properly. This means that any instructions will probably move the wrong points and do the wrong thing.\\nWould you like me to remove the instructions?\" ) , sc -> name ) ;\n if ( answer == 1 || answer == 2 ) answered = answer ;\n }\n else answer = answered ;\n if ( answer == 0 ) {\n free ( sc -> ttf_instrs ) ;\n sc -> ttf_instrs = NULL ;\n sc -> ttf_instrs_len = 0 ;\n SCMarkInstrDlgAsChanged ( sc ) ;\n }\n SCNumberPoints ( sc , gi -> layer ) ;\n }\n }\n }\n gi -> maxp -> numGlyphs = gi -> gcnt ;\n gi -> loca = malloc ( ( gi -> maxp -> numGlyphs + 1 ) * sizeof ( uint32 ) ) ;\n gi -> pointcounts = malloc ( ( gi -> maxp -> numGlyphs + 1 ) * sizeof ( int32 ) ) ;\n memset ( gi -> pointcounts , - 1 , ( gi -> maxp -> numGlyphs + 1 ) * sizeof ( int32 ) ) ;\n gi -> next_glyph = 0 ;\n gi -> glyphs = tmpfile ( ) ;\n gi -> hmtx = tmpfile ( ) ;\n if ( sf -> hasvmetrics ) gi -> vmtx = tmpfile ( ) ;\n FigureFullMetricsEnd ( sf , gi , true ) ;\n if ( fixed > 0 ) {\n gi -> lasthwidth = 3 ;\n gi -> hfullcnt = 3 ;\n }\n for ( i = 0 ;\n i < gi -> gcnt ;\n ++ i ) {\n if ( i == 0 ) {\n if ( gi -> bygid [ 0 ] != - 1 && ( fixed <= 0 || sf -> glyphs [ gi -> bygid [ 0 ] ] -> width == fixed ) ) dumpglyph ( sf -> glyphs [ gi -> bygid [ 0 ] ] , gi ) ;\n else dumpmissingglyph ( sf , gi , fixed ) ;\n }\n else if ( i <= 2 && gi -> bygid [ i ] == - 1 ) dumpblankglyph ( gi , sf , fixed ) ;\n else if ( gi -> onlybitmaps ) {\n if ( gi -> bygid [ i ] != - 1 && sf -> glyphs [ gi -> bygid [ i ] ] -> ttf_glyph > 0 ) dumpspace ( sf -> glyphs [ gi -> bygid [ i ] ] , gi ) ;\n }\n else {\n if ( gi -> bygid [ i ] != - 1 && sf -> glyphs [ gi -> bygid [ i ] ] -> ttf_glyph > 0 ) {\n if ( IsTTFRefable ( sf -> glyphs [ gi -> bygid [ i ] ] , gi -> layer ) ) dumpcomposite ( sf -> glyphs [ gi -> bygid [ i ] ] , gi ) ;\n else dumpglyph ( sf -> glyphs [ gi -> bygid [ i ] ] , gi ) ;\n }\n }\n if ( ( ftell ( gi -> glyphs ) & 3 ) != 0 ) {\n if ( ftell ( gi -> glyphs ) & 1 ) putc ( '\\0' , gi -> glyphs ) ;\n if ( ftell ( gi -> glyphs ) & 2 ) putshort ( gi -> glyphs , 0 ) ;\n }\n if ( ! ff_progress_next ( ) ) return ( false ) ;\n }\n gi -> loca [ gi -> next_glyph ] = ftell ( gi -> glyphs ) ;\n gi -> glyph_len = ftell ( gi -> glyphs ) ;\n gi -> hmtxlen = ftell ( gi -> hmtx ) ;\n if ( gi -> hmtxlen & 2 ) putshort ( gi -> hmtx , 0 ) ;\n if ( gi -> loca [ gi -> next_glyph ] & 3 ) {\n for ( i = 4 - ( gi -> loca [ gi -> next_glyph ] & 3 ) ;\n i > 0 ;\n -- i ) putc ( '\\0' , gi -> glyphs ) ;\n }\n if ( sf -> hasvmetrics ) {\n gi -> vmtxlen = ftell ( gi -> vmtx ) ;\n if ( gi -> vmtxlen & 2 ) putshort ( gi -> vmtx , 0 ) ;\n }\n if ( ! sf -> layers [ gi -> layer ] . order2 ) RefigureCompositeMaxPts ( sf , gi ) ;\n free ( gi -> pointcounts ) ;\n return ( true ) ;\n }"}
{"idx": 18, "target": 1, "func": "static int set_and_cost_bmi_mvs ( VP9_COMP * cpi , MACROBLOCKD * xd , int i , PREDICTION_MODE mode , int_mv this_mv [ 2 ] , int_mv frame_mv [ MB_MODE_COUNT ] [ MAX_REF_FRAMES ] , int_mv seg_mvs [ MAX_REF_FRAMES ] , int_mv * best_ref_mv [ 2 ] , const int * mvjcost , int * mvcost [ 2 ] ) {\n MODE_INFO * const mic = xd -> mi [ 0 ] ;\n const MB_MODE_INFO * const mbmi = & mic -> mbmi ;\n int thismvcost = 0 ;\n int idx , idy ;\n const int num_4x4_blocks_wide = num_4x4_blocks_wide_lookup [ mbmi -> sb_type ] ;\n const int num_4x4_blocks_high = num_4x4_blocks_high_lookup [ mbmi -> sb_type ] ;\n const int is_compound = has_second_ref ( mbmi ) ;\n switch ( mode ) {\n case NEWMV : this_mv [ 0 ] . as_int = seg_mvs [ mbmi -> ref_frame [ 0 ] ] . as_int ;\n thismvcost += vp9_mv_bit_cost ( & this_mv [ 0 ] . as_mv , & best_ref_mv [ 0 ] -> as_mv , mvjcost , mvcost , MV_COST_WEIGHT_SUB ) ;\n if ( is_compound ) {\n this_mv [ 1 ] . as_int = seg_mvs [ mbmi -> ref_frame [ 1 ] ] . as_int ;\n thismvcost += vp9_mv_bit_cost ( & this_mv [ 1 ] . as_mv , & best_ref_mv [ 1 ] -> as_mv , mvjcost , mvcost , MV_COST_WEIGHT_SUB ) ;\n }\n break ;\n case NEARMV : case NEARESTMV : this_mv [ 0 ] . as_int = frame_mv [ mode ] [ mbmi -> ref_frame [ 0 ] ] . as_int ;\n if ( is_compound ) this_mv [ 1 ] . as_int = frame_mv [ mode ] [ mbmi -> ref_frame [ 1 ] ] . as_int ;\n break ;\n case ZEROMV : this_mv [ 0 ] . as_int = 0 ;\n if ( is_compound ) this_mv [ 1 ] . as_int = 0 ;\n break ;\n default : break ;\n }\n mic -> bmi [ i ] . as_mv [ 0 ] . as_int = this_mv [ 0 ] . as_int ;\n if ( is_compound ) mic -> bmi [ i ] . as_mv [ 1 ] . as_int = this_mv [ 1 ] . as_int ;\n mic -> bmi [ i ] . as_mode = mode ;\n for ( idy = 0 ;\n idy < num_4x4_blocks_high ;\n ++ idy ) for ( idx = 0 ;\n idx < num_4x4_blocks_wide ;\n ++ idx ) vpx_memcpy ( & mic -> bmi [ i + idy * 2 + idx ] , & mic -> bmi [ i ] , sizeof ( mic -> bmi [ i ] ) ) ;\n return cost_mv_ref ( cpi , mode , mbmi -> mode_context [ mbmi -> ref_frame [ 0 ] ] ) + thismvcost ;\n }"}
{"idx": 19, "target": 0, "func": "static php_uint32 phar_tar_checksum ( char * buf , int len ) {\n php_uint32 sum = 0 ;\n char * end = buf + len ;\n while ( buf != end ) {\n sum += ( unsigned char ) * buf ;\n ++ buf ;\n }\n return sum ;\n }"}
{"idx": 20, "target": 0, "func": "static void imdct_output ( TwinContext * tctx , enum FrameType ftype , int wtype , float * * out ) {\n const ModeTab * mtab = tctx -> mtab ;\n int size1 , size2 ;\n float * prev_buf = tctx -> prev_frame + tctx -> last_block_pos [ 0 ] ;\n int i ;\n for ( i = 0 ;\n i < tctx -> avctx -> channels ;\n i ++ ) {\n imdct_and_window ( tctx , ftype , wtype , tctx -> spectrum + i * mtab -> size , prev_buf + 2 * i * mtab -> size , i ) ;\n }\n if ( ! out ) return ;\n size2 = tctx -> last_block_pos [ 0 ] ;\n size1 = mtab -> size - size2 ;\n memcpy ( & out [ 0 ] [ 0 ] , prev_buf , size1 * sizeof ( out [ 0 ] [ 0 ] ) ) ;\n memcpy ( & out [ 0 ] [ size1 ] , tctx -> curr_frame , size2 * sizeof ( out [ 0 ] [ 0 ] ) ) ;\n if ( tctx -> avctx -> channels == 2 ) {\n memcpy ( & out [ 1 ] [ 0 ] , & prev_buf [ 2 * mtab -> size ] , size1 * sizeof ( out [ 1 ] [ 0 ] ) ) ;\n memcpy ( & out [ 1 ] [ size1 ] , & tctx -> curr_frame [ 2 * mtab -> size ] , size2 * sizeof ( out [ 1 ] [ 0 ] ) ) ;\n tctx -> fdsp . butterflies_float ( out [ 0 ] , out [ 1 ] , mtab -> size ) ;\n }\n }"}
{"idx": 21, "target": 0, "func": "static int dissect_h245_KeyProtectionMethod ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_KeyProtectionMethod , KeyProtectionMethod_sequence ) ;\n return offset ;\n }"}
{"idx": 22, "target": 0, "func": "static int dissect_h245_SEQUENCE_OF_MultiplePayloadStreamElementMode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h245_SEQUENCE_OF_MultiplePayloadStreamElementMode , SEQUENCE_OF_MultiplePayloadStreamElementMode_sequence_of ) ;\n return offset ;\n }"}
{"idx": 23, "target": 0, "func": "static int dissect_h225_ConferenceList ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_ConferenceList , ConferenceList_sequence ) ;\n return offset ;\n }"}
{"idx": 24, "target": 0, "func": "static void yy_symbol_value_print ( FILE * yyoutput , int yytype , YYSTYPE const * const yyvaluep ) # else static void yy_symbol_value_print ( yyoutput , yytype , yyvaluep ) FILE * yyoutput ;\n int yytype ;\n YYSTYPE const * const yyvaluep ;\n # endif {\n if ( ! yyvaluep ) return ;\n # ifdef YYPRINT if ( yytype < YYNTOKENS ) YYPRINT ( yyoutput , yytoknum [ yytype ] , * yyvaluep ) ;\n # else YYUSE ( yyoutput ) ;\n # endif switch ( yytype ) {\n default : break ;\n }\n }"}
{"idx": 25, "target": 0, "func": "void var_query_set ( VAR * var , const char * query , const char * * query_end ) {\n char * end = ( char * ) ( ( query_end && * query_end ) ? * query_end : query + strlen ( query ) ) ;\n MYSQL_RES * res ;\n MYSQL_ROW row ;\n MYSQL * mysql = cur_con -> mysql ;\n DYNAMIC_STRING ds_query ;\n DBUG_ENTER ( \"var_query_set\" ) ;\n LINT_INIT ( res ) ;\n if ( ! mysql ) {\n struct st_command command ;\n memset ( & command , 0 , sizeof ( command ) ) ;\n command . query = ( char * ) query ;\n command . first_word_len = ( * query_end - query ) ;\n command . first_argument = command . query + command . first_word_len ;\n command . end = ( char * ) * query_end ;\n command . abort_on_error = 1 ;\n handle_no_active_connection ( & command , cur_con , & ds_res ) ;\n DBUG_VOID_RETURN ;\n }\n while ( end > query && * end != '`' ) {\n if ( * end && ( * end != ' ' && * end != '\\t' && * end != '\\n' && * end != ')' ) ) die ( \"Spurious text after `query` expression\" ) ;\n -- end ;\n }\n if ( query == end ) die ( \"Syntax error in query, missing '`'\" ) ;\n ++ query ;\n init_dynamic_string ( & ds_query , 0 , ( end - query ) + 32 , 256 ) ;\n do_eval ( & ds_query , query , end , FALSE ) ;\n if ( mysql_real_query ( mysql , ds_query . str , ds_query . length ) ) {\n handle_error ( curr_command , mysql_errno ( mysql ) , mysql_error ( mysql ) , mysql_sqlstate ( mysql ) , & ds_res ) ;\n dynstr_free ( & ds_query ) ;\n eval_expr ( var , \"\" , 0 ) ;\n DBUG_VOID_RETURN ;\n }\n if ( ! ( res = mysql_store_result ( mysql ) ) ) {\n report_or_die ( \"Query '%s' didn't return a result set\" , ds_query . str ) ;\n dynstr_free ( & ds_query ) ;\n eval_expr ( var , \"\" , 0 ) ;\n return ;\n }\n dynstr_free ( & ds_query ) ;\n if ( ( row = mysql_fetch_row ( res ) ) && row [ 0 ] ) {\n DYNAMIC_STRING result ;\n uint i ;\n ulong * lengths ;\n init_dynamic_string ( & result , \"\" , 512 , 512 ) ;\n lengths = mysql_fetch_lengths ( res ) ;\n for ( i = 0 ;\n i < mysql_num_fields ( res ) ;\n i ++ ) {\n if ( row [ i ] ) {\n char * val = row [ i ] ;\n int len = lengths [ i ] ;\n if ( glob_replace_regex ) {\n if ( ! multi_reg_replace ( glob_replace_regex , ( char * ) val ) ) {\n val = glob_replace_regex -> buf ;\n len = strlen ( val ) ;\n }\n }\n if ( glob_replace ) replace_strings_append ( glob_replace , & result , val , len ) ;\n else dynstr_append_mem ( & result , val , len ) ;\n }\n dynstr_append_mem ( & result , \"\\t\" , 1 ) ;\n }\n end = result . str + result . length - 1 ;\n eval_expr ( var , result . str , ( const char * * ) & end , false , false ) ;\n dynstr_free ( & result ) ;\n }\n else eval_expr ( var , \"\" , 0 ) ;\n mysql_free_result ( res ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 26, "target": 0, "func": "static void * spl_ptr_llist_shift ( spl_ptr_llist * llist TSRMLS_DC ) {\n void * data ;\n spl_ptr_llist_element * head = llist -> head ;\n if ( head == NULL ) {\n return NULL ;\n }\n if ( head -> next ) {\n head -> next -> prev = NULL ;\n }\n else {\n llist -> tail = NULL ;\n }\n llist -> head = head -> next ;\n llist -> count -- ;\n data = head -> data ;\n if ( llist -> dtor ) {\n llist -> dtor ( head TSRMLS_CC ) ;\n }\n head -> data = NULL ;\n SPL_LLIST_DELREF ( head ) ;\n return data ;\n }"}
{"idx": 27, "target": 0, "func": "static void check_initial_width ( VP9_COMP * cpi , int subsampling_x , int subsampling_y ) {\n VP9_COMMON * const cm = & cpi -> common ;\n if ( ! cpi -> initial_width ) {\n cm -> subsampling_x = subsampling_x ;\n cm -> subsampling_y = subsampling_y ;\n alloc_raw_frame_buffers ( cpi ) ;\n alloc_ref_frame_buffers ( cpi ) ;\n alloc_util_frame_buffers ( cpi ) ;\n init_motion_estimation ( cpi ) ;\n cpi -> initial_width = cm -> width ;\n cpi -> initial_height = cm -> height ;\n }\n }"}
{"idx": 28, "target": 0, "func": "int http_hdr_print ( HdrHeap * heap , HTTPHdrImpl * hdr , char * buf , int bufsize , int * bufindex , int * dumpoffset ) {\n # define TRY ( x ) if ( ! x ) return 0 int tmplen , hdrstat ;\n char tmpbuf [ 32 ] ;\n char * p ;\n ink_assert ( ( hdr -> m_polarity == HTTP_TYPE_REQUEST ) || ( hdr -> m_polarity == HTTP_TYPE_RESPONSE ) ) ;\n if ( hdr -> m_polarity == HTTP_TYPE_REQUEST ) {\n if ( hdr -> u . req . m_ptr_method == nullptr ) {\n return 1 ;\n }\n if ( ( buf != nullptr ) && ( * dumpoffset == 0 ) && ( bufsize - * bufindex >= hdr -> u . req . m_len_method + 1 ) ) {\n p = buf + * bufindex ;\n memcpy ( p , hdr -> u . req . m_ptr_method , hdr -> u . req . m_len_method ) ;\n p += hdr -> u . req . m_len_method ;\n * p ++ = ' ' ;\n * bufindex += hdr -> u . req . m_len_method + 1 ;\n if ( hdr -> u . req . m_url_impl ) {\n TRY ( url_print ( hdr -> u . req . m_url_impl , buf , bufsize , bufindex , dumpoffset ) ) ;\n if ( bufsize - * bufindex >= 1 ) {\n if ( hdr -> u . req . m_method_wks_idx == HTTP_WKSIDX_CONNECT ) {\n * bufindex -= 1 ;\n }\n p = buf + * bufindex ;\n * p ++ = ' ' ;\n * bufindex += 1 ;\n }\n else {\n return 0 ;\n }\n }\n if ( bufsize - * bufindex >= 9 ) {\n http_hdr_version_to_string ( hdr -> m_version , p ) ;\n * bufindex += 9 - 1 ;\n }\n else {\n TRY ( http_version_print ( hdr -> m_version , buf , bufsize , bufindex , dumpoffset ) ) ;\n }\n if ( bufsize - * bufindex >= 2 ) {\n p = buf + * bufindex ;\n * p ++ = '\\r' ;\n * p ++ = '\\n' ;\n * bufindex += 2 ;\n }\n else {\n TRY ( mime_mem_print ( \"\\r\\n\" , 2 , buf , bufsize , bufindex , dumpoffset ) ) ;\n }\n TRY ( mime_hdr_print ( heap , hdr -> m_fields_impl , buf , bufsize , bufindex , dumpoffset ) ) ;\n }\n else {\n TRY ( mime_mem_print ( hdr -> u . req . m_ptr_method , hdr -> u . req . m_len_method , buf , bufsize , bufindex , dumpoffset ) ) ;\n TRY ( mime_mem_print ( \" \" , 1 , buf , bufsize , bufindex , dumpoffset ) ) ;\n if ( hdr -> u . req . m_url_impl ) {\n TRY ( url_print ( hdr -> u . req . m_url_impl , buf , bufsize , bufindex , dumpoffset ) ) ;\n TRY ( mime_mem_print ( \" \" , 1 , buf , bufsize , bufindex , dumpoffset ) ) ;\n }\n TRY ( http_version_print ( hdr -> m_version , buf , bufsize , bufindex , dumpoffset ) ) ;\n TRY ( mime_mem_print ( \"\\r\\n\" , 2 , buf , bufsize , bufindex , dumpoffset ) ) ;\n TRY ( mime_hdr_print ( heap , hdr -> m_fields_impl , buf , bufsize , bufindex , dumpoffset ) ) ;\n }\n }\n else {\n if ( ( buf != nullptr ) && ( * dumpoffset == 0 ) && ( bufsize - * bufindex >= 9 + 6 + 1 ) ) {\n p = buf + * bufindex ;\n http_hdr_version_to_string ( hdr -> m_version , p ) ;\n p += 8 ;\n * p ++ = ' ' ;\n * bufindex += 9 ;\n hdrstat = http_hdr_status_get ( hdr ) ;\n if ( hdrstat == 200 ) {\n * p ++ = '2' ;\n * p ++ = '0' ;\n * p ++ = '0' ;\n tmplen = 3 ;\n }\n else {\n tmplen = mime_format_int ( p , hdrstat , ( bufsize - ( p - buf ) ) ) ;\n ink_assert ( tmplen <= 6 ) ;\n p += tmplen ;\n }\n * p ++ = ' ' ;\n * bufindex += tmplen + 1 ;\n if ( hdr -> u . resp . m_ptr_reason ) {\n TRY ( mime_mem_print ( hdr -> u . resp . m_ptr_reason , hdr -> u . resp . m_len_reason , buf , bufsize , bufindex , dumpoffset ) ) ;\n }\n if ( bufsize - * bufindex >= 2 ) {\n p = buf + * bufindex ;\n * p ++ = '\\r' ;\n * p ++ = '\\n' ;\n * bufindex += 2 ;\n }\n else {\n TRY ( mime_mem_print ( \"\\r\\n\" , 2 , buf , bufsize , bufindex , dumpoffset ) ) ;\n }\n TRY ( mime_hdr_print ( heap , hdr -> m_fields_impl , buf , bufsize , bufindex , dumpoffset ) ) ;\n }\n else {\n TRY ( http_version_print ( hdr -> m_version , buf , bufsize , bufindex , dumpoffset ) ) ;\n TRY ( mime_mem_print ( \" \" , 1 , buf , bufsize , bufindex , dumpoffset ) ) ;\n tmplen = mime_format_int ( tmpbuf , http_hdr_status_get ( hdr ) , sizeof ( tmpbuf ) ) ;\n TRY ( mime_mem_print ( tmpbuf , tmplen , buf , bufsize , bufindex , dumpoffset ) ) ;\n TRY ( mime_mem_print ( \" \" , 1 , buf , bufsize , bufindex , dumpoffset ) ) ;\n if ( hdr -> u . resp . m_ptr_reason ) {\n TRY ( mime_mem_print ( hdr -> u . resp . m_ptr_reason , hdr -> u . resp . m_len_reason , buf , bufsize , bufindex , dumpoffset ) ) ;\n }\n TRY ( mime_mem_print ( \"\\r\\n\" , 2 , buf , bufsize , bufindex , dumpoffset ) ) ;\n TRY ( mime_hdr_print ( heap , hdr -> m_fields_impl , buf , bufsize , bufindex , dumpoffset ) ) ;\n }\n }\n return 1 ;\n # undef TRY }"}
{"idx": 29, "target": 0, "func": "static int read_pgpcrt_cn ( server_rec * s , apr_pool_t * p , gnutls_openpgp_crt_t cert , char * * cert_cn ) {\n int rv = 0 ;\n size_t data_len ;\n _gnutls_log ( debug_log_fp , \"%s: %d\\n\" , __func__ , __LINE__ ) ;\n * cert_cn = NULL ;\n data_len = 0 ;\n rv = gnutls_openpgp_crt_get_name ( cert , 0 , NULL , & data_len ) ;\n if ( rv == GNUTLS_E_SHORT_MEMORY_BUFFER && data_len > 1 ) {\n * cert_cn = apr_palloc ( p , data_len ) ;\n rv = gnutls_openpgp_crt_get_name ( cert , 0 , * cert_cn , & data_len ) ;\n }\n else {\n ap_log_error ( APLOG_MARK , APLOG_INFO , 0 , s , \"No name found in PGP certificate for '%s:%d'.\" , s -> server_hostname , s -> port ) ;\n }\n return rv ;\n }"}
{"idx": 30, "target": 0, "func": "static int dissect_btgatt_microbit_client_requirements ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , void * data ) {\n btatt_data_t * att_data = ( btatt_data_t * ) data ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) return - 1 ;\n proto_tree_add_item ( tree , hf_gatt_microbit_client_requirements , tvb , 0 , tvb_captured_length ( tvb ) , ENC_NA ) ;\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 31, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , SameUrlNavigation ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : FIRST_LAYOUT ) ;\n waiter -> AddPageExpectation ( TimingField : : LOAD_EVENT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/title1.html\" ) ) ;\n waiter -> Wait ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramDomContentLoaded , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramLoad , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramFirstLayout , 1 ) ;\n waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : FIRST_LAYOUT ) ;\n waiter -> AddPageExpectation ( TimingField : : LOAD_EVENT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/title1.html\" ) ) ;\n waiter -> Wait ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramDomContentLoaded , 2 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramLoad , 2 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramFirstLayout , 2 ) ;\n }"}
{"idx": 32, "target": 0, "func": "TEST ( URLFixerTest , FixupFile ) {\n base : : ScopedTempDir temp_dir_ ;\n ASSERT_TRUE ( temp_dir_ . CreateUniqueTempDir ( ) ) ;\n base : : FilePath original ;\n ASSERT_TRUE ( MakeTempFile ( temp_dir_ . GetPath ( ) , base : : FilePath ( FILE_PATH_LITERAL ( \"url fixer upper existing file.txt\" ) ) , & original ) ) ;\n GURL golden ( net : : FilePathToFileURL ( original ) ) ;\n GURL fixedup ( url_formatter : : FixupURL ( original . AsUTF8Unsafe ( ) , std : : string ( ) ) ) ;\n EXPECT_EQ ( golden , fixedup ) ;\n # if defined ( OS_WIN ) std : : string cur ( base : : WideToUTF8 ( original . value ( ) ) ) ;\n EXPECT_EQ ( ':' , cur [ 1 ] ) ;\n cur [ 1 ] = '|' ;\n EXPECT_EQ ( golden , url_formatter : : FixupURL ( cur , std : : string ( ) ) ) ;\n FixupCase cases [ ] = {\n {\n \"c:\\\\Non-existent%20file.txt\" , \"file:///C:/Non-existent%2520file.txt\" }\n , {\n \"\\\\\\\\NonexistentHost\\\\foo\\\\bar.txt\" , \"file:/onexistenthost/foo/bar.txt\" }\n , {\n \"//NonexistentHost\\\\foo/bar.txt\" , \"http:/onexistenthost/foo/bar.txt\" }\n , {\n \"file:///C:/foo/bar\" , \"file:///C:/foo/bar\" }\n , {\n \"file://C:/foo/bar\" , \"file:///C:/foo/bar\" }\n , {\n \"file:c:\" , \"file:///C:/\" }\n , {\n \"file:c:WINDOWS\" , \"file:///C:/WINDOWS\" }\n , {\n \"file:c|Program Files\" , \"file:///C:/Program%20Files\" }\n , {\n \"file:/file\" , \"file://file/\" }\n , {\n \"file:////////c:\\\\foo\" , \"file:///C:/foo\" }\n , {\n \"file://server/folder/file\" , \"file://server/folder/file\" }\n , }\n ;\n # elif defined ( OS_POSIX ) # if defined ( OS_MACOSX ) # define HOME \"/Users/\" # else # define HOME \"/home/\" # endif url_formatter : : home_directory_override = \"/foo\" ;\n FixupCase cases [ ] = {\n {\n \"/A%20non-existent file.txt\" , \"file:///A%2520non-existent%20file.txt\" }\n , {\n \"/\" , \"file:///\" }\n , {\n \"~\" , \"file:///foo\" }\n , {\n \"~/bar\" , \"file:///foo/bar\" }\n , {\n \"~foo\" , \"file://\" HOME \"foo\" }\n , {\n \"~x/blah\" , \"file://\" HOME \"x/blah\" }\n , }\n ;\n # endif for ( size_t i = 0 ;\n i < arraysize ( cases ) ;\n i ++ ) {\n EXPECT_EQ ( cases [ i ] . output , url_formatter : : FixupURL ( cases [ i ] . input , std : : string ( ) ) . possibly_invalid_spec ( ) ) ;\n }\n EXPECT_TRUE ( base : : DeleteFile ( original , false ) ) ;\n }"}
{"idx": 33, "target": 0, "func": "void vp9_init_second_pass ( VP9_COMP * cpi ) {\n SVC * const svc = & cpi -> svc ;\n const VP9EncoderConfig * const oxcf = & cpi -> oxcf ;\n const int is_two_pass_svc = ( svc -> number_spatial_layers > 1 ) || ( svc -> number_temporal_layers > 1 ) ;\n TWO_PASS * const twopass = is_two_pass_svc ? & svc -> layer_context [ svc -> spatial_layer_id ] . twopass : & cpi -> twopass ;\n double frame_rate ;\n FIRSTPASS_STATS * stats ;\n zero_stats ( & twopass -> total_stats ) ;\n zero_stats ( & twopass -> total_left_stats ) ;\n if ( ! twopass -> stats_in_end ) return ;\n stats = & twopass -> total_stats ;\n * stats = * twopass -> stats_in_end ;\n twopass -> total_left_stats = * stats ;\n frame_rate = 10000000.0 * stats -> count / stats -> duration ;\n if ( is_two_pass_svc ) {\n vp9_update_spatial_layer_framerate ( cpi , frame_rate ) ;\n twopass -> bits_left = ( int64_t ) ( stats -> duration * svc -> layer_context [ svc -> spatial_layer_id ] . target_bandwidth / 10000000.0 ) ;\n }\n else {\n vp9_new_framerate ( cpi , frame_rate ) ;\n twopass -> bits_left = ( int64_t ) ( stats -> duration * oxcf -> target_bandwidth / 10000000.0 ) ;\n }\n twopass -> sr_update_lag = 1 ;\n {\n const double avg_error = stats -> coded_error / DOUBLE_DIVIDE_CHECK ( stats -> count ) ;\n const FIRSTPASS_STATS * s = twopass -> stats_in ;\n double modified_error_total = 0.0 ;\n twopass -> modified_error_min = ( avg_error * oxcf -> two_pass_vbrmin_section ) / 100 ;\n twopass -> modified_error_max = ( avg_error * oxcf -> two_pass_vbrmax_section ) / 100 ;\n while ( s < twopass -> stats_in_end ) {\n modified_error_total += calculate_modified_err ( twopass , oxcf , s ) ;\n ++ s ;\n }\n twopass -> modified_error_left = modified_error_total ;\n }\n cpi -> rc . vbr_bits_off_target = 0 ;\n twopass -> kf_zeromotion_pct = 100 ;\n twopass -> last_kfgroup_zeromotion_pct = 100 ;\n }"}
{"idx": 34, "target": 0, "func": "static int parse_CBaseStorageVariant ( tvbuff_t * tvb , packet_info * pinfo , int offset , proto_tree * parent_tree , proto_tree * pad_tree _U_ , struct CBaseStorageVariant * value , const char * text ) {\n int i , len ;\n proto_item * ti , * ti_type , * ti_val ;\n proto_tree * tree , * tr ;\n enum vType highType ;\n ZERO_STRUCT ( * value ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CBaseStorageVariant , & ti , text ) ;\n value -> vType = tvb_get_letohs ( tvb , offset ) ;\n value -> type = vType_get_type ( value -> vType & 0xFF ) ;\n if ( value -> type == NULL ) {\n ti_type = proto_tree_add_string ( tree , hf_mswsp_cbasestorvariant_vtype , tvb , offset , 2 , \"Unknown CBaseStorageVariant type\" ) ;\n offset += 2 ;\n expert_add_info ( pinfo , ti_type , & ei_mswsp_invalid_variant_type ) ;\n THROW_MESSAGE ( ReportedBoundsError , \"Unknown CBaseStorageVariant type\" ) ;\n return offset ;\n }\n ti_type = proto_tree_add_string ( tree , hf_mswsp_cbasestorvariant_vtype , tvb , offset , 2 , value -> type -> str ) ;\n offset += 2 ;\n value -> vData1 = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_cbasestorvariant_vdata1 , tvb , offset , 1 , value -> vData1 ) ;\n offset += 1 ;\n value -> vData2 = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_cbasestorvariant_vdata2 , tvb , offset , 1 , value -> vData2 ) ;\n offset += 1 ;\n highType = ( enum vType ) ( value -> vType & 0xFF00 ) ;\n ti_val = proto_tree_add_string ( tree , hf_mswsp_cbasestorvariant_vvalue , tvb , offset , 0 , \"\" ) ;\n switch ( highType ) {\n case VT_EMPTY : DISSECTOR_ASSERT_HINT ( value -> type -> tvb_get != 0 , \"type that we don't know yet how to handle, please submit a bug with trace\" ) ;\n len = value -> type -> tvb_get ( tvb , offset , & value -> vValue . vt_single ) ;\n offset += len ;\n break ;\n case VT_VECTOR : proto_item_append_text ( ti_type , \"|VT_VECTOR\" ) ;\n tr = proto_item_add_subtree ( ti_val , ett_CBaseStorageVariant_Vector ) ;\n len = vvalue_tvb_vector ( tvb , offset , & value -> vValue . vt_vector , value -> type ) ;\n proto_tree_add_uint ( tr , hf_mswsp_cbasestorvariant_num , tvb , offset , 4 , value -> vValue . vt_vector . len ) ;\n offset += len ;\n break ;\n case VT_ARRAY : {\n guint16 cDims , fFeatures ;\n guint32 cbElements , cElements , lLbound ;\n int num = 1 ;\n proto_item_append_text ( ti_type , \"|VT_ARRAY\" ) ;\n tr = proto_item_add_subtree ( ti_val , ett_CBaseStorageVariant_Array ) ;\n cDims = tvb_get_letohs ( tvb , offset ) ;\n proto_tree_add_uint ( tr , hf_mswsp_cbasestorvariant_cdims , tvb , offset , 2 , cDims ) ;\n offset += 2 ;\n fFeatures = tvb_get_letohs ( tvb , offset ) ;\n proto_tree_add_uint ( tr , hf_mswsp_cbasestorvariant_ffeatures , tvb , offset , 2 , fFeatures ) ;\n offset += 2 ;\n cbElements = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tr , hf_mswsp_cbasestorvariant_cbelements , tvb , offset , 4 , cbElements ) ;\n offset += 4 ;\n for ( i = 0 ;\n i < cDims ;\n i ++ ) {\n cElements = tvb_get_letohl ( tvb , offset ) ;\n lLbound = tvb_get_letohl ( tvb , offset + 4 ) ;\n proto_tree_add_string_format ( tr , hf_mswsp_cbasestorvariant_rgsabound , tvb , offset , 8 , \"\" , \"Rgsabound[%d]: (%d:%d)\" , i , cElements , lLbound ) ;\n offset += 8 ;\n num *= cElements ;\n }\n len = vvalue_tvb_vector_internal ( tvb , offset , & value -> vValue . vt_array . vData , value -> type , num ) ;\n offset += len ;\n break ;\n }\n default : proto_item_append_text ( ti_type , \"|0x%x\" , highType ) ;\n }\n proto_item_set_end ( ti , tvb , offset ) ;\n proto_item_set_end ( ti_val , tvb , offset ) ;\n proto_item_append_text ( ti_val , \" %s\" , str_CBaseStorageVariant ( value , FALSE ) ) ;\n proto_item_append_text ( ti , \" %s\" , str_CBaseStorageVariant ( value , TRUE ) ) ;\n return offset ;\n }"}
{"idx": 35, "target": 0, "func": "int dissect_ber_constrained_integer64 ( gboolean implicit_tag , asn1_ctx_t * actx , proto_tree * tree , tvbuff_t * tvb , int offset , gint64 min_len , gint64 max_len , gint hf_id , gint64 * value ) {\n gint64 val ;\n offset = dissect_ber_integer64 ( implicit_tag , actx , tree , tvb , offset , hf_id , & val ) ;\n if ( value ) {\n * value = val ;\n }\n ber_check_value64 ( val , min_len , max_len , actx , actx -> created_item ) ;\n return offset ;\n }"}
{"idx": 36, "target": 1, "func": "static void hscroll ( AVCodecContext * avctx ) {\n AnsiContext * s = avctx -> priv_data ;\n int i ;\n if ( s -> y < avctx -> height - s -> font_height ) {\n s -> y += s -> font_height ;\n return ;\n }\n i = 0 ;\n for ( ;\n i < avctx -> height - s -> font_height ;\n i ++ ) memcpy ( s -> frame . data [ 0 ] + i * s -> frame . linesize [ 0 ] , s -> frame . data [ 0 ] + ( i + s -> font_height ) * s -> frame . linesize [ 0 ] , avctx -> width ) ;\n for ( ;\n i < avctx -> height ;\n i ++ ) memset ( s -> frame . data [ 0 ] + i * s -> frame . linesize [ 0 ] , DEFAULT_BG_COLOR , avctx -> width ) ;\n }"}
{"idx": 37, "target": 0, "func": "int EvaluatePS ( char * str , real * stack , int size ) {\n EntityChar ec ;\n RetStack rs ;\n memset ( & ec , '\\0' , sizeof ( ec ) ) ;\n memset ( & rs , '\\0' , sizeof ( rs ) ) ;\n rs . max = size ;\n rs . stack = stack ;\n InterpretPS ( NULL , str , & ec , & rs ) ;\n return ( rs . cnt ) ;\n }"}
{"idx": 38, "target": 0, "func": "static void * pool_calloc ( size_t count , size_t size ) {\n size_t len = count * size ;\n void * r = pool_alloc ( len ) ;\n memset ( r , 0 , len ) ;\n return r ;\n }"}
{"idx": 39, "target": 0, "func": "void luaD_reallocCI ( lua_State * L , int newsize ) {\n CallInfo * oldci = L -> base_ci ;\n luaM_reallocvector ( L , L -> base_ci , L -> size_ci , newsize , CallInfo ) ;\n L -> size_ci = newsize ;\n L -> ci = ( L -> ci - oldci ) + L -> base_ci ;\n L -> end_ci = L -> base_ci + L -> size_ci - 1 ;\n }"}
{"idx": 40, "target": 0, "func": "static void intra_pred_plane ( uint8_t * d , uint8_t * top , uint8_t * left , int stride ) {\n int x , y , ia ;\n int ih = 0 ;\n int iv = 0 ;\n uint8_t * cm = ff_cropTbl + MAX_NEG_CROP ;\n for ( x = 0 ;\n x < 4 ;\n x ++ ) {\n ih += ( x + 1 ) * ( top [ 5 + x ] - top [ 3 - x ] ) ;\n iv += ( x + 1 ) * ( left [ 5 + x ] - left [ 3 - x ] ) ;\n }\n ia = ( top [ 8 ] + left [ 8 ] ) << 4 ;\n ih = ( 17 * ih + 16 ) >> 5 ;\n iv = ( 17 * iv + 16 ) >> 5 ;\n for ( y = 0 ;\n y < 8 ;\n y ++ ) for ( x = 0 ;\n x < 8 ;\n x ++ ) d [ y * stride + x ] = cm [ ( ia + ( x - 3 ) * ih + ( y - 3 ) * iv + 16 ) >> 5 ] ;\n }"}
{"idx": 41, "target": 0, "func": "static void set_v8086_seg ( struct kvm_segment * lhs , const SegmentCache * rhs ) {\n lhs -> selector = rhs -> selector ;\n lhs -> base = rhs -> base ;\n lhs -> limit = rhs -> limit ;\n lhs -> type = 3 ;\n lhs -> present = 1 ;\n lhs -> dpl = 3 ;\n lhs -> db = 0 ;\n lhs -> s = 1 ;\n lhs -> l = 0 ;\n lhs -> g = 0 ;\n lhs -> avl = 0 ;\n lhs -> unusable = 0 ;\n }"}
{"idx": 42, "target": 0, "func": "afs_int32 SPR_ListEntries ( struct rx_call * call , afs_int32 flag , afs_int32 startindex , prentries * bulkentries , afs_int32 * nextstartindex ) {\n afs_int32 code ;\n afs_int32 cid = ANONYMOUSID ;\n code = listEntries ( call , flag , startindex , bulkentries , nextstartindex , & cid ) ;\n osi_auditU ( call , PTS_LstEntsEvent , code , AUD_LONG , flag , AUD_END ) ;\n ViceLog ( 125 , ( \"PTS_ListEntries: code %d cid %d flag %d\\n\" , code , cid , flag ) ) ;\n return code ;\n }"}
{"idx": 43, "target": 0, "func": "static vpx_codec_err_t ctrl_use_reference ( vpx_codec_alg_priv_t * ctx , va_list args ) {\n const int reference_flag = va_arg ( args , int ) ;\n vp9_use_as_reference ( ctx -> cpi , reference_flag ) ;\n return VPX_CODEC_OK ;\n }"}
{"idx": 44, "target": 0, "func": "extern int name ( int ) __THROW __exctype ( isalnum ) ;\n __exctype ( isalpha ) ;\n __exctype ( iscntrl ) ;\n __exctype ( isdigit ) ;\n __exctype ( islower ) ;\n __exctype ( isgraph ) ;\n __exctype ( isprint ) ;\n __exctype ( ispunct ) ;\n __exctype ( isspace ) ;\n __exctype ( isupper ) ;\n __exctype ( isxdigit ) ;\n extern int tolower ( int __c ) __THROW ;\n extern int toupper ( int __c ) __THROW ;\n # ifdef __USE_ISOC99 __exctype ( isblank )"}
{"idx": 45, "target": 0, "func": "void TSStatIntIncrement ( int id , TSMgmtInt amount ) {\n sdk_assert ( sdk_sanity_check_stat_id ( id ) == TS_SUCCESS ) ;\n RecIncrRawStat ( api_rsb , nullptr , id , amount ) ;\n }"}
{"idx": 46, "target": 0, "func": "static int proc_unlinkurb ( struct usb_dev_state * ps , void __user * arg ) {\n struct urb * urb ;\n struct async * as ;\n unsigned long flags ;\n spin_lock_irqsave ( & ps -> lock , flags ) ;\n as = async_getpending ( ps , arg ) ;\n if ( ! as ) {\n spin_unlock_irqrestore ( & ps -> lock , flags ) ;\n return - EINVAL ;\n }\n urb = as -> urb ;\n usb_get_urb ( urb ) ;\n spin_unlock_irqrestore ( & ps -> lock , flags ) ;\n usb_kill_urb ( urb ) ;\n usb_put_urb ( urb ) ;\n return 0 ;\n }"}
{"idx": 47, "target": 0, "func": "static int decode_argb_frame ( CLLCContext * ctx , GetBitContext * gb , AVFrame * pic ) {\n AVCodecContext * avctx = ctx -> avctx ;\n uint8_t * dst ;\n int pred [ 4 ] ;\n int ret ;\n int i , j ;\n VLC vlc [ 4 ] ;\n pred [ 0 ] = 0 ;\n pred [ 1 ] = 0x80 ;\n pred [ 2 ] = 0x80 ;\n pred [ 3 ] = 0x80 ;\n dst = pic -> data [ 0 ] ;\n skip_bits ( gb , 16 ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n ret = read_code_table ( ctx , gb , & vlc [ i ] ) ;\n if ( ret < 0 ) {\n for ( j = 0 ;\n j <= i ;\n j ++ ) ff_free_vlc ( & vlc [ j ] ) ;\n av_log ( ctx -> avctx , AV_LOG_ERROR , \"Could not read code table %d.\\n\" , i ) ;\n return ret ;\n }\n }\n for ( i = 0 ;\n i < avctx -> height ;\n i ++ ) {\n read_argb_line ( ctx , gb , pred , vlc , dst ) ;\n dst += pic -> linesize [ 0 ] ;\n }\n for ( i = 0 ;\n i < 4 ;\n i ++ ) ff_free_vlc ( & vlc [ i ] ) ;\n return 0 ;\n }"}
{"idx": 48, "target": 0, "func": "static void pk_transaction_class_init ( PkTransactionClass * klass ) {\n GObjectClass * object_class = G_OBJECT_CLASS ( klass ) ;\n object_class -> dispose = pk_transaction_dispose ;\n object_class -> finalize = pk_transaction_finalize ;\n signals [ SIGNAL_FINISHED ] = g_signal_new ( \"finished\" , G_TYPE_FROM_CLASS ( object_class ) , G_SIGNAL_RUN_LAST , 0 , NULL , NULL , g_cclosure_marshal_VOID__VOID , G_TYPE_NONE , 0 ) ;\n signals [ SIGNAL_STATE_CHANGED ] = g_signal_new ( \"state-changed\" , G_TYPE_FROM_CLASS ( object_class ) , G_SIGNAL_RUN_LAST , 0 , NULL , NULL , g_cclosure_marshal_VOID__UINT , G_TYPE_NONE , 1 , G_TYPE_UINT ) ;\n signals [ SIGNAL_ALLOW_CANCEL_CHANGED ] = g_signal_new ( \"allow-cancel-changed\" , G_TYPE_FROM_CLASS ( object_class ) , G_SIGNAL_RUN_LAST , 0 , NULL , NULL , g_cclosure_marshal_VOID__UINT , G_TYPE_NONE , 1 , G_TYPE_UINT ) ;\n g_type_class_add_private ( klass , sizeof ( PkTransactionPrivate ) ) ;\n }"}
{"idx": 49, "target": 0, "func": "static void sig_nick_changed ( CHANNEL_REC * channel , NICK_REC * nick , const char * oldnick ) {\n MODULE_CHANNEL_REC * mchannel ;\n LAST_MSG_REC * rec ;\n mchannel = MODULE_DATA ( channel ) ;\n rec = last_msg_find ( mchannel -> lastmsgs , oldnick ) ;\n if ( rec != NULL ) {\n g_free ( rec -> nick ) ;\n rec -> nick = g_strdup ( nick -> nick ) ;\n }\n }"}
{"idx": 50, "target": 0, "func": "TSAction TSCacheWrite ( TSCont contp , TSCacheKey key ) {\n sdk_assert ( sdk_sanity_check_iocore_structure ( contp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_cachekey ( key ) == TS_SUCCESS ) ;\n FORCE_PLUGIN_SCOPED_MUTEX ( contp ) ;\n CacheInfo * info = ( CacheInfo * ) key ;\n Continuation * i = ( INKContInternal * ) contp ;\n return ( TSAction ) cacheProcessor . open_write ( i , & info -> cache_key , true , info -> frag_type , 0 , false , info -> pin_in_cache , info -> hostname , info -> len ) ;\n }"}
{"idx": 51, "target": 0, "func": "static char * _zip_readfpstr ( FILE * fp , unsigned int len , int nulp , struct zip_error * error ) {\n char * r , * o ;\n r = ( char * ) malloc ( nulp ? len + 1 : len ) ;\n if ( ! r ) {\n _zip_error_set ( error , ZIP_ER_MEMORY , 0 ) ;\n return NULL ;\n }\n if ( fread ( r , 1 , len , fp ) < len ) {\n free ( r ) ;\n _zip_error_set ( error , ZIP_ER_READ , errno ) ;\n return NULL ;\n }\n if ( nulp ) {\n r [ len ] = 0 ;\n for ( o = r ;\n o < r + len ;\n o ++ ) if ( * o == '\\0' ) * o = ' ' ;\n }\n return r ;\n }"}
{"idx": 52, "target": 0, "func": "TSReturnCode TSTextLogObjectCreate ( const char * filename , int mode , TSTextLogObject * new_object ) {\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) filename ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) new_object ) == TS_SUCCESS ) ;\n if ( mode < 0 || mode >= TS_LOG_MODE_INVALID_FLAG ) {\n * new_object = nullptr ;\n return TS_ERROR ;\n }\n TextLogObject * tlog = new TextLogObject ( filename , Log : : config -> logfile_dir , ( bool ) mode & TS_LOG_MODE_ADD_TIMESTAMP , nullptr , Log : : config -> rolling_enabled , Log : : config -> collation_preproc_threads , Log : : config -> rolling_interval_sec , Log : : config -> rolling_offset_hr , Log : : config -> rolling_size_mb ) ;\n if ( tlog == nullptr ) {\n * new_object = nullptr ;\n return TS_ERROR ;\n }\n int err = ( mode & TS_LOG_MODE_DO_NOT_RENAME ? Log : : config -> log_object_manager . manage_api_object ( tlog , 0 ) : Log : : config -> log_object_manager . manage_api_object ( tlog ) ) ;\n if ( err != LogObjectManager : : NO_FILENAME_CONFLICTS ) {\n delete tlog ;\n * new_object = nullptr ;\n return TS_ERROR ;\n }\n * new_object = ( TSTextLogObject ) tlog ;\n return TS_SUCCESS ;\n }"}
{"idx": 53, "target": 0, "func": "static uint8_t vble_read_reverse_unary ( GetBitContext * gb ) {\n uint8_t val = show_bits ( gb , 8 ) ;\n if ( val ) {\n val = 7 - av_log2_16bit ( ff_reverse [ val ] ) ;\n skip_bits ( gb , val + 1 ) ;\n return val ;\n }\n else {\n skip_bits ( gb , 8 ) ;\n if ( get_bits1 ( gb ) ) return 8 ;\n }\n return UINT8_MAX ;\n }"}
{"idx": 54, "target": 0, "func": "static int dissect_h245_T_subPictureRemovalParameters ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_subPictureRemovalParameters , T_subPictureRemovalParameters_sequence ) ;\n return offset ;\n }"}
{"idx": 55, "target": 0, "func": "static int dtls1_add_cert_to_buf ( BUF_MEM * buf , unsigned long * l , X509 * x ) {\n int n ;\n unsigned char * p ;\n n = i2d_X509 ( x , NULL ) ;\n if ( ! BUF_MEM_grow_clean ( buf , ( int ) ( n + ( * l ) + 3 ) ) ) {\n SSLerr ( SSL_F_DTLS1_ADD_CERT_TO_BUF , ERR_R_BUF_LIB ) ;\n return 0 ;\n }\n p = ( unsigned char * ) & ( buf -> data [ * l ] ) ;\n l2n3 ( n , p ) ;\n i2d_X509 ( x , & p ) ;\n * l += n + 3 ;\n return 1 ;\n }"}
{"idx": 56, "target": 0, "func": "void dwarf_elf_object_access_finish ( Dwarf_Obj_Access_Interface * obj ) {\n if ( ! obj ) {\n return ;\n }\n if ( obj -> object ) {\n dwarf_elf_object_access_internals_t * internals = ( dwarf_elf_object_access_internals_t * ) obj -> object ;\n if ( internals -> libdwarf_owns_elf ) {\n elf_end ( internals -> elf ) ;\n }\n }\n free ( obj -> object ) ;\n free ( obj ) ;\n }"}
{"idx": 57, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( AppApiTest , DISABLED_AppProcess ) {\n LOG ( INFO ) << \"Start of test.\" ;\n extensions : : ProcessMap * process_map = extensions : : ProcessMap : : Get ( browser ( ) -> profile ( ) ) ;\n ASSERT_TRUE ( LoadExtension ( test_data_dir_ . AppendASCII ( \"app_process\" ) ) ) ;\n LOG ( INFO ) << \"Loaded extension.\" ;\n GURL base_url = GetTestBaseURL ( \"app_process\" ) ;\n ui_test_utils : : NavigateToURLWithDisposition ( browser ( ) , base_url . Resolve ( \"path1/empty.html\" ) , WindowOpenDisposition : : NEW_FOREGROUND_TAB , ui_test_utils : : BROWSER_TEST_WAIT_FOR_NAVIGATION ) ;\n EXPECT_TRUE ( process_map -> Contains ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 1 ) -> GetRenderProcessHost ( ) -> GetID ( ) ) ) ;\n EXPECT_FALSE ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 1 ) -> GetWebUI ( ) ) ;\n LOG ( INFO ) << \"Nav 1.\" ;\n ui_test_utils : : NavigateToURLWithDisposition ( browser ( ) , base_url . Resolve ( \"path2/empty.html\" ) , WindowOpenDisposition : : NEW_FOREGROUND_TAB , ui_test_utils : : BROWSER_TEST_WAIT_FOR_NAVIGATION ) ;\n EXPECT_TRUE ( process_map -> Contains ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 2 ) -> GetRenderProcessHost ( ) -> GetID ( ) ) ) ;\n EXPECT_FALSE ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 2 ) -> GetWebUI ( ) ) ;\n LOG ( INFO ) << \"Nav 2.\" ;\n content : : WindowedNotificationObserver tab_added_observer ( chrome : : NOTIFICATION_TAB_ADDED , content : : NotificationService : : AllSources ( ) ) ;\n chrome : : NewTab ( browser ( ) ) ;\n tab_added_observer . Wait ( ) ;\n LOG ( INFO ) << \"New tab.\" ;\n ui_test_utils : : NavigateToURL ( browser ( ) , base_url . Resolve ( \"path3/empty.html\" ) ) ;\n LOG ( INFO ) << \"Nav 3.\" ;\n EXPECT_FALSE ( process_map -> Contains ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 3 ) -> GetRenderProcessHost ( ) -> GetID ( ) ) ) ;\n EXPECT_FALSE ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 3 ) -> GetWebUI ( ) ) ;\n ASSERT_EQ ( 4 , browser ( ) -> tab_strip_model ( ) -> count ( ) ) ;\n WebContents * tab = browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 1 ) ;\n EXPECT_EQ ( tab -> GetRenderProcessHost ( ) , browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 2 ) -> GetRenderProcessHost ( ) ) ;\n EXPECT_NE ( tab -> GetRenderProcessHost ( ) , browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 3 ) -> GetRenderProcessHost ( ) ) ;\n ASSERT_EQ ( 1u , chrome : : GetBrowserCount ( browser ( ) -> profile ( ) ) ) ;\n OpenWindow ( tab , base_url . Resolve ( \"path1/empty.html\" ) , true , NULL ) ;\n LOG ( INFO ) << \"WindowOpenHelper 1.\" ;\n OpenWindow ( tab , base_url . Resolve ( \"path2/empty.html\" ) , true , NULL ) ;\n LOG ( INFO ) << \"WindowOpenHelper 2.\" ;\n OpenWindow ( tab , base_url . Resolve ( \"path3/empty.html\" ) , true , NULL ) ;\n LOG ( INFO ) << \"WindowOpenHelper 3.\" ;\n const GURL & app_url ( base_url . Resolve ( \"path1/empty.html\" ) ) ;\n const GURL & non_app_url ( base_url . Resolve ( \"path3/empty.html\" ) ) ;\n NavigateInRenderer ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 2 ) , non_app_url ) ;\n LOG ( INFO ) << \"NavigateTabHelper 1.\" ;\n NavigateInRenderer ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 3 ) , app_url ) ;\n LOG ( INFO ) << \"NavigateTabHelper 2.\" ;\n EXPECT_NE ( tab -> GetRenderProcessHost ( ) , browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 2 ) -> GetRenderProcessHost ( ) ) ;\n EXPECT_EQ ( tab -> GetRenderProcessHost ( ) , browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 3 ) -> GetRenderProcessHost ( ) ) ;\n NavigateInRenderer ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 6 ) , app_url ) ;\n LOG ( INFO ) << \"NavigateTabHelper 3.\" ;\n EXPECT_EQ ( tab -> GetRenderProcessHost ( ) , browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 6 ) -> GetRenderProcessHost ( ) ) ;\n bool windowOpenerValid = false ;\n ASSERT_TRUE ( content : : ExecuteScriptAndExtractBool ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 6 ) , \"window.domAutomationController.send(window.opener != null)\" , & windowOpenerValid ) ) ;\n ASSERT_TRUE ( windowOpenerValid ) ;\n LOG ( INFO ) << \"End of test.\" ;\n }"}
{"idx": 58, "target": 0, "func": "static int get_hf_elem_id ( int pdu_type ) {\n int hf_elem_id = 0 ;\n switch ( pdu_type ) {\n case GSM_A_PDU_TYPE_BSSMAP : hf_elem_id = hf_gsm_a_bssmap_elem_id ;\n break ;\n case GSM_A_PDU_TYPE_DTAP : hf_elem_id = hf_gsm_a_dtap_elem_id ;\n break ;\n case GSM_A_PDU_TYPE_RP : hf_elem_id = hf_gsm_a_rp_elem_id ;\n break ;\n case GSM_A_PDU_TYPE_RR : hf_elem_id = hf_gsm_a_rr_elem_id ;\n break ;\n case GSM_A_PDU_TYPE_COMMON : hf_elem_id = hf_gsm_a_common_elem_id ;\n break ;\n case GSM_A_PDU_TYPE_GM : hf_elem_id = hf_gsm_a_gm_elem_id ;\n break ;\n case GSM_A_PDU_TYPE_BSSLAP : hf_elem_id = hf_gsm_a_bsslap_elem_id ;\n break ;\n case GSM_PDU_TYPE_BSSMAP_LE : hf_elem_id = hf_gsm_bssmap_le_elem_id ;\n break ;\n case NAS_PDU_TYPE_COMMON : hf_elem_id = hf_nas_eps_common_elem_id ;\n break ;\n case NAS_PDU_TYPE_EMM : hf_elem_id = hf_nas_eps_emm_elem_id ;\n break ;\n case NAS_PDU_TYPE_ESM : hf_elem_id = hf_nas_eps_esm_elem_id ;\n break ;\n case SGSAP_PDU_TYPE : hf_elem_id = hf_sgsap_elem_id ;\n break ;\n case BSSGP_PDU_TYPE : hf_elem_id = hf_bssgp_elem_id ;\n break ;\n case GMR1_IE_COMMON : case GMR1_IE_RR : hf_elem_id = hf_gmr1_elem_id ;\n break ;\n default : DISSECTOR_ASSERT_NOT_REACHED ( ) ;\n }\n return hf_elem_id ;\n }"}
{"idx": 59, "target": 0, "func": "static int dissect_rsl_ie_rach_load ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_item * ti ;\n proto_tree * ie_tree ;\n guint length ;\n guint8 ie_id ;\n int ie_offset ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_RACH_LOAD ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_ie_rach_load , & ti , \"RACH Load IE \" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n length = tvb_get_guint8 ( tvb , offset ) ;\n proto_item_set_len ( ti , length + 2 ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_length , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n ie_offset = offset ;\n proto_tree_add_item ( ie_tree , hf_rsl_rach_slot_cnt , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n offset = offset + 2 ;\n length = length - 2 ;\n proto_tree_add_item ( ie_tree , hf_rsl_rach_busy_cnt , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n offset = offset + 2 ;\n length = length - 2 ;\n proto_tree_add_item ( ie_tree , hf_rsl_rach_acc_cnt , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n offset = offset + 2 ;\n length = length - 2 ;\n if ( length > 0 ) {\n proto_tree_add_item ( ie_tree , hf_rsl_rach_supplementary_information , tvb , offset , length , ENC_NA ) ;\n }\n offset = ie_offset + length ;\n return offset ;\n }"}
{"idx": 60, "target": 0, "func": "void simplestring_addn ( simplestring * target , const char * source , size_t add_len ) {\n size_t newsize = target -> size , incr = 0 ;\n if ( target && source ) {\n if ( ! target -> str ) {\n simplestring_init_str ( target ) ;\n }\n if ( ( SIZE_MAX - add_len ) < target -> len || ( SIZE_MAX - add_len - 1 ) < target -> len ) {\n return ;\n }\n if ( target -> len + add_len + 1 > target -> size ) {\n newsize = target -> len + add_len + 1 ;\n incr = target -> size * 2 ;\n if ( incr ) {\n newsize = newsize - ( newsize % incr ) + incr ;\n }\n if ( newsize < ( target -> len + add_len + 1 ) ) {\n return ;\n }\n target -> str = ( char * ) realloc ( target -> str , newsize ) ;\n target -> size = target -> str ? newsize : 0 ;\n }\n if ( target -> str ) {\n if ( add_len ) {\n memcpy ( target -> str + target -> len , source , add_len ) ;\n }\n target -> len += add_len ;\n target -> str [ target -> len ] = 0 ;\n }\n }\n }"}
{"idx": 61, "target": 1, "func": "static int parse_CDbProp ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree , struct GuidPropertySet * propset , const char * fmt , ... ) {\n static const value_string EMPTY_VS [ ] = {\n {\n 0 , NULL }\n }\n ;\n const value_string * vs = ( propset && propset -> id_map ) ? propset -> id_map : EMPTY_VS ;\n guint32 id , opt , status ;\n struct CBaseStorageVariant value ;\n proto_item * item ;\n proto_tree * tree ;\n const char * str , * txt ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CDbProp , & item , txt ) ;\n id = tvb_get_letohl ( tvb , offset ) ;\n str = val_to_str ( id , vs , \"0x%08x\" ) ;\n proto_tree_add_string_format_value ( tree , hf_mswsp_cdbprop_id , tvb , offset , 4 , str , \"%s (0x%08x)\" , ( str [ 0 ] == '0' ? \"\" : str ) , id ) ;\n offset += 4 ;\n proto_item_append_text ( item , \" Id: %s\" , str ) ;\n opt = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_cdbprop_options , tvb , offset , 4 , opt ) ;\n offset += 4 ;\n status = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_cdbprop_status , tvb , offset , 4 , status ) ;\n offset += 4 ;\n offset = parse_CDbColId ( tvb , offset , tree , pad_tree , \"colid\" ) ;\n offset = parse_CBaseStorageVariant ( tvb , offset , tree , pad_tree , & value , \"vValue\" ) ;\n str = str_CBaseStorageVariant ( & value , TRUE ) ;\n proto_item_append_text ( item , \" %s\" , str ) ;\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 62, "target": 1, "func": "static int mjpegb_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n MJpegDecodeContext * s = avctx -> priv_data ;\n const uint8_t * buf_end , * buf_ptr ;\n AVFrame * picture = data ;\n GetBitContext hgb ;\n uint32_t dqt_offs , dht_offs , sof_offs , sos_offs , second_field_offs ;\n uint32_t field_size , sod_offs ;\n buf_ptr = buf ;\n buf_end = buf + buf_size ;\n read_header : s -> restart_interval = 0 ;\n s -> restart_count = 0 ;\n s -> mjpb_skiptosod = 0 ;\n if ( buf_end - buf_ptr >= 1 << 28 ) return AVERROR_INVALIDDATA ;\n init_get_bits ( & hgb , buf_ptr , ( buf_end - buf_ptr ) * 8 ) ;\n skip_bits ( & hgb , 32 ) ;\n if ( get_bits_long ( & hgb , 32 ) != MKBETAG ( 'm' , 'j' , 'p' , 'g' ) ) {\n av_log ( avctx , AV_LOG_WARNING , \"not mjpeg-b (bad fourcc)\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n field_size = get_bits_long ( & hgb , 32 ) ;\n av_log ( avctx , AV_LOG_DEBUG , \"field size: 0x%x\\n\" , field_size ) ;\n skip_bits ( & hgb , 32 ) ;\n second_field_offs = read_offs ( avctx , & hgb , buf_end - buf_ptr , \"second_field_offs is %d and size is %d\\n\" ) ;\n av_log ( avctx , AV_LOG_DEBUG , \"second field offs: 0x%x\\n\" , second_field_offs ) ;\n dqt_offs = read_offs ( avctx , & hgb , buf_end - buf_ptr , \"dqt is %d and size is %d\\n\" ) ;\n av_log ( avctx , AV_LOG_DEBUG , \"dqt offs: 0x%x\\n\" , dqt_offs ) ;\n if ( dqt_offs ) {\n init_get_bits ( & s -> gb , buf_ptr + dqt_offs , ( buf_end - ( buf_ptr + dqt_offs ) ) * 8 ) ;\n s -> start_code = DQT ;\n if ( ff_mjpeg_decode_dqt ( s ) < 0 && ( avctx -> err_recognition & AV_EF_EXPLODE ) ) return AVERROR_INVALIDDATA ;\n }\n dht_offs = read_offs ( avctx , & hgb , buf_end - buf_ptr , \"dht is %d and size is %d\\n\" ) ;\n av_log ( avctx , AV_LOG_DEBUG , \"dht offs: 0x%x\\n\" , dht_offs ) ;\n if ( dht_offs ) {\n init_get_bits ( & s -> gb , buf_ptr + dht_offs , ( buf_end - ( buf_ptr + dht_offs ) ) * 8 ) ;\n s -> start_code = DHT ;\n ff_mjpeg_decode_dht ( s ) ;\n }\n sof_offs = read_offs ( avctx , & hgb , buf_end - buf_ptr , \"sof is %d and size is %d\\n\" ) ;\n av_log ( avctx , AV_LOG_DEBUG , \"sof offs: 0x%x\\n\" , sof_offs ) ;\n if ( sof_offs ) {\n init_get_bits ( & s -> gb , buf_ptr + sof_offs , ( buf_end - ( buf_ptr + sof_offs ) ) * 8 ) ;\n s -> start_code = SOF0 ;\n if ( ff_mjpeg_decode_sof ( s ) < 0 ) return - 1 ;\n }\n sos_offs = read_offs ( avctx , & hgb , buf_end - buf_ptr , \"sos is %d and size is %d\\n\" ) ;\n av_log ( avctx , AV_LOG_DEBUG , \"sos offs: 0x%x\\n\" , sos_offs ) ;\n sod_offs = read_offs ( avctx , & hgb , buf_end - buf_ptr , \"sof is %d and size is %d\\n\" ) ;\n av_log ( avctx , AV_LOG_DEBUG , \"sod offs: 0x%x\\n\" , sod_offs ) ;\n if ( sos_offs ) {\n init_get_bits ( & s -> gb , buf_ptr + sos_offs , 8 * FFMIN ( field_size , buf_end - buf_ptr - sos_offs ) ) ;\n s -> mjpb_skiptosod = ( sod_offs - sos_offs - show_bits ( & s -> gb , 16 ) ) ;\n s -> start_code = SOS ;\n if ( ff_mjpeg_decode_sos ( s , NULL , NULL ) < 0 && ( avctx -> err_recognition & AV_EF_EXPLODE ) ) return AVERROR_INVALIDDATA ;\n }\n if ( s -> interlaced ) {\n s -> bottom_field ^= 1 ;\n if ( s -> bottom_field != s -> interlace_polarity && second_field_offs ) {\n buf_ptr = buf + second_field_offs ;\n second_field_offs = 0 ;\n goto read_header ;\n }\n }\n * picture = * s -> picture_ptr ;\n * got_frame = 1 ;\n if ( ! s -> lossless ) {\n picture -> quality = FFMAX3 ( s -> qscale [ 0 ] , s -> qscale [ 1 ] , s -> qscale [ 2 ] ) ;\n picture -> qstride = 0 ;\n picture -> qscale_table = s -> qscale_table ;\n memset ( picture -> qscale_table , picture -> quality , ( s -> width + 15 ) / 16 ) ;\n if ( avctx -> debug & FF_DEBUG_QP ) av_log ( avctx , AV_LOG_DEBUG , \"QP: %d\\n\" , picture -> quality ) ;\n picture -> quality *= FF_QP2LAMBDA ;\n }\n return buf_size ;\n }"}
{"idx": 63, "target": 0, "func": "void gx_device_copy_color_params ( gx_device * dev , const gx_device * target ) {\n COPY_PARAM ( color_info ) ;\n COPY_PARAM ( cached_colors ) ;\n gx_device_copy_color_procs ( dev , target ) ;\n }"}
{"idx": 64, "target": 0, "func": "static void signal_window_item_changed ( WINDOW_REC * window , WI_ITEM_REC * item ) {\n g_return_if_fail ( window != NULL ) ;\n if ( item == NULL ) return ;\n if ( g_slist_length ( window -> items ) > 1 && IS_CHANNEL ( item ) ) {\n printformat ( item -> server , item -> visible_name , MSGLEVEL_CLIENTNOTICE , TXT_TALKING_IN , item -> visible_name ) ;\n signal_stop ( ) ;\n }\n }"}
{"idx": 65, "target": 0, "func": "static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 66, "target": 1, "func": "int ieee80211_radiotap_iterator_next ( struct ieee80211_radiotap_iterator * iterator ) {\n while ( 1 ) {\n int hit = 0 ;\n int pad , align , size , subns ;\n guint32 oui ;\n if ( ( iterator -> _arg_index % 32 ) == IEEE80211_RADIOTAP_EXT && ! ( iterator -> _bitmap_shifter & 1 ) ) return - ENOENT ;\n if ( ! ( iterator -> _bitmap_shifter & 1 ) ) goto next_entry ;\n switch ( iterator -> _arg_index % 32 ) {\n case IEEE80211_RADIOTAP_RADIOTAP_NAMESPACE : case IEEE80211_RADIOTAP_EXT : align = 1 ;\n size = 0 ;\n break ;\n case IEEE80211_RADIOTAP_VENDOR_NAMESPACE : align = 2 ;\n size = 6 ;\n break ;\n default : # ifdef RADIOTAP_SUPPORT_OVERRIDES if ( find_override ( iterator , & align , & size ) ) {\n }\n else # endif if ( ! iterator -> current_namespace || iterator -> _arg_index >= iterator -> current_namespace -> n_bits ) {\n if ( iterator -> current_namespace == & radiotap_ns ) return - ENOENT ;\n align = 0 ;\n }\n else {\n align = iterator -> current_namespace -> align_size [ iterator -> _arg_index ] . align ;\n size = iterator -> current_namespace -> align_size [ iterator -> _arg_index ] . size ;\n }\n if ( ! align ) {\n iterator -> _arg = iterator -> _next_ns_data ;\n iterator -> current_namespace = NULL ;\n goto next_entry ;\n }\n break ;\n }\n pad = ( int ) ( ( iterator -> _arg - ( unsigned char * ) iterator -> _rtheader ) & ( align - 1 ) ) ;\n if ( pad ) iterator -> _arg += align - pad ;\n if ( iterator -> _arg_index % 32 == IEEE80211_RADIOTAP_VENDOR_NAMESPACE ) {\n int vnslen ;\n if ( ! ITERATOR_VALID ( iterator , size ) ) return - EINVAL ;\n oui = ( * iterator -> _arg << 16 ) | ( * ( iterator -> _arg + 1 ) << 8 ) | * ( iterator -> _arg + 2 ) ;\n subns = * ( iterator -> _arg + 3 ) ;\n find_ns ( iterator , oui , subns ) ;\n vnslen = get_unaligned_le16 ( iterator -> _arg + 4 ) ;\n iterator -> _next_ns_data = iterator -> _arg + size + vnslen ;\n if ( ! iterator -> current_namespace ) size += vnslen ;\n }\n iterator -> this_arg_index = iterator -> _arg_index ;\n iterator -> this_arg = iterator -> _arg ;\n iterator -> this_arg_size = size ;\n iterator -> _arg += size ;\n if ( ! ITERATOR_VALID ( iterator , 0 ) ) return - EINVAL ;\n switch ( iterator -> _arg_index % 32 ) {\n case IEEE80211_RADIOTAP_VENDOR_NAMESPACE : iterator -> _reset_on_ext = 1 ;\n iterator -> is_radiotap_ns = 0 ;\n iterator -> this_arg_index = IEEE80211_RADIOTAP_VENDOR_NAMESPACE ;\n if ( ! iterator -> current_namespace ) hit = 1 ;\n goto next_entry ;\n case IEEE80211_RADIOTAP_RADIOTAP_NAMESPACE : iterator -> _reset_on_ext = 1 ;\n iterator -> current_namespace = & radiotap_ns ;\n iterator -> is_radiotap_ns = 1 ;\n goto next_entry ;\n case IEEE80211_RADIOTAP_EXT : iterator -> _bitmap_shifter = get_unaligned_le32 ( iterator -> _next_bitmap ) ;\n iterator -> _next_bitmap ++ ;\n if ( iterator -> _reset_on_ext ) iterator -> _arg_index = 0 ;\n else iterator -> _arg_index ++ ;\n iterator -> _reset_on_ext = 0 ;\n break ;\n default : hit = 1 ;\n next_entry : iterator -> _bitmap_shifter >>= 1 ;\n iterator -> _arg_index ++ ;\n }\n if ( hit ) return 0 ;\n }\n }"}
{"idx": 67, "target": 0, "func": "int i2d_RSAPublicKey_bio ( BIO * bp , RSA * rsa ) {\n return ASN1_item_i2d_bio ( ASN1_ITEM_rptr ( RSAPublicKey ) , bp , rsa ) ;\n }"}
{"idx": 68, "target": 0, "func": "static int copy_parameter_set ( void * * to , void * * from , int count , int size ) {\n int i ;\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n if ( to [ i ] && ! from [ i ] ) {\n av_freep ( & to [ i ] ) ;\n }\n else if ( from [ i ] && ! to [ i ] ) {\n to [ i ] = av_malloc ( size ) ;\n if ( ! to [ i ] ) return AVERROR ( ENOMEM ) ;\n }\n if ( from [ i ] ) memcpy ( to [ i ] , from [ i ] , size ) ;\n }\n return 0 ;\n }"}
{"idx": 69, "target": 0, "func": "static void U_CALLCONV _UTF16ToUnicodeWithOffsets ( UConverterToUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n UConverter * cnv = pArgs -> converter ;\n const char * source = pArgs -> source ;\n const char * sourceLimit = pArgs -> sourceLimit ;\n int32_t * offsets = pArgs -> offsets ;\n int32_t state , offsetDelta ;\n uint8_t b ;\n state = cnv -> mode ;\n offsetDelta = 0 ;\n while ( source < sourceLimit && U_SUCCESS ( * pErrorCode ) ) {\n switch ( state ) {\n case 0 : cnv -> toUBytes [ 0 ] = ( uint8_t ) * source ++ ;\n cnv -> toULength = 1 ;\n state = 1 ;\n break ;\n case 1 : b = * source ;\n if ( cnv -> toUBytes [ 0 ] == 0xfe && b == 0xff ) {\n if ( IS_UTF16LE ( cnv ) ) {\n state = 7 ;\n }\n else {\n state = 8 ;\n }\n }\n else if ( cnv -> toUBytes [ 0 ] == 0xff && b == 0xfe ) {\n if ( IS_UTF16BE ( cnv ) ) {\n state = 6 ;\n }\n else {\n state = 9 ;\n }\n }\n else if ( ( IS_UTF16 ( cnv ) && UCNV_GET_VERSION ( cnv ) == 1 ) ) {\n state = 6 ;\n }\n if ( state >= 8 ) {\n ++ source ;\n cnv -> toULength = 0 ;\n offsetDelta = ( int32_t ) ( source - pArgs -> source ) ;\n }\n else if ( state < 6 ) {\n if ( source != pArgs -> source ) {\n source = pArgs -> source ;\n cnv -> toULength = 0 ;\n }\n if ( IS_UTF16LE ( cnv ) ) {\n state = 9 ;\n }\n else {\n state = 8 ;\n }\n }\n else {\n cnv -> toUBytes [ 1 ] = b ;\n cnv -> toULength = 2 ;\n pArgs -> source = source + 1 ;\n cnv -> mode = state + 2 ;\n * pErrorCode = U_ILLEGAL_ESCAPE_SEQUENCE ;\n return ;\n }\n cnv -> mode = state ;\n continue ;\n case 8 : pArgs -> source = source ;\n _UTF16BEToUnicodeWithOffsets ( pArgs , pErrorCode ) ;\n source = pArgs -> source ;\n break ;\n case 9 : pArgs -> source = source ;\n _UTF16LEToUnicodeWithOffsets ( pArgs , pErrorCode ) ;\n source = pArgs -> source ;\n break ;\n default : break ;\n }\n }\n if ( offsets != NULL && offsetDelta != 0 ) {\n int32_t * offsetsLimit = pArgs -> offsets ;\n while ( offsets < offsetsLimit ) {\n * offsets ++ += offsetDelta ;\n }\n }\n pArgs -> source = source ;\n if ( source == sourceLimit && pArgs -> flush ) {\n switch ( state ) {\n case 0 : break ;\n case 8 : _UTF16BEToUnicodeWithOffsets ( pArgs , pErrorCode ) ;\n break ;\n case 9 : _UTF16LEToUnicodeWithOffsets ( pArgs , pErrorCode ) ;\n break ;\n default : break ;\n }\n }\n cnv -> mode = state ;\n }"}
{"idx": 70, "target": 0, "func": "void dtap_mm_mm_info ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_TRUE ;\n ELEM_OPT_TLV ( 0x43 , GSM_A_PDU_TYPE_DTAP , DE_NETWORK_NAME , \" - Full Name\" ) ;\n ELEM_OPT_TLV ( 0x45 , GSM_A_PDU_TYPE_DTAP , DE_NETWORK_NAME , \" - Short Name\" ) ;\n ELEM_OPT_TV ( 0x46 , GSM_A_PDU_TYPE_DTAP , DE_TIME_ZONE , \" - Local\" ) ;\n ELEM_OPT_TV ( 0x47 , GSM_A_PDU_TYPE_DTAP , DE_TIME_ZONE_TIME , \" - Universal Time and Local Time Zone\" ) ;\n ELEM_OPT_TLV ( 0x48 , GSM_A_PDU_TYPE_DTAP , DE_LSA_ID , NULL ) ;\n ELEM_OPT_TLV ( 0x49 , GSM_A_PDU_TYPE_DTAP , DE_DAY_SAVING_TIME , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 71, "target": 0, "func": "static void dissect_rsvp_exclude_route ( proto_item * ti , packet_info * pinfo , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class , int ctype ) {\n proto_item_set_text ( ti , \"EXCLUDE ROUTE: \" ) ;\n switch ( ctype ) {\n case 1 : proto_tree_add_uint ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , ctype ) ;\n dissect_rsvp_xro_subobjects ( ti , pinfo , rsvp_object_tree , tvb , offset + 4 , obj_length , rsvp_class ) ;\n break ;\n default : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , ctype , \"Unknown (%u)\" , ctype ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_exclude_route_data , tvb , offset + 4 , obj_length - 4 , ENC_NA ) ;\n break ;\n }\n }"}
{"idx": 72, "target": 0, "func": "static inline gsize label_concat ( char * label_str , gsize pos , const char * str ) {\n if ( pos < ITEM_LABEL_LENGTH ) pos += g_strlcpy ( label_str + pos , str , ITEM_LABEL_LENGTH - pos ) ;\n return pos ;\n }"}
{"idx": 73, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , FirstMeaningfulPaintNotRecorded ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : FIRST_CONTENTFUL_PAINT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/page_load_metrics/page_with_active_connections.html\" ) ) ;\n waiter -> Wait ( ) ;\n NavigateToUntrackedUrl ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramFirstContentfulPaint , 1 ) ;\n histogram_tester_ . ExpectUniqueSample ( internal : : kHistogramFirstMeaningfulPaintStatus , internal : : FIRST_MEANINGFUL_PAINT_DID_NOT_REACH_NETWORK_STABLE , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramFirstMeaningfulPaint , 0 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramParseStartToFirstMeaningfulPaint , 0 ) ;\n }"}
{"idx": 74, "target": 0, "func": "static void cluster_one_database ( const char * dbname , bool verbose , const char * table , const char * host , const char * port , const char * username , enum trivalue prompt_password , const char * progname , bool echo ) {\n PQExpBufferData sql ;\n PGconn * conn ;\n initPQExpBuffer ( & sql ) ;\n appendPQExpBufferStr ( & sql , \"CLUSTER\" ) ;\n if ( verbose ) appendPQExpBufferStr ( & sql , \" VERBOSE\" ) ;\n if ( table ) appendPQExpBuffer ( & sql , \" %s\" , table ) ;\n appendPQExpBufferChar ( & sql , ';\n' ) ;\n conn = connectDatabase ( dbname , host , port , username , prompt_password , progname , false , false ) ;\n if ( ! executeMaintenanceCommand ( conn , sql . data , echo ) ) {\n if ( table ) fprintf ( stderr , _ ( \"%s: clustering of table \\\"%s\\\" in database \\\"%s\\\" failed: %s\" ) , progname , table , PQdb ( conn ) , PQerrorMessage ( conn ) ) ;\n else fprintf ( stderr , _ ( \"%s: clustering of database \\\"%s\\\" failed: %s\" ) , progname , PQdb ( conn ) , PQerrorMessage ( conn ) ) ;\n PQfinish ( conn ) ;\n exit ( 1 ) ;\n }\n PQfinish ( conn ) ;\n termPQExpBuffer ( & sql ) ;\n }"}
{"idx": 75, "target": 0, "func": "static void build_mc_border ( const uint8_t * src , int src_stride , uint8_t * dst , int dst_stride , int x , int y , int b_w , int b_h , int w , int h ) {\n const uint8_t * ref_row = src - x - y * src_stride ;\n if ( y >= h ) ref_row += ( h - 1 ) * src_stride ;\n else if ( y > 0 ) ref_row += y * src_stride ;\n do {\n int right = 0 , copy ;\n int left = x < 0 ? - x : 0 ;\n if ( left > b_w ) left = b_w ;\n if ( x + b_w > w ) right = x + b_w - w ;\n if ( right > b_w ) right = b_w ;\n copy = b_w - left - right ;\n if ( left ) memset ( dst , ref_row [ 0 ] , left ) ;\n if ( copy ) memcpy ( dst + left , ref_row + x + left , copy ) ;\n if ( right ) memset ( dst + left + copy , ref_row [ w - 1 ] , right ) ;\n dst += dst_stride ;\n ++ y ;\n if ( y > 0 && y < h ) ref_row += src_stride ;\n }\n while ( -- b_h ) ;\n }"}
{"idx": 76, "target": 1, "func": "void nautilus_file_mark_desktop_file_trusted ( GFile * file , GtkWindow * parent_window , gboolean interactive , NautilusOpCallback done_callback , gpointer done_callback_data ) {\n GTask * task ;\n MarkTrustedJob * job ;\n job = op_job_new ( MarkTrustedJob , parent_window ) ;\n job -> file = g_object_ref ( file ) ;\n job -> interactive = interactive ;\n job -> done_callback = done_callback ;\n job -> done_callback_data = done_callback_data ;\n task = g_task_new ( NULL , NULL , mark_trusted_task_done , job ) ;\n g_task_set_task_data ( task , job , NULL ) ;\n g_task_run_in_thread ( task , mark_trusted_task_thread_func ) ;\n g_object_unref ( task ) ;\n }"}
{"idx": 77, "target": 0, "func": "static TranslationBlock * tb_alloc ( target_ulong pc ) {\n TranslationBlock * tb ;\n if ( tcg_ctx . tb_ctx . nb_tbs >= tcg_ctx . code_gen_max_blocks || ( tcg_ctx . code_gen_ptr - tcg_ctx . code_gen_buffer ) >= tcg_ctx . code_gen_buffer_max_size ) {\n return NULL ;\n }\n tb = & tcg_ctx . tb_ctx . tbs [ tcg_ctx . tb_ctx . nb_tbs ++ ] ;\n tb -> pc = pc ;\n tb -> cflags = 0 ;\n return tb ;\n }"}
{"idx": 78, "target": 0, "func": "static void erase_screen ( AVCodecContext * avctx ) {\n AnsiContext * s = avctx -> priv_data ;\n int i ;\n for ( i = 0 ;\n i < avctx -> height ;\n i ++ ) memset ( s -> frame -> data [ 0 ] + i * s -> frame -> linesize [ 0 ] , DEFAULT_BG_COLOR , avctx -> width ) ;\n s -> x = s -> y = 0 ;\n }"}
{"idx": 79, "target": 0, "func": "void proto_reg_handoff_pvfs ( void ) {\n dissector_handle_t pvfs_handle ;\n pvfs_handle = create_dissector_handle ( dissect_pvfs_heur , proto_pvfs ) ;\n dissector_add_uint_with_preference ( \"tcp.port\" , TCP_PORT_PVFS2 , pvfs_handle ) ;\n heur_dissector_add ( \"tcp\" , dissect_pvfs_heur , \"PVFS over TCP\" , \"pvfs_tcp\" , proto_pvfs , HEURISTIC_ENABLE ) ;\n }"}
{"idx": 80, "target": 0, "func": "void gic_update ( GICState * s ) {\n int best_irq ;\n int best_prio ;\n int irq ;\n int level ;\n int cpu ;\n int cm ;\n for ( cpu = 0 ;\n cpu < NUM_CPU ( s ) ;\n cpu ++ ) {\n cm = 1 << cpu ;\n s -> current_pending [ cpu ] = 1023 ;\n if ( ! s -> enabled || ! s -> cpu_enabled [ cpu ] ) {\n qemu_irq_lower ( s -> parent_irq [ cpu ] ) ;\n return ;\n }\n best_prio = 0x100 ;\n best_irq = 1023 ;\n for ( irq = 0 ;\n irq < s -> num_irq ;\n irq ++ ) {\n if ( GIC_TEST_ENABLED ( irq , cm ) && GIC_TEST_PENDING ( irq , cm ) ) {\n if ( GIC_GET_PRIORITY ( irq , cpu ) < best_prio ) {\n best_prio = GIC_GET_PRIORITY ( irq , cpu ) ;\n best_irq = irq ;\n }\n }\n }\n level = 0 ;\n if ( best_prio < s -> priority_mask [ cpu ] ) {\n s -> current_pending [ cpu ] = best_irq ;\n if ( best_prio < s -> running_priority [ cpu ] ) {\n DPRINTF ( \"Raised pending IRQ %d (cpu %d)\\n\" , best_irq , cpu ) ;\n level = 1 ;\n }\n }\n qemu_set_irq ( s -> parent_irq [ cpu ] , level ) ;\n }\n }"}
{"idx": 81, "target": 0, "func": "static void dissect_rsvp_fast_reroute ( proto_tree * ti , packet_info * pinfo , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int type ) {\n guint8 flags ;\n proto_tree * ti2 , * rsvp_frr_flags_tree ;\n proto_item_set_text ( ti , \"FAST_REROUTE: \" ) ;\n switch ( type ) {\n case 1 : case 7 : if ( ( ( type == 1 ) && ( obj_length != 24 ) ) || ( ( type == 7 ) && ( obj_length != 20 ) ) ) {\n proto_tree_add_expert_format ( rsvp_object_tree , pinfo , & ei_rsvp_invalid_length , tvb , offset , obj_length , \"Invalid length: cannot decode\" ) ;\n proto_item_append_text ( ti , \"Invalid length\" ) ;\n break ;\n }\n proto_tree_add_uint ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_fast_reroute_setup_priority , tvb , offset + 4 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_fast_reroute_hold_priority , tvb , offset + 5 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_fast_reroute_hop_limit , tvb , offset + 6 , 1 , ENC_BIG_ENDIAN ) ;\n flags = tvb_get_guint8 ( tvb , offset + 7 ) ;\n ti2 = proto_tree_add_item ( rsvp_object_tree , hf_rsvp_fast_reroute_flags , tvb , offset + 7 , 1 , ENC_BIG_ENDIAN ) ;\n rsvp_frr_flags_tree = proto_item_add_subtree ( ti2 , TREE ( TT_FAST_REROUTE_FLAGS ) ) ;\n proto_tree_add_item ( rsvp_frr_flags_tree , hf_rsvp_frr_flags_one2one_backup , tvb , offset + 7 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_frr_flags_tree , hf_rsvp_frr_flags_facility_backup , tvb , offset + 7 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_fast_reroute_bandwidth , tvb , offset + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_fast_reroute_include_any , tvb , offset + 12 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_fast_reroute_exclude_any , tvb , offset + 16 , 4 , ENC_BIG_ENDIAN ) ;\n if ( type == 1 ) {\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_fast_reroute_include_all , tvb , offset + 20 , 4 , ENC_BIG_ENDIAN ) ;\n }\n proto_item_append_text ( ti , \"%s%s\" , flags & 0x01 ? \"One-to-One Backup, \" : \"\" , flags & 0x02 ? \"Facility Backup\" : \"\" ) ;\n break ;\n default : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"Unknown (%u)\" , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_fast_reroute_data , tvb , offset + 4 , obj_length - 4 , ENC_NA ) ;\n break ;\n }\n }"}
{"idx": 82, "target": 1, "func": "mbfl_string * mbfl_ja_jp_hantozen ( mbfl_string * string , mbfl_string * result , int mode ) {\n int n ;\n unsigned char * p ;\n const mbfl_encoding * encoding ;\n mbfl_memory_device device ;\n mbfl_convert_filter * decoder = NULL ;\n mbfl_convert_filter * encoder = NULL ;\n mbfl_convert_filter * tl_filter = NULL ;\n mbfl_convert_filter * next_filter = NULL ;\n mbfl_filt_tl_jisx0201_jisx0208_param * param = NULL ;\n if ( string == NULL || result == NULL ) {\n return NULL ;\n }\n encoding = mbfl_no2encoding ( string -> no_encoding ) ;\n if ( encoding == NULL ) {\n return NULL ;\n }\n mbfl_memory_device_init ( & device , string -> len , 0 ) ;\n mbfl_string_init ( result ) ;\n result -> no_language = string -> no_language ;\n result -> no_encoding = string -> no_encoding ;\n decoder = mbfl_convert_filter_new ( mbfl_no_encoding_wchar , string -> no_encoding , mbfl_memory_device_output , 0 , & device ) ;\n if ( decoder == NULL ) {\n goto out ;\n }\n next_filter = decoder ;\n param = ( mbfl_filt_tl_jisx0201_jisx0208_param * ) mbfl_malloc ( sizeof ( mbfl_filt_tl_jisx0201_jisx0208_param ) ) ;\n if ( param == NULL ) {\n goto out ;\n }\n param -> mode = mode ;\n tl_filter = mbfl_convert_filter_new2 ( & vtbl_tl_jisx0201_jisx0208 , ( int ( * ) ( int , void * ) ) next_filter -> filter_function , ( int ( * ) ( void * ) ) next_filter -> filter_flush , next_filter ) ;\n if ( tl_filter == NULL ) {\n mbfl_free ( param ) ;\n goto out ;\n }\n tl_filter -> opaque = param ;\n next_filter = tl_filter ;\n encoder = mbfl_convert_filter_new ( string -> no_encoding , mbfl_no_encoding_wchar , ( int ( * ) ( int , void * ) ) next_filter -> filter_function , ( int ( * ) ( void * ) ) next_filter -> filter_flush , next_filter ) ;\n if ( encoder == NULL ) {\n goto out ;\n }\n p = string -> val ;\n n = string -> len ;\n if ( p != NULL ) {\n while ( n > 0 ) {\n if ( ( * encoder -> filter_function ) ( * p ++ , encoder ) < 0 ) {\n break ;\n }\n n -- ;\n }\n }\n mbfl_convert_filter_flush ( encoder ) ;\n result = mbfl_memory_device_result ( & device , result ) ;\n out : if ( tl_filter != NULL ) {\n if ( tl_filter -> opaque != NULL ) {\n mbfl_free ( tl_filter -> opaque ) ;\n }\n mbfl_convert_filter_delete ( tl_filter ) ;\n }\n if ( decoder != NULL ) {\n mbfl_convert_filter_delete ( decoder ) ;\n }\n if ( encoder != NULL ) {\n mbfl_convert_filter_delete ( encoder ) ;\n }\n return result ;\n }"}
{"idx": 83, "target": 0, "func": "static void dca_downmix ( float * * samples , int srcfmt , int downmix_coef [ DCA_PRIM_CHANNELS_MAX ] [ 2 ] , const int8_t * channel_mapping ) {\n int c , l , r , sl , sr , s ;\n int i ;\n float t , u , v ;\n float coef [ DCA_PRIM_CHANNELS_MAX ] [ 2 ] ;\n for ( i = 0 ;\n i < DCA_PRIM_CHANNELS_MAX ;\n i ++ ) {\n coef [ i ] [ 0 ] = dca_downmix_coeffs [ downmix_coef [ i ] [ 0 ] ] ;\n coef [ i ] [ 1 ] = dca_downmix_coeffs [ downmix_coef [ i ] [ 1 ] ] ;\n }\n switch ( srcfmt ) {\n case DCA_MONO : case DCA_CHANNEL : case DCA_STEREO_TOTAL : case DCA_STEREO_SUMDIFF : case DCA_4F2R : av_log ( NULL , 0 , \"Not implemented!\\n\" ) ;\n break ;\n case DCA_STEREO : break ;\n case DCA_3F : c = channel_mapping [ 0 ] ;\n l = channel_mapping [ 1 ] ;\n r = channel_mapping [ 2 ] ;\n DOWNMIX_TO_STEREO ( MIX_FRONT3 ( samples , coef ) , ) ;\n break ;\n case DCA_2F1R : s = channel_mapping [ 2 ] ;\n DOWNMIX_TO_STEREO ( MIX_REAR1 ( samples , s , 2 , coef ) , ) ;\n break ;\n case DCA_3F1R : c = channel_mapping [ 0 ] ;\n l = channel_mapping [ 1 ] ;\n r = channel_mapping [ 2 ] ;\n s = channel_mapping [ 3 ] ;\n DOWNMIX_TO_STEREO ( MIX_FRONT3 ( samples , coef ) , MIX_REAR1 ( samples , s , 3 , coef ) ) ;\n break ;\n case DCA_2F2R : sl = channel_mapping [ 2 ] ;\n sr = channel_mapping [ 3 ] ;\n DOWNMIX_TO_STEREO ( MIX_REAR2 ( samples , sl , sr , 2 , coef ) , ) ;\n break ;\n case DCA_3F2R : c = channel_mapping [ 0 ] ;\n l = channel_mapping [ 1 ] ;\n r = channel_mapping [ 2 ] ;\n sl = channel_mapping [ 3 ] ;\n sr = channel_mapping [ 4 ] ;\n DOWNMIX_TO_STEREO ( MIX_FRONT3 ( samples , coef ) , MIX_REAR2 ( samples , sl , sr , 3 , coef ) ) ;\n break ;\n }\n }"}
{"idx": 84, "target": 0, "func": "static void gpgsm_io_event ( void * engine , gpgme_event_io_t type , void * type_data ) {\n engine_gpgsm_t gpgsm = engine ;\n TRACE3 ( DEBUG_ENGINE , \"gpgme:gpgsm_io_event\" , gpgsm , \"event %p, type %d, type_data %p\" , gpgsm -> io_cbs . event , type , type_data ) ;\n if ( gpgsm -> io_cbs . event ) ( * gpgsm -> io_cbs . event ) ( gpgsm -> io_cbs . event_priv , type , type_data ) ;\n }"}
{"idx": 85, "target": 0, "func": "static char * fieldflags2str ( uint f ) {\n static char buf [ 1024 ] ;\n char * s = buf ;\n * s = 0 ;\n # define ff2s_check_flag ( X ) if ( f & X ## _FLAG ) {\n s = strmov ( s , # X \" \" ) ;\n f &= ~ X ## _FLAG ;\n }\n ff2s_check_flag ( NOT_NULL ) ;\n ff2s_check_flag ( PRI_KEY ) ;\n ff2s_check_flag ( UNIQUE_KEY ) ;\n ff2s_check_flag ( MULTIPLE_KEY ) ;\n ff2s_check_flag ( BLOB ) ;\n ff2s_check_flag ( UNSIGNED ) ;\n ff2s_check_flag ( ZEROFILL ) ;\n ff2s_check_flag ( BINARY ) ;\n ff2s_check_flag ( ENUM ) ;\n ff2s_check_flag ( AUTO_INCREMENT ) ;\n ff2s_check_flag ( TIMESTAMP ) ;\n ff2s_check_flag ( SET ) ;\n ff2s_check_flag ( NO_DEFAULT_VALUE ) ;\n ff2s_check_flag ( NUM ) ;\n ff2s_check_flag ( PART_KEY ) ;\n ff2s_check_flag ( GROUP ) ;\n ff2s_check_flag ( UNIQUE ) ;\n ff2s_check_flag ( BINCMP ) ;\n ff2s_check_flag ( ON_UPDATE_NOW ) ;\n # undef ff2s_check_flag if ( f ) sprintf ( s , \" unknows=0x%04x\" , f ) ;\n return buf ;\n }"}
{"idx": 86, "target": 1, "func": "static int parse_vType ( tvbuff_t * tvb , int offset , guint16 * vtype ) {\n guint16 tmp_vtype = tvb_get_letohs ( tvb , offset ) ;\n guint16 modifier = tmp_vtype & 0xFF00 ;\n switch ( tmp_vtype & 0xFF ) {\n case VT_EMPTY : * vtype = VT_EMPTY ;\n break ;\n case VT_NULL : * vtype = VT_NULL ;\n break ;\n case VT_I2 : * vtype = VT_I2 ;\n break ;\n case VT_I4 : * vtype = VT_I4 ;\n break ;\n case VT_R4 : * vtype = VT_R4 ;\n break ;\n case VT_R8 : * vtype = VT_R8 ;\n break ;\n case VT_CY : * vtype = VT_CY ;\n break ;\n case VT_DATE : * vtype = VT_DATE ;\n break ;\n case VT_BSTR : * vtype = VT_BSTR ;\n break ;\n case VT_ERROR : * vtype = VT_ERROR ;\n break ;\n case VT_BOOL : * vtype = VT_BOOL ;\n break ;\n case VT_VARIANT : * vtype = VT_VARIANT ;\n break ;\n case VT_DECIMAL : * vtype = VT_DECIMAL ;\n break ;\n case VT_I1 : * vtype = VT_I1 ;\n break ;\n case VT_UI1 : * vtype = VT_UI1 ;\n break ;\n case VT_UI2 : * vtype = VT_UI2 ;\n break ;\n case VT_UI4 : * vtype = VT_UI4 ;\n break ;\n case VT_I8 : * vtype = VT_I8 ;\n break ;\n case VT_UI8 : * vtype = VT_UI8 ;\n break ;\n case VT_INT : * vtype = VT_INT ;\n break ;\n case VT_UINT : * vtype = VT_UINT ;\n break ;\n case VT_LPSTR : * vtype = VT_LPSTR ;\n break ;\n case VT_LPWSTR : * vtype = VT_LPWSTR ;\n break ;\n case VT_COMPRESSED_LPWSTR : * vtype = VT_COMPRESSED_LPWSTR ;\n break ;\n case VT_FILETIME : * vtype = VT_FILETIME ;\n break ;\n case VT_BLOB : * vtype = VT_BLOB ;\n break ;\n case VT_BLOB_OBJECT : * vtype = VT_BLOB_OBJECT ;\n break ;\n case VT_CLSID : * vtype = VT_CLSID ;\n break ;\n default : DISSECTOR_ASSERT ( FALSE ) ;\n break ;\n }\n if ( modifier ) {\n switch ( modifier ) {\n case VT_VECTOR : * vtype |= VT_VECTOR ;\n break ;\n case VT_ARRAY : * vtype |= VT_ARRAY ;\n break ;\n default : DISSECTOR_ASSERT ( FALSE ) ;\n break ;\n }\n }\n return offset + 2 ;\n }"}
{"idx": 87, "target": 0, "func": "static int mime_header_encoder_block_collector ( int c , void * data ) {\n int n ;\n struct mime_header_encoder_data * pe = ( struct mime_header_encoder_data * ) data ;\n switch ( pe -> status2 ) {\n case 1 : pe -> prevpos = pe -> outdev . pos ;\n mbfl_convert_filter_copy ( pe -> conv2_filter , pe -> conv2_filter_backup ) ;\n mbfl_convert_filter_copy ( pe -> encod_filter , pe -> encod_filter_backup ) ;\n ( * pe -> conv2_filter -> filter_function ) ( c , pe -> conv2_filter ) ;\n ( * pe -> conv2_filter -> filter_flush ) ( pe -> conv2_filter ) ;\n ( * pe -> encod_filter -> filter_flush ) ( pe -> encod_filter ) ;\n n = pe -> outdev . pos - pe -> linehead + pe -> firstindent ;\n pe -> outdev . pos = pe -> prevpos ;\n mbfl_convert_filter_copy ( pe -> conv2_filter_backup , pe -> conv2_filter ) ;\n mbfl_convert_filter_copy ( pe -> encod_filter_backup , pe -> encod_filter ) ;\n if ( n >= 74 ) {\n ( * pe -> conv2_filter -> filter_flush ) ( pe -> conv2_filter ) ;\n ( * pe -> encod_filter -> filter_flush ) ( pe -> encod_filter ) ;\n mbfl_memory_device_strncat ( & pe -> outdev , \"\\x3f\\x3d\" , 2 ) ;\n mbfl_memory_device_strncat ( & pe -> outdev , pe -> lwsp , pe -> lwsplen ) ;\n pe -> linehead = pe -> outdev . pos ;\n pe -> firstindent = 0 ;\n mbfl_memory_device_strncat ( & pe -> outdev , pe -> encname , pe -> encnamelen ) ;\n c = ( * pe -> conv2_filter -> filter_function ) ( c , pe -> conv2_filter ) ;\n }\n else {\n c = ( * pe -> conv2_filter -> filter_function ) ( c , pe -> conv2_filter ) ;\n }\n break ;\n default : mbfl_memory_device_strncat ( & pe -> outdev , pe -> encname , pe -> encnamelen ) ;\n c = ( * pe -> conv2_filter -> filter_function ) ( c , pe -> conv2_filter ) ;\n pe -> status2 = 1 ;\n break ;\n }\n return c ;\n }"}
{"idx": 88, "target": 0, "func": "static gpgme_error_t gpgsm_set_fd ( engine_gpgsm_t gpgsm , fd_type_t fd_type , const char * opt ) {\n gpg_error_t err = 0 ;\n char line [ COMMANDLINELEN ] ;\n char * which ;\n iocb_data_t * iocb_data ;\n # if USE_DESCRIPTOR_PASSING int dir ;\n # endif switch ( fd_type ) {\n case INPUT_FD : which = \"INPUT\" ;\n iocb_data = & gpgsm -> input_cb ;\n break ;\n case OUTPUT_FD : which = \"OUTPUT\" ;\n iocb_data = & gpgsm -> output_cb ;\n break ;\n case MESSAGE_FD : which = \"MESSAGE\" ;\n iocb_data = & gpgsm -> message_cb ;\n break ;\n default : return gpg_error ( GPG_ERR_INV_VALUE ) ;\n }\n # if USE_DESCRIPTOR_PASSING dir = iocb_data -> dir ;\n iocb_data -> server_fd = _gpgme_data_get_fd ( iocb_data -> data ) ;\n if ( iocb_data -> server_fd < 0 ) {\n int fds [ 2 ] ;\n if ( _gpgme_io_pipe ( fds , dir ) < 0 ) return gpg_error_from_syserror ( ) ;\n iocb_data -> fd = dir ? fds [ 0 ] : fds [ 1 ] ;\n iocb_data -> server_fd = dir ? fds [ 1 ] : fds [ 0 ] ;\n if ( _gpgme_io_set_close_notify ( iocb_data -> fd , close_notify_handler , gpgsm ) ) {\n err = gpg_error ( GPG_ERR_GENERAL ) ;\n goto leave_set_fd ;\n }\n }\n err = assuan_sendfd ( gpgsm -> assuan_ctx , iocb_data -> server_fd ) ;\n if ( err ) goto leave_set_fd ;\n _gpgme_io_close ( iocb_data -> server_fd ) ;\n iocb_data -> server_fd = - 1 ;\n if ( opt ) snprintf ( line , COMMANDLINELEN , \"%s FD %s\" , which , opt ) ;\n else snprintf ( line , COMMANDLINELEN , \"%s FD\" , which ) ;\n # else if ( opt ) snprintf ( line , COMMANDLINELEN , \"%s FD=%s %s\" , which , iocb_data -> server_fd_str , opt ) ;\n else snprintf ( line , COMMANDLINELEN , \"%s FD=%s\" , which , iocb_data -> server_fd_str ) ;\n # endif err = gpgsm_assuan_simple_command ( gpgsm -> assuan_ctx , line , NULL , NULL ) ;\n # if USE_DESCRIPTOR_PASSING leave_set_fd : if ( err ) {\n _gpgme_io_close ( iocb_data -> fd ) ;\n iocb_data -> fd = - 1 ;\n if ( iocb_data -> server_fd != - 1 ) {\n _gpgme_io_close ( iocb_data -> server_fd ) ;\n iocb_data -> server_fd = - 1 ;\n }\n }\n # endif return err ;\n }"}
{"idx": 89, "target": 0, "func": "static Asn1Generic * Asn1GenericNew ( void ) {\n Asn1Generic * obj ;\n obj = SCMalloc ( sizeof ( Asn1Generic ) ) ;\n if ( obj != NULL ) memset ( obj , 0 , sizeof ( Asn1Generic ) ) ;\n return obj ;\n }"}
{"idx": 90, "target": 1, "func": "static void fadst4 ( const int16_t * input , int16_t * output ) {\n int x0 , x1 , x2 , x3 ;\n int s0 , s1 , s2 , s3 , s4 , s5 , s6 , s7 ;\n x0 = input [ 0 ] ;\n x1 = input [ 1 ] ;\n x2 = input [ 2 ] ;\n x3 = input [ 3 ] ;\n if ( ! ( x0 | x1 | x2 | x3 ) ) {\n output [ 0 ] = output [ 1 ] = output [ 2 ] = output [ 3 ] = 0 ;\n return ;\n }\n s0 = sinpi_1_9 * x0 ;\n s1 = sinpi_4_9 * x0 ;\n s2 = sinpi_2_9 * x1 ;\n s3 = sinpi_1_9 * x1 ;\n s4 = sinpi_3_9 * x2 ;\n s5 = sinpi_4_9 * x3 ;\n s6 = sinpi_2_9 * x3 ;\n s7 = x0 + x1 - x3 ;\n x0 = s0 + s2 + s5 ;\n x1 = sinpi_3_9 * s7 ;\n x2 = s1 - s3 + s6 ;\n x3 = s4 ;\n s0 = x0 + x3 ;\n s1 = x1 ;\n s2 = x2 - x3 ;\n s3 = x2 - x0 + x3 ;\n output [ 0 ] = fdct_round_shift ( s0 ) ;\n output [ 1 ] = fdct_round_shift ( s1 ) ;\n output [ 2 ] = fdct_round_shift ( s2 ) ;\n output [ 3 ] = fdct_round_shift ( s3 ) ;\n }"}
{"idx": 91, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n BinkAudioContext * s = avctx -> priv_data ;\n AVFrame * frame = data ;\n GetBitContext * gb = & s -> gb ;\n int ret , consumed = 0 ;\n if ( ! get_bits_left ( gb ) ) {\n uint8_t * buf ;\n if ( ! avpkt -> size ) {\n * got_frame_ptr = 0 ;\n return 0 ;\n }\n if ( avpkt -> size < 4 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Packet is too small\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n buf = av_realloc ( s -> packet_buffer , avpkt -> size + FF_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( ! buf ) return AVERROR ( ENOMEM ) ;\n s -> packet_buffer = buf ;\n memcpy ( s -> packet_buffer , avpkt -> data , avpkt -> size ) ;\n init_get_bits ( gb , s -> packet_buffer , avpkt -> size * 8 ) ;\n consumed = avpkt -> size ;\n skip_bits_long ( gb , 32 ) ;\n }\n frame -> nb_samples = s -> frame_len ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( decode_block ( s , ( float * * ) frame -> extended_data , avctx -> codec -> id == AV_CODEC_ID_BINKAUDIO_DCT ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Incomplete packet\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n get_bits_align32 ( gb ) ;\n frame -> nb_samples = s -> block_size / avctx -> channels ;\n * got_frame_ptr = 1 ;\n return consumed ;\n }"}
{"idx": 92, "target": 0, "func": "static uint32_t gic_dist_readw ( void * opaque , hwaddr offset ) {\n uint32_t val ;\n val = gic_dist_readb ( opaque , offset ) ;\n val |= gic_dist_readb ( opaque , offset + 1 ) << 8 ;\n return val ;\n }"}
{"idx": 93, "target": 0, "func": "int vp9_hex_search ( const MACROBLOCK * x , MV * ref_mv , int search_param , int sad_per_bit , int do_init_search , int * sad_list , const vp9_variance_fn_ptr_t * vfp , int use_mvcost , const MV * center_mv , MV * best_mv ) {\n static const int hex_num_candidates [ MAX_PATTERN_SCALES ] = {\n 8 , 6 , 6 , 6 , 6 , 6 , 6 , 6 , 6 , 6 , 6 }\n ;\n static const MV hex_candidates [ MAX_PATTERN_SCALES ] [ MAX_PATTERN_CANDIDATES ] = {\n {\n {\n - 1 , - 1 }\n , {\n 0 , - 1 }\n , {\n 1 , - 1 }\n , {\n 1 , 0 }\n , {\n 1 , 1 }\n , {\n 0 , 1 }\n , {\n - 1 , 1 }\n , {\n - 1 , 0 }\n }\n , {\n {\n - 1 , - 2 }\n , {\n 1 , - 2 }\n , {\n 2 , 0 }\n , {\n 1 , 2 }\n , {\n - 1 , 2 }\n , {\n - 2 , 0 }\n }\n , {\n {\n - 2 , - 4 }\n , {\n 2 , - 4 }\n , {\n 4 , 0 }\n , {\n 2 , 4 }\n , {\n - 2 , 4 }\n , {\n - 4 , 0 }\n }\n , {\n {\n - 4 , - 8 }\n , {\n 4 , - 8 }\n , {\n 8 , 0 }\n , {\n 4 , 8 }\n , {\n - 4 , 8 }\n , {\n - 8 , 0 }\n }\n , {\n {\n - 8 , - 16 }\n , {\n 8 , - 16 }\n , {\n 16 , 0 }\n , {\n 8 , 16 }\n , {\n - 8 , 16 }\n , {\n - 16 , 0 }\n }\n , {\n {\n - 16 , - 32 }\n , {\n 16 , - 32 }\n , {\n 32 , 0 }\n , {\n 16 , 32 }\n , {\n - 16 , 32 }\n , {\n - 32 , 0 }\n }\n , {\n {\n - 32 , - 64 }\n , {\n 32 , - 64 }\n , {\n 64 , 0 }\n , {\n 32 , 64 }\n , {\n - 32 , 64 }\n , {\n - 64 , 0 }\n }\n , {\n {\n - 64 , - 128 }\n , {\n 64 , - 128 }\n , {\n 128 , 0 }\n , {\n 64 , 128 }\n , {\n - 64 , 128 }\n , {\n - 128 , 0 }\n }\n , {\n {\n - 128 , - 256 }\n , {\n 128 , - 256 }\n , {\n 256 , 0 }\n , {\n 128 , 256 }\n , {\n - 128 , 256 }\n , {\n - 256 , 0 }\n }\n , {\n {\n - 256 , - 512 }\n , {\n 256 , - 512 }\n , {\n 512 , 0 }\n , {\n 256 , 512 }\n , {\n - 256 , 512 }\n , {\n - 512 , 0 }\n }\n , {\n {\n - 512 , - 1024 }\n , {\n 512 , - 1024 }\n , {\n 1024 , 0 }\n , {\n 512 , 1024 }\n , {\n - 512 , 1024 }\n , {\n - 1024 , 0 }\n }\n , }\n ;\n return vp9_pattern_search ( x , ref_mv , search_param , sad_per_bit , do_init_search , sad_list , vfp , use_mvcost , center_mv , best_mv , hex_num_candidates , hex_candidates ) ;\n }"}
{"idx": 94, "target": 0, "func": "static void pk_transaction_repo_remove ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) {\n PkBitfield transaction_flags ;\n const gchar * repo_id ;\n gboolean autoremove ;\n gboolean ret ;\n g_autoptr ( GError ) error = NULL ;\n g_autofree gchar * tmp = NULL ;\n g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;\n g_return_if_fail ( transaction -> priv -> tid != NULL ) ;\n g_variant_get ( params , \"(t&sb)\" , & transaction_flags , & repo_id , & autoremove ) ;\n tmp = pk_transaction_flag_bitfield_to_string ( transaction_flags ) ;\n g_debug ( \"RepoRemove method called: %s, %s, %i\" , tmp , repo_id , autoremove ) ;\n if ( ! pk_backend_is_implemented ( transaction -> priv -> backend , PK_ROLE_ENUM_REPO_REMOVE ) ) {\n g_set_error_literal ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NOT_SUPPORTED , \"RepoSetData not supported by backend\" ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n ret = pk_transaction_strvalidate ( repo_id , & error ) ;\n if ( ! ret ) {\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n transaction -> priv -> cached_repo_id = g_strdup ( repo_id ) ;\n transaction -> priv -> cached_transaction_flags = transaction_flags ;\n transaction -> priv -> cached_autoremove = autoremove ;\n pk_transaction_set_role ( transaction , PK_ROLE_ENUM_REPO_REMOVE ) ;\n ret = pk_transaction_obtain_authorization ( transaction , PK_ROLE_ENUM_REPO_REMOVE , & error ) ;\n if ( ! ret ) {\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n out : pk_transaction_dbus_return ( context , error ) ;\n }"}
{"idx": 95, "target": 1, "func": "static int parse_CRestriction ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree , struct CRestriction * v , const char * fmt , ... ) {\n proto_tree * tree ;\n proto_item * item ;\n const char * str , * txt ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CRestriction , & item , txt ) ;\n offset = parse_rType ( tvb , offset , tree , & v -> ulType , & str ) ;\n proto_item_append_text ( item , \" Type: %s\" , str ) ;\n v -> Weight = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_crestrict_weight , tvb , offset , 4 , v -> Weight ) ;\n offset += 4 ;\n switch ( v -> ulType ) {\n case RTNone : break ;\n case RTAnd : case RTOr : case RTProximity : case RTPhrase : {\n v -> u . RTAnd = EP_ALLOC ( struct CNodeRestriction ) ;\n offset = parse_CNodeRestriction ( tvb , offset , tree , pad_tree , v -> u . RTAnd , \"CNodeRestriction\" ) ;\n break ;\n }\n case RTNot : {\n v -> u . RTNot = EP_ALLOC ( struct CRestriction ) ;\n offset = parse_CRestriction ( tvb , offset , tree , pad_tree , v -> u . RTNot , \"CRestriction\" ) ;\n break ;\n }\n case RTProperty : {\n v -> u . RTProperty = EP_ALLOC ( struct CPropertyRestriction ) ;\n offset = parse_CPropertyRestriction ( tvb , offset , tree , pad_tree , v -> u . RTProperty , \"CPropertyRestriction\" ) ;\n break ;\n }\n case RTCoerce_Add : case RTCoerce_Multiply : case RTCoerce_Absolute : {\n v -> u . RTCoerce_Add = EP_ALLOC ( struct CCoercionRestriction ) ;\n offset = parse_CCoercionRestriction ( tvb , offset , tree , pad_tree , v -> u . RTCoerce_Add , \"CCoercionRestriction\" ) ;\n break ;\n }\n case RTContent : {\n v -> u . RTContent = EP_ALLOC ( struct CContentRestriction ) ;\n offset = parse_CContentRestriction ( tvb , offset , tree , pad_tree , v -> u . RTContent , \"CContentRestriction\" ) ;\n break ;\n }\n case RTReuseWhere : {\n v -> u . RTReuseWhere = EP_ALLOC ( struct CReuseWhere ) ;\n offset = parse_CReuseWhere ( tvb , offset , tree , pad_tree , v -> u . RTReuseWhere , \"CReuseWhere\" ) ;\n break ;\n }\n case RTNatLanguage : {\n v -> u . RTNatLanguage = EP_ALLOC ( struct CNatLanguageRestriction ) ;\n offset = parse_CNatLanguageRestriction ( tvb , offset , tree , pad_tree , v -> u . RTNatLanguage , \"CNatLanguageRestriction\" ) ;\n break ;\n }\n default : proto_item_append_text ( item , \" Not supported!\" ) ;\n }\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 96, "target": 1, "func": "static void UConverter_toUnicode_ISCII_OFFSETS_LOGIC ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n const char * source = ( char * ) args -> source ;\n UChar * target = args -> target ;\n const char * sourceLimit = args -> sourceLimit ;\n const UChar * targetLimit = args -> targetLimit ;\n uint32_t targetUniChar = 0x0000 ;\n uint8_t sourceChar = 0x0000 ;\n UConverterDataISCII * data ;\n UChar32 * toUnicodeStatus = NULL ;\n UChar32 tempTargetUniChar = 0x0000 ;\n UChar * contextCharToUnicode = NULL ;\n UBool found ;\n int i ;\n int offset = 0 ;\n if ( ( args -> converter == NULL ) || ( target < args -> target ) || ( source < args -> source ) ) {\n * err = U_ILLEGAL_ARGUMENT_ERROR ;\n return ;\n }\n data = ( UConverterDataISCII * ) ( args -> converter -> extraInfo ) ;\n contextCharToUnicode = & data -> contextCharToUnicode ;\n toUnicodeStatus = ( UChar32 * ) & args -> converter -> toUnicodeStatus ;\n while ( U_SUCCESS ( * err ) && source < sourceLimit ) {\n targetUniChar = missingCharMarker ;\n if ( target < targetLimit ) {\n sourceChar = ( unsigned char ) * ( source ) ++ ;\n if ( * contextCharToUnicode == ATR ) {\n if ( ( uint8_t ) ( PNJ - sourceChar ) <= PNJ - DEV ) {\n data -> currentDeltaToUnicode = ( uint16_t ) ( lookupTable [ sourceChar & 0x0F ] [ 0 ] * DELTA ) ;\n data -> currentMaskToUnicode = ( MaskEnum ) lookupTable [ sourceChar & 0x0F ] [ 1 ] ;\n }\n else if ( sourceChar == DEF ) {\n data -> currentDeltaToUnicode = data -> defDeltaToUnicode ;\n data -> currentMaskToUnicode = data -> defMaskToUnicode ;\n }\n else {\n if ( ( sourceChar >= 0x21 && sourceChar <= 0x3F ) ) {\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n * contextCharToUnicode = NO_CHAR_MARKER ;\n goto CALLBACK ;\n }\n }\n * contextCharToUnicode = NO_CHAR_MARKER ;\n continue ;\n }\n else if ( * contextCharToUnicode == EXT ) {\n if ( ( uint8_t ) ( EXT_RANGE_END - sourceChar ) <= ( EXT_RANGE_END - EXT_RANGE_BEGIN ) ) {\n if ( sourceChar == 0xBF || sourceChar == 0xB8 ) {\n targetUniChar = ( sourceChar == 0xBF ) ? DEV_ABBR_SIGN : DEV_ANUDATTA ;\n if ( validityTable [ ( uint8_t ) targetUniChar ] & data -> currentMaskToUnicode ) {\n * contextCharToUnicode = NO_CHAR_MARKER ;\n if ( data -> prevToUnicodeStatus ) {\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , ( source - args -> source - 1 ) , data -> prevToUnicodeStatus , 0 , err ) ;\n data -> prevToUnicodeStatus = 0x0000 ;\n }\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , ( source - args -> source - 2 ) , targetUniChar , data -> currentDeltaToUnicode , err ) ;\n continue ;\n }\n }\n targetUniChar = missingCharMarker ;\n * err = U_INVALID_CHAR_FOUND ;\n }\n else {\n * contextCharToUnicode = NO_CHAR_MARKER ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n goto CALLBACK ;\n }\n else if ( * contextCharToUnicode == ISCII_INV ) {\n if ( sourceChar == ISCII_HALANT ) {\n targetUniChar = 0x0020 ;\n }\n else {\n targetUniChar = ZWJ ;\n }\n if ( data -> prevToUnicodeStatus ) {\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , ( source - args -> source - 1 ) , data -> prevToUnicodeStatus , 0 , err ) ;\n data -> prevToUnicodeStatus = 0x0000 ;\n }\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , ( source - args -> source - 2 ) , targetUniChar , data -> currentDeltaToUnicode , err ) ;\n * contextCharToUnicode = NO_CHAR_MARKER ;\n }\n switch ( sourceChar ) {\n case ISCII_INV : case EXT : case ATR : * contextCharToUnicode = ( UChar ) sourceChar ;\n if ( * toUnicodeStatus != missingCharMarker ) {\n if ( data -> prevToUnicodeStatus ) {\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , ( source - args -> source - 1 ) , data -> prevToUnicodeStatus , 0 , err ) ;\n data -> prevToUnicodeStatus = 0x0000 ;\n }\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , ( source - args -> source - 2 ) , * toUnicodeStatus , data -> currentDeltaToUnicode , err ) ;\n * toUnicodeStatus = missingCharMarker ;\n }\n continue ;\n case ISCII_DANDA : if ( * contextCharToUnicode == ISCII_DANDA ) {\n targetUniChar = DOUBLE_DANDA ;\n * contextCharToUnicode = NO_CHAR_MARKER ;\n * toUnicodeStatus = missingCharMarker ;\n }\n else {\n GET_MAPPING ( sourceChar , targetUniChar , data ) ;\n * contextCharToUnicode = sourceChar ;\n }\n break ;\n case ISCII_HALANT : if ( * contextCharToUnicode == ISCII_HALANT ) {\n targetUniChar = ZWNJ ;\n * contextCharToUnicode = NO_CHAR_MARKER ;\n }\n else {\n GET_MAPPING ( sourceChar , targetUniChar , data ) ;\n * contextCharToUnicode = sourceChar ;\n }\n break ;\n case 0x0A : case 0x0D : data -> resetToDefaultToUnicode = TRUE ;\n GET_MAPPING ( sourceChar , targetUniChar , data ) ;\n * contextCharToUnicode = sourceChar ;\n break ;\n case ISCII_VOWEL_SIGN_E : i = 1 ;\n found = FALSE ;\n for ( ;\n i < vowelSignESpecialCases [ 0 ] [ 0 ] ;\n i ++ ) {\n U_ASSERT ( i < UPRV_LENGTHOF ( vowelSignESpecialCases ) ) ;\n if ( vowelSignESpecialCases [ i ] [ 0 ] == ( uint8_t ) * contextCharToUnicode ) {\n targetUniChar = vowelSignESpecialCases [ i ] [ 1 ] ;\n found = TRUE ;\n break ;\n }\n }\n if ( found ) {\n if ( validityTable [ ( uint8_t ) targetUniChar ] & data -> currentMaskToUnicode ) {\n * contextCharToUnicode = NO_CHAR_MARKER ;\n * toUnicodeStatus = missingCharMarker ;\n break ;\n }\n }\n GET_MAPPING ( sourceChar , targetUniChar , data ) ;\n * contextCharToUnicode = sourceChar ;\n break ;\n case ISCII_NUKTA : if ( * contextCharToUnicode == ISCII_HALANT ) {\n targetUniChar = ZWJ ;\n * contextCharToUnicode = NO_CHAR_MARKER ;\n break ;\n }\n else if ( data -> currentDeltaToUnicode == PNJ_DELTA && data -> contextCharToUnicode == 0xc0 ) {\n if ( data -> prevToUnicodeStatus ) {\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , ( source - args -> source - 1 ) , data -> prevToUnicodeStatus , 0 , err ) ;\n data -> prevToUnicodeStatus = 0x0000 ;\n }\n targetUniChar = PNJ_RRA ;\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , ( source - args -> source ) - 2 , targetUniChar , 0 , err ) ;\n if ( U_SUCCESS ( * err ) ) {\n targetUniChar = PNJ_SIGN_VIRAMA ;\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , ( source - args -> source ) - 2 , targetUniChar , 0 , err ) ;\n if ( U_SUCCESS ( * err ) ) {\n targetUniChar = PNJ_HA ;\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , ( source - args -> source ) - 2 , targetUniChar , 0 , err ) ;\n }\n else {\n args -> converter -> UCharErrorBuffer [ args -> converter -> UCharErrorBufferLength ++ ] = PNJ_HA ;\n }\n }\n else {\n args -> converter -> UCharErrorBuffer [ args -> converter -> UCharErrorBufferLength ++ ] = PNJ_SIGN_VIRAMA ;\n args -> converter -> UCharErrorBuffer [ args -> converter -> UCharErrorBufferLength ++ ] = PNJ_HA ;\n }\n * toUnicodeStatus = missingCharMarker ;\n data -> contextCharToUnicode = NO_CHAR_MARKER ;\n continue ;\n }\n else {\n i = 1 ;\n found = FALSE ;\n for ( ;\n i < nuktaSpecialCases [ 0 ] [ 0 ] ;\n i ++ ) {\n if ( nuktaSpecialCases [ i ] [ 0 ] == ( uint8_t ) * contextCharToUnicode ) {\n targetUniChar = nuktaSpecialCases [ i ] [ 1 ] ;\n found = TRUE ;\n break ;\n }\n }\n if ( found ) {\n if ( validityTable [ ( uint8_t ) targetUniChar ] & data -> currentMaskToUnicode ) {\n * contextCharToUnicode = NO_CHAR_MARKER ;\n * toUnicodeStatus = missingCharMarker ;\n if ( data -> currentDeltaToUnicode == PNJ_DELTA ) {\n if ( data -> prevToUnicodeStatus ) {\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , ( source - args -> source - 1 ) , data -> prevToUnicodeStatus , 0 , err ) ;\n data -> prevToUnicodeStatus = 0x0000 ;\n }\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , ( source - args -> source - 2 ) , targetUniChar , data -> currentDeltaToUnicode , err ) ;\n continue ;\n }\n break ;\n }\n }\n U_FALLTHROUGH ;\n }\n default : GET_MAPPING ( sourceChar , targetUniChar , data ) ;\n * contextCharToUnicode = sourceChar ;\n break ;\n }\n if ( * toUnicodeStatus != missingCharMarker ) {\n if ( data -> currentDeltaToUnicode == PNJ_DELTA && data -> prevToUnicodeStatus != 0 && isPNJConsonant ( data -> prevToUnicodeStatus ) && ( * toUnicodeStatus + PNJ_DELTA ) == PNJ_SIGN_VIRAMA && ( targetUniChar + PNJ_DELTA ) == data -> prevToUnicodeStatus ) {\n offset = ( int ) ( source - args -> source - 3 ) ;\n tempTargetUniChar = PNJ_ADHAK ;\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , offset , tempTargetUniChar , 0 , err ) ;\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , offset , data -> prevToUnicodeStatus , 0 , err ) ;\n data -> prevToUnicodeStatus = 0x0000 ;\n * toUnicodeStatus = missingCharMarker ;\n continue ;\n }\n else {\n if ( data -> prevToUnicodeStatus ) {\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , ( source - args -> source - 1 ) , data -> prevToUnicodeStatus , 0 , err ) ;\n data -> prevToUnicodeStatus = 0x0000 ;\n }\n if ( data -> currentDeltaToUnicode == PNJ_DELTA && ( targetUniChar + PNJ_DELTA ) == PNJ_BINDI && isPNJBindiTippi ( ( * toUnicodeStatus + PNJ_DELTA ) ) ) {\n targetUniChar = PNJ_TIPPI - PNJ_DELTA ;\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , ( source - args -> source - 2 ) , * toUnicodeStatus , PNJ_DELTA , err ) ;\n }\n else if ( data -> currentDeltaToUnicode == PNJ_DELTA && ( targetUniChar + PNJ_DELTA ) == PNJ_SIGN_VIRAMA && isPNJConsonant ( ( * toUnicodeStatus + PNJ_DELTA ) ) ) {\n data -> prevToUnicodeStatus = * toUnicodeStatus + PNJ_DELTA ;\n }\n else {\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , ( source - args -> source - 2 ) , * toUnicodeStatus , data -> currentDeltaToUnicode , err ) ;\n }\n }\n * toUnicodeStatus = missingCharMarker ;\n }\n if ( targetUniChar != missingCharMarker ) {\n * toUnicodeStatus = ( UChar ) targetUniChar ;\n if ( data -> resetToDefaultToUnicode == TRUE ) {\n data -> currentDeltaToUnicode = data -> defDeltaToUnicode ;\n data -> currentMaskToUnicode = data -> defMaskToUnicode ;\n data -> resetToDefaultToUnicode = FALSE ;\n }\n }\n else {\n * err = U_INVALID_CHAR_FOUND ;\n CALLBACK : args -> converter -> toUBytes [ 0 ] = ( uint8_t ) sourceChar ;\n args -> converter -> toULength = 1 ;\n break ;\n }\n }\n else {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n if ( U_SUCCESS ( * err ) && args -> flush && source == sourceLimit ) {\n UConverter * cnv = args -> converter ;\n if ( * contextCharToUnicode == ATR || * contextCharToUnicode == EXT || * contextCharToUnicode == ISCII_INV ) {\n cnv -> toUBytes [ 0 ] = ( uint8_t ) * contextCharToUnicode ;\n cnv -> toULength = 1 ;\n * contextCharToUnicode = NO_CHAR_MARKER ;\n }\n else {\n cnv -> toULength = 0 ;\n }\n if ( * toUnicodeStatus != missingCharMarker ) {\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , ( source - args -> source - 1 ) , * toUnicodeStatus , data -> currentDeltaToUnicode , err ) ;\n * toUnicodeStatus = missingCharMarker ;\n }\n }\n args -> target = target ;\n args -> source = source ;\n }"}
{"idx": 97, "target": 0, "func": "static guint composite_offset ( const tvbuff_t * tvb _U_ , const guint counter ) {\n return counter ;\n }"}
{"idx": 98, "target": 1, "func": "static void dissect_q931_IEs ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * root_tree , proto_tree * q931_tree , gboolean is_over_ip , int offset , int initial_codeset ) {\n proto_item * ti ;\n proto_tree * ie_tree = NULL ;\n guint8 info_element ;\n guint8 dummy ;\n guint16 info_element_len ;\n int codeset , locked_codeset ;\n gboolean non_locking_shift , first_segment ;\n tvbuff_t * h225_tvb , * next_tvb ;\n e164_info_t e164_info ;\n e164_info . e164_number_type = NONE ;\n e164_info . nature_of_address = NONE ;\n e164_info . E164_number_str = \"\" ;\n e164_info . E164_number_length = NONE ;\n codeset = locked_codeset = initial_codeset ;\n first_segment = FALSE ;\n while ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n info_element = tvb_get_guint8 ( tvb , offset ) ;\n if ( ( info_element & Q931_IE_SO_MASK ) && ( ( info_element & Q931_IE_SO_IDENTIFIER_MASK ) == Q931_IE_SHIFT ) ) {\n non_locking_shift = info_element & Q931_IE_SHIFT_NON_LOCKING ;\n codeset = info_element & Q931_IE_SHIFT_CODESET ;\n if ( ! non_locking_shift ) locked_codeset = codeset ;\n if ( q931_tree != NULL ) {\n proto_tree_add_uint_format ( q931_tree , hf_q931_locking_codeset , tvb , offset , 1 , codeset , \"%s shift to codeset %u: %s\" , ( non_locking_shift ? \"Non-locking\" : \"Locking\" ) , codeset , val_to_str ( codeset , q931_codeset_vals , \"Unknown (0x%02X)\" ) ) ;\n }\n offset += 1 ;\n continue ;\n }\n if ( info_element & Q931_IE_SO_MASK ) {\n if ( dissector_get_uint_handle ( codeset_dissector_table , codeset ) || dissector_get_uint_handle ( ie_dissector_table , ( codeset << 8 ) | ( info_element & Q931_IE_SO_IDENTIFIER_MASK ) ) ) {\n next_tvb = tvb_new_subset_length ( tvb , offset , 1 ) ;\n if ( dissector_try_uint ( ie_dissector_table , ( codeset << 8 ) | ( info_element & Q931_IE_SO_IDENTIFIER_MASK ) , next_tvb , pinfo , q931_tree ) || dissector_try_uint ( codeset_dissector_table , codeset , next_tvb , pinfo , q931_tree ) ) {\n offset += 1 ;\n codeset = locked_codeset ;\n continue ;\n }\n }\n switch ( ( codeset << 8 ) | ( info_element & Q931_IE_SO_IDENTIFIER_MASK ) ) {\n case CS0 | Q931_IE_MORE_DATA_OR_SEND_COMP : switch ( info_element ) {\n case Q931_IE_MORE_DATA : proto_tree_add_item ( q931_tree , hf_q931_more_data , tvb , offset , 1 , ENC_NA ) ;\n break ;\n case Q931_IE_SENDING_COMPLETE : proto_tree_add_item ( q931_tree , hf_q931_sending_complete , tvb , offset , 1 , ENC_NA ) ;\n break ;\n default : proto_tree_add_expert_format ( q931_tree , pinfo , & ei_q931_information_element , tvb , offset , 1 , \"Unknown information element (0x%02X)\" , info_element ) ;\n break ;\n }\n break ;\n case CS0 | Q931_IE_CONGESTION_LEVEL : proto_tree_add_item ( q931_tree , hf_q931_congestion_level , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n break ;\n case CS0 | Q931_IE_REPEAT_INDICATOR : proto_tree_add_item ( q931_tree , hf_q931_repeat_indicator , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n break ;\n default : proto_tree_add_expert_format ( q931_tree , pinfo , & ei_q931_information_element , tvb , offset , 1 , \"Unknown information element (0x%02X)\" , info_element ) ;\n break ;\n }\n offset += 1 ;\n codeset = locked_codeset ;\n continue ;\n }\n if ( is_over_ip && tvb_bytes_exist ( tvb , offset , 4 ) && codeset == 0 && tvb_get_guint8 ( tvb , offset ) == Q931_IE_USER_USER && tvb_get_guint8 ( tvb , offset + 3 ) == Q931_PROTOCOL_DISCRIMINATOR_ASN1 ) {\n info_element_len = tvb_get_ntohs ( tvb , offset + 1 ) ;\n if ( q931_tree != NULL ) {\n ie_tree = proto_tree_add_subtree ( q931_tree , tvb , offset , 1 + 2 + info_element_len , ett_q931_ie [ info_element ] , NULL , val_to_str ( info_element , q931_info_element_vals [ codeset ] , \"Unknown information element (0x%02X)\" ) ) ;\n proto_tree_add_uint_format_value ( ie_tree , hf_q931_information_element , tvb , offset , 1 , info_element , \"%s\" , val_to_str ( info_element , q931_info_element_vals [ codeset ] , \"Unknown (0x%02X)\" ) ) ;\n proto_tree_add_item ( ie_tree , hf_q931_information_element_len , tvb , offset + 1 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_q931_user_protocol_discriminator , tvb , offset + 3 , 1 , ENC_NA ) ;\n }\n if ( info_element_len > 1 ) {\n if ( ! pinfo -> can_desegment ) {\n info_element_len = MIN ( info_element_len , tvb_captured_length_remaining ( tvb , offset + 3 ) ) ;\n }\n if ( h225_handle != NULL ) {\n h225_tvb = tvb_new_subset_length ( tvb , offset + 4 , info_element_len - 1 ) ;\n call_dissector ( h225_handle , h225_tvb , pinfo , root_tree ) ;\n }\n else {\n proto_tree_add_item ( ie_tree , hf_q931_user_information_bytes , tvb , offset + 4 , info_element_len - 1 , ENC_NA ) ;\n }\n }\n offset += 1 + 2 + info_element_len ;\n }\n else {\n info_element_len = tvb_get_guint8 ( tvb , offset + 1 ) ;\n if ( first_segment && ( tvb_reported_length_remaining ( tvb , offset + 2 ) < info_element_len ) ) {\n proto_tree_add_expert ( q931_tree , pinfo , & ei_q931_incomplete_ie , tvb , offset , - 1 ) ;\n break ;\n }\n if ( dissector_get_uint_handle ( codeset_dissector_table , codeset ) || dissector_get_uint_handle ( ie_dissector_table , ( codeset << 8 ) | info_element ) ) {\n next_tvb = tvb_new_subset_length ( tvb , offset , info_element_len + 2 ) ;\n if ( dissector_try_uint ( ie_dissector_table , ( codeset << 8 ) | info_element , next_tvb , pinfo , q931_tree ) || dissector_try_uint ( codeset_dissector_table , codeset , next_tvb , pinfo , q931_tree ) ) {\n offset += 2 + info_element_len ;\n codeset = locked_codeset ;\n continue ;\n }\n }\n ie_tree = proto_tree_add_subtree ( q931_tree , tvb , offset , 1 + 1 + info_element_len , ett_q931_ie [ info_element ] , & ti , val_to_str ( info_element , q931_info_element_vals [ codeset ] , \"Unknown information element (0x%02X)\" ) ) ;\n proto_tree_add_uint_format_value ( ie_tree , hf_q931_information_element , tvb , offset , 1 , info_element , \"%s\" , val_to_str ( info_element , q931_info_element_vals [ codeset ] , \"Unknown (0x%02X)\" ) ) ;\n proto_tree_add_uint ( ie_tree , hf_q931_information_element_len , tvb , offset + 1 , 1 , info_element_len ) ;\n if ( ( ( codeset << 8 ) | info_element ) == ( CS0 | Q931_IE_SEGMENTED_MESSAGE ) ) {\n dissect_q931_segmented_message_ie ( tvb , pinfo , offset + 2 , info_element_len , ie_tree , ti ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" of %s\" , val_to_str_ext ( tvb_get_guint8 ( tvb , offset + 3 ) , & q931_message_type_vals_ext , \"Unknown message type (0x%02X)\" ) ) ;\n if ( tvb_get_guint8 ( tvb , offset + 2 ) & 0x80 ) {\n first_segment = TRUE ;\n }\n else {\n proto_tree_add_item ( q931_tree , hf_q931_message_segment , tvb , offset + 4 , - 1 , ENC_NA ) ;\n info_element_len += tvb_reported_length_remaining ( tvb , offset + 4 ) ;\n }\n }\n else {\n switch ( ( codeset << 8 ) | info_element ) {\n case CS0 | Q931_IE_BEARER_CAPABILITY : case CS0 | Q931_IE_LOW_LAYER_COMPAT : if ( q931_tree != NULL ) {\n dissect_q931_bearer_capability_ie ( tvb , offset + 2 , info_element_len , ie_tree ) ;\n }\n break ;\n case CS0 | Q931_IE_CAUSE : dissect_q931_cause_ie_unsafe ( tvb , offset + 2 , info_element_len , ie_tree , hf_q931_cause_value , & dummy , q931_info_element_vals0 ) ;\n break ;\n case CS0 | Q931_IE_CHANGE_STATUS : if ( q931_tree != NULL ) {\n dissect_q931_change_status_ie ( tvb , offset + 2 , info_element_len , ie_tree ) ;\n }\n break ;\n case CS0 | Q931_IE_CALL_STATE : if ( q931_tree != NULL ) {\n dissect_q931_call_state_ie ( tvb , offset + 2 , info_element_len , ie_tree ) ;\n }\n break ;\n case CS0 | Q931_IE_CHANNEL_IDENTIFICATION : if ( q931_tree != NULL ) {\n dissect_q931_channel_identification_ie ( tvb , offset + 2 , info_element_len , ie_tree ) ;\n }\n break ;\n case CS0 | Q931_IE_PROGRESS_INDICATOR : if ( q931_tree != NULL ) {\n dissect_q931_progress_indicator_ie ( tvb , offset + 2 , info_element_len , ie_tree ) ;\n }\n break ;\n case CS0 | Q931_IE_NETWORK_SPECIFIC_FACIL : case CS0 | Q931_IE_TRANSIT_NETWORK_SEL : if ( q931_tree != NULL ) {\n dissect_q931_ns_facilities_ie ( tvb , offset + 2 , info_element_len , ie_tree ) ;\n }\n break ;\n case CS0 | Q931_IE_NOTIFICATION_INDICATOR : if ( q931_tree != NULL ) {\n dissect_q931_notification_indicator_ie ( tvb , offset + 2 , info_element_len , ie_tree ) ;\n }\n break ;\n case CS0 | Q931_IE_DISPLAY : if ( q931_tree != NULL ) {\n dissect_q931_ia5_ie ( tvb , offset + 2 , info_element_len , ie_tree , hf_q931_display_information ) ;\n }\n break ;\n case CS0 | Q931_IE_DATE_TIME : dissect_q931_date_time_ie ( tvb , pinfo , offset + 2 , info_element_len , ie_tree ) ;\n break ;\n case CS0 | Q931_IE_KEYPAD_FACILITY : if ( q931_tree != NULL ) {\n dissect_q931_ia5_ie ( tvb , offset + 2 , info_element_len , ie_tree , hf_q931_keypad_facility ) ;\n }\n break ;\n case CS0 | Q931_IE_SIGNAL : dissect_q931_signal_ie ( tvb , pinfo , offset + 2 , info_element_len , ie_tree , ti ) ;\n break ;\n case CS0 | Q931_IE_INFORMATION_RATE : dissect_q931_information_rate_ie ( tvb , pinfo , offset + 2 , info_element_len , ie_tree , ti ) ;\n break ;\n case CS0 | Q931_IE_E2E_TRANSIT_DELAY : dissect_q931_e2e_transit_delay_ie ( tvb , pinfo , offset + 2 , info_element_len , ie_tree , ti ) ;\n break ;\n case CS0 | Q931_IE_TD_SELECTION_AND_INT : dissect_q931_td_selection_and_int_ie ( tvb , pinfo , offset + 2 , info_element_len , ie_tree , ti ) ;\n break ;\n case CS0 | Q931_IE_PL_BINARY_PARAMETERS : if ( q931_tree != NULL ) {\n dissect_q931_pl_binary_parameters_ie ( tvb , offset + 2 , info_element_len , ie_tree ) ;\n }\n break ;\n case CS0 | Q931_IE_PL_WINDOW_SIZE : if ( q931_tree != NULL ) {\n dissect_q931_pl_window_size_ie ( tvb , offset + 2 , info_element_len , ie_tree ) ;\n }\n break ;\n case CS0 | Q931_IE_PACKET_SIZE : if ( q931_tree != NULL ) {\n dissect_q931_packet_size_ie ( tvb , offset + 2 , info_element_len , ie_tree ) ;\n }\n break ;\n case CS0 | Q931_IE_CUG : if ( q931_tree != NULL ) {\n dissect_q931_cug_ie ( tvb , offset + 2 , info_element_len , ie_tree ) ;\n }\n break ;\n case CS0 | Q931_IE_REVERSE_CHARGE_IND : if ( q931_tree != NULL ) {\n dissect_q931_reverse_charge_ind_ie ( tvb , offset + 2 , info_element_len , ie_tree ) ;\n }\n break ;\n case CS0 | Q931_IE_CONNECTED_NUMBER_DEFAULT : if ( q931_tree != NULL ) {\n dissect_q931_number_ie ( tvb , offset + 2 , info_element_len , ie_tree , hf_q931_connected_number , e164_info ) ;\n }\n break ;\n case CS0 | Q931_IE_CALLING_PARTY_NUMBER : e164_info . e164_number_type = CALLING_PARTY_NUMBER ;\n dissect_q931_number_ie ( tvb , offset + 2 , info_element_len , ie_tree , hf_q931_calling_party_number , e164_info ) ;\n break ;\n case CS0 | Q931_IE_CALLED_PARTY_NUMBER : e164_info . e164_number_type = CALLED_PARTY_NUMBER ;\n dissect_q931_number_ie ( tvb , offset + 2 , info_element_len , ie_tree , hf_q931_called_party_number , e164_info ) ;\n break ;\n case CS0 | Q931_IE_CALLING_PARTY_SUBADDR : case CS0 | Q931_IE_CALLED_PARTY_SUBADDR : if ( q931_tree != NULL ) {\n dissect_q931_party_subaddr_ie ( tvb , offset + 2 , info_element_len , ie_tree ) ;\n }\n break ;\n case CS0 | Q931_IE_REDIRECTING_NUMBER : if ( q931_tree != NULL ) {\n dissect_q931_number_ie ( tvb , offset + 2 , info_element_len , ie_tree , hf_q931_redirecting_number , e164_info ) ;\n }\n break ;\n case CS0 | Q931_IE_RESTART_INDICATOR : dissect_q931_restart_indicator_ie ( tvb , pinfo , offset + 2 , info_element_len , ie_tree , ti ) ;\n break ;\n case CS0 | Q931_IE_HIGH_LAYER_COMPAT : if ( q931_tree != NULL ) {\n dissect_q931_high_layer_compat_ie ( tvb , offset + 2 , info_element_len , ie_tree ) ;\n }\n break ;\n case CS0 | Q931_IE_USER_USER : if ( q931_tree != NULL ) {\n dissect_q931_user_user_ie ( tvb , pinfo , offset + 2 , info_element_len , ie_tree ) ;\n }\n break ;\n case CS5 | Q931_IE_PARTY_CATEGORY : if ( q931_tree != NULL ) {\n dissect_q931_party_category_ie ( tvb , offset + 2 , info_element_len , ie_tree ) ;\n }\n break ;\n case CS6 | Q931_IE_DISPLAY : if ( q931_tree != NULL ) {\n dissect_q931_ia5_ie ( tvb , offset + 2 , info_element_len , ie_tree , hf_q931_avaya_display ) ;\n }\n break ;\n default : if ( q931_tree != NULL ) {\n proto_tree_add_item ( ie_tree , hf_q931_data , tvb , offset + 2 , info_element_len , ENC_NA ) ;\n }\n break ;\n }\n }\n offset += 1 + 1 + info_element_len ;\n }\n codeset = locked_codeset ;\n }\n if ( have_valid_q931_pi ) {\n tap_queue_packet ( q931_tap , pinfo , q931_pi ) ;\n }\n have_valid_q931_pi = FALSE ;\n }"}
{"idx": 99, "target": 0, "func": "static void bamboo_machine_init ( void ) {\n qemu_register_machine ( & bamboo_machine ) ;\n }"}
{"idx": 100, "target": 0, "func": "rfbBool rfbSendFileTransferChunk ( rfbClientPtr cl ) {\n unsigned char readBuf [ sz_rfbBlockSize ] ;\n int bytesRead = 0 ;\n int retval = 0 ;\n fd_set wfds ;\n struct timeval tv ;\n int n ;\n # ifdef LIBVNCSERVER_HAVE_LIBZ unsigned char compBuf [ sz_rfbBlockSize + 1024 ] ;\n unsigned long nMaxCompSize = sizeof ( compBuf ) ;\n int nRetC = 0 ;\n # endif if ( cl -> screen -> permitFileTransfer != TRUE || ( cl -> screen -> getFileTransferPermission != NULL && cl -> screen -> getFileTransferPermission ( cl ) != TRUE ) ) {\n return TRUE ;\n }\n if ( ( cl -> fileTransfer . fd != - 1 ) && ( cl -> fileTransfer . sending == 1 ) ) {\n FD_ZERO ( & wfds ) ;\n FD_SET ( cl -> sock , & wfds ) ;\n tv . tv_sec = 0 ;\n tv . tv_usec = 0 ;\n n = select ( cl -> sock + 1 , NULL , & wfds , NULL , & tv ) ;\n if ( n < 0 ) {\n # ifdef WIN32 errno = WSAGetLastError ( ) ;\n # endif rfbLog ( \"rfbSendFileTransferChunk() select failed: %s\\n\" , strerror ( errno ) ) ;\n }\n if ( n > 0 ) {\n bytesRead = read ( cl -> fileTransfer . fd , readBuf , sz_rfbBlockSize ) ;\n switch ( bytesRead ) {\n case 0 : retval = rfbSendFileTransferMessage ( cl , rfbEndOfFile , 0 , 0 , 0 , NULL ) ;\n close ( cl -> fileTransfer . fd ) ;\n cl -> fileTransfer . fd = - 1 ;\n cl -> fileTransfer . sending = 0 ;\n cl -> fileTransfer . receiving = 0 ;\n return retval ;\n case - 1 : # ifdef WIN32 errno = WSAGetLastError ( ) ;\n # endif rfbLog ( \"rfbSendFileTransferChunk(): %s\\n\" , strerror ( errno ) ) ;\n retval = rfbSendFileTransferMessage ( cl , rfbAbortFileTransfer , 0 , 0 , 0 , NULL ) ;\n close ( cl -> fileTransfer . fd ) ;\n cl -> fileTransfer . fd = - 1 ;\n cl -> fileTransfer . sending = 0 ;\n cl -> fileTransfer . receiving = 0 ;\n return retval ;\n default : if ( ! cl -> fileTransfer . compressionEnabled ) return rfbSendFileTransferMessage ( cl , rfbFilePacket , 0 , 0 , bytesRead , ( char * ) readBuf ) ;\n else {\n # ifdef LIBVNCSERVER_HAVE_LIBZ nRetC = compress ( compBuf , & nMaxCompSize , readBuf , bytesRead ) ;\n if ( ( nRetC == 0 ) && ( nMaxCompSize < bytesRead ) ) return rfbSendFileTransferMessage ( cl , rfbFilePacket , 0 , 1 , nMaxCompSize , ( char * ) compBuf ) ;\n else return rfbSendFileTransferMessage ( cl , rfbFilePacket , 0 , 0 , bytesRead , ( char * ) readBuf ) ;\n # else return rfbSendFileTransferMessage ( cl , rfbFilePacket , 0 , 0 , bytesRead , ( char * ) readBuf ) ;\n # endif }\n }\n }\n }\n return TRUE ;\n }"}
{"idx": 101, "target": 0, "func": "static int pfkey_send_acquire ( struct xfrm_state * x , struct xfrm_tmpl * t , struct xfrm_policy * xp ) {\n struct sk_buff * skb ;\n struct sadb_msg * hdr ;\n struct sadb_address * addr ;\n struct sadb_x_policy * pol ;\n int sockaddr_size ;\n int size ;\n struct sadb_x_sec_ctx * sec_ctx ;\n struct xfrm_sec_ctx * xfrm_ctx ;\n int ctx_size = 0 ;\n sockaddr_size = pfkey_sockaddr_size ( x -> props . family ) ;\n if ( ! sockaddr_size ) return - EINVAL ;\n size = sizeof ( struct sadb_msg ) + ( sizeof ( struct sadb_address ) * 2 ) + ( sockaddr_size * 2 ) + sizeof ( struct sadb_x_policy ) ;\n if ( x -> id . proto == IPPROTO_AH ) size += count_ah_combs ( t ) ;\n else if ( x -> id . proto == IPPROTO_ESP ) size += count_esp_combs ( t ) ;\n if ( ( xfrm_ctx = x -> security ) ) {\n ctx_size = PFKEY_ALIGN8 ( xfrm_ctx -> ctx_len ) ;\n size += sizeof ( struct sadb_x_sec_ctx ) + ctx_size ;\n }\n skb = alloc_skb ( size + 16 , GFP_ATOMIC ) ;\n if ( skb == NULL ) return - ENOMEM ;\n hdr = ( struct sadb_msg * ) skb_put ( skb , sizeof ( struct sadb_msg ) ) ;\n hdr -> sadb_msg_version = PF_KEY_V2 ;\n hdr -> sadb_msg_type = SADB_ACQUIRE ;\n hdr -> sadb_msg_satype = pfkey_proto2satype ( x -> id . proto ) ;\n hdr -> sadb_msg_len = size / sizeof ( uint64_t ) ;\n hdr -> sadb_msg_errno = 0 ;\n hdr -> sadb_msg_reserved = 0 ;\n hdr -> sadb_msg_seq = x -> km . seq = get_acqseq ( ) ;\n hdr -> sadb_msg_pid = 0 ;\n addr = ( struct sadb_address * ) skb_put ( skb , sizeof ( struct sadb_address ) + sockaddr_size ) ;\n addr -> sadb_address_len = ( sizeof ( struct sadb_address ) + sockaddr_size ) / sizeof ( uint64_t ) ;\n addr -> sadb_address_exttype = SADB_EXT_ADDRESS_SRC ;\n addr -> sadb_address_proto = 0 ;\n addr -> sadb_address_reserved = 0 ;\n addr -> sadb_address_prefixlen = pfkey_sockaddr_fill ( & x -> props . saddr , 0 , ( struct sockaddr * ) ( addr + 1 ) , x -> props . family ) ;\n if ( ! addr -> sadb_address_prefixlen ) BUG ( ) ;\n addr = ( struct sadb_address * ) skb_put ( skb , sizeof ( struct sadb_address ) + sockaddr_size ) ;\n addr -> sadb_address_len = ( sizeof ( struct sadb_address ) + sockaddr_size ) / sizeof ( uint64_t ) ;\n addr -> sadb_address_exttype = SADB_EXT_ADDRESS_DST ;\n addr -> sadb_address_proto = 0 ;\n addr -> sadb_address_reserved = 0 ;\n addr -> sadb_address_prefixlen = pfkey_sockaddr_fill ( & x -> id . daddr , 0 , ( struct sockaddr * ) ( addr + 1 ) , x -> props . family ) ;\n if ( ! addr -> sadb_address_prefixlen ) BUG ( ) ;\n pol = ( struct sadb_x_policy * ) skb_put ( skb , sizeof ( struct sadb_x_policy ) ) ;\n pol -> sadb_x_policy_len = sizeof ( struct sadb_x_policy ) / sizeof ( uint64_t ) ;\n pol -> sadb_x_policy_exttype = SADB_X_EXT_POLICY ;\n pol -> sadb_x_policy_type = IPSEC_POLICY_IPSEC ;\n pol -> sadb_x_policy_dir = XFRM_POLICY_OUT + 1 ;\n pol -> sadb_x_policy_id = xp -> index ;\n if ( x -> id . proto == IPPROTO_AH ) dump_ah_combs ( skb , t ) ;\n else if ( x -> id . proto == IPPROTO_ESP ) dump_esp_combs ( skb , t ) ;\n if ( xfrm_ctx ) {\n sec_ctx = ( struct sadb_x_sec_ctx * ) skb_put ( skb , sizeof ( struct sadb_x_sec_ctx ) + ctx_size ) ;\n sec_ctx -> sadb_x_sec_len = ( sizeof ( struct sadb_x_sec_ctx ) + ctx_size ) / sizeof ( uint64_t ) ;\n sec_ctx -> sadb_x_sec_exttype = SADB_X_EXT_SEC_CTX ;\n sec_ctx -> sadb_x_ctx_doi = xfrm_ctx -> ctx_doi ;\n sec_ctx -> sadb_x_ctx_alg = xfrm_ctx -> ctx_alg ;\n sec_ctx -> sadb_x_ctx_len = xfrm_ctx -> ctx_len ;\n memcpy ( sec_ctx + 1 , xfrm_ctx -> ctx_str , xfrm_ctx -> ctx_len ) ;\n }\n return pfkey_broadcast ( skb , GFP_ATOMIC , BROADCAST_REGISTERED , NULL , xs_net ( x ) ) ;\n }"}
{"idx": 102, "target": 0, "func": "static int mpeg1_decode_sequence ( AVCodecContext * avctx , const uint8_t * buf , int buf_size ) {\n Mpeg1Context * s1 = avctx -> priv_data ;\n MpegEncContext * s = & s1 -> mpeg_enc_ctx ;\n int width , height ;\n int i , v , j ;\n init_get_bits ( & s -> gb , buf , buf_size * 8 ) ;\n width = get_bits ( & s -> gb , 12 ) ;\n height = get_bits ( & s -> gb , 12 ) ;\n if ( width <= 0 || height <= 0 ) return - 1 ;\n s -> aspect_ratio_info = get_bits ( & s -> gb , 4 ) ;\n if ( s -> aspect_ratio_info == 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"aspect ratio has forbidden 0 value\\n\" ) ;\n if ( avctx -> err_recognition & AV_EF_BITSTREAM ) return - 1 ;\n }\n s -> frame_rate_index = get_bits ( & s -> gb , 4 ) ;\n if ( s -> frame_rate_index == 0 || s -> frame_rate_index > 13 ) return - 1 ;\n s -> bit_rate = get_bits ( & s -> gb , 18 ) * 400 ;\n if ( get_bits1 ( & s -> gb ) == 0 ) return - 1 ;\n s -> width = width ;\n s -> height = height ;\n s -> avctx -> rc_buffer_size = get_bits ( & s -> gb , 10 ) * 1024 * 16 ;\n skip_bits ( & s -> gb , 1 ) ;\n if ( get_bits1 ( & s -> gb ) ) {\n load_matrix ( s , s -> chroma_intra_matrix , s -> intra_matrix , 1 ) ;\n }\n else {\n for ( i = 0 ;\n i < 64 ;\n i ++ ) {\n j = s -> dsp . idct_permutation [ i ] ;\n v = ff_mpeg1_default_intra_matrix [ i ] ;\n s -> intra_matrix [ j ] = v ;\n s -> chroma_intra_matrix [ j ] = v ;\n }\n }\n if ( get_bits1 ( & s -> gb ) ) {\n load_matrix ( s , s -> chroma_inter_matrix , s -> inter_matrix , 0 ) ;\n }\n else {\n for ( i = 0 ;\n i < 64 ;\n i ++ ) {\n int j = s -> dsp . idct_permutation [ i ] ;\n v = ff_mpeg1_default_non_intra_matrix [ i ] ;\n s -> inter_matrix [ j ] = v ;\n s -> chroma_inter_matrix [ j ] = v ;\n }\n }\n if ( show_bits ( & s -> gb , 23 ) != 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"sequence header damaged\\n\" ) ;\n return - 1 ;\n }\n s -> progressive_sequence = 1 ;\n s -> progressive_frame = 1 ;\n s -> picture_structure = PICT_FRAME ;\n s -> frame_pred_frame_dct = 1 ;\n s -> chroma_format = 1 ;\n s -> codec_id = s -> avctx -> codec_id = AV_CODEC_ID_MPEG1VIDEO ;\n s -> out_format = FMT_MPEG1 ;\n s -> swap_uv = 0 ;\n if ( s -> flags & CODEC_FLAG_LOW_DELAY ) s -> low_delay = 1 ;\n if ( s -> avctx -> debug & FF_DEBUG_PICT_INFO ) av_log ( s -> avctx , AV_LOG_DEBUG , \"vbv buffer: %d, bitrate:%d\\n\" , s -> avctx -> rc_buffer_size , s -> bit_rate ) ;\n return 0 ;\n }"}
{"idx": 103, "target": 0, "func": "static PyObject * string_rjust ( PyStringObject * self , PyObject * args ) {\n Py_ssize_t width ;\n char fillchar = ' ' ;\n if ( ! PyArg_ParseTuple ( args , \"n|c:rjust\" , & width , & fillchar ) ) return NULL ;\n if ( PyString_GET_SIZE ( self ) >= width && PyString_CheckExact ( self ) ) {\n Py_INCREF ( self ) ;\n return ( PyObject * ) self ;\n }\n return pad ( self , width - PyString_GET_SIZE ( self ) , 0 , fillchar ) ;\n }"}
{"idx": 104, "target": 0, "func": "static int index_mb ( uint8_t cluster [ ] , uint8_t cb [ ] , int numCB , int * outIndex , int dim ) {\n int i , lDiff = INT_MAX , pick = 0 ;\n for ( i = 0 ;\n i < numCB ;\n i ++ ) {\n int diff = squared_diff_macroblock ( cluster , cb + i * dim * dim * 3 , dim ) ;\n if ( diff < lDiff ) {\n lDiff = diff ;\n pick = i ;\n }\n }\n * outIndex = pick ;\n return lDiff ;\n }"}
{"idx": 105, "target": 0, "func": "static int stp_print_mstp_bpdu ( netdissect_options * ndo , const struct stp_bpdu_ * stp_bpdu , u_int length ) {\n const u_char * ptr ;\n uint16_t v3len ;\n uint16_t len ;\n uint16_t msti ;\n u_int offset ;\n ptr = ( const u_char * ) stp_bpdu ;\n ND_PRINT ( ( ndo , \", CIST Flags [%s], length %u\" , bittok2str ( stp_bpdu_flag_values , \"none\" , stp_bpdu -> flags ) , length ) ) ;\n if ( ! ndo -> ndo_vflag ) {\n return 1 ;\n }\n ND_TCHECK ( stp_bpdu -> flags ) ;\n ND_PRINT ( ( ndo , \"\\n\\tport-role %s, \" , tok2str ( rstp_obj_port_role_values , \"Unknown\" , RSTP_EXTRACT_PORT_ROLE ( stp_bpdu -> flags ) ) ) ) ;\n ND_TCHECK ( stp_bpdu -> root_path_cost ) ;\n ND_PRINT ( ( ndo , \"CIST root-id %s, CIST ext-pathcost %u\" , stp_print_bridge_id ( ( const u_char * ) & stp_bpdu -> root_id ) , EXTRACT_32BITS ( & stp_bpdu -> root_path_cost ) ) ) ;\n ND_TCHECK ( stp_bpdu -> bridge_id ) ;\n ND_PRINT ( ( ndo , \"\\n\\tCIST regional-root-id %s, \" , stp_print_bridge_id ( ( const u_char * ) & stp_bpdu -> bridge_id ) ) ) ;\n ND_TCHECK ( stp_bpdu -> port_id ) ;\n ND_PRINT ( ( ndo , \"CIST port-id %04x,\" , EXTRACT_16BITS ( & stp_bpdu -> port_id ) ) ) ;\n ND_TCHECK ( stp_bpdu -> forward_delay ) ;\n ND_PRINT ( ( ndo , \"\\n\\tmessage-age %.2fs, max-age %.2fs\" \", hello-time %.2fs, forwarding-delay %.2fs\" , ( float ) EXTRACT_16BITS ( & stp_bpdu -> message_age ) / STP_TIME_BASE , ( float ) EXTRACT_16BITS ( & stp_bpdu -> max_age ) / STP_TIME_BASE , ( float ) EXTRACT_16BITS ( & stp_bpdu -> hello_time ) / STP_TIME_BASE , ( float ) EXTRACT_16BITS ( & stp_bpdu -> forward_delay ) / STP_TIME_BASE ) ) ;\n ND_TCHECK_16BITS ( ptr + MST_BPDU_VER3_LEN_OFFSET ) ;\n ND_PRINT ( ( ndo , \"\\n\\tv3len %d, \" , EXTRACT_16BITS ( ptr + MST_BPDU_VER3_LEN_OFFSET ) ) ) ;\n ND_TCHECK_32BITS ( ptr + MST_BPDU_CONFIG_DIGEST_OFFSET + 12 ) ;\n ND_PRINT ( ( ndo , \"MCID Name \" ) ) ;\n if ( fn_printzp ( ndo , ptr + MST_BPDU_CONFIG_NAME_OFFSET , 32 , ndo -> ndo_snapend ) ) goto trunc ;\n ND_PRINT ( ( ndo , \", rev %u,\" \"\\n\\t\\tdigest %08x%08x%08x%08x, \" , EXTRACT_16BITS ( ptr + MST_BPDU_CONFIG_NAME_OFFSET + 32 ) , EXTRACT_32BITS ( ptr + MST_BPDU_CONFIG_DIGEST_OFFSET ) , EXTRACT_32BITS ( ptr + MST_BPDU_CONFIG_DIGEST_OFFSET + 4 ) , EXTRACT_32BITS ( ptr + MST_BPDU_CONFIG_DIGEST_OFFSET + 8 ) , EXTRACT_32BITS ( ptr + MST_BPDU_CONFIG_DIGEST_OFFSET + 12 ) ) ) ;\n ND_TCHECK_32BITS ( ptr + MST_BPDU_CIST_INT_PATH_COST_OFFSET ) ;\n ND_PRINT ( ( ndo , \"CIST int-root-pathcost %u,\" , EXTRACT_32BITS ( ptr + MST_BPDU_CIST_INT_PATH_COST_OFFSET ) ) ) ;\n ND_TCHECK_BRIDGE_ID ( ptr + MST_BPDU_CIST_BRIDGE_ID_OFFSET ) ;\n ND_PRINT ( ( ndo , \"\\n\\tCIST bridge-id %s, \" , stp_print_bridge_id ( ptr + MST_BPDU_CIST_BRIDGE_ID_OFFSET ) ) ) ;\n ND_TCHECK ( ptr [ MST_BPDU_CIST_REMAIN_HOPS_OFFSET ] ) ;\n ND_PRINT ( ( ndo , \"CIST remaining-hops %d\" , ptr [ MST_BPDU_CIST_REMAIN_HOPS_OFFSET ] ) ) ;\n ND_TCHECK_16BITS ( ptr + MST_BPDU_VER3_LEN_OFFSET ) ;\n v3len = EXTRACT_16BITS ( ptr + MST_BPDU_VER3_LEN_OFFSET ) ;\n if ( v3len > MST_BPDU_CONFIG_INFO_LENGTH ) {\n len = v3len - MST_BPDU_CONFIG_INFO_LENGTH ;\n offset = MST_BPDU_MSTI_OFFSET ;\n while ( len >= MST_BPDU_MSTI_LENGTH ) {\n ND_TCHECK2 ( * ( ptr + offset ) , MST_BPDU_MSTI_LENGTH ) ;\n msti = EXTRACT_16BITS ( ptr + offset + MST_BPDU_MSTI_ROOT_PRIO_OFFSET ) ;\n msti = msti & 0x0FFF ;\n ND_PRINT ( ( ndo , \"\\n\\tMSTI %d, Flags [%s], port-role %s\" , msti , bittok2str ( stp_bpdu_flag_values , \"none\" , ptr [ offset ] ) , tok2str ( rstp_obj_port_role_values , \"Unknown\" , RSTP_EXTRACT_PORT_ROLE ( ptr [ offset ] ) ) ) ) ;\n ND_PRINT ( ( ndo , \"\\n\\t\\tMSTI regional-root-id %s, pathcost %u\" , stp_print_bridge_id ( ptr + offset + MST_BPDU_MSTI_ROOT_PRIO_OFFSET ) , EXTRACT_32BITS ( ptr + offset + MST_BPDU_MSTI_ROOT_PATH_COST_OFFSET ) ) ) ;\n ND_PRINT ( ( ndo , \"\\n\\t\\tMSTI bridge-prio %d, port-prio %d, hops %d\" , ptr [ offset + MST_BPDU_MSTI_BRIDGE_PRIO_OFFSET ] >> 4 , ptr [ offset + MST_BPDU_MSTI_PORT_PRIO_OFFSET ] >> 4 , ptr [ offset + MST_BPDU_MSTI_REMAIN_HOPS_OFFSET ] ) ) ;\n len -= MST_BPDU_MSTI_LENGTH ;\n offset += MST_BPDU_MSTI_LENGTH ;\n }\n }\n return 1 ;\n trunc : return 0 ;\n }"}
{"idx": 106, "target": 0, "func": "gboolean proto_is_protocol_enabled ( const protocol_t * protocol ) {\n return protocol -> is_enabled ;\n }"}
{"idx": 107, "target": 0, "func": "h225ras_call_t * find_h225ras_call ( h225ras_call_info_key * h225ras_call_key , int category ) {\n h225ras_call_t * h225ras_call = NULL ;\n h225ras_call = ( h225ras_call_t * ) g_hash_table_lookup ( ras_calls [ category ] , h225ras_call_key ) ;\n return h225ras_call ;\n }"}
{"idx": 108, "target": 0, "func": "static void Win32ErrorHandler ( const char * module , const char * fmt , va_list ap ) {\n # ifndef TIF_PLATFORM_CONSOLE LPTSTR szTitle ;\n LPTSTR szTmp ;\n LPCTSTR szTitleText = \"%s Error\" ;\n LPCTSTR szDefaultModule = \"LIBTIFF\" ;\n LPCTSTR szTmpModule = ( module == NULL ) ? szDefaultModule : module ;\n SIZE_T nBufSize = ( strlen ( szTmpModule ) + strlen ( szTitleText ) + strlen ( fmt ) + 256 ) * sizeof ( char ) ;\n if ( ( szTitle = ( LPTSTR ) LocalAlloc ( LMEM_FIXED , nBufSize ) ) == NULL ) return ;\n sprintf ( szTitle , szTitleText , szTmpModule ) ;\n szTmp = szTitle + ( strlen ( szTitle ) + 2 ) * sizeof ( char ) ;\n vsnprintf ( szTmp , nBufSize - ( strlen ( szTitle ) + 2 ) * sizeof ( char ) , fmt , ap ) ;\n MessageBoxA ( GetFocus ( ) , szTmp , szTitle , MB_OK | MB_ICONEXCLAMATION ) ;\n LocalFree ( szTitle ) ;\n return ;\n # else if ( module != NULL ) fprintf ( stderr , \"%s: \" , module ) ;\n vfprintf ( stderr , fmt , ap ) ;\n fprintf ( stderr , \".\\n\" ) ;\n # endif }"}
{"idx": 109, "target": 0, "func": "static int cmp_stop ( const void * a , const void * b ) {\n const struct stop * astop = a ;\n const struct stop * bstop = b ;\n float diff = astop -> offset - bstop -> offset ;\n if ( diff < 0 ) return - 1 ;\n if ( diff > 0 ) return 1 ;\n return astop -> index - bstop -> index ;\n }"}
{"idx": 110, "target": 0, "func": "static void spl_ptr_llist_destroy ( spl_ptr_llist * llist TSRMLS_DC ) {\n spl_ptr_llist_element * current = llist -> head , * next ;\n spl_ptr_llist_dtor_func dtor = llist -> dtor ;\n while ( current ) {\n next = current -> next ;\n if ( current && dtor ) {\n dtor ( current TSRMLS_CC ) ;\n }\n SPL_LLIST_DELREF ( current ) ;\n current = next ;\n }\n efree ( llist ) ;\n }"}
{"idx": 111, "target": 0, "func": "void jpc_qmfb_split_row ( jpc_fix_t * a , int numcols , int parity ) {\n int bufsize = JPC_CEILDIVPOW2 ( numcols , 1 ) ;\n jpc_fix_t splitbuf [ QMFB_SPLITBUFSIZE ] ;\n jpc_fix_t * buf = splitbuf ;\n register jpc_fix_t * srcptr ;\n register jpc_fix_t * dstptr ;\n register int n ;\n register int m ;\n int hstartcol ;\n if ( bufsize > QMFB_SPLITBUFSIZE ) {\n if ( ! ( buf = jas_alloc2 ( bufsize , sizeof ( jpc_fix_t ) ) ) ) {\n abort ( ) ;\n }\n }\n if ( numcols >= 2 ) {\n hstartcol = ( numcols + 1 - parity ) >> 1 ;\n m = numcols - hstartcol ;\n n = m ;\n dstptr = buf ;\n srcptr = & a [ 1 - parity ] ;\n while ( n -- > 0 ) {\n * dstptr = * srcptr ;\n ++ dstptr ;\n srcptr += 2 ;\n }\n dstptr = & a [ 1 - parity ] ;\n srcptr = & a [ 2 - parity ] ;\n n = numcols - m - ( ! parity ) ;\n while ( n -- > 0 ) {\n * dstptr = * srcptr ;\n ++ dstptr ;\n srcptr += 2 ;\n }\n dstptr = & a [ hstartcol ] ;\n srcptr = buf ;\n n = m ;\n while ( n -- > 0 ) {\n * dstptr = * srcptr ;\n ++ dstptr ;\n ++ srcptr ;\n }\n }\n if ( buf != splitbuf ) {\n jas_free ( buf ) ;\n }\n }"}
{"idx": 112, "target": 0, "func": "static int dprintf_formatf ( void * data , int ( * stream ) ( int , FILE * ) , const char * format , va_list ap_save ) {\n const char * digits = lower_digits ;\n char * f ;\n int done = 0 ;\n long param ;\n long param_num = 0 ;\n va_stack_t vto [ MAX_PARAMETERS ] ;\n char * endpos [ MAX_PARAMETERS ] ;\n char * * end ;\n char work [ BUFFSIZE ] ;\n va_stack_t * p ;\n char * workend = & work [ sizeof ( work ) - 2 ] ;\n if ( dprintf_Pass1 ( format , vto , endpos , ap_save ) ) return - 1 ;\n end = & endpos [ 0 ] ;\n f = ( char * ) format ;\n while ( * f != '\\0' ) {\n int is_alt ;\n long width ;\n long prec ;\n int is_neg ;\n long base ;\n mp_uintmax_t num ;\n mp_intmax_t signed_num ;\n char * w ;\n if ( * f != '%' ) {\n do {\n OUTCHAR ( * f ) ;\n }\n while ( * ++ f && ( '%' != * f ) ) ;\n continue ;\n }\n ++ f ;\n if ( * f == '%' ) {\n ++ f ;\n OUTCHAR ( '%' ) ;\n continue ;\n }\n param = dprintf_DollarString ( f , & f ) ;\n if ( ! param ) param = param_num ;\n else -- param ;\n param_num ++ ;\n p = & vto [ param ] ;\n if ( p -> flags & FLAGS_WIDTHPARAM ) {\n width = ( long ) vto [ p -> width ] . data . num . as_signed ;\n param_num ++ ;\n if ( width < 0 ) {\n width = - width ;\n p -> flags |= FLAGS_LEFT ;\n p -> flags &= ~ FLAGS_PAD_NIL ;\n }\n }\n else width = p -> width ;\n if ( p -> flags & FLAGS_PRECPARAM ) {\n prec = ( long ) vto [ p -> precision ] . data . num . as_signed ;\n param_num ++ ;\n if ( prec < 0 ) prec = - 1 ;\n }\n else if ( p -> flags & FLAGS_PREC ) prec = p -> precision ;\n else prec = - 1 ;\n is_alt = ( p -> flags & FLAGS_ALT ) ? 1 : 0 ;\n switch ( p -> type ) {\n case FORMAT_INT : num = p -> data . num . as_unsigned ;\n if ( p -> flags & FLAGS_CHAR ) {\n if ( ! ( p -> flags & FLAGS_LEFT ) ) while ( -- width > 0 ) OUTCHAR ( ' ' ) ;\n OUTCHAR ( ( char ) num ) ;\n if ( p -> flags & FLAGS_LEFT ) while ( -- width > 0 ) OUTCHAR ( ' ' ) ;\n break ;\n }\n if ( p -> flags & FLAGS_OCTAL ) {\n base = 8 ;\n goto unsigned_number ;\n }\n else if ( p -> flags & FLAGS_HEX ) {\n digits = ( p -> flags & FLAGS_UPPER ) ? upper_digits : lower_digits ;\n base = 16 ;\n goto unsigned_number ;\n }\n else if ( p -> flags & FLAGS_UNSIGNED ) {\n base = 10 ;\n goto unsigned_number ;\n }\n base = 10 ;\n is_neg = ( p -> data . num . as_signed < ( mp_intmax_t ) 0 ) ? 1 : 0 ;\n if ( is_neg ) {\n signed_num = p -> data . num . as_signed + ( mp_intmax_t ) 1 ;\n signed_num = - signed_num ;\n num = ( mp_uintmax_t ) signed_num ;\n num += ( mp_uintmax_t ) 1 ;\n }\n goto number ;\n unsigned_number : is_neg = 0 ;\n number : if ( prec == - 1 ) prec = 1 ;\n w = workend ;\n while ( num > 0 ) {\n * w -- = digits [ num % base ] ;\n num /= base ;\n }\n width -= ( long ) ( workend - w ) ;\n prec -= ( long ) ( workend - w ) ;\n if ( is_alt && base == 8 && prec <= 0 ) {\n * w -- = '0' ;\n -- width ;\n }\n if ( prec > 0 ) {\n width -= prec ;\n while ( prec -- > 0 ) * w -- = '0' ;\n }\n if ( is_alt && base == 16 ) width -= 2 ;\n if ( is_neg || ( p -> flags & FLAGS_SHOWSIGN ) || ( p -> flags & FLAGS_SPACE ) ) -- width ;\n if ( ! ( p -> flags & FLAGS_LEFT ) && ! ( p -> flags & FLAGS_PAD_NIL ) ) while ( width -- > 0 ) OUTCHAR ( ' ' ) ;\n if ( is_neg ) OUTCHAR ( '-' ) ;\n else if ( p -> flags & FLAGS_SHOWSIGN ) OUTCHAR ( '+' ) ;\n else if ( p -> flags & FLAGS_SPACE ) OUTCHAR ( ' ' ) ;\n if ( is_alt && base == 16 ) {\n OUTCHAR ( '0' ) ;\n if ( p -> flags & FLAGS_UPPER ) OUTCHAR ( 'X' ) ;\n else OUTCHAR ( 'x' ) ;\n }\n if ( ! ( p -> flags & FLAGS_LEFT ) && ( p -> flags & FLAGS_PAD_NIL ) ) while ( width -- > 0 ) OUTCHAR ( '0' ) ;\n while ( ++ w <= workend ) {\n OUTCHAR ( * w ) ;\n }\n if ( p -> flags & FLAGS_LEFT ) while ( width -- > 0 ) OUTCHAR ( ' ' ) ;\n break ;\n case FORMAT_STRING : {\n static const char null [ ] = \"(nil)\" ;\n const char * str ;\n size_t len ;\n str = ( char * ) p -> data . str ;\n if ( str == NULL ) {\n if ( prec == - 1 || prec >= ( long ) sizeof ( null ) - 1 ) {\n str = null ;\n len = sizeof ( null ) - 1 ;\n p -> flags &= ( ~ FLAGS_ALT ) ;\n }\n else {\n str = \"\" ;\n len = 0 ;\n }\n }\n else if ( prec != - 1 ) len = ( size_t ) prec ;\n else len = strlen ( str ) ;\n width -= ( len > LONG_MAX ) ? LONG_MAX : ( long ) len ;\n if ( p -> flags & FLAGS_ALT ) OUTCHAR ( '\"' ) ;\n if ( ! ( p -> flags & FLAGS_LEFT ) ) while ( width -- > 0 ) OUTCHAR ( ' ' ) ;\n while ( ( len -- > 0 ) && * str ) OUTCHAR ( * str ++ ) ;\n if ( p -> flags & FLAGS_LEFT ) while ( width -- > 0 ) OUTCHAR ( ' ' ) ;\n if ( p -> flags & FLAGS_ALT ) OUTCHAR ( '\"' ) ;\n }\n break ;\n case FORMAT_PTR : {\n void * ptr ;\n ptr = ( void * ) p -> data . ptr ;\n if ( ptr != NULL ) {\n base = 16 ;\n digits = ( p -> flags & FLAGS_UPPER ) ? upper_digits : lower_digits ;\n is_alt = 1 ;\n num = ( size_t ) ptr ;\n is_neg = 0 ;\n goto number ;\n }\n else {\n static const char strnil [ ] = \"(nil)\" ;\n const char * point ;\n width -= ( long ) ( sizeof ( strnil ) - 1 ) ;\n if ( p -> flags & FLAGS_LEFT ) while ( width -- > 0 ) OUTCHAR ( ' ' ) ;\n for ( point = strnil ;\n * point != '\\0' ;\n ++ point ) OUTCHAR ( * point ) ;\n if ( ! ( p -> flags & FLAGS_LEFT ) ) while ( width -- > 0 ) OUTCHAR ( ' ' ) ;\n }\n }\n break ;\n case FORMAT_DOUBLE : {\n char formatbuf [ 32 ] = \"%\" ;\n char * fptr = & formatbuf [ 1 ] ;\n size_t left = sizeof ( formatbuf ) - strlen ( formatbuf ) ;\n int len ;\n width = - 1 ;\n if ( p -> flags & FLAGS_WIDTH ) width = p -> width ;\n else if ( p -> flags & FLAGS_WIDTHPARAM ) width = ( long ) vto [ p -> width ] . data . num . as_signed ;\n prec = - 1 ;\n if ( p -> flags & FLAGS_PREC ) prec = p -> precision ;\n else if ( p -> flags & FLAGS_PRECPARAM ) prec = ( long ) vto [ p -> precision ] . data . num . as_signed ;\n if ( p -> flags & FLAGS_LEFT ) * fptr ++ = '-' ;\n if ( p -> flags & FLAGS_SHOWSIGN ) * fptr ++ = '+' ;\n if ( p -> flags & FLAGS_SPACE ) * fptr ++ = ' ' ;\n if ( p -> flags & FLAGS_ALT ) * fptr ++ = '#' ;\n * fptr = 0 ;\n if ( width >= 0 ) {\n len = curl_msnprintf ( fptr , left , \"%ld\" , width ) ;\n fptr += len ;\n left -= len ;\n }\n if ( prec >= 0 ) {\n len = curl_msnprintf ( fptr , left , \".%ld\" , prec ) ;\n fptr += len ;\n }\n if ( p -> flags & FLAGS_LONG ) * fptr ++ = 'l' ;\n if ( p -> flags & FLAGS_FLOATE ) * fptr ++ = ( char ) ( ( p -> flags & FLAGS_UPPER ) ? 'E' : 'e' ) ;\n else if ( p -> flags & FLAGS_FLOATG ) * fptr ++ = ( char ) ( ( p -> flags & FLAGS_UPPER ) ? 'G' : 'g' ) ;\n else * fptr ++ = 'f' ;\n * fptr = 0 ;\n ( sprintf ) ( work , formatbuf , p -> data . dnum ) ;\n for ( fptr = work ;\n * fptr ;\n fptr ++ ) OUTCHAR ( * fptr ) ;\n }\n break ;\n case FORMAT_INTPTR : # ifdef HAVE_LONG_LONG_TYPE if ( p -> flags & FLAGS_LONGLONG ) * ( LONG_LONG_TYPE * ) p -> data . ptr = ( LONG_LONG_TYPE ) done ;\n else # endif if ( p -> flags & FLAGS_LONG ) * ( long * ) p -> data . ptr = ( long ) done ;\n else if ( ! ( p -> flags & FLAGS_SHORT ) ) * ( int * ) p -> data . ptr = ( int ) done ;\n else * ( short * ) p -> data . ptr = ( short ) done ;\n break ;\n default : break ;\n }\n f = * end ++ ;\n }\n return done ;\n }"}
{"idx": 113, "target": 0, "func": "void proto_reg_handoff_rtp ( void ) {\n static gboolean rtp_prefs_initialized = FALSE ;\n static dissector_handle_t rtp_rfc2198_handle ;\n static dissector_handle_t rtp_hdr_ext_ed137_handle ;\n static dissector_handle_t rtp_hdr_ext_ed137a_handle ;\n static guint rtp_saved_rfc2198_pt ;\n if ( ! rtp_prefs_initialized ) {\n rtp_handle = find_dissector ( \"rtp\" ) ;\n rtp_rfc2198_handle = find_dissector ( \"rtp.rfc2198\" ) ;\n dissector_add_handle ( \"udp.port\" , rtp_handle ) ;\n dissector_add_string ( \"rtp_dyn_payload_type\" , \"red\" , rtp_rfc2198_handle ) ;\n heur_dissector_add ( \"udp\" , dissect_rtp_heur_udp , proto_rtp ) ;\n heur_dissector_add ( \"stun\" , dissect_rtp_heur_stun , proto_rtp ) ;\n rtp_hdr_ext_ed137_handle = find_dissector ( \"rtp.ext.ed137\" ) ;\n rtp_hdr_ext_ed137a_handle = find_dissector ( \"rtp.ext.ed137a\" ) ;\n dissector_add_uint ( \"rtp.hdr_ext\" , RTP_ED137_SIG , rtp_hdr_ext_ed137_handle ) ;\n dissector_add_uint ( \"rtp.hdr_ext\" , RTP_ED137A_SIG , rtp_hdr_ext_ed137a_handle ) ;\n rtcp_handle = find_dissector ( \"rtcp\" ) ;\n data_handle = find_dissector ( \"data\" ) ;\n stun_handle = find_dissector ( \"stun-udp\" ) ;\n classicstun_handle = find_dissector ( \"classicstun\" ) ;\n classicstun_heur_handle = find_dissector ( \"classicstun-heur\" ) ;\n stun_heur_handle = find_dissector ( \"stun-heur\" ) ;\n t38_handle = find_dissector ( \"t38\" ) ;\n zrtp_handle = find_dissector ( \"zrtp\" ) ;\n sprt_handle = find_dissector ( \"sprt\" ) ;\n v150fw_handle = find_dissector ( \"v150fw\" ) ;\n bta2dp_content_protection_header_scms_t = find_dissector ( \"bta2dp_content_protection_header_scms_t\" ) ;\n btvdp_content_protection_header_scms_t = find_dissector ( \"btvdp_content_protection_header_scms_t\" ) ;\n bta2dp_handle = find_dissector ( \"bta2dp\" ) ;\n btvdp_handle = find_dissector ( \"btvdp\" ) ;\n sbc_handle = find_dissector ( \"sbc\" ) ;\n dissector_add_string ( \"rtp_dyn_payload_type\" , \"v150fw\" , v150fw_handle ) ;\n dissector_add_handle ( \"btl2cap.cid\" , rtp_handle ) ;\n rtp_prefs_initialized = TRUE ;\n }\n else {\n dissector_delete_uint ( \"rtp.pt\" , rtp_saved_rfc2198_pt , rtp_rfc2198_handle ) ;\n }\n dissector_add_uint ( \"rtp.pt\" , rtp_rfc2198_pt , rtp_rfc2198_handle ) ;\n rtp_saved_rfc2198_pt = rtp_rfc2198_pt ;\n }"}
{"idx": 114, "target": 0, "func": "static void Pass1Encode ( VP8_COMP * cpi , unsigned long * size , unsigned char * dest , unsigned int * frame_flags ) {\n ( void ) size ;\n ( void ) dest ;\n ( void ) frame_flags ;\n vp8_set_quantizer ( cpi , 26 ) ;\n vp8_first_pass ( cpi ) ;\n }"}
{"idx": 115, "target": 0, "func": "static void dissect_rsvp_dclass ( proto_tree * ti , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int type ) {\n int offset2 = offset + 4 ;\n int mylen ;\n proto_item_set_text ( ti , \"DCLASS: \" ) ;\n switch ( type ) {\n case 1 : proto_tree_add_uint ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type ) ;\n for ( mylen = 4 ;\n mylen < obj_length ;\n mylen += 4 ) {\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_dclass_dscp , tvb , offset + mylen + 3 , 1 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \"%d%s\" , tvb_get_guint8 ( tvb , offset + mylen + 3 ) >> 2 , mylen == obj_length - 4 ? \"\" : mylen < 16 ? \", \" : mylen == 16 ? \", ...\" : \"\" ) ;\n }\n break ;\n default : mylen = obj_length - 4 ;\n proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"Unknown (%u)\" , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_dclass_data , tvb , offset2 , mylen , ENC_NA ) ;\n break ;\n }\n }"}
{"idx": 116, "target": 0, "func": "static void inject_file ( const char * path , char * file ) {\n char * filename ;\n int fd ;\n void * buf ;\n size_t size , ret ;\n DEBUG_MSG ( \"inject_file %s/%s\" , path , file ) ;\n SAFE_CALLOC ( filename , strlen ( path ) + strlen ( file ) + 2 , sizeof ( char ) ) ;\n snprintf ( filename , strlen ( path ) + strlen ( file ) + 2 , \"%s/%s\" , path , file ) ;\n if ( ( fd = open ( filename , O_RDONLY | O_BINARY ) ) == - 1 ) {\n ui_error ( \"Can't load the file\" ) ;\n return ;\n }\n SAFE_FREE ( filename ) ;\n size = lseek ( fd , 0 , SEEK_END ) ;\n SAFE_CALLOC ( buf , size , sizeof ( char ) ) ;\n lseek ( fd , 0 , SEEK_SET ) ;\n ret = read ( fd , buf , size ) ;\n close ( fd ) ;\n if ( ret != size ) {\n ui_error ( \"Cannot read the file into memory\" ) ;\n return ;\n }\n if ( wdg_c1 -> flags & WDG_OBJ_FOCUSED ) {\n user_inject ( buf , size , curr_conn , 1 ) ;\n }\n else if ( wdg_c2 -> flags & WDG_OBJ_FOCUSED ) {\n user_inject ( buf , size , curr_conn , 2 ) ;\n }\n SAFE_FREE ( buf ) ;\n }"}
{"idx": 117, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ContentSettingBubbleDialogTest , InvokeDialog_images ) {\n RunDialog ( ) ;\n }"}
{"idx": 118, "target": 0, "func": "static void create_new_thread ( THD * thd ) {\n DBUG_ENTER ( \"create_new_thread\" ) ;\n mysql_mutex_lock ( & LOCK_connection_count ) ;\n if ( * thd -> scheduler -> connection_count >= * thd -> scheduler -> max_connections + 1 || abort_loop ) {\n mysql_mutex_unlock ( & LOCK_connection_count ) ;\n DBUG_PRINT ( \"error\" , ( \"Too many connections\" ) ) ;\n close_connection ( thd , ER_CON_COUNT_ERROR ) ;\n statistic_increment ( denied_connections , & LOCK_status ) ;\n delete thd ;\n DBUG_VOID_RETURN ;\n }\n ++ * thd -> scheduler -> connection_count ;\n if ( connection_count + extra_connection_count > max_used_connections ) max_used_connections = connection_count + extra_connection_count ;\n mysql_mutex_unlock ( & LOCK_connection_count ) ;\n mysql_mutex_lock ( & LOCK_thread_count ) ;\n thd -> thread_id = thd -> variables . pseudo_thread_id = thread_id ++ ;\n thread_count ++ ;\n MYSQL_CALLBACK ( thd -> scheduler , add_connection , ( thd ) ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 119, "target": 0, "func": "static void vmport_class_initfn ( ObjectClass * klass , void * data ) {\n DeviceClass * dc = DEVICE_CLASS ( klass ) ;\n dc -> realize = vmport_realizefn ;\n dc -> no_user = 1 ;\n }"}
{"idx": 120, "target": 0, "func": "int gs_main_init0 ( gs_main_instance * minst , FILE * in , FILE * out , FILE * err , int max_lib_paths ) {\n ref * array ;\n gp_init ( ) ;\n # ifdef PACIFY_VALGRIND VALGRIND_HG_DISABLE_CHECKING ( gs_debug , 128 ) ;\n # endif memset ( gs_debug , 0 , 128 ) ;\n gs_log_errors = 0 ;\n gp_get_realtime ( minst -> base_time ) ;\n array = ( ref * ) gs_alloc_byte_array ( minst -> heap , max_lib_paths , sizeof ( ref ) , \"lib_path array\" ) ;\n if ( array == 0 ) {\n gs_lib_finit ( 1 , gs_error_VMerror , minst -> heap ) ;\n return_error ( gs_error_VMerror ) ;\n }\n make_array ( & minst -> lib_path . container , avm_foreign , max_lib_paths , array ) ;\n make_array ( & minst -> lib_path . list , avm_foreign | a_readonly , 0 , minst -> lib_path . container . value . refs ) ;\n minst -> lib_path . env = 0 ;\n minst -> lib_path . final = 0 ;\n minst -> lib_path . count = 0 ;\n minst -> user_errors = 1 ;\n minst -> init_done = 0 ;\n return 0 ;\n }"}
{"idx": 121, "target": 0, "func": "struct groupchat * purple_chat_join ( struct im_connection * ic , const char * room , const char * nick , const char * password , set_t * * sets ) {\n struct purple_data * pd = ic -> proto_data ;\n PurplePlugin * prpl = purple_plugins_find_with_id ( pd -> account -> protocol_id ) ;\n PurplePluginProtocolInfo * pi = prpl -> info -> extra_info ;\n GHashTable * chat_hash ;\n PurpleConversation * conv ;\n struct groupchat * gc ;\n GList * info , * l ;\n if ( ! pi -> chat_info || ! pi -> chat_info_defaults || ! ( info = pi -> chat_info ( purple_account_get_connection ( pd -> account ) ) ) ) {\n imcb_error ( ic , \"Joining chatrooms not supported by this protocol\" ) ;\n return NULL ;\n }\n if ( ( conv = purple_find_conversation_with_account ( PURPLE_CONV_TYPE_CHAT , room , pd -> account ) ) ) {\n purple_conversation_destroy ( conv ) ;\n }\n chat_hash = pi -> chat_info_defaults ( purple_account_get_connection ( pd -> account ) , room ) ;\n for ( l = info ;\n l ;\n l = l -> next ) {\n struct proto_chat_entry * pce = l -> data ;\n if ( strcmp ( pce -> identifier , \"handle\" ) == 0 ) {\n g_hash_table_replace ( chat_hash , \"handle\" , g_strdup ( nick ) ) ;\n }\n else if ( strcmp ( pce -> identifier , \"password\" ) == 0 ) {\n g_hash_table_replace ( chat_hash , \"password\" , g_strdup ( password ) ) ;\n }\n else if ( strcmp ( pce -> identifier , \"passwd\" ) == 0 ) {\n g_hash_table_replace ( chat_hash , \"passwd\" , g_strdup ( password ) ) ;\n }\n g_free ( pce ) ;\n }\n g_list_free ( info ) ;\n gc = imcb_chat_new ( ic , room ) ;\n serv_join_chat ( purple_account_get_connection ( pd -> account ) , chat_hash ) ;\n g_hash_table_destroy ( chat_hash ) ;\n return gc ;\n }"}
{"idx": 122, "target": 0, "func": "static void stroke_leases ( private_stroke_socket_t * this , stroke_msg_t * msg , FILE * out ) {\n pop_string ( msg , & msg -> leases . pool ) ;\n pop_string ( msg , & msg -> leases . address ) ;\n this -> list -> leases ( this -> list , msg , out ) ;\n }"}
{"idx": 123, "target": 0, "func": "static void bgr_to_rgb ( fz_context * ctx , const fz_colorspace * cs , const float * bgr , float * rgb ) {\n rgb [ 0 ] = bgr [ 2 ] ;\n rgb [ 1 ] = bgr [ 1 ] ;\n rgb [ 2 ] = bgr [ 0 ] ;\n }"}
{"idx": 124, "target": 0, "func": "int qemuMonitorJSONAddUSBDeviceExact ( qemuMonitorPtr mon ATTRIBUTE_UNUSED , int bus ATTRIBUTE_UNUSED , int dev ATTRIBUTE_UNUSED ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"usb_add not suppported in JSON mode\" ) ) ;\n return - 1 ;\n }"}
{"idx": 125, "target": 0, "func": "TEST_F ( FullscreenControllerStateUnitTest , DISABLED_DebugLogStateTables ) {\n std : : ostringstream output ;\n output << \"\\n\\nTransition Table:\" ;\n output << GetTransitionTableAsString ( ) ;\n output << \"\\n\\nInitial transitions:\" ;\n output << GetStateTransitionsAsString ( ) ;\n for ( int state1_int = 0 ;\n state1_int < NUM_STATES ;\n ++ state1_int ) {\n State state1 = static_cast < State > ( state1_int ) ;\n for ( int state2_int = 0 ;\n state2_int < NUM_STATES ;\n ++ state2_int ) {\n State state2 = static_cast < State > ( state2_int ) ;\n if ( ShouldSkipStateAndEventPair ( state1 , EVENT_INVALID ) || ShouldSkipStateAndEventPair ( state2 , EVENT_INVALID ) ) continue ;\n if ( NextTransitionInShortestPath ( state1 , state2 , NUM_STATES ) . state == STATE_INVALID ) {\n LOG ( ERROR ) << \"Should be skipping state transitions for: \" << GetStateString ( state1 ) << \" \" << GetStateString ( state2 ) ;\n }\n }\n }\n output << \"\\n\\nAll transitions:\" ;\n output << GetStateTransitionsAsString ( ) ;\n LOG ( INFO ) << output . str ( ) ;\n }"}
{"idx": 126, "target": 1, "func": "int mi_repair_by_sort ( MI_CHECK * param , register MI_INFO * info , const char * name , int rep_quick ) {\n int got_error ;\n uint i ;\n ulong length ;\n ha_rows start_records ;\n my_off_t new_header_length , del ;\n File new_file ;\n MI_SORT_PARAM sort_param ;\n MYISAM_SHARE * share = info -> s ;\n HA_KEYSEG * keyseg ;\n ulong * rec_per_key_part ;\n char llbuff [ 22 ] ;\n SORT_INFO sort_info ;\n ulonglong UNINIT_VAR ( key_map ) ;\n DBUG_ENTER ( \"mi_repair_by_sort\" ) ;\n start_records = info -> state -> records ;\n got_error = 1 ;\n new_file = - 1 ;\n new_header_length = ( param -> testflag & T_UNPACK ) ? 0 : share -> pack . header_length ;\n if ( ! ( param -> testflag & T_SILENT ) ) {\n printf ( \"- recovering (with sort) MyISAM-table '%s'\\n\" , name ) ;\n printf ( \"Data records: %s\\n\" , llstr ( start_records , llbuff ) ) ;\n }\n param -> testflag |= T_REP ;\n if ( info -> s -> options & ( HA_OPTION_CHECKSUM | HA_OPTION_COMPRESS_RECORD ) ) param -> testflag |= T_CALC_CHECKSUM ;\n bzero ( ( char * ) & sort_info , sizeof ( sort_info ) ) ;\n bzero ( ( char * ) & sort_param , sizeof ( sort_param ) ) ;\n if ( ! ( sort_info . key_block = alloc_key_blocks ( param , ( uint ) param -> sort_key_blocks , share -> base . max_key_block_length ) ) || init_io_cache ( & param -> read_cache , info -> dfile , ( uint ) param -> read_buffer_length , READ_CACHE , share -> pack . header_length , 1 , MYF ( MY_WME ) ) || ( ! rep_quick && init_io_cache ( & info -> rec_cache , info -> dfile , ( uint ) param -> write_buffer_length , WRITE_CACHE , new_header_length , 1 , MYF ( MY_WME | MY_WAIT_IF_FULL ) & param -> myf_rw ) ) ) goto err ;\n sort_info . key_block_end = sort_info . key_block + param -> sort_key_blocks ;\n info -> opt_flag |= WRITE_CACHE_USED ;\n info -> rec_cache . file = info -> dfile ;\n if ( ! mi_alloc_rec_buff ( info , - 1 , & sort_param . record ) || ! mi_alloc_rec_buff ( info , - 1 , & sort_param . rec_buff ) ) {\n mi_check_print_error ( param , \"Not enough memory for extra record\" ) ;\n goto err ;\n }\n if ( ! rep_quick ) {\n if ( ( new_file = mysql_file_create ( mi_key_file_datatmp , fn_format ( param -> temp_filename , share -> data_file_name , \"\" , DATA_TMP_EXT , 2 + 4 ) , 0 , param -> tmpfile_createflag , MYF ( 0 ) ) ) < 0 ) {\n mi_check_print_error ( param , \"Can't create new tempfile: '%s'\" , param -> temp_filename ) ;\n goto err ;\n }\n if ( new_header_length && filecopy ( param , new_file , info -> dfile , 0L , new_header_length , \"datafile-header\" ) ) goto err ;\n if ( param -> testflag & T_UNPACK ) {\n share -> options &= ~ HA_OPTION_COMPRESS_RECORD ;\n mi_int2store ( share -> state . header . options , share -> options ) ;\n }\n share -> state . dellink = HA_OFFSET_ERROR ;\n info -> rec_cache . file = new_file ;\n }\n info -> update = ( short ) ( HA_STATE_CHANGED | HA_STATE_ROW_CHANGED ) ;\n mi_drop_all_indexes ( param , info , FALSE ) ;\n key_map = share -> state . key_map ;\n if ( param -> testflag & T_CREATE_MISSING_KEYS ) {\n key_map = ~ key_map ;\n }\n sort_info . info = info ;\n sort_info . param = param ;\n set_data_file_type ( & sort_info , share ) ;\n sort_param . filepos = new_header_length ;\n sort_info . dupp = 0 ;\n sort_info . buff = 0 ;\n param -> read_cache . end_of_file = sort_info . filelength = mysql_file_seek ( param -> read_cache . file , 0L , MY_SEEK_END , MYF ( 0 ) ) ;\n sort_param . wordlist = NULL ;\n init_alloc_root ( & sort_param . wordroot , FTPARSER_MEMROOT_ALLOC_SIZE , 0 ) ;\n if ( share -> data_file_type == DYNAMIC_RECORD ) length = max ( share -> base . min_pack_length + 1 , share -> base . min_block_length ) ;\n else if ( share -> data_file_type == COMPRESSED_RECORD ) length = share -> base . min_block_length ;\n else length = share -> base . pack_reclength ;\n sort_info . max_records = ( ( param -> testflag & T_CREATE_MISSING_KEYS ) ? info -> state -> records : ( ha_rows ) ( sort_info . filelength / length + 1 ) ) ;\n sort_param . key_cmp = sort_key_cmp ;\n sort_param . lock_in_memory = lock_memory ;\n sort_param . tmpdir = param -> tmpdir ;\n sort_param . sort_info = & sort_info ;\n sort_param . fix_datafile = ( my_bool ) ( ! rep_quick ) ;\n sort_param . master = 1 ;\n del = info -> state -> del ;\n param -> glob_crc = 0 ;\n if ( param -> testflag & T_CALC_CHECKSUM ) sort_param . calc_checksum = 1 ;\n rec_per_key_part = param -> rec_per_key_part ;\n for ( sort_param . key = 0 ;\n sort_param . key < share -> base . keys ;\n rec_per_key_part += sort_param . keyinfo -> keysegs , sort_param . key ++ ) {\n sort_param . read_cache = param -> read_cache ;\n sort_param . keyinfo = share -> keyinfo + sort_param . key ;\n sort_param . seg = sort_param . keyinfo -> seg ;\n if ( ! mi_is_key_active ( key_map , sort_param . key ) ) {\n memcpy ( ( char * ) rec_per_key_part , ( char * ) ( share -> state . rec_per_key_part + ( uint ) ( rec_per_key_part - param -> rec_per_key_part ) ) , sort_param . keyinfo -> keysegs * sizeof ( * rec_per_key_part ) ) ;\n DBUG_PRINT ( \"repair\" , ( \"skipping seemingly disabled index #: %u\" , sort_param . key ) ) ;\n continue ;\n }\n if ( ( ! ( param -> testflag & T_SILENT ) ) ) printf ( \"- Fixing index %d\\n\" , sort_param . key + 1 ) ;\n sort_param . max_pos = sort_param . pos = share -> pack . header_length ;\n keyseg = sort_param . seg ;\n bzero ( ( char * ) sort_param . unique , sizeof ( sort_param . unique ) ) ;\n sort_param . key_length = share -> rec_reflength ;\n for ( i = 0 ;\n keyseg [ i ] . type != HA_KEYTYPE_END ;\n i ++ ) {\n sort_param . key_length += keyseg [ i ] . length ;\n if ( keyseg [ i ] . flag & HA_SPACE_PACK ) sort_param . key_length += get_pack_length ( keyseg [ i ] . length ) ;\n if ( keyseg [ i ] . flag & ( HA_BLOB_PART | HA_VAR_LENGTH_PART ) ) sort_param . key_length += 2 + test ( keyseg [ i ] . length >= 127 ) ;\n if ( keyseg [ i ] . flag & HA_NULL_PART ) sort_param . key_length ++ ;\n }\n info -> state -> records = info -> state -> del = share -> state . split = 0 ;\n info -> state -> empty = 0 ;\n if ( sort_param . keyinfo -> flag & HA_FULLTEXT ) {\n uint ft_max_word_len_for_sort = FT_MAX_WORD_LEN_FOR_SORT * sort_param . keyinfo -> seg -> charset -> mbmaxlen ;\n sort_param . key_length += ft_max_word_len_for_sort - HA_FT_MAXBYTELEN ;\n if ( sort_param . keyinfo -> parser == & ft_default_parser ) {\n sort_info . max_records = ( ha_rows ) ( sort_info . filelength / ft_min_word_len + 1 ) ;\n }\n else {\n sort_info . max_records = 10 * max ( param -> sort_buffer_length , MIN_SORT_BUFFER ) / sort_param . key_length ;\n }\n sort_param . key_read = sort_ft_key_read ;\n sort_param . key_write = sort_ft_key_write ;\n }\n else {\n sort_param . key_read = sort_key_read ;\n sort_param . key_write = sort_key_write ;\n }\n if ( _create_index_by_sort ( & sort_param , ( my_bool ) ( ! ( param -> testflag & T_VERBOSE ) ) , param -> sort_buffer_length ) ) {\n param -> retry_repair = 1 ;\n goto err ;\n }\n sort_param . calc_checksum = 0 ;\n free_root ( & sort_param . wordroot , MYF ( 0 ) ) ;\n sort_info . max_records = ( ha_rows ) info -> state -> records ;\n if ( param -> testflag & T_STATISTICS ) update_key_parts ( sort_param . keyinfo , rec_per_key_part , sort_param . unique , param -> stats_method == MI_STATS_METHOD_IGNORE_NULLS ? sort_param . notnull : NULL , ( ulonglong ) info -> state -> records ) ;\n mi_set_key_active ( share -> state . key_map , sort_param . key ) ;\n DBUG_PRINT ( \"repair\" , ( \"set enabled index #: %u\" , sort_param . key ) ) ;\n if ( sort_param . fix_datafile ) {\n param -> read_cache . end_of_file = sort_param . filepos ;\n if ( write_data_suffix ( & sort_info , 1 ) || end_io_cache ( & info -> rec_cache ) ) goto err ;\n if ( param -> testflag & T_SAFE_REPAIR ) {\n if ( info -> state -> records + 1 < start_records ) {\n info -> state -> records = start_records ;\n goto err ;\n }\n }\n share -> state . state . data_file_length = info -> state -> data_file_length = sort_param . filepos ;\n share -> state . version = ( ulong ) time ( ( time_t * ) 0 ) ;\n mysql_file_close ( info -> dfile , MYF ( 0 ) ) ;\n info -> dfile = new_file ;\n share -> data_file_type = sort_info . new_data_file_type ;\n share -> pack . header_length = ( ulong ) new_header_length ;\n sort_param . fix_datafile = 0 ;\n }\n else info -> state -> data_file_length = sort_param . max_pos ;\n param -> read_cache . file = info -> dfile ;\n reinit_io_cache ( & param -> read_cache , READ_CACHE , share -> pack . header_length , 1 , 1 ) ;\n }\n if ( param -> testflag & T_WRITE_LOOP ) {\n ( void ) fputs ( \" \\r\" , stdout ) ;\n ( void ) fflush ( stdout ) ;\n }\n if ( rep_quick && del + sort_info . dupp != info -> state -> del ) {\n mi_check_print_error ( param , \"Couldn't fix table with quick recovery: Found wrong number of deleted records\" ) ;\n mi_check_print_error ( param , \"Run recovery again without -q\" ) ;\n got_error = 1 ;\n param -> retry_repair = 1 ;\n param -> testflag |= T_RETRY_WITHOUT_QUICK ;\n goto err ;\n }\n if ( rep_quick & T_FORCE_UNIQUENESS ) {\n my_off_t skr = info -> state -> data_file_length + ( share -> options & HA_OPTION_COMPRESS_RECORD ? MEMMAP_EXTRA_MARGIN : 0 ) ;\n # ifdef USE_RELOC if ( share -> data_file_type == STATIC_RECORD && skr < share -> base . reloc * share -> base . min_pack_length ) skr = share -> base . reloc * share -> base . min_pack_length ;\n # endif if ( skr != sort_info . filelength ) if ( mysql_file_chsize ( info -> dfile , skr , 0 , MYF ( 0 ) ) ) mi_check_print_warning ( param , \"Can't change size of datafile, error: %d\" , my_errno ) ;\n }\n if ( param -> testflag & T_CALC_CHECKSUM ) info -> state -> checksum = param -> glob_crc ;\n if ( mysql_file_chsize ( share -> kfile , info -> state -> key_file_length , 0 , MYF ( 0 ) ) ) mi_check_print_warning ( param , \"Can't change size of indexfile, error: %d\" , my_errno ) ;\n if ( ! ( param -> testflag & T_SILENT ) ) {\n if ( start_records != info -> state -> records ) printf ( \"Data records: %s\\n\" , llstr ( info -> state -> records , llbuff ) ) ;\n if ( sort_info . dupp ) mi_check_print_warning ( param , \"%s records have been removed\" , llstr ( sort_info . dupp , llbuff ) ) ;\n }\n got_error = 0 ;\n if ( & share -> state . state != info -> state ) memcpy ( & share -> state . state , info -> state , sizeof ( * info -> state ) ) ;\n err : got_error |= flush_blocks ( param , share -> key_cache , share -> kfile ) ;\n ( void ) end_io_cache ( & info -> rec_cache ) ;\n if ( ! got_error ) {\n if ( new_file >= 0 ) {\n mysql_file_close ( new_file , MYF ( 0 ) ) ;\n info -> dfile = new_file = - 1 ;\n if ( change_to_newfile ( share -> data_file_name , MI_NAME_DEXT , DATA_TMP_EXT , ( param -> testflag & T_BACKUP_DATA ? MYF ( MY_REDEL_MAKE_BACKUP ) : MYF ( 0 ) ) ) || mi_open_datafile ( info , share , name , - 1 ) ) got_error = 1 ;\n }\n }\n if ( got_error ) {\n if ( ! param -> error_printed ) mi_check_print_error ( param , \"%d when fixing table\" , my_errno ) ;\n if ( new_file >= 0 ) {\n ( void ) mysql_file_close ( new_file , MYF ( 0 ) ) ;\n ( void ) mysql_file_delete ( mi_key_file_datatmp , param -> temp_filename , MYF ( MY_WME ) ) ;\n if ( info -> dfile == new_file ) if ( unlikely ( mi_open_datafile ( info , share , name , - 1 ) ) ) param -> retry_repair = 0 ;\n }\n mi_mark_crashed_on_repair ( info ) ;\n }\n else if ( key_map == share -> state . key_map ) share -> state . changed &= ~ STATE_NOT_OPTIMIZED_KEYS ;\n share -> state . changed |= STATE_NOT_SORTED_PAGES ;\n my_free ( mi_get_rec_buff_ptr ( info , sort_param . rec_buff ) ) ;\n my_free ( mi_get_rec_buff_ptr ( info , sort_param . record ) ) ;\n my_free ( sort_info . key_block ) ;\n my_free ( sort_info . ft_buf ) ;\n my_free ( sort_info . buff ) ;\n ( void ) end_io_cache ( & param -> read_cache ) ;\n info -> opt_flag &= ~ ( READ_CACHE_USED | WRITE_CACHE_USED ) ;\n if ( ! got_error && ( param -> testflag & T_UNPACK ) ) {\n share -> state . header . options [ 0 ] &= ( uchar ) ~ HA_OPTION_COMPRESS_RECORD ;\n share -> pack . header_length = 0 ;\n }\n DBUG_RETURN ( got_error ) ;\n }"}
{"idx": 127, "target": 0, "func": "static void encode_color_spec ( VC2EncContext * s ) {\n AVCodecContext * avctx = s -> avctx ;\n put_bits ( & s -> pb , 1 , ! s -> strict_compliance ) ;\n if ( ! s -> strict_compliance ) {\n int val ;\n put_vc2_ue_uint ( & s -> pb , 0 ) ;\n put_bits ( & s -> pb , 1 , 1 ) ;\n if ( avctx -> color_primaries == AVCOL_PRI_BT470BG ) val = 2 ;\n else if ( avctx -> color_primaries == AVCOL_PRI_SMPTE170M ) val = 1 ;\n else if ( avctx -> color_primaries == AVCOL_PRI_SMPTE240M ) val = 1 ;\n else val = 0 ;\n put_vc2_ue_uint ( & s -> pb , val ) ;\n put_bits ( & s -> pb , 1 , 1 ) ;\n if ( avctx -> colorspace == AVCOL_SPC_RGB ) val = 3 ;\n else if ( avctx -> colorspace == AVCOL_SPC_YCOCG ) val = 2 ;\n else if ( avctx -> colorspace == AVCOL_SPC_BT470BG ) val = 1 ;\n else val = 0 ;\n put_vc2_ue_uint ( & s -> pb , val ) ;\n put_bits ( & s -> pb , 1 , 1 ) ;\n if ( avctx -> color_trc == AVCOL_TRC_LINEAR ) val = 2 ;\n else if ( avctx -> color_trc == AVCOL_TRC_BT1361_ECG ) val = 1 ;\n else val = 0 ;\n put_vc2_ue_uint ( & s -> pb , val ) ;\n }\n }"}
{"idx": 128, "target": 0, "func": "static apr_status_t modsecurity_process_phase_request_headers ( modsec_rec * msr ) {\n apr_time_t time_before ;\n apr_status_t rc = 0 ;\n if ( msr -> txcfg -> debuglog_level >= 4 ) {\n msr_log ( msr , 4 , \"Starting phase REQUEST_HEADERS.\" ) ;\n }\n time_before = apr_time_now ( ) ;\n if ( msr -> txcfg -> ruleset != NULL ) {\n rc = msre_ruleset_process_phase ( msr -> txcfg -> ruleset , msr ) ;\n }\n msr -> time_phase1 = apr_time_now ( ) - time_before ;\n return rc ;\n }"}
{"idx": 129, "target": 0, "func": "static void qcms_transform_module_LAB_to_XYZ ( struct qcms_modular_transform * transform , float * src , float * dest , size_t length ) {\n size_t i ;\n float WhitePointX = 0.9642f ;\n float WhitePointY = 1.0f ;\n float WhitePointZ = 0.8249f ;\n for ( i = 0 ;\n i < length ;\n i ++ ) {\n float device_L = * src ++ * 100.0f ;\n float device_a = * src ++ * 255.0f - 128.0f ;\n float device_b = * src ++ * 255.0f - 128.0f ;\n float y = ( device_L + 16.0f ) / 116.0f ;\n float X = f_1 ( ( y + 0.002f * device_a ) ) * WhitePointX ;\n float Y = f_1 ( y ) * WhitePointY ;\n float Z = f_1 ( ( y - 0.005f * device_b ) ) * WhitePointZ ;\n * dest ++ = X / ( 1.0 + 32767.0 / 32768.0 ) ;\n * dest ++ = Y / ( 1.0 + 32767.0 / 32768.0 ) ;\n * dest ++ = Z / ( 1.0 + 32767.0 / 32768.0 ) ;\n }\n }"}
{"idx": 130, "target": 0, "func": "void gs_make_null_device ( gx_device_null * dev_null , gx_device * dev , gs_memory_t * mem ) {\n gx_device_init ( ( gx_device * ) dev_null , ( const gx_device * ) & gs_null_device , mem , true ) ;\n gx_device_set_target ( ( gx_device_forward * ) dev_null , dev ) ;\n if ( dev ) {\n gx_device * dn = ( gx_device * ) dev_null ;\n set_dev_proc ( dn , get_color_mapping_procs , gx_forward_get_color_mapping_procs ) ;\n set_dev_proc ( dn , get_color_comp_index , gx_forward_get_color_comp_index ) ;\n set_dev_proc ( dn , encode_color , gx_forward_encode_color ) ;\n set_dev_proc ( dn , decode_color , gx_forward_decode_color ) ;\n set_dev_proc ( dn , get_profile , gx_forward_get_profile ) ;\n set_dev_proc ( dn , set_graphics_type_tag , gx_forward_set_graphics_type_tag ) ;\n set_dev_proc ( dn , begin_transparency_group , gx_default_begin_transparency_group ) ;\n set_dev_proc ( dn , end_transparency_group , gx_default_end_transparency_group ) ;\n set_dev_proc ( dn , begin_transparency_mask , gx_default_begin_transparency_mask ) ;\n set_dev_proc ( dn , end_transparency_mask , gx_default_end_transparency_mask ) ;\n set_dev_proc ( dn , discard_transparency_layer , gx_default_discard_transparency_layer ) ;\n set_dev_proc ( dn , pattern_manage , gx_default_pattern_manage ) ;\n set_dev_proc ( dn , push_transparency_state , gx_default_push_transparency_state ) ;\n set_dev_proc ( dn , pop_transparency_state , gx_default_pop_transparency_state ) ;\n set_dev_proc ( dn , put_image , gx_default_put_image ) ;\n set_dev_proc ( dn , copy_planes , gx_default_copy_planes ) ;\n set_dev_proc ( dn , copy_alpha_hl_color , gx_default_no_copy_alpha_hl_color ) ;\n dn -> graphics_type_tag = dev -> graphics_type_tag ;\n gx_device_copy_color_params ( dn , dev ) ;\n }\n }"}
{"idx": 131, "target": 0, "func": "static void print_point ( const char * text , gcry_mpi_point_t a ) {\n gcry_mpi_t x , y , z ;\n x = gcry_mpi_new ( 0 ) ;\n y = gcry_mpi_new ( 0 ) ;\n z = gcry_mpi_new ( 0 ) ;\n gcry_mpi_point_get ( x , y , z , a ) ;\n print_mpi_2 ( text , \".x\" , x ) ;\n print_mpi_2 ( text , \".y\" , y ) ;\n print_mpi_2 ( text , \".z\" , z ) ;\n gcry_mpi_release ( x ) ;\n gcry_mpi_release ( y ) ;\n gcry_mpi_release ( z ) ;\n }"}
{"idx": 132, "target": 0, "func": "uint16_t jbig2_get_uint16 ( const byte * bptr ) {\n return get_uint16 ( bptr ) ;\n }"}
{"idx": 133, "target": 0, "func": "static int auth_server_input_cont ( struct auth_server_connection * conn , const char * const * args ) {\n struct auth_client_request * request ;\n if ( str_array_length ( args ) < 2 ) {\n i_error ( \"BUG: Authentication server sent broken CONT line\" ) ;\n return - 1 ;\n }\n if ( auth_server_lookup_request ( conn , args [ 0 ] , FALSE , & request ) < 0 ) return - 1 ;\n auth_client_request_server_input ( request , AUTH_REQUEST_STATUS_CONTINUE , args + 1 ) ;\n return 0 ;\n }"}
{"idx": 134, "target": 0, "func": "int do_done ( struct st_command * command ) {\n if ( cur_block == block_stack ) {\n if ( * command -> query != '}\n' ) die ( \"Stray 'end' command - end of block before beginning\" ) ;\n die ( \"Stray '}\n' - end of block before beginning\" ) ;\n }\n if ( cur_block -> ok && cur_block -> cmd == cmd_while ) {\n cur_block -- ;\n parser . current_line = cur_block -> line ;\n }\n else {\n if ( * cur_block -> delim ) {\n strcpy ( delimiter , cur_block -> delim ) ;\n delimiter_length = strlen ( delimiter ) ;\n }\n cur_block -- ;\n parser . current_line ++ ;\n }\n return 0 ;\n }"}
{"idx": 135, "target": 0, "func": "static cmsBool isidchar ( int c ) {\n return isalnum ( c ) || ismiddle ( c ) ;\n }"}
{"idx": 136, "target": 1, "func": "static int truemotion1_decode_header ( TrueMotion1Context * s ) {\n int i , ret ;\n int width_shift = 0 ;\n int new_pix_fmt ;\n struct frame_header header ;\n uint8_t header_buffer [ 128 ] = {\n 0 }\n ;\n const uint8_t * sel_vector_table ;\n header . header_size = ( ( s -> buf [ 0 ] >> 5 ) | ( s -> buf [ 0 ] << 3 ) ) & 0x7f ;\n if ( s -> buf [ 0 ] < 0x10 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"invalid header size (%d)\\n\" , s -> buf [ 0 ] ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( i = 1 ;\n i < header . header_size ;\n i ++ ) header_buffer [ i - 1 ] = s -> buf [ i ] ^ s -> buf [ i + 1 ] ;\n header . compression = header_buffer [ 0 ] ;\n header . deltaset = header_buffer [ 1 ] ;\n header . vectable = header_buffer [ 2 ] ;\n header . ysize = AV_RL16 ( & header_buffer [ 3 ] ) ;\n header . xsize = AV_RL16 ( & header_buffer [ 5 ] ) ;\n header . checksum = AV_RL16 ( & header_buffer [ 7 ] ) ;\n header . version = header_buffer [ 9 ] ;\n header . header_type = header_buffer [ 10 ] ;\n header . flags = header_buffer [ 11 ] ;\n header . control = header_buffer [ 12 ] ;\n if ( header . version >= 2 ) {\n if ( header . header_type > 3 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"invalid header type (%d)\\n\" , header . header_type ) ;\n return AVERROR_INVALIDDATA ;\n }\n else if ( ( header . header_type == 2 ) || ( header . header_type == 3 ) ) {\n s -> flags = header . flags ;\n if ( ! ( s -> flags & FLAG_INTERFRAME ) ) s -> flags |= FLAG_KEYFRAME ;\n }\n else s -> flags = FLAG_KEYFRAME ;\n }\n else s -> flags = FLAG_KEYFRAME ;\n if ( s -> flags & FLAG_SPRITE ) {\n av_log_ask_for_sample ( s -> avctx , \"SPRITE frame found.\\n\" ) ;\n return AVERROR_PATCHWELCOME ;\n }\n else {\n s -> w = header . xsize ;\n s -> h = header . ysize ;\n if ( header . header_type < 2 ) {\n if ( ( s -> w < 213 ) && ( s -> h >= 176 ) ) {\n s -> flags |= FLAG_INTERPOLATED ;\n av_log_ask_for_sample ( s -> avctx , \"INTERPOLATION selected.\\n\" ) ;\n }\n }\n }\n if ( header . compression >= 17 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"invalid compression type (%d)\\n\" , header . compression ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ( header . deltaset != s -> last_deltaset ) || ( header . vectable != s -> last_vectable ) ) select_delta_tables ( s , header . deltaset ) ;\n if ( ( header . compression & 1 ) && header . header_type ) sel_vector_table = pc_tbl2 ;\n else {\n if ( header . vectable > 0 && header . vectable < 4 ) sel_vector_table = tables [ header . vectable - 1 ] ;\n else {\n av_log ( s -> avctx , AV_LOG_ERROR , \"invalid vector table id (%d)\\n\" , header . vectable ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n if ( compression_types [ header . compression ] . algorithm == ALGO_RGB24H ) {\n new_pix_fmt = AV_PIX_FMT_RGB32 ;\n width_shift = 1 ;\n }\n else new_pix_fmt = AV_PIX_FMT_RGB555 ;\n s -> w >>= width_shift ;\n if ( ( ret = av_image_check_size ( s -> w , s -> h , 0 , s -> avctx ) ) < 0 ) return ret ;\n if ( s -> w != s -> avctx -> width || s -> h != s -> avctx -> height || new_pix_fmt != s -> avctx -> pix_fmt ) {\n if ( s -> frame . data [ 0 ] ) s -> avctx -> release_buffer ( s -> avctx , & s -> frame ) ;\n s -> avctx -> sample_aspect_ratio = ( AVRational ) {\n 1 << width_shift , 1 }\n ;\n s -> avctx -> pix_fmt = new_pix_fmt ;\n avcodec_set_dimensions ( s -> avctx , s -> w , s -> h ) ;\n av_fast_malloc ( & s -> vert_pred , & s -> vert_pred_size , s -> avctx -> width * sizeof ( unsigned int ) ) ;\n }\n s -> mb_change_bits_row_size = ( ( s -> avctx -> width >> ( 2 - width_shift ) ) + 7 ) >> 3 ;\n if ( ( header . deltaset != s -> last_deltaset ) || ( header . vectable != s -> last_vectable ) ) {\n if ( compression_types [ header . compression ] . algorithm == ALGO_RGB24H ) gen_vector_table24 ( s , sel_vector_table ) ;\n else if ( s -> avctx -> pix_fmt == AV_PIX_FMT_RGB555 ) gen_vector_table15 ( s , sel_vector_table ) ;\n else gen_vector_table16 ( s , sel_vector_table ) ;\n }\n s -> mb_change_bits = s -> buf + header . header_size ;\n if ( s -> flags & FLAG_KEYFRAME ) {\n s -> index_stream = s -> mb_change_bits ;\n }\n else {\n s -> index_stream = s -> mb_change_bits + ( s -> mb_change_bits_row_size * ( s -> avctx -> height >> 2 ) ) ;\n }\n s -> index_stream_size = s -> size - ( s -> index_stream - s -> buf ) ;\n s -> last_deltaset = header . deltaset ;\n s -> last_vectable = header . vectable ;\n s -> compression = header . compression ;\n s -> block_width = compression_types [ header . compression ] . block_width ;\n s -> block_height = compression_types [ header . compression ] . block_height ;\n s -> block_type = compression_types [ header . compression ] . block_type ;\n if ( s -> avctx -> debug & FF_DEBUG_PICT_INFO ) av_log ( s -> avctx , AV_LOG_INFO , \"tables: %d / %d c:%d %dx%d t:%d %s%s%s%s\\n\" , s -> last_deltaset , s -> last_vectable , s -> compression , s -> block_width , s -> block_height , s -> block_type , s -> flags & FLAG_KEYFRAME ? \" KEY\" : \"\" , s -> flags & FLAG_INTERFRAME ? \" INTER\" : \"\" , s -> flags & FLAG_SPRITE ? \" SPRITE\" : \"\" , s -> flags & FLAG_INTERPOLATED ? \" INTERPOL\" : \"\" ) ;\n return header . header_size ;\n }"}
{"idx": 137, "target": 0, "func": "static int dissect_h245_DialingInformation ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_DialingInformation , DialingInformation_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 138, "target": 0, "func": "static void dissect_rsvp_detour ( proto_tree * ti , packet_info * pinfo , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int type ) {\n int remaining_length , count ;\n int iter ;\n proto_item_set_text ( ti , \"DETOUR: \" ) ;\n switch ( type ) {\n case 7 : iter = 0 ;\n proto_tree_add_uint ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type ) ;\n for ( remaining_length = obj_length - 4 , count = 1 ;\n remaining_length > 0 ;\n remaining_length -= 8 , count ++ ) {\n if ( remaining_length < 8 ) {\n proto_tree_add_expert_format ( rsvp_object_tree , pinfo , & ei_rsvp_invalid_length , tvb , offset + remaining_length , obj_length - remaining_length , \"Invalid length: cannot decode\" ) ;\n proto_item_append_text ( ti , \"Invalid length\" ) ;\n break ;\n }\n iter ++ ;\n proto_tree_add_ipv4_format ( rsvp_object_tree , hf_rsvp_detour_plr_id , tvb , offset + ( 4 * iter ) , 4 , tvb_get_ntohl ( tvb , offset + ( 4 * iter ) ) , \"PLR ID %d: %s\" , count , tvb_ip_to_str ( tvb , offset + ( 4 * iter ) ) ) ;\n iter ++ ;\n proto_tree_add_ipv4_format ( rsvp_object_tree , hf_rsvp_detour_avoid_node_id , tvb , offset + ( 4 * iter ) , 4 , tvb_get_ntohl ( tvb , offset + ( 4 * iter ) ) , \"Avoid Node ID %d: %s\" , count , tvb_ip_to_str ( tvb , offset + ( 4 * iter ) ) ) ;\n }\n break ;\n default : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"Unknown (%u)\" , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_detour_data , tvb , offset + 4 , obj_length - 4 , ENC_NA ) ;\n break ;\n }\n }"}
{"idx": 139, "target": 0, "func": "static void test_prepare_multi_statements ( ) {\n MYSQL * mysql_local ;\n MYSQL_STMT * stmt ;\n char query [ MAX_TEST_QUERY_LENGTH ] ;\n myheader ( \"test_prepare_multi_statements\" ) ;\n if ( ! ( mysql_local = mysql_client_init ( NULL ) ) ) {\n fprintf ( stderr , \"\\n mysql_client_init() failed\" ) ;\n exit ( 1 ) ;\n }\n if ( ! ( mysql_real_connect ( mysql_local , opt_host , opt_user , opt_password , current_db , opt_port , opt_unix_socket , CLIENT_MULTI_STATEMENTS ) ) ) {\n fprintf ( stderr , \"\\n connection failed(%s)\" , mysql_error ( mysql_local ) ) ;\n exit ( 1 ) ;\n }\n mysql_local -> reconnect = 1 ;\n strmov ( query , \"select 1;\n select 'another value'\" ) ;\n stmt = mysql_simple_prepare ( mysql_local , query ) ;\n check_stmt_r ( stmt ) ;\n mysql_close ( mysql_local ) ;\n }"}
{"idx": 140, "target": 1, "func": "int vp9_compute_qdelta ( const RATE_CONTROL * rc , double qstart , double qtarget ) {\n int start_index = rc -> worst_quality ;\n int target_index = rc -> worst_quality ;\n int i ;\n for ( i = rc -> best_quality ;\n i < rc -> worst_quality ;\n ++ i ) {\n start_index = i ;\n if ( vp9_convert_qindex_to_q ( i ) >= qstart ) break ;\n }\n for ( i = rc -> best_quality ;\n i < rc -> worst_quality ;\n ++ i ) {\n target_index = i ;\n if ( vp9_convert_qindex_to_q ( i ) >= qtarget ) break ;\n }\n return target_index - start_index ;\n }"}
{"idx": 141, "target": 0, "func": "static int dissect_h225_Content ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_Content , Content_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 142, "target": 0, "func": "static int read_and_execute ( bool interactive ) {\n # if defined ( __WIN__ ) String tmpbuf ;\n String buffer ;\n # endif char * line = NULL ;\n char in_string = 0 ;\n ulong line_number = 0 ;\n bool ml_comment = 0 ;\n COMMANDS * com ;\n ulong line_length = 0 ;\n status . exit_status = 1 ;\n real_binary_mode = ! interactive && opt_binary_mode ;\n while ( ! aborted ) {\n if ( ! interactive ) {\n line = batch_readline ( status . line_buff , real_binary_mode ) ;\n if ( line ) {\n line_length = status . line_buff -> read_length ;\n if ( ! real_binary_mode && strlen ( line ) != line_length ) {\n status . exit_status = 1 ;\n String msg ;\n msg . append ( \"ASCII '\\\\0' appeared in the statement, but this is not \" \"allowed unless option --binary-mode is enabled and mysql is \" \"run in non-interactive mode. Set --binary-mode to 1 if ASCII \" \"'\\\\0' is expected. Query: '\" ) ;\n msg . append ( glob_buffer ) ;\n msg . append ( line ) ;\n msg . append ( \"'.\" ) ;\n put_info ( msg . c_ptr ( ) , INFO_ERROR ) ;\n break ;\n }\n if ( ! line_number && ( uchar ) line [ 0 ] == 0xEF && ( uchar ) line [ 1 ] == 0xBB && ( uchar ) line [ 2 ] == 0xBF ) {\n line += 3 ;\n line_length -= 3 ;\n }\n }\n line_number ++ ;\n if ( ! glob_buffer . length ( ) ) status . query_start_line = line_number ;\n }\n else {\n char * prompt = ( char * ) ( ml_comment ? \" /*> \" : glob_buffer . is_empty ( ) ? construct_prompt ( ) : ! in_string ? \" -> \" : in_string == '\\'' ? \" '> \" : ( in_string == '`' ? \" `> \" : \" \\\"> \" ) ) ;\n if ( opt_outfile && glob_buffer . is_empty ( ) ) fflush ( OUTFILE ) ;\n # if defined ( __WIN__ ) tee_fputs ( prompt , stdout ) ;\n if ( ! tmpbuf . is_alloced ( ) ) tmpbuf . alloc ( 65535 ) ;\n tmpbuf . length ( 0 ) ;\n buffer . length ( 0 ) ;\n size_t clen ;\n do {\n line = my_cgets ( ( char * ) tmpbuf . ptr ( ) , tmpbuf . alloced_length ( ) - 1 , & clen ) ;\n buffer . append ( line , clen ) ;\n }\n while ( tmpbuf . alloced_length ( ) <= clen ) ;\n if ( line ) line = buffer . c_ptr ( ) ;\n # else if ( opt_outfile ) fputs ( prompt , OUTFILE ) ;\n if ( line ) free ( line ) ;\n line = readline ( prompt ) ;\n # endif if ( opt_outfile && line ) fprintf ( OUTFILE , \"%s\\n\" , line ) ;\n line_length = line ? strlen ( line ) : 0 ;\n }\n if ( ! line ) {\n if ( status . line_buff && status . line_buff -> error ) status . exit_status = 1 ;\n else status . exit_status = 0 ;\n break ;\n }\n if ( ( named_cmds || glob_buffer . is_empty ( ) ) && ! ml_comment && ! in_string && ( com = find_command ( line ) ) ) {\n if ( ( * com -> func ) ( & glob_buffer , line ) > 0 ) break ;\n if ( glob_buffer . is_empty ( ) ) in_string = 0 ;\n # ifdef HAVE_READLINE if ( interactive && status . add_to_history && not_in_history ( line ) ) add_history ( line ) ;\n # endif continue ;\n }\n if ( add_line ( glob_buffer , line , line_length , & in_string , & ml_comment , status . line_buff ? status . line_buff -> truncated : 0 ) ) break ;\n }\n if ( ! interactive && ! status . exit_status ) {\n remove_cntrl ( glob_buffer ) ;\n if ( ! glob_buffer . is_empty ( ) ) {\n status . exit_status = 1 ;\n if ( com_go ( & glob_buffer , line ) <= 0 ) status . exit_status = 0 ;\n }\n }\n # if defined ( __WIN__ ) buffer . free ( ) ;\n tmpbuf . free ( ) ;\n # else if ( interactive ) free ( line ) ;\n # endif real_binary_mode = FALSE ;\n return status . exit_status ;\n }"}
{"idx": 143, "target": 0, "func": "static void prepare_new_databases ( void ) {\n set_frozenxids ( false ) ;\n prep_status ( \"Restoring global objects in the new cluster\" ) ;\n exec_prog ( UTILITY_LOG_FILE , NULL , true , \"\\\"%s/psql\\\" \" EXEC_PSQL_ARGS \" %s -f \\\"%s\\\"\" , new_cluster . bindir , cluster_conn_opts ( & new_cluster ) , GLOBALS_DUMP_FILE ) ;\n check_ok ( ) ;\n get_db_and_rel_infos ( & new_cluster ) ;\n }"}
{"idx": 144, "target": 0, "func": "static const char * cmd_response_body_access ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n if ( dcfg == NULL ) return NULL ;\n if ( strcasecmp ( p1 , \"on\" ) == 0 ) dcfg -> resbody_access = 1 ;\n else if ( strcasecmp ( p1 , \"off\" ) == 0 ) dcfg -> resbody_access = 0 ;\n else return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid value for SecResponseBodyAccess: %s\" , p1 ) ;\n return NULL ;\n }"}
{"idx": 145, "target": 1, "func": "static int select_input_picture ( MpegEncContext * s ) {\n int i ;\n for ( i = 1 ;\n i < MAX_PICTURE_COUNT ;\n i ++ ) s -> reordered_input_picture [ i - 1 ] = s -> reordered_input_picture [ i ] ;\n s -> reordered_input_picture [ MAX_PICTURE_COUNT - 1 ] = NULL ;\n if ( s -> reordered_input_picture [ 0 ] == NULL && s -> input_picture [ 0 ] ) {\n if ( s -> next_picture_ptr == NULL || s -> intra_only ) {\n s -> reordered_input_picture [ 0 ] = s -> input_picture [ 0 ] ;\n s -> reordered_input_picture [ 0 ] -> f . pict_type = AV_PICTURE_TYPE_I ;\n s -> reordered_input_picture [ 0 ] -> f . coded_picture_number = s -> coded_picture_number ++ ;\n }\n else {\n int b_frames ;\n if ( s -> avctx -> frame_skip_threshold || s -> avctx -> frame_skip_factor ) {\n if ( s -> picture_in_gop_number < s -> gop_size && skip_check ( s , s -> input_picture [ 0 ] , s -> next_picture_ptr ) ) {\n if ( s -> input_picture [ 0 ] -> f . type == FF_BUFFER_TYPE_SHARED ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) s -> input_picture [ 0 ] -> f . data [ i ] = NULL ;\n s -> input_picture [ 0 ] -> f . type = 0 ;\n }\n else {\n assert ( s -> input_picture [ 0 ] -> f . type == FF_BUFFER_TYPE_USER || s -> input_picture [ 0 ] -> f . type == FF_BUFFER_TYPE_INTERNAL ) ;\n s -> avctx -> release_buffer ( s -> avctx , & s -> input_picture [ 0 ] -> f ) ;\n }\n emms_c ( ) ;\n ff_vbv_update ( s , 0 ) ;\n goto no_output_pic ;\n }\n }\n if ( s -> flags & CODEC_FLAG_PASS2 ) {\n for ( i = 0 ;\n i < s -> max_b_frames + 1 ;\n i ++ ) {\n int pict_num = s -> input_picture [ 0 ] -> f . display_picture_number + i ;\n if ( pict_num >= s -> rc_context . num_entries ) break ;\n if ( ! s -> input_picture [ i ] ) {\n s -> rc_context . entry [ pict_num - 1 ] . new_pict_type = AV_PICTURE_TYPE_P ;\n break ;\n }\n s -> input_picture [ i ] -> f . pict_type = s -> rc_context . entry [ pict_num ] . new_pict_type ;\n }\n }\n if ( s -> avctx -> b_frame_strategy == 0 ) {\n b_frames = s -> max_b_frames ;\n while ( b_frames && ! s -> input_picture [ b_frames ] ) b_frames -- ;\n }\n else if ( s -> avctx -> b_frame_strategy == 1 ) {\n for ( i = 1 ;\n i < s -> max_b_frames + 1 ;\n i ++ ) {\n if ( s -> input_picture [ i ] && s -> input_picture [ i ] -> b_frame_score == 0 ) {\n s -> input_picture [ i ] -> b_frame_score = get_intra_count ( s , s -> input_picture [ i ] -> f . data [ 0 ] , s -> input_picture [ i - 1 ] -> f . data [ 0 ] , s -> linesize ) + 1 ;\n }\n }\n for ( i = 0 ;\n i < s -> max_b_frames + 1 ;\n i ++ ) {\n if ( s -> input_picture [ i ] == NULL || s -> input_picture [ i ] -> b_frame_score - 1 > s -> mb_num / s -> avctx -> b_sensitivity ) break ;\n }\n b_frames = FFMAX ( 0 , i - 1 ) ;\n for ( i = 0 ;\n i < b_frames + 1 ;\n i ++ ) {\n s -> input_picture [ i ] -> b_frame_score = 0 ;\n }\n }\n else if ( s -> avctx -> b_frame_strategy == 2 ) {\n b_frames = estimate_best_b_count ( s ) ;\n }\n else {\n av_log ( s -> avctx , AV_LOG_ERROR , \"illegal b frame strategy\\n\" ) ;\n b_frames = 0 ;\n }\n emms_c ( ) ;\n for ( i = b_frames - 1 ;\n i >= 0 ;\n i -- ) {\n int type = s -> input_picture [ i ] -> f . pict_type ;\n if ( type && type != AV_PICTURE_TYPE_B ) b_frames = i ;\n }\n if ( s -> input_picture [ b_frames ] -> f . pict_type == AV_PICTURE_TYPE_B && b_frames == s -> max_b_frames ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"warning, too many b frames in a row\\n\" ) ;\n }\n if ( s -> picture_in_gop_number + b_frames >= s -> gop_size ) {\n if ( ( s -> mpv_flags & FF_MPV_FLAG_STRICT_GOP ) && s -> gop_size > s -> picture_in_gop_number ) {\n b_frames = s -> gop_size - s -> picture_in_gop_number - 1 ;\n }\n else {\n if ( s -> flags & CODEC_FLAG_CLOSED_GOP ) b_frames = 0 ;\n s -> input_picture [ b_frames ] -> f . pict_type = AV_PICTURE_TYPE_I ;\n }\n }\n if ( ( s -> flags & CODEC_FLAG_CLOSED_GOP ) && b_frames && s -> input_picture [ b_frames ] -> f . pict_type == AV_PICTURE_TYPE_I ) b_frames -- ;\n s -> reordered_input_picture [ 0 ] = s -> input_picture [ b_frames ] ;\n if ( s -> reordered_input_picture [ 0 ] -> f . pict_type != AV_PICTURE_TYPE_I ) s -> reordered_input_picture [ 0 ] -> f . pict_type = AV_PICTURE_TYPE_P ;\n s -> reordered_input_picture [ 0 ] -> f . coded_picture_number = s -> coded_picture_number ++ ;\n for ( i = 0 ;\n i < b_frames ;\n i ++ ) {\n s -> reordered_input_picture [ i + 1 ] = s -> input_picture [ i ] ;\n s -> reordered_input_picture [ i + 1 ] -> f . pict_type = AV_PICTURE_TYPE_B ;\n s -> reordered_input_picture [ i + 1 ] -> f . coded_picture_number = s -> coded_picture_number ++ ;\n }\n }\n }\n no_output_pic : if ( s -> reordered_input_picture [ 0 ] ) {\n s -> reordered_input_picture [ 0 ] -> f . reference = s -> reordered_input_picture [ 0 ] -> f . pict_type != AV_PICTURE_TYPE_B ? 3 : 0 ;\n ff_copy_picture ( & s -> new_picture , s -> reordered_input_picture [ 0 ] ) ;\n if ( s -> reordered_input_picture [ 0 ] -> f . type == FF_BUFFER_TYPE_SHARED || s -> avctx -> rc_buffer_size ) {\n Picture * pic ;\n int i = ff_find_unused_picture ( s , 0 ) ;\n if ( i < 0 ) return i ;\n pic = & s -> picture [ i ] ;\n pic -> f . reference = s -> reordered_input_picture [ 0 ] -> f . reference ;\n if ( ff_alloc_picture ( s , pic , 0 ) < 0 ) {\n return - 1 ;\n }\n if ( s -> reordered_input_picture [ 0 ] -> f . type == FF_BUFFER_TYPE_INTERNAL ) s -> avctx -> release_buffer ( s -> avctx , & s -> reordered_input_picture [ 0 ] -> f ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) s -> reordered_input_picture [ 0 ] -> f . data [ i ] = NULL ;\n s -> reordered_input_picture [ 0 ] -> f . type = 0 ;\n copy_picture_attributes ( s , & pic -> f , & s -> reordered_input_picture [ 0 ] -> f ) ;\n s -> current_picture_ptr = pic ;\n }\n else {\n assert ( s -> reordered_input_picture [ 0 ] -> f . type == FF_BUFFER_TYPE_USER || s -> reordered_input_picture [ 0 ] -> f . type == FF_BUFFER_TYPE_INTERNAL ) ;\n s -> current_picture_ptr = s -> reordered_input_picture [ 0 ] ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n s -> new_picture . f . data [ i ] += INPLACE_OFFSET ;\n }\n }\n ff_copy_picture ( & s -> current_picture , s -> current_picture_ptr ) ;\n s -> picture_number = s -> new_picture . f . display_picture_number ;\n }\n else {\n memset ( & s -> new_picture , 0 , sizeof ( Picture ) ) ;\n }\n return 0 ;\n }"}
{"idx": 146, "target": 0, "func": "static int dissect_PRINTER_INFO_3 ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_printer_flags , NULL ) ;\n offset = dissect_nt_sec_desc ( tvb , offset , pinfo , tree , drep , FALSE , - 1 , & spoolss_printer_access_mask_info ) ;\n return offset ;\n }"}
{"idx": 147, "target": 0, "func": "static void macio_ide_realizefn ( DeviceState * dev , Error * * errp ) {\n MACIOIDEState * s = MACIO_IDE ( dev ) ;\n ide_init2 ( & s -> bus , s -> irq ) ;\n s -> dma . ops = & dbdma_ops ;\n s -> bus . dma = & s -> dma ;\n }"}
{"idx": 148, "target": 0, "func": "static void _ctld_free_list_msg ( void * x ) {\n FREE_NULL_BUFFER ( x ) ;\n }"}
{"idx": 149, "target": 0, "func": "int EVP_CIPHER_CTX_set_padding ( EVP_CIPHER_CTX * ctx , int pad ) {\n if ( pad ) ctx -> flags &= ~ EVP_CIPH_NO_PADDING ;\n else ctx -> flags |= EVP_CIPH_NO_PADDING ;\n return 1 ;\n }"}
{"idx": 150, "target": 0, "func": "int jbig2_end_of_page ( Jbig2Ctx * ctx , Jbig2Segment * segment , const uint8_t * segment_data ) {\n uint32_t page_number = ctx -> pages [ ctx -> current_page ] . number ;\n if ( segment -> page_association != page_number ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"end of page marker for page %d doesn't match current page number %d\" , segment -> page_association , page_number ) ;\n }\n jbig2_error ( ctx , JBIG2_SEVERITY_INFO , segment -> number , \"end of page %d\" , page_number ) ;\n jbig2_complete_page ( ctx ) ;\n # ifdef OUTPUT_PBM jbig2_image_write_pbm ( ctx -> pages [ ctx -> current_page ] . image , stdout ) ;\n # endif return 0 ;\n }"}
{"idx": 151, "target": 1, "func": "static void setup_frame_size ( VP9_COMMON * cm , struct vp9_read_bit_buffer * rb ) {\n int width , height ;\n vp9_read_frame_size ( rb , & width , & height ) ;\n resize_context_buffers ( cm , width , height ) ;\n setup_display_size ( cm , rb ) ;\n if ( vp9_realloc_frame_buffer ( get_frame_new_buffer ( cm ) , cm -> width , cm -> height , cm -> subsampling_x , cm -> subsampling_y , # if CONFIG_VP9_HIGHBITDEPTH cm -> use_highbitdepth , # endif VP9_DEC_BORDER_IN_PIXELS , & cm -> frame_bufs [ cm -> new_fb_idx ] . raw_frame_buffer , cm -> get_fb_cb , cm -> cb_priv ) ) {\n vpx_internal_error ( & cm -> error , VPX_CODEC_MEM_ERROR , \"Failed to allocate frame buffer\" ) ;\n }\n }"}
{"idx": 152, "target": 0, "func": "int pdf_cmap_wmode ( fz_context * ctx , pdf_cmap * cmap ) {\n return cmap -> wmode ;\n }"}
{"idx": 153, "target": 0, "func": "int kvm_device_pci_assign ( KVMState * s , PCIHostDeviceAddress * dev_addr , uint32_t flags , uint32_t * dev_id ) {\n struct kvm_assigned_pci_dev dev_data = {\n . segnr = dev_addr -> domain , . busnr = dev_addr -> bus , . devfn = PCI_DEVFN ( dev_addr -> slot , dev_addr -> function ) , . flags = flags , }\n ;\n int ret ;\n dev_data . assigned_dev_id = ( dev_addr -> domain << 16 ) | ( dev_addr -> bus << 8 ) | dev_data . devfn ;\n ret = kvm_vm_ioctl ( s , KVM_ASSIGN_PCI_DEVICE , & dev_data ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n * dev_id = dev_data . assigned_dev_id ;\n return 0 ;\n }"}
{"idx": 154, "target": 0, "func": "static int dcc_resume_file_check ( FILE_DCC_REC * dcc , IRC_SERVER_REC * server , uoff_t size ) {\n if ( size >= dcc -> size ) {\n dcc -> starttime = time ( NULL ) ;\n dcc_reject ( DCC ( dcc ) , server ) ;\n }\n else if ( lseek ( dcc -> fhandle , ( off_t ) size , SEEK_SET ) != ( off_t ) size ) {\n dcc_reject ( DCC ( dcc ) , server ) ;\n }\n else {\n dcc -> transfd = dcc -> skipped = size ;\n return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 155, "target": 0, "func": "static inline int verify_sec_ctx_len ( const void * p ) {\n const struct sadb_x_sec_ctx * sec_ctx = p ;\n int len = sec_ctx -> sadb_x_ctx_len ;\n if ( len > PAGE_SIZE ) return - EINVAL ;\n len = pfkey_sec_ctx_len ( sec_ctx ) ;\n if ( sec_ctx -> sadb_x_sec_len != len ) return - EINVAL ;\n return 0 ;\n }"}
{"idx": 156, "target": 1, "func": "static int nsv_parse_NSVf_header ( AVFormatContext * s ) {\n NSVContext * nsv = s -> priv_data ;\n AVIOContext * pb = s -> pb ;\n unsigned int av_unused file_size ;\n unsigned int size ;\n int64_t duration ;\n int strings_size ;\n int table_entries ;\n int table_entries_used ;\n nsv -> state = NSV_UNSYNC ;\n size = avio_rl32 ( pb ) ;\n if ( size < 28 ) return - 1 ;\n nsv -> NSVf_end = size ;\n file_size = ( uint32_t ) avio_rl32 ( pb ) ;\n av_log ( s , AV_LOG_TRACE , \"NSV NSVf chunk_size %u\\n\" , size ) ;\n av_log ( s , AV_LOG_TRACE , \"NSV NSVf file_size %u\\n\" , file_size ) ;\n nsv -> duration = duration = avio_rl32 ( pb ) ;\n av_log ( s , AV_LOG_TRACE , \"NSV NSVf duration %\" PRId64 \" ms\\n\" , duration ) ;\n strings_size = avio_rl32 ( pb ) ;\n table_entries = avio_rl32 ( pb ) ;\n table_entries_used = avio_rl32 ( pb ) ;\n av_log ( s , AV_LOG_TRACE , \"NSV NSVf info-strings size: %d, table entries: %d, bis %d\\n\" , strings_size , table_entries , table_entries_used ) ;\n if ( avio_feof ( pb ) ) return - 1 ;\n av_log ( s , AV_LOG_TRACE , \"NSV got header;\n filepos %\" PRId64 \"\\n\" , avio_tell ( pb ) ) ;\n if ( strings_size > 0 ) {\n char * strings ;\n char * p , * endp ;\n char * token , * value ;\n char quote ;\n p = strings = av_mallocz ( ( size_t ) strings_size + 1 ) ;\n if ( ! p ) return AVERROR ( ENOMEM ) ;\n endp = strings + strings_size ;\n avio_read ( pb , strings , strings_size ) ;\n while ( p < endp ) {\n while ( * p == ' ' ) p ++ ;\n if ( p >= endp - 2 ) break ;\n token = p ;\n p = strchr ( p , '=' ) ;\n if ( ! p || p >= endp - 2 ) break ;\n * p ++ = '\\0' ;\n quote = * p ++ ;\n value = p ;\n p = strchr ( p , quote ) ;\n if ( ! p || p >= endp ) break ;\n * p ++ = '\\0' ;\n av_log ( s , AV_LOG_TRACE , \"NSV NSVf INFO: %s='%s'\\n\" , token , value ) ;\n av_dict_set ( & s -> metadata , token , value , 0 ) ;\n }\n av_free ( strings ) ;\n }\n if ( avio_feof ( pb ) ) return - 1 ;\n av_log ( s , AV_LOG_TRACE , \"NSV got infos;\n filepos %\" PRId64 \"\\n\" , avio_tell ( pb ) ) ;\n if ( table_entries_used > 0 ) {\n int i ;\n nsv -> index_entries = table_entries_used ;\n if ( ( unsigned ) table_entries_used >= UINT_MAX / sizeof ( uint32_t ) ) return - 1 ;\n nsv -> nsvs_file_offset = av_malloc_array ( ( unsigned ) table_entries_used , sizeof ( uint32_t ) ) ;\n if ( ! nsv -> nsvs_file_offset ) return AVERROR ( ENOMEM ) ;\n for ( i = 0 ;\n i < table_entries_used ;\n i ++ ) nsv -> nsvs_file_offset [ i ] = avio_rl32 ( pb ) + size ;\n if ( table_entries > table_entries_used && avio_rl32 ( pb ) == MKTAG ( 'T' , 'O' , 'C' , '2' ) ) {\n nsv -> nsvs_timestamps = av_malloc_array ( ( unsigned ) table_entries_used , sizeof ( uint32_t ) ) ;\n if ( ! nsv -> nsvs_timestamps ) return AVERROR ( ENOMEM ) ;\n for ( i = 0 ;\n i < table_entries_used ;\n i ++ ) {\n nsv -> nsvs_timestamps [ i ] = avio_rl32 ( pb ) ;\n }\n }\n }\n av_log ( s , AV_LOG_TRACE , \"NSV got index;\n filepos %\" PRId64 \"\\n\" , avio_tell ( pb ) ) ;\n avio_seek ( pb , nsv -> base_offset + size , SEEK_SET ) ;\n if ( avio_feof ( pb ) ) return - 1 ;\n nsv -> state = NSV_HAS_READ_NSVF ;\n return 0 ;\n }"}
{"idx": 157, "target": 0, "func": "static int dissect_h225_RehomingModel ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_RehomingModel , RehomingModel_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 158, "target": 0, "func": "static inline int asv1_decode_block ( ASV1Context * a , int16_t block [ 64 ] ) {\n int i ;\n block [ 0 ] = 8 * get_bits ( & a -> gb , 8 ) ;\n for ( i = 0 ;\n i < 11 ;\n i ++ ) {\n const int ccp = get_vlc2 ( & a -> gb , ccp_vlc . table , VLC_BITS , 1 ) ;\n if ( ccp ) {\n if ( ccp == 16 ) break ;\n if ( ccp < 0 || i >= 10 ) {\n av_log ( a -> avctx , AV_LOG_ERROR , \"coded coeff pattern damaged\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ccp & 8 ) block [ a -> scantable . permutated [ 4 * i + 0 ] ] = ( asv1_get_level ( & a -> gb ) * a -> intra_matrix [ 4 * i + 0 ] ) >> 4 ;\n if ( ccp & 4 ) block [ a -> scantable . permutated [ 4 * i + 1 ] ] = ( asv1_get_level ( & a -> gb ) * a -> intra_matrix [ 4 * i + 1 ] ) >> 4 ;\n if ( ccp & 2 ) block [ a -> scantable . permutated [ 4 * i + 2 ] ] = ( asv1_get_level ( & a -> gb ) * a -> intra_matrix [ 4 * i + 2 ] ) >> 4 ;\n if ( ccp & 1 ) block [ a -> scantable . permutated [ 4 * i + 3 ] ] = ( asv1_get_level ( & a -> gb ) * a -> intra_matrix [ 4 * i + 3 ] ) >> 4 ;\n }\n }\n return 0 ;\n }"}
{"idx": 159, "target": 0, "func": "static void dumppstr ( FILE * file , const char * str ) {\n putc ( strlen ( str ) , file ) ;\n fwrite ( str , sizeof ( char ) , strlen ( str ) , file ) ;\n }"}
{"idx": 160, "target": 0, "func": "static int dissect_h245_RequestChannelCloseReject ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_RequestChannelCloseReject , RequestChannelCloseReject_sequence ) ;\n return offset ;\n }"}
{"idx": 161, "target": 0, "func": "static const char * U_CALLCONV _UTF16BEGetName ( const UConverter * cnv ) {\n if ( UCNV_GET_VERSION ( cnv ) == 0 ) {\n return \"UTF-16BE\" ;\n }\n else {\n return \"UTF-16BE,version=1\" ;\n }\n }"}
{"idx": 162, "target": 0, "func": "static gint32 get_int_value ( proto_tree * tree , tvbuff_t * tvb , gint offset , gint length , const guint encoding ) {\n gint32 value ;\n gboolean length_error ;\n switch ( length ) {\n case 1 : value = ( gint8 ) tvb_get_guint8 ( tvb , offset ) ;\n break ;\n case 2 : value = ( gint16 ) ( encoding ? tvb_get_letohs ( tvb , offset ) : tvb_get_ntohs ( tvb , offset ) ) ;\n break ;\n case 3 : value = encoding ? tvb_get_letoh24 ( tvb , offset ) : tvb_get_ntoh24 ( tvb , offset ) ;\n if ( value & 0x00800000 ) {\n value |= 0xFF000000 ;\n }\n break ;\n case 4 : value = encoding ? tvb_get_letohl ( tvb , offset ) : tvb_get_ntohl ( tvb , offset ) ;\n break ;\n default : if ( length < 1 ) {\n length_error = TRUE ;\n value = 0 ;\n }\n else {\n length_error = FALSE ;\n value = encoding ? tvb_get_letohl ( tvb , offset ) : tvb_get_ntohl ( tvb , offset ) ;\n }\n report_type_length_mismatch ( tree , \"a signed integer\" , length , length_error ) ;\n break ;\n }\n return value ;\n }"}
{"idx": 163, "target": 0, "func": "static inline int vorbis_residue_decode ( vorbis_context * vc , vorbis_residue * vr , unsigned ch , uint8_t * do_not_decode , float * vec , unsigned vlen , unsigned ch_left ) {\n if ( vr -> type == 2 ) return vorbis_residue_decode_internal ( vc , vr , ch , do_not_decode , vec , vlen , ch_left , 2 ) ;\n else if ( vr -> type == 1 ) return vorbis_residue_decode_internal ( vc , vr , ch , do_not_decode , vec , vlen , ch_left , 1 ) ;\n else if ( vr -> type == 0 ) return vorbis_residue_decode_internal ( vc , vr , ch , do_not_decode , vec , vlen , ch_left , 0 ) ;\n else {\n av_log ( vc -> avctx , AV_LOG_ERROR , \" Invalid residue type while residue decode?! \\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n }"}
{"idx": 164, "target": 0, "func": "int wpa_check_MIC ( struct eapol_header * eapol , struct eapol_key_header * eapol_key , size_t eapol_len , u_char * kck , int algo ) {\n u_char mic [ WPA_MICKEY_LEN ] ;\n u_int len ;\n u_char hmac_mic [ 20 ] ;\n memcpy ( mic , eapol_key -> key_MIC , WPA_MICKEY_LEN ) ;\n memset ( eapol_key -> key_MIC , 0 , WPA_MICKEY_LEN ) ;\n if ( algo == WPA_KEY_TKIP ) {\n HMAC ( EVP_md5 ( ) , kck , WPA_KCK_LEN , ( u_char * ) eapol , eapol_len , hmac_mic , & len ) ;\n }\n else if ( algo == WPA_KEY_CCMP ) {\n HMAC ( EVP_sha1 ( ) , kck , WPA_KCK_LEN , ( u_char * ) eapol , eapol_len , hmac_mic , & len ) ;\n }\n else return - E_INVALID ;\n memcpy ( eapol_key -> key_MIC , mic , WPA_MICKEY_LEN ) ;\n return memcmp ( mic , hmac_mic , WPA_MICKEY_LEN ) ;\n }"}
{"idx": 165, "target": 0, "func": "PXA2xxState * pxa270_init ( MemoryRegion * address_space , unsigned int sdram_size , const char * revision ) {\n PXA2xxState * s ;\n int i ;\n DriveInfo * dinfo ;\n s = ( PXA2xxState * ) g_malloc0 ( sizeof ( PXA2xxState ) ) ;\n if ( revision && strncmp ( revision , \"pxa27\" , 5 ) ) {\n fprintf ( stderr , \"Machine requires a PXA27x processor.\\n\" ) ;\n exit ( 1 ) ;\n }\n if ( ! revision ) revision = \"pxa270\" ;\n s -> cpu = cpu_arm_init ( revision ) ;\n if ( s -> cpu == NULL ) {\n fprintf ( stderr , \"Unable to find CPU definition\\n\" ) ;\n exit ( 1 ) ;\n }\n s -> reset = qemu_allocate_irqs ( pxa2xx_reset , s , 1 ) [ 0 ] ;\n memory_region_init_ram ( & s -> sdram , NULL , \"pxa270.sdram\" , sdram_size ) ;\n vmstate_register_ram_global ( & s -> sdram ) ;\n memory_region_add_subregion ( address_space , PXA2XX_SDRAM_BASE , & s -> sdram ) ;\n memory_region_init_ram ( & s -> internal , NULL , \"pxa270.internal\" , 0x40000 ) ;\n vmstate_register_ram_global ( & s -> internal ) ;\n memory_region_add_subregion ( address_space , PXA2XX_INTERNAL_BASE , & s -> internal ) ;\n s -> pic = pxa2xx_pic_init ( 0x40d00000 , s -> cpu ) ;\n s -> dma = pxa27x_dma_init ( 0x40000000 , qdev_get_gpio_in ( s -> pic , PXA2XX_PIC_DMA ) ) ;\n sysbus_create_varargs ( \"pxa27x-timer\" , 0x40a00000 , qdev_get_gpio_in ( s -> pic , PXA2XX_PIC_OST_0 + 0 ) , qdev_get_gpio_in ( s -> pic , PXA2XX_PIC_OST_0 + 1 ) , qdev_get_gpio_in ( s -> pic , PXA2XX_PIC_OST_0 + 2 ) , qdev_get_gpio_in ( s -> pic , PXA2XX_PIC_OST_0 + 3 ) , qdev_get_gpio_in ( s -> pic , PXA27X_PIC_OST_4_11 ) , NULL ) ;\n s -> gpio = pxa2xx_gpio_init ( 0x40e00000 , s -> cpu , s -> pic , 121 ) ;\n dinfo = drive_get ( IF_SD , 0 , 0 ) ;\n if ( ! dinfo ) {\n fprintf ( stderr , \"qemu: missing SecureDigital device\\n\" ) ;\n exit ( 1 ) ;\n }\n s -> mmc = pxa2xx_mmci_init ( address_space , 0x41100000 , dinfo -> bdrv , qdev_get_gpio_in ( s -> pic , PXA2XX_PIC_MMC ) , qdev_get_gpio_in ( s -> dma , PXA2XX_RX_RQ_MMCI ) , qdev_get_gpio_in ( s -> dma , PXA2XX_TX_RQ_MMCI ) ) ;\n for ( i = 0 ;\n pxa270_serial [ i ] . io_base ;\n i ++ ) {\n if ( serial_hds [ i ] ) {\n serial_mm_init ( address_space , pxa270_serial [ i ] . io_base , 2 , qdev_get_gpio_in ( s -> pic , pxa270_serial [ i ] . irqn ) , 14857000 / 16 , serial_hds [ i ] , DEVICE_NATIVE_ENDIAN ) ;\n }\n else {\n break ;\n }\n }\n if ( serial_hds [ i ] ) s -> fir = pxa2xx_fir_init ( address_space , 0x40800000 , qdev_get_gpio_in ( s -> pic , PXA2XX_PIC_ICP ) , qdev_get_gpio_in ( s -> dma , PXA2XX_RX_RQ_ICP ) , qdev_get_gpio_in ( s -> dma , PXA2XX_TX_RQ_ICP ) , serial_hds [ i ] ) ;\n s -> lcd = pxa2xx_lcdc_init ( address_space , 0x44000000 , qdev_get_gpio_in ( s -> pic , PXA2XX_PIC_LCD ) ) ;\n s -> cm_base = 0x41300000 ;\n s -> cm_regs [ CCCR >> 2 ] = 0x02000210 ;\n s -> clkcfg = 0x00000009 ;\n memory_region_init_io ( & s -> cm_iomem , NULL , & pxa2xx_cm_ops , s , \"pxa2xx-cm\" , 0x1000 ) ;\n memory_region_add_subregion ( address_space , s -> cm_base , & s -> cm_iomem ) ;\n vmstate_register ( NULL , 0 , & vmstate_pxa2xx_cm , s ) ;\n pxa2xx_setup_cp14 ( s ) ;\n s -> mm_base = 0x48000000 ;\n s -> mm_regs [ MDMRS >> 2 ] = 0x00020002 ;\n s -> mm_regs [ MDREFR >> 2 ] = 0x03ca4000 ;\n s -> mm_regs [ MECR >> 2 ] = 0x00000001 ;\n memory_region_init_io ( & s -> mm_iomem , NULL , & pxa2xx_mm_ops , s , \"pxa2xx-mm\" , 0x1000 ) ;\n memory_region_add_subregion ( address_space , s -> mm_base , & s -> mm_iomem ) ;\n vmstate_register ( NULL , 0 , & vmstate_pxa2xx_mm , s ) ;\n s -> pm_base = 0x40f00000 ;\n memory_region_init_io ( & s -> pm_iomem , NULL , & pxa2xx_pm_ops , s , \"pxa2xx-pm\" , 0x100 ) ;\n memory_region_add_subregion ( address_space , s -> pm_base , & s -> pm_iomem ) ;\n vmstate_register ( NULL , 0 , & vmstate_pxa2xx_pm , s ) ;\n for ( i = 0 ;\n pxa27x_ssp [ i ] . io_base ;\n i ++ ) ;\n s -> ssp = ( SSIBus * * ) g_malloc0 ( sizeof ( SSIBus * ) * i ) ;\n for ( i = 0 ;\n pxa27x_ssp [ i ] . io_base ;\n i ++ ) {\n DeviceState * dev ;\n dev = sysbus_create_simple ( \"pxa2xx-ssp\" , pxa27x_ssp [ i ] . io_base , qdev_get_gpio_in ( s -> pic , pxa27x_ssp [ i ] . irqn ) ) ;\n s -> ssp [ i ] = ( SSIBus * ) qdev_get_child_bus ( dev , \"ssi\" ) ;\n }\n if ( usb_enabled ( false ) ) {\n sysbus_create_simple ( \"sysbus-ohci\" , 0x4c000000 , qdev_get_gpio_in ( s -> pic , PXA2XX_PIC_USBH1 ) ) ;\n }\n s -> pcmcia [ 0 ] = pxa2xx_pcmcia_init ( address_space , 0x20000000 ) ;\n s -> pcmcia [ 1 ] = pxa2xx_pcmcia_init ( address_space , 0x30000000 ) ;\n sysbus_create_simple ( \"pxa2xx_rtc\" , 0x40900000 , qdev_get_gpio_in ( s -> pic , PXA2XX_PIC_RTCALARM ) ) ;\n s -> i2c [ 0 ] = pxa2xx_i2c_init ( 0x40301600 , qdev_get_gpio_in ( s -> pic , PXA2XX_PIC_I2C ) , 0xffff ) ;\n s -> i2c [ 1 ] = pxa2xx_i2c_init ( 0x40f00100 , qdev_get_gpio_in ( s -> pic , PXA2XX_PIC_PWRI2C ) , 0xff ) ;\n s -> i2s = pxa2xx_i2s_init ( address_space , 0x40400000 , qdev_get_gpio_in ( s -> pic , PXA2XX_PIC_I2S ) , qdev_get_gpio_in ( s -> dma , PXA2XX_RX_RQ_I2S ) , qdev_get_gpio_in ( s -> dma , PXA2XX_TX_RQ_I2S ) ) ;\n s -> kp = pxa27x_keypad_init ( address_space , 0x41500000 , qdev_get_gpio_in ( s -> pic , PXA2XX_PIC_KEYPAD ) ) ;\n qdev_connect_gpio_out ( s -> gpio , 1 , s -> reset ) ;\n return s ;\n }"}
{"idx": 166, "target": 0, "func": "TSVIO TSVConnRead ( TSVConn connp , TSCont contp , TSIOBuffer bufp , int64_t nbytes ) {\n sdk_assert ( sdk_sanity_check_iocore_structure ( connp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_iocore_structure ( contp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_iocore_structure ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( nbytes >= 0 ) ;\n FORCE_PLUGIN_SCOPED_MUTEX ( contp ) ;\n VConnection * vc = ( VConnection * ) connp ;\n return reinterpret_cast < TSVIO > ( vc -> do_io ( VIO : : READ , ( INKContInternal * ) contp , nbytes , ( MIOBuffer * ) bufp ) ) ;\n }"}
{"idx": 167, "target": 0, "func": "int dissect_h225_PrivateTypeOfNumber ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_PrivateTypeOfNumber , PrivateTypeOfNumber_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 168, "target": 0, "func": "void vp9_model_rd_from_var_lapndz ( unsigned int var , unsigned int n , unsigned int qstep , int * rate , int64_t * dist ) {\n if ( var == 0 ) {\n * rate = 0 ;\n * dist = 0 ;\n }\n else {\n int d_q10 , r_q10 ;\n static const uint32_t MAX_XSQ_Q10 = 245727 ;\n const uint64_t xsq_q10_64 = ( ( ( ( uint64_t ) qstep * qstep * n ) << 10 ) + ( var >> 1 ) ) / var ;\n const int xsq_q10 = ( int ) MIN ( xsq_q10_64 , MAX_XSQ_Q10 ) ;\n model_rd_norm ( xsq_q10 , & r_q10 , & d_q10 ) ;\n * rate = ( n * r_q10 + 2 ) >> 2 ;\n * dist = ( var * ( int64_t ) d_q10 + 512 ) >> 10 ;\n }\n }"}
{"idx": 169, "target": 0, "func": "TEST_F ( ProfileInfoCacheTest , BackgroundModeStatus ) {\n GetCache ( ) -> AddProfileToCache ( GetProfilePath ( \"path_1\" ) , ASCIIToUTF16 ( \"name_1\" ) , base : : string16 ( ) , 0 , std : : string ( ) ) ;\n GetCache ( ) -> AddProfileToCache ( GetProfilePath ( \"path_2\" ) , ASCIIToUTF16 ( \"name_2\" ) , base : : string16 ( ) , 0 , std : : string ( ) ) ;\n EXPECT_FALSE ( GetCache ( ) -> GetBackgroundStatusOfProfileAtIndex ( 0 ) ) ;\n EXPECT_FALSE ( GetCache ( ) -> GetBackgroundStatusOfProfileAtIndex ( 1 ) ) ;\n GetCache ( ) -> SetBackgroundStatusOfProfileAtIndex ( 1 , true ) ;\n EXPECT_FALSE ( GetCache ( ) -> GetBackgroundStatusOfProfileAtIndex ( 0 ) ) ;\n EXPECT_TRUE ( GetCache ( ) -> GetBackgroundStatusOfProfileAtIndex ( 1 ) ) ;\n GetCache ( ) -> SetBackgroundStatusOfProfileAtIndex ( 0 , true ) ;\n EXPECT_TRUE ( GetCache ( ) -> GetBackgroundStatusOfProfileAtIndex ( 0 ) ) ;\n EXPECT_TRUE ( GetCache ( ) -> GetBackgroundStatusOfProfileAtIndex ( 1 ) ) ;\n GetCache ( ) -> SetBackgroundStatusOfProfileAtIndex ( 1 , false ) ;\n EXPECT_TRUE ( GetCache ( ) -> GetBackgroundStatusOfProfileAtIndex ( 0 ) ) ;\n EXPECT_FALSE ( GetCache ( ) -> GetBackgroundStatusOfProfileAtIndex ( 1 ) ) ;\n }"}
{"idx": 170, "target": 0, "func": "static void dumpdbloper ( FILE * cfff , double d , int oper ) {\n dumpdbl ( cfff , d ) ;\n dumpoper ( cfff , oper ) ;\n }"}
{"idx": 171, "target": 0, "func": "static inline int GET_TOK ( TM2Context * ctx , int type ) {\n if ( ctx -> tok_ptrs [ type ] >= ctx -> tok_lens [ type ] ) {\n av_log ( ctx -> avctx , AV_LOG_ERROR , \"Read token from stream %i out of bounds (%i>=%i)\\n\" , type , ctx -> tok_ptrs [ type ] , ctx -> tok_lens [ type ] ) ;\n return 0 ;\n }\n if ( type <= TM2_MOT ) return ctx -> deltas [ type ] [ ctx -> tokens [ type ] [ ctx -> tok_ptrs [ type ] ++ ] ] ;\n return ctx -> tokens [ type ] [ ctx -> tok_ptrs [ type ] ++ ] ;\n }"}
{"idx": 172, "target": 0, "func": "virLogFilterPtr virLogFilterNew ( const char * match , virLogPriority priority , unsigned int flags ) {\n virLogFilterPtr ret = NULL ;\n char * mdup = NULL ;\n virCheckFlags ( VIR_LOG_STACK_TRACE , NULL ) ;\n if ( priority < VIR_LOG_DEBUG || priority > VIR_LOG_ERROR ) {\n virReportError ( VIR_ERR_INVALID_ARG , _ ( \"Invalid log priority %d\" ) , priority ) ;\n return NULL ;\n }\n if ( VIR_STRDUP_QUIET ( mdup , match ) < 0 ) return NULL ;\n if ( VIR_ALLOC_QUIET ( ret ) < 0 ) {\n VIR_FREE ( mdup ) ;\n return NULL ;\n }\n ret -> match = mdup ;\n ret -> priority = priority ;\n ret -> flags = flags ;\n return ret ;\n }"}
{"idx": 173, "target": 0, "func": "static bool DecoderWaitUnblock ( decoder_t * p_dec ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n vlc_assert_locked ( & p_owner -> lock ) ;\n for ( ;\n ;\n ) {\n if ( p_owner -> b_flushing ) break ;\n if ( p_owner -> b_paused ) {\n if ( p_owner -> b_waiting && ! p_owner -> b_has_data ) break ;\n if ( p_owner -> pause . i_ignore > 0 ) {\n p_owner -> pause . i_ignore -- ;\n break ;\n }\n }\n else {\n if ( ! p_owner -> b_waiting || ! p_owner -> b_has_data ) break ;\n }\n vlc_cond_wait ( & p_owner -> wait_request , & p_owner -> lock ) ;\n }\n return p_owner -> b_flushing ;\n }"}
{"idx": 174, "target": 0, "func": "static inline void mv_pred_sym ( AVSContext * h , cavs_vector * src , enum cavs_block size ) {\n cavs_vector * dst = src + MV_BWD_OFFS ;\n dst -> x = - ( ( src -> x * h -> sym_factor + 256 ) >> 9 ) ;\n dst -> y = - ( ( src -> y * h -> sym_factor + 256 ) >> 9 ) ;\n dst -> ref = 0 ;\n dst -> dist = h -> dist [ 0 ] ;\n set_mvs ( dst , size ) ;\n }"}
{"idx": 175, "target": 0, "func": "static void decode_flush ( AVCodecContext * avctx ) {\n RALFContext * ctx = avctx -> priv_data ;\n ctx -> has_pkt = 0 ;\n }"}
{"idx": 176, "target": 0, "func": "void registerSimpleTypes ( int proto ) {\n expert_module_t * expert_proto ;\n static hf_register_info hf [ ] = {\n {\n & hf_opcua_diag_mask , {\n \"EncodingMask\" , \"opcua.diag.mask\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_diag_mask_symbolicflag , {\n \"has symbolic id\" , \"opcua.diag.has_symbolic_id\" , FT_BOOLEAN , 8 , NULL , DIAGNOSTICINFO_ENCODINGMASK_SYMBOLICID_FLAG , NULL , HFILL }\n }\n , {\n & hf_opcua_diag_mask_namespaceflag , {\n \"has namespace\" , \"opcua.diag.has_namespace\" , FT_BOOLEAN , 8 , NULL , DIAGNOSTICINFO_ENCODINGMASK_NAMESPACE_FLAG , NULL , HFILL }\n }\n , {\n & hf_opcua_diag_mask_localizedtextflag , {\n \"has localizedtext\" , \"opcua.diag.has_localizedtext\" , FT_BOOLEAN , 8 , NULL , DIAGNOSTICINFO_ENCODINGMASK_LOCALIZEDTEXT_FLAG , NULL , HFILL }\n }\n , {\n & hf_opcua_diag_mask_localeflag , {\n \"has locale\" , \"opcua.diag.has_locale\" , FT_BOOLEAN , 8 , NULL , DIAGNOSTICINFO_ENCODINGMASK_LOCALE_FLAG , NULL , HFILL }\n }\n , {\n & hf_opcua_diag_mask_additionalinfoflag , {\n \"has additional info\" , \"opcua.diag.has_additional_info\" , FT_BOOLEAN , 8 , NULL , DIAGNOSTICINFO_ENCODINGMASK_ADDITIONALINFO_FLAG , NULL , HFILL }\n }\n , {\n & hf_opcua_diag_mask_innerstatuscodeflag , {\n \"has inner statuscode\" , \"opcua.diag.has_inner_statuscode\" , FT_BOOLEAN , 8 , NULL , DIAGNOSTICINFO_ENCODINGMASK_INNERSTATUSCODE_FLAG , NULL , HFILL }\n }\n , {\n & hf_opcua_diag_mask_innerdiaginfoflag , {\n \"has inner diagnostic info\" , \"opcua.diag.has_inner_diagnostic_code\" , FT_BOOLEAN , 8 , NULL , DIAGNOSTICINFO_ENCODINGMASK_INNERDIAGNOSTICINFO_FLAG , NULL , HFILL }\n }\n , {\n & hf_opcua_loctext_mask , {\n \"EncodingMask\" , \"opcua.loctext.mask\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_loctext_mask_localeflag , {\n \"has locale information\" , \"opcua.loctext.has_locale_information\" , FT_BOOLEAN , 8 , NULL , LOCALIZEDTEXT_ENCODINGBYTE_LOCALE , NULL , HFILL }\n }\n , {\n & hf_opcua_loctext_mask_textflag , {\n \"has text\" , \"opcua.loctext.has_text\" , FT_BOOLEAN , 8 , NULL , LOCALIZEDTEXT_ENCODINGBYTE_TEXT , NULL , HFILL }\n }\n , {\n & hf_opcua_nodeid_encodingmask , {\n \"EncodingMask\" , \"opcua.nodeid.encodingmask\" , FT_UINT8 , BASE_HEX , VALS ( g_nodeidmasks ) , 0x0F , NULL , HFILL }\n }\n , {\n & hf_opcua_nodeid_nsindex , {\n \"Namespace Index\" , \"opcua.nodeid.nsindex\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_nodeid_numeric , {\n \"Identifier Numeric\" , \"opcua.nodeid.numeric\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_nodeid_string , {\n \"Identifier String\" , \"opcua.nodeid.string\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_nodeid_guid , {\n \"Identifier Guid\" , \"opcua.nodeid.guid\" , FT_GUID , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_nodeid_bytestring , {\n \"Identifier ByteString\" , \"opcua.nodeid.bytestring\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_expandednodeid_mask , {\n \"EncodingMask\" , \"opcua.expandednodeid.mask\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_expandednodeid_mask_namespaceuri , {\n \"has namespace uri\" , \"opcua.expandednodeid.has_namespace_uri\" , FT_BOOLEAN , 8 , NULL , NODEID_NAMESPACEURIFLAG , NULL , HFILL }\n }\n , {\n & hf_opcua_expandednodeid_mask_serverindex , {\n \"has server index\" , \"opcua.expandednodeid.has_server_index\" , FT_BOOLEAN , 8 , NULL , NODEID_SERVERINDEXFLAG , NULL , HFILL }\n }\n , {\n & hf_opcua_localizedtext_locale , {\n \"Locale\" , \"opcua.loctext.Locale\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_localizedtext_text , {\n \"Text\" , \"opcua.loctext.Text\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_qualifiedname_id , {\n \"Id\" , \"opcua.qualname.Id\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_qualifiedname_name , {\n \"Name\" , \"opcua.qualname.Name\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_datavalue_mask , {\n \"EncodingMask\" , \"opcua.datavalue.mask\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_datavalue_mask_valueflag , {\n \"has value\" , \"opcua.datavalue.has_value\" , FT_BOOLEAN , 8 , NULL , DATAVALUE_ENCODINGBYTE_VALUE , NULL , HFILL }\n }\n , {\n & hf_opcua_datavalue_mask_statuscodeflag , {\n \"has statuscode\" , \"opcua.datavalue.has_statuscode\" , FT_BOOLEAN , 8 , NULL , DATAVALUE_ENCODINGBYTE_STATUSCODE , NULL , HFILL }\n }\n , {\n & hf_opcua_datavalue_mask_sourcetimestampflag , {\n \"has source timestamp\" , \"opcua.datavalue.has_source_timestamp\" , FT_BOOLEAN , 8 , NULL , DATAVALUE_ENCODINGBYTE_SOURCETIMESTAMP , NULL , HFILL }\n }\n , {\n & hf_opcua_datavalue_mask_servertimestampflag , {\n \"has server timestamp\" , \"opcua.datavalue.has_server_timestamp\" , FT_BOOLEAN , 8 , NULL , DATAVALUE_ENCODINGBYTE_SERVERTIMESTAMP , NULL , HFILL }\n }\n , {\n & hf_opcua_datavalue_mask_sourcepicoseconds , {\n \"has source picoseconds\" , \"opcua.datavalue.has_source_picoseconds\" , FT_BOOLEAN , 8 , NULL , DATAVALUE_ENCODINGBYTE_SOURCEPICOSECONDS , NULL , HFILL }\n }\n , {\n & hf_opcua_datavalue_mask_serverpicoseconds , {\n \"has server picoseconds\" , \"opcua.datavalue.has_server_picoseconds\" , FT_BOOLEAN , 8 , NULL , DATAVALUE_ENCODINGBYTE_SERVERPICOSECONDS , NULL , HFILL }\n }\n , {\n & hf_opcua_variant_encodingmask , {\n \"Variant Type\" , \"opcua.variant.has_value\" , FT_UINT8 , BASE_HEX , VALS ( g_VariantTypes ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_SourceTimestamp , {\n \"SourceTimestamp\" , \"opcua.datavalue.SourceTimestamp\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_LOCAL , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_SourcePicoseconds , {\n \"SourcePicoseconds\" , \"opcua.datavalue.SourcePicoseconds\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_ServerTimestamp , {\n \"ServerTimestamp\" , \"opcua.datavalue.ServerTimestamp\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_LOCAL , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_ServerPicoseconds , {\n \"ServerPicoseconds\" , \"opcua.datavalue.ServerPicoseconds\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_diag_symbolicid , {\n \"SymbolicId\" , \"opcua.diag.SymbolicId\" , FT_INT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_diag_namespace , {\n \"Namespace\" , \"opcua.diag.Namespace\" , FT_INT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_diag_localizedtext , {\n \"LocalizedText\" , \"opcua.diag.LocalizedText\" , FT_INT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_diag_locale , {\n \"Locale\" , \"opcua.diag.Locale\" , FT_INT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_diag_additionalinfo , {\n \"AdditionalInfo\" , \"opcua.diag.AdditionalInfo\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_diag_innerstatuscode , {\n \"InnerStatusCode\" , \"opcua.diag.InnerStatusCode\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_extobj_mask , {\n \"EncodingMask\" , \"opcua.extobj.mask\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_extobj_mask_binbodyflag , {\n \"has binary body\" , \"opcua.extobj.has_binary_body\" , FT_BOOLEAN , 8 , NULL , EXTOBJ_ENCODINGMASK_BINBODY_FLAG , NULL , HFILL }\n }\n , {\n & hf_opcua_extobj_mask_xmlbodyflag , {\n \"has xml body\" , \"opcua.extobj.has_xml_body\" , FT_BOOLEAN , 8 , NULL , EXTOBJ_ENCODINGMASK_XMLBODY_FLAG , NULL , HFILL }\n }\n , {\n & hf_opcua_ArraySize , {\n \"ArraySize\" , \"opcua.variant.ArraySize\" , FT_INT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_ServerIndex , {\n \"ServerIndex\" , \"opcua.expandednodeid.ServerIndex\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_status_StructureChanged , {\n \"StructureChanged\" , \"opcua.statuscode.structureChanged\" , FT_BOOLEAN , 16 , NULL , STATUSCODE_STRUCTURECHANGED , NULL , HFILL }\n }\n , {\n & hf_opcua_status_SemanticsChanged , {\n \"SemanticsChanged\" , \"opcua.statuscode.semanticsChanged\" , FT_BOOLEAN , 16 , NULL , STATUSCODE_SEMANTICSCHANGED , NULL , HFILL }\n }\n , {\n & hf_opcua_status_InfoBit_Limit_Overflow , {\n \"Overflow\" , \"opcua.statuscode.overflow\" , FT_BOOLEAN , 16 , NULL , STATUSCODE_INFOBIT_OVERFLOW , NULL , HFILL }\n }\n , {\n & hf_opcua_status_InfoBit_Historian_Partial , {\n \"HistorianBit: Partial\" , \"opcua.statuscode.historian.partial\" , FT_BOOLEAN , 16 , NULL , STATUSCODE_INFOBIT_HISTORIAN_PARTIAL , NULL , HFILL }\n }\n , {\n & hf_opcua_status_InfoBit_Historian_ExtraData , {\n \"HistorianBit: ExtraData\" , \"opcua.statuscode.historian.extraData\" , FT_BOOLEAN , 16 , NULL , STATUSCODE_INFOBIT_HISTORIAN_EXTRADATA , NULL , HFILL }\n }\n , {\n & hf_opcua_status_InfoBit_Historian_MultiValue , {\n \"HistorianBit: MultiValue\" , \"opcua.statuscode.historian.multiValue\" , FT_BOOLEAN , 16 , NULL , STATUSCODE_INFOBIT_HISTORIAN_MULTIVALUE , NULL , HFILL }\n }\n , {\n & hf_opcua_status_InfoType , {\n \"InfoType\" , \"opcua.statuscode.infoType\" , FT_UINT16 , BASE_HEX , VALS ( g_infotype ) , 0x0C00 , NULL , HFILL }\n }\n , {\n & hf_opcua_status_Limit , {\n \"Limit\" , \"opcua.statuscode.limit\" , FT_UINT16 , BASE_HEX , VALS ( g_limit ) , 0x0300 , NULL , HFILL }\n }\n , {\n & hf_opcua_status_Historian , {\n \"Historian\" , \"opcua.statuscode.historian\" , FT_UINT16 , BASE_HEX , VALS ( g_historian ) , 0x0003 , NULL , HFILL }\n }\n , {\n & hf_opcua_returnDiag , {\n \"Return Diagnostics\" , \"opcua.returndiag\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_returnDiag_mask_sl_symbolicId , {\n \"ServiceLevel / SymbolicId\" , \"opcua.returndiag.servicelevel.symbolicid\" , FT_BOOLEAN , 16 , NULL , RETURNDIAGNOSTICS_SERVICELEVEL_SYMBOLICID , NULL , HFILL }\n }\n , {\n & hf_opcua_returnDiag_mask_sl_localizedText , {\n \"ServiceLevel / LocalizedText\" , \"opcua.returndiag.servicelevel.localizedtext\" , FT_BOOLEAN , 16 , NULL , RETURNDIAGNOSTICS_SERVICELEVEL_LOCALIZEDTEXT , NULL , HFILL }\n }\n , {\n & hf_opcua_returnDiag_mask_sl_additionalinfo , {\n \"ServiceLevel / AdditionalInfo\" , \"opcua.returndiag.servicelevel.additionalinfo\" , FT_BOOLEAN , 16 , NULL , RETURNDIAGNOSTICS_SERVICELEVEL_ADDITIONALINFO , NULL , HFILL }\n }\n , {\n & hf_opcua_returnDiag_mask_sl_innerstatuscode , {\n \"ServiceLevel / Inner StatusCode\" , \"opcua.returndiag.servicelevel.innerstatuscode\" , FT_BOOLEAN , 16 , NULL , RETURNDIAGNOSTICS_SERVICELEVEL_INNERSTATUSCODE , NULL , HFILL }\n }\n , {\n & hf_opcua_returnDiag_mask_sl_innerdiagnostics , {\n \"ServiceLevel / Inner Diagnostics\" , \"opcua.returndiag.servicelevel.innerdiagnostics\" , FT_BOOLEAN , 16 , NULL , RETURNDIAGNOSTICS_SERVICELEVEL_INNERDIAGNOSTICS , NULL , HFILL }\n }\n , {\n & hf_opcua_returnDiag_mask_ol_symbolicId , {\n \"OperationLevel / SymbolicId\" , \"opcua.returndiag.operationlevel.symbolicid\" , FT_BOOLEAN , 16 , NULL , RETURNDIAGNOSTICS_OPERATIONLEVEL_SYMBOLICID , NULL , HFILL }\n }\n , {\n & hf_opcua_returnDiag_mask_ol_localizedText , {\n \"OperationLevel / LocalizedText\" , \"opcua.returndiag.operationlevel.localizedtext\" , FT_BOOLEAN , 16 , NULL , RETURNDIAGNOSTICS_OPERATIONLEVEL_LOCALIZEDTEXT , NULL , HFILL }\n }\n , {\n & hf_opcua_returnDiag_mask_ol_additionalinfo , {\n \"OperationLevel / AdditionalInfo\" , \"opcua.returndiag.operationlevel.additionalinfo\" , FT_BOOLEAN , 16 , NULL , RETURNDIAGNOSTICS_OPERATIONLEVEL_ADDITIONALINFO , NULL , HFILL }\n }\n , {\n & hf_opcua_returnDiag_mask_ol_innerstatuscode , {\n \"OperationLevel / Inner StatusCode\" , \"opcua.returndiag.operationlevel.innerstatuscode\" , FT_BOOLEAN , 16 , NULL , RETURNDIAGNOSTICS_OPERATIONLEVEL_INNERSTATUSCODE , NULL , HFILL }\n }\n , {\n & hf_opcua_returnDiag_mask_ol_innerdiagnostics , {\n \"OperationLevel / Inner Diagnostics\" , \"opcua.returndiag.operationlevel.innerdiagnostics\" , FT_BOOLEAN , 16 , NULL , RETURNDIAGNOSTICS_OPERATIONLEVEL_INNERDIAGNOSTICS , NULL , HFILL }\n }\n , {\n & hf_opcua_nodeClassMask , {\n \"Node Class Mask\" , \"opcua.nodeclassmask\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_nodeClassMask_all , {\n \"Node Class Mask\" , \"opcua.nodeclassmask.all\" , FT_UINT32 , BASE_HEX , VALS ( g_NodeClassMask ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_nodeClassMask_object , {\n \"Object\" , \"opcua.nodeclassmask.object\" , FT_BOOLEAN , 16 , NULL , NODECLASSMASK_OBJECT , NULL , HFILL }\n }\n , {\n & hf_opcua_nodeClassMask_variable , {\n \"Variable\" , \"opcua.nodeclassmask.variable\" , FT_BOOLEAN , 16 , NULL , NODECLASSMASK_VARIABLE , NULL , HFILL }\n }\n , {\n & hf_opcua_nodeClassMask_method , {\n \"Method\" , \"opcua.nodeclassmask.method\" , FT_BOOLEAN , 16 , NULL , NODECLASSMASK_METHOD , NULL , HFILL }\n }\n , {\n & hf_opcua_nodeClassMask_objecttype , {\n \"ObjectType\" , \"opcua.nodeclassmask.objecttype\" , FT_BOOLEAN , 16 , NULL , NODECLASSMASK_OBJECTTYPE , NULL , HFILL }\n }\n , {\n & hf_opcua_nodeClassMask_variabletype , {\n \"VariableType\" , \"opcua.nodeclassmask.variabletype\" , FT_BOOLEAN , 16 , NULL , NODECLASSMASK_VARIABLETYPE , NULL , HFILL }\n }\n , {\n & hf_opcua_nodeClassMask_referencetype , {\n \"ReferenceType\" , \"opcua.nodeclassmask.referencetype\" , FT_BOOLEAN , 16 , NULL , NODECLASSMASK_REFERENCETYPE , NULL , HFILL }\n }\n , {\n & hf_opcua_nodeClassMask_datatype , {\n \"DataType\" , \"opcua.nodeclassmask.datatype\" , FT_BOOLEAN , 16 , NULL , NODECLASSMASK_DATATYPE , NULL , HFILL }\n }\n , {\n & hf_opcua_nodeClassMask_view , {\n \"View\" , \"opcua.nodeclassmask.view\" , FT_BOOLEAN , 16 , NULL , NODECLASSMASK_VIEW , NULL , HFILL }\n }\n , {\n & hf_opcua_resultMask , {\n \"Result Mask\" , \"opcua.resultmask\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_resultMask_referencetype , {\n \"Reference Type\" , \"opcua.resultmask.referencetype\" , FT_BOOLEAN , 16 , NULL , RESULTMASK_REFERENCETYPE , NULL , HFILL }\n }\n , {\n & hf_opcua_resultMask_isforward , {\n \"Is Forward\" , \"opcua.resultmask.isforward\" , FT_BOOLEAN , 16 , NULL , RESULTMASK_ISFORWARD , NULL , HFILL }\n }\n , {\n & hf_opcua_resultMask_nodeclass , {\n \"Node Class\" , \"opcua.resultmask.nodeclass\" , FT_BOOLEAN , 16 , NULL , RESULTMASK_NODECLASS , NULL , HFILL }\n }\n , {\n & hf_opcua_resultMask_browsename , {\n \"Browse Name\" , \"opcua.resultmask.browsename\" , FT_BOOLEAN , 16 , NULL , RESULTMASK_BROWSENAME , NULL , HFILL }\n }\n , {\n & hf_opcua_resultMask_displayname , {\n \"Display Name\" , \"opcua.resultmask.displayname\" , FT_BOOLEAN , 16 , NULL , RESULTMASK_DISPLAYNAME , NULL , HFILL }\n }\n , {\n & hf_opcua_resultMask_typedefinition , {\n \"Type Definiton\" , \"opcua.resultmask.typedefinition\" , FT_BOOLEAN , 16 , NULL , RESULTMASK_TYPEDEFINITION , NULL , HFILL }\n }\n , {\n & hf_opcua_resultMask_all , {\n \"Result Mask\" , \"opcua.resultmask.all\" , FT_UINT32 , BASE_HEX , VALS ( g_ResultMask ) , 0x0 , NULL , HFILL }\n }\n , }\n ;\n static ei_register_info ei [ ] = {\n {\n & ei_array_length , {\n \"opcua.array.length\" , PI_UNDECODED , PI_ERROR , \"Max array length exceeded\" , EXPFILL }\n }\n , {\n & ei_nesting_depth , {\n \"opcua.nestingdepth\" , PI_UNDECODED , PI_ERROR , \"Max nesting depth exceeded\" , EXPFILL }\n }\n , }\n ;\n proto_register_field_array ( proto , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n expert_proto = expert_register_protocol ( proto ) ;\n expert_register_field_array ( expert_proto , ei , array_length ( ei ) ) ;\n }"}
{"idx": 177, "target": 0, "func": "static int dissect_h245_GenericCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 664 \"../../asn1/h245/h245.cnf\" void * priv_data = actx -> private_data ;\n actx -> private_data = gef_ctx_alloc ( NULL , \"GenericCapability\" ) ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_GenericCapability , GenericCapability_sequence ) ;\n # line 667 \"../../asn1/h245/h245.cnf\" actx -> private_data = priv_data ;\n return offset ;\n }"}
{"idx": 178, "target": 1, "func": "static void jbig2_set_bits ( byte * line , int x0 , int x1 ) {\n int a0 , a1 , b0 , b1 , a ;\n a0 = x0 >> 3 ;\n a1 = x1 >> 3 ;\n b0 = x0 & 7 ;\n b1 = x1 & 7 ;\n if ( a0 == a1 ) {\n line [ a0 ] |= lm [ b0 ] & rm [ b1 ] ;\n }\n else {\n line [ a0 ] |= lm [ b0 ] ;\n for ( a = a0 + 1 ;\n a < a1 ;\n a ++ ) line [ a ] = 0xFF ;\n if ( b1 ) line [ a1 ] |= rm [ b1 ] ;\n }\n }"}
{"idx": 179, "target": 0, "func": "static const InterpKernel * get_filter_base ( const int16_t * filter ) {\n return ( const InterpKernel * ) ( ( ( intptr_t ) filter ) & ~ ( ( intptr_t ) 0xFF ) ) ;\n }"}
{"idx": 180, "target": 0, "func": "static int write_directory_descriptors ( struct archive_write * a , struct vdd * vdd ) {\n struct isoent * np ;\n int depth , r ;\n depth = 0 ;\n np = vdd -> rootent ;\n do {\n struct extr_rec * extr ;\n r = _write_directory_descriptors ( a , vdd , np , depth ) ;\n if ( r < 0 ) return ( r ) ;\n if ( vdd -> vdd_type != VDD_JOLIET ) {\n for ( extr = np -> extr_rec_list . first ;\n extr != NULL ;\n extr = extr -> next ) {\n unsigned char * wb ;\n wb = wb_buffptr ( a ) ;\n memcpy ( wb , extr -> buf , extr -> offset ) ;\n memset ( wb + extr -> offset , 0 , LOGICAL_BLOCK_SIZE - extr -> offset ) ;\n r = wb_consume ( a , LOGICAL_BLOCK_SIZE ) ;\n if ( r < 0 ) return ( r ) ;\n }\n }\n if ( np -> subdirs . first != NULL && depth + 1 < vdd -> max_depth ) {\n np = np -> subdirs . first ;\n depth ++ ;\n continue ;\n }\n while ( np != np -> parent ) {\n if ( np -> drnext == NULL ) {\n np = np -> parent ;\n depth -- ;\n }\n else {\n np = np -> drnext ;\n break ;\n }\n }\n }\n while ( np != np -> parent ) ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 181, "target": 0, "func": "proto_item * parseByte ( proto_tree * tree , tvbuff_t * tvb , packet_info * pinfo _U_ , gint * pOffset , int hfIndex ) {\n proto_item * item = proto_tree_add_item ( tree , hfIndex , tvb , * pOffset , 1 , ENC_LITTLE_ENDIAN ) ;\n * pOffset += 1 ;\n return item ;\n }"}
{"idx": 182, "target": 0, "func": "static void vdpau_h264_set_reference_frames ( AVCodecContext * avctx ) {\n H264Context * const h = avctx -> priv_data ;\n AVVDPAUContext * hwctx = avctx -> hwaccel_context ;\n VdpPictureInfoH264 * info = & hwctx -> info . h264 ;\n int list ;\n VdpReferenceFrameH264 * rf = & info -> referenceFrames [ 0 ] ;\n # define H264_RF_COUNT FF_ARRAY_ELEMS ( info -> referenceFrames ) for ( list = 0 ;\n list < 2 ;\n ++ list ) {\n Picture * * lp = list ? h -> long_ref : h -> short_ref ;\n int i , ls = list ? 16 : h -> short_ref_count ;\n for ( i = 0 ;\n i < ls ;\n ++ i ) {\n Picture * pic = lp [ i ] ;\n VdpReferenceFrameH264 * rf2 ;\n VdpVideoSurface surface_ref ;\n int pic_frame_idx ;\n if ( ! pic || ! pic -> reference ) continue ;\n pic_frame_idx = pic -> long_ref ? pic -> pic_id : pic -> frame_num ;\n surface_ref = ff_vdpau_get_surface_id ( pic ) ;\n rf2 = & info -> referenceFrames [ 0 ] ;\n while ( rf2 != rf ) {\n if ( ( rf2 -> surface == surface_ref ) && ( rf2 -> is_long_term == pic -> long_ref ) && ( rf2 -> frame_idx == pic_frame_idx ) ) break ;\n ++ rf2 ;\n }\n if ( rf2 != rf ) {\n rf2 -> top_is_reference |= ( pic -> reference & PICT_TOP_FIELD ) ? VDP_TRUE : VDP_FALSE ;\n rf2 -> bottom_is_reference |= ( pic -> reference & PICT_BOTTOM_FIELD ) ? VDP_TRUE : VDP_FALSE ;\n continue ;\n }\n if ( rf >= & info -> referenceFrames [ H264_RF_COUNT ] ) continue ;\n vdpau_h264_set_rf ( rf , pic , pic -> reference ) ;\n ++ rf ;\n }\n }\n for ( ;\n rf < & info -> referenceFrames [ H264_RF_COUNT ] ;\n ++ rf ) vdpau_h264_clear_rf ( rf ) ;\n }"}
{"idx": 183, "target": 0, "func": "static int kex_agree_crypt ( LIBSSH2_SESSION * session , libssh2_endpoint_data * endpoint , unsigned char * crypt , unsigned long crypt_len ) {\n const LIBSSH2_CRYPT_METHOD * * cryptp = libssh2_crypt_methods ( ) ;\n unsigned char * s ;\n ( void ) session ;\n if ( endpoint -> crypt_prefs ) {\n s = ( unsigned char * ) endpoint -> crypt_prefs ;\n while ( s && * s ) {\n unsigned char * p = ( unsigned char * ) strchr ( ( char * ) s , ',' ) ;\n size_t method_len = ( p ? ( size_t ) ( p - s ) : strlen ( ( char * ) s ) ) ;\n if ( kex_agree_instr ( crypt , crypt_len , s , method_len ) ) {\n const LIBSSH2_CRYPT_METHOD * method = ( const LIBSSH2_CRYPT_METHOD * ) kex_get_method_by_name ( ( char * ) s , method_len , ( const LIBSSH2_COMMON_METHOD * * ) cryptp ) ;\n if ( ! method ) {\n return - 1 ;\n }\n endpoint -> crypt = method ;\n return 0 ;\n }\n s = p ? p + 1 : NULL ;\n }\n return - 1 ;\n }\n while ( * cryptp && ( * cryptp ) -> name ) {\n s = kex_agree_instr ( crypt , crypt_len , ( unsigned char * ) ( * cryptp ) -> name , strlen ( ( * cryptp ) -> name ) ) ;\n if ( s ) {\n endpoint -> crypt = * cryptp ;\n return 0 ;\n }\n cryptp ++ ;\n }\n return - 1 ;\n }"}
{"idx": 184, "target": 0, "func": "int vp8_denoiser_allocate ( VP8_DENOISER * denoiser , int width , int height , int num_mb_rows , int num_mb_cols , int mode ) {\n int i ;\n assert ( denoiser ) ;\n denoiser -> num_mb_cols = num_mb_cols ;\n for ( i = 0 ;\n i < MAX_REF_FRAMES ;\n i ++ ) {\n denoiser -> yv12_running_avg [ i ] . flags = 0 ;\n if ( vp8_yv12_alloc_frame_buffer ( & ( denoiser -> yv12_running_avg [ i ] ) , width , height , VP8BORDERINPIXELS ) < 0 ) {\n vp8_denoiser_free ( denoiser ) ;\n return 1 ;\n }\n vpx_memset ( denoiser -> yv12_running_avg [ i ] . buffer_alloc , 0 , denoiser -> yv12_running_avg [ i ] . frame_size ) ;\n }\n denoiser -> yv12_mc_running_avg . flags = 0 ;\n if ( vp8_yv12_alloc_frame_buffer ( & ( denoiser -> yv12_mc_running_avg ) , width , height , VP8BORDERINPIXELS ) < 0 ) {\n vp8_denoiser_free ( denoiser ) ;\n return 1 ;\n }\n vpx_memset ( denoiser -> yv12_mc_running_avg . buffer_alloc , 0 , denoiser -> yv12_mc_running_avg . frame_size ) ;\n if ( vp8_yv12_alloc_frame_buffer ( & denoiser -> yv12_last_source , width , height , VP8BORDERINPIXELS ) < 0 ) {\n vp8_denoiser_free ( denoiser ) ;\n return 1 ;\n }\n vpx_memset ( denoiser -> yv12_last_source . buffer_alloc , 0 , denoiser -> yv12_last_source . frame_size ) ;\n denoiser -> denoise_state = vpx_calloc ( ( num_mb_rows * num_mb_cols ) , 1 ) ;\n vpx_memset ( denoiser -> denoise_state , 0 , ( num_mb_rows * num_mb_cols ) ) ;\n vp8_denoiser_set_parameters ( denoiser , mode ) ;\n denoiser -> nmse_source_diff = 0 ;\n denoiser -> nmse_source_diff_count = 0 ;\n denoiser -> qp_avg = 0 ;\n denoiser -> qp_threshold_up = 80 ;\n denoiser -> qp_threshold_down = 128 ;\n denoiser -> bitrate_threshold = 200000 ;\n denoiser -> threshold_aggressive_mode = 35 ;\n if ( width * height > 640 * 480 ) {\n denoiser -> bitrate_threshold = 500000 ;\n denoiser -> threshold_aggressive_mode = 100 ;\n }\n else if ( width * height > 960 * 540 ) {\n denoiser -> bitrate_threshold = 800000 ;\n denoiser -> threshold_aggressive_mode = 150 ;\n }\n else if ( width * height > 1280 * 720 ) {\n denoiser -> bitrate_threshold = 2000000 ;\n denoiser -> threshold_aggressive_mode = 1400 ;\n }\n return 0 ;\n }"}
{"idx": 185, "target": 0, "func": "static void test_combined ( void ) {\n struct both r1 , r2 , w1 , w2 ;\n setup_test ( \"Combined read/write: \" ) ;\n memset ( & r1 , 0 , sizeof ( r1 ) ) ;\n memset ( & r2 , 0 , sizeof ( r2 ) ) ;\n memset ( & w1 , 0 , sizeof ( w1 ) ) ;\n memset ( & w2 , 0 , sizeof ( w2 ) ) ;\n w1 . nread = 4096 ;\n w2 . nread = 8192 ;\n event_set ( & r1 . ev , pair [ 0 ] , EV_READ , combined_read_cb , & r1 ) ;\n event_set ( & w1 . ev , pair [ 0 ] , EV_WRITE , combined_write_cb , & w1 ) ;\n event_set ( & r2 . ev , pair [ 1 ] , EV_READ , combined_read_cb , & r2 ) ;\n event_set ( & w2 . ev , pair [ 1 ] , EV_WRITE , combined_write_cb , & w2 ) ;\n if ( event_add ( & r1 . ev , NULL ) == - 1 ) exit ( 1 ) ;\n if ( event_add ( & w1 . ev , NULL ) ) exit ( 1 ) ;\n if ( event_add ( & r2 . ev , NULL ) ) exit ( 1 ) ;\n if ( event_add ( & w2 . ev , NULL ) ) exit ( 1 ) ;\n event_dispatch ( ) ;\n if ( r1 . nread == 8192 && r2 . nread == 4096 ) test_ok = 1 ;\n cleanup_test ( ) ;\n }"}
{"idx": 186, "target": 0, "func": "static int read_runs ( AVCodecContext * avctx , GetBitContext * gb , Bundle * b ) {\n int t , v ;\n const uint8_t * dec_end ;\n CHECK_READ_VAL ( gb , b , t ) ;\n dec_end = b -> cur_dec + t ;\n if ( dec_end > b -> data_end ) {\n av_log ( avctx , AV_LOG_ERROR , \"Run value went out of bounds\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( get_bits1 ( gb ) ) {\n v = get_bits ( gb , 4 ) ;\n memset ( b -> cur_dec , v , t ) ;\n b -> cur_dec += t ;\n }\n else {\n while ( b -> cur_dec < dec_end ) * b -> cur_dec ++ = GET_HUFF ( gb , b -> tree ) ;\n }\n return 0 ;\n }"}
{"idx": 187, "target": 0, "func": "static int ivr_probe ( AVProbeData * p ) {\n if ( memcmp ( p -> buf , \".R1M\\x0\\x1\\x1\" , 7 ) && memcmp ( p -> buf , \".REC\" , 4 ) ) return 0 ;\n return AVPROBE_SCORE_MAX ;\n }"}
{"idx": 188, "target": 0, "func": "static void U_CALLCONV _LMBCSOpen ## n ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err ) \\ {\n _LMBCSOpenWorker ( _this , pArgs , err , n ) ;\n }\n static void _LMBCSOpenWorker ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err , ulmbcs_byte_t OptGroup ) {\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) uprv_malloc ( sizeof ( UConverterDataLMBCS ) ) ;\n _this -> extraInfo = extraInfo ;\n if ( extraInfo != NULL ) {\n UConverterNamePieces stackPieces ;\n UConverterLoadArgs stackArgs = UCNV_LOAD_ARGS_INITIALIZER ;\n ulmbcs_byte_t i ;\n uprv_memset ( extraInfo , 0 , sizeof ( UConverterDataLMBCS ) ) ;\n stackArgs . onlyTestIsLoadable = pArgs -> onlyTestIsLoadable ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST && U_SUCCESS ( * err ) ;\n i ++ ) {\n if ( OptGroupByteToCPName [ i ] != NULL ) {\n extraInfo -> OptGrpConverter [ i ] = ucnv_loadSharedData ( OptGroupByteToCPName [ i ] , & stackPieces , & stackArgs , err ) ;\n }\n }\n if ( U_FAILURE ( * err ) || pArgs -> onlyTestIsLoadable ) {\n _LMBCSClose ( _this ) ;\n return ;\n }\n extraInfo -> OptGroup = OptGroup ;\n extraInfo -> localeConverterIndex = FindLMBCSLocale ( pArgs -> locale ) ;\n }\n else {\n * err = U_MEMORY_ALLOCATION_ERROR ;\n }\n }\n U_CDECL_BEGIN static void U_CALLCONV _LMBCSClose ( UConverter * _this ) {\n if ( _this -> extraInfo != NULL ) {\n ulmbcs_byte_t Ix ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) _this -> extraInfo ;\n for ( Ix = 0 ;\n Ix <= ULMBCS_GRP_LAST ;\n Ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ Ix ] != NULL ) ucnv_unloadSharedDataIfReady ( extraInfo -> OptGrpConverter [ Ix ] ) ;\n }\n if ( ! _this -> isExtraLocal ) {\n uprv_free ( _this -> extraInfo ) ;\n _this -> extraInfo = NULL ;\n }\n }\n }\n typedef struct LMBCSClone {\n UConverter cnv ;\n UConverterDataLMBCS lmbcs ;\n }\n LMBCSClone ;\n static UConverter * U_CALLCONV _LMBCSSafeClone ( const UConverter * cnv , void * stackBuffer , int32_t * pBufferSize , UErrorCode * status ) {\n ( void ) status ;\n LMBCSClone * newLMBCS ;\n UConverterDataLMBCS * extraInfo ;\n int32_t i ;\n if ( * pBufferSize <= 0 ) {\n * pBufferSize = ( int32_t ) sizeof ( LMBCSClone ) ;\n return NULL ;\n }\n extraInfo = ( UConverterDataLMBCS * ) cnv -> extraInfo ;\n newLMBCS = ( LMBCSClone * ) stackBuffer ;\n uprv_memcpy ( & newLMBCS -> lmbcs , extraInfo , sizeof ( UConverterDataLMBCS ) ) ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST ;\n ++ i ) {\n if ( extraInfo -> OptGrpConverter [ i ] != NULL ) {\n ucnv_incrementRefCount ( extraInfo -> OptGrpConverter [ i ] ) ;\n }\n }\n newLMBCS -> cnv . extraInfo = & newLMBCS -> lmbcs ;\n newLMBCS -> cnv . isExtraLocal = TRUE ;\n return & newLMBCS -> cnv ;\n }\n static size_t LMBCSConversionWorker ( UConverterDataLMBCS * extraInfo , ulmbcs_byte_t group , ulmbcs_byte_t * pStartLMBCS , UChar * pUniChar , ulmbcs_byte_t * lastConverterIndex , UBool * groups_tried ) {\n ulmbcs_byte_t * pLMBCS = pStartLMBCS ;\n UConverterSharedData * xcnv = extraInfo -> OptGrpConverter [ group ] ;\n int bytesConverted ;\n uint32_t value ;\n ulmbcs_byte_t firstByte ;\n U_ASSERT ( xcnv ) ;\n U_ASSERT ( group < ULMBCS_GRP_UNICODE ) ;\n bytesConverted = ucnv_MBCSFromUChar32 ( xcnv , * pUniChar , & value , FALSE ) ;\n if ( bytesConverted > 0 ) {\n firstByte = ( ulmbcs_byte_t ) ( value >> ( ( bytesConverted - 1 ) * 8 ) ) ;\n }\n else {\n groups_tried [ group ] = TRUE ;\n return 0 ;\n }\n * lastConverterIndex = group ;\n U_ASSERT ( ( firstByte <= ULMBCS_C0END ) || ( firstByte >= ULMBCS_C1START ) || ( group == ULMBCS_GRP_EXCEPT ) ) ;\n if ( group != ULMBCS_GRP_EXCEPT && extraInfo -> OptGroup != group ) {\n * pLMBCS ++ = group ;\n if ( bytesConverted == 1 && group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n * pLMBCS ++ = group ;\n }\n }\n if ( bytesConverted == 1 && firstByte < 0x20 ) return 0 ;\n switch ( bytesConverted ) {\n case 4 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 24 ) ;\n U_FALLTHROUGH ;\n case 3 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 16 ) ;\n U_FALLTHROUGH ;\n case 2 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 8 ) ;\n U_FALLTHROUGH ;\n case 1 : * pLMBCS ++ = ( ulmbcs_byte_t ) value ;\n U_FALLTHROUGH ;\n default : break ;\n }\n return ( pLMBCS - pStartLMBCS ) ;\n }\n static size_t LMBCSConvertUni ( ulmbcs_byte_t * pLMBCS , UChar uniChar ) {\n uint8_t LowCh = ( uint8_t ) ( uniChar & 0x00FF ) ;\n uint8_t HighCh = ( uint8_t ) ( uniChar >> 8 ) ;\n * pLMBCS ++ = ULMBCS_GRP_UNICODE ;\n if ( LowCh == 0 ) {\n * pLMBCS ++ = ULMBCS_UNICOMPATZERO ;\n * pLMBCS ++ = HighCh ;\n }\n else {\n * pLMBCS ++ = HighCh ;\n * pLMBCS ++ = LowCh ;\n }\n return ULMBCS_UNICODE_SIZE ;\n }\n static void U_CALLCONV _LMBCSFromUnicode ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n ulmbcs_byte_t lastConverterIndex = 0 ;\n UChar uniChar ;\n ulmbcs_byte_t LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n ulmbcs_byte_t * pLMBCS ;\n int32_t bytes_written ;\n UBool groups_tried [ ULMBCS_GRP_LAST + 1 ] ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n int sourceIndex = 0 ;\n ulmbcs_byte_t OldConverterIndex = 0 ;\n while ( args -> source < args -> sourceLimit && ! U_FAILURE ( * err ) ) {\n OldConverterIndex = extraInfo -> localeConverterIndex ;\n if ( args -> target >= args -> targetLimit ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n uniChar = * ( args -> source ) ;\n bytes_written = 0 ;\n pLMBCS = LMBCS ;\n if ( ( uniChar >= 0x80 ) && ( uniChar <= 0xff ) && ( uniChar != 0xB1 ) && ( uniChar != 0xD7 ) && ( uniChar != 0xF7 ) && ( uniChar != 0xB0 ) && ( uniChar != 0xB4 ) && ( uniChar != 0xB6 ) && ( uniChar != 0xA7 ) && ( uniChar != 0xA8 ) ) {\n extraInfo -> localeConverterIndex = ULMBCS_GRP_L1 ;\n }\n if ( ( ( uniChar > ULMBCS_C0END ) && ( uniChar < ULMBCS_C1START ) ) || uniChar == 0 || uniChar == ULMBCS_HT || uniChar == ULMBCS_CR || uniChar == ULMBCS_LF || uniChar == ULMBCS_123SYSTEMRANGE ) {\n * pLMBCS ++ = ( ulmbcs_byte_t ) uniChar ;\n bytes_written = 1 ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t group = FindLMBCSUniRange ( uniChar ) ;\n if ( group == ULMBCS_GRP_UNICODE ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group == ULMBCS_GRP_CTRL ) {\n if ( uniChar <= ULMBCS_C0END ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( ULMBCS_CTRLOFFSET + uniChar ) ;\n }\n else if ( uniChar >= ULMBCS_C1START && uniChar <= ULMBCS_C1START + ULMBCS_CTRLOFFSET ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( uniChar & 0x00FF ) ;\n }\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group < ULMBCS_GRP_UNICODE ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , group , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n uprv_memset ( groups_tried , 0 , sizeof ( groups_tried ) ) ;\n if ( ( extraInfo -> OptGroup != 1 ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> OptGroup ) ) ) {\n if ( extraInfo -> localeConverterIndex < ULMBCS_DOUBLEOPTGROUP_START ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_L1 , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n else {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && ( extraInfo -> localeConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> localeConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written && ( lastConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , lastConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , lastConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t grp_start ;\n ulmbcs_byte_t grp_end ;\n ulmbcs_byte_t grp_ix ;\n grp_start = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_DOUBLEOPTGROUP_START : ULMBCS_GRP_L1 ) ;\n grp_end = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_GRP_LAST : ULMBCS_GRP_TH ) ;\n if ( group == ULMBCS_AMBIGUOUS_ALL ) {\n grp_start = ULMBCS_GRP_L1 ;\n grp_end = ULMBCS_GRP_LAST ;\n }\n for ( grp_ix = grp_start ;\n grp_ix <= grp_end && ! bytes_written ;\n grp_ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ grp_ix ] && ! groups_tried [ grp_ix ] ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , grp_ix , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && grp_start == ULMBCS_GRP_L1 ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n }\n }\n args -> source ++ ;\n pLMBCS = LMBCS ;\n while ( args -> target < args -> targetLimit && bytes_written -- ) {\n * ( args -> target ) ++ = * pLMBCS ++ ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = sourceIndex ;\n }\n }\n sourceIndex ++ ;\n if ( bytes_written > 0 ) {\n uint8_t * pErrorBuffer = args -> converter -> charErrorBuffer ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n args -> converter -> charErrorBufferLength = ( int8_t ) bytes_written ;\n while ( bytes_written -- ) {\n * pErrorBuffer ++ = * pLMBCS ++ ;\n }\n }\n extraInfo -> localeConverterIndex = OldConverterIndex ;\n }\n }\n static UChar GetUniFromLMBCSUni ( char const * * ppLMBCSin ) {\n uint8_t HighCh = * ( * ppLMBCSin ) ++ ;\n uint8_t LowCh = * ( * ppLMBCSin ) ++ ;\n if ( HighCh == ULMBCS_UNICOMPATZERO ) {\n HighCh = LowCh ;\n LowCh = 0 ;\n }\n return ( UChar ) ( ( HighCh << 8 ) | LowCh ) ;\n }\n # define CHECK_SOURCE_LIMIT ( index ) if ( args -> source + index > args -> sourceLimit ) {\n * err = U_TRUNCATED_CHAR_FOUND ;\n args -> source = args -> sourceLimit ;\n return 0xffff ;\n }\n static UChar32 U_CALLCONV _LMBCSGetNextUCharWorker ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n UChar32 uniChar = 0 ;\n ulmbcs_byte_t CurByte ;\n if ( args -> source >= args -> sourceLimit ) {\n * err = U_ILLEGAL_ARGUMENT_ERROR ;\n return 0xffff ;\n }\n CurByte = * ( ( ulmbcs_byte_t * ) ( args -> source ++ ) ) ;\n if ( ( ( CurByte > ULMBCS_C0END ) && ( CurByte < ULMBCS_C1START ) ) || ( CurByte == 0 ) || CurByte == ULMBCS_HT || CurByte == ULMBCS_CR || CurByte == ULMBCS_LF || CurByte == ULMBCS_123SYSTEMRANGE ) {\n uniChar = CurByte ;\n }\n else {\n UConverterDataLMBCS * extraInfo ;\n ulmbcs_byte_t group ;\n UConverterSharedData * cnv ;\n if ( CurByte == ULMBCS_GRP_CTRL ) {\n ulmbcs_byte_t C0C1byte ;\n CHECK_SOURCE_LIMIT ( 1 ) ;\n C0C1byte = * ( args -> source ) ++ ;\n uniChar = ( C0C1byte < ULMBCS_C1START ) ? C0C1byte - ULMBCS_CTRLOFFSET : C0C1byte ;\n }\n else if ( CurByte == ULMBCS_GRP_UNICODE ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n return GetUniFromLMBCSUni ( & ( args -> source ) ) ;\n }\n else if ( CurByte <= ULMBCS_CTRLOFFSET ) {\n group = CurByte ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n if ( group > ULMBCS_GRP_LAST || ( cnv = extraInfo -> OptGrpConverter [ group ] ) == NULL ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n if ( * args -> source == group ) {\n ++ args -> source ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 1 , FALSE ) ;\n ++ args -> source ;\n }\n else {\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 2 , FALSE ) ;\n args -> source += 2 ;\n }\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n CurByte = * ( args -> source ) ++ ;\n if ( CurByte >= ULMBCS_C1START ) {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n else {\n char bytes [ 2 ] ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n cnv = extraInfo -> OptGrpConverter [ ULMBCS_GRP_EXCEPT ] ;\n bytes [ 0 ] = group ;\n bytes [ 1 ] = CurByte ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , bytes , 2 , FALSE ) ;\n }\n }\n }\n else if ( CurByte >= ULMBCS_C1START ) {\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n group = extraInfo -> OptGroup ;\n cnv = extraInfo -> OptGrpConverter [ group ] ;\n if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n if ( ! ucnv_MBCSIsLeadByte ( cnv , CurByte ) ) {\n CHECK_SOURCE_LIMIT ( 0 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 1 , FALSE ) ;\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 2 , FALSE ) ;\n ++ args -> source ;\n }\n }\n else {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n }\n }\n return uniChar ;\n }\n static void U_CALLCONV _LMBCSToUnicodeWithOffsets ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n char LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n UChar uniChar ;\n const char * saveSource ;\n const char * pStartLMBCS = args -> source ;\n const char * errSource = NULL ;\n int8_t savebytes = 0 ;\n while ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit > args -> target ) {\n saveSource = args -> source ;\n if ( args -> converter -> toULength ) {\n const char * saveSourceLimit ;\n size_t size_old = args -> converter -> toULength ;\n size_t size_new_maybe_1 = sizeof ( LMBCS ) - size_old ;\n size_t size_new_maybe_2 = args -> sourceLimit - args -> source ;\n size_t size_new = ( size_new_maybe_1 < size_new_maybe_2 ) ? size_new_maybe_1 : size_new_maybe_2 ;\n uprv_memcpy ( LMBCS , args -> converter -> toUBytes , size_old ) ;\n uprv_memcpy ( LMBCS + size_old , args -> source , size_new ) ;\n saveSourceLimit = args -> sourceLimit ;\n args -> source = errSource = LMBCS ;\n args -> sourceLimit = LMBCS + size_old + size_new ;\n savebytes = ( int8_t ) ( size_old + size_new ) ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n args -> source = saveSource + ( ( args -> source - LMBCS ) - size_old ) ;\n args -> sourceLimit = saveSourceLimit ;\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n args -> converter -> toULength = savebytes ;\n uprv_memcpy ( args -> converter -> toUBytes , LMBCS , savebytes ) ;\n args -> source = args -> sourceLimit ;\n * err = U_ZERO_ERROR ;\n return ;\n }\n else {\n args -> converter -> toULength = 0 ;\n }\n }\n else {\n errSource = saveSource ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n savebytes = ( int8_t ) ( args -> source - saveSource ) ;\n }\n if ( U_SUCCESS ( * err ) ) {\n if ( uniChar < 0xfffe ) {\n * ( args -> target ) ++ = uniChar ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = ( int32_t ) ( saveSource - pStartLMBCS ) ;\n }\n }\n else if ( uniChar == 0xfffe ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n }\n if ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit <= args -> target ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n else if ( U_FAILURE ( * err ) ) {\n args -> converter -> toULength = savebytes ;\n if ( savebytes > 0 ) {\n uprv_memcpy ( args -> converter -> toUBytes , errSource , savebytes ) ;\n }\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n * err = U_ZERO_ERROR ;\n }\n }\n }\n DEFINE_LMBCS_OPEN ( 1 ) DEFINE_LMBCS_OPEN ( 2 )"}
{"idx": 189, "target": 1, "func": "int64_t cpu_get_icount ( void ) {\n int64_t icount ;\n CPUArchState * env = cpu_single_env ;\n icount = qemu_icount ;\n if ( env ) {\n if ( ! can_do_io ( env ) ) {\n fprintf ( stderr , \"Bad clock read\\n\" ) ;\n }\n icount -= ( env -> icount_decr . u16 . low + env -> icount_extra ) ;\n }\n return qemu_icount_bias + ( icount << icount_time_shift ) ;\n }"}
{"idx": 190, "target": 0, "func": "extern char * * xduparray ( uint32_t size , char * * array ) {\n int i ;\n char * * result ;\n if ( size == 0 ) return ( char * * ) NULL ;\n result = ( char * * ) xmalloc ( sizeof ( char * ) * size ) ;\n for ( i = 0 ;\n i < size ;\n i ++ ) result [ i ] = xstrdup ( array [ i ] ) ;\n return result ;\n }"}
{"idx": 191, "target": 1, "func": "int jbig2_page_add_result ( Jbig2Ctx * ctx , Jbig2Page * page , Jbig2Image * image , int x , int y , Jbig2ComposeOp op ) {\n if ( page -> image == NULL ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , - 1 , \"page info possibly missing, no image defined\" ) ;\n return 0 ;\n }\n if ( page -> striped ) {\n int new_height = y + image -> height + page -> end_row ;\n if ( page -> image -> height < new_height ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_DEBUG , - 1 , \"growing page buffer to %d rows \" \"to accomodate new stripe\" , new_height ) ;\n jbig2_image_resize ( ctx , page -> image , page -> image -> width , new_height ) ;\n }\n }\n jbig2_image_compose ( ctx , page -> image , image , x , y + page -> end_row , op ) ;\n return 0 ;\n }"}
{"idx": 192, "target": 0, "func": "x509_cert_t * x509_cert_load ( certificate_type_t type , va_list args ) {\n x509_flag_t flags = 0 ;\n chunk_t blob = chunk_empty ;\n while ( TRUE ) {\n switch ( va_arg ( args , builder_part_t ) ) {\n case BUILD_BLOB_ASN1_DER : blob = va_arg ( args , chunk_t ) ;\n continue ;\n case BUILD_X509_FLAG : flags |= va_arg ( args , x509_flag_t ) ;\n continue ;\n case BUILD_END : break ;\n default : return NULL ;\n }\n break ;\n }\n if ( blob . ptr ) {\n private_x509_cert_t * cert = create_empty ( ) ;\n cert -> encoding = chunk_clone ( blob ) ;\n cert -> parsed = TRUE ;\n if ( parse_certificate ( cert ) ) {\n cert -> flags |= flags ;\n return & cert -> public ;\n }\n destroy ( cert ) ;\n }\n return NULL ;\n }"}
{"idx": 193, "target": 0, "func": "static bool hyperv_runtime_enable_needed ( void * opaque ) {\n X86CPU * cpu = opaque ;\n CPUX86State * env = & cpu -> env ;\n if ( ! cpu -> hyperv_runtime ) {\n return false ;\n }\n return env -> msr_hv_runtime != 0 ;\n }"}
{"idx": 194, "target": 0, "func": "static Int decUnitCompare ( const Unit * a , Int alength , const Unit * b , Int blength , Int exp ) {\n Unit * acc ;\n Unit accbuff [ SD2U ( DECBUFFER * 2 + 1 ) ] ;\n Unit * allocacc = NULL ;\n Int accunits , need ;\n const Unit * l , * r , * u ;\n Int expunits , exprem , result ;\n if ( exp == 0 ) {\n if ( alength > blength ) return 1 ;\n if ( alength < blength ) return - 1 ;\n l = a + alength - 1 ;\n r = b + alength - 1 ;\n for ( ;\n l >= a ;\n l -- , r -- ) {\n if ( * l > * r ) return 1 ;\n if ( * l < * r ) return - 1 ;\n }\n return 0 ;\n }\n if ( alength > blength + ( Int ) D2U ( exp ) ) return 1 ;\n if ( alength + 1 < blength + ( Int ) D2U ( exp ) ) return - 1 ;\n need = blength + D2U ( exp ) ;\n if ( need < alength ) need = alength ;\n need += 2 ;\n acc = accbuff ;\n if ( need * sizeof ( Unit ) > sizeof ( accbuff ) ) {\n allocacc = ( Unit * ) malloc ( need * sizeof ( Unit ) ) ;\n if ( allocacc == NULL ) return BADINT ;\n acc = allocacc ;\n }\n expunits = exp / DECDPUN ;\n exprem = exp % DECDPUN ;\n accunits = decUnitAddSub ( a , alength , b , blength , expunits , acc , - ( Int ) powers [ exprem ] ) ;\n if ( accunits < 0 ) result = - 1 ;\n else {\n for ( u = acc ;\n u < acc + accunits - 1 && * u == 0 ;\n ) u ++ ;\n result = ( * u == 0 ? 0 : + 1 ) ;\n }\n if ( allocacc != NULL ) free ( allocacc ) ;\n return result ;\n }"}
{"idx": 195, "target": 0, "func": "int tls_construct_server_certificate ( SSL * s ) {\n CERT_PKEY * cpk ;\n cpk = ssl_get_server_send_pkey ( s ) ;\n if ( cpk == NULL ) {\n SSLerr ( SSL_F_TLS_CONSTRUCT_SERVER_CERTIFICATE , ERR_R_INTERNAL_ERROR ) ;\n ossl_statem_set_error ( s ) ;\n return 0 ;\n }\n if ( ! ssl3_output_cert_chain ( s , cpk ) ) {\n SSLerr ( SSL_F_TLS_CONSTRUCT_SERVER_CERTIFICATE , ERR_R_INTERNAL_ERROR ) ;\n ossl_statem_set_error ( s ) ;\n return 0 ;\n }\n return 1 ;\n }"}
{"idx": 196, "target": 0, "func": "static int rtp_packetize_spx ( sout_stream_id_sys_t * id , block_t * in ) {\n uint8_t * p_buffer = in -> p_buffer ;\n int i_data_size , i_payload_size , i_payload_padding ;\n i_data_size = i_payload_size = in -> i_buffer ;\n i_payload_padding = 0 ;\n block_t * p_out ;\n if ( in -> i_buffer > rtp_mtu ( id ) ) {\n block_Release ( in ) ;\n return VLC_SUCCESS ;\n }\n if ( i_payload_size % 4 ) {\n i_payload_padding = 4 - ( i_payload_size % 4 ) ;\n i_payload_size += i_payload_padding ;\n }\n p_out = block_Alloc ( 12 + i_payload_size ) ;\n if ( i_payload_padding ) {\n char c_first_pad , c_remaining_pad ;\n c_first_pad = 0x7F ;\n c_remaining_pad = 0xFF ;\n p_out -> p_buffer [ 12 + i_data_size ] = c_first_pad ;\n switch ( i_payload_padding ) {\n case 2 : p_out -> p_buffer [ 12 + i_data_size + 1 ] = c_remaining_pad ;\n break ;\n case 3 : p_out -> p_buffer [ 12 + i_data_size + 1 ] = c_remaining_pad ;\n p_out -> p_buffer [ 12 + i_data_size + 2 ] = c_remaining_pad ;\n break ;\n }\n }\n rtp_packetize_common ( id , p_out , 0 , ( in -> i_pts > VLC_TS_INVALID ? in -> i_pts : in -> i_dts ) ) ;\n memcpy ( & p_out -> p_buffer [ 12 ] , p_buffer , i_data_size ) ;\n p_out -> i_dts = in -> i_dts ;\n p_out -> i_length = in -> i_length ;\n block_Release ( in ) ;\n rtp_packetize_send ( id , p_out ) ;\n return VLC_SUCCESS ;\n }"}
{"idx": 197, "target": 0, "func": "static int rc_pick_q_and_bounds_one_pass_vbr ( const VP9_COMP * cpi , int * bottom_index , int * top_index ) {\n const VP9_COMMON * const cm = & cpi -> common ;\n const RATE_CONTROL * const rc = & cpi -> rc ;\n const VP9EncoderConfig * const oxcf = & cpi -> oxcf ;\n const int cq_level = get_active_cq_level ( rc , oxcf ) ;\n int active_best_quality ;\n int active_worst_quality = calc_active_worst_quality_one_pass_vbr ( cpi ) ;\n int q ;\n int * inter_minq ;\n ASSIGN_MINQ_TABLE ( cm -> bit_depth , inter_minq ) ;\n if ( frame_is_intra_only ( cm ) ) {\n if ( rc -> this_key_frame_forced ) {\n int qindex = rc -> last_boosted_qindex ;\n double last_boosted_q = vp9_convert_qindex_to_q ( qindex , cm -> bit_depth ) ;\n int delta_qindex = vp9_compute_qdelta ( rc , last_boosted_q , last_boosted_q * 0.75 , cm -> bit_depth ) ;\n active_best_quality = MAX ( qindex + delta_qindex , rc -> best_quality ) ;\n }\n else {\n double q_adj_factor = 1.0 ;\n double q_val ;\n active_best_quality = get_kf_active_quality ( rc , rc -> avg_frame_qindex [ KEY_FRAME ] , cm -> bit_depth ) ;\n if ( ( cm -> width * cm -> height ) <= ( 352 * 288 ) ) {\n q_adj_factor -= 0.25 ;\n }\n q_val = vp9_convert_qindex_to_q ( active_best_quality , cm -> bit_depth ) ;\n active_best_quality += vp9_compute_qdelta ( rc , q_val , q_val * q_adj_factor , cm -> bit_depth ) ;\n }\n }\n else if ( ! rc -> is_src_frame_alt_ref && ( cpi -> refresh_golden_frame || cpi -> refresh_alt_ref_frame ) ) {\n if ( rc -> frames_since_key > 1 && rc -> avg_frame_qindex [ INTER_FRAME ] < active_worst_quality ) {\n q = rc -> avg_frame_qindex [ INTER_FRAME ] ;\n }\n else {\n q = rc -> avg_frame_qindex [ KEY_FRAME ] ;\n }\n if ( oxcf -> rc_mode == VPX_CQ ) {\n if ( q < cq_level ) q = cq_level ;\n active_best_quality = get_gf_active_quality ( rc , q , cm -> bit_depth ) ;\n active_best_quality = active_best_quality * 15 / 16 ;\n }\n else if ( oxcf -> rc_mode == VPX_Q ) {\n if ( ! cpi -> refresh_alt_ref_frame ) {\n active_best_quality = cq_level ;\n }\n else {\n active_best_quality = get_gf_active_quality ( rc , q , cm -> bit_depth ) ;\n }\n }\n else {\n active_best_quality = get_gf_active_quality ( rc , q , cm -> bit_depth ) ;\n }\n }\n else {\n if ( oxcf -> rc_mode == VPX_Q ) {\n active_best_quality = cq_level ;\n }\n else {\n if ( cm -> current_video_frame > 1 ) active_best_quality = inter_minq [ rc -> avg_frame_qindex [ INTER_FRAME ] ] ;\n else active_best_quality = inter_minq [ rc -> avg_frame_qindex [ KEY_FRAME ] ] ;\n if ( ( oxcf -> rc_mode == VPX_CQ ) && ( active_best_quality < cq_level ) ) {\n active_best_quality = cq_level ;\n }\n }\n }\n active_best_quality = clamp ( active_best_quality , rc -> best_quality , rc -> worst_quality ) ;\n active_worst_quality = clamp ( active_worst_quality , active_best_quality , rc -> worst_quality ) ;\n * top_index = active_worst_quality ;\n * bottom_index = active_best_quality ;\n # if LIMIT_QRANGE_FOR_ALTREF_AND_KEY {\n int qdelta = 0 ;\n vp9_clear_system_state ( ) ;\n if ( cm -> frame_type == KEY_FRAME && ! rc -> this_key_frame_forced && ! ( cm -> current_video_frame == 0 ) ) {\n qdelta = vp9_compute_qdelta_by_rate ( & cpi -> rc , cm -> frame_type , active_worst_quality , 2.0 , cm -> bit_depth ) ;\n }\n else if ( ! rc -> is_src_frame_alt_ref && ( cpi -> refresh_golden_frame || cpi -> refresh_alt_ref_frame ) ) {\n qdelta = vp9_compute_qdelta_by_rate ( & cpi -> rc , cm -> frame_type , active_worst_quality , 1.75 , cm -> bit_depth ) ;\n }\n * top_index = active_worst_quality + qdelta ;\n * top_index = ( * top_index > * bottom_index ) ? * top_index : * bottom_index ;\n }\n # endif if ( oxcf -> rc_mode == VPX_Q ) {\n q = active_best_quality ;\n }\n else if ( ( cm -> frame_type == KEY_FRAME ) && rc -> this_key_frame_forced ) {\n q = rc -> last_boosted_qindex ;\n }\n else {\n q = vp9_rc_regulate_q ( cpi , rc -> this_frame_target , active_best_quality , active_worst_quality ) ;\n if ( q > * top_index ) {\n if ( rc -> this_frame_target >= rc -> max_frame_bandwidth ) * top_index = q ;\n else q = * top_index ;\n }\n }\n assert ( * top_index <= rc -> worst_quality && * top_index >= rc -> best_quality ) ;\n assert ( * bottom_index <= rc -> worst_quality && * bottom_index >= rc -> best_quality ) ;\n assert ( q <= rc -> worst_quality && q >= rc -> best_quality ) ;\n return q ;\n }"}
{"idx": 198, "target": 0, "func": "TEST_F ( IconLabelBubbleViewTest , AnimateLayout ) {\n VerifyWithAnimationStep ( 1 ) ;\n VerifyWithAnimationStep ( 5 ) ;\n VerifyWithAnimationStep ( 10 ) ;\n VerifyWithAnimationStep ( 25 ) ;\n }"}
{"idx": 199, "target": 0, "func": "static inline Quantum GetPixelCb ( const Image * restrict image , const Quantum * restrict pixel ) {\n return ( pixel [ image -> channel_map [ CbPixelChannel ] . offset ] ) ;\n }"}
{"idx": 200, "target": 0, "func": "static inline int ipv6_addr_cmp ( const struct in6_addr * a1 , const struct in6_addr * a2 ) {\n return memcmp ( a1 , a2 , sizeof ( struct in6_addr ) ) ;\n }"}
{"idx": 201, "target": 0, "func": "WORK_STATE tls_post_process_client_hello ( SSL * s , WORK_STATE wst ) {\n int al = SSL_AD_HANDSHAKE_FAILURE ;\n const SSL_CIPHER * cipher ;\n if ( wst == WORK_MORE_A ) {\n if ( ! s -> hit ) {\n if ( s -> cert -> cert_cb ) {\n int rv = s -> cert -> cert_cb ( s , s -> cert -> cert_cb_arg ) ;\n if ( rv == 0 ) {\n al = SSL_AD_INTERNAL_ERROR ;\n SSLerr ( SSL_F_TLS_POST_PROCESS_CLIENT_HELLO , SSL_R_CERT_CB_ERROR ) ;\n goto f_err ;\n }\n if ( rv < 0 ) {\n s -> rwstate = SSL_X509_LOOKUP ;\n return WORK_MORE_A ;\n }\n s -> rwstate = SSL_NOTHING ;\n }\n cipher = ssl3_choose_cipher ( s , s -> session -> ciphers , SSL_get_ciphers ( s ) ) ;\n if ( cipher == NULL ) {\n SSLerr ( SSL_F_TLS_POST_PROCESS_CLIENT_HELLO , SSL_R_NO_SHARED_CIPHER ) ;\n goto f_err ;\n }\n s -> s3 -> tmp . new_cipher = cipher ;\n if ( s -> not_resumable_session_cb != NULL ) s -> session -> not_resumable = s -> not_resumable_session_cb ( s , ( ( cipher -> algorithm_mkey & ( SSL_kDHE | SSL_kECDHE ) ) != 0 ) ) ;\n if ( s -> session -> not_resumable ) s -> tlsext_ticket_expected = 0 ;\n }\n else {\n s -> s3 -> tmp . new_cipher = s -> session -> cipher ;\n }\n if ( ! ( s -> verify_mode & SSL_VERIFY_PEER ) ) {\n if ( ! ssl3_digest_cached_records ( s , 0 ) ) {\n al = SSL_AD_INTERNAL_ERROR ;\n goto f_err ;\n }\n }\n if ( s -> version >= SSL3_VERSION ) {\n if ( ! ssl_check_clienthello_tlsext_late ( s , & al ) ) {\n SSLerr ( SSL_F_TLS_POST_PROCESS_CLIENT_HELLO , SSL_R_CLIENTHELLO_TLSEXT ) ;\n goto f_err ;\n }\n }\n wst = WORK_MORE_B ;\n }\n # ifndef OPENSSL_NO_SRP if ( wst == WORK_MORE_B ) {\n int ret ;\n if ( ( ret = ssl_check_srp_ext_ClientHello ( s , & al ) ) < 0 ) {\n s -> rwstate = SSL_X509_LOOKUP ;\n return WORK_MORE_B ;\n }\n if ( ret != SSL_ERROR_NONE ) {\n if ( al != TLS1_AD_UNKNOWN_PSK_IDENTITY ) SSLerr ( SSL_F_TLS_POST_PROCESS_CLIENT_HELLO , SSL_R_CLIENTHELLO_TLSEXT ) ;\n goto f_err ;\n }\n }\n # endif s -> renegotiate = 2 ;\n return WORK_FINISHED_STOP ;\n f_err : ssl3_send_alert ( s , SSL3_AL_FATAL , al ) ;\n ossl_statem_set_error ( s ) ;\n return WORK_ERROR ;\n }"}
{"idx": 202, "target": 0, "func": "static void count_children_callback ( GObject * source_object , GAsyncResult * res , gpointer user_data ) {\n DirectoryCountState * state ;\n GFileEnumerator * enumerator ;\n NautilusDirectory * directory ;\n GError * error ;\n state = user_data ;\n if ( g_cancellable_is_cancelled ( state -> cancellable ) ) {\n directory = state -> directory ;\n async_job_end ( directory , \"directory count\" ) ;\n nautilus_directory_async_state_changed ( directory ) ;\n directory_count_state_free ( state ) ;\n return ;\n }\n error = NULL ;\n enumerator = g_file_enumerate_children_finish ( G_FILE ( source_object ) , res , & error ) ;\n if ( enumerator == NULL ) {\n count_children_done ( state -> directory , state -> count_file , FALSE , 0 ) ;\n g_error_free ( error ) ;\n directory_count_state_free ( state ) ;\n return ;\n }\n else {\n state -> enumerator = enumerator ;\n g_file_enumerator_next_files_async ( state -> enumerator , DIRECTORY_LOAD_ITEMS_PER_CALLBACK , G_PRIORITY_DEFAULT , state -> cancellable , count_more_files_callback , state ) ;\n }\n }"}
{"idx": 203, "target": 0, "func": "static void idct16_8col ( __m128i * in ) {\n const __m128i k__cospi_p30_m02 = pair_set_epi16 ( cospi_30_64 , - cospi_2_64 ) ;\n const __m128i k__cospi_p02_p30 = pair_set_epi16 ( cospi_2_64 , cospi_30_64 ) ;\n const __m128i k__cospi_p14_m18 = pair_set_epi16 ( cospi_14_64 , - cospi_18_64 ) ;\n const __m128i k__cospi_p18_p14 = pair_set_epi16 ( cospi_18_64 , cospi_14_64 ) ;\n const __m128i k__cospi_p22_m10 = pair_set_epi16 ( cospi_22_64 , - cospi_10_64 ) ;\n const __m128i k__cospi_p10_p22 = pair_set_epi16 ( cospi_10_64 , cospi_22_64 ) ;\n const __m128i k__cospi_p06_m26 = pair_set_epi16 ( cospi_6_64 , - cospi_26_64 ) ;\n const __m128i k__cospi_p26_p06 = pair_set_epi16 ( cospi_26_64 , cospi_6_64 ) ;\n const __m128i k__cospi_p28_m04 = pair_set_epi16 ( cospi_28_64 , - cospi_4_64 ) ;\n const __m128i k__cospi_p04_p28 = pair_set_epi16 ( cospi_4_64 , cospi_28_64 ) ;\n const __m128i k__cospi_p12_m20 = pair_set_epi16 ( cospi_12_64 , - cospi_20_64 ) ;\n const __m128i k__cospi_p20_p12 = pair_set_epi16 ( cospi_20_64 , cospi_12_64 ) ;\n const __m128i k__cospi_p16_p16 = _mm_set1_epi16 ( cospi_16_64 ) ;\n const __m128i k__cospi_p16_m16 = pair_set_epi16 ( cospi_16_64 , - cospi_16_64 ) ;\n const __m128i k__cospi_p24_m08 = pair_set_epi16 ( cospi_24_64 , - cospi_8_64 ) ;\n const __m128i k__cospi_p08_p24 = pair_set_epi16 ( cospi_8_64 , cospi_24_64 ) ;\n const __m128i k__cospi_m08_p24 = pair_set_epi16 ( - cospi_8_64 , cospi_24_64 ) ;\n const __m128i k__cospi_p24_p08 = pair_set_epi16 ( cospi_24_64 , cospi_8_64 ) ;\n const __m128i k__cospi_m24_m08 = pair_set_epi16 ( - cospi_24_64 , - cospi_8_64 ) ;\n const __m128i k__cospi_m16_p16 = pair_set_epi16 ( - cospi_16_64 , cospi_16_64 ) ;\n const __m128i k__DCT_CONST_ROUNDING = _mm_set1_epi32 ( DCT_CONST_ROUNDING ) ;\n __m128i v [ 16 ] , u [ 16 ] , s [ 16 ] , t [ 16 ] ;\n s [ 0 ] = in [ 0 ] ;\n s [ 1 ] = in [ 8 ] ;\n s [ 2 ] = in [ 4 ] ;\n s [ 3 ] = in [ 12 ] ;\n s [ 4 ] = in [ 2 ] ;\n s [ 5 ] = in [ 10 ] ;\n s [ 6 ] = in [ 6 ] ;\n s [ 7 ] = in [ 14 ] ;\n s [ 8 ] = in [ 1 ] ;\n s [ 9 ] = in [ 9 ] ;\n s [ 10 ] = in [ 5 ] ;\n s [ 11 ] = in [ 13 ] ;\n s [ 12 ] = in [ 3 ] ;\n s [ 13 ] = in [ 11 ] ;\n s [ 14 ] = in [ 7 ] ;\n s [ 15 ] = in [ 15 ] ;\n u [ 0 ] = _mm_unpacklo_epi16 ( s [ 8 ] , s [ 15 ] ) ;\n u [ 1 ] = _mm_unpackhi_epi16 ( s [ 8 ] , s [ 15 ] ) ;\n u [ 2 ] = _mm_unpacklo_epi16 ( s [ 9 ] , s [ 14 ] ) ;\n u [ 3 ] = _mm_unpackhi_epi16 ( s [ 9 ] , s [ 14 ] ) ;\n u [ 4 ] = _mm_unpacklo_epi16 ( s [ 10 ] , s [ 13 ] ) ;\n u [ 5 ] = _mm_unpackhi_epi16 ( s [ 10 ] , s [ 13 ] ) ;\n u [ 6 ] = _mm_unpacklo_epi16 ( s [ 11 ] , s [ 12 ] ) ;\n u [ 7 ] = _mm_unpackhi_epi16 ( s [ 11 ] , s [ 12 ] ) ;\n v [ 0 ] = _mm_madd_epi16 ( u [ 0 ] , k__cospi_p30_m02 ) ;\n v [ 1 ] = _mm_madd_epi16 ( u [ 1 ] , k__cospi_p30_m02 ) ;\n v [ 2 ] = _mm_madd_epi16 ( u [ 0 ] , k__cospi_p02_p30 ) ;\n v [ 3 ] = _mm_madd_epi16 ( u [ 1 ] , k__cospi_p02_p30 ) ;\n v [ 4 ] = _mm_madd_epi16 ( u [ 2 ] , k__cospi_p14_m18 ) ;\n v [ 5 ] = _mm_madd_epi16 ( u [ 3 ] , k__cospi_p14_m18 ) ;\n v [ 6 ] = _mm_madd_epi16 ( u [ 2 ] , k__cospi_p18_p14 ) ;\n v [ 7 ] = _mm_madd_epi16 ( u [ 3 ] , k__cospi_p18_p14 ) ;\n v [ 8 ] = _mm_madd_epi16 ( u [ 4 ] , k__cospi_p22_m10 ) ;\n v [ 9 ] = _mm_madd_epi16 ( u [ 5 ] , k__cospi_p22_m10 ) ;\n v [ 10 ] = _mm_madd_epi16 ( u [ 4 ] , k__cospi_p10_p22 ) ;\n v [ 11 ] = _mm_madd_epi16 ( u [ 5 ] , k__cospi_p10_p22 ) ;\n v [ 12 ] = _mm_madd_epi16 ( u [ 6 ] , k__cospi_p06_m26 ) ;\n v [ 13 ] = _mm_madd_epi16 ( u [ 7 ] , k__cospi_p06_m26 ) ;\n v [ 14 ] = _mm_madd_epi16 ( u [ 6 ] , k__cospi_p26_p06 ) ;\n v [ 15 ] = _mm_madd_epi16 ( u [ 7 ] , k__cospi_p26_p06 ) ;\n u [ 0 ] = _mm_add_epi32 ( v [ 0 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 1 ] = _mm_add_epi32 ( v [ 1 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 2 ] = _mm_add_epi32 ( v [ 2 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 3 ] = _mm_add_epi32 ( v [ 3 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 4 ] = _mm_add_epi32 ( v [ 4 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 5 ] = _mm_add_epi32 ( v [ 5 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 6 ] = _mm_add_epi32 ( v [ 6 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 7 ] = _mm_add_epi32 ( v [ 7 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 8 ] = _mm_add_epi32 ( v [ 8 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 9 ] = _mm_add_epi32 ( v [ 9 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 10 ] = _mm_add_epi32 ( v [ 10 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 11 ] = _mm_add_epi32 ( v [ 11 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 12 ] = _mm_add_epi32 ( v [ 12 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 13 ] = _mm_add_epi32 ( v [ 13 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 14 ] = _mm_add_epi32 ( v [ 14 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 15 ] = _mm_add_epi32 ( v [ 15 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 0 ] = _mm_srai_epi32 ( u [ 0 ] , DCT_CONST_BITS ) ;\n u [ 1 ] = _mm_srai_epi32 ( u [ 1 ] , DCT_CONST_BITS ) ;\n u [ 2 ] = _mm_srai_epi32 ( u [ 2 ] , DCT_CONST_BITS ) ;\n u [ 3 ] = _mm_srai_epi32 ( u [ 3 ] , DCT_CONST_BITS ) ;\n u [ 4 ] = _mm_srai_epi32 ( u [ 4 ] , DCT_CONST_BITS ) ;\n u [ 5 ] = _mm_srai_epi32 ( u [ 5 ] , DCT_CONST_BITS ) ;\n u [ 6 ] = _mm_srai_epi32 ( u [ 6 ] , DCT_CONST_BITS ) ;\n u [ 7 ] = _mm_srai_epi32 ( u [ 7 ] , DCT_CONST_BITS ) ;\n u [ 8 ] = _mm_srai_epi32 ( u [ 8 ] , DCT_CONST_BITS ) ;\n u [ 9 ] = _mm_srai_epi32 ( u [ 9 ] , DCT_CONST_BITS ) ;\n u [ 10 ] = _mm_srai_epi32 ( u [ 10 ] , DCT_CONST_BITS ) ;\n u [ 11 ] = _mm_srai_epi32 ( u [ 11 ] , DCT_CONST_BITS ) ;\n u [ 12 ] = _mm_srai_epi32 ( u [ 12 ] , DCT_CONST_BITS ) ;\n u [ 13 ] = _mm_srai_epi32 ( u [ 13 ] , DCT_CONST_BITS ) ;\n u [ 14 ] = _mm_srai_epi32 ( u [ 14 ] , DCT_CONST_BITS ) ;\n u [ 15 ] = _mm_srai_epi32 ( u [ 15 ] , DCT_CONST_BITS ) ;\n s [ 8 ] = _mm_packs_epi32 ( u [ 0 ] , u [ 1 ] ) ;\n s [ 15 ] = _mm_packs_epi32 ( u [ 2 ] , u [ 3 ] ) ;\n s [ 9 ] = _mm_packs_epi32 ( u [ 4 ] , u [ 5 ] ) ;\n s [ 14 ] = _mm_packs_epi32 ( u [ 6 ] , u [ 7 ] ) ;\n s [ 10 ] = _mm_packs_epi32 ( u [ 8 ] , u [ 9 ] ) ;\n s [ 13 ] = _mm_packs_epi32 ( u [ 10 ] , u [ 11 ] ) ;\n s [ 11 ] = _mm_packs_epi32 ( u [ 12 ] , u [ 13 ] ) ;\n s [ 12 ] = _mm_packs_epi32 ( u [ 14 ] , u [ 15 ] ) ;\n t [ 0 ] = s [ 0 ] ;\n t [ 1 ] = s [ 1 ] ;\n t [ 2 ] = s [ 2 ] ;\n t [ 3 ] = s [ 3 ] ;\n u [ 0 ] = _mm_unpacklo_epi16 ( s [ 4 ] , s [ 7 ] ) ;\n u [ 1 ] = _mm_unpackhi_epi16 ( s [ 4 ] , s [ 7 ] ) ;\n u [ 2 ] = _mm_unpacklo_epi16 ( s [ 5 ] , s [ 6 ] ) ;\n u [ 3 ] = _mm_unpackhi_epi16 ( s [ 5 ] , s [ 6 ] ) ;\n v [ 0 ] = _mm_madd_epi16 ( u [ 0 ] , k__cospi_p28_m04 ) ;\n v [ 1 ] = _mm_madd_epi16 ( u [ 1 ] , k__cospi_p28_m04 ) ;\n v [ 2 ] = _mm_madd_epi16 ( u [ 0 ] , k__cospi_p04_p28 ) ;\n v [ 3 ] = _mm_madd_epi16 ( u [ 1 ] , k__cospi_p04_p28 ) ;\n v [ 4 ] = _mm_madd_epi16 ( u [ 2 ] , k__cospi_p12_m20 ) ;\n v [ 5 ] = _mm_madd_epi16 ( u [ 3 ] , k__cospi_p12_m20 ) ;\n v [ 6 ] = _mm_madd_epi16 ( u [ 2 ] , k__cospi_p20_p12 ) ;\n v [ 7 ] = _mm_madd_epi16 ( u [ 3 ] , k__cospi_p20_p12 ) ;\n u [ 0 ] = _mm_add_epi32 ( v [ 0 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 1 ] = _mm_add_epi32 ( v [ 1 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 2 ] = _mm_add_epi32 ( v [ 2 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 3 ] = _mm_add_epi32 ( v [ 3 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 4 ] = _mm_add_epi32 ( v [ 4 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 5 ] = _mm_add_epi32 ( v [ 5 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 6 ] = _mm_add_epi32 ( v [ 6 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 7 ] = _mm_add_epi32 ( v [ 7 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 0 ] = _mm_srai_epi32 ( u [ 0 ] , DCT_CONST_BITS ) ;\n u [ 1 ] = _mm_srai_epi32 ( u [ 1 ] , DCT_CONST_BITS ) ;\n u [ 2 ] = _mm_srai_epi32 ( u [ 2 ] , DCT_CONST_BITS ) ;\n u [ 3 ] = _mm_srai_epi32 ( u [ 3 ] , DCT_CONST_BITS ) ;\n u [ 4 ] = _mm_srai_epi32 ( u [ 4 ] , DCT_CONST_BITS ) ;\n u [ 5 ] = _mm_srai_epi32 ( u [ 5 ] , DCT_CONST_BITS ) ;\n u [ 6 ] = _mm_srai_epi32 ( u [ 6 ] , DCT_CONST_BITS ) ;\n u [ 7 ] = _mm_srai_epi32 ( u [ 7 ] , DCT_CONST_BITS ) ;\n t [ 4 ] = _mm_packs_epi32 ( u [ 0 ] , u [ 1 ] ) ;\n t [ 7 ] = _mm_packs_epi32 ( u [ 2 ] , u [ 3 ] ) ;\n t [ 5 ] = _mm_packs_epi32 ( u [ 4 ] , u [ 5 ] ) ;\n t [ 6 ] = _mm_packs_epi32 ( u [ 6 ] , u [ 7 ] ) ;\n t [ 8 ] = _mm_add_epi16 ( s [ 8 ] , s [ 9 ] ) ;\n t [ 9 ] = _mm_sub_epi16 ( s [ 8 ] , s [ 9 ] ) ;\n t [ 10 ] = _mm_sub_epi16 ( s [ 11 ] , s [ 10 ] ) ;\n t [ 11 ] = _mm_add_epi16 ( s [ 10 ] , s [ 11 ] ) ;\n t [ 12 ] = _mm_add_epi16 ( s [ 12 ] , s [ 13 ] ) ;\n t [ 13 ] = _mm_sub_epi16 ( s [ 12 ] , s [ 13 ] ) ;\n t [ 14 ] = _mm_sub_epi16 ( s [ 15 ] , s [ 14 ] ) ;\n t [ 15 ] = _mm_add_epi16 ( s [ 14 ] , s [ 15 ] ) ;\n u [ 0 ] = _mm_unpacklo_epi16 ( t [ 0 ] , t [ 1 ] ) ;\n u [ 1 ] = _mm_unpackhi_epi16 ( t [ 0 ] , t [ 1 ] ) ;\n u [ 2 ] = _mm_unpacklo_epi16 ( t [ 2 ] , t [ 3 ] ) ;\n u [ 3 ] = _mm_unpackhi_epi16 ( t [ 2 ] , t [ 3 ] ) ;\n u [ 4 ] = _mm_unpacklo_epi16 ( t [ 9 ] , t [ 14 ] ) ;\n u [ 5 ] = _mm_unpackhi_epi16 ( t [ 9 ] , t [ 14 ] ) ;\n u [ 6 ] = _mm_unpacklo_epi16 ( t [ 10 ] , t [ 13 ] ) ;\n u [ 7 ] = _mm_unpackhi_epi16 ( t [ 10 ] , t [ 13 ] ) ;\n v [ 0 ] = _mm_madd_epi16 ( u [ 0 ] , k__cospi_p16_p16 ) ;\n v [ 1 ] = _mm_madd_epi16 ( u [ 1 ] , k__cospi_p16_p16 ) ;\n v [ 2 ] = _mm_madd_epi16 ( u [ 0 ] , k__cospi_p16_m16 ) ;\n v [ 3 ] = _mm_madd_epi16 ( u [ 1 ] , k__cospi_p16_m16 ) ;\n v [ 4 ] = _mm_madd_epi16 ( u [ 2 ] , k__cospi_p24_m08 ) ;\n v [ 5 ] = _mm_madd_epi16 ( u [ 3 ] , k__cospi_p24_m08 ) ;\n v [ 6 ] = _mm_madd_epi16 ( u [ 2 ] , k__cospi_p08_p24 ) ;\n v [ 7 ] = _mm_madd_epi16 ( u [ 3 ] , k__cospi_p08_p24 ) ;\n v [ 8 ] = _mm_madd_epi16 ( u [ 4 ] , k__cospi_m08_p24 ) ;\n v [ 9 ] = _mm_madd_epi16 ( u [ 5 ] , k__cospi_m08_p24 ) ;\n v [ 10 ] = _mm_madd_epi16 ( u [ 4 ] , k__cospi_p24_p08 ) ;\n v [ 11 ] = _mm_madd_epi16 ( u [ 5 ] , k__cospi_p24_p08 ) ;\n v [ 12 ] = _mm_madd_epi16 ( u [ 6 ] , k__cospi_m24_m08 ) ;\n v [ 13 ] = _mm_madd_epi16 ( u [ 7 ] , k__cospi_m24_m08 ) ;\n v [ 14 ] = _mm_madd_epi16 ( u [ 6 ] , k__cospi_m08_p24 ) ;\n v [ 15 ] = _mm_madd_epi16 ( u [ 7 ] , k__cospi_m08_p24 ) ;\n u [ 0 ] = _mm_add_epi32 ( v [ 0 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 1 ] = _mm_add_epi32 ( v [ 1 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 2 ] = _mm_add_epi32 ( v [ 2 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 3 ] = _mm_add_epi32 ( v [ 3 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 4 ] = _mm_add_epi32 ( v [ 4 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 5 ] = _mm_add_epi32 ( v [ 5 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 6 ] = _mm_add_epi32 ( v [ 6 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 7 ] = _mm_add_epi32 ( v [ 7 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 8 ] = _mm_add_epi32 ( v [ 8 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 9 ] = _mm_add_epi32 ( v [ 9 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 10 ] = _mm_add_epi32 ( v [ 10 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 11 ] = _mm_add_epi32 ( v [ 11 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 12 ] = _mm_add_epi32 ( v [ 12 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 13 ] = _mm_add_epi32 ( v [ 13 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 14 ] = _mm_add_epi32 ( v [ 14 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 15 ] = _mm_add_epi32 ( v [ 15 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 0 ] = _mm_srai_epi32 ( u [ 0 ] , DCT_CONST_BITS ) ;\n u [ 1 ] = _mm_srai_epi32 ( u [ 1 ] , DCT_CONST_BITS ) ;\n u [ 2 ] = _mm_srai_epi32 ( u [ 2 ] , DCT_CONST_BITS ) ;\n u [ 3 ] = _mm_srai_epi32 ( u [ 3 ] , DCT_CONST_BITS ) ;\n u [ 4 ] = _mm_srai_epi32 ( u [ 4 ] , DCT_CONST_BITS ) ;\n u [ 5 ] = _mm_srai_epi32 ( u [ 5 ] , DCT_CONST_BITS ) ;\n u [ 6 ] = _mm_srai_epi32 ( u [ 6 ] , DCT_CONST_BITS ) ;\n u [ 7 ] = _mm_srai_epi32 ( u [ 7 ] , DCT_CONST_BITS ) ;\n u [ 8 ] = _mm_srai_epi32 ( u [ 8 ] , DCT_CONST_BITS ) ;\n u [ 9 ] = _mm_srai_epi32 ( u [ 9 ] , DCT_CONST_BITS ) ;\n u [ 10 ] = _mm_srai_epi32 ( u [ 10 ] , DCT_CONST_BITS ) ;\n u [ 11 ] = _mm_srai_epi32 ( u [ 11 ] , DCT_CONST_BITS ) ;\n u [ 12 ] = _mm_srai_epi32 ( u [ 12 ] , DCT_CONST_BITS ) ;\n u [ 13 ] = _mm_srai_epi32 ( u [ 13 ] , DCT_CONST_BITS ) ;\n u [ 14 ] = _mm_srai_epi32 ( u [ 14 ] , DCT_CONST_BITS ) ;\n u [ 15 ] = _mm_srai_epi32 ( u [ 15 ] , DCT_CONST_BITS ) ;\n s [ 0 ] = _mm_packs_epi32 ( u [ 0 ] , u [ 1 ] ) ;\n s [ 1 ] = _mm_packs_epi32 ( u [ 2 ] , u [ 3 ] ) ;\n s [ 2 ] = _mm_packs_epi32 ( u [ 4 ] , u [ 5 ] ) ;\n s [ 3 ] = _mm_packs_epi32 ( u [ 6 ] , u [ 7 ] ) ;\n s [ 4 ] = _mm_add_epi16 ( t [ 4 ] , t [ 5 ] ) ;\n s [ 5 ] = _mm_sub_epi16 ( t [ 4 ] , t [ 5 ] ) ;\n s [ 6 ] = _mm_sub_epi16 ( t [ 7 ] , t [ 6 ] ) ;\n s [ 7 ] = _mm_add_epi16 ( t [ 6 ] , t [ 7 ] ) ;\n s [ 8 ] = t [ 8 ] ;\n s [ 15 ] = t [ 15 ] ;\n s [ 9 ] = _mm_packs_epi32 ( u [ 8 ] , u [ 9 ] ) ;\n s [ 14 ] = _mm_packs_epi32 ( u [ 10 ] , u [ 11 ] ) ;\n s [ 10 ] = _mm_packs_epi32 ( u [ 12 ] , u [ 13 ] ) ;\n s [ 13 ] = _mm_packs_epi32 ( u [ 14 ] , u [ 15 ] ) ;\n s [ 11 ] = t [ 11 ] ;\n s [ 12 ] = t [ 12 ] ;\n t [ 0 ] = _mm_add_epi16 ( s [ 0 ] , s [ 3 ] ) ;\n t [ 1 ] = _mm_add_epi16 ( s [ 1 ] , s [ 2 ] ) ;\n t [ 2 ] = _mm_sub_epi16 ( s [ 1 ] , s [ 2 ] ) ;\n t [ 3 ] = _mm_sub_epi16 ( s [ 0 ] , s [ 3 ] ) ;\n t [ 4 ] = s [ 4 ] ;\n t [ 7 ] = s [ 7 ] ;\n u [ 0 ] = _mm_unpacklo_epi16 ( s [ 5 ] , s [ 6 ] ) ;\n u [ 1 ] = _mm_unpackhi_epi16 ( s [ 5 ] , s [ 6 ] ) ;\n v [ 0 ] = _mm_madd_epi16 ( u [ 0 ] , k__cospi_m16_p16 ) ;\n v [ 1 ] = _mm_madd_epi16 ( u [ 1 ] , k__cospi_m16_p16 ) ;\n v [ 2 ] = _mm_madd_epi16 ( u [ 0 ] , k__cospi_p16_p16 ) ;\n v [ 3 ] = _mm_madd_epi16 ( u [ 1 ] , k__cospi_p16_p16 ) ;\n u [ 0 ] = _mm_add_epi32 ( v [ 0 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 1 ] = _mm_add_epi32 ( v [ 1 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 2 ] = _mm_add_epi32 ( v [ 2 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 3 ] = _mm_add_epi32 ( v [ 3 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 0 ] = _mm_srai_epi32 ( u [ 0 ] , DCT_CONST_BITS ) ;\n u [ 1 ] = _mm_srai_epi32 ( u [ 1 ] , DCT_CONST_BITS ) ;\n u [ 2 ] = _mm_srai_epi32 ( u [ 2 ] , DCT_CONST_BITS ) ;\n u [ 3 ] = _mm_srai_epi32 ( u [ 3 ] , DCT_CONST_BITS ) ;\n t [ 5 ] = _mm_packs_epi32 ( u [ 0 ] , u [ 1 ] ) ;\n t [ 6 ] = _mm_packs_epi32 ( u [ 2 ] , u [ 3 ] ) ;\n t [ 8 ] = _mm_add_epi16 ( s [ 8 ] , s [ 11 ] ) ;\n t [ 9 ] = _mm_add_epi16 ( s [ 9 ] , s [ 10 ] ) ;\n t [ 10 ] = _mm_sub_epi16 ( s [ 9 ] , s [ 10 ] ) ;\n t [ 11 ] = _mm_sub_epi16 ( s [ 8 ] , s [ 11 ] ) ;\n t [ 12 ] = _mm_sub_epi16 ( s [ 15 ] , s [ 12 ] ) ;\n t [ 13 ] = _mm_sub_epi16 ( s [ 14 ] , s [ 13 ] ) ;\n t [ 14 ] = _mm_add_epi16 ( s [ 13 ] , s [ 14 ] ) ;\n t [ 15 ] = _mm_add_epi16 ( s [ 12 ] , s [ 15 ] ) ;\n s [ 0 ] = _mm_add_epi16 ( t [ 0 ] , t [ 7 ] ) ;\n s [ 1 ] = _mm_add_epi16 ( t [ 1 ] , t [ 6 ] ) ;\n s [ 2 ] = _mm_add_epi16 ( t [ 2 ] , t [ 5 ] ) ;\n s [ 3 ] = _mm_add_epi16 ( t [ 3 ] , t [ 4 ] ) ;\n s [ 4 ] = _mm_sub_epi16 ( t [ 3 ] , t [ 4 ] ) ;\n s [ 5 ] = _mm_sub_epi16 ( t [ 2 ] , t [ 5 ] ) ;\n s [ 6 ] = _mm_sub_epi16 ( t [ 1 ] , t [ 6 ] ) ;\n s [ 7 ] = _mm_sub_epi16 ( t [ 0 ] , t [ 7 ] ) ;\n s [ 8 ] = t [ 8 ] ;\n s [ 9 ] = t [ 9 ] ;\n u [ 0 ] = _mm_unpacklo_epi16 ( t [ 10 ] , t [ 13 ] ) ;\n u [ 1 ] = _mm_unpackhi_epi16 ( t [ 10 ] , t [ 13 ] ) ;\n u [ 2 ] = _mm_unpacklo_epi16 ( t [ 11 ] , t [ 12 ] ) ;\n u [ 3 ] = _mm_unpackhi_epi16 ( t [ 11 ] , t [ 12 ] ) ;\n v [ 0 ] = _mm_madd_epi16 ( u [ 0 ] , k__cospi_m16_p16 ) ;\n v [ 1 ] = _mm_madd_epi16 ( u [ 1 ] , k__cospi_m16_p16 ) ;\n v [ 2 ] = _mm_madd_epi16 ( u [ 0 ] , k__cospi_p16_p16 ) ;\n v [ 3 ] = _mm_madd_epi16 ( u [ 1 ] , k__cospi_p16_p16 ) ;\n v [ 4 ] = _mm_madd_epi16 ( u [ 2 ] , k__cospi_m16_p16 ) ;\n v [ 5 ] = _mm_madd_epi16 ( u [ 3 ] , k__cospi_m16_p16 ) ;\n v [ 6 ] = _mm_madd_epi16 ( u [ 2 ] , k__cospi_p16_p16 ) ;\n v [ 7 ] = _mm_madd_epi16 ( u [ 3 ] , k__cospi_p16_p16 ) ;\n u [ 0 ] = _mm_add_epi32 ( v [ 0 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 1 ] = _mm_add_epi32 ( v [ 1 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 2 ] = _mm_add_epi32 ( v [ 2 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 3 ] = _mm_add_epi32 ( v [ 3 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 4 ] = _mm_add_epi32 ( v [ 4 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 5 ] = _mm_add_epi32 ( v [ 5 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 6 ] = _mm_add_epi32 ( v [ 6 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 7 ] = _mm_add_epi32 ( v [ 7 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 0 ] = _mm_srai_epi32 ( u [ 0 ] , DCT_CONST_BITS ) ;\n u [ 1 ] = _mm_srai_epi32 ( u [ 1 ] , DCT_CONST_BITS ) ;\n u [ 2 ] = _mm_srai_epi32 ( u [ 2 ] , DCT_CONST_BITS ) ;\n u [ 3 ] = _mm_srai_epi32 ( u [ 3 ] , DCT_CONST_BITS ) ;\n u [ 4 ] = _mm_srai_epi32 ( u [ 4 ] , DCT_CONST_BITS ) ;\n u [ 5 ] = _mm_srai_epi32 ( u [ 5 ] , DCT_CONST_BITS ) ;\n u [ 6 ] = _mm_srai_epi32 ( u [ 6 ] , DCT_CONST_BITS ) ;\n u [ 7 ] = _mm_srai_epi32 ( u [ 7 ] , DCT_CONST_BITS ) ;\n s [ 10 ] = _mm_packs_epi32 ( u [ 0 ] , u [ 1 ] ) ;\n s [ 13 ] = _mm_packs_epi32 ( u [ 2 ] , u [ 3 ] ) ;\n s [ 11 ] = _mm_packs_epi32 ( u [ 4 ] , u [ 5 ] ) ;\n s [ 12 ] = _mm_packs_epi32 ( u [ 6 ] , u [ 7 ] ) ;\n s [ 14 ] = t [ 14 ] ;\n s [ 15 ] = t [ 15 ] ;\n in [ 0 ] = _mm_add_epi16 ( s [ 0 ] , s [ 15 ] ) ;\n in [ 1 ] = _mm_add_epi16 ( s [ 1 ] , s [ 14 ] ) ;\n in [ 2 ] = _mm_add_epi16 ( s [ 2 ] , s [ 13 ] ) ;\n in [ 3 ] = _mm_add_epi16 ( s [ 3 ] , s [ 12 ] ) ;\n in [ 4 ] = _mm_add_epi16 ( s [ 4 ] , s [ 11 ] ) ;\n in [ 5 ] = _mm_add_epi16 ( s [ 5 ] , s [ 10 ] ) ;\n in [ 6 ] = _mm_add_epi16 ( s [ 6 ] , s [ 9 ] ) ;\n in [ 7 ] = _mm_add_epi16 ( s [ 7 ] , s [ 8 ] ) ;\n in [ 8 ] = _mm_sub_epi16 ( s [ 7 ] , s [ 8 ] ) ;\n in [ 9 ] = _mm_sub_epi16 ( s [ 6 ] , s [ 9 ] ) ;\n in [ 10 ] = _mm_sub_epi16 ( s [ 5 ] , s [ 10 ] ) ;\n in [ 11 ] = _mm_sub_epi16 ( s [ 4 ] , s [ 11 ] ) ;\n in [ 12 ] = _mm_sub_epi16 ( s [ 3 ] , s [ 12 ] ) ;\n in [ 13 ] = _mm_sub_epi16 ( s [ 2 ] , s [ 13 ] ) ;\n in [ 14 ] = _mm_sub_epi16 ( s [ 1 ] , s [ 14 ] ) ;\n in [ 15 ] = _mm_sub_epi16 ( s [ 0 ] , s [ 15 ] ) ;\n }"}
{"idx": 204, "target": 0, "func": "static inline Quantum GetPixelWriteMask ( const Image * restrict image , const Quantum * restrict pixel ) {\n if ( image -> channel_map [ WriteMaskPixelChannel ] . traits == UndefinedPixelTrait ) return ( ( Quantum ) QuantumRange ) ;\n return ( pixel [ image -> channel_map [ WriteMaskPixelChannel ] . offset ] ) ;\n }"}
{"idx": 205, "target": 0, "func": "static int decodearr ( char * str , int * narr , l_fp * lfparr ) {\n register char * cp , * bp ;\n register l_fp * lfp ;\n char buf [ 60 ] ;\n lfp = lfparr ;\n cp = str ;\n * narr = 0 ;\n while ( * narr < 8 ) {\n while ( isspace ( ( int ) * cp ) ) cp ++ ;\n if ( * cp == '\\0' ) break ;\n bp = buf ;\n while ( ! isspace ( ( int ) * cp ) && * cp != '\\0' ) * bp ++ = * cp ++ ;\n * bp ++ = '\\0' ;\n if ( ! decodetime ( buf , lfp ) ) return 0 ;\n ( * narr ) ++ ;\n lfp ++ ;\n }\n return 1 ;\n }"}
{"idx": 206, "target": 0, "func": "static void chomp3 ( ChannelData * chd , int16_t * output , uint8_t val , int tab_idx ) {\n int16_t current = read_table ( chd , val , tab_idx ) ;\n current = mace_broken_clip_int16 ( current + chd -> level ) ;\n chd -> level = current - ( current >> 3 ) ;\n * output = QT_8S_2_16S ( current ) ;\n }"}
{"idx": 207, "target": 0, "func": "static gcry_err_code_t check_pubkey_algo ( int algorithm , unsigned use ) {\n gcry_err_code_t err = GPG_ERR_NO_ERROR ;\n gcry_pk_spec_t * pubkey ;\n gcry_module_t module ;\n REGISTER_DEFAULT_PUBKEYS ;\n ath_mutex_lock ( & pubkeys_registered_lock ) ;\n module = _gcry_module_lookup_id ( pubkeys_registered , algorithm ) ;\n if ( module ) {\n pubkey = ( gcry_pk_spec_t * ) module -> spec ;\n if ( ( ( use & GCRY_PK_USAGE_SIGN ) && ( ! ( pubkey -> use & GCRY_PK_USAGE_SIGN ) ) ) || ( ( use & GCRY_PK_USAGE_ENCR ) && ( ! ( pubkey -> use & GCRY_PK_USAGE_ENCR ) ) ) ) err = GPG_ERR_WRONG_PUBKEY_ALGO ;\n else if ( module -> flags & FLAG_MODULE_DISABLED ) err = GPG_ERR_PUBKEY_ALGO ;\n _gcry_module_release ( module ) ;\n }\n else err = GPG_ERR_PUBKEY_ALGO ;\n ath_mutex_unlock ( & pubkeys_registered_lock ) ;\n return err ;\n }"}
{"idx": 208, "target": 0, "func": "static void udev_hotplug_event ( struct udev_device * udev_dev ) {\n const char * udev_action ;\n const char * sys_name = NULL ;\n uint8_t busnum = 0 , devaddr = 0 ;\n int detached ;\n int r ;\n do {\n udev_action = device : : udev_device_get_action ( udev_dev ) ;\n if ( ! udev_action ) {\n break ;\n }\n detached = ! strncmp ( udev_action , \"remove\" , 6 ) ;\n r = udev_device_info ( NULL , detached , udev_dev , & busnum , & devaddr , & sys_name ) ;\n if ( LIBUSB_SUCCESS != r ) {\n break ;\n }\n usbi_dbg ( \"udev hotplug event. action: %s.\" , udev_action ) ;\n if ( strncmp ( udev_action , \"add\" , 3 ) == 0 ) {\n linux_hotplug_enumerate ( busnum , devaddr , sys_name ) ;\n }\n else if ( detached ) {\n linux_device_disconnected ( busnum , devaddr , sys_name ) ;\n }\n else {\n usbi_err ( NULL , \"ignoring udev action %s\" , udev_action ) ;\n }\n }\n while ( 0 ) ;\n device : : udev_device_unref ( udev_dev ) ;\n }"}
{"idx": 209, "target": 0, "func": "static gboolean is_reverse_circuit ( guint circuit_id , const iax_call_data * iax_call ) {\n guint i ;\n for ( i = 0 ;\n i < iax_call -> n_reverse_circuit_ids ;\n i ++ ) {\n if ( circuit_id == iax_call -> reverse_circuit_ids [ i ] ) return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 210, "target": 0, "func": "static int dissect_pvfs2_chdirent_request ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n offset = dissect_pvfs_string ( tvb , tree , hf_pvfs_path , offset , NULL ) ;\n offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"new directory handle\" , NULL ) ;\n offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"parent handle\" , NULL ) ;\n offset = dissect_pvfs_fs_id ( tvb , tree , offset ) ;\n offset = dissect_pvfs_time ( tvb , tree , offset , hf_pvfs_parent_atime , hf_pvfs_parent_atime_sec , hf_pvfs_parent_atime_nsec ) ;\n offset = dissect_pvfs_time ( tvb , tree , offset , hf_pvfs_parent_mtime , hf_pvfs_parent_mtime_sec , hf_pvfs_parent_mtime_nsec ) ;\n offset = dissect_pvfs_time ( tvb , tree , offset , hf_pvfs_parent_ctime , hf_pvfs_parent_ctime_sec , hf_pvfs_parent_ctime_nsec ) ;\n return offset ;\n }"}
{"idx": 211, "target": 0, "func": "static void get_last_ber_identifier ( gint8 * ber_class , gboolean * pc , gint32 * tag ) {\n if ( ber_class ) * ber_class = last_class ;\n if ( pc ) * pc = last_pc ;\n if ( tag ) * tag = last_tag ;\n }"}
{"idx": 212, "target": 0, "func": "void appendStringLiteralConn ( PQExpBuffer buf , const char * str , PGconn * conn ) {\n size_t length = strlen ( str ) ;\n if ( strchr ( str , '\\\\' ) != NULL && PQserverVersion ( conn ) >= 80100 ) {\n if ( buf -> len > 0 && buf -> data [ buf -> len - 1 ] != ' ' ) appendPQExpBufferChar ( buf , ' ' ) ;\n appendPQExpBufferChar ( buf , ESCAPE_STRING_SYNTAX ) ;\n appendStringLiteral ( buf , str , PQclientEncoding ( conn ) , false ) ;\n return ;\n }\n if ( ! enlargePQExpBuffer ( buf , 2 * length + 2 ) ) return ;\n appendPQExpBufferChar ( buf , '\\'' ) ;\n buf -> len += PQescapeStringConn ( conn , buf -> data + buf -> len , str , length , NULL ) ;\n appendPQExpBufferChar ( buf , '\\'' ) ;\n }"}
{"idx": 213, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize ) ;\n DECL_PIOCTL ( PGetCacheSize ) ;\n DECL_PIOCTL ( PRemoveCallBack ) ;\n DECL_PIOCTL ( PNewCell ) ;\n DECL_PIOCTL ( PNewAlias ) ;\n DECL_PIOCTL ( PListCells ) ;\n DECL_PIOCTL ( PListAliases ) ;\n DECL_PIOCTL ( PRemoveMount ) ;\n DECL_PIOCTL ( PGetCellStatus )"}
{"idx": 214, "target": 0, "func": "TSReturnCode TSMimeHdrFieldCopyValues ( TSMBuffer dest_bufp , TSMLoc dest_hdr , TSMLoc dest_field , TSMBuffer src_bufp , TSMLoc src_hdr , TSMLoc src_field ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( src_bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_mbuffer ( dest_bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( src_hdr ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( src_hdr ) == TS_SUCCESS ) ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( dest_hdr ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( dest_hdr ) == TS_SUCCESS ) ) ;\n sdk_assert ( sdk_sanity_check_field_handle ( src_field , src_hdr ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_field_handle ( dest_field , dest_hdr ) == TS_SUCCESS ) ;\n if ( ! isWriteable ( dest_bufp ) ) {\n return TS_ERROR ;\n }\n MIMEFieldSDKHandle * s_handle = ( MIMEFieldSDKHandle * ) src_field ;\n MIMEFieldSDKHandle * d_handle = ( MIMEFieldSDKHandle * ) dest_field ;\n HdrHeap * d_heap = ( ( HdrHeapSDKHandle * ) dest_bufp ) -> m_heap ;\n MIMEField * s_field , * d_field ;\n s_field = s_handle -> field_ptr ;\n d_field = d_handle -> field_ptr ;\n mime_field_value_set ( d_heap , d_handle -> mh , d_field , s_field -> m_ptr_value , s_field -> m_len_value , true ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 215, "target": 0, "func": "static krb5_error_code asn1_decode_sequence_of_keys ( krb5_data * in , krb5_key_data * * out , krb5_int16 * n_key_data , krb5_kvno * mkvno ) {\n krb5_error_code err ;\n ldap_seqof_key_data * p ;\n int i ;\n err = kldap_ensure_initialized ( ) ;\n if ( err ) return err ;\n err = accessor . asn1_ldap_decode_sequence_of_keys ( in , & p ) ;\n if ( err ) return err ;\n for ( i = 0 ;\n i < p -> n_key_data ;\n i ++ ) {\n p -> key_data [ i ] . key_data_kvno = p -> kvno ;\n if ( p -> key_data [ i ] . key_data_ver == 0 ) p -> key_data [ i ] . key_data_ver = 2 ;\n }\n * out = p -> key_data ;\n * n_key_data = p -> n_key_data ;\n * mkvno = p -> mkvno ;\n free ( p ) ;\n return 0 ;\n }"}
{"idx": 216, "target": 0, "func": "static void ber_check_value64 ( gint64 value , gint64 min_len , gint64 max_len , asn1_ctx_t * actx , proto_item * item ) {\n if ( ( min_len != - 1 ) && ( value < min_len ) ) {\n expert_add_info_format ( actx -> pinfo , item , & ei_ber_size_constraint_value , \"Size constraint: value too small: %\" G_GINT64_MODIFIER \"d (%\" G_GINT64_MODIFIER \"d .. %\" G_GINT64_MODIFIER \"d)\" , value , min_len , max_len ) ;\n }\n else if ( ( max_len != - 1 ) && ( value > max_len ) ) {\n expert_add_info_format ( actx -> pinfo , item , & ei_ber_size_constraint_value , \"Size constraint: value too big: %\" G_GINT64_MODIFIER \"d (%\" G_GINT64_MODIFIER \"d .. %\" G_GINT64_MODIFIER \"d)\" , value , min_len , max_len ) ;\n }\n }"}
{"idx": 217, "target": 0, "func": "void vp8_optimize_mbuv ( MACROBLOCK * x ) {\n int b ;\n ENTROPY_CONTEXT_PLANES t_above , t_left ;\n ENTROPY_CONTEXT * ta ;\n ENTROPY_CONTEXT * tl ;\n if ( ! x -> e_mbd . above_context ) return ;\n if ( ! x -> e_mbd . left_context ) return ;\n vpx_memcpy ( & t_above , x -> e_mbd . above_context , sizeof ( ENTROPY_CONTEXT_PLANES ) ) ;\n vpx_memcpy ( & t_left , x -> e_mbd . left_context , sizeof ( ENTROPY_CONTEXT_PLANES ) ) ;\n ta = ( ENTROPY_CONTEXT * ) & t_above ;\n tl = ( ENTROPY_CONTEXT * ) & t_left ;\n for ( b = 16 ;\n b < 24 ;\n b ++ ) {\n optimize_b ( x , b , PLANE_TYPE_UV , ta + vp8_block2above [ b ] , tl + vp8_block2left [ b ] ) ;\n }\n }"}
{"idx": 218, "target": 0, "func": "void modsecurity_shutdown ( msc_engine * msce ) {\n if ( msce == NULL ) return ;\n }"}
{"idx": 219, "target": 0, "func": "static PyObject * string_getnewargs ( PyStringObject * v ) {\n return Py_BuildValue ( \"(s#)\" , v -> ob_sval , Py_SIZE ( v ) ) ;\n }"}
{"idx": 220, "target": 0, "func": "static void request_trans_id_set ( struct request * const req , const u16 trans_id ) {\n req -> trans_id = trans_id ;\n * ( ( u16 * ) req -> request ) = htons ( trans_id ) ;\n }"}
{"idx": 221, "target": 0, "func": "static void dtap_cc_cc_est_conf ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_TRUE ;\n ELEM_OPT_TV_SHORT ( 0xd0 , GSM_A_PDU_TYPE_DTAP , DE_REPEAT_IND , \" Repeat indicator\" ) ;\n ELEM_MAND_TLV ( 0x04 , GSM_A_PDU_TYPE_DTAP , DE_BEARER_CAP , \" 1\" , ei_gsm_a_dtap_missing_mandatory_element ) ;\n ELEM_OPT_TLV ( 0x04 , GSM_A_PDU_TYPE_DTAP , DE_BEARER_CAP , \" 2\" ) ;\n ELEM_OPT_TLV ( 0x08 , GSM_A_PDU_TYPE_DTAP , DE_CAUSE , NULL ) ;\n ELEM_OPT_TLV ( 0x40 , GSM_A_PDU_TYPE_DTAP , DE_SUP_CODEC_LIST , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 222, "target": 0, "func": "int mi_repair_parallel ( MI_CHECK * param , register MI_INFO * info , const char * name , int rep_quick , my_bool no_copy_stat ) {\n int got_error ;\n uint i , key , total_key_length , istep ;\n ulong rec_length ;\n ha_rows start_records ;\n my_off_t new_header_length , del ;\n File new_file ;\n MI_SORT_PARAM * sort_param = 0 ;\n MYISAM_SHARE * share = info -> s ;\n ulong * rec_per_key_part ;\n HA_KEYSEG * keyseg ;\n char llbuff [ 22 ] ;\n IO_CACHE new_data_cache ;\n IO_CACHE_SHARE io_share ;\n SORT_INFO sort_info ;\n ulonglong UNINIT_VAR ( key_map ) ;\n pthread_attr_t thr_attr ;\n ulong max_pack_reclength ;\n int error ;\n DBUG_ENTER ( \"mi_repair_parallel\" ) ;\n start_records = info -> state -> records ;\n got_error = 1 ;\n new_file = - 1 ;\n new_header_length = ( param -> testflag & T_UNPACK ) ? 0 : share -> pack . header_length ;\n if ( ! ( param -> testflag & T_SILENT ) ) {\n printf ( \"- parallel recovering (with sort) MyISAM-table '%s'\\n\" , name ) ;\n printf ( \"Data records: %s\\n\" , llstr ( start_records , llbuff ) ) ;\n }\n param -> testflag |= T_REP ;\n if ( info -> s -> options & ( HA_OPTION_CHECKSUM | HA_OPTION_COMPRESS_RECORD ) ) param -> testflag |= T_CALC_CHECKSUM ;\n DBUG_PRINT ( \"info\" , ( \"is quick repair: %d\" , rep_quick ) ) ;\n bzero ( ( char * ) & sort_info , sizeof ( sort_info ) ) ;\n mysql_mutex_init ( mi_key_mutex_MI_SORT_INFO_mutex , & sort_info . mutex , MY_MUTEX_INIT_FAST ) ;\n mysql_cond_init ( mi_key_cond_MI_SORT_INFO_cond , & sort_info . cond , 0 ) ;\n mysql_mutex_init ( mi_key_mutex_MI_CHECK_print_msg , & param -> print_msg_mutex , MY_MUTEX_INIT_FAST ) ;\n param -> need_print_msg_lock = 1 ;\n if ( ! ( sort_info . key_block = alloc_key_blocks ( param , ( uint ) param -> sort_key_blocks , share -> base . max_key_block_length ) ) || init_io_cache ( & param -> read_cache , info -> dfile , ( uint ) param -> read_buffer_length , READ_CACHE , share -> pack . header_length , 1 , MYF ( MY_WME ) ) || ( ! rep_quick && ( init_io_cache ( & info -> rec_cache , info -> dfile , ( uint ) param -> write_buffer_length , WRITE_CACHE , new_header_length , 1 , MYF ( MY_WME | MY_WAIT_IF_FULL ) & param -> myf_rw ) || init_io_cache ( & new_data_cache , - 1 , ( uint ) param -> write_buffer_length , READ_CACHE , new_header_length , 1 , MYF ( MY_WME | MY_DONT_CHECK_FILESIZE ) ) ) ) ) goto err ;\n sort_info . key_block_end = sort_info . key_block + param -> sort_key_blocks ;\n info -> opt_flag |= WRITE_CACHE_USED ;\n info -> rec_cache . file = info -> dfile ;\n if ( ! rep_quick ) {\n if ( ( new_file = mysql_file_create ( mi_key_file_datatmp , fn_format ( param -> temp_filename , share -> data_file_name , \"\" , DATA_TMP_EXT , 2 + 4 ) , 0 , param -> tmpfile_createflag , MYF ( 0 ) ) ) < 0 ) {\n mi_check_print_error ( param , \"Can't create new tempfile: '%s'\" , param -> temp_filename ) ;\n goto err ;\n }\n if ( new_header_length && filecopy ( param , new_file , info -> dfile , 0L , new_header_length , \"datafile-header\" ) ) goto err ;\n if ( param -> testflag & T_UNPACK ) {\n share -> options &= ~ HA_OPTION_COMPRESS_RECORD ;\n mi_int2store ( share -> state . header . options , share -> options ) ;\n }\n share -> state . dellink = HA_OFFSET_ERROR ;\n info -> rec_cache . file = new_file ;\n }\n info -> update = ( short ) ( HA_STATE_CHANGED | HA_STATE_ROW_CHANGED ) ;\n mi_drop_all_indexes ( param , info , FALSE ) ;\n key_map = share -> state . key_map ;\n if ( param -> testflag & T_CREATE_MISSING_KEYS ) {\n key_map = ~ key_map ;\n }\n sort_info . info = info ;\n sort_info . param = param ;\n set_data_file_type ( & sort_info , share ) ;\n sort_info . dupp = 0 ;\n sort_info . buff = 0 ;\n param -> read_cache . end_of_file = sort_info . filelength = mysql_file_seek ( param -> read_cache . file , 0L , MY_SEEK_END , MYF ( 0 ) ) ;\n if ( share -> data_file_type == DYNAMIC_RECORD ) rec_length = max ( share -> base . min_pack_length + 1 , share -> base . min_block_length ) ;\n else if ( share -> data_file_type == COMPRESSED_RECORD ) rec_length = share -> base . min_block_length ;\n else rec_length = share -> base . pack_reclength ;\n sort_info . max_records = ( ( param -> testflag & T_CREATE_MISSING_KEYS ) ? info -> state -> records + 1 : ( ha_rows ) ( sort_info . filelength / rec_length + 1 ) ) ;\n del = info -> state -> del ;\n param -> glob_crc = 0 ;\n max_pack_reclength = share -> base . pack_reclength ;\n if ( share -> options & HA_OPTION_COMPRESS_RECORD ) set_if_bigger ( max_pack_reclength , share -> max_pack_length ) ;\n if ( ! ( sort_param = ( MI_SORT_PARAM * ) my_malloc ( ( uint ) share -> base . keys * ( sizeof ( MI_SORT_PARAM ) + max_pack_reclength ) , MYF ( MY_ZEROFILL ) ) ) ) {\n mi_check_print_error ( param , \"Not enough memory for key!\" ) ;\n goto err ;\n }\n total_key_length = 0 ;\n rec_per_key_part = param -> rec_per_key_part ;\n info -> state -> records = info -> state -> del = share -> state . split = 0 ;\n info -> state -> empty = 0 ;\n for ( i = key = 0 , istep = 1 ;\n key < share -> base . keys ;\n rec_per_key_part += sort_param [ i ] . keyinfo -> keysegs , i += istep , key ++ ) {\n sort_param [ i ] . key = key ;\n sort_param [ i ] . keyinfo = share -> keyinfo + key ;\n sort_param [ i ] . seg = sort_param [ i ] . keyinfo -> seg ;\n if ( ! mi_is_key_active ( key_map , key ) ) {\n memcpy ( ( char * ) rec_per_key_part , ( char * ) ( share -> state . rec_per_key_part + ( uint ) ( rec_per_key_part - param -> rec_per_key_part ) ) , sort_param [ i ] . keyinfo -> keysegs * sizeof ( * rec_per_key_part ) ) ;\n istep = 0 ;\n continue ;\n }\n istep = 1 ;\n if ( ( ! ( param -> testflag & T_SILENT ) ) ) printf ( \"- Fixing index %d\\n\" , key + 1 ) ;\n if ( sort_param [ i ] . keyinfo -> flag & HA_FULLTEXT ) {\n sort_param [ i ] . key_read = sort_ft_key_read ;\n sort_param [ i ] . key_write = sort_ft_key_write ;\n }\n else {\n sort_param [ i ] . key_read = sort_key_read ;\n sort_param [ i ] . key_write = sort_key_write ;\n }\n sort_param [ i ] . key_cmp = sort_key_cmp ;\n sort_param [ i ] . lock_in_memory = lock_memory ;\n sort_param [ i ] . tmpdir = param -> tmpdir ;\n sort_param [ i ] . sort_info = & sort_info ;\n sort_param [ i ] . master = 0 ;\n sort_param [ i ] . fix_datafile = 0 ;\n sort_param [ i ] . calc_checksum = 0 ;\n sort_param [ i ] . filepos = new_header_length ;\n sort_param [ i ] . max_pos = sort_param [ i ] . pos = share -> pack . header_length ;\n sort_param [ i ] . record = ( ( ( uchar * ) ( sort_param + share -> base . keys ) ) + ( max_pack_reclength * i ) ) ;\n if ( ! mi_alloc_rec_buff ( info , - 1 , & sort_param [ i ] . rec_buff ) ) {\n mi_check_print_error ( param , \"Not enough memory!\" ) ;\n goto err ;\n }\n sort_param [ i ] . key_length = share -> rec_reflength ;\n for ( keyseg = sort_param [ i ] . seg ;\n keyseg -> type != HA_KEYTYPE_END ;\n keyseg ++ ) {\n sort_param [ i ] . key_length += keyseg -> length ;\n if ( keyseg -> flag & HA_SPACE_PACK ) sort_param [ i ] . key_length += get_pack_length ( keyseg -> length ) ;\n if ( keyseg -> flag & ( HA_BLOB_PART | HA_VAR_LENGTH_PART ) ) sort_param [ i ] . key_length += 2 + test ( keyseg -> length >= 127 ) ;\n if ( keyseg -> flag & HA_NULL_PART ) sort_param [ i ] . key_length ++ ;\n }\n total_key_length += sort_param [ i ] . key_length ;\n if ( sort_param [ i ] . keyinfo -> flag & HA_FULLTEXT ) {\n uint ft_max_word_len_for_sort = FT_MAX_WORD_LEN_FOR_SORT * sort_param [ i ] . keyinfo -> seg -> charset -> mbmaxlen ;\n sort_param [ i ] . key_length += ft_max_word_len_for_sort - HA_FT_MAXBYTELEN ;\n init_alloc_root ( & sort_param [ i ] . wordroot , FTPARSER_MEMROOT_ALLOC_SIZE , 0 ) ;\n }\n }\n sort_info . total_keys = i ;\n sort_param [ 0 ] . master = 1 ;\n sort_param [ 0 ] . fix_datafile = ( my_bool ) ( ! rep_quick ) ;\n sort_param [ 0 ] . calc_checksum = test ( param -> testflag & T_CALC_CHECKSUM ) ;\n if ( ! ftparser_alloc_param ( info ) ) goto err ;\n sort_info . got_error = 0 ;\n mysql_mutex_lock ( & sort_info . mutex ) ;\n if ( i > 1 ) {\n if ( rep_quick ) init_io_cache_share ( & param -> read_cache , & io_share , NULL , i ) ;\n else init_io_cache_share ( & new_data_cache , & io_share , & info -> rec_cache , i ) ;\n }\n else io_share . total_threads = 0 ;\n ( void ) pthread_attr_init ( & thr_attr ) ;\n ( void ) pthread_attr_setdetachstate ( & thr_attr , PTHREAD_CREATE_DETACHED ) ;\n for ( i = 0 ;\n i < sort_info . total_keys ;\n i ++ ) {\n sort_param [ i ] . read_cache = ( ( rep_quick || ! i ) ? param -> read_cache : new_data_cache ) ;\n DBUG_PRINT ( \"io_cache_share\" , ( \"thread: %u read_cache: 0x%lx\" , i , ( long ) & sort_param [ i ] . read_cache ) ) ;\n sort_param [ i ] . sortbuff_size = # ifndef USING_SECOND_APPROACH param -> sort_buffer_length / sort_info . total_keys ;\n # else param -> sort_buffer_length * sort_param [ i ] . key_length / total_key_length ;\n # endif if ( ( error = mysql_thread_create ( mi_key_thread_find_all_keys , & sort_param [ i ] . thr , & thr_attr , thr_find_all_keys , ( void * ) ( sort_param + i ) ) ) ) {\n mi_check_print_error ( param , \"Cannot start a repair thread (errno= %d)\" , error ) ;\n if ( io_share . total_threads ) remove_io_thread ( & sort_param [ i ] . read_cache ) ;\n DBUG_PRINT ( \"error\" , ( \"Cannot start a repair thread\" ) ) ;\n sort_info . got_error = 1 ;\n }\n else sort_info . threads_running ++ ;\n }\n ( void ) pthread_attr_destroy ( & thr_attr ) ;\n while ( sort_info . threads_running ) mysql_cond_wait ( & sort_info . cond , & sort_info . mutex ) ;\n mysql_mutex_unlock ( & sort_info . mutex ) ;\n if ( ( got_error = thr_write_keys ( sort_param ) ) ) {\n param -> retry_repair = 1 ;\n goto err ;\n }\n got_error = 1 ;\n if ( sort_param [ 0 ] . fix_datafile ) {\n if ( write_data_suffix ( & sort_info , 1 ) || end_io_cache ( & info -> rec_cache ) ) goto err ;\n if ( param -> testflag & T_SAFE_REPAIR ) {\n if ( info -> state -> records + 1 < start_records ) {\n info -> state -> records = start_records ;\n goto err ;\n }\n }\n share -> state . state . data_file_length = info -> state -> data_file_length = sort_param -> filepos ;\n share -> state . version = ( ulong ) time ( ( time_t * ) 0 ) ;\n mysql_file_close ( info -> dfile , MYF ( 0 ) ) ;\n info -> dfile = new_file ;\n share -> data_file_type = sort_info . new_data_file_type ;\n share -> pack . header_length = ( ulong ) new_header_length ;\n }\n else info -> state -> data_file_length = sort_param -> max_pos ;\n if ( rep_quick && del + sort_info . dupp != info -> state -> del ) {\n mi_check_print_error ( param , \"Couldn't fix table with quick recovery: Found wrong number of deleted records\" ) ;\n mi_check_print_error ( param , \"Run recovery again without -q\" ) ;\n param -> retry_repair = 1 ;\n param -> testflag |= T_RETRY_WITHOUT_QUICK ;\n goto err ;\n }\n if ( rep_quick & T_FORCE_UNIQUENESS ) {\n my_off_t skr = info -> state -> data_file_length + ( share -> options & HA_OPTION_COMPRESS_RECORD ? MEMMAP_EXTRA_MARGIN : 0 ) ;\n # ifdef USE_RELOC if ( share -> data_file_type == STATIC_RECORD && skr < share -> base . reloc * share -> base . min_pack_length ) skr = share -> base . reloc * share -> base . min_pack_length ;\n # endif if ( skr != sort_info . filelength ) if ( mysql_file_chsize ( info -> dfile , skr , 0 , MYF ( 0 ) ) ) mi_check_print_warning ( param , \"Can't change size of datafile, error: %d\" , my_errno ) ;\n }\n if ( param -> testflag & T_CALC_CHECKSUM ) info -> state -> checksum = param -> glob_crc ;\n if ( mysql_file_chsize ( share -> kfile , info -> state -> key_file_length , 0 , MYF ( 0 ) ) ) mi_check_print_warning ( param , \"Can't change size of indexfile, error: %d\" , my_errno ) ;\n if ( ! ( param -> testflag & T_SILENT ) ) {\n if ( start_records != info -> state -> records ) printf ( \"Data records: %s\\n\" , llstr ( info -> state -> records , llbuff ) ) ;\n if ( sort_info . dupp ) mi_check_print_warning ( param , \"%s records have been removed\" , llstr ( sort_info . dupp , llbuff ) ) ;\n }\n got_error = 0 ;\n if ( & share -> state . state != info -> state ) memcpy ( & share -> state . state , info -> state , sizeof ( * info -> state ) ) ;\n err : got_error |= flush_blocks ( param , share -> key_cache , share -> kfile ) ;\n ( void ) end_io_cache ( & info -> rec_cache ) ;\n if ( ! rep_quick ) ( void ) end_io_cache ( & new_data_cache ) ;\n if ( ! got_error ) {\n if ( new_file >= 0 ) {\n myf flags = 0 ;\n if ( param -> testflag & T_BACKUP_DATA ) flags |= MY_REDEL_MAKE_BACKUP ;\n if ( no_copy_stat ) flags |= MY_REDEL_NO_COPY_STAT ;\n mysql_file_close ( new_file , MYF ( 0 ) ) ;\n info -> dfile = new_file = - 1 ;\n if ( change_to_newfile ( share -> data_file_name , MI_NAME_DEXT , DATA_TMP_EXT , flags ) || mi_open_datafile ( info , share , name , - 1 ) ) got_error = 1 ;\n }\n }\n if ( got_error ) {\n if ( ! param -> error_printed ) mi_check_print_error ( param , \"%d when fixing table\" , my_errno ) ;\n if ( new_file >= 0 ) {\n ( void ) mysql_file_close ( new_file , MYF ( 0 ) ) ;\n ( void ) mysql_file_delete ( mi_key_file_datatmp , param -> temp_filename , MYF ( MY_WME ) ) ;\n if ( info -> dfile == new_file ) if ( unlikely ( mi_open_datafile ( info , share , name , - 1 ) ) ) param -> retry_repair = 0 ;\n }\n mi_mark_crashed_on_repair ( info ) ;\n }\n else if ( key_map == share -> state . key_map ) share -> state . changed &= ~ STATE_NOT_OPTIMIZED_KEYS ;\n share -> state . changed |= STATE_NOT_SORTED_PAGES ;\n mysql_cond_destroy ( & sort_info . cond ) ;\n mysql_mutex_destroy ( & sort_info . mutex ) ;\n mysql_mutex_destroy ( & param -> print_msg_mutex ) ;\n param -> need_print_msg_lock = 0 ;\n my_free ( sort_info . ft_buf ) ;\n my_free ( sort_info . key_block ) ;\n my_free ( sort_param ) ;\n my_free ( sort_info . buff ) ;\n ( void ) end_io_cache ( & param -> read_cache ) ;\n info -> opt_flag &= ~ ( READ_CACHE_USED | WRITE_CACHE_USED ) ;\n if ( ! got_error && ( param -> testflag & T_UNPACK ) ) {\n share -> state . header . options [ 0 ] &= ( uchar ) ~ HA_OPTION_COMPRESS_RECORD ;\n share -> pack . header_length = 0 ;\n }\n DBUG_RETURN ( got_error ) ;\n }"}
{"idx": 223, "target": 0, "func": "int nntp_check_msgid ( struct Context * ctx , const char * msgid ) {\n struct NntpData * nntp_data = ctx -> data ;\n char buf [ LONG_STRING ] ;\n FILE * fp = mutt_file_mkstemp ( ) ;\n if ( ! fp ) {\n mutt_perror ( \"mutt_file_mkstemp() failed!\" ) ;\n return - 1 ;\n }\n snprintf ( buf , sizeof ( buf ) , \"HEAD %s\\r\\n\" , msgid ) ;\n int rc = nntp_fetch_lines ( nntp_data , buf , sizeof ( buf ) , NULL , fetch_tempfile , fp ) ;\n if ( rc ) {\n mutt_file_fclose ( & fp ) ;\n if ( rc < 0 ) return - 1 ;\n if ( mutt_str_strncmp ( \"430\" , buf , 3 ) == 0 ) return 1 ;\n mutt_error ( \"HEAD: %s\" , buf ) ;\n return - 1 ;\n }\n if ( ctx -> msgcount == ctx -> hdrmax ) mx_alloc_memory ( ctx ) ;\n struct Header * hdr = ctx -> hdrs [ ctx -> msgcount ] = mutt_header_new ( ) ;\n hdr -> data = mutt_mem_calloc ( 1 , sizeof ( struct NntpHeaderData ) ) ;\n hdr -> env = mutt_rfc822_read_header ( fp , hdr , 0 , 0 ) ;\n mutt_file_fclose ( & fp ) ;\n if ( hdr -> env -> xref ) nntp_parse_xref ( ctx , hdr ) ;\n else {\n snprintf ( buf , sizeof ( buf ) , \"STAT %s\\r\\n\" , msgid ) ;\n if ( nntp_query ( nntp_data , buf , sizeof ( buf ) ) < 0 ) {\n mutt_header_free ( & hdr ) ;\n return - 1 ;\n }\n sscanf ( buf + 4 , ANUM , & NHDR ( hdr ) -> article_num ) ;\n }\n hdr -> read = false ;\n hdr -> old = false ;\n hdr -> deleted = false ;\n hdr -> changed = true ;\n hdr -> received = hdr -> date_sent ;\n hdr -> index = ctx -> msgcount ++ ;\n mx_update_context ( ctx , 1 ) ;\n return 0 ;\n }"}
{"idx": 224, "target": 0, "func": "relpRetVal relpTcpSetCACert ( relpTcp_t * pThis , char * cert ) {\n ENTER_RELPFUNC ;\n RELPOBJ_assert ( pThis , Tcp ) ;\n free ( pThis -> caCertFile ) ;\n if ( cert == NULL ) {\n pThis -> caCertFile = NULL ;\n }\n else {\n if ( ( pThis -> caCertFile = strdup ( cert ) ) == NULL ) ABORT_FINALIZE ( RELP_RET_OUT_OF_MEMORY ) ;\n }\n finalize_it : LEAVE_RELPFUNC ;\n }"}
{"idx": 225, "target": 0, "func": "static void _selectTablespace ( ArchiveHandle * AH , const char * tablespace ) {\n RestoreOptions * ropt = AH -> public . ropt ;\n PQExpBuffer qry ;\n const char * want , * have ;\n if ( ropt -> noTablespace ) return ;\n have = AH -> currTablespace ;\n want = tablespace ;\n if ( ! want ) return ;\n if ( have && strcmp ( want , have ) == 0 ) return ;\n qry = createPQExpBuffer ( ) ;\n if ( strcmp ( want , \"\" ) == 0 ) {\n appendPQExpBufferStr ( qry , \"SET default_tablespace = ''\" ) ;\n }\n else {\n appendPQExpBuffer ( qry , \"SET default_tablespace = %s\" , fmtId ( want ) ) ;\n }\n if ( RestoringToDB ( AH ) ) {\n PGresult * res ;\n res = PQexec ( AH -> connection , qry -> data ) ;\n if ( ! res || PQresultStatus ( res ) != PGRES_COMMAND_OK ) warn_or_exit_horribly ( AH , modulename , \"could not set default_tablespace to %s: %s\" , fmtId ( want ) , PQerrorMessage ( AH -> connection ) ) ;\n PQclear ( res ) ;\n }\n else ahprintf ( AH , \"%s;\n\\n\\n\" , qry -> data ) ;\n if ( AH -> currTablespace ) free ( AH -> currTablespace ) ;\n AH -> currTablespace = pg_strdup ( want ) ;\n destroyPQExpBuffer ( qry ) ;\n }"}
{"idx": 226, "target": 0, "func": "static void join_print ( u_char * text , size_t len , struct ip_addr * L3_src ) {\n int ret ;\n if ( GBL_OPTIONS -> regex && regexec ( GBL_OPTIONS -> regex , text , 0 , NULL , 0 ) != 0 ) {\n return ;\n }\n SAFE_REALLOC ( dispbuf , hex_len ( len ) * sizeof ( u_char ) + 1 ) ;\n ret = GBL_FORMAT ( text , len , dispbuf ) ;\n dispbuf [ ret ] = 0 ;\n if ( ! ip_addr_cmp ( L3_src , & curr_conn -> L3_addr1 ) ) gtkui_data_print ( 3 , dispbuf , 1 ) ;\n else gtkui_data_print ( 3 , dispbuf , 2 ) ;\n }"}
{"idx": 227, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( CrossOriginXHR , NoFileAccess ) {\n ASSERT_TRUE ( RunExtensionTestNoFileAccess ( \"cross_origin_xhro_file_access\" ) ) << message_ ;\n }"}
{"idx": 228, "target": 0, "func": "static int ws_snd_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n int in_size , out_size , ret ;\n int sample = 128 ;\n uint8_t * samples ;\n uint8_t * samples_end ;\n if ( ! buf_size ) return 0 ;\n if ( buf_size < 4 ) {\n av_log ( avctx , AV_LOG_ERROR , \"packet is too small\\n\" ) ;\n return AVERROR ( EINVAL ) ;\n }\n out_size = AV_RL16 ( & buf [ 0 ] ) ;\n in_size = AV_RL16 ( & buf [ 2 ] ) ;\n buf += 4 ;\n if ( in_size > buf_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"Frame data is larger than input buffer\\n\" ) ;\n return - 1 ;\n }\n frame -> nb_samples = out_size ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n samples = frame -> data [ 0 ] ;\n samples_end = samples + out_size ;\n if ( in_size == out_size ) {\n memcpy ( samples , buf , out_size ) ;\n * got_frame_ptr = 1 ;\n return buf_size ;\n }\n while ( samples < samples_end && buf - avpkt -> data < buf_size ) {\n int code , smp , size ;\n uint8_t count ;\n code = * buf >> 6 ;\n count = * buf & 0x3F ;\n buf ++ ;\n switch ( code ) {\n case 0 : smp = 4 * ( count + 1 ) ;\n break ;\n case 1 : smp = 2 * ( count + 1 ) ;\n break ;\n case 2 : smp = ( count & 0x20 ) ? 1 : count + 1 ;\n break ;\n default : smp = count + 1 ;\n break ;\n }\n if ( samples_end - samples < smp ) break ;\n size = ( ( code == 2 && ( count & 0x20 ) ) || code == 3 ) ? 0 : count + 1 ;\n if ( ( buf - avpkt -> data ) + size > buf_size ) break ;\n switch ( code ) {\n case 0 : for ( count ++ ;\n count > 0 ;\n count -- ) {\n code = * buf ++ ;\n sample += ( code & 0x3 ) - 2 ;\n sample = av_clip_uint8 ( sample ) ;\n * samples ++ = sample ;\n sample += ( ( code >> 2 ) & 0x3 ) - 2 ;\n sample = av_clip_uint8 ( sample ) ;\n * samples ++ = sample ;\n sample += ( ( code >> 4 ) & 0x3 ) - 2 ;\n sample = av_clip_uint8 ( sample ) ;\n * samples ++ = sample ;\n sample += ( code >> 6 ) - 2 ;\n sample = av_clip_uint8 ( sample ) ;\n * samples ++ = sample ;\n }\n break ;\n case 1 : for ( count ++ ;\n count > 0 ;\n count -- ) {\n code = * buf ++ ;\n sample += ws_adpcm_4bit [ code & 0xF ] ;\n sample = av_clip_uint8 ( sample ) ;\n * samples ++ = sample ;\n sample += ws_adpcm_4bit [ code >> 4 ] ;\n sample = av_clip_uint8 ( sample ) ;\n * samples ++ = sample ;\n }\n break ;\n case 2 : if ( count & 0x20 ) {\n int8_t t ;\n t = count ;\n t <<= 3 ;\n sample += t >> 3 ;\n sample = av_clip_uint8 ( sample ) ;\n * samples ++ = sample ;\n }\n else {\n memcpy ( samples , buf , smp ) ;\n samples += smp ;\n buf += smp ;\n sample = buf [ - 1 ] ;\n }\n break ;\n default : memset ( samples , sample , smp ) ;\n samples += smp ;\n }\n }\n frame -> nb_samples = samples - frame -> data [ 0 ] ;\n * got_frame_ptr = 1 ;\n return buf_size ;\n }"}
{"idx": 229, "target": 0, "func": "static void cpu_get_fp80 ( uint64_t * pmant , uint16_t * pexp , floatx80 f ) {\n CPU_LDoubleU temp ;\n temp . d = f ;\n * pmant = temp . l . lower ;\n * pexp = temp . l . upper ;\n }"}
{"idx": 230, "target": 0, "func": "static MagickBooleanType IsGIF ( const unsigned char * magick , const size_t length ) {\n if ( length < 4 ) return ( MagickFalse ) ;\n if ( LocaleNCompare ( ( char * ) magick , \"GIF8\" , 4 ) == 0 ) return ( MagickTrue ) ;\n return ( MagickFalse ) ;\n }"}
{"idx": 231, "target": 0, "func": "static double convert_one_bytea_to_scalar ( unsigned char * value , int valuelen , int rangelo , int rangehi ) {\n double num , denom , base ;\n if ( valuelen <= 0 ) return 0.0 ;\n if ( valuelen > 10 ) valuelen = 10 ;\n base = rangehi - rangelo + 1 ;\n num = 0.0 ;\n denom = base ;\n while ( valuelen -- > 0 ) {\n int ch = * value ++ ;\n if ( ch < rangelo ) ch = rangelo - 1 ;\n else if ( ch > rangehi ) ch = rangehi + 1 ;\n num += ( ( double ) ( ch - rangelo ) ) / denom ;\n denom *= base ;\n }\n return num ;\n }"}
{"idx": 232, "target": 0, "func": "static void config_ttl ( config_tree * ptree ) {\n int i = 0 ;\n int_node * curr_ttl ;\n curr_ttl = HEAD_PFIFO ( ptree -> ttl ) ;\n for ( ;\n curr_ttl != NULL ;\n curr_ttl = curr_ttl -> link ) {\n if ( i < COUNTOF ( sys_ttl ) ) sys_ttl [ i ++ ] = ( u_char ) curr_ttl -> i ;\n else msyslog ( LOG_INFO , \"ttl: Number of TTL entries exceeds %lu. Ignoring TTL %d...\" , ( u_long ) COUNTOF ( sys_ttl ) , curr_ttl -> i ) ;\n }\n sys_ttlmax = i - 1 ;\n }"}
{"idx": 233, "target": 1, "func": "const mbfl_encoding * mbfl_encoding_detector_judge2 ( mbfl_encoding_detector * identd ) {\n mbfl_identify_filter * filter ;\n const mbfl_encoding * encoding = NULL ;\n int n ;\n if ( identd != NULL ) {\n n = identd -> filter_list_size - 1 ;\n while ( n >= 0 ) {\n filter = identd -> filter_list [ n ] ;\n if ( ! filter -> flag ) {\n if ( ! identd -> strict || ! filter -> status ) {\n encoding = filter -> encoding ;\n }\n }\n n -- ;\n }\n if ( ! encoding ) {\n n = identd -> filter_list_size - 1 ;\n while ( n >= 0 ) {\n filter = identd -> filter_list [ n ] ;\n if ( ! filter -> flag ) {\n encoding = filter -> encoding ;\n }\n n -- ;\n }\n }\n }\n return encoding ;\n }"}
{"idx": 234, "target": 0, "func": "static uint32_t cpuid_entry_get_reg ( struct kvm_cpuid_entry2 * entry , int reg ) {\n uint32_t ret = 0 ;\n switch ( reg ) {\n case R_EAX : ret = entry -> eax ;\n break ;\n case R_EBX : ret = entry -> ebx ;\n break ;\n case R_ECX : ret = entry -> ecx ;\n break ;\n case R_EDX : ret = entry -> edx ;\n break ;\n }\n return ret ;\n }"}
{"idx": 235, "target": 0, "func": "EXCLUSIVE_REGRESSION_TEST ( SDK_API_HttpAltInfo ) ( RegressionTest * test , int , int * pstatus ) {\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n TSCont cont = TSContCreate ( altinfo_hook_handler , TSMutexCreate ( ) ) ;\n if ( cont == nullptr ) {\n SDK_RPRINT ( test , \"TSHttpSsn\" , \"TestCase1\" , TC_FAIL , \"Unable to create Continuation.\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n return ;\n }\n TSHttpHookAdd ( TS_HTTP_READ_REQUEST_HDR_HOOK , cont ) ;\n AltInfoTestData * socktest = ( AltInfoTestData * ) TSmalloc ( sizeof ( AltInfoTestData ) ) ;\n socktest -> test = test ;\n socktest -> pstatus = pstatus ;\n socktest -> test_passed_txn_alt_info_client_req_get = true ;\n socktest -> test_passed_txn_alt_info_cached_req_get = true ;\n socktest -> test_passed_txn_alt_info_cached_resp_get = true ;\n socktest -> test_passed_txn_alt_info_quality_set = true ;\n socktest -> run_at_least_once = false ;\n socktest -> first_time = true ;\n socktest -> magic = MAGIC_ALIVE ;\n TSContDataSet ( cont , socktest ) ;\n socktest -> os = synserver_create ( SYNSERVER_LISTEN_PORT ) ;\n synserver_start ( socktest -> os ) ;\n socktest -> browser1 = synclient_txn_create ( ) ;\n socktest -> browser2 = synclient_txn_create ( ) ;\n socktest -> browser3 = synclient_txn_create ( ) ;\n socktest -> request1 = generate_request ( 6 ) ;\n socktest -> request2 = generate_request ( 7 ) ;\n socktest -> request3 = generate_request ( 8 ) ;\n synclient_txn_send_request ( socktest -> browser1 , socktest -> request1 ) ;\n synclient_txn_send_request ( socktest -> browser2 , socktest -> request2 ) ;\n TSContSchedule ( cont , 25 , TS_THREAD_POOL_DEFAULT ) ;\n return ;\n }"}
{"idx": 236, "target": 0, "func": "static int _compare_path_table_joliet ( const void * v1 , const void * v2 ) {\n const struct isoent * p1 , * p2 ;\n const unsigned char * s1 , * s2 ;\n int cmp , l ;\n p1 = * ( ( const struct isoent * * ) ( uintptr_t ) v1 ) ;\n p2 = * ( ( const struct isoent * * ) ( uintptr_t ) v2 ) ;\n cmp = p1 -> parent -> dir_number - p2 -> parent -> dir_number ;\n if ( cmp != 0 ) return ( cmp ) ;\n s1 = ( const unsigned char * ) p1 -> identifier ;\n s2 = ( const unsigned char * ) p2 -> identifier ;\n l = p1 -> ext_off ;\n if ( l > p2 -> ext_off ) l = p2 -> ext_off ;\n cmp = memcmp ( s1 , s2 , l ) ;\n if ( cmp != 0 ) return ( cmp ) ;\n if ( p1 -> ext_off < p2 -> ext_off ) {\n s2 += l ;\n l = p2 -> ext_off - p1 -> ext_off ;\n while ( l -- ) if ( 0 != * s2 ++ ) return ( - * ( const unsigned char * ) ( s2 - 1 ) ) ;\n }\n else if ( p1 -> ext_off > p2 -> ext_off ) {\n s1 += l ;\n l = p1 -> ext_off - p2 -> ext_off ;\n while ( l -- ) if ( 0 != * s1 ++ ) return ( * ( const unsigned char * ) ( s1 - 1 ) ) ;\n }\n return ( 0 ) ;\n }"}
{"idx": 237, "target": 0, "func": "static int sockstat_seq_open ( struct inode * inode , struct file * file ) {\n return single_open_net ( inode , file , sockstat_seq_show ) ;\n }"}
{"idx": 238, "target": 0, "func": "void gx_device_set_resolution ( gx_device * dev , double x_dpi , double y_dpi ) {\n dev -> HWResolution [ 0 ] = x_dpi ;\n dev -> HWResolution [ 1 ] = y_dpi ;\n gx_device_set_hwsize_from_media ( dev ) ;\n }"}
{"idx": 239, "target": 0, "func": "TEST_P ( GLES2DecoderTestWithCHROMIUMPathRendering , IsPathCHROMIUMValidArgs ) {\n EXPECT_CALL ( * gl_ , IsPathNV ( kServicePathId ) ) ;\n SpecializedSetup < cmds : : IsPathCHROMIUM , 0 > ( true ) ;\n cmds : : IsPathCHROMIUM cmd ;\n cmd . Init ( client_path_id_ , shared_memory_id_ , shared_memory_offset_ ) ;\n EXPECT_EQ ( error : : kNoError , ExecuteCmd ( cmd ) ) ;\n EXPECT_EQ ( GL_NO_ERROR , GetGLError ( ) ) ;\n }"}
{"idx": 240, "target": 0, "func": "const EVP_CIPHER * EVP_aes_192_wrap ( void ) {\n return & aes_192_wrap ;\n }"}
{"idx": 241, "target": 0, "func": "static long spl_ptr_llist_count ( spl_ptr_llist * llist ) {\n return ( long ) llist -> count ;\n }"}
{"idx": 242, "target": 0, "func": "void compute_curve_gamma_table_type_parametric ( float gamma_table [ 256 ] , float parameter [ 7 ] , int count ) {\n size_t X ;\n float interval ;\n float a , b , c , e , f ;\n float y = parameter [ 0 ] ;\n if ( count == 0 ) {\n a = 1 ;\n b = 0 ;\n c = 0 ;\n e = 0 ;\n f = 0 ;\n interval = - INFINITY ;\n }\n else if ( count == 1 ) {\n a = parameter [ 1 ] ;\n b = parameter [ 2 ] ;\n c = 0 ;\n e = 0 ;\n f = 0 ;\n interval = - 1 * parameter [ 2 ] / parameter [ 1 ] ;\n }\n else if ( count == 2 ) {\n a = parameter [ 1 ] ;\n b = parameter [ 2 ] ;\n c = 0 ;\n e = parameter [ 3 ] ;\n f = parameter [ 3 ] ;\n interval = - 1 * parameter [ 2 ] / parameter [ 1 ] ;\n }\n else if ( count == 3 ) {\n a = parameter [ 1 ] ;\n b = parameter [ 2 ] ;\n c = parameter [ 3 ] ;\n e = - c ;\n f = 0 ;\n interval = parameter [ 4 ] ;\n }\n else if ( count == 4 ) {\n a = parameter [ 1 ] ;\n b = parameter [ 2 ] ;\n c = parameter [ 3 ] ;\n e = parameter [ 5 ] - c ;\n f = parameter [ 6 ] ;\n interval = parameter [ 4 ] ;\n }\n else {\n assert ( 0 && \"invalid parametric function type.\" ) ;\n a = 1 ;\n b = 0 ;\n c = 0 ;\n e = 0 ;\n f = 0 ;\n interval = - INFINITY ;\n }\n for ( X = 0 ;\n X < 256 ;\n X ++ ) {\n float x = X / 255.0 ;\n if ( x >= interval ) {\n gamma_table [ X ] = clamp_float ( powf ( a * x + b , y ) + ( c + e ) ) ;\n }\n else {\n gamma_table [ X ] = clamp_float ( c * x + f ) ;\n }\n }\n }"}
{"idx": 243, "target": 0, "func": "char func_parallel ( Oid funcid ) {\n HeapTuple tp ;\n char result ;\n tp = SearchSysCache1 ( PROCOID , ObjectIdGetDatum ( funcid ) ) ;\n if ( ! HeapTupleIsValid ( tp ) ) elog ( ERROR , \"cache lookup failed for function %u\" , funcid ) ;\n result = ( ( Form_pg_proc ) GETSTRUCT ( tp ) ) -> proparallel ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }"}
{"idx": 244, "target": 0, "func": "void usage_exit ( ) {\n exit ( EXIT_FAILURE ) ;\n }"}
{"idx": 245, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n LclDecContext * const c = avctx -> priv_data ;\n unsigned char * encoded = ( unsigned char * ) buf ;\n unsigned int pixel_ptr ;\n int row , col ;\n unsigned char * outptr ;\n uint8_t * y_out , * u_out , * v_out ;\n unsigned int width = avctx -> width ;\n unsigned int height = avctx -> height ;\n unsigned int mszh_dlen ;\n unsigned char yq , y1q , uq , vq ;\n int uqvq , ret ;\n unsigned int mthread_inlen , mthread_outlen ;\n unsigned int len = buf_size ;\n if ( c -> pic . data [ 0 ] ) avctx -> release_buffer ( avctx , & c -> pic ) ;\n c -> pic . reference = 0 ;\n c -> pic . buffer_hints = FF_BUFFER_HINTS_VALID ;\n if ( ( ret = ff_get_buffer ( avctx , & c -> pic ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n outptr = c -> pic . data [ 0 ] ;\n switch ( avctx -> codec_id ) {\n case AV_CODEC_ID_MSZH : switch ( c -> compression ) {\n case COMP_MSZH : if ( c -> flags & FLAG_MULTITHREAD ) {\n mthread_inlen = AV_RL32 ( encoded ) ;\n mthread_inlen = FFMIN ( mthread_inlen , len - 8 ) ;\n mthread_outlen = AV_RL32 ( encoded + 4 ) ;\n mthread_outlen = FFMIN ( mthread_outlen , c -> decomp_size ) ;\n mszh_dlen = mszh_decomp ( encoded + 8 , mthread_inlen , c -> decomp_buf , c -> decomp_size ) ;\n if ( mthread_outlen != mszh_dlen ) {\n av_log ( avctx , AV_LOG_ERROR , \"Mthread1 decoded size differs (%d != %d)\\n\" , mthread_outlen , mszh_dlen ) ;\n return AVERROR_INVALIDDATA ;\n }\n mszh_dlen = mszh_decomp ( encoded + 8 + mthread_inlen , len - 8 - mthread_inlen , c -> decomp_buf + mthread_outlen , c -> decomp_size - mthread_outlen ) ;\n if ( mthread_outlen != mszh_dlen ) {\n av_log ( avctx , AV_LOG_ERROR , \"Mthread2 decoded size differs (%d != %d)\\n\" , mthread_outlen , mszh_dlen ) ;\n return AVERROR_INVALIDDATA ;\n }\n encoded = c -> decomp_buf ;\n len = c -> decomp_size ;\n }\n else {\n mszh_dlen = mszh_decomp ( encoded , len , c -> decomp_buf , c -> decomp_size ) ;\n if ( c -> decomp_size != mszh_dlen ) {\n av_log ( avctx , AV_LOG_ERROR , \"Decoded size differs (%d != %d)\\n\" , c -> decomp_size , mszh_dlen ) ;\n return AVERROR_INVALIDDATA ;\n }\n encoded = c -> decomp_buf ;\n len = mszh_dlen ;\n }\n break ;\n case COMP_MSZH_NOCOMP : {\n int bppx2 ;\n switch ( c -> imgtype ) {\n case IMGTYPE_YUV111 : case IMGTYPE_RGB24 : bppx2 = 6 ;\n break ;\n case IMGTYPE_YUV422 : case IMGTYPE_YUV211 : bppx2 = 4 ;\n break ;\n case IMGTYPE_YUV411 : case IMGTYPE_YUV420 : bppx2 = 3 ;\n break ;\n default : bppx2 = 0 ;\n break ;\n }\n if ( len < ( ( width * height * bppx2 ) >> 1 ) ) return AVERROR_INVALIDDATA ;\n break ;\n }\n default : av_log ( avctx , AV_LOG_ERROR , \"BUG! Unknown MSZH compression in frame decoder.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n break ;\n # if CONFIG_ZLIB_DECODER case AV_CODEC_ID_ZLIB : if ( c -> compression == COMP_ZLIB_NORMAL && c -> imgtype == IMGTYPE_RGB24 && len == width * height * 3 ) {\n if ( c -> flags & FLAG_PNGFILTER ) {\n memcpy ( c -> decomp_buf , encoded , len ) ;\n encoded = c -> decomp_buf ;\n }\n else {\n break ;\n }\n }\n else if ( c -> flags & FLAG_MULTITHREAD ) {\n mthread_inlen = AV_RL32 ( encoded ) ;\n mthread_inlen = FFMIN ( mthread_inlen , len - 8 ) ;\n mthread_outlen = AV_RL32 ( encoded + 4 ) ;\n mthread_outlen = FFMIN ( mthread_outlen , c -> decomp_size ) ;\n ret = zlib_decomp ( avctx , encoded + 8 , mthread_inlen , 0 , mthread_outlen ) ;\n if ( ret < 0 ) return ret ;\n ret = zlib_decomp ( avctx , encoded + 8 + mthread_inlen , len - 8 - mthread_inlen , mthread_outlen , mthread_outlen ) ;\n if ( ret < 0 ) return ret ;\n }\n else {\n int ret = zlib_decomp ( avctx , encoded , len , 0 , c -> decomp_size ) ;\n if ( ret < 0 ) return ret ;\n }\n encoded = c -> decomp_buf ;\n len = c -> decomp_size ;\n break ;\n # endif default : av_log ( avctx , AV_LOG_ERROR , \"BUG! Unknown codec in frame decoder compression switch.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( avctx -> codec_id == AV_CODEC_ID_ZLIB && ( c -> flags & FLAG_PNGFILTER ) ) {\n switch ( c -> imgtype ) {\n case IMGTYPE_YUV111 : case IMGTYPE_RGB24 : for ( row = 0 ;\n row < height ;\n row ++ ) {\n pixel_ptr = row * width * 3 ;\n yq = encoded [ pixel_ptr ++ ] ;\n uqvq = AV_RL16 ( encoded + pixel_ptr ) ;\n pixel_ptr += 2 ;\n for ( col = 1 ;\n col < width ;\n col ++ ) {\n encoded [ pixel_ptr ] = yq -= encoded [ pixel_ptr ] ;\n uqvq -= AV_RL16 ( encoded + pixel_ptr + 1 ) ;\n AV_WL16 ( encoded + pixel_ptr + 1 , uqvq ) ;\n pixel_ptr += 3 ;\n }\n }\n break ;\n case IMGTYPE_YUV422 : for ( row = 0 ;\n row < height ;\n row ++ ) {\n pixel_ptr = row * width * 2 ;\n yq = uq = vq = 0 ;\n for ( col = 0 ;\n col < width / 4 ;\n col ++ ) {\n encoded [ pixel_ptr ] = yq -= encoded [ pixel_ptr ] ;\n encoded [ pixel_ptr + 1 ] = yq -= encoded [ pixel_ptr + 1 ] ;\n encoded [ pixel_ptr + 2 ] = yq -= encoded [ pixel_ptr + 2 ] ;\n encoded [ pixel_ptr + 3 ] = yq -= encoded [ pixel_ptr + 3 ] ;\n encoded [ pixel_ptr + 4 ] = uq -= encoded [ pixel_ptr + 4 ] ;\n encoded [ pixel_ptr + 5 ] = uq -= encoded [ pixel_ptr + 5 ] ;\n encoded [ pixel_ptr + 6 ] = vq -= encoded [ pixel_ptr + 6 ] ;\n encoded [ pixel_ptr + 7 ] = vq -= encoded [ pixel_ptr + 7 ] ;\n pixel_ptr += 8 ;\n }\n }\n break ;\n case IMGTYPE_YUV411 : for ( row = 0 ;\n row < height ;\n row ++ ) {\n pixel_ptr = row * width / 2 * 3 ;\n yq = uq = vq = 0 ;\n for ( col = 0 ;\n col < width / 4 ;\n col ++ ) {\n encoded [ pixel_ptr ] = yq -= encoded [ pixel_ptr ] ;\n encoded [ pixel_ptr + 1 ] = yq -= encoded [ pixel_ptr + 1 ] ;\n encoded [ pixel_ptr + 2 ] = yq -= encoded [ pixel_ptr + 2 ] ;\n encoded [ pixel_ptr + 3 ] = yq -= encoded [ pixel_ptr + 3 ] ;\n encoded [ pixel_ptr + 4 ] = uq -= encoded [ pixel_ptr + 4 ] ;\n encoded [ pixel_ptr + 5 ] = vq -= encoded [ pixel_ptr + 5 ] ;\n pixel_ptr += 6 ;\n }\n }\n break ;\n case IMGTYPE_YUV211 : for ( row = 0 ;\n row < height ;\n row ++ ) {\n pixel_ptr = row * width * 2 ;\n yq = uq = vq = 0 ;\n for ( col = 0 ;\n col < width / 2 ;\n col ++ ) {\n encoded [ pixel_ptr ] = yq -= encoded [ pixel_ptr ] ;\n encoded [ pixel_ptr + 1 ] = yq -= encoded [ pixel_ptr + 1 ] ;\n encoded [ pixel_ptr + 2 ] = uq -= encoded [ pixel_ptr + 2 ] ;\n encoded [ pixel_ptr + 3 ] = vq -= encoded [ pixel_ptr + 3 ] ;\n pixel_ptr += 4 ;\n }\n }\n break ;\n case IMGTYPE_YUV420 : for ( row = 0 ;\n row < height / 2 ;\n row ++ ) {\n pixel_ptr = row * width * 3 ;\n yq = y1q = uq = vq = 0 ;\n for ( col = 0 ;\n col < width / 2 ;\n col ++ ) {\n encoded [ pixel_ptr ] = yq -= encoded [ pixel_ptr ] ;\n encoded [ pixel_ptr + 1 ] = yq -= encoded [ pixel_ptr + 1 ] ;\n encoded [ pixel_ptr + 2 ] = y1q -= encoded [ pixel_ptr + 2 ] ;\n encoded [ pixel_ptr + 3 ] = y1q -= encoded [ pixel_ptr + 3 ] ;\n encoded [ pixel_ptr + 4 ] = uq -= encoded [ pixel_ptr + 4 ] ;\n encoded [ pixel_ptr + 5 ] = vq -= encoded [ pixel_ptr + 5 ] ;\n pixel_ptr += 6 ;\n }\n }\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"BUG! Unknown imagetype in pngfilter switch.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n y_out = c -> pic . data [ 0 ] + ( height - 1 ) * c -> pic . linesize [ 0 ] ;\n u_out = c -> pic . data [ 1 ] + ( height - 1 ) * c -> pic . linesize [ 1 ] ;\n v_out = c -> pic . data [ 2 ] + ( height - 1 ) * c -> pic . linesize [ 2 ] ;\n switch ( c -> imgtype ) {\n case IMGTYPE_YUV111 : for ( row = 0 ;\n row < height ;\n row ++ ) {\n for ( col = 0 ;\n col < width ;\n col ++ ) {\n y_out [ col ] = * encoded ++ ;\n u_out [ col ] = * encoded ++ + 128 ;\n v_out [ col ] = * encoded ++ + 128 ;\n }\n y_out -= c -> pic . linesize [ 0 ] ;\n u_out -= c -> pic . linesize [ 1 ] ;\n v_out -= c -> pic . linesize [ 2 ] ;\n }\n break ;\n case IMGTYPE_YUV422 : for ( row = 0 ;\n row < height ;\n row ++ ) {\n for ( col = 0 ;\n col < width - 3 ;\n col += 4 ) {\n memcpy ( y_out + col , encoded , 4 ) ;\n encoded += 4 ;\n u_out [ col >> 1 ] = * encoded ++ + 128 ;\n u_out [ ( col >> 1 ) + 1 ] = * encoded ++ + 128 ;\n v_out [ col >> 1 ] = * encoded ++ + 128 ;\n v_out [ ( col >> 1 ) + 1 ] = * encoded ++ + 128 ;\n }\n y_out -= c -> pic . linesize [ 0 ] ;\n u_out -= c -> pic . linesize [ 1 ] ;\n v_out -= c -> pic . linesize [ 2 ] ;\n }\n break ;\n case IMGTYPE_RGB24 : for ( row = height - 1 ;\n row >= 0 ;\n row -- ) {\n pixel_ptr = row * c -> pic . linesize [ 0 ] ;\n memcpy ( outptr + pixel_ptr , encoded , 3 * width ) ;\n encoded += 3 * width ;\n }\n break ;\n case IMGTYPE_YUV411 : for ( row = 0 ;\n row < height ;\n row ++ ) {\n for ( col = 0 ;\n col < width - 3 ;\n col += 4 ) {\n memcpy ( y_out + col , encoded , 4 ) ;\n encoded += 4 ;\n u_out [ col >> 2 ] = * encoded ++ + 128 ;\n v_out [ col >> 2 ] = * encoded ++ + 128 ;\n }\n y_out -= c -> pic . linesize [ 0 ] ;\n u_out -= c -> pic . linesize [ 1 ] ;\n v_out -= c -> pic . linesize [ 2 ] ;\n }\n break ;\n case IMGTYPE_YUV211 : for ( row = 0 ;\n row < height ;\n row ++ ) {\n for ( col = 0 ;\n col < width - 1 ;\n col += 2 ) {\n memcpy ( y_out + col , encoded , 2 ) ;\n encoded += 2 ;\n u_out [ col >> 1 ] = * encoded ++ + 128 ;\n v_out [ col >> 1 ] = * encoded ++ + 128 ;\n }\n y_out -= c -> pic . linesize [ 0 ] ;\n u_out -= c -> pic . linesize [ 1 ] ;\n v_out -= c -> pic . linesize [ 2 ] ;\n }\n break ;\n case IMGTYPE_YUV420 : u_out = c -> pic . data [ 1 ] + ( ( height >> 1 ) - 1 ) * c -> pic . linesize [ 1 ] ;\n v_out = c -> pic . data [ 2 ] + ( ( height >> 1 ) - 1 ) * c -> pic . linesize [ 2 ] ;\n for ( row = 0 ;\n row < height - 1 ;\n row += 2 ) {\n for ( col = 0 ;\n col < width - 1 ;\n col += 2 ) {\n memcpy ( y_out + col , encoded , 2 ) ;\n encoded += 2 ;\n memcpy ( y_out + col - c -> pic . linesize [ 0 ] , encoded , 2 ) ;\n encoded += 2 ;\n u_out [ col >> 1 ] = * encoded ++ + 128 ;\n v_out [ col >> 1 ] = * encoded ++ + 128 ;\n }\n y_out -= c -> pic . linesize [ 0 ] << 1 ;\n u_out -= c -> pic . linesize [ 1 ] ;\n v_out -= c -> pic . linesize [ 2 ] ;\n }\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"BUG! Unknown imagetype in image decoder.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n * got_frame = 1 ;\n * ( AVFrame * ) data = c -> pic ;\n return buf_size ;\n }"}
{"idx": 246, "target": 0, "func": "static int dissect_h225_CallsAvailable ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_CallsAvailable , CallsAvailable_sequence ) ;\n return offset ;\n }"}
{"idx": 247, "target": 1, "func": "static void vga_draw_line15_be ( VGACommonState * s1 , uint8_t * d , const uint8_t * s , int width ) {\n int w ;\n uint32_t v , r , g , b ;\n w = width ;\n do {\n v = lduw_be_p ( ( void * ) s ) ;\n r = ( v >> 7 ) & 0xf8 ;\n g = ( v >> 2 ) & 0xf8 ;\n b = ( v << 3 ) & 0xf8 ;\n ( ( uint32_t * ) d ) [ 0 ] = rgb_to_pixel32 ( r , g , b ) ;\n s += 2 ;\n d += 4 ;\n }\n while ( -- w != 0 ) ;\n }"}
{"idx": 248, "target": 0, "func": "void xps_parse_path ( xps_document * doc , const fz_matrix * ctm , char * base_uri , xps_resource * dict , fz_xml * root ) {\n fz_xml * node ;\n char * fill_uri ;\n char * stroke_uri ;\n char * opacity_mask_uri ;\n char * transform_att ;\n char * clip_att ;\n char * data_att ;\n char * fill_att ;\n char * stroke_att ;\n char * opacity_att ;\n char * opacity_mask_att ;\n fz_xml * transform_tag = NULL ;\n fz_xml * clip_tag = NULL ;\n fz_xml * data_tag = NULL ;\n fz_xml * fill_tag = NULL ;\n fz_xml * stroke_tag = NULL ;\n fz_xml * opacity_mask_tag = NULL ;\n char * fill_opacity_att = NULL ;\n char * stroke_opacity_att = NULL ;\n char * stroke_dash_array_att ;\n char * stroke_dash_cap_att ;\n char * stroke_dash_offset_att ;\n char * stroke_end_line_cap_att ;\n char * stroke_start_line_cap_att ;\n char * stroke_line_join_att ;\n char * stroke_miter_limit_att ;\n char * stroke_thickness_att ;\n char * navigate_uri_att ;\n fz_stroke_state * stroke = NULL ;\n fz_matrix transform ;\n float samples [ FZ_MAX_COLORS ] ;\n fz_colorspace * colorspace ;\n fz_path * path = NULL ;\n fz_path * stroke_path = NULL ;\n fz_rect area ;\n int fill_rule ;\n int dash_len = 0 ;\n fz_matrix local_ctm ;\n transform_att = fz_xml_att ( root , \"RenderTransform\" ) ;\n clip_att = fz_xml_att ( root , \"Clip\" ) ;\n data_att = fz_xml_att ( root , \"Data\" ) ;\n fill_att = fz_xml_att ( root , \"Fill\" ) ;\n stroke_att = fz_xml_att ( root , \"Stroke\" ) ;\n opacity_att = fz_xml_att ( root , \"Opacity\" ) ;\n opacity_mask_att = fz_xml_att ( root , \"OpacityMask\" ) ;\n stroke_dash_array_att = fz_xml_att ( root , \"StrokeDashArray\" ) ;\n stroke_dash_cap_att = fz_xml_att ( root , \"StrokeDashCap\" ) ;\n stroke_dash_offset_att = fz_xml_att ( root , \"StrokeDashOffset\" ) ;\n stroke_end_line_cap_att = fz_xml_att ( root , \"StrokeEndLineCap\" ) ;\n stroke_start_line_cap_att = fz_xml_att ( root , \"StrokeStartLineCap\" ) ;\n stroke_line_join_att = fz_xml_att ( root , \"StrokeLineJoin\" ) ;\n stroke_miter_limit_att = fz_xml_att ( root , \"StrokeMiterLimit\" ) ;\n stroke_thickness_att = fz_xml_att ( root , \"StrokeThickness\" ) ;\n navigate_uri_att = fz_xml_att ( root , \"FixedPage.NavigateUri\" ) ;\n for ( node = fz_xml_down ( root ) ;\n node ;\n node = fz_xml_next ( node ) ) {\n if ( ! strcmp ( fz_xml_tag ( node ) , \"Path.RenderTransform\" ) ) transform_tag = fz_xml_down ( node ) ;\n if ( ! strcmp ( fz_xml_tag ( node ) , \"Path.OpacityMask\" ) ) opacity_mask_tag = fz_xml_down ( node ) ;\n if ( ! strcmp ( fz_xml_tag ( node ) , \"Path.Clip\" ) ) clip_tag = fz_xml_down ( node ) ;\n if ( ! strcmp ( fz_xml_tag ( node ) , \"Path.Fill\" ) ) fill_tag = fz_xml_down ( node ) ;\n if ( ! strcmp ( fz_xml_tag ( node ) , \"Path.Stroke\" ) ) stroke_tag = fz_xml_down ( node ) ;\n if ( ! strcmp ( fz_xml_tag ( node ) , \"Path.Data\" ) ) data_tag = fz_xml_down ( node ) ;\n }\n fill_uri = base_uri ;\n stroke_uri = base_uri ;\n opacity_mask_uri = base_uri ;\n xps_resolve_resource_reference ( doc , dict , & data_att , & data_tag , NULL ) ;\n xps_resolve_resource_reference ( doc , dict , & clip_att , & clip_tag , NULL ) ;\n xps_resolve_resource_reference ( doc , dict , & transform_att , & transform_tag , NULL ) ;\n xps_resolve_resource_reference ( doc , dict , & fill_att , & fill_tag , & fill_uri ) ;\n xps_resolve_resource_reference ( doc , dict , & stroke_att , & stroke_tag , & stroke_uri ) ;\n xps_resolve_resource_reference ( doc , dict , & opacity_mask_att , & opacity_mask_tag , & opacity_mask_uri ) ;\n if ( ! data_att && ! data_tag ) return ;\n if ( fill_tag && ! strcmp ( fz_xml_tag ( fill_tag ) , \"SolidColorBrush\" ) ) {\n fill_opacity_att = fz_xml_att ( fill_tag , \"Opacity\" ) ;\n fill_att = fz_xml_att ( fill_tag , \"Color\" ) ;\n fill_tag = NULL ;\n }\n if ( stroke_tag && ! strcmp ( fz_xml_tag ( stroke_tag ) , \"SolidColorBrush\" ) ) {\n stroke_opacity_att = fz_xml_att ( stroke_tag , \"Opacity\" ) ;\n stroke_att = fz_xml_att ( stroke_tag , \"Color\" ) ;\n stroke_tag = NULL ;\n }\n if ( stroke_att || stroke_tag ) {\n if ( stroke_dash_array_att ) {\n char * s = stroke_dash_array_att ;\n while ( * s ) {\n while ( * s == ' ' ) s ++ ;\n if ( * s ) dash_len ++ ;\n while ( * s && * s != ' ' ) s ++ ;\n }\n }\n stroke = fz_new_stroke_state_with_dash_len ( doc -> ctx , dash_len ) ;\n stroke -> start_cap = xps_parse_line_cap ( stroke_start_line_cap_att ) ;\n stroke -> dash_cap = xps_parse_line_cap ( stroke_dash_cap_att ) ;\n stroke -> end_cap = xps_parse_line_cap ( stroke_end_line_cap_att ) ;\n stroke -> linejoin = FZ_LINEJOIN_MITER_XPS ;\n if ( stroke_line_join_att ) {\n if ( ! strcmp ( stroke_line_join_att , \"Miter\" ) ) stroke -> linejoin = FZ_LINEJOIN_MITER_XPS ;\n if ( ! strcmp ( stroke_line_join_att , \"Round\" ) ) stroke -> linejoin = FZ_LINEJOIN_ROUND ;\n if ( ! strcmp ( stroke_line_join_att , \"Bevel\" ) ) stroke -> linejoin = FZ_LINEJOIN_BEVEL ;\n }\n stroke -> miterlimit = 10 ;\n if ( stroke_miter_limit_att ) stroke -> miterlimit = fz_atof ( stroke_miter_limit_att ) ;\n stroke -> linewidth = 1 ;\n if ( stroke_thickness_att ) stroke -> linewidth = fz_atof ( stroke_thickness_att ) ;\n stroke -> dash_phase = 0 ;\n stroke -> dash_len = 0 ;\n if ( stroke_dash_array_att ) {\n char * s = stroke_dash_array_att ;\n if ( stroke_dash_offset_att ) stroke -> dash_phase = fz_atof ( stroke_dash_offset_att ) * stroke -> linewidth ;\n while ( * s ) {\n while ( * s == ' ' ) s ++ ;\n if ( * s ) stroke -> dash_list [ stroke -> dash_len ++ ] = fz_atof ( s ) * stroke -> linewidth ;\n while ( * s && * s != ' ' ) s ++ ;\n }\n stroke -> dash_len = dash_len ;\n }\n }\n transform = fz_identity ;\n if ( transform_att ) xps_parse_render_transform ( doc , transform_att , & transform ) ;\n if ( transform_tag ) xps_parse_matrix_transform ( doc , transform_tag , & transform ) ;\n fz_concat ( & local_ctm , & transform , ctm ) ;\n if ( clip_att || clip_tag ) xps_clip ( doc , & local_ctm , dict , clip_att , clip_tag ) ;\n fill_rule = 0 ;\n if ( data_att ) path = xps_parse_abbreviated_geometry ( doc , data_att , & fill_rule ) ;\n else if ( data_tag ) {\n path = xps_parse_path_geometry ( doc , dict , data_tag , 0 , & fill_rule ) ;\n if ( stroke_att || stroke_tag ) stroke_path = xps_parse_path_geometry ( doc , dict , data_tag , 1 , & fill_rule ) ;\n }\n if ( ! stroke_path ) stroke_path = path ;\n if ( stroke_att || stroke_tag ) {\n fz_bound_path ( doc -> ctx , stroke_path , stroke , & local_ctm , & area ) ;\n if ( stroke_path != path && ( fill_att || fill_tag ) ) {\n fz_rect bounds ;\n fz_bound_path ( doc -> ctx , path , NULL , & local_ctm , & bounds ) ;\n fz_union_rect ( & area , & bounds ) ;\n }\n }\n else fz_bound_path ( doc -> ctx , path , NULL , & local_ctm , & area ) ;\n if ( navigate_uri_att ) xps_add_link ( doc , & area , base_uri , navigate_uri_att ) ;\n xps_begin_opacity ( doc , & local_ctm , & area , opacity_mask_uri , dict , opacity_att , opacity_mask_tag ) ;\n if ( fill_att ) {\n xps_parse_color ( doc , base_uri , fill_att , & colorspace , samples ) ;\n if ( fill_opacity_att ) samples [ 0 ] *= fz_atof ( fill_opacity_att ) ;\n xps_set_color ( doc , colorspace , samples ) ;\n fz_fill_path ( doc -> dev , path , fill_rule == 0 , & local_ctm , doc -> colorspace , doc -> color , doc -> alpha ) ;\n }\n if ( fill_tag ) {\n fz_clip_path ( doc -> dev , path , & area , fill_rule == 0 , & local_ctm ) ;\n xps_parse_brush ( doc , & local_ctm , & area , fill_uri , dict , fill_tag ) ;\n fz_pop_clip ( doc -> dev ) ;\n }\n if ( stroke_att ) {\n xps_parse_color ( doc , base_uri , stroke_att , & colorspace , samples ) ;\n if ( stroke_opacity_att ) samples [ 0 ] *= fz_atof ( stroke_opacity_att ) ;\n xps_set_color ( doc , colorspace , samples ) ;\n fz_stroke_path ( doc -> dev , stroke_path , stroke , & local_ctm , doc -> colorspace , doc -> color , doc -> alpha ) ;\n }\n if ( stroke_tag ) {\n fz_clip_stroke_path ( doc -> dev , stroke_path , & area , stroke , & local_ctm ) ;\n xps_parse_brush ( doc , & local_ctm , & area , stroke_uri , dict , stroke_tag ) ;\n fz_pop_clip ( doc -> dev ) ;\n }\n xps_end_opacity ( doc , opacity_mask_uri , dict , opacity_att , opacity_mask_tag ) ;\n if ( stroke_path != path ) fz_free_path ( doc -> ctx , stroke_path ) ;\n fz_free_path ( doc -> ctx , path ) ;\n path = NULL ;\n fz_drop_stroke_state ( doc -> ctx , stroke ) ;\n if ( clip_att || clip_tag ) fz_pop_clip ( doc -> dev ) ;\n }"}
{"idx": 249, "target": 0, "func": "static CURLcode expect100 ( struct Curl_easy * data , struct connectdata * conn , Curl_send_buffer * req_buffer ) {\n CURLcode result = CURLE_OK ;\n const char * ptr ;\n data -> state . expect100header = FALSE ;\n if ( use_http_1_1plus ( data , conn ) && ( conn -> httpversion != 20 ) ) {\n ptr = Curl_checkheaders ( conn , \"Expect:\" ) ;\n if ( ptr ) {\n data -> state . expect100header = Curl_compareheader ( ptr , \"Expect:\" , \"100-continue\" ) ;\n }\n else {\n result = Curl_add_bufferf ( req_buffer , \"Expect: 100-continue\\r\\n\" ) ;\n if ( ! result ) data -> state . expect100header = TRUE ;\n }\n }\n return result ;\n }"}
{"idx": 250, "target": 0, "func": "MPI # ifdef M_DEBUG mpi_debug_alloc ( unsigned nlimbs , const char * info ) # else mpi_alloc ( unsigned nlimbs ) # endif {\n MPI a ;\n if ( DBG_MEMORY ) log_debug ( \"mpi_alloc(%u)\\n\" , nlimbs * BITS_PER_MPI_LIMB ) ;\n # ifdef M_DEBUG a = m_debug_alloc ( sizeof * a , info ) ;\n a -> d = nlimbs ? mpi_debug_alloc_limb_space ( nlimbs , 0 , info ) : NULL ;\n # else a = xmalloc ( sizeof * a ) ;\n a -> d = nlimbs ? mpi_alloc_limb_space ( nlimbs , 0 ) : NULL ;\n # endif a -> alloced = nlimbs ;\n a -> nlimbs = 0 ;\n a -> sign = 0 ;\n a -> flags = 0 ;\n a -> nbits = 0 ;\n return a ;\n }"}
{"idx": 251, "target": 0, "func": "static void _slurm_rpc_update_layout ( slurm_msg_t * msg ) {\n int error_code = SLURM_SUCCESS ;\n Buf buffer ;\n DEF_TIMERS ;\n update_layout_msg_t * msg_ptr = ( update_layout_msg_t * ) msg -> data ;\n int shrink_size ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n START_TIMER ;\n debug2 ( \"Processing RPC: REQUEST_UPDATE_LAYOUT from uid=%d\" , uid ) ;\n if ( ! validate_super_user ( uid ) ) {\n error_code = ESLURM_USER_ID_MISSING ;\n error ( \"Security violation, UPDATE_LAYOUT RPC from uid=%d\" , uid ) ;\n }\n if ( error_code == SLURM_SUCCESS ) {\n buffer = init_buf ( BUF_SIZE ) ;\n packstr ( msg_ptr -> arg , buffer ) ;\n shrink_size = ( int ) get_buf_offset ( buffer ) - size_buf ( buffer ) ;\n set_buf_offset ( buffer , 0 ) ;\n grow_buf ( buffer , shrink_size ) ;\n error_code = layouts_update_layout ( msg_ptr -> layout , buffer ) ;\n free_buf ( buffer ) ;\n END_TIMER2 ( \"_slurm_rpc_update_node\" ) ;\n }\n if ( error_code ) {\n info ( \"_slurm_rpc_update_layout for %s: %s\" , msg_ptr -> layout , slurm_strerror ( error_code ) ) ;\n slurm_send_rc_msg ( msg , error_code ) ;\n }\n else {\n debug2 ( \"_slurm_rpc_update_layout complete for %s %s\" , msg_ptr -> layout , TIME_STR ) ;\n slurm_send_rc_msg ( msg , SLURM_SUCCESS ) ;\n }\n }"}
{"idx": 252, "target": 0, "func": "static char * strsep ( char * * s , const char * del ) {\n char * d , * tok ;\n assert ( strlen ( del ) == 1 ) ;\n if ( ! s || ! * s ) return NULL ;\n tok = * s ;\n d = strstr ( tok , del ) ;\n if ( d ) {\n * d = '\\0' ;\n * s = d + 1 ;\n }\n else * s = NULL ;\n return tok ;\n }"}
{"idx": 253, "target": 0, "func": "xsltDocumentPtr xsltNewDocument ( xsltTransformContextPtr ctxt , xmlDocPtr doc ) {\n xsltDocumentPtr cur ;\n cur = ( xsltDocumentPtr ) xmlMalloc ( sizeof ( xsltDocument ) ) ;\n if ( cur == NULL ) {\n xsltTransformError ( ctxt , NULL , ( xmlNodePtr ) doc , \"xsltNewDocument : malloc failed\\n\" ) ;\n return ( NULL ) ;\n }\n memset ( cur , 0 , sizeof ( xsltDocument ) ) ;\n cur -> doc = doc ;\n if ( ctxt != NULL ) {\n if ( ! XSLT_IS_RES_TREE_FRAG ( doc ) ) {\n cur -> next = ctxt -> docList ;\n ctxt -> docList = cur ;\n }\n }\n return ( cur ) ;\n }"}
{"idx": 254, "target": 0, "func": "static hb_tag_t hb_ot_new_tag_from_script ( hb_script_t script ) {\n switch ( ( hb_tag_t ) script ) {\n case HB_SCRIPT_BENGALI : return HB_TAG ( 'b' , 'n' , 'g' , '2' ) ;\n case HB_SCRIPT_DEVANAGARI : return HB_TAG ( 'd' , 'e' , 'v' , '2' ) ;\n case HB_SCRIPT_GUJARATI : return HB_TAG ( 'g' , 'j' , 'r' , '2' ) ;\n case HB_SCRIPT_GURMUKHI : return HB_TAG ( 'g' , 'u' , 'r' , '2' ) ;\n case HB_SCRIPT_KANNADA : return HB_TAG ( 'k' , 'n' , 'd' , '2' ) ;\n case HB_SCRIPT_MALAYALAM : return HB_TAG ( 'm' , 'l' , 'm' , '2' ) ;\n case HB_SCRIPT_ORIYA : return HB_TAG ( 'o' , 'r' , 'y' , '2' ) ;\n case HB_SCRIPT_TAMIL : return HB_TAG ( 't' , 'm' , 'l' , '2' ) ;\n case HB_SCRIPT_TELUGU : return HB_TAG ( 't' , 'e' , 'l' , '2' ) ;\n case HB_SCRIPT_MYANMAR : return HB_TAG ( 'm' , 'y' , 'm' , '2' ) ;\n }\n return HB_OT_TAG_DEFAULT_SCRIPT ;\n }"}
{"idx": 255, "target": 0, "func": "static void armv7m_nvic_reset ( DeviceState * dev ) {\n nvic_state * s = NVIC ( dev ) ;\n NVICClass * nc = NVIC_GET_CLASS ( s ) ;\n nc -> parent_reset ( dev ) ;\n s -> gic . cpu_enabled [ 0 ] = true ;\n s -> gic . priority_mask [ 0 ] = 0x100 ;\n s -> gic . enabled = true ;\n systick_reset ( s ) ;\n }"}
{"idx": 256, "target": 1, "func": "static void kq_dealloc ( struct event_base * base , void * arg ) {\n struct kqop * kqop = arg ;\n if ( kqop -> changes ) free ( kqop -> changes ) ;\n if ( kqop -> events ) free ( kqop -> events ) ;\n if ( kqop -> kq >= 0 && kqop -> pid == getpid ( ) ) close ( kqop -> kq ) ;\n memset ( kqop , 0 , sizeof ( struct kqop ) ) ;\n free ( kqop ) ;\n }"}
{"idx": 257, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ContentSettingBubbleDialogTest , InvokeDialog_ads ) {\n RunDialog ( ) ;\n }"}
{"idx": 258, "target": 0, "func": "static void tgq_decode_block ( TgqContext * s , int16_t block [ 64 ] , GetBitContext * gb ) {\n uint8_t * perm = s -> scantable . permutated ;\n int i , j , value ;\n block [ 0 ] = get_sbits ( gb , 8 ) * s -> qtable [ 0 ] ;\n for ( i = 1 ;\n i < 64 ;\n ) {\n switch ( show_bits ( gb , 3 ) ) {\n case 4 : block [ perm [ i ++ ] ] = 0 ;\n case 0 : block [ perm [ i ++ ] ] = 0 ;\n skip_bits ( gb , 3 ) ;\n break ;\n case 5 : case 1 : skip_bits ( gb , 2 ) ;\n value = get_bits ( gb , 6 ) ;\n for ( j = 0 ;\n j < value ;\n j ++ ) block [ perm [ i ++ ] ] = 0 ;\n break ;\n case 6 : skip_bits ( gb , 3 ) ;\n block [ perm [ i ] ] = - s -> qtable [ perm [ i ] ] ;\n i ++ ;\n break ;\n case 2 : skip_bits ( gb , 3 ) ;\n block [ perm [ i ] ] = s -> qtable [ perm [ i ] ] ;\n i ++ ;\n break ;\n case 7 : case 3 : skip_bits ( gb , 2 ) ;\n if ( show_bits ( gb , 6 ) == 0x3F ) {\n skip_bits ( gb , 6 ) ;\n block [ perm [ i ] ] = get_sbits ( gb , 8 ) * s -> qtable [ perm [ i ] ] ;\n }\n else {\n block [ perm [ i ] ] = get_sbits ( gb , 6 ) * s -> qtable [ perm [ i ] ] ;\n }\n i ++ ;\n break ;\n }\n }\n block [ 0 ] += 128 << 4 ;\n }"}
{"idx": 259, "target": 0, "func": "static void vvalue_strbuf_append_null ( wmem_strbuf_t * strbuf _U_ , void * ptr _U_ ) {\n }"}
{"idx": 260, "target": 0, "func": "gboolean rtp_dyn_payload_get_full ( rtp_dyn_payload_t * rtp_dyn_payload , const guint8 pt , const gchar * * encoding_name , int * sample_rate ) {\n encoding_name_and_rate_t * encoding_name_and_rate_pt ;\n * encoding_name = NULL ;\n * sample_rate = 0 ;\n if ( ! rtp_dyn_payload || ! rtp_dyn_payload -> table ) return FALSE ;\n encoding_name_and_rate_pt = ( encoding_name_and_rate_t * ) g_hash_table_lookup ( rtp_dyn_payload -> table , GUINT_TO_POINTER ( pt ) ) ;\n if ( encoding_name_and_rate_pt ) {\n * encoding_name = encoding_name_and_rate_pt -> encoding_name ;\n * sample_rate = encoding_name_and_rate_pt -> sample_rate ;\n }\n return ( encoding_name_and_rate_pt != NULL ) ;\n }"}
{"idx": 261, "target": 0, "func": "static void nlm_msg_res_match_cleanup ( void ) {\n g_hash_table_destroy ( nlm_msg_res_unmatched ) ;\n g_hash_table_destroy ( nlm_msg_res_matched ) ;\n }"}
{"idx": 262, "target": 0, "func": "struct archive_string * archive_string_ensure ( struct archive_string * as , size_t s ) {\n char * p ;\n size_t new_length ;\n if ( as -> s && ( s <= as -> buffer_length ) ) return ( as ) ;\n if ( as -> buffer_length < 32 ) new_length = 32 ;\n else if ( as -> buffer_length < 8192 ) new_length = as -> buffer_length + as -> buffer_length ;\n else {\n new_length = as -> buffer_length + as -> buffer_length / 4 ;\n if ( new_length < as -> buffer_length ) {\n archive_string_free ( as ) ;\n errno = ENOMEM ;\n return ( NULL ) ;\n }\n }\n if ( new_length < s ) new_length = s ;\n p = ( char * ) realloc ( as -> s , new_length ) ;\n if ( p == NULL ) {\n archive_string_free ( as ) ;\n errno = ENOMEM ;\n return ( NULL ) ;\n }\n as -> s = p ;\n as -> buffer_length = new_length ;\n return ( as ) ;\n }"}
{"idx": 263, "target": 0, "func": "static const char * uiserver_get_req_version ( void ) {\n return \"1.0\" ;\n }"}
{"idx": 264, "target": 0, "func": "void _TSReleaseAssert ( const char * text , const char * file , int line ) {\n _ink_assert ( text , file , line ) ;\n }"}
{"idx": 265, "target": 0, "func": "MIMEField * mime_hdr_prepare_for_value_set ( HdrHeap * heap , MIMEHdrImpl * mh , const char * name , int name_length ) {\n int wks_idx ;\n MIMEField * field ;\n field = mime_hdr_field_find ( mh , name , name_length ) ;\n if ( field == nullptr ) {\n wks_idx = hdrtoken_tokenize ( name , name_length ) ;\n field = mime_field_create ( heap , mh ) ;\n mime_field_name_set ( heap , mh , field , wks_idx , name , name_length , true ) ;\n mime_hdr_field_attach ( mh , field , 0 , nullptr ) ;\n }\n else if ( field -> m_next_dup ) {\n wks_idx = field -> m_wks_idx ;\n mime_hdr_field_delete ( heap , mh , field , true ) ;\n field = mime_field_create ( heap , mh ) ;\n mime_field_name_set ( heap , mh , field , wks_idx , name , name_length , true ) ;\n mime_hdr_field_attach ( mh , field , 0 , nullptr ) ;\n }\n return field ;\n }"}
{"idx": 266, "target": 0, "func": "static void clamp_default ( const fz_colorspace * cs , const float * src , float * dst ) {\n int i ;\n for ( i = 0 ;\n i < cs -> n ;\n i ++ ) dst [ i ] = fz_clamp ( src [ i ] , 0 , 1 ) ;\n }"}
{"idx": 267, "target": 0, "func": "static void openpic_tmr_write ( void * opaque , hwaddr addr , uint64_t val , unsigned len ) {\n OpenPICState * opp = opaque ;\n int idx ;\n addr += 0x10f0 ;\n DPRINTF ( \"%s: addr %#\" HWADDR_PRIx \" <= %08\" PRIx64 \"\\n\" , __func__ , addr , val ) ;\n if ( addr & 0xF ) {\n return ;\n }\n if ( addr == 0x10f0 ) {\n opp -> tfrr = val ;\n return ;\n }\n idx = ( addr >> 6 ) & 0x3 ;\n addr = addr & 0x30 ;\n switch ( addr & 0x30 ) {\n case 0x00 : break ;\n case 0x10 : if ( ( opp -> timers [ idx ] . tccr & TCCR_TOG ) != 0 && ( val & TBCR_CI ) == 0 && ( opp -> timers [ idx ] . tbcr & TBCR_CI ) != 0 ) {\n opp -> timers [ idx ] . tccr &= ~ TCCR_TOG ;\n }\n opp -> timers [ idx ] . tbcr = val ;\n break ;\n case 0x20 : write_IRQreg_ivpr ( opp , opp -> irq_tim0 + idx , val ) ;\n break ;\n case 0x30 : write_IRQreg_idr ( opp , opp -> irq_tim0 + idx , val ) ;\n break ;\n }\n }"}
{"idx": 268, "target": 0, "func": "static void show_stream_config ( struct stream_state * stream , struct VpxEncoderConfig * global , struct VpxInputContext * input ) {\n # define SHOW ( field ) fprintf ( stderr , \" %-28s = %d\\n\" , # field , stream -> config . cfg . field ) if ( stream -> index == 0 ) {\n fprintf ( stderr , \"Codec: %s\\n\" , vpx_codec_iface_name ( global -> codec -> codec_interface ( ) ) ) ;\n fprintf ( stderr , \"Source file: %s File Type: %s Format: %s\\n\" , input -> filename , file_type_to_string ( input -> file_type ) , image_format_to_string ( input -> fmt ) ) ;\n }\n if ( stream -> next || stream -> index ) fprintf ( stderr , \"\\nStream Index: %d\\n\" , stream -> index ) ;\n fprintf ( stderr , \"Destination file: %s\\n\" , stream -> config . out_fn ) ;\n fprintf ( stderr , \"Encoder parameters:\\n\" ) ;\n SHOW ( g_usage ) ;\n SHOW ( g_threads ) ;\n SHOW ( g_profile ) ;\n SHOW ( g_w ) ;\n SHOW ( g_h ) ;\n SHOW ( g_bit_depth ) ;\n SHOW ( g_input_bit_depth ) ;\n SHOW ( g_timebase . num ) ;\n SHOW ( g_timebase . den ) ;\n SHOW ( g_error_resilient ) ;\n SHOW ( g_pass ) ;\n SHOW ( g_lag_in_frames ) ;\n SHOW ( rc_dropframe_thresh ) ;\n SHOW ( rc_resize_allowed ) ;\n SHOW ( rc_scaled_width ) ;\n SHOW ( rc_scaled_height ) ;\n SHOW ( rc_resize_up_thresh ) ;\n SHOW ( rc_resize_down_thresh ) ;\n SHOW ( rc_end_usage ) ;\n SHOW ( rc_target_bitrate ) ;\n SHOW ( rc_min_quantizer ) ;\n SHOW ( rc_max_quantizer ) ;\n SHOW ( rc_undershoot_pct ) ;\n SHOW ( rc_overshoot_pct ) ;\n SHOW ( rc_buf_sz ) ;\n SHOW ( rc_buf_initial_sz ) ;\n SHOW ( rc_buf_optimal_sz ) ;\n SHOW ( rc_2pass_vbr_bias_pct ) ;\n SHOW ( rc_2pass_vbr_minsection_pct ) ;\n SHOW ( rc_2pass_vbr_maxsection_pct ) ;\n SHOW ( kf_mode ) ;\n SHOW ( kf_min_dist ) ;\n SHOW ( kf_max_dist ) ;\n }"}
{"idx": 269, "target": 0, "func": "int archive_mstring_copy_wcs_len ( struct archive_mstring * aes , const wchar_t * wcs , size_t len ) {\n if ( wcs == NULL ) {\n aes -> aes_set = 0 ;\n }\n aes -> aes_set = AES_SET_WCS ;\n archive_string_empty ( & ( aes -> aes_mbs ) ) ;\n archive_string_empty ( & ( aes -> aes_utf8 ) ) ;\n archive_wstrncpy ( & ( aes -> aes_wcs ) , wcs , len ) ;\n return ( 0 ) ;\n }"}
{"idx": 270, "target": 0, "func": "static void xps_draw_arc ( fz_context * doc , fz_path * path , float size_x , float size_y , float rotation_angle , int is_large_arc , int is_clockwise , float point_x , float point_y ) {\n fz_matrix rotmat , revmat ;\n fz_matrix mtx ;\n fz_point pt ;\n float rx , ry ;\n float x1 , y1 , x2 , y2 ;\n float x1t , y1t ;\n float cxt , cyt , cx , cy ;\n float t1 , t2 , t3 ;\n float sign ;\n float th1 , dth ;\n pt = fz_currentpoint ( doc , path ) ;\n x1 = pt . x ;\n y1 = pt . y ;\n x2 = point_x ;\n y2 = point_y ;\n rx = size_x ;\n ry = size_y ;\n if ( is_clockwise != is_large_arc ) sign = 1 ;\n else sign = - 1 ;\n fz_rotate ( & rotmat , rotation_angle ) ;\n fz_rotate ( & revmat , - rotation_angle ) ;\n rx = fabsf ( rx ) ;\n ry = fabsf ( ry ) ;\n if ( rx < 0.001f || ry < 0.001f || ( x1 == x2 && y1 == y2 ) ) {\n fz_lineto ( doc , path , x2 , y2 ) ;\n return ;\n }\n pt . x = ( x1 - x2 ) / 2 ;\n pt . y = ( y1 - y2 ) / 2 ;\n fz_transform_vector ( & pt , & revmat ) ;\n x1t = pt . x ;\n y1t = pt . y ;\n t1 = ( x1t * x1t ) / ( rx * rx ) + ( y1t * y1t ) / ( ry * ry ) ;\n if ( t1 > 1 ) {\n rx = rx * sqrtf ( t1 ) ;\n ry = ry * sqrtf ( t1 ) ;\n }\n t1 = ( rx * rx * ry * ry ) - ( rx * rx * y1t * y1t ) - ( ry * ry * x1t * x1t ) ;\n t2 = ( rx * rx * y1t * y1t ) + ( ry * ry * x1t * x1t ) ;\n t3 = t1 / t2 ;\n if ( t3 < 0 ) t3 = 0 ;\n t3 = sqrtf ( t3 ) ;\n cxt = sign * t3 * ( rx * y1t ) / ry ;\n cyt = sign * t3 * - ( ry * x1t ) / rx ;\n pt . x = cxt ;\n pt . y = cyt ;\n fz_transform_vector ( & pt , & rotmat ) ;\n cx = pt . x + ( x1 + x2 ) / 2 ;\n cy = pt . y + ( y1 + y2 ) / 2 ;\n {\n fz_point coord1 , coord2 , coord3 , coord4 ;\n coord1 . x = 1 ;\n coord1 . y = 0 ;\n coord2 . x = ( x1t - cxt ) / rx ;\n coord2 . y = ( y1t - cyt ) / ry ;\n coord3 . x = ( x1t - cxt ) / rx ;\n coord3 . y = ( y1t - cyt ) / ry ;\n coord4 . x = ( - x1t - cxt ) / rx ;\n coord4 . y = ( - y1t - cyt ) / ry ;\n th1 = angle_between ( coord1 , coord2 ) ;\n dth = angle_between ( coord3 , coord4 ) ;\n if ( dth < 0 && ! is_clockwise ) dth += ( ( ( float ) M_PI / 180 ) * 360 ) ;\n if ( dth > 0 && is_clockwise ) dth -= ( ( ( float ) M_PI / 180 ) * 360 ) ;\n }\n fz_pre_scale ( fz_pre_rotate ( fz_translate ( & mtx , cx , cy ) , rotation_angle ) , rx , ry ) ;\n xps_draw_arc_segment ( doc , path , & mtx , th1 , th1 + dth , is_clockwise ) ;\n fz_lineto ( doc , path , point_x , point_y ) ;\n }"}
{"idx": 271, "target": 0, "func": "static void idr_extend_identifier ( struct idrent * wnp , int numsize , int nullsize ) {\n unsigned char * p ;\n int wnp_ext_off ;\n wnp_ext_off = wnp -> isoent -> ext_off ;\n if ( wnp -> noff + numsize != wnp_ext_off ) {\n p = ( unsigned char * ) wnp -> isoent -> identifier ;\n memmove ( p + wnp -> noff + numsize , p + wnp_ext_off , wnp -> isoent -> ext_len + nullsize ) ;\n wnp -> isoent -> ext_off = wnp_ext_off = wnp -> noff + numsize ;\n wnp -> isoent -> id_len = wnp_ext_off + wnp -> isoent -> ext_len ;\n }\n }"}
{"idx": 272, "target": 0, "func": "void unlink_thd ( THD * thd ) {\n DBUG_ENTER ( \"unlink_thd\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"thd: 0x%lx\" , ( long ) thd ) ) ;\n thd_cleanup ( thd ) ;\n dec_connection_count ( thd ) ;\n thd -> add_status_to_global ( ) ;\n mysql_mutex_lock ( & LOCK_thread_count ) ;\n thd -> unlink ( ) ;\n DBUG_EXECUTE_IF ( \"sleep_after_lock_thread_count_before_delete_thd\" , sleep ( 5 ) ;\n ) ;\n if ( unlikely ( abort_loop ) ) {\n delete thd ;\n thd = 0 ;\n }\n thread_count -- ;\n mysql_mutex_unlock ( & LOCK_thread_count ) ;\n delete thd ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 273, "target": 0, "func": "Node * eval_const_expressions ( PlannerInfo * root , Node * node ) {\n eval_const_expressions_context context ;\n if ( root ) context . boundParams = root -> glob -> boundParams ;\n else context . boundParams = NULL ;\n context . root = root ;\n context . active_fns = NIL ;\n context . case_val = NULL ;\n context . estimate = false ;\n return eval_const_expressions_mutator ( node , & context ) ;\n }"}
{"idx": 274, "target": 0, "func": "static void gic_thiscpu_write ( void * opaque , hwaddr addr , uint64_t value , unsigned size ) {\n GICState * s = ( GICState * ) opaque ;\n gic_cpu_write ( s , gic_get_current_cpu ( s ) , addr , value ) ;\n }"}
{"idx": 275, "target": 0, "func": "static void qcms_transform_module_gamma_table ( struct qcms_modular_transform * transform , float * src , float * dest , size_t length ) {\n size_t i ;\n float out_r , out_g , out_b ;\n for ( i = 0 ;\n i < length ;\n i ++ ) {\n float in_r = * src ++ ;\n float in_g = * src ++ ;\n float in_b = * src ++ ;\n out_r = lut_interp_linear_float ( in_r , transform -> input_clut_table_r , 256 ) ;\n out_g = lut_interp_linear_float ( in_g , transform -> input_clut_table_g , 256 ) ;\n out_b = lut_interp_linear_float ( in_b , transform -> input_clut_table_b , 256 ) ;\n * dest ++ = clamp_float ( out_r ) ;\n * dest ++ = clamp_float ( out_g ) ;\n * dest ++ = clamp_float ( out_b ) ;\n }\n }"}
{"idx": 276, "target": 0, "func": "TEST_F ( ShortcutsProviderTest , TrickySingleMatch ) {\n base : : string16 text ( ASCIIToUTF16 ( \"about:o\" ) ) ;\n std : : string expected_url ( \"chrome://omnibox/\" ) ;\n ExpectedURLs expected_urls ;\n expected_urls . push_back ( ExpectedURLAndAllowedToBeDefault ( expected_url , true ) ) ;\n RunShortcutsProviderTest ( provider_ , text , false , expected_urls , expected_url , ASCIIToUTF16 ( \"mnibox\" ) ) ;\n expected_urls . clear ( ) ;\n expected_urls . push_back ( ExpectedURLAndAllowedToBeDefault ( expected_url , false ) ) ;\n RunShortcutsProviderTest ( provider_ , text , true , expected_urls , expected_url , ASCIIToUTF16 ( \"mnibox\" ) ) ;\n text = ASCIIToUTF16 ( \"www/real sp\" ) ;\n expected_url = \"http://www/real%20space/long-url-with-space.html\" ;\n expected_urls . clear ( ) ;\n expected_urls . push_back ( ExpectedURLAndAllowedToBeDefault ( expected_url , true ) ) ;\n RunShortcutsProviderTest ( provider_ , text , false , expected_urls , expected_url , ASCIIToUTF16 ( \"ace/long-url-with-space.html\" ) ) ;\n expected_urls . clear ( ) ;\n expected_urls . push_back ( ExpectedURLAndAllowedToBeDefault ( expected_url , false ) ) ;\n RunShortcutsProviderTest ( provider_ , text , true , expected_urls , expected_url , ASCIIToUTF16 ( \"ace/long-url-with-space.html\" ) ) ;\n text = ASCIIToUTF16 ( \"notrailing.com/\" ) ;\n expected_url = \"http:/otrailing.com/\" ;\n expected_urls . clear ( ) ;\n expected_urls . push_back ( ExpectedURLAndAllowedToBeDefault ( expected_url , true ) ) ;\n RunShortcutsProviderTest ( provider_ , text , true , expected_urls , expected_url , base : : string16 ( ) ) ;\n text = ASCIIToUTF16 ( \"http:///foo.com\" ) ;\n expected_url = \"http://foo.com/\" ;\n expected_urls . clear ( ) ;\n expected_urls . push_back ( ExpectedURLAndAllowedToBeDefault ( expected_url , true ) ) ;\n RunShortcutsProviderTest ( provider_ , text , true , expected_urls , expected_url , base : : string16 ( ) ) ;\n text = ASCIIToUTF16 ( \"trailing1\" ) ;\n expected_url = \"http://trailing1.com/\" ;\n expected_urls . clear ( ) ;\n expected_urls . push_back ( ExpectedURLAndAllowedToBeDefault ( expected_url , true ) ) ;\n RunShortcutsProviderTest ( provider_ , text , false , expected_urls , expected_url , ASCIIToUTF16 ( \".com\" ) ) ;\n text = ASCIIToUTF16 ( \"trailing1 \" ) ;\n expected_urls . clear ( ) ;\n expected_urls . push_back ( ExpectedURLAndAllowedToBeDefault ( expected_url , false ) ) ;\n RunShortcutsProviderTest ( provider_ , text , false , expected_urls , expected_url , ASCIIToUTF16 ( \".com\" ) ) ;\n text = ASCIIToUTF16 ( \"about:trailing2\" ) ;\n expected_url = \"chrome://trailing2blah/\" ;\n expected_urls . clear ( ) ;\n expected_urls . push_back ( ExpectedURLAndAllowedToBeDefault ( expected_url , true ) ) ;\n RunShortcutsProviderTest ( provider_ , text , false , expected_urls , expected_url , ASCIIToUTF16 ( \"blah\" ) ) ;\n text = ASCIIToUTF16 ( \"about:trailing2 \" ) ;\n expected_urls . clear ( ) ;\n expected_urls . push_back ( ExpectedURLAndAllowedToBeDefault ( expected_url , false ) ) ;\n RunShortcutsProviderTest ( provider_ , text , false , expected_urls , expected_url , ASCIIToUTF16 ( \"blah\" ) ) ;\n }"}
{"idx": 277, "target": 0, "func": "static void usb_ehci_pci_exit ( PCIDevice * dev ) {\n EHCIPCIState * i = PCI_EHCI ( dev ) ;\n EHCIState * s = & i -> ehci ;\n usb_ehci_unrealize ( s , DEVICE ( dev ) , NULL ) ;\n g_free ( s -> irq ) ;\n s -> irq = NULL ;\n }"}
{"idx": 278, "target": 1, "func": "static int sbr_mapping ( AACContext * ac , SpectralBandReplication * sbr , SBRData * ch_data , int e_a [ 2 ] ) {\n int e , i , m ;\n memset ( ch_data -> s_indexmapped [ 1 ] , 0 , 7 * sizeof ( ch_data -> s_indexmapped [ 1 ] ) ) ;\n for ( e = 0 ;\n e < ch_data -> bs_num_env ;\n e ++ ) {\n const unsigned int ilim = sbr -> n [ ch_data -> bs_freq_res [ e + 1 ] ] ;\n uint16_t * table = ch_data -> bs_freq_res [ e + 1 ] ? sbr -> f_tablehigh : sbr -> f_tablelow ;\n int k ;\n if ( sbr -> kx [ 1 ] != table [ 0 ] ) {\n av_log ( ac -> avctx , AV_LOG_ERROR , \"kx != f_table{\nhigh,low}\n[0]. \" \"Derived frequency tables were not regenerated.\\n\" ) ;\n sbr_turnoff ( sbr ) ;\n return AVERROR_BUG ;\n }\n for ( i = 0 ;\n i < ilim ;\n i ++ ) for ( m = table [ i ] ;\n m < table [ i + 1 ] ;\n m ++ ) sbr -> e_origmapped [ e ] [ m - sbr -> kx [ 1 ] ] = ch_data -> env_facs [ e + 1 ] [ i ] ;\n k = ( ch_data -> bs_num_noise > 1 ) && ( ch_data -> t_env [ e ] >= ch_data -> t_q [ 1 ] ) ;\n for ( i = 0 ;\n i < sbr -> n_q ;\n i ++ ) for ( m = sbr -> f_tablenoise [ i ] ;\n m < sbr -> f_tablenoise [ i + 1 ] ;\n m ++ ) sbr -> q_mapped [ e ] [ m - sbr -> kx [ 1 ] ] = ch_data -> noise_facs [ k + 1 ] [ i ] ;\n for ( i = 0 ;\n i < sbr -> n [ 1 ] ;\n i ++ ) {\n if ( ch_data -> bs_add_harmonic_flag ) {\n const unsigned int m_midpoint = ( sbr -> f_tablehigh [ i ] + sbr -> f_tablehigh [ i + 1 ] ) >> 1 ;\n ch_data -> s_indexmapped [ e + 1 ] [ m_midpoint - sbr -> kx [ 1 ] ] = ch_data -> bs_add_harmonic [ i ] * ( e >= e_a [ 1 ] || ( ch_data -> s_indexmapped [ 0 ] [ m_midpoint - sbr -> kx [ 1 ] ] == 1 ) ) ;\n }\n }\n for ( i = 0 ;\n i < ilim ;\n i ++ ) {\n int additional_sinusoid_present = 0 ;\n for ( m = table [ i ] ;\n m < table [ i + 1 ] ;\n m ++ ) {\n if ( ch_data -> s_indexmapped [ e + 1 ] [ m - sbr -> kx [ 1 ] ] ) {\n additional_sinusoid_present = 1 ;\n break ;\n }\n }\n memset ( & sbr -> s_mapped [ e ] [ table [ i ] - sbr -> kx [ 1 ] ] , additional_sinusoid_present , ( table [ i + 1 ] - table [ i ] ) * sizeof ( sbr -> s_mapped [ e ] [ 0 ] ) ) ;\n }\n }\n memcpy ( ch_data -> s_indexmapped [ 0 ] , ch_data -> s_indexmapped [ ch_data -> bs_num_env ] , sizeof ( ch_data -> s_indexmapped [ 0 ] ) ) ;\n return 0 ;\n }"}
{"idx": 279, "target": 0, "func": "static guint16 de_network_name ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ ) {\n guint8 oct ;\n guint32 curr_offset ;\n guint8 coding_scheme , num_spare_bits ;\n guint32 num_text_bits ;\n proto_item * item ;\n curr_offset = offset ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n proto_tree_add_item ( tree , hf_gsm_a_extension , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n coding_scheme = ( oct & 0x70 ) >> 4 ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_coding_scheme , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_add_ci , tvb , curr_offset , 1 , ENC_NA ) ;\n num_spare_bits = oct & 0x07 ;\n item = proto_tree_add_item ( tree , hf_gsm_a_dtap_number_of_spare_bits , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n NO_MORE_DATA_CHECK ( len ) ;\n switch ( coding_scheme ) {\n case 0 : num_text_bits = ( ( len - 1 ) << 3 ) - num_spare_bits ;\n if ( num_spare_bits && ( num_text_bits % 7 ) ) {\n expert_add_info ( pinfo , item , & ei_gsm_a_dtap_text_string_not_multiple_of_7 ) ;\n }\n proto_tree_add_ts_23_038_7bits_item ( tree , hf_gsm_a_dtap_text_string , tvb , curr_offset << 3 , num_text_bits / 7 ) ;\n break ;\n case 1 : proto_tree_add_item ( tree , hf_gsm_a_dtap_text_string , tvb , curr_offset , len - 1 , ENC_UCS_2 | ENC_BIG_ENDIAN ) ;\n break ;\n default : proto_tree_add_expert ( tree , pinfo , & ei_gsm_a_dtap_coding_scheme , tvb , curr_offset , len - 1 ) ;\n }\n return ( len ) ;\n }"}
{"idx": 280, "target": 0, "func": "unsigned long # define BN_LONG long # define BN_BITS 128 # define BN_BYTES 8 # define BN_BITS2 64 # define BN_BITS4 32 # define BN_MASK ( 0xffffffffffffffffffffffffffffffffLL ) # define BN_MASK2 ( 0xffffffffffffffffL ) # define BN_MASK2l ( 0xffffffffL ) # define BN_MASK2h ( 0xffffffff00000000L ) # define BN_MASK2h1 ( 0xffffffff80000000L ) # define BN_TBIT ( 0x8000000000000000L ) # define BN_DEC_CONV ( 10000000000000000000UL ) # define BN_DEC_FMT1 \"%lu\" # define BN_DEC_FMT2 \"%019lu\" # define BN_DEC_NUM 19 # define BN_HEX_FMT1 \"%lX\" # define BN_HEX_FMT2 \"%016lX\" # endif # ifdef SIXTY_FOUR_BIT # undef BN_LLONG # undef BN_ULLONG # define BN_ULONG unsigned long long # define BN_LONG long long # define BN_BITS 128 # define BN_BYTES 8 # define BN_BITS2 64 # define BN_BITS4 32 # define BN_MASK2 ( 0xffffffffffffffffLL ) # define BN_MASK2l ( 0xffffffffL ) # define BN_MASK2h ( 0xffffffff00000000LL ) # define BN_MASK2h1 ( 0xffffffff80000000LL ) # define BN_TBIT ( 0x8000000000000000LL ) # define BN_DEC_CONV ( 10000000000000000000ULL ) # define BN_DEC_FMT1 \"%llu\" # define BN_DEC_FMT2 \"%019llu\" # define BN_DEC_NUM 19 # define BN_HEX_FMT1 \"%llX\" # define BN_HEX_FMT2 \"%016llX\" # endif # ifdef THIRTY_TWO_BIT # ifdef BN_LLONG # if defined ( _WIN32 ) && ! defined ( __GNUC__ ) # define BN_ULLONG unsigned __int64 # define BN_MASK ( 0xffffffffffffffffI64 ) # else # define BN_ULLONG unsigned long long # define BN_MASK ( 0xffffffffffffffffLL ) # endif # endif # define BN_ULONG unsigned int # define BN_LONG int # define BN_BITS 64 # define BN_BYTES 4 # define BN_BITS2 32 # define BN_BITS4 16 # define BN_MASK2 ( 0xffffffffL ) # define BN_MASK2l ( 0xffff ) # define BN_MASK2h1 ( 0xffff8000L ) # define BN_MASK2h ( 0xffff0000L ) # define BN_TBIT ( 0x80000000L ) # define BN_DEC_CONV ( 1000000000L ) # define BN_DEC_FMT1 \"%u\" # define BN_DEC_FMT2 \"%09u\" # define BN_DEC_NUM 9 # define BN_HEX_FMT1 \"%X\" # define BN_HEX_FMT2 \"%08X\" # endif # define BN_DEFAULT_BITS 1280 # define BN_FLG_MALLOCED 0x01 # define BN_FLG_STATIC_DATA 0x02 # define BN_FLG_CONSTTIME 0x04 # ifndef OPENSSL_NO_DEPRECATED # define BN_FLG_EXP_CONSTTIME BN_FLG_CONSTTIME # endif # ifndef OPENSSL_NO_DEPRECATED # define BN_FLG_FREE 0x8000 # endif # define BN_set_flags ( b , n ) ( ( b ) -> flags |= ( n ) ) # define BN_get_flags ( b , n ) ( ( b ) -> flags & ( n ) ) # define BN_with_flags ( dest , b , n ) ( ( dest ) -> d = ( b ) -> d , \\ ( dest ) -> top = ( b ) -> top , \\ ( dest ) -> dmax = ( b ) -> dmax , \\ ( dest ) -> neg = ( b ) -> neg , \\ ( dest ) -> flags = ( ( ( dest ) -> flags & BN_FLG_MALLOCED ) \\ | ( ( b ) -> flags & ~ BN_FLG_MALLOCED ) \\ | BN_FLG_STATIC_DATA \\ | ( n ) ) ) # if 0 typedef struct bignum_st BIGNUM ;\n typedef struct bignum_ctx BN_CTX ;\n typedef struct bn_blinding_st BN_BLINDING ;\n typedef struct bn_mont_ctx_st BN_MONT_CTX ;\n typedef struct bn_recp_ctx_st BN_RECP_CTX ;\n typedef struct bn_gencb_st BN_GENCB ;\n # endif struct bignum_st {\n BN_ULONG * d ;\n int top ;\n int dmax ;\n int neg ;\n int flags ;\n }\n ;\n struct bn_mont_ctx_st {\n int ri ;\n BIGNUM RR ;\n BIGNUM N ;\n BIGNUM Ni ;\n BN_ULONG n0 [ 2 ] ;\n int flags ;\n }\n ;\n struct bn_recp_ctx_st {\n BIGNUM N ;\n BIGNUM Nr ;\n int num_bits ;\n int shift ;\n int flags ;\n }\n ;\n struct bn_gencb_st {\n unsigned int ver ;\n void * arg ;\n union {\n void ( * cb_1 ) ( int , int , void * ) ;\n int ( * cb_2 ) ( int , int , BN_GENCB * ) ;\n }\n cb ;\n }\n ;\n int BN_GENCB_call ( BN_GENCB * cb , int a , int b ) ;\n # define BN_GENCB_set_old ( gencb , callback , cb_arg ) {\n \\ BN_GENCB * tmp_gencb = ( gencb ) ;\n \\ tmp_gencb -> ver = 1 ;\n \\ tmp_gencb -> arg = ( cb_arg ) ;\n \\ tmp_gencb -> cb . cb_1 = ( callback ) ;\n }\n # define BN_GENCB_set ( gencb , callback , cb_arg ) {\n \\ BN_GENCB * tmp_gencb = ( gencb ) ;\n \\ tmp_gencb -> ver = 2 ;\n \\ tmp_gencb -> arg = ( cb_arg ) ;\n \\ tmp_gencb -> cb . cb_2 = ( callback ) ;\n }\n # define BN_prime_checks 0 # define BN_prime_checks_for_size ( b ) ( ( b ) >= 1300 ? 2 : \\ ( b ) >= 850 ? 3 : \\ ( b ) >= 650 ? 4 : \\ ( b ) >= 550 ? 5 : \\ ( b ) >= 450 ? 6 : \\ ( b ) >= 400 ? 7 : \\ ( b ) >= 350 ? 8 : \\ ( b ) >= 300 ? 9 : \\ ( b ) >= 250 ? 12 : \\ ( b ) >= 200 ? 15 : \\ ( b ) >= 150 ? 18 : \\ 27 ) # define BN_num_bytes ( a ) ( ( BN_num_bits ( a ) + 7 ) / 8 ) # define BN_abs_is_word ( a , w ) ( ( ( ( a ) -> top == 1 ) && ( ( a ) -> d [ 0 ] == ( BN_ULONG ) ( w ) ) ) || \\ ( ( ( w ) == 0 ) && ( ( a ) -> top == 0 ) ) ) # define BN_is_zero ( a ) ( ( a ) -> top == 0 ) # define BN_is_one ( a ) ( BN_abs_is_word ( ( a ) , 1 ) && ! ( a ) -> neg ) # define BN_is_word ( a , w ) ( BN_abs_is_word ( ( a ) , ( w ) ) && ( ! ( w ) || ! ( a ) -> neg ) ) # define BN_is_odd ( a ) ( ( ( a ) -> top > 0 ) && ( ( a ) -> d [ 0 ] & 1 ) ) # define BN_one ( a ) ( BN_set_word ( ( a ) , 1 ) ) # define BN_zero_ex ( a ) \\ do {\n \\ BIGNUM * _tmp_bn = ( a ) ;\n \\ _tmp_bn -> top = 0 ;\n \\ _tmp_bn -> neg = 0 ;\n \\ }\n while ( 0 ) # ifdef OPENSSL_NO_DEPRECATED # define BN_zero ( a ) BN_zero_ex ( a ) # else # define BN_zero ( a ) ( BN_set_word ( ( a ) , 0 ) ) # endif const BIGNUM * BN_value_one ( void ) ;\n char * BN_options ( void ) ;\n BN_CTX * BN_CTX_new ( void ) ;\n # ifndef OPENSSL_NO_DEPRECATED void BN_CTX_init ( BN_CTX * c ) ;\n # endif void BN_CTX_free ( BN_CTX * c ) ;\n void BN_CTX_start ( BN_CTX * ctx ) ;\n BIGNUM * BN_CTX_get ( BN_CTX * ctx ) ;\n void BN_CTX_end ( BN_CTX * ctx ) ;\n int BN_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_pseudo_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_pseudo_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_num_bits ( const BIGNUM * a ) ;\n int BN_num_bits_word ( BN_ULONG l ) ;\n BIGNUM * BN_new ( void ) ;\n void BN_init ( BIGNUM * ) ;\n void BN_clear_free ( BIGNUM * a ) ;\n BIGNUM * BN_copy ( BIGNUM * a , const BIGNUM * b ) ;\n void BN_swap ( BIGNUM * a , BIGNUM * b ) ;\n BIGNUM * BN_bin2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2bin ( const BIGNUM * a , unsigned char * to ) ;\n BIGNUM * BN_mpi2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2mpi ( const BIGNUM * a , unsigned char * to ) ;\n int BN_sub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_usub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_uadd ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n int BN_sqr ( BIGNUM * r , const BIGNUM * a , BN_CTX * ctx ) ;\n void BN_set_negative ( BIGNUM * b , int n ) ;\n # define BN_is_negative ( a ) ( ( a ) -> neg != 0 ) int BN_div ( BIGNUM * dv , BIGNUM * rem , const BIGNUM * m , const BIGNUM * d , BN_CTX * ctx ) ;\n # define BN_mod ( rem , m , d , ctx ) BN_div ( NULL , ( rem ) , ( m ) , ( d ) , ( ctx ) ) int BN_nnmod ( BIGNUM * r , const BIGNUM * m , const BIGNUM * d , BN_CTX * ctx ) ;\n int BN_mod_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_add_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m ) ;\n int BN_mod_sub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_sub_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m ) ;\n int BN_mod_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_sqr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift1 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift1_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m ) ;\n int BN_mod_lshift ( BIGNUM * r , const BIGNUM * a , int n , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift_quick ( BIGNUM * r , const BIGNUM * a , int n , const BIGNUM * m ) ;\n BN_ULONG BN_mod_word ( const BIGNUM * a , BN_ULONG w ) ;\n BN_ULONG BN_div_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_mul_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_add_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_sub_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_set_word ( BIGNUM * a , BN_ULONG w ) ;\n BN_ULONG BN_get_word ( const BIGNUM * a ) ;\n int BN_cmp ( const BIGNUM * a , const BIGNUM * b ) ;\n void BN_free ( BIGNUM * a ) ;\n int BN_is_bit_set ( const BIGNUM * a , int n ) ;\n int BN_lshift ( BIGNUM * r , const BIGNUM * a , int n ) ;\n int BN_lshift1 ( BIGNUM * r , const BIGNUM * a ) ;\n int BN_exp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_mod_exp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_exp_mont ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) ;\n int BN_mod_exp_mont_consttime ( BIGNUM * rr , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * in_mont ) ;\n int BN_mod_exp_mont_word ( BIGNUM * r , BN_ULONG a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) ;\n int BN_mod_exp2_mont ( BIGNUM * r , const BIGNUM * a1 , const BIGNUM * p1 , const BIGNUM * a2 , const BIGNUM * p2 , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) ;\n int BN_mod_exp_simple ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mask_bits ( BIGNUM * a , int n ) ;\n # ifndef OPENSSL_NO_FP_API int BN_print_fp ( FILE * fp , const BIGNUM * a ) ;\n # endif # ifdef HEADER_BIO_H int BN_print ( BIO * fp , const BIGNUM * a ) ;\n # else int BN_print ( void * fp , const BIGNUM * a ) ;\n # endif int BN_reciprocal ( BIGNUM * r , const BIGNUM * m , int len , BN_CTX * ctx ) ;\n int BN_rshift ( BIGNUM * r , const BIGNUM * a , int n ) ;\n int BN_rshift1 ( BIGNUM * r , const BIGNUM * a ) ;\n void BN_clear ( BIGNUM * a ) ;\n BIGNUM * BN_dup ( const BIGNUM * a ) ;\n int BN_ucmp ( const BIGNUM * a , const BIGNUM * b ) ;\n int BN_set_bit ( BIGNUM * a , int n ) ;\n int BN_clear_bit ( BIGNUM * a , int n ) ;\n char * BN_bn2hex ( const BIGNUM * a ) ;\n char * BN_bn2dec ( const BIGNUM * a ) ;\n int BN_hex2bn ( BIGNUM * * a , const char * str ) ;\n int BN_dec2bn ( BIGNUM * * a , const char * str ) ;\n int BN_asc2bn ( BIGNUM * * a , const char * str ) ;\n int BN_gcd ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n int BN_kronecker ( const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n BIGNUM * BN_mod_inverse ( BIGNUM * ret , const BIGNUM * a , const BIGNUM * n , BN_CTX * ctx ) ;\n BIGNUM * BN_mod_sqrt ( BIGNUM * ret , const BIGNUM * a , const BIGNUM * n , BN_CTX * ctx ) ;\n void BN_consttime_swap ( BN_ULONG swap , BIGNUM * a , BIGNUM * b , int nwords ) ;\n # ifndef OPENSSL_NO_DEPRECATED BIGNUM * BN_generate_prime ( BIGNUM * ret , int bits , int safe , const BIGNUM * add , const BIGNUM * rem , void ( * callback ) ( int , int , void * ) , void * cb_arg ) ;\n int BN_is_prime ( const BIGNUM * p , int nchecks , void ( * callback ) ( int , int , void * ) , BN_CTX * ctx , void * cb_arg ) ;\n int BN_is_prime_fasttest ( const BIGNUM * p , int nchecks , void ( * callback ) ( int , int , void * ) , BN_CTX * ctx , void * cb_arg , int do_trial_division ) ;\n # endif int BN_generate_prime_ex ( BIGNUM * ret , int bits , int safe , const BIGNUM * add , const BIGNUM * rem , BN_GENCB * cb ) ;\n int BN_is_prime_ex ( const BIGNUM * p , int nchecks , BN_CTX * ctx , BN_GENCB * cb ) ;\n int BN_is_prime_fasttest_ex ( const BIGNUM * p , int nchecks , BN_CTX * ctx , int do_trial_division , BN_GENCB * cb ) ;\n int BN_X931_generate_Xpq ( BIGNUM * Xp , BIGNUM * Xq , int nbits , BN_CTX * ctx ) ;\n int BN_X931_derive_prime_ex ( BIGNUM * p , BIGNUM * p1 , BIGNUM * p2 , const BIGNUM * Xp , const BIGNUM * Xp1 , const BIGNUM * Xp2 , const BIGNUM * e , BN_CTX * ctx , BN_GENCB * cb ) ;\n int BN_X931_generate_prime_ex ( BIGNUM * p , BIGNUM * p1 , BIGNUM * p2 , BIGNUM * Xp1 , BIGNUM * Xp2 , const BIGNUM * Xp , const BIGNUM * e , BN_CTX * ctx , BN_GENCB * cb ) ;\n BN_MONT_CTX * BN_MONT_CTX_new ( void ) ;\n void BN_MONT_CTX_init ( BN_MONT_CTX * ctx ) ;\n int BN_mod_mul_montgomery ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_MONT_CTX * mont , BN_CTX * ctx ) ;\n # define BN_to_montgomery ( r , a , mont , ctx ) BN_mod_mul_montgomery ( \\ ( r ) , ( a ) , & ( ( mont ) -> RR ) , ( mont ) , ( ctx ) ) int BN_from_montgomery ( BIGNUM * r , const BIGNUM * a , BN_MONT_CTX * mont , BN_CTX * ctx ) ;\n void BN_MONT_CTX_free ( BN_MONT_CTX * mont ) ;\n int BN_MONT_CTX_set ( BN_MONT_CTX * mont , const BIGNUM * mod , BN_CTX * ctx ) ;\n BN_MONT_CTX * BN_MONT_CTX_copy ( BN_MONT_CTX * to , BN_MONT_CTX * from ) ;\n BN_MONT_CTX * BN_MONT_CTX_set_locked ( BN_MONT_CTX * * pmont , int lock , const BIGNUM * mod , BN_CTX * ctx ) ;\n # define BN_BLINDING_NO_UPDATE 0x00000001 # define BN_BLINDING_NO_RECREATE 0x00000002 BN_BLINDING * BN_BLINDING_new ( const BIGNUM * A , const BIGNUM * Ai , BIGNUM * mod ) ;\n void BN_BLINDING_free ( BN_BLINDING * b ) ;\n int BN_BLINDING_update ( BN_BLINDING * b , BN_CTX * ctx ) ;\n int BN_BLINDING_convert ( BIGNUM * n , BN_BLINDING * b , BN_CTX * ctx ) ;\n int BN_BLINDING_invert ( BIGNUM * n , BN_BLINDING * b , BN_CTX * ctx ) ;\n int BN_BLINDING_convert_ex ( BIGNUM * n , BIGNUM * r , BN_BLINDING * b , BN_CTX * ) ;\n int BN_BLINDING_invert_ex ( BIGNUM * n , const BIGNUM * r , BN_BLINDING * b , BN_CTX * ) ;\n # ifndef OPENSSL_NO_DEPRECATED unsigned long BN_BLINDING_get_thread_id ( const BN_BLINDING * ) ;\n void BN_BLINDING_set_thread_id ( BN_BLINDING * , unsigned long ) ;\n # endif CRYPTO_THREADID * BN_BLINDING_thread_id ( BN_BLINDING * ) ;\n unsigned long BN_BLINDING_get_flags ( const BN_BLINDING * ) ;\n void BN_BLINDING_set_flags ( BN_BLINDING * , unsigned long ) ;\n BN_BLINDING * BN_BLINDING_create_param ( BN_BLINDING * b , const BIGNUM * e , BIGNUM * m , BN_CTX * ctx , int ( * bn_mod_exp ) ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) , BN_MONT_CTX * m_ctx ) ;\n # ifndef OPENSSL_NO_DEPRECATED void BN_set_params ( int mul , int high , int low , int mont ) ;\n int BN_get_params ( int which ) ;\n # endif void BN_RECP_CTX_init ( BN_RECP_CTX * recp ) ;\n BN_RECP_CTX * BN_RECP_CTX_new ( void ) ;\n void BN_RECP_CTX_free ( BN_RECP_CTX * recp ) ;\n int BN_RECP_CTX_set ( BN_RECP_CTX * recp , const BIGNUM * rdiv , BN_CTX * ctx ) ;\n int BN_mod_mul_reciprocal ( BIGNUM * r , const BIGNUM * x , const BIGNUM * y , BN_RECP_CTX * recp , BN_CTX * ctx ) ;\n int BN_mod_exp_recp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_div_recp ( BIGNUM * dv , BIGNUM * rem , const BIGNUM * m , BN_RECP_CTX * recp , BN_CTX * ctx ) ;\n # ifndef OPENSSL_NO_EC2M int BN_GF2m_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n # define BN_GF2m_sub ( r , a , b ) BN_GF2m_add ( r , a , b ) int BN_GF2m_mod ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p ) ;\n int BN_GF2m_mod_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_inv ( BIGNUM * r , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_div ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_exp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqrt ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_solve_quad ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n # define BN_GF2m_cmp ( a , b ) BN_ucmp ( ( a ) , ( b ) ) int BN_GF2m_mod_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] ) ;\n int BN_GF2m_mod_mul_arr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqr_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_inv_arr ( BIGNUM * r , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_div_arr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_exp_arr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqrt_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_solve_quad_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_poly2arr ( const BIGNUM * a , int p [ ] , int max ) ;\n int BN_GF2m_arr2poly ( const int p [ ] , BIGNUM * a ) ;\n # endif int BN_nist_mod_192 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_224 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_256 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_384 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_521 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n const BIGNUM * BN_get0_nist_prime_192 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_224 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_256 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_384 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_521 ( void ) ;\n int ( * BN_nist_mod_func ( const BIGNUM * p ) ) ( BIGNUM * r , const BIGNUM * a , const BIGNUM * field , BN_CTX * ctx ) ;\n int BN_generate_dsa_nonce ( BIGNUM * out , const BIGNUM * range , const BIGNUM * priv , const unsigned char * message , size_t message_len , BN_CTX * ctx ) ;\n # define bn_expand ( a , bits ) ( ( ( ( ( ( bits + BN_BITS2 - 1 ) ) / BN_BITS2 ) ) <= ( a ) -> dmax ) ? \\ ( a ) : bn_expand2 ( ( a ) , ( bits + BN_BITS2 - 1 ) / BN_BITS2 ) ) # define bn_wexpand ( a , words ) ( ( ( words ) <= ( a ) -> dmax ) ? ( a ) : bn_expand2 ( ( a ) , ( words ) ) ) BIGNUM * bn_expand2 ( BIGNUM * a , int words ) ;\n # ifndef OPENSSL_NO_DEPRECATED BIGNUM * bn_dup_expand ( const BIGNUM * a , int words ) ;\n # endif # ifdef BN_DEBUG # include < assert . h > # ifdef BN_DEBUG_RAND # ifndef RAND_pseudo_bytes int RAND_pseudo_bytes ( unsigned char * buf , int num ) ;\n # define BN_DEBUG_TRIX # endif # define bn_pollute ( a ) \\ do {\n \\ const BIGNUM * _bnum1 = ( a ) ;\n \\ if ( _bnum1 -> top < _bnum1 -> dmax ) {\n \\ unsigned char _tmp_char ;\n \\ \\ BN_ULONG * _not_const ;\n \\ memcpy ( & _not_const , & _bnum1 -> d , sizeof ( BN_ULONG * ) ) ;\n \\ RAND_pseudo_bytes ( & _tmp_char , 1 ) ;\n \\ memset ( ( unsigned char * ) ( _not_const + _bnum1 -> top ) , _tmp_char , \\ ( _bnum1 -> dmax - _bnum1 -> top ) * sizeof ( BN_ULONG ) ) ;\n \\ }\n \\ }\n while ( 0 ) # ifdef BN_DEBUG_TRIX # undef RAND_pseudo_bytes # endif # else # define bn_pollute ( a ) # endif # define bn_check_top ( a ) \\ do {\n \\ const BIGNUM * _bnum2 = ( a ) ;\n \\ if ( _bnum2 != NULL ) {\n \\ assert ( ( _bnum2 -> top == 0 ) || \\ ( _bnum2 -> d [ _bnum2 -> top - 1 ] != 0 ) ) ;\n \\ bn_pollute ( _bnum2 ) ;\n \\ }\n \\ }\n while ( 0 ) # define bn_fix_top ( a ) bn_check_top ( a ) # define bn_check_size ( bn , bits ) bn_wcheck_size ( bn , ( ( bits + BN_BITS2 - 1 ) ) / BN_BITS2 ) # define bn_wcheck_size ( bn , words ) \\ do {\n \\ const BIGNUM * _bnum2 = ( bn ) ;\n \\ assert ( words <= ( _bnum2 ) -> dmax && words >= ( _bnum2 ) -> top ) ;\n \\ }\n while ( 0 ) # else # define bn_pollute ( a ) # define bn_check_top ( a ) # define bn_fix_top ( a ) bn_correct_top ( a ) # define bn_check_size ( bn , bits ) # define bn_wcheck_size ( bn , words ) # endif # define bn_correct_top ( a ) \\ {\n \\ BN_ULONG * ftl ;\n \\ int tmp_top = ( a ) -> top ;\n \\ if ( tmp_top > 0 ) \\ {\n \\ for ( ftl = & ( ( a ) -> d [ tmp_top - 1 ] ) ;\n tmp_top > 0 ;\n tmp_top -- ) \\ if ( * ( ftl -- ) ) break ;\n \\ ( a ) -> top = tmp_top ;\n \\ }\n \\ bn_pollute ( a ) ;\n \\ }\n BN_ULONG bn_mul_add_words ( BN_ULONG * rp , const BN_ULONG * ap , int num , BN_ULONG w ) ;\n BN_ULONG bn_mul_words ( BN_ULONG * rp , const BN_ULONG * ap , int num , BN_ULONG w )"}
{"idx": 281, "target": 0, "func": "static void word ( struct vars * v , int dir , struct state * lp , struct state * rp ) {\n assert ( dir == AHEAD || dir == BEHIND ) ;\n cloneouts ( v -> nfa , v -> wordchrs , lp , rp , dir ) ;\n }"}
{"idx": 282, "target": 0, "func": "proto_item * proto_tree_add_float ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , float value ) {\n proto_item * pi ;\n header_field_info * hfinfo ;\n CHECK_FOR_NULL_TREE ( tree ) ;\n TRY_TO_FAKE_THIS_ITEM ( tree , hfindex , hfinfo ) ;\n DISSECTOR_ASSERT_FIELD_TYPE ( hfinfo , FT_FLOAT ) ;\n pi = proto_tree_add_pi ( tree , hfinfo , tvb , start , & length ) ;\n proto_tree_set_float ( PNODE_FINFO ( pi ) , value ) ;\n return pi ;\n }"}
{"idx": 283, "target": 0, "func": "static void print_var_int ( const char * var , int val ) {\n printf ( \"%s=%d\\n\" , var , val ) ;\n }"}
{"idx": 284, "target": 0, "func": "static guint qname_labels_count ( const guchar * name , guint name_len ) {\n guint labels = 0 ;\n unsigned i ;\n if ( name_len > 1 ) {\n for ( i = 0 ;\n i < strlen ( name ) ;\n i ++ ) {\n if ( name [ i ] == '.' ) labels ++ ;\n }\n labels ++ ;\n }\n return labels ;\n }"}
{"idx": 285, "target": 0, "func": "static void version ( void ) {\n fprintf ( stdout , \"bsdcpio %s -- %s\\n\" , BSDCPIO_VERSION_STRING , archive_version_details ( ) ) ;\n exit ( 0 ) ;\n }"}
{"idx": 286, "target": 0, "func": "static void fill_label_bitfield ( field_info * fi , gchar * label_str , gboolean is_signed ) {\n char * p ;\n int bitfield_byte_length , bitwidth ;\n guint32 unshifted_value ;\n guint32 value ;\n char buf [ 32 ] ;\n const char * out ;\n header_field_info * hfinfo = fi -> hfinfo ;\n bitwidth = hfinfo_container_bitwidth ( hfinfo ) ;\n if ( is_signed ) value = fvalue_get_sinteger ( & fi -> value ) ;\n else value = fvalue_get_uinteger ( & fi -> value ) ;\n unshifted_value = value ;\n if ( hfinfo -> bitmask ) {\n unshifted_value <<= hfinfo_bitshift ( hfinfo ) ;\n }\n p = decode_bitfield_value ( label_str , unshifted_value , hfinfo -> bitmask , bitwidth ) ;\n bitfield_byte_length = ( int ) ( p - label_str ) ;\n if ( hfinfo -> display == BASE_CUSTOM ) {\n gchar tmp [ ITEM_LABEL_LENGTH ] ;\n const custom_fmt_func_t fmtfunc = ( const custom_fmt_func_t ) hfinfo -> strings ;\n DISSECTOR_ASSERT ( fmtfunc ) ;\n fmtfunc ( tmp , value ) ;\n label_fill ( label_str , bitfield_byte_length , hfinfo , tmp ) ;\n }\n else if ( hfinfo -> strings ) {\n const char * val_str = hf_try_val_to_str_const ( value , hfinfo , \"Unknown\" ) ;\n out = hfinfo_number_vals_format ( hfinfo , buf , value ) ;\n if ( out == NULL ) label_fill ( label_str , bitfield_byte_length , hfinfo , val_str ) ;\n else label_fill_descr ( label_str , bitfield_byte_length , hfinfo , val_str , out ) ;\n }\n else {\n out = hfinfo_number_value_format ( hfinfo , buf , value ) ;\n label_fill ( label_str , bitfield_byte_length , hfinfo , out ) ;\n }\n }"}
{"idx": 287, "target": 1, "func": "static gpgme_error_t status_handler ( void * opaque , int fd ) {\n struct io_cb_data * data = ( struct io_cb_data * ) opaque ;\n engine_gpgsm_t gpgsm = ( engine_gpgsm_t ) data -> handler_value ;\n gpgme_error_t err = 0 ;\n char * line ;\n size_t linelen ;\n do {\n err = assuan_read_line ( gpgsm -> assuan_ctx , & line , & linelen ) ;\n if ( err ) {\n TRACE3 ( DEBUG_CTX , \"gpgme:status_handler\" , gpgsm , \"fd 0x%x: error from assuan (%d) getting status line : %s\" , fd , err , gpg_strerror ( err ) ) ;\n }\n else if ( linelen >= 3 && line [ 0 ] == 'E' && line [ 1 ] == 'R' && line [ 2 ] == 'R' && ( line [ 3 ] == '\\0' || line [ 3 ] == ' ' ) ) {\n if ( line [ 3 ] == ' ' ) err = atoi ( & line [ 4 ] ) ;\n if ( ! err ) err = gpg_error ( GPG_ERR_GENERAL ) ;\n TRACE2 ( DEBUG_CTX , \"gpgme:status_handler\" , gpgsm , \"fd 0x%x: ERR line - mapped to: %s\" , fd , err ? gpg_strerror ( err ) : \"ok\" ) ;\n }\n else if ( linelen >= 2 && line [ 0 ] == 'O' && line [ 1 ] == 'K' && ( line [ 2 ] == '\\0' || line [ 2 ] == ' ' ) ) {\n if ( gpgsm -> status . fnc ) err = gpgsm -> status . fnc ( gpgsm -> status . fnc_value , GPGME_STATUS_EOF , \"\" ) ;\n if ( ! err && gpgsm -> colon . fnc && gpgsm -> colon . any ) {\n gpgsm -> colon . any = 0 ;\n err = gpgsm -> colon . fnc ( gpgsm -> colon . fnc_value , NULL ) ;\n }\n TRACE2 ( DEBUG_CTX , \"gpgme:status_handler\" , gpgsm , \"fd 0x%x: OK line - final status: %s\" , fd , err ? gpg_strerror ( err ) : \"ok\" ) ;\n _gpgme_io_close ( gpgsm -> status_cb . fd ) ;\n return err ;\n }\n else if ( linelen > 2 && line [ 0 ] == 'D' && line [ 1 ] == ' ' && gpgsm -> colon . fnc ) {\n char * src = line + 2 ;\n char * end = line + linelen ;\n char * dst ;\n char * * aline = & gpgsm -> colon . attic . line ;\n int * alinelen = & gpgsm -> colon . attic . linelen ;\n if ( gpgsm -> colon . attic . linesize < * alinelen + linelen + 1 ) {\n char * newline = realloc ( * aline , * alinelen + linelen + 1 ) ;\n if ( ! newline ) err = gpg_error_from_syserror ( ) ;\n else {\n * aline = newline ;\n gpgsm -> colon . attic . linesize += linelen + 1 ;\n }\n }\n if ( ! err ) {\n dst = * aline + * alinelen ;\n while ( ! err && src < end ) {\n if ( * src == '%' && src + 2 < end ) {\n ++ src ;\n * dst = _gpgme_hextobyte ( src ) ;\n ( * alinelen ) ++ ;\n src += 2 ;\n }\n else {\n * dst = * src ++ ;\n ( * alinelen ) ++ ;\n }\n if ( * dst == '\\n' ) {\n gpgsm -> colon . any = 1 ;\n if ( * alinelen > 1 && * ( dst - 1 ) == '\\r' ) dst -- ;\n * dst = '\\0' ;\n err = gpgsm -> colon . fnc ( gpgsm -> colon . fnc_value , * aline ) ;\n if ( ! err ) {\n dst = * aline ;\n * alinelen = 0 ;\n }\n }\n else dst ++ ;\n }\n }\n TRACE2 ( DEBUG_CTX , \"gpgme:status_handler\" , gpgsm , \"fd 0x%x: D line;\n final status: %s\" , fd , err ? gpg_strerror ( err ) : \"ok\" ) ;\n }\n else if ( linelen > 2 && line [ 0 ] == 'D' && line [ 1 ] == ' ' && gpgsm -> inline_data ) {\n char * src = line + 2 ;\n char * end = line + linelen ;\n char * dst = src ;\n gpgme_ssize_t nwritten ;\n linelen = 0 ;\n while ( src < end ) {\n if ( * src == '%' && src + 2 < end ) {\n ++ src ;\n * dst ++ = _gpgme_hextobyte ( src ) ;\n src += 2 ;\n }\n else * dst ++ = * src ++ ;\n linelen ++ ;\n }\n src = line + 2 ;\n while ( linelen > 0 ) {\n nwritten = gpgme_data_write ( gpgsm -> inline_data , src , linelen ) ;\n if ( ! nwritten || ( nwritten < 0 && errno != EINTR ) || nwritten > linelen ) {\n err = gpg_error_from_syserror ( ) ;\n break ;\n }\n src += nwritten ;\n linelen -= nwritten ;\n }\n TRACE2 ( DEBUG_CTX , \"gpgme:status_handler\" , gpgsm , \"fd 0x%x: D inlinedata;\n final status: %s\" , fd , err ? gpg_strerror ( err ) : \"ok\" ) ;\n }\n else if ( linelen > 2 && line [ 0 ] == 'S' && line [ 1 ] == ' ' ) {\n char * rest ;\n gpgme_status_code_t r ;\n rest = strchr ( line + 2 , ' ' ) ;\n if ( ! rest ) rest = line + linelen ;\n else * ( rest ++ ) = 0 ;\n r = _gpgme_parse_status ( line + 2 ) ;\n if ( r >= 0 ) {\n if ( gpgsm -> status . fnc ) err = gpgsm -> status . fnc ( gpgsm -> status . fnc_value , r , rest ) ;\n }\n else fprintf ( stderr , \"[UNKNOWN STATUS]%s %s\" , line + 2 , rest ) ;\n TRACE3 ( DEBUG_CTX , \"gpgme:status_handler\" , gpgsm , \"fd 0x%x: S line (%s) - final status: %s\" , fd , line + 2 , err ? gpg_strerror ( err ) : \"ok\" ) ;\n }\n else if ( linelen >= 7 && line [ 0 ] == 'I' && line [ 1 ] == 'N' && line [ 2 ] == 'Q' && line [ 3 ] == 'U' && line [ 4 ] == 'I' && line [ 5 ] == 'R' && line [ 6 ] == 'E' && ( line [ 7 ] == '\\0' || line [ 7 ] == ' ' ) ) {\n char * keyword = line + 7 ;\n while ( * keyword == ' ' ) keyword ++ ;\n ;\n default_inq_cb ( gpgsm , keyword ) ;\n assuan_write_line ( gpgsm -> assuan_ctx , \"END\" ) ;\n }\n }\n while ( ! err && assuan_pending_line ( gpgsm -> assuan_ctx ) ) ;\n return err ;\n }"}
{"idx": 288, "target": 0, "func": "void my_ungetc ( int c ) {\n * line_buffer_pos ++ = ( char ) c ;\n }"}
{"idx": 289, "target": 0, "func": "static int dtls1_process_out_of_seq_message ( SSL * s , struct hm_header_st * msg_hdr , int * ok ) {\n int i = - 1 ;\n hm_fragment * frag = NULL ;\n pitem * item = NULL ;\n unsigned char seq64be [ 8 ] ;\n unsigned long frag_len = msg_hdr -> frag_len ;\n if ( ( msg_hdr -> frag_off + frag_len ) > msg_hdr -> msg_len ) goto err ;\n memset ( seq64be , 0 , sizeof ( seq64be ) ) ;\n seq64be [ 6 ] = ( unsigned char ) ( msg_hdr -> seq >> 8 ) ;\n seq64be [ 7 ] = ( unsigned char ) msg_hdr -> seq ;\n item = pqueue_find ( s -> d1 -> buffered_messages , seq64be ) ;\n if ( item != NULL && frag_len < msg_hdr -> msg_len ) item = NULL ;\n if ( msg_hdr -> seq <= s -> d1 -> handshake_read_seq || msg_hdr -> seq > s -> d1 -> handshake_read_seq + 10 || item != NULL || ( s -> d1 -> handshake_read_seq == 0 && msg_hdr -> type == SSL3_MT_FINISHED ) ) {\n unsigned char devnull [ 256 ] ;\n while ( frag_len ) {\n i = s -> method -> ssl_read_bytes ( s , SSL3_RT_HANDSHAKE , devnull , frag_len > sizeof ( devnull ) ? sizeof ( devnull ) : frag_len , 0 ) ;\n if ( i <= 0 ) goto err ;\n frag_len -= i ;\n }\n }\n else {\n if ( frag_len && frag_len < msg_hdr -> msg_len ) return dtls1_reassemble_fragment ( s , msg_hdr , ok ) ;\n frag = dtls1_hm_fragment_new ( frag_len , 0 ) ;\n if ( frag == NULL ) goto err ;\n memcpy ( & ( frag -> msg_header ) , msg_hdr , sizeof ( * msg_hdr ) ) ;\n if ( frag_len ) {\n i = s -> method -> ssl_read_bytes ( s , SSL3_RT_HANDSHAKE , frag -> fragment , frag_len , 0 ) ;\n if ( i <= 0 || ( unsigned long ) i != frag_len ) goto err ;\n }\n memset ( seq64be , 0 , sizeof ( seq64be ) ) ;\n seq64be [ 6 ] = ( unsigned char ) ( msg_hdr -> seq >> 8 ) ;\n seq64be [ 7 ] = ( unsigned char ) ( msg_hdr -> seq ) ;\n item = pitem_new ( seq64be , frag ) ;\n if ( item == NULL ) goto err ;\n pqueue_insert ( s -> d1 -> buffered_messages , item ) ;\n }\n return DTLS1_HM_FRAGMENT_RETRY ;\n err : if ( frag != NULL ) dtls1_hm_fragment_free ( frag ) ;\n if ( item != NULL ) OPENSSL_free ( item ) ;\n * ok = 0 ;\n return i ;\n }"}
{"idx": 290, "target": 0, "func": "static bool cgroupfs_mount_cgroup ( void * hdata , const char * root , int type ) {\n size_t bufsz = strlen ( root ) + sizeof ( \"/sys/fs/cgroup\" ) ;\n char * path = NULL ;\n char * * parts = NULL ;\n char * dirname = NULL ;\n char * abs_path = NULL ;\n char * abs_path2 = NULL ;\n struct cgfs_data * cgfs_d ;\n struct cgroup_process_info * info , * base_info ;\n int r , saved_errno = 0 ;\n cgfs_d = hdata ;\n if ( ! cgfs_d ) return false ;\n base_info = cgfs_d -> info ;\n if ( type == LXC_AUTO_CGROUP_FULL_NOSPEC ) type = LXC_AUTO_CGROUP_FULL_MIXED ;\n else if ( type == LXC_AUTO_CGROUP_NOSPEC ) type = LXC_AUTO_CGROUP_MIXED ;\n if ( type < LXC_AUTO_CGROUP_RO || type > LXC_AUTO_CGROUP_FULL_MIXED ) {\n ERROR ( \"could not mount cgroups into container: invalid type specified internally\" ) ;\n errno = EINVAL ;\n return false ;\n }\n path = calloc ( 1 , bufsz ) ;\n if ( ! path ) return false ;\n snprintf ( path , bufsz , \"%s/sys/fs/cgroup\" , root ) ;\n r = safe_mount ( \"cgroup_root\" , path , \"tmpfs\" , MS_NOSUID | MS_NODEV | MS_NOEXEC | MS_RELATIME , \"size=10240k,mode=755\" , root ) ;\n if ( r < 0 ) {\n SYSERROR ( \"could not mount tmpfs to /sys/fs/cgroup in the container\" ) ;\n return false ;\n }\n for ( info = base_info ;\n info ;\n info = info -> next ) {\n size_t subsystem_count , i ;\n struct cgroup_mount_point * mp = info -> designated_mount_point ;\n if ( ! mp ) mp = lxc_cgroup_find_mount_point ( info -> hierarchy , info -> cgroup_path , true ) ;\n if ( ! mp ) {\n SYSERROR ( \"could not find original mount point for cgroup hierarchy while trying to mount cgroup filesystem\" ) ;\n goto out_error ;\n }\n subsystem_count = lxc_array_len ( ( void * * ) info -> hierarchy -> subsystems ) ;\n parts = calloc ( subsystem_count + 1 , sizeof ( char * ) ) ;\n if ( ! parts ) goto out_error ;\n for ( i = 0 ;\n i < subsystem_count ;\n i ++ ) {\n if ( ! strncmp ( info -> hierarchy -> subsystems [ i ] , \"name=\" , 5 ) ) parts [ i ] = info -> hierarchy -> subsystems [ i ] + 5 ;\n else parts [ i ] = info -> hierarchy -> subsystems [ i ] ;\n }\n dirname = lxc_string_join ( \",\" , ( const char * * ) parts , false ) ;\n if ( ! dirname ) goto out_error ;\n abs_path = lxc_append_paths ( path , dirname ) ;\n if ( ! abs_path ) goto out_error ;\n r = mkdir_p ( abs_path , 0755 ) ;\n if ( r < 0 && errno != EEXIST ) {\n SYSERROR ( \"could not create cgroup subsystem directory /sys/fs/cgroup/%s\" , dirname ) ;\n goto out_error ;\n }\n abs_path2 = lxc_append_paths ( abs_path , info -> cgroup_path ) ;\n if ( ! abs_path2 ) goto out_error ;\n if ( type == LXC_AUTO_CGROUP_FULL_RO || type == LXC_AUTO_CGROUP_FULL_RW || type == LXC_AUTO_CGROUP_FULL_MIXED ) {\n if ( strcmp ( mp -> mount_prefix , \"/\" ) != 0 ) {\n ERROR ( \"could not automatically mount cgroup-full to /sys/fs/cgroup/%s: host has no mount point for this cgroup filesystem that has access to the root cgroup\" , dirname ) ;\n goto out_error ;\n }\n r = mount ( mp -> mount_point , abs_path , \"none\" , MS_BIND , 0 ) ;\n if ( r < 0 ) {\n SYSERROR ( \"error bind-mounting %s to %s\" , mp -> mount_point , abs_path ) ;\n goto out_error ;\n }\n if ( type == LXC_AUTO_CGROUP_FULL_RO || type == LXC_AUTO_CGROUP_FULL_MIXED ) {\n r = mount ( NULL , abs_path , NULL , MS_REMOUNT | MS_BIND | MS_RDONLY , NULL ) ;\n if ( r < 0 ) {\n SYSERROR ( \"error re-mounting %s readonly\" , abs_path ) ;\n goto out_error ;\n }\n }\n if ( type == LXC_AUTO_CGROUP_FULL_MIXED ) {\n r = mount ( abs_path2 , abs_path2 , NULL , MS_BIND , NULL ) ;\n if ( r < 0 ) {\n SYSERROR ( \"error bind-mounting %s onto itself\" , abs_path2 ) ;\n goto out_error ;\n }\n r = mount ( NULL , abs_path2 , NULL , MS_REMOUNT | MS_BIND , NULL ) ;\n if ( r < 0 ) {\n SYSERROR ( \"error re-mounting %s readwrite\" , abs_path2 ) ;\n goto out_error ;\n }\n }\n }\n else {\n r = mkdir_p ( abs_path2 , 0755 ) ;\n if ( r < 0 && errno != EEXIST ) {\n SYSERROR ( \"could not create cgroup directory /sys/fs/cgroup/%s%s\" , dirname , info -> cgroup_path ) ;\n goto out_error ;\n }\n if ( type == LXC_AUTO_CGROUP_MIXED || type == LXC_AUTO_CGROUP_RO ) {\n r = mount ( abs_path , abs_path , NULL , MS_BIND , NULL ) ;\n if ( r < 0 ) {\n SYSERROR ( \"error bind-mounting %s onto itself\" , abs_path ) ;\n goto out_error ;\n }\n r = mount ( NULL , abs_path , NULL , MS_REMOUNT | MS_BIND | MS_RDONLY , NULL ) ;\n if ( r < 0 ) {\n SYSERROR ( \"error re-mounting %s readonly\" , abs_path ) ;\n goto out_error ;\n }\n }\n free ( abs_path ) ;\n abs_path = NULL ;\n abs_path = cgroup_to_absolute_path ( mp , info -> cgroup_path , NULL ) ;\n if ( ! abs_path ) goto out_error ;\n r = mount ( abs_path , abs_path2 , \"none\" , MS_BIND , 0 ) ;\n if ( r < 0 ) {\n SYSERROR ( \"error bind-mounting %s to %s\" , abs_path , abs_path2 ) ;\n goto out_error ;\n }\n if ( type == LXC_AUTO_CGROUP_RO ) {\n r = mount ( NULL , abs_path2 , NULL , MS_REMOUNT | MS_BIND | MS_RDONLY , NULL ) ;\n if ( r < 0 ) {\n SYSERROR ( \"error re-mounting %s readonly\" , abs_path2 ) ;\n goto out_error ;\n }\n }\n }\n free ( abs_path ) ;\n free ( abs_path2 ) ;\n abs_path = NULL ;\n abs_path2 = NULL ;\n if ( subsystem_count > 1 ) {\n for ( i = 0 ;\n i < subsystem_count ;\n i ++ ) {\n abs_path = lxc_append_paths ( path , parts [ i ] ) ;\n if ( ! abs_path ) goto out_error ;\n r = symlink ( dirname , abs_path ) ;\n if ( r < 0 ) WARN ( \"could not create symlink %s -> %s in /sys/fs/cgroup of container\" , parts [ i ] , dirname ) ;\n free ( abs_path ) ;\n abs_path = NULL ;\n }\n }\n free ( dirname ) ;\n free ( parts ) ;\n dirname = NULL ;\n parts = NULL ;\n }\n free ( path ) ;\n return true ;\n out_error : saved_errno = errno ;\n free ( path ) ;\n free ( dirname ) ;\n free ( parts ) ;\n free ( abs_path ) ;\n free ( abs_path2 ) ;\n errno = saved_errno ;\n return false ;\n }"}
{"idx": 291, "target": 1, "func": "static int ipvideo_decode_block_opcode_0xC ( IpvideoContext * s ) {\n int x , y ;\n for ( y = 0 ;\n y < 8 ;\n y += 2 ) {\n for ( x = 0 ;\n x < 8 ;\n x += 2 ) {\n s -> pixel_ptr [ x ] = s -> pixel_ptr [ x + 1 ] = s -> pixel_ptr [ x + s -> stride ] = s -> pixel_ptr [ x + 1 + s -> stride ] = bytestream2_get_byte ( & s -> stream_ptr ) ;\n }\n s -> pixel_ptr += s -> stride * 2 ;\n }\n return 0 ;\n }"}
{"idx": 292, "target": 1, "func": "static void T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n const UChar * mySource = args -> source ;\n unsigned char * myTarget ;\n int32_t * myOffsets ;\n const UChar * sourceLimit = args -> sourceLimit ;\n const unsigned char * targetLimit = ( unsigned char * ) args -> targetLimit ;\n UChar32 ch , ch2 ;\n int32_t offsetNum = 0 ;\n unsigned int indexToWrite ;\n unsigned char temp [ sizeof ( uint32_t ) ] ;\n if ( mySource >= sourceLimit ) {\n return ;\n }\n if ( args -> converter -> fromUnicodeStatus == UCNV_NEED_TO_WRITE_BOM ) {\n static const char bom [ ] = {\n 0 , 0 , ( char ) 0xfe , ( char ) 0xff }\n ;\n ucnv_fromUWriteBytes ( args -> converter , bom , 4 , & args -> target , args -> targetLimit , & args -> offsets , - 1 , err ) ;\n args -> converter -> fromUnicodeStatus = 0 ;\n }\n myTarget = ( unsigned char * ) args -> target ;\n myOffsets = args -> offsets ;\n temp [ 0 ] = 0 ;\n if ( args -> converter -> fromUChar32 ) {\n ch = args -> converter -> fromUChar32 ;\n args -> converter -> fromUChar32 = 0 ;\n goto lowsurogate ;\n }\n while ( mySource < sourceLimit && myTarget < targetLimit ) {\n ch = * ( mySource ++ ) ;\n if ( U_IS_SURROGATE ( ch ) ) {\n if ( U_IS_LEAD ( ch ) ) {\n lowsurogate : if ( mySource < sourceLimit ) {\n ch2 = * mySource ;\n if ( U_IS_TRAIL ( ch2 ) ) {\n ch = ( ( ch - SURROGATE_HIGH_START ) << HALF_SHIFT ) + ch2 + SURROGATE_LOW_BASE ;\n mySource ++ ;\n }\n else {\n args -> converter -> fromUChar32 = ch ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n }\n else {\n args -> converter -> fromUChar32 = ch ;\n if ( args -> flush ) {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n break ;\n }\n }\n else {\n args -> converter -> fromUChar32 = ch ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n }\n temp [ 1 ] = ( uint8_t ) ( ch >> 16 & 0x1F ) ;\n temp [ 2 ] = ( uint8_t ) ( ch >> 8 ) ;\n temp [ 3 ] = ( uint8_t ) ( ch ) ;\n for ( indexToWrite = 0 ;\n indexToWrite <= sizeof ( uint32_t ) - 1 ;\n indexToWrite ++ ) {\n if ( myTarget < targetLimit ) {\n * ( myTarget ++ ) = temp [ indexToWrite ] ;\n * ( myOffsets ++ ) = offsetNum ;\n }\n else {\n args -> converter -> charErrorBuffer [ args -> converter -> charErrorBufferLength ++ ] = temp [ indexToWrite ] ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n offsetNum = offsetNum + 1 + ( temp [ 1 ] != 0 ) ;\n }\n if ( mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS ( * err ) ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n args -> target = ( char * ) myTarget ;\n args -> source = mySource ;\n args -> offsets = myOffsets ;\n }"}
{"idx": 293, "target": 0, "func": "static unsigned char * extra_next_record ( struct ctl_extr_rec * ctl , int length ) {\n int cur_len = ctl -> cur_len ;\n extra_close_record ( ctl , RR_CE_SIZE ) ;\n ctl -> use_extr = 1 ;\n if ( ctl -> bp != NULL ) {\n unsigned char * p ;\n ctl -> ce_ptr = & ctl -> bp [ cur_len + 1 ] ;\n p = extra_get_record ( ctl -> isoent , & ctl -> limit , & ctl -> extr_off , & ctl -> extr_loc ) ;\n ctl -> bp = p - 1 ;\n }\n else ( void ) extra_get_record ( ctl -> isoent , & ctl -> limit , NULL , NULL ) ;\n ctl -> cur_len = 0 ;\n if ( extra_space ( ctl ) < length ) ( void ) extra_next_record ( ctl , length ) ;\n return ( ctl -> bp ) ;\n }"}
{"idx": 294, "target": 0, "func": "static int tmv_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * src = avpkt -> data ;\n uint8_t * dst ;\n unsigned char_cols = avctx -> width >> 3 ;\n unsigned char_rows = avctx -> height >> 3 ;\n unsigned x , y , fg , bg , c ;\n int ret ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( avpkt -> size < 2 * char_rows * char_cols ) {\n av_log ( avctx , AV_LOG_ERROR , \"Input buffer too small, truncated sample?\\n\" ) ;\n * got_frame = 0 ;\n return AVERROR_INVALIDDATA ;\n }\n frame -> pict_type = AV_PICTURE_TYPE_I ;\n frame -> key_frame = 1 ;\n dst = frame -> data [ 0 ] ;\n frame -> palette_has_changed = 1 ;\n memcpy ( frame -> data [ 1 ] , ff_cga_palette , 16 * 4 ) ;\n for ( y = 0 ;\n y < char_rows ;\n y ++ ) {\n for ( x = 0 ;\n x < char_cols ;\n x ++ ) {\n c = * src ++ ;\n bg = * src >> 4 ;\n fg = * src ++ & 0xF ;\n ff_draw_pc_font ( dst + x * 8 , frame -> linesize [ 0 ] , ff_cga_font , 8 , c , fg , bg ) ;\n }\n dst += frame -> linesize [ 0 ] * 8 ;\n }\n * got_frame = 1 ;\n return avpkt -> size ;\n }"}
{"idx": 295, "target": 0, "func": "static int tls1_P_hash ( const EVP_MD * md , const unsigned char * sec , int sec_len , const void * seed1 , int seed1_len , const void * seed2 , int seed2_len , const void * seed3 , int seed3_len , const void * seed4 , int seed4_len , const void * seed5 , int seed5_len , unsigned char * out , int olen ) {\n int chunk ;\n size_t j ;\n EVP_MD_CTX ctx , ctx_tmp ;\n EVP_PKEY * mac_key ;\n unsigned char A1 [ EVP_MAX_MD_SIZE ] ;\n size_t A1_len ;\n int ret = 0 ;\n chunk = EVP_MD_size ( md ) ;\n OPENSSL_assert ( chunk >= 0 ) ;\n EVP_MD_CTX_init ( & ctx ) ;\n EVP_MD_CTX_init ( & ctx_tmp ) ;\n EVP_MD_CTX_set_flags ( & ctx , EVP_MD_CTX_FLAG_NON_FIPS_ALLOW ) ;\n EVP_MD_CTX_set_flags ( & ctx_tmp , EVP_MD_CTX_FLAG_NON_FIPS_ALLOW ) ;\n mac_key = EVP_PKEY_new_mac_key ( EVP_PKEY_HMAC , NULL , sec , sec_len ) ;\n if ( ! mac_key ) goto err ;\n if ( ! EVP_DigestSignInit ( & ctx , NULL , md , NULL , mac_key ) ) goto err ;\n if ( ! EVP_DigestSignInit ( & ctx_tmp , NULL , md , NULL , mac_key ) ) goto err ;\n if ( seed1 && ! EVP_DigestSignUpdate ( & ctx , seed1 , seed1_len ) ) goto err ;\n if ( seed2 && ! EVP_DigestSignUpdate ( & ctx , seed2 , seed2_len ) ) goto err ;\n if ( seed3 && ! EVP_DigestSignUpdate ( & ctx , seed3 , seed3_len ) ) goto err ;\n if ( seed4 && ! EVP_DigestSignUpdate ( & ctx , seed4 , seed4_len ) ) goto err ;\n if ( seed5 && ! EVP_DigestSignUpdate ( & ctx , seed5 , seed5_len ) ) goto err ;\n if ( ! EVP_DigestSignFinal ( & ctx , A1 , & A1_len ) ) goto err ;\n for ( ;\n ;\n ) {\n if ( ! EVP_DigestSignInit ( & ctx , NULL , md , NULL , mac_key ) ) goto err ;\n if ( ! EVP_DigestSignInit ( & ctx_tmp , NULL , md , NULL , mac_key ) ) goto err ;\n if ( ! EVP_DigestSignUpdate ( & ctx , A1 , A1_len ) ) goto err ;\n if ( ! EVP_DigestSignUpdate ( & ctx_tmp , A1 , A1_len ) ) goto err ;\n if ( seed1 && ! EVP_DigestSignUpdate ( & ctx , seed1 , seed1_len ) ) goto err ;\n if ( seed2 && ! EVP_DigestSignUpdate ( & ctx , seed2 , seed2_len ) ) goto err ;\n if ( seed3 && ! EVP_DigestSignUpdate ( & ctx , seed3 , seed3_len ) ) goto err ;\n if ( seed4 && ! EVP_DigestSignUpdate ( & ctx , seed4 , seed4_len ) ) goto err ;\n if ( seed5 && ! EVP_DigestSignUpdate ( & ctx , seed5 , seed5_len ) ) goto err ;\n if ( olen > chunk ) {\n if ( ! EVP_DigestSignFinal ( & ctx , out , & j ) ) goto err ;\n out += j ;\n olen -= j ;\n if ( ! EVP_DigestSignFinal ( & ctx_tmp , A1 , & A1_len ) ) goto err ;\n }\n else {\n if ( ! EVP_DigestSignFinal ( & ctx , A1 , & A1_len ) ) goto err ;\n memcpy ( out , A1 , olen ) ;\n break ;\n }\n }\n ret = 1 ;\n err : EVP_PKEY_free ( mac_key ) ;\n EVP_MD_CTX_cleanup ( & ctx ) ;\n EVP_MD_CTX_cleanup ( & ctx_tmp ) ;\n OPENSSL_cleanse ( A1 , sizeof ( A1 ) ) ;\n return ret ;\n }"}
{"idx": 296, "target": 0, "func": "static void search_for_application_dbus_call_notify_cb ( GDBusProxy * proxy , GAsyncResult * result , gpointer user_data ) {\n ActivateParametersInstall * parameters_install = user_data ;\n GVariant * variant ;\n GError * error = NULL ;\n variant = g_dbus_proxy_call_finish ( proxy , result , & error ) ;\n if ( variant == NULL ) {\n if ( ! g_dbus_error_is_remote_error ( error ) || g_strcmp0 ( g_dbus_error_get_remote_error ( error ) , \"org.freedesktop.PackageKit.Modify.Failed\" ) == 0 ) {\n char * message ;\n message = g_strdup_printf ( \"%s\\n%s\" , _ ( \"There was an internal error trying to search for applications:\" ) , error -> message ) ;\n eel_show_error_dialog ( _ ( \"Unable to search for application\" ) , message , parameters_install -> parent_window ) ;\n g_free ( message ) ;\n }\n else {\n g_warning ( \"Error while trying to search for applications: %s\" , error -> message ) ;\n }\n g_error_free ( error ) ;\n activate_parameters_install_free ( parameters_install ) ;\n return ;\n }\n g_variant_unref ( variant ) ;\n nautilus_mime_activate_files ( parameters_install -> parent_window , parameters_install -> slot , parameters_install -> files , parameters_install -> activation_directory , parameters_install -> flags , parameters_install -> user_confirmation ) ;\n activate_parameters_install_free ( parameters_install ) ;\n }"}
{"idx": 297, "target": 0, "func": "static gboolean gsm_a_dtap_tp_stat_packet ( void * tapdata , packet_info * pinfo _U_ , epan_dissect_t * edt _U_ , const void * gatr_ptr ) {\n return gsm_a_stat_packet ( tapdata , gatr_ptr , BSSAP_PDU_TYPE_DTAP , PD_TP ) ;\n }"}
{"idx": 298, "target": 0, "func": "static void upsample_5_4 ( float * out , const float * in , int o_size ) {\n const float * in0 = in - UPS_FIR_SIZE + 1 ;\n int i , j , k ;\n int int_part = 0 , frac_part ;\n i = 0 ;\n for ( j = 0 ;\n j < o_size / 5 ;\n j ++ ) {\n out [ i ] = in [ int_part ] ;\n frac_part = 4 ;\n i ++ ;\n for ( k = 1 ;\n k < 5 ;\n k ++ ) {\n out [ i ] = avpriv_scalarproduct_float_c ( in0 + int_part , upsample_fir [ 4 - frac_part ] , UPS_MEM_SIZE ) ;\n int_part ++ ;\n frac_part -- ;\n i ++ ;\n }\n }\n }"}
{"idx": 299, "target": 0, "func": "int hfinfo_bitshift ( const header_field_info * hfinfo ) {\n return ws_ctz ( hfinfo -> bitmask ) ;\n }"}
{"idx": 300, "target": 0, "func": "static void rv40_loop_filter ( RV34DecContext * r , int row ) {\n MpegEncContext * s = & r -> s ;\n int mb_pos , mb_x ;\n int i , j , k ;\n uint8_t * Y , * C ;\n int alpha , beta , betaY , betaC ;\n int q ;\n int mbtype [ 4 ] ;\n int mb_strong [ 4 ] ;\n int clip [ 4 ] ;\n int cbp [ 4 ] ;\n int uvcbp [ 4 ] [ 2 ] ;\n unsigned mvmasks [ 4 ] ;\n mb_pos = row * s -> mb_stride ;\n for ( mb_x = 0 ;\n mb_x < s -> mb_width ;\n mb_x ++ , mb_pos ++ ) {\n int mbtype = s -> current_picture_ptr -> mb_type [ mb_pos ] ;\n if ( IS_INTRA ( mbtype ) || IS_SEPARATE_DC ( mbtype ) ) r -> cbp_luma [ mb_pos ] = r -> deblock_coefs [ mb_pos ] = 0xFFFF ;\n if ( IS_INTRA ( mbtype ) ) r -> cbp_chroma [ mb_pos ] = 0xFF ;\n }\n mb_pos = row * s -> mb_stride ;\n for ( mb_x = 0 ;\n mb_x < s -> mb_width ;\n mb_x ++ , mb_pos ++ ) {\n int y_h_deblock , y_v_deblock ;\n int c_v_deblock [ 2 ] , c_h_deblock [ 2 ] ;\n int clip_left ;\n int avail [ 4 ] ;\n unsigned y_to_deblock ;\n int c_to_deblock [ 2 ] ;\n q = s -> current_picture_ptr -> qscale_table [ mb_pos ] ;\n alpha = rv40_alpha_tab [ q ] ;\n beta = rv40_beta_tab [ q ] ;\n betaY = betaC = beta * 3 ;\n if ( s -> width * s -> height <= 176 * 144 ) betaY += beta ;\n avail [ 0 ] = 1 ;\n avail [ 1 ] = row ;\n avail [ 2 ] = mb_x ;\n avail [ 3 ] = row < s -> mb_height - 1 ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n if ( avail [ i ] ) {\n int pos = mb_pos + neighbour_offs_x [ i ] + neighbour_offs_y [ i ] * s -> mb_stride ;\n mvmasks [ i ] = r -> deblock_coefs [ pos ] ;\n mbtype [ i ] = s -> current_picture_ptr -> mb_type [ pos ] ;\n cbp [ i ] = r -> cbp_luma [ pos ] ;\n uvcbp [ i ] [ 0 ] = r -> cbp_chroma [ pos ] & 0xF ;\n uvcbp [ i ] [ 1 ] = r -> cbp_chroma [ pos ] >> 4 ;\n }\n else {\n mvmasks [ i ] = 0 ;\n mbtype [ i ] = mbtype [ 0 ] ;\n cbp [ i ] = 0 ;\n uvcbp [ i ] [ 0 ] = uvcbp [ i ] [ 1 ] = 0 ;\n }\n mb_strong [ i ] = IS_INTRA ( mbtype [ i ] ) || IS_SEPARATE_DC ( mbtype [ i ] ) ;\n clip [ i ] = rv40_filter_clip_tbl [ mb_strong [ i ] + 1 ] [ q ] ;\n }\n y_to_deblock = mvmasks [ POS_CUR ] | ( mvmasks [ POS_BOTTOM ] << 16 ) ;\n y_h_deblock = y_to_deblock | ( ( cbp [ POS_CUR ] << 4 ) & ~ MASK_Y_TOP_ROW ) | ( ( cbp [ POS_TOP ] & MASK_Y_LAST_ROW ) >> 12 ) ;\n y_v_deblock = y_to_deblock | ( ( cbp [ POS_CUR ] << 1 ) & ~ MASK_Y_LEFT_COL ) | ( ( cbp [ POS_LEFT ] & MASK_Y_RIGHT_COL ) >> 3 ) ;\n if ( ! mb_x ) y_v_deblock &= ~ MASK_Y_LEFT_COL ;\n if ( ! row ) y_h_deblock &= ~ MASK_Y_TOP_ROW ;\n if ( row == s -> mb_height - 1 || ( mb_strong [ POS_CUR ] | mb_strong [ POS_BOTTOM ] ) ) y_h_deblock &= ~ ( MASK_Y_TOP_ROW << 16 ) ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n c_to_deblock [ i ] = ( uvcbp [ POS_BOTTOM ] [ i ] << 4 ) | uvcbp [ POS_CUR ] [ i ] ;\n c_v_deblock [ i ] = c_to_deblock [ i ] | ( ( uvcbp [ POS_CUR ] [ i ] << 1 ) & ~ MASK_C_LEFT_COL ) | ( ( uvcbp [ POS_LEFT ] [ i ] & MASK_C_RIGHT_COL ) >> 1 ) ;\n c_h_deblock [ i ] = c_to_deblock [ i ] | ( ( uvcbp [ POS_TOP ] [ i ] & MASK_C_LAST_ROW ) >> 2 ) | ( uvcbp [ POS_CUR ] [ i ] << 2 ) ;\n if ( ! mb_x ) c_v_deblock [ i ] &= ~ MASK_C_LEFT_COL ;\n if ( ! row ) c_h_deblock [ i ] &= ~ MASK_C_TOP_ROW ;\n if ( row == s -> mb_height - 1 || ( mb_strong [ POS_CUR ] | mb_strong [ POS_BOTTOM ] ) ) c_h_deblock [ i ] &= ~ ( MASK_C_TOP_ROW << 4 ) ;\n }\n for ( j = 0 ;\n j < 16 ;\n j += 4 ) {\n Y = s -> current_picture_ptr -> f . data [ 0 ] + mb_x * 16 + ( row * 16 + j ) * s -> linesize ;\n for ( i = 0 ;\n i < 4 ;\n i ++ , Y += 4 ) {\n int ij = i + j ;\n int clip_cur = y_to_deblock & ( MASK_CUR << ij ) ? clip [ POS_CUR ] : 0 ;\n int dither = j ? ij : i * 4 ;\n if ( y_h_deblock & ( MASK_BOTTOM << ij ) ) {\n rv40_adaptive_loop_filter ( & r -> rdsp , Y + 4 * s -> linesize , s -> linesize , dither , y_to_deblock & ( MASK_BOTTOM << ij ) ? clip [ POS_CUR ] : 0 , clip_cur , alpha , beta , betaY , 0 , 0 , 0 ) ;\n }\n if ( y_v_deblock & ( MASK_CUR << ij ) && ( i || ! ( mb_strong [ POS_CUR ] | mb_strong [ POS_LEFT ] ) ) ) {\n if ( ! i ) clip_left = mvmasks [ POS_LEFT ] & ( MASK_RIGHT << j ) ? clip [ POS_LEFT ] : 0 ;\n else clip_left = y_to_deblock & ( MASK_CUR << ( ij - 1 ) ) ? clip [ POS_CUR ] : 0 ;\n rv40_adaptive_loop_filter ( & r -> rdsp , Y , s -> linesize , dither , clip_cur , clip_left , alpha , beta , betaY , 0 , 0 , 1 ) ;\n }\n if ( ! j && y_h_deblock & ( MASK_CUR << i ) && ( mb_strong [ POS_CUR ] | mb_strong [ POS_TOP ] ) ) {\n rv40_adaptive_loop_filter ( & r -> rdsp , Y , s -> linesize , dither , clip_cur , mvmasks [ POS_TOP ] & ( MASK_TOP << i ) ? clip [ POS_TOP ] : 0 , alpha , beta , betaY , 0 , 1 , 0 ) ;\n }\n if ( y_v_deblock & ( MASK_CUR << ij ) && ! i && ( mb_strong [ POS_CUR ] | mb_strong [ POS_LEFT ] ) ) {\n clip_left = mvmasks [ POS_LEFT ] & ( MASK_RIGHT << j ) ? clip [ POS_LEFT ] : 0 ;\n rv40_adaptive_loop_filter ( & r -> rdsp , Y , s -> linesize , dither , clip_cur , clip_left , alpha , beta , betaY , 0 , 1 , 1 ) ;\n }\n }\n }\n for ( k = 0 ;\n k < 2 ;\n k ++ ) {\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n C = s -> current_picture_ptr -> f . data [ k + 1 ] + mb_x * 8 + ( row * 8 + j * 4 ) * s -> uvlinesize ;\n for ( i = 0 ;\n i < 2 ;\n i ++ , C += 4 ) {\n int ij = i + j * 2 ;\n int clip_cur = c_to_deblock [ k ] & ( MASK_CUR << ij ) ? clip [ POS_CUR ] : 0 ;\n if ( c_h_deblock [ k ] & ( MASK_CUR << ( ij + 2 ) ) ) {\n int clip_bot = c_to_deblock [ k ] & ( MASK_CUR << ( ij + 2 ) ) ? clip [ POS_CUR ] : 0 ;\n rv40_adaptive_loop_filter ( & r -> rdsp , C + 4 * s -> uvlinesize , s -> uvlinesize , i * 8 , clip_bot , clip_cur , alpha , beta , betaC , 1 , 0 , 0 ) ;\n }\n if ( ( c_v_deblock [ k ] & ( MASK_CUR << ij ) ) && ( i || ! ( mb_strong [ POS_CUR ] | mb_strong [ POS_LEFT ] ) ) ) {\n if ( ! i ) clip_left = uvcbp [ POS_LEFT ] [ k ] & ( MASK_CUR << ( 2 * j + 1 ) ) ? clip [ POS_LEFT ] : 0 ;\n else clip_left = c_to_deblock [ k ] & ( MASK_CUR << ( ij - 1 ) ) ? clip [ POS_CUR ] : 0 ;\n rv40_adaptive_loop_filter ( & r -> rdsp , C , s -> uvlinesize , j * 8 , clip_cur , clip_left , alpha , beta , betaC , 1 , 0 , 1 ) ;\n }\n if ( ! j && c_h_deblock [ k ] & ( MASK_CUR << ij ) && ( mb_strong [ POS_CUR ] | mb_strong [ POS_TOP ] ) ) {\n int clip_top = uvcbp [ POS_TOP ] [ k ] & ( MASK_CUR << ( ij + 2 ) ) ? clip [ POS_TOP ] : 0 ;\n rv40_adaptive_loop_filter ( & r -> rdsp , C , s -> uvlinesize , i * 8 , clip_cur , clip_top , alpha , beta , betaC , 1 , 1 , 0 ) ;\n }\n if ( c_v_deblock [ k ] & ( MASK_CUR << ij ) && ! i && ( mb_strong [ POS_CUR ] | mb_strong [ POS_LEFT ] ) ) {\n clip_left = uvcbp [ POS_LEFT ] [ k ] & ( MASK_CUR << ( 2 * j + 1 ) ) ? clip [ POS_LEFT ] : 0 ;\n rv40_adaptive_loop_filter ( & r -> rdsp , C , s -> uvlinesize , j * 8 , clip_cur , clip_left , alpha , beta , betaC , 1 , 1 , 1 ) ;\n }\n }\n }\n }\n }\n }"}
{"idx": 301, "target": 0, "func": "static gcry_err_code_t pkcs1_encode_for_signature ( gcry_mpi_t * r_result , unsigned int nbits , const unsigned char * value , size_t valuelen , int algo ) {\n gcry_err_code_t rc = 0 ;\n gcry_error_t err ;\n byte asn [ 100 ] ;\n byte * frame = NULL ;\n size_t nframe = ( nbits + 7 ) / 8 ;\n int i ;\n size_t n ;\n size_t asnlen , dlen ;\n asnlen = DIM ( asn ) ;\n dlen = gcry_md_get_algo_dlen ( algo ) ;\n if ( gcry_md_algo_info ( algo , GCRYCTL_GET_ASNOID , asn , & asnlen ) ) {\n return GPG_ERR_NOT_IMPLEMENTED ;\n }\n if ( valuelen != dlen ) {\n return GPG_ERR_CONFLICT ;\n }\n if ( ! dlen || dlen + asnlen + 4 > nframe ) {\n return GPG_ERR_TOO_SHORT ;\n }\n if ( ! ( frame = gcry_malloc ( nframe ) ) ) return gpg_err_code_from_syserror ( ) ;\n n = 0 ;\n frame [ n ++ ] = 0 ;\n frame [ n ++ ] = 1 ;\n i = nframe - valuelen - asnlen - 3 ;\n gcry_assert ( i > 1 ) ;\n memset ( frame + n , 0xff , i ) ;\n n += i ;\n frame [ n ++ ] = 0 ;\n memcpy ( frame + n , asn , asnlen ) ;\n n += asnlen ;\n memcpy ( frame + n , value , valuelen ) ;\n n += valuelen ;\n gcry_assert ( n == nframe ) ;\n err = gcry_mpi_scan ( r_result , GCRYMPI_FMT_USG , frame , n , & nframe ) ;\n if ( err ) rc = gcry_err_code ( err ) ;\n else if ( DBG_CIPHER ) log_mpidump ( \"PKCS#1 block type 1 encoded data\" , * r_result ) ;\n gcry_free ( frame ) ;\n return rc ;\n }"}
{"idx": 302, "target": 0, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING )"}
{"idx": 303, "target": 0, "func": "static int vp3_update_thread_context ( AVCodecContext * dst , const AVCodecContext * src ) {\n Vp3DecodeContext * s = dst -> priv_data , * s1 = src -> priv_data ;\n int qps_changed = 0 , i , err ;\n # define copy_fields ( to , from , start_field , end_field ) memcpy ( & to -> start_field , & from -> start_field , ( char * ) & to -> end_field - ( char * ) & to -> start_field ) if ( ! s1 -> current_frame . f -> data [ 0 ] || s -> width != s1 -> width || s -> height != s1 -> height ) {\n if ( s != s1 ) ref_frames ( s , s1 ) ;\n return - 1 ;\n }\n if ( s != s1 ) {\n if ( ! s -> current_frame . f -> data [ 0 ] ) {\n int y_fragment_count , c_fragment_count ;\n s -> avctx = dst ;\n err = allocate_tables ( dst ) ;\n if ( err ) return err ;\n y_fragment_count = s -> fragment_width [ 0 ] * s -> fragment_height [ 0 ] ;\n c_fragment_count = s -> fragment_width [ 1 ] * s -> fragment_height [ 1 ] ;\n memcpy ( s -> motion_val [ 0 ] , s1 -> motion_val [ 0 ] , y_fragment_count * sizeof ( * s -> motion_val [ 0 ] ) ) ;\n memcpy ( s -> motion_val [ 1 ] , s1 -> motion_val [ 1 ] , c_fragment_count * sizeof ( * s -> motion_val [ 1 ] ) ) ;\n }\n if ( ( err = ref_frames ( s , s1 ) ) < 0 ) return err ;\n s -> keyframe = s1 -> keyframe ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n if ( s -> qps [ i ] != s1 -> qps [ 1 ] ) {\n qps_changed = 1 ;\n memcpy ( & s -> qmat [ i ] , & s1 -> qmat [ i ] , sizeof ( s -> qmat [ i ] ) ) ;\n }\n }\n if ( s -> qps [ 0 ] != s1 -> qps [ 0 ] ) memcpy ( & s -> bounding_values_array , & s1 -> bounding_values_array , sizeof ( s -> bounding_values_array ) ) ;\n if ( qps_changed ) copy_fields ( s , s1 , qps , superblock_count ) ;\n # undef copy_fields }\n return update_frames ( dst ) ;\n }"}
{"idx": 304, "target": 0, "func": "static __inline__ void ethtool_cmd_speed_set ( struct ethtool_cmd * ep , __u32 speed ) {\n ep -> speed = ( __u16 ) ( speed & 0xFFFF ) ;\n ep -> speed_hi = ( __u16 ) ( speed >> 16 ) ;\n }"}
{"idx": 305, "target": 0, "func": "err_status_t srtp_install_event_handler ( srtp_event_handler_func_t func ) {\n srtp_event_handler = func ;\n return err_status_ok ;\n }"}
{"idx": 306, "target": 0, "func": "static void get_residual ( int16_t * residual , int16_t * prev_excitation , int lag ) {\n int offset = PITCH_MAX - PITCH_ORDER / 2 - lag ;\n int i ;\n residual [ 0 ] = prev_excitation [ offset ] ;\n residual [ 1 ] = prev_excitation [ offset + 1 ] ;\n offset += 2 ;\n for ( i = 2 ;\n i < SUBFRAME_LEN + PITCH_ORDER - 1 ;\n i ++ ) residual [ i ] = prev_excitation [ offset + ( i - 2 ) % lag ] ;\n }"}
{"idx": 307, "target": 0, "func": "static void test_bug12001 ( ) {\n MYSQL * mysql_local ;\n MYSQL_RES * result ;\n const char * query = \"DROP TABLE IF EXISTS test_table;\n\" \"CREATE TABLE test_table(id INT);\n\" \"INSERT INTO test_table VALUES(10);\n\" \"UPDATE test_table SET id=20 WHERE id=10;\n\" \"SELECT * FROM test_table;\n\" \"INSERT INTO non_existent_table VALUES(11);\n\" ;\n int rc , res ;\n myheader ( \"test_bug12001\" ) ;\n if ( ! ( mysql_local = mysql_client_init ( NULL ) ) ) {\n fprintf ( stdout , \"\\n mysql_client_init() failed\" ) ;\n exit ( 1 ) ;\n }\n if ( ! mysql_real_connect ( mysql_local , opt_host , opt_user , opt_password , current_db , opt_port , opt_unix_socket , CLIENT_MULTI_STATEMENTS ) ) {\n fprintf ( stdout , \"\\n mysql_real_connect() failed\" ) ;\n exit ( 1 ) ;\n }\n rc = mysql_query ( mysql_local , query ) ;\n myquery ( rc ) ;\n do {\n if ( mysql_field_count ( mysql_local ) && ( result = mysql_use_result ( mysql_local ) ) ) {\n mysql_free_result ( result ) ;\n }\n }\n while ( ! ( res = mysql_next_result ( mysql_local ) ) ) ;\n rc = mysql_query ( mysql_local , \"DROP TABLE IF EXISTS test_table\" ) ;\n myquery ( rc ) ;\n mysql_close ( mysql_local ) ;\n DIE_UNLESS ( res == 1 ) ;\n }"}
{"idx": 308, "target": 0, "func": "static int rds_next_incoming ( struct rds_sock * rs , struct rds_incoming * * inc ) {\n unsigned long flags ;\n if ( ! * inc ) {\n read_lock_irqsave ( & rs -> rs_recv_lock , flags ) ;\n if ( ! list_empty ( & rs -> rs_recv_queue ) ) {\n * inc = list_entry ( rs -> rs_recv_queue . next , struct rds_incoming , i_item ) ;\n rds_inc_addref ( * inc ) ;\n }\n read_unlock_irqrestore ( & rs -> rs_recv_lock , flags ) ;\n }\n return * inc != NULL ;\n }"}
{"idx": 309, "target": 0, "func": "gcry_error_t gcry_mpi_aprint ( enum gcry_mpi_format format , unsigned char * * buffer , size_t * nwritten , struct gcry_mpi * a ) {\n size_t n ;\n gcry_error_t rc ;\n * buffer = NULL ;\n rc = gcry_mpi_print ( format , NULL , 0 , & n , a ) ;\n if ( rc ) return rc ;\n * buffer = mpi_is_secure ( a ) ? gcry_malloc_secure ( n ? n : 1 ) : gcry_malloc ( n ? n : 1 ) ;\n if ( ! * buffer ) return gpg_error_from_syserror ( ) ;\n rc = gcry_mpi_print ( format , * buffer , n , & n , a ) ;\n if ( rc ) {\n gcry_free ( * buffer ) ;\n * buffer = NULL ;\n }\n else if ( nwritten ) * nwritten = n ;\n return rc ;\n }"}
{"idx": 310, "target": 0, "func": "void vp8_blend_mb_outer_c ( unsigned char * y , unsigned char * u , unsigned char * v , int y_1 , int u_1 , int v_1 , int alpha , int stride ) {\n int i , j ;\n int y1_const = y_1 * ( ( 1 << 16 ) - alpha ) ;\n int u1_const = u_1 * ( ( 1 << 16 ) - alpha ) ;\n int v1_const = v_1 * ( ( 1 << 16 ) - alpha ) ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n for ( j = 0 ;\n j < 16 ;\n j ++ ) {\n y [ j ] = ( y [ j ] * alpha + y1_const ) >> 16 ;\n }\n y += stride ;\n }\n for ( i = 0 ;\n i < 12 ;\n i ++ ) {\n y [ 0 ] = ( y [ 0 ] * alpha + y1_const ) >> 16 ;\n y [ 1 ] = ( y [ 1 ] * alpha + y1_const ) >> 16 ;\n y [ 14 ] = ( y [ 14 ] * alpha + y1_const ) >> 16 ;\n y [ 15 ] = ( y [ 15 ] * alpha + y1_const ) >> 16 ;\n y += stride ;\n }\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n for ( j = 0 ;\n j < 16 ;\n j ++ ) {\n y [ j ] = ( y [ j ] * alpha + y1_const ) >> 16 ;\n }\n y += stride ;\n }\n stride >>= 1 ;\n for ( j = 0 ;\n j < 8 ;\n j ++ ) {\n u [ j ] = ( u [ j ] * alpha + u1_const ) >> 16 ;\n v [ j ] = ( v [ j ] * alpha + v1_const ) >> 16 ;\n }\n u += stride ;\n v += stride ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n u [ 0 ] = ( u [ 0 ] * alpha + u1_const ) >> 16 ;\n v [ 0 ] = ( v [ 0 ] * alpha + v1_const ) >> 16 ;\n u [ 7 ] = ( u [ 7 ] * alpha + u1_const ) >> 16 ;\n v [ 7 ] = ( v [ 7 ] * alpha + v1_const ) >> 16 ;\n u += stride ;\n v += stride ;\n }\n for ( j = 0 ;\n j < 8 ;\n j ++ ) {\n u [ j ] = ( u [ j ] * alpha + u1_const ) >> 16 ;\n v [ j ] = ( v [ j ] * alpha + v1_const ) >> 16 ;\n }\n }"}
{"idx": 311, "target": 0, "func": "static int kwajd_extract ( struct mskwaj_decompressor * base , struct mskwajd_header * hdr , const char * filename ) {\n struct mskwaj_decompressor_p * self = ( struct mskwaj_decompressor_p * ) base ;\n struct mspack_system * sys ;\n struct mspack_file * fh , * outfh ;\n if ( ! self ) return MSPACK_ERR_ARGS ;\n if ( ! hdr ) return self -> error = MSPACK_ERR_ARGS ;\n sys = self -> system ;\n fh = ( ( struct mskwajd_header_p * ) hdr ) -> fh ;\n if ( sys -> seek ( fh , hdr -> data_offset , MSPACK_SYS_SEEK_START ) ) {\n return self -> error = MSPACK_ERR_SEEK ;\n }\n if ( ! ( outfh = sys -> open ( sys , filename , MSPACK_SYS_OPEN_WRITE ) ) ) {\n return self -> error = MSPACK_ERR_OPEN ;\n }\n self -> error = MSPACK_ERR_OK ;\n if ( hdr -> comp_type == MSKWAJ_COMP_NONE || hdr -> comp_type == MSKWAJ_COMP_XOR ) {\n unsigned char * buf = ( unsigned char * ) sys -> alloc ( sys , ( size_t ) KWAJ_INPUT_SIZE ) ;\n if ( buf ) {\n int read , i ;\n while ( ( read = sys -> read ( fh , buf , KWAJ_INPUT_SIZE ) ) > 0 ) {\n if ( hdr -> comp_type == MSKWAJ_COMP_XOR ) {\n for ( i = 0 ;\n i < read ;\n i ++ ) buf [ i ] ^= 0xFF ;\n }\n if ( sys -> write ( outfh , buf , read ) != read ) {\n self -> error = MSPACK_ERR_WRITE ;\n break ;\n }\n }\n if ( read < 0 ) self -> error = MSPACK_ERR_READ ;\n sys -> free ( buf ) ;\n }\n else {\n self -> error = MSPACK_ERR_NOMEMORY ;\n }\n }\n else if ( hdr -> comp_type == MSKWAJ_COMP_SZDD ) {\n self -> error = lzss_decompress ( sys , fh , outfh , KWAJ_INPUT_SIZE , LZSS_MODE_EXPAND ) ;\n }\n else if ( hdr -> comp_type == MSKWAJ_COMP_LZH ) {\n struct kwajd_stream * lzh = lzh_init ( sys , fh , outfh ) ;\n self -> error = ( lzh ) ? lzh_decompress ( lzh ) : MSPACK_ERR_NOMEMORY ;\n lzh_free ( lzh ) ;\n }\n else if ( hdr -> comp_type == MSKWAJ_COMP_MSZIP ) {\n struct mszipd_stream * zip = mszipd_init ( sys , fh , outfh , KWAJ_INPUT_SIZE , 0 ) ;\n self -> error = ( zip ) ? mszipd_decompress_kwaj ( zip ) : MSPACK_ERR_NOMEMORY ;\n mszipd_free ( zip ) ;\n }\n else {\n self -> error = MSPACK_ERR_DATAFORMAT ;\n }\n sys -> close ( outfh ) ;\n return self -> error ;\n }"}
{"idx": 312, "target": 0, "func": "static VALUE cState_allow_nan_p ( VALUE self ) {\n GET_STATE ( self ) ;\n return state -> allow_nan ? Qtrue : Qfalse ;\n }"}
{"idx": 313, "target": 0, "func": "TSReturnCode TSMimeHdrFieldValueAppend ( TSMBuffer bufp , TSMLoc hdr , TSMLoc field , int idx , const char * value , int length ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( hdr ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( hdr ) == TS_SUCCESS ) ) ;\n sdk_assert ( sdk_sanity_check_field_handle ( field , hdr ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) value ) == TS_SUCCESS ) ;\n sdk_assert ( idx >= 0 ) ;\n if ( ! isWriteable ( bufp ) ) {\n return TS_ERROR ;\n }\n MIMEFieldSDKHandle * handle = ( MIMEFieldSDKHandle * ) field ;\n HdrHeap * heap = ( ( HdrHeapSDKHandle * ) bufp ) -> m_heap ;\n if ( length == - 1 ) {\n length = strlen ( value ) ;\n }\n mime_field_value_extend_comma_val ( heap , handle -> mh , handle -> field_ptr , idx , value , length ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 314, "target": 1, "func": "static void band_destroy ( jpc_enc_band_t * band ) {\n jpc_enc_prc_t * prc ;\n jpc_enc_rlvl_t * rlvl ;\n uint_fast32_t prcno ;\n if ( band -> prcs ) {\n rlvl = band -> rlvl ;\n for ( prcno = 0 , prc = band -> prcs ;\n prcno < rlvl -> numprcs ;\n ++ prcno , ++ prc ) {\n prc_destroy ( prc ) ;\n }\n jas_free ( band -> prcs ) ;\n }\n if ( band -> data ) {\n jas_seq2d_destroy ( band -> data ) ;\n }\n }"}
{"idx": 315, "target": 0, "func": "static int kq_del ( void * arg , struct event * ev ) {\n struct kqop * kqop = arg ;\n struct kevent kev ;\n if ( ! ( ev -> ev_flags & EVLIST_X_KQINKERNEL ) ) return ( 0 ) ;\n if ( ev -> ev_events & EV_SIGNAL ) {\n int nsignal = EVENT_SIGNAL ( ev ) ;\n struct timespec timeout = {\n 0 , 0 }\n ;\n assert ( nsignal >= 0 && nsignal < NSIG ) ;\n TAILQ_REMOVE ( & kqop -> evsigevents [ nsignal ] , ev , ev_signal_next ) ;\n if ( TAILQ_EMPTY ( & kqop -> evsigevents [ nsignal ] ) ) {\n memset ( & kev , 0 , sizeof ( kev ) ) ;\n kev . ident = nsignal ;\n kev . filter = EVFILT_SIGNAL ;\n kev . flags = EV_DELETE ;\n if ( kevent ( kqop -> kq , & kev , 1 , NULL , 0 , & timeout ) == - 1 ) return ( - 1 ) ;\n if ( _evsignal_restore_handler ( ev -> ev_base , nsignal ) == - 1 ) return ( - 1 ) ;\n }\n ev -> ev_flags &= ~ EVLIST_X_KQINKERNEL ;\n return ( 0 ) ;\n }\n if ( ev -> ev_events & EV_READ ) {\n memset ( & kev , 0 , sizeof ( kev ) ) ;\n kev . ident = ev -> ev_fd ;\n kev . filter = EVFILT_READ ;\n kev . flags = EV_DELETE ;\n if ( kq_insert ( kqop , & kev ) == - 1 ) return ( - 1 ) ;\n ev -> ev_flags &= ~ EVLIST_X_KQINKERNEL ;\n }\n if ( ev -> ev_events & EV_WRITE ) {\n memset ( & kev , 0 , sizeof ( kev ) ) ;\n kev . ident = ev -> ev_fd ;\n kev . filter = EVFILT_WRITE ;\n kev . flags = EV_DELETE ;\n if ( kq_insert ( kqop , & kev ) == - 1 ) return ( - 1 ) ;\n ev -> ev_flags &= ~ EVLIST_X_KQINKERNEL ;\n }\n return ( 0 ) ;\n }"}
{"idx": 316, "target": 0, "func": "void exsltRegisterAll ( void ) {\n xsltInitGlobals ( ) ;\n exsltCommonRegister ( ) ;\n # ifdef EXSLT_CRYPTO_ENABLED exsltCryptoRegister ( ) ;\n # endif exsltMathRegister ( ) ;\n exsltSetsRegister ( ) ;\n exsltFuncRegister ( ) ;\n exsltStrRegister ( ) ;\n exsltDateRegister ( ) ;\n exsltSaxonRegister ( ) ;\n exsltDynRegister ( ) ;\n }"}
{"idx": 317, "target": 1, "func": "static int decode_pic ( AVSContext * h ) {\n int skip_count = - 1 ;\n enum cavs_mb mb_type ;\n skip_bits ( & h -> gb , 16 ) ;\n if ( h -> stc == PIC_PB_START_CODE ) {\n h -> cur . f -> pict_type = get_bits ( & h -> gb , 2 ) + AV_PICTURE_TYPE_I ;\n if ( h -> cur . f -> pict_type > AV_PICTURE_TYPE_B ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"illegal picture type\\n\" ) ;\n return - 1 ;\n }\n if ( ! h -> DPB [ 0 ] . f -> data [ 0 ] || ( ! h -> DPB [ 1 ] . f -> data [ 0 ] && h -> cur . f -> pict_type == AV_PICTURE_TYPE_B ) ) return - 1 ;\n }\n else {\n h -> cur . f -> pict_type = AV_PICTURE_TYPE_I ;\n if ( get_bits1 ( & h -> gb ) ) skip_bits ( & h -> gb , 24 ) ;\n if ( h -> low_delay || ! ( show_bits ( & h -> gb , 9 ) & 1 ) ) h -> stream_revision = 1 ;\n else if ( show_bits ( & h -> gb , 11 ) & 3 ) h -> stream_revision = 1 ;\n if ( h -> stream_revision > 0 ) skip_bits ( & h -> gb , 1 ) ;\n }\n if ( h -> cur . f -> data [ 0 ] ) h -> avctx -> release_buffer ( h -> avctx , h -> cur . f ) ;\n ff_get_buffer ( h -> avctx , h -> cur . f ) ;\n if ( ! h -> edge_emu_buffer ) {\n int alloc_size = FFALIGN ( FFABS ( h -> cur . f -> linesize [ 0 ] ) + 32 , 32 ) ;\n h -> edge_emu_buffer = av_mallocz ( alloc_size * 2 * 24 ) ;\n if ( ! h -> edge_emu_buffer ) return AVERROR ( ENOMEM ) ;\n }\n ff_cavs_init_pic ( h ) ;\n h -> cur . poc = get_bits ( & h -> gb , 8 ) * 2 ;\n if ( h -> cur . f -> pict_type != AV_PICTURE_TYPE_B ) {\n h -> dist [ 0 ] = ( h -> cur . poc - h -> DPB [ 0 ] . poc + 512 ) % 512 ;\n }\n else {\n h -> dist [ 0 ] = ( h -> DPB [ 0 ] . poc - h -> cur . poc + 512 ) % 512 ;\n }\n h -> dist [ 1 ] = ( h -> cur . poc - h -> DPB [ 1 ] . poc + 512 ) % 512 ;\n h -> scale_den [ 0 ] = h -> dist [ 0 ] ? 512 / h -> dist [ 0 ] : 0 ;\n h -> scale_den [ 1 ] = h -> dist [ 1 ] ? 512 / h -> dist [ 1 ] : 0 ;\n if ( h -> cur . f -> pict_type == AV_PICTURE_TYPE_B ) {\n h -> sym_factor = h -> dist [ 0 ] * h -> scale_den [ 1 ] ;\n }\n else {\n h -> direct_den [ 0 ] = h -> dist [ 0 ] ? 16384 / h -> dist [ 0 ] : 0 ;\n h -> direct_den [ 1 ] = h -> dist [ 1 ] ? 16384 / h -> dist [ 1 ] : 0 ;\n }\n if ( h -> low_delay ) get_ue_golomb ( & h -> gb ) ;\n h -> progressive = get_bits1 ( & h -> gb ) ;\n h -> pic_structure = 1 ;\n if ( ! h -> progressive ) h -> pic_structure = get_bits1 ( & h -> gb ) ;\n if ( ! h -> pic_structure && h -> stc == PIC_PB_START_CODE ) skip_bits1 ( & h -> gb ) ;\n skip_bits1 ( & h -> gb ) ;\n skip_bits1 ( & h -> gb ) ;\n h -> qp_fixed = get_bits1 ( & h -> gb ) ;\n h -> qp = get_bits ( & h -> gb , 6 ) ;\n if ( h -> cur . f -> pict_type == AV_PICTURE_TYPE_I ) {\n if ( ! h -> progressive && ! h -> pic_structure ) skip_bits1 ( & h -> gb ) ;\n skip_bits ( & h -> gb , 4 ) ;\n }\n else {\n if ( ! ( h -> cur . f -> pict_type == AV_PICTURE_TYPE_B && h -> pic_structure == 1 ) ) h -> ref_flag = get_bits1 ( & h -> gb ) ;\n skip_bits ( & h -> gb , 4 ) ;\n h -> skip_mode_flag = get_bits1 ( & h -> gb ) ;\n }\n h -> loop_filter_disable = get_bits1 ( & h -> gb ) ;\n if ( ! h -> loop_filter_disable && get_bits1 ( & h -> gb ) ) {\n h -> alpha_offset = get_se_golomb ( & h -> gb ) ;\n h -> beta_offset = get_se_golomb ( & h -> gb ) ;\n }\n else {\n h -> alpha_offset = h -> beta_offset = 0 ;\n }\n if ( h -> cur . f -> pict_type == AV_PICTURE_TYPE_I ) {\n do {\n check_for_slice ( h ) ;\n decode_mb_i ( h , 0 ) ;\n }\n while ( ff_cavs_next_mb ( h ) ) ;\n }\n else if ( h -> cur . f -> pict_type == AV_PICTURE_TYPE_P ) {\n do {\n if ( check_for_slice ( h ) ) skip_count = - 1 ;\n if ( h -> skip_mode_flag && ( skip_count < 0 ) ) skip_count = get_ue_golomb ( & h -> gb ) ;\n if ( h -> skip_mode_flag && skip_count -- ) {\n decode_mb_p ( h , P_SKIP ) ;\n }\n else {\n mb_type = get_ue_golomb ( & h -> gb ) + P_SKIP + h -> skip_mode_flag ;\n if ( mb_type > P_8X8 ) decode_mb_i ( h , mb_type - P_8X8 - 1 ) ;\n else decode_mb_p ( h , mb_type ) ;\n }\n }\n while ( ff_cavs_next_mb ( h ) ) ;\n }\n else {\n do {\n if ( check_for_slice ( h ) ) skip_count = - 1 ;\n if ( h -> skip_mode_flag && ( skip_count < 0 ) ) skip_count = get_ue_golomb ( & h -> gb ) ;\n if ( h -> skip_mode_flag && skip_count -- ) {\n decode_mb_b ( h , B_SKIP ) ;\n }\n else {\n mb_type = get_ue_golomb ( & h -> gb ) + B_SKIP + h -> skip_mode_flag ;\n if ( mb_type > B_8X8 ) decode_mb_i ( h , mb_type - B_8X8 - 1 ) ;\n else decode_mb_b ( h , mb_type ) ;\n }\n }\n while ( ff_cavs_next_mb ( h ) ) ;\n }\n if ( h -> cur . f -> pict_type != AV_PICTURE_TYPE_B ) {\n if ( h -> DPB [ 1 ] . f -> data [ 0 ] ) h -> avctx -> release_buffer ( h -> avctx , h -> DPB [ 1 ] . f ) ;\n FFSWAP ( AVSFrame , h -> cur , h -> DPB [ 1 ] ) ;\n FFSWAP ( AVSFrame , h -> DPB [ 0 ] , h -> DPB [ 1 ] ) ;\n }\n return 0 ;\n }"}
{"idx": 318, "target": 0, "func": "static void ohci_process_lists ( OHCIState * ohci , int completion ) {\n if ( ( ohci -> ctl & OHCI_CTL_CLE ) && ( ohci -> status & OHCI_STATUS_CLF ) ) {\n if ( ohci -> ctrl_cur && ohci -> ctrl_cur != ohci -> ctrl_head ) {\n trace_usb_ohci_process_lists ( ohci -> ctrl_head , ohci -> ctrl_cur ) ;\n }\n if ( ! ohci_service_ed_list ( ohci , ohci -> ctrl_head , completion ) ) {\n ohci -> ctrl_cur = 0 ;\n ohci -> status &= ~ OHCI_STATUS_CLF ;\n }\n }\n if ( ( ohci -> ctl & OHCI_CTL_BLE ) && ( ohci -> status & OHCI_STATUS_BLF ) ) {\n if ( ! ohci_service_ed_list ( ohci , ohci -> bulk_head , completion ) ) {\n ohci -> bulk_cur = 0 ;\n ohci -> status &= ~ OHCI_STATUS_BLF ;\n }\n }\n }"}
{"idx": 319, "target": 0, "func": "int main_file_stat ( main_file * xfile , xoff_t * size ) {\n int ret = 0 ;\n # if XD3_WIN32 if ( GetFileType ( xfile -> file ) != FILE_TYPE_DISK ) {\n return - 1 ;\n }\n # if ( _WIN32_WINNT >= 0x0500 ) {\n LARGE_INTEGER li ;\n if ( GetFileSizeEx ( xfile -> file , & li ) == 0 ) {\n return get_errno ( ) ;\n }\n * size = li . QuadPart ;\n }\n # else {\n DWORD filesize = GetFileSize ( xfile -> file , NULL ) ;\n if ( filesize == INVALID_FILE_SIZE ) {\n return get_errno ( ) }\n * size = filesize ;\n }\n # endif # else struct stat sbuf ;\n if ( fstat ( XFNO ( xfile ) , & sbuf ) < 0 ) {\n ret = get_errno ( ) ;\n return ret ;\n }\n if ( ! S_ISREG ( sbuf . st_mode ) ) {\n return ESPIPE ;\n }\n ( * size ) = sbuf . st_size ;\n # endif return ret ;\n }"}
{"idx": 320, "target": 0, "func": "static void openpic_register_types ( void ) {\n type_register_static ( & openpic_info ) ;\n }"}
{"idx": 321, "target": 0, "func": "static bool_t xdr_krb5_boolean ( XDR * xdrs , krb5_boolean * kbool ) {\n bool_t val ;\n switch ( xdrs -> x_op ) {\n case XDR_DECODE : if ( ! xdr_bool ( xdrs , & val ) ) return FALSE ;\n * kbool = ( val == FALSE ) ? FALSE : TRUE ;\n return TRUE ;\n case XDR_ENCODE : val = * kbool ? TRUE : FALSE ;\n return xdr_bool ( xdrs , & val ) ;\n case XDR_FREE : return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 322, "target": 0, "func": "TEST_F ( UsbBlocklistTest , StaticEntries ) {\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x1050 , 0x0010 , 0x0100 }\n ) ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x1050 , 0x0018 , 0x0100 }\n ) ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x1050 , 0x0030 , 0x0100 }\n ) ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x1050 , 0x0110 , 0x0100 }\n ) ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x1050 , 0x0111 , 0x0100 }\n ) ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x1050 , 0x0112 , 0x0100 }\n ) ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x1050 , 0x0113 , 0x0100 }\n ) ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x1050 , 0x0114 , 0x0100 }\n ) ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x1050 , 0x0115 , 0x0100 }\n ) ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x1050 , 0x0116 , 0x0100 }\n ) ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x1050 , 0x0120 , 0x0100 }\n ) ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x1050 , 0x0200 , 0x0100 }\n ) ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x1050 , 0x0211 , 0x0100 }\n ) ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x1050 , 0x0401 , 0x0100 }\n ) ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x1050 , 0x0402 , 0x0100 }\n ) ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x1050 , 0x0403 , 0x0100 }\n ) ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x1050 , 0x0404 , 0x0100 }\n ) ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x1050 , 0x0405 , 0x0100 }\n ) ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x1050 , 0x0406 , 0x0100 }\n ) ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x1050 , 0x0407 , 0x0100 }\n ) ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x1050 , 0x0410 , 0x0100 }\n ) ) ;\n EXPECT_FALSE ( list ( ) . IsExcluded ( {\n 0x104F , 0x0200 , 0x0100 }\n ) ) ;\n EXPECT_FALSE ( list ( ) . IsExcluded ( {\n 0x1051 , 0x0200 , 0x0100 }\n ) ) ;\n }"}
{"idx": 323, "target": 0, "func": "static void rearrange_lsp ( int order , float * lsp , float min_dist ) {\n int i ;\n float min_dist2 = min_dist * 0.5 ;\n for ( i = 1 ;\n i < order ;\n i ++ ) if ( lsp [ i ] - lsp [ i - 1 ] < min_dist ) {\n float avg = ( lsp [ i ] + lsp [ i - 1 ] ) * 0.5 ;\n lsp [ i - 1 ] = avg - min_dist2 ;\n lsp [ i ] = avg + min_dist2 ;\n }\n }"}
{"idx": 324, "target": 0, "func": "static int ivi_create_huff_from_desc ( const IVIHuffDesc * cb , VLC * vlc , int flag ) {\n int pos , i , j , codes_per_row , prefix , not_last_row ;\n uint16_t codewords [ 256 ] ;\n uint8_t bits [ 256 ] ;\n pos = 0 ;\n for ( i = 0 ;\n i < cb -> num_rows ;\n i ++ ) {\n codes_per_row = 1 << cb -> xbits [ i ] ;\n not_last_row = ( i != cb -> num_rows - 1 ) ;\n prefix = ( ( 1 << i ) - 1 ) << ( cb -> xbits [ i ] + not_last_row ) ;\n for ( j = 0 ;\n j < codes_per_row ;\n j ++ ) {\n if ( pos >= 256 ) break ;\n bits [ pos ] = i + cb -> xbits [ i ] + not_last_row ;\n if ( bits [ pos ] > IVI_VLC_BITS ) return - 1 ;\n codewords [ pos ] = inv_bits ( ( prefix | j ) , bits [ pos ] ) ;\n if ( ! bits [ pos ] ) bits [ pos ] = 1 ;\n pos ++ ;\n }\n }\n return init_vlc ( vlc , IVI_VLC_BITS , pos , bits , 1 , 1 , codewords , 2 , 2 , ( flag ? INIT_VLC_USE_NEW_STATIC : 0 ) | INIT_VLC_LE ) ;\n }"}
{"idx": 325, "target": 0, "func": "static gint64 get_varint64 ( tvbuff_t * tvb , gint offset , gint bytes_left , gint * len ) {\n guint8 b ;\n gint64 result = 0 ;\n * len = 0 ;\n while ( ( * len ) < bytes_left ) {\n b = tvb_get_guint8 ( tvb , offset + ( * len ) ) ;\n result |= ( ( gint64 ) b & 0x7f ) << ( ( * len ) * 7 ) ;\n ( * len ) ++ ;\n if ( ( b & 0x80 ) == 0 ) {\n break ;\n }\n }\n return result ;\n }"}
{"idx": 326, "target": 0, "func": "int qemuMonitorTextSystemPowerdown ( qemuMonitorPtr mon ) {\n char * info ;\n if ( qemuMonitorHMPCommand ( mon , \"system_powerdown\" , & info ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , _ ( \"system shutdown operation failed\" ) ) ;\n return - 1 ;\n }\n VIR_FREE ( info ) ;\n return 0 ;\n }"}
{"idx": 327, "target": 0, "func": "static int dissect_h225_T_tunnelledSignallingMessage ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 768 \"./asn1/h225/h225.cnf\" tp_handle = NULL ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_T_tunnelledSignallingMessage , T_tunnelledSignallingMessage_sequence ) ;\n return offset ;\n }"}
{"idx": 328, "target": 0, "func": "static void full_to_model_count ( unsigned int * model_count , unsigned int * full_count ) {\n int n ;\n model_count [ ZERO_TOKEN ] = full_count [ ZERO_TOKEN ] ;\n model_count [ ONE_TOKEN ] = full_count [ ONE_TOKEN ] ;\n model_count [ TWO_TOKEN ] = full_count [ TWO_TOKEN ] ;\n for ( n = THREE_TOKEN ;\n n < EOB_TOKEN ;\n ++ n ) model_count [ TWO_TOKEN ] += full_count [ n ] ;\n model_count [ EOB_MODEL_TOKEN ] = full_count [ EOB_TOKEN ] ;\n }"}
{"idx": 329, "target": 1, "func": "int ff_generate_sliding_window_mmcos ( H264Context * h , int first_slice ) {\n MMCO mmco_temp [ MAX_MMCO_COUNT ] , * mmco = first_slice ? h -> mmco : mmco_temp ;\n int mmco_index = 0 , i ;\n assert ( h -> long_ref_count + h -> short_ref_count <= h -> sps . ref_frame_count ) ;\n if ( h -> short_ref_count && h -> long_ref_count + h -> short_ref_count == h -> sps . ref_frame_count && ! ( FIELD_PICTURE && ! h -> first_field && h -> cur_pic_ptr -> f . reference ) ) {\n mmco [ 0 ] . opcode = MMCO_SHORT2UNUSED ;\n mmco [ 0 ] . short_pic_num = h -> short_ref [ h -> short_ref_count - 1 ] -> frame_num ;\n mmco_index = 1 ;\n if ( FIELD_PICTURE ) {\n mmco [ 0 ] . short_pic_num *= 2 ;\n mmco [ 1 ] . opcode = MMCO_SHORT2UNUSED ;\n mmco [ 1 ] . short_pic_num = mmco [ 0 ] . short_pic_num + 1 ;\n mmco_index = 2 ;\n }\n }\n if ( first_slice ) {\n h -> mmco_index = mmco_index ;\n }\n else if ( ! first_slice && mmco_index >= 0 && ( mmco_index != h -> mmco_index || ( i = check_opcodes ( h -> mmco , mmco_temp , mmco_index ) ) ) ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"Inconsistent MMCO state between slices [%d, %d, %d]\\n\" , mmco_index , h -> mmco_index , i ) ;\n return AVERROR_INVALIDDATA ;\n }\n return 0 ;\n }"}
{"idx": 330, "target": 0, "func": "static int avi_read_seek ( AVFormatContext * s , int stream_index , int64_t timestamp , int flags ) {\n AVIContext * avi = s -> priv_data ;\n AVStream * st ;\n int i , index ;\n int64_t pos , pos_min ;\n AVIStream * ast ;\n if ( avi -> dv_demux ) stream_index = 0 ;\n if ( ! avi -> index_loaded ) {\n avi_load_index ( s ) ;\n avi -> index_loaded |= 1 ;\n }\n av_assert0 ( stream_index >= 0 ) ;\n st = s -> streams [ stream_index ] ;\n ast = st -> priv_data ;\n index = av_index_search_timestamp ( st , timestamp * FFMAX ( ast -> sample_size , 1 ) , flags ) ;\n if ( index < 0 ) {\n if ( st -> nb_index_entries > 0 ) av_log ( s , AV_LOG_DEBUG , \"Failed to find timestamp %\" PRId64 \" in index %\" PRId64 \" .. %\" PRId64 \"\\n\" , timestamp * FFMAX ( ast -> sample_size , 1 ) , st -> index_entries [ 0 ] . timestamp , st -> index_entries [ st -> nb_index_entries - 1 ] . timestamp ) ;\n return AVERROR_INVALIDDATA ;\n }\n pos = st -> index_entries [ index ] . pos ;\n timestamp = st -> index_entries [ index ] . timestamp / FFMAX ( ast -> sample_size , 1 ) ;\n av_log ( s , AV_LOG_TRACE , \"XX %\" PRId64 \" %d %\" PRId64 \"\\n\" , timestamp , index , st -> index_entries [ index ] . timestamp ) ;\n if ( CONFIG_DV_DEMUXER && avi -> dv_demux ) {\n if ( avio_seek ( s -> pb , pos , SEEK_SET ) < 0 ) return - 1 ;\n ff_dv_offset_reset ( avi -> dv_demux , timestamp ) ;\n avi -> stream_index = - 1 ;\n return 0 ;\n }\n pos_min = pos ;\n for ( i = 0 ;\n i < s -> nb_streams ;\n i ++ ) {\n AVStream * st2 = s -> streams [ i ] ;\n AVIStream * ast2 = st2 -> priv_data ;\n ast2 -> packet_size = ast2 -> remaining = 0 ;\n if ( ast2 -> sub_ctx ) {\n seek_subtitle ( st , st2 , timestamp ) ;\n continue ;\n }\n if ( st2 -> nb_index_entries <= 0 ) continue ;\n index = av_index_search_timestamp ( st2 , av_rescale_q ( timestamp , st -> time_base , st2 -> time_base ) * FFMAX ( ast2 -> sample_size , 1 ) , flags | AVSEEK_FLAG_BACKWARD | ( st2 -> codecpar -> codec_type != AVMEDIA_TYPE_VIDEO ? AVSEEK_FLAG_ANY : 0 ) ) ;\n if ( index < 0 ) index = 0 ;\n ast2 -> seek_pos = st2 -> index_entries [ index ] . pos ;\n pos_min = FFMIN ( pos_min , ast2 -> seek_pos ) ;\n }\n for ( i = 0 ;\n i < s -> nb_streams ;\n i ++ ) {\n AVStream * st2 = s -> streams [ i ] ;\n AVIStream * ast2 = st2 -> priv_data ;\n if ( ast2 -> sub_ctx || st2 -> nb_index_entries <= 0 ) continue ;\n index = av_index_search_timestamp ( st2 , av_rescale_q ( timestamp , st -> time_base , st2 -> time_base ) * FFMAX ( ast2 -> sample_size , 1 ) , flags | AVSEEK_FLAG_BACKWARD | ( st2 -> codecpar -> codec_type != AVMEDIA_TYPE_VIDEO ? AVSEEK_FLAG_ANY : 0 ) ) ;\n if ( index < 0 ) index = 0 ;\n while ( ! avi -> non_interleaved && index > 0 && st2 -> index_entries [ index - 1 ] . pos >= pos_min ) index -- ;\n ast2 -> frame_offset = st2 -> index_entries [ index ] . timestamp ;\n }\n if ( avio_seek ( s -> pb , pos_min , SEEK_SET ) < 0 ) {\n av_log ( s , AV_LOG_ERROR , \"Seek failed\\n\" ) ;\n return - 1 ;\n }\n avi -> stream_index = - 1 ;\n avi -> dts_max = INT_MIN ;\n return 0 ;\n }"}
{"idx": 331, "target": 1, "func": "static int roq_encode_init ( AVCodecContext * avctx ) {\n RoqContext * enc = avctx -> priv_data ;\n av_lfg_init ( & enc -> randctx , 1 ) ;\n enc -> framesSinceKeyframe = 0 ;\n if ( ( avctx -> width & 0xf ) || ( avctx -> height & 0xf ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Dimensions must be divisible by 16\\n\" ) ;\n return - 1 ;\n }\n if ( ( ( avctx -> width ) & ( avctx -> width - 1 ) ) || ( ( avctx -> height ) & ( avctx -> height - 1 ) ) ) av_log ( avctx , AV_LOG_ERROR , \"Warning: dimensions not power of two\\n\" ) ;\n enc -> width = avctx -> width ;\n enc -> height = avctx -> height ;\n enc -> framesSinceKeyframe = 0 ;\n enc -> first_frame = 1 ;\n enc -> last_frame = & enc -> frames [ 0 ] ;\n enc -> current_frame = & enc -> frames [ 1 ] ;\n enc -> tmpData = av_malloc ( sizeof ( RoqTempdata ) ) ;\n enc -> this_motion4 = av_mallocz ( ( enc -> width * enc -> height / 16 ) * sizeof ( motion_vect ) ) ;\n enc -> last_motion4 = av_malloc ( ( enc -> width * enc -> height / 16 ) * sizeof ( motion_vect ) ) ;\n enc -> this_motion8 = av_mallocz ( ( enc -> width * enc -> height / 64 ) * sizeof ( motion_vect ) ) ;\n enc -> last_motion8 = av_malloc ( ( enc -> width * enc -> height / 64 ) * sizeof ( motion_vect ) ) ;\n return 0 ;\n }"}
{"idx": 332, "target": 0, "func": "static int dissect_h245_RequestModeAck ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_RequestModeAck , RequestModeAck_sequence ) ;\n return offset ;\n }"}
{"idx": 333, "target": 0, "func": "static inline guint32 gst_asf_demux_get_uint32 ( guint8 * * p_data , guint64 * p_size ) {\n guint32 ret ;\n g_assert ( * p_size >= 4 ) ;\n ret = GST_READ_UINT32_LE ( * p_data ) ;\n * p_data += sizeof ( guint32 ) ;\n * p_size -= sizeof ( guint32 ) ;\n return ret ;\n }"}
{"idx": 334, "target": 0, "func": "EC_KEY * d2i_ECPrivateKey_fp ( FILE * fp , EC_KEY * * eckey ) {\n return ASN1_d2i_fp_of ( EC_KEY , EC_KEY_new , d2i_ECPrivateKey , fp , eckey ) ;\n }"}
{"idx": 335, "target": 0, "func": "static krb5_error_code tl_data2berval ( krb5_tl_data * in , struct berval * * out ) {\n * out = ( struct berval * ) malloc ( sizeof ( struct berval ) ) ;\n if ( * out == NULL ) return ENOMEM ;\n ( * out ) -> bv_len = in -> tl_data_length + 2 ;\n ( * out ) -> bv_val = ( char * ) malloc ( ( * out ) -> bv_len ) ;\n if ( ( * out ) -> bv_val == NULL ) {\n free ( * out ) ;\n return ENOMEM ;\n }\n STORE16_INT ( ( * out ) -> bv_val , in -> tl_data_type ) ;\n memcpy ( ( * out ) -> bv_val + 2 , in -> tl_data_contents , in -> tl_data_length ) ;\n return 0 ;\n }"}
{"idx": 336, "target": 0, "func": "static vpx_codec_err_t ctrl_set_arnr_max_frames ( vpx_codec_alg_priv_t * ctx , va_list args ) {\n struct vp9_extracfg extra_cfg = ctx -> extra_cfg ;\n extra_cfg . arnr_max_frames = CAST ( VP8E_SET_ARNR_MAXFRAMES , args ) ;\n return update_extra_cfg ( ctx , & extra_cfg ) ;\n }"}
{"idx": 337, "target": 0, "func": "void vp9_idct16x16_1_add_sse2 ( const int16_t * input , uint8_t * dest , int stride ) {\n __m128i dc_value ;\n const __m128i zero = _mm_setzero_si128 ( ) ;\n int a , i ;\n a = dct_const_round_shift ( input [ 0 ] * cospi_16_64 ) ;\n a = dct_const_round_shift ( a * cospi_16_64 ) ;\n a = ROUND_POWER_OF_TWO ( a , 6 ) ;\n dc_value = _mm_set1_epi16 ( a ) ;\n for ( i = 0 ;\n i < 2 ;\n ++ i ) {\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n dest += 8 - ( stride * 16 ) ;\n }\n }"}
{"idx": 338, "target": 0, "func": "void qdev_register ( DeviceInfo * info ) {\n assert ( info -> size >= sizeof ( DeviceState ) ) ;\n assert ( ! info -> next ) ;\n info -> next = device_info_list ;\n device_info_list = info ;\n }"}
{"idx": 339, "target": 1, "func": "static int parse_CInGroupSortAggregSet ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree , const char * fmt , ... ) {\n proto_item * item ;\n proto_tree * tree ;\n va_list ap ;\n enum CInGroupSortAggregSet_type type ;\n const char * txt ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CInGroupSortAggregSet , & item , txt ) ;\n offset = parse_CInGroupSortAggregSet_type ( tvb , offset , tree , & type ) ;\n offset = parse_padding ( tvb , offset , 4 , pad_tree , \"CInGroupSortAggregSet\" ) ;\n if ( type == GroupIdValue ) {\n struct CBaseStorageVariant id ;\n offset = parse_CBaseStorageVariant ( tvb , offset , tree , pad_tree , & id , \"inGroupId\" ) ;\n }\n offset = parse_CSortSet ( tvb , offset , tree , pad_tree , \"SortSet\" ) ;\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 340, "target": 0, "func": "static void cmd_network ( const char * data , SERVER_REC * server , WI_ITEM_REC * item ) {\n if ( * data == '\\0' ) cmd_network_list ( ) ;\n else command_runsub ( \"network\" , data , server , item ) ;\n }"}
{"idx": 341, "target": 0, "func": "static int ogg_read_close ( AVFormatContext * s ) {\n struct ogg * ogg = s -> priv_data ;\n int i ;\n for ( i = 0 ;\n i < ogg -> nstreams ;\n i ++ ) {\n av_freep ( & ogg -> streams [ i ] . buf ) ;\n if ( ogg -> streams [ i ] . codec && ogg -> streams [ i ] . codec -> cleanup ) {\n ogg -> streams [ i ] . codec -> cleanup ( s , i ) ;\n }\n av_freep ( & ogg -> streams [ i ] . private ) ;\n av_freep ( & ogg -> streams [ i ] . new_metadata ) ;\n }\n ogg -> nstreams = 0 ;\n av_freep ( & ogg -> streams ) ;\n return 0 ;\n }"}
{"idx": 342, "target": 0, "func": "const char * * __xmlTreeIndentString ( void ) {\n if ( IS_MAIN_THREAD ) return ( & xmlTreeIndentString ) ;\n else return ( & xmlGetGlobalState ( ) -> xmlTreeIndentString ) ;\n }"}
{"idx": 343, "target": 0, "func": "static void ss_lx_init ( QEMUMachineInitArgs * args ) {\n ram_addr_t RAM_size = args -> ram_size ;\n const char * cpu_model = args -> cpu_model ;\n const char * kernel_filename = args -> kernel_filename ;\n const char * kernel_cmdline = args -> kernel_cmdline ;\n const char * initrd_filename = args -> initrd_filename ;\n const char * boot_device = args -> boot_device ;\n sun4m_hw_init ( & sun4m_hwdefs [ 5 ] , RAM_size , boot_device , kernel_filename , kernel_cmdline , initrd_filename , cpu_model ) ;\n }"}
{"idx": 344, "target": 0, "func": "static float * qcms_modular_transform_data ( struct qcms_modular_transform * transform , float * src , float * dest , size_t len ) {\n while ( transform != NULL ) {\n float * new_src = dest ;\n const transform_module_fn_t transform_fn = transform -> transform_module_fn ;\n if ( transform_fn != qcms_transform_module_gamma_table && transform_fn != qcms_transform_module_gamma_lut && transform_fn != qcms_transform_module_clut && transform_fn != qcms_transform_module_clut_only && transform_fn != qcms_transform_module_matrix && transform_fn != qcms_transform_module_matrix_translate && transform_fn != qcms_transform_module_LAB_to_XYZ && transform_fn != qcms_transform_module_XYZ_to_LAB ) {\n assert ( 0 && \"Unsupported transform module\" ) ;\n return NULL ;\n }\n transform -> transform_module_fn ( transform , src , dest , len ) ;\n dest = src ;\n src = new_src ;\n transform = transform -> next_transform ;\n }\n return src ;\n }"}
{"idx": 345, "target": 0, "func": "static enum AVPixelFormat libopenjpeg_guess_pix_fmt ( const opj_image_t * image ) {\n int index ;\n const enum AVPixelFormat * possible_fmts = NULL ;\n int possible_fmts_nb = 0 ;\n switch ( image -> color_space ) {\n case CLRSPC_SRGB : possible_fmts = rgb_pix_fmts ;\n possible_fmts_nb = FF_ARRAY_ELEMS ( rgb_pix_fmts ) ;\n break ;\n case CLRSPC_GRAY : possible_fmts = gray_pix_fmts ;\n possible_fmts_nb = FF_ARRAY_ELEMS ( gray_pix_fmts ) ;\n break ;\n case CLRSPC_SYCC : possible_fmts = yuv_pix_fmts ;\n possible_fmts_nb = FF_ARRAY_ELEMS ( yuv_pix_fmts ) ;\n break ;\n default : possible_fmts = any_pix_fmts ;\n possible_fmts_nb = FF_ARRAY_ELEMS ( any_pix_fmts ) ;\n break ;\n }\n for ( index = 0 ;\n index < possible_fmts_nb ;\n ++ index ) {\n if ( libopenjpeg_matches_pix_fmt ( image , possible_fmts [ index ] ) ) {\n return possible_fmts [ index ] ;\n }\n }\n return AV_PIX_FMT_NONE ;\n }"}
{"idx": 346, "target": 0, "func": "void vmxnet_tx_pkt_dump ( struct VmxnetTxPkt * pkt ) {\n # ifdef VMXNET_TX_PKT_DEBUG assert ( pkt ) ;\n printf ( \"TX PKT: hdr_len: %d, pkt_type: 0x%X, l2hdr_len: %lu, \" \"l3hdr_len: %lu, payload_len: %u\\n\" , pkt -> hdr_len , pkt -> packet_type , pkt -> vec [ VMXNET_TX_PKT_L2HDR_FRAG ] . iov_len , pkt -> vec [ VMXNET_TX_PKT_L3HDR_FRAG ] . iov_len , pkt -> payload_len ) ;\n # endif }"}
{"idx": 347, "target": 0, "func": "xmlChar * xsltEvalTemplateString ( xsltTransformContextPtr ctxt , xmlNodePtr contextNode , xmlNodePtr inst ) {\n xmlNodePtr oldInsert , insert = NULL ;\n xmlChar * ret ;\n if ( ( ctxt == NULL ) || ( contextNode == NULL ) || ( inst == NULL ) || ( inst -> type != XML_ELEMENT_NODE ) ) return ( NULL ) ;\n if ( inst -> children == NULL ) return ( NULL ) ;\n insert = xmlNewDocNode ( ctxt -> output , NULL , ( const xmlChar * ) \"fake\" , NULL ) ;\n if ( insert == NULL ) {\n xsltTransformError ( ctxt , NULL , contextNode , \"Failed to create temporary node\\n\" ) ;\n return ( NULL ) ;\n }\n oldInsert = ctxt -> insert ;\n ctxt -> insert = insert ;\n xsltApplyOneTemplate ( ctxt , contextNode , inst -> children , NULL , NULL ) ;\n ctxt -> insert = oldInsert ;\n ret = xmlNodeGetContent ( insert ) ;\n if ( insert != NULL ) xmlFreeNode ( insert ) ;\n return ( ret ) ;\n }"}
{"idx": 348, "target": 0, "func": "void rfbProcessUDPInput ( rfbScreenInfoPtr rfbScreen ) {\n int n ;\n rfbClientPtr cl = rfbScreen -> udpClient ;\n rfbClientToServerMsg msg ;\n if ( ( ! cl ) || cl -> onHold ) return ;\n if ( ( n = read ( rfbScreen -> udpSock , ( char * ) & msg , sizeof ( msg ) ) ) <= 0 ) {\n if ( n < 0 ) {\n rfbLogPerror ( \"rfbProcessUDPInput: read\" ) ;\n }\n rfbDisconnectUDPSock ( rfbScreen ) ;\n return ;\n }\n switch ( msg . type ) {\n case rfbKeyEvent : if ( n != sz_rfbKeyEventMsg ) {\n rfbErr ( \"rfbProcessUDPInput: key event incorrect length\\n\" ) ;\n rfbDisconnectUDPSock ( rfbScreen ) ;\n return ;\n }\n cl -> screen -> kbdAddEvent ( msg . ke . down , ( rfbKeySym ) Swap32IfLE ( msg . ke . key ) , cl ) ;\n break ;\n case rfbPointerEvent : if ( n != sz_rfbPointerEventMsg ) {\n rfbErr ( \"rfbProcessUDPInput: ptr event incorrect length\\n\" ) ;\n rfbDisconnectUDPSock ( rfbScreen ) ;\n return ;\n }\n cl -> screen -> ptrAddEvent ( msg . pe . buttonMask , Swap16IfLE ( msg . pe . x ) , Swap16IfLE ( msg . pe . y ) , cl ) ;\n break ;\n default : rfbErr ( \"rfbProcessUDPInput: unknown message type %d\\n\" , msg . type ) ;\n rfbDisconnectUDPSock ( rfbScreen ) ;\n }\n }"}
{"idx": 349, "target": 0, "func": "TEST_F ( ShortcutsBackendTest , AddAndUpdateShortcut ) {\n InitBackend ( ) ;\n EXPECT_FALSE ( changed_notified ( ) ) ;\n ShortcutsDatabase : : Shortcut shortcut ( \"BD85DBA2-8C29-49F9-84AE-48E1E90880DF\" , base : : ASCIIToUTF16 ( \"goog\" ) , MatchCoreForTesting ( \"http://www.google.com\" ) , base : : Time : : Now ( ) , 100 ) ;\n EXPECT_TRUE ( AddShortcut ( shortcut ) ) ;\n EXPECT_TRUE ( changed_notified ( ) ) ;\n ShortcutsBackend : : ShortcutMap : : const_iterator shortcut_iter ( shortcuts_map ( ) . find ( shortcut . text ) ) ;\n ASSERT_TRUE ( shortcut_iter != shortcuts_map ( ) . end ( ) ) ;\n EXPECT_EQ ( shortcut . id , shortcut_iter -> second . id ) ;\n EXPECT_EQ ( shortcut . match_core . contents , shortcut_iter -> second . match_core . contents ) ;\n set_changed_notified ( false ) ;\n shortcut . match_core . contents = base : : ASCIIToUTF16 ( \"Google Web Search\" ) ;\n EXPECT_TRUE ( UpdateShortcut ( shortcut ) ) ;\n EXPECT_TRUE ( changed_notified ( ) ) ;\n shortcut_iter = shortcuts_map ( ) . find ( shortcut . text ) ;\n ASSERT_TRUE ( shortcut_iter != shortcuts_map ( ) . end ( ) ) ;\n EXPECT_EQ ( shortcut . id , shortcut_iter -> second . id ) ;\n EXPECT_EQ ( shortcut . match_core . contents , shortcut_iter -> second . match_core . contents ) ;\n }"}
{"idx": 350, "target": 0, "func": "gcry_sexp_t gcry_sexp_cadr ( const gcry_sexp_t list ) {\n gcry_sexp_t a , b ;\n a = gcry_sexp_cdr ( list ) ;\n b = gcry_sexp_car ( a ) ;\n gcry_sexp_release ( a ) ;\n return b ;\n }"}
{"idx": 351, "target": 0, "func": "static vpx_codec_err_t parse_options ( SvcContext * svc_ctx , const char * options ) {\n char * input_string ;\n char * option_name ;\n char * option_value ;\n char * input_ptr ;\n SvcInternal * const si = get_svc_internal ( svc_ctx ) ;\n vpx_codec_err_t res = VPX_CODEC_OK ;\n int i , alt_ref_enabled = 0 ;\n if ( options == NULL ) return VPX_CODEC_OK ;\n input_string = strdup ( options ) ;\n option_name = strtok_r ( input_string , \"=\" , & input_ptr ) ;\n while ( option_name != NULL ) {\n option_value = strtok_r ( NULL , \" \" , & input_ptr ) ;\n if ( option_value == NULL ) {\n svc_log ( svc_ctx , SVC_LOG_ERROR , \"option missing value: %s\\n\" , option_name ) ;\n res = VPX_CODEC_INVALID_PARAM ;\n break ;\n }\n if ( strcmp ( \"spatial-layers\" , option_name ) == 0 ) {\n svc_ctx -> spatial_layers = atoi ( option_value ) ;\n }\n else if ( strcmp ( \"temporal-layers\" , option_name ) == 0 ) {\n svc_ctx -> temporal_layers = atoi ( option_value ) ;\n }\n else if ( strcmp ( \"scale-factors\" , option_name ) == 0 ) {\n res = parse_layer_options_from_string ( svc_ctx , SCALE_FACTOR , option_value , si -> svc_params . scaling_factor_num , si -> svc_params . scaling_factor_den ) ;\n if ( res != VPX_CODEC_OK ) break ;\n }\n else if ( strcmp ( \"max-quantizers\" , option_name ) == 0 ) {\n res = parse_layer_options_from_string ( svc_ctx , QUANTIZER , option_value , si -> svc_params . max_quantizers , NULL ) ;\n if ( res != VPX_CODEC_OK ) break ;\n }\n else if ( strcmp ( \"min-quantizers\" , option_name ) == 0 ) {\n res = parse_layer_options_from_string ( svc_ctx , QUANTIZER , option_value , si -> svc_params . min_quantizers , NULL ) ;\n if ( res != VPX_CODEC_OK ) break ;\n }\n else if ( strcmp ( \"auto-alt-refs\" , option_name ) == 0 ) {\n res = parse_layer_options_from_string ( svc_ctx , AUTO_ALT_REF , option_value , si -> enable_auto_alt_ref , NULL ) ;\n if ( res != VPX_CODEC_OK ) break ;\n }\n else if ( strcmp ( \"bitrates\" , option_name ) == 0 ) {\n res = parse_layer_options_from_string ( svc_ctx , BITRATE , option_value , si -> bitrates , NULL ) ;\n if ( res != VPX_CODEC_OK ) break ;\n }\n else if ( strcmp ( \"multi-frame-contexts\" , option_name ) == 0 ) {\n si -> use_multiple_frame_contexts = atoi ( option_value ) ;\n }\n else {\n svc_log ( svc_ctx , SVC_LOG_ERROR , \"invalid option: %s\\n\" , option_name ) ;\n res = VPX_CODEC_INVALID_PARAM ;\n break ;\n }\n option_name = strtok_r ( NULL , \"=\" , & input_ptr ) ;\n }\n free ( input_string ) ;\n for ( i = 0 ;\n i < svc_ctx -> spatial_layers ;\n ++ i ) {\n if ( si -> svc_params . max_quantizers [ i ] > MAX_QUANTIZER || si -> svc_params . max_quantizers [ i ] < 0 || si -> svc_params . min_quantizers [ i ] > si -> svc_params . max_quantizers [ i ] || si -> svc_params . min_quantizers [ i ] < 0 ) res = VPX_CODEC_INVALID_PARAM ;\n }\n if ( si -> use_multiple_frame_contexts && ( svc_ctx -> spatial_layers > 3 || svc_ctx -> spatial_layers * svc_ctx -> temporal_layers > 4 ) ) res = VPX_CODEC_INVALID_PARAM ;\n for ( i = 0 ;\n i < svc_ctx -> spatial_layers ;\n ++ i ) alt_ref_enabled += si -> enable_auto_alt_ref [ i ] ;\n if ( alt_ref_enabled > REF_FRAMES - svc_ctx -> spatial_layers ) {\n svc_log ( svc_ctx , SVC_LOG_ERROR , \"svc: auto alt ref: Maxinum %d(REF_FRAMES - layers) layers could\" \"enabled auto alt reference frame, but % layers are enabled\\n\" , REF_FRAMES - svc_ctx -> spatial_layers , alt_ref_enabled ) ;\n res = VPX_CODEC_INVALID_PARAM ;\n }\n return res ;\n }"}
{"idx": 352, "target": 0, "func": "static int combined_motion_search ( VP9_COMP * cpi , MACROBLOCK * x , BLOCK_SIZE bsize , int mi_row , int mi_col , int_mv * tmp_mv , int * rate_mv , int64_t best_rd_sofar ) {\n MACROBLOCKD * xd = & x -> e_mbd ;\n MB_MODE_INFO * mbmi = & xd -> mi [ 0 ] . src_mi -> mbmi ;\n struct buf_2d backup_yv12 [ MAX_MB_PLANE ] = {\n {\n 0 , 0 }\n }\n ;\n const int step_param = cpi -> sf . mv . fullpel_search_step_param ;\n const int sadpb = x -> sadperbit16 ;\n MV mvp_full ;\n const int ref = mbmi -> ref_frame [ 0 ] ;\n const MV ref_mv = mbmi -> ref_mvs [ ref ] [ 0 ] . as_mv ;\n int dis ;\n int rate_mode ;\n const int tmp_col_min = x -> mv_col_min ;\n const int tmp_col_max = x -> mv_col_max ;\n const int tmp_row_min = x -> mv_row_min ;\n const int tmp_row_max = x -> mv_row_max ;\n int rv = 0 ;\n int sad_list [ 5 ] ;\n const YV12_BUFFER_CONFIG * scaled_ref_frame = vp9_get_scaled_ref_frame ( cpi , ref ) ;\n if ( cpi -> common . show_frame && ( x -> pred_mv_sad [ ref ] >> 3 ) > x -> pred_mv_sad [ LAST_FRAME ] ) return rv ;\n if ( scaled_ref_frame ) {\n int i ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n i ++ ) backup_yv12 [ i ] = xd -> plane [ i ] . pre [ 0 ] ;\n vp9_setup_pre_planes ( xd , 0 , scaled_ref_frame , mi_row , mi_col , NULL ) ;\n }\n vp9_set_mv_search_range ( x , & ref_mv ) ;\n assert ( x -> mv_best_ref_index [ ref ] <= 2 ) ;\n if ( x -> mv_best_ref_index [ ref ] < 2 ) mvp_full = mbmi -> ref_mvs [ ref ] [ x -> mv_best_ref_index [ ref ] ] . as_mv ;\n else mvp_full = x -> pred_mv [ ref ] ;\n mvp_full . col >>= 3 ;\n mvp_full . row >>= 3 ;\n vp9_full_pixel_search ( cpi , x , bsize , & mvp_full , step_param , sadpb , cond_sad_list ( cpi , sad_list ) , & ref_mv , & tmp_mv -> as_mv , INT_MAX , 0 ) ;\n x -> mv_col_min = tmp_col_min ;\n x -> mv_col_max = tmp_col_max ;\n x -> mv_row_min = tmp_row_min ;\n x -> mv_row_max = tmp_row_max ;\n mvp_full . row = tmp_mv -> as_mv . row * 8 ;\n mvp_full . col = tmp_mv -> as_mv . col * 8 ;\n * rate_mv = vp9_mv_bit_cost ( & mvp_full , & ref_mv , x -> nmvjointcost , x -> mvcost , MV_COST_WEIGHT ) ;\n rate_mode = cpi -> inter_mode_cost [ mbmi -> mode_context [ ref ] ] [ INTER_OFFSET ( NEWMV ) ] ;\n rv = ! ( RDCOST ( x -> rdmult , x -> rddiv , ( * rate_mv + rate_mode ) , 0 ) > best_rd_sofar ) ;\n if ( rv ) {\n cpi -> find_fractional_mv_step ( x , & tmp_mv -> as_mv , & ref_mv , cpi -> common . allow_high_precision_mv , x -> errorperbit , & cpi -> fn_ptr [ bsize ] , cpi -> sf . mv . subpel_force_stop , cpi -> sf . mv . subpel_iters_per_step , cond_sad_list ( cpi , sad_list ) , x -> nmvjointcost , x -> mvcost , & dis , & x -> pred_sse [ ref ] , NULL , 0 , 0 ) ;\n x -> pred_mv [ ref ] = tmp_mv -> as_mv ;\n }\n if ( scaled_ref_frame ) {\n int i ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n i ++ ) xd -> plane [ i ] . pre [ 0 ] = backup_yv12 [ i ] ;\n }\n return rv ;\n }"}
{"idx": 353, "target": 0, "func": "static gpgme_error_t start ( engine_uiserver_t uiserver , const char * command ) {\n gpgme_error_t err ;\n int fdlist [ 5 ] ;\n int nfds ;\n nfds = assuan_get_active_fds ( uiserver -> assuan_ctx , 0 , fdlist , DIM ( fdlist ) ) ;\n if ( nfds < 1 ) return gpg_error ( GPG_ERR_GENERAL ) ;\n uiserver -> status_cb . fd = _gpgme_io_dup ( fdlist [ 0 ] ) ;\n if ( uiserver -> status_cb . fd < 0 ) return gpg_error_from_syserror ( ) ;\n if ( _gpgme_io_set_close_notify ( uiserver -> status_cb . fd , close_notify_handler , uiserver ) ) {\n _gpgme_io_close ( uiserver -> status_cb . fd ) ;\n uiserver -> status_cb . fd = - 1 ;\n return gpg_error ( GPG_ERR_GENERAL ) ;\n }\n err = add_io_cb ( uiserver , & uiserver -> status_cb , status_handler ) ;\n if ( ! err && uiserver -> input_cb . fd != - 1 ) err = add_io_cb ( uiserver , & uiserver -> input_cb , _gpgme_data_outbound_handler ) ;\n if ( ! err && uiserver -> output_cb . fd != - 1 ) err = add_io_cb ( uiserver , & uiserver -> output_cb , _gpgme_data_inbound_handler ) ;\n if ( ! err && uiserver -> message_cb . fd != - 1 ) err = add_io_cb ( uiserver , & uiserver -> message_cb , _gpgme_data_outbound_handler ) ;\n if ( ! err ) err = assuan_write_line ( uiserver -> assuan_ctx , command ) ;\n if ( ! err ) uiserver_io_event ( uiserver , GPGME_EVENT_START , NULL ) ;\n return err ;\n }"}
{"idx": 354, "target": 0, "func": "static void http_writecb ( struct bufferevent * bev , void * arg ) {\n if ( EVBUFFER_LENGTH ( bev -> output ) == 0 ) {\n bufferevent_enable ( bev , EV_READ ) ;\n test_ok ++ ;\n }\n }"}
{"idx": 355, "target": 0, "func": "static void context_param ( void ) {\n gpg_error_t err ;\n int idx ;\n gcry_ctx_t ctx = NULL ;\n gcry_mpi_t q ;\n gcry_sexp_t keyparam ;\n wherestr = \"context_param\" ;\n show ( \"checking standard curves\\n\" ) ;\n for ( idx = 0 ;\n test_curve [ idx ] . desc ;\n idx ++ ) {\n gcry_ctx_release ( ctx ) ;\n err = gcry_mpi_ec_new ( & ctx , NULL , test_curve [ idx ] . desc ) ;\n if ( err ) {\n fail ( \"can't create context for curve '%s': %s\\n\" , test_curve [ idx ] . desc , gpg_strerror ( err ) ) ;\n continue ;\n }\n if ( get_and_cmp_mpi ( \"p\" , test_curve [ idx ] . p , test_curve [ idx ] . desc , ctx ) ) continue ;\n if ( get_and_cmp_mpi ( \"a\" , test_curve [ idx ] . a , test_curve [ idx ] . desc , ctx ) ) continue ;\n if ( get_and_cmp_mpi ( \"b\" , test_curve [ idx ] . b , test_curve [ idx ] . desc , ctx ) ) continue ;\n if ( get_and_cmp_mpi ( \"g.x\" , test_curve [ idx ] . g_x , test_curve [ idx ] . desc , ctx ) ) continue ;\n if ( get_and_cmp_mpi ( \"g.y\" , test_curve [ idx ] . g_y , test_curve [ idx ] . desc , ctx ) ) continue ;\n if ( get_and_cmp_mpi ( \"n\" , test_curve [ idx ] . n , test_curve [ idx ] . desc , ctx ) ) continue ;\n if ( get_and_cmp_point ( \"g\" , test_curve [ idx ] . g_x , test_curve [ idx ] . g_y , test_curve [ idx ] . desc , ctx ) ) continue ;\n }\n gcry_ctx_release ( ctx ) ;\n show ( \"checking sample public key\\n\" ) ;\n q = hex2mpi ( sample_p256_q ) ;\n err = gcry_sexp_build ( & keyparam , NULL , \"(public-key(ecdsa(curve %s)(q %m)))\" , \"NIST P-256\" , q ) ;\n if ( err ) die ( \"gcry_sexp_build failed: %s\\n\" , gpg_strerror ( err ) ) ;\n gcry_mpi_release ( q ) ;\n err = gcry_mpi_ec_new ( & ctx , keyparam , NULL ) ;\n if ( err ) fail ( \"gcry_mpi_ec_new failed for sample public key: %s\\n\" , gpg_strerror ( err ) ) ;\n else {\n gcry_sexp_t sexp ;\n get_and_cmp_mpi ( \"q\" , sample_p256_q , \"NIST P-256\" , ctx ) ;\n get_and_cmp_point ( \"q\" , sample_p256_q_x , sample_p256_q_y , \"NIST P-256\" , ctx ) ;\n err = gcry_pubkey_get_sexp ( & sexp , 0 , ctx ) ;\n if ( err ) fail ( \"gcry_pubkey_get_sexp(0) failed: %s\\n\" , gpg_strerror ( err ) ) ;\n else if ( debug ) print_sexp ( \"Result of gcry_pubkey_get_sexp (0):\\n\" , sexp ) ;\n gcry_sexp_release ( sexp ) ;\n err = gcry_pubkey_get_sexp ( & sexp , GCRY_PK_GET_PUBKEY , ctx ) ;\n if ( err ) fail ( \"gcry_pubkey_get_sexp(GET_PUBKEY) failed: %s\\n\" , gpg_strerror ( err ) ) ;\n else if ( debug ) print_sexp ( \"Result of gcry_pubkey_get_sexp (GET_PUBKEY):\\n\" , sexp ) ;\n gcry_sexp_release ( sexp ) ;\n err = gcry_pubkey_get_sexp ( & sexp , GCRY_PK_GET_SECKEY , ctx ) ;\n if ( gpg_err_code ( err ) != GPG_ERR_NO_SECKEY ) fail ( \"gcry_pubkey_get_sexp(GET_SECKEY) returned wrong error: %s\\n\" , gpg_strerror ( err ) ) ;\n gcry_sexp_release ( sexp ) ;\n gcry_ctx_release ( ctx ) ;\n }\n gcry_sexp_release ( keyparam ) ;\n }"}
{"idx": 356, "target": 0, "func": "TSVConn TSHttpConnectWithPluginId ( sockaddr const * addr , const char * tag , int64_t id ) {\n sdk_assert ( addr ) ;\n sdk_assert ( ats_is_ip ( addr ) ) ;\n sdk_assert ( ats_ip_port_cast ( addr ) ) ;\n if ( plugin_http_accept ) {\n PluginVCCore * new_pvc = PluginVCCore : : alloc ( plugin_http_accept ) ;\n new_pvc -> set_active_addr ( addr ) ;\n new_pvc -> set_plugin_id ( id ) ;\n new_pvc -> set_plugin_tag ( tag ) ;\n PluginVC * return_vc = new_pvc -> connect ( ) ;\n if ( return_vc != nullptr ) {\n PluginVC * other_side = return_vc -> get_other_side ( ) ;\n if ( other_side != nullptr ) {\n other_side -> set_is_internal_request ( true ) ;\n }\n }\n return reinterpret_cast < TSVConn > ( return_vc ) ;\n }\n return nullptr ;\n }"}
{"idx": 357, "target": 0, "func": "static int dissect_h245_TerminalCapabilitySetRelease ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_TerminalCapabilitySetRelease , TerminalCapabilitySetRelease_sequence ) ;\n # line 596 \"../../asn1/h245/h245.cnf\" if ( h245_pi != NULL ) h245_pi -> msg_type = H245_TermCapSetRls ;\n return offset ;\n }"}
{"idx": 358, "target": 0, "func": "static void AssignNotdefNull ( SplineFont * sf , int * bygid , int iscff ) {\n int i ;\n for ( i = 0 ;\n i < sf -> glyphcnt ;\n ++ i ) if ( sf -> glyphs [ i ] != NULL ) {\n if ( bygid [ 0 ] == - 1 && strcmp ( sf -> glyphs [ i ] -> name , \".notdef\" ) == 0 ) {\n sf -> glyphs [ i ] -> ttf_glyph = 0 ;\n bygid [ 0 ] = i ;\n }\n else if ( ! iscff && bygid [ 1 ] == - 1 && ( strcmp ( sf -> glyphs [ i ] -> name , \".null\" ) == 0 || strcmp ( sf -> glyphs [ i ] -> name , \"uni0000\" ) == 0 || ( i == 1 && strcmp ( sf -> glyphs [ 1 ] -> name , \"glyph1\" ) == 0 ) ) ) {\n sf -> glyphs [ i ] -> ttf_glyph = 1 ;\n bygid [ 1 ] = i ;\n }\n else if ( ! iscff && bygid [ 2 ] == - 1 && ( strcmp ( sf -> glyphs [ i ] -> name , \"nonmarkingreturn\" ) == 0 || strcmp ( sf -> glyphs [ i ] -> name , \"uni000D\" ) == 0 || ( i == 2 && strcmp ( sf -> glyphs [ 2 ] -> name , \"glyph2\" ) == 0 ) ) ) {\n sf -> glyphs [ i ] -> ttf_glyph = 2 ;\n bygid [ 2 ] = i ;\n }\n }\n }"}
{"idx": 359, "target": 1, "func": "bool id_h ( connection_t * c ) {\n char name [ MAX_STRING_SIZE ] ;\n if ( sscanf ( c -> buffer , \"%*d \" MAX_STRING \" %d\" , name , & c -> protocol_version ) != 2 ) {\n logger ( LOG_ERR , \"Got bad %s from %s (%s)\" , \"ID\" , c -> name , c -> hostname ) ;\n return false ;\n }\n if ( ! check_id ( name ) ) {\n logger ( LOG_ERR , \"Got bad %s from %s (%s): %s\" , \"ID\" , c -> name , c -> hostname , \"invalid name\" ) ;\n return false ;\n }\n if ( c -> outgoing ) {\n if ( strcmp ( c -> name , name ) ) {\n logger ( LOG_ERR , \"Peer %s is %s instead of %s\" , c -> hostname , name , c -> name ) ;\n return false ;\n }\n }\n else {\n if ( c -> name ) {\n free ( c -> name ) ;\n }\n c -> name = xstrdup ( name ) ;\n }\n if ( c -> protocol_version != myself -> connection -> protocol_version ) {\n logger ( LOG_ERR , \"Peer %s (%s) uses incompatible version %d\" , c -> name , c -> hostname , c -> protocol_version ) ;\n return false ;\n }\n if ( bypass_security ) {\n if ( ! c -> config_tree ) {\n init_configuration ( & c -> config_tree ) ;\n }\n c -> allow_request = ACK ;\n return send_ack ( c ) ;\n }\n if ( ! c -> config_tree ) {\n init_configuration ( & c -> config_tree ) ;\n if ( ! read_connection_config ( c ) ) {\n logger ( LOG_ERR , \"Peer %s had unknown identity (%s)\" , c -> hostname , c -> name ) ;\n return false ;\n }\n }\n if ( ! read_rsa_public_key ( c ) ) {\n return false ;\n }\n c -> allow_request = METAKEY ;\n return send_metakey ( c ) ;\n }"}
{"idx": 360, "target": 0, "func": "static u32 gen_reqid ( struct net * net ) {\n struct xfrm_policy_walk walk ;\n u32 start ;\n int rc ;\n static u32 reqid = IPSEC_MANUAL_REQID_MAX ;\n start = reqid ;\n do {\n ++ reqid ;\n if ( reqid == 0 ) reqid = IPSEC_MANUAL_REQID_MAX + 1 ;\n xfrm_policy_walk_init ( & walk , XFRM_POLICY_TYPE_MAIN ) ;\n rc = xfrm_policy_walk ( net , & walk , check_reqid , ( void * ) & reqid ) ;\n xfrm_policy_walk_done ( & walk ) ;\n if ( rc != - EEXIST ) return reqid ;\n }\n while ( reqid != start ) ;\n return 0 ;\n }"}
{"idx": 361, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , TestReplaceRemovesStaleHandlers ) {\n ProtocolHandler ph1 = CreateProtocolHandler ( \"mailto\" , GURL ( \"http://test.com/%s\" ) ) ;\n ProtocolHandler ph2 = CreateProtocolHandler ( \"mailto\" , GURL ( \"http://test.com/updated-url/%s\" ) ) ;\n ProtocolHandler ph3 = CreateProtocolHandler ( \"mailto\" , GURL ( \"http://test.com/third/%s\" ) ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph2 ) ;\n ASSERT_TRUE ( registry ( ) -> AttemptReplace ( ph3 ) ) ;\n const ProtocolHandler & handler ( registry ( ) -> GetHandlerFor ( \"mailto\" ) ) ;\n ASSERT_EQ ( handler . url ( ) , ph3 . url ( ) ) ;\n registry ( ) -> RemoveHandler ( ph3 ) ;\n ASSERT_TRUE ( registry ( ) -> GetHandlerFor ( \"mailto\" ) . IsEmpty ( ) ) ;\n }"}
{"idx": 362, "target": 0, "func": "static int rawv6_send_hdrinc ( struct sock * sk , void * from , int length , struct flowi * fl , struct rt6_info * rt , unsigned int flags ) {\n struct ipv6_pinfo * np = inet6_sk ( sk ) ;\n struct ipv6hdr * iph ;\n struct sk_buff * skb ;\n int err ;\n if ( length > rt -> u . dst . dev -> mtu ) {\n ipv6_local_error ( sk , EMSGSIZE , fl , rt -> u . dst . dev -> mtu ) ;\n return - EMSGSIZE ;\n }\n if ( flags & MSG_PROBE ) goto out ;\n skb = sock_alloc_send_skb ( sk , length + LL_ALLOCATED_SPACE ( rt -> u . dst . dev ) + 15 , flags & MSG_DONTWAIT , & err ) ;\n if ( skb == NULL ) goto error ;\n skb_reserve ( skb , LL_RESERVED_SPACE ( rt -> u . dst . dev ) ) ;\n skb -> priority = sk -> sk_priority ;\n skb -> mark = sk -> sk_mark ;\n skb_dst_set ( skb , dst_clone ( & rt -> u . dst ) ) ;\n skb_put ( skb , length ) ;\n skb_reset_network_header ( skb ) ;\n iph = ipv6_hdr ( skb ) ;\n skb -> ip_summed = CHECKSUM_NONE ;\n skb -> transport_header = skb -> network_header ;\n err = memcpy_fromiovecend ( ( void * ) iph , from , 0 , length ) ;\n if ( err ) goto error_fault ;\n IP6_UPD_PO_STATS ( sock_net ( sk ) , rt -> rt6i_idev , IPSTATS_MIB_OUT , skb -> len ) ;\n err = NF_HOOK ( PF_INET6 , NF_INET_LOCAL_OUT , skb , NULL , rt -> u . dst . dev , dst_output ) ;\n if ( err > 0 ) err = net_xmit_errno ( err ) ;\n if ( err ) goto error ;\n out : return 0 ;\n error_fault : err = - EFAULT ;\n kfree_skb ( skb ) ;\n error : IP6_INC_STATS ( sock_net ( sk ) , rt -> rt6i_idev , IPSTATS_MIB_OUTDISCARDS ) ;\n if ( err == - ENOBUFS && ! np -> recverr ) err = 0 ;\n return err ;\n }"}
{"idx": 363, "target": 0, "func": "static int dissect_spoolss_string_parm_data ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n guint32 buffer_len , len ;\n gchar * s ;\n proto_item * item = NULL ;\n if ( di -> conformant_run ) return offset ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_string_parm_size , & buffer_len ) ;\n s = tvb_get_stringz_enc ( wmem_packet_scope ( ) , tvb , offset , & len , ENC_UTF_16 | ENC_LITTLE_ENDIAN ) ;\n if ( tree && buffer_len ) {\n tvb_ensure_bytes_exist ( tvb , offset , buffer_len ) ;\n item = proto_tree_add_string ( tree , hf_string_parm_data , tvb , offset , len , s ) ;\n }\n offset += buffer_len ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , s ) ;\n if ( tree && item ) {\n item = item -> parent != NULL ? item -> parent : item ;\n proto_item_append_text ( item , \": %s\" , s ) ;\n }\n return offset ;\n }"}
{"idx": 364, "target": 0, "func": "static void dissect_netbios_payload ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree ) {\n heur_dtbl_entry_t * hdtbl_entry ;\n if ( ! dissector_try_heuristic ( netbios_heur_subdissector_list , tvb , pinfo , tree , & hdtbl_entry , NULL ) ) call_data_dissector ( tvb , pinfo , tree ) ;\n }"}
{"idx": 365, "target": 0, "func": "int fn_printzp ( netdissect_options * ndo , register const u_char * s , register u_int n , register const u_char * ep ) {\n register int ret ;\n register u_char c ;\n ret = 1 ;\n while ( n > 0 && ( ep == NULL || s < ep ) ) {\n n -- ;\n c = * s ++ ;\n if ( c == '\\0' ) {\n ret = 0 ;\n break ;\n }\n if ( ! ND_ISASCII ( c ) ) {\n c = ND_TOASCII ( c ) ;\n ND_PRINT ( ( ndo , \"M-\" ) ) ;\n }\n if ( ! ND_ISPRINT ( c ) ) {\n c ^= 0x40 ;\n ND_PRINT ( ( ndo , \"^\" ) ) ;\n }\n ND_PRINT ( ( ndo , \"%c\" , c ) ) ;\n }\n return ( n == 0 ) ? 0 : ret ;\n }"}
{"idx": 366, "target": 0, "func": "static jas_seqent_t bitstoint ( uint_fast32_t v , int prec , bool sgnd ) {\n jas_seqent_t ret ;\n v &= JAS_ONES ( prec ) ;\n ret = ( sgnd && ( v & ( 1 << ( prec - 1 ) ) ) ) ? ( v - ( 1 << prec ) ) : v ;\n return ret ;\n }"}
{"idx": 367, "target": 0, "func": "int SRP_VBASE_init ( SRP_VBASE * vb , char * verifier_file ) {\n int error_code ;\n STACK_OF ( SRP_gN ) * SRP_gN_tab = sk_SRP_gN_new_null ( ) ;\n char * last_index = NULL ;\n int i ;\n char * * pp ;\n SRP_gN * gN = NULL ;\n SRP_user_pwd * user_pwd = NULL ;\n TXT_DB * tmpdb = NULL ;\n BIO * in = BIO_new ( BIO_s_file ( ) ) ;\n error_code = SRP_ERR_OPEN_FILE ;\n if ( in == NULL || BIO_read_filename ( in , verifier_file ) <= 0 ) goto err ;\n error_code = SRP_ERR_VBASE_INCOMPLETE_FILE ;\n if ( ( tmpdb = TXT_DB_read ( in , DB_NUMBER ) ) == NULL ) goto err ;\n error_code = SRP_ERR_MEMORY ;\n if ( vb -> seed_key ) {\n last_index = SRP_get_default_gN ( NULL ) -> id ;\n }\n for ( i = 0 ;\n i < sk_OPENSSL_PSTRING_num ( tmpdb -> data ) ;\n i ++ ) {\n pp = sk_OPENSSL_PSTRING_value ( tmpdb -> data , i ) ;\n if ( pp [ DB_srptype ] [ 0 ] == DB_SRP_INDEX ) {\n if ( ( gN = ( SRP_gN * ) OPENSSL_malloc ( sizeof ( SRP_gN ) ) ) == NULL ) goto err ;\n if ( ! ( gN -> id = BUF_strdup ( pp [ DB_srpid ] ) ) || ! ( gN -> N = SRP_gN_place_bn ( vb -> gN_cache , pp [ DB_srpverifier ] ) ) || ! ( gN -> g = SRP_gN_place_bn ( vb -> gN_cache , pp [ DB_srpsalt ] ) ) || sk_SRP_gN_insert ( SRP_gN_tab , gN , 0 ) == 0 ) goto err ;\n gN = NULL ;\n if ( vb -> seed_key != NULL ) {\n last_index = pp [ DB_srpid ] ;\n }\n }\n else if ( pp [ DB_srptype ] [ 0 ] == DB_SRP_VALID ) {\n SRP_gN * lgN ;\n if ( ( lgN = SRP_get_gN_by_id ( pp [ DB_srpgN ] , SRP_gN_tab ) ) != NULL ) {\n error_code = SRP_ERR_MEMORY ;\n if ( ( user_pwd = SRP_user_pwd_new ( ) ) == NULL ) goto err ;\n SRP_user_pwd_set_gN ( user_pwd , lgN -> g , lgN -> N ) ;\n if ( ! SRP_user_pwd_set_ids ( user_pwd , pp [ DB_srpid ] , pp [ DB_srpinfo ] ) ) goto err ;\n error_code = SRP_ERR_VBASE_BN_LIB ;\n if ( ! SRP_user_pwd_set_sv ( user_pwd , pp [ DB_srpsalt ] , pp [ DB_srpverifier ] ) ) goto err ;\n if ( sk_SRP_user_pwd_insert ( vb -> users_pwd , user_pwd , 0 ) == 0 ) goto err ;\n user_pwd = NULL ;\n }\n }\n }\n if ( last_index != NULL ) {\n if ( ( ( gN = SRP_get_gN_by_id ( last_index , SRP_gN_tab ) ) == NULL ) ) {\n error_code = SRP_ERR_VBASE_BN_LIB ;\n goto err ;\n }\n vb -> default_g = gN -> g ;\n vb -> default_N = gN -> N ;\n gN = NULL ;\n }\n error_code = SRP_NO_ERROR ;\n err : if ( gN != NULL ) {\n OPENSSL_free ( gN -> id ) ;\n OPENSSL_free ( gN ) ;\n }\n SRP_user_pwd_free ( user_pwd ) ;\n if ( tmpdb ) TXT_DB_free ( tmpdb ) ;\n if ( in ) BIO_free_all ( in ) ;\n sk_SRP_gN_free ( SRP_gN_tab ) ;\n return error_code ;\n }"}
{"idx": 368, "target": 0, "func": "static hb_script_t hb_icu_unicode_script ( hb_unicode_funcs_t * ufuncs HB_UNUSED , hb_codepoint_t unicode , void * user_data HB_UNUSED ) {\n UErrorCode status = U_ZERO_ERROR ;\n UScriptCode scriptCode = uscript_getScript ( unicode , & status ) ;\n if ( unlikely ( U_FAILURE ( status ) ) ) return HB_SCRIPT_UNKNOWN ;\n return hb_icu_script_to_script ( scriptCode ) ;\n }"}
{"idx": 369, "target": 0, "func": "static void virtio_net_tx_bh ( void * opaque ) {\n VirtIONet * n = opaque ;\n int32_t ret ;\n assert ( n -> vdev . vm_running ) ;\n n -> tx_waiting = 0 ;\n if ( unlikely ( ! ( n -> vdev . status & VIRTIO_CONFIG_S_DRIVER_OK ) ) ) return ;\n ret = virtio_net_flush_tx ( n , n -> tx_vq ) ;\n if ( ret == - EBUSY ) {\n return ;\n }\n if ( ret >= n -> tx_burst ) {\n qemu_bh_schedule ( n -> tx_bh ) ;\n n -> tx_waiting = 1 ;\n return ;\n }\n virtio_queue_set_notification ( n -> tx_vq , 1 ) ;\n if ( virtio_net_flush_tx ( n , n -> tx_vq ) > 0 ) {\n virtio_queue_set_notification ( n -> tx_vq , 0 ) ;\n qemu_bh_schedule ( n -> tx_bh ) ;\n n -> tx_waiting = 1 ;\n }\n }"}
{"idx": 370, "target": 0, "func": "srtp_stream_ctx_t * srtp_get_stream ( srtp_t srtp , uint32_t ssrc ) {\n srtp_stream_ctx_t * stream ;\n stream = srtp -> stream_list ;\n while ( stream != NULL ) {\n if ( stream -> ssrc == ssrc ) return stream ;\n stream = stream -> next ;\n }\n return NULL ;\n }"}
{"idx": 371, "target": 0, "func": "static inline bool ipv6_masked_addr_cmp ( const struct in6_addr * a1 , const struct in6_addr * m , const struct in6_addr * a2 ) {\n # if defined ( CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS ) && BITS_PER_LONG == 64 const unsigned long * ul1 = ( const unsigned long * ) a1 ;\n const unsigned long * ulm = ( const unsigned long * ) m ;\n const unsigned long * ul2 = ( const unsigned long * ) a2 ;\n return ! ! ( ( ( ul1 [ 0 ] ^ ul2 [ 0 ] ) & ulm [ 0 ] ) | ( ( ul1 [ 1 ] ^ ul2 [ 1 ] ) & ulm [ 1 ] ) ) ;\n # else return ! ! ( ( ( a1 -> s6_addr32 [ 0 ] ^ a2 -> s6_addr32 [ 0 ] ) & m -> s6_addr32 [ 0 ] ) | ( ( a1 -> s6_addr32 [ 1 ] ^ a2 -> s6_addr32 [ 1 ] ) & m -> s6_addr32 [ 1 ] ) | ( ( a1 -> s6_addr32 [ 2 ] ^ a2 -> s6_addr32 [ 2 ] ) & m -> s6_addr32 [ 2 ] ) | ( ( a1 -> s6_addr32 [ 3 ] ^ a2 -> s6_addr32 [ 3 ] ) & m -> s6_addr32 [ 3 ] ) ) ;\n # endif }"}
{"idx": 372, "target": 0, "func": "static void ctl_putunqstr ( const char * tag , const char * data , size_t len ) {\n char buffer [ 512 ] ;\n char * cp ;\n size_t tl ;\n tl = strlen ( tag ) ;\n memcpy ( buffer , tag , tl ) ;\n cp = buffer + tl ;\n if ( len > 0 ) {\n INSIST ( tl + 1 + len <= sizeof ( buffer ) ) ;\n * cp ++ = '=' ;\n memcpy ( cp , data , len ) ;\n cp += len ;\n }\n ctl_putdata ( buffer , ( u_int ) ( cp - buffer ) , 0 ) ;\n }"}
{"idx": 373, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ProfileBrowserTest , CreateOldProfileSynchronous ) {\n base : : ScopedTempDir temp_dir ;\n ASSERT_TRUE ( temp_dir . CreateUniqueTempDir ( ) ) ;\n CreatePrefsFileInDirectory ( temp_dir . path ( ) ) ;\n MockProfileDelegate delegate ;\n EXPECT_CALL ( delegate , OnProfileCreated ( testing : : NotNull ( ) , true , false ) ) ;\n {\n std : : unique_ptr < Profile > profile ( CreateProfile ( temp_dir . path ( ) , & delegate , Profile : : CREATE_MODE_SYNCHRONOUS ) ) ;\n CheckChromeVersion ( profile . get ( ) , false ) ;\n }\n FlushIoTaskRunnerAndSpinThreads ( ) ;\n }"}
{"idx": 374, "target": 0, "func": "static guint32 dissect_netb_status_resp ( tvbuff_t * tvb , packet_info * pinfo _U_ , int offset , proto_tree * tree ) {\n guint8 status_response = tvb_get_guint8 ( tvb , offset + NB_DATA1 ) ;\n proto_item * td2 ;\n proto_tree * data2_tree ;\n nb_call_name_type ( tvb , offset , tree ) ;\n if ( status_response == 0 ) {\n proto_tree_add_uint_format_value ( tree , hf_netb_status_response , tvb , offset + NB_DATA1 , 1 , status_response , \"NetBIOS 1.x or 2.0\" ) ;\n }\n else {\n proto_tree_add_uint_format_value ( tree , hf_netb_status_response , tvb , offset + NB_DATA1 , 1 , status_response , \"NetBIOS 2.1, %u names sent so far\" , status_response ) ;\n }\n td2 = proto_tree_add_item ( tree , hf_netb_data2 , tvb , offset + NB_DATA2 , 2 , ENC_LITTLE_ENDIAN ) ;\n data2_tree = proto_item_add_subtree ( td2 , ett_netb_status ) ;\n proto_tree_add_item ( data2_tree , hf_netb_data2_frame , tvb , offset + NB_DATA2 , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( data2_tree , hf_netb_data2_user , tvb , offset + NB_DATA2 , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( data2_tree , hf_netb_data2_status , tvb , offset + NB_DATA2 , 2 , ENC_LITTLE_ENDIAN ) ;\n nb_xmit_corrl ( tvb , offset , tree ) ;\n netbios_add_name ( \"Receiver's Name\" , tvb , offset + NB_RECVER_NAME , tree ) ;\n netbios_add_name ( \"Sender's Name\" , tvb , offset + NB_SENDER_NAME , tree ) ;\n return 0 ;\n }"}
{"idx": 375, "target": 1, "func": "static int parse_CCoercionRestriction ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree , struct CCoercionRestriction * v , const char * fmt , ... ) {\n proto_tree * tree ;\n proto_item * item ;\n const char * txt ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CCoercionRestriction , & item , txt ) ;\n v -> value = tvb_get_letohieee_float ( tvb , offset ) ;\n proto_tree_add_float ( tree , hf_mswsp_ccoercerestrict_value , tvb , offset , 4 , v -> value ) ;\n offset += 4 ;\n offset = parse_CRestriction ( tvb , offset , tree , pad_tree , & v -> child , \"child\" ) ;\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 376, "target": 1, "func": "void xmlrpc_char_encode ( char * outbuffer , const char * s1 ) {\n long unsigned int i ;\n unsigned char c ;\n char buf2 [ 15 ] ;\n mowgli_string_t * s = mowgli_string_create ( ) ;\n * buf2 = '\\0' ;\n * outbuffer = '\\0' ;\n if ( ( ! ( s1 ) || ( * ( s1 ) == '\\0' ) ) ) {\n return ;\n }\n for ( i = 0 ;\n s1 [ i ] != '\\0' ;\n i ++ ) {\n c = s1 [ i ] ;\n if ( c > 127 ) {\n snprintf ( buf2 , sizeof buf2 , \"&#%d;\n\" , c ) ;\n s -> append ( s , buf2 , strlen ( buf2 ) ) ;\n }\n else if ( c == '&' ) {\n s -> append ( s , \"&amp;\n\" , 5 ) ;\n }\n else if ( c == '<' ) {\n s -> append ( s , \"&lt;\n\" , 4 ) ;\n }\n else if ( c == '>' ) {\n s -> append ( s , \"&gt;\n\" , 4 ) ;\n }\n else if ( c == '\"' ) {\n s -> append ( s , \"&quot;\n\" , 6 ) ;\n }\n else {\n s -> append_char ( s , c ) ;\n }\n }\n memcpy ( outbuffer , s -> str , XMLRPC_BUFSIZE ) ;\n }"}
{"idx": 377, "target": 0, "func": "static int get_active_quality ( int q , int gfu_boost , int low , int high , int * low_motion_minq , int * high_motion_minq ) {\n if ( gfu_boost > high ) {\n return low_motion_minq [ q ] ;\n }\n else if ( gfu_boost < low ) {\n return high_motion_minq [ q ] ;\n }\n else {\n const int gap = high - low ;\n const int offset = high - gfu_boost ;\n const int qdiff = high_motion_minq [ q ] - low_motion_minq [ q ] ;\n const int adjustment = ( ( offset * qdiff ) + ( gap >> 1 ) ) / gap ;\n return low_motion_minq [ q ] + adjustment ;\n }\n }"}
{"idx": 378, "target": 0, "func": "void TSHttpTxnServerIntercept ( TSCont contp , TSHttpTxn txnp ) {\n HttpSM * http_sm = ( HttpSM * ) txnp ;\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_continuation ( contp ) == TS_SUCCESS ) ;\n http_sm -> plugin_tunnel_type = HTTP_PLUGIN_AS_SERVER ;\n http_sm -> plugin_tunnel = PluginVCCore : : alloc ( ( INKContInternal * ) contp ) ;\n }"}
{"idx": 379, "target": 0, "func": "void PPC_end_init ( void ) {\n VGA_init ( ) ;\n }"}
{"idx": 380, "target": 0, "func": "static void mainwindows_rresize_line ( int xdiff , MAIN_WINDOW_REC * win ) {\n int windows , i , extra_width , next_column , shrunk ;\n int * widths ;\n GSList * line , * tmp ;\n line = mainwindows_get_line ( win ) ;\n windows = g_slist_length ( line ) ;\n widths = g_new0 ( int , windows ) ;\n extra_width = screen_width - windows + 1 ;\n for ( tmp = line , i = 0 ;\n tmp != NULL ;\n tmp = tmp -> next , i ++ ) {\n MAIN_WINDOW_REC * rec = tmp -> data ;\n widths [ i ] = ( MAIN_WINDOW_TEXT_WIDTH ( rec ) * ( screen_width - windows + 1 ) ) / ( screen_width - xdiff - windows + 1 ) ;\n extra_width -= widths [ i ] + rec -> statusbar_columns ;\n }\n shrunk = FALSE ;\n for ( i = windows ;\n extra_width < 0 ;\n i = i > 1 ? i - 1 : windows ) {\n if ( widths [ i - 1 ] > NEW_WINDOW_WIDTH || ( i == 1 && ! shrunk ) ) {\n widths [ i - 1 ] -- ;\n extra_width ++ ;\n shrunk = i == 1 ;\n }\n }\n next_column = 0 ;\n # define extra ( ( i >= screen_width % windows && i < extra_width + ( screen_width % windows ) ) || i + windows < extra_width + ( screen_width % windows ) ? 1 : 0 ) for ( tmp = line , i = 0 ;\n tmp != NULL ;\n tmp = tmp -> next , i ++ ) {\n MAIN_WINDOW_REC * rec = tmp -> data ;\n rec -> first_column = next_column ;\n rec -> last_column = rec -> first_column + widths [ i ] + rec -> statusbar_columns + extra - 1 ;\n next_column = rec -> last_column + 2 ;\n mainwindow_resize ( rec , widths [ i ] + rec -> statusbar_columns + extra - rec -> width , 0 ) ;\n rec -> size_dirty = TRUE ;\n }\n # undef extra g_free ( widths ) ;\n g_slist_free ( line ) ;\n }"}
{"idx": 381, "target": 0, "func": "static iax_packet_data * iax2_get_packet_data_for_minipacket ( packet_info * pinfo , guint16 scallno , gboolean video ) {\n iax_packet_data * p = ( iax_packet_data * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_iax2 , 0 ) ;\n if ( ! p ) {\n gboolean reversed ;\n iax_call_data * iax_call ;\n iax_call = iax_lookup_call ( pinfo , scallno , 0 , & reversed ) ;\n p = iax_new_packet_data ( iax_call , reversed ) ;\n p_add_proto_data ( wmem_file_scope ( ) , pinfo , proto_iax2 , 0 , p ) ;\n if ( iax_call ) {\n if ( video ) p -> codec = reversed ? iax_call -> dst_vformat : iax_call -> src_vformat ;\n else p -> codec = reversed ? iax_call -> dst_codec : iax_call -> src_codec ;\n }\n }\n iax2_populate_pinfo_from_packet_data ( pinfo , p ) ;\n return p ;\n }"}
{"idx": 382, "target": 0, "func": "void ff_mpeg1_clean_buffers ( MpegEncContext * s ) {\n s -> last_dc [ 0 ] = 1 << ( 7 + s -> intra_dc_precision ) ;\n s -> last_dc [ 1 ] = s -> last_dc [ 0 ] ;\n s -> last_dc [ 2 ] = s -> last_dc [ 0 ] ;\n memset ( s -> last_mv , 0 , sizeof ( s -> last_mv ) ) ;\n }"}
{"idx": 383, "target": 0, "func": "static void open_with_response_cb ( GtkDialog * dialog , gint response_id , gpointer user_data ) {\n GtkWindow * parent_window ;\n NautilusFile * file ;\n GList files ;\n GAppInfo * info ;\n ActivateParametersInstall * parameters = user_data ;\n if ( response_id != GTK_RESPONSE_OK ) {\n gtk_widget_destroy ( GTK_WIDGET ( dialog ) ) ;\n return ;\n }\n parent_window = parameters -> parent_window ;\n file = g_object_get_data ( G_OBJECT ( dialog ) , \"mime-action:file\" ) ;\n info = gtk_app_chooser_get_app_info ( GTK_APP_CHOOSER ( dialog ) ) ;\n gtk_widget_destroy ( GTK_WIDGET ( dialog ) ) ;\n g_signal_emit_by_name ( nautilus_signaller_get_current ( ) , \"mime-data-changed\" ) ;\n files . next = NULL ;\n files . prev = NULL ;\n files . data = file ;\n nautilus_launch_application ( info , & files , parent_window ) ;\n g_object_unref ( info ) ;\n activate_parameters_install_free ( parameters ) ;\n }"}
{"idx": 384, "target": 0, "func": "static void finalize_chunk ( struct Buffer * res , struct Buffer * buf , char * charset , size_t charsetlen ) {\n char end = charset [ charsetlen ] ;\n charset [ charsetlen ] = '\\0' ;\n mutt_ch_convert_string ( & buf -> data , charset , Charset , MUTT_ICONV_HOOK_FROM ) ;\n charset [ charsetlen ] = end ;\n mutt_mb_filter_unprintable ( & buf -> data ) ;\n mutt_buffer_addstr ( res , buf -> data ) ;\n FREE ( & buf -> data ) ;\n mutt_buffer_init ( buf ) ;\n }"}
{"idx": 385, "target": 0, "func": "gx_device * gx_device_reloc_ptr ( gx_device * dev , gc_state_t * gcst ) {\n if ( dev == 0 || dev -> memory == 0 ) return dev ;\n return RELOC_OBJ ( dev ) ;\n }"}
{"idx": 386, "target": 0, "func": "static int32_t U_CALLCONV uprv_swapArray16 ( const UDataSwapper * ds , const void * inData , int32_t length , void * outData , UErrorCode * pErrorCode ) {\n const uint16_t * p ;\n uint16_t * q ;\n int32_t count ;\n uint16_t x ;\n if ( pErrorCode == NULL || U_FAILURE ( * pErrorCode ) ) {\n return 0 ;\n }\n if ( ds == NULL || inData == NULL || length < 0 || ( length & 1 ) != 0 || outData == NULL ) {\n * pErrorCode = U_ILLEGAL_ARGUMENT_ERROR ;\n return 0 ;\n }\n p = ( const uint16_t * ) inData ;\n q = ( uint16_t * ) outData ;\n count = length / 2 ;\n while ( count > 0 ) {\n x = * p ++ ;\n * q ++ = ( uint16_t ) ( ( x << 8 ) | ( x >> 8 ) ) ;\n -- count ;\n }\n return length ;\n }"}
{"idx": 387, "target": 0, "func": "inline static void _slurm_rpc_dump_licenses ( slurm_msg_t * msg ) {\n DEF_TIMERS ;\n char * dump ;\n int dump_size ;\n slurm_msg_t response_msg ;\n license_info_request_msg_t * lic_req_msg ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n START_TIMER ;\n debug2 ( \"%s: Processing RPC: REQUEST_LICENSE_INFO uid=%d\" , __func__ , uid ) ;\n lic_req_msg = ( license_info_request_msg_t * ) msg -> data ;\n if ( ( lic_req_msg -> last_update - 1 ) >= last_license_update ) {\n debug2 ( \"%s: no change SLURM_NO_CHANGE_IN_DATA\" , __func__ ) ;\n slurm_send_rc_msg ( msg , SLURM_NO_CHANGE_IN_DATA ) ;\n return ;\n }\n get_all_license_info ( & dump , & dump_size , uid , msg -> protocol_version ) ;\n END_TIMER2 ( \"_slurm_rpc_dump_licenses\" ) ;\n debug2 ( \"%s: size=%d %s\" , __func__ , dump_size , TIME_STR ) ;\n slurm_msg_t_init ( & response_msg ) ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . address = msg -> address ;\n response_msg . conn = msg -> conn ;\n response_msg . msg_type = RESPONSE_LICENSE_INFO ;\n response_msg . data = dump ;\n response_msg . data_size = dump_size ;\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n xfree ( dump ) ;\n }"}
{"idx": 388, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , MAYBE_TestStartsAsDefault ) {\n registry ( ) -> OnAcceptRegisterProtocolHandler ( test_protocol_handler ( ) ) ;\n ASSERT_TRUE ( registry ( ) -> IsDefault ( test_protocol_handler ( ) ) ) ;\n }"}
{"idx": 389, "target": 0, "func": "static void notify_job_time_cb ( packet_info * pinfo _U_ , proto_tree * tree _U_ , proto_item * item , dcerpc_info * di , tvbuff_t * tvb _U_ , int start_offset _U_ , int end_offset _U_ , void * callback_args _U_ ) {\n dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ;\n char * str = ( char * ) dcv -> private_data ;\n proto_item_append_text ( item , \": %s\" , str ) ;\n if ( item ) proto_item_append_text ( item -> parent , \": %s\" , str ) ;\n }"}
{"idx": 390, "target": 0, "func": "static int read_table ( AVFormatContext * avctx , AVStream * st , int ( * parse ) ( AVFormatContext * avctx , AVStream * st , const char * name , int size ) ) {\n int count , i ;\n AVIOContext * pb = avctx -> pb ;\n avio_skip ( pb , 4 ) ;\n count = avio_rb32 ( pb ) ;\n avio_skip ( pb , 4 ) ;\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n char name [ 17 ] ;\n int size ;\n avio_read ( pb , name , 16 ) ;\n name [ sizeof ( name ) - 1 ] = 0 ;\n size = avio_rb32 ( pb ) ;\n if ( size < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"entry size %d is invalid\\n\" , size ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( parse ( avctx , st , name , size ) < 0 ) {\n avpriv_request_sample ( avctx , \"Variable %s\" , name ) ;\n avio_skip ( pb , size ) ;\n }\n }\n return 0 ;\n }"}
{"idx": 391, "target": 0, "func": "static int decode ( AVCodecContext * avctx , void * data , int * data_size , AVPacket * avpkt ) {\n PGSSubContext * ctx = avctx -> priv_data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n AVSubtitle * sub = data ;\n const uint8_t * buf_end ;\n uint8_t segment_type ;\n int segment_length ;\n int i ;\n av_dlog ( avctx , \"PGS sub packet:\\n\" ) ;\n for ( i = 0 ;\n i < buf_size ;\n i ++ ) {\n av_dlog ( avctx , \"%02x \" , buf [ i ] ) ;\n if ( i % 16 == 15 ) av_dlog ( avctx , \"\\n\" ) ;\n }\n if ( i & 15 ) av_dlog ( avctx , \"\\n\" ) ;\n * data_size = 0 ;\n if ( buf_size < 3 ) return - 1 ;\n buf_end = buf + buf_size ;\n while ( buf < buf_end ) {\n segment_type = bytestream_get_byte ( & buf ) ;\n segment_length = bytestream_get_be16 ( & buf ) ;\n av_dlog ( avctx , \"Segment Length %d, Segment Type %x\\n\" , segment_length , segment_type ) ;\n if ( segment_type != DISPLAY_SEGMENT && segment_length > buf_end - buf ) break ;\n switch ( segment_type ) {\n case PALETTE_SEGMENT : parse_palette_segment ( avctx , buf , segment_length ) ;\n break ;\n case PICTURE_SEGMENT : parse_picture_segment ( avctx , buf , segment_length ) ;\n break ;\n case PRESENTATION_SEGMENT : parse_presentation_segment ( avctx , buf , segment_length ) ;\n ctx -> pts = sub -> pts ;\n break ;\n case WINDOW_SEGMENT : break ;\n case DISPLAY_SEGMENT : * data_size = display_end_segment ( avctx , data , buf , segment_length ) ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"Unknown subtitle segment type 0x%x, length %d\\n\" , segment_type , segment_length ) ;\n break ;\n }\n buf += segment_length ;\n }\n return buf_size ;\n }"}
{"idx": 392, "target": 1, "func": "static int tipc_nl_compat_link_dump ( struct tipc_nl_compat_msg * msg , struct nlattr * * attrs ) {\n struct nlattr * link [ TIPC_NLA_LINK_MAX + 1 ] ;\n struct tipc_link_info link_info ;\n int err ;\n if ( ! attrs [ TIPC_NLA_LINK ] ) return - EINVAL ;\n err = nla_parse_nested ( link , TIPC_NLA_LINK_MAX , attrs [ TIPC_NLA_LINK ] , NULL ) ;\n if ( err ) return err ;\n link_info . dest = nla_get_flag ( link [ TIPC_NLA_LINK_DEST ] ) ;\n link_info . up = htonl ( nla_get_flag ( link [ TIPC_NLA_LINK_UP ] ) ) ;\n strcpy ( link_info . str , nla_data ( link [ TIPC_NLA_LINK_NAME ] ) ) ;\n return tipc_add_tlv ( msg -> rep , TIPC_TLV_LINK_INFO , & link_info , sizeof ( link_info ) ) ;\n }"}
{"idx": 393, "target": 0, "func": "proto_item * proto_tree_add_item_ret_string ( proto_tree * tree , int hfindex , tvbuff_t * tvb , const gint start , gint length , const guint encoding , wmem_allocator_t * scope , const guint8 * * retval ) {\n return proto_tree_add_item_ret_string_and_length ( tree , hfindex , tvb , start , length , encoding , scope , retval , & length ) ;\n }"}
{"idx": 394, "target": 0, "func": "static void split_print_po ( struct packet_object * po ) {\n int ret ;\n if ( wdg_conndata == NULL || wdg_c1 == NULL || wdg_c2 == NULL ) return ;\n if ( ! ( wdg_conndata -> flags & WDG_OBJ_FOCUSED ) ) return ;\n if ( GBL_OPTIONS -> regex && regexec ( GBL_OPTIONS -> regex , ( const char * ) po -> DATA . disp_data , 0 , NULL , 0 ) != 0 ) {\n return ;\n }\n SAFE_REALLOC ( dispbuf , hex_len ( po -> DATA . disp_len ) * sizeof ( u_char ) + 1 ) ;\n ret = GBL_FORMAT ( po -> DATA . disp_data , po -> DATA . disp_len , dispbuf ) ;\n dispbuf [ ret ] = 0 ;\n if ( ! ip_addr_cmp ( & po -> L3 . src , & curr_conn -> L3_addr1 ) ) wdg_scroll_print ( wdg_c1 , EC_COLOR , \"%s\" , dispbuf ) ;\n else wdg_scroll_print ( wdg_c2 , EC_COLOR , \"%s\" , dispbuf ) ;\n }"}
{"idx": 395, "target": 0, "func": "static int dissect_h225_T_perCallInfo ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_T_perCallInfo , T_perCallInfo_sequence_of ) ;\n return offset ;\n }"}
{"idx": 396, "target": 1, "func": "static void mb_lpf_horizontal_edge_w_sse2_8 ( unsigned char * s , int p , const unsigned char * _blimit , const unsigned char * _limit , const unsigned char * _thresh ) {\n const __m128i zero = _mm_set1_epi16 ( 0 ) ;\n const __m128i one = _mm_set1_epi8 ( 1 ) ;\n const __m128i blimit = _mm_load_si128 ( ( const __m128i * ) _blimit ) ;\n const __m128i limit = _mm_load_si128 ( ( const __m128i * ) _limit ) ;\n const __m128i thresh = _mm_load_si128 ( ( const __m128i * ) _thresh ) ;\n __m128i mask , hev , flat , flat2 ;\n __m128i q7p7 , q6p6 , q5p5 , q4p4 , q3p3 , q2p2 , q1p1 , q0p0 , p0q0 , p1q1 ;\n __m128i abs_p1p0 ;\n q4p4 = _mm_loadl_epi64 ( ( __m128i * ) ( s - 5 * p ) ) ;\n q4p4 = _mm_castps_si128 ( _mm_loadh_pi ( _mm_castsi128_ps ( q4p4 ) , ( __m64 * ) ( s + 4 * p ) ) ) ;\n q3p3 = _mm_loadl_epi64 ( ( __m128i * ) ( s - 4 * p ) ) ;\n q3p3 = _mm_castps_si128 ( _mm_loadh_pi ( _mm_castsi128_ps ( q3p3 ) , ( __m64 * ) ( s + 3 * p ) ) ) ;\n q2p2 = _mm_loadl_epi64 ( ( __m128i * ) ( s - 3 * p ) ) ;\n q2p2 = _mm_castps_si128 ( _mm_loadh_pi ( _mm_castsi128_ps ( q2p2 ) , ( __m64 * ) ( s + 2 * p ) ) ) ;\n q1p1 = _mm_loadl_epi64 ( ( __m128i * ) ( s - 2 * p ) ) ;\n q1p1 = _mm_castps_si128 ( _mm_loadh_pi ( _mm_castsi128_ps ( q1p1 ) , ( __m64 * ) ( s + 1 * p ) ) ) ;\n p1q1 = _mm_shuffle_epi32 ( q1p1 , 78 ) ;\n q0p0 = _mm_loadl_epi64 ( ( __m128i * ) ( s - 1 * p ) ) ;\n q0p0 = _mm_castps_si128 ( _mm_loadh_pi ( _mm_castsi128_ps ( q0p0 ) , ( __m64 * ) ( s - 0 * p ) ) ) ;\n p0q0 = _mm_shuffle_epi32 ( q0p0 , 78 ) ;\n {\n __m128i abs_p1q1 , abs_p0q0 , abs_q1q0 , fe , ff , work ;\n abs_p1p0 = _mm_or_si128 ( _mm_subs_epu8 ( q1p1 , q0p0 ) , _mm_subs_epu8 ( q0p0 , q1p1 ) ) ;\n abs_q1q0 = _mm_srli_si128 ( abs_p1p0 , 8 ) ;\n fe = _mm_set1_epi8 ( 0xfe ) ;\n ff = _mm_cmpeq_epi8 ( abs_p1p0 , abs_p1p0 ) ;\n abs_p0q0 = _mm_or_si128 ( _mm_subs_epu8 ( q0p0 , p0q0 ) , _mm_subs_epu8 ( p0q0 , q0p0 ) ) ;\n abs_p1q1 = _mm_or_si128 ( _mm_subs_epu8 ( q1p1 , p1q1 ) , _mm_subs_epu8 ( p1q1 , q1p1 ) ) ;\n flat = _mm_max_epu8 ( abs_p1p0 , abs_q1q0 ) ;\n hev = _mm_subs_epu8 ( flat , thresh ) ;\n hev = _mm_xor_si128 ( _mm_cmpeq_epi8 ( hev , zero ) , ff ) ;\n abs_p0q0 = _mm_adds_epu8 ( abs_p0q0 , abs_p0q0 ) ;\n abs_p1q1 = _mm_srli_epi16 ( _mm_and_si128 ( abs_p1q1 , fe ) , 1 ) ;\n mask = _mm_subs_epu8 ( _mm_adds_epu8 ( abs_p0q0 , abs_p1q1 ) , blimit ) ;\n mask = _mm_xor_si128 ( _mm_cmpeq_epi8 ( mask , zero ) , ff ) ;\n mask = _mm_max_epu8 ( abs_p1p0 , mask ) ;\n work = _mm_max_epu8 ( _mm_or_si128 ( _mm_subs_epu8 ( q2p2 , q1p1 ) , _mm_subs_epu8 ( q1p1 , q2p2 ) ) , _mm_or_si128 ( _mm_subs_epu8 ( q3p3 , q2p2 ) , _mm_subs_epu8 ( q2p2 , q3p3 ) ) ) ;\n mask = _mm_max_epu8 ( work , mask ) ;\n mask = _mm_max_epu8 ( mask , _mm_srli_si128 ( mask , 8 ) ) ;\n mask = _mm_subs_epu8 ( mask , limit ) ;\n mask = _mm_cmpeq_epi8 ( mask , zero ) ;\n }\n {\n const __m128i t4 = _mm_set1_epi8 ( 4 ) ;\n const __m128i t3 = _mm_set1_epi8 ( 3 ) ;\n const __m128i t80 = _mm_set1_epi8 ( 0x80 ) ;\n const __m128i t1 = _mm_set1_epi16 ( 0x1 ) ;\n __m128i qs1ps1 = _mm_xor_si128 ( q1p1 , t80 ) ;\n __m128i qs0ps0 = _mm_xor_si128 ( q0p0 , t80 ) ;\n __m128i qs0 = _mm_xor_si128 ( p0q0 , t80 ) ;\n __m128i qs1 = _mm_xor_si128 ( p1q1 , t80 ) ;\n __m128i filt ;\n __m128i work_a ;\n __m128i filter1 , filter2 ;\n __m128i flat2_q6p6 , flat2_q5p5 , flat2_q4p4 , flat2_q3p3 , flat2_q2p2 ;\n __m128i flat2_q1p1 , flat2_q0p0 , flat_q2p2 , flat_q1p1 , flat_q0p0 ;\n filt = _mm_and_si128 ( _mm_subs_epi8 ( qs1ps1 , qs1 ) , hev ) ;\n work_a = _mm_subs_epi8 ( qs0 , qs0ps0 ) ;\n filt = _mm_adds_epi8 ( filt , work_a ) ;\n filt = _mm_adds_epi8 ( filt , work_a ) ;\n filt = _mm_adds_epi8 ( filt , work_a ) ;\n filt = _mm_and_si128 ( filt , mask ) ;\n filter1 = _mm_adds_epi8 ( filt , t4 ) ;\n filter2 = _mm_adds_epi8 ( filt , t3 ) ;\n filter1 = _mm_unpacklo_epi8 ( zero , filter1 ) ;\n filter1 = _mm_srai_epi16 ( filter1 , 0xB ) ;\n filter2 = _mm_unpacklo_epi8 ( zero , filter2 ) ;\n filter2 = _mm_srai_epi16 ( filter2 , 0xB ) ;\n filt = _mm_packs_epi16 ( filter2 , _mm_subs_epi16 ( zero , filter1 ) ) ;\n qs0ps0 = _mm_xor_si128 ( _mm_adds_epi8 ( qs0ps0 , filt ) , t80 ) ;\n filt = _mm_adds_epi16 ( filter1 , t1 ) ;\n filt = _mm_srai_epi16 ( filt , 1 ) ;\n filt = _mm_andnot_si128 ( _mm_srai_epi16 ( _mm_unpacklo_epi8 ( zero , hev ) , 0x8 ) , filt ) ;\n filt = _mm_packs_epi16 ( filt , _mm_subs_epi16 ( zero , filt ) ) ;\n qs1ps1 = _mm_xor_si128 ( _mm_adds_epi8 ( qs1ps1 , filt ) , t80 ) ;\n {\n __m128i work ;\n flat = _mm_max_epu8 ( _mm_or_si128 ( _mm_subs_epu8 ( q2p2 , q0p0 ) , _mm_subs_epu8 ( q0p0 , q2p2 ) ) , _mm_or_si128 ( _mm_subs_epu8 ( q3p3 , q0p0 ) , _mm_subs_epu8 ( q0p0 , q3p3 ) ) ) ;\n flat = _mm_max_epu8 ( abs_p1p0 , flat ) ;\n flat = _mm_max_epu8 ( flat , _mm_srli_si128 ( flat , 8 ) ) ;\n flat = _mm_subs_epu8 ( flat , one ) ;\n flat = _mm_cmpeq_epi8 ( flat , zero ) ;\n flat = _mm_and_si128 ( flat , mask ) ;\n q5p5 = _mm_loadl_epi64 ( ( __m128i * ) ( s - 6 * p ) ) ;\n q5p5 = _mm_castps_si128 ( _mm_loadh_pi ( _mm_castsi128_ps ( q5p5 ) , ( __m64 * ) ( s + 5 * p ) ) ) ;\n q6p6 = _mm_loadl_epi64 ( ( __m128i * ) ( s - 7 * p ) ) ;\n q6p6 = _mm_castps_si128 ( _mm_loadh_pi ( _mm_castsi128_ps ( q6p6 ) , ( __m64 * ) ( s + 6 * p ) ) ) ;\n flat2 = _mm_max_epu8 ( _mm_or_si128 ( _mm_subs_epu8 ( q4p4 , q0p0 ) , _mm_subs_epu8 ( q0p0 , q4p4 ) ) , _mm_or_si128 ( _mm_subs_epu8 ( q5p5 , q0p0 ) , _mm_subs_epu8 ( q0p0 , q5p5 ) ) ) ;\n q7p7 = _mm_loadl_epi64 ( ( __m128i * ) ( s - 8 * p ) ) ;\n q7p7 = _mm_castps_si128 ( _mm_loadh_pi ( _mm_castsi128_ps ( q7p7 ) , ( __m64 * ) ( s + 7 * p ) ) ) ;\n work = _mm_max_epu8 ( _mm_or_si128 ( _mm_subs_epu8 ( q6p6 , q0p0 ) , _mm_subs_epu8 ( q0p0 , q6p6 ) ) , _mm_or_si128 ( _mm_subs_epu8 ( q7p7 , q0p0 ) , _mm_subs_epu8 ( q0p0 , q7p7 ) ) ) ;\n flat2 = _mm_max_epu8 ( work , flat2 ) ;\n flat2 = _mm_max_epu8 ( flat2 , _mm_srli_si128 ( flat2 , 8 ) ) ;\n flat2 = _mm_subs_epu8 ( flat2 , one ) ;\n flat2 = _mm_cmpeq_epi8 ( flat2 , zero ) ;\n flat2 = _mm_and_si128 ( flat2 , flat ) ;\n }\n {\n const __m128i eight = _mm_set1_epi16 ( 8 ) ;\n const __m128i four = _mm_set1_epi16 ( 4 ) ;\n __m128i p7_16 , p6_16 , p5_16 , p4_16 , p3_16 , p2_16 , p1_16 , p0_16 ;\n __m128i q7_16 , q6_16 , q5_16 , q4_16 , q3_16 , q2_16 , q1_16 , q0_16 ;\n __m128i pixelFilter_p , pixelFilter_q ;\n __m128i pixetFilter_p2p1p0 , pixetFilter_q2q1q0 ;\n __m128i sum_p7 , sum_q7 , sum_p3 , sum_q3 , res_p , res_q ;\n p7_16 = _mm_unpacklo_epi8 ( q7p7 , zero ) ;\n ;\n p6_16 = _mm_unpacklo_epi8 ( q6p6 , zero ) ;\n p5_16 = _mm_unpacklo_epi8 ( q5p5 , zero ) ;\n p4_16 = _mm_unpacklo_epi8 ( q4p4 , zero ) ;\n p3_16 = _mm_unpacklo_epi8 ( q3p3 , zero ) ;\n p2_16 = _mm_unpacklo_epi8 ( q2p2 , zero ) ;\n p1_16 = _mm_unpacklo_epi8 ( q1p1 , zero ) ;\n p0_16 = _mm_unpacklo_epi8 ( q0p0 , zero ) ;\n q0_16 = _mm_unpackhi_epi8 ( q0p0 , zero ) ;\n q1_16 = _mm_unpackhi_epi8 ( q1p1 , zero ) ;\n q2_16 = _mm_unpackhi_epi8 ( q2p2 , zero ) ;\n q3_16 = _mm_unpackhi_epi8 ( q3p3 , zero ) ;\n q4_16 = _mm_unpackhi_epi8 ( q4p4 , zero ) ;\n q5_16 = _mm_unpackhi_epi8 ( q5p5 , zero ) ;\n q6_16 = _mm_unpackhi_epi8 ( q6p6 , zero ) ;\n q7_16 = _mm_unpackhi_epi8 ( q7p7 , zero ) ;\n pixelFilter_p = _mm_add_epi16 ( _mm_add_epi16 ( p6_16 , p5_16 ) , _mm_add_epi16 ( p4_16 , p3_16 ) ) ;\n pixelFilter_q = _mm_add_epi16 ( _mm_add_epi16 ( q6_16 , q5_16 ) , _mm_add_epi16 ( q4_16 , q3_16 ) ) ;\n pixetFilter_p2p1p0 = _mm_add_epi16 ( p0_16 , _mm_add_epi16 ( p2_16 , p1_16 ) ) ;\n pixelFilter_p = _mm_add_epi16 ( pixelFilter_p , pixetFilter_p2p1p0 ) ;\n pixetFilter_q2q1q0 = _mm_add_epi16 ( q0_16 , _mm_add_epi16 ( q2_16 , q1_16 ) ) ;\n pixelFilter_q = _mm_add_epi16 ( pixelFilter_q , pixetFilter_q2q1q0 ) ;\n pixelFilter_p = _mm_add_epi16 ( eight , _mm_add_epi16 ( pixelFilter_p , pixelFilter_q ) ) ;\n pixetFilter_p2p1p0 = _mm_add_epi16 ( four , _mm_add_epi16 ( pixetFilter_p2p1p0 , pixetFilter_q2q1q0 ) ) ;\n res_p = _mm_srli_epi16 ( _mm_add_epi16 ( pixelFilter_p , _mm_add_epi16 ( p7_16 , p0_16 ) ) , 4 ) ;\n res_q = _mm_srli_epi16 ( _mm_add_epi16 ( pixelFilter_p , _mm_add_epi16 ( q7_16 , q0_16 ) ) , 4 ) ;\n flat2_q0p0 = _mm_packus_epi16 ( res_p , res_q ) ;\n res_p = _mm_srli_epi16 ( _mm_add_epi16 ( pixetFilter_p2p1p0 , _mm_add_epi16 ( p3_16 , p0_16 ) ) , 3 ) ;\n res_q = _mm_srli_epi16 ( _mm_add_epi16 ( pixetFilter_p2p1p0 , _mm_add_epi16 ( q3_16 , q0_16 ) ) , 3 ) ;\n flat_q0p0 = _mm_packus_epi16 ( res_p , res_q ) ;\n sum_p7 = _mm_add_epi16 ( p7_16 , p7_16 ) ;\n sum_q7 = _mm_add_epi16 ( q7_16 , q7_16 ) ;\n sum_p3 = _mm_add_epi16 ( p3_16 , p3_16 ) ;\n sum_q3 = _mm_add_epi16 ( q3_16 , q3_16 ) ;\n pixelFilter_q = _mm_sub_epi16 ( pixelFilter_p , p6_16 ) ;\n pixelFilter_p = _mm_sub_epi16 ( pixelFilter_p , q6_16 ) ;\n res_p = _mm_srli_epi16 ( _mm_add_epi16 ( pixelFilter_p , _mm_add_epi16 ( sum_p7 , p1_16 ) ) , 4 ) ;\n res_q = _mm_srli_epi16 ( _mm_add_epi16 ( pixelFilter_q , _mm_add_epi16 ( sum_q7 , q1_16 ) ) , 4 ) ;\n flat2_q1p1 = _mm_packus_epi16 ( res_p , res_q ) ;\n pixetFilter_q2q1q0 = _mm_sub_epi16 ( pixetFilter_p2p1p0 , p2_16 ) ;\n pixetFilter_p2p1p0 = _mm_sub_epi16 ( pixetFilter_p2p1p0 , q2_16 ) ;\n res_p = _mm_srli_epi16 ( _mm_add_epi16 ( pixetFilter_p2p1p0 , _mm_add_epi16 ( sum_p3 , p1_16 ) ) , 3 ) ;\n res_q = _mm_srli_epi16 ( _mm_add_epi16 ( pixetFilter_q2q1q0 , _mm_add_epi16 ( sum_q3 , q1_16 ) ) , 3 ) ;\n flat_q1p1 = _mm_packus_epi16 ( res_p , res_q ) ;\n sum_p7 = _mm_add_epi16 ( sum_p7 , p7_16 ) ;\n sum_q7 = _mm_add_epi16 ( sum_q7 , q7_16 ) ;\n sum_p3 = _mm_add_epi16 ( sum_p3 , p3_16 ) ;\n sum_q3 = _mm_add_epi16 ( sum_q3 , q3_16 ) ;\n pixelFilter_p = _mm_sub_epi16 ( pixelFilter_p , q5_16 ) ;\n pixelFilter_q = _mm_sub_epi16 ( pixelFilter_q , p5_16 ) ;\n res_p = _mm_srli_epi16 ( _mm_add_epi16 ( pixelFilter_p , _mm_add_epi16 ( sum_p7 , p2_16 ) ) , 4 ) ;\n res_q = _mm_srli_epi16 ( _mm_add_epi16 ( pixelFilter_q , _mm_add_epi16 ( sum_q7 , q2_16 ) ) , 4 ) ;\n flat2_q2p2 = _mm_packus_epi16 ( res_p , res_q ) ;\n pixetFilter_p2p1p0 = _mm_sub_epi16 ( pixetFilter_p2p1p0 , q1_16 ) ;\n pixetFilter_q2q1q0 = _mm_sub_epi16 ( pixetFilter_q2q1q0 , p1_16 ) ;\n res_p = _mm_srli_epi16 ( _mm_add_epi16 ( pixetFilter_p2p1p0 , _mm_add_epi16 ( sum_p3 , p2_16 ) ) , 3 ) ;\n res_q = _mm_srli_epi16 ( _mm_add_epi16 ( pixetFilter_q2q1q0 , _mm_add_epi16 ( sum_q3 , q2_16 ) ) , 3 ) ;\n flat_q2p2 = _mm_packus_epi16 ( res_p , res_q ) ;\n sum_p7 = _mm_add_epi16 ( sum_p7 , p7_16 ) ;\n sum_q7 = _mm_add_epi16 ( sum_q7 , q7_16 ) ;\n pixelFilter_p = _mm_sub_epi16 ( pixelFilter_p , q4_16 ) ;\n pixelFilter_q = _mm_sub_epi16 ( pixelFilter_q , p4_16 ) ;\n res_p = _mm_srli_epi16 ( _mm_add_epi16 ( pixelFilter_p , _mm_add_epi16 ( sum_p7 , p3_16 ) ) , 4 ) ;\n res_q = _mm_srli_epi16 ( _mm_add_epi16 ( pixelFilter_q , _mm_add_epi16 ( sum_q7 , q3_16 ) ) , 4 ) ;\n flat2_q3p3 = _mm_packus_epi16 ( res_p , res_q ) ;\n sum_p7 = _mm_add_epi16 ( sum_p7 , p7_16 ) ;\n sum_q7 = _mm_add_epi16 ( sum_q7 , q7_16 ) ;\n pixelFilter_p = _mm_sub_epi16 ( pixelFilter_p , q3_16 ) ;\n pixelFilter_q = _mm_sub_epi16 ( pixelFilter_q , p3_16 ) ;\n res_p = _mm_srli_epi16 ( _mm_add_epi16 ( pixelFilter_p , _mm_add_epi16 ( sum_p7 , p4_16 ) ) , 4 ) ;\n res_q = _mm_srli_epi16 ( _mm_add_epi16 ( pixelFilter_q , _mm_add_epi16 ( sum_q7 , q4_16 ) ) , 4 ) ;\n flat2_q4p4 = _mm_packus_epi16 ( res_p , res_q ) ;\n sum_p7 = _mm_add_epi16 ( sum_p7 , p7_16 ) ;\n sum_q7 = _mm_add_epi16 ( sum_q7 , q7_16 ) ;\n pixelFilter_p = _mm_sub_epi16 ( pixelFilter_p , q2_16 ) ;\n pixelFilter_q = _mm_sub_epi16 ( pixelFilter_q , p2_16 ) ;\n res_p = _mm_srli_epi16 ( _mm_add_epi16 ( pixelFilter_p , _mm_add_epi16 ( sum_p7 , p5_16 ) ) , 4 ) ;\n res_q = _mm_srli_epi16 ( _mm_add_epi16 ( pixelFilter_q , _mm_add_epi16 ( sum_q7 , q5_16 ) ) , 4 ) ;\n flat2_q5p5 = _mm_packus_epi16 ( res_p , res_q ) ;\n sum_p7 = _mm_add_epi16 ( sum_p7 , p7_16 ) ;\n sum_q7 = _mm_add_epi16 ( sum_q7 , q7_16 ) ;\n pixelFilter_p = _mm_sub_epi16 ( pixelFilter_p , q1_16 ) ;\n pixelFilter_q = _mm_sub_epi16 ( pixelFilter_q , p1_16 ) ;\n res_p = _mm_srli_epi16 ( _mm_add_epi16 ( pixelFilter_p , _mm_add_epi16 ( sum_p7 , p6_16 ) ) , 4 ) ;\n res_q = _mm_srli_epi16 ( _mm_add_epi16 ( pixelFilter_q , _mm_add_epi16 ( sum_q7 , q6_16 ) ) , 4 ) ;\n flat2_q6p6 = _mm_packus_epi16 ( res_p , res_q ) ;\n }\n flat = _mm_shuffle_epi32 ( flat , 68 ) ;\n flat2 = _mm_shuffle_epi32 ( flat2 , 68 ) ;\n q2p2 = _mm_andnot_si128 ( flat , q2p2 ) ;\n flat_q2p2 = _mm_and_si128 ( flat , flat_q2p2 ) ;\n q2p2 = _mm_or_si128 ( q2p2 , flat_q2p2 ) ;\n qs1ps1 = _mm_andnot_si128 ( flat , qs1ps1 ) ;\n flat_q1p1 = _mm_and_si128 ( flat , flat_q1p1 ) ;\n q1p1 = _mm_or_si128 ( qs1ps1 , flat_q1p1 ) ;\n qs0ps0 = _mm_andnot_si128 ( flat , qs0ps0 ) ;\n flat_q0p0 = _mm_and_si128 ( flat , flat_q0p0 ) ;\n q0p0 = _mm_or_si128 ( qs0ps0 , flat_q0p0 ) ;\n q6p6 = _mm_andnot_si128 ( flat2 , q6p6 ) ;\n flat2_q6p6 = _mm_and_si128 ( flat2 , flat2_q6p6 ) ;\n q6p6 = _mm_or_si128 ( q6p6 , flat2_q6p6 ) ;\n _mm_storel_epi64 ( ( __m128i * ) ( s - 7 * p ) , q6p6 ) ;\n _mm_storeh_pi ( ( __m64 * ) ( s + 6 * p ) , _mm_castsi128_ps ( q6p6 ) ) ;\n q5p5 = _mm_andnot_si128 ( flat2 , q5p5 ) ;\n flat2_q5p5 = _mm_and_si128 ( flat2 , flat2_q5p5 ) ;\n q5p5 = _mm_or_si128 ( q5p5 , flat2_q5p5 ) ;\n _mm_storel_epi64 ( ( __m128i * ) ( s - 6 * p ) , q5p5 ) ;\n _mm_storeh_pi ( ( __m64 * ) ( s + 5 * p ) , _mm_castsi128_ps ( q5p5 ) ) ;\n q4p4 = _mm_andnot_si128 ( flat2 , q4p4 ) ;\n flat2_q4p4 = _mm_and_si128 ( flat2 , flat2_q4p4 ) ;\n q4p4 = _mm_or_si128 ( q4p4 , flat2_q4p4 ) ;\n _mm_storel_epi64 ( ( __m128i * ) ( s - 5 * p ) , q4p4 ) ;\n _mm_storeh_pi ( ( __m64 * ) ( s + 4 * p ) , _mm_castsi128_ps ( q4p4 ) ) ;\n q3p3 = _mm_andnot_si128 ( flat2 , q3p3 ) ;\n flat2_q3p3 = _mm_and_si128 ( flat2 , flat2_q3p3 ) ;\n q3p3 = _mm_or_si128 ( q3p3 , flat2_q3p3 ) ;\n _mm_storel_epi64 ( ( __m128i * ) ( s - 4 * p ) , q3p3 ) ;\n _mm_storeh_pi ( ( __m64 * ) ( s + 3 * p ) , _mm_castsi128_ps ( q3p3 ) ) ;\n q2p2 = _mm_andnot_si128 ( flat2 , q2p2 ) ;\n flat2_q2p2 = _mm_and_si128 ( flat2 , flat2_q2p2 ) ;\n q2p2 = _mm_or_si128 ( q2p2 , flat2_q2p2 ) ;\n _mm_storel_epi64 ( ( __m128i * ) ( s - 3 * p ) , q2p2 ) ;\n _mm_storeh_pi ( ( __m64 * ) ( s + 2 * p ) , _mm_castsi128_ps ( q2p2 ) ) ;\n q1p1 = _mm_andnot_si128 ( flat2 , q1p1 ) ;\n flat2_q1p1 = _mm_and_si128 ( flat2 , flat2_q1p1 ) ;\n q1p1 = _mm_or_si128 ( q1p1 , flat2_q1p1 ) ;\n _mm_storel_epi64 ( ( __m128i * ) ( s - 2 * p ) , q1p1 ) ;\n _mm_storeh_pi ( ( __m64 * ) ( s + 1 * p ) , _mm_castsi128_ps ( q1p1 ) ) ;\n q0p0 = _mm_andnot_si128 ( flat2 , q0p0 ) ;\n flat2_q0p0 = _mm_and_si128 ( flat2 , flat2_q0p0 ) ;\n q0p0 = _mm_or_si128 ( q0p0 , flat2_q0p0 ) ;\n _mm_storel_epi64 ( ( __m128i * ) ( s - 1 * p ) , q0p0 ) ;\n _mm_storeh_pi ( ( __m64 * ) ( s - 0 * p ) , _mm_castsi128_ps ( q0p0 ) ) ;\n }\n }"}
{"idx": 397, "target": 0, "func": "static int fz_make_hash_link_key ( fz_context * ctx , fz_store_hash * hash , void * key_ ) {\n fz_link_key * key = ( fz_link_key * ) key_ ;\n memcpy ( hash -> u . link . dst_md5 , key -> dst_md5 , 16 ) ;\n memcpy ( hash -> u . link . src_md5 , key -> src_md5 , 16 ) ;\n hash -> u . link . ri = key -> rend . ri ;\n hash -> u . link . bp = key -> rend . bp ;\n hash -> u . link . src_extras = key -> src_extras ;\n hash -> u . link . dst_extras = key -> dst_extras ;\n hash -> u . link . bpp16 = key -> depth == 2 ;\n hash -> u . link . proof = key -> proof ;\n hash -> u . link . copy_spots = key -> copy_spots ;\n return 1 ;\n }"}
{"idx": 398, "target": 0, "func": "static gpgme_error_t gpgsm_decrypt ( void * engine , gpgme_data_t ciph , gpgme_data_t plain ) {\n engine_gpgsm_t gpgsm = engine ;\n gpgme_error_t err ;\n if ( ! gpgsm ) return gpg_error ( GPG_ERR_INV_VALUE ) ;\n gpgsm -> input_cb . data = ciph ;\n err = gpgsm_set_fd ( gpgsm , INPUT_FD , map_data_enc ( gpgsm -> input_cb . data ) ) ;\n if ( err ) return gpg_error ( GPG_ERR_GENERAL ) ;\n gpgsm -> output_cb . data = plain ;\n err = gpgsm_set_fd ( gpgsm , OUTPUT_FD , 0 ) ;\n if ( err ) return gpg_error ( GPG_ERR_GENERAL ) ;\n gpgsm_clear_fd ( gpgsm , MESSAGE_FD ) ;\n gpgsm -> inline_data = NULL ;\n err = start ( engine , \"DECRYPT\" ) ;\n return err ;\n }"}
{"idx": 399, "target": 0, "func": "static char * ext_t_0_wv_cspc_11 ( tvbuff_t * tvb _U_ , guint32 value , guint32 str_tbl _U_ ) {\n char * str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"Common Value: '%s'\" , val_to_str_ext ( value , & vals_wv_csp_11_element_value_tokens_ext , \"<Unknown WV-CSP 1.1 Common Value token 0x%X>\" ) ) ;\n return str ;\n }"}
{"idx": 400, "target": 1, "func": "void vp9_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint8_t * dst , ptrdiff_t stride , const uint8_t * above , const uint8_t * left ) {\n type ## _predictor ( dst , stride , size , above , left ) ;\n }\n # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) static INLINE void d207_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n intra_pred_allsizes ( d207 ) static INLINE void d63_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d63 ) static INLINE void d45_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r + c + 2 < bs * 2 ? ROUND_POWER_OF_TWO ( above [ r + c ] + above [ r + c + 1 ] * 2 + above [ r + c + 2 ] , 2 ) : above [ bs * 2 - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d45 ) static INLINE void d117_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] , 1 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 3 ;\n r < bs ;\n ++ r ) dst [ ( r - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ r - 3 ] + left [ r - 2 ] * 2 + left [ r - 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - 2 * stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d117 ) static INLINE void d135_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d135 )"}
{"idx": 401, "target": 0, "func": "TEST_F ( AutocompleteResultTest , CopyOldMatchesWithOneProviderWithoutDefault ) {\n TestData last [ ] = {\n {\n 0 , 2 , 1250 , true }\n , {\n 1 , 2 , 1150 , true }\n , {\n 2 , 1 , 900 , false }\n , {\n 3 , 1 , 800 , false }\n , {\n 4 , 1 , 700 , false }\n , }\n ;\n TestData current [ ] = {\n {\n 5 , 1 , 1000 , true }\n , {\n 6 , 2 , 800 , false }\n , {\n 7 , 1 , 500 , true }\n , }\n ;\n TestData result [ ] = {\n {\n 5 , 1 , 1000 , true }\n , {\n 1 , 2 , 999 , true }\n , {\n 6 , 2 , 800 , false }\n , {\n 4 , 1 , 700 , false }\n , {\n 7 , 1 , 500 , true }\n , }\n ;\n ASSERT_NO_FATAL_FAILURE ( RunCopyOldMatchesTest ( last , arraysize ( last ) , current , arraysize ( current ) , result , arraysize ( result ) ) ) ;\n }"}
{"idx": 402, "target": 1, "func": "static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_null ( void ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_null ( ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_reserve ( sk_ ## t1 ## _compfunc compare , int n ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_reserve ( ( OPENSSL_sk_compfunc ) compare , n ) ;\n }\n static ossl_inline int sk_ ## t1 ## _reserve ( STACK_OF ( t1 ) * sk , int n ) {\n return OPENSSL_sk_reserve ( ( OPENSSL_STACK * ) sk , n ) ;\n }\n static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 403, "target": 0, "func": "static void DecoderProcessVideo ( decoder_t * p_dec , block_t * p_block , bool b_flush ) {\n decoder_owner_sys_t * p_owner = ( decoder_owner_sys_t * ) p_dec -> p_owner ;\n if ( p_owner -> p_packetizer ) {\n block_t * p_packetized_block ;\n decoder_t * p_packetizer = p_owner -> p_packetizer ;\n while ( ( p_packetized_block = p_packetizer -> pf_packetize ( p_packetizer , p_block ? & p_block : NULL ) ) ) {\n if ( p_packetizer -> fmt_out . i_extra && ! p_dec -> fmt_in . i_extra ) {\n es_format_Clean ( & p_dec -> fmt_in ) ;\n es_format_Copy ( & p_dec -> fmt_in , & p_packetizer -> fmt_out ) ;\n }\n if ( p_packetizer -> fmt_out . video . i_sar_num > 0 && p_packetizer -> fmt_out . video . i_sar_den > 0 ) {\n p_dec -> fmt_in . video . i_sar_num = p_packetizer -> fmt_out . video . i_sar_num ;\n p_dec -> fmt_in . video . i_sar_den = p_packetizer -> fmt_out . video . i_sar_den ;\n }\n if ( p_packetizer -> pf_get_cc ) DecoderGetCc ( p_dec , p_packetizer ) ;\n while ( p_packetized_block ) {\n block_t * p_next = p_packetized_block -> p_next ;\n p_packetized_block -> p_next = NULL ;\n DecoderDecodeVideo ( p_dec , p_packetized_block ) ;\n p_packetized_block = p_next ;\n }\n }\n if ( b_flush ) {\n block_t * p_null = DecoderBlockFlushNew ( ) ;\n if ( p_null ) DecoderDecodeVideo ( p_dec , p_null ) ;\n }\n }\n else {\n DecoderDecodeVideo ( p_dec , p_block ) ;\n }\n if ( b_flush && p_owner -> p_vout ) vout_Flush ( p_owner -> p_vout , VLC_TS_INVALID + 1 ) ;\n }"}
{"idx": 404, "target": 0, "func": "static int64_t be4 ( const unsigned char * p ) {\n return ( ( ( ( int64_t ) p [ 0 ] ) << 24 ) + ( p [ 1 ] << 16 ) + ( p [ 2 ] << 8 ) + ( p [ 3 ] ) ) ;\n }"}
{"idx": 405, "target": 0, "func": "static size_t add_data_segment ( u_char * * data , size_t base , u_char * * string , size_t slen ) {\n SAFE_REALLOC ( * data , base + slen + 1 ) ;\n memcpy ( * data + base , * string , slen + 1 ) ;\n * string = ( u_char * ) base ;\n return slen + 1 ;\n }"}
{"idx": 406, "target": 0, "func": "void xmlrpc_set_buffer ( char * ( * func ) ( char * buffer , int len ) ) {\n return_if_fail ( func != NULL ) ;\n xmlrpc . setbuffer = func ;\n }"}
{"idx": 407, "target": 0, "func": "static bool myisam_is_supported_system_table ( const char * db , const char * table_name , bool is_sql_layer_system_table ) {\n if ( is_sql_layer_system_table ) return true ;\n return false ;\n }"}
{"idx": 408, "target": 0, "func": "void proto_reg_handoff_zbee_zcl_poll_ctrl ( void ) {\n dissector_handle_t poll_handle ;\n poll_handle = find_dissector ( ZBEE_PROTOABBREV_ZCL_POLL ) ;\n dissector_add_uint ( \"zbee.zcl.cluster\" , ZBEE_ZCL_CID_POLL_CONTROL , poll_handle ) ;\n zbee_zcl_init_cluster ( proto_zbee_zcl_poll_ctrl , ett_zbee_zcl_poll_ctrl , ZBEE_ZCL_CID_POLL_CONTROL , hf_zbee_zcl_poll_ctrl_attr_id , hf_zbee_zcl_poll_ctrl_srv_rx_cmd_id , hf_zbee_zcl_poll_ctrl_srv_tx_cmd_id , ( zbee_zcl_fn_attr_data ) dissect_zcl_poll_ctrl_attr_data ) ;\n }"}
{"idx": 409, "target": 0, "func": "static int dissect_h245_CommandMessage ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 461 \"../../asn1/h245/h245.cnf\" gint32 value ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_CommandMessage , CommandMessage_choice , & value ) ;\n if ( h245_shorttypes == TRUE ) {\n col_prepend_fstr ( actx -> pinfo -> cinfo , COL_INFO , \"%s \" , val_to_str ( value , h245_CommandMessage_short_vals , \"<unknown>\" ) ) ;\n }\n else {\n col_prepend_fstr ( actx -> pinfo -> cinfo , COL_INFO , \"%s \" , val_to_str ( value , h245_CommandMessage_vals , \"<unknown>\" ) ) ;\n }\n col_set_fence ( actx -> pinfo -> cinfo , COL_INFO ) ;\n if ( h245_pi != NULL ) {\n if ( strlen ( h245_pi -> frame_label ) == 0 ) {\n g_snprintf ( h245_pi -> frame_label , 50 , \"%s\" , val_to_str ( value , h245_CommandMessage_short_vals , \"UKN\" ) ) ;\n }\n g_strlcat ( h245_pi -> comment , val_to_str ( value , h245_CommandMessage_vals , \"<unknown>\" ) , 50 ) ;\n }\n return offset ;\n }"}
{"idx": 410, "target": 0, "func": "static ECPARAMETERS * ec_asn1_group2parameters ( const EC_GROUP * group , ECPARAMETERS * param ) {\n int ok = 0 ;\n size_t len = 0 ;\n ECPARAMETERS * ret = NULL ;\n BIGNUM * tmp = NULL ;\n unsigned char * buffer = NULL ;\n const EC_POINT * point = NULL ;\n point_conversion_form_t form ;\n if ( ( tmp = BN_new ( ) ) == NULL ) {\n ECerr ( EC_F_EC_ASN1_GROUP2PARAMETERS , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n if ( param == NULL ) {\n if ( ( ret = ECPARAMETERS_new ( ) ) == NULL ) {\n ECerr ( EC_F_EC_ASN1_GROUP2PARAMETERS , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n }\n else ret = param ;\n ret -> version = ( long ) 0x1 ;\n if ( ! ec_asn1_group2fieldid ( group , ret -> fieldID ) ) {\n ECerr ( EC_F_EC_ASN1_GROUP2PARAMETERS , ERR_R_EC_LIB ) ;\n goto err ;\n }\n if ( ! ec_asn1_group2curve ( group , ret -> curve ) ) {\n ECerr ( EC_F_EC_ASN1_GROUP2PARAMETERS , ERR_R_EC_LIB ) ;\n goto err ;\n }\n if ( ( point = EC_GROUP_get0_generator ( group ) ) == NULL ) {\n ECerr ( EC_F_EC_ASN1_GROUP2PARAMETERS , EC_R_UNDEFINED_GENERATOR ) ;\n goto err ;\n }\n form = EC_GROUP_get_point_conversion_form ( group ) ;\n len = EC_POINT_point2oct ( group , point , form , NULL , len , NULL ) ;\n if ( len == 0 ) {\n ECerr ( EC_F_EC_ASN1_GROUP2PARAMETERS , ERR_R_EC_LIB ) ;\n goto err ;\n }\n if ( ( buffer = OPENSSL_malloc ( len ) ) == NULL ) {\n ECerr ( EC_F_EC_ASN1_GROUP2PARAMETERS , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n if ( ! EC_POINT_point2oct ( group , point , form , buffer , len , NULL ) ) {\n ECerr ( EC_F_EC_ASN1_GROUP2PARAMETERS , ERR_R_EC_LIB ) ;\n goto err ;\n }\n if ( ret -> base == NULL && ( ret -> base = ASN1_OCTET_STRING_new ( ) ) == NULL ) {\n ECerr ( EC_F_EC_ASN1_GROUP2PARAMETERS , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n if ( ! ASN1_OCTET_STRING_set ( ret -> base , buffer , len ) ) {\n ECerr ( EC_F_EC_ASN1_GROUP2PARAMETERS , ERR_R_ASN1_LIB ) ;\n goto err ;\n }\n if ( ! EC_GROUP_get_order ( group , tmp , NULL ) ) {\n ECerr ( EC_F_EC_ASN1_GROUP2PARAMETERS , ERR_R_EC_LIB ) ;\n goto err ;\n }\n ret -> order = BN_to_ASN1_INTEGER ( tmp , ret -> order ) ;\n if ( ret -> order == NULL ) {\n ECerr ( EC_F_EC_ASN1_GROUP2PARAMETERS , ERR_R_ASN1_LIB ) ;\n goto err ;\n }\n if ( EC_GROUP_get_cofactor ( group , tmp , NULL ) ) {\n ret -> cofactor = BN_to_ASN1_INTEGER ( tmp , ret -> cofactor ) ;\n if ( ret -> cofactor == NULL ) {\n ECerr ( EC_F_EC_ASN1_GROUP2PARAMETERS , ERR_R_ASN1_LIB ) ;\n goto err ;\n }\n }\n ok = 1 ;\n err : if ( ! ok ) {\n if ( ret && ! param ) ECPARAMETERS_free ( ret ) ;\n ret = NULL ;\n }\n if ( tmp ) BN_free ( tmp ) ;\n if ( buffer ) OPENSSL_free ( buffer ) ;\n return ( ret ) ;\n }"}
{"idx": 411, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n CamStudioContext * c = avctx -> priv_data ;\n AVFrame * picture = data ;\n int ret ;\n if ( buf_size < 2 ) {\n av_log ( avctx , AV_LOG_ERROR , \"coded frame too small\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ( ret = ff_get_buffer ( avctx , picture , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n switch ( ( buf [ 0 ] >> 1 ) & 7 ) {\n case 0 : {\n int outlen = c -> decomp_size , inlen = buf_size - 2 ;\n if ( av_lzo1x_decode ( c -> decomp_buf , & outlen , & buf [ 2 ] , & inlen ) ) av_log ( avctx , AV_LOG_ERROR , \"error during lzo decompression\\n\" ) ;\n break ;\n }\n case 1 : {\n # if CONFIG_ZLIB unsigned long dlen = c -> decomp_size ;\n if ( uncompress ( c -> decomp_buf , & dlen , & buf [ 2 ] , buf_size - 2 ) != Z_OK ) av_log ( avctx , AV_LOG_ERROR , \"error during zlib decompression\\n\" ) ;\n break ;\n # else av_log ( avctx , AV_LOG_ERROR , \"compiled without zlib support\\n\" ) ;\n return AVERROR ( ENOSYS ) ;\n # endif }\n default : av_log ( avctx , AV_LOG_ERROR , \"unknown compression\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( buf [ 0 ] & 1 ) {\n picture -> pict_type = AV_PICTURE_TYPE_I ;\n picture -> key_frame = 1 ;\n switch ( c -> bpp ) {\n case 16 : copy_frame_16 ( picture , c -> decomp_buf , c -> linelen , c -> height ) ;\n break ;\n case 32 : copy_frame_32 ( picture , c -> decomp_buf , c -> linelen , c -> height ) ;\n break ;\n default : copy_frame_default ( picture , c -> decomp_buf , FFALIGN ( c -> linelen , 4 ) , c -> linelen , c -> height ) ;\n }\n }\n else {\n picture -> pict_type = AV_PICTURE_TYPE_P ;\n picture -> key_frame = 0 ;\n switch ( c -> bpp ) {\n case 16 : add_frame_16 ( picture , c -> decomp_buf , c -> linelen , c -> height ) ;\n break ;\n case 32 : add_frame_32 ( picture , c -> decomp_buf , c -> linelen , c -> height ) ;\n break ;\n default : add_frame_default ( picture , c -> decomp_buf , FFALIGN ( c -> linelen , 4 ) , c -> linelen , c -> height ) ;\n }\n }\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 412, "target": 0, "func": "static void report_extract_final_progress ( ExtractJob * extract_job , gint total_files ) {\n char * status ;\n nautilus_progress_info_set_destination ( extract_job -> common . progress , extract_job -> destination_directory ) ;\n if ( total_files == 1 ) {\n GFile * source_file ;\n source_file = G_FILE ( extract_job -> source_files -> data ) ;\n status = f ( _ ( \"Extracted \u201c%B\u201d to \u201c%B\u201d\" ) , source_file , extract_job -> destination_directory ) ;\n }\n else {\n status = f ( ngettext ( \"Extracted %'d file to \u201c%B\u201d\" , \"Extracted %'d files to \u201c%B\u201d\" , total_files ) , total_files , extract_job -> destination_directory ) ;\n }\n nautilus_progress_info_take_status ( extract_job -> common . progress , status ) ;\n nautilus_progress_info_take_details ( extract_job -> common . progress , f ( _ ( \"%S / %S\" ) , extract_job -> total_compressed_size , extract_job -> total_compressed_size ) ) ;\n }"}
{"idx": 413, "target": 0, "func": "static int dissect_t38_OCTET_STRING ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , NO_BOUND , NO_BOUND , FALSE , NULL ) ;\n return offset ;\n }"}
{"idx": 414, "target": 1, "func": "static void set_source_var_based_partition ( VP9_COMP * cpi , const TileInfo * const tile , MODE_INFO * * mi_8x8 , int mi_row , int mi_col ) {\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCK * const x = & cpi -> mb ;\n const int mis = cm -> mi_stride ;\n const int row8x8_remaining = tile -> mi_row_end - mi_row ;\n const int col8x8_remaining = tile -> mi_col_end - mi_col ;\n MODE_INFO * mi_upper_left = cm -> mi + mi_row * mis + mi_col ;\n vp9_setup_src_planes ( x , cpi -> Source , mi_row , mi_col ) ;\n assert ( ( row8x8_remaining > 0 ) && ( col8x8_remaining > 0 ) ) ;\n if ( ( col8x8_remaining >= MI_BLOCK_SIZE ) && ( row8x8_remaining >= MI_BLOCK_SIZE ) ) {\n int i , j ;\n int index ;\n diff d32 [ 4 ] ;\n const int offset = ( mi_row >> 1 ) * cm -> mb_cols + ( mi_col >> 1 ) ;\n int is_larger_better = 0 ;\n int use32x32 = 0 ;\n unsigned int thr = cpi -> source_var_thresh ;\n vpx_memset ( d32 , 0 , 4 * sizeof ( diff ) ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n diff * d16 [ 4 ] ;\n for ( j = 0 ;\n j < 4 ;\n j ++ ) {\n int b_mi_row = coord_lookup [ i * 4 + j ] . row ;\n int b_mi_col = coord_lookup [ i * 4 + j ] . col ;\n int boffset = b_mi_row / 2 * cm -> mb_cols + b_mi_col / 2 ;\n d16 [ j ] = cpi -> source_diff_var + offset + boffset ;\n index = b_mi_row * mis + b_mi_col ;\n mi_8x8 [ index ] = mi_upper_left + index ;\n mi_8x8 [ index ] -> mbmi . sb_type = BLOCK_16X16 ;\n }\n is_larger_better = ( d16 [ 0 ] -> var < thr ) && ( d16 [ 1 ] -> var < thr ) && ( d16 [ 2 ] -> var < thr ) && ( d16 [ 3 ] -> var < thr ) ;\n if ( is_larger_better ) {\n use32x32 += 1 ;\n for ( j = 0 ;\n j < 4 ;\n j ++ ) {\n d32 [ i ] . sse += d16 [ j ] -> sse ;\n d32 [ i ] . sum += d16 [ j ] -> sum ;\n }\n d32 [ i ] . var = d32 [ i ] . sse - ( ( ( int64_t ) d32 [ i ] . sum * d32 [ i ] . sum ) >> 10 ) ;\n index = coord_lookup [ i * 4 ] . row * mis + coord_lookup [ i * 4 ] . col ;\n mi_8x8 [ index ] = mi_upper_left + index ;\n mi_8x8 [ index ] -> mbmi . sb_type = BLOCK_32X32 ;\n }\n }\n if ( use32x32 == 4 ) {\n thr <<= 1 ;\n is_larger_better = ( d32 [ 0 ] . var < thr ) && ( d32 [ 1 ] . var < thr ) && ( d32 [ 2 ] . var < thr ) && ( d32 [ 3 ] . var < thr ) ;\n if ( is_larger_better ) {\n mi_8x8 [ 0 ] = mi_upper_left ;\n mi_8x8 [ 0 ] -> mbmi . sb_type = BLOCK_64X64 ;\n }\n }\n }\n else {\n int bh = num_8x8_blocks_high_lookup [ BLOCK_16X16 ] ;\n int bw = num_8x8_blocks_wide_lookup [ BLOCK_16X16 ] ;\n set_partial_b64x64_partition ( mi_upper_left , mis , bh , bw , row8x8_remaining , col8x8_remaining , BLOCK_16X16 , mi_8x8 ) ;\n }\n }"}
{"idx": 415, "target": 0, "func": "static void EncSchroFrameFree ( SchroFrame * frame , void * priv ) {\n struct enc_picture_free_t * p_free = priv ;\n if ( ! p_free ) return ;\n picture_Release ( p_free -> p_pic ) ;\n free ( p_free ) ;\n ( void ) frame ;\n }"}
{"idx": 416, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , TestRemovingDefaultFallsBackToOldDefault ) {\n ProtocolHandler ph1 = CreateProtocolHandler ( \"mailto\" , \"test1\" ) ;\n ProtocolHandler ph2 = CreateProtocolHandler ( \"mailto\" , \"test2\" ) ;\n ProtocolHandler ph3 = CreateProtocolHandler ( \"mailto\" , \"test3\" ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph2 ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph3 ) ;\n ASSERT_TRUE ( registry ( ) -> IsDefault ( ph3 ) ) ;\n registry ( ) -> RemoveHandler ( ph3 ) ;\n ASSERT_TRUE ( registry ( ) -> IsDefault ( ph2 ) ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph3 ) ;\n ASSERT_TRUE ( registry ( ) -> IsDefault ( ph3 ) ) ;\n registry ( ) -> RemoveHandler ( ph2 ) ;\n ASSERT_TRUE ( registry ( ) -> IsDefault ( ph3 ) ) ;\n registry ( ) -> RemoveHandler ( ph3 ) ;\n ASSERT_TRUE ( registry ( ) -> IsDefault ( ph1 ) ) ;\n }"}
{"idx": 417, "target": 0, "func": "static int old_dsa_priv_decode ( EVP_PKEY * pkey , const unsigned char * * pder , int derlen ) {\n DSA * dsa ;\n if ( ( dsa = d2i_DSAPrivateKey ( NULL , pder , derlen ) ) == NULL ) {\n DSAerr ( DSA_F_OLD_DSA_PRIV_DECODE , ERR_R_DSA_LIB ) ;\n return 0 ;\n }\n EVP_PKEY_assign_DSA ( pkey , dsa ) ;\n return 1 ;\n }"}
{"idx": 418, "target": 0, "func": "static int candidate_refresh_aq ( const CYCLIC_REFRESH * cr , const MB_MODE_INFO * mbmi , BLOCK_SIZE bsize , int use_rd ) {\n if ( use_rd ) {\n if ( cr -> projected_rate_sb < cr -> thresh_rate_sb ) return 1 ;\n else if ( bsize < cr -> min_block_size || ( mbmi -> mv [ 0 ] . as_int != 0 && cr -> projected_dist_sb > cr -> thresh_dist_sb ) || ! is_inter_block ( mbmi ) ) return 0 ;\n else return 1 ;\n }\n else {\n if ( bsize < cr -> min_block_size || mbmi -> mv [ 0 ] . as_int != 0 || ! is_inter_block ( mbmi ) ) return 0 ;\n else return 1 ;\n }\n }"}
{"idx": 419, "target": 1, "func": "static uint dump_routines_for_db ( char * db ) {\n char query_buff [ QUERY_LENGTH ] ;\n const char * routine_type [ ] = {\n \"FUNCTION\" , \"PROCEDURE\" }\n ;\n char db_name_buff [ NAME_LEN * 2 + 3 ] , name_buff [ NAME_LEN * 2 + 3 ] ;\n char * routine_name ;\n int i ;\n FILE * sql_file = md_result_file ;\n MYSQL_RES * routine_res , * routine_list_res ;\n MYSQL_ROW row , routine_list_row ;\n char db_cl_name [ MY_CS_NAME_SIZE ] ;\n int db_cl_altered = FALSE ;\n DBUG_ENTER ( \"dump_routines_for_db\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"db: '%s'\" , db ) ) ;\n mysql_real_escape_string ( mysql , db_name_buff , db , ( ulong ) strlen ( db ) ) ;\n print_comment ( sql_file , 0 , \"\\n--\\n-- Dumping routines for database '%s'\\n--\\n\" , db ) ;\n if ( lock_tables ) mysql_query ( mysql , \"LOCK TABLES mysql.proc READ\" ) ;\n if ( fetch_db_collation ( db , db_cl_name , sizeof ( db_cl_name ) ) ) DBUG_RETURN ( 1 ) ;\n if ( switch_character_set_results ( mysql , \"binary\" ) ) DBUG_RETURN ( 1 ) ;\n if ( opt_xml ) fputs ( \"\\t<routines>\\n\" , sql_file ) ;\n for ( i = 0 ;\n i <= 1 ;\n i ++ ) {\n my_snprintf ( query_buff , sizeof ( query_buff ) , \"SHOW %s STATUS WHERE Db = '%s'\" , routine_type [ i ] , db_name_buff ) ;\n if ( mysql_query_with_error_report ( mysql , & routine_list_res , query_buff ) ) DBUG_RETURN ( 1 ) ;\n if ( mysql_num_rows ( routine_list_res ) ) {\n while ( ( routine_list_row = mysql_fetch_row ( routine_list_res ) ) ) {\n routine_name = quote_name ( routine_list_row [ 1 ] , name_buff , 0 ) ;\n DBUG_PRINT ( \"info\" , ( \"retrieving CREATE %s for %s\" , routine_type [ i ] , name_buff ) ) ;\n my_snprintf ( query_buff , sizeof ( query_buff ) , \"SHOW CREATE %s %s\" , routine_type [ i ] , routine_name ) ;\n if ( mysql_query_with_error_report ( mysql , & routine_res , query_buff ) ) DBUG_RETURN ( 1 ) ;\n while ( ( row = mysql_fetch_row ( routine_res ) ) ) {\n DBUG_PRINT ( \"info\" , ( \"length of body for %s row[2] '%s' is %zu\" , routine_name , row [ 2 ] ? row [ 2 ] : \"(null)\" , row [ 2 ] ? strlen ( row [ 2 ] ) : 0 ) ) ;\n if ( row [ 2 ] == NULL ) {\n print_comment ( sql_file , 1 , \"\\n-- insufficient privileges to %s\\n\" , query_buff ) ;\n print_comment ( sql_file , 1 , \"-- does %s have permissions on mysql.proc?\\n\\n\" , current_user ) ;\n maybe_die ( EX_MYSQLERR , \"%s has insufficent privileges to %s!\" , current_user , query_buff ) ;\n }\n else if ( strlen ( row [ 2 ] ) ) {\n if ( opt_xml ) {\n if ( i ) print_xml_row ( sql_file , \"routine\" , routine_res , & row , \"Create Procedure\" ) ;\n else print_xml_row ( sql_file , \"routine\" , routine_res , & row , \"Create Function\" ) ;\n continue ;\n }\n if ( opt_drop ) fprintf ( sql_file , \"/*!50003 DROP %s IF EXISTS %s */;\n\\n\" , routine_type [ i ] , routine_name ) ;\n if ( mysql_num_fields ( routine_res ) >= 6 ) {\n if ( switch_db_collation ( sql_file , db , \";\n\" , db_cl_name , row [ 5 ] , & db_cl_altered ) ) {\n DBUG_RETURN ( 1 ) ;\n }\n switch_cs_variables ( sql_file , \";\n\" , row [ 3 ] , row [ 3 ] , row [ 4 ] ) ;\n }\n else {\n fprintf ( sql_file , \"--\\n\" \"-- WARNING: old server version. \" \"The following dump may be incomplete.\\n\" \"--\\n\" ) ;\n }\n switch_sql_mode ( sql_file , \";\n\" , row [ 1 ] ) ;\n fprintf ( sql_file , \"DELIMITER ;\n;\n\\n\" \"%s ;\n;\n\\n\" \"DELIMITER ;\n\\n\" , ( const char * ) row [ 2 ] ) ;\n restore_sql_mode ( sql_file , \";\n\" ) ;\n if ( mysql_num_fields ( routine_res ) >= 6 ) {\n restore_cs_variables ( sql_file , \";\n\" ) ;\n if ( db_cl_altered ) {\n if ( restore_db_collation ( sql_file , db , \";\n\" , db_cl_name ) ) DBUG_RETURN ( 1 ) ;\n }\n }\n }\n }\n mysql_free_result ( routine_res ) ;\n }\n }\n mysql_free_result ( routine_list_res ) ;\n }\n if ( opt_xml ) {\n fputs ( \"\\t</routines>\\n\" , sql_file ) ;\n check_io ( sql_file ) ;\n }\n if ( switch_character_set_results ( mysql , default_charset ) ) DBUG_RETURN ( 1 ) ;\n if ( lock_tables ) ( void ) mysql_query_with_error_report ( mysql , 0 , \"UNLOCK TABLES\" ) ;\n DBUG_RETURN ( 0 ) ;\n }"}
{"idx": 420, "target": 0, "func": "static GFile * get_target_file_for_link ( GFile * src , GFile * dest_dir , const char * dest_fs_type , int count ) {\n const char * editname ;\n char * basename , * new_name ;\n GFileInfo * info ;\n GFile * dest ;\n int max_length ;\n max_length = get_max_name_length ( dest_dir ) ;\n dest = NULL ;\n info = g_file_query_info ( src , G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME , 0 , NULL , NULL ) ;\n if ( info != NULL ) {\n editname = g_file_info_get_attribute_string ( info , G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME ) ;\n if ( editname != NULL ) {\n new_name = get_link_name ( editname , count , max_length ) ;\n make_file_name_valid_for_dest_fs ( new_name , dest_fs_type ) ;\n dest = g_file_get_child_for_display_name ( dest_dir , new_name , NULL ) ;\n g_free ( new_name ) ;\n }\n g_object_unref ( info ) ;\n }\n if ( dest == NULL ) {\n basename = g_file_get_basename ( src ) ;\n make_file_name_valid_for_dest_fs ( basename , dest_fs_type ) ;\n if ( g_utf8_validate ( basename , - 1 , NULL ) ) {\n new_name = get_link_name ( basename , count , max_length ) ;\n make_file_name_valid_for_dest_fs ( new_name , dest_fs_type ) ;\n dest = g_file_get_child_for_display_name ( dest_dir , new_name , NULL ) ;\n g_free ( new_name ) ;\n }\n if ( dest == NULL ) {\n if ( count == 1 ) {\n new_name = g_strdup_printf ( \"%s.lnk\" , basename ) ;\n }\n else {\n new_name = g_strdup_printf ( \"%s.lnk%d\" , basename , count ) ;\n }\n make_file_name_valid_for_dest_fs ( new_name , dest_fs_type ) ;\n dest = g_file_get_child ( dest_dir , new_name ) ;\n g_free ( new_name ) ;\n }\n g_free ( basename ) ;\n }\n return dest ;\n }"}
{"idx": 421, "target": 0, "func": "static void signal_channel_created_curwin ( CHANNEL_REC * channel ) {\n g_return_if_fail ( channel != NULL ) ;\n window_item_add ( active_win , ( WI_ITEM_REC * ) channel , FALSE ) ;\n }"}
{"idx": 422, "target": 0, "func": "static int dissect_SPOOL_PRINTER_INFO ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n proto_tree * subtree ;\n guint32 level ;\n proto_tree * item ;\n subtree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_SPOOL_PRINTER_INFO_LEVEL , & item , \"Spool printer info level\" ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_level , & level ) ;\n switch ( level ) {\n case 3 : {\n guint32 devmode_ptr , secdesc_ptr ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_spool_printer_info_devmode_ptr , & devmode_ptr ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_spool_printer_info_secdesc_ptr , & secdesc_ptr ) ;\n if ( devmode_ptr ) offset = dissect_DEVMODE_CTR ( tvb , offset , pinfo , subtree , di , drep ) ;\n if ( secdesc_ptr ) offset = dissect_SEC_DESC_BUF ( tvb , offset , pinfo , subtree , di , drep ) ;\n break ;\n }\n case 2 : default : expert_add_info_format ( pinfo , item , & ei_spool_printer_info_level , \"Unknown spool printer info level %d\" , level ) ;\n break ;\n }\n return offset ;\n }"}
{"idx": 423, "target": 0, "func": "static int end_runandhide ( i_ctx_t * i_ctx_p ) {\n int code ;\n if ( ( code = runandhide_restore_hidden ( i_ctx_p , esp , esp - 1 ) ) < 0 ) {\n esp -= 2 ;\n return code ;\n }\n esp -= 2 ;\n return o_pop_estack ;\n }"}
{"idx": 424, "target": 0, "func": "static void UnblendFree ( StemInfo * h ) {\n while ( h != NULL ) {\n chunkfree ( h -> u . unblended , sizeof ( real [ 2 ] [ MmMax ] ) ) ;\n h -> u . unblended = NULL ;\n h = h -> next ;\n }\n }"}
{"idx": 425, "target": 0, "func": "static size_t kex_method_strlen ( LIBSSH2_COMMON_METHOD * * method ) {\n size_t len = 0 ;\n if ( ! method || ! * method ) {\n return 0 ;\n }\n while ( * method && ( * method ) -> name ) {\n len += strlen ( ( * method ) -> name ) + 1 ;\n method ++ ;\n }\n return len - 1 ;\n }"}
{"idx": 426, "target": 0, "func": "static int32_t u_scanf_simple_percent_handler ( UFILE * input , u_scanf_spec_info * info , ufmt_args * args , const UChar * fmt , int32_t * fmtConsumed , int32_t * argConverted ) {\n ( void ) info ;\n ( void ) args ;\n ( void ) fmt ;\n ( void ) fmtConsumed ;\n * argConverted = 0 ;\n if ( u_fgetc ( input ) != 0x0025 ) {\n * argConverted = - 1 ;\n }\n return 1 ;\n }"}
{"idx": 427, "target": 1, "func": "unsigned long # define BN_BYTES 8 # endif # ifdef SIXTY_FOUR_BIT # define BN_ULONG unsigned long long # define BN_BYTES 8 # endif # ifdef THIRTY_TWO_BIT # define BN_ULONG unsigned int # define BN_BYTES 4 # endif # define BN_BITS2 ( BN_BYTES * 8 ) # define BN_BITS ( BN_BITS2 * 2 ) # define BN_TBIT ( ( BN_ULONG ) 1 << ( BN_BITS2 - 1 ) ) # define BN_FLG_MALLOCED 0x01 # define BN_FLG_STATIC_DATA 0x02 # define BN_FLG_CONSTTIME 0x04 # define BN_FLG_SECURE 0x08 # if OPENSSL_API_COMPAT < 0x00908000L # define BN_FLG_EXP_CONSTTIME BN_FLG_CONSTTIME # define BN_FLG_FREE 0x8000 # endif void BN_set_flags ( BIGNUM * b , int n ) ;\n int BN_get_flags ( const BIGNUM * b , int n ) ;\n # define BN_RAND_TOP_ANY - 1 # define BN_RAND_TOP_ONE 0 # define BN_RAND_TOP_TWO 1 # define BN_RAND_BOTTOM_ANY 0 # define BN_RAND_BOTTOM_ODD 1 void BN_with_flags ( BIGNUM * dest , const BIGNUM * b , int flags ) ;\n int BN_GENCB_call ( BN_GENCB * cb , int a , int b ) ;\n BN_GENCB * BN_GENCB_new ( void ) ;\n void BN_GENCB_free ( BN_GENCB * cb ) ;\n void BN_GENCB_set_old ( BN_GENCB * gencb , void ( * callback ) ( int , int , void * ) , void * cb_arg ) ;\n void BN_GENCB_set ( BN_GENCB * gencb , int ( * callback ) ( int , int , BN_GENCB * ) , void * cb_arg ) ;\n void * BN_GENCB_get_arg ( BN_GENCB * cb ) ;\n # define BN_prime_checks 0 # define BN_prime_checks_for_size ( b ) ( ( b ) >= 3747 ? 3 : ( b ) >= 1345 ? 4 : ( b ) >= 476 ? 5 : ( b ) >= 400 ? 6 : ( b ) >= 347 ? 7 : ( b ) >= 308 ? 8 : ( b ) >= 55 ? 27 : 34 ) # define BN_num_bytes ( a ) ( ( BN_num_bits ( a ) + 7 ) / 8 ) int BN_abs_is_word ( const BIGNUM * a , const BN_ULONG w ) ;\n int BN_is_zero ( const BIGNUM * a ) ;\n int BN_is_one ( const BIGNUM * a ) ;\n int BN_is_word ( const BIGNUM * a , const BN_ULONG w ) ;\n int BN_is_odd ( const BIGNUM * a ) ;\n # define BN_one ( a ) ( BN_set_word ( ( a ) , 1 ) ) void BN_zero_ex ( BIGNUM * a ) ;\n # if OPENSSL_API_COMPAT >= 0x00908000L # define BN_zero ( a ) BN_zero_ex ( a ) # else # define BN_zero ( a ) ( BN_set_word ( ( a ) , 0 ) ) # endif const BIGNUM * BN_value_one ( void ) ;\n char * BN_options ( void ) ;\n BN_CTX * BN_CTX_new ( void ) ;\n BN_CTX * BN_CTX_secure_new ( void ) ;\n void BN_CTX_free ( BN_CTX * c ) ;\n void BN_CTX_start ( BN_CTX * ctx ) ;\n BIGNUM * BN_CTX_get ( BN_CTX * ctx ) ;\n void BN_CTX_end ( BN_CTX * ctx ) ;\n int BN_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_priv_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_priv_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_pseudo_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_pseudo_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_num_bits ( const BIGNUM * a ) ;\n int BN_num_bits_word ( BN_ULONG l ) ;\n int BN_security_bits ( int L , int N ) ;\n BIGNUM * BN_new ( void ) ;\n BIGNUM * BN_secure_new ( void ) ;\n void BN_clear_free ( BIGNUM * a ) ;\n BIGNUM * BN_copy ( BIGNUM * a , const BIGNUM * b ) ;\n void BN_swap ( BIGNUM * a , BIGNUM * b ) ;\n BIGNUM * BN_bin2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2bin ( const BIGNUM * a , unsigned char * to ) ;\n int BN_bn2binpad ( const BIGNUM * a , unsigned char * to , int tolen ) ;\n BIGNUM * BN_lebin2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2lebinpad ( const BIGNUM * a , unsigned char * to , int tolen ) ;\n BIGNUM * BN_mpi2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2mpi ( const BIGNUM * a , unsigned char * to ) ;\n int BN_sub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_usub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_uadd ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n int BN_sqr ( BIGNUM * r , const BIGNUM * a , BN_CTX * ctx ) ;\n void BN_set_negative ( BIGNUM * b , int n ) ;\n int BN_is_negative ( const BIGNUM * b ) ;\n int BN_div ( BIGNUM * dv , BIGNUM * rem , const BIGNUM * m , const BIGNUM * d , BN_CTX * ctx ) ;\n # define BN_mod ( rem , m , d , ctx ) BN_div ( NULL , ( rem ) , ( m ) , ( d ) , ( ctx ) ) int BN_nnmod ( BIGNUM * r , const BIGNUM * m , const BIGNUM * d , BN_CTX * ctx ) ;\n int BN_mod_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_add_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m ) ;\n int BN_mod_sub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_sub_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m ) ;\n int BN_mod_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_sqr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift1 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift1_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m ) ;\n int BN_mod_lshift ( BIGNUM * r , const BIGNUM * a , int n , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift_quick ( BIGNUM * r , const BIGNUM * a , int n , const BIGNUM * m ) ;\n BN_ULONG BN_mod_word ( const BIGNUM * a , BN_ULONG w ) ;\n BN_ULONG BN_div_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_mul_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_add_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_sub_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_set_word ( BIGNUM * a , BN_ULONG w ) ;\n BN_ULONG BN_get_word ( const BIGNUM * a )"}
{"idx": 428, "target": 0, "func": "static int cirrus_post_load ( void * opaque , int version_id ) {\n CirrusVGAState * s = opaque ;\n s -> vga . gr [ 0x00 ] = s -> cirrus_shadow_gr0 & 0x0f ;\n s -> vga . gr [ 0x01 ] = s -> cirrus_shadow_gr1 & 0x0f ;\n cirrus_update_memory_access ( s ) ;\n s -> vga . graphic_mode = - 1 ;\n cirrus_update_bank_ptr ( s , 0 ) ;\n cirrus_update_bank_ptr ( s , 1 ) ;\n return 0 ;\n }"}
{"idx": 429, "target": 0, "func": "static int string_to_crypto_hash_type ( const char * crypto_hash_type ) {\n if ( strcmp ( crypto_hash_type , \"none\" ) == 0 ) {\n return CRYPTO_HASH_TYPE_NONE ;\n }\n else if ( strcmp ( crypto_hash_type , \"md5\" ) == 0 ) {\n return CRYPTO_HASH_TYPE_MD5 ;\n }\n else if ( strcmp ( crypto_hash_type , \"sha1\" ) == 0 ) {\n return CRYPTO_HASH_TYPE_SHA1 ;\n }\n else if ( strcmp ( crypto_hash_type , \"sha256\" ) == 0 ) {\n return CRYPTO_HASH_TYPE_SHA256 ;\n }\n else if ( strcmp ( crypto_hash_type , \"sha384\" ) == 0 ) {\n return CRYPTO_HASH_TYPE_SHA384 ;\n }\n else if ( strcmp ( crypto_hash_type , \"sha512\" ) == 0 ) {\n return CRYPTO_HASH_TYPE_SHA512 ;\n }\n return CRYPTO_HASH_TYPE_SHA1 ;\n }"}
{"idx": 430, "target": 0, "func": "static void vvalue_strbuf_append_i8 ( wmem_strbuf_t * strbuf , void * ptr ) {\n gint64 i8 = * ( gint64 * ) ptr ;\n wmem_strbuf_append_printf ( strbuf , \"%\" G_GINT64_MODIFIER \"d\" , i8 ) ;\n }"}
{"idx": 431, "target": 1, "func": "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 ) {\n sbr_hf_apply_noise ( Y , s_m , q_filt , noise , 1.0 , 0.0 , m_max ) ;\n }"}
{"idx": 432, "target": 0, "func": "int i2d_RSA_PUBKEY_bio ( BIO * bp , RSA * rsa ) {\n return ASN1_i2d_bio_of ( RSA , i2d_RSA_PUBKEY , bp , rsa ) ;\n }"}
{"idx": 433, "target": 0, "func": "static int decode_user_data ( MpegEncContext * s , GetBitContext * gb ) {\n char buf [ 256 ] ;\n int i ;\n int e ;\n int ver = 0 , build = 0 , ver2 = 0 , ver3 = 0 ;\n char last ;\n for ( i = 0 ;\n i < 255 && get_bits_count ( gb ) < gb -> size_in_bits ;\n i ++ ) {\n if ( show_bits ( gb , 23 ) == 0 ) break ;\n buf [ i ] = get_bits ( gb , 8 ) ;\n }\n buf [ i ] = 0 ;\n e = sscanf ( buf , \"DivX%dBuild%d%c\" , & ver , & build , & last ) ;\n if ( e < 2 ) e = sscanf ( buf , \"DivX%db%d%c\" , & ver , & build , & last ) ;\n if ( e >= 2 ) {\n s -> divx_version = ver ;\n s -> divx_build = build ;\n s -> divx_packed = e == 3 && last == 'p' ;\n if ( s -> divx_packed && ! s -> showed_packed_warning ) {\n av_log ( s -> avctx , AV_LOG_WARNING , \"Invalid and inefficient vfw-avi packed B frames detected\\n\" ) ;\n s -> showed_packed_warning = 1 ;\n }\n }\n e = sscanf ( buf , \"FFmpe%*[^b]b%d\" , & build ) + 3 ;\n if ( e != 4 ) e = sscanf ( buf , \"FFmpeg v%d.%d.%d / libavcodec build: %d\" , & ver , & ver2 , & ver3 , & build ) ;\n if ( e != 4 ) {\n e = sscanf ( buf , \"Lavc%d.%d.%d\" , & ver , & ver2 , & ver3 ) + 1 ;\n if ( e > 1 ) build = ( ver << 16 ) + ( ver2 << 8 ) + ver3 ;\n }\n if ( e != 4 ) {\n if ( strcmp ( buf , \"ffmpeg\" ) == 0 ) {\n s -> lavc_build = 4600 ;\n }\n }\n if ( e == 4 ) {\n s -> lavc_build = build ;\n }\n e = sscanf ( buf , \"XviD%d\" , & build ) ;\n if ( e == 1 ) {\n s -> xvid_build = build ;\n }\n return 0 ;\n }"}
{"idx": 434, "target": 0, "func": "void vp8_transform_mbuv ( MACROBLOCK * x ) {\n int i ;\n for ( i = 16 ;\n i < 24 ;\n i += 2 ) {\n x -> short_fdct8x4 ( & x -> block [ i ] . src_diff [ 0 ] , & x -> block [ i ] . coeff [ 0 ] , 16 ) ;\n }\n }"}
{"idx": 435, "target": 0, "func": "static void gen_vector_table15 ( TrueMotion1Context * s , const uint8_t * sel_vector_table ) {\n int len , i , j ;\n unsigned char delta_pair ;\n for ( i = 0 ;\n i < 1024 ;\n i += 4 ) {\n len = * sel_vector_table ++ / 2 ;\n for ( j = 0 ;\n j < len ;\n j ++ ) {\n delta_pair = * sel_vector_table ++ ;\n s -> y_predictor_table [ i + j ] = 0xfffffffe & make_ydt15_entry ( delta_pair >> 4 , delta_pair & 0xf , s -> ydt ) ;\n s -> c_predictor_table [ i + j ] = 0xfffffffe & make_cdt15_entry ( delta_pair >> 4 , delta_pair & 0xf , s -> cdt ) ;\n }\n s -> y_predictor_table [ i + ( j - 1 ) ] |= 1 ;\n s -> c_predictor_table [ i + ( j - 1 ) ] |= 1 ;\n }\n }"}
{"idx": 436, "target": 0, "func": "char * TSAIOBufGet ( TSAIOCallback data ) {\n AIOCallback * pAIO = ( AIOCallback * ) data ;\n return ( char * ) pAIO -> aiocb . aio_buf ;\n }"}
{"idx": 437, "target": 0, "func": "static void dtap_bcc_term ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n ELEM_MAND_LV ( GSM_A_PDU_TYPE_DTAP , DE_BCC_CAUSE , NULL ) ;\n }"}
{"idx": 438, "target": 0, "func": "int X509_CRL_sign ( X509_CRL * x , EVP_PKEY * pkey , const EVP_MD * md ) {\n x -> crl -> enc . modified = 1 ;\n return ( ASN1_item_sign ( ASN1_ITEM_rptr ( X509_CRL_INFO ) , x -> crl -> sig_alg , x -> sig_alg , x -> signature , x -> crl , pkey , md ) ) ;\n }"}
{"idx": 439, "target": 0, "func": "void bn_sqr_comba4 ( BN_ULONG * r , const BN_ULONG * a ) {\n BN_ULONG t [ 8 ] ;\n bn_sqr_normal ( r , a , 4 , t ) ;\n }"}
{"idx": 440, "target": 1, "func": "static int ipvideo_decode_block_opcode_0x8 ( IpvideoContext * s ) {\n int x , y ;\n unsigned char P [ 4 ] ;\n unsigned int flags = 0 ;\n P [ 0 ] = bytestream2_get_byte ( & s -> stream_ptr ) ;\n P [ 1 ] = bytestream2_get_byte ( & s -> stream_ptr ) ;\n if ( P [ 0 ] <= P [ 1 ] ) {\n for ( y = 0 ;\n y < 16 ;\n y ++ ) {\n if ( ! ( y & 3 ) ) {\n if ( y ) {\n P [ 0 ] = bytestream2_get_byte ( & s -> stream_ptr ) ;\n P [ 1 ] = bytestream2_get_byte ( & s -> stream_ptr ) ;\n }\n flags = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n }\n for ( x = 0 ;\n x < 4 ;\n x ++ , flags >>= 1 ) * s -> pixel_ptr ++ = P [ flags & 1 ] ;\n s -> pixel_ptr += s -> stride - 4 ;\n if ( y == 7 ) s -> pixel_ptr -= 8 * s -> stride - 4 ;\n }\n }\n else {\n flags = bytestream2_get_le32 ( & s -> stream_ptr ) ;\n P [ 2 ] = bytestream2_get_byte ( & s -> stream_ptr ) ;\n P [ 3 ] = bytestream2_get_byte ( & s -> stream_ptr ) ;\n if ( P [ 2 ] <= P [ 3 ] ) {\n for ( y = 0 ;\n y < 16 ;\n y ++ ) {\n for ( x = 0 ;\n x < 4 ;\n x ++ , flags >>= 1 ) * s -> pixel_ptr ++ = P [ flags & 1 ] ;\n s -> pixel_ptr += s -> stride - 4 ;\n if ( y == 7 ) {\n s -> pixel_ptr -= 8 * s -> stride - 4 ;\n P [ 0 ] = P [ 2 ] ;\n P [ 1 ] = P [ 3 ] ;\n flags = bytestream2_get_le32 ( & s -> stream_ptr ) ;\n }\n }\n }\n else {\n for ( y = 0 ;\n y < 8 ;\n y ++ ) {\n if ( y == 4 ) {\n P [ 0 ] = P [ 2 ] ;\n P [ 1 ] = P [ 3 ] ;\n flags = bytestream2_get_le32 ( & s -> stream_ptr ) ;\n }\n for ( x = 0 ;\n x < 8 ;\n x ++ , flags >>= 1 ) * s -> pixel_ptr ++ = P [ flags & 1 ] ;\n s -> pixel_ptr += s -> line_inc ;\n }\n }\n }\n return 0 ;\n }"}
{"idx": 441, "target": 0, "func": "static void _slurm_rpc_submit_batch_pack_job ( slurm_msg_t * msg ) {\n static int select_serial = - 1 ;\n static int active_rpc_cnt = 0 ;\n ListIterator iter ;\n int error_code = SLURM_SUCCESS , alloc_only = 0 ;\n DEF_TIMERS ;\n uint32_t pack_job_id = 0 , pack_job_offset = 0 ;\n struct job_record * job_ptr = NULL , * first_job_ptr = NULL ;\n slurm_msg_t response_msg ;\n submit_response_msg_t submit_msg ;\n job_desc_msg_t * job_desc_msg ;\n char * script = NULL ;\n slurmctld_lock_t job_read_lock = {\n READ_LOCK , READ_LOCK , READ_LOCK , READ_LOCK , NO_LOCK }\n ;\n slurmctld_lock_t job_write_lock = {\n READ_LOCK , WRITE_LOCK , WRITE_LOCK , READ_LOCK , NO_LOCK }\n ;\n List job_req_list = ( List ) msg -> data ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n gid_t gid = g_slurm_auth_get_gid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n uint32_t job_uid = NO_VAL ;\n char * err_msg = NULL , * job_submit_user_msg = NULL ;\n bool reject_job = false ;\n List submit_job_list = NULL ;\n hostset_t jobid_hostset = NULL ;\n char tmp_str [ 32 ] ;\n START_TIMER ;\n debug2 ( \"Processing RPC: REQUEST_SUBMIT_BATCH_PACK_JOB from uid=%d\" , uid ) ;\n if ( ! job_req_list || ( list_count ( job_req_list ) == 0 ) ) {\n info ( \"REQUEST_SUBMIT_BATCH_PACK_JOB from uid=%d with empty job list\" , uid ) ;\n error_code = SLURM_ERROR ;\n reject_job = true ;\n goto send_msg ;\n }\n if ( ! _sched_backfill ( ) ) {\n error_code = ESLURM_NOT_SUPPORTED ;\n reject_job = true ;\n goto send_msg ;\n }\n if ( select_serial == - 1 ) {\n if ( xstrcmp ( slurmctld_conf . select_type , \"select/serial\" ) ) select_serial = 0 ;\n else select_serial = 1 ;\n }\n if ( slurmctld_config . submissions_disabled || ( select_serial == 1 ) ) {\n info ( \"Submissions disabled on system\" ) ;\n error_code = ESLURM_SUBMISSIONS_DISABLED ;\n reject_job = true ;\n goto send_msg ;\n }\n if ( ! job_req_list || ( list_count ( job_req_list ) == 0 ) ) {\n info ( \"REQUEST_SUBMIT_BATCH_PACK_JOB from uid=%d with empty job list\" , uid ) ;\n error_code = SLURM_ERROR ;\n reject_job = true ;\n goto send_msg ;\n }\n lock_slurmctld ( job_read_lock ) ;\n iter = list_iterator_create ( job_req_list ) ;\n while ( ( job_desc_msg = ( job_desc_msg_t * ) list_next ( iter ) ) ) {\n if ( job_uid == NO_VAL ) job_uid = job_desc_msg -> user_id ;\n if ( ( error_code = _valid_id ( \"REQUEST_SUBMIT_BATCH_JOB\" , job_desc_msg , uid , gid ) ) ) {\n reject_job = true ;\n break ;\n }\n if ( ( job_desc_msg -> alloc_node == NULL ) || ( job_desc_msg -> alloc_node [ 0 ] == '\\0' ) ) {\n error ( \"REQUEST_SUBMIT_BATCH_PACK_JOB lacks alloc_node from uid=%d\" , uid ) ;\n error_code = ESLURM_INVALID_NODE_NAME ;\n break ;\n }\n dump_job_desc ( job_desc_msg ) ;\n job_desc_msg -> pack_job_offset = pack_job_offset ;\n error_code = validate_job_create_req ( job_desc_msg , uid , & err_msg ) ;\n if ( error_code != SLURM_SUCCESS ) {\n reject_job = true ;\n break ;\n }\n if ( err_msg ) {\n char * save_ptr = NULL , * tok ;\n tok = strtok_r ( err_msg , \"\\n\" , & save_ptr ) ;\n while ( tok ) {\n char * sep = \"\" ;\n if ( job_submit_user_msg ) sep = \"\\n\" ;\n xstrfmtcat ( job_submit_user_msg , \"%s%d: %s\" , sep , pack_job_offset , tok ) ;\n tok = strtok_r ( NULL , \"\\n\" , & save_ptr ) ;\n }\n xfree ( err_msg ) ;\n }\n pack_job_offset ++ ;\n }\n list_iterator_destroy ( iter ) ;\n unlock_slurmctld ( job_read_lock ) ;\n if ( error_code != SLURM_SUCCESS ) goto send_msg ;\n if ( err_msg ) job_submit_user_msg = xstrdup ( err_msg ) ;\n submit_job_list = list_create ( NULL ) ;\n pack_job_offset = 0 ;\n _throttle_start ( & active_rpc_cnt ) ;\n lock_slurmctld ( job_write_lock ) ;\n START_TIMER ;\n iter = list_iterator_create ( job_req_list ) ;\n while ( ( job_desc_msg = ( job_desc_msg_t * ) list_next ( iter ) ) ) {\n if ( ! script ) script = xstrdup ( job_desc_msg -> script ) ;\n if ( pack_job_offset && job_desc_msg -> script ) {\n info ( \"%s: Pack job %u offset %u has script, being ignored\" , __func__ , pack_job_id , pack_job_offset ) ;\n xfree ( job_desc_msg -> script ) ;\n }\n if ( pack_job_offset ) {\n job_desc_msg -> mail_type = 0 ;\n xfree ( job_desc_msg -> mail_user ) ;\n }\n if ( ! job_desc_msg -> burst_buffer ) {\n xfree ( job_desc_msg -> script ) ;\n job_desc_msg -> script = bb_g_build_pack_script ( script , pack_job_offset ) ;\n }\n job_desc_msg -> pack_job_offset = pack_job_offset ;\n error_code = job_allocate ( job_desc_msg , job_desc_msg -> immediate , false , NULL , alloc_only , uid , & job_ptr , & err_msg , msg -> protocol_version ) ;\n if ( ! job_ptr || ( error_code && job_ptr -> job_state == JOB_FAILED ) ) {\n reject_job = true ;\n }\n else {\n if ( pack_job_id == 0 ) {\n pack_job_id = job_ptr -> job_id ;\n first_job_ptr = job_ptr ;\n alloc_only = 1 ;\n }\n snprintf ( tmp_str , sizeof ( tmp_str ) , \"%u\" , job_ptr -> job_id ) ;\n if ( jobid_hostset ) hostset_insert ( jobid_hostset , tmp_str ) ;\n else jobid_hostset = hostset_create ( tmp_str ) ;\n job_ptr -> pack_job_id = pack_job_id ;\n job_ptr -> pack_job_offset = pack_job_offset ++ ;\n job_ptr -> batch_flag = 1 ;\n list_append ( submit_job_list , job_ptr ) ;\n }\n if ( job_desc_msg -> immediate && ( error_code != SLURM_SUCCESS ) ) {\n error_code = ESLURM_CAN_NOT_START_IMMEDIATELY ;\n reject_job = true ;\n }\n if ( reject_job ) break ;\n }\n list_iterator_destroy ( iter ) ;\n xfree ( script ) ;\n if ( ( pack_job_id == 0 ) && ! reject_job ) {\n info ( \"%s: No error, but no pack_job_id\" , __func__ ) ;\n error_code = SLURM_ERROR ;\n reject_job = true ;\n }\n if ( ! reject_job && ( accounting_enforce & ACCOUNTING_ENFORCE_LIMITS ) && ! acct_policy_validate_pack ( submit_job_list ) ) {\n info ( \"Pack job %u exceeded association/QOS limit for user %u\" , pack_job_id , job_uid ) ;\n error_code = ESLURM_ACCOUNTING_POLICY ;\n reject_job = true ;\n }\n if ( ! reject_job ) {\n int buf_size = pack_job_offset * 16 ;\n char * tmp_str = xmalloc ( buf_size ) ;\n char * tmp_offset = tmp_str ;\n first_job_ptr -> pack_job_list = submit_job_list ;\n hostset_ranged_string ( jobid_hostset , buf_size , tmp_str ) ;\n if ( tmp_str [ 0 ] == '[' ) {\n tmp_offset = strchr ( tmp_str , ']' ) ;\n if ( tmp_offset ) tmp_offset [ 0 ] = '\\0' ;\n tmp_offset = tmp_str + 1 ;\n }\n iter = list_iterator_create ( submit_job_list ) ;\n while ( ( job_ptr = ( struct job_record * ) list_next ( iter ) ) ) {\n job_ptr -> pack_job_id_set = xstrdup ( tmp_offset ) ;\n if ( slurmctld_conf . debug_flags & DEBUG_FLAG_HETERO_JOBS ) {\n char buf [ JBUFSIZ ] ;\n info ( \"Submit %s\" , jobid2fmt ( job_ptr , buf , sizeof ( buf ) ) ) ;\n }\n }\n list_iterator_destroy ( iter ) ;\n xfree ( tmp_str ) ;\n }\n unlock_slurmctld ( job_write_lock ) ;\n _throttle_fini ( & active_rpc_cnt ) ;\n send_msg : END_TIMER2 ( \"_slurm_rpc_submit_batch_pack_job\" ) ;\n if ( reject_job ) {\n info ( \"%s: %s\" , __func__ , slurm_strerror ( error_code ) ) ;\n if ( err_msg ) slurm_send_rc_err_msg ( msg , error_code , err_msg ) ;\n else slurm_send_rc_msg ( msg , error_code ) ;\n if ( submit_job_list ) {\n ( void ) list_for_each ( submit_job_list , _pack_job_cancel , NULL ) ;\n if ( first_job_ptr ) first_job_ptr -> pack_job_list = submit_job_list ;\n else FREE_NULL_LIST ( submit_job_list ) ;\n }\n }\n else {\n info ( \"%s: JobId=%u %s\" , __func__ , pack_job_id , TIME_STR ) ;\n submit_msg . job_id = pack_job_id ;\n submit_msg . step_id = SLURM_BATCH_SCRIPT ;\n submit_msg . error_code = error_code ;\n submit_msg . job_submit_user_msg = job_submit_user_msg ;\n slurm_msg_t_init ( & response_msg ) ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . conn = msg -> conn ;\n response_msg . msg_type = RESPONSE_SUBMIT_BATCH_JOB ;\n response_msg . data = & submit_msg ;\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n schedule_job_save ( ) ;\n }\n if ( jobid_hostset ) hostset_destroy ( jobid_hostset ) ;\n xfree ( err_msg ) ;\n xfree ( job_submit_user_msg ) ;\n }"}
{"idx": 442, "target": 0, "func": "static int msrle_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n MsrleContext * s = avctx -> priv_data ;\n int istride = FFALIGN ( avctx -> width * avctx -> bits_per_coded_sample , 32 ) / 8 ;\n int ret ;\n s -> buf = buf ;\n s -> size = buf_size ;\n if ( ( ret = ff_reget_buffer ( avctx , & s -> frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( avctx -> bits_per_coded_sample <= 8 ) {\n const uint8_t * pal = av_packet_get_side_data ( avpkt , AV_PKT_DATA_PALETTE , NULL ) ;\n if ( pal ) {\n s -> frame . palette_has_changed = 1 ;\n memcpy ( s -> pal , pal , AVPALETTE_SIZE ) ;\n }\n memcpy ( s -> frame . data [ 1 ] , s -> pal , AVPALETTE_SIZE ) ;\n }\n if ( avctx -> height * istride == avpkt -> size ) {\n int linesize = avctx -> width * avctx -> bits_per_coded_sample / 8 ;\n uint8_t * ptr = s -> frame . data [ 0 ] ;\n uint8_t * buf = avpkt -> data + ( avctx -> height - 1 ) * istride ;\n int i , j ;\n for ( i = 0 ;\n i < avctx -> height ;\n i ++ ) {\n if ( avctx -> bits_per_coded_sample == 4 ) {\n for ( j = 0 ;\n j < avctx -> width - 1 ;\n j += 2 ) {\n ptr [ j + 0 ] = buf [ j >> 1 ] >> 4 ;\n ptr [ j + 1 ] = buf [ j >> 1 ] & 0xF ;\n }\n if ( avctx -> width & 1 ) ptr [ j + 0 ] = buf [ j >> 1 ] >> 4 ;\n }\n else {\n memcpy ( ptr , buf , linesize ) ;\n }\n buf -= istride ;\n ptr += s -> frame . linesize [ 0 ] ;\n }\n }\n else {\n bytestream2_init ( & s -> gb , buf , buf_size ) ;\n ff_msrle_decode ( avctx , ( AVPicture * ) & s -> frame , avctx -> bits_per_coded_sample , & s -> gb ) ;\n }\n if ( ( ret = av_frame_ref ( data , & s -> frame ) ) < 0 ) return ret ;\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 443, "target": 1, "func": "static int combined_motion_search ( VP9_COMP * cpi , MACROBLOCK * x , BLOCK_SIZE bsize , int mi_row , int mi_col , int_mv * tmp_mv , int * rate_mv , int64_t best_rd_sofar ) {\n MACROBLOCKD * xd = & x -> e_mbd ;\n MB_MODE_INFO * mbmi = & xd -> mi [ 0 ] -> mbmi ;\n struct buf_2d backup_yv12 [ MAX_MB_PLANE ] = {\n {\n 0 , 0 }\n }\n ;\n const int step_param = cpi -> sf . mv . fullpel_search_step_param ;\n const int sadpb = x -> sadperbit16 ;\n MV mvp_full ;\n const int ref = mbmi -> ref_frame [ 0 ] ;\n const MV ref_mv = mbmi -> ref_mvs [ ref ] [ 0 ] . as_mv ;\n int dis ;\n int rate_mode ;\n const int tmp_col_min = x -> mv_col_min ;\n const int tmp_col_max = x -> mv_col_max ;\n const int tmp_row_min = x -> mv_row_min ;\n const int tmp_row_max = x -> mv_row_max ;\n int rv = 0 ;\n int sad_list [ 5 ] ;\n const YV12_BUFFER_CONFIG * scaled_ref_frame = vp9_get_scaled_ref_frame ( cpi , ref ) ;\n if ( cpi -> common . show_frame && ( x -> pred_mv_sad [ ref ] >> 3 ) > x -> pred_mv_sad [ LAST_FRAME ] ) return rv ;\n if ( scaled_ref_frame ) {\n int i ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n i ++ ) backup_yv12 [ i ] = xd -> plane [ i ] . pre [ 0 ] ;\n vp9_setup_pre_planes ( xd , 0 , scaled_ref_frame , mi_row , mi_col , NULL ) ;\n }\n vp9_set_mv_search_range ( x , & ref_mv ) ;\n assert ( x -> mv_best_ref_index [ ref ] <= 2 ) ;\n if ( x -> mv_best_ref_index [ ref ] < 2 ) mvp_full = mbmi -> ref_mvs [ ref ] [ x -> mv_best_ref_index [ ref ] ] . as_mv ;\n else mvp_full = x -> pred_mv [ ref ] ;\n mvp_full . col >>= 3 ;\n mvp_full . row >>= 3 ;\n vp9_full_pixel_search ( cpi , x , bsize , & mvp_full , step_param , sadpb , cond_sad_list ( cpi , sad_list ) , & ref_mv , & tmp_mv -> as_mv , INT_MAX , 0 ) ;\n x -> mv_col_min = tmp_col_min ;\n x -> mv_col_max = tmp_col_max ;\n x -> mv_row_min = tmp_row_min ;\n x -> mv_row_max = tmp_row_max ;\n mvp_full . row = tmp_mv -> as_mv . row * 8 ;\n mvp_full . col = tmp_mv -> as_mv . col * 8 ;\n * rate_mv = vp9_mv_bit_cost ( & mvp_full , & ref_mv , x -> nmvjointcost , x -> mvcost , MV_COST_WEIGHT ) ;\n rate_mode = cpi -> inter_mode_cost [ mbmi -> mode_context [ ref ] ] [ INTER_OFFSET ( NEWMV ) ] ;\n rv = ! ( RDCOST ( x -> rdmult , x -> rddiv , ( * rate_mv + rate_mode ) , 0 ) > best_rd_sofar ) ;\n if ( rv ) {\n cpi -> find_fractional_mv_step ( x , & tmp_mv -> as_mv , & ref_mv , cpi -> common . allow_high_precision_mv , x -> errorperbit , & cpi -> fn_ptr [ bsize ] , cpi -> sf . mv . subpel_force_stop , cpi -> sf . mv . subpel_iters_per_step , cond_sad_list ( cpi , sad_list ) , x -> nmvjointcost , x -> mvcost , & dis , & x -> pred_sse [ ref ] , NULL , 0 , 0 ) ;\n x -> pred_mv [ ref ] = tmp_mv -> as_mv ;\n }\n if ( scaled_ref_frame ) {\n int i ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n i ++ ) xd -> plane [ i ] . pre [ 0 ] = backup_yv12 [ i ] ;\n }\n return rv ;\n }"}
{"idx": 444, "target": 0, "func": "static char * get_actual_table_name ( const char * old_table_name , MEM_ROOT * root ) {\n char * name = 0 ;\n MYSQL_RES * table_res ;\n MYSQL_ROW row ;\n char query [ 50 + 2 * NAME_LEN ] ;\n char show_name_buff [ FN_REFLEN ] ;\n DBUG_ENTER ( \"get_actual_table_name\" ) ;\n DBUG_ASSERT ( 2 * sizeof ( old_table_name ) < sizeof ( show_name_buff ) ) ;\n my_snprintf ( query , sizeof ( query ) , \"SHOW TABLES LIKE %s\" , quote_for_like ( old_table_name , show_name_buff ) ) ;\n if ( mysql_query_with_error_report ( mysql , 0 , query ) ) return NullS ;\n if ( ( table_res = mysql_store_result ( mysql ) ) ) {\n my_ulonglong num_rows = mysql_num_rows ( table_res ) ;\n if ( num_rows > 0 ) {\n ulong * lengths ;\n row = mysql_fetch_row ( table_res ) ;\n lengths = mysql_fetch_lengths ( table_res ) ;\n name = strmake_root ( root , row [ 0 ] , lengths [ 0 ] ) ;\n }\n mysql_free_result ( table_res ) ;\n }\n DBUG_PRINT ( \"exit\" , ( \"new_table_name: %s\" , name ) ) ;\n DBUG_RETURN ( name ) ;\n }"}
{"idx": 445, "target": 0, "func": "static void pdf_run_K ( fz_context * ctx , pdf_processor * proc , float c , float m , float y , float k ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n float color [ 4 ] = {\n c , m , y , k }\n ;\n pr -> dev -> flags &= ~ FZ_DEVFLAG_STROKECOLOR_UNDEFINED ;\n pdf_set_colorspace ( ctx , pr , PDF_STROKE , fz_device_cmyk ( ctx ) ) ;\n pdf_set_color ( ctx , pr , PDF_STROKE , color ) ;\n }"}
{"idx": 446, "target": 0, "func": "static void spl_filesystem_tree_it_rewind ( zend_object_iterator * iter TSRMLS_DC ) {\n spl_filesystem_iterator * iterator = ( spl_filesystem_iterator * ) iter ;\n spl_filesystem_object * object = spl_filesystem_iterator_to_object ( iterator ) ;\n object -> u . dir . index = 0 ;\n if ( object -> u . dir . dirp ) {\n php_stream_rewinddir ( object -> u . dir . dirp ) ;\n }\n do {\n spl_filesystem_dir_read ( object TSRMLS_CC ) ;\n }\n while ( spl_filesystem_is_dot ( object -> u . dir . entry . d_name ) ) ;\n if ( iterator -> current ) {\n zval_ptr_dtor ( & iterator -> current ) ;\n iterator -> current = NULL ;\n }\n }"}
{"idx": 447, "target": 0, "func": "void PNGAPI png_set_bKGD ( png_structp png_ptr , png_infop info_ptr , png_color_16p background ) {\n png_debug1 ( 1 , \"in %s storage function\" , \"bKGD\" ) ;\n if ( png_ptr == NULL || info_ptr == NULL ) return ;\n png_memcpy ( & ( info_ptr -> background ) , background , png_sizeof ( png_color_16 ) ) ;\n info_ptr -> valid |= PNG_INFO_bKGD ;\n }"}
{"idx": 448, "target": 1, "func": "WRITE_CLASS_ENCODER ( CephXServiceTicket ) struct CephXServiceTicketInfo {\n AuthTicket ticket ;\n CryptoKey session_key ;\n void encode ( bufferlist & bl ) const {\n __u8 struct_v = 1 ;\n : : encode ( struct_v , bl ) ;\n : : encode ( ticket , bl ) ;\n : : encode ( session_key , bl ) ;\n }\n void decode ( bufferlist : : iterator & bl ) {\n __u8 struct_v ;\n : : decode ( struct_v , bl ) ;\n : : decode ( ticket , bl ) ;\n : : decode ( session_key , bl ) ;\n }\n }\n ;\n WRITE_CLASS_ENCODER ( CephXServiceTicketInfo ) struct CephXAuthorize {\n uint64_t nonce ;\n void encode ( bufferlist & bl ) const {\n __u8 struct_v = 1 ;\n : : encode ( struct_v , bl ) ;\n : : encode ( nonce , bl ) ;\n }\n void decode ( bufferlist : : iterator & bl ) {\n __u8 struct_v ;\n : : decode ( struct_v , bl ) ;\n : : decode ( nonce , bl ) ;\n }\n }"}
{"idx": 449, "target": 0, "func": "static VALUE cState_to_h ( VALUE self ) {\n VALUE result = rb_hash_new ( ) ;\n GET_STATE ( self ) ;\n set_state_ivars ( result , self ) ;\n rb_hash_aset ( result , ID2SYM ( i_indent ) , rb_str_new ( state -> indent , state -> indent_len ) ) ;\n rb_hash_aset ( result , ID2SYM ( i_space ) , rb_str_new ( state -> space , state -> space_len ) ) ;\n rb_hash_aset ( result , ID2SYM ( i_space_before ) , rb_str_new ( state -> space_before , state -> space_before_len ) ) ;\n rb_hash_aset ( result , ID2SYM ( i_object_nl ) , rb_str_new ( state -> object_nl , state -> object_nl_len ) ) ;\n rb_hash_aset ( result , ID2SYM ( i_array_nl ) , rb_str_new ( state -> array_nl , state -> array_nl_len ) ) ;\n rb_hash_aset ( result , ID2SYM ( i_allow_nan ) , state -> allow_nan ? Qtrue : Qfalse ) ;\n rb_hash_aset ( result , ID2SYM ( i_ascii_only ) , state -> ascii_only ? Qtrue : Qfalse ) ;\n rb_hash_aset ( result , ID2SYM ( i_max_nesting ) , LONG2FIX ( state -> max_nesting ) ) ;\n rb_hash_aset ( result , ID2SYM ( i_depth ) , LONG2FIX ( state -> depth ) ) ;\n rb_hash_aset ( result , ID2SYM ( i_buffer_initial_length ) , LONG2FIX ( state -> buffer_initial_length ) ) ;\n return result ;\n }"}
{"idx": 450, "target": 1, "func": "static void exsltNodeSetFunction ( xmlXPathParserContextPtr ctxt , int nargs ) {\n if ( nargs != 1 ) {\n xmlXPathSetArityError ( ctxt ) ;\n return ;\n }\n if ( xmlXPathStackIsNodeSet ( ctxt ) ) {\n xsltFunctionNodeSet ( ctxt , nargs ) ;\n return ;\n }\n else {\n xmlDocPtr fragment ;\n xsltTransformContextPtr tctxt = xsltXPathGetTransformContext ( ctxt ) ;\n xmlNodePtr txt ;\n xmlChar * strval ;\n xmlXPathObjectPtr obj ;\n fragment = xsltCreateRVT ( tctxt ) ;\n if ( fragment == NULL ) {\n xsltTransformError ( tctxt , NULL , tctxt -> inst , \"exsltNodeSetFunction: Failed to create a tree fragment.\\n\" ) ;\n tctxt -> state = XSLT_STATE_STOPPED ;\n return ;\n }\n xsltRegisterLocalRVT ( tctxt , fragment ) ;\n strval = xmlXPathPopString ( ctxt ) ;\n txt = xmlNewDocText ( fragment , strval ) ;\n xmlAddChild ( ( xmlNodePtr ) fragment , txt ) ;\n obj = xmlXPathNewNodeSet ( txt ) ;\n if ( obj == NULL ) {\n xsltTransformError ( tctxt , NULL , tctxt -> inst , \"exsltNodeSetFunction: Failed to create a node set object.\\n\" ) ;\n tctxt -> state = XSLT_STATE_STOPPED ;\n }\n else {\n xsltExtensionInstructionResultRegister ( tctxt , obj ) ;\n }\n if ( strval != NULL ) xmlFree ( strval ) ;\n valuePush ( ctxt , obj ) ;\n }\n }"}
{"idx": 451, "target": 0, "func": "X509_SIG * d2i_PKCS8_fp ( FILE * fp , X509_SIG * * p8 ) {\n return ASN1_d2i_fp_of ( X509_SIG , X509_SIG_new , d2i_X509_SIG , fp , p8 ) ;\n }"}
{"idx": 452, "target": 0, "func": "static void multiple_write_cb ( int fd , short event , void * arg ) {\n struct event * ev = arg ;\n int len ;\n len = 128 ;\n if ( woff + len >= sizeof ( wbuf ) ) len = sizeof ( wbuf ) - woff ;\n len = write ( fd , wbuf + woff , len ) ;\n if ( len == - 1 ) {\n fprintf ( stderr , \"%s: write\\n\" , __func__ ) ;\n if ( usepersist ) event_del ( ev ) ;\n return ;\n }\n woff += len ;\n if ( woff >= sizeof ( wbuf ) ) {\n shutdown ( fd , SHUT_WR ) ;\n if ( usepersist ) event_del ( ev ) ;\n return ;\n }\n if ( ! usepersist ) {\n if ( event_add ( ev , NULL ) == - 1 ) exit ( 1 ) ;\n }\n }"}
{"idx": 453, "target": 0, "func": "extern int slurm_drain_nodes ( char * node_list , char * reason , uint32_t reason_uid ) {\n int error_code ;\n DEF_TIMERS ;\n slurmctld_lock_t node_write_lock = {\n NO_LOCK , NO_LOCK , WRITE_LOCK , NO_LOCK , NO_LOCK }\n ;\n START_TIMER ;\n lock_slurmctld ( node_write_lock ) ;\n error_code = drain_nodes ( node_list , reason , reason_uid ) ;\n unlock_slurmctld ( node_write_lock ) ;\n END_TIMER2 ( \"slurm_drain_nodes\" ) ;\n return error_code ;\n }"}
{"idx": 454, "target": 0, "func": "static void doSleep ( int iSeconds , int iuSeconds ) {\n struct timeval tvSelectTimeout ;\n tvSelectTimeout . tv_sec = iSeconds ;\n tvSelectTimeout . tv_usec = iuSeconds ;\n select ( 0 , NULL , NULL , NULL , & tvSelectTimeout ) ;\n }"}
{"idx": 455, "target": 0, "func": "ExprState * ExecInitExpr ( Expr * node , PlanState * parent ) {\n ExprState * state ;\n if ( node == NULL ) return NULL ;\n check_stack_depth ( ) ;\n switch ( nodeTag ( node ) ) {\n case T_Var : if ( ( ( Var * ) node ) -> varattno == InvalidAttrNumber ) {\n WholeRowVarExprState * wstate = makeNode ( WholeRowVarExprState ) ;\n wstate -> parent = parent ;\n wstate -> wrv_tupdesc = NULL ;\n wstate -> wrv_junkFilter = NULL ;\n state = ( ExprState * ) wstate ;\n state -> evalfunc = ( ExprStateEvalFunc ) ExecEvalWholeRowVar ;\n }\n else {\n state = ( ExprState * ) makeNode ( ExprState ) ;\n state -> evalfunc = ExecEvalScalarVar ;\n }\n break ;\n case T_Const : state = ( ExprState * ) makeNode ( ExprState ) ;\n state -> evalfunc = ExecEvalConst ;\n break ;\n case T_Param : state = ( ExprState * ) makeNode ( ExprState ) ;\n switch ( ( ( Param * ) node ) -> paramkind ) {\n case PARAM_EXEC : state -> evalfunc = ExecEvalParamExec ;\n break ;\n case PARAM_EXTERN : state -> evalfunc = ExecEvalParamExtern ;\n break ;\n default : elog ( ERROR , \"unrecognized paramkind: %d\" , ( int ) ( ( Param * ) node ) -> paramkind ) ;\n break ;\n }\n break ;\n case T_CoerceToDomainValue : state = ( ExprState * ) makeNode ( ExprState ) ;\n state -> evalfunc = ExecEvalCoerceToDomainValue ;\n break ;\n case T_CaseTestExpr : state = ( ExprState * ) makeNode ( ExprState ) ;\n state -> evalfunc = ExecEvalCaseTestExpr ;\n break ;\n case T_Aggref : {\n AggrefExprState * astate = makeNode ( AggrefExprState ) ;\n astate -> xprstate . evalfunc = ( ExprStateEvalFunc ) ExecEvalAggref ;\n if ( parent && IsA ( parent , AggState ) ) {\n AggState * aggstate = ( AggState * ) parent ;\n aggstate -> aggs = lcons ( astate , aggstate -> aggs ) ;\n aggstate -> numaggs ++ ;\n }\n else {\n elog ( ERROR , \"Aggref found in non-Agg plan node\" ) ;\n }\n state = ( ExprState * ) astate ;\n }\n break ;\n case T_GroupingFunc : {\n GroupingFunc * grp_node = ( GroupingFunc * ) node ;\n GroupingFuncExprState * grp_state = makeNode ( GroupingFuncExprState ) ;\n Agg * agg = NULL ;\n if ( ! parent || ! IsA ( parent , AggState ) || ! IsA ( parent -> plan , Agg ) ) elog ( ERROR , \"parent of GROUPING is not Agg node\" ) ;\n grp_state -> aggstate = ( AggState * ) parent ;\n agg = ( Agg * ) ( parent -> plan ) ;\n if ( agg -> groupingSets ) grp_state -> clauses = grp_node -> cols ;\n else grp_state -> clauses = NIL ;\n state = ( ExprState * ) grp_state ;\n state -> evalfunc = ( ExprStateEvalFunc ) ExecEvalGroupingFuncExpr ;\n }\n break ;\n case T_WindowFunc : {\n WindowFunc * wfunc = ( WindowFunc * ) node ;\n WindowFuncExprState * wfstate = makeNode ( WindowFuncExprState ) ;\n wfstate -> xprstate . evalfunc = ( ExprStateEvalFunc ) ExecEvalWindowFunc ;\n if ( parent && IsA ( parent , WindowAggState ) ) {\n WindowAggState * winstate = ( WindowAggState * ) parent ;\n int nfuncs ;\n winstate -> funcs = lcons ( wfstate , winstate -> funcs ) ;\n nfuncs = ++ winstate -> numfuncs ;\n if ( wfunc -> winagg ) winstate -> numaggs ++ ;\n wfstate -> args = ( List * ) ExecInitExpr ( ( Expr * ) wfunc -> args , parent ) ;\n wfstate -> aggfilter = ExecInitExpr ( wfunc -> aggfilter , parent ) ;\n if ( nfuncs != winstate -> numfuncs ) ereport ( ERROR , ( errcode ( ERRCODE_WINDOWING_ERROR ) , errmsg ( \"window function calls cannot be nested\" ) ) ) ;\n }\n else {\n elog ( ERROR , \"WindowFunc found in non-WindowAgg plan node\" ) ;\n }\n state = ( ExprState * ) wfstate ;\n }\n break ;\n case T_ArrayRef : {\n ArrayRef * aref = ( ArrayRef * ) node ;\n ArrayRefExprState * astate = makeNode ( ArrayRefExprState ) ;\n astate -> xprstate . evalfunc = ( ExprStateEvalFunc ) ExecEvalArrayRef ;\n astate -> refupperindexpr = ( List * ) ExecInitExpr ( ( Expr * ) aref -> refupperindexpr , parent ) ;\n astate -> reflowerindexpr = ( List * ) ExecInitExpr ( ( Expr * ) aref -> reflowerindexpr , parent ) ;\n astate -> refexpr = ExecInitExpr ( aref -> refexpr , parent ) ;\n astate -> refassgnexpr = ExecInitExpr ( aref -> refassgnexpr , parent ) ;\n astate -> refattrlength = get_typlen ( aref -> refarraytype ) ;\n get_typlenbyvalalign ( aref -> refelemtype , & astate -> refelemlength , & astate -> refelembyval , & astate -> refelemalign ) ;\n state = ( ExprState * ) astate ;\n }\n break ;\n case T_FuncExpr : {\n FuncExpr * funcexpr = ( FuncExpr * ) node ;\n FuncExprState * fstate = makeNode ( FuncExprState ) ;\n fstate -> xprstate . evalfunc = ( ExprStateEvalFunc ) ExecEvalFunc ;\n fstate -> args = ( List * ) ExecInitExpr ( ( Expr * ) funcexpr -> args , parent ) ;\n fstate -> func . fn_oid = InvalidOid ;\n state = ( ExprState * ) fstate ;\n }\n break ;\n case T_OpExpr : {\n OpExpr * opexpr = ( OpExpr * ) node ;\n FuncExprState * fstate = makeNode ( FuncExprState ) ;\n fstate -> xprstate . evalfunc = ( ExprStateEvalFunc ) ExecEvalOper ;\n fstate -> args = ( List * ) ExecInitExpr ( ( Expr * ) opexpr -> args , parent ) ;\n fstate -> func . fn_oid = InvalidOid ;\n state = ( ExprState * ) fstate ;\n }\n break ;\n case T_DistinctExpr : {\n DistinctExpr * distinctexpr = ( DistinctExpr * ) node ;\n FuncExprState * fstate = makeNode ( FuncExprState ) ;\n fstate -> xprstate . evalfunc = ( ExprStateEvalFunc ) ExecEvalDistinct ;\n fstate -> args = ( List * ) ExecInitExpr ( ( Expr * ) distinctexpr -> args , parent ) ;\n fstate -> func . fn_oid = InvalidOid ;\n state = ( ExprState * ) fstate ;\n }\n break ;\n case T_NullIfExpr : {\n NullIfExpr * nullifexpr = ( NullIfExpr * ) node ;\n FuncExprState * fstate = makeNode ( FuncExprState ) ;\n fstate -> xprstate . evalfunc = ( ExprStateEvalFunc ) ExecEvalNullIf ;\n fstate -> args = ( List * ) ExecInitExpr ( ( Expr * ) nullifexpr -> args , parent ) ;\n fstate -> func . fn_oid = InvalidOid ;\n state = ( ExprState * ) fstate ;\n }\n break ;\n case T_ScalarArrayOpExpr : {\n ScalarArrayOpExpr * opexpr = ( ScalarArrayOpExpr * ) node ;\n ScalarArrayOpExprState * sstate = makeNode ( ScalarArrayOpExprState ) ;\n sstate -> fxprstate . xprstate . evalfunc = ( ExprStateEvalFunc ) ExecEvalScalarArrayOp ;\n sstate -> fxprstate . args = ( List * ) ExecInitExpr ( ( Expr * ) opexpr -> args , parent ) ;\n sstate -> fxprstate . func . fn_oid = InvalidOid ;\n sstate -> element_type = InvalidOid ;\n state = ( ExprState * ) sstate ;\n }\n break ;\n case T_BoolExpr : {\n BoolExpr * boolexpr = ( BoolExpr * ) node ;\n BoolExprState * bstate = makeNode ( BoolExprState ) ;\n switch ( boolexpr -> boolop ) {\n case AND_EXPR : bstate -> xprstate . evalfunc = ( ExprStateEvalFunc ) ExecEvalAnd ;\n break ;\n case OR_EXPR : bstate -> xprstate . evalfunc = ( ExprStateEvalFunc ) ExecEvalOr ;\n break ;\n case NOT_EXPR : bstate -> xprstate . evalfunc = ( ExprStateEvalFunc ) ExecEvalNot ;\n break ;\n default : elog ( ERROR , \"unrecognized boolop: %d\" , ( int ) boolexpr -> boolop ) ;\n break ;\n }\n bstate -> args = ( List * ) ExecInitExpr ( ( Expr * ) boolexpr -> args , parent ) ;\n state = ( ExprState * ) bstate ;\n }\n break ;\n case T_SubPlan : {\n SubPlan * subplan = ( SubPlan * ) node ;\n SubPlanState * sstate ;\n if ( ! parent ) elog ( ERROR , \"SubPlan found with no parent plan\" ) ;\n sstate = ExecInitSubPlan ( subplan , parent ) ;\n parent -> subPlan = lappend ( parent -> subPlan , sstate ) ;\n state = ( ExprState * ) sstate ;\n }\n break ;\n case T_AlternativeSubPlan : {\n AlternativeSubPlan * asplan = ( AlternativeSubPlan * ) node ;\n AlternativeSubPlanState * asstate ;\n if ( ! parent ) elog ( ERROR , \"AlternativeSubPlan found with no parent plan\" ) ;\n asstate = ExecInitAlternativeSubPlan ( asplan , parent ) ;\n state = ( ExprState * ) asstate ;\n }\n break ;\n case T_FieldSelect : {\n FieldSelect * fselect = ( FieldSelect * ) node ;\n FieldSelectState * fstate = makeNode ( FieldSelectState ) ;\n fstate -> xprstate . evalfunc = ( ExprStateEvalFunc ) ExecEvalFieldSelect ;\n fstate -> arg = ExecInitExpr ( fselect -> arg , parent ) ;\n fstate -> argdesc = NULL ;\n state = ( ExprState * ) fstate ;\n }\n break ;\n case T_FieldStore : {\n FieldStore * fstore = ( FieldStore * ) node ;\n FieldStoreState * fstate = makeNode ( FieldStoreState ) ;\n fstate -> xprstate . evalfunc = ( ExprStateEvalFunc ) ExecEvalFieldStore ;\n fstate -> arg = ExecInitExpr ( fstore -> arg , parent ) ;\n fstate -> newvals = ( List * ) ExecInitExpr ( ( Expr * ) fstore -> newvals , parent ) ;\n fstate -> argdesc = NULL ;\n state = ( ExprState * ) fstate ;\n }\n break ;\n case T_RelabelType : {\n RelabelType * relabel = ( RelabelType * ) node ;\n GenericExprState * gstate = makeNode ( GenericExprState ) ;\n gstate -> xprstate . evalfunc = ( ExprStateEvalFunc ) ExecEvalRelabelType ;\n gstate -> arg = ExecInitExpr ( relabel -> arg , parent ) ;\n state = ( ExprState * ) gstate ;\n }\n break ;\n case T_CoerceViaIO : {\n CoerceViaIO * iocoerce = ( CoerceViaIO * ) node ;\n CoerceViaIOState * iostate = makeNode ( CoerceViaIOState ) ;\n Oid iofunc ;\n bool typisvarlena ;\n iostate -> xprstate . evalfunc = ( ExprStateEvalFunc ) ExecEvalCoerceViaIO ;\n iostate -> arg = ExecInitExpr ( iocoerce -> arg , parent ) ;\n getTypeInputInfo ( iocoerce -> resulttype , & iofunc , & iostate -> intypioparam ) ;\n fmgr_info ( iofunc , & iostate -> infunc ) ;\n getTypeOutputInfo ( exprType ( ( Node * ) iocoerce -> arg ) , & iofunc , & typisvarlena ) ;\n fmgr_info ( iofunc , & iostate -> outfunc ) ;\n state = ( ExprState * ) iostate ;\n }\n break ;\n case T_ArrayCoerceExpr : {\n ArrayCoerceExpr * acoerce = ( ArrayCoerceExpr * ) node ;\n ArrayCoerceExprState * astate = makeNode ( ArrayCoerceExprState ) ;\n astate -> xprstate . evalfunc = ( ExprStateEvalFunc ) ExecEvalArrayCoerceExpr ;\n astate -> arg = ExecInitExpr ( acoerce -> arg , parent ) ;\n astate -> resultelemtype = get_element_type ( acoerce -> resulttype ) ;\n if ( astate -> resultelemtype == InvalidOid ) ereport ( ERROR , ( errcode ( ERRCODE_INVALID_PARAMETER_VALUE ) , errmsg ( \"target type is not an array\" ) ) ) ;\n Assert ( getBaseType ( astate -> resultelemtype ) == astate -> resultelemtype ) ;\n astate -> elemfunc . fn_oid = InvalidOid ;\n astate -> amstate = ( ArrayMapState * ) palloc0 ( sizeof ( ArrayMapState ) ) ;\n state = ( ExprState * ) astate ;\n }\n break ;\n case T_ConvertRowtypeExpr : {\n ConvertRowtypeExpr * convert = ( ConvertRowtypeExpr * ) node ;\n ConvertRowtypeExprState * cstate = makeNode ( ConvertRowtypeExprState ) ;\n cstate -> xprstate . evalfunc = ( ExprStateEvalFunc ) ExecEvalConvertRowtype ;\n cstate -> arg = ExecInitExpr ( convert -> arg , parent ) ;\n state = ( ExprState * ) cstate ;\n }\n break ;\n case T_CaseExpr : {\n CaseExpr * caseexpr = ( CaseExpr * ) node ;\n CaseExprState * cstate = makeNode ( CaseExprState ) ;\n List * outlist = NIL ;\n ListCell * l ;\n cstate -> xprstate . evalfunc = ( ExprStateEvalFunc ) ExecEvalCase ;\n cstate -> arg = ExecInitExpr ( caseexpr -> arg , parent ) ;\n foreach ( l , caseexpr -> args ) {\n CaseWhen * when = ( CaseWhen * ) lfirst ( l ) ;\n CaseWhenState * wstate = makeNode ( CaseWhenState ) ;\n Assert ( IsA ( when , CaseWhen ) ) ;\n wstate -> xprstate . evalfunc = NULL ;\n wstate -> xprstate . expr = ( Expr * ) when ;\n wstate -> expr = ExecInitExpr ( when -> expr , parent ) ;\n wstate -> result = ExecInitExpr ( when -> result , parent ) ;\n outlist = lappend ( outlist , wstate ) ;\n }\n cstate -> args = outlist ;\n cstate -> defresult = ExecInitExpr ( caseexpr -> defresult , parent ) ;\n state = ( ExprState * ) cstate ;\n }\n break ;\n case T_ArrayExpr : {\n ArrayExpr * arrayexpr = ( ArrayExpr * ) node ;\n ArrayExprState * astate = makeNode ( ArrayExprState ) ;\n List * outlist = NIL ;\n ListCell * l ;\n astate -> xprstate . evalfunc = ( ExprStateEvalFunc ) ExecEvalArray ;\n foreach ( l , arrayexpr -> elements ) {\n Expr * e = ( Expr * ) lfirst ( l ) ;\n ExprState * estate ;\n estate = ExecInitExpr ( e , parent ) ;\n outlist = lappend ( outlist , estate ) ;\n }\n astate -> elements = outlist ;\n get_typlenbyvalalign ( arrayexpr -> element_typeid , & astate -> elemlength , & astate -> elembyval , & astate -> elemalign ) ;\n state = ( ExprState * ) astate ;\n }\n break ;\n case T_RowExpr : {\n RowExpr * rowexpr = ( RowExpr * ) node ;\n RowExprState * rstate = makeNode ( RowExprState ) ;\n Form_pg_attribute * attrs ;\n List * outlist = NIL ;\n ListCell * l ;\n int i ;\n rstate -> xprstate . evalfunc = ( ExprStateEvalFunc ) ExecEvalRow ;\n if ( rowexpr -> row_typeid == RECORDOID ) {\n rstate -> tupdesc = ExecTypeFromExprList ( rowexpr -> args ) ;\n }\n else {\n rstate -> tupdesc = lookup_rowtype_tupdesc_copy ( rowexpr -> row_typeid , - 1 ) ;\n }\n ExecTypeSetColNames ( rstate -> tupdesc , rowexpr -> colnames ) ;\n BlessTupleDesc ( rstate -> tupdesc ) ;\n Assert ( list_length ( rowexpr -> args ) <= rstate -> tupdesc -> natts ) ;\n attrs = rstate -> tupdesc -> attrs ;\n i = 0 ;\n foreach ( l , rowexpr -> args ) {\n Expr * e = ( Expr * ) lfirst ( l ) ;\n ExprState * estate ;\n if ( ! attrs [ i ] -> attisdropped ) {\n if ( exprType ( ( Node * ) e ) != attrs [ i ] -> atttypid ) ereport ( ERROR , ( errcode ( ERRCODE_DATATYPE_MISMATCH ) , errmsg ( \"ROW() column has type %s instead of type %s\" , format_type_be ( exprType ( ( Node * ) e ) ) , format_type_be ( attrs [ i ] -> atttypid ) ) ) ) ;\n }\n else {\n e = ( Expr * ) makeNullConst ( INT4OID , - 1 , InvalidOid ) ;\n }\n estate = ExecInitExpr ( e , parent ) ;\n outlist = lappend ( outlist , estate ) ;\n i ++ ;\n }\n rstate -> args = outlist ;\n state = ( ExprState * ) rstate ;\n }\n break ;\n case T_RowCompareExpr : {\n RowCompareExpr * rcexpr = ( RowCompareExpr * ) node ;\n RowCompareExprState * rstate = makeNode ( RowCompareExprState ) ;\n int nopers = list_length ( rcexpr -> opnos ) ;\n List * outlist ;\n ListCell * l ;\n ListCell * l2 ;\n ListCell * l3 ;\n int i ;\n rstate -> xprstate . evalfunc = ( ExprStateEvalFunc ) ExecEvalRowCompare ;\n Assert ( list_length ( rcexpr -> largs ) == nopers ) ;\n outlist = NIL ;\n foreach ( l , rcexpr -> largs ) {\n Expr * e = ( Expr * ) lfirst ( l ) ;\n ExprState * estate ;\n estate = ExecInitExpr ( e , parent ) ;\n outlist = lappend ( outlist , estate ) ;\n }\n rstate -> largs = outlist ;\n Assert ( list_length ( rcexpr -> rargs ) == nopers ) ;\n outlist = NIL ;\n foreach ( l , rcexpr -> rargs ) {\n Expr * e = ( Expr * ) lfirst ( l ) ;\n ExprState * estate ;\n estate = ExecInitExpr ( e , parent ) ;\n outlist = lappend ( outlist , estate ) ;\n }\n rstate -> rargs = outlist ;\n Assert ( list_length ( rcexpr -> opfamilies ) == nopers ) ;\n rstate -> funcs = ( FmgrInfo * ) palloc ( nopers * sizeof ( FmgrInfo ) ) ;\n rstate -> collations = ( Oid * ) palloc ( nopers * sizeof ( Oid ) ) ;\n i = 0 ;\n forthree ( l , rcexpr -> opnos , l2 , rcexpr -> opfamilies , l3 , rcexpr -> inputcollids ) {\n Oid opno = lfirst_oid ( l ) ;\n Oid opfamily = lfirst_oid ( l2 ) ;\n Oid inputcollid = lfirst_oid ( l3 ) ;\n int strategy ;\n Oid lefttype ;\n Oid righttype ;\n Oid proc ;\n get_op_opfamily_properties ( opno , opfamily , false , & strategy , & lefttype , & righttype ) ;\n proc = get_opfamily_proc ( opfamily , lefttype , righttype , BTORDER_PROC ) ;\n fmgr_info ( proc , & ( rstate -> funcs [ i ] ) ) ;\n rstate -> collations [ i ] = inputcollid ;\n i ++ ;\n }\n state = ( ExprState * ) rstate ;\n }\n break ;\n case T_CoalesceExpr : {\n CoalesceExpr * coalesceexpr = ( CoalesceExpr * ) node ;\n CoalesceExprState * cstate = makeNode ( CoalesceExprState ) ;\n List * outlist = NIL ;\n ListCell * l ;\n cstate -> xprstate . evalfunc = ( ExprStateEvalFunc ) ExecEvalCoalesce ;\n foreach ( l , coalesceexpr -> args ) {\n Expr * e = ( Expr * ) lfirst ( l ) ;\n ExprState * estate ;\n estate = ExecInitExpr ( e , parent ) ;\n outlist = lappend ( outlist , estate ) ;\n }\n cstate -> args = outlist ;\n state = ( ExprState * ) cstate ;\n }\n break ;\n case T_MinMaxExpr : {\n MinMaxExpr * minmaxexpr = ( MinMaxExpr * ) node ;\n MinMaxExprState * mstate = makeNode ( MinMaxExprState ) ;\n List * outlist = NIL ;\n ListCell * l ;\n TypeCacheEntry * typentry ;\n mstate -> xprstate . evalfunc = ( ExprStateEvalFunc ) ExecEvalMinMax ;\n foreach ( l , minmaxexpr -> args ) {\n Expr * e = ( Expr * ) lfirst ( l ) ;\n ExprState * estate ;\n estate = ExecInitExpr ( e , parent ) ;\n outlist = lappend ( outlist , estate ) ;\n }\n mstate -> args = outlist ;\n typentry = lookup_type_cache ( minmaxexpr -> minmaxtype , TYPECACHE_CMP_PROC ) ;\n if ( ! OidIsValid ( typentry -> cmp_proc ) ) ereport ( ERROR , ( errcode ( ERRCODE_UNDEFINED_FUNCTION ) , errmsg ( \"could not identify a comparison function for type %s\" , format_type_be ( minmaxexpr -> minmaxtype ) ) ) ) ;\n fmgr_info ( typentry -> cmp_proc , & ( mstate -> cfunc ) ) ;\n state = ( ExprState * ) mstate ;\n }\n break ;\n case T_XmlExpr : {\n XmlExpr * xexpr = ( XmlExpr * ) node ;\n XmlExprState * xstate = makeNode ( XmlExprState ) ;\n List * outlist ;\n ListCell * arg ;\n xstate -> xprstate . evalfunc = ( ExprStateEvalFunc ) ExecEvalXml ;\n outlist = NIL ;\n foreach ( arg , xexpr -> named_args ) {\n Expr * e = ( Expr * ) lfirst ( arg ) ;\n ExprState * estate ;\n estate = ExecInitExpr ( e , parent ) ;\n outlist = lappend ( outlist , estate ) ;\n }\n xstate -> named_args = outlist ;\n outlist = NIL ;\n foreach ( arg , xexpr -> args ) {\n Expr * e = ( Expr * ) lfirst ( arg ) ;\n ExprState * estate ;\n estate = ExecInitExpr ( e , parent ) ;\n outlist = lappend ( outlist , estate ) ;\n }\n xstate -> args = outlist ;\n state = ( ExprState * ) xstate ;\n }\n break ;\n case T_NullTest : {\n NullTest * ntest = ( NullTest * ) node ;\n NullTestState * nstate = makeNode ( NullTestState ) ;\n nstate -> xprstate . evalfunc = ( ExprStateEvalFunc ) ExecEvalNullTest ;\n nstate -> arg = ExecInitExpr ( ntest -> arg , parent ) ;\n nstate -> argdesc = NULL ;\n state = ( ExprState * ) nstate ;\n }\n break ;\n case T_BooleanTest : {\n BooleanTest * btest = ( BooleanTest * ) node ;\n GenericExprState * gstate = makeNode ( GenericExprState ) ;\n gstate -> xprstate . evalfunc = ( ExprStateEvalFunc ) ExecEvalBooleanTest ;\n gstate -> arg = ExecInitExpr ( btest -> arg , parent ) ;\n state = ( ExprState * ) gstate ;\n }\n break ;\n case T_CoerceToDomain : {\n CoerceToDomain * ctest = ( CoerceToDomain * ) node ;\n CoerceToDomainState * cstate = makeNode ( CoerceToDomainState ) ;\n cstate -> xprstate . evalfunc = ( ExprStateEvalFunc ) ExecEvalCoerceToDomain ;\n cstate -> arg = ExecInitExpr ( ctest -> arg , parent ) ;\n cstate -> constraint_ref = ( DomainConstraintRef * ) palloc ( sizeof ( DomainConstraintRef ) ) ;\n InitDomainConstraintRef ( ctest -> resulttype , cstate -> constraint_ref , CurrentMemoryContext ) ;\n state = ( ExprState * ) cstate ;\n }\n break ;\n case T_CurrentOfExpr : state = ( ExprState * ) makeNode ( ExprState ) ;\n state -> evalfunc = ExecEvalCurrentOfExpr ;\n break ;\n case T_TargetEntry : {\n TargetEntry * tle = ( TargetEntry * ) node ;\n GenericExprState * gstate = makeNode ( GenericExprState ) ;\n gstate -> xprstate . evalfunc = NULL ;\n gstate -> arg = ExecInitExpr ( tle -> expr , parent ) ;\n state = ( ExprState * ) gstate ;\n }\n break ;\n case T_List : {\n List * outlist = NIL ;\n ListCell * l ;\n foreach ( l , ( List * ) node ) {\n outlist = lappend ( outlist , ExecInitExpr ( ( Expr * ) lfirst ( l ) , parent ) ) ;\n }\n return ( ExprState * ) outlist ;\n }\n default : elog ( ERROR , \"unrecognized node type: %d\" , ( int ) nodeTag ( node ) ) ;\n state = NULL ;\n break ;\n }\n state -> expr = node ;\n return state ;\n }"}
{"idx": 456, "target": 0, "func": "static size_t b_encoder ( char * str , const char * buf , size_t buflen , const char * tocode ) {\n char * s0 = str ;\n memcpy ( str , \"=?\" , 2 ) ;\n str += 2 ;\n memcpy ( str , tocode , strlen ( tocode ) ) ;\n str += strlen ( tocode ) ;\n memcpy ( str , \"?B?\" , 3 ) ;\n str += 3 ;\n while ( buflen ) {\n char encoded [ 11 ] ;\n size_t ret ;\n size_t in_len = MIN ( 3 , buflen ) ;\n ret = mutt_b64_encode ( encoded , buf , in_len , sizeof ( encoded ) ) ;\n for ( size_t i = 0 ;\n i < ret ;\n i ++ ) * str ++ = encoded [ i ] ;\n buflen -= in_len ;\n buf += in_len ;\n }\n memcpy ( str , \"?=\" , 2 ) ;\n str += 2 ;\n return ( str - s0 ) ;\n }"}
{"idx": 457, "target": 0, "func": "static int dissect_zbee_zcl_power_config ( tvbuff_t * tvb _U_ , packet_info * pinfo _U_ , proto_tree * tree _U_ , void * data _U_ ) {\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 458, "target": 0, "func": "static char * * decode_args ( char * args , int * nargs ) {\n char * p , * q , * arg ;\n int i = 0 ;\n char * * parsed ;\n * nargs = 0 ;\n if ( ( p = strrchr ( args , ')' ) ) != NULL ) * p = '\\0' ;\n for ( ;\n * args == ' ' ;\n args ++ ) ;\n for ( q = args + strlen ( args ) - 1 ;\n * q == ' ' ;\n q -- ) * q = '\\0' ;\n if ( ! strchr ( args , ',' ) && strlen ( args ) == 0 ) return NULL ;\n SAFE_CALLOC ( parsed , 1 , sizeof ( char * ) ) ;\n for ( p = strsep_quotes ( & args , ',' ) , i = 1 ;\n p != NULL ;\n p = strsep_quotes ( & args , ',' ) , i ++ ) {\n SAFE_REALLOC ( parsed , ( i + 1 ) * sizeof ( char * ) ) ;\n for ( arg = p ;\n * arg == ' ' ;\n arg ++ ) ;\n for ( q = arg + strlen ( arg ) - 1 ;\n * q == ' ' ;\n q -- ) * q = '\\0' ;\n if ( * arg == '\\\"' && arg [ strlen ( arg ) - 1 ] == '\\\"' ) {\n arg [ strlen ( arg ) - 1 ] = '\\0' ;\n arg ++ ;\n }\n parsed [ i - 1 ] = strdup ( arg ) ;\n ef_debug ( 5 , \"ARGUMENT: %s\\n\" , arg ) ;\n }\n * nargs = i - 1 ;\n return parsed ;\n }"}
{"idx": 459, "target": 0, "func": "static int rm_read_multi ( AVFormatContext * s , AVIOContext * pb , AVStream * st , char * mime ) {\n int number_of_streams = avio_rb16 ( pb ) ;\n int number_of_mdpr ;\n int i , ret ;\n unsigned size2 ;\n for ( i = 0 ;\n i < number_of_streams ;\n i ++ ) avio_rb16 ( pb ) ;\n number_of_mdpr = avio_rb16 ( pb ) ;\n if ( number_of_mdpr != 1 ) {\n avpriv_request_sample ( s , \"MLTI with multiple (%d) MDPR\" , number_of_mdpr ) ;\n }\n for ( i = 0 ;\n i < number_of_mdpr ;\n i ++ ) {\n AVStream * st2 ;\n if ( i > 0 ) {\n st2 = avformat_new_stream ( s , NULL ) ;\n if ( ! st2 ) {\n ret = AVERROR ( ENOMEM ) ;\n return ret ;\n }\n st2 -> id = st -> id + ( i << 16 ) ;\n st2 -> codecpar -> bit_rate = st -> codecpar -> bit_rate ;\n st2 -> start_time = st -> start_time ;\n st2 -> duration = st -> duration ;\n st2 -> codecpar -> codec_type = AVMEDIA_TYPE_DATA ;\n st2 -> priv_data = ff_rm_alloc_rmstream ( ) ;\n if ( ! st2 -> priv_data ) return AVERROR ( ENOMEM ) ;\n }\n else st2 = st ;\n size2 = avio_rb32 ( pb ) ;\n ret = ff_rm_read_mdpr_codecdata ( s , s -> pb , st2 , st2 -> priv_data , size2 , mime ) ;\n if ( ret < 0 ) return ret ;\n }\n return 0 ;\n }"}
{"idx": 460, "target": 0, "func": "static struct evhttp * http_setup ( short * pport , struct event_base * base ) {\n int i ;\n struct evhttp * myhttp ;\n short port = - 1 ;\n myhttp = evhttp_new ( base ) ;\n for ( i = 0 ;\n i < 50 ;\n ++ i ) {\n if ( evhttp_bind_socket ( myhttp , \"127.0.0.1\" , 8080 + i ) != - 1 ) {\n port = 8080 + i ;\n break ;\n }\n }\n if ( port == - 1 ) event_errx ( 1 , \"Could not start web server\" ) ;\n evhttp_set_cb ( myhttp , \"/test\" , http_basic_cb , NULL ) ;\n evhttp_set_cb ( myhttp , \"/chunked\" , http_chunked_cb , NULL ) ;\n evhttp_set_cb ( myhttp , \"/postit\" , http_post_cb , NULL ) ;\n evhttp_set_cb ( myhttp , \"/largedelay\" , http_large_delay_cb , NULL ) ;\n evhttp_set_cb ( myhttp , \"/badrequest\" , http_badreq_cb , NULL ) ;\n evhttp_set_cb ( myhttp , \"/\" , http_dispatcher_cb , NULL ) ;\n * pport = port ;\n return ( myhttp ) ;\n }"}
{"idx": 461, "target": 0, "func": "void bitmap_writer_show_progress ( int show ) {\n writer . show_progress = show ;\n }"}
{"idx": 462, "target": 0, "func": "int main ( int argc , char * * argv ) {\n struct event evfifo ;\n # ifdef WIN32 HANDLE socket ;\n socket = CreateFileA ( \"test.txt\" , GENERIC_READ , 0 , NULL , OPEN_EXISTING , FILE_ATTRIBUTE_NORMAL , NULL ) ;\n if ( socket == INVALID_HANDLE_VALUE ) return 1 ;\n # else struct stat st ;\n const char * fifo = \"event.fifo\" ;\n int socket ;\n if ( lstat ( fifo , & st ) == 0 ) {\n if ( ( st . st_mode & S_IFMT ) == S_IFREG ) {\n errno = EEXIST ;\n perror ( \"lstat\" ) ;\n exit ( 1 ) ;\n }\n }\n unlink ( fifo ) ;\n if ( mkfifo ( fifo , 0600 ) == - 1 ) {\n perror ( \"mkfifo\" ) ;\n exit ( 1 ) ;\n }\n # ifdef __linux socket = open ( fifo , O_RDWR | O_NONBLOCK , 0 ) ;\n # else socket = open ( fifo , O_RDONLY | O_NONBLOCK , 0 ) ;\n # endif if ( socket == - 1 ) {\n perror ( \"open\" ) ;\n exit ( 1 ) ;\n }\n fprintf ( stderr , \"Write data to %s\\n\" , fifo ) ;\n # endif event_init ( ) ;\n # ifdef WIN32 event_set ( & evfifo , ( int ) socket , EV_READ , fifo_read , & evfifo ) ;\n # else event_set ( & evfifo , socket , EV_READ , fifo_read , & evfifo ) ;\n # endif event_add ( & evfifo , NULL ) ;\n event_dispatch ( ) ;\n # ifdef WIN32 CloseHandle ( socket ) ;\n # endif return ( 0 ) ;\n }"}
{"idx": 463, "target": 0, "func": "int mime_hdr_length_get ( MIMEHdrImpl * mh ) {\n unsigned int length , index ;\n MIMEFieldBlockImpl * fblock ;\n MIMEField * field ;\n length = 2 ;\n for ( fblock = & ( mh -> m_first_fblock ) ;\n fblock != nullptr ;\n fblock = fblock -> m_next ) {\n for ( index = 0 ;\n index < fblock -> m_freetop ;\n index ++ ) {\n field = & ( fblock -> m_field_slots [ index ] ) ;\n if ( field -> is_live ( ) ) {\n length += mime_field_length_get ( field ) ;\n }\n }\n }\n return length ;\n }"}
{"idx": 464, "target": 0, "func": "static byte * i_alloc_bytes ( gs_memory_t * mem , uint size , client_name_t cname ) {\n gs_ref_memory_t * const imem = ( gs_ref_memory_t * ) mem ;\n obj_header_t * obj ;\n obj_header_t * * pfl ;\n # ifdef MEMENTO if ( Memento_failThisEvent ( ) ) return NULL ;\n # endif IF_FREELIST_ALLOC ( obj , imem , size , & st_bytes , pfl ) alloc_trace ( \":+bf\" , imem , cname , NULL , size , obj ) ;\n ELSEIF_BIG_FREELIST_ALLOC ( obj , imem , size , & st_bytes ) alloc_trace ( \":+bF\" , imem , cname , NULL , size , obj ) ;\n ELSEIF_LIFO_ALLOC ( obj , imem , size , & st_bytes ) alloc_trace ( \":+b \" , imem , cname , NULL , size , obj ) ;\n ELSE_ALLOC {\n obj = alloc_obj ( imem , size , & st_bytes , 0 , cname ) ;\n if ( obj == 0 ) return 0 ;\n alloc_trace ( \":+b.\" , imem , cname , NULL , size , obj ) ;\n }\n # if IGC_PTR_STABILITY_CHECK obj [ - 1 ] . d . o . space_id = imem -> space_id ;\n # endif return ( byte * ) obj ;\n }"}
{"idx": 465, "target": 0, "func": "static time_t my_timegm ( struct my_tm * tm ) {\n static const int month_days_cumulative [ 12 ] = {\n 0 , 31 , 59 , 90 , 120 , 151 , 181 , 212 , 243 , 273 , 304 , 334 }\n ;\n int month , year , leap_days ;\n if ( tm -> tm_year < 70 ) return - 1 ;\n year = tm -> tm_year + 1900 ;\n month = tm -> tm_mon ;\n if ( month < 0 ) {\n year += ( 11 - month ) / 12 ;\n month = 11 - ( 11 - month ) % 12 ;\n }\n else if ( month >= 12 ) {\n year -= month / 12 ;\n month = month % 12 ;\n }\n leap_days = year - ( tm -> tm_mon <= 1 ) ;\n leap_days = ( ( leap_days / 4 ) - ( leap_days / 100 ) + ( leap_days / 400 ) - ( 1969 / 4 ) + ( 1969 / 100 ) - ( 1969 / 400 ) ) ;\n return ( ( ( ( time_t ) ( year - 1970 ) * 365 + leap_days + month_days_cumulative [ month ] + tm -> tm_mday - 1 ) * 24 + tm -> tm_hour ) * 60 + tm -> tm_min ) * 60 + tm -> tm_sec ;\n }"}
{"idx": 466, "target": 0, "func": "static const char * cmd_hash_method_pm ( cmd_parms * cmd , void * _dcfg , const char * p1 , const char * p2 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n rule_exception * re = apr_pcalloc ( cmd -> pool , sizeof ( hash_method ) ) ;\n const char * _p2 = apr_pstrdup ( cmd -> pool , p2 ) ;\n ACMP * p = NULL ;\n const char * phrase = NULL ;\n const char * next = NULL ;\n if ( dcfg == NULL ) return NULL ;\n p = acmp_create ( 0 , cmd -> pool ) ;\n if ( p == NULL ) return NULL ;\n if ( phrase == NULL ) phrase = apr_pstrdup ( cmd -> pool , _p2 ) ;\n for ( ;\n ;\n ) {\n while ( ( apr_isspace ( * phrase ) != 0 ) && ( * phrase != '\\0' ) ) phrase ++ ;\n if ( * phrase == '\\0' ) break ;\n next = phrase ;\n while ( ( apr_isspace ( * next ) == 0 ) && ( * next != 0 ) ) next ++ ;\n acmp_add_pattern ( p , phrase , NULL , NULL , next - phrase ) ;\n phrase = next ;\n }\n acmp_prepare ( p ) ;\n if ( strcasecmp ( p1 , \"HashHref\" ) == 0 ) {\n re -> type = HASH_URL_HREF_HASH_PM ;\n re -> param = _p2 ;\n re -> param_data = ( void * ) p ;\n if ( re -> param_data == NULL ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid pattern: %s\" , p2 ) ;\n }\n dcfg -> crypto_hash_href_pm = 1 ;\n }\n else if ( strcasecmp ( p1 , \"HashFormAction\" ) == 0 ) {\n re -> type = HASH_URL_FACTION_HASH_PM ;\n re -> param = _p2 ;\n re -> param_data = ( void * ) p ;\n if ( re -> param_data == NULL ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid pattern: %s\" , p2 ) ;\n }\n dcfg -> crypto_hash_faction_pm = 1 ;\n }\n else if ( strcasecmp ( p1 , \"HashLocation\" ) == 0 ) {\n re -> type = HASH_URL_LOCATION_HASH_PM ;\n re -> param = _p2 ;\n re -> param_data = ( void * ) p ;\n if ( re -> param_data == NULL ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid pattern: %s\" , p2 ) ;\n }\n dcfg -> crypto_hash_location_pm = 1 ;\n }\n else if ( strcasecmp ( p1 , \"HashIframeSrc\" ) == 0 ) {\n re -> type = HASH_URL_IFRAMESRC_HASH_PM ;\n re -> param = _p2 ;\n re -> param_data = ( void * ) p ;\n if ( re -> param_data == NULL ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid pattern: %s\" , p2 ) ;\n }\n dcfg -> crypto_hash_iframesrc_pm = 1 ;\n }\n else if ( strcasecmp ( p1 , \"HashFrameSrc\" ) == 0 ) {\n re -> type = HASH_URL_FRAMESRC_HASH_PM ;\n re -> param = _p2 ;\n re -> param_data = ( void * ) p ;\n if ( re -> param_data == NULL ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid pattern: %s\" , p2 ) ;\n }\n dcfg -> crypto_hash_framesrc_pm = 1 ;\n }\n * ( hash_method * * ) apr_array_push ( dcfg -> hash_method ) = re ;\n return NULL ;\n }"}
{"idx": 467, "target": 0, "func": "int mbfl_filt_decode_htmlnumericentity_flush ( mbfl_convert_filter * filter ) {\n struct collector_htmlnumericentity_data * pc = ( struct collector_htmlnumericentity_data * ) filter ;\n int n , s , r , d ;\n if ( pc -> status ) {\n switch ( pc -> status ) {\n case 1 : ( * pc -> decoder -> filter_function ) ( 0x26 , pc -> decoder ) ;\n break ;\n case 2 : ( * pc -> decoder -> filter_function ) ( 0x26 , pc -> decoder ) ;\n ( * pc -> decoder -> filter_function ) ( 0x23 , pc -> decoder ) ;\n break ;\n case 3 : ( * pc -> decoder -> filter_function ) ( 0x26 , pc -> decoder ) ;\n ( * pc -> decoder -> filter_function ) ( 0x23 , pc -> decoder ) ;\n s = pc -> cache ;\n r = 1 ;\n n = pc -> digit ;\n while ( n > 0 ) {\n r *= 10 ;\n n -- ;\n }\n s %= r ;\n r /= 10 ;\n while ( r > 0 ) {\n d = s / r ;\n s %= r ;\n r /= 10 ;\n ( * pc -> decoder -> filter_function ) ( mbfl_hexchar_table [ d ] , pc -> decoder ) ;\n }\n break ;\n case 4 : ( * pc -> decoder -> filter_function ) ( 0x26 , pc -> decoder ) ;\n ( * pc -> decoder -> filter_function ) ( 0x23 , pc -> decoder ) ;\n ( * pc -> decoder -> filter_function ) ( 0x78 , pc -> decoder ) ;\n break ;\n case 5 : ( * pc -> decoder -> filter_function ) ( 0x26 , pc -> decoder ) ;\n ( * pc -> decoder -> filter_function ) ( 0x23 , pc -> decoder ) ;\n ( * pc -> decoder -> filter_function ) ( 0x78 , pc -> decoder ) ;\n s = pc -> cache ;\n r = 1 ;\n n = pc -> digit ;\n while ( n > 0 ) {\n r *= 16 ;\n n -- ;\n }\n s %= r ;\n r /= 16 ;\n while ( r > 0 ) {\n d = s / r ;\n s %= r ;\n r /= 16 ;\n ( * pc -> decoder -> filter_function ) ( mbfl_hexchar_table [ d ] , pc -> decoder ) ;\n }\n break ;\n default : break ;\n }\n }\n pc -> status = 0 ;\n pc -> cache = 0 ;\n pc -> digit = 0 ;\n return 0 ;\n }"}
{"idx": 468, "target": 0, "func": "static void redomaxp ( struct alltabs * at , enum fontformat format ) {\n at -> maxpf = tmpfile ( ) ;\n putlong ( at -> maxpf , at -> maxp . version ) ;\n putshort ( at -> maxpf , at -> maxp . numGlyphs ) ;\n if ( format != ff_otf && format != ff_otfcid ) {\n putshort ( at -> maxpf , at -> maxp . maxPoints ) ;\n putshort ( at -> maxpf , at -> maxp . maxContours ) ;\n putshort ( at -> maxpf , at -> maxp . maxCompositPts ) ;\n putshort ( at -> maxpf , at -> maxp . maxCompositCtrs ) ;\n putshort ( at -> maxpf , at -> maxp . maxZones ) ;\n putshort ( at -> maxpf , at -> maxp . maxTwilightPts ) ;\n putshort ( at -> maxpf , at -> maxp . maxStorage ) ;\n putshort ( at -> maxpf , at -> maxp . maxFDEFs ) ;\n putshort ( at -> maxpf , at -> maxp . maxIDEFs ) ;\n putshort ( at -> maxpf , at -> maxp . maxStack ) ;\n putshort ( at -> maxpf , at -> maxp . maxglyphInstr ) ;\n putshort ( at -> maxpf , at -> maxp . maxnumcomponents ) ;\n putshort ( at -> maxpf , at -> maxp . maxcomponentdepth ) ;\n }\n at -> maxplen = ftell ( at -> maxpf ) ;\n if ( ( at -> maxplen & 2 ) != 0 ) putshort ( at -> maxpf , 0 ) ;\n }"}
{"idx": 469, "target": 0, "func": "static void virtio_net_vhost_status ( VirtIONet * n , uint8_t status ) {\n if ( ! n -> nic -> nc . peer ) {\n return ;\n }\n if ( n -> nic -> nc . peer -> info -> type != NET_CLIENT_TYPE_TAP ) {\n return ;\n }\n if ( ! tap_get_vhost_net ( n -> nic -> nc . peer ) ) {\n return ;\n }\n if ( ! ! n -> vhost_started == virtio_net_started ( n , status ) && ! n -> nic -> nc . peer -> link_down ) {\n return ;\n }\n if ( ! n -> vhost_started ) {\n int r ;\n if ( ! vhost_net_query ( tap_get_vhost_net ( n -> nic -> nc . peer ) , & n -> vdev ) ) {\n return ;\n }\n r = vhost_net_start ( tap_get_vhost_net ( n -> nic -> nc . peer ) , & n -> vdev ) ;\n if ( r < 0 ) {\n error_report ( \"unable to start vhost net: %d: \" \"falling back on userspace virtio\" , - r ) ;\n }\n else {\n n -> vhost_started = 1 ;\n }\n }\n else {\n vhost_net_stop ( tap_get_vhost_net ( n -> nic -> nc . peer ) , & n -> vdev ) ;\n n -> vhost_started = 0 ;\n }\n }"}
{"idx": 470, "target": 0, "func": "static int ipv4_ping_group_range ( ctl_table * table , int write , void __user * buffer , size_t * lenp , loff_t * ppos ) {\n int ret ;\n gid_t range [ 2 ] ;\n ctl_table tmp = {\n . data = & range , . maxlen = sizeof ( range ) , . mode = table -> mode , . extra1 = & ip_ping_group_range_min , . extra2 = & ip_ping_group_range_max , }\n ;\n inet_get_ping_group_range_table ( table , range , range + 1 ) ;\n ret = proc_dointvec_minmax ( & tmp , write , buffer , lenp , ppos ) ;\n if ( write && ret == 0 ) set_ping_group_range ( table , range ) ;\n return ret ;\n }"}
{"idx": 471, "target": 0, "func": "static void openpic_cpu_write ( void * opaque , hwaddr addr , uint64_t val , unsigned len ) {\n openpic_cpu_write_internal ( opaque , addr , val , ( addr & 0x1f000 ) >> 12 ) ;\n }"}
{"idx": 472, "target": 0, "func": "void set_once_property ( enum_prop prop , my_bool val ) {\n property & pr = prop_list [ prop ] ;\n pr . set = 1 ;\n pr . old = * pr . var ;\n * pr . var = val ;\n var_set_int ( pr . env_name , ( val != pr . reverse ) ) ;\n once_property = TRUE ;\n }"}
{"idx": 473, "target": 0, "func": "static void override_features_hangul ( hb_ot_shape_planner_t * plan ) {\n plan -> map . add_feature ( HB_TAG ( 'c' , 'a' , 'l' , 't' ) , 0 , F_GLOBAL ) ;\n }"}
{"idx": 474, "target": 0, "func": "static void evtag_test ( void ) {\n fprintf ( stdout , \"Testing Tagging:\\n\" ) ;\n evtag_init ( ) ;\n evtag_int_test ( ) ;\n evtag_fuzz ( ) ;\n evtag_tag_encoding ( ) ;\n fprintf ( stdout , \"OK\\n\" ) ;\n }"}
{"idx": 475, "target": 0, "func": "static int dissect_h225_SEQUENCE_OF_ServiceControlSession ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_SEQUENCE_OF_ServiceControlSession , SEQUENCE_OF_ServiceControlSession_sequence_of ) ;\n return offset ;\n }"}
{"idx": 476, "target": 0, "func": "static void ac3_decode_transform_coeffs_ch ( AC3DecodeContext * s , int ch_index , mant_groups * m ) {\n int start_freq = s -> start_freq [ ch_index ] ;\n int end_freq = s -> end_freq [ ch_index ] ;\n uint8_t * baps = s -> bap [ ch_index ] ;\n int8_t * exps = s -> dexps [ ch_index ] ;\n int * coeffs = s -> fixed_coeffs [ ch_index ] ;\n int dither = ( ch_index == CPL_CH ) || s -> dither_flag [ ch_index ] ;\n GetBitContext * gbc = & s -> gbc ;\n int freq ;\n for ( freq = start_freq ;\n freq < end_freq ;\n freq ++ ) {\n int bap = baps [ freq ] ;\n int mantissa ;\n switch ( bap ) {\n case 0 : if ( dither ) mantissa = ( av_lfg_get ( & s -> dith_state ) / 362 ) - 5932275 ;\n else mantissa = 0 ;\n break ;\n case 1 : if ( m -> b1 ) {\n m -> b1 -- ;\n mantissa = m -> b1_mant [ m -> b1 ] ;\n }\n else {\n int bits = get_bits ( gbc , 5 ) ;\n mantissa = b1_mantissas [ bits ] [ 0 ] ;\n m -> b1_mant [ 1 ] = b1_mantissas [ bits ] [ 1 ] ;\n m -> b1_mant [ 0 ] = b1_mantissas [ bits ] [ 2 ] ;\n m -> b1 = 2 ;\n }\n break ;\n case 2 : if ( m -> b2 ) {\n m -> b2 -- ;\n mantissa = m -> b2_mant [ m -> b2 ] ;\n }\n else {\n int bits = get_bits ( gbc , 7 ) ;\n mantissa = b2_mantissas [ bits ] [ 0 ] ;\n m -> b2_mant [ 1 ] = b2_mantissas [ bits ] [ 1 ] ;\n m -> b2_mant [ 0 ] = b2_mantissas [ bits ] [ 2 ] ;\n m -> b2 = 2 ;\n }\n break ;\n case 3 : mantissa = b3_mantissas [ get_bits ( gbc , 3 ) ] ;\n break ;\n case 4 : if ( m -> b4 ) {\n m -> b4 = 0 ;\n mantissa = m -> b4_mant ;\n }\n else {\n int bits = get_bits ( gbc , 7 ) ;\n mantissa = b4_mantissas [ bits ] [ 0 ] ;\n m -> b4_mant = b4_mantissas [ bits ] [ 1 ] ;\n m -> b4 = 1 ;\n }\n break ;\n case 5 : mantissa = b5_mantissas [ get_bits ( gbc , 4 ) ] ;\n break ;\n default : mantissa = get_sbits ( gbc , quantization_tab [ bap ] ) ;\n mantissa <<= 24 - quantization_tab [ bap ] ;\n break ;\n }\n coeffs [ freq ] = mantissa >> exps [ freq ] ;\n }\n }"}
{"idx": 477, "target": 0, "func": "void mime_days_since_epoch_to_mdy ( unsigned int days_since_jan_1_1970 , int * m_return , int * d_return , int * y_return ) {\n ink_assert ( _days_to_mdy_fast_lookup_table != nullptr ) ;\n if ( ( days_since_jan_1_1970 >= _days_to_mdy_fast_lookup_table_first_day ) && ( days_since_jan_1_1970 <= _days_to_mdy_fast_lookup_table_last_day ) ) {\n int i = days_since_jan_1_1970 - _days_to_mdy_fast_lookup_table_first_day ;\n * m_return = _days_to_mdy_fast_lookup_table [ i ] . m ;\n * d_return = _days_to_mdy_fast_lookup_table [ i ] . d ;\n * y_return = _days_to_mdy_fast_lookup_table [ i ] . y ;\n return ;\n }\n mime_days_since_epoch_to_mdy_slowcase ( days_since_jan_1_1970 , m_return , d_return , y_return ) ;\n }"}
{"idx": 478, "target": 0, "func": "void hb_font_funcs_destroy ( hb_font_funcs_t * ffuncs ) {\n if ( ! hb_object_destroy ( ffuncs ) ) return ;\n # define HB_FONT_FUNC_IMPLEMENT ( name ) if ( ffuncs -> destroy . name ) ffuncs -> destroy . name ( ffuncs -> user_data . name ) ;\n HB_FONT_FUNCS_IMPLEMENT_CALLBACKS # undef HB_FONT_FUNC_IMPLEMENT free ( ffuncs ) ;\n }"}
{"idx": 479, "target": 0, "func": "static int main_waitpid_check ( pid_t pid ) {\n int status ;\n int ret = 0 ;\n if ( waitpid ( pid , & status , 0 ) < 0 ) {\n ret = get_errno ( ) ;\n XPR ( NT \"external compression [pid %d] wait: %s\\n\" , pid , xd3_mainerror ( ret ) ) ;\n }\n else if ( ! WIFEXITED ( status ) ) {\n if ( ! WIFSIGNALED ( status ) || WTERMSIG ( status ) != SIGPIPE ) {\n ret = ECHILD ;\n XPR ( NT \"external compression [pid %d] signal %d\\n\" , pid , WIFSIGNALED ( status ) ? WTERMSIG ( status ) : WSTOPSIG ( status ) ) ;\n }\n else if ( option_verbose ) {\n XPR ( NT \"external compression sigpipe\\n\" ) ;\n }\n }\n else if ( WEXITSTATUS ( status ) != 0 ) {\n ret = ECHILD ;\n if ( option_verbose > 1 ) {\n XPR ( NT \"external compression [pid %d] exit %d\\n\" , pid , WEXITSTATUS ( status ) ) ;\n }\n }\n return ret ;\n }"}
{"idx": 480, "target": 0, "func": "static size_t LMBCSConvertUni ( ulmbcs_byte_t * pLMBCS , UChar uniChar ) {\n uint8_t LowCh = ( uint8_t ) ( uniChar & 0x00FF ) ;\n uint8_t HighCh = ( uint8_t ) ( uniChar >> 8 ) ;\n * pLMBCS ++ = ULMBCS_GRP_UNICODE ;\n if ( LowCh == 0 ) {\n * pLMBCS ++ = ULMBCS_UNICOMPATZERO ;\n * pLMBCS ++ = HighCh ;\n }\n else {\n * pLMBCS ++ = HighCh ;\n * pLMBCS ++ = LowCh ;\n }\n return ULMBCS_UNICODE_SIZE ;\n }"}
{"idx": 481, "target": 0, "func": "static VALUE ossl_asn1_ ## klass ( int argc , VALUE * argv , VALUE self ) \\ {\n return rb_funcall3 ( cASN1 ## klass , rb_intern ( \"new\" ) , argc , argv ) ;\n }\n OSSL_ASN1_IMPL_FACTORY_METHOD ( Boolean ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Integer ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Enumerated ) OSSL_ASN1_IMPL_FACTORY_METHOD ( BitString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( OctetString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( UTF8String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( NumericString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( PrintableString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( T61String )"}
{"idx": 482, "target": 0, "func": "static void compress_task_done ( GObject * source_object , GAsyncResult * res , gpointer user_data ) {\n CompressJob * compress_job = user_data ;\n if ( compress_job -> done_callback ) {\n compress_job -> done_callback ( compress_job -> output_file , compress_job -> success , compress_job -> done_callback_data ) ;\n }\n g_object_unref ( compress_job -> output_file ) ;\n g_list_free_full ( compress_job -> source_files , g_object_unref ) ;\n finalize_common ( ( CommonJob * ) compress_job ) ;\n nautilus_file_changes_consume_changes ( TRUE ) ;\n }"}
{"idx": 483, "target": 0, "func": "extern int main ( int argc , char * argv [ ] ) {\n UBool verbose = TRUE ;\n char writeCode ;\n U_MAIN_INIT_ARGS ( argc , argv ) ;\n options [ kOptDestDir ] . value = \".\" ;\n argc = u_parseArgs ( argc , argv , UPRV_LENGTHOF ( options ) , options ) ;\n if ( argc < 0 ) {\n fprintf ( stderr , \"error in command line argument \\\"%s\\\"\\n\" , argv [ - argc ] ) ;\n }\n if ( argc < 0 || options [ kOptHelpH ] . doesOccur || options [ kOptHelpQuestionMark ] . doesOccur ) {\n fprintf ( stderr , \"usage: %s [-options] filename1 filename2 ...\\n\" \"\\tread each binary input file and \\n\" \"\\tcreate a .c file with a byte array that contains the input file's data\\n\" \"options:\\n\" \"\\t-h or -? or --help this usage text\\n\" \"\\t-d or --destdir destination directory, followed by the path\\n\" \"\\t-n or --name symbol prefix, followed by the prefix\\n\" \"\\t-e or --entrypoint entry point name, followed by the name (_dat will be appended)\\n\" \"\\t-r or --revision Specify a version\\n\" , argv [ 0 ] ) ;\n # ifdef CAN_GENERATE_OBJECTS fprintf ( stderr , \"\\t-o or --object write a .obj file instead of .c\\n\" \"\\t-m or --match-arch file.o match the architecture (CPU, 32/64 bits) of the specified .o\\n\" \"\\t ELF format defaults to i386. Windows defaults to the native platform.\\n\" ) ;\n # endif fprintf ( stderr , \"\\t-f or --filename Specify an alternate base filename. (default: symbolname_typ)\\n\" \"\\t-a or --assembly Create assembly file. (possible values are: \" ) ;\n printAssemblyHeadersToStdErr ( ) ;\n }\n else {\n const char * message , * filename ;\n if ( options [ kOptAssembly ] . doesOccur ) {\n message = \"generating assembly code for %s\\n\" ;\n writeCode = CALL_WRITEASSEMBLY ;\n if ( ! checkAssemblyHeaderName ( options [ kOptAssembly ] . value ) ) {\n fprintf ( stderr , \"Assembly type \\\"%s\\\" is unknown.\\n\" , options [ kOptAssembly ] . value ) ;\n return - 1 ;\n }\n }\n # ifdef CAN_GENERATE_OBJECTS else if ( options [ kOptObject ] . doesOccur ) {\n message = \"generating object code for %s\\n\" ;\n writeCode = CALL_WRITEOBJECT ;\n }\n # endif else {\n message = \"generating C code for %s\\n\" ;\n writeCode = CALL_WRITECCODE ;\n }\n while ( -- argc ) {\n filename = getLongPathname ( argv [ argc ] ) ;\n if ( verbose ) {\n fprintf ( stdout , message , filename ) ;\n }\n switch ( writeCode ) {\n case CALL_WRITECCODE : writeCCode ( filename , options [ kOptDestDir ] . value , options [ kOptName ] . doesOccur ? options [ kOptName ] . value : NULL , options [ kOptFilename ] . doesOccur ? options [ kOptFilename ] . value : NULL , NULL ) ;\n break ;\n case CALL_WRITEASSEMBLY : writeAssemblyCode ( filename , options [ kOptDestDir ] . value , options [ kOptEntryPoint ] . doesOccur ? options [ kOptEntryPoint ] . value : NULL , options [ kOptFilename ] . doesOccur ? options [ kOptFilename ] . value : NULL , NULL ) ;\n break ;\n # ifdef CAN_GENERATE_OBJECTS case CALL_WRITEOBJECT : writeObjectCode ( filename , options [ kOptDestDir ] . value , options [ kOptEntryPoint ] . doesOccur ? options [ kOptEntryPoint ] . value : NULL , options [ kOptMatchArch ] . doesOccur ? options [ kOptMatchArch ] . value : NULL , options [ kOptFilename ] . doesOccur ? options [ kOptFilename ] . value : NULL , NULL ) ;\n break ;\n # endif default : break ;\n }\n }\n }\n return 0 ;\n }"}
{"idx": 484, "target": 0, "func": "static int dissect_h245_T_numberOfRetransmissions ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_numberOfRetransmissions , T_numberOfRetransmissions_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 485, "target": 0, "func": "PHP_FUNCTION ( uwsgi_masterpid ) {\n if ( uwsgi . master_process ) {\n RETURN_LONG ( uwsgi . workers [ 0 ] . pid ) ;\n }\n RETURN_LONG ( 0 ) ;\n }"}
{"idx": 486, "target": 1, "func": "static int evport_dispatch ( struct event_base * base , void * arg , struct timeval * tv ) {\n int i , res ;\n struct evport_data * epdp = arg ;\n port_event_t pevtlist [ EVENTS_PER_GETN ] ;\n int nevents = 1 ;\n struct timespec ts ;\n struct timespec * ts_p = NULL ;\n if ( tv != NULL ) {\n ts . tv_sec = tv -> tv_sec ;\n ts . tv_nsec = tv -> tv_usec * 1000 ;\n ts_p = & ts ;\n }\n for ( i = 0 ;\n i < EVENTS_PER_GETN ;\n ++ i ) {\n struct fd_info * fdi = NULL ;\n if ( epdp -> ed_pending [ i ] != - 1 ) {\n fdi = & ( epdp -> ed_fds [ epdp -> ed_pending [ i ] ] ) ;\n }\n if ( fdi != NULL && FDI_HAS_EVENTS ( fdi ) ) {\n int fd = FDI_HAS_READ ( fdi ) ? fdi -> fdi_revt -> ev_fd : fdi -> fdi_wevt -> ev_fd ;\n reassociate ( epdp , fdi , fd ) ;\n epdp -> ed_pending [ i ] = - 1 ;\n }\n }\n if ( ( res = port_getn ( epdp -> ed_port , pevtlist , EVENTS_PER_GETN , ( unsigned int * ) & nevents , ts_p ) ) == - 1 ) {\n if ( errno == EINTR || errno == EAGAIN ) {\n evsignal_process ( base ) ;\n return ( 0 ) ;\n }\n else if ( errno == ETIME ) {\n if ( nevents == 0 ) return ( 0 ) ;\n }\n else {\n event_warn ( \"port_getn\" ) ;\n return ( - 1 ) ;\n }\n }\n else if ( base -> sig . evsignal_caught ) {\n evsignal_process ( base ) ;\n }\n event_debug ( ( \"%s: port_getn reports %d events\" , __func__ , nevents ) ) ;\n for ( i = 0 ;\n i < nevents ;\n ++ i ) {\n struct event * ev ;\n struct fd_info * fdi ;\n port_event_t * pevt = & pevtlist [ i ] ;\n int fd = ( int ) pevt -> portev_object ;\n check_evportop ( epdp ) ;\n check_event ( pevt ) ;\n epdp -> ed_pending [ i ] = fd ;\n res = 0 ;\n if ( pevt -> portev_events & POLLIN ) res |= EV_READ ;\n if ( pevt -> portev_events & POLLOUT ) res |= EV_WRITE ;\n assert ( epdp -> ed_nevents > fd ) ;\n fdi = & ( epdp -> ed_fds [ fd ] ) ;\n if ( ( res & EV_READ ) && ( ( ev = fdi -> fdi_revt ) != NULL ) ) {\n event_active ( ev , res , 1 ) ;\n }\n if ( ( res & EV_WRITE ) && ( ( ev = fdi -> fdi_wevt ) != NULL ) ) {\n event_active ( ev , res , 1 ) ;\n }\n }\n check_evportop ( epdp ) ;\n return ( 0 ) ;\n }"}
{"idx": 487, "target": 0, "func": "static void setup_masks_myanmar ( const hb_ot_shape_plan_t * plan HB_UNUSED , hb_buffer_t * buffer , hb_font_t * font HB_UNUSED ) {\n HB_BUFFER_ALLOCATE_VAR ( buffer , myanmar_category ) ;\n HB_BUFFER_ALLOCATE_VAR ( buffer , myanmar_position ) ;\n unsigned int count = buffer -> len ;\n hb_glyph_info_t * info = buffer -> info ;\n for ( unsigned int i = 0 ;\n i < count ;\n i ++ ) set_myanmar_properties ( info [ i ] ) ;\n }"}
{"idx": 488, "target": 0, "func": "void vp8_loopfilter_frame ( VP8_COMP * cpi , VP8_COMMON * cm ) {\n const FRAME_TYPE frame_type = cm -> frame_type ;\n if ( cm -> no_lpf ) {\n cm -> filter_level = 0 ;\n }\n else {\n struct vpx_usec_timer timer ;\n vp8_clear_system_state ( ) ;\n vpx_usec_timer_start ( & timer ) ;\n if ( cpi -> sf . auto_filter == 0 ) vp8cx_pick_filter_level_fast ( cpi -> Source , cpi ) ;\n else vp8cx_pick_filter_level ( cpi -> Source , cpi ) ;\n if ( cm -> filter_level > 0 ) {\n vp8cx_set_alt_lf_level ( cpi , cm -> filter_level ) ;\n }\n vpx_usec_timer_mark ( & timer ) ;\n cpi -> time_pick_lpf += vpx_usec_timer_elapsed ( & timer ) ;\n }\n # if CONFIG_MULTITHREAD if ( cpi -> b_multi_threaded ) sem_post ( & cpi -> h_event_end_lpf ) ;\n # endif if ( cm -> filter_level > 0 ) {\n vp8_loop_filter_frame ( cm , & cpi -> mb . e_mbd , frame_type ) ;\n }\n vp8_yv12_extend_frame_borders ( cm -> frame_to_show ) ;\n }"}
{"idx": 489, "target": 0, "func": "static int comp_interp_index ( G723_1_Context * p , int pitch_lag , int * exc_eng , int * scale ) {\n int offset = PITCH_MAX + 2 * SUBFRAME_LEN ;\n int16_t * buf = p -> audio + LPC_ORDER ;\n int index , ccr , tgt_eng , best_eng , temp ;\n * scale = scale_vector ( buf , p -> excitation , FRAME_LEN + PITCH_MAX ) ;\n buf += offset ;\n ccr = 0 ;\n index = autocorr_max ( buf , offset , & ccr , pitch_lag , SUBFRAME_LEN * 2 , - 1 ) ;\n ccr = av_sat_add32 ( ccr , 1 << 15 ) >> 16 ;\n tgt_eng = dot_product ( buf , buf , SUBFRAME_LEN * 2 ) ;\n * exc_eng = av_sat_add32 ( tgt_eng , 1 << 15 ) >> 16 ;\n if ( ccr <= 0 ) return 0 ;\n best_eng = dot_product ( buf - index , buf - index , SUBFRAME_LEN * 2 ) ;\n best_eng = av_sat_add32 ( best_eng , 1 << 15 ) >> 16 ;\n temp = best_eng * * exc_eng >> 3 ;\n if ( temp < ccr * ccr ) return index ;\n else return 0 ;\n }"}
{"idx": 490, "target": 0, "func": "static uint64_t xhci_doorbell_read ( void * ptr , hwaddr reg , unsigned size ) {\n trace_usb_xhci_doorbell_read ( reg , 0 ) ;\n return 0 ;\n }"}
{"idx": 491, "target": 1, "func": "static unsigned int get_joining_type ( hb_codepoint_t u , hb_unicode_general_category_t gen_cat ) {\n unsigned int j_type = joining_type ( u ) ;\n if ( likely ( j_type != JOINING_TYPE_X ) ) return j_type ;\n return ( FLAG ( gen_cat ) & ( FLAG ( HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK ) | FLAG ( HB_UNICODE_GENERAL_CATEGORY_ENCLOSING_MARK ) | FLAG ( HB_UNICODE_GENERAL_CATEGORY_FORMAT ) ) ) ? JOINING_TYPE_T : JOINING_TYPE_U ;\n }"}
{"idx": 492, "target": 0, "func": "static guint get_diameter_pdu_len ( packet_info * pinfo _U_ , tvbuff_t * tvb , int offset , void * data _U_ ) {\n return tvb_get_ntoh24 ( tvb , offset + 1 ) ;\n }"}
{"idx": 493, "target": 0, "func": "static fz_iccprofile * fz_icc_from_cal ( fz_context * ctx , const fz_colorspace * cs ) {\n fz_cal_colorspace * cal_data = cs -> data ;\n fz_iccprofile * profile ;\n if ( cal_data -> profile != NULL ) return cal_data -> profile ;\n profile = fz_malloc_struct ( ctx , fz_iccprofile ) ;\n fz_try ( ctx ) {\n profile -> buffer = fz_new_icc_data_from_cal_colorspace ( ctx , cal_data ) ;\n fz_md5_icc ( ctx , profile ) ;\n cal_data -> profile = profile ;\n }\n fz_catch ( ctx ) {\n fz_free ( ctx , profile ) ;\n fz_rethrow ( ctx ) ;\n }\n return profile ;\n }"}
{"idx": 494, "target": 0, "func": "static void spl_ptr_llist_push ( spl_ptr_llist * llist , void * data TSRMLS_DC ) {\n spl_ptr_llist_element * elem = emalloc ( sizeof ( spl_ptr_llist_element ) ) ;\n elem -> data = data ;\n elem -> rc = 1 ;\n elem -> prev = llist -> tail ;\n elem -> next = NULL ;\n if ( llist -> tail ) {\n llist -> tail -> next = elem ;\n }\n else {\n llist -> head = elem ;\n }\n llist -> tail = elem ;\n llist -> count ++ ;\n if ( llist -> ctor ) {\n llist -> ctor ( elem TSRMLS_CC ) ;\n }\n }"}
{"idx": 495, "target": 0, "func": "static void fill_label_bitfield64 ( field_info * fi , gchar * label_str , gboolean is_signed ) {\n char * p ;\n int bitfield_byte_length , bitwidth ;\n guint64 unshifted_value ;\n guint64 value ;\n char buf [ 48 ] ;\n const char * out ;\n header_field_info * hfinfo = fi -> hfinfo ;\n bitwidth = hfinfo_container_bitwidth ( hfinfo ) ;\n if ( is_signed ) value = fvalue_get_sinteger64 ( & fi -> value ) ;\n else value = fvalue_get_uinteger64 ( & fi -> value ) ;\n unshifted_value = value ;\n if ( hfinfo -> bitmask ) {\n unshifted_value <<= hfinfo_bitshift ( hfinfo ) ;\n }\n p = decode_bitfield_value ( label_str , unshifted_value , hfinfo -> bitmask , bitwidth ) ;\n bitfield_byte_length = ( int ) ( p - label_str ) ;\n if ( hfinfo -> display == BASE_CUSTOM ) {\n gchar tmp [ ITEM_LABEL_LENGTH ] ;\n const custom_fmt_func_64_t fmtfunc64 = ( const custom_fmt_func_64_t ) hfinfo -> strings ;\n DISSECTOR_ASSERT ( fmtfunc64 ) ;\n fmtfunc64 ( tmp , value ) ;\n label_fill ( label_str , bitfield_byte_length , hfinfo , tmp ) ;\n }\n else if ( hfinfo -> strings ) {\n const char * val_str = hf_try_val64_to_str_const ( value , hfinfo , \"Unknown\" ) ;\n out = hfinfo_number_vals_format64 ( hfinfo , buf , value ) ;\n if ( out == NULL ) label_fill ( label_str , bitfield_byte_length , hfinfo , val_str ) ;\n else label_fill_descr ( label_str , bitfield_byte_length , hfinfo , val_str , out ) ;\n }\n else {\n out = hfinfo_number_value_format64 ( hfinfo , buf , value ) ;\n label_fill ( label_str , bitfield_byte_length , hfinfo , out ) ;\n }\n }"}
{"idx": 496, "target": 0, "func": "static gint dissect_amf0_property_list ( tvbuff_t * tvb , gint offset , proto_tree * tree , guint * countp , gboolean * amf3_encoding ) {\n proto_item * prop_ti ;\n proto_tree * prop_tree ;\n proto_tree * name_tree ;\n guint iStringLength ;\n gchar * iStringValue ;\n guint count = 0 ;\n for ( ;\n ;\n ) {\n iStringLength = tvb_get_ntohs ( tvb , offset ) ;\n if ( iStringLength == 0 && tvb_get_guint8 ( tvb , offset + 2 ) == AMF0_END_OF_OBJECT ) break ;\n count ++ ;\n iStringValue = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset + 2 , iStringLength , ENC_ASCII ) ;\n prop_tree = proto_tree_add_subtree_format ( tree , tvb , offset , - 1 , ett_amf_property , & prop_ti , \"Property '%s'\" , iStringValue ) ;\n name_tree = proto_tree_add_subtree_format ( prop_tree , tvb , offset , 2 + iStringLength , ett_amf_string , NULL , \"Name: %s\" , iStringValue ) ;\n proto_tree_add_uint ( name_tree , hf_amf_stringlength , tvb , offset , 2 , iStringLength ) ;\n offset += 2 ;\n proto_tree_add_item ( name_tree , hf_amf_string , tvb , offset , iStringLength , ENC_UTF_8 | ENC_NA ) ;\n offset += iStringLength ;\n offset = dissect_amf0_value_type ( tvb , offset , prop_tree , amf3_encoding , prop_ti ) ;\n proto_item_set_end ( prop_ti , tvb , offset ) ;\n }\n proto_tree_add_item ( tree , hf_amf_end_of_object_marker , tvb , offset , 3 , ENC_NA ) ;\n offset += 3 ;\n * countp = count ;\n return offset ;\n }"}
{"idx": 497, "target": 0, "func": "static int MGCPcalls_packet ( void * ptr _U_ , packet_info * pinfo , epan_dissect_t * edt _U_ , const void * MGCPinfo ) {\n voip_calls_tapinfo_t * tapinfo = & the_tapinfo_struct ;\n voip_calls_info_t * tmp_listinfo ;\n voip_calls_info_t * callsinfo = NULL ;\n mgcp_calls_info_t * tmp_mgcpinfo = NULL ;\n GList * list ;\n GList * listGraph ;\n gchar * frame_label = NULL ;\n gchar * comment = NULL ;\n seq_analysis_item_t * gai ;\n gboolean newcall = FALSE ;\n gboolean fromEndpoint = FALSE ;\n gdouble diff_time ;\n const mgcp_info_t * pi = ( const mgcp_info_t * ) MGCPinfo ;\n if ( ( pi -> mgcp_type == MGCP_REQUEST ) && ! pi -> is_duplicate ) {\n list = g_list_first ( tapinfo -> callsinfo_list ) ;\n while ( list ) {\n tmp_listinfo = ( voip_calls_info_t * ) list -> data ;\n if ( ( tmp_listinfo -> protocol == VOIP_MGCP ) && ( tmp_listinfo -> call_active_state == VOIP_ACTIVE ) ) {\n tmp_mgcpinfo = ( mgcp_calls_info_t * ) tmp_listinfo -> prot_info ;\n if ( pi -> endpointId != NULL ) {\n if ( g_ascii_strcasecmp ( tmp_mgcpinfo -> endpointId , pi -> endpointId ) == 0 ) {\n diff_time = nstime_to_sec ( & pinfo -> rel_ts ) - nstime_to_sec ( & tmp_listinfo -> stop_rel_ts ) ;\n if ( ( ( tmp_listinfo -> call_state == VOIP_CANCELLED ) || ( tmp_listinfo -> call_state == VOIP_COMPLETED ) || ( tmp_listinfo -> call_state == VOIP_REJECTED ) ) && ( diff_time > 2 ) ) {\n tmp_listinfo -> call_active_state = VOIP_INACTIVE ;\n }\n else {\n callsinfo = ( voip_calls_info_t * ) ( list -> data ) ;\n break ;\n }\n }\n }\n }\n list = g_list_next ( list ) ;\n }\n if ( callsinfo == NULL ) {\n if ( ( strcmp ( pi -> code , \"NTFY\" ) == 0 ) && isSignal ( \"hd\" , pi -> observedEvents ) ) {\n fromEndpoint = TRUE ;\n newcall = TRUE ;\n }\n else if ( strcmp ( pi -> code , \"CRCX\" ) == 0 ) {\n fromEndpoint = FALSE ;\n newcall = TRUE ;\n }\n if ( ! newcall ) return 0 ;\n }\n }\n else if ( ( ( pi -> mgcp_type == MGCP_RESPONSE ) && pi -> request_available ) || ( ( pi -> mgcp_type == MGCP_REQUEST ) && pi -> is_duplicate ) ) {\n listGraph = g_list_first ( tapinfo -> graph_analysis -> list ) ;\n while ( listGraph ) {\n gai = ( seq_analysis_item_t * ) listGraph -> data ;\n if ( gai -> fd -> num == pi -> req_num ) {\n list = g_list_first ( tapinfo -> callsinfo_list ) ;\n while ( list ) {\n tmp_listinfo = ( voip_calls_info_t * ) list -> data ;\n if ( tmp_listinfo -> protocol == VOIP_MGCP ) {\n if ( tmp_listinfo -> call_num == gai -> conv_num ) {\n tmp_mgcpinfo = ( mgcp_calls_info_t * ) tmp_listinfo -> prot_info ;\n callsinfo = ( voip_calls_info_t * ) ( list -> data ) ;\n break ;\n }\n }\n list = g_list_next ( list ) ;\n }\n if ( callsinfo != NULL ) break ;\n }\n listGraph = g_list_next ( listGraph ) ;\n }\n if ( callsinfo == NULL ) return 0 ;\n }\n else return 0 ;\n if ( callsinfo == NULL ) {\n callsinfo = ( voip_calls_info_t * ) g_malloc0 ( sizeof ( voip_calls_info_t ) ) ;\n callsinfo -> call_active_state = VOIP_ACTIVE ;\n callsinfo -> call_state = VOIP_CALL_SETUP ;\n if ( fromEndpoint ) {\n callsinfo -> from_identity = g_strdup ( pi -> endpointId ) ;\n callsinfo -> to_identity = g_strdup ( \"\" ) ;\n }\n else {\n callsinfo -> from_identity = g_strdup ( \"\" ) ;\n callsinfo -> to_identity = g_strdup ( pi -> endpointId ) ;\n }\n COPY_ADDRESS ( & ( callsinfo -> initial_speaker ) , & ( pinfo -> src ) ) ;\n callsinfo -> selected = FALSE ;\n callsinfo -> start_fd = pinfo -> fd ;\n callsinfo -> start_rel_ts = pinfo -> rel_ts ;\n callsinfo -> protocol = VOIP_MGCP ;\n callsinfo -> prot_info = g_malloc ( sizeof ( mgcp_calls_info_t ) ) ;\n callsinfo -> free_prot_info = g_free ;\n tmp_mgcpinfo = ( mgcp_calls_info_t * ) callsinfo -> prot_info ;\n tmp_mgcpinfo -> endpointId = g_strdup ( pi -> endpointId ) ;\n tmp_mgcpinfo -> fromEndpoint = fromEndpoint ;\n callsinfo -> npackets = 0 ;\n callsinfo -> call_num = tapinfo -> ncalls ++ ;\n tapinfo -> callsinfo_list = g_list_prepend ( tapinfo -> callsinfo_list , callsinfo ) ;\n }\n g_assert ( tmp_mgcpinfo != NULL ) ;\n switch ( pi -> mgcp_type ) {\n case MGCP_REQUEST : if ( ( strcmp ( pi -> code , \"NTFY\" ) == 0 ) && ( pi -> observedEvents != NULL ) ) {\n frame_label = g_strdup_printf ( \"%s ObsEvt:%s\" , pi -> code , pi -> observedEvents ) ;\n if ( tmp_mgcpinfo -> fromEndpoint ) {\n if ( callsinfo -> to_identity [ 0 ] == '\\0' ) mgcpDialedDigits ( pi -> observedEvents , & ( callsinfo -> to_identity ) ) ;\n }\n else if ( isSignal ( \"hd\" , pi -> observedEvents ) ) callsinfo -> call_state = VOIP_IN_CALL ;\n if ( isSignal ( \"hu\" , pi -> observedEvents ) ) {\n if ( ( callsinfo -> call_state == VOIP_CALL_SETUP ) || ( callsinfo -> call_state == VOIP_RINGING ) ) {\n callsinfo -> call_state = VOIP_CANCELLED ;\n }\n else {\n callsinfo -> call_state = VOIP_COMPLETED ;\n }\n }\n }\n else if ( strcmp ( pi -> code , \"RQNT\" ) == 0 ) {\n if ( tmp_mgcpinfo -> fromEndpoint && isSignal ( \"\" , pi -> signalReq ) && ( callsinfo -> call_state == VOIP_RINGING ) ) {\n callsinfo -> call_state = VOIP_IN_CALL ;\n }\n if ( isSignal ( \"rg\" , pi -> signalReq ) || isSignal ( \"rt\" , pi -> signalReq ) ) {\n callsinfo -> call_state = VOIP_RINGING ;\n }\n if ( ( isSignal ( \"ro\" , pi -> signalReq ) || isSignal ( \"bz\" , pi -> signalReq ) ) && ( ( callsinfo -> call_state == VOIP_CALL_SETUP ) || ( callsinfo -> call_state == VOIP_RINGING ) ) ) {\n callsinfo -> call_state = VOIP_REJECTED ;\n }\n if ( pi -> signalReq != NULL ) frame_label = g_strdup_printf ( \"%s%sSigReq:%s\" , pi -> code , ( pi -> hasDigitMap == TRUE ) ? \" DigitMap \" : \"\" , pi -> signalReq ) ;\n else frame_label = g_strdup_printf ( \"%s%s\" , pi -> code , ( pi -> hasDigitMap == TRUE ) ? \" DigitMap \" : \"\" ) ;\n if ( ! tmp_mgcpinfo -> fromEndpoint ) mgcpCallerID ( pi -> signalReq , & ( callsinfo -> from_identity ) ) ;\n }\n else if ( strcmp ( pi -> code , \"DLCX\" ) == 0 ) {\n if ( ! tmp_mgcpinfo -> fromEndpoint ) {\n if ( ( callsinfo -> call_state == VOIP_CALL_SETUP ) || ( callsinfo -> call_state == VOIP_RINGING ) ) {\n callsinfo -> call_state = VOIP_CANCELLED ;\n }\n }\n }\n if ( frame_label == NULL ) frame_label = g_strdup ( pi -> code ) ;\n break ;\n case MGCP_RESPONSE : frame_label = g_strdup_printf ( \"%u (%s)\" , pi -> rspcode , pi -> code ) ;\n break ;\n case MGCP_OTHERS : break ;\n }\n comment = g_strdup_printf ( \"MGCP %s %s%s\" , tmp_mgcpinfo -> endpointId , ( pi -> mgcp_type == MGCP_REQUEST ) ? \"Request\" : \"Response\" , pi -> is_duplicate ? \" Duplicate\" : \"\" ) ;\n callsinfo -> stop_fd = pinfo -> fd ;\n callsinfo -> stop_rel_ts = pinfo -> rel_ts ;\n ++ ( callsinfo -> npackets ) ;\n ++ ( tapinfo -> npackets ) ;\n add_to_graph ( tapinfo , pinfo , frame_label , comment , callsinfo -> call_num , & ( pinfo -> src ) , & ( pinfo -> dst ) , 1 ) ;\n g_free ( comment ) ;\n g_free ( frame_label ) ;\n if ( ( sdp_summary != NULL ) && ( sdp_frame_num == pinfo -> fd -> num ) ) {\n append_to_frame_graph ( tapinfo , pinfo -> fd -> num , sdp_summary , NULL ) ;\n g_free ( sdp_summary ) ;\n sdp_summary = NULL ;\n }\n tapinfo -> redraw = TRUE ;\n return 1 ;\n }"}
{"idx": 498, "target": 0, "func": "static guint get_dns_pdu_len ( packet_info * pinfo _U_ , tvbuff_t * tvb , int offset , void * data _U_ ) {\n guint16 plen ;\n plen = tvb_get_ntohs ( tvb , offset ) ;\n return plen + 2 ;\n }"}
{"idx": 499, "target": 0, "func": "REGRESSION_TEST ( SDK_API_OVERRIDABLE_CONFIGS ) ( RegressionTest * test , int , int * pstatus ) {\n const char * conf ;\n TSOverridableConfigKey key ;\n TSRecordDataType type ;\n HttpSM * s = HttpSM : : allocate ( ) ;\n bool success = true ;\n TSHttpTxn txnp = reinterpret_cast < TSHttpTxn > ( s ) ;\n InkRand generator ( 17 ) ;\n TSMgmtInt ival_read , ival_rand ;\n TSMgmtFloat fval_read , fval_rand ;\n const char * sval_read ;\n const char * test_string = \"The Apache Traffic Server\" ;\n int len ;\n s -> init ( ) ;\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n for ( int i = TS_CONFIG_NULL + 1 ;\n i < TS_CONFIG_LAST_ENTRY ;\n ++ i ) {\n conf = SDK_Overridable_Configs [ i ] ;\n if ( TS_SUCCESS == TSHttpTxnConfigFind ( conf , - 1 , & key , & type ) ) {\n if ( key != i ) {\n SDK_RPRINT ( test , \"TSHttpTxnConfigFind\" , \"TestCase1\" , TC_FAIL , \"Failed on %s, expected %d, got %d\" , conf , i , key ) ;\n success = false ;\n continue ;\n }\n }\n else {\n SDK_RPRINT ( test , \"TSHttpTxnConfigFind\" , \"TestCase1\" , TC_FAIL , \"Call returned unexpected TS_ERROR for %s\" , conf ) ;\n success = false ;\n continue ;\n }\n switch ( type ) {\n case TS_RECORDDATATYPE_INT : ival_rand = generator . random ( ) % 126 ;\n TSHttpTxnConfigIntSet ( txnp , key , ival_rand ) ;\n TSHttpTxnConfigIntGet ( txnp , key , & ival_read ) ;\n if ( ival_rand != ival_read ) {\n SDK_RPRINT ( test , \"TSHttpTxnConfigIntSet\" , \"TestCase1\" , TC_FAIL , \"Failed on %s, %d != %d\" , conf , ival_read , ival_rand ) ;\n success = false ;\n continue ;\n }\n break ;\n case TS_RECORDDATATYPE_FLOAT : fval_rand = generator . random ( ) ;\n TSHttpTxnConfigFloatSet ( txnp , key , fval_rand ) ;\n TSHttpTxnConfigFloatGet ( txnp , key , & fval_read ) ;\n if ( fval_rand != fval_read ) {\n SDK_RPRINT ( test , \"TSHttpTxnConfigFloatSet\" , \"TestCase1\" , TC_FAIL , \"Failed on %s, %f != %f\" , conf , fval_read , fval_rand ) ;\n success = false ;\n continue ;\n }\n break ;\n case TS_RECORDDATATYPE_STRING : TSHttpTxnConfigStringSet ( txnp , key , test_string , - 1 ) ;\n TSHttpTxnConfigStringGet ( txnp , key , & sval_read , & len ) ;\n if ( test_string != sval_read ) {\n SDK_RPRINT ( test , \"TSHttpTxnConfigStringSet\" , \"TestCase1\" , TC_FAIL , \"Failed on %s, %s != %s\" , conf , sval_read , test_string ) ;\n success = false ;\n continue ;\n }\n break ;\n default : break ;\n }\n }\n s -> destroy ( ) ;\n if ( success ) {\n * pstatus = REGRESSION_TEST_PASSED ;\n SDK_RPRINT ( test , \"TSHttpTxnConfigFind\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( test , \"TSHttpTxnConfigIntSet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( test , \"TSHttpTxnConfigFloatSet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( test , \"TSHttpTxnConfigStringSet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n else {\n * pstatus = REGRESSION_TEST_FAILED ;\n }\n return ;\n }"}
{"idx": 500, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize ) ;\n DECL_PIOCTL ( PGetCacheSize ) ;\n DECL_PIOCTL ( PRemoveCallBack ) ;\n DECL_PIOCTL ( PNewCell )"}
{"idx": 501, "target": 0, "func": "static void process_dl_debug ( const char * dl_debug ) {\n static const struct {\n unsigned char len ;\n const char name [ 10 ] ;\n const char helptext [ 41 ] ;\n unsigned short int mask ;\n }\n debopts [ ] = {\n # define LEN_AND_STR ( str ) sizeof ( str ) - 1 , str {\n LEN_AND_STR ( \"libs\" ) , \"display library search paths\" , DL_DEBUG_LIBS | DL_DEBUG_IMPCALLS }\n , {\n LEN_AND_STR ( \"reloc\" ) , \"display relocation processing\" , DL_DEBUG_RELOC | DL_DEBUG_IMPCALLS }\n , {\n LEN_AND_STR ( \"files\" ) , \"display progress for input file\" , DL_DEBUG_FILES | DL_DEBUG_IMPCALLS }\n , {\n LEN_AND_STR ( \"symbols\" ) , \"display symbol table processing\" , DL_DEBUG_SYMBOLS | DL_DEBUG_IMPCALLS }\n , {\n LEN_AND_STR ( \"bindings\" ) , \"display information about symbol binding\" , DL_DEBUG_BINDINGS | DL_DEBUG_IMPCALLS }\n , {\n LEN_AND_STR ( \"versions\" ) , \"display version dependencies\" , DL_DEBUG_VERSIONS | DL_DEBUG_IMPCALLS }\n , {\n LEN_AND_STR ( \"scopes\" ) , \"display scope information\" , DL_DEBUG_SCOPES }\n , {\n LEN_AND_STR ( \"all\" ) , \"all previous options combined\" , DL_DEBUG_LIBS | DL_DEBUG_RELOC | DL_DEBUG_FILES | DL_DEBUG_SYMBOLS | DL_DEBUG_BINDINGS | DL_DEBUG_VERSIONS | DL_DEBUG_IMPCALLS | DL_DEBUG_SCOPES }\n , {\n LEN_AND_STR ( \"statistics\" ) , \"display relocation statistics\" , DL_DEBUG_STATISTICS }\n , {\n LEN_AND_STR ( \"unused\" ) , \"determined unused DSOs\" , DL_DEBUG_UNUSED }\n , {\n LEN_AND_STR ( \"help\" ) , \"display this help message and exit\" , DL_DEBUG_HELP }\n , }\n ;\n # define ndebopts ( sizeof ( debopts ) / sizeof ( debopts [ 0 ] ) ) while ( * dl_debug != '\\0' ) {\n if ( * dl_debug != ' ' && * dl_debug != ',' && * dl_debug != ':' ) {\n size_t cnt ;\n size_t len = 1 ;\n while ( dl_debug [ len ] != '\\0' && dl_debug [ len ] != ' ' && dl_debug [ len ] != ',' && dl_debug [ len ] != ':' ) ++ len ;\n for ( cnt = 0 ;\n cnt < ndebopts ;\n ++ cnt ) if ( debopts [ cnt ] . len == len && memcmp ( dl_debug , debopts [ cnt ] . name , len ) == 0 ) {\n GLRO ( dl_debug_mask ) |= debopts [ cnt ] . mask ;\n any_debug = 1 ;\n break ;\n }\n if ( cnt == ndebopts ) {\n char * copy = strndupa ( dl_debug , len ) ;\n _dl_error_printf ( \"\\ warning: debug option `%s' unknown;\n try LD_DEBUG=help\\n\" , copy ) ;\n }\n dl_debug += len ;\n continue ;\n }\n ++ dl_debug ;\n }\n if ( GLRO ( dl_debug_mask ) & DL_DEBUG_UNUSED ) {\n GLRO ( dl_lazy ) = 0 ;\n }\n if ( GLRO ( dl_debug_mask ) & DL_DEBUG_HELP ) {\n size_t cnt ;\n _dl_printf ( \"\\ Valid options for the LD_DEBUG environment variable are:\\n\\n\" ) ;\n for ( cnt = 0 ;\n cnt < ndebopts ;\n ++ cnt ) _dl_printf ( \" %.*s%s%s\\n\" , debopts [ cnt ] . len , debopts [ cnt ] . name , \" \" + debopts [ cnt ] . len - 3 , debopts [ cnt ] . helptext ) ;\n _dl_printf ( \"\\n\\ To direct the debugging output into a file instead of standard output\\n\\ a filename can be specified using the LD_DEBUG_OUTPUT environment variable.\\n\" ) ;\n _exit ( 0 ) ;\n }\n }"}
{"idx": 502, "target": 0, "func": "static int selinux_socket_listen ( struct socket * sock , int backlog ) {\n return sock_has_perm ( current , sock -> sk , SOCKET__LISTEN ) ;\n }"}
{"idx": 503, "target": 0, "func": "int main ( int argc , char * * argv ) {\n if ( argc > 1 && ! strcmp ( argv [ 1 ] , \"--verbose\" ) ) verbose = 1 ;\n else if ( argc > 1 && ! strcmp ( argv [ 1 ] , \"--debug\" ) ) verbose = debug = 1 ;\n if ( ! gcry_check_version ( GCRYPT_VERSION ) ) die ( \"version mismatch\\n\" ) ;\n gcry_control ( GCRYCTL_DISABLE_SECMEM , 0 ) ;\n gcry_control ( GCRYCTL_ENABLE_QUICK_RANDOM , 0 ) ;\n if ( debug ) gcry_control ( GCRYCTL_SET_DEBUG_FLAGS , 1u , 0 ) ;\n gcry_control ( GCRYCTL_INITIALIZATION_FINISHED , 0 ) ;\n set_get_point ( ) ;\n context_alloc ( ) ;\n context_param ( ) ;\n basic_ec_math ( ) ;\n basic_ec_math_simplified ( ) ;\n twistededwards_math ( ) ;\n show ( \"All tests completed. Errors: %d\\n\" , error_count ) ;\n return error_count ? 1 : 0 ;\n }"}
{"idx": 504, "target": 0, "func": "static void child_signal_cb ( int fd , short event , void * arg ) {\n struct timeval tv ;\n int * pint = arg ;\n * pint = 1 ;\n tv . tv_usec = 500000 ;\n tv . tv_sec = 0 ;\n event_loopexit ( & tv ) ;\n }"}
{"idx": 505, "target": 0, "func": "static int selinux_task_wait ( struct task_struct * p ) {\n return task_has_perm ( p , current , PROCESS__SIGCHLD ) ;\n }"}
{"idx": 506, "target": 0, "func": "static void test_subselect ( ) {\n MYSQL_STMT * stmt ;\n int rc , id ;\n MYSQL_BIND my_bind [ 1 ] ;\n DBUG_ENTER ( \"test_subselect\" ) ;\n myheader ( \"test_subselect\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_sub1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_sub2\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_sub1(id int)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_sub2(id int, id1 int)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_sub1 values(2)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_sub2 VALUES(1, 7), (2, 7)\" ) ;\n myquery ( rc ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 0 ] . buffer = ( void * ) & id ;\n my_bind [ 0 ] . length = 0 ;\n my_bind [ 0 ] . is_null = 0 ;\n stmt = mysql_simple_prepare ( mysql , \"INSERT INTO test_sub2(id) SELECT * FROM test_sub1 WHERE id= ?\" ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n id = 2 ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n verify_st_affected_rows ( stmt , 1 ) ;\n id = 9 ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n verify_st_affected_rows ( stmt , 0 ) ;\n mysql_stmt_close ( stmt ) ;\n rc = my_stmt_result ( \"SELECT * FROM test_sub2\" ) ;\n DIE_UNLESS ( rc == 3 ) ;\n rc = my_stmt_result ( \"SELECT ROW(1, 7) IN (select id, id1 \" \"from test_sub2 WHERE id1= 8)\" ) ;\n DIE_UNLESS ( rc == 1 ) ;\n rc = my_stmt_result ( \"SELECT ROW(1, 7) IN (select id, id1 \" \"from test_sub2 WHERE id1= 7)\" ) ;\n DIE_UNLESS ( rc == 1 ) ;\n stmt = mysql_simple_prepare ( mysql , ( \"SELECT ROW(1, 7) IN (select id, id1 \" \"from test_sub2 WHERE id1= ?)\" ) ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n id = 7 ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n row 1: %d\" , id ) ;\n DIE_UNLESS ( id == 1 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n id = 8 ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n row 1: %d\" , id ) ;\n DIE_UNLESS ( id == 0 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n mysql_stmt_close ( stmt ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 507, "target": 0, "func": "void jpc_ns_invlift_colres ( jpc_fix_t * a , int numrows , int numcols , int stride , int parity ) {\n jpc_fix_t * lptr ;\n jpc_fix_t * hptr ;\n register jpc_fix_t * lptr2 ;\n register jpc_fix_t * hptr2 ;\n register int n ;\n register int i ;\n int llen ;\n llen = ( numrows + 1 - parity ) >> 1 ;\n if ( numrows > 1 ) {\n # if defined ( WT_DOSCALE ) lptr = & a [ 0 ] ;\n n = llen ;\n while ( n -- > 0 ) {\n lptr2 = lptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n lptr2 [ 0 ] = jpc_fix_mul ( lptr2 [ 0 ] , jpc_dbltofix ( 1.0 / LGAIN ) ) ;\n ++ lptr2 ;\n }\n lptr += stride ;\n }\n hptr = & a [ llen * stride ] ;\n n = numrows - llen ;\n while ( n -- > 0 ) {\n hptr2 = hptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n hptr2 [ 0 ] = jpc_fix_mul ( hptr2 [ 0 ] , jpc_dbltofix ( 1.0 / HGAIN ) ) ;\n ++ hptr2 ;\n }\n hptr += stride ;\n }\n # endif lptr = & a [ 0 ] ;\n hptr = & a [ llen * stride ] ;\n if ( ! parity ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n jpc_fix_minuseq ( lptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * DELTA ) , hptr2 [ 0 ] ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n lptr += stride ;\n }\n n = llen - ( ! parity ) - ( parity != ( numrows & 1 ) ) ;\n while ( n -- > 0 ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n jpc_fix_minuseq ( lptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( DELTA ) , jpc_fix_add ( hptr2 [ 0 ] , hptr2 [ stride ] ) ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n lptr += stride ;\n hptr += stride ;\n }\n if ( parity != ( numrows & 1 ) ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n jpc_fix_minuseq ( lptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * DELTA ) , hptr2 [ 0 ] ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n }\n lptr = & a [ 0 ] ;\n hptr = & a [ llen * stride ] ;\n if ( parity ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n jpc_fix_minuseq ( hptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * GAMMA ) , lptr2 [ 0 ] ) ) ;\n ++ hptr2 ;\n ++ lptr2 ;\n }\n hptr += stride ;\n }\n n = numrows - llen - parity - ( parity == ( numrows & 1 ) ) ;\n while ( n -- > 0 ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n jpc_fix_minuseq ( hptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( GAMMA ) , jpc_fix_add ( lptr2 [ 0 ] , lptr2 [ stride ] ) ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n hptr += stride ;\n lptr += stride ;\n }\n if ( parity == ( numrows & 1 ) ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n jpc_fix_minuseq ( hptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * GAMMA ) , lptr2 [ 0 ] ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n }\n lptr = & a [ 0 ] ;\n hptr = & a [ llen * stride ] ;\n if ( ! parity ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n jpc_fix_minuseq ( lptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * BETA ) , hptr2 [ 0 ] ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n lptr += stride ;\n }\n n = llen - ( ! parity ) - ( parity != ( numrows & 1 ) ) ;\n while ( n -- > 0 ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n jpc_fix_minuseq ( lptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( BETA ) , jpc_fix_add ( hptr2 [ 0 ] , hptr2 [ stride ] ) ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n lptr += stride ;\n hptr += stride ;\n }\n if ( parity != ( numrows & 1 ) ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n jpc_fix_minuseq ( lptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * BETA ) , hptr2 [ 0 ] ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n }\n lptr = & a [ 0 ] ;\n hptr = & a [ llen * stride ] ;\n if ( parity ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n jpc_fix_minuseq ( hptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * ALPHA ) , lptr2 [ 0 ] ) ) ;\n ++ hptr2 ;\n ++ lptr2 ;\n }\n hptr += stride ;\n }\n n = numrows - llen - parity - ( parity == ( numrows & 1 ) ) ;\n while ( n -- > 0 ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n jpc_fix_minuseq ( hptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( ALPHA ) , jpc_fix_add ( lptr2 [ 0 ] , lptr2 [ stride ] ) ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n hptr += stride ;\n lptr += stride ;\n }\n if ( parity == ( numrows & 1 ) ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n jpc_fix_minuseq ( hptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * ALPHA ) , lptr2 [ 0 ] ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n }\n }\n else {\n # if defined ( WT_LENONE ) if ( parity ) {\n lptr2 = & a [ 0 ] ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n lptr2 [ 0 ] = jpc_fix_asr ( lptr2 [ 0 ] , 1 ) ;\n ++ lptr2 ;\n }\n }\n # endif }\n }"}
{"idx": 508, "target": 0, "func": "static void wm_readcb ( struct bufferevent * bev , void * arg ) {\n int len = EVBUFFER_LENGTH ( bev -> input ) ;\n static int nread ;\n assert ( len >= 10 && len <= 20 ) ;\n evbuffer_drain ( bev -> input , len ) ;\n nread += len ;\n if ( nread == 65000 ) {\n bufferevent_disable ( bev , EV_READ ) ;\n test_ok ++ ;\n }\n }"}
{"idx": 509, "target": 0, "func": "void vp9_subtract_plane ( MACROBLOCK * x , BLOCK_SIZE bsize , int plane ) {\n struct macroblock_plane * const p = & x -> plane [ plane ] ;\n const struct macroblockd_plane * const pd = & x -> e_mbd . plane [ plane ] ;\n const BLOCK_SIZE plane_bsize = get_plane_block_size ( bsize , pd ) ;\n const int bw = 4 * num_4x4_blocks_wide_lookup [ plane_bsize ] ;\n const int bh = 4 * num_4x4_blocks_high_lookup [ plane_bsize ] ;\n vp9_subtract_block ( bh , bw , p -> src_diff , bw , p -> src . buf , p -> src . stride , pd -> dst . buf , pd -> dst . stride ) ;\n }"}
{"idx": 510, "target": 0, "func": "static void init_username ( ) {\n my_free ( full_username ) ;\n my_free ( part_username ) ;\n MYSQL_RES * result ;\n LINT_INIT ( result ) ;\n if ( ! mysql_query ( & mysql , \"select USER()\" ) && ( result = mysql_use_result ( & mysql ) ) ) {\n MYSQL_ROW cur = mysql_fetch_row ( result ) ;\n full_username = my_strdup ( cur [ 0 ] , MYF ( MY_WME ) ) ;\n part_username = my_strdup ( strtok ( cur [ 0 ] , \"@\" ) , MYF ( MY_WME ) ) ;\n ( void ) mysql_fetch_row ( result ) ;\n }\n }"}
{"idx": 511, "target": 0, "func": "int ff_get_qtpalette ( int codec_id , AVIOContext * pb , uint32_t * palette ) {\n int tmp , bit_depth , color_table_id , greyscale , i ;\n avio_seek ( pb , 82 , SEEK_CUR ) ;\n tmp = avio_rb16 ( pb ) ;\n bit_depth = tmp & 0x1F ;\n greyscale = tmp & 0x20 ;\n color_table_id = avio_rb16 ( pb ) ;\n if ( greyscale && codec_id == AV_CODEC_ID_CINEPAK ) return 0 ;\n if ( ( bit_depth == 1 || bit_depth == 2 || bit_depth == 4 || bit_depth == 8 ) ) {\n uint32_t color_count , color_start , color_end ;\n uint32_t a , r , g , b ;\n if ( greyscale && bit_depth > 1 && color_table_id ) {\n int color_index , color_dec ;\n color_count = 1 << bit_depth ;\n color_index = 255 ;\n color_dec = 256 / ( color_count - 1 ) ;\n for ( i = 0 ;\n i < color_count ;\n i ++ ) {\n r = g = b = color_index ;\n palette [ i ] = ( 0xFFU << 24 ) | ( r << 16 ) | ( g << 8 ) | ( b ) ;\n color_index -= color_dec ;\n if ( color_index < 0 ) color_index = 0 ;\n }\n }\n else if ( color_table_id ) {\n const uint8_t * color_table ;\n color_count = 1 << bit_depth ;\n if ( bit_depth == 1 ) color_table = ff_qt_default_palette_2 ;\n else if ( bit_depth == 2 ) color_table = ff_qt_default_palette_4 ;\n else if ( bit_depth == 4 ) color_table = ff_qt_default_palette_16 ;\n else color_table = ff_qt_default_palette_256 ;\n for ( i = 0 ;\n i < color_count ;\n i ++ ) {\n r = color_table [ i * 3 + 0 ] ;\n g = color_table [ i * 3 + 1 ] ;\n b = color_table [ i * 3 + 2 ] ;\n palette [ i ] = ( 0xFFU << 24 ) | ( r << 16 ) | ( g << 8 ) | ( b ) ;\n }\n }\n else {\n color_start = avio_rb32 ( pb ) ;\n avio_rb16 ( pb ) ;\n color_end = avio_rb16 ( pb ) ;\n if ( ( color_start <= 255 ) && ( color_end <= 255 ) ) {\n for ( i = color_start ;\n i <= color_end ;\n i ++ ) {\n a = avio_r8 ( pb ) ;\n avio_r8 ( pb ) ;\n r = avio_r8 ( pb ) ;\n avio_r8 ( pb ) ;\n g = avio_r8 ( pb ) ;\n avio_r8 ( pb ) ;\n b = avio_r8 ( pb ) ;\n avio_r8 ( pb ) ;\n palette [ i ] = ( a << 24 ) | ( r << 16 ) | ( g << 8 ) | ( b ) ;\n }\n }\n }\n return 1 ;\n }\n return 0 ;\n }"}
{"idx": 512, "target": 0, "func": "static int sethalftone_cleanup ( i_ctx_t * i_ctx_p ) {\n gx_device_halftone * pdht = r_ptr ( & esp [ 4 ] , gx_device_halftone ) ;\n gs_halftone * pht = r_ptr ( & esp [ 3 ] , gs_halftone ) ;\n gs_free_object ( pdht -> rc . memory , pdht , \"sethalftone_cleanup(device halftone)\" ) ;\n gs_free_object ( pht -> rc . memory , pht , \"sethalftone_cleanup(halftone)\" ) ;\n return 0 ;\n }"}
{"idx": 513, "target": 0, "func": "CURLcode Curl_http_auth_act ( struct connectdata * conn ) {\n struct Curl_easy * data = conn -> data ;\n bool pickhost = FALSE ;\n bool pickproxy = FALSE ;\n CURLcode result = CURLE_OK ;\n if ( 100 <= data -> req . httpcode && 199 >= data -> req . httpcode ) return CURLE_OK ;\n if ( data -> state . authproblem ) return data -> set . http_fail_on_error ? CURLE_HTTP_RETURNED_ERROR : CURLE_OK ;\n if ( conn -> bits . user_passwd && ( ( data -> req . httpcode == 401 ) || ( conn -> bits . authneg && data -> req . httpcode < 300 ) ) ) {\n pickhost = pickoneauth ( & data -> state . authhost ) ;\n if ( ! pickhost ) data -> state . authproblem = TRUE ;\n }\n if ( conn -> bits . proxy_user_passwd && ( ( data -> req . httpcode == 407 ) || ( conn -> bits . authneg && data -> req . httpcode < 300 ) ) ) {\n pickproxy = pickoneauth ( & data -> state . authproxy ) ;\n if ( ! pickproxy ) data -> state . authproblem = TRUE ;\n }\n if ( pickhost || pickproxy ) {\n Curl_safefree ( data -> req . newurl ) ;\n data -> req . newurl = strdup ( data -> change . url ) ;\n if ( ! data -> req . newurl ) return CURLE_OUT_OF_MEMORY ;\n if ( ( data -> set . httpreq != HTTPREQ_GET ) && ( data -> set . httpreq != HTTPREQ_HEAD ) && ! conn -> bits . rewindaftersend ) {\n result = http_perhapsrewind ( conn ) ;\n if ( result ) return result ;\n }\n }\n else if ( ( data -> req . httpcode < 300 ) && ( ! data -> state . authhost . done ) && conn -> bits . authneg ) {\n if ( ( data -> set . httpreq != HTTPREQ_GET ) && ( data -> set . httpreq != HTTPREQ_HEAD ) ) {\n data -> req . newurl = strdup ( data -> change . url ) ;\n if ( ! data -> req . newurl ) return CURLE_OUT_OF_MEMORY ;\n data -> state . authhost . done = TRUE ;\n }\n }\n if ( http_should_fail ( conn ) ) {\n failf ( data , \"The requested URL returned error: %d\" , data -> req . httpcode ) ;\n result = CURLE_HTTP_RETURNED_ERROR ;\n }\n return result ;\n }"}
{"idx": 514, "target": 0, "func": "static int zzstopped ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n check_type ( * op , t_integer ) ;\n check_op ( 3 ) ;\n check_estack ( 5 ) ;\n push_mark_estack ( es_stopped , no_cleanup ) ;\n * ++ esp = op [ - 1 ] ;\n * ++ esp = * op ;\n push_op_estack ( stopped_push ) ;\n push_op_estack ( zexec ) ;\n pop ( 2 ) ;\n return o_push_estack ;\n }"}
{"idx": 515, "target": 1, "func": "int GetCertificateFailure ( JNIEnv * env , const JavaParamRef < jclass > & obj , const JavaParamRef < jobject > & java_web_contents ) {\n enum CertificateFailure {\n NONE = 0 , CERTIFICATE_FAIL_UNSPECIFIED = 1 , CERTIFICATE_FAIL_UNTRUSTED = 2 , CERTIFICATE_FAIL_REVOKED = 3 , CERTIFICATE_FAIL_NOT_YET_VALID = 4 , CERTIFICATE_FAIL_EXPIRED = 5 , CERTIFICATE_FAIL_UNABLE_TO_CHECK_REVOCATION_STATUS = 6 , }\n ;\n content : : WebContents * web_contents = content : : WebContents : : FromJavaWebContents ( java_web_contents ) ;\n content : : NavigationEntry * entry = web_contents -> GetController ( ) . GetVisibleEntry ( ) ;\n if ( ! entry ) return NONE ;\n const content : : SSLStatus & ssl = entry -> GetSSL ( ) ;\n switch ( ssl . security_style ) {\n case content : : SECURITY_STYLE_WARNING : case content : : SECURITY_STYLE_UNKNOWN : case content : : SECURITY_STYLE_UNAUTHENTICATED : return NONE ;\n case content : : SECURITY_STYLE_AUTHENTICATION_BROKEN : case content : : SECURITY_STYLE_AUTHENTICATED : {\n if ( net : : IsCertStatusError ( ssl . cert_status ) ) {\n if ( ssl . cert_status & net : : CERT_STATUS_AUTHORITY_INVALID ) return CERTIFICATE_FAIL_UNTRUSTED ;\n if ( ssl . cert_status & net : : CERT_STATUS_REVOKED ) return CERTIFICATE_FAIL_REVOKED ;\n if ( ssl . cert_status & net : : CERT_STATUS_DATE_INVALID ) return CERTIFICATE_FAIL_EXPIRED ;\n if ( ssl . cert_status & net : : CERT_STATUS_UNABLE_TO_CHECK_REVOCATION ) return CERTIFICATE_FAIL_UNABLE_TO_CHECK_REVOCATION_STATUS ;\n return CERTIFICATE_FAIL_UNSPECIFIED ;\n }\n if ( ssl . content_status & content : : SSLStatus : : DISPLAYED_INSECURE_CONTENT ) {\n return CERTIFICATE_FAIL_UNSPECIFIED ;\n }\n }\n }\n return NONE ;\n }"}
{"idx": 516, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * pkt ) {\n BinkContext * const c = avctx -> priv_data ;\n AVFrame * frame = data ;\n GetBitContext gb ;\n int plane , plane_idx , ret ;\n int bits_count = pkt -> size << 3 ;\n if ( c -> version > 'b' ) {\n if ( ( ret = ff_get_buffer ( avctx , frame , AV_GET_BUFFER_FLAG_REF ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n }\n else {\n if ( ( ret = ff_reget_buffer ( avctx , c -> last ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( ( ret = av_frame_ref ( frame , c -> last ) ) < 0 ) return ret ;\n }\n init_get_bits ( & gb , pkt -> data , bits_count ) ;\n if ( c -> has_alpha ) {\n if ( c -> version >= 'i' ) skip_bits_long ( & gb , 32 ) ;\n if ( ( ret = bink_decode_plane ( c , frame , & gb , 3 , 0 ) ) < 0 ) return ret ;\n }\n if ( c -> version >= 'i' ) skip_bits_long ( & gb , 32 ) ;\n for ( plane = 0 ;\n plane < 3 ;\n plane ++ ) {\n plane_idx = ( ! plane || ! c -> swap_planes ) ? plane : ( plane ^ 3 ) ;\n if ( c -> version > 'b' ) {\n if ( ( ret = bink_decode_plane ( c , frame , & gb , plane_idx , ! ! plane ) ) < 0 ) return ret ;\n }\n else {\n if ( ( ret = binkb_decode_plane ( c , frame , & gb , plane_idx , ! avctx -> frame_number , ! ! plane ) ) < 0 ) return ret ;\n }\n if ( get_bits_count ( & gb ) >= bits_count ) break ;\n }\n emms_c ( ) ;\n if ( c -> version > 'b' ) {\n av_frame_unref ( c -> last ) ;\n if ( ( ret = av_frame_ref ( c -> last , frame ) ) < 0 ) return ret ;\n }\n * got_frame = 1 ;\n return pkt -> size ;\n }"}
{"idx": 517, "target": 0, "func": "static int dissect_h245_T_h223_al_type_al2M ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 344 \"../../asn1/h245/h245.cnf\" if ( h223_lc_params_temp ) h223_lc_params_temp -> al_type = al2M ;\n offset = dissect_h245_H223AL2MParameters ( tvb , offset , actx , tree , hf_index ) ;\n return offset ;\n }"}
{"idx": 518, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FullscreenControllerInteractiveTest , MAYBE_MouseLockSilentAfterTargetUnlock ) {\n ASSERT_TRUE ( test_server ( ) -> Start ( ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , test_server ( ) -> GetURL ( kFullscreenMouseLockHTML ) ) ;\n ASSERT_FALSE ( IsFullscreenBubbleDisplayed ( ) ) ;\n ASSERT_TRUE ( ui_test_utils : : SendKeyPressAndWait ( browser ( ) , ui : : VKEY_1 , false , false , false , false , chrome : : NOTIFICATION_MOUSE_LOCK_CHANGED , content : : NotificationService : : AllSources ( ) ) ) ;\n ASSERT_TRUE ( IsFullscreenBubbleDisplayed ( ) ) ;\n ASSERT_TRUE ( IsMouseLockPermissionRequested ( ) ) ;\n ASSERT_FALSE ( IsMouseLocked ( ) ) ;\n AcceptCurrentFullscreenOrMouseLockRequest ( ) ;\n ASSERT_TRUE ( IsMouseLocked ( ) ) ;\n ASSERT_TRUE ( IsFullscreenBubbleDisplayed ( ) ) ;\n ASSERT_TRUE ( ui_test_utils : : SendKeyPressAndWait ( browser ( ) , ui : : VKEY_U , false , false , false , false , chrome : : NOTIFICATION_MOUSE_LOCK_CHANGED , content : : NotificationService : : AllSources ( ) ) ) ;\n ASSERT_FALSE ( IsMouseLocked ( ) ) ;\n ASSERT_FALSE ( IsFullscreenBubbleDisplayed ( ) ) ;\n ASSERT_TRUE ( ui_test_utils : : SendKeyPressAndWait ( browser ( ) , ui : : VKEY_1 , false , false , false , false , chrome : : NOTIFICATION_MOUSE_LOCK_CHANGED , content : : NotificationService : : AllSources ( ) ) ) ;\n ASSERT_TRUE ( IsMouseLocked ( ) ) ;\n ASSERT_FALSE ( IsFullscreenBubbleDisplayed ( ) ) ;\n ASSERT_TRUE ( ui_test_utils : : SendKeyPressAndWait ( browser ( ) , ui : : VKEY_U , false , false , false , false , chrome : : NOTIFICATION_MOUSE_LOCK_CHANGED , content : : NotificationService : : AllSources ( ) ) ) ;\n ASSERT_FALSE ( IsMouseLocked ( ) ) ;\n ASSERT_TRUE ( ui_test_utils : : SendKeyPressAndWait ( browser ( ) , ui : : VKEY_D , false , false , false , false , chrome : : NOTIFICATION_MOUSE_LOCK_CHANGED , content : : NotificationService : : AllSources ( ) ) ) ;\n ASSERT_TRUE ( IsMouseLocked ( ) ) ;\n ASSERT_FALSE ( IsFullscreenBubbleDisplayed ( ) ) ;\n ASSERT_TRUE ( ui_test_utils : : SendKeyPressAndWait ( browser ( ) , ui : : VKEY_ESCAPE , false , false , false , false , chrome : : NOTIFICATION_MOUSE_LOCK_CHANGED , content : : NotificationService : : AllSources ( ) ) ) ;\n ASSERT_FALSE ( IsMouseLocked ( ) ) ;\n ASSERT_TRUE ( ui_test_utils : : SendKeyPressAndWait ( browser ( ) , ui : : VKEY_1 , false , false , false , false , chrome : : NOTIFICATION_MOUSE_LOCK_CHANGED , content : : NotificationService : : AllSources ( ) ) ) ;\n ASSERT_TRUE ( IsFullscreenBubbleDisplayed ( ) ) ;\n ASSERT_TRUE ( IsMouseLocked ( ) ) ;\n }"}
{"idx": 519, "target": 0, "func": "static void write_modes_sb ( VP9_COMP * cpi , const TileInfo * const tile , vp9_writer * w , TOKENEXTRA * * tok , const TOKENEXTRA * const tok_end , int mi_row , int mi_col , BLOCK_SIZE bsize ) {\n const VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCKD * const xd = & cpi -> mb . e_mbd ;\n const int bsl = b_width_log2 ( bsize ) ;\n const int bs = ( 1 << bsl ) / 4 ;\n PARTITION_TYPE partition ;\n BLOCK_SIZE subsize ;\n const MODE_INFO * m = NULL ;\n if ( mi_row >= cm -> mi_rows || mi_col >= cm -> mi_cols ) return ;\n m = cm -> mi [ mi_row * cm -> mi_stride + mi_col ] . src_mi ;\n partition = partition_lookup [ bsl ] [ m -> mbmi . sb_type ] ;\n write_partition ( cm , xd , bs , mi_row , mi_col , partition , bsize , w ) ;\n subsize = get_subsize ( bsize , partition ) ;\n if ( subsize < BLOCK_8X8 ) {\n write_modes_b ( cpi , tile , w , tok , tok_end , mi_row , mi_col ) ;\n }\n else {\n switch ( partition ) {\n case PARTITION_NONE : write_modes_b ( cpi , tile , w , tok , tok_end , mi_row , mi_col ) ;\n break ;\n case PARTITION_HORZ : write_modes_b ( cpi , tile , w , tok , tok_end , mi_row , mi_col ) ;\n if ( mi_row + bs < cm -> mi_rows ) write_modes_b ( cpi , tile , w , tok , tok_end , mi_row + bs , mi_col ) ;\n break ;\n case PARTITION_VERT : write_modes_b ( cpi , tile , w , tok , tok_end , mi_row , mi_col ) ;\n if ( mi_col + bs < cm -> mi_cols ) write_modes_b ( cpi , tile , w , tok , tok_end , mi_row , mi_col + bs ) ;\n break ;\n case PARTITION_SPLIT : write_modes_sb ( cpi , tile , w , tok , tok_end , mi_row , mi_col , subsize ) ;\n write_modes_sb ( cpi , tile , w , tok , tok_end , mi_row , mi_col + bs , subsize ) ;\n write_modes_sb ( cpi , tile , w , tok , tok_end , mi_row + bs , mi_col , subsize ) ;\n write_modes_sb ( cpi , tile , w , tok , tok_end , mi_row + bs , mi_col + bs , subsize ) ;\n break ;\n default : assert ( 0 ) ;\n }\n }\n if ( bsize >= BLOCK_8X8 && ( bsize == BLOCK_8X8 || partition != PARTITION_SPLIT ) ) update_partition_context ( xd , mi_row , mi_col , subsize , bsize ) ;\n }"}
{"idx": 520, "target": 1, "func": "static int32_t u_scanf_double_handler ( UFILE * input , u_scanf_spec_info * info , ufmt_args * args , const UChar * fmt , int32_t * fmtConsumed , int32_t * argConverted ) {\n int32_t len ;\n double num ;\n UNumberFormat * format ;\n int32_t parsePos = 0 ;\n int32_t skipped ;\n UErrorCode status = U_ZERO_ERROR ;\n skipped = u_scanf_skip_leading_ws ( input , info -> fPadChar ) ;\n ufile_fill_uchar_buffer ( input ) ;\n len = ( int32_t ) ( input -> str . fLimit - input -> str . fPos ) ;\n if ( info -> fWidth != - 1 ) len = ufmt_min ( len , info -> fWidth ) ;\n format = u_locbund_getNumberFormat ( & input -> str . fBundle , UNUM_DECIMAL ) ;\n if ( format == 0 ) return 0 ;\n skipped += u_scanf_skip_leading_positive_sign ( input , format , & status ) ;\n num = unum_parseDouble ( format , input -> str . fPos , len , & parsePos , & status ) ;\n if ( ! info -> fSkipArg ) {\n if ( info -> fIsLong ) * ( double * ) ( args [ 0 ] . ptrValue ) = num ;\n else if ( info -> fIsLongDouble ) * ( long double * ) ( args [ 0 ] . ptrValue ) = num ;\n else * ( float * ) ( args [ 0 ] . ptrValue ) = ( float ) num ;\n }\n input -> str . fPos += parsePos ;\n * argConverted = ! info -> fSkipArg ;\n return parsePos + skipped ;\n }"}
{"idx": 521, "target": 0, "func": "static void rd_use_partition ( VP9_COMP * cpi , const TileInfo * const tile , MODE_INFO * mi_8x8 , TOKENEXTRA * * tp , int mi_row , int mi_col , BLOCK_SIZE bsize , int * rate , int64_t * dist , int do_recon , PC_TREE * pc_tree ) {\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCK * const x = & cpi -> mb ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n const int mis = cm -> mi_stride ;\n const int bsl = b_width_log2 ( bsize ) ;\n const int mi_step = num_4x4_blocks_wide_lookup [ bsize ] / 2 ;\n const int bss = ( 1 << bsl ) / 4 ;\n int i , pl ;\n PARTITION_TYPE partition = PARTITION_NONE ;\n BLOCK_SIZE subsize ;\n ENTROPY_CONTEXT l [ 16 * MAX_MB_PLANE ] , a [ 16 * MAX_MB_PLANE ] ;\n PARTITION_CONTEXT sl [ 8 ] , sa [ 8 ] ;\n int last_part_rate = INT_MAX ;\n int64_t last_part_dist = INT64_MAX ;\n int64_t last_part_rd = INT64_MAX ;\n int none_rate = INT_MAX ;\n int64_t none_dist = INT64_MAX ;\n int64_t none_rd = INT64_MAX ;\n int chosen_rate = INT_MAX ;\n int64_t chosen_dist = INT64_MAX ;\n int64_t chosen_rd = INT64_MAX ;\n BLOCK_SIZE sub_subsize = BLOCK_4X4 ;\n int splits_below = 0 ;\n BLOCK_SIZE bs_type = mi_8x8 [ 0 ] . src_mi -> mbmi . sb_type ;\n int do_partition_search = 1 ;\n PICK_MODE_CONTEXT * ctx = & pc_tree -> none ;\n if ( mi_row >= cm -> mi_rows || mi_col >= cm -> mi_cols ) return ;\n assert ( num_4x4_blocks_wide_lookup [ bsize ] == num_4x4_blocks_high_lookup [ bsize ] ) ;\n partition = partition_lookup [ bsl ] [ bs_type ] ;\n subsize = get_subsize ( bsize , partition ) ;\n pc_tree -> partitioning = partition ;\n save_context ( cpi , mi_row , mi_col , a , l , sa , sl , bsize ) ;\n if ( bsize == BLOCK_16X16 && cpi -> oxcf . aq_mode ) {\n set_offsets ( cpi , tile , mi_row , mi_col , bsize ) ;\n x -> mb_energy = vp9_block_energy ( cpi , x , bsize ) ;\n }\n if ( do_partition_search && cpi -> sf . partition_search_type == SEARCH_PARTITION && cpi -> sf . adjust_partitioning_from_last_frame ) {\n if ( partition == PARTITION_SPLIT && subsize > BLOCK_8X8 ) {\n sub_subsize = get_subsize ( subsize , PARTITION_SPLIT ) ;\n splits_below = 1 ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n int jj = i >> 1 , ii = i & 0x01 ;\n MODE_INFO * this_mi = mi_8x8 [ jj * bss * mis + ii * bss ] . src_mi ;\n if ( this_mi && this_mi -> mbmi . sb_type >= sub_subsize ) {\n splits_below = 0 ;\n }\n }\n }\n if ( partition != PARTITION_NONE && ! splits_below && mi_row + ( mi_step >> 1 ) < cm -> mi_rows && mi_col + ( mi_step >> 1 ) < cm -> mi_cols ) {\n pc_tree -> partitioning = PARTITION_NONE ;\n rd_pick_sb_modes ( cpi , tile , mi_row , mi_col , & none_rate , & none_dist , bsize , ctx , INT64_MAX , 0 ) ;\n pl = partition_plane_context ( xd , mi_row , mi_col , bsize ) ;\n if ( none_rate < INT_MAX ) {\n none_rate += cpi -> partition_cost [ pl ] [ PARTITION_NONE ] ;\n none_rd = RDCOST ( x -> rdmult , x -> rddiv , none_rate , none_dist ) ;\n }\n restore_context ( cpi , mi_row , mi_col , a , l , sa , sl , bsize ) ;\n mi_8x8 [ 0 ] . src_mi -> mbmi . sb_type = bs_type ;\n pc_tree -> partitioning = partition ;\n }\n }\n switch ( partition ) {\n case PARTITION_NONE : rd_pick_sb_modes ( cpi , tile , mi_row , mi_col , & last_part_rate , & last_part_dist , bsize , ctx , INT64_MAX , 0 ) ;\n break ;\n case PARTITION_HORZ : rd_pick_sb_modes ( cpi , tile , mi_row , mi_col , & last_part_rate , & last_part_dist , subsize , & pc_tree -> horizontal [ 0 ] , INT64_MAX , 0 ) ;\n if ( last_part_rate != INT_MAX && bsize >= BLOCK_8X8 && mi_row + ( mi_step >> 1 ) < cm -> mi_rows ) {\n int rt = 0 ;\n int64_t dt = 0 ;\n PICK_MODE_CONTEXT * ctx = & pc_tree -> horizontal [ 0 ] ;\n update_state ( cpi , ctx , mi_row , mi_col , subsize , 0 ) ;\n encode_superblock ( cpi , tp , 0 , mi_row , mi_col , subsize , ctx ) ;\n rd_pick_sb_modes ( cpi , tile , mi_row + ( mi_step >> 1 ) , mi_col , & rt , & dt , subsize , & pc_tree -> horizontal [ 1 ] , INT64_MAX , 1 ) ;\n if ( rt == INT_MAX || dt == INT64_MAX ) {\n last_part_rate = INT_MAX ;\n last_part_dist = INT64_MAX ;\n break ;\n }\n last_part_rate += rt ;\n last_part_dist += dt ;\n }\n break ;\n case PARTITION_VERT : rd_pick_sb_modes ( cpi , tile , mi_row , mi_col , & last_part_rate , & last_part_dist , subsize , & pc_tree -> vertical [ 0 ] , INT64_MAX , 0 ) ;\n if ( last_part_rate != INT_MAX && bsize >= BLOCK_8X8 && mi_col + ( mi_step >> 1 ) < cm -> mi_cols ) {\n int rt = 0 ;\n int64_t dt = 0 ;\n PICK_MODE_CONTEXT * ctx = & pc_tree -> vertical [ 0 ] ;\n update_state ( cpi , ctx , mi_row , mi_col , subsize , 0 ) ;\n encode_superblock ( cpi , tp , 0 , mi_row , mi_col , subsize , ctx ) ;\n rd_pick_sb_modes ( cpi , tile , mi_row , mi_col + ( mi_step >> 1 ) , & rt , & dt , subsize , & pc_tree -> vertical [ bsize > BLOCK_8X8 ] , INT64_MAX , 1 ) ;\n if ( rt == INT_MAX || dt == INT64_MAX ) {\n last_part_rate = INT_MAX ;\n last_part_dist = INT64_MAX ;\n break ;\n }\n last_part_rate += rt ;\n last_part_dist += dt ;\n }\n break ;\n case PARTITION_SPLIT : if ( bsize == BLOCK_8X8 ) {\n rd_pick_sb_modes ( cpi , tile , mi_row , mi_col , & last_part_rate , & last_part_dist , subsize , pc_tree -> leaf_split [ 0 ] , INT64_MAX , 0 ) ;\n break ;\n }\n last_part_rate = 0 ;\n last_part_dist = 0 ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n int x_idx = ( i & 1 ) * ( mi_step >> 1 ) ;\n int y_idx = ( i >> 1 ) * ( mi_step >> 1 ) ;\n int jj = i >> 1 , ii = i & 0x01 ;\n int rt ;\n int64_t dt ;\n if ( ( mi_row + y_idx >= cm -> mi_rows ) || ( mi_col + x_idx >= cm -> mi_cols ) ) continue ;\n rd_use_partition ( cpi , tile , mi_8x8 + jj * bss * mis + ii * bss , tp , mi_row + y_idx , mi_col + x_idx , subsize , & rt , & dt , i != 3 , pc_tree -> split [ i ] ) ;\n if ( rt == INT_MAX || dt == INT64_MAX ) {\n last_part_rate = INT_MAX ;\n last_part_dist = INT64_MAX ;\n break ;\n }\n last_part_rate += rt ;\n last_part_dist += dt ;\n }\n break ;\n default : assert ( 0 ) ;\n break ;\n }\n pl = partition_plane_context ( xd , mi_row , mi_col , bsize ) ;\n if ( last_part_rate < INT_MAX ) {\n last_part_rate += cpi -> partition_cost [ pl ] [ partition ] ;\n last_part_rd = RDCOST ( x -> rdmult , x -> rddiv , last_part_rate , last_part_dist ) ;\n }\n if ( do_partition_search && cpi -> sf . adjust_partitioning_from_last_frame && cpi -> sf . partition_search_type == SEARCH_PARTITION && partition != PARTITION_SPLIT && bsize > BLOCK_8X8 && ( mi_row + mi_step < cm -> mi_rows || mi_row + ( mi_step >> 1 ) == cm -> mi_rows ) && ( mi_col + mi_step < cm -> mi_cols || mi_col + ( mi_step >> 1 ) == cm -> mi_cols ) ) {\n BLOCK_SIZE split_subsize = get_subsize ( bsize , PARTITION_SPLIT ) ;\n chosen_rate = 0 ;\n chosen_dist = 0 ;\n restore_context ( cpi , mi_row , mi_col , a , l , sa , sl , bsize ) ;\n pc_tree -> partitioning = PARTITION_SPLIT ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n int x_idx = ( i & 1 ) * ( mi_step >> 1 ) ;\n int y_idx = ( i >> 1 ) * ( mi_step >> 1 ) ;\n int rt = 0 ;\n int64_t dt = 0 ;\n ENTROPY_CONTEXT l [ 16 * MAX_MB_PLANE ] , a [ 16 * MAX_MB_PLANE ] ;\n PARTITION_CONTEXT sl [ 8 ] , sa [ 8 ] ;\n if ( ( mi_row + y_idx >= cm -> mi_rows ) || ( mi_col + x_idx >= cm -> mi_cols ) ) continue ;\n save_context ( cpi , mi_row , mi_col , a , l , sa , sl , bsize ) ;\n pc_tree -> split [ i ] -> partitioning = PARTITION_NONE ;\n rd_pick_sb_modes ( cpi , tile , mi_row + y_idx , mi_col + x_idx , & rt , & dt , split_subsize , & pc_tree -> split [ i ] -> none , INT64_MAX , i ) ;\n restore_context ( cpi , mi_row , mi_col , a , l , sa , sl , bsize ) ;\n if ( rt == INT_MAX || dt == INT64_MAX ) {\n chosen_rate = INT_MAX ;\n chosen_dist = INT64_MAX ;\n break ;\n }\n chosen_rate += rt ;\n chosen_dist += dt ;\n if ( i != 3 ) encode_sb ( cpi , tile , tp , mi_row + y_idx , mi_col + x_idx , 0 , split_subsize , pc_tree -> split [ i ] ) ;\n pl = partition_plane_context ( xd , mi_row + y_idx , mi_col + x_idx , split_subsize ) ;\n chosen_rate += cpi -> partition_cost [ pl ] [ PARTITION_NONE ] ;\n }\n pl = partition_plane_context ( xd , mi_row , mi_col , bsize ) ;\n if ( chosen_rate < INT_MAX ) {\n chosen_rate += cpi -> partition_cost [ pl ] [ PARTITION_SPLIT ] ;\n chosen_rd = RDCOST ( x -> rdmult , x -> rddiv , chosen_rate , chosen_dist ) ;\n }\n }\n if ( last_part_rd < chosen_rd ) {\n mi_8x8 [ 0 ] . src_mi -> mbmi . sb_type = bsize ;\n if ( bsize >= BLOCK_8X8 ) pc_tree -> partitioning = partition ;\n chosen_rate = last_part_rate ;\n chosen_dist = last_part_dist ;\n chosen_rd = last_part_rd ;\n }\n if ( none_rd < chosen_rd ) {\n if ( bsize >= BLOCK_8X8 ) pc_tree -> partitioning = PARTITION_NONE ;\n chosen_rate = none_rate ;\n chosen_dist = none_dist ;\n }\n restore_context ( cpi , mi_row , mi_col , a , l , sa , sl , bsize ) ;\n if ( bsize == BLOCK_64X64 ) assert ( chosen_rate < INT_MAX && chosen_dist < INT64_MAX ) ;\n if ( do_recon ) {\n int output_enabled = ( bsize == BLOCK_64X64 ) ;\n if ( ( cpi -> oxcf . aq_mode == COMPLEXITY_AQ ) && cm -> seg . update_map ) {\n vp9_select_in_frame_q_segment ( cpi , mi_row , mi_col , output_enabled , chosen_rate ) ;\n }\n if ( cpi -> oxcf . aq_mode == CYCLIC_REFRESH_AQ ) vp9_cyclic_refresh_set_rate_and_dist_sb ( cpi -> cyclic_refresh , chosen_rate , chosen_dist ) ;\n encode_sb ( cpi , tile , tp , mi_row , mi_col , output_enabled , bsize , pc_tree ) ;\n }\n * rate = chosen_rate ;\n * dist = chosen_dist ;\n }"}
{"idx": 522, "target": 0, "func": "static inline bool e1000e_ring_enabled ( E1000ECore * core , const E1000E_RingInfo * r ) {\n return core -> mac [ r -> dlen ] > 0 ;\n }"}
{"idx": 523, "target": 0, "func": "extern int name ( int , locale_t ) __THROW __exctype_l ( isalnum_l ) ;\n __exctype_l ( isalpha_l ) ;\n __exctype_l ( iscntrl_l )"}
{"idx": 524, "target": 0, "func": "static void fill_variance ( int64_t s2 , int64_t s , int c , var * v ) {\n v -> sum_square_error = s2 ;\n v -> sum_error = s ;\n v -> count = c ;\n if ( c > 0 ) v -> variance = ( int ) ( 256 * ( v -> sum_square_error - v -> sum_error * v -> sum_error / v -> count ) / v -> count ) ;\n else v -> variance = 0 ;\n }"}
{"idx": 525, "target": 0, "func": "int evdns_server_request_add_aaaa_reply ( struct evdns_server_request * req , const char * name , int n , void * addrs , int ttl ) {\n return evdns_server_request_add_reply ( req , EVDNS_ANSWER_SECTION , name , TYPE_AAAA , CLASS_INET , ttl , n * 16 , 0 , addrs ) ;\n }"}
{"idx": 526, "target": 0, "func": "static int dissect_h225_INTEGER_1_255 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 255U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 527, "target": 0, "func": "static int dissect_zbee_zcl_identify ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n proto_tree * payload_tree ;\n zbee_zcl_packet * zcl ;\n guint offset = 0 ;\n guint8 cmd_id ;\n gint rem_len ;\n if ( data == NULL ) return 0 ;\n zcl = ( zbee_zcl_packet * ) data ;\n cmd_id = zcl -> cmd_id ;\n if ( zcl -> direction == ZBEE_ZCL_FCF_TO_SERVER ) {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"%s, Seq: %u\" , val_to_str_const ( cmd_id , zbee_zcl_identify_srv_rx_cmd_names , \"Unknown Command\" ) , zcl -> tran_seqno ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_identify_srv_rx_cmd_id , tvb , offset , 1 , cmd_id ) ;\n rem_len = tvb_reported_length_remaining ( tvb , ++ offset ) ;\n if ( rem_len > 0 ) {\n payload_tree = proto_tree_add_subtree ( tree , tvb , offset , rem_len , ett_zbee_zcl_identify , NULL , \"Payload\" ) ;\n switch ( cmd_id ) {\n case ZBEE_ZCL_CMD_ID_IDENTIFY_IDENTITY : dissect_zcl_identify_identify ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_IDENTIFY_IDENTITY_QUERY : break ;\n default : break ;\n }\n }\n }\n else {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"%s, Seq: %u\" , val_to_str_const ( cmd_id , zbee_zcl_identify_srv_tx_cmd_names , \"Unknown Command\" ) , zcl -> tran_seqno ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_identify_srv_tx_cmd_id , tvb , offset , 1 , cmd_id ) ;\n rem_len = tvb_reported_length_remaining ( tvb , ++ offset ) ;\n if ( rem_len > 0 ) {\n payload_tree = proto_tree_add_subtree ( tree , tvb , offset , rem_len , ett_zbee_zcl_identify , NULL , \"Payload\" ) ;\n switch ( cmd_id ) {\n case ZBEE_ZCL_CMD_ID_IDENTIFY_IDENTITY_QUERY_RSP : dissect_zcl_identify_identifyqueryrsp ( tvb , payload_tree , & offset ) ;\n break ;\n default : break ;\n }\n }\n }\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 528, "target": 0, "func": "SPL_METHOD ( RecursiveDirectoryIterator , getChildren ) {\n zval * zpath , * zflags ;\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n spl_filesystem_object * subdir ;\n char slash = SPL_HAS_FLAG ( intern -> flags , SPL_FILE_DIR_UNIXPATHS ) ? '/' : DEFAULT_SLASH ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n spl_filesystem_object_get_file_name ( intern TSRMLS_CC ) ;\n MAKE_STD_ZVAL ( zflags ) ;\n MAKE_STD_ZVAL ( zpath ) ;\n ZVAL_LONG ( zflags , intern -> flags ) ;\n ZVAL_STRINGL ( zpath , intern -> file_name , intern -> file_name_len , 1 ) ;\n spl_instantiate_arg_ex2 ( Z_OBJCE_P ( getThis ( ) ) , & return_value , 0 , zpath , zflags TSRMLS_CC ) ;\n zval_ptr_dtor ( & zpath ) ;\n zval_ptr_dtor ( & zflags ) ;\n subdir = ( spl_filesystem_object * ) zend_object_store_get_object ( return_value TSRMLS_CC ) ;\n if ( subdir ) {\n if ( intern -> u . dir . sub_path && intern -> u . dir . sub_path [ 0 ] ) {\n subdir -> u . dir . sub_path_len = spprintf ( & subdir -> u . dir . sub_path , 0 , \"%s%c%s\" , intern -> u . dir . sub_path , slash , intern -> u . dir . entry . d_name ) ;\n }\n else {\n subdir -> u . dir . sub_path_len = strlen ( intern -> u . dir . entry . d_name ) ;\n subdir -> u . dir . sub_path = estrndup ( intern -> u . dir . entry . d_name , subdir -> u . dir . sub_path_len ) ;\n }\n subdir -> info_class = intern -> info_class ;\n subdir -> file_class = intern -> file_class ;\n subdir -> oth = intern -> oth ;\n }\n }"}
{"idx": 529, "target": 1, "func": "int ssl23_get_client_hello ( SSL * s ) {\n char buf_space [ 11 ] ;\n char * buf = & ( buf_space [ 0 ] ) ;\n unsigned char * p , * d , * d_len , * dd ;\n unsigned int i ;\n unsigned int csl , sil , cl ;\n int n = 0 , j ;\n int type = 0 ;\n int v [ 2 ] ;\n if ( s -> state == SSL23_ST_SR_CLNT_HELLO_A ) {\n v [ 0 ] = v [ 1 ] = 0 ;\n if ( ! ssl3_setup_buffers ( s ) ) goto err ;\n n = ssl23_read_bytes ( s , sizeof buf_space ) ;\n if ( n != sizeof buf_space ) return ( n ) ;\n p = s -> packet ;\n memcpy ( buf , p , n ) ;\n if ( ( p [ 0 ] & 0x80 ) && ( p [ 2 ] == SSL2_MT_CLIENT_HELLO ) ) {\n if ( ( p [ 3 ] == 0x00 ) && ( p [ 4 ] == 0x02 ) ) {\n v [ 0 ] = p [ 3 ] ;\n v [ 1 ] = p [ 4 ] ;\n if ( ! ( s -> options & SSL_OP_NO_SSLv2 ) ) type = 1 ;\n }\n else if ( p [ 3 ] == SSL3_VERSION_MAJOR ) {\n v [ 0 ] = p [ 3 ] ;\n v [ 1 ] = p [ 4 ] ;\n if ( p [ 4 ] >= TLS1_VERSION_MINOR ) {\n if ( p [ 4 ] >= TLS1_2_VERSION_MINOR && ! ( s -> options & SSL_OP_NO_TLSv1_2 ) ) {\n s -> version = TLS1_2_VERSION ;\n s -> state = SSL23_ST_SR_CLNT_HELLO_B ;\n }\n else if ( p [ 4 ] >= TLS1_1_VERSION_MINOR && ! ( s -> options & SSL_OP_NO_TLSv1_1 ) ) {\n s -> version = TLS1_1_VERSION ;\n s -> state = SSL23_ST_SR_CLNT_HELLO_B ;\n }\n else if ( ! ( s -> options & SSL_OP_NO_TLSv1 ) ) {\n s -> version = TLS1_VERSION ;\n s -> state = SSL23_ST_SR_CLNT_HELLO_B ;\n }\n else if ( ! ( s -> options & SSL_OP_NO_SSLv3 ) ) {\n s -> version = SSL3_VERSION ;\n s -> state = SSL23_ST_SR_CLNT_HELLO_B ;\n }\n else if ( ! ( s -> options & SSL_OP_NO_SSLv2 ) ) {\n type = 1 ;\n }\n }\n else if ( ! ( s -> options & SSL_OP_NO_SSLv3 ) ) {\n s -> version = SSL3_VERSION ;\n s -> state = SSL23_ST_SR_CLNT_HELLO_B ;\n }\n else if ( ! ( s -> options & SSL_OP_NO_SSLv2 ) ) type = 1 ;\n }\n }\n else if ( ( p [ 0 ] == SSL3_RT_HANDSHAKE ) && ( p [ 1 ] == SSL3_VERSION_MAJOR ) && ( p [ 5 ] == SSL3_MT_CLIENT_HELLO ) && ( ( p [ 3 ] == 0 && p [ 4 ] < 5 ) || ( p [ 9 ] >= p [ 1 ] ) ) ) {\n v [ 0 ] = p [ 1 ] ;\n if ( p [ 3 ] == 0 && p [ 4 ] < 6 ) {\n SSLerr ( SSL_F_SSL23_GET_CLIENT_HELLO , SSL_R_RECORD_TOO_SMALL ) ;\n goto err ;\n }\n if ( p [ 9 ] > SSL3_VERSION_MAJOR ) v [ 1 ] = 0xff ;\n else v [ 1 ] = p [ 10 ] ;\n if ( v [ 1 ] >= TLS1_VERSION_MINOR ) {\n if ( v [ 1 ] >= TLS1_2_VERSION_MINOR && ! ( s -> options & SSL_OP_NO_TLSv1_2 ) ) {\n s -> version = TLS1_2_VERSION ;\n type = 3 ;\n }\n else if ( v [ 1 ] >= TLS1_1_VERSION_MINOR && ! ( s -> options & SSL_OP_NO_TLSv1_1 ) ) {\n s -> version = TLS1_1_VERSION ;\n type = 3 ;\n }\n else if ( ! ( s -> options & SSL_OP_NO_TLSv1 ) ) {\n s -> version = TLS1_VERSION ;\n type = 3 ;\n }\n else if ( ! ( s -> options & SSL_OP_NO_SSLv3 ) ) {\n s -> version = SSL3_VERSION ;\n type = 3 ;\n }\n }\n else {\n if ( ! ( s -> options & SSL_OP_NO_SSLv3 ) ) {\n s -> version = SSL3_VERSION ;\n type = 3 ;\n }\n else if ( ! ( s -> options & SSL_OP_NO_TLSv1 ) ) {\n s -> version = TLS1_VERSION ;\n type = 3 ;\n }\n }\n }\n else if ( ( strncmp ( \"GET \" , ( char * ) p , 4 ) == 0 ) || ( strncmp ( \"POST \" , ( char * ) p , 5 ) == 0 ) || ( strncmp ( \"HEAD \" , ( char * ) p , 5 ) == 0 ) || ( strncmp ( \"PUT \" , ( char * ) p , 4 ) == 0 ) ) {\n SSLerr ( SSL_F_SSL23_GET_CLIENT_HELLO , SSL_R_HTTP_REQUEST ) ;\n goto err ;\n }\n else if ( strncmp ( \"CONNECT\" , ( char * ) p , 7 ) == 0 ) {\n SSLerr ( SSL_F_SSL23_GET_CLIENT_HELLO , SSL_R_HTTPS_PROXY_REQUEST ) ;\n goto err ;\n }\n }\n OPENSSL_assert ( s -> version <= TLS_MAX_VERSION ) ;\n # ifdef OPENSSL_FIPS if ( FIPS_mode ( ) && ( s -> version < TLS1_VERSION ) ) {\n SSLerr ( SSL_F_SSL23_GET_CLIENT_HELLO , SSL_R_ONLY_TLS_ALLOWED_IN_FIPS_MODE ) ;\n goto err ;\n }\n # endif if ( s -> state == SSL23_ST_SR_CLNT_HELLO_B ) {\n type = 2 ;\n p = s -> packet ;\n v [ 0 ] = p [ 3 ] ;\n v [ 1 ] = p [ 4 ] ;\n n = ( ( p [ 0 ] & 0x7f ) << 8 ) | p [ 1 ] ;\n if ( n > ( 1024 * 4 ) ) {\n SSLerr ( SSL_F_SSL23_GET_CLIENT_HELLO , SSL_R_RECORD_TOO_LARGE ) ;\n goto err ;\n }\n if ( n < 9 ) {\n SSLerr ( SSL_F_SSL23_GET_CLIENT_HELLO , SSL_R_RECORD_LENGTH_MISMATCH ) ;\n goto err ;\n }\n j = ssl23_read_bytes ( s , n + 2 ) ;\n if ( j <= 0 ) return ( j ) ;\n ssl3_finish_mac ( s , s -> packet + 2 , s -> packet_length - 2 ) ;\n if ( s -> msg_callback ) s -> msg_callback ( 0 , SSL2_VERSION , 0 , s -> packet + 2 , s -> packet_length - 2 , s , s -> msg_callback_arg ) ;\n p = s -> packet ;\n p += 5 ;\n n2s ( p , csl ) ;\n n2s ( p , sil ) ;\n n2s ( p , cl ) ;\n d = ( unsigned char * ) s -> init_buf -> data ;\n if ( ( csl + sil + cl + 11 ) != s -> packet_length ) {\n SSLerr ( SSL_F_SSL23_GET_CLIENT_HELLO , SSL_R_RECORD_LENGTH_MISMATCH ) ;\n goto err ;\n }\n * ( d ++ ) = SSL3_MT_CLIENT_HELLO ;\n d_len = d ;\n d += 3 ;\n * ( d ++ ) = SSL3_VERSION_MAJOR ;\n * ( d ++ ) = v [ 1 ] ;\n i = ( cl > SSL3_RANDOM_SIZE ) ? SSL3_RANDOM_SIZE : cl ;\n memset ( d , 0 , SSL3_RANDOM_SIZE ) ;\n memcpy ( & ( d [ SSL3_RANDOM_SIZE - i ] ) , & ( p [ csl + sil ] ) , i ) ;\n d += SSL3_RANDOM_SIZE ;\n * ( d ++ ) = 0 ;\n j = 0 ;\n dd = d ;\n d += 2 ;\n for ( i = 0 ;\n i < csl ;\n i += 3 ) {\n if ( p [ i ] != 0 ) continue ;\n * ( d ++ ) = p [ i + 1 ] ;\n * ( d ++ ) = p [ i + 2 ] ;\n j += 2 ;\n }\n s2n ( j , dd ) ;\n * ( d ++ ) = 1 ;\n * ( d ++ ) = 0 ;\n # if 0 p = p + csl + sil + cl ;\n while ( p < s -> packet + s -> packet_length ) {\n * ( d ++ ) = * ( p ++ ) ;\n }\n # endif i = ( d - ( unsigned char * ) s -> init_buf -> data ) - 4 ;\n l2n3 ( ( long ) i , d_len ) ;\n s -> s3 -> tmp . reuse_message = 1 ;\n s -> s3 -> tmp . message_type = SSL3_MT_CLIENT_HELLO ;\n s -> s3 -> tmp . message_size = i ;\n }\n if ( type == 1 ) {\n # ifdef OPENSSL_NO_SSL2 SSLerr ( SSL_F_SSL23_GET_CLIENT_HELLO , SSL_R_UNSUPPORTED_PROTOCOL ) ;\n goto err ;\n # else if ( s -> s2 == NULL ) {\n if ( ! ssl2_new ( s ) ) goto err ;\n }\n else ssl2_clear ( s ) ;\n if ( s -> s3 != NULL ) ssl3_free ( s ) ;\n if ( ! BUF_MEM_grow_clean ( s -> init_buf , SSL2_MAX_RECORD_LENGTH_3_BYTE_HEADER ) ) {\n goto err ;\n }\n s -> state = SSL2_ST_GET_CLIENT_HELLO_A ;\n if ( s -> options & SSL_OP_NO_TLSv1 && s -> options & SSL_OP_NO_SSLv3 ) s -> s2 -> ssl2_rollback = 0 ;\n else s -> s2 -> ssl2_rollback = 1 ;\n s -> rstate = SSL_ST_READ_HEADER ;\n s -> packet_length = n ;\n s -> packet = & ( s -> s2 -> rbuf [ 0 ] ) ;\n memcpy ( s -> packet , buf , n ) ;\n s -> s2 -> rbuf_left = n ;\n s -> s2 -> rbuf_offs = 0 ;\n s -> method = SSLv2_server_method ( ) ;\n s -> handshake_func = s -> method -> ssl_accept ;\n # endif }\n if ( ( type == 2 ) || ( type == 3 ) ) {\n s -> method = ssl23_get_server_method ( s -> version ) ;\n if ( s -> method == NULL ) {\n SSLerr ( SSL_F_SSL23_GET_CLIENT_HELLO , SSL_R_UNSUPPORTED_PROTOCOL ) ;\n goto err ;\n }\n if ( ! ssl_init_wbio_buffer ( s , 1 ) ) goto err ;\n s -> state = SSL3_ST_SR_CLNT_HELLO_A ;\n if ( type == 3 ) {\n s -> rstate = SSL_ST_READ_HEADER ;\n s -> packet_length = n ;\n if ( s -> s3 -> rbuf . buf == NULL ) if ( ! ssl3_setup_read_buffer ( s ) ) goto err ;\n s -> packet = & ( s -> s3 -> rbuf . buf [ 0 ] ) ;\n memcpy ( s -> packet , buf , n ) ;\n s -> s3 -> rbuf . left = n ;\n s -> s3 -> rbuf . offset = 0 ;\n }\n else {\n s -> packet_length = 0 ;\n s -> s3 -> rbuf . left = 0 ;\n s -> s3 -> rbuf . offset = 0 ;\n }\n # if 0 s -> client_version = ( v [ 0 ] << 8 ) | v [ 1 ] ;\n # endif s -> handshake_func = s -> method -> ssl_accept ;\n }\n if ( ( type < 1 ) || ( type > 3 ) ) {\n SSLerr ( SSL_F_SSL23_GET_CLIENT_HELLO , SSL_R_UNKNOWN_PROTOCOL ) ;\n goto err ;\n }\n s -> init_num = 0 ;\n if ( buf != buf_space ) OPENSSL_free ( buf ) ;\n return ( SSL_accept ( s ) ) ;\n err : if ( buf != buf_space ) OPENSSL_free ( buf ) ;\n return ( - 1 ) ;\n }"}
{"idx": 530, "target": 0, "func": "static void dtls1_hm_fragment_free ( hm_fragment * frag ) {\n if ( frag -> msg_header . is_ccs ) {\n EVP_CIPHER_CTX_free ( frag -> msg_header . saved_retransmit_state . enc_write_ctx ) ;\n EVP_MD_CTX_destroy ( frag -> msg_header . saved_retransmit_state . write_hash ) ;\n }\n if ( frag -> fragment ) OPENSSL_free ( frag -> fragment ) ;\n if ( frag -> reassembly ) OPENSSL_free ( frag -> reassembly ) ;\n OPENSSL_free ( frag ) ;\n }"}
{"idx": 531, "target": 0, "func": "static int32_t U_CALLCONV uprv_swapArray64 ( const UDataSwapper * ds , const void * inData , int32_t length , void * outData , UErrorCode * pErrorCode ) {\n const uint64_t * p ;\n uint64_t * q ;\n int32_t count ;\n if ( pErrorCode == NULL || U_FAILURE ( * pErrorCode ) ) {\n return 0 ;\n }\n if ( ds == NULL || inData == NULL || length < 0 || ( length & 7 ) != 0 || outData == NULL ) {\n * pErrorCode = U_ILLEGAL_ARGUMENT_ERROR ;\n return 0 ;\n }\n p = ( const uint64_t * ) inData ;\n q = ( uint64_t * ) outData ;\n count = length / 8 ;\n while ( count > 0 ) {\n uint64_t x = * p ++ ;\n x = ( x << 56 ) | ( ( x & 0xff00 ) << 40 ) | ( ( x & 0xff0000 ) << 24 ) | ( ( x & 0xff000000 ) << 8 ) | ( ( x >> 8 ) & 0xff000000 ) | ( ( x >> 24 ) & 0xff0000 ) | ( ( x >> 40 ) & 0xff00 ) | ( x >> 56 ) ;\n * q ++ = x ;\n -- count ;\n }\n return length ;\n }"}
{"idx": 532, "target": 0, "func": "static void hashglyphadd ( SplineChar * sc , UHash * uhash , NHash * nhash ) {\n int hash ;\n struct splinecharlist * test ;\n struct altuni * alt ;\n if ( sc -> unicodeenc == - 1 && sc -> altuni == NULL ) {\n hash = hashname ( sc -> name ) ;\n test = chunkalloc ( sizeof ( struct splinecharlist ) ) ;\n test -> sc = sc ;\n test -> next = ( * nhash ) [ hash ] ;\n ( * nhash ) [ hash ] = test ;\n }\n else if ( sc -> unicodeenc != - 1 ) {\n hash = sc -> unicodeenc & 0xffff ;\n test = chunkalloc ( sizeof ( struct splinecharlist ) ) ;\n test -> sc = sc ;\n test -> next = ( * uhash ) [ hash ] ;\n ( * uhash ) [ hash ] = test ;\n }\n for ( alt = sc -> altuni ;\n alt != NULL ;\n alt = alt -> next ) {\n hash = alt -> unienc & 0xffff ;\n test = chunkalloc ( sizeof ( struct splinecharlist ) ) ;\n test -> sc = sc ;\n test -> next = ( * uhash ) [ hash ] ;\n ( * uhash ) [ hash ] = test ;\n }\n }"}
{"idx": 533, "target": 0, "func": "static void alloc_raw_frame_buffers ( VP9_COMP * cpi ) {\n VP9_COMMON * cm = & cpi -> common ;\n const VP9EncoderConfig * oxcf = & cpi -> oxcf ;\n cpi -> lookahead = vp9_lookahead_init ( oxcf -> width , oxcf -> height , cm -> subsampling_x , cm -> subsampling_y , # if CONFIG_VP9_HIGHBITDEPTH cm -> use_highbitdepth , # endif oxcf -> lag_in_frames ) ;\n if ( ! cpi -> lookahead ) vpx_internal_error ( & cm -> error , VPX_CODEC_MEM_ERROR , \"Failed to allocate lag buffers\" ) ;\n if ( vp9_realloc_frame_buffer ( & cpi -> alt_ref_buffer , oxcf -> width , oxcf -> height , cm -> subsampling_x , cm -> subsampling_y , # if CONFIG_VP9_HIGHBITDEPTH cm -> use_highbitdepth , # endif VP9_ENC_BORDER_IN_PIXELS , NULL , NULL , NULL ) ) vpx_internal_error ( & cm -> error , VPX_CODEC_MEM_ERROR , \"Failed to allocate altref buffer\" ) ;\n }"}
{"idx": 534, "target": 0, "func": "static char * ext_t_0_wv_cspc_12 ( tvbuff_t * tvb _U_ , guint32 value , guint32 str_tbl _U_ ) {\n char * str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"Common Value: '%s'\" , val_to_str ( value , vals_wv_csp_12_element_value_tokens , \"<Unknown WV-CSP 1.2 Common Value token 0x%X>\" ) ) ;\n return str ;\n }"}
{"idx": 535, "target": 0, "func": "char getchar_buffer ( char * * buf ) {\n char ret ;\n DEBUG_MSG ( \"getchar_buffer: %s\" , * buf ) ;\n if ( * * buf == 0 ) return 0 ;\n if ( * ( * buf + 0 ) == 's' && * ( * buf + 1 ) == '(' ) {\n char * p ;\n int time = 0 ;\n p = strchr ( * buf , ')' ) ;\n if ( p != NULL ) {\n * p = '\\0' ;\n time = atoi ( * buf + 2 ) ;\n DEBUG_MSG ( \"getchar_buffer: sleeping %d secs\" , time ) ;\n * buf = p + 1 ;\n ec_usleep ( SEC2MICRO ( time ) ) ;\n }\n }\n ret = * buf [ 0 ] ;\n * buf = * buf + 1 ;\n DEBUG_MSG ( \"getchar_buffer: returning %c\" , ret ) ;\n return ret ;\n }"}
{"idx": 536, "target": 0, "func": "int TSAcceptorIDGet ( TSAcceptor acceptor ) {\n NetAccept * na = reinterpret_cast < NetAccept * > ( acceptor ) ;\n return na ? na -> id : - 1 ;\n }"}
{"idx": 537, "target": 1, "func": "static ossl_inline int sk_ ## t1 ## _reserve ( STACK_OF ( t1 ) * sk , int n ) {\n return OPENSSL_sk_reserve ( ( OPENSSL_STACK * ) sk , n ) ;\n }\n static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 538, "target": 0, "func": "static inline bool e1000e_have_autoneg ( E1000ECore * core ) {\n return core -> phy [ 0 ] [ PHY_CTRL ] & MII_CR_AUTO_NEG_EN ;\n }"}
{"idx": 539, "target": 1, "func": "void vp9_fht16x16_c ( const int16_t * input , int16_t * output , int stride , int tx_type ) {\n if ( tx_type == DCT_DCT ) {\n vp9_fdct16x16_c ( input , output , stride ) ;\n }\n else {\n int16_t out [ 256 ] ;\n int16_t * outptr = & out [ 0 ] ;\n int i , j ;\n int16_t temp_in [ 16 ] , temp_out [ 16 ] ;\n const transform_2d ht = FHT_16 [ tx_type ] ;\n for ( i = 0 ;\n i < 16 ;\n ++ i ) {\n for ( j = 0 ;\n j < 16 ;\n ++ j ) temp_in [ j ] = input [ j * stride + i ] * 4 ;\n ht . cols ( temp_in , temp_out ) ;\n for ( j = 0 ;\n j < 16 ;\n ++ j ) outptr [ j * 16 + i ] = ( temp_out [ j ] + 1 + ( temp_out [ j ] < 0 ) ) >> 2 ;\n }\n for ( i = 0 ;\n i < 16 ;\n ++ i ) {\n for ( j = 0 ;\n j < 16 ;\n ++ j ) temp_in [ j ] = out [ j + i * 16 ] ;\n ht . rows ( temp_in , temp_out ) ;\n for ( j = 0 ;\n j < 16 ;\n ++ j ) output [ j + i * 16 ] = temp_out [ j ] ;\n }\n }\n }"}
{"idx": 540, "target": 0, "func": "void dissect_zcl_color_control_attr_data ( proto_tree * tree , tvbuff_t * tvb , guint * offset , guint16 attr_id , guint data_type ) {\n static const int * capabilities_fields [ ] = {\n & hf_zbee_zcl_color_control_attr_color_capabilities_hs , & hf_zbee_zcl_color_control_attr_color_capabilities_ehs , & hf_zbee_zcl_color_control_attr_color_capabilities_loop , & hf_zbee_zcl_color_control_attr_color_capabilities_xy , & hf_zbee_zcl_color_control_attr_color_capabilities_ct , NULL }\n ;\n switch ( attr_id ) {\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_CURRENT_HUE : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_current_hue , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_CURRENT_SATURATION : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_current_saturation , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_REMAINING_TIME : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_remaining_time , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_CURRENT_X : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_color_x , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_CURRENT_Y : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_color_y , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_DRIFT_COMPENSATION : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_drift_compensation , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_COLOR_TEMP : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_color_temperature , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_COLOR_MODE : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_color_mode , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_NO_OF_PRIMARIES : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_nr_of_primaries , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_PRIMARY_1_X : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_primary_1_x , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_PRIMARY_1_Y : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_primary_1_y , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_PRIMARY_1_INTENSITY : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_primary_1_intensity , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_PRIMARY_2_X : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_primary_2_x , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_PRIMARY_2_Y : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_primary_2_y , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_PRIMARY_2_INTENSITY : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_primary_2_intensity , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_PRIMARY_3_X : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_primary_3_x , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_PRIMARY_3_Y : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_primary_3_y , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_PRIMARY_3_INTENSITY : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_primary_3_intensity , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_PRIMARY_4_X : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_primary_4_x , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_PRIMARY_4_Y : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_primary_4_y , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_PRIMARY_4_INTENSITY : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_primary_4_intensity , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_PRIMARY_5_X : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_primary_5_x , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_PRIMARY_5_Y : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_primary_5_y , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_PRIMARY_5_INTENSITY : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_primary_5_intensity , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_PRIMARY_6_X : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_primary_6_x , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_PRIMARY_6_Y : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_primary_6_y , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_PRIMARY_6_INTENSITY : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_primary_6_intensity , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_WHITE_POINT_X : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_white_point_x , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_WHITE_POINT_Y : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_white_point_y , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_COLOR_POINT_R_X : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_red_x , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_COLOR_POINT_R_Y : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_red_y , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_COLOR_POINT_R_INTENSITY : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_red_intensity , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_COLOR_POINT_G_X : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_green_x , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_COLOR_POINT_G_Y : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_green_y , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_COLOR_POINT_G_INTENSITY : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_green_intensity , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_COLOR_POINT_B_X : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_blue_x , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_COLOR_POINT_B_Y : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_blue_y , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_COLOR_POINT_B_INTENSITY : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_blue_intensity , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_ENHANCED_CURRENT_HUE : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_enhanced_current_hue , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_ENHANCED_COLOR_MODE : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_enhanced_color_mode , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_COLOR_LOOP_ACTIVE : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_color_loop_active , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_COLOR_LOOP_DIRECTION : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_color_loop_direction , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_COLOR_LOOP_TIME : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_color_loop_time , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_COLOR_LOOP_START_ENH_HUE : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_color_loop_start_enhanced_hue , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_COLOR_LOOP_STORED_ENH_HUE : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_color_loop_stored_enhanced_hue , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_COLOR_CAPABILITIES : proto_tree_add_bitmask ( tree , tvb , * offset , hf_zbee_zcl_color_control_attr_color_capabilities , ett_zbee_zcl_color_control_color_capabilities , capabilities_fields , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_COLOR_TEMPERATURE_PHYS_MIN : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_color_temperature_phys_min , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_COLOR_TEMPERATURE_PHYS_MAX : proto_tree_add_item ( tree , hf_zbee_zcl_color_control_attr_color_temperature_phys_max , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_COLOR_CONTROL_COMPENSATION_TEXT : default : dissect_zcl_attr_data ( tvb , tree , offset , data_type ) ;\n break ;\n }\n }"}
{"idx": 541, "target": 1, "func": "static int ipvideo_decode_block_opcode_0x2 ( IpvideoContext * s ) {\n unsigned char B ;\n int x , y ;\n if ( ! s -> is_16bpp ) {\n B = bytestream2_get_byte ( & s -> stream_ptr ) ;\n }\n else {\n B = bytestream2_get_byte ( & s -> mv_ptr ) ;\n }\n if ( B < 56 ) {\n x = 8 + ( B % 7 ) ;\n y = B / 7 ;\n }\n else {\n x = - 14 + ( ( B - 56 ) % 29 ) ;\n y = 8 + ( ( B - 56 ) / 29 ) ;\n }\n av_dlog ( NULL , \" motion byte = %d, (x, y) = (%d, %d)\\n\" , B , x , y ) ;\n return copy_from ( s , & s -> second_last_frame , x , y ) ;\n }"}
{"idx": 542, "target": 0, "func": "static int dissect_h245_MIP6Address ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MIP6Address , MIP6Address_sequence ) ;\n return offset ;\n }"}
{"idx": 543, "target": 0, "func": "void tvb_composite_append ( tvbuff_t * tvb , tvbuff_t * member ) {\n struct tvb_composite * composite_tvb = ( struct tvb_composite * ) tvb ;\n tvb_comp_t * composite ;\n DISSECTOR_ASSERT ( tvb && ! tvb -> initialized ) ;\n DISSECTOR_ASSERT ( tvb -> ops == & tvb_composite_ops ) ;\n DISSECTOR_ASSERT ( member -> length ) ;\n composite = & composite_tvb -> composite ;\n composite -> tvbs = g_slist_append ( composite -> tvbs , member ) ;\n }"}
{"idx": 544, "target": 0, "func": "static void isf_add_mean_and_past ( float * isf_q , float * isf_past ) {\n int i ;\n float tmp ;\n for ( i = 0 ;\n i < LP_ORDER ;\n i ++ ) {\n tmp = isf_q [ i ] ;\n isf_q [ i ] += isf_mean [ i ] * ( 1.0f / ( 1 << 15 ) ) ;\n isf_q [ i ] += PRED_FACTOR * isf_past [ i ] ;\n isf_past [ i ] = tmp ;\n }\n }"}
{"idx": 545, "target": 0, "func": "static int selinux_socket_getsockopt ( struct socket * sock , int level , int optname ) {\n return sock_has_perm ( current , sock -> sk , SOCKET__GETOPT ) ;\n }"}
{"idx": 546, "target": 0, "func": "static void bamboo_init ( ram_addr_t ram_size , const char * boot_device , const char * kernel_filename , const char * kernel_cmdline , const char * initrd_filename , const char * cpu_model ) {\n unsigned int pci_irq_nrs [ 4 ] = {\n 28 , 27 , 26 , 25 }\n ;\n PCIBus * pcibus ;\n CPUState * env ;\n uint64_t elf_entry ;\n uint64_t elf_lowaddr ;\n target_phys_addr_t entry = 0 ;\n target_phys_addr_t loadaddr = 0 ;\n target_long kernel_size = 0 ;\n target_ulong initrd_base = 0 ;\n target_long initrd_size = 0 ;\n target_ulong dt_base = 0 ;\n void * fdt ;\n int i ;\n env = ppc440ep_init ( & ram_size , & pcibus , pci_irq_nrs , 1 , cpu_model ) ;\n if ( pcibus ) {\n for ( i = 0 ;\n i < nb_nics ;\n i ++ ) {\n pci_nic_init_nofail ( & nd_table [ i ] , \"e1000\" , NULL ) ;\n }\n }\n if ( kernel_filename ) {\n kernel_size = load_uimage ( kernel_filename , & entry , & loadaddr , NULL ) ;\n if ( kernel_size < 0 ) {\n kernel_size = load_elf ( kernel_filename , 0 , & elf_entry , & elf_lowaddr , NULL , 1 , ELF_MACHINE , 0 ) ;\n entry = elf_entry ;\n loadaddr = elf_lowaddr ;\n }\n if ( kernel_size < 0 ) {\n fprintf ( stderr , \"qemu: could not load kernel '%s'\\n\" , kernel_filename ) ;\n exit ( 1 ) ;\n }\n }\n if ( initrd_filename ) {\n initrd_base = kernel_size + loadaddr ;\n initrd_size = load_image_targphys ( initrd_filename , initrd_base , ram_size - initrd_base ) ;\n if ( initrd_size < 0 ) {\n fprintf ( stderr , \"qemu: could not load initial ram disk '%s'\\n\" , initrd_filename ) ;\n exit ( 1 ) ;\n }\n }\n if ( kernel_filename ) {\n if ( initrd_base ) dt_base = initrd_base + initrd_size ;\n else dt_base = kernel_size + loadaddr ;\n fdt = bamboo_load_device_tree ( dt_base , ram_size , initrd_base , initrd_size , kernel_cmdline ) ;\n if ( fdt == NULL ) {\n fprintf ( stderr , \"couldn't load device tree\\n\" ) ;\n exit ( 1 ) ;\n }\n env -> gpr [ 1 ] = ( 16 << 20 ) - 8 ;\n env -> gpr [ 3 ] = dt_base ;\n env -> nip = entry ;\n }\n if ( kvm_enabled ( ) ) kvmppc_init ( ) ;\n }"}
{"idx": 547, "target": 0, "func": "int dissect_ber_sequence_of ( gboolean implicit_tag , asn1_ctx_t * actx , proto_tree * parent_tree , tvbuff_t * tvb , int offset , const ber_sequence_t * seq , gint hf_id , gint ett_id ) {\n return dissect_ber_sq_of ( implicit_tag , BER_UNI_TAG_SEQUENCE , actx , parent_tree , tvb , offset , NO_BOUND , NO_BOUND , seq , hf_id , ett_id ) ;\n }"}
{"idx": 548, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FullscreenControllerInteractiveTest , DISABLED_TestTabExitsItselfFromFullscreen ) {\n ASSERT_TRUE ( test_server ( ) -> Start ( ) ) ;\n AddTabAtIndex ( 0 , GURL ( url : : kAboutBlankURL ) , PAGE_TRANSITION_TYPED ) ;\n ASSERT_NO_FATAL_FAILURE ( ToggleTabFullscreen ( true ) ) ;\n ASSERT_NO_FATAL_FAILURE ( ToggleTabFullscreen ( false ) ) ;\n }"}
{"idx": 549, "target": 0, "func": "static void dissect_u3v_read_mem_cmd ( proto_tree * u3v_telegram_tree , tvbuff_t * tvb , packet_info * pinfo , gint startoffset , gint length , u3v_conv_info_t * u3v_conv_info , gencp_transaction_t * gencp_trans ) {\n guint64 addr = 0 ;\n const gchar * address_string = NULL ;\n gboolean is_custom_register = FALSE ;\n guint16 count = 0 ;\n gint offset = startoffset ;\n proto_item * item = NULL ;\n addr = tvb_get_letoh64 ( tvb , offset ) ;\n gencp_trans -> address = addr ;\n address_string = get_register_name_from_address ( addr , & is_custom_register , u3v_conv_info ) ;\n count = tvb_get_letohs ( tvb , offset + 10 ) ;\n gencp_trans -> count = count ;\n if ( 0xffffffff00000000 & addr ) {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" (0x%016\" G_GINT64_MODIFIER \"X (%d) bytes) %s\" , addr , count , address_string ) ;\n }\n else {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" (0x%08X (%d) bytes)\" , ( guint32 ) addr , count ) ;\n }\n item = proto_tree_add_item ( u3v_telegram_tree , hf_u3v_scd_readmem_cmd , tvb , offset , length , ENC_NA ) ;\n u3v_telegram_tree = proto_item_add_subtree ( item , ett_u3v_payload_cmd ) ;\n if ( is_known_bootstrap_register ( addr , u3v_conv_info ) ) {\n item = proto_tree_add_uint64 ( u3v_telegram_tree , hf_u3v_address , tvb , offset , 8 , addr ) ;\n proto_item_append_text ( item , \" %s\" , address_string ) ;\n }\n else {\n proto_tree_add_item ( u3v_telegram_tree , hf_u3v_custom_memory_addr , tvb , offset , 8 , ENC_LITTLE_ENDIAN ) ;\n }\n offset += 8 ;\n proto_tree_add_item ( u3v_telegram_tree , hf_u3v_reserved , tvb , offset , 2 , ENC_NA ) ;\n offset += 2 ;\n proto_tree_add_item ( u3v_telegram_tree , hf_u3v_count , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n }"}
{"idx": 550, "target": 0, "func": "void xmlListDelete ( xmlListPtr l ) {\n if ( l == NULL ) return ;\n xmlListClear ( l ) ;\n xmlFree ( l -> sentinel ) ;\n xmlFree ( l ) ;\n }"}
{"idx": 551, "target": 0, "func": "static int dissect_h245_H223AnnexCArqParameters ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_H223AnnexCArqParameters , H223AnnexCArqParameters_sequence ) ;\n return offset ;\n }"}
{"idx": 552, "target": 1, "func": "void ff_mpeg4_pred_ac ( MpegEncContext * s , int16_t * block , int n , int dir ) {\n int i ;\n int16_t * ac_val , * ac_val1 ;\n int8_t * const qscale_table = s -> current_picture . f . qscale_table ;\n ac_val = s -> ac_val [ 0 ] [ 0 ] + s -> block_index [ n ] * 16 ;\n ac_val1 = ac_val ;\n if ( s -> ac_pred ) {\n if ( dir == 0 ) {\n const int xy = s -> mb_x - 1 + s -> mb_y * s -> mb_stride ;\n ac_val -= 16 ;\n if ( s -> mb_x == 0 || s -> qscale == qscale_table [ xy ] || n == 1 || n == 3 ) {\n for ( i = 1 ;\n i < 8 ;\n i ++ ) {\n block [ s -> dsp . idct_permutation [ i << 3 ] ] += ac_val [ i ] ;\n }\n }\n else {\n for ( i = 1 ;\n i < 8 ;\n i ++ ) {\n block [ s -> dsp . idct_permutation [ i << 3 ] ] += ROUNDED_DIV ( ac_val [ i ] * qscale_table [ xy ] , s -> qscale ) ;\n }\n }\n }\n else {\n const int xy = s -> mb_x + s -> mb_y * s -> mb_stride - s -> mb_stride ;\n ac_val -= 16 * s -> block_wrap [ n ] ;\n if ( s -> mb_y == 0 || s -> qscale == qscale_table [ xy ] || n == 2 || n == 3 ) {\n for ( i = 1 ;\n i < 8 ;\n i ++ ) {\n block [ s -> dsp . idct_permutation [ i ] ] += ac_val [ i + 8 ] ;\n }\n }\n else {\n for ( i = 1 ;\n i < 8 ;\n i ++ ) {\n block [ s -> dsp . idct_permutation [ i ] ] += ROUNDED_DIV ( ac_val [ i + 8 ] * qscale_table [ xy ] , s -> qscale ) ;\n }\n }\n }\n }\n for ( i = 1 ;\n i < 8 ;\n i ++ ) ac_val1 [ i ] = block [ s -> dsp . idct_permutation [ i << 3 ] ] ;\n for ( i = 1 ;\n i < 8 ;\n i ++ ) ac_val1 [ 8 + i ] = block [ s -> dsp . idct_permutation [ i ] ] ;\n }"}
{"idx": 553, "target": 0, "func": "TEST_F ( BudgetDatabaseTest , GetBudgetNegativeTime ) {\n base : : SimpleTestClock * clock = SetClockForTesting ( ) ;\n SetSiteEngagementScore ( kEngagement ) ;\n GetBudgetDetails ( ) ;\n clock -> Advance ( base : : TimeDelta : : FromDays ( 1 ) ) ;\n GetBudgetDetails ( ) ;\n ASSERT_EQ ( 3U , prediction_ . size ( ) ) ;\n double budget = prediction_ [ 0 ] -> budget_at ;\n clock -> SetNow ( clock -> Now ( ) - base : : TimeDelta : : FromDays ( 5 ) ) ;\n GetBudgetDetails ( ) ;\n ASSERT_EQ ( 3U , prediction_ . size ( ) ) ;\n ASSERT_EQ ( budget , prediction_ [ 0 ] -> budget_at ) ;\n clock -> SetNow ( clock -> Now ( ) + base : : TimeDelta : : FromDays ( 5 ) ) ;\n GetBudgetDetails ( ) ;\n ASSERT_EQ ( 3U , prediction_ . size ( ) ) ;\n ASSERT_EQ ( budget , prediction_ [ 0 ] -> budget_at ) ;\n }"}
{"idx": 554, "target": 0, "func": "void register_ber_syntax_dissector ( const char * syntax , int proto , dissector_t dissector ) {\n dissector_handle_t dissector_handle ;\n dissector_handle = create_dissector_handle ( dissector , proto ) ;\n dissector_add_string ( \"ber.syntax\" , syntax , dissector_handle ) ;\n }"}
{"idx": 555, "target": 0, "func": "inline static void update_cache_control_information_from_config ( HttpTransact : : State * s ) {\n getCacheControl ( & s -> cache_control , & s -> request_data , s -> txn_conf ) ;\n s -> cache_info . directives . does_config_permit_lookup &= ( s -> cache_control . never_cache == false ) ;\n s -> cache_info . directives . does_config_permit_storing &= ( s -> cache_control . never_cache == false ) ;\n s -> cache_info . directives . does_client_permit_storing = HttpTransact : : does_client_request_permit_storing ( & s -> cache_control , & s -> hdr_info . client_request ) ;\n s -> cache_info . directives . does_client_permit_lookup = HttpTransact : : does_client_request_permit_cached_response ( s -> txn_conf , & s -> cache_control , & s -> hdr_info . client_request , s -> via_string ) ;\n s -> cache_info . directives . does_client_permit_dns_storing = HttpTransact : : does_client_request_permit_dns_caching ( & s -> cache_control , & s -> hdr_info . client_request ) ;\n if ( s -> client_info . http_version == HTTPVersion ( 0 , 9 ) ) {\n s -> cache_info . directives . does_client_permit_lookup = false ;\n s -> cache_info . directives . does_client_permit_storing = false ;\n }\n if ( s -> cache_control . cache_responses_to_cookies >= 0 ) {\n s -> txn_conf -> cache_responses_to_cookies = s -> cache_control . cache_responses_to_cookies ;\n }\n }"}
{"idx": 556, "target": 1, "func": "static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 557, "target": 0, "func": "static void set_block_thresholds ( const VP9_COMMON * cm , RD_OPT * rd ) {\n int i , bsize , segment_id ;\n for ( segment_id = 0 ;\n segment_id < MAX_SEGMENTS ;\n ++ segment_id ) {\n const int qindex = clamp ( vp9_get_qindex ( & cm -> seg , segment_id , cm -> base_qindex ) + cm -> y_dc_delta_q , 0 , MAXQ ) ;\n const int q = compute_rd_thresh_factor ( qindex , cm -> bit_depth ) ;\n for ( bsize = 0 ;\n bsize < BLOCK_SIZES ;\n ++ bsize ) {\n const int t = q * rd_thresh_block_size_factor [ bsize ] ;\n const int thresh_max = INT_MAX / t ;\n if ( bsize >= BLOCK_8X8 ) {\n for ( i = 0 ;\n i < MAX_MODES ;\n ++ i ) rd -> threshes [ segment_id ] [ bsize ] [ i ] = rd -> thresh_mult [ i ] < thresh_max ? rd -> thresh_mult [ i ] * t / 4 : INT_MAX ;\n }\n else {\n for ( i = 0 ;\n i < MAX_REFS ;\n ++ i ) rd -> threshes [ segment_id ] [ bsize ] [ i ] = rd -> thresh_mult_sub8x8 [ i ] < thresh_max ? rd -> thresh_mult_sub8x8 [ i ] * t / 4 : INT_MAX ;\n }\n }\n }\n }"}
{"idx": 558, "target": 0, "func": "static int dissect_h225_OCTET_STRING_SIZE_2 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 2 , 2 , FALSE , NULL ) ;\n return offset ;\n }"}
{"idx": 559, "target": 0, "func": "static void gtkui_connection_inject ( void ) {\n GtkWidget * dialog , * text , * label , * vbox , * frame , * content_area ;\n GtkWidget * button1 , * button2 , * hbox ;\n GtkTextBuffer * buf ;\n GtkTextIter start , end ;\n char tmp [ MAX_ASCII_ADDR_LEN ] ;\n gint response = 0 ;\n DEBUG_MSG ( \"gtk_connection_inject\" ) ;\n if ( curr_conn == NULL ) return ;\n dialog = gtk_dialog_new_with_buttons ( \"Character Injection\" , GTK_WINDOW ( window ) , GTK_DIALOG_MODAL , GTK_STOCK_CANCEL , GTK_RESPONSE_CANCEL , GTK_STOCK_OK , GTK_RESPONSE_OK , NULL ) ;\n # if ! GTK_CHECK_VERSION ( 2 , 22 , 0 ) gtk_dialog_set_has_separator ( GTK_DIALOG ( dialog ) , FALSE ) ;\n # endif gtk_container_set_border_width ( GTK_CONTAINER ( dialog ) , 5 ) ;\n content_area = gtk_dialog_get_content_area ( GTK_DIALOG ( dialog ) ) ;\n vbox = gtkui_box_new ( GTK_ORIENTATION_VERTICAL , 0 , FALSE ) ;\n gtk_box_pack_start ( GTK_BOX ( content_area ) , vbox , FALSE , FALSE , 0 ) ;\n label = gtk_label_new ( \"Packet destination:\" ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_box_pack_start ( GTK_BOX ( vbox ) , label , FALSE , FALSE , 0 ) ;\n hbox = gtkui_box_new ( GTK_ORIENTATION_HORIZONTAL , 5 , FALSE ) ;\n gtk_box_pack_start ( GTK_BOX ( vbox ) , hbox , FALSE , FALSE , 0 ) ;\n button1 = gtk_radio_button_new_with_label ( NULL , ip_addr_ntoa ( & curr_conn -> L3_addr2 , tmp ) ) ;\n gtk_box_pack_start ( GTK_BOX ( hbox ) , button1 , FALSE , FALSE , 0 ) ;\n button2 = gtk_radio_button_new_with_label_from_widget ( GTK_RADIO_BUTTON ( button1 ) , ip_addr_ntoa ( & curr_conn -> L3_addr1 , tmp ) ) ;\n gtk_box_pack_start ( GTK_BOX ( hbox ) , button2 , FALSE , FALSE , 0 ) ;\n label = gtk_label_new ( \"Characters to be injected:\" ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_box_pack_start ( GTK_BOX ( vbox ) , label , FALSE , FALSE , 0 ) ;\n frame = gtk_frame_new ( NULL ) ;\n gtk_frame_set_shadow_type ( GTK_FRAME ( frame ) , GTK_SHADOW_IN ) ;\n gtk_box_pack_start ( GTK_BOX ( vbox ) , frame , TRUE , TRUE , 5 ) ;\n text = gtk_text_view_new ( ) ;\n gtk_text_view_set_wrap_mode ( GTK_TEXT_VIEW ( text ) , GTK_WRAP_CHAR ) ;\n gtk_container_add ( GTK_CONTAINER ( frame ) , text ) ;\n gtk_widget_show_all ( dialog ) ;\n response = gtk_dialog_run ( GTK_DIALOG ( dialog ) ) ;\n if ( response == GTK_RESPONSE_OK ) {\n gtk_widget_hide ( dialog ) ;\n SAFE_REALLOC ( injectbuf , 501 * sizeof ( char ) ) ;\n memset ( injectbuf , 0 , 501 ) ;\n buf = gtk_text_view_get_buffer ( GTK_TEXT_VIEW ( text ) ) ;\n gtk_text_buffer_get_start_iter ( buf , & start ) ;\n gtk_text_buffer_get_start_iter ( buf , & end ) ;\n gtk_text_iter_forward_chars ( & end , 500 ) ;\n strncpy ( injectbuf , gtk_text_buffer_get_text ( buf , & start , & end , FALSE ) , 501 ) ;\n if ( gtk_toggle_button_get_active ( GTK_TOGGLE_BUTTON ( button1 ) ) ) gtkui_inject_user ( 1 ) ;\n else if ( gtk_toggle_button_get_active ( GTK_TOGGLE_BUTTON ( button2 ) ) ) gtkui_inject_user ( 2 ) ;\n }\n gtk_widget_destroy ( dialog ) ;\n }"}
{"idx": 560, "target": 0, "func": "static int tqi_decode_mb ( MpegEncContext * s , int16_t ( * block ) [ 64 ] ) {\n int n ;\n s -> dsp . clear_blocks ( block [ 0 ] ) ;\n for ( n = 0 ;\n n < 6 ;\n n ++ ) if ( ff_mpeg1_decode_block_intra ( s , block [ n ] , n ) < 0 ) return - 1 ;\n return 0 ;\n }"}
{"idx": 561, "target": 0, "func": "static int zrsdparams ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n ref * pFilter ;\n ref * pDecodeParms ;\n int Intent = 0 ;\n bool AsyncRead = false ;\n ref empty_array , filter1_array , parms1_array ;\n uint i ;\n int code = 0 ;\n if ( ref_stack_count ( & o_stack ) < 1 ) return_error ( gs_error_stackunderflow ) ;\n if ( ! r_has_type ( op , t_dictionary ) && ! r_has_type ( op , t_null ) ) {\n return_error ( gs_error_typecheck ) ;\n }\n make_empty_array ( & empty_array , a_readonly ) ;\n if ( r_has_type ( op , t_dictionary ) && dict_find_string ( op , \"Filter\" , & pFilter ) > 0 ) {\n if ( ! r_is_array ( pFilter ) ) {\n if ( ! r_has_type ( pFilter , t_name ) ) return_error ( gs_error_typecheck ) ;\n make_array ( & filter1_array , a_readonly , 1 , pFilter ) ;\n pFilter = & filter1_array ;\n }\n }\n else pFilter = & empty_array ;\n if ( pFilter != & empty_array && dict_find_string ( op , \"DecodeParms\" , & pDecodeParms ) > 0 ) {\n if ( pFilter == & filter1_array ) {\n make_array ( & parms1_array , a_readonly , 1 , pDecodeParms ) ;\n pDecodeParms = & parms1_array ;\n }\n else if ( ! r_is_array ( pDecodeParms ) ) return_error ( gs_error_typecheck ) ;\n else if ( r_size ( pFilter ) != r_size ( pDecodeParms ) ) return_error ( gs_error_rangecheck ) ;\n }\n else pDecodeParms = 0 ;\n for ( i = 0 ;\n i < r_size ( pFilter ) ;\n ++ i ) {\n ref f , fname , dp ;\n array_get ( imemory , pFilter , ( long ) i , & f ) ;\n if ( ! r_has_type ( & f , t_name ) ) return_error ( gs_error_typecheck ) ;\n name_string_ref ( imemory , & f , & fname ) ;\n if ( r_size ( & fname ) < 6 || memcmp ( fname . value . bytes + r_size ( & fname ) - 6 , \"Decode\" , 6 ) ) return_error ( gs_error_rangecheck ) ;\n if ( pDecodeParms ) {\n array_get ( imemory , pDecodeParms , ( long ) i , & dp ) ;\n if ( ! ( r_has_type ( & dp , t_dictionary ) || r_has_type ( & dp , t_null ) ) ) return_error ( gs_error_typecheck ) ;\n }\n }\n if ( r_has_type ( op , t_dictionary ) ) code = dict_int_param ( op , \"Intent\" , 0 , 3 , 0 , & Intent ) ;\n if ( code < 0 && code != gs_error_rangecheck ) return code ;\n if ( r_has_type ( op , t_dictionary ) ) if ( ( code = dict_bool_param ( op , \"AsyncRead\" , false , & AsyncRead ) ) < 0 ) return code ;\n push ( 1 ) ;\n op [ - 1 ] = * pFilter ;\n if ( pDecodeParms ) * op = * pDecodeParms ;\n else make_null ( op ) ;\n return 0 ;\n }"}
{"idx": 562, "target": 0, "func": "static void cin_decode_rle ( const unsigned char * src , int src_size , unsigned char * dst , int dst_size ) {\n int len , code ;\n unsigned char * dst_end = dst + dst_size ;\n const unsigned char * src_end = src + src_size ;\n while ( src < src_end && dst < dst_end ) {\n code = * src ++ ;\n if ( code & 0x80 ) {\n len = code - 0x7F ;\n memset ( dst , * src ++ , FFMIN ( len , dst_end - dst ) ) ;\n }\n else {\n len = code + 1 ;\n memcpy ( dst , src , FFMIN ( len , dst_end - dst ) ) ;\n src += len ;\n }\n dst += len ;\n }\n }"}
{"idx": 563, "target": 0, "func": "clump_t * clump_splay_walk_bwd_init ( clump_splay_walker * sw , const gs_ref_memory_t * mem ) {\n clump_t * cp = mem -> root ;\n if ( cp ) {\n SANITY_CHECK ( cp ) ;\n sw -> from = SPLAY_FROM_RIGHT ;\n while ( cp -> right ) {\n cp = cp -> right ;\n }\n }\n sw -> cp = cp ;\n sw -> end = NULL ;\n return cp ;\n }"}
{"idx": 564, "target": 1, "func": "SPL_METHOD ( SplDoublyLinkedList , offsetUnset ) {\n zval * zindex ;\n long index ;\n spl_dllist_object * intern ;\n spl_ptr_llist_element * element ;\n spl_ptr_llist * llist ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"z\" , & zindex ) == FAILURE ) {\n return ;\n }\n intern = ( spl_dllist_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n index = spl_offset_convert_to_long ( zindex TSRMLS_CC ) ;\n llist = intern -> llist ;\n if ( index < 0 || index >= intern -> llist -> count ) {\n zend_throw_exception ( spl_ce_OutOfRangeException , \"Offset out of range\" , 0 TSRMLS_CC ) ;\n return ;\n }\n element = spl_ptr_llist_offset ( intern -> llist , index , intern -> flags & SPL_DLLIST_IT_LIFO ) ;\n if ( element != NULL ) {\n if ( element -> prev ) {\n element -> prev -> next = element -> next ;\n }\n if ( element -> next ) {\n element -> next -> prev = element -> prev ;\n }\n if ( element == llist -> head ) {\n llist -> head = element -> next ;\n }\n if ( element == llist -> tail ) {\n llist -> tail = element -> prev ;\n }\n llist -> count -- ;\n if ( llist -> dtor ) {\n llist -> dtor ( element TSRMLS_CC ) ;\n }\n zval_ptr_dtor ( ( zval * * ) & element -> data ) ;\n element -> data = NULL ;\n SPL_LLIST_DELREF ( element ) ;\n }\n else {\n zend_throw_exception ( spl_ce_OutOfRangeException , \"Offset invalid\" , 0 TSRMLS_CC ) ;\n return ;\n }\n }"}
{"idx": 565, "target": 0, "func": "static int dissect_h245_INTEGER_1_127 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 127U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 566, "target": 0, "func": "static int string_contains ( PyObject * str_obj , PyObject * sub_obj ) {\n if ( ! PyString_CheckExact ( sub_obj ) ) {\n # ifdef Py_USING_UNICODE if ( PyUnicode_Check ( sub_obj ) ) return PyUnicode_Contains ( str_obj , sub_obj ) ;\n # endif if ( ! PyString_Check ( sub_obj ) ) {\n PyErr_Format ( PyExc_TypeError , \"'in <string>' requires string as left operand, \" \"not %.200s\" , Py_TYPE ( sub_obj ) -> tp_name ) ;\n return - 1 ;\n }\n }\n return stringlib_contains_obj ( str_obj , sub_obj ) ;\n }"}
{"idx": 567, "target": 0, "func": "int i2d_PKCS7_fp ( FILE * fp , PKCS7 * p7 ) {\n return ASN1_item_i2d_fp ( ASN1_ITEM_rptr ( PKCS7 ) , fp , p7 ) ;\n }"}
{"idx": 568, "target": 0, "func": "void proto_registrar_dump_values ( void ) {\n header_field_info * hfinfo ;\n int i , len , vi ;\n const value_string * vals ;\n const val64_string * vals64 ;\n const range_string * range ;\n const true_false_string * tfs ;\n len = gpa_hfinfo . len ;\n for ( i = 0 ;\n i < len ;\n i ++ ) {\n if ( gpa_hfinfo . hfi [ i ] == NULL ) continue ;\n PROTO_REGISTRAR_GET_NTH ( i , hfinfo ) ;\n if ( hfinfo -> id == hf_text_only ) {\n continue ;\n }\n if ( proto_registrar_is_protocol ( i ) ) {\n continue ;\n }\n # if 0 if ( hfinfo -> same_name_prev_id != - 1 ) continue ;\n # endif vals = NULL ;\n vals64 = NULL ;\n range = NULL ;\n tfs = NULL ;\n if ( hfinfo -> strings != NULL ) {\n if ( ( hfinfo -> display & FIELD_DISPLAY_E_MASK ) != BASE_CUSTOM && ( hfinfo -> type == FT_UINT8 || hfinfo -> type == FT_UINT16 || hfinfo -> type == FT_UINT24 || hfinfo -> type == FT_UINT32 || hfinfo -> type == FT_UINT40 || hfinfo -> type == FT_UINT48 || hfinfo -> type == FT_UINT56 || hfinfo -> type == FT_UINT64 || hfinfo -> type == FT_INT8 || hfinfo -> type == FT_INT16 || hfinfo -> type == FT_INT24 || hfinfo -> type == FT_INT32 || hfinfo -> type == FT_INT40 || hfinfo -> type == FT_INT48 || hfinfo -> type == FT_INT56 || hfinfo -> type == FT_INT64 ) ) {\n if ( hfinfo -> display & BASE_RANGE_STRING ) {\n range = ( const range_string * ) hfinfo -> strings ;\n }\n else if ( hfinfo -> display & BASE_EXT_STRING ) {\n vals = VALUE_STRING_EXT_VS_P ( ( value_string_ext * ) hfinfo -> strings ) ;\n }\n else if ( hfinfo -> display & BASE_VAL64_STRING ) {\n vals64 = ( const val64_string * ) hfinfo -> strings ;\n }\n else {\n vals = ( const value_string * ) hfinfo -> strings ;\n }\n }\n else if ( hfinfo -> type == FT_BOOLEAN ) {\n tfs = ( const struct true_false_string * ) hfinfo -> strings ;\n }\n }\n if ( vals ) {\n if ( hfinfo -> display & BASE_EXT_STRING ) {\n value_string_ext * vse_p = ( value_string_ext * ) hfinfo -> strings ;\n if ( ! value_string_ext_validate ( vse_p ) ) {\n g_warning ( \"Invalid value_string_ext ptr for: %s\" , hfinfo -> abbrev ) ;\n continue ;\n }\n try_val_to_str_ext ( 0 , vse_p ) ;\n ws_debug_printf ( \"E\\t%s\\t%u\\t%s\\t%s\\n\" , hfinfo -> abbrev , VALUE_STRING_EXT_VS_NUM_ENTRIES ( vse_p ) , VALUE_STRING_EXT_VS_NAME ( vse_p ) , value_string_ext_match_type_str ( vse_p ) ) ;\n }\n vi = 0 ;\n while ( vals [ vi ] . strptr ) {\n if ( hfinfo -> display == BASE_HEX ) {\n ws_debug_printf ( \"V\\t%s\\t0x%x\\t%s\\n\" , hfinfo -> abbrev , vals [ vi ] . value , vals [ vi ] . strptr ) ;\n }\n else {\n ws_debug_printf ( \"V\\t%s\\t%u\\t%s\\n\" , hfinfo -> abbrev , vals [ vi ] . value , vals [ vi ] . strptr ) ;\n }\n vi ++ ;\n }\n }\n else if ( vals64 ) {\n vi = 0 ;\n while ( vals64 [ vi ] . strptr ) {\n ws_debug_printf ( \"V64\\t%s\\t%\" G_GINT64_MODIFIER \"u\\t%s\\n\" , hfinfo -> abbrev , vals64 [ vi ] . value , vals64 [ vi ] . strptr ) ;\n vi ++ ;\n }\n }\n else if ( range ) {\n vi = 0 ;\n while ( range [ vi ] . strptr ) {\n if ( ( hfinfo -> display & FIELD_DISPLAY_E_MASK ) == BASE_HEX ) {\n ws_debug_printf ( \"R\\t%s\\t0x%x\\t0x%x\\t%s\\n\" , hfinfo -> abbrev , range [ vi ] . value_min , range [ vi ] . value_max , range [ vi ] . strptr ) ;\n }\n else {\n ws_debug_printf ( \"R\\t%s\\t%u\\t%u\\t%s\\n\" , hfinfo -> abbrev , range [ vi ] . value_min , range [ vi ] . value_max , range [ vi ] . strptr ) ;\n }\n vi ++ ;\n }\n }\n else if ( tfs ) {\n ws_debug_printf ( \"T\\t%s\\t%s\\t%s\\n\" , hfinfo -> abbrev , tfs -> true_string , tfs -> false_string ) ;\n }\n }\n }"}
{"idx": 569, "target": 0, "func": "static void pdf_run_gs_BM ( fz_context * ctx , pdf_processor * proc , const char * blendmode ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_gstate * gstate = pdf_flush_text ( ctx , pr ) ;\n gstate -> blendmode = fz_lookup_blendmode ( blendmode ) ;\n }"}
{"idx": 570, "target": 0, "func": "static inline void fl6_sock_release ( struct ip6_flowlabel * fl ) {\n if ( fl ) atomic_dec ( & fl -> users ) ;\n }"}
{"idx": 571, "target": 0, "func": "static long dtls1_get_message_fragment ( SSL * s , int st1 , int stn , long max , int * ok ) {\n unsigned char wire [ DTLS1_HM_HEADER_LENGTH ] ;\n unsigned long len , frag_off , frag_len ;\n int i , al ;\n struct hm_header_st msg_hdr ;\n if ( ( frag_len = dtls1_retrieve_buffered_fragment ( s , max , ok ) ) || * ok ) {\n if ( * ok ) s -> init_num = frag_len ;\n return frag_len ;\n }\n i = s -> method -> ssl_read_bytes ( s , SSL3_RT_HANDSHAKE , wire , DTLS1_HM_HEADER_LENGTH , 0 ) ;\n if ( i <= 0 ) {\n s -> rwstate = SSL_READING ;\n * ok = 0 ;\n return i ;\n }\n if ( i != DTLS1_HM_HEADER_LENGTH ) {\n al = SSL_AD_UNEXPECTED_MESSAGE ;\n SSLerr ( SSL_F_DTLS1_GET_MESSAGE_FRAGMENT , SSL_R_UNEXPECTED_MESSAGE ) ;\n goto f_err ;\n }\n dtls1_get_message_header ( wire , & msg_hdr ) ;\n if ( msg_hdr . seq != s -> d1 -> handshake_read_seq && ! ( s -> d1 -> listen && msg_hdr . seq == 1 ) ) return dtls1_process_out_of_seq_message ( s , & msg_hdr , ok ) ;\n len = msg_hdr . msg_len ;\n frag_off = msg_hdr . frag_off ;\n frag_len = msg_hdr . frag_len ;\n if ( frag_len && frag_len < len ) return dtls1_reassemble_fragment ( s , & msg_hdr , ok ) ;\n if ( ! s -> server && s -> d1 -> r_msg_hdr . frag_off == 0 && wire [ 0 ] == SSL3_MT_HELLO_REQUEST ) {\n if ( wire [ 1 ] == 0 && wire [ 2 ] == 0 && wire [ 3 ] == 0 ) {\n if ( s -> msg_callback ) s -> msg_callback ( 0 , s -> version , SSL3_RT_HANDSHAKE , wire , DTLS1_HM_HEADER_LENGTH , s , s -> msg_callback_arg ) ;\n s -> init_num = 0 ;\n return dtls1_get_message_fragment ( s , st1 , stn , max , ok ) ;\n }\n else {\n al = SSL_AD_UNEXPECTED_MESSAGE ;\n SSLerr ( SSL_F_DTLS1_GET_MESSAGE_FRAGMENT , SSL_R_UNEXPECTED_MESSAGE ) ;\n goto f_err ;\n }\n }\n if ( ( al = dtls1_preprocess_fragment ( s , & msg_hdr , max ) ) ) goto f_err ;\n s -> state = stn ;\n if ( frag_len > 0 ) {\n unsigned char * p = ( unsigned char * ) s -> init_buf -> data + DTLS1_HM_HEADER_LENGTH ;\n i = s -> method -> ssl_read_bytes ( s , SSL3_RT_HANDSHAKE , & p [ frag_off ] , frag_len , 0 ) ;\n if ( i <= 0 ) {\n s -> rwstate = SSL_READING ;\n * ok = 0 ;\n return i ;\n }\n }\n else i = 0 ;\n if ( i != ( int ) frag_len ) {\n al = SSL3_AD_ILLEGAL_PARAMETER ;\n SSLerr ( SSL_F_DTLS1_GET_MESSAGE_FRAGMENT , SSL3_AD_ILLEGAL_PARAMETER ) ;\n goto f_err ;\n }\n * ok = 1 ;\n s -> init_num = frag_len ;\n return frag_len ;\n f_err : ssl3_send_alert ( s , SSL3_AL_FATAL , al ) ;\n s -> init_num = 0 ;\n * ok = 0 ;\n return ( - 1 ) ;\n }"}
{"idx": 572, "target": 0, "func": "void http_post_cb ( struct evhttp_request * req , void * arg ) {\n struct evbuffer * evb ;\n event_debug ( ( \"%s: called\\n\" , __func__ ) ) ;\n if ( req -> type != EVHTTP_REQ_POST ) {\n fprintf ( stdout , \"FAILED (post type)\\n\" ) ;\n exit ( 1 ) ;\n }\n if ( EVBUFFER_LENGTH ( req -> input_buffer ) != strlen ( POST_DATA ) ) {\n fprintf ( stdout , \"FAILED (length: %zu vs %zu)\\n\" , EVBUFFER_LENGTH ( req -> input_buffer ) , strlen ( POST_DATA ) ) ;\n exit ( 1 ) ;\n }\n if ( memcmp ( EVBUFFER_DATA ( req -> input_buffer ) , POST_DATA , strlen ( POST_DATA ) ) ) {\n fprintf ( stdout , \"FAILED (data)\\n\" ) ;\n fprintf ( stdout , \"Got :%s\\n\" , EVBUFFER_DATA ( req -> input_buffer ) ) ;\n fprintf ( stdout , \"Want:%s\\n\" , POST_DATA ) ;\n exit ( 1 ) ;\n }\n evb = evbuffer_new ( ) ;\n evbuffer_add_printf ( evb , \"This is funny\" ) ;\n evhttp_send_reply ( req , HTTP_OK , \"Everything is fine\" , evb ) ;\n evbuffer_free ( evb ) ;\n }"}
{"idx": 573, "target": 0, "func": "static void pitch_sharpening ( int pitch_lag_int , float beta , float * fixed_vector ) {\n int i ;\n for ( i = pitch_lag_int ;\n i < SUBFR_SIZE ;\n i ++ ) fixed_vector [ i ] += beta * fixed_vector [ i - pitch_lag_int ] ;\n }"}
{"idx": 574, "target": 0, "func": "static void decouple_float ( COOKContext * q , COOKSubpacket * p , int subband , float f1 , float f2 , float * decode_buffer , float * mlt_buffer1 , float * mlt_buffer2 ) {\n int j , tmp_idx ;\n for ( j = 0 ;\n j < SUBBAND_SIZE ;\n j ++ ) {\n tmp_idx = ( ( p -> js_subband_start + subband ) * SUBBAND_SIZE ) + j ;\n mlt_buffer1 [ SUBBAND_SIZE * subband + j ] = f1 * decode_buffer [ tmp_idx ] ;\n mlt_buffer2 [ SUBBAND_SIZE * subband + j ] = f2 * decode_buffer [ tmp_idx ] ;\n }\n }"}
{"idx": 575, "target": 1, "func": "static void vble_restore_plane ( VBLEContext * ctx , int plane , int offset , int width , int height ) {\n AVFrame * pic = ctx -> avctx -> coded_frame ;\n uint8_t * dst = pic -> data [ plane ] ;\n uint8_t * val = ctx -> val + offset ;\n int stride = pic -> linesize [ plane ] ;\n int i , j , left , left_top ;\n for ( i = 0 ;\n i < height ;\n i ++ ) {\n for ( j = 0 ;\n j < width ;\n j ++ ) val [ j ] = ( val [ j ] >> 1 ) ^ - ( val [ j ] & 1 ) ;\n if ( i ) {\n left = 0 ;\n left_top = dst [ - stride ] ;\n ctx -> dsp . add_hfyu_median_prediction ( dst , dst - stride , val , width , & left , & left_top ) ;\n }\n else {\n dst [ 0 ] = val [ 0 ] ;\n for ( j = 1 ;\n j < width ;\n j ++ ) dst [ j ] = val [ j ] + dst [ j - 1 ] ;\n }\n dst += stride ;\n val += width ;\n }\n }"}
{"idx": 576, "target": 1, "func": "void vp9_temporal_filter ( VP9_COMP * cpi , int distance ) {\n VP9_COMMON * const cm = & cpi -> common ;\n RATE_CONTROL * const rc = & cpi -> rc ;\n int frame ;\n int frames_to_blur ;\n int start_frame ;\n int strength ;\n int frames_to_blur_backward ;\n int frames_to_blur_forward ;\n struct scale_factors sf ;\n YV12_BUFFER_CONFIG * frames [ MAX_LAG_BUFFERS ] = {\n NULL }\n ;\n adjust_arnr_filter ( cpi , distance , rc -> gfu_boost , & frames_to_blur , & strength ) ;\n frames_to_blur_backward = ( frames_to_blur / 2 ) ;\n frames_to_blur_forward = ( ( frames_to_blur - 1 ) / 2 ) ;\n start_frame = distance + frames_to_blur_forward ;\n for ( frame = 0 ;\n frame < frames_to_blur ;\n ++ frame ) {\n const int which_buffer = start_frame - frame ;\n struct lookahead_entry * buf = vp9_lookahead_peek ( cpi -> lookahead , which_buffer ) ;\n frames [ frames_to_blur - 1 - frame ] = & buf -> img ;\n }\n if ( is_two_pass_svc ( cpi ) ) {\n int frame_used = 0 ;\n vp9_setup_scale_factors_for_frame ( & sf , get_frame_new_buffer ( cm ) -> y_crop_width , get_frame_new_buffer ( cm ) -> y_crop_height , get_frame_new_buffer ( cm ) -> y_crop_width , get_frame_new_buffer ( cm ) -> y_crop_height ) ;\n for ( frame = 0 ;\n frame < frames_to_blur ;\n ++ frame ) {\n if ( cm -> mi_cols * MI_SIZE != frames [ frame ] -> y_width || cm -> mi_rows * MI_SIZE != frames [ frame ] -> y_height ) {\n if ( vp9_realloc_frame_buffer ( & cpi -> svc . scaled_frames [ frame_used ] , cm -> width , cm -> height , cm -> subsampling_x , cm -> subsampling_y , # if CONFIG_VP9_HIGHBITDEPTH cm -> use_highbitdepth , # endif VP9_ENC_BORDER_IN_PIXELS , NULL , NULL , NULL ) ) vpx_internal_error ( & cm -> error , VPX_CODEC_MEM_ERROR , \"Failed to reallocate alt_ref_buffer\" ) ;\n frames [ frame ] = vp9_scale_if_required ( cm , frames [ frame ] , & cpi -> svc . scaled_frames [ frame_used ] ) ;\n ++ frame_used ;\n }\n }\n }\n else {\n vp9_setup_scale_factors_for_frame ( & sf , get_frame_new_buffer ( cm ) -> y_crop_width , get_frame_new_buffer ( cm ) -> y_crop_height , cm -> width , cm -> height ) ;\n }\n temporal_filter_iterate_c ( cpi , frames , frames_to_blur , frames_to_blur_backward , strength , & sf ) ;\n }"}
{"idx": 577, "target": 1, "func": "static Image * ReadCAPTIONImage ( const ImageInfo * image_info , ExceptionInfo * exception ) {\n char * caption , geometry [ MaxTextExtent ] , * property , * text ;\n const char * gravity , * option ;\n DrawInfo * draw_info ;\n Image * image ;\n MagickBooleanType split , status ;\n register ssize_t i ;\n size_t height , width ;\n TypeMetric metrics ;\n assert ( image_info != ( const ImageInfo * ) NULL ) ;\n assert ( image_info -> signature == MagickSignature ) ;\n if ( image_info -> debug != MagickFalse ) ( void ) LogMagickEvent ( TraceEvent , GetMagickModule ( ) , \"%s\" , image_info -> filename ) ;\n assert ( exception != ( ExceptionInfo * ) NULL ) ;\n assert ( exception -> signature == MagickSignature ) ;\n image = AcquireImage ( image_info ) ;\n ( void ) ResetImagePage ( image , \"0x0+0+0\" ) ;\n option = GetImageOption ( image_info , \"filename\" ) ;\n if ( option == ( const char * ) NULL ) property = InterpretImageProperties ( image_info , image , image_info -> filename ) ;\n else if ( LocaleNCompare ( option , \"caption:\" , 8 ) == 0 ) property = InterpretImageProperties ( image_info , image , option + 8 ) ;\n else property = InterpretImageProperties ( image_info , image , option ) ;\n ( void ) SetImageProperty ( image , \"caption\" , property ) ;\n property = DestroyString ( property ) ;\n caption = ConstantString ( GetImageProperty ( image , \"caption\" ) ) ;\n draw_info = CloneDrawInfo ( image_info , ( DrawInfo * ) NULL ) ;\n ( void ) CloneString ( & draw_info -> text , caption ) ;\n gravity = GetImageOption ( image_info , \"gravity\" ) ;\n if ( gravity != ( char * ) NULL ) draw_info -> gravity = ( GravityType ) ParseCommandOption ( MagickGravityOptions , MagickFalse , gravity ) ;\n split = MagickFalse ;\n status = MagickTrue ;\n if ( image -> columns == 0 ) {\n text = AcquireString ( caption ) ;\n i = FormatMagickCaption ( image , draw_info , split , & metrics , & text ) ;\n ( void ) CloneString ( & draw_info -> text , text ) ;\n text = DestroyString ( text ) ;\n ( void ) FormatLocaleString ( geometry , MaxTextExtent , \"%+g%+g\" , - metrics . bounds . x1 , metrics . ascent ) ;\n if ( draw_info -> gravity == UndefinedGravity ) ( void ) CloneString ( & draw_info -> geometry , geometry ) ;\n status = GetMultilineTypeMetrics ( image , draw_info , & metrics ) ;\n width = ( size_t ) floor ( metrics . width + draw_info -> stroke_width + 0.5 ) ;\n image -> columns = width ;\n }\n if ( image -> rows == 0 ) {\n split = MagickTrue ;\n text = AcquireString ( caption ) ;\n i = FormatMagickCaption ( image , draw_info , split , & metrics , & text ) ;\n ( void ) CloneString ( & draw_info -> text , text ) ;\n text = DestroyString ( text ) ;\n ( void ) FormatLocaleString ( geometry , MaxTextExtent , \"%+g%+g\" , - metrics . bounds . x1 , metrics . ascent ) ;\n if ( draw_info -> gravity == UndefinedGravity ) ( void ) CloneString ( & draw_info -> geometry , geometry ) ;\n status = GetMultilineTypeMetrics ( image , draw_info , & metrics ) ;\n image -> rows = ( size_t ) ( ( i + 1 ) * ( metrics . ascent - metrics . descent + draw_info -> interline_spacing + draw_info -> stroke_width ) + 0.5 ) ;\n }\n if ( status != MagickFalse ) status = SetImageExtent ( image , image -> columns , image -> rows ) ;\n if ( status == MagickFalse ) {\n draw_info = DestroyDrawInfo ( draw_info ) ;\n InheritException ( exception , & image -> exception ) ;\n return ( DestroyImageList ( image ) ) ;\n }\n if ( SetImageBackgroundColor ( image ) == MagickFalse ) {\n draw_info = DestroyDrawInfo ( draw_info ) ;\n InheritException ( exception , & image -> exception ) ;\n image = DestroyImageList ( image ) ;\n return ( ( Image * ) NULL ) ;\n }\n if ( ( fabs ( image_info -> pointsize ) < MagickEpsilon ) && ( strlen ( caption ) > 0 ) ) {\n double high , low ;\n for ( ;\n ;\n draw_info -> pointsize *= 2.0 ) {\n text = AcquireString ( caption ) ;\n i = FormatMagickCaption ( image , draw_info , split , & metrics , & text ) ;\n ( void ) CloneString ( & draw_info -> text , text ) ;\n text = DestroyString ( text ) ;\n ( void ) FormatLocaleString ( geometry , MaxTextExtent , \"%+g%+g\" , - metrics . bounds . x1 , metrics . ascent ) ;\n if ( draw_info -> gravity == UndefinedGravity ) ( void ) CloneString ( & draw_info -> geometry , geometry ) ;\n status = GetMultilineTypeMetrics ( image , draw_info , & metrics ) ;\n ( void ) status ;\n width = ( size_t ) floor ( metrics . width + draw_info -> stroke_width + 0.5 ) ;\n height = ( size_t ) floor ( metrics . height + draw_info -> stroke_width + 0.5 ) ;\n if ( ( image -> columns != 0 ) && ( image -> rows != 0 ) ) {\n if ( ( width >= image -> columns ) && ( height >= image -> rows ) ) break ;\n }\n else if ( ( ( image -> columns != 0 ) && ( width >= image -> columns ) ) || ( ( image -> rows != 0 ) && ( height >= image -> rows ) ) ) break ;\n }\n high = draw_info -> pointsize ;\n for ( low = 1.0 ;\n ( high - low ) > 0.5 ;\n ) {\n draw_info -> pointsize = ( low + high ) / 2.0 ;\n text = AcquireString ( caption ) ;\n i = FormatMagickCaption ( image , draw_info , split , & metrics , & text ) ;\n ( void ) CloneString ( & draw_info -> text , text ) ;\n text = DestroyString ( text ) ;\n ( void ) FormatLocaleString ( geometry , MaxTextExtent , \"%+g%+g\" , - metrics . bounds . x1 , metrics . ascent ) ;\n if ( draw_info -> gravity == UndefinedGravity ) ( void ) CloneString ( & draw_info -> geometry , geometry ) ;\n ( void ) GetMultilineTypeMetrics ( image , draw_info , & metrics ) ;\n width = ( size_t ) floor ( metrics . width + draw_info -> stroke_width + 0.5 ) ;\n height = ( size_t ) floor ( metrics . height + draw_info -> stroke_width + 0.5 ) ;\n if ( ( image -> columns != 0 ) && ( image -> rows != 0 ) ) {\n if ( ( width < image -> columns ) && ( height < image -> rows ) ) low = draw_info -> pointsize + 0.5 ;\n else high = draw_info -> pointsize - 0.5 ;\n }\n else if ( ( ( image -> columns != 0 ) && ( width < image -> columns ) ) || ( ( image -> rows != 0 ) && ( height < image -> rows ) ) ) low = draw_info -> pointsize + 0.5 ;\n else high = draw_info -> pointsize - 0.5 ;\n }\n draw_info -> pointsize = floor ( ( low + high ) / 2.0 - 0.5 ) ;\n }\n i = FormatMagickCaption ( image , draw_info , split , & metrics , & caption ) ;\n ( void ) CloneString ( & draw_info -> text , caption ) ;\n ( void ) FormatLocaleString ( geometry , MaxTextExtent , \"%+g%+g\" , MagickMax ( draw_info -> direction == RightToLeftDirection ? image -> columns - metrics . bounds . x2 : - metrics . bounds . x1 , 0.0 ) , draw_info -> gravity == UndefinedGravity ? metrics . ascent : 0.0 ) ;\n draw_info -> geometry = AcquireString ( geometry ) ;\n status = AnnotateImage ( image , draw_info ) ;\n if ( image_info -> pointsize == 0.0 ) {\n char pointsize [ MaxTextExtent ] ;\n ( void ) FormatLocaleString ( pointsize , MaxTextExtent , \"%.20g\" , draw_info -> pointsize ) ;\n ( void ) SetImageProperty ( image , \"caption:pointsize\" , pointsize ) ;\n }\n draw_info = DestroyDrawInfo ( draw_info ) ;\n caption = DestroyString ( caption ) ;\n if ( status == MagickFalse ) {\n image = DestroyImageList ( image ) ;\n return ( ( Image * ) NULL ) ;\n }\n return ( GetFirstImageInList ( image ) ) ;\n }"}
{"idx": 578, "target": 0, "func": "SPL_METHOD ( SplDoublyLinkedList , unserialize ) {\n spl_dllist_object * intern = ( spl_dllist_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n zval * flags , * elem ;\n char * buf ;\n int buf_len ;\n const unsigned char * p , * s ;\n php_unserialize_data_t var_hash ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"s\" , & buf , & buf_len ) == FAILURE ) {\n return ;\n }\n if ( buf_len == 0 ) {\n zend_throw_exception_ex ( spl_ce_UnexpectedValueException , 0 TSRMLS_CC , \"Serialized string cannot be empty\" ) ;\n return ;\n }\n s = p = ( const unsigned char * ) buf ;\n PHP_VAR_UNSERIALIZE_INIT ( var_hash ) ;\n ALLOC_INIT_ZVAL ( flags ) ;\n if ( ! php_var_unserialize ( & flags , & p , s + buf_len , & var_hash TSRMLS_CC ) || Z_TYPE_P ( flags ) != IS_LONG ) {\n zval_ptr_dtor ( & flags ) ;\n goto error ;\n }\n intern -> flags = Z_LVAL_P ( flags ) ;\n zval_ptr_dtor ( & flags ) ;\n while ( * p == ':' ) {\n ++ p ;\n ALLOC_INIT_ZVAL ( elem ) ;\n if ( ! php_var_unserialize ( & elem , & p , s + buf_len , & var_hash TSRMLS_CC ) ) {\n zval_ptr_dtor ( & elem ) ;\n goto error ;\n }\n spl_ptr_llist_push ( intern -> llist , elem TSRMLS_CC ) ;\n }\n if ( * p != '\\0' ) {\n goto error ;\n }\n PHP_VAR_UNSERIALIZE_DESTROY ( var_hash ) ;\n return ;\n error : PHP_VAR_UNSERIALIZE_DESTROY ( var_hash ) ;\n zend_throw_exception_ex ( spl_ce_UnexpectedValueException , 0 TSRMLS_CC , \"Error at offset %ld of %d bytes\" , ( long ) ( ( char * ) p - buf ) , buf_len ) ;\n return ;\n }"}
{"idx": 579, "target": 0, "func": "static void FreeArray ( _cmsDICarray * a ) {\n if ( a -> Name . Offsets != NULL ) FreeElem ( & a -> Name ) ;\n if ( a -> Value . Offsets != NULL ) FreeElem ( & a -> Value ) ;\n if ( a -> DisplayName . Offsets != NULL ) FreeElem ( & a -> DisplayName ) ;\n if ( a -> DisplayValue . Offsets != NULL ) FreeElem ( & a -> DisplayValue ) ;\n }"}
{"idx": 580, "target": 0, "func": "static void read_graphic_control_extension ( Gif_Context * gfc , Gif_Image * gfi , Gif_Reader * grr ) {\n uint8_t len ;\n uint8_t crap [ GIF_MAX_BLOCK ] ;\n len = gifgetbyte ( grr ) ;\n if ( len == 4 ) {\n uint8_t packed = gifgetbyte ( grr ) ;\n gfi -> disposal = ( packed >> 2 ) & 0x07 ;\n gfi -> delay = gifgetunsigned ( grr ) ;\n gfi -> transparent = gifgetbyte ( grr ) ;\n if ( ! ( packed & 0x01 ) ) gfi -> transparent = - 1 ;\n len -= 4 ;\n }\n if ( len > 0 ) {\n gif_read_error ( gfc , 1 , \"bad graphic extension\" ) ;\n gifgetblock ( crap , len , grr ) ;\n }\n len = gifgetbyte ( grr ) ;\n while ( len > 0 ) {\n gif_read_error ( gfc , 1 , \"bad graphic extension\" ) ;\n gifgetblock ( crap , len , grr ) ;\n len = gifgetbyte ( grr ) ;\n }\n }"}
{"idx": 581, "target": 0, "func": "void convert_to_format_v1 ( char * query ) {\n int last_c_was_quote = 0 ;\n char * p = query , * to = query ;\n char * end = strend ( query ) ;\n char last_c ;\n while ( p <= end ) {\n if ( * p == '\\n' && ! last_c_was_quote ) {\n * to ++ = * p ++ ;\n while ( * p && my_isspace ( charset_info , * p ) ) p ++ ;\n last_c_was_quote = 0 ;\n }\n else if ( * p == '\\'' || * p == '\"' || * p == '`' ) {\n last_c = * p ;\n * to ++ = * p ++ ;\n while ( * p && * p != last_c ) * to ++ = * p ++ ;\n * to ++ = * p ++ ;\n last_c_was_quote = 1 ;\n }\n else {\n * to ++ = * p ++ ;\n last_c_was_quote = 0 ;\n }\n }\n }"}
{"idx": 582, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n AnmContext * s = avctx -> priv_data ;\n const int buf_size = avpkt -> size ;\n uint8_t * dst , * dst_end ;\n int count , ret ;\n if ( ( ret = ff_reget_buffer ( avctx , s -> frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n dst = s -> frame -> data [ 0 ] ;\n dst_end = s -> frame -> data [ 0 ] + s -> frame -> linesize [ 0 ] * avctx -> height ;\n bytestream2_init ( & s -> gb , avpkt -> data , buf_size ) ;\n if ( bytestream2_get_byte ( & s -> gb ) != 0x42 ) {\n av_log_ask_for_sample ( avctx , \"unknown record type\\n\" ) ;\n return buf_size ;\n }\n if ( bytestream2_get_byte ( & s -> gb ) ) {\n av_log_ask_for_sample ( avctx , \"padding bytes not supported\\n\" ) ;\n return buf_size ;\n }\n bytestream2_skip ( & s -> gb , 2 ) ;\n s -> x = 0 ;\n do {\n # define OP ( gb , pixel , count ) op ( & dst , dst_end , ( gb ) , ( pixel ) , ( count ) , & s -> x , avctx -> width , s -> frame -> linesize [ 0 ] ) int type = bytestream2_get_byte ( & s -> gb ) ;\n count = type & 0x7F ;\n type >>= 7 ;\n if ( count ) {\n if ( OP ( type ? NULL : & s -> gb , - 1 , count ) ) break ;\n }\n else if ( ! type ) {\n int pixel ;\n count = bytestream2_get_byte ( & s -> gb ) ;\n pixel = bytestream2_get_byte ( & s -> gb ) ;\n if ( OP ( NULL , pixel , count ) ) break ;\n }\n else {\n int pixel ;\n type = bytestream2_get_le16 ( & s -> gb ) ;\n count = type & 0x3FFF ;\n type >>= 14 ;\n if ( ! count ) {\n if ( type == 0 ) break ;\n if ( type == 2 ) {\n av_log_ask_for_sample ( avctx , \"unknown opcode\" ) ;\n return AVERROR_PATCHWELCOME ;\n }\n continue ;\n }\n pixel = type == 3 ? bytestream2_get_byte ( & s -> gb ) : - 1 ;\n if ( type == 1 ) count += 0x4000 ;\n if ( OP ( type == 2 ? & s -> gb : NULL , pixel , count ) ) break ;\n }\n }\n while ( bytestream2_get_bytes_left ( & s -> gb ) > 0 ) ;\n memcpy ( s -> frame -> data [ 1 ] , s -> palette , AVPALETTE_SIZE ) ;\n * got_frame = 1 ;\n if ( ( ret = av_frame_ref ( data , s -> frame ) ) < 0 ) return ret ;\n return buf_size ;\n }"}
{"idx": 583, "target": 0, "func": "int TSHttpSsnTransactionCount ( TSHttpSsn ssnp ) {\n sdk_assert ( sdk_sanity_check_http_ssn ( ssnp ) == TS_SUCCESS ) ;\n ProxyClientSession * cs = reinterpret_cast < ProxyClientSession * > ( ssnp ) ;\n return cs -> get_transact_count ( ) ;\n }"}
{"idx": 584, "target": 0, "func": "static REFERENCE_MODE read_frame_reference_mode ( const VP9_COMMON * cm , vp9_reader * r ) {\n if ( is_compound_reference_allowed ( cm ) ) {\n return vp9_read_bit ( r ) ? ( vp9_read_bit ( r ) ? REFERENCE_MODE_SELECT : COMPOUND_REFERENCE ) : SINGLE_REFERENCE ;\n }\n else {\n return SINGLE_REFERENCE ;\n }\n }"}
{"idx": 585, "target": 0, "func": "static void init_2d_vlc_rl ( RLTable * rl ) {\n int i ;\n for ( i = 0 ;\n i < rl -> vlc . table_size ;\n i ++ ) {\n int code = rl -> vlc . table [ i ] [ 0 ] ;\n int len = rl -> vlc . table [ i ] [ 1 ] ;\n int level , run ;\n if ( len == 0 ) {\n run = 65 ;\n level = MAX_LEVEL ;\n }\n else if ( len < 0 ) {\n run = 0 ;\n level = code ;\n }\n else {\n if ( code == rl -> n ) {\n run = 65 ;\n level = 0 ;\n }\n else if ( code == rl -> n + 1 ) {\n run = 0 ;\n level = 127 ;\n }\n else {\n run = rl -> table_run [ code ] + 1 ;\n level = rl -> table_level [ code ] ;\n }\n }\n rl -> rl_vlc [ 0 ] [ i ] . len = len ;\n rl -> rl_vlc [ 0 ] [ i ] . level = level ;\n rl -> rl_vlc [ 0 ] [ i ] . run = run ;\n }\n }"}
{"idx": 586, "target": 0, "func": "int dissect_ber_object_identifier ( gboolean implicit_tag , asn1_ctx_t * actx , proto_tree * tree , tvbuff_t * tvb , int offset , gint hf_id , tvbuff_t * * value_tvb ) {\n return dissect_ber_any_oid ( implicit_tag , actx , tree , tvb , offset , hf_id , value_tvb , TRUE ) ;\n }"}
{"idx": 587, "target": 0, "func": "kadm5_ret_t kadm5_delete_policy ( void * server_handle , kadm5_policy_t name ) {\n kadm5_server_handle_t handle = server_handle ;\n osa_policy_ent_t entry ;\n int ret ;\n CHECK_HANDLE ( server_handle ) ;\n krb5_clear_error_message ( handle -> context ) ;\n if ( name == ( kadm5_policy_t ) NULL ) return EINVAL ;\n if ( strlen ( name ) == 0 ) return KADM5_BAD_POLICY ;\n ret = krb5_db_get_policy ( handle -> context , name , & entry ) ;\n if ( ret == KRB5_KDB_NOENTRY ) return KADM5_UNK_POLICY ;\n else if ( ret ) return ret ;\n krb5_db_free_policy ( handle -> context , entry ) ;\n ret = krb5_db_delete_policy ( handle -> context , name ) ;\n if ( ret == KRB5_KDB_POLICY_REF ) ret = KADM5_POLICY_REF ;\n return ( ret == 0 ) ? KADM5_OK : ret ;\n }"}
{"idx": 588, "target": 0, "func": "static int fetch_children ( char * line , void * data ) {\n struct ChildCtx * cc = data ;\n anum_t anum ;\n if ( ! line || sscanf ( line , ANUM , & anum ) != 1 ) return 0 ;\n for ( unsigned int i = 0 ;\n i < cc -> ctx -> msgcount ;\n i ++ ) if ( NHDR ( cc -> ctx -> hdrs [ i ] ) -> article_num == anum ) return 0 ;\n if ( cc -> num >= cc -> max ) {\n cc -> max *= 2 ;\n mutt_mem_realloc ( & cc -> child , sizeof ( anum_t ) * cc -> max ) ;\n }\n cc -> child [ cc -> num ++ ] = anum ;\n return 0 ;\n }"}
{"idx": 589, "target": 0, "func": "static void test_bug5194 ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND * my_bind ;\n char * query ;\n char * param_str ;\n int param_str_length ;\n const char * stmt_text ;\n int rc ;\n float float_array [ 250 ] = {\n 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.5 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 }\n ;\n float * fa_ptr = float_array ;\n const int COLUMN_COUNT = sizeof ( float_array ) / sizeof ( * float_array ) ;\n const int MIN_ROWS_PER_INSERT = 262 ;\n const int MAX_ROWS_PER_INSERT = 300 ;\n const int MAX_PARAM_COUNT = COLUMN_COUNT * MAX_ROWS_PER_INSERT ;\n const char * query_template = \"insert into t1 values %s\" ;\n const int CHARS_PER_PARAM = 5 ;\n const int uint16_max = 65535 ;\n int nrows , i ;\n myheader ( \"test_bug5194\" ) ;\n stmt_text = \"drop table if exists t1\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n stmt_text = \"create table if not exists t1\" \"(c1 float, c2 float, c3 float, c4 float, c5 float, c6 float, \" \"c7 float, c8 float, c9 float, c10 float, c11 float, c12 float, \" \"c13 float, c14 float, c15 float, c16 float, c17 float, c18 float, \" \"c19 float, c20 float, c21 float, c22 float, c23 float, c24 float, \" \"c25 float, c26 float, c27 float, c28 float, c29 float, c30 float, \" \"c31 float, c32 float, c33 float, c34 float, c35 float, c36 float, \" \"c37 float, c38 float, c39 float, c40 float, c41 float, c42 float, \" \"c43 float, c44 float, c45 float, c46 float, c47 float, c48 float, \" \"c49 float, c50 float, c51 float, c52 float, c53 float, c54 float, \" \"c55 float, c56 float, c57 float, c58 float, c59 float, c60 float, \" \"c61 float, c62 float, c63 float, c64 float, c65 float, c66 float, \" \"c67 float, c68 float, c69 float, c70 float, c71 float, c72 float, \" \"c73 float, c74 float, c75 float, c76 float, c77 float, c78 float, \" \"c79 float, c80 float, c81 float, c82 float, c83 float, c84 float, \" \"c85 float, c86 float, c87 float, c88 float, c89 float, c90 float, \" \"c91 float, c92 float, c93 float, c94 float, c95 float, c96 float, \" \"c97 float, c98 float, c99 float, c100 float, c101 float, c102 float, \" \"c103 float, c104 float, c105 float, c106 float, c107 float, c108 float, \" \"c109 float, c110 float, c111 float, c112 float, c113 float, c114 float, \" \"c115 float, c116 float, c117 float, c118 float, c119 float, c120 float, \" \"c121 float, c122 float, c123 float, c124 float, c125 float, c126 float, \" \"c127 float, c128 float, c129 float, c130 float, c131 float, c132 float, \" \"c133 float, c134 float, c135 float, c136 float, c137 float, c138 float, \" \"c139 float, c140 float, c141 float, c142 float, c143 float, c144 float, \" \"c145 float, c146 float, c147 float, c148 float, c149 float, c150 float, \" \"c151 float, c152 float, c153 float, c154 float, c155 float, c156 float, \" \"c157 float, c158 float, c159 float, c160 float, c161 float, c162 float, \" \"c163 float, c164 float, c165 float, c166 float, c167 float, c168 float, \" \"c169 float, c170 float, c171 float, c172 float, c173 float, c174 float, \" \"c175 float, c176 float, c177 float, c178 float, c179 float, c180 float, \" \"c181 float, c182 float, c183 float, c184 float, c185 float, c186 float, \" \"c187 float, c188 float, c189 float, c190 float, c191 float, c192 float, \" \"c193 float, c194 float, c195 float, c196 float, c197 float, c198 float, \" \"c199 float, c200 float, c201 float, c202 float, c203 float, c204 float, \" \"c205 float, c206 float, c207 float, c208 float, c209 float, c210 float, \" \"c211 float, c212 float, c213 float, c214 float, c215 float, c216 float, \" \"c217 float, c218 float, c219 float, c220 float, c221 float, c222 float, \" \"c223 float, c224 float, c225 float, c226 float, c227 float, c228 float, \" \"c229 float, c230 float, c231 float, c232 float, c233 float, c234 float, \" \"c235 float, c236 float, c237 float, c238 float, c239 float, c240 float, \" \"c241 float, c242 float, c243 float, c244 float, c245 float, c246 float, \" \"c247 float, c248 float, c249 float, c250 float)\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n my_bind = ( MYSQL_BIND * ) malloc ( MAX_PARAM_COUNT * sizeof ( MYSQL_BIND ) ) ;\n query = ( char * ) malloc ( strlen ( query_template ) + MAX_PARAM_COUNT * CHARS_PER_PARAM + 1 ) ;\n param_str = ( char * ) malloc ( COLUMN_COUNT * CHARS_PER_PARAM ) ;\n if ( my_bind == 0 || query == 0 || param_str == 0 ) {\n fprintf ( stderr , \"Can't allocate enough memory for query structs\\n\" ) ;\n if ( my_bind ) free ( my_bind ) ;\n if ( query ) free ( query ) ;\n if ( param_str ) free ( param_str ) ;\n return ;\n }\n stmt = mysql_stmt_init ( mysql ) ;\n sprintf ( param_str , \"(\" ) ;\n for ( i = 1 ;\n i < COLUMN_COUNT ;\n ++ i ) strcat ( param_str , \"?, \" ) ;\n strcat ( param_str , \"?)\" ) ;\n param_str_length = strlen ( param_str ) ;\n memset ( my_bind , 0 , MAX_PARAM_COUNT * sizeof ( MYSQL_BIND ) ) ;\n for ( i = 0 ;\n i < MAX_PARAM_COUNT ;\n ++ i ) {\n my_bind [ i ] . buffer_type = MYSQL_TYPE_FLOAT ;\n my_bind [ i ] . buffer = fa_ptr ;\n if ( ++ fa_ptr == float_array + COLUMN_COUNT ) fa_ptr = float_array ;\n }\n for ( nrows = MIN_ROWS_PER_INSERT ;\n nrows <= MAX_ROWS_PER_INSERT ;\n ++ nrows ) {\n char * query_ptr ;\n sprintf ( query , query_template , param_str ) ;\n query_ptr = query + strlen ( query ) ;\n for ( i = 1 ;\n i < nrows ;\n ++ i ) {\n memcpy ( query_ptr , \", \" , 2 ) ;\n query_ptr += 2 ;\n memcpy ( query_ptr , param_str , param_str_length ) ;\n query_ptr += param_str_length ;\n }\n * query_ptr = '\\0' ;\n rc = mysql_stmt_prepare ( stmt , query , query_ptr - query ) ;\n if ( rc && nrows * COLUMN_COUNT > uint16_max ) {\n if ( ! opt_silent ) printf ( \"Failed to prepare a statement with %d placeholders \" \"(as expected).\\n\" , nrows * COLUMN_COUNT ) ;\n break ;\n }\n else check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) printf ( \"Insert: query length= %d, row count= %d, param count= %lu\\n\" , ( int ) strlen ( query ) , nrows , mysql_stmt_param_count ( stmt ) ) ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n mysql_stmt_reset ( stmt ) ;\n }\n mysql_stmt_close ( stmt ) ;\n free ( my_bind ) ;\n free ( query ) ;\n free ( param_str ) ;\n stmt_text = \"drop table t1\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n }"}
{"idx": 590, "target": 0, "func": "bool is_delimiter ( const char * p ) {\n uint match = 0 ;\n char * delim = delimiter ;\n while ( * p && * p == * delim ++ ) {\n match ++ ;\n p ++ ;\n }\n return ( match == delimiter_length ) ;\n }"}
{"idx": 591, "target": 0, "func": "static int dissect_h225_UnregistrationRequest ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_UnregistrationRequest , UnregistrationRequest_sequence ) ;\n return offset ;\n }"}
{"idx": 592, "target": 0, "func": "X509_REQ * d2i_X509_REQ_fp ( FILE * fp , X509_REQ * * req ) {\n return ASN1_item_d2i_fp ( ASN1_ITEM_rptr ( X509_REQ ) , fp , req ) ;\n }"}
{"idx": 593, "target": 0, "func": "static void * Type_MPE_Read ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number * nItems , cmsUInt32Number SizeOfTag ) {\n cmsUInt16Number InputChans , OutputChans ;\n cmsUInt32Number ElementCount ;\n cmsPipeline * NewLUT = NULL ;\n cmsUInt32Number BaseOffset ;\n BaseOffset = io -> Tell ( io ) - sizeof ( _cmsTagBase ) ;\n if ( ! _cmsReadUInt16Number ( io , & InputChans ) ) return NULL ;\n if ( ! _cmsReadUInt16Number ( io , & OutputChans ) ) return NULL ;\n NewLUT = cmsPipelineAlloc ( self -> ContextID , InputChans , OutputChans ) ;\n if ( NewLUT == NULL ) return NULL ;\n if ( ! _cmsReadUInt32Number ( io , & ElementCount ) ) return NULL ;\n if ( ! ReadPositionTable ( self , io , ElementCount , BaseOffset , NewLUT , ReadMPEElem ) ) {\n if ( NewLUT != NULL ) cmsPipelineFree ( NewLUT ) ;\n * nItems = 0 ;\n return NULL ;\n }\n * nItems = 1 ;\n return NewLUT ;\n cmsUNUSED_PARAMETER ( SizeOfTag ) ;\n }"}
{"idx": 594, "target": 0, "func": "gboolean logcat_binary_dump_open ( wtap_dumper * wdh , int * err ) {\n wdh -> subtype_write = logcat_binary_dump ;\n wdh -> subtype_close = NULL ;\n switch ( wdh -> encap ) {\n case WTAP_ENCAP_LOGCAT : wdh -> tsprecision = WTAP_FILE_TSPREC_USEC ;\n break ;\n default : * err = WTAP_ERR_UNSUPPORTED_FILE_TYPE ;\n return FALSE ;\n }\n return TRUE ;\n }"}
{"idx": 595, "target": 0, "func": "static void set_frozenxids ( bool minmxid_only ) {\n int dbnum ;\n PGconn * conn , * conn_template1 ;\n PGresult * dbres ;\n int ntups ;\n int i_datname ;\n int i_datallowconn ;\n if ( ! minmxid_only ) prep_status ( \"Setting frozenxid and minmxid counters in new cluster\" ) ;\n else prep_status ( \"Setting minmxid counter in new cluster\" ) ;\n conn_template1 = connectToServer ( & new_cluster , \"template1\" ) ;\n if ( ! minmxid_only ) PQclear ( executeQueryOrDie ( conn_template1 , \"UPDATE pg_catalog.pg_database \" \"SET datfrozenxid = '%u'\" , old_cluster . controldata . chkpnt_nxtxid ) ) ;\n PQclear ( executeQueryOrDie ( conn_template1 , \"UPDATE pg_catalog.pg_database \" \"SET datminmxid = '%u'\" , old_cluster . controldata . chkpnt_nxtmulti ) ) ;\n dbres = executeQueryOrDie ( conn_template1 , \"SELECT datname, datallowconn \" \"FROM pg_catalog.pg_database\" ) ;\n i_datname = PQfnumber ( dbres , \"datname\" ) ;\n i_datallowconn = PQfnumber ( dbres , \"datallowconn\" ) ;\n ntups = PQntuples ( dbres ) ;\n for ( dbnum = 0 ;\n dbnum < ntups ;\n dbnum ++ ) {\n char * datname = PQgetvalue ( dbres , dbnum , i_datname ) ;\n char * datallowconn = PQgetvalue ( dbres , dbnum , i_datallowconn ) ;\n if ( strcmp ( datallowconn , \"f\" ) == 0 ) PQclear ( executeQueryOrDie ( conn_template1 , \"ALTER DATABASE %s ALLOW_CONNECTIONS = true\" , quote_identifier ( datname ) ) ) ;\n conn = connectToServer ( & new_cluster , datname ) ;\n if ( ! minmxid_only ) PQclear ( executeQueryOrDie ( conn , \"UPDATE pg_catalog.pg_class \" \"SET relfrozenxid = '%u' \" \"WHERE relkind IN ('r', 'm', 't')\" , old_cluster . controldata . chkpnt_nxtxid ) ) ;\n PQclear ( executeQueryOrDie ( conn , \"UPDATE pg_catalog.pg_class \" \"SET relminmxid = '%u' \" \"WHERE relkind IN ('r', 'm', 't')\" , old_cluster . controldata . chkpnt_nxtmulti ) ) ;\n PQfinish ( conn ) ;\n if ( strcmp ( datallowconn , \"f\" ) == 0 ) PQclear ( executeQueryOrDie ( conn_template1 , \"ALTER DATABASE %s ALLOW_CONNECTIONS = false\" , quote_identifier ( datname ) ) ) ;\n }\n PQclear ( dbres ) ;\n PQfinish ( conn_template1 ) ;\n check_ok ( ) ;\n }"}
{"idx": 596, "target": 0, "func": "static void DumpGlyphToNameMap ( char * fontname , SplineFont * sf ) {\n char * d , * e ;\n char * newname = malloc ( strlen ( fontname ) + 10 ) ;\n FILE * file ;\n int i , k , max ;\n SplineChar * sc ;\n strcpy ( newname , fontname ) ;\n d = strrchr ( newname , '/' ) ;\n if ( d == NULL ) d = newname ;\n e = strrchr ( d , '.' ) ;\n if ( e == NULL ) e = newname + strlen ( newname ) ;\n strcpy ( e , \".g2n\" ) ;\n file = fopen ( newname , \"wb\" ) ;\n if ( file == NULL ) {\n LogError ( _ ( \"Failed to open glyph to name map file for writing: %s\\n\" ) , newname ) ;\n free ( newname ) ;\n return ;\n }\n if ( sf -> subfontcnt == 0 ) max = sf -> glyphcnt ;\n else {\n for ( k = max = 0 ;\n k < sf -> subfontcnt ;\n ++ k ) if ( sf -> subfonts [ k ] -> glyphcnt > max ) max = sf -> subfonts [ k ] -> glyphcnt ;\n }\n for ( i = 0 ;\n i < max ;\n ++ i ) {\n sc = NULL ;\n if ( sf -> subfontcnt == 0 ) sc = sf -> glyphs [ i ] ;\n else {\n for ( k = 0 ;\n k < sf -> subfontcnt ;\n ++ k ) if ( i < sf -> subfonts [ k ] -> glyphcnt ) if ( ( sc = sf -> subfonts [ k ] -> glyphs [ i ] ) != NULL ) break ;\n }\n if ( sc != NULL && sc -> ttf_glyph != - 1 ) {\n fprintf ( file , \"GLYPHID %d\\tPSNAME %s\" , sc -> ttf_glyph , sc -> name ) ;\n if ( sc -> unicodeenc != - 1 ) fprintf ( file , \"\\tUNICODE %04X\" , sc -> unicodeenc ) ;\n putc ( '\\n' , file ) ;\n }\n }\n fclose ( file ) ;\n free ( newname ) ;\n }"}
{"idx": 597, "target": 0, "func": "static PHP_NAMED_FUNCTION ( zif_zip_entry_read ) {\n zval * zip_entry ;\n long len = 0 ;\n zip_read_rsrc * zr_rsrc ;\n char * buffer ;\n int n = 0 ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"r|l\" , & zip_entry , & len ) == FAILURE ) {\n return ;\n }\n ZEND_FETCH_RESOURCE ( zr_rsrc , zip_read_rsrc * , & zip_entry , - 1 , le_zip_entry_name , le_zip_entry ) ;\n if ( len <= 0 ) {\n len = 1024 ;\n }\n if ( zr_rsrc -> zf ) {\n buffer = safe_emalloc ( len , 1 , 1 ) ;\n n = zip_fread ( zr_rsrc -> zf , buffer , len ) ;\n if ( n > 0 ) {\n buffer [ n ] = 0 ;\n RETURN_STRINGL ( buffer , n , 0 ) ;\n }\n else {\n efree ( buffer ) ;\n RETURN_EMPTY_STRING ( ) }\n }\n else {\n RETURN_FALSE ;\n }\n }"}
{"idx": 598, "target": 0, "func": "int gs_copydevice ( gx_device * * pnew_dev , const gx_device * dev , gs_memory_t * mem ) {\n return gs_copydevice2 ( pnew_dev , dev , false , mem ) ;\n }"}
{"idx": 599, "target": 1, "func": "void vp9_init_plane_quantizers ( VP9_COMP * cpi , MACROBLOCK * x ) {\n const VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n QUANTS * const quants = & cpi -> quants ;\n const int segment_id = xd -> mi [ 0 ] -> mbmi . segment_id ;\n const int qindex = vp9_get_qindex ( & cm -> seg , segment_id , cm -> base_qindex ) ;\n const int rdmult = vp9_compute_rd_mult ( cpi , qindex + cm -> y_dc_delta_q ) ;\n const int zbin = cpi -> zbin_mode_boost ;\n int i ;\n x -> plane [ 0 ] . quant = quants -> y_quant [ qindex ] ;\n x -> plane [ 0 ] . quant_fp = quants -> y_quant_fp [ qindex ] ;\n x -> plane [ 0 ] . round_fp = quants -> y_round_fp [ qindex ] ;\n x -> plane [ 0 ] . quant_shift = quants -> y_quant_shift [ qindex ] ;\n x -> plane [ 0 ] . zbin = quants -> y_zbin [ qindex ] ;\n x -> plane [ 0 ] . round = quants -> y_round [ qindex ] ;\n x -> plane [ 0 ] . quant_thred [ 0 ] = cm -> y_dequant [ qindex ] [ 0 ] * cm -> y_dequant [ qindex ] [ 0 ] ;\n x -> plane [ 0 ] . quant_thred [ 1 ] = cm -> y_dequant [ qindex ] [ 1 ] * cm -> y_dequant [ qindex ] [ 1 ] ;\n x -> plane [ 0 ] . zbin_extra = ( int16_t ) ( ( cm -> y_dequant [ qindex ] [ 1 ] * zbin ) >> 7 ) ;\n xd -> plane [ 0 ] . dequant = cm -> y_dequant [ qindex ] ;\n for ( i = 1 ;\n i < 3 ;\n i ++ ) {\n x -> plane [ i ] . quant = quants -> uv_quant [ qindex ] ;\n x -> plane [ i ] . quant_fp = quants -> uv_quant_fp [ qindex ] ;\n x -> plane [ i ] . round_fp = quants -> uv_round_fp [ qindex ] ;\n x -> plane [ i ] . quant_shift = quants -> uv_quant_shift [ qindex ] ;\n x -> plane [ i ] . zbin = quants -> uv_zbin [ qindex ] ;\n x -> plane [ i ] . round = quants -> uv_round [ qindex ] ;\n x -> plane [ i ] . quant_thred [ 0 ] = cm -> y_dequant [ qindex ] [ 0 ] * cm -> y_dequant [ qindex ] [ 0 ] ;\n x -> plane [ i ] . quant_thred [ 1 ] = cm -> y_dequant [ qindex ] [ 1 ] * cm -> y_dequant [ qindex ] [ 1 ] ;\n x -> plane [ i ] . zbin_extra = ( int16_t ) ( ( cm -> uv_dequant [ qindex ] [ 1 ] * zbin ) >> 7 ) ;\n xd -> plane [ i ] . dequant = cm -> uv_dequant [ qindex ] ;\n }\n x -> skip_block = vp9_segfeature_active ( & cm -> seg , segment_id , SEG_LVL_SKIP ) ;\n x -> q_index = qindex ;\n x -> errorperbit = rdmult >> 6 ;\n x -> errorperbit += ( x -> errorperbit == 0 ) ;\n vp9_initialize_me_consts ( cpi , x -> q_index ) ;\n }"}
{"idx": 600, "target": 0, "func": "static const char * name ## _get_name ( void * ctx ) \\ {\n return # name ;\n \\ }\n static const AVClass name ## _class = {\n . class_name = # name , . item_name = name ## _get_name , . option = name ## _options \\ }\n typedef struct DefaultContext {\n const AVClass * class ;\n int nokey ;\n int noprint_wrappers ;\n int nested_section [ SECTION_MAX_NB_LEVELS ] ;\n }\n DefaultContext ;\n # undef OFFSET # define OFFSET ( x ) offsetof ( DefaultContext , x ) static const AVOption default_options [ ] = {\n {\n \"noprint_wrappers\" , \"do not print headers and footers\" , OFFSET ( noprint_wrappers ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n \"nw\" , \"do not print headers and footers\" , OFFSET ( noprint_wrappers ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n \"nokey\" , \"force no key printing\" , OFFSET ( nokey ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n \"nk\" , \"force no key printing\" , OFFSET ( nokey ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n NULL }\n , }\n ;\n DEFINE_WRITER_CLASS ( default ) ;\n static inline char * upcase_string ( char * dst , size_t dst_size , const char * src ) {\n int i ;\n for ( i = 0 ;\n src [ i ] && i < dst_size - 1 ;\n i ++ ) dst [ i ] = av_toupper ( src [ i ] ) ;\n dst [ i ] = 0 ;\n return dst ;\n }\n static void default_print_section_header ( WriterContext * wctx ) {\n DefaultContext * def = wctx -> priv ;\n char buf [ 32 ] ;\n const struct section * section = wctx -> section [ wctx -> level ] ;\n const struct section * parent_section = wctx -> level ? wctx -> section [ wctx -> level - 1 ] : NULL ;\n av_bprint_clear ( & wctx -> section_pbuf [ wctx -> level ] ) ;\n if ( parent_section && ! ( parent_section -> flags & ( SECTION_FLAG_IS_WRAPPER | SECTION_FLAG_IS_ARRAY ) ) ) {\n def -> nested_section [ wctx -> level ] = 1 ;\n av_bprintf ( & wctx -> section_pbuf [ wctx -> level ] , \"%s%s:\" , wctx -> section_pbuf [ wctx -> level - 1 ] . str , upcase_string ( buf , sizeof ( buf ) , av_x_if_null ( section -> element_name , section -> name ) ) ) ;\n }\n if ( def -> noprint_wrappers || def -> nested_section [ wctx -> level ] ) return ;\n if ( ! ( section -> flags & ( SECTION_FLAG_IS_WRAPPER | SECTION_FLAG_IS_ARRAY ) ) ) printf ( \"[%s]\\n\" , upcase_string ( buf , sizeof ( buf ) , section -> name ) ) ;\n }\n static void default_print_section_footer ( WriterContext * wctx ) {\n DefaultContext * def = wctx -> priv ;\n const struct section * section = wctx -> section [ wctx -> level ] ;\n char buf [ 32 ] ;\n if ( def -> noprint_wrappers || def -> nested_section [ wctx -> level ] ) return ;\n if ( ! ( section -> flags & ( SECTION_FLAG_IS_WRAPPER | SECTION_FLAG_IS_ARRAY ) ) ) printf ( \"[/%s]\\n\" , upcase_string ( buf , sizeof ( buf ) , section -> name ) ) ;\n }\n static void default_print_str ( WriterContext * wctx , const char * key , const char * value ) {\n DefaultContext * def = wctx -> priv ;\n if ( ! def -> nokey ) printf ( \"%s%s=\" , wctx -> section_pbuf [ wctx -> level ] . str , key ) ;\n printf ( \"%s\\n\" , value ) ;\n }\n static void default_print_int ( WriterContext * wctx , const char * key , long long int value ) {\n DefaultContext * def = wctx -> priv ;\n if ( ! def -> nokey ) printf ( \"%s%s=\" , wctx -> section_pbuf [ wctx -> level ] . str , key ) ;\n printf ( \"%lld\\n\" , value ) ;\n }\n static const Writer default_writer = {\n . name = \"default\" , . priv_size = sizeof ( DefaultContext ) , . print_section_header = default_print_section_header , . print_section_footer = default_print_section_footer , . print_integer = default_print_int , . print_string = default_print_str , . flags = WRITER_FLAG_DISPLAY_OPTIONAL_FIELDS , . priv_class = & default_class , }\n ;\n static const char * c_escape_str ( AVBPrint * dst , const char * src , const char sep , void * log_ctx ) {\n const char * p ;\n for ( p = src ;\n * p ;\n p ++ ) {\n switch ( * p ) {\n case '\\b' : av_bprintf ( dst , \"%s\" , \"\\\\b\" ) ;\n break ;\n case '\\f' : av_bprintf ( dst , \"%s\" , \"\\\\f\" ) ;\n break ;\n case '\\n' : av_bprintf ( dst , \"%s\" , \"\\\\n\" ) ;\n break ;\n case '\\r' : av_bprintf ( dst , \"%s\" , \"\\\\r\" ) ;\n break ;\n case '\\\\' : av_bprintf ( dst , \"%s\" , \"\\\\\\\\\" ) ;\n break ;\n default : if ( * p == sep ) av_bprint_chars ( dst , '\\\\' , 1 ) ;\n av_bprint_chars ( dst , * p , 1 ) ;\n }\n }\n return dst -> str ;\n }\n static const char * csv_escape_str ( AVBPrint * dst , const char * src , const char sep , void * log_ctx ) {\n char meta_chars [ ] = {\n sep , '\"' , '\\n' , '\\r' , '\\0' }\n ;\n int needs_quoting = ! ! src [ strcspn ( src , meta_chars ) ] ;\n if ( needs_quoting ) av_bprint_chars ( dst , '\"' , 1 ) ;\n for ( ;\n * src ;\n src ++ ) {\n if ( * src == '\"' ) av_bprint_chars ( dst , '\"' , 1 ) ;\n av_bprint_chars ( dst , * src , 1 ) ;\n }\n if ( needs_quoting ) av_bprint_chars ( dst , '\"' , 1 ) ;\n return dst -> str ;\n }\n static const char * none_escape_str ( AVBPrint * dst , const char * src , const char sep , void * log_ctx ) {\n return src ;\n }\n typedef struct CompactContext {\n const AVClass * class ;\n char * item_sep_str ;\n char item_sep ;\n int nokey ;\n int print_section ;\n char * escape_mode_str ;\n const char * ( * escape_str ) ( AVBPrint * dst , const char * src , const char sep , void * log_ctx ) ;\n int nested_section [ SECTION_MAX_NB_LEVELS ] ;\n int has_nested_elems [ SECTION_MAX_NB_LEVELS ] ;\n int terminate_line [ SECTION_MAX_NB_LEVELS ] ;\n }\n CompactContext ;\n # undef OFFSET # define OFFSET ( x ) offsetof ( CompactContext , x ) static const AVOption compact_options [ ] = {\n {\n \"item_sep\" , \"set item separator\" , OFFSET ( item_sep_str ) , AV_OPT_TYPE_STRING , {\n . str = \"|\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"s\" , \"set item separator\" , OFFSET ( item_sep_str ) , AV_OPT_TYPE_STRING , {\n . str = \"|\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"nokey\" , \"force no key printing\" , OFFSET ( nokey ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n \"nk\" , \"force no key printing\" , OFFSET ( nokey ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n \"escape\" , \"set escape mode\" , OFFSET ( escape_mode_str ) , AV_OPT_TYPE_STRING , {\n . str = \"c\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"e\" , \"set escape mode\" , OFFSET ( escape_mode_str ) , AV_OPT_TYPE_STRING , {\n . str = \"c\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"print_section\" , \"print section name\" , OFFSET ( print_section ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n \"p\" , \"print section name\" , OFFSET ( print_section ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n NULL }\n , }\n ;\n DEFINE_WRITER_CLASS ( compact ) ;\n static av_cold int compact_init ( WriterContext * wctx ) {\n CompactContext * compact = wctx -> priv ;\n if ( strlen ( compact -> item_sep_str ) != 1 ) {\n av_log ( wctx , AV_LOG_ERROR , \"Item separator '%s' specified, but must contain a single character\\n\" , compact -> item_sep_str ) ;\n return AVERROR ( EINVAL ) ;\n }\n compact -> item_sep = compact -> item_sep_str [ 0 ] ;\n if ( ! strcmp ( compact -> escape_mode_str , \"none\" ) ) compact -> escape_str = none_escape_str ;\n else if ( ! strcmp ( compact -> escape_mode_str , \"c\" ) ) compact -> escape_str = c_escape_str ;\n else if ( ! strcmp ( compact -> escape_mode_str , \"csv\" ) ) compact -> escape_str = csv_escape_str ;\n else {\n av_log ( wctx , AV_LOG_ERROR , \"Unknown escape mode '%s'\\n\" , compact -> escape_mode_str ) ;\n return AVERROR ( EINVAL ) ;\n }\n return 0 ;\n }\n static void compact_print_section_header ( WriterContext * wctx ) {\n CompactContext * compact = wctx -> priv ;\n const struct section * section = wctx -> section [ wctx -> level ] ;\n const struct section * parent_section = wctx -> level ? wctx -> section [ wctx -> level - 1 ] : NULL ;\n compact -> terminate_line [ wctx -> level ] = 1 ;\n compact -> has_nested_elems [ wctx -> level ] = 0 ;\n av_bprint_clear ( & wctx -> section_pbuf [ wctx -> level ] ) ;\n if ( ! ( section -> flags & SECTION_FLAG_IS_ARRAY ) && parent_section && ! ( parent_section -> flags & ( SECTION_FLAG_IS_WRAPPER | SECTION_FLAG_IS_ARRAY ) ) ) {\n compact -> nested_section [ wctx -> level ] = 1 ;\n compact -> has_nested_elems [ wctx -> level - 1 ] = 1 ;\n av_bprintf ( & wctx -> section_pbuf [ wctx -> level ] , \"%s%s:\" , wctx -> section_pbuf [ wctx -> level - 1 ] . str , ( char * ) av_x_if_null ( section -> element_name , section -> name ) ) ;\n wctx -> nb_item [ wctx -> level ] = wctx -> nb_item [ wctx -> level - 1 ] ;\n }\n else {\n if ( parent_section && compact -> has_nested_elems [ wctx -> level - 1 ] && ( section -> flags & SECTION_FLAG_IS_ARRAY ) ) {\n compact -> terminate_line [ wctx -> level - 1 ] = 0 ;\n printf ( \"\\n\" ) ;\n }\n if ( compact -> print_section && ! ( section -> flags & ( SECTION_FLAG_IS_WRAPPER | SECTION_FLAG_IS_ARRAY ) ) ) printf ( \"%s%c\" , section -> name , compact -> item_sep ) ;\n }\n }\n static void compact_print_section_footer ( WriterContext * wctx ) {\n CompactContext * compact = wctx -> priv ;\n if ( ! compact -> nested_section [ wctx -> level ] && compact -> terminate_line [ wctx -> level ] && ! ( wctx -> section [ wctx -> level ] -> flags & ( SECTION_FLAG_IS_WRAPPER | SECTION_FLAG_IS_ARRAY ) ) ) printf ( \"\\n\" ) ;\n }\n static void compact_print_str ( WriterContext * wctx , const char * key , const char * value ) {\n CompactContext * compact = wctx -> priv ;\n AVBPrint buf ;\n if ( wctx -> nb_item [ wctx -> level ] ) printf ( \"%c\" , compact -> item_sep ) ;\n if ( ! compact -> nokey ) printf ( \"%s%s=\" , wctx -> section_pbuf [ wctx -> level ] . str , key ) ;\n av_bprint_init ( & buf , 1 , AV_BPRINT_SIZE_UNLIMITED ) ;\n printf ( \"%s\" , compact -> escape_str ( & buf , value , compact -> item_sep , wctx ) ) ;\n av_bprint_finalize ( & buf , NULL ) ;\n }\n static void compact_print_int ( WriterContext * wctx , const char * key , long long int value ) {\n CompactContext * compact = wctx -> priv ;\n if ( wctx -> nb_item [ wctx -> level ] ) printf ( \"%c\" , compact -> item_sep ) ;\n if ( ! compact -> nokey ) printf ( \"%s%s=\" , wctx -> section_pbuf [ wctx -> level ] . str , key ) ;\n printf ( \"%lld\" , value ) ;\n }\n static const Writer compact_writer = {\n . name = \"compact\" , . priv_size = sizeof ( CompactContext ) , . init = compact_init , . print_section_header = compact_print_section_header , . print_section_footer = compact_print_section_footer , . print_integer = compact_print_int , . print_string = compact_print_str , . flags = WRITER_FLAG_DISPLAY_OPTIONAL_FIELDS , . priv_class = & compact_class , }\n ;\n # undef OFFSET # define OFFSET ( x ) offsetof ( CompactContext , x ) static const AVOption csv_options [ ] = {\n {\n \"item_sep\" , \"set item separator\" , OFFSET ( item_sep_str ) , AV_OPT_TYPE_STRING , {\n . str = \",\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"s\" , \"set item separator\" , OFFSET ( item_sep_str ) , AV_OPT_TYPE_STRING , {\n . str = \",\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"nokey\" , \"force no key printing\" , OFFSET ( nokey ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n \"nk\" , \"force no key printing\" , OFFSET ( nokey ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n \"escape\" , \"set escape mode\" , OFFSET ( escape_mode_str ) , AV_OPT_TYPE_STRING , {\n . str = \"csv\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"e\" , \"set escape mode\" , OFFSET ( escape_mode_str ) , AV_OPT_TYPE_STRING , {\n . str = \"csv\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"print_section\" , \"print section name\" , OFFSET ( print_section ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n \"p\" , \"print section name\" , OFFSET ( print_section ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n NULL }\n , }\n ;\n DEFINE_WRITER_CLASS ( csv ) ;\n static const Writer csv_writer = {\n . name = \"csv\" , . priv_size = sizeof ( CompactContext ) , . init = compact_init , . print_section_header = compact_print_section_header , . print_section_footer = compact_print_section_footer , . print_integer = compact_print_int , . print_string = compact_print_str , . flags = WRITER_FLAG_DISPLAY_OPTIONAL_FIELDS , . priv_class = & csv_class , }\n ;\n typedef struct FlatContext {\n const AVClass * class ;\n const char * sep_str ;\n char sep ;\n int hierarchical ;\n }\n FlatContext ;\n # undef OFFSET # define OFFSET ( x ) offsetof ( FlatContext , x ) static const AVOption flat_options [ ] = {\n {\n \"sep_char\" , \"set separator\" , OFFSET ( sep_str ) , AV_OPT_TYPE_STRING , {\n . str = \".\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"s\" , \"set separator\" , OFFSET ( sep_str ) , AV_OPT_TYPE_STRING , {\n . str = \".\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"hierarchical\" , \"specify if the section specification should be hierarchical\" , OFFSET ( hierarchical ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n \"h\" , \"specify if the section specification should be hierarchical\" , OFFSET ( hierarchical ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n NULL }\n , }\n ;\n DEFINE_WRITER_CLASS ( flat ) ;\n static av_cold int flat_init ( WriterContext * wctx ) {\n FlatContext * flat = wctx -> priv ;\n if ( strlen ( flat -> sep_str ) != 1 ) {\n av_log ( wctx , AV_LOG_ERROR , \"Item separator '%s' specified, but must contain a single character\\n\" , flat -> sep_str ) ;\n return AVERROR ( EINVAL ) ;\n }\n flat -> sep = flat -> sep_str [ 0 ] ;\n return 0 ;\n }\n static const char * flat_escape_key_str ( AVBPrint * dst , const char * src , const char sep ) {\n const char * p ;\n for ( p = src ;\n * p ;\n p ++ ) {\n if ( ! ( ( * p >= '0' && * p <= '9' ) || ( * p >= 'a' && * p <= 'z' ) || ( * p >= 'A' && * p <= 'Z' ) ) ) av_bprint_chars ( dst , '_' , 1 ) ;\n else av_bprint_chars ( dst , * p , 1 ) ;\n }\n return dst -> str ;\n }\n static const char * flat_escape_value_str ( AVBPrint * dst , const char * src ) {\n const char * p ;\n for ( p = src ;\n * p ;\n p ++ ) {\n switch ( * p ) {\n case '\\n' : av_bprintf ( dst , \"%s\" , \"\\\\n\" ) ;\n break ;\n case '\\r' : av_bprintf ( dst , \"%s\" , \"\\\\r\" ) ;\n break ;\n case '\\\\' : av_bprintf ( dst , \"%s\" , \"\\\\\\\\\" ) ;\n break ;\n case '\"' : av_bprintf ( dst , \"%s\" , \"\\\\\\\"\" ) ;\n break ;\n case '`' : av_bprintf ( dst , \"%s\" , \"\\\\`\" ) ;\n break ;\n case '$' : av_bprintf ( dst , \"%s\" , \"\\\\$\" ) ;\n break ;\n default : av_bprint_chars ( dst , * p , 1 ) ;\n break ;\n }\n }\n return dst -> str ;\n }\n static void flat_print_section_header ( WriterContext * wctx ) {\n FlatContext * flat = wctx -> priv ;\n AVBPrint * buf = & wctx -> section_pbuf [ wctx -> level ] ;\n const struct section * section = wctx -> section [ wctx -> level ] ;\n const struct section * parent_section = wctx -> level ? wctx -> section [ wctx -> level - 1 ] : NULL ;\n av_bprint_clear ( buf ) ;\n if ( ! parent_section ) return ;\n av_bprintf ( buf , \"%s\" , wctx -> section_pbuf [ wctx -> level - 1 ] . str ) ;\n if ( flat -> hierarchical || ! ( section -> flags & ( SECTION_FLAG_IS_ARRAY | SECTION_FLAG_IS_WRAPPER ) ) ) {\n av_bprintf ( buf , \"%s%s\" , wctx -> section [ wctx -> level ] -> name , flat -> sep_str ) ;\n if ( parent_section -> flags & SECTION_FLAG_IS_ARRAY ) {\n int n = parent_section -> id == SECTION_ID_PACKETS_AND_FRAMES ? wctx -> nb_section_packet_frame : wctx -> nb_item [ wctx -> level - 1 ] ;\n av_bprintf ( buf , \"%d%s\" , n , flat -> sep_str ) ;\n }\n }\n }\n static void flat_print_int ( WriterContext * wctx , const char * key , long long int value ) {\n printf ( \"%s%s=%lld\\n\" , wctx -> section_pbuf [ wctx -> level ] . str , key , value ) ;\n }\n static void flat_print_str ( WriterContext * wctx , const char * key , const char * value ) {\n FlatContext * flat = wctx -> priv ;\n AVBPrint buf ;\n printf ( \"%s\" , wctx -> section_pbuf [ wctx -> level ] . str ) ;\n av_bprint_init ( & buf , 1 , AV_BPRINT_SIZE_UNLIMITED ) ;\n printf ( \"%s=\" , flat_escape_key_str ( & buf , key , flat -> sep ) ) ;\n av_bprint_clear ( & buf ) ;\n printf ( \"\\\"%s\\\"\\n\" , flat_escape_value_str ( & buf , value ) ) ;\n av_bprint_finalize ( & buf , NULL ) ;\n }\n static const Writer flat_writer = {\n . name = \"flat\" , . priv_size = sizeof ( FlatContext ) , . init = flat_init , . print_section_header = flat_print_section_header , . print_integer = flat_print_int , . print_string = flat_print_str , . flags = WRITER_FLAG_DISPLAY_OPTIONAL_FIELDS | WRITER_FLAG_PUT_PACKETS_AND_FRAMES_IN_SAME_CHAPTER , . priv_class = & flat_class , }\n ;\n typedef struct INIContext {\n const AVClass * class ;\n int hierarchical ;\n }\n INIContext ;\n # undef OFFSET # define OFFSET ( x ) offsetof ( INIContext , x ) static const AVOption ini_options [ ] = {\n {\n \"hierarchical\" , \"specify if the section specification should be hierarchical\" , OFFSET ( hierarchical ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n \"h\" , \"specify if the section specification should be hierarchical\" , OFFSET ( hierarchical ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n NULL }\n , }\n ;\n DEFINE_WRITER_CLASS ( ini ) ;\n static char * ini_escape_str ( AVBPrint * dst , const char * src ) {\n int i = 0 ;\n char c = 0 ;\n while ( c = src [ i ++ ] ) {\n switch ( c ) {\n case '\\b' : av_bprintf ( dst , \"%s\" , \"\\\\b\" ) ;\n break ;\n case '\\f' : av_bprintf ( dst , \"%s\" , \"\\\\f\" ) ;\n break ;\n case '\\n' : av_bprintf ( dst , \"%s\" , \"\\\\n\" ) ;\n break ;\n case '\\r' : av_bprintf ( dst , \"%s\" , \"\\\\r\" ) ;\n break ;\n case '\\t' : av_bprintf ( dst , \"%s\" , \"\\\\t\" ) ;\n break ;\n case '\\\\' : case '#' : case '=' : case ':' : av_bprint_chars ( dst , '\\\\' , 1 ) ;\n default : if ( ( unsigned char ) c < 32 ) av_bprintf ( dst , \"\\\\x00%02x\" , c & 0xff ) ;\n else av_bprint_chars ( dst , c , 1 ) ;\n break ;\n }\n }\n return dst -> str ;\n }\n static void ini_print_section_header ( WriterContext * wctx ) {\n INIContext * ini = wctx -> priv ;\n AVBPrint * buf = & wctx -> section_pbuf [ wctx -> level ] ;\n const struct section * section = wctx -> section [ wctx -> level ] ;\n const struct section * parent_section = wctx -> level ? wctx -> section [ wctx -> level - 1 ] : NULL ;\n av_bprint_clear ( buf ) ;\n if ( ! parent_section ) {\n printf ( \"# ffprobe output\\n\\n\" ) ;\n return ;\n }\n if ( wctx -> nb_item [ wctx -> level - 1 ] ) printf ( \"\\n\" ) ;\n av_bprintf ( buf , \"%s\" , wctx -> section_pbuf [ wctx -> level - 1 ] . str ) ;\n if ( ini -> hierarchical || ! ( section -> flags & ( SECTION_FLAG_IS_ARRAY | SECTION_FLAG_IS_WRAPPER ) ) ) {\n av_bprintf ( buf , \"%s%s\" , buf -> str [ 0 ] ? \".\" : \"\" , wctx -> section [ wctx -> level ] -> name ) ;\n if ( parent_section -> flags & SECTION_FLAG_IS_ARRAY ) {\n int n = parent_section -> id == SECTION_ID_PACKETS_AND_FRAMES ? wctx -> nb_section_packet_frame : wctx -> nb_item [ wctx -> level - 1 ] ;\n av_bprintf ( buf , \".%d\" , n ) ;\n }\n }\n if ( ! ( section -> flags & ( SECTION_FLAG_IS_ARRAY | SECTION_FLAG_IS_WRAPPER ) ) ) printf ( \"[%s]\\n\" , buf -> str ) ;\n }\n static void ini_print_str ( WriterContext * wctx , const char * key , const char * value ) {\n AVBPrint buf ;\n av_bprint_init ( & buf , 1 , AV_BPRINT_SIZE_UNLIMITED ) ;\n printf ( \"%s=\" , ini_escape_str ( & buf , key ) ) ;\n av_bprint_clear ( & buf ) ;\n printf ( \"%s\\n\" , ini_escape_str ( & buf , value ) ) ;\n av_bprint_finalize ( & buf , NULL ) ;\n }\n static void ini_print_int ( WriterContext * wctx , const char * key , long long int value ) {\n printf ( \"%s=%lld\\n\" , key , value ) ;\n }\n static const Writer ini_writer = {\n . name = \"ini\" , . priv_size = sizeof ( INIContext ) , . print_section_header = ini_print_section_header , . print_integer = ini_print_int , . print_string = ini_print_str , . flags = WRITER_FLAG_DISPLAY_OPTIONAL_FIELDS | WRITER_FLAG_PUT_PACKETS_AND_FRAMES_IN_SAME_CHAPTER , . priv_class = & ini_class , }\n ;\n typedef struct JSONContext {\n const AVClass * class ;\n int indent_level ;\n int compact ;\n const char * item_sep , * item_start_end ;\n }\n JSONContext ;\n # undef OFFSET # define OFFSET ( x ) offsetof ( JSONContext , x ) static const AVOption json_options [ ] = {\n {\n \"compact\" , \"enable compact output\" , OFFSET ( compact ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n \"c\" , \"enable compact output\" , OFFSET ( compact ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n NULL }\n }\n ;\n DEFINE_WRITER_CLASS ( json )"}
{"idx": 601, "target": 0, "func": "static void print_comment ( FILE * sql_file , my_bool is_error , const char * format , ... ) {\n static char comment_buff [ COMMENT_LENGTH ] ;\n va_list args ;\n if ( ! is_error && ! opt_comments ) return ;\n va_start ( args , format ) ;\n my_vsnprintf ( comment_buff , COMMENT_LENGTH , format , args ) ;\n va_end ( args ) ;\n if ( ! opt_xml ) {\n fputs ( comment_buff , sql_file ) ;\n check_io ( sql_file ) ;\n return ;\n }\n print_xml_comment ( sql_file , strlen ( comment_buff ) , comment_buff ) ;\n }"}
{"idx": 602, "target": 1, "func": "static int decode_element ( AVCodecContext * avctx , AVFrame * frame , int ch_index , int channels ) {\n ALACContext * alac = avctx -> priv_data ;\n int has_size , bps , is_compressed , decorr_shift , decorr_left_weight , ret ;\n uint32_t output_samples ;\n int i , ch ;\n skip_bits ( & alac -> gb , 4 ) ;\n skip_bits ( & alac -> gb , 12 ) ;\n has_size = get_bits1 ( & alac -> gb ) ;\n alac -> extra_bits = get_bits ( & alac -> gb , 2 ) << 3 ;\n bps = alac -> sample_size - alac -> extra_bits + channels - 1 ;\n if ( bps > 32 ) {\n av_log ( avctx , AV_LOG_ERROR , \"bps is unsupported: %d\\n\" , bps ) ;\n return AVERROR_PATCHWELCOME ;\n }\n is_compressed = ! get_bits1 ( & alac -> gb ) ;\n if ( has_size ) output_samples = get_bits_long ( & alac -> gb , 32 ) ;\n else output_samples = alac -> max_samples_per_frame ;\n if ( ! output_samples || output_samples > alac -> max_samples_per_frame ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid samples per frame: %d\\n\" , output_samples ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ! alac -> nb_samples ) {\n frame -> nb_samples = output_samples ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n }\n else if ( output_samples != alac -> nb_samples ) {\n av_log ( avctx , AV_LOG_ERROR , \"sample count mismatch: %u != %d\\n\" , output_samples , alac -> nb_samples ) ;\n return AVERROR_INVALIDDATA ;\n }\n alac -> nb_samples = output_samples ;\n if ( alac -> sample_size > 16 ) {\n for ( ch = 0 ;\n ch < channels ;\n ch ++ ) alac -> output_samples_buffer [ ch ] = ( int32_t * ) frame -> extended_data [ ch_index + ch ] ;\n }\n if ( is_compressed ) {\n int16_t lpc_coefs [ 2 ] [ 32 ] ;\n int lpc_order [ 2 ] ;\n int prediction_type [ 2 ] ;\n int lpc_quant [ 2 ] ;\n int rice_history_mult [ 2 ] ;\n decorr_shift = get_bits ( & alac -> gb , 8 ) ;\n decorr_left_weight = get_bits ( & alac -> gb , 8 ) ;\n for ( ch = 0 ;\n ch < channels ;\n ch ++ ) {\n prediction_type [ ch ] = get_bits ( & alac -> gb , 4 ) ;\n lpc_quant [ ch ] = get_bits ( & alac -> gb , 4 ) ;\n rice_history_mult [ ch ] = get_bits ( & alac -> gb , 3 ) ;\n lpc_order [ ch ] = get_bits ( & alac -> gb , 5 ) ;\n for ( i = lpc_order [ ch ] - 1 ;\n i >= 0 ;\n i -- ) lpc_coefs [ ch ] [ i ] = get_sbits ( & alac -> gb , 16 ) ;\n }\n if ( alac -> extra_bits ) {\n for ( i = 0 ;\n i < alac -> nb_samples ;\n i ++ ) {\n for ( ch = 0 ;\n ch < channels ;\n ch ++ ) alac -> extra_bits_buffer [ ch ] [ i ] = get_bits ( & alac -> gb , alac -> extra_bits ) ;\n }\n }\n for ( ch = 0 ;\n ch < channels ;\n ch ++ ) {\n rice_decompress ( alac , alac -> predict_error_buffer [ ch ] , alac -> nb_samples , bps , rice_history_mult [ ch ] * alac -> rice_history_mult / 4 ) ;\n if ( prediction_type [ ch ] == 15 ) {\n lpc_prediction ( alac -> predict_error_buffer [ ch ] , alac -> predict_error_buffer [ ch ] , alac -> nb_samples , bps , NULL , 31 , 0 ) ;\n }\n else if ( prediction_type [ ch ] > 0 ) {\n av_log ( avctx , AV_LOG_WARNING , \"unknown prediction type: %i\\n\" , prediction_type [ ch ] ) ;\n }\n lpc_prediction ( alac -> predict_error_buffer [ ch ] , alac -> output_samples_buffer [ ch ] , alac -> nb_samples , bps , lpc_coefs [ ch ] , lpc_order [ ch ] , lpc_quant [ ch ] ) ;\n }\n }\n else {\n for ( i = 0 ;\n i < alac -> nb_samples ;\n i ++ ) {\n for ( ch = 0 ;\n ch < channels ;\n ch ++ ) {\n alac -> output_samples_buffer [ ch ] [ i ] = get_sbits_long ( & alac -> gb , alac -> sample_size ) ;\n }\n }\n alac -> extra_bits = 0 ;\n decorr_shift = 0 ;\n decorr_left_weight = 0 ;\n }\n if ( channels == 2 && decorr_left_weight ) {\n decorrelate_stereo ( alac -> output_samples_buffer , alac -> nb_samples , decorr_shift , decorr_left_weight ) ;\n }\n if ( alac -> extra_bits ) {\n append_extra_bits ( alac -> output_samples_buffer , alac -> extra_bits_buffer , alac -> extra_bits , channels , alac -> nb_samples ) ;\n }\n switch ( alac -> sample_size ) {\n case 16 : {\n for ( ch = 0 ;\n ch < channels ;\n ch ++ ) {\n int16_t * outbuffer = ( int16_t * ) frame -> extended_data [ ch_index + ch ] ;\n for ( i = 0 ;\n i < alac -> nb_samples ;\n i ++ ) * outbuffer ++ = alac -> output_samples_buffer [ ch ] [ i ] ;\n }\n }\n break ;\n case 24 : {\n for ( ch = 0 ;\n ch < channels ;\n ch ++ ) {\n for ( i = 0 ;\n i < alac -> nb_samples ;\n i ++ ) alac -> output_samples_buffer [ ch ] [ i ] <<= 8 ;\n }\n }\n break ;\n }\n return 0 ;\n }"}
{"idx": 603, "target": 0, "func": "static void gtkui_connection_list_row ( int top , struct row_pairs * pair ) {\n GtkTreeIter iter ;\n GtkTreePath * path = NULL ;\n GtkTreeModel * model = NULL ;\n GdkRectangle rect ;\n int wx = 0 , wy = 0 ;\n void * row = NULL ;\n if ( ! ls_conns || ! pair ) return ;\n pair -> conn = NULL ;\n model = GTK_TREE_MODEL ( ls_conns ) ;\n if ( gtk_tree_model_get_iter_first ( model , & iter ) ) {\n gtk_tree_view_get_visible_rect ( GTK_TREE_VIEW ( treeview ) , & rect ) ;\n gtk_tree_view_convert_bin_window_to_widget_coords ( GTK_TREE_VIEW ( treeview ) , rect . x , ( top ) ? rect . y : rect . height , & wx , & wy ) ;\n path = gtk_tree_path_new ( ) ;\n if ( gtk_tree_view_get_path_at_pos ( GTK_TREE_VIEW ( treeview ) , wx + 2 , ( top ) ? wy + 2 : wy - 2 , & path , NULL , NULL , NULL ) ) {\n gtk_tree_model_get_iter ( model , & iter , path ) ;\n gtk_tree_model_get ( model , & iter , 11 , & row , - 1 ) ;\n pair -> iter = iter ;\n pair -> conn = row ;\n }\n if ( path ) gtk_tree_path_free ( path ) ;\n }\n return ;\n }"}
{"idx": 604, "target": 0, "func": "static ActivationAction get_activation_action ( NautilusFile * file ) {\n ActivationAction action ;\n char * activation_uri ;\n gboolean can_extract ;\n can_extract = g_settings_get_boolean ( nautilus_preferences , NAUTILUS_PREFERENCES_AUTOMATIC_DECOMPRESSION ) ;\n if ( can_extract && nautilus_file_is_archive ( file ) ) {\n return ACTIVATION_ACTION_EXTRACT ;\n }\n if ( nautilus_file_is_nautilus_link ( file ) ) {\n return ACTIVATION_ACTION_LAUNCH_DESKTOP_FILE ;\n }\n activation_uri = nautilus_file_get_activation_uri ( file ) ;\n if ( activation_uri == NULL ) {\n activation_uri = nautilus_file_get_uri ( file ) ;\n }\n action = ACTIVATION_ACTION_DO_NOTHING ;\n if ( nautilus_file_is_launchable ( file ) ) {\n char * executable_path ;\n action = ACTIVATION_ACTION_LAUNCH ;\n executable_path = g_filename_from_uri ( activation_uri , NULL , NULL ) ;\n if ( ! executable_path ) {\n action = ACTIVATION_ACTION_DO_NOTHING ;\n }\n else if ( nautilus_file_contains_text ( file ) ) {\n action = get_default_executable_text_file_action ( ) ;\n }\n g_free ( executable_path ) ;\n }\n if ( action == ACTIVATION_ACTION_DO_NOTHING ) {\n if ( nautilus_file_opens_in_view ( file ) ) {\n action = ACTIVATION_ACTION_OPEN_IN_VIEW ;\n }\n else {\n action = ACTIVATION_ACTION_OPEN_IN_APPLICATION ;\n }\n }\n g_free ( activation_uri ) ;\n return action ;\n }"}
{"idx": 605, "target": 0, "func": "static int _make_step_cred ( struct step_record * step_ptr , slurm_cred_t * * slurm_cred , uint16_t protocol_version ) {\n slurm_cred_arg_t cred_arg ;\n struct job_record * job_ptr = step_ptr -> job_ptr ;\n job_resources_t * job_resrcs_ptr = job_ptr -> job_resrcs ;\n xassert ( job_resrcs_ptr && job_resrcs_ptr -> cpus ) ;\n memset ( & cred_arg , 0 , sizeof ( slurm_cred_arg_t ) ) ;\n cred_arg . jobid = job_ptr -> job_id ;\n cred_arg . stepid = step_ptr -> step_id ;\n cred_arg . uid = job_ptr -> user_id ;\n cred_arg . gid = job_ptr -> group_id ;\n if ( slurmctld_config . send_groups_in_cred ) {\n if ( ! job_ptr -> user_name ) job_ptr -> user_name = uid_to_string_or_null ( job_ptr -> user_id ) ;\n cred_arg . user_name = job_ptr -> user_name ;\n if ( ! job_ptr -> ngids || ! job_ptr -> gids ) job_ptr -> ngids = group_cache_lookup ( job_ptr -> user_id , job_ptr -> group_id , job_ptr -> user_name , & job_ptr -> gids ) ;\n cred_arg . ngids = job_ptr -> ngids ;\n cred_arg . gids = job_ptr -> gids ;\n }\n cred_arg . x11 = job_ptr -> details -> x11 ;\n cred_arg . job_constraints = job_ptr -> details -> features ;\n cred_arg . job_core_bitmap = job_resrcs_ptr -> core_bitmap ;\n cred_arg . job_core_spec = job_ptr -> details -> core_spec ;\n cred_arg . job_hostlist = job_resrcs_ptr -> nodes ;\n cred_arg . job_mem_limit = job_ptr -> details -> pn_min_memory ;\n cred_arg . job_nhosts = job_resrcs_ptr -> nhosts ;\n cred_arg . job_gres_list = job_ptr -> gres_list ;\n cred_arg . step_gres_list = step_ptr -> gres_list ;\n cred_arg . step_core_bitmap = step_ptr -> core_bitmap_job ;\n # ifdef HAVE_FRONT_END xassert ( job_ptr -> batch_host ) ;\n cred_arg . step_hostlist = job_ptr -> batch_host ;\n # else cred_arg . step_hostlist = step_ptr -> step_layout -> node_list ;\n # endif if ( step_ptr -> pn_min_memory ) cred_arg . step_mem_limit = step_ptr -> pn_min_memory ;\n cred_arg . cores_per_socket = job_resrcs_ptr -> cores_per_socket ;\n cred_arg . sockets_per_node = job_resrcs_ptr -> sockets_per_node ;\n cred_arg . sock_core_rep_count = job_resrcs_ptr -> sock_core_rep_count ;\n * slurm_cred = slurm_cred_create ( slurmctld_config . cred_ctx , & cred_arg , protocol_version ) ;\n if ( * slurm_cred == NULL ) {\n error ( \"slurm_cred_create error\" ) ;\n return ESLURM_INVALID_JOB_CREDENTIAL ;\n }\n return SLURM_SUCCESS ;\n }"}
{"idx": 606, "target": 0, "func": "static void midi_data_reassemble_init ( void ) {\n reassembly_table_init ( & midi_data_reassembly_table , & addresses_reassembly_table_functions ) ;\n }"}
{"idx": 607, "target": 0, "func": "static int ogg_read_page ( AVFormatContext * s , int * sid ) {\n AVIOContext * bc = s -> pb ;\n struct ogg * ogg = s -> priv_data ;\n struct ogg_stream * os ;\n int ret , i = 0 ;\n int flags , nsegs ;\n uint64_t gp ;\n uint32_t serial ;\n int size , idx ;\n uint8_t sync [ 4 ] ;\n int sp = 0 ;\n ret = avio_read ( bc , sync , 4 ) ;\n if ( ret < 4 ) return ret < 0 ? ret : AVERROR_EOF ;\n do {\n int c ;\n if ( sync [ sp & 3 ] == 'O' && sync [ ( sp + 1 ) & 3 ] == 'g' && sync [ ( sp + 2 ) & 3 ] == 'g' && sync [ ( sp + 3 ) & 3 ] == 'S' ) break ;\n if ( ! i && bc -> seekable && ogg -> page_pos > 0 ) {\n memset ( sync , 0 , 4 ) ;\n avio_seek ( bc , ogg -> page_pos + 4 , SEEK_SET ) ;\n ogg -> page_pos = - 1 ;\n }\n c = avio_r8 ( bc ) ;\n if ( avio_feof ( bc ) ) return AVERROR_EOF ;\n sync [ sp ++ & 3 ] = c ;\n }\n while ( i ++ < MAX_PAGE_SIZE ) ;\n if ( i >= MAX_PAGE_SIZE ) {\n av_log ( s , AV_LOG_INFO , \"cannot find sync word\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( avio_r8 ( bc ) != 0 ) {\n av_log ( s , AV_LOG_ERROR , \"ogg page, unsupported version\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n flags = avio_r8 ( bc ) ;\n gp = avio_rl64 ( bc ) ;\n serial = avio_rl32 ( bc ) ;\n avio_skip ( bc , 8 ) ;\n nsegs = avio_r8 ( bc ) ;\n idx = ogg_find_stream ( ogg , serial ) ;\n if ( idx < 0 ) {\n if ( data_packets_seen ( ogg ) ) idx = ogg_replace_stream ( s , serial , nsegs ) ;\n else idx = ogg_new_stream ( s , serial ) ;\n if ( idx < 0 ) {\n av_log ( s , AV_LOG_ERROR , \"failed to create or replace stream\\n\" ) ;\n return idx ;\n }\n }\n os = ogg -> streams + idx ;\n ogg -> page_pos = os -> page_pos = avio_tell ( bc ) - 27 ;\n if ( os -> psize > 0 ) {\n ret = ogg_new_buf ( ogg , idx ) ;\n if ( ret < 0 ) return ret ;\n }\n ret = avio_read ( bc , os -> segments , nsegs ) ;\n if ( ret < nsegs ) return ret < 0 ? ret : AVERROR_EOF ;\n os -> nsegs = nsegs ;\n os -> segp = 0 ;\n size = 0 ;\n for ( i = 0 ;\n i < nsegs ;\n i ++ ) size += os -> segments [ i ] ;\n if ( ! ( flags & OGG_FLAG_BOS ) ) os -> got_data = 1 ;\n if ( flags & OGG_FLAG_CONT || os -> incomplete ) {\n if ( ! os -> psize ) {\n while ( os -> segp < os -> nsegs ) {\n int seg = os -> segments [ os -> segp ++ ] ;\n os -> pstart += seg ;\n if ( seg < 255 ) break ;\n }\n os -> sync_pos = os -> page_pos ;\n }\n }\n else {\n os -> psize = 0 ;\n os -> sync_pos = os -> page_pos ;\n }\n if ( os -> bufsize - os -> bufpos < size ) {\n uint8_t * nb = av_malloc ( ( os -> bufsize *= 2 ) + AV_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( ! nb ) return AVERROR ( ENOMEM ) ;\n memcpy ( nb , os -> buf , os -> bufpos ) ;\n av_free ( os -> buf ) ;\n os -> buf = nb ;\n }\n ret = avio_read ( bc , os -> buf + os -> bufpos , size ) ;\n if ( ret < size ) return ret < 0 ? ret : AVERROR_EOF ;\n os -> bufpos += size ;\n os -> granule = gp ;\n os -> flags = flags ;\n memset ( os -> buf + os -> bufpos , 0 , AV_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( sid ) * sid = idx ;\n return 0 ;\n }"}
{"idx": 608, "target": 0, "func": "static struct tree_entry * new_tree_entry ( void ) {\n struct tree_entry * e ;\n if ( ! avail_tree_entry ) {\n unsigned int n = tree_entry_alloc ;\n total_allocd += n * sizeof ( struct tree_entry ) ;\n avail_tree_entry = e = xmalloc ( n * sizeof ( struct tree_entry ) ) ;\n while ( n -- > 1 ) {\n * ( ( void * * ) e ) = e + 1 ;\n e ++ ;\n }\n * ( ( void * * ) e ) = NULL ;\n }\n e = avail_tree_entry ;\n avail_tree_entry = * ( ( void * * ) e ) ;\n return e ;\n }"}
{"idx": 609, "target": 0, "func": "static inline int vc1_pred_dc ( MpegEncContext * s , int overlap , int pq , int n , int a_avail , int c_avail , int16_t * * dc_val_ptr , int * dir_ptr ) {\n int a , b , c , wrap , pred ;\n int16_t * dc_val ;\n int mb_pos = s -> mb_x + s -> mb_y * s -> mb_stride ;\n int q1 , q2 = 0 ;\n int dqscale_index ;\n wrap = s -> block_wrap [ n ] ;\n dc_val = s -> dc_val [ 0 ] + s -> block_index [ n ] ;\n c = dc_val [ - 1 ] ;\n b = dc_val [ - 1 - wrap ] ;\n a = dc_val [ - wrap ] ;\n q1 = s -> current_picture . qscale_table [ mb_pos ] ;\n dqscale_index = s -> y_dc_scale_table [ q1 ] - 1 ;\n if ( dqscale_index < 0 ) return 0 ;\n if ( c_avail && ( n != 1 && n != 3 ) ) {\n q2 = s -> current_picture . qscale_table [ mb_pos - 1 ] ;\n if ( q2 && q2 != q1 ) c = ( c * s -> y_dc_scale_table [ q2 ] * ff_vc1_dqscale [ dqscale_index ] + 0x20000 ) >> 18 ;\n }\n if ( a_avail && ( n != 2 && n != 3 ) ) {\n q2 = s -> current_picture . qscale_table [ mb_pos - s -> mb_stride ] ;\n if ( q2 && q2 != q1 ) a = ( a * s -> y_dc_scale_table [ q2 ] * ff_vc1_dqscale [ dqscale_index ] + 0x20000 ) >> 18 ;\n }\n if ( a_avail && c_avail && ( n != 3 ) ) {\n int off = mb_pos ;\n if ( n != 1 ) off -- ;\n if ( n != 2 ) off -= s -> mb_stride ;\n q2 = s -> current_picture . qscale_table [ off ] ;\n if ( q2 && q2 != q1 ) b = ( b * s -> y_dc_scale_table [ q2 ] * ff_vc1_dqscale [ dqscale_index ] + 0x20000 ) >> 18 ;\n }\n if ( a_avail && c_avail ) {\n if ( abs ( a - b ) <= abs ( b - c ) ) {\n pred = c ;\n * dir_ptr = 1 ;\n }\n else {\n pred = a ;\n * dir_ptr = 0 ;\n }\n }\n else if ( a_avail ) {\n pred = a ;\n * dir_ptr = 0 ;\n }\n else if ( c_avail ) {\n pred = c ;\n * dir_ptr = 1 ;\n }\n else {\n pred = 0 ;\n * dir_ptr = 1 ;\n }\n * dc_val_ptr = & dc_val [ 0 ] ;\n return pred ;\n }"}
{"idx": 610, "target": 0, "func": "static void mark_all_files_unconfirmed ( NautilusDirectory * directory ) {\n GList * node ;\n NautilusFile * file ;\n for ( node = directory -> details -> file_list ;\n node != NULL ;\n node = node -> next ) {\n file = node -> data ;\n set_file_unconfirmed ( file , TRUE ) ;\n }\n }"}
{"idx": 611, "target": 0, "func": "static void curses_connection_data ( void * conn ) {\n struct conn_tail * c = ( struct conn_tail * ) conn ;\n DEBUG_MSG ( \"curses_connection_data\" ) ;\n if ( curr_conn ) {\n conntrack_hook_conn_del ( curr_conn , split_print_po ) ;\n conntrack_hook_conn_del ( curr_conn , join_print_po ) ;\n curr_conn -> flags &= ~ CONN_VIEWING ;\n }\n curr_conn = c -> co ;\n curr_conn -> flags |= CONN_VIEWING ;\n curses_connection_data_split ( ) ;\n }"}
{"idx": 612, "target": 0, "func": "static int dissect_h245_JitterIndication ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_JitterIndication , JitterIndication_sequence ) ;\n return offset ;\n }"}
{"idx": 613, "target": 0, "func": "int main ( int argc ATTRIBUTE_UNUSED , char * * argv ATTRIBUTE_UNUSED ) {\n printf ( \"%s : HTML support not compiled in\\n\" , argv [ 0 ] ) ;\n return ( 0 ) ;\n }"}
{"idx": 614, "target": 0, "func": "static void pk_transaction_get_files_local ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) {\n gboolean ret ;\n GError * error_local = NULL ;\n guint i ;\n guint length ;\n g_autoptr ( GError ) error = NULL ;\n g_autofree gchar * content_type = NULL ;\n g_autofree gchar * files_temp = NULL ;\n g_autofree gchar * * full_paths = NULL ;\n g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;\n g_return_if_fail ( transaction -> priv -> tid != NULL ) ;\n g_variant_get ( params , \"(^a&s)\" , & full_paths ) ;\n files_temp = pk_package_ids_to_string ( full_paths ) ;\n g_debug ( \"GetFilesLocal method called: %s\" , files_temp ) ;\n if ( ! pk_backend_is_implemented ( transaction -> priv -> backend , PK_ROLE_ENUM_GET_FILES_LOCAL ) ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NOT_SUPPORTED , \"GetFilesLocal not supported by backend\" ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n length = g_strv_length ( full_paths ) ;\n if ( length == 0 ) {\n g_set_error_literal ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NUMBER_OF_PACKAGES_INVALID , \"No filenames listed\" ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n if ( length > PK_TRANSACTION_MAX_PACKAGES_TO_PROCESS ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NUMBER_OF_PACKAGES_INVALID , \"Too many files to process (%i/%i)\" , length , PK_TRANSACTION_MAX_PACKAGES_TO_PROCESS ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n length = g_strv_length ( full_paths ) ;\n for ( i = 0 ;\n i < length ;\n i ++ ) {\n ret = g_file_test ( full_paths [ i ] , G_FILE_TEST_EXISTS ) ;\n if ( ! ret ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NO_SUCH_FILE , \"No such file %s\" , full_paths [ i ] ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n content_type = pk_transaction_get_content_type_for_file ( full_paths [ i ] , & error_local ) ;\n if ( content_type == NULL ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_MIME_TYPE_NOT_SUPPORTED , \"Failed to get content type for file %s\" , full_paths [ i ] ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n ret = pk_transaction_is_supported_content_type ( transaction , content_type ) ;\n if ( ! ret ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_MIME_TYPE_NOT_SUPPORTED , \"MIME type '%s' not supported %s\" , content_type , full_paths [ i ] ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n }\n transaction -> priv -> cached_full_paths = g_strdupv ( full_paths ) ;\n pk_transaction_set_role ( transaction , PK_ROLE_ENUM_GET_FILES_LOCAL ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_READY ) ;\n out : pk_transaction_dbus_return ( context , error ) ;\n }"}
{"idx": 615, "target": 0, "func": "static int dissect_h245_OCTET_STRING_SIZE_4 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 4 , 4 , FALSE , NULL ) ;\n return offset ;\n }"}
{"idx": 616, "target": 1, "func": "static int dissect_h225_T_h245Ip ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 339 \"./asn1/h225/h225.cnf\" tvbuff_t * value_tvb ;\n ipv4_address = 0 ;\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 4 , 4 , FALSE , & value_tvb ) ;\n if ( value_tvb ) ipv4_address = tvb_get_ipv4 ( value_tvb , 0 ) ;\n return offset ;\n }"}
{"idx": 617, "target": 0, "func": "static int dissect_ber_T_octet_aligned ( gboolean implicit_tag _U_ , tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n if ( actx -> external . u . ber . ber_callback ) {\n offset = actx -> external . u . ber . ber_callback ( FALSE , tvb , offset , actx , tree , hf_index ) ;\n }\n else if ( actx -> external . direct_ref_present && dissector_get_string_handle ( ber_oid_dissector_table , actx -> external . direct_reference ) ) {\n offset = call_ber_oid_callback ( actx -> external . direct_reference , tvb , offset , actx -> pinfo , tree , NULL ) ;\n }\n else {\n offset = dissect_ber_octet_string ( implicit_tag , actx , tree , tvb , offset , hf_index , & actx -> external . octet_aligned ) ;\n }\n return offset ;\n }"}
{"idx": 618, "target": 0, "func": "static struct ctl_trap * ctlfindtrap ( sockaddr_u * raddr , struct interface * linter ) {\n size_t n ;\n for ( n = 0 ;\n n < COUNTOF ( ctl_traps ) ;\n n ++ ) if ( ( ctl_traps [ n ] . tr_flags & TRAP_INUSE ) && ADDR_PORT_EQ ( raddr , & ctl_traps [ n ] . tr_addr ) && ( linter == ctl_traps [ n ] . tr_localaddr ) ) return & ctl_traps [ n ] ;\n return NULL ;\n }"}
{"idx": 619, "target": 0, "func": "void appendPsqlMetaConnect ( PQExpBuffer buf , const char * dbname ) {\n const char * s ;\n bool complex ;\n complex = false ;\n for ( s = dbname ;\n * s ;\n s ++ ) {\n if ( * s == '\\n' || * s == '\\r' ) {\n fprintf ( stderr , _ ( \"database name contains a newline or carriage return: \\\"%s\\\"\\n\" ) , dbname ) ;\n exit ( EXIT_FAILURE ) ;\n }\n if ( ! ( ( * s >= 'a' && * s <= 'z' ) || ( * s >= 'A' && * s <= 'Z' ) || ( * s >= '0' && * s <= '9' ) || * s == '_' || * s == '.' ) ) {\n complex = true ;\n }\n }\n appendPQExpBufferStr ( buf , \"\\\\connect \" ) ;\n if ( complex ) {\n PQExpBufferData connstr ;\n initPQExpBuffer ( & connstr ) ;\n appendPQExpBuffer ( & connstr , \"dbname=\" ) ;\n appendConnStrVal ( & connstr , dbname ) ;\n appendPQExpBuffer ( buf , \"-reuse-previous=on \" ) ;\n appendPQExpBufferStr ( buf , fmtId ( connstr . data ) ) ;\n termPQExpBuffer ( & connstr ) ;\n }\n else appendPQExpBufferStr ( buf , fmtId ( dbname ) ) ;\n appendPQExpBufferChar ( buf , '\\n' ) ;\n }"}
{"idx": 620, "target": 0, "func": "static void _toUnicodeWithCallback ( UConverterToUnicodeArgs * pArgs , UErrorCode * err ) {\n UConverterToUnicode toUnicode ;\n UConverter * cnv ;\n const char * s ;\n UChar * t ;\n int32_t * offsets ;\n int32_t sourceIndex ;\n int32_t errorInputLength ;\n UBool converterSawEndOfInput , calledCallback ;\n char replay [ UCNV_EXT_MAX_BYTES ] ;\n const char * realSource , * realSourceLimit ;\n int32_t realSourceIndex ;\n UBool realFlush ;\n cnv = pArgs -> converter ;\n s = pArgs -> source ;\n t = pArgs -> target ;\n offsets = pArgs -> offsets ;\n sourceIndex = 0 ;\n if ( offsets == NULL ) {\n toUnicode = cnv -> sharedData -> impl -> toUnicode ;\n }\n else {\n toUnicode = cnv -> sharedData -> impl -> toUnicodeWithOffsets ;\n if ( toUnicode == NULL ) {\n toUnicode = cnv -> sharedData -> impl -> toUnicode ;\n sourceIndex = - 1 ;\n }\n }\n if ( cnv -> preToULength >= 0 ) {\n realSource = NULL ;\n realSourceLimit = NULL ;\n realFlush = FALSE ;\n realSourceIndex = 0 ;\n }\n else {\n realSource = pArgs -> source ;\n realSourceLimit = pArgs -> sourceLimit ;\n realFlush = pArgs -> flush ;\n realSourceIndex = sourceIndex ;\n uprv_memcpy ( replay , cnv -> preToU , - cnv -> preToULength ) ;\n pArgs -> source = replay ;\n pArgs -> sourceLimit = replay - cnv -> preToULength ;\n pArgs -> flush = FALSE ;\n sourceIndex = - 1 ;\n cnv -> preToULength = 0 ;\n }\n for ( ;\n ;\n ) {\n if ( U_SUCCESS ( * err ) ) {\n toUnicode ( pArgs , err ) ;\n converterSawEndOfInput = ( UBool ) ( U_SUCCESS ( * err ) && pArgs -> flush && pArgs -> source == pArgs -> sourceLimit && cnv -> toULength == 0 ) ;\n }\n else {\n converterSawEndOfInput = FALSE ;\n }\n calledCallback = FALSE ;\n errorInputLength = 0 ;\n for ( ;\n ;\n ) {\n if ( offsets != NULL ) {\n int32_t length = ( int32_t ) ( pArgs -> target - t ) ;\n if ( length > 0 ) {\n _updateOffsets ( offsets , length , sourceIndex , errorInputLength ) ;\n pArgs -> offsets = offsets += length ;\n }\n if ( sourceIndex >= 0 ) {\n sourceIndex += ( int32_t ) ( pArgs -> source - s ) ;\n }\n }\n if ( cnv -> preToULength < 0 ) {\n if ( realSource == NULL ) {\n realSource = pArgs -> source ;\n realSourceLimit = pArgs -> sourceLimit ;\n realFlush = pArgs -> flush ;\n realSourceIndex = sourceIndex ;\n uprv_memcpy ( replay , cnv -> preToU , - cnv -> preToULength ) ;\n pArgs -> source = replay ;\n pArgs -> sourceLimit = replay - cnv -> preToULength ;\n pArgs -> flush = FALSE ;\n if ( ( sourceIndex += cnv -> preToULength ) < 0 ) {\n sourceIndex = - 1 ;\n }\n cnv -> preToULength = 0 ;\n }\n else {\n U_ASSERT ( realSource == NULL ) ;\n * err = U_INTERNAL_PROGRAM_ERROR ;\n }\n }\n s = pArgs -> source ;\n t = pArgs -> target ;\n if ( U_SUCCESS ( * err ) ) {\n if ( s < pArgs -> sourceLimit ) {\n break ;\n }\n else if ( realSource != NULL ) {\n pArgs -> source = realSource ;\n pArgs -> sourceLimit = realSourceLimit ;\n pArgs -> flush = realFlush ;\n sourceIndex = realSourceIndex ;\n realSource = NULL ;\n break ;\n }\n else if ( pArgs -> flush && cnv -> toULength > 0 ) {\n * err = U_TRUNCATED_CHAR_FOUND ;\n calledCallback = FALSE ;\n }\n else {\n if ( pArgs -> flush ) {\n if ( ! converterSawEndOfInput ) {\n break ;\n }\n _reset ( cnv , UCNV_RESET_TO_UNICODE , FALSE ) ;\n }\n return ;\n }\n }\n {\n UErrorCode e ;\n if ( calledCallback || ( e = * err ) == U_BUFFER_OVERFLOW_ERROR || ( e != U_INVALID_CHAR_FOUND && e != U_ILLEGAL_CHAR_FOUND && e != U_TRUNCATED_CHAR_FOUND && e != U_ILLEGAL_ESCAPE_SEQUENCE && e != U_UNSUPPORTED_ESCAPE_SEQUENCE ) ) {\n if ( realSource != NULL ) {\n int32_t length ;\n U_ASSERT ( cnv -> preToULength == 0 ) ;\n length = ( int32_t ) ( pArgs -> sourceLimit - pArgs -> source ) ;\n if ( length > 0 ) {\n uprv_memcpy ( cnv -> preToU , pArgs -> source , length ) ;\n cnv -> preToULength = ( int8_t ) - length ;\n }\n pArgs -> source = realSource ;\n pArgs -> sourceLimit = realSourceLimit ;\n pArgs -> flush = realFlush ;\n }\n return ;\n }\n }\n errorInputLength = cnv -> invalidCharLength = cnv -> toULength ;\n if ( errorInputLength > 0 ) {\n uprv_memcpy ( cnv -> invalidCharBuffer , cnv -> toUBytes , errorInputLength ) ;\n }\n cnv -> toULength = 0 ;\n if ( cnv -> toUCallbackReason == UCNV_ILLEGAL && * err == U_INVALID_CHAR_FOUND ) {\n cnv -> toUCallbackReason = UCNV_UNASSIGNED ;\n }\n cnv -> fromCharErrorBehaviour ( cnv -> toUContext , pArgs , cnv -> invalidCharBuffer , errorInputLength , cnv -> toUCallbackReason , err ) ;\n cnv -> toUCallbackReason = UCNV_ILLEGAL ;\n calledCallback = TRUE ;\n }\n }\n }"}
{"idx": 621, "target": 0, "func": "SPL_METHOD ( DirectoryIterator , getExtension ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char * fname = NULL ;\n const char * p ;\n size_t flen ;\n int idx ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n php_basename ( intern -> u . dir . entry . d_name , strlen ( intern -> u . dir . entry . d_name ) , NULL , 0 , & fname , & flen TSRMLS_CC ) ;\n p = zend_memrchr ( fname , '.' , flen ) ;\n if ( p ) {\n idx = p - fname ;\n RETVAL_STRINGL ( fname + idx + 1 , flen - idx - 1 , 1 ) ;\n efree ( fname ) ;\n return ;\n }\n else {\n if ( fname ) {\n efree ( fname ) ;\n }\n RETURN_EMPTY_STRING ( ) ;\n }\n }"}
{"idx": 622, "target": 0, "func": "int PEM_write_ ## name ( FILE * fp , const type * x ) ;\n # define DECLARE_PEM_write_cb_fp ( name , type ) int PEM_write_ ## name ( FILE * fp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # endif # define DECLARE_PEM_read_bio ( name , type ) type * PEM_read_bio_ ## name ( BIO * bp , type * * x , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL ) DECLARE_PEM_rw ( PKCS7 , PKCS7 ) DECLARE_PEM_rw ( NETSCAPE_CERT_SEQUENCE , NETSCAPE_CERT_SEQUENCE ) DECLARE_PEM_rw ( PKCS8 , X509_SIG ) DECLARE_PEM_rw ( PKCS8_PRIV_KEY_INFO , PKCS8_PRIV_KEY_INFO ) # ifndef OPENSSL_NO_RSA DECLARE_PEM_rw_cb ( RSAPrivateKey , RSA ) DECLARE_PEM_rw_const ( RSAPublicKey , RSA ) DECLARE_PEM_rw ( RSA_PUBKEY , RSA ) # endif # ifndef OPENSSL_NO_DSA DECLARE_PEM_rw_cb ( DSAPrivateKey , DSA ) DECLARE_PEM_rw ( DSA_PUBKEY , DSA ) DECLARE_PEM_rw_const ( DSAparams , DSA )"}
{"idx": 623, "target": 0, "func": "static void ShutdownTupleDescRef ( Datum arg ) {\n TupleDesc * cache_field = ( TupleDesc * ) DatumGetPointer ( arg ) ;\n if ( * cache_field ) ReleaseTupleDesc ( * cache_field ) ;\n * cache_field = NULL ;\n }"}
{"idx": 624, "target": 0, "func": "void ReadToc ( ArchiveHandle * AH ) {\n int i ;\n char * tmp ;\n DumpId * deps ;\n int depIdx ;\n int depSize ;\n TocEntry * te ;\n AH -> tocCount = ReadInt ( AH ) ;\n AH -> maxDumpId = 0 ;\n for ( i = 0 ;\n i < AH -> tocCount ;\n i ++ ) {\n te = ( TocEntry * ) pg_malloc0 ( sizeof ( TocEntry ) ) ;\n te -> dumpId = ReadInt ( AH ) ;\n if ( te -> dumpId > AH -> maxDumpId ) AH -> maxDumpId = te -> dumpId ;\n if ( te -> dumpId <= 0 ) exit_horribly ( modulename , \"entry ID %d out of range -- perhaps a corrupt TOC\\n\" , te -> dumpId ) ;\n te -> hadDumper = ReadInt ( AH ) ;\n if ( AH -> version >= K_VERS_1_8 ) {\n tmp = ReadStr ( AH ) ;\n sscanf ( tmp , \"%u\" , & te -> catalogId . tableoid ) ;\n free ( tmp ) ;\n }\n else te -> catalogId . tableoid = InvalidOid ;\n tmp = ReadStr ( AH ) ;\n sscanf ( tmp , \"%u\" , & te -> catalogId . oid ) ;\n free ( tmp ) ;\n te -> tag = ReadStr ( AH ) ;\n te -> desc = ReadStr ( AH ) ;\n if ( AH -> version >= K_VERS_1_11 ) {\n te -> section = ReadInt ( AH ) ;\n }\n else {\n if ( strcmp ( te -> desc , \"COMMENT\" ) == 0 || strcmp ( te -> desc , \"ACL\" ) == 0 || strcmp ( te -> desc , \"ACL LANGUAGE\" ) == 0 ) te -> section = SECTION_NONE ;\n else if ( strcmp ( te -> desc , \"TABLE DATA\" ) == 0 || strcmp ( te -> desc , \"BLOBS\" ) == 0 || strcmp ( te -> desc , \"BLOB COMMENTS\" ) == 0 ) te -> section = SECTION_DATA ;\n else if ( strcmp ( te -> desc , \"CONSTRAINT\" ) == 0 || strcmp ( te -> desc , \"CHECK CONSTRAINT\" ) == 0 || strcmp ( te -> desc , \"FK CONSTRAINT\" ) == 0 || strcmp ( te -> desc , \"INDEX\" ) == 0 || strcmp ( te -> desc , \"RULE\" ) == 0 || strcmp ( te -> desc , \"TRIGGER\" ) == 0 ) te -> section = SECTION_POST_DATA ;\n else te -> section = SECTION_PRE_DATA ;\n }\n te -> defn = ReadStr ( AH ) ;\n te -> dropStmt = ReadStr ( AH ) ;\n if ( AH -> version >= K_VERS_1_3 ) te -> copyStmt = ReadStr ( AH ) ;\n if ( AH -> version >= K_VERS_1_6 ) te -> namespace = ReadStr ( AH ) ;\n if ( AH -> version >= K_VERS_1_10 ) te -> tablespace = ReadStr ( AH ) ;\n te -> owner = ReadStr ( AH ) ;\n if ( AH -> version >= K_VERS_1_9 ) {\n if ( strcmp ( ReadStr ( AH ) , \"true\" ) == 0 ) te -> withOids = true ;\n else te -> withOids = false ;\n }\n else te -> withOids = true ;\n if ( AH -> version >= K_VERS_1_5 ) {\n depSize = 100 ;\n deps = ( DumpId * ) pg_malloc ( sizeof ( DumpId ) * depSize ) ;\n depIdx = 0 ;\n for ( ;\n ;\n ) {\n tmp = ReadStr ( AH ) ;\n if ( ! tmp ) break ;\n if ( depIdx >= depSize ) {\n depSize *= 2 ;\n deps = ( DumpId * ) pg_realloc ( deps , sizeof ( DumpId ) * depSize ) ;\n }\n sscanf ( tmp , \"%d\" , & deps [ depIdx ] ) ;\n free ( tmp ) ;\n depIdx ++ ;\n }\n if ( depIdx > 0 ) {\n deps = ( DumpId * ) pg_realloc ( deps , sizeof ( DumpId ) * depIdx ) ;\n te -> dependencies = deps ;\n te -> nDeps = depIdx ;\n }\n else {\n free ( deps ) ;\n te -> dependencies = NULL ;\n te -> nDeps = 0 ;\n }\n }\n else {\n te -> dependencies = NULL ;\n te -> nDeps = 0 ;\n }\n if ( AH -> ReadExtraTocPtr ) ( * AH -> ReadExtraTocPtr ) ( AH , te ) ;\n ahlog ( AH , 3 , \"read TOC entry %d (ID %d) for %s %s\\n\" , i , te -> dumpId , te -> desc , te -> tag ) ;\n te -> prev = AH -> toc -> prev ;\n AH -> toc -> prev -> next = te ;\n AH -> toc -> prev = te ;\n te -> next = AH -> toc ;\n if ( strcmp ( te -> desc , \"ENCODING\" ) == 0 ) processEncodingEntry ( AH , te ) ;\n else if ( strcmp ( te -> desc , \"STDSTRINGS\" ) == 0 ) processStdStringsEntry ( AH , te ) ;\n }\n }"}
{"idx": 625, "target": 0, "func": "DSA * d2i_DSA_PUBKEY_bio ( BIO * bp , DSA * * dsa ) {\n return ASN1_d2i_bio_of ( DSA , DSA_new , d2i_DSA_PUBKEY , bp , dsa ) ;\n }"}
{"idx": 626, "target": 0, "func": "static int selinux_inode_removexattr ( struct dentry * dentry , const char * name ) {\n if ( strcmp ( name , XATTR_NAME_SELINUX ) ) return selinux_inode_setotherxattr ( dentry , name ) ;\n return - EACCES ;\n }"}
{"idx": 627, "target": 0, "func": "static OFCondition parseExtNeg ( SOPClassExtendedNegotiationSubItem * extNeg , unsigned char * buf , unsigned long * length , unsigned long availData ) {\n unsigned char * bufStart = buf ;\n if ( availData < 6 ) return makeLengthError ( \"extended negotiation\" , availData , 6 ) ;\n extNeg -> itemType = * buf ++ ;\n extNeg -> reserved1 = * buf ++ ;\n EXTRACT_SHORT_BIG ( buf , extNeg -> itemLength ) ;\n buf += 2 ;\n EXTRACT_SHORT_BIG ( buf , extNeg -> sopClassUIDLength ) ;\n buf += 2 ;\n if ( availData - 4 < extNeg -> itemLength ) return makeLengthError ( \"extended negotiation\" , availData , 0 , extNeg -> itemLength ) ;\n if ( extNeg -> itemLength < 2 ) return makeLengthError ( \"extended negotiation item\" , availData , 2 ) ;\n if ( extNeg -> itemLength - 2 < extNeg -> sopClassUIDLength ) return makeLengthError ( \"extended negotiation item\" , extNeg -> itemLength , 0 , extNeg -> sopClassUIDLength ) ;\n extNeg -> sopClassUID . append ( ( const char * ) buf , extNeg -> sopClassUIDLength ) ;\n buf += extNeg -> sopClassUIDLength ;\n * length = 2 + 2 + extNeg -> itemLength ;\n int remain = ( int ) ( * length - ( buf - bufStart ) ) ;\n extNeg -> serviceClassAppInfoLength = remain ;\n extNeg -> serviceClassAppInfo = new unsigned char [ remain ] ;\n for ( int i = 0 ;\n i < remain ;\n i ++ ) {\n extNeg -> serviceClassAppInfo [ i ] = * buf ++ ;\n }\n if ( DCM_dcmnetLogger . isEnabledFor ( OFLogger : : TRACE_LOG_LEVEL ) ) {\n DCMNET_TRACE ( \"ExtNeg Subitem parse: Type \" << STD_NAMESPACE hex << STD_NAMESPACE setfill ( '0' ) << STD_NAMESPACE setw ( 2 ) << OFstatic_cast ( unsigned int , extNeg -> itemType ) << STD_NAMESPACE dec << \", Length \" << STD_NAMESPACE setw ( 4 ) << ( int ) extNeg -> itemLength << \", SOP Class: \" << extNeg -> sopClassUID . c_str ( ) ) ;\n OFOStringStream str ;\n str << \" values: \" ;\n for ( int j = 0 ;\n j < extNeg -> serviceClassAppInfoLength ;\n j ++ ) {\n str << STD_NAMESPACE hex << STD_NAMESPACE setfill ( '0' ) << STD_NAMESPACE setw ( 2 ) << extNeg -> serviceClassAppInfo [ j ] << STD_NAMESPACE dec << \" \" ;\n }\n str << OFStringStream_ends ;\n OFSTRINGSTREAM_GETOFSTRING ( str , res ) DCMNET_TRACE ( res ) ;\n }\n return EC_Normal ;\n }"}
{"idx": 628, "target": 0, "func": "static int dissect_h245_SEQUENCE_SIZE_1_16_OF_NonStandardParameter ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h245_SEQUENCE_SIZE_1_16_OF_NonStandardParameter , SEQUENCE_SIZE_1_16_OF_NonStandardParameter_sequence_of , 1 , 16 , FALSE ) ;\n return offset ;\n }"}
{"idx": 629, "target": 0, "func": "VALUE ossl_x509name_new ( X509_NAME * name ) {\n X509_NAME * new ;\n VALUE obj ;\n obj = NewX509Name ( cX509Name ) ;\n if ( ! name ) {\n new = X509_NAME_new ( ) ;\n }\n else {\n new = X509_NAME_dup ( name ) ;\n }\n if ( ! new ) {\n ossl_raise ( eX509NameError , NULL ) ;\n }\n SetX509Name ( obj , new ) ;\n return obj ;\n }"}
{"idx": 630, "target": 0, "func": "static void SchroFrameFree ( SchroFrame * frame , void * priv ) {\n struct picture_free_t * p_free = priv ;\n if ( ! p_free ) return ;\n picture_Release ( p_free -> p_pic ) ;\n free ( p_free ) ;\n ( void ) frame ;\n }"}
{"idx": 631, "target": 0, "func": "void unregister_key_type ( struct key_type * ktype ) {\n down_write ( & key_types_sem ) ;\n list_del_init ( & ktype -> link ) ;\n downgrade_write ( & key_types_sem ) ;\n key_gc_keytype ( ktype ) ;\n pr_notice ( \"Key type %s unregistered\\n\" , ktype -> name ) ;\n up_read ( & key_types_sem ) ;\n }"}
{"idx": 632, "target": 0, "func": "static void U_CALLCONV _CompoundTextReset ( UConverter * converter , UConverterResetChoice choice ) {\n ( void ) converter ;\n ( void ) choice ;\n }"}
{"idx": 633, "target": 0, "func": "ASN1_TYPE * ossl_asn1_get_asn1type ( VALUE obj ) {\n ASN1_TYPE * ret ;\n VALUE value , rflag ;\n void * ptr ;\n void ( * free_func ) ( ) ;\n int tag , flag ;\n tag = ossl_asn1_default_tag ( obj ) ;\n value = ossl_asn1_get_value ( obj ) ;\n switch ( tag ) {\n case V_ASN1_BOOLEAN : ptr = ( void * ) ( VALUE ) obj_to_asn1bool ( value ) ;\n free_func = NULL ;\n break ;\n case V_ASN1_INTEGER : case V_ASN1_ENUMERATED : ptr = obj_to_asn1int ( value ) ;\n free_func = ASN1_INTEGER_free ;\n break ;\n case V_ASN1_BIT_STRING : rflag = rb_attr_get ( obj , sivUNUSED_BITS ) ;\n flag = NIL_P ( rflag ) ? - 1 : NUM2INT ( rflag ) ;\n ptr = obj_to_asn1bstr ( value , flag ) ;\n free_func = ASN1_BIT_STRING_free ;\n break ;\n case V_ASN1_NULL : ptr = obj_to_asn1null ( value ) ;\n free_func = ASN1_NULL_free ;\n break ;\n case V_ASN1_OCTET_STRING : case V_ASN1_UTF8STRING : case V_ASN1_NUMERICSTRING : case V_ASN1_PRINTABLESTRING : case V_ASN1_T61STRING : case V_ASN1_VIDEOTEXSTRING : case V_ASN1_IA5STRING : case V_ASN1_GRAPHICSTRING : case V_ASN1_ISO64STRING : case V_ASN1_GENERALSTRING : case V_ASN1_UNIVERSALSTRING : case V_ASN1_BMPSTRING : ptr = obj_to_asn1str ( value ) ;\n free_func = ASN1_STRING_free ;\n break ;\n case V_ASN1_OBJECT : ptr = obj_to_asn1obj ( value ) ;\n free_func = ASN1_OBJECT_free ;\n break ;\n case V_ASN1_UTCTIME : ptr = obj_to_asn1utime ( value ) ;\n free_func = ASN1_TIME_free ;\n break ;\n case V_ASN1_GENERALIZEDTIME : ptr = obj_to_asn1gtime ( value ) ;\n free_func = ASN1_TIME_free ;\n break ;\n case V_ASN1_SET : case V_ASN1_SEQUENCE : ptr = obj_to_asn1derstr ( obj ) ;\n free_func = ASN1_STRING_free ;\n break ;\n default : ossl_raise ( eASN1Error , \"unsupported ASN.1 type\" ) ;\n }\n if ( ! ( ret = OPENSSL_malloc ( sizeof ( ASN1_TYPE ) ) ) ) {\n if ( free_func ) free_func ( ptr ) ;\n ossl_raise ( eASN1Error , \"ASN1_TYPE alloc failure\" ) ;\n }\n memset ( ret , 0 , sizeof ( ASN1_TYPE ) ) ;\n ASN1_TYPE_set ( ret , tag , ptr ) ;\n return ret ;\n }"}
{"idx": 634, "target": 0, "func": "static void ClosePacketizer ( vlc_object_t * p_this ) {\n decoder_t * p_dec = ( decoder_t * ) p_this ;\n decoder_sys_t * p_sys = p_dec -> p_sys ;\n block_BytestreamRelease ( & p_sys -> bytestream ) ;\n free ( p_dec -> p_sys ) ;\n }"}
{"idx": 635, "target": 0, "func": "static void test_bug28075 ( ) {\n int rc ;\n DBUG_ENTER ( \"test_bug28075\" ) ;\n myheader ( \"test_bug28075\" ) ;\n rc = mysql_dump_debug_info ( mysql ) ;\n DIE_UNLESS ( rc == 0 ) ;\n rc = mysql_ping ( mysql ) ;\n DIE_UNLESS ( rc == 0 ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 636, "target": 0, "func": "static uint64_t pxa2xx_cm_read ( void * opaque , hwaddr addr , unsigned size ) {\n PXA2xxState * s = ( PXA2xxState * ) opaque ;\n switch ( addr ) {\n case CCCR : case CKEN : case OSCC : return s -> cm_regs [ addr >> 2 ] ;\n case CCSR : return s -> cm_regs [ CCCR >> 2 ] | ( 3 << 28 ) ;\n default : printf ( \"%s: Bad register \" REG_FMT \"\\n\" , __FUNCTION__ , addr ) ;\n break ;\n }\n return 0 ;\n }"}
{"idx": 637, "target": 0, "func": "char * xmlrpc_time2date ( char * buf , time_t t ) {\n char timebuf [ XMLRPC_BUFSIZE ] ;\n struct tm * tm ;\n * buf = '\\0' ;\n tm = localtime ( & t ) ;\n strftime ( timebuf , XMLRPC_BUFSIZE - 1 , \"%Y%m%dT%I:%M:%S\" , tm ) ;\n snprintf ( buf , XMLRPC_BUFSIZE , \"<dateTime.iso8601>%s</dateTime.iso8601>\" , timebuf ) ;\n return buf ;\n }"}
{"idx": 638, "target": 0, "func": "static inline bool cgfs_create_legacy ( void * hdata , pid_t pid ) {\n struct cgfs_data * d = hdata ;\n struct cgroup_process_info * i ;\n if ( ! d ) return false ;\n i = d -> info ;\n if ( lxc_cgroup_create_legacy ( i , d -> name , pid ) < 0 ) {\n ERROR ( \"failed to create legacy ns cgroups for '%s'\" , d -> name ) ;\n return false ;\n }\n return true ;\n }"}
{"idx": 639, "target": 0, "func": "int update_state_info ( MI_CHECK * param , MI_INFO * info , uint update ) {\n MYISAM_SHARE * share = info -> s ;\n if ( update & UPDATE_OPEN_COUNT ) {\n share -> state . open_count = 0 ;\n share -> global_changed = 0 ;\n }\n if ( update & UPDATE_STAT ) {\n uint i , key_parts = mi_uint2korr ( share -> state . header . key_parts ) ;\n share -> state . rec_per_key_rows = info -> state -> records ;\n share -> state . changed &= ~ STATE_NOT_ANALYZED ;\n if ( info -> state -> records ) {\n for ( i = 0 ;\n i < key_parts ;\n i ++ ) {\n if ( ! ( share -> state . rec_per_key_part [ i ] = param -> rec_per_key_part [ i ] ) ) share -> state . changed |= STATE_NOT_ANALYZED ;\n }\n }\n }\n if ( update & ( UPDATE_STAT | UPDATE_SORT | UPDATE_TIME | UPDATE_AUTO_INC ) ) {\n if ( update & UPDATE_TIME ) {\n share -> state . check_time = ( long ) time ( ( time_t * ) 0 ) ;\n if ( ! share -> state . create_time ) share -> state . create_time = share -> state . check_time ;\n }\n if ( info -> lock_type == F_WRLCK ) share -> state . state = * info -> state ;\n if ( mi_state_info_write ( share -> kfile , & share -> state , 1 + 2 ) ) goto err ;\n share -> changed = 0 ;\n }\n {\n int error ;\n uint r_locks = share -> r_locks , w_locks = share -> w_locks ;\n share -> r_locks = share -> w_locks = share -> tot_locks = 0 ;\n error = _mi_writeinfo ( info , WRITEINFO_NO_UNLOCK ) ;\n share -> r_locks = r_locks ;\n share -> w_locks = w_locks ;\n share -> tot_locks = r_locks + w_locks ;\n if ( ! error ) return 0 ;\n }\n err : mi_check_print_error ( param , \"%d when updating keyfile\" , my_errno ) ;\n return 1 ;\n }"}
{"idx": 640, "target": 1, "func": "static uint32_t pointerTOCEntryCount ( const UDataMemory * pData ) {\n const PointerTOC * toc = ( PointerTOC * ) pData -> toc ;\n return ( uint32_t ) ( ( toc != NULL ) ? ( toc -> count ) : 0 ) ;\n }"}
{"idx": 641, "target": 0, "func": "TEST ( BuildTime , TimeLooksValid ) {\n char build_time [ ] = \"00:00:00\" ;\n EXPECT_EQ ( 8u , strlen ( build_time ) ) ;\n EXPECT_EQ ( ':' , build_time [ 2 ] ) ;\n EXPECT_EQ ( ':' , build_time [ 5 ] ) ;\n }"}
{"idx": 642, "target": 0, "func": "static inline void handle_variation_selector_cluster ( const hb_ot_shape_normalize_context_t * c , unsigned int end , bool short_circuit ) {\n hb_buffer_t * const buffer = c -> buffer ;\n hb_font_t * const font = c -> font ;\n for ( ;\n buffer -> idx < end - 1 ;\n ) {\n if ( unlikely ( buffer -> unicode -> is_variation_selector ( buffer -> cur ( + 1 ) . codepoint ) ) ) {\n if ( font -> get_glyph ( buffer -> cur ( ) . codepoint , buffer -> cur ( + 1 ) . codepoint , & buffer -> cur ( ) . glyph_index ( ) ) ) {\n buffer -> replace_glyphs ( 2 , 1 , & buffer -> cur ( ) . codepoint ) ;\n }\n else {\n set_glyph ( buffer -> cur ( ) , font ) ;\n buffer -> next_glyph ( ) ;\n set_glyph ( buffer -> cur ( ) , font ) ;\n buffer -> next_glyph ( ) ;\n }\n while ( buffer -> idx < end && unlikely ( buffer -> unicode -> is_variation_selector ( buffer -> cur ( ) . codepoint ) ) ) {\n set_glyph ( buffer -> cur ( ) , font ) ;\n buffer -> next_glyph ( ) ;\n }\n }\n else {\n set_glyph ( buffer -> cur ( ) , font ) ;\n buffer -> next_glyph ( ) ;\n }\n }\n if ( likely ( buffer -> idx < end ) ) {\n set_glyph ( buffer -> cur ( ) , font ) ;\n buffer -> next_glyph ( ) ;\n }\n }"}
{"idx": 643, "target": 0, "func": "TEST_F ( TemplateURLTest , ParseURLEmpty ) {\n TemplateURL url ( ( TemplateURLData ( ) ) ) ;\n TemplateURLRef : : Replacements replacements ;\n bool valid = false ;\n EXPECT_EQ ( std : : string ( ) , url . url_ref ( ) . ParseURL ( std : : string ( ) , & replacements , NULL , & valid ) ) ;\n EXPECT_TRUE ( replacements . empty ( ) ) ;\n EXPECT_TRUE ( valid ) ;\n }"}
{"idx": 644, "target": 1, "func": "METHOD ( asn1_parser_t , iterate , bool , private_asn1_parser_t * this , int * objectID , chunk_t * object ) {\n chunk_t * blob , * blob1 ;\n u_char * start_ptr ;\n u_int level ;\n asn1Object_t obj ;\n * object = chunk_empty ;\n obj = this -> objects [ ++ ( this -> line ) ] ;\n if ( obj . flags & ASN1_EXIT ) {\n return FALSE ;\n }\n if ( obj . flags & ASN1_END ) {\n if ( this -> loopAddr [ obj . level ] && this -> blobs [ obj . level + 1 ] . len > 0 ) {\n this -> line = this -> loopAddr [ obj . level ] ;\n obj = this -> objects [ this -> line ] ;\n }\n else {\n this -> loopAddr [ obj . level ] = 0 ;\n goto end ;\n }\n }\n level = this -> level0 + obj . level ;\n blob = this -> blobs + obj . level ;\n blob1 = blob + 1 ;\n start_ptr = blob -> ptr ;\n if ( ( obj . flags & ASN1_DEF ) && ( blob -> len == 0 || * start_ptr != obj . type ) ) {\n DBG2 ( DBG_ASN , \"L%d - %s:\" , level , obj . name ) ;\n if ( obj . type & ASN1_CONSTRUCTED ) {\n this -> line ++ ;\n }\n goto end ;\n }\n if ( ( obj . flags & ASN1_OPT ) && ( blob -> len == 0 || * start_ptr != obj . type ) ) {\n do {\n this -> line ++ ;\n }\n while ( ! ( ( this -> objects [ this -> line ] . flags & ASN1_END ) && ( this -> objects [ this -> line ] . level == obj . level ) ) ) ;\n goto end ;\n }\n if ( blob -> len < 2 ) {\n DBG1 ( DBG_ASN , \"L%d - %s: ASN.1 object smaller than 2 octets\" , level , obj . name ) ;\n this -> success = FALSE ;\n goto end ;\n }\n blob1 -> len = asn1_length ( blob ) ;\n if ( blob1 -> len == ASN1_INVALID_LENGTH ) {\n DBG1 ( DBG_ASN , \"L%d - %s: length of ASN.1 object invalid or too large\" , level , obj . name ) ;\n this -> success = FALSE ;\n goto end ;\n }\n blob1 -> ptr = blob -> ptr ;\n blob -> ptr += blob1 -> len ;\n blob -> len -= blob1 -> len ;\n if ( obj . flags & ASN1_RAW ) {\n DBG2 ( DBG_ASN , \"L%d - %s:\" , level , obj . name ) ;\n object -> ptr = start_ptr ;\n object -> len = ( size_t ) ( blob -> ptr - start_ptr ) ;\n goto end ;\n }\n if ( * start_ptr != obj . type && ! ( this -> implicit && this -> line == 0 ) ) {\n DBG2 ( DBG_ASN , \"L%d - %s: ASN1 tag 0x%02x expected, but is 0x%02x\" , level , obj . name , obj . type , * start_ptr ) ;\n DBG3 ( DBG_ASN , \"%b\" , start_ptr , ( u_int ) ( blob -> ptr - start_ptr ) ) ;\n this -> success = FALSE ;\n goto end ;\n }\n DBG2 ( DBG_ASN , \"L%d - %s:\" , level , obj . name ) ;\n if ( obj . flags & ASN1_LOOP ) {\n if ( blob1 -> len > 0 ) {\n this -> loopAddr [ obj . level ] = this -> line + 1 ;\n }\n else {\n do {\n this -> line ++ ;\n }\n while ( ! ( ( this -> objects [ this -> line ] . flags & ASN1_END ) && ( this -> objects [ this -> line ] . level == obj . level ) ) ) ;\n goto end ;\n }\n }\n if ( obj . flags & ASN1_OBJ ) {\n object -> ptr = start_ptr ;\n object -> len = ( size_t ) ( blob -> ptr - start_ptr ) ;\n if ( this -> private ) {\n DBG4 ( DBG_ASN , \"%B\" , object ) ;\n }\n else {\n DBG3 ( DBG_ASN , \"%B\" , object ) ;\n }\n }\n else if ( obj . flags & ASN1_BODY ) {\n * object = * blob1 ;\n asn1_debug_simple_object ( * object , obj . type , this -> private ) ;\n }\n end : * objectID = this -> line ;\n return this -> success ;\n }"}
{"idx": 645, "target": 0, "func": "static int dissect_pcp_message_pmns_traverse ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , int offset ) {\n proto_item * pcp_pmns_traverse_item ;\n proto_tree * pcp_pmns_traverse_tree ;\n guint32 name_len ;\n guint32 padding ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"[%s]\" , val_to_str ( PCP_PDU_PMNS_TRAVERSE , packettypenames , \"Unknown Type:0x%02x\" ) ) ;\n pcp_pmns_traverse_item = proto_tree_add_item ( tree , hf_pcp_pmns_traverse , tvb , offset , - 1 , ENC_NA ) ;\n pcp_pmns_traverse_tree = proto_item_add_subtree ( pcp_pmns_traverse_item , ett_pcp ) ;\n proto_tree_add_item ( pcp_pmns_traverse_tree , hf_pcp_pmns_subtype , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( pcp_pmns_traverse_tree , hf_pcp_pmns_namelen , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n name_len = tvb_get_ntohl ( tvb , offset ) ;\n offset += 4 ;\n proto_tree_add_item ( pcp_pmns_traverse_tree , hf_pcp_pmns_name , tvb , offset , name_len , ENC_ASCII | ENC_NA ) ;\n offset += name_len ;\n padding = name_len % 4 ;\n if ( padding != 0 ) {\n padding = 4 - padding ;\n proto_tree_add_item ( pcp_pmns_traverse_tree , hf_pcp_pdu_padding , tvb , offset , padding , ENC_NA ) ;\n offset += padding ;\n }\n return offset ;\n }"}
{"idx": 646, "target": 0, "func": "bool has_parallel_hazard ( Node * node , bool allow_restricted ) {\n has_parallel_hazard_arg context ;\n context . allow_restricted = allow_restricted ;\n return has_parallel_hazard_walker ( node , & context ) ;\n }"}
{"idx": 647, "target": 0, "func": "virLogFilterPtr virLogParseFilter ( const char * src ) {\n virLogFilterPtr ret = NULL ;\n size_t count = 0 ;\n virLogPriority prio ;\n char * * tokens = NULL ;\n unsigned int flags = 0 ;\n char * match = NULL ;\n VIR_DEBUG ( \"filter=%s\" , src ) ;\n if ( ! ( tokens = virStringSplitCount ( src , \":\" , 0 , & count ) ) || count != 2 ) {\n virReportError ( VIR_ERR_INVALID_ARG , _ ( \"Malformed format for filter '%s'\" ) , src ) ;\n goto cleanup ;\n }\n if ( virStrToLong_uip ( tokens [ 0 ] , NULL , 10 , & prio ) < 0 || ( prio < VIR_LOG_DEBUG ) || ( prio > VIR_LOG_ERROR ) ) {\n virReportError ( VIR_ERR_INVALID_ARG , _ ( \"Invalid priority '%s' for output '%s'\" ) , tokens [ 0 ] , src ) ;\n goto cleanup ;\n }\n match = tokens [ 1 ] ;\n if ( match [ 0 ] == '+' ) {\n flags |= VIR_LOG_STACK_TRACE ;\n match ++ ;\n }\n if ( ! * match ) {\n virReportError ( VIR_ERR_INVALID_ARG , _ ( \"Invalid match string '%s'\" ) , tokens [ 1 ] ) ;\n goto cleanup ;\n }\n if ( ! ( ret = virLogFilterNew ( match , prio , flags ) ) ) goto cleanup ;\n cleanup : virStringListFree ( tokens ) ;\n return ret ;\n }"}
{"idx": 648, "target": 0, "func": "static int ogg_read_seek ( AVFormatContext * s , int stream_index , int64_t timestamp , int flags ) {\n struct ogg * ogg = s -> priv_data ;\n struct ogg_stream * os = ogg -> streams + stream_index ;\n int ret ;\n av_assert0 ( stream_index < ogg -> nstreams ) ;\n ogg_reset ( s ) ;\n if ( s -> streams [ stream_index ] -> codec -> codec_type == AVMEDIA_TYPE_VIDEO && ! ( flags & AVSEEK_FLAG_ANY ) ) os -> keyframe_seek = 1 ;\n ret = ff_seek_frame_binary ( s , stream_index , timestamp , flags ) ;\n ogg_reset ( s ) ;\n os = ogg -> streams + stream_index ;\n if ( ret < 0 ) os -> keyframe_seek = 0 ;\n return ret ;\n }"}
{"idx": 649, "target": 0, "func": "inline static void update_current_info ( HttpTransact : : CurrentInfo * into , HttpTransact : : ConnectionAttributes * from , HttpTransact : : LookingUp_t who , int attempts ) {\n into -> request_to = who ;\n into -> server = from ;\n into -> attempts = attempts ;\n }"}
{"idx": 650, "target": 0, "func": "int ff_h264_decode_ref_pic_list_reordering ( H264Context * h ) {\n int list , index , pic_structure , i ;\n print_short_term ( h ) ;\n print_long_term ( h ) ;\n for ( list = 0 ;\n list < h -> list_count ;\n list ++ ) {\n for ( i = 0 ;\n i < h -> ref_count [ list ] ;\n i ++ ) COPY_PICTURE ( & h -> ref_list [ list ] [ i ] , & h -> default_ref_list [ list ] [ i ] ) ;\n if ( get_bits1 ( & h -> gb ) ) {\n int pred = h -> curr_pic_num ;\n for ( index = 0 ;\n ;\n index ++ ) {\n unsigned int reordering_of_pic_nums_idc = get_ue_golomb_31 ( & h -> gb ) ;\n unsigned int pic_id ;\n int i ;\n Picture * ref = NULL ;\n if ( reordering_of_pic_nums_idc == 3 ) break ;\n if ( index >= h -> ref_count [ list ] ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"reference count overflow\\n\" ) ;\n return - 1 ;\n }\n if ( reordering_of_pic_nums_idc < 3 ) {\n if ( reordering_of_pic_nums_idc < 2 ) {\n const unsigned int abs_diff_pic_num = get_ue_golomb ( & h -> gb ) + 1 ;\n int frame_num ;\n if ( abs_diff_pic_num > h -> max_pic_num ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"abs_diff_pic_num overflow\\n\" ) ;\n return - 1 ;\n }\n if ( reordering_of_pic_nums_idc == 0 ) pred -= abs_diff_pic_num ;\n else pred += abs_diff_pic_num ;\n pred &= h -> max_pic_num - 1 ;\n frame_num = pic_num_extract ( h , pred , & pic_structure ) ;\n for ( i = h -> short_ref_count - 1 ;\n i >= 0 ;\n i -- ) {\n ref = h -> short_ref [ i ] ;\n assert ( ref -> reference ) ;\n assert ( ! ref -> long_ref ) ;\n if ( ref -> frame_num == frame_num && ( ref -> reference & pic_structure ) ) break ;\n }\n if ( i >= 0 ) ref -> pic_id = pred ;\n }\n else {\n int long_idx ;\n pic_id = get_ue_golomb ( & h -> gb ) ;\n long_idx = pic_num_extract ( h , pic_id , & pic_structure ) ;\n if ( long_idx > 31 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"long_term_pic_idx overflow\\n\" ) ;\n return - 1 ;\n }\n ref = h -> long_ref [ long_idx ] ;\n assert ( ! ( ref && ! ref -> reference ) ) ;\n if ( ref && ( ref -> reference & pic_structure ) ) {\n ref -> pic_id = pic_id ;\n assert ( ref -> long_ref ) ;\n i = 0 ;\n }\n else {\n i = - 1 ;\n }\n }\n if ( i < 0 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"reference picture missing during reorder\\n\" ) ;\n memset ( & h -> ref_list [ list ] [ index ] , 0 , sizeof ( Picture ) ) ;\n }\n else {\n for ( i = index ;\n i + 1 < h -> ref_count [ list ] ;\n i ++ ) {\n if ( ref -> long_ref == h -> ref_list [ list ] [ i ] . long_ref && ref -> pic_id == h -> ref_list [ list ] [ i ] . pic_id ) break ;\n }\n for ( ;\n i > index ;\n i -- ) {\n COPY_PICTURE ( & h -> ref_list [ list ] [ i ] , & h -> ref_list [ list ] [ i - 1 ] ) ;\n }\n COPY_PICTURE ( & h -> ref_list [ list ] [ index ] , ref ) ;\n if ( FIELD_PICTURE ) {\n pic_as_field ( & h -> ref_list [ list ] [ index ] , pic_structure ) ;\n }\n }\n }\n else {\n av_log ( h -> avctx , AV_LOG_ERROR , \"illegal reordering_of_pic_nums_idc\\n\" ) ;\n return - 1 ;\n }\n }\n }\n }\n for ( list = 0 ;\n list < h -> list_count ;\n list ++ ) {\n for ( index = 0 ;\n index < h -> ref_count [ list ] ;\n index ++ ) {\n if ( ! h -> ref_list [ list ] [ index ] . f . data [ 0 ] ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"Missing reference picture\\n\" ) ;\n if ( h -> default_ref_list [ list ] [ 0 ] . f . data [ 0 ] ) COPY_PICTURE ( & h -> ref_list [ list ] [ index ] , & h -> default_ref_list [ list ] [ 0 ] ) ;\n else return - 1 ;\n }\n }\n }\n return 0 ;\n }"}
{"idx": 651, "target": 0, "func": "TEST_F ( TemplateURLTest , ParseURLNoKnownParameters ) {\n TemplateURLData data ;\n data . SetURL ( \"{\n}\n\" ) ;\n TemplateURL url ( data ) ;\n TemplateURLRef : : Replacements replacements ;\n bool valid = false ;\n EXPECT_EQ ( \"{\n}\n\" , url . url_ref ( ) . ParseURL ( \"{\n}\n\" , & replacements , NULL , & valid ) ) ;\n EXPECT_TRUE ( replacements . empty ( ) ) ;\n EXPECT_TRUE ( valid ) ;\n }"}
{"idx": 652, "target": 0, "func": "static void fz_format_link_key ( fz_context * ctx , char * s , int n , void * key_ ) {\n static const char * hex = \"0123456789abcdef\" ;\n fz_link_key * key = ( fz_link_key * ) key_ ;\n char sm [ 33 ] , dm [ 33 ] ;\n int i ;\n for ( i = 0 ;\n i < 16 ;\n ++ i ) {\n sm [ i * 2 + 0 ] = hex [ key -> src_md5 [ i ] >> 4 ] ;\n sm [ i * 2 + 1 ] = hex [ key -> src_md5 [ i ] & 15 ] ;\n dm [ i * 2 + 0 ] = hex [ key -> dst_md5 [ i ] >> 4 ] ;\n dm [ i * 2 + 1 ] = hex [ key -> dst_md5 [ i ] & 15 ] ;\n }\n sm [ 32 ] = 0 ;\n dm [ 32 ] = 0 ;\n fz_snprintf ( s , n , \"(link src_md5=%s dst_md5=%s)\" , sm , dm ) ;\n }"}
{"idx": 653, "target": 0, "func": "static void armv7m_nvic_register_types ( void ) {\n type_register_static ( & armv7m_nvic_info ) ;\n }"}
{"idx": 654, "target": 0, "func": "static VALUE mFixnum_to_json ( int argc , VALUE * argv , VALUE self ) {\n GENERATE_JSON ( fixnum ) ;\n }"}
{"idx": 655, "target": 0, "func": "static void test_bug24179 ( ) {\n int rc ;\n MYSQL_STMT * stmt ;\n DBUG_ENTER ( \"test_bug24179\" ) ;\n myheader ( \"test_bug24179\" ) ;\n stmt = open_cursor ( \"select 1 into @a\" ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n DIE_UNLESS ( rc ) ;\n if ( ! opt_silent ) {\n printf ( \"Got error (as expected): %d %s\\n\" , mysql_stmt_errno ( stmt ) , mysql_stmt_error ( stmt ) ) ;\n }\n DIE_UNLESS ( mysql_stmt_errno ( stmt ) == 1323 ) ;\n mysql_stmt_close ( stmt ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 656, "target": 0, "func": "static int dissect_diameter ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n if ( check_diameter ( tvb ) != IS_DIAMETER ) return 0 ;\n return dissect_diameter_common ( tvb , pinfo , tree , data ) ;\n }"}
{"idx": 657, "target": 0, "func": "int movepoint ( register MI_INFO * info , uchar * record , my_off_t oldpos , my_off_t newpos , uint prot_key ) {\n register uint i ;\n uchar * key ;\n uint key_length ;\n DBUG_ENTER ( \"movepoint\" ) ;\n key = info -> lastkey + info -> s -> base . max_key_length ;\n for ( i = 0 ;\n i < info -> s -> base . keys ;\n i ++ ) {\n if ( i != prot_key && mi_is_key_active ( info -> s -> state . key_map , i ) ) {\n key_length = _mi_make_key ( info , i , key , record , oldpos ) ;\n if ( info -> s -> keyinfo [ i ] . flag & HA_NOSAME ) {\n uint nod_flag ;\n MI_KEYDEF * keyinfo ;\n keyinfo = info -> s -> keyinfo + i ;\n if ( _mi_search ( info , keyinfo , key , USE_WHOLE_KEY , ( uint ) ( SEARCH_SAME | SEARCH_SAVE_BUFF ) , info -> s -> state . key_root [ i ] ) ) DBUG_RETURN ( - 1 ) ;\n nod_flag = mi_test_if_nod ( info -> buff ) ;\n _mi_dpointer ( info , info -> int_keypos - nod_flag - info -> s -> rec_reflength , newpos ) ;\n if ( _mi_write_keypage ( info , keyinfo , info -> last_keypage , DFLT_INIT_HITS , info -> buff ) ) DBUG_RETURN ( - 1 ) ;\n }\n else {\n if ( _mi_ck_delete ( info , i , key , key_length ) ) DBUG_RETURN ( - 1 ) ;\n key_length = _mi_make_key ( info , i , key , record , newpos ) ;\n if ( _mi_ck_write ( info , i , key , key_length ) ) DBUG_RETURN ( - 1 ) ;\n }\n }\n }\n DBUG_RETURN ( 0 ) ;\n }"}
{"idx": 658, "target": 0, "func": "int dtls1_retransmit_buffered_messages ( SSL * s ) {\n pqueue sent = s -> d1 -> sent_messages ;\n piterator iter ;\n pitem * item ;\n hm_fragment * frag ;\n int found = 0 ;\n iter = pqueue_iterator ( sent ) ;\n for ( item = pqueue_next ( & iter ) ;\n item != NULL ;\n item = pqueue_next ( & iter ) ) {\n frag = ( hm_fragment * ) item -> data ;\n if ( dtls1_retransmit_message ( s , ( unsigned short ) dtls1_get_queue_priority ( frag -> msg_header . seq , frag -> msg_header . is_ccs ) , 0 , & found ) <= 0 && found ) {\n fprintf ( stderr , \"dtls1_retransmit_message() failed\\n\" ) ;\n return - 1 ;\n }\n }\n return 1 ;\n }"}
{"idx": 659, "target": 0, "func": "static void binkb_init_bundle ( BinkContext * c , int bundle_num ) {\n c -> bundle [ bundle_num ] . cur_dec = c -> bundle [ bundle_num ] . cur_ptr = c -> bundle [ bundle_num ] . data ;\n c -> bundle [ bundle_num ] . len = 13 ;\n }"}
{"idx": 660, "target": 0, "func": "inline static void _slurm_rpc_checkpoint ( slurm_msg_t * msg ) {\n int error_code = SLURM_SUCCESS ;\n DEF_TIMERS ;\n checkpoint_msg_t * ckpt_ptr = ( checkpoint_msg_t * ) msg -> data ;\n slurmctld_lock_t job_write_lock = {\n NO_LOCK , WRITE_LOCK , READ_LOCK , NO_LOCK , READ_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n char * op ;\n START_TIMER ;\n switch ( ckpt_ptr -> op ) {\n case CHECK_ABLE : op = \"able\" ;\n break ;\n case CHECK_CREATE : op = \"create\" ;\n break ;\n case CHECK_DISABLE : op = \"disable\" ;\n break ;\n case CHECK_ENABLE : op = \"enable\" ;\n break ;\n case CHECK_ERROR : op = \"error\" ;\n break ;\n case CHECK_REQUEUE : op = \"requeue\" ;\n break ;\n case CHECK_RESTART : op = \"restart\" ;\n break ;\n case CHECK_VACATE : op = \"vacate\" ;\n break ;\n default : op = \"unknown\" ;\n }\n debug2 ( \"Processing RPC: REQUEST_CHECKPOINT(%s) from uid=%u\" , op , ( unsigned int ) uid ) ;\n lock_slurmctld ( job_write_lock ) ;\n if ( ckpt_ptr -> op == CHECK_RESTART ) {\n error_code = job_restart ( ckpt_ptr , uid , msg -> conn_fd , msg -> protocol_version ) ;\n }\n else if ( ckpt_ptr -> step_id == SLURM_BATCH_SCRIPT ) {\n error_code = job_checkpoint ( ckpt_ptr , uid , msg -> conn_fd , msg -> protocol_version ) ;\n }\n else {\n error_code = job_step_checkpoint ( ckpt_ptr , uid , msg -> conn_fd , msg -> protocol_version ) ;\n }\n unlock_slurmctld ( job_write_lock ) ;\n END_TIMER2 ( \"_slurm_rpc_checkpoint\" ) ;\n if ( error_code ) {\n if ( ckpt_ptr -> step_id == SLURM_BATCH_SCRIPT ) {\n info ( \"_slurm_rpc_checkpoint %s %u: %s\" , op , ckpt_ptr -> job_id , slurm_strerror ( error_code ) ) ;\n }\n else {\n info ( \"_slurm_rpc_checkpoint %s %u.%u: %s\" , op , ckpt_ptr -> job_id , ckpt_ptr -> step_id , slurm_strerror ( error_code ) ) ;\n }\n }\n else {\n if ( ckpt_ptr -> step_id == SLURM_BATCH_SCRIPT ) {\n info ( \"_slurm_rpc_checkpoint %s for %u %s\" , op , ckpt_ptr -> job_id , TIME_STR ) ;\n }\n else {\n info ( \"_slurm_rpc_checkpoint %s for %u.%u %s\" , op , ckpt_ptr -> job_id , ckpt_ptr -> step_id , TIME_STR ) ;\n }\n if ( ( ckpt_ptr -> op != CHECK_ABLE ) && ( ckpt_ptr -> op != CHECK_ERROR ) ) {\n schedule_job_save ( ) ;\n }\n }\n }"}
{"idx": 661, "target": 0, "func": "static inline void e1000e_lower_legacy_irq ( E1000ECore * core ) {\n trace_e1000e_irq_legacy_notify ( false ) ;\n pci_set_irq ( core -> owner , 0 ) ;\n }"}
{"idx": 662, "target": 0, "func": "static void parse_mb_skip ( Wmv2Context * w ) {\n int mb_x , mb_y ;\n MpegEncContext * const s = & w -> s ;\n uint32_t * const mb_type = s -> current_picture_ptr -> mb_type ;\n w -> skip_type = get_bits ( & s -> gb , 2 ) ;\n switch ( w -> skip_type ) {\n case SKIP_TYPE_NONE : for ( mb_y = 0 ;\n mb_y < s -> mb_height ;\n mb_y ++ ) {\n for ( mb_x = 0 ;\n mb_x < s -> mb_width ;\n mb_x ++ ) {\n mb_type [ mb_y * s -> mb_stride + mb_x ] = MB_TYPE_16x16 | MB_TYPE_L0 ;\n }\n }\n break ;\n case SKIP_TYPE_MPEG : for ( mb_y = 0 ;\n mb_y < s -> mb_height ;\n mb_y ++ ) {\n for ( mb_x = 0 ;\n mb_x < s -> mb_width ;\n mb_x ++ ) {\n mb_type [ mb_y * s -> mb_stride + mb_x ] = ( get_bits1 ( & s -> gb ) ? MB_TYPE_SKIP : 0 ) | MB_TYPE_16x16 | MB_TYPE_L0 ;\n }\n }\n break ;\n case SKIP_TYPE_ROW : for ( mb_y = 0 ;\n mb_y < s -> mb_height ;\n mb_y ++ ) {\n if ( get_bits1 ( & s -> gb ) ) {\n for ( mb_x = 0 ;\n mb_x < s -> mb_width ;\n mb_x ++ ) {\n mb_type [ mb_y * s -> mb_stride + mb_x ] = MB_TYPE_SKIP | MB_TYPE_16x16 | MB_TYPE_L0 ;\n }\n }\n else {\n for ( mb_x = 0 ;\n mb_x < s -> mb_width ;\n mb_x ++ ) {\n mb_type [ mb_y * s -> mb_stride + mb_x ] = ( get_bits1 ( & s -> gb ) ? MB_TYPE_SKIP : 0 ) | MB_TYPE_16x16 | MB_TYPE_L0 ;\n }\n }\n }\n break ;\n case SKIP_TYPE_COL : for ( mb_x = 0 ;\n mb_x < s -> mb_width ;\n mb_x ++ ) {\n if ( get_bits1 ( & s -> gb ) ) {\n for ( mb_y = 0 ;\n mb_y < s -> mb_height ;\n mb_y ++ ) {\n mb_type [ mb_y * s -> mb_stride + mb_x ] = MB_TYPE_SKIP | MB_TYPE_16x16 | MB_TYPE_L0 ;\n }\n }\n else {\n for ( mb_y = 0 ;\n mb_y < s -> mb_height ;\n mb_y ++ ) {\n mb_type [ mb_y * s -> mb_stride + mb_x ] = ( get_bits1 ( & s -> gb ) ? MB_TYPE_SKIP : 0 ) | MB_TYPE_16x16 | MB_TYPE_L0 ;\n }\n }\n }\n break ;\n }\n }"}
{"idx": 663, "target": 0, "func": "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 ) {\n uint8_t comp_pred [ m * n ] ;\n vp9_comp_avg_pred ( comp_pred , second_pred , m , n , ref , ref_stride ) ;\n return sad ( src , src_stride , comp_pred , m , m , n ) ;\n \\ }\n # define sadMxNxK ( m , n , k ) void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 )"}
{"idx": 664, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( SiteDetailsBrowserTest , VerifySiteInstanceCountInBrowsingInstance ) {\n GURL abcdefghi_url = embedded_test_server ( ) -> GetURL ( \"a.com\" , \"/cross_site_iframe_factory.html?a(b(a(b,c,d,e,f,g,h)),c,d,e,i(f))\" ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , abcdefghi_url ) ;\n scoped_refptr < TestMemoryDetails > details = new TestMemoryDetails ( ) ;\n details -> StartFetchAndWait ( ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.SiteInstancesPerBrowsingInstance\" ) , HasOneSample ( DependingOnPolicy ( 1 , 1 , 9 ) ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.ProxyCount\" ) , HasOneSample ( DependingOnPolicy ( 0 , 0 , 114 ) ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.ProxyCountPerBrowsingInstance\" ) , HasOneSample ( DependingOnPolicy ( 0 , 0 , 114 ) ) ) ;\n GURL dcbae_url = embedded_test_server ( ) -> GetURL ( \"a.com\" , \"/cross_site_iframe_factory.html?d(c(b(j(k))))\" ) ;\n ui_test_utils : : UrlLoadObserver load_complete ( dcbae_url , content : : NotificationService : : AllSources ( ) ) ;\n ASSERT_EQ ( 1 , browser ( ) -> tab_strip_model ( ) -> count ( ) ) ;\n ASSERT_TRUE ( content : : ExecuteScript ( browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) , \"window.open('\" + dcbae_url . spec ( ) + \"');\n\" ) ) ;\n ASSERT_EQ ( 2 , browser ( ) -> tab_strip_model ( ) -> count ( ) ) ;\n load_complete . Wait ( ) ;\n details = new TestMemoryDetails ( ) ;\n details -> StartFetchAndWait ( ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.SiteInstancesPerBrowsingInstance\" ) , HasOneSample ( DependingOnPolicy ( 1 , 1 , 11 ) ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.ProxyCount\" ) , HasOneSample ( DependingOnPolicy ( 0 , 0 , 160 ) ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.ProxyCountPerBrowsingInstance\" ) , HasOneSample ( DependingOnPolicy ( 0 , 0 , 160 ) ) ) ;\n GURL abcd_url = embedded_test_server ( ) -> GetURL ( \"a.com\" , \"/cross_site_iframe_factory.html?a(b(c(d())))\" ) ;\n AddTabAtIndex ( 1 , abcd_url , ui : : PAGE_TRANSITION_TYPED ) ;\n details = new TestMemoryDetails ( ) ;\n details -> StartFetchAndWait ( ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.SiteInstancesPerBrowsingInstance\" ) , DependingOnPolicy ( ElementsAre ( Sample ( 1 , 2 ) ) , ElementsAre ( Sample ( 1 , 2 ) ) , ElementsAre ( Sample ( 4 , 1 ) , Sample ( 11 , 1 ) ) ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.ProxyCount\" ) , HasOneSample ( DependingOnPolicy ( 0 , 0 , 160 ) ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.ProxyCountPerBrowsingInstance\" ) , DependingOnPolicy ( ElementsAre ( Sample ( 0 , 2 ) ) , ElementsAre ( Sample ( 0 , 2 ) ) , ElementsAre ( Sample ( 12 , 1 ) , Sample ( 160 , 1 ) ) ) ) ;\n }"}
{"idx": 665, "target": 0, "func": "static void auth_server_connection_remove_requests ( struct auth_server_connection * conn , const char * disconnect_reason ) {\n static const char * const temp_failure_args [ ] = {\n \"temp\" , NULL }\n ;\n struct hash_iterate_context * iter ;\n void * key ;\n struct auth_client_request * request ;\n time_t created , oldest = 0 ;\n unsigned int request_count = 0 ;\n if ( hash_table_count ( conn -> requests ) == 0 ) return ;\n iter = hash_table_iterate_init ( conn -> requests ) ;\n while ( hash_table_iterate ( iter , conn -> requests , & key , & request ) ) {\n if ( ! auth_client_request_is_aborted ( request ) ) {\n request_count ++ ;\n created = auth_client_request_get_create_time ( request ) ;\n if ( oldest > created || oldest == 0 ) oldest = created ;\n }\n auth_client_request_server_input ( request , AUTH_REQUEST_STATUS_INTERNAL_FAIL , temp_failure_args ) ;\n }\n hash_table_iterate_deinit ( & iter ) ;\n hash_table_clear ( conn -> requests , FALSE ) ;\n if ( request_count > 0 ) {\n i_warning ( \"Auth connection closed with %u pending requests \" \"(max %u secs, pid=%s, %s)\" , request_count , ( unsigned int ) ( ioloop_time - oldest ) , my_pid , disconnect_reason ) ;\n }\n }"}
{"idx": 666, "target": 1, "func": "static void write_mb_modes_kf ( const VP9_COMMON * cm , const MACROBLOCKD * xd , MODE_INFO * * mi_8x8 , vp9_writer * w ) {\n const struct segmentation * const seg = & cm -> seg ;\n const MODE_INFO * const mi = mi_8x8 [ 0 ] ;\n const MODE_INFO * const above_mi = mi_8x8 [ - xd -> mi_stride ] ;\n const MODE_INFO * const left_mi = xd -> left_available ? mi_8x8 [ - 1 ] : NULL ;\n const MB_MODE_INFO * const mbmi = & mi -> mbmi ;\n const BLOCK_SIZE bsize = mbmi -> sb_type ;\n if ( seg -> update_map ) write_segment_id ( w , seg , mbmi -> segment_id ) ;\n write_skip ( cm , xd , mbmi -> segment_id , mi , w ) ;\n if ( bsize >= BLOCK_8X8 && cm -> tx_mode == TX_MODE_SELECT ) write_selected_tx_size ( cm , xd , mbmi -> tx_size , bsize , w ) ;\n if ( bsize >= BLOCK_8X8 ) {\n write_intra_mode ( w , mbmi -> mode , get_y_mode_probs ( mi , above_mi , left_mi , 0 ) ) ;\n }\n else {\n const int num_4x4_w = num_4x4_blocks_wide_lookup [ bsize ] ;\n const int num_4x4_h = num_4x4_blocks_high_lookup [ bsize ] ;\n int idx , idy ;\n for ( idy = 0 ;\n idy < 2 ;\n idy += num_4x4_h ) {\n for ( idx = 0 ;\n idx < 2 ;\n idx += num_4x4_w ) {\n const int block = idy * 2 + idx ;\n write_intra_mode ( w , mi -> bmi [ block ] . as_mode , get_y_mode_probs ( mi , above_mi , left_mi , block ) ) ;\n }\n }\n }\n write_intra_mode ( w , mbmi -> uv_mode , vp9_kf_uv_mode_prob [ mbmi -> mode ] ) ;\n }"}
{"idx": 667, "target": 0, "func": "proto_item * proto_tree_add_eui64_format ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , const guint64 value , const char * format , ... ) {\n proto_item * pi ;\n va_list ap ;\n pi = proto_tree_add_eui64 ( tree , hfindex , tvb , start , length , value ) ;\n if ( pi != tree ) {\n TRY_TO_FAKE_THIS_REPR ( pi ) ;\n va_start ( ap , format ) ;\n proto_tree_set_representation ( pi , format , ap ) ;\n va_end ( ap ) ;\n }\n return pi ;\n }"}
{"idx": 668, "target": 0, "func": "static void cirrus_vga_register_types ( void ) {\n type_register_static ( & isa_cirrus_vga_info ) ;\n type_register_static ( & cirrus_vga_info ) ;\n }"}
{"idx": 669, "target": 0, "func": "static int dissect_h245_INTEGER_0_1073741823 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 1073741823U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 670, "target": 0, "func": "static char * alloc_query_str ( ulong size ) {\n char * query ;\n if ( ! ( query = ( char * ) my_malloc ( size , MYF ( MY_WME ) ) ) ) die ( EX_MYSQLERR , \"Couldn't allocate a query string.\" ) ;\n return query ;\n }"}
{"idx": 671, "target": 0, "func": "static int get_delta ( struct rev_info * revs , struct remote_lock * lock ) {\n int i ;\n struct commit * commit ;\n struct object_list * * p = & objects ;\n int count = 0 ;\n while ( ( commit = get_revision ( revs ) ) != NULL ) {\n p = process_tree ( commit -> tree , p ) ;\n commit -> object . flags |= LOCAL ;\n if ( ! ( commit -> object . flags & UNINTERESTING ) ) count += add_send_request ( & commit -> object , lock ) ;\n }\n for ( i = 0 ;\n i < revs -> pending . nr ;\n i ++ ) {\n struct object_array_entry * entry = revs -> pending . objects + i ;\n struct object * obj = entry -> item ;\n const char * name = entry -> name ;\n if ( obj -> flags & ( UNINTERESTING | SEEN ) ) continue ;\n if ( obj -> type == OBJ_TAG ) {\n obj -> flags |= SEEN ;\n p = add_one_object ( obj , p ) ;\n continue ;\n }\n if ( obj -> type == OBJ_TREE ) {\n p = process_tree ( ( struct tree * ) obj , p ) ;\n continue ;\n }\n if ( obj -> type == OBJ_BLOB ) {\n p = process_blob ( ( struct blob * ) obj , p ) ;\n continue ;\n }\n die ( \"unknown pending object %s (%s)\" , oid_to_hex ( & obj -> oid ) , name ) ;\n }\n while ( objects ) {\n if ( ! ( objects -> item -> flags & UNINTERESTING ) ) count += add_send_request ( objects -> item , lock ) ;\n objects = objects -> next ;\n }\n return count ;\n }"}
{"idx": 672, "target": 0, "func": "TSReturnCode sdk_sanity_check_field_handle ( TSMLoc field , TSMLoc parent_hdr = nullptr ) {\n if ( field == TS_NULL_MLOC ) {\n return TS_ERROR ;\n }\n MIMEFieldSDKHandle * field_handle = ( MIMEFieldSDKHandle * ) field ;\n if ( field_handle -> m_type != HDR_HEAP_OBJ_FIELD_SDK_HANDLE ) {\n return TS_ERROR ;\n }\n if ( parent_hdr != nullptr ) {\n MIMEHdrImpl * mh = _hdr_mloc_to_mime_hdr_impl ( parent_hdr ) ;\n if ( field_handle -> mh != mh ) {\n return TS_ERROR ;\n }\n }\n return TS_SUCCESS ;\n }"}
{"idx": 673, "target": 0, "func": "static void ngsniffer_sequential_close ( wtap * wth ) {\n ngsniffer_t * ngsniffer ;\n ngsniffer = ( ngsniffer_t * ) wth -> priv ;\n if ( ngsniffer -> seq . buf != NULL ) {\n g_free ( ngsniffer -> seq . buf ) ;\n ngsniffer -> seq . buf = NULL ;\n }\n }"}
{"idx": 674, "target": 0, "func": "static int wma_decode_init ( AVCodecContext * avctx ) {\n WMACodecContext * s = avctx -> priv_data ;\n int i , flags2 ;\n uint8_t * extradata ;\n s -> avctx = avctx ;\n flags2 = 0 ;\n extradata = avctx -> extradata ;\n if ( avctx -> codec -> id == AV_CODEC_ID_WMAV1 && avctx -> extradata_size >= 4 ) {\n flags2 = AV_RL16 ( extradata + 2 ) ;\n }\n else if ( avctx -> codec -> id == AV_CODEC_ID_WMAV2 && avctx -> extradata_size >= 6 ) {\n flags2 = AV_RL16 ( extradata + 4 ) ;\n }\n s -> use_exp_vlc = flags2 & 0x0001 ;\n s -> use_bit_reservoir = flags2 & 0x0002 ;\n s -> use_variable_block_len = flags2 & 0x0004 ;\n if ( ff_wma_init ( avctx , flags2 ) < 0 ) return - 1 ;\n for ( i = 0 ;\n i < s -> nb_block_sizes ;\n i ++ ) ff_mdct_init ( & s -> mdct_ctx [ i ] , s -> frame_len_bits - i + 1 , 1 , 1.0 / 32768.0 ) ;\n if ( s -> use_noise_coding ) {\n init_vlc ( & s -> hgain_vlc , HGAINVLCBITS , sizeof ( ff_wma_hgain_huffbits ) , ff_wma_hgain_huffbits , 1 , 1 , ff_wma_hgain_huffcodes , 2 , 2 , 0 ) ;\n }\n if ( s -> use_exp_vlc ) {\n init_vlc ( & s -> exp_vlc , EXPVLCBITS , sizeof ( ff_aac_scalefactor_bits ) , ff_aac_scalefactor_bits , 1 , 1 , ff_aac_scalefactor_code , 4 , 4 , 0 ) ;\n }\n else {\n wma_lsp_to_curve_init ( s , s -> frame_len ) ;\n }\n avctx -> sample_fmt = AV_SAMPLE_FMT_FLTP ;\n return 0 ;\n }"}
{"idx": 675, "target": 0, "func": "static int set_str_d_characters_bp ( struct archive_write * a , unsigned char * bp , int from , int to , const char * s , enum vdc vdc ) {\n int r ;\n switch ( vdc ) {\n case VDC_STD : set_str ( bp + from , s , to - from + 1 , 0x20 , d_characters_map ) ;\n r = ARCHIVE_OK ;\n break ;\n case VDC_LOWERCASE : set_str ( bp + from , s , to - from + 1 , 0x20 , d1_characters_map ) ;\n r = ARCHIVE_OK ;\n break ;\n case VDC_UCS2 : case VDC_UCS2_DIRECT : r = set_str_utf16be ( a , bp + from , s , to - from + 1 , 0x0020 , vdc ) ;\n break ;\n default : r = ARCHIVE_FATAL ;\n }\n return ( r ) ;\n }"}
{"idx": 676, "target": 0, "func": "Oid get_typ_typrelid ( Oid typid ) {\n HeapTuple tp ;\n tp = SearchSysCache1 ( TYPEOID , ObjectIdGetDatum ( typid ) ) ;\n if ( HeapTupleIsValid ( tp ) ) {\n Form_pg_type typtup = ( Form_pg_type ) GETSTRUCT ( tp ) ;\n Oid result ;\n result = typtup -> typrelid ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }\n else return InvalidOid ;\n }"}
{"idx": 677, "target": 0, "func": "static int SpoolssClosePrinter_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n e_ctx_hnd policy_hnd ;\n char * pol_name ;\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , & policy_hnd , NULL , FALSE , TRUE ) ;\n dcerpc_fetch_polhnd_data ( & policy_hnd , & pol_name , NULL , NULL , NULL , pinfo -> num ) ;\n if ( pol_name ) col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , pol_name ) ;\n return offset ;\n }"}
{"idx": 678, "target": 0, "func": "void vp9_mv_pred ( VP9_COMP * cpi , MACROBLOCK * x , uint8_t * ref_y_buffer , int ref_y_stride , int ref_frame , BLOCK_SIZE block_size ) {\n MACROBLOCKD * xd = & x -> e_mbd ;\n MB_MODE_INFO * mbmi = & xd -> mi [ 0 ] . src_mi -> mbmi ;\n int i ;\n int zero_seen = 0 ;\n int best_index = 0 ;\n int best_sad = INT_MAX ;\n int this_sad = INT_MAX ;\n int max_mv = 0 ;\n uint8_t * src_y_ptr = x -> plane [ 0 ] . src . buf ;\n uint8_t * ref_y_ptr ;\n const int num_mv_refs = MAX_MV_REF_CANDIDATES + ( cpi -> sf . adaptive_motion_search && block_size < cpi -> sf . max_partition_size ) ;\n MV pred_mv [ 3 ] ;\n pred_mv [ 0 ] = mbmi -> ref_mvs [ ref_frame ] [ 0 ] . as_mv ;\n pred_mv [ 1 ] = mbmi -> ref_mvs [ ref_frame ] [ 1 ] . as_mv ;\n pred_mv [ 2 ] = x -> pred_mv [ ref_frame ] ;\n for ( i = 0 ;\n i < num_mv_refs ;\n ++ i ) {\n const MV * this_mv = & pred_mv [ i ] ;\n max_mv = MAX ( max_mv , MAX ( abs ( this_mv -> row ) , abs ( this_mv -> col ) ) >> 3 ) ;\n if ( is_zero_mv ( this_mv ) && zero_seen ) continue ;\n zero_seen |= is_zero_mv ( this_mv ) ;\n ref_y_ptr = & ref_y_buffer [ ref_y_stride * ( this_mv -> row >> 3 ) + ( this_mv -> col >> 3 ) ] ;\n this_sad = cpi -> fn_ptr [ block_size ] . sdf ( src_y_ptr , x -> plane [ 0 ] . src . stride , ref_y_ptr , ref_y_stride ) ;\n if ( this_sad < best_sad ) {\n best_sad = this_sad ;\n best_index = i ;\n }\n }\n x -> mv_best_ref_index [ ref_frame ] = best_index ;\n x -> max_mv_context [ ref_frame ] = max_mv ;\n x -> pred_mv_sad [ ref_frame ] = best_sad ;\n }"}
{"idx": 679, "target": 0, "func": "static int dissect_SYSTEM_TIME ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep , const char * name , gboolean add_subtree , char * * data ) {\n proto_item * item = NULL ;\n proto_tree * subtree = tree ;\n guint16 year , month , day , hour , minute , second , millisecond ;\n char * str ;\n if ( add_subtree ) {\n subtree = proto_tree_add_subtree ( tree , tvb , offset , 16 , ett_SYSTEM_TIME , & item , name ) ;\n }\n offset = dissect_ndr_uint16 ( tvb , offset , pinfo , subtree , di , drep , hf_time_year , & year ) ;\n offset = dissect_ndr_uint16 ( tvb , offset , pinfo , subtree , di , drep , hf_time_month , & month ) ;\n offset = dissect_ndr_uint16 ( tvb , offset , pinfo , subtree , di , drep , hf_time_dow , NULL ) ;\n offset = dissect_ndr_uint16 ( tvb , offset , pinfo , subtree , di , drep , hf_time_day , & day ) ;\n offset = dissect_ndr_uint16 ( tvb , offset , pinfo , subtree , di , drep , hf_time_hour , & hour ) ;\n offset = dissect_ndr_uint16 ( tvb , offset , pinfo , subtree , di , drep , hf_time_minute , & minute ) ;\n offset = dissect_ndr_uint16 ( tvb , offset , pinfo , subtree , di , drep , hf_time_second , & second ) ;\n offset = dissect_ndr_uint16 ( tvb , offset , pinfo , subtree , di , drep , hf_time_msec , & millisecond ) ;\n str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"%d/%02d/%02d %02d:%02d:%02d.%03d\" , year , month , day , hour , minute , second , millisecond ) ;\n if ( add_subtree ) proto_item_append_text ( item , \": %s\" , str ) ;\n if ( data ) * data = str ;\n return offset ;\n }"}
{"idx": 680, "target": 0, "func": "static int ipvideo_decode_block_opcode_0x5 ( IpvideoContext * s , AVFrame * frame ) {\n signed char x , y ;\n x = bytestream2_get_byte ( & s -> stream_ptr ) ;\n y = bytestream2_get_byte ( & s -> stream_ptr ) ;\n av_dlog ( NULL , \" motion bytes = %d, %d\\n\" , x , y ) ;\n return copy_from ( s , s -> last_frame , frame , x , y ) ;\n }"}
{"idx": 681, "target": 1, "func": "static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 682, "target": 0, "func": "static void gic_cpu_write ( GICState * s , int cpu , int offset , uint32_t value ) {\n switch ( offset ) {\n case 0x00 : s -> cpu_enabled [ cpu ] = ( value & 1 ) ;\n DPRINTF ( \"CPU %d %sabled\\n\" , cpu , s -> cpu_enabled [ cpu ] ? \"En\" : \"Dis\" ) ;\n break ;\n case 0x04 : s -> priority_mask [ cpu ] = ( value & 0xff ) ;\n break ;\n case 0x08 : break ;\n case 0x10 : return gic_complete_irq ( s , cpu , value & 0x3ff ) ;\n default : qemu_log_mask ( LOG_GUEST_ERROR , \"gic_cpu_write: Bad offset %x\\n\" , ( int ) offset ) ;\n return ;\n }\n gic_update ( s ) ;\n }"}
{"idx": 683, "target": 0, "func": "static void qtmd_init_model ( struct qtmd_model * model , struct qtmd_modelsym * syms , int start , int len ) {\n int i ;\n model -> shiftsleft = 4 ;\n model -> entries = len ;\n model -> syms = syms ;\n for ( i = 0 ;\n i <= len ;\n i ++ ) {\n syms [ i ] . sym = start + i ;\n syms [ i ] . cumfreq = len - i ;\n }\n }"}
{"idx": 684, "target": 0, "func": "static int cmv_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n CmvContext * s = avctx -> priv_data ;\n const uint8_t * buf_end = buf + buf_size ;\n AVFrame * frame = data ;\n int ret ;\n if ( buf_end - buf < EA_PREAMBLE_SIZE ) return AVERROR_INVALIDDATA ;\n if ( AV_RL32 ( buf ) == MVIh_TAG || AV_RB32 ( buf ) == MVIh_TAG ) {\n cmv_process_header ( s , buf + EA_PREAMBLE_SIZE , buf_end ) ;\n return buf_size ;\n }\n if ( av_image_check_size ( s -> width , s -> height , 0 , s -> avctx ) ) return - 1 ;\n if ( ( ret = ff_get_buffer ( avctx , frame , AV_GET_BUFFER_FLAG_REF ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n memcpy ( frame -> data [ 1 ] , s -> palette , AVPALETTE_SIZE ) ;\n buf += EA_PREAMBLE_SIZE ;\n if ( ( buf [ 0 ] & 1 ) ) {\n cmv_decode_inter ( s , frame , buf + 2 , buf_end ) ;\n frame -> key_frame = 0 ;\n frame -> pict_type = AV_PICTURE_TYPE_P ;\n }\n else {\n frame -> key_frame = 1 ;\n frame -> pict_type = AV_PICTURE_TYPE_I ;\n cmv_decode_intra ( s , frame , buf + 2 , buf_end ) ;\n }\n av_frame_unref ( s -> last2_frame ) ;\n av_frame_move_ref ( s -> last2_frame , s -> last_frame ) ;\n if ( ( ret = av_frame_ref ( s -> last_frame , frame ) ) < 0 ) return ret ;\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 685, "target": 0, "func": "static int dissect_btgatt_nordic_uart_tx ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , void * data ) {\n btatt_data_t * att_data = ( btatt_data_t * ) data ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) return - 1 ;\n proto_tree_add_item ( tree , hf_gatt_nordic_uart_tx , tvb , 0 , tvb_captured_length ( tvb ) , ENC_ASCII | ENC_NA ) ;\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 686, "target": 0, "func": "static void set_connfilter_host ( GtkWidget * widget , gpointer * data ) {\n ( void ) data ;\n DEBUG_MSG ( \"set_connfilter_host\" ) ;\n filter . host = gtk_entry_get_text ( GTK_ENTRY ( widget ) ) ;\n gtk_tree_model_filter_refilter ( GTK_TREE_MODEL_FILTER ( filter . model ) ) ;\n }"}
{"idx": 687, "target": 0, "func": "int Curl_FormInit ( struct Form * form , struct FormData * formdata ) {\n if ( ! formdata ) return 1 ;\n form -> data = formdata ;\n form -> sent = 0 ;\n form -> fp = NULL ;\n form -> fread_func = ZERO_NULL ;\n return 0 ;\n }"}
{"idx": 688, "target": 0, "func": "inline static void _slurm_rpc_trigger_get ( slurm_msg_t * msg ) {\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n trigger_info_msg_t * resp_data ;\n trigger_info_msg_t * trigger_ptr = ( trigger_info_msg_t * ) msg -> data ;\n slurm_msg_t response_msg ;\n DEF_TIMERS ;\n START_TIMER ;\n debug ( \"Processing RPC: REQUEST_TRIGGER_GET from uid=%d\" , uid ) ;\n resp_data = trigger_get ( uid , trigger_ptr ) ;\n END_TIMER2 ( \"_slurm_rpc_trigger_get\" ) ;\n slurm_msg_t_init ( & response_msg ) ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . address = msg -> address ;\n response_msg . conn = msg -> conn ;\n response_msg . msg_type = RESPONSE_TRIGGER_GET ;\n response_msg . data = resp_data ;\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n slurm_free_trigger_msg ( resp_data ) ;\n }"}
{"idx": 689, "target": 0, "func": "static inline int vc1_coded_block_pred ( MpegEncContext * s , int n , uint8_t * * coded_block_ptr ) {\n int xy , wrap , pred , a , b , c ;\n xy = s -> block_index [ n ] ;\n wrap = s -> b8_stride ;\n a = s -> coded_block [ xy - 1 ] ;\n b = s -> coded_block [ xy - 1 - wrap ] ;\n c = s -> coded_block [ xy - wrap ] ;\n if ( b == c ) {\n pred = a ;\n }\n else {\n pred = c ;\n }\n * coded_block_ptr = & s -> coded_block [ xy ] ;\n return pred ;\n }"}
{"idx": 690, "target": 0, "func": "void mspack_destroy_kwaj_decompressor ( struct mskwaj_decompressor * base ) {\n struct mskwaj_decompressor_p * self = ( struct mskwaj_decompressor_p * ) base ;\n if ( self ) {\n struct mspack_system * sys = self -> system ;\n sys -> free ( self ) ;\n }\n }"}
{"idx": 691, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PrintPreviewDialogControllerBrowserTest , NavigateFromInitiatorTab ) {\n PrintPreview ( ) ;\n WebContents * preview_dialog = GetPrintPreviewDialog ( ) ;\n ASSERT_TRUE ( preview_dialog ) ;\n ASSERT_NE ( initiator ( ) , preview_dialog ) ;\n PrintPreviewDialogDestroyedObserver dialog_destroyed_observer ( preview_dialog ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , GURL ( chrome : : kChromeUINewTabURL ) ) ;\n ASSERT_TRUE ( dialog_destroyed_observer . dialog_destroyed ( ) ) ;\n PrintPreview ( ) ;\n WebContents * new_preview_dialog = GetPrintPreviewDialog ( ) ;\n EXPECT_TRUE ( new_preview_dialog ) ;\n }"}
{"idx": 692, "target": 0, "func": "static size_t kex_method_list ( unsigned char * buf , size_t list_strlen , LIBSSH2_COMMON_METHOD * * method ) {\n _libssh2_htonu32 ( buf , list_strlen ) ;\n buf += 4 ;\n if ( ! method || ! * method ) {\n return 4 ;\n }\n while ( * method && ( * method ) -> name ) {\n int mlen = strlen ( ( * method ) -> name ) ;\n memcpy ( buf , ( * method ) -> name , mlen ) ;\n buf += mlen ;\n * ( buf ++ ) = ',' ;\n method ++ ;\n }\n return list_strlen + 4 ;\n }"}
{"idx": 693, "target": 0, "func": "void _zip_dirent_init ( struct zip_dirent * de ) {\n de -> version_madeby = 0 ;\n de -> version_needed = 20 ;\n de -> bitflags = 0 ;\n de -> comp_method = 0 ;\n de -> last_mod = 0 ;\n de -> crc = 0 ;\n de -> comp_size = 0 ;\n de -> uncomp_size = 0 ;\n de -> filename = NULL ;\n de -> filename_len = 0 ;\n de -> extrafield = NULL ;\n de -> extrafield_len = 0 ;\n de -> comment = NULL ;\n de -> comment_len = 0 ;\n de -> disk_number = 0 ;\n de -> int_attrib = 0 ;\n de -> ext_attrib = 0 ;\n de -> offset = 0 ;\n }"}
{"idx": 694, "target": 1, "func": "int main ( int argc , char * * argv ) {\n # ifdef WIN32 WORD wVersionRequested ;\n WSADATA wsaData ;\n int err ;\n wVersionRequested = MAKEWORD ( 2 , 2 ) ;\n err = WSAStartup ( wVersionRequested , & wsaData ) ;\n # endif # ifndef WIN32 if ( signal ( SIGPIPE , SIG_IGN ) == SIG_ERR ) return ( 1 ) ;\n # endif setvbuf ( stdout , NULL , _IONBF , 0 ) ;\n global_base = event_init ( ) ;\n test_registerfds ( ) ;\n test_evutil_strtoll ( ) ;\n test_priorities ( 1 ) ;\n test_priorities ( 2 ) ;\n test_priorities ( 3 ) ;\n test_evbuffer ( ) ;\n test_evbuffer_find ( ) ;\n test_bufferevent ( ) ;\n test_bufferevent_watermarks ( ) ;\n test_free_active_base ( ) ;\n test_event_base_new ( ) ;\n http_suite ( ) ;\n # ifndef WIN32 rpc_suite ( ) ;\n # endif dns_suite ( ) ;\n # ifndef WIN32 test_fork ( ) ;\n # endif test_simpleread ( ) ;\n test_simplewrite ( ) ;\n test_multiple ( ) ;\n test_persistent ( ) ;\n test_combined ( ) ;\n test_simpletimeout ( ) ;\n # ifndef WIN32 test_simplesignal ( ) ;\n test_multiplesignal ( ) ;\n test_immediatesignal ( ) ;\n # endif test_loopexit ( ) ;\n test_loopbreak ( ) ;\n test_loopexit_multiple ( ) ;\n test_multiple_events_for_same_fd ( ) ;\n test_want_only_once ( ) ;\n evtag_test ( ) ;\n # ifndef WIN32 rpc_test ( ) ;\n test_signal_dealloc ( ) ;\n test_signal_pipeloss ( ) ;\n test_signal_switchbase ( ) ;\n test_signal_restore ( ) ;\n test_signal_assert ( ) ;\n test_signal_while_processing ( ) ;\n # endif return ( 0 ) ;\n }"}
{"idx": 695, "target": 0, "func": "void hb_shape_plan_destroy ( hb_shape_plan_t * shape_plan ) {\n if ( ! hb_object_destroy ( shape_plan ) ) return ;\n # define HB_SHAPER_IMPLEMENT ( shaper ) HB_SHAPER_DATA_DESTROY ( shaper , shape_plan ) ;\n # include \"hb-shaper-list.hh\" # undef HB_SHAPER_IMPLEMENT free ( shape_plan -> user_features ) ;\n free ( shape_plan ) ;\n }"}
{"idx": 696, "target": 0, "func": "int jbig2_page_info ( Jbig2Ctx * ctx , Jbig2Segment * segment , const uint8_t * segment_data ) {\n Jbig2Page * page ;\n page = & ( ctx -> pages [ ctx -> current_page ] ) ;\n if ( ( page -> number != 0 ) && ( ( page -> state == JBIG2_PAGE_NEW ) || ( page -> state == JBIG2_PAGE_FREE ) ) ) {\n page -> state = JBIG2_PAGE_COMPLETE ;\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"unexpected page info segment, marking previous page finished\" ) ;\n }\n {\n int index , j ;\n index = ctx -> current_page ;\n while ( ctx -> pages [ index ] . state != JBIG2_PAGE_FREE ) {\n index ++ ;\n if ( index >= ctx -> max_page_index ) {\n ctx -> pages = jbig2_renew ( ctx , ctx -> pages , Jbig2Page , ( ctx -> max_page_index <<= 2 ) ) ;\n for ( j = index ;\n j < ctx -> max_page_index ;\n j ++ ) {\n ctx -> pages [ j ] . state = JBIG2_PAGE_FREE ;\n ctx -> pages [ j ] . number = 0 ;\n ctx -> pages [ j ] . image = NULL ;\n }\n }\n }\n page = & ( ctx -> pages [ index ] ) ;\n ctx -> current_page = index ;\n page -> state = JBIG2_PAGE_NEW ;\n page -> number = segment -> page_association ;\n }\n if ( segment -> data_length < 19 ) {\n return jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"segment too short\" ) ;\n }\n page -> width = jbig2_get_uint32 ( segment_data ) ;\n page -> height = jbig2_get_uint32 ( segment_data + 4 ) ;\n page -> x_resolution = jbig2_get_uint32 ( segment_data + 8 ) ;\n page -> y_resolution = jbig2_get_uint32 ( segment_data + 12 ) ;\n page -> flags = segment_data [ 16 ] ;\n {\n int16_t striping = jbig2_get_int16 ( segment_data + 17 ) ;\n if ( striping & 0x8000 ) {\n page -> striped = TRUE ;\n page -> stripe_size = striping & 0x7FFF ;\n }\n else {\n page -> striped = FALSE ;\n page -> stripe_size = 0 ;\n }\n }\n if ( page -> height == 0xFFFFFFFF && page -> striped == FALSE ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"height is unspecified but page is not markes as striped\" ) ;\n page -> striped = TRUE ;\n }\n page -> end_row = 0 ;\n if ( segment -> data_length > 19 ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"extra data in segment\" ) ;\n }\n dump_page_info ( ctx , segment , page ) ;\n if ( page -> height == 0xFFFFFFFF ) {\n page -> image = jbig2_image_new ( ctx , page -> width , page -> stripe_size ) ;\n }\n else {\n page -> image = jbig2_image_new ( ctx , page -> width , page -> height ) ;\n }\n if ( page -> image == NULL ) {\n return jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"failed to allocate buffer for page image\" ) ;\n }\n else {\n jbig2_image_clear ( ctx , page -> image , ( page -> flags & 4 ) ) ;\n jbig2_error ( ctx , JBIG2_SEVERITY_DEBUG , segment -> number , \"allocated %dx%d page image (%d bytes)\" , page -> image -> width , page -> image -> height , page -> image -> stride * page -> image -> height ) ;\n }\n return 0 ;\n }"}
{"idx": 697, "target": 1, "func": "DEFINE_TEST ( test_write_disk_secure ) {\n # if defined ( _WIN32 ) && ! defined ( __CYGWIN__ ) skipping ( \"archive_write_disk security checks not supported on Windows\" ) ;\n # else struct archive * a ;\n struct archive_entry * ae ;\n struct stat st ;\n assertUmask ( UMASK ) ;\n assert ( ( a = archive_write_disk_new ( ) ) != NULL ) ;\n assert ( ( ae = archive_entry_new ( ) ) != NULL ) ;\n archive_entry_copy_pathname ( ae , \"dir\" ) ;\n archive_entry_set_mode ( ae , S_IFDIR | 0777 ) ;\n assert ( 0 == archive_write_header ( a , ae ) ) ;\n archive_entry_free ( ae ) ;\n assert ( 0 == archive_write_finish_entry ( a ) ) ;\n assert ( ( ae = archive_entry_new ( ) ) != NULL ) ;\n archive_entry_copy_pathname ( ae , \"link_to_dir\" ) ;\n archive_entry_set_mode ( ae , S_IFLNK | 0777 ) ;\n archive_entry_set_symlink ( ae , \"dir\" ) ;\n archive_write_disk_set_options ( a , 0 ) ;\n assert ( 0 == archive_write_header ( a , ae ) ) ;\n assert ( 0 == archive_write_finish_entry ( a ) ) ;\n assert ( archive_entry_clear ( ae ) != NULL ) ;\n archive_entry_copy_pathname ( ae , \"link_to_dir/filea\" ) ;\n archive_entry_set_mode ( ae , S_IFREG | 0777 ) ;\n assert ( 0 == archive_write_header ( a , ae ) ) ;\n assert ( 0 == archive_write_finish_entry ( a ) ) ;\n assert ( archive_entry_clear ( ae ) != NULL ) ;\n archive_entry_copy_pathname ( ae , \"link_to_dir/fileb\" ) ;\n archive_entry_set_mode ( ae , S_IFREG | 0777 ) ;\n archive_write_disk_set_options ( a , ARCHIVE_EXTRACT_SECURE_SYMLINKS ) ;\n failure ( \"Extracting a file through a symlink should fail here.\" ) ;\n assertEqualInt ( ARCHIVE_FAILED , archive_write_header ( a , ae ) ) ;\n archive_entry_free ( ae ) ;\n assert ( 0 == archive_write_finish_entry ( a ) ) ;\n assert ( ( ae = archive_entry_new ( ) ) != NULL ) ;\n archive_entry_copy_pathname ( ae , \"link_to_dir2\" ) ;\n archive_entry_set_mode ( ae , S_IFLNK | 0777 ) ;\n archive_entry_set_symlink ( ae , \"dir\" ) ;\n archive_write_disk_set_options ( a , 0 ) ;\n assert ( 0 == archive_write_header ( a , ae ) ) ;\n assert ( 0 == archive_write_finish_entry ( a ) ) ;\n assert ( archive_entry_clear ( ae ) != NULL ) ;\n archive_entry_copy_pathname ( ae , \"link_to_dir2/filec\" ) ;\n archive_entry_set_mode ( ae , S_IFREG | 0777 ) ;\n archive_write_disk_set_options ( a , ARCHIVE_EXTRACT_SECURE_SYMLINKS | ARCHIVE_EXTRACT_UNLINK ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_write_header ( a , ae ) ) ;\n archive_entry_free ( ae ) ;\n assert ( 0 == archive_write_finish_entry ( a ) ) ;\n assert ( ( ae = archive_entry_new ( ) ) != NULL ) ;\n archive_entry_copy_pathname ( ae , \"link_to_dir3\" ) ;\n archive_entry_set_mode ( ae , S_IFLNK | 0777 ) ;\n archive_entry_set_symlink ( ae , \"dir\" ) ;\n archive_write_disk_set_options ( a , 0 ) ;\n assert ( 0 == archive_write_header ( a , ae ) ) ;\n assert ( 0 == archive_write_finish_entry ( a ) ) ;\n assert ( archive_entry_clear ( ae ) != NULL ) ;\n archive_entry_copy_pathname ( ae , \"link_to_dir3\" ) ;\n archive_entry_set_mode ( ae , S_IFDIR | 0777 ) ;\n assert ( 0 == archive_write_header ( a , ae ) ) ;\n assert ( 0 == archive_write_finish_entry ( a ) ) ;\n assertEqualInt ( 0 , lstat ( \"link_to_dir3\" , & st ) ) ;\n assert ( S_ISLNK ( st . st_mode ) ) ;\n archive_entry_free ( ae ) ;\n assert ( ( ae = archive_entry_new ( ) ) != NULL ) ;\n archive_entry_copy_pathname ( ae , \"link_to_dir4\" ) ;\n archive_entry_set_mode ( ae , S_IFLNK | 0777 ) ;\n archive_entry_set_symlink ( ae , \"nonexistent_dir\" ) ;\n archive_write_disk_set_options ( a , 0 ) ;\n assert ( 0 == archive_write_header ( a , ae ) ) ;\n assert ( 0 == archive_write_finish_entry ( a ) ) ;\n assert ( archive_entry_clear ( ae ) != NULL ) ;\n archive_entry_copy_pathname ( ae , \"link_to_dir4\" ) ;\n archive_entry_set_mode ( ae , S_IFDIR | 0777 ) ;\n assert ( 0 == archive_write_header ( a , ae ) ) ;\n assert ( 0 == archive_write_finish_entry ( a ) ) ;\n assertEqualInt ( 0 , lstat ( \"link_to_dir4\" , & st ) ) ;\n assert ( S_ISDIR ( st . st_mode ) ) ;\n archive_entry_free ( ae ) ;\n assert ( ( ae = archive_entry_new ( ) ) != NULL ) ;\n archive_entry_copy_pathname ( ae , \"non_dir\" ) ;\n archive_entry_set_mode ( ae , S_IFREG | 0777 ) ;\n archive_write_disk_set_options ( a , 0 ) ;\n assert ( 0 == archive_write_header ( a , ae ) ) ;\n assert ( 0 == archive_write_finish_entry ( a ) ) ;\n archive_entry_copy_pathname ( ae , \"link_to_dir5\" ) ;\n archive_entry_set_mode ( ae , S_IFLNK | 0777 ) ;\n archive_entry_set_symlink ( ae , \"non_dir\" ) ;\n archive_write_disk_set_options ( a , 0 ) ;\n assert ( 0 == archive_write_header ( a , ae ) ) ;\n assert ( 0 == archive_write_finish_entry ( a ) ) ;\n assert ( archive_entry_clear ( ae ) != NULL ) ;\n archive_entry_copy_pathname ( ae , \"link_to_dir5\" ) ;\n archive_entry_set_mode ( ae , S_IFDIR | 0777 ) ;\n assert ( 0 == archive_write_header ( a , ae ) ) ;\n assert ( 0 == archive_write_finish_entry ( a ) ) ;\n assertEqualInt ( 0 , lstat ( \"link_to_dir5\" , & st ) ) ;\n assert ( S_ISDIR ( st . st_mode ) ) ;\n archive_entry_free ( ae ) ;\n assertEqualInt ( ARCHIVE_OK , archive_write_free ( a ) ) ;\n assert ( 0 == lstat ( \"dir\" , & st ) ) ;\n failure ( \"dir: st.st_mode=%o\" , st . st_mode ) ;\n assert ( ( st . st_mode & 0777 ) == 0755 ) ;\n assert ( 0 == lstat ( \"link_to_dir\" , & st ) ) ;\n failure ( \"link_to_dir: st.st_mode=%o\" , st . st_mode ) ;\n assert ( S_ISLNK ( st . st_mode ) ) ;\n # if HAVE_LCHMOD failure ( \"link_to_dir: st.st_mode=%o\" , st . st_mode ) ;\n assert ( ( st . st_mode & 07777 ) == 0755 ) ;\n # endif assert ( 0 == lstat ( \"dir/filea\" , & st ) ) ;\n failure ( \"dir/filea: st.st_mode=%o\" , st . st_mode ) ;\n assert ( ( st . st_mode & 07777 ) == 0755 ) ;\n failure ( \"dir/fileb: This file should not have been created\" ) ;\n assert ( 0 != lstat ( \"dir/fileb\" , & st ) ) ;\n assert ( 0 == lstat ( \"link_to_dir2\" , & st ) ) ;\n failure ( \"link_to_dir2 should have been re-created as a true dir\" ) ;\n assert ( S_ISDIR ( st . st_mode ) ) ;\n failure ( \"link_to_dir2: Implicit dir creation should obey umask, but st.st_mode=%o\" , st . st_mode ) ;\n assert ( ( st . st_mode & 0777 ) == 0755 ) ;\n assert ( 0 == lstat ( \"link_to_dir2/filec\" , & st ) ) ;\n assert ( S_ISREG ( st . st_mode ) ) ;\n failure ( \"link_to_dir2/filec: st.st_mode=%o\" , st . st_mode ) ;\n assert ( ( st . st_mode & 07777 ) == 0755 ) ;\n # endif }"}
{"idx": 698, "target": 0, "func": "static guint16 de_signal ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n proto_tree_add_item ( tree , hf_gsm_a_dtap_signal_value , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n return 1 ;\n }"}
{"idx": 699, "target": 0, "func": "static int decode_blockcode ( int code , int levels , int * values ) {\n int i ;\n int offset = ( levels - 1 ) >> 1 ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n int div = FASTDIV ( code , levels ) ;\n values [ i ] = code - offset - div * levels ;\n code = div ;\n }\n return code ;\n }"}
{"idx": 700, "target": 0, "func": "static cmsBool WriteMPECurve ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Cargo , cmsUInt32Number n , cmsUInt32Number SizeOfTag ) {\n _cmsStageToneCurvesData * Curves = ( _cmsStageToneCurvesData * ) Cargo ;\n return WriteSegmentedCurve ( io , Curves -> TheCurves [ n ] ) ;\n cmsUNUSED_PARAMETER ( SizeOfTag ) ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 701, "target": 0, "func": "static int ulti_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n UltimotionDecodeContext * s = avctx -> priv_data ;\n int modifier = 0 ;\n int uniq = 0 ;\n int mode = 0 ;\n int blocks = 0 ;\n int done = 0 ;\n int x = 0 , y = 0 ;\n int i , ret ;\n int skip ;\n int tmp ;\n if ( ( ret = ff_reget_buffer ( avctx , & s -> frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n bytestream2_init ( & s -> gb , buf , buf_size ) ;\n while ( ! done ) {\n int idx ;\n if ( blocks >= s -> blocks || y >= s -> height ) break ;\n if ( bytestream2_get_bytes_left ( & s -> gb ) < 1 ) goto err ;\n idx = bytestream2_get_byteu ( & s -> gb ) ;\n if ( ( idx & 0xF8 ) == 0x70 ) {\n switch ( idx ) {\n case 0x70 : modifier = bytestream2_get_byte ( & s -> gb ) ;\n if ( modifier > 1 ) av_log ( avctx , AV_LOG_INFO , \"warning: modifier must be 0 or 1, got %i\\n\" , modifier ) ;\n break ;\n case 0x71 : uniq = 1 ;\n break ;\n case 0x72 : mode = ! mode ;\n break ;\n case 0x73 : done = 1 ;\n break ;\n case 0x74 : skip = bytestream2_get_byte ( & s -> gb ) ;\n if ( ( blocks + skip ) >= s -> blocks ) break ;\n blocks += skip ;\n x += skip * 8 ;\n while ( x >= s -> width ) {\n x -= s -> width ;\n y += 8 ;\n }\n break ;\n default : av_log ( avctx , AV_LOG_INFO , \"warning: unknown escape 0x%02X\\n\" , idx ) ;\n }\n }\n else {\n int code ;\n int cf ;\n int angle = 0 ;\n uint8_t Y [ 4 ] ;\n int tx = 0 , ty = 0 ;\n int chroma = 0 ;\n if ( mode || uniq ) {\n uniq = 0 ;\n cf = 1 ;\n chroma = 0 ;\n }\n else {\n cf = 0 ;\n if ( idx ) {\n chroma = bytestream2_get_byte ( & s -> gb ) ;\n }\n }\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n code = ( idx >> ( 6 - i * 2 ) ) & 3 ;\n if ( ! code ) continue ;\n if ( cf ) {\n chroma = bytestream2_get_byte ( & s -> gb ) ;\n }\n tx = x + block_coords [ i * 2 ] ;\n ty = y + block_coords [ ( i * 2 ) + 1 ] ;\n switch ( code ) {\n case 1 : tmp = bytestream2_get_byte ( & s -> gb ) ;\n angle = angle_by_index [ ( tmp >> 6 ) & 0x3 ] ;\n Y [ 0 ] = tmp & 0x3F ;\n Y [ 1 ] = Y [ 0 ] ;\n if ( angle ) {\n Y [ 2 ] = Y [ 0 ] + 1 ;\n if ( Y [ 2 ] > 0x3F ) Y [ 2 ] = 0x3F ;\n Y [ 3 ] = Y [ 2 ] ;\n }\n else {\n Y [ 2 ] = Y [ 0 ] ;\n Y [ 3 ] = Y [ 0 ] ;\n }\n break ;\n case 2 : if ( modifier ) {\n tmp = bytestream2_get_be24 ( & s -> gb ) ;\n Y [ 0 ] = ( tmp >> 18 ) & 0x3F ;\n Y [ 1 ] = ( tmp >> 12 ) & 0x3F ;\n Y [ 2 ] = ( tmp >> 6 ) & 0x3F ;\n Y [ 3 ] = tmp & 0x3F ;\n angle = 16 ;\n }\n else {\n tmp = bytestream2_get_be16 ( & s -> gb ) ;\n angle = ( tmp >> 12 ) & 0xF ;\n tmp &= 0xFFF ;\n tmp <<= 2 ;\n Y [ 0 ] = s -> ulti_codebook [ tmp ] ;\n Y [ 1 ] = s -> ulti_codebook [ tmp + 1 ] ;\n Y [ 2 ] = s -> ulti_codebook [ tmp + 2 ] ;\n Y [ 3 ] = s -> ulti_codebook [ tmp + 3 ] ;\n }\n break ;\n case 3 : if ( modifier ) {\n uint8_t Luma [ 16 ] ;\n if ( bytestream2_get_bytes_left ( & s -> gb ) < 12 ) goto err ;\n tmp = bytestream2_get_be24u ( & s -> gb ) ;\n Luma [ 0 ] = ( tmp >> 18 ) & 0x3F ;\n Luma [ 1 ] = ( tmp >> 12 ) & 0x3F ;\n Luma [ 2 ] = ( tmp >> 6 ) & 0x3F ;\n Luma [ 3 ] = tmp & 0x3F ;\n tmp = bytestream2_get_be24u ( & s -> gb ) ;\n Luma [ 4 ] = ( tmp >> 18 ) & 0x3F ;\n Luma [ 5 ] = ( tmp >> 12 ) & 0x3F ;\n Luma [ 6 ] = ( tmp >> 6 ) & 0x3F ;\n Luma [ 7 ] = tmp & 0x3F ;\n tmp = bytestream2_get_be24u ( & s -> gb ) ;\n Luma [ 8 ] = ( tmp >> 18 ) & 0x3F ;\n Luma [ 9 ] = ( tmp >> 12 ) & 0x3F ;\n Luma [ 10 ] = ( tmp >> 6 ) & 0x3F ;\n Luma [ 11 ] = tmp & 0x3F ;\n tmp = bytestream2_get_be24u ( & s -> gb ) ;\n Luma [ 12 ] = ( tmp >> 18 ) & 0x3F ;\n Luma [ 13 ] = ( tmp >> 12 ) & 0x3F ;\n Luma [ 14 ] = ( tmp >> 6 ) & 0x3F ;\n Luma [ 15 ] = tmp & 0x3F ;\n ulti_convert_yuv ( & s -> frame , tx , ty , Luma , chroma ) ;\n }\n else {\n if ( bytestream2_get_bytes_left ( & s -> gb ) < 4 ) goto err ;\n tmp = bytestream2_get_byteu ( & s -> gb ) ;\n if ( tmp & 0x80 ) {\n angle = ( tmp >> 4 ) & 0x7 ;\n tmp = ( tmp << 8 ) + bytestream2_get_byteu ( & s -> gb ) ;\n Y [ 0 ] = ( tmp >> 6 ) & 0x3F ;\n Y [ 1 ] = tmp & 0x3F ;\n Y [ 2 ] = bytestream2_get_byteu ( & s -> gb ) & 0x3F ;\n Y [ 3 ] = bytestream2_get_byteu ( & s -> gb ) & 0x3F ;\n ulti_grad ( & s -> frame , tx , ty , Y , chroma , angle ) ;\n }\n else {\n int f0 , f1 ;\n f0 = bytestream2_get_byteu ( & s -> gb ) ;\n f1 = tmp ;\n Y [ 0 ] = bytestream2_get_byteu ( & s -> gb ) & 0x3F ;\n Y [ 1 ] = bytestream2_get_byteu ( & s -> gb ) & 0x3F ;\n ulti_pattern ( & s -> frame , tx , ty , f1 , f0 , Y [ 0 ] , Y [ 1 ] , chroma ) ;\n }\n }\n break ;\n }\n if ( code != 3 ) ulti_grad ( & s -> frame , tx , ty , Y , chroma , angle ) ;\n }\n blocks ++ ;\n x += 8 ;\n if ( x >= s -> width ) {\n x = 0 ;\n y += 8 ;\n }\n }\n }\n * got_frame = 1 ;\n if ( ( ret = av_frame_ref ( data , & s -> frame ) ) < 0 ) return ret ;\n return buf_size ;\n err : av_log ( avctx , AV_LOG_ERROR , \"Insufficient data\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }"}
{"idx": 702, "target": 0, "func": "static void finishupcid ( SplineFont * sf , struct alltabs * at ) {\n int strlen , shlen , glen , csetlen , cstrlen , fdsellen , fdarrlen , prvlen ;\n int base , eotop , strhead ;\n int i ;\n storesid ( at , NULL ) ;\n strlen = ftell ( at -> sidf ) + ( shlen = ftell ( at -> sidh ) ) ;\n glen = ftell ( at -> globalsubrs ) ;\n csetlen = ftell ( at -> charset ) ;\n fdsellen = ftell ( at -> fdselect ) ;\n cstrlen = ftell ( at -> charstrings ) ;\n fdarrlen = ftell ( at -> fdarray ) ;\n base = ftell ( at -> cfff ) ;\n at -> cfflongoffset = true ;\n base += 5 * 4 + 4 + 2 ;\n strhead = 2 + ( at -> sidcnt > 1 ) ;\n base += strhead ;\n prvlen = 0 ;\n for ( i = 0 ;\n i < sf -> subfontcnt ;\n ++ i ) {\n fseek ( at -> fdarray , at -> fds [ i ] . fillindictmark , SEEK_SET ) ;\n dumpsizedint ( at -> fdarray , false , at -> fds [ i ] . privatelen , - 1 ) ;\n dumpsizedint ( at -> fdarray , true , base + strlen + glen + csetlen + fdsellen + cstrlen + fdarrlen + prvlen , 18 ) ;\n prvlen += ftell ( at -> fds [ i ] . private ) ;\n }\n dumpsizedint ( at -> cfff , at -> cfflongoffset , base + strlen + glen , 15 ) ;\n dumpsizedint ( at -> cfff , at -> cfflongoffset , base + strlen + glen + csetlen , ( 12 << 8 ) | 37 ) ;\n dumpsizedint ( at -> cfff , at -> cfflongoffset , base + strlen + glen + csetlen + fdsellen , 17 ) ;\n dumpsizedint ( at -> cfff , at -> cfflongoffset , base + strlen + glen + csetlen + fdsellen + cstrlen , ( 12 << 8 ) | 36 ) ;\n eotop = base - strhead - at -> lenpos - 1 ;\n fseek ( at -> cfff , at -> lenpos , SEEK_SET ) ;\n putshort ( at -> cfff , eotop ) ;\n fseek ( at -> cfff , 0 , SEEK_END ) ;\n putshort ( at -> cfff , at -> sidcnt - 1 ) ;\n if ( at -> sidcnt != 1 ) {\n putc ( at -> sidlongoffset ? 4 : 2 , at -> cfff ) ;\n if ( ! ttfcopyfile ( at -> cfff , at -> sidh , base , \"CFF-StringBase\" ) ) at -> error = true ;\n if ( ! ttfcopyfile ( at -> cfff , at -> sidf , base + shlen , \"CFF-StringData\" ) ) at -> error = true ;\n }\n if ( ! ttfcopyfile ( at -> cfff , at -> globalsubrs , base + strlen , \"CFF-GlobalSubrs\" ) ) at -> error = true ;\n if ( ! ttfcopyfile ( at -> cfff , at -> charset , base + strlen + glen , \"CFF-Charset\" ) ) at -> error = true ;\n if ( ! ttfcopyfile ( at -> cfff , at -> fdselect , base + strlen + glen + csetlen , \"CFF-FDSelect\" ) ) at -> error = true ;\n if ( ! ttfcopyfile ( at -> cfff , at -> charstrings , base + strlen + glen + csetlen + fdsellen , \"CFF-CharStrings\" ) ) at -> error = true ;\n if ( ! ttfcopyfile ( at -> cfff , at -> fdarray , base + strlen + glen + csetlen + fdsellen + cstrlen , \"CFF-FDArray\" ) ) at -> error = true ;\n prvlen = 0 ;\n for ( i = 0 ;\n i < sf -> subfontcnt ;\n ++ i ) {\n int temp = ftell ( at -> fds [ i ] . private ) ;\n if ( ! ttfcopyfile ( at -> cfff , at -> fds [ i ] . private , base + strlen + glen + csetlen + fdsellen + cstrlen + fdarrlen + prvlen , \"CFF-PrivateSubrs\" ) ) at -> error = true ;\n prvlen += temp ;\n }\n free ( at -> fds ) ;\n }"}
{"idx": 703, "target": 0, "func": "static int dissect_h225_UnknownMessageResponse ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_UnknownMessageResponse , UnknownMessageResponse_sequence ) ;\n return offset ;\n }"}
{"idx": 704, "target": 0, "func": "static gint dissect_a2dp_cp_scms_t ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , void * data _U_ ) {\n proto_item * main_item ;\n proto_tree * main_tree ;\n gint offset = 0 ;\n main_item = proto_tree_add_item ( tree , proto_bta2dp_cph_scms_t , tvb , offset , 1 , ENC_NA ) ;\n main_tree = proto_item_add_subtree ( main_item , ett_bta2dp_cph_scms_t ) ;\n proto_tree_add_item ( main_tree , hf_bta2dp_reserved , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( main_tree , hf_bta2dp_cp_bit , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( main_tree , hf_bta2dp_l_bit , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n return offset ;\n }"}
{"idx": 705, "target": 0, "func": "static char * set_eval_display_name ( set_t * set , char * value ) {\n account_t * acc = set -> data ;\n struct im_connection * ic = acc -> ic ;\n if ( ic ) {\n imcb_log ( ic , \"Changing display_name not currently supported with libpurple!\" ) ;\n }\n return NULL ;\n }"}
{"idx": 706, "target": 0, "func": "static int decode_wmv9 ( AVCodecContext * avctx , const uint8_t * buf , int buf_size , int x , int y , int w , int h , int wmv9_mask ) {\n MSS2Context * ctx = avctx -> priv_data ;\n MSS12Context * c = & ctx -> c ;\n VC1Context * v = avctx -> priv_data ;\n MpegEncContext * s = & v -> s ;\n AVFrame * f ;\n int ret ;\n ff_mpeg_flush ( avctx ) ;\n if ( s -> current_picture_ptr == NULL || s -> current_picture_ptr -> f . data [ 0 ] ) {\n int i = ff_find_unused_picture ( s , 0 ) ;\n if ( i < 0 ) return i ;\n s -> current_picture_ptr = & s -> picture [ i ] ;\n }\n init_get_bits ( & s -> gb , buf , buf_size * 8 ) ;\n s -> loop_filter = avctx -> skip_loop_filter < AVDISCARD_ALL ;\n if ( ff_vc1_parse_frame_header ( v , & s -> gb ) == - 1 ) {\n av_log ( v -> s . avctx , AV_LOG_ERROR , \"header error\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( s -> pict_type != AV_PICTURE_TYPE_I ) {\n av_log ( v -> s . avctx , AV_LOG_ERROR , \"expected I-frame\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n avctx -> pix_fmt = AV_PIX_FMT_YUV420P ;\n if ( ( ret = ff_MPV_frame_start ( s , avctx ) ) < 0 ) {\n av_log ( v -> s . avctx , AV_LOG_ERROR , \"ff_MPV_frame_start error\\n\" ) ;\n avctx -> pix_fmt = AV_PIX_FMT_RGB24 ;\n return ret ;\n }\n ff_mpeg_er_frame_start ( s ) ;\n v -> bits = buf_size * 8 ;\n v -> end_mb_x = ( w + 15 ) >> 4 ;\n s -> end_mb_y = ( h + 15 ) >> 4 ;\n if ( v -> respic & 1 ) v -> end_mb_x = v -> end_mb_x + 1 >> 1 ;\n if ( v -> respic & 2 ) s -> end_mb_y = s -> end_mb_y + 1 >> 1 ;\n ff_vc1_decode_blocks ( v ) ;\n ff_er_frame_end ( & s -> er ) ;\n ff_MPV_frame_end ( s ) ;\n f = & s -> current_picture . f ;\n if ( v -> respic == 3 ) {\n ctx -> dsp . upsample_plane ( f -> data [ 0 ] , f -> linesize [ 0 ] , w , h ) ;\n ctx -> dsp . upsample_plane ( f -> data [ 1 ] , f -> linesize [ 1 ] , w >> 1 , h >> 1 ) ;\n ctx -> dsp . upsample_plane ( f -> data [ 2 ] , f -> linesize [ 2 ] , w >> 1 , h >> 1 ) ;\n }\n else if ( v -> respic ) av_log_ask_for_sample ( v -> s . avctx , \"Asymmetric WMV9 rectangle subsampling\\n\" ) ;\n av_assert0 ( f -> linesize [ 1 ] == f -> linesize [ 2 ] ) ;\n if ( wmv9_mask != - 1 ) ctx -> dsp . mss2_blit_wmv9_masked ( c -> rgb_pic + y * c -> rgb_stride + x * 3 , c -> rgb_stride , wmv9_mask , c -> pal_pic + y * c -> pal_stride + x , c -> pal_stride , f -> data [ 0 ] , f -> linesize [ 0 ] , f -> data [ 1 ] , f -> data [ 2 ] , f -> linesize [ 1 ] , w , h ) ;\n else ctx -> dsp . mss2_blit_wmv9 ( c -> rgb_pic + y * c -> rgb_stride + x * 3 , c -> rgb_stride , f -> data [ 0 ] , f -> linesize [ 0 ] , f -> data [ 1 ] , f -> data [ 2 ] , f -> linesize [ 1 ] , w , h ) ;\n avctx -> pix_fmt = AV_PIX_FMT_RGB24 ;\n return 0 ;\n }"}
{"idx": 707, "target": 0, "func": "static int try_shrink_upper ( MAIN_WINDOW_REC * window , int count ) {\n MAIN_WINDOW_REC * shrink_win ;\n shrink_win = mainwindows_find_upper ( window ) ;\n if ( shrink_win != NULL ) {\n int ok ;\n GSList * shrink_list , * tmp ;\n MAIN_WINDOW_REC * win ;\n ok = TRUE ;\n shrink_list = mainwindows_get_line ( shrink_win ) ;\n for ( tmp = shrink_list ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n win = tmp -> data ;\n if ( MAIN_WINDOW_TEXT_HEIGHT ( win ) - count < WINDOW_MIN_SIZE ) {\n ok = FALSE ;\n break ;\n }\n }\n if ( ok ) {\n GSList * grow_list ;\n grow_list = mainwindows_get_line ( window ) ;\n for ( tmp = grow_list ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n win = tmp -> data ;\n win -> first_line -= count ;\n }\n for ( tmp = shrink_list ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n win = tmp -> data ;\n win -> last_line -= count ;\n }\n mainwindows_resize_two ( grow_list , shrink_list , count ) ;\n g_slist_free ( grow_list ) ;\n }\n g_slist_free ( shrink_list ) ;\n return ok ;\n }\n return FALSE ;\n }"}
{"idx": 708, "target": 0, "func": "void evhttp_set_cb ( struct evhttp * http , const char * uri , void ( * cb ) ( struct evhttp_request * , void * ) , void * cbarg ) {\n struct evhttp_cb * http_cb ;\n if ( ( http_cb = calloc ( 1 , sizeof ( struct evhttp_cb ) ) ) == NULL ) event_err ( 1 , \"%s: calloc\" , __func__ ) ;\n http_cb -> what = strdup ( uri ) ;\n http_cb -> cb = cb ;\n http_cb -> cbarg = cbarg ;\n TAILQ_INSERT_TAIL ( & http -> callbacks , http_cb , next ) ;\n }"}
{"idx": 709, "target": 0, "func": "TSParseResult TSHttpHdrParseResp ( TSHttpParser parser , TSMBuffer bufp , TSMLoc obj , const char * * start , const char * end ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_http_hdr_handle ( obj ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) start ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) * start ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) end ) == TS_SUCCESS ) ;\n if ( ! isWriteable ( bufp ) ) {\n return TS_PARSE_ERROR ;\n }\n HTTPHdr h ;\n SET_HTTP_HDR ( h , bufp , obj ) ;\n ink_assert ( h . m_http -> m_type == HDR_HEAP_OBJ_HTTP_HEADER ) ;\n TSHttpHdrTypeSet ( bufp , obj , TS_HTTP_TYPE_RESPONSE ) ;\n return ( TSParseResult ) h . parse_resp ( ( HTTPParser * ) parser , start , end , false ) ;\n }"}
{"idx": 710, "target": 0, "func": "static inline void qtrle_decode_2n4bpp ( QtrleContext * s , int row_ptr , int lines_to_change , int bpp ) {\n int rle_code , i ;\n int pixel_ptr ;\n int row_inc = s -> frame . linesize [ 0 ] ;\n unsigned char pi [ 16 ] ;\n unsigned char * rgb = s -> frame . data [ 0 ] ;\n int pixel_limit = s -> frame . linesize [ 0 ] * s -> avctx -> height ;\n int num_pixels = ( bpp == 4 ) ? 8 : 16 ;\n while ( lines_to_change -- ) {\n pixel_ptr = row_ptr + ( num_pixels * ( bytestream2_get_byte ( & s -> g ) - 1 ) ) ;\n CHECK_PIXEL_PTR ( 0 ) ;\n while ( ( rle_code = ( signed char ) bytestream2_get_byte ( & s -> g ) ) != - 1 ) {\n if ( rle_code == 0 ) {\n pixel_ptr += ( num_pixels * ( bytestream2_get_byte ( & s -> g ) - 1 ) ) ;\n CHECK_PIXEL_PTR ( 0 ) ;\n }\n else if ( rle_code < 0 ) {\n rle_code = - rle_code ;\n for ( i = num_pixels - 1 ;\n i >= 0 ;\n i -- ) {\n pi [ num_pixels - 1 - i ] = ( bytestream2_peek_byte ( & s -> g ) >> ( ( i * bpp ) & 0x07 ) ) & ( ( 1 << bpp ) - 1 ) ;\n bytestream2_skip ( & s -> g , ( ( i & ( ( num_pixels >> 2 ) - 1 ) ) == 0 ) ) ;\n }\n CHECK_PIXEL_PTR ( rle_code * num_pixels ) ;\n while ( rle_code -- ) {\n for ( i = 0 ;\n i < num_pixels ;\n i ++ ) rgb [ pixel_ptr ++ ] = pi [ i ] ;\n }\n }\n else {\n rle_code *= 4 ;\n CHECK_PIXEL_PTR ( rle_code * ( num_pixels >> 2 ) ) ;\n while ( rle_code -- ) {\n if ( bpp == 4 ) {\n int x = bytestream2_get_byte ( & s -> g ) ;\n rgb [ pixel_ptr ++ ] = ( x >> 4 ) & 0x0f ;\n rgb [ pixel_ptr ++ ] = x & 0x0f ;\n }\n else {\n int x = bytestream2_get_byte ( & s -> g ) ;\n rgb [ pixel_ptr ++ ] = ( x >> 6 ) & 0x03 ;\n rgb [ pixel_ptr ++ ] = ( x >> 4 ) & 0x03 ;\n rgb [ pixel_ptr ++ ] = ( x >> 2 ) & 0x03 ;\n rgb [ pixel_ptr ++ ] = x & 0x03 ;\n }\n }\n }\n }\n row_ptr += row_inc ;\n }\n }"}
{"idx": 711, "target": 0, "func": "static int dissect_h245_T_encryptionUpdateCommand ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_encryptionUpdateCommand , T_encryptionUpdateCommand_sequence ) ;\n return offset ;\n }"}
{"idx": 712, "target": 0, "func": "TEST_F ( BrowsingDataRemoverImplTest , RemoveMultipleTypes ) {\n RemoveDownloadsTester downloads_tester ( GetBrowserContext ( ) ) ;\n EXPECT_CALL ( * downloads_tester . download_manager ( ) , RemoveDownloadsByURLAndTime ( _ , _ , _ ) ) ;\n int removal_mask = BrowsingDataRemover : : REMOVE_DOWNLOADS | BrowsingDataRemover : : REMOVE_COOKIES ;\n BlockUntilBrowsingDataRemoved ( base : : Time ( ) , base : : Time : : Max ( ) , removal_mask , false ) ;\n EXPECT_EQ ( removal_mask , GetRemovalMask ( ) ) ;\n EXPECT_EQ ( BrowsingDataHelper : : UNPROTECTED_WEB , GetOriginTypeMask ( ) ) ;\n StoragePartitionRemovalData removal_data = GetStoragePartitionRemovalData ( ) ;\n EXPECT_EQ ( removal_data . remove_mask , StoragePartition : : REMOVE_DATA_MASK_COOKIES ) ;\n EXPECT_EQ ( removal_data . quota_storage_remove_mask , StoragePartition : : QUOTA_MANAGED_STORAGE_MASK_ALL ) ;\n }"}
{"idx": 713, "target": 0, "func": "static inline uint64_t tswap64 ( uint64_t s ) {\n return s ;\n }"}
{"idx": 714, "target": 0, "func": "proto_tree * proto_tree_get_parent_tree ( proto_tree * tree ) {\n if ( ! tree ) return NULL ;\n if ( ! tree -> parent ) return tree ;\n return ( proto_tree * ) tree -> parent ;\n }"}
{"idx": 715, "target": 0, "func": "TEST_F ( TemplateURLTest , GenerateSearchURL ) {\n struct GenerateSearchURLCase {\n const char * test_name ;\n const char * url ;\n const char * expected ;\n }\n generate_url_cases [ ] = {\n {\n \"invalid URL\" , \"foo{\nsearchTerms}\n\" , \"\" }\n , {\n \"URL with no replacements\" , \"http://foo/\" , \"http://foo/\" }\n , {\n \"basic functionality\" , \"http://foo/{\nsearchTerms}\n\" , \"http://foo/blah.blah.blah.blah.blah\" }\n }\n ;\n for ( size_t i = 0 ;\n i < arraysize ( generate_url_cases ) ;\n ++ i ) {\n TemplateURLData data ;\n data . SetURL ( generate_url_cases [ i ] . url ) ;\n TemplateURL t_url ( data ) ;\n EXPECT_EQ ( t_url . GenerateSearchURL ( search_terms_data_ ) . spec ( ) , generate_url_cases [ i ] . expected ) << generate_url_cases [ i ] . test_name << \" failed.\" ;\n }\n }"}
{"idx": 716, "target": 0, "func": "static UBool prepareReorder ( const UBiDiLevel * levels , int32_t length , int32_t * indexMap , UBiDiLevel * pMinLevel , UBiDiLevel * pMaxLevel ) {\n int32_t start ;\n UBiDiLevel level , minLevel , maxLevel ;\n if ( levels == NULL || length <= 0 ) {\n return FALSE ;\n }\n minLevel = UBIDI_MAX_EXPLICIT_LEVEL + 1 ;\n maxLevel = 0 ;\n for ( start = length ;\n start > 0 ;\n ) {\n level = levels [ -- start ] ;\n if ( level > UBIDI_MAX_EXPLICIT_LEVEL + 1 ) {\n return FALSE ;\n }\n if ( level < minLevel ) {\n minLevel = level ;\n }\n if ( level > maxLevel ) {\n maxLevel = level ;\n }\n }\n * pMinLevel = minLevel ;\n * pMaxLevel = maxLevel ;\n for ( start = length ;\n start > 0 ;\n ) {\n -- start ;\n indexMap [ start ] = start ;\n }\n return TRUE ;\n }"}
{"idx": 717, "target": 0, "func": "void ff_h264_draw_horiz_band ( H264Context * h , int y , int height ) {\n AVCodecContext * avctx = h -> avctx ;\n Picture * cur = & h -> cur_pic ;\n Picture * last = h -> ref_list [ 0 ] [ 0 ] . f . data [ 0 ] ? & h -> ref_list [ 0 ] [ 0 ] : NULL ;\n const AVPixFmtDescriptor * desc = av_pix_fmt_desc_get ( avctx -> pix_fmt ) ;\n int vshift = desc -> log2_chroma_h ;\n const int field_pic = h -> picture_structure != PICT_FRAME ;\n if ( field_pic ) {\n height <<= 1 ;\n y <<= 1 ;\n }\n height = FFMIN ( height , avctx -> height - y ) ;\n if ( field_pic && h -> first_field && ! ( avctx -> slice_flags & SLICE_FLAG_ALLOW_FIELD ) ) return ;\n if ( avctx -> draw_horiz_band ) {\n AVFrame * src ;\n int offset [ AV_NUM_DATA_POINTERS ] ;\n int i ;\n if ( cur -> f . pict_type == AV_PICTURE_TYPE_B || h -> low_delay || ( avctx -> slice_flags & SLICE_FLAG_CODED_ORDER ) ) src = & cur -> f ;\n else if ( last ) src = & last -> f ;\n else return ;\n offset [ 0 ] = y * src -> linesize [ 0 ] ;\n offset [ 1 ] = offset [ 2 ] = ( y >> vshift ) * src -> linesize [ 1 ] ;\n for ( i = 3 ;\n i < AV_NUM_DATA_POINTERS ;\n i ++ ) offset [ i ] = 0 ;\n emms_c ( ) ;\n avctx -> draw_horiz_band ( avctx , src , offset , y , h -> picture_structure , height ) ;\n }\n }"}
{"idx": 718, "target": 0, "func": "static void patch_byte ( CPUX86State * env , target_ulong addr , uint8_t byte ) {\n cpu_memory_rw_debug ( env , addr , & byte , 1 , 1 ) ;\n }"}
{"idx": 719, "target": 0, "func": "static int count_esp_combs ( const struct xfrm_tmpl * t ) {\n int i , k , sz = 0 ;\n for ( i = 0 ;\n ;\n i ++ ) {\n const struct xfrm_algo_desc * ealg = xfrm_ealg_get_byidx ( i ) ;\n if ( ! ealg ) break ;\n if ( ! ealg -> pfkey_supported ) continue ;\n if ( ! ( ealg_tmpl_set ( t , ealg ) && ealg -> available ) ) continue ;\n for ( k = 1 ;\n ;\n k ++ ) {\n const struct xfrm_algo_desc * aalg = xfrm_aalg_get_byidx ( k ) ;\n if ( ! aalg ) break ;\n if ( ! aalg -> pfkey_supported ) continue ;\n if ( aalg_tmpl_set ( t , aalg ) && aalg -> available ) sz += sizeof ( struct sadb_comb ) ;\n }\n }\n return sz + sizeof ( struct sadb_prop ) ;\n }"}
{"idx": 720, "target": 0, "func": "static int dissect_h245_Ack_mediaChannel ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 887 \"../../asn1/h245/h245.cnf\" if ( upcoming_channel ) upcoming_channel -> upcoming_addr = & upcoming_channel -> media_addr ;\n offset = dissect_h245_TransportAddress ( tvb , offset , actx , tree , hf_index ) ;\n # line 891 \"../../asn1/h245/h245.cnf\" if ( upcoming_channel ) upcoming_channel -> upcoming_addr = NULL ;\n return offset ;\n }"}
{"idx": 721, "target": 1, "func": "static jpc_enc_cblk_t * cblk_create ( jpc_enc_cblk_t * cblk , jpc_enc_cp_t * cp , jpc_enc_prc_t * prc ) {\n jpc_enc_band_t * band ;\n uint_fast32_t cblktlx ;\n uint_fast32_t cblktly ;\n uint_fast32_t cblkbrx ;\n uint_fast32_t cblkbry ;\n jpc_enc_rlvl_t * rlvl ;\n uint_fast32_t cblkxind ;\n uint_fast32_t cblkyind ;\n uint_fast32_t cblkno ;\n uint_fast32_t tlcblktlx ;\n uint_fast32_t tlcblktly ;\n cblkno = cblk - prc -> cblks ;\n cblkxind = cblkno % prc -> numhcblks ;\n cblkyind = cblkno / prc -> numhcblks ;\n rlvl = prc -> band -> rlvl ;\n cblk -> prc = prc ;\n cblk -> numpasses = 0 ;\n cblk -> passes = 0 ;\n cblk -> numencpasses = 0 ;\n cblk -> numimsbs = 0 ;\n cblk -> numlenbits = 0 ;\n cblk -> stream = 0 ;\n cblk -> mqenc = 0 ;\n cblk -> flags = 0 ;\n cblk -> numbps = 0 ;\n cblk -> curpass = 0 ;\n cblk -> data = 0 ;\n cblk -> savedcurpass = 0 ;\n cblk -> savednumlenbits = 0 ;\n cblk -> savednumencpasses = 0 ;\n band = prc -> band ;\n tlcblktlx = JPC_FLOORTOMULTPOW2 ( prc -> tlx , rlvl -> cblkwidthexpn ) ;\n tlcblktly = JPC_FLOORTOMULTPOW2 ( prc -> tly , rlvl -> cblkheightexpn ) ;\n cblktlx = JAS_MAX ( tlcblktlx + ( cblkxind << rlvl -> cblkwidthexpn ) , prc -> tlx ) ;\n cblktly = JAS_MAX ( tlcblktly + ( cblkyind << rlvl -> cblkheightexpn ) , prc -> tly ) ;\n cblkbrx = JAS_MIN ( tlcblktlx + ( ( cblkxind + 1 ) << rlvl -> cblkwidthexpn ) , prc -> brx ) ;\n cblkbry = JAS_MIN ( tlcblktly + ( ( cblkyind + 1 ) << rlvl -> cblkheightexpn ) , prc -> bry ) ;\n assert ( cblktlx < cblkbrx && cblktly < cblkbry ) ;\n if ( ! ( cblk -> data = jas_seq2d_create ( 0 , 0 , 0 , 0 ) ) ) {\n goto error ;\n }\n jas_seq2d_bindsub ( cblk -> data , band -> data , cblktlx , cblktly , cblkbrx , cblkbry ) ;\n return cblk ;\n error : cblk_destroy ( cblk ) ;\n return 0 ;\n }"}
{"idx": 722, "target": 0, "func": "static int opt_format ( void * optctx , const char * opt , const char * arg ) {\n iformat = av_find_input_format ( arg ) ;\n if ( ! iformat ) {\n av_log ( NULL , AV_LOG_ERROR , \"Unknown input format: %s\\n\" , arg ) ;\n return AVERROR ( EINVAL ) ;\n }\n return 0 ;\n }"}
{"idx": 723, "target": 1, "func": "void xmlHashScanFull3 ( xmlHashTablePtr table , const xmlChar * name , const xmlChar * name2 , const xmlChar * name3 , xmlHashScannerFull f , void * data ) {\n int i ;\n xmlHashEntryPtr iter ;\n xmlHashEntryPtr next ;\n if ( table == NULL ) return ;\n if ( f == NULL ) return ;\n if ( table -> table ) {\n for ( i = 0 ;\n i < table -> size ;\n i ++ ) {\n if ( table -> table [ i ] . valid == 0 ) continue ;\n iter = & ( table -> table [ i ] ) ;\n while ( iter ) {\n next = iter -> next ;\n if ( ( ( name == NULL ) || ( xmlStrEqual ( name , iter -> name ) ) ) && ( ( name2 == NULL ) || ( xmlStrEqual ( name2 , iter -> name2 ) ) ) && ( ( name3 == NULL ) || ( xmlStrEqual ( name3 , iter -> name3 ) ) ) && ( iter -> payload != NULL ) ) {\n f ( iter -> payload , data , iter -> name , iter -> name2 , iter -> name3 ) ;\n }\n iter = next ;\n }\n }\n }\n }"}
{"idx": 724, "target": 1, "func": "static void * Type_MLU_Read ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number * nItems , cmsUInt32Number SizeOfTag ) {\n cmsMLU * mlu ;\n cmsUInt32Number Count , RecLen , NumOfWchar ;\n cmsUInt32Number SizeOfHeader ;\n cmsUInt32Number Len , Offset ;\n cmsUInt32Number i ;\n wchar_t * Block ;\n cmsUInt32Number BeginOfThisString , EndOfThisString , LargestPosition ;\n * nItems = 0 ;\n if ( ! _cmsReadUInt32Number ( io , & Count ) ) return NULL ;\n if ( ! _cmsReadUInt32Number ( io , & RecLen ) ) return NULL ;\n if ( RecLen != 12 ) {\n cmsSignalError ( self -> ContextID , cmsERROR_UNKNOWN_EXTENSION , \"multiLocalizedUnicodeType of len != 12 is not supported.\" ) ;\n return NULL ;\n }\n mlu = cmsMLUalloc ( self -> ContextID , Count ) ;\n if ( mlu == NULL ) return NULL ;\n mlu -> UsedEntries = Count ;\n SizeOfHeader = 12 * Count + sizeof ( _cmsTagBase ) ;\n LargestPosition = 0 ;\n for ( i = 0 ;\n i < Count ;\n i ++ ) {\n if ( ! _cmsReadUInt16Number ( io , & mlu -> Entries [ i ] . Language ) ) goto Error ;\n if ( ! _cmsReadUInt16Number ( io , & mlu -> Entries [ i ] . Country ) ) goto Error ;\n if ( ! _cmsReadUInt32Number ( io , & Len ) ) goto Error ;\n if ( ! _cmsReadUInt32Number ( io , & Offset ) ) goto Error ;\n if ( Offset < ( SizeOfHeader + 8 ) ) goto Error ;\n BeginOfThisString = Offset - SizeOfHeader - 8 ;\n mlu -> Entries [ i ] . Len = ( Len * sizeof ( wchar_t ) ) / sizeof ( cmsUInt16Number ) ;\n mlu -> Entries [ i ] . StrW = ( BeginOfThisString * sizeof ( wchar_t ) ) / sizeof ( cmsUInt16Number ) ;\n EndOfThisString = BeginOfThisString + Len ;\n if ( EndOfThisString > LargestPosition ) LargestPosition = EndOfThisString ;\n }\n SizeOfTag = ( LargestPosition * sizeof ( wchar_t ) ) / sizeof ( cmsUInt16Number ) ;\n if ( SizeOfTag == 0 ) {\n Block = NULL ;\n NumOfWchar = 0 ;\n }\n else {\n Block = ( wchar_t * ) _cmsMalloc ( self -> ContextID , SizeOfTag ) ;\n if ( Block == NULL ) goto Error ;\n NumOfWchar = SizeOfTag / sizeof ( wchar_t ) ;\n if ( ! _cmsReadWCharArray ( io , NumOfWchar , Block ) ) goto Error ;\n }\n mlu -> MemPool = Block ;\n mlu -> PoolSize = SizeOfTag ;\n mlu -> PoolUsed = SizeOfTag ;\n * nItems = 1 ;\n return ( void * ) mlu ;\n Error : if ( mlu ) cmsMLUfree ( mlu ) ;\n return NULL ;\n }"}
{"idx": 725, "target": 0, "func": "int TSHttpHdrLengthGet ( TSMBuffer bufp , TSMLoc obj ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_http_hdr_handle ( obj ) == TS_SUCCESS ) ;\n HTTPHdr h ;\n SET_HTTP_HDR ( h , bufp , obj ) ;\n ink_assert ( h . m_http -> m_type == HDR_HEAP_OBJ_HTTP_HEADER ) ;\n return h . length_get ( ) ;\n }"}
{"idx": 726, "target": 0, "func": "static void atoascii ( const char * in , size_t in_octets , char * out , size_t out_octets ) {\n const u_char * pchIn ;\n const u_char * pchInLimit ;\n u_char * pchOut ;\n u_char c ;\n pchIn = ( const u_char * ) in ;\n pchInLimit = pchIn + in_octets ;\n pchOut = ( u_char * ) out ;\n if ( NULL == pchIn ) {\n if ( 0 < out_octets ) * pchOut = '\\0' ;\n return ;\n }\n # define ONEOUT ( c ) do {\n if ( 0 == -- out_octets ) {\n * pchOut = '\\0' ;\n return ;\n }\n * pchOut ++ = ( c ) ;\n \\ }\n while ( 0 ) for ( ;\n pchIn < pchInLimit ;\n pchIn ++ ) {\n c = * pchIn ;\n if ( '\\0' == c ) break ;\n if ( c & 0x80 ) {\n ONEOUT ( 'M' ) ;\n ONEOUT ( '-' ) ;\n c &= 0x7f ;\n }\n if ( c < ' ' ) {\n ONEOUT ( '^' ) ;\n ONEOUT ( ( u_char ) ( c + '@' ) ) ;\n }\n else if ( 0x7f == c ) {\n ONEOUT ( '^' ) ;\n ONEOUT ( '?' ) ;\n }\n else ONEOUT ( c ) ;\n }\n ONEOUT ( '\\0' ) ;\n # undef ONEOUT }"}
{"idx": 727, "target": 0, "func": "static int dissect_usb_video_control_interface_descriptor ( proto_tree * parent_tree , tvbuff_t * tvb , guint8 descriptor_len , packet_info * pinfo , usb_conv_info_t * usb_conv_info ) {\n video_conv_info_t * video_conv_info = NULL ;\n video_entity_t * entity = NULL ;\n proto_item * item = NULL ;\n proto_item * subtype_item = NULL ;\n proto_tree * tree = NULL ;\n guint8 entity_id = 0 ;\n guint16 terminal_type = 0 ;\n int offset = 0 ;\n guint8 subtype ;\n subtype = tvb_get_guint8 ( tvb , offset + 2 ) ;\n if ( parent_tree ) {\n const gchar * subtype_str ;\n subtype_str = val_to_str_ext ( subtype , & vc_if_descriptor_subtypes_ext , \"Unknown (0x%x)\" ) ;\n tree = proto_tree_add_subtree_format ( parent_tree , tvb , offset , descriptor_len , ett_descriptor_video_control , & item , \"VIDEO CONTROL INTERFACE DESCRIPTOR [%s]\" , subtype_str ) ;\n }\n dissect_usb_descriptor_header ( tree , tvb , offset , & vid_descriptor_type_vals_ext ) ;\n subtype_item = proto_tree_add_item ( tree , hf_usb_vid_control_ifdesc_subtype , tvb , offset + 2 , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n if ( subtype == VC_HEADER ) {\n guint8 num_vs_interfaces ;\n proto_tree_add_item ( tree , hf_usb_vid_control_ifdesc_bcdUVC , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_usb_vid_ifdesc_wTotalLength , tvb , offset + 2 , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_usb_vid_control_ifdesc_dwClockFrequency , tvb , offset + 4 , 4 , ENC_LITTLE_ENDIAN ) ;\n num_vs_interfaces = tvb_get_guint8 ( tvb , offset + 8 ) ;\n proto_tree_add_item ( tree , hf_usb_vid_control_ifdesc_bInCollection , tvb , offset + 8 , 1 , ENC_LITTLE_ENDIAN ) ;\n if ( num_vs_interfaces > 0 ) {\n proto_tree_add_item ( tree , hf_usb_vid_control_ifdesc_baInterfaceNr , tvb , offset + 9 , num_vs_interfaces , ENC_NA ) ;\n }\n offset += 9 + num_vs_interfaces ;\n }\n else if ( ( subtype == VC_INPUT_TERMINAL ) || ( subtype == VC_OUTPUT_TERMINAL ) ) {\n entity_id = tvb_get_guint8 ( tvb , offset ) ;\n terminal_type = tvb_get_letohs ( tvb , offset + 1 ) ;\n proto_tree_add_item ( tree , hf_usb_vid_control_ifdesc_terminal_id , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_usb_vid_control_ifdesc_terminal_type , tvb , offset + 1 , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_usb_vid_control_ifdesc_assoc_terminal , tvb , offset + 3 , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n if ( subtype == VC_OUTPUT_TERMINAL ) {\n proto_tree_add_item ( tree , hf_usb_vid_control_ifdesc_src_id , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n ++ offset ;\n }\n proto_tree_add_item ( tree , hf_usb_vid_control_ifdesc_iTerminal , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n ++ offset ;\n if ( subtype == VC_INPUT_TERMINAL ) {\n if ( terminal_type == ITT_CAMERA ) {\n offset = dissect_usb_video_camera_terminal ( tree , tvb , offset ) ;\n }\n else if ( terminal_type == ITT_MEDIA_TRANSPORT_INPUT ) {\n }\n }\n if ( subtype == VC_OUTPUT_TERMINAL ) {\n if ( terminal_type == OTT_MEDIA_TRANSPORT_OUTPUT ) {\n }\n }\n }\n else {\n entity_id = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_usb_vid_control_ifdesc_unit_id , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n ++ offset ;\n if ( subtype == VC_PROCESSING_UNIT ) {\n offset = dissect_usb_video_processing_unit ( tree , tvb , offset ) ;\n }\n else if ( subtype == VC_SELECTOR_UNIT ) {\n offset = dissect_usb_video_selector_unit ( tree , tvb , offset ) ;\n }\n else if ( subtype == VC_EXTENSION_UNIT ) {\n offset = dissect_usb_video_extension_unit ( tree , tvb , offset ) ;\n }\n else if ( subtype == VC_ENCODING_UNIT ) {\n }\n else {\n expert_add_info_format ( pinfo , subtype_item , & ei_usb_vid_subtype_unknown , \"Unknown VC subtype %u\" , subtype ) ;\n }\n }\n if ( offset < descriptor_len ) {\n proto_tree_add_item ( tree , hf_usb_vid_descriptor_data , tvb , offset , descriptor_len - offset , ENC_NA ) ;\n }\n if ( entity_id != 0 ) proto_item_append_text ( item , \" (Entity %d)\" , entity_id ) ;\n if ( subtype != VC_HEADER && usb_conv_info ) {\n usb_conv_info = get_usb_iface_conv_info ( pinfo , usb_conv_info -> interfaceNum ) ;\n video_conv_info = ( video_conv_info_t * ) usb_conv_info -> class_data ;\n if ( ! video_conv_info ) {\n video_conv_info = wmem_new ( wmem_file_scope ( ) , video_conv_info_t ) ;\n video_conv_info -> entities = wmem_tree_new ( wmem_file_scope ( ) ) ;\n usb_conv_info -> class_data = video_conv_info ;\n usb_conv_info -> class_data_type = USB_CONV_VIDEO ;\n }\n else if ( usb_conv_info -> class_data_type != USB_CONV_VIDEO ) {\n return descriptor_len ;\n }\n entity = ( video_entity_t * ) wmem_tree_lookup32 ( video_conv_info -> entities , entity_id ) ;\n if ( ! entity ) {\n entity = wmem_new ( wmem_file_scope ( ) , video_entity_t ) ;\n entity -> entityID = entity_id ;\n entity -> subtype = subtype ;\n entity -> terminalType = terminal_type ;\n wmem_tree_insert32 ( video_conv_info -> entities , entity_id , entity ) ;\n }\n }\n return descriptor_len ;\n }"}
{"idx": 728, "target": 1, "func": "static void real_proto_register_diameter ( void ) {\n module_t * diameter_module ;\n expert_module_t * expert_diameter ;\n guint i , ett_length ;\n hf_register_info hf_base [ ] = {\n {\n & hf_diameter_version , {\n \"Version\" , \"diameter.version\" , FT_UINT8 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_diameter_length , {\n \"Length\" , \"diameter.length\" , FT_UINT24 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_diameter_flags , {\n \"Flags\" , \"diameter.flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_diameter_flags_request , {\n \"Request\" , \"diameter.flags.request\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , DIAM_FLAGS_R , NULL , HFILL }\n }\n , {\n & hf_diameter_flags_proxyable , {\n \"Proxyable\" , \"diameter.flags.proxyable\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , DIAM_FLAGS_P , NULL , HFILL }\n }\n , {\n & hf_diameter_flags_error , {\n \"Error\" , \"diameter.flags.error\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , DIAM_FLAGS_E , NULL , HFILL }\n }\n , {\n & hf_diameter_flags_T , {\n \"T(Potentially re-transmitted message)\" , \"diameter.flags.T\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , DIAM_FLAGS_T , NULL , HFILL }\n }\n , {\n & hf_diameter_flags_reserved4 , {\n \"Reserved\" , \"diameter.flags.reserved4\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , DIAM_FLAGS_RESERVED4 , NULL , HFILL }\n }\n , {\n & hf_diameter_flags_reserved5 , {\n \"Reserved\" , \"diameter.flags.reserved5\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , DIAM_FLAGS_RESERVED5 , NULL , HFILL }\n }\n , {\n & hf_diameter_flags_reserved6 , {\n \"Reserved\" , \"diameter.flags.reserved6\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , DIAM_FLAGS_RESERVED6 , NULL , HFILL }\n }\n , {\n & hf_diameter_flags_reserved7 , {\n \"Reserved\" , \"diameter.flags.reserved7\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , DIAM_FLAGS_RESERVED7 , NULL , HFILL }\n }\n , {\n & hf_diameter_vendor_id , {\n \"VendorId\" , \"diameter.vendorId\" , FT_UINT32 , BASE_DEC | BASE_EXT_STRING , & sminmpec_values_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_diameter_application_id , {\n \"ApplicationId\" , \"diameter.applicationId\" , FT_UINT32 , BASE_DEC | BASE_EXT_STRING , VALS_EXT_PTR ( dictionary . applications ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_diameter_hopbyhopid , {\n \"Hop-by-Hop Identifier\" , \"diameter.hopbyhopid\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_diameter_endtoendid , {\n \"End-to-End Identifier\" , \"diameter.endtoendid\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_diameter_avp , {\n \"AVP\" , \"diameter.avp\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_diameter_avp_len , {\n \"AVP Length\" , \"diameter.avp.len\" , FT_UINT24 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_diameter_avp_code , {\n \"AVP Code\" , \"diameter.avp.code\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_diameter_avp_flags , {\n \"AVP Flags\" , \"diameter.avp.flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_diameter_avp_flags_vendor_specific , {\n \"Vendor-Specific\" , \"diameter.flags.vendorspecific\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , AVP_FLAGS_V , NULL , HFILL }\n }\n , {\n & hf_diameter_avp_flags_mandatory , {\n \"Mandatory\" , \"diameter.flags.mandatory\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , AVP_FLAGS_M , NULL , HFILL }\n }\n , {\n & hf_diameter_avp_flags_protected , {\n \"Protected\" , \"diameter.avp.flags.protected\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , AVP_FLAGS_P , NULL , HFILL }\n }\n , {\n & hf_diameter_avp_flags_reserved3 , {\n \"Reserved\" , \"diameter.avp.flags.reserved3\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , AVP_FLAGS_RESERVED3 , NULL , HFILL }\n }\n , {\n & hf_diameter_avp_flags_reserved4 , {\n \"Reserved\" , \"diameter.avp.flags.reserved4\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , AVP_FLAGS_RESERVED4 , NULL , HFILL }\n }\n , {\n & hf_diameter_avp_flags_reserved5 , {\n \"Reserved\" , \"diameter.avp.flags.reserved5\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , AVP_FLAGS_RESERVED5 , NULL , HFILL }\n }\n , {\n & hf_diameter_avp_flags_reserved6 , {\n \"Reserved\" , \"diameter.avp.flags.reserved6\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , AVP_FLAGS_RESERVED6 , NULL , HFILL }\n }\n , {\n & hf_diameter_avp_flags_reserved7 , {\n \"Reserved\" , \"diameter.avp.flags.reserved7\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , AVP_FLAGS_RESERVED7 , NULL , HFILL }\n }\n , {\n & hf_diameter_avp_vendor_id , {\n \"AVP Vendor Id\" , \"diameter.avp.vendorId\" , FT_UINT32 , BASE_DEC | BASE_EXT_STRING , & sminmpec_values_ext , 0x0 , NULL , HFILL }\n }\n , {\n & ( unknown_avp . hf_value ) , {\n \"Value\" , \"diameter.avp.unknown\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_diameter_avp_data_wrong_length , {\n \"Data\" , \"diameter.avp.invalid-data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_diameter_avp_pad , {\n \"Padding\" , \"diameter.avp.pad\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_diameter_code , {\n \"Command Code\" , \"diameter.cmd.code\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_diameter_answer_in , {\n \"Answer In\" , \"diameter.answer_in\" , FT_FRAMENUM , BASE_NONE , FRAMENUM_TYPE ( FT_FRAMENUM_RESPONSE ) , 0x0 , \"The answer to this diameter request is in this frame\" , HFILL }\n }\n , {\n & hf_diameter_answer_to , {\n \"Request In\" , \"diameter.answer_to\" , FT_FRAMENUM , BASE_NONE , FRAMENUM_TYPE ( FT_FRAMENUM_REQUEST ) , 0x0 , \"This is an answer to the diameter request in this frame\" , HFILL }\n }\n , {\n & hf_diameter_answer_time , {\n \"Response Time\" , \"diameter.resp_time\" , FT_RELATIVE_TIME , BASE_NONE , NULL , 0x0 , \"The time between the request and the answer\" , HFILL }\n }\n , {\n & hf_framed_ipv6_prefix_reserved , {\n \"Framed IPv6 Prefix Reserved byte\" , \"diameter.framed_ipv6_prefix_reserved\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_framed_ipv6_prefix_length , {\n \"Framed IPv6 Prefix length (in bits)\" , \"diameter.framed_ipv6_prefix_length\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_framed_ipv6_prefix_bytes , {\n \"Framed IPv6 Prefix as a bytestring\" , \"diameter.framed_ipv6_prefix_bytes\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_framed_ipv6_prefix_ipv6 , {\n \"Framed IPv6 Prefix as an IPv6 address\" , \"diameter.framed_ipv6_prefix_ipv6\" , FT_IPv6 , BASE_NONE , NULL , 0 , \"This field is present only if the prefix length is 128\" , HFILL }\n }\n , {\n & hf_diameter_3gpp2_exp_res , {\n \"Experimental-Result-Code\" , \"diameter.3gpp2.exp_res\" , FT_UINT32 , BASE_DEC , VALS ( diameter_3gpp2_exp_res_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_diameter_other_vendor_exp_res , {\n \"Experimental-Result-Code\" , \"diameter.other_vendor.Experimental-Result-Code\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n }\n ;\n gint * ett_base [ ] = {\n & ett_diameter , & ett_diameter_flags , & ett_diameter_avp_flags , & ett_diameter_avpinfo , & ett_unknown , & ett_err , & ( unknown_avp . ett ) }\n ;\n static ei_register_info ei [ ] = {\n {\n & ei_diameter_reserved_bit_set , {\n \"diameter.reserved_bit_set\" , PI_MALFORMED , PI_WARN , \"Reserved bit set\" , EXPFILL }\n }\n , {\n & ei_diameter_avp_code , {\n \"diameter.avp.code.unknown\" , PI_UNDECODED , PI_WARN , \"Unknown AVP, if you know what this is you can add it to dictionary.xml\" , EXPFILL }\n }\n , {\n & ei_diameter_avp_vendor_id , {\n \"diameter.unknown_vendor\" , PI_UNDECODED , PI_WARN , \"Unknown Vendor, if you know whose this is you can add it to dictionary.xml\" , EXPFILL }\n }\n , {\n & ei_diameter_avp_no_data , {\n \"diameter.avp.no_data\" , PI_UNDECODED , PI_WARN , \"Data is empty\" , EXPFILL }\n }\n , {\n & ei_diameter_avp_pad , {\n \"diameter.avp.pad.non_zero\" , PI_MALFORMED , PI_NOTE , \"Padding is non-zero\" , EXPFILL }\n }\n , {\n & ei_diameter_avp_len , {\n \"diameter.avp.invalid-len\" , PI_MALFORMED , PI_WARN , \"Wrong length\" , EXPFILL }\n }\n , {\n & ei_diameter_application_id , {\n \"diameter.applicationId.unknown\" , PI_UNDECODED , PI_WARN , \"Unknown Application Id, if you know what this is you can add it to dictionary.xml\" , EXPFILL }\n }\n , {\n & ei_diameter_version , {\n \"diameter.version.unknown\" , PI_UNDECODED , PI_WARN , \"Unknown Diameter Version (decoding as RFC 3588)\" , EXPFILL }\n }\n , {\n & ei_diameter_code , {\n \"diameter.cmd.code.unknown\" , PI_UNDECODED , PI_WARN , \"Unknown command, if you know what this is you can add it to dictionary.xml\" , EXPFILL }\n }\n , }\n ;\n wmem_array_append ( build_dict . hf , hf_base , array_length ( hf_base ) ) ;\n ett_length = array_length ( ett_base ) ;\n for ( i = 0 ;\n i < ett_length ;\n i ++ ) {\n g_ptr_array_add ( build_dict . ett , ett_base [ i ] ) ;\n }\n proto_diameter = proto_register_protocol ( \"Diameter Protocol\" , \"DIAMETER\" , \"diameter\" ) ;\n proto_register_field_array ( proto_diameter , ( hf_register_info * ) wmem_array_get_raw ( build_dict . hf ) , wmem_array_get_count ( build_dict . hf ) ) ;\n proto_register_subtree_array ( ( gint * * ) build_dict . ett -> pdata , build_dict . ett -> len ) ;\n expert_diameter = expert_register_protocol ( proto_diameter ) ;\n expert_register_field_array ( expert_diameter , ei , array_length ( ei ) ) ;\n g_ptr_array_free ( build_dict . ett , TRUE ) ;\n new_register_dissector ( \"diameter\" , dissect_diameter , proto_diameter ) ;\n diameter_dissector_table = register_dissector_table ( \"diameter.base\" , \"DIAMETER_BASE_AVPS\" , FT_UINT32 , BASE_DEC , DISSECTOR_TABLE_ALLOW_DUPLICATE ) ;\n diameter_3gpp_avp_dissector_table = register_dissector_table ( \"diameter.3gpp\" , \"DIAMETER_3GPP_AVPS\" , FT_UINT32 , BASE_DEC , DISSECTOR_TABLE_ALLOW_DUPLICATE ) ;\n diameter_ericsson_avp_dissector_table = register_dissector_table ( \"diameter.ericsson\" , \"DIAMETER_ERICSSON_AVPS\" , FT_UINT32 , BASE_DEC , DISSECTOR_TABLE_ALLOW_DUPLICATE ) ;\n diameter_expr_result_vnd_table = register_dissector_table ( \"diameter.vnd_exp_res\" , \"DIAMETER Experimental-Result-Code\" , FT_UINT32 , BASE_DEC , DISSECTOR_TABLE_ALLOW_DUPLICATE ) ;\n range_convert_str ( & global_diameter_tcp_port_range , DEFAULT_DIAMETER_PORT_RANGE , MAX_UDP_PORT ) ;\n range_convert_str ( & global_diameter_sctp_port_range , DEFAULT_DIAMETER_PORT_RANGE , MAX_SCTP_PORT ) ;\n range_convert_str ( & global_diameter_udp_port_range , \"\" , MAX_UDP_PORT ) ;\n diameter_module = prefs_register_protocol ( proto_diameter , proto_reg_handoff_diameter ) ;\n prefs_register_range_preference ( diameter_module , \"tcp.ports\" , \"Diameter TCP ports\" , \"TCP ports to be decoded as Diameter (default: \" DEFAULT_DIAMETER_PORT_RANGE \")\" , & global_diameter_tcp_port_range , MAX_UDP_PORT ) ;\n prefs_register_range_preference ( diameter_module , \"sctp.ports\" , \"Diameter SCTP Ports\" , \"SCTP ports to be decoded as Diameter (default: \" DEFAULT_DIAMETER_PORT_RANGE \")\" , & global_diameter_sctp_port_range , MAX_SCTP_PORT ) ;\n prefs_register_bool_preference ( diameter_module , \"desegment\" , \"Reassemble Diameter messages\\nspanning multiple TCP segments\" , \"Whether the Diameter dissector should reassemble messages spanning multiple TCP segments.\" \" To use this option, you must also enable \\\"Allow subdissectors to reassemble TCP streams\\\" in the TCP protocol settings.\" , & gbl_diameter_desegment ) ;\n prefs_register_range_preference ( diameter_module , \"udp.ports\" , \"Diameter UDP ports\" , \"UDP ports to be decoded as Diameter (default: 0 as Diameter over UDP is nonstandard)\" , & global_diameter_udp_port_range , MAX_UDP_PORT ) ;\n prefs_register_obsolete_preference ( diameter_module , \"version\" ) ;\n prefs_register_obsolete_preference ( diameter_module , \"tcp.port\" ) ;\n prefs_register_obsolete_preference ( diameter_module , \"sctp.port\" ) ;\n prefs_register_obsolete_preference ( diameter_module , \"command_in_header\" ) ;\n prefs_register_obsolete_preference ( diameter_module , \"dictionary.name\" ) ;\n prefs_register_obsolete_preference ( diameter_module , \"dictionary.use\" ) ;\n prefs_register_obsolete_preference ( diameter_module , \"allow_zero_as_app_id\" ) ;\n prefs_register_obsolete_preference ( diameter_module , \"suppress_console_output\" ) ;\n diameter_tap = register_tap ( \"diameter\" ) ;\n register_srt_table ( proto_diameter , NULL , 1 , diameterstat_packet , diameterstat_init , NULL ) ;\n }"}
{"idx": 729, "target": 0, "func": "relpRetVal relpTcpRcv ( relpTcp_t * pThis , relpOctet_t * pRcvBuf , ssize_t * pLenBuf ) {\n ENTER_RELPFUNC ;\n RELPOBJ_assert ( pThis , Tcp ) ;\n # ifdef ENABLE_TLS int r ;\n if ( pThis -> bEnableTLS ) {\n r = gnutls_record_recv ( pThis -> session , pRcvBuf , * pLenBuf ) ;\n if ( r == GNUTLS_E_INTERRUPTED || r == GNUTLS_E_AGAIN ) {\n pThis -> pEngine -> dbgprint ( \"librelp: gnutls_record_recv must be retried\\n\" ) ;\n pThis -> rtryOp = relpTCP_RETRY_recv ;\n }\n else {\n if ( r < 0 ) chkGnutlsCode ( pThis , \"TLS record reception failed\" , RELP_RET_IO_ERR , r ) ;\n pThis -> rtryOp = relpTCP_RETRY_none ;\n }\n * pLenBuf = ( r < 0 ) ? - 1 : r ;\n }\n else {\n # endif * pLenBuf = recv ( pThis -> sock , pRcvBuf , * pLenBuf , MSG_DONTWAIT ) ;\n pThis -> pEngine -> dbgprint ( \"relpTcpRcv: read %zd bytes from sock %d\\n\" , * pLenBuf , pThis -> sock ) ;\n # ifdef ENABLE_TLS }\n # endif LEAVE_RELPFUNC ;\n }"}
{"idx": 730, "target": 0, "func": "static void pmac_ide_writel ( void * opaque , hwaddr addr , uint32_t val ) {\n MACIOIDEState * d = opaque ;\n addr = ( addr & 0xFFF ) >> 4 ;\n val = bswap32 ( val ) ;\n if ( addr == 0 ) {\n ide_data_writel ( & d -> bus , 0 , val ) ;\n }\n }"}
{"idx": 731, "target": 0, "func": "static void repeat ( struct vars * v , struct state * lp , struct state * rp , int m , int n ) {\n # define SOME 2 # define INF 3 # define PAIR ( x , y ) ( ( x ) * 4 + ( y ) ) # define REDUCE ( x ) ( ( ( x ) == DUPINF ) ? INF : ( ( ( x ) > 1 ) ? SOME : ( x ) ) ) const int rm = REDUCE ( m ) ;\n const int rn = REDUCE ( n ) ;\n struct state * s ;\n struct state * s2 ;\n switch ( PAIR ( rm , rn ) ) {\n case PAIR ( 0 , 0 ) : delsub ( v -> nfa , lp , rp ) ;\n EMPTYARC ( lp , rp ) ;\n break ;\n case PAIR ( 0 , 1 ) : EMPTYARC ( lp , rp ) ;\n break ;\n case PAIR ( 0 , SOME ) : repeat ( v , lp , rp , 1 , n ) ;\n NOERR ( ) ;\n EMPTYARC ( lp , rp ) ;\n break ;\n case PAIR ( 0 , INF ) : s = newstate ( v -> nfa ) ;\n NOERR ( ) ;\n moveouts ( v -> nfa , lp , s ) ;\n moveins ( v -> nfa , rp , s ) ;\n EMPTYARC ( lp , s ) ;\n EMPTYARC ( s , rp ) ;\n break ;\n case PAIR ( 1 , 1 ) : break ;\n case PAIR ( 1 , SOME ) : s = newstate ( v -> nfa ) ;\n NOERR ( ) ;\n moveouts ( v -> nfa , lp , s ) ;\n dupnfa ( v -> nfa , s , rp , lp , s ) ;\n NOERR ( ) ;\n repeat ( v , lp , s , 1 , n - 1 ) ;\n NOERR ( ) ;\n EMPTYARC ( lp , s ) ;\n break ;\n case PAIR ( 1 , INF ) : s = newstate ( v -> nfa ) ;\n s2 = newstate ( v -> nfa ) ;\n NOERR ( ) ;\n moveouts ( v -> nfa , lp , s ) ;\n moveins ( v -> nfa , rp , s2 ) ;\n EMPTYARC ( lp , s ) ;\n EMPTYARC ( s2 , rp ) ;\n EMPTYARC ( s2 , s ) ;\n break ;\n case PAIR ( SOME , SOME ) : s = newstate ( v -> nfa ) ;\n NOERR ( ) ;\n moveouts ( v -> nfa , lp , s ) ;\n dupnfa ( v -> nfa , s , rp , lp , s ) ;\n NOERR ( ) ;\n repeat ( v , lp , s , m - 1 , n - 1 ) ;\n break ;\n case PAIR ( SOME , INF ) : s = newstate ( v -> nfa ) ;\n NOERR ( ) ;\n moveouts ( v -> nfa , lp , s ) ;\n dupnfa ( v -> nfa , s , rp , lp , s ) ;\n NOERR ( ) ;\n repeat ( v , lp , s , m - 1 , n ) ;\n break ;\n default : ERR ( REG_ASSERT ) ;\n break ;\n }\n }"}
{"idx": 732, "target": 0, "func": "static int dissect_h245_AuthorizationParameters ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_AuthorizationParameters , AuthorizationParameters_sequence ) ;\n return offset ;\n }"}
{"idx": 733, "target": 0, "func": "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_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_Endpoint , Endpoint_sequence ) ;\n return offset ;\n }"}
{"idx": 734, "target": 0, "func": "static void vc1_decode_i_blocks_adv ( VC1Context * v ) {\n int k ;\n MpegEncContext * s = & v -> s ;\n int cbp , val ;\n uint8_t * coded_val ;\n int mb_pos ;\n int mquant = v -> pq ;\n int mqdiff ;\n GetBitContext * gb = & s -> gb ;\n switch ( v -> y_ac_table_index ) {\n case 0 : v -> codingset = ( v -> pqindex <= 8 ) ? CS_HIGH_RATE_INTRA : CS_LOW_MOT_INTRA ;\n break ;\n case 1 : v -> codingset = CS_HIGH_MOT_INTRA ;\n break ;\n case 2 : v -> codingset = CS_MID_RATE_INTRA ;\n break ;\n }\n switch ( v -> c_ac_table_index ) {\n case 0 : v -> codingset2 = ( v -> pqindex <= 8 ) ? CS_HIGH_RATE_INTER : CS_LOW_MOT_INTER ;\n break ;\n case 1 : v -> codingset2 = CS_HIGH_MOT_INTER ;\n break ;\n case 2 : v -> codingset2 = CS_MID_RATE_INTER ;\n break ;\n }\n s -> mb_x = s -> mb_y = 0 ;\n s -> mb_intra = 1 ;\n s -> first_slice_line = 1 ;\n s -> mb_y = s -> start_mb_y ;\n if ( s -> start_mb_y ) {\n s -> mb_x = 0 ;\n ff_init_block_index ( s ) ;\n memset ( & s -> coded_block [ s -> block_index [ 0 ] - s -> b8_stride ] , 0 , ( 1 + s -> b8_stride ) * sizeof ( * s -> coded_block ) ) ;\n }\n for ( ;\n s -> mb_y < s -> end_mb_y ;\n s -> mb_y ++ ) {\n s -> mb_x = 0 ;\n ff_init_block_index ( s ) ;\n for ( ;\n s -> mb_x < s -> mb_width ;\n s -> mb_x ++ ) {\n int16_t ( * block ) [ 64 ] = v -> block [ v -> cur_blk_idx ] ;\n ff_update_block_index ( s ) ;\n s -> dsp . clear_blocks ( block [ 0 ] ) ;\n mb_pos = s -> mb_x + s -> mb_y * s -> mb_stride ;\n s -> current_picture . mb_type [ mb_pos + v -> mb_off ] = MB_TYPE_INTRA ;\n s -> current_picture . motion_val [ 1 ] [ s -> block_index [ 0 ] + v -> blocks_off ] [ 0 ] = 0 ;\n s -> current_picture . motion_val [ 1 ] [ s -> block_index [ 0 ] + v -> blocks_off ] [ 1 ] = 0 ;\n if ( v -> fieldtx_is_raw ) v -> fieldtx_plane [ mb_pos ] = get_bits1 ( & v -> s . gb ) ;\n cbp = get_vlc2 ( & v -> s . gb , ff_msmp4_mb_i_vlc . table , MB_INTRA_VLC_BITS , 2 ) ;\n if ( v -> acpred_is_raw ) v -> s . ac_pred = get_bits1 ( & v -> s . gb ) ;\n else v -> s . ac_pred = v -> acpred_plane [ mb_pos ] ;\n if ( v -> condover == CONDOVER_SELECT && v -> overflg_is_raw ) v -> over_flags_plane [ mb_pos ] = get_bits1 ( & v -> s . gb ) ;\n GET_MQUANT ( ) ;\n s -> current_picture . qscale_table [ mb_pos ] = mquant ;\n s -> y_dc_scale = s -> y_dc_scale_table [ mquant ] ;\n s -> c_dc_scale = s -> c_dc_scale_table [ mquant ] ;\n for ( k = 0 ;\n k < 6 ;\n k ++ ) {\n val = ( ( cbp >> ( 5 - k ) ) & 1 ) ;\n if ( k < 4 ) {\n int pred = vc1_coded_block_pred ( & v -> s , k , & coded_val ) ;\n val = val ^ pred ;\n * coded_val = val ;\n }\n cbp |= val << ( 5 - k ) ;\n v -> a_avail = ! s -> first_slice_line || ( k == 2 || k == 3 ) ;\n v -> c_avail = ! ! s -> mb_x || ( k == 1 || k == 3 ) ;\n vc1_decode_i_block_adv ( v , block [ k ] , k , val , ( k < 4 ) ? v -> codingset : v -> codingset2 , mquant ) ;\n if ( k > 3 && ( s -> flags & CODEC_FLAG_GRAY ) ) continue ;\n v -> vc1dsp . vc1_inv_trans_8x8 ( block [ k ] ) ;\n }\n vc1_smooth_overlap_filter_iblk ( v ) ;\n vc1_put_signed_blocks_clamped ( v ) ;\n if ( v -> s . loop_filter ) vc1_loop_filter_iblk_delayed ( v , v -> pq ) ;\n if ( get_bits_count ( & s -> gb ) > v -> bits ) {\n ff_er_add_slice ( & s -> er , 0 , s -> start_mb_y , s -> mb_x , s -> mb_y , ER_MB_ERROR ) ;\n av_log ( s -> avctx , AV_LOG_ERROR , \"Bits overconsumption: %i > %i\\n\" , get_bits_count ( & s -> gb ) , v -> bits ) ;\n return ;\n }\n }\n if ( ! v -> s . loop_filter ) ff_mpeg_draw_horiz_band ( s , s -> mb_y * 16 , 16 ) ;\n else if ( s -> mb_y ) ff_mpeg_draw_horiz_band ( s , ( s -> mb_y - 1 ) * 16 , 16 ) ;\n s -> first_slice_line = 0 ;\n }\n s -> mb_x = 0 ;\n ff_init_block_index ( s ) ;\n for ( ;\n s -> mb_x < s -> mb_width ;\n s -> mb_x ++ ) {\n ff_update_block_index ( s ) ;\n vc1_put_signed_blocks_clamped ( v ) ;\n if ( v -> s . loop_filter ) vc1_loop_filter_iblk_delayed ( v , v -> pq ) ;\n }\n if ( v -> s . loop_filter ) ff_mpeg_draw_horiz_band ( s , ( s -> end_mb_y - 1 ) * 16 , 16 ) ;\n ff_er_add_slice ( & s -> er , 0 , s -> start_mb_y << v -> field_mode , s -> mb_width - 1 , ( s -> end_mb_y << v -> field_mode ) - 1 , ER_MB_END ) ;\n }"}
{"idx": 735, "target": 0, "func": "gs_ref_memory_t * ialloc_alloc_state ( gs_memory_t * parent , uint clump_size ) {\n clump_t * cp ;\n gs_ref_memory_t * iimem = ialloc_solo ( parent , & st_ref_memory , & cp ) ;\n if ( iimem == 0 ) return 0 ;\n iimem -> stable_memory = ( gs_memory_t * ) iimem ;\n iimem -> procs = gs_ref_memory_procs ;\n iimem -> gs_lib_ctx = parent -> gs_lib_ctx ;\n iimem -> non_gc_memory = parent ;\n iimem -> thread_safe_memory = parent -> thread_safe_memory ;\n iimem -> clump_size = clump_size ;\n # ifdef MEMENTO iimem -> large_size = 1 ;\n # else iimem -> large_size = ( ( clump_size / 4 ) & - obj_align_mod ) + 1 ;\n # endif iimem -> is_controlled = false ;\n iimem -> gc_status . vm_threshold = clump_size * 3L ;\n iimem -> gc_status . max_vm = max_long ;\n iimem -> gc_status . signal_value = 0 ;\n iimem -> gc_status . enabled = false ;\n iimem -> gc_status . requested = 0 ;\n iimem -> gc_allocated = 0 ;\n iimem -> previous_status . allocated = 0 ;\n iimem -> previous_status . used = 0 ;\n ialloc_reset ( iimem ) ;\n iimem -> root = cp ;\n ialloc_set_limit ( iimem ) ;\n iimem -> cc = NULL ;\n iimem -> save_level = 0 ;\n iimem -> new_mask = 0 ;\n iimem -> test_mask = ~ 0 ;\n iimem -> streams = 0 ;\n iimem -> names_array = 0 ;\n iimem -> roots = 0 ;\n iimem -> num_contexts = 0 ;\n iimem -> saved = 0 ;\n return iimem ;\n }"}
{"idx": 736, "target": 0, "func": "static int userauth_hostbased ( struct ssh * ssh ) {\n Authctxt * authctxt = ssh -> authctxt ;\n struct sshbuf * b ;\n struct sshkey * key = NULL ;\n char * pkalg , * cuser , * chost ;\n u_char * pkblob , * sig ;\n size_t alen , blen , slen ;\n int r , pktype , authenticated = 0 ;\n if ( ( r = sshpkt_get_cstring ( ssh , & pkalg , & alen ) ) != 0 || ( r = sshpkt_get_string ( ssh , & pkblob , & blen ) ) != 0 || ( r = sshpkt_get_cstring ( ssh , & chost , NULL ) ) != 0 || ( r = sshpkt_get_cstring ( ssh , & cuser , NULL ) ) != 0 || ( r = sshpkt_get_string ( ssh , & sig , & slen ) ) != 0 ) fatal ( \"%s: packet parsing: %s\" , __func__ , ssh_err ( r ) ) ;\n debug ( \"%s: cuser %s chost %s pkalg %s slen %zu\" , __func__ , cuser , chost , pkalg , slen ) ;\n # ifdef DEBUG_PK debug ( \"signature:\" ) ;\n sshbuf_dump_data ( sig , siglen , stderr ) ;\n # endif pktype = sshkey_type_from_name ( pkalg ) ;\n if ( pktype == KEY_UNSPEC ) {\n logit ( \"%s: unsupported public key algorithm: %s\" , __func__ , pkalg ) ;\n goto done ;\n }\n if ( ( r = sshkey_from_blob ( pkblob , blen , & key ) ) != 0 ) {\n error ( \"%s: key_from_blob: %s\" , __func__ , ssh_err ( r ) ) ;\n goto done ;\n }\n if ( key == NULL ) {\n error ( \"%s: cannot decode key: %s\" , __func__ , pkalg ) ;\n goto done ;\n }\n if ( key -> type != pktype ) {\n error ( \"%s: type mismatch for decoded key \" \"(received %d, expected %d)\" , __func__ , key -> type , pktype ) ;\n goto done ;\n }\n if ( sshkey_type_plain ( key -> type ) == KEY_RSA && ( ssh -> compat & SSH_BUG_RSASIGMD5 ) != 0 ) {\n error ( \"Refusing RSA key because peer uses unsafe \" \"signature format\" ) ;\n goto done ;\n }\n if ( match_pattern_list ( pkalg , options . hostbased_key_types , 0 ) != 1 ) {\n logit ( \"%s: key type %s not in HostbasedAcceptedKeyTypes\" , __func__ , sshkey_type ( key ) ) ;\n goto done ;\n }\n if ( ! authctxt -> valid || authctxt -> user == NULL ) {\n debug2 ( \"%s: disabled because of invalid user\" , __func__ ) ;\n goto done ;\n }\n if ( ( b = sshbuf_new ( ) ) == NULL ) fatal ( \"%s: sshbuf_new failed\" , __func__ ) ;\n if ( ( r = sshbuf_put_string ( b , session_id2 , session_id2_len ) ) != 0 || ( r = sshbuf_put_u8 ( b , SSH2_MSG_USERAUTH_REQUEST ) ) != 0 || ( r = sshbuf_put_cstring ( b , authctxt -> user ) ) != 0 || ( r = sshbuf_put_cstring ( b , authctxt -> service ) ) != 0 || ( r = sshbuf_put_cstring ( b , \"hostbased\" ) ) != 0 || ( r = sshbuf_put_string ( b , pkalg , alen ) ) != 0 || ( r = sshbuf_put_string ( b , pkblob , blen ) ) != 0 || ( r = sshbuf_put_cstring ( b , chost ) ) != 0 || ( r = sshbuf_put_cstring ( b , cuser ) ) != 0 ) fatal ( \"%s: buffer error: %s\" , __func__ , ssh_err ( r ) ) ;\n # ifdef DEBUG_PK sshbuf_dump ( b , stderr ) ;\n # endif auth2_record_info ( authctxt , \"client user \\\"%.100s\\\", client host \\\"%.100s\\\"\" , cuser , chost ) ;\n authenticated = 0 ;\n if ( PRIVSEP ( hostbased_key_allowed ( authctxt -> pw , cuser , chost , key ) ) && PRIVSEP ( sshkey_verify ( key , sig , slen , sshbuf_ptr ( b ) , sshbuf_len ( b ) , pkalg , ssh -> compat ) ) == 0 ) authenticated = 1 ;\n auth2_record_key ( authctxt , authenticated , key ) ;\n sshbuf_free ( b ) ;\n done : debug2 ( \"%s: authenticated %d\" , __func__ , authenticated ) ;\n sshkey_free ( key ) ;\n free ( pkalg ) ;\n free ( pkblob ) ;\n free ( cuser ) ;\n free ( chost ) ;\n free ( sig ) ;\n return authenticated ;\n }"}
{"idx": 737, "target": 0, "func": "static int aload ( unsigned sp , struct psstack * stack , size_t stacktop , struct garbage * tofrees ) {\n int i ;\n if ( sp >= 1 && stack [ sp - 1 ] . type == ps_array ) {\n struct pskeydict dict ;\n -- sp ;\n dict = stack [ sp ] . u . dict ;\n for ( i = 0 ;\n i < dict . cnt ;\n ++ i ) {\n if ( sp < stacktop ) {\n stack [ sp ] . type = dict . entries [ i ] . type ;\n stack [ sp ] . u = dict . entries [ i ] . u ;\n if ( stack [ sp ] . type == ps_string || stack [ sp ] . type == ps_instr || stack [ sp ] . type == ps_lit ) stack [ sp ] . u . str = copy ( stack [ sp ] . u . str ) ;\n else if ( stack [ sp ] . type == ps_array ) copyarray ( & stack [ sp ] . u . dict , & stack [ sp ] . u . dict , tofrees ) ;\n ++ sp ;\n }\n }\n }\n return ( sp ) ;\n }"}
{"idx": 738, "target": 0, "func": "static int nb_add_string ( char * * ret_buffer , size_t * ret_buffer_len , uint16_t type , const char * str , size_t str_len ) {\n char * packet_ptr ;\n size_t packet_len ;\n uint16_t pkg_type ;\n uint16_t pkg_length ;\n size_t offset ;\n packet_len = sizeof ( pkg_type ) + sizeof ( pkg_length ) + str_len + 1 ;\n if ( * ret_buffer_len < packet_len ) return ( ENOMEM ) ;\n pkg_type = htons ( type ) ;\n pkg_length = htons ( ( uint16_t ) packet_len ) ;\n packet_ptr = * ret_buffer ;\n offset = 0 ;\n memcpy ( packet_ptr + offset , & pkg_type , sizeof ( pkg_type ) ) ;\n offset += sizeof ( pkg_type ) ;\n memcpy ( packet_ptr + offset , & pkg_length , sizeof ( pkg_length ) ) ;\n offset += sizeof ( pkg_length ) ;\n memcpy ( packet_ptr + offset , str , str_len ) ;\n offset += str_len ;\n memset ( packet_ptr + offset , 0 , 1 ) ;\n offset += 1 ;\n assert ( offset == packet_len ) ;\n * ret_buffer = packet_ptr + packet_len ;\n * ret_buffer_len -= packet_len ;\n return ( 0 ) ;\n }"}
{"idx": 739, "target": 1, "func": "int archive_read_support_format_all ( struct archive * a ) {\n archive_check_magic ( a , ARCHIVE_READ_MAGIC , ARCHIVE_STATE_NEW , \"archive_read_support_format_all\" ) ;\n archive_read_support_format_ar ( a ) ;\n archive_read_support_format_cpio ( a ) ;\n archive_read_support_format_empty ( a ) ;\n archive_read_support_format_lha ( a ) ;\n archive_read_support_format_mtree ( a ) ;\n archive_read_support_format_tar ( a ) ;\n archive_read_support_format_xar ( a ) ;\n archive_read_support_format_7zip ( a ) ;\n archive_read_support_format_cab ( a ) ;\n archive_read_support_format_rar ( a ) ;\n archive_read_support_format_iso9660 ( a ) ;\n archive_read_support_format_zip ( a ) ;\n archive_clear_error ( a ) ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 740, "target": 0, "func": "static void cirrus_get_resolution ( VGACommonState * s , int * pwidth , int * pheight ) {\n int width , height ;\n width = ( s -> cr [ 0x01 ] + 1 ) * 8 ;\n height = s -> cr [ 0x12 ] | ( ( s -> cr [ 0x07 ] & 0x02 ) << 7 ) | ( ( s -> cr [ 0x07 ] & 0x40 ) << 3 ) ;\n height = ( height + 1 ) ;\n if ( s -> cr [ 0x1a ] & 0x01 ) height = height * 2 ;\n * pwidth = width ;\n * pheight = height ;\n }"}
{"idx": 741, "target": 0, "func": "static int oc_filter ( Filter * f , int cur , int * max ) {\n int rc = 0 ;\n assert ( f != NULL ) ;\n if ( cur > * max ) * max = cur ;\n switch ( f -> f_choice ) {\n case LDAP_FILTER_PRESENT : if ( f -> f_desc == slap_schema . si_ad_objectClass ) {\n rc = 1 ;\n }\n break ;\n case LDAP_FILTER_AND : case LDAP_FILTER_OR : cur ++ ;\n for ( f = f -> f_and ;\n f ;\n f = f -> f_next ) {\n ( void ) oc_filter ( f , cur , max ) ;\n }\n break ;\n default : break ;\n }\n return rc ;\n }"}
{"idx": 742, "target": 0, "func": "static int dissect_h245_T_encryptionAlgorithmID ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_encryptionAlgorithmID , T_encryptionAlgorithmID_sequence ) ;\n return offset ;\n }"}
{"idx": 743, "target": 0, "func": "static void y4m_422jpeg_420jpeg_helper ( unsigned char * _dst , const unsigned char * _src , int _c_w , int _c_h ) {\n int y ;\n int x ;\n for ( x = 0 ;\n x < _c_w ;\n x ++ ) {\n for ( y = 0 ;\n y < OC_MINI ( _c_h , 2 ) ;\n y += 2 ) {\n _dst [ ( y >> 1 ) * _c_w ] = OC_CLAMPI ( 0 , ( 64 * _src [ 0 ] + 78 * _src [ OC_MINI ( 1 , _c_h - 1 ) * _c_w ] - 17 * _src [ OC_MINI ( 2 , _c_h - 1 ) * _c_w ] + 3 * _src [ OC_MINI ( 3 , _c_h - 1 ) * _c_w ] + 64 ) >> 7 , 255 ) ;\n }\n for ( ;\n y < _c_h - 3 ;\n y += 2 ) {\n _dst [ ( y >> 1 ) * _c_w ] = OC_CLAMPI ( 0 , ( 3 * ( _src [ ( y - 2 ) * _c_w ] + _src [ ( y + 3 ) * _c_w ] ) - 17 * ( _src [ ( y - 1 ) * _c_w ] + _src [ ( y + 2 ) * _c_w ] ) + 78 * ( _src [ y * _c_w ] + _src [ ( y + 1 ) * _c_w ] ) + 64 ) >> 7 , 255 ) ;\n }\n for ( ;\n y < _c_h ;\n y += 2 ) {\n _dst [ ( y >> 1 ) * _c_w ] = OC_CLAMPI ( 0 , ( 3 * ( _src [ ( y - 2 ) * _c_w ] + _src [ ( _c_h - 1 ) * _c_w ] ) - 17 * ( _src [ ( y - 1 ) * _c_w ] + _src [ OC_MINI ( y + 2 , _c_h - 1 ) * _c_w ] ) + 78 * ( _src [ y * _c_w ] + _src [ OC_MINI ( y + 1 , _c_h - 1 ) * _c_w ] ) + 64 ) >> 7 , 255 ) ;\n }\n _src ++ ;\n _dst ++ ;\n }\n }"}
{"idx": 744, "target": 0, "func": "static int aes_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n int ret , mode ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n mode = EVP_CIPHER_CTX_mode ( ctx ) ;\n if ( ( mode == EVP_CIPH_ECB_MODE || mode == EVP_CIPH_CBC_MODE ) && ! enc ) {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_decrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n # endif }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CBC_MODE ) {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = ( cbc128_f ) bsaes_cbc_encrypt ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n }\n }\n else # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_encrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n else # endif # ifdef HWAES_ctr32_encrypt_blocks if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) HWAES_ctr32_encrypt_blocks ;\n else # endif ( void ) 0 ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CTR_MODE ) {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . ctr = ( ctr128_f ) bsaes_ctr32_encrypt_blocks ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n # ifdef AES_CTR_ASM if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) AES_ctr32_encrypt ;\n # endif }\n if ( ret < 0 ) {\n EVPerr ( EVP_F_AES_INIT_KEY , EVP_R_AES_KEY_SETUP_FAILED ) ;\n return 0 ;\n }\n return 1 ;\n }"}
{"idx": 745, "target": 0, "func": "static uint32_t U_CALLCONV offsetTOCEntryCount ( const UDataMemory * pData ) {\n int32_t retVal = 0 ;\n const UDataOffsetTOC * toc = ( UDataOffsetTOC * ) pData -> toc ;\n if ( toc != NULL ) {\n retVal = toc -> count ;\n }\n return retVal ;\n }"}
{"idx": 746, "target": 0, "func": "static void exsltSaxonEvaluateFunction ( xmlXPathParserContextPtr ctxt , int nargs ) {\n if ( nargs != 1 ) {\n xmlXPathSetArityError ( ctxt ) ;\n return ;\n }\n exsltSaxonExpressionFunction ( ctxt , 1 ) ;\n exsltSaxonEvalFunction ( ctxt , 1 ) ;\n }"}
{"idx": 747, "target": 0, "func": "int ttfcopyfile ( FILE * ttf , FILE * other , int pos , const char * tab_name ) {\n int ch ;\n int ret = 1 ;\n if ( ferror ( ttf ) || ferror ( other ) ) {\n IError ( \"Disk error of some nature. Perhaps no space on device?\\nGenerated font will be unusable\" ) ;\n }\n else if ( pos != ftell ( ttf ) ) {\n IError ( \"File Offset wrong for ttf table (%s), %d expected %d\" , tab_name , ftell ( ttf ) , pos ) ;\n }\n rewind ( other ) ;\n while ( ( ch = getc ( other ) ) != EOF ) putc ( ch , ttf ) ;\n if ( ferror ( other ) ) ret = 0 ;\n if ( fclose ( other ) ) ret = 0 ;\n return ( ret ) ;\n }"}
{"idx": 748, "target": 0, "func": "static void dtap_bcc_get_status ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n ELEM_OPT_TLV ( 0x17 , GSM_A_PDU_TYPE_COMMON , DE_MID , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 749, "target": 0, "func": "static enum fetch_step vbf_stp_fetchend ( struct worker * wrk , struct busyobj * bo ) {\n AZ ( bo -> vfc -> failed ) ;\n VFP_Close ( bo -> vfc ) ;\n AZ ( ObjSetU64 ( wrk , bo -> fetch_objcore , OA_LEN , bo -> fetch_objcore -> boc -> len_so_far ) ) ;\n if ( bo -> do_stream ) assert ( bo -> fetch_objcore -> boc -> state == BOS_STREAM ) ;\n else {\n assert ( bo -> fetch_objcore -> boc -> state == BOS_REQ_DONE ) ;\n HSH_Unbusy ( wrk , bo -> fetch_objcore ) ;\n }\n VDI_Finish ( bo -> wrk , bo ) ;\n ObjSetState ( wrk , bo -> fetch_objcore , BOS_FINISHED ) ;\n VSLb_ts_busyobj ( bo , \"BerespBody\" , W_TIM_real ( wrk ) ) ;\n if ( bo -> stale_oc != NULL ) HSH_Kill ( bo -> stale_oc ) ;\n return ( F_STP_DONE ) ;\n }"}
{"idx": 750, "target": 0, "func": "static void vc2_subband_dwt_haar ( VC2TransformContext * t , dwtcoef * data , ptrdiff_t stride , int width , int height ) {\n dwt_haar ( t , data , stride , width , height , 0 ) ;\n }"}
{"idx": 751, "target": 0, "func": "void ps2_mouse_fake_event ( void * opaque ) {\n PS2MouseState * s = opaque ;\n trace_ps2_mouse_fake_event ( opaque ) ;\n s -> mouse_dx ++ ;\n ps2_mouse_sync ( opaque ) ;\n }"}
{"idx": 752, "target": 0, "func": "void set_sys_var ( const char * data , u_long size , u_short def ) {\n set_var ( & ext_sys_var , data , size , def ) ;\n }"}
{"idx": 753, "target": 0, "func": "EXCLUSIVE_REGRESSION_TEST ( SDK_API_HttpParentProxySet_Fail ) ( RegressionTest * test , int level , int * pstatus ) {\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n if ( level < REGRESSION_TEST_EXTENDED ) {\n * pstatus = REGRESSION_TEST_NOT_RUN ;\n return ;\n }\n TSCont cont = TSContCreate ( parent_proxy_handler , TSMutexCreate ( ) ) ;\n if ( cont == nullptr ) {\n SDK_RPRINT ( test , \"TSHttpTxnParentProxySet\" , \"FailCase\" , TC_FAIL , \"Unable to create continuation\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n return ;\n }\n ParentTest * ptest = new ParentTest ( test , pstatus ) ;\n ptest -> testcase = \"FailCase\" ;\n ptest -> handler = parent_proxy_fail ;\n TSContDataSet ( cont , ptest ) ;\n TSHttpHookAdd ( TS_HTTP_READ_REQUEST_HDR_HOOK , cont ) ;\n ptest -> os = synserver_create ( SYNSERVER_LISTEN_PORT , TSContCreate ( synserver_vc_refuse , TSMutexCreate ( ) ) ) ;\n synserver_start ( ptest -> os ) ;\n TSContSchedule ( cont , 25 , TS_THREAD_POOL_DEFAULT ) ;\n }"}
{"idx": 754, "target": 0, "func": "static int fpreg_post_load ( void * opaque , int version ) {\n x86_FPReg_tmp * tmp = opaque ;\n tmp -> parent -> d = cpu_set_fp80 ( tmp -> tmp_mant , tmp -> tmp_exp ) ;\n return 0 ;\n }"}
{"idx": 755, "target": 1, "func": "static int ipvideo_decode_block_opcode_0xA ( IpvideoContext * s ) {\n int x , y ;\n unsigned char P [ 8 ] ;\n int flags = 0 ;\n bytestream2_get_buffer ( & s -> stream_ptr , P , 4 ) ;\n if ( P [ 0 ] <= P [ 1 ] ) {\n for ( y = 0 ;\n y < 16 ;\n y ++ ) {\n if ( ! ( y & 3 ) ) {\n if ( y ) bytestream2_get_buffer ( & s -> stream_ptr , P , 4 ) ;\n flags = bytestream2_get_le32 ( & s -> stream_ptr ) ;\n }\n for ( x = 0 ;\n x < 4 ;\n x ++ , flags >>= 2 ) * s -> pixel_ptr ++ = P [ flags & 0x03 ] ;\n s -> pixel_ptr += s -> stride - 4 ;\n if ( y == 7 ) s -> pixel_ptr -= 8 * s -> stride - 4 ;\n }\n }\n else {\n int vert ;\n uint64_t flags = bytestream2_get_le64 ( & s -> stream_ptr ) ;\n bytestream2_get_buffer ( & s -> stream_ptr , P + 4 , 4 ) ;\n vert = P [ 4 ] <= P [ 5 ] ;\n for ( y = 0 ;\n y < 16 ;\n y ++ ) {\n for ( x = 0 ;\n x < 4 ;\n x ++ , flags >>= 2 ) * s -> pixel_ptr ++ = P [ flags & 0x03 ] ;\n if ( vert ) {\n s -> pixel_ptr += s -> stride - 4 ;\n if ( y == 7 ) s -> pixel_ptr -= 8 * s -> stride - 4 ;\n }\n else if ( y & 1 ) s -> pixel_ptr += s -> line_inc ;\n if ( y == 7 ) {\n memcpy ( P , P + 4 , 4 ) ;\n flags = bytestream2_get_le64 ( & s -> stream_ptr ) ;\n }\n }\n }\n return 0 ;\n }"}
{"idx": 756, "target": 0, "func": "void message_decoder_decode_reset ( struct message_decoder_context * ctx ) {\n const char * error ;\n if ( ctx -> qp != NULL ) ( void ) qp_decoder_finish ( ctx -> qp , & error ) ;\n i_free_and_null ( ctx -> content_type ) ;\n i_free_and_null ( ctx -> content_charset ) ;\n ctx -> message_cte = MESSAGE_CTE_78BIT ;\n buffer_set_used_size ( ctx -> encoding_buf , 0 ) ;\n }"}
{"idx": 757, "target": 0, "func": "static const char * ultag_getExtlang ( const ULanguageTag * langtag , int32_t idx ) {\n if ( idx >= 0 && idx < MAXEXTLANG ) {\n return langtag -> extlang [ idx ] ;\n }\n return NULL ;\n }"}
{"idx": 758, "target": 0, "func": "static void reset_coders ( MSS3Context * ctx , int quality ) {\n int i , j ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n ctx -> btype [ i ] . last_type = SKIP_BLOCK ;\n for ( j = 0 ;\n j < 5 ;\n j ++ ) model_reset ( & ctx -> btype [ i ] . bt_model [ j ] ) ;\n ctx -> fill_coder [ i ] . fill_val = 0 ;\n model_reset ( & ctx -> fill_coder [ i ] . coef_model ) ;\n model256_reset ( & ctx -> image_coder [ i ] . esc_model ) ;\n model256_reset ( & ctx -> image_coder [ i ] . vec_entry_model ) ;\n model_reset ( & ctx -> image_coder [ i ] . vec_size_model ) ;\n for ( j = 0 ;\n j < 125 ;\n j ++ ) model_reset ( & ctx -> image_coder [ i ] . vq_model [ j ] ) ;\n if ( ctx -> dct_coder [ i ] . quality != quality ) {\n ctx -> dct_coder [ i ] . quality = quality ;\n ff_mss34_gen_quant_mat ( ctx -> dct_coder [ i ] . qmat , quality , ! i ) ;\n }\n memset ( ctx -> dct_coder [ i ] . prev_dc , 0 , sizeof ( * ctx -> dct_coder [ i ] . prev_dc ) * ctx -> dct_coder [ i ] . prev_dc_stride * ctx -> dct_coder [ i ] . prev_dc_height ) ;\n model_reset ( & ctx -> dct_coder [ i ] . dc_model ) ;\n model2_reset ( & ctx -> dct_coder [ i ] . sign_model ) ;\n model256_reset ( & ctx -> dct_coder [ i ] . ac_model ) ;\n if ( ctx -> haar_coder [ i ] . quality != quality ) {\n ctx -> haar_coder [ i ] . quality = quality ;\n ctx -> haar_coder [ i ] . scale = 17 - 7 * quality / 50 ;\n }\n model_reset ( & ctx -> haar_coder [ i ] . coef_hi_model ) ;\n model256_reset ( & ctx -> haar_coder [ i ] . coef_model ) ;\n }\n }"}
{"idx": 759, "target": 0, "func": "static void _clear_rpc_stats ( void ) {\n int i ;\n slurm_mutex_lock ( & rpc_mutex ) ;\n for ( i = 0 ;\n i < rpc_type_size ;\n i ++ ) {\n rpc_type_cnt [ i ] = 0 ;\n rpc_type_id [ i ] = 0 ;\n rpc_type_time [ i ] = 0 ;\n }\n for ( i = 0 ;\n i < rpc_user_size ;\n i ++ ) {\n rpc_user_cnt [ i ] = 0 ;\n rpc_user_id [ i ] = 0 ;\n rpc_user_time [ i ] = 0 ;\n }\n slurm_mutex_unlock ( & rpc_mutex ) ;\n }"}
{"idx": 760, "target": 0, "func": "void vp8_denoiser_set_parameters ( VP8_DENOISER * denoiser , int mode ) {\n assert ( mode > 0 ) ;\n if ( mode == 1 ) {\n denoiser -> denoiser_mode = kDenoiserOnYOnly ;\n }\n else if ( mode == 2 ) {\n denoiser -> denoiser_mode = kDenoiserOnYUV ;\n }\n else if ( mode == 3 ) {\n denoiser -> denoiser_mode = kDenoiserOnYUVAggressive ;\n }\n else {\n denoiser -> denoiser_mode = kDenoiserOnAdaptive ;\n }\n if ( denoiser -> denoiser_mode != kDenoiserOnYUVAggressive ) {\n denoiser -> denoise_pars . scale_sse_thresh = 1 ;\n denoiser -> denoise_pars . scale_motion_thresh = 8 ;\n denoiser -> denoise_pars . scale_increase_filter = 0 ;\n denoiser -> denoise_pars . denoise_mv_bias = 95 ;\n denoiser -> denoise_pars . pickmode_mv_bias = 100 ;\n denoiser -> denoise_pars . qp_thresh = 0 ;\n denoiser -> denoise_pars . consec_zerolast = UINT_MAX ;\n denoiser -> denoise_pars . spatial_blur = 0 ;\n }\n else {\n denoiser -> denoise_pars . scale_sse_thresh = 2 ;\n denoiser -> denoise_pars . scale_motion_thresh = 16 ;\n denoiser -> denoise_pars . scale_increase_filter = 1 ;\n denoiser -> denoise_pars . denoise_mv_bias = 60 ;\n denoiser -> denoise_pars . pickmode_mv_bias = 60 ;\n denoiser -> denoise_pars . qp_thresh = 100 ;\n denoiser -> denoise_pars . consec_zerolast = 10 ;\n denoiser -> denoise_pars . spatial_blur = 20 ;\n }\n }"}
{"idx": 761, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( RegisterProtocolHandlerBrowserTest , ContextMenuEntryAppearsForHandledUrls ) {\n scoped_ptr < TestRenderViewContextMenu > menu ( CreateContextMenu ( GURL ( \"http://www.google.com/\" ) ) ) ;\n ASSERT_FALSE ( menu -> IsItemPresent ( IDC_CONTENT_CONTEXT_OPENLINKWITH ) ) ;\n AddProtocolHandler ( std : : string ( \"web+search\" ) , GURL ( \"http://www.google.com/%s\" ) ) ;\n GURL url ( \"web+search:testing\" ) ;\n ProtocolHandlerRegistry * registry = ProtocolHandlerRegistryFactory : : GetForProfile ( browser ( ) -> profile ( ) ) ;\n ASSERT_EQ ( 1u , registry -> GetHandlersFor ( url . scheme ( ) ) . size ( ) ) ;\n menu . reset ( CreateContextMenu ( url ) ) ;\n ASSERT_TRUE ( menu -> IsItemPresent ( IDC_CONTENT_CONTEXT_OPENLINKWITH ) ) ;\n }"}
{"idx": 762, "target": 0, "func": "static void cirrus_bitblt_rop_nop ( CirrusVGAState * s , uint32_t dstaddr , uint32_t srcaddr , int dstpitch , int srcpitch , int bltwidth , int bltheight ) {\n }"}
{"idx": 763, "target": 0, "func": "static int rescale ( int val , int num , int denom ) {\n int64_t llnum = num ;\n int64_t llden = denom ;\n int64_t llval = val ;\n return ( int ) ( llval * llnum / llden ) ;\n }"}
{"idx": 764, "target": 0, "func": "TEST_F ( ScoredHistoryMatchTest , Scoring ) {\n base : : Time now = base : : Time : : NowFromSystemTime ( ) ;\n history : : URLRow row_a ( MakeURLRow ( \"http://fedcba\" , \"abcd bcd\" , 3 , 30 , 1 ) ) ;\n RowWordStarts word_starts_a ;\n PopulateWordStarts ( row_a , & word_starts_a ) ;\n WordStarts one_word_no_offset ( 1 , 0u ) ;\n VisitInfoVector visits_a = CreateVisitInfoVector ( 3 , 30 , now ) ;\n visits_a [ 0 ] . second = ui : : PAGE_TRANSITION_TYPED ;\n ScoredHistoryMatch scored_a ( row_a , visits_a , ASCIIToUTF16 ( \"abc\" ) , Make1Term ( \"abc\" ) , one_word_no_offset , word_starts_a , false , nullptr , now ) ;\n history : : URLRow row_b ( MakeURLRow ( \"http://abcdef\" , \"abcd bcd\" , 10 , 30 , 1 ) ) ;\n RowWordStarts word_starts_b ;\n PopulateWordStarts ( row_b , & word_starts_b ) ;\n VisitInfoVector visits_b = CreateVisitInfoVector ( 10 , 30 , now ) ;\n visits_b [ 0 ] . second = ui : : PAGE_TRANSITION_TYPED ;\n ScoredHistoryMatch scored_b ( row_b , visits_b , ASCIIToUTF16 ( \"abc\" ) , Make1Term ( \"abc\" ) , one_word_no_offset , word_starts_b , false , nullptr , now ) ;\n EXPECT_GT ( scored_b . raw_score , scored_a . raw_score ) ;\n history : : URLRow row_c ( MakeURLRow ( \"http://abcdef\" , \"abcd bcd\" , 3 , 10 , 1 ) ) ;\n RowWordStarts word_starts_c ;\n PopulateWordStarts ( row_c , & word_starts_c ) ;\n VisitInfoVector visits_c = CreateVisitInfoVector ( 3 , 10 , now ) ;\n visits_c [ 0 ] . second = ui : : PAGE_TRANSITION_TYPED ;\n ScoredHistoryMatch scored_c ( row_c , visits_c , ASCIIToUTF16 ( \"abc\" ) , Make1Term ( \"abc\" ) , one_word_no_offset , word_starts_c , false , nullptr , now ) ;\n EXPECT_GT ( scored_c . raw_score , scored_a . raw_score ) ;\n history : : URLRow row_d ( MakeURLRow ( \"http://abcdef\" , \"abcd bcd\" , 3 , 30 , 3 ) ) ;\n RowWordStarts word_starts_d ;\n PopulateWordStarts ( row_d , & word_starts_d ) ;\n VisitInfoVector visits_d = CreateVisitInfoVector ( 3 , 30 , now ) ;\n visits_d [ 0 ] . second = ui : : PAGE_TRANSITION_TYPED ;\n visits_d [ 1 ] . second = ui : : PAGE_TRANSITION_TYPED ;\n visits_d [ 2 ] . second = ui : : PAGE_TRANSITION_TYPED ;\n ScoredHistoryMatch scored_d ( row_d , visits_d , ASCIIToUTF16 ( \"abc\" ) , Make1Term ( \"abc\" ) , one_word_no_offset , word_starts_d , false , nullptr , now ) ;\n EXPECT_GT ( scored_d . raw_score , scored_a . raw_score ) ;\n history : : URLRow row_e ( MakeURLRow ( \"http://csi.csi.csi/csi_csi\" , \"CSI Guide to CSI Las Vegas, CSI New York, CSI Provo\" , 3 , 30 , 3 ) ) ;\n RowWordStarts word_starts_e ;\n PopulateWordStarts ( row_e , & word_starts_e ) ;\n const VisitInfoVector visits_e = visits_d ;\n ScoredHistoryMatch scored_e ( row_e , visits_e , ASCIIToUTF16 ( \"csi\" ) , Make1Term ( \"csi\" ) , one_word_no_offset , word_starts_e , false , nullptr , now ) ;\n EXPECT_LT ( scored_e . raw_score , 1400 ) ;\n ScoredHistoryMatch scored_f ( row_a , visits_a , ASCIIToUTF16 ( \"cd\" ) , Make1Term ( \"cd\" ) , one_word_no_offset , word_starts_a , false , nullptr , now ) ;\n EXPECT_EQ ( scored_f . raw_score , 0 ) ;\n }"}
{"idx": 765, "target": 0, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DIRECTORYSTRING ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DISPLAYTEXT ) DECLARE_ASN1_FUNCTIONS ( ASN1_PRINTABLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_T61STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_IA5STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_GENERALSTRING )"}
{"idx": 766, "target": 0, "func": "static int mp_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n MotionPixelsContext * mp = avctx -> priv_data ;\n GetBitContext gb ;\n int i , count1 , count2 , sz , ret ;\n if ( ( ret = ff_reget_buffer ( avctx , & mp -> frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n av_fast_malloc ( & mp -> bswapbuf , & mp -> bswapbuf_size , buf_size + FF_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( ! mp -> bswapbuf ) return AVERROR ( ENOMEM ) ;\n mp -> dsp . bswap_buf ( ( uint32_t * ) mp -> bswapbuf , ( const uint32_t * ) buf , buf_size / 4 ) ;\n if ( buf_size & 3 ) memcpy ( mp -> bswapbuf + ( buf_size & ~ 3 ) , buf + ( buf_size & ~ 3 ) , buf_size & 3 ) ;\n memset ( mp -> bswapbuf + buf_size , 0 , FF_INPUT_BUFFER_PADDING_SIZE ) ;\n init_get_bits ( & gb , mp -> bswapbuf , buf_size * 8 ) ;\n memset ( mp -> changes_map , 0 , avctx -> width * avctx -> height ) ;\n for ( i = ! ( avctx -> extradata [ 1 ] & 2 ) ;\n i < 2 ;\n ++ i ) {\n count1 = get_bits ( & gb , 12 ) ;\n count2 = get_bits ( & gb , 12 ) ;\n mp_read_changes_map ( mp , & gb , count1 , 8 , i ) ;\n mp_read_changes_map ( mp , & gb , count2 , 4 , i ) ;\n }\n mp -> codes_count = get_bits ( & gb , 4 ) ;\n if ( mp -> codes_count == 0 ) goto end ;\n if ( mp -> changes_map [ 0 ] == 0 ) {\n * ( uint16_t * ) mp -> frame . data [ 0 ] = get_bits ( & gb , 15 ) ;\n mp -> changes_map [ 0 ] = 1 ;\n }\n mp_read_codes_table ( mp , & gb ) ;\n sz = get_bits ( & gb , 18 ) ;\n if ( avctx -> extradata [ 0 ] != 5 ) sz += get_bits ( & gb , 18 ) ;\n if ( sz == 0 ) goto end ;\n if ( mp -> max_codes_bits <= 0 ) goto end ;\n if ( init_vlc ( & mp -> vlc , mp -> max_codes_bits , mp -> codes_count , & mp -> codes [ 0 ] . size , sizeof ( HuffCode ) , 1 , & mp -> codes [ 0 ] . code , sizeof ( HuffCode ) , 4 , 0 ) ) goto end ;\n mp_decode_frame_helper ( mp , & gb ) ;\n ff_free_vlc ( & mp -> vlc ) ;\n end : if ( ( ret = av_frame_ref ( data , & mp -> frame ) ) < 0 ) return ret ;\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 767, "target": 0, "func": "static inline void PushLZWStack ( LZWStack * stack_info , const size_t value ) {\n if ( stack_info -> index >= stack_info -> top ) return ;\n * stack_info -> index = value ;\n stack_info -> index ++ ;\n }"}
{"idx": 768, "target": 0, "func": "static void dtap_mm_auth_req ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n guint8 oct ;\n proto_tree * subtree ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_FALSE ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , curr_offset << 3 , 4 , ENC_BIG_ENDIAN ) ;\n subtree = proto_tree_add_subtree ( tree , tvb , curr_offset , 1 , ett_gsm_common_elem [ DE_CIPH_KEY_SEQ_NUM ] , NULL , val_to_str_ext_const ( DE_CIPH_KEY_SEQ_NUM , & gsm_common_elem_strings_ext , \"\" ) ) ;\n proto_tree_add_bits_item ( subtree , hf_gsm_a_spare_bits , tvb , ( curr_offset << 3 ) + 4 , 1 , ENC_BIG_ENDIAN ) ;\n switch ( oct & 0x07 ) {\n case 0x07 : proto_tree_add_uint_format_value ( subtree , hf_gsm_a_dtap_ciphering_key_sequence_number , tvb , curr_offset , 1 , oct , \"No key is available\" ) ;\n break ;\n default : proto_tree_add_item ( subtree , hf_gsm_a_dtap_ciphering_key_sequence_number , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n break ;\n }\n curr_offset ++ ;\n curr_len -- ;\n if ( ( signed ) curr_len <= 0 ) return ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_AUTH_PARAM_RAND , \" - UMTS challenge or GSM challenge\" ) ;\n ELEM_OPT_TLV ( 0x20 , GSM_A_PDU_TYPE_DTAP , DE_AUTH_PARAM_AUTN , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 769, "target": 0, "func": "static void Type_Text_Free ( struct _cms_typehandler_struct * self , void * Ptr ) {\n cmsMLU * mlu = ( cmsMLU * ) Ptr ;\n cmsMLUfree ( mlu ) ;\n return ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 770, "target": 0, "func": "static void restore_context ( VP9_COMP * cpi , int mi_row , int mi_col , ENTROPY_CONTEXT a [ 16 * MAX_MB_PLANE ] , ENTROPY_CONTEXT l [ 16 * MAX_MB_PLANE ] , PARTITION_CONTEXT sa [ 8 ] , PARTITION_CONTEXT sl [ 8 ] , BLOCK_SIZE bsize ) {\n MACROBLOCK * const x = & cpi -> mb ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n int p ;\n const int num_4x4_blocks_wide = num_4x4_blocks_wide_lookup [ bsize ] ;\n const int num_4x4_blocks_high = num_4x4_blocks_high_lookup [ bsize ] ;\n int mi_width = num_8x8_blocks_wide_lookup [ bsize ] ;\n int mi_height = num_8x8_blocks_high_lookup [ bsize ] ;\n for ( p = 0 ;\n p < MAX_MB_PLANE ;\n p ++ ) {\n vpx_memcpy ( xd -> above_context [ p ] + ( ( mi_col * 2 ) >> xd -> plane [ p ] . subsampling_x ) , a + num_4x4_blocks_wide * p , ( sizeof ( ENTROPY_CONTEXT ) * num_4x4_blocks_wide ) >> xd -> plane [ p ] . subsampling_x ) ;\n vpx_memcpy ( xd -> left_context [ p ] + ( ( mi_row & MI_MASK ) * 2 >> xd -> plane [ p ] . subsampling_y ) , l + num_4x4_blocks_high * p , ( sizeof ( ENTROPY_CONTEXT ) * num_4x4_blocks_high ) >> xd -> plane [ p ] . subsampling_y ) ;\n }\n vpx_memcpy ( xd -> above_seg_context + mi_col , sa , sizeof ( * xd -> above_seg_context ) * mi_width ) ;\n vpx_memcpy ( xd -> left_seg_context + ( mi_row & MI_MASK ) , sl , sizeof ( xd -> left_seg_context [ 0 ] ) * mi_height ) ;\n }"}
{"idx": 771, "target": 0, "func": "static void dissect_rtp_data ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , proto_tree * rtp_tree , int offset , unsigned int data_len , unsigned int data_reported_len , unsigned int payload_type ) {\n tvbuff_t * newtvb ;\n struct _rtp_conversation_info * p_conv_data = NULL ;\n gboolean must_desegment = FALSE ;\n rtp_private_conv_info * finfo = NULL ;\n rtp_multisegment_pdu * msp = NULL ;\n guint32 seqno ;\n p_conv_data = ( struct _rtp_conversation_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_rtp , 0 ) ;\n if ( p_conv_data != NULL ) finfo = p_conv_data -> rtp_conv_info ;\n if ( finfo == NULL || ! desegment_rtp ) {\n newtvb = tvb_new_subset ( tvb , offset , data_len , data_reported_len ) ;\n process_rtp_payload ( newtvb , pinfo , tree , rtp_tree , payload_type ) ;\n return ;\n }\n seqno = p_conv_data -> extended_seqno ;\n pinfo -> can_desegment = 2 ;\n pinfo -> desegment_offset = 0 ;\n pinfo -> desegment_len = 0 ;\n # ifdef DEBUG_FRAGMENTS g_debug ( \"%d: RTP Part of convo %d(%p);\n seqno %d\" , pinfo -> fd -> num , p_conv_data -> frame_number , p_conv_data , seqno ) ;\n # endif msp = ( rtp_multisegment_pdu * ) wmem_tree_lookup32_le ( finfo -> multisegment_pdus , seqno - 1 ) ;\n if ( msp && msp -> startseq < seqno && msp -> endseq >= seqno ) {\n guint32 fid = msp -> startseq ;\n fragment_head * fd_head ;\n # ifdef DEBUG_FRAGMENTS g_debug ( \"\\tContinues fragment %d\" , fid ) ;\n # endif fd_head = fragment_add_seq ( & rtp_reassembly_table , tvb , offset , pinfo , fid , NULL , seqno - msp -> startseq , data_len , FALSE , 0 ) ;\n newtvb = process_reassembled_data ( tvb , offset , pinfo , \"Reassembled RTP\" , fd_head , & rtp_fragment_items , NULL , tree ) ;\n # ifdef DEBUG_FRAGMENTS g_debug ( \"\\tFragment Coalesced;\n fd_head=%p, newtvb=%p (len %d)\" , fd_head , newtvb , newtvb ? tvb_reported_length ( newtvb ) : 0 ) ;\n # endif if ( newtvb != NULL ) {\n process_rtp_payload ( newtvb , pinfo , tree , rtp_tree , payload_type ) ;\n if ( pinfo -> desegment_len && pinfo -> desegment_offset == 0 ) {\n # ifdef DEBUG_FRAGMENTS g_debug ( \"\\tNo complete pdus in payload\" ) ;\n # endif fragment_set_partial_reassembly ( & rtp_reassembly_table , pinfo , fid , NULL ) ;\n msp -> endseq = MIN ( msp -> endseq , seqno ) + 1 ;\n }\n else {\n if ( pinfo -> desegment_len ) {\n must_desegment = TRUE ;\n }\n }\n }\n }\n else {\n # ifdef DEBUG_FRAGMENTS g_debug ( \"\\tRTP non-fragment payload\" ) ;\n # endif newtvb = tvb_new_subset ( tvb , offset , data_len , data_reported_len ) ;\n process_rtp_payload ( newtvb , pinfo , tree , rtp_tree , payload_type ) ;\n if ( pinfo -> desegment_len ) {\n must_desegment = TRUE ;\n }\n }\n if ( must_desegment ) {\n guint32 deseg_offset = pinfo -> desegment_offset ;\n guint32 frag_len = tvb_reported_length_remaining ( newtvb , deseg_offset ) ;\n fragment_head * fd_head = NULL ;\n # ifdef DEBUG_FRAGMENTS g_debug ( \"\\tRTP Must Desegment: tvb_len=%d ds_len=%d %d frag_len=%d ds_off=%d\" , tvb_reported_length ( newtvb ) , pinfo -> desegment_len , pinfo -> fd -> flags . visited , frag_len , deseg_offset ) ;\n # endif msp = wmem_new ( wmem_file_scope ( ) , rtp_multisegment_pdu ) ;\n msp -> startseq = seqno ;\n msp -> endseq = seqno + 1 ;\n wmem_tree_insert32 ( finfo -> multisegment_pdus , seqno , msp ) ;\n fd_head = fragment_add_seq ( & rtp_reassembly_table , newtvb , deseg_offset , pinfo , seqno , NULL , 0 , frag_len , TRUE , 0 ) ;\n if ( fd_head != NULL ) {\n if ( fd_head -> reassembled_in != 0 && ! ( fd_head -> flags & FD_PARTIAL_REASSEMBLY ) ) {\n proto_item * rtp_tree_item ;\n rtp_tree_item = proto_tree_add_uint ( tree , hf_rtp_reassembled_in , newtvb , deseg_offset , tvb_reported_length_remaining ( newtvb , deseg_offset ) , fd_head -> reassembled_in ) ;\n PROTO_ITEM_SET_GENERATED ( rtp_tree_item ) ;\n # ifdef DEBUG_FRAGMENTS g_debug ( \"\\tReassembled in %d\" , fd_head -> reassembled_in ) ;\n # endif }\n else {\n # ifdef DEBUG_FRAGMENTS g_debug ( \"\\tUnfinished fragment\" ) ;\n # endif proto_tree_add_text ( tree , tvb , deseg_offset , - 1 , \"RTP fragment, unfinished\" ) ;\n }\n }\n else {\n # ifdef DEBUG_FRAGMENTS g_debug ( \"\\tnew pdu\" ) ;\n # endif }\n if ( pinfo -> desegment_offset == 0 ) {\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"RTP\" ) ;\n col_set_str ( pinfo -> cinfo , COL_INFO , \"[RTP segment of a reassembled PDU]\" ) ;\n }\n }\n pinfo -> can_desegment = 0 ;\n pinfo -> desegment_offset = 0 ;\n pinfo -> desegment_len = 0 ;\n }"}
{"idx": 772, "target": 1, "func": "static inline int get_current_cpu ( ARMMPTimerState * s ) {\n CPUState * cpu_single_cpu = ENV_GET_CPU ( cpu_single_env ) ;\n if ( cpu_single_cpu -> cpu_index >= s -> num_cpu ) {\n hw_error ( \"arm_mptimer: num-cpu %d but this cpu is %d!\\n\" , s -> num_cpu , cpu_single_cpu -> cpu_index ) ;\n }\n return cpu_single_cpu -> cpu_index ;\n }"}
{"idx": 773, "target": 0, "func": "static int dissect_h225_EndpointIdentifier ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_BMPString ( tvb , offset , actx , tree , hf_index , 1 , 128 , FALSE ) ;\n return offset ;\n }"}
{"idx": 774, "target": 0, "func": "void spl_filesystem_object_construct ( INTERNAL_FUNCTION_PARAMETERS , long ctor_flags ) {\n spl_filesystem_object * intern ;\n char * path ;\n int parsed , len ;\n long flags ;\n zend_error_handling error_handling ;\n zend_replace_error_handling ( EH_THROW , spl_ce_UnexpectedValueException , & error_handling TSRMLS_CC ) ;\n if ( SPL_HAS_FLAG ( ctor_flags , DIT_CTOR_FLAGS ) ) {\n flags = SPL_FILE_DIR_KEY_AS_PATHNAME | SPL_FILE_DIR_CURRENT_AS_FILEINFO ;\n parsed = zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"s|l\" , & path , & len , & flags ) ;\n }\n else {\n flags = SPL_FILE_DIR_KEY_AS_PATHNAME | SPL_FILE_DIR_CURRENT_AS_SELF ;\n parsed = zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"s\" , & path , & len ) ;\n }\n if ( SPL_HAS_FLAG ( ctor_flags , SPL_FILE_DIR_SKIPDOTS ) ) {\n flags |= SPL_FILE_DIR_SKIPDOTS ;\n }\n if ( SPL_HAS_FLAG ( ctor_flags , SPL_FILE_DIR_UNIXPATHS ) ) {\n flags |= SPL_FILE_DIR_UNIXPATHS ;\n }\n if ( parsed == FAILURE ) {\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n return ;\n }\n if ( ! len ) {\n zend_throw_exception_ex ( spl_ce_RuntimeException , 0 TSRMLS_CC , \"Directory name must not be empty.\" ) ;\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n return ;\n }\n intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( intern -> _path ) {\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"Directory object is already initialized\" ) ;\n return ;\n }\n intern -> flags = flags ;\n # ifdef HAVE_GLOB if ( SPL_HAS_FLAG ( ctor_flags , DIT_CTOR_GLOB ) && strstr ( path , \"glob://\" ) != path ) {\n spprintf ( & path , 0 , \"glob://%s\" , path ) ;\n spl_filesystem_dir_open ( intern , path TSRMLS_CC ) ;\n efree ( path ) ;\n }\n else # endif {\n spl_filesystem_dir_open ( intern , path TSRMLS_CC ) ;\n }\n intern -> u . dir . is_recursive = instanceof_function ( intern -> std . ce , spl_ce_RecursiveDirectoryIterator TSRMLS_CC ) ? 1 : 0 ;\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n }"}
{"idx": 775, "target": 0, "func": "static int checkintf ( struct usb_dev_state * ps , unsigned int ifnum ) {\n if ( ps -> dev -> state != USB_STATE_CONFIGURED ) return - EHOSTUNREACH ;\n if ( ifnum >= 8 * sizeof ( ps -> ifclaimed ) ) return - EINVAL ;\n if ( test_bit ( ifnum , & ps -> ifclaimed ) ) return 0 ;\n dev_warn ( & ps -> dev -> dev , \"usbfs: process %d (%s) did not claim \" \"interface %u before use\\n\" , task_pid_nr ( current ) , current -> comm , ifnum ) ;\n return claimintf ( ps , ifnum ) ;\n }"}
{"idx": 776, "target": 0, "func": "static void pmac_ide_transfer ( DBDMA_io * io ) {\n MACIOIDEState * m = io -> opaque ;\n IDEState * s = idebus_active_if ( & m -> bus ) ;\n MACIO_DPRINTF ( \"\\n\" ) ;\n s -> io_buffer_size = 0 ;\n if ( s -> drive_kind == IDE_CD ) {\n if ( s -> lba == - 1 ) {\n s -> io_buffer_size = MIN ( io -> len , s -> packet_transfer_size ) ;\n block_acct_start ( blk_get_stats ( s -> blk ) , & s -> acct , s -> io_buffer_size , BLOCK_ACCT_READ ) ;\n MACIO_DPRINTF ( \"non-block ATAPI DMA transfer size: %d\\n\" , s -> io_buffer_size ) ;\n cpu_physical_memory_write ( io -> addr , s -> io_buffer , s -> io_buffer_size ) ;\n ide_atapi_cmd_ok ( s ) ;\n m -> dma_active = false ;\n MACIO_DPRINTF ( \"end of non-block ATAPI DMA transfer\\n\" ) ;\n block_acct_done ( blk_get_stats ( s -> blk ) , & s -> acct ) ;\n io -> dma_end ( io ) ;\n return ;\n }\n block_acct_start ( blk_get_stats ( s -> blk ) , & s -> acct , io -> len , BLOCK_ACCT_READ ) ;\n pmac_ide_atapi_transfer_cb ( io , 0 ) ;\n return ;\n }\n switch ( s -> dma_cmd ) {\n case IDE_DMA_READ : block_acct_start ( blk_get_stats ( s -> blk ) , & s -> acct , io -> len , BLOCK_ACCT_READ ) ;\n break ;\n case IDE_DMA_WRITE : block_acct_start ( blk_get_stats ( s -> blk ) , & s -> acct , io -> len , BLOCK_ACCT_WRITE ) ;\n break ;\n default : break ;\n }\n io -> requests ++ ;\n pmac_ide_transfer_cb ( io , 0 ) ;\n }"}
{"idx": 777, "target": 0, "func": "static int dissect_CPMSetCatState ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree _U_ , gboolean in _U_ , void * data _U_ ) {\n col_append_str ( pinfo -> cinfo , COL_INFO , \"SetCatState\" ) ;\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 778, "target": 0, "func": "void * xcalloc ( size_t num , size_t size ) {\n size_t res ;\n if ( check_mul_overflow ( num , size , & res ) ) abort ( ) ;\n void * ptr ;\n ptr = malloc ( res ) ;\n if ( ptr ) {\n memset ( ptr , '\\0' , ( res ) ) ;\n }\n return ptr ;\n }"}
{"idx": 779, "target": 0, "func": "static void * Type_ColorantOrderType_Read ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number * nItems , cmsUInt32Number SizeOfTag ) {\n cmsUInt8Number * ColorantOrder ;\n cmsUInt32Number Count ;\n * nItems = 0 ;\n if ( ! _cmsReadUInt32Number ( io , & Count ) ) return NULL ;\n if ( Count > cmsMAXCHANNELS ) return NULL ;\n ColorantOrder = ( cmsUInt8Number * ) _cmsCalloc ( self -> ContextID , cmsMAXCHANNELS , sizeof ( cmsUInt8Number ) ) ;\n if ( ColorantOrder == NULL ) return NULL ;\n memset ( ColorantOrder , 0xFF , cmsMAXCHANNELS * sizeof ( cmsUInt8Number ) ) ;\n if ( io -> Read ( io , ColorantOrder , sizeof ( cmsUInt8Number ) , Count ) != Count ) {\n _cmsFree ( self -> ContextID , ( void * ) ColorantOrder ) ;\n return NULL ;\n }\n * nItems = 1 ;\n return ( void * ) ColorantOrder ;\n cmsUNUSED_PARAMETER ( SizeOfTag ) ;\n }"}
{"idx": 780, "target": 0, "func": "static int dissect_notify_field ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep , guint16 type , guint16 * data ) {\n guint16 field ;\n const char * str ;\n offset = dissect_ndr_uint16 ( tvb , offset , pinfo , NULL , di , drep , hf_notify_field , & field ) ;\n switch ( type ) {\n case PRINTER_NOTIFY_TYPE : str = val_to_str_ext_const ( field , & printer_notify_option_data_vals_ext , \"Unknown\" ) ;\n break ;\n case JOB_NOTIFY_TYPE : str = val_to_str_ext_const ( field , & job_notify_option_data_vals_ext , \"Unknown\" ) ;\n break ;\n default : str = \"Unknown notify type\" ;\n break ;\n }\n proto_tree_add_uint_format_value ( tree , hf_notify_field , tvb , offset - 2 , 2 , field , \"%s (%d)\" , str , field ) ;\n if ( data ) * data = field ;\n return offset ;\n }"}
{"idx": 781, "target": 0, "func": "int X509_REQ_extension_nid ( int req_nid ) {\n int i , nid ;\n for ( i = 0 ;\n ;\n i ++ ) {\n nid = ext_nids [ i ] ;\n if ( nid == NID_undef ) return 0 ;\n else if ( req_nid == nid ) return 1 ;\n }\n }"}
{"idx": 782, "target": 0, "func": "static int dissect_sercosiii_link_error_count_p1p2 ( packet_info * pinfo , proto_tree * tree , proto_item * item , tvbuff_t * tvb , int offset , int total_len ) {\n if ( total_len < 4 ) {\n expert_add_info ( pinfo , item , & ei_mal_sercosiii_link_error_count_p1p2 ) ;\n return total_len ;\n }\n proto_tree_add_item ( tree , hf_cip_sercosiii_link_error_count_p1 , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_cip_sercosiii_link_error_count_p2 , tvb , offset + 2 , 2 , ENC_LITTLE_ENDIAN ) ;\n return 4 ;\n }"}
{"idx": 783, "target": 0, "func": "static void pnm_get ( PNMContext * sc , char * str , int buf_size ) {\n char * s ;\n int c ;\n for ( ;\n ;\n ) {\n c = * sc -> bytestream ++ ;\n if ( c == '#' ) {\n do {\n c = * sc -> bytestream ++ ;\n }\n while ( c != '\\n' && sc -> bytestream < sc -> bytestream_end ) ;\n }\n else if ( ! pnm_space ( c ) ) {\n break ;\n }\n }\n s = str ;\n while ( sc -> bytestream < sc -> bytestream_end && ! pnm_space ( c ) ) {\n if ( ( s - str ) < buf_size - 1 ) * s ++ = c ;\n c = * sc -> bytestream ++ ;\n }\n * s = '\\0' ;\n }"}
{"idx": 784, "target": 0, "func": "int qemuMonitorTextCreateSnapshot ( qemuMonitorPtr mon , const char * name ) {\n char * cmd = NULL ;\n char * reply = NULL ;\n int ret = - 1 ;\n char * safename ;\n if ( ! ( safename = qemuMonitorEscapeArg ( name ) ) || virAsprintf ( & cmd , \"savevm \\\"%s\\\"\" , safename ) < 0 ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"failed to take snapshot using command '%s'\" ) , cmd ) ;\n goto cleanup ;\n }\n if ( strstr ( reply , \"Error while creating snapshot\" ) != NULL ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"Failed to take snapshot: %s\" ) , reply ) ;\n goto cleanup ;\n }\n else if ( strstr ( reply , \"No block device can accept snapshots\" ) != NULL ) {\n qemuReportError ( VIR_ERR_OPERATION_INVALID , \"%s\" , _ ( \"this domain does not have a device to take snapshots\" ) ) ;\n goto cleanup ;\n }\n else if ( strstr ( reply , \"Could not open VM state file\" ) != NULL ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , reply ) ;\n goto cleanup ;\n }\n else if ( strstr ( reply , \"Error\" ) != NULL && strstr ( reply , \"while writing VM\" ) != NULL ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , reply ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( safename ) ;\n VIR_FREE ( cmd ) ;\n VIR_FREE ( reply ) ;\n return ret ;\n }"}
{"idx": 785, "target": 0, "func": "static inline void tm2_low_res_block ( TM2Context * ctx , AVFrame * pic , int bx , int by ) {\n int i ;\n int t1 , t2 ;\n int deltas [ 16 ] ;\n TM2_INIT_POINTERS ( ) ;\n deltas [ 0 ] = GET_TOK ( ctx , TM2_C_LO ) ;\n deltas [ 1 ] = deltas [ 2 ] = deltas [ 3 ] = 0 ;\n tm2_low_chroma ( U , Ustride , clast , ctx -> CD , deltas , bx ) ;\n deltas [ 0 ] = GET_TOK ( ctx , TM2_C_LO ) ;\n deltas [ 1 ] = deltas [ 2 ] = deltas [ 3 ] = 0 ;\n tm2_low_chroma ( V , Vstride , clast + 2 , ctx -> CD + 2 , deltas , bx ) ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) deltas [ i ] = 0 ;\n deltas [ 0 ] = GET_TOK ( ctx , TM2_L_LO ) ;\n deltas [ 2 ] = GET_TOK ( ctx , TM2_L_LO ) ;\n deltas [ 8 ] = GET_TOK ( ctx , TM2_L_LO ) ;\n deltas [ 10 ] = GET_TOK ( ctx , TM2_L_LO ) ;\n if ( bx > 0 ) last [ 0 ] = ( last [ - 1 ] - ctx -> D [ 0 ] - ctx -> D [ 1 ] - ctx -> D [ 2 ] - ctx -> D [ 3 ] + last [ 1 ] ) >> 1 ;\n else last [ 0 ] = ( last [ 1 ] - ctx -> D [ 0 ] - ctx -> D [ 1 ] - ctx -> D [ 2 ] - ctx -> D [ 3 ] ) >> 1 ;\n last [ 2 ] = ( last [ 1 ] + last [ 3 ] ) >> 1 ;\n t1 = ctx -> D [ 0 ] + ctx -> D [ 1 ] ;\n ctx -> D [ 0 ] = t1 >> 1 ;\n ctx -> D [ 1 ] = t1 - ( t1 >> 1 ) ;\n t2 = ctx -> D [ 2 ] + ctx -> D [ 3 ] ;\n ctx -> D [ 2 ] = t2 >> 1 ;\n ctx -> D [ 3 ] = t2 - ( t2 >> 1 ) ;\n tm2_apply_deltas ( ctx , Y , Ystride , deltas , last ) ;\n }"}
{"idx": 786, "target": 0, "func": "static int64_t encode_inter_mb_segment ( VP9_COMP * cpi , MACROBLOCK * x , int64_t best_yrd , int i , int * labelyrate , int64_t * distortion , int64_t * sse , ENTROPY_CONTEXT * ta , ENTROPY_CONTEXT * tl , int mi_row , int mi_col ) {\n int k ;\n MACROBLOCKD * xd = & x -> e_mbd ;\n struct macroblockd_plane * const pd = & xd -> plane [ 0 ] ;\n struct macroblock_plane * const p = & x -> plane [ 0 ] ;\n MODE_INFO * const mi = xd -> mi [ 0 ] . src_mi ;\n const BLOCK_SIZE plane_bsize = get_plane_block_size ( mi -> mbmi . sb_type , pd ) ;\n const int width = 4 * num_4x4_blocks_wide_lookup [ plane_bsize ] ;\n const int height = 4 * num_4x4_blocks_high_lookup [ plane_bsize ] ;\n int idx , idy ;\n const uint8_t * const src = & p -> src . buf [ raster_block_offset ( BLOCK_8X8 , i , p -> src . stride ) ] ;\n uint8_t * const dst = & pd -> dst . buf [ raster_block_offset ( BLOCK_8X8 , i , pd -> dst . stride ) ] ;\n int64_t thisdistortion = 0 , thissse = 0 ;\n int thisrate = 0 , ref ;\n const scan_order * so = & vp9_default_scan_orders [ TX_4X4 ] ;\n const int is_compound = has_second_ref ( & mi -> mbmi ) ;\n const InterpKernel * kernel = vp9_get_interp_kernel ( mi -> mbmi . interp_filter ) ;\n for ( ref = 0 ;\n ref < 1 + is_compound ;\n ++ ref ) {\n const uint8_t * pre = & pd -> pre [ ref ] . buf [ raster_block_offset ( BLOCK_8X8 , i , pd -> pre [ ref ] . stride ) ] ;\n vp9_build_inter_predictor ( pre , pd -> pre [ ref ] . stride , dst , pd -> dst . stride , & mi -> bmi [ i ] . as_mv [ ref ] . as_mv , & xd -> block_refs [ ref ] -> sf , width , height , ref , kernel , MV_PRECISION_Q3 , mi_col * MI_SIZE + 4 * ( i % 2 ) , mi_row * MI_SIZE + 4 * ( i / 2 ) ) ;\n }\n vp9_subtract_block ( height , width , raster_block_offset_int16 ( BLOCK_8X8 , i , p -> src_diff ) , 8 , src , p -> src . stride , dst , pd -> dst . stride ) ;\n k = i ;\n for ( idy = 0 ;\n idy < height / 4 ;\n ++ idy ) {\n for ( idx = 0 ;\n idx < width / 4 ;\n ++ idx ) {\n int64_t ssz , rd , rd1 , rd2 ;\n tran_low_t * coeff ;\n k += ( idy * 2 + idx ) ;\n coeff = BLOCK_OFFSET ( p -> coeff , k ) ;\n x -> fwd_txm4x4 ( raster_block_offset_int16 ( BLOCK_8X8 , k , p -> src_diff ) , coeff , 8 ) ;\n vp9_regular_quantize_b_4x4 ( x , 0 , k , so -> scan , so -> iscan ) ;\n thisdistortion += vp9_block_error ( coeff , BLOCK_OFFSET ( pd -> dqcoeff , k ) , 16 , & ssz ) ;\n thissse += ssz ;\n thisrate += cost_coeffs ( x , 0 , k , ta + ( k & 1 ) , tl + ( k >> 1 ) , TX_4X4 , so -> scan , so -> neighbors , cpi -> sf . use_fast_coef_costing ) ;\n rd1 = RDCOST ( x -> rdmult , x -> rddiv , thisrate , thisdistortion >> 2 ) ;\n rd2 = RDCOST ( x -> rdmult , x -> rddiv , 0 , thissse >> 2 ) ;\n rd = MIN ( rd1 , rd2 ) ;\n if ( rd >= best_yrd ) return INT64_MAX ;\n }\n }\n * distortion = thisdistortion >> 2 ;\n * labelyrate = thisrate ;\n * sse = thissse >> 2 ;\n return RDCOST ( x -> rdmult , x -> rddiv , * labelyrate , * distortion ) ;\n }"}
{"idx": 787, "target": 0, "func": "TSAction TSCacheScan ( TSCont contp , TSCacheKey key , int KB_per_second ) {\n sdk_assert ( sdk_sanity_check_iocore_structure ( contp ) == TS_SUCCESS ) ;\n FORCE_PLUGIN_SCOPED_MUTEX ( contp ) ;\n INKContInternal * i = ( INKContInternal * ) contp ;\n if ( key ) {\n CacheInfo * info = ( CacheInfo * ) key ;\n return ( TSAction ) cacheProcessor . scan ( i , info -> hostname , info -> len , KB_per_second ) ;\n }\n return reinterpret_cast < TSAction > ( cacheProcessor . scan ( i , nullptr , 0 , KB_per_second ) ) ;\n }"}
{"idx": 788, "target": 0, "func": "static int VoIPcalls_packet ( void * ptr _U_ , packet_info * pinfo , epan_dissect_t * edt _U_ , const void * VoIPinfo ) {\n voip_calls_tapinfo_t * tapinfo = & the_tapinfo_struct ;\n voip_calls_info_t * callsinfo = NULL ;\n voip_calls_info_t * tmp_listinfo ;\n GList * list = NULL ;\n const voip_packet_info_t * pi = ( const voip_packet_info_t * ) VoIPinfo ;\n if ( pi -> call_id ) list = g_list_first ( tapinfo -> callsinfo_list ) ;\n while ( list ) {\n tmp_listinfo = ( voip_calls_info_t * ) list -> data ;\n if ( tmp_listinfo -> protocol == VOIP_COMMON ) {\n if ( ! strcmp ( pi -> call_id , tmp_listinfo -> call_id ) ) {\n callsinfo = ( voip_calls_info_t * ) ( list -> data ) ;\n break ;\n }\n }\n list = g_list_next ( list ) ;\n }\n if ( callsinfo == NULL ) {\n callsinfo = ( voip_calls_info_t * ) g_malloc0 ( sizeof ( voip_calls_info_t ) ) ;\n callsinfo -> call_active_state = pi -> call_active_state ;\n callsinfo -> call_state = pi -> call_state ;\n callsinfo -> call_id = g_strdup ( ( pi -> call_id ) ? pi -> call_id : \"\" ) ;\n callsinfo -> from_identity = g_strdup ( ( pi -> from_identity ) ? pi -> from_identity : \"\" ) ;\n callsinfo -> to_identity = g_strdup ( ( pi -> to_identity ) ? pi -> to_identity : \"\" ) ;\n COPY_ADDRESS ( & ( callsinfo -> initial_speaker ) , & ( pinfo -> src ) ) ;\n callsinfo -> selected = FALSE ;\n callsinfo -> start_fd = pinfo -> fd ;\n callsinfo -> start_rel_ts = pinfo -> rel_ts ;\n callsinfo -> protocol = VOIP_COMMON ;\n callsinfo -> protocol_name = g_strdup ( ( pi -> protocol_name ) ? pi -> protocol_name : \"\" ) ;\n callsinfo -> call_comment = g_strdup ( ( pi -> call_comment ) ? pi -> call_comment : \"\" ) ;\n callsinfo -> prot_info = NULL ;\n callsinfo -> free_prot_info = NULL ;\n callsinfo -> call_num = tapinfo -> ncalls ++ ;\n callsinfo -> npackets = 0 ;\n tapinfo -> callsinfo_list = g_list_prepend ( tapinfo -> callsinfo_list , callsinfo ) ;\n }\n callsinfo -> call_active_state = pi -> call_active_state ;\n if ( ( callsinfo -> call_state != VOIP_COMPLETED ) && ( pi -> call_state == VOIP_COMPLETED ) ) tapinfo -> completed_calls ++ ;\n if ( pi -> call_state != VOIP_NO_STATE ) callsinfo -> call_state = pi -> call_state ;\n if ( pi -> call_comment ) {\n g_free ( callsinfo -> call_comment ) ;\n callsinfo -> call_comment = g_strdup ( pi -> call_comment ) ;\n }\n callsinfo -> stop_fd = pinfo -> fd ;\n callsinfo -> stop_rel_ts = pinfo -> rel_ts ;\n ++ ( callsinfo -> npackets ) ;\n ++ ( tapinfo -> npackets ) ;\n add_to_graph ( tapinfo , pinfo , ( pi -> frame_label ) ? pi -> frame_label : \"VoIP msg\" , pi -> frame_comment , callsinfo -> call_num , & ( pinfo -> src ) , & ( pinfo -> dst ) , 1 ) ;\n tapinfo -> redraw = TRUE ;\n return 1 ;\n }"}
{"idx": 789, "target": 0, "func": "static char * ext_t_2_wml_10 ( tvbuff_t * tvb , guint32 value , guint32 str_tbl ) {\n char * str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"Variable substitution - no transformation: '%s'\" , tvb_get_const_stringz ( tvb , str_tbl + value , NULL ) ) ;\n return str ;\n }"}
{"idx": 790, "target": 0, "func": "static int jbig2_decode_generic_template3_TPGDON ( Jbig2Ctx * ctx , Jbig2Segment * segment , const Jbig2GenericRegionParams * params , Jbig2ArithState * as , Jbig2Image * image , Jbig2ArithCx * GB_stats ) {\n const int GBW = image -> width ;\n const int GBH = image -> height ;\n uint32_t CONTEXT ;\n int x , y ;\n bool bit ;\n int LTP = 0 ;\n for ( y = 0 ;\n y < GBH ;\n y ++ ) {\n bit = jbig2_arith_decode ( as , & GB_stats [ 0x0195 ] ) ;\n if ( bit < 0 ) return - 1 ;\n LTP ^= bit ;\n if ( ! LTP ) {\n for ( x = 0 ;\n x < GBW ;\n x ++ ) {\n CONTEXT = jbig2_image_get_pixel ( image , x - 1 , y ) ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 2 , y ) << 1 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 3 , y ) << 2 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 4 , y ) << 3 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x + params -> gbat [ 0 ] , y + params -> gbat [ 1 ] ) << 4 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x + 1 , y - 1 ) << 5 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x , y - 1 ) << 6 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 1 , y - 1 ) << 7 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 2 , y - 1 ) << 8 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 3 , y - 1 ) << 9 ;\n bit = jbig2_arith_decode ( as , & GB_stats [ CONTEXT ] ) ;\n if ( bit < 0 ) return - 1 ;\n jbig2_image_set_pixel ( image , x , y , bit ) ;\n }\n }\n else {\n copy_prev_row ( image , y ) ;\n }\n }\n return 0 ;\n }"}
{"idx": 791, "target": 0, "func": "static void DangerousDownloadValidated ( JNIEnv * env , const JavaParamRef < jclass > & clazz , const JavaParamRef < jobject > & tab , jint download_id , jboolean accept ) {\n TabAndroid * tab_android = TabAndroid : : GetNativeTab ( env , tab ) ;\n DownloadControllerAndroid : : Get ( ) -> DangerousDownloadValidated ( tab_android -> web_contents ( ) , download_id , accept ) ;\n }"}
{"idx": 792, "target": 1, "func": "static void free_frame_buffer ( MpegEncContext * s , Picture * pic ) {\n if ( s -> codec_id != AV_CODEC_ID_WMV3IMAGE && s -> codec_id != AV_CODEC_ID_VC1IMAGE && s -> codec_id != AV_CODEC_ID_MSS2 ) ff_thread_release_buffer ( s -> avctx , & pic -> f ) ;\n else avcodec_default_release_buffer ( s -> avctx , & pic -> f ) ;\n av_freep ( & pic -> hwaccel_picture_private ) ;\n }"}
{"idx": 793, "target": 0, "func": "static int qemuAgentCommand ( qemuAgentPtr mon , virJSONValuePtr cmd , virJSONValuePtr * reply , bool needReply , int seconds ) {\n int ret = - 1 ;\n qemuAgentMessage msg ;\n char * cmdstr = NULL ;\n int await_event = mon -> await_event ;\n * reply = NULL ;\n if ( ! mon -> running ) {\n virReportError ( VIR_ERR_AGENT_UNRESPONSIVE , \"%s\" , _ ( \"Guest agent disappeared while executing command\" ) ) ;\n return - 1 ;\n }\n if ( qemuAgentGuestSync ( mon ) < 0 ) return - 1 ;\n memset ( & msg , 0 , sizeof ( msg ) ) ;\n if ( ! ( cmdstr = virJSONValueToString ( cmd , false ) ) ) goto cleanup ;\n if ( virAsprintf ( & msg . txBuffer , \"%s\" LINE_ENDING , cmdstr ) < 0 ) goto cleanup ;\n msg . txLength = strlen ( msg . txBuffer ) ;\n VIR_DEBUG ( \"Send command '%s' for write, seconds = %d\" , cmdstr , seconds ) ;\n ret = qemuAgentSend ( mon , & msg , seconds ) ;\n VIR_DEBUG ( \"Receive command reply ret=%d rxObject=%p\" , ret , msg . rxObject ) ;\n if ( ret == 0 ) {\n if ( ! msg . rxObject ) {\n if ( await_event && ! needReply ) {\n VIR_DEBUG ( \"Woken up by event %d\" , await_event ) ;\n }\n else {\n if ( mon -> running ) virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"Missing monitor reply object\" ) ) ;\n else virReportError ( VIR_ERR_AGENT_UNRESPONSIVE , \"%s\" , _ ( \"Guest agent disappeared while executing command\" ) ) ;\n ret = - 1 ;\n }\n }\n else {\n * reply = msg . rxObject ;\n ret = qemuAgentCheckError ( cmd , * reply ) ;\n }\n }\n cleanup : VIR_FREE ( cmdstr ) ;\n VIR_FREE ( msg . txBuffer ) ;\n return ret ;\n }"}
{"idx": 794, "target": 0, "func": "static void dissect_zcl_appl_ctrl_attr_func ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n guint8 func_data_type ;\n guint16 func_id ;\n func_id = tvb_get_letohs ( tvb , * offset ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_appl_ctrl_attr_func_id , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_item_append_text ( tree , \", %s\" , val_to_str_ext_const ( func_id , & zbee_zcl_appl_ctrl_attr_names_ext , \"Reserved\" ) ) ;\n func_data_type = tvb_get_guint8 ( tvb , * offset ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_appl_ctrl_attr_func_data_type , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n dissect_zcl_appl_ctrl_attr_data ( tree , tvb , offset , func_id , func_data_type ) ;\n }"}
{"idx": 795, "target": 0, "func": "static guint32 get_uint_value ( proto_tree * tree , tvbuff_t * tvb , gint offset , gint length , const guint encoding ) {\n guint32 value ;\n gboolean length_error ;\n switch ( length ) {\n case 1 : value = tvb_get_guint8 ( tvb , offset ) ;\n break ;\n case 2 : value = ( encoding & ENC_LITTLE_ENDIAN ) ? tvb_get_letohs ( tvb , offset ) : tvb_get_ntohs ( tvb , offset ) ;\n break ;\n case 3 : value = ( encoding & ENC_LITTLE_ENDIAN ) ? tvb_get_letoh24 ( tvb , offset ) : tvb_get_ntoh24 ( tvb , offset ) ;\n break ;\n case 4 : value = ( encoding & ENC_LITTLE_ENDIAN ) ? tvb_get_letohl ( tvb , offset ) : tvb_get_ntohl ( tvb , offset ) ;\n break ;\n default : if ( length < 1 ) {\n length_error = TRUE ;\n value = 0 ;\n }\n else {\n length_error = FALSE ;\n value = ( encoding & ENC_LITTLE_ENDIAN ) ? tvb_get_letohl ( tvb , offset ) : tvb_get_ntohl ( tvb , offset ) ;\n }\n report_type_length_mismatch ( tree , \"an unsigned integer\" , length , length_error ) ;\n break ;\n }\n return value ;\n }"}
{"idx": 796, "target": 0, "func": "static int SpoolssGetPrinterDataEx_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ;\n char * key_name , * value_name ;\n proto_item * hidden_item ;\n hidden_item = proto_tree_add_uint ( tree , hf_printerdata , tvb , offset , 0 , 1 ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , NULL , NULL , FALSE , FALSE ) ;\n key_name = NULL ;\n offset = dissect_ndr_cvstring ( tvb , offset , pinfo , tree , di , drep , sizeof ( guint16 ) , hf_printerdata_key , TRUE , & key_name ) ;\n value_name = NULL ;\n offset = dissect_ndr_cvstring ( tvb , offset , pinfo , tree , di , drep , sizeof ( guint16 ) , hf_printerdata_value , TRUE , & value_name ) ;\n if ( ! pinfo -> fd -> flags . visited ) {\n if ( ! dcv -> se_data ) {\n dcv -> se_data = wmem_strdup_printf ( wmem_file_scope ( ) , \"%s==%s\" , key_name ? key_name : \"\" , value_name ? value_name : \"\" ) ;\n }\n }\n if ( dcv -> se_data ) col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , ( char * ) dcv -> se_data ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_needed , NULL ) ;\n return offset ;\n }"}
{"idx": 797, "target": 0, "func": "static guint16 compute_key_id ( tvbuff_t * tvb , int offset , int size , guint8 algo ) {\n guint32 ac ;\n guint8 c1 , c2 ;\n DISSECTOR_ASSERT ( size >= 4 ) ;\n switch ( algo ) {\n case DNS_ALGO_RSAMD5 : return ( guint16 ) ( tvb_get_guint8 ( tvb , offset + size - 3 ) << 8 ) + tvb_get_guint8 ( tvb , offset + size - 2 ) ;\n default : for ( ac = 0 ;\n size > 1 ;\n size -= 2 , offset += 2 ) {\n c1 = tvb_get_guint8 ( tvb , offset ) ;\n c2 = tvb_get_guint8 ( tvb , offset + 1 ) ;\n ac += ( c1 << 8 ) + c2 ;\n }\n if ( size > 0 ) {\n c1 = tvb_get_guint8 ( tvb , offset ) ;\n ac += c1 << 8 ;\n }\n ac += ( ac >> 16 ) & 0xffff ;\n return ( guint16 ) ( ac & 0xffff ) ;\n }\n }"}
{"idx": 798, "target": 0, "func": "static int dissect_h245_V75Parameters ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_V75Parameters , V75Parameters_sequence ) ;\n return offset ;\n }"}
{"idx": 799, "target": 0, "func": "static bool contain_context_dependent_node_walker ( Node * node , int * flags ) {\n if ( node == NULL ) return false ;\n if ( IsA ( node , CaseTestExpr ) ) return ! ( * flags & CCDN_IN_CASEEXPR ) ;\n if ( IsA ( node , CaseExpr ) ) {\n CaseExpr * caseexpr = ( CaseExpr * ) node ;\n if ( caseexpr -> arg ) {\n int save_flags = * flags ;\n bool res ;\n * flags |= CCDN_IN_CASEEXPR ;\n res = expression_tree_walker ( node , contain_context_dependent_node_walker , ( void * ) flags ) ;\n * flags = save_flags ;\n return res ;\n }\n }\n return expression_tree_walker ( node , contain_context_dependent_node_walker , ( void * ) flags ) ;\n }"}
{"idx": 800, "target": 0, "func": "static PyObject * string__format__ ( PyObject * self , PyObject * args ) {\n PyObject * format_spec ;\n PyObject * result = NULL ;\n PyObject * tmp = NULL ;\n if ( ! PyArg_ParseTuple ( args , \"O:__format__\" , & format_spec ) ) goto done ;\n if ( ! ( PyString_Check ( format_spec ) || PyUnicode_Check ( format_spec ) ) ) {\n PyErr_Format ( PyExc_TypeError , \"__format__ arg must be str \" \"or unicode, not %s\" , Py_TYPE ( format_spec ) -> tp_name ) ;\n goto done ;\n }\n tmp = PyObject_Str ( format_spec ) ;\n if ( tmp == NULL ) goto done ;\n format_spec = tmp ;\n result = _PyBytes_FormatAdvanced ( self , PyString_AS_STRING ( format_spec ) , PyString_GET_SIZE ( format_spec ) ) ;\n done : Py_XDECREF ( tmp ) ;\n return result ;\n }"}
{"idx": 801, "target": 0, "func": "static void h245_add_label ( guint32 new_frame_num , const gchar * frame_label , const gchar * comment ) {\n h245_free_labels ( new_frame_num ) ;\n h245_labels . frame_num = new_frame_num ;\n h245_labels . labels [ h245_labels . labels_count ] . frame_label = g_strdup ( frame_label ) ;\n h245_labels . labels [ h245_labels . labels_count ] . comment = g_strdup ( comment ) ;\n if ( h245_labels . labels_count < ( H245_MAX - 1 ) ) h245_labels . labels_count ++ ;\n }"}
{"idx": 802, "target": 0, "func": "static int dissect_s_supervisor_exception_detail_warning ( packet_info * pinfo , proto_tree * tree , proto_item * item , tvbuff_t * tvb , int offset , int total_len ) {\n proto_item * pi ;\n proto_tree * item_tree ;\n int total_size = 0 , size ;\n item_tree = proto_tree_add_subtree ( tree , tvb , offset , 1 , ett_exception_detail_warning_common , & pi , \"Common Exception Detail\" ) ;\n size = dissect_s_supervisor_exception_detail ( item_tree , pi , tvb , offset , hf_cip_ssupervisor_exception_detail_warning_ced_size , hf_cip_ssupervisor_exception_detail_warning_ced_detail ) ;\n if ( size == 0 ) {\n expert_add_info ( pinfo , item , & ei_mal_ssupervisor_detail_warning_ced ) ;\n return total_len ;\n }\n total_size += size ;\n item_tree = proto_tree_add_subtree ( tree , tvb , offset , 1 , ett_exception_detail_warning_device , & pi , \"Device Exception Detail\" ) ;\n size = dissect_s_supervisor_exception_detail ( item_tree , pi , tvb , offset , hf_cip_ssupervisor_exception_detail_warning_ded_size , hf_cip_ssupervisor_exception_detail_warning_ded_detail ) ;\n if ( size == 0 ) {\n expert_add_info ( pinfo , item , & ei_mal_ssupervisor_detail_warning_ded ) ;\n return total_len ;\n }\n total_size += size ;\n item_tree = proto_tree_add_subtree ( tree , tvb , offset , 1 , ett_exception_detail_warning_manufacturer , & pi , \"Manufacturer Exception Detail\" ) ;\n size = dissect_s_supervisor_exception_detail ( item_tree , pi , tvb , offset , hf_cip_ssupervisor_exception_detail_warning_med_size , hf_cip_ssupervisor_exception_detail_warning_med_detail ) ;\n if ( size == 0 ) {\n expert_add_info ( pinfo , item , & ei_mal_ssupervisor_detail_warning_med ) ;\n return total_len ;\n }\n total_size += size ;\n return total_size ;\n }"}
{"idx": 803, "target": 0, "func": "static int dissect_rsl_ie_phy_ctx ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_item * ti ;\n proto_tree * ie_tree ;\n guint length ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_PHY_CTX ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_ie_phy_ctx , & ti , \"Physical Context IE \" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n length = tvb_get_guint8 ( tvb , offset ) ;\n proto_item_set_len ( ti , length + 2 ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_length , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_phy_ctx , tvb , offset , length , ENC_NA ) ;\n offset = offset + length ;\n return offset ;\n }"}
{"idx": 804, "target": 0, "func": "static bfd_boolean symbolsrec_write_object_contents ( bfd * abfd ) {\n return internal_srec_write_object_contents ( abfd , 1 ) ;\n }"}
{"idx": 805, "target": 0, "func": "static bool read_init_file ( char * file_name ) {\n MYSQL_FILE * file ;\n DBUG_ENTER ( \"read_init_file\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"name: %s\" , file_name ) ) ;\n if ( ! ( file = mysql_file_fopen ( key_file_init , file_name , O_RDONLY , MYF ( MY_WME ) ) ) ) DBUG_RETURN ( TRUE ) ;\n bootstrap ( file ) ;\n mysql_file_fclose ( file , MYF ( MY_WME ) ) ;\n DBUG_RETURN ( FALSE ) ;\n }"}
{"idx": 806, "target": 0, "func": "static int evport_del ( void * arg , struct event * ev ) {\n struct evport_data * evpd = arg ;\n struct fd_info * fdi ;\n int i ;\n int associated = 1 ;\n check_evportop ( evpd ) ;\n if ( ev -> ev_events & EV_SIGNAL ) {\n return ( evsignal_del ( ev ) ) ;\n }\n if ( evpd -> ed_nevents < ev -> ev_fd ) {\n return ( - 1 ) ;\n }\n for ( i = 0 ;\n i < EVENTS_PER_GETN ;\n ++ i ) {\n if ( evpd -> ed_pending [ i ] == ev -> ev_fd ) {\n associated = 0 ;\n break ;\n }\n }\n fdi = & evpd -> ed_fds [ ev -> ev_fd ] ;\n if ( ev -> ev_events & EV_READ ) fdi -> fdi_revt = NULL ;\n if ( ev -> ev_events & EV_WRITE ) fdi -> fdi_wevt = NULL ;\n if ( associated ) {\n if ( ! FDI_HAS_EVENTS ( fdi ) && port_dissociate ( evpd -> ed_port , PORT_SOURCE_FD , ev -> ev_fd ) == - 1 ) {\n if ( errno != EBADFD ) {\n event_warn ( \"port_dissociate\" ) ;\n return ( - 1 ) ;\n }\n }\n else {\n if ( FDI_HAS_EVENTS ( fdi ) ) {\n return ( reassociate ( evpd , fdi , ev -> ev_fd ) ) ;\n }\n }\n }\n else {\n if ( fdi -> fdi_revt == NULL && fdi -> fdi_wevt == NULL ) {\n evpd -> ed_pending [ i ] = - 1 ;\n }\n }\n return 0 ;\n }"}
{"idx": 807, "target": 1, "func": "static int mp_decode_frame ( MPADecodeContext * s , OUT_INT * * samples , const uint8_t * buf , int buf_size ) {\n int i , nb_frames , ch , ret ;\n OUT_INT * samples_ptr ;\n init_get_bits ( & s -> gb , buf + HEADER_SIZE , ( buf_size - HEADER_SIZE ) * 8 ) ;\n if ( s -> error_protection ) skip_bits ( & s -> gb , 16 ) ;\n switch ( s -> layer ) {\n case 1 : s -> avctx -> frame_size = 384 ;\n nb_frames = mp_decode_layer1 ( s ) ;\n break ;\n case 2 : s -> avctx -> frame_size = 1152 ;\n nb_frames = mp_decode_layer2 ( s ) ;\n break ;\n case 3 : s -> avctx -> frame_size = s -> lsf ? 576 : 1152 ;\n default : nb_frames = mp_decode_layer3 ( s ) ;\n if ( nb_frames < 0 ) return nb_frames ;\n s -> last_buf_size = 0 ;\n if ( s -> in_gb . buffer ) {\n align_get_bits ( & s -> gb ) ;\n i = get_bits_left ( & s -> gb ) >> 3 ;\n if ( i >= 0 && i <= BACKSTEP_SIZE ) {\n memmove ( s -> last_buf , s -> gb . buffer + ( get_bits_count ( & s -> gb ) >> 3 ) , i ) ;\n s -> last_buf_size = i ;\n }\n else av_log ( s -> avctx , AV_LOG_ERROR , \"invalid old backstep %d\\n\" , i ) ;\n s -> gb = s -> in_gb ;\n s -> in_gb . buffer = NULL ;\n }\n align_get_bits ( & s -> gb ) ;\n assert ( ( get_bits_count ( & s -> gb ) & 7 ) == 0 ) ;\n i = get_bits_left ( & s -> gb ) >> 3 ;\n if ( i < 0 || i > BACKSTEP_SIZE || nb_frames < 0 ) {\n if ( i < 0 ) av_log ( s -> avctx , AV_LOG_ERROR , \"invalid new backstep %d\\n\" , i ) ;\n i = FFMIN ( BACKSTEP_SIZE , buf_size - HEADER_SIZE ) ;\n }\n assert ( i <= buf_size - HEADER_SIZE && i >= 0 ) ;\n memcpy ( s -> last_buf + s -> last_buf_size , s -> gb . buffer + buf_size - HEADER_SIZE - i , i ) ;\n s -> last_buf_size += i ;\n }\n if ( ! samples ) {\n av_assert0 ( s -> frame != NULL ) ;\n s -> frame -> nb_samples = s -> avctx -> frame_size ;\n if ( ( ret = ff_get_buffer ( s -> avctx , s -> frame ) ) < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n samples = ( OUT_INT * * ) s -> frame -> extended_data ;\n }\n for ( ch = 0 ;\n ch < s -> nb_channels ;\n ch ++ ) {\n int sample_stride ;\n if ( s -> avctx -> sample_fmt == OUT_FMT_P ) {\n samples_ptr = samples [ ch ] ;\n sample_stride = 1 ;\n }\n else {\n samples_ptr = samples [ 0 ] + ch ;\n sample_stride = s -> nb_channels ;\n }\n for ( i = 0 ;\n i < nb_frames ;\n i ++ ) {\n RENAME ( ff_mpa_synth_filter ) ( & s -> mpadsp , s -> synth_buf [ ch ] , & ( s -> synth_buf_offset [ ch ] ) , RENAME ( ff_mpa_synth_window ) , & s -> dither_state , samples_ptr , sample_stride , s -> sb_samples [ ch ] [ i ] ) ;\n samples_ptr += 32 * sample_stride ;\n }\n }\n return nb_frames * 32 * sizeof ( OUT_INT ) * s -> nb_channels ;\n }"}
{"idx": 808, "target": 0, "func": "static cmsBool WriteCLUT ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt8Number Precision , cmsStage * mpe ) {\n cmsUInt8Number gridPoints [ cmsMAXCHANNELS ] ;\n cmsUInt32Number i ;\n _cmsStageCLutData * CLUT = ( _cmsStageCLutData * ) mpe -> Data ;\n if ( CLUT -> HasFloatValues ) {\n cmsSignalError ( self -> ContextID , cmsERROR_NOT_SUITABLE , \"Cannot save floating point data, CLUT are 8 or 16 bit only\" ) ;\n return FALSE ;\n }\n memset ( gridPoints , 0 , sizeof ( gridPoints ) ) ;\n for ( i = 0 ;\n i < ( cmsUInt32Number ) CLUT -> Params -> nInputs ;\n i ++ ) gridPoints [ i ] = ( cmsUInt8Number ) CLUT -> Params -> nSamples [ i ] ;\n if ( ! io -> Write ( io , cmsMAXCHANNELS * sizeof ( cmsUInt8Number ) , gridPoints ) ) return FALSE ;\n if ( ! _cmsWriteUInt8Number ( io , ( cmsUInt8Number ) Precision ) ) return FALSE ;\n if ( ! _cmsWriteUInt8Number ( io , 0 ) ) return FALSE ;\n if ( ! _cmsWriteUInt8Number ( io , 0 ) ) return FALSE ;\n if ( ! _cmsWriteUInt8Number ( io , 0 ) ) return FALSE ;\n if ( Precision == 1 ) {\n for ( i = 0 ;\n i < CLUT -> nEntries ;\n i ++ ) {\n if ( ! _cmsWriteUInt8Number ( io , FROM_16_TO_8 ( CLUT -> Tab . T [ i ] ) ) ) return FALSE ;\n }\n }\n else if ( Precision == 2 ) {\n if ( ! _cmsWriteUInt16Array ( io , CLUT -> nEntries , CLUT -> Tab . T ) ) return FALSE ;\n }\n else {\n cmsSignalError ( self -> ContextID , cmsERROR_UNKNOWN_EXTENSION , \"Unknown precision of '%d'\" , Precision ) ;\n return FALSE ;\n }\n if ( ! _cmsWriteAlignment ( io ) ) return FALSE ;\n return TRUE ;\n }"}
{"idx": 809, "target": 0, "func": "static int update_frames ( AVCodecContext * avctx ) {\n Vp3DecodeContext * s = avctx -> priv_data ;\n int ret = 0 ;\n ff_thread_release_buffer ( avctx , & s -> last_frame ) ;\n ret = ff_thread_ref_frame ( & s -> last_frame , & s -> current_frame ) ;\n if ( ret < 0 ) goto fail ;\n if ( s -> keyframe ) {\n ff_thread_release_buffer ( avctx , & s -> golden_frame ) ;\n ret = ff_thread_ref_frame ( & s -> golden_frame , & s -> current_frame ) ;\n }\n fail : ff_thread_release_buffer ( avctx , & s -> current_frame ) ;\n return ret ;\n }"}
{"idx": 810, "target": 0, "func": "static int h264_handle_packet ( AVFormatContext * ctx , PayloadContext * data , AVStream * st , AVPacket * pkt , uint32_t * timestamp , const uint8_t * buf , int len , uint16_t seq , int flags ) {\n uint8_t nal ;\n uint8_t type ;\n int result = 0 ;\n if ( ! len ) {\n av_log ( ctx , AV_LOG_ERROR , \"Empty H.264 RTP packet\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n nal = buf [ 0 ] ;\n type = nal & 0x1f ;\n if ( type >= 1 && type <= 23 ) type = 1 ;\n switch ( type ) {\n case 0 : case 1 : if ( ( result = av_new_packet ( pkt , len + sizeof ( start_sequence ) ) ) < 0 ) return result ;\n memcpy ( pkt -> data , start_sequence , sizeof ( start_sequence ) ) ;\n memcpy ( pkt -> data + sizeof ( start_sequence ) , buf , len ) ;\n COUNT_NAL_TYPE ( data , nal ) ;\n break ;\n case 24 : buf ++ ;\n len -- ;\n result = ff_h264_handle_aggregated_packet ( ctx , data , pkt , buf , len , 0 , NAL_COUNTERS , NAL_MASK ) ;\n break ;\n case 25 : case 26 : case 27 : case 29 : avpriv_report_missing_feature ( ctx , \"RTP H.264 NAL unit type %d\" , type ) ;\n result = AVERROR_PATCHWELCOME ;\n break ;\n case 28 : result = h264_handle_packet_fu_a ( ctx , data , pkt , buf , len , NAL_COUNTERS , NAL_MASK ) ;\n break ;\n case 30 : case 31 : default : av_log ( ctx , AV_LOG_ERROR , \"Undefined type (%d)\\n\" , type ) ;\n result = AVERROR_INVALIDDATA ;\n break ;\n }\n pkt -> stream_index = st -> index ;\n return result ;\n }"}
{"idx": 811, "target": 0, "func": "static void xps_draw_linear_gradient ( xps_document * doc , const fz_matrix * ctm , const fz_rect * area , struct stop * stops , int count , fz_xml * root , int spread ) {\n float x0 , y0 , x1 , y1 ;\n int i , mi , ma ;\n float dx , dy , x , y , k ;\n fz_point p1 , p2 ;\n fz_matrix inv ;\n fz_rect local_area = * area ;\n char * start_point_att = fz_xml_att ( root , \"StartPoint\" ) ;\n char * end_point_att = fz_xml_att ( root , \"EndPoint\" ) ;\n x0 = y0 = 0 ;\n x1 = y1 = 1 ;\n if ( start_point_att ) xps_parse_point ( start_point_att , & x0 , & y0 ) ;\n if ( end_point_att ) xps_parse_point ( end_point_att , & x1 , & y1 ) ;\n p1 . x = x0 ;\n p1 . y = y0 ;\n p2 . x = x1 ;\n p2 . y = y1 ;\n fz_transform_rect ( & local_area , fz_invert_matrix ( & inv , ctm ) ) ;\n x = p2 . x - p1 . x ;\n y = p2 . y - p1 . y ;\n k = ( ( local_area . x0 - p1 . x ) * x + ( local_area . y0 - p1 . y ) * y ) / ( x * x + y * y ) ;\n mi = floorf ( k ) ;\n ma = ceilf ( k ) ;\n k = ( ( local_area . x1 - p1 . x ) * x + ( local_area . y0 - p1 . y ) * y ) / ( x * x + y * y ) ;\n mi = fz_mini ( mi , floorf ( k ) ) ;\n ma = fz_maxi ( ma , ceilf ( k ) ) ;\n k = ( ( local_area . x0 - p1 . x ) * x + ( local_area . y1 - p1 . y ) * y ) / ( x * x + y * y ) ;\n mi = fz_mini ( mi , floorf ( k ) ) ;\n ma = fz_maxi ( ma , ceilf ( k ) ) ;\n k = ( ( local_area . x1 - p1 . x ) * x + ( local_area . y1 - p1 . y ) * y ) / ( x * x + y * y ) ;\n mi = fz_mini ( mi , floorf ( k ) ) ;\n ma = fz_maxi ( ma , ceilf ( k ) ) ;\n dx = x1 - x0 ;\n dy = y1 - y0 ;\n if ( spread == SPREAD_REPEAT ) {\n for ( i = mi ;\n i < ma ;\n i ++ ) xps_draw_one_linear_gradient ( doc , ctm , stops , count , 0 , x0 + i * dx , y0 + i * dy , x1 + i * dx , y1 + i * dy ) ;\n }\n else if ( spread == SPREAD_REFLECT ) {\n if ( ( mi % 2 ) != 0 ) mi -- ;\n for ( i = mi ;\n i < ma ;\n i += 2 ) {\n xps_draw_one_linear_gradient ( doc , ctm , stops , count , 0 , x0 + i * dx , y0 + i * dy , x1 + i * dx , y1 + i * dy ) ;\n xps_draw_one_linear_gradient ( doc , ctm , stops , count , 0 , x0 + ( i + 2 ) * dx , y0 + ( i + 2 ) * dy , x1 + i * dx , y1 + i * dy ) ;\n }\n }\n else {\n xps_draw_one_linear_gradient ( doc , ctm , stops , count , 1 , x0 , y0 , x1 , y1 ) ;\n }\n }"}
{"idx": 812, "target": 0, "func": "extern int main ( int argc , const char * argv [ ] ) {\n UDataMemory * result = NULL ;\n UErrorCode status = U_ZERO_ERROR ;\n uint16_t intValue = 0 ;\n char * string = NULL ;\n uint16_t * intPointer = NULL ;\n const void * dataMemory = NULL ;\n char curPathBuffer [ 1024 ] ;\n # ifdef WIN32 char * currdir = _getcwd ( NULL , 0 ) ;\n # else char * currdir = getcwd ( NULL , 0 ) ;\n # endif strcpy ( curPathBuffer , currdir ) ;\n result = udata_openChoice ( curPathBuffer , DATA_TYPE , DATA_NAME , isAcceptable , NULL , & status ) ;\n if ( currdir != NULL ) {\n free ( currdir ) ;\n }\n if ( U_FAILURE ( status ) ) {\n printf ( \"Failed to open data file example.dat in %s with error number %d\\n\" , curPathBuffer , status ) ;\n return - 1 ;\n }\n dataMemory = udata_getMemory ( result ) ;\n intPointer = ( uint16_t * ) dataMemory ;\n printf ( \"Read value %d from data file\\n\" , * intPointer ) ;\n string = ( char * ) ( intPointer + 1 ) ;\n printf ( \"Read string %s from data file\\n\" , string ) ;\n if ( U_SUCCESS ( status ) ) {\n udata_close ( result ) ;\n }\n return 0 ;\n }"}
{"idx": 813, "target": 0, "func": "static inline void uprv_arrayCopy ( const int32_t * src , int32_t * dst , int32_t count ) {\n uprv_memcpy ( dst , src , ( size_t ) count * sizeof ( * src ) ) ;\n }"}
{"idx": 814, "target": 0, "func": "static int assoccmp ( const void * t1 , const void * t2 ) {\n const struct association * ass1 = t1 ;\n const struct association * ass2 = t2 ;\n if ( ass1 -> assid < ass2 -> assid ) return - 1 ;\n if ( ass1 -> assid > ass2 -> assid ) return 1 ;\n return 0 ;\n }"}
{"idx": 815, "target": 0, "func": "static void add_istr_to_list ( gpointer key , gpointer value , gpointer callback_data ) {\n GList * * list ;\n list = callback_data ;\n * list = g_list_prepend ( * list , g_strdup ( key ) ) ;\n }"}
{"idx": 816, "target": 0, "func": "static void fill_noise_buffer ( MLPDecodeContext * m , unsigned int substr ) {\n SubStream * s = & m -> substream [ substr ] ;\n unsigned int i ;\n uint32_t seed = s -> noisegen_seed ;\n for ( i = 0 ;\n i < m -> access_unit_size_pow2 ;\n i ++ ) {\n uint8_t seed_shr15 = seed >> 15 ;\n m -> noise_buffer [ i ] = noise_table [ seed_shr15 ] ;\n seed = ( seed << 8 ) ^ seed_shr15 ^ ( seed_shr15 << 5 ) ;\n }\n s -> noisegen_seed = seed ;\n }"}
{"idx": 817, "target": 0, "func": "static int decode_unsigned_max ( struct vp9_read_bit_buffer * rb , int max ) {\n const int data = vp9_rb_read_literal ( rb , get_unsigned_bits ( max ) ) ;\n return data > max ? max : data ;\n }"}
{"idx": 818, "target": 1, "func": "void jpc_enc_tile_destroy ( jpc_enc_tile_t * tile ) {\n jpc_enc_tcmpt_t * tcmpt ;\n uint_fast16_t cmptno ;\n if ( tile -> tcmpts ) {\n for ( cmptno = 0 , tcmpt = tile -> tcmpts ;\n cmptno < tile -> numtcmpts ;\n ++ cmptno , ++ tcmpt ) {\n tcmpt_destroy ( tcmpt ) ;\n }\n jas_free ( tile -> tcmpts ) ;\n }\n if ( tile -> lyrsizes ) {\n jas_free ( tile -> lyrsizes ) ;\n }\n if ( tile -> pi ) {\n jpc_pi_destroy ( tile -> pi ) ;\n }\n jas_free ( tile ) ;\n }"}
{"idx": 819, "target": 0, "func": "SPL_METHOD ( SplFileInfo , getExtension ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char * fname = NULL ;\n const char * p ;\n size_t flen ;\n int path_len , idx ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n spl_filesystem_object_get_path ( intern , & path_len TSRMLS_CC ) ;\n if ( path_len && path_len < intern -> file_name_len ) {\n fname = intern -> file_name + path_len + 1 ;\n flen = intern -> file_name_len - ( path_len + 1 ) ;\n }\n else {\n fname = intern -> file_name ;\n flen = intern -> file_name_len ;\n }\n php_basename ( fname , flen , NULL , 0 , & fname , & flen TSRMLS_CC ) ;\n p = zend_memrchr ( fname , '.' , flen ) ;\n if ( p ) {\n idx = p - fname ;\n RETVAL_STRINGL ( fname + idx + 1 , flen - idx - 1 , 1 ) ;\n efree ( fname ) ;\n return ;\n }\n else {\n if ( fname ) {\n efree ( fname ) ;\n }\n RETURN_EMPTY_STRING ( ) ;\n }\n }"}
{"idx": 820, "target": 0, "func": "static inline int median4 ( int a , int b , int c , int d ) {\n if ( a < b ) {\n if ( c < d ) return ( FFMIN ( b , d ) + FFMAX ( a , c ) ) / 2 ;\n else return ( FFMIN ( b , c ) + FFMAX ( a , d ) ) / 2 ;\n }\n else {\n if ( c < d ) return ( FFMIN ( a , d ) + FFMAX ( b , c ) ) / 2 ;\n else return ( FFMIN ( a , c ) + FFMAX ( b , d ) ) / 2 ;\n }\n }"}
{"idx": 821, "target": 0, "func": "static int pdf_dsc_process ( gx_device_pdf * pdev , const gs_param_string_array * pma ) {\n int code = 0 ;\n uint i ;\n if ( ! pdev -> ParseDSCComments ) return 0 ;\n for ( i = 0 ;\n i + 1 < pma -> size && code >= 0 ;\n i += 2 ) {\n const gs_param_string * pkey = & pma -> data [ i ] ;\n gs_param_string * pvalue = ( gs_param_string * ) & pma -> data [ i + 1 ] ;\n const char * key ;\n int newsize ;\n if ( pdf_key_eq ( pkey , \"Creator\" ) && pdev -> CompatibilityLevel <= 1.7 ) {\n key = \"/Creator\" ;\n newsize = unescape_octals ( pdev , ( char * ) pvalue -> data , pvalue -> size ) ;\n code = cos_dict_put_c_key_string ( pdev -> Info , key , pvalue -> data , newsize ) ;\n continue ;\n }\n else if ( pdf_key_eq ( pkey , \"Title\" ) && pdev -> CompatibilityLevel <= 1.7 ) {\n key = \"/Title\" ;\n newsize = unescape_octals ( pdev , ( char * ) pvalue -> data , pvalue -> size ) ;\n code = cos_dict_put_c_key_string ( pdev -> Info , key , pvalue -> data , newsize ) ;\n continue ;\n }\n else if ( pdf_key_eq ( pkey , \"For\" ) && pdev -> CompatibilityLevel <= 1.7 ) {\n key = \"/Author\" ;\n newsize = unescape_octals ( pdev , ( char * ) pvalue -> data , pvalue -> size ) ;\n code = cos_dict_put_c_key_string ( pdev -> Info , key , pvalue -> data , newsize ) ;\n continue ;\n }\n else {\n pdf_page_dsc_info_t * ppdi ;\n char scan_buf [ 200 ] ;\n if ( ( ppdi = & pdev -> doc_dsc_info , pdf_key_eq ( pkey , \"Orientation\" ) ) || ( ppdi = & pdev -> page_dsc_info , pdf_key_eq ( pkey , \"PageOrientation\" ) ) ) {\n if ( pvalue -> size == 1 && pvalue -> data [ 0 ] >= '0' && pvalue -> data [ 0 ] <= '3' ) ppdi -> orientation = pvalue -> data [ 0 ] - '0' ;\n else ppdi -> orientation = - 1 ;\n }\n else if ( ( ppdi = & pdev -> doc_dsc_info , pdf_key_eq ( pkey , \"ViewingOrientation\" ) ) || ( ppdi = & pdev -> page_dsc_info , pdf_key_eq ( pkey , \"PageViewingOrientation\" ) ) ) {\n gs_matrix mat ;\n int orient ;\n if ( pvalue -> size >= sizeof ( scan_buf ) - 1 ) continue ;\n memcpy ( scan_buf , pvalue -> data , pvalue -> size ) ;\n scan_buf [ pvalue -> size ] = 0 ;\n if ( sscanf ( scan_buf , \"[%g %g %g %g]\" , & mat . xx , & mat . xy , & mat . yx , & mat . yy ) != 4 ) continue ;\n for ( orient = 0 ;\n orient < 4 ;\n ++ orient ) {\n if ( mat . xx == 1 && mat . xy == 0 && mat . yx == 0 && mat . yy == 1 ) break ;\n gs_matrix_rotate ( & mat , - 90.0 , & mat ) ;\n }\n if ( orient == 4 ) orient = - 1 ;\n ppdi -> viewing_orientation = orient ;\n }\n else {\n gs_rect box ;\n if ( pdf_key_eq ( pkey , \"EPSF\" ) ) {\n pdev -> is_EPS = ( pvalue -> size >= 1 && pvalue -> data [ 0 ] != '0' ) ;\n continue ;\n }\n if ( pdf_key_eq ( pkey , \"BoundingBox\" ) ) ppdi = & pdev -> doc_dsc_info ;\n else if ( pdf_key_eq ( pkey , \"PageBoundingBox\" ) ) ppdi = & pdev -> page_dsc_info ;\n else continue ;\n if ( pvalue -> size >= sizeof ( scan_buf ) - 1 ) continue ;\n memcpy ( scan_buf , pvalue -> data , pvalue -> size ) ;\n scan_buf [ pvalue -> size ] = 0 ;\n if ( sscanf ( scan_buf , \"[%lg %lg %lg %lg]\" , & box . p . x , & box . p . y , & box . q . x , & box . q . y ) != 4 ) continue ;\n ppdi -> bounding_box = box ;\n }\n continue ;\n }\n }\n return code ;\n }"}
{"idx": 822, "target": 0, "func": "static ossl_inline t2 * sk_ ## t1 ## _value ( const STACK_OF ( t1 ) * sk , int idx ) {\n return ( t2 * ) OPENSSL_sk_value ( ( const OPENSSL_STACK * ) sk , idx ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new ( sk_ ## t1 ## _compfunc compare ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new ( ( OPENSSL_sk_compfunc ) compare ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_null ( void ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_null ( ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_reserve ( sk_ ## t1 ## _compfunc compare , int n ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_reserve ( ( OPENSSL_sk_compfunc ) compare , n ) ;\n }\n static ossl_inline int sk_ ## t1 ## _reserve ( STACK_OF ( t1 ) * sk , int n ) {\n return OPENSSL_sk_reserve ( ( OPENSSL_STACK * ) sk , n ) ;\n }\n static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 823, "target": 0, "func": "static Py_ssize_t string_buffer_getsegcount ( PyStringObject * self , Py_ssize_t * lenp ) {\n if ( lenp ) * lenp = Py_SIZE ( self ) ;\n return 1 ;\n }"}
{"idx": 824, "target": 0, "func": "static gint nlm_msg_res_unmatched_equal ( gconstpointer k1 , gconstpointer k2 ) {\n const nlm_msg_res_unmatched_data * umd1 = ( const nlm_msg_res_unmatched_data * ) k1 ;\n const nlm_msg_res_unmatched_data * umd2 = ( const nlm_msg_res_unmatched_data * ) k2 ;\n if ( umd1 -> cookie_len != umd2 -> cookie_len ) {\n return 0 ;\n }\n return ( memcmp ( umd1 -> cookie , umd2 -> cookie , umd1 -> cookie_len ) == 0 ) ;\n }"}
{"idx": 825, "target": 0, "func": "static int archive_read_format_ar_bid ( struct archive_read * a , int best_bid ) {\n const void * h ;\n ( void ) best_bid ;\n if ( ( h = __archive_read_ahead ( a , 8 , NULL ) ) == NULL ) return ( - 1 ) ;\n if ( memcmp ( h , \"!<arch>\\n\" , 8 ) == 0 ) {\n return ( 64 ) ;\n }\n return ( - 1 ) ;\n }"}
{"idx": 826, "target": 0, "func": "static int find_base_uri ( ngx_http_request_t * r , const passenger_loc_conf_t * loc , ngx_str_t * found_base_uri ) {\n ngx_uint_t i ;\n ngx_str_t * base_uris , * base_uri , * uri ;\n if ( loc -> base_uris == NGX_CONF_UNSET_PTR ) {\n return 0 ;\n }\n else {\n base_uris = ( ngx_str_t * ) loc -> base_uris -> elts ;\n uri = & r -> uri ;\n for ( i = 0 ;\n i < loc -> base_uris -> nelts ;\n i ++ ) {\n base_uri = & base_uris [ i ] ;\n if ( base_uri -> len == 1 && base_uri -> data [ 0 ] == '/' ) {\n continue ;\n }\n if ( ( uri -> len == base_uri -> len && ngx_strncmp ( uri -> data , base_uri -> data , uri -> len ) == 0 ) || ( uri -> len > base_uri -> len && ngx_strncmp ( uri -> data , base_uri -> data , base_uri -> len ) == 0 && uri -> data [ base_uri -> len ] == ( u_char ) '/' ) ) {\n * found_base_uri = * base_uri ;\n return 1 ;\n }\n }\n return 0 ;\n }\n }"}
{"idx": 827, "target": 0, "func": "static PyObject * string_partition ( PyStringObject * self , PyObject * sep_obj ) {\n const char * sep ;\n Py_ssize_t sep_len ;\n if ( PyString_Check ( sep_obj ) ) {\n sep = PyString_AS_STRING ( sep_obj ) ;\n sep_len = PyString_GET_SIZE ( sep_obj ) ;\n }\n # ifdef Py_USING_UNICODE else if ( PyUnicode_Check ( sep_obj ) ) return PyUnicode_Partition ( ( PyObject * ) self , sep_obj ) ;\n # endif else if ( PyObject_AsCharBuffer ( sep_obj , & sep , & sep_len ) ) return NULL ;\n return stringlib_partition ( ( PyObject * ) self , PyString_AS_STRING ( self ) , PyString_GET_SIZE ( self ) , sep_obj , sep , sep_len ) ;\n }"}
{"idx": 828, "target": 0, "func": "extern rtype gnu_dev_ ## name proto __THROW __attribute_const__ ;\n # define __SYSMACROS_IMPL_TEMPL ( rtype , name , proto ) __extension__ __extern_inline __attribute_const__ rtype __NTH ( gnu_dev_ ## name proto ) __BEGIN_DECLS __SYSMACROS_DECLARE_MAJOR ( __SYSMACROS_DECL_TEMPL ) __SYSMACROS_DECLARE_MINOR ( __SYSMACROS_DECL_TEMPL )"}
{"idx": 829, "target": 1, "func": "static void initial_reordering_consonant_syllable ( const hb_ot_shape_plan_t * plan , hb_face_t * face , hb_buffer_t * buffer , unsigned int start , unsigned int end ) {\n const indic_shape_plan_t * indic_plan = ( const indic_shape_plan_t * ) plan -> data ;\n hb_glyph_info_t * info = buffer -> info ;\n unsigned int base = end ;\n bool has_reph = false ;\n {\n unsigned int limit = start ;\n if ( indic_plan -> config -> reph_pos != REPH_POS_DONT_CARE && indic_plan -> mask_array [ RPHF ] && start + 3 <= end && ( ( indic_plan -> config -> reph_mode == REPH_MODE_IMPLICIT && ! is_joiner ( info [ start + 2 ] ) ) || ( indic_plan -> config -> reph_mode == REPH_MODE_EXPLICIT && info [ start + 2 ] . indic_category ( ) == OT_ZWJ ) ) ) {\n hb_codepoint_t glyphs [ 3 ] = {\n info [ start ] . codepoint , info [ start + 1 ] . codepoint , indic_plan -> config -> reph_mode == REPH_MODE_EXPLICIT ? info [ start + 2 ] . codepoint : 0 }\n ;\n if ( indic_plan -> rphf . would_substitute ( glyphs , 2 , face ) || ( indic_plan -> config -> reph_mode == REPH_MODE_EXPLICIT && indic_plan -> rphf . would_substitute ( glyphs , 3 , face ) ) ) {\n limit += 2 ;\n while ( limit < end && is_joiner ( info [ limit ] ) ) limit ++ ;\n base = start ;\n has_reph = true ;\n }\n }\n else if ( indic_plan -> config -> reph_mode == REPH_MODE_LOG_REPHA && info [ start ] . indic_category ( ) == OT_Repha ) {\n limit += 1 ;\n while ( limit < end && is_joiner ( info [ limit ] ) ) limit ++ ;\n base = start ;\n has_reph = true ;\n }\n switch ( indic_plan -> config -> base_pos ) {\n default : assert ( false ) ;\n case BASE_POS_LAST : {\n unsigned int i = end ;\n bool seen_below = false ;\n do {\n i -- ;\n if ( is_consonant ( info [ i ] ) ) {\n if ( info [ i ] . indic_position ( ) != POS_BELOW_C && ( info [ i ] . indic_position ( ) != POS_POST_C || seen_below ) ) {\n base = i ;\n break ;\n }\n if ( info [ i ] . indic_position ( ) == POS_BELOW_C ) seen_below = true ;\n base = i ;\n }\n else {\n if ( start < i && info [ i ] . indic_category ( ) == OT_ZWJ && info [ i - 1 ] . indic_category ( ) == OT_H ) break ;\n }\n }\n while ( i > limit ) ;\n }\n break ;\n case BASE_POS_LAST_SINHALA : {\n if ( ! has_reph ) base = limit ;\n for ( unsigned int i = limit ;\n i < end ;\n i ++ ) if ( is_consonant ( info [ i ] ) ) {\n if ( limit < i && info [ i - 1 ] . indic_category ( ) == OT_ZWJ ) break ;\n else base = i ;\n }\n for ( unsigned int i = base + 1 ;\n i < end ;\n i ++ ) if ( is_consonant ( info [ i ] ) ) info [ i ] . indic_position ( ) = POS_BELOW_C ;\n }\n break ;\n case BASE_POS_FIRST : {\n assert ( indic_plan -> config -> reph_mode == REPH_MODE_VIS_REPHA ) ;\n assert ( ! has_reph ) ;\n base = start ;\n for ( unsigned int i = base + 1 ;\n i < end ;\n i ++ ) if ( is_consonant ( info [ i ] ) ) info [ i ] . indic_position ( ) = POS_BELOW_C ;\n }\n break ;\n }\n if ( has_reph && base == start && limit - base <= 2 ) {\n has_reph = false ;\n }\n }\n for ( unsigned int i = start ;\n i < base ;\n i ++ ) info [ i ] . indic_position ( ) = MIN ( POS_PRE_C , ( indic_position_t ) info [ i ] . indic_position ( ) ) ;\n if ( base < end ) info [ base ] . indic_position ( ) = POS_BASE_C ;\n for ( unsigned int i = base + 1 ;\n i < end ;\n i ++ ) if ( info [ i ] . indic_category ( ) == OT_M ) {\n for ( unsigned int j = i + 1 ;\n j < end ;\n j ++ ) if ( is_consonant ( info [ j ] ) ) {\n info [ j ] . indic_position ( ) = POS_FINAL_C ;\n break ;\n }\n break ;\n }\n if ( has_reph ) info [ start ] . indic_position ( ) = POS_RA_TO_BECOME_REPH ;\n if ( indic_plan -> is_old_spec ) {\n bool disallow_double_halants = buffer -> props . script != HB_SCRIPT_MALAYALAM ;\n for ( unsigned int i = base + 1 ;\n i < end ;\n i ++ ) if ( info [ i ] . indic_category ( ) == OT_H ) {\n unsigned int j ;\n for ( j = end - 1 ;\n j > i ;\n j -- ) if ( is_consonant ( info [ j ] ) || ( disallow_double_halants && info [ j ] . indic_category ( ) == OT_H ) ) break ;\n if ( info [ j ] . indic_category ( ) != OT_H && j > i ) {\n hb_glyph_info_t t = info [ i ] ;\n memmove ( & info [ i ] , & info [ i + 1 ] , ( j - i ) * sizeof ( info [ 0 ] ) ) ;\n info [ j ] = t ;\n }\n break ;\n }\n }\n {\n indic_position_t last_pos = POS_START ;\n for ( unsigned int i = start ;\n i < end ;\n i ++ ) {\n if ( ( FLAG ( info [ i ] . indic_category ( ) ) & ( JOINER_FLAGS | FLAG ( OT_N ) | FLAG ( OT_RS ) | MEDIAL_FLAGS | HALANT_OR_COENG_FLAGS ) ) ) {\n info [ i ] . indic_position ( ) = last_pos ;\n if ( unlikely ( info [ i ] . indic_category ( ) == OT_H && info [ i ] . indic_position ( ) == POS_PRE_M ) ) {\n for ( unsigned int j = i ;\n j > start ;\n j -- ) if ( info [ j - 1 ] . indic_position ( ) != POS_PRE_M ) {\n info [ i ] . indic_position ( ) = info [ j - 1 ] . indic_position ( ) ;\n break ;\n }\n }\n }\n else if ( info [ i ] . indic_position ( ) != POS_SMVD ) {\n last_pos = ( indic_position_t ) info [ i ] . indic_position ( ) ;\n }\n }\n }\n {\n unsigned int last = base ;\n for ( unsigned int i = base + 1 ;\n i < end ;\n i ++ ) if ( is_consonant ( info [ i ] ) ) {\n for ( unsigned int j = last + 1 ;\n j < i ;\n j ++ ) if ( info [ j ] . indic_position ( ) < POS_SMVD ) info [ j ] . indic_position ( ) = info [ i ] . indic_position ( ) ;\n last = i ;\n }\n else if ( info [ i ] . indic_category ( ) == OT_M ) last = i ;\n }\n {\n unsigned int syllable = info [ start ] . syllable ( ) ;\n for ( unsigned int i = start ;\n i < end ;\n i ++ ) info [ i ] . syllable ( ) = i - start ;\n hb_bubble_sort ( info + start , end - start , compare_indic_order ) ;\n base = end ;\n for ( unsigned int i = start ;\n i < end ;\n i ++ ) if ( info [ i ] . indic_position ( ) == POS_BASE_C ) {\n base = i ;\n break ;\n }\n if ( indic_plan -> is_old_spec || end - base > 127 ) buffer -> merge_clusters ( base , end ) ;\n else {\n for ( unsigned int i = base ;\n i < end ;\n i ++ ) if ( info [ i ] . syllable ( ) != 255 ) {\n unsigned int max = i ;\n unsigned int j = start + info [ i ] . syllable ( ) ;\n while ( j != i ) {\n max = MAX ( max , j ) ;\n unsigned int next = start + info [ j ] . syllable ( ) ;\n info [ j ] . syllable ( ) = 255 ;\n j = next ;\n }\n if ( i != max ) buffer -> merge_clusters ( i , max + 1 ) ;\n }\n }\n for ( unsigned int i = start ;\n i < end ;\n i ++ ) info [ i ] . syllable ( ) = syllable ;\n }\n {\n hb_mask_t mask ;\n for ( unsigned int i = start ;\n i < end && info [ i ] . indic_position ( ) == POS_RA_TO_BECOME_REPH ;\n i ++ ) info [ i ] . mask |= indic_plan -> mask_array [ RPHF ] ;\n mask = indic_plan -> mask_array [ HALF ] ;\n if ( ! indic_plan -> is_old_spec && indic_plan -> config -> blwf_mode == BLWF_MODE_PRE_AND_POST ) mask |= indic_plan -> mask_array [ BLWF ] ;\n for ( unsigned int i = start ;\n i < base ;\n i ++ ) info [ i ] . mask |= mask ;\n mask = 0 ;\n if ( base < end ) info [ base ] . mask |= mask ;\n mask = indic_plan -> mask_array [ BLWF ] | indic_plan -> mask_array [ ABVF ] | indic_plan -> mask_array [ PSTF ] ;\n for ( unsigned int i = base + 1 ;\n i < end ;\n i ++ ) info [ i ] . mask |= mask ;\n }\n if ( indic_plan -> is_old_spec && buffer -> props . script == HB_SCRIPT_DEVANAGARI ) {\n for ( unsigned int i = start ;\n i + 1 < base ;\n i ++ ) if ( info [ i ] . indic_category ( ) == OT_Ra && info [ i + 1 ] . indic_category ( ) == OT_H && ( i + 2 == base || info [ i + 2 ] . indic_category ( ) != OT_ZWJ ) ) {\n info [ i ] . mask |= indic_plan -> mask_array [ BLWF ] ;\n info [ i + 1 ] . mask |= indic_plan -> mask_array [ BLWF ] ;\n }\n }\n unsigned int pref_len = indic_plan -> config -> pref_len ;\n if ( indic_plan -> mask_array [ PREF ] && base + pref_len < end ) {\n assert ( 1 <= pref_len && pref_len <= 2 ) ;\n for ( unsigned int i = base + 1 ;\n i + pref_len - 1 < end ;\n i ++ ) {\n hb_codepoint_t glyphs [ 2 ] ;\n for ( unsigned int j = 0 ;\n j < pref_len ;\n j ++ ) glyphs [ j ] = info [ i + j ] . codepoint ;\n if ( indic_plan -> pref . would_substitute ( glyphs , pref_len , face ) ) {\n for ( unsigned int j = 0 ;\n j < pref_len ;\n j ++ ) info [ i ++ ] . mask |= indic_plan -> mask_array [ PREF ] ;\n if ( indic_plan -> mask_array [ CFAR ] ) for ( ;\n i < end ;\n i ++ ) info [ i ] . mask |= indic_plan -> mask_array [ CFAR ] ;\n break ;\n }\n }\n }\n for ( unsigned int i = start + 1 ;\n i < end ;\n i ++ ) if ( is_joiner ( info [ i ] ) ) {\n bool non_joiner = info [ i ] . indic_category ( ) == OT_ZWNJ ;\n unsigned int j = i ;\n do {\n j -- ;\n if ( non_joiner ) info [ j ] . mask &= ~ indic_plan -> mask_array [ HALF ] ;\n }\n while ( j > start && ! is_consonant ( info [ j ] ) ) ;\n }\n }"}
{"idx": 830, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , UseCounterCSSPropertiesInIframe ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : LOAD_EVENT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/page_load_metrics/use_counter_features_in_iframe.html\" ) ) ;\n waiter -> Wait ( ) ;\n NavigateToUntrackedUrl ( ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kCssPropertiesHistogramName , 6 , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kCssPropertiesHistogramName , 7 , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kCssPropertiesHistogramName , blink : : mojom : : kTotalPagesMeasuredCSSSampleId , 1 ) ;\n }"}
{"idx": 831, "target": 0, "func": "static GFile * map_possibly_volatile_file_to_real_on_write ( GFile * volatile_file , GFileOutputStream * stream , GCancellable * cancellable , GError * * error ) {\n GFile * real_file = NULL ;\n GFileInfo * info = NULL ;\n info = g_file_output_stream_query_info ( stream , G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK \",\" G_FILE_ATTRIBUTE_STANDARD_IS_VOLATILE \",\" G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET , cancellable , error ) ;\n if ( info == NULL ) {\n return NULL ;\n }\n else {\n gboolean is_volatile ;\n is_volatile = g_file_info_get_attribute_boolean ( info , G_FILE_ATTRIBUTE_STANDARD_IS_VOLATILE ) ;\n if ( is_volatile ) {\n const gchar * target ;\n target = g_file_info_get_symlink_target ( info ) ;\n real_file = g_file_resolve_relative_path ( volatile_file , target ) ;\n }\n }\n g_object_unref ( info ) ;\n if ( real_file == NULL ) {\n real_file = g_object_ref ( volatile_file ) ;\n }\n return real_file ;\n }"}
{"idx": 832, "target": 0, "func": "EC_KEY * o2i_ECPublicKey ( EC_KEY * * a , const unsigned char * * in , long len ) {\n EC_KEY * ret = NULL ;\n if ( a == NULL || ( * a ) == NULL || ( * a ) -> group == NULL ) {\n ECerr ( EC_F_O2I_ECPUBLICKEY , ERR_R_PASSED_NULL_PARAMETER ) ;\n return 0 ;\n }\n ret = * a ;\n if ( ret -> pub_key == NULL && ( ret -> pub_key = EC_POINT_new ( ret -> group ) ) == NULL ) {\n ECerr ( EC_F_O2I_ECPUBLICKEY , ERR_R_MALLOC_FAILURE ) ;\n return 0 ;\n }\n if ( ! EC_POINT_oct2point ( ret -> group , ret -> pub_key , * in , len , NULL ) ) {\n ECerr ( EC_F_O2I_ECPUBLICKEY , ERR_R_EC_LIB ) ;\n return 0 ;\n }\n ret -> conv_form = ( point_conversion_form_t ) ( * in [ 0 ] & ~ 0x01 ) ;\n * in += len ;\n return ret ;\n }"}
{"idx": 833, "target": 0, "func": "static void generate_new_codebooks ( RoqContext * enc , RoqTempdata * tempData ) {\n int i , j ;\n RoqCodebooks * codebooks = & tempData -> codebooks ;\n int max = enc -> width * enc -> height / 16 ;\n uint8_t mb2 [ 3 * 4 ] ;\n roq_cell * results4 = av_malloc ( sizeof ( roq_cell ) * MAX_CBS_4x4 * 4 ) ;\n uint8_t * yuvClusters = av_malloc ( sizeof ( int ) * max * 6 * 4 ) ;\n int * points = av_malloc ( max * 6 * 4 * sizeof ( int ) ) ;\n int bias ;\n create_clusters ( enc -> frame_to_enc , enc -> width , enc -> height , yuvClusters ) ;\n for ( i = 0 ;\n i < max * 24 ;\n i ++ ) {\n bias = ( ( i % 6 ) < 4 ) ? 1 : CHROMA_BIAS ;\n points [ i ] = bias * yuvClusters [ i ] ;\n }\n generate_codebook ( enc , tempData , points , max , results4 , 4 , MAX_CBS_4x4 ) ;\n codebooks -> numCB4 = MAX_CBS_4x4 ;\n tempData -> closest_cb2 = av_malloc ( max * 4 * sizeof ( int ) ) ;\n generate_codebook ( enc , tempData , points , max * 4 , enc -> cb2x2 , 2 , MAX_CBS_2x2 ) ;\n codebooks -> numCB2 = MAX_CBS_2x2 ;\n for ( i = 0 ;\n i < codebooks -> numCB2 ;\n i ++ ) unpack_roq_cell ( enc -> cb2x2 + i , codebooks -> unpacked_cb2 + i * 2 * 2 * 3 ) ;\n for ( i = 0 ;\n i < codebooks -> numCB4 ;\n i ++ ) {\n for ( j = 0 ;\n j < 4 ;\n j ++ ) {\n unpack_roq_cell ( & results4 [ 4 * i + j ] , mb2 ) ;\n index_mb ( mb2 , codebooks -> unpacked_cb2 , codebooks -> numCB2 , & enc -> cb4x4 [ i ] . idx [ j ] , 2 ) ;\n }\n unpack_roq_qcell ( codebooks -> unpacked_cb2 , enc -> cb4x4 + i , codebooks -> unpacked_cb4 + i * 4 * 4 * 3 ) ;\n enlarge_roq_mb4 ( codebooks -> unpacked_cb4 + i * 4 * 4 * 3 , codebooks -> unpacked_cb4_enlarged + i * 8 * 8 * 3 ) ;\n }\n av_free ( yuvClusters ) ;\n av_free ( points ) ;\n av_free ( results4 ) ;\n }"}
{"idx": 834, "target": 0, "func": "void calcrdslopes ( jpc_enc_cblk_t * cblk ) {\n jpc_enc_pass_t * endpasses ;\n jpc_enc_pass_t * pass0 ;\n jpc_enc_pass_t * pass1 ;\n jpc_enc_pass_t * pass2 ;\n jpc_flt_t slope0 ;\n jpc_flt_t slope ;\n jpc_flt_t dd ;\n long dr ;\n endpasses = & cblk -> passes [ cblk -> numpasses ] ;\n pass2 = cblk -> passes ;\n slope0 = 0 ;\n while ( pass2 != endpasses ) {\n pass0 = 0 ;\n for ( pass1 = cblk -> passes ;\n pass1 != endpasses ;\n ++ pass1 ) {\n dd = pass1 -> cumwmsedec ;\n dr = pass1 -> end ;\n if ( pass0 ) {\n dd -= pass0 -> cumwmsedec ;\n dr -= pass0 -> end ;\n }\n if ( dd <= 0 ) {\n pass1 -> rdslope = JPC_BADRDSLOPE ;\n if ( pass1 >= pass2 ) {\n pass2 = & pass1 [ 1 ] ;\n }\n continue ;\n }\n if ( pass1 < pass2 && pass1 -> rdslope <= 0 ) {\n continue ;\n }\n if ( ! dr ) {\n assert ( pass0 ) ;\n pass0 -> rdslope = 0 ;\n break ;\n }\n slope = dd / dr ;\n if ( pass0 && slope >= slope0 ) {\n pass0 -> rdslope = 0 ;\n break ;\n }\n pass1 -> rdslope = slope ;\n if ( pass1 >= pass2 ) {\n pass2 = & pass1 [ 1 ] ;\n }\n pass0 = pass1 ;\n slope0 = slope ;\n }\n }\n # if 0 for ( pass0 = cblk -> passes ;\n pass0 != endpasses ;\n ++ pass0 ) {\n if ( pass0 -> rdslope > 0.0 ) {\n jas_eprintf ( \"pass %02d nmsedec=%lf dec=%lf end=%d %lf\\n\" , pass0 - cblk -> passes , fixtodbl ( pass0 -> nmsedec ) , pass0 -> wmsedec , pass0 -> end , pass0 -> rdslope ) ;\n }\n }\n # endif }"}
{"idx": 835, "target": 0, "func": "static int encode_picture_lossless ( AVCodecContext * avctx , AVPacket * pkt , const AVFrame * pict , int * got_packet ) {\n MpegEncContext * const s = avctx -> priv_data ;\n MJpegContext * const m = s -> mjpeg_ctx ;\n const int width = s -> width ;\n const int height = s -> height ;\n AVFrame * const p = & s -> current_picture . f ;\n const int predictor = avctx -> prediction_method + 1 ;\n const int mb_width = ( width + s -> mjpeg_hsample [ 0 ] - 1 ) / s -> mjpeg_hsample [ 0 ] ;\n const int mb_height = ( height + s -> mjpeg_vsample [ 0 ] - 1 ) / s -> mjpeg_vsample [ 0 ] ;\n int ret , max_pkt_size = FF_MIN_BUFFER_SIZE ;\n if ( avctx -> pix_fmt == AV_PIX_FMT_BGRA ) max_pkt_size += width * height * 3 * 4 ;\n else {\n max_pkt_size += mb_width * mb_height * 3 * 4 * s -> mjpeg_hsample [ 0 ] * s -> mjpeg_vsample [ 0 ] ;\n }\n if ( ( ret = ff_alloc_packet ( pkt , max_pkt_size ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error getting output packet of size %d.\\n\" , max_pkt_size ) ;\n return ret ;\n }\n init_put_bits ( & s -> pb , pkt -> data , pkt -> size ) ;\n av_frame_unref ( p ) ;\n ret = av_frame_ref ( p , pict ) ;\n if ( ret < 0 ) return ret ;\n p -> pict_type = AV_PICTURE_TYPE_I ;\n p -> key_frame = 1 ;\n ff_mjpeg_encode_picture_header ( s ) ;\n s -> header_bits = put_bits_count ( & s -> pb ) ;\n if ( avctx -> pix_fmt == AV_PIX_FMT_BGRA ) {\n int x , y , i ;\n const int linesize = p -> linesize [ 0 ] ;\n uint16_t ( * buffer ) [ 4 ] = ( void * ) s -> rd_scratchpad ;\n int left [ 3 ] , top [ 3 ] , topleft [ 3 ] ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n buffer [ 0 ] [ i ] = 1 << ( 9 - 1 ) ;\n }\n for ( y = 0 ;\n y < height ;\n y ++ ) {\n const int modified_predictor = y ? predictor : 1 ;\n uint8_t * ptr = p -> data [ 0 ] + ( linesize * y ) ;\n if ( s -> pb . buf_end - s -> pb . buf - ( put_bits_count ( & s -> pb ) >> 3 ) < width * 3 * 4 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"encoded frame too large\\n\" ) ;\n return - 1 ;\n }\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n top [ i ] = left [ i ] = topleft [ i ] = buffer [ 0 ] [ i ] ;\n }\n for ( x = 0 ;\n x < width ;\n x ++ ) {\n buffer [ x ] [ 1 ] = ptr [ 4 * x + 0 ] - ptr [ 4 * x + 1 ] + 0x100 ;\n buffer [ x ] [ 2 ] = ptr [ 4 * x + 2 ] - ptr [ 4 * x + 1 ] + 0x100 ;\n buffer [ x ] [ 0 ] = ( ptr [ 4 * x + 0 ] + 2 * ptr [ 4 * x + 1 ] + ptr [ 4 * x + 2 ] ) >> 2 ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n int pred , diff ;\n PREDICT ( pred , topleft [ i ] , top [ i ] , left [ i ] , modified_predictor ) ;\n topleft [ i ] = top [ i ] ;\n top [ i ] = buffer [ x + 1 ] [ i ] ;\n left [ i ] = buffer [ x ] [ i ] ;\n diff = ( ( left [ i ] - pred + 0x100 ) & 0x1FF ) - 0x100 ;\n if ( i == 0 ) ff_mjpeg_encode_dc ( s , diff , m -> huff_size_dc_luminance , m -> huff_code_dc_luminance ) ;\n else ff_mjpeg_encode_dc ( s , diff , m -> huff_size_dc_chrominance , m -> huff_code_dc_chrominance ) ;\n }\n }\n }\n }\n else {\n int mb_x , mb_y , i ;\n for ( mb_y = 0 ;\n mb_y < mb_height ;\n mb_y ++ ) {\n if ( s -> pb . buf_end - s -> pb . buf - ( put_bits_count ( & s -> pb ) >> 3 ) < mb_width * 4 * 3 * s -> mjpeg_hsample [ 0 ] * s -> mjpeg_vsample [ 0 ] ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"encoded frame too large\\n\" ) ;\n return - 1 ;\n }\n for ( mb_x = 0 ;\n mb_x < mb_width ;\n mb_x ++ ) {\n if ( mb_x == 0 || mb_y == 0 ) {\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n uint8_t * ptr ;\n int x , y , h , v , linesize ;\n h = s -> mjpeg_hsample [ i ] ;\n v = s -> mjpeg_vsample [ i ] ;\n linesize = p -> linesize [ i ] ;\n for ( y = 0 ;\n y < v ;\n y ++ ) {\n for ( x = 0 ;\n x < h ;\n x ++ ) {\n int pred ;\n ptr = p -> data [ i ] + ( linesize * ( v * mb_y + y ) ) + ( h * mb_x + x ) ;\n if ( y == 0 && mb_y == 0 ) {\n if ( x == 0 && mb_x == 0 ) {\n pred = 128 ;\n }\n else {\n pred = ptr [ - 1 ] ;\n }\n }\n else {\n if ( x == 0 && mb_x == 0 ) {\n pred = ptr [ - linesize ] ;\n }\n else {\n PREDICT ( pred , ptr [ - linesize - 1 ] , ptr [ - linesize ] , ptr [ - 1 ] , predictor ) ;\n }\n }\n if ( i == 0 ) ff_mjpeg_encode_dc ( s , * ptr - pred , m -> huff_size_dc_luminance , m -> huff_code_dc_luminance ) ;\n else ff_mjpeg_encode_dc ( s , * ptr - pred , m -> huff_size_dc_chrominance , m -> huff_code_dc_chrominance ) ;\n }\n }\n }\n }\n else {\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n uint8_t * ptr ;\n int x , y , h , v , linesize ;\n h = s -> mjpeg_hsample [ i ] ;\n v = s -> mjpeg_vsample [ i ] ;\n linesize = p -> linesize [ i ] ;\n for ( y = 0 ;\n y < v ;\n y ++ ) {\n for ( x = 0 ;\n x < h ;\n x ++ ) {\n int pred ;\n ptr = p -> data [ i ] + ( linesize * ( v * mb_y + y ) ) + ( h * mb_x + x ) ;\n PREDICT ( pred , ptr [ - linesize - 1 ] , ptr [ - linesize ] , ptr [ - 1 ] , predictor ) ;\n if ( i == 0 ) ff_mjpeg_encode_dc ( s , * ptr - pred , m -> huff_size_dc_luminance , m -> huff_code_dc_luminance ) ;\n else ff_mjpeg_encode_dc ( s , * ptr - pred , m -> huff_size_dc_chrominance , m -> huff_code_dc_chrominance ) ;\n }\n }\n }\n }\n }\n }\n }\n emms_c ( ) ;\n ff_mjpeg_encode_picture_trailer ( s ) ;\n s -> picture_number ++ ;\n flush_put_bits ( & s -> pb ) ;\n pkt -> size = put_bits_ptr ( & s -> pb ) - s -> pb . buf ;\n pkt -> flags |= AV_PKT_FLAG_KEY ;\n * got_packet = 1 ;\n return 0 ;\n }"}
{"idx": 836, "target": 0, "func": "static void e1000e_set_vet ( E1000ECore * core , int index , uint32_t val ) {\n core -> mac [ VET ] = val & 0xffff ;\n core -> vet = le16_to_cpu ( core -> mac [ VET ] ) ;\n trace_e1000e_vlan_vet ( core -> vet ) ;\n }"}
{"idx": 837, "target": 0, "func": "static void dissect_zcl_pwr_prof_pwrprofreq ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_pwr_prof_id , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n }"}
{"idx": 838, "target": 0, "func": "void * ASN1_item_d2i_bio ( const ASN1_ITEM * it , BIO * in , void * x ) {\n BUF_MEM * b = NULL ;\n const unsigned char * p ;\n void * ret = NULL ;\n int len ;\n len = asn1_d2i_read_bio ( in , & b ) ;\n if ( len < 0 ) goto err ;\n p = ( const unsigned char * ) b -> data ;\n ret = ASN1_item_d2i ( x , & p , len , it ) ;\n err : BUF_MEM_free ( b ) ;\n return ( ret ) ;\n }"}
{"idx": 839, "target": 0, "func": "static const char * cmd_request_intercept_on_error ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n if ( dcfg == NULL ) return NULL ;\n if ( strcasecmp ( p1 , \"on\" ) == 0 ) dcfg -> reqintercept_oe = 1 ;\n else if ( strcasecmp ( p1 , \"off\" ) == 0 ) dcfg -> reqintercept_oe = 0 ;\n else return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid value for SecInterceptOnError: %s\" , p1 ) ;\n return NULL ;\n }"}
{"idx": 840, "target": 1, "func": "TEST_F ( ProtocolHandlerRegistryTest , TestIsEquivalentRegistered ) {\n ProtocolHandler ph1 = CreateProtocolHandler ( \"test\" , GURL ( \"http://test/%s\" ) , \"test1\" ) ;\n ProtocolHandler ph2 = CreateProtocolHandler ( \"test\" , GURL ( \"http://test/%s\" ) , \"test2\" ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ;\n ASSERT_TRUE ( registry ( ) -> IsRegistered ( ph1 ) ) ;\n ASSERT_TRUE ( registry ( ) -> HasRegisteredEquivalent ( ph2 ) ) ;\n }"}
{"idx": 841, "target": 0, "func": "static void proto_tree_set_double ( field_info * fi , double value ) {\n fvalue_set_floating ( & fi -> value , value ) ;\n }"}
{"idx": 842, "target": 0, "func": "static int binkb_read_bundle ( BinkContext * c , GetBitContext * gb , int bundle_num ) {\n const int bits = binkb_bundle_sizes [ bundle_num ] ;\n const int mask = 1 << ( bits - 1 ) ;\n const int issigned = binkb_bundle_signed [ bundle_num ] ;\n Bundle * b = & c -> bundle [ bundle_num ] ;\n int i , len ;\n CHECK_READ_VAL ( gb , b , len ) ;\n if ( b -> data_end - b -> cur_dec < len * ( 1 + ( bits > 8 ) ) ) return AVERROR_INVALIDDATA ;\n if ( bits <= 8 ) {\n if ( ! issigned ) {\n for ( i = 0 ;\n i < len ;\n i ++ ) * b -> cur_dec ++ = get_bits ( gb , bits ) ;\n }\n else {\n for ( i = 0 ;\n i < len ;\n i ++ ) * b -> cur_dec ++ = get_bits ( gb , bits ) - mask ;\n }\n }\n else {\n int16_t * dst = ( int16_t * ) b -> cur_dec ;\n if ( ! issigned ) {\n for ( i = 0 ;\n i < len ;\n i ++ ) * dst ++ = get_bits ( gb , bits ) ;\n }\n else {\n for ( i = 0 ;\n i < len ;\n i ++ ) * dst ++ = get_bits ( gb , bits ) - mask ;\n }\n b -> cur_dec = ( uint8_t * ) dst ;\n }\n return 0 ;\n }"}
{"idx": 843, "target": 0, "func": "void append_salt_to_key ( uint8_t * key , unsigned int bytes_in_key , uint8_t * salt , unsigned int bytes_in_salt ) {\n memcpy ( key + bytes_in_key , salt , bytes_in_salt ) ;\n }"}
{"idx": 844, "target": 1, "func": "kadm5_ret_t kadm5_create_principal_3 ( void * server_handle , kadm5_principal_ent_t entry , long mask , int n_ks_tuple , krb5_key_salt_tuple * ks_tuple , char * password ) {\n krb5_db_entry * kdb ;\n osa_princ_ent_rec adb ;\n kadm5_policy_ent_rec polent ;\n krb5_boolean have_polent = FALSE ;\n krb5_int32 now ;\n krb5_tl_data * tl_data_tail ;\n unsigned int ret ;\n kadm5_server_handle_t handle = server_handle ;\n krb5_keyblock * act_mkey ;\n krb5_kvno act_kvno ;\n int new_n_ks_tuple = 0 ;\n krb5_key_salt_tuple * new_ks_tuple = NULL ;\n CHECK_HANDLE ( server_handle ) ;\n krb5_clear_error_message ( handle -> context ) ;\n check_1_6_dummy ( entry , mask , n_ks_tuple , ks_tuple , & password ) ;\n if ( ! ( mask & KADM5_PRINCIPAL ) || ( mask & KADM5_MOD_NAME ) || ( mask & KADM5_MOD_TIME ) || ( mask & KADM5_LAST_PWD_CHANGE ) || ( mask & KADM5_MKVNO ) || ( mask & KADM5_AUX_ATTRIBUTES ) || ( mask & KADM5_LAST_SUCCESS ) || ( mask & KADM5_LAST_FAILED ) || ( mask & KADM5_FAIL_AUTH_COUNT ) ) return KADM5_BAD_MASK ;\n if ( ( mask & KADM5_KEY_DATA ) && entry -> n_key_data != 0 ) return KADM5_BAD_MASK ;\n if ( ( mask & KADM5_POLICY ) && ( mask & KADM5_POLICY_CLR ) ) return KADM5_BAD_MASK ;\n if ( ( mask & ~ ALL_PRINC_MASK ) ) return KADM5_BAD_MASK ;\n if ( entry == NULL ) return EINVAL ;\n ret = kdb_get_entry ( handle , entry -> principal , & kdb , & adb ) ;\n switch ( ret ) {\n case KADM5_UNK_PRINC : break ;\n case 0 : kdb_free_entry ( handle , kdb , & adb ) ;\n return KADM5_DUP ;\n default : return ret ;\n }\n kdb = krb5_db_alloc ( handle -> context , NULL , sizeof ( * kdb ) ) ;\n if ( kdb == NULL ) return ENOMEM ;\n memset ( kdb , 0 , sizeof ( * kdb ) ) ;\n memset ( & adb , 0 , sizeof ( osa_princ_ent_rec ) ) ;\n if ( ( mask & KADM5_POLICY ) ) {\n ret = get_policy ( handle , entry -> policy , & polent , & have_polent ) ;\n if ( ret ) goto cleanup ;\n }\n if ( password ) {\n ret = passwd_check ( handle , password , have_polent ? & polent : NULL , entry -> principal ) ;\n if ( ret ) goto cleanup ;\n }\n if ( ( ret = krb5_timeofday ( handle -> context , & now ) ) ) goto cleanup ;\n kdb -> magic = KRB5_KDB_MAGIC_NUMBER ;\n kdb -> len = KRB5_KDB_V1_BASE_LENGTH ;\n if ( ( mask & KADM5_ATTRIBUTES ) ) kdb -> attributes = entry -> attributes ;\n else kdb -> attributes = handle -> params . flags ;\n if ( ( mask & KADM5_MAX_LIFE ) ) kdb -> max_life = entry -> max_life ;\n else kdb -> max_life = handle -> params . max_life ;\n if ( mask & KADM5_MAX_RLIFE ) kdb -> max_renewable_life = entry -> max_renewable_life ;\n else kdb -> max_renewable_life = handle -> params . max_rlife ;\n if ( ( mask & KADM5_PRINC_EXPIRE_TIME ) ) kdb -> expiration = entry -> princ_expire_time ;\n else kdb -> expiration = handle -> params . expiration ;\n kdb -> pw_expiration = 0 ;\n if ( have_polent ) {\n if ( polent . pw_max_life ) kdb -> pw_expiration = now + polent . pw_max_life ;\n else kdb -> pw_expiration = 0 ;\n }\n if ( ( mask & KADM5_PW_EXPIRATION ) ) kdb -> pw_expiration = entry -> pw_expiration ;\n kdb -> last_success = 0 ;\n kdb -> last_failed = 0 ;\n kdb -> fail_auth_count = 0 ;\n if ( ( ret = kadm5_copy_principal ( handle -> context , entry -> principal , & ( kdb -> princ ) ) ) ) goto cleanup ;\n if ( ( ret = krb5_dbe_update_last_pwd_change ( handle -> context , kdb , now ) ) ) goto cleanup ;\n if ( mask & KADM5_TL_DATA ) {\n for ( tl_data_tail = entry -> tl_data ;\n tl_data_tail ;\n tl_data_tail = tl_data_tail -> tl_data_next ) {\n ret = krb5_dbe_update_tl_data ( handle -> context , kdb , tl_data_tail ) ;\n if ( ret ) goto cleanup ;\n }\n }\n ret = apply_keysalt_policy ( handle , entry -> policy , n_ks_tuple , ks_tuple , & new_n_ks_tuple , & new_ks_tuple ) ;\n if ( ret ) goto cleanup ;\n ret = kdb_get_active_mkey ( handle , & act_kvno , & act_mkey ) ;\n if ( ret ) goto cleanup ;\n if ( mask & KADM5_KEY_DATA ) {\n assert ( entry -> n_key_data == 0 ) ;\n }\n else if ( password ) {\n ret = krb5_dbe_cpw ( handle -> context , act_mkey , new_ks_tuple , new_n_ks_tuple , password , ( mask & KADM5_KVNO ) ? entry -> kvno : 1 , FALSE , kdb ) ;\n }\n else {\n ret = krb5_dbe_crk ( handle -> context , & master_keyblock , new_ks_tuple , new_n_ks_tuple , FALSE , kdb ) ;\n }\n if ( ret ) goto cleanup ;\n ret = krb5_dbe_update_mkvno ( handle -> context , kdb , act_kvno ) ;\n if ( ret ) goto cleanup ;\n ret = k5_kadm5_hook_create ( handle -> context , handle -> hook_handles , KADM5_HOOK_STAGE_PRECOMMIT , entry , mask , new_n_ks_tuple , new_ks_tuple , password ) ;\n if ( ret ) goto cleanup ;\n adb . admin_history_kvno = INITIAL_HIST_KVNO ;\n if ( mask & KADM5_POLICY ) {\n adb . aux_attributes = KADM5_POLICY ;\n adb . policy = entry -> policy ;\n }\n kdb -> mask = mask | KADM5_KEY_DATA | KADM5_PRINCIPAL ;\n ret = kdb_put_entry ( handle , kdb , & adb ) ;\n ( void ) k5_kadm5_hook_create ( handle -> context , handle -> hook_handles , KADM5_HOOK_STAGE_POSTCOMMIT , entry , mask , new_n_ks_tuple , new_ks_tuple , password ) ;\n cleanup : free ( new_ks_tuple ) ;\n krb5_db_free_principal ( handle -> context , kdb ) ;\n if ( have_polent ) ( void ) kadm5_free_policy_ent ( handle -> lhandle , & polent ) ;\n return ret ;\n }"}
{"idx": 845, "target": 0, "func": "static void passphrase_free ( char * ppbuff ) {\n if ( ppbuff != NULL ) {\n memset ( ppbuff , 0 , PPBUFF_SIZE ) ;\n free ( ppbuff ) ;\n }\n }"}
{"idx": 846, "target": 0, "func": "static void fast_bgr_to_gray ( fz_context * ctx , fz_pixmap * dst , fz_pixmap * src , fz_colorspace * prf , const fz_default_colorspaces * default_cs , const fz_color_params * color_params , int copy_spots ) {\n unsigned char * s = src -> samples ;\n unsigned char * d = dst -> samples ;\n size_t w = src -> w ;\n int h = src -> h ;\n int sn = src -> n ;\n int ss = src -> s ;\n int sa = src -> alpha ;\n int dn = dst -> n ;\n int ds = dst -> s ;\n int da = dst -> alpha ;\n ptrdiff_t d_line_inc = dst -> stride - w * dn ;\n ptrdiff_t s_line_inc = src -> stride - w * sn ;\n if ( ( copy_spots && ss != ds ) || ( ! da && sa ) ) {\n assert ( \"This should never happen\" == NULL ) ;\n fz_throw ( ctx , FZ_ERROR_GENERIC , \"Cannot convert between incompatible pixmaps\" ) ;\n }\n if ( ( int ) w < 0 || h < 0 ) return ;\n if ( d_line_inc == 0 && s_line_inc == 0 ) {\n w *= h ;\n h = 1 ;\n }\n if ( ss == 0 && ds == 0 ) {\n if ( da ) {\n if ( sa ) {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n d [ 0 ] = ( ( s [ 0 ] + 1 ) * 28 + ( s [ 1 ] + 1 ) * 150 + ( s [ 2 ] + 1 ) * 77 ) >> 8 ;\n d [ 1 ] = s [ 3 ] ;\n s += 4 ;\n d += 2 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n else {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n d [ 0 ] = ( ( s [ 0 ] + 1 ) * 28 + ( s [ 1 ] + 1 ) * 150 + ( s [ 2 ] + 1 ) * 77 ) >> 8 ;\n d [ 1 ] = 255 ;\n s += 3 ;\n d += 2 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n }\n else {\n int si = 3 + src -> alpha ;\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n d [ 0 ] = ( ( s [ 0 ] + 1 ) * 28 + ( s [ 1 ] + 1 ) * 150 + ( s [ 2 ] + 1 ) * 77 ) >> 8 ;\n s += si ;\n d ++ ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n }\n else if ( copy_spots ) {\n while ( h -- ) {\n int i ;\n size_t ww = w ;\n while ( ww -- ) {\n d [ 0 ] = ( ( s [ 0 ] + 1 ) * 28 + ( s [ 1 ] + 1 ) * 150 + ( s [ 2 ] + 1 ) * 77 ) >> 8 ;\n s += 3 ;\n d ++ ;\n for ( i = ss ;\n i > 0 ;\n i -- ) * d ++ = * s ++ ;\n if ( da ) * d ++ = sa ? * s ++ : 255 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n else {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n d [ 0 ] = ( ( s [ 0 ] + 1 ) * 28 + ( s [ 1 ] + 1 ) * 150 + ( s [ 2 ] + 1 ) * 77 ) >> 8 ;\n s += sn ;\n d += dn ;\n if ( da ) d [ - 1 ] = sa ? s [ - 1 ] : 255 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n }"}
{"idx": 847, "target": 0, "func": "static PyObject * string_center ( PyStringObject * self , PyObject * args ) {\n Py_ssize_t marg , left ;\n Py_ssize_t width ;\n char fillchar = ' ' ;\n if ( ! PyArg_ParseTuple ( args , \"n|c:center\" , & width , & fillchar ) ) return NULL ;\n if ( PyString_GET_SIZE ( self ) >= width && PyString_CheckExact ( self ) ) {\n Py_INCREF ( self ) ;\n return ( PyObject * ) self ;\n }\n marg = width - PyString_GET_SIZE ( self ) ;\n left = marg / 2 + ( marg & width & 1 ) ;\n return pad ( self , left , marg - left , fillchar ) ;\n }"}
{"idx": 848, "target": 0, "func": "inline static void _slurm_rpc_dump_stats ( slurm_msg_t * msg ) {\n char * dump ;\n int dump_size ;\n stats_info_request_msg_t * request_msg ;\n slurm_msg_t response_msg ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n request_msg = ( stats_info_request_msg_t * ) msg -> data ;\n if ( ( request_msg -> command_id == STAT_COMMAND_RESET ) && ! validate_operator ( uid ) ) {\n error ( \"Security violation: REQUEST_STATS_INFO reset \" \"from uid=%d\" , uid ) ;\n slurm_send_rc_msg ( msg , ESLURM_ACCESS_DENIED ) ;\n return ;\n }\n debug2 ( \"Processing RPC: REQUEST_STATS_INFO (command: %u)\" , request_msg -> command_id ) ;\n slurm_msg_t_init ( & response_msg ) ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . address = msg -> address ;\n response_msg . conn = msg -> conn ;\n response_msg . msg_type = RESPONSE_STATS_INFO ;\n if ( request_msg -> command_id == STAT_COMMAND_RESET ) {\n reset_stats ( 1 ) ;\n _clear_rpc_stats ( ) ;\n pack_all_stat ( 0 , & dump , & dump_size , msg -> protocol_version ) ;\n _pack_rpc_stats ( 0 , & dump , & dump_size , msg -> protocol_version ) ;\n response_msg . data = dump ;\n response_msg . data_size = dump_size ;\n }\n else {\n pack_all_stat ( 1 , & dump , & dump_size , msg -> protocol_version ) ;\n _pack_rpc_stats ( 1 , & dump , & dump_size , msg -> protocol_version ) ;\n response_msg . data = dump ;\n response_msg . data_size = dump_size ;\n }\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n xfree ( dump ) ;\n }"}
{"idx": 849, "target": 1, "func": "static void set_ref ( VP9_COMMON * const cm , MACROBLOCKD * const xd , int idx , int mi_row , int mi_col ) {\n MB_MODE_INFO * const mbmi = & xd -> mi [ 0 ] -> mbmi ;\n RefBuffer * ref_buffer = & cm -> frame_refs [ mbmi -> ref_frame [ idx ] - LAST_FRAME ] ;\n xd -> block_refs [ idx ] = ref_buffer ;\n if ( ! vp9_is_valid_scale ( & ref_buffer -> sf ) ) vpx_internal_error ( & cm -> error , VPX_CODEC_UNSUP_BITSTREAM , \"Invalid scale factors\" ) ;\n if ( ref_buffer -> buf -> corrupted ) vpx_internal_error ( & cm -> error , VPX_CODEC_CORRUPT_FRAME , \"Block reference is corrupt\" ) ;\n vp9_setup_pre_planes ( xd , idx , ref_buffer -> buf , mi_row , mi_col , & ref_buffer -> sf ) ;\n xd -> corrupted |= ref_buffer -> buf -> corrupted ;\n }"}
{"idx": 850, "target": 0, "func": "static const char * name ## _get_name ( void * ctx ) \\ {\n return # name ;\n \\ }\n static const AVClass name ## _class = {\n . class_name = # name , . item_name = name ## _get_name , . option = name ## _options \\ }\n typedef struct DefaultContext {\n const AVClass * class ;\n int nokey ;\n int noprint_wrappers ;\n int nested_section [ SECTION_MAX_NB_LEVELS ] ;\n }\n DefaultContext ;\n # undef OFFSET # define OFFSET ( x ) offsetof ( DefaultContext , x ) static const AVOption default_options [ ] = {\n {\n \"noprint_wrappers\" , \"do not print headers and footers\" , OFFSET ( noprint_wrappers ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n \"nw\" , \"do not print headers and footers\" , OFFSET ( noprint_wrappers ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n \"nokey\" , \"force no key printing\" , OFFSET ( nokey ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n \"nk\" , \"force no key printing\" , OFFSET ( nokey ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n NULL }\n , }\n ;\n DEFINE_WRITER_CLASS ( default )"}
{"idx": 851, "target": 0, "func": "struct config_filter_parser * const * config_filter_get_all ( struct config_filter_context * ctx ) {\n ARRAY_TYPE ( config_filter_parsers ) filters ;\n unsigned int i ;\n t_array_init ( & filters , 8 ) ;\n for ( i = 0 ;\n ctx -> parsers [ i ] != NULL ;\n i ++ ) {\n array_append ( & filters , & ctx -> parsers [ i ] , 1 ) ;\n }\n array_sort ( & filters , config_filter_parser_cmp_rev ) ;\n array_append_zero ( & filters ) ;\n return array_idx ( & filters , 0 ) ;\n }"}
{"idx": 852, "target": 0, "func": "static void onechr ( struct vars * v , chr c , struct state * lp , struct state * rp ) {\n if ( ! ( v -> cflags & REG_ICASE ) ) {\n newarc ( v -> nfa , PLAIN , subcolor ( v -> cm , c ) , lp , rp ) ;\n return ;\n }\n dovec ( v , allcases ( v , c ) , lp , rp ) ;\n }"}
{"idx": 853, "target": 0, "func": "static void pdo_stmt_iter_dtor ( zend_object_iterator * iter TSRMLS_DC ) {\n struct php_pdo_iterator * I = ( struct php_pdo_iterator * ) iter -> data ;\n if ( -- I -> stmt -> refcount == 0 ) {\n free_statement ( I -> stmt TSRMLS_CC ) ;\n }\n if ( I -> fetch_ahead ) {\n zval_ptr_dtor ( & I -> fetch_ahead ) ;\n }\n efree ( I ) ;\n }"}
{"idx": 854, "target": 0, "func": "static int alloc_picture ( H264Context * h , Picture * pic ) {\n int i , ret = 0 ;\n av_assert0 ( ! pic -> f . data [ 0 ] ) ;\n pic -> tf . f = & pic -> f ;\n ret = ff_thread_get_buffer ( h -> avctx , & pic -> tf , pic -> reference ? AV_GET_BUFFER_FLAG_REF : 0 ) ;\n if ( ret < 0 ) goto fail ;\n h -> linesize = pic -> f . linesize [ 0 ] ;\n h -> uvlinesize = pic -> f . linesize [ 1 ] ;\n pic -> crop = h -> sps . crop ;\n pic -> crop_top = h -> sps . crop_top ;\n pic -> crop_left = h -> sps . crop_left ;\n if ( h -> avctx -> hwaccel ) {\n const AVHWAccel * hwaccel = h -> avctx -> hwaccel ;\n av_assert0 ( ! pic -> hwaccel_picture_private ) ;\n if ( hwaccel -> priv_data_size ) {\n pic -> hwaccel_priv_buf = av_buffer_allocz ( hwaccel -> priv_data_size ) ;\n if ( ! pic -> hwaccel_priv_buf ) return AVERROR ( ENOMEM ) ;\n pic -> hwaccel_picture_private = pic -> hwaccel_priv_buf -> data ;\n }\n }\n if ( ! h -> qscale_table_pool ) {\n ret = init_table_pools ( h ) ;\n if ( ret < 0 ) goto fail ;\n }\n pic -> qscale_table_buf = av_buffer_pool_get ( h -> qscale_table_pool ) ;\n pic -> mb_type_buf = av_buffer_pool_get ( h -> mb_type_pool ) ;\n if ( ! pic -> qscale_table_buf || ! pic -> mb_type_buf ) goto fail ;\n pic -> mb_type = ( uint32_t * ) pic -> mb_type_buf -> data + 2 * h -> mb_stride + 1 ;\n pic -> qscale_table = pic -> qscale_table_buf -> data + 2 * h -> mb_stride + 1 ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n pic -> motion_val_buf [ i ] = av_buffer_pool_get ( h -> motion_val_pool ) ;\n pic -> ref_index_buf [ i ] = av_buffer_pool_get ( h -> ref_index_pool ) ;\n if ( ! pic -> motion_val_buf [ i ] || ! pic -> ref_index_buf [ i ] ) goto fail ;\n pic -> motion_val [ i ] = ( int16_t ( * ) [ 2 ] ) pic -> motion_val_buf [ i ] -> data + 4 ;\n pic -> ref_index [ i ] = pic -> ref_index_buf [ i ] -> data ;\n }\n return 0 ;\n fail : unref_picture ( h , pic ) ;\n return ( ret < 0 ) ? ret : AVERROR ( ENOMEM ) ;\n }"}
{"idx": 855, "target": 0, "func": "void evhttp_get_request ( struct evhttp * http , int fd , struct sockaddr * sa , socklen_t salen ) {\n struct evhttp_connection * evcon ;\n evcon = evhttp_get_request_connection ( http , fd , sa , salen ) ;\n if ( evcon == NULL ) return ;\n if ( http -> timeout != - 1 ) evhttp_connection_set_timeout ( evcon , http -> timeout ) ;\n evcon -> http_server = http ;\n TAILQ_INSERT_TAIL ( & http -> connections , evcon , next ) ;\n if ( evhttp_associate_new_request_with_connection ( evcon ) == - 1 ) evhttp_connection_free ( evcon ) ;\n }"}
{"idx": 856, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ContentSettingBubbleDialogTest , InvokeDialog_protocol_handlers ) {\n RunDialog ( ) ;\n }"}
{"idx": 857, "target": 0, "func": "static gint dissect_ac_if_output_terminal ( tvbuff_t * tvb , gint offset , packet_info * pinfo _U_ , proto_tree * tree , usb_conv_info_t * usb_conv_info _U_ ) {\n gint offset_start ;\n offset_start = offset ;\n proto_tree_add_item ( tree , hf_ac_if_output_terminalid , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_ac_if_output_terminaltype , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_ac_if_output_assocterminal , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_ac_if_output_sourceid , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_ac_if_output_terminal , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 1 ;\n return offset - offset_start ;\n }"}
{"idx": 858, "target": 0, "func": "static int dissect_h245_T_rtpRedundancyEncoding ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_rtpRedundancyEncoding , T_rtpRedundancyEncoding_sequence ) ;\n return offset ;\n }"}
{"idx": 859, "target": 0, "func": "void yyerror ( char * msg ) {\n int retval ;\n ip_file -> err_line_no = ip_file -> prev_token_line_no ;\n ip_file -> err_col_no = ip_file -> prev_token_col_no ;\n msyslog ( LOG_ERR , \"line %d column %d %s\" , ip_file -> err_line_no , ip_file -> err_col_no , msg ) ;\n if ( ! input_from_file ) {\n retval = snprintf ( remote_config . err_msg + remote_config . err_pos , MAXLINE - remote_config . err_pos , \"column %d %s\" , ip_file -> err_col_no , msg ) ;\n if ( retval > 0 ) remote_config . err_pos += retval ;\n ++ remote_config . no_errors ;\n }\n }"}
{"idx": 860, "target": 0, "func": "static void pxa2xx_fir_save ( QEMUFile * f , void * opaque ) {\n PXA2xxFIrState * s = ( PXA2xxFIrState * ) opaque ;\n int i ;\n qemu_put_be32 ( f , s -> enable ) ;\n qemu_put_8s ( f , & s -> control [ 0 ] ) ;\n qemu_put_8s ( f , & s -> control [ 1 ] ) ;\n qemu_put_8s ( f , & s -> control [ 2 ] ) ;\n qemu_put_8s ( f , & s -> status [ 0 ] ) ;\n qemu_put_8s ( f , & s -> status [ 1 ] ) ;\n qemu_put_byte ( f , s -> rx_len ) ;\n for ( i = 0 ;\n i < s -> rx_len ;\n i ++ ) qemu_put_byte ( f , s -> rx_fifo [ ( s -> rx_start + i ) & 63 ] ) ;\n }"}
{"idx": 861, "target": 0, "func": "void set_server_version ( void ) {\n char * version_end = server_version + sizeof ( server_version ) - 1 ;\n char * end = strxnmov ( server_version , sizeof ( server_version ) - 1 , MYSQL_SERVER_VERSION , MYSQL_SERVER_SUFFIX_STR , NullS ) ;\n # ifdef EMBEDDED_LIBRARY end = strnmov ( end , \"-embedded\" , ( version_end - end ) ) ;\n # endif # ifndef DBUG_OFF if ( ! strstr ( MYSQL_SERVER_SUFFIX_STR , \"-debug\" ) ) end = strnmov ( end , \"-debug\" , ( version_end - end ) ) ;\n # endif if ( opt_log || opt_slow_log || opt_bin_log ) strnmov ( end , \"-log\" , ( version_end - end ) ) ;\n * end = 0 ;\n }"}
{"idx": 862, "target": 0, "func": "static void transform_mby ( MACROBLOCK * x ) {\n int i ;\n for ( i = 0 ;\n i < 16 ;\n i += 2 ) {\n x -> short_fdct8x4 ( & x -> block [ i ] . src_diff [ 0 ] , & x -> block [ i ] . coeff [ 0 ] , 32 ) ;\n }\n if ( x -> e_mbd . mode_info_context -> mbmi . mode != SPLITMV ) {\n build_dcblock ( x ) ;\n x -> short_walsh4x4 ( & x -> block [ 24 ] . src_diff [ 0 ] , & x -> block [ 24 ] . coeff [ 0 ] , 8 ) ;\n }\n }"}
{"idx": 863, "target": 0, "func": "static void dissect_rsvp_eth_tspec_tlv ( proto_item * ti , packet_info * pinfo , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int tlv_length , int subtree_type ) {\n int tlv_off ;\n int bit_offset ;\n guint16 tlv_type ;\n int tlv_len ;\n guint8 profile ;\n proto_tree * rsvp_ethspec_subtree , * ethspec_profile_subtree , * ti3 ;\n for ( tlv_off = 0 ;\n tlv_off < tlv_length ;\n ) {\n tlv_type = tvb_get_ntohs ( tvb , offset + tlv_off ) ;\n tlv_len = tvb_get_ntohs ( tvb , offset + tlv_off + 2 ) ;\n if ( ( tlv_len == 0 ) || ( tlv_off + tlv_len > tlv_length ) ) {\n proto_tree_add_expert ( rsvp_object_tree , pinfo , & ei_rsvp_invalid_length , tvb , offset + tlv_off + 2 , 2 ) ;\n return ;\n }\n switch ( tlv_type ) {\n case 0 : case 1 : case 2 : rsvp_ethspec_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset + tlv_off , tlv_len , subtree_type , NULL , \"Ethernet Bandwidth Profile TLV: CIR=%.10g, CBS=%.10g, \" \"EIR=%.10g, EBS=%.10g\" , tvb_get_ntohieee_float ( tvb , offset + tlv_off + 8 ) , tvb_get_ntohieee_float ( tvb , offset + tlv_off + 12 ) , tvb_get_ntohieee_float ( tvb , offset + tlv_off + 16 ) , tvb_get_ntohieee_float ( tvb , offset + tlv_off + 20 ) ) ;\n proto_tree_add_uint_format_value ( rsvp_ethspec_subtree , hf_rsvp_type , tvb , offset + tlv_off , 2 , tlv_type , \"%u - Ethernet Bandwidth Profile\" , tlv_type ) ;\n proto_tree_add_item ( rsvp_ethspec_subtree , hf_rsvp_eth_tspec_length , tvb , offset + tlv_off + 2 , 2 , ENC_BIG_ENDIAN ) ;\n profile = tvb_get_guint8 ( tvb , offset + tlv_off + 4 ) ;\n ti3 = proto_tree_add_item ( rsvp_ethspec_subtree , hf_rsvp_eth_tspec_profile , tvb , offset + tlv_off + 4 , 1 , ENC_NA ) ;\n ethspec_profile_subtree = proto_item_add_subtree ( ti3 , TREE ( TT_ETHSPEC_SUBTREE ) ) ;\n proto_tree_add_item ( ethspec_profile_subtree , hf_rsvp_eth_tspec_tlv_color_mode , tvb , offset + tlv_off + 4 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ethspec_profile_subtree , hf_rsvp_eth_tspec_tlv_coupling_flag , tvb , offset + tlv_off + 4 , 1 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti3 , \" %s %s\" , ( profile & ( 1U << 1 ) ) ? \"CM\" : \"\" , ( profile & ( 1U << 0 ) ) ? \"CF\" : \"\" ) ;\n proto_tree_add_item ( rsvp_ethspec_subtree , hf_rsvp_eth_tspec_index , tvb , offset + tlv_off + 5 , 1 , ENC_NA ) ;\n proto_tree_add_item ( rsvp_ethspec_subtree , hf_rsvp_eth_tspec_reserved , tvb , offset + tlv_off + 6 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_ethspec_subtree , hf_rsvp_eth_tspec_cir , tvb , offset + tlv_off + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_ethspec_subtree , hf_rsvp_eth_tspec_cbs , tvb , offset + tlv_off + 12 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_ethspec_subtree , hf_rsvp_eth_tspec_eir , tvb , offset + tlv_off + 16 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_ethspec_subtree , hf_rsvp_eth_tspec_ebs , tvb , offset + tlv_off + 20 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \"ETH profile: CIR=%.10g, CBS=%.10g, EIR=%.10g, \" \"EBS=%.10g\" , tvb_get_ntohieee_float ( tvb , offset + tlv_off + 8 ) , tvb_get_ntohieee_float ( tvb , offset + tlv_off + 12 ) , tvb_get_ntohieee_float ( tvb , offset + tlv_off + 16 ) , tvb_get_ntohieee_float ( tvb , offset + tlv_off + 20 ) ) ;\n case 3 : if ( tlv_len != 8 ) {\n proto_tree_add_expert_format ( rsvp_object_tree , pinfo , & ei_rsvp_invalid_length , tvb , offset + tlv_off + 2 , 2 , \"Invalid TLV length\" ) ;\n return ;\n }\n bit_offset = ( offset << 5 ) + 31 ;\n proto_tree_add_bits_item ( rsvp_object_tree , hf_rsvp_eth_tspec_il2cp , tvb , bit_offset , 4 , ENC_BIG_ENDIAN ) ;\n bit_offset += 4 ;\n proto_tree_add_bits_item ( rsvp_object_tree , hf_rsvp_eth_tspec_el2cp , tvb , bit_offset , 4 , ENC_BIG_ENDIAN ) ;\n break ;\n case 255 : rsvp_ethspec_subtree = proto_tree_add_subtree ( rsvp_object_tree , tvb , offset + tlv_off , tlv_len , subtree_type , NULL , \"RESERVED (RFC6003)\" ) ;\n proto_tree_add_uint_format_value ( rsvp_ethspec_subtree , hf_rsvp_type , tvb , offset + tlv_off , 2 , tlv_type , \"%u (RESERVED)\" , tlv_type ) ;\n proto_tree_add_item ( rsvp_ethspec_subtree , hf_rsvp_eth_tspec_length , tvb , offset + tlv_off + 2 , 2 , ENC_BIG_ENDIAN ) ;\n break ;\n case 129 : rsvp_ethspec_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset + tlv_off , tlv_len , subtree_type , NULL , \"Ethernet Bandwidth Profile TLV: CIR=%.10g, CBS=%.10g, \" \"EIR=%.10g, EBS=%.10g\" , tvb_get_ntohieee_float ( tvb , offset + tlv_off + 8 ) , tvb_get_ntohieee_float ( tvb , offset + tlv_off + 12 ) , tvb_get_ntohieee_float ( tvb , offset + tlv_off + 16 ) , tvb_get_ntohieee_float ( tvb , offset + tlv_off + 20 ) ) ;\n proto_tree_add_uint_format_value ( rsvp_ethspec_subtree , hf_rsvp_type , tvb , offset + tlv_off , 2 , tlv_type , \"%u - Ethernet Bandwidth Profile\" , tlv_type ) ;\n proto_tree_add_item ( rsvp_ethspec_subtree , hf_rsvp_eth_tspec_length , tvb , offset + tlv_off + 2 , 2 , ENC_BIG_ENDIAN ) ;\n profile = tvb_get_guint8 ( tvb , offset + tlv_off + 4 ) ;\n ti3 = proto_tree_add_item ( rsvp_ethspec_subtree , hf_rsvp_eth_tspec_profile , tvb , offset + tlv_off + 4 , 1 , ENC_BIG_ENDIAN ) ;\n ethspec_profile_subtree = proto_item_add_subtree ( ti3 , TREE ( TT_ETHSPEC_SUBTREE ) ) ;\n proto_tree_add_item ( ethspec_profile_subtree , hf_rsvp_eth_tspec_tlv_color_mode , tvb , offset + tlv_off + 4 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ethspec_profile_subtree , hf_rsvp_eth_tspec_tlv_coupling_flag , tvb , offset + tlv_off + 4 , 1 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti3 , \" %s %s\" , ( profile & ( 1U << 1 ) ) ? \"CM\" : \"\" , ( profile & ( 1U << 0 ) ) ? \"CF\" : \"\" ) ;\n proto_tree_add_item ( rsvp_ethspec_subtree , hf_rsvp_eth_tspec_index , tvb , offset + tlv_off + 5 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_ethspec_subtree , hf_rsvp_eth_tspec_reserved , tvb , offset + tlv_off + 6 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_ethspec_subtree , hf_rsvp_eth_tspec_cir , tvb , offset + tlv_off + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_ethspec_subtree , hf_rsvp_eth_tspec_cbs , tvb , offset + tlv_off + 12 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_ethspec_subtree , hf_rsvp_eth_tspec_eir , tvb , offset + tlv_off + 16 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_ethspec_subtree , hf_rsvp_eth_tspec_ebs , tvb , offset + tlv_off + 20 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \"ETH profile: CIR=%.10g, CBS=%.10g, EIR=%.10g, \" \"EBS=%.10g\" , tvb_get_ntohieee_float ( tvb , offset + tlv_off + 8 ) , tvb_get_ntohieee_float ( tvb , offset + tlv_off + 12 ) , tvb_get_ntohieee_float ( tvb , offset + tlv_off + 16 ) , tvb_get_ntohieee_float ( tvb , offset + tlv_off + 20 ) ) ;\n break ;\n default : proto_tree_add_uint_format ( rsvp_object_tree , hf_rsvp_type , tvb , offset + tlv_off , 2 , tlv_type , \"Unknown TLV: %u\" , tlv_type ) ;\n break ;\n }\n tlv_off += tlv_len ;\n }\n }"}
{"idx": 864, "target": 0, "func": "static const char * cmd_rule ( cmd_parms * cmd , void * _dcfg , const char * p1 , const char * p2 , const char * p3 ) {\n return add_rule ( cmd , ( directory_config * ) _dcfg , RULE_TYPE_NORMAL , p1 , p2 , p3 ) ;\n }"}
{"idx": 865, "target": 0, "func": "static void dissect_zcl_pwr_prof_pwrprofschedcontrsnotif ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_pwr_prof_id , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_start_after , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_stop_before , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n }"}
{"idx": 866, "target": 0, "func": "static void StrictNamesCheck ( RestoreOptions * ropt ) {\n const char * missing_name ;\n Assert ( ropt -> strict_names ) ;\n if ( ropt -> schemaNames . head != NULL ) {\n missing_name = simple_string_list_not_touched ( & ropt -> schemaNames ) ;\n if ( missing_name != NULL ) exit_horribly ( modulename , \"schema \\\"%s\\\" not found\\n\" , missing_name ) ;\n }\n if ( ropt -> tableNames . head != NULL ) {\n missing_name = simple_string_list_not_touched ( & ropt -> tableNames ) ;\n if ( missing_name != NULL ) exit_horribly ( modulename , \"table \\\"%s\\\" not found\\n\" , missing_name ) ;\n }\n if ( ropt -> indexNames . head != NULL ) {\n missing_name = simple_string_list_not_touched ( & ropt -> indexNames ) ;\n if ( missing_name != NULL ) exit_horribly ( modulename , \"index \\\"%s\\\" not found\\n\" , missing_name ) ;\n }\n if ( ropt -> functionNames . head != NULL ) {\n missing_name = simple_string_list_not_touched ( & ropt -> functionNames ) ;\n if ( missing_name != NULL ) exit_horribly ( modulename , \"function \\\"%s\\\" not found\\n\" , missing_name ) ;\n }\n if ( ropt -> triggerNames . head != NULL ) {\n missing_name = simple_string_list_not_touched ( & ropt -> triggerNames ) ;\n if ( missing_name != NULL ) exit_horribly ( modulename , \"trigger \\\"%s\\\" not found\\n\" , missing_name ) ;\n }\n }"}
{"idx": 867, "target": 0, "func": "void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 ) sadMxN ( 16 , 32 ) sadMxNx4D ( 16 , 32 ) sadMxN ( 16 , 16 ) sadMxNxK ( 16 , 16 , 3 ) sadMxNxK ( 16 , 16 , 8 ) sadMxNx4D ( 16 , 16 ) sadMxN ( 16 , 8 ) sadMxNxK ( 16 , 8 , 3 ) sadMxNxK ( 16 , 8 , 8 ) sadMxNx4D ( 16 , 8 ) sadMxN ( 8 , 16 ) sadMxNxK ( 8 , 16 , 3 ) sadMxNxK ( 8 , 16 , 8 ) sadMxNx4D ( 8 , 16 ) sadMxN ( 8 , 8 ) sadMxNxK ( 8 , 8 , 3 ) sadMxNxK ( 8 , 8 , 8 ) sadMxNx4D ( 8 , 8 ) sadMxN ( 8 , 4 ) sadMxNxK ( 8 , 4 , 8 ) sadMxNx4D ( 8 , 4 ) sadMxN ( 4 , 8 ) sadMxNxK ( 4 , 8 , 8 )"}
{"idx": 868, "target": 0, "func": "static void qemu_kvm_start_vcpu ( CPUState * cpu ) {\n cpu -> thread = g_malloc0 ( sizeof ( QemuThread ) ) ;\n cpu -> halt_cond = g_malloc0 ( sizeof ( QemuCond ) ) ;\n qemu_cond_init ( cpu -> halt_cond ) ;\n qemu_thread_create ( cpu -> thread , qemu_kvm_cpu_thread_fn , cpu , QEMU_THREAD_JOINABLE ) ;\n while ( ! cpu -> created ) {\n qemu_cond_wait ( & qemu_cpu_cond , & qemu_global_mutex ) ;\n }\n }"}
{"idx": 869, "target": 0, "func": "static int idcin_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n IdcinContext * s = avctx -> priv_data ;\n const uint8_t * pal = av_packet_get_side_data ( avpkt , AV_PKT_DATA_PALETTE , NULL ) ;\n AVFrame * frame = data ;\n int ret ;\n s -> buf = buf ;\n s -> size = buf_size ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \" id CIN Video: get_buffer() failed\\n\" ) ;\n return ret ;\n }\n idcin_decode_vlcs ( s , frame ) ;\n if ( pal ) {\n frame -> palette_has_changed = 1 ;\n memcpy ( s -> pal , pal , AVPALETTE_SIZE ) ;\n }\n memcpy ( frame -> data [ 1 ] , s -> pal , AVPALETTE_SIZE ) ;\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 870, "target": 1, "func": "static void handle_raw_data ( char * packet , int len , struct query * q , int dns_fd , int tun_fd , int userid ) {\n if ( check_user_and_ip ( userid , q ) != 0 ) {\n return ;\n }\n users [ userid ] . last_pkt = time ( NULL ) ;\n memcpy ( & ( users [ userid ] . q ) , q , sizeof ( struct query ) ) ;\n users [ userid ] . inpacket . offset = 0 ;\n memcpy ( users [ userid ] . inpacket . data , packet , len ) ;\n users [ userid ] . inpacket . len = len ;\n if ( debug >= 1 ) {\n fprintf ( stderr , \"IN pkt raw, total %d, from user %d\\n\" , users [ userid ] . inpacket . len , userid ) ;\n }\n handle_full_packet ( tun_fd , dns_fd , userid ) ;\n }"}
{"idx": 871, "target": 0, "func": "extern int name ( int ) __THROW __exctype ( isalnum ) ;\n __exctype ( isalpha ) ;\n __exctype ( iscntrl ) ;\n __exctype ( isdigit )"}
{"idx": 872, "target": 1, "func": "static void ucnv_ASCIIFromUTF8 ( UConverterFromUnicodeArgs * pFromUArgs , UConverterToUnicodeArgs * pToUArgs , UErrorCode * pErrorCode ) {\n const uint8_t * source , * sourceLimit ;\n uint8_t * target ;\n int32_t targetCapacity , length ;\n uint8_t c ;\n if ( pToUArgs -> converter -> toUnicodeStatus != 0 ) {\n * pErrorCode = U_USING_DEFAULT_WARNING ;\n return ;\n }\n source = ( const uint8_t * ) pToUArgs -> source ;\n sourceLimit = ( const uint8_t * ) pToUArgs -> sourceLimit ;\n target = ( uint8_t * ) pFromUArgs -> target ;\n targetCapacity = ( int32_t ) ( pFromUArgs -> targetLimit - pFromUArgs -> target ) ;\n length = ( int32_t ) ( sourceLimit - source ) ;\n if ( length < targetCapacity ) {\n targetCapacity = length ;\n }\n if ( targetCapacity >= 16 ) {\n int32_t count , loops ;\n uint8_t oredChars ;\n loops = count = targetCapacity >> 4 ;\n do {\n oredChars = * target ++ = * source ++ ;\n oredChars |= * target ++ = * source ++ ;\n oredChars |= * target ++ = * source ++ ;\n oredChars |= * target ++ = * source ++ ;\n oredChars |= * target ++ = * source ++ ;\n oredChars |= * target ++ = * source ++ ;\n oredChars |= * target ++ = * source ++ ;\n oredChars |= * target ++ = * source ++ ;\n oredChars |= * target ++ = * source ++ ;\n oredChars |= * target ++ = * source ++ ;\n oredChars |= * target ++ = * source ++ ;\n oredChars |= * target ++ = * source ++ ;\n oredChars |= * target ++ = * source ++ ;\n oredChars |= * target ++ = * source ++ ;\n oredChars |= * target ++ = * source ++ ;\n oredChars |= * target ++ = * source ++ ;\n if ( oredChars > 0x7f ) {\n source -= 16 ;\n target -= 16 ;\n break ;\n }\n }\n while ( -- count > 0 ) ;\n count = loops - count ;\n targetCapacity -= 16 * count ;\n }\n c = 0 ;\n while ( targetCapacity > 0 && ( c = * source ) <= 0x7f ) {\n ++ source ;\n * target ++ = c ;\n -- targetCapacity ;\n }\n if ( c > 0x7f ) {\n * pErrorCode = U_USING_DEFAULT_WARNING ;\n }\n else if ( source < sourceLimit && target >= ( const uint8_t * ) pFromUArgs -> targetLimit ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n pToUArgs -> source = ( const char * ) source ;\n pFromUArgs -> target = ( char * ) target ;\n }"}
{"idx": 873, "target": 0, "func": "static void display_mouse_define ( DisplayChangeListener * dcl , QEMUCursor * c ) {\n SimpleSpiceDisplay * ssd = container_of ( dcl , SimpleSpiceDisplay , dcl ) ;\n qemu_mutex_lock ( & ssd -> lock ) ;\n if ( ssd -> ptr_move ) {\n g_free ( ssd -> ptr_move ) ;\n ssd -> ptr_move = NULL ;\n }\n if ( ssd -> ptr_define ) {\n g_free ( ssd -> ptr_define ) ;\n }\n ssd -> ptr_define = qemu_spice_create_cursor_update ( ssd , c ) ;\n qemu_mutex_unlock ( & ssd -> lock ) ;\n }"}
{"idx": 874, "target": 0, "func": "int ssl_verify_alarm_type ( long type ) {\n int al ;\n switch ( type ) {\n case X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT : case X509_V_ERR_UNABLE_TO_GET_CRL : case X509_V_ERR_UNABLE_TO_GET_CRL_ISSUER : al = SSL_AD_UNKNOWN_CA ;\n break ;\n case X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE : case X509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE : case X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY : case X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD : case X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD : case X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD : case X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD : case X509_V_ERR_CERT_NOT_YET_VALID : case X509_V_ERR_CRL_NOT_YET_VALID : case X509_V_ERR_CERT_UNTRUSTED : case X509_V_ERR_CERT_REJECTED : case X509_V_ERR_HOSTNAME_MISMATCH : case X509_V_ERR_EMAIL_MISMATCH : case X509_V_ERR_IP_ADDRESS_MISMATCH : case X509_V_ERR_DANE_NO_MATCH : case X509_V_ERR_EE_KEY_TOO_SMALL : case X509_V_ERR_CA_KEY_TOO_SMALL : case X509_V_ERR_CA_MD_TOO_WEAK : al = SSL_AD_BAD_CERTIFICATE ;\n break ;\n case X509_V_ERR_CERT_SIGNATURE_FAILURE : case X509_V_ERR_CRL_SIGNATURE_FAILURE : al = SSL_AD_DECRYPT_ERROR ;\n break ;\n case X509_V_ERR_CERT_HAS_EXPIRED : case X509_V_ERR_CRL_HAS_EXPIRED : al = SSL_AD_CERTIFICATE_EXPIRED ;\n break ;\n case X509_V_ERR_CERT_REVOKED : al = SSL_AD_CERTIFICATE_REVOKED ;\n break ;\n case X509_V_ERR_UNSPECIFIED : case X509_V_ERR_OUT_OF_MEM : case X509_V_ERR_INVALID_CALL : case X509_V_ERR_STORE_LOOKUP : al = SSL_AD_INTERNAL_ERROR ;\n break ;\n case X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT : case X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN : case X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY : case X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE : case X509_V_ERR_CERT_CHAIN_TOO_LONG : case X509_V_ERR_PATH_LENGTH_EXCEEDED : case X509_V_ERR_INVALID_CA : al = SSL_AD_UNKNOWN_CA ;\n break ;\n case X509_V_ERR_APPLICATION_VERIFICATION : al = SSL_AD_HANDSHAKE_FAILURE ;\n break ;\n case X509_V_ERR_INVALID_PURPOSE : al = SSL_AD_UNSUPPORTED_CERTIFICATE ;\n break ;\n default : al = SSL_AD_CERTIFICATE_UNKNOWN ;\n break ;\n }\n return ( al ) ;\n }"}
{"idx": 875, "target": 0, "func": "static time_t _zip_d2u_time ( int dtime , int ddate ) {\n struct tm tm ;\n memset ( & tm , 0 , sizeof ( tm ) ) ;\n tm . tm_isdst = - 1 ;\n tm . tm_year = ( ( ddate >> 9 ) & 127 ) + 1980 - 1900 ;\n tm . tm_mon = ( ( ddate >> 5 ) & 15 ) - 1 ;\n tm . tm_mday = ddate & 31 ;\n tm . tm_hour = ( dtime >> 11 ) & 31 ;\n tm . tm_min = ( dtime >> 5 ) & 63 ;\n tm . tm_sec = ( dtime << 1 ) & 62 ;\n return mktime ( & tm ) ;\n }"}
{"idx": 876, "target": 1, "func": "static int mpeg_decode_frame ( AVCodecContext * avctx , void * data , int * got_output , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n Mpeg1Context * s = avctx -> priv_data ;\n AVFrame * picture = data ;\n MpegEncContext * s2 = & s -> mpeg_enc_ctx ;\n av_dlog ( avctx , \"fill_buffer\\n\" ) ;\n if ( buf_size == 0 || ( buf_size == 4 && AV_RB32 ( buf ) == SEQ_END_CODE ) ) {\n if ( s2 -> low_delay == 0 && s2 -> next_picture_ptr ) {\n * picture = s2 -> next_picture_ptr -> f ;\n s2 -> next_picture_ptr = NULL ;\n * got_output = 1 ;\n }\n return buf_size ;\n }\n if ( s2 -> flags & CODEC_FLAG_TRUNCATED ) {\n int next = ff_mpeg1_find_frame_end ( & s2 -> parse_context , buf , buf_size , NULL ) ;\n if ( ff_combine_frame ( & s2 -> parse_context , next , ( const uint8_t * * ) & buf , & buf_size ) < 0 ) return buf_size ;\n }\n if ( s -> mpeg_enc_ctx_allocated == 0 && avctx -> codec_tag == AV_RL32 ( \"VCR2\" ) ) vcr2_init_sequence ( avctx ) ;\n s -> slice_count = 0 ;\n if ( avctx -> extradata && ! s -> extradata_decoded ) {\n int ret = decode_chunks ( avctx , picture , got_output , avctx -> extradata , avctx -> extradata_size ) ;\n s -> extradata_decoded = 1 ;\n if ( ret < 0 && ( avctx -> err_recognition & AV_EF_EXPLODE ) ) return ret ;\n }\n return decode_chunks ( avctx , picture , got_output , buf , buf_size ) ;\n }"}
{"idx": 877, "target": 0, "func": "static int alloc_addbyter ( int output , FILE * data ) {\n struct asprintf * infop = ( struct asprintf * ) data ;\n unsigned char outc = ( unsigned char ) output ;\n if ( ! infop -> buffer ) {\n infop -> buffer = malloc ( 32 ) ;\n if ( ! infop -> buffer ) {\n infop -> fail = 1 ;\n return - 1 ;\n }\n infop -> alloc = 32 ;\n infop -> len = 0 ;\n }\n else if ( infop -> len + 1 >= infop -> alloc ) {\n char * newptr = NULL ;\n size_t newsize = infop -> alloc * 2 ;\n if ( newsize > infop -> alloc ) newptr = realloc ( infop -> buffer , newsize ) ;\n if ( ! newptr ) {\n infop -> fail = 1 ;\n return - 1 ;\n }\n infop -> buffer = newptr ;\n infop -> alloc = newsize ;\n }\n infop -> buffer [ infop -> len ] = outc ;\n infop -> len ++ ;\n return outc ;\n }"}
{"idx": 878, "target": 0, "func": "static int dissect_h245_IntegrityCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_IntegrityCapability , IntegrityCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 879, "target": 0, "func": "TEST_F ( FullscreenControllerStateUnitTest , BackgroundCapturedTabExitsFullscreen ) {\n content : : WebContentsDelegate * const wc_delegate = static_cast < content : : WebContentsDelegate * > ( browser ( ) ) ;\n ASSERT_TRUE ( wc_delegate -> EmbedsFullscreenWidget ( ) ) ;\n AddTab ( browser ( ) , GURL ( url : : kAboutBlankURL ) ) ;\n AddTab ( browser ( ) , GURL ( url : : kAboutBlankURL ) ) ;\n content : : WebContents * const first_tab = browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 0 ) ;\n content : : WebContents * const second_tab = browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 1 ) ;\n browser ( ) -> tab_strip_model ( ) -> ActivateTabAt ( 0 , true ) ;\n const gfx : : Size kCaptureSize ( 1280 , 720 ) ;\n first_tab -> IncrementCapturerCount ( kCaptureSize ) ;\n ASSERT_TRUE ( InvokeEvent ( TAB_FULLSCREEN_TRUE ) ) ;\n EXPECT_FALSE ( browser ( ) -> window ( ) -> IsFullscreen ( ) ) ;\n EXPECT_TRUE ( wc_delegate -> IsFullscreenForTabOrPending ( first_tab ) ) ;\n EXPECT_FALSE ( wc_delegate -> IsFullscreenForTabOrPending ( second_tab ) ) ;\n EXPECT_FALSE ( GetFullscreenController ( ) -> IsWindowFullscreenForTabOrPending ( ) ) ;\n browser ( ) -> tab_strip_model ( ) -> ActivateTabAt ( 1 , true ) ;\n ASSERT_TRUE ( InvokeEvent ( TAB_FULLSCREEN_TRUE ) ) ;\n ASSERT_TRUE ( InvokeEvent ( WINDOW_CHANGE ) ) ;\n EXPECT_TRUE ( browser ( ) -> window ( ) -> IsFullscreen ( ) ) ;\n EXPECT_TRUE ( wc_delegate -> IsFullscreenForTabOrPending ( first_tab ) ) ;\n EXPECT_TRUE ( wc_delegate -> IsFullscreenForTabOrPending ( second_tab ) ) ;\n EXPECT_TRUE ( GetFullscreenController ( ) -> IsWindowFullscreenForTabOrPending ( ) ) ;\n GetFullscreenController ( ) -> ExitFullscreenModeForTab ( first_tab ) ;\n EXPECT_TRUE ( browser ( ) -> window ( ) -> IsFullscreen ( ) ) ;\n EXPECT_FALSE ( wc_delegate -> IsFullscreenForTabOrPending ( first_tab ) ) ;\n EXPECT_TRUE ( wc_delegate -> IsFullscreenForTabOrPending ( second_tab ) ) ;\n EXPECT_TRUE ( GetFullscreenController ( ) -> IsWindowFullscreenForTabOrPending ( ) ) ;\n ASSERT_TRUE ( InvokeEvent ( TAB_FULLSCREEN_FALSE ) ) ;\n ASSERT_TRUE ( InvokeEvent ( WINDOW_CHANGE ) ) ;\n EXPECT_FALSE ( browser ( ) -> window ( ) -> IsFullscreen ( ) ) ;\n EXPECT_FALSE ( wc_delegate -> IsFullscreenForTabOrPending ( first_tab ) ) ;\n EXPECT_FALSE ( wc_delegate -> IsFullscreenForTabOrPending ( second_tab ) ) ;\n EXPECT_FALSE ( GetFullscreenController ( ) -> IsWindowFullscreenForTabOrPending ( ) ) ;\n }"}
{"idx": 880, "target": 0, "func": "static gboolean is_readable_response ( guint8 opcode ) {\n return ( opcode == ATT_OPCODE_READ_RESPONSE || opcode == ATT_OPCODE_READ_BLOB_RESPONSE || opcode == ATT_OPCODE_READ_BY_TYPE_RESPONSE || opcode == ATT_OPCODE_READ_MULTIPLE_RESPONSE ) ;\n }"}
{"idx": 881, "target": 0, "func": "static int cdxl_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * pkt ) {\n CDXLVideoContext * c = avctx -> priv_data ;\n AVFrame * const p = data ;\n int ret , w , h , encoding , aligned_width , buf_size = pkt -> size ;\n const uint8_t * buf = pkt -> data ;\n if ( buf_size < 32 ) return AVERROR_INVALIDDATA ;\n encoding = buf [ 1 ] & 7 ;\n c -> format = buf [ 1 ] & 0xE0 ;\n w = AV_RB16 ( & buf [ 14 ] ) ;\n h = AV_RB16 ( & buf [ 16 ] ) ;\n c -> bpp = buf [ 19 ] ;\n c -> palette_size = AV_RB16 ( & buf [ 20 ] ) ;\n c -> palette = buf + 32 ;\n c -> video = c -> palette + c -> palette_size ;\n c -> video_size = buf_size - c -> palette_size - 32 ;\n if ( c -> palette_size > 512 ) return AVERROR_INVALIDDATA ;\n if ( buf_size < c -> palette_size + 32 ) return AVERROR_INVALIDDATA ;\n if ( c -> bpp < 1 ) return AVERROR_INVALIDDATA ;\n if ( c -> format != BIT_PLANAR && c -> format != BIT_LINE ) {\n av_log_ask_for_sample ( avctx , \"unsupported pixel format: 0x%0x\\n\" , c -> format ) ;\n return AVERROR_PATCHWELCOME ;\n }\n if ( ( ret = av_image_check_size ( w , h , 0 , avctx ) ) < 0 ) return ret ;\n if ( w != avctx -> width || h != avctx -> height ) avcodec_set_dimensions ( avctx , w , h ) ;\n aligned_width = FFALIGN ( c -> avctx -> width , 16 ) ;\n c -> padded_bits = aligned_width - c -> avctx -> width ;\n if ( c -> video_size < aligned_width * avctx -> height * c -> bpp / 8 ) return AVERROR_INVALIDDATA ;\n if ( ! encoding && c -> palette_size && c -> bpp <= 8 ) {\n avctx -> pix_fmt = AV_PIX_FMT_PAL8 ;\n }\n else if ( encoding == 1 && ( c -> bpp == 6 || c -> bpp == 8 ) ) {\n if ( c -> palette_size != ( 1 << ( c -> bpp - 1 ) ) ) return AVERROR_INVALIDDATA ;\n avctx -> pix_fmt = AV_PIX_FMT_BGR24 ;\n }\n else {\n av_log_ask_for_sample ( avctx , \"unsupported encoding %d and bpp %d\\n\" , encoding , c -> bpp ) ;\n return AVERROR_PATCHWELCOME ;\n }\n if ( ( ret = ff_get_buffer ( avctx , p , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n p -> pict_type = AV_PICTURE_TYPE_I ;\n if ( encoding ) {\n av_fast_padded_malloc ( & c -> new_video , & c -> new_video_size , h * w + FF_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( ! c -> new_video ) return AVERROR ( ENOMEM ) ;\n if ( c -> bpp == 8 ) cdxl_decode_ham8 ( c , p ) ;\n else cdxl_decode_ham6 ( c , p ) ;\n }\n else {\n cdxl_decode_rgb ( c , p ) ;\n }\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 882, "target": 0, "func": "void completion_last_message_add ( const char * nick ) {\n g_return_if_fail ( nick != NULL ) ;\n last_msg_add ( & global_lastmsgs , nick , TRUE , keep_privates_count ) ;\n }"}
{"idx": 883, "target": 1, "func": "static inline void set_indic_properties ( hb_glyph_info_t & info ) {\n hb_codepoint_t u = info . codepoint ;\n unsigned int type = hb_indic_get_categories ( u ) ;\n indic_category_t cat = ( indic_category_t ) ( type & 0x7Fu ) ;\n indic_position_t pos = ( indic_position_t ) ( type >> 8 ) ;\n if ( unlikely ( hb_in_ranges ( u , 0x0951u , 0x0952u , 0x1CD0u , 0x1CD2u , 0x1CD4u , 0x1CE1u ) || u == 0x1CF4u ) ) cat = OT_A ;\n else if ( unlikely ( hb_in_range ( u , 0x0953u , 0x0954u ) ) ) cat = OT_SM ;\n else if ( unlikely ( hb_in_ranges ( u , 0x0A72u , 0x0A73u , 0x1CF5u , 0x1CF6u ) ) ) cat = OT_C ;\n else if ( unlikely ( hb_in_range ( u , 0x1CE2u , 0x1CE8u ) ) ) cat = OT_A ;\n else if ( unlikely ( u == 0x1CEDu ) ) cat = OT_A ;\n else if ( unlikely ( hb_in_ranges ( u , 0xA8F2u , 0xA8F7u , 0x1CE9u , 0x1CECu , 0x1CEEu , 0x1CF1u ) ) ) {\n cat = OT_Symbol ;\n ASSERT_STATIC ( ( int ) INDIC_SYLLABIC_CATEGORY_AVAGRAHA == OT_Symbol ) ;\n }\n else if ( unlikely ( hb_in_range ( u , 0x17CDu , 0x17D1u ) || u == 0x17CBu || u == 0x17D3u || u == 0x17DDu ) ) {\n cat = OT_M ;\n pos = POS_ABOVE_C ;\n }\n else if ( unlikely ( u == 0x17C6u ) ) cat = OT_N ;\n else if ( unlikely ( u == 0x17D2u ) ) cat = OT_Coeng ;\n else if ( unlikely ( hb_in_range ( u , 0x2010u , 0x2011u ) ) ) cat = OT_PLACEHOLDER ;\n else if ( unlikely ( u == 0x25CCu ) ) cat = OT_DOTTEDCIRCLE ;\n else if ( unlikely ( u == 0xA982u ) ) cat = OT_SM ;\n else if ( unlikely ( u == 0xA9BEu ) ) cat = OT_CM2 ;\n else if ( unlikely ( u == 0xA9BDu ) ) {\n cat = OT_M ;\n pos = POS_POST_C ;\n }\n if ( ( FLAG ( cat ) & CONSONANT_FLAGS ) ) {\n pos = POS_BASE_C ;\n if ( is_ra ( u ) ) cat = OT_Ra ;\n }\n else if ( cat == OT_M ) {\n pos = matra_position ( u , pos ) ;\n }\n else if ( ( FLAG ( cat ) & ( FLAG ( OT_SM ) | FLAG ( OT_VD ) | FLAG ( OT_A ) | FLAG ( OT_Symbol ) ) ) ) {\n pos = POS_SMVD ;\n }\n if ( unlikely ( u == 0x0B01u ) ) pos = POS_BEFORE_SUB ;\n info . indic_category ( ) = cat ;\n info . indic_position ( ) = pos ;\n }"}
{"idx": 884, "target": 1, "func": "void rds_inc_info_copy ( struct rds_incoming * inc , struct rds_info_iterator * iter , __be32 saddr , __be32 daddr , int flip ) {\n struct rds_info_message minfo ;\n minfo . seq = be64_to_cpu ( inc -> i_hdr . h_sequence ) ;\n minfo . len = be32_to_cpu ( inc -> i_hdr . h_len ) ;\n if ( flip ) {\n minfo . laddr = daddr ;\n minfo . faddr = saddr ;\n minfo . lport = inc -> i_hdr . h_dport ;\n minfo . fport = inc -> i_hdr . h_sport ;\n }\n else {\n minfo . laddr = saddr ;\n minfo . faddr = daddr ;\n minfo . lport = inc -> i_hdr . h_sport ;\n minfo . fport = inc -> i_hdr . h_dport ;\n }\n rds_info_copy ( iter , & minfo , sizeof ( minfo ) ) ;\n }"}
{"idx": 885, "target": 0, "func": "static void print_month ( UCalendar * c , UChar * days [ ] , UBool useLongNames , int32_t fdow , UErrorCode * status ) {\n int32_t width , pad , i , day ;\n int32_t lens [ DAY_COUNT ] ;\n int32_t firstday , current ;\n UNumberFormat * nfmt ;\n UDateFormat * dfmt ;\n UChar s [ BUF_SIZE ] ;\n const UChar * pat = ( useLongNames ? sLongPat : sShortPat ) ;\n int32_t len = ( useLongNames ? 9 : 8 ) ;\n if ( U_FAILURE ( * status ) ) return ;\n dfmt = udat_open ( UDAT_PATTERN , UDAT_PATTERN , NULL , NULL , 0 , pat , len , status ) ;\n udat_format ( dfmt , ucal_getMillis ( c , status ) , s , BUF_SIZE , 0 , status ) ;\n get_days ( dfmt , days , useLongNames , fdow , status ) ;\n width = 6 ;\n for ( i = 0 ;\n i < DAY_COUNT ;\n ++ i ) {\n lens [ i ] = u_strlen ( days [ i ] ) ;\n width += lens [ i ] ;\n }\n pad = width - u_strlen ( s ) ;\n indent ( pad / 2 , stdout ) ;\n uprint ( s , stdout , status ) ;\n putc ( '\\n' , stdout ) ;\n print_days ( days , stdout , status ) ;\n putc ( '\\n' , stdout ) ;\n ucal_set ( c , UCAL_DATE , 1 ) ;\n firstday = ucal_get ( c , UCAL_DAY_OF_WEEK , status ) ;\n firstday -= fdow ;\n nfmt = unum_open ( UNUM_DECIMAL , NULL , 0 , NULL , NULL , status ) ;\n current = firstday ;\n if ( current < 0 ) {\n current += 7 ;\n }\n for ( i = 0 ;\n i < current ;\n ++ i ) indent ( lens [ i ] + 1 , stdout ) ;\n day = ucal_get ( c , UCAL_DATE , status ) ;\n do {\n unum_format ( nfmt , day , s , BUF_SIZE , 0 , status ) ;\n pad = lens [ current ] - u_strlen ( s ) ;\n indent ( pad , stdout ) ;\n uprint ( s , stdout , status ) ;\n putc ( ' ' , stdout ) ;\n ++ current ;\n current %= DAY_COUNT ;\n if ( current == 0 ) {\n putc ( '\\n' , stdout ) ;\n }\n ucal_add ( c , UCAL_DATE , 1 , status ) ;\n day = ucal_get ( c , UCAL_DATE , status ) ;\n }\n while ( day != 1 ) ;\n putc ( '\\n' , stdout ) ;\n free_days ( days ) ;\n unum_close ( nfmt ) ;\n udat_close ( dfmt ) ;\n }"}
{"idx": 886, "target": 0, "func": "static void twistededwards_math ( void ) {\n gpg_error_t err ;\n gcry_ctx_t ctx ;\n gcry_mpi_point_t G , Q ;\n gcry_mpi_t k ;\n gcry_mpi_t w , a , x , y , z , p , n , b , I ;\n wherestr = \"twistededwards_math\" ;\n show ( \"checking basic Twisted Edwards math\\n\" ) ;\n err = gcry_mpi_ec_new ( & ctx , NULL , \"Ed25519\" ) ;\n if ( err ) die ( \"gcry_mpi_ec_new failed: %s\\n\" , gpg_strerror ( err ) ) ;\n k = hex2mpi ( \"2D3501E723239632802454EE5DDC406EFB0BDF18486A5BDE9C0390A9C2984004\" \"F47252B628C953625B8DEB5DBCB8DA97AA43A1892D11FA83596F42E0D89CB1B6\" ) ;\n G = gcry_mpi_ec_get_point ( \"g\" , ctx , 1 ) ;\n if ( ! G ) die ( \"gcry_mpi_ec_get_point(G) failed\\n\" ) ;\n Q = gcry_mpi_point_new ( 0 ) ;\n w = gcry_mpi_new ( 0 ) ;\n a = gcry_mpi_new ( 0 ) ;\n x = gcry_mpi_new ( 0 ) ;\n y = gcry_mpi_new ( 0 ) ;\n z = gcry_mpi_new ( 0 ) ;\n I = gcry_mpi_new ( 0 ) ;\n p = gcry_mpi_ec_get_mpi ( \"p\" , ctx , 1 ) ;\n n = gcry_mpi_ec_get_mpi ( \"n\" , ctx , 1 ) ;\n b = gcry_mpi_ec_get_mpi ( \"b\" , ctx , 1 ) ;\n gcry_mpi_sub_ui ( a , p , 1 ) ;\n gcry_mpi_powm ( w , GCRYMPI_CONST_TWO , a , p ) ;\n if ( gcry_mpi_cmp_ui ( w , 1 ) ) fail ( \"failed assertion: 2^{\np-1}\n mod p == 1\\n\" ) ;\n gcry_mpi_mod ( w , p , GCRYMPI_CONST_FOUR ) ;\n if ( gcry_mpi_cmp_ui ( w , 1 ) ) fail ( \"failed assertion: p % 4 == 1\\n\" ) ;\n gcry_mpi_sub_ui ( a , n , 1 ) ;\n gcry_mpi_powm ( w , GCRYMPI_CONST_TWO , a , n ) ;\n if ( gcry_mpi_cmp_ui ( w , 1 ) ) fail ( \"failed assertion: 2^{\nn-1}\n mod n == 1\\n\" ) ;\n gcry_mpi_sub_ui ( a , p , 1 ) ;\n gcry_mpi_div ( x , NULL , a , GCRYMPI_CONST_TWO , - 1 ) ;\n gcry_mpi_powm ( w , b , x , p ) ;\n gcry_mpi_abs ( w ) ;\n if ( gcry_mpi_cmp ( w , a ) ) fail ( \"failed assertion: b^{\n(p-1)/2}\n mod p == p-1\\n\" ) ;\n gcry_mpi_sub_ui ( a , p , 1 ) ;\n gcry_mpi_div ( x , NULL , a , GCRYMPI_CONST_FOUR , - 1 ) ;\n gcry_mpi_powm ( I , GCRYMPI_CONST_TWO , x , p ) ;\n gcry_mpi_powm ( w , I , GCRYMPI_CONST_TWO , p ) ;\n if ( gcry_mpi_cmp ( w , a ) ) fail ( \"failed assertion: I^2 mod p == p-1\\n\" ) ;\n if ( ! gcry_mpi_ec_curve_point ( G , ctx ) ) fail ( \"failed assertion: G is on the curve\\n\" ) ;\n gcry_mpi_ec_mul ( Q , n , G , ctx ) ;\n if ( gcry_mpi_ec_get_affine ( x , y , Q , ctx ) ) fail ( \"failed to get affine coordinates\\n\" ) ;\n if ( gcry_mpi_cmp_ui ( x , 0 ) || gcry_mpi_cmp_ui ( y , 1 ) ) fail ( \"failed assertion: nG == (0,1)\\n\" ) ;\n gcry_mpi_release ( a ) ;\n a = hex2mpi ( \"4f71d012df3c371af3ea4dc38385ca5bb7272f90cb1b008b3ed601c76de1d496\" \"e30cbf625f0a756a678d8f256d5325595cccc83466f36db18f0178eb9925edd3\" ) ;\n gcry_mpi_ec_mul ( Q , a , G , ctx ) ;\n if ( gcry_mpi_ec_get_affine ( x , y , Q , ctx ) ) fail ( \"failed to get affine coordinates\\n\" ) ;\n if ( cmp_mpihex ( x , ( \"157f7361c577aad36f67ed33e38dc7be\" \"00014fecc2165ca5cee9eee19fe4d2c1\" ) ) || cmp_mpihex ( y , ( \"5a69dbeb232276b38f3f5016547bb2a2\" \"4025645f0b820e72b8cad4f0a909a092\" ) ) ) {\n fail ( \"sample point multiply failed:\\n\" ) ;\n print_mpi ( \"r\" , a ) ;\n print_mpi ( \"Rx\" , x ) ;\n print_mpi ( \"Ry\" , y ) ;\n }\n gcry_mpi_release ( a ) ;\n a = hex2mpi ( \"2d3501e723239632802454ee5ddc406efb0bdf18486a5bde9c0390a9c2984004\" \"f47252b628c953625b8deb5dbcb8da97aa43a1892d11fa83596f42e0d89cb1b6\" ) ;\n gcry_mpi_ec_mul ( Q , a , G , ctx ) ;\n if ( gcry_mpi_ec_get_affine ( x , y , Q , ctx ) ) fail ( \"failed to get affine coordinates\\n\" ) ;\n if ( cmp_mpihex ( x , ( \"6218e309d40065fcc338b3127f468371\" \"82324bd01ce6f3cf81ab44e62959c82a\" ) ) || cmp_mpihex ( y , ( \"5501492265e073d874d9e5b81e7f8784\" \"8a826e80cce2869072ac60c3004356e5\" ) ) ) {\n fail ( \"sample point multiply failed:\\n\" ) ;\n print_mpi ( \"r\" , a ) ;\n print_mpi ( \"Rx\" , x ) ;\n print_mpi ( \"Ry\" , y ) ;\n }\n gcry_mpi_release ( I ) ;\n gcry_mpi_release ( b ) ;\n gcry_mpi_release ( n ) ;\n gcry_mpi_release ( p ) ;\n gcry_mpi_release ( w ) ;\n gcry_mpi_release ( a ) ;\n gcry_mpi_release ( x ) ;\n gcry_mpi_release ( y ) ;\n gcry_mpi_release ( z ) ;\n gcry_mpi_point_release ( Q ) ;\n gcry_mpi_point_release ( G ) ;\n gcry_mpi_release ( k ) ;\n gcry_ctx_release ( ctx ) ;\n }"}
{"idx": 887, "target": 0, "func": "unsigned int _zip_read4 ( unsigned char * * a ) {\n unsigned int ret ;\n ret = ( ( ( ( ( ( * a ) [ 3 ] << 8 ) + ( * a ) [ 2 ] ) << 8 ) + ( * a ) [ 1 ] ) << 8 ) + ( * a ) [ 0 ] ;\n * a += 4 ;\n return ret ;\n }"}
{"idx": 888, "target": 0, "func": "void TSError ( const char * fmt , ... ) {\n va_list args ;\n if ( is_action_tag_set ( \"deft\" ) || is_action_tag_set ( \"sdk_vbos_errors\" ) ) {\n va_start ( args , fmt ) ;\n ErrorV ( fmt , args ) ;\n va_end ( args ) ;\n }\n va_start ( args , fmt ) ;\n Log : : va_error ( ( char * ) fmt , args ) ;\n va_end ( args ) ;\n }"}
{"idx": 889, "target": 0, "func": "static void categorize ( COOKContext * q , COOKSubpacket * p , int * quant_index_table , int * category , int * category_index ) {\n int exp_idx , bias , tmpbias1 , tmpbias2 , bits_left , num_bits , index , v , i , j ;\n int exp_index2 [ 102 ] = {\n 0 }\n ;\n int exp_index1 [ 102 ] = {\n 0 }\n ;\n int tmp_categorize_array [ 128 * 2 ] = {\n 0 }\n ;\n int tmp_categorize_array1_idx = p -> numvector_size ;\n int tmp_categorize_array2_idx = p -> numvector_size ;\n bits_left = p -> bits_per_subpacket - get_bits_count ( & q -> gb ) ;\n if ( bits_left > q -> samples_per_channel ) bits_left = q -> samples_per_channel + ( ( bits_left - q -> samples_per_channel ) * 5 ) / 8 ;\n bias = - 32 ;\n for ( i = 32 ;\n i > 0 ;\n i = i / 2 ) {\n num_bits = 0 ;\n index = 0 ;\n for ( j = p -> total_subbands ;\n j > 0 ;\n j -- ) {\n exp_idx = av_clip ( ( i - quant_index_table [ index ] + bias ) / 2 , 0 , 7 ) ;\n index ++ ;\n num_bits += expbits_tab [ exp_idx ] ;\n }\n if ( num_bits >= bits_left - 32 ) bias += i ;\n }\n num_bits = 0 ;\n for ( i = 0 ;\n i < p -> total_subbands ;\n i ++ ) {\n exp_idx = av_clip ( ( bias - quant_index_table [ i ] ) / 2 , 0 , 7 ) ;\n num_bits += expbits_tab [ exp_idx ] ;\n exp_index1 [ i ] = exp_idx ;\n exp_index2 [ i ] = exp_idx ;\n }\n tmpbias1 = tmpbias2 = num_bits ;\n for ( j = 1 ;\n j < p -> numvector_size ;\n j ++ ) {\n if ( tmpbias1 + tmpbias2 > 2 * bits_left ) {\n int max = - 999999 ;\n index = - 1 ;\n for ( i = 0 ;\n i < p -> total_subbands ;\n i ++ ) {\n if ( exp_index1 [ i ] < 7 ) {\n v = ( - 2 * exp_index1 [ i ] ) - quant_index_table [ i ] + bias ;\n if ( v >= max ) {\n max = v ;\n index = i ;\n }\n }\n }\n if ( index == - 1 ) break ;\n tmp_categorize_array [ tmp_categorize_array1_idx ++ ] = index ;\n tmpbias1 -= expbits_tab [ exp_index1 [ index ] ] - expbits_tab [ exp_index1 [ index ] + 1 ] ;\n ++ exp_index1 [ index ] ;\n }\n else {\n int min = 999999 ;\n index = - 1 ;\n for ( i = 0 ;\n i < p -> total_subbands ;\n i ++ ) {\n if ( exp_index2 [ i ] > 0 ) {\n v = ( - 2 * exp_index2 [ i ] ) - quant_index_table [ i ] + bias ;\n if ( v < min ) {\n min = v ;\n index = i ;\n }\n }\n }\n if ( index == - 1 ) break ;\n tmp_categorize_array [ -- tmp_categorize_array2_idx ] = index ;\n tmpbias2 -= expbits_tab [ exp_index2 [ index ] ] - expbits_tab [ exp_index2 [ index ] - 1 ] ;\n -- exp_index2 [ index ] ;\n }\n }\n for ( i = 0 ;\n i < p -> total_subbands ;\n i ++ ) category [ i ] = exp_index2 [ i ] ;\n for ( i = 0 ;\n i < p -> numvector_size - 1 ;\n i ++ ) category_index [ i ] = tmp_categorize_array [ tmp_categorize_array2_idx ++ ] ;\n }"}
{"idx": 890, "target": 0, "func": "extern int name ( int ) __THROW __exctype ( isalnum ) ;\n __exctype ( isalpha ) ;\n __exctype ( iscntrl ) ;\n __exctype ( isdigit ) ;\n __exctype ( islower ) ;\n __exctype ( isgraph ) ;\n __exctype ( isprint ) ;\n __exctype ( ispunct )"}
{"idx": 891, "target": 0, "func": "static int dissect_udvm_reference_operand ( tvbuff_t * udvm_tvb , proto_tree * sigcomp_udvm_tree , gint offset , gint * start_offset , guint16 * value ) {\n guint bytecode ;\n guint16 operand ;\n guint test_bits ;\n guint display_bytecode ;\n bytecode = tvb_get_guint8 ( udvm_tvb , offset ) ;\n test_bits = bytecode >> 7 ;\n if ( test_bits == 1 ) {\n test_bits = bytecode >> 6 ;\n if ( test_bits == 2 ) {\n display_bytecode = bytecode & 0xc0 ;\n if ( display_udvm_bytecode ) proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_reference_bytecode , udvm_tvb , offset , 1 , display_bytecode ) ;\n operand = tvb_get_ntohs ( udvm_tvb , offset ) & 0x3fff ;\n * value = ( operand * 2 ) ;\n * start_offset = offset ;\n offset = offset + 2 ;\n }\n else {\n display_bytecode = bytecode & 0xc0 ;\n if ( display_udvm_bytecode ) proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_reference_bytecode , udvm_tvb , offset , 1 , display_bytecode ) ;\n offset ++ ;\n operand = tvb_get_ntohs ( udvm_tvb , offset ) ;\n * value = operand ;\n * start_offset = offset ;\n offset = offset + 2 ;\n }\n }\n else {\n display_bytecode = bytecode & 0xc0 ;\n if ( display_udvm_bytecode ) proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_reference_bytecode , udvm_tvb , offset , 1 , display_bytecode ) ;\n operand = ( bytecode & 0x7f ) ;\n * value = ( operand * 2 ) ;\n * start_offset = offset ;\n offset ++ ;\n }\n return offset ;\n }"}
{"idx": 892, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ClientHintsBrowserTest , ClientHintsNoLifetimeScriptNotAllowed ) {\n base : : HistogramTester histogram_tester ;\n ContentSettingsForOneType host_settings ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> GetSettingsForOneType ( CONTENT_SETTINGS_TYPE_CLIENT_HINTS , std : : string ( ) , & host_settings ) ;\n EXPECT_EQ ( 0u , host_settings . size ( ) ) ;\n SetClientHintExpectationsOnSubresources ( false ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> SetContentSettingDefaultScope ( accept_ch_without_lifetime_img_localhost ( ) , GURL ( ) , CONTENT_SETTINGS_TYPE_JAVASCRIPT , std : : string ( ) , CONTENT_SETTING_BLOCK ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , accept_ch_without_lifetime_img_localhost ( ) ) ;\n EXPECT_EQ ( 0u , count_client_hints_headers_seen ( ) ) ;\n EXPECT_EQ ( 1u , third_party_request_count_seen ( ) ) ;\n EXPECT_EQ ( 0u , third_party_client_hints_count_seen ( ) ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> SetContentSettingDefaultScope ( accept_ch_without_lifetime_img_localhost ( ) , GURL ( ) , CONTENT_SETTINGS_TYPE_JAVASCRIPT , std : : string ( ) , CONTENT_SETTING_ALLOW ) ;\n SetClientHintExpectationsOnSubresources ( true ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , accept_ch_without_lifetime_img_localhost ( ) ) ;\n EXPECT_EQ ( 3u , count_client_hints_headers_seen ( ) ) ;\n EXPECT_EQ ( 2u , third_party_request_count_seen ( ) ) ;\n EXPECT_EQ ( 0u , third_party_client_hints_count_seen ( ) ) ;\n VerifyContentSettingsNotNotified ( ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> ClearSettingsForOneType ( CONTENT_SETTINGS_TYPE_JAVASCRIPT ) ;\n SetClientHintExpectationsOnSubresources ( false ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> SetContentSettingDefaultScope ( accept_ch_without_lifetime_img_localhost ( ) , GURL ( ) , CONTENT_SETTINGS_TYPE_JAVASCRIPT , std : : string ( ) , CONTENT_SETTING_BLOCK ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , accept_ch_without_lifetime_img_localhost ( ) ) ;\n EXPECT_EQ ( 3u , count_client_hints_headers_seen ( ) ) ;\n EXPECT_EQ ( 3u , third_party_request_count_seen ( ) ) ;\n EXPECT_EQ ( 0u , third_party_client_hints_count_seen ( ) ) ;\n }"}
{"idx": 893, "target": 0, "func": "static void row_prop_write ( zval * object , zval * member , zval * value , const zend_literal * key TSRMLS_DC ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"This PDORow is not from a writable result set\" ) ;\n }"}
{"idx": 894, "target": 0, "func": "static gboolean check_for_offset ( proto_node * node , gpointer data ) {\n field_info * fi = PNODE_FINFO ( node ) ;\n offset_search_t * offsearch = ( offset_search_t * ) data ;\n if ( fi && ! PROTO_ITEM_IS_HIDDEN ( node ) && ! PROTO_ITEM_IS_GENERATED ( node ) && fi -> ds_tvb && offsearch -> tvb == fi -> ds_tvb ) {\n if ( offsearch -> offset >= ( guint ) fi -> start && offsearch -> offset < ( guint ) ( fi -> start + fi -> length ) ) {\n offsearch -> finfo = fi ;\n return FALSE ;\n }\n }\n return FALSE ;\n }"}
{"idx": 895, "target": 1, "func": "int yyparse ( void ) # else int yyparse ( ) # endif # endif {\n int yystate ;\n int yyerrstatus ;\n yytype_int16 yyssa [ YYINITDEPTH ] ;\n yytype_int16 * yyss ;\n yytype_int16 * yyssp ;\n YYSTYPE yyvsa [ YYINITDEPTH ] ;\n YYSTYPE * yyvs ;\n YYSTYPE * yyvsp ;\n YYSIZE_T yystacksize ;\n int yyn ;\n int yyresult ;\n int yytoken ;\n YYSTYPE yyval ;\n # if YYERROR_VERBOSE char yymsgbuf [ 128 ] ;\n char * yymsg = yymsgbuf ;\n YYSIZE_T yymsg_alloc = sizeof yymsgbuf ;\n # endif # define YYPOPSTACK ( N ) ( yyvsp -= ( N ) , yyssp -= ( N ) ) int yylen = 0 ;\n yytoken = 0 ;\n yyss = yyssa ;\n yyvs = yyvsa ;\n yystacksize = YYINITDEPTH ;\n YYDPRINTF ( ( stderr , \"Starting parse\\n\" ) ) ;\n yystate = 0 ;\n yyerrstatus = 0 ;\n yynerrs = 0 ;\n yychar = YYEMPTY ;\n yyssp = yyss ;\n yyvsp = yyvs ;\n goto yysetstate ;\n yynewstate : yyssp ++ ;\n yysetstate : * yyssp = yystate ;\n if ( yyss + yystacksize - 1 <= yyssp ) {\n YYSIZE_T yysize = yyssp - yyss + 1 ;\n # ifdef yyoverflow {\n YYSTYPE * yyvs1 = yyvs ;\n yytype_int16 * yyss1 = yyss ;\n yyoverflow ( YY_ ( \"memory exhausted\" ) , & yyss1 , yysize * sizeof ( * yyssp ) , & yyvs1 , yysize * sizeof ( * yyvsp ) , & yystacksize ) ;\n yyss = yyss1 ;\n yyvs = yyvs1 ;\n }\n # else # ifndef YYSTACK_RELOCATE goto yyexhaustedlab ;\n # else if ( YYMAXDEPTH <= yystacksize ) goto yyexhaustedlab ;\n yystacksize *= 2 ;\n if ( YYMAXDEPTH < yystacksize ) yystacksize = YYMAXDEPTH ;\n {\n yytype_int16 * yyss1 = yyss ;\n union yyalloc * yyptr = ( union yyalloc * ) YYSTACK_ALLOC ( YYSTACK_BYTES ( yystacksize ) ) ;\n if ( ! yyptr ) goto yyexhaustedlab ;\n YYSTACK_RELOCATE ( yyss_alloc , yyss ) ;\n YYSTACK_RELOCATE ( yyvs_alloc , yyvs ) ;\n # undef YYSTACK_RELOCATE if ( yyss1 != yyssa ) YYSTACK_FREE ( yyss1 ) ;\n }\n # endif # endif yyssp = yyss + yysize - 1 ;\n yyvsp = yyvs + yysize - 1 ;\n YYDPRINTF ( ( stderr , \"Stack size increased to %lu\\n\" , ( unsigned long int ) yystacksize ) ) ;\n if ( yyss + yystacksize - 1 <= yyssp ) YYABORT ;\n }\n YYDPRINTF ( ( stderr , \"Entering state %d\\n\" , yystate ) ) ;\n if ( yystate == YYFINAL ) YYACCEPT ;\n goto yybackup ;\n yybackup : yyn = yypact [ yystate ] ;\n if ( yyn == YYPACT_NINF ) goto yydefault ;\n if ( yychar == YYEMPTY ) {\n YYDPRINTF ( ( stderr , \"Reading a token: \" ) ) ;\n yychar = YYLEX ;\n }\n if ( yychar <= YYEOF ) {\n yychar = yytoken = YYEOF ;\n YYDPRINTF ( ( stderr , \"Now at end of input.\\n\" ) ) ;\n }\n else {\n yytoken = YYTRANSLATE ( yychar ) ;\n YY_SYMBOL_PRINT ( \"Next token is\" , yytoken , & yylval , & yylloc ) ;\n }\n yyn += yytoken ;\n if ( yyn < 0 || YYLAST < yyn || yycheck [ yyn ] != yytoken ) goto yydefault ;\n yyn = yytable [ yyn ] ;\n if ( yyn <= 0 ) {\n if ( yyn == 0 || yyn == YYTABLE_NINF ) goto yyerrlab ;\n yyn = - yyn ;\n goto yyreduce ;\n }\n if ( yyerrstatus ) yyerrstatus -- ;\n YY_SYMBOL_PRINT ( \"Shifting\" , yytoken , & yylval , & yylloc ) ;\n yychar = YYEMPTY ;\n yystate = yyn ;\n * ++ yyvsp = yylval ;\n goto yynewstate ;\n yydefault : yyn = yydefact [ yystate ] ;\n if ( yyn == 0 ) goto yyerrlab ;\n goto yyreduce ;\n yyreduce : yylen = yyr2 [ yyn ] ;\n yyval = yyvsp [ 1 - yylen ] ;\n YY_REDUCE_PRINT ( yyn ) ;\n switch ( yyn ) {\n case 5 : # line 320 \"ntp_parser.y\" {\n msyslog ( LOG_ERR , \"syntax error in %s line %d, column %d\" , ip_file -> fname , ip_file -> err_line_no , ip_file -> err_col_no ) ;\n }\n break ;\n case 19 : # line 354 \"ntp_parser.y\" {\n struct peer_node * my_node = create_peer_node ( ( yyvsp [ ( 1 ) - ( 3 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 3 ) ] . Address_node ) , ( yyvsp [ ( 3 ) - ( 3 ) ] . Queue ) ) ;\n if ( my_node ) enqueue ( cfgt . peers , my_node ) ;\n }\n break ;\n case 20 : # line 360 \"ntp_parser.y\" {\n struct peer_node * my_node = create_peer_node ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Address_node ) , NULL ) ;\n if ( my_node ) enqueue ( cfgt . peers , my_node ) ;\n }\n break ;\n case 27 : # line 377 \"ntp_parser.y\" {\n ( yyval . Address_node ) = create_address_node ( ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) , AF_INET ) ;\n }\n break ;\n case 28 : # line 378 \"ntp_parser.y\" {\n ( yyval . Address_node ) = create_address_node ( ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) , AF_INET6 ) ;\n }\n break ;\n case 29 : # line 382 \"ntp_parser.y\" {\n ( yyval . Address_node ) = create_address_node ( ( yyvsp [ ( 1 ) - ( 1 ) ] . String ) , 0 ) ;\n }\n break ;\n case 30 : # line 386 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Attr_val ) ) ;\n }\n break ;\n case 31 : # line 387 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Attr_val ) ) ;\n }\n break ;\n case 32 : # line 391 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 33 : # line 392 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ;\n }\n break ;\n case 34 : # line 393 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 35 : # line 394 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 36 : # line 395 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 37 : # line 396 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 38 : # line 397 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 39 : # line 398 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 40 : # line 399 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 41 : # line 400 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 42 : # line 401 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 43 : # line 402 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 44 : # line 403 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 45 : # line 404 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 46 : # line 405 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 47 : # line 415 \"ntp_parser.y\" {\n struct unpeer_node * my_node = create_unpeer_node ( ( yyvsp [ ( 2 ) - ( 2 ) ] . Address_node ) ) ;\n if ( my_node ) enqueue ( cfgt . unpeers , my_node ) ;\n }\n break ;\n case 50 : # line 434 \"ntp_parser.y\" {\n cfgt . broadcastclient = 1 ;\n }\n break ;\n case 51 : # line 436 \"ntp_parser.y\" {\n append_queue ( cfgt . manycastserver , ( yyvsp [ ( 2 ) - ( 2 ) ] . Queue ) ) ;\n }\n break ;\n case 52 : # line 438 \"ntp_parser.y\" {\n append_queue ( cfgt . multicastclient , ( yyvsp [ ( 2 ) - ( 2 ) ] . Queue ) ) ;\n }\n break ;\n case 53 : # line 449 \"ntp_parser.y\" {\n enqueue ( cfgt . vars , create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ) ;\n }\n break ;\n case 54 : # line 451 \"ntp_parser.y\" {\n cfgt . auth . control_key = ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ;\n }\n break ;\n case 55 : # line 453 \"ntp_parser.y\" {\n cfgt . auth . cryptosw ++ ;\n append_queue ( cfgt . auth . crypto_cmd_list , ( yyvsp [ ( 2 ) - ( 2 ) ] . Queue ) ) ;\n }\n break ;\n case 56 : # line 458 \"ntp_parser.y\" {\n cfgt . auth . keys = ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ;\n }\n break ;\n case 57 : # line 460 \"ntp_parser.y\" {\n cfgt . auth . keysdir = ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ;\n }\n break ;\n case 58 : # line 462 \"ntp_parser.y\" {\n cfgt . auth . request_key = ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ;\n }\n break ;\n case 59 : # line 464 \"ntp_parser.y\" {\n cfgt . auth . revoke = ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ;\n }\n break ;\n case 60 : # line 466 \"ntp_parser.y\" {\n cfgt . auth . trusted_key_list = ( yyvsp [ ( 2 ) - ( 2 ) ] . Queue ) ;\n }\n break ;\n case 61 : # line 468 \"ntp_parser.y\" {\n cfgt . auth . ntp_signd_socket = ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ;\n }\n break ;\n case 63 : # line 474 \"ntp_parser.y\" {\n ( yyval . Queue ) = create_queue ( ) ;\n }\n break ;\n case 64 : # line 479 \"ntp_parser.y\" {\n if ( ( yyvsp [ ( 2 ) - ( 2 ) ] . Attr_val ) != NULL ) ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Attr_val ) ) ;\n else ( yyval . Queue ) = ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) ;\n }\n break ;\n case 65 : # line 486 \"ntp_parser.y\" {\n if ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Attr_val ) != NULL ) ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Attr_val ) ) ;\n else ( yyval . Queue ) = create_queue ( ) ;\n }\n break ;\n case 66 : # line 496 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_sval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ;\n }\n break ;\n case 67 : # line 498 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_sval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ;\n }\n break ;\n case 68 : # line 500 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_sval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ;\n }\n break ;\n case 69 : # line 502 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_sval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ;\n }\n break ;\n case 70 : # line 504 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_sval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ;\n }\n break ;\n case 71 : # line 506 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_sval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ;\n }\n break ;\n case 72 : # line 508 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = NULL ;\n cfgt . auth . revoke = ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ;\n msyslog ( LOG_WARNING , \"'crypto revoke %d' is deprecated, \" \"please use 'revoke %d' instead.\" , cfgt . auth . revoke , cfgt . auth . revoke ) ;\n }\n break ;\n case 73 : # line 525 \"ntp_parser.y\" {\n append_queue ( cfgt . orphan_cmds , ( yyvsp [ ( 2 ) - ( 2 ) ] . Queue ) ) ;\n }\n break ;\n case 74 : # line 529 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Attr_val ) ) ;\n }\n break ;\n case 75 : # line 530 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Attr_val ) ) ;\n }\n break ;\n case 76 : # line 535 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( double ) ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 77 : # line 537 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( double ) ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 78 : # line 539 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( double ) ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 79 : # line 541 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( double ) ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 80 : # line 543 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( double ) ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 81 : # line 545 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ;\n }\n break ;\n case 82 : # line 547 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ;\n }\n break ;\n case 83 : # line 549 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ;\n }\n break ;\n case 84 : # line 551 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ;\n }\n break ;\n case 85 : # line 553 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( double ) ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 86 : # line 555 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( double ) ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 87 : # line 565 \"ntp_parser.y\" {\n append_queue ( cfgt . stats_list , ( yyvsp [ ( 2 ) - ( 2 ) ] . Queue ) ) ;\n }\n break ;\n case 88 : # line 567 \"ntp_parser.y\" {\n if ( input_from_file ) cfgt . stats_dir = ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ;\n else {\n free ( ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ;\n yyerror ( \"statsdir remote configuration ignored\" ) ;\n }\n }\n break ;\n case 89 : # line 576 \"ntp_parser.y\" {\n enqueue ( cfgt . filegen_opts , create_filegen_node ( ( yyvsp [ ( 2 ) - ( 3 ) ] . Integer ) , ( yyvsp [ ( 3 ) - ( 3 ) ] . Queue ) ) ) ;\n }\n break ;\n case 90 : # line 583 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , create_ival ( ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ) ;\n }\n break ;\n case 91 : # line 584 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( create_ival ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ) ;\n }\n break ;\n case 100 : # line 600 \"ntp_parser.y\" {\n if ( ( yyvsp [ ( 2 ) - ( 2 ) ] . Attr_val ) != NULL ) ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Attr_val ) ) ;\n else ( yyval . Queue ) = ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) ;\n }\n break ;\n case 101 : # line 607 \"ntp_parser.y\" {\n if ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Attr_val ) != NULL ) ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Attr_val ) ) ;\n else ( yyval . Queue ) = create_queue ( ) ;\n }\n break ;\n case 102 : # line 617 \"ntp_parser.y\" {\n if ( input_from_file ) ( yyval . Attr_val ) = create_attr_sval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ;\n else {\n ( yyval . Attr_val ) = NULL ;\n free ( ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ;\n yyerror ( \"filegen file remote configuration ignored\" ) ;\n }\n }\n break ;\n case 103 : # line 627 \"ntp_parser.y\" {\n if ( input_from_file ) ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n else {\n ( yyval . Attr_val ) = NULL ;\n yyerror ( \"filegen type remote configuration ignored\" ) ;\n }\n }\n break ;\n case 104 : # line 636 \"ntp_parser.y\" {\n if ( input_from_file ) ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n else {\n ( yyval . Attr_val ) = NULL ;\n yyerror ( \"filegen link remote configuration ignored\" ) ;\n }\n }\n break ;\n case 105 : # line 645 \"ntp_parser.y\" {\n if ( input_from_file ) ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n else {\n ( yyval . Attr_val ) = NULL ;\n yyerror ( \"filegen nolink remote configuration ignored\" ) ;\n }\n }\n break ;\n case 106 : # line 653 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 107 : # line 654 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 115 : # line 674 \"ntp_parser.y\" {\n append_queue ( cfgt . discard_opts , ( yyvsp [ ( 2 ) - ( 2 ) ] . Queue ) ) ;\n }\n break ;\n case 116 : # line 678 \"ntp_parser.y\" {\n append_queue ( cfgt . mru_opts , ( yyvsp [ ( 2 ) - ( 2 ) ] . Queue ) ) ;\n }\n break ;\n case 117 : # line 682 \"ntp_parser.y\" {\n enqueue ( cfgt . restrict_opts , create_restrict_node ( ( yyvsp [ ( 2 ) - ( 3 ) ] . Address_node ) , NULL , ( yyvsp [ ( 3 ) - ( 3 ) ] . Queue ) , ip_file -> line_no ) ) ;\n }\n break ;\n case 118 : # line 687 \"ntp_parser.y\" {\n enqueue ( cfgt . restrict_opts , create_restrict_node ( ( yyvsp [ ( 2 ) - ( 5 ) ] . Address_node ) , ( yyvsp [ ( 4 ) - ( 5 ) ] . Address_node ) , ( yyvsp [ ( 5 ) - ( 5 ) ] . Queue ) , ip_file -> line_no ) ) ;\n }\n break ;\n case 119 : # line 692 \"ntp_parser.y\" {\n enqueue ( cfgt . restrict_opts , create_restrict_node ( NULL , NULL , ( yyvsp [ ( 3 ) - ( 3 ) ] . Queue ) , ip_file -> line_no ) ) ;\n }\n break ;\n case 120 : # line 697 \"ntp_parser.y\" {\n enqueue ( cfgt . restrict_opts , create_restrict_node ( create_address_node ( estrdup ( \"0.0.0.0\" ) , AF_INET ) , create_address_node ( estrdup ( \"0.0.0.0\" ) , AF_INET ) , ( yyvsp [ ( 4 ) - ( 4 ) ] . Queue ) , ip_file -> line_no ) ) ;\n }\n break ;\n case 121 : # line 710 \"ntp_parser.y\" {\n enqueue ( cfgt . restrict_opts , create_restrict_node ( create_address_node ( estrdup ( \"::\" ) , AF_INET6 ) , create_address_node ( estrdup ( \"::\" ) , AF_INET6 ) , ( yyvsp [ ( 4 ) - ( 4 ) ] . Queue ) , ip_file -> line_no ) ) ;\n }\n break ;\n case 122 : # line 723 \"ntp_parser.y\" {\n enqueue ( cfgt . restrict_opts , create_restrict_node ( NULL , NULL , enqueue ( ( yyvsp [ ( 3 ) - ( 3 ) ] . Queue ) , create_ival ( ( yyvsp [ ( 2 ) - ( 3 ) ] . Integer ) ) ) , ip_file -> line_no ) ) ;\n }\n break ;\n case 123 : # line 734 \"ntp_parser.y\" {\n ( yyval . Queue ) = create_queue ( ) ;\n }\n break ;\n case 124 : # line 736 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , create_ival ( ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ) ;\n }\n break ;\n case 139 : # line 758 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Attr_val ) ) ;\n }\n break ;\n case 140 : # line 760 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Attr_val ) ) ;\n }\n break ;\n case 141 : # line 764 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 142 : # line 765 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 143 : # line 766 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 144 : # line 771 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Attr_val ) ) ;\n }\n break ;\n case 145 : # line 773 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Attr_val ) ) ;\n }\n break ;\n case 146 : # line 777 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 147 : # line 778 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 148 : # line 779 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 149 : # line 780 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 150 : # line 781 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 151 : # line 782 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 152 : # line 783 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 153 : # line 784 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 154 : # line 793 \"ntp_parser.y\" {\n enqueue ( cfgt . fudge , create_addr_opts_node ( ( yyvsp [ ( 2 ) - ( 3 ) ] . Address_node ) , ( yyvsp [ ( 3 ) - ( 3 ) ] . Queue ) ) ) ;\n }\n break ;\n case 155 : # line 798 \"ntp_parser.y\" {\n enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Attr_val ) ) ;\n }\n break ;\n case 156 : # line 800 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Attr_val ) ) ;\n }\n break ;\n case 157 : # line 804 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ;\n }\n break ;\n case 158 : # line 805 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ;\n }\n break ;\n case 159 : # line 806 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 160 : # line 807 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_sval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ;\n }\n break ;\n case 161 : # line 808 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 162 : # line 809 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 163 : # line 810 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 164 : # line 811 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 165 : # line 820 \"ntp_parser.y\" {\n append_queue ( cfgt . enable_opts , ( yyvsp [ ( 2 ) - ( 2 ) ] . Queue ) ) ;\n }\n break ;\n case 166 : # line 822 \"ntp_parser.y\" {\n append_queue ( cfgt . disable_opts , ( yyvsp [ ( 2 ) - ( 2 ) ] . Queue ) ) ;\n }\n break ;\n case 167 : # line 827 \"ntp_parser.y\" {\n if ( ( yyvsp [ ( 2 ) - ( 2 ) ] . Attr_val ) != NULL ) ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Attr_val ) ) ;\n else ( yyval . Queue ) = ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) ;\n }\n break ;\n case 168 : # line 834 \"ntp_parser.y\" {\n if ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Attr_val ) != NULL ) ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Attr_val ) ) ;\n else ( yyval . Queue ) = create_queue ( ) ;\n }\n break ;\n case 169 : # line 843 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 170 : # line 844 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 171 : # line 845 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 172 : # line 846 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 173 : # line 847 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 174 : # line 848 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 175 : # line 850 \"ntp_parser.y\" {\n if ( input_from_file ) ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n else {\n ( yyval . Attr_val ) = NULL ;\n yyerror ( \"enable/disable stats remote configuration ignored\" ) ;\n }\n }\n break ;\n case 176 : # line 865 \"ntp_parser.y\" {\n append_queue ( cfgt . tinker , ( yyvsp [ ( 2 ) - ( 2 ) ] . Queue ) ) ;\n }\n break ;\n case 177 : # line 869 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Attr_val ) ) ;\n }\n break ;\n case 178 : # line 870 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Attr_val ) ) ;\n }\n break ;\n case 179 : # line 874 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ;\n }\n break ;\n case 180 : # line 875 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ;\n }\n break ;\n case 181 : # line 876 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ;\n }\n break ;\n case 182 : # line 877 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ;\n }\n break ;\n case 183 : # line 878 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ;\n }\n break ;\n case 184 : # line 879 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ;\n }\n break ;\n case 185 : # line 880 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ;\n }\n break ;\n case 187 : # line 891 \"ntp_parser.y\" {\n if ( curr_include_level >= MAXINCLUDELEVEL ) {\n fprintf ( stderr , \"getconfig: Maximum include file level exceeded.\\n\" ) ;\n msyslog ( LOG_ERR , \"getconfig: Maximum include file level exceeded.\" ) ;\n }\n else {\n fp [ curr_include_level + 1 ] = F_OPEN ( FindConfig ( ( yyvsp [ ( 2 ) - ( 3 ) ] . String ) ) , \"r\" ) ;\n if ( fp [ curr_include_level + 1 ] == NULL ) {\n fprintf ( stderr , \"getconfig: Couldn't open <%s>\\n\" , FindConfig ( ( yyvsp [ ( 2 ) - ( 3 ) ] . String ) ) ) ;\n msyslog ( LOG_ERR , \"getconfig: Couldn't open <%s>\" , FindConfig ( ( yyvsp [ ( 2 ) - ( 3 ) ] . String ) ) ) ;\n }\n else ip_file = fp [ ++ curr_include_level ] ;\n }\n }\n break ;\n case 188 : # line 907 \"ntp_parser.y\" {\n while ( curr_include_level != - 1 ) FCLOSE ( fp [ curr_include_level -- ] ) ;\n }\n break ;\n case 189 : # line 913 \"ntp_parser.y\" {\n enqueue ( cfgt . vars , create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ) ;\n }\n break ;\n case 190 : # line 915 \"ntp_parser.y\" {\n enqueue ( cfgt . vars , create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ) ;\n }\n break ;\n case 191 : # line 917 \"ntp_parser.y\" {\n enqueue ( cfgt . vars , create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ) ;\n }\n break ;\n case 192 : # line 919 \"ntp_parser.y\" {\n }\n break ;\n case 193 : # line 921 \"ntp_parser.y\" {\n enqueue ( cfgt . vars , create_attr_sval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ) ;\n }\n break ;\n case 194 : # line 924 \"ntp_parser.y\" {\n enqueue ( cfgt . vars , create_attr_sval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ) ;\n }\n break ;\n case 195 : # line 926 \"ntp_parser.y\" {\n if ( input_from_file ) enqueue ( cfgt . vars , create_attr_sval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ) ;\n else {\n free ( ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ;\n yyerror ( \"logfile remote configuration ignored\" ) ;\n }\n }\n break ;\n case 196 : # line 937 \"ntp_parser.y\" {\n append_queue ( cfgt . logconfig , ( yyvsp [ ( 2 ) - ( 2 ) ] . Queue ) ) ;\n }\n break ;\n case 197 : # line 939 \"ntp_parser.y\" {\n append_queue ( cfgt . phone , ( yyvsp [ ( 2 ) - ( 2 ) ] . Queue ) ) ;\n }\n break ;\n case 198 : # line 941 \"ntp_parser.y\" {\n if ( input_from_file ) enqueue ( cfgt . vars , create_attr_sval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ) ;\n else {\n free ( ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ;\n yyerror ( \"saveconfigdir remote configuration ignored\" ) ;\n }\n }\n break ;\n case 199 : # line 951 \"ntp_parser.y\" {\n enqueue ( cfgt . setvar , ( yyvsp [ ( 2 ) - ( 2 ) ] . Set_var ) ) ;\n }\n break ;\n case 200 : # line 953 \"ntp_parser.y\" {\n enqueue ( cfgt . trap , create_addr_opts_node ( ( yyvsp [ ( 2 ) - ( 2 ) ] . Address_node ) , NULL ) ) ;\n }\n break ;\n case 201 : # line 955 \"ntp_parser.y\" {\n enqueue ( cfgt . trap , create_addr_opts_node ( ( yyvsp [ ( 2 ) - ( 3 ) ] . Address_node ) , ( yyvsp [ ( 3 ) - ( 3 ) ] . Queue ) ) ) ;\n }\n break ;\n case 202 : # line 957 \"ntp_parser.y\" {\n append_queue ( cfgt . ttl , ( yyvsp [ ( 2 ) - ( 2 ) ] . Queue ) ) ;\n }\n break ;\n case 203 : # line 959 \"ntp_parser.y\" {\n enqueue ( cfgt . qos , create_attr_sval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ) ;\n }\n break ;\n case 204 : # line 964 \"ntp_parser.y\" {\n enqueue ( cfgt . vars , create_attr_sval ( T_Driftfile , ( yyvsp [ ( 1 ) - ( 1 ) ] . String ) ) ) ;\n }\n break ;\n case 205 : # line 966 \"ntp_parser.y\" {\n enqueue ( cfgt . vars , create_attr_dval ( T_WanderThreshold , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ) ;\n enqueue ( cfgt . vars , create_attr_sval ( T_Driftfile , ( yyvsp [ ( 1 ) - ( 2 ) ] . String ) ) ) ;\n }\n break ;\n case 206 : # line 969 \"ntp_parser.y\" {\n enqueue ( cfgt . vars , create_attr_sval ( T_Driftfile , \"\\0\" ) ) ;\n }\n break ;\n case 207 : # line 974 \"ntp_parser.y\" {\n ( yyval . Set_var ) = create_setvar_node ( ( yyvsp [ ( 1 ) - ( 4 ) ] . String ) , ( yyvsp [ ( 3 ) - ( 4 ) ] . String ) , ( yyvsp [ ( 4 ) - ( 4 ) ] . Integer ) ) ;\n }\n break ;\n case 208 : # line 976 \"ntp_parser.y\" {\n ( yyval . Set_var ) = create_setvar_node ( ( yyvsp [ ( 1 ) - ( 3 ) ] . String ) , ( yyvsp [ ( 3 ) - ( 3 ) ] . String ) , 0 ) ;\n }\n break ;\n case 209 : # line 981 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Attr_val ) ) ;\n }\n break ;\n case 210 : # line 982 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Attr_val ) ) ;\n }\n break ;\n case 211 : # line 986 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 212 : # line 987 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_pval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Address_node ) ) ;\n }\n break ;\n case 213 : # line 991 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Attr_val ) ) ;\n }\n break ;\n case 214 : # line 992 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Attr_val ) ) ;\n }\n break ;\n case 215 : # line 997 \"ntp_parser.y\" {\n char prefix = ( yyvsp [ ( 1 ) - ( 1 ) ] . String ) [ 0 ] ;\n char * type = ( yyvsp [ ( 1 ) - ( 1 ) ] . String ) + 1 ;\n if ( prefix != '+' && prefix != '-' && prefix != '=' ) {\n yyerror ( \"Logconfig prefix is not '+', '-' or '='\\n\" ) ;\n }\n else ( yyval . Attr_val ) = create_attr_sval ( prefix , estrdup ( type ) ) ;\n YYFREE ( ( yyvsp [ ( 1 ) - ( 1 ) ] . String ) ) ;\n }\n break ;\n case 216 : # line 1012 \"ntp_parser.y\" {\n enqueue ( cfgt . nic_rules , create_nic_rule_node ( ( yyvsp [ ( 3 ) - ( 3 ) ] . Integer ) , NULL , ( yyvsp [ ( 2 ) - ( 3 ) ] . Integer ) ) ) ;\n }\n break ;\n case 217 : # line 1017 \"ntp_parser.y\" {\n enqueue ( cfgt . nic_rules , create_nic_rule_node ( 0 , ( yyvsp [ ( 3 ) - ( 3 ) ] . String ) , ( yyvsp [ ( 2 ) - ( 3 ) ] . Integer ) ) ) ;\n }\n break ;\n case 227 : # line 1048 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , create_ival ( ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ) ;\n }\n break ;\n case 228 : # line 1049 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( create_ival ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ) ;\n }\n break ;\n case 229 : # line 1054 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Attr_val ) ) ;\n }\n break ;\n case 230 : # line 1056 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Attr_val ) ) ;\n }\n break ;\n case 231 : # line 1061 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( 'i' , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 233 : # line 1067 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_shorts ( '-' , ( yyvsp [ ( 2 ) - ( 5 ) ] . Integer ) , ( yyvsp [ ( 4 ) - ( 5 ) ] . Integer ) ) ;\n }\n break ;\n case 234 : # line 1071 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , create_pval ( ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ) ;\n }\n break ;\n case 235 : # line 1072 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( create_pval ( ( yyvsp [ ( 1 ) - ( 1 ) ] . String ) ) ) ;\n }\n break ;\n case 236 : # line 1076 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Address_node ) ) ;\n }\n break ;\n case 237 : # line 1077 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Address_node ) ) ;\n }\n break ;\n case 238 : # line 1082 \"ntp_parser.y\" {\n if ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) != 0 && ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) != 1 ) {\n yyerror ( \"Integer value is not boolean (0 or 1). Assuming 1\" ) ;\n ( yyval . Integer ) = 1 ;\n }\n else ( yyval . Integer ) = ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ;\n }\n break ;\n case 239 : # line 1090 \"ntp_parser.y\" {\n ( yyval . Integer ) = 1 ;\n }\n break ;\n case 240 : # line 1091 \"ntp_parser.y\" {\n ( yyval . Integer ) = 0 ;\n }\n break ;\n case 241 : # line 1095 \"ntp_parser.y\" {\n ( yyval . Double ) = ( double ) ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ;\n }\n break ;\n case 243 : # line 1106 \"ntp_parser.y\" {\n cfgt . sim_details = create_sim_node ( ( yyvsp [ ( 3 ) - ( 5 ) ] . Queue ) , ( yyvsp [ ( 4 ) - ( 5 ) ] . Queue ) ) ;\n old_config_style = 1 ;\n }\n break ;\n case 244 : # line 1120 \"ntp_parser.y\" {\n old_config_style = 0 ;\n }\n break ;\n case 245 : # line 1124 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 3 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 3 ) ] . Attr_val ) ) ;\n }\n break ;\n case 246 : # line 1125 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Attr_val ) ) ;\n }\n break ;\n case 247 : # line 1129 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 3 ) ] . Integer ) , ( yyvsp [ ( 3 ) - ( 3 ) ] . Double ) ) ;\n }\n break ;\n case 248 : # line 1130 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 3 ) ] . Integer ) , ( yyvsp [ ( 3 ) - ( 3 ) ] . Double ) ) ;\n }\n break ;\n case 249 : # line 1134 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Sim_server ) ) ;\n }\n break ;\n case 250 : # line 1135 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Sim_server ) ) ;\n }\n break ;\n case 251 : # line 1140 \"ntp_parser.y\" {\n ( yyval . Sim_server ) = create_sim_server ( ( yyvsp [ ( 1 ) - ( 5 ) ] . Address_node ) , ( yyvsp [ ( 3 ) - ( 5 ) ] . Double ) , ( yyvsp [ ( 4 ) - ( 5 ) ] . Queue ) ) ;\n }\n break ;\n case 252 : # line 1144 \"ntp_parser.y\" {\n ( yyval . Double ) = ( yyvsp [ ( 3 ) - ( 4 ) ] . Double ) ;\n }\n break ;\n case 253 : # line 1148 \"ntp_parser.y\" {\n ( yyval . Address_node ) = ( yyvsp [ ( 3 ) - ( 3 ) ] . Address_node ) ;\n }\n break ;\n case 254 : # line 1152 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Sim_script ) ) ;\n }\n break ;\n case 255 : # line 1153 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Sim_script ) ) ;\n }\n break ;\n case 256 : # line 1158 \"ntp_parser.y\" {\n ( yyval . Sim_script ) = create_sim_script_info ( ( yyvsp [ ( 3 ) - ( 6 ) ] . Double ) , ( yyvsp [ ( 5 ) - ( 6 ) ] . Queue ) ) ;\n }\n break ;\n case 257 : # line 1162 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 3 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 3 ) ] . Attr_val ) ) ;\n }\n break ;\n case 258 : # line 1163 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Attr_val ) ) ;\n }\n break ;\n case 259 : # line 1168 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 3 ) ] . Integer ) , ( yyvsp [ ( 3 ) - ( 3 ) ] . Double ) ) ;\n }\n break ;\n case 260 : # line 1170 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 3 ) ] . Integer ) , ( yyvsp [ ( 3 ) - ( 3 ) ] . Double ) ) ;\n }\n break ;\n case 261 : # line 1172 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 3 ) ] . Integer ) , ( yyvsp [ ( 3 ) - ( 3 ) ] . Double ) ) ;\n }\n break ;\n case 262 : # line 1174 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 3 ) ] . Integer ) , ( yyvsp [ ( 3 ) - ( 3 ) ] . Double ) ) ;\n }\n break ;\n case 263 : # line 1176 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 3 ) ] . Integer ) , ( yyvsp [ ( 3 ) - ( 3 ) ] . Double ) ) ;\n }\n break ;\n # line 3826 \"ntp_parser.c\" default : break ;\n }\n YY_SYMBOL_PRINT ( \"-> $$ =\" , yyr1 [ yyn ] , & yyval , & yyloc ) ;\n YYPOPSTACK ( yylen ) ;\n yylen = 0 ;\n YY_STACK_PRINT ( yyss , yyssp ) ;\n * ++ yyvsp = yyval ;\n yyn = yyr1 [ yyn ] ;\n yystate = yypgoto [ yyn - YYNTOKENS ] + * yyssp ;\n if ( 0 <= yystate && yystate <= YYLAST && yycheck [ yystate ] == * yyssp ) yystate = yytable [ yystate ] ;\n else yystate = yydefgoto [ yyn - YYNTOKENS ] ;\n goto yynewstate ;\n yyerrlab : if ( ! yyerrstatus ) {\n ++ yynerrs ;\n # if ! YYERROR_VERBOSE yyerror ( YY_ ( \"syntax error\" ) ) ;\n # else {\n YYSIZE_T yysize = yysyntax_error ( 0 , yystate , yychar ) ;\n if ( yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM ) {\n YYSIZE_T yyalloc = 2 * yysize ;\n if ( ! ( yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM ) ) yyalloc = YYSTACK_ALLOC_MAXIMUM ;\n if ( yymsg != yymsgbuf ) YYSTACK_FREE ( yymsg ) ;\n yymsg = ( char * ) YYSTACK_ALLOC ( yyalloc ) ;\n if ( yymsg ) yymsg_alloc = yyalloc ;\n else {\n yymsg = yymsgbuf ;\n yymsg_alloc = sizeof yymsgbuf ;\n }\n }\n if ( 0 < yysize && yysize <= yymsg_alloc ) {\n ( void ) yysyntax_error ( yymsg , yystate , yychar ) ;\n yyerror ( yymsg ) ;\n }\n else {\n yyerror ( YY_ ( \"syntax error\" ) ) ;\n if ( yysize != 0 ) goto yyexhaustedlab ;\n }\n }\n # endif }\n if ( yyerrstatus == 3 ) {\n if ( yychar <= YYEOF ) {\n if ( yychar == YYEOF ) YYABORT ;\n }\n else {\n yydestruct ( \"Error: discarding\" , yytoken , & yylval ) ;\n yychar = YYEMPTY ;\n }\n }\n goto yyerrlab1 ;\n yyerrorlab : if ( 0 ) goto yyerrorlab ;\n YYPOPSTACK ( yylen ) ;\n yylen = 0 ;\n YY_STACK_PRINT ( yyss , yyssp ) ;\n yystate = * yyssp ;\n goto yyerrlab1 ;\n yyerrlab1 : yyerrstatus = 3 ;\n for ( ;\n ;\n ) {\n yyn = yypact [ yystate ] ;\n if ( yyn != YYPACT_NINF ) {\n yyn += YYTERROR ;\n if ( 0 <= yyn && yyn <= YYLAST && yycheck [ yyn ] == YYTERROR ) {\n yyn = yytable [ yyn ] ;\n if ( 0 < yyn ) break ;\n }\n }\n if ( yyssp == yyss ) YYABORT ;\n yydestruct ( \"Error: popping\" , yystos [ yystate ] , yyvsp ) ;\n YYPOPSTACK ( 1 ) ;\n yystate = * yyssp ;\n YY_STACK_PRINT ( yyss , yyssp ) ;\n }\n * ++ yyvsp = yylval ;\n YY_SYMBOL_PRINT ( \"Shifting\" , yystos [ yyn ] , yyvsp , yylsp ) ;\n yystate = yyn ;\n goto yynewstate ;\n yyacceptlab : yyresult = 0 ;\n goto yyreturn ;\n yyabortlab : yyresult = 1 ;\n goto yyreturn ;\n # if ! defined ( yyoverflow ) || YYERROR_VERBOSE yyexhaustedlab : yyerror ( YY_ ( \"memory exhausted\" ) ) ;\n yyresult = 2 ;\n # endif yyreturn : if ( yychar != YYEMPTY ) yydestruct ( \"Cleanup: discarding lookahead\" , yytoken , & yylval ) ;\n YYPOPSTACK ( yylen ) ;\n YY_STACK_PRINT ( yyss , yyssp ) ;\n while ( yyssp != yyss ) {\n yydestruct ( \"Cleanup: popping\" , yystos [ * yyssp ] , yyvsp ) ;\n YYPOPSTACK ( 1 ) ;\n }\n # ifndef yyoverflow if ( yyss != yyssa ) YYSTACK_FREE ( yyss ) ;\n # endif # if YYERROR_VERBOSE if ( yymsg != yymsgbuf ) YYSTACK_FREE ( yymsg ) ;\n # endif return YYID ( yyresult ) ;\n }"}
{"idx": 896, "target": 0, "func": "static void new_files_state_unref ( NewFilesState * state ) {\n state -> count -- ;\n if ( state -> count == 0 ) {\n if ( state -> directory ) {\n state -> directory -> details -> new_files_in_progress = g_list_remove ( state -> directory -> details -> new_files_in_progress , state ) ;\n }\n g_object_unref ( state -> cancellable ) ;\n g_free ( state ) ;\n }\n }"}
{"idx": 897, "target": 0, "func": "struct archive_string * archive_strappend_char ( struct archive_string * as , char c ) {\n if ( ( as = archive_string_append ( as , & c , 1 ) ) == NULL ) __archive_errx ( 1 , \"Out of memory\" ) ;\n return ( as ) ;\n }"}
{"idx": 898, "target": 0, "func": "static int do_flush_tables_read_lock ( MYSQL * mysql_con ) {\n return ( mysql_query_with_error_report ( mysql_con , 0 , ( ( opt_master_data != 0 ) ? \"FLUSH /*!40101 LOCAL */ TABLES\" : \"FLUSH TABLES\" ) ) || mysql_query_with_error_report ( mysql_con , 0 , \"FLUSH TABLES WITH READ LOCK\" ) ) ;\n }"}
{"idx": 899, "target": 0, "func": "static inline void pxa2xx_rtc_hz_tick ( void * opaque ) {\n PXA2xxRTCState * s = ( PXA2xxRTCState * ) opaque ;\n s -> rtsr |= ( 1 << 0 ) ;\n pxa2xx_rtc_alarm_update ( s , s -> rtsr ) ;\n pxa2xx_rtc_int_update ( s ) ;\n }"}
{"idx": 900, "target": 1, "func": "static void * qemu_kvm_cpu_thread_fn ( void * arg ) {\n CPUState * cpu = arg ;\n int r ;\n qemu_mutex_lock ( & qemu_global_mutex ) ;\n qemu_thread_get_self ( cpu -> thread ) ;\n cpu -> thread_id = qemu_get_thread_id ( ) ;\n cpu_single_env = cpu -> env_ptr ;\n r = kvm_init_vcpu ( cpu ) ;\n if ( r < 0 ) {\n fprintf ( stderr , \"kvm_init_vcpu failed: %s\\n\" , strerror ( - r ) ) ;\n exit ( 1 ) ;\n }\n qemu_kvm_init_cpu_signals ( cpu ) ;\n cpu -> created = true ;\n qemu_cond_signal ( & qemu_cpu_cond ) ;\n while ( 1 ) {\n if ( cpu_can_run ( cpu ) ) {\n r = kvm_cpu_exec ( cpu ) ;\n if ( r == EXCP_DEBUG ) {\n cpu_handle_guest_debug ( cpu ) ;\n }\n }\n qemu_kvm_wait_io_event ( cpu ) ;\n }\n return NULL ;\n }"}
{"idx": 901, "target": 0, "func": "int wild_case_compare ( CHARSET_INFO * cs , const char * str , const char * wildstr ) {\n reg3 int flag ;\n DBUG_ENTER ( \"wild_case_compare\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"str: '%s' wildstr: '%s'\" , str , wildstr ) ) ;\n while ( * wildstr ) {\n while ( * wildstr && * wildstr != wild_many && * wildstr != wild_one ) {\n if ( * wildstr == wild_prefix && wildstr [ 1 ] ) wildstr ++ ;\n if ( my_toupper ( cs , * wildstr ++ ) != my_toupper ( cs , * str ++ ) ) DBUG_RETURN ( 1 ) ;\n }\n if ( ! * wildstr ) DBUG_RETURN ( * str != 0 ) ;\n if ( * wildstr ++ == wild_one ) {\n if ( ! * str ++ ) DBUG_RETURN ( 1 ) ;\n }\n else {\n if ( ! * wildstr ) DBUG_RETURN ( 0 ) ;\n flag = ( * wildstr != wild_many && * wildstr != wild_one ) ;\n do {\n if ( flag ) {\n char cmp ;\n if ( ( cmp = * wildstr ) == wild_prefix && wildstr [ 1 ] ) cmp = wildstr [ 1 ] ;\n cmp = my_toupper ( cs , cmp ) ;\n while ( * str && my_toupper ( cs , * str ) != cmp ) str ++ ;\n if ( ! * str ) DBUG_RETURN ( 1 ) ;\n }\n if ( wild_case_compare ( cs , str , wildstr ) == 0 ) DBUG_RETURN ( 0 ) ;\n }\n while ( * str ++ ) ;\n DBUG_RETURN ( 1 ) ;\n }\n }\n DBUG_RETURN ( * str != '\\0' ) ;\n }"}
{"idx": 902, "target": 0, "func": "static void rd_auto_partition_range ( VP9_COMP * cpi , const TileInfo * const tile , int mi_row , int mi_col , BLOCK_SIZE * min_block_size , BLOCK_SIZE * max_block_size ) {\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCKD * const xd = & cpi -> mb . e_mbd ;\n MODE_INFO * mi = xd -> mi [ 0 ] . src_mi ;\n const int left_in_image = xd -> left_available && mi [ - 1 ] . src_mi ;\n const int above_in_image = xd -> up_available && mi [ - xd -> mi_stride ] . src_mi ;\n const int row8x8_remaining = tile -> mi_row_end - mi_row ;\n const int col8x8_remaining = tile -> mi_col_end - mi_col ;\n int bh , bw ;\n BLOCK_SIZE min_size = BLOCK_4X4 ;\n BLOCK_SIZE max_size = BLOCK_64X64 ;\n int i = 0 ;\n int bs_hist [ BLOCK_SIZES ] = {\n 0 }\n ;\n if ( left_in_image || above_in_image || cm -> frame_type != KEY_FRAME ) {\n min_size = BLOCK_64X64 ;\n max_size = BLOCK_4X4 ;\n if ( cm -> frame_type != KEY_FRAME ) {\n MODE_INFO * prev_mi = cm -> prev_mip + cm -> mi_stride + 1 + mi_row * xd -> mi_stride + mi_col ;\n get_sb_partition_size_range ( xd , prev_mi , & min_size , & max_size , bs_hist ) ;\n }\n if ( left_in_image ) {\n MODE_INFO * left_sb64_mi = mi [ - MI_BLOCK_SIZE ] . src_mi ;\n get_sb_partition_size_range ( xd , left_sb64_mi , & min_size , & max_size , bs_hist ) ;\n }\n if ( above_in_image ) {\n MODE_INFO * above_sb64_mi = mi [ - xd -> mi_stride * MI_BLOCK_SIZE ] . src_mi ;\n get_sb_partition_size_range ( xd , above_sb64_mi , & min_size , & max_size , bs_hist ) ;\n }\n if ( cpi -> sf . auto_min_max_partition_size == RELAXED_NEIGHBORING_MIN_MAX ) {\n min_size = min_partition_size [ min_size ] ;\n max_size = max_partition_size [ max_size ] ;\n }\n else if ( cpi -> sf . auto_min_max_partition_size == CONSTRAIN_NEIGHBORING_MIN_MAX ) {\n int sum = 0 ;\n int first_moment = 0 ;\n int second_moment = 0 ;\n int var_unnormalized = 0 ;\n for ( i = 0 ;\n i < BLOCK_SIZES ;\n i ++ ) {\n sum += bs_hist [ i ] ;\n first_moment += bs_hist [ i ] * i ;\n second_moment += bs_hist [ i ] * i * i ;\n }\n var_unnormalized = second_moment - first_moment * first_moment / sum ;\n if ( var_unnormalized <= 4 * sum ) {\n int mean = first_moment / sum ;\n min_size = min_partition_size [ mean ] ;\n max_size = max_partition_size [ mean ] ;\n }\n else {\n min_size = min_partition_size [ min_size ] ;\n max_size = max_partition_size [ max_size ] ;\n }\n }\n }\n max_size = find_partition_size ( max_size , row8x8_remaining , col8x8_remaining , & bh , & bw ) ;\n min_size = MIN ( min_size , max_size ) ;\n if ( cpi -> sf . use_square_partition_only && next_square_size [ max_size ] < min_size ) {\n min_size = next_square_size [ max_size ] ;\n }\n * min_block_size = min_size ;\n * max_block_size = max_size ;\n }"}
{"idx": 903, "target": 0, "func": "int vp9_compute_rd_mult ( const VP9_COMP * cpi , int qindex ) {\n const int q = vp9_dc_quant ( qindex , 0 , cpi -> common . bit_depth ) ;\n # if CONFIG_VP9_HIGHBITDEPTH int rdmult = 0 ;\n switch ( cpi -> common . bit_depth ) {\n case VPX_BITS_8 : rdmult = 88 * q * q / 24 ;\n break ;\n case VPX_BITS_10 : rdmult = ROUND_POWER_OF_TWO ( 88 * q * q / 24 , 4 ) ;\n break ;\n case VPX_BITS_12 : rdmult = ROUND_POWER_OF_TWO ( 88 * q * q / 24 , 8 ) ;\n break ;\n default : assert ( 0 && \"bit_depth should be VPX_BITS_8, VPX_BITS_10 or VPX_BITS_12\" ) ;\n return - 1 ;\n }\n # else int rdmult = 88 * q * q / 24 ;\n # endif if ( cpi -> oxcf . pass == 2 && ( cpi -> common . frame_type != KEY_FRAME ) ) {\n const GF_GROUP * const gf_group = & cpi -> twopass . gf_group ;\n const FRAME_UPDATE_TYPE frame_type = gf_group -> update_type [ gf_group -> index ] ;\n const int boost_index = MIN ( 15 , ( cpi -> rc . gfu_boost / 100 ) ) ;\n rdmult = ( rdmult * rd_frame_type_factor [ frame_type ] ) >> 7 ;\n rdmult += ( ( rdmult * rd_boost_factor [ boost_index ] ) >> 7 ) ;\n }\n return rdmult ;\n }"}
{"idx": 904, "target": 0, "func": "static int SpoolssEnumPrinterDrivers_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ;\n guint32 level ;\n offset = dissect_ndr_str_pointer_item ( tvb , offset , pinfo , tree , di , drep , NDR_POINTER_UNIQUE , \"Name\" , hf_servername , 0 ) ;\n offset = dissect_ndr_str_pointer_item ( tvb , offset , pinfo , tree , di , drep , NDR_POINTER_UNIQUE , \"Environment\" , hf_environment , 0 ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_level , & level ) ;\n if ( ! pinfo -> fd -> flags . visited ) {\n dcv -> se_data = GUINT_TO_POINTER ( ( int ) level ) ;\n }\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", level %d\" , level ) ;\n offset = dissect_spoolss_buffer ( tvb , offset , pinfo , tree , di , drep , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_offered , NULL ) ;\n return offset ;\n }"}
{"idx": 905, "target": 0, "func": "bool HasValidID ( TemplateURL * t_url ) {\n return t_url -> id ( ) != kInvalidTemplateURLID ;\n }"}
{"idx": 906, "target": 0, "func": "static void test_multi ( ) {\n MYSQL_STMT * stmt_delete , * stmt_update , * stmt_select1 , * stmt_select2 ;\n char * query ;\n MYSQL_BIND my_bind [ 1 ] ;\n int rc , i ;\n int32 param = 1 ;\n ulong length = 1 ;\n myheader ( \"test_multi\" ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 0 ] . buffer = ( void * ) & param ;\n my_bind [ 0 ] . length = & length ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS t1, t2\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t1 (a int, b int)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t2 (a int, b int)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t1 values (3, 3), (2, 2), (1, 1)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t2 values (3, 3), (2, 2), (1, 1)\" ) ;\n myquery ( rc ) ;\n query = ( char * ) \"delete t1, t2 from t1, t2 where t1.a=t2.a and t1.b=10\" ;\n stmt_delete = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt_delete ) ;\n query = ( char * ) \"update t1, t2 set t1.b=10, t2.b=10 where t1.a=t2.a and t1.b=?\" ;\n stmt_update = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt_update ) ;\n query = ( char * ) \"select * from t1\" ;\n stmt_select1 = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt_select1 ) ;\n query = ( char * ) \"select * from t2\" ;\n stmt_select2 = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt_select2 ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n rc = mysql_stmt_bind_param ( stmt_update , my_bind ) ;\n check_execute ( stmt_update , rc ) ;\n rc = mysql_stmt_execute ( stmt_update ) ;\n check_execute ( stmt_update , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"update %ld\\n\" , ( long ) param ) ;\n rc = mysql_stmt_execute ( stmt_delete ) ;\n check_execute ( stmt_delete , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"delete %ld\\n\" , ( long ) param ) ;\n rc = mysql_stmt_execute ( stmt_select1 ) ;\n check_execute ( stmt_select1 , rc ) ;\n rc = my_process_stmt_result ( stmt_select1 ) ;\n DIE_UNLESS ( rc == 3 - param ) ;\n rc = mysql_stmt_execute ( stmt_select2 ) ;\n check_execute ( stmt_select2 , rc ) ;\n rc = my_process_stmt_result ( stmt_select2 ) ;\n DIE_UNLESS ( rc == 3 - param ) ;\n param ++ ;\n }\n mysql_stmt_close ( stmt_delete ) ;\n mysql_stmt_close ( stmt_update ) ;\n mysql_stmt_close ( stmt_select1 ) ;\n mysql_stmt_close ( stmt_select2 ) ;\n rc = mysql_query ( mysql , \"drop table t1, t2\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 907, "target": 0, "func": "int yyparse ( void ) # else int yyparse ( ) # endif # endif {\n int yystate ;\n int yyerrstatus ;\n yytype_int16 yyssa [ YYINITDEPTH ] ;\n yytype_int16 * yyss ;\n yytype_int16 * yyssp ;\n YYSTYPE yyvsa [ YYINITDEPTH ] ;\n YYSTYPE * yyvs ;\n YYSTYPE * yyvsp ;\n YYSIZE_T yystacksize ;\n int yyn ;\n int yyresult ;\n int yytoken ;\n YYSTYPE yyval ;\n # if YYERROR_VERBOSE char yymsgbuf [ 128 ] ;\n char * yymsg = yymsgbuf ;\n YYSIZE_T yymsg_alloc = sizeof yymsgbuf ;\n # endif # define YYPOPSTACK ( N ) ( yyvsp -= ( N ) , yyssp -= ( N ) ) int yylen = 0 ;\n yytoken = 0 ;\n yyss = yyssa ;\n yyvs = yyvsa ;\n yystacksize = YYINITDEPTH ;\n YYDPRINTF ( ( stderr , \"Starting parse\\n\" ) ) ;\n yystate = 0 ;\n yyerrstatus = 0 ;\n yynerrs = 0 ;\n yychar = YYEMPTY ;\n yyssp = yyss ;\n yyvsp = yyvs ;\n goto yysetstate ;\n yynewstate : yyssp ++ ;\n yysetstate : * yyssp = yystate ;\n if ( yyss + yystacksize - 1 <= yyssp ) {\n YYSIZE_T yysize = yyssp - yyss + 1 ;\n # ifdef yyoverflow {\n YYSTYPE * yyvs1 = yyvs ;\n yytype_int16 * yyss1 = yyss ;\n yyoverflow ( YY_ ( \"memory exhausted\" ) , & yyss1 , yysize * sizeof ( * yyssp ) , & yyvs1 , yysize * sizeof ( * yyvsp ) , & yystacksize ) ;\n yyss = yyss1 ;\n yyvs = yyvs1 ;\n }\n # else # ifndef YYSTACK_RELOCATE goto yyexhaustedlab ;\n # else if ( YYMAXDEPTH <= yystacksize ) goto yyexhaustedlab ;\n yystacksize *= 2 ;\n if ( YYMAXDEPTH < yystacksize ) yystacksize = YYMAXDEPTH ;\n {\n yytype_int16 * yyss1 = yyss ;\n union yyalloc * yyptr = ( union yyalloc * ) YYSTACK_ALLOC ( YYSTACK_BYTES ( yystacksize ) ) ;\n if ( ! yyptr ) goto yyexhaustedlab ;\n YYSTACK_RELOCATE ( yyss_alloc , yyss ) ;\n YYSTACK_RELOCATE ( yyvs_alloc , yyvs ) ;\n # undef YYSTACK_RELOCATE if ( yyss1 != yyssa ) YYSTACK_FREE ( yyss1 ) ;\n }\n # endif # endif yyssp = yyss + yysize - 1 ;\n yyvsp = yyvs + yysize - 1 ;\n YYDPRINTF ( ( stderr , \"Stack size increased to %lu\\n\" , ( unsigned long int ) yystacksize ) ) ;\n if ( yyss + yystacksize - 1 <= yyssp ) YYABORT ;\n }\n YYDPRINTF ( ( stderr , \"Entering state %d\\n\" , yystate ) ) ;\n if ( yystate == YYFINAL ) YYACCEPT ;\n goto yybackup ;\n yybackup : yyn = yypact [ yystate ] ;\n if ( yyn == YYPACT_NINF ) goto yydefault ;\n if ( yychar == YYEMPTY ) {\n YYDPRINTF ( ( stderr , \"Reading a token: \" ) ) ;\n yychar = YYLEX ;\n }\n if ( yychar <= YYEOF ) {\n yychar = yytoken = YYEOF ;\n YYDPRINTF ( ( stderr , \"Now at end of input.\\n\" ) ) ;\n }\n else {\n yytoken = YYTRANSLATE ( yychar ) ;\n YY_SYMBOL_PRINT ( \"Next token is\" , yytoken , & yylval , & yylloc ) ;\n }\n yyn += yytoken ;\n if ( yyn < 0 || YYLAST < yyn || yycheck [ yyn ] != yytoken ) goto yydefault ;\n yyn = yytable [ yyn ] ;\n if ( yyn <= 0 ) {\n if ( yyn == 0 || yyn == YYTABLE_NINF ) goto yyerrlab ;\n yyn = - yyn ;\n goto yyreduce ;\n }\n if ( yyerrstatus ) yyerrstatus -- ;\n YY_SYMBOL_PRINT ( \"Shifting\" , yytoken , & yylval , & yylloc ) ;\n yychar = YYEMPTY ;\n yystate = yyn ;\n * ++ yyvsp = yylval ;\n goto yynewstate ;\n yydefault : yyn = yydefact [ yystate ] ;\n if ( yyn == 0 ) goto yyerrlab ;\n goto yyreduce ;\n yyreduce : yylen = yyr2 [ yyn ] ;\n yyval = yyvsp [ 1 - yylen ] ;\n YY_REDUCE_PRINT ( yyn ) ;\n switch ( yyn ) {\n case 5 : # line 320 \"ntp_parser.y\" {\n msyslog ( LOG_ERR , \"syntax error in %s line %d, column %d\" , ip_file -> fname , ip_file -> err_line_no , ip_file -> err_col_no ) ;\n }\n break ;\n case 19 : # line 354 \"ntp_parser.y\" {\n struct peer_node * my_node = create_peer_node ( ( yyvsp [ ( 1 ) - ( 3 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 3 ) ] . Address_node ) , ( yyvsp [ ( 3 ) - ( 3 ) ] . Queue ) ) ;\n if ( my_node ) enqueue ( cfgt . peers , my_node ) ;\n }\n break ;\n case 20 : # line 360 \"ntp_parser.y\" {\n struct peer_node * my_node = create_peer_node ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Address_node ) , NULL ) ;\n if ( my_node ) enqueue ( cfgt . peers , my_node ) ;\n }\n break ;\n case 27 : # line 377 \"ntp_parser.y\" {\n ( yyval . Address_node ) = create_address_node ( ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) , AF_INET ) ;\n }\n break ;\n case 28 : # line 378 \"ntp_parser.y\" {\n ( yyval . Address_node ) = create_address_node ( ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) , AF_INET6 ) ;\n }\n break ;\n case 29 : # line 382 \"ntp_parser.y\" {\n ( yyval . Address_node ) = create_address_node ( ( yyvsp [ ( 1 ) - ( 1 ) ] . String ) , 0 ) ;\n }\n break ;\n case 30 : # line 386 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Attr_val ) ) ;\n }\n break ;\n case 31 : # line 387 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Attr_val ) ) ;\n }\n break ;\n case 32 : # line 391 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 33 : # line 392 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ;\n }\n break ;\n case 34 : # line 393 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 35 : # line 394 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 36 : # line 395 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 37 : # line 396 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 38 : # line 397 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 39 : # line 398 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 40 : # line 399 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 41 : # line 400 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 42 : # line 401 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 43 : # line 402 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 44 : # line 403 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 45 : # line 404 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 46 : # line 405 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 47 : # line 415 \"ntp_parser.y\" {\n struct unpeer_node * my_node = create_unpeer_node ( ( yyvsp [ ( 2 ) - ( 2 ) ] . Address_node ) ) ;\n if ( my_node ) enqueue ( cfgt . unpeers , my_node ) ;\n }\n break ;\n case 50 : # line 434 \"ntp_parser.y\" {\n cfgt . broadcastclient = 1 ;\n }\n break ;\n case 51 : # line 436 \"ntp_parser.y\" {\n append_queue ( cfgt . manycastserver , ( yyvsp [ ( 2 ) - ( 2 ) ] . Queue ) ) ;\n }\n break ;\n case 52 : # line 438 \"ntp_parser.y\" {\n append_queue ( cfgt . multicastclient , ( yyvsp [ ( 2 ) - ( 2 ) ] . Queue ) ) ;\n }\n break ;\n case 53 : # line 449 \"ntp_parser.y\" {\n enqueue ( cfgt . vars , create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ) ;\n }\n break ;\n case 54 : # line 451 \"ntp_parser.y\" {\n cfgt . auth . control_key = ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ;\n }\n break ;\n case 55 : # line 453 \"ntp_parser.y\" {\n cfgt . auth . cryptosw ++ ;\n append_queue ( cfgt . auth . crypto_cmd_list , ( yyvsp [ ( 2 ) - ( 2 ) ] . Queue ) ) ;\n }\n break ;\n case 56 : # line 458 \"ntp_parser.y\" {\n cfgt . auth . keys = ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ;\n }\n break ;\n case 57 : # line 460 \"ntp_parser.y\" {\n cfgt . auth . keysdir = ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ;\n }\n break ;\n case 58 : # line 462 \"ntp_parser.y\" {\n cfgt . auth . request_key = ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ;\n }\n break ;\n case 59 : # line 464 \"ntp_parser.y\" {\n cfgt . auth . revoke = ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ;\n }\n break ;\n case 60 : # line 466 \"ntp_parser.y\" {\n cfgt . auth . trusted_key_list = ( yyvsp [ ( 2 ) - ( 2 ) ] . Queue ) ;\n }\n break ;\n case 61 : # line 468 \"ntp_parser.y\" {\n cfgt . auth . ntp_signd_socket = ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ;\n }\n break ;\n case 63 : # line 474 \"ntp_parser.y\" {\n ( yyval . Queue ) = create_queue ( ) ;\n }\n break ;\n case 64 : # line 479 \"ntp_parser.y\" {\n if ( ( yyvsp [ ( 2 ) - ( 2 ) ] . Attr_val ) != NULL ) ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Attr_val ) ) ;\n else ( yyval . Queue ) = ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) ;\n }\n break ;\n case 65 : # line 486 \"ntp_parser.y\" {\n if ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Attr_val ) != NULL ) ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Attr_val ) ) ;\n else ( yyval . Queue ) = create_queue ( ) ;\n }\n break ;\n case 66 : # line 496 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_sval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ;\n }\n break ;\n case 67 : # line 498 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_sval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ;\n }\n break ;\n case 68 : # line 500 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_sval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ;\n }\n break ;\n case 69 : # line 502 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_sval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ;\n }\n break ;\n case 70 : # line 504 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_sval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ;\n }\n break ;\n case 71 : # line 506 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_sval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ;\n }\n break ;\n case 72 : # line 508 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = NULL ;\n cfgt . auth . revoke = ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ;\n msyslog ( LOG_WARNING , \"'crypto revoke %d' is deprecated, \" \"please use 'revoke %d' instead.\" , cfgt . auth . revoke , cfgt . auth . revoke ) ;\n }\n break ;\n case 73 : # line 525 \"ntp_parser.y\" {\n append_queue ( cfgt . orphan_cmds , ( yyvsp [ ( 2 ) - ( 2 ) ] . Queue ) ) ;\n }\n break ;\n case 74 : # line 529 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Attr_val ) ) ;\n }\n break ;\n case 75 : # line 530 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Attr_val ) ) ;\n }\n break ;\n case 76 : # line 535 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( double ) ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 77 : # line 537 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( double ) ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 78 : # line 539 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( double ) ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 79 : # line 541 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( double ) ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 80 : # line 543 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( double ) ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 81 : # line 545 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ;\n }\n break ;\n case 82 : # line 547 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ;\n }\n break ;\n case 83 : # line 549 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ;\n }\n break ;\n case 84 : # line 551 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ;\n }\n break ;\n case 85 : # line 553 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( double ) ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 86 : # line 555 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( double ) ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 87 : # line 565 \"ntp_parser.y\" {\n append_queue ( cfgt . stats_list , ( yyvsp [ ( 2 ) - ( 2 ) ] . Queue ) ) ;\n }\n break ;\n case 88 : # line 567 \"ntp_parser.y\" {\n if ( input_from_file ) cfgt . stats_dir = ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ;\n else {\n free ( ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ;\n yyerror ( \"statsdir remote configuration ignored\" ) ;\n }\n }\n break ;\n case 89 : # line 576 \"ntp_parser.y\" {\n enqueue ( cfgt . filegen_opts , create_filegen_node ( ( yyvsp [ ( 2 ) - ( 3 ) ] . Integer ) , ( yyvsp [ ( 3 ) - ( 3 ) ] . Queue ) ) ) ;\n }\n break ;\n case 90 : # line 583 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , create_ival ( ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ) ;\n }\n break ;\n case 91 : # line 584 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( create_ival ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ) ;\n }\n break ;\n case 100 : # line 600 \"ntp_parser.y\" {\n if ( ( yyvsp [ ( 2 ) - ( 2 ) ] . Attr_val ) != NULL ) ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Attr_val ) ) ;\n else ( yyval . Queue ) = ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) ;\n }\n break ;\n case 101 : # line 607 \"ntp_parser.y\" {\n if ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Attr_val ) != NULL ) ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Attr_val ) ) ;\n else ( yyval . Queue ) = create_queue ( ) ;\n }\n break ;\n case 102 : # line 617 \"ntp_parser.y\" {\n if ( input_from_file ) ( yyval . Attr_val ) = create_attr_sval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ;\n else {\n ( yyval . Attr_val ) = NULL ;\n free ( ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ;\n yyerror ( \"filegen file remote configuration ignored\" ) ;\n }\n }\n break ;\n case 103 : # line 627 \"ntp_parser.y\" {\n if ( input_from_file ) ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n else {\n ( yyval . Attr_val ) = NULL ;\n yyerror ( \"filegen type remote configuration ignored\" ) ;\n }\n }\n break ;\n case 104 : # line 636 \"ntp_parser.y\" {\n if ( input_from_file ) ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n else {\n ( yyval . Attr_val ) = NULL ;\n yyerror ( \"filegen link remote configuration ignored\" ) ;\n }\n }\n break ;\n case 105 : # line 645 \"ntp_parser.y\" {\n if ( input_from_file ) ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n else {\n ( yyval . Attr_val ) = NULL ;\n yyerror ( \"filegen nolink remote configuration ignored\" ) ;\n }\n }\n break ;\n case 106 : # line 653 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 107 : # line 654 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 115 : # line 674 \"ntp_parser.y\" {\n append_queue ( cfgt . discard_opts , ( yyvsp [ ( 2 ) - ( 2 ) ] . Queue ) ) ;\n }\n break ;\n case 116 : # line 678 \"ntp_parser.y\" {\n append_queue ( cfgt . mru_opts , ( yyvsp [ ( 2 ) - ( 2 ) ] . Queue ) ) ;\n }\n break ;\n case 117 : # line 682 \"ntp_parser.y\" {\n enqueue ( cfgt . restrict_opts , create_restrict_node ( ( yyvsp [ ( 2 ) - ( 3 ) ] . Address_node ) , NULL , ( yyvsp [ ( 3 ) - ( 3 ) ] . Queue ) , ip_file -> line_no ) ) ;\n }\n break ;\n case 118 : # line 687 \"ntp_parser.y\" {\n enqueue ( cfgt . restrict_opts , create_restrict_node ( ( yyvsp [ ( 2 ) - ( 5 ) ] . Address_node ) , ( yyvsp [ ( 4 ) - ( 5 ) ] . Address_node ) , ( yyvsp [ ( 5 ) - ( 5 ) ] . Queue ) , ip_file -> line_no ) ) ;\n }\n break ;\n case 119 : # line 692 \"ntp_parser.y\" {\n enqueue ( cfgt . restrict_opts , create_restrict_node ( NULL , NULL , ( yyvsp [ ( 3 ) - ( 3 ) ] . Queue ) , ip_file -> line_no ) ) ;\n }\n break ;\n case 120 : # line 697 \"ntp_parser.y\" {\n enqueue ( cfgt . restrict_opts , create_restrict_node ( create_address_node ( estrdup ( \"0.0.0.0\" ) , AF_INET ) , create_address_node ( estrdup ( \"0.0.0.0\" ) , AF_INET ) , ( yyvsp [ ( 4 ) - ( 4 ) ] . Queue ) , ip_file -> line_no ) ) ;\n }\n break ;\n case 121 : # line 710 \"ntp_parser.y\" {\n enqueue ( cfgt . restrict_opts , create_restrict_node ( create_address_node ( estrdup ( \"::\" ) , AF_INET6 ) , create_address_node ( estrdup ( \"::\" ) , AF_INET6 ) , ( yyvsp [ ( 4 ) - ( 4 ) ] . Queue ) , ip_file -> line_no ) ) ;\n }\n break ;\n case 122 : # line 723 \"ntp_parser.y\" {\n enqueue ( cfgt . restrict_opts , create_restrict_node ( NULL , NULL , enqueue ( ( yyvsp [ ( 3 ) - ( 3 ) ] . Queue ) , create_ival ( ( yyvsp [ ( 2 ) - ( 3 ) ] . Integer ) ) ) , ip_file -> line_no ) ) ;\n }\n break ;\n case 123 : # line 734 \"ntp_parser.y\" {\n ( yyval . Queue ) = create_queue ( ) ;\n }\n break ;\n case 124 : # line 736 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , create_ival ( ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ) ;\n }\n break ;\n case 139 : # line 758 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Attr_val ) ) ;\n }\n break ;\n case 140 : # line 760 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Attr_val ) ) ;\n }\n break ;\n case 141 : # line 764 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 142 : # line 765 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 143 : # line 766 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 144 : # line 771 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Attr_val ) ) ;\n }\n break ;\n case 145 : # line 773 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Attr_val ) ) ;\n }\n break ;\n case 146 : # line 777 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 147 : # line 778 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 148 : # line 779 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 149 : # line 780 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 150 : # line 781 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 151 : # line 782 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 152 : # line 783 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 153 : # line 784 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 154 : # line 793 \"ntp_parser.y\" {\n enqueue ( cfgt . fudge , create_addr_opts_node ( ( yyvsp [ ( 2 ) - ( 3 ) ] . Address_node ) , ( yyvsp [ ( 3 ) - ( 3 ) ] . Queue ) ) ) ;\n }\n break ;\n case 155 : # line 798 \"ntp_parser.y\" {\n enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Attr_val ) ) ;\n }\n break ;\n case 156 : # line 800 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Attr_val ) ) ;\n }\n break ;\n case 157 : # line 804 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ;\n }\n break ;\n case 158 : # line 805 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ;\n }\n break ;\n case 159 : # line 806 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 160 : # line 807 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_sval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ;\n }\n break ;\n case 161 : # line 808 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 162 : # line 809 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 163 : # line 810 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 164 : # line 811 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 165 : # line 820 \"ntp_parser.y\" {\n append_queue ( cfgt . enable_opts , ( yyvsp [ ( 2 ) - ( 2 ) ] . Queue ) ) ;\n }\n break ;\n case 166 : # line 822 \"ntp_parser.y\" {\n append_queue ( cfgt . disable_opts , ( yyvsp [ ( 2 ) - ( 2 ) ] . Queue ) ) ;\n }\n break ;\n case 167 : # line 827 \"ntp_parser.y\" {\n if ( ( yyvsp [ ( 2 ) - ( 2 ) ] . Attr_val ) != NULL ) ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Attr_val ) ) ;\n else ( yyval . Queue ) = ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) ;\n }\n break ;\n case 168 : # line 834 \"ntp_parser.y\" {\n if ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Attr_val ) != NULL ) ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Attr_val ) ) ;\n else ( yyval . Queue ) = create_queue ( ) ;\n }\n break ;\n case 169 : # line 843 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 170 : # line 844 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 171 : # line 845 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 172 : # line 846 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 173 : # line 847 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 174 : # line 848 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 175 : # line 850 \"ntp_parser.y\" {\n if ( input_from_file ) ( yyval . Attr_val ) = create_attr_ival ( T_Flag , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n else {\n ( yyval . Attr_val ) = NULL ;\n yyerror ( \"enable/disable stats remote configuration ignored\" ) ;\n }\n }\n break ;\n case 176 : # line 865 \"ntp_parser.y\" {\n append_queue ( cfgt . tinker , ( yyvsp [ ( 2 ) - ( 2 ) ] . Queue ) ) ;\n }\n break ;\n case 177 : # line 869 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Attr_val ) ) ;\n }\n break ;\n case 178 : # line 870 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Attr_val ) ) ;\n }\n break ;\n case 179 : # line 874 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ;\n }\n break ;\n case 180 : # line 875 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ;\n }\n break ;\n case 181 : # line 876 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ;\n }\n break ;\n case 182 : # line 877 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ;\n }\n break ;\n case 183 : # line 878 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ;\n }\n break ;\n case 184 : # line 879 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ;\n }\n break ;\n case 185 : # line 880 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ;\n }\n break ;\n case 187 : # line 891 \"ntp_parser.y\" {\n if ( curr_include_level >= MAXINCLUDELEVEL ) {\n fprintf ( stderr , \"getconfig: Maximum include file level exceeded.\\n\" ) ;\n msyslog ( LOG_ERR , \"getconfig: Maximum include file level exceeded.\" ) ;\n }\n else {\n fp [ curr_include_level + 1 ] = F_OPEN ( FindConfig ( ( yyvsp [ ( 2 ) - ( 3 ) ] . String ) ) , \"r\" ) ;\n if ( fp [ curr_include_level + 1 ] == NULL ) {\n fprintf ( stderr , \"getconfig: Couldn't open <%s>\\n\" , FindConfig ( ( yyvsp [ ( 2 ) - ( 3 ) ] . String ) ) ) ;\n msyslog ( LOG_ERR , \"getconfig: Couldn't open <%s>\" , FindConfig ( ( yyvsp [ ( 2 ) - ( 3 ) ] . String ) ) ) ;\n }\n else ip_file = fp [ ++ curr_include_level ] ;\n }\n }\n break ;\n case 188 : # line 907 \"ntp_parser.y\" {\n while ( curr_include_level != - 1 ) FCLOSE ( fp [ curr_include_level -- ] ) ;\n }\n break ;\n case 189 : # line 913 \"ntp_parser.y\" {\n enqueue ( cfgt . vars , create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ) ;\n }\n break ;\n case 190 : # line 915 \"ntp_parser.y\" {\n enqueue ( cfgt . vars , create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ) ;\n }\n break ;\n case 191 : # line 917 \"ntp_parser.y\" {\n enqueue ( cfgt . vars , create_attr_dval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ) ;\n }\n break ;\n case 192 : # line 919 \"ntp_parser.y\" {\n }\n break ;\n case 193 : # line 921 \"ntp_parser.y\" {\n enqueue ( cfgt . vars , create_attr_sval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ) ;\n }\n break ;\n case 194 : # line 924 \"ntp_parser.y\" {\n enqueue ( cfgt . vars , create_attr_sval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ) ;\n }\n break ;\n case 195 : # line 926 \"ntp_parser.y\" {\n if ( input_from_file ) enqueue ( cfgt . vars , create_attr_sval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ) ;\n else {\n free ( ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ;\n yyerror ( \"logfile remote configuration ignored\" ) ;\n }\n }\n break ;\n case 196 : # line 937 \"ntp_parser.y\" {\n append_queue ( cfgt . logconfig , ( yyvsp [ ( 2 ) - ( 2 ) ] . Queue ) ) ;\n }\n break ;\n case 197 : # line 939 \"ntp_parser.y\" {\n append_queue ( cfgt . phone , ( yyvsp [ ( 2 ) - ( 2 ) ] . Queue ) ) ;\n }\n break ;\n case 198 : # line 941 \"ntp_parser.y\" {\n if ( input_from_file ) enqueue ( cfgt . vars , create_attr_sval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ) ;\n else {\n free ( ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ;\n yyerror ( \"saveconfigdir remote configuration ignored\" ) ;\n }\n }\n break ;\n case 199 : # line 951 \"ntp_parser.y\" {\n enqueue ( cfgt . setvar , ( yyvsp [ ( 2 ) - ( 2 ) ] . Set_var ) ) ;\n }\n break ;\n case 200 : # line 953 \"ntp_parser.y\" {\n enqueue ( cfgt . trap , create_addr_opts_node ( ( yyvsp [ ( 2 ) - ( 2 ) ] . Address_node ) , NULL ) ) ;\n }\n break ;\n case 201 : # line 955 \"ntp_parser.y\" {\n enqueue ( cfgt . trap , create_addr_opts_node ( ( yyvsp [ ( 2 ) - ( 3 ) ] . Address_node ) , ( yyvsp [ ( 3 ) - ( 3 ) ] . Queue ) ) ) ;\n }\n break ;\n case 202 : # line 957 \"ntp_parser.y\" {\n append_queue ( cfgt . ttl , ( yyvsp [ ( 2 ) - ( 2 ) ] . Queue ) ) ;\n }\n break ;\n case 203 : # line 959 \"ntp_parser.y\" {\n enqueue ( cfgt . qos , create_attr_sval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ) ;\n }\n break ;\n case 204 : # line 964 \"ntp_parser.y\" {\n enqueue ( cfgt . vars , create_attr_sval ( T_Driftfile , ( yyvsp [ ( 1 ) - ( 1 ) ] . String ) ) ) ;\n }\n break ;\n case 205 : # line 966 \"ntp_parser.y\" {\n enqueue ( cfgt . vars , create_attr_dval ( T_WanderThreshold , ( yyvsp [ ( 2 ) - ( 2 ) ] . Double ) ) ) ;\n enqueue ( cfgt . vars , create_attr_sval ( T_Driftfile , ( yyvsp [ ( 1 ) - ( 2 ) ] . String ) ) ) ;\n }\n break ;\n case 206 : # line 969 \"ntp_parser.y\" {\n enqueue ( cfgt . vars , create_attr_sval ( T_Driftfile , \"\\0\" ) ) ;\n }\n break ;\n case 207 : # line 974 \"ntp_parser.y\" {\n ( yyval . Set_var ) = create_setvar_node ( ( yyvsp [ ( 1 ) - ( 4 ) ] . String ) , ( yyvsp [ ( 3 ) - ( 4 ) ] . String ) , ( yyvsp [ ( 4 ) - ( 4 ) ] . Integer ) ) ;\n }\n break ;\n case 208 : # line 976 \"ntp_parser.y\" {\n ( yyval . Set_var ) = create_setvar_node ( ( yyvsp [ ( 1 ) - ( 3 ) ] . String ) , ( yyvsp [ ( 3 ) - ( 3 ) ] . String ) , 0 ) ;\n }\n break ;\n case 209 : # line 981 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Attr_val ) ) ;\n }\n break ;\n case 210 : # line 982 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Attr_val ) ) ;\n }\n break ;\n case 211 : # line 986 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ;\n }\n break ;\n case 212 : # line 987 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_pval ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Integer ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Address_node ) ) ;\n }\n break ;\n case 213 : # line 991 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Attr_val ) ) ;\n }\n break ;\n case 214 : # line 992 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Attr_val ) ) ;\n }\n break ;\n case 215 : # line 997 \"ntp_parser.y\" {\n char prefix ;\n char * type ;\n switch ( ( yyvsp [ ( 1 ) - ( 1 ) ] . String ) [ 0 ] ) {\n case '+' : case '-' : case '=' : prefix = ( yyvsp [ ( 1 ) - ( 1 ) ] . String ) [ 0 ] ;\n type = ( yyvsp [ ( 1 ) - ( 1 ) ] . String ) + 1 ;\n break ;\n default : prefix = '=' ;\n type = ( yyvsp [ ( 1 ) - ( 1 ) ] . String ) ;\n }\n ( yyval . Attr_val ) = create_attr_sval ( prefix , estrdup ( type ) ) ;\n YYFREE ( ( yyvsp [ ( 1 ) - ( 1 ) ] . String ) ) ;\n }\n break ;\n case 216 : # line 1022 \"ntp_parser.y\" {\n enqueue ( cfgt . nic_rules , create_nic_rule_node ( ( yyvsp [ ( 3 ) - ( 3 ) ] . Integer ) , NULL , ( yyvsp [ ( 2 ) - ( 3 ) ] . Integer ) ) ) ;\n }\n break ;\n case 217 : # line 1027 \"ntp_parser.y\" {\n enqueue ( cfgt . nic_rules , create_nic_rule_node ( 0 , ( yyvsp [ ( 3 ) - ( 3 ) ] . String ) , ( yyvsp [ ( 2 ) - ( 3 ) ] . Integer ) ) ) ;\n }\n break ;\n case 227 : # line 1058 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , create_ival ( ( yyvsp [ ( 2 ) - ( 2 ) ] . Integer ) ) ) ;\n }\n break ;\n case 228 : # line 1059 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( create_ival ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ) ;\n }\n break ;\n case 229 : # line 1064 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Attr_val ) ) ;\n }\n break ;\n case 230 : # line 1066 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Attr_val ) ) ;\n }\n break ;\n case 231 : # line 1071 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_ival ( 'i' , ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ) ;\n }\n break ;\n case 233 : # line 1077 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_shorts ( '-' , ( yyvsp [ ( 2 ) - ( 5 ) ] . Integer ) , ( yyvsp [ ( 4 ) - ( 5 ) ] . Integer ) ) ;\n }\n break ;\n case 234 : # line 1081 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , create_pval ( ( yyvsp [ ( 2 ) - ( 2 ) ] . String ) ) ) ;\n }\n break ;\n case 235 : # line 1082 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( create_pval ( ( yyvsp [ ( 1 ) - ( 1 ) ] . String ) ) ) ;\n }\n break ;\n case 236 : # line 1086 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Address_node ) ) ;\n }\n break ;\n case 237 : # line 1087 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Address_node ) ) ;\n }\n break ;\n case 238 : # line 1092 \"ntp_parser.y\" {\n if ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) != 0 && ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) != 1 ) {\n yyerror ( \"Integer value is not boolean (0 or 1). Assuming 1\" ) ;\n ( yyval . Integer ) = 1 ;\n }\n else ( yyval . Integer ) = ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ;\n }\n break ;\n case 239 : # line 1100 \"ntp_parser.y\" {\n ( yyval . Integer ) = 1 ;\n }\n break ;\n case 240 : # line 1101 \"ntp_parser.y\" {\n ( yyval . Integer ) = 0 ;\n }\n break ;\n case 241 : # line 1105 \"ntp_parser.y\" {\n ( yyval . Double ) = ( double ) ( yyvsp [ ( 1 ) - ( 1 ) ] . Integer ) ;\n }\n break ;\n case 243 : # line 1116 \"ntp_parser.y\" {\n cfgt . sim_details = create_sim_node ( ( yyvsp [ ( 3 ) - ( 5 ) ] . Queue ) , ( yyvsp [ ( 4 ) - ( 5 ) ] . Queue ) ) ;\n old_config_style = 1 ;\n }\n break ;\n case 244 : # line 1130 \"ntp_parser.y\" {\n old_config_style = 0 ;\n }\n break ;\n case 245 : # line 1134 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 3 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 3 ) ] . Attr_val ) ) ;\n }\n break ;\n case 246 : # line 1135 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Attr_val ) ) ;\n }\n break ;\n case 247 : # line 1139 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 3 ) ] . Integer ) , ( yyvsp [ ( 3 ) - ( 3 ) ] . Double ) ) ;\n }\n break ;\n case 248 : # line 1140 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 3 ) ] . Integer ) , ( yyvsp [ ( 3 ) - ( 3 ) ] . Double ) ) ;\n }\n break ;\n case 249 : # line 1144 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Sim_server ) ) ;\n }\n break ;\n case 250 : # line 1145 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Sim_server ) ) ;\n }\n break ;\n case 251 : # line 1150 \"ntp_parser.y\" {\n ( yyval . Sim_server ) = create_sim_server ( ( yyvsp [ ( 1 ) - ( 5 ) ] . Address_node ) , ( yyvsp [ ( 3 ) - ( 5 ) ] . Double ) , ( yyvsp [ ( 4 ) - ( 5 ) ] . Queue ) ) ;\n }\n break ;\n case 252 : # line 1154 \"ntp_parser.y\" {\n ( yyval . Double ) = ( yyvsp [ ( 3 ) - ( 4 ) ] . Double ) ;\n }\n break ;\n case 253 : # line 1158 \"ntp_parser.y\" {\n ( yyval . Address_node ) = ( yyvsp [ ( 3 ) - ( 3 ) ] . Address_node ) ;\n }\n break ;\n case 254 : # line 1162 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 2 ) ] . Sim_script ) ) ;\n }\n break ;\n case 255 : # line 1163 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 1 ) ] . Sim_script ) ) ;\n }\n break ;\n case 256 : # line 1168 \"ntp_parser.y\" {\n ( yyval . Sim_script ) = create_sim_script_info ( ( yyvsp [ ( 3 ) - ( 6 ) ] . Double ) , ( yyvsp [ ( 5 ) - ( 6 ) ] . Queue ) ) ;\n }\n break ;\n case 257 : # line 1172 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue ( ( yyvsp [ ( 1 ) - ( 3 ) ] . Queue ) , ( yyvsp [ ( 2 ) - ( 3 ) ] . Attr_val ) ) ;\n }\n break ;\n case 258 : # line 1173 \"ntp_parser.y\" {\n ( yyval . Queue ) = enqueue_in_new_queue ( ( yyvsp [ ( 1 ) - ( 2 ) ] . Attr_val ) ) ;\n }\n break ;\n case 259 : # line 1178 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 3 ) ] . Integer ) , ( yyvsp [ ( 3 ) - ( 3 ) ] . Double ) ) ;\n }\n break ;\n case 260 : # line 1180 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 3 ) ] . Integer ) , ( yyvsp [ ( 3 ) - ( 3 ) ] . Double ) ) ;\n }\n break ;\n case 261 : # line 1182 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 3 ) ] . Integer ) , ( yyvsp [ ( 3 ) - ( 3 ) ] . Double ) ) ;\n }\n break ;\n case 262 : # line 1184 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 3 ) ] . Integer ) , ( yyvsp [ ( 3 ) - ( 3 ) ] . Double ) ) ;\n }\n break ;\n case 263 : # line 1186 \"ntp_parser.y\" {\n ( yyval . Attr_val ) = create_attr_dval ( ( yyvsp [ ( 1 ) - ( 3 ) ] . Integer ) , ( yyvsp [ ( 3 ) - ( 3 ) ] . Double ) ) ;\n }\n break ;\n # line 3836 \"ntp_parser.c\" default : break ;\n }\n YY_SYMBOL_PRINT ( \"-> $$ =\" , yyr1 [ yyn ] , & yyval , & yyloc ) ;\n YYPOPSTACK ( yylen ) ;\n yylen = 0 ;\n YY_STACK_PRINT ( yyss , yyssp ) ;\n * ++ yyvsp = yyval ;\n yyn = yyr1 [ yyn ] ;\n yystate = yypgoto [ yyn - YYNTOKENS ] + * yyssp ;\n if ( 0 <= yystate && yystate <= YYLAST && yycheck [ yystate ] == * yyssp ) yystate = yytable [ yystate ] ;\n else yystate = yydefgoto [ yyn - YYNTOKENS ] ;\n goto yynewstate ;\n yyerrlab : if ( ! yyerrstatus ) {\n ++ yynerrs ;\n # if ! YYERROR_VERBOSE yyerror ( YY_ ( \"syntax error\" ) ) ;\n # else {\n YYSIZE_T yysize = yysyntax_error ( 0 , yystate , yychar ) ;\n if ( yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM ) {\n YYSIZE_T yyalloc = 2 * yysize ;\n if ( ! ( yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM ) ) yyalloc = YYSTACK_ALLOC_MAXIMUM ;\n if ( yymsg != yymsgbuf ) YYSTACK_FREE ( yymsg ) ;\n yymsg = ( char * ) YYSTACK_ALLOC ( yyalloc ) ;\n if ( yymsg ) yymsg_alloc = yyalloc ;\n else {\n yymsg = yymsgbuf ;\n yymsg_alloc = sizeof yymsgbuf ;\n }\n }\n if ( 0 < yysize && yysize <= yymsg_alloc ) {\n ( void ) yysyntax_error ( yymsg , yystate , yychar ) ;\n yyerror ( yymsg ) ;\n }\n else {\n yyerror ( YY_ ( \"syntax error\" ) ) ;\n if ( yysize != 0 ) goto yyexhaustedlab ;\n }\n }\n # endif }\n if ( yyerrstatus == 3 ) {\n if ( yychar <= YYEOF ) {\n if ( yychar == YYEOF ) YYABORT ;\n }\n else {\n yydestruct ( \"Error: discarding\" , yytoken , & yylval ) ;\n yychar = YYEMPTY ;\n }\n }\n goto yyerrlab1 ;\n yyerrorlab : if ( 0 ) goto yyerrorlab ;\n YYPOPSTACK ( yylen ) ;\n yylen = 0 ;\n YY_STACK_PRINT ( yyss , yyssp ) ;\n yystate = * yyssp ;\n goto yyerrlab1 ;\n yyerrlab1 : yyerrstatus = 3 ;\n for ( ;\n ;\n ) {\n yyn = yypact [ yystate ] ;\n if ( yyn != YYPACT_NINF ) {\n yyn += YYTERROR ;\n if ( 0 <= yyn && yyn <= YYLAST && yycheck [ yyn ] == YYTERROR ) {\n yyn = yytable [ yyn ] ;\n if ( 0 < yyn ) break ;\n }\n }\n if ( yyssp == yyss ) YYABORT ;\n yydestruct ( \"Error: popping\" , yystos [ yystate ] , yyvsp ) ;\n YYPOPSTACK ( 1 ) ;\n yystate = * yyssp ;\n YY_STACK_PRINT ( yyss , yyssp ) ;\n }\n * ++ yyvsp = yylval ;\n YY_SYMBOL_PRINT ( \"Shifting\" , yystos [ yyn ] , yyvsp , yylsp ) ;\n yystate = yyn ;\n goto yynewstate ;\n yyacceptlab : yyresult = 0 ;\n goto yyreturn ;\n yyabortlab : yyresult = 1 ;\n goto yyreturn ;\n # if ! defined ( yyoverflow ) || YYERROR_VERBOSE yyexhaustedlab : yyerror ( YY_ ( \"memory exhausted\" ) ) ;\n yyresult = 2 ;\n # endif yyreturn : if ( yychar != YYEMPTY ) yydestruct ( \"Cleanup: discarding lookahead\" , yytoken , & yylval ) ;\n YYPOPSTACK ( yylen ) ;\n YY_STACK_PRINT ( yyss , yyssp ) ;\n while ( yyssp != yyss ) {\n yydestruct ( \"Cleanup: popping\" , yystos [ * yyssp ] , yyvsp ) ;\n YYPOPSTACK ( 1 ) ;\n }\n # ifndef yyoverflow if ( yyss != yyssa ) YYSTACK_FREE ( yyss ) ;\n # endif # if YYERROR_VERBOSE if ( yymsg != yymsgbuf ) YYSTACK_FREE ( yymsg ) ;\n # endif return YYID ( yyresult ) ;\n }"}
{"idx": 908, "target": 0, "func": "static void nameserver_failed ( struct nameserver * const ns , const char * msg ) {\n struct request * req , * started_at ;\n if ( ! ns -> state ) return ;\n log ( EVDNS_LOG_WARN , \"Nameserver %s has failed: %s\" , debug_ntoa ( ns -> address ) , msg ) ;\n global_good_nameservers -- ;\n assert ( global_good_nameservers >= 0 ) ;\n if ( global_good_nameservers == 0 ) {\n log ( EVDNS_LOG_WARN , \"All nameservers have failed\" ) ;\n }\n ns -> state = 0 ;\n ns -> failed_times = 1 ;\n if ( evtimer_add ( & ns -> timeout_event , ( struct timeval * ) & global_nameserver_timeouts [ 0 ] ) < 0 ) {\n log ( EVDNS_LOG_WARN , \"Error from libevent when adding timer event for %s\" , debug_ntoa ( ns -> address ) ) ;\n }\n if ( ! global_good_nameservers ) return ;\n req = req_head ;\n started_at = req_head ;\n if ( req ) {\n do {\n if ( req -> tx_count == 0 && req -> ns == ns ) {\n req -> ns = nameserver_pick ( ) ;\n }\n req = req -> next ;\n }\n while ( req != started_at ) ;\n }\n }"}
{"idx": 909, "target": 0, "func": "int get_op_opfamily_strategy ( Oid opno , Oid opfamily ) {\n HeapTuple tp ;\n Form_pg_amop amop_tup ;\n int result ;\n tp = SearchSysCache3 ( AMOPOPID , ObjectIdGetDatum ( opno ) , CharGetDatum ( AMOP_SEARCH ) , ObjectIdGetDatum ( opfamily ) ) ;\n if ( ! HeapTupleIsValid ( tp ) ) return 0 ;\n amop_tup = ( Form_pg_amop ) GETSTRUCT ( tp ) ;\n result = amop_tup -> amopstrategy ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }"}
{"idx": 910, "target": 0, "func": "char * kadmin_startup ( int argc , char * argv [ ] ) {\n extern char * optarg ;\n char * princstr = NULL , * keytab_name = NULL , * query = NULL ;\n char * password = NULL ;\n char * luser , * canon , * cp ;\n int optchar , freeprinc = 0 , use_keytab = 0 , use_anonymous = 0 ;\n struct passwd * pw ;\n kadm5_ret_t retval ;\n krb5_ccache cc ;\n krb5_principal princ ;\n kadm5_config_params params ;\n char * * db_args = NULL ;\n int db_args_size = 0 ;\n char * db_name = NULL ;\n char * svcname , * realm ;\n memset ( & params , 0 , sizeof ( params ) ) ;\n if ( strcmp ( whoami , \"kadmin.local\" ) == 0 ) set_com_err_hook ( extended_com_err_fn ) ;\n retval = kadm5_init_krb5_context ( & context ) ;\n if ( retval ) {\n com_err ( whoami , retval , _ ( \"while initializing krb5 library\" ) ) ;\n exit ( 1 ) ;\n }\n while ( ( optchar = getopt ( argc , argv , \"x:r:p:knq:w:d:s:mc:t:e:ON\" ) ) != EOF ) {\n switch ( optchar ) {\n case 'x' : db_args_size ++ ;\n db_args = realloc ( db_args , sizeof ( char * ) * ( db_args_size + 1 ) ) ;\n if ( db_args == NULL ) {\n fprintf ( stderr , _ ( \"%s: Cannot initialize. Not enough memory\\n\" ) , argv [ 0 ] ) ;\n exit ( 1 ) ;\n }\n db_args [ db_args_size - 1 ] = optarg ;\n db_args [ db_args_size ] = NULL ;\n break ;\n case 'r' : def_realm = optarg ;\n break ;\n case 'p' : princstr = optarg ;\n break ;\n case 'c' : ccache_name = optarg ;\n break ;\n case 'k' : use_keytab ++ ;\n break ;\n case 'n' : use_anonymous ++ ;\n break ;\n case 't' : keytab_name = optarg ;\n break ;\n case 'w' : password = optarg ;\n break ;\n case 'q' : query = optarg ;\n break ;\n case 'd' : free ( db_name ) ;\n asprintf ( & db_name , \"dbname=%s\" , optarg ) ;\n db_args_size ++ ;\n db_args = realloc ( db_args , sizeof ( char * ) * ( db_args_size + 1 ) ) ;\n if ( db_args == NULL ) {\n fprintf ( stderr , _ ( \"%s: Cannot initialize. Not enough memory\\n\" ) , argv [ 0 ] ) ;\n exit ( 1 ) ;\n }\n db_args [ db_args_size - 1 ] = db_name ;\n db_args [ db_args_size ] = NULL ;\n break ;\n case 's' : params . admin_server = optarg ;\n params . mask |= KADM5_CONFIG_ADMIN_SERVER ;\n break ;\n case 'm' : params . mkey_from_kbd = 1 ;\n params . mask |= KADM5_CONFIG_MKEY_FROM_KBD ;\n break ;\n case 'e' : retval = krb5_string_to_keysalts ( optarg , \", \\t\" , \":.-\" , 0 , & params . keysalts , & params . num_keysalts ) ;\n if ( retval ) {\n com_err ( whoami , retval , _ ( \"while parsing keysalts %s\" ) , optarg ) ;\n exit ( 1 ) ;\n }\n params . mask |= KADM5_CONFIG_ENCTYPES ;\n break ;\n case 'O' : params . mask |= KADM5_CONFIG_OLD_AUTH_GSSAPI ;\n break ;\n case 'N' : params . mask |= KADM5_CONFIG_AUTH_NOFALLBACK ;\n break ;\n default : usage ( ) ;\n }\n }\n if ( ( ccache_name && use_keytab ) || ( keytab_name && ! use_keytab ) || ( ccache_name && use_anonymous ) || ( use_anonymous && use_keytab ) ) usage ( ) ;\n if ( def_realm == NULL && krb5_get_default_realm ( context , & def_realm ) ) {\n fprintf ( stderr , _ ( \"%s: unable to get default realm\\n\" ) , whoami ) ;\n exit ( 1 ) ;\n }\n params . mask |= KADM5_CONFIG_REALM ;\n params . realm = def_realm ;\n if ( params . mask & KADM5_CONFIG_OLD_AUTH_GSSAPI ) svcname = KADM5_ADMIN_SERVICE ;\n else svcname = NULL ;\n if ( ccache_name == NULL ) {\n retval = krb5_cc_default ( context , & cc ) ;\n if ( retval ) {\n com_err ( whoami , retval , _ ( \"while opening default credentials cache\" ) ) ;\n exit ( 1 ) ;\n }\n }\n else {\n retval = krb5_cc_resolve ( context , ccache_name , & cc ) ;\n if ( retval ) {\n com_err ( whoami , retval , _ ( \"while opening credentials cache %s\" ) , ccache_name ) ;\n exit ( 1 ) ;\n }\n }\n if ( princstr == NULL ) {\n if ( ccache_name != NULL && ! krb5_cc_get_principal ( context , cc , & princ ) ) {\n retval = krb5_unparse_name ( context , princ , & princstr ) ;\n if ( retval ) {\n com_err ( whoami , retval , _ ( \"while canonicalizing principal name\" ) ) ;\n exit ( 1 ) ;\n }\n krb5_free_principal ( context , princ ) ;\n freeprinc ++ ;\n }\n else if ( use_keytab != 0 ) {\n retval = krb5_sname_to_principal ( context , NULL , \"host\" , KRB5_NT_SRV_HST , & princ ) ;\n if ( retval ) {\n com_err ( whoami , retval , _ ( \"creating host service principal\" ) ) ;\n exit ( 1 ) ;\n }\n retval = krb5_unparse_name ( context , princ , & princstr ) ;\n if ( retval ) {\n com_err ( whoami , retval , _ ( \"while canonicalizing principal name\" ) ) ;\n exit ( 1 ) ;\n }\n krb5_free_principal ( context , princ ) ;\n freeprinc ++ ;\n }\n else if ( ! krb5_cc_get_principal ( context , cc , & princ ) ) {\n if ( krb5_unparse_name ( context , princ , & canon ) ) {\n fprintf ( stderr , _ ( \"%s: unable to canonicalize principal\\n\" ) , whoami ) ;\n exit ( 1 ) ;\n }\n realm = strchr ( canon , '@' ) ;\n while ( realm ) {\n if ( realm > canon && * ( realm - 1 ) != '\\\\' ) break ;\n realm = strchr ( realm + 1 , '@' ) ;\n }\n if ( realm ) * realm ++ = '\\0' ;\n cp = strchr ( canon , '/' ) ;\n while ( cp ) {\n if ( cp > canon && * ( cp - 1 ) != '\\\\' ) break ;\n cp = strchr ( cp + 1 , '/' ) ;\n }\n if ( cp != NULL ) * cp = '\\0' ;\n if ( asprintf ( & princstr , \"%s/admin%s%s\" , canon , ( realm ) ? \"@\" : \"\" , ( realm ) ? realm : \"\" ) < 0 ) {\n fprintf ( stderr , _ ( \"%s: out of memory\\n\" ) , whoami ) ;\n exit ( 1 ) ;\n }\n free ( canon ) ;\n krb5_free_principal ( context , princ ) ;\n freeprinc ++ ;\n }\n else if ( ( luser = getenv ( \"USER\" ) ) ) {\n if ( asprintf ( & princstr , \"%s/admin@%s\" , luser , def_realm ) < 0 ) {\n fprintf ( stderr , _ ( \"%s: out of memory\\n\" ) , whoami ) ;\n exit ( 1 ) ;\n }\n freeprinc ++ ;\n }\n else if ( ( pw = getpwuid ( getuid ( ) ) ) ) {\n if ( asprintf ( & princstr , \"%s/admin@%s\" , pw -> pw_name , def_realm ) < 0 ) {\n fprintf ( stderr , _ ( \"%s: out of memory\\n\" ) , whoami ) ;\n exit ( 1 ) ;\n }\n freeprinc ++ ;\n }\n else {\n fprintf ( stderr , _ ( \"%s: unable to figure out a principal name\\n\" ) , whoami ) ;\n exit ( 1 ) ;\n }\n }\n retval = krb5_klog_init ( context , \"admin_server\" , whoami , 0 ) ;\n if ( retval ) {\n com_err ( whoami , retval , _ ( \"while setting up logging\" ) ) ;\n exit ( 1 ) ;\n }\n if ( ccache_name ) {\n printf ( _ ( \"Authenticating as principal %s with existing \" \"credentials.\\n\" ) , princstr ) ;\n retval = kadm5_init_with_creds ( context , princstr , cc , svcname , & params , KADM5_STRUCT_VERSION , KADM5_API_VERSION_4 , db_args , & handle ) ;\n }\n else if ( use_anonymous ) {\n printf ( _ ( \"Authenticating as principal %s with password;\n \" \"anonymous requested.\\n\" ) , princstr ) ;\n retval = kadm5_init_anonymous ( context , princstr , svcname , & params , KADM5_STRUCT_VERSION , KADM5_API_VERSION_4 , db_args , & handle ) ;\n }\n else if ( use_keytab ) {\n if ( keytab_name ) printf ( _ ( \"Authenticating as principal %s with keytab %s.\\n\" ) , princstr , keytab_name ) ;\n else printf ( _ ( \"Authenticating as principal %s with default keytab.\\n\" ) , princstr ) ;\n retval = kadm5_init_with_skey ( context , princstr , keytab_name , svcname , & params , KADM5_STRUCT_VERSION , KADM5_API_VERSION_4 , db_args , & handle ) ;\n }\n else {\n printf ( _ ( \"Authenticating as principal %s with password.\\n\" ) , princstr ) ;\n retval = kadm5_init_with_password ( context , princstr , password , svcname , & params , KADM5_STRUCT_VERSION , KADM5_API_VERSION_4 , db_args , & handle ) ;\n }\n if ( retval ) {\n com_err ( whoami , retval , _ ( \"while initializing %s interface\" ) , whoami ) ;\n if ( retval == KADM5_BAD_CLIENT_PARAMS || retval == KADM5_BAD_SERVER_PARAMS ) usage ( ) ;\n exit ( 1 ) ;\n }\n if ( freeprinc ) free ( princstr ) ;\n free ( db_name ) ;\n free ( db_args ) ;\n retval = krb5_cc_close ( context , cc ) ;\n if ( retval ) {\n com_err ( whoami , retval , _ ( \"while closing ccache %s\" ) , ccache_name ) ;\n exit ( 1 ) ;\n }\n retval = kadm5_init_iprop ( handle , 0 ) ;\n if ( retval ) {\n com_err ( whoami , retval , _ ( \"while mapping update log\" ) ) ;\n exit ( 1 ) ;\n }\n return query ;\n }"}
{"idx": 911, "target": 0, "func": "static inline bool ipv6_prefix_equal ( const struct in6_addr * a1 , const struct in6_addr * a2 , unsigned int prefixlen ) {\n return __ipv6_prefix_equal ( a1 -> s6_addr32 , a2 -> s6_addr32 , prefixlen ) ;\n }"}
{"idx": 912, "target": 0, "func": "static int dissect_h245_CustomPictureFormat ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_CustomPictureFormat , CustomPictureFormat_sequence ) ;\n return offset ;\n }"}
{"idx": 913, "target": 0, "func": "static int jbig2_parse_extension_segment ( Jbig2Ctx * ctx , Jbig2Segment * segment , const uint8_t * segment_data ) {\n uint32_t type = jbig2_get_uint32 ( segment_data ) ;\n bool reserved = type & 0x20000000 ;\n bool necessary = type & 0x80000000 ;\n if ( necessary && ! reserved ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"extension segment is marked 'necessary' but \" \"not 'reservered' contrary to spec\" ) ;\n }\n switch ( type ) {\n case 0x20000000 : return jbig2_comment_ascii ( ctx , segment , segment_data ) ;\n case 0x20000002 : return jbig2_comment_unicode ( ctx , segment , segment_data ) ;\n default : if ( necessary ) {\n return jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"unhandled necessary extension segment type 0x%08x\" , type ) ;\n }\n else {\n return jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"unhandled extension segment\" ) ;\n }\n }\n }"}
{"idx": 914, "target": 0, "func": "static int CreateOK ( struct ubik_trans * ut , afs_int32 cid , afs_int32 oid , afs_int32 flag , int admin ) {\n if ( restricted && ! admin ) return 0 ;\n if ( flag & PRFOREIGN ) {\n return 0 ;\n }\n else if ( flag & PRGRP ) {\n if ( cid == ANONYMOUSID ) {\n if ( ( oid == 0 ) || ! pr_noAuth ) return 0 ;\n }\n }\n else {\n if ( ! admin && ! pr_noAuth ) return 0 ;\n }\n return 1 ;\n }"}
{"idx": 915, "target": 0, "func": "hb_shape_plan_t * hb_shape_plan_get_empty ( void ) {\n static const hb_shape_plan_t _hb_shape_plan_nil = {\n HB_OBJECT_HEADER_STATIC , true , NULL , HB_SEGMENT_PROPERTIES_DEFAULT , NULL , NULL , NULL , 0 , {\n # define HB_SHAPER_IMPLEMENT ( shaper ) HB_SHAPER_DATA_INVALID , # include \"hb-shaper-list.hh\" # undef HB_SHAPER_IMPLEMENT }\n }\n ;\n return const_cast < hb_shape_plan_t * > ( & _hb_shape_plan_nil ) ;\n }"}
{"idx": 916, "target": 0, "func": "int xmlHashUpdateEntry2 ( xmlHashTablePtr table , const xmlChar * name , const xmlChar * name2 , void * userdata , xmlHashDeallocator f ) {\n return ( xmlHashUpdateEntry3 ( table , name , name2 , NULL , userdata , f ) ) ;\n }"}
{"idx": 917, "target": 0, "func": "static void load_config ( void ) {\n switch ( su_mode ) {\n case SU_MODE : logindefs_load_file ( _PATH_LOGINDEFS_SU ) ;\n break ;\n case RUNUSER_MODE : logindefs_load_file ( _PATH_LOGINDEFS_RUNUSER ) ;\n break ;\n }\n logindefs_load_file ( _PATH_LOGINDEFS ) ;\n }"}
{"idx": 918, "target": 0, "func": "void vm_stop_force_state ( RunState state ) {\n if ( runstate_is_running ( ) ) {\n vm_stop ( state ) ;\n }\n else {\n runstate_set ( state ) ;\n }\n }"}
{"idx": 919, "target": 0, "func": "static GVariant * _g_variant_new_maybe_string ( const gchar * value ) {\n if ( value == NULL ) return g_variant_new_string ( \"\" ) ;\n return g_variant_new_string ( value ) ;\n }"}
{"idx": 920, "target": 1, "func": "int test_sqr ( BIO * bp , BN_CTX * ctx ) {\n BIGNUM a , c , d , e ;\n int i ;\n BN_init ( & a ) ;\n BN_init ( & c ) ;\n BN_init ( & d ) ;\n BN_init ( & e ) ;\n for ( i = 0 ;\n i < num0 ;\n i ++ ) {\n BN_bntest_rand ( & a , 40 + i * 10 , 0 , 0 ) ;\n a . neg = rand_neg ( ) ;\n BN_sqr ( & c , & a , ctx ) ;\n if ( bp != NULL ) {\n if ( ! results ) {\n BN_print ( bp , & a ) ;\n BIO_puts ( bp , \" * \" ) ;\n BN_print ( bp , & a ) ;\n BIO_puts ( bp , \" - \" ) ;\n }\n BN_print ( bp , & c ) ;\n BIO_puts ( bp , \"\\n\" ) ;\n }\n BN_div ( & d , & e , & c , & a , ctx ) ;\n BN_sub ( & d , & d , & a ) ;\n if ( ! BN_is_zero ( & d ) || ! BN_is_zero ( & e ) ) {\n fprintf ( stderr , \"Square test failed!\\n\" ) ;\n return 0 ;\n }\n }\n BN_free ( & a ) ;\n BN_free ( & c ) ;\n BN_free ( & d ) ;\n BN_free ( & e ) ;\n return ( 1 ) ;\n }"}
{"idx": 921, "target": 0, "func": "int commit_command ( int cmd ) {\n time_t current_time ;\n time_t scheduled_time ;\n time_t notification_time ;\n char * temp_buffer = NULL ;\n int x = 0 , dummy ;\n time ( & current_time ) ;\n scheduled_time = current_time + ( schedule_delay * 60 ) ;\n notification_time = current_time + ( notification_delay * 60 ) ;\n switch ( cmd ) {\n case CMD_START_EXECUTING_SVC_CHECKS : case CMD_STOP_EXECUTING_SVC_CHECKS : case CMD_START_ACCEPTING_PASSIVE_SVC_CHECKS : case CMD_STOP_ACCEPTING_PASSIVE_SVC_CHECKS : case CMD_ENABLE_EVENT_HANDLERS : case CMD_DISABLE_EVENT_HANDLERS : case CMD_START_OBSESSING_OVER_SVC_CHECKS : case CMD_STOP_OBSESSING_OVER_SVC_CHECKS : case CMD_ENABLE_FLAP_DETECTION : case CMD_DISABLE_FLAP_DETECTION : case CMD_ENABLE_FAILURE_PREDICTION : case CMD_DISABLE_FAILURE_PREDICTION : case CMD_ENABLE_PERFORMANCE_DATA : case CMD_DISABLE_PERFORMANCE_DATA : case CMD_START_EXECUTING_HOST_CHECKS : case CMD_STOP_EXECUTING_HOST_CHECKS : case CMD_START_ACCEPTING_PASSIVE_HOST_CHECKS : case CMD_STOP_ACCEPTING_PASSIVE_HOST_CHECKS : case CMD_START_OBSESSING_OVER_HOST_CHECKS : case CMD_STOP_OBSESSING_OVER_HOST_CHECKS : if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , NULL ) ;\n break ;\n case CMD_ENABLE_HOST_FLAP_DETECTION : case CMD_DISABLE_HOST_FLAP_DETECTION : case CMD_ENABLE_PASSIVE_HOST_CHECKS : case CMD_DISABLE_PASSIVE_HOST_CHECKS : case CMD_START_OBSESSING_OVER_HOST : case CMD_STOP_OBSESSING_OVER_HOST : case CMD_DEL_ALL_HOST_COMMENTS : case CMD_ENABLE_ALL_NOTIFICATIONS_BEYOND_HOST : case CMD_DISABLE_ALL_NOTIFICATIONS_BEYOND_HOST : case CMD_ENABLE_HOST_EVENT_HANDLER : case CMD_DISABLE_HOST_EVENT_HANDLER : case CMD_ENABLE_HOST_CHECK : case CMD_DISABLE_HOST_CHECK : case CMD_REMOVE_HOST_ACKNOWLEDGEMENT : for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n if ( commands [ x ] . host_name == NULL ) continue ;\n if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%s\" , commands [ x ] . host_name ) ;\n }\n break ;\n case CMD_ENABLE_SVC_FLAP_DETECTION : case CMD_DISABLE_SVC_FLAP_DETECTION : case CMD_ENABLE_PASSIVE_SVC_CHECKS : case CMD_DISABLE_PASSIVE_SVC_CHECKS : case CMD_START_OBSESSING_OVER_SVC : case CMD_STOP_OBSESSING_OVER_SVC : case CMD_DEL_ALL_SVC_COMMENTS : case CMD_ENABLE_SVC_NOTIFICATIONS : case CMD_DISABLE_SVC_NOTIFICATIONS : case CMD_ENABLE_SVC_EVENT_HANDLER : case CMD_DISABLE_SVC_EVENT_HANDLER : case CMD_ENABLE_SVC_CHECK : case CMD_DISABLE_SVC_CHECK : case CMD_REMOVE_SVC_ACKNOWLEDGEMENT : for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n if ( commands [ x ] . host_name == NULL ) continue ;\n if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%s;\n%s\" , commands [ x ] . host_name , commands [ x ] . description ) ;\n }\n break ;\n case CMD_ADD_HOST_COMMENT : for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n if ( commands [ x ] . host_name == NULL ) continue ;\n if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%s;\n%d;\n%s;\n%s\" , commands [ x ] . host_name , persistent_comment , comment_author , comment_data ) ;\n }\n break ;\n case CMD_ADD_SVC_COMMENT : for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n if ( commands [ x ] . host_name == NULL ) continue ;\n if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%s;\n%s;\n%d;\n%s;\n%s\" , commands [ x ] . host_name , commands [ x ] . description , persistent_comment , comment_author , comment_data ) ;\n }\n break ;\n case CMD_DEL_HOST_COMMENT : case CMD_DEL_SVC_COMMENT : case CMD_DEL_HOST_DOWNTIME : case CMD_DEL_SVC_DOWNTIME : for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n if ( multi_ids [ x ] == FALSE ) continue ;\n if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%lu\" , multi_ids [ x ] ) ;\n }\n break ;\n case CMD_DEL_DOWNTIME_BY_HOST_NAME : for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n if ( commands [ x ] . host_name == NULL ) continue ;\n if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%s\" , commands [ x ] . host_name ) ;\n }\n break ;\n case CMD_DELAY_HOST_NOTIFICATION : for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n if ( commands [ x ] . host_name == NULL ) continue ;\n if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%s;\n%lu\" , commands [ x ] . host_name , notification_time ) ;\n }\n break ;\n case CMD_DELAY_SVC_NOTIFICATION : for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n if ( commands [ x ] . host_name == NULL ) continue ;\n if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%s;\n%s;\n%lu\" , commands [ x ] . host_name , commands [ x ] . description , notification_time ) ;\n }\n break ;\n case CMD_SCHEDULE_SVC_CHECK : case CMD_SCHEDULE_FORCED_SVC_CHECK : if ( force_check == TRUE ) cmd = CMD_SCHEDULE_FORCED_SVC_CHECK ;\n for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n if ( commands [ x ] . host_name == NULL ) continue ;\n if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%s;\n%s;\n%lu\" , commands [ x ] . host_name , commands [ x ] . description , start_time ) ;\n }\n break ;\n case CMD_ENABLE_NOTIFICATIONS : case CMD_SHUTDOWN_PROCESS : case CMD_RESTART_PROCESS : if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%lu\" , scheduled_time ) ;\n break ;\n case CMD_DISABLE_NOTIFICATIONS : if ( is_authorized [ x ] ) {\n if ( end_time > 0 ) {\n cmd = CMD_DISABLE_NOTIFICATIONS_EXPIRE_TIME ;\n submit_result [ x ] = cmd_submitf ( cmd , \"%lu;\n%lu\" , scheduled_time , end_time ) ;\n my_free ( temp_buffer ) ;\n }\n else {\n submit_result [ x ] = cmd_submitf ( cmd , \"%lu\" , scheduled_time ) ;\n }\n }\n break ;\n case CMD_ENABLE_HOST_SVC_CHECKS : case CMD_DISABLE_HOST_SVC_CHECKS : for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n if ( commands [ x ] . host_name == NULL ) continue ;\n if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%s\" , commands [ x ] . host_name ) ;\n }\n if ( affect_host_and_services == TRUE ) {\n cmd = ( cmd == CMD_ENABLE_HOST_SVC_CHECKS ) ? CMD_ENABLE_HOST_CHECK : CMD_DISABLE_HOST_CHECK ;\n for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n if ( commands [ x ] . host_name == NULL ) continue ;\n if ( is_authorized [ x ] ) submit_result [ x ] |= cmd_submitf ( cmd , \"%s\" , commands [ x ] . host_name ) ;\n }\n }\n break ;\n case CMD_SCHEDULE_HOST_SVC_CHECKS : if ( force_check == TRUE ) cmd = CMD_SCHEDULE_FORCED_HOST_SVC_CHECKS ;\n for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n if ( commands [ x ] . host_name == NULL ) continue ;\n if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%s;\n%lu\" , commands [ x ] . host_name , scheduled_time ) ;\n }\n break ;\n case CMD_ENABLE_HOST_NOTIFICATIONS : case CMD_DISABLE_HOST_NOTIFICATIONS : if ( propagate_to_children == TRUE ) cmd = ( cmd == CMD_ENABLE_HOST_NOTIFICATIONS ) ? CMD_ENABLE_HOST_AND_CHILD_NOTIFICATIONS : CMD_DISABLE_HOST_AND_CHILD_NOTIFICATIONS ;\n for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n if ( commands [ x ] . host_name == NULL ) continue ;\n if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%s\" , commands [ x ] . host_name ) ;\n }\n break ;\n case CMD_ENABLE_HOST_SVC_NOTIFICATIONS : case CMD_DISABLE_HOST_SVC_NOTIFICATIONS : for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n if ( commands [ x ] . host_name == NULL ) continue ;\n if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%s\" , commands [ x ] . host_name ) ;\n }\n if ( affect_host_and_services == TRUE ) {\n cmd = ( cmd == CMD_ENABLE_HOST_SVC_NOTIFICATIONS ) ? CMD_ENABLE_HOST_NOTIFICATIONS : CMD_DISABLE_HOST_NOTIFICATIONS ;\n for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n if ( commands [ x ] . host_name == NULL ) continue ;\n if ( is_authorized [ x ] ) submit_result [ x ] |= cmd_submitf ( cmd , \"%s\" , commands [ x ] . host_name ) ;\n }\n }\n break ;\n case CMD_ACKNOWLEDGE_HOST_PROBLEM : for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n if ( commands [ x ] . host_name == NULL ) continue ;\n if ( is_authorized [ x ] ) {\n if ( end_time > 0 ) {\n cmd = CMD_ACKNOWLEDGE_HOST_PROBLEM_EXPIRE ;\n dummy = asprintf ( & temp_buffer , \"%s - The acknowledgement expires at: %s.\" , comment_data , end_time_string ) ;\n submit_result [ x ] = cmd_submitf ( cmd , \"%s;\n%d;\n%d;\n%d;\n%lu;\n%s;\n%s\" , commands [ x ] . host_name , ( sticky_ack == TRUE ) ? ACKNOWLEDGEMENT_STICKY : ACKNOWLEDGEMENT_NORMAL , send_notification , persistent_comment , end_time , comment_author , temp_buffer ) ;\n my_free ( temp_buffer ) ;\n }\n else submit_result [ x ] = cmd_submitf ( cmd , \"%s;\n%d;\n%d;\n%d;\n%s;\n%s\" , commands [ x ] . host_name , ( sticky_ack == TRUE ) ? ACKNOWLEDGEMENT_STICKY : ACKNOWLEDGEMENT_NORMAL , send_notification , persistent_comment , comment_author , comment_data ) ;\n }\n }\n break ;\n case CMD_ACKNOWLEDGE_SVC_PROBLEM : for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n if ( commands [ x ] . host_name == NULL ) continue ;\n if ( is_authorized [ x ] ) {\n if ( end_time > 0 ) {\n cmd = CMD_ACKNOWLEDGE_SVC_PROBLEM_EXPIRE ;\n dummy = asprintf ( & temp_buffer , \"%s - The acknowledgement expires at: %s.\" , comment_data , end_time_string ) ;\n submit_result [ x ] = cmd_submitf ( cmd , \"%s;\n%s;\n%d;\n%d;\n%d;\n%lu;\n%s;\n%s\" , commands [ x ] . host_name , commands [ x ] . description , ( sticky_ack == TRUE ) ? ACKNOWLEDGEMENT_STICKY : ACKNOWLEDGEMENT_NORMAL , send_notification , persistent_comment , end_time , comment_author , temp_buffer ) ;\n my_free ( temp_buffer ) ;\n }\n else submit_result [ x ] = cmd_submitf ( cmd , \"%s;\n%s;\n%d;\n%d;\n%d;\n%s;\n%s\" , commands [ x ] . host_name , commands [ x ] . description , ( sticky_ack == TRUE ) ? ACKNOWLEDGEMENT_STICKY : ACKNOWLEDGEMENT_NORMAL , send_notification , persistent_comment , comment_author , comment_data ) ;\n }\n }\n break ;\n case CMD_PROCESS_SERVICE_CHECK_RESULT : for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n if ( commands [ x ] . host_name == NULL ) continue ;\n if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%s;\n%s;\n%d;\n%s|%s\" , commands [ x ] . host_name , commands [ x ] . description , plugin_state , plugin_output , performance_data ) ;\n }\n break ;\n case CMD_PROCESS_HOST_CHECK_RESULT : for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n if ( commands [ x ] . host_name == NULL ) continue ;\n if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%s;\n%d;\n%s|%s\" , commands [ x ] . host_name , plugin_state , plugin_output , performance_data ) ;\n }\n break ;\n case CMD_SCHEDULE_HOST_DOWNTIME : if ( child_options == 1 ) cmd = CMD_SCHEDULE_AND_PROPAGATE_TRIGGERED_HOST_DOWNTIME ;\n else if ( child_options == 2 ) cmd = CMD_SCHEDULE_AND_PROPAGATE_HOST_DOWNTIME ;\n for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n if ( commands [ x ] . host_name == NULL ) continue ;\n if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%s;\n%lu;\n%lu;\n%d;\n%lu;\n%lu;\n%s;\n%s\" , commands [ x ] . host_name , start_time , end_time , fixed , triggered_by , duration , comment_author , comment_data ) ;\n }\n break ;\n case CMD_SCHEDULE_HOST_SVC_DOWNTIME : for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n if ( commands [ x ] . host_name == NULL ) continue ;\n if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%s;\n%lu;\n%lu;\n%d;\n%lu;\n%lu;\n%s;\n%s\" , commands [ x ] . host_name , start_time , end_time , fixed , triggered_by , duration , comment_author , comment_data ) ;\n }\n break ;\n case CMD_SCHEDULE_SVC_DOWNTIME : for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n if ( commands [ x ] . host_name == NULL ) continue ;\n if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%s;\n%s;\n%lu;\n%lu;\n%d;\n%lu;\n%lu;\n%s;\n%s\" , commands [ x ] . host_name , commands [ x ] . description , start_time , end_time , fixed , triggered_by , duration , comment_author , comment_data ) ;\n }\n break ;\n case CMD_SCHEDULE_HOST_CHECK : if ( force_check == TRUE ) cmd = CMD_SCHEDULE_FORCED_HOST_CHECK ;\n for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n if ( commands [ x ] . host_name == NULL ) continue ;\n if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%s;\n%lu\" , commands [ x ] . host_name , start_time ) ;\n }\n break ;\n case CMD_SEND_CUSTOM_HOST_NOTIFICATION : for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n if ( commands [ x ] . host_name == NULL ) continue ;\n if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%s;\n%d;\n%s;\n%s\" , commands [ x ] . host_name , ( force_notification | broadcast_notification ) , comment_author , comment_data ) ;\n }\n break ;\n case CMD_SEND_CUSTOM_SVC_NOTIFICATION : for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n if ( commands [ x ] . host_name == NULL ) continue ;\n if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%s;\n%s;\n%d;\n%s;\n%s\" , commands [ x ] . host_name , commands [ x ] . description , ( force_notification | broadcast_notification ) , comment_author , comment_data ) ;\n }\n break ;\n case CMD_ENABLE_HOSTGROUP_SVC_NOTIFICATIONS : case CMD_DISABLE_HOSTGROUP_SVC_NOTIFICATIONS : if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%s\" , hostgroup_name ) ;\n if ( affect_host_and_services == TRUE ) {\n cmd = ( cmd == CMD_ENABLE_HOSTGROUP_SVC_NOTIFICATIONS ) ? CMD_ENABLE_HOSTGROUP_HOST_NOTIFICATIONS : CMD_DISABLE_HOSTGROUP_HOST_NOTIFICATIONS ;\n if ( is_authorized [ x ] ) submit_result [ x ] |= cmd_submitf ( cmd , \"%s\" , hostgroup_name ) ;\n }\n break ;\n case CMD_ENABLE_HOSTGROUP_HOST_NOTIFICATIONS : case CMD_DISABLE_HOSTGROUP_HOST_NOTIFICATIONS : if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%s\" , hostgroup_name ) ;\n break ;\n case CMD_ENABLE_HOSTGROUP_SVC_CHECKS : case CMD_DISABLE_HOSTGROUP_SVC_CHECKS : if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%s\" , hostgroup_name ) ;\n if ( affect_host_and_services == TRUE ) {\n cmd = ( cmd == CMD_ENABLE_HOSTGROUP_SVC_CHECKS ) ? CMD_ENABLE_HOSTGROUP_HOST_CHECKS : CMD_DISABLE_HOSTGROUP_HOST_CHECKS ;\n if ( is_authorized [ x ] ) submit_result [ x ] |= cmd_submitf ( cmd , \"%s\" , hostgroup_name ) ;\n }\n break ;\n case CMD_SCHEDULE_HOSTGROUP_HOST_DOWNTIME : if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%s;\n%lu;\n%lu;\n%d;\n0;\n%lu;\n%s;\n%s\" , hostgroup_name , start_time , end_time , fixed , duration , comment_author , comment_data ) ;\n break ;\n case CMD_SCHEDULE_HOSTGROUP_SVC_DOWNTIME : if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%s;\n%lu;\n%lu;\n%d;\n0;\n%lu;\n%s;\n%s\" , hostgroup_name , start_time , end_time , fixed , duration , comment_author , comment_data ) ;\n if ( affect_host_and_services == TRUE ) {\n if ( is_authorized [ x ] ) submit_result [ x ] |= cmd_submitf ( CMD_SCHEDULE_HOSTGROUP_HOST_DOWNTIME , \"%s;\n%lu;\n%lu;\n%d;\n0;\n%lu;\n%s;\n%s\" , hostgroup_name , start_time , end_time , fixed , duration , comment_author , comment_data ) ;\n }\n break ;\n case CMD_ENABLE_SERVICEGROUP_SVC_NOTIFICATIONS : case CMD_DISABLE_SERVICEGROUP_SVC_NOTIFICATIONS : if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%s\" , servicegroup_name ) ;\n if ( affect_host_and_services == TRUE ) {\n cmd = ( cmd == CMD_ENABLE_SERVICEGROUP_SVC_NOTIFICATIONS ) ? CMD_ENABLE_SERVICEGROUP_HOST_NOTIFICATIONS : CMD_DISABLE_SERVICEGROUP_HOST_NOTIFICATIONS ;\n if ( is_authorized [ x ] ) submit_result [ x ] |= cmd_submitf ( cmd , \"%s\" , servicegroup_name ) ;\n }\n break ;\n case CMD_ENABLE_SERVICEGROUP_HOST_NOTIFICATIONS : case CMD_DISABLE_SERVICEGROUP_HOST_NOTIFICATIONS : if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%s\" , servicegroup_name ) ;\n break ;\n case CMD_ENABLE_SERVICEGROUP_SVC_CHECKS : case CMD_DISABLE_SERVICEGROUP_SVC_CHECKS : if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%s\" , servicegroup_name ) ;\n if ( affect_host_and_services == TRUE ) {\n cmd = ( cmd == CMD_ENABLE_SERVICEGROUP_SVC_CHECKS ) ? CMD_ENABLE_SERVICEGROUP_HOST_CHECKS : CMD_DISABLE_SERVICEGROUP_HOST_CHECKS ;\n if ( is_authorized [ x ] ) submit_result [ x ] |= cmd_submitf ( cmd , \"%s\" , servicegroup_name ) ;\n }\n break ;\n case CMD_SCHEDULE_SERVICEGROUP_HOST_DOWNTIME : if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%s;\n%lu;\n%lu;\n%d;\n0;\n%lu;\n%s;\n%s\" , servicegroup_name , start_time , end_time , fixed , duration , comment_author , comment_data ) ;\n break ;\n case CMD_SCHEDULE_SERVICEGROUP_SVC_DOWNTIME : if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%s;\n%lu;\n%lu;\n%d;\n0;\n%lu;\n%s;\n%s\" , servicegroup_name , start_time , end_time , fixed , duration , comment_author , comment_data ) ;\n if ( affect_host_and_services == TRUE ) {\n if ( is_authorized [ x ] ) submit_result [ x ] |= cmd_submitf ( CMD_SCHEDULE_SERVICEGROUP_HOST_DOWNTIME , \"%s;\n%lu;\n%lu;\n%d;\n0;\n%lu;\n%s;\n%s\" , servicegroup_name , start_time , end_time , fixed , duration , comment_author , comment_data ) ;\n }\n break ;\n case CMD_CHANGE_HOST_MODATTR : for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n if ( commands [ x ] . host_name == NULL ) continue ;\n if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%s;\n%lu\" , commands [ x ] . host_name , attr ) ;\n }\n break ;\n case CMD_CHANGE_SVC_MODATTR : for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n if ( commands [ x ] . host_name == NULL ) continue ;\n if ( is_authorized [ x ] ) submit_result [ x ] = cmd_submitf ( cmd , \"%s;\n%s;\n%lu\" , commands [ x ] . host_name , commands [ x ] . description , attr ) ;\n }\n break ;\n default : submit_result [ x ] = ERROR ;\n break ;\n }\n return OK ;\n }"}
{"idx": 922, "target": 0, "func": "void fz_cmm_init_profile ( fz_context * ctx , fz_iccprofile * profile ) {\n if ( ctx && ctx -> colorspace && ctx -> colorspace -> cmm && ctx -> cmm_instance ) ctx -> colorspace -> cmm -> init_profile ( ctx -> cmm_instance , profile ) ;\n }"}
{"idx": 923, "target": 0, "func": "static const SvcInternal * get_const_svc_internal ( const SvcContext * svc_ctx ) {\n if ( svc_ctx == NULL ) return NULL ;\n return ( const SvcInternal * ) svc_ctx -> internal ;\n }"}
{"idx": 924, "target": 0, "func": "static __inline __uint64_t __uint64_identity ( __uint64_t __x ) {\n return __x ;\n }"}
{"idx": 925, "target": 1, "func": "static __inline__ __u32 __fswahb32 ( __u32 val ) {\n # ifdef __arch_swahb32 return __arch_swahb32 ( val ) ;\n # else return ___constant_swahb32 ( val ) ;\n # endif }"}
{"idx": 926, "target": 0, "func": "static int dissect_h245_BMPString_SIZE_1_128 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_BMPString ( tvb , offset , actx , tree , hf_index , 1 , 128 , FALSE ) ;\n return offset ;\n }"}
{"idx": 927, "target": 1, "func": "static void dtls1_clear_queues ( SSL * s ) {\n pitem * item = NULL ;\n hm_fragment * frag = NULL ;\n while ( ( item = pqueue_pop ( s -> d1 -> buffered_messages ) ) != NULL ) {\n frag = ( hm_fragment * ) item -> data ;\n dtls1_hm_fragment_free ( frag ) ;\n pitem_free ( item ) ;\n }\n while ( ( item = pqueue_pop ( s -> d1 -> sent_messages ) ) != NULL ) {\n frag = ( hm_fragment * ) item -> data ;\n dtls1_hm_fragment_free ( frag ) ;\n pitem_free ( item ) ;\n }\n }"}
{"idx": 928, "target": 0, "func": "vpx_codec_err_t vp9_parse_superframe_index ( const uint8_t * data , size_t data_sz , uint32_t sizes [ 8 ] , int * count , vpx_decrypt_cb decrypt_cb , void * decrypt_state ) {\n uint8_t marker ;\n assert ( data_sz ) ;\n marker = read_marker ( decrypt_cb , decrypt_state , data + data_sz - 1 ) ;\n * count = 0 ;\n if ( ( marker & 0xe0 ) == 0xc0 ) {\n const uint32_t frames = ( marker & 0x7 ) + 1 ;\n const uint32_t mag = ( ( marker >> 3 ) & 0x3 ) + 1 ;\n const size_t index_sz = 2 + mag * frames ;\n if ( data_sz < index_sz ) return VPX_CODEC_CORRUPT_FRAME ;\n {\n const uint8_t marker2 = read_marker ( decrypt_cb , decrypt_state , data + data_sz - index_sz ) ;\n if ( marker != marker2 ) return VPX_CODEC_CORRUPT_FRAME ;\n }\n {\n uint32_t i , j ;\n const uint8_t * x = & data [ data_sz - index_sz + 1 ] ;\n uint8_t clear_buffer [ 32 ] ;\n assert ( sizeof ( clear_buffer ) >= frames * mag ) ;\n if ( decrypt_cb ) {\n decrypt_cb ( decrypt_state , x , clear_buffer , frames * mag ) ;\n x = clear_buffer ;\n }\n for ( i = 0 ;\n i < frames ;\n ++ i ) {\n uint32_t this_sz = 0 ;\n for ( j = 0 ;\n j < mag ;\n ++ j ) this_sz |= ( * x ++ ) << ( j * 8 ) ;\n sizes [ i ] = this_sz ;\n }\n * count = frames ;\n }\n }\n return VPX_CODEC_OK ;\n }"}
{"idx": 929, "target": 0, "func": "static int dissect_pvfs2_write_completion_response ( tvbuff_t * tvb , proto_tree * tree , int offset ) {\n offset = dissect_pvfs_uint64 ( tvb , tree , offset , hf_pvfs_total_completed , NULL ) ;\n return offset ;\n }"}
{"idx": 930, "target": 0, "func": "int dissect_h225_TransportChannelInfo ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_TransportChannelInfo , TransportChannelInfo_sequence ) ;\n return offset ;\n }"}
{"idx": 931, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( ExternalProtocolDialogBrowserTest , TestClose ) {\n ShowDialog ( ) ;\n EXPECT_TRUE ( dialog_ -> Close ( ) ) ;\n EXPECT_TRUE ( called_ ) ;\n EXPECT_FALSE ( accept_ ) ;\n EXPECT_TRUE ( cancel_ ) ;\n EXPECT_FALSE ( dont_block_ ) ;\n histogram_tester_ . ExpectTotalCount ( ExternalProtocolHandler : : kRememberCheckboxMetric , 0 ) ;\n histogram_tester_ . ExpectTotalCount ( ExternalProtocolHandler : : kHandleStateMetric , 0 ) ;\n }"}
{"idx": 932, "target": 0, "func": "static gboolean confirm_delete_from_trash ( CommonJob * job , GList * files ) {\n char * prompt ;\n int file_count ;\n int response ;\n if ( ! should_confirm_trash ( ) ) {\n return TRUE ;\n }\n file_count = g_list_length ( files ) ;\n g_assert ( file_count > 0 ) ;\n if ( file_count == 1 ) {\n prompt = f ( _ ( \"Are you sure you want to permanently delete \u201c%B\u201d \" \"from the trash?\" ) , files -> data ) ;\n }\n else {\n prompt = f ( ngettext ( \"Are you sure you want to permanently delete \" \"the %'d selected item from the trash?\" , \"Are you sure you want to permanently delete \" \"the %'d selected items from the trash?\" , file_count ) , file_count ) ;\n }\n response = run_warning ( job , prompt , f ( _ ( \"If you delete an item, it will be permanently lost.\" ) ) , NULL , FALSE , CANCEL , DELETE , NULL ) ;\n return ( response == 1 ) ;\n }"}
{"idx": 933, "target": 0, "func": "static int pdo_row_serialize ( zval * object , unsigned char * * buffer , zend_uint * buf_len , zend_serialize_data * data TSRMLS_DC ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"PDORow instances may not be serialized\" ) ;\n return FAILURE ;\n }"}
{"idx": 934, "target": 0, "func": "static void link_info_cancel ( NautilusDirectory * directory ) {\n if ( directory -> details -> link_info_read_state != NULL ) {\n g_cancellable_cancel ( directory -> details -> link_info_read_state -> cancellable ) ;\n directory -> details -> link_info_read_state -> directory = NULL ;\n directory -> details -> link_info_read_state = NULL ;\n async_job_end ( directory , \"link info\" ) ;\n }\n }"}
{"idx": 935, "target": 0, "func": "int qemuMonitorTextSetDrivePassphrase ( qemuMonitorPtr mon , const char * alias , const char * passphrase ) {\n char * cmd = NULL ;\n char * reply = NULL ;\n int ret = - 1 ;\n char * safe_str ;\n safe_str = qemuMonitorEscapeArg ( passphrase ) ;\n if ( ! safe_str ) {\n virReportOOMError ( ) ;\n return - 1 ;\n }\n if ( virAsprintf ( & cmd , \"block_passwd %s%s \\\"%s\\\"\" , QEMU_DRIVE_HOST_PREFIX , alias , safe_str ) < 0 ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , _ ( \"failed to set disk password\" ) ) ;\n goto cleanup ;\n }\n if ( strstr ( reply , \"unknown command:\" ) ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , _ ( \"setting disk password is not supported\" ) ) ;\n goto cleanup ;\n }\n else if ( strstr ( reply , \"The entered password is invalid\" ) ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , _ ( \"the disk password is incorrect\" ) ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( cmd ) ;\n VIR_FREE ( reply ) ;\n VIR_FREE ( safe_str ) ;\n return ret ;\n }"}
{"idx": 936, "target": 0, "func": "xmlOutputBufferCreateFilenameFunc xmlThrDefOutputBufferCreateFilenameDefault ( xmlOutputBufferCreateFilenameFunc func ) {\n xmlOutputBufferCreateFilenameFunc old ;\n xmlMutexLock ( xmlThrDefMutex ) ;\n old = xmlOutputBufferCreateFilenameValueThrDef ;\n # ifdef LIBXML_OUTPUT_ENABLED if ( old == NULL ) {\n old = __xmlOutputBufferCreateFilename ;\n }\n # endif xmlOutputBufferCreateFilenameValueThrDef = func ;\n xmlMutexUnlock ( xmlThrDefMutex ) ;\n return ( old ) ;\n }"}
{"idx": 937, "target": 0, "func": "static UBool _addExtensionToList ( ExtensionListEntry * * first , ExtensionListEntry * ext , UBool localeToBCP ) {\n UBool bAdded = TRUE ;\n if ( * first == NULL ) {\n ext -> next = NULL ;\n * first = ext ;\n }\n else {\n ExtensionListEntry * prev , * cur ;\n int32_t cmp ;\n prev = NULL ;\n cur = * first ;\n while ( TRUE ) {\n if ( cur == NULL ) {\n prev -> next = ext ;\n ext -> next = NULL ;\n break ;\n }\n if ( localeToBCP ) {\n int32_t len , curlen ;\n len = ( int32_t ) uprv_strlen ( ext -> key ) ;\n curlen = ( int32_t ) uprv_strlen ( cur -> key ) ;\n if ( len == 1 && curlen == 1 ) {\n if ( * ( ext -> key ) == * ( cur -> key ) ) {\n cmp = 0 ;\n }\n else if ( * ( ext -> key ) == PRIVATEUSE ) {\n cmp = 1 ;\n }\n else if ( * ( cur -> key ) == PRIVATEUSE ) {\n cmp = - 1 ;\n }\n else {\n cmp = * ( ext -> key ) - * ( cur -> key ) ;\n }\n }\n else if ( len == 1 ) {\n cmp = * ( ext -> key ) - LDMLEXT ;\n }\n else if ( curlen == 1 ) {\n cmp = LDMLEXT - * ( cur -> key ) ;\n }\n else {\n cmp = uprv_compareInvCharsAsAscii ( ext -> key , cur -> key ) ;\n if ( cmp != 0 ) {\n if ( uprv_strcmp ( cur -> key , LOCALE_ATTRIBUTE_KEY ) == 0 ) {\n cmp = 1 ;\n }\n else if ( uprv_strcmp ( ext -> key , LOCALE_ATTRIBUTE_KEY ) == 0 ) {\n cmp = - 1 ;\n }\n }\n }\n }\n else {\n cmp = uprv_compareInvCharsAsAscii ( ext -> key , cur -> key ) ;\n }\n if ( cmp < 0 ) {\n if ( prev == NULL ) {\n * first = ext ;\n }\n else {\n prev -> next = ext ;\n }\n ext -> next = cur ;\n break ;\n }\n if ( cmp == 0 ) {\n bAdded = FALSE ;\n break ;\n }\n prev = cur ;\n cur = cur -> next ;\n }\n }\n return bAdded ;\n }"}
{"idx": 938, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( ProfileBrowserTest , URLFetcherUsingExtensionContextDuringIncognitoTeardown ) {\n Browser * incognito_browser = OpenURLOffTheRecord ( browser ( ) -> profile ( ) , GURL ( \"about:blank\" ) ) ;\n RunURLFetcherActiveDuringIncognitoTeardownTest ( incognito_browser , incognito_browser -> profile ( ) -> GetRequestContextForExtensions ( ) ) ;\n }"}
{"idx": 939, "target": 0, "func": "static GFile * get_unique_target_file ( GFile * src , GFile * dest_dir , gboolean same_fs , const char * dest_fs_type , int count ) {\n const char * editname , * end ;\n char * basename , * new_name ;\n GFileInfo * info ;\n GFile * dest ;\n int max_length ;\n max_length = get_max_name_length ( dest_dir ) ;\n dest = NULL ;\n info = g_file_query_info ( src , G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME , 0 , NULL , NULL ) ;\n if ( info != NULL ) {\n editname = g_file_info_get_attribute_string ( info , G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME ) ;\n if ( editname != NULL ) {\n new_name = get_duplicate_name ( editname , count , max_length ) ;\n make_file_name_valid_for_dest_fs ( new_name , dest_fs_type ) ;\n dest = g_file_get_child_for_display_name ( dest_dir , new_name , NULL ) ;\n g_free ( new_name ) ;\n }\n g_object_unref ( info ) ;\n }\n if ( dest == NULL ) {\n basename = g_file_get_basename ( src ) ;\n if ( g_utf8_validate ( basename , - 1 , NULL ) ) {\n new_name = get_duplicate_name ( basename , count , max_length ) ;\n make_file_name_valid_for_dest_fs ( new_name , dest_fs_type ) ;\n dest = g_file_get_child_for_display_name ( dest_dir , new_name , NULL ) ;\n g_free ( new_name ) ;\n }\n if ( dest == NULL ) {\n end = strrchr ( basename , '.' ) ;\n if ( end != NULL ) {\n count += atoi ( end + 1 ) ;\n }\n new_name = g_strdup_printf ( \"%s.%d\" , basename , count ) ;\n make_file_name_valid_for_dest_fs ( new_name , dest_fs_type ) ;\n dest = g_file_get_child ( dest_dir , new_name ) ;\n g_free ( new_name ) ;\n }\n g_free ( basename ) ;\n }\n return dest ;\n }"}
{"idx": 940, "target": 0, "func": "static int32_t u_printf_spellout_handler ( const u_printf_stream_handler * handler , void * context , ULocaleBundle * formatBundle , const u_printf_spec_info * info , const ufmt_args * args ) {\n double num = ( double ) ( args [ 0 ] . doubleValue ) ;\n UNumberFormat * format ;\n UChar result [ UPRINTF_BUFFER_SIZE ] ;\n UChar prefixBuffer [ UPRINTF_BUFFER_SIZE ] ;\n int32_t prefixBufferLen = sizeof ( prefixBuffer ) ;\n int32_t minDecimalDigits ;\n int32_t maxDecimalDigits ;\n int32_t resultLen ;\n UErrorCode status = U_ZERO_ERROR ;\n prefixBuffer [ 0 ] = 0 ;\n format = u_locbund_getNumberFormat ( formatBundle , UNUM_SPELLOUT ) ;\n if ( format == 0 ) return 0 ;\n minDecimalDigits = unum_getAttribute ( format , UNUM_MIN_FRACTION_DIGITS ) ;\n maxDecimalDigits = unum_getAttribute ( format , UNUM_MAX_FRACTION_DIGITS ) ;\n if ( info -> fPrecision != - 1 ) {\n unum_setAttribute ( format , UNUM_FRACTION_DIGITS , info -> fPrecision ) ;\n }\n else if ( info -> fAlt ) {\n unum_setAttribute ( format , UNUM_FRACTION_DIGITS , 6 ) ;\n }\n else {\n unum_setAttribute ( format , UNUM_FRACTION_DIGITS , 6 ) ;\n }\n if ( info -> fShowSign ) {\n u_printf_set_sign ( format , info , prefixBuffer , & prefixBufferLen , & status ) ;\n }\n resultLen = unum_formatDouble ( format , num , result , UPRINTF_BUFFER_SIZE , 0 , & status ) ;\n if ( U_FAILURE ( status ) ) {\n resultLen = 0 ;\n }\n unum_setAttribute ( format , UNUM_MIN_FRACTION_DIGITS , minDecimalDigits ) ;\n unum_setAttribute ( format , UNUM_MAX_FRACTION_DIGITS , maxDecimalDigits ) ;\n if ( info -> fShowSign ) {\n UErrorCode localStatus = U_ZERO_ERROR ;\n u_printf_reset_sign ( format , info , prefixBuffer , & prefixBufferLen , & localStatus ) ;\n }\n return handler -> pad_and_justify ( context , info , result , resultLen ) ;\n }"}
{"idx": 941, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( LocalNTPOneGoogleBarSmokeTest , NTPLoadsWithoutErrorOnNetworkFailure ) {\n content : : WebContents * active_tab = local_ntp_test_utils : : OpenNewTab ( browser ( ) , GURL ( \"about:blank\" ) ) ;\n ASSERT_FALSE ( search : : IsInstantNTP ( active_tab ) ) ;\n content : : ConsoleObserverDelegate console_observer ( active_tab , \"*\" ) ;\n active_tab -> SetDelegate ( & console_observer ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , GURL ( chrome : : kChromeUINewTabURL ) ) ;\n ASSERT_TRUE ( search : : IsInstantNTP ( active_tab ) ) ;\n ASSERT_EQ ( GURL ( chrome : : kChromeSearchLocalNtpUrl ) , active_tab -> GetController ( ) . GetVisibleEntry ( ) -> GetURL ( ) ) ;\n EXPECT_TRUE ( console_observer . message ( ) . empty ( ) ) << console_observer . message ( ) ;\n }"}
{"idx": 942, "target": 1, "func": "static int dissect_udvm_reference_operand_memory ( guint8 * buff , guint operand_address , guint16 * value , guint * result_dest ) {\n guint bytecode ;\n guint16 operand ;\n guint offset = operand_address ;\n guint test_bits ;\n guint8 temp_data ;\n guint16 temp_data16 ;\n bytecode = buff [ operand_address ] ;\n test_bits = bytecode >> 7 ;\n if ( test_bits == 1 ) {\n test_bits = bytecode >> 6 ;\n if ( test_bits == 2 ) {\n temp_data = buff [ operand_address ] & 0x3f ;\n operand = temp_data << 8 ;\n temp_data = buff [ ( operand_address + 1 ) & 0xffff ] ;\n operand = operand | temp_data ;\n operand = ( operand * 2 ) ;\n * result_dest = operand ;\n temp_data16 = buff [ operand ] << 8 ;\n temp_data16 = temp_data16 | buff [ ( operand + 1 ) & 0xffff ] ;\n * value = temp_data16 ;\n offset = offset + 2 ;\n }\n else {\n operand_address ++ ;\n operand = buff [ operand_address ] << 8 ;\n operand = operand | buff [ ( operand_address + 1 ) & 0xffff ] ;\n * result_dest = operand ;\n temp_data16 = buff [ operand ] << 8 ;\n temp_data16 = temp_data16 | buff [ ( operand + 1 ) & 0xffff ] ;\n * value = temp_data16 ;\n offset = offset + 3 ;\n }\n }\n else {\n operand = ( bytecode & 0x7f ) ;\n operand = ( operand * 2 ) ;\n * result_dest = operand ;\n temp_data16 = buff [ operand ] << 8 ;\n temp_data16 = temp_data16 | buff [ ( operand + 1 ) & 0xffff ] ;\n * value = temp_data16 ;\n offset ++ ;\n }\n if ( offset >= UDVM_MEMORY_SIZE || * result_dest >= UDVM_MEMORY_SIZE - 1 ) return 0 ;\n return offset ;\n }"}
{"idx": 943, "target": 0, "func": "static int tls1_PRF ( long digest_mask , const void * seed1 , int seed1_len , const void * seed2 , int seed2_len , const void * seed3 , int seed3_len , const void * seed4 , int seed4_len , const void * seed5 , int seed5_len , const unsigned char * sec , int slen , unsigned char * out1 , unsigned char * out2 , int olen ) {\n int len , i , idx , count ;\n const unsigned char * S1 ;\n long m ;\n const EVP_MD * md ;\n int ret = 0 ;\n count = 0 ;\n for ( idx = 0 ;\n ssl_get_handshake_digest ( idx , & m , & md ) ;\n idx ++ ) {\n if ( ( m << TLS1_PRF_DGST_SHIFT ) & digest_mask ) count ++ ;\n }\n len = slen / count ;\n if ( count == 1 ) slen = 0 ;\n S1 = sec ;\n memset ( out1 , 0 , olen ) ;\n for ( idx = 0 ;\n ssl_get_handshake_digest ( idx , & m , & md ) ;\n idx ++ ) {\n if ( ( m << TLS1_PRF_DGST_SHIFT ) & digest_mask ) {\n if ( ! md ) {\n SSLerr ( SSL_F_TLS1_PRF , SSL_R_UNSUPPORTED_DIGEST_TYPE ) ;\n goto err ;\n }\n if ( ! tls1_P_hash ( md , S1 , len + ( slen & 1 ) , seed1 , seed1_len , seed2 , seed2_len , seed3 , seed3_len , seed4 , seed4_len , seed5 , seed5_len , out2 , olen ) ) goto err ;\n S1 += len ;\n for ( i = 0 ;\n i < olen ;\n i ++ ) {\n out1 [ i ] ^= out2 [ i ] ;\n }\n }\n }\n ret = 1 ;\n err : return ret ;\n }"}
{"idx": 944, "target": 0, "func": "TEST ( WinUtils , IsPipe ) {\n using sandbox : : IsPipe ;\n base : : string16 pipe_name = L\"\\\\??\\\\pipe\\\\mypipe\" ;\n EXPECT_TRUE ( IsPipe ( pipe_name ) ) ;\n pipe_name = L\"\\\\??\\\\PiPe\\\\mypipe\" ;\n EXPECT_TRUE ( IsPipe ( pipe_name ) ) ;\n pipe_name = L\"\\\\??\\\\pipe\" ;\n EXPECT_FALSE ( IsPipe ( pipe_name ) ) ;\n pipe_name = L\"\\\\??\\\\_pipe_\\\\mypipe\" ;\n EXPECT_FALSE ( IsPipe ( pipe_name ) ) ;\n pipe_name = L\"\\\\??\\\\ABCD\\\\mypipe\" ;\n EXPECT_FALSE ( IsPipe ( pipe_name ) ) ;\n pipe_name = L\"/??/pipe/mypipe\" ;\n EXPECT_FALSE ( IsPipe ( pipe_name ) ) ;\n pipe_name = L\"\\\\XX\\\\pipe\\\\mypipe\" ;\n EXPECT_FALSE ( IsPipe ( pipe_name ) ) ;\n pipe_name = L\"\\\\Device\\\\NamedPipe\\\\mypipe\" ;\n EXPECT_FALSE ( IsPipe ( pipe_name ) ) ;\n }"}
{"idx": 945, "target": 0, "func": "static int is_known_bootstrap_register ( guint64 addr , u3v_conv_info_t * u3v_conv_info ) {\n const gchar * address_string = NULL ;\n guint32 offset_address ;\n if ( addr < 0x10000 ) {\n offset_address = ( guint32 ) addr ;\n address_string = try_val_to_str ( offset_address , bootstrap_register_names_abrm ) ;\n }\n if ( u3v_conv_info -> sbrm_addr != 0 && ( addr >= u3v_conv_info -> sbrm_addr ) ) {\n offset_address = ( guint32 ) ( addr - u3v_conv_info -> sbrm_addr ) ;\n address_string = try_val_to_str ( offset_address , bootstrap_register_names_sbrm ) ;\n }\n if ( u3v_conv_info -> sirm_addr != 0 && ( addr >= u3v_conv_info -> sirm_addr ) ) {\n offset_address = ( guint32 ) ( addr - u3v_conv_info -> sirm_addr ) ;\n address_string = try_val_to_str ( offset_address , bootstrap_register_names_sirm ) ;\n }\n if ( u3v_conv_info -> eirm_addr != 0 && ( addr >= u3v_conv_info -> eirm_addr ) ) {\n offset_address = ( guint32 ) ( addr - u3v_conv_info -> eirm_addr ) ;\n address_string = try_val_to_str ( offset_address , bootstrap_register_names_eirm ) ;\n }\n return address_string != NULL ;\n }"}
{"idx": 946, "target": 0, "func": "void TSCacheHttpInfoRespGet ( TSCacheHttpInfo infop , TSMBuffer * bufp , TSMLoc * obj ) {\n CacheHTTPInfo * info = ( CacheHTTPInfo * ) infop ;\n * ( reinterpret_cast < HTTPHdr * * > ( bufp ) ) = info -> response_get ( ) ;\n * obj = reinterpret_cast < TSMLoc > ( info -> response_get ( ) -> m_http ) ;\n sdk_assert ( sdk_sanity_check_mbuffer ( * bufp ) == TS_SUCCESS ) ;\n }"}
{"idx": 947, "target": 0, "func": "static void rv40_parse_picture_size ( GetBitContext * gb , int * w , int * h ) {\n * w = get_dimension ( gb , rv40_standard_widths ) ;\n * h = get_dimension ( gb , rv40_standard_heights ) ;\n }"}
{"idx": 948, "target": 0, "func": "void min_heap_ctor ( min_heap_t * s ) {\n s -> p = 0 ;\n s -> n = 0 ;\n s -> a = 0 ;\n }"}
{"idx": 949, "target": 0, "func": "static void http_connection_test ( int persistent ) {\n short port = - 1 ;\n struct evhttp_connection * evcon = NULL ;\n struct evhttp_request * req = NULL ;\n test_ok = 0 ;\n fprintf ( stdout , \"Testing Request Connection Pipeline %s: \" , persistent ? \"(persistent)\" : \"\" ) ;\n http = http_setup ( & port , NULL ) ;\n evcon = evhttp_connection_new ( \"127.0.0.1\" , port ) ;\n if ( evcon == NULL ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n req = evhttp_request_new ( http_request_done , NULL ) ;\n evhttp_add_header ( req -> output_headers , \"Host\" , \"somehost\" ) ;\n if ( evhttp_make_request ( evcon , req , EVHTTP_REQ_GET , \"/test\" ) == - 1 ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n event_dispatch ( ) ;\n if ( test_ok != 1 ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n test_ok = 0 ;\n req = evhttp_request_new ( http_request_done , NULL ) ;\n evhttp_add_header ( req -> output_headers , \"Host\" , \"somehost\" ) ;\n if ( ! persistent ) evhttp_add_header ( req -> output_headers , \"Connection\" , \"close\" ) ;\n if ( evhttp_make_request ( evcon , req , EVHTTP_REQ_GET , \"/test\" ) == - 1 ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n event_dispatch ( ) ;\n test_ok = 0 ;\n req = evhttp_request_new ( http_request_empty_done , NULL ) ;\n evhttp_add_header ( req -> output_headers , \"Empty\" , \"itis\" ) ;\n if ( evhttp_make_request ( evcon , req , EVHTTP_REQ_GET , \"/test\" ) == - 1 ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n event_dispatch ( ) ;\n if ( test_ok != 1 ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n evhttp_connection_free ( evcon ) ;\n evhttp_free ( http ) ;\n fprintf ( stdout , \"OK\\n\" ) ;\n }"}
{"idx": 950, "target": 0, "func": "int qemuMonitorTextSaveVirtualMemory ( qemuMonitorPtr mon , unsigned long long offset , size_t length , const char * path ) {\n return qemuMonitorTextSaveMemory ( mon , \"memsave\" , offset , length , path ) ;\n }"}
{"idx": 951, "target": 0, "func": "static guint16 de_conn_sub_addr ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ ) {\n gchar * extr_addr ;\n de_sub_addr ( tvb , tree , pinfo , offset , len , & extr_addr ) ;\n if ( extr_addr && add_string ) g_snprintf ( add_string , string_len , \" - (%s)\" , extr_addr ) ;\n return ( len ) ;\n }"}
{"idx": 952, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , UseCounterAnimatedCSSPropertiesInIframe ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : LOAD_EVENT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/page_load_metrics/use_counter_features_in_iframe.html\" ) ) ;\n waiter -> Wait ( ) ;\n NavigateToUntrackedUrl ( ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kAnimatedCssPropertiesHistogramName , 161 , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kAnimatedCssPropertiesHistogramName , 91 , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kAnimatedCssPropertiesHistogramName , blink : : mojom : : kTotalPagesMeasuredCSSSampleId , 1 ) ;\n }"}
{"idx": 953, "target": 0, "func": "static BLOCK_SIZE get_rd_var_based_fixed_partition ( VP9_COMP * cpi , int mi_row , int mi_col ) {\n unsigned int var = get_sby_perpixel_diff_variance ( cpi , & cpi -> mb . plane [ 0 ] . src , mi_row , mi_col , BLOCK_64X64 ) ;\n if ( var < 8 ) return BLOCK_64X64 ;\n else if ( var < 128 ) return BLOCK_32X32 ;\n else if ( var < 2048 ) return BLOCK_16X16 ;\n else return BLOCK_8X8 ;\n }"}
{"idx": 954, "target": 0, "func": "static int SpoolssEnumPrinters_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n guint32 num_drivers ;\n dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ;\n gint16 level = GPOINTER_TO_INT ( dcv -> se_data ) ;\n BUFFER buffer ;\n proto_item * item ;\n proto_tree * subtree = NULL ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", level %d\" , level ) ;\n offset = dissect_spoolss_buffer ( tvb , offset , pinfo , tree , di , drep , & buffer ) ;\n if ( buffer . tvb ) {\n subtree = proto_tree_add_subtree_format ( buffer . tree , buffer . tvb , 0 , - 1 , ett_PRINTER_INFO , & item , \"Print info level %d\" , level ) ;\n switch ( level ) {\n case 0 : dissect_PRINTER_INFO_0 ( buffer . tvb , 0 , pinfo , subtree , di , drep ) ;\n break ;\n case 1 : dissect_PRINTER_INFO_1 ( buffer . tvb , 0 , pinfo , subtree , di , drep ) ;\n break ;\n case 2 : dissect_PRINTER_INFO_2 ( buffer . tvb , 0 , pinfo , subtree , di , drep ) ;\n break ;\n case 3 : dissect_PRINTER_INFO_3 ( buffer . tvb , 0 , pinfo , subtree , di , drep ) ;\n break ;\n case 7 : dissect_PRINTER_INFO_7 ( buffer . tvb , 0 , pinfo , subtree , di , drep ) ;\n break ;\n default : expert_add_info ( pinfo , item , & ei_printer_info_level ) ;\n break ;\n }\n }\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_needed , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_returned , & num_drivers ) ;\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 955, "target": 0, "func": "static char * pathToFullPath ( const char * path , const char * source ) {\n int32_t length ;\n int32_t newLength ;\n char * fullPath ;\n int32_t n ;\n length = ( uint32_t ) ( uprv_strlen ( path ) + 1 ) ;\n newLength = ( length + 1 + ( int32_t ) uprv_strlen ( source ) ) ;\n fullPath = ( char * ) uprv_malloc ( newLength ) ;\n if ( source != NULL ) {\n uprv_strcpy ( fullPath , source ) ;\n uprv_strcat ( fullPath , U_FILE_SEP_STRING ) ;\n }\n else {\n fullPath [ 0 ] = 0 ;\n }\n n = ( int32_t ) uprv_strlen ( fullPath ) ;\n fullPath [ n ] = 0 ;\n uprv_strcat ( fullPath , path ) ;\n # if ( U_FILE_ALT_SEP_CHAR != U_TREE_ENTRY_SEP_CHAR ) # if ( U_FILE_ALT_SEP_CHAR != U_FILE_SEP_CHAR ) for ( ;\n fullPath [ n ] ;\n n ++ ) {\n if ( fullPath [ n ] == U_FILE_ALT_SEP_CHAR ) {\n fullPath [ n ] = U_FILE_SEP_CHAR ;\n }\n }\n # endif # endif # if ( U_FILE_SEP_CHAR != U_TREE_ENTRY_SEP_CHAR ) for ( ;\n fullPath [ n ] ;\n n ++ ) {\n if ( fullPath [ n ] == U_TREE_ENTRY_SEP_CHAR ) {\n fullPath [ n ] = U_FILE_SEP_CHAR ;\n }\n }\n # endif return fullPath ;\n }"}
{"idx": 956, "target": 1, "func": "xmlListPtr xmlListCreate ( xmlListDeallocator deallocator , xmlListDataCompare compare ) {\n xmlListPtr l ;\n if ( NULL == ( l = ( xmlListPtr ) xmlMalloc ( sizeof ( xmlList ) ) ) ) {\n xmlGenericError ( xmlGenericErrorContext , \"Cannot initialize memory for list\" ) ;\n return ( NULL ) ;\n }\n memset ( l , 0 , sizeof ( xmlList ) ) ;\n if ( NULL == ( l -> sentinel = ( xmlLinkPtr ) xmlMalloc ( sizeof ( xmlLink ) ) ) ) {\n xmlGenericError ( xmlGenericErrorContext , \"Cannot initialize memory for sentinel\" ) ;\n xmlFree ( l ) ;\n return ( NULL ) ;\n }\n l -> sentinel -> next = l -> sentinel ;\n l -> sentinel -> prev = l -> sentinel ;\n l -> sentinel -> data = NULL ;\n if ( deallocator != NULL ) l -> linkDeallocator = deallocator ;\n if ( compare != NULL ) l -> linkCompare = compare ;\n else l -> linkCompare = xmlLinkCompare ;\n return l ;\n }"}
{"idx": 957, "target": 0, "func": "static int ipvideo_decode_block_opcode_0x4 ( IpvideoContext * s , AVFrame * frame ) {\n int x , y ;\n unsigned char B , BL , BH ;\n if ( ! s -> is_16bpp ) {\n B = bytestream2_get_byte ( & s -> stream_ptr ) ;\n }\n else {\n B = bytestream2_get_byte ( & s -> mv_ptr ) ;\n }\n BL = B & 0x0F ;\n BH = ( B >> 4 ) & 0x0F ;\n x = - 8 + BL ;\n y = - 8 + BH ;\n av_dlog ( NULL , \" motion byte = %d, (x, y) = (%d, %d)\\n\" , B , x , y ) ;\n return copy_from ( s , s -> last_frame , frame , x , y ) ;\n }"}
{"idx": 958, "target": 0, "func": "static FILE * NeedsUCS4Table ( SplineFont * sf , int * ucs4len , EncMap * map ) {\n int i = 0 , j , group ;\n FILE * format12 ;\n SplineChar * sc ;\n EncMap * freeme = NULL ;\n struct altuni * altuni ;\n if ( map -> enc -> is_unicodefull ) i = 0x10000 ;\n else if ( map -> enc -> is_custom ) i = 0 ;\n else i = map -> enc -> char_cnt ;\n for ( ;\n i < map -> enccount ;\n ++ i ) {\n if ( map -> map [ i ] != - 1 && SCWorthOutputting ( sf -> glyphs [ map -> map [ i ] ] ) ) {\n if ( sf -> glyphs [ map -> map [ i ] ] -> unicodeenc >= 0x10000 ) break ;\n for ( altuni = sf -> glyphs [ map -> map [ i ] ] -> altuni ;\n altuni != NULL && ( altuni -> unienc < 0x10000 || altuni -> vs != - 1 || altuni -> fid != 0 ) ;\n altuni = altuni -> next ) ;\n if ( altuni != NULL ) break ;\n }\n }\n if ( i >= map -> enccount ) return ( NULL ) ;\n if ( ! map -> enc -> is_unicodefull ) map = freeme = EncMapFromEncoding ( sf , FindOrMakeEncoding ( \"ucs4\" ) ) ;\n format12 = tmpfile ( ) ;\n if ( format12 == NULL ) return ( NULL ) ;\n putshort ( format12 , 12 ) ;\n putshort ( format12 , 0 ) ;\n putlong ( format12 , 0 ) ;\n putlong ( format12 , 0 ) ;\n putlong ( format12 , 0 ) ;\n group = 0 ;\n for ( i = 0 ;\n i < map -> enccount ;\n ++ i ) if ( map -> map [ i ] != - 1 && SCWorthOutputting ( sf -> glyphs [ map -> map [ i ] ] ) && sf -> glyphs [ map -> map [ i ] ] -> unicodeenc != - 1 ) {\n sc = sf -> glyphs [ map -> map [ i ] ] ;\n for ( j = i + 1 ;\n j < map -> enccount && map -> map [ j ] != - 1 && SCWorthOutputting ( sf -> glyphs [ map -> map [ j ] ] ) && sf -> glyphs [ map -> map [ j ] ] -> unicodeenc != - 1 && sf -> glyphs [ map -> map [ j ] ] -> ttf_glyph == sc -> ttf_glyph + j - i ;\n ++ j ) ;\n -- j ;\n putlong ( format12 , i ) ;\n putlong ( format12 , j ) ;\n putlong ( format12 , sc -> ttf_glyph ) ;\n ++ group ;\n i = j ;\n }\n * ucs4len = ftell ( format12 ) ;\n fseek ( format12 , 4 , SEEK_SET ) ;\n putlong ( format12 , * ucs4len ) ;\n putlong ( format12 , 0 ) ;\n putlong ( format12 , group ) ;\n rewind ( format12 ) ;\n if ( freeme != NULL ) EncMapFree ( freeme ) ;\n return ( format12 ) ;\n }"}
{"idx": 959, "target": 0, "func": "REGRESSION_TEST ( SDK_API_TSUrlParse ) ( RegressionTest * test , int , int * pstatus ) {\n static const char * const urls [ ] = {\n \"file:///test.dat;\nab?abc=def#abc\" , \"http://www.example.com/\" , \"http://abc:def@www.example.com/\" , \"http://www.example.com:3426/\" , \"http://abc:def@www.example.com:3426/\" , \"http://www.example.com/homepage.cgi\" , \"http://www.example.com/homepage.cgi;\nab?abc=def#abc\" , \"http://abc:def@www.example.com:3426/homepage.cgi;\nab?abc=def#abc\" , \"https://abc:def@www.example.com:3426/homepage.cgi;\nab?abc=def#abc\" , \"ftp://abc:def@www.example.com:3426/homepage.cgi;\nab?abc=def#abc\" , \"file:///c:/test.dat;\nab?abc=def#abc\" , \"file:///test.dat;\nab?abc=def#abc\" , \"foo://bar.com/baz/\" , \"http://a.b.com/xx.jpg?newpath=http://b.c.com\" }\n ;\n static int const num_urls = sizeof ( urls ) / sizeof ( urls [ 0 ] ) ;\n bool test_passed [ num_urls ] = {\n false }\n ;\n const char * start ;\n const char * end ;\n char * temp ;\n int retval ;\n TSMBuffer bufp ;\n TSMLoc url_loc = ( TSMLoc ) nullptr ;\n int length ;\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n int idx ;\n for ( idx = 0 ;\n idx < num_urls ;\n idx ++ ) {\n const char * url = urls [ idx ] ;\n bufp = TSMBufferCreate ( ) ;\n if ( TSUrlCreate ( bufp , & url_loc ) != TS_SUCCESS ) {\n SDK_RPRINT ( test , \"TSUrlParse\" , url , TC_FAIL , \"Cannot create Url for parsing the url\" ) ;\n if ( TSMBufferDestroy ( bufp ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSUrlParse\" , url , TC_FAIL , \"Error in Destroying MBuffer\" ) ;\n }\n }\n else {\n start = url ;\n end = url + strlen ( url ) ;\n if ( ( retval = TSUrlParse ( bufp , url_loc , & start , end ) ) == TS_PARSE_ERROR ) {\n SDK_RPRINT ( test , \"TSUrlParse\" , url , TC_FAIL , \"TSUrlParse returns TS_PARSE_ERROR\" ) ;\n }\n else {\n if ( retval == TS_PARSE_DONE ) {\n temp = TSUrlStringGet ( bufp , url_loc , & length ) ;\n if ( strncmp ( url , temp , length ) == 0 ) {\n SDK_RPRINT ( test , \"TSUrlParse\" , url , TC_PASS , \"ok\" ) ;\n test_passed [ idx ] = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSUrlParse\" , url , TC_FAIL , \"Value's Mismatch\" ) ;\n }\n TSfree ( temp ) ;\n }\n else {\n SDK_RPRINT ( test , \"TSUrlParse\" , url , TC_FAIL , \"Parsing Error\" ) ;\n }\n }\n }\n TSHandleMLocRelease ( bufp , TS_NULL_MLOC , url_loc ) ;\n TSMBufferDestroy ( bufp ) ;\n }\n for ( idx = 0 ;\n idx < num_urls ;\n idx ++ ) {\n if ( test_passed [ idx ] != true ) {\n * pstatus = REGRESSION_TEST_FAILED ;\n break ;\n }\n }\n if ( idx >= num_urls ) {\n * pstatus = REGRESSION_TEST_PASSED ;\n }\n return ;\n }"}
{"idx": 960, "target": 0, "func": "static char * stp_print_bridge_id ( const u_char * p ) {\n static char bridge_id_str [ sizeof ( \"pppp.aa:bb:cc:dd:ee:ff\" ) ] ;\n snprintf ( bridge_id_str , sizeof ( bridge_id_str ) , \"%.2x%.2x.%.2x:%.2x:%.2x:%.2x:%.2x:%.2x\" , p [ 0 ] , p [ 1 ] , p [ 2 ] , p [ 3 ] , p [ 4 ] , p [ 5 ] , p [ 6 ] , p [ 7 ] ) ;\n return bridge_id_str ;\n }"}
{"idx": 961, "target": 0, "func": "void gtkui_connections_detach ( GtkWidget * child ) {\n conns_window = gtk_window_new ( GTK_WINDOW_TOPLEVEL ) ;\n gtk_window_set_title ( GTK_WINDOW ( conns_window ) , \"Live connections\" ) ;\n gtk_window_set_default_size ( GTK_WINDOW ( conns_window ) , 500 , 250 ) ;\n g_signal_connect ( G_OBJECT ( conns_window ) , \"delete_event\" , G_CALLBACK ( gtkui_kill_connections ) , NULL ) ;\n gtkui_page_attach_shortcut ( conns_window , gtkui_connections_attach ) ;\n gtk_container_add ( GTK_CONTAINER ( conns_window ) , child ) ;\n gtk_window_present ( GTK_WINDOW ( conns_window ) ) ;\n }"}
{"idx": 962, "target": 0, "func": "static inline void push_bitmapped_commit ( struct commit * commit , struct ewah_bitmap * reused ) {\n if ( writer . selected_nr >= writer . selected_alloc ) {\n writer . selected_alloc = ( writer . selected_alloc + 32 ) * 2 ;\n REALLOC_ARRAY ( writer . selected , writer . selected_alloc ) ;\n }\n writer . selected [ writer . selected_nr ] . commit = commit ;\n writer . selected [ writer . selected_nr ] . bitmap = reused ;\n writer . selected [ writer . selected_nr ] . flags = 0 ;\n writer . selected_nr ++ ;\n }"}
{"idx": 963, "target": 0, "func": "static inline bool ipv6_addr_loopback ( const struct in6_addr * a ) {\n return ( a -> s6_addr32 [ 0 ] | a -> s6_addr32 [ 1 ] | a -> s6_addr32 [ 2 ] | ( a -> s6_addr32 [ 3 ] ^ htonl ( 1 ) ) ) == 0 ;\n }"}
{"idx": 964, "target": 0, "func": "static void fts_parser_script_more ( struct fts_parser * _parser , struct message_block * block ) {\n struct script_fts_parser * parser = ( struct script_fts_parser * ) _parser ;\n ssize_t ret ;\n if ( block -> size > 0 ) {\n if ( ! parser -> failed && write_full ( parser -> fd , block -> data , block -> size ) < 0 ) {\n i_error ( \"write(%s) failed: %m\" , parser -> path ) ;\n parser -> failed = TRUE ;\n }\n block -> size = 0 ;\n }\n else {\n if ( ! parser -> shutdown ) {\n if ( shutdown ( parser -> fd , SHUT_WR ) < 0 ) i_error ( \"shutdown(%s) failed: %m\" , parser -> path ) ;\n parser -> shutdown = TRUE ;\n }\n ret = read ( parser -> fd , parser -> outbuf , sizeof ( parser -> outbuf ) ) ;\n if ( ret < 0 ) i_error ( \"read(%s) failed: %m\" , parser -> path ) ;\n else {\n block -> data = parser -> outbuf ;\n block -> size = ret ;\n }\n }\n }"}
{"idx": 965, "target": 0, "func": "static int dissect_h245_Me_type ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_Me_type , Me_type_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 966, "target": 0, "func": "SPL_METHOD ( SplFileInfo , func_name ) \\ {\n \\ spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n \\ zend_error_handling error_handling ;\n \\ if ( zend_parse_parameters_none ( ) == FAILURE ) {\n \\ return ;\n \\ }\n \\ \\ zend_replace_error_handling ( EH_THROW , spl_ce_RuntimeException , & error_handling TSRMLS_CC ) ;\n \\ spl_filesystem_object_get_file_name ( intern TSRMLS_CC ) ;\n \\ php_stat ( intern -> file_name , intern -> file_name_len , func_num , return_value TSRMLS_CC ) ;\n \\ zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n \\ }\n FileInfoFunction ( getPerms , FS_PERMS ) FileInfoFunction ( getInode , FS_INODE ) FileInfoFunction ( getSize , FS_SIZE ) FileInfoFunction ( getOwner , FS_OWNER ) FileInfoFunction ( getGroup , FS_GROUP ) FileInfoFunction ( getATime , FS_ATIME ) FileInfoFunction ( getMTime , FS_MTIME ) FileInfoFunction ( getCTime , FS_CTIME ) FileInfoFunction ( getType , FS_TYPE ) FileInfoFunction ( isWritable , FS_IS_W ) FileInfoFunction ( isReadable , FS_IS_R ) FileInfoFunction ( isExecutable , FS_IS_X ) FileInfoFunction ( isFile , FS_IS_FILE ) FileInfoFunction ( isDir , FS_IS_DIR )"}
{"idx": 967, "target": 0, "func": "ulong get_column_grant ( THD * thd , GRANT_INFO * grant , const char * db_name , const char * table_name , const char * field_name ) {\n GRANT_TABLE * grant_table ;\n GRANT_COLUMN * grant_column ;\n ulong priv ;\n rw_rdlock ( & LOCK_grant ) ;\n if ( grant -> version != grant_version ) {\n Security_context * sctx = thd -> security_ctx ;\n grant -> grant_table = table_hash_search ( sctx -> host , sctx -> ip , db_name , sctx -> priv_user , table_name , 0 ) ;\n grant -> version = grant_version ;\n }\n if ( ! ( grant_table = grant -> grant_table ) ) priv = grant -> privilege ;\n else {\n grant_column = column_hash_search ( grant_table , field_name , ( uint ) strlen ( field_name ) ) ;\n if ( ! grant_column ) priv = ( grant -> privilege | grant_table -> privs ) ;\n else priv = ( grant -> privilege | grant_table -> privs | grant_column -> rights ) ;\n }\n rw_unlock ( & LOCK_grant ) ;\n return priv ;\n }"}
{"idx": 968, "target": 0, "func": "TSReturnCode TSHttpSsnClientProtocolStackGet ( TSHttpSsn ssnp , int n , const char * * result , int * actual ) {\n sdk_assert ( sdk_sanity_check_http_ssn ( ssnp ) == TS_SUCCESS ) ;\n sdk_assert ( n == 0 || result != nullptr ) ;\n ProxyClientSession * cs = reinterpret_cast < ProxyClientSession * > ( ssnp ) ;\n int count = 0 ;\n if ( cs && n > 0 ) {\n auto mem = static_cast < ts : : StringView * > ( alloca ( sizeof ( ts : : StringView ) * n ) ) ;\n count = cs -> populate_protocol ( mem , n ) ;\n for ( int i = 0 ;\n i < count ;\n ++ i ) result [ i ] = mem [ i ] . ptr ( ) ;\n }\n if ( actual ) {\n * actual = count ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 969, "target": 1, "func": "static inline void idct_put ( MDECContext * a , int mb_x , int mb_y ) {\n int16_t ( * block ) [ 64 ] = a -> block ;\n int linesize = a -> picture . linesize [ 0 ] ;\n uint8_t * dest_y = a -> picture . data [ 0 ] + ( mb_y * 16 * linesize ) + mb_x * 16 ;\n uint8_t * dest_cb = a -> picture . data [ 1 ] + ( mb_y * 8 * a -> picture . linesize [ 1 ] ) + mb_x * 8 ;\n uint8_t * dest_cr = a -> picture . data [ 2 ] + ( mb_y * 8 * a -> picture . linesize [ 2 ] ) + mb_x * 8 ;\n a -> dsp . idct_put ( dest_y , linesize , block [ 0 ] ) ;\n a -> dsp . idct_put ( dest_y + 8 , linesize , block [ 1 ] ) ;\n a -> dsp . idct_put ( dest_y + 8 * linesize , linesize , block [ 2 ] ) ;\n a -> dsp . idct_put ( dest_y + 8 * linesize + 8 , linesize , block [ 3 ] ) ;\n if ( ! ( a -> avctx -> flags & CODEC_FLAG_GRAY ) ) {\n a -> dsp . idct_put ( dest_cb , a -> picture . linesize [ 1 ] , block [ 4 ] ) ;\n a -> dsp . idct_put ( dest_cr , a -> picture . linesize [ 2 ] , block [ 5 ] ) ;\n }\n }"}
{"idx": 970, "target": 0, "func": "int DMA_get_channel_mode ( int nchan ) {\n return 0 ;\n }"}
{"idx": 971, "target": 0, "func": "static void copy_frame ( AVFrame * f , const uint8_t * src , int width , int height ) {\n AVPicture pic ;\n avpicture_fill ( & pic , src , AV_PIX_FMT_YUV420P , width , height ) ;\n av_picture_copy ( ( AVPicture * ) f , & pic , AV_PIX_FMT_YUV420P , width , height ) ;\n }"}
{"idx": 972, "target": 0, "func": "TEST_F ( SyncBookmarkDataTypeControllerTest , StartAssociationTriggersUnrecoverableError ) {\n CreateBookmarkModel ( LOAD_MODEL ) ;\n SetStartExpectations ( ) ;\n EXPECT_CALL ( * profile_sync_factory_ , CreateBookmarkSyncComponents ( _ , _ ) ) ;\n EXPECT_CALL ( * model_associator_ , CryptoReadyIfNecessary ( ) ) . WillRepeatedly ( Return ( true ) ) ;\n EXPECT_CALL ( * model_associator_ , SyncModelHasUserCreatedNodes ( _ ) ) . WillRepeatedly ( DoAll ( SetArgumentPointee < 0 > ( false ) , Return ( false ) ) ) ;\n EXPECT_CALL ( start_callback_ , Run ( DataTypeController : : UNRECOVERABLE_ERROR , _ , _ ) ) ;\n Start ( ) ;\n EXPECT_EQ ( DataTypeController : : NOT_RUNNING , bookmark_dtc_ -> state ( ) ) ;\n }"}
{"idx": 973, "target": 0, "func": "static int resize_key_frame ( VP8_COMP * cpi ) {\n # if CONFIG_SPATIAL_RESAMPLING VP8_COMMON * cm = & cpi -> common ;\n if ( cpi -> oxcf . allow_spatial_resampling && ( cpi -> oxcf . end_usage == USAGE_STREAM_FROM_SERVER ) ) {\n int UNINITIALIZED_IS_SAFE ( hr ) , UNINITIALIZED_IS_SAFE ( hs ) ;\n int UNINITIALIZED_IS_SAFE ( vr ) , UNINITIALIZED_IS_SAFE ( vs ) ;\n int new_width , new_height ;\n if ( cpi -> buffer_level < ( cpi -> oxcf . resample_down_water_mark * cpi -> oxcf . optimal_buffer_level / 100 ) ) {\n cm -> horiz_scale = ( cm -> horiz_scale < ONETWO ) ? cm -> horiz_scale + 1 : ONETWO ;\n cm -> vert_scale = ( cm -> vert_scale < ONETWO ) ? cm -> vert_scale + 1 : ONETWO ;\n }\n else if ( cpi -> buffer_level > ( cpi -> oxcf . resample_up_water_mark * cpi -> oxcf . optimal_buffer_level / 100 ) ) {\n cm -> horiz_scale = ( cm -> horiz_scale > NORMAL ) ? cm -> horiz_scale - 1 : NORMAL ;\n cm -> vert_scale = ( cm -> vert_scale > NORMAL ) ? cm -> vert_scale - 1 : NORMAL ;\n }\n Scale2Ratio ( cm -> horiz_scale , & hr , & hs ) ;\n Scale2Ratio ( cm -> vert_scale , & vr , & vs ) ;\n new_width = ( ( hs - 1 ) + ( cpi -> oxcf . Width * hr ) ) / hs ;\n new_height = ( ( vs - 1 ) + ( cpi -> oxcf . Height * vr ) ) / vs ;\n if ( ( cm -> Width != new_width ) || ( cm -> Height != new_height ) ) {\n cm -> Width = new_width ;\n cm -> Height = new_height ;\n vp8_alloc_compressor_data ( cpi ) ;\n scale_and_extend_source ( cpi -> un_scaled_source , cpi ) ;\n return 1 ;\n }\n }\n # endif return 0 ;\n }"}
{"idx": 974, "target": 0, "func": "static int selinux_msg_queue_msgsnd ( struct msg_queue * msq , struct msg_msg * msg , int msqflg ) {\n struct ipc_security_struct * isec ;\n struct msg_security_struct * msec ;\n struct common_audit_data ad ;\n u32 sid = current_sid ( ) ;\n int rc ;\n isec = msq -> q_perm . security ;\n msec = msg -> security ;\n if ( msec -> sid == SECINITSID_UNLABELED ) {\n rc = security_transition_sid ( sid , isec -> sid , SECCLASS_MSG , NULL , & msec -> sid ) ;\n if ( rc ) return rc ;\n }\n ad . type = LSM_AUDIT_DATA_IPC ;\n ad . u . ipc_id = msq -> q_perm . key ;\n rc = avc_has_perm ( sid , isec -> sid , SECCLASS_MSGQ , MSGQ__WRITE , & ad ) ;\n if ( ! rc ) rc = avc_has_perm ( sid , msec -> sid , SECCLASS_MSG , MSG__SEND , & ad ) ;\n if ( ! rc ) rc = avc_has_perm ( msec -> sid , isec -> sid , SECCLASS_MSGQ , MSGQ__ENQUEUE , & ad ) ;\n return rc ;\n }"}
{"idx": 975, "target": 0, "func": "static gboolean delete_cb ( GtkDialog * dialog ) {\n gtk_dialog_response ( dialog , GTK_RESPONSE_DELETE_EVENT ) ;\n return TRUE ;\n }"}
{"idx": 976, "target": 1, "func": "static inline void copy ( LZOContext * c , int cnt ) {\n register const uint8_t * src = c -> in ;\n register uint8_t * dst = c -> out ;\n if ( cnt > c -> in_end - src ) {\n cnt = FFMAX ( c -> in_end - src , 0 ) ;\n c -> error |= AV_LZO_INPUT_DEPLETED ;\n }\n if ( cnt > c -> out_end - dst ) {\n cnt = FFMAX ( c -> out_end - dst , 0 ) ;\n c -> error |= AV_LZO_OUTPUT_FULL ;\n }\n # if defined ( INBUF_PADDED ) && defined ( OUTBUF_PADDED ) AV_COPY32U ( dst , src ) ;\n src += 4 ;\n dst += 4 ;\n cnt -= 4 ;\n if ( cnt > 0 ) # endif memcpy ( dst , src , cnt ) ;\n c -> in = src + cnt ;\n c -> out = dst + cnt ;\n }"}
{"idx": 977, "target": 0, "func": "Datum likesel ( PG_FUNCTION_ARGS ) {\n PG_RETURN_FLOAT8 ( patternsel ( fcinfo , Pattern_Type_Like , false ) ) ;\n }"}
{"idx": 978, "target": 0, "func": "static void collect_features_hangul ( hb_ot_shape_planner_t * plan ) {\n hb_ot_map_builder_t * map = & plan -> map ;\n for ( unsigned int i = FIRST_HANGUL_FEATURE ;\n i < HANGUL_FEATURE_COUNT ;\n i ++ ) map -> add_feature ( hangul_features [ i ] , 1 , F_NONE ) ;\n }"}
{"idx": 979, "target": 0, "func": "static int pfkey_xfrm_policy2msg_size ( const struct xfrm_policy * xp ) {\n const struct xfrm_tmpl * t ;\n int sockaddr_size = pfkey_sockaddr_size ( xp -> family ) ;\n int socklen = 0 ;\n int i ;\n for ( i = 0 ;\n i < xp -> xfrm_nr ;\n i ++ ) {\n t = xp -> xfrm_vec + i ;\n socklen += pfkey_sockaddr_len ( t -> encap_family ) ;\n }\n return sizeof ( struct sadb_msg ) + ( sizeof ( struct sadb_lifetime ) * 3 ) + ( sizeof ( struct sadb_address ) * 2 ) + ( sockaddr_size * 2 ) + sizeof ( struct sadb_x_policy ) + ( xp -> xfrm_nr * sizeof ( struct sadb_x_ipsecrequest ) ) + ( socklen * 2 ) + pfkey_xfrm_policy2sec_ctx_size ( xp ) ;\n }"}
{"idx": 980, "target": 0, "func": "static int done_pbase_path_pos ( unsigned hash ) {\n int lo = 0 ;\n int hi = done_pbase_paths_num ;\n while ( lo < hi ) {\n int mi = ( hi + lo ) / 2 ;\n if ( done_pbase_paths [ mi ] == hash ) return mi ;\n if ( done_pbase_paths [ mi ] < hash ) hi = mi ;\n else lo = mi + 1 ;\n }\n return - lo - 1 ;\n }"}
{"idx": 981, "target": 0, "func": "static cmsBool Type_Curve_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) {\n cmsToneCurve * Curve = ( cmsToneCurve * ) Ptr ;\n if ( Curve -> nSegments == 1 && Curve -> Segments [ 0 ] . Type == 1 ) {\n cmsUInt16Number SingleGammaFixed = _cmsDoubleTo8Fixed8 ( Curve -> Segments [ 0 ] . Params [ 0 ] ) ;\n if ( ! _cmsWriteUInt32Number ( io , 1 ) ) return FALSE ;\n if ( ! _cmsWriteUInt16Number ( io , SingleGammaFixed ) ) return FALSE ;\n return TRUE ;\n }\n if ( ! _cmsWriteUInt32Number ( io , Curve -> nEntries ) ) return FALSE ;\n return _cmsWriteUInt16Array ( io , Curve -> nEntries , Curve -> Table16 ) ;\n cmsUNUSED_PARAMETER ( nItems ) ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 982, "target": 0, "func": "static int dissect_h245_H2250Capability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_H2250Capability , H2250Capability_sequence ) ;\n return offset ;\n }"}
{"idx": 983, "target": 0, "func": "static void dtap_mm_mm_status ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_TRUE ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_REJ_CAUSE , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 984, "target": 0, "func": "static void pdf_run_J ( fz_context * ctx , pdf_processor * proc , int linecap ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_gstate * gstate = pdf_flush_text ( ctx , pr ) ;\n pr -> dev -> flags &= ~ ( FZ_DEVFLAG_STARTCAP_UNDEFINED | FZ_DEVFLAG_DASHCAP_UNDEFINED | FZ_DEVFLAG_ENDCAP_UNDEFINED ) ;\n gstate -> stroke_state = fz_unshare_stroke_state ( ctx , gstate -> stroke_state ) ;\n gstate -> stroke_state -> start_cap = linecap ;\n gstate -> stroke_state -> dash_cap = linecap ;\n gstate -> stroke_state -> end_cap = linecap ;\n }"}
{"idx": 985, "target": 0, "func": "static int fw_cfg_boot_set ( void * opaque , const char * boot_device ) {\n fw_cfg_add_i16 ( opaque , FW_CFG_BOOT_DEVICE , boot_device [ 0 ] ) ;\n return 0 ;\n }"}
{"idx": 986, "target": 0, "func": "static guint16 de_ciph_key_seq_num ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset , bit_offset ;\n curr_offset = offset ;\n if ( RIGHT_NIBBLE == len ) bit_offset = 4 ;\n else bit_offset = 0 ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( curr_offset << 3 ) + bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_key_seq , tvb , ( curr_offset << 3 ) + bit_offset + 1 , 3 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 987, "target": 0, "func": "static bool login_settings_check ( void * _set , pool_t pool , const char * * error_r ATTR_UNUSED ) {\n struct login_settings * set = _set ;\n set -> log_format_elements_split = p_strsplit ( pool , set -> login_log_format_elements , \" \" ) ;\n if ( set -> auth_debug_passwords ) set -> auth_debug = TRUE ;\n if ( set -> auth_debug ) set -> auth_verbose = TRUE ;\n return TRUE ;\n }"}
{"idx": 988, "target": 0, "func": "static unsigned int ps2_modifier_bit ( QKeyCode key ) {\n switch ( key ) {\n case Q_KEY_CODE_CTRL : return MOD_CTRL_L ;\n case Q_KEY_CODE_CTRL_R : return MOD_CTRL_R ;\n case Q_KEY_CODE_SHIFT : return MOD_SHIFT_L ;\n case Q_KEY_CODE_SHIFT_R : return MOD_SHIFT_R ;\n case Q_KEY_CODE_ALT : return MOD_ALT_L ;\n case Q_KEY_CODE_ALT_R : return MOD_ALT_R ;\n default : return 0 ;\n }\n }"}
{"idx": 989, "target": 0, "func": "static unsigned dummy_get_nbits ( int algorithm , gcry_mpi_t * pkey ) {\n ( void ) algorithm ;\n ( void ) pkey ;\n fips_signal_error ( \"using dummy public key function\" ) ;\n return 0 ;\n }"}
{"idx": 990, "target": 0, "func": "static int decode_13 ( AVCodecContext * avctx , DxaDecContext * c , uint8_t * dst , int stride , uint8_t * src , uint8_t * ref ) {\n uint8_t * code , * data , * mv , * msk , * tmp , * tmp2 ;\n int i , j , k ;\n int type , x , y , d , d2 ;\n uint32_t mask ;\n code = src + 12 ;\n data = code + ( ( avctx -> width * avctx -> height ) >> 4 ) ;\n mv = data + AV_RB32 ( src + 0 ) ;\n msk = mv + AV_RB32 ( src + 4 ) ;\n for ( j = 0 ;\n j < avctx -> height ;\n j += 4 ) {\n for ( i = 0 ;\n i < avctx -> width ;\n i += 4 ) {\n tmp = dst + i ;\n tmp2 = ref + i ;\n type = * code ++ ;\n switch ( type ) {\n case 4 : x = ( * mv ) >> 4 ;\n if ( x & 8 ) x = 8 - x ;\n y = ( * mv ++ ) & 0xF ;\n if ( y & 8 ) y = 8 - y ;\n tmp2 += x + y * stride ;\n case 0 : case 5 : for ( y = 0 ;\n y < 4 ;\n y ++ ) {\n memcpy ( tmp , tmp2 , 4 ) ;\n tmp += stride ;\n tmp2 += stride ;\n }\n break ;\n case 1 : case 10 : case 11 : case 12 : case 13 : case 14 : case 15 : if ( type == 1 ) {\n mask = AV_RB16 ( msk ) ;\n msk += 2 ;\n }\n else {\n type -= 10 ;\n mask = ( ( msk [ 0 ] & 0xF0 ) << shift1 [ type ] ) | ( ( msk [ 0 ] & 0xF ) << shift2 [ type ] ) ;\n msk ++ ;\n }\n for ( y = 0 ;\n y < 4 ;\n y ++ ) {\n for ( x = 0 ;\n x < 4 ;\n x ++ ) {\n tmp [ x ] = ( mask & 0x8000 ) ? * data ++ : tmp2 [ x ] ;\n mask <<= 1 ;\n }\n tmp += stride ;\n tmp2 += stride ;\n }\n break ;\n case 2 : for ( y = 0 ;\n y < 4 ;\n y ++ ) {\n memset ( tmp , data [ 0 ] , 4 ) ;\n tmp += stride ;\n }\n data ++ ;\n break ;\n case 3 : for ( y = 0 ;\n y < 4 ;\n y ++ ) {\n memcpy ( tmp , data , 4 ) ;\n data += 4 ;\n tmp += stride ;\n }\n break ;\n case 8 : mask = * msk ++ ;\n for ( k = 0 ;\n k < 4 ;\n k ++ ) {\n d = ( ( k & 1 ) << 1 ) + ( ( k & 2 ) * stride ) ;\n d2 = ( ( k & 1 ) << 1 ) + ( ( k & 2 ) * stride ) ;\n tmp2 = ref + i + d2 ;\n switch ( mask & 0xC0 ) {\n case 0x80 : x = ( * mv ) >> 4 ;\n if ( x & 8 ) x = 8 - x ;\n y = ( * mv ++ ) & 0xF ;\n if ( y & 8 ) y = 8 - y ;\n tmp2 += x + y * stride ;\n case 0x00 : tmp [ d + 0 ] = tmp2 [ 0 ] ;\n tmp [ d + 1 ] = tmp2 [ 1 ] ;\n tmp [ d + 0 + stride ] = tmp2 [ 0 + stride ] ;\n tmp [ d + 1 + stride ] = tmp2 [ 1 + stride ] ;\n break ;\n case 0x40 : tmp [ d + 0 ] = data [ 0 ] ;\n tmp [ d + 1 ] = data [ 0 ] ;\n tmp [ d + 0 + stride ] = data [ 0 ] ;\n tmp [ d + 1 + stride ] = data [ 0 ] ;\n data ++ ;\n break ;\n case 0xC0 : tmp [ d + 0 ] = * data ++ ;\n tmp [ d + 1 ] = * data ++ ;\n tmp [ d + 0 + stride ] = * data ++ ;\n tmp [ d + 1 + stride ] = * data ++ ;\n break ;\n }\n mask <<= 2 ;\n }\n break ;\n case 32 : mask = AV_RB16 ( msk ) ;\n msk += 2 ;\n for ( y = 0 ;\n y < 4 ;\n y ++ ) {\n for ( x = 0 ;\n x < 4 ;\n x ++ ) {\n tmp [ x ] = data [ mask & 1 ] ;\n mask >>= 1 ;\n }\n tmp += stride ;\n tmp2 += stride ;\n }\n data += 2 ;\n break ;\n case 33 : case 34 : mask = AV_RB32 ( msk ) ;\n msk += 4 ;\n for ( y = 0 ;\n y < 4 ;\n y ++ ) {\n for ( x = 0 ;\n x < 4 ;\n x ++ ) {\n tmp [ x ] = data [ mask & 3 ] ;\n mask >>= 2 ;\n }\n tmp += stride ;\n tmp2 += stride ;\n }\n data += type - 30 ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"Unknown opcode %d\\n\" , type ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n dst += stride * 4 ;\n ref += stride * 4 ;\n }\n return 0 ;\n }"}
{"idx": 991, "target": 0, "func": "static void hmac_md5 ( const char * password , char * challenge , unsigned char * response ) {\n struct Md5Ctx ctx ;\n unsigned char ipad [ MD5_BLOCK_LEN ] = {\n 0 }\n ;\n unsigned char opad [ MD5_BLOCK_LEN ] = {\n 0 }\n ;\n unsigned char secret [ MD5_BLOCK_LEN + 1 ] ;\n size_t secret_len ;\n secret_len = strlen ( password ) ;\n if ( secret_len > MD5_BLOCK_LEN ) {\n unsigned char hash_passwd [ MD5_DIGEST_LEN ] ;\n mutt_md5_bytes ( password , secret_len , hash_passwd ) ;\n mutt_str_strfcpy ( ( char * ) secret , ( char * ) hash_passwd , MD5_DIGEST_LEN ) ;\n secret_len = MD5_DIGEST_LEN ;\n }\n else mutt_str_strfcpy ( ( char * ) secret , password , sizeof ( secret ) ) ;\n memcpy ( ipad , secret , secret_len ) ;\n memcpy ( opad , secret , secret_len ) ;\n for ( int i = 0 ;\n i < MD5_BLOCK_LEN ;\n i ++ ) {\n ipad [ i ] ^= 0x36 ;\n opad [ i ] ^= 0x5c ;\n }\n mutt_md5_init_ctx ( & ctx ) ;\n mutt_md5_process_bytes ( ipad , MD5_BLOCK_LEN , & ctx ) ;\n mutt_md5_process ( challenge , & ctx ) ;\n mutt_md5_finish_ctx ( & ctx , response ) ;\n mutt_md5_init_ctx ( & ctx ) ;\n mutt_md5_process_bytes ( opad , MD5_BLOCK_LEN , & ctx ) ;\n mutt_md5_process_bytes ( response , MD5_DIGEST_LEN , & ctx ) ;\n mutt_md5_finish_ctx ( & ctx , response ) ;\n }"}
{"idx": 992, "target": 0, "func": "static void xhci_mfwrap_update ( XHCIState * xhci ) {\n const uint32_t bits = USBCMD_RS | USBCMD_EWE ;\n uint32_t mfindex , left ;\n int64_t now ;\n if ( ( xhci -> usbcmd & bits ) == bits ) {\n now = qemu_clock_get_ns ( QEMU_CLOCK_VIRTUAL ) ;\n mfindex = ( ( now - xhci -> mfindex_start ) / 125000 ) & 0x3fff ;\n left = 0x4000 - mfindex ;\n timer_mod ( xhci -> mfwrap_timer , now + left * 125000 ) ;\n }\n else {\n timer_del ( xhci -> mfwrap_timer ) ;\n }\n }"}
{"idx": 993, "target": 1, "func": "int64_t vp9_rd_pick_inter_mode_sub8x8 ( VP9_COMP * cpi , MACROBLOCK * x , const TileInfo * const tile , int mi_row , int mi_col , int * returnrate , int64_t * returndistortion , BLOCK_SIZE bsize , PICK_MODE_CONTEXT * ctx , int64_t best_rd_so_far ) {\n VP9_COMMON * const cm = & cpi -> common ;\n RD_OPT * const rd_opt = & cpi -> rd ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n MB_MODE_INFO * const mbmi = & xd -> mi [ 0 ] -> mbmi ;\n const struct segmentation * const seg = & cm -> seg ;\n MV_REFERENCE_FRAME ref_frame , second_ref_frame ;\n unsigned char segment_id = mbmi -> segment_id ;\n int comp_pred , i ;\n int_mv frame_mv [ MB_MODE_COUNT ] [ MAX_REF_FRAMES ] ;\n struct buf_2d yv12_mb [ 4 ] [ MAX_MB_PLANE ] ;\n static const int flag_list [ 4 ] = {\n 0 , VP9_LAST_FLAG , VP9_GOLD_FLAG , VP9_ALT_FLAG }\n ;\n int64_t best_rd = best_rd_so_far ;\n int64_t best_yrd = best_rd_so_far ;\n static const int64_t best_tx_diff [ TX_MODES ] = {\n 0 }\n ;\n int64_t best_pred_diff [ REFERENCE_MODES ] ;\n int64_t best_pred_rd [ REFERENCE_MODES ] ;\n int64_t best_filter_rd [ SWITCHABLE_FILTER_CONTEXTS ] ;\n int64_t best_filter_diff [ SWITCHABLE_FILTER_CONTEXTS ] ;\n MB_MODE_INFO best_mbmode ;\n int ref_index , best_ref_index = 0 ;\n unsigned int ref_costs_single [ MAX_REF_FRAMES ] , ref_costs_comp [ MAX_REF_FRAMES ] ;\n vp9_prob comp_mode_p ;\n int64_t best_inter_rd = INT64_MAX ;\n MV_REFERENCE_FRAME best_inter_ref_frame = LAST_FRAME ;\n INTERP_FILTER tmp_best_filter = SWITCHABLE ;\n int rate_uv_intra , rate_uv_tokenonly ;\n int64_t dist_uv ;\n int skip_uv ;\n PREDICTION_MODE mode_uv = DC_PRED ;\n int intra_cost_penalty = 20 * vp9_dc_quant ( cm -> base_qindex , cm -> y_dc_delta_q ) ;\n int_mv seg_mvs [ 4 ] [ MAX_REF_FRAMES ] ;\n b_mode_info best_bmodes [ 4 ] ;\n int best_skip2 = 0 ;\n int mode_skip_mask = 0 ;\n x -> skip_encode = cpi -> sf . skip_encode_frame && x -> q_index < QIDX_SKIP_THRESH ;\n vpx_memset ( x -> zcoeff_blk [ TX_4X4 ] , 0 , 4 ) ;\n vp9_zero ( best_mbmode ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n int j ;\n for ( j = 0 ;\n j < MAX_REF_FRAMES ;\n j ++ ) seg_mvs [ i ] [ j ] . as_int = INVALID_MV ;\n }\n estimate_ref_frame_costs ( cm , xd , segment_id , ref_costs_single , ref_costs_comp , & comp_mode_p ) ;\n for ( i = 0 ;\n i < REFERENCE_MODES ;\n ++ i ) best_pred_rd [ i ] = INT64_MAX ;\n for ( i = 0 ;\n i < SWITCHABLE_FILTER_CONTEXTS ;\n i ++ ) best_filter_rd [ i ] = INT64_MAX ;\n rate_uv_intra = INT_MAX ;\n * returnrate = INT_MAX ;\n for ( ref_frame = LAST_FRAME ;\n ref_frame <= ALTREF_FRAME ;\n ref_frame ++ ) {\n if ( cpi -> ref_frame_flags & flag_list [ ref_frame ] ) {\n setup_buffer_inter ( cpi , x , tile , ref_frame , bsize , mi_row , mi_col , frame_mv [ NEARESTMV ] , frame_mv [ NEARMV ] , yv12_mb ) ;\n }\n frame_mv [ NEWMV ] [ ref_frame ] . as_int = INVALID_MV ;\n frame_mv [ ZEROMV ] [ ref_frame ] . as_int = 0 ;\n }\n for ( ref_index = 0 ;\n ref_index < MAX_REFS ;\n ++ ref_index ) {\n int mode_excluded = 0 ;\n int64_t this_rd = INT64_MAX ;\n int disable_skip = 0 ;\n int compmode_cost = 0 ;\n int rate2 = 0 , rate_y = 0 , rate_uv = 0 ;\n int64_t distortion2 = 0 , distortion_y = 0 , distortion_uv = 0 ;\n int skippable = 0 ;\n int i ;\n int this_skip2 = 0 ;\n int64_t total_sse = INT_MAX ;\n int early_term = 0 ;\n ref_frame = vp9_ref_order [ ref_index ] . ref_frame [ 0 ] ;\n second_ref_frame = vp9_ref_order [ ref_index ] . ref_frame [ 1 ] ;\n if ( ref_index > 2 && cpi -> sf . mode_skip_start < MAX_MODES ) {\n if ( ref_index == 3 ) {\n switch ( vp9_ref_order [ best_ref_index ] . ref_frame [ 0 ] ) {\n case INTRA_FRAME : mode_skip_mask = 0 ;\n break ;\n case LAST_FRAME : mode_skip_mask = 0x0010 ;\n break ;\n case GOLDEN_FRAME : mode_skip_mask = 0x0008 ;\n break ;\n case ALTREF_FRAME : mode_skip_mask = 0x0000 ;\n break ;\n case NONE : case MAX_REF_FRAMES : assert ( 0 && \"Invalid Reference frame\" ) ;\n break ;\n }\n }\n if ( mode_skip_mask & ( 1 << ref_index ) ) continue ;\n }\n if ( rd_less_than_thresh ( best_rd , rd_opt -> threshes [ segment_id ] [ bsize ] [ ref_index ] , rd_opt -> thresh_freq_fact [ bsize ] [ ref_index ] ) ) continue ;\n if ( ref_frame > INTRA_FRAME && ! ( cpi -> ref_frame_flags & flag_list [ ref_frame ] ) ) {\n continue ;\n }\n comp_pred = second_ref_frame > INTRA_FRAME ;\n if ( comp_pred ) {\n if ( ! cm -> allow_comp_inter_inter ) continue ;\n if ( ! ( cpi -> ref_frame_flags & flag_list [ second_ref_frame ] ) ) continue ;\n if ( vp9_segfeature_active ( seg , segment_id , SEG_LVL_REF_FRAME ) ) continue ;\n if ( ( cpi -> sf . mode_search_skip_flags & FLAG_SKIP_COMP_BESTINTRA ) && vp9_ref_order [ best_ref_index ] . ref_frame [ 0 ] == INTRA_FRAME ) continue ;\n if ( ( cpi -> sf . mode_search_skip_flags & FLAG_SKIP_COMP_REFMISMATCH ) && ref_frame != best_inter_ref_frame && second_ref_frame != best_inter_ref_frame ) continue ;\n }\n if ( ref_frame > INTRA_FRAME && vp9_is_scaled ( & cm -> frame_refs [ ref_frame - 1 ] . sf ) ) continue ;\n if ( second_ref_frame > INTRA_FRAME && vp9_is_scaled ( & cm -> frame_refs [ second_ref_frame - 1 ] . sf ) ) continue ;\n if ( comp_pred ) mode_excluded = cm -> reference_mode == SINGLE_REFERENCE ;\n else if ( ref_frame != INTRA_FRAME ) mode_excluded = cm -> reference_mode == COMPOUND_REFERENCE ;\n if ( vp9_segfeature_active ( seg , segment_id , SEG_LVL_REF_FRAME ) && vp9_get_segdata ( seg , segment_id , SEG_LVL_REF_FRAME ) != ( int ) ref_frame ) {\n continue ;\n }\n else if ( ! vp9_segfeature_active ( seg , segment_id , SEG_LVL_REF_FRAME ) ) {\n if ( cpi -> rc . is_src_frame_alt_ref && ( cpi -> oxcf . arnr_max_frames == 0 ) ) continue ;\n }\n mbmi -> tx_size = TX_4X4 ;\n mbmi -> uv_mode = DC_PRED ;\n mbmi -> ref_frame [ 0 ] = ref_frame ;\n mbmi -> ref_frame [ 1 ] = second_ref_frame ;\n mbmi -> interp_filter = cm -> interp_filter == SWITCHABLE ? EIGHTTAP : cm -> interp_filter ;\n x -> skip = 0 ;\n set_ref_ptrs ( cm , xd , ref_frame , second_ref_frame ) ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n i ++ ) {\n xd -> plane [ i ] . pre [ 0 ] = yv12_mb [ ref_frame ] [ i ] ;\n if ( comp_pred ) xd -> plane [ i ] . pre [ 1 ] = yv12_mb [ second_ref_frame ] [ i ] ;\n }\n if ( ref_frame == INTRA_FRAME ) {\n int rate ;\n if ( rd_pick_intra_sub_8x8_y_mode ( cpi , x , & rate , & rate_y , & distortion_y , best_rd ) >= best_rd ) continue ;\n rate2 += rate ;\n rate2 += intra_cost_penalty ;\n distortion2 += distortion_y ;\n if ( rate_uv_intra == INT_MAX ) {\n choose_intra_uv_mode ( cpi , ctx , bsize , TX_4X4 , & rate_uv_intra , & rate_uv_tokenonly , & dist_uv , & skip_uv , & mode_uv ) ;\n }\n rate2 += rate_uv_intra ;\n rate_uv = rate_uv_tokenonly ;\n distortion2 += dist_uv ;\n distortion_uv = dist_uv ;\n mbmi -> uv_mode = mode_uv ;\n }\n else {\n int rate ;\n int64_t distortion ;\n int64_t this_rd_thresh ;\n int64_t tmp_rd , tmp_best_rd = INT64_MAX , tmp_best_rdu = INT64_MAX ;\n int tmp_best_rate = INT_MAX , tmp_best_ratey = INT_MAX ;\n int64_t tmp_best_distortion = INT_MAX , tmp_best_sse , uv_sse ;\n int tmp_best_skippable = 0 ;\n int switchable_filter_index ;\n int_mv * second_ref = comp_pred ? & mbmi -> ref_mvs [ second_ref_frame ] [ 0 ] : NULL ;\n b_mode_info tmp_best_bmodes [ 16 ] ;\n MB_MODE_INFO tmp_best_mbmode ;\n BEST_SEG_INFO bsi [ SWITCHABLE_FILTERS ] ;\n int pred_exists = 0 ;\n int uv_skippable ;\n this_rd_thresh = ( ref_frame == LAST_FRAME ) ? rd_opt -> threshes [ segment_id ] [ bsize ] [ THR_LAST ] : rd_opt -> threshes [ segment_id ] [ bsize ] [ THR_ALTR ] ;\n this_rd_thresh = ( ref_frame == GOLDEN_FRAME ) ? rd_opt -> threshes [ segment_id ] [ bsize ] [ THR_GOLD ] : this_rd_thresh ;\n rd_opt -> mask_filter = 0 ;\n for ( i = 0 ;\n i < SWITCHABLE_FILTER_CONTEXTS ;\n ++ i ) rd_opt -> filter_cache [ i ] = INT64_MAX ;\n if ( cm -> interp_filter != BILINEAR ) {\n tmp_best_filter = EIGHTTAP ;\n if ( x -> source_variance < cpi -> sf . disable_filter_search_var_thresh ) {\n tmp_best_filter = EIGHTTAP ;\n }\n else if ( cpi -> sf . adaptive_pred_interp_filter == 1 && ctx -> pred_interp_filter < SWITCHABLE ) {\n tmp_best_filter = ctx -> pred_interp_filter ;\n }\n else if ( cpi -> sf . adaptive_pred_interp_filter == 2 ) {\n tmp_best_filter = ctx -> pred_interp_filter < SWITCHABLE ? ctx -> pred_interp_filter : 0 ;\n }\n else {\n for ( switchable_filter_index = 0 ;\n switchable_filter_index < SWITCHABLE_FILTERS ;\n ++ switchable_filter_index ) {\n int newbest , rs ;\n int64_t rs_rd ;\n mbmi -> interp_filter = switchable_filter_index ;\n tmp_rd = rd_pick_best_sub8x8_mode ( cpi , x , tile , & mbmi -> ref_mvs [ ref_frame ] [ 0 ] , second_ref , best_yrd , & rate , & rate_y , & distortion , & skippable , & total_sse , ( int ) this_rd_thresh , seg_mvs , bsi , switchable_filter_index , mi_row , mi_col ) ;\n if ( tmp_rd == INT64_MAX ) continue ;\n rs = vp9_get_switchable_rate ( cpi ) ;\n rs_rd = RDCOST ( x -> rdmult , x -> rddiv , rs , 0 ) ;\n rd_opt -> filter_cache [ switchable_filter_index ] = tmp_rd ;\n rd_opt -> filter_cache [ SWITCHABLE_FILTERS ] = MIN ( rd_opt -> filter_cache [ SWITCHABLE_FILTERS ] , tmp_rd + rs_rd ) ;\n if ( cm -> interp_filter == SWITCHABLE ) tmp_rd += rs_rd ;\n rd_opt -> mask_filter = MAX ( rd_opt -> mask_filter , tmp_rd ) ;\n newbest = ( tmp_rd < tmp_best_rd ) ;\n if ( newbest ) {\n tmp_best_filter = mbmi -> interp_filter ;\n tmp_best_rd = tmp_rd ;\n }\n if ( ( newbest && cm -> interp_filter == SWITCHABLE ) || ( mbmi -> interp_filter == cm -> interp_filter && cm -> interp_filter != SWITCHABLE ) ) {\n tmp_best_rdu = tmp_rd ;\n tmp_best_rate = rate ;\n tmp_best_ratey = rate_y ;\n tmp_best_distortion = distortion ;\n tmp_best_sse = total_sse ;\n tmp_best_skippable = skippable ;\n tmp_best_mbmode = * mbmi ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n tmp_best_bmodes [ i ] = xd -> mi [ 0 ] -> bmi [ i ] ;\n x -> zcoeff_blk [ TX_4X4 ] [ i ] = ! x -> plane [ 0 ] . eobs [ i ] ;\n }\n pred_exists = 1 ;\n if ( switchable_filter_index == 0 && cpi -> sf . use_rd_breakout && best_rd < INT64_MAX ) {\n if ( tmp_best_rdu / 2 > best_rd ) {\n tmp_best_filter = mbmi -> interp_filter ;\n tmp_best_rdu = INT64_MAX ;\n break ;\n }\n }\n }\n }\n }\n }\n if ( tmp_best_rdu == INT64_MAX && pred_exists ) continue ;\n mbmi -> interp_filter = ( cm -> interp_filter == SWITCHABLE ? tmp_best_filter : cm -> interp_filter ) ;\n if ( ! pred_exists ) {\n tmp_rd = rd_pick_best_sub8x8_mode ( cpi , x , tile , & mbmi -> ref_mvs [ ref_frame ] [ 0 ] , second_ref , best_yrd , & rate , & rate_y , & distortion , & skippable , & total_sse , ( int ) this_rd_thresh , seg_mvs , bsi , 0 , mi_row , mi_col ) ;\n if ( tmp_rd == INT64_MAX ) continue ;\n }\n else {\n total_sse = tmp_best_sse ;\n rate = tmp_best_rate ;\n rate_y = tmp_best_ratey ;\n distortion = tmp_best_distortion ;\n skippable = tmp_best_skippable ;\n * mbmi = tmp_best_mbmode ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) xd -> mi [ 0 ] -> bmi [ i ] = tmp_best_bmodes [ i ] ;\n }\n rate2 += rate ;\n distortion2 += distortion ;\n if ( cm -> interp_filter == SWITCHABLE ) rate2 += vp9_get_switchable_rate ( cpi ) ;\n if ( ! mode_excluded ) mode_excluded = comp_pred ? cm -> reference_mode == SINGLE_REFERENCE : cm -> reference_mode == COMPOUND_REFERENCE ;\n compmode_cost = vp9_cost_bit ( comp_mode_p , comp_pred ) ;\n tmp_best_rdu = best_rd - MIN ( RDCOST ( x -> rdmult , x -> rddiv , rate2 , distortion2 ) , RDCOST ( x -> rdmult , x -> rddiv , 0 , total_sse ) ) ;\n if ( tmp_best_rdu > 0 ) {\n vp9_build_inter_predictors_sbuv ( & x -> e_mbd , mi_row , mi_col , BLOCK_8X8 ) ;\n super_block_uvrd ( cpi , x , & rate_uv , & distortion_uv , & uv_skippable , & uv_sse , BLOCK_8X8 , tmp_best_rdu ) ;\n if ( rate_uv == INT_MAX ) continue ;\n rate2 += rate_uv ;\n distortion2 += distortion_uv ;\n skippable = skippable && uv_skippable ;\n total_sse += uv_sse ;\n }\n }\n if ( cm -> reference_mode == REFERENCE_MODE_SELECT ) rate2 += compmode_cost ;\n if ( second_ref_frame > INTRA_FRAME ) {\n rate2 += ref_costs_comp [ ref_frame ] ;\n }\n else {\n rate2 += ref_costs_single [ ref_frame ] ;\n }\n if ( ! disable_skip ) {\n if ( ref_frame != INTRA_FRAME && ! xd -> lossless ) {\n if ( RDCOST ( x -> rdmult , x -> rddiv , rate_y + rate_uv , distortion2 ) < RDCOST ( x -> rdmult , x -> rddiv , 0 , total_sse ) ) {\n rate2 += vp9_cost_bit ( vp9_get_skip_prob ( cm , xd ) , 0 ) ;\n }\n else {\n rate2 += vp9_cost_bit ( vp9_get_skip_prob ( cm , xd ) , 1 ) ;\n distortion2 = total_sse ;\n assert ( total_sse >= 0 ) ;\n rate2 -= ( rate_y + rate_uv ) ;\n rate_y = 0 ;\n rate_uv = 0 ;\n this_skip2 = 1 ;\n }\n }\n else {\n rate2 += vp9_cost_bit ( vp9_get_skip_prob ( cm , xd ) , 0 ) ;\n }\n this_rd = RDCOST ( x -> rdmult , x -> rddiv , rate2 , distortion2 ) ;\n }\n if ( is_inter_block ( mbmi ) && ! has_second_ref ( mbmi ) && ! mode_excluded && this_rd < best_inter_rd ) {\n best_inter_rd = this_rd ;\n best_inter_ref_frame = ref_frame ;\n }\n if ( ! disable_skip && ref_frame == INTRA_FRAME ) {\n for ( i = 0 ;\n i < REFERENCE_MODES ;\n ++ i ) best_pred_rd [ i ] = MIN ( best_pred_rd [ i ] , this_rd ) ;\n for ( i = 0 ;\n i < SWITCHABLE_FILTER_CONTEXTS ;\n i ++ ) best_filter_rd [ i ] = MIN ( best_filter_rd [ i ] , this_rd ) ;\n }\n if ( this_rd < best_rd || x -> skip ) {\n if ( ! mode_excluded ) {\n int max_plane = MAX_MB_PLANE ;\n best_ref_index = ref_index ;\n if ( ref_frame == INTRA_FRAME ) {\n mbmi -> mv [ 0 ] . as_int = 0 ;\n max_plane = 1 ;\n }\n * returnrate = rate2 ;\n * returndistortion = distortion2 ;\n best_rd = this_rd ;\n best_yrd = best_rd - RDCOST ( x -> rdmult , x -> rddiv , rate_uv , distortion_uv ) ;\n best_mbmode = * mbmi ;\n best_skip2 = this_skip2 ;\n if ( ! x -> select_tx_size ) swap_block_ptr ( x , ctx , 1 , 0 , 0 , max_plane ) ;\n vpx_memcpy ( ctx -> zcoeff_blk , x -> zcoeff_blk [ TX_4X4 ] , sizeof ( uint8_t ) * ctx -> num_4x4_blk ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) best_bmodes [ i ] = xd -> mi [ 0 ] -> bmi [ i ] ;\n if ( ( cpi -> sf . mode_search_skip_flags & FLAG_EARLY_TERMINATE ) && ( ref_index > MIN_EARLY_TERM_INDEX ) ) {\n const int qstep = xd -> plane [ 0 ] . dequant [ 1 ] ;\n int scale = 4 ;\n if ( x -> source_variance < UINT_MAX ) {\n const int var_adjust = ( x -> source_variance < 16 ) ;\n scale -= var_adjust ;\n }\n if ( ref_frame > INTRA_FRAME && distortion2 * scale < qstep * qstep ) {\n early_term = 1 ;\n }\n }\n }\n }\n if ( ! disable_skip && ref_frame != INTRA_FRAME ) {\n int64_t single_rd , hybrid_rd , single_rate , hybrid_rate ;\n if ( cm -> reference_mode == REFERENCE_MODE_SELECT ) {\n single_rate = rate2 - compmode_cost ;\n hybrid_rate = rate2 ;\n }\n else {\n single_rate = rate2 ;\n hybrid_rate = rate2 + compmode_cost ;\n }\n single_rd = RDCOST ( x -> rdmult , x -> rddiv , single_rate , distortion2 ) ;\n hybrid_rd = RDCOST ( x -> rdmult , x -> rddiv , hybrid_rate , distortion2 ) ;\n if ( ! comp_pred && single_rd < best_pred_rd [ SINGLE_REFERENCE ] ) {\n best_pred_rd [ SINGLE_REFERENCE ] = single_rd ;\n }\n else if ( comp_pred && single_rd < best_pred_rd [ COMPOUND_REFERENCE ] ) {\n best_pred_rd [ COMPOUND_REFERENCE ] = single_rd ;\n }\n if ( hybrid_rd < best_pred_rd [ REFERENCE_MODE_SELECT ] ) best_pred_rd [ REFERENCE_MODE_SELECT ] = hybrid_rd ;\n }\n if ( ! mode_excluded && ! disable_skip && ref_frame != INTRA_FRAME && cm -> interp_filter != BILINEAR ) {\n int64_t ref = rd_opt -> filter_cache [ cm -> interp_filter == SWITCHABLE ? SWITCHABLE_FILTERS : cm -> interp_filter ] ;\n int64_t adj_rd ;\n for ( i = 0 ;\n i < SWITCHABLE_FILTER_CONTEXTS ;\n i ++ ) {\n if ( ref == INT64_MAX ) adj_rd = 0 ;\n else if ( rd_opt -> filter_cache [ i ] == INT64_MAX ) adj_rd = rd_opt -> mask_filter - ref + 10 ;\n else adj_rd = rd_opt -> filter_cache [ i ] - ref ;\n adj_rd += this_rd ;\n best_filter_rd [ i ] = MIN ( best_filter_rd [ i ] , adj_rd ) ;\n }\n }\n if ( early_term ) break ;\n if ( x -> skip && ! comp_pred ) break ;\n }\n if ( best_rd >= best_rd_so_far ) return INT64_MAX ;\n if ( cpi -> sf . use_uv_intra_rd_estimate ) {\n if ( vp9_ref_order [ best_ref_index ] . ref_frame [ 0 ] == INTRA_FRAME ) {\n * mbmi = best_mbmode ;\n rd_pick_intra_sbuv_mode ( cpi , x , ctx , & rate_uv_intra , & rate_uv_tokenonly , & dist_uv , & skip_uv , BLOCK_8X8 , TX_4X4 ) ;\n }\n }\n if ( best_rd == INT64_MAX ) {\n * returnrate = INT_MAX ;\n * returndistortion = INT64_MAX ;\n return best_rd ;\n }\n assert ( ( cm -> interp_filter == SWITCHABLE ) || ( cm -> interp_filter == best_mbmode . interp_filter ) || ! is_inter_block ( & best_mbmode ) ) ;\n update_rd_thresh_fact ( cpi , bsize , best_ref_index ) ;\n * mbmi = best_mbmode ;\n x -> skip |= best_skip2 ;\n if ( ! is_inter_block ( & best_mbmode ) ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) xd -> mi [ 0 ] -> bmi [ i ] . as_mode = best_bmodes [ i ] . as_mode ;\n }\n else {\n for ( i = 0 ;\n i < 4 ;\n ++ i ) vpx_memcpy ( & xd -> mi [ 0 ] -> bmi [ i ] , & best_bmodes [ i ] , sizeof ( b_mode_info ) ) ;\n mbmi -> mv [ 0 ] . as_int = xd -> mi [ 0 ] -> bmi [ 3 ] . as_mv [ 0 ] . as_int ;\n mbmi -> mv [ 1 ] . as_int = xd -> mi [ 0 ] -> bmi [ 3 ] . as_mv [ 1 ] . as_int ;\n }\n for ( i = 0 ;\n i < REFERENCE_MODES ;\n ++ i ) {\n if ( best_pred_rd [ i ] == INT64_MAX ) best_pred_diff [ i ] = INT_MIN ;\n else best_pred_diff [ i ] = best_rd - best_pred_rd [ i ] ;\n }\n if ( ! x -> skip ) {\n for ( i = 0 ;\n i < SWITCHABLE_FILTER_CONTEXTS ;\n i ++ ) {\n if ( best_filter_rd [ i ] == INT64_MAX ) best_filter_diff [ i ] = 0 ;\n else best_filter_diff [ i ] = best_rd - best_filter_rd [ i ] ;\n }\n if ( cm -> interp_filter == SWITCHABLE ) assert ( best_filter_diff [ SWITCHABLE_FILTERS ] == 0 ) ;\n }\n else {\n vp9_zero ( best_filter_diff ) ;\n }\n set_ref_ptrs ( cm , xd , mbmi -> ref_frame [ 0 ] , mbmi -> ref_frame [ 1 ] ) ;\n store_coding_context ( x , ctx , best_ref_index , best_pred_diff , best_tx_diff , best_filter_diff , 0 ) ;\n return best_rd ;\n }"}
{"idx": 994, "target": 1, "func": "static void _SCSUReset ( UConverter * cnv , UConverterResetChoice choice ) {\n SCSUData * scsu = ( SCSUData * ) cnv -> extraInfo ;\n if ( choice <= UCNV_RESET_TO_UNICODE ) {\n uprv_memcpy ( scsu -> toUDynamicOffsets , initialDynamicOffsets , 32 ) ;\n scsu -> toUIsSingleByteMode = TRUE ;\n scsu -> toUState = readCommand ;\n scsu -> toUQuoteWindow = scsu -> toUDynamicWindow = 0 ;\n scsu -> toUByteOne = 0 ;\n cnv -> toULength = 0 ;\n }\n if ( choice != UCNV_RESET_TO_UNICODE ) {\n uprv_memcpy ( scsu -> fromUDynamicOffsets , initialDynamicOffsets , 32 ) ;\n scsu -> fromUIsSingleByteMode = TRUE ;\n scsu -> fromUDynamicWindow = 0 ;\n scsu -> nextWindowUseIndex = 0 ;\n switch ( scsu -> locale ) {\n case l_ja : uprv_memcpy ( scsu -> windowUse , initialWindowUse_ja , 8 ) ;\n break ;\n default : uprv_memcpy ( scsu -> windowUse , initialWindowUse , 8 ) ;\n break ;\n }\n cnv -> fromUChar32 = 0 ;\n }\n }"}
{"idx": 995, "target": 0, "func": "static int dissect_h225_H248PackagesDescriptor ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , NO_BOUND , NO_BOUND , FALSE , NULL ) ;\n return offset ;\n }"}
{"idx": 996, "target": 0, "func": "static Item * * find_field_in_group_list ( Item * find_item , ORDER * group_list ) {\n const char * db_name ;\n const char * table_name ;\n const char * field_name ;\n ORDER * found_group = NULL ;\n int found_match_degree = 0 ;\n char name_buff [ SAFE_NAME_LEN + 1 ] ;\n if ( find_item -> type ( ) == Item : : FIELD_ITEM || find_item -> type ( ) == Item : : REF_ITEM ) {\n db_name = ( ( Item_ident * ) find_item ) -> db_name ;\n table_name = ( ( Item_ident * ) find_item ) -> table_name ;\n field_name = ( ( Item_ident * ) find_item ) -> field_name ;\n }\n else return NULL ;\n if ( db_name && lower_case_table_names ) {\n strmake_buf ( name_buff , db_name ) ;\n my_casedn_str ( files_charset_info , name_buff ) ;\n db_name = name_buff ;\n }\n DBUG_ASSERT ( field_name != 0 ) ;\n for ( ORDER * cur_group = group_list ;\n cur_group ;\n cur_group = cur_group -> next ) {\n int cur_match_degree = 0 ;\n if ( ( * ( cur_group -> item ) ) -> name && ! table_name && ! ( * ( cur_group -> item ) ) -> is_autogenerated_name && ! my_strcasecmp ( system_charset_info , ( * ( cur_group -> item ) ) -> name , field_name ) ) {\n ++ cur_match_degree ;\n }\n else if ( ( * ( cur_group -> item ) ) -> type ( ) == Item : : FIELD_ITEM || ( * ( cur_group -> item ) ) -> type ( ) == Item : : REF_ITEM ) {\n Item_ident * cur_field = ( Item_ident * ) * cur_group -> item ;\n const char * l_db_name = cur_field -> db_name ;\n const char * l_table_name = cur_field -> table_name ;\n const char * l_field_name = cur_field -> field_name ;\n DBUG_ASSERT ( l_field_name != 0 ) ;\n if ( ! my_strcasecmp ( system_charset_info , l_field_name , field_name ) ) ++ cur_match_degree ;\n else continue ;\n if ( l_table_name && table_name ) {\n if ( my_strcasecmp ( table_alias_charset , l_table_name , table_name ) ) return NULL ;\n ++ cur_match_degree ;\n if ( l_db_name && db_name ) {\n if ( strcmp ( l_db_name , db_name ) ) return NULL ;\n ++ cur_match_degree ;\n }\n }\n }\n else continue ;\n if ( cur_match_degree > found_match_degree ) {\n found_match_degree = cur_match_degree ;\n found_group = cur_group ;\n }\n else if ( found_group && ( cur_match_degree == found_match_degree ) && ! ( * ( found_group -> item ) ) -> eq ( ( * ( cur_group -> item ) ) , 0 ) ) {\n my_error ( ER_NON_UNIQ_ERROR , MYF ( 0 ) , find_item -> full_name ( ) , current_thd -> where ) ;\n return NULL ;\n }\n }\n if ( found_group ) return found_group -> item ;\n else return NULL ;\n }"}
{"idx": 997, "target": 0, "func": "int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ )"}
{"idx": 998, "target": 0, "func": "static void pdf_run_i ( fz_context * ctx , pdf_processor * proc , float flatness ) {\n }"}
{"idx": 999, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess )"}
{"idx": 1000, "target": 0, "func": "void mt_init ( mtrand * mt , uint32_t seed ) {\n int i ;\n mt -> mt_buffer_ [ 0 ] = seed ;\n mt -> mt_index_ = MT_LEN ;\n for ( i = 1 ;\n i < MT_LEN ;\n i ++ ) {\n mt -> mt_buffer_ [ i ] = ( 1812433253UL * ( mt -> mt_buffer_ [ i - 1 ] ^ ( mt -> mt_buffer_ [ i - 1 ] >> 30 ) ) + i ) ;\n }\n }"}
{"idx": 1001, "target": 0, "func": "TEST_F ( NativeBackendLibsecretTest , UpdateSameLogin ) {\n NativeBackendLibsecret backend ( 42 ) ;\n VerifiedAdd ( & backend , form_google_ ) ;\n EXPECT_EQ ( 1u , global_mock_libsecret_items -> size ( ) ) ;\n if ( ! global_mock_libsecret_items -> empty ( ) ) {\n CheckMockSecretItem ( ( * global_mock_libsecret_items ) [ 0 ] , form_google_ , \"chrome-42\" ) ;\n }\n PasswordStoreChangeList changes ;\n EXPECT_TRUE ( backend . UpdateLogin ( form_google_ , & changes ) ) ;\n CheckPasswordChanges ( PasswordStoreChangeList ( ) , changes ) ;\n EXPECT_EQ ( 1u , global_mock_libsecret_items -> size ( ) ) ;\n if ( ! global_mock_libsecret_items -> empty ( ) ) {\n CheckMockSecretItem ( ( * global_mock_libsecret_items ) [ 0 ] , form_google_ , \"chrome-42\" ) ;\n }\n }"}
{"idx": 1002, "target": 1, "func": "static const char * getPosixID ( const ILcidPosixMap * this_0 , uint32_t hostID ) {\n uint32_t i ;\n for ( i = 0 ;\n i <= this_0 -> numRegions ;\n i ++ ) {\n if ( this_0 -> regionMaps [ i ] . hostID == hostID ) {\n return this_0 -> regionMaps [ i ] . posixID ;\n }\n }\n return this_0 -> regionMaps [ 0 ] . posixID ;\n }"}
{"idx": 1003, "target": 0, "func": "static int SpoolssSetJob_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n guint32 jobid , cmd ;\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , NULL , NULL , FALSE , FALSE ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_job_id , & jobid ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_level , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_setjob_cmd , & cmd ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s jobid %d\" , val_to_str ( cmd , setjob_commands , \"Unknown (%d)\" ) , jobid ) ;\n return offset ;\n }"}
{"idx": 1004, "target": 0, "func": "int gcry_sexp_length ( const gcry_sexp_t list ) {\n const byte * p ;\n DATALEN n ;\n int type ;\n int length = 0 ;\n int level = 0 ;\n if ( ! list ) return 0 ;\n p = list -> d ;\n while ( ( type = * p ) != ST_STOP ) {\n p ++ ;\n if ( type == ST_DATA ) {\n memcpy ( & n , p , sizeof n ) ;\n p += sizeof n + n ;\n if ( level == 1 ) length ++ ;\n }\n else if ( type == ST_OPEN ) {\n if ( level == 1 ) length ++ ;\n level ++ ;\n }\n else if ( type == ST_CLOSE ) {\n level -- ;\n }\n }\n return length ;\n }"}
{"idx": 1005, "target": 0, "func": "static int dissect_h245_T_mcCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_mcCapability , T_mcCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 1006, "target": 0, "func": "static void http_badreq_successcb ( int fd , short what , void * arg ) {\n event_debug ( ( \"%s: called (what=%04x, arg=%p)\" , __func__ , what , arg ) ) ;\n event_loopexit ( NULL ) ;\n }"}
{"idx": 1007, "target": 0, "func": "static void mp_read_changes_map ( MotionPixelsContext * mp , GetBitContext * gb , int count , int bits_len , int read_color ) {\n uint16_t * pixels ;\n int offset , w , h , color = 0 , x , y , i ;\n while ( count -- ) {\n offset = get_bits_long ( gb , mp -> offset_bits_len ) ;\n w = get_bits ( gb , bits_len ) + 1 ;\n h = get_bits ( gb , bits_len ) + 1 ;\n if ( read_color ) color = get_bits ( gb , 15 ) ;\n x = offset % mp -> avctx -> width ;\n y = offset / mp -> avctx -> width ;\n if ( y >= mp -> avctx -> height ) continue ;\n w = FFMIN ( w , mp -> avctx -> width - x ) ;\n h = FFMIN ( h , mp -> avctx -> height - y ) ;\n pixels = ( uint16_t * ) & mp -> frame . data [ 0 ] [ y * mp -> frame . linesize [ 0 ] + x * 2 ] ;\n while ( h -- ) {\n mp -> changes_map [ offset ] = w ;\n if ( read_color ) for ( i = 0 ;\n i < w ;\n ++ i ) pixels [ i ] = color ;\n offset += mp -> avctx -> width ;\n pixels += mp -> frame . linesize [ 0 ] / 2 ;\n }\n }\n }"}
{"idx": 1008, "target": 0, "func": "TSReturnCode TSHttpTxnMilestoneGet ( TSHttpTxn txnp , TSMilestonesType milestone , ink_hrtime * time ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( time ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n TSReturnCode ret = TS_SUCCESS ;\n if ( ( milestone < TS_MILESTONE_UA_BEGIN ) || ( milestone >= TS_MILESTONE_LAST_ENTRY ) ) {\n * time = - 1 ;\n ret = TS_ERROR ;\n }\n else {\n * time = sm -> milestones [ milestone ] ;\n }\n return ret ;\n }"}
{"idx": 1009, "target": 0, "func": "static inline void vmsvga_update_rect_flush ( struct vmsvga_state_s * s ) {\n struct vmsvga_rect_s * rect ;\n if ( s -> invalidated ) {\n s -> redraw_fifo_first = s -> redraw_fifo_last ;\n return ;\n }\n while ( s -> redraw_fifo_first != s -> redraw_fifo_last ) {\n rect = & s -> redraw_fifo [ s -> redraw_fifo_first ++ ] ;\n s -> redraw_fifo_first &= REDRAW_FIFO_LEN - 1 ;\n vmsvga_update_rect ( s , rect -> x , rect -> y , rect -> w , rect -> h ) ;\n }\n }"}
{"idx": 1010, "target": 0, "func": "static int decode_plane ( Indeo3DecodeContext * ctx , AVCodecContext * avctx , Plane * plane , const uint8_t * data , int32_t data_size , int32_t strip_width ) {\n Cell curr_cell ;\n unsigned num_vectors ;\n num_vectors = bytestream_get_le32 ( & data ) ;\n if ( num_vectors > 256 ) {\n av_log ( ctx -> avctx , AV_LOG_ERROR , \"Read invalid number of motion vectors %d\\n\" , num_vectors ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( num_vectors * 2 >= data_size ) return AVERROR_INVALIDDATA ;\n ctx -> num_vectors = num_vectors ;\n ctx -> mc_vectors = num_vectors ? data : 0 ;\n init_get_bits ( & ctx -> gb , & data [ num_vectors * 2 ] , ( data_size - num_vectors * 2 ) << 3 ) ;\n ctx -> skip_bits = 0 ;\n ctx -> need_resync = 0 ;\n ctx -> last_byte = data + data_size - 1 ;\n curr_cell . xpos = curr_cell . ypos = 0 ;\n curr_cell . width = plane -> width >> 2 ;\n curr_cell . height = plane -> height >> 2 ;\n curr_cell . tree = 0 ;\n curr_cell . mv_ptr = 0 ;\n return parse_bintree ( ctx , avctx , plane , INTRA_NULL , & curr_cell , CELL_STACK_MAX , strip_width ) ;\n }"}
{"idx": 1011, "target": 0, "func": "int qdev_simple_unplug_cb ( DeviceState * dev ) {\n qdev_free ( dev ) ;\n return 0 ;\n }"}
{"idx": 1012, "target": 0, "func": "void proto_heuristic_dissector_foreach ( const protocol_t * protocol , GFunc func , gpointer user_data ) {\n if ( protocol == NULL ) return ;\n g_list_foreach ( protocol -> heur_list , func , user_data ) ;\n }"}
{"idx": 1013, "target": 0, "func": "static void test_wl4435_2 ( ) {\n MYSQL_STMT * stmt ;\n int i ;\n int rc ;\n char query [ MAX_TEST_QUERY_LENGTH ] ;\n myheader ( \"test_wl4435_2\" ) ;\n mct_start_logging ( \"test_wl4435_2\" ) ;\n for ( i = 0 ;\n i < 10 ;\n ++ i ) {\n rc = mysql_query ( mysql , \"DROP PROCEDURE IF EXISTS p1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE PROCEDURE p1()\" \"BEGIN \" \" SELECT 1;\n \" \" SELECT 2, 3 UNION SELECT 4, 5;\n \" \" SELECT 6, 7, 8;\n \" \"END\" ) ;\n myquery ( rc ) ;\n strmov ( query , \"CALL p1()\" ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP PROCEDURE p1\" ) ;\n myquery ( rc ) ;\n }\n mct_close_log ( ) ;\n }"}
{"idx": 1014, "target": 0, "func": "void proto_tree_children_foreach ( proto_tree * tree , proto_tree_foreach_func func , gpointer data ) {\n proto_node * node = tree ;\n proto_node * current ;\n if ( ! node ) return ;\n node = node -> first_child ;\n while ( node != NULL ) {\n current = node ;\n node = current -> next ;\n func ( ( proto_tree * ) current , data ) ;\n }\n }"}
{"idx": 1015, "target": 0, "func": "void hmp_info_usernet ( Monitor * mon , const QDict * qdict ) {\n SlirpState * s ;\n QTAILQ_FOREACH ( s , & slirp_stacks , entry ) {\n int id ;\n bool got_vlan_id = net_hub_id_for_client ( & s -> nc , & id ) == 0 ;\n monitor_printf ( mon , \"VLAN %d (%s):\\n\" , got_vlan_id ? id : - 1 , s -> nc . name ) ;\n slirp_connection_info ( s -> slirp , mon ) ;\n }\n }"}
{"idx": 1016, "target": 0, "func": "proto_item * proto_tree_add_none_format ( proto_tree * tree , const int hfindex , tvbuff_t * tvb , const gint start , gint length , const char * format , ... ) {\n proto_item * pi ;\n va_list ap ;\n header_field_info * hfinfo ;\n CHECK_FOR_NULL_TREE ( tree ) ;\n TRY_TO_FAKE_THIS_ITEM ( tree , hfindex , hfinfo ) ;\n DISSECTOR_ASSERT_FIELD_TYPE ( hfinfo , FT_NONE ) ;\n pi = proto_tree_add_pi ( tree , hfinfo , tvb , start , & length ) ;\n TRY_TO_FAKE_THIS_REPR ( pi ) ;\n va_start ( ap , format ) ;\n proto_tree_set_representation ( pi , format , ap ) ;\n va_end ( ap ) ;\n return pi ;\n }"}
{"idx": 1017, "target": 0, "func": "static int cine_read_packet ( AVFormatContext * avctx , AVPacket * pkt ) {\n CineDemuxContext * cine = avctx -> priv_data ;\n AVStream * st = avctx -> streams [ 0 ] ;\n AVIOContext * pb = avctx -> pb ;\n int n , size , ret ;\n if ( cine -> pts >= st -> duration ) return AVERROR_EOF ;\n avio_seek ( pb , st -> index_entries [ cine -> pts ] . pos , SEEK_SET ) ;\n n = avio_rl32 ( pb ) ;\n if ( n < 8 ) return AVERROR_INVALIDDATA ;\n avio_skip ( pb , n - 8 ) ;\n size = avio_rl32 ( pb ) ;\n ret = av_get_packet ( pb , pkt , size ) ;\n if ( ret < 0 ) return ret ;\n pkt -> pts = cine -> pts ++ ;\n pkt -> stream_index = 0 ;\n pkt -> flags |= AV_PKT_FLAG_KEY ;\n return 0 ;\n }"}
{"idx": 1018, "target": 0, "func": "TEST ( DownloadPrefsTest , NoAutoOpenForFilesWithNoExtension ) {\n const base : : FilePath kFileWithNoExtension ( FILE_PATH_LITERAL ( \"abcd\" ) ) ;\n content : : TestBrowserThreadBundle threads_are_required_for_testing_profile ;\n TestingProfile profile ;\n DownloadPrefs prefs ( & profile ) ;\n EXPECT_FALSE ( prefs . EnableAutoOpenBasedOnExtension ( kFileWithNoExtension ) ) ;\n EXPECT_FALSE ( prefs . IsAutoOpenEnabledBasedOnExtension ( kFileWithNoExtension ) ) ;\n }"}
{"idx": 1019, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , UseCounterFeaturesInNonSecureMainFrame ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : LOAD_EVENT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"non-secure.test\" , \"/page_load_metrics/use_counter_features.html\" ) ) ;\n waiter -> Wait ( ) ;\n NavigateToUntrackedUrl ( ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kFeaturesHistogramName , static_cast < int32_t > ( WebFeature : : kTextWholeText ) , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kFeaturesHistogramName , static_cast < int32_t > ( WebFeature : : kV8Element_Animate_Method ) , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kFeaturesHistogramName , static_cast < int32_t > ( WebFeature : : kNavigatorVibrate ) , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kFeaturesHistogramName , static_cast < int32_t > ( WebFeature : : kDataUriHasOctothorpe ) , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kFeaturesHistogramName , static_cast < int32_t > ( WebFeature : : kApplicationCacheManifestSelectInsecureOrigin ) , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kFeaturesHistogramName , static_cast < int32_t > ( WebFeature : : kPageVisits ) , 1 ) ;\n }"}
{"idx": 1020, "target": 0, "func": "static gint rtmpt_get_amf_length ( tvbuff_t * tvb , gint offset ) {\n guint8 iObjType ;\n gint remain = tvb_reported_length_remaining ( tvb , offset ) ;\n guint32 depth = 0 ;\n gint itemlen = 0 ;\n gint rv = 0 ;\n while ( rv == 0 || depth > 0 ) {\n if ( depth > 0 ) {\n if ( remain - rv < 2 ) return remain ;\n itemlen = tvb_get_ntohs ( tvb , offset + rv ) + 2 ;\n if ( remain - rv < itemlen + 1 ) return remain ;\n rv += itemlen ;\n }\n if ( remain - rv < 1 ) return remain ;\n iObjType = tvb_get_guint8 ( tvb , offset + rv ) ;\n if ( depth > 0 && itemlen == 2 && iObjType == AMF0_END_OF_OBJECT ) {\n rv ++ ;\n depth -- ;\n continue ;\n }\n switch ( iObjType ) {\n case AMF0_NUMBER : itemlen = 9 ;\n break ;\n case AMF0_BOOLEAN : itemlen = 2 ;\n break ;\n case AMF0_STRING : if ( remain - rv < 3 ) return remain ;\n itemlen = tvb_get_ntohs ( tvb , offset + rv + 1 ) + 3 ;\n break ;\n case AMF0_NULL : case AMF0_UNDEFINED : case AMF0_UNSUPPORTED : itemlen = 1 ;\n break ;\n case AMF0_DATE : itemlen = 11 ;\n break ;\n case AMF0_LONG_STRING : case AMF0_XML : if ( remain - rv < 5 ) return remain ;\n itemlen = tvb_get_ntohl ( tvb , offset + rv + 1 ) + 5 ;\n break ;\n case AMF0_INT64 : itemlen = 9 ;\n break ;\n case AMF0_OBJECT : itemlen = 1 ;\n depth ++ ;\n break ;\n case AMF0_ECMA_ARRAY : itemlen = 5 ;\n depth ++ ;\n break ;\n default : return remain ;\n }\n if ( remain - rv < itemlen ) return remain ;\n rv += itemlen ;\n }\n return rv ;\n }"}
{"idx": 1021, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( AppApiTest , DISABLED_AppProcessRedirectBack ) {\n ASSERT_TRUE ( LoadExtension ( test_data_dir_ . AppendASCII ( \"app_process\" ) ) ) ;\n GURL base_url = GetTestBaseURL ( \"app_process\" ) ;\n chrome : : NewTab ( browser ( ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , base_url . Resolve ( \"path1/empty.html\" ) ) ;\n chrome : : NewTab ( browser ( ) ) ;\n ui_test_utils : : NavigateToURLBlockUntilNavigationsComplete ( browser ( ) , base_url . Resolve ( \"path1/redirect.html\" ) , 2 ) ;\n ASSERT_EQ ( 3 , browser ( ) -> tab_strip_model ( ) -> count ( ) ) ;\n EXPECT_EQ ( \"/extensions/api_test/app_process/path1/empty.html\" , browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 2 ) -> GetController ( ) . GetLastCommittedEntry ( ) -> GetURL ( ) . path ( ) ) ;\n EXPECT_EQ ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 1 ) -> GetRenderProcessHost ( ) , browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 2 ) -> GetRenderProcessHost ( ) ) ;\n }"}
{"idx": 1022, "target": 0, "func": "const EVP_CIPHER * EVP_aes_256_wrap ( void ) {\n return & aes_256_wrap ;\n }"}
{"idx": 1023, "target": 0, "func": "static void get_visual_weight ( int16_t * weight , uint8_t * ptr , int stride ) {\n int x , y ;\n for ( y = 0 ;\n y < 8 ;\n y ++ ) {\n for ( x = 0 ;\n x < 8 ;\n x ++ ) {\n int x2 , y2 ;\n int sum = 0 ;\n int sqr = 0 ;\n int count = 0 ;\n for ( y2 = FFMAX ( y - 1 , 0 ) ;\n y2 < FFMIN ( 8 , y + 2 ) ;\n y2 ++ ) {\n for ( x2 = FFMAX ( x - 1 , 0 ) ;\n x2 < FFMIN ( 8 , x + 2 ) ;\n x2 ++ ) {\n int v = ptr [ x2 + y2 * stride ] ;\n sum += v ;\n sqr += v * v ;\n count ++ ;\n }\n }\n weight [ x + 8 * y ] = ( 36 * ff_sqrt ( count * sqr - sum * sum ) ) / count ;\n }\n }\n }"}
{"idx": 1024, "target": 0, "func": "double TSdrandom ( ) {\n return this_ethread ( ) -> generator . drandom ( ) ;\n }"}
{"idx": 1025, "target": 0, "func": "static int dissect_nlm_gen_reply ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , void * data ) {\n guint32 nlm_stat ;\n int offset = 0 ;\n if ( nlm_match_msgres ) {\n rpc_call_info_value * rpc_call = ( rpc_call_info_value * ) data ;\n if ( ( rpc_call -> proc == 12 ) || ( rpc_call -> proc == 13 ) || ( rpc_call -> proc == 14 ) || ( rpc_call -> proc == 15 ) ) {\n if ( ( ! pinfo -> fd -> flags . visited ) ) {\n nlm_register_unmatched_res ( pinfo , tvb , offset ) ;\n }\n else {\n nlm_print_msgres_reply ( pinfo , tree , tvb ) ;\n }\n if ( nfs_fhandle_reqrep_matching ) {\n nlm_match_fhandle_reply ( pinfo , tree ) ;\n }\n }\n }\n offset = dissect_rpc_data ( tvb , tree , hf_nlm_cookie , offset ) ;\n nlm_stat = tvb_get_ntohl ( tvb , offset ) ;\n if ( nlm_stat ) {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" %s\" , val_to_str ( nlm_stat , names_nlm_stats , \"Unknown Status (%u)\" ) ) ;\n }\n offset = dissect_rpc_uint32 ( tvb , tree , hf_nlm_stat , offset ) ;\n return offset ;\n }"}
{"idx": 1026, "target": 0, "func": "static void mpeg_decode_gop ( AVCodecContext * avctx , const uint8_t * buf , int buf_size ) {\n Mpeg1Context * s1 = avctx -> priv_data ;\n MpegEncContext * s = & s1 -> mpeg_enc_ctx ;\n int time_code_hours , time_code_minutes ;\n int time_code_seconds , time_code_pictures ;\n int broken_link ;\n init_get_bits ( & s -> gb , buf , buf_size * 8 ) ;\n skip_bits1 ( & s -> gb ) ;\n time_code_hours = get_bits ( & s -> gb , 5 ) ;\n time_code_minutes = get_bits ( & s -> gb , 6 ) ;\n skip_bits1 ( & s -> gb ) ;\n time_code_seconds = get_bits ( & s -> gb , 6 ) ;\n time_code_pictures = get_bits ( & s -> gb , 6 ) ;\n s1 -> closed_gop = get_bits1 ( & s -> gb ) ;\n broken_link = get_bits1 ( & s -> gb ) ;\n if ( s -> avctx -> debug & FF_DEBUG_PICT_INFO ) av_log ( s -> avctx , AV_LOG_DEBUG , \"GOP (%2d:%02d:%02d.[%02d]) closed_gop=%d broken_link=%d\\n\" , time_code_hours , time_code_minutes , time_code_seconds , time_code_pictures , s1 -> closed_gop , broken_link ) ;\n }"}
{"idx": 1027, "target": 0, "func": "static bool get_agg_clause_costs_walker ( Node * node , get_agg_clause_costs_context * context ) {\n if ( node == NULL ) return false ;\n if ( IsA ( node , Aggref ) ) {\n Aggref * aggref = ( Aggref * ) node ;\n AggClauseCosts * costs = context -> costs ;\n HeapTuple aggTuple ;\n Form_pg_aggregate aggform ;\n Oid aggtransfn ;\n Oid aggfinalfn ;\n Oid aggcombinefn ;\n Oid aggserialfn ;\n Oid aggdeserialfn ;\n Oid aggtranstype ;\n int32 aggtransspace ;\n QualCost argcosts ;\n Assert ( aggref -> agglevelsup == 0 ) ;\n aggTuple = SearchSysCache1 ( AGGFNOID , ObjectIdGetDatum ( aggref -> aggfnoid ) ) ;\n if ( ! HeapTupleIsValid ( aggTuple ) ) elog ( ERROR , \"cache lookup failed for aggregate %u\" , aggref -> aggfnoid ) ;\n aggform = ( Form_pg_aggregate ) GETSTRUCT ( aggTuple ) ;\n aggtransfn = aggform -> aggtransfn ;\n aggfinalfn = aggform -> aggfinalfn ;\n aggcombinefn = aggform -> aggcombinefn ;\n aggserialfn = aggform -> aggserialfn ;\n aggdeserialfn = aggform -> aggdeserialfn ;\n aggtranstype = aggform -> aggtranstype ;\n aggtransspace = aggform -> aggtransspace ;\n ReleaseSysCache ( aggTuple ) ;\n if ( OidIsValid ( aggref -> aggtranstype ) ) aggtranstype = aggref -> aggtranstype ;\n else {\n Oid inputTypes [ FUNC_MAX_ARGS ] ;\n int numArguments ;\n numArguments = get_aggregate_argtypes ( aggref , inputTypes ) ;\n aggtranstype = resolve_aggregate_transtype ( aggref -> aggfnoid , aggtranstype , inputTypes , numArguments ) ;\n aggref -> aggtranstype = aggtranstype ;\n }\n costs -> numAggs ++ ;\n if ( aggref -> aggorder != NIL || aggref -> aggdistinct != NIL ) {\n costs -> numOrderedAggs ++ ;\n costs -> hasNonPartial = true ;\n }\n if ( ! costs -> hasNonPartial ) {\n if ( ! OidIsValid ( aggcombinefn ) ) costs -> hasNonPartial = true ;\n else if ( aggtranstype == INTERNALOID && ( ! OidIsValid ( aggserialfn ) || ! OidIsValid ( aggdeserialfn ) ) ) costs -> hasNonSerial = true ;\n }\n if ( DO_AGGSPLIT_COMBINE ( context -> aggsplit ) ) {\n costs -> transCost . per_tuple += get_func_cost ( aggcombinefn ) * cpu_operator_cost ;\n }\n else costs -> transCost . per_tuple += get_func_cost ( aggtransfn ) * cpu_operator_cost ;\n if ( DO_AGGSPLIT_DESERIALIZE ( context -> aggsplit ) && OidIsValid ( aggdeserialfn ) ) costs -> transCost . per_tuple += get_func_cost ( aggdeserialfn ) * cpu_operator_cost ;\n if ( DO_AGGSPLIT_SERIALIZE ( context -> aggsplit ) && OidIsValid ( aggserialfn ) ) costs -> finalCost += get_func_cost ( aggserialfn ) * cpu_operator_cost ;\n if ( ! DO_AGGSPLIT_SKIPFINAL ( context -> aggsplit ) && OidIsValid ( aggfinalfn ) ) costs -> finalCost += get_func_cost ( aggfinalfn ) * cpu_operator_cost ;\n if ( ! DO_AGGSPLIT_COMBINE ( context -> aggsplit ) ) {\n cost_qual_eval_node ( & argcosts , ( Node * ) aggref -> args , context -> root ) ;\n costs -> transCost . startup += argcosts . startup ;\n costs -> transCost . per_tuple += argcosts . per_tuple ;\n if ( aggref -> aggfilter ) {\n cost_qual_eval_node ( & argcosts , ( Node * ) aggref -> aggfilter , context -> root ) ;\n costs -> transCost . startup += argcosts . startup ;\n costs -> transCost . per_tuple += argcosts . per_tuple ;\n }\n }\n if ( aggref -> aggdirectargs ) {\n cost_qual_eval_node ( & argcosts , ( Node * ) aggref -> aggdirectargs , context -> root ) ;\n costs -> transCost . startup += argcosts . startup ;\n costs -> finalCost += argcosts . per_tuple ;\n }\n if ( ! get_typbyval ( aggtranstype ) ) {\n int32 avgwidth ;\n if ( aggtransspace > 0 ) avgwidth = aggtransspace ;\n else {\n int32 aggtranstypmod = - 1 ;\n if ( aggref -> args ) {\n TargetEntry * tle = ( TargetEntry * ) linitial ( aggref -> args ) ;\n if ( aggtranstype == exprType ( ( Node * ) tle -> expr ) ) aggtranstypmod = exprTypmod ( ( Node * ) tle -> expr ) ;\n }\n avgwidth = get_typavgwidth ( aggtranstype , aggtranstypmod ) ;\n }\n avgwidth = MAXALIGN ( avgwidth ) ;\n costs -> transitionSpace += avgwidth + 2 * sizeof ( void * ) ;\n }\n else if ( aggtranstype == INTERNALOID ) {\n if ( aggtransspace > 0 ) costs -> transitionSpace += aggtransspace ;\n else costs -> transitionSpace += ALLOCSET_DEFAULT_INITSIZE ;\n }\n return false ;\n }\n Assert ( ! IsA ( node , SubLink ) ) ;\n return expression_tree_walker ( node , get_agg_clause_costs_walker , ( void * ) context ) ;\n }"}
{"idx": 1028, "target": 0, "func": "static VALUE mString_included_s ( VALUE self , VALUE modul ) {\n VALUE result = rb_funcall ( modul , i_extend , 1 , mString_Extend ) ;\n return result ;\n }"}
{"idx": 1029, "target": 0, "func": "void proto_reg_handoff_usb_audio ( void ) {\n dissector_handle_t usb_audio_bulk_handle , usb_audio_descr_handle ;\n usb_audio_descr_handle = create_dissector_handle ( dissect_usb_audio_descriptor , proto_usb_audio ) ;\n dissector_add_uint ( \"usb.descriptor\" , IF_CLASS_AUDIO , usb_audio_descr_handle ) ;\n usb_audio_bulk_handle = find_dissector ( \"usbaudio\" ) ;\n dissector_add_uint ( \"usb.bulk\" , IF_CLASS_AUDIO , usb_audio_bulk_handle ) ;\n sysex_handle = find_dissector_add_dependency ( \"sysex\" , proto_usb_audio ) ;\n }"}
{"idx": 1030, "target": 0, "func": "static void directory_load_done ( NautilusDirectory * directory , GError * error ) {\n GList * node ;\n nautilus_profile_start ( NULL ) ;\n g_object_ref ( directory ) ;\n directory -> details -> directory_loaded = TRUE ;\n directory -> details -> directory_loaded_sent_notification = FALSE ;\n if ( error != NULL ) {\n for ( node = directory -> details -> file_list ;\n node != NULL ;\n node = node -> next ) {\n set_file_unconfirmed ( NAUTILUS_FILE ( node -> data ) , FALSE ) ;\n }\n nautilus_directory_emit_load_error ( directory , error ) ;\n }\n if ( directory -> details -> dequeue_pending_idle_id != 0 ) {\n g_source_remove ( directory -> details -> dequeue_pending_idle_id ) ;\n }\n dequeue_pending_idle_callback ( directory ) ;\n directory_load_cancel ( directory ) ;\n g_object_unref ( directory ) ;\n nautilus_profile_end ( NULL ) ;\n }"}
{"idx": 1031, "target": 1, "func": "static void encode_sb_rt ( VP9_COMP * cpi , const TileInfo * const tile , TOKENEXTRA * * tp , int mi_row , int mi_col , int output_enabled , BLOCK_SIZE bsize , PC_TREE * pc_tree ) {\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCK * const x = & cpi -> mb ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n const int bsl = b_width_log2 ( bsize ) , hbs = ( 1 << bsl ) / 4 ;\n int ctx ;\n PARTITION_TYPE partition ;\n BLOCK_SIZE subsize ;\n if ( mi_row >= cm -> mi_rows || mi_col >= cm -> mi_cols ) return ;\n if ( bsize >= BLOCK_8X8 ) {\n const int idx_str = xd -> mi_stride * mi_row + mi_col ;\n MODE_INFO * * mi_8x8 = cm -> mi_grid_visible + idx_str ;\n ctx = partition_plane_context ( xd , mi_row , mi_col , bsize ) ;\n subsize = mi_8x8 [ 0 ] -> mbmi . sb_type ;\n }\n else {\n ctx = 0 ;\n subsize = BLOCK_4X4 ;\n }\n partition = partition_lookup [ bsl ] [ subsize ] ;\n if ( output_enabled && bsize != BLOCK_4X4 ) cm -> counts . partition [ ctx ] [ partition ] ++ ;\n switch ( partition ) {\n case PARTITION_NONE : encode_b_rt ( cpi , tile , tp , mi_row , mi_col , output_enabled , subsize , & pc_tree -> none ) ;\n break ;\n case PARTITION_VERT : encode_b_rt ( cpi , tile , tp , mi_row , mi_col , output_enabled , subsize , & pc_tree -> vertical [ 0 ] ) ;\n if ( mi_col + hbs < cm -> mi_cols && bsize > BLOCK_8X8 ) {\n encode_b_rt ( cpi , tile , tp , mi_row , mi_col + hbs , output_enabled , subsize , & pc_tree -> vertical [ 1 ] ) ;\n }\n break ;\n case PARTITION_HORZ : encode_b_rt ( cpi , tile , tp , mi_row , mi_col , output_enabled , subsize , & pc_tree -> horizontal [ 0 ] ) ;\n if ( mi_row + hbs < cm -> mi_rows && bsize > BLOCK_8X8 ) {\n encode_b_rt ( cpi , tile , tp , mi_row + hbs , mi_col , output_enabled , subsize , & pc_tree -> horizontal [ 1 ] ) ;\n }\n break ;\n case PARTITION_SPLIT : subsize = get_subsize ( bsize , PARTITION_SPLIT ) ;\n encode_sb_rt ( cpi , tile , tp , mi_row , mi_col , output_enabled , subsize , pc_tree -> split [ 0 ] ) ;\n encode_sb_rt ( cpi , tile , tp , mi_row , mi_col + hbs , output_enabled , subsize , pc_tree -> split [ 1 ] ) ;\n encode_sb_rt ( cpi , tile , tp , mi_row + hbs , mi_col , output_enabled , subsize , pc_tree -> split [ 2 ] ) ;\n encode_sb_rt ( cpi , tile , tp , mi_row + hbs , mi_col + hbs , output_enabled , subsize , pc_tree -> split [ 3 ] ) ;\n break ;\n default : assert ( \"Invalid partition type.\" ) ;\n break ;\n }\n if ( partition != PARTITION_SPLIT || bsize == BLOCK_8X8 ) update_partition_context ( xd , mi_row , mi_col , subsize , bsize ) ;\n }"}
{"idx": 1032, "target": 0, "func": "static const unsigned char * seq_unpack_rle_block ( const unsigned char * src , const unsigned char * src_end , unsigned char * dst , int dst_size ) {\n int i , len , sz ;\n GetBitContext gb ;\n int code_table [ 64 ] ;\n init_get_bits ( & gb , src , ( src_end - src ) * 8 ) ;\n for ( i = 0 , sz = 0 ;\n i < 64 && sz < dst_size ;\n i ++ ) {\n if ( get_bits_left ( & gb ) < 4 ) return NULL ;\n code_table [ i ] = get_sbits ( & gb , 4 ) ;\n sz += FFABS ( code_table [ i ] ) ;\n }\n src += ( get_bits_count ( & gb ) + 7 ) / 8 ;\n for ( i = 0 ;\n i < 64 && dst_size > 0 ;\n i ++ ) {\n len = code_table [ i ] ;\n if ( len < 0 ) {\n len = - len ;\n if ( src_end - src < 1 ) return NULL ;\n memset ( dst , * src ++ , FFMIN ( len , dst_size ) ) ;\n }\n else {\n if ( src_end - src < len ) return NULL ;\n memcpy ( dst , src , FFMIN ( len , dst_size ) ) ;\n src += len ;\n }\n dst += len ;\n dst_size -= len ;\n }\n return src ;\n }"}
{"idx": 1033, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FramebustBlockBrowserTest , AllowRadioButtonSelected ) {\n const GURL url = embedded_test_server ( ) -> GetURL ( \"/iframe.html\" ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , url ) ;\n auto * helper = GetFramebustTabHelper ( ) ;\n helper -> AddBlockedUrl ( url , base : : BindOnce ( & FramebustBlockBrowserTest : : OnClick , base : : Unretained ( this ) ) ) ;\n EXPECT_TRUE ( helper -> HasBlockedUrls ( ) ) ;\n HostContentSettingsMap * settings_map = HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) ;\n EXPECT_EQ ( CONTENT_SETTING_BLOCK , settings_map -> GetContentSetting ( url , GURL ( ) , CONTENT_SETTINGS_TYPE_POPUPS , std : : string ( ) ) ) ;\n {\n ContentSettingFramebustBlockBubbleModel framebust_block_bubble_model ( browser ( ) -> content_setting_bubble_model_delegate ( ) , GetWebContents ( ) , browser ( ) -> profile ( ) ) ;\n framebust_block_bubble_model . OnRadioClicked ( kAllowRadioButtonIndex ) ;\n }\n EXPECT_EQ ( CONTENT_SETTING_ALLOW , settings_map -> GetContentSetting ( url , GURL ( ) , CONTENT_SETTINGS_TYPE_POPUPS , std : : string ( ) ) ) ;\n }"}
{"idx": 1034, "target": 0, "func": "static void copy_frame ( YV12_BUFFER_CONFIG dest , const YV12_BUFFER_CONFIG src ) {\n int r ;\n const uint8_t * srcbuf = src . y_buffer ;\n uint8_t * destbuf = dest . y_buffer ;\n assert ( dest . y_width == src . y_width ) ;\n assert ( dest . y_height == src . y_height ) ;\n for ( r = 0 ;\n r < dest . y_height ;\n ++ r ) {\n vpx_memcpy ( destbuf , srcbuf , dest . y_width ) ;\n destbuf += dest . y_stride ;\n srcbuf += src . y_stride ;\n }\n }"}
{"idx": 1035, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( SessionRestorePageLoadMetricsBrowserTest , NoSessionRestore ) {\n ui_test_utils : : NavigateToURL ( browser ( ) , GetTestURL ( ) ) ;\n ExpectFirstPaintMetricsTotalCount ( 0 ) ;\n }"}
{"idx": 1036, "target": 0, "func": "static Asn1Generic * DecodeAsn1DerInteger ( const unsigned char * buffer , uint32_t size , uint8_t depth , uint32_t * errcode ) {\n const unsigned char * d_ptr = buffer ;\n uint8_t numbytes ;\n uint32_t value ;\n uint32_t i ;\n Asn1Generic * a ;\n numbytes = d_ptr [ 1 ] ;\n if ( numbytes > size ) {\n if ( errcode ) * errcode = ERR_DER_ELEMENT_SIZE_TOO_BIG ;\n return NULL ;\n }\n d_ptr += 2 ;\n value = 0 ;\n if ( numbytes > 4 ) {\n value = 0xffffffff ;\n }\n else {\n for ( i = 0 ;\n i < numbytes ;\n i ++ ) {\n value = value << 8 | d_ptr [ i ] ;\n }\n }\n a = Asn1GenericNew ( ) ;\n if ( a == NULL ) return NULL ;\n a -> type = ASN1_INTEGER ;\n a -> length = ( d_ptr - buffer ) + numbytes ;\n a -> value = value ;\n a -> str = SCMalloc ( 2 * numbytes + 1 ) ;\n if ( a -> str == NULL ) {\n SCFree ( a ) ;\n return NULL ;\n }\n for ( i = 0 ;\n i < numbytes ;\n i ++ ) {\n snprintf ( a -> str + 2 * i , 2 * ( numbytes - i ) + 1 , \"%02X\" , d_ptr [ i ] ) ;\n }\n a -> str [ 2 * numbytes ] = '\\0' ;\n return a ;\n }"}
{"idx": 1037, "target": 0, "func": "static int dissect_h245_Mi_type ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_Mi_type , Mi_type_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 1038, "target": 0, "func": "void min_heap_elem_init ( struct event * e ) {\n e -> min_heap_idx = - 1 ;\n }"}
{"idx": 1039, "target": 1, "func": "static int dissect_h225_FacilityReason ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 581 \"./asn1/h225/h225.cnf\" gint32 value ;\n h225_packet_info * h225_pi ;\n h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_FacilityReason , FacilityReason_choice , & value ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> reason = value ;\n }\n return offset ;\n }"}
{"idx": 1040, "target": 0, "func": "static void timeout_cb_swp ( int fd , short event , void * arg ) {\n if ( called == - 1 ) {\n struct timeval tv = {\n 5 , 0 }\n ;\n called = 0 ;\n evtimer_add ( ( struct event * ) arg , & tv ) ;\n raise ( SIGUSR1 ) ;\n return ;\n }\n test_ok = 0 ;\n event_loopexit ( NULL ) ;\n }"}
{"idx": 1041, "target": 0, "func": "static const u_char * print_sl_change ( netdissect_options * ndo , const char * str , register const u_char * cp ) {\n register u_int i ;\n if ( ( i = * cp ++ ) == 0 ) {\n i = EXTRACT_16BITS ( cp ) ;\n cp += 2 ;\n }\n ND_PRINT ( ( ndo , \" %s%d\" , str , i ) ) ;\n return ( cp ) ;\n }"}
{"idx": 1042, "target": 0, "func": "static void dtap_cc_modify ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_TRUE ;\n ELEM_MAND_LV ( GSM_A_PDU_TYPE_DTAP , DE_BEARER_CAP , NULL ) ;\n ELEM_OPT_TLV ( 0x7c , GSM_A_PDU_TYPE_DTAP , DE_LLC , NULL ) ;\n ELEM_OPT_TLV ( 0x7d , GSM_A_PDU_TYPE_DTAP , DE_HLC , NULL ) ;\n ELEM_OPT_T ( 0xa3 , GSM_A_PDU_TYPE_DTAP , DE_REV_CALL_SETUP_DIR , NULL ) ;\n ELEM_OPT_T ( 0xa4 , GSM_A_PDU_TYPE_DTAP , DE_NET_INIT_SERV_UPG , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 1043, "target": 0, "func": "void append_table_headings ( DYNAMIC_STRING * ds , MYSQL_FIELD * field , uint num_fields ) {\n uint col_idx ;\n if ( disable_column_names ) return ;\n for ( col_idx = 0 ;\n col_idx < num_fields ;\n col_idx ++ ) {\n if ( col_idx ) dynstr_append_mem ( ds , \"\\t\" , 1 ) ;\n replace_dynstr_append ( ds , field [ col_idx ] . name ) ;\n }\n dynstr_append_mem ( ds , \"\\n\" , 1 ) ;\n }"}
{"idx": 1044, "target": 0, "func": "static int dissect_h225_BIT_STRING ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_bit_string ( tvb , offset , actx , tree , hf_index , NO_BOUND , NO_BOUND , FALSE , NULL , NULL ) ;\n return offset ;\n }"}
{"idx": 1045, "target": 0, "func": "static gcry_error_t sexp_sscan ( gcry_sexp_t * retsexp , size_t * erroff , const char * buffer , size_t length , int argflag , void * * arg_list , ... ) {\n gcry_error_t rc ;\n va_list arg_ptr ;\n va_start ( arg_ptr , arg_list ) ;\n rc = vsexp_sscan ( retsexp , erroff , buffer , length , argflag , arg_list , arg_ptr ) ;\n va_end ( arg_ptr ) ;\n return rc ;\n }"}
{"idx": 1046, "target": 0, "func": "static char * new_command_generator ( const char * text , int state ) {\n static int textlen ;\n char * ptr ;\n static Bucket * b ;\n static entry * e ;\n static uint i ;\n if ( ! state ) textlen = ( uint ) strlen ( text ) ;\n if ( textlen > 0 ) {\n if ( ! state ) {\n uint len ;\n b = find_all_matches ( & ht , text , ( uint ) strlen ( text ) , & len ) ;\n if ( ! b ) return NullS ;\n e = b -> pData ;\n }\n if ( e ) {\n ptr = strdup ( e -> str ) ;\n e = e -> pNext ;\n return ptr ;\n }\n }\n else {\n if ( ! state ) {\n for ( i = 0 ;\n i < ht . nTableSize ;\n i ++ ) {\n if ( ht . arBuckets [ i ] ) {\n b = ht . arBuckets [ i ] ;\n e = b -> pData ;\n break ;\n }\n }\n }\n ptr = NullS ;\n while ( e && ! ptr ) {\n if ( ( uint ) strlen ( e -> str ) == b -> nKeyLength ) ptr = strdup ( e -> str ) ;\n e = e -> pNext ;\n if ( ! e ) {\n b = b -> pNext ;\n if ( ! b ) {\n for ( i ++ ;\n i < ht . nTableSize ;\n i ++ ) {\n if ( ht . arBuckets [ i ] ) {\n b = ht . arBuckets [ i ] ;\n e = b -> pData ;\n break ;\n }\n }\n }\n else e = b -> pData ;\n }\n }\n if ( ptr ) return ptr ;\n }\n return NullS ;\n }"}
{"idx": 1047, "target": 0, "func": "static void mpa_packetlist ( packet_info * pinfo , gint message_type ) {\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"MPA\" ) ;\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"%d > %d %s\" , pinfo -> srcport , pinfo -> destport , val_to_str ( message_type , mpa_messages , \"Unknown %d\" ) ) ;\n }"}
{"idx": 1048, "target": 1, "func": "static int spl_filesystem_file_read ( spl_filesystem_object * intern , int silent TSRMLS_DC ) {\n char * buf ;\n size_t line_len = 0 ;\n long line_add = ( intern -> u . file . current_line || intern -> u . file . current_zval ) ? 1 : 0 ;\n spl_filesystem_file_free_line ( intern TSRMLS_CC ) ;\n if ( php_stream_eof ( intern -> u . file . stream ) ) {\n if ( ! silent ) {\n zend_throw_exception_ex ( spl_ce_RuntimeException , 0 TSRMLS_CC , \"Cannot read from file %s\" , intern -> file_name ) ;\n }\n return FAILURE ;\n }\n if ( intern -> u . file . max_line_len > 0 ) {\n buf = safe_emalloc ( ( intern -> u . file . max_line_len + 1 ) , sizeof ( char ) , 0 ) ;\n if ( php_stream_get_line ( intern -> u . file . stream , buf , intern -> u . file . max_line_len + 1 , & line_len ) == NULL ) {\n efree ( buf ) ;\n buf = NULL ;\n }\n else {\n buf [ line_len ] = '\\0' ;\n }\n }\n else {\n buf = php_stream_get_line ( intern -> u . file . stream , NULL , 0 , & line_len ) ;\n }\n if ( ! buf ) {\n intern -> u . file . current_line = estrdup ( \"\" ) ;\n intern -> u . file . current_line_len = 0 ;\n }\n else {\n if ( SPL_HAS_FLAG ( intern -> flags , SPL_FILE_OBJECT_DROP_NEW_LINE ) ) {\n line_len = strcspn ( buf , \"\\r\\n\" ) ;\n buf [ line_len ] = '\\0' ;\n }\n intern -> u . file . current_line = buf ;\n intern -> u . file . current_line_len = line_len ;\n }\n intern -> u . file . current_line_num += line_add ;\n return SUCCESS ;\n }"}
{"idx": 1049, "target": 0, "func": "u_int ppp_if_print ( netdissect_options * ndo , const struct pcap_pkthdr * h , register const u_char * p ) {\n register u_int length = h -> len ;\n register u_int caplen = h -> caplen ;\n if ( caplen < PPP_HDRLEN ) {\n ND_PRINT ( ( ndo , \"[|ppp]\" ) ) ;\n return ( caplen ) ;\n }\n # if 0 if ( ndo -> ndo_eflag ) ND_PRINT ( ( ndo , \"%c %4d %02x \" , p [ 0 ] ? 'O' : 'I' , length , p [ 1 ] ) ) ;\n # endif ppp_print ( ndo , p , length ) ;\n return ( 0 ) ;\n }"}
{"idx": 1050, "target": 0, "func": "static int archive_read_format_ar_read_header ( struct archive_read * a , struct archive_entry * entry ) {\n struct ar * ar = ( struct ar * ) ( a -> format -> data ) ;\n size_t unconsumed ;\n const void * header_data ;\n int ret ;\n if ( ! ar -> read_global_header ) {\n __archive_read_consume ( a , 8 ) ;\n ar -> read_global_header = 1 ;\n a -> archive . archive_format = ARCHIVE_FORMAT_AR ;\n }\n if ( ( header_data = __archive_read_ahead ( a , 60 , NULL ) ) == NULL ) return ( ARCHIVE_EOF ) ;\n unconsumed = 60 ;\n ret = _ar_read_header ( a , entry , ar , ( const char * ) header_data , & unconsumed ) ;\n if ( unconsumed ) __archive_read_consume ( a , unconsumed ) ;\n return ret ;\n }"}
{"idx": 1051, "target": 0, "func": "static int dumpcffdict ( SplineFont * sf , struct alltabs * at ) {\n FILE * fdarray = at -> fdarray ;\n int pstart ;\n dumpsid ( fdarray , at , sf -> fontname , ( 12 << 8 ) | 38 ) ;\n if ( sf -> ascent + sf -> descent != 1000 ) {\n dumpdbl ( fdarray , 1.0 / ( sf -> ascent + sf -> descent ) ) ;\n dumpint ( fdarray , 0 ) ;\n dumpint ( fdarray , 0 ) ;\n dumpdbl ( fdarray , 1.0 / ( sf -> ascent + sf -> descent ) ) ;\n dumpint ( fdarray , 0 ) ;\n dumpintoper ( fdarray , 0 , ( 12 << 8 ) | 7 ) ;\n }\n pstart = ftell ( fdarray ) ;\n dumpsizedint ( fdarray , false , 0 , - 1 ) ;\n dumpsizedint ( fdarray , true , 0 , 18 ) ;\n return ( pstart ) ;\n }"}
{"idx": 1052, "target": 0, "func": "static int dissect_h245_GeneralString ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_GeneralString ( tvb , offset , actx , tree , hf_index ) ;\n return offset ;\n }"}
{"idx": 1053, "target": 0, "func": "static void proto_tree_set_uint64 ( field_info * fi , guint64 value ) {\n header_field_info * hfinfo ;\n guint64 integer ;\n hfinfo = fi -> hfinfo ;\n integer = value ;\n if ( hfinfo -> bitmask ) {\n integer &= hfinfo -> bitmask ;\n integer >>= hfinfo_bitshift ( hfinfo ) ;\n }\n fvalue_set_uinteger64 ( & fi -> value , integer ) ;\n }"}
{"idx": 1054, "target": 0, "func": "static void check_databases_are_compatible ( void ) {\n int newdbnum ;\n int olddbnum ;\n DbInfo * newdbinfo ;\n DbInfo * olddbinfo ;\n for ( newdbnum = 0 ;\n newdbnum < new_cluster . dbarr . ndbs ;\n newdbnum ++ ) {\n newdbinfo = & new_cluster . dbarr . dbs [ newdbnum ] ;\n for ( olddbnum = 0 ;\n olddbnum < old_cluster . dbarr . ndbs ;\n olddbnum ++ ) {\n olddbinfo = & old_cluster . dbarr . dbs [ olddbnum ] ;\n if ( strcmp ( newdbinfo -> db_name , olddbinfo -> db_name ) == 0 ) {\n check_locale_and_encoding ( olddbinfo , newdbinfo ) ;\n break ;\n }\n }\n }\n }"}
{"idx": 1055, "target": 0, "func": "void evhttp_set_gencb ( struct evhttp * http , void ( * cb ) ( struct evhttp_request * , void * ) , void * cbarg ) {\n http -> gencb = cb ;\n http -> gencbarg = cbarg ;\n }"}
{"idx": 1056, "target": 1, "func": "int jas_image_writecmpt ( jas_image_t * image , int cmptno , jas_image_coord_t x , jas_image_coord_t y , jas_image_coord_t width , jas_image_coord_t height , jas_matrix_t * data ) {\n jas_image_cmpt_t * cmpt ;\n jas_image_coord_t i ;\n jas_image_coord_t j ;\n jas_seqent_t * d ;\n jas_seqent_t * dr ;\n int drs ;\n jas_seqent_t v ;\n int k ;\n int c ;\n if ( cmptno < 0 || cmptno >= image -> numcmpts_ ) {\n return - 1 ;\n }\n cmpt = image -> cmpts_ [ cmptno ] ;\n if ( x >= cmpt -> width_ || y >= cmpt -> height_ || x + width > cmpt -> width_ || y + height > cmpt -> height_ ) {\n return - 1 ;\n }\n if ( jas_matrix_numrows ( data ) != height || jas_matrix_numcols ( data ) != width ) {\n return - 1 ;\n }\n dr = jas_matrix_getref ( data , 0 , 0 ) ;\n drs = jas_matrix_rowstep ( data ) ;\n for ( i = 0 ;\n i < height ;\n ++ i , dr += drs ) {\n d = dr ;\n if ( jas_stream_seek ( cmpt -> stream_ , ( cmpt -> width_ * ( y + i ) + x ) * cmpt -> cps_ , SEEK_SET ) < 0 ) {\n return - 1 ;\n }\n for ( j = width ;\n j > 0 ;\n -- j , ++ d ) {\n v = inttobits ( * d , cmpt -> prec_ , cmpt -> sgnd_ ) ;\n for ( k = cmpt -> cps_ ;\n k > 0 ;\n -- k ) {\n c = ( v >> ( 8 * ( cmpt -> cps_ - 1 ) ) ) & 0xff ;\n if ( jas_stream_putc ( cmpt -> stream_ , ( unsigned char ) c ) == EOF ) {\n return - 1 ;\n }\n v <<= 8 ;\n }\n }\n }\n return 0 ;\n }"}
{"idx": 1057, "target": 0, "func": "static void proto_tree_set_int64 ( field_info * fi , gint64 value ) {\n header_field_info * hfinfo ;\n guint64 integer ;\n gint no_of_bits ;\n hfinfo = fi -> hfinfo ;\n integer = value ;\n if ( hfinfo -> bitmask ) {\n integer &= hfinfo -> bitmask ;\n integer >>= hfinfo_bitshift ( hfinfo ) ;\n no_of_bits = ws_count_ones ( hfinfo -> bitmask ) ;\n integer = ws_sign_ext64 ( integer , no_of_bits ) ;\n }\n fvalue_set_sinteger64 ( & fi -> value , integer ) ;\n }"}
{"idx": 1058, "target": 1, "func": "static const char * _ISCIIgetName ( const UConverter * cnv ) {\n if ( cnv -> extraInfo ) {\n UConverterDataISCII * myData = ( UConverterDataISCII * ) cnv -> extraInfo ;\n return myData -> name ;\n }\n return NULL ;\n }"}
{"idx": 1059, "target": 0, "func": "static uint32_t e1000e_get_tarc ( E1000ECore * core , int index ) {\n return core -> mac [ index ] & ( ( BIT ( 11 ) - 1 ) | BIT ( 27 ) | BIT ( 28 ) | BIT ( 29 ) | BIT ( 30 ) ) ;\n }"}
{"idx": 1060, "target": 0, "func": "void ff_h263_pred_acdc ( MpegEncContext * s , int16_t * block , int n ) {\n int x , y , wrap , a , c , pred_dc , scale , i ;\n int16_t * dc_val , * ac_val , * ac_val1 ;\n if ( n < 4 ) {\n x = 2 * s -> mb_x + ( n & 1 ) ;\n y = 2 * s -> mb_y + ( n >> 1 ) ;\n wrap = s -> b8_stride ;\n dc_val = s -> dc_val [ 0 ] ;\n ac_val = s -> ac_val [ 0 ] [ 0 ] ;\n scale = s -> y_dc_scale ;\n }\n else {\n x = s -> mb_x ;\n y = s -> mb_y ;\n wrap = s -> mb_stride ;\n dc_val = s -> dc_val [ n - 4 + 1 ] ;\n ac_val = s -> ac_val [ n - 4 + 1 ] [ 0 ] ;\n scale = s -> c_dc_scale ;\n }\n ac_val += ( ( y ) * wrap + ( x ) ) * 16 ;\n ac_val1 = ac_val ;\n a = dc_val [ ( x - 1 ) + ( y ) * wrap ] ;\n c = dc_val [ ( x ) + ( y - 1 ) * wrap ] ;\n if ( s -> first_slice_line && n != 3 ) {\n if ( n != 2 ) c = 1024 ;\n if ( n != 1 && s -> mb_x == s -> resync_mb_x ) a = 1024 ;\n }\n if ( s -> ac_pred ) {\n pred_dc = 1024 ;\n if ( s -> h263_aic_dir ) {\n if ( a != 1024 ) {\n ac_val -= 16 ;\n for ( i = 1 ;\n i < 8 ;\n i ++ ) {\n block [ s -> dsp . idct_permutation [ i << 3 ] ] += ac_val [ i ] ;\n }\n pred_dc = a ;\n }\n }\n else {\n if ( c != 1024 ) {\n ac_val -= 16 * wrap ;\n for ( i = 1 ;\n i < 8 ;\n i ++ ) {\n block [ s -> dsp . idct_permutation [ i ] ] += ac_val [ i + 8 ] ;\n }\n pred_dc = c ;\n }\n }\n }\n else {\n if ( a != 1024 && c != 1024 ) pred_dc = ( a + c ) >> 1 ;\n else if ( a != 1024 ) pred_dc = a ;\n else pred_dc = c ;\n }\n block [ 0 ] = block [ 0 ] * scale + pred_dc ;\n if ( block [ 0 ] < 0 ) block [ 0 ] = 0 ;\n else block [ 0 ] |= 1 ;\n dc_val [ ( x ) + ( y ) * wrap ] = block [ 0 ] ;\n for ( i = 1 ;\n i < 8 ;\n i ++ ) ac_val1 [ i ] = block [ s -> dsp . idct_permutation [ i << 3 ] ] ;\n for ( i = 1 ;\n i < 8 ;\n i ++ ) ac_val1 [ 8 + i ] = block [ s -> dsp . idct_permutation [ i ] ] ;\n }"}
{"idx": 1061, "target": 1, "func": "static void create_new_objects ( void ) {\n int dbnum ;\n prep_status ( \"Restoring database schemas in the new cluster\\n\" ) ;\n for ( dbnum = 0 ;\n dbnum < old_cluster . dbarr . ndbs ;\n dbnum ++ ) {\n char sql_file_name [ MAXPGPATH ] , log_file_name [ MAXPGPATH ] ;\n DbInfo * old_db = & old_cluster . dbarr . dbs [ dbnum ] ;\n pg_log ( PG_STATUS , \"%s\" , old_db -> db_name ) ;\n snprintf ( sql_file_name , sizeof ( sql_file_name ) , DB_DUMP_FILE_MASK , old_db -> db_oid ) ;\n snprintf ( log_file_name , sizeof ( log_file_name ) , DB_DUMP_LOG_FILE_MASK , old_db -> db_oid ) ;\n parallel_exec_prog ( log_file_name , NULL , \"\\\"%s/pg_restore\\\" %s --exit-on-error --verbose --dbname \\\"%s\\\" \\\"%s\\\"\" , new_cluster . bindir , cluster_conn_opts ( & new_cluster ) , old_db -> db_name , sql_file_name ) ;\n }\n while ( reap_child ( true ) == true ) ;\n end_progress_output ( ) ;\n check_ok ( ) ;\n if ( GET_MAJOR_VERSION ( old_cluster . major_version ) < 903 ) set_frozenxids ( true ) ;\n get_db_and_rel_infos ( & new_cluster ) ;\n }"}
{"idx": 1062, "target": 0, "func": "static int dissect_h245_AL1CrcLength ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_AL1CrcLength , AL1CrcLength_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 1063, "target": 1, "func": "static int sbr_hf_calc_npatches ( AACContext * ac , SpectralBandReplication * sbr ) {\n int i , k , last_k = - 1 , last_msb = - 1 , sb = 0 ;\n int msb = sbr -> k [ 0 ] ;\n int usb = sbr -> kx [ 1 ] ;\n int goal_sb = ( ( 1000 << 11 ) + ( sbr -> sample_rate >> 1 ) ) / sbr -> sample_rate ;\n sbr -> num_patches = 0 ;\n if ( goal_sb < sbr -> kx [ 1 ] + sbr -> m [ 1 ] ) {\n for ( k = 0 ;\n sbr -> f_master [ k ] < goal_sb ;\n k ++ ) ;\n }\n else k = sbr -> n_master ;\n do {\n int odd = 0 ;\n if ( k == last_k && msb == last_msb ) {\n av_log ( ac -> avctx , AV_LOG_ERROR , \"patch construction failed\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n last_k = k ;\n last_msb = msb ;\n for ( i = k ;\n i == k || sb > ( sbr -> k [ 0 ] - 1 + msb - odd ) ;\n i -- ) {\n sb = sbr -> f_master [ i ] ;\n odd = ( sb + sbr -> k [ 0 ] ) & 1 ;\n }\n if ( sbr -> num_patches > 5 ) {\n av_log ( ac -> avctx , AV_LOG_ERROR , \"Too many patches: %d\\n\" , sbr -> num_patches ) ;\n return - 1 ;\n }\n sbr -> patch_num_subbands [ sbr -> num_patches ] = FFMAX ( sb - usb , 0 ) ;\n sbr -> patch_start_subband [ sbr -> num_patches ] = sbr -> k [ 0 ] - odd - sbr -> patch_num_subbands [ sbr -> num_patches ] ;\n if ( sbr -> patch_num_subbands [ sbr -> num_patches ] > 0 ) {\n usb = sb ;\n msb = sb ;\n sbr -> num_patches ++ ;\n }\n else msb = sbr -> kx [ 1 ] ;\n if ( sbr -> f_master [ k ] - sb < 3 ) k = sbr -> n_master ;\n }\n while ( sb != sbr -> kx [ 1 ] + sbr -> m [ 1 ] ) ;\n if ( sbr -> num_patches > 1 && sbr -> patch_num_subbands [ sbr -> num_patches - 1 ] < 3 ) sbr -> num_patches -- ;\n return 0 ;\n }"}
{"idx": 1064, "target": 0, "func": "void virLogOutputListFree ( virLogOutputPtr * list , int count ) {\n size_t i ;\n if ( ! list || count < 0 ) return ;\n for ( i = 0 ;\n i < count ;\n i ++ ) virLogOutputFree ( list [ i ] ) ;\n VIR_FREE ( list ) ;\n }"}
{"idx": 1065, "target": 0, "func": "static int extract_data ( struct archive * ar , struct archive * aw ) {\n int r ;\n size_t size ;\n const void * block ;\n int64_t offset ;\n for ( ;\n ;\n ) {\n r = archive_read_data_block ( ar , & block , & size , & offset ) ;\n if ( r == ARCHIVE_EOF ) return ( ARCHIVE_OK ) ;\n if ( r != ARCHIVE_OK ) {\n lafe_warnc ( archive_errno ( ar ) , \"%s\" , archive_error_string ( ar ) ) ;\n exit ( 1 ) ;\n }\n r = ( int ) archive_write_data_block ( aw , block , size , offset ) ;\n if ( r != ARCHIVE_OK ) {\n lafe_warnc ( archive_errno ( aw ) , \"%s\" , archive_error_string ( aw ) ) ;\n return ( r ) ;\n }\n }\n }"}
{"idx": 1066, "target": 0, "func": "static struct nameserver * nameserver_pick ( void ) {\n struct nameserver * started_at = server_head , * picked ;\n if ( ! server_head ) return NULL ;\n if ( ! global_good_nameservers ) {\n server_head = server_head -> next ;\n return server_head ;\n }\n for ( ;\n ;\n ) {\n if ( server_head -> state ) {\n picked = server_head ;\n server_head = server_head -> next ;\n return picked ;\n }\n server_head = server_head -> next ;\n if ( server_head == started_at ) {\n assert ( global_good_nameservers == 0 ) ;\n picked = server_head ;\n server_head = server_head -> next ;\n return picked ;\n }\n }\n }"}
{"idx": 1067, "target": 0, "func": "stroke_socket_t * stroke_socket_create ( ) {\n private_stroke_socket_t * this ;\n int max_concurrent ;\n char * uri ;\n INIT ( this , . public = {\n . destroy = _destroy , }\n , . prevent_loglevel_changes = lib -> settings -> get_bool ( lib -> settings , \"%s.plugins.stroke.prevent_loglevel_changes\" , FALSE , lib -> ns ) , ) ;\n this -> ca = stroke_ca_create ( ) ;\n this -> cred = stroke_cred_create ( this -> ca ) ;\n this -> attribute = stroke_attribute_create ( ) ;\n this -> handler = stroke_handler_create ( ) ;\n this -> config = stroke_config_create ( this -> ca , this -> cred , this -> attribute ) ;\n this -> control = stroke_control_create ( ) ;\n this -> list = stroke_list_create ( this -> attribute ) ;\n this -> counter = stroke_counter_create ( ) ;\n lib -> credmgr -> add_set ( lib -> credmgr , & this -> ca -> set ) ;\n lib -> credmgr -> add_set ( lib -> credmgr , & this -> cred -> set ) ;\n charon -> backends -> add_backend ( charon -> backends , & this -> config -> backend ) ;\n charon -> attributes -> add_provider ( charon -> attributes , & this -> attribute -> provider ) ;\n charon -> attributes -> add_handler ( charon -> attributes , & this -> handler -> handler ) ;\n max_concurrent = lib -> settings -> get_int ( lib -> settings , \"%s.plugins.stroke.max_concurrent\" , MAX_CONCURRENT_DEFAULT , lib -> ns ) ;\n uri = lib -> settings -> get_str ( lib -> settings , \"%s.plugins.stroke.socket\" , \"unix://\" STROKE_SOCKET , lib -> ns ) ;\n this -> service = lib -> streams -> create_service ( lib -> streams , uri , 10 ) ;\n if ( ! this -> service ) {\n DBG1 ( DBG_CFG , \"creating stroke socket failed\" ) ;\n destroy ( this ) ;\n return NULL ;\n }\n this -> service -> on_accept ( this -> service , ( stream_service_cb_t ) on_accept , this , JOB_PRIO_CRITICAL , max_concurrent ) ;\n return & this -> public ;\n }"}
{"idx": 1068, "target": 0, "func": "static void find_enclosing_mount_callback ( GObject * source_object , GAsyncResult * res , gpointer user_data ) {\n GMount * mount ;\n MountState * state ;\n GFile * location , * root ;\n state = user_data ;\n if ( state -> directory == NULL ) {\n mount_state_free ( state ) ;\n return ;\n }\n mount = g_file_find_enclosing_mount_finish ( G_FILE ( source_object ) , res , NULL ) ;\n if ( mount ) {\n root = g_mount_get_root ( mount ) ;\n location = nautilus_file_get_location ( state -> file ) ;\n if ( ! g_file_equal ( location , root ) ) {\n g_object_unref ( mount ) ;\n mount = NULL ;\n }\n g_object_unref ( root ) ;\n g_object_unref ( location ) ;\n }\n got_mount ( state , mount ) ;\n if ( mount ) {\n g_object_unref ( mount ) ;\n }\n }"}
{"idx": 1069, "target": 0, "func": "static inline int mpeg4_decode_dc ( MpegEncContext * s , int n , int * dir_ptr ) {\n int level , code ;\n if ( n < 4 ) code = get_vlc2 ( & s -> gb , dc_lum . table , DC_VLC_BITS , 1 ) ;\n else code = get_vlc2 ( & s -> gb , dc_chrom . table , DC_VLC_BITS , 1 ) ;\n if ( code < 0 || code > 9 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"illegal dc vlc\\n\" ) ;\n return - 1 ;\n }\n if ( code == 0 ) {\n level = 0 ;\n }\n else {\n if ( IS_3IV1 ) {\n if ( code == 1 ) level = 2 * get_bits1 ( & s -> gb ) - 1 ;\n else {\n if ( get_bits1 ( & s -> gb ) ) level = get_bits ( & s -> gb , code - 1 ) + ( 1 << ( code - 1 ) ) ;\n else level = - get_bits ( & s -> gb , code - 1 ) - ( 1 << ( code - 1 ) ) ;\n }\n }\n else {\n level = get_xbits ( & s -> gb , code ) ;\n }\n if ( code > 8 ) {\n if ( get_bits1 ( & s -> gb ) == 0 ) {\n if ( s -> err_recognition & AV_EF_BITSTREAM ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"dc marker bit missing\\n\" ) ;\n return - 1 ;\n }\n }\n }\n }\n return ff_mpeg4_pred_dc ( s , n , level , dir_ptr , 0 ) ;\n }"}
{"idx": 1070, "target": 0, "func": "static void dnslabel_table_init ( struct dnslabel_table * table ) {\n table -> n_labels = 0 ;\n }"}
{"idx": 1071, "target": 1, "func": "PHP_MINIT_FUNCTION ( spl_directory ) {\n REGISTER_SPL_STD_CLASS_EX ( SplFileInfo , spl_filesystem_object_new , spl_SplFileInfo_functions ) ;\n memcpy ( & spl_filesystem_object_handlers , zend_get_std_object_handlers ( ) , sizeof ( zend_object_handlers ) ) ;\n spl_filesystem_object_handlers . clone_obj = spl_filesystem_object_clone ;\n spl_filesystem_object_handlers . cast_object = spl_filesystem_object_cast ;\n spl_filesystem_object_handlers . get_debug_info = spl_filesystem_object_get_debug_info ;\n spl_ce_SplFileInfo -> serialize = zend_class_serialize_deny ;\n spl_ce_SplFileInfo -> unserialize = zend_class_unserialize_deny ;\n REGISTER_SPL_SUB_CLASS_EX ( DirectoryIterator , SplFileInfo , spl_filesystem_object_new , spl_DirectoryIterator_functions ) ;\n zend_class_implements ( spl_ce_DirectoryIterator TSRMLS_CC , 1 , zend_ce_iterator ) ;\n REGISTER_SPL_IMPLEMENTS ( DirectoryIterator , SeekableIterator ) ;\n spl_ce_DirectoryIterator -> get_iterator = spl_filesystem_dir_get_iterator ;\n REGISTER_SPL_SUB_CLASS_EX ( FilesystemIterator , DirectoryIterator , spl_filesystem_object_new , spl_FilesystemIterator_functions ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( FilesystemIterator , \"CURRENT_MODE_MASK\" , SPL_FILE_DIR_CURRENT_MODE_MASK ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( FilesystemIterator , \"CURRENT_AS_PATHNAME\" , SPL_FILE_DIR_CURRENT_AS_PATHNAME ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( FilesystemIterator , \"CURRENT_AS_FILEINFO\" , SPL_FILE_DIR_CURRENT_AS_FILEINFO ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( FilesystemIterator , \"CURRENT_AS_SELF\" , SPL_FILE_DIR_CURRENT_AS_SELF ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( FilesystemIterator , \"KEY_MODE_MASK\" , SPL_FILE_DIR_KEY_MODE_MASK ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( FilesystemIterator , \"KEY_AS_PATHNAME\" , SPL_FILE_DIR_KEY_AS_PATHNAME ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( FilesystemIterator , \"FOLLOW_SYMLINKS\" , SPL_FILE_DIR_FOLLOW_SYMLINKS ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( FilesystemIterator , \"KEY_AS_FILENAME\" , SPL_FILE_DIR_KEY_AS_FILENAME ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( FilesystemIterator , \"NEW_CURRENT_AND_KEY\" , SPL_FILE_DIR_KEY_AS_FILENAME | SPL_FILE_DIR_CURRENT_AS_FILEINFO ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( FilesystemIterator , \"OTHER_MODE_MASK\" , SPL_FILE_DIR_OTHERS_MASK ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( FilesystemIterator , \"SKIP_DOTS\" , SPL_FILE_DIR_SKIPDOTS ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( FilesystemIterator , \"UNIX_PATHS\" , SPL_FILE_DIR_UNIXPATHS ) ;\n spl_ce_FilesystemIterator -> get_iterator = spl_filesystem_tree_get_iterator ;\n REGISTER_SPL_SUB_CLASS_EX ( RecursiveDirectoryIterator , FilesystemIterator , spl_filesystem_object_new , spl_RecursiveDirectoryIterator_functions ) ;\n REGISTER_SPL_IMPLEMENTS ( RecursiveDirectoryIterator , RecursiveIterator ) ;\n memcpy ( & spl_filesystem_object_check_handlers , & spl_filesystem_object_handlers , sizeof ( zend_object_handlers ) ) ;\n spl_filesystem_object_check_handlers . get_method = spl_filesystem_object_get_method_check ;\n # ifdef HAVE_GLOB REGISTER_SPL_SUB_CLASS_EX ( GlobIterator , FilesystemIterator , spl_filesystem_object_new_check , spl_GlobIterator_functions ) ;\n REGISTER_SPL_IMPLEMENTS ( GlobIterator , Countable ) ;\n # endif REGISTER_SPL_SUB_CLASS_EX ( SplFileObject , SplFileInfo , spl_filesystem_object_new_check , spl_SplFileObject_functions ) ;\n REGISTER_SPL_IMPLEMENTS ( SplFileObject , RecursiveIterator ) ;\n REGISTER_SPL_IMPLEMENTS ( SplFileObject , SeekableIterator ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( SplFileObject , \"DROP_NEW_LINE\" , SPL_FILE_OBJECT_DROP_NEW_LINE ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( SplFileObject , \"READ_AHEAD\" , SPL_FILE_OBJECT_READ_AHEAD ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( SplFileObject , \"SKIP_EMPTY\" , SPL_FILE_OBJECT_SKIP_EMPTY ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( SplFileObject , \"READ_CSV\" , SPL_FILE_OBJECT_READ_CSV ) ;\n REGISTER_SPL_SUB_CLASS_EX ( SplTempFileObject , SplFileObject , spl_filesystem_object_new_check , spl_SplTempFileObject_functions ) ;\n return SUCCESS ;\n }"}
{"idx": 1072, "target": 0, "func": "static float vorbisfloat2float ( unsigned val ) {\n double mant = val & 0x1fffff ;\n long exp = ( val & 0x7fe00000L ) >> 21 ;\n if ( val & 0x80000000 ) mant = - mant ;\n return ldexp ( mant , exp - 20 - 768 ) ;\n }"}
{"idx": 1073, "target": 0, "func": "void rds_inc_info_copy ( struct rds_incoming * inc , struct rds_info_iterator * iter , __be32 saddr , __be32 daddr , int flip ) {\n struct rds_info_message minfo ;\n minfo . seq = be64_to_cpu ( inc -> i_hdr . h_sequence ) ;\n minfo . len = be32_to_cpu ( inc -> i_hdr . h_len ) ;\n if ( flip ) {\n minfo . laddr = daddr ;\n minfo . faddr = saddr ;\n minfo . lport = inc -> i_hdr . h_dport ;\n minfo . fport = inc -> i_hdr . h_sport ;\n }\n else {\n minfo . laddr = saddr ;\n minfo . faddr = daddr ;\n minfo . lport = inc -> i_hdr . h_sport ;\n minfo . fport = inc -> i_hdr . h_dport ;\n }\n minfo . flags = 0 ;\n rds_info_copy ( iter , & minfo , sizeof ( minfo ) ) ;\n }"}
{"idx": 1074, "target": 0, "func": "static int SpoolssEnumForms_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ;\n guint32 level ;\n proto_item * hidden_item ;\n hidden_item = proto_tree_add_uint ( tree , hf_form , tvb , offset , 0 , 1 ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , NULL , NULL , FALSE , FALSE ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_level , & level ) ;\n if ( ! pinfo -> fd -> flags . visited ) {\n dcv -> se_data = GINT_TO_POINTER ( ( int ) level ) ;\n }\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", level %d\" , level ) ;\n offset = dissect_spoolss_buffer ( tvb , offset , pinfo , tree , di , drep , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_offered , NULL ) ;\n return offset ;\n }"}
{"idx": 1075, "target": 0, "func": "static int ipv4_local_port_range ( ctl_table * table , int write , void __user * buffer , size_t * lenp , loff_t * ppos ) {\n int ret ;\n int range [ 2 ] ;\n ctl_table tmp = {\n . data = & range , . maxlen = sizeof ( range ) , . mode = table -> mode , . extra1 = & ip_local_port_range_min , . extra2 = & ip_local_port_range_max , }\n ;\n inet_get_local_port_range ( range , range + 1 ) ;\n ret = proc_dointvec_minmax ( & tmp , write , buffer , lenp , ppos ) ;\n if ( write && ret == 0 ) {\n if ( range [ 1 ] < range [ 0 ] ) ret = - EINVAL ;\n else set_local_port_range ( range ) ;\n }\n return ret ;\n }"}
{"idx": 1076, "target": 0, "func": "static void purple_keepalive ( struct im_connection * ic ) {\n }"}
{"idx": 1077, "target": 0, "func": "static void bind_date_conv ( uint row_count , my_bool preserveFractions ) {\n MYSQL_STMT * stmt = 0 ;\n uint rc , i , count = row_count ;\n ulong length [ 4 ] ;\n MYSQL_BIND my_bind [ 4 ] ;\n my_bool is_null [ 4 ] = {\n 0 }\n ;\n MYSQL_TIME tm [ 4 ] ;\n ulong second_part ;\n uint year , month , day , hour , minute , sec ;\n uint now_year = 1990 , now_month = 3 , now_day = 13 ;\n rc = mysql_query ( mysql , \"SET timestamp=UNIX_TIMESTAMP('1990-03-13')\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"INSERT INTO test_date VALUES(?, ?, ?, ?)\" ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 4 ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_TIMESTAMP ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_TIME ;\n my_bind [ 2 ] . buffer_type = MYSQL_TYPE_DATETIME ;\n my_bind [ 3 ] . buffer_type = MYSQL_TYPE_DATE ;\n for ( i = 0 ;\n i < ( int ) array_elements ( my_bind ) ;\n i ++ ) {\n my_bind [ i ] . buffer = ( void * ) & tm [ i ] ;\n my_bind [ i ] . is_null = & is_null [ i ] ;\n my_bind [ i ] . length = & length [ i ] ;\n my_bind [ i ] . buffer_length = 30 ;\n length [ i ] = 20 ;\n }\n second_part = 0 ;\n year = 2000 ;\n month = 01 ;\n day = 10 ;\n hour = 11 ;\n minute = 16 ;\n sec = 20 ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n for ( count = 0 ;\n count < row_count ;\n count ++ ) {\n for ( i = 0 ;\n i < ( int ) array_elements ( my_bind ) ;\n i ++ ) {\n tm [ i ] . neg = 0 ;\n tm [ i ] . second_part = second_part + count ;\n if ( my_bind [ i ] . buffer_type != MYSQL_TYPE_TIME ) {\n tm [ i ] . year = year + count ;\n tm [ i ] . month = month + count ;\n tm [ i ] . day = day + count ;\n }\n else tm [ i ] . year = tm [ i ] . month = tm [ i ] . day = 0 ;\n if ( my_bind [ i ] . buffer_type != MYSQL_TYPE_DATE ) {\n tm [ i ] . hour = hour + count ;\n tm [ i ] . minute = minute + count ;\n tm [ i ] . second = sec + count ;\n }\n else tm [ i ] . hour = tm [ i ] . minute = tm [ i ] . second = 0 ;\n }\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n }\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n mysql_stmt_close ( stmt ) ;\n rc = my_stmt_result ( \"SELECT * FROM test_date\" ) ;\n DIE_UNLESS ( row_count == rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT * FROM test_date\" ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_store_result ( stmt ) ;\n check_execute ( stmt , rc ) ;\n for ( count = 0 ;\n count < row_count ;\n count ++ ) {\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == 0 || rc == MYSQL_DATA_TRUNCATED ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n\" ) ;\n for ( i = 0 ;\n i < array_elements ( my_bind ) ;\n i ++ ) {\n if ( ! opt_silent ) fprintf ( stdout , \"\\ntime[%d]: %02d-%02d-%02d %02d:%02d:%02d.%06lu\" , i , tm [ i ] . year , tm [ i ] . month , tm [ i ] . day , tm [ i ] . hour , tm [ i ] . minute , tm [ i ] . second , tm [ i ] . second_part ) ;\n DIE_UNLESS ( tm [ i ] . year == 0 || tm [ i ] . year == year + count || ( tm [ i ] . year == now_year && my_bind [ i ] . buffer_type == MYSQL_TYPE_TIME ) ) ;\n DIE_UNLESS ( tm [ i ] . month == 0 || tm [ i ] . month == month + count || ( tm [ i ] . month == now_month && my_bind [ i ] . buffer_type == MYSQL_TYPE_TIME ) ) ;\n DIE_UNLESS ( tm [ i ] . day == 0 || tm [ i ] . day == day + count || ( tm [ i ] . day == now_day && my_bind [ i ] . buffer_type == MYSQL_TYPE_TIME ) ) ;\n DIE_UNLESS ( tm [ i ] . hour == 0 || tm [ i ] . hour == hour + count ) ;\n DIE_UNLESS ( tm [ i ] . minute == 0 || tm [ i ] . minute == minute + count ) ;\n DIE_UNLESS ( tm [ i ] . second == 0 || tm [ i ] . second == sec + count ) ;\n if ( preserveFractions ) {\n if ( i == 3 ) {\n DIE_UNLESS ( tm [ i ] . second_part == 0 ) ;\n }\n else {\n DIE_UNLESS ( tm [ i ] . second_part == second_part + count ) ;\n }\n }\n else {\n DIE_UNLESS ( ( tm [ i ] . second_part == 0 ) || tm [ i ] . second_part == second_part + count ) ;\n }\n }\n }\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 1078, "target": 0, "func": "static int parse_relop ( tvbuff_t * tvb , int offset , proto_tree * tree , guint32 * relop , const char * * str ) {\n const char * str1 = NULL , * str2 = NULL ;\n guint32 tmp = tvb_get_letohl ( tvb , offset ) ;\n guint32 modifier = ( tmp & 0xF00 ) ;\n DISSECTOR_ASSERT ( ( tmp & 0xf ) < PRSomeBits + 1 ) ;\n switch ( tmp & 0xf ) {\n case PRLT : * relop = PRLT ;\n break ;\n case PRLE : * relop = PRLE ;\n break ;\n case PRGT : * relop = PRGT ;\n break ;\n case PRGE : * relop = PRGE ;\n break ;\n case PREQ : * relop = PREQ ;\n break ;\n case PRNE : * relop = PRNE ;\n break ;\n case PRRE : * relop = PRRE ;\n break ;\n case PRAllBits : * relop = PRAllBits ;\n break ;\n case PRSomeBits : * relop = PRSomeBits ;\n break ;\n default : break ;\n }\n str2 = val_to_str ( * relop , PR_VALS , \"0x%04x\" ) ;\n if ( modifier ) {\n switch ( modifier ) {\n case PRAll : * relop = * relop | PRAll ;\n break ;\n case PRAny : * relop |= PRAny ;\n break ;\n default : DISSECTOR_ASSERT ( FALSE ) ;\n break ;\n }\n str1 = try_val_to_str ( ( modifier ) , PR_VALS ) ;\n if ( str1 ) {\n str1 = wmem_strdup_printf ( wmem_packet_scope ( ) , \"%s | \" , str1 ) ;\n str2 = wmem_strdup_printf ( wmem_packet_scope ( ) , \"%s%s\" , str1 , str2 ) ;\n }\n }\n proto_tree_add_string_format_value ( tree , hf_mswsp_cproprestrict_relop , tvb , offset , 4 , str2 , \"%s (0x%04x)\" , str2 [ 0 ] == '\\0' ? \"\" : str2 , * relop ) ;\n if ( str ) {\n * str = str2 ;\n }\n return offset + 4 ;\n }"}
{"idx": 1079, "target": 0, "func": "const char * mime_field_name_get ( const MIMEField * field , int * length ) {\n * length = field -> m_len_name ;\n if ( field -> m_wks_idx >= 0 ) {\n return hdrtoken_index_to_wks ( field -> m_wks_idx ) ;\n }\n else {\n return field -> m_ptr_name ;\n }\n }"}
{"idx": 1080, "target": 0, "func": "DumpOptions * dumpOptionsFromRestoreOptions ( RestoreOptions * ropt ) {\n DumpOptions * dopt = NewDumpOptions ( ) ;\n dopt -> outputClean = ropt -> dropSchema ;\n dopt -> dataOnly = ropt -> dataOnly ;\n dopt -> schemaOnly = ropt -> schemaOnly ;\n dopt -> if_exists = ropt -> if_exists ;\n dopt -> column_inserts = ropt -> column_inserts ;\n dopt -> dumpSections = ropt -> dumpSections ;\n dopt -> aclsSkip = ropt -> aclsSkip ;\n dopt -> outputSuperuser = ropt -> superuser ;\n dopt -> outputCreateDB = ropt -> createDB ;\n dopt -> outputNoOwner = ropt -> noOwner ;\n dopt -> outputNoTablespaces = ropt -> noTablespace ;\n dopt -> disable_triggers = ropt -> disable_triggers ;\n dopt -> use_setsessauth = ropt -> use_setsessauth ;\n dopt -> disable_dollar_quoting = ropt -> disable_dollar_quoting ;\n dopt -> dump_inserts = ropt -> dump_inserts ;\n dopt -> no_security_labels = ropt -> no_security_labels ;\n dopt -> lockWaitTimeout = ropt -> lockWaitTimeout ;\n dopt -> include_everything = ropt -> include_everything ;\n dopt -> enable_row_security = ropt -> enable_row_security ;\n return dopt ;\n }"}
{"idx": 1081, "target": 0, "func": "static UBool action_reverse ( UBiDiTransform * pTransform , UErrorCode * pErrorCode ) {\n ubidi_writeReverse ( pTransform -> src , pTransform -> srcLength , pTransform -> dest , pTransform -> destSize , UBIDI_REORDER_DEFAULT , pErrorCode ) ;\n * pTransform -> pDestLength = pTransform -> srcLength ;\n return TRUE ;\n }"}
{"idx": 1082, "target": 0, "func": "static int connected ( struct usb_dev_state * ps ) {\n return ( ! list_empty ( & ps -> list ) && ps -> dev -> state != USB_STATE_NOTATTACHED ) ;\n }"}
{"idx": 1083, "target": 0, "func": "static int opt_show_ ## section ( const char * opt , const char * arg ) {\n mark_section_show_entries ( SECTION_ID_ ## target_section_id , 1 , NULL ) ;\n return 0 ;\n }\n DEFINE_OPT_SHOW_SECTION ( chapters , CHAPTERS ) DEFINE_OPT_SHOW_SECTION ( error , ERROR ) DEFINE_OPT_SHOW_SECTION ( format , FORMAT ) DEFINE_OPT_SHOW_SECTION ( frames , FRAMES ) DEFINE_OPT_SHOW_SECTION ( library_versions , LIBRARY_VERSIONS ) DEFINE_OPT_SHOW_SECTION ( packets , PACKETS ) DEFINE_OPT_SHOW_SECTION ( pixel_formats , PIXEL_FORMATS ) DEFINE_OPT_SHOW_SECTION ( program_version , PROGRAM_VERSION ) DEFINE_OPT_SHOW_SECTION ( streams , STREAMS )"}
{"idx": 1084, "target": 0, "func": "static char * decode_bitfield_value ( char * buf , const guint64 val , const guint64 mask , const int width ) {\n char * p ;\n p = other_decode_bitfield_value ( buf , val , mask , width ) ;\n p = g_stpcpy ( p , \" = \" ) ;\n return p ;\n }"}
{"idx": 1085, "target": 0, "func": "static void cmd_server_add ( const char * data ) {\n cmd_server_add_modify ( data , TRUE ) ;\n }"}
{"idx": 1086, "target": 0, "func": "int jbig2_complete_page ( Jbig2Ctx * ctx ) {\n int code = 0 ;\n if ( ctx -> segment_index != ctx -> n_segments ) {\n Jbig2Segment * segment = ctx -> segments [ ctx -> segment_index ] ;\n if ( ( segment -> data_length & 0xffffffff ) == 0xffffffff ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"File has an invalid segment data length!\" \" Trying to decode using the available data.\" ) ;\n segment -> data_length = ctx -> buf_wr_ix - ctx -> buf_rd_ix ;\n code = jbig2_parse_segment ( ctx , segment , ctx -> buf + ctx -> buf_rd_ix ) ;\n ctx -> buf_rd_ix += segment -> data_length ;\n ctx -> segment_index ++ ;\n }\n }\n if ( ctx -> pages [ ctx -> current_page ] . image != NULL ) {\n ctx -> pages [ ctx -> current_page ] . state = JBIG2_PAGE_COMPLETE ;\n }\n return code ;\n }"}
{"idx": 1087, "target": 0, "func": "static int dissect_rsl_ie_emlpp_prio ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_tree * ie_tree ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_EMLPP_PRIO ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 2 , ett_ie_emlpp_prio , NULL , \"eMLPP Priority IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_emlpp_prio , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n return offset ;\n }"}
{"idx": 1088, "target": 0, "func": "UScriptCode hb_icu_script_from_script ( hb_script_t script ) {\n if ( unlikely ( script == HB_SCRIPT_INVALID ) ) return USCRIPT_INVALID_CODE ;\n for ( unsigned int i = 0 ;\n i < USCRIPT_CODE_LIMIT ;\n i ++ ) if ( unlikely ( hb_icu_script_to_script ( ( UScriptCode ) i ) == script ) ) return ( UScriptCode ) i ;\n return USCRIPT_UNKNOWN ;\n }"}
{"idx": 1089, "target": 1, "func": "static int32_t u_printf_char_handler ( const u_printf_stream_handler * handler , void * context , ULocaleBundle * formatBundle , const u_printf_spec_info * info , const ufmt_args * args ) {\n UChar s [ U16_MAX_LENGTH + 1 ] ;\n int32_t len = 1 , written ;\n unsigned char arg = ( unsigned char ) ( args [ 0 ] . int64Value ) ;\n ufmt_defaultCPToUnicode ( ( const char * ) & arg , 2 , s , UPRV_LENGTHOF ( s ) ) ;\n if ( arg != 0 ) {\n len = u_strlen ( s ) ;\n }\n written = handler -> pad_and_justify ( context , info , s , len ) ;\n return written ;\n }"}
{"idx": 1090, "target": 1, "func": "static int cmv_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n CmvContext * s = avctx -> priv_data ;\n const uint8_t * buf_end = buf + buf_size ;\n if ( buf_end - buf < EA_PREAMBLE_SIZE ) return AVERROR_INVALIDDATA ;\n if ( AV_RL32 ( buf ) == MVIh_TAG || AV_RB32 ( buf ) == MVIh_TAG ) {\n cmv_process_header ( s , buf + EA_PREAMBLE_SIZE , buf_end ) ;\n return buf_size ;\n }\n if ( av_image_check_size ( s -> width , s -> height , 0 , s -> avctx ) ) return - 1 ;\n if ( s -> last2_frame . data [ 0 ] ) avctx -> release_buffer ( avctx , & s -> last2_frame ) ;\n FFSWAP ( AVFrame , s -> last_frame , s -> last2_frame ) ;\n FFSWAP ( AVFrame , s -> frame , s -> last_frame ) ;\n s -> frame . reference = 1 ;\n s -> frame . buffer_hints = FF_BUFFER_HINTS_VALID ;\n if ( ff_get_buffer ( avctx , & s -> frame ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return - 1 ;\n }\n memcpy ( s -> frame . data [ 1 ] , s -> palette , AVPALETTE_SIZE ) ;\n buf += EA_PREAMBLE_SIZE ;\n if ( ( buf [ 0 ] & 1 ) ) {\n cmv_decode_inter ( s , buf + 2 , buf_end ) ;\n s -> frame . key_frame = 0 ;\n s -> frame . pict_type = AV_PICTURE_TYPE_P ;\n }\n else {\n s -> frame . key_frame = 1 ;\n s -> frame . pict_type = AV_PICTURE_TYPE_I ;\n cmv_decode_intra ( s , buf + 2 , buf_end ) ;\n }\n * got_frame = 1 ;\n * ( AVFrame * ) data = s -> frame ;\n return buf_size ;\n }"}
{"idx": 1091, "target": 0, "func": "static bool iswheel ( const char * username ) {\n struct group * grp ;\n grp = getgrnam ( \"wheel\" ) ;\n if ( ( NULL == grp ) || ( NULL == grp -> gr_mem ) ) {\n return false ;\n }\n return is_on_list ( grp -> gr_mem , username ) ;\n }"}
{"idx": 1092, "target": 0, "func": "TSReturnCode TSAIORead ( int fd , off_t offset , char * buf , size_t buffSize , TSCont contp ) {\n sdk_assert ( sdk_sanity_check_iocore_structure ( contp ) == TS_SUCCESS ) ;\n Continuation * pCont = ( Continuation * ) contp ;\n AIOCallback * pAIO = new_AIOCallback ( ) ;\n if ( pAIO == nullptr ) {\n return TS_ERROR ;\n }\n pAIO -> aiocb . aio_fildes = fd ;\n pAIO -> aiocb . aio_offset = offset ;\n pAIO -> aiocb . aio_nbytes = buffSize ;\n pAIO -> aiocb . aio_buf = buf ;\n pAIO -> action = pCont ;\n pAIO -> thread = pCont -> mutex -> thread_holding ;\n if ( ink_aio_read ( pAIO , 1 ) == 1 ) {\n return TS_SUCCESS ;\n }\n return TS_ERROR ;\n }"}
{"idx": 1093, "target": 0, "func": "static __inline__ void __swahw32s ( __u32 * p ) {\n # ifdef __arch_swahw32s __arch_swahw32s ( p ) ;\n # else * p = __swahw32p ( p ) ;\n # endif }"}
{"idx": 1094, "target": 0, "func": "static int ebml_read_uint ( AVIOContext * pb , int size , uint64_t * num ) {\n int n = 0 ;\n if ( size > 8 ) return AVERROR_INVALIDDATA ;\n * num = 0 ;\n while ( n ++ < size ) * num = ( * num << 8 ) | avio_r8 ( pb ) ;\n return 0 ;\n }"}
{"idx": 1095, "target": 0, "func": "int net_slirp_redir ( const char * redir_str ) {\n struct slirp_config_str * config ;\n if ( QTAILQ_EMPTY ( & slirp_stacks ) ) {\n config = g_malloc ( sizeof ( * config ) ) ;\n pstrcpy ( config -> str , sizeof ( config -> str ) , redir_str ) ;\n config -> flags = SLIRP_CFG_HOSTFWD | SLIRP_CFG_LEGACY ;\n config -> next = slirp_configs ;\n slirp_configs = config ;\n return 0 ;\n }\n return slirp_hostfwd ( QTAILQ_FIRST ( & slirp_stacks ) , redir_str , 1 ) ;\n }"}
{"idx": 1096, "target": 0, "func": "static int check_authenticated_user_and_ip ( int userid , struct query * q ) {\n int res = check_user_and_ip ( userid , q ) ;\n if ( res ) return res ;\n if ( ! users [ userid ] . authenticated ) return 1 ;\n return 0 ;\n }"}
{"idx": 1097, "target": 0, "func": "int get_ber_identifier ( tvbuff_t * tvb , int offset , gint8 * ber_class , gboolean * pc , gint32 * tag ) {\n guint8 id , t ;\n gint8 tmp_class ;\n gboolean tmp_pc ;\n gint32 tmp_tag ;\n id = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n # ifdef DEBUG_BER printf ( \"BER ID=%02x\" , id ) ;\n # endif tmp_class = ( id >> 6 ) & 0x03 ;\n tmp_pc = ( id >> 5 ) & 0x01 ;\n tmp_tag = id & 0x1F ;\n if ( tmp_tag == 0x1F ) {\n tmp_tag = 0 ;\n while ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n t = tvb_get_guint8 ( tvb , offset ) ;\n # ifdef DEBUG_BER printf ( \" %02x\" , t ) ;\n # endif offset += 1 ;\n tmp_tag <<= 7 ;\n tmp_tag |= t & 0x7F ;\n if ( ! ( t & 0x80 ) ) break ;\n }\n }\n # ifdef DEBUG_BER printf ( \"\\n\" ) ;\n # endif if ( ber_class ) * ber_class = tmp_class ;\n if ( pc ) * pc = tmp_pc ;\n if ( tag ) * tag = tmp_tag ;\n last_class = tmp_class ;\n last_pc = tmp_pc ;\n last_tag = tmp_tag ;\n return offset ;\n }"}
{"idx": 1098, "target": 1, "func": "void vp9_twopass_postencode_update ( VP9_COMP * cpi ) {\n TWO_PASS * const twopass = & cpi -> twopass ;\n RATE_CONTROL * const rc = & cpi -> rc ;\n const int bits_used = rc -> base_frame_target ;\n rc -> vbr_bits_off_target += rc -> base_frame_target - rc -> projected_frame_size ;\n twopass -> bits_left = MAX ( twopass -> bits_left - bits_used , 0 ) ;\n if ( cpi -> common . frame_type != KEY_FRAME && ! vp9_is_upper_layer_key_frame ( cpi ) ) {\n twopass -> kf_group_bits -= bits_used ;\n }\n twopass -> kf_group_bits = MAX ( twopass -> kf_group_bits , 0 ) ;\n ++ twopass -> gf_group . index ;\n }"}
{"idx": 1099, "target": 0, "func": "void fakeDebug ( const char * tag , const char * fmt , ... ) {\n static const int LINE_SIZE = 1024 ;\n char buf [ LINE_SIZE ] ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n vsnprintf ( buf , LINE_SIZE , fmt , ap ) ;\n printf ( \"Debug (%s): %s\\n\" , tag , buf ) ;\n va_end ( ap ) ;\n gFakeDebugLog . append ( buf ) ;\n }"}
{"idx": 1100, "target": 0, "func": "static int dissect_h245_T_mCTerminalIDResponse ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_mCTerminalIDResponse , T_mCTerminalIDResponse_sequence ) ;\n return offset ;\n }"}
{"idx": 1101, "target": 0, "func": "static int SpoolssRFNPCNEX_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n guint32 changeid ;\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , NULL , NULL , FALSE , FALSE ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_rrpcn_changelow , & changeid ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", changeid %d\" , changeid ) ;\n offset = dissect_ndr_pointer ( tvb , offset , pinfo , tree , di , drep , dissect_NOTIFY_OPTIONS_ARRAY_CTR , NDR_POINTER_UNIQUE , \"Notify Options Array Container\" , - 1 ) ;\n return offset ;\n }"}
{"idx": 1102, "target": 0, "func": "SPL_METHOD ( SplFileObject , getCsvControl ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char delimiter [ 2 ] , enclosure [ 2 ] ;\n array_init ( return_value ) ;\n delimiter [ 0 ] = intern -> u . file . delimiter ;\n delimiter [ 1 ] = '\\0' ;\n enclosure [ 0 ] = intern -> u . file . enclosure ;\n enclosure [ 1 ] = '\\0' ;\n add_next_index_string ( return_value , delimiter , 1 ) ;\n add_next_index_string ( return_value , enclosure , 1 ) ;\n }"}
{"idx": 1103, "target": 0, "func": "void show_diff ( DYNAMIC_STRING * ds , const char * filename1 , const char * filename2 ) {\n DYNAMIC_STRING ds_tmp ;\n const char * diff_name = 0 ;\n if ( init_dynamic_string ( & ds_tmp , \"\" , 256 , 256 ) ) die ( \"Out of memory\" ) ;\n # ifdef __WIN__ if ( diff_check ( \"diff\" ) ) diff_name = \"diff\" ;\n else if ( diff_check ( \"mtrdiff\" ) ) diff_name = \"mtrdiff\" ;\n else diff_name = 0 ;\n # else diff_name = \"diff\" ;\n # endif if ( diff_name ) {\n if ( run_tool ( diff_name , & ds_tmp , \"-u\" , filename1 , filename2 , \"2>&1\" , NULL ) > 1 ) {\n dynstr_set ( & ds_tmp , \"\" ) ;\n if ( run_tool ( diff_name , & ds_tmp , \"-c\" , filename1 , filename2 , \"2>&1\" , NULL ) > 1 ) {\n dynstr_set ( & ds_tmp , \"\" ) ;\n if ( run_tool ( diff_name , & ds_tmp , filename1 , filename2 , \"2>&1\" , NULL ) > 1 ) {\n diff_name = 0 ;\n }\n }\n }\n }\n if ( ! diff_name ) {\n dynstr_append ( & ds_tmp , \"\\n\" ) ;\n dynstr_append ( & ds_tmp , \"\\n\" \"The two files differ but it was not possible to execute 'diff' in\\n\" \"order to show only the difference. Instead the whole content of the\\n\" \"two files was shown for you to diff manually.\\n\\n\" \"To get a better report you should install 'diff' on your system, which you\\n\" \"for example can get from http://www.gnu.org/software/diffutils/diffutils.html\\n\" # ifdef __WIN__ \"or http://gnuwin32.sourceforge.net/packages/diffutils.htm\\n\" # endif \"\\n\" ) ;\n dynstr_append ( & ds_tmp , \" --- \" ) ;\n dynstr_append ( & ds_tmp , filename1 ) ;\n dynstr_append ( & ds_tmp , \" >>>\\n\" ) ;\n cat_file ( & ds_tmp , filename1 ) ;\n dynstr_append ( & ds_tmp , \"<<<\\n --- \" ) ;\n dynstr_append ( & ds_tmp , filename1 ) ;\n dynstr_append ( & ds_tmp , \" >>>\\n\" ) ;\n cat_file ( & ds_tmp , filename2 ) ;\n dynstr_append ( & ds_tmp , \"<<<<\\n\" ) ;\n }\n if ( ds ) {\n dynstr_append_mem ( ds , ds_tmp . str , ds_tmp . length ) ;\n }\n else {\n fprintf ( stderr , \"%s\\n\" , ds_tmp . str ) ;\n }\n dynstr_free ( & ds_tmp ) ;\n }"}
{"idx": 1104, "target": 0, "func": "static cmsFloat64Number xpow10 ( int n ) {\n return pow ( 10 , ( cmsFloat64Number ) n ) ;\n }"}
{"idx": 1105, "target": 0, "func": "int gs_push_boolean ( gs_main_instance * minst , bool value ) {\n ref vref ;\n make_bool ( & vref , value ) ;\n return push_value ( minst , & vref ) ;\n }"}
{"idx": 1106, "target": 0, "func": "static cmsBool Type_MPE_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) {\n cmsUInt32Number i , BaseOffset , DirectoryPos , CurrentPos ;\n int inputChan , outputChan ;\n cmsUInt32Number ElemCount ;\n cmsUInt32Number * ElementOffsets = NULL , * ElementSizes = NULL , Before ;\n cmsStageSignature ElementSig ;\n cmsPipeline * Lut = ( cmsPipeline * ) Ptr ;\n cmsStage * Elem = Lut -> Elements ;\n cmsTagTypeHandler * TypeHandler ;\n _cmsTagTypePluginChunkType * MPETypePluginChunk = ( _cmsTagTypePluginChunkType * ) _cmsContextGetClientChunk ( self -> ContextID , MPEPlugin ) ;\n BaseOffset = io -> Tell ( io ) - sizeof ( _cmsTagBase ) ;\n inputChan = cmsPipelineInputChannels ( Lut ) ;\n outputChan = cmsPipelineOutputChannels ( Lut ) ;\n ElemCount = cmsPipelineStageCount ( Lut ) ;\n ElementOffsets = ( cmsUInt32Number * ) _cmsCalloc ( self -> ContextID , ElemCount , sizeof ( cmsUInt32Number ) ) ;\n if ( ElementOffsets == NULL ) goto Error ;\n ElementSizes = ( cmsUInt32Number * ) _cmsCalloc ( self -> ContextID , ElemCount , sizeof ( cmsUInt32Number ) ) ;\n if ( ElementSizes == NULL ) goto Error ;\n if ( ! _cmsWriteUInt16Number ( io , ( cmsUInt16Number ) inputChan ) ) goto Error ;\n if ( ! _cmsWriteUInt16Number ( io , ( cmsUInt16Number ) outputChan ) ) goto Error ;\n if ( ! _cmsWriteUInt32Number ( io , ( cmsUInt16Number ) ElemCount ) ) goto Error ;\n DirectoryPos = io -> Tell ( io ) ;\n for ( i = 0 ;\n i < ElemCount ;\n i ++ ) {\n if ( ! _cmsWriteUInt32Number ( io , 0 ) ) goto Error ;\n if ( ! _cmsWriteUInt32Number ( io , 0 ) ) goto Error ;\n }\n for ( i = 0 ;\n i < ElemCount ;\n i ++ ) {\n ElementOffsets [ i ] = io -> Tell ( io ) - BaseOffset ;\n ElementSig = Elem -> Type ;\n TypeHandler = GetHandler ( ( cmsTagTypeSignature ) ElementSig , MPETypePluginChunk -> TagTypes , SupportedMPEtypes ) ;\n if ( TypeHandler == NULL ) {\n char String [ 5 ] ;\n _cmsTagSignature2String ( String , ( cmsTagSignature ) ElementSig ) ;\n cmsSignalError ( self -> ContextID , cmsERROR_UNKNOWN_EXTENSION , \"Found unknown MPE type '%s'\" , String ) ;\n goto Error ;\n }\n if ( ! _cmsWriteUInt32Number ( io , ElementSig ) ) goto Error ;\n if ( ! _cmsWriteUInt32Number ( io , 0 ) ) goto Error ;\n Before = io -> Tell ( io ) ;\n if ( ! TypeHandler -> WritePtr ( self , io , Elem , 1 ) ) goto Error ;\n if ( ! _cmsWriteAlignment ( io ) ) goto Error ;\n ElementSizes [ i ] = io -> Tell ( io ) - Before ;\n Elem = Elem -> Next ;\n }\n CurrentPos = io -> Tell ( io ) ;\n if ( ! io -> Seek ( io , DirectoryPos ) ) goto Error ;\n for ( i = 0 ;\n i < ElemCount ;\n i ++ ) {\n if ( ! _cmsWriteUInt32Number ( io , ElementOffsets [ i ] ) ) goto Error ;\n if ( ! _cmsWriteUInt32Number ( io , ElementSizes [ i ] ) ) goto Error ;\n }\n if ( ! io -> Seek ( io , CurrentPos ) ) goto Error ;\n if ( ElementOffsets != NULL ) _cmsFree ( self -> ContextID , ElementOffsets ) ;\n if ( ElementSizes != NULL ) _cmsFree ( self -> ContextID , ElementSizes ) ;\n return TRUE ;\n Error : if ( ElementOffsets != NULL ) _cmsFree ( self -> ContextID , ElementOffsets ) ;\n if ( ElementSizes != NULL ) _cmsFree ( self -> ContextID , ElementSizes ) ;\n return FALSE ;\n cmsUNUSED_PARAMETER ( nItems ) ;\n }"}
{"idx": 1107, "target": 1, "func": "static int xan_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int ret , buf_size = avpkt -> size ;\n XanContext * s = avctx -> priv_data ;\n GetByteContext ctx ;\n int tag = 0 ;\n bytestream2_init ( & ctx , buf , buf_size ) ;\n while ( bytestream2_get_bytes_left ( & ctx ) > 8 && tag != VGA__TAG ) {\n unsigned * tmpptr ;\n uint32_t new_pal ;\n int size ;\n int i ;\n tag = bytestream2_get_le32 ( & ctx ) ;\n size = bytestream2_get_be32 ( & ctx ) ;\n size = FFMIN ( size , bytestream2_get_bytes_left ( & ctx ) ) ;\n switch ( tag ) {\n case PALT_TAG : if ( size < PALETTE_SIZE ) return AVERROR_INVALIDDATA ;\n if ( s -> palettes_count >= PALETTES_MAX ) return AVERROR_INVALIDDATA ;\n tmpptr = av_realloc ( s -> palettes , ( s -> palettes_count + 1 ) * AVPALETTE_SIZE ) ;\n if ( ! tmpptr ) return AVERROR ( ENOMEM ) ;\n s -> palettes = tmpptr ;\n tmpptr += s -> palettes_count * AVPALETTE_COUNT ;\n for ( i = 0 ;\n i < PALETTE_COUNT ;\n i ++ ) {\n # if RUNTIME_GAMMA int r = gamma_corr ( bytestream2_get_byteu ( & ctx ) ) ;\n int g = gamma_corr ( bytestream2_get_byteu ( & ctx ) ) ;\n int b = gamma_corr ( bytestream2_get_byteu ( & ctx ) ) ;\n # else int r = gamma_lookup [ bytestream2_get_byteu ( & ctx ) ] ;\n int g = gamma_lookup [ bytestream2_get_byteu ( & ctx ) ] ;\n int b = gamma_lookup [ bytestream2_get_byteu ( & ctx ) ] ;\n # endif * tmpptr ++ = ( r << 16 ) | ( g << 8 ) | b ;\n }\n s -> palettes_count ++ ;\n break ;\n case SHOT_TAG : if ( size < 4 ) return AVERROR_INVALIDDATA ;\n new_pal = bytestream2_get_le32 ( & ctx ) ;\n if ( new_pal < s -> palettes_count ) {\n s -> cur_palette = new_pal ;\n }\n else av_log ( avctx , AV_LOG_ERROR , \"Invalid palette selected\\n\" ) ;\n break ;\n case VGA__TAG : break ;\n default : bytestream2_skip ( & ctx , size ) ;\n break ;\n }\n }\n buf_size = bytestream2_get_bytes_left ( & ctx ) ;\n if ( s -> palettes_count <= 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"No palette found\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ( ret = ff_get_buffer ( avctx , & s -> current_frame ) ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n s -> current_frame . reference = 3 ;\n if ( ! s -> frame_size ) s -> frame_size = s -> current_frame . linesize [ 0 ] * s -> avctx -> height ;\n memcpy ( s -> current_frame . data [ 1 ] , s -> palettes + s -> cur_palette * AVPALETTE_COUNT , AVPALETTE_SIZE ) ;\n s -> buf = ctx . buffer ;\n s -> size = buf_size ;\n if ( xan_wc3_decode_frame ( s ) < 0 ) return AVERROR_INVALIDDATA ;\n if ( s -> last_frame . data [ 0 ] ) avctx -> release_buffer ( avctx , & s -> last_frame ) ;\n * got_frame = 1 ;\n * ( AVFrame * ) data = s -> current_frame ;\n FFSWAP ( AVFrame , s -> current_frame , s -> last_frame ) ;\n return buf_size ;\n }"}
{"idx": 1108, "target": 0, "func": "static void decode_3p_track ( int * out , int code , int m , int off ) {\n int half_2p = BIT_POS ( code , 2 * m - 1 ) << ( m - 1 ) ;\n decode_2p_track ( out , BIT_STR ( code , 0 , 2 * m - 1 ) , m - 1 , off + half_2p ) ;\n decode_1p_track ( out + 2 , BIT_STR ( code , 2 * m , m + 1 ) , m , off ) ;\n }"}
{"idx": 1109, "target": 0, "func": "static void pxa2xx_rtc_piupdate ( PXA2xxRTCState * s ) {\n int64_t rt = qemu_get_clock_ms ( rtc_clock ) ;\n if ( s -> rtsr & ( 1 << 15 ) ) s -> last_swcr += rt - s -> last_pi ;\n s -> last_pi = rt ;\n }"}
{"idx": 1110, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FullscreenControllerInteractiveTest , DISABLED_BrowserFullscreenExit ) {\n ASSERT_NO_FATAL_FAILURE ( ToggleBrowserFullscreen ( true ) ) ;\n AddTabAtIndex ( 0 , GURL ( url : : kAboutBlankURL ) , PAGE_TRANSITION_TYPED ) ;\n ASSERT_NO_FATAL_FAILURE ( ToggleTabFullscreen ( true ) ) ;\n ASSERT_NO_FATAL_FAILURE ( ToggleBrowserFullscreen ( false ) ) ;\n ASSERT_FALSE ( browser ( ) -> window ( ) -> IsFullscreen ( ) ) ;\n }"}
{"idx": 1111, "target": 1, "func": "int vpx_svc_get_encode_frame_count ( const SvcContext * svc_ctx ) {\n const SvcInternal * const si = get_const_svc_internal ( svc_ctx ) ;\n if ( svc_ctx == NULL || si == NULL ) return 0 ;\n return si -> encode_frame_count ;\n }"}
{"idx": 1112, "target": 0, "func": "TEST_F ( TemplateURLParserTest , TestFirefoxEbay ) {\n ParamFilterImpl filter ( \"ebay\" , \"ebay\" ) ;\n ASSERT_NO_FATAL_FAILURE ( ParseFile ( \"firefox_ebay.xml\" , & filter ) ) ;\n ASSERT_TRUE ( template_url_ ) ;\n EXPECT_EQ ( ASCIIToUTF16 ( \"eBay\" ) , template_url_ -> short_name ( ) ) ;\n EXPECT_TRUE ( template_url_ -> url_ref ( ) . SupportsReplacement ( SearchTermsData ( ) ) ) ;\n EXPECT_EQ ( \"http://search.ebay.com/search/search.dll?query={\nsearchTerms}\n&\" \"MfcISAPICommand=GetResult&ht=1&srchdesc=n&maxRecordsReturned=300&\" \"maxRecordsPerPage=50&SortProperty=MetaEndSort\" , template_url_ -> url ( ) ) ;\n ASSERT_EQ ( 1U , template_url_ -> input_encodings ( ) . size ( ) ) ;\n EXPECT_EQ ( \"ISO-8859-1\" , template_url_ -> input_encodings ( ) [ 0 ] ) ;\n EXPECT_EQ ( GURL ( \"http://search.ebay.com/favicon.ico\" ) , template_url_ -> favicon_url ( ) ) ;\n }"}
{"idx": 1113, "target": 0, "func": "static PyObject * changePassword ( PyObject * self , PyObject * args ) {\n const char * newpswd = NULL ;\n const char * oldpswd = NULL ;\n const char * user = NULL ;\n int result = 0 ;\n if ( ! PyArg_ParseTuple ( args , \"sss\" , & user , & oldpswd , & newpswd ) ) return NULL ;\n result = change_user_krb5pwd ( user , oldpswd , newpswd ) ;\n if ( result ) return Py_INCREF ( Py_True ) , Py_True ;\n else return NULL ;\n }"}
{"idx": 1114, "target": 0, "func": "static int push_value ( gs_main_instance * minst , ref * pvalue ) {\n i_ctx_t * i_ctx_p = minst -> i_ctx_p ;\n int code = ref_stack_push ( & o_stack , 1 ) ;\n if ( code < 0 ) return code ;\n * ref_stack_index ( & o_stack , 0L ) = * pvalue ;\n return 0 ;\n }"}
{"idx": 1115, "target": 0, "func": "static int compare_avps ( const void * a , const void * b ) {\n const value_string * vsa = ( const value_string * ) a ;\n const value_string * vsb = ( const value_string * ) b ;\n if ( vsa -> value > vsb -> value ) return 1 ;\n if ( vsa -> value < vsb -> value ) return - 1 ;\n return 0 ;\n }"}
{"idx": 1116, "target": 0, "func": "static int kvm_guest_debug_workarounds ( X86CPU * cpu ) {\n CPUState * cs = CPU ( cpu ) ;\n CPUX86State * env = & cpu -> env ;\n int ret = 0 ;\n unsigned long reinject_trap = 0 ;\n if ( ! kvm_has_vcpu_events ( ) ) {\n if ( env -> exception_injected == 1 ) {\n reinject_trap = KVM_GUESTDBG_INJECT_DB ;\n }\n else if ( env -> exception_injected == 3 ) {\n reinject_trap = KVM_GUESTDBG_INJECT_BP ;\n }\n env -> exception_injected = - 1 ;\n }\n if ( reinject_trap || ( ! kvm_has_robust_singlestep ( ) && cs -> singlestep_enabled ) ) {\n ret = kvm_update_guest_debug ( cs , reinject_trap ) ;\n }\n return ret ;\n }"}
{"idx": 1117, "target": 0, "func": "static MagickBooleanType load_tile ( Image * image , Image * tile_image , XCFDocInfo * inDocInfo , XCFLayerInfo * inLayerInfo , size_t data_length , ExceptionInfo * exception ) {\n ssize_t y ;\n register ssize_t x ;\n register Quantum * q ;\n ssize_t count ;\n unsigned char * graydata ;\n XCFPixelInfo * xcfdata , * xcfodata ;\n xcfdata = ( XCFPixelInfo * ) AcquireQuantumMemory ( MagickMax ( data_length , tile_image -> columns * tile_image -> rows ) , sizeof ( * xcfdata ) ) ;\n if ( xcfdata == ( XCFPixelInfo * ) NULL ) ThrowBinaryException ( ResourceLimitError , \"MemoryAllocationFailed\" , image -> filename ) ;\n xcfodata = xcfdata ;\n graydata = ( unsigned char * ) xcfdata ;\n count = ReadBlob ( image , data_length , ( unsigned char * ) xcfdata ) ;\n if ( count != ( ssize_t ) data_length ) ThrowBinaryException ( CorruptImageError , \"NotEnoughPixelData\" , image -> filename ) ;\n for ( y = 0 ;\n y < ( ssize_t ) tile_image -> rows ;\n y ++ ) {\n q = GetAuthenticPixels ( tile_image , 0 , y , tile_image -> columns , 1 , exception ) ;\n if ( q == ( Quantum * ) NULL ) break ;\n if ( inDocInfo -> image_type == GIMP_GRAY ) {\n for ( x = 0 ;\n x < ( ssize_t ) tile_image -> columns ;\n x ++ ) {\n SetPixelGray ( tile_image , ScaleCharToQuantum ( * graydata ) , q ) ;\n SetPixelAlpha ( tile_image , ScaleCharToQuantum ( ( unsigned char ) inLayerInfo -> alpha ) , q ) ;\n graydata ++ ;\n q += GetPixelChannels ( tile_image ) ;\n }\n }\n else if ( inDocInfo -> image_type == GIMP_RGB ) {\n for ( x = 0 ;\n x < ( ssize_t ) tile_image -> columns ;\n x ++ ) {\n SetPixelRed ( tile_image , ScaleCharToQuantum ( xcfdata -> red ) , q ) ;\n SetPixelGreen ( tile_image , ScaleCharToQuantum ( xcfdata -> green ) , q ) ;\n SetPixelBlue ( tile_image , ScaleCharToQuantum ( xcfdata -> blue ) , q ) ;\n SetPixelAlpha ( tile_image , xcfdata -> alpha == 255U ? TransparentAlpha : ScaleCharToQuantum ( ( unsigned char ) inLayerInfo -> alpha ) , q ) ;\n xcfdata ++ ;\n q += GetPixelChannels ( tile_image ) ;\n }\n }\n if ( SyncAuthenticPixels ( tile_image , exception ) == MagickFalse ) break ;\n }\n xcfodata = ( XCFPixelInfo * ) RelinquishMagickMemory ( xcfodata ) ;\n return MagickTrue ;\n }"}
{"idx": 1118, "target": 0, "func": "void proto_cleanup ( void ) {\n if ( gpa_name_map ) {\n g_hash_table_destroy ( gpa_name_map ) ;\n gpa_name_map = NULL ;\n }\n g_free ( last_field_name ) ;\n last_field_name = NULL ;\n while ( protocols ) {\n protocol_t * protocol = ( protocol_t * ) protocols -> data ;\n header_field_info * hfinfo ;\n PROTO_REGISTRAR_GET_NTH ( protocol -> proto_id , hfinfo ) ;\n DISSECTOR_ASSERT ( protocol -> proto_id == hfinfo -> id ) ;\n g_slice_free ( header_field_info , hfinfo ) ;\n g_ptr_array_free ( protocol -> fields , TRUE ) ;\n g_list_free ( protocol -> heur_list ) ;\n protocols = g_list_remove ( protocols , protocol ) ;\n g_free ( protocol ) ;\n }\n if ( proto_names ) {\n g_hash_table_destroy ( proto_names ) ;\n proto_names = NULL ;\n }\n if ( proto_short_names ) {\n g_hash_table_destroy ( proto_short_names ) ;\n proto_short_names = NULL ;\n }\n if ( proto_filter_names ) {\n g_hash_table_destroy ( proto_filter_names ) ;\n proto_filter_names = NULL ;\n }\n if ( gpa_hfinfo . allocated_len ) {\n gpa_hfinfo . len = 0 ;\n gpa_hfinfo . allocated_len = 0 ;\n g_free ( gpa_hfinfo . hfi ) ;\n gpa_hfinfo . hfi = NULL ;\n }\n if ( deregistered_fields ) {\n g_ptr_array_free ( deregistered_fields , FALSE ) ;\n deregistered_fields = NULL ;\n }\n if ( deregistered_data ) {\n g_ptr_array_free ( deregistered_data , FALSE ) ;\n deregistered_data = NULL ;\n }\n g_free ( tree_is_expanded ) ;\n tree_is_expanded = NULL ;\n }"}
{"idx": 1119, "target": 0, "func": "static int selinux_secctx_to_secid ( const char * secdata , u32 seclen , u32 * secid ) {\n return security_context_to_sid ( secdata , seclen , secid , GFP_KERNEL ) ;\n }"}
{"idx": 1120, "target": 0, "func": "static int32_t u_scanf_double_handler ( UFILE * input , u_scanf_spec_info * info , ufmt_args * args , const UChar * fmt , int32_t * fmtConsumed , int32_t * argConverted ) {\n ( void ) fmt ;\n ( void ) fmtConsumed ;\n int32_t len ;\n double num ;\n UNumberFormat * format ;\n int32_t parsePos = 0 ;\n int32_t skipped ;\n UErrorCode status = U_ZERO_ERROR ;\n skipped = u_scanf_skip_leading_ws ( input , info -> fPadChar ) ;\n ufile_fill_uchar_buffer ( input ) ;\n len = ( int32_t ) ( input -> str . fLimit - input -> str . fPos ) ;\n if ( info -> fWidth != - 1 ) len = ufmt_min ( len , info -> fWidth ) ;\n format = u_locbund_getNumberFormat ( & input -> str . fBundle , UNUM_DECIMAL ) ;\n if ( format == 0 ) return 0 ;\n skipped += u_scanf_skip_leading_positive_sign ( input , format , & status ) ;\n num = unum_parseDouble ( format , input -> str . fPos , len , & parsePos , & status ) ;\n if ( ! info -> fSkipArg ) {\n if ( info -> fIsLong ) * ( double * ) ( args [ 0 ] . ptrValue ) = num ;\n else if ( info -> fIsLongDouble ) * ( long double * ) ( args [ 0 ] . ptrValue ) = num ;\n else * ( float * ) ( args [ 0 ] . ptrValue ) = ( float ) num ;\n }\n input -> str . fPos += parsePos ;\n * argConverted = ! info -> fSkipArg ;\n return parsePos + skipped ;\n }"}
{"idx": 1121, "target": 0, "func": "static int setenv ( const char * name , const char * value , int overwrite ) {\n size_t buflen = strlen ( name ) + strlen ( value ) + 2 ;\n char * envvar = ( char * ) malloc ( buflen ) ;\n if ( ! envvar ) return ENOMEM ;\n strcpy ( envvar , name ) ;\n strcat ( envvar , \"=\" ) ;\n strcat ( envvar , value ) ;\n putenv ( envvar ) ;\n return 0 ;\n }"}
{"idx": 1122, "target": 0, "func": "void key_invalidate ( struct key * key ) {\n kenter ( \"%d\" , key_serial ( key ) ) ;\n key_check ( key ) ;\n if ( ! test_bit ( KEY_FLAG_INVALIDATED , & key -> flags ) ) {\n down_write_nested ( & key -> sem , 1 ) ;\n if ( ! test_and_set_bit ( KEY_FLAG_INVALIDATED , & key -> flags ) ) key_schedule_gc_links ( ) ;\n up_write ( & key -> sem ) ;\n }\n }"}
{"idx": 1123, "target": 0, "func": "int xsltSetCtxtSecurityPrefs ( xsltSecurityPrefsPtr sec , xsltTransformContextPtr ctxt ) {\n if ( ctxt == NULL ) return ( - 1 ) ;\n ctxt -> sec = ( void * ) sec ;\n return ( 0 ) ;\n }"}
{"idx": 1124, "target": 0, "func": "static int archive_string_normalize_D ( struct archive_string * as , const void * _p , size_t len , struct archive_string_conv * sc ) {\n const char * s = ( const char * ) _p ;\n char * p , * endp ;\n uint32_t uc , uc2 ;\n size_t w ;\n int always_replace , n , n2 , ret = 0 , spair , ts , tm ;\n int ( * parse ) ( uint32_t * , const char * , size_t ) ;\n size_t ( * unparse ) ( char * , size_t , uint32_t ) ;\n always_replace = 1 ;\n ts = 1 ;\n if ( sc -> flag & SCONV_TO_UTF16BE ) {\n unparse = unicode_to_utf16be ;\n ts = 2 ;\n if ( sc -> flag & SCONV_FROM_UTF16BE ) always_replace = 0 ;\n }\n else if ( sc -> flag & SCONV_TO_UTF16LE ) {\n unparse = unicode_to_utf16le ;\n ts = 2 ;\n if ( sc -> flag & SCONV_FROM_UTF16LE ) always_replace = 0 ;\n }\n else if ( sc -> flag & SCONV_TO_UTF8 ) {\n unparse = unicode_to_utf8 ;\n if ( sc -> flag & SCONV_FROM_UTF8 ) always_replace = 0 ;\n }\n else {\n always_replace = 0 ;\n if ( sc -> flag & SCONV_FROM_UTF16BE ) {\n unparse = unicode_to_utf16be ;\n ts = 2 ;\n }\n else if ( sc -> flag & SCONV_FROM_UTF16LE ) {\n unparse = unicode_to_utf16le ;\n ts = 2 ;\n }\n else {\n unparse = unicode_to_utf8 ;\n }\n }\n if ( sc -> flag & SCONV_FROM_UTF16BE ) {\n parse = utf16be_to_unicode ;\n tm = 1 ;\n spair = 4 ;\n }\n else if ( sc -> flag & SCONV_FROM_UTF16LE ) {\n parse = utf16le_to_unicode ;\n tm = 1 ;\n spair = 4 ;\n }\n else {\n parse = cesu8_to_unicode ;\n tm = ts ;\n spair = 6 ;\n }\n if ( archive_string_ensure ( as , as -> length + len * tm + ts ) == NULL ) return ( - 1 ) ;\n p = as -> s + as -> length ;\n endp = as -> s + as -> buffer_length - ts ;\n while ( ( n = parse ( & uc , s , len ) ) != 0 ) {\n const char * ucptr ;\n uint32_t cp1 , cp2 ;\n int SIndex ;\n struct {\n uint32_t uc ;\n int ccc ;\n }\n fdc [ FDC_MAX ] ;\n int fdi , fdj ;\n int ccc ;\n check_first_code : if ( n < 0 ) {\n UNPARSE ( p , endp , uc ) ;\n s += n * - 1 ;\n len -= n * - 1 ;\n ret = - 1 ;\n continue ;\n }\n else if ( n == spair || always_replace ) ucptr = NULL ;\n else ucptr = s ;\n s += n ;\n len -= n ;\n if ( ( SIndex = uc - HC_SBASE ) >= 0 && SIndex < HC_SCOUNT ) {\n int L = HC_LBASE + SIndex / HC_NCOUNT ;\n int V = HC_VBASE + ( SIndex % HC_NCOUNT ) / HC_TCOUNT ;\n int T = HC_TBASE + SIndex % HC_TCOUNT ;\n REPLACE_UC_WITH ( L ) ;\n WRITE_UC ( ) ;\n REPLACE_UC_WITH ( V ) ;\n WRITE_UC ( ) ;\n if ( T != HC_TBASE ) {\n REPLACE_UC_WITH ( T ) ;\n WRITE_UC ( ) ;\n }\n continue ;\n }\n if ( IS_DECOMPOSABLE_BLOCK ( uc ) && CCC ( uc ) != 0 ) {\n WRITE_UC ( ) ;\n continue ;\n }\n fdi = 0 ;\n while ( get_nfd ( & cp1 , & cp2 , uc ) && fdi < FDC_MAX ) {\n int k ;\n for ( k = fdi ;\n k > 0 ;\n k -- ) fdc [ k ] = fdc [ k - 1 ] ;\n fdc [ 0 ] . ccc = CCC ( cp2 ) ;\n fdc [ 0 ] . uc = cp2 ;\n fdi ++ ;\n REPLACE_UC_WITH ( cp1 ) ;\n }\n while ( ( n2 = parse ( & uc2 , s , len ) ) > 0 && ( ccc = CCC ( uc2 ) ) != 0 && fdi < FDC_MAX ) {\n int j , k ;\n s += n2 ;\n len -= n2 ;\n for ( j = 0 ;\n j < fdi ;\n j ++ ) {\n if ( fdc [ j ] . ccc > ccc ) break ;\n }\n if ( j < fdi ) {\n for ( k = fdi ;\n k > j ;\n k -- ) fdc [ k ] = fdc [ k - 1 ] ;\n fdc [ j ] . ccc = ccc ;\n fdc [ j ] . uc = uc2 ;\n }\n else {\n fdc [ fdi ] . ccc = ccc ;\n fdc [ fdi ] . uc = uc2 ;\n }\n fdi ++ ;\n }\n WRITE_UC ( ) ;\n for ( fdj = 0 ;\n fdj < fdi ;\n fdj ++ ) {\n REPLACE_UC_WITH ( fdc [ fdj ] . uc ) ;\n WRITE_UC ( ) ;\n }\n if ( n2 == 0 ) break ;\n REPLACE_UC_WITH ( uc2 ) ;\n n = n2 ;\n goto check_first_code ;\n }\n as -> length = p - as -> s ;\n as -> s [ as -> length ] = '\\0' ;\n if ( ts == 2 ) as -> s [ as -> length + 1 ] = '\\0' ;\n return ( ret ) ;\n }"}
{"idx": 1125, "target": 1, "func": "static void save_command ( guint32 cmd , guint32 arg0 , guint32 arg1 , guint32 data_length , guint32 crc32 , service_data_t * service_data , gint proto , void * data , packet_info * pinfo , service_data_t * * returned_service_data , command_data_t * * returned_command_data ) {\n wmem_tree_key_t key [ 6 ] ;\n guint32 interface_id ;\n guint32 bus_id ;\n guint32 device_address ;\n guint32 side_id ;\n guint32 frame_number ;\n command_data_t * command_data ;\n wmem_tree_t * wmem_tree ;\n gint direction = P2P_DIR_UNKNOWN ;\n usb_conv_info_t * usb_conv_info = ( usb_conv_info_t * ) data ;\n frame_number = pinfo -> num ;\n if ( pinfo -> phdr -> presence_flags & WTAP_HAS_INTERFACE_ID ) interface_id = pinfo -> phdr -> interface_id ;\n else interface_id = 0 ;\n if ( proto == proto_usb ) {\n usb_conv_info = ( usb_conv_info_t * ) data ;\n DISSECTOR_ASSERT ( usb_conv_info ) ;\n direction = usb_conv_info -> direction ;\n bus_id = usb_conv_info -> bus_id ;\n device_address = usb_conv_info -> device_address ;\n key [ 0 ] . length = 1 ;\n key [ 0 ] . key = & interface_id ;\n key [ 1 ] . length = 1 ;\n key [ 1 ] . key = & bus_id ;\n key [ 2 ] . length = 1 ;\n key [ 2 ] . key = & device_address ;\n key [ 3 ] . length = 1 ;\n key [ 3 ] . key = & side_id ;\n key [ 4 ] . length = 1 ;\n key [ 4 ] . key = & frame_number ;\n key [ 5 ] . length = 0 ;\n key [ 5 ] . key = NULL ;\n }\n else {\n if ( pinfo -> destport == ADB_TCP_PORT ) direction = P2P_DIR_SENT ;\n else direction = P2P_DIR_RECV ;\n key [ 0 ] . length = 1 ;\n key [ 0 ] . key = & interface_id ;\n key [ 1 ] . length = 1 ;\n key [ 2 ] . length = 1 ;\n if ( direction == P2P_DIR_SENT ) {\n key [ 1 ] . key = & pinfo -> srcport ;\n key [ 2 ] . key = & pinfo -> destport ;\n }\n else {\n key [ 1 ] . key = & pinfo -> destport ;\n key [ 2 ] . key = & pinfo -> srcport ;\n }\n key [ 3 ] . length = 1 ;\n key [ 3 ] . key = & side_id ;\n key [ 4 ] . length = 1 ;\n key [ 4 ] . key = & frame_number ;\n key [ 5 ] . length = 0 ;\n key [ 5 ] . key = NULL ;\n }\n if ( direction == P2P_DIR_SENT ) if ( cmd == A_CLSE ) side_id = arg1 ;\n else side_id = arg0 ;\n else side_id = arg1 ;\n if ( cmd == A_OPEN ) {\n service_data = wmem_new ( wmem_file_scope ( ) , service_data_t ) ;\n service_data -> start_in_frame = pinfo -> num ;\n service_data -> close_local_in_frame = max_in_frame ;\n service_data -> close_remote_in_frame = max_in_frame ;\n service_data -> local_id = arg0 ;\n service_data -> remote_id = arg1 ;\n service_data -> service = \"unknown\" ;\n wmem_tree_insert32_array ( service_info , key , service_data ) ;\n }\n command_data = wmem_new ( wmem_file_scope ( ) , command_data_t ) ;\n command_data -> command = cmd ;\n command_data -> arg0 = arg0 ;\n command_data -> arg1 = arg1 ;\n command_data -> command_in_frame = pinfo -> num ;\n command_data -> response_in_frame = max_in_frame ;\n command_data -> crc32 = crc32 ;\n command_data -> data_length = data_length ;\n if ( data_length == 0 ) command_data -> completed_in_frame = pinfo -> num ;\n else command_data -> completed_in_frame = max_in_frame ;\n command_data -> reassemble_data_length = 0 ;\n command_data -> reassemble_data = ( guint8 * ) wmem_alloc ( wmem_file_scope ( ) , command_data -> data_length ) ;\n key [ 3 ] . length = 1 ;\n key [ 3 ] . key = & frame_number ;\n key [ 4 ] . length = 0 ;\n key [ 4 ] . key = NULL ;\n wmem_tree_insert32_array ( command_info , key , command_data ) ;\n if ( direction == P2P_DIR_SENT ) if ( command_data -> command == A_CLSE ) side_id = command_data -> arg1 ;\n else side_id = command_data -> arg0 ;\n else side_id = command_data -> arg1 ;\n key [ 3 ] . length = 1 ;\n key [ 3 ] . key = & side_id ;\n key [ 4 ] . length = 0 ;\n key [ 4 ] . key = NULL ;\n wmem_tree = ( wmem_tree_t * ) wmem_tree_lookup32_array ( service_info , key ) ;\n if ( wmem_tree ) {\n service_data = ( service_data_t * ) wmem_tree_lookup32_le ( wmem_tree , frame_number ) ;\n }\n if ( cmd == A_OKAY ) {\n if ( ! service_data ) {\n if ( direction == P2P_DIR_SENT ) side_id = command_data -> arg0 ;\n else side_id = command_data -> arg1 ;\n wmem_tree = ( wmem_tree_t * ) wmem_tree_lookup32_array ( service_info , key ) ;\n if ( wmem_tree ) {\n service_data = ( service_data_t * ) wmem_tree_lookup32_le ( wmem_tree , frame_number ) ;\n }\n }\n if ( service_data && service_data -> remote_id == 0 && direction == P2P_DIR_RECV ) {\n if ( direction == P2P_DIR_SENT ) {\n service_data -> remote_id = arg1 ;\n }\n else {\n service_data -> remote_id = arg0 ;\n }\n side_id = service_data -> remote_id ;\n key [ 4 ] . length = 1 ;\n key [ 4 ] . key = & frame_number ;\n key [ 5 ] . length = 0 ;\n key [ 5 ] . key = NULL ;\n wmem_tree_insert32_array ( service_info , key , service_data ) ;\n }\n }\n else if ( cmd == A_CLSE ) {\n if ( service_data ) {\n if ( direction == P2P_DIR_RECV && service_data -> local_id == arg1 ) service_data -> close_local_in_frame = pinfo -> num ;\n else if ( direction == P2P_DIR_SENT && service_data -> remote_id == arg1 ) service_data -> close_remote_in_frame = pinfo -> num ;\n }\n }\n DISSECTOR_ASSERT ( returned_service_data && returned_command_data ) ;\n * returned_service_data = service_data ;\n * returned_command_data = command_data ;\n }"}
{"idx": 1126, "target": 0, "func": "size_t Curl_FormReader ( char * buffer , size_t size , size_t nitems , FILE * mydata ) {\n struct Form * form ;\n size_t wantedsize ;\n size_t gotsize = 0 ;\n form = ( struct Form * ) mydata ;\n wantedsize = size * nitems ;\n if ( ! form -> data ) return 0 ;\n if ( ( form -> data -> type == FORM_FILE ) || ( form -> data -> type == FORM_CALLBACK ) ) {\n gotsize = readfromfile ( form , buffer , wantedsize ) ;\n if ( gotsize ) return gotsize ;\n }\n do {\n if ( ( form -> data -> length - form -> sent ) > wantedsize - gotsize ) {\n memcpy ( buffer + gotsize , form -> data -> line + form -> sent , wantedsize - gotsize ) ;\n form -> sent += wantedsize - gotsize ;\n return wantedsize ;\n }\n memcpy ( buffer + gotsize , form -> data -> line + form -> sent , ( form -> data -> length - form -> sent ) ) ;\n gotsize += form -> data -> length - form -> sent ;\n form -> sent = 0 ;\n form -> data = form -> data -> next ;\n }\n while ( form -> data && ( form -> data -> type < FORM_CALLBACK ) ) ;\n return gotsize ;\n }"}
{"idx": 1127, "target": 0, "func": "unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 ) VAR ( 8 , 4 ) SUBPIX_VAR ( 8 , 4 ) SUBPIX_AVG_VAR ( 8 , 4 ) VAR ( 8 , 8 ) SUBPIX_VAR ( 8 , 8 ) SUBPIX_AVG_VAR ( 8 , 8 )"}
{"idx": 1128, "target": 0, "func": "static void pdf_run_EMC ( fz_context * ctx , pdf_processor * proc ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n fz_end_layer ( ctx , pr -> dev ) ;\n }"}
{"idx": 1129, "target": 0, "func": "struct archive_string_conv * archive_string_conversion_from_charset ( struct archive * a , const char * charset , int best_effort ) {\n int flag = SCONV_FROM_CHARSET ;\n if ( best_effort ) flag |= SCONV_BEST_EFFORT ;\n return ( get_sconv_object ( a , charset , get_current_charset ( a ) , flag ) ) ;\n }"}
{"idx": 1130, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , SameDocumentNavigation ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : FIRST_LAYOUT ) ;\n waiter -> AddPageExpectation ( TimingField : : LOAD_EVENT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/title1.html\" ) ) ;\n waiter -> Wait ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramDomContentLoaded , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramLoad , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramFirstLayout , 1 ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/title1.html#hash\" ) ) ;\n NavigateToUntrackedUrl ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramDomContentLoaded , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramLoad , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramFirstLayout , 1 ) ;\n }"}
{"idx": 1131, "target": 1, "func": "int ff_h263_decode_mb ( MpegEncContext * s , int16_t block [ 6 ] [ 64 ] ) {\n int cbpc , cbpy , i , cbp , pred_x , pred_y , mx , my , dquant ;\n int16_t * mot_val ;\n const int xy = s -> mb_x + s -> mb_y * s -> mb_stride ;\n int cbpb = 0 , pb_mv_count = 0 ;\n assert ( ! s -> h263_pred ) ;\n if ( s -> pict_type == AV_PICTURE_TYPE_P ) {\n do {\n if ( get_bits1 ( & s -> gb ) ) {\n s -> mb_intra = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) s -> block_last_index [ i ] = - 1 ;\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n s -> current_picture . f . mb_type [ xy ] = MB_TYPE_SKIP | MB_TYPE_16x16 | MB_TYPE_L0 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = 0 ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = 0 ;\n s -> mb_skipped = ! ( s -> obmc | s -> loop_filter ) ;\n goto end ;\n }\n cbpc = get_vlc2 ( & s -> gb , ff_h263_inter_MCBPC_vlc . table , INTER_MCBPC_VLC_BITS , 2 ) ;\n if ( cbpc < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"cbpc damaged at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n }\n while ( cbpc == 20 ) ;\n s -> dsp . clear_blocks ( s -> block [ 0 ] ) ;\n dquant = cbpc & 8 ;\n s -> mb_intra = ( ( cbpc & 4 ) != 0 ) ;\n if ( s -> mb_intra ) goto intra ;\n if ( s -> pb_frame && get_bits1 ( & s -> gb ) ) pb_mv_count = h263_get_modb ( & s -> gb , s -> pb_frame , & cbpb ) ;\n cbpy = get_vlc2 ( & s -> gb , ff_h263_cbpy_vlc . table , CBPY_VLC_BITS , 1 ) ;\n if ( s -> alt_inter_vlc == 0 || ( cbpc & 3 ) != 3 ) cbpy ^= 0xF ;\n cbp = ( cbpc & 3 ) | ( cbpy << 2 ) ;\n if ( dquant ) {\n h263_decode_dquant ( s ) ;\n }\n s -> mv_dir = MV_DIR_FORWARD ;\n if ( ( cbpc & 16 ) == 0 ) {\n s -> current_picture . f . mb_type [ xy ] = MB_TYPE_16x16 | MB_TYPE_L0 ;\n s -> mv_type = MV_TYPE_16X16 ;\n ff_h263_pred_motion ( s , 0 , 0 , & pred_x , & pred_y ) ;\n if ( s -> umvplus ) mx = h263p_decode_umotion ( s , pred_x ) ;\n else mx = ff_h263_decode_motion ( s , pred_x , 1 ) ;\n if ( mx >= 0xffff ) return - 1 ;\n if ( s -> umvplus ) my = h263p_decode_umotion ( s , pred_y ) ;\n else my = ff_h263_decode_motion ( s , pred_y , 1 ) ;\n if ( my >= 0xffff ) return - 1 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = mx ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = my ;\n if ( s -> umvplus && ( mx - pred_x ) == 1 && ( my - pred_y ) == 1 ) skip_bits1 ( & s -> gb ) ;\n }\n else {\n s -> current_picture . f . mb_type [ xy ] = MB_TYPE_8x8 | MB_TYPE_L0 ;\n s -> mv_type = MV_TYPE_8X8 ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n mot_val = ff_h263_pred_motion ( s , i , 0 , & pred_x , & pred_y ) ;\n if ( s -> umvplus ) mx = h263p_decode_umotion ( s , pred_x ) ;\n else mx = ff_h263_decode_motion ( s , pred_x , 1 ) ;\n if ( mx >= 0xffff ) return - 1 ;\n if ( s -> umvplus ) my = h263p_decode_umotion ( s , pred_y ) ;\n else my = ff_h263_decode_motion ( s , pred_y , 1 ) ;\n if ( my >= 0xffff ) return - 1 ;\n s -> mv [ 0 ] [ i ] [ 0 ] = mx ;\n s -> mv [ 0 ] [ i ] [ 1 ] = my ;\n if ( s -> umvplus && ( mx - pred_x ) == 1 && ( my - pred_y ) == 1 ) skip_bits1 ( & s -> gb ) ;\n mot_val [ 0 ] = mx ;\n mot_val [ 1 ] = my ;\n }\n }\n }\n else if ( s -> pict_type == AV_PICTURE_TYPE_B ) {\n int mb_type ;\n const int stride = s -> b8_stride ;\n int16_t * mot_val0 = s -> current_picture . f . motion_val [ 0 ] [ 2 * ( s -> mb_x + s -> mb_y * stride ) ] ;\n int16_t * mot_val1 = s -> current_picture . f . motion_val [ 1 ] [ 2 * ( s -> mb_x + s -> mb_y * stride ) ] ;\n mot_val0 [ 0 ] = mot_val0 [ 2 ] = mot_val0 [ 0 + 2 * stride ] = mot_val0 [ 2 + 2 * stride ] = mot_val0 [ 1 ] = mot_val0 [ 3 ] = mot_val0 [ 1 + 2 * stride ] = mot_val0 [ 3 + 2 * stride ] = mot_val1 [ 0 ] = mot_val1 [ 2 ] = mot_val1 [ 0 + 2 * stride ] = mot_val1 [ 2 + 2 * stride ] = mot_val1 [ 1 ] = mot_val1 [ 3 ] = mot_val1 [ 1 + 2 * stride ] = mot_val1 [ 3 + 2 * stride ] = 0 ;\n do {\n mb_type = get_vlc2 ( & s -> gb , h263_mbtype_b_vlc . table , H263_MBTYPE_B_VLC_BITS , 2 ) ;\n if ( mb_type < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"b mb_type damaged at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n mb_type = h263_mb_type_b_map [ mb_type ] ;\n }\n while ( ! mb_type ) ;\n s -> mb_intra = IS_INTRA ( mb_type ) ;\n if ( HAS_CBP ( mb_type ) ) {\n s -> dsp . clear_blocks ( s -> block [ 0 ] ) ;\n cbpc = get_vlc2 ( & s -> gb , cbpc_b_vlc . table , CBPC_B_VLC_BITS , 1 ) ;\n if ( s -> mb_intra ) {\n dquant = IS_QUANT ( mb_type ) ;\n goto intra ;\n }\n cbpy = get_vlc2 ( & s -> gb , ff_h263_cbpy_vlc . table , CBPY_VLC_BITS , 1 ) ;\n if ( cbpy < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"b cbpy damaged at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n if ( s -> alt_inter_vlc == 0 || ( cbpc & 3 ) != 3 ) cbpy ^= 0xF ;\n cbp = ( cbpc & 3 ) | ( cbpy << 2 ) ;\n }\n else cbp = 0 ;\n assert ( ! s -> mb_intra ) ;\n if ( IS_QUANT ( mb_type ) ) {\n h263_decode_dquant ( s ) ;\n }\n if ( IS_DIRECT ( mb_type ) ) {\n s -> mv_dir = MV_DIR_FORWARD | MV_DIR_BACKWARD | MV_DIRECT ;\n mb_type |= ff_mpeg4_set_direct_mv ( s , 0 , 0 ) ;\n }\n else {\n s -> mv_dir = 0 ;\n s -> mv_type = MV_TYPE_16X16 ;\n if ( USES_LIST ( mb_type , 0 ) ) {\n int16_t * mot_val = ff_h263_pred_motion ( s , 0 , 0 , & mx , & my ) ;\n s -> mv_dir = MV_DIR_FORWARD ;\n mx = ff_h263_decode_motion ( s , mx , 1 ) ;\n my = ff_h263_decode_motion ( s , my , 1 ) ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = mx ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = my ;\n mot_val [ 0 ] = mot_val [ 2 ] = mot_val [ 0 + 2 * stride ] = mot_val [ 2 + 2 * stride ] = mx ;\n mot_val [ 1 ] = mot_val [ 3 ] = mot_val [ 1 + 2 * stride ] = mot_val [ 3 + 2 * stride ] = my ;\n }\n if ( USES_LIST ( mb_type , 1 ) ) {\n int16_t * mot_val = ff_h263_pred_motion ( s , 0 , 1 , & mx , & my ) ;\n s -> mv_dir |= MV_DIR_BACKWARD ;\n mx = ff_h263_decode_motion ( s , mx , 1 ) ;\n my = ff_h263_decode_motion ( s , my , 1 ) ;\n s -> mv [ 1 ] [ 0 ] [ 0 ] = mx ;\n s -> mv [ 1 ] [ 0 ] [ 1 ] = my ;\n mot_val [ 0 ] = mot_val [ 2 ] = mot_val [ 0 + 2 * stride ] = mot_val [ 2 + 2 * stride ] = mx ;\n mot_val [ 1 ] = mot_val [ 3 ] = mot_val [ 1 + 2 * stride ] = mot_val [ 3 + 2 * stride ] = my ;\n }\n }\n s -> current_picture . f . mb_type [ xy ] = mb_type ;\n }\n else {\n do {\n cbpc = get_vlc2 ( & s -> gb , ff_h263_intra_MCBPC_vlc . table , INTRA_MCBPC_VLC_BITS , 2 ) ;\n if ( cbpc < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"I cbpc damaged at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n }\n while ( cbpc == 8 ) ;\n s -> dsp . clear_blocks ( s -> block [ 0 ] ) ;\n dquant = cbpc & 4 ;\n s -> mb_intra = 1 ;\n intra : s -> current_picture . f . mb_type [ xy ] = MB_TYPE_INTRA ;\n if ( s -> h263_aic ) {\n s -> ac_pred = get_bits1 ( & s -> gb ) ;\n if ( s -> ac_pred ) {\n s -> current_picture . f . mb_type [ xy ] = MB_TYPE_INTRA | MB_TYPE_ACPRED ;\n s -> h263_aic_dir = get_bits1 ( & s -> gb ) ;\n }\n }\n else s -> ac_pred = 0 ;\n if ( s -> pb_frame && get_bits1 ( & s -> gb ) ) pb_mv_count = h263_get_modb ( & s -> gb , s -> pb_frame , & cbpb ) ;\n cbpy = get_vlc2 ( & s -> gb , ff_h263_cbpy_vlc . table , CBPY_VLC_BITS , 1 ) ;\n if ( cbpy < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"I cbpy damaged at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n cbp = ( cbpc & 3 ) | ( cbpy << 2 ) ;\n if ( dquant ) {\n h263_decode_dquant ( s ) ;\n }\n pb_mv_count += ! ! s -> pb_frame ;\n }\n while ( pb_mv_count -- ) {\n ff_h263_decode_motion ( s , 0 , 1 ) ;\n ff_h263_decode_motion ( s , 0 , 1 ) ;\n }\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( h263_decode_block ( s , block [ i ] , i , cbp & 32 ) < 0 ) return - 1 ;\n cbp += cbp ;\n }\n if ( s -> pb_frame && h263_skip_b_part ( s , cbpb ) < 0 ) return - 1 ;\n if ( s -> obmc && ! s -> mb_intra ) {\n if ( s -> pict_type == AV_PICTURE_TYPE_P && s -> mb_x + 1 < s -> mb_width && s -> mb_num_left != 1 ) preview_obmc ( s ) ;\n }\n end : {\n int v = show_bits ( & s -> gb , 16 ) ;\n if ( get_bits_left ( & s -> gb ) < 16 ) {\n v >>= 16 - get_bits_left ( & s -> gb ) ;\n }\n if ( v == 0 ) return SLICE_END ;\n }\n return SLICE_OK ;\n }"}
{"idx": 1132, "target": 0, "func": "static gboolean is_long_attribute_value ( bluetooth_uuid_t uuid ) {\n switch ( uuid . bt_uuid ) {\n case 0x2901 : case 0x2A00 : case 0x2A24 : case 0x2A25 : case 0x2A26 : case 0x2A27 : case 0x2A28 : case 0x2A29 : case 0x2A4B : case 0x2A87 : case 0x2A90 : case 0x2AA4 : case 0x2AB5 : case 0x2AB6 : case 0x2AB7 : case 0x2AB9 : case 0x2ABE : return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 1133, "target": 0, "func": "static gcry_err_code_t pubkey_decrypt ( int algorithm , gcry_mpi_t * result , gcry_mpi_t * data , gcry_mpi_t * skey , int flags ) {\n gcry_pk_spec_t * pubkey ;\n gcry_module_t module ;\n gcry_err_code_t rc ;\n int i ;\n * result = NULL ;\n if ( DBG_CIPHER && ! fips_mode ( ) ) {\n log_debug ( \"pubkey_decrypt: algo=%d\\n\" , algorithm ) ;\n for ( i = 0 ;\n i < pubkey_get_nskey ( algorithm ) ;\n i ++ ) log_mpidump ( \" skey\" , skey [ i ] ) ;\n for ( i = 0 ;\n i < pubkey_get_nenc ( algorithm ) ;\n i ++ ) log_mpidump ( \" data\" , data [ i ] ) ;\n }\n ath_mutex_lock ( & pubkeys_registered_lock ) ;\n module = _gcry_module_lookup_id ( pubkeys_registered , algorithm ) ;\n if ( module ) {\n pubkey = ( gcry_pk_spec_t * ) module -> spec ;\n rc = pubkey -> decrypt ( algorithm , result , data , skey , flags ) ;\n _gcry_module_release ( module ) ;\n goto ready ;\n }\n rc = GPG_ERR_PUBKEY_ALGO ;\n ready : ath_mutex_unlock ( & pubkeys_registered_lock ) ;\n if ( ! rc && DBG_CIPHER && ! fips_mode ( ) ) log_mpidump ( \" plain\" , * result ) ;\n return rc ;\n }"}
{"idx": 1134, "target": 0, "func": "static VALUE cState_depth_set ( VALUE self , VALUE depth ) {\n GET_STATE ( self ) ;\n Check_Type ( depth , T_FIXNUM ) ;\n state -> depth = FIX2LONG ( depth ) ;\n return Qnil ;\n }"}
{"idx": 1135, "target": 0, "func": "int ff_mpeg1_find_frame_end ( ParseContext * pc , const uint8_t * buf , int buf_size , AVCodecParserContext * s ) {\n int i ;\n uint32_t state = pc -> state ;\n if ( buf_size == 0 ) return 0 ;\n for ( i = 0 ;\n i < buf_size ;\n i ++ ) {\n assert ( pc -> frame_start_found >= 0 && pc -> frame_start_found <= 4 ) ;\n if ( pc -> frame_start_found & 1 ) {\n if ( state == EXT_START_CODE && ( buf [ i ] & 0xF0 ) != 0x80 ) pc -> frame_start_found -- ;\n else if ( state == EXT_START_CODE + 2 ) {\n if ( ( buf [ i ] & 3 ) == 3 ) pc -> frame_start_found = 0 ;\n else pc -> frame_start_found = ( pc -> frame_start_found + 1 ) & 3 ;\n }\n state ++ ;\n }\n else {\n i = avpriv_mpv_find_start_code ( buf + i , buf + buf_size , & state ) - buf - 1 ;\n if ( pc -> frame_start_found == 0 && state >= SLICE_MIN_START_CODE && state <= SLICE_MAX_START_CODE ) {\n i ++ ;\n pc -> frame_start_found = 4 ;\n }\n if ( state == SEQ_END_CODE ) {\n pc -> frame_start_found = 0 ;\n pc -> state = - 1 ;\n return i + 1 ;\n }\n if ( pc -> frame_start_found == 2 && state == SEQ_START_CODE ) pc -> frame_start_found = 0 ;\n if ( pc -> frame_start_found < 4 && state == EXT_START_CODE ) pc -> frame_start_found ++ ;\n if ( pc -> frame_start_found == 4 && ( state & 0xFFFFFF00 ) == 0x100 ) {\n if ( state < SLICE_MIN_START_CODE || state > SLICE_MAX_START_CODE ) {\n pc -> frame_start_found = 0 ;\n pc -> state = - 1 ;\n return i - 3 ;\n }\n }\n if ( pc -> frame_start_found == 0 && s && state == PICTURE_START_CODE ) {\n ff_fetch_timestamp ( s , i - 3 , 1 ) ;\n }\n }\n }\n pc -> state = state ;\n return END_NOT_FOUND ;\n }"}
{"idx": 1136, "target": 1, "func": "int ECDSA_verify ( int type , const unsigned char * dgst , int dgst_len , const unsigned char * sigbuf , int sig_len , EC_KEY * eckey ) {\n ECDSA_SIG * s ;\n int ret = - 1 ;\n s = ECDSA_SIG_new ( ) ;\n if ( s == NULL ) return ( ret ) ;\n if ( d2i_ECDSA_SIG ( & s , & sigbuf , sig_len ) == NULL ) goto err ;\n ret = ECDSA_do_verify ( dgst , dgst_len , s , eckey ) ;\n err : ECDSA_SIG_free ( s ) ;\n return ( ret ) ;\n }"}
{"idx": 1137, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( SitePerProcessInteractiveBrowserTest , SequentialFocusNavigation ) {\n GURL main_url ( embedded_test_server ( ) -> GetURL ( \"a.com\" , \"/cross_site_iframe_factory.html?a(b,c)\" ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , main_url ) ;\n content : : WebContents * web_contents = browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) ;\n content : : RenderFrameHost * main_frame = web_contents -> GetMainFrame ( ) ;\n content : : RenderFrameHost * child1 = ChildFrameAt ( main_frame , 0 ) ;\n ASSERT_NE ( nullptr , child1 ) ;\n content : : RenderFrameHost * child2 = ChildFrameAt ( main_frame , 1 ) ;\n ASSERT_NE ( nullptr , child2 ) ;\n EXPECT_TRUE ( ExecuteScript ( main_frame , \"window.name = 'root';\n\" ) ) ;\n EXPECT_TRUE ( ExecuteScript ( child1 , \"window.name = 'child1';\n\" ) ) ;\n EXPECT_TRUE ( ExecuteScript ( child2 , \"window.name = 'child2';\n\" ) ) ;\n std : : string script = \"function onFocus(e) {\n\" \" domAutomationController.setAutomationId(0);\n\" \" domAutomationController.send(window.name + '-focused-' + e.target.id);\n\" \"}\n\" \"var input1 = document.createElement('input');\n\" \"input1.id = 'input1';\n\" \"var input2 = document.createElement('input');\n\" \"input2.id = 'input2';\n\" \"document.body.insertBefore(input1, document.body.firstChild);\n\" \"document.body.appendChild(input2);\n\" \"input1.addEventListener('focus', onFocus, false);\n\" \"input2.addEventListener('focus', onFocus, false);\n\" ;\n EXPECT_TRUE ( ExecuteScript ( main_frame , script ) ) ;\n EXPECT_TRUE ( ExecuteScript ( child1 , script ) ) ;\n EXPECT_TRUE ( ExecuteScript ( child2 , script ) ) ;\n auto press_tab_and_wait_for_message = [ web_contents ] ( bool reverse ) {\n content : : DOMMessageQueue msg_queue ;\n std : : string reply ;\n SimulateKeyPress ( web_contents , ui : : DomKey : : TAB , ui : : DomCode : : TAB , ui : : VKEY_TAB , false , reverse , false , false ) ;\n EXPECT_TRUE ( msg_queue . WaitForMessage ( & reply ) ) ;\n return reply ;\n }\n ;\n EXPECT_EQ ( \"\\\"root-focused-input1\\\"\" , press_tab_and_wait_for_message ( false ) ) ;\n EXPECT_EQ ( main_frame , web_contents -> GetFocusedFrame ( ) ) ;\n EXPECT_EQ ( \"\\\"child1-focused-input1\\\"\" , press_tab_and_wait_for_message ( false ) ) ;\n EXPECT_EQ ( child1 , web_contents -> GetFocusedFrame ( ) ) ;\n EXPECT_EQ ( \"\\\"child1-focused-input2\\\"\" , press_tab_and_wait_for_message ( false ) ) ;\n EXPECT_EQ ( \"\\\"child2-focused-input1\\\"\" , press_tab_and_wait_for_message ( false ) ) ;\n EXPECT_EQ ( child2 , web_contents -> GetFocusedFrame ( ) ) ;\n EXPECT_EQ ( \"\\\"child2-focused-input2\\\"\" , press_tab_and_wait_for_message ( false ) ) ;\n EXPECT_EQ ( \"\\\"root-focused-input2\\\"\" , press_tab_and_wait_for_message ( false ) ) ;\n EXPECT_EQ ( main_frame , web_contents -> GetFocusedFrame ( ) ) ;\n EXPECT_EQ ( \"\\\"child2-focused-input2\\\"\" , press_tab_and_wait_for_message ( true ) ) ;\n EXPECT_EQ ( child2 , web_contents -> GetFocusedFrame ( ) ) ;\n EXPECT_EQ ( \"\\\"child2-focused-input1\\\"\" , press_tab_and_wait_for_message ( true ) ) ;\n EXPECT_EQ ( \"\\\"child1-focused-input2\\\"\" , press_tab_and_wait_for_message ( true ) ) ;\n EXPECT_EQ ( child1 , web_contents -> GetFocusedFrame ( ) ) ;\n EXPECT_EQ ( \"\\\"child1-focused-input1\\\"\" , press_tab_and_wait_for_message ( true ) ) ;\n EXPECT_EQ ( \"\\\"root-focused-input1\\\"\" , press_tab_and_wait_for_message ( true ) ) ;\n EXPECT_EQ ( main_frame , web_contents -> GetFocusedFrame ( ) ) ;\n }"}
{"idx": 1138, "target": 1, "func": "static void choose_partitioning ( VP9_COMP * cpi , const TileInfo * const tile , int mi_row , int mi_col ) {\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCK * x = & cpi -> mb ;\n MACROBLOCKD * xd = & cpi -> mb . e_mbd ;\n int i , j , k ;\n v64x64 vt ;\n uint8_t * s ;\n const uint8_t * d ;\n int sp ;\n int dp ;\n int pixels_wide = 64 , pixels_high = 64 ;\n int_mv nearest_mv , near_mv ;\n const YV12_BUFFER_CONFIG * yv12 = get_ref_frame_buffer ( cpi , LAST_FRAME ) ;\n const struct scale_factors * const sf = & cm -> frame_refs [ LAST_FRAME - 1 ] . sf ;\n vp9_zero ( vt ) ;\n set_offsets ( cpi , tile , mi_row , mi_col , BLOCK_64X64 ) ;\n if ( xd -> mb_to_right_edge < 0 ) pixels_wide += ( xd -> mb_to_right_edge >> 3 ) ;\n if ( xd -> mb_to_bottom_edge < 0 ) pixels_high += ( xd -> mb_to_bottom_edge >> 3 ) ;\n s = x -> plane [ 0 ] . src . buf ;\n sp = x -> plane [ 0 ] . src . stride ;\n if ( cm -> frame_type != KEY_FRAME ) {\n vp9_setup_pre_planes ( xd , 0 , yv12 , mi_row , mi_col , sf ) ;\n xd -> mi [ 0 ] -> mbmi . ref_frame [ 0 ] = LAST_FRAME ;\n xd -> mi [ 0 ] -> mbmi . sb_type = BLOCK_64X64 ;\n vp9_find_best_ref_mvs ( xd , cm -> allow_high_precision_mv , xd -> mi [ 0 ] -> mbmi . ref_mvs [ LAST_FRAME ] , & nearest_mv , & near_mv ) ;\n xd -> mi [ 0 ] -> mbmi . mv [ 0 ] = nearest_mv ;\n vp9_build_inter_predictors_sby ( xd , mi_row , mi_col , BLOCK_64X64 ) ;\n d = xd -> plane [ 0 ] . dst . buf ;\n dp = xd -> plane [ 0 ] . dst . stride ;\n }\n else {\n d = VP9_VAR_OFFS ;\n dp = 0 ;\n }\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n const int x32_idx = ( ( i & 1 ) << 5 ) ;\n const int y32_idx = ( ( i >> 1 ) << 5 ) ;\n for ( j = 0 ;\n j < 4 ;\n j ++ ) {\n const int x16_idx = x32_idx + ( ( j & 1 ) << 4 ) ;\n const int y16_idx = y32_idx + ( ( j >> 1 ) << 4 ) ;\n v16x16 * vst = & vt . split [ i ] . split [ j ] ;\n for ( k = 0 ;\n k < 4 ;\n k ++ ) {\n int x_idx = x16_idx + ( ( k & 1 ) << 3 ) ;\n int y_idx = y16_idx + ( ( k >> 1 ) << 3 ) ;\n unsigned int sse = 0 ;\n int sum = 0 ;\n if ( x_idx < pixels_wide && y_idx < pixels_high ) vp9_get8x8var ( s + y_idx * sp + x_idx , sp , d + y_idx * dp + x_idx , dp , & sse , & sum ) ;\n fill_variance ( sse , sum , 64 , & vst -> split [ k ] . part_variances . none ) ;\n }\n }\n }\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n for ( j = 0 ;\n j < 4 ;\n j ++ ) {\n fill_variance_tree ( & vt . split [ i ] . split [ j ] , BLOCK_16X16 ) ;\n }\n fill_variance_tree ( & vt . split [ i ] , BLOCK_32X32 ) ;\n }\n fill_variance_tree ( & vt , BLOCK_64X64 ) ;\n if ( ! set_vt_partitioning ( cpi , & vt , BLOCK_64X64 , mi_row , mi_col ) ) {\n for ( i = 0 ;\n i < 4 ;\n ++ i ) {\n const int x32_idx = ( ( i & 1 ) << 2 ) ;\n const int y32_idx = ( ( i >> 1 ) << 2 ) ;\n if ( ! set_vt_partitioning ( cpi , & vt . split [ i ] , BLOCK_32X32 , ( mi_row + y32_idx ) , ( mi_col + x32_idx ) ) ) {\n for ( j = 0 ;\n j < 4 ;\n ++ j ) {\n const int x16_idx = ( ( j & 1 ) << 1 ) ;\n const int y16_idx = ( ( j >> 1 ) << 1 ) ;\n # define DISABLE_8X8_VAR_BASED_PARTITION # ifdef DISABLE_8X8_VAR_BASED_PARTITION if ( mi_row + y32_idx + y16_idx + 1 < cm -> mi_rows && mi_row + x32_idx + x16_idx + 1 < cm -> mi_cols ) {\n set_block_size ( cpi , ( mi_row + y32_idx + y16_idx ) , ( mi_col + x32_idx + x16_idx ) , BLOCK_16X16 ) ;\n }\n else {\n for ( k = 0 ;\n k < 4 ;\n ++ k ) {\n const int x8_idx = ( k & 1 ) ;\n const int y8_idx = ( k >> 1 ) ;\n set_block_size ( cpi , ( mi_row + y32_idx + y16_idx + y8_idx ) , ( mi_col + x32_idx + x16_idx + x8_idx ) , BLOCK_8X8 ) ;\n }\n }\n # else if ( ! set_vt_partitioning ( cpi , & vt . split [ i ] . split [ j ] , tile , BLOCK_16X16 , ( mi_row + y32_idx + y16_idx ) , ( mi_col + x32_idx + x16_idx ) , 2 ) ) {\n for ( k = 0 ;\n k < 4 ;\n ++ k ) {\n const int x8_idx = ( k & 1 ) ;\n const int y8_idx = ( k >> 1 ) ;\n set_block_size ( cpi , ( mi_row + y32_idx + y16_idx + y8_idx ) , ( mi_col + x32_idx + x16_idx + x8_idx ) , BLOCK_8X8 ) ;\n }\n }\n # endif }\n }\n }\n }\n }"}
{"idx": 1139, "target": 0, "func": "int TSContCall ( TSCont contp , TSEvent event , void * edata ) {\n Continuation * c = ( Continuation * ) contp ;\n return c -> handleEvent ( ( int ) event , edata ) ;\n }"}
{"idx": 1140, "target": 0, "func": "static PyObject * getServerPrincipalDetails ( PyObject * self , PyObject * args ) {\n const char * service = NULL ;\n const char * hostname = NULL ;\n char * result ;\n if ( ! PyArg_ParseTuple ( args , \"ss\" , & service , & hostname ) ) return NULL ;\n result = server_principal_details ( service , hostname ) ;\n if ( result != NULL ) {\n PyObject * pyresult = Py_BuildValue ( \"s\" , result ) ;\n free ( result ) ;\n return pyresult ;\n }\n else return NULL ;\n }"}
{"idx": 1141, "target": 0, "func": "static gboolean ngsniffer_dump ( wtap_dumper * wdh , const struct wtap_pkthdr * phdr , const guint8 * pd , int * err , gchar * * err_info _U_ ) {\n const union wtap_pseudo_header * pseudo_header = & phdr -> pseudo_header ;\n ngsniffer_dump_t * ngsniffer = ( ngsniffer_dump_t * ) wdh -> priv ;\n struct frame2_rec rec_hdr ;\n char buf [ 6 ] ;\n time_t tsecs ;\n guint64 t ;\n guint16 t_low , t_med ;\n guint8 t_high ;\n struct vers_rec version ;\n gint16 maj_vers , min_vers ;\n guint16 start_date ;\n struct tm * tm ;\n if ( phdr -> rec_type != REC_TYPE_PACKET ) {\n * err = WTAP_ERR_UNWRITABLE_REC_TYPE ;\n return FALSE ;\n }\n if ( phdr -> caplen > 65535 ) {\n * err = WTAP_ERR_PACKET_TOO_LARGE ;\n return FALSE ;\n }\n if ( ngsniffer -> first_frame ) {\n ngsniffer -> first_frame = FALSE ;\n tm = localtime ( & phdr -> ts . secs ) ;\n if ( tm != NULL && tm -> tm_year >= DOS_YEAR_OFFSET ) {\n start_date = ( tm -> tm_year - DOS_YEAR_OFFSET ) << DOS_YEAR_SHIFT ;\n start_date |= ( tm -> tm_mon - DOS_MONTH_OFFSET ) << DOS_MONTH_SHIFT ;\n start_date |= tm -> tm_mday << DOS_DAY_SHIFT ;\n ngsniffer -> start = phdr -> ts . secs - ( 3600 * tm -> tm_hour + 60 * tm -> tm_min + tm -> tm_sec ) ;\n }\n else {\n start_date = 0 ;\n ngsniffer -> start = 0 ;\n }\n maj_vers = 4 ;\n min_vers = 0 ;\n version . maj_vers = GUINT16_TO_LE ( maj_vers ) ;\n version . min_vers = GUINT16_TO_LE ( min_vers ) ;\n version . time = 0 ;\n version . date = GUINT16_TO_LE ( start_date ) ;\n version . type = 4 ;\n version . network = wtap_encap [ wdh -> encap ] ;\n version . format = 1 ;\n version . timeunit = 1 ;\n version . cmprs_vers = 0 ;\n version . cmprs_level = 0 ;\n version . rsvd [ 0 ] = 0 ;\n version . rsvd [ 1 ] = 0 ;\n if ( ! wtap_dump_file_write ( wdh , & version , sizeof version , err ) ) return FALSE ;\n }\n buf [ 0 ] = REC_FRAME2 ;\n buf [ 1 ] = 0x00 ;\n buf [ 2 ] = ( char ) ( ( phdr -> caplen + sizeof ( struct frame2_rec ) ) % 256 ) ;\n buf [ 3 ] = ( char ) ( ( phdr -> caplen + sizeof ( struct frame2_rec ) ) / 256 ) ;\n buf [ 4 ] = 0x00 ;\n buf [ 5 ] = 0x00 ;\n if ( ! wtap_dump_file_write ( wdh , buf , 6 , err ) ) return FALSE ;\n tsecs = phdr -> ts . secs - ngsniffer -> start ;\n rec_hdr . time_day = ( guint8 ) ( tsecs / 86400 ) ;\n tsecs -= rec_hdr . time_day * 86400 ;\n t = tsecs * G_GUINT64_CONSTANT ( 1000000000000 ) + phdr -> ts . nsecs * G_GUINT64_CONSTANT ( 1000 ) ;\n t /= Psec [ 1 ] ;\n t_low = ( guint16 ) ( ( t >> 0 ) & 0xFFFF ) ;\n t_med = ( guint16 ) ( ( t >> 16 ) & 0xFFFF ) ;\n t_high = ( guint8 ) ( ( t >> 32 ) & 0xFF ) ;\n rec_hdr . time_low = GUINT16_TO_LE ( t_low ) ;\n rec_hdr . time_med = GUINT16_TO_LE ( t_med ) ;\n rec_hdr . time_high = t_high ;\n rec_hdr . size = GUINT16_TO_LE ( phdr -> caplen ) ;\n switch ( wdh -> encap ) {\n case WTAP_ENCAP_LAPB : case WTAP_ENCAP_FRELAY_WITH_PHDR : rec_hdr . fs = ( pseudo_header -> x25 . flags & FROM_DCE ) ? 0x00 : FS_WAN_DTE ;\n break ;\n case WTAP_ENCAP_PPP_WITH_PHDR : case WTAP_ENCAP_SDLC : rec_hdr . fs = pseudo_header -> p2p . sent ? 0x00 : FS_WAN_DTE ;\n break ;\n case WTAP_ENCAP_ISDN : rec_hdr . fs = pseudo_header -> isdn . uton ? FS_WAN_DTE : 0x00 ;\n switch ( pseudo_header -> isdn . channel ) {\n case 0 : rec_hdr . fs |= FS_ISDN_CHAN_D ;\n break ;\n case 1 : rec_hdr . fs |= FS_ISDN_CHAN_B1 ;\n break ;\n case 2 : rec_hdr . fs |= FS_ISDN_CHAN_B2 ;\n break ;\n }\n break ;\n default : rec_hdr . fs = 0 ;\n break ;\n }\n rec_hdr . flags = 0 ;\n rec_hdr . true_size = phdr -> len != phdr -> caplen ? GUINT16_TO_LE ( phdr -> len ) : 0 ;\n rec_hdr . rsvd = 0 ;\n if ( ! wtap_dump_file_write ( wdh , & rec_hdr , sizeof rec_hdr , err ) ) return FALSE ;\n if ( ! wtap_dump_file_write ( wdh , pd , phdr -> caplen , err ) ) return FALSE ;\n return TRUE ;\n }"}
{"idx": 1142, "target": 0, "func": "static int aes_cfb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }"}
{"idx": 1143, "target": 0, "func": "static int dissect_h245_T_forwardMultiplexAckParameters ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 279 \"../../asn1/h245/h245.cnf\" upcoming_channel = ( upcoming_olc ) ? & upcoming_olc -> fwd_lc : NULL ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_forwardMultiplexAckParameters , T_forwardMultiplexAckParameters_choice , NULL ) ;\n upcoming_channel = NULL ;\n return offset ;\n }"}
{"idx": 1144, "target": 0, "func": "static int virLogHostnameString ( char * * rawmsg , char * * msg ) {\n char * hoststr ;\n if ( ! virLogHostname ) return - 1 ;\n if ( virAsprintfQuiet ( & hoststr , \"hostname: %s\" , virLogHostname ) < 0 ) {\n return - 1 ;\n }\n if ( virLogFormatString ( msg , 0 , NULL , VIR_LOG_INFO , hoststr ) < 0 ) {\n VIR_FREE ( hoststr ) ;\n return - 1 ;\n }\n * rawmsg = hoststr ;\n return 0 ;\n }"}
{"idx": 1145, "target": 0, "func": "static void reset_defaults ( void ) {\n option_stdout = 0 ;\n option_force = 0 ;\n option_verbose = DEFAULT_VERBOSE ;\n option_quiet = 0 ;\n option_appheader = NULL ;\n option_use_secondary = 0 ;\n option_secondary = NULL ;\n option_use_altcodetable = 0 ;\n option_smatch_config = NULL ;\n option_no_compress = 0 ;\n option_no_output = 0 ;\n option_source_filename = NULL ;\n program_name = NULL ;\n appheader_used = NULL ;\n main_bdata = NULL ;\n main_bsize = 0 ;\n allow_fake_source = 0 ;\n option_smatch_config = NULL ;\n main_lru_reset ( ) ;\n option_use_appheader = 1 ;\n option_use_checksum = 1 ;\n # if EXTERNAL_COMPRESSION option_force2 = 0 ;\n option_decompress_inputs = 1 ;\n option_recompress_outputs = 1 ;\n num_subprocs = 0 ;\n # endif # if VCDIFF_TOOLS option_print_cpymode = 1 ;\n # endif option_level = XD3_DEFAULT_LEVEL ;\n option_iopt_size = XD3_DEFAULT_IOPT_SIZE ;\n option_winsize = XD3_DEFAULT_WINSIZE ;\n option_srcwinsz = XD3_DEFAULT_SRCWINSZ ;\n option_sprevsz = XD3_DEFAULT_SPREVSZ ;\n }"}
{"idx": 1146, "target": 0, "func": "static int dissect_h245_INTEGER_0_4294967295 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 4294967295U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 1147, "target": 0, "func": "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 ) {\n uint8_t comp_pred [ m * n ] ;\n vp9_comp_avg_pred ( comp_pred , second_pred , m , n , ref , ref_stride ) ;\n return sad ( src , src_stride , comp_pred , m , m , n ) ;\n \\ }\n # define sadMxNxK ( m , n , k ) void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 ) sadMxN ( 16 , 32 ) sadMxNx4D ( 16 , 32 ) sadMxN ( 16 , 16 ) sadMxNxK ( 16 , 16 , 3 ) sadMxNxK ( 16 , 16 , 8 ) sadMxNx4D ( 16 , 16 ) sadMxN ( 16 , 8 ) sadMxNxK ( 16 , 8 , 3 ) sadMxNxK ( 16 , 8 , 8 ) sadMxNx4D ( 16 , 8 ) sadMxN ( 8 , 16 ) sadMxNxK ( 8 , 16 , 3 ) sadMxNxK ( 8 , 16 , 8 ) sadMxNx4D ( 8 , 16 ) sadMxN ( 8 , 8 ) sadMxNxK ( 8 , 8 , 3 ) sadMxNxK ( 8 , 8 , 8 ) sadMxNx4D ( 8 , 8 ) sadMxN ( 8 , 4 )"}
{"idx": 1148, "target": 0, "func": "static int capture_android_bluetooth_external_parser ( char * interface , char * fifo , const char * adb_server_ip , unsigned short * adb_server_tcp_port , unsigned short * bt_server_tcp_port , unsigned int bt_forward_socket , const char * bt_local_ip , unsigned short * bt_local_tcp_port ) {\n struct extcap_dumper extcap_dumper ;\n static char buffer [ PACKET_LENGTH ] ;\n uint64_t * timestamp ;\n char * packet = buffer + BLUEDROID_TIMESTAMP_SIZE - sizeof ( own_pcap_bluetooth_h4_header ) ;\n own_pcap_bluetooth_h4_header * h4_header ;\n guint8 * payload = packet + sizeof ( own_pcap_bluetooth_h4_header ) ;\n const char * adb_transport = \"0012\" \"host:transport-any\" ;\n const char * adb_transport_serial_templace = \"%04x\" \"host:transport:%s\" ;\n const char * adb_tcp_bluedroid_external_parser_template = \"%04x\" \"tcp:%05u\" ;\n gssize length ;\n gssize used_buffer_length = 0 ;\n uint64_t ts ;\n socket_handle_t sock ;\n struct sockaddr_in server ;\n int captured_length ;\n char * serial_number = NULL ;\n size_t serial_number_length = 0 ;\n SET_DATA ( timestamp , value_u64 , buffer ) ;\n SET_DATA ( h4_header , value_own_pcap_bluetooth_h4_header , packet ) ;\n extcap_dumper = extcap_dumper_open ( fifo , EXTCAP_ENCAP_BLUETOOTH_H4_WITH_PHDR ) ;\n if ( is_specified_interface ( interface , INTERFACE_ANDROID_BLUETOOTH_EXTERNAL_PARSER ) && strlen ( interface ) > strlen ( INTERFACE_ANDROID_BLUETOOTH_EXTERNAL_PARSER ) + 1 ) {\n serial_number = interface + strlen ( INTERFACE_ANDROID_BLUETOOTH_EXTERNAL_PARSER ) + 1 ;\n serial_number_length = strlen ( serial_number ) ;\n }\n if ( bt_forward_socket ) {\n if ( ( sock = socket ( AF_INET , SOCK_STREAM , IPPROTO_TCP ) ) == INVALID_SOCKET ) {\n errmsg_print ( \"ERROR: Cannot open system TCP socket: %s\" , strerror ( errno ) ) ;\n return EXIT_CODE_GENERIC ;\n }\n verbose_print ( \"Using config: Server TCP Port=%u, Local IP=%s, Local TCP Port=%u\\n\" , * bt_server_tcp_port , bt_local_ip , * bt_local_tcp_port ) ;\n if ( * bt_local_tcp_port != 0 ) {\n int result ;\n result = adb_forward ( serial_number , adb_server_ip , adb_server_tcp_port , * bt_local_tcp_port , * bt_server_tcp_port ) ;\n verbose_print ( \"DO: adb forward tcp:%u (local) tcp:%u (remote) result=%i\\n\" , * bt_local_tcp_port , * bt_server_tcp_port , result ) ;\n }\n memset ( & server , 0 , sizeof ( server ) ) ;\n server . sin_family = AF_INET ;\n server . sin_port = GINT16_TO_BE ( * bt_local_tcp_port ) ;\n server . sin_addr . s_addr = inet_addr ( bt_local_ip ) ;\n useSndTimeout ( sock ) ;\n if ( connect ( sock , ( struct sockaddr * ) & server , sizeof ( server ) ) == SOCKET_ERROR ) {\n errmsg_print ( \"ERROR: <%s> Please check that adb daemon is running.\" , strerror ( errno ) ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n if ( verbose ) {\n struct sockaddr_in client ;\n length = sizeof ( client ) ;\n if ( getsockname ( sock , ( struct sockaddr * ) & client , ( socklen_t * ) & length ) ) {\n errmsg_print ( \"ERROR getsockname: %s\" , strerror ( errno ) ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n if ( length != sizeof ( client ) ) {\n errmsg_print ( \"ERROR: incorrect length\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n verbose_print ( \"VERBOSE: Client port %u\\n\" , GUINT16_FROM_BE ( client . sin_port ) ) ;\n }\n }\n else {\n int result ;\n sock = adb_connect ( adb_server_ip , adb_server_tcp_port ) ;\n if ( sock == INVALID_SOCKET ) return EXIT_CODE_INVALID_SOCKET_6 ;\n if ( ! serial_number ) {\n result = adb_send ( sock , adb_transport ) ;\n if ( result ) {\n errmsg_print ( \"ERROR: Error while setting adb transport\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n }\n else {\n result = g_snprintf ( ( char * ) buffer , PACKET_LENGTH , adb_transport_serial_templace , 15 + serial_number_length , serial_number ) ;\n if ( result <= 0 || result > PACKET_LENGTH ) {\n errmsg_print ( \"ERROR: Error while completing adb packet\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_BAD_SIZE_OF_ASSEMBLED_ADB_PACKET_13 ;\n }\n result = adb_send ( sock , buffer ) ;\n if ( result ) {\n errmsg_print ( \"ERROR: Error while setting adb transport\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n }\n result = g_snprintf ( ( char * ) buffer , PACKET_LENGTH , adb_tcp_bluedroid_external_parser_template , 4 + 5 , * bt_server_tcp_port ) ;\n if ( result <= 0 || result > PACKET_LENGTH ) {\n errmsg_print ( \"ERROR: Error while completing adb packet\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_BAD_SIZE_OF_ASSEMBLED_ADB_PACKET_14 ;\n }\n result = adb_send ( sock , buffer ) ;\n if ( result ) {\n errmsg_print ( \"ERROR: Error while forwarding adb port\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n }\n while ( endless_loop ) {\n errno = 0 ;\n length = recv ( sock , buffer + used_buffer_length , ( int ) ( PACKET_LENGTH - used_buffer_length ) , 0 ) ;\n if ( errno == EAGAIN # if EWOULDBLOCK != EAGAIN || errno == EWOULDBLOCK # endif ) {\n continue ;\n }\n else if ( errno != 0 ) {\n errmsg_print ( \"ERROR capture: %s\" , strerror ( errno ) ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n if ( length <= 0 ) {\n if ( bt_forward_socket ) {\n verbose_print ( \"WARNING: Broken socket connection. Try reconnect.\\n\" ) ;\n closesocket ( sock ) ;\n if ( ( sock = socket ( AF_INET , SOCK_STREAM , IPPROTO_TCP ) ) == INVALID_SOCKET ) {\n errmsg_print ( \"ERROR: %s\" , strerror ( errno ) ) ;\n return EXIT_CODE_GENERIC ;\n }\n server . sin_family = AF_INET ;\n server . sin_port = GINT16_TO_BE ( * bt_local_tcp_port ) ;\n server . sin_addr . s_addr = inet_addr ( bt_local_ip ) ;\n useSndTimeout ( sock ) ;\n if ( connect ( sock , ( struct sockaddr * ) & server , sizeof ( server ) ) == SOCKET_ERROR ) {\n errmsg_print ( \"ERROR reconnect: <%s> Please check that adb daemon is running.\" , strerror ( errno ) ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n }\n else {\n errmsg_print ( \"ERROR: Broken socket connection.\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n continue ;\n }\n used_buffer_length += length ;\n verbose_print ( \"Received: length=%\" G_GSSIZE_FORMAT \"\\n\" , length ) ;\n while ( ( ( payload [ BLUEDROID_H4_PACKET_TYPE ] == BLUEDROID_H4_PACKET_TYPE_HCI_CMD || payload [ BLUEDROID_H4_PACKET_TYPE ] == BLUEDROID_H4_PACKET_TYPE_SCO ) && used_buffer_length >= BLUEDROID_TIMESTAMP_SIZE + BLUEDROID_H4_SIZE + 2 + 1 && BLUEDROID_TIMESTAMP_SIZE + BLUEDROID_H4_SIZE + 2 + payload [ BLUEDROID_H4_SIZE + 2 ] + 1 <= used_buffer_length ) || ( payload [ BLUEDROID_H4_PACKET_TYPE ] == BLUEDROID_H4_PACKET_TYPE_ACL && used_buffer_length >= BLUEDROID_TIMESTAMP_SIZE + BLUEDROID_H4_SIZE + 2 + 2 && BLUEDROID_TIMESTAMP_SIZE + BLUEDROID_H4_SIZE + 2 + payload [ BLUEDROID_H4_SIZE + 2 ] + ( payload [ BLUEDROID_H4_SIZE + 2 + 1 ] << 8 ) + 2 <= used_buffer_length ) || ( payload [ BLUEDROID_H4_PACKET_TYPE ] == BLUEDROID_H4_PACKET_TYPE_SCO && used_buffer_length >= BLUEDROID_TIMESTAMP_SIZE + BLUEDROID_H4_SIZE + 2 + 1 && BLUEDROID_TIMESTAMP_SIZE + BLUEDROID_H4_SIZE + 2 + payload [ BLUEDROID_H4_SIZE + 2 ] + 1 <= used_buffer_length ) || ( payload [ BLUEDROID_H4_PACKET_TYPE ] == BLUEDROID_H4_PACKET_TYPE_HCI_EVT && used_buffer_length >= BLUEDROID_TIMESTAMP_SIZE + BLUEDROID_H4_SIZE + 1 + 1 && BLUEDROID_TIMESTAMP_SIZE + BLUEDROID_H4_SIZE + 1 + payload [ BLUEDROID_H4_SIZE + 1 ] + 1 <= used_buffer_length ) ) {\n ts = GINT64_FROM_BE ( * timestamp ) ;\n switch ( payload [ BLUEDROID_H4_PACKET_TYPE ] ) {\n case BLUEDROID_H4_PACKET_TYPE_HCI_CMD : h4_header -> direction = GINT32_TO_BE ( BLUEDROID_DIRECTION_SENT ) ;\n captured_length = ( unsigned int ) sizeof ( own_pcap_bluetooth_h4_header ) + payload [ 3 ] + 4 ;\n length = sizeof ( own_pcap_bluetooth_h4_header ) + BLUEDROID_H4_SIZE + 2 + 1 + payload [ 3 ] ;\n break ;\n case BLUEDROID_H4_PACKET_TYPE_ACL : h4_header -> direction = ( payload [ 2 ] & 0x80 ) ? GINT32_TO_BE ( BLUEDROID_DIRECTION_RECV ) : GINT32_TO_BE ( BLUEDROID_DIRECTION_SENT ) ;\n captured_length = ( unsigned int ) sizeof ( own_pcap_bluetooth_h4_header ) + payload [ 3 ] + ( payload [ 3 + 1 ] << 8 ) + 5 ;\n length = sizeof ( own_pcap_bluetooth_h4_header ) + BLUEDROID_H4_SIZE + 2 + 2 + payload [ 3 ] + ( gssize ) ( payload [ 3 + 1 ] << 8 ) ;\n break ;\n case BLUEDROID_H4_PACKET_TYPE_SCO : h4_header -> direction = ( payload [ 2 ] & 0x80 ) ? GINT32_TO_BE ( BLUEDROID_DIRECTION_RECV ) : GINT32_TO_BE ( BLUEDROID_DIRECTION_SENT ) ;\n captured_length = ( unsigned int ) sizeof ( own_pcap_bluetooth_h4_header ) + payload [ 3 ] + 4 ;\n length = sizeof ( own_pcap_bluetooth_h4_header ) + BLUEDROID_H4_SIZE + 2 + 1 + payload [ 3 ] ;\n break ;\n case BLUEDROID_H4_PACKET_TYPE_HCI_EVT : h4_header -> direction = GINT32_TO_BE ( BLUEDROID_DIRECTION_RECV ) ;\n captured_length = ( unsigned int ) sizeof ( own_pcap_bluetooth_h4_header ) + payload [ 2 ] + 3 ;\n length = sizeof ( own_pcap_bluetooth_h4_header ) + BLUEDROID_H4_SIZE + 1 + 1 + payload [ 2 ] ;\n break ;\n default : errmsg_print ( \"ERROR: Invalid stream\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n if ( verbose ) {\n static unsigned int id = 1 ;\n verbose_print ( \"\\t Packet %u: used_buffer_length=%\" G_GSSIZE_FORMAT \" length=%\" G_GSSIZE_FORMAT \" captured_length=%i type=0x%02x\\n\" , id , used_buffer_length , length , captured_length , payload [ BLUEDROID_H4_PACKET_TYPE ] ) ;\n if ( payload [ BLUEDROID_H4_PACKET_TYPE ] == BLUEDROID_H4_PACKET_TYPE_HCI_EVT ) verbose_print ( \"\\t Packet: %02x %02x %02x\\n\" , ( unsigned int ) payload [ 0 ] , ( unsigned int ) payload [ 1 ] , ( unsigned int ) payload [ 2 ] ) ;\n id += 1 ;\n }\n ts -= BLUEDROID_TIMESTAMP_BASE ;\n endless_loop = extcap_dumper_dump ( extcap_dumper , packet , captured_length , captured_length , ( uint32_t ) ( ts / 1000000 ) , ( ( uint32_t ) ( ts % 1000000 ) ) * 1000 ) ;\n used_buffer_length -= length - sizeof ( own_pcap_bluetooth_h4_header ) + BLUEDROID_TIMESTAMP_SIZE ;\n if ( used_buffer_length < 0 ) {\n errmsg_print ( \"ERROR: Internal error: Negative used buffer length.\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n memmove ( buffer , packet + length , used_buffer_length ) ;\n }\n }\n closesocket ( sock ) ;\n return EXIT_CODE_SUCCESS ;\n }"}
{"idx": 1149, "target": 0, "func": "static int dissect_PRINTER_INFO_2 ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n guint32 devmode_offset , secdesc_offset ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , tree , di , drep , hf_servername , 0 , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , tree , di , drep , hf_printername , 0 , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , tree , di , drep , hf_sharename , 0 , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , tree , di , drep , hf_portname , 0 , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , tree , di , drep , hf_drivername , 0 , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , tree , di , drep , hf_printercomment , 0 , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , tree , di , drep , hf_printerlocation , 0 , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , NULL , di , drep , hf_offset , & devmode_offset ) ;\n dissect_DEVMODE ( tvb , devmode_offset - 4 , pinfo , tree , di , drep ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , tree , di , drep , hf_sepfile , 0 , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , tree , di , drep , hf_printprocessor , 0 , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , tree , di , drep , hf_datatype , 0 , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , tree , di , drep , hf_parameters , 0 , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , NULL , di , drep , hf_offset , & secdesc_offset ) ;\n dissect_nt_sec_desc ( tvb , secdesc_offset , pinfo , tree , drep , FALSE , - 1 , & spoolss_printer_access_mask_info ) ;\n offset = dissect_printer_attributes ( tvb , offset , pinfo , tree , di , drep ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , NULL , di , drep , hf_printer_priority , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , NULL , di , drep , hf_printer_default_priority , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , NULL , di , drep , hf_start_time , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , NULL , di , drep , hf_end_time , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_printer_status , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , NULL , di , drep , hf_printer_jobs , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , NULL , di , drep , hf_printer_averageppm , NULL ) ;\n return offset ;\n }"}
{"idx": 1150, "target": 0, "func": "TEST_F ( TemplateURLTest , GetURLNoInstantURL ) {\n TemplateURLData data ;\n data . SetURL ( \"http://google.com/?q={\nsearchTerms}\n\" ) ;\n data . suggestions_url = \"http://google.com/suggest?q={\nsearchTerms}\n\" ;\n data . alternate_urls . push_back ( \"http://google.com/alt?q={\nsearchTerms}\n\" ) ;\n data . alternate_urls . push_back ( \"{\ngoogle:baseURL}\n/alt/#q={\nsearchTerms}\n\" ) ;\n TemplateURL url ( data ) ;\n const std : : vector < TemplateURLRef > & url_refs = url . url_refs ( ) ;\n ASSERT_EQ ( 3U , url_refs . size ( ) ) ;\n EXPECT_EQ ( \"http://google.com/alt?q={\nsearchTerms}\n\" , url_refs [ 0 ] . GetURL ( ) ) ;\n EXPECT_EQ ( \"{\ngoogle:baseURL}\n/alt/#q={\nsearchTerms}\n\" , url_refs [ 1 ] . GetURL ( ) ) ;\n EXPECT_EQ ( \"http://google.com/?q={\nsearchTerms}\n\" , url_refs [ 2 ] . GetURL ( ) ) ;\n }"}
{"idx": 1151, "target": 1, "func": "static void vc1_mc_1mv ( VC1Context * v , int dir ) {\n MpegEncContext * s = & v -> s ;\n DSPContext * dsp = & v -> s . dsp ;\n H264ChromaContext * h264chroma = & v -> h264chroma ;\n uint8_t * srcY , * srcU , * srcV ;\n int dxy , mx , my , uvmx , uvmy , src_x , src_y , uvsrc_x , uvsrc_y ;\n int off , off_uv ;\n int v_edge_pos = s -> v_edge_pos >> v -> field_mode ;\n if ( ( ! v -> field_mode || ( v -> ref_field_type [ dir ] == 1 && v -> cur_field_type == 1 ) ) && ! v -> s . last_picture . f . data [ 0 ] ) return ;\n mx = s -> mv [ dir ] [ 0 ] [ 0 ] ;\n my = s -> mv [ dir ] [ 0 ] [ 1 ] ;\n if ( s -> pict_type == AV_PICTURE_TYPE_P ) {\n s -> current_picture . f . motion_val [ 1 ] [ s -> block_index [ 0 ] + v -> blocks_off ] [ 0 ] = mx ;\n s -> current_picture . f . motion_val [ 1 ] [ s -> block_index [ 0 ] + v -> blocks_off ] [ 1 ] = my ;\n }\n uvmx = ( mx + ( ( mx & 3 ) == 3 ) ) >> 1 ;\n uvmy = ( my + ( ( my & 3 ) == 3 ) ) >> 1 ;\n v -> luma_mv [ s -> mb_x ] [ 0 ] = uvmx ;\n v -> luma_mv [ s -> mb_x ] [ 1 ] = uvmy ;\n if ( v -> field_mode && v -> cur_field_type != v -> ref_field_type [ dir ] ) {\n my = my - 2 + 4 * v -> cur_field_type ;\n uvmy = uvmy - 2 + 4 * v -> cur_field_type ;\n }\n if ( v -> fastuvmc && ( v -> fcm != ILACE_FRAME ) ) {\n uvmx = uvmx + ( ( uvmx < 0 ) ? ( uvmx & 1 ) : - ( uvmx & 1 ) ) ;\n uvmy = uvmy + ( ( uvmy < 0 ) ? ( uvmy & 1 ) : - ( uvmy & 1 ) ) ;\n }\n if ( v -> field_mode ) {\n if ( ! dir ) {\n if ( ( v -> cur_field_type != v -> ref_field_type [ dir ] ) && v -> cur_field_type ) {\n srcY = s -> current_picture . f . data [ 0 ] ;\n srcU = s -> current_picture . f . data [ 1 ] ;\n srcV = s -> current_picture . f . data [ 2 ] ;\n }\n else {\n srcY = s -> last_picture . f . data [ 0 ] ;\n srcU = s -> last_picture . f . data [ 1 ] ;\n srcV = s -> last_picture . f . data [ 2 ] ;\n }\n }\n else {\n srcY = s -> next_picture . f . data [ 0 ] ;\n srcU = s -> next_picture . f . data [ 1 ] ;\n srcV = s -> next_picture . f . data [ 2 ] ;\n }\n }\n else {\n if ( ! dir ) {\n srcY = s -> last_picture . f . data [ 0 ] ;\n srcU = s -> last_picture . f . data [ 1 ] ;\n srcV = s -> last_picture . f . data [ 2 ] ;\n }\n else {\n srcY = s -> next_picture . f . data [ 0 ] ;\n srcU = s -> next_picture . f . data [ 1 ] ;\n srcV = s -> next_picture . f . data [ 2 ] ;\n }\n }\n src_x = s -> mb_x * 16 + ( mx >> 2 ) ;\n src_y = s -> mb_y * 16 + ( my >> 2 ) ;\n uvsrc_x = s -> mb_x * 8 + ( uvmx >> 2 ) ;\n uvsrc_y = s -> mb_y * 8 + ( uvmy >> 2 ) ;\n if ( v -> profile != PROFILE_ADVANCED ) {\n src_x = av_clip ( src_x , - 16 , s -> mb_width * 16 ) ;\n src_y = av_clip ( src_y , - 16 , s -> mb_height * 16 ) ;\n uvsrc_x = av_clip ( uvsrc_x , - 8 , s -> mb_width * 8 ) ;\n uvsrc_y = av_clip ( uvsrc_y , - 8 , s -> mb_height * 8 ) ;\n }\n else {\n src_x = av_clip ( src_x , - 17 , s -> avctx -> coded_width ) ;\n src_y = av_clip ( src_y , - 18 , s -> avctx -> coded_height + 1 ) ;\n uvsrc_x = av_clip ( uvsrc_x , - 8 , s -> avctx -> coded_width >> 1 ) ;\n uvsrc_y = av_clip ( uvsrc_y , - 8 , s -> avctx -> coded_height >> 1 ) ;\n }\n srcY += src_y * s -> linesize + src_x ;\n srcU += uvsrc_y * s -> uvlinesize + uvsrc_x ;\n srcV += uvsrc_y * s -> uvlinesize + uvsrc_x ;\n if ( v -> field_mode && v -> ref_field_type [ dir ] ) {\n srcY += s -> current_picture_ptr -> f . linesize [ 0 ] ;\n srcU += s -> current_picture_ptr -> f . linesize [ 1 ] ;\n srcV += s -> current_picture_ptr -> f . linesize [ 2 ] ;\n }\n if ( s -> flags & CODEC_FLAG_GRAY ) {\n srcU = s -> edge_emu_buffer + 18 * s -> linesize ;\n srcV = s -> edge_emu_buffer + 18 * s -> linesize ;\n }\n if ( v -> rangeredfrm || ( v -> mv_mode == MV_PMODE_INTENSITY_COMP ) || s -> h_edge_pos < 22 || v_edge_pos < 22 || ( unsigned ) ( src_x - s -> mspel ) > s -> h_edge_pos - ( mx & 3 ) - 16 - s -> mspel * 3 || ( unsigned ) ( src_y - 1 ) > v_edge_pos - ( my & 3 ) - 16 - 3 ) {\n uint8_t * uvbuf = s -> edge_emu_buffer + 19 * s -> linesize ;\n srcY -= s -> mspel * ( 1 + s -> linesize ) ;\n s -> vdsp . emulated_edge_mc ( s -> edge_emu_buffer , srcY , s -> linesize , 17 + s -> mspel * 2 , 17 + s -> mspel * 2 , src_x - s -> mspel , src_y - s -> mspel , s -> h_edge_pos , v_edge_pos ) ;\n srcY = s -> edge_emu_buffer ;\n s -> vdsp . emulated_edge_mc ( uvbuf , srcU , s -> uvlinesize , 8 + 1 , 8 + 1 , uvsrc_x , uvsrc_y , s -> h_edge_pos >> 1 , v_edge_pos >> 1 ) ;\n s -> vdsp . emulated_edge_mc ( uvbuf + 16 , srcV , s -> uvlinesize , 8 + 1 , 8 + 1 , uvsrc_x , uvsrc_y , s -> h_edge_pos >> 1 , v_edge_pos >> 1 ) ;\n srcU = uvbuf ;\n srcV = uvbuf + 16 ;\n if ( v -> rangeredfrm ) {\n int i , j ;\n uint8_t * src , * src2 ;\n src = srcY ;\n for ( j = 0 ;\n j < 17 + s -> mspel * 2 ;\n j ++ ) {\n for ( i = 0 ;\n i < 17 + s -> mspel * 2 ;\n i ++ ) src [ i ] = ( ( src [ i ] - 128 ) >> 1 ) + 128 ;\n src += s -> linesize ;\n }\n src = srcU ;\n src2 = srcV ;\n for ( j = 0 ;\n j < 9 ;\n j ++ ) {\n for ( i = 0 ;\n i < 9 ;\n i ++ ) {\n src [ i ] = ( ( src [ i ] - 128 ) >> 1 ) + 128 ;\n src2 [ i ] = ( ( src2 [ i ] - 128 ) >> 1 ) + 128 ;\n }\n src += s -> uvlinesize ;\n src2 += s -> uvlinesize ;\n }\n }\n if ( v -> mv_mode == MV_PMODE_INTENSITY_COMP ) {\n int i , j ;\n uint8_t * src , * src2 ;\n src = srcY ;\n for ( j = 0 ;\n j < 17 + s -> mspel * 2 ;\n j ++ ) {\n for ( i = 0 ;\n i < 17 + s -> mspel * 2 ;\n i ++ ) src [ i ] = v -> luty [ src [ i ] ] ;\n src += s -> linesize ;\n }\n src = srcU ;\n src2 = srcV ;\n for ( j = 0 ;\n j < 9 ;\n j ++ ) {\n for ( i = 0 ;\n i < 9 ;\n i ++ ) {\n src [ i ] = v -> lutuv [ src [ i ] ] ;\n src2 [ i ] = v -> lutuv [ src2 [ i ] ] ;\n }\n src += s -> uvlinesize ;\n src2 += s -> uvlinesize ;\n }\n }\n srcY += s -> mspel * ( 1 + s -> linesize ) ;\n }\n if ( v -> field_mode && v -> cur_field_type ) {\n off = s -> current_picture_ptr -> f . linesize [ 0 ] ;\n off_uv = s -> current_picture_ptr -> f . linesize [ 1 ] ;\n }\n else {\n off = 0 ;\n off_uv = 0 ;\n }\n if ( s -> mspel ) {\n dxy = ( ( my & 3 ) << 2 ) | ( mx & 3 ) ;\n v -> vc1dsp . put_vc1_mspel_pixels_tab [ dxy ] ( s -> dest [ 0 ] + off , srcY , s -> linesize , v -> rnd ) ;\n v -> vc1dsp . put_vc1_mspel_pixels_tab [ dxy ] ( s -> dest [ 0 ] + off + 8 , srcY + 8 , s -> linesize , v -> rnd ) ;\n srcY += s -> linesize * 8 ;\n v -> vc1dsp . put_vc1_mspel_pixels_tab [ dxy ] ( s -> dest [ 0 ] + off + 8 * s -> linesize , srcY , s -> linesize , v -> rnd ) ;\n v -> vc1dsp . put_vc1_mspel_pixels_tab [ dxy ] ( s -> dest [ 0 ] + off + 8 * s -> linesize + 8 , srcY + 8 , s -> linesize , v -> rnd ) ;\n }\n else {\n dxy = ( my & 2 ) | ( ( mx & 2 ) >> 1 ) ;\n if ( ! v -> rnd ) dsp -> put_pixels_tab [ 0 ] [ dxy ] ( s -> dest [ 0 ] + off , srcY , s -> linesize , 16 ) ;\n else dsp -> put_no_rnd_pixels_tab [ 0 ] [ dxy ] ( s -> dest [ 0 ] + off , srcY , s -> linesize , 16 ) ;\n }\n if ( s -> flags & CODEC_FLAG_GRAY ) return ;\n uvmx = ( uvmx & 3 ) << 1 ;\n uvmy = ( uvmy & 3 ) << 1 ;\n if ( ! v -> rnd ) {\n h264chroma -> put_h264_chroma_pixels_tab [ 0 ] ( s -> dest [ 1 ] + off_uv , srcU , s -> uvlinesize , 8 , uvmx , uvmy ) ;\n h264chroma -> put_h264_chroma_pixels_tab [ 0 ] ( s -> dest [ 2 ] + off_uv , srcV , s -> uvlinesize , 8 , uvmx , uvmy ) ;\n }\n else {\n v -> vc1dsp . put_no_rnd_vc1_chroma_pixels_tab [ 0 ] ( s -> dest [ 1 ] + off_uv , srcU , s -> uvlinesize , 8 , uvmx , uvmy ) ;\n v -> vc1dsp . put_no_rnd_vc1_chroma_pixels_tab [ 0 ] ( s -> dest [ 2 ] + off_uv , srcV , s -> uvlinesize , 8 , uvmx , uvmy ) ;\n }\n }"}
{"idx": 1152, "target": 0, "func": "static BusState * qbus_find_recursive ( BusState * bus , const char * name , const BusInfo * info ) {\n DeviceState * dev ;\n BusState * child , * ret ;\n int match = 1 ;\n if ( name && ( strcmp ( bus -> name , name ) != 0 ) ) {\n match = 0 ;\n }\n if ( info && ( bus -> info != info ) ) {\n match = 0 ;\n }\n if ( match ) {\n return bus ;\n }\n QLIST_FOREACH ( dev , & bus -> children , sibling ) {\n QLIST_FOREACH ( child , & dev -> child_bus , sibling ) {\n ret = qbus_find_recursive ( child , name , info ) ;\n if ( ret ) {\n return ret ;\n }\n }\n }\n return NULL ;\n }"}
{"idx": 1153, "target": 0, "func": "void unistim_calls_init_tap ( void ) {\n GString * error_string ;\n if ( have_unistim_tap_listener == FALSE ) {\n error_string = register_tap_listener ( \"unistim\" , & ( the_tapinfo_struct . unistim_dummy ) , NULL , 0 , voip_calls_dlg_reset , unistim_calls_packet , voip_calls_dlg_draw ) ;\n if ( error_string != NULL ) {\n simple_dialog ( ESD_TYPE_ERROR , ESD_BTN_OK , \"%s\" , error_string -> str ) ;\n g_string_free ( error_string , TRUE ) ;\n exit ( 1 ) ;\n }\n have_unistim_tap_listener = TRUE ;\n }\n }"}
{"idx": 1154, "target": 1, "func": "static Image * ReadLABELImage ( const ImageInfo * image_info , ExceptionInfo * exception ) {\n char geometry [ MaxTextExtent ] , * property ;\n const char * label ;\n DrawInfo * draw_info ;\n Image * image ;\n MagickBooleanType status ;\n TypeMetric metrics ;\n size_t height , width ;\n assert ( image_info != ( const ImageInfo * ) NULL ) ;\n assert ( image_info -> signature == MagickSignature ) ;\n if ( image_info -> debug != MagickFalse ) ( void ) LogMagickEvent ( TraceEvent , GetMagickModule ( ) , \"%s\" , image_info -> filename ) ;\n assert ( exception != ( ExceptionInfo * ) NULL ) ;\n assert ( exception -> signature == MagickSignature ) ;\n image = AcquireImage ( image_info ) ;\n ( void ) ResetImagePage ( image , \"0x0+0+0\" ) ;\n property = InterpretImageProperties ( image_info , image , image_info -> filename ) ;\n ( void ) SetImageProperty ( image , \"label\" , property ) ;\n property = DestroyString ( property ) ;\n label = GetImageProperty ( image , \"label\" ) ;\n draw_info = CloneDrawInfo ( image_info , ( DrawInfo * ) NULL ) ;\n draw_info -> text = ConstantString ( label ) ;\n metrics . width = 0 ;\n metrics . ascent = 0.0 ;\n status = GetMultilineTypeMetrics ( image , draw_info , & metrics ) ;\n if ( ( image -> columns == 0 ) && ( image -> rows == 0 ) ) {\n image -> columns = ( size_t ) floor ( metrics . width + draw_info -> stroke_width + 0.5 ) ;\n image -> rows = ( size_t ) floor ( metrics . height + draw_info -> stroke_width + 0.5 ) ;\n }\n else if ( ( strlen ( label ) > 0 ) && ( ( ( image -> columns == 0 ) || ( image -> rows == 0 ) ) || ( fabs ( image_info -> pointsize ) < MagickEpsilon ) ) ) {\n double high , low ;\n for ( ;\n ;\n draw_info -> pointsize *= 2.0 ) {\n ( void ) FormatLocaleString ( geometry , MaxTextExtent , \"%+g%+g\" , - metrics . bounds . x1 , metrics . ascent ) ;\n if ( draw_info -> gravity == UndefinedGravity ) ( void ) CloneString ( & draw_info -> geometry , geometry ) ;\n ( void ) GetMultilineTypeMetrics ( image , draw_info , & metrics ) ;\n width = ( size_t ) floor ( metrics . width + draw_info -> stroke_width + 0.5 ) ;\n height = ( size_t ) floor ( metrics . height + draw_info -> stroke_width + 0.5 ) ;\n if ( ( image -> columns != 0 ) && ( image -> rows != 0 ) ) {\n if ( ( width >= image -> columns ) && ( height >= image -> rows ) ) break ;\n }\n else if ( ( ( image -> columns != 0 ) && ( width >= image -> columns ) ) || ( ( image -> rows != 0 ) && ( height >= image -> rows ) ) ) break ;\n }\n high = draw_info -> pointsize ;\n for ( low = 1.0 ;\n ( high - low ) > 0.5 ;\n ) {\n draw_info -> pointsize = ( low + high ) / 2.0 ;\n ( void ) FormatLocaleString ( geometry , MaxTextExtent , \"%+g%+g\" , - metrics . bounds . x1 , metrics . ascent ) ;\n if ( draw_info -> gravity == UndefinedGravity ) ( void ) CloneString ( & draw_info -> geometry , geometry ) ;\n ( void ) GetMultilineTypeMetrics ( image , draw_info , & metrics ) ;\n width = ( size_t ) floor ( metrics . width + draw_info -> stroke_width + 0.5 ) ;\n height = ( size_t ) floor ( metrics . height + draw_info -> stroke_width + 0.5 ) ;\n if ( ( image -> columns != 0 ) && ( image -> rows != 0 ) ) {\n if ( ( width < image -> columns ) && ( height < image -> rows ) ) low = draw_info -> pointsize + 0.5 ;\n else high = draw_info -> pointsize - 0.5 ;\n }\n else if ( ( ( image -> columns != 0 ) && ( width < image -> columns ) ) || ( ( image -> rows != 0 ) && ( height < image -> rows ) ) ) low = draw_info -> pointsize + 0.5 ;\n else high = draw_info -> pointsize - 0.5 ;\n }\n draw_info -> pointsize = ( low + high ) / 2.0 - 0.5 ;\n }\n status = GetMultilineTypeMetrics ( image , draw_info , & metrics ) ;\n if ( status == MagickFalse ) {\n draw_info = DestroyDrawInfo ( draw_info ) ;\n InheritException ( exception , & image -> exception ) ;\n image = DestroyImageList ( image ) ;\n return ( ( Image * ) NULL ) ;\n }\n if ( image -> columns == 0 ) image -> columns = ( size_t ) floor ( metrics . width + draw_info -> stroke_width + 0.5 ) ;\n if ( image -> columns == 0 ) image -> columns = ( size_t ) floor ( draw_info -> pointsize + draw_info -> stroke_width + 0.5 ) ;\n if ( image -> rows == 0 ) image -> rows = ( size_t ) floor ( metrics . ascent - metrics . descent + draw_info -> stroke_width + 0.5 ) ;\n if ( image -> rows == 0 ) image -> rows = ( size_t ) floor ( draw_info -> pointsize + draw_info -> stroke_width + 0.5 ) ;\n status = SetImageExtent ( image , image -> columns , image -> rows ) ;\n if ( status == MagickFalse ) {\n draw_info = DestroyDrawInfo ( draw_info ) ;\n InheritException ( exception , & image -> exception ) ;\n return ( DestroyImageList ( image ) ) ;\n }\n if ( SetImageBackgroundColor ( image ) == MagickFalse ) {\n draw_info = DestroyDrawInfo ( draw_info ) ;\n InheritException ( exception , & image -> exception ) ;\n image = DestroyImageList ( image ) ;\n return ( ( Image * ) NULL ) ;\n }\n ( void ) FormatLocaleString ( geometry , MaxTextExtent , \"%+g%+g\" , draw_info -> direction == RightToLeftDirection ? image -> columns - metrics . bounds . x2 : 0.0 , draw_info -> gravity == UndefinedGravity ? metrics . ascent : 0.0 ) ;\n draw_info -> geometry = AcquireString ( geometry ) ;\n status = AnnotateImage ( image , draw_info ) ;\n if ( image_info -> pointsize == 0.0 ) {\n char pointsize [ MaxTextExtent ] ;\n ( void ) FormatLocaleString ( pointsize , MaxTextExtent , \"%.20g\" , draw_info -> pointsize ) ;\n ( void ) SetImageProperty ( image , \"label:pointsize\" , pointsize ) ;\n }\n draw_info = DestroyDrawInfo ( draw_info ) ;\n if ( status == MagickFalse ) {\n image = DestroyImageList ( image ) ;\n return ( ( Image * ) NULL ) ;\n }\n return ( GetFirstImageInList ( image ) ) ;\n }"}
{"idx": 1155, "target": 0, "func": "static int opt_show_ ## section ( const char * opt , const char * arg ) {\n mark_section_show_entries ( SECTION_ID_ ## target_section_id , 1 , NULL ) ;\n return 0 ;\n }\n DEFINE_OPT_SHOW_SECTION ( chapters , CHAPTERS )"}
{"idx": 1156, "target": 0, "func": "static VALUE ossl_asn1_ ## klass ( int argc , VALUE * argv , VALUE self ) \\ {\n return rb_funcall3 ( cASN1 ## klass , rb_intern ( \"new\" ) , argc , argv ) ;\n }\n OSSL_ASN1_IMPL_FACTORY_METHOD ( Boolean ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Integer ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Enumerated ) OSSL_ASN1_IMPL_FACTORY_METHOD ( BitString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( OctetString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( UTF8String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( NumericString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( PrintableString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( T61String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( VideotexString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( IA5String )"}
{"idx": 1157, "target": 0, "func": "static int dissect_h225_T_h245IpAddress ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_T_h245IpAddress , T_h245IpAddress_sequence ) ;\n return offset ;\n }"}
{"idx": 1158, "target": 0, "func": "static void kq_dealloc ( struct event_base * base , void * arg ) {\n struct kqop * kqop = arg ;\n evsignal_dealloc ( base ) ;\n if ( kqop -> changes ) free ( kqop -> changes ) ;\n if ( kqop -> events ) free ( kqop -> events ) ;\n if ( kqop -> kq >= 0 && kqop -> pid == getpid ( ) ) close ( kqop -> kq ) ;\n memset ( kqop , 0 , sizeof ( struct kqop ) ) ;\n free ( kqop ) ;\n }"}
{"idx": 1159, "target": 0, "func": "static void DB_error ( MYSQL * mysql_arg , const char * when ) {\n DBUG_ENTER ( \"DB_error\" ) ;\n maybe_die ( EX_MYSQLERR , \"Got error: %d: \\\"%s\\\" %s\" , mysql_errno ( mysql_arg ) , mysql_error ( mysql_arg ) , when ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 1160, "target": 1, "func": "static void rv30_loop_filter ( RV34DecContext * r , int row ) {\n MpegEncContext * s = & r -> s ;\n int mb_pos , mb_x ;\n int i , j , k ;\n uint8_t * Y , * C ;\n int loc_lim , cur_lim , left_lim = 0 , top_lim = 0 ;\n mb_pos = row * s -> mb_stride ;\n for ( mb_x = 0 ;\n mb_x < s -> mb_width ;\n mb_x ++ , mb_pos ++ ) {\n int mbtype = s -> current_picture_ptr -> f . mb_type [ mb_pos ] ;\n if ( IS_INTRA ( mbtype ) || IS_SEPARATE_DC ( mbtype ) ) r -> deblock_coefs [ mb_pos ] = 0xFFFF ;\n if ( IS_INTRA ( mbtype ) ) r -> cbp_chroma [ mb_pos ] = 0xFF ;\n }\n mb_pos = row * s -> mb_stride ;\n for ( mb_x = 0 ;\n mb_x < s -> mb_width ;\n mb_x ++ , mb_pos ++ ) {\n cur_lim = rv30_loop_filt_lim [ s -> current_picture_ptr -> f . qscale_table [ mb_pos ] ] ;\n if ( mb_x ) left_lim = rv30_loop_filt_lim [ s -> current_picture_ptr -> f . qscale_table [ mb_pos - 1 ] ] ;\n for ( j = 0 ;\n j < 16 ;\n j += 4 ) {\n Y = s -> current_picture_ptr -> f . data [ 0 ] + mb_x * 16 + ( row * 16 + j ) * s -> linesize + 4 * ! mb_x ;\n for ( i = ! mb_x ;\n i < 4 ;\n i ++ , Y += 4 ) {\n int ij = i + j ;\n loc_lim = 0 ;\n if ( r -> deblock_coefs [ mb_pos ] & ( 1 << ij ) ) loc_lim = cur_lim ;\n else if ( ! i && r -> deblock_coefs [ mb_pos - 1 ] & ( 1 << ( ij + 3 ) ) ) loc_lim = left_lim ;\n else if ( i && r -> deblock_coefs [ mb_pos ] & ( 1 << ( ij - 1 ) ) ) loc_lim = cur_lim ;\n if ( loc_lim ) rv30_weak_loop_filter ( Y , 1 , s -> linesize , loc_lim ) ;\n }\n }\n for ( k = 0 ;\n k < 2 ;\n k ++ ) {\n int cur_cbp , left_cbp = 0 ;\n cur_cbp = ( r -> cbp_chroma [ mb_pos ] >> ( k * 4 ) ) & 0xF ;\n if ( mb_x ) left_cbp = ( r -> cbp_chroma [ mb_pos - 1 ] >> ( k * 4 ) ) & 0xF ;\n for ( j = 0 ;\n j < 8 ;\n j += 4 ) {\n C = s -> current_picture_ptr -> f . data [ k + 1 ] + mb_x * 8 + ( row * 8 + j ) * s -> uvlinesize + 4 * ! mb_x ;\n for ( i = ! mb_x ;\n i < 2 ;\n i ++ , C += 4 ) {\n int ij = i + ( j >> 1 ) ;\n loc_lim = 0 ;\n if ( cur_cbp & ( 1 << ij ) ) loc_lim = cur_lim ;\n else if ( ! i && left_cbp & ( 1 << ( ij + 1 ) ) ) loc_lim = left_lim ;\n else if ( i && cur_cbp & ( 1 << ( ij - 1 ) ) ) loc_lim = cur_lim ;\n if ( loc_lim ) rv30_weak_loop_filter ( C , 1 , s -> uvlinesize , loc_lim ) ;\n }\n }\n }\n }\n mb_pos = row * s -> mb_stride ;\n for ( mb_x = 0 ;\n mb_x < s -> mb_width ;\n mb_x ++ , mb_pos ++ ) {\n cur_lim = rv30_loop_filt_lim [ s -> current_picture_ptr -> f . qscale_table [ mb_pos ] ] ;\n if ( row ) top_lim = rv30_loop_filt_lim [ s -> current_picture_ptr -> f . qscale_table [ mb_pos - s -> mb_stride ] ] ;\n for ( j = 4 * ! row ;\n j < 16 ;\n j += 4 ) {\n Y = s -> current_picture_ptr -> f . data [ 0 ] + mb_x * 16 + ( row * 16 + j ) * s -> linesize ;\n for ( i = 0 ;\n i < 4 ;\n i ++ , Y += 4 ) {\n int ij = i + j ;\n loc_lim = 0 ;\n if ( r -> deblock_coefs [ mb_pos ] & ( 1 << ij ) ) loc_lim = cur_lim ;\n else if ( ! j && r -> deblock_coefs [ mb_pos - s -> mb_stride ] & ( 1 << ( ij + 12 ) ) ) loc_lim = top_lim ;\n else if ( j && r -> deblock_coefs [ mb_pos ] & ( 1 << ( ij - 4 ) ) ) loc_lim = cur_lim ;\n if ( loc_lim ) rv30_weak_loop_filter ( Y , s -> linesize , 1 , loc_lim ) ;\n }\n }\n for ( k = 0 ;\n k < 2 ;\n k ++ ) {\n int cur_cbp , top_cbp = 0 ;\n cur_cbp = ( r -> cbp_chroma [ mb_pos ] >> ( k * 4 ) ) & 0xF ;\n if ( row ) top_cbp = ( r -> cbp_chroma [ mb_pos - s -> mb_stride ] >> ( k * 4 ) ) & 0xF ;\n for ( j = 4 * ! row ;\n j < 8 ;\n j += 4 ) {\n C = s -> current_picture_ptr -> f . data [ k + 1 ] + mb_x * 8 + ( row * 8 + j ) * s -> uvlinesize ;\n for ( i = 0 ;\n i < 2 ;\n i ++ , C += 4 ) {\n int ij = i + ( j >> 1 ) ;\n loc_lim = 0 ;\n if ( r -> cbp_chroma [ mb_pos ] & ( 1 << ij ) ) loc_lim = cur_lim ;\n else if ( ! j && top_cbp & ( 1 << ( ij + 2 ) ) ) loc_lim = top_lim ;\n else if ( j && cur_cbp & ( 1 << ( ij - 2 ) ) ) loc_lim = cur_lim ;\n if ( loc_lim ) rv30_weak_loop_filter ( C , s -> uvlinesize , 1 , loc_lim ) ;\n }\n }\n }\n }\n }"}
{"idx": 1161, "target": 0, "func": "int main ( int argc , char * * argv ) {\n if ( argc < 2 ) {\n fprintf ( stderr , \"Usage:\\n%s t_header.h\\n\" , argv [ 0 ] ) ;\n exit ( 1 ) ;\n }\n debug = 1 ;\n populate_symb ( argv [ 1 ] ) ;\n generate_preamble ( ) ;\n generate_token_text ( ) ;\n generate_fsm ( ) ;\n return 0 ;\n }"}
{"idx": 1162, "target": 0, "func": "VAR * var_obtain ( const char * name , int len ) {\n VAR * v ;\n if ( ( v = ( VAR * ) my_hash_search ( & var_hash , ( const uchar * ) name , len ) ) ) return v ;\n v = var_init ( 0 , name , len , \"\" , 0 ) ;\n my_hash_insert ( & var_hash , ( uchar * ) v ) ;\n return v ;\n }"}
{"idx": 1163, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , MAYBE_TestOSRegistrationFailure ) {\n ProtocolHandler ph_do = CreateProtocolHandler ( \"do\" , \"test1\" ) ;\n ProtocolHandler ph_dont = CreateProtocolHandler ( \"dont\" , \"test\" ) ;\n ASSERT_FALSE ( registry ( ) -> IsHandledProtocol ( \"do\" ) ) ;\n ASSERT_FALSE ( registry ( ) -> IsHandledProtocol ( \"dont\" ) ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph_do ) ;\n base : : MessageLoop : : current ( ) -> Run ( ) ;\n delegate ( ) -> set_force_os_failure ( true ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph_dont ) ;\n base : : MessageLoop : : current ( ) -> Run ( ) ;\n ASSERT_TRUE ( registry ( ) -> IsHandledProtocol ( \"do\" ) ) ;\n ASSERT_EQ ( static_cast < size_t > ( 1 ) , registry ( ) -> GetHandlersFor ( \"do\" ) . size ( ) ) ;\n ASSERT_FALSE ( registry ( ) -> IsHandledProtocol ( \"dont\" ) ) ;\n ASSERT_EQ ( static_cast < size_t > ( 1 ) , registry ( ) -> GetHandlersFor ( \"dont\" ) . size ( ) ) ;\n }"}
{"idx": 1164, "target": 0, "func": "static int CheckOtherHTTPHeaders ( http_message_t * Req , struct SendInstruction * RespInstr , off_t FileSize ) {\n http_header_t * header ;\n ListNode * node ;\n int index , RetCode = HTTP_OK ;\n char * TmpBuf ;\n size_t TmpBufSize = LINE_SIZE ;\n TmpBuf = ( char * ) malloc ( TmpBufSize ) ;\n if ( ! TmpBuf ) return HTTP_INTERNAL_SERVER_ERROR ;\n node = ListHead ( & Req -> headers ) ;\n while ( node != NULL ) {\n header = ( http_header_t * ) node -> item ;\n index = map_str_to_int ( ( const char * ) header -> name . buf , header -> name . length , Http_Header_Names , NUM_HTTP_HEADER_NAMES , FALSE ) ;\n if ( header -> value . length >= TmpBufSize ) {\n free ( TmpBuf ) ;\n TmpBufSize = header -> value . length + 1 ;\n TmpBuf = ( char * ) malloc ( TmpBufSize ) ;\n if ( ! TmpBuf ) return HTTP_INTERNAL_SERVER_ERROR ;\n }\n memcpy ( TmpBuf , header -> value . buf , header -> value . length ) ;\n TmpBuf [ header -> value . length ] = '\\0' ;\n if ( index >= 0 ) {\n switch ( Http_Header_Names [ index ] . id ) {\n case HDR_TE : {\n RespInstr -> IsChunkActive = 1 ;\n if ( strlen ( TmpBuf ) > strlen ( \"gzip\" ) ) {\n if ( StrStr ( TmpBuf , \"trailers\" ) != NULL ) {\n RespInstr -> IsTrailers = 1 ;\n }\n }\n break ;\n }\n case HDR_CONTENT_LENGTH : RespInstr -> RecvWriteSize = atoi ( TmpBuf ) ;\n break ;\n case HDR_RANGE : RetCode = CreateHTTPRangeResponseHeader ( TmpBuf , FileSize , RespInstr ) ;\n if ( RetCode != HTTP_OK ) {\n free ( TmpBuf ) ;\n return RetCode ;\n }\n break ;\n case HDR_ACCEPT_LANGUAGE : if ( header -> value . length + 1 > sizeof ( RespInstr -> AcceptLanguageHeader ) ) {\n size_t length = sizeof ( RespInstr -> AcceptLanguageHeader ) - 1 ;\n memcpy ( RespInstr -> AcceptLanguageHeader , TmpBuf , length ) ;\n RespInstr -> AcceptLanguageHeader [ length ] = '\\0' ;\n }\n else {\n memcpy ( RespInstr -> AcceptLanguageHeader , TmpBuf , header -> value . length + 1 ) ;\n }\n break ;\n default : break ;\n }\n }\n node = ListNext ( & Req -> headers , node ) ;\n }\n free ( TmpBuf ) ;\n return RetCode ;\n }"}
{"idx": 1165, "target": 0, "func": "int EVP_DecryptInit ( EVP_CIPHER_CTX * ctx , const EVP_CIPHER * cipher , const unsigned char * key , const unsigned char * iv ) {\n return EVP_CipherInit ( ctx , cipher , key , iv , 0 ) ;\n }"}
{"idx": 1166, "target": 0, "func": "static UBool _isPrivateuseValueSubtag ( const char * s , int32_t len ) {\n if ( len < 0 ) {\n len = ( int32_t ) uprv_strlen ( s ) ;\n }\n if ( len >= 1 && len <= 8 && _isAlphaNumericString ( s , len ) ) {\n return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 1167, "target": 0, "func": "unsigned int vp9_sad ## m ## x ## n ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride ) {\n return sad ( src , src_stride , ref , ref_stride , m , n ) ;\n \\ }\n 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 ) {\n uint8_t comp_pred [ m * n ] ;\n vp9_comp_avg_pred ( comp_pred , second_pred , m , n , ref , ref_stride ) ;\n return sad ( src , src_stride , comp_pred , m , m , n ) ;\n \\ }\n # define sadMxNxK ( m , n , k ) void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 ) sadMxN ( 16 , 32 ) sadMxNx4D ( 16 , 32 ) sadMxN ( 16 , 16 ) sadMxNxK ( 16 , 16 , 3 ) sadMxNxK ( 16 , 16 , 8 ) sadMxNx4D ( 16 , 16 ) sadMxN ( 16 , 8 ) sadMxNxK ( 16 , 8 , 3 ) sadMxNxK ( 16 , 8 , 8 ) sadMxNx4D ( 16 , 8 ) sadMxN ( 8 , 16 )"}
{"idx": 1168, "target": 0, "func": "static void print_mi_data ( VP9_COMMON * cm , FILE * file , const char * descriptor , size_t member_offset ) {\n int mi_row , mi_col ;\n int mi_index = 0 ;\n MODE_INFO * * mi = NULL ;\n int rows = cm -> mi_rows ;\n int cols = cm -> mi_cols ;\n char prefix = descriptor [ 0 ] ;\n log_frame_info ( cm , descriptor , file ) ;\n mi_index = 0 ;\n for ( mi_row = 0 ;\n mi_row < rows ;\n mi_row ++ ) {\n fprintf ( file , \"%c \" , prefix ) ;\n for ( mi_col = 0 ;\n mi_col < cols ;\n mi_col ++ ) {\n fprintf ( file , \"%2d \" , * ( ( int * ) ( ( char * ) ( & mi [ mi_index ] -> mbmi ) + member_offset ) ) ) ;\n mi_index ++ ;\n }\n fprintf ( file , \"\\n\" ) ;\n mi_index += 8 ;\n }\n fprintf ( file , \"\\n\" ) ;\n }"}
{"idx": 1169, "target": 1, "func": "void xmlHashScanFull ( xmlHashTablePtr table , xmlHashScannerFull f , void * data ) {\n int i , nb ;\n xmlHashEntryPtr iter ;\n xmlHashEntryPtr next ;\n if ( table == NULL ) return ;\n if ( f == NULL ) return ;\n if ( table -> table ) {\n for ( i = 0 ;\n i < table -> size ;\n i ++ ) {\n if ( table -> table [ i ] . valid == 0 ) continue ;\n iter = & ( table -> table [ i ] ) ;\n while ( iter ) {\n next = iter -> next ;\n nb = table -> nbElems ;\n if ( ( f != NULL ) && ( iter -> payload != NULL ) ) f ( iter -> payload , data , iter -> name , iter -> name2 , iter -> name3 ) ;\n if ( nb != table -> nbElems ) {\n if ( iter == & ( table -> table [ i ] ) ) {\n if ( table -> table [ i ] . valid == 0 ) iter = NULL ;\n if ( table -> table [ i ] . next != next ) iter = & ( table -> table [ i ] ) ;\n }\n else iter = next ;\n }\n else iter = next ;\n }\n }\n }\n }"}
{"idx": 1170, "target": 0, "func": "static void * _getBuffer ( UEnumeration * en , int32_t capacity ) {\n if ( en -> baseContext != NULL ) {\n if ( ( ( _UEnumBuffer * ) en -> baseContext ) -> len < capacity ) {\n capacity += PAD ;\n en -> baseContext = uprv_realloc ( en -> baseContext , sizeof ( int32_t ) + capacity ) ;\n if ( en -> baseContext == NULL ) {\n return NULL ;\n }\n ( ( _UEnumBuffer * ) en -> baseContext ) -> len = capacity ;\n }\n }\n else {\n capacity += PAD ;\n en -> baseContext = uprv_malloc ( sizeof ( int32_t ) + capacity ) ;\n if ( en -> baseContext == NULL ) {\n return NULL ;\n }\n ( ( _UEnumBuffer * ) en -> baseContext ) -> len = capacity ;\n }\n return ( void * ) & ( ( _UEnumBuffer * ) en -> baseContext ) -> data ;\n }"}
{"idx": 1171, "target": 0, "func": "void proto_reg_handoff_h245 ( void ) {\n dissector_handle_t h245_handle ;\n rtcp_handle = find_dissector ( \"rtcp\" ) ;\n data_handle = find_dissector ( \"data\" ) ;\n h263_handle = find_dissector ( \"h263data\" ) ;\n amr_handle = find_dissector ( \"amr_if2_nb\" ) ;\n h245_handle = find_dissector ( \"h245\" ) ;\n dissector_add_handle ( \"tcp.port\" , h245_handle ) ;\n MultimediaSystemControlMessage_handle = find_dissector ( \"h245dg\" ) ;\n dissector_add_handle ( \"udp.port\" , MultimediaSystemControlMessage_handle ) ;\n }"}
{"idx": 1172, "target": 0, "func": "static int match_version ( const char * string , struct link_map * map ) {\n const char * strtab = ( const void * ) D_PTR ( map , l_info [ DT_STRTAB ] ) ;\n ElfW ( Verdef ) * def ;\n # define VERDEFTAG ( DT_NUM + DT_THISPROCNUM + DT_VERSIONTAGIDX ( DT_VERDEF ) ) if ( map -> l_info [ VERDEFTAG ] == NULL ) return 0 ;\n def = ( ElfW ( Verdef ) * ) ( ( char * ) map -> l_addr + map -> l_info [ VERDEFTAG ] -> d_un . d_ptr ) ;\n while ( 1 ) {\n ElfW ( Verdaux ) * aux = ( ElfW ( Verdaux ) * ) ( ( char * ) def + def -> vd_aux ) ;\n if ( strcmp ( string , strtab + aux -> vda_name ) == 0 ) return 1 ;\n if ( def -> vd_next == 0 ) break ;\n def = ( ElfW ( Verdef ) * ) ( ( char * ) def + def -> vd_next ) ;\n }\n return 0 ;\n }"}
{"idx": 1173, "target": 0, "func": "static bool hyperv_reenlightenment_enable_needed ( void * opaque ) {\n X86CPU * cpu = opaque ;\n CPUX86State * env = & cpu -> env ;\n return env -> msr_hv_reenlightenment_control != 0 || env -> msr_hv_tsc_emulation_control != 0 || env -> msr_hv_tsc_emulation_status != 0 ;\n }"}
{"idx": 1174, "target": 0, "func": "void jpc_qmfb_join_col ( jpc_fix_t * a , int numrows , int stride , int parity ) {\n int bufsize = JPC_CEILDIVPOW2 ( numrows , 1 ) ;\n jpc_fix_t joinbuf [ QMFB_JOINBUFSIZE ] ;\n jpc_fix_t * buf = joinbuf ;\n register jpc_fix_t * srcptr ;\n register jpc_fix_t * dstptr ;\n register int n ;\n int hstartcol ;\n if ( bufsize > QMFB_JOINBUFSIZE ) {\n if ( ! ( buf = jas_alloc2 ( bufsize , sizeof ( jpc_fix_t ) ) ) ) {\n abort ( ) ;\n }\n }\n hstartcol = ( numrows + 1 - parity ) >> 1 ;\n n = hstartcol ;\n srcptr = & a [ 0 ] ;\n dstptr = buf ;\n while ( n -- > 0 ) {\n * dstptr = * srcptr ;\n srcptr += stride ;\n ++ dstptr ;\n }\n srcptr = & a [ hstartcol * stride ] ;\n dstptr = & a [ ( 1 - parity ) * stride ] ;\n n = numrows - hstartcol ;\n while ( n -- > 0 ) {\n * dstptr = * srcptr ;\n dstptr += 2 * stride ;\n srcptr += stride ;\n }\n srcptr = buf ;\n dstptr = & a [ parity * stride ] ;\n n = hstartcol ;\n while ( n -- > 0 ) {\n * dstptr = * srcptr ;\n dstptr += 2 * stride ;\n ++ srcptr ;\n }\n if ( buf != joinbuf ) {\n jas_free ( buf ) ;\n }\n }"}
{"idx": 1175, "target": 0, "func": "static void _slurm_rpc_reconfigure_controller ( slurm_msg_t * msg ) {\n int error_code = SLURM_SUCCESS ;\n static bool in_progress = false ;\n DEF_TIMERS ;\n slurmctld_lock_t config_write_lock = {\n WRITE_LOCK , WRITE_LOCK , WRITE_LOCK , WRITE_LOCK , NO_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n START_TIMER ;\n info ( \"Processing RPC: REQUEST_RECONFIGURE from uid=%d\" , uid ) ;\n if ( ! validate_super_user ( uid ) ) {\n error ( \"Security violation, RECONFIGURE RPC from uid=%d\" , uid ) ;\n error_code = ESLURM_USER_ID_MISSING ;\n }\n if ( in_progress || slurmctld_config . shutdown_time ) error_code = EINPROGRESS ;\n if ( error_code == SLURM_SUCCESS ) {\n debug ( \"sched: begin reconfiguration\" ) ;\n lock_slurmctld ( config_write_lock ) ;\n in_progress = true ;\n error_code = read_slurm_conf ( 1 , true ) ;\n if ( error_code == SLURM_SUCCESS ) {\n _update_cred_key ( ) ;\n set_slurmctld_state_loc ( ) ;\n msg_to_slurmd ( REQUEST_RECONFIGURE ) ;\n }\n in_progress = false ;\n gs_reconfig ( ) ;\n unlock_slurmctld ( config_write_lock ) ;\n assoc_mgr_set_missing_uids ( ) ;\n start_power_mgr ( & slurmctld_config . thread_id_power ) ;\n trigger_reconfig ( ) ;\n }\n END_TIMER2 ( \"_slurm_rpc_reconfigure_controller\" ) ;\n if ( error_code ) {\n error ( \"_slurm_rpc_reconfigure_controller: %s\" , slurm_strerror ( error_code ) ) ;\n slurm_send_rc_msg ( msg , error_code ) ;\n }\n else {\n info ( \"_slurm_rpc_reconfigure_controller: completed %s\" , TIME_STR ) ;\n slurm_send_rc_msg ( msg , SLURM_SUCCESS ) ;\n acct_storage_g_reconfig ( acct_db_conn , 0 ) ;\n priority_g_reconfig ( false ) ;\n save_all_state ( ) ;\n queue_job_scheduler ( ) ;\n }\n }"}
{"idx": 1176, "target": 0, "func": "static void spl_ptr_llist_zval_ctor ( spl_ptr_llist_element * elem TSRMLS_DC ) {\n Z_ADDREF_P ( ( zval * ) elem -> data ) ;\n }"}
{"idx": 1177, "target": 0, "func": "static void pause_activation_timed_cancel ( ActivateParameters * parameters ) {\n if ( parameters -> timed_wait_active ) {\n eel_timed_wait_stop ( cancel_activate_callback , parameters ) ;\n parameters -> timed_wait_active = FALSE ;\n }\n }"}
{"idx": 1178, "target": 0, "func": "static inline int binkb_get_value ( BinkContext * c , int bundle_num ) {\n int16_t ret ;\n const int bits = binkb_bundle_sizes [ bundle_num ] ;\n if ( bits <= 8 ) {\n int val = * c -> bundle [ bundle_num ] . cur_ptr ++ ;\n return binkb_bundle_signed [ bundle_num ] ? ( int8_t ) val : val ;\n }\n ret = * ( int16_t * ) c -> bundle [ bundle_num ] . cur_ptr ;\n c -> bundle [ bundle_num ] . cur_ptr += 2 ;\n return ret ;\n }"}
{"idx": 1179, "target": 0, "func": "static void * kq_init ( struct event_base * base ) {\n int i , kq ;\n struct kqop * kqueueop ;\n if ( evutil_getenv ( \"EVENT_NOKQUEUE\" ) ) return ( NULL ) ;\n if ( ! ( kqueueop = calloc ( 1 , sizeof ( struct kqop ) ) ) ) return ( NULL ) ;\n if ( ( kq = kqueue ( ) ) == - 1 ) {\n event_warn ( \"kqueue\" ) ;\n free ( kqueueop ) ;\n return ( NULL ) ;\n }\n kqueueop -> kq = kq ;\n kqueueop -> pid = getpid ( ) ;\n kqueueop -> changes = malloc ( NEVENT * sizeof ( struct kevent ) ) ;\n if ( kqueueop -> changes == NULL ) {\n free ( kqueueop ) ;\n return ( NULL ) ;\n }\n kqueueop -> events = malloc ( NEVENT * sizeof ( struct kevent ) ) ;\n if ( kqueueop -> events == NULL ) {\n free ( kqueueop -> changes ) ;\n free ( kqueueop ) ;\n return ( NULL ) ;\n }\n kqueueop -> nevents = NEVENT ;\n for ( i = 0 ;\n i < NSIG ;\n ++ i ) {\n TAILQ_INIT ( & kqueueop -> evsigevents [ i ] ) ;\n }\n memset ( & kqueueop -> changes [ 0 ] , 0 , sizeof kqueueop -> changes [ 0 ] ) ;\n kqueueop -> changes [ 0 ] . ident = - 1 ;\n kqueueop -> changes [ 0 ] . filter = EVFILT_READ ;\n kqueueop -> changes [ 0 ] . flags = EV_ADD ;\n if ( kevent ( kq , kqueueop -> changes , 1 , kqueueop -> events , NEVENT , NULL ) != 1 || kqueueop -> events [ 0 ] . ident != - 1 || kqueueop -> events [ 0 ] . flags != EV_ERROR ) {\n event_warn ( \"%s: detected broken kqueue;\n not using.\" , __func__ ) ;\n free ( kqueueop -> changes ) ;\n free ( kqueueop -> events ) ;\n free ( kqueueop ) ;\n close ( kq ) ;\n return ( NULL ) ;\n }\n return ( kqueueop ) ;\n }"}
{"idx": 1180, "target": 0, "func": "static void test_bug33831 ( void ) {\n MYSQL * l_mysql ;\n DBUG_ENTER ( \"test_bug33831\" ) ;\n if ( ! ( l_mysql = mysql_client_init ( NULL ) ) ) {\n myerror ( \"mysql_client_init() failed\" ) ;\n DIE_UNLESS ( 0 ) ;\n }\n if ( ! ( mysql_real_connect ( l_mysql , opt_host , opt_user , opt_password , current_db , opt_port , opt_unix_socket , 0 ) ) ) {\n myerror ( \"connection failed\" ) ;\n DIE_UNLESS ( 0 ) ;\n }\n if ( mysql_real_connect ( l_mysql , opt_host , opt_user , opt_password , current_db , opt_port , opt_unix_socket , 0 ) ) {\n myerror ( \"connection should have failed\" ) ;\n DIE_UNLESS ( 0 ) ;\n }\n mysql_close ( l_mysql ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 1181, "target": 0, "func": "gr_font # include \"hb-shaper-impl-private.hh\" # include \"hb-graphite2.h\" # include < graphite2 / Segment . h > HB_SHAPER_DATA_ENSURE_DECLARE ( graphite2 , face ) HB_SHAPER_DATA_ENSURE_DECLARE ( graphite2 , font ) typedef struct hb_graphite2_tablelist_t {\n struct hb_graphite2_tablelist_t * next ;\n hb_blob_t * blob ;\n unsigned int tag ;\n }\n hb_graphite2_tablelist_t ;\n struct hb_graphite2_shaper_face_data_t {\n hb_face_t * face ;\n gr_face * grface ;\n hb_graphite2_tablelist_t * tlist ;\n }\n ;\n static const void * hb_graphite2_get_table ( const void * data , unsigned int tag , size_t * len ) {\n hb_graphite2_shaper_face_data_t * face_data = ( hb_graphite2_shaper_face_data_t * ) data ;\n hb_graphite2_tablelist_t * tlist = face_data -> tlist ;\n hb_blob_t * blob = NULL ;\n for ( hb_graphite2_tablelist_t * p = tlist ;\n p ;\n p = p -> next ) if ( p -> tag == tag ) {\n blob = p -> blob ;\n break ;\n }\n if ( unlikely ( ! blob ) ) {\n blob = face_data -> face -> reference_table ( tag ) ;\n hb_graphite2_tablelist_t * p = ( hb_graphite2_tablelist_t * ) calloc ( 1 , sizeof ( hb_graphite2_tablelist_t ) ) ;\n if ( unlikely ( ! p ) ) {\n hb_blob_destroy ( blob ) ;\n return NULL ;\n }\n p -> blob = blob ;\n p -> tag = tag ;\n p -> next = face_data -> tlist ;\n face_data -> tlist = p ;\n }\n unsigned int tlen ;\n const char * d = hb_blob_get_data ( blob , & tlen ) ;\n * len = tlen ;\n return d ;\n }\n hb_graphite2_shaper_face_data_t * _hb_graphite2_shaper_face_data_create ( hb_face_t * face ) {\n hb_blob_t * silf_blob = face -> reference_table ( HB_GRAPHITE2_TAG_SILF ) ;\n if ( ! hb_blob_get_length ( silf_blob ) ) {\n hb_blob_destroy ( silf_blob ) ;\n return NULL ;\n }\n hb_blob_destroy ( silf_blob ) ;\n hb_graphite2_shaper_face_data_t * data = ( hb_graphite2_shaper_face_data_t * ) calloc ( 1 , sizeof ( hb_graphite2_shaper_face_data_t ) ) ;\n if ( unlikely ( ! data ) ) return NULL ;\n data -> face = face ;\n data -> grface = gr_make_face ( data , & hb_graphite2_get_table , gr_face_preloadAll ) ;\n if ( unlikely ( ! data -> grface ) ) {\n free ( data ) ;\n return NULL ;\n }\n return data ;\n }\n void _hb_graphite2_shaper_face_data_destroy ( hb_graphite2_shaper_face_data_t * data ) {\n hb_graphite2_tablelist_t * tlist = data -> tlist ;\n while ( tlist ) {\n hb_graphite2_tablelist_t * old = tlist ;\n hb_blob_destroy ( tlist -> blob ) ;\n tlist = tlist -> next ;\n free ( old ) ;\n }\n gr_face_destroy ( data -> grface ) ;\n free ( data ) ;\n }\n gr_face * hb_graphite2_face_get_gr_face ( hb_face_t * face ) {\n if ( unlikely ( ! hb_graphite2_shaper_face_data_ensure ( face ) ) ) return NULL ;\n return HB_SHAPER_DATA_GET ( face ) -> grface ;\n }\n static float hb_graphite2_get_advance ( const void * hb_font , unsigned short gid ) {\n return ( ( hb_font_t * ) hb_font ) -> get_glyph_h_advance ( gid ) ;\n }\n hb_graphite2_shaper_font_data_t * _hb_graphite2_shaper_font_data_create ( hb_font_t * font ) {\n if ( unlikely ( ! hb_graphite2_shaper_face_data_ensure ( font -> face ) ) ) return NULL ;\n hb_face_t * face = font -> face ;\n hb_graphite2_shaper_face_data_t * face_data = HB_SHAPER_DATA_GET ( face ) ;\n return gr_make_font_with_advance_fn ( font -> x_scale , font , & hb_graphite2_get_advance , face_data -> grface ) ;\n }"}
{"idx": 1182, "target": 0, "func": "static VALUE cState_aref ( VALUE self , VALUE name ) {\n name = rb_funcall ( name , i_to_s , 0 ) ;\n if ( RTEST ( rb_funcall ( self , i_respond_to_p , 1 , name ) ) ) {\n return rb_funcall ( self , i_send , 1 , name ) ;\n }\n else {\n return rb_ivar_get ( self , rb_intern_str ( rb_str_concat ( rb_str_new2 ( \"@\" ) , name ) ) ) ;\n }\n }"}
{"idx": 1183, "target": 0, "func": "void mgcp_calls_init_tap ( void ) {\n GString * error_string ;\n if ( have_MGCP_tap_listener == FALSE ) {\n error_string = register_tap_listener ( \"mgcp\" , & ( the_tapinfo_struct . mgcp_dummy ) , NULL , TL_REQUIRES_PROTO_TREE , voip_calls_dlg_reset , MGCPcalls_packet , voip_calls_dlg_draw ) ;\n if ( error_string != NULL ) {\n simple_dialog ( ESD_TYPE_ERROR , ESD_BTN_OK , \"%s\" , error_string -> str ) ;\n g_string_free ( error_string , TRUE ) ;\n exit ( 1 ) ;\n }\n have_MGCP_tap_listener = TRUE ;\n }\n }"}
{"idx": 1184, "target": 0, "func": "static void deep_count_callback ( GObject * source_object , GAsyncResult * res , gpointer user_data ) {\n DeepCountState * state ;\n GFileEnumerator * enumerator ;\n NautilusFile * file ;\n state = user_data ;\n if ( state -> directory == NULL ) {\n deep_count_state_free ( state ) ;\n return ;\n }\n file = state -> directory -> details -> deep_count_file ;\n enumerator = g_file_enumerate_children_finish ( G_FILE ( source_object ) , res , NULL ) ;\n if ( enumerator == NULL ) {\n file -> details -> deep_unreadable_count += 1 ;\n deep_count_next_dir ( state ) ;\n }\n else {\n state -> enumerator = enumerator ;\n g_file_enumerator_next_files_async ( state -> enumerator , DIRECTORY_LOAD_ITEMS_PER_CALLBACK , G_PRIORITY_LOW , state -> cancellable , deep_count_more_files_callback , state ) ;\n }\n }"}
{"idx": 1185, "target": 0, "func": "void mime_init ( ) {\n static int init = 1 ;\n if ( init ) {\n init = 0 ;\n hdrtoken_init ( ) ;\n day_names_dfa = new DFA ;\n day_names_dfa -> compile ( day_names , SIZEOF ( day_names ) , RE_CASE_INSENSITIVE ) ;\n month_names_dfa = new DFA ;\n month_names_dfa -> compile ( month_names , SIZEOF ( month_names ) , RE_CASE_INSENSITIVE ) ;\n MIME_FIELD_ACCEPT = hdrtoken_string_to_wks ( \"Accept\" ) ;\n MIME_FIELD_ACCEPT_CHARSET = hdrtoken_string_to_wks ( \"Accept-Charset\" ) ;\n MIME_FIELD_ACCEPT_ENCODING = hdrtoken_string_to_wks ( \"Accept-Encoding\" ) ;\n MIME_FIELD_ACCEPT_LANGUAGE = hdrtoken_string_to_wks ( \"Accept-Language\" ) ;\n MIME_FIELD_ACCEPT_RANGES = hdrtoken_string_to_wks ( \"Accept-Ranges\" ) ;\n MIME_FIELD_AGE = hdrtoken_string_to_wks ( \"Age\" ) ;\n MIME_FIELD_ALLOW = hdrtoken_string_to_wks ( \"Allow\" ) ;\n MIME_FIELD_APPROVED = hdrtoken_string_to_wks ( \"Approved\" ) ;\n MIME_FIELD_AUTHORIZATION = hdrtoken_string_to_wks ( \"Authorization\" ) ;\n MIME_FIELD_BYTES = hdrtoken_string_to_wks ( \"Bytes\" ) ;\n MIME_FIELD_CACHE_CONTROL = hdrtoken_string_to_wks ( \"Cache-Control\" ) ;\n MIME_FIELD_CLIENT_IP = hdrtoken_string_to_wks ( \"Client-ip\" ) ;\n MIME_FIELD_CONNECTION = hdrtoken_string_to_wks ( \"Connection\" ) ;\n MIME_FIELD_CONTENT_BASE = hdrtoken_string_to_wks ( \"Content-Base\" ) ;\n MIME_FIELD_CONTENT_ENCODING = hdrtoken_string_to_wks ( \"Content-Encoding\" ) ;\n MIME_FIELD_CONTENT_LANGUAGE = hdrtoken_string_to_wks ( \"Content-Language\" ) ;\n MIME_FIELD_CONTENT_LENGTH = hdrtoken_string_to_wks ( \"Content-Length\" ) ;\n MIME_FIELD_CONTENT_LOCATION = hdrtoken_string_to_wks ( \"Content-Location\" ) ;\n MIME_FIELD_CONTENT_MD5 = hdrtoken_string_to_wks ( \"Content-MD5\" ) ;\n MIME_FIELD_CONTENT_RANGE = hdrtoken_string_to_wks ( \"Content-Range\" ) ;\n MIME_FIELD_CONTENT_TYPE = hdrtoken_string_to_wks ( \"Content-Type\" ) ;\n MIME_FIELD_CONTROL = hdrtoken_string_to_wks ( \"Control\" ) ;\n MIME_FIELD_COOKIE = hdrtoken_string_to_wks ( \"Cookie\" ) ;\n MIME_FIELD_DATE = hdrtoken_string_to_wks ( \"Date\" ) ;\n MIME_FIELD_DISTRIBUTION = hdrtoken_string_to_wks ( \"Distribution\" ) ;\n MIME_FIELD_ETAG = hdrtoken_string_to_wks ( \"Etag\" ) ;\n MIME_FIELD_EXPECT = hdrtoken_string_to_wks ( \"Expect\" ) ;\n MIME_FIELD_EXPIRES = hdrtoken_string_to_wks ( \"Expires\" ) ;\n MIME_FIELD_FOLLOWUP_TO = hdrtoken_string_to_wks ( \"Followup-To\" ) ;\n MIME_FIELD_FROM = hdrtoken_string_to_wks ( \"From\" ) ;\n MIME_FIELD_HOST = hdrtoken_string_to_wks ( \"Host\" ) ;\n MIME_FIELD_IF_MATCH = hdrtoken_string_to_wks ( \"If-Match\" ) ;\n MIME_FIELD_IF_MODIFIED_SINCE = hdrtoken_string_to_wks ( \"If-Modified-Since\" ) ;\n MIME_FIELD_IF_NONE_MATCH = hdrtoken_string_to_wks ( \"If-None-Match\" ) ;\n MIME_FIELD_IF_RANGE = hdrtoken_string_to_wks ( \"If-Range\" ) ;\n MIME_FIELD_IF_UNMODIFIED_SINCE = hdrtoken_string_to_wks ( \"If-Unmodified-Since\" ) ;\n MIME_FIELD_KEEP_ALIVE = hdrtoken_string_to_wks ( \"Keep-Alive\" ) ;\n MIME_FIELD_KEYWORDS = hdrtoken_string_to_wks ( \"Keywords\" ) ;\n MIME_FIELD_LAST_MODIFIED = hdrtoken_string_to_wks ( \"Last-Modified\" ) ;\n MIME_FIELD_LINES = hdrtoken_string_to_wks ( \"Lines\" ) ;\n MIME_FIELD_LOCATION = hdrtoken_string_to_wks ( \"Location\" ) ;\n MIME_FIELD_MAX_FORWARDS = hdrtoken_string_to_wks ( \"Max-Forwards\" ) ;\n MIME_FIELD_MESSAGE_ID = hdrtoken_string_to_wks ( \"Message-ID\" ) ;\n MIME_FIELD_NEWSGROUPS = hdrtoken_string_to_wks ( \"Newsgroups\" ) ;\n MIME_FIELD_ORGANIZATION = hdrtoken_string_to_wks ( \"Organization\" ) ;\n MIME_FIELD_PATH = hdrtoken_string_to_wks ( \"Path\" ) ;\n MIME_FIELD_PRAGMA = hdrtoken_string_to_wks ( \"Pragma\" ) ;\n MIME_FIELD_PROXY_AUTHENTICATE = hdrtoken_string_to_wks ( \"Proxy-Authenticate\" ) ;\n MIME_FIELD_PROXY_AUTHORIZATION = hdrtoken_string_to_wks ( \"Proxy-Authorization\" ) ;\n MIME_FIELD_PROXY_CONNECTION = hdrtoken_string_to_wks ( \"Proxy-Connection\" ) ;\n MIME_FIELD_PUBLIC = hdrtoken_string_to_wks ( \"Public\" ) ;\n MIME_FIELD_RANGE = hdrtoken_string_to_wks ( \"Range\" ) ;\n MIME_FIELD_REFERENCES = hdrtoken_string_to_wks ( \"References\" ) ;\n MIME_FIELD_REFERER = hdrtoken_string_to_wks ( \"Referer\" ) ;\n MIME_FIELD_REPLY_TO = hdrtoken_string_to_wks ( \"Reply-To\" ) ;\n MIME_FIELD_RETRY_AFTER = hdrtoken_string_to_wks ( \"Retry-After\" ) ;\n MIME_FIELD_SENDER = hdrtoken_string_to_wks ( \"Sender\" ) ;\n MIME_FIELD_SERVER = hdrtoken_string_to_wks ( \"Server\" ) ;\n MIME_FIELD_SET_COOKIE = hdrtoken_string_to_wks ( \"Set-Cookie\" ) ;\n MIME_FIELD_STRICT_TRANSPORT_SECURITY = hdrtoken_string_to_wks ( \"Strict-Transport-Security\" ) ;\n MIME_FIELD_SUBJECT = hdrtoken_string_to_wks ( \"Subject\" ) ;\n MIME_FIELD_SUMMARY = hdrtoken_string_to_wks ( \"Summary\" ) ;\n MIME_FIELD_TE = hdrtoken_string_to_wks ( \"TE\" ) ;\n MIME_FIELD_TRANSFER_ENCODING = hdrtoken_string_to_wks ( \"Transfer-Encoding\" ) ;\n MIME_FIELD_UPGRADE = hdrtoken_string_to_wks ( \"Upgrade\" ) ;\n MIME_FIELD_USER_AGENT = hdrtoken_string_to_wks ( \"User-Agent\" ) ;\n MIME_FIELD_VARY = hdrtoken_string_to_wks ( \"Vary\" ) ;\n MIME_FIELD_VIA = hdrtoken_string_to_wks ( \"Via\" ) ;\n MIME_FIELD_WARNING = hdrtoken_string_to_wks ( \"Warning\" ) ;\n MIME_FIELD_WWW_AUTHENTICATE = hdrtoken_string_to_wks ( \"Www-Authenticate\" ) ;\n MIME_FIELD_XREF = hdrtoken_string_to_wks ( \"Xref\" ) ;\n MIME_FIELD_ATS_INTERNAL = hdrtoken_string_to_wks ( \"@Ats-Internal\" ) ;\n MIME_FIELD_X_ID = hdrtoken_string_to_wks ( \"X-ID\" ) ;\n MIME_FIELD_X_FORWARDED_FOR = hdrtoken_string_to_wks ( \"X-Forwarded-For\" ) ;\n MIME_FIELD_SEC_WEBSOCKET_KEY = hdrtoken_string_to_wks ( \"Sec-WebSocket-Key\" ) ;\n MIME_FIELD_SEC_WEBSOCKET_VERSION = hdrtoken_string_to_wks ( \"Sec-WebSocket-Version\" ) ;\n MIME_FIELD_HTTP2_SETTINGS = hdrtoken_string_to_wks ( \"HTTP2-Settings\" ) ;\n MIME_LEN_ACCEPT = hdrtoken_wks_to_length ( MIME_FIELD_ACCEPT ) ;\n MIME_LEN_ACCEPT_CHARSET = hdrtoken_wks_to_length ( MIME_FIELD_ACCEPT_CHARSET ) ;\n MIME_LEN_ACCEPT_ENCODING = hdrtoken_wks_to_length ( MIME_FIELD_ACCEPT_ENCODING ) ;\n MIME_LEN_ACCEPT_LANGUAGE = hdrtoken_wks_to_length ( MIME_FIELD_ACCEPT_LANGUAGE ) ;\n MIME_LEN_ACCEPT_RANGES = hdrtoken_wks_to_length ( MIME_FIELD_ACCEPT_RANGES ) ;\n MIME_LEN_AGE = hdrtoken_wks_to_length ( MIME_FIELD_AGE ) ;\n MIME_LEN_ALLOW = hdrtoken_wks_to_length ( MIME_FIELD_ALLOW ) ;\n MIME_LEN_APPROVED = hdrtoken_wks_to_length ( MIME_FIELD_APPROVED ) ;\n MIME_LEN_AUTHORIZATION = hdrtoken_wks_to_length ( MIME_FIELD_AUTHORIZATION ) ;\n MIME_LEN_BYTES = hdrtoken_wks_to_length ( MIME_FIELD_BYTES ) ;\n MIME_LEN_CACHE_CONTROL = hdrtoken_wks_to_length ( MIME_FIELD_CACHE_CONTROL ) ;\n MIME_LEN_CLIENT_IP = hdrtoken_wks_to_length ( MIME_FIELD_CLIENT_IP ) ;\n MIME_LEN_CONNECTION = hdrtoken_wks_to_length ( MIME_FIELD_CONNECTION ) ;\n MIME_LEN_CONTENT_BASE = hdrtoken_wks_to_length ( MIME_FIELD_CONTENT_BASE ) ;\n MIME_LEN_CONTENT_ENCODING = hdrtoken_wks_to_length ( MIME_FIELD_CONTENT_ENCODING ) ;\n MIME_LEN_CONTENT_LANGUAGE = hdrtoken_wks_to_length ( MIME_FIELD_CONTENT_LANGUAGE ) ;\n MIME_LEN_CONTENT_LENGTH = hdrtoken_wks_to_length ( MIME_FIELD_CONTENT_LENGTH ) ;\n MIME_LEN_CONTENT_LOCATION = hdrtoken_wks_to_length ( MIME_FIELD_CONTENT_LOCATION ) ;\n MIME_LEN_CONTENT_MD5 = hdrtoken_wks_to_length ( MIME_FIELD_CONTENT_MD5 ) ;\n MIME_LEN_CONTENT_RANGE = hdrtoken_wks_to_length ( MIME_FIELD_CONTENT_RANGE ) ;\n MIME_LEN_CONTENT_TYPE = hdrtoken_wks_to_length ( MIME_FIELD_CONTENT_TYPE ) ;\n MIME_LEN_CONTROL = hdrtoken_wks_to_length ( MIME_FIELD_CONTROL ) ;\n MIME_LEN_COOKIE = hdrtoken_wks_to_length ( MIME_FIELD_COOKIE ) ;\n MIME_LEN_DATE = hdrtoken_wks_to_length ( MIME_FIELD_DATE ) ;\n MIME_LEN_DISTRIBUTION = hdrtoken_wks_to_length ( MIME_FIELD_DISTRIBUTION ) ;\n MIME_LEN_ETAG = hdrtoken_wks_to_length ( MIME_FIELD_ETAG ) ;\n MIME_LEN_EXPECT = hdrtoken_wks_to_length ( MIME_FIELD_EXPECT ) ;\n MIME_LEN_EXPIRES = hdrtoken_wks_to_length ( MIME_FIELD_EXPIRES ) ;\n MIME_LEN_FOLLOWUP_TO = hdrtoken_wks_to_length ( MIME_FIELD_FOLLOWUP_TO ) ;\n MIME_LEN_FROM = hdrtoken_wks_to_length ( MIME_FIELD_FROM ) ;\n MIME_LEN_HOST = hdrtoken_wks_to_length ( MIME_FIELD_HOST ) ;\n MIME_LEN_IF_MATCH = hdrtoken_wks_to_length ( MIME_FIELD_IF_MATCH ) ;\n MIME_LEN_IF_MODIFIED_SINCE = hdrtoken_wks_to_length ( MIME_FIELD_IF_MODIFIED_SINCE ) ;\n MIME_LEN_IF_NONE_MATCH = hdrtoken_wks_to_length ( MIME_FIELD_IF_NONE_MATCH ) ;\n MIME_LEN_IF_RANGE = hdrtoken_wks_to_length ( MIME_FIELD_IF_RANGE ) ;\n MIME_LEN_IF_UNMODIFIED_SINCE = hdrtoken_wks_to_length ( MIME_FIELD_IF_UNMODIFIED_SINCE ) ;\n MIME_LEN_KEEP_ALIVE = hdrtoken_wks_to_length ( MIME_FIELD_KEEP_ALIVE ) ;\n MIME_LEN_KEYWORDS = hdrtoken_wks_to_length ( MIME_FIELD_KEYWORDS ) ;\n MIME_LEN_LAST_MODIFIED = hdrtoken_wks_to_length ( MIME_FIELD_LAST_MODIFIED ) ;\n MIME_LEN_LINES = hdrtoken_wks_to_length ( MIME_FIELD_LINES ) ;\n MIME_LEN_LOCATION = hdrtoken_wks_to_length ( MIME_FIELD_LOCATION ) ;\n MIME_LEN_MAX_FORWARDS = hdrtoken_wks_to_length ( MIME_FIELD_MAX_FORWARDS ) ;\n MIME_LEN_MESSAGE_ID = hdrtoken_wks_to_length ( MIME_FIELD_MESSAGE_ID ) ;\n MIME_LEN_NEWSGROUPS = hdrtoken_wks_to_length ( MIME_FIELD_NEWSGROUPS ) ;\n MIME_LEN_ORGANIZATION = hdrtoken_wks_to_length ( MIME_FIELD_ORGANIZATION ) ;\n MIME_LEN_PATH = hdrtoken_wks_to_length ( MIME_FIELD_PATH ) ;\n MIME_LEN_PRAGMA = hdrtoken_wks_to_length ( MIME_FIELD_PRAGMA ) ;\n MIME_LEN_PROXY_AUTHENTICATE = hdrtoken_wks_to_length ( MIME_FIELD_PROXY_AUTHENTICATE ) ;\n MIME_LEN_PROXY_AUTHORIZATION = hdrtoken_wks_to_length ( MIME_FIELD_PROXY_AUTHORIZATION ) ;\n MIME_LEN_PROXY_CONNECTION = hdrtoken_wks_to_length ( MIME_FIELD_PROXY_CONNECTION ) ;\n MIME_LEN_PUBLIC = hdrtoken_wks_to_length ( MIME_FIELD_PUBLIC ) ;\n MIME_LEN_RANGE = hdrtoken_wks_to_length ( MIME_FIELD_RANGE ) ;\n MIME_LEN_REFERENCES = hdrtoken_wks_to_length ( MIME_FIELD_REFERENCES ) ;\n MIME_LEN_REFERER = hdrtoken_wks_to_length ( MIME_FIELD_REFERER ) ;\n MIME_LEN_REPLY_TO = hdrtoken_wks_to_length ( MIME_FIELD_REPLY_TO ) ;\n MIME_LEN_RETRY_AFTER = hdrtoken_wks_to_length ( MIME_FIELD_RETRY_AFTER ) ;\n MIME_LEN_SENDER = hdrtoken_wks_to_length ( MIME_FIELD_SENDER ) ;\n MIME_LEN_SERVER = hdrtoken_wks_to_length ( MIME_FIELD_SERVER ) ;\n MIME_LEN_SET_COOKIE = hdrtoken_wks_to_length ( MIME_FIELD_SET_COOKIE ) ;\n MIME_LEN_STRICT_TRANSPORT_SECURITY = hdrtoken_wks_to_length ( MIME_FIELD_STRICT_TRANSPORT_SECURITY ) ;\n MIME_LEN_SUBJECT = hdrtoken_wks_to_length ( MIME_FIELD_SUBJECT ) ;\n MIME_LEN_SUMMARY = hdrtoken_wks_to_length ( MIME_FIELD_SUMMARY ) ;\n MIME_LEN_TE = hdrtoken_wks_to_length ( MIME_FIELD_TE ) ;\n MIME_LEN_TRANSFER_ENCODING = hdrtoken_wks_to_length ( MIME_FIELD_TRANSFER_ENCODING ) ;\n MIME_LEN_UPGRADE = hdrtoken_wks_to_length ( MIME_FIELD_UPGRADE ) ;\n MIME_LEN_USER_AGENT = hdrtoken_wks_to_length ( MIME_FIELD_USER_AGENT ) ;\n MIME_LEN_VARY = hdrtoken_wks_to_length ( MIME_FIELD_VARY ) ;\n MIME_LEN_VIA = hdrtoken_wks_to_length ( MIME_FIELD_VIA ) ;\n MIME_LEN_WARNING = hdrtoken_wks_to_length ( MIME_FIELD_WARNING ) ;\n MIME_LEN_WWW_AUTHENTICATE = hdrtoken_wks_to_length ( MIME_FIELD_WWW_AUTHENTICATE ) ;\n MIME_LEN_XREF = hdrtoken_wks_to_length ( MIME_FIELD_XREF ) ;\n MIME_LEN_ATS_INTERNAL = hdrtoken_wks_to_length ( MIME_FIELD_ATS_INTERNAL ) ;\n MIME_LEN_X_ID = hdrtoken_wks_to_length ( MIME_FIELD_X_ID ) ;\n MIME_LEN_X_FORWARDED_FOR = hdrtoken_wks_to_length ( MIME_FIELD_X_FORWARDED_FOR ) ;\n MIME_LEN_SEC_WEBSOCKET_KEY = hdrtoken_wks_to_length ( MIME_FIELD_SEC_WEBSOCKET_KEY ) ;\n MIME_LEN_SEC_WEBSOCKET_VERSION = hdrtoken_wks_to_length ( MIME_FIELD_SEC_WEBSOCKET_VERSION ) ;\n MIME_LEN_HTTP2_SETTINGS = hdrtoken_wks_to_length ( MIME_FIELD_HTTP2_SETTINGS ) ;\n MIME_WKSIDX_ACCEPT = hdrtoken_wks_to_index ( MIME_FIELD_ACCEPT ) ;\n MIME_WKSIDX_ACCEPT_CHARSET = hdrtoken_wks_to_index ( MIME_FIELD_ACCEPT_CHARSET ) ;\n MIME_WKSIDX_ACCEPT_ENCODING = hdrtoken_wks_to_index ( MIME_FIELD_ACCEPT_ENCODING ) ;\n MIME_WKSIDX_ACCEPT_LANGUAGE = hdrtoken_wks_to_index ( MIME_FIELD_ACCEPT_LANGUAGE ) ;\n MIME_WKSIDX_ACCEPT_RANGES = hdrtoken_wks_to_index ( MIME_FIELD_ACCEPT_RANGES ) ;\n MIME_WKSIDX_AGE = hdrtoken_wks_to_index ( MIME_FIELD_AGE ) ;\n MIME_WKSIDX_ALLOW = hdrtoken_wks_to_index ( MIME_FIELD_ALLOW ) ;\n MIME_WKSIDX_APPROVED = hdrtoken_wks_to_index ( MIME_FIELD_APPROVED ) ;\n MIME_WKSIDX_AUTHORIZATION = hdrtoken_wks_to_index ( MIME_FIELD_AUTHORIZATION ) ;\n MIME_WKSIDX_BYTES = hdrtoken_wks_to_index ( MIME_FIELD_BYTES ) ;\n MIME_WKSIDX_CACHE_CONTROL = hdrtoken_wks_to_index ( MIME_FIELD_CACHE_CONTROL ) ;\n MIME_WKSIDX_CLIENT_IP = hdrtoken_wks_to_index ( MIME_FIELD_CLIENT_IP ) ;\n MIME_WKSIDX_CONNECTION = hdrtoken_wks_to_index ( MIME_FIELD_CONNECTION ) ;\n MIME_WKSIDX_CONTENT_BASE = hdrtoken_wks_to_index ( MIME_FIELD_CONTENT_BASE ) ;\n MIME_WKSIDX_CONTENT_ENCODING = hdrtoken_wks_to_index ( MIME_FIELD_CONTENT_ENCODING ) ;\n MIME_WKSIDX_CONTENT_LANGUAGE = hdrtoken_wks_to_index ( MIME_FIELD_CONTENT_LANGUAGE ) ;\n MIME_WKSIDX_CONTENT_LENGTH = hdrtoken_wks_to_index ( MIME_FIELD_CONTENT_LENGTH ) ;\n MIME_WKSIDX_CONTENT_LOCATION = hdrtoken_wks_to_index ( MIME_FIELD_CONTENT_LOCATION ) ;\n MIME_WKSIDX_CONTENT_MD5 = hdrtoken_wks_to_index ( MIME_FIELD_CONTENT_MD5 ) ;\n MIME_WKSIDX_CONTENT_RANGE = hdrtoken_wks_to_index ( MIME_FIELD_CONTENT_RANGE ) ;\n MIME_WKSIDX_CONTENT_TYPE = hdrtoken_wks_to_index ( MIME_FIELD_CONTENT_TYPE ) ;\n MIME_WKSIDX_CONTROL = hdrtoken_wks_to_index ( MIME_FIELD_CONTROL ) ;\n MIME_WKSIDX_COOKIE = hdrtoken_wks_to_index ( MIME_FIELD_COOKIE ) ;\n MIME_WKSIDX_DATE = hdrtoken_wks_to_index ( MIME_FIELD_DATE ) ;\n MIME_WKSIDX_DISTRIBUTION = hdrtoken_wks_to_index ( MIME_FIELD_DISTRIBUTION ) ;\n MIME_WKSIDX_ETAG = hdrtoken_wks_to_index ( MIME_FIELD_ETAG ) ;\n MIME_WKSIDX_EXPECT = hdrtoken_wks_to_index ( MIME_FIELD_EXPECT ) ;\n MIME_WKSIDX_EXPIRES = hdrtoken_wks_to_index ( MIME_FIELD_EXPIRES ) ;\n MIME_WKSIDX_FOLLOWUP_TO = hdrtoken_wks_to_index ( MIME_FIELD_FOLLOWUP_TO ) ;\n MIME_WKSIDX_FROM = hdrtoken_wks_to_index ( MIME_FIELD_FROM ) ;\n MIME_WKSIDX_HOST = hdrtoken_wks_to_index ( MIME_FIELD_HOST ) ;\n MIME_WKSIDX_IF_MATCH = hdrtoken_wks_to_index ( MIME_FIELD_IF_MATCH ) ;\n MIME_WKSIDX_IF_MODIFIED_SINCE = hdrtoken_wks_to_index ( MIME_FIELD_IF_MODIFIED_SINCE ) ;\n MIME_WKSIDX_IF_NONE_MATCH = hdrtoken_wks_to_index ( MIME_FIELD_IF_NONE_MATCH ) ;\n MIME_WKSIDX_IF_RANGE = hdrtoken_wks_to_index ( MIME_FIELD_IF_RANGE ) ;\n MIME_WKSIDX_IF_UNMODIFIED_SINCE = hdrtoken_wks_to_index ( MIME_FIELD_IF_UNMODIFIED_SINCE ) ;\n MIME_WKSIDX_KEEP_ALIVE = hdrtoken_wks_to_index ( MIME_FIELD_KEEP_ALIVE ) ;\n MIME_WKSIDX_KEYWORDS = hdrtoken_wks_to_index ( MIME_FIELD_KEYWORDS ) ;\n MIME_WKSIDX_LAST_MODIFIED = hdrtoken_wks_to_index ( MIME_FIELD_LAST_MODIFIED ) ;\n MIME_WKSIDX_LINES = hdrtoken_wks_to_index ( MIME_FIELD_LINES ) ;\n MIME_WKSIDX_LOCATION = hdrtoken_wks_to_index ( MIME_FIELD_LOCATION ) ;\n MIME_WKSIDX_MAX_FORWARDS = hdrtoken_wks_to_index ( MIME_FIELD_MAX_FORWARDS ) ;\n MIME_WKSIDX_MESSAGE_ID = hdrtoken_wks_to_index ( MIME_FIELD_MESSAGE_ID ) ;\n MIME_WKSIDX_NEWSGROUPS = hdrtoken_wks_to_index ( MIME_FIELD_NEWSGROUPS ) ;\n MIME_WKSIDX_ORGANIZATION = hdrtoken_wks_to_index ( MIME_FIELD_ORGANIZATION ) ;\n MIME_WKSIDX_PATH = hdrtoken_wks_to_index ( MIME_FIELD_PATH ) ;\n MIME_WKSIDX_PRAGMA = hdrtoken_wks_to_index ( MIME_FIELD_PRAGMA ) ;\n MIME_WKSIDX_PROXY_AUTHENTICATE = hdrtoken_wks_to_index ( MIME_FIELD_PROXY_AUTHENTICATE ) ;\n MIME_WKSIDX_PROXY_AUTHORIZATION = hdrtoken_wks_to_index ( MIME_FIELD_PROXY_AUTHORIZATION ) ;\n MIME_WKSIDX_PROXY_CONNECTION = hdrtoken_wks_to_index ( MIME_FIELD_PROXY_CONNECTION ) ;\n MIME_WKSIDX_PUBLIC = hdrtoken_wks_to_index ( MIME_FIELD_PUBLIC ) ;\n MIME_WKSIDX_RANGE = hdrtoken_wks_to_index ( MIME_FIELD_RANGE ) ;\n MIME_WKSIDX_REFERENCES = hdrtoken_wks_to_index ( MIME_FIELD_REFERENCES ) ;\n MIME_WKSIDX_REFERER = hdrtoken_wks_to_index ( MIME_FIELD_REFERER ) ;\n MIME_WKSIDX_REPLY_TO = hdrtoken_wks_to_index ( MIME_FIELD_REPLY_TO ) ;\n MIME_WKSIDX_RETRY_AFTER = hdrtoken_wks_to_index ( MIME_FIELD_RETRY_AFTER ) ;\n MIME_WKSIDX_SENDER = hdrtoken_wks_to_index ( MIME_FIELD_SENDER ) ;\n MIME_WKSIDX_SERVER = hdrtoken_wks_to_index ( MIME_FIELD_SERVER ) ;\n MIME_WKSIDX_SET_COOKIE = hdrtoken_wks_to_index ( MIME_FIELD_SET_COOKIE ) ;\n MIME_WKSIDX_STRICT_TRANSPORT_SECURITY = hdrtoken_wks_to_index ( MIME_FIELD_STRICT_TRANSPORT_SECURITY ) ;\n MIME_WKSIDX_SUBJECT = hdrtoken_wks_to_index ( MIME_FIELD_SUBJECT ) ;\n MIME_WKSIDX_SUMMARY = hdrtoken_wks_to_index ( MIME_FIELD_SUMMARY ) ;\n MIME_WKSIDX_TE = hdrtoken_wks_to_index ( MIME_FIELD_TE ) ;\n MIME_WKSIDX_TRANSFER_ENCODING = hdrtoken_wks_to_index ( MIME_FIELD_TRANSFER_ENCODING ) ;\n MIME_WKSIDX_UPGRADE = hdrtoken_wks_to_index ( MIME_FIELD_UPGRADE ) ;\n MIME_WKSIDX_USER_AGENT = hdrtoken_wks_to_index ( MIME_FIELD_USER_AGENT ) ;\n MIME_WKSIDX_VARY = hdrtoken_wks_to_index ( MIME_FIELD_VARY ) ;\n MIME_WKSIDX_VIA = hdrtoken_wks_to_index ( MIME_FIELD_VIA ) ;\n MIME_WKSIDX_WARNING = hdrtoken_wks_to_index ( MIME_FIELD_WARNING ) ;\n MIME_WKSIDX_WWW_AUTHENTICATE = hdrtoken_wks_to_index ( MIME_FIELD_WWW_AUTHENTICATE ) ;\n MIME_WKSIDX_XREF = hdrtoken_wks_to_index ( MIME_FIELD_XREF ) ;\n MIME_WKSIDX_X_ID = hdrtoken_wks_to_index ( MIME_FIELD_X_ID ) ;\n MIME_WKSIDX_X_FORWARDED_FOR = hdrtoken_wks_to_index ( MIME_FIELD_X_FORWARDED_FOR ) ;\n MIME_WKSIDX_SEC_WEBSOCKET_KEY = hdrtoken_wks_to_index ( MIME_FIELD_SEC_WEBSOCKET_KEY ) ;\n MIME_WKSIDX_SEC_WEBSOCKET_VERSION = hdrtoken_wks_to_index ( MIME_FIELD_SEC_WEBSOCKET_VERSION ) ;\n MIME_WKSIDX_HTTP2_SETTINGS = hdrtoken_wks_to_index ( MIME_FIELD_HTTP2_SETTINGS ) ;\n MIME_VALUE_BYTES = hdrtoken_string_to_wks ( \"bytes\" ) ;\n MIME_VALUE_CHUNKED = hdrtoken_string_to_wks ( \"chunked\" ) ;\n MIME_VALUE_CLOSE = hdrtoken_string_to_wks ( \"close\" ) ;\n MIME_VALUE_COMPRESS = hdrtoken_string_to_wks ( \"compress\" ) ;\n MIME_VALUE_DEFLATE = hdrtoken_string_to_wks ( \"deflate\" ) ;\n MIME_VALUE_GZIP = hdrtoken_string_to_wks ( \"gzip\" ) ;\n MIME_VALUE_IDENTITY = hdrtoken_string_to_wks ( \"identity\" ) ;\n MIME_VALUE_KEEP_ALIVE = hdrtoken_string_to_wks ( \"keep-alive\" ) ;\n MIME_VALUE_MAX_AGE = hdrtoken_string_to_wks ( \"max-age\" ) ;\n MIME_VALUE_MAX_STALE = hdrtoken_string_to_wks ( \"max-stale\" ) ;\n MIME_VALUE_MIN_FRESH = hdrtoken_string_to_wks ( \"min-fresh\" ) ;\n MIME_VALUE_MUST_REVALIDATE = hdrtoken_string_to_wks ( \"must-revalidate\" ) ;\n MIME_VALUE_NONE = hdrtoken_string_to_wks ( \"none\" ) ;\n MIME_VALUE_NO_CACHE = hdrtoken_string_to_wks ( \"no-cache\" ) ;\n MIME_VALUE_NO_STORE = hdrtoken_string_to_wks ( \"no-store\" ) ;\n MIME_VALUE_NO_TRANSFORM = hdrtoken_string_to_wks ( \"no-transform\" ) ;\n MIME_VALUE_ONLY_IF_CACHED = hdrtoken_string_to_wks ( \"only-if-cached\" ) ;\n MIME_VALUE_PRIVATE = hdrtoken_string_to_wks ( \"private\" ) ;\n MIME_VALUE_PROXY_REVALIDATE = hdrtoken_string_to_wks ( \"proxy-revalidate\" ) ;\n MIME_VALUE_PUBLIC = hdrtoken_string_to_wks ( \"public\" ) ;\n MIME_VALUE_S_MAXAGE = hdrtoken_string_to_wks ( \"s-maxage\" ) ;\n MIME_VALUE_NEED_REVALIDATE_ONCE = hdrtoken_string_to_wks ( \"need-revalidate-once\" ) ;\n MIME_VALUE_WEBSOCKET = hdrtoken_string_to_wks ( \"websocket\" ) ;\n MIME_VALUE_H2C = hdrtoken_string_to_wks ( MIME_UPGRADE_H2C_TOKEN ) ;\n mime_init_date_format_table ( ) ;\n mime_init_cache_control_cooking_masks ( ) ;\n }\n }"}
{"idx": 1186, "target": 0, "func": "static void * Type_U16Fixed16_Read ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number * nItems , cmsUInt32Number SizeOfTag ) {\n cmsFloat64Number * array_double ;\n cmsUInt32Number v ;\n cmsUInt32Number i , n ;\n * nItems = 0 ;\n n = SizeOfTag / sizeof ( cmsUInt32Number ) ;\n array_double = ( cmsFloat64Number * ) _cmsCalloc ( self -> ContextID , n , sizeof ( cmsFloat64Number ) ) ;\n if ( array_double == NULL ) return NULL ;\n for ( i = 0 ;\n i < n ;\n i ++ ) {\n if ( ! _cmsReadUInt32Number ( io , & v ) ) {\n _cmsFree ( self -> ContextID , ( void * ) array_double ) ;\n return NULL ;\n }\n array_double [ i ] = ( cmsFloat64Number ) ( v / 65536.0 ) ;\n }\n * nItems = n ;\n return ( void * ) array_double ;\n }"}
{"idx": 1187, "target": 0, "func": "extern int as_mysql_job_complete ( mysql_conn_t * mysql_conn , struct job_record * job_ptr ) {\n char * query = NULL ;\n int rc = SLURM_SUCCESS , job_state ;\n time_t submit_time , end_time ;\n uint32_t exit_code = 0 ;\n if ( ! job_ptr -> db_index && ( ( ! job_ptr -> details || ! job_ptr -> details -> submit_time ) && ! job_ptr -> resize_time ) ) {\n error ( \"as_mysql_job_complete: \" \"Not inputing this job, it has no submit time.\" ) ;\n return SLURM_ERROR ;\n }\n if ( check_connection ( mysql_conn ) != SLURM_SUCCESS ) return ESLURM_DB_CONNECTION ;\n debug2 ( \"as_mysql_slurmdb_job_complete() called\" ) ;\n if ( job_ptr -> resize_time ) submit_time = job_ptr -> resize_time ;\n else submit_time = job_ptr -> details -> submit_time ;\n if ( IS_JOB_RESIZING ( job_ptr ) ) {\n end_time = job_ptr -> resize_time ;\n job_state = JOB_RESIZING ;\n }\n else {\n if ( job_ptr -> end_time == 0 ) {\n if ( job_ptr -> start_time ) {\n error ( \"%s: We are trying to end a job (%u) with no end time, setting it to the start time (%ld) of the job.\" , __func__ , job_ptr -> job_id , job_ptr -> start_time ) ;\n job_ptr -> end_time = job_ptr -> start_time ;\n }\n else {\n error ( \"%s: job %u never started\" , __func__ , job_ptr -> job_id ) ;\n return SLURM_SUCCESS ;\n }\n }\n end_time = job_ptr -> end_time ;\n if ( IS_JOB_REQUEUED ( job_ptr ) ) job_state = JOB_REQUEUE ;\n else if ( IS_JOB_REVOKED ( job_ptr ) ) job_state = JOB_REVOKED ;\n else job_state = job_ptr -> job_state & JOB_STATE_BASE ;\n }\n slurm_mutex_lock ( & rollup_lock ) ;\n if ( end_time < global_last_rollup ) {\n global_last_rollup = job_ptr -> end_time ;\n slurm_mutex_unlock ( & rollup_lock ) ;\n query = xstrdup_printf ( \"update \\\"%s_%s\\\" set \" \"hourly_rollup=%ld, \" \"daily_rollup=%ld, monthly_rollup=%ld\" , mysql_conn -> cluster_name , last_ran_table , end_time , end_time , end_time ) ;\n if ( debug_flags & DEBUG_FLAG_DB_JOB ) DB_DEBUG ( mysql_conn -> conn , \"query\\n%s\" , query ) ;\n ( void ) mysql_db_query ( mysql_conn , query ) ;\n xfree ( query ) ;\n }\n else slurm_mutex_unlock ( & rollup_lock ) ;\n if ( ! job_ptr -> db_index ) {\n if ( ! ( job_ptr -> db_index = _get_db_index ( mysql_conn , submit_time , job_ptr -> job_id , job_ptr -> assoc_id ) ) ) {\n char * comment = job_ptr -> comment ;\n job_ptr -> comment = NULL ;\n if ( as_mysql_job_start ( mysql_conn , job_ptr ) == SLURM_ERROR ) {\n job_ptr -> comment = comment ;\n error ( \"couldn't add job %u at job completion\" , job_ptr -> job_id ) ;\n return SLURM_SUCCESS ;\n }\n job_ptr -> comment = comment ;\n }\n }\n query = xstrdup_printf ( \"update \\\"%s_%s\\\" set \" \"mod_time=UNIX_TIMESTAMP(), \" \"time_end=%ld, state=%d\" , mysql_conn -> cluster_name , job_table , end_time , job_state ) ;\n if ( job_ptr -> derived_ec != NO_VAL ) xstrfmtcat ( query , \", derived_ec=%u\" , job_ptr -> derived_ec ) ;\n if ( job_ptr -> comment ) xstrfmtcat ( query , \", derived_es='%s'\" , job_ptr -> comment ) ;\n if ( job_ptr -> admin_comment ) xstrfmtcat ( query , \", admin_comment='%s'\" , job_ptr -> admin_comment ) ;\n exit_code = job_ptr -> exit_code ;\n if ( exit_code == 1 ) {\n exit_code = 256 ;\n }\n xstrfmtcat ( query , \", exit_code=%d, kill_requid=%d where job_db_inx=%\" PRIu64 \";\n\" , exit_code , job_ptr -> requid , job_ptr -> db_index ) ;\n if ( debug_flags & DEBUG_FLAG_DB_JOB ) DB_DEBUG ( mysql_conn -> conn , \"query\\n%s\" , query ) ;\n rc = mysql_db_query ( mysql_conn , query ) ;\n xfree ( query ) ;\n return rc ;\n }"}
{"idx": 1188, "target": 0, "func": "xsltDocumentPtr xsltLoadDocument ( xsltTransformContextPtr ctxt , const xmlChar * URI ) {\n xsltDocumentPtr ret ;\n xmlDocPtr doc ;\n if ( ( ctxt == NULL ) || ( URI == NULL ) ) return ( NULL ) ;\n if ( ctxt -> sec != NULL ) {\n int res ;\n res = xsltCheckRead ( ctxt -> sec , ctxt , URI ) ;\n if ( res == 0 ) {\n xsltTransformError ( ctxt , NULL , NULL , \"xsltLoadDocument: read rights for %s denied\\n\" , URI ) ;\n return ( NULL ) ;\n }\n }\n ret = ctxt -> docList ;\n while ( ret != NULL ) {\n if ( ( ret -> doc != NULL ) && ( ret -> doc -> URL != NULL ) && ( xmlStrEqual ( ret -> doc -> URL , URI ) ) ) return ( ret ) ;\n ret = ret -> next ;\n }\n doc = xsltDocDefaultLoader ( URI , ctxt -> dict , ctxt -> parserOptions , ( void * ) ctxt , XSLT_LOAD_DOCUMENT ) ;\n if ( doc == NULL ) return ( NULL ) ;\n if ( ctxt -> xinclude != 0 ) {\n # ifdef LIBXML_XINCLUDE_ENABLED # if LIBXML_VERSION >= 20603 xmlXIncludeProcessFlags ( doc , ctxt -> parserOptions ) ;\n # else xmlXIncludeProcess ( doc ) ;\n # endif # else xsltTransformError ( ctxt , NULL , NULL , \"xsltLoadDocument(%s) : XInclude processing not compiled in\\n\" , URI ) ;\n # endif }\n if ( xsltNeedElemSpaceHandling ( ctxt ) ) xsltApplyStripSpaces ( ctxt , xmlDocGetRootElement ( doc ) ) ;\n if ( ctxt -> debugStatus == XSLT_DEBUG_NONE ) xmlXPathOrderDocElems ( doc ) ;\n ret = xsltNewDocument ( ctxt , doc ) ;\n return ( ret ) ;\n }"}
{"idx": 1189, "target": 0, "func": "static cmsBool Type_MLU_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) {\n cmsMLU * mlu = ( cmsMLU * ) Ptr ;\n cmsUInt32Number HeaderSize ;\n cmsUInt32Number Len , Offset ;\n cmsUInt32Number i ;\n if ( Ptr == NULL ) {\n if ( ! _cmsWriteUInt32Number ( io , 0 ) ) return FALSE ;\n if ( ! _cmsWriteUInt32Number ( io , 12 ) ) return FALSE ;\n return TRUE ;\n }\n if ( ! _cmsWriteUInt32Number ( io , mlu -> UsedEntries ) ) return FALSE ;\n if ( ! _cmsWriteUInt32Number ( io , 12 ) ) return FALSE ;\n HeaderSize = 12 * mlu -> UsedEntries + sizeof ( _cmsTagBase ) ;\n for ( i = 0 ;\n i < mlu -> UsedEntries ;\n i ++ ) {\n Len = mlu -> Entries [ i ] . Len ;\n Offset = mlu -> Entries [ i ] . StrW ;\n Len = ( Len * sizeof ( cmsUInt16Number ) ) / sizeof ( wchar_t ) ;\n Offset = ( Offset * sizeof ( cmsUInt16Number ) ) / sizeof ( wchar_t ) + HeaderSize + 8 ;\n if ( ! _cmsWriteUInt16Number ( io , mlu -> Entries [ i ] . Language ) ) return FALSE ;\n if ( ! _cmsWriteUInt16Number ( io , mlu -> Entries [ i ] . Country ) ) return FALSE ;\n if ( ! _cmsWriteUInt32Number ( io , Len ) ) return FALSE ;\n if ( ! _cmsWriteUInt32Number ( io , Offset ) ) return FALSE ;\n }\n if ( ! _cmsWriteWCharArray ( io , mlu -> PoolUsed / sizeof ( wchar_t ) , ( wchar_t * ) mlu -> MemPool ) ) return FALSE ;\n return TRUE ;\n cmsUNUSED_PARAMETER ( nItems ) ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 1190, "target": 0, "func": "static int32_t uprv_initFrequency ( UTimer * ) {\n return 0 ;\n }"}
{"idx": 1191, "target": 0, "func": "static void mcc_mnc_aux ( guint8 * octs , gchar * mcc , gchar * mnc ) {\n if ( ( octs [ 0 ] & 0x0f ) <= 9 ) {\n mcc [ 0 ] = Dgt_tbcd . out [ octs [ 0 ] & 0x0f ] ;\n }\n else {\n mcc [ 0 ] = ( octs [ 0 ] & 0x0f ) + 55 ;\n }\n if ( ( ( octs [ 0 ] & 0xf0 ) >> 4 ) <= 9 ) {\n mcc [ 1 ] = Dgt_tbcd . out [ ( octs [ 0 ] & 0xf0 ) >> 4 ] ;\n }\n else {\n mcc [ 1 ] = ( ( octs [ 0 ] & 0xf0 ) >> 4 ) + 55 ;\n }\n if ( ( octs [ 1 ] & 0x0f ) <= 9 ) {\n mcc [ 2 ] = Dgt_tbcd . out [ octs [ 1 ] & 0x0f ] ;\n }\n else {\n mcc [ 2 ] = ( octs [ 1 ] & 0x0f ) + 55 ;\n }\n mcc [ 3 ] = '\\0' ;\n if ( ( ( octs [ 1 ] & 0xf0 ) >> 4 ) <= 9 ) {\n mnc [ 2 ] = Dgt_tbcd . out [ ( octs [ 1 ] & 0xf0 ) >> 4 ] ;\n }\n else {\n mnc [ 2 ] = ( ( octs [ 1 ] & 0xf0 ) >> 4 ) + 55 ;\n }\n if ( ( octs [ 2 ] & 0x0f ) <= 9 ) {\n mnc [ 0 ] = Dgt_tbcd . out [ octs [ 2 ] & 0x0f ] ;\n }\n else {\n mnc [ 0 ] = ( octs [ 2 ] & 0x0f ) + 55 ;\n }\n if ( ( ( octs [ 2 ] & 0xf0 ) >> 4 ) <= 9 ) {\n mnc [ 1 ] = Dgt_tbcd . out [ ( octs [ 2 ] & 0xf0 ) >> 4 ] ;\n }\n else {\n mnc [ 1 ] = ( ( octs [ 2 ] & 0xf0 ) >> 4 ) + 55 ;\n }\n if ( mnc [ 1 ] == 'F' ) {\n mnc [ 1 ] = '\\0' ;\n }\n else if ( mnc [ 2 ] == 'F' ) {\n mnc [ 2 ] = '\\0' ;\n }\n else {\n mnc [ 3 ] = '\\0' ;\n }\n }"}
{"idx": 1192, "target": 0, "func": "static void join_print_po ( struct packet_object * po ) {\n int ret ;\n if ( wdg_conndata == NULL || wdg_join == NULL ) return ;\n if ( ! ( wdg_conndata -> flags & WDG_OBJ_FOCUSED ) ) return ;\n if ( GBL_OPTIONS -> regex && regexec ( GBL_OPTIONS -> regex , ( const char * ) po -> DATA . disp_data , 0 , NULL , 0 ) != 0 ) {\n return ;\n }\n SAFE_REALLOC ( dispbuf , hex_len ( po -> DATA . disp_len ) * sizeof ( u_char ) + 1 ) ;\n ret = GBL_FORMAT ( po -> DATA . disp_data , po -> DATA . disp_len , dispbuf ) ;\n dispbuf [ ret ] = 0 ;\n if ( ! ip_addr_cmp ( & po -> L3 . src , & curr_conn -> L3_addr1 ) ) wdg_scroll_print ( wdg_join , EC_COLOR_JOIN1 , \"%s\" , dispbuf ) ;\n else wdg_scroll_print ( wdg_join , EC_COLOR_JOIN2 , \"%s\" , dispbuf ) ;\n }"}
{"idx": 1193, "target": 0, "func": "static void apply_lpc ( RALFContext * ctx , int ch , int length , int bits ) {\n int i , j , acc ;\n int * audio = ctx -> channel_data [ ch ] ;\n int bias = 1 << ( ctx -> filter_bits - 1 ) ;\n int max_clip = ( 1 << bits ) - 1 , min_clip = - max_clip - 1 ;\n for ( i = 1 ;\n i < length ;\n i ++ ) {\n int flen = FFMIN ( ctx -> filter_length , i ) ;\n acc = 0 ;\n for ( j = 0 ;\n j < flen ;\n j ++ ) acc += ctx -> filter [ j ] * audio [ i - j - 1 ] ;\n if ( acc < 0 ) {\n acc = ( acc + bias - 1 ) >> ctx -> filter_bits ;\n acc = FFMAX ( acc , min_clip ) ;\n }\n else {\n acc = ( acc + bias ) >> ctx -> filter_bits ;\n acc = FFMIN ( acc , max_clip ) ;\n }\n audio [ i ] += acc ;\n }\n }"}
{"idx": 1194, "target": 1, "func": "static void _slurm_rpc_allocate_pack ( slurm_msg_t * msg ) {\n static int select_serial = - 1 ;\n static int active_rpc_cnt = 0 ;\n int error_code = SLURM_SUCCESS , inx , pack_cnt = - 1 ;\n DEF_TIMERS ;\n job_desc_msg_t * job_desc_msg ;\n List job_req_list = ( List ) msg -> data ;\n slurmctld_lock_t job_write_lock = {\n READ_LOCK , WRITE_LOCK , WRITE_LOCK , READ_LOCK , READ_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n uint32_t job_uid = NO_VAL ;\n struct job_record * job_ptr , * first_job_ptr = NULL ;\n char * err_msg = NULL , * * job_submit_user_msg = NULL ;\n ListIterator iter ;\n bool priv_user ;\n List submit_job_list = NULL ;\n uint32_t pack_job_id = 0 , pack_job_offset = 0 ;\n hostset_t jobid_hostset = NULL ;\n char tmp_str [ 32 ] ;\n List resp = NULL ;\n slurm_addr_t resp_addr ;\n char resp_host [ 16 ] ;\n uint16_t port ;\n START_TIMER ;\n if ( select_serial == - 1 ) {\n if ( xstrcmp ( slurmctld_conf . select_type , \"select/serial\" ) ) select_serial = 0 ;\n else select_serial = 1 ;\n }\n if ( slurmctld_config . submissions_disabled || ( select_serial == 1 ) ) {\n info ( \"Submissions disabled on system\" ) ;\n error_code = ESLURM_SUBMISSIONS_DISABLED ;\n goto send_msg ;\n }\n if ( ! _sched_backfill ( ) ) {\n error_code = ESLURM_NOT_SUPPORTED ;\n goto send_msg ;\n }\n if ( ! job_req_list || ( list_count ( job_req_list ) == 0 ) ) {\n info ( \"REQUEST_JOB_PACK_ALLOCATION from uid=%d with empty job list\" , uid ) ;\n error_code = SLURM_ERROR ;\n goto send_msg ;\n }\n if ( slurm_get_peer_addr ( msg -> conn_fd , & resp_addr ) == 0 ) {\n slurm_get_ip_str ( & resp_addr , & port , resp_host , sizeof ( resp_host ) ) ;\n }\n else {\n info ( \"REQUEST_JOB_PACK_ALLOCATION from uid=%d , can't get peer addr\" , uid ) ;\n error_code = SLURM_ERROR ;\n goto send_msg ;\n }\n debug2 ( \"sched: Processing RPC: REQUEST_JOB_PACK_ALLOCATION from uid=%d\" , uid ) ;\n pack_cnt = list_count ( job_req_list ) ;\n job_submit_user_msg = xmalloc ( sizeof ( char * ) * pack_cnt ) ;\n priv_user = validate_slurm_user ( uid ) ;\n submit_job_list = list_create ( NULL ) ;\n _throttle_start ( & active_rpc_cnt ) ;\n lock_slurmctld ( job_write_lock ) ;\n inx = 0 ;\n iter = list_iterator_create ( job_req_list ) ;\n while ( ( job_desc_msg = ( job_desc_msg_t * ) list_next ( iter ) ) ) {\n if ( job_uid == NO_VAL ) job_uid = job_desc_msg -> user_id ;\n if ( ( uid != job_desc_msg -> user_id ) && ! priv_user ) {\n error_code = ESLURM_USER_ID_MISSING ;\n error ( \"Security violation, REQUEST_JOB_PACK_ALLOCATION from uid=%d\" , uid ) ;\n break ;\n }\n if ( ( job_desc_msg -> alloc_node == NULL ) || ( job_desc_msg -> alloc_node [ 0 ] == '\\0' ) ) {\n error_code = ESLURM_INVALID_NODE_NAME ;\n error ( \"REQUEST_JOB_PACK_ALLOCATION lacks alloc_node from uid=%d\" , uid ) ;\n break ;\n }\n if ( job_desc_msg -> array_inx ) {\n error_code = ESLURM_INVALID_ARRAY ;\n break ;\n }\n if ( job_desc_msg -> immediate ) {\n error_code = ESLURM_CAN_NOT_START_IMMEDIATELY ;\n break ;\n }\n job_desc_msg -> pack_job_offset = pack_job_offset ;\n error_code = validate_job_create_req ( job_desc_msg , uid , & job_submit_user_msg [ inx ++ ] ) ;\n if ( error_code ) break ;\n # if HAVE_ALPS_CRAY if ( allocated_session_in_use ( job_desc_msg ) ) {\n error_code = ESLURM_RESERVATION_BUSY ;\n error ( \"attempt to nest ALPS allocation on %s:%d by uid=%d\" , job_desc_msg -> alloc_node , job_desc_msg -> alloc_sid , uid ) ;\n break ;\n }\n # endif dump_job_desc ( job_desc_msg ) ;\n job_ptr = NULL ;\n if ( ! job_desc_msg -> resp_host ) job_desc_msg -> resp_host = xstrdup ( resp_host ) ;\n if ( pack_job_offset ) {\n job_desc_msg -> mail_type = 0 ;\n xfree ( job_desc_msg -> mail_user ) ;\n }\n job_desc_msg -> pack_job_offset = pack_job_offset ;\n error_code = job_allocate ( job_desc_msg , false , false , NULL , true , uid , & job_ptr , & err_msg , msg -> protocol_version ) ;\n if ( ! job_ptr ) {\n if ( error_code == SLURM_SUCCESS ) error_code = SLURM_ERROR ;\n break ;\n }\n if ( error_code && ( job_ptr -> job_state == JOB_FAILED ) ) break ;\n error_code = SLURM_SUCCESS ;\n if ( pack_job_id == 0 ) {\n pack_job_id = job_ptr -> job_id ;\n first_job_ptr = job_ptr ;\n }\n snprintf ( tmp_str , sizeof ( tmp_str ) , \"%u\" , job_ptr -> job_id ) ;\n if ( jobid_hostset ) hostset_insert ( jobid_hostset , tmp_str ) ;\n else jobid_hostset = hostset_create ( tmp_str ) ;\n job_ptr -> pack_job_id = pack_job_id ;\n job_ptr -> pack_job_offset = pack_job_offset ++ ;\n list_append ( submit_job_list , job_ptr ) ;\n }\n list_iterator_destroy ( iter ) ;\n if ( ( error_code == 0 ) && ( ! first_job_ptr ) ) {\n error ( \"%s: No error, but no pack_job_id\" , __func__ ) ;\n error_code = SLURM_ERROR ;\n }\n if ( ( error_code == SLURM_SUCCESS ) && ( accounting_enforce & ACCOUNTING_ENFORCE_LIMITS ) && ! acct_policy_validate_pack ( submit_job_list ) ) {\n info ( \"Pack job %u exceeded association/QOS limit for user %u\" , pack_job_id , job_uid ) ;\n error_code = ESLURM_ACCOUNTING_POLICY ;\n }\n if ( error_code ) {\n ( void ) list_for_each ( submit_job_list , _pack_job_cancel , NULL ) ;\n if ( first_job_ptr ) first_job_ptr -> pack_job_list = submit_job_list ;\n else FREE_NULL_LIST ( submit_job_list ) ;\n }\n else {\n resource_allocation_response_msg_t * alloc_msg ;\n ListIterator iter ;\n int buf_size = pack_job_offset * 16 ;\n char * tmp_str = xmalloc ( buf_size ) ;\n char * tmp_offset = tmp_str ;\n first_job_ptr -> pack_job_list = submit_job_list ;\n hostset_ranged_string ( jobid_hostset , buf_size , tmp_str ) ;\n if ( tmp_str [ 0 ] == '[' ) {\n tmp_offset = strchr ( tmp_str , ']' ) ;\n if ( tmp_offset ) tmp_offset [ 0 ] = '\\0' ;\n tmp_offset = tmp_str + 1 ;\n }\n inx = 0 ;\n iter = list_iterator_create ( submit_job_list ) ;\n while ( ( job_ptr = ( struct job_record * ) list_next ( iter ) ) ) {\n job_ptr -> pack_job_id_set = xstrdup ( tmp_offset ) ;\n if ( ! resp ) resp = list_create ( _del_alloc_pack_msg ) ;\n alloc_msg = xmalloc_nz ( sizeof ( resource_allocation_response_msg_t ) ) ;\n _build_alloc_msg ( job_ptr , alloc_msg , error_code , job_submit_user_msg [ inx ++ ] ) ;\n list_append ( resp , alloc_msg ) ;\n if ( slurmctld_conf . debug_flags & DEBUG_FLAG_HETERO_JOBS ) {\n char buf [ BUFSIZ ] ;\n info ( \"Submit %s\" , jobid2fmt ( job_ptr , buf , sizeof ( buf ) ) ) ;\n }\n }\n list_iterator_destroy ( iter ) ;\n xfree ( tmp_str ) ;\n }\n unlock_slurmctld ( job_write_lock ) ;\n _throttle_fini ( & active_rpc_cnt ) ;\n END_TIMER2 ( \"_slurm_rpc_allocate_pack\" ) ;\n if ( resp ) {\n slurm_msg_t response_msg ;\n slurm_msg_t_init ( & response_msg ) ;\n response_msg . conn = msg -> conn ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . msg_type = RESPONSE_JOB_PACK_ALLOCATION ;\n response_msg . data = resp ;\n if ( slurm_send_node_msg ( msg -> conn_fd , & response_msg ) < 0 ) _kill_job_on_msg_fail ( pack_job_id ) ;\n list_destroy ( resp ) ;\n }\n else {\n send_msg : info ( \"%s: %s \" , __func__ , slurm_strerror ( error_code ) ) ;\n if ( err_msg ) slurm_send_rc_err_msg ( msg , error_code , err_msg ) ;\n else slurm_send_rc_msg ( msg , error_code ) ;\n }\n xfree ( err_msg ) ;\n for ( inx = 0 ;\n inx < pack_cnt ;\n inx ++ ) xfree ( job_submit_user_msg [ inx ] ) ;\n xfree ( job_submit_user_msg ) ;\n if ( jobid_hostset ) hostset_destroy ( jobid_hostset ) ;\n schedule_job_save ( ) ;\n }"}
{"idx": 1195, "target": 0, "func": "static int dissect_h245_DepSeparateStream ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_DepSeparateStream , DepSeparateStream_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 1196, "target": 0, "func": "static void test_bug5315 ( ) {\n MYSQL_STMT * stmt ;\n const char * stmt_text ;\n int rc ;\n myheader ( \"test_bug5315\" ) ;\n stmt_text = \"SELECT 1\" ;\n stmt = mysql_stmt_init ( mysql ) ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n DIE_UNLESS ( rc == 0 ) ;\n if ( ! opt_silent ) printf ( \"Excuting mysql_change_user\\n\" ) ;\n mysql_change_user ( mysql , opt_user , opt_password , current_db ) ;\n if ( ! opt_silent ) printf ( \"Excuting mysql_stmt_execute\\n\" ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n DIE_UNLESS ( rc != 0 ) ;\n if ( rc ) {\n if ( ! opt_silent ) printf ( \"Got error (as expected): '%s'\\n\" , mysql_stmt_error ( stmt ) ) ;\n }\n if ( ! opt_silent ) printf ( \"Excuting mysql_stmt_close\\n\" ) ;\n mysql_stmt_close ( stmt ) ;\n if ( ! opt_silent ) printf ( \"Excuting mysql_stmt_init\\n\" ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n DIE_UNLESS ( rc == 0 ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n DIE_UNLESS ( rc == 0 ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 1197, "target": 0, "func": "int get_vp9_frame_buffer ( void * cb_priv , size_t min_size , vpx_codec_frame_buffer_t * fb ) {\n int i ;\n struct ExternalFrameBufferList * const ext_fb_list = ( struct ExternalFrameBufferList * ) cb_priv ;\n if ( ext_fb_list == NULL ) return - 1 ;\n for ( i = 0 ;\n i < ext_fb_list -> num_external_frame_buffers ;\n ++ i ) {\n if ( ! ext_fb_list -> ext_fb [ i ] . in_use ) break ;\n }\n if ( i == ext_fb_list -> num_external_frame_buffers ) return - 1 ;\n if ( ext_fb_list -> ext_fb [ i ] . size < min_size ) {\n free ( ext_fb_list -> ext_fb [ i ] . data ) ;\n ext_fb_list -> ext_fb [ i ] . data = ( uint8_t * ) calloc ( min_size , sizeof ( uint8_t ) ) ;\n if ( ! ext_fb_list -> ext_fb [ i ] . data ) return - 1 ;\n ext_fb_list -> ext_fb [ i ] . size = min_size ;\n }\n fb -> data = ext_fb_list -> ext_fb [ i ] . data ;\n fb -> size = ext_fb_list -> ext_fb [ i ] . size ;\n ext_fb_list -> ext_fb [ i ] . in_use = 1 ;\n fb -> priv = & ext_fb_list -> ext_fb [ i ] ;\n return 0 ;\n }"}
{"idx": 1198, "target": 0, "func": "bool is_pseudo_constant_clause ( Node * clause ) {\n if ( ! contain_var_clause ( clause ) && ! contain_volatile_functions ( clause ) ) return true ;\n return false ;\n }"}
{"idx": 1199, "target": 0, "func": "TEST_F ( SSLErrorAssistantTest , DynamicInterstitialListMatchUnknownCertError ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n EXPECT_EQ ( 1u , ssl_info ( ) . public_key_hashes . size ( ) ) ;\n auto config_proto = std : : make_unique < chrome_browser_ssl : : SSLErrorAssistantConfig > ( ) ;\n config_proto -> set_version_id ( kLargeVersionId ) ;\n chrome_browser_ssl : : DynamicInterstitial * filter = config_proto -> add_dynamic_interstitial ( ) ;\n filter -> set_interstitial_type ( chrome_browser_ssl : : DynamicInterstitial : : INTERSTITIAL_PAGE_CAPTIVE_PORTAL ) ;\n filter -> set_cert_error ( chrome_browser_ssl : : DynamicInterstitial : : UNKNOWN_CERT_ERROR ) ;\n filter -> add_sha256_hash ( \"sha256ightjar\" ) ;\n filter -> add_sha256_hash ( \"sha256/frogmouth\" ) ;\n filter -> add_sha256_hash ( \"sha256/poorwill\" ) ;\n filter = config_proto -> add_dynamic_interstitial ( ) ;\n filter -> set_interstitial_type ( chrome_browser_ssl : : DynamicInterstitial : : INTERSTITIAL_PAGE_SSL ) ;\n filter -> set_cert_error ( chrome_browser_ssl : : DynamicInterstitial : : UNKNOWN_CERT_ERROR ) ;\n filter -> add_sha256_hash ( \"sha256uthatch\" ) ;\n filter -> add_sha256_hash ( ssl_info ( ) . public_key_hashes [ 0 ] . ToString ( ) ) ;\n filter -> add_sha256_hash ( \"sha256/treecreeper\" ) ;\n filter -> set_issuer_common_name_regex ( issuer_common_name ( ) ) ;\n filter -> set_issuer_organization_regex ( issuer_organization_name ( ) ) ;\n filter -> set_mitm_software_name ( \"UwS\" ) ;\n error_assistant ( ) -> SetErrorAssistantProto ( std : : move ( config_proto ) ) ;\n base : : Optional < DynamicInterstitialInfo > dynamic_interstitial = error_assistant ( ) -> MatchDynamicInterstitial ( ssl_info ( ) ) ;\n EXPECT_TRUE ( dynamic_interstitial ) ;\n EXPECT_EQ ( chrome_browser_ssl : : DynamicInterstitial : : INTERSTITIAL_PAGE_SSL , dynamic_interstitial -> interstitial_type ) ;\n }"}
{"idx": 1200, "target": 0, "func": "void resume_all_vcpus ( void ) {\n CPUArchState * penv = first_cpu ;\n qemu_clock_enable ( vm_clock , true ) ;\n while ( penv ) {\n CPUState * pcpu = ENV_GET_CPU ( penv ) ;\n cpu_resume ( pcpu ) ;\n penv = penv -> next_cpu ;\n }\n }"}
{"idx": 1201, "target": 0, "func": "static int dissect_h225_OCTET_STRING_SIZE_2_32 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 2 , 32 , FALSE , NULL ) ;\n return offset ;\n }"}
{"idx": 1202, "target": 0, "func": "static CURLcode output_auth_headers ( struct connectdata * conn , struct auth * authstatus , const char * request , const char * path , bool proxy ) {\n const char * auth = NULL ;\n CURLcode result = CURLE_OK ;\n # if ! defined ( CURL_DISABLE_VERBOSE_STRINGS ) || defined ( USE_SPNEGO ) struct Curl_easy * data = conn -> data ;\n # endif # ifdef USE_SPNEGO struct negotiatedata * negdata = proxy ? & data -> state . proxyneg : & data -> state . negotiate ;\n # endif # ifdef CURL_DISABLE_CRYPTO_AUTH ( void ) request ;\n ( void ) path ;\n # endif # ifdef USE_SPNEGO negdata -> state = GSS_AUTHNONE ;\n if ( ( authstatus -> picked == CURLAUTH_NEGOTIATE ) && negdata -> context && ! GSS_ERROR ( negdata -> status ) ) {\n auth = \"Negotiate\" ;\n result = Curl_output_negotiate ( conn , proxy ) ;\n if ( result ) return result ;\n authstatus -> done = TRUE ;\n negdata -> state = GSS_AUTHSENT ;\n }\n else # endif # ifdef USE_NTLM if ( authstatus -> picked == CURLAUTH_NTLM ) {\n auth = \"NTLM\" ;\n result = Curl_output_ntlm ( conn , proxy ) ;\n if ( result ) return result ;\n }\n else # endif # if defined ( USE_NTLM ) && defined ( NTLM_WB_ENABLED ) if ( authstatus -> picked == CURLAUTH_NTLM_WB ) {\n auth = \"NTLM_WB\" ;\n result = Curl_output_ntlm_wb ( conn , proxy ) ;\n if ( result ) return result ;\n }\n else # endif # ifndef CURL_DISABLE_CRYPTO_AUTH if ( authstatus -> picked == CURLAUTH_DIGEST ) {\n auth = \"Digest\" ;\n result = Curl_output_digest ( conn , proxy , ( const unsigned char * ) request , ( const unsigned char * ) path ) ;\n if ( result ) return result ;\n }\n else # endif if ( authstatus -> picked == CURLAUTH_BASIC ) {\n if ( ( proxy && conn -> bits . proxy_user_passwd && ! Curl_checkProxyheaders ( conn , \"Proxy-authorization:\" ) ) || ( ! proxy && conn -> bits . user_passwd && ! Curl_checkheaders ( conn , \"Authorization:\" ) ) ) {\n auth = \"Basic\" ;\n result = http_output_basic ( conn , proxy ) ;\n if ( result ) return result ;\n }\n authstatus -> done = TRUE ;\n }\n if ( auth ) {\n infof ( data , \"%s auth using %s with user '%s'\\n\" , proxy ? \"Proxy\" : \"Server\" , auth , proxy ? ( conn -> proxyuser ? conn -> proxyuser : \"\" ) : ( conn -> user ? conn -> user : \"\" ) ) ;\n authstatus -> multi = ( ! authstatus -> done ) ? TRUE : FALSE ;\n }\n else authstatus -> multi = FALSE ;\n return CURLE_OK ;\n }"}
{"idx": 1203, "target": 0, "func": "static int s390_virtio_blk_init ( VirtIOS390Device * dev ) {\n VirtIODevice * vdev ;\n vdev = virtio_blk_init ( ( DeviceState * ) dev , dev -> dinfo ) ;\n if ( ! vdev ) {\n return - 1 ;\n }\n return s390_virtio_device_init ( dev , vdev ) ;\n }"}
{"idx": 1204, "target": 0, "func": "static void dtap_mm_auth_resp ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_TRUE ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_AUTH_RESP_PARAM , NULL ) ;\n ELEM_OPT_TLV ( 0x21 , GSM_A_PDU_TYPE_DTAP , DE_AUTH_RESP_PARAM_EXT , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 1205, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( VirtualKeyboardBrowserTest , AttributesTest ) {\n RunTest ( base : : FilePath ( FILE_PATH_LITERAL ( \"attributes_test.js\" ) ) ) ;\n }"}
{"idx": 1206, "target": 0, "func": "hb_blob_t * hb_blob_create ( const char * data , unsigned int length , hb_memory_mode_t mode , void * user_data , hb_destroy_func_t destroy ) {\n hb_blob_t * blob ;\n if ( ! length || length >= 1u << 31 || data + length < data || ! ( blob = hb_object_create < hb_blob_t > ( ) ) ) {\n if ( destroy ) destroy ( user_data ) ;\n return hb_blob_get_empty ( ) ;\n }\n blob -> data = data ;\n blob -> length = length ;\n blob -> mode = mode ;\n blob -> user_data = user_data ;\n blob -> destroy = destroy ;\n if ( blob -> mode == HB_MEMORY_MODE_DUPLICATE ) {\n blob -> mode = HB_MEMORY_MODE_READONLY ;\n if ( ! _try_writable ( blob ) ) {\n hb_blob_destroy ( blob ) ;\n return hb_blob_get_empty ( ) ;\n }\n }\n return blob ;\n }"}
{"idx": 1207, "target": 0, "func": "static void thumbnail_stop ( NautilusDirectory * directory ) {\n NautilusFile * file ;\n if ( directory -> details -> thumbnail_state != NULL ) {\n file = directory -> details -> thumbnail_state -> file ;\n if ( file != NULL ) {\n g_assert ( NAUTILUS_IS_FILE ( file ) ) ;\n g_assert ( file -> details -> directory == directory ) ;\n if ( is_needy ( file , lacks_thumbnail , REQUEST_THUMBNAIL ) ) {\n return ;\n }\n }\n thumbnail_cancel ( directory ) ;\n }\n }"}
{"idx": 1208, "target": 0, "func": "static int dissect_h245_Cmd_clockRecovery ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_Cmd_clockRecovery , Cmd_clockRecovery_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 1209, "target": 0, "func": "static int dissect_answer_records ( tvbuff_t * tvb , int cur_off , int dns_data_offset , int count , column_info * cinfo , proto_tree * dns_tree , const char * name , packet_info * pinfo , gboolean is_mdns ) {\n int start_off , add_off ;\n proto_tree * qatree = NULL ;\n proto_item * ti = NULL ;\n start_off = cur_off ;\n if ( dns_tree ) {\n qatree = proto_tree_add_subtree ( dns_tree , tvb , start_off , - 1 , ett_dns_ans , & ti , name ) ;\n }\n while ( count -- > 0 ) {\n add_off = dissect_dns_answer ( tvb , cur_off , dns_data_offset , cinfo , qatree , pinfo , is_mdns ) ;\n cur_off += add_off ;\n }\n if ( ti ) {\n proto_item_set_len ( ti , cur_off - start_off ) ;\n }\n return cur_off - start_off ;\n }"}
{"idx": 1210, "target": 0, "func": "static PQExpBuffer defaultGetLocalPQExpBuffer ( void ) {\n static PQExpBuffer id_return = NULL ;\n if ( id_return ) {\n resetPQExpBuffer ( id_return ) ;\n }\n else {\n id_return = createPQExpBuffer ( ) ;\n }\n return id_return ;\n }"}
{"idx": 1211, "target": 0, "func": "static void free_cal ( fz_context * ctx , fz_colorspace * cs ) {\n fz_cal_colorspace * cal_data = cs -> data ;\n if ( cal_data -> profile != NULL ) {\n fz_drop_buffer ( ctx , cal_data -> profile -> buffer ) ;\n fz_cmm_fin_profile ( ctx , cal_data -> profile ) ;\n fz_free ( ctx , cal_data -> profile ) ;\n }\n fz_free ( ctx , cal_data ) ;\n }"}
{"idx": 1212, "target": 0, "func": "static int dissect_h245_OCTET_STRING_SIZE_2 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 2 , 2 , FALSE , NULL ) ;\n return offset ;\n }"}
{"idx": 1213, "target": 1, "func": "static void decode_color_temperature ( gchar * s , guint16 value ) {\n g_snprintf ( s , ITEM_LABEL_LENGTH , \"%d [Mired] (%d [K])\" , value , 1000000 / value ) ;\n return ;\n }"}
{"idx": 1214, "target": 0, "func": "static inline void encode_mb_hq ( MpegEncContext * s , MpegEncContext * backup , MpegEncContext * best , int type , PutBitContext pb [ 2 ] , PutBitContext pb2 [ 2 ] , PutBitContext tex_pb [ 2 ] , int * dmin , int * next_block , int motion_x , int motion_y ) {\n int score ;\n uint8_t * dest_backup [ 3 ] ;\n copy_context_before_encode ( s , backup , type ) ;\n s -> block = s -> blocks [ * next_block ] ;\n s -> pb = pb [ * next_block ] ;\n if ( s -> data_partitioning ) {\n s -> pb2 = pb2 [ * next_block ] ;\n s -> tex_pb = tex_pb [ * next_block ] ;\n }\n if ( * next_block ) {\n memcpy ( dest_backup , s -> dest , sizeof ( s -> dest ) ) ;\n s -> dest [ 0 ] = s -> rd_scratchpad ;\n s -> dest [ 1 ] = s -> rd_scratchpad + 16 * s -> linesize ;\n s -> dest [ 2 ] = s -> rd_scratchpad + 16 * s -> linesize + 8 ;\n assert ( s -> linesize >= 32 ) ;\n }\n encode_mb ( s , motion_x , motion_y ) ;\n score = put_bits_count ( & s -> pb ) ;\n if ( s -> data_partitioning ) {\n score += put_bits_count ( & s -> pb2 ) ;\n score += put_bits_count ( & s -> tex_pb ) ;\n }\n if ( s -> avctx -> mb_decision == FF_MB_DECISION_RD ) {\n ff_MPV_decode_mb ( s , s -> block ) ;\n score *= s -> lambda2 ;\n score += sse_mb ( s ) << FF_LAMBDA_SHIFT ;\n }\n if ( * next_block ) {\n memcpy ( s -> dest , dest_backup , sizeof ( s -> dest ) ) ;\n }\n if ( score < * dmin ) {\n * dmin = score ;\n * next_block ^= 1 ;\n copy_context_after_encode ( best , s , type ) ;\n }\n }"}
{"idx": 1215, "target": 1, "func": "static int dissect_h225_DisengageReason ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 636 \"./asn1/h225/h225.cnf\" gint32 value ;\n h225_packet_info * h225_pi ;\n h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_DisengageReason , DisengageReason_choice , & value ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> reason = value ;\n }\n return offset ;\n }"}
{"idx": 1216, "target": 0, "func": "static void git_pack_config ( void ) {\n int indexversion_value ;\n unsigned long packsizelimit_value ;\n if ( ! git_config_get_ulong ( \"pack.depth\" , & max_depth ) ) {\n if ( max_depth > MAX_DEPTH ) max_depth = MAX_DEPTH ;\n }\n if ( ! git_config_get_int ( \"pack.compression\" , & pack_compression_level ) ) {\n if ( pack_compression_level == - 1 ) pack_compression_level = Z_DEFAULT_COMPRESSION ;\n else if ( pack_compression_level < 0 || pack_compression_level > Z_BEST_COMPRESSION ) git_die_config ( \"pack.compression\" , \"bad pack compression level %d\" , pack_compression_level ) ;\n pack_compression_seen = 1 ;\n }\n if ( ! git_config_get_int ( \"pack.indexversion\" , & indexversion_value ) ) {\n pack_idx_opts . version = indexversion_value ;\n if ( pack_idx_opts . version > 2 ) git_die_config ( \"pack.indexversion\" , \"bad pack.indexversion=%\" PRIu32 , pack_idx_opts . version ) ;\n }\n if ( ! git_config_get_ulong ( \"pack.packsizelimit\" , & packsizelimit_value ) ) max_packsize = packsizelimit_value ;\n git_config ( git_default_config , NULL ) ;\n }"}
{"idx": 1217, "target": 0, "func": "static inline void SetPixelMagenta ( const Image * restrict image , const Quantum magenta , Quantum * restrict pixel ) {\n pixel [ image -> channel_map [ MagentaPixelChannel ] . offset ] = magenta ;\n }"}
{"idx": 1218, "target": 0, "func": "static inline u16 socket_type_to_security_class ( int family , int type , int protocol ) {\n switch ( family ) {\n case PF_UNIX : switch ( type ) {\n case SOCK_STREAM : case SOCK_SEQPACKET : return SECCLASS_UNIX_STREAM_SOCKET ;\n case SOCK_DGRAM : return SECCLASS_UNIX_DGRAM_SOCKET ;\n }\n break ;\n case PF_INET : case PF_INET6 : switch ( type ) {\n case SOCK_STREAM : if ( default_protocol_stream ( protocol ) ) return SECCLASS_TCP_SOCKET ;\n else return SECCLASS_RAWIP_SOCKET ;\n case SOCK_DGRAM : if ( default_protocol_dgram ( protocol ) ) return SECCLASS_UDP_SOCKET ;\n else return SECCLASS_RAWIP_SOCKET ;\n case SOCK_DCCP : return SECCLASS_DCCP_SOCKET ;\n default : return SECCLASS_RAWIP_SOCKET ;\n }\n break ;\n case PF_NETLINK : switch ( protocol ) {\n case NETLINK_ROUTE : return SECCLASS_NETLINK_ROUTE_SOCKET ;\n case NETLINK_SOCK_DIAG : return SECCLASS_NETLINK_TCPDIAG_SOCKET ;\n case NETLINK_NFLOG : return SECCLASS_NETLINK_NFLOG_SOCKET ;\n case NETLINK_XFRM : return SECCLASS_NETLINK_XFRM_SOCKET ;\n case NETLINK_SELINUX : return SECCLASS_NETLINK_SELINUX_SOCKET ;\n case NETLINK_ISCSI : return SECCLASS_NETLINK_ISCSI_SOCKET ;\n case NETLINK_AUDIT : return SECCLASS_NETLINK_AUDIT_SOCKET ;\n case NETLINK_FIB_LOOKUP : return SECCLASS_NETLINK_FIB_LOOKUP_SOCKET ;\n case NETLINK_CONNECTOR : return SECCLASS_NETLINK_CONNECTOR_SOCKET ;\n case NETLINK_NETFILTER : return SECCLASS_NETLINK_NETFILTER_SOCKET ;\n case NETLINK_DNRTMSG : return SECCLASS_NETLINK_DNRT_SOCKET ;\n case NETLINK_KOBJECT_UEVENT : return SECCLASS_NETLINK_KOBJECT_UEVENT_SOCKET ;\n case NETLINK_GENERIC : return SECCLASS_NETLINK_GENERIC_SOCKET ;\n case NETLINK_SCSITRANSPORT : return SECCLASS_NETLINK_SCSITRANSPORT_SOCKET ;\n case NETLINK_RDMA : return SECCLASS_NETLINK_RDMA_SOCKET ;\n case NETLINK_CRYPTO : return SECCLASS_NETLINK_CRYPTO_SOCKET ;\n default : return SECCLASS_NETLINK_SOCKET ;\n }\n case PF_PACKET : return SECCLASS_PACKET_SOCKET ;\n case PF_KEY : return SECCLASS_KEY_SOCKET ;\n case PF_APPLETALK : return SECCLASS_APPLETALK_SOCKET ;\n }\n return SECCLASS_SOCKET ;\n }"}
{"idx": 1219, "target": 0, "func": "static inline int xhci_running ( XHCIState * xhci ) {\n return ! ( xhci -> usbsts & USBSTS_HCH ) && ! xhci -> intr [ 0 ] . er_full ;\n }"}
{"idx": 1220, "target": 0, "func": "static void lxc_cgroup_hierarchy_free ( struct cgroup_hierarchy * h ) {\n if ( ! h ) return ;\n lxc_free_array ( ( void * * ) h -> subsystems , free ) ;\n free ( h -> all_mount_points ) ;\n free ( h ) ;\n }"}
{"idx": 1221, "target": 0, "func": "int qemuMonitorTextAddPCIHostDevice ( qemuMonitorPtr mon , virDomainDevicePCIAddress * hostAddr , virDomainDevicePCIAddress * guestAddr ) {\n char * cmd ;\n char * reply = NULL ;\n int ret = - 1 ;\n memset ( guestAddr , 0 , sizeof ( * guestAddr ) ) ;\n if ( virAsprintf ( & cmd , \"pci_add pci_addr=auto host host=%.2x:%.2x.%.1x\" , hostAddr -> bus , hostAddr -> slot , hostAddr -> function ) < 0 ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , _ ( \"cannot attach host pci device\" ) ) ;\n goto cleanup ;\n }\n if ( strstr ( reply , \"invalid type: host\" ) ) {\n qemuReportError ( VIR_ERR_OPERATION_INVALID , \"%s\" , _ ( \"PCI device assignment is not supported by this version of qemu\" ) ) ;\n goto cleanup ;\n }\n if ( qemuMonitorTextParsePciAddReply ( mon , reply , guestAddr ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"parsing pci_add reply failed: %s\" ) , reply ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( cmd ) ;\n VIR_FREE ( reply ) ;\n return ret ;\n }"}
{"idx": 1222, "target": 0, "func": "static int pxa2xx_clkcfg_write ( CPUARMState * env , const ARMCPRegInfo * ri , uint64_t value ) {\n PXA2xxState * s = ( PXA2xxState * ) ri -> opaque ;\n s -> clkcfg = value & 0xf ;\n if ( value & 2 ) {\n printf ( \"%s: CPU frequency change attempt\\n\" , __func__ ) ;\n }\n return 0 ;\n }"}
{"idx": 1223, "target": 0, "func": "void luaD_reallocstack ( lua_State * L , int newsize ) {\n TValue * oldstack = L -> stack ;\n int realsize = newsize + 1 + EXTRA_STACK ;\n lua_assert ( L -> stack_last - L -> stack == L -> stacksize - EXTRA_STACK - 1 ) ;\n luaM_reallocvector ( L , L -> stack , L -> stacksize , realsize , TValue ) ;\n L -> stacksize = realsize ;\n L -> stack_last = L -> stack + newsize ;\n correctstack ( L , oldstack ) ;\n }"}
{"idx": 1224, "target": 0, "func": "static int dissect_h245_T_audioSampling ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_audioSampling , T_audioSampling_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 1225, "target": 0, "func": "int mime_format_int ( char * buf , int32_t val , size_t buf_len ) {\n return ink_fast_itoa ( val , buf , buf_len ) ;\n }"}
{"idx": 1226, "target": 0, "func": "static void test_bug16144 ( ) {\n const my_bool flag_orig = ( my_bool ) 0xde ;\n my_bool flag = flag_orig ;\n MYSQL_STMT * stmt ;\n myheader ( \"test_bug16144\" ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n mysql_stmt_attr_set ( stmt , STMT_ATTR_UPDATE_MAX_LENGTH , ( const void * ) & flag ) ;\n mysql_stmt_attr_get ( stmt , STMT_ATTR_UPDATE_MAX_LENGTH , ( void * ) & flag ) ;\n DIE_UNLESS ( flag == flag_orig ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 1227, "target": 0, "func": "TEST_F ( TemplateURLParserTest , TestWikipedia ) {\n ASSERT_NO_FATAL_FAILURE ( ParseFile ( \"wikipedia.xml\" , nullptr ) ) ;\n ASSERT_TRUE ( template_url_ ) ;\n EXPECT_EQ ( ASCIIToUTF16 ( \"Wikipedia (English)\" ) , template_url_ -> short_name ( ) ) ;\n EXPECT_EQ ( GURL ( \"http://en.wikipedia.org/favicon.ico\" ) , template_url_ -> favicon_url ( ) ) ;\n EXPECT_TRUE ( template_url_ -> url_ref ( ) . SupportsReplacement ( SearchTermsData ( ) ) ) ;\n EXPECT_EQ ( \"http://en.wikipedia.org/w/index.php?\" \"title=Special:Search&search={\nsearchTerms}\n\" , template_url_ -> url ( ) ) ;\n EXPECT_TRUE ( template_url_ -> suggestions_url_ref ( ) . SupportsReplacement ( SearchTermsData ( ) ) ) ;\n EXPECT_EQ ( \"http://en.wikipedia.org/w/api.php?\" \"action=opensearch&search={\nsearchTerms}\n\" , template_url_ -> suggestions_url ( ) ) ;\n ASSERT_EQ ( 2U , template_url_ -> input_encodings ( ) . size ( ) ) ;\n EXPECT_EQ ( \"UTF-8\" , template_url_ -> input_encodings ( ) [ 0 ] ) ;\n EXPECT_EQ ( \"Shift_JIS\" , template_url_ -> input_encodings ( ) [ 1 ] ) ;\n }"}
{"idx": 1228, "target": 0, "func": "static int rm_assemble_video_frame ( AVFormatContext * s , AVIOContext * pb , RMDemuxContext * rm , RMStream * vst , AVPacket * pkt , int len , int * pseq , int64_t * timestamp ) {\n int hdr ;\n int seq = 0 , pic_num = 0 , len2 = 0 , pos = 0 ;\n int type ;\n int ret ;\n hdr = avio_r8 ( pb ) ;\n len -- ;\n type = hdr >> 6 ;\n if ( type != 3 ) {\n seq = avio_r8 ( pb ) ;\n len -- ;\n }\n if ( type != 1 ) {\n len2 = get_num ( pb , & len ) ;\n pos = get_num ( pb , & len ) ;\n pic_num = avio_r8 ( pb ) ;\n len -- ;\n }\n if ( len < 0 ) {\n av_log ( s , AV_LOG_ERROR , \"Insufficient data\\n\" ) ;\n return - 1 ;\n }\n rm -> remaining_len = len ;\n if ( type & 1 ) {\n if ( type == 3 ) {\n len = len2 ;\n * timestamp = pos ;\n }\n if ( rm -> remaining_len < len ) {\n av_log ( s , AV_LOG_ERROR , \"Insufficient remaining len\\n\" ) ;\n return - 1 ;\n }\n rm -> remaining_len -= len ;\n if ( av_new_packet ( pkt , len + 9 ) < 0 ) return AVERROR ( EIO ) ;\n pkt -> data [ 0 ] = 0 ;\n AV_WL32 ( pkt -> data + 1 , 1 ) ;\n AV_WL32 ( pkt -> data + 5 , 0 ) ;\n if ( ( ret = avio_read ( pb , pkt -> data + 9 , len ) ) != len ) {\n av_packet_unref ( pkt ) ;\n av_log ( s , AV_LOG_ERROR , \"Failed to read %d bytes\\n\" , len ) ;\n return ret < 0 ? ret : AVERROR ( EIO ) ;\n }\n return 0 ;\n }\n / ow we have to deal with single slice * pseq = seq ;\n if ( ( seq & 0x7F ) == 1 || vst -> curpic_num != pic_num ) {\n if ( len2 > ffio_limit ( pb , len2 ) ) {\n av_log ( s , AV_LOG_ERROR , \"Impossibly sized packet\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n vst -> slices = ( ( hdr & 0x3F ) << 1 ) + 1 ;\n vst -> videobufsize = len2 + 8 * vst -> slices + 1 ;\n av_packet_unref ( & vst -> pkt ) ;\n if ( av_new_packet ( & vst -> pkt , vst -> videobufsize ) < 0 ) return AVERROR ( ENOMEM ) ;\n memset ( vst -> pkt . data , 0 , vst -> pkt . size ) ;\n vst -> videobufpos = 8 * vst -> slices + 1 ;\n vst -> cur_slice = 0 ;\n vst -> curpic_num = pic_num ;\n vst -> pktpos = avio_tell ( pb ) ;\n }\n if ( type == 2 ) len = FFMIN ( len , pos ) ;\n if ( ++ vst -> cur_slice > vst -> slices ) {\n av_log ( s , AV_LOG_ERROR , \"cur slice %d, too large\\n\" , vst -> cur_slice ) ;\n return 1 ;\n }\n if ( ! vst -> pkt . data ) return AVERROR ( ENOMEM ) ;\n AV_WL32 ( vst -> pkt . data - 7 + 8 * vst -> cur_slice , 1 ) ;\n AV_WL32 ( vst -> pkt . data - 3 + 8 * vst -> cur_slice , vst -> videobufpos - 8 * vst -> slices - 1 ) ;\n if ( vst -> videobufpos + len > vst -> videobufsize ) {\n av_log ( s , AV_LOG_ERROR , \"outside videobufsize\\n\" ) ;\n return 1 ;\n }\n if ( avio_read ( pb , vst -> pkt . data + vst -> videobufpos , len ) != len ) return AVERROR ( EIO ) ;\n vst -> videobufpos += len ;\n rm -> remaining_len -= len ;\n if ( type == 2 || vst -> videobufpos == vst -> videobufsize ) {\n vst -> pkt . data [ 0 ] = vst -> cur_slice - 1 ;\n * pkt = vst -> pkt ;\n vst -> pkt . data = NULL ;\n vst -> pkt . size = 0 ;\n vst -> pkt . buf = NULL ;\n if ( vst -> slices != vst -> cur_slice ) memmove ( pkt -> data + 1 + 8 * vst -> cur_slice , pkt -> data + 1 + 8 * vst -> slices , vst -> videobufpos - 1 - 8 * vst -> slices ) ;\n pkt -> size = vst -> videobufpos + 8 * ( vst -> cur_slice - vst -> slices ) ;\n pkt -> pts = AV_NOPTS_VALUE ;\n pkt -> pos = vst -> pktpos ;\n vst -> slices = 0 ;\n return 0 ;\n }\n return 1 ;\n }"}
{"idx": 1229, "target": 0, "func": "static void DecoderWaitDate ( decoder_t * p_dec , bool * pb_reject , mtime_t i_deadline ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n vlc_assert_locked ( & p_owner -> lock ) ;\n if ( * pb_reject || i_deadline < 0 ) return ;\n do {\n if ( p_owner -> b_flushing || p_owner -> b_exit ) {\n * pb_reject = true ;\n break ;\n }\n }\n while ( vlc_cond_timedwait ( & p_owner -> wait_request , & p_owner -> lock , i_deadline ) == 0 ) ;\n }"}
{"idx": 1230, "target": 0, "func": "static int dissect_h245_INTEGER_0_31 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 31U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 1231, "target": 0, "func": "static int skip_check ( MpegEncContext * s , Picture * p , Picture * ref ) {\n int x , y , plane ;\n int score = 0 ;\n int64_t score64 = 0 ;\n for ( plane = 0 ;\n plane < 3 ;\n plane ++ ) {\n const int stride = p -> f . linesize [ plane ] ;\n const int bw = plane ? 1 : 2 ;\n for ( y = 0 ;\n y < s -> mb_height * bw ;\n y ++ ) {\n for ( x = 0 ;\n x < s -> mb_width * bw ;\n x ++ ) {\n int off = p -> shared ? 0 : 16 ;\n uint8_t * dptr = p -> f . data [ plane ] + 8 * ( x + y * stride ) + off ;\n uint8_t * rptr = ref -> f . data [ plane ] + 8 * ( x + y * stride ) ;\n int v = s -> dsp . frame_skip_cmp [ 1 ] ( s , dptr , rptr , stride , 8 ) ;\n switch ( s -> avctx -> frame_skip_exp ) {\n case 0 : score = FFMAX ( score , v ) ;\n break ;\n case 1 : score += FFABS ( v ) ;\n break ;\n case 2 : score += v * v ;\n break ;\n case 3 : score64 += FFABS ( v * v * ( int64_t ) v ) ;\n break ;\n case 4 : score64 += v * v * ( int64_t ) ( v * v ) ;\n break ;\n }\n }\n }\n }\n if ( score ) score64 = score ;\n if ( score64 < s -> avctx -> frame_skip_threshold ) return 1 ;\n if ( score64 < ( ( s -> avctx -> frame_skip_factor * ( int64_t ) s -> lambda ) >> 8 ) ) return 1 ;\n return 0 ;\n }"}
{"idx": 1232, "target": 0, "func": "static int H245dgcalls_packet ( void * ptr _U_ , packet_info * pinfo , epan_dissect_t * edt _U_ , const void * H245info ) {\n voip_calls_tapinfo_t * tapinfo = & the_tapinfo_struct ;\n voip_calls_info_t * tmp_listinfo ;\n voip_calls_info_t * callsinfo = NULL ;\n h323_calls_info_t * tmp_h323info ;\n GList * list ;\n GList * list2 ;\n h245_address_t * h245_add = NULL ;\n const h245_packet_info * pi = ( const h245_packet_info * ) H245info ;\n list = g_list_first ( tapinfo -> callsinfo_list ) ;\n while ( list ) {\n tmp_listinfo = ( voip_calls_info_t * ) list -> data ;\n if ( tmp_listinfo -> protocol == VOIP_H323 ) {\n tmp_h323info = ( h323_calls_info_t * ) tmp_listinfo -> prot_info ;\n list2 = g_list_first ( tmp_h323info -> h245_list ) ;\n while ( list2 ) {\n h245_add = ( h245_address_t * ) list2 -> data ;\n if ( ( ADDRESSES_EQUAL ( & ( h245_add -> h245_address ) , & ( pinfo -> src ) ) && ( h245_add -> h245_port == pinfo -> srcport ) ) || ( ADDRESSES_EQUAL ( & ( h245_add -> h245_address ) , & ( pinfo -> dst ) ) && ( h245_add -> h245_port == pinfo -> destport ) ) ) {\n callsinfo = ( voip_calls_info_t * ) ( list -> data ) ;\n ++ ( callsinfo -> npackets ) ;\n ++ ( tapinfo -> npackets ) ;\n break ;\n }\n list2 = g_list_next ( list2 ) ;\n }\n if ( callsinfo != NULL ) break ;\n }\n list = g_list_next ( list ) ;\n }\n if ( callsinfo != NULL ) {\n ++ ( callsinfo -> npackets ) ;\n ++ ( tapinfo -> npackets ) ;\n if ( ! append_to_frame_graph ( tapinfo , pinfo -> fd -> num , pi -> frame_label , pi -> comment ) ) {\n add_to_graph ( tapinfo , pinfo , pi -> frame_label , pi -> comment , callsinfo -> call_num , & ( pinfo -> src ) , & ( pinfo -> dst ) , 1 ) ;\n }\n }\n else {\n h245_add_label ( pinfo -> fd -> num , ( gchar * ) pi -> frame_label , ( gchar * ) pi -> comment ) ;\n }\n tapinfo -> redraw = TRUE ;\n return 1 ;\n }"}
{"idx": 1233, "target": 0, "func": "TSReturnCode TSHttpHdrUrlSet ( TSMBuffer bufp , TSMLoc obj , TSMLoc url ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_http_hdr_handle ( obj ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_url_handle ( url ) == TS_SUCCESS ) ;\n if ( ! isWriteable ( bufp ) ) {\n return TS_ERROR ;\n }\n HdrHeap * heap = ( ( HdrHeapSDKHandle * ) bufp ) -> m_heap ;\n HTTPHdrImpl * hh = ( HTTPHdrImpl * ) obj ;\n if ( hh -> m_type != HDR_HEAP_OBJ_HTTP_HEADER ) {\n return TS_ERROR ;\n }\n URLImpl * url_impl = ( URLImpl * ) url ;\n http_hdr_url_set ( heap , hh , url_impl ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 1234, "target": 0, "func": "int jbig2_data_in ( Jbig2Ctx * ctx , const unsigned char * data , size_t size ) {\n const size_t initial_buf_size = 1024 ;\n if ( ctx -> buf == NULL ) {\n size_t buf_size = initial_buf_size ;\n do buf_size <<= 1 ;\n while ( buf_size < size ) ;\n ctx -> buf = jbig2_new ( ctx , byte , buf_size ) ;\n if ( ctx -> buf == NULL ) {\n return jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , - 1 , \"failed to allocate ctx->buf in jbig2_data_in\" ) ;\n }\n ctx -> buf_size = buf_size ;\n ctx -> buf_rd_ix = 0 ;\n ctx -> buf_wr_ix = 0 ;\n }\n else if ( ctx -> buf_wr_ix + size > ctx -> buf_size ) {\n if ( ctx -> buf_rd_ix <= ( ctx -> buf_size >> 1 ) && ctx -> buf_wr_ix - ctx -> buf_rd_ix + size <= ctx -> buf_size ) {\n memmove ( ctx -> buf , ctx -> buf + ctx -> buf_rd_ix , ctx -> buf_wr_ix - ctx -> buf_rd_ix ) ;\n }\n else {\n byte * buf ;\n size_t buf_size = initial_buf_size ;\n do buf_size <<= 1 ;\n while ( buf_size < ctx -> buf_wr_ix - ctx -> buf_rd_ix + size ) ;\n buf = jbig2_new ( ctx , byte , buf_size ) ;\n if ( buf == NULL ) {\n return jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , - 1 , \"failed to allocate buf in jbig2_data_in\" ) ;\n }\n memcpy ( buf , ctx -> buf + ctx -> buf_rd_ix , ctx -> buf_wr_ix - ctx -> buf_rd_ix ) ;\n jbig2_free ( ctx -> allocator , ctx -> buf ) ;\n ctx -> buf = buf ;\n ctx -> buf_size = buf_size ;\n }\n ctx -> buf_wr_ix -= ctx -> buf_rd_ix ;\n ctx -> buf_rd_ix = 0 ;\n }\n memcpy ( ctx -> buf + ctx -> buf_wr_ix , data , size ) ;\n ctx -> buf_wr_ix += size ;\n for ( ;\n ;\n ) {\n const byte jbig2_id_string [ 8 ] = {\n 0x97 , 0x4a , 0x42 , 0x32 , 0x0d , 0x0a , 0x1a , 0x0a }\n ;\n Jbig2Segment * segment ;\n size_t header_size ;\n int code ;\n switch ( ctx -> state ) {\n case JBIG2_FILE_HEADER : if ( ctx -> buf_wr_ix - ctx -> buf_rd_ix < 9 ) return 0 ;\n if ( memcmp ( ctx -> buf + ctx -> buf_rd_ix , jbig2_id_string , 8 ) ) return jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , - 1 , \"Not a JBIG2 file header\" ) ;\n ctx -> file_header_flags = ctx -> buf [ ctx -> buf_rd_ix + 8 ] ;\n if ( ctx -> file_header_flags & 0xFC ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , - 1 , \"reserved bits (2-7) of file header flags are not zero (0x%02x)\" , ctx -> file_header_flags ) ;\n }\n if ( ! ( ctx -> file_header_flags & 2 ) ) {\n if ( ctx -> buf_wr_ix - ctx -> buf_rd_ix < 13 ) return 0 ;\n ctx -> n_pages = jbig2_get_uint32 ( ctx -> buf + ctx -> buf_rd_ix + 9 ) ;\n ctx -> buf_rd_ix += 13 ;\n if ( ctx -> n_pages == 1 ) jbig2_error ( ctx , JBIG2_SEVERITY_INFO , - 1 , \"file header indicates a single page document\" ) ;\n else jbig2_error ( ctx , JBIG2_SEVERITY_INFO , - 1 , \"file header indicates a %d page document\" , ctx -> n_pages ) ;\n }\n else {\n ctx -> n_pages = 0 ;\n ctx -> buf_rd_ix += 9 ;\n }\n if ( ctx -> file_header_flags & 1 ) {\n ctx -> state = JBIG2_FILE_SEQUENTIAL_HEADER ;\n jbig2_error ( ctx , JBIG2_SEVERITY_DEBUG , - 1 , \"file header indicates sequential organization\" ) ;\n }\n else {\n ctx -> state = JBIG2_FILE_RANDOM_HEADERS ;\n jbig2_error ( ctx , JBIG2_SEVERITY_DEBUG , - 1 , \"file header indicates random-access organization\" ) ;\n }\n break ;\n case JBIG2_FILE_SEQUENTIAL_HEADER : case JBIG2_FILE_RANDOM_HEADERS : segment = jbig2_parse_segment_header ( ctx , ctx -> buf + ctx -> buf_rd_ix , ctx -> buf_wr_ix - ctx -> buf_rd_ix , & header_size ) ;\n if ( segment == NULL ) return 0 ;\n ctx -> buf_rd_ix += header_size ;\n if ( ctx -> n_segments == ctx -> n_segments_max ) ctx -> segments = jbig2_renew ( ctx , ctx -> segments , Jbig2Segment * , ( ctx -> n_segments_max <<= 2 ) ) ;\n ctx -> segments [ ctx -> n_segments ++ ] = segment ;\n if ( ctx -> state == JBIG2_FILE_RANDOM_HEADERS ) {\n if ( ( segment -> flags & 63 ) == 51 ) ctx -> state = JBIG2_FILE_RANDOM_BODIES ;\n }\n else ctx -> state = JBIG2_FILE_SEQUENTIAL_BODY ;\n break ;\n case JBIG2_FILE_SEQUENTIAL_BODY : case JBIG2_FILE_RANDOM_BODIES : segment = ctx -> segments [ ctx -> segment_index ] ;\n if ( segment -> data_length > ctx -> buf_wr_ix - ctx -> buf_rd_ix ) return 0 ;\n code = jbig2_parse_segment ( ctx , segment , ctx -> buf + ctx -> buf_rd_ix ) ;\n ctx -> buf_rd_ix += segment -> data_length ;\n ctx -> segment_index ++ ;\n if ( ctx -> state == JBIG2_FILE_RANDOM_BODIES ) {\n if ( ctx -> segment_index == ctx -> n_segments ) ctx -> state = JBIG2_FILE_EOF ;\n }\n else {\n ctx -> state = JBIG2_FILE_SEQUENTIAL_HEADER ;\n }\n if ( code < 0 ) {\n ctx -> state = JBIG2_FILE_EOF ;\n return code ;\n }\n break ;\n case JBIG2_FILE_EOF : if ( ctx -> buf_rd_ix == ctx -> buf_wr_ix ) return 0 ;\n return jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , - 1 , \"Garbage beyond end of file\" ) ;\n }\n }\n }"}
{"idx": 1235, "target": 0, "func": "static gboolean purple_menu_cmp ( const char * a , const char * b ) {\n while ( * a && * b ) {\n while ( * a == '_' ) {\n a ++ ;\n }\n while ( * b == '_' ) {\n b ++ ;\n }\n if ( g_ascii_tolower ( * a ) != g_ascii_tolower ( * b ) ) {\n return FALSE ;\n }\n a ++ ;\n b ++ ;\n }\n return ( * a == '\\0' && * b == '\\0' ) ;\n }"}
{"idx": 1236, "target": 1, "func": "static void super_block_uvrd ( const VP9_COMP * cpi , MACROBLOCK * x , int * rate , int64_t * distortion , int * skippable , int64_t * sse , BLOCK_SIZE bsize , int64_t ref_best_rd ) {\n MACROBLOCKD * const xd = & x -> e_mbd ;\n MB_MODE_INFO * const mbmi = & xd -> mi [ 0 ] -> mbmi ;\n const TX_SIZE uv_tx_size = get_uv_tx_size ( mbmi , & xd -> plane [ 1 ] ) ;\n int plane ;\n int pnrate = 0 , pnskip = 1 ;\n int64_t pndist = 0 , pnsse = 0 ;\n if ( ref_best_rd < 0 ) goto term ;\n if ( is_inter_block ( mbmi ) ) {\n int plane ;\n for ( plane = 1 ;\n plane < MAX_MB_PLANE ;\n ++ plane ) vp9_subtract_plane ( x , bsize , plane ) ;\n }\n * rate = 0 ;\n * distortion = 0 ;\n * sse = 0 ;\n * skippable = 1 ;\n for ( plane = 1 ;\n plane < MAX_MB_PLANE ;\n ++ plane ) {\n txfm_rd_in_plane ( x , & pnrate , & pndist , & pnskip , & pnsse , ref_best_rd , plane , bsize , uv_tx_size , cpi -> sf . use_fast_coef_costing ) ;\n if ( pnrate == INT_MAX ) goto term ;\n * rate += pnrate ;\n * distortion += pndist ;\n * sse += pnsse ;\n * skippable &= pnskip ;\n }\n return ;\n term : * rate = INT_MAX ;\n * distortion = INT64_MAX ;\n * sse = INT64_MAX ;\n * skippable = 0 ;\n return ;\n }"}
{"idx": 1237, "target": 0, "func": "static int isoent_gen_iso9660_identifier ( struct archive_write * a , struct isoent * isoent , struct idr * idr ) {\n struct iso9660 * iso9660 ;\n struct isoent * np ;\n char * p ;\n int l , r ;\n const char * char_map ;\n char allow_ldots , allow_multidot , allow_period , allow_vernum ;\n int fnmax , ffmax , dnmax ;\n static const struct archive_rb_tree_ops rb_ops = {\n isoent_cmp_node_iso9660 , isoent_cmp_key_iso9660 }\n ;\n if ( isoent -> children . cnt == 0 ) return ( 0 ) ;\n iso9660 = a -> format_data ;\n char_map = idr -> char_map ;\n if ( iso9660 -> opt . iso_level <= 3 ) {\n allow_ldots = 0 ;\n allow_multidot = 0 ;\n allow_period = 1 ;\n allow_vernum = iso9660 -> opt . allow_vernum ;\n if ( iso9660 -> opt . iso_level == 1 ) {\n fnmax = 8 ;\n ffmax = 12 ;\n dnmax = 8 ;\n }\n else {\n fnmax = 30 ;\n ffmax = 31 ;\n dnmax = 31 ;\n }\n }\n else {\n allow_ldots = allow_multidot = 1 ;\n allow_period = allow_vernum = 0 ;\n if ( iso9660 -> opt . rr ) fnmax = ffmax = dnmax = 193 ;\n else fnmax = ffmax = dnmax = 207 ;\n }\n r = idr_start ( a , idr , isoent -> children . cnt , ffmax , 3 , 1 , & rb_ops ) ;\n if ( r < 0 ) return ( r ) ;\n for ( np = isoent -> children . first ;\n np != NULL ;\n np = np -> chnext ) {\n char * dot , * xdot ;\n int ext_off , noff , weight ;\n l = ( int ) np -> file -> basename . length ;\n p = malloc ( l + 31 + 2 + 1 ) ;\n if ( p == NULL ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate memory\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n memcpy ( p , np -> file -> basename . s , l ) ;\n p [ l ] = '\\0' ;\n np -> identifier = p ;\n dot = xdot = NULL ;\n if ( ! allow_ldots ) {\n if ( * p == '.' ) * p ++ = '_' ;\n }\n for ( ;\n * p ;\n p ++ ) {\n if ( * p & 0x80 ) {\n * p = '_' ;\n continue ;\n }\n if ( char_map [ ( unsigned char ) * p ] ) {\n if ( * p == '.' ) {\n xdot = dot ;\n dot = p ;\n }\n continue ;\n }\n if ( * p >= 'a' && * p <= 'z' ) {\n * p -= 'a' - 'A' ;\n continue ;\n }\n if ( * p == '.' ) {\n xdot = dot ;\n dot = p ;\n if ( allow_multidot ) continue ;\n }\n * p = '_' ;\n }\n p = np -> identifier ;\n weight = - 1 ;\n if ( dot == NULL ) {\n int nammax ;\n if ( np -> dir ) nammax = dnmax ;\n else nammax = fnmax ;\n if ( l > nammax ) {\n p [ nammax ] = '\\0' ;\n weight = nammax ;\n ext_off = nammax ;\n }\n else ext_off = l ;\n }\n else {\n * dot = '.' ;\n ext_off = ( int ) ( dot - p ) ;\n if ( iso9660 -> opt . iso_level == 1 ) {\n if ( dot - p <= 8 ) {\n if ( strlen ( dot ) > 4 ) {\n dot [ 4 ] = '\\0' ;\n weight = 0 ;\n }\n }\n else {\n p [ 8 ] = dot [ 0 ] ;\n p [ 9 ] = dot [ 1 ] ;\n p [ 10 ] = dot [ 2 ] ;\n p [ 11 ] = dot [ 3 ] ;\n p [ 12 ] = '\\0' ;\n weight = 8 ;\n ext_off = 8 ;\n }\n }\n else if ( np -> dir ) {\n if ( l > dnmax ) {\n p [ dnmax ] = '\\0' ;\n weight = dnmax ;\n if ( ext_off > dnmax ) ext_off = dnmax ;\n }\n }\n else if ( l > ffmax ) {\n int extlen = ( int ) strlen ( dot ) ;\n int xdoff ;\n if ( xdot != NULL ) xdoff = ( int ) ( xdot - p ) ;\n else xdoff = 0 ;\n if ( extlen > 1 && xdoff < fnmax - 1 ) {\n int off ;\n if ( extlen > ffmax ) extlen = ffmax ;\n off = ffmax - extlen ;\n if ( off == 0 ) {\n off ++ ;\n extlen -- ;\n }\n memmove ( p + off , dot , extlen ) ;\n p [ ffmax ] = '\\0' ;\n ext_off = off ;\n weight = off ;\n # ifdef COMPAT_MKISOFS }\n else if ( xdoff >= fnmax - 1 ) {\n p [ fnmax - 1 ] = '\\0' ;\n ext_off = fnmax - 1 ;\n weight = fnmax - 1 ;\n # endif }\n else {\n p [ fnmax ] = '\\0' ;\n ext_off = fnmax ;\n weight = fnmax ;\n }\n }\n }\n np -> ext_off = ext_off ;\n np -> ext_len = ( int ) strlen ( & p [ ext_off ] ) ;\n np -> id_len = l = ext_off + np -> ext_len ;\n if ( iso9660 -> opt . iso_level == 1 ) {\n if ( ext_off >= 5 ) noff = 5 ;\n else noff = ext_off ;\n }\n else {\n if ( l == ffmax ) noff = ext_off - 3 ;\n else if ( l == ffmax - 1 ) noff = ext_off - 2 ;\n else if ( l == ffmax - 2 ) noff = ext_off - 1 ;\n else noff = ext_off ;\n }\n idr_register ( idr , np , weight , noff ) ;\n }\n idr_resolve ( idr , idr_set_num ) ;\n for ( np = isoent -> children . first ;\n np != NULL ;\n np = np -> chnext ) {\n if ( ! np -> dir && np -> rr_child == NULL ) {\n p = np -> identifier + np -> ext_off + np -> ext_len ;\n if ( np -> ext_len == 0 && allow_period ) {\n * p ++ = '.' ;\n np -> ext_len = 1 ;\n }\n if ( np -> ext_len == 1 && ! allow_period ) {\n * -- p = '\\0' ;\n np -> ext_len = 0 ;\n }\n np -> id_len = np -> ext_off + np -> ext_len ;\n if ( allow_vernum ) {\n * p ++ = ';\n' ;\n * p ++ = '1' ;\n np -> id_len += 2 ;\n }\n * p = '\\0' ;\n }\n else np -> id_len = np -> ext_off + np -> ext_len ;\n np -> mb_len = np -> id_len ;\n }\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 1238, "target": 0, "func": "static int vc1_decode_p_mb ( VC1Context * v ) {\n MpegEncContext * s = & v -> s ;\n GetBitContext * gb = & s -> gb ;\n int i , j ;\n int mb_pos = s -> mb_x + s -> mb_y * s -> mb_stride ;\n int cbp ;\n int mqdiff , mquant ;\n int ttmb = v -> ttfrm ;\n int mb_has_coeffs = 1 ;\n int dmv_x , dmv_y ;\n int index , index1 ;\n int val , sign ;\n int first_block = 1 ;\n int dst_idx , off ;\n int skipped , fourmv ;\n int block_cbp = 0 , pat , block_tt = 0 , block_intra = 0 ;\n mquant = v -> pq ;\n if ( v -> mv_type_is_raw ) fourmv = get_bits1 ( gb ) ;\n else fourmv = v -> mv_type_mb_plane [ mb_pos ] ;\n if ( v -> skip_is_raw ) skipped = get_bits1 ( gb ) ;\n else skipped = v -> s . mbskip_table [ mb_pos ] ;\n if ( ! fourmv ) {\n if ( ! skipped ) {\n GET_MVDATA ( dmv_x , dmv_y ) ;\n if ( s -> mb_intra ) {\n s -> current_picture . motion_val [ 1 ] [ s -> block_index [ 0 ] ] [ 0 ] = 0 ;\n s -> current_picture . motion_val [ 1 ] [ s -> block_index [ 0 ] ] [ 1 ] = 0 ;\n }\n s -> current_picture . mb_type [ mb_pos ] = s -> mb_intra ? MB_TYPE_INTRA : MB_TYPE_16x16 ;\n vc1_pred_mv ( v , 0 , dmv_x , dmv_y , 1 , v -> range_x , v -> range_y , v -> mb_type [ 0 ] , 0 , 0 ) ;\n if ( s -> mb_intra && ! mb_has_coeffs ) {\n GET_MQUANT ( ) ;\n s -> ac_pred = get_bits1 ( gb ) ;\n cbp = 0 ;\n }\n else if ( mb_has_coeffs ) {\n if ( s -> mb_intra ) s -> ac_pred = get_bits1 ( gb ) ;\n cbp = get_vlc2 ( & v -> s . gb , v -> cbpcy_vlc -> table , VC1_CBPCY_P_VLC_BITS , 2 ) ;\n GET_MQUANT ( ) ;\n }\n else {\n mquant = v -> pq ;\n cbp = 0 ;\n }\n s -> current_picture . qscale_table [ mb_pos ] = mquant ;\n if ( ! v -> ttmbf && ! s -> mb_intra && mb_has_coeffs ) ttmb = get_vlc2 ( gb , ff_vc1_ttmb_vlc [ v -> tt_index ] . table , VC1_TTMB_VLC_BITS , 2 ) ;\n if ( ! s -> mb_intra ) vc1_mc_1mv ( v , 0 ) ;\n dst_idx = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n s -> dc_val [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n dst_idx += i >> 2 ;\n val = ( ( cbp >> ( 5 - i ) ) & 1 ) ;\n off = ( i & 4 ) ? 0 : ( ( i & 1 ) * 8 + ( i & 2 ) * 4 * s -> linesize ) ;\n v -> mb_type [ 0 ] [ s -> block_index [ i ] ] = s -> mb_intra ;\n if ( s -> mb_intra ) {\n v -> a_avail = v -> c_avail = 0 ;\n if ( i == 2 || i == 3 || ! s -> first_slice_line ) v -> a_avail = v -> mb_type [ 0 ] [ s -> block_index [ i ] - s -> block_wrap [ i ] ] ;\n if ( i == 1 || i == 3 || s -> mb_x ) v -> c_avail = v -> mb_type [ 0 ] [ s -> block_index [ i ] - 1 ] ;\n vc1_decode_intra_block ( v , s -> block [ i ] , i , val , mquant , ( i & 4 ) ? v -> codingset2 : v -> codingset ) ;\n if ( ( i > 3 ) && ( s -> flags & CODEC_FLAG_GRAY ) ) continue ;\n v -> vc1dsp . vc1_inv_trans_8x8 ( s -> block [ i ] ) ;\n if ( v -> rangeredfrm ) for ( j = 0 ;\n j < 64 ;\n j ++ ) s -> block [ i ] [ j ] <<= 1 ;\n s -> dsp . put_signed_pixels_clamped ( s -> block [ i ] , s -> dest [ dst_idx ] + off , i & 4 ? s -> uvlinesize : s -> linesize ) ;\n if ( v -> pq >= 9 && v -> overlap ) {\n if ( v -> c_avail ) v -> vc1dsp . vc1_h_overlap ( s -> dest [ dst_idx ] + off , i & 4 ? s -> uvlinesize : s -> linesize ) ;\n if ( v -> a_avail ) v -> vc1dsp . vc1_v_overlap ( s -> dest [ dst_idx ] + off , i & 4 ? s -> uvlinesize : s -> linesize ) ;\n }\n block_cbp |= 0xF << ( i << 2 ) ;\n block_intra |= 1 << i ;\n }\n else if ( val ) {\n pat = vc1_decode_p_block ( v , s -> block [ i ] , i , mquant , ttmb , first_block , s -> dest [ dst_idx ] + off , ( i & 4 ) ? s -> uvlinesize : s -> linesize , ( i & 4 ) && ( s -> flags & CODEC_FLAG_GRAY ) , & block_tt ) ;\n block_cbp |= pat << ( i << 2 ) ;\n if ( ! v -> ttmbf && ttmb < 8 ) ttmb = - 1 ;\n first_block = 0 ;\n }\n }\n }\n else {\n s -> mb_intra = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n v -> mb_type [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n s -> dc_val [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n }\n s -> current_picture . mb_type [ mb_pos ] = MB_TYPE_SKIP ;\n s -> current_picture . qscale_table [ mb_pos ] = 0 ;\n vc1_pred_mv ( v , 0 , 0 , 0 , 1 , v -> range_x , v -> range_y , v -> mb_type [ 0 ] , 0 , 0 ) ;\n vc1_mc_1mv ( v , 0 ) ;\n }\n }\n else {\n if ( ! skipped ) {\n int intra_count = 0 , coded_inter = 0 ;\n int is_intra [ 6 ] , is_coded [ 6 ] ;\n cbp = get_vlc2 ( & v -> s . gb , v -> cbpcy_vlc -> table , VC1_CBPCY_P_VLC_BITS , 2 ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n val = ( ( cbp >> ( 5 - i ) ) & 1 ) ;\n s -> dc_val [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n s -> mb_intra = 0 ;\n if ( i < 4 ) {\n dmv_x = dmv_y = 0 ;\n s -> mb_intra = 0 ;\n mb_has_coeffs = 0 ;\n if ( val ) {\n GET_MVDATA ( dmv_x , dmv_y ) ;\n }\n vc1_pred_mv ( v , i , dmv_x , dmv_y , 0 , v -> range_x , v -> range_y , v -> mb_type [ 0 ] , 0 , 0 ) ;\n if ( ! s -> mb_intra ) vc1_mc_4mv_luma ( v , i , 0 ) ;\n intra_count += s -> mb_intra ;\n is_intra [ i ] = s -> mb_intra ;\n is_coded [ i ] = mb_has_coeffs ;\n }\n if ( i & 4 ) {\n is_intra [ i ] = ( intra_count >= 3 ) ;\n is_coded [ i ] = val ;\n }\n if ( i == 4 ) vc1_mc_4mv_chroma ( v , 0 ) ;\n v -> mb_type [ 0 ] [ s -> block_index [ i ] ] = is_intra [ i ] ;\n if ( ! coded_inter ) coded_inter = ! is_intra [ i ] & is_coded [ i ] ;\n }\n dst_idx = 0 ;\n if ( ! intra_count && ! coded_inter ) goto end ;\n GET_MQUANT ( ) ;\n s -> current_picture . qscale_table [ mb_pos ] = mquant ;\n {\n int intrapred = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) if ( is_intra [ i ] ) {\n if ( ( ( ! s -> first_slice_line || ( i == 2 || i == 3 ) ) && v -> mb_type [ 0 ] [ s -> block_index [ i ] - s -> block_wrap [ i ] ] ) || ( ( s -> mb_x || ( i == 1 || i == 3 ) ) && v -> mb_type [ 0 ] [ s -> block_index [ i ] - 1 ] ) ) {\n intrapred = 1 ;\n break ;\n }\n }\n if ( intrapred ) s -> ac_pred = get_bits1 ( gb ) ;\n else s -> ac_pred = 0 ;\n }\n if ( ! v -> ttmbf && coded_inter ) ttmb = get_vlc2 ( gb , ff_vc1_ttmb_vlc [ v -> tt_index ] . table , VC1_TTMB_VLC_BITS , 2 ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n dst_idx += i >> 2 ;\n off = ( i & 4 ) ? 0 : ( ( i & 1 ) * 8 + ( i & 2 ) * 4 * s -> linesize ) ;\n s -> mb_intra = is_intra [ i ] ;\n if ( is_intra [ i ] ) {\n v -> a_avail = v -> c_avail = 0 ;\n if ( i == 2 || i == 3 || ! s -> first_slice_line ) v -> a_avail = v -> mb_type [ 0 ] [ s -> block_index [ i ] - s -> block_wrap [ i ] ] ;\n if ( i == 1 || i == 3 || s -> mb_x ) v -> c_avail = v -> mb_type [ 0 ] [ s -> block_index [ i ] - 1 ] ;\n vc1_decode_intra_block ( v , s -> block [ i ] , i , is_coded [ i ] , mquant , ( i & 4 ) ? v -> codingset2 : v -> codingset ) ;\n if ( ( i > 3 ) && ( s -> flags & CODEC_FLAG_GRAY ) ) continue ;\n v -> vc1dsp . vc1_inv_trans_8x8 ( s -> block [ i ] ) ;\n if ( v -> rangeredfrm ) for ( j = 0 ;\n j < 64 ;\n j ++ ) s -> block [ i ] [ j ] <<= 1 ;\n s -> dsp . put_signed_pixels_clamped ( s -> block [ i ] , s -> dest [ dst_idx ] + off , ( i & 4 ) ? s -> uvlinesize : s -> linesize ) ;\n if ( v -> pq >= 9 && v -> overlap ) {\n if ( v -> c_avail ) v -> vc1dsp . vc1_h_overlap ( s -> dest [ dst_idx ] + off , i & 4 ? s -> uvlinesize : s -> linesize ) ;\n if ( v -> a_avail ) v -> vc1dsp . vc1_v_overlap ( s -> dest [ dst_idx ] + off , i & 4 ? s -> uvlinesize : s -> linesize ) ;\n }\n block_cbp |= 0xF << ( i << 2 ) ;\n block_intra |= 1 << i ;\n }\n else if ( is_coded [ i ] ) {\n pat = vc1_decode_p_block ( v , s -> block [ i ] , i , mquant , ttmb , first_block , s -> dest [ dst_idx ] + off , ( i & 4 ) ? s -> uvlinesize : s -> linesize , ( i & 4 ) && ( s -> flags & CODEC_FLAG_GRAY ) , & block_tt ) ;\n block_cbp |= pat << ( i << 2 ) ;\n if ( ! v -> ttmbf && ttmb < 8 ) ttmb = - 1 ;\n first_block = 0 ;\n }\n }\n }\n else {\n s -> mb_intra = 0 ;\n s -> current_picture . qscale_table [ mb_pos ] = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n v -> mb_type [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n s -> dc_val [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n }\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n vc1_pred_mv ( v , i , 0 , 0 , 0 , v -> range_x , v -> range_y , v -> mb_type [ 0 ] , 0 , 0 ) ;\n vc1_mc_4mv_luma ( v , i , 0 ) ;\n }\n vc1_mc_4mv_chroma ( v , 0 ) ;\n s -> current_picture . qscale_table [ mb_pos ] = 0 ;\n }\n }\n end : v -> cbp [ s -> mb_x ] = block_cbp ;\n v -> ttblk [ s -> mb_x ] = block_tt ;\n v -> is_intra [ s -> mb_x ] = block_intra ;\n return 0 ;\n }"}
{"idx": 1239, "target": 1, "func": "int vp9_rc_bits_per_mb ( FRAME_TYPE frame_type , int qindex , double correction_factor ) {\n const double q = vp9_convert_qindex_to_q ( qindex ) ;\n int enumerator = frame_type == KEY_FRAME ? 3300000 : 2250000 ;\n enumerator += ( int ) ( enumerator * q ) >> 12 ;\n return ( int ) ( enumerator * correction_factor / q ) ;\n }"}
{"idx": 1240, "target": 0, "func": "static uint64_t vmport_ioport_read ( void * opaque , hwaddr addr , unsigned size ) {\n VMPortState * s = opaque ;\n CPUState * cs = current_cpu ;\n X86CPU * cpu = X86_CPU ( cs ) ;\n CPUX86State * env = & cpu -> env ;\n unsigned char command ;\n uint32_t eax ;\n cpu_synchronize_state ( cs ) ;\n eax = env -> regs [ R_EAX ] ;\n if ( eax != VMPORT_MAGIC ) return eax ;\n command = env -> regs [ R_ECX ] ;\n if ( command >= VMPORT_ENTRIES ) return eax ;\n if ( ! s -> func [ command ] ) {\n # ifdef VMPORT_DEBUG fprintf ( stderr , \"vmport: unknown command %x\\n\" , command ) ;\n # endif return eax ;\n }\n return s -> func [ command ] ( s -> opaque [ command ] , addr ) ;\n }"}
{"idx": 1241, "target": 0, "func": "static int dissect_h225_SEQUENCE_OF_PartyNumber ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_SEQUENCE_OF_PartyNumber , SEQUENCE_OF_PartyNumber_sequence_of ) ;\n return offset ;\n }"}
{"idx": 1242, "target": 0, "func": "bool send_challenge ( connection_t * c ) {\n int len = RSA_size ( c -> rsa_key ) ;\n char buffer [ 2 * len + 1 ] ;\n c -> hischallenge = xrealloc ( c -> hischallenge , len ) ;\n if ( 1 != RAND_bytes ( ( unsigned char * ) c -> hischallenge , len ) ) {\n int err = ERR_get_error ( ) ;\n logger ( LOG_ERR , \"Failed to generate challenge (%s)\" , ERR_error_string ( err , NULL ) ) ;\n return false ;\n }\n bin2hex ( c -> hischallenge , buffer , len ) ;\n buffer [ len * 2 ] = '\\0' ;\n return send_request ( c , \"%d %s\" , CHALLENGE , buffer ) ;\n }"}
{"idx": 1243, "target": 0, "func": "static void end_pager ( ) {\n # ifdef USE_POPEN if ( ! opt_nopager ) pclose ( PAGER ) ;\n # endif }"}
{"idx": 1244, "target": 0, "func": "void vp9_iht4x4_add ( TX_TYPE tx_type , const tran_low_t * input , uint8_t * dest , int stride , int eob ) {\n if ( tx_type == DCT_DCT ) vp9_idct4x4_add ( input , dest , stride , eob ) ;\n else vp9_iht4x4_16_add ( input , dest , stride , tx_type ) ;\n }"}
{"idx": 1245, "target": 0, "func": "static void xmlLinkDeallocator ( xmlListPtr l , xmlLinkPtr lk ) {\n ( lk -> prev ) -> next = lk -> next ;\n ( lk -> next ) -> prev = lk -> prev ;\n if ( l -> linkDeallocator ) l -> linkDeallocator ( lk ) ;\n xmlFree ( lk ) ;\n }"}
{"idx": 1246, "target": 1, "func": "PyObject * PyString_DecodeEscape ( const char * s , Py_ssize_t len , const char * errors , Py_ssize_t unicode , const char * recode_encoding ) {\n int c ;\n char * p , * buf ;\n const char * end ;\n PyObject * v ;\n Py_ssize_t newlen = recode_encoding ? 4 * len : len ;\n v = PyString_FromStringAndSize ( ( char * ) NULL , newlen ) ;\n if ( v == NULL ) return NULL ;\n p = buf = PyString_AsString ( v ) ;\n end = s + len ;\n while ( s < end ) {\n if ( * s != '\\\\' ) {\n non_esc : # ifdef Py_USING_UNICODE if ( recode_encoding && ( * s & 0x80 ) ) {\n PyObject * u , * w ;\n char * r ;\n const char * t ;\n Py_ssize_t rn ;\n t = s ;\n while ( t < end && ( * t & 0x80 ) ) t ++ ;\n u = PyUnicode_DecodeUTF8 ( s , t - s , errors ) ;\n if ( ! u ) goto failed ;\n w = PyUnicode_AsEncodedString ( u , recode_encoding , errors ) ;\n Py_DECREF ( u ) ;\n if ( ! w ) goto failed ;\n assert ( PyString_Check ( w ) ) ;\n r = PyString_AS_STRING ( w ) ;\n rn = PyString_GET_SIZE ( w ) ;\n Py_MEMCPY ( p , r , rn ) ;\n p += rn ;\n Py_DECREF ( w ) ;\n s = t ;\n }\n else {\n * p ++ = * s ++ ;\n }\n # else * p ++ = * s ++ ;\n # endif continue ;\n }\n s ++ ;\n if ( s == end ) {\n PyErr_SetString ( PyExc_ValueError , \"Trailing \\\\ in string\" ) ;\n goto failed ;\n }\n switch ( * s ++ ) {\n case '\\n' : break ;\n case '\\\\' : * p ++ = '\\\\' ;\n break ;\n case '\\'' : * p ++ = '\\'' ;\n break ;\n case '\\\"' : * p ++ = '\\\"' ;\n break ;\n case 'b' : * p ++ = '\\b' ;\n break ;\n case 'f' : * p ++ = '\\014' ;\n break ;\n case 't' : * p ++ = '\\t' ;\n break ;\n case 'n' : * p ++ = '\\n' ;\n break ;\n case 'r' : * p ++ = '\\r' ;\n break ;\n case 'v' : * p ++ = '\\013' ;\n break ;\n case 'a' : * p ++ = '\\007' ;\n break ;\n case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : c = s [ - 1 ] - '0' ;\n if ( s < end && '0' <= * s && * s <= '7' ) {\n c = ( c << 3 ) + * s ++ - '0' ;\n if ( s < end && '0' <= * s && * s <= '7' ) c = ( c << 3 ) + * s ++ - '0' ;\n }\n * p ++ = c ;\n break ;\n case 'x' : if ( s + 1 < end && isxdigit ( Py_CHARMASK ( s [ 0 ] ) ) && isxdigit ( Py_CHARMASK ( s [ 1 ] ) ) ) {\n unsigned int x = 0 ;\n c = Py_CHARMASK ( * s ) ;\n s ++ ;\n if ( isdigit ( c ) ) x = c - '0' ;\n else if ( islower ( c ) ) x = 10 + c - 'a' ;\n else x = 10 + c - 'A' ;\n x = x << 4 ;\n c = Py_CHARMASK ( * s ) ;\n s ++ ;\n if ( isdigit ( c ) ) x += c - '0' ;\n else if ( islower ( c ) ) x += 10 + c - 'a' ;\n else x += 10 + c - 'A' ;\n * p ++ = x ;\n break ;\n }\n if ( ! errors || strcmp ( errors , \"strict\" ) == 0 ) {\n PyErr_SetString ( PyExc_ValueError , \"invalid \\\\x escape\" ) ;\n goto failed ;\n }\n if ( strcmp ( errors , \"replace\" ) == 0 ) {\n * p ++ = '?' ;\n }\n else if ( strcmp ( errors , \"ignore\" ) == 0 ) ;\n else {\n PyErr_Format ( PyExc_ValueError , \"decoding error;\n \" \"unknown error handling code: %.400s\" , errors ) ;\n goto failed ;\n }\n if ( s < end && isxdigit ( Py_CHARMASK ( s [ 0 ] ) ) ) s ++ ;\n break ;\n # ifndef Py_USING_UNICODE case 'u' : case 'U' : case 'N' : if ( unicode ) {\n PyErr_SetString ( PyExc_ValueError , \"Unicode escapes not legal \" \"when Unicode disabled\" ) ;\n goto failed ;\n }\n # endif default : * p ++ = '\\\\' ;\n s -- ;\n goto non_esc ;\n }\n }\n if ( p - buf < newlen ) _PyString_Resize ( & v , p - buf ) ;\n return v ;\n failed : Py_DECREF ( v ) ;\n return NULL ;\n }"}
{"idx": 1247, "target": 0, "func": "static int dissect_h225_BMPString_SIZE_1_512 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_BMPString ( tvb , offset , actx , tree , hf_index , 1 , 512 , FALSE ) ;\n return offset ;\n }"}
{"idx": 1248, "target": 0, "func": "static int inttgt_to_output ( int inttgt ) {\n int i ;\n for ( i = 0 ;\n i < ARRAY_SIZE ( inttgt_output ) ;\n i ++ ) {\n if ( inttgt_output [ i ] [ 0 ] == inttgt ) {\n return inttgt_output [ i ] [ 1 ] ;\n }\n }\n fprintf ( stderr , \"%s: unsupported inttgt %d\\n\" , __func__ , inttgt ) ;\n return OPENPIC_OUTPUT_INT ;\n }"}
{"idx": 1249, "target": 0, "func": "void TSFetchUserDataSet ( TSFetchSM fetch_sm , void * data ) {\n sdk_assert ( sdk_sanity_check_fetch_sm ( fetch_sm ) == TS_SUCCESS ) ;\n ( ( FetchSM * ) fetch_sm ) -> ext_set_user_data ( data ) ;\n }"}
{"idx": 1250, "target": 0, "func": "static hb_position_t hb_font_get_glyph_v_kerning_nil ( hb_font_t * font , void * font_data HB_UNUSED , hb_codepoint_t top_glyph , hb_codepoint_t bottom_glyph , void * user_data HB_UNUSED ) {\n if ( font -> parent ) return font -> parent_scale_y_distance ( font -> parent -> get_glyph_v_kerning ( top_glyph , bottom_glyph ) ) ;\n return 0 ;\n }"}
{"idx": 1251, "target": 0, "func": "static int32_t _appendKeywordsToLanguageTag ( const char * localeID , char * appendAt , int32_t capacity , UBool strict , UBool hadPosix , UErrorCode * status ) {\n char buf [ ULOC_KEYWORD_AND_VALUES_CAPACITY ] ;\n char attrBuf [ ULOC_KEYWORD_AND_VALUES_CAPACITY ] = {\n 0 }\n ;\n int32_t attrBufLength = 0 ;\n UEnumeration * keywordEnum = NULL ;\n int32_t reslen = 0 ;\n keywordEnum = uloc_openKeywords ( localeID , status ) ;\n if ( U_FAILURE ( * status ) && ! hadPosix ) {\n uenum_close ( keywordEnum ) ;\n return 0 ;\n }\n if ( keywordEnum != NULL || hadPosix ) {\n int32_t len ;\n const char * key ;\n ExtensionListEntry * firstExt = NULL ;\n ExtensionListEntry * ext ;\n AttributeListEntry * firstAttr = NULL ;\n AttributeListEntry * attr ;\n char * attrValue ;\n char extBuf [ ULOC_KEYWORD_AND_VALUES_CAPACITY ] ;\n char * pExtBuf = extBuf ;\n int32_t extBufCapacity = sizeof ( extBuf ) ;\n const char * bcpKey = nullptr , * bcpValue = nullptr ;\n UErrorCode tmpStatus = U_ZERO_ERROR ;\n int32_t keylen ;\n UBool isBcpUExt ;\n while ( TRUE ) {\n key = uenum_next ( keywordEnum , NULL , status ) ;\n if ( key == NULL ) {\n break ;\n }\n len = uloc_getKeywordValue ( localeID , key , buf , sizeof ( buf ) , & tmpStatus ) ;\n if ( U_FAILURE ( tmpStatus ) || tmpStatus == U_STRING_NOT_TERMINATED_WARNING ) {\n if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n break ;\n }\n tmpStatus = U_ZERO_ERROR ;\n continue ;\n }\n keylen = ( int32_t ) uprv_strlen ( key ) ;\n isBcpUExt = ( keylen > 1 ) ;\n if ( uprv_strcmp ( key , LOCALE_ATTRIBUTE_KEY ) == 0 ) {\n if ( len > 0 ) {\n int32_t i = 0 ;\n while ( TRUE ) {\n attrBufLength = 0 ;\n for ( ;\n i < len ;\n i ++ ) {\n if ( buf [ i ] != '-' ) {\n attrBuf [ attrBufLength ++ ] = buf [ i ] ;\n }\n else {\n i ++ ;\n break ;\n }\n }\n if ( attrBufLength > 0 ) {\n attrBuf [ attrBufLength ] = 0 ;\n }\n else if ( i >= len ) {\n break ;\n }\n attr = ( AttributeListEntry * ) uprv_malloc ( sizeof ( AttributeListEntry ) ) ;\n if ( attr == NULL ) {\n * status = U_MEMORY_ALLOCATION_ERROR ;\n break ;\n }\n attrValue = ( char * ) uprv_malloc ( attrBufLength + 1 ) ;\n if ( attrValue == NULL ) {\n * status = U_MEMORY_ALLOCATION_ERROR ;\n break ;\n }\n uprv_strcpy ( attrValue , attrBuf ) ;\n attr -> attribute = attrValue ;\n if ( ! _addAttributeToList ( & firstAttr , attr ) ) {\n uprv_free ( attr ) ;\n uprv_free ( attrValue ) ;\n if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n break ;\n }\n }\n }\n bcpKey = LOCALE_ATTRIBUTE_KEY ;\n bcpValue = NULL ;\n }\n }\n else if ( isBcpUExt ) {\n bcpKey = uloc_toUnicodeLocaleKey ( key ) ;\n if ( bcpKey == NULL ) {\n if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n break ;\n }\n continue ;\n }\n bcpValue = uloc_toUnicodeLocaleType ( key , buf ) ;\n if ( bcpValue == NULL ) {\n if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n break ;\n }\n continue ;\n }\n if ( bcpValue == buf ) {\n int32_t bcpValueLen = uprv_strlen ( bcpValue ) ;\n if ( bcpValueLen < extBufCapacity ) {\n uprv_strcpy ( pExtBuf , bcpValue ) ;\n T_CString_toLowerCase ( pExtBuf ) ;\n bcpValue = pExtBuf ;\n pExtBuf += ( bcpValueLen + 1 ) ;\n extBufCapacity -= ( bcpValueLen + 1 ) ;\n }\n else {\n if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n break ;\n }\n continue ;\n }\n }\n }\n else {\n if ( * key == PRIVATEUSE ) {\n if ( ! _isPrivateuseValueSubtags ( buf , len ) ) {\n if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n break ;\n }\n continue ;\n }\n }\n else {\n if ( ! _isExtensionSingleton ( key , keylen ) || ! _isExtensionSubtags ( buf , len ) ) {\n if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n break ;\n }\n continue ;\n }\n }\n bcpKey = key ;\n if ( ( len + 1 ) < extBufCapacity ) {\n uprv_memcpy ( pExtBuf , buf , len ) ;\n bcpValue = pExtBuf ;\n pExtBuf += len ;\n * pExtBuf = 0 ;\n pExtBuf ++ ;\n extBufCapacity -= ( len + 1 ) ;\n }\n else {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n break ;\n }\n }\n ext = ( ExtensionListEntry * ) uprv_malloc ( sizeof ( ExtensionListEntry ) ) ;\n if ( ext == NULL ) {\n * status = U_MEMORY_ALLOCATION_ERROR ;\n break ;\n }\n ext -> key = bcpKey ;\n ext -> value = bcpValue ;\n if ( ! _addExtensionToList ( & firstExt , ext , TRUE ) ) {\n uprv_free ( ext ) ;\n if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n break ;\n }\n }\n }\n if ( hadPosix ) {\n ext = ( ExtensionListEntry * ) uprv_malloc ( sizeof ( ExtensionListEntry ) ) ;\n if ( ext == NULL ) {\n * status = U_MEMORY_ALLOCATION_ERROR ;\n goto cleanup ;\n }\n ext -> key = POSIX_KEY ;\n ext -> value = POSIX_VALUE ;\n if ( ! _addExtensionToList ( & firstExt , ext , TRUE ) ) {\n uprv_free ( ext ) ;\n }\n }\n if ( U_SUCCESS ( * status ) && ( firstExt != NULL || firstAttr != NULL ) ) {\n UBool startLDMLExtension = FALSE ;\n for ( ext = firstExt ;\n ext ;\n ext = ext -> next ) {\n if ( ! startLDMLExtension && uprv_strlen ( ext -> key ) > 1 ) {\n if ( reslen < capacity ) {\n * ( appendAt + reslen ) = SEP ;\n }\n reslen ++ ;\n if ( reslen < capacity ) {\n * ( appendAt + reslen ) = LDMLEXT ;\n }\n reslen ++ ;\n startLDMLExtension = TRUE ;\n }\n if ( uprv_strcmp ( ext -> key , LOCALE_ATTRIBUTE_KEY ) == 0 ) {\n for ( attr = firstAttr ;\n attr ;\n attr = attr -> next ) {\n if ( reslen < capacity ) {\n * ( appendAt + reslen ) = SEP ;\n }\n reslen ++ ;\n len = ( int32_t ) uprv_strlen ( attr -> attribute ) ;\n if ( reslen < capacity ) {\n uprv_memcpy ( appendAt + reslen , attr -> attribute , uprv_min ( len , capacity - reslen ) ) ;\n }\n reslen += len ;\n }\n }\n else {\n if ( reslen < capacity ) {\n * ( appendAt + reslen ) = SEP ;\n }\n reslen ++ ;\n len = ( int32_t ) uprv_strlen ( ext -> key ) ;\n if ( reslen < capacity ) {\n uprv_memcpy ( appendAt + reslen , ext -> key , uprv_min ( len , capacity - reslen ) ) ;\n }\n reslen += len ;\n if ( reslen < capacity ) {\n * ( appendAt + reslen ) = SEP ;\n }\n reslen ++ ;\n len = ( int32_t ) uprv_strlen ( ext -> value ) ;\n if ( reslen < capacity ) {\n uprv_memcpy ( appendAt + reslen , ext -> value , uprv_min ( len , capacity - reslen ) ) ;\n }\n reslen += len ;\n }\n }\n }\n cleanup : ext = firstExt ;\n while ( ext != NULL ) {\n ExtensionListEntry * tmpExt = ext -> next ;\n uprv_free ( ext ) ;\n ext = tmpExt ;\n }\n attr = firstAttr ;\n while ( attr != NULL ) {\n AttributeListEntry * tmpAttr = attr -> next ;\n char * pValue = ( char * ) attr -> attribute ;\n uprv_free ( pValue ) ;\n uprv_free ( attr ) ;\n attr = tmpAttr ;\n }\n uenum_close ( keywordEnum ) ;\n if ( U_FAILURE ( * status ) ) {\n return 0 ;\n }\n }\n return u_terminateChars ( appendAt , capacity , reslen , status ) ;\n }"}
{"idx": 1252, "target": 0, "func": "static inline int is_real_num_char ( int c ) {\n return ( c >= '0' && c <= '9' ) || c == 'e' || c == 'E' || c == '+' || c == '-' || c == '.' ;\n }"}
{"idx": 1253, "target": 0, "func": "static uint16_t U_CALLCONV uprv_readSwapUInt16 ( uint16_t x ) {\n return ( uint16_t ) ( ( x << 8 ) | ( x >> 8 ) ) ;\n }"}
{"idx": 1254, "target": 0, "func": "int ff_wmv2_decode_mb ( MpegEncContext * s , int16_t block [ 6 ] [ 64 ] ) {\n Wmv2Context * const w = ( Wmv2Context * ) s ;\n int cbp , code , i ;\n uint8_t * coded_val ;\n if ( w -> j_type ) return 0 ;\n if ( s -> pict_type == AV_PICTURE_TYPE_P ) {\n if ( IS_SKIP ( s -> current_picture . mb_type [ s -> mb_y * s -> mb_stride + s -> mb_x ] ) ) {\n s -> mb_intra = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) s -> block_last_index [ i ] = - 1 ;\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = 0 ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = 0 ;\n s -> mb_skipped = 1 ;\n w -> hshift = 0 ;\n return 0 ;\n }\n code = get_vlc2 ( & s -> gb , ff_mb_non_intra_vlc [ w -> cbp_table_index ] . table , MB_NON_INTRA_VLC_BITS , 3 ) ;\n if ( code < 0 ) return - 1 ;\n s -> mb_intra = ( ~ code & 0x40 ) >> 6 ;\n cbp = code & 0x3f ;\n }\n else {\n s -> mb_intra = 1 ;\n code = get_vlc2 ( & s -> gb , ff_msmp4_mb_i_vlc . table , MB_INTRA_VLC_BITS , 2 ) ;\n if ( code < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"II-cbp illegal at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n cbp = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n int val = ( ( code >> ( 5 - i ) ) & 1 ) ;\n if ( i < 4 ) {\n int pred = ff_msmpeg4_coded_block_pred ( s , i , & coded_val ) ;\n val = val ^ pred ;\n * coded_val = val ;\n }\n cbp |= val << ( 5 - i ) ;\n }\n }\n if ( ! s -> mb_intra ) {\n int mx , my ;\n wmv2_pred_motion ( w , & mx , & my ) ;\n if ( cbp ) {\n s -> dsp . clear_blocks ( s -> block [ 0 ] ) ;\n if ( s -> per_mb_rl_table ) {\n s -> rl_table_index = decode012 ( & s -> gb ) ;\n s -> rl_chroma_table_index = s -> rl_table_index ;\n }\n if ( w -> abt_flag && w -> per_mb_abt ) {\n w -> per_block_abt = get_bits1 ( & s -> gb ) ;\n if ( ! w -> per_block_abt ) w -> abt_type = decode012 ( & s -> gb ) ;\n }\n else w -> per_block_abt = 0 ;\n }\n if ( wmv2_decode_motion ( w , & mx , & my ) < 0 ) return - 1 ;\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = mx ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = my ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( wmv2_decode_inter_block ( w , block [ i ] , i , ( cbp >> ( 5 - i ) ) & 1 ) < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"\\nerror while decoding inter block: %d x %d (%d)\\n\" , s -> mb_x , s -> mb_y , i ) ;\n return - 1 ;\n }\n }\n }\n else {\n if ( s -> pict_type == AV_PICTURE_TYPE_P ) av_dlog ( s -> avctx , \"%d%d \" , s -> inter_intra_pred , cbp ) ;\n av_dlog ( s -> avctx , \"I at %d %d %d %06X\\n\" , s -> mb_x , s -> mb_y , ( ( cbp & 3 ) ? 1 : 0 ) + ( ( cbp & 0x3C ) ? 2 : 0 ) , show_bits ( & s -> gb , 24 ) ) ;\n s -> ac_pred = get_bits1 ( & s -> gb ) ;\n if ( s -> inter_intra_pred ) {\n s -> h263_aic_dir = get_vlc2 ( & s -> gb , ff_inter_intra_vlc . table , INTER_INTRA_VLC_BITS , 1 ) ;\n av_dlog ( s -> avctx , \"%d%d %d %d/\" , s -> ac_pred , s -> h263_aic_dir , s -> mb_x , s -> mb_y ) ;\n }\n if ( s -> per_mb_rl_table && cbp ) {\n s -> rl_table_index = decode012 ( & s -> gb ) ;\n s -> rl_chroma_table_index = s -> rl_table_index ;\n }\n s -> dsp . clear_blocks ( s -> block [ 0 ] ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( ff_msmpeg4_decode_block ( s , block [ i ] , i , ( cbp >> ( 5 - i ) ) & 1 , NULL ) < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"\\nerror while decoding intra block: %d x %d (%d)\\n\" , s -> mb_x , s -> mb_y , i ) ;\n return - 1 ;\n }\n }\n }\n return 0 ;\n }"}
{"idx": 1255, "target": 1, "func": "static void fdct8 ( const int16_t * input , int16_t * output ) {\n int s0 , s1 , s2 , s3 , s4 , s5 , s6 , s7 ;\n int t0 , t1 , t2 , t3 ;\n int x0 , x1 , x2 , x3 ;\n s0 = input [ 0 ] + input [ 7 ] ;\n s1 = input [ 1 ] + input [ 6 ] ;\n s2 = input [ 2 ] + input [ 5 ] ;\n s3 = input [ 3 ] + input [ 4 ] ;\n s4 = input [ 3 ] - input [ 4 ] ;\n s5 = input [ 2 ] - input [ 5 ] ;\n s6 = input [ 1 ] - input [ 6 ] ;\n s7 = input [ 0 ] - input [ 7 ] ;\n x0 = s0 + s3 ;\n x1 = s1 + s2 ;\n x2 = s1 - s2 ;\n x3 = s0 - s3 ;\n t0 = ( x0 + x1 ) * cospi_16_64 ;\n t1 = ( x0 - x1 ) * cospi_16_64 ;\n t2 = x2 * cospi_24_64 + x3 * cospi_8_64 ;\n t3 = - x2 * cospi_8_64 + x3 * cospi_24_64 ;\n output [ 0 ] = fdct_round_shift ( t0 ) ;\n output [ 2 ] = fdct_round_shift ( t2 ) ;\n output [ 4 ] = fdct_round_shift ( t1 ) ;\n output [ 6 ] = fdct_round_shift ( t3 ) ;\n t0 = ( s6 - s5 ) * cospi_16_64 ;\n t1 = ( s6 + s5 ) * cospi_16_64 ;\n t2 = fdct_round_shift ( t0 ) ;\n t3 = fdct_round_shift ( t1 ) ;\n x0 = s4 + t2 ;\n x1 = s4 - t2 ;\n x2 = s7 - t3 ;\n x3 = s7 + t3 ;\n t0 = x0 * cospi_28_64 + x3 * cospi_4_64 ;\n t1 = x1 * cospi_12_64 + x2 * cospi_20_64 ;\n t2 = x2 * cospi_12_64 + x1 * - cospi_20_64 ;\n t3 = x3 * cospi_28_64 + x0 * - cospi_4_64 ;\n output [ 1 ] = fdct_round_shift ( t0 ) ;\n output [ 3 ] = fdct_round_shift ( t2 ) ;\n output [ 5 ] = fdct_round_shift ( t1 ) ;\n output [ 7 ] = fdct_round_shift ( t3 ) ;\n }"}
{"idx": 1256, "target": 0, "func": "int vp9_mv_bit_cost ( const MV * mv , const MV * ref , const int * mvjcost , int * mvcost [ 2 ] , int weight ) {\n const MV diff = {\n mv -> row - ref -> row , mv -> col - ref -> col }\n ;\n return ROUND_POWER_OF_TWO ( mv_cost ( & diff , mvjcost , mvcost ) * weight , 7 ) ;\n }"}
{"idx": 1257, "target": 0, "func": "static uint32_t e1000e_mac_low ## num ## _read ( E1000ECore * core , int index ) {\n return core -> mac [ index ] & ( BIT ( num ) - 1 ) ;\n }\n # define E1000E_LOW_BITS_READ ( num ) e1000e_mac_low ## num ## _read E1000E_LOW_BITS_READ_FUNC ( 4 ) ;\n E1000E_LOW_BITS_READ_FUNC ( 6 ) ;\n E1000E_LOW_BITS_READ_FUNC ( 11 ) ;\n E1000E_LOW_BITS_READ_FUNC ( 13 )"}
{"idx": 1258, "target": 0, "func": "static bool find_cgroup_subsystems ( char * * * kernel_subsystems ) {\n FILE * proc_cgroups ;\n bool bret = false ;\n char * line = NULL ;\n size_t sz = 0 ;\n size_t kernel_subsystems_count = 0 ;\n size_t kernel_subsystems_capacity = 0 ;\n int r ;\n proc_cgroups = fopen_cloexec ( \"/proc/cgroups\" , \"r\" ) ;\n if ( ! proc_cgroups ) return false ;\n while ( getline ( & line , & sz , proc_cgroups ) != - 1 ) {\n char * tab1 ;\n char * tab2 ;\n int hierarchy_number ;\n if ( line [ 0 ] == '#' ) continue ;\n if ( ! line [ 0 ] ) continue ;\n tab1 = strchr ( line , '\\t' ) ;\n if ( ! tab1 ) continue ;\n * tab1 ++ = '\\0' ;\n tab2 = strchr ( tab1 , '\\t' ) ;\n if ( ! tab2 ) continue ;\n * tab2 = '\\0' ;\n tab2 = NULL ;\n hierarchy_number = strtoul ( tab1 , & tab2 , 10 ) ;\n if ( ! tab2 || * tab2 ) continue ;\n ( void ) hierarchy_number ;\n r = lxc_grow_array ( ( void * * * ) kernel_subsystems , & kernel_subsystems_capacity , kernel_subsystems_count + 1 , 12 ) ;\n if ( r < 0 ) goto out ;\n ( * kernel_subsystems ) [ kernel_subsystems_count ] = strdup ( line ) ;\n if ( ! ( * kernel_subsystems ) [ kernel_subsystems_count ] ) goto out ;\n kernel_subsystems_count ++ ;\n }\n bret = true ;\n out : fclose ( proc_cgroups ) ;\n free ( line ) ;\n return bret ;\n }"}
{"idx": 1259, "target": 0, "func": "guint16 de_time_zone ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint8 oct ;\n guint32 curr_offset ;\n char sign ;\n curr_offset = offset ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n sign = ( oct & 0x08 ) ? '-' : '+' ;\n oct = ( oct >> 4 ) + ( oct & 0x07 ) * 10 ;\n proto_tree_add_uint_format_value ( tree , hf_gsm_a_dtap_timezone , tvb , curr_offset , 1 , oct , \"GMT %c %d hours %d minutes\" , sign , oct / 4 , oct % 4 * 15 ) ;\n curr_offset ++ ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 1260, "target": 0, "func": "static void selinux_task_getsecid ( struct task_struct * p , u32 * secid ) {\n * secid = task_sid ( p ) ;\n }"}
{"idx": 1261, "target": 0, "func": "static int dissect_h245_OpenLogicalChannelConfirm ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_OpenLogicalChannelConfirm , OpenLogicalChannelConfirm_sequence ) ;\n # line 560 \"../../asn1/h245/h245.cnf\" if ( h245_pi != NULL ) h245_pi -> msg_type = H245_OpenLogChnCnf ;\n return offset ;\n }"}
{"idx": 1262, "target": 0, "func": "static void dumpdbl ( FILE * cfff , double d ) {\n if ( d - rint ( d ) > - .00001 && d - rint ( d ) < .00001 ) dumpint ( cfff , ( int ) d ) ;\n else {\n char buffer [ 20 ] , * pt ;\n int sofar , n , odd ;\n sprintf ( buffer , \"%g\" , d ) ;\n sofar = 0 ;\n odd = true ;\n putc ( 30 , cfff ) ;\n for ( pt = buffer ;\n * pt ;\n ++ pt ) {\n if ( isdigit ( * pt ) ) n = * pt - '0' ;\n else if ( * pt == '.' ) n = 0xa ;\n else if ( * pt == '-' ) n = 0xe ;\n else if ( ( * pt == 'E' || * pt == 'e' ) && pt [ 1 ] == '-' ) {\n n = 0xc ;\n ++ pt ;\n }\n else if ( * pt == 'E' || * pt == 'e' ) n = 0xb ;\n else n = 0 ;\n if ( odd ) {\n sofar = n << 4 ;\n odd = false ;\n }\n else {\n putc ( sofar | n , cfff ) ;\n sofar = 0 ;\n odd = true ;\n }\n }\n if ( sofar == 0 ) putc ( 0xff , cfff ) ;\n else putc ( sofar | 0xf , cfff ) ;\n }\n }"}
{"idx": 1263, "target": 0, "func": "static int inode_has_perm ( const struct cred * cred , struct inode * inode , u32 perms , struct common_audit_data * adp ) {\n struct inode_security_struct * isec ;\n u32 sid ;\n validate_creds ( cred ) ;\n if ( unlikely ( IS_PRIVATE ( inode ) ) ) return 0 ;\n sid = cred_sid ( cred ) ;\n isec = inode -> i_security ;\n return avc_has_perm ( sid , isec -> sid , isec -> sclass , perms , adp ) ;\n }"}
{"idx": 1264, "target": 0, "func": "void ps2_write_keyboard ( void * opaque , int val ) {\n PS2KbdState * s = ( PS2KbdState * ) opaque ;\n trace_ps2_write_keyboard ( opaque , val ) ;\n switch ( s -> common . write_cmd ) {\n default : case - 1 : switch ( val ) {\n case 0x00 : ps2_queue ( & s -> common , KBD_REPLY_ACK ) ;\n break ;\n case 0x05 : ps2_queue ( & s -> common , KBD_REPLY_RESEND ) ;\n break ;\n case KBD_CMD_GET_ID : ps2_queue ( & s -> common , KBD_REPLY_ACK ) ;\n ps2_queue ( & s -> common , KBD_REPLY_ID ) ;\n if ( s -> translate ) ps2_queue ( & s -> common , 0x41 ) ;\n else ps2_queue ( & s -> common , 0x83 ) ;\n break ;\n case KBD_CMD_ECHO : ps2_queue ( & s -> common , KBD_CMD_ECHO ) ;\n break ;\n case KBD_CMD_ENABLE : s -> scan_enabled = 1 ;\n ps2_queue ( & s -> common , KBD_REPLY_ACK ) ;\n break ;\n case KBD_CMD_SCANCODE : case KBD_CMD_SET_LEDS : case KBD_CMD_SET_RATE : s -> common . write_cmd = val ;\n ps2_queue ( & s -> common , KBD_REPLY_ACK ) ;\n break ;\n case KBD_CMD_RESET_DISABLE : ps2_reset_keyboard ( s ) ;\n s -> scan_enabled = 0 ;\n ps2_queue ( & s -> common , KBD_REPLY_ACK ) ;\n break ;\n case KBD_CMD_RESET_ENABLE : ps2_reset_keyboard ( s ) ;\n s -> scan_enabled = 1 ;\n ps2_queue ( & s -> common , KBD_REPLY_ACK ) ;\n break ;\n case KBD_CMD_RESET : ps2_reset_keyboard ( s ) ;\n ps2_queue ( & s -> common , KBD_REPLY_ACK ) ;\n ps2_queue ( & s -> common , KBD_REPLY_POR ) ;\n break ;\n default : ps2_queue ( & s -> common , KBD_REPLY_RESEND ) ;\n break ;\n }\n break ;\n case KBD_CMD_SCANCODE : if ( val == 0 ) {\n ps2_queue ( & s -> common , KBD_REPLY_ACK ) ;\n ps2_put_keycode ( s , s -> scancode_set ) ;\n }\n else if ( val >= 1 && val <= 3 ) {\n s -> scancode_set = val ;\n ps2_queue ( & s -> common , KBD_REPLY_ACK ) ;\n }\n else {\n ps2_queue ( & s -> common , KBD_REPLY_RESEND ) ;\n }\n s -> common . write_cmd = - 1 ;\n break ;\n case KBD_CMD_SET_LEDS : ps2_set_ledstate ( s , val ) ;\n ps2_queue ( & s -> common , KBD_REPLY_ACK ) ;\n s -> common . write_cmd = - 1 ;\n break ;\n case KBD_CMD_SET_RATE : ps2_queue ( & s -> common , KBD_REPLY_ACK ) ;\n s -> common . write_cmd = - 1 ;\n break ;\n }\n }"}
{"idx": 1265, "target": 0, "func": "static void rfbProcessClientProtocolVersion ( rfbClientPtr cl ) {\n rfbProtocolVersionMsg pv ;\n int n , major_ , minor_ ;\n if ( ( n = rfbReadExact ( cl , pv , sz_rfbProtocolVersionMsg ) ) <= 0 ) {\n if ( n == 0 ) rfbLog ( \"rfbProcessClientProtocolVersion: client gone\\n\" ) ;\n else rfbLogPerror ( \"rfbProcessClientProtocolVersion: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n pv [ sz_rfbProtocolVersionMsg ] = 0 ;\n if ( sscanf ( pv , rfbProtocolVersionFormat , & major_ , & minor_ ) != 2 ) {\n rfbErr ( \"rfbProcessClientProtocolVersion: not a valid RFB client: %s\\n\" , pv ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n rfbLog ( \"Client Protocol Version %d.%d\\n\" , major_ , minor_ ) ;\n if ( major_ != rfbProtocolMajorVersion ) {\n rfbErr ( \"RFB protocol version mismatch - server %d.%d, client %d.%d\" , cl -> screen -> protocolMajorVersion , cl -> screen -> protocolMinorVersion , major_ , minor_ ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n cl -> protocolMajorVersion = major_ ;\n cl -> protocolMinorVersion = minor_ ;\n rfbLog ( \"Protocol version sent %d.%d, using %d.%d\\n\" , major_ , minor_ , rfbProtocolMajorVersion , cl -> protocolMinorVersion ) ;\n rfbAuthNewClient ( cl ) ;\n }"}
{"idx": 1266, "target": 0, "func": "void * TSContDataGet ( TSCont contp ) {\n sdk_assert ( sdk_sanity_check_iocore_structure ( contp ) == TS_SUCCESS ) ;\n INKContInternal * i = ( INKContInternal * ) contp ;\n return i -> mdata ;\n }"}
{"idx": 1267, "target": 0, "func": "static void add_preferred_base ( unsigned char * sha1 ) {\n struct pbase_tree * it ;\n void * data ;\n unsigned long size ;\n unsigned char tree_sha1 [ 20 ] ;\n if ( window <= num_preferred_base ++ ) return ;\n data = read_object_with_reference ( sha1 , tree_type , & size , tree_sha1 ) ;\n if ( ! data ) return ;\n for ( it = pbase_tree ;\n it ;\n it = it -> next ) {\n if ( ! hashcmp ( it -> pcache . sha1 , tree_sha1 ) ) {\n free ( data ) ;\n return ;\n }\n }\n it = xcalloc ( 1 , sizeof ( * it ) ) ;\n it -> next = pbase_tree ;\n pbase_tree = it ;\n hashcpy ( it -> pcache . sha1 , tree_sha1 ) ;\n it -> pcache . tree_data = data ;\n it -> pcache . tree_size = size ;\n }"}
{"idx": 1268, "target": 1, "func": "static int chacha20_poly1305_ctrl ( EVP_CIPHER_CTX * ctx , int type , int arg , void * ptr ) {\n EVP_CHACHA_AEAD_CTX * actx = aead_data ( ctx ) ;\n switch ( type ) {\n case EVP_CTRL_INIT : if ( actx == NULL ) actx = ctx -> cipher_data = OPENSSL_zalloc ( sizeof ( * actx ) + Poly1305_ctx_size ( ) ) ;\n if ( actx == NULL ) {\n EVPerr ( EVP_F_CHACHA20_POLY1305_CTRL , EVP_R_INITIALIZATION_ERROR ) ;\n return 0 ;\n }\n actx -> len . aad = 0 ;\n actx -> len . text = 0 ;\n actx -> aad = 0 ;\n actx -> mac_inited = 0 ;\n actx -> tag_len = 0 ;\n actx -> nonce_len = 12 ;\n actx -> tls_payload_length = NO_TLS_PAYLOAD_LENGTH ;\n return 1 ;\n case EVP_CTRL_COPY : if ( actx ) {\n EVP_CIPHER_CTX * dst = ( EVP_CIPHER_CTX * ) ptr ;\n dst -> cipher_data = OPENSSL_memdup ( actx , sizeof ( * actx ) + Poly1305_ctx_size ( ) ) ;\n if ( dst -> cipher_data == NULL ) {\n EVPerr ( EVP_F_CHACHA20_POLY1305_CTRL , EVP_R_COPY_ERROR ) ;\n return 0 ;\n }\n }\n return 1 ;\n case EVP_CTRL_AEAD_SET_IVLEN : if ( arg <= 0 || arg > CHACHA_CTR_SIZE ) return 0 ;\n actx -> nonce_len = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_IV_FIXED : if ( arg != 12 ) return 0 ;\n actx -> nonce [ 0 ] = actx -> key . counter [ 1 ] = CHACHA_U8TOU32 ( ( unsigned char * ) ptr ) ;\n actx -> nonce [ 1 ] = actx -> key . counter [ 2 ] = CHACHA_U8TOU32 ( ( unsigned char * ) ptr + 4 ) ;\n actx -> nonce [ 2 ] = actx -> key . counter [ 3 ] = CHACHA_U8TOU32 ( ( unsigned char * ) ptr + 8 ) ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_TAG : if ( arg <= 0 || arg > POLY1305_BLOCK_SIZE ) return 0 ;\n if ( ptr != NULL ) {\n memcpy ( actx -> tag , ptr , arg ) ;\n actx -> tag_len = arg ;\n }\n return 1 ;\n case EVP_CTRL_AEAD_GET_TAG : if ( arg <= 0 || arg > POLY1305_BLOCK_SIZE || ! ctx -> encrypt ) return 0 ;\n memcpy ( ptr , actx -> tag , arg ) ;\n return 1 ;\n case EVP_CTRL_AEAD_TLS1_AAD : if ( arg != EVP_AEAD_TLS1_AAD_LEN ) return 0 ;\n {\n unsigned int len ;\n unsigned char * aad = ptr , temp [ POLY1305_BLOCK_SIZE ] ;\n len = aad [ EVP_AEAD_TLS1_AAD_LEN - 2 ] << 8 | aad [ EVP_AEAD_TLS1_AAD_LEN - 1 ] ;\n if ( ! ctx -> encrypt ) {\n len -= POLY1305_BLOCK_SIZE ;\n memcpy ( temp , aad , EVP_AEAD_TLS1_AAD_LEN - 2 ) ;\n aad = temp ;\n temp [ EVP_AEAD_TLS1_AAD_LEN - 2 ] = ( unsigned char ) ( len >> 8 ) ;\n temp [ EVP_AEAD_TLS1_AAD_LEN - 1 ] = ( unsigned char ) len ;\n }\n actx -> tls_payload_length = len ;\n actx -> key . counter [ 1 ] = actx -> nonce [ 0 ] ;\n actx -> key . counter [ 2 ] = actx -> nonce [ 1 ] ^ CHACHA_U8TOU32 ( aad ) ;\n actx -> key . counter [ 3 ] = actx -> nonce [ 2 ] ^ CHACHA_U8TOU32 ( aad + 4 ) ;\n actx -> mac_inited = 0 ;\n chacha20_poly1305_cipher ( ctx , NULL , aad , EVP_AEAD_TLS1_AAD_LEN ) ;\n return POLY1305_BLOCK_SIZE ;\n }\n case EVP_CTRL_AEAD_SET_MAC_KEY : return 1 ;\n default : return - 1 ;\n }\n }"}
{"idx": 1269, "target": 0, "func": "static void mark_desktop_file_executable ( CommonJob * common , GCancellable * cancellable , GFile * file , gboolean interactive ) {\n GError * error ;\n guint32 current_perms , new_perms ;\n int response ;\n GFileInfo * info ;\n retry : error = NULL ;\n info = g_file_query_info ( file , G_FILE_ATTRIBUTE_STANDARD_TYPE \",\" G_FILE_ATTRIBUTE_UNIX_MODE , G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS , common -> cancellable , & error ) ;\n if ( info == NULL ) {\n if ( interactive ) {\n response = run_error ( common , g_strdup ( _ ( \"Unable to mark launcher trusted (executable)\" ) ) , error -> message , NULL , FALSE , CANCEL , RETRY , NULL ) ;\n }\n else {\n response = 0 ;\n }\n if ( response == 0 || response == GTK_RESPONSE_DELETE_EVENT ) {\n abort_job ( common ) ;\n }\n else if ( response == 1 ) {\n goto retry ;\n }\n else {\n g_assert_not_reached ( ) ;\n }\n goto out ;\n }\n if ( g_file_info_has_attribute ( info , G_FILE_ATTRIBUTE_UNIX_MODE ) ) {\n current_perms = g_file_info_get_attribute_uint32 ( info , G_FILE_ATTRIBUTE_UNIX_MODE ) ;\n new_perms = current_perms | S_IXGRP | S_IXUSR | S_IXOTH ;\n if ( ( current_perms != new_perms ) && ! g_file_set_attribute_uint32 ( file , G_FILE_ATTRIBUTE_UNIX_MODE , new_perms , G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS , common -> cancellable , & error ) ) {\n g_object_unref ( info ) ;\n if ( interactive ) {\n response = run_error ( common , g_strdup ( _ ( \"Unable to mark launcher trusted (executable)\" ) ) , error -> message , NULL , FALSE , CANCEL , RETRY , NULL ) ;\n }\n else {\n response = 0 ;\n }\n if ( response == 0 || response == GTK_RESPONSE_DELETE_EVENT ) {\n abort_job ( common ) ;\n }\n else if ( response == 1 ) {\n goto retry ;\n }\n else {\n g_assert_not_reached ( ) ;\n }\n goto out ;\n }\n }\n g_object_unref ( info ) ;\n out : ;\n }"}
{"idx": 1270, "target": 0, "func": "static MB_MODE_INFO * set_offsets ( VP9_COMMON * const cm , MACROBLOCKD * const xd , const TileInfo * const tile , BLOCK_SIZE bsize , int mi_row , int mi_col ) {\n const int bw = num_8x8_blocks_wide_lookup [ bsize ] ;\n const int bh = num_8x8_blocks_high_lookup [ bsize ] ;\n const int x_mis = MIN ( bw , cm -> mi_cols - mi_col ) ;\n const int y_mis = MIN ( bh , cm -> mi_rows - mi_row ) ;\n const int offset = mi_row * cm -> mi_stride + mi_col ;\n int x , y ;\n xd -> mi = cm -> mi_grid_visible + offset ;\n xd -> mi [ 0 ] = & cm -> mi [ offset ] ;\n xd -> mi [ 0 ] -> mbmi . sb_type = bsize ;\n for ( y = 0 ;\n y < y_mis ;\n ++ y ) for ( x = ! y ;\n x < x_mis ;\n ++ x ) xd -> mi [ y * cm -> mi_stride + x ] = xd -> mi [ 0 ] ;\n set_skip_context ( xd , mi_row , mi_col ) ;\n set_mi_row_col ( xd , tile , mi_row , bh , mi_col , bw , cm -> mi_rows , cm -> mi_cols ) ;\n vp9_setup_dst_planes ( xd -> plane , get_frame_new_buffer ( cm ) , mi_row , mi_col ) ;\n return & xd -> mi [ 0 ] -> mbmi ;\n }"}
{"idx": 1271, "target": 0, "func": "int parse_RANGEBOUNDARY ( tvbuff_t * tvb , packet_info * pinfo , int offset , proto_tree * parent_tree , proto_tree * pad_tree , const char * fmt , ... ) {\n guint32 ulType ;\n guint8 labelPresent ;\n proto_item * item ;\n proto_tree * tree ;\n const char * txt ;\n struct CBaseStorageVariant prval ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_RANGEBOUNDARY , & item , txt ) ;\n ulType = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_mswsp_rangeboundry_ultype , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n proto_item_append_text ( item , \": Type 0x%08x\" , ulType ) ;\n offset += 4 ;\n ZERO_STRUCT ( prval ) ;\n offset = parse_CBaseStorageVariant ( tvb , pinfo , offset , tree , pad_tree , & prval , \"prVal\" ) ;\n labelPresent = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_mswsp_rangeboundry_labelpresent , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 1 ;\n if ( labelPresent ) {\n guint32 ccLabel ;\n const guint8 * label ;\n offset = parse_padding ( tvb , offset , 4 , pad_tree , \"paddingLabelPresent\" ) ;\n ccLabel = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_item_ret_uint ( tree , hf_mswsp_rangeboundry_cclabel , tvb , offset , 4 , ENC_LITTLE_ENDIAN , & ccLabel ) ;\n offset += 4 ;\n proto_tree_add_item_ret_string ( tree , hf_mswsp_rangeboundry_label , tvb , offset , 2 * ccLabel , ENC_LITTLE_ENDIAN | ENC_UCS_2 , wmem_packet_scope ( ) , & label ) ;\n proto_item_append_text ( item , \" Label: \\\"%s\\\"\" , label ) ;\n offset += 2 * ccLabel ;\n }\n proto_item_append_text ( item , \" Val: %s\" , str_CBaseStorageVariant ( & prval , TRUE ) ) ;\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 1272, "target": 0, "func": "const char * qemuAliasDiskDriveSkipPrefix ( const char * dev_name ) {\n if ( STRPREFIX ( dev_name , QEMU_DRIVE_HOST_PREFIX ) ) dev_name += strlen ( QEMU_DRIVE_HOST_PREFIX ) ;\n return dev_name ;\n }"}
{"idx": 1273, "target": 0, "func": "static const main_extcomp * main_get_compressor ( const char * ident ) {\n const main_extcomp * ext = main_ident_compressor ( ident ) ;\n if ( ext == NULL ) {\n if ( ! option_quiet ) {\n XPR ( NT \"warning: cannot recompress output: \" \"unrecognized external compression ID: %s\\n\" , ident ) ;\n }\n return NULL ;\n }\n else if ( ! EXTERNAL_COMPRESSION ) {\n if ( ! option_quiet ) {\n XPR ( NT \"warning: external support not compiled: \" \"original input was compressed: %s\\n\" , ext -> recomp_cmdname ) ;\n }\n return NULL ;\n }\n else {\n return ext ;\n }\n }"}
{"idx": 1274, "target": 0, "func": "static int ReadDiracPictureNumber ( uint32_t * p_picnum , block_t * p_block ) {\n uint32_t u_pos = 4 ;\n while ( u_pos + 13 < p_block -> i_buffer ) {\n if ( p_block -> p_buffer [ u_pos ] & 0x08 ) {\n * p_picnum = GetDWBE ( p_block -> p_buffer + u_pos + 9 ) ;\n return 1 ;\n }\n uint32_t u_npo = GetDWBE ( p_block -> p_buffer + u_pos + 1 ) ;\n assert ( u_npo <= UINT32_MAX - u_pos ) ;\n if ( u_npo == 0 ) u_npo = 13 ;\n u_pos += u_npo ;\n }\n return 0 ;\n }"}
{"idx": 1275, "target": 0, "func": "SPL_METHOD ( SplFileObject , fgetc ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char buf [ 2 ] ;\n int result ;\n spl_filesystem_file_free_line ( intern TSRMLS_CC ) ;\n result = php_stream_getc ( intern -> u . file . stream ) ;\n if ( result == EOF ) {\n RETVAL_FALSE ;\n }\n else {\n if ( result == '\\n' ) {\n intern -> u . file . current_line_num ++ ;\n }\n buf [ 0 ] = result ;\n buf [ 1 ] = '\\0' ;\n RETURN_STRINGL ( buf , 1 , 1 ) ;\n }\n }"}
{"idx": 1276, "target": 0, "func": "void proto_register_t38 ( void ) {\n static hf_register_info hf [ ] = {\n # include \"packet-t38-hfarr.c\" {\n & hf_t38_setup , {\n \"Stream setup\" , \"t38.setup\" , FT_STRING , BASE_NONE , NULL , 0x0 , \"Stream setup, method and frame number\" , HFILL }\n }\n , {\n & hf_t38_setup_frame , {\n \"Stream frame\" , \"t38.setup-frame\" , FT_FRAMENUM , BASE_NONE , NULL , 0x0 , \"Frame that set up this stream\" , HFILL }\n }\n , {\n & hf_t38_setup_method , {\n \"Stream Method\" , \"t38.setup-method\" , FT_STRING , BASE_NONE , NULL , 0x0 , \"Method used to set up this stream\" , HFILL }\n }\n , {\n & hf_t38_fragments , {\n \"Message fragments\" , \"t38.fragments\" , FT_NONE , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_t38_fragment , {\n \"Message fragment\" , \"t38.fragment\" , FT_FRAMENUM , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_t38_fragment_overlap , {\n \"Message fragment overlap\" , \"t38.fragment.overlap\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_t38_fragment_overlap_conflicts , {\n \"Message fragment overlapping with conflicting data\" , \"t38.fragment.overlap.conflicts\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_t38_fragment_multiple_tails , {\n \"Message has multiple tail fragments\" , \"t38.fragment.multiple_tails\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_t38_fragment_too_long_fragment , {\n \"Message fragment too long\" , \"t38.fragment.too_long_fragment\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_t38_fragment_error , {\n \"Message defragmentation error\" , \"t38.fragment.error\" , FT_FRAMENUM , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_t38_fragment_count , {\n \"Message fragment count\" , \"t38.fragment.count\" , FT_UINT32 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_t38_reassembled_in , {\n \"Reassembled in\" , \"t38.reassembled.in\" , FT_FRAMENUM , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_t38_reassembled_length , {\n \"Reassembled T38 length\" , \"t38.reassembled.length\" , FT_UINT32 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , }\n ;\n static gint * ett [ ] = {\n & ett_t38 , # include \"packet-t38-ettarr.c\" & ett_t38_setup , & ett_data_fragment , & ett_data_fragments }\n ;\n static ei_register_info ei [ ] = {\n {\n & ei_t38_malformed , {\n \"t38.malformed\" , PI_MALFORMED , PI_ERROR , \"Malformed packet\" , EXPFILL }\n }\n , }\n ;\n module_t * t38_module ;\n expert_module_t * expert_t38 ;\n proto_t38 = proto_register_protocol ( \"T.38\" , \"T.38\" , \"t38\" ) ;\n proto_register_field_array ( proto_t38 , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n expert_t38 = expert_register_protocol ( proto_t38 ) ;\n expert_register_field_array ( expert_t38 , ei , array_length ( ei ) ) ;\n register_dissector ( \"t38_udp\" , dissect_t38_udp , proto_t38 ) ;\n register_init_routine ( t38_defragment_init ) ;\n register_cleanup_routine ( t38_defragment_cleanup ) ;\n t38_tap = register_tap ( \"t38\" ) ;\n t38_module = prefs_register_protocol ( proto_t38 , proto_reg_handoff_t38 ) ;\n prefs_register_bool_preference ( t38_module , \"use_pre_corrigendum_asn1_specification\" , \"Use the Pre-Corrigendum ASN.1 specification\" , \"Whether the T.38 dissector should decode using the Pre-Corrigendum T.38 \" \"ASN.1 specification (1998).\" , & use_pre_corrigendum_asn1_specification ) ;\n prefs_register_bool_preference ( t38_module , \"dissect_possible_rtpv2_packets_as_rtp\" , \"Dissect possible RTP version 2 packets with RTP dissector\" , \"Whether a UDP packet that looks like RTP version 2 packet will \" \"be dissected as RTP packet or T.38 packet. If enabled there is a risk that T.38 UDPTL \" \"packets with sequence number higher than 32767 may be dissected as RTP.\" , & dissect_possible_rtpv2_packets_as_rtp ) ;\n prefs_register_uint_preference ( t38_module , \"tcp.port\" , \"T.38 TCP Port\" , \"Set the TCP port for T.38 messages\" , 10 , & global_t38_tcp_port ) ;\n prefs_register_uint_preference ( t38_module , \"udp.port\" , \"T.38 UDP Port\" , \"Set the UDP port for T.38 messages\" , 10 , & global_t38_udp_port ) ;\n prefs_register_bool_preference ( t38_module , \"reassembly\" , \"Reassemble T.38 PDUs over TPKT over TCP\" , \"Whether the dissector should reassemble T.38 PDUs spanning multiple TCP segments \" \"when TPKT is used over TCP. \" \"To use this option, you must also enable \\\"Allow subdissectors to reassemble \" \"TCP streams\\\" in the TCP protocol settings.\" , & t38_tpkt_reassembly ) ;\n prefs_register_enum_preference ( t38_module , \"tpkt_usage\" , \"TPKT used over TCP\" , \"Whether T.38 is used with TPKT for TCP\" , ( gint * ) & t38_tpkt_usage , t38_tpkt_options , FALSE ) ;\n prefs_register_bool_preference ( t38_module , \"show_setup_info\" , \"Show stream setup information\" , \"Where available, show which protocol and frame caused \" \"this T.38 stream to be created\" , & global_t38_show_setup_info ) ;\n }"}
{"idx": 1277, "target": 0, "func": "void TSTextLogObjectRollingSizeMbSet ( TSTextLogObject the_object , int rolling_size_mb ) {\n sdk_assert ( sdk_sanity_check_iocore_structure ( the_object ) == TS_SUCCESS ) ;\n ( ( TextLogObject * ) the_object ) -> set_rolling_size_mb ( rolling_size_mb ) ;\n }"}
{"idx": 1278, "target": 0, "func": "static OFCondition parseSubItem ( DUL_SUBITEM * subItem , unsigned char * buf , unsigned long * itemLength , unsigned long availData ) {\n if ( availData < 4 ) return makeLengthError ( \"subitem\" , availData , 4 ) ;\n subItem -> type = * buf ++ ;\n subItem -> rsv1 = * buf ++ ;\n EXTRACT_SHORT_BIG ( buf , subItem -> length ) ;\n buf += 2 ;\n if ( subItem -> length > DICOM_UI_LENGTH ) {\n char buffer [ 256 ] ;\n sprintf ( buffer , \"DUL illegal subitem length %d. Maximum allowed size is %d.\" , subItem -> length , DICOM_UI_LENGTH ) ;\n return makeDcmnetCondition ( DULC_ILLEGALPDULENGTH , OF_error , buffer ) ;\n }\n if ( availData - 4 < subItem -> length ) return makeLengthError ( \"subitem\" , availData , 0 , subItem -> length ) ;\n ( void ) memcpy ( subItem -> data , buf , subItem -> length ) ;\n subItem -> data [ subItem -> length ] = '\\0' ;\n * itemLength = 2 + 2 + subItem -> length ;\n DCMNET_TRACE ( \"Subitem parse: Type \" << STD_NAMESPACE hex << STD_NAMESPACE setfill ( '0' ) << STD_NAMESPACE setw ( 2 ) << ( ( unsigned int ) subItem -> type ) << STD_NAMESPACE dec << \", Length \" << STD_NAMESPACE setw ( 4 ) << ( int ) subItem -> length << \", Content: \" << subItem -> data ) ;\n return EC_Normal ;\n }"}
{"idx": 1279, "target": 1, "func": "static int token_continue ( i_ctx_t * i_ctx_p , scanner_state * pstate , bool save ) {\n os_ptr op = osp ;\n int code ;\n ref token ;\n pop ( 1 ) ;\n again : code = gs_scan_token ( i_ctx_p , & token , pstate ) ;\n op = osp ;\n switch ( code ) {\n default : if ( code > 0 ) code = gs_note_error ( gs_error_syntaxerror ) ;\n gs_scanner_error_object ( i_ctx_p , pstate , & i_ctx_p -> error_object ) ;\n break ;\n case scan_BOS : code = 0 ;\n case 0 : push ( 2 ) ;\n ref_assign ( op - 1 , & token ) ;\n make_true ( op ) ;\n break ;\n case scan_EOF : push ( 1 ) ;\n make_false ( op ) ;\n code = 0 ;\n break ;\n case scan_Refill : code = gs_scan_handle_refill ( i_ctx_p , pstate , save , ztoken_continue ) ;\n switch ( code ) {\n case 0 : goto again ;\n case o_push_estack : return code ;\n }\n break ;\n }\n if ( code <= 0 && ! save ) {\n ifree_object ( pstate , \"token_continue\" ) ;\n }\n return code ;\n }"}
{"idx": 1280, "target": 0, "func": "static int list_config ( char * interface ) {\n if ( ! interface ) {\n errmsg_print ( \"ERROR: No interface specified.\" ) ;\n return EXIT_CODE_NO_INTERFACE_SPECIFIED ;\n }\n if ( is_specified_interface ( interface , INTERFACE_ANDROID_BLUETOOTH_EXTERNAL_PARSER ) ) {\n printf ( \"arg {\nnumber=0}\n{\ncall=--adb-server-ip}\n{\ndisplay=ADB Server IP Address}\n{\ntype=string}\n{\ndefault=127.0.0.1}\n\\n\" \"arg {\nnumber=1}\n{\ncall=--adb-server-tcp-port}\n{\ndisplay=ADB Server TCP Port}\n{\ntype=integer}\n{\nrange=0,65535}\n{\ndefault=5037}\n\\n\" \"arg {\nnumber=2}\n{\ncall=--bt-server-tcp-port}\n{\ndisplay=Bluetooth Server TCP Port}\n{\ntype=integer}\n{\nrange=0,65535}\n{\ndefault=4330}\n\\n\" \"arg {\nnumber=3}\n{\ncall=--bt-forward-socket}\n{\ndisplay=Forward Bluetooth Socket}\n{\ntype=boolean}\n{\ndefault=false}\n\\n\" \"arg {\nnumber=4}\n{\ncall=--bt-local-ip}\n{\ndisplay=Bluetooth Local IP Address}\n{\ntype=string}\n{\ndefault=127.0.0.1}\n\\n\" \"arg {\nnumber=5}\n{\ncall=--bt-local-tcp-port}\n{\ndisplay=Bluetooth Local TCP Port}\n{\ntype=integer}\n{\nrange=0,65535}\n{\ndefault=4330}\n{\ntooltip=Used to do \\\"adb forward tcp:LOCAL_TCP_PORT tcp:SERVER_TCP_PORT\\\"}\n\\n\" \"arg {\nnumber=6}\n{\ncall=--verbose}\n{\ndisplay=Verbose/Debug output on console}\n{\ntype=boolean}\n{\ndefault=false}\n\\n\" ) ;\n return EXIT_CODE_SUCCESS ;\n }\n else if ( is_specified_interface ( interface , INTERFACE_ANDROID_BLUETOOTH_HCIDUMP ) || is_specified_interface ( interface , INTERFACE_ANDROID_BLUETOOTH_BTSNOOP_NET ) || is_specified_interface ( interface , INTERFACE_ANDROID_WIFI_TCPDUMP ) ) {\n printf ( \"arg {\nnumber=0}\n{\ncall=--adb-server-ip}\n{\ndisplay=ADB Server IP Address}\n{\ntype=string}\n{\ndefault=127.0.0.1}\n\\n\" \"arg {\nnumber=1}\n{\ncall=--adb-server-tcp-port}\n{\ndisplay=ADB Server TCP Port}\n{\ntype=integer}\n{\nrange=0,65535}\n{\ndefault=5037}\n\\n\" \"arg {\nnumber=2}\n{\ncall=--verbose}\n{\ndisplay=Verbose/Debug output on console}\n{\ntype=boolean}\n{\ndefault=false}\n\\n\" ) ;\n return EXIT_CODE_SUCCESS ;\n }\n else if ( is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_MAIN ) || is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_SYSTEM ) || is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_RADIO ) || is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_EVENTS ) ) {\n printf ( \"arg {\nnumber=0}\n{\ncall=--adb-server-ip}\n{\ndisplay=ADB Server IP Address}\n{\ntype=string}\n{\ndefault=127.0.0.1}\n\\n\" \"arg {\nnumber=1}\n{\ncall=--adb-server-tcp-port}\n{\ndisplay=ADB Server TCP Port}\n{\ntype=integer}\n{\nrange=0,65535}\n{\ndefault=5037}\n\\n\" \"arg {\nnumber=2}\n{\ncall=--logcat-text}\n{\ndisplay=Use text logcat}\n{\ntype=boolean}\n{\ndefault=false}\n\\n\" \"arg {\nnumber=3}\n{\ncall=--verbose}\n{\ndisplay=Verbose/Debug output on console}\n{\ntype=boolean}\n{\ndefault=false}\n\\n\" ) ;\n return EXIT_CODE_SUCCESS ;\n }\n else if ( is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_TEXT_MAIN ) || is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_TEXT_SYSTEM ) || is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_TEXT_RADIO ) || is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_TEXT_EVENTS ) || is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_TEXT_CRASH ) ) {\n printf ( \"arg {\nnumber=0}\n{\ncall=--adb-server-ip}\n{\ndisplay=ADB Server IP Address}\n{\ntype=string}\n{\ndefault=127.0.0.1}\n\\n\" \"arg {\nnumber=1}\n{\ncall=--adb-server-tcp-port}\n{\ndisplay=ADB Server TCP Port}\n{\ntype=integer}\n{\nrange=0,65535}\n{\ndefault=5037}\n\\n\" \"arg {\nnumber=2}\n{\ncall=--verbose}\n{\ndisplay=Verbose/Debug output on console}\n{\ntype=boolean}\n{\ndefault=false}\n\\n\" ) ;\n return EXIT_CODE_SUCCESS ;\n }\n errmsg_print ( \"ERROR: Invalid interface: <%s>\" , interface ) ;\n return EXIT_CODE_INVALID_INTERFACE ;\n }"}
{"idx": 1281, "target": 0, "func": "static gboolean rtp_dyn_payloads_table_steal_func ( gpointer key _U_ , gpointer value , gpointer user_data _U_ ) {\n rtp_dyn_payload_t * rtp_dyn_payload = ( rtp_dyn_payload_t * ) value ;\n # ifdef DEBUG_CONVERSATION DPRINT ( ( \"about to steal_all and destroy the following:\" ) ) ;\n DINDENT ( ) ;\n rtp_dump_dyn_payload ( rtp_dyn_payload ) ;\n DENDENT ( ) ;\n # endif if ( rtp_dyn_payload -> ref_count == 0 ) {\n g_error ( \"rtp_dyn_payload cannot be free'd because it should already have been!\\n\" ) ;\n }\n else if ( rtp_dyn_payload -> table ) {\n g_hash_table_steal_all ( rtp_dyn_payload -> table ) ;\n g_hash_table_destroy ( rtp_dyn_payload -> table ) ;\n }\n return TRUE ;\n }"}
{"idx": 1282, "target": 0, "func": "static gboolean asf_demux_peek_object ( GstASFDemux * demux , const guint8 * data , guint data_len , AsfObject * object , gboolean expect ) {\n ASFGuid guid ;\n g_assert ( data_len >= ASF_OBJECT_HEADER_SIZE ) ;\n if ( data_len < ASF_OBJECT_HEADER_SIZE ) return FALSE ;\n guid . v1 = GST_READ_UINT32_LE ( data + 0 ) ;\n guid . v2 = GST_READ_UINT32_LE ( data + 4 ) ;\n guid . v3 = GST_READ_UINT32_LE ( data + 8 ) ;\n guid . v4 = GST_READ_UINT32_LE ( data + 12 ) ;\n object -> id = gst_asf_demux_identify_guid ( asf_object_guids , & guid ) ;\n if ( object -> id == ASF_OBJ_UNDEFINED && expect ) {\n GST_WARNING_OBJECT ( demux , \"Unknown object %08x-%08x-%08x-%08x\" , guid . v1 , guid . v2 , guid . v3 , guid . v4 ) ;\n }\n object -> size = GST_READ_UINT64_LE ( data + 16 ) ;\n if ( object -> id != ASF_OBJ_DATA && object -> size >= G_MAXUINT ) {\n GST_WARNING_OBJECT ( demux , \"ASF Object size corrupted (greater than 32bit)\" ) ;\n return FALSE ;\n }\n return TRUE ;\n }"}
{"idx": 1283, "target": 0, "func": "static Pattern_Prefix_Status regex_fixed_prefix ( Const * patt_const , bool case_insensitive , Oid collation , Const * * prefix_const , Selectivity * rest_selec ) {\n Oid typeid = patt_const -> consttype ;\n char * prefix ;\n bool exact ;\n if ( typeid == BYTEAOID ) ereport ( ERROR , ( errcode ( ERRCODE_FEATURE_NOT_SUPPORTED ) , errmsg ( \"regular-expression matching not supported on type bytea\" ) ) ) ;\n prefix = regexp_fixed_prefix ( DatumGetTextPP ( patt_const -> constvalue ) , case_insensitive , collation , & exact ) ;\n if ( prefix == NULL ) {\n * prefix_const = NULL ;\n if ( rest_selec != NULL ) {\n char * patt = TextDatumGetCString ( patt_const -> constvalue ) ;\n * rest_selec = regex_selectivity ( patt , strlen ( patt ) , case_insensitive , 0 ) ;\n pfree ( patt ) ;\n }\n return Pattern_Prefix_None ;\n }\n * prefix_const = string_to_const ( prefix , typeid ) ;\n if ( rest_selec != NULL ) {\n if ( exact ) {\n * rest_selec = 1.0 ;\n }\n else {\n char * patt = TextDatumGetCString ( patt_const -> constvalue ) ;\n * rest_selec = regex_selectivity ( patt , strlen ( patt ) , case_insensitive , strlen ( prefix ) ) ;\n pfree ( patt ) ;\n }\n }\n pfree ( prefix ) ;\n if ( exact ) return Pattern_Prefix_Exact ;\n else return Pattern_Prefix_Partial ;\n }"}
{"idx": 1284, "target": 0, "func": "const char * TSNormalizedProtocolTag ( const char * tag ) {\n return RecNormalizeProtoTag ( tag ) ;\n }"}
{"idx": 1285, "target": 0, "func": "static void default_set_param_func ( Item_param * param , uchar * * pos __attribute__ ( ( unused ) ) , ulong len __attribute__ ( ( unused ) ) ) {\n param -> set_null ( ) ;\n }"}
{"idx": 1286, "target": 0, "func": "static int get_consumed_bytes ( MpegEncContext * s , int buf_size ) {\n int pos = get_bits_count ( & s -> gb ) >> 3 ;\n if ( pos == 0 ) pos = 1 ;\n if ( pos + 10 > buf_size ) pos = buf_size ;\n return pos ;\n }"}
{"idx": 1287, "target": 1, "func": "void bn_sqr_comba8 ( BN_ULONG * r , const BN_ULONG * a ) {\n BN_ULONG t1 , t2 ;\n BN_ULONG c1 , c2 , c3 ;\n c1 = 0 ;\n c2 = 0 ;\n c3 = 0 ;\n sqr_add_c ( a , 0 , c1 , c2 , c3 ) ;\n r [ 0 ] = c1 ;\n c1 = 0 ;\n sqr_add_c2 ( a , 1 , 0 , c2 , c3 , c1 ) ;\n r [ 1 ] = c2 ;\n c2 = 0 ;\n sqr_add_c ( a , 1 , c3 , c1 , c2 ) ;\n sqr_add_c2 ( a , 2 , 0 , c3 , c1 , c2 ) ;\n r [ 2 ] = c3 ;\n c3 = 0 ;\n sqr_add_c2 ( a , 3 , 0 , c1 , c2 , c3 ) ;\n sqr_add_c2 ( a , 2 , 1 , c1 , c2 , c3 ) ;\n r [ 3 ] = c1 ;\n c1 = 0 ;\n sqr_add_c ( a , 2 , c2 , c3 , c1 ) ;\n sqr_add_c2 ( a , 3 , 1 , c2 , c3 , c1 ) ;\n sqr_add_c2 ( a , 4 , 0 , c2 , c3 , c1 ) ;\n r [ 4 ] = c2 ;\n c2 = 0 ;\n sqr_add_c2 ( a , 5 , 0 , c3 , c1 , c2 ) ;\n sqr_add_c2 ( a , 4 , 1 , c3 , c1 , c2 ) ;\n sqr_add_c2 ( a , 3 , 2 , c3 , c1 , c2 ) ;\n r [ 5 ] = c3 ;\n c3 = 0 ;\n sqr_add_c ( a , 3 , c1 , c2 , c3 ) ;\n sqr_add_c2 ( a , 4 , 2 , c1 , c2 , c3 ) ;\n sqr_add_c2 ( a , 5 , 1 , c1 , c2 , c3 ) ;\n sqr_add_c2 ( a , 6 , 0 , c1 , c2 , c3 ) ;\n r [ 6 ] = c1 ;\n c1 = 0 ;\n sqr_add_c2 ( a , 7 , 0 , c2 , c3 , c1 ) ;\n sqr_add_c2 ( a , 6 , 1 , c2 , c3 , c1 ) ;\n sqr_add_c2 ( a , 5 , 2 , c2 , c3 , c1 ) ;\n sqr_add_c2 ( a , 4 , 3 , c2 , c3 , c1 ) ;\n r [ 7 ] = c2 ;\n c2 = 0 ;\n sqr_add_c ( a , 4 , c3 , c1 , c2 ) ;\n sqr_add_c2 ( a , 5 , 3 , c3 , c1 , c2 ) ;\n sqr_add_c2 ( a , 6 , 2 , c3 , c1 , c2 ) ;\n sqr_add_c2 ( a , 7 , 1 , c3 , c1 , c2 ) ;\n r [ 8 ] = c3 ;\n c3 = 0 ;\n sqr_add_c2 ( a , 7 , 2 , c1 , c2 , c3 ) ;\n sqr_add_c2 ( a , 6 , 3 , c1 , c2 , c3 ) ;\n sqr_add_c2 ( a , 5 , 4 , c1 , c2 , c3 ) ;\n r [ 9 ] = c1 ;\n c1 = 0 ;\n sqr_add_c ( a , 5 , c2 , c3 , c1 ) ;\n sqr_add_c2 ( a , 6 , 4 , c2 , c3 , c1 ) ;\n sqr_add_c2 ( a , 7 , 3 , c2 , c3 , c1 ) ;\n r [ 10 ] = c2 ;\n c2 = 0 ;\n sqr_add_c2 ( a , 7 , 4 , c3 , c1 , c2 ) ;\n sqr_add_c2 ( a , 6 , 5 , c3 , c1 , c2 ) ;\n r [ 11 ] = c3 ;\n c3 = 0 ;\n sqr_add_c ( a , 6 , c1 , c2 , c3 ) ;\n sqr_add_c2 ( a , 7 , 5 , c1 , c2 , c3 ) ;\n r [ 12 ] = c1 ;\n c1 = 0 ;\n sqr_add_c2 ( a , 7 , 6 , c2 , c3 , c1 ) ;\n r [ 13 ] = c2 ;\n c2 = 0 ;\n sqr_add_c ( a , 7 , c3 , c1 , c2 ) ;\n r [ 14 ] = c3 ;\n r [ 15 ] = c1 ;\n }"}
{"idx": 1288, "target": 0, "func": "static void close_input_file ( struct VpxInputContext * input ) {\n fclose ( input -> file ) ;\n if ( input -> file_type == FILE_TYPE_Y4M ) y4m_input_close ( & input -> y4m ) ;\n }"}
{"idx": 1289, "target": 0, "func": "kadm5_ret_t kadm5_create_principal ( void * server_handle , kadm5_principal_ent_t entry , long mask , char * password ) {\n return kadm5_create_principal_3 ( server_handle , entry , mask , 0 , NULL , password ) ;\n }"}
{"idx": 1290, "target": 0, "func": "static gint dissect_btvdp ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n proto_item * ti ;\n proto_tree * btvdp_tree ;\n proto_item * pitem ;\n gint offset = 0 ;\n dissector_handle_t codec_dissector = NULL ;\n btvdp_codec_info_t btvdp_codec_info ;\n sep_data_t sep_data ;\n gboolean no_avdtp_session ;\n no_avdtp_session = ( proto_btavdtp != ( gint ) GPOINTER_TO_UINT ( wmem_list_frame_data ( wmem_list_frame_prev ( wmem_list_tail ( pinfo -> layers ) ) ) ) ) ;\n sep_data . codec = CODEC_H263_BASELINE ;\n sep_data . content_protection_type = 0 ;\n sep_data . acp_seid = 0 ;\n sep_data . int_seid = 0 ;\n sep_data . previous_media_packet_info = NULL ;\n sep_data . current_media_packet_info = NULL ;\n sep_data . stream_start_in_frame = 0 ;\n sep_data . stream_end_in_frame = 0 ;\n sep_data . stream_number = 1 ;\n sep_data . vendor_id = 0 ;\n sep_data . vendor_codec = 0 ;\n sep_data . configuration_length = 0 ;\n sep_data . configuration = NULL ;\n if ( force_vdp_scms_t || force_vdp_codec ) {\n if ( force_vdp_scms_t ) sep_data . content_protection_type = 2 ;\n else if ( data && ! no_avdtp_session ) sep_data . content_protection_type = ( ( sep_data_t * ) data ) -> content_protection_type ;\n if ( force_vdp_codec ) sep_data . codec = force_vdp_codec ;\n else if ( data && ! no_avdtp_session ) sep_data . codec = ( ( sep_data_t * ) data ) -> codec ;\n }\n else {\n if ( data && ! no_avdtp_session ) sep_data = * ( ( sep_data_t * ) data ) ;\n }\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"VDP\" ) ;\n switch ( pinfo -> p2p_dir ) {\n case P2P_DIR_SENT : col_set_str ( pinfo -> cinfo , COL_INFO , \"Sent \" ) ;\n break ;\n case P2P_DIR_RECV : col_set_str ( pinfo -> cinfo , COL_INFO , \"Rcvd \" ) ;\n break ;\n case P2P_DIR_UNKNOWN : col_clear ( pinfo -> cinfo , COL_INFO ) ;\n break ;\n default : col_add_fstr ( pinfo -> cinfo , COL_INFO , \"Unknown direction %d \" , pinfo -> p2p_dir ) ;\n break ;\n }\n ti = proto_tree_add_item ( tree , proto_btvdp , tvb , offset , - 1 , ENC_NA ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"Video stream - %s\" , val_to_str_const ( sep_data . codec , media_codec_video_type_vals , \"unknown codec\" ) ) ;\n btvdp_tree = proto_item_add_subtree ( ti , ett_btvdp ) ;\n pitem = proto_tree_add_uint ( btvdp_tree , hf_btvdp_acp_seid , tvb , 0 , 0 , sep_data . acp_seid ) ;\n PROTO_ITEM_SET_GENERATED ( pitem ) ;\n pitem = proto_tree_add_uint ( btvdp_tree , hf_btvdp_int_seid , tvb , 0 , 0 , sep_data . int_seid ) ;\n PROTO_ITEM_SET_GENERATED ( pitem ) ;\n pitem = proto_tree_add_uint ( btvdp_tree , hf_btvdp_codec , tvb , 0 , 0 , sep_data . codec ) ;\n PROTO_ITEM_SET_GENERATED ( pitem ) ;\n if ( sep_data . codec == 0xFF ) {\n pitem = proto_tree_add_uint ( btvdp_tree , hf_btvdp_vendor_id , tvb , 0 , 0 , sep_data . vendor_id ) ;\n PROTO_ITEM_SET_GENERATED ( pitem ) ;\n pitem = proto_tree_add_uint ( btvdp_tree , hf_btvdp_vendor_codec_id , tvb , 0 , 0 , sep_data . vendor_codec ) ;\n PROTO_ITEM_SET_GENERATED ( pitem ) ;\n }\n if ( sep_data . content_protection_type > 0 ) {\n pitem = proto_tree_add_uint ( btvdp_tree , hf_btvdp_content_protection , tvb , 0 , 0 , sep_data . content_protection_type ) ;\n PROTO_ITEM_SET_GENERATED ( pitem ) ;\n }\n if ( sep_data . stream_start_in_frame > 0 ) {\n pitem = proto_tree_add_uint ( btvdp_tree , hf_btvdp_stream_start_in_frame , tvb , 0 , 0 , sep_data . stream_start_in_frame ) ;\n PROTO_ITEM_SET_GENERATED ( pitem ) ;\n }\n if ( sep_data . stream_end_in_frame > 0 ) {\n pitem = proto_tree_add_uint ( btvdp_tree , hf_btvdp_stream_end_in_frame , tvb , 0 , 0 , sep_data . stream_end_in_frame ) ;\n PROTO_ITEM_SET_GENERATED ( pitem ) ;\n }\n pitem = proto_tree_add_uint ( btvdp_tree , hf_btvdp_stream_number , tvb , 0 , 0 , sep_data . stream_number ) ;\n PROTO_ITEM_SET_GENERATED ( pitem ) ;\n switch ( sep_data . codec ) {\n case CODEC_H263_BASELINE : case CODEC_H263_PROFILE_3 : case CODEC_H263_PROFILE_8 : codec_dissector = h263_handle ;\n break ;\n case CODEC_MPEG4_VSP : codec_dissector = mp4v_es_handle ;\n break ;\n }\n btvdp_codec_info . codec_dissector = codec_dissector ;\n btvdp_codec_info . content_protection_type = sep_data . content_protection_type ;\n # if RTP_PLAYER_WORKAROUND == TRUE pinfo -> srcport = sep_data . stream_number ;\n pinfo -> destport = sep_data . stream_number ;\n # endif bluetooth_add_address ( pinfo , & pinfo -> net_dst , 0 , \"BT VDP\" , pinfo -> num , RTP_MEDIA_VIDEO , & btvdp_codec_info ) ;\n call_dissector ( rtp_handle , tvb , pinfo , tree ) ;\n offset += tvb_reported_length_remaining ( tvb , offset ) ;\n return offset ;\n }"}
{"idx": 1291, "target": 0, "func": "static int main_input ( xd3_cmd cmd , main_file * ifile , main_file * ofile , main_file * sfile ) {\n int ret ;\n xd3_stream stream ;\n size_t nread = 0 ;\n usize_t winsize ;\n int stream_flags = 0 ;\n xd3_config config ;\n xd3_source source ;\n xoff_t last_total_in = 0 ;\n xoff_t last_total_out = 0 ;\n long start_time ;\n int stdout_only = 0 ;\n int ( * input_func ) ( xd3_stream * ) ;\n int ( * output_func ) ( xd3_stream * , main_file * ) ;\n memset ( & stream , 0 , sizeof ( stream ) ) ;\n memset ( & source , 0 , sizeof ( source ) ) ;\n memset ( & config , 0 , sizeof ( config ) ) ;\n config . alloc = main_alloc ;\n config . freef = main_free1 ;\n config . iopt_size = option_iopt_size ;\n config . sprevsz = option_sprevsz ;\n do_src_fifo = 0 ;\n start_time = get_millisecs_now ( ) ;\n if ( option_use_checksum ) {\n stream_flags |= XD3_ADLER32 ;\n }\n switch ( ( int ) cmd ) {\n # if VCDIFF_TOOLS if ( 1 ) {\n case CMD_PRINTHDR : stream_flags |= XD3_JUST_HDR ;\n }\n else if ( 1 ) {\n case CMD_PRINTHDRS : stream_flags |= XD3_SKIP_WINDOW ;\n }\n else {\n case CMD_PRINTDELTA : stream_flags |= XD3_SKIP_EMIT ;\n }\n ifile -> flags |= RD_NONEXTERNAL ;\n input_func = xd3_decode_input ;\n output_func = main_print_func ;\n stream_flags |= XD3_ADLER32_NOVER ;\n stdout_only = 1 ;\n break ;\n case CMD_RECODE : case CMD_MERGE : case CMD_MERGE_ARG : stream_flags |= XD3_ADLER32_NOVER | XD3_SKIP_EMIT ;\n ifile -> flags |= RD_NONEXTERNAL ;\n input_func = xd3_decode_input ;\n if ( ( ret = main_init_recode_stream ( ) ) ) {\n return EXIT_FAILURE ;\n }\n if ( cmd == CMD_RECODE ) {\n output_func = main_recode_func ;\n }\n else {\n output_func = main_merge_func ;\n }\n break ;\n # endif # if XD3_ENCODER case CMD_ENCODE : do_src_fifo = 1 ;\n input_func = xd3_encode_input ;\n output_func = main_write_output ;\n if ( option_no_compress ) {\n stream_flags |= XD3_NOCOMPRESS ;\n }\n if ( option_use_altcodetable ) {\n stream_flags |= XD3_ALT_CODE_TABLE ;\n }\n if ( option_smatch_config ) {\n const char * s = option_smatch_config ;\n char * e ;\n int values [ XD3_SOFTCFG_VARCNT ] ;\n int got ;\n config . smatch_cfg = XD3_SMATCH_SOFT ;\n for ( got = 0 ;\n got < XD3_SOFTCFG_VARCNT ;\n got += 1 , s = e + 1 ) {\n values [ got ] = strtol ( s , & e , 10 ) ;\n if ( ( values [ got ] < 0 ) || ( e == s ) || ( got < XD3_SOFTCFG_VARCNT - 1 && * e == 0 ) || ( got == XD3_SOFTCFG_VARCNT - 1 && * e != 0 ) ) {\n XPR ( NT \"invalid string match specifier (-C) %d: %s\\n\" , got , s ) ;\n return EXIT_FAILURE ;\n }\n }\n config . smatcher_soft . large_look = values [ 0 ] ;\n config . smatcher_soft . large_step = values [ 1 ] ;\n config . smatcher_soft . small_look = values [ 2 ] ;\n config . smatcher_soft . small_chain = values [ 3 ] ;\n config . smatcher_soft . small_lchain = values [ 4 ] ;\n config . smatcher_soft . max_lazy = values [ 5 ] ;\n config . smatcher_soft . long_enough = values [ 6 ] ;\n }\n else {\n if ( option_verbose > 2 ) {\n XPR ( NT \"compression level: %d\\n\" , option_level ) ;\n }\n if ( option_level == 0 ) {\n stream_flags |= XD3_NOCOMPRESS ;\n config . smatch_cfg = XD3_SMATCH_FASTEST ;\n }\n else if ( option_level == 1 ) {\n config . smatch_cfg = XD3_SMATCH_FASTEST ;\n }\n else if ( option_level == 2 ) {\n config . smatch_cfg = XD3_SMATCH_FASTER ;\n }\n else if ( option_level <= 5 ) {\n config . smatch_cfg = XD3_SMATCH_FAST ;\n }\n else if ( option_level == 6 ) {\n config . smatch_cfg = XD3_SMATCH_DEFAULT ;\n }\n else {\n config . smatch_cfg = XD3_SMATCH_SLOW ;\n }\n }\n break ;\n # endif case CMD_DECODE : if ( option_use_checksum == 0 ) {\n stream_flags |= XD3_ADLER32_NOVER ;\n }\n ifile -> flags |= RD_NONEXTERNAL ;\n input_func = xd3_decode_input ;\n output_func = main_write_output ;\n break ;\n default : XPR ( NT \"internal error\\n\" ) ;\n return EXIT_FAILURE ;\n }\n main_bsize = winsize = main_get_winsize ( ifile ) ;\n if ( ( main_bdata = ( uint8_t * ) main_bufalloc ( winsize ) ) == NULL ) {\n return EXIT_FAILURE ;\n }\n config . winsize = winsize ;\n config . getblk = main_getblk_func ;\n config . flags = stream_flags ;\n if ( ( ret = main_set_secondary_flags ( & config ) ) || ( ret = xd3_config_stream ( & stream , & config ) ) ) {\n XPR ( NT XD3_LIB_ERRMSG ( & stream , ret ) ) ;\n return EXIT_FAILURE ;\n }\n # if VCDIFF_TOOLS if ( ( cmd == CMD_MERGE || cmd == CMD_MERGE_ARG ) && ( ret = xd3_whole_state_init ( & stream ) ) ) {\n XPR ( NT XD3_LIB_ERRMSG ( & stream , ret ) ) ;\n return EXIT_FAILURE ;\n }\n # endif if ( cmd != CMD_DECODE ) {\n if ( sfile && sfile -> filename != NULL ) {\n if ( ( ret = main_set_source ( & stream , cmd , sfile , & source ) ) ) {\n return EXIT_FAILURE ;\n }\n XD3_ASSERT ( stream . src != NULL ) ;\n }\n }\n if ( cmd == CMD_PRINTHDR || cmd == CMD_PRINTHDRS || cmd == CMD_PRINTDELTA || cmd == CMD_RECODE ) {\n if ( sfile -> filename == NULL ) {\n allow_fake_source = 1 ;\n sfile -> filename = \"<placeholder>\" ;\n main_set_source ( & stream , cmd , sfile , & source ) ;\n }\n }\n get_millisecs_since ( ) ;\n do {\n xoff_t input_offset ;\n xoff_t input_remain ;\n usize_t try_read ;\n input_offset = ifile -> nread ;\n input_remain = XOFF_T_MAX - input_offset ;\n try_read = ( usize_t ) min ( ( xoff_t ) config . winsize , input_remain ) ;\n if ( ( ret = main_read_primary_input ( ifile , main_bdata , try_read , & nread ) ) ) {\n return EXIT_FAILURE ;\n }\n if ( nread < try_read ) {\n stream . flags |= XD3_FLUSH ;\n }\n # if XD3_ENCODER if ( cmd == CMD_ENCODE && ( ret = main_set_appheader ( & stream , ifile , sfile ) ) ) {\n return EXIT_FAILURE ;\n }\n # endif xd3_avail_input ( & stream , main_bdata , nread ) ;\n if ( nread == 0 && stream . current_window > 0 ) {\n break ;\n }\n again : ret = input_func ( & stream ) ;\n switch ( ret ) {\n case XD3_INPUT : continue ;\n case XD3_GOTHEADER : {\n XD3_ASSERT ( stream . current_window == 0 ) ;\n if ( cmd == CMD_DECODE ) {\n main_get_appheader ( & stream , ifile , ofile , sfile ) ;\n if ( ( sfile -> filename != NULL ) && ( ret = main_set_source ( & stream , cmd , sfile , & source ) ) ) {\n return EXIT_FAILURE ;\n }\n }\n }\n case XD3_WINSTART : {\n goto again ;\n }\n case XD3_OUTPUT : {\n if ( ofile != NULL && ! main_file_isopen ( ofile ) && ( ret = main_open_output ( & stream , ofile ) ) != 0 ) {\n return EXIT_FAILURE ;\n }\n if ( ( ret = output_func ( & stream , ofile ) ) && ( ret != PRINTHDR_SPECIAL ) ) {\n return EXIT_FAILURE ;\n }\n if ( ret == PRINTHDR_SPECIAL ) {\n xd3_abort_stream ( & stream ) ;\n ret = EXIT_SUCCESS ;\n goto done ;\n }\n ret = 0 ;\n xd3_consume_output ( & stream ) ;\n goto again ;\n }\n case XD3_WINFINISH : {\n if ( IS_ENCODE ( cmd ) || cmd == CMD_DECODE || cmd == CMD_RECODE ) {\n if ( ! option_quiet && IS_ENCODE ( cmd ) && main_file_isopen ( sfile ) ) {\n if ( option_verbose && ! xd3_encoder_used_source ( & stream ) ) {\n XPR ( NT \"warning: input window %\" Q \"u..%\" Q \"u has \" \"no source copies\\n\" , stream . current_window * winsize , ( stream . current_window + 1 ) * winsize ) ;\n XD3_ASSERT ( stream . src != NULL ) ;\n }\n if ( option_verbose > 1 && stream . srcwin_decided_early && stream . i_slots_used > stream . iopt_size ) {\n XPR ( NT \"warning: input position %\" Q \"u overflowed \" \"instruction buffer, needed %u (vs. %u), \" \"consider changing -I\\n\" , stream . current_window * winsize , stream . i_slots_used , stream . iopt_size ) ;\n }\n }\n if ( option_verbose ) {\n shortbuf rrateavg , wrateavg , tm ;\n shortbuf rdb , wdb ;\n shortbuf trdb , twdb ;\n shortbuf srcpos ;\n long millis = get_millisecs_since ( ) ;\n usize_t this_read = ( usize_t ) ( stream . total_in - last_total_in ) ;\n usize_t this_write = ( usize_t ) ( stream . total_out - last_total_out ) ;\n last_total_in = stream . total_in ;\n last_total_out = stream . total_out ;\n if ( option_verbose > 1 ) {\n XPR ( NT \"%\" Q \"u: in %s (%s): out %s (%s): \" \"total in %s: out %s: %s: srcpos %s\\n\" , stream . current_window , main_format_bcnt ( this_read , & rdb ) , main_format_rate ( this_read , millis , & rrateavg ) , main_format_bcnt ( this_write , & wdb ) , main_format_rate ( this_write , millis , & wrateavg ) , main_format_bcnt ( stream . total_in , & trdb ) , main_format_bcnt ( stream . total_out , & twdb ) , main_format_millis ( millis , & tm ) , main_format_bcnt ( sfile -> source_position , & srcpos ) ) ;\n }\n else {\n XPR ( NT \"%\" Q \"u: in %s: out %s: total in %s: \" \"out %s: %s\\n\" , stream . current_window , main_format_bcnt ( this_read , & rdb ) , main_format_bcnt ( this_write , & wdb ) , main_format_bcnt ( stream . total_in , & trdb ) , main_format_bcnt ( stream . total_out , & twdb ) , main_format_millis ( millis , & tm ) ) ;\n }\n }\n }\n goto again ;\n }\n default : XPR ( NT XD3_LIB_ERRMSG ( & stream , ret ) ) ;\n if ( ! option_quiet && ret == XD3_INVALID_INPUT ) {\n XPR ( NT \"normally this indicates that the source file is incorrect\\n\" ) ;\n XPR ( NT \"please verify the source file with sha1sum or equivalent\\n\" ) ;\n }\n return EXIT_FAILURE ;\n }\n }\n while ( nread == config . winsize ) ;\n done : main_file_close ( ifile ) ;\n if ( sfile != NULL ) {\n main_file_close ( sfile ) ;\n }\n # if VCDIFF_TOOLS if ( cmd == CMD_MERGE && ( ret = main_merge_output ( & stream , ofile ) ) ) {\n return EXIT_FAILURE ;\n }\n if ( cmd == CMD_MERGE_ARG ) {\n xd3_swap_whole_state ( & stream . whole_target , & recode_stream -> whole_target ) ;\n }\n # endif if ( ! option_no_output && ofile != NULL ) {\n if ( ! stdout_only && ! main_file_isopen ( ofile ) ) {\n XPR ( NT \"nothing to output: %s\\n\" , ifile -> filename ) ;\n return EXIT_FAILURE ;\n }\n if ( main_file_close ( ofile ) != 0 ) {\n return EXIT_FAILURE ;\n }\n }\n # if EXTERNAL_COMPRESSION if ( ( ret = main_external_compression_finish ( ) ) ) {\n XPR ( NT \"external compression commands failed\\n\" ) ;\n return EXIT_FAILURE ;\n }\n # endif if ( ( ret = xd3_close_stream ( & stream ) ) ) {\n XPR ( NT XD3_LIB_ERRMSG ( & stream , ret ) ) ;\n return EXIT_FAILURE ;\n }\n # if XD3_ENCODER if ( option_verbose > 1 && cmd == CMD_ENCODE ) {\n XPR ( NT \"scanner configuration: %s\\n\" , stream . smatcher . name ) ;\n XPR ( NT \"target hash table size: %u\\n\" , stream . small_hash . size ) ;\n if ( sfile != NULL && sfile -> filename != NULL ) {\n XPR ( NT \"source hash table size: %u\\n\" , stream . large_hash . size ) ;\n }\n }\n if ( option_verbose > 2 && cmd == CMD_ENCODE ) {\n XPR ( NT \"source copies: %\" Q \"u (%\" Q \"u bytes)\\n\" , stream . n_scpy , stream . l_scpy ) ;\n XPR ( NT \"target copies: %\" Q \"u (%\" Q \"u bytes)\\n\" , stream . n_tcpy , stream . l_tcpy ) ;\n XPR ( NT \"adds: %\" Q \"u (%\" Q \"u bytes)\\n\" , stream . n_add , stream . l_add ) ;\n XPR ( NT \"runs: %\" Q \"u (%\" Q \"u bytes)\\n\" , stream . n_run , stream . l_run ) ;\n }\n # endif xd3_free_stream ( & stream ) ;\n if ( option_verbose ) {\n shortbuf tm ;\n long end_time = get_millisecs_now ( ) ;\n xoff_t nwrite = ofile != NULL ? ofile -> nwrite : 0 ;\n XPR ( NT \"finished in %s;\n input %\" Q \"u output %\" Q \"u bytes (%0.2f%%)\\n\" , main_format_millis ( end_time - start_time , & tm ) , ifile -> nread , nwrite , 100.0 * nwrite / ifile -> nread ) ;\n }\n return EXIT_SUCCESS ;\n }"}
{"idx": 1292, "target": 0, "func": "static int diffie_hellman_sha256 ( LIBSSH2_SESSION * session , _libssh2_bn * g , _libssh2_bn * p , int group_order , unsigned char packet_type_init , unsigned char packet_type_reply , unsigned char * midhash , unsigned long midhash_len , kmdhgGPshakex_state_t * exchange_state ) {\n int ret = 0 ;\n int rc ;\n libssh2_sha256_ctx exchange_hash_ctx ;\n if ( exchange_state -> state == libssh2_NB_state_idle ) {\n exchange_state -> e_packet = NULL ;\n exchange_state -> s_packet = NULL ;\n exchange_state -> k_value = NULL ;\n exchange_state -> ctx = _libssh2_bn_ctx_new ( ) ;\n exchange_state -> x = _libssh2_bn_init ( ) ;\n exchange_state -> e = _libssh2_bn_init ( ) ;\n exchange_state -> f = _libssh2_bn_init_from_bin ( ) ;\n exchange_state -> k = _libssh2_bn_init ( ) ;\n memset ( & exchange_state -> req_state , 0 , sizeof ( packet_require_state_t ) ) ;\n _libssh2_bn_rand ( exchange_state -> x , group_order * 8 - 1 , 0 , - 1 ) ;\n _libssh2_bn_mod_exp ( exchange_state -> e , g , exchange_state -> x , p , exchange_state -> ctx ) ;\n exchange_state -> e_packet_len = _libssh2_bn_bytes ( exchange_state -> e ) + 6 ;\n if ( _libssh2_bn_bits ( exchange_state -> e ) % 8 ) {\n exchange_state -> e_packet_len -- ;\n }\n exchange_state -> e_packet = LIBSSH2_ALLOC ( session , exchange_state -> e_packet_len ) ;\n if ( ! exchange_state -> e_packet ) {\n ret = _libssh2_error ( session , LIBSSH2_ERROR_ALLOC , \"Out of memory error\" ) ;\n goto clean_exit ;\n }\n exchange_state -> e_packet [ 0 ] = packet_type_init ;\n _libssh2_htonu32 ( exchange_state -> e_packet + 1 , exchange_state -> e_packet_len - 5 ) ;\n if ( _libssh2_bn_bits ( exchange_state -> e ) % 8 ) {\n _libssh2_bn_to_bin ( exchange_state -> e , exchange_state -> e_packet + 5 ) ;\n }\n else {\n exchange_state -> e_packet [ 5 ] = 0 ;\n _libssh2_bn_to_bin ( exchange_state -> e , exchange_state -> e_packet + 6 ) ;\n }\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Sending KEX packet %d\" , ( int ) packet_type_init ) ;\n exchange_state -> state = libssh2_NB_state_created ;\n }\n if ( exchange_state -> state == libssh2_NB_state_created ) {\n rc = _libssh2_transport_send ( session , exchange_state -> e_packet , exchange_state -> e_packet_len , NULL , 0 ) ;\n if ( rc == LIBSSH2_ERROR_EAGAIN ) {\n return rc ;\n }\n else if ( rc ) {\n ret = _libssh2_error ( session , rc , \"Unable to send KEX init message\" ) ;\n goto clean_exit ;\n }\n exchange_state -> state = libssh2_NB_state_sent ;\n }\n if ( exchange_state -> state == libssh2_NB_state_sent ) {\n if ( session -> burn_optimistic_kexinit ) {\n int burn_type ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Waiting for badly guessed KEX packet (to be ignored)\" ) ;\n burn_type = _libssh2_packet_burn ( session , & exchange_state -> burn_state ) ;\n if ( burn_type == LIBSSH2_ERROR_EAGAIN ) {\n return burn_type ;\n }\n else if ( burn_type <= 0 ) {\n ret = burn_type ;\n goto clean_exit ;\n }\n session -> burn_optimistic_kexinit = 0 ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Burnt packet of type: %02x\" , ( unsigned int ) burn_type ) ;\n }\n exchange_state -> state = libssh2_NB_state_sent1 ;\n }\n if ( exchange_state -> state == libssh2_NB_state_sent1 ) {\n rc = _libssh2_packet_require ( session , packet_type_reply , & exchange_state -> s_packet , & exchange_state -> s_packet_len , 0 , NULL , 0 , & exchange_state -> req_state ) ;\n if ( rc == LIBSSH2_ERROR_EAGAIN ) {\n return rc ;\n }\n if ( rc ) {\n ret = _libssh2_error ( session , LIBSSH2_ERROR_TIMEOUT , \"Timed out waiting for KEX reply\" ) ;\n goto clean_exit ;\n }\n exchange_state -> s = exchange_state -> s_packet + 1 ;\n session -> server_hostkey_len = _libssh2_ntohu32 ( exchange_state -> s ) ;\n exchange_state -> s += 4 ;\n if ( session -> server_hostkey ) LIBSSH2_FREE ( session , session -> server_hostkey ) ;\n session -> server_hostkey = LIBSSH2_ALLOC ( session , session -> server_hostkey_len ) ;\n if ( ! session -> server_hostkey ) {\n ret = _libssh2_error ( session , LIBSSH2_ERROR_ALLOC , \"Unable to allocate memory for a copy \" \"of the host key\" ) ;\n goto clean_exit ;\n }\n memcpy ( session -> server_hostkey , exchange_state -> s , session -> server_hostkey_len ) ;\n exchange_state -> s += session -> server_hostkey_len ;\n # if LIBSSH2_MD5 {\n libssh2_md5_ctx fingerprint_ctx ;\n if ( libssh2_md5_init ( & fingerprint_ctx ) ) {\n libssh2_md5_update ( fingerprint_ctx , session -> server_hostkey , session -> server_hostkey_len ) ;\n libssh2_md5_final ( fingerprint_ctx , session -> server_hostkey_md5 ) ;\n session -> server_hostkey_md5_valid = TRUE ;\n }\n else {\n session -> server_hostkey_md5_valid = FALSE ;\n }\n }\n # ifdef LIBSSH2DEBUG {\n char fingerprint [ 50 ] , * fprint = fingerprint ;\n int i ;\n for ( i = 0 ;\n i < 16 ;\n i ++ , fprint += 3 ) {\n snprintf ( fprint , 4 , \"%02x:\" , session -> server_hostkey_md5 [ i ] ) ;\n }\n * ( -- fprint ) = '\\0' ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Server's MD5 Fingerprint: %s\" , fingerprint ) ;\n }\n # endif # endif {\n libssh2_sha1_ctx fingerprint_ctx ;\n if ( libssh2_sha1_init ( & fingerprint_ctx ) ) {\n libssh2_sha1_update ( fingerprint_ctx , session -> server_hostkey , session -> server_hostkey_len ) ;\n libssh2_sha1_final ( fingerprint_ctx , session -> server_hostkey_sha1 ) ;\n session -> server_hostkey_sha1_valid = TRUE ;\n }\n else {\n session -> server_hostkey_sha1_valid = FALSE ;\n }\n }\n # ifdef LIBSSH2DEBUG {\n char fingerprint [ 64 ] , * fprint = fingerprint ;\n int i ;\n for ( i = 0 ;\n i < 20 ;\n i ++ , fprint += 3 ) {\n snprintf ( fprint , 4 , \"%02x:\" , session -> server_hostkey_sha1 [ i ] ) ;\n }\n * ( -- fprint ) = '\\0' ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Server's SHA1 Fingerprint: %s\" , fingerprint ) ;\n }\n # endif if ( session -> hostkey -> init ( session , session -> server_hostkey , session -> server_hostkey_len , & session -> server_hostkey_abstract ) ) {\n ret = _libssh2_error ( session , LIBSSH2_ERROR_HOSTKEY_INIT , \"Unable to initialize hostkey importer\" ) ;\n goto clean_exit ;\n }\n exchange_state -> f_value_len = _libssh2_ntohu32 ( exchange_state -> s ) ;\n exchange_state -> s += 4 ;\n exchange_state -> f_value = exchange_state -> s ;\n exchange_state -> s += exchange_state -> f_value_len ;\n _libssh2_bn_from_bin ( exchange_state -> f , exchange_state -> f_value_len , exchange_state -> f_value ) ;\n exchange_state -> h_sig_len = _libssh2_ntohu32 ( exchange_state -> s ) ;\n exchange_state -> s += 4 ;\n exchange_state -> h_sig = exchange_state -> s ;\n _libssh2_bn_mod_exp ( exchange_state -> k , exchange_state -> f , exchange_state -> x , p , exchange_state -> ctx ) ;\n exchange_state -> k_value_len = _libssh2_bn_bytes ( exchange_state -> k ) + 5 ;\n if ( _libssh2_bn_bits ( exchange_state -> k ) % 8 ) {\n exchange_state -> k_value_len -- ;\n }\n exchange_state -> k_value = LIBSSH2_ALLOC ( session , exchange_state -> k_value_len ) ;\n if ( ! exchange_state -> k_value ) {\n ret = _libssh2_error ( session , LIBSSH2_ERROR_ALLOC , \"Unable to allocate buffer for K\" ) ;\n goto clean_exit ;\n }\n _libssh2_htonu32 ( exchange_state -> k_value , exchange_state -> k_value_len - 4 ) ;\n if ( _libssh2_bn_bits ( exchange_state -> k ) % 8 ) {\n _libssh2_bn_to_bin ( exchange_state -> k , exchange_state -> k_value + 4 ) ;\n }\n else {\n exchange_state -> k_value [ 4 ] = 0 ;\n _libssh2_bn_to_bin ( exchange_state -> k , exchange_state -> k_value + 5 ) ;\n }\n exchange_state -> exchange_hash = ( void * ) & exchange_hash_ctx ;\n libssh2_sha256_init ( & exchange_hash_ctx ) ;\n if ( session -> local . banner ) {\n _libssh2_htonu32 ( exchange_state -> h_sig_comp , strlen ( ( char * ) session -> local . banner ) - 2 ) ;\n libssh2_sha256_update ( exchange_hash_ctx , exchange_state -> h_sig_comp , 4 ) ;\n libssh2_sha256_update ( exchange_hash_ctx , ( char * ) session -> local . banner , strlen ( ( char * ) session -> local . banner ) - 2 ) ;\n }\n else {\n _libssh2_htonu32 ( exchange_state -> h_sig_comp , sizeof ( LIBSSH2_SSH_DEFAULT_BANNER ) - 1 ) ;\n libssh2_sha256_update ( exchange_hash_ctx , exchange_state -> h_sig_comp , 4 ) ;\n libssh2_sha256_update ( exchange_hash_ctx , LIBSSH2_SSH_DEFAULT_BANNER , sizeof ( LIBSSH2_SSH_DEFAULT_BANNER ) - 1 ) ;\n }\n _libssh2_htonu32 ( exchange_state -> h_sig_comp , strlen ( ( char * ) session -> remote . banner ) ) ;\n libssh2_sha256_update ( exchange_hash_ctx , exchange_state -> h_sig_comp , 4 ) ;\n libssh2_sha256_update ( exchange_hash_ctx , session -> remote . banner , strlen ( ( char * ) session -> remote . banner ) ) ;\n _libssh2_htonu32 ( exchange_state -> h_sig_comp , session -> local . kexinit_len ) ;\n libssh2_sha256_update ( exchange_hash_ctx , exchange_state -> h_sig_comp , 4 ) ;\n libssh2_sha256_update ( exchange_hash_ctx , session -> local . kexinit , session -> local . kexinit_len ) ;\n _libssh2_htonu32 ( exchange_state -> h_sig_comp , session -> remote . kexinit_len ) ;\n libssh2_sha256_update ( exchange_hash_ctx , exchange_state -> h_sig_comp , 4 ) ;\n libssh2_sha256_update ( exchange_hash_ctx , session -> remote . kexinit , session -> remote . kexinit_len ) ;\n _libssh2_htonu32 ( exchange_state -> h_sig_comp , session -> server_hostkey_len ) ;\n libssh2_sha256_update ( exchange_hash_ctx , exchange_state -> h_sig_comp , 4 ) ;\n libssh2_sha256_update ( exchange_hash_ctx , session -> server_hostkey , session -> server_hostkey_len ) ;\n if ( packet_type_init == SSH_MSG_KEX_DH_GEX_INIT ) {\n # ifdef LIBSSH2_DH_GEX_NEW _libssh2_htonu32 ( exchange_state -> h_sig_comp , LIBSSH2_DH_GEX_MINGROUP ) ;\n _libssh2_htonu32 ( exchange_state -> h_sig_comp + 4 , LIBSSH2_DH_GEX_OPTGROUP ) ;\n _libssh2_htonu32 ( exchange_state -> h_sig_comp + 8 , LIBSSH2_DH_GEX_MAXGROUP ) ;\n libssh2_sha256_update ( exchange_hash_ctx , exchange_state -> h_sig_comp , 12 ) ;\n # else _libssh2_htonu32 ( exchange_state -> h_sig_comp , LIBSSH2_DH_GEX_OPTGROUP ) ;\n libssh2_sha256_update ( exchange_hash_ctx , exchange_state -> h_sig_comp , 4 ) ;\n # endif }\n if ( midhash ) {\n libssh2_sha256_update ( exchange_hash_ctx , midhash , midhash_len ) ;\n }\n libssh2_sha256_update ( exchange_hash_ctx , exchange_state -> e_packet + 1 , exchange_state -> e_packet_len - 1 ) ;\n _libssh2_htonu32 ( exchange_state -> h_sig_comp , exchange_state -> f_value_len ) ;\n libssh2_sha256_update ( exchange_hash_ctx , exchange_state -> h_sig_comp , 4 ) ;\n libssh2_sha256_update ( exchange_hash_ctx , exchange_state -> f_value , exchange_state -> f_value_len ) ;\n libssh2_sha256_update ( exchange_hash_ctx , exchange_state -> k_value , exchange_state -> k_value_len ) ;\n libssh2_sha256_final ( exchange_hash_ctx , exchange_state -> h_sig_comp ) ;\n if ( session -> hostkey -> sig_verify ( session , exchange_state -> h_sig , exchange_state -> h_sig_len , exchange_state -> h_sig_comp , SHA256_DIGEST_LENGTH , & session -> server_hostkey_abstract ) ) {\n ret = _libssh2_error ( session , LIBSSH2_ERROR_HOSTKEY_SIGN , \"Unable to verify hostkey signature\" ) ;\n goto clean_exit ;\n }\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Sending NEWKEYS message\" ) ;\n exchange_state -> c = SSH_MSG_NEWKEYS ;\n exchange_state -> state = libssh2_NB_state_sent2 ;\n }\n if ( exchange_state -> state == libssh2_NB_state_sent2 ) {\n rc = _libssh2_transport_send ( session , & exchange_state -> c , 1 , NULL , 0 ) ;\n if ( rc == LIBSSH2_ERROR_EAGAIN ) {\n return rc ;\n }\n else if ( rc ) {\n ret = _libssh2_error ( session , rc , \"Unable to send NEWKEYS message\" ) ;\n goto clean_exit ;\n }\n exchange_state -> state = libssh2_NB_state_sent3 ;\n }\n if ( exchange_state -> state == libssh2_NB_state_sent3 ) {\n rc = _libssh2_packet_require ( session , SSH_MSG_NEWKEYS , & exchange_state -> tmp , & exchange_state -> tmp_len , 0 , NULL , 0 , & exchange_state -> req_state ) ;\n if ( rc == LIBSSH2_ERROR_EAGAIN ) {\n return rc ;\n }\n else if ( rc ) {\n ret = _libssh2_error ( session , rc , \"Timed out waiting for NEWKEYS\" ) ;\n goto clean_exit ;\n }\n session -> state |= LIBSSH2_STATE_NEWKEYS ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Received NEWKEYS message\" ) ;\n LIBSSH2_FREE ( session , exchange_state -> tmp ) ;\n if ( ! session -> session_id ) {\n session -> session_id = LIBSSH2_ALLOC ( session , SHA256_DIGEST_LENGTH ) ;\n if ( ! session -> session_id ) {\n ret = _libssh2_error ( session , LIBSSH2_ERROR_ALLOC , \"Unable to allocate buffer for SHA digest\" ) ;\n goto clean_exit ;\n }\n memcpy ( session -> session_id , exchange_state -> h_sig_comp , SHA256_DIGEST_LENGTH ) ;\n session -> session_id_len = SHA256_DIGEST_LENGTH ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"session_id calculated\" ) ;\n }\n if ( session -> local . crypt -> dtor ) {\n session -> local . crypt -> dtor ( session , & session -> local . crypt_abstract ) ;\n }\n if ( session -> local . crypt -> init ) {\n unsigned char * iv = NULL , * secret = NULL ;\n int free_iv = 0 , free_secret = 0 ;\n LIBSSH2_KEX_METHOD_DIFFIE_HELLMAN_SHA256_HASH ( iv , session -> local . crypt -> iv_len , \"A\" ) ;\n if ( ! iv ) {\n ret = - 1 ;\n goto clean_exit ;\n }\n LIBSSH2_KEX_METHOD_DIFFIE_HELLMAN_SHA256_HASH ( secret , session -> local . crypt -> secret_len , \"C\" ) ;\n if ( ! secret ) {\n LIBSSH2_FREE ( session , iv ) ;\n ret = LIBSSH2_ERROR_KEX_FAILURE ;\n goto clean_exit ;\n }\n if ( session -> local . crypt -> init ( session , session -> local . crypt , iv , & free_iv , secret , & free_secret , 1 , & session -> local . crypt_abstract ) ) {\n LIBSSH2_FREE ( session , iv ) ;\n LIBSSH2_FREE ( session , secret ) ;\n ret = LIBSSH2_ERROR_KEX_FAILURE ;\n goto clean_exit ;\n }\n if ( free_iv ) {\n memset ( iv , 0 , session -> local . crypt -> iv_len ) ;\n LIBSSH2_FREE ( session , iv ) ;\n }\n if ( free_secret ) {\n memset ( secret , 0 , session -> local . crypt -> secret_len ) ;\n LIBSSH2_FREE ( session , secret ) ;\n }\n }\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Client to Server IV and Key calculated\" ) ;\n if ( session -> remote . crypt -> dtor ) {\n session -> remote . crypt -> dtor ( session , & session -> remote . crypt_abstract ) ;\n }\n if ( session -> remote . crypt -> init ) {\n unsigned char * iv = NULL , * secret = NULL ;\n int free_iv = 0 , free_secret = 0 ;\n LIBSSH2_KEX_METHOD_DIFFIE_HELLMAN_SHA256_HASH ( iv , session -> remote . crypt -> iv_len , \"B\" ) ;\n if ( ! iv ) {\n ret = LIBSSH2_ERROR_KEX_FAILURE ;\n goto clean_exit ;\n }\n LIBSSH2_KEX_METHOD_DIFFIE_HELLMAN_SHA256_HASH ( secret , session -> remote . crypt -> secret_len , \"D\" ) ;\n if ( ! secret ) {\n LIBSSH2_FREE ( session , iv ) ;\n ret = LIBSSH2_ERROR_KEX_FAILURE ;\n goto clean_exit ;\n }\n if ( session -> remote . crypt -> init ( session , session -> remote . crypt , iv , & free_iv , secret , & free_secret , 0 , & session -> remote . crypt_abstract ) ) {\n LIBSSH2_FREE ( session , iv ) ;\n LIBSSH2_FREE ( session , secret ) ;\n ret = LIBSSH2_ERROR_KEX_FAILURE ;\n goto clean_exit ;\n }\n if ( free_iv ) {\n memset ( iv , 0 , session -> remote . crypt -> iv_len ) ;\n LIBSSH2_FREE ( session , iv ) ;\n }\n if ( free_secret ) {\n memset ( secret , 0 , session -> remote . crypt -> secret_len ) ;\n LIBSSH2_FREE ( session , secret ) ;\n }\n }\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Server to Client IV and Key calculated\" ) ;\n if ( session -> local . mac -> dtor ) {\n session -> local . mac -> dtor ( session , & session -> local . mac_abstract ) ;\n }\n if ( session -> local . mac -> init ) {\n unsigned char * key = NULL ;\n int free_key = 0 ;\n LIBSSH2_KEX_METHOD_DIFFIE_HELLMAN_SHA256_HASH ( key , session -> local . mac -> key_len , \"E\" ) ;\n if ( ! key ) {\n ret = LIBSSH2_ERROR_KEX_FAILURE ;\n goto clean_exit ;\n }\n session -> local . mac -> init ( session , key , & free_key , & session -> local . mac_abstract ) ;\n if ( free_key ) {\n memset ( key , 0 , session -> local . mac -> key_len ) ;\n LIBSSH2_FREE ( session , key ) ;\n }\n }\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Client to Server HMAC Key calculated\" ) ;\n if ( session -> remote . mac -> dtor ) {\n session -> remote . mac -> dtor ( session , & session -> remote . mac_abstract ) ;\n }\n if ( session -> remote . mac -> init ) {\n unsigned char * key = NULL ;\n int free_key = 0 ;\n LIBSSH2_KEX_METHOD_DIFFIE_HELLMAN_SHA256_HASH ( key , session -> remote . mac -> key_len , \"F\" ) ;\n if ( ! key ) {\n ret = LIBSSH2_ERROR_KEX_FAILURE ;\n goto clean_exit ;\n }\n session -> remote . mac -> init ( session , key , & free_key , & session -> remote . mac_abstract ) ;\n if ( free_key ) {\n memset ( key , 0 , session -> remote . mac -> key_len ) ;\n LIBSSH2_FREE ( session , key ) ;\n }\n }\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Server to Client HMAC Key calculated\" ) ;\n if ( session -> local . comp && session -> local . comp -> dtor ) {\n session -> local . comp -> dtor ( session , 1 , & session -> local . comp_abstract ) ;\n }\n if ( session -> local . comp && session -> local . comp -> init ) {\n if ( session -> local . comp -> init ( session , 1 , & session -> local . comp_abstract ) ) {\n ret = LIBSSH2_ERROR_KEX_FAILURE ;\n goto clean_exit ;\n }\n }\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Client to Server compression initialized\" ) ;\n if ( session -> remote . comp && session -> remote . comp -> dtor ) {\n session -> remote . comp -> dtor ( session , 0 , & session -> remote . comp_abstract ) ;\n }\n if ( session -> remote . comp && session -> remote . comp -> init ) {\n if ( session -> remote . comp -> init ( session , 0 , & session -> remote . comp_abstract ) ) {\n ret = LIBSSH2_ERROR_KEX_FAILURE ;\n goto clean_exit ;\n }\n }\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Server to Client compression initialized\" ) ;\n }\n clean_exit : _libssh2_bn_free ( exchange_state -> x ) ;\n exchange_state -> x = NULL ;\n _libssh2_bn_free ( exchange_state -> e ) ;\n exchange_state -> e = NULL ;\n _libssh2_bn_free ( exchange_state -> f ) ;\n exchange_state -> f = NULL ;\n _libssh2_bn_free ( exchange_state -> k ) ;\n exchange_state -> k = NULL ;\n _libssh2_bn_ctx_free ( exchange_state -> ctx ) ;\n exchange_state -> ctx = NULL ;\n if ( exchange_state -> e_packet ) {\n LIBSSH2_FREE ( session , exchange_state -> e_packet ) ;\n exchange_state -> e_packet = NULL ;\n }\n if ( exchange_state -> s_packet ) {\n LIBSSH2_FREE ( session , exchange_state -> s_packet ) ;\n exchange_state -> s_packet = NULL ;\n }\n if ( exchange_state -> k_value ) {\n LIBSSH2_FREE ( session , exchange_state -> k_value ) ;\n exchange_state -> k_value = NULL ;\n }\n exchange_state -> state = libssh2_NB_state_idle ;\n return ret ;\n }"}
{"idx": 1293, "target": 0, "func": "static void restore_toc_entries_parallel ( ArchiveHandle * AH , ParallelState * pstate , TocEntry * pending_list ) {\n int work_status ;\n bool skipped_some ;\n TocEntry ready_list ;\n TocEntry * next_work_item ;\n int ret_child ;\n ahlog ( AH , 2 , \"entering restore_toc_entries_parallel\\n\" ) ;\n par_list_header_init ( & ready_list ) ;\n skipped_some = false ;\n for ( next_work_item = AH -> toc -> next ;\n next_work_item != AH -> toc ;\n next_work_item = next_work_item -> next ) {\n if ( next_work_item -> section == SECTION_PRE_DATA ) {\n continue ;\n }\n if ( next_work_item -> section == SECTION_DATA || next_work_item -> section == SECTION_POST_DATA ) {\n skipped_some = true ;\n }\n else {\n if ( ! skipped_some ) continue ;\n }\n if ( next_work_item -> depCount > 0 ) par_list_append ( pending_list , next_work_item ) ;\n else par_list_append ( & ready_list , next_work_item ) ;\n }\n ahlog ( AH , 1 , \"entering main parallel loop\\n\" ) ;\n while ( ( next_work_item = get_next_work_item ( AH , & ready_list , pstate ) ) != NULL || ! IsEveryWorkerIdle ( pstate ) ) {\n if ( next_work_item != NULL ) {\n if ( ( next_work_item -> reqs & ( REQ_SCHEMA | REQ_DATA ) ) == 0 || _tocEntryIsACL ( next_work_item ) ) {\n ahlog ( AH , 1 , \"skipping item %d %s %s\\n\" , next_work_item -> dumpId , next_work_item -> desc , next_work_item -> tag ) ;\n par_list_remove ( next_work_item ) ;\n reduce_dependencies ( AH , next_work_item , & ready_list ) ;\n continue ;\n }\n ahlog ( AH , 1 , \"launching item %d %s %s\\n\" , next_work_item -> dumpId , next_work_item -> desc , next_work_item -> tag ) ;\n par_list_remove ( next_work_item ) ;\n DispatchJobForTocEntry ( AH , pstate , next_work_item , ACT_RESTORE ) ;\n }\n else {\n }\n for ( ;\n ;\n ) {\n int nTerm = 0 ;\n ListenToWorkers ( AH , pstate , ! next_work_item ) ;\n while ( ( ret_child = ReapWorkerStatus ( pstate , & work_status ) ) != NO_SLOT ) {\n nTerm ++ ;\n mark_work_done ( AH , & ready_list , ret_child , work_status , pstate ) ;\n }\n if ( nTerm > 0 ) break ;\n if ( GetIdleWorker ( pstate ) != NO_SLOT ) break ;\n ListenToWorkers ( AH , pstate , true ) ;\n }\n }\n ahlog ( AH , 1 , \"finished main parallel loop\\n\" ) ;\n }"}
{"idx": 1294, "target": 0, "func": "static int cinepak_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int ret = 0 , buf_size = avpkt -> size ;\n CinepakContext * s = avctx -> priv_data ;\n s -> data = buf ;\n s -> size = buf_size ;\n if ( ( ret = ff_reget_buffer ( avctx , & s -> frame ) ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( s -> palette_video ) {\n const uint8_t * pal = av_packet_get_side_data ( avpkt , AV_PKT_DATA_PALETTE , NULL ) ;\n if ( pal ) {\n s -> frame . palette_has_changed = 1 ;\n memcpy ( s -> pal , pal , AVPALETTE_SIZE ) ;\n }\n }\n cinepak_decode ( s ) ;\n if ( s -> palette_video ) memcpy ( s -> frame . data [ 1 ] , s -> pal , AVPALETTE_SIZE ) ;\n if ( ( ret = av_frame_ref ( data , & s -> frame ) ) < 0 ) return ret ;\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 1295, "target": 0, "func": "SRP_user_pwd * SRP_VBASE_get1_by_user ( SRP_VBASE * vb , char * username ) {\n SRP_user_pwd * user ;\n unsigned char digv [ SHA_DIGEST_LENGTH ] ;\n unsigned char digs [ SHA_DIGEST_LENGTH ] ;\n EVP_MD_CTX ctxt ;\n if ( vb == NULL ) return NULL ;\n if ( ( user = find_user ( vb , username ) ) != NULL ) return srp_user_pwd_dup ( user ) ;\n if ( ( vb -> seed_key == NULL ) || ( vb -> default_g == NULL ) || ( vb -> default_N == NULL ) ) return NULL ;\n if ( ( user = SRP_user_pwd_new ( ) ) == NULL ) return NULL ;\n SRP_user_pwd_set_gN ( user , vb -> default_g , vb -> default_N ) ;\n if ( ! SRP_user_pwd_set_ids ( user , username , NULL ) ) goto err ;\n if ( RAND_pseudo_bytes ( digv , SHA_DIGEST_LENGTH ) < 0 ) goto err ;\n EVP_MD_CTX_init ( & ctxt ) ;\n EVP_DigestInit_ex ( & ctxt , EVP_sha1 ( ) , NULL ) ;\n EVP_DigestUpdate ( & ctxt , vb -> seed_key , strlen ( vb -> seed_key ) ) ;\n EVP_DigestUpdate ( & ctxt , username , strlen ( username ) ) ;\n EVP_DigestFinal_ex ( & ctxt , digs , NULL ) ;\n EVP_MD_CTX_cleanup ( & ctxt ) ;\n if ( SRP_user_pwd_set_sv_BN ( user , BN_bin2bn ( digs , SHA_DIGEST_LENGTH , NULL ) , BN_bin2bn ( digv , SHA_DIGEST_LENGTH , NULL ) ) ) return user ;\n err : SRP_user_pwd_free ( user ) ;\n return NULL ;\n }"}
{"idx": 1296, "target": 0, "func": "int evhttp_del_cb ( struct evhttp * http , const char * uri ) {\n struct evhttp_cb * http_cb ;\n TAILQ_FOREACH ( http_cb , & http -> callbacks , next ) {\n if ( strcmp ( http_cb -> what , uri ) == 0 ) break ;\n }\n if ( http_cb == NULL ) return ( - 1 ) ;\n TAILQ_REMOVE ( & http -> callbacks , http_cb , next ) ;\n free ( http_cb -> what ) ;\n free ( http_cb ) ;\n return ( 0 ) ;\n }"}
{"idx": 1297, "target": 0, "func": "static void selinux_msg_queue_free_security ( struct msg_queue * msq ) {\n ipc_free_security ( & msq -> q_perm ) ;\n }"}
{"idx": 1298, "target": 0, "func": "int fz_colorspace_device_n_has_cmyk ( fz_context * ctx , const fz_colorspace * cs ) {\n return cs && ( cs -> flags & FZ_CS_HAS_CMYK ) ;\n }"}
{"idx": 1299, "target": 0, "func": "static void _slurm_rpc_block_info ( slurm_msg_t * msg ) {\n int error_code = SLURM_SUCCESS ;\n Buf buffer = NULL ;\n block_info_request_msg_t * sel_req_msg = ( block_info_request_msg_t * ) msg -> data ;\n slurm_msg_t response_msg ;\n slurmctld_lock_t config_read_lock = {\n READ_LOCK , NO_LOCK , NO_LOCK , NO_LOCK , NO_LOCK }\n ;\n DEF_TIMERS ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n START_TIMER ;\n debug2 ( \"Processing RPC: REQUEST_BLOCK_INFO from uid=%d\" , uid ) ;\n lock_slurmctld ( config_read_lock ) ;\n if ( ( slurmctld_conf . private_data & PRIVATE_DATA_NODES ) && ! validate_operator ( uid ) ) {\n error_code = ESLURM_ACCESS_DENIED ;\n error ( \"Security violation, REQUEST_BLOCK_INFO RPC from uid=%d\" , uid ) ;\n }\n unlock_slurmctld ( config_read_lock ) ;\n if ( error_code == SLURM_SUCCESS ) {\n error_code = select_g_pack_select_info ( sel_req_msg -> last_update , sel_req_msg -> show_flags , & buffer , msg -> protocol_version ) ;\n }\n END_TIMER2 ( \"_slurm_rpc_block_info\" ) ;\n if ( error_code ) {\n debug3 ( \"_slurm_rpc_block_info: %s\" , slurm_strerror ( error_code ) ) ;\n slurm_send_rc_msg ( msg , error_code ) ;\n }\n else {\n slurm_msg_t_init ( & response_msg ) ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . address = msg -> address ;\n response_msg . conn = msg -> conn ;\n response_msg . msg_type = RESPONSE_BLOCK_INFO ;\n response_msg . data = get_buf_data ( buffer ) ;\n response_msg . data_size = get_buf_offset ( buffer ) ;\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n free_buf ( buffer ) ;\n }\n }"}
{"idx": 1300, "target": 0, "func": "pdf_cmap * pdf_keep_cmap ( fz_context * ctx , pdf_cmap * cmap ) {\n return fz_keep_storable ( ctx , & cmap -> storable ) ;\n }"}
{"idx": 1301, "target": 0, "func": "static void astream_part_reset ( struct attachment_istream * astream ) {\n struct attachment_istream_part * part = & astream -> part ;\n if ( part -> temp_output != NULL ) o_stream_destroy ( & part -> temp_output ) ;\n if ( part -> temp_fd != - 1 ) i_close_fd ( & part -> temp_fd ) ;\n i_free_and_null ( part -> content_type ) ;\n i_free_and_null ( part -> content_disposition ) ;\n if ( part -> part_buf != NULL ) buffer_free ( & part -> part_buf ) ;\n i_zero ( part ) ;\n part -> temp_fd = - 1 ;\n hash_format_reset ( astream -> set . hash_format ) ;\n }"}
{"idx": 1302, "target": 0, "func": "static void handle_header ( struct message_search_context * ctx , struct message_header_line * hdr ) {\n if ( hdr -> name_len == 12 && strcasecmp ( hdr -> name , \"Content-Type\" ) == 0 ) {\n if ( hdr -> continues ) {\n hdr -> use_full_value = TRUE ;\n return ;\n }\n T_BEGIN {\n parse_content_type ( ctx , hdr ) ;\n }\n T_END ;\n }\n }"}
{"idx": 1303, "target": 0, "func": "static void gx_ttfExport__Close ( ttfExport * self ) {\n gx_ttfExport * e = ( gx_ttfExport * ) self ;\n if ( ! e -> error ) e -> error = gx_path_close_subpath_notes ( e -> path , sn_none ) ;\n }"}
{"idx": 1304, "target": 0, "func": "static void init_dir_data ( iax_call_dirdata * dirdata ) {\n dirdata -> current_frag_bytes = 0 ;\n dirdata -> current_frag_minlen = 0 ;\n }"}
{"idx": 1305, "target": 0, "func": "static void gen_dirac_train ( int16_t * buf , int pitch_lag ) {\n int16_t vector [ SUBFRAME_LEN ] ;\n int i , j ;\n memcpy ( vector , buf , SUBFRAME_LEN * sizeof ( * vector ) ) ;\n for ( i = pitch_lag ;\n i < SUBFRAME_LEN ;\n i += pitch_lag ) {\n for ( j = 0 ;\n j < SUBFRAME_LEN - i ;\n j ++ ) buf [ i + j ] += vector [ j ] ;\n }\n }"}
{"idx": 1306, "target": 0, "func": "TSReturnCode TSMgmtStringCreate ( TSRecordType rec_type , const char * name , const TSMgmtString data_default , TSRecordUpdateType update_type , TSRecordCheckType check_type , const char * check_regex , TSRecordAccessType access_type ) {\n if ( check_regex == nullptr && check_type != TS_RECORDCHECK_NULL ) {\n return TS_ERROR ;\n }\n if ( REC_ERR_OKAY != RecRegisterConfigString ( ( enum RecT ) rec_type , name , data_default , ( enum RecUpdateT ) update_type , ( enum RecCheckT ) check_type , check_regex , REC_SOURCE_PLUGIN , ( enum RecAccessT ) access_type ) ) {\n return TS_ERROR ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 1307, "target": 1, "func": "void xsltFreeDocuments ( xsltTransformContextPtr ctxt ) {\n xsltDocumentPtr doc , cur ;\n cur = ctxt -> docList ;\n while ( cur != NULL ) {\n doc = cur ;\n cur = cur -> next ;\n xsltFreeDocumentKeys ( doc ) ;\n if ( ! doc -> main ) xmlFreeDoc ( doc -> doc ) ;\n xmlFree ( doc ) ;\n }\n cur = ctxt -> styleList ;\n while ( cur != NULL ) {\n doc = cur ;\n cur = cur -> next ;\n xsltFreeDocumentKeys ( doc ) ;\n if ( ! doc -> main ) xmlFreeDoc ( doc -> doc ) ;\n xmlFree ( doc ) ;\n }\n }"}
{"idx": 1308, "target": 0, "func": "static void asf_demux_parse_picture_tag ( GstTagList * tags , const guint8 * tag_data , guint tag_data_len ) {\n GstByteReader r ;\n const guint8 * img_data = NULL ;\n guint32 img_data_len = 0 ;\n guint8 pic_type = 0 ;\n gst_byte_reader_init ( & r , tag_data , tag_data_len ) ;\n if ( ! gst_byte_reader_get_uint8 ( & r , & pic_type ) || ! gst_byte_reader_get_uint32_le ( & r , & img_data_len ) || ! gst_byte_reader_skip_string_utf16 ( & r ) || ! gst_byte_reader_skip_string_utf16 ( & r ) || ! gst_byte_reader_get_data ( & r , img_data_len , & img_data ) ) {\n goto not_enough_data ;\n }\n if ( ! gst_tag_list_add_id3_image ( tags , img_data , img_data_len , pic_type ) ) GST_DEBUG ( \"failed to add image extracted from WM/Picture tag to taglist\" ) ;\n return ;\n not_enough_data : {\n GST_DEBUG ( \"Failed to read WM/Picture tag: not enough data\" ) ;\n GST_MEMDUMP ( \"WM/Picture data\" , tag_data , tag_data_len ) ;\n return ;\n }\n }"}
{"idx": 1309, "target": 0, "func": "static vpx_codec_err_t extract_option ( LAYER_OPTION_TYPE type , char * input , int * value0 , int * value1 ) {\n if ( type == SCALE_FACTOR ) {\n * value0 = strtol ( input , & input , 10 ) ;\n if ( * input ++ != '/' ) return VPX_CODEC_INVALID_PARAM ;\n * value1 = strtol ( input , & input , 10 ) ;\n if ( * value0 < option_min_values [ SCALE_FACTOR ] || * value1 < option_min_values [ SCALE_FACTOR ] || * value0 > option_max_values [ SCALE_FACTOR ] || * value1 > option_max_values [ SCALE_FACTOR ] || * value0 > * value1 ) return VPX_CODEC_INVALID_PARAM ;\n }\n else {\n * value0 = atoi ( input ) ;\n if ( * value0 < option_min_values [ type ] || * value0 > option_max_values [ type ] ) return VPX_CODEC_INVALID_PARAM ;\n }\n return VPX_CODEC_OK ;\n }"}
{"idx": 1310, "target": 0, "func": "static int dissect_h225_LocationConfirm ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_LocationConfirm , LocationConfirm_sequence ) ;\n return offset ;\n }"}
{"idx": 1311, "target": 0, "func": "int dissect_ber_relative_oid_str ( gboolean implicit_tag , asn1_ctx_t * actx , proto_tree * tree , tvbuff_t * tvb , int offset , gint hf_id , const char * * value_stringx ) {\n return dissect_ber_any_oid_str ( implicit_tag , actx , tree , tvb , offset , hf_id , value_stringx , FALSE ) ;\n }"}
{"idx": 1312, "target": 0, "func": "static int loco_decode_plane ( LOCOContext * l , uint8_t * data , int width , int height , int stride , const uint8_t * buf , int buf_size , int step ) {\n RICEContext rc ;\n int val ;\n int i , j ;\n init_get_bits ( & rc . gb , buf , buf_size * 8 ) ;\n rc . save = 0 ;\n rc . run = 0 ;\n rc . run2 = 0 ;\n rc . lossy = l -> lossy ;\n rc . sum = 8 ;\n rc . count = 1 ;\n val = loco_get_rice ( & rc ) ;\n data [ 0 ] = 128 + val ;\n for ( i = 1 ;\n i < width ;\n i ++ ) {\n val = loco_get_rice ( & rc ) ;\n data [ i * step ] = data [ i * step - step ] + val ;\n }\n data += stride ;\n for ( j = 1 ;\n j < height ;\n j ++ ) {\n val = loco_get_rice ( & rc ) ;\n data [ 0 ] = data [ - stride ] + val ;\n for ( i = 1 ;\n i < width ;\n i ++ ) {\n val = loco_get_rice ( & rc ) ;\n data [ i * step ] = loco_predict ( & data [ i * step ] , stride , step ) + val ;\n }\n data += stride ;\n }\n return ( get_bits_count ( & rc . gb ) + 7 ) >> 3 ;\n }"}
{"idx": 1313, "target": 0, "func": "static int common_end ( HYuvContext * s ) {\n int i ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n av_freep ( & s -> temp [ i ] ) ;\n }\n return 0 ;\n }"}
{"idx": 1314, "target": 0, "func": "static void setup_BAT ( CPUPPCState * env , int BAT , uint32_t virtual , uint32_t physical , uint32_t size , int Vs , int Vp , int PP ) {\n uint32_t sz_bits , tmp_sz , align , tmp ;\n sz_bits = 0 ;\n align = 131072 ;\n for ( tmp_sz = size / 131072 ;\n tmp_sz != 1 ;\n tmp_sz = tmp_sz >> 1 ) {\n sz_bits = ( sz_bits << 1 ) + 1 ;\n align = align << 1 ;\n }\n tmp = virtual & ~ ( align - 1 ) ;\n tmp |= sz_bits << 2 ;\n tmp |= Vs << 1 ;\n tmp |= Vp ;\n env -> DBAT [ 0 ] [ BAT ] = tmp ;\n env -> IBAT [ 0 ] [ BAT ] = tmp ;\n tmp = physical & ~ ( align - 1 ) ;\n tmp |= 0 ;\n tmp |= PP ;\n env -> DBAT [ 1 ] [ BAT ] = tmp ;\n env -> IBAT [ 1 ] [ BAT ] = tmp ;\n printf ( \"Set BATU0 to 0x%08x BATL0 to 0x%08x\\n\" , env -> DBAT [ 0 ] [ BAT ] , env -> DBAT [ 1 ] [ BAT ] ) ;\n }"}
{"idx": 1315, "target": 0, "func": "static gboolean is_mpa_fpdu ( packet_info * pinfo ) {\n conversation_t * conversation = NULL ;\n mpa_state_t * state = NULL ;\n conversation = find_conversation ( pinfo -> num , & pinfo -> src , & pinfo -> dst , pinfo -> ptype , pinfo -> srcport , pinfo -> destport , 0 ) ;\n if ( ! conversation ) {\n return FALSE ;\n }\n state = get_mpa_state ( conversation ) ;\n if ( ! state ) {\n return FALSE ;\n }\n if ( ! state -> full_operation ) {\n return FALSE ;\n }\n if ( pinfo -> num == state -> req_frame_num || pinfo -> num == state -> rep_frame_num ) {\n return FALSE ;\n }\n else {\n return TRUE ;\n }\n }"}
{"idx": 1316, "target": 0, "func": "CURLcode glob_match_url ( char * * result , char * filename , URLGlob * glob ) {\n char * target ;\n size_t allocsize ;\n char numbuf [ 18 ] ;\n char * appendthis = NULL ;\n size_t appendlen = 0 ;\n size_t stringlen = 0 ;\n * result = NULL ;\n allocsize = strlen ( filename ) + 1 ;\n target = malloc ( allocsize ) ;\n if ( ! target ) return CURLE_OUT_OF_MEMORY ;\n while ( * filename ) {\n if ( * filename == '#' && ISDIGIT ( filename [ 1 ] ) ) {\n unsigned long i ;\n char * ptr = filename ;\n unsigned long num = strtoul ( & filename [ 1 ] , & filename , 10 ) ;\n URLPattern * pat = NULL ;\n if ( num < glob -> size ) {\n num -- ;\n for ( i = 0 ;\n i < glob -> size ;\n i ++ ) {\n if ( glob -> pattern [ i ] . globindex == ( int ) num ) {\n pat = & glob -> pattern [ i ] ;\n break ;\n }\n }\n }\n if ( pat ) {\n switch ( pat -> type ) {\n case UPTSet : if ( pat -> content . Set . elements ) {\n appendthis = pat -> content . Set . elements [ pat -> content . Set . ptr_s ] ;\n appendlen = strlen ( pat -> content . Set . elements [ pat -> content . Set . ptr_s ] ) ;\n }\n break ;\n case UPTCharRange : numbuf [ 0 ] = pat -> content . CharRange . ptr_c ;\n numbuf [ 1 ] = 0 ;\n appendthis = numbuf ;\n appendlen = 1 ;\n break ;\n case UPTNumRange : snprintf ( numbuf , sizeof ( numbuf ) , \"%0*d\" , pat -> content . NumRange . padlength , pat -> content . NumRange . ptr_n ) ;\n appendthis = numbuf ;\n appendlen = strlen ( numbuf ) ;\n break ;\n default : fprintf ( stderr , \"internal error: invalid pattern type (%d)\\n\" , ( int ) pat -> type ) ;\n Curl_safefree ( target ) ;\n return CURLE_FAILED_INIT ;\n }\n }\n else {\n filename = ptr ;\n appendthis = filename ++ ;\n appendlen = 1 ;\n }\n }\n else {\n appendthis = filename ++ ;\n appendlen = 1 ;\n }\n if ( appendlen + stringlen >= allocsize ) {\n char * newstr ;\n allocsize = ( appendlen + stringlen ) * 2 ;\n newstr = realloc ( target , allocsize + 1 ) ;\n if ( ! newstr ) {\n Curl_safefree ( target ) ;\n return CURLE_OUT_OF_MEMORY ;\n }\n target = newstr ;\n }\n memcpy ( & target [ stringlen ] , appendthis , appendlen ) ;\n stringlen += appendlen ;\n }\n target [ stringlen ] = '\\0' ;\n # if defined ( MSDOS ) || defined ( WIN32 ) {\n char * sanitized ;\n SANITIZEcode sc = sanitize_file_name ( & sanitized , target , ( SANITIZE_ALLOW_PATH | SANITIZE_ALLOW_RESERVED ) ) ;\n Curl_safefree ( target ) ;\n if ( sc ) return CURLE_URL_MALFORMAT ;\n target = sanitized ;\n }\n # endif * result = target ;\n return CURLE_OK ;\n }"}
{"idx": 1317, "target": 0, "func": "static int dissect_mac_fdd_dch ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n guint16 pos ;\n guint8 bitoffs = 0 ;\n umts_mac_info * macinf ;\n fp_info * fpinf ;\n rlc_info * rlcinf ;\n proto_tree * dch_tree = NULL ;\n proto_item * channel_type ;\n tvbuff_t * next_tvb ;\n proto_item * ti = NULL ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"MAC\" ) ;\n ti = proto_tree_add_item ( tree , proto_umts_mac , tvb , 0 , - 1 , ENC_NA ) ;\n dch_tree = proto_item_add_subtree ( ti , ett_mac_dch ) ;\n macinf = ( umts_mac_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_umts_mac , 0 ) ;\n fpinf = ( fp_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_fp , 0 ) ;\n rlcinf = ( rlc_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_rlc , 0 ) ;\n if ( ! macinf || ! fpinf ) {\n proto_tree_add_expert ( dch_tree , pinfo , & ei_mac_per_frame_info_missing , tvb , 0 , - 1 ) ;\n return 1 ;\n }\n pos = fpinf -> cur_tb ;\n if ( macinf -> ctmux [ pos ] ) {\n if ( rlcinf ) {\n rlcinf -> rbid [ fpinf -> cur_tb ] = tvb_get_bits8 ( tvb , bitoffs , 4 ) + 1 ;\n }\n proto_tree_add_bits_item ( dch_tree , hf_mac_ct , tvb , 0 , 4 , ENC_BIG_ENDIAN ) ;\n bitoffs = 4 ;\n }\n if ( bitoffs ) {\n next_tvb = tvb_new_octet_aligned ( tvb , bitoffs , fpinf -> chan_tf_size [ pos ] - bitoffs ) ;\n add_new_data_source ( pinfo , next_tvb , \"Octet-Aligned DCCH Data\" ) ;\n }\n else next_tvb = tvb ;\n switch ( macinf -> content [ pos ] ) {\n case MAC_CONTENT_DCCH : proto_item_append_text ( ti , \" (DCCH)\" ) ;\n channel_type = proto_tree_add_uint ( dch_tree , hf_mac_lch_id , tvb , 0 , 0 , macinf -> lchid [ pos ] ) ;\n PROTO_ITEM_SET_GENERATED ( channel_type ) ;\n if ( macinf -> lchid [ pos ] != 255 ) {\n if ( macinf -> fake_chid [ pos ] ) {\n expert_add_info ( pinfo , channel_type , & ei_mac_faked_logical_channel_id ) ;\n }\n }\n else {\n expert_add_info ( pinfo , channel_type , & ei_mac_no_logical_channel ) ;\n }\n channel_type = proto_tree_add_uint ( dch_tree , hf_mac_channel , tvb , 0 , 0 , MAC_DCCH ) ;\n PROTO_ITEM_SET_GENERATED ( channel_type ) ;\n channel_type = proto_tree_add_uint ( dch_tree , hf_mac_trch_id , tvb , 0 , 0 , macinf -> trchid [ pos ] ) ;\n PROTO_ITEM_SET_GENERATED ( channel_type ) ;\n call_dissector_with_data ( rlc_dcch_handle , next_tvb , pinfo , tree , data ) ;\n break ;\n case MAC_CONTENT_PS_DTCH : proto_item_append_text ( ti , \" (PS DTCH)\" ) ;\n channel_type = proto_tree_add_uint ( dch_tree , hf_mac_lch_id , tvb , 0 , 0 , macinf -> lchid [ pos ] ) ;\n PROTO_ITEM_SET_GENERATED ( channel_type ) ;\n if ( macinf -> lchid [ pos ] == 255 ) {\n expert_add_info ( pinfo , channel_type , & ei_mac_no_logical_channel ) ;\n }\n channel_type = proto_tree_add_uint ( dch_tree , hf_mac_channel , tvb , 0 , 0 , MAC_DTCH ) ;\n PROTO_ITEM_SET_GENERATED ( channel_type ) ;\n call_dissector_with_data ( rlc_ps_dtch_handle , next_tvb , pinfo , tree , data ) ;\n break ;\n case MAC_CONTENT_CS_DTCH : proto_item_append_text ( ti , \" (CS DTCH)\" ) ;\n channel_type = proto_tree_add_uint ( dch_tree , hf_mac_lch_id , tvb , 0 , 0 , macinf -> lchid [ pos ] ) ;\n PROTO_ITEM_SET_GENERATED ( channel_type ) ;\n if ( macinf -> lchid [ pos ] != 255 ) {\n if ( macinf -> fake_chid [ pos ] ) {\n expert_add_info ( pinfo , channel_type , & ei_mac_faked_logical_channel_id ) ;\n }\n }\n else {\n expert_add_info ( pinfo , channel_type , & ei_mac_no_logical_channel ) ;\n }\n channel_type = proto_tree_add_uint ( dch_tree , hf_mac_channel , tvb , 0 , 0 , MAC_DTCH ) ;\n PROTO_ITEM_SET_GENERATED ( channel_type ) ;\n channel_type = proto_tree_add_uint ( dch_tree , hf_mac_trch_id , tvb , 0 , 0 , macinf -> trchid [ pos ] ) ;\n PROTO_ITEM_SET_GENERATED ( channel_type ) ;\n break ;\n default : proto_item_append_text ( ti , \" (Unknown DCH Content)\" ) ;\n expert_add_info_format ( pinfo , NULL , & ei_mac_unknown_content , \"Unknown DCH Content\" ) ;\n }\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 1318, "target": 0, "func": "static void systick_timer_tick ( void * opaque ) {\n nvic_state * s = ( nvic_state * ) opaque ;\n s -> systick . control |= SYSTICK_COUNTFLAG ;\n if ( s -> systick . control & SYSTICK_TICKINT ) {\n armv7m_nvic_set_pending ( s , ARMV7M_EXCP_SYSTICK ) ;\n }\n if ( s -> systick . reload == 0 ) {\n s -> systick . control &= ~ SYSTICK_ENABLE ;\n }\n else {\n systick_reload ( s , 0 ) ;\n }\n }"}
{"idx": 1319, "target": 0, "func": "static zend_object_value spl_filesystem_object_new ( zend_class_entry * class_type TSRMLS_DC ) {\n return spl_filesystem_object_new_ex ( class_type , NULL TSRMLS_CC ) ;\n }"}
{"idx": 1320, "target": 0, "func": "static gboolean dissect_q931_tpkt_heur ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n int lv_tpkt_len ;\n lv_tpkt_len = is_tpkt ( tvb , 3 ) ;\n if ( lv_tpkt_len == - 1 ) {\n return FALSE ;\n }\n if ( tvb_reported_length ( tvb ) == 4 ) {\n dissect_tpkt_encap ( tvb , pinfo , tree , q931_desegment , q931_tpkt_pdu_handle ) ;\n return TRUE ;\n }\n if ( ! tvb_bytes_exist ( tvb , 4 , 3 ) ) return FALSE ;\n if ( ( tvb_get_guint8 ( tvb , 4 ) != NLPID_Q_931 ) && ( tvb_get_guint8 ( tvb , 4 ) != 0x03 ) ) {\n return FALSE ;\n }\n dissect_tpkt_encap ( tvb , pinfo , tree , q931_desegment , q931_tpkt_pdu_handle ) ;\n return TRUE ;\n }"}
{"idx": 1321, "target": 0, "func": "static void copy_clog_xlog_xid ( void ) {\n copy_subdir_files ( \"pg_clog\" ) ;\n prep_status ( \"Setting next transaction ID and epoch for new cluster\" ) ;\n exec_prog ( UTILITY_LOG_FILE , NULL , true , \"\\\"%s/pg_resetxlog\\\" -f -x %u \\\"%s\\\"\" , new_cluster . bindir , old_cluster . controldata . chkpnt_nxtxid , new_cluster . pgdata ) ;\n exec_prog ( UTILITY_LOG_FILE , NULL , true , \"\\\"%s/pg_resetxlog\\\" -f -e %u \\\"%s\\\"\" , new_cluster . bindir , old_cluster . controldata . chkpnt_nxtepoch , new_cluster . pgdata ) ;\n exec_prog ( UTILITY_LOG_FILE , NULL , true , \"\\\"%s/pg_resetxlog\\\" -f -c %u,%u \\\"%s\\\"\" , new_cluster . bindir , old_cluster . controldata . chkpnt_nxtxid , old_cluster . controldata . chkpnt_nxtxid , new_cluster . pgdata ) ;\n check_ok ( ) ;\n if ( old_cluster . controldata . cat_ver >= MULTIXACT_FORMATCHANGE_CAT_VER && new_cluster . controldata . cat_ver >= MULTIXACT_FORMATCHANGE_CAT_VER ) {\n copy_subdir_files ( \"pg_multixact/offsets\" ) ;\n copy_subdir_files ( \"pg_multixact/members\" ) ;\n prep_status ( \"Setting next multixact ID and offset for new cluster\" ) ;\n exec_prog ( UTILITY_LOG_FILE , NULL , true , \"\\\"%s/pg_resetxlog\\\" -O %u -m %u,%u \\\"%s\\\"\" , new_cluster . bindir , old_cluster . controldata . chkpnt_nxtmxoff , old_cluster . controldata . chkpnt_nxtmulti , old_cluster . controldata . chkpnt_oldstMulti , new_cluster . pgdata ) ;\n check_ok ( ) ;\n }\n else if ( new_cluster . controldata . cat_ver >= MULTIXACT_FORMATCHANGE_CAT_VER ) {\n remove_new_subdir ( \"pg_multixact/offsets\" , false ) ;\n prep_status ( \"Setting oldest multixact ID on new cluster\" ) ;\n exec_prog ( UTILITY_LOG_FILE , NULL , true , \"\\\"%s/pg_resetxlog\\\" -m %u,%u \\\"%s\\\"\" , new_cluster . bindir , old_cluster . controldata . chkpnt_nxtmulti + 1 , old_cluster . controldata . chkpnt_nxtmulti , new_cluster . pgdata ) ;\n check_ok ( ) ;\n }\n prep_status ( \"Resetting WAL archives\" ) ;\n exec_prog ( UTILITY_LOG_FILE , NULL , true , \"\\\"%s/pg_resetxlog\\\" -l 00000001%s \\\"%s\\\"\" , new_cluster . bindir , old_cluster . controldata . nextxlogfile + 8 , new_cluster . pgdata ) ;\n check_ok ( ) ;\n }"}
{"idx": 1322, "target": 0, "func": "static inline int pfkey_mode_to_xfrm ( int mode ) {\n switch ( mode ) {\n case IPSEC_MODE_ANY : case IPSEC_MODE_TRANSPORT : return XFRM_MODE_TRANSPORT ;\n case IPSEC_MODE_TUNNEL : return XFRM_MODE_TUNNEL ;\n case IPSEC_MODE_BEET : return XFRM_MODE_BEET ;\n default : return - 1 ;\n }\n }"}
{"idx": 1323, "target": 1, "func": "static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 1324, "target": 0, "func": "static int dissect_h245_AudioTelephonyEventCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_AudioTelephonyEventCapability , AudioTelephonyEventCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 1325, "target": 0, "func": "static void choose_tx_size_from_rd ( VP9_COMP * cpi , MACROBLOCK * x , int * rate , int64_t * distortion , int * skip , int64_t * psse , int64_t tx_cache [ TX_MODES ] , int64_t ref_best_rd , BLOCK_SIZE bs ) {\n const TX_SIZE max_tx_size = max_txsize_lookup [ bs ] ;\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n MB_MODE_INFO * const mbmi = & xd -> mi [ 0 ] . src_mi -> mbmi ;\n vp9_prob skip_prob = vp9_get_skip_prob ( cm , xd ) ;\n int r [ TX_SIZES ] [ 2 ] , s [ TX_SIZES ] ;\n int64_t d [ TX_SIZES ] , sse [ TX_SIZES ] ;\n int64_t rd [ TX_SIZES ] [ 2 ] = {\n {\n INT64_MAX , INT64_MAX }\n , {\n INT64_MAX , INT64_MAX }\n , {\n INT64_MAX , INT64_MAX }\n , {\n INT64_MAX , INT64_MAX }\n }\n ;\n int n , m ;\n int s0 , s1 ;\n const TX_SIZE max_mode_tx_size = tx_mode_to_biggest_tx_size [ cm -> tx_mode ] ;\n int64_t best_rd = INT64_MAX ;\n TX_SIZE best_tx = max_tx_size ;\n const vp9_prob * tx_probs = get_tx_probs2 ( max_tx_size , xd , & cm -> fc . tx_probs ) ;\n assert ( skip_prob > 0 ) ;\n s0 = vp9_cost_bit ( skip_prob , 0 ) ;\n s1 = vp9_cost_bit ( skip_prob , 1 ) ;\n for ( n = max_tx_size ;\n n >= 0 ;\n n -- ) {\n txfm_rd_in_plane ( x , & r [ n ] [ 0 ] , & d [ n ] , & s [ n ] , & sse [ n ] , ref_best_rd , 0 , bs , n , cpi -> sf . use_fast_coef_costing ) ;\n r [ n ] [ 1 ] = r [ n ] [ 0 ] ;\n if ( r [ n ] [ 0 ] < INT_MAX ) {\n for ( m = 0 ;\n m <= n - ( n == ( int ) max_tx_size ) ;\n m ++ ) {\n if ( m == n ) r [ n ] [ 1 ] += vp9_cost_zero ( tx_probs [ m ] ) ;\n else r [ n ] [ 1 ] += vp9_cost_one ( tx_probs [ m ] ) ;\n }\n }\n if ( d [ n ] == INT64_MAX ) {\n rd [ n ] [ 0 ] = rd [ n ] [ 1 ] = INT64_MAX ;\n }\n else if ( s [ n ] ) {\n rd [ n ] [ 0 ] = rd [ n ] [ 1 ] = RDCOST ( x -> rdmult , x -> rddiv , s1 , d [ n ] ) ;\n }\n else {\n rd [ n ] [ 0 ] = RDCOST ( x -> rdmult , x -> rddiv , r [ n ] [ 0 ] + s0 , d [ n ] ) ;\n rd [ n ] [ 1 ] = RDCOST ( x -> rdmult , x -> rddiv , r [ n ] [ 1 ] + s0 , d [ n ] ) ;\n }\n if ( cpi -> sf . tx_size_search_breakout && ( rd [ n ] [ 1 ] == INT64_MAX || ( n < ( int ) max_tx_size && rd [ n ] [ 1 ] > rd [ n + 1 ] [ 1 ] ) || s [ n ] == 1 ) ) break ;\n if ( rd [ n ] [ 1 ] < best_rd ) {\n best_tx = n ;\n best_rd = rd [ n ] [ 1 ] ;\n }\n }\n mbmi -> tx_size = cm -> tx_mode == TX_MODE_SELECT ? best_tx : MIN ( max_tx_size , max_mode_tx_size ) ;\n * distortion = d [ mbmi -> tx_size ] ;\n * rate = r [ mbmi -> tx_size ] [ cm -> tx_mode == TX_MODE_SELECT ] ;\n * skip = s [ mbmi -> tx_size ] ;\n * psse = sse [ mbmi -> tx_size ] ;\n tx_cache [ ONLY_4X4 ] = rd [ TX_4X4 ] [ 0 ] ;\n tx_cache [ ALLOW_8X8 ] = rd [ TX_8X8 ] [ 0 ] ;\n tx_cache [ ALLOW_16X16 ] = rd [ MIN ( max_tx_size , TX_16X16 ) ] [ 0 ] ;\n tx_cache [ ALLOW_32X32 ] = rd [ MIN ( max_tx_size , TX_32X32 ) ] [ 0 ] ;\n if ( max_tx_size == TX_32X32 && best_tx == TX_32X32 ) {\n tx_cache [ TX_MODE_SELECT ] = rd [ TX_32X32 ] [ 1 ] ;\n }\n else if ( max_tx_size >= TX_16X16 && best_tx == TX_16X16 ) {\n tx_cache [ TX_MODE_SELECT ] = rd [ TX_16X16 ] [ 1 ] ;\n }\n else if ( rd [ TX_8X8 ] [ 1 ] < rd [ TX_4X4 ] [ 1 ] ) {\n tx_cache [ TX_MODE_SELECT ] = rd [ TX_8X8 ] [ 1 ] ;\n }\n else {\n tx_cache [ TX_MODE_SELECT ] = rd [ TX_4X4 ] [ 1 ] ;\n }\n }"}
{"idx": 1326, "target": 0, "func": "static void process_downstream_ack ( int userid , int down_seq , int down_frag ) {\n if ( users [ userid ] . outpacket . len <= 0 ) return ;\n if ( users [ userid ] . outpacket . seqno != down_seq || users [ userid ] . outpacket . fragment != down_frag ) return ;\n users [ userid ] . outpacket . offset += users [ userid ] . outpacket . sentlen ;\n users [ userid ] . outpacket . sentlen = 0 ;\n users [ userid ] . outpacket . fragment ++ ;\n users [ userid ] . outfragresent = 0 ;\n if ( users [ userid ] . outpacket . offset >= users [ userid ] . outpacket . len ) {\n users [ userid ] . outpacket . len = 0 ;\n users [ userid ] . outpacket . offset = 0 ;\n users [ userid ] . outpacket . fragment -- ;\n # ifdef OUTPACKETQ_LEN get_from_outpacketq ( userid ) ;\n # endif }\n }"}
{"idx": 1327, "target": 0, "func": "static int pfkey_spdflush ( struct sock * sk , struct sk_buff * skb , const struct sadb_msg * hdr , void * const * ext_hdrs ) {\n struct net * net = sock_net ( sk ) ;\n struct km_event c ;\n struct xfrm_audit audit_info ;\n int err , err2 ;\n audit_info . loginuid = audit_get_loginuid ( current ) ;\n audit_info . sessionid = audit_get_sessionid ( current ) ;\n audit_info . secid = 0 ;\n err = xfrm_policy_flush ( net , XFRM_POLICY_TYPE_MAIN , & audit_info ) ;\n err2 = unicast_flush_resp ( sk , hdr ) ;\n if ( err || err2 ) {\n if ( err == - ESRCH ) return 0 ;\n return err ;\n }\n c . data . type = XFRM_POLICY_TYPE_MAIN ;\n c . event = XFRM_MSG_FLUSHPOLICY ;\n c . portid = hdr -> sadb_msg_pid ;\n c . seq = hdr -> sadb_msg_seq ;\n c . net = net ;\n km_policy_notify ( NULL , 0 , & c ) ;\n return 0 ;\n }"}
{"idx": 1328, "target": 0, "func": "static inline void modify_pred ( const int8_t * mod_table , int * mode ) {\n * mode = mod_table [ * mode ] ;\n if ( * mode < 0 ) {\n av_log ( NULL , AV_LOG_ERROR , \"Illegal intra prediction mode\\n\" ) ;\n * mode = 0 ;\n }\n }"}
{"idx": 1329, "target": 0, "func": "static void keytype ( struct parse * pcmd , FILE * fp ) {\n const char * digest_name ;\n size_t digest_len ;\n int key_type ;\n if ( ! pcmd -> nargs ) {\n fprintf ( fp , \"keytype is %s with %lu octet digests\\n\" , keytype_name ( info_auth_keytype ) , ( u_long ) info_auth_hashlen ) ;\n return ;\n }\n digest_name = pcmd -> argval [ 0 ] . string ;\n digest_len = 0 ;\n key_type = keytype_from_text ( digest_name , & digest_len ) ;\n if ( ! key_type ) {\n fprintf ( fp , \"keytype is not valid. \" # ifdef OPENSSL \"Type \\\"help keytype\\\" for the available digest types.\\n\" ) ;\n # else \"Only \\\"md5\\\" is available.\\n\" ) ;\n # endif return ;\n }\n info_auth_keytype = key_type ;\n info_auth_hashlen = digest_len ;\n }"}
{"idx": 1330, "target": 0, "func": "static bluetooth_uuid_t get_service_uuid_from_handle ( packet_info * pinfo , guint32 handle , bluetooth_data_t * bluetooth_data ) {\n wmem_tree_key_t key [ 4 ] ;\n guint32 frame_number ;\n handle_data_t * handle_data ;\n wmem_tree_t * sub_wmemtree ;\n bluetooth_uuid_t uuid ;\n memset ( & uuid , 0 , sizeof uuid ) ;\n frame_number = pinfo -> num ;\n key [ 0 ] . length = 1 ;\n key [ 0 ] . key = & bluetooth_data -> interface_id ;\n key [ 1 ] . length = 1 ;\n key [ 1 ] . key = & bluetooth_data -> adapter_id ;\n key [ 2 ] . length = 1 ;\n key [ 2 ] . key = & handle ;\n key [ 3 ] . length = 0 ;\n key [ 3 ] . key = NULL ;\n while ( handle > 0 ) {\n sub_wmemtree = ( wmem_tree_t * ) wmem_tree_lookup32_array ( handle_to_uuid , key ) ;\n handle_data = ( sub_wmemtree ) ? ( handle_data_t * ) wmem_tree_lookup32_le ( sub_wmemtree , frame_number ) : NULL ;\n if ( handle_data && handle_data -> type == ATTRIBUTE_TYPE_SERVICE ) {\n uuid = handle_data -> uuid ;\n return uuid ;\n }\n handle -= 1 ;\n }\n return uuid ;\n }"}
{"idx": 1331, "target": 0, "func": "static void disable_segmentation ( VP8_COMP * cpi ) {\n cpi -> mb . e_mbd . segmentation_enabled = 0 ;\n }"}
{"idx": 1332, "target": 0, "func": "int qemuMonitorTextChangeMedia ( qemuMonitorPtr mon , const char * dev_name , const char * newmedia , const char * format ATTRIBUTE_UNUSED ) {\n char * cmd = NULL ;\n char * reply = NULL ;\n char * safepath = NULL ;\n int ret = - 1 ;\n if ( ! ( safepath = qemuMonitorEscapeArg ( newmedia ) ) ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n if ( virAsprintf ( & cmd , \"change %s \\\"%s\\\"\" , dev_name , safepath ) < 0 ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"could not change media on %s\" ) , dev_name ) ;\n goto cleanup ;\n }\n if ( c_strcasestr ( reply , \"device \" ) ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"could not change media on %s: %s\" ) , dev_name , reply ) ;\n goto cleanup ;\n }\n if ( strstr ( reply , \"Could not open \" ) ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"could not change media on %s: %s\" ) , dev_name , reply ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( reply ) ;\n VIR_FREE ( cmd ) ;\n VIR_FREE ( safepath ) ;\n return ret ;\n }"}
{"idx": 1333, "target": 0, "func": "static int findcmd ( const char * str , struct xcmd * clist1 , struct xcmd * clist2 , struct xcmd * * cmd ) {\n struct xcmd * cl ;\n int clen ;\n int nmatch ;\n struct xcmd * nearmatch = NULL ;\n struct xcmd * clist ;\n clen = strlen ( str ) ;\n nmatch = 0 ;\n if ( clist1 != 0 ) clist = clist1 ;\n else if ( clist2 != 0 ) clist = clist2 ;\n else return 0 ;\n again : for ( cl = clist ;\n cl -> keyword != 0 ;\n cl ++ ) {\n if ( * str != * ( cl -> keyword ) ) continue ;\n if ( strncmp ( str , cl -> keyword , ( unsigned ) clen ) == 0 ) {\n if ( * ( ( cl -> keyword ) + clen ) == '\\0' ) {\n * cmd = cl ;\n return 1 ;\n }\n nmatch ++ ;\n nearmatch = cl ;\n }\n }\n if ( clist == clist1 && clist2 != 0 ) {\n clist = clist2 ;\n goto again ;\n }\n if ( nmatch == 1 ) {\n * cmd = nearmatch ;\n return 1 ;\n }\n return nmatch ;\n }"}
{"idx": 1334, "target": 0, "func": "static int16_t g726_decode ( G726Context * c , int I ) {\n int dq , re_signal , pk0 , fa1 , i , tr , ylint , ylfrac , thr2 , al , dq0 ;\n Float11 f ;\n int I_sig = I >> ( c -> code_size - 1 ) ;\n dq = inverse_quant ( c , I ) ;\n ylint = ( c -> yl >> 15 ) ;\n ylfrac = ( c -> yl >> 10 ) & 0x1f ;\n thr2 = ( ylint > 9 ) ? 0x1f << 10 : ( 0x20 + ylfrac ) << ylint ;\n tr = ( c -> td == 1 && dq > ( ( 3 * thr2 ) >> 2 ) ) ;\n if ( I_sig ) dq = - dq ;\n re_signal = c -> se + dq ;\n pk0 = ( c -> sez + dq ) ? sgn ( c -> sez + dq ) : 0 ;\n dq0 = dq ? sgn ( dq ) : 0 ;\n if ( tr ) {\n c -> a [ 0 ] = 0 ;\n c -> a [ 1 ] = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) c -> b [ i ] = 0 ;\n }\n else {\n fa1 = av_clip ( ( - c -> a [ 0 ] * c -> pk [ 0 ] * pk0 ) >> 5 , - 256 , 255 ) ;\n c -> a [ 1 ] += 128 * pk0 * c -> pk [ 1 ] + fa1 - ( c -> a [ 1 ] >> 7 ) ;\n c -> a [ 1 ] = av_clip ( c -> a [ 1 ] , - 12288 , 12288 ) ;\n c -> a [ 0 ] += 64 * 3 * pk0 * c -> pk [ 0 ] - ( c -> a [ 0 ] >> 8 ) ;\n c -> a [ 0 ] = av_clip ( c -> a [ 0 ] , - ( 15360 - c -> a [ 1 ] ) , 15360 - c -> a [ 1 ] ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) c -> b [ i ] += 128 * dq0 * sgn ( - c -> dq [ i ] . sign ) - ( c -> b [ i ] >> 8 ) ;\n }\n c -> pk [ 1 ] = c -> pk [ 0 ] ;\n c -> pk [ 0 ] = pk0 ? pk0 : 1 ;\n c -> sr [ 1 ] = c -> sr [ 0 ] ;\n i2f ( re_signal , & c -> sr [ 0 ] ) ;\n for ( i = 5 ;\n i > 0 ;\n i -- ) c -> dq [ i ] = c -> dq [ i - 1 ] ;\n i2f ( dq , & c -> dq [ 0 ] ) ;\n c -> dq [ 0 ] . sign = I_sig ;\n c -> td = c -> a [ 1 ] < - 11776 ;\n c -> dms += ( c -> tbls . F [ I ] << 4 ) + ( ( - c -> dms ) >> 5 ) ;\n c -> dml += ( c -> tbls . F [ I ] << 4 ) + ( ( - c -> dml ) >> 7 ) ;\n if ( tr ) c -> ap = 256 ;\n else {\n c -> ap += ( - c -> ap ) >> 4 ;\n if ( c -> y <= 1535 || c -> td || abs ( ( c -> dms << 2 ) - c -> dml ) >= ( c -> dml >> 3 ) ) c -> ap += 0x20 ;\n }\n c -> yu = av_clip ( c -> y + c -> tbls . W [ I ] + ( ( - c -> y ) >> 5 ) , 544 , 5120 ) ;\n c -> yl += c -> yu + ( ( - c -> yl ) >> 6 ) ;\n al = ( c -> ap >= 256 ) ? 1 << 6 : c -> ap >> 2 ;\n c -> y = ( c -> yl + ( c -> yu - ( c -> yl >> 6 ) ) * al ) >> 6 ;\n c -> se = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) c -> se += mult ( i2f ( c -> b [ i ] >> 2 , & f ) , & c -> dq [ i ] ) ;\n c -> sez = c -> se >> 1 ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) c -> se += mult ( i2f ( c -> a [ i ] >> 2 , & f ) , & c -> sr [ i ] ) ;\n c -> se >>= 1 ;\n return av_clip ( re_signal << 2 , - 0xffff , 0xffff ) ;\n }"}
{"idx": 1335, "target": 0, "func": "void vp8_blend_b_c ( unsigned char * y , unsigned char * u , unsigned char * v , int y_1 , int u_1 , int v_1 , int alpha , int stride ) {\n int i , j ;\n int y1_const = y_1 * ( ( 1 << 16 ) - alpha ) ;\n int u1_const = u_1 * ( ( 1 << 16 ) - alpha ) ;\n int v1_const = v_1 * ( ( 1 << 16 ) - alpha ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n for ( j = 0 ;\n j < 4 ;\n j ++ ) {\n y [ j ] = ( y [ j ] * alpha + y1_const ) >> 16 ;\n }\n y += stride ;\n }\n stride >>= 1 ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n u [ j ] = ( u [ j ] * alpha + u1_const ) >> 16 ;\n v [ j ] = ( v [ j ] * alpha + v1_const ) >> 16 ;\n }\n u += stride ;\n v += stride ;\n }\n }"}
{"idx": 1336, "target": 0, "func": "static int dissect_h245_CRCLength ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_CRCLength , CRCLength_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 1337, "target": 0, "func": "static int dissect_h225_AdmissionRequest ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_AdmissionRequest , AdmissionRequest_sequence ) ;\n return offset ;\n }"}
{"idx": 1338, "target": 0, "func": "static int dissect_udvm_literal_operand ( tvbuff_t * udvm_tvb , proto_tree * sigcomp_udvm_tree , gint offset , gint * start_offset , guint16 * value ) {\n guint bytecode ;\n guint16 operand ;\n guint test_bits ;\n guint display_bytecode ;\n bytecode = tvb_get_guint8 ( udvm_tvb , offset ) ;\n test_bits = bytecode >> 7 ;\n if ( test_bits == 1 ) {\n test_bits = bytecode >> 6 ;\n if ( test_bits == 2 ) {\n display_bytecode = bytecode & 0xc0 ;\n if ( display_udvm_bytecode ) proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_literal_bytecode , udvm_tvb , offset , 1 , display_bytecode ) ;\n operand = tvb_get_ntohs ( udvm_tvb , offset ) & 0x3fff ;\n * value = operand ;\n * start_offset = offset ;\n offset = offset + 2 ;\n }\n else {\n display_bytecode = bytecode & 0xc0 ;\n if ( display_udvm_bytecode ) proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_literal_bytecode , udvm_tvb , offset , 1 , display_bytecode ) ;\n offset ++ ;\n operand = tvb_get_ntohs ( udvm_tvb , offset ) ;\n * value = operand ;\n * start_offset = offset ;\n offset = offset + 2 ;\n }\n }\n else {\n display_bytecode = bytecode & 0xc0 ;\n if ( display_udvm_bytecode ) proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_literal_bytecode , udvm_tvb , offset , 1 , display_bytecode ) ;\n operand = ( bytecode & 0x7f ) ;\n * value = operand ;\n * start_offset = offset ;\n offset ++ ;\n }\n return offset ;\n }"}
{"idx": 1339, "target": 1, "func": "unsigned long # define BN_LONG long # define BN_BITS 128 # define BN_BYTES 8 # define BN_BITS2 64 # define BN_BITS4 32 # define BN_MASK ( 0xffffffffffffffffffffffffffffffffLL ) # define BN_MASK2 ( 0xffffffffffffffffL ) # define BN_MASK2l ( 0xffffffffL ) # define BN_MASK2h ( 0xffffffff00000000L ) # define BN_MASK2h1 ( 0xffffffff80000000L ) # define BN_TBIT ( 0x8000000000000000L ) # define BN_DEC_CONV ( 10000000000000000000UL ) # define BN_DEC_FMT1 \"%lu\" # define BN_DEC_FMT2 \"%019lu\" # define BN_DEC_NUM 19 # define BN_HEX_FMT1 \"%lX\" # define BN_HEX_FMT2 \"%016lX\" # endif # ifdef SIXTY_FOUR_BIT # undef BN_LLONG # undef BN_ULLONG # define BN_ULONG unsigned long long # define BN_LONG long long # define BN_BITS 128 # define BN_BYTES 8 # define BN_BITS2 64 # define BN_BITS4 32 # define BN_MASK2 ( 0xffffffffffffffffLL ) # define BN_MASK2l ( 0xffffffffL ) # define BN_MASK2h ( 0xffffffff00000000LL ) # define BN_MASK2h1 ( 0xffffffff80000000LL ) # define BN_TBIT ( 0x8000000000000000LL ) # define BN_DEC_CONV ( 10000000000000000000ULL ) # define BN_DEC_FMT1 \"%llu\" # define BN_DEC_FMT2 \"%019llu\" # define BN_DEC_NUM 19 # define BN_HEX_FMT1 \"%llX\" # define BN_HEX_FMT2 \"%016llX\" # endif # ifdef THIRTY_TWO_BIT # ifdef BN_LLONG # if defined ( _WIN32 ) && ! defined ( __GNUC__ ) # define BN_ULLONG unsigned __int64 # define BN_MASK ( 0xffffffffffffffffI64 ) # else # define BN_ULLONG unsigned long long # define BN_MASK ( 0xffffffffffffffffLL ) # endif # endif # define BN_ULONG unsigned int # define BN_LONG int # define BN_BITS 64 # define BN_BYTES 4 # define BN_BITS2 32 # define BN_BITS4 16 # define BN_MASK2 ( 0xffffffffL ) # define BN_MASK2l ( 0xffff ) # define BN_MASK2h1 ( 0xffff8000L ) # define BN_MASK2h ( 0xffff0000L ) # define BN_TBIT ( 0x80000000L ) # define BN_DEC_CONV ( 1000000000L ) # define BN_DEC_FMT1 \"%u\" # define BN_DEC_FMT2 \"%09u\" # define BN_DEC_NUM 9 # define BN_HEX_FMT1 \"%X\" # define BN_HEX_FMT2 \"%08X\" # endif # define BN_DEFAULT_BITS 1280 # define BN_FLG_MALLOCED 0x01 # define BN_FLG_STATIC_DATA 0x02 # define BN_FLG_CONSTTIME 0x04 # ifndef OPENSSL_NO_DEPRECATED # define BN_FLG_EXP_CONSTTIME BN_FLG_CONSTTIME # endif # ifndef OPENSSL_NO_DEPRECATED # define BN_FLG_FREE 0x8000 # endif # define BN_set_flags ( b , n ) ( ( b ) -> flags |= ( n ) ) # define BN_get_flags ( b , n ) ( ( b ) -> flags & ( n ) ) # define BN_with_flags ( dest , b , n ) ( ( dest ) -> d = ( b ) -> d , \\ ( dest ) -> top = ( b ) -> top , \\ ( dest ) -> dmax = ( b ) -> dmax , \\ ( dest ) -> neg = ( b ) -> neg , \\ ( dest ) -> flags = ( ( ( dest ) -> flags & BN_FLG_MALLOCED ) \\ | ( ( b ) -> flags & ~ BN_FLG_MALLOCED ) \\ | BN_FLG_STATIC_DATA \\ | ( n ) ) ) # if 0 typedef struct bignum_st BIGNUM ;\n typedef struct bignum_ctx BN_CTX ;\n typedef struct bn_blinding_st BN_BLINDING ;\n typedef struct bn_mont_ctx_st BN_MONT_CTX ;\n typedef struct bn_recp_ctx_st BN_RECP_CTX ;\n typedef struct bn_gencb_st BN_GENCB ;\n # endif struct bignum_st {\n BN_ULONG * d ;\n int top ;\n int dmax ;\n int neg ;\n int flags ;\n }\n ;\n struct bn_mont_ctx_st {\n int ri ;\n BIGNUM RR ;\n BIGNUM N ;\n BIGNUM Ni ;\n BN_ULONG n0 [ 2 ] ;\n int flags ;\n }\n ;\n struct bn_recp_ctx_st {\n BIGNUM N ;\n BIGNUM Nr ;\n int num_bits ;\n int shift ;\n int flags ;\n }\n ;\n struct bn_gencb_st {\n unsigned int ver ;\n void * arg ;\n union {\n void ( * cb_1 ) ( int , int , void * ) ;\n int ( * cb_2 ) ( int , int , BN_GENCB * ) ;\n }\n cb ;\n }\n ;\n int BN_GENCB_call ( BN_GENCB * cb , int a , int b ) ;\n # define BN_GENCB_set_old ( gencb , callback , cb_arg ) {\n \\ BN_GENCB * tmp_gencb = ( gencb ) ;\n \\ tmp_gencb -> ver = 1 ;\n \\ tmp_gencb -> arg = ( cb_arg ) ;\n \\ tmp_gencb -> cb . cb_1 = ( callback ) ;\n }\n # define BN_GENCB_set ( gencb , callback , cb_arg ) {\n \\ BN_GENCB * tmp_gencb = ( gencb ) ;\n \\ tmp_gencb -> ver = 2 ;\n \\ tmp_gencb -> arg = ( cb_arg ) ;\n \\ tmp_gencb -> cb . cb_2 = ( callback ) ;\n }\n # define BN_prime_checks 0 # define BN_prime_checks_for_size ( b ) ( ( b ) >= 1300 ? 2 : \\ ( b ) >= 850 ? 3 : \\ ( b ) >= 650 ? 4 : \\ ( b ) >= 550 ? 5 : \\ ( b ) >= 450 ? 6 : \\ ( b ) >= 400 ? 7 : \\ ( b ) >= 350 ? 8 : \\ ( b ) >= 300 ? 9 : \\ ( b ) >= 250 ? 12 : \\ ( b ) >= 200 ? 15 : \\ ( b ) >= 150 ? 18 : \\ 27 ) # define BN_num_bytes ( a ) ( ( BN_num_bits ( a ) + 7 ) / 8 ) # define BN_abs_is_word ( a , w ) ( ( ( ( a ) -> top == 1 ) && ( ( a ) -> d [ 0 ] == ( BN_ULONG ) ( w ) ) ) || \\ ( ( ( w ) == 0 ) && ( ( a ) -> top == 0 ) ) ) # define BN_is_zero ( a ) ( ( a ) -> top == 0 ) # define BN_is_one ( a ) ( BN_abs_is_word ( ( a ) , 1 ) && ! ( a ) -> neg ) # define BN_is_word ( a , w ) ( BN_abs_is_word ( ( a ) , ( w ) ) && ( ! ( w ) || ! ( a ) -> neg ) ) # define BN_is_odd ( a ) ( ( ( a ) -> top > 0 ) && ( ( a ) -> d [ 0 ] & 1 ) ) # define BN_one ( a ) ( BN_set_word ( ( a ) , 1 ) ) # define BN_zero_ex ( a ) \\ do {\n \\ BIGNUM * _tmp_bn = ( a ) ;\n \\ _tmp_bn -> top = 0 ;\n \\ _tmp_bn -> neg = 0 ;\n \\ }\n while ( 0 ) # ifdef OPENSSL_NO_DEPRECATED # define BN_zero ( a ) BN_zero_ex ( a ) # else # define BN_zero ( a ) ( BN_set_word ( ( a ) , 0 ) ) # endif const BIGNUM * BN_value_one ( void ) ;\n char * BN_options ( void ) ;\n BN_CTX * BN_CTX_new ( void ) ;\n # ifndef OPENSSL_NO_DEPRECATED void BN_CTX_init ( BN_CTX * c ) ;\n # endif void BN_CTX_free ( BN_CTX * c ) ;\n void BN_CTX_start ( BN_CTX * ctx ) ;\n BIGNUM * BN_CTX_get ( BN_CTX * ctx ) ;\n void BN_CTX_end ( BN_CTX * ctx ) ;\n int BN_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_pseudo_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_pseudo_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_num_bits ( const BIGNUM * a ) ;\n int BN_num_bits_word ( BN_ULONG l ) ;\n BIGNUM * BN_new ( void ) ;\n void BN_init ( BIGNUM * ) ;\n void BN_clear_free ( BIGNUM * a ) ;\n BIGNUM * BN_copy ( BIGNUM * a , const BIGNUM * b ) ;\n void BN_swap ( BIGNUM * a , BIGNUM * b ) ;\n BIGNUM * BN_bin2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2bin ( const BIGNUM * a , unsigned char * to ) ;\n BIGNUM * BN_mpi2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2mpi ( const BIGNUM * a , unsigned char * to ) ;\n int BN_sub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_usub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_uadd ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n int BN_sqr ( BIGNUM * r , const BIGNUM * a , BN_CTX * ctx ) ;\n void BN_set_negative ( BIGNUM * b , int n ) ;\n # define BN_is_negative ( a ) ( ( a ) -> neg != 0 ) int BN_div ( BIGNUM * dv , BIGNUM * rem , const BIGNUM * m , const BIGNUM * d , BN_CTX * ctx ) ;\n # define BN_mod ( rem , m , d , ctx ) BN_div ( NULL , ( rem ) , ( m ) , ( d ) , ( ctx ) ) int BN_nnmod ( BIGNUM * r , const BIGNUM * m , const BIGNUM * d , BN_CTX * ctx ) ;\n int BN_mod_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_add_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m ) ;\n int BN_mod_sub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_sub_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m ) ;\n int BN_mod_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_sqr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift1 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift1_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m ) ;\n int BN_mod_lshift ( BIGNUM * r , const BIGNUM * a , int n , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift_quick ( BIGNUM * r , const BIGNUM * a , int n , const BIGNUM * m ) ;\n BN_ULONG BN_mod_word ( const BIGNUM * a , BN_ULONG w ) ;\n BN_ULONG BN_div_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_mul_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_add_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_sub_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_set_word ( BIGNUM * a , BN_ULONG w ) ;\n BN_ULONG BN_get_word ( const BIGNUM * a ) ;\n int BN_cmp ( const BIGNUM * a , const BIGNUM * b ) ;\n void BN_free ( BIGNUM * a ) ;\n int BN_is_bit_set ( const BIGNUM * a , int n ) ;\n int BN_lshift ( BIGNUM * r , const BIGNUM * a , int n ) ;\n int BN_lshift1 ( BIGNUM * r , const BIGNUM * a ) ;\n int BN_exp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_mod_exp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_exp_mont ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) ;\n int BN_mod_exp_mont_consttime ( BIGNUM * rr , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * in_mont ) ;\n int BN_mod_exp_mont_word ( BIGNUM * r , BN_ULONG a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) ;\n int BN_mod_exp2_mont ( BIGNUM * r , const BIGNUM * a1 , const BIGNUM * p1 , const BIGNUM * a2 , const BIGNUM * p2 , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) ;\n int BN_mod_exp_simple ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mask_bits ( BIGNUM * a , int n ) ;\n # ifndef OPENSSL_NO_FP_API int BN_print_fp ( FILE * fp , const BIGNUM * a ) ;\n # endif # ifdef HEADER_BIO_H int BN_print ( BIO * fp , const BIGNUM * a ) ;\n # else int BN_print ( void * fp , const BIGNUM * a ) ;\n # endif int BN_reciprocal ( BIGNUM * r , const BIGNUM * m , int len , BN_CTX * ctx ) ;\n int BN_rshift ( BIGNUM * r , const BIGNUM * a , int n ) ;\n int BN_rshift1 ( BIGNUM * r , const BIGNUM * a ) ;\n void BN_clear ( BIGNUM * a ) ;\n BIGNUM * BN_dup ( const BIGNUM * a ) ;\n int BN_ucmp ( const BIGNUM * a , const BIGNUM * b ) ;\n int BN_set_bit ( BIGNUM * a , int n ) ;\n int BN_clear_bit ( BIGNUM * a , int n ) ;\n char * BN_bn2hex ( const BIGNUM * a ) ;\n char * BN_bn2dec ( const BIGNUM * a ) ;\n int BN_hex2bn ( BIGNUM * * a , const char * str ) ;\n int BN_dec2bn ( BIGNUM * * a , const char * str ) ;\n int BN_asc2bn ( BIGNUM * * a , const char * str ) ;\n int BN_gcd ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n int BN_kronecker ( const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n BIGNUM * BN_mod_inverse ( BIGNUM * ret , const BIGNUM * a , const BIGNUM * n , BN_CTX * ctx ) ;\n BIGNUM * BN_mod_sqrt ( BIGNUM * ret , const BIGNUM * a , const BIGNUM * n , BN_CTX * ctx ) ;\n # ifndef OPENSSL_NO_DEPRECATED BIGNUM * BN_generate_prime ( BIGNUM * ret , int bits , int safe , const BIGNUM * add , const BIGNUM * rem , void ( * callback ) ( int , int , void * ) , void * cb_arg ) ;\n int BN_is_prime ( const BIGNUM * p , int nchecks , void ( * callback ) ( int , int , void * ) , BN_CTX * ctx , void * cb_arg ) ;\n int BN_is_prime_fasttest ( const BIGNUM * p , int nchecks , void ( * callback ) ( int , int , void * ) , BN_CTX * ctx , void * cb_arg , int do_trial_division ) ;\n # endif int BN_generate_prime_ex ( BIGNUM * ret , int bits , int safe , const BIGNUM * add , const BIGNUM * rem , BN_GENCB * cb ) ;\n int BN_is_prime_ex ( const BIGNUM * p , int nchecks , BN_CTX * ctx , BN_GENCB * cb ) ;\n int BN_is_prime_fasttest_ex ( const BIGNUM * p , int nchecks , BN_CTX * ctx , int do_trial_division , BN_GENCB * cb ) ;\n int BN_X931_generate_Xpq ( BIGNUM * Xp , BIGNUM * Xq , int nbits , BN_CTX * ctx ) ;\n int BN_X931_derive_prime_ex ( BIGNUM * p , BIGNUM * p1 , BIGNUM * p2 , const BIGNUM * Xp , const BIGNUM * Xp1 , const BIGNUM * Xp2 , const BIGNUM * e , BN_CTX * ctx , BN_GENCB * cb ) ;\n int BN_X931_generate_prime_ex ( BIGNUM * p , BIGNUM * p1 , BIGNUM * p2 , BIGNUM * Xp1 , BIGNUM * Xp2 , const BIGNUM * Xp , const BIGNUM * e , BN_CTX * ctx , BN_GENCB * cb ) ;\n BN_MONT_CTX * BN_MONT_CTX_new ( void ) ;\n void BN_MONT_CTX_init ( BN_MONT_CTX * ctx ) ;\n int BN_mod_mul_montgomery ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_MONT_CTX * mont , BN_CTX * ctx ) ;\n # define BN_to_montgomery ( r , a , mont , ctx ) BN_mod_mul_montgomery ( \\ ( r ) , ( a ) , & ( ( mont ) -> RR ) , ( mont ) , ( ctx ) ) int BN_from_montgomery ( BIGNUM * r , const BIGNUM * a , BN_MONT_CTX * mont , BN_CTX * ctx ) ;\n void BN_MONT_CTX_free ( BN_MONT_CTX * mont ) ;\n int BN_MONT_CTX_set ( BN_MONT_CTX * mont , const BIGNUM * mod , BN_CTX * ctx ) ;\n BN_MONT_CTX * BN_MONT_CTX_copy ( BN_MONT_CTX * to , BN_MONT_CTX * from ) ;\n BN_MONT_CTX * BN_MONT_CTX_set_locked ( BN_MONT_CTX * * pmont , int lock , const BIGNUM * mod , BN_CTX * ctx ) ;\n # define BN_BLINDING_NO_UPDATE 0x00000001 # define BN_BLINDING_NO_RECREATE 0x00000002 BN_BLINDING * BN_BLINDING_new ( const BIGNUM * A , const BIGNUM * Ai , BIGNUM * mod ) ;\n void BN_BLINDING_free ( BN_BLINDING * b ) ;\n int BN_BLINDING_update ( BN_BLINDING * b , BN_CTX * ctx ) ;\n int BN_BLINDING_convert ( BIGNUM * n , BN_BLINDING * b , BN_CTX * ctx ) ;\n int BN_BLINDING_invert ( BIGNUM * n , BN_BLINDING * b , BN_CTX * ctx ) ;\n int BN_BLINDING_convert_ex ( BIGNUM * n , BIGNUM * r , BN_BLINDING * b , BN_CTX * ) ;\n int BN_BLINDING_invert_ex ( BIGNUM * n , const BIGNUM * r , BN_BLINDING * b , BN_CTX * ) ;\n # ifndef OPENSSL_NO_DEPRECATED unsigned long BN_BLINDING_get_thread_id ( const BN_BLINDING * ) ;\n void BN_BLINDING_set_thread_id ( BN_BLINDING * , unsigned long ) ;\n # endif CRYPTO_THREADID * BN_BLINDING_thread_id ( BN_BLINDING * ) ;\n unsigned long BN_BLINDING_get_flags ( const BN_BLINDING * ) ;\n void BN_BLINDING_set_flags ( BN_BLINDING * , unsigned long ) ;\n BN_BLINDING * BN_BLINDING_create_param ( BN_BLINDING * b , const BIGNUM * e , BIGNUM * m , BN_CTX * ctx , int ( * bn_mod_exp ) ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) , BN_MONT_CTX * m_ctx ) ;\n # ifndef OPENSSL_NO_DEPRECATED void BN_set_params ( int mul , int high , int low , int mont ) ;\n int BN_get_params ( int which ) ;\n # endif void BN_RECP_CTX_init ( BN_RECP_CTX * recp ) ;\n BN_RECP_CTX * BN_RECP_CTX_new ( void ) ;\n void BN_RECP_CTX_free ( BN_RECP_CTX * recp ) ;\n int BN_RECP_CTX_set ( BN_RECP_CTX * recp , const BIGNUM * rdiv , BN_CTX * ctx ) ;\n int BN_mod_mul_reciprocal ( BIGNUM * r , const BIGNUM * x , const BIGNUM * y , BN_RECP_CTX * recp , BN_CTX * ctx ) ;\n int BN_mod_exp_recp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_div_recp ( BIGNUM * dv , BIGNUM * rem , const BIGNUM * m , BN_RECP_CTX * recp , BN_CTX * ctx ) ;\n # ifndef OPENSSL_NO_EC2M int BN_GF2m_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n # define BN_GF2m_sub ( r , a , b ) BN_GF2m_add ( r , a , b ) int BN_GF2m_mod ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p ) ;\n int BN_GF2m_mod_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_inv ( BIGNUM * r , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_div ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_exp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqrt ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_solve_quad ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n # define BN_GF2m_cmp ( a , b ) BN_ucmp ( ( a ) , ( b ) ) int BN_GF2m_mod_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] ) ;\n int BN_GF2m_mod_mul_arr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqr_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_inv_arr ( BIGNUM * r , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_div_arr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_exp_arr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqrt_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_solve_quad_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_poly2arr ( const BIGNUM * a , int p [ ] , int max ) ;\n int BN_GF2m_arr2poly ( const int p [ ] , BIGNUM * a ) ;\n # endif int BN_nist_mod_192 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_224 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_256 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_384 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_521 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n const BIGNUM * BN_get0_nist_prime_192 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_224 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_256 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_384 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_521 ( void ) ;\n int ( * BN_nist_mod_func ( const BIGNUM * p ) ) ( BIGNUM * r , const BIGNUM * a , const BIGNUM * field , BN_CTX * ctx ) ;\n int BN_generate_dsa_nonce ( BIGNUM * out , const BIGNUM * range , const BIGNUM * priv , const unsigned char * message , size_t message_len , BN_CTX * ctx ) ;\n # define bn_expand ( a , bits ) ( ( ( ( ( ( bits + BN_BITS2 - 1 ) ) / BN_BITS2 ) ) <= ( a ) -> dmax ) ? \\ ( a ) : bn_expand2 ( ( a ) , ( bits + BN_BITS2 - 1 ) / BN_BITS2 ) ) # define bn_wexpand ( a , words ) ( ( ( words ) <= ( a ) -> dmax ) ? ( a ) : bn_expand2 ( ( a ) , ( words ) ) ) BIGNUM * bn_expand2 ( BIGNUM * a , int words ) ;\n # ifndef OPENSSL_NO_DEPRECATED BIGNUM * bn_dup_expand ( const BIGNUM * a , int words ) ;\n # endif # ifdef BN_DEBUG # include < assert . h > # ifdef BN_DEBUG_RAND # ifndef RAND_pseudo_bytes int RAND_pseudo_bytes ( unsigned char * buf , int num ) ;\n # define BN_DEBUG_TRIX # endif # define bn_pollute ( a ) \\ do {\n \\ const BIGNUM * _bnum1 = ( a ) ;\n \\ if ( _bnum1 -> top < _bnum1 -> dmax ) {\n \\ unsigned char _tmp_char ;\n \\ \\ BN_ULONG * _not_const ;\n \\ memcpy ( & _not_const , & _bnum1 -> d , sizeof ( BN_ULONG * ) ) ;\n \\ RAND_pseudo_bytes ( & _tmp_char , 1 ) ;\n \\ memset ( ( unsigned char * ) ( _not_const + _bnum1 -> top ) , _tmp_char , \\ ( _bnum1 -> dmax - _bnum1 -> top ) * sizeof ( BN_ULONG ) ) ;\n \\ }\n \\ }\n while ( 0 ) # ifdef BN_DEBUG_TRIX # undef RAND_pseudo_bytes # endif # else # define bn_pollute ( a ) # endif # define bn_check_top ( a ) \\ do {\n \\ const BIGNUM * _bnum2 = ( a ) ;\n \\ if ( _bnum2 != NULL ) {\n \\ assert ( ( _bnum2 -> top == 0 ) || \\ ( _bnum2 -> d [ _bnum2 -> top - 1 ] != 0 ) ) ;\n \\ bn_pollute ( _bnum2 ) ;\n \\ }\n \\ }\n while ( 0 ) # define bn_fix_top ( a ) bn_check_top ( a ) # else # define bn_pollute ( a ) # define bn_check_top ( a ) # define bn_fix_top ( a ) bn_correct_top ( a ) # endif # define bn_correct_top ( a ) \\ {\n \\ BN_ULONG * ftl ;\n \\ int tmp_top = ( a ) -> top ;\n \\ if ( tmp_top > 0 ) \\ {\n \\ for ( ftl = & ( ( a ) -> d [ tmp_top - 1 ] ) ;\n tmp_top > 0 ;\n tmp_top -- ) \\ if ( * ( ftl -- ) ) break ;\n \\ ( a ) -> top = tmp_top ;\n \\ }\n \\ bn_pollute ( a ) ;\n \\ }\n BN_ULONG bn_mul_add_words ( BN_ULONG * rp , const BN_ULONG * ap , int num , BN_ULONG w ) ;\n BN_ULONG bn_mul_words ( BN_ULONG * rp , const BN_ULONG * ap , int num , BN_ULONG w )"}
{"idx": 1340, "target": 0, "func": "static void my_coll_agg_error ( Item * * args , uint count , const char * fname , int item_sep ) {\n if ( count == 2 ) my_coll_agg_error ( args [ 0 ] -> collation , args [ item_sep ] -> collation , fname ) ;\n else if ( count == 3 ) my_coll_agg_error ( args [ 0 ] -> collation , args [ item_sep ] -> collation , args [ 2 * item_sep ] -> collation , fname ) ;\n else my_error ( ER_CANT_AGGREGATE_NCOLLATIONS , MYF ( 0 ) , fname ) ;\n }"}
{"idx": 1341, "target": 0, "func": "static void stream_add_data ( struct attachment_istream * astream , const void * data , size_t size ) {\n if ( size > 0 ) {\n memcpy ( i_stream_alloc ( & astream -> istream , size ) , data , size ) ;\n astream -> istream . pos += size ;\n }\n }"}
{"idx": 1342, "target": 0, "func": "static void release_scaled_references ( VP9_COMP * cpi ) {\n VP9_COMMON * cm = & cpi -> common ;\n int i ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) cm -> frame_bufs [ cpi -> scaled_ref_idx [ i ] ] . ref_count -- ;\n }"}
{"idx": 1343, "target": 0, "func": "static void version ( struct parse * pcmd , FILE * fp ) {\n ( void ) fprintf ( fp , \"%s\\n\" , Version ) ;\n return ;\n }"}
{"idx": 1344, "target": 0, "func": "static void vc1_put_signed_blocks_clamped ( VC1Context * v ) {\n MpegEncContext * s = & v -> s ;\n int topleft_mb_pos , top_mb_pos ;\n int stride_y , fieldtx ;\n int v_dist ;\n if ( ! s -> first_slice_line ) {\n if ( s -> mb_x ) {\n topleft_mb_pos = ( s -> mb_y - 1 ) * s -> mb_stride + s -> mb_x - 1 ;\n fieldtx = v -> fieldtx_plane [ topleft_mb_pos ] ;\n stride_y = s -> linesize << fieldtx ;\n v_dist = ( 16 - fieldtx ) >> ( fieldtx == 0 ) ;\n s -> dsp . put_signed_pixels_clamped ( v -> block [ v -> topleft_blk_idx ] [ 0 ] , s -> dest [ 0 ] - 16 * s -> linesize - 16 , stride_y ) ;\n s -> dsp . put_signed_pixels_clamped ( v -> block [ v -> topleft_blk_idx ] [ 1 ] , s -> dest [ 0 ] - 16 * s -> linesize - 8 , stride_y ) ;\n s -> dsp . put_signed_pixels_clamped ( v -> block [ v -> topleft_blk_idx ] [ 2 ] , s -> dest [ 0 ] - v_dist * s -> linesize - 16 , stride_y ) ;\n s -> dsp . put_signed_pixels_clamped ( v -> block [ v -> topleft_blk_idx ] [ 3 ] , s -> dest [ 0 ] - v_dist * s -> linesize - 8 , stride_y ) ;\n s -> dsp . put_signed_pixels_clamped ( v -> block [ v -> topleft_blk_idx ] [ 4 ] , s -> dest [ 1 ] - 8 * s -> uvlinesize - 8 , s -> uvlinesize ) ;\n s -> dsp . put_signed_pixels_clamped ( v -> block [ v -> topleft_blk_idx ] [ 5 ] , s -> dest [ 2 ] - 8 * s -> uvlinesize - 8 , s -> uvlinesize ) ;\n }\n if ( s -> mb_x == s -> mb_width - 1 ) {\n top_mb_pos = ( s -> mb_y - 1 ) * s -> mb_stride + s -> mb_x ;\n fieldtx = v -> fieldtx_plane [ top_mb_pos ] ;\n stride_y = s -> linesize << fieldtx ;\n v_dist = fieldtx ? 15 : 8 ;\n s -> dsp . put_signed_pixels_clamped ( v -> block [ v -> top_blk_idx ] [ 0 ] , s -> dest [ 0 ] - 16 * s -> linesize , stride_y ) ;\n s -> dsp . put_signed_pixels_clamped ( v -> block [ v -> top_blk_idx ] [ 1 ] , s -> dest [ 0 ] - 16 * s -> linesize + 8 , stride_y ) ;\n s -> dsp . put_signed_pixels_clamped ( v -> block [ v -> top_blk_idx ] [ 2 ] , s -> dest [ 0 ] - v_dist * s -> linesize , stride_y ) ;\n s -> dsp . put_signed_pixels_clamped ( v -> block [ v -> top_blk_idx ] [ 3 ] , s -> dest [ 0 ] - v_dist * s -> linesize + 8 , stride_y ) ;\n s -> dsp . put_signed_pixels_clamped ( v -> block [ v -> top_blk_idx ] [ 4 ] , s -> dest [ 1 ] - 8 * s -> uvlinesize , s -> uvlinesize ) ;\n s -> dsp . put_signed_pixels_clamped ( v -> block [ v -> top_blk_idx ] [ 5 ] , s -> dest [ 2 ] - 8 * s -> uvlinesize , s -> uvlinesize ) ;\n }\n }\n # define inc_blk_idx ( idx ) do {\n idx ++ ;\n if ( idx >= v -> n_allocated_blks ) idx = 0 ;\n }\n while ( 0 ) inc_blk_idx ( v -> topleft_blk_idx ) ;\n inc_blk_idx ( v -> top_blk_idx ) ;\n inc_blk_idx ( v -> left_blk_idx ) ;\n inc_blk_idx ( v -> cur_blk_idx ) ;\n }"}
{"idx": 1345, "target": 1, "func": "void jpc_qmfb_split_colgrp ( jpc_fix_t * a , int numrows , int stride , int parity ) {\n int bufsize = JPC_CEILDIVPOW2 ( numrows , 1 ) ;\n jpc_fix_t splitbuf [ QMFB_SPLITBUFSIZE * JPC_QMFB_COLGRPSIZE ] ;\n jpc_fix_t * buf = splitbuf ;\n jpc_fix_t * srcptr ;\n jpc_fix_t * dstptr ;\n register jpc_fix_t * srcptr2 ;\n register jpc_fix_t * dstptr2 ;\n register int n ;\n register int i ;\n int m ;\n int hstartcol ;\n if ( bufsize > QMFB_SPLITBUFSIZE ) {\n if ( ! ( buf = jas_alloc2 ( bufsize , sizeof ( jpc_fix_t ) ) ) ) {\n abort ( ) ;\n }\n }\n if ( numrows >= 2 ) {\n hstartcol = ( numrows + 1 - parity ) >> 1 ;\n m = numrows - hstartcol ;\n n = m ;\n dstptr = buf ;\n srcptr = & a [ ( 1 - parity ) * stride ] ;\n while ( n -- > 0 ) {\n dstptr2 = dstptr ;\n srcptr2 = srcptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n * dstptr2 = * srcptr2 ;\n ++ dstptr2 ;\n ++ srcptr2 ;\n }\n dstptr += JPC_QMFB_COLGRPSIZE ;\n srcptr += stride << 1 ;\n }\n dstptr = & a [ ( 1 - parity ) * stride ] ;\n srcptr = & a [ ( 2 - parity ) * stride ] ;\n n = numrows - m - ( ! parity ) ;\n while ( n -- > 0 ) {\n dstptr2 = dstptr ;\n srcptr2 = srcptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n * dstptr2 = * srcptr2 ;\n ++ dstptr2 ;\n ++ srcptr2 ;\n }\n dstptr += stride ;\n srcptr += stride << 1 ;\n }\n dstptr = & a [ hstartcol * stride ] ;\n srcptr = buf ;\n n = m ;\n while ( n -- > 0 ) {\n dstptr2 = dstptr ;\n srcptr2 = srcptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n * dstptr2 = * srcptr2 ;\n ++ dstptr2 ;\n ++ srcptr2 ;\n }\n dstptr += stride ;\n srcptr += JPC_QMFB_COLGRPSIZE ;\n }\n }\n if ( buf != splitbuf ) {\n jas_free ( buf ) ;\n }\n }"}
{"idx": 1346, "target": 0, "func": "static void cirrus_vga_write_palette ( CirrusVGAState * s , int reg_value ) {\n s -> vga . dac_cache [ s -> vga . dac_sub_index ] = reg_value ;\n if ( ++ s -> vga . dac_sub_index == 3 ) {\n if ( ( s -> vga . sr [ 0x12 ] & CIRRUS_CURSOR_HIDDENPEL ) ) {\n memcpy ( & s -> cirrus_hidden_palette [ ( s -> vga . dac_write_index & 0x0f ) * 3 ] , s -> vga . dac_cache , 3 ) ;\n }\n else {\n memcpy ( & s -> vga . palette [ s -> vga . dac_write_index * 3 ] , s -> vga . dac_cache , 3 ) ;\n }\n s -> vga . dac_sub_index = 0 ;\n s -> vga . dac_write_index ++ ;\n }\n }"}
{"idx": 1347, "target": 0, "func": "static int select_loop ( int maxFd , fd_set * workerset , bool * aborting ) {\n int i ;\n fd_set saveSet = * workerset ;\n if ( CancelRequested ) {\n * aborting = true ;\n return - 1 ;\n }\n else * aborting = false ;\n for ( ;\n ;\n ) {\n struct timeval * tvp ;\n # ifdef WIN32 struct timeval tv = {\n 0 , 1000000 }\n ;\n tvp = & tv ;\n # else tvp = NULL ;\n # endif * workerset = saveSet ;\n i = select ( maxFd + 1 , workerset , NULL , NULL , tvp ) ;\n # ifdef WIN32 if ( i == SOCKET_ERROR ) {\n i = - 1 ;\n if ( WSAGetLastError ( ) == WSAEINTR ) errno = EINTR ;\n }\n # endif if ( i < 0 && errno == EINTR ) continue ;\n if ( i < 0 || CancelRequested ) * aborting = true ;\n if ( i == 0 ) continue ;\n break ;\n }\n return i ;\n }"}
{"idx": 1348, "target": 0, "func": "static void gtkui_inject_user ( int side ) {\n size_t len ;\n len = strescape ( injectbuf , injectbuf , strlen ( injectbuf ) + 1 ) ;\n if ( side == 1 || side == 2 ) {\n user_inject ( injectbuf , len , curr_conn , side ) ;\n }\n }"}
{"idx": 1349, "target": 0, "func": "static float voice_factor ( float * p_vector , float p_gain , float * f_vector , float f_gain ) {\n double p_ener = ( double ) avpriv_scalarproduct_float_c ( p_vector , p_vector , AMRWB_SFR_SIZE ) * p_gain * p_gain ;\n double f_ener = ( double ) avpriv_scalarproduct_float_c ( f_vector , f_vector , AMRWB_SFR_SIZE ) * f_gain * f_gain ;\n return ( p_ener - f_ener ) / ( p_ener + f_ener ) ;\n }"}
{"idx": 1350, "target": 0, "func": "static int dissect_h245_T_separateStreamBool ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_separateStreamBool , T_separateStreamBool_sequence ) ;\n return offset ;\n }"}
{"idx": 1351, "target": 0, "func": "static void _zip_write4 ( unsigned int i , FILE * fp ) {\n putc ( i & 0xff , fp ) ;\n putc ( ( i >> 8 ) & 0xff , fp ) ;\n putc ( ( i >> 16 ) & 0xff , fp ) ;\n putc ( ( i >> 24 ) & 0xff , fp ) ;\n return ;\n }"}
{"idx": 1352, "target": 0, "func": "static int tgq_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n TgqContext * s = avctx -> priv_data ;\n AVFrame * frame = data ;\n int x , y , ret ;\n int big_endian = AV_RL32 ( & buf [ 4 ] ) > 0x000FFFFF ;\n if ( buf_size < 16 ) {\n av_log ( avctx , AV_LOG_WARNING , \"truncated header\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n bytestream2_init ( & s -> gb , buf + 8 , buf_size - 8 ) ;\n if ( big_endian ) {\n s -> width = bytestream2_get_be16u ( & s -> gb ) ;\n s -> height = bytestream2_get_be16u ( & s -> gb ) ;\n }\n else {\n s -> width = bytestream2_get_le16u ( & s -> gb ) ;\n s -> height = bytestream2_get_le16u ( & s -> gb ) ;\n }\n if ( s -> avctx -> width != s -> width || s -> avctx -> height != s -> height ) {\n avcodec_set_dimensions ( s -> avctx , s -> width , s -> height ) ;\n }\n tgq_calculate_qtable ( s , bytestream2_get_byteu ( & s -> gb ) ) ;\n bytestream2_skip ( & s -> gb , 3 ) ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n frame -> key_frame = 1 ;\n frame -> pict_type = AV_PICTURE_TYPE_I ;\n for ( y = 0 ;\n y < FFALIGN ( avctx -> height , 16 ) >> 4 ;\n y ++ ) for ( x = 0 ;\n x < FFALIGN ( avctx -> width , 16 ) >> 4 ;\n x ++ ) tgq_decode_mb ( s , frame , y , x ) ;\n * got_frame = 1 ;\n return avpkt -> size ;\n }"}
{"idx": 1353, "target": 0, "func": "static void decode_lpc ( WmallDecodeCtx * s ) {\n int ch , i , cbits ;\n s -> lpc_order = get_bits ( & s -> gb , 5 ) + 1 ;\n s -> lpc_scaling = get_bits ( & s -> gb , 4 ) ;\n s -> lpc_intbits = get_bits ( & s -> gb , 3 ) + 1 ;\n cbits = s -> lpc_scaling + s -> lpc_intbits ;\n for ( ch = 0 ;\n ch < s -> num_channels ;\n ch ++ ) for ( i = 0 ;\n i < s -> lpc_order ;\n i ++ ) s -> lpc_coefs [ ch ] [ i ] = get_sbits ( & s -> gb , cbits ) ;\n }"}
{"idx": 1354, "target": 0, "func": "static inline int match_prefix ( char * prefix , int plen , char * option , int olen ) {\n if ( plen > olen ) return 0 ;\n return ! memcmp ( prefix , option , plen ) ;\n }"}
{"idx": 1355, "target": 0, "func": "char * evhttp_decode_uri ( const char * uri ) {\n char * ret ;\n if ( ( ret = malloc ( strlen ( uri ) + 1 ) ) == NULL ) event_err ( 1 , \"%s: malloc(%lu)\" , __func__ , ( unsigned long ) ( strlen ( uri ) + 1 ) ) ;\n evhttp_decode_uri_internal ( uri , strlen ( uri ) , ret , 0 ) ;\n return ( ret ) ;\n }"}
{"idx": 1356, "target": 0, "func": "static void fast_any_to_alpha ( fz_context * ctx , fz_pixmap * dst , fz_pixmap * src , fz_colorspace * prf , const fz_default_colorspaces * default_cs , const fz_color_params * color_params , int copy_spots ) {\n assert ( copy_spots && dst -> s == 0 && src -> s == 0 ) ;\n if ( ! src -> alpha ) fz_clear_pixmap_with_value ( ctx , dst , 255 ) ;\n else {\n unsigned char * s = src -> samples ;\n unsigned char * d = dst -> samples ;\n size_t w = src -> w ;\n int h = src -> h ;\n int n = src -> n ;\n ptrdiff_t d_line_inc = dst -> stride - w * dst -> n ;\n ptrdiff_t s_line_inc = src -> stride - w * src -> n ;\n if ( ( int ) w < 0 || h < 0 ) return ;\n assert ( dst -> alpha && src -> alpha && dst -> n == 1 ) ;\n if ( d_line_inc == 0 && s_line_inc == 0 ) {\n w *= h ;\n h = 1 ;\n }\n s += n - 1 ;\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n * d ++ = * s ;\n s += n ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n }"}
{"idx": 1357, "target": 0, "func": "static void test_pure_coverage ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND my_bind [ 2 ] ;\n int rc ;\n ulong length ;\n myheader ( \"test_pure_coverage\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_pure\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_pure(c1 int, c2 varchar(20))\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"insert into test_pure(c67788) values(10)\" ) ;\n check_stmt_r ( stmt ) ;\n stmt = mysql_simple_prepare ( mysql , \"insert into test_pure(c2) values(10)\" ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_bind_param ( stmt , ( MYSQL_BIND * ) 0 ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_bind_result ( stmt , ( MYSQL_BIND * ) 0 ) ;\n DIE_UNLESS ( rc == 1 ) ;\n mysql_stmt_close ( stmt ) ;\n stmt = mysql_simple_prepare ( mysql , \"insert into test_pure(c2) values(?)\" ) ;\n check_stmt ( stmt ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . length = & length ;\n my_bind [ 0 ] . is_null = 0 ;\n my_bind [ 0 ] . buffer_length = 0 ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_GEOMETRY ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute_r ( stmt , rc ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_store_result ( stmt ) ;\n check_execute ( stmt , rc ) ;\n mysql_stmt_close ( stmt ) ;\n stmt = mysql_simple_prepare ( mysql , \"select * from test_pure\" ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_GEOMETRY ;\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n check_execute_r ( stmt , rc ) ;\n rc = mysql_stmt_store_result ( stmt ) ;\n DIE_UNLESS ( rc ) ;\n rc = mysql_stmt_store_result ( stmt ) ;\n DIE_UNLESS ( rc ) ;\n mysql_stmt_close ( stmt ) ;\n mysql_query ( mysql , \"DROP TABLE test_pure\" ) ;\n }"}
{"idx": 1358, "target": 0, "func": "ssize_t TSFetchReadData ( TSFetchSM fetch_sm , void * buf , size_t len ) {\n sdk_assert ( sdk_sanity_check_fetch_sm ( fetch_sm ) == TS_SUCCESS ) ;\n return ( ( FetchSM * ) fetch_sm ) -> ext_read_data ( ( char * ) buf , len ) ;\n }"}
{"idx": 1359, "target": 0, "func": "proto_item * proto_tree_add_eui64_format_value ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , const guint64 value , const char * format , ... ) {\n proto_item * pi ;\n va_list ap ;\n pi = proto_tree_add_eui64 ( tree , hfindex , tvb , start , length , value ) ;\n if ( pi != tree ) {\n va_start ( ap , format ) ;\n proto_tree_set_representation_value ( pi , format , ap ) ;\n va_end ( ap ) ;\n }\n return pi ;\n }"}
{"idx": 1360, "target": 0, "func": "static int dissect_h245_INTEGER_0_16777215 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 16777215U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 1361, "target": 0, "func": "static inline void qemu_put_be32s ( QEMUFile * f , const uint32_t * pv ) {\n qemu_put_be32 ( f , * pv ) ;\n }"}
{"idx": 1362, "target": 0, "func": "static int dissect_h245_T_excessiveError ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_excessiveError , T_excessiveError_sequence ) ;\n return offset ;\n }"}
{"idx": 1363, "target": 0, "func": "static int test_iopt_flush_instructions ( xd3_stream * stream , int ignore ) {\n int ret , i ;\n usize_t tpos = 0 ;\n usize_t delta_size , recon_size ;\n xd3_config config ;\n uint8_t target [ TESTBUFSIZE ] ;\n uint8_t delta [ TESTBUFSIZE ] ;\n uint8_t recon [ TESTBUFSIZE ] ;\n xd3_free_stream ( stream ) ;\n xd3_init_config ( & config , 0 ) ;\n config . smatch_cfg = XD3_SMATCH_SOFT ;\n config . smatcher_soft . large_look = 16 ;\n config . smatcher_soft . large_step = 16 ;\n config . smatcher_soft . small_look = 4 ;\n config . smatcher_soft . small_chain = 128 ;\n config . smatcher_soft . small_lchain = 16 ;\n config . smatcher_soft . max_lazy = 8 ;\n config . smatcher_soft . long_enough = 128 ;\n if ( ( ret = xd3_config_stream ( stream , & config ) ) ) {\n return ret ;\n }\n for ( i = 1 ;\n i < 250 ;\n i ++ ) {\n target [ tpos ++ ] = i ;\n target [ tpos ++ ] = i + 1 ;\n target [ tpos ++ ] = i + 2 ;\n target [ tpos ++ ] = i + 3 ;\n target [ tpos ++ ] = 0 ;\n }\n for ( i = 1 ;\n i < 253 ;\n i ++ ) {\n target [ tpos ++ ] = i ;\n }\n if ( ( ret = xd3_encode_stream ( stream , target , tpos , delta , & delta_size , sizeof ( delta ) ) ) ) {\n return ret ;\n }\n xd3_free_stream ( stream ) ;\n if ( ( ret = xd3_config_stream ( stream , & config ) ) ) {\n return ret ;\n }\n if ( ( ret = xd3_decode_stream ( stream , delta , delta_size , recon , & recon_size , sizeof ( recon ) ) ) ) {\n return ret ;\n }\n CHECK ( tpos == recon_size ) ;\n CHECK ( memcmp ( target , recon , recon_size ) == 0 ) ;\n return 0 ;\n }"}
{"idx": 1364, "target": 0, "func": "int master_service_settings_read ( struct master_service * service ATTR_UNUSED , const struct master_service_settings_input * input ATTR_UNUSED , struct master_service_settings_output * output_r , const char * * error_r ATTR_UNUSED ) {\n * output_r = output ;\n return 0 ;\n }"}
{"idx": 1365, "target": 0, "func": "static void ps2_put_keycode ( void * opaque , int keycode ) {\n PS2KbdState * s = opaque ;\n trace_ps2_put_keycode ( opaque , keycode ) ;\n qemu_system_wakeup_request ( QEMU_WAKEUP_REASON_OTHER ) ;\n if ( s -> translate ) {\n if ( keycode == 0xf0 ) {\n s -> need_high_bit = true ;\n }\n else if ( s -> need_high_bit ) {\n ps2_queue ( & s -> common , translate_table [ keycode ] | 0x80 ) ;\n s -> need_high_bit = false ;\n }\n else {\n ps2_queue ( & s -> common , translate_table [ keycode ] ) ;\n }\n }\n else {\n ps2_queue ( & s -> common , keycode ) ;\n }\n }"}
{"idx": 1366, "target": 1, "func": "static gint64 ascend_seek ( wtap * wth , int * err , gchar * * err_info ) {\n int byte ;\n gint64 date_off = - 1 , cur_off , packet_off ;\n size_t string_level [ ASCEND_MAGIC_STRINGS ] ;\n guint string_i = 0 , type = 0 ;\n guint excessive_read_count = 262144 ;\n memset ( & string_level , 0 , sizeof ( string_level ) ) ;\n while ( ( ( byte = file_getc ( wth -> fh ) ) != EOF ) ) {\n excessive_read_count -- ;\n if ( ! excessive_read_count ) {\n * err = 0 ;\n return - 1 ;\n }\n for ( string_i = 0 ;\n string_i < ASCEND_MAGIC_STRINGS ;\n string_i ++ ) {\n const gchar * strptr = ascend_magic [ string_i ] . strptr ;\n size_t len = strlen ( strptr ) ;\n if ( byte == * ( strptr + string_level [ string_i ] ) ) {\n string_level [ string_i ] ++ ;\n if ( string_level [ string_i ] >= len ) {\n cur_off = file_tell ( wth -> fh ) ;\n if ( cur_off == - 1 ) {\n * err = file_error ( wth -> fh , err_info ) ;\n return - 1 ;\n }\n if ( strcmp ( strptr , ASCEND_DATE ) == 0 ) {\n date_off = cur_off - len ;\n }\n else {\n if ( date_off == - 1 ) {\n packet_off = cur_off - len ;\n }\n else {\n packet_off = date_off ;\n }\n type = ascend_magic [ string_i ] . type ;\n goto found ;\n }\n }\n }\n else {\n string_level [ string_i ] = 0 ;\n }\n }\n }\n * err = file_error ( wth -> fh , err_info ) ;\n return - 1 ;\n found : if ( file_seek ( wth -> fh , packet_off , SEEK_SET , err ) == - 1 ) return - 1 ;\n wth -> phdr . pseudo_header . ascend . type = type ;\n return packet_off ;\n }"}
{"idx": 1367, "target": 0, "func": "TSReturnCode TSMimeHdrCopy ( TSMBuffer dest_bufp , TSMLoc dest_obj , TSMBuffer src_bufp , TSMLoc src_obj ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( src_bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_mbuffer ( dest_bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( src_obj ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( src_obj ) == TS_SUCCESS ) ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( dest_obj ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( dest_obj ) == TS_SUCCESS ) ) ;\n if ( ! isWriteable ( dest_bufp ) ) {\n return TS_ERROR ;\n }\n HdrHeap * s_heap , * d_heap ;\n MIMEHdrImpl * s_mh , * d_mh ;\n s_heap = ( ( HdrHeapSDKHandle * ) src_bufp ) -> m_heap ;\n d_heap = ( ( HdrHeapSDKHandle * ) dest_bufp ) -> m_heap ;\n s_mh = _hdr_mloc_to_mime_hdr_impl ( src_obj ) ;\n d_mh = _hdr_mloc_to_mime_hdr_impl ( dest_obj ) ;\n mime_hdr_fields_clear ( d_heap , d_mh ) ;\n mime_hdr_copy_onto ( s_mh , s_heap , d_mh , d_heap , ( s_heap != d_heap ) ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 1368, "target": 0, "func": "int TS_ext_print_bio ( BIO * bio , const STACK_OF ( X509_EXTENSION ) * extensions ) {\n int i , critical , n ;\n X509_EXTENSION * ex ;\n ASN1_OBJECT * obj ;\n BIO_printf ( bio , \"Extensions:\\n\" ) ;\n n = X509v3_get_ext_count ( extensions ) ;\n for ( i = 0 ;\n i < n ;\n i ++ ) {\n ex = X509v3_get_ext ( extensions , i ) ;\n obj = X509_EXTENSION_get_object ( ex ) ;\n i2a_ASN1_OBJECT ( bio , obj ) ;\n critical = X509_EXTENSION_get_critical ( ex ) ;\n BIO_printf ( bio , \": %s\\n\" , critical ? \"critical\" : \"\" ) ;\n if ( ! X509V3_EXT_print ( bio , ex , 0 , 4 ) ) {\n BIO_printf ( bio , \"%4s\" , \"\" ) ;\n ASN1_STRING_print ( bio , X509_EXTENSION_get_data ( ex ) ) ;\n }\n BIO_write ( bio , \"\\n\" , 1 ) ;\n }\n return 1 ;\n }"}
{"idx": 1369, "target": 0, "func": "static u_char * create_data_segment ( struct filter_header * fh , struct filter_op * fop , size_t n ) {\n size_t i , len = 0 ;\n u_char * data = NULL ;\n for ( i = 0 ;\n i < n ;\n i ++ ) {\n switch ( fop [ i ] . opcode ) {\n case FOP_FUNC : if ( fop [ i ] . op . func . slen ) {\n ef_debug ( 1 , \"@\" ) ;\n len += add_data_segment ( & data , len , & fop [ i ] . op . func . string , fop [ i ] . op . func . slen ) ;\n }\n if ( fop [ i ] . op . func . rlen ) {\n ef_debug ( 1 , \"@\" ) ;\n len += add_data_segment ( & data , len , & fop [ i ] . op . func . replace , fop [ i ] . op . func . rlen ) ;\n }\n break ;\n case FOP_TEST : if ( fop [ i ] . op . test . slen ) {\n ef_debug ( 1 , \"@\" ) ;\n len += add_data_segment ( & data , len , & fop [ i ] . op . test . string , fop [ i ] . op . test . slen ) ;\n }\n break ;\n case FOP_ASSIGN : if ( fop [ i ] . op . assign . slen ) {\n ef_debug ( 1 , \"@\" ) ;\n len += add_data_segment ( & data , len , & fop [ i ] . op . test . string , fop [ i ] . op . test . slen ) ;\n }\n break ;\n }\n }\n fh -> code = fh -> data + len ;\n return data ;\n }"}
{"idx": 1370, "target": 0, "func": "int phar_parse_tarfile ( php_stream * fp , char * fname , int fname_len , char * alias , int alias_len , phar_archive_data * * pphar , int is_data , php_uint32 compression , char * * error TSRMLS_DC ) {\n char buf [ 512 ] , * actual_alias = NULL , * p ;\n phar_entry_info entry = {\n 0 }\n ;\n size_t pos = 0 , read , totalsize ;\n tar_header * hdr ;\n php_uint32 sum1 , sum2 , size , old ;\n phar_archive_data * myphar , * * actual ;\n int last_was_longlink = 0 ;\n if ( error ) {\n * error = NULL ;\n }\n php_stream_seek ( fp , 0 , SEEK_END ) ;\n totalsize = php_stream_tell ( fp ) ;\n php_stream_seek ( fp , 0 , SEEK_SET ) ;\n read = php_stream_read ( fp , buf , sizeof ( buf ) ) ;\n if ( read != sizeof ( buf ) ) {\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: \\\"%s\\\" is not a tar file or is truncated\" , fname ) ;\n }\n php_stream_close ( fp ) ;\n return FAILURE ;\n }\n hdr = ( tar_header * ) buf ;\n old = ( memcmp ( hdr -> magic , \"ustar\" , sizeof ( \"ustar\" ) - 1 ) != 0 ) ;\n myphar = ( phar_archive_data * ) pecalloc ( 1 , sizeof ( phar_archive_data ) , PHAR_G ( persist ) ) ;\n myphar -> is_persistent = PHAR_G ( persist ) ;\n zend_hash_init ( & myphar -> manifest , 2 + ( totalsize >> 12 ) , zend_get_hash_value , destroy_phar_manifest_entry , ( zend_bool ) myphar -> is_persistent ) ;\n zend_hash_init ( & myphar -> mounted_dirs , 5 , zend_get_hash_value , NULL , ( zend_bool ) myphar -> is_persistent ) ;\n zend_hash_init ( & myphar -> virtual_dirs , 4 + ( totalsize >> 11 ) , zend_get_hash_value , NULL , ( zend_bool ) myphar -> is_persistent ) ;\n myphar -> is_tar = 1 ;\n myphar -> flags = compression ;\n entry . is_tar = 1 ;\n entry . is_crc_checked = 1 ;\n entry . phar = myphar ;\n pos += sizeof ( buf ) ;\n do {\n phar_entry_info * newentry ;\n pos = php_stream_tell ( fp ) ;\n hdr = ( tar_header * ) buf ;\n sum1 = phar_tar_number ( hdr -> checksum , sizeof ( hdr -> checksum ) ) ;\n if ( sum1 == 0 && phar_tar_checksum ( buf , sizeof ( buf ) ) == 0 ) {\n break ;\n }\n memset ( hdr -> checksum , ' ' , sizeof ( hdr -> checksum ) ) ;\n sum2 = phar_tar_checksum ( buf , old ? sizeof ( old_tar_header ) : sizeof ( tar_header ) ) ;\n size = entry . uncompressed_filesize = entry . compressed_filesize = phar_tar_number ( hdr -> size , sizeof ( hdr -> size ) ) ;\n if ( ( ( ! old && hdr -> prefix [ 0 ] == 0 ) || old ) && strlen ( hdr -> name ) == sizeof ( \".phar/signature.bin\" ) - 1 && ! strncmp ( hdr -> name , \".phar/signature.bin\" , sizeof ( \".phar/signature.bin\" ) - 1 ) ) {\n off_t curloc ;\n if ( size > 511 ) {\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: tar-based phar \\\"%s\\\" has signature that is larger than 511 bytes, cannot process\" , fname ) ;\n }\n bail : php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n return FAILURE ;\n }\n curloc = php_stream_tell ( fp ) ;\n read = php_stream_read ( fp , buf , size ) ;\n if ( read != size ) {\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: tar-based phar \\\"%s\\\" signature cannot be read\" , fname ) ;\n }\n goto bail ;\n }\n # ifdef WORDS_BIGENDIAN # define PHAR_GET_32 ( buffer ) \\ ( ( ( ( ( unsigned char * ) ( buffer ) ) [ 3 ] ) << 24 ) \\ | ( ( ( ( unsigned char * ) ( buffer ) ) [ 2 ] ) << 16 ) \\ | ( ( ( ( unsigned char * ) ( buffer ) ) [ 1 ] ) << 8 ) \\ | ( ( ( unsigned char * ) ( buffer ) ) [ 0 ] ) ) # else # define PHAR_GET_32 ( buffer ) ( php_uint32 ) * ( buffer ) # endif myphar -> sig_flags = PHAR_GET_32 ( buf ) ;\n if ( FAILURE == phar_verify_signature ( fp , php_stream_tell ( fp ) - size - 512 , myphar -> sig_flags , buf + 8 , size - 8 , fname , & myphar -> signature , & myphar -> sig_len , error TSRMLS_CC ) ) {\n if ( error ) {\n char * save = * error ;\n spprintf ( error , 4096 , \"phar error: tar-based phar \\\"%s\\\" signature cannot be verified: %s\" , fname , save ) ;\n efree ( save ) ;\n }\n goto bail ;\n }\n php_stream_seek ( fp , curloc + 512 , SEEK_SET ) ;\n if ( ( ( hdr -> typeflag == '\\0' ) || ( hdr -> typeflag == TAR_FILE ) ) && size > 0 ) {\n php_stream_seek ( fp , 512 , SEEK_CUR ) ;\n if ( ( uint ) php_stream_tell ( fp ) > totalsize ) {\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: \\\"%s\\\" is a corrupted tar file (truncated)\" , fname ) ;\n }\n php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n return FAILURE ;\n }\n }\n read = php_stream_read ( fp , buf , sizeof ( buf ) ) ;\n if ( read != sizeof ( buf ) ) {\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: \\\"%s\\\" is a corrupted tar file (truncated)\" , fname ) ;\n }\n php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n return FAILURE ;\n }\n hdr = ( tar_header * ) buf ;\n sum1 = phar_tar_number ( hdr -> checksum , sizeof ( hdr -> checksum ) ) ;\n if ( sum1 == 0 && phar_tar_checksum ( buf , sizeof ( buf ) ) == 0 ) {\n break ;\n }\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: \\\"%s\\\" has entries after signature, invalid phar\" , fname ) ;\n }\n goto bail ;\n }\n if ( ! last_was_longlink && hdr -> typeflag == 'L' ) {\n last_was_longlink = 1 ;\n entry . filename_len = entry . uncompressed_filesize ;\n if ( entry . filename_len == UINT_MAX ) {\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: \\\"%s\\\" is a corrupted tar file (invalid entry size)\" , fname ) ;\n }\n php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n return FAILURE ;\n }\n entry . filename = pemalloc ( entry . filename_len + 1 , myphar -> is_persistent ) ;\n read = php_stream_read ( fp , entry . filename , entry . filename_len ) ;\n if ( read != entry . filename_len ) {\n efree ( entry . filename ) ;\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: \\\"%s\\\" is a corrupted tar file (truncated)\" , fname ) ;\n }\n php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n return FAILURE ;\n }\n entry . filename [ entry . filename_len ] = '\\0' ;\n size = ( ( size + 511 ) & ~ 511 ) - size ;\n php_stream_seek ( fp , size , SEEK_CUR ) ;\n if ( ( uint ) php_stream_tell ( fp ) > totalsize ) {\n efree ( entry . filename ) ;\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: \\\"%s\\\" is a corrupted tar file (truncated)\" , fname ) ;\n }\n php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n return FAILURE ;\n }\n read = php_stream_read ( fp , buf , sizeof ( buf ) ) ;\n if ( read != sizeof ( buf ) ) {\n efree ( entry . filename ) ;\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: \\\"%s\\\" is a corrupted tar file (truncated)\" , fname ) ;\n }\n php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n return FAILURE ;\n }\n continue ;\n }\n else if ( ! last_was_longlink && ! old && hdr -> prefix [ 0 ] != 0 ) {\n char name [ 256 ] ;\n int i , j ;\n for ( i = 0 ;\n i < 155 ;\n i ++ ) {\n name [ i ] = hdr -> prefix [ i ] ;\n if ( name [ i ] == '\\0' ) {\n break ;\n }\n }\n name [ i ++ ] = '/' ;\n for ( j = 0 ;\n j < 100 ;\n j ++ ) {\n name [ i + j ] = hdr -> name [ j ] ;\n if ( name [ i + j ] == '\\0' ) {\n break ;\n }\n }\n entry . filename_len = i + j ;\n if ( name [ entry . filename_len - 1 ] == '/' ) {\n entry . filename_len -- ;\n }\n entry . filename = pestrndup ( name , entry . filename_len , myphar -> is_persistent ) ;\n }\n else if ( ! last_was_longlink ) {\n int i ;\n for ( i = 0 ;\n i < 100 ;\n i ++ ) {\n if ( hdr -> name [ i ] == '\\0' ) {\n break ;\n }\n }\n entry . filename_len = i ;\n entry . filename = pestrndup ( hdr -> name , i , myphar -> is_persistent ) ;\n if ( i > 0 && entry . filename [ entry . filename_len - 1 ] == '/' ) {\n entry . filename [ entry . filename_len - 1 ] = '\\0' ;\n entry . filename_len -- ;\n }\n }\n last_was_longlink = 0 ;\n phar_add_virtual_dirs ( myphar , entry . filename , entry . filename_len TSRMLS_CC ) ;\n if ( sum1 != sum2 ) {\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: \\\"%s\\\" is a corrupted tar file (checksum mismatch of file \\\"%s\\\")\" , fname , entry . filename ) ;\n }\n pefree ( entry . filename , myphar -> is_persistent ) ;\n php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n return FAILURE ;\n }\n entry . tar_type = ( ( old & ( hdr -> typeflag == '\\0' ) ) ? TAR_FILE : hdr -> typeflag ) ;\n entry . offset = entry . offset_abs = pos ;\n entry . fp_type = PHAR_FP ;\n entry . flags = phar_tar_number ( hdr -> mode , sizeof ( hdr -> mode ) ) & PHAR_ENT_PERM_MASK ;\n entry . timestamp = phar_tar_number ( hdr -> mtime , sizeof ( hdr -> mtime ) ) ;\n entry . is_persistent = myphar -> is_persistent ;\n # ifndef S_ISDIR # define S_ISDIR ( mode ) ( ( ( mode ) & S_IFMT ) == S_IFDIR ) # endif if ( old && entry . tar_type == TAR_FILE && S_ISDIR ( entry . flags ) ) {\n entry . tar_type = TAR_DIR ;\n }\n if ( entry . tar_type == TAR_DIR ) {\n entry . is_dir = 1 ;\n }\n else {\n entry . is_dir = 0 ;\n }\n entry . link = NULL ;\n if ( entry . tar_type == TAR_LINK ) {\n if ( ! zend_hash_exists ( & myphar -> manifest , hdr -> linkname , strlen ( hdr -> linkname ) ) ) {\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: \\\"%s\\\" is a corrupted tar file - hard link to non-existent file \\\"%s\\\"\" , fname , hdr -> linkname ) ;\n }\n pefree ( entry . filename , entry . is_persistent ) ;\n php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n return FAILURE ;\n }\n entry . link = estrdup ( hdr -> linkname ) ;\n }\n else if ( entry . tar_type == TAR_SYMLINK ) {\n entry . link = estrdup ( hdr -> linkname ) ;\n }\n phar_set_inode ( & entry TSRMLS_CC ) ;\n zend_hash_add ( & myphar -> manifest , entry . filename , entry . filename_len , ( void * ) & entry , sizeof ( phar_entry_info ) , ( void * * ) & newentry ) ;\n if ( entry . is_persistent ) {\n ++ entry . manifest_pos ;\n }\n if ( entry . filename_len >= sizeof ( \".phar/.metadata\" ) - 1 && ! memcmp ( entry . filename , \".phar/.metadata\" , sizeof ( \".phar/.metadata\" ) - 1 ) ) {\n if ( FAILURE == phar_tar_process_metadata ( newentry , fp TSRMLS_CC ) ) {\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: tar-based phar \\\"%s\\\" has invalid metadata in magic file \\\"%s\\\"\" , fname , entry . filename ) ;\n }\n php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n return FAILURE ;\n }\n }\n if ( ! actual_alias && entry . filename_len == sizeof ( \".phar/alias.txt\" ) - 1 && ! strncmp ( entry . filename , \".phar/alias.txt\" , sizeof ( \".phar/alias.txt\" ) - 1 ) ) {\n if ( size > 511 ) {\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: tar-based phar \\\"%s\\\" has alias that is larger than 511 bytes, cannot process\" , fname ) ;\n }\n php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n return FAILURE ;\n }\n read = php_stream_read ( fp , buf , size ) ;\n if ( read == size ) {\n buf [ size ] = '\\0' ;\n if ( ! phar_validate_alias ( buf , size ) ) {\n if ( size > 50 ) {\n buf [ 50 ] = '.' ;\n buf [ 51 ] = '.' ;\n buf [ 52 ] = '.' ;\n buf [ 53 ] = '\\0' ;\n }\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: invalid alias \\\"%s\\\" in tar-based phar \\\"%s\\\"\" , buf , fname ) ;\n }\n php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n return FAILURE ;\n }\n actual_alias = pestrndup ( buf , size , myphar -> is_persistent ) ;\n myphar -> alias = actual_alias ;\n myphar -> alias_len = size ;\n php_stream_seek ( fp , pos , SEEK_SET ) ;\n }\n else {\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: Unable to read alias from tar-based phar \\\"%s\\\"\" , fname ) ;\n }\n php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n return FAILURE ;\n }\n }\n size = ( size + 511 ) & ~ 511 ;\n if ( ( ( hdr -> typeflag == '\\0' ) || ( hdr -> typeflag == TAR_FILE ) ) && size > 0 ) {\n php_stream_seek ( fp , size , SEEK_CUR ) ;\n if ( ( uint ) php_stream_tell ( fp ) > totalsize ) {\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: \\\"%s\\\" is a corrupted tar file (truncated)\" , fname ) ;\n }\n php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n return FAILURE ;\n }\n }\n read = php_stream_read ( fp , buf , sizeof ( buf ) ) ;\n if ( read != sizeof ( buf ) ) {\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: \\\"%s\\\" is a corrupted tar file (truncated)\" , fname ) ;\n }\n php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n return FAILURE ;\n }\n }\n while ( read != 0 ) ;\n if ( zend_hash_exists ( & ( myphar -> manifest ) , \".phar/stub.php\" , sizeof ( \".phar/stub.php\" ) - 1 ) ) {\n myphar -> is_data = 0 ;\n }\n else {\n myphar -> is_data = 1 ;\n }\n if ( ! myphar -> is_data && PHAR_G ( require_hash ) && ! myphar -> signature ) {\n php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n if ( error ) {\n spprintf ( error , 0 , \"tar-based phar \\\"%s\\\" does not have a signature\" , fname ) ;\n }\n return FAILURE ;\n }\n myphar -> fname = pestrndup ( fname , fname_len , myphar -> is_persistent ) ;\n # ifdef PHP_WIN32 phar_unixify_path_separators ( myphar -> fname , fname_len ) ;\n # endif myphar -> fname_len = fname_len ;\n myphar -> fp = fp ;\n p = strrchr ( myphar -> fname , '/' ) ;\n if ( p ) {\n myphar -> ext = memchr ( p , '.' , ( myphar -> fname + fname_len ) - p ) ;\n if ( myphar -> ext == p ) {\n myphar -> ext = memchr ( p + 1 , '.' , ( myphar -> fname + fname_len ) - p - 1 ) ;\n }\n if ( myphar -> ext ) {\n myphar -> ext_len = ( myphar -> fname + fname_len ) - myphar -> ext ;\n }\n }\n phar_request_initialize ( TSRMLS_C ) ;\n if ( SUCCESS != zend_hash_add ( & ( PHAR_GLOBALS -> phar_fname_map ) , myphar -> fname , fname_len , ( void * ) & myphar , sizeof ( phar_archive_data * ) , ( void * * ) & actual ) ) {\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: Unable to add tar-based phar \\\"%s\\\" to phar registry\" , fname ) ;\n }\n php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n return FAILURE ;\n }\n myphar = * actual ;\n if ( actual_alias ) {\n phar_archive_data * * fd_ptr ;\n myphar -> is_temporary_alias = 0 ;\n if ( SUCCESS == zend_hash_find ( & ( PHAR_GLOBALS -> phar_alias_map ) , actual_alias , myphar -> alias_len , ( void * * ) & fd_ptr ) ) {\n if ( SUCCESS != phar_free_alias ( * fd_ptr , actual_alias , myphar -> alias_len TSRMLS_CC ) ) {\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: Unable to add tar-based phar \\\"%s\\\", alias is already in use\" , fname ) ;\n }\n zend_hash_del ( & ( PHAR_GLOBALS -> phar_fname_map ) , myphar -> fname , fname_len ) ;\n return FAILURE ;\n }\n }\n zend_hash_add ( & ( PHAR_GLOBALS -> phar_alias_map ) , actual_alias , myphar -> alias_len , ( void * ) & myphar , sizeof ( phar_archive_data * ) , NULL ) ;\n }\n else {\n phar_archive_data * * fd_ptr ;\n if ( alias_len ) {\n if ( SUCCESS == zend_hash_find ( & ( PHAR_GLOBALS -> phar_alias_map ) , alias , alias_len , ( void * * ) & fd_ptr ) ) {\n if ( SUCCESS != phar_free_alias ( * fd_ptr , alias , alias_len TSRMLS_CC ) ) {\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: Unable to add tar-based phar \\\"%s\\\", alias is already in use\" , fname ) ;\n }\n zend_hash_del ( & ( PHAR_GLOBALS -> phar_fname_map ) , myphar -> fname , fname_len ) ;\n return FAILURE ;\n }\n }\n zend_hash_add ( & ( PHAR_GLOBALS -> phar_alias_map ) , alias , alias_len , ( void * ) & myphar , sizeof ( phar_archive_data * ) , NULL ) ;\n myphar -> alias = pestrndup ( alias , alias_len , myphar -> is_persistent ) ;\n myphar -> alias_len = alias_len ;\n }\n else {\n myphar -> alias = pestrndup ( myphar -> fname , fname_len , myphar -> is_persistent ) ;\n myphar -> alias_len = fname_len ;\n }\n myphar -> is_temporary_alias = 1 ;\n }\n if ( pphar ) {\n * pphar = myphar ;\n }\n return SUCCESS ;\n }"}
{"idx": 1371, "target": 0, "func": "static void dissect_rsvp_flowspec ( proto_item * ti , packet_info * pinfo , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int type ) {\n int offset2 = offset + 4 ;\n int mylen , signal_type ;\n proto_tree * flowspec_tree , * ti2 = NULL ;\n proto_tree_add_uint ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type ) ;\n mylen = obj_length - 4 ;\n switch ( type ) {\n case 2 : if ( mylen < 4 ) {\n proto_tree_add_expert_format ( rsvp_object_tree , pinfo , & ei_rsvp_invalid_length , tvb , 0 , 0 , \"Object length %u < 8\" , obj_length ) ;\n return ;\n }\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_flowspec_message_format_version , tvb , offset2 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_data_length , tvb , offset2 + 2 , 2 , tvb_get_ntohs ( tvb , offset2 + 2 ) , \"%u words, not including header\" , tvb_get_ntohs ( tvb , offset2 + 2 ) ) ;\n proto_item_set_text ( ti , \"FLOWSPEC: \" ) ;\n mylen -= 4 ;\n offset2 += 4 ;\n while ( mylen > 0 ) {\n guint8 service_num ;\n guint length ;\n guint8 param_id ;\n guint param_len , raw_len ;\n guint param_len_processed ;\n if ( mylen < 4 ) {\n proto_tree_add_expert_format ( rsvp_object_tree , pinfo , & ei_rsvp_invalid_length , tvb , 0 , 0 , \"Object length %u not large enough\" , obj_length ) ;\n return ;\n }\n service_num = tvb_get_guint8 ( tvb , offset2 ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_flowspec_service_header , tvb , offset2 , 1 , ENC_BIG_ENDIAN ) ;\n length = tvb_get_ntohs ( tvb , offset2 + 2 ) ;\n proto_tree_add_uint_format ( rsvp_object_tree , hf_rsvp_data_length , tvb , offset2 + 2 , 2 , length , \"Length of service %u data: %u words, not including header\" , service_num , length ) ;\n mylen -= 4 ;\n offset2 += 4 ;\n proto_item_append_text ( ti , \"%s: \" , val_to_str_ext ( service_num , & intsrv_services_str_ext , \"Unknown (%d)\" ) ) ;\n param_len_processed = 0 ;\n while ( param_len_processed < length ) {\n ti2 = proto_tree_add_item ( rsvp_object_tree , hf_rsvp_parameter , tvb , offset2 , 1 , ENC_NA ) ;\n param_id = tvb_get_guint8 ( tvb , offset2 ) ;\n raw_len = tvb_get_ntohs ( tvb , offset2 + 2 ) ;\n param_len = raw_len + 1 ;\n switch ( param_id ) {\n case 127 : proto_item_set_len ( ti2 , param_len * 4 ) ;\n flowspec_tree = proto_item_add_subtree ( ti2 , TREE ( TT_FLOWSPEC_SUBTREE ) ) ;\n proto_tree_add_item ( flowspec_tree , hf_rsvp_parameter_flags , tvb , offset2 + 1 , 1 , ENC_NA ) ;\n proto_tree_add_uint_format_value ( flowspec_tree , hf_rsvp_parameter_length , tvb , offset2 + 2 , 2 , raw_len , \"%u words, not including header\" , raw_len ) ;\n proto_tree_add_item ( flowspec_tree , hf_rsvp_flowspec_token_bucket_rate , tvb , offset2 + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flowspec_tree , hf_rsvp_flowspec_token_bucket_size , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flowspec_tree , hf_rsvp_flowspec_peak_data_rate , tvb , offset2 + 12 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flowspec_tree , hf_rsvp_minimum_policed_unit , tvb , offset2 + 16 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flowspec_tree , hf_rsvp_maximum_packet_size , tvb , offset2 + 20 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \"Token Bucket, %.10g bytes/sec. \" , tvb_get_ntohieee_float ( tvb , offset2 + 4 ) ) ;\n proto_item_append_text ( ti2 , \"Rate=%.10g Burst=%.10g Peak=%.10g m=%u M=%u\" , tvb_get_ntohieee_float ( tvb , offset2 + 4 ) , tvb_get_ntohieee_float ( tvb , offset2 + 8 ) , tvb_get_ntohieee_float ( tvb , offset2 + 12 ) , tvb_get_ntohl ( tvb , offset2 + 16 ) , tvb_get_ntohl ( tvb , offset2 + 20 ) ) ;\n break ;\n case 130 : proto_item_set_len ( ti2 , param_len * 4 ) ;\n flowspec_tree = proto_item_add_subtree ( ti2 , TREE ( TT_FLOWSPEC_SUBTREE ) ) ;\n proto_tree_add_item ( flowspec_tree , hf_rsvp_parameter_flags , tvb , offset2 + 1 , 1 , ENC_NA ) ;\n proto_tree_add_uint_format_value ( flowspec_tree , hf_rsvp_parameter_length , tvb , offset2 + 2 , 2 , raw_len , \"%u words, not including header\" , raw_len ) ;\n proto_tree_add_item ( flowspec_tree , hf_rsvp_flowspec_rate , tvb , offset2 + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flowspec_tree , hf_rsvp_flowspec_slack_term , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \"RSpec, %.10g bytes/sec. \" , tvb_get_ntohieee_float ( tvb , offset2 + 4 ) ) ;\n proto_item_append_text ( ti2 , \"R=%.10g, s=%u\" , tvb_get_ntohieee_float ( tvb , offset2 + 4 ) , tvb_get_ntohl ( tvb , offset2 + 8 ) ) ;\n break ;\n case 128 : proto_item_set_len ( ti2 , param_len * 4 ) ;\n flowspec_tree = proto_item_add_subtree ( ti2 , TREE ( TT_FLOWSPEC_SUBTREE ) ) ;\n proto_tree_add_item ( flowspec_tree , hf_rsvp_parameter_flags , tvb , offset2 + 1 , 1 , ENC_NA ) ;\n proto_tree_add_uint_format_value ( flowspec_tree , hf_rsvp_parameter_length , tvb , offset2 + 2 , 2 , raw_len , \"%u words, not including header\" , raw_len ) ;\n proto_tree_add_item ( flowspec_tree , hf_rsvp_maximum_packet_size , tvb , offset2 + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \"Null Service. M=%u\" , tvb_get_ntohl ( tvb , offset2 + 4 ) ) ;\n proto_item_append_text ( ti2 , \"Max pkt size=%u\" , tvb_get_ntohl ( tvb , offset2 + 4 ) ) ;\n break ;\n default : expert_add_info_format ( pinfo , ti2 , & ei_rsvp_parameter , \"Unknown parameter %d, %d words\" , param_id , param_len ) ;\n break ;\n }\n param_len_processed += param_len ;\n offset2 += param_len * 4 ;\n }\n mylen -= length * 4 ;\n }\n break ;\n case 4 : proto_item_set_text ( ti , \"FLOWSPEC: SONET/SDH, \" ) ;\n proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"4 - SONET/SDH\" ) ;\n signal_type = tvb_get_guint8 ( tvb , offset2 ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_flowspec_signal_type_sonet , tvb , offset2 , 1 , ENC_BIG_ENDIAN ) ;\n ti2 = proto_tree_add_item ( rsvp_object_tree , hf_rsvp_flowspec_requested_concatenation , tvb , offset2 + 1 , 1 , ENC_BIG_ENDIAN ) ;\n flowspec_tree = proto_item_add_subtree ( ti2 , TREE ( TT_FLOWSPEC_SUBTREE ) ) ;\n proto_tree_add_item ( flowspec_tree , hf_rsvp_flowspec_standard_contiguous_concatenation , tvb , offset2 + 1 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flowspec_tree , hf_rsvp_flowspec_arbitrary_contiguous_concatenation , tvb , offset2 + 1 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_flowspec_number_of_contiguous_components , tvb , offset2 + 2 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_flowspec_number_of_virtual_components , tvb , offset2 + 4 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_flowspec_multiplier , tvb , offset2 + 6 , 2 , ENC_BIG_ENDIAN ) ;\n ti2 = proto_tree_add_item ( rsvp_object_tree , hf_rsvp_flowspec_transparency , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n flowspec_tree = proto_item_add_subtree ( ti2 , TREE ( TT_FLOWSPEC_SUBTREE ) ) ;\n proto_tree_add_item ( flowspec_tree , hf_rsvp_flowspec_regenerator_section , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flowspec_tree , hf_rsvp_flowspec_multiplex_section , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flowspec_tree , hf_rsvp_flowspec_J0_transparency , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flowspec_tree , hf_rsvp_flowspec_SOH_RSOH_DCC_transparency , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flowspec_tree , hf_rsvp_flowspec_LOH_MSOH_DCC_transparency , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flowspec_tree , hf_rsvp_flowspec_LOH_MSOH_extended_DCC_transparency , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flowspec_tree , hf_rsvp_flowspec_K1_K2_transparency , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flowspec_tree , hf_rsvp_flowspec_E1_transparency , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flowspec_tree , hf_rsvp_flowspec_F1_transparency , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flowspec_tree , hf_rsvp_flowspec_E2_transparency , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flowspec_tree , hf_rsvp_flowspec_B1_transparency , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flowspec_tree , hf_rsvp_flowspec_B2_transparency , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flowspec_tree , hf_rsvp_flowspec_M0_transparency , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flowspec_tree , hf_rsvp_flowspec_M1_transparency , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_flowspec_profile , tvb , offset2 + 12 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \"Signal [%s], RCC %d, NCC %d, NVC %d, MT %d, Transparency %d, Profile %d\" , val_to_str_ext_const ( signal_type , & gmpls_sonet_signal_type_str_ext , \"Unknown\" ) , tvb_get_guint8 ( tvb , offset2 + 1 ) , tvb_get_ntohs ( tvb , offset2 + 2 ) , tvb_get_ntohs ( tvb , offset2 + 4 ) , tvb_get_ntohs ( tvb , offset2 + 6 ) , tvb_get_ntohl ( tvb , offset2 + 8 ) , tvb_get_ntohl ( tvb , offset2 + 12 ) ) ;\n break ;\n case 5 : proto_item_set_text ( ti , \"FLOWSPEC: G.709, \" ) ;\n proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"5 - G.709\" ) ;\n signal_type = tvb_get_guint8 ( tvb , offset2 ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_flowspec_signal_type_g709 , tvb , offset2 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_flowspec_number_of_multiplexed_components , tvb , offset2 + 2 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_flowspec_number_of_virtual_components , tvb , offset2 + 4 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_flowspec_multiplier , tvb , offset2 + 6 , 2 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \"Signal [%s], NMC %d, NVC %d, MT %d\" , rval_to_str ( signal_type , gmpls_g709_signal_type_rvals , \"Unknown\" ) , tvb_get_ntohs ( tvb , offset2 + 2 ) , tvb_get_ntohs ( tvb , offset2 + 4 ) , tvb_get_ntohs ( tvb , offset2 + 6 ) ) ;\n break ;\n case 6 : proto_item_set_text ( ti , \"FLOWSPEC: Ethernet, \" ) ;\n proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"6 - Ethernet\" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_switching_granularity , tvb , offset2 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_flowspec_mtu , tvb , offset2 + 2 , 2 , ENC_BIG_ENDIAN ) ;\n dissect_rsvp_eth_tspec_tlv ( ti , pinfo , rsvp_object_tree , tvb , offset + 8 , obj_length - 8 , TREE ( TT_FLOWSPEC_SUBTREE ) ) ;\n break ;\n default : break ;\n }\n }"}
{"idx": 1372, "target": 0, "func": "static void unixWarningHandler ( const char * module , const char * fmt , va_list ap ) {\n if ( module != NULL ) fprintf ( stderr , \"%s: \" , module ) ;\n fprintf ( stderr , \"Warning, \" ) ;\n vfprintf ( stderr , fmt , ap ) ;\n fprintf ( stderr , \".\\n\" ) ;\n }"}
{"idx": 1373, "target": 1, "func": "static int dissect_h225_SetupAcknowledge_UUIE ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 428 \"./asn1/h225/h225.cnf\" h225_packet_info * h225_pi ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_SetupAcknowledge_UUIE , SetupAcknowledge_UUIE_sequence ) ;\n # line 432 \"./asn1/h225/h225.cnf\" h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> cs_type = H225_SETUP_ACK ;\n g_snprintf ( h225_pi -> frame_label , 50 , \"%s\" , val_to_str ( h225_pi -> cs_type , T_h323_message_body_vals , \"<unknown>\" ) ) ;\n }\n return offset ;\n }"}
{"idx": 1374, "target": 0, "func": "static void setup_frame_size_with_refs ( VP9_COMMON * cm , struct vp9_read_bit_buffer * rb ) {\n int width , height ;\n int found = 0 , i ;\n for ( i = 0 ;\n i < REFS_PER_FRAME ;\n ++ i ) {\n if ( vp9_rb_read_bit ( rb ) ) {\n YV12_BUFFER_CONFIG * const buf = cm -> frame_refs [ i ] . buf ;\n width = buf -> y_crop_width ;\n height = buf -> y_crop_height ;\n found = 1 ;\n break ;\n }\n }\n if ( ! found ) vp9_read_frame_size ( rb , & width , & height ) ;\n for ( i = 0 ;\n i < REFS_PER_FRAME ;\n ++ i ) {\n RefBuffer * const ref_frame = & cm -> frame_refs [ i ] ;\n const int ref_width = ref_frame -> buf -> y_width ;\n const int ref_height = ref_frame -> buf -> y_height ;\n if ( ! valid_ref_frame_size ( ref_width , ref_height , width , height ) ) vpx_internal_error ( & cm -> error , VPX_CODEC_CORRUPT_FRAME , \"Referenced frame has invalid size\" ) ;\n }\n apply_frame_size ( cm , width , height ) ;\n setup_display_size ( cm , rb ) ;\n }"}
{"idx": 1375, "target": 0, "func": "static int dissect_h245_MultiplexedStreamModeParameters ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MultiplexedStreamModeParameters , MultiplexedStreamModeParameters_sequence ) ;\n return offset ;\n }"}
{"idx": 1376, "target": 0, "func": "static int dissect_t38_T_secondary_ifp_packets ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_t38_T_secondary_ifp_packets , T_secondary_ifp_packets_sequence_of ) ;\n return offset ;\n }"}
{"idx": 1377, "target": 0, "func": "TEST_F ( ImmersiveModeControllerAshTest , Layout ) {\n AddTab ( browser ( ) , GURL ( \"about:blank\" ) ) ;\n TabStrip * tabstrip = browser_view ( ) -> tabstrip ( ) ;\n ToolbarView * toolbar = browser_view ( ) -> toolbar ( ) ;\n views : : WebView * contents_web_view = browser_view ( ) -> GetContentsWebViewForTest ( ) ;\n ASSERT_FALSE ( browser_view ( ) -> GetWidget ( ) -> IsFullscreen ( ) ) ;\n ASSERT_FALSE ( controller ( ) -> IsEnabled ( ) ) ;\n EXPECT_TRUE ( tabstrip -> visible ( ) ) ;\n EXPECT_TRUE ( toolbar -> visible ( ) ) ;\n ToggleFullscreen ( ) ;\n EXPECT_TRUE ( browser_view ( ) -> GetWidget ( ) -> IsFullscreen ( ) ) ;\n EXPECT_TRUE ( controller ( ) -> IsEnabled ( ) ) ;\n EXPECT_FALSE ( controller ( ) -> IsRevealed ( ) ) ;\n EXPECT_TRUE ( tabstrip -> visible ( ) ) ;\n EXPECT_TRUE ( tabstrip -> IsImmersiveStyle ( ) ) ;\n EXPECT_FALSE ( toolbar -> visible ( ) ) ;\n EXPECT_EQ ( 0 , GetBoundsInWidget ( tabstrip ) . y ( ) ) ;\n EXPECT_EQ ( Tab : : GetImmersiveHeight ( ) , GetBoundsInWidget ( contents_web_view ) . y ( ) ) ;\n AttemptReveal ( ) ;\n EXPECT_TRUE ( controller ( ) -> IsRevealed ( ) ) ;\n EXPECT_TRUE ( tabstrip -> visible ( ) ) ;\n EXPECT_FALSE ( tabstrip -> IsImmersiveStyle ( ) ) ;\n EXPECT_TRUE ( toolbar -> visible ( ) ) ;\n EXPECT_EQ ( 0 , GetBoundsInWidget ( browser_view ( ) -> top_container ( ) ) . y ( ) ) ;\n EXPECT_EQ ( Tab : : GetImmersiveHeight ( ) , GetBoundsInWidget ( contents_web_view ) . y ( ) ) ;\n SetTabFullscreen ( true ) ;\n AttemptUnreveal ( ) ;\n AttemptReveal ( ) ;\n EXPECT_TRUE ( controller ( ) -> IsRevealed ( ) ) ;\n EXPECT_TRUE ( tabstrip -> visible ( ) ) ;\n EXPECT_FALSE ( tabstrip -> IsImmersiveStyle ( ) ) ;\n EXPECT_TRUE ( toolbar -> visible ( ) ) ;\n EXPECT_EQ ( 0 , GetBoundsInWidget ( browser_view ( ) -> top_container ( ) ) . y ( ) ) ;\n EXPECT_EQ ( 0 , GetBoundsInWidget ( contents_web_view ) . y ( ) ) ;\n AttemptUnreveal ( ) ;\n EXPECT_FALSE ( controller ( ) -> IsRevealed ( ) ) ;\n EXPECT_FALSE ( tabstrip -> visible ( ) ) ;\n EXPECT_FALSE ( toolbar -> visible ( ) ) ;\n EXPECT_EQ ( 0 , GetBoundsInWidget ( contents_web_view ) . y ( ) ) ;\n ToggleFullscreen ( ) ;\n EXPECT_FALSE ( browser_view ( ) -> GetWidget ( ) -> IsFullscreen ( ) ) ;\n EXPECT_FALSE ( controller ( ) -> IsEnabled ( ) ) ;\n EXPECT_FALSE ( controller ( ) -> IsRevealed ( ) ) ;\n EXPECT_TRUE ( tabstrip -> visible ( ) ) ;\n EXPECT_FALSE ( tabstrip -> IsImmersiveStyle ( ) ) ;\n EXPECT_TRUE ( toolbar -> visible ( ) ) ;\n }"}
{"idx": 1378, "target": 0, "func": "static uint32_t vmport_cmd_get_version ( void * opaque , uint32_t addr ) {\n X86CPU * cpu = X86_CPU ( current_cpu ) ;\n cpu -> env . regs [ R_EBX ] = VMPORT_MAGIC ;\n return 6 ;\n }"}
{"idx": 1379, "target": 0, "func": "void xmlrpc_process ( char * buffer , void * userdata ) {\n int retVal = 0 ;\n XMLRPCCmd * current = NULL ;\n XMLRPCCmd * xml ;\n char * tmp ;\n int ac ;\n char * * av = NULL ;\n char * name = NULL ;\n xmlrpc_error_code = 0 ;\n if ( ! buffer ) {\n xmlrpc_error_code = - 1 ;\n return ;\n }\n tmp = xmlrpc_parse ( buffer ) ;\n if ( tmp ) {\n name = xmlrpc_method ( tmp ) ;\n if ( name ) {\n xml = mowgli_patricia_retrieve ( XMLRPCCMD , name ) ;\n if ( xml ) {\n ac = xmlrpc_split_buf ( tmp , & av ) ;\n if ( xml -> func ) {\n retVal = xml -> func ( userdata , ac , av ) ;\n if ( retVal == XMLRPC_CONT ) {\n current = xml -> next ;\n while ( current && current -> func && retVal == XMLRPC_CONT ) {\n retVal = current -> func ( userdata , ac , av ) ;\n current = current -> next ;\n }\n }\n else {\n xmlrpc_error_code = - 7 ;\n xmlrpc_generic_error ( xmlrpc_error_code , \"XMLRPC error: First eligible function returned XMLRPC_STOP\" ) ;\n }\n }\n else {\n xmlrpc_error_code = - 6 ;\n xmlrpc_generic_error ( xmlrpc_error_code , \"XMLRPC error: Method has no registered function\" ) ;\n }\n }\n else {\n xmlrpc_error_code = - 4 ;\n xmlrpc_generic_error ( xmlrpc_error_code , \"XMLRPC error: Unknown routine called\" ) ;\n }\n }\n else {\n xmlrpc_error_code = - 3 ;\n xmlrpc_generic_error ( xmlrpc_error_code , \"XMLRPC error: Missing methodRequest or methodName.\" ) ;\n }\n }\n else {\n xmlrpc_error_code = - 2 ;\n xmlrpc_generic_error ( xmlrpc_error_code , \"XMLRPC error: Invalid document end at line 1\" ) ;\n }\n free ( av ) ;\n free ( tmp ) ;\n free ( name ) ;\n }"}
{"idx": 1380, "target": 0, "func": "static int dissect_usb_vid_probe ( proto_tree * parent_tree , tvbuff_t * tvb , int offset ) {\n proto_tree * tree ;\n static const int * hint_bits [ ] = {\n & 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 [ 4 ] , NULL }\n ;\n DISSECTOR_ASSERT ( array_length ( hint_bits ) == ( 1 + array_length ( hf_usb_vid_probe_hint_D ) ) ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , - 1 , ett_video_probe , NULL , \"Probe/Commit Info\" ) ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_usb_vid_probe_hint , ett_probe_hint , hint_bits , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_usb_vid_format_index , tvb , offset + 2 , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_usb_vid_frame_index , tvb , offset + 3 , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_usb_vid_frame_interval , tvb , offset + 4 , 4 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_usb_vid_probe_key_frame_rate , tvb , offset + 8 , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_usb_vid_probe_p_frame_rate , tvb , offset + 10 , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_usb_vid_probe_comp_quality , tvb , offset + 12 , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_usb_vid_probe_comp_window , tvb , offset + 14 , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_usb_vid_probe_delay , tvb , offset + 16 , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_usb_vid_probe_max_frame_sz , tvb , offset + 18 , 4 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_usb_vid_probe_max_payload_sz , tvb , offset + 22 , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 26 ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n static const int * framing_bits [ ] = {\n & hf_usb_vid_probe_framing_D [ 0 ] , & hf_usb_vid_probe_framing_D [ 1 ] , NULL }\n ;\n DISSECTOR_ASSERT ( array_length ( framing_bits ) == ( 1 + array_length ( hf_usb_vid_probe_framing_D ) ) ) ;\n proto_tree_add_item ( tree , hf_usb_vid_probe_clock_freq , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_usb_vid_probe_framing , ett_probe_framing , framing_bits , ENC_NA ) ;\n offset ++ ;\n proto_tree_add_item ( tree , hf_usb_vid_probe_preferred_ver , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_usb_vid_probe_min_ver , tvb , offset + 1 , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_usb_vid_probe_max_ver , tvb , offset + 2 , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n }\n return offset ;\n }"}
{"idx": 1381, "target": 0, "func": "static int decode_frame ( WMAProDecodeCtx * s , AVFrame * frame , int * got_frame_ptr ) {\n AVCodecContext * avctx = s -> avctx ;\n GetBitContext * gb = & s -> gb ;\n int more_frames = 0 ;\n int len = 0 ;\n int i , ret ;\n if ( s -> len_prefix ) len = get_bits ( gb , s -> log2_frame_size ) ;\n av_dlog ( s -> avctx , \"decoding frame with length %x\\n\" , len ) ;\n if ( decode_tilehdr ( s ) ) {\n s -> packet_loss = 1 ;\n return 0 ;\n }\n if ( s -> avctx -> channels > 1 && get_bits1 ( gb ) ) {\n if ( get_bits1 ( gb ) ) {\n for ( i = 0 ;\n i < avctx -> channels * avctx -> channels ;\n i ++ ) skip_bits ( gb , 4 ) ;\n }\n }\n if ( s -> dynamic_range_compression ) {\n s -> drc_gain = get_bits ( gb , 8 ) ;\n av_dlog ( s -> avctx , \"drc_gain %i\\n\" , s -> drc_gain ) ;\n }\n if ( get_bits1 ( gb ) ) {\n int av_unused skip ;\n if ( get_bits1 ( gb ) ) {\n skip = get_bits ( gb , av_log2 ( s -> samples_per_frame * 2 ) ) ;\n av_dlog ( s -> avctx , \"start skip: %i\\n\" , skip ) ;\n }\n if ( get_bits1 ( gb ) ) {\n skip = get_bits ( gb , av_log2 ( s -> samples_per_frame * 2 ) ) ;\n av_dlog ( s -> avctx , \"end skip: %i\\n\" , skip ) ;\n }\n }\n av_dlog ( s -> avctx , \"BITSTREAM: frame header length was %i\\n\" , get_bits_count ( gb ) - s -> frame_offset ) ;\n s -> parsed_all_subframes = 0 ;\n for ( i = 0 ;\n i < avctx -> channels ;\n i ++ ) {\n s -> channel [ i ] . decoded_samples = 0 ;\n s -> channel [ i ] . cur_subframe = 0 ;\n s -> channel [ i ] . reuse_sf = 0 ;\n }\n while ( ! s -> parsed_all_subframes ) {\n if ( decode_subframe ( s ) < 0 ) {\n s -> packet_loss = 1 ;\n return 0 ;\n }\n }\n frame -> nb_samples = s -> samples_per_frame ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n s -> packet_loss = 1 ;\n return 0 ;\n }\n for ( i = 0 ;\n i < avctx -> channels ;\n i ++ ) memcpy ( frame -> extended_data [ i ] , s -> channel [ i ] . out , s -> samples_per_frame * sizeof ( * s -> channel [ i ] . out ) ) ;\n for ( i = 0 ;\n i < avctx -> channels ;\n i ++ ) {\n memcpy ( & s -> channel [ i ] . out [ 0 ] , & s -> channel [ i ] . out [ s -> samples_per_frame ] , s -> samples_per_frame * sizeof ( * s -> channel [ i ] . out ) >> 1 ) ;\n }\n if ( s -> skip_frame ) {\n s -> skip_frame = 0 ;\n * got_frame_ptr = 0 ;\n }\n else {\n * got_frame_ptr = 1 ;\n }\n if ( s -> len_prefix ) {\n if ( len != ( get_bits_count ( gb ) - s -> frame_offset ) + 2 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"frame[%i] would have to skip %i bits\\n\" , s -> frame_num , len - ( get_bits_count ( gb ) - s -> frame_offset ) - 1 ) ;\n s -> packet_loss = 1 ;\n return 0 ;\n }\n skip_bits_long ( gb , len - ( get_bits_count ( gb ) - s -> frame_offset ) - 1 ) ;\n }\n else {\n while ( get_bits_count ( gb ) < s -> num_saved_bits && get_bits1 ( gb ) == 0 ) {\n }\n }\n more_frames = get_bits1 ( gb ) ;\n ++ s -> frame_num ;\n return more_frames ;\n }"}
{"idx": 1382, "target": 0, "func": "int jpc_pchglist_insert ( jpc_pchglist_t * pchglist , int pchgno , jpc_pchg_t * pchg ) {\n int i ;\n int newmaxpchgs ;\n jpc_pchg_t * * newpchgs ;\n if ( pchgno < 0 ) {\n pchgno = pchglist -> numpchgs ;\n }\n if ( pchglist -> numpchgs >= pchglist -> maxpchgs ) {\n newmaxpchgs = pchglist -> maxpchgs + 128 ;\n if ( ! ( newpchgs = jas_realloc2 ( pchglist -> pchgs , newmaxpchgs , sizeof ( jpc_pchg_t * ) ) ) ) {\n return - 1 ;\n }\n pchglist -> maxpchgs = newmaxpchgs ;\n pchglist -> pchgs = newpchgs ;\n }\n for ( i = pchglist -> numpchgs ;\n i > pchgno ;\n -- i ) {\n pchglist -> pchgs [ i ] = pchglist -> pchgs [ i - 1 ] ;\n }\n pchglist -> pchgs [ pchgno ] = pchg ;\n ++ pchglist -> numpchgs ;\n return 0 ;\n }"}
{"idx": 1383, "target": 0, "func": "VALUE rb_dlhandle_close ( VALUE self ) {\n struct dl_handle * dlhandle ;\n Data_Get_Struct ( self , struct dl_handle , dlhandle ) ;\n dlhandle -> open = 0 ;\n return INT2NUM ( dlclose ( dlhandle -> ptr ) ) ;\n }"}
{"idx": 1384, "target": 0, "func": "static void test_sqlmode ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND my_bind [ 2 ] ;\n char c1 [ 5 ] , c2 [ 5 ] ;\n int rc ;\n char query [ MAX_TEST_QUERY_LENGTH ] ;\n myheader ( \"test_sqlmode\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_piping\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_piping(name varchar(10))\" ) ;\n myquery ( rc ) ;\n strmov ( query , \"SET SQL_MODE= \\\"PIPES_AS_CONCAT\\\"\" ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n With %s\" , query ) ;\n rc = mysql_query ( mysql , query ) ;\n myquery ( rc ) ;\n strmov ( query , \"INSERT INTO test_piping VALUES(?||?)\" ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n query: %s\" , query ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n total parameters: %ld\" , mysql_stmt_param_count ( stmt ) ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 0 ] . buffer = ( void * ) c1 ;\n my_bind [ 0 ] . buffer_length = 2 ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 1 ] . buffer = ( void * ) c2 ;\n my_bind [ 1 ] . buffer_length = 3 ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n strmov ( c1 , \"My\" ) ;\n strmov ( c2 , \"SQL\" ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n mysql_stmt_close ( stmt ) ;\n verify_col_data ( \"test_piping\" , \"name\" , \"MySQL\" ) ;\n rc = mysql_query ( mysql , \"DELETE FROM test_piping\" ) ;\n myquery ( rc ) ;\n strmov ( query , \"SELECT connection_id ()\" ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n query: %s\" , query ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n mysql_stmt_close ( stmt ) ;\n strmov ( query , \"SET SQL_MODE= \\\"ANSI\\\"\" ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n With %s\" , query ) ;\n rc = mysql_query ( mysql , query ) ;\n myquery ( rc ) ;\n strmov ( query , \"INSERT INTO test_piping VALUES(?||?)\" ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n query: %s\" , query ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n total parameters: %ld\" , mysql_stmt_param_count ( stmt ) ) ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n strmov ( c1 , \"My\" ) ;\n strmov ( c2 , \"SQL\" ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n mysql_stmt_close ( stmt ) ;\n verify_col_data ( \"test_piping\" , \"name\" , \"MySQL\" ) ;\n strmov ( query , \"SELECT connection_id ()\" ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n query: %s\" , query ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n returned 1 row\\n\" ) ;\n mysql_stmt_close ( stmt ) ;\n strmov ( query , \"SET SQL_MODE= \\\"IGNORE_SPACE\\\"\" ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n With %s\" , query ) ;\n rc = mysql_query ( mysql , query ) ;\n myquery ( rc ) ;\n strmov ( query , \"SELECT connection_id ()\" ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n query: %s\" , query ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n returned 1 row\" ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 1385, "target": 0, "func": "static int Asn1SequenceAppend ( Asn1Generic * seq , Asn1Generic * node ) {\n Asn1Generic * it , * new_container ;\n if ( seq -> data == NULL ) {\n seq -> data = node ;\n return 0 ;\n }\n new_container = Asn1GenericNew ( ) ;\n if ( new_container == NULL ) return - 1 ;\n new_container -> data = node ;\n for ( it = seq ;\n it -> next != NULL ;\n it = it -> next ) ;\n it -> next = new_container ;\n return 0 ;\n }"}
{"idx": 1386, "target": 0, "func": "static void * Type_MPEcurve_Read ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number * nItems , cmsUInt32Number SizeOfTag ) {\n cmsStage * mpe = NULL ;\n cmsUInt16Number InputChans , OutputChans ;\n cmsUInt32Number i , BaseOffset ;\n cmsToneCurve * * GammaTables ;\n * nItems = 0 ;\n BaseOffset = io -> Tell ( io ) - sizeof ( _cmsTagBase ) ;\n if ( ! _cmsReadUInt16Number ( io , & InputChans ) ) return NULL ;\n if ( ! _cmsReadUInt16Number ( io , & OutputChans ) ) return NULL ;\n if ( InputChans != OutputChans ) return NULL ;\n GammaTables = ( cmsToneCurve * * ) _cmsCalloc ( self -> ContextID , InputChans , sizeof ( cmsToneCurve * ) ) ;\n if ( GammaTables == NULL ) return NULL ;\n if ( ReadPositionTable ( self , io , InputChans , BaseOffset , GammaTables , ReadMPECurve ) ) {\n mpe = cmsStageAllocToneCurves ( self -> ContextID , InputChans , GammaTables ) ;\n }\n else {\n mpe = NULL ;\n }\n for ( i = 0 ;\n i < InputChans ;\n i ++ ) {\n if ( GammaTables [ i ] ) cmsFreeToneCurve ( GammaTables [ i ] ) ;\n }\n _cmsFree ( self -> ContextID , GammaTables ) ;\n * nItems = ( mpe != NULL ) ? 1 : 0 ;\n return mpe ;\n cmsUNUSED_PARAMETER ( SizeOfTag ) ;\n }"}
{"idx": 1387, "target": 0, "func": "int vp8_update_entropy ( VP8_COMP * cpi , int update ) {\n VP8_COMMON * cm = & cpi -> common ;\n cm -> refresh_entropy_probs = update ;\n return 0 ;\n }"}
{"idx": 1388, "target": 0, "func": "static void ogg_validate_keyframe ( AVFormatContext * s , int idx , int pstart , int psize ) {\n struct ogg * ogg = s -> priv_data ;\n struct ogg_stream * os = ogg -> streams + idx ;\n int invalid = 0 ;\n if ( psize ) {\n switch ( s -> streams [ idx ] -> codec -> codec_id ) {\n case AV_CODEC_ID_THEORA : invalid = ! ! ( os -> pflags & AV_PKT_FLAG_KEY ) != ! ( os -> buf [ pstart ] & 0x40 ) ;\n break ;\n case AV_CODEC_ID_VP8 : invalid = ! ! ( os -> pflags & AV_PKT_FLAG_KEY ) != ! ( os -> buf [ pstart ] & 1 ) ;\n }\n if ( invalid ) {\n os -> pflags ^= AV_PKT_FLAG_KEY ;\n av_log ( s , AV_LOG_WARNING , \"Broken file, %skeyframe not correctly marked.\\n\" , ( os -> pflags & AV_PKT_FLAG_KEY ) ? \"\" : \"non-\" ) ;\n }\n }\n }"}
{"idx": 1389, "target": 0, "func": "static void advance_to_end_of_signature ( guint8 * * signature , guint8 * signature_length ) {\n gboolean done = FALSE ;\n gint8 current_type ;\n gint8 end_type = ARG_INVALID ;\n while ( * ( ++ ( * signature ) ) && -- ( * signature_length ) > 0 && ! done ) {\n current_type = * * signature ;\n if ( end_type != ARG_INVALID ) {\n if ( end_type == current_type ) {\n done = TRUE ;\n }\n continue ;\n }\n switch ( current_type ) {\n case ARG_ARRAY : advance_to_end_of_signature ( signature , signature_length ) ;\n break ;\n case ARG_STRUCT : end_type = ')' ;\n advance_to_end_of_signature ( signature , signature_length ) ;\n break ;\n case ARG_DICT_ENTRY : end_type = '}\n' ;\n advance_to_end_of_signature ( signature , signature_length ) ;\n break ;\n case ARG_BYTE : case ARG_DOUBLE : case ARG_UINT64 : case ARG_INT64 : case ARG_SIGNATURE : case ARG_HANDLE : case ARG_INT32 : case ARG_UINT32 : case ARG_BOOLEAN : case ARG_INT16 : case ARG_UINT16 : case ARG_STRING : case ARG_VARIANT : case ARG_OBJ_PATH : done = TRUE ;\n break ;\n default : done = TRUE ;\n break ;\n }\n }\n }"}
{"idx": 1390, "target": 1, "func": "static void update_state_rt ( VP9_COMP * cpi , PICK_MODE_CONTEXT * ctx , int mi_row , int mi_col , int bsize ) {\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCK * const x = & cpi -> mb ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n MB_MODE_INFO * const mbmi = & xd -> mi [ 0 ] -> mbmi ;\n const struct segmentation * const seg = & cm -> seg ;\n * ( xd -> mi [ 0 ] ) = ctx -> mic ;\n if ( ( cpi -> oxcf . aq_mode == CYCLIC_REFRESH_AQ ) && seg -> enabled ) {\n vp9_cyclic_refresh_update_segment ( cpi , & xd -> mi [ 0 ] -> mbmi , mi_row , mi_col , bsize , 1 ) ;\n vp9_init_plane_quantizers ( cpi , x ) ;\n }\n if ( is_inter_block ( mbmi ) ) {\n vp9_update_mv_count ( cm , xd ) ;\n if ( cm -> interp_filter == SWITCHABLE ) {\n const int pred_ctx = vp9_get_pred_context_switchable_interp ( xd ) ;\n ++ cm -> counts . switchable_interp [ pred_ctx ] [ mbmi -> interp_filter ] ;\n }\n }\n x -> skip = ctx -> skip ;\n x -> skip_txfm [ 0 ] = mbmi -> segment_id ? 0 : ctx -> skip_txfm [ 0 ] ;\n }"}
{"idx": 1391, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint32_t * src = ( const uint32_t * ) avpkt -> data ;\n AVFrame * pic = data ;\n int width = avctx -> width ;\n int y = 0 ;\n uint16_t * ydst , * udst , * vdst , * yend ;\n int ret ;\n if ( avpkt -> size < avctx -> width * avctx -> height * 8 / 3 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Packet too small\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( avpkt -> size > avctx -> width * avctx -> height * 8 / 3 ) {\n av_log_ask_for_sample ( avctx , \"Probably padded data\\n\" ) ;\n }\n if ( ( ret = ff_get_buffer ( avctx , pic , 0 ) ) < 0 ) return ret ;\n ydst = ( uint16_t * ) pic -> data [ 0 ] ;\n udst = ( uint16_t * ) pic -> data [ 1 ] ;\n vdst = ( uint16_t * ) pic -> data [ 2 ] ;\n yend = ydst + width ;\n pic -> pict_type = AV_PICTURE_TYPE_I ;\n pic -> key_frame = 1 ;\n for ( ;\n ;\n ) {\n uint32_t v = av_be2ne32 ( * src ++ ) ;\n * udst ++ = ( v >> 16 ) & 0xFFC0 ;\n * ydst ++ = ( v >> 6 ) & 0xFFC0 ;\n * vdst ++ = ( v << 4 ) & 0xFFC0 ;\n v = av_be2ne32 ( * src ++ ) ;\n * ydst ++ = ( v >> 16 ) & 0xFFC0 ;\n if ( ydst >= yend ) {\n ydst += pic -> linesize [ 0 ] / 2 - width ;\n udst += pic -> linesize [ 1 ] / 2 - width / 2 ;\n vdst += pic -> linesize [ 2 ] / 2 - width / 2 ;\n yend = ydst + width ;\n if ( ++ y >= avctx -> height ) break ;\n }\n * udst ++ = ( v >> 6 ) & 0xFFC0 ;\n * ydst ++ = ( v << 4 ) & 0xFFC0 ;\n v = av_be2ne32 ( * src ++ ) ;\n * vdst ++ = ( v >> 16 ) & 0xFFC0 ;\n * ydst ++ = ( v >> 6 ) & 0xFFC0 ;\n if ( ydst >= yend ) {\n ydst += pic -> linesize [ 0 ] / 2 - width ;\n udst += pic -> linesize [ 1 ] / 2 - width / 2 ;\n vdst += pic -> linesize [ 2 ] / 2 - width / 2 ;\n yend = ydst + width ;\n if ( ++ y >= avctx -> height ) break ;\n }\n * udst ++ = ( v << 4 ) & 0xFFC0 ;\n v = av_be2ne32 ( * src ++ ) ;\n * ydst ++ = ( v >> 16 ) & 0xFFC0 ;\n * vdst ++ = ( v >> 6 ) & 0xFFC0 ;\n * ydst ++ = ( v << 4 ) & 0xFFC0 ;\n if ( ydst >= yend ) {\n ydst += pic -> linesize [ 0 ] / 2 - width ;\n udst += pic -> linesize [ 1 ] / 2 - width / 2 ;\n vdst += pic -> linesize [ 2 ] / 2 - width / 2 ;\n yend = ydst + width ;\n if ( ++ y >= avctx -> height ) break ;\n }\n }\n * got_frame = 1 ;\n return avpkt -> size ;\n }"}
{"idx": 1392, "target": 0, "func": "const EVP_CIPHER * EVP_aes_ ## keylen ## _ ## mode ( void ) \\ {\n return & aes_ ## keylen ## _ ## mode ;\n }\n # 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_CAPABLE ( OPENSSL_armcap_P & ARMV7_NEON ) # endif # if defined ( VPAES_ASM ) # define VPAES_CAPABLE ( OPENSSL_armcap_P & ARMV7_NEON ) # endif # define HWAES_CAPABLE ( OPENSSL_armcap_P & ARMV8_AES ) # define HWAES_set_encrypt_key aes_v8_set_encrypt_key # define HWAES_set_decrypt_key aes_v8_set_decrypt_key # define HWAES_encrypt aes_v8_encrypt # define HWAES_decrypt aes_v8_decrypt # define HWAES_cbc_encrypt aes_v8_cbc_encrypt # define HWAES_ctr32_encrypt_blocks aes_v8_ctr32_encrypt_blocks # endif # endif # if defined ( HWAES_CAPABLE ) int HWAES_set_encrypt_key ( const unsigned char * userKey , const int bits , AES_KEY * key ) ;\n int HWAES_set_decrypt_key ( const unsigned char * userKey , const int bits , AES_KEY * key ) ;\n void HWAES_encrypt ( const unsigned char * in , unsigned char * out , const AES_KEY * key ) ;\n void HWAES_decrypt ( const unsigned char * in , unsigned char * out , const AES_KEY * key ) ;\n void HWAES_cbc_encrypt ( const unsigned char * in , unsigned char * out , size_t length , const AES_KEY * key , unsigned char * ivec , const int enc ) ;\n void HWAES_ctr32_encrypt_blocks ( const unsigned char * in , unsigned char * out , size_t len , const AES_KEY * key , const unsigned char ivec [ 16 ] ) ;\n void HWAES_xts_encrypt ( const unsigned char * inp , unsigned char * out , size_t len , const AES_KEY * key1 , const AES_KEY * key2 , const unsigned char iv [ 16 ] ) ;\n void HWAES_xts_decrypt ( const unsigned char * inp , unsigned char * out , size_t len , const AES_KEY * key1 , const AES_KEY * key2 , const unsigned char iv [ 16 ] ) ;\n # endif # define BLOCK_CIPHER_generic_pack ( nid , keylen , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 16 , 16 , cbc , cbc , CBC , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 16 , 0 , ecb , ecb , ECB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , ofb128 , ofb , OFB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb128 , cfb , CFB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb1 , cfb1 , CFB , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb8 , cfb8 , CFB , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , ctr , ctr , CTR , flags ) static int aes_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n int ret , mode ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n mode = EVP_CIPHER_CTX_mode ( ctx ) ;\n if ( ( mode == EVP_CIPH_ECB_MODE || mode == EVP_CIPH_CBC_MODE ) && ! enc ) {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_decrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n # endif }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CBC_MODE ) {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = ( cbc128_f ) bsaes_cbc_encrypt ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n }\n }\n else # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_encrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n else # endif # ifdef HWAES_ctr32_encrypt_blocks if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) HWAES_ctr32_encrypt_blocks ;\n else # endif ( void ) 0 ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CTR_MODE ) {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . ctr = ( ctr128_f ) bsaes_ctr32_encrypt_blocks ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n # ifdef AES_CTR_ASM if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) AES_ctr32_encrypt ;\n # endif }\n if ( ret < 0 ) {\n EVPerr ( EVP_F_AES_INIT_KEY , EVP_R_AES_KEY_SETUP_FAILED ) ;\n return 0 ;\n }\n return 1 ;\n }\n static int aes_cbc_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( dat -> stream . cbc ) ( * dat -> stream . cbc ) ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_encrypting ( ctx ) ) ;\n else if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) CRYPTO_cbc128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , dat -> block ) ;\n else CRYPTO_cbc128_decrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , dat -> block ) ;\n return 1 ;\n }\n static int aes_ecb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n size_t bl = EVP_CIPHER_CTX_block_size ( ctx ) ;\n size_t i ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( len < bl ) return 1 ;\n for ( i = 0 , len -= bl ;\n i <= len ;\n i += bl ) ( * dat -> block ) ( in + i , out + i , & dat -> ks ) ;\n return 1 ;\n }\n static int aes_ofb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_ofb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb8_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_8_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb1_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( EVP_CIPHER_CTX_test_flags ( ctx , EVP_CIPH_FLAG_LENGTH_BITS ) ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n while ( len >= MAXBITCHUNK ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , MAXBITCHUNK * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n len -= MAXBITCHUNK ;\n }\n if ( len ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n }\n return 1 ;\n }\n static int aes_ctr_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n unsigned int num = EVP_CIPHER_CTX_num ( ctx ) ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( dat -> stream . ctr ) CRYPTO_ctr128_encrypt_ctr32 ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> stream . ctr ) ;\n else CRYPTO_ctr128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n BLOCK_CIPHER_generic_pack ( NID_aes , 128 , 0 ) BLOCK_CIPHER_generic_pack ( NID_aes , 192 , 0 ) BLOCK_CIPHER_generic_pack ( NID_aes , 256 , 0 ) static int aes_gcm_cleanup ( EVP_CIPHER_CTX * c ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , c ) ;\n OPENSSL_cleanse ( & gctx -> gcm , sizeof ( gctx -> gcm ) ) ;\n if ( gctx -> iv != EVP_CIPHER_CTX_iv_noconst ( c ) ) OPENSSL_free ( gctx -> iv ) ;\n return 1 ;\n }\n static void ctr64_inc ( unsigned char * counter ) {\n int n = 8 ;\n unsigned char c ;\n do {\n -- n ;\n c = counter [ n ] ;\n ++ c ;\n counter [ n ] = c ;\n if ( c ) return ;\n }\n while ( n ) ;\n }\n static int aes_gcm_ctrl ( EVP_CIPHER_CTX * c , int type , int arg , void * ptr ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , c ) ;\n switch ( type ) {\n case EVP_CTRL_INIT : gctx -> key_set = 0 ;\n gctx -> iv_set = 0 ;\n gctx -> ivlen = EVP_CIPHER_CTX_iv_length ( c ) ;\n gctx -> iv = EVP_CIPHER_CTX_iv_noconst ( c ) ;\n gctx -> taglen = - 1 ;\n gctx -> iv_gen = 0 ;\n gctx -> tls_aad_len = - 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_IVLEN : if ( arg <= 0 ) return 0 ;\n if ( ( arg > EVP_MAX_IV_LENGTH ) && ( arg > gctx -> ivlen ) ) {\n if ( gctx -> iv != EVP_CIPHER_CTX_iv_noconst ( c ) ) OPENSSL_free ( gctx -> iv ) ;\n gctx -> iv = OPENSSL_malloc ( arg ) ;\n if ( gctx -> iv == NULL ) return 0 ;\n }\n gctx -> ivlen = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_TAG : if ( arg <= 0 || arg > 16 || EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n gctx -> taglen = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_GET_TAG : if ( arg <= 0 || arg > 16 || ! EVP_CIPHER_CTX_encrypting ( c ) || gctx -> taglen < 0 ) return 0 ;\n memcpy ( ptr , EVP_CIPHER_CTX_buf_noconst ( c ) , arg ) ;\n return 1 ;\n case EVP_CTRL_GCM_SET_IV_FIXED : if ( arg == - 1 ) {\n memcpy ( gctx -> iv , ptr , gctx -> ivlen ) ;\n gctx -> iv_gen = 1 ;\n return 1 ;\n }\n if ( ( arg < 4 ) || ( gctx -> ivlen - arg ) < 8 ) return 0 ;\n if ( arg ) memcpy ( gctx -> iv , ptr , arg ) ;\n if ( EVP_CIPHER_CTX_encrypting ( c ) && RAND_bytes ( gctx -> iv + arg , gctx -> ivlen - arg ) <= 0 ) return 0 ;\n gctx -> iv_gen = 1 ;\n return 1 ;\n case EVP_CTRL_GCM_IV_GEN : if ( gctx -> iv_gen == 0 || gctx -> key_set == 0 ) return 0 ;\n CRYPTO_gcm128_setiv ( & gctx -> gcm , gctx -> iv , gctx -> ivlen ) ;\n if ( arg <= 0 || arg > gctx -> ivlen ) arg = gctx -> ivlen ;\n memcpy ( ptr , gctx -> iv + gctx -> ivlen - arg , arg ) ;\n ctr64_inc ( gctx -> iv + gctx -> ivlen - 8 ) ;\n gctx -> iv_set = 1 ;\n return 1 ;\n case EVP_CTRL_GCM_SET_IV_INV : if ( gctx -> iv_gen == 0 || gctx -> key_set == 0 || EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( gctx -> iv + gctx -> ivlen - arg , ptr , arg ) ;\n CRYPTO_gcm128_setiv ( & gctx -> gcm , gctx -> iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_TLS1_AAD : if ( arg != EVP_AEAD_TLS1_AAD_LEN ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n gctx -> tls_aad_len = arg ;\n {\n unsigned int len = EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] << 8 | EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] ;\n if ( len < EVP_GCM_TLS_EXPLICIT_IV_LEN ) return 0 ;\n len -= EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n if ( ! EVP_CIPHER_CTX_encrypting ( c ) ) {\n if ( len < EVP_GCM_TLS_TAG_LEN ) return 0 ;\n len -= EVP_GCM_TLS_TAG_LEN ;\n }\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] = len >> 8 ;\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] = len & 0xff ;\n }\n return EVP_GCM_TLS_TAG_LEN ;\n case EVP_CTRL_COPY : {\n EVP_CIPHER_CTX * out = ptr ;\n EVP_AES_GCM_CTX * gctx_out = EVP_C_DATA ( EVP_AES_GCM_CTX , out ) ;\n if ( gctx -> gcm . key ) {\n if ( gctx -> gcm . key != & gctx -> ks ) return 0 ;\n gctx_out -> gcm . key = & gctx_out -> ks ;\n }\n if ( gctx -> iv == EVP_CIPHER_CTX_iv_noconst ( c ) ) gctx_out -> iv = EVP_CIPHER_CTX_iv_noconst ( out ) ;\n else {\n gctx_out -> iv = OPENSSL_malloc ( gctx -> ivlen ) ;\n if ( gctx_out -> iv == NULL ) return 0 ;\n memcpy ( gctx_out -> iv , gctx -> iv , gctx -> ivlen ) ;\n }\n return 1 ;\n }\n default : return - 1 ;\n }\n }\n static int aes_gcm_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n if ( ! iv && ! key ) return 1 ;\n if ( key ) {\n do {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) HWAES_encrypt ) ;\n # ifdef HWAES_ctr32_encrypt_blocks gctx -> ctr = ( ctr128_f ) HWAES_ctr32_encrypt_blocks ;\n # else gctx -> ctr = NULL ;\n # endif break ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE ) {\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) AES_encrypt ) ;\n gctx -> ctr = ( ctr128_f ) bsaes_ctr32_encrypt_blocks ;\n break ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) vpaes_encrypt ) ;\n gctx -> ctr = NULL ;\n break ;\n }\n else # endif ( void ) 0 ;\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) AES_encrypt ) ;\n # ifdef AES_CTR_ASM gctx -> ctr = ( ctr128_f ) AES_ctr32_encrypt ;\n # else gctx -> ctr = NULL ;\n # endif }\n while ( 0 ) ;\n if ( iv == NULL && gctx -> iv_set ) iv = gctx -> iv ;\n if ( iv ) {\n CRYPTO_gcm128_setiv ( & gctx -> gcm , iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n }\n gctx -> key_set = 1 ;\n }\n else {\n if ( gctx -> key_set ) CRYPTO_gcm128_setiv ( & gctx -> gcm , iv , gctx -> ivlen ) ;\n else memcpy ( gctx -> iv , iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n gctx -> iv_gen = 0 ;\n }\n return 1 ;\n }\n static int aes_gcm_tls_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n int rv = - 1 ;\n if ( out != in || len < ( EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ) ) return - 1 ;\n if ( EVP_CIPHER_CTX_ctrl ( ctx , EVP_CIPHER_CTX_encrypting ( ctx ) ? EVP_CTRL_GCM_IV_GEN : EVP_CTRL_GCM_SET_IV_INV , EVP_GCM_TLS_EXPLICIT_IV_LEN , out ) <= 0 ) goto err ;\n if ( CRYPTO_gcm128_aad ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , gctx -> tls_aad_len ) ) goto err ;\n in += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n out += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n len -= EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ;\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 32 && AES_GCM_ASM ( gctx ) ) {\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_encrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) goto err ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 32 && AES_GCM_ASM2 ( gctx ) ) {\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) goto err ;\n }\n out += len ;\n CRYPTO_gcm128_tag ( & gctx -> gcm , out , EVP_GCM_TLS_TAG_LEN ) ;\n rv = len + EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ;\n }\n else {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 16 && AES_GCM_ASM ( gctx ) ) {\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_decrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) goto err ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 16 && AES_GCM_ASM2 ( gctx ) ) {\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) goto err ;\n }\n CRYPTO_gcm128_tag ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , EVP_GCM_TLS_TAG_LEN ) ;\n if ( CRYPTO_memcmp ( EVP_CIPHER_CTX_buf_noconst ( ctx ) , in + len , EVP_GCM_TLS_TAG_LEN ) ) {\n OPENSSL_cleanse ( out , len ) ;\n goto err ;\n }\n rv = len ;\n }\n err : gctx -> iv_set = 0 ;\n gctx -> tls_aad_len = - 1 ;\n return rv ;\n }\n static int aes_gcm_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n if ( ! gctx -> key_set ) return - 1 ;\n if ( gctx -> tls_aad_len >= 0 ) return aes_gcm_tls_cipher ( ctx , out , in , len ) ;\n if ( ! gctx -> iv_set ) return - 1 ;\n if ( in ) {\n if ( out == NULL ) {\n if ( CRYPTO_gcm128_aad ( & gctx -> gcm , in , len ) ) return - 1 ;\n }\n else if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 32 && AES_GCM_ASM ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_encrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) return - 1 ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 32 && AES_GCM_ASM2 ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) return - 1 ;\n }\n }\n else {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 16 && AES_GCM_ASM ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_decrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) return - 1 ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 16 && AES_GCM_ASM2 ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) return - 1 ;\n }\n }\n return len ;\n }\n else {\n if ( ! EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> taglen < 0 ) return - 1 ;\n if ( CRYPTO_gcm128_finish ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , gctx -> taglen ) != 0 ) return - 1 ;\n gctx -> iv_set = 0 ;\n return 0 ;\n }\n CRYPTO_gcm128_tag ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , 16 ) ;\n gctx -> taglen = 16 ;\n gctx -> iv_set = 0 ;\n return 0 ;\n }\n }\n # define CUSTOM_FLAGS ( EVP_CIPH_FLAG_DEFAULT_ASN1 \\ | EVP_CIPH_CUSTOM_IV | EVP_CIPH_FLAG_CUSTOM_CIPHER \\ | EVP_CIPH_ALWAYS_CALL_INIT | EVP_CIPH_CTRL_INIT \\ | EVP_CIPH_CUSTOM_COPY ) BLOCK_CIPHER_custom ( NID_aes , 128 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 192 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 256 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) static int aes_xts_ctrl ( EVP_CIPHER_CTX * c , int type , int arg , void * ptr ) {\n EVP_AES_XTS_CTX * xctx = EVP_C_DATA ( EVP_AES_XTS_CTX , c ) ;\n if ( type == EVP_CTRL_COPY ) {\n EVP_CIPHER_CTX * out = ptr ;\n EVP_AES_XTS_CTX * xctx_out = EVP_C_DATA ( EVP_AES_XTS_CTX , out ) ;\n if ( xctx -> xts . key1 ) {\n if ( xctx -> xts . key1 != & xctx -> ks1 ) return 0 ;\n xctx_out -> xts . key1 = & xctx_out -> ks1 ;\n }\n if ( xctx -> xts . key2 ) {\n if ( xctx -> xts . key2 != & xctx -> ks2 ) return 0 ;\n xctx_out -> xts . key2 = & xctx_out -> ks2 ;\n }\n return 1 ;\n }\n else if ( type != EVP_CTRL_INIT ) return - 1 ;\n xctx -> xts . key1 = NULL ;\n xctx -> xts . key2 = NULL ;\n return 1 ;\n }\n static int aes_xts_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n EVP_AES_XTS_CTX * xctx = EVP_C_DATA ( EVP_AES_XTS_CTX , ctx ) ;\n if ( ! iv && ! key ) return 1 ;\n if ( key ) do {\n # ifdef AES_XTS_ASM xctx -> stream = enc ? AES_xts_encrypt : AES_xts_decrypt ;\n # else xctx -> stream = NULL ;\n # endif # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n if ( enc ) {\n HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) HWAES_encrypt ;\n # ifdef HWAES_xts_encrypt xctx -> stream = HWAES_xts_encrypt ;\n # endif }\n else {\n HWAES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) HWAES_decrypt ;\n # ifdef HWAES_xts_decrypt xctx -> stream = HWAES_xts_decrypt ;\n # endif }\n HWAES_set_encrypt_key ( key + EVP_CIPHER_CTX_key_length ( ctx ) / 2 , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks2 . ks ) ;\n xctx -> xts . block2 = ( block128_f ) HWAES_encrypt ;\n xctx -> xts . key1 = & xctx -> ks1 ;\n break ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE ) xctx -> stream = enc ? bsaes_xts_encrypt : bsaes_xts_decrypt ;\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n if ( enc ) {\n vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) vpaes_encrypt ;\n }\n else {\n vpaes_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) vpaes_decrypt ;\n }\n vpaes_set_encrypt_key ( key + EVP_CIPHER_CTX_key_length ( ctx ) / 2 , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks2 . ks ) ;\n xctx -> xts . block2 = ( block128_f ) vpaes_encrypt ;\n xctx -> xts . key1 = & xctx -> ks1 ;\n break ;\n }\n else # endif ( void ) 0 ;\n if ( enc ) {\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) AES_encrypt ;\n }\n else {\n AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) AES_decrypt ;\n }\n AES_set_encrypt_key ( key + EVP_CIPHER_CTX_key_length ( ctx ) / 2 , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks2 . ks ) ;\n xctx -> xts . block2 = ( block128_f ) AES_encrypt ;\n xctx -> xts . key1 = & xctx -> ks1 ;\n }\n while ( 0 ) ;\n if ( iv ) {\n xctx -> xts . key2 = & xctx -> ks2 ;\n memcpy ( EVP_CIPHER_CTX_iv_noconst ( ctx ) , iv , 16 ) ;\n }\n return 1 ;\n }\n static int aes_xts_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_XTS_CTX * xctx = EVP_C_DATA ( EVP_AES_XTS_CTX , ctx ) ;\n if ( ! xctx -> xts . key1 || ! xctx -> xts . key2 ) return 0 ;\n if ( ! out || ! in || len < AES_BLOCK_SIZE ) return 0 ;\n if ( xctx -> stream ) ( * xctx -> stream ) ( in , out , len , xctx -> xts . key1 , xctx -> xts . key2 , EVP_CIPHER_CTX_iv_noconst ( ctx ) ) ;\n else if ( CRYPTO_xts128_encrypt ( & xctx -> xts , EVP_CIPHER_CTX_iv_noconst ( ctx ) , in , out , len , EVP_CIPHER_CTX_encrypting ( ctx ) ) ) return 0 ;\n return 1 ;\n }\n # define aes_xts_cleanup NULL # define XTS_FLAGS ( EVP_CIPH_FLAG_DEFAULT_ASN1 | EVP_CIPH_CUSTOM_IV \\ | EVP_CIPH_ALWAYS_CALL_INIT | EVP_CIPH_CTRL_INIT \\ | EVP_CIPH_CUSTOM_COPY ) BLOCK_CIPHER_custom ( NID_aes , 128 , 1 , 16 , xts , XTS , XTS_FLAGS )"}
{"idx": 1393, "target": 0, "func": "static void * Type_LUT16_Dup ( struct _cms_typehandler_struct * self , const void * Ptr , cmsUInt32Number n ) {\n return ( void * ) cmsPipelineDup ( ( cmsPipeline * ) Ptr ) ;\n cmsUNUSED_PARAMETER ( n ) ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 1394, "target": 0, "func": "static enum nss_status internal_getent ( struct STRUCTURE * result , char * buffer , size_t buflen , int * errnop H_ERRNO_PROTO EXTRA_ARGS_DECL ) {\n char * p ;\n struct parser_data * data = ( void * ) buffer ;\n size_t linebuflen = buffer + buflen - data -> linebuffer ;\n int parse_result ;\n if ( buflen < sizeof * data + 2 ) {\n * errnop = ERANGE ;\n H_ERRNO_SET ( NETDB_INTERNAL ) ;\n return NSS_STATUS_TRYAGAIN ;\n }\n do {\n get_contents_ret r = get_contents ( data -> linebuffer , linebuflen , stream ) ;\n if ( r == gcr_error ) {\n H_ERRNO_SET ( HOST_NOT_FOUND ) ;\n return NSS_STATUS_NOTFOUND ;\n }\n if ( r == gcr_overflow ) {\n * errnop = ERANGE ;\n H_ERRNO_SET ( NETDB_INTERNAL ) ;\n return NSS_STATUS_TRYAGAIN ;\n }\n p = data -> linebuffer ;\n while ( isspace ( * p ) ) ++ p ;\n }\n while ( * p == '\\0' || * p == '#' || ! ( parse_result = parse_line ( p , result , data , buflen , errnop EXTRA_ARGS ) ) ) ;\n if ( __glibc_unlikely ( parse_result == - 1 ) ) {\n H_ERRNO_SET ( NETDB_INTERNAL ) ;\n return NSS_STATUS_TRYAGAIN ;\n }\n return NSS_STATUS_SUCCESS ;\n }"}
{"idx": 1395, "target": 0, "func": "static int dissect_h245_T_h223AnnexADoubleFlag ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_h223AnnexADoubleFlag , T_h223AnnexADoubleFlag_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 1396, "target": 0, "func": "static int dissect_h245_SubstituteConferenceIDCommand ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_SubstituteConferenceIDCommand , SubstituteConferenceIDCommand_sequence ) ;\n return offset ;\n }"}
{"idx": 1397, "target": 0, "func": "static int ssn_handler ( TSCont contp , TSEvent event , void * edata ) {\n TSHttpTxn txnp = nullptr ;\n ContData * data = nullptr ;\n data = ( ContData * ) TSContDataGet ( contp ) ;\n if ( data == nullptr ) {\n switch ( event ) {\n case TS_EVENT_HTTP_SSN_START : TSHttpSsnReenable ( ( TSHttpSsn ) edata , TS_EVENT_HTTP_CONTINUE ) ;\n break ;\n case TS_EVENT_IMMEDIATE : case TS_EVENT_TIMEOUT : break ;\n case TS_EVENT_HTTP_TXN_START : default : TSHttpTxnReenable ( ( TSHttpTxn ) edata , TS_EVENT_HTTP_CONTINUE ) ;\n break ;\n }\n return 0 ;\n }\n switch ( event ) {\n case TS_EVENT_HTTP_SSN_START : data -> ssnp = ( TSHttpSsn ) edata ;\n TSHttpSsnHookAdd ( data -> ssnp , TS_HTTP_TXN_START_HOOK , contp ) ;\n TSHttpSsnReenable ( data -> ssnp , TS_EVENT_HTTP_CONTINUE ) ;\n break ;\n case TS_EVENT_HTTP_TXN_START : TSSkipRemappingSet ( ( TSHttpTxn ) edata , 1 ) ;\n SDK_RPRINT ( data -> test , \"TSHttpSsnReenable\" , \"TestCase\" , TC_PASS , \"ok\" ) ;\n data -> test_passed_ssn_reenable ++ ;\n {\n txnp = ( TSHttpTxn ) edata ;\n TSHttpSsn ssnp = TSHttpTxnSsnGet ( txnp ) ;\n if ( ssnp != data -> ssnp ) {\n SDK_RPRINT ( data -> test , \"TSHttpSsnHookAdd\" , \"TestCase\" , TC_FAIL , \"Value's mismatch\" ) ;\n data -> test_passed_ssn_hook_add -- ;\n SDK_RPRINT ( data -> test , \"TSHttpTxnSsnGet\" , \"TestCase\" , TC_FAIL , \"Session doesn't match\" ) ;\n data -> test_passed_txn_ssn_get -- ;\n }\n else {\n SDK_RPRINT ( data -> test , \"TSHttpSsnHookAdd\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n data -> test_passed_ssn_hook_add ++ ;\n SDK_RPRINT ( data -> test , \"TSHttpTxnSsnGet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n data -> test_passed_txn_ssn_get ++ ;\n }\n TSHttpTxnHookAdd ( txnp , TS_HTTP_OS_DNS_HOOK , contp ) ;\n TSHttpTxnReenable ( txnp , TS_EVENT_HTTP_CONTINUE ) ;\n }\n break ;\n case TS_EVENT_HTTP_OS_DNS : SDK_RPRINT ( data -> test , \"TSHttpTxnHookAdd\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n data -> test_passed_txn_hook_add ++ ;\n txnp = ( TSHttpTxn ) edata ;\n TSHttpTxnHookAdd ( txnp , TS_HTTP_SEND_RESPONSE_HDR_HOOK , contp ) ;\n checkHttpTxnParentProxy ( data , txnp ) ;\n TSHttpTxnReenable ( txnp , TS_EVENT_HTTP_ERROR ) ;\n break ;\n case TS_EVENT_HTTP_SEND_RESPONSE_HDR : SDK_RPRINT ( data -> test , \"TSHttpTxnHookAdd\" , \"TestCase2\" , TC_PASS , \"ok\" ) ;\n data -> test_passed_txn_hook_add ++ ;\n txnp = ( TSHttpTxn ) edata ;\n if ( true ) {\n char * temp = TSstrdup ( ERROR_BODY ) ;\n TSHttpTxnErrorBodySet ( txnp , temp , strlen ( temp ) , nullptr ) ;\n }\n TSHttpTxnReenable ( txnp , TS_EVENT_HTTP_CONTINUE ) ;\n break ;\n case TS_EVENT_IMMEDIATE : case TS_EVENT_TIMEOUT : if ( data -> browser -> status == REQUEST_INPROGRESS ) {\n TSContSchedule ( contp , 25 , TS_THREAD_POOL_DEFAULT ) ;\n }\n else {\n char * temp = data -> browser -> response ;\n temp = strstr ( temp , \"\\r\\n\\r\\n\" ) ;\n if ( temp != nullptr ) {\n temp += strlen ( \"\\r\\n\\r\\n\" ) ;\n if ( ( temp [ 0 ] == '\\0' ) || ( strncmp ( temp , \"\\r\\n\\r\\n\" , 4 ) == 0 ) ) {\n SDK_RPRINT ( data -> test , \"TSHttpTxnErrorBodySet\" , \"TestCase1\" , TC_FAIL , \"No Error Body found\" ) ;\n data -> test_passed_txn_error_body_set -- ;\n }\n if ( strncmp ( temp , ERROR_BODY , strlen ( ERROR_BODY ) ) == 0 ) {\n SDK_RPRINT ( data -> test , \"TSHttpTxnErrorBodySet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n data -> test_passed_txn_error_body_set ++ ;\n }\n }\n else {\n SDK_RPRINT ( data -> test , \"TSHttpTxnErrorBodySet\" , \"TestCase1\" , TC_FAIL , \"strstr returns NULL. Didn't find end of headers.\" ) ;\n data -> test_passed_txn_error_body_set -- ;\n }\n if ( ( data -> browser -> status == REQUEST_SUCCESS ) && ( data -> test_passed_ssn_hook_add == 1 ) && ( data -> test_passed_ssn_reenable == 1 ) && ( data -> test_passed_txn_ssn_get == 1 ) && ( data -> test_passed_txn_hook_add == 2 ) && ( data -> test_passed_txn_error_body_set == 1 ) && ( data -> test_passed_Parent_Proxy == true ) ) {\n * ( data -> pstatus ) = REGRESSION_TEST_PASSED ;\n }\n else {\n * ( data -> pstatus ) = REGRESSION_TEST_FAILED ;\n }\n synclient_txn_delete ( data -> browser ) ;\n data -> os = nullptr ;\n data -> magic = MAGIC_DEAD ;\n TSfree ( data ) ;\n TSContDataSet ( contp , nullptr ) ;\n }\n break ;\n default : * ( data -> pstatus ) = REGRESSION_TEST_FAILED ;\n SDK_RPRINT ( data -> test , \"TSHttpSsn\" , \"TestCase1\" , TC_FAIL , \"Unexpected event %d\" , event ) ;\n break ;\n }\n return 0 ;\n }"}
{"idx": 1398, "target": 0, "func": "mbfl_string * mbfl_strcut ( mbfl_string * string , mbfl_string * result , int from , int length ) {\n const mbfl_encoding * encoding ;\n mbfl_memory_device device ;\n if ( string == NULL || string -> val == NULL || result == NULL ) {\n return NULL ;\n }\n if ( from < 0 || length < 0 ) {\n return NULL ;\n }\n if ( from >= string -> len ) {\n from = string -> len ;\n }\n encoding = mbfl_no2encoding ( string -> no_encoding ) ;\n if ( encoding == NULL ) {\n return NULL ;\n }\n mbfl_string_init ( result ) ;\n result -> no_language = string -> no_language ;\n result -> no_encoding = string -> no_encoding ;\n if ( ( encoding -> flag & ( MBFL_ENCTYPE_SBCS | MBFL_ENCTYPE_WCS2BE | MBFL_ENCTYPE_WCS2LE | MBFL_ENCTYPE_WCS4BE | MBFL_ENCTYPE_WCS4LE ) ) || encoding -> mblen_table != NULL ) {\n const unsigned char * start = NULL ;\n const unsigned char * end = NULL ;\n unsigned char * w ;\n unsigned int sz ;\n if ( encoding -> flag & ( MBFL_ENCTYPE_WCS2BE | MBFL_ENCTYPE_WCS2LE ) ) {\n from &= - 2 ;\n if ( length >= string -> len - from ) {\n length = string -> len - from ;\n }\n start = string -> val + from ;\n end = start + ( length & - 2 ) ;\n }\n else if ( encoding -> flag & ( MBFL_ENCTYPE_WCS4BE | MBFL_ENCTYPE_WCS4LE ) ) {\n from &= - 4 ;\n if ( length >= string -> len - from ) {\n length = string -> len - from ;\n }\n start = string -> val + from ;\n end = start + ( length & - 4 ) ;\n }\n else if ( ( encoding -> flag & MBFL_ENCTYPE_SBCS ) ) {\n if ( length >= string -> len - from ) {\n length = string -> len - from ;\n }\n start = string -> val + from ;\n end = start + length ;\n }\n else if ( encoding -> mblen_table != NULL ) {\n const unsigned char * mbtab = encoding -> mblen_table ;\n const unsigned char * p , * q ;\n int m ;\n for ( m = 0 , p = string -> val , q = p + from ;\n p < q ;\n p += ( m = mbtab [ * p ] ) ) ;\n if ( p > q ) {\n p -= m ;\n }\n start = p ;\n if ( length >= ( int ) string -> len - ( start - string -> val ) ) {\n end = string -> val + string -> len ;\n }\n else {\n for ( q = p + length ;\n p < q ;\n p += ( m = mbtab [ * p ] ) ) ;\n if ( p > q ) {\n p -= m ;\n }\n end = p ;\n }\n }\n else {\n return NULL ;\n }\n sz = end - start ;\n if ( ( w = ( unsigned char * ) mbfl_calloc ( sz + 8 , sizeof ( unsigned char ) ) ) == NULL ) {\n return NULL ;\n }\n memcpy ( w , start , sz ) ;\n w [ sz ] = '\\0' ;\n w [ sz + 1 ] = '\\0' ;\n w [ sz + 2 ] = '\\0' ;\n w [ sz + 3 ] = '\\0' ;\n result -> val = w ;\n result -> len = sz ;\n }\n else {\n mbfl_convert_filter * encoder = NULL ;\n mbfl_convert_filter * decoder = NULL ;\n const unsigned char * p , * q , * r ;\n struct {\n mbfl_convert_filter encoder ;\n mbfl_convert_filter decoder ;\n const unsigned char * p ;\n int pos ;\n }\n bk , _bk ;\n if ( ! ( decoder = mbfl_convert_filter_new ( mbfl_no_encoding_wchar , string -> no_encoding , mbfl_memory_device_output , 0 , & device ) ) ) {\n return NULL ;\n }\n if ( ! ( encoder = mbfl_convert_filter_new ( string -> no_encoding , mbfl_no_encoding_wchar , mbfl_filter_output_null , NULL , NULL ) ) ) {\n mbfl_convert_filter_delete ( decoder ) ;\n return NULL ;\n }\n mbfl_memory_device_init ( & device , length + 8 , 0 ) ;\n p = string -> val ;\n for ( q = string -> val + from ;\n p < q ;\n p ++ ) {\n ( * encoder -> filter_function ) ( * p , encoder ) ;\n }\n encoder -> output_function = ( int ( * ) ( int , void * ) ) decoder -> filter_function ;\n encoder -> flush_function = ( int ( * ) ( void * ) ) decoder -> filter_flush ;\n encoder -> data = decoder ;\n q = string -> val + string -> len ;\n mbfl_convert_filter_copy ( decoder , & _bk . decoder ) ;\n mbfl_convert_filter_copy ( encoder , & _bk . encoder ) ;\n _bk . p = p ;\n _bk . pos = device . pos ;\n if ( length > q - p ) {\n length = q - p ;\n }\n if ( length >= 20 ) {\n for ( r = p + length - 20 ;\n p < r ;\n p ++ ) {\n ( * encoder -> filter_function ) ( * p , encoder ) ;\n }\n if ( device . pos > length ) {\n p = _bk . p ;\n device . pos = _bk . pos ;\n decoder -> filter_dtor ( decoder ) ;\n encoder -> filter_dtor ( encoder ) ;\n mbfl_convert_filter_copy ( & _bk . decoder , decoder ) ;\n mbfl_convert_filter_copy ( & _bk . encoder , encoder ) ;\n bk = _bk ;\n }\n else {\n mbfl_convert_filter_copy ( decoder , & bk . decoder ) ;\n mbfl_convert_filter_copy ( encoder , & bk . encoder ) ;\n bk . p = p ;\n bk . pos = device . pos ;\n ( * encoder -> filter_flush ) ( encoder ) ;\n if ( device . pos > length ) {\n bk . decoder . filter_dtor ( & bk . decoder ) ;\n bk . encoder . filter_dtor ( & bk . encoder ) ;\n p = _bk . p ;\n device . pos = _bk . pos ;\n decoder -> filter_dtor ( decoder ) ;\n encoder -> filter_dtor ( encoder ) ;\n mbfl_convert_filter_copy ( & _bk . decoder , decoder ) ;\n mbfl_convert_filter_copy ( & _bk . encoder , encoder ) ;\n bk = _bk ;\n }\n else {\n _bk . decoder . filter_dtor ( & _bk . decoder ) ;\n _bk . encoder . filter_dtor ( & _bk . encoder ) ;\n p = bk . p ;\n device . pos = bk . pos ;\n decoder -> filter_dtor ( decoder ) ;\n encoder -> filter_dtor ( encoder ) ;\n mbfl_convert_filter_copy ( & bk . decoder , decoder ) ;\n mbfl_convert_filter_copy ( & bk . encoder , encoder ) ;\n }\n }\n }\n else {\n bk = _bk ;\n }\n while ( p < q ) {\n ( * encoder -> filter_function ) ( * p , encoder ) ;\n if ( device . pos > length ) {\n p = bk . p ;\n device . pos = bk . pos ;\n decoder -> filter_dtor ( decoder ) ;\n encoder -> filter_dtor ( encoder ) ;\n mbfl_convert_filter_copy ( & bk . decoder , decoder ) ;\n mbfl_convert_filter_copy ( & bk . encoder , encoder ) ;\n break ;\n }\n p ++ ;\n mbfl_convert_filter_copy ( decoder , & _bk . decoder ) ;\n mbfl_convert_filter_copy ( encoder , & _bk . encoder ) ;\n _bk . pos = device . pos ;\n _bk . p = p ;\n ( * encoder -> filter_flush ) ( encoder ) ;\n if ( device . pos > length ) {\n _bk . decoder . filter_dtor ( & _bk . decoder ) ;\n _bk . encoder . filter_dtor ( & _bk . encoder ) ;\n p = bk . p ;\n device . pos = bk . pos ;\n decoder -> filter_dtor ( decoder ) ;\n encoder -> filter_dtor ( encoder ) ;\n mbfl_convert_filter_copy ( & bk . decoder , decoder ) ;\n mbfl_convert_filter_copy ( & bk . encoder , encoder ) ;\n break ;\n }\n bk . decoder . filter_dtor ( & bk . decoder ) ;\n bk . encoder . filter_dtor ( & bk . encoder ) ;\n p = _bk . p ;\n device . pos = _bk . pos ;\n decoder -> filter_dtor ( decoder ) ;\n encoder -> filter_dtor ( encoder ) ;\n mbfl_convert_filter_copy ( & _bk . decoder , decoder ) ;\n mbfl_convert_filter_copy ( & _bk . encoder , encoder ) ;\n bk = _bk ;\n }\n ( * encoder -> filter_flush ) ( encoder ) ;\n bk . decoder . filter_dtor ( & bk . decoder ) ;\n bk . encoder . filter_dtor ( & bk . encoder ) ;\n result = mbfl_memory_device_result ( & device , result ) ;\n mbfl_convert_filter_delete ( encoder ) ;\n mbfl_convert_filter_delete ( decoder ) ;\n }\n return result ;\n }"}
{"idx": 1399, "target": 0, "func": "static Asn1Generic * DecodeAsn1DerPrintableString ( const unsigned char * buffer , uint32_t max_size , uint8_t depth , uint32_t * errcode ) {\n const unsigned char * d_ptr = buffer ;\n uint32_t length , numbytes ;\n Asn1Generic * a ;\n unsigned char c ;\n d_ptr ++ ;\n c = d_ptr [ 0 ] ;\n if ( ( c & ( 1 << 7 ) ) >> 7 == 0 ) {\n length = c ;\n d_ptr ++ ;\n }\n else {\n numbytes = c & 0x7f ;\n d_ptr ++ ;\n if ( DecodeAsn1BuildValue ( & d_ptr , & length , numbytes , errcode ) == - 1 ) {\n return NULL ;\n }\n }\n if ( length == UINT32_MAX || length > max_size ) {\n if ( errcode ) * errcode = ERR_DER_ELEMENT_SIZE_TOO_BIG ;\n return NULL ;\n }\n a = Asn1GenericNew ( ) ;\n if ( a == NULL ) return NULL ;\n a -> type = ASN1_PRINTSTRING ;\n a -> strlen = length ;\n a -> str = SCMalloc ( length + 1 ) ;\n if ( a -> str == NULL ) {\n SCFree ( a ) ;\n return NULL ;\n }\n strlcpy ( a -> str , ( const char * ) d_ptr , length + 1 ) ;\n a -> str [ length ] = '\\0' ;\n d_ptr += length ;\n a -> length = ( d_ptr - buffer ) ;\n return a ;\n }"}
{"idx": 1400, "target": 0, "func": "static char * adb_send_and_receive ( socket_handle_t sock , const char * adb_service , char * buffer , int buffer_length , gssize * data_length ) {\n gssize used_buffer_length ;\n gssize length ;\n gssize result ;\n char status [ 4 ] ;\n char tmp_buffer ;\n size_t adb_service_length ;\n adb_service_length = strlen ( adb_service ) ;\n result = send ( sock , adb_service , ( int ) adb_service_length , 0 ) ;\n if ( result != ( gssize ) adb_service_length ) {\n errmsg_print ( \"ERROR: Error while sending <%s> to ADB daemon\" , adb_service ) ;\n if ( data_length ) * data_length = 0 ;\n return NULL ;\n }\n used_buffer_length = 0 ;\n while ( used_buffer_length < 8 ) {\n result = recv ( sock , buffer + used_buffer_length , ( int ) ( buffer_length - used_buffer_length ) , 0 ) ;\n if ( result <= 0 ) {\n errmsg_print ( \"ERROR: Broken socket connection while fetching reply status for <%s>\" , adb_service ) ;\n return NULL ;\n }\n used_buffer_length += result ;\n }\n memcpy ( status , buffer , 4 ) ;\n tmp_buffer = buffer [ 8 ] ;\n buffer [ 8 ] = '\\0' ;\n length = ( gssize ) g_ascii_strtoll ( buffer + 4 , NULL , 16 ) ;\n buffer [ 8 ] = tmp_buffer ;\n while ( used_buffer_length < length + 8 ) {\n result = recv ( sock , buffer + used_buffer_length , ( int ) ( buffer_length - used_buffer_length ) , 0 ) ;\n if ( result <= 0 ) {\n errmsg_print ( \"ERROR: Broken socket connection while reading reply for <%s>\" , adb_service ) ;\n return NULL ;\n }\n used_buffer_length += result ;\n }\n if ( data_length ) * data_length = used_buffer_length - 8 ;\n if ( memcmp ( status , \"OKAY\" , 4 ) ) {\n errmsg_print ( \"ERROR: Error while receiving by ADB for <%s>\" , adb_service ) ;\n if ( data_length ) * data_length = 0 ;\n return NULL ;\n }\n return buffer + 8 ;\n }"}
{"idx": 1401, "target": 0, "func": "static int create_or_remove_cgroup ( bool do_remove , struct cgroup_mount_point * mp , const char * path , int recurse ) {\n int r , saved_errno = 0 ;\n char * buf = cgroup_to_absolute_path ( mp , path , NULL ) ;\n if ( ! buf ) return - 1 ;\n if ( do_remove ) {\n if ( recurse ) r = cgroup_rmdir ( buf ) ;\n else r = rmdir ( buf ) ;\n }\n else r = mkdir ( buf , 0777 ) ;\n saved_errno = errno ;\n free ( buf ) ;\n errno = saved_errno ;\n return r ;\n }"}
{"idx": 1402, "target": 0, "func": "TEST_F ( WebUsbDetectorTest , ThreeUsbDevicesWereThereBeforeAndThenRemovedBeforeWebUsbDetectorWasCreated ) {\n base : : string16 product_name_1 = base : : UTF8ToUTF16 ( kProductName_1 ) ;\n GURL landing_page_1 ( kLandingPage_1 ) ;\n scoped_refptr < device : : MockUsbDevice > device_1 ( new device : : MockUsbDevice ( 0 , 1 , \"Google\" , kProductName_1 , \"002\" , landing_page_1 ) ) ;\n std : : string guid_1 = device_1 -> guid ( ) ;\n base : : string16 product_name_2 = base : : UTF8ToUTF16 ( kProductName_2 ) ;\n GURL landing_page_2 ( kLandingPage_2 ) ;\n scoped_refptr < device : : MockUsbDevice > device_2 ( new device : : MockUsbDevice ( 3 , 4 , \"Google\" , kProductName_2 , \"005\" , landing_page_2 ) ) ;\n std : : string guid_2 = device_2 -> guid ( ) ;\n base : : string16 product_name_3 = base : : UTF8ToUTF16 ( kProductName_3 ) ;\n GURL landing_page_3 ( kLandingPage_3 ) ;\n scoped_refptr < device : : MockUsbDevice > device_3 ( new device : : MockUsbDevice ( 6 , 7 , \"Google\" , kProductName_3 , \"008\" , landing_page_3 ) ) ;\n std : : string guid_3 = device_3 -> guid ( ) ;\n device_client_ . usb_service ( ) -> AddDevice ( device_1 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_1 ) == nullptr ) ;\n device_client_ . usb_service ( ) -> AddDevice ( device_2 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_2 ) == nullptr ) ;\n device_client_ . usb_service ( ) -> AddDevice ( device_3 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_3 ) == nullptr ) ;\n device_client_ . usb_service ( ) -> RemoveDevice ( device_1 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_1 ) == nullptr ) ;\n device_client_ . usb_service ( ) -> RemoveDevice ( device_2 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_2 ) == nullptr ) ;\n device_client_ . usb_service ( ) -> RemoveDevice ( device_3 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_3 ) == nullptr ) ;\n WebUsbDetector web_usb_detector ;\n web_usb_detector . Initialize ( ) ;\n }"}
{"idx": 1403, "target": 0, "func": "static void SchroBufferFree ( SchroBuffer * buf , void * priv ) {\n block_t * p_block = priv ;\n if ( ! p_block ) return ;\n block_Release ( p_block ) ;\n ( void ) buf ;\n }"}
{"idx": 1404, "target": 0, "func": "void tee_puts ( const char * s , FILE * file ) {\n fputs ( s , file ) ;\n fputc ( '\\n' , file ) ;\n if ( opt_outfile ) {\n fputs ( s , OUTFILE ) ;\n fputc ( '\\n' , OUTFILE ) ;\n }\n }"}
{"idx": 1405, "target": 0, "func": "static int selinux_file_ioctl ( struct file * file , unsigned int cmd , unsigned long arg ) {\n const struct cred * cred = current_cred ( ) ;\n int error = 0 ;\n switch ( cmd ) {\n case FIONREAD : case FIBMAP : case FIGETBSZ : case FS_IOC_GETFLAGS : case FS_IOC_GETVERSION : error = file_has_perm ( cred , file , FILE__GETATTR ) ;\n break ;\n case FS_IOC_SETFLAGS : case FS_IOC_SETVERSION : error = file_has_perm ( cred , file , FILE__SETATTR ) ;\n break ;\n case FIONBIO : case FIOASYNC : error = file_has_perm ( cred , file , 0 ) ;\n break ;\n case KDSKBENT : case KDSKBSENT : error = cred_has_capability ( cred , CAP_SYS_TTY_CONFIG , SECURITY_CAP_AUDIT , true ) ;\n break ;\n default : error = ioctl_has_perm ( cred , file , FILE__IOCTL , ( u16 ) cmd ) ;\n }\n return error ;\n }"}
{"idx": 1406, "target": 0, "func": "static int mem_write ( jas_stream_obj_t * obj , char * buf , int cnt ) {\n int n ;\n int ret ;\n jas_stream_memobj_t * m = ( jas_stream_memobj_t * ) obj ;\n long newbufsize ;\n long newpos ;\n assert ( buf ) ;\n assert ( cnt >= 0 ) ;\n newpos = m -> pos_ + cnt ;\n if ( newpos > m -> bufsize_ && m -> growable_ ) {\n newbufsize = m -> bufsize_ ;\n while ( newbufsize < newpos ) {\n newbufsize <<= 1 ;\n assert ( newbufsize >= 0 ) ;\n }\n if ( mem_resize ( m , newbufsize ) ) {\n return - 1 ;\n }\n }\n if ( m -> pos_ > m -> len_ ) {\n n = JAS_MIN ( m -> pos_ , m -> bufsize_ ) - m -> len_ ;\n if ( n > 0 ) {\n memset ( & m -> buf_ [ m -> len_ ] , 0 , n ) ;\n m -> len_ += n ;\n }\n if ( m -> pos_ != m -> len_ ) {\n return 0 ;\n }\n }\n n = m -> bufsize_ - m -> pos_ ;\n ret = JAS_MIN ( n , cnt ) ;\n if ( ret > 0 ) {\n memcpy ( & m -> buf_ [ m -> pos_ ] , buf , ret ) ;\n m -> pos_ += ret ;\n }\n if ( m -> pos_ > m -> len_ ) {\n m -> len_ = m -> pos_ ;\n }\n assert ( ret == cnt ) ;\n return ret ;\n }"}
{"idx": 1407, "target": 0, "func": "static void formant_postfilter ( G723_1_Context * p , int16_t * lpc , int16_t * buf , int16_t * dst ) {\n int16_t filter_coef [ 2 ] [ LPC_ORDER ] ;\n int filter_signal [ LPC_ORDER + FRAME_LEN ] , * signal_ptr ;\n int i , j , k ;\n memcpy ( buf , p -> fir_mem , LPC_ORDER * sizeof ( * buf ) ) ;\n memcpy ( filter_signal , p -> iir_mem , LPC_ORDER * sizeof ( * filter_signal ) ) ;\n for ( i = LPC_ORDER , j = 0 ;\n j < SUBFRAMES ;\n i += SUBFRAME_LEN , j ++ ) {\n for ( k = 0 ;\n k < LPC_ORDER ;\n k ++ ) {\n filter_coef [ 0 ] [ k ] = ( - lpc [ k ] * postfilter_tbl [ 0 ] [ k ] + ( 1 << 14 ) ) >> 15 ;\n filter_coef [ 1 ] [ k ] = ( - lpc [ k ] * postfilter_tbl [ 1 ] [ k ] + ( 1 << 14 ) ) >> 15 ;\n }\n iir_filter ( filter_coef [ 0 ] , filter_coef [ 1 ] , buf + i , filter_signal + i ) ;\n lpc += LPC_ORDER ;\n }\n memcpy ( p -> fir_mem , buf + FRAME_LEN , LPC_ORDER * sizeof ( * p -> fir_mem ) ) ;\n memcpy ( p -> iir_mem , filter_signal + FRAME_LEN , LPC_ORDER * sizeof ( * p -> iir_mem ) ) ;\n buf += LPC_ORDER ;\n signal_ptr = filter_signal + LPC_ORDER ;\n for ( i = 0 ;\n i < SUBFRAMES ;\n i ++ ) {\n int temp ;\n int auto_corr [ 2 ] ;\n int scale , energy ;\n scale = scale_vector ( dst , buf , SUBFRAME_LEN ) ;\n auto_corr [ 0 ] = dot_product ( dst , dst + 1 , SUBFRAME_LEN - 1 ) ;\n auto_corr [ 1 ] = dot_product ( dst , dst , SUBFRAME_LEN ) ;\n temp = auto_corr [ 1 ] >> 16 ;\n if ( temp ) {\n temp = ( auto_corr [ 0 ] >> 2 ) / temp ;\n }\n p -> reflection_coef = ( 3 * p -> reflection_coef + temp + 2 ) >> 2 ;\n temp = - p -> reflection_coef >> 1 & ~ 3 ;\n for ( j = 0 ;\n j < SUBFRAME_LEN ;\n j ++ ) {\n dst [ j ] = av_sat_dadd32 ( signal_ptr [ j ] , ( signal_ptr [ j - 1 ] >> 16 ) * temp ) >> 16 ;\n }\n temp = 2 * scale + 4 ;\n if ( temp < 0 ) {\n energy = av_clipl_int32 ( ( int64_t ) auto_corr [ 1 ] << - temp ) ;\n }\n else energy = auto_corr [ 1 ] >> temp ;\n gain_scale ( p , dst , energy ) ;\n buf += SUBFRAME_LEN ;\n signal_ptr += SUBFRAME_LEN ;\n dst += SUBFRAME_LEN ;\n }\n }"}
{"idx": 1408, "target": 0, "func": "static int parse_usbdevfs_streams ( struct usb_dev_state * ps , struct usbdevfs_streams __user * streams , unsigned int * num_streams_ret , unsigned int * num_eps_ret , struct usb_host_endpoint * * * eps_ret , struct usb_interface * * intf_ret ) {\n unsigned int i , num_streams , num_eps ;\n struct usb_host_endpoint * * eps ;\n struct usb_interface * intf = NULL ;\n unsigned char ep ;\n int ifnum , ret ;\n if ( get_user ( num_streams , & streams -> num_streams ) || get_user ( num_eps , & streams -> num_eps ) ) return - EFAULT ;\n if ( num_eps < 1 || num_eps > USB_MAXENDPOINTS ) return - EINVAL ;\n if ( num_streams_ret && ( num_streams < 2 || num_streams > 65536 ) ) return - EINVAL ;\n eps = kmalloc ( num_eps * sizeof ( * eps ) , GFP_KERNEL ) ;\n if ( ! eps ) return - ENOMEM ;\n for ( i = 0 ;\n i < num_eps ;\n i ++ ) {\n if ( get_user ( ep , & streams -> eps [ i ] ) ) {\n ret = - EFAULT ;\n goto error ;\n }\n eps [ i ] = ep_to_host_endpoint ( ps -> dev , ep ) ;\n if ( ! eps [ i ] ) {\n ret = - EINVAL ;\n goto error ;\n }\n ifnum = findintfep ( ps -> dev , ep ) ;\n if ( ifnum < 0 ) {\n ret = ifnum ;\n goto error ;\n }\n if ( i == 0 ) {\n ret = checkintf ( ps , ifnum ) ;\n if ( ret < 0 ) goto error ;\n intf = usb_ifnum_to_if ( ps -> dev , ifnum ) ;\n }\n else {\n if ( ifnum != intf -> altsetting -> desc . bInterfaceNumber ) {\n ret = - EINVAL ;\n goto error ;\n }\n }\n }\n if ( num_streams_ret ) * num_streams_ret = num_streams ;\n * num_eps_ret = num_eps ;\n * eps_ret = eps ;\n * intf_ret = intf ;\n return 0 ;\n error : kfree ( eps ) ;\n return ret ;\n }"}
{"idx": 1409, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ExtensionPreferenceApiTest , SessionOnlyIncognito ) {\n PrefService * prefs = profile_ -> GetPrefs ( ) ;\n prefs -> SetBoolean ( prefs : : kBlockThirdPartyCookies , false ) ;\n EXPECT_TRUE ( RunExtensionTestIncognito ( \"preference/session_only_incognito\" ) ) << message_ ;\n EXPECT_TRUE ( profile_ -> HasOffTheRecordProfile ( ) ) ;\n PrefService * otr_prefs = profile_ -> GetOffTheRecordProfile ( ) -> GetPrefs ( ) ;\n const PrefService : : Preference * pref = otr_prefs -> FindPreference ( prefs : : kBlockThirdPartyCookies ) ;\n ASSERT_TRUE ( pref ) ;\n EXPECT_TRUE ( pref -> IsExtensionControlled ( ) ) ;\n EXPECT_FALSE ( otr_prefs -> GetBoolean ( prefs : : kBlockThirdPartyCookies ) ) ;\n pref = prefs -> FindPreference ( prefs : : kBlockThirdPartyCookies ) ;\n ASSERT_TRUE ( pref ) ;\n EXPECT_FALSE ( pref -> IsExtensionControlled ( ) ) ;\n EXPECT_FALSE ( prefs -> GetBoolean ( prefs : : kBlockThirdPartyCookies ) ) ;\n }"}
{"idx": 1410, "target": 0, "func": "bool send_req_key ( node_t * to ) {\n return send_request ( to -> nexthop -> connection , \"%d %s %s\" , REQ_KEY , myself -> name , to -> name ) ;\n }"}
{"idx": 1411, "target": 1, "func": "static void nvic_writel ( nvic_state * s , uint32_t offset , uint32_t value ) {\n uint32_t oldval ;\n switch ( offset ) {\n case 0x10 : oldval = s -> systick . control ;\n s -> systick . control &= 0xfffffff8 ;\n s -> systick . control |= value & 7 ;\n if ( ( oldval ^ value ) & SYSTICK_ENABLE ) {\n int64_t now = qemu_get_clock_ns ( vm_clock ) ;\n if ( value & SYSTICK_ENABLE ) {\n if ( s -> systick . tick ) {\n s -> systick . tick += now ;\n qemu_mod_timer ( s -> systick . timer , s -> systick . tick ) ;\n }\n else {\n systick_reload ( s , 1 ) ;\n }\n }\n else {\n qemu_del_timer ( s -> systick . timer ) ;\n s -> systick . tick -= now ;\n if ( s -> systick . tick < 0 ) s -> systick . tick = 0 ;\n }\n }\n else if ( ( oldval ^ value ) & SYSTICK_CLKSOURCE ) {\n systick_reload ( s , 1 ) ;\n }\n break ;\n case 0x14 : s -> systick . reload = value ;\n break ;\n case 0x18 : systick_reload ( s , 1 ) ;\n s -> systick . control &= ~ SYSTICK_COUNTFLAG ;\n break ;\n case 0xd04 : if ( value & ( 1 << 31 ) ) {\n armv7m_nvic_set_pending ( s , ARMV7M_EXCP_NMI ) ;\n }\n if ( value & ( 1 << 28 ) ) {\n armv7m_nvic_set_pending ( s , ARMV7M_EXCP_PENDSV ) ;\n }\n else if ( value & ( 1 << 27 ) ) {\n s -> gic . irq_state [ ARMV7M_EXCP_PENDSV ] . pending = 0 ;\n gic_update ( & s -> gic ) ;\n }\n if ( value & ( 1 << 26 ) ) {\n armv7m_nvic_set_pending ( s , ARMV7M_EXCP_SYSTICK ) ;\n }\n else if ( value & ( 1 << 25 ) ) {\n s -> gic . irq_state [ ARMV7M_EXCP_SYSTICK ] . pending = 0 ;\n gic_update ( & s -> gic ) ;\n }\n break ;\n case 0xd08 : cpu_single_env -> v7m . vecbase = value & 0xffffff80 ;\n break ;\n case 0xd0c : if ( ( value >> 16 ) == 0x05fa ) {\n if ( value & 2 ) {\n qemu_log_mask ( LOG_UNIMP , \"VECTCLRACTIVE unimplemented\\n\" ) ;\n }\n if ( value & 5 ) {\n qemu_log_mask ( LOG_UNIMP , \"AIRCR system reset unimplemented\\n\" ) ;\n }\n }\n break ;\n case 0xd10 : case 0xd14 : qemu_log_mask ( LOG_UNIMP , \"NVIC: SCR and CCR unimplemented\\n\" ) ;\n break ;\n case 0xd24 : s -> gic . irq_state [ ARMV7M_EXCP_MEM ] . enabled = ( value & ( 1 << 16 ) ) != 0 ;\n s -> gic . irq_state [ ARMV7M_EXCP_BUS ] . enabled = ( value & ( 1 << 17 ) ) != 0 ;\n s -> gic . irq_state [ ARMV7M_EXCP_USAGE ] . enabled = ( value & ( 1 << 18 ) ) != 0 ;\n break ;\n case 0xd28 : case 0xd2c : case 0xd30 : case 0xd34 : case 0xd38 : case 0xd3c : qemu_log_mask ( LOG_UNIMP , \"NVIC: fault status registers unimplemented\\n\" ) ;\n break ;\n case 0xf00 : if ( ( value & 0x1ff ) < s -> num_irq ) {\n gic_set_pending_private ( & s -> gic , 0 , value & 0x1ff ) ;\n }\n break ;\n default : qemu_log_mask ( LOG_GUEST_ERROR , \"NVIC: Bad write offset 0x%x\\n\" , offset ) ;\n }\n }"}
{"idx": 1412, "target": 0, "func": "gcry_error_t gcry_pk_algo_info ( int algorithm , int what , void * buffer , size_t * nbytes ) {\n gcry_err_code_t err = GPG_ERR_NO_ERROR ;\n switch ( what ) {\n case GCRYCTL_TEST_ALGO : {\n int use = nbytes ? * nbytes : 0 ;\n if ( buffer ) err = GPG_ERR_INV_ARG ;\n else if ( check_pubkey_algo ( algorithm , use ) ) err = GPG_ERR_PUBKEY_ALGO ;\n break ;\n }\n case GCRYCTL_GET_ALGO_USAGE : {\n gcry_module_t pubkey ;\n int use = 0 ;\n REGISTER_DEFAULT_PUBKEYS ;\n ath_mutex_lock ( & pubkeys_registered_lock ) ;\n pubkey = _gcry_module_lookup_id ( pubkeys_registered , algorithm ) ;\n if ( pubkey ) {\n use = ( ( gcry_pk_spec_t * ) pubkey -> spec ) -> use ;\n _gcry_module_release ( pubkey ) ;\n }\n ath_mutex_unlock ( & pubkeys_registered_lock ) ;\n * nbytes = use ;\n break ;\n }\n case GCRYCTL_GET_ALGO_NPKEY : {\n int npkey = pubkey_get_npkey ( algorithm ) ;\n * nbytes = npkey ;\n break ;\n }\n case GCRYCTL_GET_ALGO_NSKEY : {\n int nskey = pubkey_get_nskey ( algorithm ) ;\n * nbytes = nskey ;\n break ;\n }\n case GCRYCTL_GET_ALGO_NSIGN : {\n int nsign = pubkey_get_nsig ( algorithm ) ;\n * nbytes = nsign ;\n break ;\n }\n case GCRYCTL_GET_ALGO_NENCR : {\n int nencr = pubkey_get_nenc ( algorithm ) ;\n * nbytes = nencr ;\n break ;\n }\n default : err = GPG_ERR_INV_OP ;\n }\n return gcry_error ( err ) ;\n }"}
{"idx": 1413, "target": 0, "func": "static int reassemble_octet_string ( asn1_ctx_t * actx , proto_tree * tree , gint hf_id , tvbuff_t * tvb , int offset , guint32 con_len , gboolean ind , tvbuff_t * * out_tvb ) {\n fragment_head * fd_head = NULL ;\n tvbuff_t * next_tvb = NULL ;\n tvbuff_t * reassembled_tvb = NULL ;\n guint16 dst_ref = 0 ;\n int start_offset = offset ;\n gboolean fragment = TRUE ;\n gboolean firstFragment = TRUE ;\n if ( out_tvb ) * out_tvb = NULL ;\n if ( con_len == 0 ) return offset ;\n actx -> pinfo -> fragmented = TRUE ;\n while ( ! fd_head ) {\n offset = dissect_ber_octet_string ( FALSE , actx , NULL , tvb , offset , hf_id , & next_tvb ) ;\n if ( next_tvb == NULL ) {\n THROW ( ReportedBoundsError ) ;\n }\n if ( ind ) {\n if ( ( tvb_get_guint8 ( tvb , offset ) == 0 ) && ( tvb_get_guint8 ( tvb , offset + 1 ) == 0 ) ) {\n fragment = FALSE ;\n offset += 2 ;\n }\n }\n else {\n if ( ( guint32 ) ( offset - start_offset ) >= con_len ) fragment = FALSE ;\n }\n if ( ! fragment && firstFragment ) {\n gboolean pc ;\n get_ber_identifier ( tvb , start_offset , NULL , & pc , NULL ) ;\n if ( ! pc && tree ) {\n dissect_ber_octet_string ( FALSE , actx , tree , tvb , start_offset , hf_id , NULL ) ;\n }\n reassembled_tvb = next_tvb ;\n break ;\n }\n if ( tvb_reported_length ( next_tvb ) < 1 ) {\n THROW ( ReportedBoundsError ) ;\n }\n fd_head = fragment_add_seq_next ( & octet_segment_reassembly_table , next_tvb , 0 , actx -> pinfo , dst_ref , NULL , tvb_reported_length ( next_tvb ) , fragment ) ;\n firstFragment = FALSE ;\n }\n if ( fd_head ) {\n if ( fd_head -> next ) {\n proto_tree * next_tree ;\n proto_item * frag_tree_item ;\n reassembled_tvb = tvb_new_chain ( next_tvb , fd_head -> tvb_data ) ;\n actx -> created_item = proto_tree_add_item ( tree , hf_id , reassembled_tvb , 0 , - 1 , ENC_BIG_ENDIAN ) ;\n next_tree = proto_item_add_subtree ( actx -> created_item , ett_ber_reassembled_octet_string ) ;\n add_new_data_source ( actx -> pinfo , reassembled_tvb , \"Reassembled OCTET STRING\" ) ;\n show_fragment_seq_tree ( fd_head , & octet_string_frag_items , next_tree , actx -> pinfo , reassembled_tvb , & frag_tree_item ) ;\n }\n }\n if ( out_tvb ) * out_tvb = reassembled_tvb ;\n actx -> pinfo -> fragmented = FALSE ;\n return offset ;\n }"}
{"idx": 1414, "target": 0, "func": "relpRetVal relpTcpSetPermittedPeers ( relpTcp_t __attribute__ ( ( unused ) ) * pThis , relpPermittedPeers_t __attribute__ ( ( unused ) ) * pPeers ) {\n ENTER_RELPFUNC ;\n # ifdef ENABLE_TLS int i ;\n relpTcpFreePermittedPeers ( pThis ) ;\n if ( pPeers -> nmemb != 0 ) {\n if ( ( pThis -> permittedPeers . peer = malloc ( sizeof ( tcpPermittedPeerEntry_t ) * pPeers -> nmemb ) ) == NULL ) {\n ABORT_FINALIZE ( RELP_RET_OUT_OF_MEMORY ) ;\n }\n for ( i = 0 ;\n i < pPeers -> nmemb ;\n ++ i ) {\n if ( ( pThis -> permittedPeers . peer [ i ] . name = strdup ( pPeers -> name [ i ] ) ) == NULL ) {\n ABORT_FINALIZE ( RELP_RET_OUT_OF_MEMORY ) ;\n }\n pThis -> permittedPeers . peer [ i ] . wildcardRoot = NULL ;\n pThis -> permittedPeers . peer [ i ] . wildcardLast = NULL ;\n CHKRet ( relpTcpPermittedPeerWildcardCompile ( & ( pThis -> permittedPeers . peer [ i ] ) ) ) ;\n }\n }\n pThis -> permittedPeers . nmemb = pPeers -> nmemb ;\n # else ABORT_FINALIZE ( RELP_RET_ERR_NO_TLS ) ;\n # endif finalize_it : LEAVE_RELPFUNC ;\n }"}
{"idx": 1415, "target": 0, "func": "static void copy_picture_attributes ( MpegEncContext * s , AVFrame * dst , const AVFrame * src ) {\n dst -> pict_type = src -> pict_type ;\n dst -> quality = src -> quality ;\n dst -> coded_picture_number = src -> coded_picture_number ;\n dst -> display_picture_number = src -> display_picture_number ;\n dst -> pts = src -> pts ;\n dst -> interlaced_frame = src -> interlaced_frame ;\n dst -> top_field_first = src -> top_field_first ;\n }"}
{"idx": 1416, "target": 0, "func": "void do_send_quit ( struct st_command * command ) {\n char * p = command -> first_argument , * name ;\n struct st_connection * con ;\n DBUG_ENTER ( \"do_send_quit\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"name: '%s'\" , p ) ) ;\n if ( ! * p ) die ( \"Missing connection name in send_quit\" ) ;\n name = p ;\n while ( * p && ! my_isspace ( charset_info , * p ) ) p ++ ;\n if ( * p ) * p ++ = 0 ;\n command -> last_argument = p ;\n if ( ! ( con = find_connection_by_name ( name ) ) ) die ( \"connection '%s' not found in connection pool\" , name ) ;\n simple_command ( con -> mysql , COM_QUIT , 0 , 0 , 1 ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 1417, "target": 0, "func": "static int dissect_rsl_ie_ms_id ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_item * ti ;\n proto_tree * ie_tree ;\n guint length ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_MS_ID ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_ie_ms_id , & ti , \"MS Identity IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n length = tvb_get_guint8 ( tvb , offset ) ;\n proto_item_set_len ( ti , length + 2 ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_length , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n de_mid ( tvb , ie_tree , pinfo , offset , length , NULL , 0 ) ;\n offset = offset + length ;\n return offset ;\n }"}
{"idx": 1418, "target": 1, "func": "void vp8_strict_quantize_b_c ( BLOCK * b , BLOCKD * d ) {\n int i ;\n int rc ;\n int eob ;\n int x ;\n int y ;\n int z ;\n int sz ;\n short * coeff_ptr ;\n short * quant_ptr ;\n short * quant_shift_ptr ;\n short * qcoeff_ptr ;\n short * dqcoeff_ptr ;\n short * dequant_ptr ;\n coeff_ptr = b -> coeff ;\n quant_ptr = b -> quant ;\n quant_shift_ptr = b -> quant_shift ;\n qcoeff_ptr = d -> qcoeff ;\n dqcoeff_ptr = d -> dqcoeff ;\n dequant_ptr = d -> dequant ;\n eob = - 1 ;\n vpx_memset ( qcoeff_ptr , 0 , 32 ) ;\n vpx_memset ( dqcoeff_ptr , 0 , 32 ) ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n int dq ;\n int rounding ;\n rc = vp8_default_zig_zag1d [ i ] ;\n z = coeff_ptr [ rc ] ;\n dq = dequant_ptr [ rc ] ;\n rounding = dq >> 1 ;\n sz = - ( z < 0 ) ;\n x = ( z + sz ) ^ sz ;\n x += rounding ;\n if ( x >= dq ) {\n y = ( ( ( ( x * quant_ptr [ rc ] ) >> 16 ) + x ) * quant_shift_ptr [ rc ] ) >> 16 ;\n x = ( y + sz ) ^ sz ;\n qcoeff_ptr [ rc ] = x ;\n dqcoeff_ptr [ rc ] = x * dq ;\n if ( y ) eob = i ;\n }\n }\n * d -> eob = ( char ) ( eob + 1 ) ;\n }"}
{"idx": 1419, "target": 0, "func": "static int roq_encode_init ( AVCodecContext * avctx ) {\n RoqContext * enc = avctx -> priv_data ;\n av_lfg_init ( & enc -> randctx , 1 ) ;\n enc -> framesSinceKeyframe = 0 ;\n if ( ( avctx -> width & 0xf ) || ( avctx -> height & 0xf ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Dimensions must be divisible by 16\\n\" ) ;\n return - 1 ;\n }\n if ( ( ( avctx -> width ) & ( avctx -> width - 1 ) ) || ( ( avctx -> height ) & ( avctx -> height - 1 ) ) ) av_log ( avctx , AV_LOG_ERROR , \"Warning: dimensions not power of two\\n\" ) ;\n enc -> width = avctx -> width ;\n enc -> height = avctx -> height ;\n enc -> framesSinceKeyframe = 0 ;\n enc -> first_frame = 1 ;\n enc -> last_frame = av_frame_alloc ( ) ;\n enc -> current_frame = av_frame_alloc ( ) ;\n if ( ! enc -> last_frame || ! enc -> current_frame ) {\n roq_encode_end ( avctx ) ;\n return AVERROR ( ENOMEM ) ;\n }\n enc -> tmpData = av_malloc ( sizeof ( RoqTempdata ) ) ;\n enc -> this_motion4 = av_mallocz ( ( enc -> width * enc -> height / 16 ) * sizeof ( motion_vect ) ) ;\n enc -> last_motion4 = av_malloc ( ( enc -> width * enc -> height / 16 ) * sizeof ( motion_vect ) ) ;\n enc -> this_motion8 = av_mallocz ( ( enc -> width * enc -> height / 64 ) * sizeof ( motion_vect ) ) ;\n enc -> last_motion8 = av_malloc ( ( enc -> width * enc -> height / 64 ) * sizeof ( motion_vect ) ) ;\n return 0 ;\n }"}
{"idx": 1420, "target": 0, "func": "static uint nr_of_decimals ( const char * str , const char * end ) {\n const char * decimal_point ;\n for ( ;\n ;\n ) {\n if ( str == end ) return 0 ;\n if ( * str == 'e' || * str == 'E' ) return NOT_FIXED_DEC ;\n if ( * str ++ == '.' ) break ;\n }\n decimal_point = str ;\n for ( ;\n str < end && my_isdigit ( system_charset_info , * str ) ;\n str ++ ) ;\n if ( str < end && ( * str == 'e' || * str == 'E' ) ) return NOT_FIXED_DEC ;\n return ( uint ) ( str - decimal_point ) ;\n }"}
{"idx": 1421, "target": 0, "func": "const char * TSRegisterProtocolTag ( const char * tag ) {\n return nullptr ;\n }"}
{"idx": 1422, "target": 0, "func": "static int show_routine_grants ( THD * thd , LEX_USER * lex_user , HASH * hash , const char * type , int typelen , char * buff , int buffsize ) {\n uint counter , index ;\n int error = 0 ;\n Protocol * protocol = thd -> protocol ;\n for ( index = 0 ;\n index < hash -> records ;\n index ++ ) {\n const char * user , * host ;\n GRANT_NAME * grant_proc = ( GRANT_NAME * ) hash_element ( hash , index ) ;\n if ( ! ( user = grant_proc -> user ) ) user = \"\" ;\n if ( ! ( host = grant_proc -> host . hostname ) ) host = \"\" ;\n if ( ! strcmp ( lex_user -> user . str , user ) && ! my_strcasecmp ( system_charset_info , lex_user -> host . str , host ) ) {\n ulong proc_access = grant_proc -> privs ;\n if ( proc_access != 0 ) {\n String global ( buff , buffsize , system_charset_info ) ;\n ulong test_access = proc_access & ~ GRANT_ACL ;\n global . length ( 0 ) ;\n global . append ( STRING_WITH_LEN ( \"GRANT \" ) ) ;\n if ( ! test_access ) global . append ( STRING_WITH_LEN ( \"USAGE\" ) ) ;\n else {\n int found = 0 ;\n ulong j ;\n for ( counter = 0 , j = SELECT_ACL ;\n j <= PROC_ACLS ;\n counter ++ , j <<= 1 ) {\n if ( test_access & j ) {\n if ( found ) global . append ( STRING_WITH_LEN ( \", \" ) ) ;\n found = 1 ;\n global . append ( command_array [ counter ] , command_lengths [ counter ] ) ;\n }\n }\n }\n global . append ( STRING_WITH_LEN ( \" ON \" ) ) ;\n global . append ( type , typelen ) ;\n global . append ( ' ' ) ;\n append_identifier ( thd , & global , grant_proc -> db , strlen ( grant_proc -> db ) ) ;\n global . append ( '.' ) ;\n append_identifier ( thd , & global , grant_proc -> tname , strlen ( grant_proc -> tname ) ) ;\n global . append ( STRING_WITH_LEN ( \" TO '\" ) ) ;\n global . append ( lex_user -> user . str , lex_user -> user . length , system_charset_info ) ;\n global . append ( STRING_WITH_LEN ( \"'@'\" ) ) ;\n global . append ( host , strlen ( host ) , system_charset_info ) ;\n global . append ( '\\'' ) ;\n if ( proc_access & GRANT_ACL ) global . append ( STRING_WITH_LEN ( \" WITH GRANT OPTION\" ) ) ;\n protocol -> prepare_for_resend ( ) ;\n protocol -> store ( global . ptr ( ) , global . length ( ) , global . charset ( ) ) ;\n if ( protocol -> write ( ) ) {\n error = - 1 ;\n break ;\n }\n }\n }\n }\n return error ;\n }"}
{"idx": 1423, "target": 0, "func": "static gboolean initialize_prefix ( gpointer k , gpointer v , gpointer u _U_ ) {\n ( ( prefix_initializer_t ) v ) ( ( const char * ) k ) ;\n return TRUE ;\n }"}
{"idx": 1424, "target": 0, "func": "static const char * update_rule_action ( cmd_parms * cmd , directory_config * dcfg , const char * p1 , const char * p2 , int offset ) {\n char * my_error_msg = NULL ;\n msre_rule * rule = NULL ;\n msre_actionset * new_actionset = NULL ;\n msre_ruleset * ruleset = dcfg -> ruleset ;\n extern msc_engine * modsecurity ;\n if ( ( ruleset == NULL ) || ( ruleset == NOT_SET_P ) ) {\n return NULL ;\n }\n # ifdef DEBUG_CONF ap_log_perror ( APLOG_MARK , APLOG_STARTUP | APLOG_NOERRNO , 0 , cmd -> pool , \"Update rule id=\\\"%s\\\" with action \\\"%s\\\".\" , p1 , p2 ) ;\n # endif rule = msre_ruleset_fetch_rule ( ruleset , p1 , offset ) ;\n if ( rule == NULL ) {\n # ifdef DEBUG_CONF ap_log_perror ( APLOG_MARK , APLOG_STARTUP | APLOG_NOERRNO , 0 , cmd -> pool , \"Update rule id=\\\"%s\\\" with action \\\"%s\\\" failed: Rule not found.\" , p1 , p2 ) ;\n # endif return NULL ;\n }\n if ( rule -> actionset == NULL ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Attempt to update action for rule \\\"%s\\\" failed: Rule does not have an actionset.\" , p1 ) ;\n }\n new_actionset = msre_actionset_create ( modsecurity -> msre , p2 , & my_error_msg ) ;\n if ( new_actionset == NULL ) return FATAL_ERROR ;\n if ( my_error_msg != NULL ) return my_error_msg ;\n if ( ( new_actionset -> id != NOT_SET_P ) && ( rule -> actionset -> id != NULL ) && ( strcmp ( rule -> actionset -> id , new_actionset -> id ) != 0 ) ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Rule IDs cannot be updated via SecRuleUpdateActionById.\" ) ;\n }\n if ( ( new_actionset -> phase != NOT_SET ) && ( rule -> actionset -> phase != new_actionset -> phase ) ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Rule phases cannot be updated via SecRuleUpdateActionById.\" ) ;\n }\n # ifdef DEBUG_CONF {\n char * actions = msre_actionset_generate_action_string ( ruleset -> mp , rule -> actionset ) ;\n ap_log_perror ( APLOG_MARK , APLOG_STARTUP | APLOG_NOERRNO , 0 , cmd -> pool , \"Update rule %pp id=\\\"%s\\\" old action: \\\"%s\\\"\" , rule , ( rule -> actionset -> id == NOT_SET_P ? \"(none)\" : rule -> actionset -> id ) , actions ) ;\n }\n # endif rule -> actionset = msre_actionset_merge ( modsecurity -> msre , rule -> actionset , new_actionset , 1 ) ;\n msre_actionset_set_defaults ( rule -> actionset ) ;\n rule -> unparsed = msre_rule_generate_unparsed ( ruleset -> mp , rule , NULL , NULL , NULL ) ;\n # ifdef DEBUG_CONF {\n char * actions = msre_actionset_generate_action_string ( ruleset -> mp , rule -> actionset ) ;\n ap_log_perror ( APLOG_MARK , APLOG_STARTUP | APLOG_NOERRNO , 0 , cmd -> pool , \"Update rule %pp id=\\\"%s\\\" new action: \\\"%s\\\"\" , rule , ( rule -> actionset -> id == NOT_SET_P ? \"(none)\" : rule -> actionset -> id ) , actions ) ;\n }\n # endif return NULL ;\n }"}
{"idx": 1425, "target": 0, "func": "void Init_ossl_x509name ( void ) {\n VALUE utf8str , ptrstr , ia5str , hash ;\n # if 0 mOSSL = rb_define_module ( \"OpenSSL\" ) ;\n eOSSLError = rb_define_class_under ( mOSSL , \"OpenSSLError\" , rb_eStandardError ) ;\n mX509 = rb_define_module_under ( mOSSL , \"X509\" ) ;\n # endif id_aref = rb_intern ( \"[]\" ) ;\n eX509NameError = rb_define_class_under ( mX509 , \"NameError\" , eOSSLError ) ;\n cX509Name = rb_define_class_under ( mX509 , \"Name\" , rb_cObject ) ;\n rb_include_module ( cX509Name , rb_mComparable ) ;\n rb_define_alloc_func ( cX509Name , ossl_x509name_alloc ) ;\n rb_define_method ( cX509Name , \"initialize\" , ossl_x509name_initialize , - 1 ) ;\n rb_define_copy_func ( cX509Name , ossl_x509name_initialize_copy ) ;\n rb_define_method ( cX509Name , \"add_entry\" , ossl_x509name_add_entry , - 1 ) ;\n rb_define_method ( cX509Name , \"to_s\" , ossl_x509name_to_s , - 1 ) ;\n rb_define_method ( cX509Name , \"to_a\" , ossl_x509name_to_a , 0 ) ;\n rb_define_method ( cX509Name , \"cmp\" , ossl_x509name_cmp , 1 ) ;\n rb_define_alias ( cX509Name , \"<=>\" , \"cmp\" ) ;\n rb_define_method ( cX509Name , \"eql?\" , ossl_x509name_eql , 1 ) ;\n rb_define_method ( cX509Name , \"hash\" , ossl_x509name_hash , 0 ) ;\n # ifdef HAVE_X509_NAME_HASH_OLD rb_define_method ( cX509Name , \"hash_old\" , ossl_x509name_hash_old , 0 ) ;\n # endif rb_define_method ( cX509Name , \"to_der\" , ossl_x509name_to_der , 0 ) ;\n utf8str = INT2NUM ( V_ASN1_UTF8STRING ) ;\n ptrstr = INT2NUM ( V_ASN1_PRINTABLESTRING ) ;\n ia5str = INT2NUM ( V_ASN1_IA5STRING ) ;\n rb_define_const ( cX509Name , \"DEFAULT_OBJECT_TYPE\" , utf8str ) ;\n hash = rb_hash_new ( ) ;\n RHASH_SET_IFNONE ( hash , utf8str ) ;\n rb_hash_aset ( hash , rb_str_new2 ( \"C\" ) , ptrstr ) ;\n rb_hash_aset ( hash , rb_str_new2 ( \"countryName\" ) , ptrstr ) ;\n rb_hash_aset ( hash , rb_str_new2 ( \"serialNumber\" ) , ptrstr ) ;\n rb_hash_aset ( hash , rb_str_new2 ( \"dnQualifier\" ) , ptrstr ) ;\n rb_hash_aset ( hash , rb_str_new2 ( \"DC\" ) , ia5str ) ;\n rb_hash_aset ( hash , rb_str_new2 ( \"domainComponent\" ) , ia5str ) ;\n rb_hash_aset ( hash , rb_str_new2 ( \"emailAddress\" ) , ia5str ) ;\n rb_define_const ( cX509Name , \"OBJECT_TYPE_TEMPLATE\" , hash ) ;\n rb_define_const ( cX509Name , \"COMPAT\" , ULONG2NUM ( XN_FLAG_COMPAT ) ) ;\n rb_define_const ( cX509Name , \"RFC2253\" , ULONG2NUM ( XN_FLAG_RFC2253 ) ) ;\n rb_define_const ( cX509Name , \"ONELINE\" , ULONG2NUM ( XN_FLAG_ONELINE ) ) ;\n rb_define_const ( cX509Name , \"MULTILINE\" , ULONG2NUM ( XN_FLAG_MULTILINE ) ) ;\n }"}
{"idx": 1426, "target": 0, "func": "krb5_error_code krb5_ldap_put_principal ( krb5_context context , krb5_db_entry * entry , char * * db_args ) {\n int l = 0 , kerberos_principal_object_type = 0 ;\n unsigned int ntrees = 0 , tre = 0 ;\n krb5_error_code st = 0 , tempst = 0 ;\n LDAP * ld = NULL ;\n LDAPMessage * result = NULL , * ent = NULL ;\n char * * subtreelist = NULL ;\n char * user = NULL , * subtree = NULL , * principal_dn = NULL ;\n char * * values = NULL , * strval [ 10 ] = {\n NULL }\n , errbuf [ 1024 ] ;\n char * filtuser = NULL ;\n struct berval * * bersecretkey = NULL ;\n LDAPMod * * mods = NULL ;\n krb5_boolean create_standalone_prinicipal = FALSE ;\n krb5_boolean krb_identity_exists = FALSE , establish_links = FALSE ;\n char * standalone_principal_dn = NULL ;\n krb5_tl_data * tl_data = NULL ;\n krb5_key_data * * keys = NULL ;\n kdb5_dal_handle * dal_handle = NULL ;\n krb5_ldap_context * ldap_context = NULL ;\n krb5_ldap_server_handle * ldap_server_handle = NULL ;\n osa_princ_ent_rec princ_ent = {\n 0 }\n ;\n xargs_t xargs = {\n 0 }\n ;\n char * polname = NULL ;\n OPERATION optype ;\n krb5_boolean found_entry = FALSE ;\n krb5_clear_error_message ( context ) ;\n SETUP_CONTEXT ( ) ;\n if ( ldap_context -> lrparams == NULL || ldap_context -> container_dn == NULL ) return EINVAL ;\n GET_HANDLE ( ) ;\n if ( ! is_principal_in_realm ( ldap_context , entry -> princ ) ) {\n st = EINVAL ;\n k5_setmsg ( context , st , _ ( \"Principal does not belong to the default realm\" ) ) ;\n goto cleanup ;\n }\n if ( ( ( st = krb5_unparse_name ( context , entry -> princ , & user ) ) != 0 ) || ( ( st = krb5_ldap_unparse_principal_name ( user ) ) != 0 ) ) goto cleanup ;\n filtuser = ldap_filter_correct ( user ) ;\n if ( filtuser == NULL ) {\n st = ENOMEM ;\n goto cleanup ;\n }\n if ( entry -> mask & KADM5_PRINCIPAL ) optype = ADD_PRINCIPAL ;\n else optype = MODIFY_PRINCIPAL ;\n if ( ( ( st = krb5_get_princ_type ( context , entry , & kerberos_principal_object_type ) ) != 0 ) || ( ( st = krb5_get_userdn ( context , entry , & principal_dn ) ) != 0 ) ) goto cleanup ;\n if ( ( st = process_db_args ( context , db_args , & xargs , optype ) ) != 0 ) goto cleanup ;\n if ( entry -> mask & KADM5_LOAD ) {\n unsigned int tree = 0 ;\n int numlentries = 0 ;\n char * filter = NULL ;\n if ( asprintf ( & filter , FILTER \"%s))\" , filtuser ) < 0 ) {\n filter = NULL ;\n st = ENOMEM ;\n goto cleanup ;\n }\n if ( ( st = krb5_get_subtree_info ( ldap_context , & subtreelist , & ntrees ) ) != 0 ) goto cleanup ;\n found_entry = FALSE ;\n for ( tree = 0 ;\n found_entry == FALSE && tree < ntrees ;\n ++ tree ) {\n if ( principal_dn == NULL ) {\n LDAP_SEARCH_1 ( subtreelist [ tree ] , ldap_context -> lrparams -> search_scope , filter , principal_attributes , IGNORE_STATUS ) ;\n }\n else {\n LDAP_SEARCH_1 ( principal_dn , LDAP_SCOPE_BASE , filter , principal_attributes , IGNORE_STATUS ) ;\n }\n if ( st == LDAP_SUCCESS ) {\n numlentries = ldap_count_entries ( ld , result ) ;\n if ( numlentries > 1 ) {\n free ( filter ) ;\n st = EINVAL ;\n k5_setmsg ( context , st , _ ( \"operation can not continue, more than one \" \"entry with principal name \\\"%s\\\" found\" ) , user ) ;\n goto cleanup ;\n }\n else if ( numlentries == 1 ) {\n found_entry = TRUE ;\n if ( principal_dn == NULL ) {\n ent = ldap_first_entry ( ld , result ) ;\n if ( ent != NULL ) {\n if ( ( principal_dn = ldap_get_dn ( ld , ent ) ) == NULL ) {\n ldap_get_option ( ld , LDAP_OPT_RESULT_CODE , & st ) ;\n st = set_ldap_error ( context , st , 0 ) ;\n free ( filter ) ;\n goto cleanup ;\n }\n }\n }\n }\n }\n else if ( st != LDAP_NO_SUCH_OBJECT ) {\n st = set_ldap_error ( context , st , 0 ) ;\n free ( filter ) ;\n goto cleanup ;\n }\n ldap_msgfree ( result ) ;\n result = NULL ;\n }\n free ( filter ) ;\n if ( found_entry == FALSE && principal_dn != NULL ) {\n create_standalone_prinicipal = TRUE ;\n standalone_principal_dn = strdup ( principal_dn ) ;\n CHECK_NULL ( standalone_principal_dn ) ;\n }\n }\n if ( principal_dn == NULL && xargs . dn == NULL ) {\n if ( entry -> princ -> length == 2 && entry -> princ -> data [ 0 ] . length == strlen ( \"krbtgt\" ) && strncmp ( entry -> princ -> data [ 0 ] . data , \"krbtgt\" , entry -> princ -> data [ 0 ] . length ) == 0 ) {\n subtree = strdup ( ldap_context -> lrparams -> realmdn ) ;\n }\n else if ( xargs . containerdn ) {\n if ( ( st = checkattributevalue ( ld , xargs . containerdn , NULL , NULL , NULL ) ) != 0 ) {\n if ( st == KRB5_KDB_NOENTRY || st == KRB5_KDB_CONSTRAINT_VIOLATION ) {\n int ost = st ;\n st = EINVAL ;\n snprintf ( errbuf , sizeof ( errbuf ) , _ ( \"'%s' not found: \" ) , xargs . containerdn ) ;\n prepend_err_str ( context , errbuf , st , ost ) ;\n }\n goto cleanup ;\n }\n subtree = strdup ( xargs . containerdn ) ;\n }\n else if ( ldap_context -> lrparams -> containerref && strlen ( ldap_context -> lrparams -> containerref ) != 0 ) {\n subtree = strdup ( ldap_context -> lrparams -> containerref ) ;\n }\n else {\n subtree = strdup ( ldap_context -> lrparams -> realmdn ) ;\n }\n CHECK_NULL ( subtree ) ;\n if ( asprintf ( & standalone_principal_dn , \"krbprincipalname=%s,%s\" , filtuser , subtree ) < 0 ) standalone_principal_dn = NULL ;\n CHECK_NULL ( standalone_principal_dn ) ;\n create_standalone_prinicipal = TRUE ;\n free ( subtree ) ;\n subtree = NULL ;\n }\n if ( xargs . dn_from_kbd == TRUE ) {\n int dnlen = 0 , subtreelen = 0 ;\n char * dn = NULL ;\n krb5_boolean outofsubtree = TRUE ;\n if ( xargs . dn != NULL ) {\n dn = xargs . dn ;\n }\n else if ( xargs . linkdn != NULL ) {\n dn = xargs . linkdn ;\n }\n else if ( standalone_principal_dn != NULL ) {\n dn = standalone_principal_dn ;\n }\n if ( subtreelist == NULL ) {\n st = krb5_get_subtree_info ( ldap_context , & subtreelist , & ntrees ) ;\n if ( st ) goto cleanup ;\n }\n for ( tre = 0 ;\n tre < ntrees ;\n ++ tre ) {\n if ( subtreelist [ tre ] == NULL || strlen ( subtreelist [ tre ] ) == 0 ) {\n outofsubtree = FALSE ;\n break ;\n }\n else {\n dnlen = strlen ( dn ) ;\n subtreelen = strlen ( subtreelist [ tre ] ) ;\n if ( ( dnlen >= subtreelen ) && ( strcasecmp ( ( dn + dnlen - subtreelen ) , subtreelist [ tre ] ) == 0 ) ) {\n outofsubtree = FALSE ;\n break ;\n }\n }\n }\n if ( outofsubtree == TRUE ) {\n st = EINVAL ;\n k5_setmsg ( context , st , _ ( \"DN is out of the realm subtree\" ) ) ;\n goto cleanup ;\n }\n if ( standalone_principal_dn == NULL ) {\n char * attributes [ ] = {\n \"krbticketpolicyreference\" , \"krbprincipalname\" , NULL }\n ;\n ldap_msgfree ( result ) ;\n result = NULL ;\n LDAP_SEARCH_1 ( dn , LDAP_SCOPE_BASE , 0 , attributes , IGNORE_STATUS ) ;\n if ( st == LDAP_SUCCESS ) {\n ent = ldap_first_entry ( ld , result ) ;\n if ( ent != NULL ) {\n if ( ( values = ldap_get_values ( ld , ent , \"krbticketpolicyreference\" ) ) != NULL ) {\n ldap_value_free ( values ) ;\n }\n if ( ( values = ldap_get_values ( ld , ent , \"krbprincipalname\" ) ) != NULL ) {\n krb_identity_exists = TRUE ;\n ldap_value_free ( values ) ;\n }\n }\n }\n else {\n st = set_ldap_error ( context , st , OP_SEARCH ) ;\n goto cleanup ;\n }\n }\n }\n if ( xargs . dn != NULL && krb_identity_exists == TRUE ) {\n st = EINVAL ;\n snprintf ( errbuf , sizeof ( errbuf ) , _ ( \"ldap object is already kerberized\" ) ) ;\n k5_setmsg ( context , st , \"%s\" , errbuf ) ;\n goto cleanup ;\n }\n if ( xargs . linkdn != NULL ) {\n if ( optype == MODIFY_PRINCIPAL && kerberos_principal_object_type != KDB_STANDALONE_PRINCIPAL_OBJECT ) {\n st = EINVAL ;\n snprintf ( errbuf , sizeof ( errbuf ) , _ ( \"link information can not be set/updated as the \" \"kerberos principal belongs to an ldap object\" ) ) ;\n k5_setmsg ( context , st , \"%s\" , errbuf ) ;\n goto cleanup ;\n }\n {\n char * * linkdns = NULL ;\n int j = 0 ;\n if ( ( st = krb5_get_linkdn ( context , entry , & linkdns ) ) != 0 ) {\n snprintf ( errbuf , sizeof ( errbuf ) , _ ( \"Failed getting object references\" ) ) ;\n k5_setmsg ( context , st , \"%s\" , errbuf ) ;\n goto cleanup ;\n }\n if ( linkdns != NULL ) {\n st = EINVAL ;\n snprintf ( errbuf , sizeof ( errbuf ) , _ ( \"kerberos principal is already linked to a ldap \" \"object\" ) ) ;\n k5_setmsg ( context , st , \"%s\" , errbuf ) ;\n for ( j = 0 ;\n linkdns [ j ] != NULL ;\n ++ j ) free ( linkdns [ j ] ) ;\n free ( linkdns ) ;\n goto cleanup ;\n }\n }\n establish_links = TRUE ;\n }\n if ( entry -> mask & KADM5_LAST_SUCCESS ) {\n memset ( strval , 0 , sizeof ( strval ) ) ;\n if ( ( strval [ 0 ] = getstringtime ( entry -> last_success ) ) == NULL ) goto cleanup ;\n if ( ( st = krb5_add_str_mem_ldap_mod ( & mods , \"krbLastSuccessfulAuth\" , LDAP_MOD_REPLACE , strval ) ) != 0 ) {\n free ( strval [ 0 ] ) ;\n goto cleanup ;\n }\n free ( strval [ 0 ] ) ;\n }\n if ( entry -> mask & KADM5_LAST_FAILED ) {\n memset ( strval , 0 , sizeof ( strval ) ) ;\n if ( ( strval [ 0 ] = getstringtime ( entry -> last_failed ) ) == NULL ) goto cleanup ;\n if ( ( st = krb5_add_str_mem_ldap_mod ( & mods , \"krbLastFailedAuth\" , LDAP_MOD_REPLACE , strval ) ) != 0 ) {\n free ( strval [ 0 ] ) ;\n goto cleanup ;\n }\n free ( strval [ 0 ] ) ;\n }\n if ( entry -> mask & KADM5_FAIL_AUTH_COUNT ) {\n krb5_kvno fail_auth_count ;\n fail_auth_count = entry -> fail_auth_count ;\n if ( entry -> mask & KADM5_FAIL_AUTH_COUNT_INCREMENT ) fail_auth_count ++ ;\n st = krb5_add_int_mem_ldap_mod ( & mods , \"krbLoginFailedCount\" , LDAP_MOD_REPLACE , fail_auth_count ) ;\n if ( st != 0 ) goto cleanup ;\n }\n else if ( entry -> mask & KADM5_FAIL_AUTH_COUNT_INCREMENT ) {\n int attr_mask = 0 ;\n krb5_boolean has_fail_count ;\n st = krb5_get_attributes_mask ( context , entry , & attr_mask ) ;\n if ( st != 0 ) goto cleanup ;\n has_fail_count = ( ( attr_mask & KDB_FAIL_AUTH_COUNT_ATTR ) != 0 ) ;\n # ifdef LDAP_MOD_INCREMENT if ( ldap_server_handle -> server_info -> modify_increment && has_fail_count ) {\n st = krb5_add_int_mem_ldap_mod ( & mods , \"krbLoginFailedCount\" , LDAP_MOD_INCREMENT , 1 ) ;\n if ( st != 0 ) goto cleanup ;\n }\n else {\n # endif if ( has_fail_count ) {\n st = krb5_add_int_mem_ldap_mod ( & mods , \"krbLoginFailedCount\" , LDAP_MOD_DELETE , entry -> fail_auth_count ) ;\n if ( st != 0 ) goto cleanup ;\n }\n st = krb5_add_int_mem_ldap_mod ( & mods , \"krbLoginFailedCount\" , LDAP_MOD_ADD , entry -> fail_auth_count + 1 ) ;\n if ( st != 0 ) goto cleanup ;\n # ifdef LDAP_MOD_INCREMENT }\n # endif }\n else if ( optype == ADD_PRINCIPAL ) {\n st = krb5_add_int_mem_ldap_mod ( & mods , \"krbLoginFailedCount\" , LDAP_MOD_ADD , 0 ) ;\n }\n if ( entry -> mask & KADM5_MAX_LIFE ) {\n if ( ( st = krb5_add_int_mem_ldap_mod ( & mods , \"krbmaxticketlife\" , LDAP_MOD_REPLACE , entry -> max_life ) ) != 0 ) goto cleanup ;\n }\n if ( entry -> mask & KADM5_MAX_RLIFE ) {\n if ( ( st = krb5_add_int_mem_ldap_mod ( & mods , \"krbmaxrenewableage\" , LDAP_MOD_REPLACE , entry -> max_renewable_life ) ) != 0 ) goto cleanup ;\n }\n if ( entry -> mask & KADM5_ATTRIBUTES ) {\n if ( ( st = krb5_add_int_mem_ldap_mod ( & mods , \"krbticketflags\" , LDAP_MOD_REPLACE , entry -> attributes ) ) != 0 ) goto cleanup ;\n }\n if ( entry -> mask & KADM5_PRINCIPAL ) {\n memset ( strval , 0 , sizeof ( strval ) ) ;\n strval [ 0 ] = user ;\n if ( ( st = krb5_add_str_mem_ldap_mod ( & mods , \"krbprincipalname\" , LDAP_MOD_REPLACE , strval ) ) != 0 ) goto cleanup ;\n }\n if ( entry -> mask & KADM5_PRINC_EXPIRE_TIME ) {\n memset ( strval , 0 , sizeof ( strval ) ) ;\n if ( ( strval [ 0 ] = getstringtime ( entry -> expiration ) ) == NULL ) goto cleanup ;\n if ( ( st = krb5_add_str_mem_ldap_mod ( & mods , \"krbprincipalexpiration\" , LDAP_MOD_REPLACE , strval ) ) != 0 ) {\n free ( strval [ 0 ] ) ;\n goto cleanup ;\n }\n free ( strval [ 0 ] ) ;\n }\n if ( entry -> mask & KADM5_PW_EXPIRATION ) {\n memset ( strval , 0 , sizeof ( strval ) ) ;\n if ( ( strval [ 0 ] = getstringtime ( entry -> pw_expiration ) ) == NULL ) goto cleanup ;\n if ( ( st = krb5_add_str_mem_ldap_mod ( & mods , \"krbpasswordexpiration\" , LDAP_MOD_REPLACE , strval ) ) != 0 ) {\n free ( strval [ 0 ] ) ;\n goto cleanup ;\n }\n free ( strval [ 0 ] ) ;\n }\n if ( entry -> mask & KADM5_POLICY ) {\n memset ( & princ_ent , 0 , sizeof ( princ_ent ) ) ;\n for ( tl_data = entry -> tl_data ;\n tl_data ;\n tl_data = tl_data -> tl_data_next ) {\n if ( tl_data -> tl_data_type == KRB5_TL_KADM_DATA ) {\n if ( ( st = krb5_lookup_tl_kadm_data ( tl_data , & princ_ent ) ) != 0 ) {\n goto cleanup ;\n }\n break ;\n }\n }\n if ( princ_ent . aux_attributes & KADM5_POLICY ) {\n memset ( strval , 0 , sizeof ( strval ) ) ;\n if ( ( st = krb5_ldap_name_to_policydn ( context , princ_ent . policy , & polname ) ) != 0 ) goto cleanup ;\n strval [ 0 ] = polname ;\n if ( ( st = krb5_add_str_mem_ldap_mod ( & mods , \"krbpwdpolicyreference\" , LDAP_MOD_REPLACE , strval ) ) != 0 ) goto cleanup ;\n }\n else {\n st = EINVAL ;\n k5_setmsg ( context , st , \"Password policy value null\" ) ;\n goto cleanup ;\n }\n }\n else if ( entry -> mask & KADM5_LOAD && found_entry == TRUE ) {\n if ( ( st = krb5_add_str_mem_ldap_mod ( & mods , \"krbpwdpolicyreference\" , LDAP_MOD_REPLACE , NULL ) ) != 0 ) goto cleanup ;\n }\n if ( entry -> mask & KADM5_POLICY_CLR ) {\n if ( ( st = krb5_add_str_mem_ldap_mod ( & mods , \"krbpwdpolicyreference\" , LDAP_MOD_DELETE , NULL ) ) != 0 ) goto cleanup ;\n }\n if ( entry -> mask & KADM5_KEY_DATA || entry -> mask & KADM5_KVNO ) {\n krb5_kvno mkvno ;\n if ( ( st = krb5_dbe_lookup_mkvno ( context , entry , & mkvno ) ) != 0 ) goto cleanup ;\n bersecretkey = krb5_encode_krbsecretkey ( entry -> key_data , entry -> n_key_data , mkvno ) ;\n if ( ( st = krb5_add_ber_mem_ldap_mod ( & mods , \"krbprincipalkey\" , LDAP_MOD_REPLACE | LDAP_MOD_BVALUES , bersecretkey ) ) != 0 ) goto cleanup ;\n if ( ! ( entry -> mask & KADM5_PRINCIPAL ) ) {\n memset ( strval , 0 , sizeof ( strval ) ) ;\n if ( ( strval [ 0 ] = getstringtime ( entry -> pw_expiration ) ) == NULL ) goto cleanup ;\n if ( ( st = krb5_add_str_mem_ldap_mod ( & mods , \"krbpasswordexpiration\" , LDAP_MOD_REPLACE , strval ) ) != 0 ) {\n free ( strval [ 0 ] ) ;\n goto cleanup ;\n }\n free ( strval [ 0 ] ) ;\n }\n {\n krb5_timestamp last_pw_changed ;\n if ( ( st = krb5_dbe_lookup_last_pwd_change ( context , entry , & last_pw_changed ) ) != 0 ) goto cleanup ;\n memset ( strval , 0 , sizeof ( strval ) ) ;\n if ( ( strval [ 0 ] = getstringtime ( last_pw_changed ) ) == NULL ) goto cleanup ;\n if ( ( st = krb5_add_str_mem_ldap_mod ( & mods , \"krbLastPwdChange\" , LDAP_MOD_REPLACE , strval ) ) != 0 ) {\n free ( strval [ 0 ] ) ;\n goto cleanup ;\n }\n free ( strval [ 0 ] ) ;\n }\n }\n if ( entry -> tl_data != NULL ) {\n int count = 0 ;\n struct berval * * ber_tl_data = NULL ;\n krb5_tl_data * ptr ;\n krb5_timestamp unlock_time ;\n for ( ptr = entry -> tl_data ;\n ptr != NULL ;\n ptr = ptr -> tl_data_next ) {\n if ( ptr -> tl_data_type == KRB5_TL_LAST_PWD_CHANGE # ifdef SECURID || ptr -> tl_data_type == KRB5_TL_DB_ARGS # endif || ptr -> tl_data_type == KRB5_TL_KADM_DATA || ptr -> tl_data_type == KDB_TL_USER_INFO || ptr -> tl_data_type == KRB5_TL_CONSTRAINED_DELEGATION_ACL || ptr -> tl_data_type == KRB5_TL_LAST_ADMIN_UNLOCK ) continue ;\n count ++ ;\n }\n if ( count != 0 ) {\n int j ;\n ber_tl_data = ( struct berval * * ) calloc ( count + 1 , sizeof ( struct berval * ) ) ;\n if ( ber_tl_data == NULL ) {\n st = ENOMEM ;\n goto cleanup ;\n }\n for ( j = 0 , ptr = entry -> tl_data ;\n ptr != NULL ;\n ptr = ptr -> tl_data_next ) {\n if ( ptr -> tl_data_type == KRB5_TL_LAST_PWD_CHANGE # ifdef SECURID || ptr -> tl_data_type == KRB5_TL_DB_ARGS # endif || ptr -> tl_data_type == KRB5_TL_KADM_DATA || ptr -> tl_data_type == KDB_TL_USER_INFO || ptr -> tl_data_type == KRB5_TL_CONSTRAINED_DELEGATION_ACL || ptr -> tl_data_type == KRB5_TL_LAST_ADMIN_UNLOCK ) continue ;\n if ( ( st = tl_data2berval ( ptr , & ber_tl_data [ j ] ) ) != 0 ) break ;\n j ++ ;\n }\n if ( st == 0 ) {\n ber_tl_data [ count ] = NULL ;\n st = krb5_add_ber_mem_ldap_mod ( & mods , \"krbExtraData\" , LDAP_MOD_REPLACE | LDAP_MOD_BVALUES , ber_tl_data ) ;\n }\n for ( j = 0 ;\n ber_tl_data [ j ] != NULL ;\n j ++ ) {\n free ( ber_tl_data [ j ] -> bv_val ) ;\n free ( ber_tl_data [ j ] ) ;\n }\n free ( ber_tl_data ) ;\n if ( st != 0 ) goto cleanup ;\n }\n if ( ( st = krb5_dbe_lookup_last_admin_unlock ( context , entry , & unlock_time ) ) != 0 ) goto cleanup ;\n if ( unlock_time != 0 ) {\n memset ( strval , 0 , sizeof ( strval ) ) ;\n if ( ( strval [ 0 ] = getstringtime ( unlock_time ) ) == NULL ) goto cleanup ;\n if ( ( st = krb5_add_str_mem_ldap_mod ( & mods , \"krbLastAdminUnlock\" , LDAP_MOD_REPLACE , strval ) ) != 0 ) {\n free ( strval [ 0 ] ) ;\n goto cleanup ;\n }\n free ( strval [ 0 ] ) ;\n }\n }\n if ( xargs . tktpolicydn != NULL ) {\n int tmask = 0 ;\n if ( strlen ( xargs . tktpolicydn ) != 0 ) {\n st = checkattributevalue ( ld , xargs . tktpolicydn , \"objectclass\" , policyclass , & tmask ) ;\n CHECK_CLASS_VALIDITY ( st , tmask , _ ( \"ticket policy object value: \" ) ) ;\n strval [ 0 ] = xargs . tktpolicydn ;\n strval [ 1 ] = NULL ;\n if ( ( st = krb5_add_str_mem_ldap_mod ( & mods , \"krbticketpolicyreference\" , LDAP_MOD_REPLACE , strval ) ) != 0 ) goto cleanup ;\n }\n else {\n if ( ( st = krb5_add_str_mem_ldap_mod ( & mods , \"krbticketpolicyreference\" , LDAP_MOD_DELETE , NULL ) ) != 0 ) goto cleanup ;\n }\n }\n if ( establish_links == TRUE ) {\n memset ( strval , 0 , sizeof ( strval ) ) ;\n strval [ 0 ] = xargs . linkdn ;\n if ( ( st = krb5_add_str_mem_ldap_mod ( & mods , \"krbObjectReferences\" , LDAP_MOD_REPLACE , strval ) ) != 0 ) goto cleanup ;\n }\n if ( mods == NULL ) goto cleanup ;\n if ( create_standalone_prinicipal == TRUE ) {\n memset ( strval , 0 , sizeof ( strval ) ) ;\n strval [ 0 ] = \"krbprincipal\" ;\n strval [ 1 ] = \"krbprincipalaux\" ;\n strval [ 2 ] = \"krbTicketPolicyAux\" ;\n if ( ( st = krb5_add_str_mem_ldap_mod ( & mods , \"objectclass\" , LDAP_MOD_ADD , strval ) ) != 0 ) goto cleanup ;\n st = ldap_add_ext_s ( ld , standalone_principal_dn , mods , NULL , NULL ) ;\n if ( st == LDAP_ALREADY_EXISTS && entry -> mask & KADM5_LOAD ) {\n st = ldap_delete_ext_s ( ld , standalone_principal_dn , NULL , NULL ) ;\n if ( st != LDAP_SUCCESS ) {\n snprintf ( errbuf , sizeof ( errbuf ) , _ ( \"Principal delete failed (trying to replace \" \"entry): %s\" ) , ldap_err2string ( st ) ) ;\n st = translate_ldap_error ( st , OP_ADD ) ;\n k5_setmsg ( context , st , \"%s\" , errbuf ) ;\n goto cleanup ;\n }\n else {\n st = ldap_add_ext_s ( ld , standalone_principal_dn , mods , NULL , NULL ) ;\n }\n }\n if ( st != LDAP_SUCCESS ) {\n snprintf ( errbuf , sizeof ( errbuf ) , _ ( \"Principal add failed: %s\" ) , ldap_err2string ( st ) ) ;\n st = translate_ldap_error ( st , OP_ADD ) ;\n k5_setmsg ( context , st , \"%s\" , errbuf ) ;\n goto cleanup ;\n }\n }\n else {\n {\n char * attrvalues [ ] = {\n \"krbprincipalaux\" , \"krbTicketPolicyAux\" , NULL }\n ;\n int p , q , r = 0 , amask = 0 ;\n if ( ( st = checkattributevalue ( ld , ( xargs . dn ) ? xargs . dn : principal_dn , \"objectclass\" , attrvalues , & amask ) ) != 0 ) goto cleanup ;\n memset ( strval , 0 , sizeof ( strval ) ) ;\n for ( p = 1 , q = 0 ;\n p <= 2 ;\n p <<= 1 , ++ q ) {\n if ( ( p & amask ) == 0 ) strval [ r ++ ] = attrvalues [ q ] ;\n }\n if ( r != 0 ) {\n if ( ( st = krb5_add_str_mem_ldap_mod ( & mods , \"objectclass\" , LDAP_MOD_ADD , strval ) ) != 0 ) goto cleanup ;\n }\n }\n if ( xargs . dn != NULL ) st = ldap_modify_ext_s ( ld , xargs . dn , mods , NULL , NULL ) ;\n else st = ldap_modify_ext_s ( ld , principal_dn , mods , NULL , NULL ) ;\n if ( st != LDAP_SUCCESS ) {\n snprintf ( errbuf , sizeof ( errbuf ) , _ ( \"User modification failed: %s\" ) , ldap_err2string ( st ) ) ;\n st = translate_ldap_error ( st , OP_MOD ) ;\n k5_setmsg ( context , st , \"%s\" , errbuf ) ;\n goto cleanup ;\n }\n if ( entry -> mask & KADM5_FAIL_AUTH_COUNT_INCREMENT ) entry -> fail_auth_count ++ ;\n }\n cleanup : if ( user ) free ( user ) ;\n if ( filtuser ) free ( filtuser ) ;\n free_xargs ( xargs ) ;\n if ( standalone_principal_dn ) free ( standalone_principal_dn ) ;\n if ( principal_dn ) free ( principal_dn ) ;\n if ( polname != NULL ) free ( polname ) ;\n for ( tre = 0 ;\n tre < ntrees ;\n tre ++ ) free ( subtreelist [ tre ] ) ;\n free ( subtreelist ) ;\n if ( subtree ) free ( subtree ) ;\n if ( bersecretkey ) {\n for ( l = 0 ;\n bersecretkey [ l ] ;\n ++ l ) {\n if ( bersecretkey [ l ] -> bv_val ) free ( bersecretkey [ l ] -> bv_val ) ;\n free ( bersecretkey [ l ] ) ;\n }\n free ( bersecretkey ) ;\n }\n if ( keys ) free ( keys ) ;\n ldap_mods_free ( mods , 1 ) ;\n ldap_osa_free_princ_ent ( & princ_ent ) ;\n ldap_msgfree ( result ) ;\n krb5_ldap_put_handle_to_pool ( ldap_context , ldap_server_handle ) ;\n return ( st ) ;\n }"}
{"idx": 1427, "target": 0, "func": "static inline int put_dwords ( OHCIState * ohci , dma_addr_t addr , uint32_t * buf , int num ) {\n int i ;\n addr += ohci -> localmem_base ;\n for ( i = 0 ;\n i < num ;\n i ++ , buf ++ , addr += sizeof ( * buf ) ) {\n uint32_t tmp = cpu_to_le32 ( * buf ) ;\n if ( dma_memory_write ( ohci -> as , addr , & tmp , sizeof ( tmp ) ) ) {\n return - 1 ;\n }\n }\n return 0 ;\n }"}
{"idx": 1428, "target": 0, "func": "static char * wv_csp11_opaque_literal_tag ( tvbuff_t * tvb , guint32 offset , const char * token , guint8 codepage _U_ , guint32 * length ) {\n guint32 data_len = tvb_get_guintvar ( tvb , offset , length ) ;\n char * str = NULL ;\n if ( token && ( ( strcmp ( token , \"Code\" ) == 0 ) || ( strcmp ( token , \"ContentSize\" ) == 0 ) || ( strcmp ( token , \"MessageCount\" ) == 0 ) || ( strcmp ( token , \"Validity\" ) == 0 ) || ( strcmp ( token , \"KeepAliveTime\" ) == 0 ) || ( strcmp ( token , \"TimeToLive\" ) == 0 ) || ( strcmp ( token , \"AcceptedContentLength\" ) == 0 ) || ( strcmp ( token , \"MultiTrans\" ) == 0 ) || ( strcmp ( token , \"ParserSize\" ) == 0 ) || ( strcmp ( token , \"ServerPollMin\" ) == 0 ) || ( strcmp ( token , \"TCPPort\" ) == 0 ) || ( strcmp ( token , \"UDPPort\" ) == 0 ) ) ) {\n str = wv_integer_from_opaque ( tvb , offset + * length , data_len ) ;\n }\n else if ( token && ( ( strcmp ( token , \"DateTime\" ) == 0 ) || ( strcmp ( token , \"DeliveryTime\" ) == 0 ) ) ) {\n str = wv_datetime_from_opaque ( tvb , offset + * length , data_len ) ;\n }\n if ( str == NULL ) {\n str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"(%d bytes of unparsed opaque data)\" , data_len ) ;\n }\n * length += data_len ;\n return str ;\n }"}
{"idx": 1429, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , DocumentWriteReload ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : FIRST_CONTENTFUL_PAINT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/page_load_metrics/document_write_script_block.html\" ) ) ;\n waiter -> Wait ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramDocWriteBlockParseStartToFirstContentfulPaint , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramDocWriteBlockCount , 1 ) ;\n waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : DOCUMENT_WRITE_BLOCK_RELOAD ) ;\n waiter -> AddPageExpectation ( TimingField : : FIRST_CONTENTFUL_PAINT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/page_load_metrics/document_write_script_block.html\" ) ) ;\n waiter -> Wait ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramDocWriteBlockReloadCount , 1 ) ;\n waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : DOCUMENT_WRITE_BLOCK_RELOAD ) ;\n waiter -> AddPageExpectation ( TimingField : : FIRST_CONTENTFUL_PAINT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/page_load_metrics/document_write_script_block.html\" ) ) ;\n waiter -> Wait ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramDocWriteBlockParseStartToFirstContentfulPaint , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramDocWriteBlockReloadCount , 2 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramDocWriteBlockCount , 1 ) ;\n }"}
{"idx": 1430, "target": 0, "func": "static void ber_decode_as_dt ( const gchar * table_name _U_ , ftenum_t selector_type _U_ , gpointer key , gpointer value , gpointer user_data ) {\n da_data * decode_as_data ;\n decode_as_data = ( da_data * ) user_data ;\n decode_as_data -> func ( key , value , decode_as_data -> user_data ) ;\n }"}
{"idx": 1431, "target": 0, "func": "static inline void realpath_cache_add ( const char * path , int path_len , const char * realpath , int realpath_len , int is_dir , time_t t TSRMLS_DC ) {\n long size = sizeof ( realpath_cache_bucket ) + path_len + 1 ;\n int same = 1 ;\n if ( realpath_len != path_len || memcmp ( path , realpath , path_len ) != 0 ) {\n size += realpath_len + 1 ;\n same = 0 ;\n }\n if ( CWDG ( realpath_cache_size ) + size <= CWDG ( realpath_cache_size_limit ) ) {\n realpath_cache_bucket * bucket = malloc ( size ) ;\n unsigned long n ;\n if ( bucket == NULL ) {\n return ;\n }\n # ifdef PHP_WIN32 bucket -> key = realpath_cache_key ( path , path_len TSRMLS_CC ) ;\n # else bucket -> key = realpath_cache_key ( path , path_len ) ;\n # endif bucket -> path = ( char * ) bucket + sizeof ( realpath_cache_bucket ) ;\n memcpy ( bucket -> path , path , path_len + 1 ) ;\n bucket -> path_len = path_len ;\n if ( same ) {\n bucket -> realpath = bucket -> path ;\n }\n else {\n bucket -> realpath = bucket -> path + ( path_len + 1 ) ;\n memcpy ( bucket -> realpath , realpath , realpath_len + 1 ) ;\n }\n bucket -> realpath_len = realpath_len ;\n bucket -> is_dir = is_dir ;\n # ifdef PHP_WIN32 bucket -> is_rvalid = 0 ;\n bucket -> is_readable = 0 ;\n bucket -> is_wvalid = 0 ;\n bucket -> is_writable = 0 ;\n # endif bucket -> expires = t + CWDG ( realpath_cache_ttl ) ;\n n = bucket -> key % ( sizeof ( CWDG ( realpath_cache ) ) / sizeof ( CWDG ( realpath_cache ) [ 0 ] ) ) ;\n bucket -> next = CWDG ( realpath_cache ) [ n ] ;\n CWDG ( realpath_cache ) [ n ] = bucket ;\n CWDG ( realpath_cache_size ) += size ;\n }\n }"}
{"idx": 1432, "target": 0, "func": "static int dissect_CPMSetBindings ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * parent_tree , gboolean in , void * private_data ) {\n gint offset = 16 ;\n struct CPMSetBindingsIn request ;\n col_append_str ( pinfo -> cinfo , COL_INFO , \"SetBindings\" ) ;\n if ( in ) {\n struct mswsp_ct * ct = NULL ;\n struct message_data * data = NULL ;\n proto_item * ti ;\n proto_tree * tree , * pad_tree ;\n guint32 size , num , n ;\n gint64 column_size ;\n ti = proto_tree_add_item ( parent_tree , hf_mswsp_msg , tvb , offset , - 1 , ENC_NA ) ;\n tree = proto_item_add_subtree ( ti , ett_mswsp_msg ) ;\n proto_item_set_text ( ti , \"SetBindingsIn\" ) ;\n pad_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_mswsp_pad , & ti , \"Padding\" ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmsetbinding_hcursor , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n request . hcursor = tvb_get_letohl ( tvb , offset ) ;\n offset += 4 ;\n request . brow = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmsetbinding_cbrow , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n size = tvb_get_letohl ( tvb , offset ) ;\n request . bbindingdesc = size ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmsetbinding_desc , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n request . dummy = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmsetbinding_dummy , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n num = tvb_get_letohl ( tvb , offset ) ;\n request . ccolumns = num ;\n ti = proto_tree_add_item ( tree , hf_mswsp_msg_cpmsetbinding_ccolumns , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmsetbinding_acolumns , tvb , offset , size - 4 , ENC_NA ) ;\n column_size = num * MIN_CTABLECOL_SIZE ;\n if ( column_size > tvb_reported_length_remaining ( tvb , offset ) ) {\n expert_add_info ( pinfo , ti , & ei_mswsp_msg_cpmsetbinding_ccolumns ) ;\n return tvb_reported_length ( tvb ) ;\n }\n ct = get_create_converstation_data ( pinfo ) ;\n request . acolumns = ( struct CTableColumn * ) wmem_alloc ( wmem_file_scope ( ) , sizeof ( struct CTableColumn ) * num ) ;\n for ( n = 0 ;\n n < num ;\n n ++ ) {\n offset = parse_padding ( tvb , offset , 4 , pad_tree , \"padding_aColumns[%u]\" , n ) ;\n offset = parse_CTableColumn ( tvb , pinfo , offset , tree , pad_tree , & request . acolumns [ n ] , \"aColumns[%u]\" , n ) ;\n }\n data = find_or_create_message_data ( ct , pinfo , 0xD0 , in , private_data ) ;\n if ( data ) {\n data -> content . bindingsin = request ;\n }\n }\n else {\n }\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 1433, "target": 0, "func": "void vp9_fht4x4_c ( const int16_t * input , tran_low_t * output , int stride , int tx_type ) {\n if ( tx_type == DCT_DCT ) {\n vp9_fdct4x4_c ( input , output , stride ) ;\n }\n else {\n tran_low_t out [ 4 * 4 ] ;\n tran_low_t * outptr = & out [ 0 ] ;\n int i , j ;\n tran_low_t temp_in [ 4 ] , temp_out [ 4 ] ;\n const transform_2d ht = FHT_4 [ tx_type ] ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) {\n for ( j = 0 ;\n j < 4 ;\n ++ j ) temp_in [ j ] = input [ j * stride + i ] * 16 ;\n if ( i == 0 && temp_in [ 0 ] ) temp_in [ 0 ] += 1 ;\n ht . cols ( temp_in , temp_out ) ;\n for ( j = 0 ;\n j < 4 ;\n ++ j ) outptr [ j * 4 + i ] = temp_out [ j ] ;\n }\n for ( i = 0 ;\n i < 4 ;\n ++ i ) {\n for ( j = 0 ;\n j < 4 ;\n ++ j ) temp_in [ j ] = out [ j + i * 4 ] ;\n ht . rows ( temp_in , temp_out ) ;\n for ( j = 0 ;\n j < 4 ;\n ++ j ) output [ j + i * 4 ] = ( temp_out [ j ] + 1 ) >> 2 ;\n }\n }\n }"}
{"idx": 1434, "target": 0, "func": "static int replace ( DYNAMIC_STRING * ds_str , const char * search_str , ulong search_len , const char * replace_str , ulong replace_len ) {\n DYNAMIC_STRING ds_tmp ;\n const char * start = strstr ( ds_str -> str , search_str ) ;\n if ( ! start ) return 1 ;\n init_dynamic_string ( & ds_tmp , \"\" , ds_str -> length + replace_len , 256 ) ;\n dynstr_append_mem ( & ds_tmp , ds_str -> str , start - ds_str -> str ) ;\n dynstr_append_mem ( & ds_tmp , replace_str , replace_len ) ;\n dynstr_append ( & ds_tmp , start + search_len ) ;\n dynstr_set ( ds_str , ds_tmp . str ) ;\n dynstr_free ( & ds_tmp ) ;\n return 0 ;\n }"}
{"idx": 1435, "target": 0, "func": "static void subQuickSort ( char * array , int32_t start , int32_t limit , int32_t itemSize , UComparator * cmp , const void * context , void * px , void * pw ) {\n int32_t left , right ;\n do {\n if ( ( start + MIN_QSORT ) >= limit ) {\n doInsertionSort ( array + start * itemSize , limit - start , itemSize , cmp , context , px ) ;\n break ;\n }\n left = start ;\n right = limit ;\n uprv_memcpy ( px , array + ( size_t ) ( ( start + limit ) / 2 ) * itemSize , itemSize ) ;\n do {\n while ( cmp ( context , array + left * itemSize , px ) < 0 ) {\n ++ left ;\n }\n while ( cmp ( context , px , array + ( right - 1 ) * itemSize ) < 0 ) {\n -- right ;\n }\n if ( left < right ) {\n -- right ;\n if ( left < right ) {\n uprv_memcpy ( pw , array + ( size_t ) left * itemSize , itemSize ) ;\n uprv_memcpy ( array + ( size_t ) left * itemSize , array + ( size_t ) right * itemSize , itemSize ) ;\n uprv_memcpy ( array + ( size_t ) right * itemSize , pw , itemSize ) ;\n }\n ++ left ;\n }\n }\n while ( left < right ) ;\n if ( ( right - start ) < ( limit - left ) ) {\n if ( start < ( right - 1 ) ) {\n subQuickSort ( array , start , right , itemSize , cmp , context , px , pw ) ;\n }\n start = left ;\n }\n else {\n if ( left < ( limit - 1 ) ) {\n subQuickSort ( array , left , limit , itemSize , cmp , context , px , pw ) ;\n }\n limit = right ;\n }\n }\n while ( start < ( limit - 1 ) ) ;\n }"}
{"idx": 1436, "target": 0, "func": "void evsignal_dealloc ( struct event_base * base ) {\n int i = 0 ;\n if ( base -> sig . ev_signal_added ) {\n event_del ( & base -> sig . ev_signal ) ;\n base -> sig . ev_signal_added = 0 ;\n }\n for ( i = 0 ;\n i < NSIG ;\n ++ i ) {\n if ( i < base -> sig . sh_old_max && base -> sig . sh_old [ i ] != NULL ) _evsignal_restore_handler ( base , i ) ;\n }\n if ( base -> sig . ev_signal_pair [ 0 ] != - 1 ) {\n EVUTIL_CLOSESOCKET ( base -> sig . ev_signal_pair [ 0 ] ) ;\n base -> sig . ev_signal_pair [ 0 ] = - 1 ;\n }\n if ( base -> sig . ev_signal_pair [ 1 ] != - 1 ) {\n EVUTIL_CLOSESOCKET ( base -> sig . ev_signal_pair [ 1 ] ) ;\n base -> sig . ev_signal_pair [ 1 ] = - 1 ;\n }\n base -> sig . sh_old_max = 0 ;\n if ( base -> sig . sh_old ) {\n free ( base -> sig . sh_old ) ;\n base -> sig . sh_old = NULL ;\n }\n }"}
{"idx": 1437, "target": 0, "func": "static void update_offset_hash_table_from_kb ( OffsetHashTable tbl , KBNODE node , off_t off ) {\n for ( ;\n node ;\n node = node -> next ) {\n if ( node -> pkt -> pkttype == PKT_PUBLIC_KEY || node -> pkt -> pkttype == PKT_PUBLIC_SUBKEY ) {\n u32 aki [ 2 ] ;\n keyid_from_pk ( node -> pkt -> pkt . public_key , aki ) ;\n update_offset_hash_table ( tbl , aki , off ) ;\n }\n }\n }"}
{"idx": 1438, "target": 0, "func": "static int loosened_object_can_be_discarded ( const unsigned char * sha1 , unsigned long mtime ) {\n if ( ! unpack_unreachable_expiration ) return 0 ;\n if ( mtime > unpack_unreachable_expiration ) return 0 ;\n if ( sha1_array_lookup ( & recent_objects , sha1 ) >= 0 ) return 0 ;\n return 1 ;\n }"}
{"idx": 1439, "target": 0, "func": "void xmlListSort ( xmlListPtr l ) {\n xmlListPtr lTemp ;\n if ( l == NULL ) return ;\n if ( xmlListEmpty ( l ) ) return ;\n if ( NULL == ( lTemp = xmlListDup ( l ) ) ) return ;\n xmlListClear ( l ) ;\n xmlListMerge ( l , lTemp ) ;\n xmlListDelete ( lTemp ) ;\n return ;\n }"}
{"idx": 1440, "target": 0, "func": "void CommuteRowCompareExpr ( RowCompareExpr * clause ) {\n List * newops ;\n List * temp ;\n ListCell * l ;\n if ( ! IsA ( clause , RowCompareExpr ) ) elog ( ERROR , \"expected a RowCompareExpr\" ) ;\n newops = NIL ;\n foreach ( l , clause -> opnos ) {\n Oid opoid = lfirst_oid ( l ) ;\n opoid = get_commutator ( opoid ) ;\n if ( ! OidIsValid ( opoid ) ) elog ( ERROR , \"could not find commutator for operator %u\" , lfirst_oid ( l ) ) ;\n newops = lappend_oid ( newops , opoid ) ;\n }\n switch ( clause -> rctype ) {\n case ROWCOMPARE_LT : clause -> rctype = ROWCOMPARE_GT ;\n break ;\n case ROWCOMPARE_LE : clause -> rctype = ROWCOMPARE_GE ;\n break ;\n case ROWCOMPARE_GE : clause -> rctype = ROWCOMPARE_LE ;\n break ;\n case ROWCOMPARE_GT : clause -> rctype = ROWCOMPARE_LT ;\n break ;\n default : elog ( ERROR , \"unexpected RowCompare type: %d\" , ( int ) clause -> rctype ) ;\n break ;\n }\n clause -> opnos = newops ;\n temp = clause -> largs ;\n clause -> largs = clause -> rargs ;\n clause -> rargs = temp ;\n }"}
{"idx": 1441, "target": 0, "func": "static int vapic_post_load ( void * opaque , int version_id ) {\n VAPICROMState * s = opaque ;\n uint8_t * zero ;\n if ( s -> state == VAPIC_INACTIVE && s -> rom_state_paddr != 0 ) {\n s -> state = VAPIC_STANDBY ;\n }\n if ( s -> state != VAPIC_INACTIVE ) {\n if ( vapic_prepare ( s ) < 0 ) {\n return - 1 ;\n }\n }\n if ( s -> state == VAPIC_ACTIVE ) {\n if ( smp_cpus == 1 ) {\n run_on_cpu ( ENV_GET_CPU ( first_cpu ) , do_vapic_enable , s ) ;\n }\n else {\n zero = g_malloc0 ( s -> rom_state . vapic_size ) ;\n cpu_physical_memory_rw ( s -> vapic_paddr , zero , s -> rom_state . vapic_size , 1 ) ;\n g_free ( zero ) ;\n }\n }\n return 0 ;\n }"}
{"idx": 1442, "target": 0, "func": "static CodeBook unpack_codebook ( GetBitContext * gb , unsigned depth , unsigned size ) {\n unsigned i , j ;\n CodeBook cb = {\n 0 }\n ;\n if ( ! can_safely_read ( gb , size * 34 ) ) return cb ;\n if ( size >= INT_MAX / sizeof ( MacroBlock ) ) return cb ;\n cb . blocks = av_malloc ( size ? size * sizeof ( MacroBlock ) : 1 ) ;\n if ( ! cb . blocks ) return cb ;\n cb . depth = depth ;\n cb . size = size ;\n for ( i = 0 ;\n i < size ;\n i ++ ) {\n unsigned mask_bits = get_bits ( gb , 4 ) ;\n unsigned color0 = get_bits ( gb , 15 ) ;\n unsigned color1 = get_bits ( gb , 15 ) ;\n for ( j = 0 ;\n j < 4 ;\n j ++ ) {\n if ( mask_bits & ( 1 << j ) ) cb . blocks [ i ] . pixels [ j ] = color1 ;\n else cb . blocks [ i ] . pixels [ j ] = color0 ;\n }\n }\n return cb ;\n }"}
{"idx": 1443, "target": 0, "func": "static char * custom_time_to_string ( char * format , va_list va ) {\n int secs ;\n secs = va_arg ( va , int ) ;\n return format_time ( secs ) ;\n }"}
{"idx": 1444, "target": 1, "func": "SPL_METHOD ( SplFileObject , ftruncate ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n long size ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"l\" , & size ) == FAILURE ) {\n return ;\n }\n if ( ! php_stream_truncate_supported ( intern -> u . file . stream ) ) {\n zend_throw_exception_ex ( spl_ce_LogicException , 0 TSRMLS_CC , \"Can't truncate file %s\" , intern -> file_name ) ;\n RETURN_FALSE ;\n }\n RETURN_BOOL ( 0 == php_stream_truncate_set_size ( intern -> u . file . stream , size ) ) ;\n }"}
{"idx": 1445, "target": 0, "func": "static gboolean call_ready_callbacks ( NautilusDirectory * directory ) {\n gboolean found_any ;\n GList * node , * next ;\n ReadyCallback * callback ;\n found_any = FALSE ;\n for ( node = directory -> details -> call_when_ready_list ;\n node != NULL ;\n node = next ) {\n next = node -> next ;\n callback = node -> data ;\n if ( callback -> active && request_is_satisfied ( directory , callback -> file , callback -> request ) ) {\n callback -> active = FALSE ;\n found_any = TRUE ;\n }\n }\n if ( found_any ) {\n schedule_call_ready_callbacks ( directory ) ;\n }\n return found_any ;\n }"}
{"idx": 1446, "target": 0, "func": "static void qcms_transform_module_XYZ_to_LAB ( struct qcms_modular_transform * transform , float * src , float * dest , size_t length ) {\n size_t i ;\n float WhitePointX = 0.9642f ;\n float WhitePointY = 1.0f ;\n float WhitePointZ = 0.8249f ;\n for ( i = 0 ;\n i < length ;\n i ++ ) {\n float device_x = * src ++ * ( 1.0 + 32767.0 / 32768.0 ) / WhitePointX ;\n float device_y = * src ++ * ( 1.0 + 32767.0 / 32768.0 ) / WhitePointY ;\n float device_z = * src ++ * ( 1.0 + 32767.0 / 32768.0 ) / WhitePointZ ;\n float fx = f ( device_x ) ;\n float fy = f ( device_y ) ;\n float fz = f ( device_z ) ;\n float L = 116.0f * fy - 16.0f ;\n float a = 500.0f * ( fx - fy ) ;\n float b = 200.0f * ( fy - fz ) ;\n * dest ++ = L / 100.0f ;\n * dest ++ = ( a + 128.0f ) / 255.0f ;\n * dest ++ = ( b + 128.0f ) / 255.0f ;\n }\n }"}
{"idx": 1447, "target": 0, "func": "TEST_F ( TemplateURLTest , SearchboxVersionIncludedForAnswers ) {\n TemplateURLData data ;\n search_terms_data_ . set_google_base_url ( \"http://bar/\" ) ;\n data . SetURL ( \"http://bar/search?q={\nsearchTerms}\n&{\ngoogle:searchVersion}\nxssi=t\" ) ;\n TemplateURL url ( data ) ;\n TemplateURLRef : : SearchTermsArgs search_terms_args ( ASCIIToUTF16 ( \"foo\" ) ) ;\n std : : string result = url . url_ref ( ) . ReplaceSearchTerms ( search_terms_args , search_terms_data_ ) ;\n EXPECT_EQ ( \"http://bar/search?q=foo&gs_rn=42&xssi=t\" , result ) ;\n }"}
{"idx": 1448, "target": 0, "func": "static bool DecoderIsFlushing ( decoder_t * p_dec ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n bool b_flushing ;\n vlc_mutex_lock ( & p_owner -> lock ) ;\n b_flushing = p_owner -> b_flushing ;\n vlc_mutex_unlock ( & p_owner -> lock ) ;\n return b_flushing ;\n }"}
{"idx": 1449, "target": 0, "func": "static union _zend_function * dbstmt_method_get ( zval * * object_pp , char * method_name , int method_len , const zend_literal * key TSRMLS_DC ) {\n zend_function * fbc = NULL ;\n char * lc_method_name ;\n zval * object = * object_pp ;\n lc_method_name = emalloc ( method_len + 1 ) ;\n zend_str_tolower_copy ( lc_method_name , method_name , method_len ) ;\n if ( zend_hash_find ( & Z_OBJCE_P ( object ) -> function_table , lc_method_name , method_len + 1 , ( void * * ) & fbc ) == FAILURE ) {\n pdo_stmt_t * stmt = ( pdo_stmt_t * ) zend_object_store_get_object ( object TSRMLS_CC ) ;\n if ( ! stmt -> dbh ) {\n goto out ;\n }\n if ( ! stmt -> dbh -> cls_methods [ PDO_DBH_DRIVER_METHOD_KIND_STMT ] ) {\n if ( ! pdo_hash_methods ( stmt -> dbh , PDO_DBH_DRIVER_METHOD_KIND_STMT TSRMLS_CC ) || ! stmt -> dbh -> cls_methods [ PDO_DBH_DRIVER_METHOD_KIND_STMT ] ) {\n goto out ;\n }\n }\n if ( zend_hash_find ( stmt -> dbh -> cls_methods [ PDO_DBH_DRIVER_METHOD_KIND_STMT ] , lc_method_name , method_len + 1 , ( void * * ) & fbc ) == FAILURE ) {\n goto out ;\n }\n }\n out : if ( ! fbc ) {\n fbc = std_object_handlers . get_method ( object_pp , method_name , method_len , key TSRMLS_CC ) ;\n }\n efree ( lc_method_name ) ;\n return fbc ;\n }"}
{"idx": 1450, "target": 0, "func": "static int show_net_compression ( THD * thd , SHOW_VAR * var , char * buff ) {\n var -> type = SHOW_MY_BOOL ;\n var -> value = ( char * ) & thd -> net . compress ;\n return 0 ;\n }"}
{"idx": 1451, "target": 0, "func": "static void gsm_a_dtap_gmm_stat_init ( new_stat_tap_ui * new_stat , new_stat_tap_gui_init_cb gui_callback , void * gui_data ) {\n gsm_a_stat_init ( new_stat , gui_callback , gui_data , \"GSM A-I/F DTAP GPRS Mobility Management Statistics\" , gsm_a_dtap_msg_gmm_strings ) ;\n }"}
{"idx": 1452, "target": 0, "func": "void vp9_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint8_t * dst , ptrdiff_t stride , const uint8_t * above , const uint8_t * left ) {\n type ## _predictor ( dst , stride , size , above , left ) ;\n }\n # if CONFIG_VP9_HIGHBITDEPTH # define intra_pred_high_sized ( type , size ) void vp9_high_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint16_t * dst , ptrdiff_t stride , const uint16_t * above , const uint16_t * left , int bd ) {\n high_ ## type ## _predictor ( dst , stride , size , above , left , bd ) ;\n }\n # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) intra_pred_high_sized ( type , 4 ) intra_pred_high_sized ( type , 8 ) intra_pred_high_sized ( type , 16 ) intra_pred_high_sized ( type , 32 ) # else # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) # endif # if CONFIG_VP9_HIGHBITDEPTH static INLINE void high_d207_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) above ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) {\n dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n }\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) {\n dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n }\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n }\n static INLINE void high_d63_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) {\n dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n }\n dst += stride ;\n }\n }\n static INLINE void high_d45_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) {\n dst [ c ] = r + c + 2 < bs * 2 ? ROUND_POWER_OF_TWO ( above [ r + c ] + above [ r + c + 1 ] * 2 + above [ r + c + 2 ] , 2 ) : above [ bs * 2 - 1 ] ;\n }\n dst += stride ;\n }\n }\n static INLINE void high_d117_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] , 1 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 3 ;\n r < bs ;\n ++ r ) dst [ ( r - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ r - 3 ] + left [ r - 2 ] * 2 + left [ r - 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - 2 * stride + c - 1 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_d135_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - stride + c - 1 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_d153_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] , 1 ) ;\n for ( r = 1 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 1 ] + left [ r ] , 1 ) ;\n dst ++ ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] * 2 + above [ c + 1 ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = dst [ - stride + c - 2 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_v_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memcpy ( dst , above , bs * sizeof ( uint16_t ) ) ;\n dst += stride ;\n }\n }\n static INLINE void high_h_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) above ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , left [ r ] , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_tm_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n int ytop_left = above [ - 1 ] ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = clip_pixel_high ( left [ r ] + above [ c ] - ytop_left , bd ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_128_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) above ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , 128 << ( bd - 8 ) , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_left_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) above ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += left [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_top_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) left ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += above [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n const int count = 2 * bs ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) {\n sum += above [ i ] ;\n sum += left [ i ] ;\n }\n expected_dc = ( sum + ( count >> 1 ) ) / count ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n # endif static INLINE void d207_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n intra_pred_allsizes ( d207 ) static INLINE void d63_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d63 ) static INLINE void d45_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r + c + 2 < bs * 2 ? ROUND_POWER_OF_TWO ( above [ r + c ] + above [ r + c + 1 ] * 2 + above [ r + c + 2 ] , 2 ) : above [ bs * 2 - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d45 ) static INLINE void d117_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] , 1 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 3 ;\n r < bs ;\n ++ r ) dst [ ( r - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ r - 3 ] + left [ r - 2 ] * 2 + left [ r - 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - 2 * stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d117 ) static INLINE void d135_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d135 ) static INLINE void d153_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] , 1 ) ;\n for ( r = 1 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 1 ] + left [ r ] , 1 ) ;\n dst ++ ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] * 2 + above [ c + 1 ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = dst [ - stride + c - 2 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d153 ) static INLINE void v_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memcpy ( dst , above , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( v ) static INLINE void h_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset ( dst , left [ r ] , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( h ) static INLINE void tm_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n int ytop_left = above [ - 1 ] ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = clip_pixel ( left [ r ] + above [ c ] - ytop_left ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( tm ) static INLINE void dc_128_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r ;\n ( void ) above ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset ( dst , 128 , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( dc_128 ) static INLINE void dc_left_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) above ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += left [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( dc_left )"}
{"idx": 1453, "target": 0, "func": "static void * Type_Measurement_Read ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number * nItems , cmsUInt32Number SizeOfTag ) {\n cmsICCMeasurementConditions mc ;\n memset ( & mc , 0 , sizeof ( mc ) ) ;\n if ( ! _cmsReadUInt32Number ( io , & mc . Observer ) ) return NULL ;\n if ( ! _cmsReadXYZNumber ( io , & mc . Backing ) ) return NULL ;\n if ( ! _cmsReadUInt32Number ( io , & mc . Geometry ) ) return NULL ;\n if ( ! _cmsRead15Fixed16Number ( io , & mc . Flare ) ) return NULL ;\n if ( ! _cmsReadUInt32Number ( io , & mc . IlluminantType ) ) return NULL ;\n * nItems = 1 ;\n return _cmsDupMem ( self -> ContextID , & mc , sizeof ( cmsICCMeasurementConditions ) ) ;\n cmsUNUSED_PARAMETER ( SizeOfTag ) ;\n }"}
{"idx": 1454, "target": 1, "func": "static void _LMBCSOpen ## n ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err ) \\ {\n _LMBCSOpenWorker ( _this , pArgs , err , n ) ;\n }\n static void _LMBCSOpenWorker ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err , ulmbcs_byte_t OptGroup ) {\n UConverterDataLMBCS * extraInfo = _this -> extraInfo = ( UConverterDataLMBCS * ) uprv_malloc ( sizeof ( UConverterDataLMBCS ) ) ;\n if ( extraInfo != NULL ) {\n UConverterNamePieces stackPieces ;\n UConverterLoadArgs stackArgs = {\n ( int32_t ) sizeof ( UConverterLoadArgs ) }\n ;\n ulmbcs_byte_t i ;\n uprv_memset ( extraInfo , 0 , sizeof ( UConverterDataLMBCS ) ) ;\n stackArgs . onlyTestIsLoadable = pArgs -> onlyTestIsLoadable ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST && U_SUCCESS ( * err ) ;\n i ++ ) {\n if ( OptGroupByteToCPName [ i ] != NULL ) {\n extraInfo -> OptGrpConverter [ i ] = ucnv_loadSharedData ( OptGroupByteToCPName [ i ] , & stackPieces , & stackArgs , err ) ;\n }\n }\n if ( U_FAILURE ( * err ) || pArgs -> onlyTestIsLoadable ) {\n _LMBCSClose ( _this ) ;\n return ;\n }\n extraInfo -> OptGroup = OptGroup ;\n extraInfo -> localeConverterIndex = FindLMBCSLocale ( pArgs -> locale ) ;\n }\n else {\n * err = U_MEMORY_ALLOCATION_ERROR ;\n }\n }\n static void _LMBCSClose ( UConverter * _this ) {\n if ( _this -> extraInfo != NULL ) {\n ulmbcs_byte_t Ix ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) _this -> extraInfo ;\n for ( Ix = 0 ;\n Ix <= ULMBCS_GRP_LAST ;\n Ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ Ix ] != NULL ) ucnv_unloadSharedDataIfReady ( extraInfo -> OptGrpConverter [ Ix ] ) ;\n }\n if ( ! _this -> isExtraLocal ) {\n uprv_free ( _this -> extraInfo ) ;\n _this -> extraInfo = NULL ;\n }\n }\n }\n typedef struct LMBCSClone {\n UConverter cnv ;\n UConverterDataLMBCS lmbcs ;\n }\n LMBCSClone ;\n static UConverter * _LMBCSSafeClone ( const UConverter * cnv , void * stackBuffer , int32_t * pBufferSize , UErrorCode * status ) {\n LMBCSClone * newLMBCS ;\n UConverterDataLMBCS * extraInfo ;\n int32_t i ;\n if ( * pBufferSize <= 0 ) {\n * pBufferSize = ( int32_t ) sizeof ( LMBCSClone ) ;\n return NULL ;\n }\n extraInfo = ( UConverterDataLMBCS * ) cnv -> extraInfo ;\n newLMBCS = ( LMBCSClone * ) stackBuffer ;\n uprv_memcpy ( & newLMBCS -> lmbcs , extraInfo , sizeof ( UConverterDataLMBCS ) ) ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST ;\n ++ i ) {\n if ( extraInfo -> OptGrpConverter [ i ] != NULL ) {\n ucnv_incrementRefCount ( extraInfo -> OptGrpConverter [ i ] ) ;\n }\n }\n newLMBCS -> cnv . extraInfo = & newLMBCS -> lmbcs ;\n newLMBCS -> cnv . isExtraLocal = TRUE ;\n return & newLMBCS -> cnv ;\n }\n static size_t LMBCSConversionWorker ( UConverterDataLMBCS * extraInfo , ulmbcs_byte_t group , ulmbcs_byte_t * pStartLMBCS , UChar * pUniChar , ulmbcs_byte_t * lastConverterIndex , UBool * groups_tried ) {\n ulmbcs_byte_t * pLMBCS = pStartLMBCS ;\n UConverterSharedData * xcnv = extraInfo -> OptGrpConverter [ group ] ;\n int bytesConverted ;\n uint32_t value ;\n ulmbcs_byte_t firstByte ;\n U_ASSERT ( xcnv ) ;\n U_ASSERT ( group < ULMBCS_GRP_UNICODE ) ;\n bytesConverted = ucnv_MBCSFromUChar32 ( xcnv , * pUniChar , & value , FALSE ) ;\n if ( bytesConverted > 0 ) {\n firstByte = ( ulmbcs_byte_t ) ( value >> ( ( bytesConverted - 1 ) * 8 ) ) ;\n }\n else {\n groups_tried [ group ] = TRUE ;\n return 0 ;\n }\n * lastConverterIndex = group ;\n U_ASSERT ( ( firstByte <= ULMBCS_C0END ) || ( firstByte >= ULMBCS_C1START ) || ( group == ULMBCS_GRP_EXCEPT ) ) ;\n if ( group != ULMBCS_GRP_EXCEPT && extraInfo -> OptGroup != group ) {\n * pLMBCS ++ = group ;\n if ( bytesConverted == 1 && group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n * pLMBCS ++ = group ;\n }\n }\n if ( bytesConverted == 1 && firstByte < 0x20 ) return 0 ;\n switch ( bytesConverted ) {\n case 4 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 24 ) ;\n U_FALLTHROUGH ;\n case 3 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 16 ) ;\n U_FALLTHROUGH ;\n case 2 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 8 ) ;\n U_FALLTHROUGH ;\n case 1 : * pLMBCS ++ = ( ulmbcs_byte_t ) value ;\n U_FALLTHROUGH ;\n default : break ;\n }\n return ( pLMBCS - pStartLMBCS ) ;\n }\n static size_t LMBCSConvertUni ( ulmbcs_byte_t * pLMBCS , UChar uniChar ) {\n uint8_t LowCh = ( uint8_t ) ( uniChar & 0x00FF ) ;\n uint8_t HighCh = ( uint8_t ) ( uniChar >> 8 ) ;\n * pLMBCS ++ = ULMBCS_GRP_UNICODE ;\n if ( LowCh == 0 ) {\n * pLMBCS ++ = ULMBCS_UNICOMPATZERO ;\n * pLMBCS ++ = HighCh ;\n }\n else {\n * pLMBCS ++ = HighCh ;\n * pLMBCS ++ = LowCh ;\n }\n return ULMBCS_UNICODE_SIZE ;\n }\n static void _LMBCSFromUnicode ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n ulmbcs_byte_t lastConverterIndex = 0 ;\n UChar uniChar ;\n ulmbcs_byte_t LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n ulmbcs_byte_t * pLMBCS ;\n int32_t bytes_written ;\n UBool groups_tried [ ULMBCS_GRP_LAST + 1 ] ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n int sourceIndex = 0 ;\n ulmbcs_byte_t OldConverterIndex = 0 ;\n while ( args -> source < args -> sourceLimit && ! U_FAILURE ( * err ) ) {\n OldConverterIndex = extraInfo -> localeConverterIndex ;\n if ( args -> target >= args -> targetLimit ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n uniChar = * ( args -> source ) ;\n bytes_written = 0 ;\n pLMBCS = LMBCS ;\n if ( ( uniChar >= 0x80 ) && ( uniChar <= 0xff ) && ( uniChar != 0xB1 ) && ( uniChar != 0xD7 ) && ( uniChar != 0xF7 ) && ( uniChar != 0xB0 ) && ( uniChar != 0xB4 ) && ( uniChar != 0xB6 ) && ( uniChar != 0xA7 ) && ( uniChar != 0xA8 ) ) {\n extraInfo -> localeConverterIndex = ULMBCS_GRP_L1 ;\n }\n if ( ( ( uniChar > ULMBCS_C0END ) && ( uniChar < ULMBCS_C1START ) ) || uniChar == 0 || uniChar == ULMBCS_HT || uniChar == ULMBCS_CR || uniChar == ULMBCS_LF || uniChar == ULMBCS_123SYSTEMRANGE ) {\n * pLMBCS ++ = ( ulmbcs_byte_t ) uniChar ;\n bytes_written = 1 ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t group = FindLMBCSUniRange ( uniChar ) ;\n if ( group == ULMBCS_GRP_UNICODE ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group == ULMBCS_GRP_CTRL ) {\n if ( uniChar <= ULMBCS_C0END ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( ULMBCS_CTRLOFFSET + uniChar ) ;\n }\n else if ( uniChar >= ULMBCS_C1START && uniChar <= ULMBCS_C1START + ULMBCS_CTRLOFFSET ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( uniChar & 0x00FF ) ;\n }\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group < ULMBCS_GRP_UNICODE ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , group , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n uprv_memset ( groups_tried , 0 , sizeof ( groups_tried ) ) ;\n if ( ( extraInfo -> OptGroup != 1 ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> OptGroup ) ) ) {\n if ( extraInfo -> localeConverterIndex < ULMBCS_DOUBLEOPTGROUP_START ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_L1 , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n else {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && ( extraInfo -> localeConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> localeConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written && ( lastConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , lastConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , lastConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t grp_start ;\n ulmbcs_byte_t grp_end ;\n ulmbcs_byte_t grp_ix ;\n grp_start = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_DOUBLEOPTGROUP_START : ULMBCS_GRP_L1 ) ;\n grp_end = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_GRP_LAST : ULMBCS_GRP_TH ) ;\n if ( group == ULMBCS_AMBIGUOUS_ALL ) {\n grp_start = ULMBCS_GRP_L1 ;\n grp_end = ULMBCS_GRP_LAST ;\n }\n for ( grp_ix = grp_start ;\n grp_ix <= grp_end && ! bytes_written ;\n grp_ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ grp_ix ] && ! groups_tried [ grp_ix ] ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , grp_ix , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && grp_start == ULMBCS_GRP_L1 ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n }\n }\n args -> source ++ ;\n pLMBCS = LMBCS ;\n while ( args -> target < args -> targetLimit && bytes_written -- ) {\n * ( args -> target ) ++ = * pLMBCS ++ ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = sourceIndex ;\n }\n }\n sourceIndex ++ ;\n if ( bytes_written > 0 ) {\n uint8_t * pErrorBuffer = args -> converter -> charErrorBuffer ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n args -> converter -> charErrorBufferLength = ( int8_t ) bytes_written ;\n while ( bytes_written -- ) {\n * pErrorBuffer ++ = * pLMBCS ++ ;\n }\n }\n extraInfo -> localeConverterIndex = OldConverterIndex ;\n }\n }\n static UChar GetUniFromLMBCSUni ( char const * * ppLMBCSin ) {\n uint8_t HighCh = * ( * ppLMBCSin ) ++ ;\n uint8_t LowCh = * ( * ppLMBCSin ) ++ ;\n if ( HighCh == ULMBCS_UNICOMPATZERO ) {\n HighCh = LowCh ;\n LowCh = 0 ;\n }\n return ( UChar ) ( ( HighCh << 8 ) | LowCh ) ;\n }\n # define CHECK_SOURCE_LIMIT ( index ) if ( args -> source + index > args -> sourceLimit ) {\n * err = U_TRUNCATED_CHAR_FOUND ;\n args -> source = args -> sourceLimit ;\n return 0xffff ;\n }\n static UChar32 _LMBCSGetNextUCharWorker ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n UChar32 uniChar = 0 ;\n ulmbcs_byte_t CurByte ;\n if ( args -> source >= args -> sourceLimit ) {\n * err = U_ILLEGAL_ARGUMENT_ERROR ;\n return 0xffff ;\n }\n CurByte = * ( ( ulmbcs_byte_t * ) ( args -> source ++ ) ) ;\n if ( ( ( CurByte > ULMBCS_C0END ) && ( CurByte < ULMBCS_C1START ) ) || ( CurByte == 0 ) || CurByte == ULMBCS_HT || CurByte == ULMBCS_CR || CurByte == ULMBCS_LF || CurByte == ULMBCS_123SYSTEMRANGE ) {\n uniChar = CurByte ;\n }\n else {\n UConverterDataLMBCS * extraInfo ;\n ulmbcs_byte_t group ;\n UConverterSharedData * cnv ;\n if ( CurByte == ULMBCS_GRP_CTRL ) {\n ulmbcs_byte_t C0C1byte ;\n CHECK_SOURCE_LIMIT ( 1 ) ;\n C0C1byte = * ( args -> source ) ++ ;\n uniChar = ( C0C1byte < ULMBCS_C1START ) ? C0C1byte - ULMBCS_CTRLOFFSET : C0C1byte ;\n }\n else if ( CurByte == ULMBCS_GRP_UNICODE ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n return GetUniFromLMBCSUni ( & ( args -> source ) ) ;\n }\n else if ( CurByte <= ULMBCS_CTRLOFFSET ) {\n group = CurByte ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n if ( group > ULMBCS_GRP_LAST || ( cnv = extraInfo -> OptGrpConverter [ group ] ) == NULL ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n if ( * args -> source == group ) {\n ++ args -> source ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 1 , FALSE ) ;\n ++ args -> source ;\n }\n else {\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 2 , FALSE ) ;\n args -> source += 2 ;\n }\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n CurByte = * ( args -> source ) ++ ;\n if ( CurByte >= ULMBCS_C1START ) {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n else {\n char bytes [ 2 ] ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n cnv = extraInfo -> OptGrpConverter [ ULMBCS_GRP_EXCEPT ] ;\n bytes [ 0 ] = group ;\n bytes [ 1 ] = CurByte ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , bytes , 2 , FALSE ) ;\n }\n }\n }\n else if ( CurByte >= ULMBCS_C1START ) {\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n group = extraInfo -> OptGroup ;\n cnv = extraInfo -> OptGrpConverter [ group ] ;\n if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n if ( ! ucnv_MBCSIsLeadByte ( cnv , CurByte ) ) {\n CHECK_SOURCE_LIMIT ( 0 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 1 , FALSE ) ;\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 2 , FALSE ) ;\n ++ args -> source ;\n }\n }\n else {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n }\n }\n return uniChar ;\n }\n static void _LMBCSToUnicodeWithOffsets ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n char LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n UChar uniChar ;\n const char * saveSource ;\n const char * pStartLMBCS = args -> source ;\n const char * errSource = NULL ;\n int8_t savebytes = 0 ;\n while ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit > args -> target ) {\n saveSource = args -> source ;\n if ( args -> converter -> toULength ) {\n const char * saveSourceLimit ;\n size_t size_old = args -> converter -> toULength ;\n size_t size_new_maybe_1 = sizeof ( LMBCS ) - size_old ;\n size_t size_new_maybe_2 = args -> sourceLimit - args -> source ;\n size_t size_new = ( size_new_maybe_1 < size_new_maybe_2 ) ? size_new_maybe_1 : size_new_maybe_2 ;\n uprv_memcpy ( LMBCS , args -> converter -> toUBytes , size_old ) ;\n uprv_memcpy ( LMBCS + size_old , args -> source , size_new ) ;\n saveSourceLimit = args -> sourceLimit ;\n args -> source = errSource = LMBCS ;\n args -> sourceLimit = LMBCS + size_old + size_new ;\n savebytes = ( int8_t ) ( size_old + size_new ) ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n args -> source = saveSource + ( ( args -> source - LMBCS ) - size_old ) ;\n args -> sourceLimit = saveSourceLimit ;\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n args -> converter -> toULength = savebytes ;\n uprv_memcpy ( args -> converter -> toUBytes , LMBCS , savebytes ) ;\n args -> source = args -> sourceLimit ;\n * err = U_ZERO_ERROR ;\n return ;\n }\n else {\n args -> converter -> toULength = 0 ;\n }\n }\n else {\n errSource = saveSource ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n savebytes = ( int8_t ) ( args -> source - saveSource ) ;\n }\n if ( U_SUCCESS ( * err ) ) {\n if ( uniChar < 0xfffe ) {\n * ( args -> target ) ++ = uniChar ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = ( int32_t ) ( saveSource - pStartLMBCS ) ;\n }\n }\n else if ( uniChar == 0xfffe ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n }\n if ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit <= args -> target ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n else if ( U_FAILURE ( * err ) ) {\n args -> converter -> toULength = savebytes ;\n if ( savebytes > 0 ) {\n uprv_memcpy ( args -> converter -> toUBytes , errSource , savebytes ) ;\n }\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n * err = U_ZERO_ERROR ;\n }\n }\n }\n DEFINE_LMBCS_OPEN ( 1 ) DEFINE_LMBCS_OPEN ( 2 ) DEFINE_LMBCS_OPEN ( 3 ) DEFINE_LMBCS_OPEN ( 4 ) DEFINE_LMBCS_OPEN ( 5 ) DEFINE_LMBCS_OPEN ( 6 ) DEFINE_LMBCS_OPEN ( 8 ) DEFINE_LMBCS_OPEN ( 11 ) DEFINE_LMBCS_OPEN ( 16 ) DEFINE_LMBCS_OPEN ( 17 ) DEFINE_LMBCS_OPEN ( 18 ) DEFINE_LMBCS_OPEN ( 19 )"}
{"idx": 1455, "target": 0, "func": "static void flush_stack ( struct sock * * stack , unsigned int count , struct sk_buff * skb , unsigned int final ) {\n unsigned int i ;\n struct sock * sk ;\n struct sk_buff * skb1 ;\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n skb1 = ( i == final ) ? skb : skb_clone ( skb , GFP_ATOMIC ) ;\n sk = stack [ i ] ;\n if ( skb1 ) {\n if ( sk_rcvqueues_full ( sk , skb ) ) {\n kfree_skb ( skb1 ) ;\n goto drop ;\n }\n bh_lock_sock ( sk ) ;\n if ( ! sock_owned_by_user ( sk ) ) udpv6_queue_rcv_skb ( sk , skb1 ) ;\n else if ( sk_add_backlog ( sk , skb1 ) ) {\n kfree_skb ( skb1 ) ;\n bh_unlock_sock ( sk ) ;\n goto drop ;\n }\n bh_unlock_sock ( sk ) ;\n continue ;\n }\n drop : atomic_inc ( & sk -> sk_drops ) ;\n UDP6_INC_STATS_BH ( sock_net ( sk ) , UDP_MIB_RCVBUFERRORS , IS_UDPLITE ( sk ) ) ;\n UDP6_INC_STATS_BH ( sock_net ( sk ) , UDP_MIB_INERRORS , IS_UDPLITE ( sk ) ) ;\n }\n }"}
{"idx": 1456, "target": 0, "func": "int main ( int argc ATTRIBUTE_UNUSED , char * * argv ATTRIBUTE_UNUSED ) {\n fprintf ( stderr , \"runsuite requires support for schemas and xpath in libxml2\\n\" ) ;\n }"}
{"idx": 1457, "target": 0, "func": "static int read_gab2_sub ( AVFormatContext * s , AVStream * st , AVPacket * pkt ) {\n if ( pkt -> size >= 7 && pkt -> size < INT_MAX - AVPROBE_PADDING_SIZE && ! strcmp ( pkt -> data , \"GAB2\" ) && AV_RL16 ( pkt -> data + 5 ) == 2 ) {\n uint8_t desc [ 256 ] ;\n int score = AVPROBE_SCORE_EXTENSION , ret ;\n AVIStream * ast = st -> priv_data ;\n AVInputFormat * sub_demuxer ;\n AVRational time_base ;\n int size ;\n AVIOContext * pb = avio_alloc_context ( pkt -> data + 7 , pkt -> size - 7 , 0 , NULL , NULL , NULL , NULL ) ;\n AVProbeData pd ;\n unsigned int desc_len = avio_rl32 ( pb ) ;\n if ( desc_len > pb -> buf_end - pb -> buf_ptr ) goto error ;\n ret = avio_get_str16le ( pb , desc_len , desc , sizeof ( desc ) ) ;\n avio_skip ( pb , desc_len - ret ) ;\n if ( * desc ) av_dict_set ( & st -> metadata , \"title\" , desc , 0 ) ;\n avio_rl16 ( pb ) ;\n avio_rl32 ( pb ) ;\n size = pb -> buf_end - pb -> buf_ptr ;\n pd = ( AVProbeData ) {\n . buf = av_mallocz ( size + AVPROBE_PADDING_SIZE ) , . buf_size = size }\n ;\n if ( ! pd . buf ) goto error ;\n memcpy ( pd . buf , pb -> buf_ptr , size ) ;\n sub_demuxer = av_probe_input_format2 ( & pd , 1 , & score ) ;\n av_freep ( & pd . buf ) ;\n if ( ! sub_demuxer ) goto error ;\n if ( strcmp ( sub_demuxer -> name , \"srt\" ) && strcmp ( sub_demuxer -> name , \"ass\" ) ) goto error ;\n if ( ! ( ast -> sub_ctx = avformat_alloc_context ( ) ) ) goto error ;\n ast -> sub_ctx -> pb = pb ;\n if ( ff_copy_whiteblacklists ( ast -> sub_ctx , s ) < 0 ) goto error ;\n if ( ! avformat_open_input ( & ast -> sub_ctx , \"\" , sub_demuxer , NULL ) ) {\n if ( ast -> sub_ctx -> nb_streams != 1 ) goto error ;\n ff_read_packet ( ast -> sub_ctx , & ast -> sub_pkt ) ;\n avcodec_parameters_copy ( st -> codecpar , ast -> sub_ctx -> streams [ 0 ] -> codecpar ) ;\n time_base = ast -> sub_ctx -> streams [ 0 ] -> time_base ;\n avpriv_set_pts_info ( st , 64 , time_base . num , time_base . den ) ;\n }\n ast -> sub_buffer = pkt -> data ;\n memset ( pkt , 0 , sizeof ( * pkt ) ) ;\n return 1 ;\n error : av_freep ( & ast -> sub_ctx ) ;\n av_freep ( & pb ) ;\n }\n return 0 ;\n }"}
{"idx": 1458, "target": 0, "func": "static CallInfo * growCI ( lua_State * L ) {\n if ( L -> size_ci > LUAI_MAXCALLS ) luaD_throw ( L , LUA_ERRERR ) ;\n else {\n luaD_reallocCI ( L , 2 * L -> size_ci ) ;\n if ( L -> size_ci > LUAI_MAXCALLS ) luaG_runerror ( L , \"stack overflow\" ) ;\n }\n return ++ L -> ci ;\n }"}
{"idx": 1459, "target": 0, "func": "static const char * cmd_component_signature ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n * ( char * * ) apr_array_push ( dcfg -> component_signatures ) = ( char * ) p1 ;\n return NULL ;\n }"}
{"idx": 1460, "target": 0, "func": "int jpc_pi_init ( jpc_pi_t * pi ) {\n int compno ;\n int rlvlno ;\n int prcno ;\n jpc_picomp_t * picomp ;\n jpc_pirlvl_t * pirlvl ;\n int * prclyrno ;\n pi -> prgvolfirst = 0 ;\n pi -> valid = 0 ;\n pi -> pktno = - 1 ;\n pi -> pchgno = - 1 ;\n pi -> pchg = 0 ;\n for ( compno = 0 , picomp = pi -> picomps ;\n compno < pi -> numcomps ;\n ++ compno , ++ picomp ) {\n for ( rlvlno = 0 , pirlvl = picomp -> pirlvls ;\n rlvlno < picomp -> numrlvls ;\n ++ rlvlno , ++ pirlvl ) {\n for ( prcno = 0 , prclyrno = pirlvl -> prclyrnos ;\n prcno < pirlvl -> numprcs ;\n ++ prcno , ++ prclyrno ) {\n * prclyrno = 0 ;\n }\n }\n }\n return 0 ;\n }"}
{"idx": 1461, "target": 0, "func": "static int split_field_copy ( Picture * dest , Picture * src , int parity , int id_add ) {\n int match = ! ! ( src -> reference & parity ) ;\n if ( match ) {\n COPY_PICTURE ( dest , src ) ;\n if ( parity != PICT_FRAME ) {\n pic_as_field ( dest , parity ) ;\n dest -> pic_id *= 2 ;\n dest -> pic_id += id_add ;\n }\n }\n return match ;\n }"}
{"idx": 1462, "target": 0, "func": "gboolean ngsniffer_dump_open ( wtap_dumper * wdh , int * err ) {\n ngsniffer_dump_t * ngsniffer ;\n char buf [ 6 ] = {\n REC_VERS , 0x00 , 0x12 , 0x00 , 0x00 , 0x00 }\n ;\n wdh -> subtype_write = ngsniffer_dump ;\n wdh -> subtype_finish = ngsniffer_dump_finish ;\n ngsniffer = ( ngsniffer_dump_t * ) g_malloc ( sizeof ( ngsniffer_dump_t ) ) ;\n wdh -> priv = ( void * ) ngsniffer ;\n ngsniffer -> first_frame = TRUE ;\n ngsniffer -> start = 0 ;\n if ( ! wtap_dump_file_write ( wdh , ngsniffer_magic , sizeof ngsniffer_magic , err ) ) return FALSE ;\n if ( ! wtap_dump_file_write ( wdh , buf , 6 , err ) ) return FALSE ;\n return TRUE ;\n }"}
{"idx": 1463, "target": 0, "func": "static PREDICTION_MODE read_intra_mode_y ( VP9_COMMON * cm , vp9_reader * r , int size_group ) {\n const PREDICTION_MODE y_mode = read_intra_mode ( r , cm -> fc . y_mode_prob [ size_group ] ) ;\n if ( ! cm -> frame_parallel_decoding_mode ) ++ cm -> counts . y_mode [ size_group ] [ y_mode ] ;\n return y_mode ;\n }"}
{"idx": 1464, "target": 0, "func": "int jas_stream_gobble ( jas_stream_t * stream , int n ) {\n int m ;\n m = n ;\n for ( m = n ;\n m > 0 ;\n -- m ) {\n if ( jas_stream_getc ( stream ) == EOF ) {\n return n - m ;\n }\n }\n return n ;\n }"}
{"idx": 1465, "target": 0, "func": "static const char * cmd_data_dir ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n if ( cmd -> server -> is_virtual ) {\n return \"ModSecurity: SecDataDir not allowed in VirtualHost.\" ;\n }\n dcfg -> data_dir = ap_server_root_relative ( cmd -> pool , p1 ) ;\n return NULL ;\n }"}
{"idx": 1466, "target": 0, "func": "static void dissect_rsvp_xro_subobjects ( proto_tree * ti , packet_info * pinfo , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class ) {\n int i , lbit , type , l ;\n proto_tree * rsvp_xro_subtree ;\n int tree_type ;\n switch ( rsvp_class ) {\n case RSVP_CLASS_EXCLUDE_ROUTE : tree_type = TREE ( TT_EXCLUDE_ROUTE_SUBOBJ ) ;\n break ;\n default : return ;\n }\n for ( i = 1 , l = 0 ;\n l < obj_length - 4 ;\n i ++ ) {\n lbit = tvb_get_guint8 ( tvb , offset + l ) & 0x80 ;\n type = tvb_get_guint8 ( tvb , offset + l ) & 0x7f ;\n switch ( type ) {\n case 1 : rsvp_xro_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset + l , 8 , tree_type , NULL , \"IPv4 Subobject - %s\" , tvb_ip_to_str ( tvb , offset + l + 2 ) ) ;\n proto_tree_add_item ( rsvp_xro_subtree , hf_rsvp_xro_sobj_lbit , tvb , offset + l , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_xro_subtree , hf_rsvp_xro_sobj_type , tvb , offset + l , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_xro_subtree , hf_rsvp_xro_sobj_len , tvb , offset + l + 1 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_xro_subtree , hf_rsvp_xro_sobj_ipv4_addr , tvb , offset + l + 2 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_xro_subtree , hf_rsvp_xro_sobj_ipv4_prefix , tvb , offset + l + 6 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_xro_subtree , hf_rsvp_xro_sobj_ipv4_attr , tvb , offset + l + 7 , 1 , ENC_BIG_ENDIAN ) ;\n if ( i < 4 ) {\n proto_item_append_text ( ti , \"IPv4 %s%s\" , tvb_ip_to_str ( tvb , offset + l + 2 ) , lbit ? \" [L]\" : \"\" ) ;\n }\n break ;\n case 2 : rsvp_xro_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset + l , 20 , tree_type , NULL , \"IPv6 Subobject - %s\" , tvb_ip6_to_str ( tvb , offset + l + 2 ) ) ;\n proto_tree_add_item ( rsvp_xro_subtree , hf_rsvp_xro_sobj_lbit , tvb , offset + l , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_xro_subtree , hf_rsvp_xro_sobj_type , tvb , offset + l , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_xro_subtree , hf_rsvp_xro_sobj_len , tvb , offset + l + 1 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_xro_subtree , hf_rsvp_xro_sobj_ipv6_addr , tvb , offset + l + 2 , 16 , ENC_NA ) ;\n proto_tree_add_item ( rsvp_xro_subtree , hf_rsvp_xro_sobj_ipv6_prefix , tvb , offset + l + 18 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_xro_subtree , hf_rsvp_xro_sobj_ipv6_attr , tvb , offset + l + 19 , 1 , ENC_BIG_ENDIAN ) ;\n if ( i < 4 ) {\n proto_item_append_text ( ti , \"IPv6 [...]%s\" , lbit ? \" [L]\" : \"\" ) ;\n }\n break ;\n case 34 : rsvp_xro_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset + l , 8 , tree_type , NULL , \"SRLG Subobject - %u\" , tvb_get_ntohl ( tvb , offset + l + 2 ) ) ;\n proto_tree_add_item ( rsvp_xro_subtree , hf_rsvp_xro_sobj_lbit , tvb , offset + l , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_xro_subtree , hf_rsvp_xro_sobj_type , tvb , offset + l , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_xro_subtree , hf_rsvp_xro_sobj_len , tvb , offset + l + 1 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_xro_subtree , hf_rsvp_xro_sobj_srlg_id , tvb , offset + l + 2 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_xro_subtree , hf_rsvp_xro_sobj_srlg_res , tvb , offset + l + 6 , 2 , ENC_BIG_ENDIAN ) ;\n if ( i < 4 ) {\n proto_item_append_text ( ti , \"SRLG %u%s\" , tvb_get_ntohl ( tvb , offset + l + 2 ) , lbit ? \" [L]\" : \"\" ) ;\n }\n break ;\n default : rsvp_xro_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset + l , tvb_get_guint8 ( tvb , offset + l + 1 ) , tree_type , NULL , \"Unknown subobject: %d\" , type ) ;\n proto_tree_add_item ( rsvp_xro_subtree , hf_rsvp_xro_sobj_lbit , tvb , offset + l , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_xro_subtree , hf_rsvp_xro_sobj_type , tvb , offset + l , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_xro_subtree , hf_rsvp_xro_sobj_len , tvb , offset + l + 1 , 1 , ENC_BIG_ENDIAN ) ;\n break ;\n }\n if ( tvb_get_guint8 ( tvb , offset + l + 1 ) < 1 ) {\n proto_tree_add_expert_format ( rsvp_xro_subtree , pinfo , & ei_rsvp_invalid_length , tvb , offset + l + 1 , 1 , \"Invalid Length: %u\" , tvb_get_guint8 ( tvb , offset + l + 1 ) ) ;\n return ;\n }\n l += tvb_get_guint8 ( tvb , offset + l + 1 ) ;\n if ( l < obj_length - 4 ) {\n if ( i < 4 ) proto_item_append_text ( ti , \", \" ) ;\n else if ( i == 4 ) proto_item_append_text ( ti , \"...\" ) ;\n }\n }\n }"}
{"idx": 1467, "target": 1, "func": "static void steamdiscover_dissect_body_status ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , gint offset , gint bytes_left ) {\n gint64 value ;\n gint len ;\n gint len2 ;\n protobuf_desc_t pb = {\n tvb , offset , bytes_left }\n ;\n protobuf_desc_t pb2 = {\n tvb , 0 , 0 }\n ;\n protobuf_tag_t tag = {\n 0 , 0 , 0 }\n ;\n wmem_allocator_t * strpool ;\n guint8 * hostname ;\n strpool = wmem_allocator_new ( WMEM_ALLOCATOR_SIMPLE ) ;\n nstime_t timestamp ;\n proto_tree * user_tree ;\n proto_item * user_it ;\n while ( protobuf_iter_next ( & pb , & tag ) ) {\n switch ( tag . field_number ) {\n case STEAMDISCOVER_FN_STATUS_VERSION : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_int ( tree , hf_steam_ihs_discovery_body_status_version , pb . tvb , pb . offset , len , ( gint32 ) value ) ;\n break ;\n case STEAMDISCOVER_FN_STATUS_MINVERSION : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_int ( tree , hf_steam_ihs_discovery_body_status_minversion , pb . tvb , pb . offset , len , ( gint32 ) value ) ;\n break ;\n case STEAMDISCOVER_FN_STATUS_CONNECTPORT : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_uint ( tree , hf_steam_ihs_discovery_body_status_connectport , pb . tvb , pb . offset , len , ( guint32 ) value ) ;\n break ;\n case STEAMDISCOVER_FN_STATUS_HOSTNAME : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_LENGTHDELIMITED ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_item ( tree , hf_steam_ihs_discovery_body_status_hostname , pb . tvb , pb . offset + len , ( gint ) value , ENC_UTF_8 | ENC_NA ) ;\n hostname = tvb_get_string_enc ( strpool , pb . tvb , pb . offset + len , ( gint ) value , ENC_UTF_8 ) ;\n if ( hostname && strlen ( hostname ) ) {\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"%s from %s\" , hf_steam_ihs_discovery_header_msgtype_strings [ STEAMDISCOVER_MSGTYPE_CLIENTBROADCASTMSGSTATUS ] . strptr , hostname ) ;\n }\n len += ( gint ) value ;\n break ;\n case STEAMDISCOVER_FN_STATUS_ENABLEDSERVICES : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_uint ( tree , hf_steam_ihs_discovery_body_status_enabledservices , pb . tvb , pb . offset , len , ( guint32 ) value ) ;\n break ;\n case STEAMDISCOVER_FN_STATUS_OSTYPE : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_int ( tree , hf_steam_ihs_discovery_body_status_ostype , pb . tvb , pb . offset , len , ( gint32 ) value ) ;\n break ;\n case STEAMDISCOVER_FN_STATUS_IS64BIT : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_boolean ( tree , hf_steam_ihs_discovery_body_status_is64bit , pb . tvb , pb . offset , len , ( gint32 ) value ) ;\n break ;\n case STEAMDISCOVER_FN_STATUS_USERS : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_LENGTHDELIMITED ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n pb2 . offset = pb . offset + len ;\n pb2 . bytes_left = ( gint ) value ;\n len += ( gint ) value ;\n user_tree = proto_tree_add_subtree ( tree , pb . tvb , pb . offset , len , ett_steam_ihs_discovery_body_status_user , & user_it , \"User\" ) ;\n while ( protobuf_iter_next ( & pb2 , & tag ) ) {\n switch ( tag . field_number ) {\n case STEAMDISCOVER_FN_STATUS_USER_STEAMID : if ( ( len2 = protobuf_verify_wiretype ( & pb2 , & tag , pinfo , user_tree , PROTOBUF_WIRETYPE_64BIT ) ) ) break ;\n len2 = 8 ;\n value = tvb_get_letoh64 ( pb2 . tvb , pb2 . offset ) ;\n proto_tree_add_uint64 ( user_tree , hf_steam_ihs_discovery_body_status_user_steamid , pb2 . tvb , pb2 . offset , len2 , ( guint64 ) value ) ;\n proto_item_append_text ( user_it , \", Steam ID: %\" G_GUINT64_FORMAT , ( guint64 ) value ) ;\n break ;\n case STEAMDISCOVER_FN_STATUS_USER_AUTHKEYID : if ( ( len2 = protobuf_verify_wiretype ( & pb2 , & tag , pinfo , user_tree , PROTOBUF_WIRETYPE_VARINT ) ) ) break ;\n value = get_varint64 ( pb2 . tvb , pb2 . offset , pb2 . bytes_left , & len2 ) ;\n proto_tree_add_uint ( user_tree , hf_steam_ihs_discovery_body_status_user_authkeyid , pb2 . tvb , pb2 . offset , len2 , ( guint32 ) value ) ;\n proto_item_append_text ( user_it , \", Auth Key ID: %\" G_GUINT32_FORMAT , ( guint32 ) value ) ;\n break ;\n default : len2 = protobuf_dissect_unknown_field ( & pb2 , & tag , pinfo , tree , NULL ) ;\n break ;\n }\n protobuf_seek_forward ( & pb2 , len2 ) ;\n }\n break ;\n case STEAMDISCOVER_FN_STATUS_EUNIVERSE : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_int ( tree , hf_steam_ihs_discovery_body_status_euniverse , pb . tvb , pb . offset , len , ( gint32 ) value ) ;\n break ;\n case STEAMDISCOVER_FN_STATUS_TIMESTAMP : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n timestamp . secs = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n timestamp . nsecs = 0 ;\n proto_tree_add_time ( tree , hf_steam_ihs_discovery_body_status_timestamp , pb . tvb , pb . offset , len , & timestamp ) ;\n break ;\n case STEAMDISCOVER_FN_STATUS_SCREENLOCKED : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_boolean ( tree , hf_steam_ihs_discovery_body_status_screenlocked , pb . tvb , pb . offset , len , ( gint32 ) value ) ;\n break ;\n case STEAMDISCOVER_FN_STATUS_GAMESRUNNING : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_boolean ( tree , hf_steam_ihs_discovery_body_status_gamesrunning , pb . tvb , pb . offset , len , ( gint32 ) value ) ;\n break ;\n case STEAMDISCOVER_FN_STATUS_MACADDRESSES : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_LENGTHDELIMITED ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_item ( tree , hf_steam_ihs_discovery_body_status_macaddresses , pb . tvb , pb . offset + len , ( gint ) value , ENC_UTF_8 | ENC_NA ) ;\n len += ( gint ) value ;\n break ;\n default : len = protobuf_dissect_unknown_field ( & pb , & tag , pinfo , tree , NULL ) ;\n break ;\n }\n protobuf_seek_forward ( & pb , len ) ;\n }\n wmem_destroy_allocator ( strpool ) ;\n }"}
{"idx": 1468, "target": 1, "func": "static int zeqproc ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n ref2_t stack [ MAX_DEPTH + 1 ] ;\n ref2_t * top = stack ;\n make_array ( & stack [ 0 ] . proc1 , 0 , 1 , op - 1 ) ;\n make_array ( & stack [ 0 ] . proc2 , 0 , 1 , op ) ;\n for ( ;\n ;\n ) {\n long i ;\n if ( r_size ( & top -> proc1 ) == 0 ) {\n if ( top == stack ) {\n make_true ( op - 1 ) ;\n pop ( 1 ) ;\n return 0 ;\n }\n -- top ;\n continue ;\n }\n i = r_size ( & top -> proc1 ) - 1 ;\n array_get ( imemory , & top -> proc1 , i , & top [ 1 ] . proc1 ) ;\n array_get ( imemory , & top -> proc2 , i , & top [ 1 ] . proc2 ) ;\n r_dec_size ( & top -> proc1 , 1 ) ;\n ++ top ;\n # if 0 if ( r_has_attr ( & top -> proc1 , a_executable ) != r_has_attr ( & top -> proc2 , a_executable ) ) break ;\n # endif if ( obj_eq ( imemory , & top -> proc1 , & top -> proc2 ) ) {\n if ( r_type ( & top -> proc1 ) != r_type ( & top -> proc2 ) && ( r_type ( & top -> proc1 ) == t_name || r_type ( & top -> proc2 ) == t_name ) ) break ;\n -- top ;\n continue ;\n }\n if ( r_is_array ( & top -> proc1 ) && r_is_array ( & top -> proc2 ) && r_size ( & top -> proc1 ) == r_size ( & top -> proc2 ) && top < stack + ( MAX_DEPTH - 1 ) ) {\n continue ;\n }\n break ;\n }\n make_false ( op - 1 ) ;\n pop ( 1 ) ;\n return 0 ;\n }"}
{"idx": 1469, "target": 0, "func": "xmlNodePtr * xsltTemplateProcess ( xsltTransformContextPtr ctxt ATTRIBUTE_UNUSED , xmlNodePtr node ) {\n if ( node == NULL ) return ( NULL ) ;\n return ( 0 ) ;\n }"}
{"idx": 1470, "target": 0, "func": "static void msg_msg_free_security ( struct msg_msg * msg ) {\n struct msg_security_struct * msec = msg -> security ;\n msg -> security = NULL ;\n kfree ( msec ) ;\n }"}
{"idx": 1471, "target": 0, "func": "TEST_F ( BrowsingDataRemoverImplTest , CompletionInhibition ) {\n BrowsingDataRemoverCompletionInhibitor completion_inhibitor ;\n BrowsingDataRemoverImpl * remover = static_cast < BrowsingDataRemoverImpl * > ( BrowsingDataRemoverFactory : : GetForBrowserContext ( GetBrowserContext ( ) ) ) ;\n InspectableCompletionObserver completion_observer ( remover ) ;\n remover -> RemoveAndReply ( base : : Time ( ) , base : : Time : : Max ( ) , BrowsingDataRemover : : REMOVE_HISTORY , BrowsingDataHelper : : UNPROTECTED_WEB , & completion_observer ) ;\n completion_inhibitor . BlockUntilNearCompletion ( ) ;\n base : : RunLoop ( ) . RunUntilIdle ( ) ;\n EXPECT_TRUE ( remover -> is_removing ( ) ) ;\n EXPECT_FALSE ( completion_observer . called ( ) ) ;\n completion_inhibitor . ContinueToCompletion ( ) ;\n completion_observer . BlockUntilCompletion ( ) ;\n EXPECT_FALSE ( remover -> is_removing ( ) ) ;\n EXPECT_TRUE ( completion_observer . called ( ) ) ;\n }"}
{"idx": 1472, "target": 0, "func": "TEST_P ( PasswordStoreXTest , NativeMigration ) {\n ScopedVector < autofill : : PasswordForm > expected_autofillable ;\n InitExpectedForms ( true , 50 , & expected_autofillable ) ;\n ScopedVector < autofill : : PasswordForm > expected_blacklisted ;\n InitExpectedForms ( false , 50 , & expected_blacklisted ) ;\n const base : : FilePath login_db_file = test_login_db_file_path ( ) ;\n std : : unique_ptr < password_manager : : LoginDatabase > login_db ( new password_manager : : LoginDatabase ( login_db_file ) ) ;\n ASSERT_TRUE ( login_db -> Init ( ) ) ;\n base : : File : : Info db_file_start_info ;\n ASSERT_TRUE ( base : : GetFileInfo ( login_db_file , & db_file_start_info ) ) ;\n for ( const autofill : : PasswordForm * form : expected_autofillable ) {\n EXPECT_EQ ( AddChangeForForm ( * form ) , login_db -> AddLogin ( * form ) ) ;\n }\n for ( const autofill : : PasswordForm * form : expected_blacklisted ) {\n EXPECT_EQ ( AddChangeForForm ( * form ) , login_db -> AddLogin ( * form ) ) ;\n }\n base : : File : : Info db_file_full_info ;\n ASSERT_TRUE ( base : : GetFileInfo ( login_db_file , & db_file_full_info ) ) ;\n EXPECT_GT ( db_file_full_info . size , db_file_start_info . size ) ;\n login_db . reset ( new password_manager : : LoginDatabase ( login_db_file ) ) ;\n scoped_refptr < PasswordStoreX > store ( new PasswordStoreX ( base : : ThreadTaskRunnerHandle : : Get ( ) , base : : ThreadTaskRunnerHandle : : Get ( ) , std : : move ( login_db ) , GetBackend ( GetParam ( ) ) ) ) ;\n store -> Init ( syncer : : SyncableService : : StartSyncFlare ( ) ) ;\n MockPasswordStoreConsumer consumer ;\n EXPECT_CALL ( consumer , OnGetPasswordStoreResultsConstRef ( UnorderedPasswordFormElementsAre ( expected_autofillable . get ( ) ) ) ) ;\n store -> GetAutofillableLogins ( & consumer ) ;\n base : : RunLoop ( ) . RunUntilIdle ( ) ;\n EXPECT_CALL ( consumer , OnGetPasswordStoreResultsConstRef ( UnorderedPasswordFormElementsAre ( expected_blacklisted . get ( ) ) ) ) ;\n store -> GetBlacklistLogins ( & consumer ) ;\n base : : RunLoop ( ) . RunUntilIdle ( ) ;\n MockLoginDatabaseReturn ld_return ;\n if ( GetParam ( ) == WORKING_BACKEND ) {\n EXPECT_CALL ( ld_return , OnLoginDatabaseQueryDone ( IsEmpty ( ) ) ) ;\n }\n else {\n EXPECT_CALL ( ld_return , OnLoginDatabaseQueryDone ( UnorderedPasswordFormElementsAre ( expected_autofillable . get ( ) ) ) ) ;\n }\n LoginDatabaseQueryCallback ( store -> login_db ( ) , true , & ld_return ) ;\n base : : RunLoop ( ) . RunUntilIdle ( ) ;\n if ( GetParam ( ) == WORKING_BACKEND ) {\n EXPECT_CALL ( ld_return , OnLoginDatabaseQueryDone ( IsEmpty ( ) ) ) ;\n }\n else {\n EXPECT_CALL ( ld_return , OnLoginDatabaseQueryDone ( UnorderedPasswordFormElementsAre ( expected_blacklisted . get ( ) ) ) ) ;\n }\n LoginDatabaseQueryCallback ( store -> login_db ( ) , false , & ld_return ) ;\n base : : RunLoop ( ) . RunUntilIdle ( ) ;\n if ( GetParam ( ) == WORKING_BACKEND ) {\n base : : File : : Info db_file_end_info ;\n ASSERT_TRUE ( base : : GetFileInfo ( login_db_file , & db_file_end_info ) ) ;\n EXPECT_EQ ( db_file_start_info . size , db_file_end_info . size ) ;\n }\n store -> ShutdownOnUIThread ( ) ;\n }"}
{"idx": 1473, "target": 0, "func": "static void dumpghstruct ( struct glyphinfo * gi , struct glyphhead * gh ) {\n putshort ( gi -> glyphs , gh -> numContours ) ;\n putshort ( gi -> glyphs , gh -> xmin ) ;\n putshort ( gi -> glyphs , gh -> ymin ) ;\n putshort ( gi -> glyphs , gh -> xmax ) ;\n putshort ( gi -> glyphs , gh -> ymax ) ;\n if ( gh -> xmin < gi -> xmin ) gi -> xmin = gh -> xmin ;\n if ( gh -> ymin < gi -> ymin ) gi -> ymin = gh -> ymin ;\n if ( gh -> xmax > gi -> xmax ) gi -> xmax = gh -> xmax ;\n if ( gh -> ymax > gi -> ymax ) gi -> ymax = gh -> ymax ;\n }"}
{"idx": 1474, "target": 0, "func": "static int PSAddImagemask ( EntityChar * ec , struct psstack * stack , int sp , real transform [ 6 ] , Color fillcol ) {\n uint8 * data ;\n int datalen , width , height , polarity ;\n real trans [ 6 ] ;\n struct _GImage * base ;\n GImage * gi ;\n Entity * ent ;\n int i , j ;\n if ( sp < 5 || ( stack [ sp - 1 ] . type != ps_instr && stack [ sp - 1 ] . type != ps_string ) ) {\n LogError ( _ ( \"FontForge does not support dictionary based imagemask operators.\\n\" ) ) ;\n return ( sp - 1 ) ;\n }\n if ( stack [ sp - 2 ] . type != ps_array || stack [ sp - 2 ] . u . dict . cnt != 6 ) {\n LogError ( _ ( \"Fourth argument of imagemask must be a 6-element transformation matrix.\\n\" ) ) ;\n return ( sp - 5 ) ;\n }\n if ( stack [ sp - 3 ] . type != ps_bool ) {\n LogError ( _ ( \"Third argument of imagemask must be a boolean.\\n\" ) ) ;\n return ( sp - 5 ) ;\n }\n polarity = stack [ sp - 3 ] . u . tf ;\n if ( stack [ sp - 4 ] . type != ps_num || stack [ sp - 5 ] . type != ps_num ) {\n LogError ( _ ( \"First and second arguments of imagemask must be integers.\\n\" ) ) ;\n return ( sp - 5 ) ;\n }\n height = stack [ sp - 4 ] . u . val ;\n width = stack [ sp - 5 ] . u . val ;\n data = StringToBytes ( & stack [ sp - 1 ] , & datalen ) ;\n if ( width <= 0 || height <= 0 || ( ( width + 7 ) / 8 ) * height > datalen ) {\n LogError ( _ ( \"Width or height arguments to imagemask contain invalid values\\n(either negative or they require more data than provided).\\n\" ) ) ;\n free ( data ) ;\n return ( sp - 5 ) ;\n }\n trans [ 0 ] = stack [ sp - 2 ] . u . dict . entries [ 0 ] . u . val ;\n trans [ 1 ] = stack [ sp - 2 ] . u . dict . entries [ 1 ] . u . val ;\n trans [ 2 ] = stack [ sp - 2 ] . u . dict . entries [ 2 ] . u . val ;\n trans [ 3 ] = stack [ sp - 2 ] . u . dict . entries [ 3 ] . u . val ;\n trans [ 4 ] = stack [ sp - 2 ] . u . dict . entries [ 4 ] . u . val ;\n trans [ 5 ] = stack [ sp - 2 ] . u . dict . entries [ 5 ] . u . val ;\n gi = GImageCreate ( it_mono , width , height ) ;\n base = gi -> u . image ;\n base -> trans = 1 ;\n if ( polarity ) {\n for ( i = 0 ;\n i < datalen ;\n ++ i ) data [ i ] ^= 0xff ;\n }\n if ( trans [ 0 ] > 0 && trans [ 3 ] < 0 ) memcpy ( base -> data , data , datalen ) ;\n else if ( trans [ 0 ] > 0 && trans [ 3 ] > 0 ) {\n for ( i = 0 ;\n i < height ;\n ++ i ) memcpy ( base -> data + i * base -> bytes_per_line , data + ( height - i ) * base -> bytes_per_line , base -> bytes_per_line ) ;\n }\n else if ( trans [ 0 ] < 0 && trans [ 3 ] < 0 ) {\n for ( i = 0 ;\n i < height ;\n ++ i ) for ( j = 0 ;\n j < width ;\n ++ j ) {\n if ( data [ i * base -> bytes_per_line + ( j >> 3 ) ] & ( 0x80 >> ( j & 7 ) ) ) base -> data [ i * base -> bytes_per_line + ( ( width - j - 1 ) >> 3 ) ] |= ( 0x80 >> ( ( width - j - 1 ) & 7 ) ) ;\n }\n }\n else {\n for ( i = 0 ;\n i < height ;\n ++ i ) for ( j = 0 ;\n j < width ;\n ++ j ) {\n if ( data [ i * base -> bytes_per_line + ( j >> 3 ) ] & ( 0x80 >> ( j & 7 ) ) ) base -> data [ ( height - i - 1 ) * base -> bytes_per_line + ( ( width - j - 1 ) >> 3 ) ] |= ( 0x80 >> ( ( width - j - 1 ) & 7 ) ) ;\n }\n }\n free ( data ) ;\n ent = calloc ( 1 , sizeof ( Entity ) ) ;\n ent -> type = et_image ;\n ent -> u . image . image = gi ;\n memcpy ( ent -> u . image . transform , transform , sizeof ( real [ 6 ] ) ) ;\n ent -> u . image . transform [ 0 ] /= width ;\n ent -> u . image . transform [ 3 ] /= height ;\n ent -> u . image . transform [ 5 ] += height ;\n ent -> u . image . col = fillcol ;\n ent -> next = ec -> splines ;\n ec -> splines = ent ;\n return ( sp - 5 ) ;\n }"}
{"idx": 1475, "target": 0, "func": "static int add_recent_loose ( const unsigned char * sha1 , const char * path , void * data ) {\n struct stat st ;\n struct object * obj = lookup_object ( sha1 ) ;\n if ( obj && obj -> flags & SEEN ) return 0 ;\n if ( stat ( path , & st ) < 0 ) {\n if ( errno == ENOENT ) return 0 ;\n return error ( \"unable to stat %s: %s\" , sha1_to_hex ( sha1 ) , strerror ( errno ) ) ;\n }\n add_recent_object ( sha1 , st . st_mtime , data ) ;\n return 0 ;\n }"}
{"idx": 1476, "target": 0, "func": "int c_main ( void ) {\n UBreakIterator * boundary ;\n char cStringToExamine [ ] = \"Aaa bbb ccc. Ddd eee fff.\" ;\n UChar stringToExamine [ sizeof ( cStringToExamine ) + 1 ] ;\n UErrorCode status = U_ZERO_ERROR ;\n printf ( \"\\n\\n\" \"C Boundary Analysis\\n\" \"-------------------\\n\\n\" ) ;\n printf ( \"Examining: %s\\n\" , cStringToExamine ) ;\n u_uastrcpy ( stringToExamine , cStringToExamine ) ;\n boundary = ubrk_open ( UBRK_SENTENCE , \"en_us\" , stringToExamine , - 1 , & status ) ;\n if ( U_FAILURE ( status ) ) {\n printf ( \"ubrk_open error: %s\\n\" , u_errorName ( status ) ) ;\n exit ( 1 ) ;\n }\n printf ( \"\\n----- Sentence Boundaries, forward: -----------\\n\" ) ;\n printEachForward ( boundary , stringToExamine ) ;\n printf ( \"\\n----- Sentence Boundaries, backward: ----------\\n\" ) ;\n printEachBackward ( boundary , stringToExamine ) ;\n ubrk_close ( boundary ) ;\n boundary = ubrk_open ( UBRK_WORD , \"en_us\" , stringToExamine , u_strlen ( stringToExamine ) , & status ) ;\n printf ( \"\\n----- Word Boundaries, forward: -----------\\n\" ) ;\n printEachForward ( boundary , stringToExamine ) ;\n printf ( \"\\n----- Word Boundaries, backward: ----------\\n\" ) ;\n printEachBackward ( boundary , stringToExamine ) ;\n printf ( \"\\n----- first: -------------\\n\" ) ;\n printFirst ( boundary , stringToExamine ) ;\n printf ( \"\\n----- last: --------------\\n\" ) ;\n printLast ( boundary , stringToExamine ) ;\n printf ( \"\\n----- at pos 10: ---------\\n\" ) ;\n printAt ( boundary , 10 , stringToExamine ) ;\n ubrk_close ( boundary ) ;\n printf ( \"\\nEnd of C boundary analysis\\n\" ) ;\n return 0 ;\n }"}
{"idx": 1477, "target": 0, "func": "void archive_wstring_free ( struct archive_wstring * as ) {\n as -> length = 0 ;\n as -> buffer_length = 0 ;\n free ( as -> s ) ;\n as -> s = NULL ;\n }"}
{"idx": 1478, "target": 0, "func": "static int do_show_master_status ( MYSQL * mysql_con , int consistent_binlog_pos ) {\n MYSQL_ROW row ;\n MYSQL_RES * UNINIT_VAR ( master ) ;\n char binlog_pos_file [ FN_REFLEN ] ;\n char binlog_pos_offset [ LONGLONG_LEN + 1 ] ;\n char * file , * offset ;\n const char * comment_prefix = ( opt_master_data == MYSQL_OPT_MASTER_DATA_COMMENTED_SQL ) ? \"-- \" : \"\" ;\n if ( consistent_binlog_pos ) {\n if ( ! check_consistent_binlog_pos ( binlog_pos_file , binlog_pos_offset ) ) return 1 ;\n file = binlog_pos_file ;\n offset = binlog_pos_offset ;\n }\n else {\n if ( mysql_query_with_error_report ( mysql_con , & master , \"SHOW MASTER STATUS\" ) ) return 1 ;\n row = mysql_fetch_row ( master ) ;\n if ( row && row [ 0 ] && row [ 1 ] ) {\n file = row [ 0 ] ;\n offset = row [ 1 ] ;\n }\n else {\n mysql_free_result ( master ) ;\n if ( ! ignore_errors ) {\n fprintf ( stderr , \"%s: Error: Binlogging on server not active\\n\" , my_progname_short ) ;\n maybe_exit ( EX_MYSQLERR ) ;\n return 1 ;\n }\n else {\n return 0 ;\n }\n }\n }\n print_comment ( md_result_file , 0 , \"\\n--\\n-- Position to start replication or point-in-time \" \"recovery from\\n--\\n\\n\" ) ;\n fprintf ( md_result_file , \"%sCHANGE MASTER TO MASTER_LOG_FILE='%s', MASTER_LOG_POS=%s;\n\\n\" , comment_prefix , file , offset ) ;\n check_io ( md_result_file ) ;\n if ( ! consistent_binlog_pos ) mysql_free_result ( master ) ;\n return 0 ;\n }"}
{"idx": 1479, "target": 0, "func": "struct archive_string_conv * archive_string_default_conversion_for_read ( struct archive * a ) {\n ( void ) a ;\n return ( NULL ) ;\n }"}
{"idx": 1480, "target": 0, "func": "static int put_payload_parsing_info ( AVFormatContext * s , unsigned sendtime , unsigned duration , int nb_payloads , int padsize ) {\n ASFContext * asf = s -> priv_data ;\n AVIOContext * pb = s -> pb ;\n int ppi_size , i ;\n int64_t start = avio_tell ( pb ) ;\n int iLengthTypeFlags = ASF_PPI_LENGTH_TYPE_FLAGS ;\n padsize -= PACKET_HEADER_MIN_SIZE ;\n if ( asf -> multi_payloads_present ) padsize -- ;\n av_assert0 ( padsize >= 0 ) ;\n avio_w8 ( pb , ASF_PACKET_ERROR_CORRECTION_FLAGS ) ;\n for ( i = 0 ;\n i < ASF_PACKET_ERROR_CORRECTION_DATA_SIZE ;\n i ++ ) avio_w8 ( pb , 0x0 ) ;\n if ( asf -> multi_payloads_present ) iLengthTypeFlags |= ASF_PPI_FLAG_MULTIPLE_PAYLOADS_PRESENT ;\n if ( padsize > 0 ) {\n if ( padsize < 256 ) iLengthTypeFlags |= ASF_PPI_FLAG_PADDING_LENGTH_FIELD_IS_BYTE ;\n else iLengthTypeFlags |= ASF_PPI_FLAG_PADDING_LENGTH_FIELD_IS_WORD ;\n }\n avio_w8 ( pb , iLengthTypeFlags ) ;\n avio_w8 ( pb , ASF_PPI_PROPERTY_FLAGS ) ;\n if ( iLengthTypeFlags & ASF_PPI_FLAG_PADDING_LENGTH_FIELD_IS_WORD ) avio_wl16 ( pb , padsize - 2 ) ;\n if ( iLengthTypeFlags & ASF_PPI_FLAG_PADDING_LENGTH_FIELD_IS_BYTE ) avio_w8 ( pb , padsize - 1 ) ;\n avio_wl32 ( pb , sendtime ) ;\n avio_wl16 ( pb , duration ) ;\n if ( asf -> multi_payloads_present ) avio_w8 ( pb , nb_payloads | ASF_PAYLOAD_FLAGS ) ;\n ppi_size = avio_tell ( pb ) - start ;\n return ppi_size ;\n }"}
{"idx": 1481, "target": 0, "func": "static int timeout_next ( struct event_base * base , struct timeval * * tv_p ) {\n struct timeval now ;\n struct event * ev ;\n struct timeval * tv = * tv_p ;\n if ( ( ev = min_heap_top ( & base -> timeheap ) ) == NULL ) {\n * tv_p = NULL ;\n return ( 0 ) ;\n }\n if ( gettime ( base , & now ) == - 1 ) return ( - 1 ) ;\n if ( evutil_timercmp ( & ev -> ev_timeout , & now , <= ) ) {\n evutil_timerclear ( tv ) ;\n return ( 0 ) ;\n }\n evutil_timersub ( & ev -> ev_timeout , & now , tv ) ;\n assert ( tv -> tv_sec >= 0 ) ;\n assert ( tv -> tv_usec >= 0 ) ;\n event_debug ( ( \"timeout_next: in %ld seconds\" , tv -> tv_sec ) ) ;\n return ( 0 ) ;\n }"}
{"idx": 1482, "target": 0, "func": "static int sunrast_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n const uint8_t * buf_end = avpkt -> data + avpkt -> size ;\n AVFrame * const p = data ;\n unsigned int w , h , depth , type , maptype , maplength , stride , x , y , len , alen ;\n uint8_t * ptr ;\n const uint8_t * bufstart = buf ;\n int ret ;\n if ( avpkt -> size < 32 ) return AVERROR_INVALIDDATA ;\n if ( AV_RB32 ( buf ) != RAS_MAGIC ) {\n av_log ( avctx , AV_LOG_ERROR , \"this is not sunras encoded data\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n w = AV_RB32 ( buf + 4 ) ;\n h = AV_RB32 ( buf + 8 ) ;\n depth = AV_RB32 ( buf + 12 ) ;\n type = AV_RB32 ( buf + 20 ) ;\n maptype = AV_RB32 ( buf + 24 ) ;\n maplength = AV_RB32 ( buf + 28 ) ;\n buf += 32 ;\n if ( type == RT_FORMAT_TIFF || type == RT_FORMAT_IFF || type == RT_EXPERIMENTAL ) {\n av_log_ask_for_sample ( avctx , \"unsupported (compression) type\\n\" ) ;\n return AVERROR_PATCHWELCOME ;\n }\n if ( type > RT_FORMAT_IFF ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid (compression) type\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( av_image_check_size ( w , h , 0 , avctx ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid image size\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( maptype == RMT_RAW ) {\n av_log_ask_for_sample ( avctx , \"unsupported colormap type\\n\" ) ;\n return AVERROR_PATCHWELCOME ;\n }\n if ( maptype > RMT_RAW ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid colormap type\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n switch ( depth ) {\n case 1 : avctx -> pix_fmt = AV_PIX_FMT_MONOWHITE ;\n break ;\n case 8 : avctx -> pix_fmt = maplength ? AV_PIX_FMT_PAL8 : AV_PIX_FMT_GRAY8 ;\n break ;\n case 24 : avctx -> pix_fmt = ( type == RT_FORMAT_RGB ) ? AV_PIX_FMT_RGB24 : AV_PIX_FMT_BGR24 ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"invalid depth\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( w != avctx -> width || h != avctx -> height ) avcodec_set_dimensions ( avctx , w , h ) ;\n if ( ( ret = ff_get_buffer ( avctx , p , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n p -> pict_type = AV_PICTURE_TYPE_I ;\n if ( buf_end - buf < maplength ) return AVERROR_INVALIDDATA ;\n if ( depth != 8 && maplength ) {\n av_log ( avctx , AV_LOG_WARNING , \"useless colormap found or file is corrupted, trying to recover\\n\" ) ;\n }\n else if ( maplength ) {\n unsigned int len = maplength / 3 ;\n if ( maplength % 3 || maplength > 768 ) {\n av_log ( avctx , AV_LOG_WARNING , \"invalid colormap length\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n ptr = p -> data [ 1 ] ;\n for ( x = 0 ;\n x < len ;\n x ++ , ptr += 4 ) * ( uint32_t * ) ptr = ( buf [ x ] << 16 ) + ( buf [ len + x ] << 8 ) + buf [ len + len + x ] ;\n }\n buf += maplength ;\n ptr = p -> data [ 0 ] ;\n stride = p -> linesize [ 0 ] ;\n len = ( depth * w + 7 ) >> 3 ;\n alen = len + ( len & 1 ) ;\n if ( type == RT_BYTE_ENCODED ) {\n int value , run ;\n uint8_t * end = ptr + h * stride ;\n x = 0 ;\n while ( ptr != end && buf < buf_end ) {\n run = 1 ;\n if ( buf_end - buf < 1 ) return AVERROR_INVALIDDATA ;\n if ( ( value = * buf ++ ) == RLE_TRIGGER ) {\n run = * buf ++ + 1 ;\n if ( run != 1 ) value = * buf ++ ;\n }\n while ( run -- ) {\n if ( x < len ) ptr [ x ] = value ;\n if ( ++ x >= alen ) {\n x = 0 ;\n ptr += stride ;\n if ( ptr == end ) break ;\n }\n }\n }\n }\n else {\n for ( y = 0 ;\n y < h ;\n y ++ ) {\n if ( buf_end - buf < len ) break ;\n memcpy ( ptr , buf , len ) ;\n ptr += stride ;\n buf += alen ;\n }\n }\n * got_frame = 1 ;\n return buf - bufstart ;\n }"}
{"idx": 1483, "target": 0, "func": "static int selinux_file_alloc_security ( struct file * file ) {\n return file_alloc_security ( file ) ;\n }"}
{"idx": 1484, "target": 0, "func": "void do_copy_file ( struct st_command * command ) {\n int error ;\n static DYNAMIC_STRING ds_from_file ;\n static DYNAMIC_STRING ds_to_file ;\n const struct command_arg copy_file_args [ ] = {\n {\n \"from_file\" , ARG_STRING , TRUE , & ds_from_file , \"Filename to copy from\" }\n , {\n \"to_file\" , ARG_STRING , TRUE , & ds_to_file , \"Filename to copy to\" }\n }\n ;\n DBUG_ENTER ( \"do_copy_file\" ) ;\n check_command_args ( command , command -> first_argument , copy_file_args , sizeof ( copy_file_args ) / sizeof ( struct command_arg ) , ' ' ) ;\n DBUG_PRINT ( \"info\" , ( \"Copy %s to %s\" , ds_from_file . str , ds_to_file . str ) ) ;\n error = ( my_copy ( ds_from_file . str , ds_to_file . str , MYF ( MY_DONT_OVERWRITE_FILE | MY_WME | MY_HOLD_ORIGINAL_MODES ) ) != 0 ) ;\n handle_command_error ( command , error , my_errno ) ;\n dynstr_free ( & ds_from_file ) ;\n dynstr_free ( & ds_to_file ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 1485, "target": 1, "func": "static int jbig2_decode_mmr_line ( Jbig2MmrCtx * mmr , const byte * ref , byte * dst ) {\n int a0 = - 1 ;\n int a1 , a2 , b1 , b2 ;\n int c = 0 ;\n while ( 1 ) {\n uint32_t word = mmr -> word ;\n if ( a0 >= mmr -> width ) break ;\n if ( ( word >> ( 32 - 3 ) ) == 1 ) {\n int white_run , black_run ;\n jbig2_decode_mmr_consume ( mmr , 3 ) ;\n if ( a0 == - 1 ) a0 = 0 ;\n if ( c == 0 ) {\n white_run = jbig2_decode_get_run ( mmr , jbig2_mmr_white_decode , 8 ) ;\n black_run = jbig2_decode_get_run ( mmr , jbig2_mmr_black_decode , 7 ) ;\n a1 = a0 + white_run ;\n a2 = a1 + black_run ;\n if ( a1 > mmr -> width ) a1 = mmr -> width ;\n if ( a2 > mmr -> width ) a2 = mmr -> width ;\n if ( a2 < a1 || a1 < 0 ) return - 1 ;\n jbig2_set_bits ( dst , a1 , a2 ) ;\n a0 = a2 ;\n }\n else {\n black_run = jbig2_decode_get_run ( mmr , jbig2_mmr_black_decode , 7 ) ;\n white_run = jbig2_decode_get_run ( mmr , jbig2_mmr_white_decode , 8 ) ;\n a1 = a0 + black_run ;\n a2 = a1 + white_run ;\n if ( a1 > mmr -> width ) a1 = mmr -> width ;\n if ( a2 > mmr -> width ) a2 = mmr -> width ;\n if ( a1 < a0 || a0 < 0 ) return - 1 ;\n jbig2_set_bits ( dst , a0 , a1 ) ;\n a0 = a2 ;\n }\n }\n else if ( ( word >> ( 32 - 4 ) ) == 1 ) {\n jbig2_decode_mmr_consume ( mmr , 4 ) ;\n b1 = jbig2_find_changing_element_of_color ( ref , a0 , mmr -> width , ! c ) ;\n b2 = jbig2_find_changing_element ( ref , b1 , mmr -> width ) ;\n if ( c ) {\n if ( b2 < a0 || a0 < 0 ) return - 1 ;\n jbig2_set_bits ( dst , a0 , b2 ) ;\n }\n a0 = b2 ;\n }\n else if ( ( word >> ( 32 - 1 ) ) == 1 ) {\n jbig2_decode_mmr_consume ( mmr , 1 ) ;\n b1 = jbig2_find_changing_element_of_color ( ref , a0 , mmr -> width , ! c ) ;\n if ( c ) {\n if ( b1 < a0 || a0 < 0 ) return - 1 ;\n jbig2_set_bits ( dst , a0 , b1 ) ;\n }\n a0 = b1 ;\n c = ! c ;\n }\n else if ( ( word >> ( 32 - 3 ) ) == 3 ) {\n jbig2_decode_mmr_consume ( mmr , 3 ) ;\n b1 = jbig2_find_changing_element_of_color ( ref , a0 , mmr -> width , ! c ) ;\n if ( b1 + 1 > mmr -> width ) break ;\n if ( c ) {\n if ( b1 + 1 < a0 || a0 < 0 ) return - 1 ;\n jbig2_set_bits ( dst , a0 , b1 + 1 ) ;\n }\n a0 = b1 + 1 ;\n c = ! c ;\n }\n else if ( ( word >> ( 32 - 6 ) ) == 3 ) {\n jbig2_decode_mmr_consume ( mmr , 6 ) ;\n b1 = jbig2_find_changing_element_of_color ( ref , a0 , mmr -> width , ! c ) ;\n if ( b1 + 2 > mmr -> width ) break ;\n if ( c ) {\n if ( b1 + 2 < a0 || a0 < 0 ) return - 1 ;\n jbig2_set_bits ( dst , a0 , b1 + 2 ) ;\n }\n a0 = b1 + 2 ;\n c = ! c ;\n }\n else if ( ( word >> ( 32 - 7 ) ) == 3 ) {\n jbig2_decode_mmr_consume ( mmr , 7 ) ;\n b1 = jbig2_find_changing_element_of_color ( ref , a0 , mmr -> width , ! c ) ;\n if ( b1 + 3 > mmr -> width ) break ;\n if ( c ) {\n if ( b1 + 3 < a0 || a0 < 0 ) return - 1 ;\n jbig2_set_bits ( dst , a0 , b1 + 3 ) ;\n }\n a0 = b1 + 3 ;\n c = ! c ;\n }\n else if ( ( word >> ( 32 - 3 ) ) == 2 ) {\n jbig2_decode_mmr_consume ( mmr , 3 ) ;\n b1 = jbig2_find_changing_element_of_color ( ref , a0 , mmr -> width , ! c ) ;\n if ( b1 - 1 < 0 ) break ;\n if ( c ) {\n if ( b1 - 1 < a0 || a0 < 0 ) return - 1 ;\n jbig2_set_bits ( dst , a0 , b1 - 1 ) ;\n }\n a0 = b1 - 1 ;\n c = ! c ;\n }\n else if ( ( word >> ( 32 - 6 ) ) == 2 ) {\n jbig2_decode_mmr_consume ( mmr , 6 ) ;\n b1 = jbig2_find_changing_element_of_color ( ref , a0 , mmr -> width , ! c ) ;\n if ( b1 - 2 < 0 ) break ;\n if ( c ) {\n if ( b1 - 2 < a0 || a0 < 0 ) return - 1 ;\n jbig2_set_bits ( dst , a0 , b1 - 2 ) ;\n }\n a0 = b1 - 2 ;\n c = ! c ;\n }\n else if ( ( word >> ( 32 - 7 ) ) == 2 ) {\n jbig2_decode_mmr_consume ( mmr , 7 ) ;\n b1 = jbig2_find_changing_element_of_color ( ref , a0 , mmr -> width , ! c ) ;\n if ( b1 - 3 < 0 ) break ;\n if ( c ) {\n if ( b1 - 3 < a0 || a0 < 0 ) return - 1 ;\n jbig2_set_bits ( dst , a0 , b1 - 3 ) ;\n }\n a0 = b1 - 3 ;\n c = ! c ;\n }\n else break ;\n }\n return 0 ;\n }"}
{"idx": 1486, "target": 0, "func": "static void xps_parse_gradient_brush ( xps_document * doc , const fz_matrix * ctm , const fz_rect * area , char * base_uri , xps_resource * dict , fz_xml * root , void ( * draw ) ( xps_document * , const fz_matrix * , const fz_rect * , struct stop * , int , fz_xml * , int ) ) {\n fz_xml * node ;\n char * opacity_att ;\n char * spread_att ;\n char * transform_att ;\n fz_xml * transform_tag = NULL ;\n fz_xml * stop_tag = NULL ;\n struct stop stop_list [ MAX_STOPS ] ;\n int stop_count ;\n fz_matrix transform ;\n int spread_method ;\n opacity_att = fz_xml_att ( root , \"Opacity\" ) ;\n spread_att = fz_xml_att ( root , \"SpreadMethod\" ) ;\n transform_att = fz_xml_att ( root , \"Transform\" ) ;\n for ( node = fz_xml_down ( root ) ;\n node ;\n node = fz_xml_next ( node ) ) {\n if ( ! strcmp ( fz_xml_tag ( node ) , \"LinearGradientBrush.Transform\" ) ) transform_tag = fz_xml_down ( node ) ;\n if ( ! strcmp ( fz_xml_tag ( node ) , \"RadialGradientBrush.Transform\" ) ) transform_tag = fz_xml_down ( node ) ;\n if ( ! strcmp ( fz_xml_tag ( node ) , \"LinearGradientBrush.GradientStops\" ) ) stop_tag = fz_xml_down ( node ) ;\n if ( ! strcmp ( fz_xml_tag ( node ) , \"RadialGradientBrush.GradientStops\" ) ) stop_tag = fz_xml_down ( node ) ;\n }\n xps_resolve_resource_reference ( doc , dict , & transform_att , & transform_tag , NULL ) ;\n spread_method = SPREAD_PAD ;\n if ( spread_att ) {\n if ( ! strcmp ( spread_att , \"Pad\" ) ) spread_method = SPREAD_PAD ;\n if ( ! strcmp ( spread_att , \"Reflect\" ) ) spread_method = SPREAD_REFLECT ;\n if ( ! strcmp ( spread_att , \"Repeat\" ) ) spread_method = SPREAD_REPEAT ;\n }\n transform = fz_identity ;\n if ( transform_att ) xps_parse_render_transform ( doc , transform_att , & transform ) ;\n if ( transform_tag ) xps_parse_matrix_transform ( doc , transform_tag , & transform ) ;\n fz_concat ( & transform , & transform , ctm ) ;\n if ( ! stop_tag ) {\n fz_warn ( doc -> ctx , \"missing gradient stops tag\" ) ;\n return ;\n }\n stop_count = xps_parse_gradient_stops ( doc , base_uri , stop_tag , stop_list , MAX_STOPS ) ;\n if ( stop_count == 0 ) {\n fz_warn ( doc -> ctx , \"no gradient stops found\" ) ;\n return ;\n }\n xps_begin_opacity ( doc , & transform , area , base_uri , dict , opacity_att , NULL ) ;\n draw ( doc , & transform , area , stop_list , stop_count , root , spread_method ) ;\n xps_end_opacity ( doc , base_uri , dict , opacity_att , NULL ) ;\n }"}
{"idx": 1487, "target": 0, "func": "int EVP_DecryptFinal ( EVP_CIPHER_CTX * ctx , unsigned char * out , int * outl ) {\n int ret ;\n ret = EVP_DecryptFinal_ex ( ctx , out , outl ) ;\n return ret ;\n }"}
{"idx": 1488, "target": 0, "func": "static void copy_pack_data ( struct sha1file * f , struct packed_git * p , struct pack_window * * w_curs , off_t offset , off_t len ) {\n unsigned char * in ;\n unsigned long avail ;\n while ( len ) {\n in = use_pack ( p , w_curs , offset , & avail ) ;\n if ( avail > len ) avail = ( unsigned long ) len ;\n sha1write ( f , in , avail ) ;\n offset += avail ;\n len -= avail ;\n }\n }"}
{"idx": 1489, "target": 0, "func": "static void pdf_run_M ( fz_context * ctx , pdf_processor * proc , float miterlimit ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_gstate * gstate = pdf_flush_text ( ctx , pr ) ;\n pr -> dev -> flags &= ~ FZ_DEVFLAG_MITERLIMIT_UNDEFINED ;\n gstate -> stroke_state = fz_unshare_stroke_state ( ctx , gstate -> stroke_state ) ;\n gstate -> stroke_state -> miterlimit = miterlimit ;\n }"}
{"idx": 1490, "target": 0, "func": "static gboolean lacks_mount ( NautilusFile * file ) {\n return ( ! file -> details -> mount_is_up_to_date && ( file -> details -> is_mountpoint || ( file -> details -> type == G_FILE_TYPE_DIRECTORY && nautilus_file_is_self_owned ( file ) ) || ( file -> details -> type == G_FILE_TYPE_MOUNTABLE ) ) ) ;\n }"}
{"idx": 1491, "target": 0, "func": "static int s_aos_close ( stream * s ) {\n gs_free_object ( s -> memory , s -> cbuf , \"s_aos_close(buffer)\" ) ;\n s -> cbuf = 0 ;\n s -> read_id = s -> write_id = ( s -> read_id | s -> write_id ) + 1 ;\n return 0 ;\n }"}
{"idx": 1492, "target": 0, "func": "static struct async * async_getcompleted ( struct usb_dev_state * ps ) {\n unsigned long flags ;\n struct async * as = NULL ;\n spin_lock_irqsave ( & ps -> lock , flags ) ;\n if ( ! list_empty ( & ps -> async_completed ) ) {\n as = list_entry ( ps -> async_completed . next , struct async , asynclist ) ;\n list_del_init ( & as -> asynclist ) ;\n }\n spin_unlock_irqrestore ( & ps -> lock , flags ) ;\n return as ;\n }"}
{"idx": 1493, "target": 0, "func": "void sig_int ( int sig_num ) {\n msleep ( 400 ) ;\n if ( am_daemon && ! am_server && sig_num == SIGTERM ) exit_cleanup ( 0 ) ;\n if ( ! got_kill_signal && ( am_server || am_receiver ) ) {\n got_kill_signal = sig_num ;\n return ;\n }\n exit_cleanup ( RERR_SIGNAL ) ;\n }"}
{"idx": 1494, "target": 1, "func": "TEST_F ( TransportSecurityPersisterTest , PublicKeyHashes ) {\n TransportSecurityState : : DomainState domain_state ;\n static const char kTestDomain [ ] = \"example.com\" ;\n EXPECT_FALSE ( state_ . GetDomainState ( kTestDomain , false , & domain_state ) ) ;\n net : : HashValueVector hashes ;\n std : : string failure_log ;\n EXPECT_FALSE ( domain_state . CheckPublicKeyPins ( hashes , & failure_log ) ) ;\n net : : HashValue sha1 ( net : : HASH_VALUE_SHA1 ) ;\n memset ( sha1 . data ( ) , '1' , sha1 . size ( ) ) ;\n domain_state . dynamic_spki_hashes . push_back ( sha1 ) ;\n EXPECT_FALSE ( domain_state . CheckPublicKeyPins ( hashes , & failure_log ) ) ;\n hashes . push_back ( sha1 ) ;\n EXPECT_TRUE ( domain_state . CheckPublicKeyPins ( hashes , & failure_log ) ) ;\n hashes [ 0 ] . data ( ) [ 0 ] = '2' ;\n EXPECT_FALSE ( domain_state . CheckPublicKeyPins ( hashes , & failure_log ) ) ;\n const base : : Time current_time ( base : : Time : : Now ( ) ) ;\n const base : : Time expiry = current_time + base : : TimeDelta : : FromSeconds ( 1000 ) ;\n bool include_subdomains = false ;\n state_ . AddHSTS ( kTestDomain , expiry , include_subdomains ) ;\n state_ . AddHPKP ( kTestDomain , expiry , include_subdomains , domain_state . dynamic_spki_hashes ) ;\n std : : string ser ;\n EXPECT_TRUE ( persister_ -> SerializeData ( & ser ) ) ;\n bool dirty ;\n EXPECT_TRUE ( persister_ -> LoadEntries ( ser , & dirty ) ) ;\n EXPECT_TRUE ( state_ . GetDomainState ( kTestDomain , false , & domain_state ) ) ;\n EXPECT_EQ ( 1u , domain_state . dynamic_spki_hashes . size ( ) ) ;\n EXPECT_EQ ( sha1 . tag , domain_state . dynamic_spki_hashes [ 0 ] . tag ) ;\n EXPECT_EQ ( 0 , memcmp ( domain_state . dynamic_spki_hashes [ 0 ] . data ( ) , sha1 . data ( ) , sha1 . size ( ) ) ) ;\n }"}
{"idx": 1495, "target": 0, "func": "IN_PROC_BROWSER_TEST_P ( DetachToBrowserTabDragControllerTest , DragInSameWindow ) {\n if ( input_source ( ) == INPUT_SOURCE_TOUCH ) {\n VLOG ( 1 ) << \"Test is DISABLED for touch input.\" ;\n return ;\n }\n AddTabAndResetBrowser ( browser ( ) ) ;\n TabStrip * tab_strip = GetTabStripForBrowser ( browser ( ) ) ;\n TabStripModel * model = browser ( ) -> tab_strip_model ( ) ;\n gfx : : Point tab_1_center ( GetCenterInScreenCoordinates ( tab_strip -> tab_at ( 1 ) ) ) ;\n ASSERT_TRUE ( PressInput ( tab_1_center ) ) ;\n gfx : : Point tab_0_center ( GetCenterInScreenCoordinates ( tab_strip -> tab_at ( 0 ) ) ) ;\n ASSERT_TRUE ( DragInputTo ( tab_0_center ) ) ;\n ASSERT_TRUE ( ReleaseInput ( ) ) ;\n EXPECT_EQ ( \"1 0\" , IDString ( model ) ) ;\n EXPECT_FALSE ( TabDragController : : IsActive ( ) ) ;\n EXPECT_FALSE ( tab_strip -> IsDragSessionActive ( ) ) ;\n EXPECT_FALSE ( tab_strip -> GetWidget ( ) -> HasCapture ( ) ) ;\n }"}
{"idx": 1496, "target": 0, "func": "static void _slurm_rpc_job_sbcast_cred ( slurm_msg_t * msg ) {\n # ifdef HAVE_FRONT_END slurm_send_rc_msg ( msg , ESLURM_NOT_SUPPORTED ) ;\n # else int error_code = SLURM_SUCCESS ;\n slurm_msg_t response_msg ;\n struct job_record * job_ptr = NULL , * job_pack_ptr ;\n struct step_record * step_ptr ;\n char * local_node_list = NULL , * node_list = NULL ;\n struct node_record * node_ptr ;\n slurm_addr_t * node_addr = NULL ;\n hostlist_t host_list = NULL ;\n char * this_node_name ;\n int node_inx = 0 ;\n uint32_t node_cnt = 0 ;\n DEF_TIMERS ;\n step_alloc_info_msg_t * job_info_msg = ( step_alloc_info_msg_t * ) msg -> data ;\n job_sbcast_cred_msg_t job_info_resp_msg ;\n sbcast_cred_arg_t sbcast_arg ;\n sbcast_cred_t * sbcast_cred ;\n slurmctld_lock_t job_read_lock = {\n READ_LOCK , READ_LOCK , READ_LOCK , NO_LOCK , NO_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n START_TIMER ;\n debug2 ( \"Processing RPC: REQUEST_JOB_SBCAST_CRED from uid=%d\" , uid ) ;\n lock_slurmctld ( job_read_lock ) ;\n if ( job_info_msg -> pack_job_offset == NO_VAL ) {\n bitstr_t * node_bitmap = NULL ;\n ListIterator iter ;\n error_code = job_alloc_info ( uid , job_info_msg -> job_id , & job_ptr ) ;\n if ( job_ptr && job_ptr -> pack_job_list ) {\n job_info_msg -> step_id = NO_VAL ;\n iter = list_iterator_create ( job_ptr -> pack_job_list ) ;\n while ( ( job_pack_ptr = ( struct job_record * ) list_next ( iter ) ) ) {\n error_code = job_alloc_info_ptr ( uid , job_pack_ptr ) ;\n if ( error_code ) break ;\n if ( ! job_pack_ptr -> node_bitmap ) {\n debug ( \"%s: Job %u lacks node bitmap\" , __func__ , job_pack_ptr -> job_id ) ;\n }\n else if ( ! node_bitmap ) {\n node_bitmap = bit_copy ( job_pack_ptr -> node_bitmap ) ;\n }\n else {\n bit_or ( node_bitmap , job_pack_ptr -> node_bitmap ) ;\n }\n }\n list_iterator_destroy ( iter ) ;\n if ( ! error_code ) {\n node_cnt = bit_set_count ( node_bitmap ) ;\n local_node_list = bitmap2node_name ( node_bitmap ) ;\n node_list = local_node_list ;\n node_addr = _build_node_addr ( node_list , node_cnt , job_ptr -> job_id ) ;\n if ( ! node_addr ) error_code = SLURM_ERROR ;\n }\n FREE_NULL_BITMAP ( node_bitmap ) ;\n }\n }\n else {\n job_ptr = find_job_pack_record ( job_info_msg -> job_id , job_info_msg -> pack_job_offset ) ;\n if ( job_ptr ) {\n job_info_msg -> job_id = job_ptr -> job_id ;\n error_code = job_alloc_info ( uid , job_info_msg -> job_id , & job_ptr ) ;\n }\n else {\n error_code = ESLURM_INVALID_JOB_ID ;\n }\n }\n if ( job_ptr && ! validate_operator ( uid ) && job_ptr -> user_id != uid ) error_code = ESLURM_USER_ID_MISSING ;\n if ( ( error_code == SLURM_SUCCESS ) && job_ptr && ( job_info_msg -> step_id != NO_VAL ) ) {\n step_ptr = find_step_record ( job_ptr , job_info_msg -> step_id ) ;\n if ( ! step_ptr ) {\n job_ptr = NULL ;\n error_code = ESLURM_INVALID_JOB_ID ;\n }\n else if ( step_ptr -> step_layout && ( step_ptr -> step_layout -> node_cnt != job_ptr -> node_cnt ) ) {\n node_cnt = step_ptr -> step_layout -> node_cnt ;\n node_list = step_ptr -> step_layout -> node_list ;\n if ( ( host_list = hostlist_create ( node_list ) ) == NULL ) {\n fatal ( \"hostlist_create error for %s: %m\" , node_list ) ;\n return ;\n }\n node_addr = xmalloc ( sizeof ( slurm_addr_t ) * node_cnt ) ;\n while ( ( this_node_name = hostlist_shift ( host_list ) ) ) {\n if ( ( node_ptr = find_node_record ( this_node_name ) ) ) {\n memcpy ( & node_addr [ node_inx ++ ] , & node_ptr -> slurm_addr , sizeof ( slurm_addr_t ) ) ;\n }\n else {\n error ( \"Invalid node %s in Step=%u.%u\" , this_node_name , job_ptr -> job_id , step_ptr -> step_id ) ;\n }\n free ( this_node_name ) ;\n }\n hostlist_destroy ( host_list ) ;\n }\n }\n if ( ( error_code == SLURM_SUCCESS ) && job_ptr && ! node_addr ) {\n node_addr = job_ptr -> node_addr ;\n node_cnt = job_ptr -> node_cnt ;\n node_list = job_ptr -> nodes ;\n node_addr = xmalloc ( sizeof ( slurm_addr_t ) * node_cnt ) ;\n memcpy ( node_addr , job_ptr -> node_addr , ( sizeof ( slurm_addr_t ) * node_cnt ) ) ;\n }\n END_TIMER2 ( \"_slurm_rpc_job_sbcast_cred\" ) ;\n if ( error_code || ( job_ptr == NULL ) ) {\n unlock_slurmctld ( job_read_lock ) ;\n debug2 ( \"_slurm_rpc_job_sbcast_cred: JobId=%u, uid=%u: %s\" , job_info_msg -> job_id , uid , slurm_strerror ( error_code ) ) ;\n slurm_send_rc_msg ( msg , error_code ) ;\n xfree ( local_node_list ) ;\n xfree ( node_addr ) ;\n return ;\n }\n memset ( & sbcast_arg , 0 , sizeof ( sbcast_cred_arg_t ) ) ;\n sbcast_arg . job_id = job_ptr -> job_id ;\n sbcast_arg . uid = job_ptr -> user_id ;\n sbcast_arg . gid = job_ptr -> group_id ;\n if ( slurmctld_config . send_groups_in_cred ) {\n if ( ! job_ptr -> user_name ) job_ptr -> user_name = uid_to_string_or_null ( job_ptr -> user_id ) ;\n sbcast_arg . user_name = job_ptr -> user_name ;\n if ( ! job_ptr -> ngids || ! job_ptr -> gids ) job_ptr -> ngids = group_cache_lookup ( job_ptr -> user_id , job_ptr -> group_id , job_ptr -> user_name , & job_ptr -> gids ) ;\n sbcast_arg . ngids = job_ptr -> ngids ;\n sbcast_arg . gids = job_ptr -> gids ;\n }\n sbcast_arg . nodes = node_list ;\n sbcast_arg . expiration = job_ptr -> end_time ;\n if ( ( sbcast_cred = create_sbcast_cred ( slurmctld_config . cred_ctx , & sbcast_arg , msg -> protocol_version ) ) == NULL ) {\n unlock_slurmctld ( job_read_lock ) ;\n error ( \"_slurm_rpc_job_sbcast_cred JobId=%u cred create error\" , job_info_msg -> job_id ) ;\n slurm_send_rc_msg ( msg , SLURM_ERROR ) ;\n }\n else {\n if ( job_ptr && ( job_info_msg -> step_id != NO_VAL ) ) {\n info ( \"_slurm_rpc_job_sbcast_cred Job=%u NodeList=%s %s\" , job_info_msg -> job_id , node_list , TIME_STR ) ;\n }\n else {\n info ( \"_slurm_rpc_job_sbcast_cred Step=%u.%u \" \"NodeList=%s %s\" , job_info_msg -> job_id , job_info_msg -> step_id , node_list , TIME_STR ) ;\n }\n job_info_resp_msg . job_id = job_ptr -> job_id ;\n job_info_resp_msg . node_addr = node_addr ;\n job_info_resp_msg . node_cnt = node_cnt ;\n job_info_resp_msg . node_list = xstrdup ( node_list ) ;\n job_info_resp_msg . sbcast_cred = sbcast_cred ;\n unlock_slurmctld ( job_read_lock ) ;\n slurm_msg_t_init ( & response_msg ) ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . msg_type = RESPONSE_JOB_SBCAST_CRED ;\n response_msg . data = & job_info_resp_msg ;\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n xfree ( job_info_resp_msg . node_list ) ;\n delete_sbcast_cred ( sbcast_cred ) ;\n }\n xfree ( local_node_list ) ;\n xfree ( node_addr ) ;\n # endif }"}
{"idx": 1497, "target": 0, "func": "static int ps2_kbd_ledstate_post_load ( void * opaque , int version_id ) {\n PS2KbdState * s = opaque ;\n kbd_put_ledstate ( s -> ledstate ) ;\n return 0 ;\n }"}
{"idx": 1498, "target": 0, "func": "static char * strippath ( const char * fullfile ) {\n char * filename ;\n char * base ;\n filename = strdup ( fullfile ) ;\n if ( ! filename ) return NULL ;\n base = strdup ( basename ( filename ) ) ;\n free ( filename ) ;\n return base ;\n }"}
{"idx": 1499, "target": 0, "func": "void dissect_q931_high_layer_compat_ie ( tvbuff_t * tvb , int offset , int len , proto_tree * tree ) {\n guint8 octet ;\n guint8 coding_standard ;\n guint8 pres_method ;\n guint8 characteristics ;\n if ( len == 0 ) return ;\n octet = tvb_get_guint8 ( tvb , offset ) ;\n coding_standard = octet & 0x60 ;\n pres_method = octet & 0x03 ;\n proto_tree_add_item ( tree , hf_q931_extension_ind , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_uint ( tree , hf_q931_coding_standard , tvb , offset , 1 , octet ) ;\n proto_tree_add_uint ( tree , hf_q931_interpretation , tvb , offset , 1 , octet ) ;\n proto_tree_add_uint ( tree , hf_q931_pres_meth_prot_prof , tvb , offset , 1 , octet ) ;\n offset += 1 ;\n len -= 1 ;\n if ( ( coding_standard != Q931_ITU_STANDARDIZED_CODING ) || ( pres_method != Q931_HIGH_LAYER_PROTOCOL_PROFILE ) ) {\n proto_tree_add_item ( tree , hf_q931_high_layer_compat_data , tvb , offset , len , ENC_NA ) ;\n return ;\n }\n if ( len == 0 ) return ;\n octet = tvb_get_guint8 ( tvb , offset ) ;\n characteristics = octet & 0x7F ;\n proto_tree_add_item ( tree , hf_q931_extension_ind , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_uint ( tree , hf_q931_high_layer_characteristics , tvb , offset , 1 , octet ) ;\n offset += 1 ;\n len -= 1 ;\n if ( ! ( octet & Q931_IE_VL_EXTENSION ) ) {\n if ( len == 0 ) return ;\n octet = tvb_get_guint8 ( tvb , offset ) ;\n if ( ( characteristics == Q931_AUDIOVISUAL ) || ( characteristics == 0x61 ) || ( characteristics == 0x62 ) || ( characteristics == 0x68 ) ) {\n proto_tree_add_item ( tree , hf_q931_extension_ind , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_uint ( tree , hf_q931_extended_audiovisual_characteristics , tvb , offset , 1 , octet ) ;\n }\n else if ( ( characteristics == Q931_MANAGEMENT ) || ( characteristics == Q931_MAINTENANCE ) ) {\n proto_tree_add_item ( tree , hf_q931_extension_ind , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_uint ( tree , hf_q931_extended_high_layer_characteristics , tvb , offset , 1 , octet ) ;\n }\n }\n }"}
{"idx": 1500, "target": 0, "func": "static void convert_UTF8_to_JSON_ASCII ( FBuffer * buffer , VALUE string ) {\n const UTF8 * source = ( UTF8 * ) RSTRING_PTR ( string ) ;\n const UTF8 * sourceEnd = source + RSTRING_LEN ( string ) ;\n char buf [ 6 ] = {\n '\\\\' , 'u' }\n ;\n while ( source < sourceEnd ) {\n UTF32 ch = 0 ;\n unsigned short extraBytesToRead = trailingBytesForUTF8 [ * source ] ;\n if ( source + extraBytesToRead >= sourceEnd ) {\n rb_raise ( rb_path2class ( \"JSON::GeneratorError\" ) , \"partial character in source, but hit end\" ) ;\n }\n if ( ! isLegalUTF8 ( source , extraBytesToRead + 1 ) ) {\n rb_raise ( rb_path2class ( \"JSON::GeneratorError\" ) , \"source sequence is illegal/malformed utf-8\" ) ;\n }\n switch ( extraBytesToRead ) {\n case 5 : ch += * source ++ ;\n ch <<= 6 ;\n case 4 : ch += * source ++ ;\n ch <<= 6 ;\n case 3 : ch += * source ++ ;\n ch <<= 6 ;\n case 2 : ch += * source ++ ;\n ch <<= 6 ;\n case 1 : ch += * source ++ ;\n ch <<= 6 ;\n case 0 : ch += * source ++ ;\n }\n ch -= offsetsFromUTF8 [ extraBytesToRead ] ;\n if ( ch <= UNI_MAX_BMP ) {\n if ( ch >= UNI_SUR_HIGH_START && ch <= UNI_SUR_LOW_END ) {\n # if UNI_STRICT_CONVERSION source -= ( extraBytesToRead + 1 ) ;\n rb_raise ( rb_path2class ( \"JSON::GeneratorError\" ) , \"source sequence is illegal/malformed utf-8\" ) ;\n # else unicode_escape_to_buffer ( buffer , buf , UNI_REPLACEMENT_CHAR ) ;\n # endif }\n else {\n if ( ch >= 0x20 && ch <= 0x7f ) {\n switch ( ch ) {\n case '\\\\' : fbuffer_append ( buffer , \"\\\\\\\\\" , 2 ) ;\n break ;\n case '\"' : fbuffer_append ( buffer , \"\\\\\\\"\" , 2 ) ;\n break ;\n default : fbuffer_append_char ( buffer , ( char ) ch ) ;\n break ;\n }\n }\n else {\n switch ( ch ) {\n case '\\n' : fbuffer_append ( buffer , \"\\\\n\" , 2 ) ;\n break ;\n case '\\r' : fbuffer_append ( buffer , \"\\\\r\" , 2 ) ;\n break ;\n case '\\t' : fbuffer_append ( buffer , \"\\\\t\" , 2 ) ;\n break ;\n case '\\f' : fbuffer_append ( buffer , \"\\\\f\" , 2 ) ;\n break ;\n case '\\b' : fbuffer_append ( buffer , \"\\\\b\" , 2 ) ;\n break ;\n default : unicode_escape_to_buffer ( buffer , buf , ( UTF16 ) ch ) ;\n break ;\n }\n }\n }\n }\n else if ( ch > UNI_MAX_UTF16 ) {\n # if UNI_STRICT_CONVERSION source -= ( extraBytesToRead + 1 ) ;\n rb_raise ( rb_path2class ( \"JSON::GeneratorError\" ) , \"source sequence is illegal/malformed utf8\" ) ;\n # else unicode_escape_to_buffer ( buffer , buf , UNI_REPLACEMENT_CHAR ) ;\n # endif }\n else {\n ch -= halfBase ;\n unicode_escape_to_buffer ( buffer , buf , ( UTF16 ) ( ( ch >> halfShift ) + UNI_SUR_HIGH_START ) ) ;\n unicode_escape_to_buffer ( buffer , buf , ( UTF16 ) ( ( ch & halfMask ) + UNI_SUR_LOW_START ) ) ;\n }\n }\n RB_GC_GUARD ( string ) ;\n }"}
{"idx": 1501, "target": 0, "func": "static int dissect_h245_T_mode_rfc2733sameport ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_mode_rfc2733sameport , T_mode_rfc2733sameport_sequence ) ;\n return offset ;\n }"}
{"idx": 1502, "target": 0, "func": "static const char * default_iconv_charset ( const char * charset ) {\n if ( charset != NULL && charset [ 0 ] != '\\0' ) return charset ;\n # if HAVE_LOCALE_CHARSET && ! defined ( __APPLE__ ) return locale_charset ( ) ;\n # elif HAVE_NL_LANGINFO return nl_langinfo ( CODESET ) ;\n # else return \"\" ;\n # endif }"}
{"idx": 1503, "target": 0, "func": "int TSHttpTxnIsCacheable ( TSHttpTxn txnp , TSMBuffer request , TSMBuffer response ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n HTTPHdr * req , * resp ;\n if ( request ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( request ) == TS_SUCCESS ) ;\n req = reinterpret_cast < HTTPHdr * > ( request ) ;\n }\n else {\n req = & ( sm -> t_state . hdr_info . client_request ) ;\n }\n if ( response ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( response ) == TS_SUCCESS ) ;\n resp = reinterpret_cast < HTTPHdr * > ( response ) ;\n }\n else {\n resp = & ( sm -> t_state . hdr_info . server_response ) ;\n }\n return ( req -> valid ( ) && resp -> valid ( ) && HttpTransact : : is_response_cacheable ( & ( sm -> t_state ) , req , resp ) ) ? 1 : 0 ;\n }"}
{"idx": 1504, "target": 0, "func": "void vp9_append_sub8x8_mvs_for_idx ( VP9_COMMON * cm , MACROBLOCKD * xd , const TileInfo * const tile , int block , int ref , int mi_row , int mi_col , int_mv * nearest , int_mv * near ) {\n int_mv mv_list [ MAX_MV_REF_CANDIDATES ] ;\n MODE_INFO * const mi = xd -> mi [ 0 ] . src_mi ;\n b_mode_info * bmi = mi -> bmi ;\n int n ;\n assert ( MAX_MV_REF_CANDIDATES == 2 ) ;\n find_mv_refs_idx ( cm , xd , tile , mi , mi -> mbmi . ref_frame [ ref ] , mv_list , block , mi_row , mi_col ) ;\n near -> as_int = 0 ;\n switch ( block ) {\n case 0 : nearest -> as_int = mv_list [ 0 ] . as_int ;\n near -> as_int = mv_list [ 1 ] . as_int ;\n break ;\n case 1 : case 2 : nearest -> as_int = bmi [ 0 ] . as_mv [ ref ] . as_int ;\n for ( n = 0 ;\n n < MAX_MV_REF_CANDIDATES ;\n ++ n ) if ( nearest -> as_int != mv_list [ n ] . as_int ) {\n near -> as_int = mv_list [ n ] . as_int ;\n break ;\n }\n break ;\n case 3 : {\n int_mv candidates [ 2 + MAX_MV_REF_CANDIDATES ] ;\n candidates [ 0 ] = bmi [ 1 ] . as_mv [ ref ] ;\n candidates [ 1 ] = bmi [ 0 ] . as_mv [ ref ] ;\n candidates [ 2 ] = mv_list [ 0 ] ;\n candidates [ 3 ] = mv_list [ 1 ] ;\n nearest -> as_int = bmi [ 2 ] . as_mv [ ref ] . as_int ;\n for ( n = 0 ;\n n < 2 + MAX_MV_REF_CANDIDATES ;\n ++ n ) if ( nearest -> as_int != candidates [ n ] . as_int ) {\n near -> as_int = candidates [ n ] . as_int ;\n break ;\n }\n break ;\n }\n default : assert ( \"Invalid block index.\" ) ;\n }\n }"}
{"idx": 1505, "target": 0, "func": "proto_tree * ptvcursor_add_text_with_subtree ( ptvcursor_t * ptvc , gint length , gint ett_subtree , const char * format , ... ) {\n proto_item * pi ;\n va_list ap ;\n header_field_info * hfinfo ;\n proto_tree * tree ;\n tree = ptvcursor_tree ( ptvc ) ;\n CHECK_FOR_NULL_TREE ( tree ) ;\n TRY_TO_FAKE_THIS_ITEM ( tree , hf_text_only , hfinfo ) ;\n pi = proto_tree_add_text_node ( tree , ptvcursor_tvbuff ( ptvc ) , ptvcursor_current_offset ( ptvc ) , length ) ;\n TRY_TO_FAKE_THIS_REPR ( pi ) ;\n va_start ( ap , format ) ;\n proto_tree_set_representation ( pi , format , ap ) ;\n va_end ( ap ) ;\n return ptvcursor_add_subtree_item ( ptvc , pi , ett_subtree , length ) ;\n }"}
{"idx": 1506, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( SiteDetailsBrowserTest , PlatformAppsNotIsolated ) {\n if ( content : : AreAllSitesIsolatedForTesting ( ) ) return ;\n CreateAppWithSandboxPage ( \"Extension One\" ) ;\n scoped_refptr < TestMemoryDetails > details = new TestMemoryDetails ( ) ;\n details -> StartFetchAndWait ( ) ;\n EXPECT_EQ ( 0 , details -> GetOutOfProcessIframeCount ( ) ) ;\n }"}
{"idx": 1507, "target": 0, "func": "void sortassoc ( void ) {\n if ( numassoc > 1 ) qsort ( assoc_cache , ( size_t ) numassoc , sizeof ( assoc_cache [ 0 ] ) , & assoccmp ) ;\n }"}
{"idx": 1508, "target": 0, "func": "static void print_error ( FILE * where , char * fmt , ... ) {\n char temp [ 10000 ] ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n {\n vsnprintf ( temp , 9998 , fmt , ap ) ;\n }\n va_end ( ap ) ;\n syslog ( LOG_INFO , temp ) ;\n if ( where != NULL ) fprintf ( where , \"Das_Watchdog: %s\\n\" , temp ) ;\n }"}
{"idx": 1509, "target": 0, "func": "static int lexescape ( struct vars * v ) {\n chr c ;\n static const chr alert [ ] = {\n CHR ( 'a' ) , CHR ( 'l' ) , CHR ( 'e' ) , CHR ( 'r' ) , CHR ( 't' ) }\n ;\n static const chr esc [ ] = {\n CHR ( 'E' ) , CHR ( 'S' ) , CHR ( 'C' ) }\n ;\n const chr * save ;\n assert ( v -> cflags & REG_ADVF ) ;\n assert ( ! ATEOS ( ) ) ;\n c = * v -> now ++ ;\n if ( ! iscalnum ( c ) ) RETV ( PLAIN , c ) ;\n NOTE ( REG_UNONPOSIX ) ;\n switch ( c ) {\n case CHR ( 'a' ) : RETV ( PLAIN , chrnamed ( v , alert , ENDOF ( alert ) , CHR ( '\\007' ) ) ) ;\n break ;\n case CHR ( 'A' ) : RETV ( SBEGIN , 0 ) ;\n break ;\n case CHR ( 'b' ) : RETV ( PLAIN , CHR ( '\\b' ) ) ;\n break ;\n case CHR ( 'B' ) : RETV ( PLAIN , CHR ( '\\\\' ) ) ;\n break ;\n case CHR ( 'c' ) : NOTE ( REG_UUNPORT ) ;\n if ( ATEOS ( ) ) FAILW ( REG_EESCAPE ) ;\n RETV ( PLAIN , ( chr ) ( * v -> now ++ & 037 ) ) ;\n break ;\n case CHR ( 'd' ) : NOTE ( REG_ULOCALE ) ;\n RETV ( CCLASS , 'd' ) ;\n break ;\n case CHR ( 'D' ) : NOTE ( REG_ULOCALE ) ;\n RETV ( CCLASS , 'D' ) ;\n break ;\n case CHR ( 'e' ) : NOTE ( REG_UUNPORT ) ;\n RETV ( PLAIN , chrnamed ( v , esc , ENDOF ( esc ) , CHR ( '\\033' ) ) ) ;\n break ;\n case CHR ( 'f' ) : RETV ( PLAIN , CHR ( '\\f' ) ) ;\n break ;\n case CHR ( 'm' ) : RET ( '<' ) ;\n break ;\n case CHR ( 'M' ) : RET ( '>' ) ;\n break ;\n case CHR ( 'n' ) : RETV ( PLAIN , CHR ( '\\n' ) ) ;\n break ;\n case CHR ( 'r' ) : RETV ( PLAIN , CHR ( '\\r' ) ) ;\n break ;\n case CHR ( 's' ) : NOTE ( REG_ULOCALE ) ;\n RETV ( CCLASS , 's' ) ;\n break ;\n case CHR ( 'S' ) : NOTE ( REG_ULOCALE ) ;\n RETV ( CCLASS , 'S' ) ;\n break ;\n case CHR ( 't' ) : RETV ( PLAIN , CHR ( '\\t' ) ) ;\n break ;\n case CHR ( 'u' ) : c = lexdigits ( v , 16 , 4 , 4 ) ;\n if ( ISERR ( ) || c < CHR_MIN || c > CHR_MAX ) FAILW ( REG_EESCAPE ) ;\n RETV ( PLAIN , c ) ;\n break ;\n case CHR ( 'U' ) : c = lexdigits ( v , 16 , 8 , 8 ) ;\n if ( ISERR ( ) || c < CHR_MIN || c > CHR_MAX ) FAILW ( REG_EESCAPE ) ;\n RETV ( PLAIN , c ) ;\n break ;\n case CHR ( 'v' ) : RETV ( PLAIN , CHR ( '\\v' ) ) ;\n break ;\n case CHR ( 'w' ) : NOTE ( REG_ULOCALE ) ;\n RETV ( CCLASS , 'w' ) ;\n break ;\n case CHR ( 'W' ) : NOTE ( REG_ULOCALE ) ;\n RETV ( CCLASS , 'W' ) ;\n break ;\n case CHR ( 'x' ) : NOTE ( REG_UUNPORT ) ;\n c = lexdigits ( v , 16 , 1 , 255 ) ;\n if ( ISERR ( ) || c < CHR_MIN || c > CHR_MAX ) FAILW ( REG_EESCAPE ) ;\n RETV ( PLAIN , c ) ;\n break ;\n case CHR ( 'y' ) : NOTE ( REG_ULOCALE ) ;\n RETV ( WBDRY , 0 ) ;\n break ;\n case CHR ( 'Y' ) : NOTE ( REG_ULOCALE ) ;\n RETV ( NWBDRY , 0 ) ;\n break ;\n case CHR ( 'Z' ) : RETV ( SEND , 0 ) ;\n break ;\n case CHR ( '1' ) : case CHR ( '2' ) : case CHR ( '3' ) : case CHR ( '4' ) : case CHR ( '5' ) : case CHR ( '6' ) : case CHR ( '7' ) : case CHR ( '8' ) : case CHR ( '9' ) : save = v -> now ;\n v -> now -- ;\n c = lexdigits ( v , 10 , 1 , 255 ) ;\n if ( ISERR ( ) ) FAILW ( REG_EESCAPE ) ;\n if ( v -> now == save || ( ( int ) c > 0 && ( int ) c <= v -> nsubexp ) ) {\n NOTE ( REG_UBACKREF ) ;\n RETV ( BACKREF , ( chr ) c ) ;\n }\n v -> now = save ;\n case CHR ( '0' ) : NOTE ( REG_UUNPORT ) ;\n v -> now -- ;\n c = lexdigits ( v , 8 , 1 , 3 ) ;\n if ( ISERR ( ) ) FAILW ( REG_EESCAPE ) ;\n if ( c > 0xff ) {\n v -> now -- ;\n c >>= 3 ;\n }\n RETV ( PLAIN , c ) ;\n break ;\n default : assert ( iscalpha ( c ) ) ;\n FAILW ( REG_EESCAPE ) ;\n break ;\n }\n assert ( NOTREACHED ) ;\n }"}
{"idx": 1510, "target": 0, "func": "static int add_recent_packed ( const unsigned char * sha1 , struct packed_git * p , uint32_t pos , void * data ) {\n struct object * obj = lookup_object ( sha1 ) ;\n if ( obj && obj -> flags & SEEN ) return 0 ;\n add_recent_object ( sha1 , p -> mtime , data ) ;\n return 0 ;\n }"}
{"idx": 1511, "target": 0, "func": "static void pmac_ide_atapi_transfer_cb ( void * opaque , int ret ) {\n DBDMA_io * io = opaque ;\n MACIOIDEState * m = io -> opaque ;\n IDEState * s = idebus_active_if ( & m -> bus ) ;\n int unaligned ;\n if ( ret < 0 ) {\n m -> aiocb = NULL ;\n qemu_sglist_destroy ( & s -> sg ) ;\n ide_atapi_io_error ( s , ret ) ;\n io -> remainder_len = 0 ;\n goto done ;\n }\n if ( ! m -> dma_active ) {\n MACIO_DPRINTF ( \"waiting for data (%#x - %#x - %x)\\n\" , s -> nsector , io -> len , s -> status ) ;\n io -> processing = false ;\n return ;\n }\n MACIO_DPRINTF ( \"io_buffer_size = %#x\\n\" , s -> io_buffer_size ) ;\n if ( s -> io_buffer_size > 0 ) {\n m -> aiocb = NULL ;\n qemu_sglist_destroy ( & s -> sg ) ;\n s -> packet_transfer_size -= s -> io_buffer_size ;\n s -> io_buffer_index += s -> io_buffer_size ;\n s -> lba += s -> io_buffer_index >> 11 ;\n s -> io_buffer_index &= 0x7ff ;\n }\n s -> io_buffer_size = MIN ( io -> len , s -> packet_transfer_size ) ;\n MACIO_DPRINTF ( \"remainder: %d io->len: %d size: %d\\n\" , io -> remainder_len , io -> len , s -> packet_transfer_size ) ;\n if ( io -> remainder_len && io -> len ) {\n int remainder_len = MIN ( io -> remainder_len , io -> len ) ;\n MACIO_DPRINTF ( \"copying remainder %d bytes\\n\" , remainder_len ) ;\n cpu_physical_memory_write ( io -> addr , io -> remainder + 0x200 - remainder_len , remainder_len ) ;\n io -> addr += remainder_len ;\n io -> len -= remainder_len ;\n s -> io_buffer_size = remainder_len ;\n io -> remainder_len -= remainder_len ;\n qemu_sglist_init ( & s -> sg , DEVICE ( m ) , io -> len / MACIO_PAGE_SIZE + 1 , & address_space_memory ) ;\n pmac_ide_atapi_transfer_cb ( opaque , 0 ) ;\n return ;\n }\n if ( ! s -> packet_transfer_size ) {\n MACIO_DPRINTF ( \"end of transfer\\n\" ) ;\n ide_atapi_cmd_ok ( s ) ;\n m -> dma_active = false ;\n }\n if ( io -> len == 0 ) {\n MACIO_DPRINTF ( \"end of DMA\\n\" ) ;\n goto done ;\n }\n unaligned = io -> len & 0x1ff ;\n if ( unaligned ) {\n int sector_num = ( s -> lba << 2 ) + ( s -> io_buffer_index >> 9 ) ;\n int nsector = io -> len >> 9 ;\n MACIO_DPRINTF ( \"precopying unaligned %d bytes to %#\" HWADDR_PRIx \"\\n\" , unaligned , io -> addr + io -> len - unaligned ) ;\n blk_read ( s -> blk , sector_num + nsector , io -> remainder , 1 ) ;\n cpu_physical_memory_write ( io -> addr + io -> len - unaligned , io -> remainder , unaligned ) ;\n io -> len -= unaligned ;\n }\n MACIO_DPRINTF ( \"io->len = %#x\\n\" , io -> len ) ;\n qemu_sglist_init ( & s -> sg , DEVICE ( m ) , io -> len / MACIO_PAGE_SIZE + 1 , & address_space_memory ) ;\n qemu_sglist_add ( & s -> sg , io -> addr , io -> len ) ;\n io -> addr += s -> io_buffer_size ;\n io -> remainder_len = MIN ( s -> packet_transfer_size - s -> io_buffer_size , ( 0x200 - unaligned ) & 0x1ff ) ;\n MACIO_DPRINTF ( \"set remainder to: %d\\n\" , io -> remainder_len ) ;\n if ( ! io -> len ) {\n pmac_ide_atapi_transfer_cb ( opaque , 0 ) ;\n return ;\n }\n io -> len = 0 ;\n MACIO_DPRINTF ( \"sector_num=%d size=%d, cmd_cmd=%d\\n\" , ( s -> lba << 2 ) + ( s -> io_buffer_index >> 9 ) , s -> packet_transfer_size , s -> dma_cmd ) ;\n m -> aiocb = dma_blk_read ( s -> blk , & s -> sg , ( int64_t ) ( s -> lba << 2 ) + ( s -> io_buffer_index >> 9 ) , pmac_ide_atapi_transfer_cb , io ) ;\n return ;\n done : MACIO_DPRINTF ( \"done DMA\\n\" ) ;\n block_acct_done ( blk_get_stats ( s -> blk ) , & s -> acct ) ;\n io -> dma_end ( opaque ) ;\n }"}
{"idx": 1512, "target": 0, "func": "static void transpose_path ( gx_path * path ) {\n segment * s = ( segment * ) path -> first_subpath ;\n exch ( path -> bbox . p . x , path -> bbox . p . y ) ;\n exch ( path -> bbox . q . x , path -> bbox . q . y ) ;\n for ( ;\n s ;\n s = s -> next ) {\n if ( s -> type == s_curve ) {\n curve_segment * c = ( curve_segment * ) s ;\n exch ( c -> p1 . x , c -> p1 . y ) ;\n exch ( c -> p2 . x , c -> p2 . y ) ;\n }\n exch ( s -> pt . x , s -> pt . y ) ;\n }\n }"}
{"idx": 1513, "target": 0, "func": "static inline int sk_mc_loop ( struct sock * sk ) {\n if ( ! sk ) return 1 ;\n switch ( sk -> sk_family ) {\n case AF_INET : return inet_sk ( sk ) -> mc_loop ;\n # if defined ( CONFIG_IPV6 ) || defined ( CONFIG_IPV6_MODULE ) case AF_INET6 : return inet6_sk ( sk ) -> mc_loop ;\n # endif }\n WARN_ON ( 1 ) ;\n return 1 ;\n }"}
{"idx": 1514, "target": 1, "func": "static void vc1_decode_i_blocks_adv ( VC1Context * v ) {\n int k ;\n MpegEncContext * s = & v -> s ;\n int cbp , val ;\n uint8_t * coded_val ;\n int mb_pos ;\n int mquant = v -> pq ;\n int mqdiff ;\n GetBitContext * gb = & s -> gb ;\n switch ( v -> y_ac_table_index ) {\n case 0 : v -> codingset = ( v -> pqindex <= 8 ) ? CS_HIGH_RATE_INTRA : CS_LOW_MOT_INTRA ;\n break ;\n case 1 : v -> codingset = CS_HIGH_MOT_INTRA ;\n break ;\n case 2 : v -> codingset = CS_MID_RATE_INTRA ;\n break ;\n }\n switch ( v -> c_ac_table_index ) {\n case 0 : v -> codingset2 = ( v -> pqindex <= 8 ) ? CS_HIGH_RATE_INTER : CS_LOW_MOT_INTER ;\n break ;\n case 1 : v -> codingset2 = CS_HIGH_MOT_INTER ;\n break ;\n case 2 : v -> codingset2 = CS_MID_RATE_INTER ;\n break ;\n }\n s -> mb_x = s -> mb_y = 0 ;\n s -> mb_intra = 1 ;\n s -> first_slice_line = 1 ;\n s -> mb_y = s -> start_mb_y ;\n if ( s -> start_mb_y ) {\n s -> mb_x = 0 ;\n ff_init_block_index ( s ) ;\n memset ( & s -> coded_block [ s -> block_index [ 0 ] - s -> b8_stride ] , 0 , ( 1 + s -> b8_stride ) * sizeof ( * s -> coded_block ) ) ;\n }\n for ( ;\n s -> mb_y < s -> end_mb_y ;\n s -> mb_y ++ ) {\n s -> mb_x = 0 ;\n ff_init_block_index ( s ) ;\n for ( ;\n s -> mb_x < s -> mb_width ;\n s -> mb_x ++ ) {\n int16_t ( * block ) [ 64 ] = v -> block [ v -> cur_blk_idx ] ;\n ff_update_block_index ( s ) ;\n s -> dsp . clear_blocks ( block [ 0 ] ) ;\n mb_pos = s -> mb_x + s -> mb_y * s -> mb_stride ;\n s -> current_picture . f . mb_type [ mb_pos + v -> mb_off ] = MB_TYPE_INTRA ;\n s -> current_picture . f . motion_val [ 1 ] [ s -> block_index [ 0 ] + v -> blocks_off ] [ 0 ] = 0 ;\n s -> current_picture . f . motion_val [ 1 ] [ s -> block_index [ 0 ] + v -> blocks_off ] [ 1 ] = 0 ;\n if ( v -> fieldtx_is_raw ) v -> fieldtx_plane [ mb_pos ] = get_bits1 ( & v -> s . gb ) ;\n cbp = get_vlc2 ( & v -> s . gb , ff_msmp4_mb_i_vlc . table , MB_INTRA_VLC_BITS , 2 ) ;\n if ( v -> acpred_is_raw ) v -> s . ac_pred = get_bits1 ( & v -> s . gb ) ;\n else v -> s . ac_pred = v -> acpred_plane [ mb_pos ] ;\n if ( v -> condover == CONDOVER_SELECT && v -> overflg_is_raw ) v -> over_flags_plane [ mb_pos ] = get_bits1 ( & v -> s . gb ) ;\n GET_MQUANT ( ) ;\n s -> current_picture . f . qscale_table [ mb_pos ] = mquant ;\n s -> y_dc_scale = s -> y_dc_scale_table [ mquant ] ;\n s -> c_dc_scale = s -> c_dc_scale_table [ mquant ] ;\n for ( k = 0 ;\n k < 6 ;\n k ++ ) {\n val = ( ( cbp >> ( 5 - k ) ) & 1 ) ;\n if ( k < 4 ) {\n int pred = vc1_coded_block_pred ( & v -> s , k , & coded_val ) ;\n val = val ^ pred ;\n * coded_val = val ;\n }\n cbp |= val << ( 5 - k ) ;\n v -> a_avail = ! s -> first_slice_line || ( k == 2 || k == 3 ) ;\n v -> c_avail = ! ! s -> mb_x || ( k == 1 || k == 3 ) ;\n vc1_decode_i_block_adv ( v , block [ k ] , k , val , ( k < 4 ) ? v -> codingset : v -> codingset2 , mquant ) ;\n if ( k > 3 && ( s -> flags & CODEC_FLAG_GRAY ) ) continue ;\n v -> vc1dsp . vc1_inv_trans_8x8 ( block [ k ] ) ;\n }\n vc1_smooth_overlap_filter_iblk ( v ) ;\n vc1_put_signed_blocks_clamped ( v ) ;\n if ( v -> s . loop_filter ) vc1_loop_filter_iblk_delayed ( v , v -> pq ) ;\n if ( get_bits_count ( & s -> gb ) > v -> bits ) {\n ff_er_add_slice ( & s -> er , 0 , s -> start_mb_y , s -> mb_x , s -> mb_y , ER_MB_ERROR ) ;\n av_log ( s -> avctx , AV_LOG_ERROR , \"Bits overconsumption: %i > %i\\n\" , get_bits_count ( & s -> gb ) , v -> bits ) ;\n return ;\n }\n }\n if ( ! v -> s . loop_filter ) ff_mpeg_draw_horiz_band ( s , s -> mb_y * 16 , 16 ) ;\n else if ( s -> mb_y ) ff_mpeg_draw_horiz_band ( s , ( s -> mb_y - 1 ) * 16 , 16 ) ;\n s -> first_slice_line = 0 ;\n }\n s -> mb_x = 0 ;\n ff_init_block_index ( s ) ;\n for ( ;\n s -> mb_x < s -> mb_width ;\n s -> mb_x ++ ) {\n ff_update_block_index ( s ) ;\n vc1_put_signed_blocks_clamped ( v ) ;\n if ( v -> s . loop_filter ) vc1_loop_filter_iblk_delayed ( v , v -> pq ) ;\n }\n if ( v -> s . loop_filter ) ff_mpeg_draw_horiz_band ( s , ( s -> end_mb_y - 1 ) * 16 , 16 ) ;\n ff_er_add_slice ( & s -> er , 0 , s -> start_mb_y << v -> field_mode , s -> mb_width - 1 , ( s -> end_mb_y << v -> field_mode ) - 1 , ER_MB_END ) ;\n }"}
{"idx": 1515, "target": 0, "func": "static void set_stream_dimensions ( struct stream_state * stream , unsigned int w , unsigned int h ) {\n if ( ! stream -> config . cfg . g_w ) {\n if ( ! stream -> config . cfg . g_h ) stream -> config . cfg . g_w = w ;\n else stream -> config . cfg . g_w = w * stream -> config . cfg . g_h / h ;\n }\n if ( ! stream -> config . cfg . g_h ) {\n stream -> config . cfg . g_h = h * stream -> config . cfg . g_w / w ;\n }\n }"}
{"idx": 1516, "target": 0, "func": "enum message_cte message_decoder_parse_cte ( struct message_header_line * hdr ) {\n struct rfc822_parser_context parser ;\n enum message_cte message_cte ;\n string_t * value ;\n value = t_str_new ( 64 ) ;\n rfc822_parser_init ( & parser , hdr -> full_value , hdr -> full_value_len , NULL ) ;\n rfc822_skip_lwsp ( & parser ) ;\n ( void ) rfc822_parse_mime_token ( & parser , value ) ;\n message_cte = MESSAGE_CTE_UNKNOWN ;\n switch ( str_len ( value ) ) {\n case 4 : if ( i_memcasecmp ( str_data ( value ) , \"7bit\" , 4 ) == 0 || i_memcasecmp ( str_data ( value ) , \"8bit\" , 4 ) == 0 ) message_cte = MESSAGE_CTE_78BIT ;\n break ;\n case 6 : if ( i_memcasecmp ( str_data ( value ) , \"base64\" , 6 ) == 0 ) message_cte = MESSAGE_CTE_BASE64 ;\n else if ( i_memcasecmp ( str_data ( value ) , \"binary\" , 6 ) == 0 ) message_cte = MESSAGE_CTE_BINARY ;\n break ;\n case 16 : if ( i_memcasecmp ( str_data ( value ) , \"quoted-printable\" , 16 ) == 0 ) message_cte = MESSAGE_CTE_QP ;\n break ;\n }\n rfc822_parser_deinit ( & parser ) ;\n return message_cte ;\n }"}
{"idx": 1517, "target": 0, "func": "void vp9_init_context_buffers ( VP9_COMMON * cm ) {\n setup_mi ( cm ) ;\n if ( cm -> last_frame_seg_map ) vpx_memset ( cm -> last_frame_seg_map , 0 , cm -> mi_rows * cm -> mi_cols ) ;\n }"}
{"idx": 1518, "target": 0, "func": "static BIGNUM * SRP_gN_place_bn ( STACK_OF ( SRP_gN_cache ) * gN_cache , char * ch ) {\n int i ;\n if ( gN_cache == NULL ) return NULL ;\n for ( i = 0 ;\n i < sk_SRP_gN_cache_num ( gN_cache ) ;\n i ++ ) {\n SRP_gN_cache * cache = sk_SRP_gN_cache_value ( gN_cache , i ) ;\n if ( strcmp ( cache -> b64_bn , ch ) == 0 ) return cache -> bn ;\n }\n {\n SRP_gN_cache * newgN = SRP_gN_new_init ( ch ) ;\n if ( newgN ) {\n if ( sk_SRP_gN_cache_insert ( gN_cache , newgN , 0 ) > 0 ) return newgN -> bn ;\n SRP_gN_free ( newgN ) ;\n }\n }\n return NULL ;\n }"}
{"idx": 1519, "target": 1, "func": "static void set_svc_parameters ( SvcContext * svc_ctx , vpx_codec_ctx_t * codec_ctx ) {\n int layer , layer_index ;\n vpx_svc_parameters_t svc_params ;\n SvcInternal * const si = get_svc_internal ( svc_ctx ) ;\n memset ( & svc_params , 0 , sizeof ( svc_params ) ) ;\n svc_params . temporal_layer = 0 ;\n svc_params . spatial_layer = si -> layer ;\n layer = si -> layer ;\n if ( VPX_CODEC_OK != vpx_svc_get_layer_resolution ( svc_ctx , layer , & svc_params . width , & svc_params . height ) ) {\n svc_log ( svc_ctx , SVC_LOG_ERROR , \"vpx_svc_get_layer_resolution failed\\n\" ) ;\n }\n layer_index = layer + VPX_SS_MAX_LAYERS - si -> layers ;\n if ( codec_ctx -> config . enc -> g_pass == VPX_RC_ONE_PASS ) {\n svc_params . min_quantizer = si -> quantizer [ layer_index ] ;\n svc_params . max_quantizer = si -> quantizer [ layer_index ] ;\n }\n else {\n svc_params . min_quantizer = codec_ctx -> config . enc -> rc_min_quantizer ;\n svc_params . max_quantizer = codec_ctx -> config . enc -> rc_max_quantizer ;\n }\n svc_params . distance_from_i_frame = si -> frame_within_gop ;\n vpx_codec_control ( codec_ctx , VP9E_SET_SVC_PARAMETERS , & svc_params ) ;\n }"}
{"idx": 1520, "target": 0, "func": "int modsecurity_init ( msc_engine * msce , apr_pool_t * mp ) {\n apr_status_t rc ;\n rc = apr_global_mutex_create ( & msce -> auditlog_lock , NULL , APR_LOCK_DEFAULT , mp ) ;\n if ( rc != APR_SUCCESS ) {\n return - 1 ;\n }\n # if ! defined ( MSC_TEST ) # ifdef __SET_MUTEX_PERMS # if AP_SERVER_MAJORVERSION_NUMBER > 1 && AP_SERVER_MINORVERSION_NUMBER > 2 rc = ap_unixd_set_global_mutex_perms ( msce -> auditlog_lock ) ;\n # else rc = unixd_set_global_mutex_perms ( msce -> auditlog_lock ) ;\n # endif if ( rc != APR_SUCCESS ) {\n return - 1 ;\n }\n # endif rc = apr_global_mutex_create ( & msce -> geo_lock , NULL , APR_LOCK_DEFAULT , mp ) ;\n if ( rc != APR_SUCCESS ) {\n return - 1 ;\n }\n # ifdef __SET_MUTEX_PERMS # if AP_SERVER_MAJORVERSION_NUMBER > 1 && AP_SERVER_MINORVERSION_NUMBER > 2 rc = ap_unixd_set_global_mutex_perms ( msce -> geo_lock ) ;\n # else rc = unixd_set_global_mutex_perms ( msce -> geo_lock ) ;\n # endif if ( rc != APR_SUCCESS ) {\n return - 1 ;\n }\n # endif # endif return 1 ;\n }"}
{"idx": 1521, "target": 0, "func": "static void t1_done_loader ( T1_Loader loader ) {\n T1_Parser parser = & loader -> parser ;\n T1_Release_Table ( & loader -> encoding_table ) ;\n T1_Release_Table ( & loader -> charstrings ) ;\n T1_Release_Table ( & loader -> glyph_names ) ;\n T1_Release_Table ( & loader -> swap_table ) ;\n T1_Release_Table ( & loader -> subrs ) ;\n T1_Finalize_Parser ( parser ) ;\n }"}
{"idx": 1522, "target": 1, "func": "static int authenticate_nss_2_3 ( struct crypto_instance * instance , unsigned char * buf , int * buf_len ) {\n if ( hash_to_nss [ instance -> crypto_hash_type ] ) {\n unsigned char tmp_hash [ hash_len [ instance -> crypto_hash_type ] ] ;\n int datalen = * buf_len - hash_len [ instance -> crypto_hash_type ] ;\n if ( calculate_nss_hash ( instance , buf , datalen , tmp_hash ) < 0 ) {\n return - 1 ;\n }\n if ( memcmp ( tmp_hash , buf + datalen , hash_len [ instance -> crypto_hash_type ] ) != 0 ) {\n log_printf ( instance -> log_level_error , \"Digest does not match\" ) ;\n return - 1 ;\n }\n * buf_len = datalen ;\n }\n return 0 ;\n }"}
{"idx": 1523, "target": 0, "func": "static int dissect_h245_SEQUENCE_OF_MediaDistributionCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h245_SEQUENCE_OF_MediaDistributionCapability , SEQUENCE_OF_MediaDistributionCapability_sequence_of ) ;\n return offset ;\n }"}
{"idx": 1524, "target": 0, "func": "int test_lshift ( BIO * bp , BN_CTX * ctx , BIGNUM * a_ ) {\n BIGNUM * a , * b , * c , * d ;\n int i ;\n b = BN_new ( ) ;\n c = BN_new ( ) ;\n d = BN_new ( ) ;\n BN_one ( c ) ;\n if ( a_ ) a = a_ ;\n else {\n a = BN_new ( ) ;\n BN_bntest_rand ( a , 200 , 0 , 0 ) ;\n a -> neg = rand_neg ( ) ;\n }\n for ( i = 0 ;\n i < num0 ;\n i ++ ) {\n BN_lshift ( b , a , i + 1 ) ;\n BN_add ( c , c , c ) ;\n if ( bp != NULL ) {\n if ( ! results ) {\n BN_print ( bp , a ) ;\n BIO_puts ( bp , \" * \" ) ;\n BN_print ( bp , c ) ;\n BIO_puts ( bp , \" - \" ) ;\n }\n BN_print ( bp , b ) ;\n BIO_puts ( bp , \"\\n\" ) ;\n }\n BN_mul ( d , a , c , ctx ) ;\n BN_sub ( d , d , b ) ;\n if ( ! BN_is_zero ( d ) ) {\n fprintf ( stderr , \"Left shift test failed!\\n\" ) ;\n fprintf ( stderr , \"a=\" ) ;\n BN_print_fp ( stderr , a ) ;\n fprintf ( stderr , \"\\nb=\" ) ;\n BN_print_fp ( stderr , b ) ;\n fprintf ( stderr , \"\\nc=\" ) ;\n BN_print_fp ( stderr , c ) ;\n fprintf ( stderr , \"\\nd=\" ) ;\n BN_print_fp ( stderr , d ) ;\n fprintf ( stderr , \"\\n\" ) ;\n return 0 ;\n }\n }\n BN_free ( a ) ;\n BN_free ( b ) ;\n BN_free ( c ) ;\n BN_free ( d ) ;\n return ( 1 ) ;\n }"}
{"idx": 1525, "target": 0, "func": "int vp9_alloc_internal_frame_buffers ( InternalFrameBufferList * list ) {\n assert ( list != NULL ) ;\n vp9_free_internal_frame_buffers ( list ) ;\n list -> num_internal_frame_buffers = VP9_MAXIMUM_REF_BUFFERS + VPX_MAXIMUM_WORK_BUFFERS ;\n list -> int_fb = ( InternalFrameBuffer * ) vpx_calloc ( list -> num_internal_frame_buffers , sizeof ( * list -> int_fb ) ) ;\n return ( list -> int_fb == NULL ) ;\n }"}
{"idx": 1526, "target": 0, "func": "TEST_F ( AutocompleteResultTest , SortAndCullDuplicateSearchURLs ) {\n TemplateURLData url_data ;\n url_data . SetShortName ( base : : ASCIIToUTF16 ( \"unittest\" ) ) ;\n url_data . SetKeyword ( base : : ASCIIToUTF16 ( \"foo\" ) ) ;\n url_data . SetURL ( \"http://www.foo.com/s?q={\nsearchTerms}\n\" ) ;\n template_url_service_ . get ( ) -> Add ( new TemplateURL ( url_data ) ) ;\n TestData data [ ] = {\n {\n 0 , 1 , 1300 , true }\n , {\n 1 , 1 , 1200 , true }\n , {\n 2 , 1 , 1100 , true }\n , {\n 3 , 1 , 1000 , true }\n , {\n 4 , 2 , 900 , true }\n , }\n ;\n ACMatches matches ;\n PopulateAutocompleteMatches ( data , arraysize ( data ) , & matches ) ;\n matches [ 0 ] . destination_url = GURL ( \"http://www.foo.com/s?q=foo\" ) ;\n matches [ 1 ] . destination_url = GURL ( \"http://www.foo.com/s?q=foo2\" ) ;\n matches [ 2 ] . destination_url = GURL ( \"http://www.foo.com/s?q=foo&oq=f\" ) ;\n matches [ 3 ] . destination_url = GURL ( \"http://www.foo.com/s?q=foo&aqs=0\" ) ;\n matches [ 4 ] . destination_url = GURL ( \"http://www.foo.com/\" ) ;\n AutocompleteInput input ( base : : string16 ( ) , base : : string16 : : npos , std : : string ( ) , GURL ( ) , OmniboxEventProto : : INVALID_SPEC , false , false , false , true , false , TestSchemeClassifier ( ) ) ;\n AutocompleteResult result ;\n result . AppendMatches ( input , matches ) ;\n result . SortAndCull ( input , template_url_service_ . get ( ) ) ;\n ASSERT_EQ ( 3U , result . size ( ) ) ;\n EXPECT_EQ ( \"http://www.foo.com/s?q=foo\" , result . match_at ( 0 ) -> destination_url . spec ( ) ) ;\n EXPECT_EQ ( 1300 , result . match_at ( 0 ) -> relevance ) ;\n EXPECT_EQ ( \"http://www.foo.com/s?q=foo2\" , result . match_at ( 1 ) -> destination_url . spec ( ) ) ;\n EXPECT_EQ ( 1200 , result . match_at ( 1 ) -> relevance ) ;\n EXPECT_EQ ( \"http://www.foo.com/\" , result . match_at ( 2 ) -> destination_url . spec ( ) ) ;\n EXPECT_EQ ( 900 , result . match_at ( 2 ) -> relevance ) ;\n }"}
{"idx": 1527, "target": 0, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DIRECTORYSTRING ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DISPLAYTEXT ) DECLARE_ASN1_FUNCTIONS ( ASN1_PRINTABLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_T61STRING )"}
{"idx": 1528, "target": 0, "func": "static void init_dynamic_string_checked ( DYNAMIC_STRING * str , const char * init_str , uint init_alloc , uint alloc_increment ) {\n if ( init_dynamic_string ( str , init_str , init_alloc , alloc_increment ) ) die ( EX_MYSQLERR , DYNAMIC_STR_ERROR_MSG ) ;\n }"}
{"idx": 1529, "target": 1, "func": "static void iadst8 ( const int16_t * input , int16_t * output ) {\n int s0 , s1 , s2 , s3 , s4 , s5 , s6 , s7 ;\n int x0 = input [ 7 ] ;\n int x1 = input [ 0 ] ;\n int x2 = input [ 5 ] ;\n int x3 = input [ 2 ] ;\n int x4 = input [ 3 ] ;\n int x5 = input [ 4 ] ;\n int x6 = input [ 1 ] ;\n int x7 = input [ 6 ] ;\n if ( ! ( x0 | x1 | x2 | x3 | x4 | x5 | x6 | x7 ) ) {\n output [ 0 ] = output [ 1 ] = output [ 2 ] = output [ 3 ] = output [ 4 ] = output [ 5 ] = output [ 6 ] = output [ 7 ] = 0 ;\n return ;\n }\n s0 = cospi_2_64 * x0 + cospi_30_64 * x1 ;\n s1 = cospi_30_64 * x0 - cospi_2_64 * x1 ;\n s2 = cospi_10_64 * x2 + cospi_22_64 * x3 ;\n s3 = cospi_22_64 * x2 - cospi_10_64 * x3 ;\n s4 = cospi_18_64 * x4 + cospi_14_64 * x5 ;\n s5 = cospi_14_64 * x4 - cospi_18_64 * x5 ;\n s6 = cospi_26_64 * x6 + cospi_6_64 * x7 ;\n s7 = cospi_6_64 * x6 - cospi_26_64 * x7 ;\n x0 = dct_const_round_shift ( s0 + s4 ) ;\n x1 = dct_const_round_shift ( s1 + s5 ) ;\n x2 = dct_const_round_shift ( s2 + s6 ) ;\n x3 = dct_const_round_shift ( s3 + s7 ) ;\n x4 = dct_const_round_shift ( s0 - s4 ) ;\n x5 = dct_const_round_shift ( s1 - s5 ) ;\n x6 = dct_const_round_shift ( s2 - s6 ) ;\n x7 = dct_const_round_shift ( s3 - s7 ) ;\n s0 = x0 ;\n s1 = x1 ;\n s2 = x2 ;\n s3 = x3 ;\n s4 = cospi_8_64 * x4 + cospi_24_64 * x5 ;\n s5 = cospi_24_64 * x4 - cospi_8_64 * x5 ;\n s6 = - cospi_24_64 * x6 + cospi_8_64 * x7 ;\n s7 = cospi_8_64 * x6 + cospi_24_64 * x7 ;\n x0 = s0 + s2 ;\n x1 = s1 + s3 ;\n x2 = s0 - s2 ;\n x3 = s1 - s3 ;\n x4 = dct_const_round_shift ( s4 + s6 ) ;\n x5 = dct_const_round_shift ( s5 + s7 ) ;\n x6 = dct_const_round_shift ( s4 - s6 ) ;\n x7 = dct_const_round_shift ( s5 - s7 ) ;\n s2 = cospi_16_64 * ( x2 + x3 ) ;\n s3 = cospi_16_64 * ( x2 - x3 ) ;\n s6 = cospi_16_64 * ( x6 + x7 ) ;\n s7 = cospi_16_64 * ( x6 - x7 ) ;\n x2 = dct_const_round_shift ( s2 ) ;\n x3 = dct_const_round_shift ( s3 ) ;\n x6 = dct_const_round_shift ( s6 ) ;\n x7 = dct_const_round_shift ( s7 ) ;\n output [ 0 ] = x0 ;\n output [ 1 ] = - x4 ;\n output [ 2 ] = x6 ;\n output [ 3 ] = - x2 ;\n output [ 4 ] = x3 ;\n output [ 5 ] = - x7 ;\n output [ 6 ] = x5 ;\n output [ 7 ] = - x1 ;\n }"}
{"idx": 1530, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , TestIsEquivalentRegistered ) {\n ProtocolHandler ph1 = CreateProtocolHandler ( \"test\" , GURL ( \"http://test/%s\" ) ) ;\n ProtocolHandler ph2 = CreateProtocolHandler ( \"test\" , GURL ( \"http://test/%s\" ) ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ;\n ASSERT_TRUE ( registry ( ) -> IsRegistered ( ph1 ) ) ;\n ASSERT_TRUE ( registry ( ) -> HasRegisteredEquivalent ( ph2 ) ) ;\n }"}
{"idx": 1531, "target": 0, "func": "static void encode_picture_start ( VC2EncContext * s ) {\n avpriv_align_put_bits ( & s -> pb ) ;\n encode_picture_header ( s ) ;\n avpriv_align_put_bits ( & s -> pb ) ;\n encode_wavelet_transform ( s ) ;\n }"}
{"idx": 1532, "target": 0, "func": "int kvm_device_intx_assign ( KVMState * s , uint32_t dev_id , bool use_host_msi , uint32_t guest_irq ) {\n uint32_t irq_type = KVM_DEV_IRQ_GUEST_INTX | ( use_host_msi ? KVM_DEV_IRQ_HOST_MSI : KVM_DEV_IRQ_HOST_INTX ) ;\n return kvm_assign_irq_internal ( s , dev_id , irq_type , guest_irq ) ;\n }"}
{"idx": 1533, "target": 0, "func": "static void exsltObjectTypeFunction ( xmlXPathParserContextPtr ctxt , int nargs ) {\n xmlXPathObjectPtr obj , ret ;\n if ( nargs != 1 ) {\n xmlXPathSetArityError ( ctxt ) ;\n return ;\n }\n obj = valuePop ( ctxt ) ;\n switch ( obj -> type ) {\n case XPATH_STRING : ret = xmlXPathNewCString ( \"string\" ) ;\n break ;\n case XPATH_NUMBER : ret = xmlXPathNewCString ( \"number\" ) ;\n break ;\n case XPATH_BOOLEAN : ret = xmlXPathNewCString ( \"boolean\" ) ;\n break ;\n case XPATH_NODESET : ret = xmlXPathNewCString ( \"node-set\" ) ;\n break ;\n case XPATH_XSLT_TREE : ret = xmlXPathNewCString ( \"RTF\" ) ;\n break ;\n case XPATH_USERS : ret = xmlXPathNewCString ( \"external\" ) ;\n break ;\n default : xsltGenericError ( xsltGenericErrorContext , \"object-type() invalid arg\\n\" ) ;\n ctxt -> error = XPATH_INVALID_TYPE ;\n xmlXPathFreeObject ( obj ) ;\n return ;\n }\n xmlXPathFreeObject ( obj ) ;\n valuePush ( ctxt , ret ) ;\n }"}
{"idx": 1534, "target": 0, "func": "static void dissect_q931_pdu ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , gboolean is_over_ip ) {\n int offset = 0 ;\n proto_tree * q931_tree = NULL ;\n proto_tree * ie_tree = NULL ;\n proto_item * ti ;\n guint8 prot_discr ;\n guint8 call_ref_len ;\n guint8 call_ref [ 16 ] ;\n guint32 call_ref_val ;\n guint8 message_type , segmented_message_type ;\n guint8 info_element ;\n guint16 info_element_len ;\n gboolean first_frag , more_frags ;\n guint32 frag_len ;\n fragment_head * fd_head ;\n tvbuff_t * next_tvb = NULL ;\n q931_packet_info * q931_pi = NULL ;\n q931_pi = wmem_new ( wmem_packet_scope ( ) , q931_packet_info ) ;\n reset_q931_packet_info ( q931_pi ) ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"Q.931\" ) ;\n prot_discr = tvb_get_guint8 ( tvb , offset ) ;\n ti = proto_tree_add_item ( tree , proto_q931 , tvb , offset , - 1 , ENC_NA ) ;\n if ( tree ) {\n q931_tree = proto_item_add_subtree ( ti , ett_q931 ) ;\n dissect_q931_protocol_discriminator ( tvb , offset , q931_tree ) ;\n }\n offset += 1 ;\n call_ref_len = tvb_get_guint8 ( tvb , offset ) & 0xF ;\n if ( q931_tree != NULL ) proto_tree_add_uint ( q931_tree , hf_q931_call_ref_len , tvb , offset , 1 , call_ref_len ) ;\n offset += 1 ;\n switch ( call_ref_len ) {\n case 0 : call_ref_val = 0 ;\n break ;\n case 1 : call_ref_val = tvb_get_guint8 ( tvb , offset ) ;\n break ;\n case 2 : call_ref_val = tvb_get_ntohs ( tvb , offset ) ;\n break ;\n case 3 : call_ref_val = tvb_get_ntoh24 ( tvb , offset ) ;\n break ;\n default : call_ref_val = tvb_get_ntohl ( tvb , offset ) ;\n }\n if ( call_ref_len != 0 ) {\n tvb_memcpy ( tvb , call_ref , offset , call_ref_len ) ;\n if ( q931_tree != NULL ) {\n proto_tree_add_boolean ( q931_tree , hf_q931_call_ref_flag , tvb , offset , 1 , ( call_ref [ 0 ] & 0x80 ) != 0 ) ;\n call_ref [ 0 ] &= 0x7F ;\n proto_tree_add_bytes ( q931_tree , hf_q931_call_ref , tvb , offset , call_ref_len , call_ref ) ;\n }\n else {\n call_ref [ 0 ] &= 0x7F ;\n }\n memcpy ( & ( q931_pi -> crv ) , call_ref , call_ref_len > sizeof ( q931_pi -> crv ) ? sizeof ( q931_pi -> crv ) : call_ref_len ) ;\n offset += call_ref_len ;\n }\n message_type = tvb_get_guint8 ( tvb , offset ) ;\n q931_pi -> message_type = message_type ;\n col_add_str ( pinfo -> cinfo , COL_INFO , get_message_name ( prot_discr , message_type ) ) ;\n if ( prot_discr == NLPID_DMS ) proto_tree_add_item ( q931_tree , hf_q931_maintenance_message_type , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n else proto_tree_add_item ( q931_tree , hf_q931_message_type , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset += 1 ;\n if ( ( message_type != Q931_SEGMENT ) || ! q931_reassembly || ( tvb_reported_length_remaining ( tvb , offset ) <= 4 ) ) {\n dissect_q931_IEs ( tvb , pinfo , tree , q931_tree , is_over_ip , offset , 0 , q931_pi ) ;\n return ;\n }\n info_element = tvb_get_guint8 ( tvb , offset ) ;\n info_element_len = tvb_get_guint8 ( tvb , offset + 1 ) ;\n if ( ( info_element != Q931_IE_SEGMENTED_MESSAGE ) || ( info_element_len < 2 ) ) {\n dissect_q931_IEs ( tvb , pinfo , tree , q931_tree , is_over_ip , offset , 0 , q931_pi ) ;\n return ;\n }\n ie_tree = proto_tree_add_subtree ( q931_tree , tvb , offset , 1 + 1 + info_element_len , ett_q931_ie [ info_element ] , NULL , val_to_str ( info_element , q931_info_element_vals [ 0 ] , \"Unknown information element (0x%02X)\" ) ) ;\n proto_tree_add_uint_format_value ( ie_tree , hf_q931_information_element , tvb , offset , 1 , info_element , \"%s\" , val_to_str ( info_element , q931_info_element_vals [ 0 ] , \"Unknown (0x%02X)\" ) ) ;\n proto_tree_add_item ( ie_tree , hf_q931_information_element_len , tvb , offset + 1 , 1 , ENC_NA ) ;\n dissect_q931_segmented_message_ie ( tvb , pinfo , offset + 2 , info_element_len , ie_tree , ti ) ;\n first_frag = ( tvb_get_guint8 ( tvb , offset + 2 ) & 0x80 ) != 0 ;\n more_frags = ( tvb_get_guint8 ( tvb , offset + 2 ) & 0x7F ) != 0 ;\n segmented_message_type = tvb_get_guint8 ( tvb , offset + 3 ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" of %s\" , val_to_str_ext ( segmented_message_type , & q931_message_type_vals_ext , \"Unknown message type (0x%02X)\" ) ) ;\n offset += 1 + 1 + info_element_len ;\n frag_len = tvb_reported_length_remaining ( tvb , offset ) ;\n if ( first_frag && fragment_get ( & q931_reassembly_table , pinfo , call_ref_val , NULL ) ) {\n fragment_end_seq_next ( & q931_reassembly_table , pinfo , call_ref_val , NULL ) ;\n }\n fd_head = fragment_add_seq_next ( & q931_reassembly_table , tvb , offset , pinfo , call_ref_val , NULL , frag_len , more_frags ) ;\n if ( fd_head ) {\n if ( pinfo -> num == fd_head -> reassembled_in ) {\n if ( fd_head -> next != NULL ) {\n next_tvb = tvb_new_chain ( tvb , fd_head -> tvb_data ) ;\n add_new_data_source ( pinfo , next_tvb , \"Reassembled Q.931 IEs\" ) ;\n if ( tree ) {\n proto_item * frag_tree_item ;\n show_fragment_seq_tree ( fd_head , & q931_frag_items , q931_tree , pinfo , next_tvb , & frag_tree_item ) ;\n }\n }\n else {\n next_tvb = tvb_new_subset_remaining ( tvb , offset ) ;\n }\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"%s [reassembled]\" , val_to_str_ext ( segmented_message_type , & q931_message_type_vals_ext , \"Unknown message type (0x%02X)\" ) ) ;\n }\n else {\n if ( tree ) proto_tree_add_uint ( q931_tree , hf_q931_reassembled_in , tvb , offset , frag_len , fd_head -> reassembled_in ) ;\n }\n }\n if ( next_tvb ) dissect_q931_IEs ( next_tvb , pinfo , tree , q931_tree , is_over_ip , 0 , 0 , q931_pi ) ;\n }"}
{"idx": 1535, "target": 0, "func": "static void mp_flush ( MPADecodeContext * ctx ) {\n memset ( ctx -> synth_buf , 0 , sizeof ( ctx -> synth_buf ) ) ;\n ctx -> last_buf_size = 0 ;\n }"}
{"idx": 1536, "target": 0, "func": "static void dct_unquantize_mpeg2_inter_c ( MpegEncContext * s , int16_t * block , int n , int qscale ) {\n int i , level , nCoeffs ;\n const uint16_t * quant_matrix ;\n int sum = - 1 ;\n if ( s -> alternate_scan ) nCoeffs = 63 ;\n else nCoeffs = s -> block_last_index [ n ] ;\n quant_matrix = s -> inter_matrix ;\n for ( i = 0 ;\n i <= nCoeffs ;\n i ++ ) {\n int j = s -> intra_scantable . permutated [ i ] ;\n level = block [ j ] ;\n if ( level ) {\n if ( level < 0 ) {\n level = - level ;\n level = ( ( ( level << 1 ) + 1 ) * qscale * ( ( int ) ( quant_matrix [ j ] ) ) ) >> 4 ;\n level = - level ;\n }\n else {\n level = ( ( ( level << 1 ) + 1 ) * qscale * ( ( int ) ( quant_matrix [ j ] ) ) ) >> 4 ;\n }\n block [ j ] = level ;\n sum += level ;\n }\n }\n block [ 63 ] ^= sum & 1 ;\n }"}
{"idx": 1537, "target": 0, "func": "static void unset_active_map ( const vpx_codec_enc_cfg_t * cfg , vpx_codec_ctx_t * codec ) {\n vpx_active_map_t map = {\n 0 , 0 , 0 }\n ;\n map . rows = ( cfg -> g_h + 15 ) / 16 ;\n map . cols = ( cfg -> g_w + 15 ) / 16 ;\n map . active_map = NULL ;\n if ( vpx_codec_control ( codec , VP8E_SET_ACTIVEMAP , & map ) ) die_codec ( codec , \"Failed to set active map\" ) ;\n }"}
{"idx": 1538, "target": 0, "func": "static inline void IRQ_setbit ( IRQQueue * q , int n_IRQ ) {\n set_bit ( n_IRQ , q -> queue ) ;\n }"}
{"idx": 1539, "target": 0, "func": "static guint8 nb_remote_session ( tvbuff_t * tvb , int offset , proto_tree * tree ) {\n guint8 remote_session = tvb_get_guint8 ( tvb , offset + NB_RMT_SES ) ;\n proto_tree_add_uint ( tree , hf_netb_remote_ses_no , tvb , offset + NB_RMT_SES , 1 , remote_session ) ;\n return remote_session ;\n }"}
{"idx": 1540, "target": 1, "func": "static __always_inline __be32 __cpu_to_be32p ( const __u32 * p ) {\n return ( __be32 ) __swab32p ( p ) ;\n }"}
{"idx": 1541, "target": 0, "func": "static int dissect_h245_T_availableBitRates ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_availableBitRates , T_availableBitRates_sequence ) ;\n return offset ;\n }"}
{"idx": 1542, "target": 0, "func": "static void set_time_915 ( unsigned char * p , time_t t ) {\n struct tm tm ;\n get_tmfromtime ( & tm , & t ) ;\n set_num_711 ( p + 0 , tm . tm_year ) ;\n set_num_711 ( p + 1 , tm . tm_mon + 1 ) ;\n set_num_711 ( p + 2 , tm . tm_mday ) ;\n set_num_711 ( p + 3 , tm . tm_hour ) ;\n set_num_711 ( p + 4 , tm . tm_min ) ;\n set_num_711 ( p + 5 , tm . tm_sec ) ;\n set_num_712 ( p + 6 , ( char ) ( get_gmoffset ( & tm ) / ( 60 * 15 ) ) ) ;\n }"}
{"idx": 1543, "target": 0, "func": "int i2d_DSA_PUBKEY_fp ( FILE * fp , DSA * dsa ) {\n return ASN1_i2d_fp_of ( DSA , i2d_DSA_PUBKEY , fp , dsa ) ;\n }"}
{"idx": 1544, "target": 0, "func": "void ff_clean_intra_table_entries ( MpegEncContext * s ) {\n int wrap = s -> b8_stride ;\n int xy = s -> block_index [ 0 ] ;\n s -> dc_val [ 0 ] [ xy ] = s -> dc_val [ 0 ] [ xy + 1 ] = s -> dc_val [ 0 ] [ xy + wrap ] = s -> dc_val [ 0 ] [ xy + 1 + wrap ] = 1024 ;\n memset ( s -> ac_val [ 0 ] [ xy ] , 0 , 32 * sizeof ( int16_t ) ) ;\n memset ( s -> ac_val [ 0 ] [ xy + wrap ] , 0 , 32 * sizeof ( int16_t ) ) ;\n if ( s -> msmpeg4_version >= 3 ) {\n s -> coded_block [ xy ] = s -> coded_block [ xy + 1 ] = s -> coded_block [ xy + wrap ] = s -> coded_block [ xy + 1 + wrap ] = 0 ;\n }\n wrap = s -> mb_stride ;\n xy = s -> mb_x + s -> mb_y * wrap ;\n s -> dc_val [ 1 ] [ xy ] = s -> dc_val [ 2 ] [ xy ] = 1024 ;\n memset ( s -> ac_val [ 1 ] [ xy ] , 0 , 16 * sizeof ( int16_t ) ) ;\n memset ( s -> ac_val [ 2 ] [ xy ] , 0 , 16 * sizeof ( int16_t ) ) ;\n s -> mbintra_table [ xy ] = 0 ;\n }"}
{"idx": 1545, "target": 0, "func": "TEST_F ( NativeBackendLibsecretTest , BasicUpdateLogin ) {\n NativeBackendLibsecret backend ( 42 ) ;\n VerifiedAdd ( & backend , form_google_ ) ;\n PasswordForm new_form_google ( form_google_ ) ;\n new_form_google . times_used = 1 ;\n new_form_google . action = GURL ( \"http://www.google.com/different/login\" ) ;\n EXPECT_EQ ( 1u , global_mock_libsecret_items -> size ( ) ) ;\n if ( ! global_mock_libsecret_items -> empty ( ) ) {\n CheckMockSecretItem ( ( * global_mock_libsecret_items ) [ 0 ] , form_google_ , \"chrome-42\" ) ;\n }\n VerifiedUpdate ( & backend , new_form_google ) ;\n EXPECT_EQ ( 1u , global_mock_libsecret_items -> size ( ) ) ;\n if ( ! global_mock_libsecret_items -> empty ( ) ) CheckMockSecretItem ( ( * global_mock_libsecret_items ) [ 0 ] , new_form_google , \"chrome-42\" ) ;\n }"}
{"idx": 1546, "target": 0, "func": "unsigned long # endif # undef mul # undef mul_add # define mul_add ( r , a , word , carry ) do {\n \\ register BN_ULONG high , low ;\n \\ asm ( \"mulq %3\" \\ : \"=a\" ( low ) , \"=d\" ( high ) \\ : \"a\" ( word ) , \"m\" ( a ) \\ : \"cc\" ) ;\n \\ asm ( \"addq %2,%0;\n adcq %3,%1\" \\ : \"+r\" ( carry ) , \"+d\" ( high ) \\ : \"a\" ( low ) , \"g\" ( 0 ) \\ : \"cc\" ) ;\n \\ asm ( \"addq %2,%0;\n adcq %3,%1\" \\ : \"+m\" ( r ) , \"+d\" ( high ) \\ : \"r\" ( carry ) , \"g\" ( 0 ) \\ : \"cc\" ) ;\n \\ carry = high ;\n \\ }\n while ( 0 ) # define mul ( r , a , word , carry ) do {\n \\ register BN_ULONG high , low ;\n \\ asm ( \"mulq %3\" \\ : \"=a\" ( low ) , \"=d\" ( high ) \\ : \"a\" ( word ) , \"g\" ( a ) \\ : \"cc\" ) ;\n \\ asm ( \"addq %2,%0;\n adcq %3,%1\" \\ : \"+r\" ( carry ) , \"+d\" ( high ) \\ : \"a\" ( low ) , \"g\" ( 0 ) \\ : \"cc\" ) ;\n \\ ( r ) = carry , carry = high ;\n \\ }\n while ( 0 ) # undef sqr # define sqr ( r0 , r1 , a ) \\ asm ( \"mulq %2\" \\ : \"=a\" ( r0 ) , \"=d\" ( r1 ) \\ : \"a\" ( a ) \\ : \"cc\" ) ;\n BN_ULONG bn_mul_add_words ( BN_ULONG * rp , const BN_ULONG * ap , int num , BN_ULONG w ) {\n BN_ULONG c1 = 0 ;\n if ( num <= 0 ) return ( c1 ) ;\n while ( num & ~ 3 ) {\n mul_add ( rp [ 0 ] , ap [ 0 ] , w , c1 ) ;\n mul_add ( rp [ 1 ] , ap [ 1 ] , w , c1 ) ;\n mul_add ( rp [ 2 ] , ap [ 2 ] , w , c1 ) ;\n mul_add ( rp [ 3 ] , ap [ 3 ] , w , c1 ) ;\n ap += 4 ;\n rp += 4 ;\n num -= 4 ;\n }\n if ( num ) {\n mul_add ( rp [ 0 ] , ap [ 0 ] , w , c1 ) ;\n if ( -- num == 0 ) return c1 ;\n mul_add ( rp [ 1 ] , ap [ 1 ] , w , c1 ) ;\n if ( -- num == 0 ) return c1 ;\n mul_add ( rp [ 2 ] , ap [ 2 ] , w , c1 ) ;\n return c1 ;\n }\n return ( c1 ) ;\n }\n BN_ULONG bn_mul_words ( BN_ULONG * rp , const BN_ULONG * ap , int num , BN_ULONG w ) {\n BN_ULONG c1 = 0 ;\n if ( num <= 0 ) return ( c1 ) ;\n while ( num & ~ 3 ) {\n mul ( rp [ 0 ] , ap [ 0 ] , w , c1 ) ;\n mul ( rp [ 1 ] , ap [ 1 ] , w , c1 ) ;\n mul ( rp [ 2 ] , ap [ 2 ] , w , c1 ) ;\n mul ( rp [ 3 ] , ap [ 3 ] , w , c1 ) ;\n ap += 4 ;\n rp += 4 ;\n num -= 4 ;\n }\n if ( num ) {\n mul ( rp [ 0 ] , ap [ 0 ] , w , c1 ) ;\n if ( -- num == 0 ) return c1 ;\n mul ( rp [ 1 ] , ap [ 1 ] , w , c1 ) ;\n if ( -- num == 0 ) return c1 ;\n mul ( rp [ 2 ] , ap [ 2 ] , w , c1 ) ;\n }\n return ( c1 ) ;\n }\n void bn_sqr_words ( BN_ULONG * r , const BN_ULONG * a , int n ) {\n if ( n <= 0 ) return ;\n while ( n & ~ 3 ) {\n sqr ( r [ 0 ] , r [ 1 ] , a [ 0 ] ) ;\n sqr ( r [ 2 ] , r [ 3 ] , a [ 1 ] ) ;\n sqr ( r [ 4 ] , r [ 5 ] , a [ 2 ] ) ;\n sqr ( r [ 6 ] , r [ 7 ] , a [ 3 ] ) ;\n a += 4 ;\n r += 8 ;\n n -= 4 ;\n }\n if ( n ) {\n sqr ( r [ 0 ] , r [ 1 ] , a [ 0 ] ) ;\n if ( -- n == 0 ) return ;\n sqr ( r [ 2 ] , r [ 3 ] , a [ 1 ] ) ;\n if ( -- n == 0 ) return ;\n sqr ( r [ 4 ] , r [ 5 ] , a [ 2 ] ) ;\n }\n }\n BN_ULONG bn_div_words ( BN_ULONG h , BN_ULONG l , BN_ULONG d ) {\n BN_ULONG ret , waste ;\n asm ( \"divq %4\" : \"=a\" ( ret ) , \"=d\" ( waste ) : \"a\" ( l ) , \"d\" ( h ) , \"g\" ( d ) : \"cc\" ) ;\n return ret ;\n }\n BN_ULONG bn_add_words ( BN_ULONG * rp , const BN_ULONG * ap , const BN_ULONG * bp , int n ) {\n BN_ULONG ret ;\n size_t i = 0 ;\n if ( n <= 0 ) return 0 ;\n asm volatile ( \" subq %0,%0 \\n\" \" jmp 1f \\n\" \".p2align 4 \\n\" \"1: movq (%4,%2,8),%0 \\n\" \" adcq (%5,%2,8),%0 \\n\" \" movq %0,(%3,%2,8) \\n\" \" lea 1(%2),%2 \\n\" \" loop 1b \\n\" \" sbbq %0,%0 \\n\" : \"=&r\" ( ret ) , \"+c\" ( n ) , \"+r\" ( i ) : \"r\" ( rp ) , \"r\" ( ap ) , \"r\" ( bp ) : \"cc\" , \"memory\" ) ;\n return ret & 1 ;\n }\n # ifndef SIMICS BN_ULONG bn_sub_words ( BN_ULONG * rp , const BN_ULONG * ap , const BN_ULONG * bp , int n ) {\n BN_ULONG ret ;\n size_t i = 0 ;\n if ( n <= 0 ) return 0 ;\n asm volatile ( \" subq %0,%0 \\n\" \" jmp 1f \\n\" \".p2align 4 \\n\" \"1: movq (%4,%2,8),%0 \\n\" \" sbbq (%5,%2,8),%0 \\n\" \" movq %0,(%3,%2,8) \\n\" \" lea 1(%2),%2 \\n\" \" loop 1b \\n\" \" sbbq %0,%0 \\n\" : \"=&r\" ( ret ) , \"+c\" ( n ) , \"+r\" ( i ) : \"r\" ( rp ) , \"r\" ( ap ) , \"r\" ( bp ) : \"cc\" , \"memory\" ) ;\n return ret & 1 ;\n }"}
{"idx": 1547, "target": 0, "func": "static void dissect_rsvp_label ( proto_tree * ti , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class , int type ) {\n int offset2 = offset + 4 ;\n int mylen , i ;\n const char * name ;\n name = ( rsvp_class == RSVP_CLASS_SUGGESTED_LABEL ? \"SUGGESTED LABEL\" : ( rsvp_class == RSVP_CLASS_UPSTREAM_LABEL ? \"UPSTREAM LABEL\" : ( rsvp_class == RSVP_CLASS_RECOVERY_LABEL ? \"RECOVERY LABEL\" : \"LABEL\" ) ) ) ;\n mylen = obj_length - 4 ;\n switch ( type ) {\n case 1 : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"1 (Packet Label)\" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_label_label , tvb , offset2 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_set_text ( ti , \"%s: %u\" , name , tvb_get_ntohl ( tvb , offset2 ) ) ;\n break ;\n case 2 : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"2 (Generalized Label)\" ) ;\n if ( rsvp_generalized_label_option == 1 ) {\n proto_item_set_text ( ti , \"%s: Generalized: \" , name ) ;\n for ( i = 0 ;\n i < mylen ;\n i += 4 ) {\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_label_generalized_label , tvb , offset2 + i , 4 , ENC_BIG_ENDIAN ) ;\n if ( i < 16 ) {\n proto_item_append_text ( ti , \"0x%x%s\" , tvb_get_ntohl ( tvb , offset2 + i ) , i + 4 < mylen ? \", \" : \"\" ) ;\n }\n else if ( i == 16 ) {\n proto_item_append_text ( ti , \"...\" ) ;\n }\n }\n }\n else if ( rsvp_generalized_label_option == 2 ) {\n dissect_glabel_sdh ( ti , rsvp_object_tree , tvb , offset2 ) ;\n }\n else if ( rsvp_generalized_label_option == 4 ) {\n dissect_glabel_g709 ( ti , rsvp_object_tree , tvb , offset2 ) ;\n }\n else if ( rsvp_generalized_label_option == 3 ) {\n dissect_glabel_lambda ( ti , rsvp_object_tree , tvb , offset2 ) ;\n }\n else if ( rsvp_generalized_label_option == 5 ) {\n dissect_glabel_evpl ( ti , rsvp_object_tree , tvb , offset2 ) ;\n }\n break ;\n case 4 : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"4 (Generalized Channel_set)\" ) ;\n proto_item_append_text ( ti , \": Generalized Channel_set\" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_label_data , tvb , offset2 , mylen , ENC_NA ) ;\n break ;\n default : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"Unknown (%u)\" , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_label_data , tvb , offset2 , mylen , ENC_NA ) ;\n break ;\n }\n }"}
{"idx": 1548, "target": 1, "func": "void ff_print_debug_info ( MpegEncContext * s , AVFrame * pict ) {\n if ( s -> avctx -> hwaccel || ! pict || ! pict -> mb_type ) return ;\n if ( s -> avctx -> debug & ( FF_DEBUG_SKIP | FF_DEBUG_QP | FF_DEBUG_MB_TYPE ) ) {\n int x , y ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"New frame, type: \" ) ;\n switch ( pict -> pict_type ) {\n case AV_PICTURE_TYPE_I : av_log ( s -> avctx , AV_LOG_DEBUG , \"I\\n\" ) ;\n break ;\n case AV_PICTURE_TYPE_P : av_log ( s -> avctx , AV_LOG_DEBUG , \"P\\n\" ) ;\n break ;\n case AV_PICTURE_TYPE_B : av_log ( s -> avctx , AV_LOG_DEBUG , \"B\\n\" ) ;\n break ;\n case AV_PICTURE_TYPE_S : av_log ( s -> avctx , AV_LOG_DEBUG , \"S\\n\" ) ;\n break ;\n case AV_PICTURE_TYPE_SI : av_log ( s -> avctx , AV_LOG_DEBUG , \"SI\\n\" ) ;\n break ;\n case AV_PICTURE_TYPE_SP : av_log ( s -> avctx , AV_LOG_DEBUG , \"SP\\n\" ) ;\n break ;\n }\n for ( y = 0 ;\n y < s -> mb_height ;\n y ++ ) {\n for ( x = 0 ;\n x < s -> mb_width ;\n x ++ ) {\n if ( s -> avctx -> debug & FF_DEBUG_SKIP ) {\n int count = s -> mbskip_table [ x + y * s -> mb_stride ] ;\n if ( count > 9 ) count = 9 ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"%1d\" , count ) ;\n }\n if ( s -> avctx -> debug & FF_DEBUG_QP ) {\n av_log ( s -> avctx , AV_LOG_DEBUG , \"%2d\" , pict -> qscale_table [ x + y * s -> mb_stride ] ) ;\n }\n if ( s -> avctx -> debug & FF_DEBUG_MB_TYPE ) {\n int mb_type = pict -> mb_type [ x + y * s -> mb_stride ] ;\n if ( IS_PCM ( mb_type ) ) av_log ( s -> avctx , AV_LOG_DEBUG , \"P\" ) ;\n else if ( IS_INTRA ( mb_type ) && IS_ACPRED ( mb_type ) ) av_log ( s -> avctx , AV_LOG_DEBUG , \"A\" ) ;\n else if ( IS_INTRA4x4 ( mb_type ) ) av_log ( s -> avctx , AV_LOG_DEBUG , \"i\" ) ;\n else if ( IS_INTRA16x16 ( mb_type ) ) av_log ( s -> avctx , AV_LOG_DEBUG , \"I\" ) ;\n else if ( IS_DIRECT ( mb_type ) && IS_SKIP ( mb_type ) ) av_log ( s -> avctx , AV_LOG_DEBUG , \"d\" ) ;\n else if ( IS_DIRECT ( mb_type ) ) av_log ( s -> avctx , AV_LOG_DEBUG , \"D\" ) ;\n else if ( IS_GMC ( mb_type ) && IS_SKIP ( mb_type ) ) av_log ( s -> avctx , AV_LOG_DEBUG , \"g\" ) ;\n else if ( IS_GMC ( mb_type ) ) av_log ( s -> avctx , AV_LOG_DEBUG , \"G\" ) ;\n else if ( IS_SKIP ( mb_type ) ) av_log ( s -> avctx , AV_LOG_DEBUG , \"S\" ) ;\n else if ( ! USES_LIST ( mb_type , 1 ) ) av_log ( s -> avctx , AV_LOG_DEBUG , \">\" ) ;\n else if ( ! USES_LIST ( mb_type , 0 ) ) av_log ( s -> avctx , AV_LOG_DEBUG , \"<\" ) ;\n else {\n assert ( USES_LIST ( mb_type , 0 ) && USES_LIST ( mb_type , 1 ) ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"X\" ) ;\n }\n if ( IS_8X8 ( mb_type ) ) av_log ( s -> avctx , AV_LOG_DEBUG , \"+\" ) ;\n else if ( IS_16X8 ( mb_type ) ) av_log ( s -> avctx , AV_LOG_DEBUG , \"-\" ) ;\n else if ( IS_8X16 ( mb_type ) ) av_log ( s -> avctx , AV_LOG_DEBUG , \"|\" ) ;\n else if ( IS_INTRA ( mb_type ) || IS_16X16 ( mb_type ) ) av_log ( s -> avctx , AV_LOG_DEBUG , \" \" ) ;\n else av_log ( s -> avctx , AV_LOG_DEBUG , \"?\" ) ;\n if ( IS_INTERLACED ( mb_type ) ) av_log ( s -> avctx , AV_LOG_DEBUG , \"=\" ) ;\n else av_log ( s -> avctx , AV_LOG_DEBUG , \" \" ) ;\n }\n }\n av_log ( s -> avctx , AV_LOG_DEBUG , \"\\n\" ) ;\n }\n }\n if ( ( s -> avctx -> debug & ( FF_DEBUG_VIS_QP | FF_DEBUG_VIS_MB_TYPE ) ) || ( s -> avctx -> debug_mv ) ) {\n const int shift = 1 + s -> quarter_sample ;\n int mb_y ;\n uint8_t * ptr ;\n int i ;\n int h_chroma_shift , v_chroma_shift , block_height ;\n const int width = s -> avctx -> width ;\n const int height = s -> avctx -> height ;\n const int mv_sample_log2 = 4 - pict -> motion_subsample_log2 ;\n const int mv_stride = ( s -> mb_width << mv_sample_log2 ) + ( s -> codec_id == AV_CODEC_ID_H264 ? 0 : 1 ) ;\n s -> low_delay = 0 ;\n av_pix_fmt_get_chroma_sub_sample ( s -> avctx -> pix_fmt , & h_chroma_shift , & v_chroma_shift ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n memcpy ( s -> visualization_buffer [ i ] , pict -> data [ i ] , ( i == 0 ) ? pict -> linesize [ i ] * height : pict -> linesize [ i ] * height >> v_chroma_shift ) ;\n pict -> data [ i ] = s -> visualization_buffer [ i ] ;\n }\n pict -> type = FF_BUFFER_TYPE_COPY ;\n ptr = pict -> data [ 0 ] ;\n block_height = 16 >> v_chroma_shift ;\n for ( mb_y = 0 ;\n mb_y < s -> mb_height ;\n mb_y ++ ) {\n int mb_x ;\n for ( mb_x = 0 ;\n mb_x < s -> mb_width ;\n mb_x ++ ) {\n const int mb_index = mb_x + mb_y * s -> mb_stride ;\n if ( ( s -> avctx -> debug_mv ) && pict -> motion_val ) {\n int type ;\n for ( type = 0 ;\n type < 3 ;\n type ++ ) {\n int direction = 0 ;\n switch ( type ) {\n case 0 : if ( ( ! ( s -> avctx -> debug_mv & FF_DEBUG_VIS_MV_P_FOR ) ) || ( pict -> pict_type != AV_PICTURE_TYPE_P ) ) continue ;\n direction = 0 ;\n break ;\n case 1 : if ( ( ! ( s -> avctx -> debug_mv & FF_DEBUG_VIS_MV_B_FOR ) ) || ( pict -> pict_type != AV_PICTURE_TYPE_B ) ) continue ;\n direction = 0 ;\n break ;\n case 2 : if ( ( ! ( s -> avctx -> debug_mv & FF_DEBUG_VIS_MV_B_BACK ) ) || ( pict -> pict_type != AV_PICTURE_TYPE_B ) ) continue ;\n direction = 1 ;\n break ;\n }\n if ( ! USES_LIST ( pict -> mb_type [ mb_index ] , direction ) ) continue ;\n if ( IS_8X8 ( pict -> mb_type [ mb_index ] ) ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n int sx = mb_x * 16 + 4 + 8 * ( i & 1 ) ;\n int sy = mb_y * 16 + 4 + 8 * ( i >> 1 ) ;\n int xy = ( mb_x * 2 + ( i & 1 ) + ( mb_y * 2 + ( i >> 1 ) ) * mv_stride ) << ( mv_sample_log2 - 1 ) ;\n int mx = ( pict -> motion_val [ direction ] [ xy ] [ 0 ] >> shift ) + sx ;\n int my = ( pict -> motion_val [ direction ] [ xy ] [ 1 ] >> shift ) + sy ;\n draw_arrow ( ptr , sx , sy , mx , my , width , height , s -> linesize , 100 ) ;\n }\n }\n else if ( IS_16X8 ( pict -> mb_type [ mb_index ] ) ) {\n int i ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n int sx = mb_x * 16 + 8 ;\n int sy = mb_y * 16 + 4 + 8 * i ;\n int xy = ( mb_x * 2 + ( mb_y * 2 + i ) * mv_stride ) << ( mv_sample_log2 - 1 ) ;\n int mx = ( pict -> motion_val [ direction ] [ xy ] [ 0 ] >> shift ) ;\n int my = ( pict -> motion_val [ direction ] [ xy ] [ 1 ] >> shift ) ;\n if ( IS_INTERLACED ( pict -> mb_type [ mb_index ] ) ) my *= 2 ;\n draw_arrow ( ptr , sx , sy , mx + sx , my + sy , width , height , s -> linesize , 100 ) ;\n }\n }\n else if ( IS_8X16 ( pict -> mb_type [ mb_index ] ) ) {\n int i ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n int sx = mb_x * 16 + 4 + 8 * i ;\n int sy = mb_y * 16 + 8 ;\n int xy = ( mb_x * 2 + i + mb_y * 2 * mv_stride ) << ( mv_sample_log2 - 1 ) ;\n int mx = pict -> motion_val [ direction ] [ xy ] [ 0 ] >> shift ;\n int my = pict -> motion_val [ direction ] [ xy ] [ 1 ] >> shift ;\n if ( IS_INTERLACED ( pict -> mb_type [ mb_index ] ) ) my *= 2 ;\n draw_arrow ( ptr , sx , sy , mx + sx , my + sy , width , height , s -> linesize , 100 ) ;\n }\n }\n else {\n int sx = mb_x * 16 + 8 ;\n int sy = mb_y * 16 + 8 ;\n int xy = ( mb_x + mb_y * mv_stride ) << mv_sample_log2 ;\n int mx = pict -> motion_val [ direction ] [ xy ] [ 0 ] >> shift + sx ;\n int my = pict -> motion_val [ direction ] [ xy ] [ 1 ] >> shift + sy ;\n draw_arrow ( ptr , sx , sy , mx , my , width , height , s -> linesize , 100 ) ;\n }\n }\n }\n if ( ( s -> avctx -> debug & FF_DEBUG_VIS_QP ) && pict -> motion_val ) {\n uint64_t c = ( pict -> qscale_table [ mb_index ] * 128 / 31 ) * 0x0101010101010101ULL ;\n int y ;\n for ( y = 0 ;\n y < block_height ;\n y ++ ) {\n * ( uint64_t * ) ( pict -> data [ 1 ] + 8 * mb_x + ( block_height * mb_y + y ) * pict -> linesize [ 1 ] ) = c ;\n * ( uint64_t * ) ( pict -> data [ 2 ] + 8 * mb_x + ( block_height * mb_y + y ) * pict -> linesize [ 2 ] ) = c ;\n }\n }\n if ( ( s -> avctx -> debug & FF_DEBUG_VIS_MB_TYPE ) && pict -> motion_val ) {\n int mb_type = pict -> mb_type [ mb_index ] ;\n uint64_t u , v ;\n int y ;\n # define COLOR ( theta , r ) u = ( int ) ( 128 + r * cos ( theta * 3.141592 / 180 ) ) ;\n v = ( int ) ( 128 + r * sin ( theta * 3.141592 / 180 ) ) ;\n u = v = 128 ;\n if ( IS_PCM ( mb_type ) ) {\n COLOR ( 120 , 48 ) }\n else if ( ( IS_INTRA ( mb_type ) && IS_ACPRED ( mb_type ) ) || IS_INTRA16x16 ( mb_type ) ) {\n COLOR ( 30 , 48 ) }\n else if ( IS_INTRA4x4 ( mb_type ) ) {\n COLOR ( 90 , 48 ) }\n else if ( IS_DIRECT ( mb_type ) && IS_SKIP ( mb_type ) ) {\n }\n else if ( IS_DIRECT ( mb_type ) ) {\n COLOR ( 150 , 48 ) }\n else if ( IS_GMC ( mb_type ) && IS_SKIP ( mb_type ) ) {\n COLOR ( 170 , 48 ) }\n else if ( IS_GMC ( mb_type ) ) {\n COLOR ( 190 , 48 ) }\n else if ( IS_SKIP ( mb_type ) ) {\n }\n else if ( ! USES_LIST ( mb_type , 1 ) ) {\n COLOR ( 240 , 48 ) }\n else if ( ! USES_LIST ( mb_type , 0 ) ) {\n COLOR ( 0 , 48 ) }\n else {\n assert ( USES_LIST ( mb_type , 0 ) && USES_LIST ( mb_type , 1 ) ) ;\n COLOR ( 300 , 48 ) }\n u *= 0x0101010101010101ULL ;\n v *= 0x0101010101010101ULL ;\n for ( y = 0 ;\n y < block_height ;\n y ++ ) {\n * ( uint64_t * ) ( pict -> data [ 1 ] + 8 * mb_x + ( block_height * mb_y + y ) * pict -> linesize [ 1 ] ) = u ;\n * ( uint64_t * ) ( pict -> data [ 2 ] + 8 * mb_x + ( block_height * mb_y + y ) * pict -> linesize [ 2 ] ) = v ;\n }\n if ( IS_8X8 ( mb_type ) || IS_16X8 ( mb_type ) ) {\n * ( uint64_t * ) ( pict -> data [ 0 ] + 16 * mb_x + 0 + ( 16 * mb_y + 8 ) * pict -> linesize [ 0 ] ) ^= 0x8080808080808080ULL ;\n * ( uint64_t * ) ( pict -> data [ 0 ] + 16 * mb_x + 8 + ( 16 * mb_y + 8 ) * pict -> linesize [ 0 ] ) ^= 0x8080808080808080ULL ;\n }\n if ( IS_8X8 ( mb_type ) || IS_8X16 ( mb_type ) ) {\n for ( y = 0 ;\n y < 16 ;\n y ++ ) pict -> data [ 0 ] [ 16 * mb_x + 8 + ( 16 * mb_y + y ) * pict -> linesize [ 0 ] ] ^= 0x80 ;\n }\n if ( IS_8X8 ( mb_type ) && mv_sample_log2 >= 2 ) {\n int dm = 1 << ( mv_sample_log2 - 2 ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n int sx = mb_x * 16 + 8 * ( i & 1 ) ;\n int sy = mb_y * 16 + 8 * ( i >> 1 ) ;\n int xy = ( mb_x * 2 + ( i & 1 ) + ( mb_y * 2 + ( i >> 1 ) ) * mv_stride ) << ( mv_sample_log2 - 1 ) ;\n int32_t * mv = ( int32_t * ) & pict -> motion_val [ 0 ] [ xy ] ;\n if ( mv [ 0 ] != mv [ dm ] || mv [ dm * mv_stride ] != mv [ dm * ( mv_stride + 1 ) ] ) for ( y = 0 ;\n y < 8 ;\n y ++ ) pict -> data [ 0 ] [ sx + 4 + ( sy + y ) * pict -> linesize [ 0 ] ] ^= 0x80 ;\n if ( mv [ 0 ] != mv [ dm * mv_stride ] || mv [ dm ] != mv [ dm * ( mv_stride + 1 ) ] ) * ( uint64_t * ) ( pict -> data [ 0 ] + sx + ( sy + 4 ) * pict -> linesize [ 0 ] ) ^= 0x8080808080808080ULL ;\n }\n }\n if ( IS_INTERLACED ( mb_type ) && s -> codec_id == AV_CODEC_ID_H264 ) {\n }\n }\n s -> mbskip_table [ mb_index ] = 0 ;\n }\n }\n }\n }"}
{"idx": 1549, "target": 1, "func": "static UFILE * finit_owner ( FILE * f , const char * locale , const char * codepage , UBool takeOwnership ) {\n UErrorCode status = U_ZERO_ERROR ;\n UFILE * result ;\n if ( f == NULL ) {\n return 0 ;\n }\n result = ( UFILE * ) uprv_malloc ( sizeof ( UFILE ) ) ;\n if ( result == NULL ) {\n return 0 ;\n }\n uprv_memset ( result , 0 , sizeof ( UFILE ) ) ;\n result -> fFileno = fileno ( f ) ;\n # if U_PLATFORM_USES_ONLY_WIN32_API && _MSC_VER < 1900 if ( 0 <= result -> fFileno && result -> fFileno <= 2 ) {\n # if _MSC_VER >= 1400 result -> fFile = & __iob_func ( ) [ _fileno ( f ) ] ;\n # else result -> fFile = & _iob [ _fileno ( f ) ] ;\n # endif }\n else # endif {\n result -> fFile = f ;\n }\n result -> str . fBuffer = result -> fUCBuffer ;\n result -> str . fPos = result -> fUCBuffer ;\n result -> str . fLimit = result -> fUCBuffer ;\n # if ! UCONFIG_NO_FORMATTING if ( u_locbund_init ( & result -> str . fBundle , locale ) == 0 ) {\n uprv_free ( result ) ;\n return 0 ;\n }\n # endif if ( codepage == NULL || * codepage != '\\0' ) {\n result -> fConverter = ucnv_open ( codepage , & status ) ;\n }\n if ( U_SUCCESS ( status ) ) {\n result -> fOwnFile = takeOwnership ;\n }\n else {\n # if ! UCONFIG_NO_FORMATTING u_locbund_close ( & result -> str . fBundle ) ;\n # endif uprv_free ( result ) ;\n result = NULL ;\n }\n return result ;\n }"}
{"idx": 1550, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( BluetoothChooserBrowserTest , InvokeDialog_ScanningBubble ) {\n set_status ( FakeBluetoothChooserController : : BluetoothStatus : : SCANNING ) ;\n RunDialog ( ) ;\n }"}
{"idx": 1551, "target": 0, "func": "static void stroke_del_conn ( private_stroke_socket_t * this , stroke_msg_t * msg ) {\n pop_string ( msg , & msg -> del_conn . name ) ;\n DBG1 ( DBG_CFG , \"received stroke: delete connection '%s'\" , msg -> del_conn . name ) ;\n this -> config -> del ( this -> config , msg ) ;\n this -> attribute -> del_dns ( this -> attribute , msg ) ;\n this -> handler -> del_attributes ( this -> handler , msg ) ;\n }"}
{"idx": 1552, "target": 0, "func": "static int rtp_packetize_g726_16 ( sout_stream_id_sys_t * id , block_t * in ) {\n return rtp_packetize_g726 ( id , in , 4 ) ;\n }"}
{"idx": 1553, "target": 0, "func": "int virLogGetNbFilters ( void ) {\n return virLogNbFilters ;\n }"}
{"idx": 1554, "target": 0, "func": "SPL_METHOD ( SplDoublyLinkedList , getIteratorMode ) {\n spl_dllist_object * intern ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"\" ) == FAILURE ) {\n return ;\n }\n intern = ( spl_dllist_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n RETURN_LONG ( intern -> flags ) ;\n }"}
{"idx": 1555, "target": 0, "func": "static int SpoolssClosePrinter_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , NULL , NULL , FALSE , FALSE ) ;\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 1556, "target": 0, "func": "static int dtls1_reassemble_fragment ( SSL * s , struct hm_header_st * msg_hdr , int * ok ) {\n hm_fragment * frag = NULL ;\n pitem * item = NULL ;\n int i = - 1 , is_complete ;\n unsigned char seq64be [ 8 ] ;\n unsigned long frag_len = msg_hdr -> frag_len , max_len ;\n if ( ( msg_hdr -> frag_off + frag_len ) > msg_hdr -> msg_len ) goto err ;\n if ( DTLS1_HM_HEADER_LENGTH + SSL3_RT_MAX_ENCRYPTED_LENGTH < s -> max_cert_list ) max_len = s -> max_cert_list ;\n else max_len = DTLS1_HM_HEADER_LENGTH + SSL3_RT_MAX_ENCRYPTED_LENGTH ;\n if ( ( msg_hdr -> frag_off + frag_len ) > max_len ) goto err ;\n memset ( seq64be , 0 , sizeof ( seq64be ) ) ;\n seq64be [ 6 ] = ( unsigned char ) ( msg_hdr -> seq >> 8 ) ;\n seq64be [ 7 ] = ( unsigned char ) msg_hdr -> seq ;\n item = pqueue_find ( s -> d1 -> buffered_messages , seq64be ) ;\n if ( item == NULL ) {\n frag = dtls1_hm_fragment_new ( msg_hdr -> msg_len , 1 ) ;\n if ( frag == NULL ) goto err ;\n memcpy ( & ( frag -> msg_header ) , msg_hdr , sizeof ( * msg_hdr ) ) ;\n frag -> msg_header . frag_len = frag -> msg_header . msg_len ;\n frag -> msg_header . frag_off = 0 ;\n }\n else frag = ( hm_fragment * ) item -> data ;\n if ( frag -> reassembly == NULL ) {\n unsigned char devnull [ 256 ] ;\n while ( frag_len ) {\n i = s -> method -> ssl_read_bytes ( s , SSL3_RT_HANDSHAKE , devnull , frag_len > sizeof ( devnull ) ? sizeof ( devnull ) : frag_len , 0 ) ;\n if ( i <= 0 ) goto err ;\n frag_len -= i ;\n }\n return DTLS1_HM_FRAGMENT_RETRY ;\n }\n i = s -> method -> ssl_read_bytes ( s , SSL3_RT_HANDSHAKE , frag -> fragment + msg_hdr -> frag_off , frag_len , 0 ) ;\n if ( i <= 0 || ( unsigned long ) i != frag_len ) goto err ;\n RSMBLY_BITMASK_MARK ( frag -> reassembly , ( long ) msg_hdr -> frag_off , ( long ) ( msg_hdr -> frag_off + frag_len ) ) ;\n RSMBLY_BITMASK_IS_COMPLETE ( frag -> reassembly , ( long ) msg_hdr -> msg_len , is_complete ) ;\n if ( is_complete ) {\n OPENSSL_free ( frag -> reassembly ) ;\n frag -> reassembly = NULL ;\n }\n if ( item == NULL ) {\n memset ( seq64be , 0 , sizeof ( seq64be ) ) ;\n seq64be [ 6 ] = ( unsigned char ) ( msg_hdr -> seq >> 8 ) ;\n seq64be [ 7 ] = ( unsigned char ) ( msg_hdr -> seq ) ;\n item = pitem_new ( seq64be , frag ) ;\n if ( item == NULL ) {\n goto err ;\n i = - 1 ;\n }\n pqueue_insert ( s -> d1 -> buffered_messages , item ) ;\n }\n return DTLS1_HM_FRAGMENT_RETRY ;\n err : if ( frag != NULL ) dtls1_hm_fragment_free ( frag ) ;\n if ( item != NULL ) OPENSSL_free ( item ) ;\n * ok = 0 ;\n return i ;\n }"}
{"idx": 1557, "target": 0, "func": "int xmlListEmpty ( xmlListPtr l ) {\n if ( l == NULL ) return ( - 1 ) ;\n return ( l -> sentinel -> next == l -> sentinel ) ;\n }"}
{"idx": 1558, "target": 0, "func": "static void * Type_CrdInfo_Read ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number * nItems , cmsUInt32Number SizeOfTag ) {\n cmsMLU * mlu = cmsMLUalloc ( self -> ContextID , 5 ) ;\n * nItems = 0 ;\n if ( ! ReadCountAndSting ( self , io , mlu , & SizeOfTag , \"nm\" ) ) goto Error ;\n if ( ! ReadCountAndSting ( self , io , mlu , & SizeOfTag , \"#0\" ) ) goto Error ;\n if ( ! ReadCountAndSting ( self , io , mlu , & SizeOfTag , \"#1\" ) ) goto Error ;\n if ( ! ReadCountAndSting ( self , io , mlu , & SizeOfTag , \"#2\" ) ) goto Error ;\n if ( ! ReadCountAndSting ( self , io , mlu , & SizeOfTag , \"#3\" ) ) goto Error ;\n * nItems = 1 ;\n return ( void * ) mlu ;\n Error : cmsMLUfree ( mlu ) ;\n return NULL ;\n }"}
{"idx": 1559, "target": 0, "func": "static vpx_image_t * img_alloc_helper ( vpx_image_t * img , vpx_img_fmt_t fmt , unsigned int d_w , unsigned int d_h , unsigned int buf_align , unsigned int stride_align , unsigned char * img_data ) {\n unsigned int h , w , s , xcs , ycs , bps ;\n int align ;\n if ( ! buf_align ) buf_align = 1 ;\n if ( buf_align & ( buf_align - 1 ) ) goto fail ;\n if ( ! stride_align ) stride_align = 1 ;\n if ( stride_align & ( stride_align - 1 ) ) goto fail ;\n switch ( fmt ) {\n case VPX_IMG_FMT_RGB32 : case VPX_IMG_FMT_RGB32_LE : case VPX_IMG_FMT_ARGB : case VPX_IMG_FMT_ARGB_LE : bps = 32 ;\n break ;\n case VPX_IMG_FMT_RGB24 : case VPX_IMG_FMT_BGR24 : bps = 24 ;\n break ;\n case VPX_IMG_FMT_RGB565 : case VPX_IMG_FMT_RGB565_LE : case VPX_IMG_FMT_RGB555 : case VPX_IMG_FMT_RGB555_LE : case VPX_IMG_FMT_UYVY : case VPX_IMG_FMT_YUY2 : case VPX_IMG_FMT_YVYU : bps = 16 ;\n break ;\n case VPX_IMG_FMT_I420 : case VPX_IMG_FMT_YV12 : case VPX_IMG_FMT_VPXI420 : case VPX_IMG_FMT_VPXYV12 : bps = 12 ;\n break ;\n case VPX_IMG_FMT_I422 : bps = 16 ;\n break ;\n case VPX_IMG_FMT_I444 : bps = 24 ;\n break ;\n case VPX_IMG_FMT_I42016 : bps = 24 ;\n break ;\n case VPX_IMG_FMT_I42216 : bps = 32 ;\n break ;\n case VPX_IMG_FMT_I44416 : bps = 48 ;\n break ;\n default : bps = 16 ;\n break ;\n }\n switch ( fmt ) {\n case VPX_IMG_FMT_I420 : case VPX_IMG_FMT_YV12 : case VPX_IMG_FMT_VPXI420 : case VPX_IMG_FMT_VPXYV12 : case VPX_IMG_FMT_I422 : case VPX_IMG_FMT_I42016 : case VPX_IMG_FMT_I42216 : xcs = 1 ;\n break ;\n default : xcs = 0 ;\n break ;\n }\n switch ( fmt ) {\n case VPX_IMG_FMT_I420 : case VPX_IMG_FMT_YV12 : case VPX_IMG_FMT_VPXI420 : case VPX_IMG_FMT_VPXYV12 : ycs = 1 ;\n break ;\n default : ycs = 0 ;\n break ;\n }\n align = ( 1 << xcs ) - 1 ;\n w = ( d_w + align ) & ~ align ;\n align = ( 1 << ycs ) - 1 ;\n h = ( d_h + align ) & ~ align ;\n s = ( fmt & VPX_IMG_FMT_PLANAR ) ? w : bps * w / 8 ;\n s = ( s + stride_align - 1 ) & ~ ( stride_align - 1 ) ;\n if ( ! img ) {\n img = ( vpx_image_t * ) calloc ( 1 , sizeof ( vpx_image_t ) ) ;\n if ( ! img ) goto fail ;\n img -> self_allocd = 1 ;\n }\n else {\n memset ( img , 0 , sizeof ( vpx_image_t ) ) ;\n }\n img -> img_data = img_data ;\n if ( ! img_data ) {\n const uint64_t alloc_size = ( fmt & VPX_IMG_FMT_PLANAR ) ? ( uint64_t ) h * s * bps / 8 : ( uint64_t ) h * s ;\n if ( alloc_size != ( size_t ) alloc_size ) goto fail ;\n img -> img_data = img_buf_memalign ( buf_align , ( size_t ) alloc_size ) ;\n img -> img_data_owner = 1 ;\n }\n if ( ! img -> img_data ) goto fail ;\n img -> fmt = fmt ;\n img -> bit_depth = ( fmt & VPX_IMG_FMT_HIGH ) ? 16 : 8 ;\n img -> w = w ;\n img -> h = h ;\n img -> x_chroma_shift = xcs ;\n img -> y_chroma_shift = ycs ;\n img -> bps = bps ;\n img -> stride [ VPX_PLANE_Y ] = img -> stride [ VPX_PLANE_ALPHA ] = s ;\n img -> stride [ VPX_PLANE_U ] = img -> stride [ VPX_PLANE_V ] = s >> xcs ;\n if ( ! vpx_img_set_rect ( img , 0 , 0 , d_w , d_h ) ) return img ;\n fail : vpx_img_free ( img ) ;\n return NULL ;\n }"}
{"idx": 1560, "target": 0, "func": "void register_ber_oid_dissector ( const char * oid , dissector_t dissector , int proto , const char * name ) {\n dissector_handle_t dissector_handle ;\n dissector_handle = create_dissector_handle ( dissector , proto ) ;\n dissector_add_string ( \"ber.oid\" , oid , dissector_handle ) ;\n oid_add_from_string ( name , oid ) ;\n }"}
{"idx": 1561, "target": 0, "func": "TEST_F ( ShortcutsProviderTest , FragmentLengthMatches ) {\n base : : string16 text ( ASCIIToUTF16 ( \"just a\" ) ) ;\n ExpectedURLs expected_urls ;\n expected_urls . push_back ( ExpectedURLAndAllowedToBeDefault ( \"http://www.testsite.com/d.html\" , false ) ) ;\n expected_urls . push_back ( ExpectedURLAndAllowedToBeDefault ( \"http://www.testsite.com/e.html\" , false ) ) ;\n expected_urls . push_back ( ExpectedURLAndAllowedToBeDefault ( \"http://www.testsite.com/f.html\" , false ) ) ;\n RunShortcutsProviderTest ( provider_ , text , false , expected_urls , \"http://www.testsite.com/d.html\" , base : : string16 ( ) ) ;\n }"}
{"idx": 1562, "target": 0, "func": "TEST_F ( FullscreenControllerStateUnitTest , ExitTabFullscreenViaSwitchingTab ) {\n AddTab ( browser ( ) , GURL ( url : : kAboutBlankURL ) ) ;\n AddTab ( browser ( ) , GURL ( url : : kAboutBlankURL ) ) ;\n ASSERT_TRUE ( InvokeEvent ( TAB_FULLSCREEN_TRUE ) ) ;\n ASSERT_TRUE ( InvokeEvent ( WINDOW_CHANGE ) ) ;\n ASSERT_TRUE ( browser ( ) -> window ( ) -> IsFullscreen ( ) ) ;\n browser ( ) -> tab_strip_model ( ) -> SelectNextTab ( ) ;\n ChangeWindowFullscreenState ( ) ;\n EXPECT_FALSE ( browser ( ) -> window ( ) -> IsFullscreen ( ) ) ;\n }"}
{"idx": 1563, "target": 0, "func": "static int wb_write_padding_to_temp ( struct archive_write * a , int64_t csize ) {\n size_t ns ;\n int ret ;\n ns = ( size_t ) ( csize % LOGICAL_BLOCK_SIZE ) ;\n if ( ns != 0 ) ret = write_null ( a , LOGICAL_BLOCK_SIZE - ns ) ;\n else ret = ARCHIVE_OK ;\n return ( ret ) ;\n }"}
{"idx": 1564, "target": 0, "func": "static int sccp_calls ( packet_info * pinfo , const void * prot_info ) {\n voip_calls_tapinfo_t * tapinfo = & the_tapinfo_struct ;\n const sccp_msg_info_t * msg = ( const sccp_msg_info_t * ) prot_info ;\n sccp_assoc_info_t * assoc = msg -> data . co . assoc ;\n GList * list ;\n voip_calls_info_t * callsinfo = NULL ;\n const gchar * label = NULL ;\n const gchar * comment = NULL ;\n for ( list = g_list_first ( tapinfo -> callsinfo_list ) ;\n list ;\n list = g_list_next ( list ) ) {\n if ( ( ( voip_calls_info_t * ) ( list -> data ) ) -> prot_info == assoc ) {\n callsinfo = ( voip_calls_info_t * ) ( list -> data ) ;\n break ;\n }\n }\n if ( callsinfo == NULL ) {\n callsinfo = ( voip_calls_info_t * ) g_malloc0 ( sizeof ( voip_calls_info_t ) ) ;\n callsinfo -> call_state = VOIP_CALL_SETUP ;\n callsinfo -> call_active_state = VOIP_ACTIVE ;\n if ( assoc -> calling_party ) {\n callsinfo -> from_identity = g_strdup ( assoc -> calling_party ) ;\n }\n else {\n callsinfo -> from_identity = g_strdup ( \"Unknown\" ) ;\n }\n if ( assoc -> called_party ) {\n callsinfo -> to_identity = g_strdup ( assoc -> called_party ) ;\n }\n else {\n callsinfo -> to_identity = g_strdup ( \"Unknown\" ) ;\n }\n callsinfo -> prot_info = ( void * ) assoc ;\n callsinfo -> free_prot_info = NULL ;\n callsinfo -> npackets = 1 ;\n COPY_ADDRESS ( & ( callsinfo -> initial_speaker ) , & ( pinfo -> src ) ) ;\n callsinfo -> protocol = SP2VP ( assoc -> payload ) ;\n callsinfo -> start_fd = pinfo -> fd ;\n callsinfo -> start_rel_ts = pinfo -> rel_ts ;\n callsinfo -> stop_fd = pinfo -> fd ;\n callsinfo -> stop_rel_ts = pinfo -> rel_ts ;\n callsinfo -> selected = FALSE ;\n callsinfo -> call_num = tapinfo -> ncalls ++ ;\n tapinfo -> callsinfo_list = g_list_prepend ( tapinfo -> callsinfo_list , callsinfo ) ;\n }\n else {\n if ( assoc -> calling_party ) {\n g_free ( callsinfo -> from_identity ) ;\n callsinfo -> from_identity = g_strdup ( assoc -> calling_party ) ;\n }\n if ( assoc -> called_party ) {\n g_free ( callsinfo -> to_identity ) ;\n callsinfo -> to_identity = g_strdup ( assoc -> called_party ) ;\n }\n callsinfo -> protocol = SP2VP ( assoc -> payload ) ;\n callsinfo -> stop_fd = pinfo -> fd ;\n callsinfo -> stop_rel_ts = pinfo -> rel_ts ;\n ++ ( callsinfo -> npackets ) ;\n switch ( msg -> type ) {\n case SCCP_MSG_TYPE_CC : callsinfo -> call_state = VOIP_IN_CALL ;\n break ;\n case SCCP_MSG_TYPE_RLC : callsinfo -> call_state = VOIP_COMPLETED ;\n callsinfo -> call_active_state = VOIP_INACTIVE ;\n break ;\n default : break ;\n }\n }\n if ( msg -> data . co . label ) {\n label = msg -> data . co . label ;\n }\n else {\n label = val_to_str ( msg -> type , sccp_payload_values , \"Unknown(%d)\" ) ;\n }\n if ( msg -> data . co . comment ) {\n comment = msg -> data . co . comment ;\n }\n else {\n comment = NULL ;\n }\n add_to_graph ( tapinfo , pinfo , label , comment , callsinfo -> call_num , & ( pinfo -> src ) , & ( pinfo -> dst ) , 1 ) ;\n ++ ( tapinfo -> npackets ) ;\n tapinfo -> redraw = TRUE ;\n return 1 ;\n }"}
{"idx": 1565, "target": 0, "func": "static int vvalue_tvb_get4 ( tvbuff_t * tvb , int offset , void * val ) {\n guint32 * ui4 = ( guint32 * ) val ;\n * ui4 = tvb_get_letohl ( tvb , offset ) ;\n return 4 ;\n }"}
{"idx": 1566, "target": 0, "func": "static void vmsvga_init ( DeviceState * dev , struct vmsvga_state_s * s , MemoryRegion * address_space , MemoryRegion * io ) {\n s -> scratch_size = SVGA_SCRATCH_SIZE ;\n s -> scratch = g_malloc ( s -> scratch_size * 4 ) ;\n s -> vga . con = graphic_console_init ( dev , 0 , & vmsvga_ops , s ) ;\n s -> fifo_size = SVGA_FIFO_SIZE ;\n memory_region_init_ram ( & s -> fifo_ram , NULL , \"vmsvga.fifo\" , s -> fifo_size , & error_abort ) ;\n vmstate_register_ram_global ( & s -> fifo_ram ) ;\n s -> fifo_ptr = memory_region_get_ram_ptr ( & s -> fifo_ram ) ;\n vga_common_init ( & s -> vga , OBJECT ( dev ) , true ) ;\n vga_init ( & s -> vga , OBJECT ( dev ) , address_space , io , true ) ;\n vmstate_register ( NULL , 0 , & vmstate_vga_common , & s -> vga ) ;\n s -> new_depth = 32 ;\n }"}
{"idx": 1567, "target": 0, "func": "static void update_sub_state ( AMRWBContext * ctx ) {\n memmove ( & ctx -> excitation_buf [ 0 ] , & ctx -> excitation_buf [ AMRWB_SFR_SIZE ] , ( AMRWB_P_DELAY_MAX + LP_ORDER + 1 ) * sizeof ( float ) ) ;\n memmove ( & ctx -> pitch_gain [ 1 ] , & ctx -> pitch_gain [ 0 ] , 5 * sizeof ( float ) ) ;\n memmove ( & ctx -> fixed_gain [ 1 ] , & ctx -> fixed_gain [ 0 ] , 1 * sizeof ( float ) ) ;\n memmove ( & ctx -> samples_az [ 0 ] , & ctx -> samples_az [ AMRWB_SFR_SIZE ] , LP_ORDER * sizeof ( float ) ) ;\n memmove ( & ctx -> samples_up [ 0 ] , & ctx -> samples_up [ AMRWB_SFR_SIZE ] , UPS_MEM_SIZE * sizeof ( float ) ) ;\n memmove ( & ctx -> samples_hb [ 0 ] , & ctx -> samples_hb [ AMRWB_SFR_SIZE_16k ] , LP_ORDER_16k * sizeof ( float ) ) ;\n }"}
{"idx": 1568, "target": 0, "func": "static int dissect_q931_over_ip ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n dissect_q931_pdu ( tvb , pinfo , tree , TRUE ) ;\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 1569, "target": 0, "func": "static UBool action_resolve ( UBiDiTransform * pTransform , UErrorCode * pErrorCode ) {\n ubidi_setPara ( pTransform -> pBidi , pTransform -> src , pTransform -> srcLength , pTransform -> pActiveScheme -> baseLevel , NULL , pErrorCode ) ;\n return FALSE ;\n }"}
{"idx": 1570, "target": 0, "func": "static iax_packet_data * iax_new_packet_data ( iax_call_data * call , gboolean reversed ) {\n iax_packet_data * p = wmem_new ( wmem_file_scope ( ) , iax_packet_data ) ;\n p -> first_time = TRUE ;\n p -> call_data = call ;\n p -> codec = 0 ;\n p -> reversed = reversed ;\n p -> abstime . secs = - 1 ;\n p -> abstime . nsecs = - 1 ;\n return p ;\n }"}
{"idx": 1571, "target": 0, "func": "int kvm_arch_insert_hw_breakpoint ( target_ulong addr , target_ulong len , int type ) {\n switch ( type ) {\n case GDB_BREAKPOINT_HW : len = 1 ;\n break ;\n case GDB_WATCHPOINT_WRITE : case GDB_WATCHPOINT_ACCESS : switch ( len ) {\n case 1 : break ;\n case 2 : case 4 : case 8 : if ( addr & ( len - 1 ) ) {\n return - EINVAL ;\n }\n break ;\n default : return - EINVAL ;\n }\n break ;\n default : return - ENOSYS ;\n }\n if ( nb_hw_breakpoint == 4 ) {\n return - ENOBUFS ;\n }\n if ( find_hw_breakpoint ( addr , len , type ) >= 0 ) {\n return - EEXIST ;\n }\n hw_breakpoint [ nb_hw_breakpoint ] . addr = addr ;\n hw_breakpoint [ nb_hw_breakpoint ] . len = len ;\n hw_breakpoint [ nb_hw_breakpoint ] . type = type ;\n nb_hw_breakpoint ++ ;\n return 0 ;\n }"}
{"idx": 1572, "target": 0, "func": "TEST_F ( ShortcutsProviderTest , DoesNotProvideOnFocus ) {\n AutocompleteInput input ( ASCIIToUTF16 ( \"about:o\" ) , base : : string16 : : npos , std : : string ( ) , GURL ( ) , metrics : : OmniboxEventProto : : INVALID_SPEC , false , false , true , true , true , TestSchemeClassifier ( ) ) ;\n provider_ -> Start ( input , false ) ;\n EXPECT_TRUE ( provider_ -> matches ( ) . empty ( ) ) ;\n }"}
{"idx": 1573, "target": 0, "func": "void mainwindows_init ( void ) {\n screen_width = term_width ;\n screen_height = term_height ;\n mainwindows = NULL ;\n active_mainwin = NULL ;\n clrtoeol_info = g_new0 ( MAIN_WINDOW_BORDER_REC , 1 ) ;\n screen_reserved_top = screen_reserved_bottom = 0 ;\n screen_reserved_left = screen_reserved_right = 0 ;\n command_bind ( \"window grow\" , NULL , ( SIGNAL_FUNC ) cmd_window_grow ) ;\n command_bind ( \"window shrink\" , NULL , ( SIGNAL_FUNC ) cmd_window_shrink ) ;\n command_bind ( \"window size\" , NULL , ( SIGNAL_FUNC ) cmd_window_size ) ;\n command_bind ( \"window balance\" , NULL , ( SIGNAL_FUNC ) cmd_window_balance ) ;\n command_bind ( \"window hide\" , NULL , ( SIGNAL_FUNC ) cmd_window_hide ) ;\n command_bind ( \"window show\" , NULL , ( SIGNAL_FUNC ) cmd_window_show ) ;\n command_bind ( \"window up\" , NULL , ( SIGNAL_FUNC ) cmd_window_up ) ;\n command_bind ( \"window down\" , NULL , ( SIGNAL_FUNC ) cmd_window_down ) ;\n command_bind ( \"window left\" , NULL , ( SIGNAL_FUNC ) cmd_window_left ) ;\n command_bind ( \"window right\" , NULL , ( SIGNAL_FUNC ) cmd_window_right ) ;\n command_bind ( \"window dup\" , NULL , ( SIGNAL_FUNC ) cmd_window_dup ) ;\n command_bind ( \"window ddown\" , NULL , ( SIGNAL_FUNC ) cmd_window_ddown ) ;\n command_bind ( \"window dleft\" , NULL , ( SIGNAL_FUNC ) cmd_window_dleft ) ;\n command_bind ( \"window dright\" , NULL , ( SIGNAL_FUNC ) cmd_window_dright ) ;\n command_bind ( \"window stick\" , NULL , ( SIGNAL_FUNC ) cmd_window_stick ) ;\n command_bind ( \"window move left\" , NULL , ( SIGNAL_FUNC ) cmd_window_move_left ) ;\n command_bind ( \"window move right\" , NULL , ( SIGNAL_FUNC ) cmd_window_move_right ) ;\n command_bind ( \"window move up\" , NULL , ( SIGNAL_FUNC ) cmd_window_move_up ) ;\n command_bind ( \"window move down\" , NULL , ( SIGNAL_FUNC ) cmd_window_move_down ) ;\n command_bind ( \"window move dleft\" , NULL , ( SIGNAL_FUNC ) cmd_window_move_dleft ) ;\n command_bind ( \"window move dright\" , NULL , ( SIGNAL_FUNC ) cmd_window_move_dright ) ;\n command_bind ( \"window rgrow\" , NULL , ( SIGNAL_FUNC ) cmd_window_rgrow ) ;\n command_bind ( \"window rshrink\" , NULL , ( SIGNAL_FUNC ) cmd_window_rshrink ) ;\n command_bind ( \"window rsize\" , NULL , ( SIGNAL_FUNC ) cmd_window_rsize ) ;\n command_bind ( \"window rbalance\" , NULL , ( SIGNAL_FUNC ) cmd_window_rbalance ) ;\n command_bind ( \"window rshow\" , NULL , ( SIGNAL_FUNC ) cmd_window_rshow ) ;\n signal_add ( \"window print info\" , ( SIGNAL_FUNC ) sig_window_print_info ) ;\n }"}
{"idx": 1574, "target": 0, "func": "static void netbios_add_session_init_flags ( tvbuff_t * tvb , proto_tree * tree , int offset ) {\n proto_tree * field_tree ;\n proto_item * tf ;\n tf = proto_tree_add_item ( tree , hf_netb_flags , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n field_tree = proto_item_add_subtree ( tf , ett_netb_flags ) ;\n proto_tree_add_item ( field_tree , hf_netb_flags_send_no_ack , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( field_tree , hf_netb_largest_frame , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( field_tree , hf_netb_version , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n }"}
{"idx": 1575, "target": 0, "func": "static void list_item_verbose ( struct cpio * cpio , struct archive_entry * entry ) {\n char size [ 32 ] ;\n char date [ 32 ] ;\n char uids [ 16 ] , gids [ 16 ] ;\n const char * uname , * gname ;\n FILE * out = stdout ;\n const char * fmt ;\n time_t mtime ;\n static time_t now ;\n if ( ! now ) time ( & now ) ;\n if ( cpio -> option_numeric_uid_gid ) {\n strcpy ( uids , cpio_i64toa ( archive_entry_uid ( entry ) ) ) ;\n uname = uids ;\n strcpy ( gids , cpio_i64toa ( archive_entry_gid ( entry ) ) ) ;\n gname = gids ;\n }\n else {\n uname = archive_entry_uname ( entry ) ;\n if ( uname == NULL ) uname = lookup_uname ( cpio , ( uid_t ) archive_entry_uid ( entry ) ) ;\n gname = archive_entry_gname ( entry ) ;\n if ( gname == NULL ) gname = lookup_gname ( cpio , ( uid_t ) archive_entry_gid ( entry ) ) ;\n }\n if ( archive_entry_filetype ( entry ) == AE_IFCHR || archive_entry_filetype ( entry ) == AE_IFBLK ) {\n snprintf ( size , sizeof ( size ) , \"%lu,%lu\" , ( unsigned long ) archive_entry_rdevmajor ( entry ) , ( unsigned long ) archive_entry_rdevminor ( entry ) ) ;\n }\n else {\n strcpy ( size , cpio_i64toa ( archive_entry_size ( entry ) ) ) ;\n }\n mtime = archive_entry_mtime ( entry ) ;\n # if defined ( _WIN32 ) && ! defined ( __CYGWIN__ ) if ( mtime - now > 365 * 86400 / 2 || mtime - now < - 365 * 86400 / 2 ) fmt = cpio -> day_first ? \"%d %b %Y\" : \"%b %d %Y\" ;\n else fmt = cpio -> day_first ? \"%d %b %H:%M\" : \"%b %d %H:%M\" ;\n # else if ( mtime - now > 365 * 86400 / 2 || mtime - now < - 365 * 86400 / 2 ) fmt = cpio -> day_first ? \"%e %b %Y\" : \"%b %e %Y\" ;\n else fmt = cpio -> day_first ? \"%e %b %H:%M\" : \"%b %e %H:%M\" ;\n # endif strftime ( date , sizeof ( date ) , fmt , localtime ( & mtime ) ) ;\n fprintf ( out , \"%s%3d %-8s %-8s %8s %12s %s\" , archive_entry_strmode ( entry ) , archive_entry_nlink ( entry ) , uname , gname , size , date , archive_entry_pathname ( entry ) ) ;\n if ( archive_entry_hardlink ( entry ) ) fprintf ( out , \" link to %s\" , archive_entry_hardlink ( entry ) ) ;\n else if ( archive_entry_symlink ( entry ) ) fprintf ( out , \" -> %s\" , archive_entry_symlink ( entry ) ) ;\n fprintf ( out , \"\\n\" ) ;\n }"}
{"idx": 1576, "target": 0, "func": "const char * GetInputMessageTypeName ( const IPC : : Message & message ) {\n switch ( message . type ( ) ) {\n # include \"content/common/input_messages.h\" default : NOTREACHED ( ) << \"Invalid message type: \" << message . type ( ) ;\n break ;\n }\n ;\n return \"NonInputMsgType\" ;\n }"}
{"idx": 1577, "target": 0, "func": "void http_parser_clear ( HTTPParser * parser ) {\n _http_parser_init ( parser ) ;\n mime_parser_clear ( & parser -> m_mime_parser ) ;\n }"}
{"idx": 1578, "target": 1, "func": "void EVP_EncodeUpdate ( EVP_ENCODE_CTX * ctx , unsigned char * out , int * outl , const unsigned char * in , int inl ) {\n int i , j ;\n unsigned int total = 0 ;\n * outl = 0 ;\n if ( inl <= 0 ) return ;\n OPENSSL_assert ( ctx -> length <= ( int ) sizeof ( ctx -> enc_data ) ) ;\n if ( ( ctx -> num + inl ) < ctx -> length ) {\n memcpy ( & ( ctx -> enc_data [ ctx -> num ] ) , in , inl ) ;\n ctx -> num += inl ;\n return ;\n }\n if ( ctx -> num != 0 ) {\n i = ctx -> length - ctx -> num ;\n memcpy ( & ( ctx -> enc_data [ ctx -> num ] ) , in , i ) ;\n in += i ;\n inl -= i ;\n j = EVP_EncodeBlock ( out , ctx -> enc_data , ctx -> length ) ;\n ctx -> num = 0 ;\n out += j ;\n * ( out ++ ) = '\\n' ;\n * out = '\\0' ;\n total = j + 1 ;\n }\n while ( inl >= ctx -> length ) {\n j = EVP_EncodeBlock ( out , in , ctx -> length ) ;\n in += ctx -> length ;\n inl -= ctx -> length ;\n out += j ;\n * ( out ++ ) = '\\n' ;\n * out = '\\0' ;\n total += j + 1 ;\n }\n if ( inl != 0 ) memcpy ( & ( ctx -> enc_data [ 0 ] ) , in , inl ) ;\n ctx -> num = inl ;\n * outl = total ;\n }"}
{"idx": 1579, "target": 0, "func": "static void fz_drop_link_imp ( fz_context * ctx , fz_storable * storable ) {\n fz_icclink * link = ( fz_icclink * ) storable ;\n fz_cmm_fin_link ( ctx , link ) ;\n fz_free ( ctx , link ) ;\n }"}
{"idx": 1580, "target": 0, "func": "static int test_forward_match ( xd3_stream * stream , int unused ) {\n usize_t i ;\n uint8_t buf1 [ 256 ] , buf2 [ 256 ] ;\n memset ( buf1 , 0 , 256 ) ;\n memset ( buf2 , 0 , 256 ) ;\n for ( i = 0 ;\n i < 256 ;\n i ++ ) {\n CHECK ( xd3_forward_match ( buf1 , buf2 , i ) == ( int ) i ) ;\n }\n for ( i = 0 ;\n i < 255 ;\n i ++ ) {\n buf2 [ i ] = 1 ;\n CHECK ( xd3_forward_match ( buf1 , buf2 , 256 ) == ( int ) i ) ;\n buf2 [ i ] = 0 ;\n }\n return 0 ;\n }"}
{"idx": 1581, "target": 0, "func": "static void virtio_balloon_receive_stats ( VirtIODevice * vdev , VirtQueue * vq ) {\n VirtIOBalloon * s = DO_UPCAST ( VirtIOBalloon , vdev , vdev ) ;\n VirtQueueElement * elem = & s -> stats_vq_elem ;\n VirtIOBalloonStat stat ;\n size_t offset = 0 ;\n if ( ! virtqueue_pop ( vq , elem ) ) {\n return ;\n }\n reset_stats ( s ) ;\n while ( iov_to_buf ( elem -> out_sg , elem -> out_num , offset , & stat , sizeof ( stat ) ) == sizeof ( stat ) ) {\n uint16_t tag = tswap16 ( stat . tag ) ;\n uint64_t val = tswap64 ( stat . val ) ;\n offset += sizeof ( stat ) ;\n if ( tag < VIRTIO_BALLOON_S_NR ) s -> stats [ tag ] = val ;\n }\n s -> stats_vq_offset = offset ;\n }"}
{"idx": 1582, "target": 0, "func": "static void selinux_secmark_refcount_dec ( void ) {\n atomic_dec ( & selinux_secmark_refcount ) ;\n }"}
{"idx": 1583, "target": 1, "func": "gpg_err_code_t _gcry_ecc_ecdsa_sign ( gcry_mpi_t input , ECC_secret_key * skey , gcry_mpi_t r , gcry_mpi_t s , int flags , int hashalgo ) {\n gpg_err_code_t rc = 0 ;\n int extraloops = 0 ;\n gcry_mpi_t k , dr , sum , k_1 , x ;\n mpi_point_struct I ;\n gcry_mpi_t hash ;\n const void * abuf ;\n unsigned int abits , qbits ;\n mpi_ec_t ctx ;\n if ( DBG_CIPHER ) log_mpidump ( \"ecdsa sign hash \" , input ) ;\n qbits = mpi_get_nbits ( skey -> E . n ) ;\n rc = _gcry_dsa_normalize_hash ( input , & hash , qbits ) ;\n if ( rc ) return rc ;\n k = NULL ;\n dr = mpi_alloc ( 0 ) ;\n sum = mpi_alloc ( 0 ) ;\n k_1 = mpi_alloc ( 0 ) ;\n x = mpi_alloc ( 0 ) ;\n point_init ( & I ) ;\n ctx = _gcry_mpi_ec_p_internal_new ( skey -> E . model , skey -> E . dialect , 0 , skey -> E . p , skey -> E . a , skey -> E . b ) ;\n do {\n do {\n mpi_free ( k ) ;\n k = NULL ;\n if ( ( flags & PUBKEY_FLAG_RFC6979 ) && hashalgo ) {\n if ( ! mpi_is_opaque ( input ) ) {\n rc = GPG_ERR_CONFLICT ;\n goto leave ;\n }\n abuf = mpi_get_opaque ( input , & abits ) ;\n rc = _gcry_dsa_gen_rfc6979_k ( & k , skey -> E . n , skey -> d , abuf , ( abits + 7 ) / 8 , hashalgo , extraloops ) ;\n if ( rc ) goto leave ;\n extraloops ++ ;\n }\n else k = _gcry_dsa_gen_k ( skey -> E . n , GCRY_STRONG_RANDOM ) ;\n _gcry_mpi_ec_mul_point ( & I , k , & skey -> E . G , ctx ) ;\n if ( _gcry_mpi_ec_get_affine ( x , NULL , & I , ctx ) ) {\n if ( DBG_CIPHER ) log_debug ( \"ecc sign: Failed to get affine coordinates\\n\" ) ;\n rc = GPG_ERR_BAD_SIGNATURE ;\n goto leave ;\n }\n mpi_mod ( r , x , skey -> E . n ) ;\n }\n while ( ! mpi_cmp_ui ( r , 0 ) ) ;\n mpi_mulm ( dr , skey -> d , r , skey -> E . n ) ;\n mpi_addm ( sum , hash , dr , skey -> E . n ) ;\n mpi_invm ( k_1 , k , skey -> E . n ) ;\n mpi_mulm ( s , k_1 , sum , skey -> E . n ) ;\n }\n while ( ! mpi_cmp_ui ( s , 0 ) ) ;\n if ( DBG_CIPHER ) {\n log_mpidump ( \"ecdsa sign result r \" , r ) ;\n log_mpidump ( \"ecdsa sign result s \" , s ) ;\n }\n leave : _gcry_mpi_ec_free ( ctx ) ;\n point_free ( & I ) ;\n mpi_free ( x ) ;\n mpi_free ( k_1 ) ;\n mpi_free ( sum ) ;\n mpi_free ( dr ) ;\n mpi_free ( k ) ;\n if ( hash != input ) mpi_free ( hash ) ;\n return rc ;\n }"}
{"idx": 1584, "target": 0, "func": "static void x8_update_predictions ( IntraX8Context * const w , const int orient , const int est_run ) {\n MpegEncContext * const s = w -> s ;\n w -> prediction_table [ s -> mb_x * 2 + ( s -> mb_y & 1 ) ] = ( est_run << 2 ) + 1 * ( orient == 4 ) + 2 * ( orient == 8 ) ;\n }"}
{"idx": 1585, "target": 0, "func": "static void U_CALLCONV uprv_writeSwapUInt16 ( uint16_t * p , uint16_t x ) {\n * p = ( uint16_t ) ( ( x << 8 ) | ( x >> 8 ) ) ;\n }"}
{"idx": 1586, "target": 0, "func": "double vp9_convert_qindex_to_q ( int qindex , vpx_bit_depth_t bit_depth ) {\n # if CONFIG_VP9_HIGHBITDEPTH switch ( bit_depth ) {\n case VPX_BITS_8 : return vp9_ac_quant ( qindex , 0 , bit_depth ) / 4.0 ;\n case VPX_BITS_10 : return vp9_ac_quant ( qindex , 0 , bit_depth ) / 16.0 ;\n case VPX_BITS_12 : return vp9_ac_quant ( qindex , 0 , bit_depth ) / 64.0 ;\n default : assert ( 0 && \"bit_depth should be VPX_BITS_8, VPX_BITS_10 or VPX_BITS_12\" ) ;\n return - 1.0 ;\n }\n # else return vp9_ac_quant ( qindex , 0 , bit_depth ) / 4.0 ;\n # endif }"}
{"idx": 1587, "target": 0, "func": "static void DumpStrArray ( char * pt , FILE * cfff , int oper ) {\n real d , last = 0 ;\n char * end ;\n while ( * pt == ' ' ) ++ pt ;\n if ( * pt == '\\0' ) return ;\n if ( * pt == '[' ) ++ pt ;\n while ( * pt == ' ' ) ++ pt ;\n while ( * pt != ']' && * pt != '\\0' ) {\n d = strtod ( pt , & end ) ;\n if ( pt == end ) break ;\n dumpdbl ( cfff , d - last ) ;\n last = d ;\n pt = end ;\n while ( * pt == ' ' ) ++ pt ;\n }\n dumpoper ( cfff , oper ) ;\n }"}
{"idx": 1588, "target": 0, "func": "static int32_t U_CALLCONV lenient8IteratorGetIndex ( UCharIterator * iter , UCharIteratorOrigin origin ) {\n switch ( origin ) {\n case UITER_ZERO : case UITER_START : return 0 ;\n case UITER_CURRENT : if ( iter -> index < 0 ) {\n const uint8_t * s ;\n UChar32 c ;\n int32_t i , limit , index ;\n s = ( const uint8_t * ) iter -> context ;\n i = index = 0 ;\n limit = iter -> start ;\n while ( i < limit ) {\n L8_NEXT ( s , i , limit , c ) ;\n if ( c <= 0xffff ) {\n ++ index ;\n }\n else {\n index += 2 ;\n }\n }\n iter -> start = i ;\n if ( i == iter -> limit ) {\n iter -> length = index ;\n }\n if ( iter -> reservedField != 0 ) {\n -- index ;\n }\n iter -> index = index ;\n }\n return iter -> index ;\n case UITER_LIMIT : case UITER_LENGTH : if ( iter -> length < 0 ) {\n const uint8_t * s ;\n UChar32 c ;\n int32_t i , limit , length ;\n s = ( const uint8_t * ) iter -> context ;\n if ( iter -> index < 0 ) {\n i = length = 0 ;\n limit = iter -> start ;\n while ( i < limit ) {\n L8_NEXT ( s , i , limit , c ) ;\n if ( c <= 0xffff ) {\n ++ length ;\n }\n else {\n length += 2 ;\n }\n }\n iter -> start = i ;\n iter -> index = iter -> reservedField != 0 ? length - 1 : length ;\n }\n else {\n i = iter -> start ;\n length = iter -> index ;\n if ( iter -> reservedField != 0 ) {\n ++ length ;\n }\n }\n limit = iter -> limit ;\n while ( i < limit ) {\n L8_NEXT ( s , i , limit , c ) ;\n if ( c <= 0xffff ) {\n ++ length ;\n }\n else {\n length += 2 ;\n }\n }\n iter -> length = length ;\n }\n return iter -> length ;\n default : return - 1 ;\n }\n }"}
{"idx": 1589, "target": 0, "func": "bool mysql_revoke_all ( THD * thd , List < LEX_USER > & list ) {\n uint counter , revoked , is_proc ;\n int result ;\n ACL_DB * acl_db ;\n TABLE_LIST tables [ GRANT_TABLES ] ;\n bool save_binlog_row_based ;\n DBUG_ENTER ( \"mysql_revoke_all\" ) ;\n save_binlog_row_based = thd -> current_stmt_binlog_row_based ;\n thd -> clear_current_stmt_binlog_row_based ( ) ;\n if ( ( result = open_grant_tables ( thd , tables ) ) ) {\n thd -> current_stmt_binlog_row_based = save_binlog_row_based ;\n DBUG_RETURN ( result != 1 ) ;\n }\n rw_wrlock ( & LOCK_grant ) ;\n VOID ( pthread_mutex_lock ( & acl_cache -> lock ) ) ;\n LEX_USER * lex_user , * tmp_lex_user ;\n List_iterator < LEX_USER > user_list ( list ) ;\n while ( ( tmp_lex_user = user_list ++ ) ) {\n if ( ! ( lex_user = get_current_user ( thd , tmp_lex_user ) ) ) {\n result = - 1 ;\n continue ;\n }\n if ( ! find_acl_user ( lex_user -> host . str , lex_user -> user . str , TRUE ) ) {\n result = - 1 ;\n continue ;\n }\n if ( replace_user_table ( thd , tables [ 0 ] . table , * lex_user , ~ ( ulong ) 0 , 1 , 0 , 0 ) ) {\n result = - 1 ;\n continue ;\n }\n do {\n for ( counter = 0 , revoked = 0 ;\n counter < acl_dbs . elements ;\n ) {\n const char * user , * host ;\n acl_db = dynamic_element ( & acl_dbs , counter , ACL_DB * ) ;\n if ( ! ( user = acl_db -> user ) ) user = \"\" ;\n if ( ! ( host = acl_db -> host . hostname ) ) host = \"\" ;\n if ( ! strcmp ( lex_user -> user . str , user ) && ! strcmp ( lex_user -> host . str , host ) ) {\n if ( ! replace_db_table ( tables [ 1 ] . table , acl_db -> db , * lex_user , ~ ( ulong ) 0 , 1 ) ) {\n revoked = 1 ;\n continue ;\n }\n result = - 1 ;\n }\n counter ++ ;\n }\n }\n while ( revoked ) ;\n do {\n for ( counter = 0 , revoked = 0 ;\n counter < column_priv_hash . records ;\n ) {\n const char * user , * host ;\n GRANT_TABLE * grant_table = ( GRANT_TABLE * ) hash_element ( & column_priv_hash , counter ) ;\n if ( ! ( user = grant_table -> user ) ) user = \"\" ;\n if ( ! ( host = grant_table -> host . hostname ) ) host = \"\" ;\n if ( ! strcmp ( lex_user -> user . str , user ) && ! strcmp ( lex_user -> host . str , host ) ) {\n if ( replace_table_table ( thd , grant_table , tables [ 2 ] . table , * lex_user , grant_table -> db , grant_table -> tname , ~ ( ulong ) 0 , 0 , 1 ) ) {\n result = - 1 ;\n }\n else {\n if ( ! grant_table -> cols ) {\n revoked = 1 ;\n continue ;\n }\n List < LEX_COLUMN > columns ;\n if ( ! replace_column_table ( grant_table , tables [ 3 ] . table , * lex_user , columns , grant_table -> db , grant_table -> tname , ~ ( ulong ) 0 , 1 ) ) {\n revoked = 1 ;\n continue ;\n }\n result = - 1 ;\n }\n }\n counter ++ ;\n }\n }\n while ( revoked ) ;\n for ( is_proc = 0 ;\n is_proc < 2 ;\n is_proc ++ ) do {\n HASH * hash = is_proc ? & proc_priv_hash : & func_priv_hash ;\n for ( counter = 0 , revoked = 0 ;\n counter < hash -> records ;\n ) {\n const char * user , * host ;\n GRANT_NAME * grant_proc = ( GRANT_NAME * ) hash_element ( hash , counter ) ;\n if ( ! ( user = grant_proc -> user ) ) user = \"\" ;\n if ( ! ( host = grant_proc -> host . hostname ) ) host = \"\" ;\n if ( ! strcmp ( lex_user -> user . str , user ) && ! strcmp ( lex_user -> host . str , host ) ) {\n if ( replace_routine_table ( thd , grant_proc , tables [ 4 ] . table , * lex_user , grant_proc -> db , grant_proc -> tname , is_proc , ~ ( ulong ) 0 , 1 ) == 0 ) {\n revoked = 1 ;\n continue ;\n }\n result = - 1 ;\n }\n counter ++ ;\n }\n }\n while ( revoked ) ;\n }\n VOID ( pthread_mutex_unlock ( & acl_cache -> lock ) ) ;\n if ( result ) my_message ( ER_REVOKE_GRANTS , ER ( ER_REVOKE_GRANTS ) , MYF ( 0 ) ) ;\n result = result | write_bin_log ( thd , FALSE , thd -> query ( ) , thd -> query_length ( ) ) ;\n rw_unlock ( & LOCK_grant ) ;\n close_thread_tables ( thd ) ;\n thd -> current_stmt_binlog_row_based = save_binlog_row_based ;\n DBUG_RETURN ( result ) ;\n }"}
{"idx": 1590, "target": 0, "func": "block_t * decoder_NewAudioBuffer ( decoder_t * dec , int samples ) {\n if ( decoder_UpdateAudioFormat ( dec ) ) return NULL ;\n size_t length = samples * dec -> fmt_out . audio . i_bytes_per_frame / dec -> fmt_out . audio . i_frame_length ;\n block_t * block = block_Alloc ( length ) ;\n if ( likely ( block != NULL ) ) {\n block -> i_nb_samples = samples ;\n block -> i_pts = block -> i_length = 0 ;\n }\n return block ;\n }"}
{"idx": 1591, "target": 0, "func": "static VALUE decode_obj ( unsigned char * der , long length ) {\n ASN1_OBJECT * obj ;\n const unsigned char * p ;\n VALUE ret ;\n int nid ;\n BIO * bio ;\n p = der ;\n if ( ! ( obj = d2i_ASN1_OBJECT ( NULL , & p , length ) ) ) ossl_raise ( eASN1Error , NULL ) ;\n if ( ( nid = OBJ_obj2nid ( obj ) ) != NID_undef ) {\n ASN1_OBJECT_free ( obj ) ;\n ret = rb_str_new2 ( OBJ_nid2sn ( nid ) ) ;\n }\n else {\n if ( ! ( bio = BIO_new ( BIO_s_mem ( ) ) ) ) {\n ASN1_OBJECT_free ( obj ) ;\n ossl_raise ( eASN1Error , NULL ) ;\n }\n i2a_ASN1_OBJECT ( bio , obj ) ;\n ASN1_OBJECT_free ( obj ) ;\n ret = ossl_membio2str ( bio ) ;\n }\n return ret ;\n }"}
{"idx": 1592, "target": 0, "func": "static VALUE mString_to_json ( int argc , VALUE * argv , VALUE self ) {\n GENERATE_JSON ( string ) ;\n }"}
{"idx": 1593, "target": 0, "func": "static int isoent_add_child_head ( struct isoent * parent , struct isoent * child ) {\n if ( ! __archive_rb_tree_insert_node ( & ( parent -> rbtree ) , ( struct archive_rb_node * ) child ) ) return ( 0 ) ;\n if ( ( child -> chnext = parent -> children . first ) == NULL ) parent -> children . last = & ( child -> chnext ) ;\n parent -> children . first = child ;\n parent -> children . cnt ++ ;\n child -> parent = parent ;\n if ( child -> dir ) {\n if ( ( child -> drnext = parent -> subdirs . first ) == NULL ) parent -> subdirs . last = & ( child -> drnext ) ;\n parent -> subdirs . first = child ;\n parent -> subdirs . cnt ++ ;\n child -> parent = parent ;\n }\n else child -> drnext = NULL ;\n return ( 1 ) ;\n }"}
{"idx": 1594, "target": 0, "func": "ber_slen_t ber_read ( BerElement * ber , char * buf , ber_len_t len ) {\n ber_len_t actuallen , nleft ;\n assert ( ber != NULL ) ;\n assert ( buf != NULL ) ;\n assert ( LBER_VALID ( ber ) ) ;\n nleft = ber_pvt_ber_remaining ( ber ) ;\n actuallen = nleft < len ? nleft : len ;\n AC_MEMCPY ( buf , ber -> ber_ptr , actuallen ) ;\n ber -> ber_ptr += actuallen ;\n return ( ( ber_slen_t ) actuallen ) ;\n }"}
{"idx": 1595, "target": 0, "func": "static bool ModuleSort ( const ModuleEnumerator : : Module & a , const ModuleEnumerator : : Module & b ) {\n if ( a . status != b . status ) return a . status > b . status ;\n if ( a . location == b . location ) return a . name < b . name ;\n return a . location < b . location ;\n }"}
{"idx": 1596, "target": 0, "func": "static int SIPcalls_packet ( void * ptr _U_ , packet_info * pinfo , epan_dissect_t * edt _U_ , const void * SIPinfo ) {\n voip_calls_tapinfo_t * tapinfo = & the_tapinfo_struct ;\n voip_calls_info_t * callsinfo = NULL ;\n sip_calls_info_t * tmp_sipinfo = NULL ;\n address tmp_src , tmp_dst ;\n gchar * frame_label = NULL ;\n gchar * comment = NULL ;\n gchar * key = NULL ;\n const sip_info_value_t * pi = ( const sip_info_value_t * ) SIPinfo ;\n if ( pi -> tap_call_id == NULL ) {\n return 0 ;\n }\n key = pi -> tap_call_id ;\n if ( NULL == tapinfo -> callsinfo_hashtable [ SIP_HASH ] ) {\n tapinfo -> callsinfo_hashtable [ SIP_HASH ] = g_hash_table_new_full ( g_str_hash , g_str_equal , NULL , NULL ) ;\n }\n callsinfo = ( voip_calls_info_t * ) g_hash_table_lookup ( tapinfo -> callsinfo_hashtable [ SIP_HASH ] , key ) ;\n if ( ( callsinfo == NULL ) && ( pi -> request_method != NULL ) ) {\n if ( strcmp ( pi -> request_method , \"INVITE\" ) == 0 ) {\n callsinfo = ( voip_calls_info_t * ) g_malloc0 ( sizeof ( voip_calls_info_t ) ) ;\n callsinfo -> call_active_state = VOIP_ACTIVE ;\n callsinfo -> call_state = VOIP_CALL_SETUP ;\n callsinfo -> from_identity = g_strdup ( pi -> tap_from_addr ) ;\n callsinfo -> to_identity = g_strdup ( pi -> tap_to_addr ) ;\n COPY_ADDRESS ( & ( callsinfo -> initial_speaker ) , & ( pinfo -> src ) ) ;\n callsinfo -> selected = FALSE ;\n callsinfo -> start_fd = pinfo -> fd ;\n callsinfo -> start_rel_ts = pinfo -> rel_ts ;\n callsinfo -> protocol = VOIP_SIP ;\n callsinfo -> prot_info = g_malloc ( sizeof ( sip_calls_info_t ) ) ;\n callsinfo -> free_prot_info = free_sip_info ;\n tmp_sipinfo = ( sip_calls_info_t * ) callsinfo -> prot_info ;\n tmp_sipinfo -> call_identifier = g_strdup ( pi -> tap_call_id ) ;\n tmp_sipinfo -> sip_state = SIP_INVITE_SENT ;\n tmp_sipinfo -> invite_cseq = pi -> tap_cseq_number ;\n callsinfo -> npackets = 0 ;\n callsinfo -> call_num = tapinfo -> ncalls ++ ;\n tapinfo -> callsinfo_list = g_list_prepend ( tapinfo -> callsinfo_list , callsinfo ) ;\n g_hash_table_insert ( tapinfo -> callsinfo_hashtable [ SIP_HASH ] , tmp_sipinfo -> call_identifier , callsinfo ) ;\n }\n }\n if ( callsinfo != NULL ) {\n tmp_sipinfo = ( sip_calls_info_t * ) callsinfo -> prot_info ;\n COPY_ADDRESS ( & ( tmp_src ) , & ( pinfo -> src ) ) ;\n COPY_ADDRESS ( & ( tmp_dst ) , & ( pinfo -> dst ) ) ;\n if ( pi -> request_method == NULL ) {\n frame_label = g_strdup_printf ( \"%u %s\" , pi -> response_code , pi -> reason_phrase ) ;\n comment = g_strdup ( \"SIP Status\" ) ;\n if ( ( tmp_sipinfo && pi -> tap_cseq_number == tmp_sipinfo -> invite_cseq ) && ( ADDRESSES_EQUAL ( & tmp_dst , & ( callsinfo -> initial_speaker ) ) ) ) {\n if ( ( pi -> response_code > 199 ) && ( pi -> response_code < 300 ) && ( tmp_sipinfo -> sip_state == SIP_INVITE_SENT ) ) {\n tmp_sipinfo -> sip_state = SIP_200_REC ;\n }\n else if ( ( pi -> response_code > 299 ) && ( tmp_sipinfo -> sip_state == SIP_INVITE_SENT ) ) {\n callsinfo -> call_state = VOIP_REJECTED ;\n tapinfo -> rejected_calls ++ ;\n }\n }\n }\n else {\n frame_label = g_strdup ( pi -> request_method ) ;\n if ( ( strcmp ( pi -> request_method , \"INVITE\" ) == 0 ) && ( ADDRESSES_EQUAL ( & tmp_src , & ( callsinfo -> initial_speaker ) ) ) ) {\n tmp_sipinfo -> invite_cseq = pi -> tap_cseq_number ;\n callsinfo -> call_state = VOIP_CALL_SETUP ;\n comment = g_strdup_printf ( \"SIP From: %s To:%s\" , callsinfo -> from_identity , callsinfo -> to_identity ) ;\n }\n else if ( ( strcmp ( pi -> request_method , \"ACK\" ) == 0 ) && ( pi -> tap_cseq_number == tmp_sipinfo -> invite_cseq ) && ( ADDRESSES_EQUAL ( & tmp_src , & ( callsinfo -> initial_speaker ) ) ) && ( tmp_sipinfo -> sip_state == SIP_200_REC ) && ( callsinfo -> call_state == VOIP_CALL_SETUP ) ) {\n callsinfo -> call_state = VOIP_IN_CALL ;\n comment = g_strdup ( \"SIP Request\" ) ;\n }\n else if ( strcmp ( pi -> request_method , \"BYE\" ) == 0 ) {\n callsinfo -> call_state = VOIP_COMPLETED ;\n tapinfo -> completed_calls ++ ;\n comment = g_strdup ( \"SIP Request\" ) ;\n }\n else if ( ( strcmp ( pi -> request_method , \"CANCEL\" ) == 0 ) && ( pi -> tap_cseq_number == tmp_sipinfo -> invite_cseq ) && ( ADDRESSES_EQUAL ( & tmp_src , & ( callsinfo -> initial_speaker ) ) ) && ( callsinfo -> call_state == VOIP_CALL_SETUP ) ) {\n callsinfo -> call_state = VOIP_CANCELLED ;\n tmp_sipinfo -> sip_state = SIP_CANCEL_SENT ;\n comment = g_strdup ( \"SIP Request\" ) ;\n }\n else {\n comment = g_strdup ( \"SIP Request\" ) ;\n }\n }\n callsinfo -> stop_fd = pinfo -> fd ;\n callsinfo -> stop_rel_ts = pinfo -> rel_ts ;\n ++ ( callsinfo -> npackets ) ;\n ++ ( tapinfo -> npackets ) ;\n add_to_graph ( tapinfo , pinfo , frame_label , comment , callsinfo -> call_num , & ( pinfo -> src ) , & ( pinfo -> dst ) , 1 ) ;\n g_free ( comment ) ;\n g_free ( frame_label ) ;\n g_free ( ( void * ) tmp_src . data ) ;\n g_free ( ( void * ) tmp_dst . data ) ;\n if ( ( sdp_summary != NULL ) && ( sdp_frame_num == pinfo -> fd -> num ) ) {\n append_to_frame_graph ( tapinfo , pinfo -> fd -> num , sdp_summary , NULL ) ;\n g_free ( sdp_summary ) ;\n sdp_summary = NULL ;\n }\n }\n tapinfo -> redraw = TRUE ;\n return 1 ;\n }"}
{"idx": 1597, "target": 0, "func": "static gboolean gst_asf_demux_pull_headers ( GstASFDemux * demux , GstFlowReturn * pflow ) {\n GstFlowReturn flow = GST_FLOW_OK ;\n AsfObject obj ;\n GstBuffer * buf = NULL ;\n guint64 size ;\n GstMapInfo map ;\n guint8 * bufdata ;\n GST_LOG_OBJECT ( demux , \"reading headers\" ) ;\n if ( ! gst_asf_demux_pull_data ( demux , demux -> base_offset , 16 + 8 , & buf , & flow ) ) goto read_failed ;\n gst_buffer_map ( buf , & map , GST_MAP_READ ) ;\n g_assert ( map . size >= 16 + 8 ) ;\n if ( ! asf_demux_peek_object ( demux , map . data , 16 + 8 , & obj , TRUE ) ) {\n gst_buffer_unmap ( buf , & map ) ;\n gst_buffer_replace ( & buf , NULL ) ;\n flow = GST_FLOW_ERROR ;\n goto read_failed ;\n }\n gst_buffer_unmap ( buf , & map ) ;\n gst_buffer_replace ( & buf , NULL ) ;\n if ( obj . id != ASF_OBJ_HEADER ) goto wrong_type ;\n GST_LOG_OBJECT ( demux , \"header size = %\" G_GUINT64_FORMAT , obj . size ) ;\n if ( ! gst_asf_demux_pull_data ( demux , demux -> base_offset , obj . size , & buf , & flow ) ) goto read_failed ;\n size = obj . size ;\n gst_buffer_map ( buf , & map , GST_MAP_READ ) ;\n g_assert ( map . size >= size ) ;\n bufdata = ( guint8 * ) map . data ;\n flow = gst_asf_demux_process_object ( demux , & bufdata , & size ) ;\n gst_buffer_unmap ( buf , & map ) ;\n gst_buffer_replace ( & buf , NULL ) ;\n if ( flow != GST_FLOW_OK ) {\n GST_WARNING_OBJECT ( demux , \"process_object: %s\" , gst_flow_get_name ( flow ) ) ;\n goto parse_failed ;\n }\n demux -> data_offset = demux -> base_offset + obj . size + 50 ;\n if ( ! gst_asf_demux_pull_data ( demux , demux -> base_offset + obj . size , 50 , & buf , & flow ) ) goto read_failed ;\n gst_buffer_map ( buf , & map , GST_MAP_READ ) ;\n g_assert ( map . size >= size ) ;\n bufdata = ( guint8 * ) map . data ;\n if ( ! gst_asf_demux_parse_data_object_start ( demux , bufdata ) ) goto wrong_type ;\n if ( demux -> num_streams == 0 ) goto no_streams ;\n gst_buffer_unmap ( buf , & map ) ;\n gst_buffer_replace ( & buf , NULL ) ;\n return TRUE ;\n wrong_type : {\n if ( buf != NULL ) {\n gst_buffer_unmap ( buf , & map ) ;\n gst_buffer_replace ( & buf , NULL ) ;\n }\n GST_ELEMENT_ERROR ( demux , STREAM , WRONG_TYPE , ( NULL ) , ( \"This doesn't seem to be an ASF file\" ) ) ;\n * pflow = GST_FLOW_ERROR ;\n return FALSE ;\n }\n no_streams : flow = GST_FLOW_ERROR ;\n GST_ELEMENT_ERROR ( demux , STREAM , DEMUX , ( NULL ) , ( \"header parsing failed, or no streams found, flow = %s\" , gst_flow_get_name ( flow ) ) ) ;\n read_failed : parse_failed : {\n if ( buf ) gst_buffer_unmap ( buf , & map ) ;\n gst_buffer_replace ( & buf , NULL ) ;\n if ( flow == ASF_FLOW_NEED_MORE_DATA ) flow = GST_FLOW_ERROR ;\n * pflow = flow ;\n return FALSE ;\n }\n }"}
{"idx": 1598, "target": 0, "func": "IN_PROC_BROWSER_TEST_P ( BrowserCloseManagerBrowserTest , TestWithDangerousUrlDownload ) {\n std : : unique_ptr < TestDownloadManagerDelegate > test_delegate ( new TestDownloadManagerDelegate ( browser ( ) -> profile ( ) ) ) ;\n DownloadCoreServiceFactory : : GetForBrowserContext ( browser ( ) -> profile ( ) ) -> SetDownloadManagerDelegateForTesting ( std : : move ( test_delegate ) ) ;\n GURL download_url ( embedded_test_server ( ) -> GetURL ( \"/downloads/dangerous/dangerous.swf\" ) ) ;\n content : : DownloadTestObserverInterrupted observer ( content : : BrowserContext : : GetDownloadManager ( browser ( ) -> profile ( ) ) , 1 , content : : DownloadTestObserver : : ON_DANGEROUS_DOWNLOAD_QUIT ) ;\n ui_test_utils : : NavigateToURLWithDisposition ( browser ( ) , GURL ( download_url ) , WindowOpenDisposition : : NEW_BACKGROUND_TAB , ui_test_utils : : BROWSER_TEST_NONE ) ;\n observer . WaitForFinished ( ) ;\n EXPECT_EQ ( 1 , content : : BrowserContext : : GetDownloadManager ( browser ( ) -> profile ( ) ) -> InProgressCount ( ) ) ;\n EXPECT_EQ ( 0 , content : : BrowserContext : : GetDownloadManager ( browser ( ) -> profile ( ) ) -> NonMaliciousInProgressCount ( ) ) ;\n RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , 1 ) ;\n TestBrowserCloseManager : : AttemptClose ( TestBrowserCloseManager : : NO_USER_CHOICE ) ;\n close_observer . Wait ( ) ;\n EXPECT_TRUE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_TRUE ( BrowserList : : GetInstance ( ) -> empty ( ) ) ;\n }"}
{"idx": 1599, "target": 1, "func": "void vp9_loop_filter_alloc ( VP9_COMMON * cm , VP9LfSync * lf_sync , int rows , int width ) {\n lf_sync -> rows = rows ;\n # if CONFIG_MULTITHREAD {\n int i ;\n CHECK_MEM_ERROR ( cm , lf_sync -> mutex_ , vpx_malloc ( sizeof ( * lf_sync -> mutex_ ) * rows ) ) ;\n for ( i = 0 ;\n i < rows ;\n ++ i ) {\n pthread_mutex_init ( & lf_sync -> mutex_ [ i ] , NULL ) ;\n }\n CHECK_MEM_ERROR ( cm , lf_sync -> cond_ , vpx_malloc ( sizeof ( * lf_sync -> cond_ ) * rows ) ) ;\n for ( i = 0 ;\n i < rows ;\n ++ i ) {\n pthread_cond_init ( & lf_sync -> cond_ [ i ] , NULL ) ;\n }\n }\n # endif CHECK_MEM_ERROR ( cm , lf_sync -> cur_sb_col , vpx_malloc ( sizeof ( * lf_sync -> cur_sb_col ) * rows ) ) ;\n lf_sync -> sync_range = get_sync_range ( width ) ;\n }"}
{"idx": 1600, "target": 0, "func": "void vp8_alloc_compressor_data ( VP8_COMP * cpi ) {\n VP8_COMMON * cm = & cpi -> common ;\n int width = cm -> Width ;\n int height = cm -> Height ;\n if ( vp8_alloc_frame_buffers ( cm , width , height ) ) vpx_internal_error ( & cpi -> common . error , VPX_CODEC_MEM_ERROR , \"Failed to allocate frame buffers\" ) ;\n if ( vp8_alloc_partition_data ( cpi ) ) vpx_internal_error ( & cpi -> common . error , VPX_CODEC_MEM_ERROR , \"Failed to allocate partition data\" ) ;\n if ( ( width & 0xf ) != 0 ) width += 16 - ( width & 0xf ) ;\n if ( ( height & 0xf ) != 0 ) height += 16 - ( height & 0xf ) ;\n if ( vp8_yv12_alloc_frame_buffer ( & cpi -> pick_lf_lvl_frame , width , height , VP8BORDERINPIXELS ) ) vpx_internal_error ( & cpi -> common . error , VPX_CODEC_MEM_ERROR , \"Failed to allocate last frame buffer\" ) ;\n if ( vp8_yv12_alloc_frame_buffer ( & cpi -> scaled_source , width , height , VP8BORDERINPIXELS ) ) vpx_internal_error ( & cpi -> common . error , VPX_CODEC_MEM_ERROR , \"Failed to allocate scaled source buffer\" ) ;\n vpx_free ( cpi -> tok ) ;\n {\n # if CONFIG_REALTIME_ONLY & CONFIG_ONTHEFLY_BITPACKING unsigned int tokens = 8 * 24 * 16 ;\n # else unsigned int tokens = cm -> mb_rows * cm -> mb_cols * 24 * 16 ;\n # endif CHECK_MEM_ERROR ( cpi -> tok , vpx_calloc ( tokens , sizeof ( * cpi -> tok ) ) ) ;\n }\n cpi -> zeromv_count = 0 ;\n vpx_free ( cpi -> gf_active_flags ) ;\n CHECK_MEM_ERROR ( cpi -> gf_active_flags , vpx_calloc ( sizeof ( * cpi -> gf_active_flags ) , cm -> mb_rows * cm -> mb_cols ) ) ;\n cpi -> gf_active_count = cm -> mb_rows * cm -> mb_cols ;\n vpx_free ( cpi -> mb_activity_map ) ;\n CHECK_MEM_ERROR ( cpi -> mb_activity_map , vpx_calloc ( sizeof ( * cpi -> mb_activity_map ) , cm -> mb_rows * cm -> mb_cols ) ) ;\n vpx_free ( cpi -> lfmv ) ;\n CHECK_MEM_ERROR ( cpi -> lfmv , vpx_calloc ( ( cm -> mb_rows + 2 ) * ( cm -> mb_cols + 2 ) , sizeof ( * cpi -> lfmv ) ) ) ;\n vpx_free ( cpi -> lf_ref_frame_sign_bias ) ;\n CHECK_MEM_ERROR ( cpi -> lf_ref_frame_sign_bias , vpx_calloc ( ( cm -> mb_rows + 2 ) * ( cm -> mb_cols + 2 ) , sizeof ( * cpi -> lf_ref_frame_sign_bias ) ) ) ;\n vpx_free ( cpi -> lf_ref_frame ) ;\n CHECK_MEM_ERROR ( cpi -> lf_ref_frame , vpx_calloc ( ( cm -> mb_rows + 2 ) * ( cm -> mb_cols + 2 ) , sizeof ( * cpi -> lf_ref_frame ) ) ) ;\n vpx_free ( cpi -> segmentation_map ) ;\n CHECK_MEM_ERROR ( cpi -> segmentation_map , vpx_calloc ( cm -> mb_rows * cm -> mb_cols , sizeof ( * cpi -> segmentation_map ) ) ) ;\n cpi -> cyclic_refresh_mode_index = 0 ;\n vpx_free ( cpi -> active_map ) ;\n CHECK_MEM_ERROR ( cpi -> active_map , vpx_calloc ( cm -> mb_rows * cm -> mb_cols , sizeof ( * cpi -> active_map ) ) ) ;\n vpx_memset ( cpi -> active_map , 1 , ( cm -> mb_rows * cm -> mb_cols ) ) ;\n # if CONFIG_MULTITHREAD if ( width < 640 ) cpi -> mt_sync_range = 1 ;\n else if ( width <= 1280 ) cpi -> mt_sync_range = 4 ;\n else if ( width <= 2560 ) cpi -> mt_sync_range = 8 ;\n else cpi -> mt_sync_range = 16 ;\n if ( cpi -> oxcf . multi_threaded > 1 ) {\n vpx_free ( cpi -> mt_current_mb_col ) ;\n CHECK_MEM_ERROR ( cpi -> mt_current_mb_col , vpx_malloc ( sizeof ( * cpi -> mt_current_mb_col ) * cm -> mb_rows ) ) ;\n }\n # endif vpx_free ( cpi -> tplist ) ;\n CHECK_MEM_ERROR ( cpi -> tplist , vpx_malloc ( sizeof ( TOKENLIST ) * cm -> mb_rows ) ) ;\n # if CONFIG_TEMPORAL_DENOISING if ( cpi -> oxcf . noise_sensitivity > 0 ) {\n vp8_denoiser_free ( & cpi -> denoiser ) ;\n vp8_denoiser_allocate ( & cpi -> denoiser , width , height , cm -> mb_rows , cm -> mb_cols , cpi -> oxcf . noise_sensitivity ) ;\n }\n # endif }"}
{"idx": 1601, "target": 0, "func": "static int dissect_pcp_partial_features ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset ) {\n guint16 feature_flags ;\n const gchar * feature_flags_string ;\n static const int * pcp_feature_flags_header_fields [ ] = {\n & hf_pcp_features_flags_container , & hf_pcp_features_flags_no_nss_init , & hf_pcp_features_flags_secure_ack , & hf_pcp_features_flags_creds_reqd , & hf_pcp_features_flags_auth , & hf_pcp_features_flags_compress , & hf_pcp_features_flags_secure , NULL }\n ;\n feature_flags = tvb_get_ntohs ( tvb , offset ) ;\n feature_flags_string = get_pcp_features_to_string ( feature_flags ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" Features=[%s]\" , feature_flags_string ) ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_pcp_features_flags , ett_pcp_start_features , pcp_feature_flags_header_fields , ENC_BIG_ENDIAN ) ;\n offset += 2 ;\n return offset ;\n }"}
{"idx": 1602, "target": 0, "func": "static enum fetch_step vbf_stp_error ( struct worker * wrk , struct busyobj * bo ) {\n ssize_t l , ll , o ;\n double now ;\n uint8_t * ptr ;\n struct vsb * synth_body ;\n CHECK_OBJ_NOTNULL ( wrk , WORKER_MAGIC ) ;\n CHECK_OBJ_NOTNULL ( bo , BUSYOBJ_MAGIC ) ;\n CHECK_OBJ_NOTNULL ( bo -> fetch_objcore , OBJCORE_MAGIC ) ;\n AN ( bo -> fetch_objcore -> flags & OC_F_BUSY ) ;\n assert ( bo -> director_state == DIR_S_NULL ) ;\n wrk -> stats -> fetch_failed ++ ;\n now = W_TIM_real ( wrk ) ;\n VSLb_ts_busyobj ( bo , \"Error\" , now ) ;\n if ( bo -> fetch_objcore -> stobj -> stevedore != NULL ) ObjFreeObj ( bo -> wrk , bo -> fetch_objcore ) ;\n HTTP_Setup ( bo -> beresp , bo -> ws , bo -> vsl , SLT_BerespMethod ) ;\n http_PutResponse ( bo -> beresp , \"HTTP/1.1\" , 503 , \"Backend fetch failed\" ) ;\n http_TimeHeader ( bo -> beresp , \"Date: \" , now ) ;\n http_SetHeader ( bo -> beresp , \"Server: Varnish\" ) ;\n bo -> fetch_objcore -> t_origin = now ;\n if ( ! VTAILQ_EMPTY ( & bo -> fetch_objcore -> objhead -> waitinglist ) ) {\n bo -> fetch_objcore -> ttl = 1 ;\n bo -> fetch_objcore -> grace = 5 ;\n bo -> fetch_objcore -> keep = 5 ;\n }\n else {\n bo -> fetch_objcore -> ttl = 0 ;\n bo -> fetch_objcore -> grace = 0 ;\n bo -> fetch_objcore -> keep = 0 ;\n }\n synth_body = VSB_new_auto ( ) ;\n AN ( synth_body ) ;\n VCL_backend_error_method ( bo -> vcl , wrk , NULL , bo , synth_body ) ;\n AZ ( VSB_finish ( synth_body ) ) ;\n if ( wrk -> handling == VCL_RET_ABANDON || wrk -> handling == VCL_RET_FAIL ) {\n VSB_destroy ( & synth_body ) ;\n return ( F_STP_FAIL ) ;\n }\n if ( wrk -> handling == VCL_RET_RETRY ) {\n VSB_destroy ( & synth_body ) ;\n if ( bo -> retries ++ < cache_param -> max_retries ) return ( F_STP_RETRY ) ;\n VSLb ( bo -> vsl , SLT_VCL_Error , \"Too many retries, failing\" ) ;\n return ( F_STP_FAIL ) ;\n }\n assert ( wrk -> handling == VCL_RET_DELIVER ) ;\n bo -> vfc -> bo = bo ;\n bo -> vfc -> wrk = bo -> wrk ;\n bo -> vfc -> oc = bo -> fetch_objcore ;\n bo -> vfc -> http = bo -> beresp ;\n bo -> vfc -> esi_req = bo -> bereq ;\n if ( vbf_beresp2obj ( bo ) ) {\n ( void ) VFP_Error ( bo -> vfc , \"Could not get storage\" ) ;\n VSB_destroy ( & synth_body ) ;\n return ( F_STP_FAIL ) ;\n }\n ll = VSB_len ( synth_body ) ;\n o = 0 ;\n while ( ll > 0 ) {\n l = ll ;\n if ( VFP_GetStorage ( bo -> vfc , & l , & ptr ) != VFP_OK ) break ;\n if ( l > ll ) l = ll ;\n memcpy ( ptr , VSB_data ( synth_body ) + o , l ) ;\n VFP_Extend ( bo -> vfc , l ) ;\n ll -= l ;\n o += l ;\n }\n AZ ( ObjSetU64 ( wrk , bo -> fetch_objcore , OA_LEN , o ) ) ;\n VSB_destroy ( & synth_body ) ;\n HSH_Unbusy ( wrk , bo -> fetch_objcore ) ;\n ObjSetState ( wrk , bo -> fetch_objcore , BOS_FINISHED ) ;\n return ( F_STP_DONE ) ;\n }"}
{"idx": 1603, "target": 0, "func": "struct evbuffer * evbuffer_new ( void ) {\n struct evbuffer * buffer ;\n buffer = calloc ( 1 , sizeof ( struct evbuffer ) ) ;\n return ( buffer ) ;\n }"}
{"idx": 1604, "target": 1, "func": "int ff_find_unused_picture ( MpegEncContext * s , int shared ) {\n int ret = find_unused_picture ( s , shared ) ;\n if ( ret >= 0 && ret < s -> picture_range_end ) {\n if ( s -> picture [ ret ] . needs_realloc ) {\n s -> picture [ ret ] . needs_realloc = 0 ;\n free_picture ( s , & s -> picture [ ret ] ) ;\n avcodec_get_frame_defaults ( & s -> picture [ ret ] . f ) ;\n }\n }\n return ret ;\n }"}
{"idx": 1605, "target": 1, "func": "static void pdf_process_extgstate ( fz_context * ctx , pdf_processor * proc , pdf_csi * csi , pdf_obj * dict ) {\n pdf_obj * obj ;\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_LW ) ;\n if ( pdf_is_number ( ctx , obj ) && proc -> op_w ) proc -> op_w ( ctx , proc , pdf_to_real ( ctx , obj ) ) ;\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_LC ) ;\n if ( pdf_is_int ( ctx , obj ) && proc -> op_J ) proc -> op_J ( ctx , proc , fz_clampi ( pdf_to_int ( ctx , obj ) , 0 , 2 ) ) ;\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_LJ ) ;\n if ( pdf_is_int ( ctx , obj ) && proc -> op_j ) proc -> op_j ( ctx , proc , fz_clampi ( pdf_to_int ( ctx , obj ) , 0 , 2 ) ) ;\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_ML ) ;\n if ( pdf_is_number ( ctx , obj ) && proc -> op_M ) proc -> op_M ( ctx , proc , pdf_to_real ( ctx , obj ) ) ;\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_D ) ;\n if ( pdf_is_array ( ctx , obj ) && proc -> op_d ) {\n pdf_obj * dash_array = pdf_array_get ( ctx , obj , 0 ) ;\n pdf_obj * dash_phase = pdf_array_get ( ctx , obj , 1 ) ;\n proc -> op_d ( ctx , proc , dash_array , pdf_to_real ( ctx , dash_phase ) ) ;\n }\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_RI ) ;\n if ( pdf_is_name ( ctx , obj ) && proc -> op_ri ) proc -> op_ri ( ctx , proc , pdf_to_name ( ctx , obj ) ) ;\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_FL ) ;\n if ( pdf_is_number ( ctx , obj ) && proc -> op_i ) proc -> op_i ( ctx , proc , pdf_to_real ( ctx , obj ) ) ;\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_Font ) ;\n if ( pdf_is_array ( ctx , obj ) && proc -> op_Tf ) {\n pdf_obj * font_ref = pdf_array_get ( ctx , obj , 0 ) ;\n pdf_obj * font_size = pdf_array_get ( ctx , obj , 1 ) ;\n pdf_font_desc * font = load_font_or_hail_mary ( ctx , csi -> doc , csi -> rdb , font_ref , 0 , csi -> cookie ) ;\n fz_try ( ctx ) proc -> op_Tf ( ctx , proc , \"ExtGState\" , font , pdf_to_real ( ctx , font_size ) ) ;\n fz_always ( ctx ) pdf_drop_font ( ctx , font ) ;\n fz_catch ( ctx ) fz_rethrow ( ctx ) ;\n }\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_OP ) ;\n if ( pdf_is_bool ( ctx , obj ) && proc -> op_gs_OP ) proc -> op_gs_OP ( ctx , proc , pdf_to_bool ( ctx , obj ) ) ;\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_op ) ;\n if ( pdf_is_bool ( ctx , obj ) && proc -> op_gs_op ) proc -> op_gs_op ( ctx , proc , pdf_to_bool ( ctx , obj ) ) ;\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_OPM ) ;\n if ( pdf_is_int ( ctx , obj ) && proc -> op_gs_OPM ) proc -> op_gs_OPM ( ctx , proc , pdf_to_int ( ctx , obj ) ) ;\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_UseBlackPtComp ) ;\n if ( pdf_is_name ( ctx , obj ) && proc -> op_gs_UseBlackPtComp ) proc -> op_gs_UseBlackPtComp ( ctx , proc , obj ) ;\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_TR2 ) ;\n if ( pdf_is_name ( ctx , obj ) ) if ( ! pdf_name_eq ( ctx , obj , PDF_NAME_Identity ) && ! pdf_name_eq ( ctx , obj , PDF_NAME_Default ) ) fz_warn ( ctx , \"ignoring transfer function\" ) ;\n if ( ! obj ) {\n pdf_obj * tr = pdf_dict_get ( ctx , dict , PDF_NAME_TR ) ;\n if ( pdf_is_name ( ctx , tr ) ) if ( ! pdf_name_eq ( ctx , tr , PDF_NAME_Identity ) ) fz_warn ( ctx , \"ignoring transfer function\" ) ;\n }\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_CA ) ;\n if ( pdf_is_number ( ctx , obj ) && proc -> op_gs_CA ) proc -> op_gs_CA ( ctx , proc , pdf_to_real ( ctx , obj ) ) ;\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_ca ) ;\n if ( pdf_is_number ( ctx , obj ) && proc -> op_gs_ca ) proc -> op_gs_ca ( ctx , proc , pdf_to_real ( ctx , obj ) ) ;\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_BM ) ;\n if ( pdf_is_array ( ctx , obj ) ) obj = pdf_array_get ( ctx , obj , 0 ) ;\n if ( pdf_is_name ( ctx , obj ) && proc -> op_gs_BM ) proc -> op_gs_BM ( ctx , proc , pdf_to_name ( ctx , obj ) ) ;\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_SMask ) ;\n if ( proc -> op_gs_SMask ) {\n if ( pdf_is_dict ( ctx , obj ) ) {\n pdf_xobject * xobj ;\n pdf_obj * group , * s , * bc , * tr ;\n float softmask_bc [ FZ_MAX_COLORS ] ;\n fz_colorspace * colorspace ;\n int colorspace_n = 1 ;\n int k , luminosity ;\n fz_var ( xobj ) ;\n group = pdf_dict_get ( ctx , obj , PDF_NAME_G ) ;\n if ( ! group ) fz_throw ( ctx , FZ_ERROR_SYNTAX , \"cannot load softmask xobject (%d 0 R)\" , pdf_to_num ( ctx , obj ) ) ;\n xobj = pdf_load_xobject ( ctx , csi -> doc , group ) ;\n fz_try ( ctx ) {\n colorspace = pdf_xobject_colorspace ( ctx , xobj ) ;\n if ( colorspace ) colorspace_n = fz_colorspace_n ( ctx , colorspace ) ;\n for ( k = 0 ;\n k < colorspace_n ;\n k ++ ) softmask_bc [ k ] = 0 ;\n if ( fz_colorspace_is_cmyk ( ctx , colorspace ) ) softmask_bc [ 3 ] = 1.0f ;\n fz_drop_colorspace ( ctx , colorspace ) ;\n bc = pdf_dict_get ( ctx , obj , PDF_NAME_BC ) ;\n if ( pdf_is_array ( ctx , bc ) ) {\n for ( k = 0 ;\n k < colorspace_n ;\n k ++ ) softmask_bc [ k ] = pdf_to_real ( ctx , pdf_array_get ( ctx , bc , k ) ) ;\n }\n s = pdf_dict_get ( ctx , obj , PDF_NAME_S ) ;\n if ( pdf_name_eq ( ctx , s , PDF_NAME_Luminosity ) ) luminosity = 1 ;\n else luminosity = 0 ;\n tr = pdf_dict_get ( ctx , obj , PDF_NAME_TR ) ;\n if ( tr && ! pdf_name_eq ( ctx , tr , PDF_NAME_Identity ) ) fz_warn ( ctx , \"ignoring transfer function\" ) ;\n proc -> op_gs_SMask ( ctx , proc , xobj , csi -> rdb , softmask_bc , luminosity ) ;\n }\n fz_always ( ctx ) {\n pdf_drop_xobject ( ctx , xobj ) ;\n }\n fz_catch ( ctx ) {\n fz_rethrow ( ctx ) ;\n }\n }\n else if ( pdf_is_name ( ctx , obj ) && pdf_name_eq ( ctx , obj , PDF_NAME_None ) ) {\n proc -> op_gs_SMask ( ctx , proc , NULL , NULL , NULL , 0 ) ;\n }\n }\n }"}
{"idx": 1606, "target": 0, "func": "static void dtap_cc_facility ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_TRUE ;\n ELEM_MAND_LV ( GSM_A_PDU_TYPE_DTAP , DE_FACILITY , NULL ) ;\n ELEM_OPT_TLV ( 0x7f , GSM_A_PDU_TYPE_DTAP , DE_SS_VER_IND , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 1607, "target": 0, "func": "static void mongolian_variation_selectors ( hb_buffer_t * buffer ) {\n unsigned int count = buffer -> len ;\n hb_glyph_info_t * info = buffer -> info ;\n for ( unsigned int i = 1 ;\n i < count ;\n i ++ ) if ( unlikely ( hb_in_range ( info [ i ] . codepoint , 0x180Bu , 0x180Du ) ) ) info [ i ] . arabic_shaping_action ( ) = info [ i - 1 ] . arabic_shaping_action ( ) ;\n }"}
{"idx": 1608, "target": 0, "func": "pdf_processor * pdf_new_run_processor ( fz_context * ctx , fz_device * dev , const fz_matrix * ctm , const char * usage , pdf_gstate * gstate , int nested , fz_default_colorspaces * default_cs ) {\n pdf_run_processor * proc = pdf_new_processor ( ctx , sizeof * proc ) ;\n {\n proc -> super . usage = usage ;\n proc -> super . drop_processor = pdf_drop_run_processor ;\n proc -> super . op_w = pdf_run_w ;\n proc -> super . op_j = pdf_run_j ;\n proc -> super . op_J = pdf_run_J ;\n proc -> super . op_M = pdf_run_M ;\n proc -> super . op_d = pdf_run_d ;\n proc -> super . op_ri = pdf_run_ri ;\n proc -> super . op_i = pdf_run_i ;\n proc -> super . op_gs_begin = pdf_run_gs_begin ;\n proc -> super . op_gs_end = pdf_run_gs_end ;\n proc -> super . op_gs_BM = pdf_run_gs_BM ;\n proc -> super . op_gs_CA = pdf_run_gs_CA ;\n proc -> super . op_gs_ca = pdf_run_gs_ca ;\n proc -> super . op_gs_SMask = pdf_run_gs_SMask ;\n proc -> super . op_q = pdf_run_q ;\n proc -> super . op_Q = pdf_run_Q ;\n proc -> super . op_cm = pdf_run_cm ;\n proc -> super . op_m = pdf_run_m ;\n proc -> super . op_l = pdf_run_l ;\n proc -> super . op_c = pdf_run_c ;\n proc -> super . op_v = pdf_run_v ;\n proc -> super . op_y = pdf_run_y ;\n proc -> super . op_h = pdf_run_h ;\n proc -> super . op_re = pdf_run_re ;\n proc -> super . op_S = pdf_run_S ;\n proc -> super . op_s = pdf_run_s ;\n proc -> super . op_F = pdf_run_F ;\n proc -> super . op_f = pdf_run_f ;\n proc -> super . op_fstar = pdf_run_fstar ;\n proc -> super . op_B = pdf_run_B ;\n proc -> super . op_Bstar = pdf_run_Bstar ;\n proc -> super . op_b = pdf_run_b ;\n proc -> super . op_bstar = pdf_run_bstar ;\n proc -> super . op_n = pdf_run_n ;\n proc -> super . op_W = pdf_run_W ;\n proc -> super . op_Wstar = pdf_run_Wstar ;\n proc -> super . op_BT = pdf_run_BT ;\n proc -> super . op_ET = pdf_run_ET ;\n proc -> super . op_Tc = pdf_run_Tc ;\n proc -> super . op_Tw = pdf_run_Tw ;\n proc -> super . op_Tz = pdf_run_Tz ;\n proc -> super . op_TL = pdf_run_TL ;\n proc -> super . op_Tf = pdf_run_Tf ;\n proc -> super . op_Tr = pdf_run_Tr ;\n proc -> super . op_Ts = pdf_run_Ts ;\n proc -> super . op_Td = pdf_run_Td ;\n proc -> super . op_TD = pdf_run_TD ;\n proc -> super . op_Tm = pdf_run_Tm ;\n proc -> super . op_Tstar = pdf_run_Tstar ;\n proc -> super . op_TJ = pdf_run_TJ ;\n proc -> super . op_Tj = pdf_run_Tj ;\n proc -> super . op_squote = pdf_run_squote ;\n proc -> super . op_dquote = pdf_run_dquote ;\n proc -> super . op_d0 = pdf_run_d0 ;\n proc -> super . op_d1 = pdf_run_d1 ;\n proc -> super . op_CS = pdf_run_CS ;\n proc -> super . op_cs = pdf_run_cs ;\n proc -> super . op_SC_color = pdf_run_SC_color ;\n proc -> super . op_sc_color = pdf_run_sc_color ;\n proc -> super . op_SC_pattern = pdf_run_SC_pattern ;\n proc -> super . op_sc_pattern = pdf_run_sc_pattern ;\n proc -> super . op_SC_shade = pdf_run_SC_shade ;\n proc -> super . op_sc_shade = pdf_run_sc_shade ;\n proc -> super . op_G = pdf_run_G ;\n proc -> super . op_g = pdf_run_g ;\n proc -> super . op_RG = pdf_run_RG ;\n proc -> super . op_rg = pdf_run_rg ;\n proc -> super . op_K = pdf_run_K ;\n proc -> super . op_k = pdf_run_k ;\n proc -> super . op_sh = pdf_run_sh ;\n if ( dev -> fill_image || dev -> fill_image_mask || dev -> clip_image_mask ) {\n proc -> super . op_BI = pdf_run_BI ;\n proc -> super . op_Do_image = pdf_run_Do_image ;\n }\n proc -> super . op_Do_form = pdf_run_Do_form ;\n proc -> super . op_MP = pdf_run_MP ;\n proc -> super . op_DP = pdf_run_DP ;\n proc -> super . op_BMC = pdf_run_BMC ;\n proc -> super . op_BDC = pdf_run_BDC ;\n proc -> super . op_EMC = pdf_run_EMC ;\n proc -> super . op_BX = pdf_run_BX ;\n proc -> super . op_EX = pdf_run_EX ;\n proc -> super . op_gs_OP = pdf_run_gs_OP ;\n proc -> super . op_gs_op = pdf_run_gs_op ;\n proc -> super . op_gs_OPM = pdf_run_gs_OPM ;\n proc -> super . op_gs_UseBlackPtComp = pdf_run_gs_UseBlackPtComp ;\n proc -> super . op_END = pdf_run_END ;\n }\n proc -> dev = dev ;\n proc -> default_cs = fz_keep_default_colorspaces ( ctx , default_cs ) ;\n proc -> nested_depth = nested ;\n proc -> path = NULL ;\n proc -> clip = 0 ;\n proc -> clip_even_odd = 0 ;\n proc -> tos . text = NULL ;\n proc -> tos . tlm = fz_identity ;\n proc -> tos . tm = fz_identity ;\n proc -> tos . text_mode = 0 ;\n fz_try ( ctx ) {\n proc -> path = fz_new_path ( ctx ) ;\n proc -> gcap = 64 ;\n proc -> gstate = fz_malloc_array ( ctx , proc -> gcap , sizeof ( pdf_gstate ) ) ;\n pdf_init_gstate ( ctx , & proc -> gstate [ 0 ] , ctm ) ;\n if ( gstate ) {\n pdf_copy_gstate ( ctx , & proc -> gstate [ 0 ] , gstate ) ;\n proc -> gstate [ 0 ] . clip_depth = 0 ;\n proc -> gstate [ 0 ] . ctm = * ctm ;\n }\n proc -> gtop = 0 ;\n proc -> gbot = 0 ;\n proc -> gparent = 0 ;\n }\n fz_catch ( ctx ) {\n fz_drop_path ( ctx , proc -> path ) ;\n fz_free ( ctx , proc ) ;\n fz_rethrow ( ctx ) ;\n }\n pdf_gsave ( ctx , proc ) ;\n return ( pdf_processor * ) proc ;\n }"}
{"idx": 1609, "target": 0, "func": "static void mpeg_decode_sequence_extension ( Mpeg1Context * s1 ) {\n MpegEncContext * s = & s1 -> mpeg_enc_ctx ;\n int horiz_size_ext , vert_size_ext ;\n int bit_rate_ext ;\n skip_bits ( & s -> gb , 1 ) ;\n s -> avctx -> profile = get_bits ( & s -> gb , 3 ) ;\n s -> avctx -> level = get_bits ( & s -> gb , 4 ) ;\n s -> progressive_sequence = get_bits1 ( & s -> gb ) ;\n s -> chroma_format = get_bits ( & s -> gb , 2 ) ;\n horiz_size_ext = get_bits ( & s -> gb , 2 ) ;\n vert_size_ext = get_bits ( & s -> gb , 2 ) ;\n s -> width |= ( horiz_size_ext << 12 ) ;\n s -> height |= ( vert_size_ext << 12 ) ;\n bit_rate_ext = get_bits ( & s -> gb , 12 ) ;\n s -> bit_rate += ( bit_rate_ext << 18 ) * 400 ;\n skip_bits1 ( & s -> gb ) ;\n s -> avctx -> rc_buffer_size += get_bits ( & s -> gb , 8 ) * 1024 * 16 << 10 ;\n s -> low_delay = get_bits1 ( & s -> gb ) ;\n if ( s -> flags & CODEC_FLAG_LOW_DELAY ) s -> low_delay = 1 ;\n s1 -> frame_rate_ext . num = get_bits ( & s -> gb , 2 ) + 1 ;\n s1 -> frame_rate_ext . den = get_bits ( & s -> gb , 5 ) + 1 ;\n av_dlog ( s -> avctx , \"sequence extension\\n\" ) ;\n s -> codec_id = s -> avctx -> codec_id = AV_CODEC_ID_MPEG2VIDEO ;\n if ( s -> avctx -> debug & FF_DEBUG_PICT_INFO ) av_log ( s -> avctx , AV_LOG_DEBUG , \"profile: %d, level: %d vbv buffer: %d, bitrate:%d\\n\" , s -> avctx -> profile , s -> avctx -> level , s -> avctx -> rc_buffer_size , s -> bit_rate ) ;\n }"}
{"idx": 1610, "target": 1, "func": "size_t compile_tree ( struct filter_op * * fop ) {\n int i = 1 ;\n struct filter_op * array = NULL ;\n struct unfold_elm * ue ;\n BUG_IF ( tree_root == NULL ) ;\n fprintf ( stdout , \" Unfolding the meta-tree \" ) ;\n fflush ( stdout ) ;\n unfold_blk ( & tree_root ) ;\n fprintf ( stdout , \" done.\\n\\n\" ) ;\n labels_to_offsets ( ) ;\n TAILQ_FOREACH ( ue , & unfolded_tree , next ) {\n if ( ue -> label == 0 ) {\n SAFE_REALLOC ( array , i * sizeof ( struct filter_op ) ) ;\n memcpy ( & array [ i - 1 ] , & ue -> fop , sizeof ( struct filter_op ) ) ;\n i ++ ;\n }\n }\n SAFE_REALLOC ( array , i * sizeof ( struct filter_op ) ) ;\n array [ i - 1 ] . opcode = FOP_EXIT ;\n * fop = array ;\n return ( i ) ;\n }"}
{"idx": 1611, "target": 0, "func": "static enum nss_status internal_setent ( int stayopen ) {\n enum nss_status status = NSS_STATUS_SUCCESS ;\n if ( stream == NULL ) {\n stream = fopen ( DATAFILE , \"rce\" ) ;\n if ( stream == NULL ) status = errno == EAGAIN ? NSS_STATUS_TRYAGAIN : NSS_STATUS_UNAVAIL ;\n else {\n # if ! defined O_CLOEXEC || ! defined __ASSUME_O_CLOEXEC # ifdef O_CLOEXEC if ( __have_o_cloexec <= 0 ) # endif {\n int result ;\n int flags ;\n result = flags = fcntl ( fileno ( stream ) , F_GETFD , 0 ) ;\n if ( result >= 0 ) {\n # ifdef O_CLOEXEC if ( __have_o_cloexec == 0 ) __have_o_cloexec = ( flags & FD_CLOEXEC ) == 0 ? - 1 : 1 ;\n if ( __have_o_cloexec < 0 ) # endif {\n flags |= FD_CLOEXEC ;\n result = fcntl ( fileno ( stream ) , F_SETFD , flags ) ;\n }\n }\n if ( result < 0 ) {\n fclose ( stream ) ;\n stream = NULL ;\n status = NSS_STATUS_UNAVAIL ;\n }\n }\n # endif }\n }\n else rewind ( stream ) ;\n if ( stream != NULL ) keep_stream |= stayopen ;\n return status ;\n }"}
{"idx": 1612, "target": 1, "func": "GType hb_gobject_ ## name ## _get_type ( void ) \\ {\n static gsize type_id = 0 ;\n if ( g_once_init_enter ( & type_id ) ) {\n GType id = g_boxed_type_register_static ( g_intern_static_string ( \"hb_\" # name \"_t\" ) , ( GBoxedCopyFunc ) copy_func , ( GBoxedFreeFunc ) free_func ) ;\n g_once_init_leave ( & type_id , id ) ;\n }\n return type_id ;\n \\ }\n # define HB_DEFINE_OBJECT_TYPE ( name ) HB_DEFINE_BOXED_TYPE ( name , hb_ ## name ## _reference , hb_ ## name ## _destroy ) ;\n HB_DEFINE_OBJECT_TYPE ( buffer ) HB_DEFINE_OBJECT_TYPE ( blob ) HB_DEFINE_OBJECT_TYPE ( face ) HB_DEFINE_OBJECT_TYPE ( font ) HB_DEFINE_OBJECT_TYPE ( font_funcs ) HB_DEFINE_OBJECT_TYPE ( set ) HB_DEFINE_OBJECT_TYPE ( shape_plan ) HB_DEFINE_OBJECT_TYPE ( unicode_funcs )"}
{"idx": 1613, "target": 0, "func": "void MatInverse ( real into [ 6 ] , real orig [ 6 ] ) {\n real det = orig [ 0 ] * orig [ 3 ] - orig [ 1 ] * orig [ 2 ] ;\n if ( det == 0 ) {\n LogError ( _ ( \"Attempt to invert a singular matrix\\n\" ) ) ;\n memset ( into , 0 , sizeof ( * into ) ) ;\n }\n else {\n into [ 0 ] = orig [ 3 ] / det ;\n into [ 1 ] = - orig [ 1 ] / det ;\n into [ 2 ] = - orig [ 2 ] / det ;\n into [ 3 ] = orig [ 0 ] / det ;\n into [ 4 ] = - orig [ 4 ] * into [ 0 ] - orig [ 5 ] * into [ 2 ] ;\n into [ 5 ] = - orig [ 4 ] * into [ 1 ] - orig [ 5 ] * into [ 3 ] ;\n }\n }"}
{"idx": 1614, "target": 0, "func": "static void * Type_ProfileSequenceDesc_Read ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number * nItems , cmsUInt32Number SizeOfTag ) {\n cmsSEQ * OutSeq ;\n cmsUInt32Number i , Count ;\n * nItems = 0 ;\n if ( ! _cmsReadUInt32Number ( io , & Count ) ) return NULL ;\n if ( SizeOfTag < sizeof ( cmsUInt32Number ) ) return NULL ;\n SizeOfTag -= sizeof ( cmsUInt32Number ) ;\n OutSeq = cmsAllocProfileSequenceDescription ( self -> ContextID , Count ) ;\n if ( OutSeq == NULL ) return NULL ;\n OutSeq -> n = Count ;\n for ( i = 0 ;\n i < Count ;\n i ++ ) {\n cmsPSEQDESC * sec = & OutSeq -> seq [ i ] ;\n if ( ! _cmsReadUInt32Number ( io , & sec -> deviceMfg ) ) goto Error ;\n if ( SizeOfTag < sizeof ( cmsUInt32Number ) ) goto Error ;\n SizeOfTag -= sizeof ( cmsUInt32Number ) ;\n if ( ! _cmsReadUInt32Number ( io , & sec -> deviceModel ) ) goto Error ;\n if ( SizeOfTag < sizeof ( cmsUInt32Number ) ) goto Error ;\n SizeOfTag -= sizeof ( cmsUInt32Number ) ;\n if ( ! _cmsReadUInt64Number ( io , & sec -> attributes ) ) goto Error ;\n if ( SizeOfTag < sizeof ( cmsUInt64Number ) ) goto Error ;\n SizeOfTag -= sizeof ( cmsUInt64Number ) ;\n if ( ! _cmsReadUInt32Number ( io , ( cmsUInt32Number * ) & sec -> technology ) ) goto Error ;\n if ( SizeOfTag < sizeof ( cmsUInt32Number ) ) goto Error ;\n SizeOfTag -= sizeof ( cmsUInt32Number ) ;\n if ( ! ReadEmbeddedText ( self , io , & sec -> Manufacturer , SizeOfTag ) ) goto Error ;\n if ( ! ReadEmbeddedText ( self , io , & sec -> Model , SizeOfTag ) ) goto Error ;\n }\n * nItems = 1 ;\n return OutSeq ;\n Error : cmsFreeProfileSequenceDescription ( OutSeq ) ;\n return NULL ;\n }"}
{"idx": 1615, "target": 0, "func": "static void imc_get_skip_coeff ( IMCContext * q , IMCChannel * chctx ) {\n int i , j ;\n memset ( chctx -> skipFlagBits , 0 , sizeof ( chctx -> skipFlagBits ) ) ;\n memset ( chctx -> skipFlagCount , 0 , sizeof ( chctx -> skipFlagCount ) ) ;\n for ( i = 0 ;\n i < BANDS ;\n i ++ ) {\n if ( ! chctx -> bandFlagsBuf [ i ] || ! chctx -> bandWidthT [ i ] ) continue ;\n if ( ! chctx -> skipFlagRaw [ i ] ) {\n chctx -> skipFlagBits [ i ] = band_tab [ i + 1 ] - band_tab [ i ] ;\n for ( j = band_tab [ i ] ;\n j < band_tab [ i + 1 ] ;\n j ++ ) {\n chctx -> skipFlags [ j ] = get_bits1 ( & q -> gb ) ;\n if ( chctx -> skipFlags [ j ] ) chctx -> skipFlagCount [ i ] ++ ;\n }\n }\n else {\n for ( j = band_tab [ i ] ;\n j < band_tab [ i + 1 ] - 1 ;\n j += 2 ) {\n if ( ! get_bits1 ( & q -> gb ) ) {\n chctx -> skipFlagBits [ i ] ++ ;\n chctx -> skipFlags [ j ] = 1 ;\n chctx -> skipFlags [ j + 1 ] = 1 ;\n chctx -> skipFlagCount [ i ] += 2 ;\n }\n else {\n if ( get_bits1 ( & q -> gb ) ) {\n chctx -> skipFlagBits [ i ] += 2 ;\n chctx -> skipFlags [ j ] = 0 ;\n chctx -> skipFlags [ j + 1 ] = 1 ;\n chctx -> skipFlagCount [ i ] ++ ;\n }\n else {\n chctx -> skipFlagBits [ i ] += 3 ;\n chctx -> skipFlags [ j + 1 ] = 0 ;\n if ( ! get_bits1 ( & q -> gb ) ) {\n chctx -> skipFlags [ j ] = 1 ;\n chctx -> skipFlagCount [ i ] ++ ;\n }\n else {\n chctx -> skipFlags [ j ] = 0 ;\n }\n }\n }\n }\n if ( j < band_tab [ i + 1 ] ) {\n chctx -> skipFlagBits [ i ] ++ ;\n if ( ( chctx -> skipFlags [ j ] = get_bits1 ( & q -> gb ) ) ) chctx -> skipFlagCount [ i ] ++ ;\n }\n }\n }\n }"}
{"idx": 1616, "target": 0, "func": "void vp9_regular_quantize_b_4x4 ( MACROBLOCK * x , int plane , int block , const int16_t * scan , const int16_t * iscan ) {\n MACROBLOCKD * const xd = & x -> e_mbd ;\n struct macroblock_plane * p = & x -> plane [ plane ] ;\n struct macroblockd_plane * pd = & xd -> plane [ plane ] ;\n # if CONFIG_VP9_HIGHBITDEPTH if ( xd -> cur_buf -> flags & YV12_FLAG_HIGHBITDEPTH ) {\n vp9_high_quantize_b ( BLOCK_OFFSET ( p -> coeff , block ) , 16 , x -> skip_block , p -> zbin , p -> round , p -> quant , p -> quant_shift , BLOCK_OFFSET ( p -> qcoeff , block ) , BLOCK_OFFSET ( pd -> dqcoeff , block ) , pd -> dequant , p -> zbin_extra , & p -> eobs [ block ] , scan , iscan ) ;\n return ;\n }\n # endif vp9_quantize_b ( BLOCK_OFFSET ( p -> coeff , block ) , 16 , x -> skip_block , p -> zbin , p -> round , p -> quant , p -> quant_shift , BLOCK_OFFSET ( p -> qcoeff , block ) , BLOCK_OFFSET ( pd -> dqcoeff , block ) , pd -> dequant , p -> zbin_extra , & p -> eobs [ block ] , scan , iscan ) ;\n }"}
{"idx": 1617, "target": 0, "func": "inline static uint32 adjust_max_effective_column_length ( Field * field_par , uint32 max_length ) {\n uint32 new_max_length = field_par -> max_display_length ( ) ;\n uint32 sign_length = ( field_par -> flags & UNSIGNED_FLAG ) ? 0 : 1 ;\n switch ( field_par -> type ( ) ) {\n case MYSQL_TYPE_INT24 : new_max_length += 1 ;\n case MYSQL_TYPE_LONG : case MYSQL_TYPE_TINY : case MYSQL_TYPE_SHORT : new_max_length = new_max_length - 1 + sign_length ;\n break ;\n case MYSQL_TYPE_LONGLONG : default : break ;\n }\n return new_max_length > max_length ? new_max_length : max_length ;\n }"}
{"idx": 1618, "target": 0, "func": "int kvm_arch_insert_sw_breakpoint ( CPUState * cs , struct kvm_sw_breakpoint * bp ) {\n static const uint8_t int3 = 0xcc ;\n if ( cpu_memory_rw_debug ( cs , bp -> pc , ( uint8_t * ) & bp -> saved_insn , 1 , 0 ) || cpu_memory_rw_debug ( cs , bp -> pc , ( uint8_t * ) & int3 , 1 , 1 ) ) {\n return - EINVAL ;\n }\n return 0 ;\n }"}
{"idx": 1619, "target": 0, "func": "static int dissect_btgatt_microbit_client_event ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , void * data ) {\n btatt_data_t * att_data = ( btatt_data_t * ) data ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) return - 1 ;\n proto_tree_add_item ( tree , hf_gatt_microbit_client_event , tvb , 0 , tvb_captured_length ( tvb ) , ENC_NA ) ;\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 1620, "target": 0, "func": "static Datum ExecEvalCoerceViaIO ( CoerceViaIOState * iostate , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n Datum result ;\n Datum inputval ;\n char * string ;\n inputval = ExecEvalExpr ( iostate -> arg , econtext , isNull , isDone ) ;\n if ( isDone && * isDone == ExprEndResult ) return inputval ;\n if ( * isNull ) string = NULL ;\n else string = OutputFunctionCall ( & iostate -> outfunc , inputval ) ;\n result = InputFunctionCall ( & iostate -> infunc , string , iostate -> intypioparam , - 1 ) ;\n return result ;\n }"}
{"idx": 1621, "target": 1, "func": "static int dissect_CPMConnect ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * parent_tree , gboolean in , void * private_data ) {\n proto_item * ti ;\n proto_tree * tree ;\n gint offset = 16 ;\n guint len ;\n guint32 version ;\n struct message_data * data = NULL ;\n struct mswsp_ct * ct = NULL ;\n ti = proto_tree_add_item ( parent_tree , hf_mswsp_msg , tvb , offset , - 1 , ENC_NA ) ;\n tree = proto_item_add_subtree ( ti , ett_mswsp_msg ) ;\n proto_item_set_text ( ti , \"CPMConnect%s\" , in ? \"In\" : \"Out\" ) ;\n col_append_str ( pinfo -> cinfo , COL_INFO , \"Connect\" ) ;\n ti = proto_tree_add_item_ret_uint ( tree , hf_mswsp_msg_Connect_Version , tvb , offset , 4 , ENC_LITTLE_ENDIAN , & version ) ;\n ct = get_create_converstation_data ( pinfo ) ;\n if ( ct ) {\n data = find_or_create_message_data ( ct , pinfo , 0xC8 , in , private_data ) ;\n if ( data ) {\n data -> content . version = version ;\n }\n }\n offset += 4 ;\n if ( in ) {\n guint32 blob_size1_off , blob_size2_off ;\n proto_tree * pad_tree ;\n pad_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_mswsp_pad , & ti , \"Padding\" ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_ConnectIn_ClientIsRemote , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n blob_size1_off = offset ;\n offset += 4 ;\n offset = parse_padding ( tvb , offset , 8 , pad_tree , \"_paddingcbBlob2\" ) ;\n blob_size2_off = offset ;\n offset += 4 ;\n offset = parse_padding ( tvb , offset , 16 , pad_tree , \"_padding\" ) ;\n len = tvb_unicode_strsize ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_ConnectIn_MachineName , tvb , offset , len , ENC_LITTLE_ENDIAN | ENC_UCS_2 ) ;\n offset += len ;\n len = tvb_unicode_strsize ( tvb , offset ) ;\n ti = proto_tree_add_item ( tree , hf_mswsp_msg_ConnectIn_UserName , tvb , offset , len , ENC_LITTLE_ENDIAN | ENC_UCS_2 ) ;\n offset += len ;\n offset = parse_padding ( tvb , offset , 8 , pad_tree , \"_paddingcPropSets\" ) ;\n offset = parse_PropertySetArray ( tvb , offset , blob_size1_off , tree , pad_tree , \"PropSets\" ) ;\n offset = parse_padding ( tvb , offset , 8 , pad_tree , \"paddingExtPropset\" ) ;\n offset = parse_PropertySetArray ( tvb , offset , blob_size2_off , tree , pad_tree , \"ExtPropset\" ) ;\n offset = parse_padding ( tvb , offset , 8 , pad_tree , \"???\" ) ;\n DISSECTOR_ASSERT ( offset == ( int ) tvb_reported_length ( tvb ) ) ;\n proto_tree_move_item ( tree , ti , proto_tree_get_parent ( pad_tree ) ) ;\n }\n else {\n }\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 1622, "target": 0, "func": "static int dissect_h245_INTEGER_1_4 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 4U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 1623, "target": 0, "func": "SPL_METHOD ( SplDoublyLinkedList , offsetGet ) {\n zval * zindex , * value ;\n long index ;\n spl_dllist_object * intern ;\n spl_ptr_llist_element * element ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"z\" , & zindex ) == FAILURE ) {\n return ;\n }\n intern = ( spl_dllist_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n index = spl_offset_convert_to_long ( zindex TSRMLS_CC ) ;\n if ( index < 0 || index >= intern -> llist -> count ) {\n zend_throw_exception ( spl_ce_OutOfRangeException , \"Offset invalid or out of range\" , 0 TSRMLS_CC ) ;\n return ;\n }\n element = spl_ptr_llist_offset ( intern -> llist , index , intern -> flags & SPL_DLLIST_IT_LIFO ) ;\n if ( element != NULL ) {\n value = ( zval * ) element -> data ;\n RETURN_ZVAL ( value , 1 , 0 ) ;\n }\n else {\n zend_throw_exception ( spl_ce_OutOfRangeException , \"Offset invalid\" , 0 TSRMLS_CC ) ;\n return ;\n }\n }"}
{"idx": 1624, "target": 0, "func": "static VALUE ossl_cipher_encrypt ( int argc , VALUE * argv , VALUE self ) {\n return ossl_cipher_init ( argc , argv , self , 1 ) ;\n }"}
{"idx": 1625, "target": 0, "func": "static int ogg_probe ( AVProbeData * p ) {\n if ( ! memcmp ( \"OggS\" , p -> buf , 5 ) && p -> buf [ 5 ] <= 0x7 ) return AVPROBE_SCORE_MAX ;\n return 0 ;\n }"}
{"idx": 1626, "target": 1, "func": "void vp9_idct8x8_1_add_c ( const int16_t * input , uint8_t * dest , int stride ) {\n int i , j ;\n int a1 ;\n int16_t out = dct_const_round_shift ( input [ 0 ] * cospi_16_64 ) ;\n out = dct_const_round_shift ( out * cospi_16_64 ) ;\n a1 = ROUND_POWER_OF_TWO ( out , 5 ) ;\n for ( j = 0 ;\n j < 8 ;\n ++ j ) {\n for ( i = 0 ;\n i < 8 ;\n ++ i ) dest [ i ] = clip_pixel ( dest [ i ] + a1 ) ;\n dest += stride ;\n }\n }"}
{"idx": 1627, "target": 0, "func": "static int h264_frame_start ( H264Context * h ) {\n Picture * pic ;\n int i , ret ;\n const int pixel_shift = h -> pixel_shift ;\n int c [ 4 ] = {\n 1 << ( h -> sps . bit_depth_luma - 1 ) , 1 << ( h -> sps . bit_depth_chroma - 1 ) , 1 << ( h -> sps . bit_depth_chroma - 1 ) , - 1 }\n ;\n if ( ! ff_thread_can_start_frame ( h -> avctx ) ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"Attempt to start a frame outside SETUP state\\n\" ) ;\n return - 1 ;\n }\n release_unused_pictures ( h , 1 ) ;\n h -> cur_pic_ptr = NULL ;\n i = find_unused_picture ( h ) ;\n if ( i < 0 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"no frame buffer available\\n\" ) ;\n return i ;\n }\n pic = & h -> DPB [ i ] ;\n pic -> reference = h -> droppable ? 0 : h -> picture_structure ;\n pic -> f . coded_picture_number = h -> coded_picture_number ++ ;\n pic -> field_picture = h -> picture_structure != PICT_FRAME ;\n pic -> f . key_frame = 0 ;\n pic -> mmco_reset = 0 ;\n pic -> recovered = 0 ;\n if ( ( ret = alloc_picture ( h , pic ) ) < 0 ) return ret ;\n if ( ! h -> frame_recovered && ! h -> avctx -> hwaccel && ! ( h -> avctx -> codec -> capabilities & CODEC_CAP_HWACCEL_VDPAU ) ) avpriv_color_frame ( & pic -> f , c ) ;\n h -> cur_pic_ptr = pic ;\n unref_picture ( h , & h -> cur_pic ) ;\n if ( CONFIG_ERROR_RESILIENCE ) {\n h -> er . cur_pic = NULL ;\n }\n if ( ( ret = ref_picture ( h , & h -> cur_pic , h -> cur_pic_ptr ) ) < 0 ) return ret ;\n if ( CONFIG_ERROR_RESILIENCE ) {\n ff_er_frame_start ( & h -> er ) ;\n h -> er . last_pic = h -> er . next_pic = NULL ;\n }\n assert ( h -> linesize && h -> uvlinesize ) ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n h -> block_offset [ i ] = ( 4 * ( ( scan8 [ i ] - scan8 [ 0 ] ) & 7 ) << pixel_shift ) + 4 * h -> linesize * ( ( scan8 [ i ] - scan8 [ 0 ] ) >> 3 ) ;\n h -> block_offset [ 48 + i ] = ( 4 * ( ( scan8 [ i ] - scan8 [ 0 ] ) & 7 ) << pixel_shift ) + 8 * h -> linesize * ( ( scan8 [ i ] - scan8 [ 0 ] ) >> 3 ) ;\n }\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n h -> block_offset [ 16 + i ] = h -> block_offset [ 32 + i ] = ( 4 * ( ( scan8 [ i ] - scan8 [ 0 ] ) & 7 ) << pixel_shift ) + 4 * h -> uvlinesize * ( ( scan8 [ i ] - scan8 [ 0 ] ) >> 3 ) ;\n h -> block_offset [ 48 + 16 + i ] = h -> block_offset [ 48 + 32 + i ] = ( 4 * ( ( scan8 [ i ] - scan8 [ 0 ] ) & 7 ) << pixel_shift ) + 8 * h -> uvlinesize * ( ( scan8 [ i ] - scan8 [ 0 ] ) >> 3 ) ;\n }\n h -> cur_pic_ptr -> reference = 0 ;\n h -> cur_pic_ptr -> field_poc [ 0 ] = h -> cur_pic_ptr -> field_poc [ 1 ] = INT_MAX ;\n h -> next_output_pic = NULL ;\n assert ( h -> cur_pic_ptr -> long_ref == 0 ) ;\n return 0 ;\n }"}
{"idx": 1628, "target": 0, "func": "static conversation_t * find_or_create_conversation_noaddrb ( packet_info * pinfo , gboolean request ) {\n conversation_t * conv = NULL ;\n address * addr_a ;\n address * addr_b ;\n guint32 port_a ;\n guint32 port_b ;\n if ( request ) {\n addr_a = & pinfo -> src ;\n addr_b = & pinfo -> dst ;\n port_a = pinfo -> srcport ;\n port_b = pinfo -> destport ;\n }\n else {\n addr_a = & pinfo -> dst ;\n addr_b = & pinfo -> src ;\n port_a = pinfo -> destport ;\n port_b = pinfo -> srcport ;\n }\n if ( ( conv = find_conversation ( pinfo -> num , addr_a , addr_b , conversation_pt_to_endpoint_type ( pinfo -> ptype ) , port_a , port_b , NO_ADDR_B | NO_PORT_B ) ) != NULL ) {\n if ( pinfo -> num > conv -> last_frame ) {\n conv -> last_frame = pinfo -> num ;\n }\n }\n else {\n conv = conversation_new ( pinfo -> num , & pinfo -> src , & pinfo -> dst , conversation_pt_to_endpoint_type ( pinfo -> ptype ) , pinfo -> srcport , pinfo -> destport , NO_ADDR_B | NO_PORT_B ) ;\n }\n return conv ;\n }"}
{"idx": 1629, "target": 0, "func": "Entity * EntityInterpretPS ( FILE * ps , int * width ) {\n EntityChar ec ;\n memset ( & ec , '\\0' , sizeof ( ec ) ) ;\n ec . width = ec . vwidth = UNDEFINED_WIDTH ;\n InterpretPS ( ps , NULL , & ec , NULL ) ;\n if ( width != NULL ) * width = ec . width ;\n return ( ec . splines ) ;\n }"}
{"idx": 1630, "target": 0, "func": "static OFCondition parseUserInfo ( DUL_USERINFO * userInfo , unsigned char * buf , unsigned long * itemLength , unsigned char typeRQorAC , unsigned long availData ) {\n unsigned short userLength ;\n unsigned long length ;\n OFCondition cond = EC_Normal ;\n PRV_SCUSCPROLE * role ;\n SOPClassExtendedNegotiationSubItem * extNeg = NULL ;\n UserIdentityNegotiationSubItem * usrIdent = NULL ;\n if ( availData < 4 ) return makeLengthError ( \"user info\" , availData , 4 ) ;\n userInfo -> type = * buf ++ ;\n userInfo -> rsv1 = * buf ++ ;\n EXTRACT_SHORT_BIG ( buf , userInfo -> length ) ;\n buf += 2 ;\n userLength = userInfo -> length ;\n * itemLength = userLength + 4 ;\n if ( availData < * itemLength ) return makeLengthError ( \"user info\" , availData , 0 , userLength ) ;\n DCMNET_TRACE ( \"Parsing user info field (\" << STD_NAMESPACE hex << STD_NAMESPACE setfill ( '0' ) << STD_NAMESPACE setw ( 2 ) << ( unsigned int ) userInfo -> type << STD_NAMESPACE dec << \"), Length: \" << ( unsigned long ) userInfo -> length ) ;\n while ( userLength > 0 ) {\n DCMNET_TRACE ( \"Parsing remaining \" << ( long ) userLength << \" bytes of User Information\" << OFendl << \"Next item type: \" << STD_NAMESPACE hex << STD_NAMESPACE setfill ( '0' ) << STD_NAMESPACE setw ( 2 ) << ( unsigned int ) * buf ) ;\n switch ( * buf ) {\n case DUL_TYPEMAXLENGTH : cond = parseMaxPDU ( & userInfo -> maxLength , buf , & length , userLength ) ;\n if ( cond . bad ( ) ) return cond ;\n buf += length ;\n userLength -= ( unsigned short ) length ;\n DCMNET_TRACE ( \"Successfully parsed Maximum PDU Length\" ) ;\n break ;\n case DUL_TYPEIMPLEMENTATIONCLASSUID : cond = parseSubItem ( & userInfo -> implementationClassUID , buf , & length , userLength ) ;\n if ( cond . bad ( ) ) return cond ;\n buf += length ;\n userLength -= ( unsigned short ) length ;\n break ;\n case DUL_TYPEASYNCOPERATIONS : cond = parseDummy ( buf , & length , userLength ) ;\n buf += length ;\n if ( ! OFStandard : : safeSubtract ( userLength , OFstatic_cast ( short unsigned int , length ) , userLength ) ) return makeLengthError ( \"asynchronous operation user item type\" , userLength , length ) ;\n break ;\n case DUL_TYPESCUSCPROLE : role = ( PRV_SCUSCPROLE * ) malloc ( sizeof ( PRV_SCUSCPROLE ) ) ;\n if ( role == NULL ) return EC_MemoryExhausted ;\n cond = parseSCUSCPRole ( role , buf , & length , userLength ) ;\n if ( cond . bad ( ) ) return cond ;\n LST_Enqueue ( & userInfo -> SCUSCPRoleList , ( LST_NODE * ) role ) ;\n buf += length ;\n userLength -= ( unsigned short ) length ;\n break ;\n case DUL_TYPEIMPLEMENTATIONVERSIONNAME : cond = parseSubItem ( & userInfo -> implementationVersionName , buf , & length , userLength ) ;\n if ( cond . bad ( ) ) return cond ;\n buf += length ;\n userLength -= ( unsigned short ) length ;\n break ;\n case DUL_TYPESOPCLASSEXTENDEDNEGOTIATION : extNeg = new SOPClassExtendedNegotiationSubItem ;\n if ( extNeg == NULL ) return EC_MemoryExhausted ;\n cond = parseExtNeg ( extNeg , buf , & length , userLength ) ;\n if ( cond . bad ( ) ) return cond ;\n if ( userInfo -> extNegList == NULL ) {\n userInfo -> extNegList = new SOPClassExtendedNegotiationSubItemList ;\n if ( userInfo -> extNegList == NULL ) return EC_MemoryExhausted ;\n }\n userInfo -> extNegList -> push_back ( extNeg ) ;\n buf += length ;\n userLength -= ( unsigned short ) length ;\n break ;\n case DUL_TYPENEGOTIATIONOFUSERIDENTITY : if ( typeRQorAC == DUL_TYPEASSOCIATERQ ) usrIdent = new UserIdentityNegotiationSubItemRQ ( ) ;\n else usrIdent = new UserIdentityNegotiationSubItemAC ( ) ;\n if ( usrIdent == NULL ) return EC_MemoryExhausted ;\n cond = usrIdent -> parseFromBuffer ( buf , length , userLength ) ;\n if ( cond . bad ( ) ) {\n delete usrIdent ;\n return cond ;\n }\n userInfo -> usrIdent = usrIdent ;\n buf += length ;\n userLength -= ( unsigned short ) length ;\n break ;\n default : cond = parseDummy ( buf , & length , userLength ) ;\n buf += length ;\n if ( ! OFStandard : : safeSubtract ( userLength , OFstatic_cast ( unsigned short , length ) , userLength ) ) return makeUnderflowError ( \"unknown user item\" , userLength , length ) ;\n break ;\n }\n }\n return EC_Normal ;\n }"}
{"idx": 1631, "target": 0, "func": "static char * date_time_from_opaque ( tvbuff_t * tvb , guint32 offset , guint32 data_len ) {\n char * str ;\n switch ( data_len ) {\n case 4 : str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"%%DateTime: \" \"%02x%02x-%02x-%02xT00:00:00Z\" , tvb_get_guint8 ( tvb , offset ) , tvb_get_guint8 ( tvb , offset + 1 ) , tvb_get_guint8 ( tvb , offset + 2 ) , tvb_get_guint8 ( tvb , offset + 3 ) ) ;\n break ;\n case 5 : str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"%%DateTime: \" \"%02x%02x-%02x-%02xT%02x:00:00Z\" , tvb_get_guint8 ( tvb , offset ) , tvb_get_guint8 ( tvb , offset + 1 ) , tvb_get_guint8 ( tvb , offset + 2 ) , tvb_get_guint8 ( tvb , offset + 3 ) , tvb_get_guint8 ( tvb , offset + 4 ) ) ;\n break ;\n case 6 : str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"%%DateTime: \" \"%02x%02x-%02x-%02xT%02x:%02x:00Z\" , tvb_get_guint8 ( tvb , offset ) , tvb_get_guint8 ( tvb , offset + 1 ) , tvb_get_guint8 ( tvb , offset + 2 ) , tvb_get_guint8 ( tvb , offset + 3 ) , tvb_get_guint8 ( tvb , offset + 4 ) , tvb_get_guint8 ( tvb , offset + 5 ) ) ;\n break ;\n case 7 : str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"%%DateTime: \" \"%02x%02x-%02x-%02xT%02x:%02x:%02xZ\" , tvb_get_guint8 ( tvb , offset ) , tvb_get_guint8 ( tvb , offset + 1 ) , tvb_get_guint8 ( tvb , offset + 2 ) , tvb_get_guint8 ( tvb , offset + 3 ) , tvb_get_guint8 ( tvb , offset + 4 ) , tvb_get_guint8 ( tvb , offset + 5 ) , tvb_get_guint8 ( tvb , offset + 6 ) ) ;\n break ;\n default : str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"<Error: invalid binary %%DateTime \" \"(%d bytes of opaque data)>\" , data_len ) ;\n break ;\n }\n return str ;\n }"}
{"idx": 1632, "target": 0, "func": "static cmsBool ReadSeqID ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Cargo , cmsUInt32Number n , cmsUInt32Number SizeOfTag ) {\n cmsSEQ * OutSeq = ( cmsSEQ * ) Cargo ;\n cmsPSEQDESC * seq = & OutSeq -> seq [ n ] ;\n if ( io -> Read ( io , seq -> ProfileID . ID8 , 16 , 1 ) != 1 ) return FALSE ;\n if ( ! ReadEmbeddedText ( self , io , & seq -> Description , SizeOfTag ) ) return FALSE ;\n return TRUE ;\n }"}
{"idx": 1633, "target": 0, "func": "int ASN1_BIT_STRING_check ( ASN1_BIT_STRING * a , unsigned char * flags , int flags_len ) {\n int i , ok ;\n if ( ! a || ! a -> data ) return 1 ;\n ok = 1 ;\n for ( i = 0 ;\n i < a -> length && ok ;\n ++ i ) {\n unsigned char mask = i < flags_len ? ~ flags [ i ] : 0xff ;\n ok = ( a -> data [ i ] & mask ) == 0 ;\n }\n return ok ;\n }"}
{"idx": 1634, "target": 0, "func": "int EVP_EncryptFinal_ex ( EVP_CIPHER_CTX * ctx , unsigned char * out , int * outl ) {\n int n , ret ;\n unsigned int i , b , bl ;\n if ( ctx -> cipher -> flags & EVP_CIPH_FLAG_CUSTOM_CIPHER ) {\n ret = ctx -> cipher -> do_cipher ( ctx , out , NULL , 0 ) ;\n if ( ret < 0 ) return 0 ;\n else * outl = ret ;\n return 1 ;\n }\n b = ctx -> cipher -> block_size ;\n OPENSSL_assert ( b <= sizeof ctx -> buf ) ;\n if ( b == 1 ) {\n * outl = 0 ;\n return 1 ;\n }\n bl = ctx -> buf_len ;\n if ( ctx -> flags & EVP_CIPH_NO_PADDING ) {\n if ( bl ) {\n EVPerr ( EVP_F_EVP_ENCRYPTFINAL_EX , EVP_R_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH ) ;\n return 0 ;\n }\n * outl = 0 ;\n return 1 ;\n }\n n = b - bl ;\n for ( i = bl ;\n i < b ;\n i ++ ) ctx -> buf [ i ] = n ;\n ret = ctx -> cipher -> do_cipher ( ctx , out , ctx -> buf , b ) ;\n if ( ret ) * outl = b ;\n return ret ;\n }"}
{"idx": 1635, "target": 0, "func": "static void duplicate_mode_info_in_sb ( VP9_COMMON * cm , MACROBLOCKD * xd , int mi_row , int mi_col , BLOCK_SIZE bsize ) {\n const int block_width = num_8x8_blocks_wide_lookup [ bsize ] ;\n const int block_height = num_8x8_blocks_high_lookup [ bsize ] ;\n int i , j ;\n for ( j = 0 ;\n j < block_height ;\n ++ j ) for ( i = 0 ;\n i < block_width ;\n ++ i ) {\n if ( mi_row + j < cm -> mi_rows && mi_col + i < cm -> mi_cols ) xd -> mi [ j * xd -> mi_stride + i ] . src_mi = & xd -> mi [ 0 ] ;\n }\n }"}
{"idx": 1636, "target": 0, "func": "void do_let ( struct st_command * command ) {\n char * p = command -> first_argument ;\n char * var_name , * var_name_end ;\n DYNAMIC_STRING let_rhs_expr ;\n DBUG_ENTER ( \"do_let\" ) ;\n init_dynamic_string ( & let_rhs_expr , \"\" , 512 , 2048 ) ;\n if ( ! * p ) die ( \"Missing arguments to let\" ) ;\n var_name = p ;\n while ( * p && ( * p != '=' ) && ! my_isspace ( charset_info , * p ) ) p ++ ;\n var_name_end = p ;\n if ( var_name == var_name_end || ( var_name + 1 == var_name_end && * var_name == '$' ) ) die ( \"Missing variable name in let\" ) ;\n while ( my_isspace ( charset_info , * p ) ) p ++ ;\n if ( * p ++ != '=' ) die ( \"Missing assignment operator in let\" ) ;\n while ( * p && my_isspace ( charset_info , * p ) ) p ++ ;\n do_eval ( & let_rhs_expr , p , command -> end , FALSE ) ;\n command -> last_argument = command -> end ;\n var_set ( var_name , var_name_end , let_rhs_expr . str , ( let_rhs_expr . str + let_rhs_expr . length ) ) ;\n dynstr_free ( & let_rhs_expr ) ;\n revert_properties ( ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 1637, "target": 0, "func": "static MaltaFPGAState * malta_fpga_init ( MemoryRegion * address_space , hwaddr base , qemu_irq uart_irq , CharDriverState * uart_chr ) {\n MaltaFPGAState * s ;\n s = ( MaltaFPGAState * ) g_malloc0 ( sizeof ( MaltaFPGAState ) ) ;\n memory_region_init_io ( & s -> iomem , NULL , & malta_fpga_ops , s , \"malta-fpga\" , 0x100000 ) ;\n memory_region_init_alias ( & s -> iomem_lo , NULL , \"malta-fpga\" , & s -> iomem , 0 , 0x900 ) ;\n memory_region_init_alias ( & s -> iomem_hi , NULL , \"malta-fpga\" , & s -> iomem , 0xa00 , 0x10000 - 0xa00 ) ;\n memory_region_add_subregion ( address_space , base , & s -> iomem_lo ) ;\n memory_region_add_subregion ( address_space , base + 0xa00 , & s -> iomem_hi ) ;\n s -> display = qemu_chr_new ( \"fpga\" , \"vc:320x200\" , malta_fpga_led_init ) ;\n s -> uart = serial_mm_init ( address_space , base + 0x900 , 3 , uart_irq , 230400 , uart_chr , DEVICE_NATIVE_ENDIAN ) ;\n malta_fpga_reset ( s ) ;\n qemu_register_reset ( malta_fpga_reset , s ) ;\n return s ;\n }"}
{"idx": 1638, "target": 0, "func": "static void pdf_process_CS ( fz_context * ctx , pdf_processor * proc , pdf_csi * csi , int stroke ) {\n if ( ! proc -> op_CS || ! proc -> op_cs ) return ;\n if ( ! strcmp ( csi -> name , \"Pattern\" ) ) {\n if ( stroke ) proc -> op_CS ( ctx , proc , \"Pattern\" , NULL ) ;\n else proc -> op_cs ( ctx , proc , \"Pattern\" , NULL ) ;\n }\n else {\n fz_colorspace * cs ;\n if ( ! strcmp ( csi -> name , \"DeviceGray\" ) ) cs = fz_keep_colorspace ( ctx , fz_device_gray ( ctx ) ) ;\n else if ( ! strcmp ( csi -> name , \"DeviceRGB\" ) ) cs = fz_keep_colorspace ( ctx , fz_device_rgb ( ctx ) ) ;\n else if ( ! strcmp ( csi -> name , \"DeviceCMYK\" ) ) cs = fz_keep_colorspace ( ctx , fz_device_cmyk ( ctx ) ) ;\n else {\n pdf_obj * csres , * csobj ;\n csres = pdf_dict_get ( ctx , csi -> rdb , PDF_NAME_ColorSpace ) ;\n if ( ! csres ) fz_throw ( ctx , FZ_ERROR_SYNTAX , \"cannot find ColorSpace dictionary\" ) ;\n csobj = pdf_dict_gets ( ctx , csres , csi -> name ) ;\n if ( ! csobj ) fz_throw ( ctx , FZ_ERROR_SYNTAX , \"cannot find ColorSpace resource '%s'\" , csi -> name ) ;\n cs = pdf_load_colorspace ( ctx , csobj ) ;\n }\n fz_try ( ctx ) {\n if ( stroke ) proc -> op_CS ( ctx , proc , csi -> name , cs ) ;\n else proc -> op_cs ( ctx , proc , csi -> name , cs ) ;\n }\n fz_always ( ctx ) fz_drop_colorspace ( ctx , cs ) ;\n fz_catch ( ctx ) fz_rethrow ( ctx ) ;\n }\n }"}
{"idx": 1639, "target": 0, "func": "static int mpc7_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size ;\n MPCContext * c = avctx -> priv_data ;\n GetBitContext gb ;\n int i , ch ;\n int mb = - 1 ;\n Band * bands = c -> bands ;\n int off , ret , last_frame , skip ;\n int bits_used , bits_avail ;\n memset ( bands , 0 , sizeof ( * bands ) * ( c -> maxbands + 1 ) ) ;\n buf_size = avpkt -> size & ~ 3 ;\n if ( buf_size <= 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"packet size is too small (%i bytes)\\n\" , avpkt -> size ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( buf_size != avpkt -> size ) {\n av_log ( avctx , AV_LOG_WARNING , \"packet size is not a multiple of 4. \" \"extra bytes at the end will be skipped.\\n\" ) ;\n }\n skip = buf [ 0 ] ;\n last_frame = buf [ 1 ] ;\n buf += 4 ;\n buf_size -= 4 ;\n frame -> nb_samples = last_frame ? c -> lastframelen : MPC_FRAME_SIZE ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n av_fast_padded_malloc ( & c -> bits , & c -> buf_size , buf_size ) ;\n if ( ! c -> bits ) return AVERROR ( ENOMEM ) ;\n c -> dsp . bswap_buf ( ( uint32_t * ) c -> bits , ( const uint32_t * ) buf , buf_size >> 2 ) ;\n init_get_bits ( & gb , c -> bits , buf_size * 8 ) ;\n skip_bits_long ( & gb , skip ) ;\n for ( i = 0 ;\n i <= c -> maxbands ;\n i ++ ) {\n for ( ch = 0 ;\n ch < 2 ;\n ch ++ ) {\n int t = 4 ;\n if ( i ) t = get_vlc2 ( & gb , hdr_vlc . table , MPC7_HDR_BITS , 1 ) - 5 ;\n if ( t == 4 ) bands [ i ] . res [ ch ] = get_bits ( & gb , 4 ) ;\n else bands [ i ] . res [ ch ] = av_clip ( bands [ i - 1 ] . res [ ch ] + t , 0 , 17 ) ;\n }\n if ( bands [ i ] . res [ 0 ] || bands [ i ] . res [ 1 ] ) {\n mb = i ;\n if ( c -> MSS ) bands [ i ] . msf = get_bits1 ( & gb ) ;\n }\n }\n for ( i = 0 ;\n i <= mb ;\n i ++ ) for ( ch = 0 ;\n ch < 2 ;\n ch ++ ) if ( bands [ i ] . res [ ch ] ) bands [ i ] . scfi [ ch ] = get_vlc2 ( & gb , scfi_vlc . table , MPC7_SCFI_BITS , 1 ) ;\n for ( i = 0 ;\n i <= mb ;\n i ++ ) {\n for ( ch = 0 ;\n ch < 2 ;\n ch ++ ) {\n if ( bands [ i ] . res [ ch ] ) {\n bands [ i ] . scf_idx [ ch ] [ 2 ] = c -> oldDSCF [ ch ] [ i ] ;\n bands [ i ] . scf_idx [ ch ] [ 0 ] = get_scale_idx ( & gb , bands [ i ] . scf_idx [ ch ] [ 2 ] ) ;\n switch ( bands [ i ] . scfi [ ch ] ) {\n case 0 : bands [ i ] . scf_idx [ ch ] [ 1 ] = get_scale_idx ( & gb , bands [ i ] . scf_idx [ ch ] [ 0 ] ) ;\n bands [ i ] . scf_idx [ ch ] [ 2 ] = get_scale_idx ( & gb , bands [ i ] . scf_idx [ ch ] [ 1 ] ) ;\n break ;\n case 1 : bands [ i ] . scf_idx [ ch ] [ 1 ] = get_scale_idx ( & gb , bands [ i ] . scf_idx [ ch ] [ 0 ] ) ;\n bands [ i ] . scf_idx [ ch ] [ 2 ] = bands [ i ] . scf_idx [ ch ] [ 1 ] ;\n break ;\n case 2 : bands [ i ] . scf_idx [ ch ] [ 1 ] = bands [ i ] . scf_idx [ ch ] [ 0 ] ;\n bands [ i ] . scf_idx [ ch ] [ 2 ] = get_scale_idx ( & gb , bands [ i ] . scf_idx [ ch ] [ 1 ] ) ;\n break ;\n case 3 : bands [ i ] . scf_idx [ ch ] [ 2 ] = bands [ i ] . scf_idx [ ch ] [ 1 ] = bands [ i ] . scf_idx [ ch ] [ 0 ] ;\n break ;\n }\n c -> oldDSCF [ ch ] [ i ] = bands [ i ] . scf_idx [ ch ] [ 2 ] ;\n }\n }\n }\n memset ( c -> Q , 0 , sizeof ( c -> Q ) ) ;\n off = 0 ;\n for ( i = 0 ;\n i < BANDS ;\n i ++ , off += SAMPLES_PER_BAND ) for ( ch = 0 ;\n ch < 2 ;\n ch ++ ) idx_to_quant ( c , & gb , bands [ i ] . res [ ch ] , c -> Q [ ch ] + off ) ;\n ff_mpc_dequantize_and_synth ( c , mb , ( int16_t * * ) frame -> extended_data , 2 ) ;\n bits_used = get_bits_count ( & gb ) ;\n bits_avail = buf_size * 8 ;\n if ( ! last_frame && ( ( bits_avail < bits_used ) || ( bits_used + 32 <= bits_avail ) ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error decoding frame: used %i of %i bits\\n\" , bits_used , bits_avail ) ;\n return - 1 ;\n }\n if ( c -> frames_to_skip ) {\n c -> frames_to_skip -- ;\n * got_frame_ptr = 0 ;\n return avpkt -> size ;\n }\n * got_frame_ptr = 1 ;\n return avpkt -> size ;\n }"}
{"idx": 1640, "target": 1, "func": "static int mxpeg_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n MXpegDecodeContext * s = avctx -> priv_data ;\n MJpegDecodeContext * jpg = & s -> jpg ;\n const uint8_t * buf_end , * buf_ptr ;\n const uint8_t * unescaped_buf_ptr ;\n int unescaped_buf_size ;\n int start_code ;\n AVFrame * picture = data ;\n int ret ;\n buf_ptr = buf ;\n buf_end = buf + buf_size ;\n jpg -> got_picture = 0 ;\n s -> got_mxm_bitmask = 0 ;\n while ( buf_ptr < buf_end ) {\n start_code = ff_mjpeg_find_marker ( jpg , & buf_ptr , buf_end , & unescaped_buf_ptr , & unescaped_buf_size ) ;\n if ( start_code < 0 ) goto the_end ;\n {\n init_get_bits ( & jpg -> gb , unescaped_buf_ptr , unescaped_buf_size * 8 ) ;\n if ( start_code >= APP0 && start_code <= APP15 ) {\n mxpeg_decode_app ( s , unescaped_buf_ptr , unescaped_buf_size ) ;\n }\n switch ( start_code ) {\n case SOI : if ( jpg -> got_picture ) goto the_end ;\n break ;\n case EOI : goto the_end ;\n case DQT : ret = ff_mjpeg_decode_dqt ( jpg ) ;\n if ( ret < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"quantization table decode error\\n\" ) ;\n return ret ;\n }\n break ;\n case DHT : ret = ff_mjpeg_decode_dht ( jpg ) ;\n if ( ret < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"huffman table decode error\\n\" ) ;\n return ret ;\n }\n break ;\n case COM : ret = mxpeg_decode_com ( s , unescaped_buf_ptr , unescaped_buf_size ) ;\n if ( ret < 0 ) return ret ;\n break ;\n case SOF0 : s -> got_sof_data = 0 ;\n ret = ff_mjpeg_decode_sof ( jpg ) ;\n if ( ret < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"SOF data decode error\\n\" ) ;\n return ret ;\n }\n if ( jpg -> interlaced ) {\n av_log ( avctx , AV_LOG_ERROR , \"Interlaced mode not supported in MxPEG\\n\" ) ;\n return AVERROR ( EINVAL ) ;\n }\n s -> got_sof_data = 1 ;\n break ;\n case SOS : if ( ! s -> got_sof_data ) {\n av_log ( avctx , AV_LOG_WARNING , \"Can not process SOS without SOF data, skipping\\n\" ) ;\n break ;\n }\n if ( ! jpg -> got_picture ) {\n if ( jpg -> first_picture ) {\n av_log ( avctx , AV_LOG_WARNING , \"First picture has no SOF, skipping\\n\" ) ;\n break ;\n }\n if ( ! s -> got_mxm_bitmask ) {\n av_log ( avctx , AV_LOG_WARNING , \"Non-key frame has no MXM, skipping\\n\" ) ;\n break ;\n }\n if ( jpg -> picture_ptr -> data [ 0 ] ) avctx -> release_buffer ( avctx , jpg -> picture_ptr ) ;\n if ( ff_get_buffer ( avctx , jpg -> picture_ptr ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return AVERROR ( ENOMEM ) ;\n }\n jpg -> picture_ptr -> pict_type = AV_PICTURE_TYPE_P ;\n jpg -> picture_ptr -> key_frame = 0 ;\n jpg -> got_picture = 1 ;\n }\n else {\n jpg -> picture_ptr -> pict_type = AV_PICTURE_TYPE_I ;\n jpg -> picture_ptr -> key_frame = 1 ;\n }\n if ( s -> got_mxm_bitmask ) {\n AVFrame * reference_ptr = & s -> picture [ s -> picture_index ^ 1 ] ;\n if ( mxpeg_check_dimensions ( s , jpg , reference_ptr ) < 0 ) break ;\n if ( ! reference_ptr -> data [ 0 ] && ff_get_buffer ( avctx , reference_ptr ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return AVERROR ( ENOMEM ) ;\n }\n ret = ff_mjpeg_decode_sos ( jpg , s -> mxm_bitmask , reference_ptr ) ;\n if ( ret < 0 && ( avctx -> err_recognition & AV_EF_EXPLODE ) ) return ret ;\n }\n else {\n ret = ff_mjpeg_decode_sos ( jpg , NULL , NULL ) ;\n if ( ret < 0 && ( avctx -> err_recognition & AV_EF_EXPLODE ) ) return ret ;\n }\n break ;\n }\n buf_ptr += ( get_bits_count ( & jpg -> gb ) + 7 ) >> 3 ;\n }\n }\n the_end : if ( jpg -> got_picture ) {\n * got_frame = 1 ;\n * picture = * jpg -> picture_ptr ;\n s -> picture_index ^= 1 ;\n jpg -> picture_ptr = & s -> picture [ s -> picture_index ] ;\n if ( ! s -> has_complete_frame ) {\n if ( ! s -> got_mxm_bitmask ) s -> has_complete_frame = 1 ;\n else * got_frame = 0 ;\n }\n }\n return buf_ptr - buf ;\n }"}
{"idx": 1641, "target": 0, "func": "static void one_remote_ref ( const char * refname ) {\n struct ref * ref ;\n struct object * obj ;\n ref = alloc_ref ( refname ) ;\n if ( http_fetch_ref ( repo -> url , ref ) != 0 ) {\n fprintf ( stderr , \"Unable to fetch ref %s from %s\\n\" , refname , repo -> url ) ;\n free ( ref ) ;\n return ;\n }\n if ( repo -> can_update_info_refs && ! has_object_file ( & ref -> old_oid ) ) {\n obj = lookup_unknown_object ( ref -> old_oid . hash ) ;\n if ( obj ) {\n fprintf ( stderr , \" fetch %s for %s\\n\" , oid_to_hex ( & ref -> old_oid ) , refname ) ;\n add_fetch_request ( obj ) ;\n }\n }\n ref -> next = remote_refs ;\n remote_refs = ref ;\n }"}
{"idx": 1642, "target": 0, "func": "static void fill_vaapi_plain_pred_weight_table ( H264Context * h , int list , unsigned char * luma_weight_flag , short luma_weight [ 32 ] , short luma_offset [ 32 ] , unsigned char * chroma_weight_flag , short chroma_weight [ 32 ] [ 2 ] , short chroma_offset [ 32 ] [ 2 ] ) {\n unsigned int i , j ;\n * luma_weight_flag = h -> luma_weight_flag [ list ] ;\n * chroma_weight_flag = h -> chroma_weight_flag [ list ] ;\n for ( i = 0 ;\n i < h -> ref_count [ list ] ;\n i ++ ) {\n if ( h -> luma_weight_flag [ list ] ) {\n luma_weight [ i ] = h -> luma_weight [ i ] [ list ] [ 0 ] ;\n luma_offset [ i ] = h -> luma_weight [ i ] [ list ] [ 1 ] ;\n }\n else {\n luma_weight [ i ] = 1 << h -> luma_log2_weight_denom ;\n luma_offset [ i ] = 0 ;\n }\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n if ( h -> chroma_weight_flag [ list ] ) {\n chroma_weight [ i ] [ j ] = h -> chroma_weight [ i ] [ list ] [ j ] [ 0 ] ;\n chroma_offset [ i ] [ j ] = h -> chroma_weight [ i ] [ list ] [ j ] [ 1 ] ;\n }\n else {\n chroma_weight [ i ] [ j ] = 1 << h -> chroma_log2_weight_denom ;\n chroma_offset [ i ] [ j ] = 0 ;\n }\n }\n }\n }"}
{"idx": 1643, "target": 0, "func": "static int dissect_rsl_ie_multirate_cntrl ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_tree * ie_tree ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_MULTIRATE_CNTRL ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 2 , ett_ie_multirate_cntrl , NULL , \"MultiRate Control IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n offset ++ ;\n return offset ;\n }"}
{"idx": 1644, "target": 0, "func": "static cmsBool Type_vcgt_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) {\n cmsToneCurve * * Curves = ( cmsToneCurve * * ) Ptr ;\n cmsUInt32Number i , j ;\n if ( cmsGetToneCurveParametricType ( Curves [ 0 ] ) == 5 && cmsGetToneCurveParametricType ( Curves [ 1 ] ) == 5 && cmsGetToneCurveParametricType ( Curves [ 2 ] ) == 5 ) {\n if ( ! _cmsWriteUInt32Number ( io , cmsVideoCardGammaFormulaType ) ) return FALSE ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n _cmsVCGTGAMMA v ;\n v . Gamma = Curves [ i ] -> Segments [ 0 ] . Params [ 0 ] ;\n v . Min = Curves [ i ] -> Segments [ 0 ] . Params [ 5 ] ;\n v . Max = pow ( Curves [ i ] -> Segments [ 0 ] . Params [ 1 ] , v . Gamma ) + v . Min ;\n if ( ! _cmsWrite15Fixed16Number ( io , v . Gamma ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , v . Min ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , v . Max ) ) return FALSE ;\n }\n }\n else {\n if ( ! _cmsWriteUInt32Number ( io , cmsVideoCardGammaTableType ) ) return FALSE ;\n if ( ! _cmsWriteUInt16Number ( io , 3 ) ) return FALSE ;\n if ( ! _cmsWriteUInt16Number ( io , 256 ) ) return FALSE ;\n if ( ! _cmsWriteUInt16Number ( io , 2 ) ) return FALSE ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n for ( j = 0 ;\n j < 256 ;\n j ++ ) {\n cmsFloat32Number v = cmsEvalToneCurveFloat ( Curves [ i ] , ( cmsFloat32Number ) ( j / 255.0 ) ) ;\n cmsUInt16Number n = _cmsQuickSaturateWord ( v * 65535.0 ) ;\n if ( ! _cmsWriteUInt16Number ( io , n ) ) return FALSE ;\n }\n }\n }\n return TRUE ;\n cmsUNUSED_PARAMETER ( self ) ;\n cmsUNUSED_PARAMETER ( nItems ) ;\n }"}
{"idx": 1645, "target": 0, "func": "void cpu_synchronize_all_post_init ( void ) {\n CPUArchState * cpu ;\n for ( cpu = first_cpu ;\n cpu ;\n cpu = cpu -> next_cpu ) {\n cpu_synchronize_post_init ( ENV_GET_CPU ( cpu ) ) ;\n }\n }"}
{"idx": 1646, "target": 0, "func": "int qemuAgentGetFSInfo ( qemuAgentPtr mon , virDomainFSInfoPtr * * info , virDomainDefPtr vmdef ) {\n size_t i , j , k ;\n int ret = - 1 ;\n ssize_t ndata = 0 , ndisk ;\n char * * alias ;\n virJSONValuePtr cmd ;\n virJSONValuePtr reply = NULL ;\n virJSONValuePtr data ;\n virDomainFSInfoPtr * info_ret = NULL ;\n virPCIDeviceAddress pci_address ;\n cmd = qemuAgentMakeCommand ( \"guest-get-fsinfo\" , NULL ) ;\n if ( ! cmd ) return ret ;\n if ( qemuAgentCommand ( mon , cmd , & reply , true , VIR_DOMAIN_QEMU_AGENT_COMMAND_BLOCK ) < 0 ) goto cleanup ;\n if ( ! ( data = virJSONValueObjectGet ( reply , \"return\" ) ) ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"guest-get-fsinfo reply was missing return data\" ) ) ;\n goto cleanup ;\n }\n if ( data -> type != VIR_JSON_TYPE_ARRAY ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"guest-get-fsinfo return information was not \" \"an array\" ) ) ;\n goto cleanup ;\n }\n ndata = virJSONValueArraySize ( data ) ;\n if ( ! ndata ) {\n ret = 0 ;\n * info = NULL ;\n goto cleanup ;\n }\n if ( VIR_ALLOC_N ( info_ret , ndata ) < 0 ) goto cleanup ;\n for ( i = 0 ;\n i < ndata ;\n i ++ ) {\n virJSONValuePtr entry = virJSONValueArrayGet ( data , ndata - 1 - i ) ;\n if ( ! entry ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"array element '%zd' of '%zd' missing in \" \"guest-get-fsinfo return data\" ) , i , ndata ) ;\n goto cleanup ;\n }\n if ( VIR_ALLOC ( info_ret [ i ] ) < 0 ) goto cleanup ;\n if ( VIR_STRDUP ( info_ret [ i ] -> mountpoint , virJSONValueObjectGetString ( entry , \"mountpoint\" ) ) < 0 ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"'mountpoint' missing in reply of \" \"guest-get-fsinfo\" ) ) ;\n goto cleanup ;\n }\n if ( VIR_STRDUP ( info_ret [ i ] -> name , virJSONValueObjectGetString ( entry , \"name\" ) ) < 0 ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"'name' missing in reply of guest-get-fsinfo\" ) ) ;\n goto cleanup ;\n }\n if ( VIR_STRDUP ( info_ret [ i ] -> fstype , virJSONValueObjectGetString ( entry , \"type\" ) ) < 0 ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"'type' missing in reply of guest-get-fsinfo\" ) ) ;\n goto cleanup ;\n }\n if ( ! ( entry = virJSONValueObjectGet ( entry , \"disk\" ) ) ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"'disk' missing in reply of guest-get-fsinfo\" ) ) ;\n goto cleanup ;\n }\n if ( entry -> type != VIR_JSON_TYPE_ARRAY ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"guest-get-fsinfo 'disk' data was not an array\" ) ) ;\n goto cleanup ;\n }\n ndisk = virJSONValueArraySize ( entry ) ;\n if ( ! ndisk ) continue ;\n if ( VIR_ALLOC_N ( info_ret [ i ] -> devAlias , ndisk ) < 0 ) goto cleanup ;\n alias = info_ret [ i ] -> devAlias ;\n info_ret [ i ] -> ndevAlias = 0 ;\n for ( j = 0 ;\n j < ndisk ;\n j ++ ) {\n virJSONValuePtr disk = virJSONValueArrayGet ( entry , j ) ;\n virJSONValuePtr pci ;\n int diskaddr [ 3 ] , pciaddr [ 4 ] ;\n const char * diskaddr_comp [ ] = {\n \"bus\" , \"target\" , \"unit\" }\n ;\n const char * pciaddr_comp [ ] = {\n \"domain\" , \"bus\" , \"slot\" , \"function\" }\n ;\n virDomainDiskDefPtr diskDef ;\n if ( ! disk ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"array element '%zd' of '%zd' missing in \" \"guest-get-fsinfo 'disk' data\" ) , j , ndisk ) ;\n goto cleanup ;\n }\n if ( ! ( pci = virJSONValueObjectGet ( disk , \"pci-controller\" ) ) ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"'pci-controller' missing in guest-get-fsinfo \" \"'disk' data\" ) ) ;\n goto cleanup ;\n }\n for ( k = 0 ;\n k < 3 ;\n k ++ ) {\n if ( virJSONValueObjectGetNumberInt ( disk , diskaddr_comp [ k ] , & diskaddr [ k ] ) < 0 ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"'%s' missing in guest-get-fsinfo \" \"'disk' data\" ) , diskaddr_comp [ k ] ) ;\n goto cleanup ;\n }\n }\n for ( k = 0 ;\n k < 4 ;\n k ++ ) {\n if ( virJSONValueObjectGetNumberInt ( pci , pciaddr_comp [ k ] , & pciaddr [ k ] ) < 0 ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"'%s' missing in guest-get-fsinfo \" \"'pci-address' data\" ) , pciaddr_comp [ k ] ) ;\n goto cleanup ;\n }\n }\n pci_address . domain = pciaddr [ 0 ] ;\n pci_address . bus = pciaddr [ 1 ] ;\n pci_address . slot = pciaddr [ 2 ] ;\n pci_address . function = pciaddr [ 3 ] ;\n if ( ! ( diskDef = virDomainDiskByAddress ( vmdef , & pci_address , diskaddr [ 0 ] , diskaddr [ 1 ] , diskaddr [ 2 ] ) ) ) continue ;\n if ( VIR_STRDUP ( * alias , diskDef -> dst ) < 0 ) goto cleanup ;\n if ( * alias ) {\n alias ++ ;\n info_ret [ i ] -> ndevAlias ++ ;\n }\n }\n }\n * info = info_ret ;\n info_ret = NULL ;\n ret = ndata ;\n cleanup : if ( info_ret ) {\n for ( i = 0 ;\n i < ndata ;\n i ++ ) virDomainFSInfoFree ( info_ret [ i ] ) ;\n VIR_FREE ( info_ret ) ;\n }\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 1647, "target": 0, "func": "static int dissect_AllJoyn_name_server ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n proto_item * alljoyn_item , * header_item ;\n proto_tree * alljoyn_tree , * header_tree ;\n guint8 questions , answers ;\n guint8 version ;\n int offset = 0 ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"ALLJOYN-NS\" ) ;\n col_clear ( pinfo -> cinfo , COL_INFO ) ;\n alljoyn_item = proto_tree_add_item ( tree , proto_AllJoyn_ns , tvb , 0 , - 1 , ENC_NA ) ;\n alljoyn_tree = proto_item_add_subtree ( alljoyn_item , ett_alljoyn_ns ) ;\n header_item = proto_tree_add_item ( alljoyn_tree , hf_alljoyn_ns_header , tvb , offset , 4 , ENC_NA ) ;\n header_tree = proto_item_add_subtree ( header_item , ett_alljoyn_ns_header ) ;\n proto_tree_add_item ( header_tree , hf_alljoyn_ns_sender_version , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( header_tree , hf_alljoyn_ns_message_version , tvb , offset , 1 , ENC_NA ) ;\n version = tvb_get_guint8 ( tvb , offset ) & 0xF ;\n offset += 1 ;\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"VERSION %u\" , version ) ;\n if ( version > 1 ) col_append_str ( pinfo -> cinfo , COL_INFO , \" (UNSUPPORTED)\" ) ;\n proto_tree_add_item ( header_tree , hf_alljoyn_ns_questions , tvb , offset , 1 , ENC_NA ) ;\n questions = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n proto_tree_add_item ( header_tree , hf_alljoyn_ns_answers , tvb , offset , 1 , ENC_NA ) ;\n answers = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n if ( answers > 0 ) col_append_str ( pinfo -> cinfo , COL_INFO , \" ISAT\" ) ;\n if ( questions > 0 ) col_append_str ( pinfo -> cinfo , COL_INFO , \" WHOHAS\" ) ;\n proto_tree_add_item ( header_tree , hf_alljoyn_ns_timer , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n if ( tree ) {\n ns_parse_questions ( tvb , & offset , alljoyn_tree , questions , version ) ;\n switch ( version ) {\n case 0 : ns_parse_answers_v0 ( tvb , & offset , alljoyn_tree , answers ) ;\n break ;\n case 1 : ns_parse_answers_v1 ( tvb , & offset , alljoyn_tree , answers ) ;\n break ;\n default : break ;\n }\n }\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 1648, "target": 0, "func": "static GList * location_list_from_uri_list ( const GList * uris ) {\n const GList * l ;\n GList * files ;\n GFile * f ;\n files = NULL ;\n for ( l = uris ;\n l != NULL ;\n l = l -> next ) {\n f = g_file_new_for_uri ( l -> data ) ;\n files = g_list_prepend ( files , f ) ;\n }\n return g_list_reverse ( files ) ;\n }"}
{"idx": 1649, "target": 0, "func": "static int init_table_pools ( H264Context * h ) {\n const int big_mb_num = h -> mb_stride * ( h -> mb_height + 1 ) + 1 ;\n const int mb_array_size = h -> mb_stride * h -> mb_height ;\n const int b4_stride = h -> mb_width * 4 + 1 ;\n const int b4_array_size = b4_stride * h -> mb_height * 4 ;\n h -> qscale_table_pool = av_buffer_pool_init ( big_mb_num + h -> mb_stride , av_buffer_allocz ) ;\n h -> mb_type_pool = av_buffer_pool_init ( ( big_mb_num + h -> mb_stride ) * sizeof ( uint32_t ) , av_buffer_allocz ) ;\n h -> motion_val_pool = av_buffer_pool_init ( 2 * ( b4_array_size + 4 ) * sizeof ( int16_t ) , av_buffer_allocz ) ;\n h -> ref_index_pool = av_buffer_pool_init ( 4 * mb_array_size , av_buffer_allocz ) ;\n if ( ! h -> qscale_table_pool || ! h -> mb_type_pool || ! h -> motion_val_pool || ! h -> ref_index_pool ) {\n av_buffer_pool_uninit ( & h -> qscale_table_pool ) ;\n av_buffer_pool_uninit ( & h -> mb_type_pool ) ;\n av_buffer_pool_uninit ( & h -> motion_val_pool ) ;\n av_buffer_pool_uninit ( & h -> ref_index_pool ) ;\n return AVERROR ( ENOMEM ) ;\n }\n return 0 ;\n }"}
{"idx": 1650, "target": 0, "func": "static int rawv6_setsockopt ( struct sock * sk , int level , int optname , char __user * optval , unsigned int optlen ) {\n switch ( level ) {\n case SOL_RAW : break ;\n case SOL_ICMPV6 : if ( inet_sk ( sk ) -> inet_num != IPPROTO_ICMPV6 ) return - EOPNOTSUPP ;\n return rawv6_seticmpfilter ( sk , level , optname , optval , optlen ) ;\n case SOL_IPV6 : if ( optname == IPV6_CHECKSUM ) break ;\n default : return ipv6_setsockopt ( sk , level , optname , optval , optlen ) ;\n }\n return do_rawv6_setsockopt ( sk , level , optname , optval , optlen ) ;\n }"}
{"idx": 1651, "target": 0, "func": "static int dissect_h245_AdaptationLayerType ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_AdaptationLayerType , AdaptationLayerType_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 1652, "target": 0, "func": "static int set_str_utf16be ( struct archive_write * a , unsigned char * p , const char * s , size_t l , uint16_t uf , enum vdc vdc ) {\n size_t size , i ;\n int onepad ;\n if ( s == NULL ) s = \"\" ;\n if ( l & 0x01 ) {\n onepad = 1 ;\n l &= ~ 1 ;\n }\n else onepad = 0 ;\n if ( vdc == VDC_UCS2 ) {\n struct iso9660 * iso9660 = a -> format_data ;\n if ( archive_strncpy_l ( & iso9660 -> utf16be , s , strlen ( s ) , iso9660 -> sconv_to_utf16be ) != 0 && errno == ENOMEM ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate memory for UTF-16BE\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n size = iso9660 -> utf16be . length ;\n if ( size > l ) size = l ;\n memcpy ( p , iso9660 -> utf16be . s , size ) ;\n }\n else {\n const uint16_t * u16 = ( const uint16_t * ) s ;\n size = 0 ;\n while ( * u16 ++ ) size += 2 ;\n if ( size > l ) size = l ;\n memcpy ( p , s , size ) ;\n }\n for ( i = 0 ;\n i < size ;\n i += 2 , p += 2 ) {\n if ( ! joliet_allowed_char ( p [ 0 ] , p [ 1 ] ) ) archive_be16enc ( p , 0x005F ) ;\n }\n l -= size ;\n while ( l > 0 ) {\n archive_be16enc ( p , uf ) ;\n p += 2 ;\n l -= 2 ;\n }\n if ( onepad ) * p = 0 ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 1653, "target": 1, "func": "static void initial_reordering ( const hb_ot_shape_plan_t * plan , hb_font_t * font , hb_buffer_t * buffer ) {\n update_consonant_positions ( plan , font , buffer ) ;\n insert_dotted_circles ( plan , font , buffer ) ;\n hb_glyph_info_t * info = buffer -> info ;\n unsigned int count = buffer -> len ;\n if ( unlikely ( ! count ) ) return ;\n unsigned int last = 0 ;\n unsigned int last_syllable = info [ 0 ] . syllable ( ) ;\n for ( unsigned int i = 1 ;\n i < count ;\n i ++ ) if ( last_syllable != info [ i ] . syllable ( ) ) {\n initial_reordering_syllable ( plan , font -> face , buffer , last , i ) ;\n last = i ;\n last_syllable = info [ last ] . syllable ( ) ;\n }\n initial_reordering_syllable ( plan , font -> face , buffer , last , count ) ;\n }"}
{"idx": 1654, "target": 0, "func": "void s_aes_set_padding ( stream_aes_state * state , int use_padding ) {\n state -> use_padding = use_padding ;\n }"}
{"idx": 1655, "target": 1, "func": "static int32_t _appendVariantsToLanguageTag ( const char * localeID , char * appendAt , int32_t capacity , UBool strict , UBool * hadPosix , UErrorCode * status ) {\n char buf [ ULOC_FULLNAME_CAPACITY ] ;\n UErrorCode tmpStatus = U_ZERO_ERROR ;\n int32_t len , i ;\n int32_t reslen = 0 ;\n if ( U_FAILURE ( * status ) ) {\n return 0 ;\n }\n len = uloc_getVariant ( localeID , buf , sizeof ( buf ) , & tmpStatus ) ;\n if ( U_FAILURE ( tmpStatus ) || tmpStatus == U_STRING_NOT_TERMINATED_WARNING ) {\n if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n }\n return 0 ;\n }\n if ( len > 0 ) {\n char * p , * pVar ;\n UBool bNext = TRUE ;\n VariantListEntry * var ;\n VariantListEntry * varFirst = NULL ;\n pVar = NULL ;\n p = buf ;\n while ( bNext ) {\n if ( * p == SEP || * p == LOCALE_SEP || * p == 0 ) {\n if ( * p == 0 ) {\n bNext = FALSE ;\n }\n else {\n * p = 0 ;\n }\n if ( pVar == NULL ) {\n if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n break ;\n }\n }\n else {\n for ( i = 0 ;\n * ( pVar + i ) != 0 ;\n i ++ ) {\n * ( pVar + i ) = uprv_tolower ( * ( pVar + i ) ) ;\n }\n if ( _isVariantSubtag ( pVar , - 1 ) ) {\n if ( uprv_strcmp ( pVar , POSIX_VALUE ) || len != uprv_strlen ( POSIX_VALUE ) ) {\n var = ( VariantListEntry * ) uprv_malloc ( sizeof ( VariantListEntry ) ) ;\n if ( var == NULL ) {\n * status = U_MEMORY_ALLOCATION_ERROR ;\n break ;\n }\n var -> variant = pVar ;\n if ( ! _addVariantToList ( & varFirst , var ) ) {\n uprv_free ( var ) ;\n if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n break ;\n }\n }\n }\n else {\n * hadPosix = TRUE ;\n }\n }\n else if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n break ;\n }\n else if ( _isPrivateuseValueSubtag ( pVar , - 1 ) ) {\n break ;\n }\n }\n pVar = NULL ;\n }\n else if ( pVar == NULL ) {\n pVar = p ;\n }\n p ++ ;\n }\n if ( U_SUCCESS ( * status ) ) {\n if ( varFirst != NULL ) {\n int32_t varLen ;\n var = varFirst ;\n while ( var != NULL ) {\n if ( reslen < capacity ) {\n * ( appendAt + reslen ) = SEP ;\n }\n reslen ++ ;\n varLen = ( int32_t ) uprv_strlen ( var -> variant ) ;\n if ( reslen < capacity ) {\n uprv_memcpy ( appendAt + reslen , var -> variant , uprv_min ( varLen , capacity - reslen ) ) ;\n }\n reslen += varLen ;\n var = var -> next ;\n }\n }\n }\n var = varFirst ;\n while ( var != NULL ) {\n VariantListEntry * tmpVar = var -> next ;\n uprv_free ( var ) ;\n var = tmpVar ;\n }\n if ( U_FAILURE ( * status ) ) {\n return 0 ;\n }\n }\n u_terminateChars ( appendAt , capacity , reslen , status ) ;\n return reslen ;\n }"}
{"idx": 1656, "target": 0, "func": "static void gx_device_set_media_from_hwsize ( gx_device * dev ) {\n int rot = ( dev -> LeadingEdge & 1 ) ;\n double x = dev -> width * 72.0 / dev -> HWResolution [ 0 ] ;\n double y = dev -> height * 72.0 / dev -> HWResolution [ 1 ] ;\n if ( rot ) {\n dev -> MediaSize [ 1 ] = x ;\n dev -> MediaSize [ 0 ] = y ;\n }\n else {\n dev -> MediaSize [ 0 ] = x ;\n dev -> MediaSize [ 1 ] = y ;\n }\n }"}
{"idx": 1657, "target": 0, "func": "static void xan_unpack ( unsigned char * dest , int dest_len , const unsigned char * src , int src_len ) {\n unsigned char opcode ;\n int size ;\n unsigned char * dest_org = dest ;\n unsigned char * dest_end = dest + dest_len ;\n GetByteContext ctx ;\n bytestream2_init ( & ctx , src , src_len ) ;\n while ( dest < dest_end && bytestream2_get_bytes_left ( & ctx ) ) {\n opcode = bytestream2_get_byte ( & ctx ) ;\n if ( opcode < 0xe0 ) {\n int size2 , back ;\n if ( ( opcode & 0x80 ) == 0 ) {\n size = opcode & 3 ;\n back = ( ( opcode & 0x60 ) << 3 ) + bytestream2_get_byte ( & ctx ) + 1 ;\n size2 = ( ( opcode & 0x1c ) >> 2 ) + 3 ;\n }\n else if ( ( opcode & 0x40 ) == 0 ) {\n size = bytestream2_peek_byte ( & ctx ) >> 6 ;\n back = ( bytestream2_get_be16 ( & ctx ) & 0x3fff ) + 1 ;\n size2 = ( opcode & 0x3f ) + 4 ;\n }\n else {\n size = opcode & 3 ;\n back = ( ( opcode & 0x10 ) << 12 ) + bytestream2_get_be16 ( & ctx ) + 1 ;\n size2 = ( ( opcode & 0x0c ) << 6 ) + bytestream2_get_byte ( & ctx ) + 5 ;\n }\n if ( dest_end - dest < size + size2 || dest + size - dest_org < back || bytestream2_get_bytes_left ( & ctx ) < size ) return ;\n bytestream2_get_buffer ( & ctx , dest , size ) ;\n dest += size ;\n av_memcpy_backptr ( dest , back , size2 ) ;\n dest += size2 ;\n }\n else {\n int finish = opcode >= 0xfc ;\n size = finish ? opcode & 3 : ( ( opcode & 0x1f ) << 2 ) + 4 ;\n if ( dest_end - dest < size || bytestream2_get_bytes_left ( & ctx ) < size ) return ;\n bytestream2_get_buffer ( & ctx , dest , size ) ;\n dest += size ;\n if ( finish ) return ;\n }\n }\n }"}
{"idx": 1658, "target": 0, "func": "TEST_F ( SoundContentSettingObserverTest , UnmutedAudioPlayingDoesNotRecordSiteMuted ) {\n ChangeSoundContentSettingTo ( CONTENT_SETTING_ALLOW ) ;\n SimulateAudioStarting ( ) ;\n EXPECT_FALSE ( RecordedSiteMuted ( ) ) ;\n }"}
{"idx": 1659, "target": 0, "func": "static void usb_xhci_init ( XHCIState * xhci ) {\n DeviceState * dev = DEVICE ( xhci ) ;\n XHCIPort * port ;\n int i , usbports , speedmask ;\n xhci -> usbsts = USBSTS_HCH ;\n if ( xhci -> numports_2 > MAXPORTS_2 ) {\n xhci -> numports_2 = MAXPORTS_2 ;\n }\n if ( xhci -> numports_3 > MAXPORTS_3 ) {\n xhci -> numports_3 = MAXPORTS_3 ;\n }\n usbports = MAX ( xhci -> numports_2 , xhci -> numports_3 ) ;\n xhci -> numports = xhci -> numports_2 + xhci -> numports_3 ;\n usb_bus_new ( & xhci -> bus , sizeof ( xhci -> bus ) , & xhci_bus_ops , dev ) ;\n for ( i = 0 ;\n i < usbports ;\n i ++ ) {\n speedmask = 0 ;\n if ( i < xhci -> numports_2 ) {\n if ( xhci_get_flag ( xhci , XHCI_FLAG_SS_FIRST ) ) {\n port = & xhci -> ports [ i + xhci -> numports_3 ] ;\n port -> portnr = i + 1 + xhci -> numports_3 ;\n }\n else {\n port = & xhci -> ports [ i ] ;\n port -> portnr = i + 1 ;\n }\n port -> uport = & xhci -> uports [ i ] ;\n port -> speedmask = USB_SPEED_MASK_LOW | USB_SPEED_MASK_FULL | USB_SPEED_MASK_HIGH ;\n snprintf ( port -> name , sizeof ( port -> name ) , \"usb2 port #%d\" , i + 1 ) ;\n speedmask |= port -> speedmask ;\n }\n if ( i < xhci -> numports_3 ) {\n if ( xhci_get_flag ( xhci , XHCI_FLAG_SS_FIRST ) ) {\n port = & xhci -> ports [ i ] ;\n port -> portnr = i + 1 ;\n }\n else {\n port = & xhci -> ports [ i + xhci -> numports_2 ] ;\n port -> portnr = i + 1 + xhci -> numports_2 ;\n }\n port -> uport = & xhci -> uports [ i ] ;\n port -> speedmask = USB_SPEED_MASK_SUPER ;\n snprintf ( port -> name , sizeof ( port -> name ) , \"usb3 port #%d\" , i + 1 ) ;\n speedmask |= port -> speedmask ;\n }\n usb_register_port ( & xhci -> bus , & xhci -> uports [ i ] , xhci , i , & xhci_uport_ops , speedmask ) ;\n }\n }"}
{"idx": 1660, "target": 0, "func": "void slurmctld_req ( slurm_msg_t * msg , connection_arg_t * arg ) {\n DEF_TIMERS ;\n int i , rpc_type_index = - 1 , rpc_user_index = - 1 ;\n uint32_t rpc_uid ;\n if ( arg && ( arg -> newsockfd >= 0 ) ) fd_set_nonblocking ( arg -> newsockfd ) ;\n # ifndef NDEBUG if ( ( msg -> flags & SLURM_DROP_PRIV ) ) drop_priv = true ;\n # endif rpc_uid = ( uint32_t ) g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n if ( g_slurm_auth_errno ( msg -> auth_cred ) != SLURM_SUCCESS ) {\n error ( \"Bad authentication: %s\" , g_slurm_auth_errstr ( g_slurm_auth_errno ( msg -> auth_cred ) ) ) ;\n return ;\n }\n slurm_mutex_lock ( & rpc_mutex ) ;\n if ( rpc_type_size == 0 ) {\n rpc_type_size = 100 ;\n rpc_type_id = xmalloc ( sizeof ( uint16_t ) * rpc_type_size ) ;\n rpc_type_cnt = xmalloc ( sizeof ( uint32_t ) * rpc_type_size ) ;\n rpc_type_time = xmalloc ( sizeof ( uint64_t ) * rpc_type_size ) ;\n }\n for ( i = 0 ;\n i < rpc_type_size ;\n i ++ ) {\n if ( rpc_type_id [ i ] == 0 ) rpc_type_id [ i ] = msg -> msg_type ;\n else if ( rpc_type_id [ i ] != msg -> msg_type ) continue ;\n rpc_type_index = i ;\n break ;\n }\n if ( rpc_user_size == 0 ) {\n rpc_user_size = 200 ;\n rpc_user_id = xmalloc ( sizeof ( uint32_t ) * rpc_user_size ) ;\n rpc_user_cnt = xmalloc ( sizeof ( uint32_t ) * rpc_user_size ) ;\n rpc_user_time = xmalloc ( sizeof ( uint64_t ) * rpc_user_size ) ;\n }\n for ( i = 0 ;\n i < rpc_user_size ;\n i ++ ) {\n if ( ( rpc_user_id [ i ] == 0 ) && ( i != 0 ) ) rpc_user_id [ i ] = rpc_uid ;\n else if ( rpc_user_id [ i ] != rpc_uid ) continue ;\n rpc_user_index = i ;\n break ;\n }\n slurm_mutex_unlock ( & rpc_mutex ) ;\n START_TIMER ;\n if ( slurmctld_conf . debug_flags & DEBUG_FLAG_PROTOCOL ) {\n char * p = rpc_num2string ( msg -> msg_type ) ;\n if ( msg -> conn ) {\n info ( \"%s: received opcode %s from persist conn on (%s)%s\" , __func__ , p , msg -> conn -> cluster_name , msg -> conn -> rem_host ) ;\n }\n else if ( arg ) {\n char inetbuf [ 64 ] ;\n slurm_print_slurm_addr ( & arg -> cli_addr , inetbuf , sizeof ( inetbuf ) ) ;\n info ( \"%s: received opcode %s from %s\" , __func__ , p , inetbuf ) ;\n }\n else {\n error ( \"%s: No arg given and this doesn't appear to be a persistent connection, this should never happen\" , __func__ ) ;\n }\n }\n switch ( msg -> msg_type ) {\n case REQUEST_RESOURCE_ALLOCATION : _slurm_rpc_allocate_resources ( msg ) ;\n break ;\n case REQUEST_JOB_PACK_ALLOCATION : _slurm_rpc_allocate_pack ( msg ) ;\n break ;\n case REQUEST_BUILD_INFO : _slurm_rpc_dump_conf ( msg ) ;\n break ;\n case REQUEST_JOB_INFO : _slurm_rpc_dump_jobs ( msg ) ;\n break ;\n case REQUEST_JOB_USER_INFO : _slurm_rpc_dump_jobs_user ( msg ) ;\n break ;\n case REQUEST_JOB_INFO_SINGLE : _slurm_rpc_dump_job_single ( msg ) ;\n break ;\n case REQUEST_BATCH_SCRIPT : _slurm_rpc_dump_batch_script ( msg ) ;\n break ;\n case REQUEST_SHARE_INFO : _slurm_rpc_get_shares ( msg ) ;\n break ;\n case REQUEST_PRIORITY_FACTORS : _slurm_rpc_get_priority_factors ( msg ) ;\n break ;\n case REQUEST_JOB_END_TIME : _slurm_rpc_end_time ( msg ) ;\n break ;\n case REQUEST_FED_INFO : _slurm_rpc_get_fed ( msg ) ;\n break ;\n case REQUEST_FRONT_END_INFO : _slurm_rpc_dump_front_end ( msg ) ;\n break ;\n case REQUEST_NODE_INFO : _slurm_rpc_dump_nodes ( msg ) ;\n break ;\n case REQUEST_NODE_INFO_SINGLE : _slurm_rpc_dump_node_single ( msg ) ;\n break ;\n case REQUEST_PARTITION_INFO : _slurm_rpc_dump_partitions ( msg ) ;\n break ;\n case MESSAGE_EPILOG_COMPLETE : i = 0 ;\n _slurm_rpc_epilog_complete ( msg , ( bool * ) & i , 0 ) ;\n break ;\n case REQUEST_CANCEL_JOB_STEP : _slurm_rpc_job_step_kill ( rpc_uid , msg ) ;\n break ;\n case REQUEST_COMPLETE_JOB_ALLOCATION : _slurm_rpc_complete_job_allocation ( msg ) ;\n break ;\n case REQUEST_COMPLETE_PROLOG : _slurm_rpc_complete_prolog ( msg ) ;\n break ;\n case REQUEST_COMPLETE_BATCH_JOB : case REQUEST_COMPLETE_BATCH_SCRIPT : i = 0 ;\n _slurm_rpc_complete_batch_script ( msg , ( bool * ) & i , 0 ) ;\n break ;\n case REQUEST_JOB_STEP_CREATE : _slurm_rpc_job_step_create ( msg ) ;\n break ;\n case REQUEST_JOB_STEP_INFO : _slurm_rpc_job_step_get_info ( msg ) ;\n break ;\n case REQUEST_JOB_WILL_RUN : _slurm_rpc_job_will_run ( msg ) ;\n break ;\n case REQUEST_SIB_JOB_LOCK : _slurm_rpc_sib_job_lock ( rpc_uid , msg ) ;\n break ;\n case REQUEST_SIB_JOB_UNLOCK : _slurm_rpc_sib_job_unlock ( rpc_uid , msg ) ;\n break ;\n case REQUEST_CTLD_MULT_MSG : _proc_multi_msg ( rpc_uid , msg ) ;\n break ;\n case MESSAGE_NODE_REGISTRATION_STATUS : _slurm_rpc_node_registration ( msg , 0 ) ;\n break ;\n case REQUEST_JOB_ALLOCATION_INFO : case DEFUNCT_REQUEST_JOB_ALLOCATION_INFO_LITE : _slurm_rpc_job_alloc_info ( msg ) ;\n break ;\n case REQUEST_JOB_PACK_ALLOC_INFO : _slurm_rpc_job_pack_alloc_info ( msg ) ;\n break ;\n case REQUEST_JOB_SBCAST_CRED : _slurm_rpc_job_sbcast_cred ( msg ) ;\n break ;\n case REQUEST_PING : _slurm_rpc_ping ( msg ) ;\n break ;\n case REQUEST_RECONFIGURE : _slurm_rpc_reconfigure_controller ( msg ) ;\n break ;\n case REQUEST_CONTROL : _slurm_rpc_shutdown_controller ( msg ) ;\n break ;\n case REQUEST_TAKEOVER : _slurm_rpc_takeover ( msg ) ;\n break ;\n case REQUEST_SHUTDOWN : _slurm_rpc_shutdown_controller ( msg ) ;\n break ;\n case REQUEST_SHUTDOWN_IMMEDIATE : _slurm_rpc_shutdown_controller_immediate ( msg ) ;\n break ;\n case REQUEST_SUBMIT_BATCH_JOB : _slurm_rpc_submit_batch_job ( msg ) ;\n break ;\n case REQUEST_SUBMIT_BATCH_JOB_PACK : _slurm_rpc_submit_batch_pack_job ( msg ) ;\n break ;\n case REQUEST_UPDATE_FRONT_END : _slurm_rpc_update_front_end ( msg ) ;\n break ;\n case REQUEST_UPDATE_JOB : _slurm_rpc_update_job ( msg ) ;\n break ;\n case REQUEST_UPDATE_NODE : _slurm_rpc_update_node ( msg ) ;\n break ;\n case REQUEST_UPDATE_LAYOUT : _slurm_rpc_update_layout ( msg ) ;\n break ;\n case REQUEST_CREATE_PARTITION : case REQUEST_UPDATE_PARTITION : _slurm_rpc_update_partition ( msg ) ;\n break ;\n case REQUEST_UPDATE_POWERCAP : _slurm_rpc_update_powercap ( msg ) ;\n break ;\n case REQUEST_DELETE_PARTITION : _slurm_rpc_delete_partition ( msg ) ;\n break ;\n case REQUEST_CREATE_RESERVATION : _slurm_rpc_resv_create ( msg ) ;\n break ;\n case REQUEST_UPDATE_RESERVATION : _slurm_rpc_resv_update ( msg ) ;\n break ;\n case REQUEST_DELETE_RESERVATION : _slurm_rpc_resv_delete ( msg ) ;\n break ;\n case REQUEST_UPDATE_BLOCK : _slurm_rpc_update_block ( msg ) ;\n break ;\n case REQUEST_RESERVATION_INFO : _slurm_rpc_resv_show ( msg ) ;\n break ;\n case REQUEST_LAYOUT_INFO : _slurm_rpc_layout_show ( msg ) ;\n break ;\n case REQUEST_NODE_REGISTRATION_STATUS : error ( \"slurmctld is talking with itself. \" \"SlurmctldPort == SlurmdPort\" ) ;\n slurm_send_rc_msg ( msg , EINVAL ) ;\n break ;\n case REQUEST_CHECKPOINT : _slurm_rpc_checkpoint ( msg ) ;\n break ;\n case REQUEST_CHECKPOINT_COMP : _slurm_rpc_checkpoint_comp ( msg ) ;\n break ;\n case REQUEST_CHECKPOINT_TASK_COMP : _slurm_rpc_checkpoint_task_comp ( msg ) ;\n break ;\n case REQUEST_SUSPEND : _slurm_rpc_suspend ( msg ) ;\n break ;\n case REQUEST_TOP_JOB : _slurm_rpc_top_job ( msg ) ;\n break ;\n case REQUEST_JOB_REQUEUE : _slurm_rpc_requeue ( msg ) ;\n break ;\n case REQUEST_JOB_READY : _slurm_rpc_job_ready ( msg ) ;\n break ;\n case REQUEST_BLOCK_INFO : _slurm_rpc_block_info ( msg ) ;\n break ;\n case REQUEST_BURST_BUFFER_INFO : _slurm_rpc_burst_buffer_info ( msg ) ;\n break ;\n case REQUEST_STEP_COMPLETE : _slurm_rpc_step_complete ( msg , 0 ) ;\n break ;\n case REQUEST_STEP_LAYOUT : _slurm_rpc_step_layout ( msg ) ;\n break ;\n case REQUEST_UPDATE_JOB_STEP : _slurm_rpc_step_update ( msg ) ;\n break ;\n case REQUEST_TRIGGER_SET : _slurm_rpc_trigger_set ( msg ) ;\n break ;\n case REQUEST_TRIGGER_GET : _slurm_rpc_trigger_get ( msg ) ;\n break ;\n case REQUEST_TRIGGER_CLEAR : _slurm_rpc_trigger_clear ( msg ) ;\n break ;\n case REQUEST_TRIGGER_PULL : _slurm_rpc_trigger_pull ( msg ) ;\n break ;\n case REQUEST_JOB_NOTIFY : _slurm_rpc_job_notify ( msg ) ;\n break ;\n case REQUEST_SET_DEBUG_FLAGS : _slurm_rpc_set_debug_flags ( msg ) ;\n break ;\n case REQUEST_SET_DEBUG_LEVEL : _slurm_rpc_set_debug_level ( msg ) ;\n break ;\n case REQUEST_SET_SCHEDLOG_LEVEL : _slurm_rpc_set_schedlog_level ( msg ) ;\n break ;\n case ACCOUNTING_UPDATE_MSG : _slurm_rpc_accounting_update_msg ( msg ) ;\n break ;\n case ACCOUNTING_FIRST_REG : _slurm_rpc_accounting_first_reg ( msg ) ;\n break ;\n case ACCOUNTING_REGISTER_CTLD : _slurm_rpc_accounting_register_ctld ( msg ) ;\n break ;\n case REQUEST_TOPO_INFO : _slurm_rpc_get_topo ( msg ) ;\n break ;\n case REQUEST_POWERCAP_INFO : _slurm_rpc_get_powercap ( msg ) ;\n break ;\n case REQUEST_SPANK_ENVIRONMENT : _slurm_rpc_dump_spank ( msg ) ;\n break ;\n case REQUEST_REBOOT_NODES : _slurm_rpc_reboot_nodes ( msg ) ;\n break ;\n case REQUEST_STATS_INFO : _slurm_rpc_dump_stats ( msg ) ;\n break ;\n case REQUEST_LICENSE_INFO : _slurm_rpc_dump_licenses ( msg ) ;\n break ;\n case REQUEST_KILL_JOB : _slurm_rpc_kill_job ( msg ) ;\n break ;\n case MESSAGE_COMPOSITE : _slurm_rpc_composite_msg ( msg ) ;\n break ;\n case REQUEST_ASSOC_MGR_INFO : _slurm_rpc_assoc_mgr_info ( msg ) ;\n break ;\n case REQUEST_PERSIST_INIT : if ( msg -> conn ) error ( \"We already have a persistent connect, this should never happen\" ) ;\n _slurm_rpc_persist_init ( msg , arg ) ;\n break ;\n case REQUEST_EVENT_LOG : _slurm_rpc_event_log ( msg ) ;\n break ;\n case REQUEST_SET_FS_DAMPENING_FACTOR : _slurm_rpc_set_fs_dampening_factor ( msg ) ;\n break ;\n default : error ( \"invalid RPC msg_type=%u\" , msg -> msg_type ) ;\n slurm_send_rc_msg ( msg , EINVAL ) ;\n break ;\n }\n END_TIMER ;\n slurm_mutex_lock ( & rpc_mutex ) ;\n if ( rpc_type_index >= 0 ) {\n rpc_type_cnt [ rpc_type_index ] ++ ;\n rpc_type_time [ rpc_type_index ] += DELTA_TIMER ;\n }\n if ( rpc_user_index >= 0 ) {\n rpc_user_cnt [ rpc_user_index ] ++ ;\n rpc_user_time [ rpc_user_index ] += DELTA_TIMER ;\n }\n slurm_mutex_unlock ( & rpc_mutex ) ;\n }"}
{"idx": 1661, "target": 0, "func": "static int dissect_h245_RequestChannelCloseRejectCause ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_RequestChannelCloseRejectCause , RequestChannelCloseRejectCause_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 1662, "target": 1, "func": "void vp9_print_modes_and_motion_vectors ( VP9_COMMON * cm , const char * file ) {\n int mi_row ;\n int mi_col ;\n int mi_index = 0 ;\n FILE * mvs = fopen ( file , \"a\" ) ;\n MODE_INFO * * mi = cm -> mi_grid_visible ;\n int rows = cm -> mi_rows ;\n int cols = cm -> mi_cols ;\n print_mi_data ( cm , mvs , \"Partitions:\" , offsetof ( MB_MODE_INFO , sb_type ) ) ;\n print_mi_data ( cm , mvs , \"Modes:\" , offsetof ( MB_MODE_INFO , mode ) ) ;\n print_mi_data ( cm , mvs , \"Skips:\" , offsetof ( MB_MODE_INFO , skip ) ) ;\n print_mi_data ( cm , mvs , \"Ref frame:\" , offsetof ( MB_MODE_INFO , ref_frame [ 0 ] ) ) ;\n print_mi_data ( cm , mvs , \"Transform:\" , offsetof ( MB_MODE_INFO , tx_size ) ) ;\n print_mi_data ( cm , mvs , \"UV Modes:\" , offsetof ( MB_MODE_INFO , uv_mode ) ) ;\n log_frame_info ( cm , \"Vectors \" , mvs ) ;\n for ( mi_row = 0 ;\n mi_row < rows ;\n mi_row ++ ) {\n fprintf ( mvs , \"V \" ) ;\n for ( mi_col = 0 ;\n mi_col < cols ;\n mi_col ++ ) {\n fprintf ( mvs , \"%4d:%4d \" , mi [ mi_index ] -> mbmi . mv [ 0 ] . as_mv . row , mi [ mi_index ] -> mbmi . mv [ 0 ] . as_mv . col ) ;\n mi_index ++ ;\n }\n fprintf ( mvs , \"\\n\" ) ;\n mi_index += 8 ;\n }\n fprintf ( mvs , \"\\n\" ) ;\n fclose ( mvs ) ;\n }"}
{"idx": 1663, "target": 0, "func": "static size_t mbsnbytes ( const void * _p , size_t n ) {\n size_t s ;\n const char * p , * pp ;\n if ( _p == NULL ) return ( 0 ) ;\n p = ( const char * ) _p ;\n s = 0 ;\n pp = p ;\n while ( s < n && * pp ) {\n pp ++ ;\n s ++ ;\n }\n return ( s ) ;\n }"}
{"idx": 1664, "target": 0, "func": "void fe_channels_init ( void ) {\n settings_add_bool ( \"lookandfeel\" , \"autoclose_windows\" , TRUE ) ;\n settings_add_bool ( \"lookandfeel\" , \"show_names_on_join\" , TRUE ) ;\n settings_add_int ( \"lookandfeel\" , \"names_max_columns\" , 6 ) ;\n settings_add_int ( \"lookandfeel\" , \"names_max_width\" , 0 ) ;\n signal_add ( \"channel created\" , ( SIGNAL_FUNC ) signal_channel_created ) ;\n signal_add ( \"channel destroyed\" , ( SIGNAL_FUNC ) signal_channel_destroyed ) ;\n signal_add_last ( \"window item changed\" , ( SIGNAL_FUNC ) signal_window_item_changed ) ;\n signal_add_last ( \"server disconnected\" , ( SIGNAL_FUNC ) sig_disconnected ) ;\n signal_add_last ( \"channel joined\" , ( SIGNAL_FUNC ) sig_channel_joined ) ;\n command_bind ( \"join\" , NULL , ( SIGNAL_FUNC ) cmd_join ) ;\n command_bind ( \"channel\" , NULL , ( SIGNAL_FUNC ) cmd_channel ) ;\n command_bind ( \"channel add\" , NULL , ( SIGNAL_FUNC ) cmd_channel_add ) ;\n command_bind ( \"channel modify\" , NULL , ( SIGNAL_FUNC ) cmd_channel_modify ) ;\n command_bind ( \"channel remove\" , NULL , ( SIGNAL_FUNC ) cmd_channel_remove ) ;\n command_bind ( \"channel list\" , NULL , ( SIGNAL_FUNC ) cmd_channel_list ) ;\n command_bind ( \"names\" , NULL , ( SIGNAL_FUNC ) cmd_names ) ;\n command_bind ( \"cycle\" , NULL , ( SIGNAL_FUNC ) cmd_cycle ) ;\n command_set_options ( \"channel add\" , \"auto noauto -bots -botcmd\" ) ;\n command_set_options ( \"channel modify\" , \"auto noauto -bots -botcmd\" ) ;\n command_set_options ( \"names\" , \"count ops halfops voices normal\" ) ;\n command_set_options ( \"join\" , \"invite window\" ) ;\n }"}
{"idx": 1665, "target": 0, "func": "static void test_bug41078 ( void ) {\n uint rc ;\n MYSQL_STMT * stmt = 0 ;\n MYSQL_BIND param , result ;\n ulong cursor_type = CURSOR_TYPE_READ_ONLY ;\n ulong len ;\n char str [ 64 ] ;\n const char param_str [ ] = \"abcdefghijklmn\" ;\n my_bool is_null , error ;\n DBUG_ENTER ( \"test_bug41078\" ) ;\n rc = mysql_query ( mysql , \"SET NAMES UTF8\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT ?\" ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 1 ) ;\n rc = mysql_stmt_attr_set ( stmt , STMT_ATTR_CURSOR_TYPE , & cursor_type ) ;\n check_execute ( stmt , rc ) ;\n memset ( & param , 0 , sizeof ( param ) ) ;\n param . buffer_type = MYSQL_TYPE_STRING ;\n param . buffer = ( void * ) param_str ;\n len = sizeof ( param_str ) - 1 ;\n param . length = & len ;\n rc = mysql_stmt_bind_param ( stmt , & param ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n memset ( & result , 0 , sizeof ( result ) ) ;\n result . buffer_type = MYSQL_TYPE_STRING ;\n result . buffer = str ;\n result . buffer_length = sizeof ( str ) ;\n result . is_null = & is_null ;\n result . length = & len ;\n result . error = & error ;\n rc = mysql_stmt_bind_result ( stmt , & result ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_store_result ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n DIE_UNLESS ( len == sizeof ( param_str ) - 1 && ! strcmp ( str , param_str ) ) ;\n mysql_stmt_close ( stmt ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 1666, "target": 0, "func": "void vp9_idct4x4_1_add_sse2 ( const int16_t * input , uint8_t * dest , int stride ) {\n __m128i dc_value ;\n const __m128i zero = _mm_setzero_si128 ( ) ;\n int a ;\n a = dct_const_round_shift ( input [ 0 ] * cospi_16_64 ) ;\n a = dct_const_round_shift ( a * cospi_16_64 ) ;\n a = ROUND_POWER_OF_TWO ( a , 4 ) ;\n dc_value = _mm_set1_epi16 ( a ) ;\n RECON_AND_STORE4X4 ( dest , dc_value ) ;\n RECON_AND_STORE4X4 ( dest , dc_value ) ;\n RECON_AND_STORE4X4 ( dest , dc_value ) ;\n RECON_AND_STORE4X4 ( dest , dc_value ) ;\n }"}
{"idx": 1667, "target": 0, "func": "static int is_background ( const VP9_COMP * cpi , const TileInfo * const tile , int mi_row , int mi_col ) {\n const int row8x8_remaining = tile -> mi_row_end - mi_row ;\n const int col8x8_remaining = tile -> mi_col_end - mi_col ;\n const int x = mi_col * MI_SIZE ;\n const int y = mi_row * MI_SIZE ;\n const int src_stride = cpi -> Source -> y_stride ;\n const uint8_t * const src = & cpi -> Source -> y_buffer [ y * src_stride + x ] ;\n const int pre_stride = cpi -> Last_Source -> y_stride ;\n const uint8_t * const pre = & cpi -> Last_Source -> y_buffer [ y * pre_stride + x ] ;\n int this_sad = 0 ;\n int threshold = 0 ;\n if ( row8x8_remaining >= MI_BLOCK_SIZE && col8x8_remaining >= MI_BLOCK_SIZE ) {\n this_sad = cpi -> fn_ptr [ BLOCK_64X64 ] . sdf ( src , src_stride , pre , pre_stride ) ;\n threshold = ( 1 << 12 ) ;\n }\n else {\n int r , c ;\n for ( r = 0 ;\n r < row8x8_remaining ;\n r += 2 ) for ( c = 0 ;\n c < col8x8_remaining ;\n c += 2 ) this_sad += cpi -> fn_ptr [ BLOCK_16X16 ] . sdf ( src , src_stride , pre , pre_stride ) ;\n threshold = ( row8x8_remaining * col8x8_remaining ) << 6 ;\n }\n return this_sad < 2 * threshold ;\n }"}
{"idx": 1668, "target": 0, "func": "static int mi_collect_stats_nonulls_next ( HA_KEYSEG * keyseg , ulonglong * notnull , uchar * prev_key , uchar * last_key ) {\n uint diffs [ 2 ] ;\n uint first_null_seg , kp ;\n HA_KEYSEG * seg ;\n ha_key_cmp ( keyseg , prev_key , last_key , USE_WHOLE_KEY , SEARCH_FIND | SEARCH_NULL_ARE_NOT_EQUAL , diffs ) ;\n seg = keyseg + diffs [ 0 ] - 1 ;\n first_null_seg = ( uint ) ( ha_find_null ( seg , last_key + diffs [ 1 ] ) - keyseg ) ;\n for ( kp = 0 ;\n kp < first_null_seg ;\n kp ++ ) notnull [ kp ] ++ ;\n return diffs [ 0 ] ;\n }"}
{"idx": 1669, "target": 0, "func": "static ulong get_access ( TABLE * form , uint fieldnr , uint * next_field ) {\n ulong access_bits = 0 , bit ;\n char buff [ 2 ] ;\n String res ( buff , sizeof ( buff ) , & my_charset_latin1 ) ;\n Field * * pos ;\n for ( pos = form -> field + fieldnr , bit = 1 ;\n * pos && ( * pos ) -> real_type ( ) == MYSQL_TYPE_ENUM && ( ( Field_enum * ) ( * pos ) ) -> typelib -> count == 2 ;\n pos ++ , fieldnr ++ , bit <<= 1 ) {\n ( * pos ) -> val_str ( & res ) ;\n if ( my_toupper ( & my_charset_latin1 , res [ 0 ] ) == 'Y' ) access_bits |= bit ;\n }\n if ( next_field ) * next_field = fieldnr ;\n return access_bits ;\n }"}
{"idx": 1670, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( SingleClientSessionsSyncTest , ResponseCodeIsPreserved ) {\n ASSERT_TRUE ( SetupSync ( ) ) << \"SetupSync() failed.\" ;\n ASSERT_TRUE ( CheckInitialState ( 0 ) ) ;\n const GURL url ( \"data:text/html,<html><title>Test</title></html>\" ) ;\n ScopedWindowMap windows ;\n ASSERT_TRUE ( OpenTabAndGetLocalWindows ( 0 , url , windows . GetMutable ( ) ) ) ;\n int found_navigations = 0 ;\n for ( SessionWindowMap : : const_iterator it = windows . Get ( ) -> begin ( ) ;\n it != windows . Get ( ) -> end ( ) ;\n ++ it ) {\n for ( std : : vector < sessions : : SessionTab * > : : const_iterator it2 = it -> second -> tabs . begin ( ) ;\n it2 != it -> second -> tabs . end ( ) ;\n ++ it2 ) {\n for ( std : : vector < sessions : : SerializedNavigationEntry > : : const_iterator it3 = ( * it2 ) -> navigations . begin ( ) ;\n it3 != ( * it2 ) -> navigations . end ( ) ;\n ++ it3 ) {\n EXPECT_EQ ( 200 , it3 -> http_status_code ( ) ) ;\n ++ found_navigations ;\n }\n }\n }\n ASSERT_EQ ( 1 , found_navigations ) ;\n }"}
{"idx": 1671, "target": 0, "func": "static void evbuffer_align ( struct evbuffer * buf ) {\n memmove ( buf -> orig_buffer , buf -> buffer , buf -> off ) ;\n buf -> buffer = buf -> orig_buffer ;\n buf -> misalign = 0 ;\n }"}
{"idx": 1672, "target": 0, "func": "static void postfilter ( QCELPContext * q , float * samples , float * lpc ) {\n static const float pow_0_775 [ 10 ] = {\n 0.775000 , 0.600625 , 0.465484 , 0.360750 , 0.279582 , 0.216676 , 0.167924 , 0.130141 , 0.100859 , 0.078166 }\n , pow_0_625 [ 10 ] = {\n 0.625000 , 0.390625 , 0.244141 , 0.152588 , 0.095367 , 0.059605 , 0.037253 , 0.023283 , 0.014552 , 0.009095 }\n ;\n float lpc_s [ 10 ] , lpc_p [ 10 ] , pole_out [ 170 ] , zero_out [ 160 ] ;\n int n ;\n for ( n = 0 ;\n n < 10 ;\n n ++ ) {\n lpc_s [ n ] = lpc [ n ] * pow_0_625 [ n ] ;\n lpc_p [ n ] = lpc [ n ] * pow_0_775 [ n ] ;\n }\n ff_celp_lp_zero_synthesis_filterf ( zero_out , lpc_s , q -> formant_mem + 10 , 160 , 10 ) ;\n memcpy ( pole_out , q -> postfilter_synth_mem , sizeof ( float ) * 10 ) ;\n ff_celp_lp_synthesis_filterf ( pole_out + 10 , lpc_p , zero_out , 160 , 10 ) ;\n memcpy ( q -> postfilter_synth_mem , pole_out + 160 , sizeof ( float ) * 10 ) ;\n ff_tilt_compensation ( & q -> postfilter_tilt_mem , 0.3 , pole_out + 10 , 160 ) ;\n ff_adaptive_gain_control ( samples , pole_out + 10 , avpriv_scalarproduct_float_c ( q -> formant_mem + 10 , q -> formant_mem + 10 , 160 ) , 160 , 0.9375 , & q -> postfilter_agc_mem ) ;\n }"}
{"idx": 1673, "target": 1, "func": "static int dissect_spoolss_uint16uni ( tvbuff_t * tvb , int offset , packet_info * pinfo _U_ , proto_tree * tree , guint8 * drep _U_ , char * * data , int hf_name ) {\n gint len , remaining ;\n char * text ;\n if ( offset % 2 ) offset += 2 - ( offset % 2 ) ;\n remaining = tvb_captured_length_remaining ( tvb , offset ) ;\n if ( remaining <= 0 ) {\n if ( data ) * data = g_strdup ( \"\" ) ;\n return offset ;\n }\n text = tvb_get_string_enc ( NULL , tvb , offset , remaining , ENC_UTF_16 | ENC_LITTLE_ENDIAN ) ;\n len = ( int ) strlen ( text ) ;\n proto_tree_add_string ( tree , hf_name , tvb , offset , len * 2 , text ) ;\n if ( data ) * data = text ;\n else g_free ( text ) ;\n return offset + ( len + 1 ) * 2 ;\n }"}
{"idx": 1674, "target": 0, "func": "static int phar_tar_writeheaders ( void * pDest , void * argument TSRMLS_DC ) {\n tar_header header ;\n size_t pos ;\n phar_entry_info * entry = ( phar_entry_info * ) pDest ;\n struct _phar_pass_tar_info * fp = ( struct _phar_pass_tar_info * ) argument ;\n char padding [ 512 ] ;\n if ( entry -> is_mounted ) {\n return ZEND_HASH_APPLY_KEEP ;\n }\n if ( entry -> is_deleted ) {\n if ( entry -> fp_refcount <= 0 ) {\n return ZEND_HASH_APPLY_REMOVE ;\n }\n else {\n return ZEND_HASH_APPLY_KEEP ;\n }\n }\n phar_add_virtual_dirs ( entry -> phar , entry -> filename , entry -> filename_len TSRMLS_CC ) ;\n memset ( ( char * ) & header , 0 , sizeof ( header ) ) ;\n if ( entry -> filename_len > 100 ) {\n char * boundary ;\n if ( entry -> filename_len > 256 ) {\n if ( fp -> error ) {\n spprintf ( fp -> error , 4096 , \"tar-based phar \\\"%s\\\" cannot be created, filename \\\"%s\\\" is too long for tar file format\" , entry -> phar -> fname , entry -> filename ) ;\n }\n return ZEND_HASH_APPLY_STOP ;\n }\n boundary = entry -> filename + entry -> filename_len - 101 ;\n while ( * boundary && * boundary != '/' ) {\n ++ boundary ;\n }\n if ( ! * boundary || ( ( boundary - entry -> filename ) > 155 ) ) {\n if ( fp -> error ) {\n spprintf ( fp -> error , 4096 , \"tar-based phar \\\"%s\\\" cannot be created, filename \\\"%s\\\" is too long for tar file format\" , entry -> phar -> fname , entry -> filename ) ;\n }\n return ZEND_HASH_APPLY_STOP ;\n }\n memcpy ( header . prefix , entry -> filename , boundary - entry -> filename ) ;\n memcpy ( header . name , boundary + 1 , entry -> filename_len - ( boundary + 1 - entry -> filename ) ) ;\n }\n else {\n memcpy ( header . name , entry -> filename , entry -> filename_len ) ;\n }\n phar_tar_octal ( header . mode , entry -> flags & PHAR_ENT_PERM_MASK , sizeof ( header . mode ) - 1 ) ;\n if ( FAILURE == phar_tar_octal ( header . size , entry -> uncompressed_filesize , sizeof ( header . size ) - 1 ) ) {\n if ( fp -> error ) {\n spprintf ( fp -> error , 4096 , \"tar-based phar \\\"%s\\\" cannot be created, filename \\\"%s\\\" is too large for tar file format\" , entry -> phar -> fname , entry -> filename ) ;\n }\n return ZEND_HASH_APPLY_STOP ;\n }\n if ( FAILURE == phar_tar_octal ( header . mtime , entry -> timestamp , sizeof ( header . mtime ) - 1 ) ) {\n if ( fp -> error ) {\n spprintf ( fp -> error , 4096 , \"tar-based phar \\\"%s\\\" cannot be created, file modification time of file \\\"%s\\\" is too large for tar file format\" , entry -> phar -> fname , entry -> filename ) ;\n }\n return ZEND_HASH_APPLY_STOP ;\n }\n header . typeflag = entry -> tar_type ;\n if ( entry -> link ) {\n strncpy ( header . linkname , entry -> link , strlen ( entry -> link ) ) ;\n }\n strncpy ( header . magic , \"ustar\" , sizeof ( \"ustar\" ) - 1 ) ;\n strncpy ( header . version , \"00\" , sizeof ( \"00\" ) - 1 ) ;\n strncpy ( header . checksum , \" \" , sizeof ( \" \" ) - 1 ) ;\n entry -> crc32 = phar_tar_checksum ( ( char * ) & header , sizeof ( header ) ) ;\n if ( FAILURE == phar_tar_octal ( header . checksum , entry -> crc32 , sizeof ( header . checksum ) - 1 ) ) {\n if ( fp -> error ) {\n spprintf ( fp -> error , 4096 , \"tar-based phar \\\"%s\\\" cannot be created, checksum of file \\\"%s\\\" is too large for tar file format\" , entry -> phar -> fname , entry -> filename ) ;\n }\n return ZEND_HASH_APPLY_STOP ;\n }\n entry -> header_offset = php_stream_tell ( fp -> new ) ;\n if ( sizeof ( header ) != php_stream_write ( fp -> new , ( char * ) & header , sizeof ( header ) ) ) {\n if ( fp -> error ) {\n spprintf ( fp -> error , 4096 , \"tar-based phar \\\"%s\\\" cannot be created, header for file \\\"%s\\\" could not be written\" , entry -> phar -> fname , entry -> filename ) ;\n }\n return ZEND_HASH_APPLY_STOP ;\n }\n pos = php_stream_tell ( fp -> new ) ;\n if ( entry -> uncompressed_filesize ) {\n if ( FAILURE == phar_open_entry_fp ( entry , fp -> error , 0 TSRMLS_CC ) ) {\n return ZEND_HASH_APPLY_STOP ;\n }\n if ( - 1 == phar_seek_efp ( entry , 0 , SEEK_SET , 0 , 0 TSRMLS_CC ) ) {\n if ( fp -> error ) {\n spprintf ( fp -> error , 4096 , \"tar-based phar \\\"%s\\\" cannot be created, contents of file \\\"%s\\\" could not be written, seek failed\" , entry -> phar -> fname , entry -> filename ) ;\n }\n return ZEND_HASH_APPLY_STOP ;\n }\n if ( SUCCESS != phar_stream_copy_to_stream ( phar_get_efp ( entry , 0 TSRMLS_CC ) , fp -> new , entry -> uncompressed_filesize , NULL ) ) {\n if ( fp -> error ) {\n spprintf ( fp -> error , 4096 , \"tar-based phar \\\"%s\\\" cannot be created, contents of file \\\"%s\\\" could not be written\" , entry -> phar -> fname , entry -> filename ) ;\n }\n return ZEND_HASH_APPLY_STOP ;\n }\n memset ( padding , 0 , 512 ) ;\n php_stream_write ( fp -> new , padding , ( ( entry -> uncompressed_filesize + 511 ) & ~ 511 ) - entry -> uncompressed_filesize ) ;\n }\n if ( ! entry -> is_modified && entry -> fp_refcount ) {\n switch ( entry -> fp_type ) {\n case PHAR_FP : fp -> free_fp = 0 ;\n break ;\n case PHAR_UFP : fp -> free_ufp = 0 ;\n default : break ;\n }\n }\n entry -> is_modified = 0 ;\n if ( entry -> fp_type == PHAR_MOD && entry -> fp != entry -> phar -> fp && entry -> fp != entry -> phar -> ufp ) {\n if ( ! entry -> fp_refcount ) {\n php_stream_close ( entry -> fp ) ;\n }\n entry -> fp = NULL ;\n }\n entry -> fp_type = PHAR_FP ;\n entry -> offset = entry -> offset_abs = pos ;\n return ZEND_HASH_APPLY_KEEP ;\n }"}
{"idx": 1675, "target": 0, "func": "REGRESSION_TEST ( SDK_API_TSTextLog ) ( RegressionTest * test , int , int * pstatus ) {\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n TSTextLogObject log ;\n TSReturnCode retVal ;\n char logname [ PATH_NAME_MAX ] ;\n char fullpath_logname [ PATH_NAME_MAX ] ;\n ats_scoped_str tmp ( RecConfigReadLogDir ( ) ) ;\n snprintf ( logname , sizeof ( logname ) , \"RegressionTestLog%d.log\" , ( int ) getpid ( ) ) ;\n snprintf ( fullpath_logname , sizeof ( fullpath_logname ) , \"%s/%s\" , ( const char * ) tmp , logname ) ;\n unlink ( fullpath_logname ) ;\n retVal = TSTextLogObjectCreate ( logname , TS_LOG_MODE_ADD_TIMESTAMP , & log ) ;\n if ( retVal != TS_SUCCESS ) {\n SDK_RPRINT ( test , \"TSTextLogObjectCreate\" , \"TestCase1\" , TC_FAIL , \"can not create log object\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n return ;\n }\n else {\n SDK_RPRINT ( test , \"TSTextLogObjectCreate\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n retVal = TSTextLogObjectWrite ( log , ( char * ) LOG_TEST_PATTERN ) ;\n if ( retVal != TS_SUCCESS ) {\n SDK_RPRINT ( test , \"TSTextLogObjectWrite\" , \"TestCase1\" , TC_FAIL , \"can not write to log object\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n return ;\n }\n else {\n SDK_RPRINT ( test , \"TSTextLogObjectWrite\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n TSTextLogObjectFlush ( log ) ;\n SDK_RPRINT ( test , \"TSTextLogObjectFlush\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n TSCont log_test_cont = TSContCreate ( log_test_handler , TSMutexCreate ( ) ) ;\n LogTestData * data = ( LogTestData * ) TSmalloc ( sizeof ( LogTestData ) ) ;\n data -> test = test ;\n data -> pstatus = pstatus ;\n data -> fullpath_logname = TSstrdup ( fullpath_logname ) ;\n data -> magic = MAGIC_ALIVE ;\n data -> log = log ;\n TSContDataSet ( log_test_cont , data ) ;\n TSContSchedule ( log_test_cont , 6000 , TS_THREAD_POOL_DEFAULT ) ;\n return ;\n }"}
{"idx": 1676, "target": 0, "func": "int nntp_post ( const char * msg ) {\n struct NntpData * nntp_data , nntp_tmp ;\n char buf [ LONG_STRING ] ;\n if ( Context && Context -> magic == MUTT_NNTP ) nntp_data = Context -> data ;\n else {\n CurrentNewsSrv = nntp_select_server ( NewsServer , false ) ;\n if ( ! CurrentNewsSrv ) return - 1 ;\n nntp_data = & nntp_tmp ;\n nntp_data -> nserv = CurrentNewsSrv ;\n nntp_data -> group = NULL ;\n }\n FILE * fp = mutt_file_fopen ( msg , \"r\" ) ;\n if ( ! fp ) {\n mutt_perror ( msg ) ;\n return - 1 ;\n }\n mutt_str_strfcpy ( buf , \"POST\\r\\n\" , sizeof ( buf ) ) ;\n if ( nntp_query ( nntp_data , buf , sizeof ( buf ) ) < 0 ) {\n mutt_file_fclose ( & fp ) ;\n return - 1 ;\n }\n if ( buf [ 0 ] != '3' ) {\n mutt_error ( _ ( \"Can't post article: %s\" ) , buf ) ;\n mutt_file_fclose ( & fp ) ;\n return - 1 ;\n }\n buf [ 0 ] = '.' ;\n buf [ 1 ] = '\\0' ;\n while ( fgets ( buf + 1 , sizeof ( buf ) - 2 , fp ) ) {\n size_t len = strlen ( buf ) ;\n if ( buf [ len - 1 ] == '\\n' ) {\n buf [ len - 1 ] = '\\r' ;\n buf [ len ] = '\\n' ;\n len ++ ;\n buf [ len ] = '\\0' ;\n }\n if ( mutt_socket_send_d ( nntp_data -> nserv -> conn , buf [ 1 ] == '.' ? buf : buf + 1 , MUTT_SOCK_LOG_HDR ) < 0 ) {\n mutt_file_fclose ( & fp ) ;\n return nntp_connect_error ( nntp_data -> nserv ) ;\n }\n }\n mutt_file_fclose ( & fp ) ;\n if ( ( buf [ strlen ( buf ) - 1 ] != '\\n' && mutt_socket_send_d ( nntp_data -> nserv -> conn , \"\\r\\n\" , MUTT_SOCK_LOG_HDR ) < 0 ) || mutt_socket_send_d ( nntp_data -> nserv -> conn , \".\\r\\n\" , MUTT_SOCK_LOG_HDR ) < 0 || mutt_socket_readln ( buf , sizeof ( buf ) , nntp_data -> nserv -> conn ) < 0 ) {\n return nntp_connect_error ( nntp_data -> nserv ) ;\n }\n if ( buf [ 0 ] != '2' ) {\n mutt_error ( _ ( \"Can't post article: %s\" ) , buf ) ;\n return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 1677, "target": 0, "func": "void TSVConnActiveTimeoutCancel ( TSVConn connp ) {\n sdk_assert ( sdk_sanity_check_iocore_structure ( connp ) == TS_SUCCESS ) ;\n NetVConnection * vc = ( NetVConnection * ) connp ;\n vc -> cancel_active_timeout ( ) ;\n }"}
{"idx": 1678, "target": 0, "func": "static void thumbnail_cancel ( NautilusDirectory * directory ) {\n if ( directory -> details -> thumbnail_state != NULL ) {\n g_cancellable_cancel ( directory -> details -> thumbnail_state -> cancellable ) ;\n directory -> details -> thumbnail_state -> directory = NULL ;\n directory -> details -> thumbnail_state = NULL ;\n async_job_end ( directory , \"thumbnail\" ) ;\n }\n }"}
{"idx": 1679, "target": 0, "func": "void virLogMessage ( virLogSourcePtr source , virLogPriority priority , const char * filename , int linenr , const char * funcname , virLogMetadataPtr metadata , const char * fmt , ... ) {\n va_list ap ;\n va_start ( ap , fmt ) ;\n virLogVMessage ( source , priority , filename , linenr , funcname , metadata , fmt , ap ) ;\n va_end ( ap ) ;\n }"}
{"idx": 1680, "target": 0, "func": "static int file_read ( void * buf , size_t size , FILE * file ) {\n const int kMaxRetries = 5 ;\n int retry_count = 0 ;\n int file_error ;\n size_t len = 0 ;\n do {\n const size_t n = fread ( ( uint8_t * ) buf + len , 1 , size - len , file ) ;\n len += n ;\n file_error = ferror ( file ) ;\n if ( file_error ) {\n if ( errno == EINTR || errno == EAGAIN ) {\n clearerr ( file ) ;\n continue ;\n }\n else {\n fprintf ( stderr , \"Error reading file: %u of %u bytes read, %d: %s\\n\" , ( uint32_t ) len , ( uint32_t ) size , errno , strerror ( errno ) ) ;\n return 0 ;\n }\n }\n }\n while ( ! feof ( file ) && len < size && ++ retry_count < kMaxRetries ) ;\n if ( ! feof ( file ) && len != size ) {\n fprintf ( stderr , \"Error reading file: %u of %u bytes read,\" \" error: %d, retries: %d, %d: %s\\n\" , ( uint32_t ) len , ( uint32_t ) size , file_error , retry_count , errno , strerror ( errno ) ) ;\n }\n return len == size ;\n }"}
{"idx": 1681, "target": 0, "func": "TEST_F ( UsbBlocklistTest , StringsWithNoValidEntries ) {\n SetDynamicBlocklist ( \"\" ) ;\n EXPECT_EQ ( 0u , list ( ) . GetDynamicEntryCountForTest ( ) ) ;\n SetDynamicBlocklist ( \"~!@#$%^&*()-_=+[]{\n}\n/*-\" ) ;\n EXPECT_EQ ( 0u , list ( ) . GetDynamicEntryCountForTest ( ) ) ;\n SetDynamicBlocklist ( \":\" ) ;\n EXPECT_EQ ( 0u , list ( ) . GetDynamicEntryCountForTest ( ) ) ;\n SetDynamicBlocklist ( \"::\" ) ;\n EXPECT_EQ ( 0u , list ( ) . GetDynamicEntryCountForTest ( ) ) ;\n SetDynamicBlocklist ( \",\" ) ;\n EXPECT_EQ ( 0u , list ( ) . GetDynamicEntryCountForTest ( ) ) ;\n SetDynamicBlocklist ( \",,\" ) ;\n EXPECT_EQ ( 0u , list ( ) . GetDynamicEntryCountForTest ( ) ) ;\n SetDynamicBlocklist ( \",::,\" ) ;\n EXPECT_EQ ( 0u , list ( ) . GetDynamicEntryCountForTest ( ) ) ;\n SetDynamicBlocklist ( \"1:2:3\" ) ;\n EXPECT_EQ ( 0u , list ( ) . GetDynamicEntryCountForTest ( ) ) ;\n SetDynamicBlocklist ( \"18D1:2:3000\" ) ;\n EXPECT_EQ ( 0u , list ( ) . GetDynamicEntryCountForTest ( ) ) ;\n SetDynamicBlocklist ( \"0000:0x00:0000\" ) ;\n EXPECT_EQ ( 0u , list ( ) . GetDynamicEntryCountForTest ( ) ) ;\n SetDynamicBlocklist ( \"0000: 0:0000\" ) ;\n EXPECT_EQ ( 0u , list ( ) . GetDynamicEntryCountForTest ( ) ) ;\n SetDynamicBlocklist ( \"000g:0000:0000\" ) ;\n EXPECT_EQ ( 0u , list ( ) . GetDynamicEntryCountForTest ( ) ) ;\n SetDynamicBlocklist ( \"\u262f\" ) ;\n EXPECT_EQ ( 0u , list ( ) . GetDynamicEntryCountForTest ( ) ) ;\n }"}
{"idx": 1682, "target": 0, "func": "static void lower_mv_precision ( MV * mv , int allow_hp ) {\n const int use_hp = allow_hp && vp9_use_mv_hp ( mv ) ;\n if ( ! use_hp ) {\n if ( mv -> row & 1 ) mv -> row += ( mv -> row > 0 ? - 1 : 1 ) ;\n if ( mv -> col & 1 ) mv -> col += ( mv -> col > 0 ? - 1 : 1 ) ;\n }\n }"}
{"idx": 1683, "target": 0, "func": "static void U_CALLCONV T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n const unsigned char * mySource = ( unsigned char * ) args -> source ;\n UChar * myTarget = args -> target ;\n int32_t * myOffsets = args -> offsets ;\n const unsigned char * sourceLimit = ( unsigned char * ) args -> sourceLimit ;\n const UChar * targetLimit = args -> targetLimit ;\n unsigned char * toUBytes = args -> converter -> toUBytes ;\n uint32_t ch , i ;\n int32_t offsetNum = 0 ;\n if ( args -> converter -> toUnicodeStatus && myTarget < targetLimit ) {\n i = args -> converter -> toULength ;\n args -> converter -> toULength = 0 ;\n ch = args -> converter -> toUnicodeStatus - 1 ;\n args -> converter -> toUnicodeStatus = 0 ;\n goto morebytes ;\n }\n while ( mySource < sourceLimit && myTarget < targetLimit ) {\n i = 0 ;\n ch = 0 ;\n morebytes : while ( i < sizeof ( uint32_t ) ) {\n if ( mySource < sourceLimit ) {\n ch = ( ch << 8 ) | ( uint8_t ) ( * mySource ) ;\n toUBytes [ i ++ ] = ( char ) * ( mySource ++ ) ;\n }\n else {\n args -> converter -> toUnicodeStatus = ch + 1 ;\n args -> converter -> toULength = ( int8_t ) i ;\n goto donefornow ;\n }\n }\n if ( ch <= MAXIMUM_UTF && ! U_IS_SURROGATE ( ch ) ) {\n if ( ch <= MAXIMUM_UCS2 ) {\n * ( myTarget ++ ) = ( UChar ) ch ;\n * ( myOffsets ++ ) = offsetNum ;\n }\n else {\n * ( myTarget ++ ) = U16_LEAD ( ch ) ;\n * myOffsets ++ = offsetNum ;\n ch = U16_TRAIL ( ch ) ;\n if ( myTarget < targetLimit ) {\n * ( myTarget ++ ) = ( UChar ) ch ;\n * ( myOffsets ++ ) = offsetNum ;\n }\n else {\n args -> converter -> UCharErrorBuffer [ 0 ] = ( UChar ) ch ;\n args -> converter -> UCharErrorBufferLength = 1 ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n }\n else {\n args -> converter -> toULength = ( int8_t ) i ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n offsetNum += i ;\n }\n donefornow : if ( mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS ( * err ) ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n args -> target = myTarget ;\n args -> source = ( const char * ) mySource ;\n args -> offsets = myOffsets ;\n }"}
{"idx": 1684, "target": 0, "func": "static int dissect_h225_SEQUENCE_OF_DataRate ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_SEQUENCE_OF_DataRate , SEQUENCE_OF_DataRate_sequence_of ) ;\n return offset ;\n }"}
{"idx": 1685, "target": 0, "func": "List * find_forced_null_vars ( Node * node ) {\n List * result = NIL ;\n Var * var ;\n ListCell * l ;\n if ( node == NULL ) return NIL ;\n var = find_forced_null_var ( node ) ;\n if ( var ) {\n result = list_make1 ( var ) ;\n }\n else if ( IsA ( node , List ) ) {\n foreach ( l , ( List * ) node ) {\n result = list_concat ( result , find_forced_null_vars ( lfirst ( l ) ) ) ;\n }\n }\n else if ( IsA ( node , BoolExpr ) ) {\n BoolExpr * expr = ( BoolExpr * ) node ;\n if ( expr -> boolop == AND_EXPR ) {\n result = find_forced_null_vars ( ( Node * ) expr -> args ) ;\n }\n }\n return result ;\n }"}
{"idx": 1686, "target": 0, "func": "void rtp_dyn_payload_insert ( rtp_dyn_payload_t * rtp_dyn_payload , const guint8 pt , const gchar * encoding_name , const int sample_rate ) {\n if ( rtp_dyn_payload && rtp_dyn_payload -> table ) {\n encoding_name_and_rate_t * encoding_name_and_rate_pt = wmem_new ( wmem_file_scope ( ) , encoding_name_and_rate_t ) ;\n encoding_name_and_rate_pt -> encoding_name = wmem_strdup ( wmem_file_scope ( ) , encoding_name ) ;\n encoding_name_and_rate_pt -> sample_rate = sample_rate ;\n g_hash_table_insert ( rtp_dyn_payload -> table , GUINT_TO_POINTER ( pt ) , encoding_name_and_rate_pt ) ;\n }\n }"}
{"idx": 1687, "target": 0, "func": "GType hb_gobject_ ## name ## _get_type ( void ) \\ {\n static gsize type_id = 0 ;\n if ( g_once_init_enter ( & type_id ) ) {\n GType id = g_boxed_type_register_static ( g_intern_static_string ( \"hb_\" # name \"_t\" ) , ( GBoxedCopyFunc ) copy_func , ( GBoxedFreeFunc ) free_func ) ;\n g_once_init_leave ( & type_id , id ) ;\n }\n return type_id ;\n \\ }\n # define HB_DEFINE_OBJECT_TYPE ( name ) HB_DEFINE_BOXED_TYPE ( name , hb_ ## name ## _reference , hb_ ## name ## _destroy ) ;\n # define HB_DEFINE_VALUE_TYPE ( name ) static hb_ ## name ## _t * _hb_ ## name ## _reference ( const hb_ ## name ## _t * l ) {\n hb_ ## name ## _t * c = ( hb_ ## name ## _t * ) calloc ( 1 , sizeof ( hb_ ## name ## _t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * l ;\n return c ;\n }\n static void _hb_ ## name ## _destroy ( hb_ ## name ## _t * l ) {\n free ( l ) ;\n }\n HB_DEFINE_BOXED_TYPE ( name , _hb_ ## name ## _reference , _hb_ ## name ## _destroy ) ;\n HB_DEFINE_OBJECT_TYPE ( buffer ) HB_DEFINE_OBJECT_TYPE ( blob ) HB_DEFINE_OBJECT_TYPE ( face )"}
{"idx": 1688, "target": 0, "func": "static int com_help ( String * buffer __attribute__ ( ( unused ) ) , char * line __attribute__ ( ( unused ) ) ) {\n reg1 int i , j ;\n char * help_arg = strchr ( line , ' ' ) , buff [ 32 ] , * end ;\n if ( help_arg ) {\n while ( my_isspace ( charset_info , * help_arg ) ) help_arg ++ ;\n if ( * help_arg ) return com_server_help ( buffer , line , help_arg ) ;\n }\n put_info ( \"\\nGeneral information about MariaDB can be found at\\n\" \"http://mariadb.org\\n\" , INFO_INFO ) ;\n put_info ( \"List of all MySQL commands:\" , INFO_INFO ) ;\n if ( ! named_cmds ) put_info ( \"Note that all text commands must be first on line and end with ';\n'\" , INFO_INFO ) ;\n for ( i = 0 ;\n commands [ i ] . name ;\n i ++ ) {\n end = strmov ( buff , commands [ i ] . name ) ;\n for ( j = ( int ) strlen ( commands [ i ] . name ) ;\n j < 10 ;\n j ++ ) end = strmov ( end , \" \" ) ;\n if ( commands [ i ] . func ) tee_fprintf ( stdout , \"%s(\\\\%c) %s\\n\" , buff , commands [ i ] . cmd_char , commands [ i ] . doc ) ;\n }\n if ( connected && mysql_get_server_version ( & mysql ) >= 40100 ) put_info ( \"\\nFor server side help, type 'help contents'\\n\" , INFO_INFO ) ;\n return 0 ;\n }"}
{"idx": 1689, "target": 1, "func": "static void fill_colmap ( H264Context * h , int map [ 2 ] [ 16 + 32 ] , int list , int field , int colfield , int mbafi ) {\n Picture * const ref1 = & h -> ref_list [ 1 ] [ 0 ] ;\n int j , old_ref , rfield ;\n int start = mbafi ? 16 : 0 ;\n int end = mbafi ? 16 + 2 * h -> ref_count [ 0 ] : h -> ref_count [ 0 ] ;\n int interl = mbafi || h -> picture_structure != PICT_FRAME ;\n memset ( map [ list ] , 0 , sizeof ( map [ list ] ) ) ;\n for ( rfield = 0 ;\n rfield < 2 ;\n rfield ++ ) {\n for ( old_ref = 0 ;\n old_ref < ref1 -> ref_count [ colfield ] [ list ] ;\n old_ref ++ ) {\n int poc = ref1 -> ref_poc [ colfield ] [ list ] [ old_ref ] ;\n if ( ! interl ) poc |= 3 ;\n else if ( interl && ( poc & 3 ) == 3 ) poc = ( poc & ~ 3 ) + rfield + 1 ;\n for ( j = start ;\n j < end ;\n j ++ ) {\n if ( 4 * h -> ref_list [ 0 ] [ j ] . frame_num + ( h -> ref_list [ 0 ] [ j ] . f . reference & 3 ) == poc ) {\n int cur_ref = mbafi ? ( j - 16 ) ^ field : j ;\n if ( ref1 -> mbaff ) map [ list ] [ 2 * old_ref + ( rfield ^ field ) + 16 ] = cur_ref ;\n if ( rfield == field || ! interl ) map [ list ] [ old_ref ] = cur_ref ;\n break ;\n }\n }\n }\n }\n }"}
{"idx": 1690, "target": 0, "func": "static ossl_inline int sk_ ## t1 ## _num ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_num ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _value ( const STACK_OF ( t1 ) * sk , int idx ) {\n return ( t2 * ) OPENSSL_sk_value ( ( const OPENSSL_STACK * ) sk , idx ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new ( sk_ ## t1 ## _compfunc compare ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new ( ( OPENSSL_sk_compfunc ) compare ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_null ( void ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_null ( ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_reserve ( sk_ ## t1 ## _compfunc compare , int n ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_reserve ( ( OPENSSL_sk_compfunc ) compare , n ) ;\n }\n static ossl_inline int sk_ ## t1 ## _reserve ( STACK_OF ( t1 ) * sk , int n ) {\n return OPENSSL_sk_reserve ( ( OPENSSL_STACK * ) sk , n ) ;\n }\n static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 1691, "target": 0, "func": "void fe_server_deinit ( void ) {\n command_unbind ( \"server\" , ( SIGNAL_FUNC ) cmd_server ) ;\n command_unbind ( \"server connect\" , ( SIGNAL_FUNC ) cmd_server_connect ) ;\n command_unbind ( \"server add\" , ( SIGNAL_FUNC ) cmd_server_add ) ;\n command_unbind ( \"server modify\" , ( SIGNAL_FUNC ) cmd_server_modify ) ;\n command_unbind ( \"server remove\" , ( SIGNAL_FUNC ) cmd_server_remove ) ;\n command_unbind ( \"server\" , ( SIGNAL_FUNC ) server_command ) ;\n command_unbind ( \"disconnect\" , ( SIGNAL_FUNC ) server_command ) ;\n signal_remove ( \"server looking\" , ( SIGNAL_FUNC ) sig_server_looking ) ;\n signal_remove ( \"server connecting\" , ( SIGNAL_FUNC ) sig_server_connecting ) ;\n signal_remove ( \"server connected\" , ( SIGNAL_FUNC ) sig_server_connected ) ;\n signal_remove ( \"server connect failed\" , ( SIGNAL_FUNC ) sig_connect_failed ) ;\n signal_remove ( \"server disconnected\" , ( SIGNAL_FUNC ) sig_server_disconnected ) ;\n signal_remove ( \"server quit\" , ( SIGNAL_FUNC ) sig_server_quit ) ;\n signal_remove ( \"server lag disconnect\" , ( SIGNAL_FUNC ) sig_server_lag_disconnected ) ;\n signal_remove ( \"server reconnect remove\" , ( SIGNAL_FUNC ) sig_server_reconnect_removed ) ;\n signal_remove ( \"server reconnect not found\" , ( SIGNAL_FUNC ) sig_server_reconnect_not_found ) ;\n signal_remove ( \"chat protocol unknown\" , ( SIGNAL_FUNC ) sig_chat_protocol_unknown ) ;\n }"}
{"idx": 1692, "target": 0, "func": "bool agg_item_charsets ( DTCollation & coll , const char * fname , Item * * args , uint nargs , uint flags , int item_sep ) {\n if ( agg_item_collations ( coll , fname , args , nargs , flags , item_sep ) ) return TRUE ;\n return agg_item_set_converter ( coll , fname , args , nargs , flags , item_sep ) ;\n }"}
{"idx": 1693, "target": 0, "func": "static int selinux_socket_create ( int family , int type , int protocol , int kern ) {\n const struct task_security_struct * tsec = current_security ( ) ;\n u32 newsid ;\n u16 secclass ;\n int rc ;\n if ( kern ) return 0 ;\n secclass = socket_type_to_security_class ( family , type , protocol ) ;\n rc = socket_sockcreate_sid ( tsec , secclass , & newsid ) ;\n if ( rc ) return rc ;\n return avc_has_perm ( tsec -> sid , newsid , secclass , SOCKET__CREATE , NULL ) ;\n }"}
{"idx": 1694, "target": 0, "func": "static void qemuMonitorJSONHandleVNC ( qemuMonitorPtr mon , virJSONValuePtr data , int phase ) {\n const char * localNode , * localService , * localFamily ;\n const char * remoteNode , * remoteService , * remoteFamily ;\n const char * authScheme , * saslUsername , * x509dname ;\n int localFamilyID , remoteFamilyID ;\n virJSONValuePtr client ;\n virJSONValuePtr server ;\n if ( ! ( client = virJSONValueObjectGet ( data , \"client\" ) ) ) {\n VIR_WARN ( \"missing client info in VNC event\" ) ;\n return ;\n }\n if ( ! ( server = virJSONValueObjectGet ( data , \"server\" ) ) ) {\n VIR_WARN ( \"missing server info in VNC event\" ) ;\n return ;\n }\n authScheme = virJSONValueObjectGetString ( server , \"auth\" ) ;\n localFamily = virJSONValueObjectGetString ( server , \"family\" ) ;\n localNode = virJSONValueObjectGetString ( server , \"host\" ) ;\n localService = virJSONValueObjectGetString ( server , \"service\" ) ;\n remoteFamily = virJSONValueObjectGetString ( client , \"family\" ) ;\n remoteNode = virJSONValueObjectGetString ( client , \"host\" ) ;\n remoteService = virJSONValueObjectGetString ( client , \"service\" ) ;\n saslUsername = virJSONValueObjectGetString ( client , \"sasl_username\" ) ;\n x509dname = virJSONValueObjectGetString ( client , \"x509_dname\" ) ;\n if ( ( localFamilyID = qemuMonitorGraphicsAddressFamilyTypeFromString ( localFamily ) ) < 0 ) {\n VIR_WARN ( \"unknown address family '%s'\" , localFamily ) ;\n localFamilyID = VIR_DOMAIN_EVENT_GRAPHICS_ADDRESS_IPV4 ;\n }\n if ( ( remoteFamilyID = qemuMonitorGraphicsAddressFamilyTypeFromString ( remoteFamily ) ) < 0 ) {\n VIR_WARN ( \"unknown address family '%s'\" , remoteFamily ) ;\n remoteFamilyID = VIR_DOMAIN_EVENT_GRAPHICS_ADDRESS_IPV4 ;\n }\n qemuMonitorEmitGraphics ( mon , phase , localFamilyID , localNode , localService , remoteFamilyID , remoteNode , remoteService , authScheme , x509dname , saslUsername ) ;\n }"}
{"idx": 1695, "target": 0, "func": "static void sig_complete_topic ( GList * * list , WINDOW_REC * window , const char * word , const char * line , int * want_space ) {\n const char * topic ;\n g_return_if_fail ( list != NULL ) ;\n g_return_if_fail ( word != NULL ) ;\n if ( * word == '\\0' && IS_CHANNEL ( window -> active ) ) {\n topic = CHANNEL ( window -> active ) -> topic ;\n if ( topic != NULL ) {\n * list = g_list_append ( NULL , g_strdup ( topic ) ) ;\n signal_stop ( ) ;\n }\n }\n }"}
{"idx": 1696, "target": 0, "func": "static Image * ReadVIFFImage ( const ImageInfo * image_info , ExceptionInfo * exception ) {\n # define VFF_CM_genericRGB 15 # define VFF_CM_ntscRGB 1 # define VFF_CM_NONE 0 # define VFF_DEP_DECORDER 0x4 # define VFF_DEP_NSORDER 0x8 # define VFF_DES_RAW 0 # define VFF_LOC_IMPLICIT 1 # define VFF_MAPTYP_NONE 0 # define VFF_MAPTYP_1_BYTE 1 # define VFF_MAPTYP_2_BYTE 2 # define VFF_MAPTYP_4_BYTE 4 # define VFF_MAPTYP_FLOAT 5 # define VFF_MAPTYP_DOUBLE 7 # define VFF_MS_NONE 0 # define VFF_MS_ONEPERBAND 1 # define VFF_MS_SHARED 3 # define VFF_TYP_BIT 0 # define VFF_TYP_1_BYTE 1 # define VFF_TYP_2_BYTE 2 # define VFF_TYP_4_BYTE 4 # define VFF_TYP_FLOAT 5 # define VFF_TYP_DOUBLE 9 typedef struct _ViffInfo {\n unsigned char identifier , file_type , release , version , machine_dependency , reserve [ 3 ] ;\n char comment [ 512 ] ;\n unsigned int rows , columns , subrows ;\n int x_offset , y_offset ;\n float x_bits_per_pixel , y_bits_per_pixel ;\n unsigned int location_type , location_dimension , number_of_images , number_data_bands , data_storage_type , data_encode_scheme , map_scheme , map_storage_type , map_rows , map_columns , map_subrows , map_enable , maps_per_cycle , color_space_model ;\n }\n ViffInfo ;\n double min_value , scale_factor , value ;\n Image * image ;\n int bit ;\n MagickBooleanType status ;\n MagickSizeType number_pixels ;\n register IndexPacket * indexes ;\n register ssize_t x ;\n register PixelPacket * q ;\n register ssize_t i ;\n register unsigned char * p ;\n size_t bytes_per_pixel , max_packets , quantum ;\n ssize_t count , y ;\n unsigned char * pixels ;\n unsigned long lsb_first ;\n ViffInfo viff_info ;\n assert ( image_info != ( const ImageInfo * ) NULL ) ;\n assert ( image_info -> signature == MagickSignature ) ;\n if ( image_info -> debug != MagickFalse ) ( void ) LogMagickEvent ( TraceEvent , GetMagickModule ( ) , \"%s\" , image_info -> filename ) ;\n assert ( exception != ( ExceptionInfo * ) NULL ) ;\n assert ( exception -> signature == MagickSignature ) ;\n image = AcquireImage ( image_info ) ;\n status = OpenBlob ( image_info , image , ReadBinaryBlobMode , exception ) ;\n if ( status == MagickFalse ) {\n image = DestroyImageList ( image ) ;\n return ( ( Image * ) NULL ) ;\n }\n count = ReadBlob ( image , 1 , & viff_info . identifier ) ;\n do {\n if ( ( count != 1 ) || ( ( unsigned char ) viff_info . identifier != 0xab ) ) ThrowReaderException ( CorruptImageError , \"NotAVIFFImage\" ) ;\n ( void ) ReadBlob ( image , sizeof ( viff_info . file_type ) , & viff_info . file_type ) ;\n ( void ) ReadBlob ( image , sizeof ( viff_info . release ) , & viff_info . release ) ;\n ( void ) ReadBlob ( image , sizeof ( viff_info . version ) , & viff_info . version ) ;\n ( void ) ReadBlob ( image , sizeof ( viff_info . machine_dependency ) , & viff_info . machine_dependency ) ;\n ( void ) ReadBlob ( image , sizeof ( viff_info . reserve ) , viff_info . reserve ) ;\n ( void ) ReadBlob ( image , 512 , ( unsigned char * ) viff_info . comment ) ;\n viff_info . comment [ 511 ] = '\\0' ;\n if ( strlen ( viff_info . comment ) > 4 ) ( void ) SetImageProperty ( image , \"comment\" , viff_info . comment ) ;\n if ( ( viff_info . machine_dependency == VFF_DEP_DECORDER ) || ( viff_info . machine_dependency == VFF_DEP_NSORDER ) ) image -> endian = LSBEndian ;\n else image -> endian = MSBEndian ;\n viff_info . rows = ReadBlobLong ( image ) ;\n viff_info . columns = ReadBlobLong ( image ) ;\n viff_info . subrows = ReadBlobLong ( image ) ;\n viff_info . x_offset = ( int ) ReadBlobLong ( image ) ;\n viff_info . y_offset = ( int ) ReadBlobLong ( image ) ;\n viff_info . x_bits_per_pixel = ( float ) ReadBlobLong ( image ) ;\n viff_info . y_bits_per_pixel = ( float ) ReadBlobLong ( image ) ;\n viff_info . location_type = ReadBlobLong ( image ) ;\n viff_info . location_dimension = ReadBlobLong ( image ) ;\n viff_info . number_of_images = ReadBlobLong ( image ) ;\n viff_info . number_data_bands = ReadBlobLong ( image ) ;\n viff_info . data_storage_type = ReadBlobLong ( image ) ;\n viff_info . data_encode_scheme = ReadBlobLong ( image ) ;\n viff_info . map_scheme = ReadBlobLong ( image ) ;\n viff_info . map_storage_type = ReadBlobLong ( image ) ;\n viff_info . map_rows = ReadBlobLong ( image ) ;\n viff_info . map_columns = ReadBlobLong ( image ) ;\n viff_info . map_subrows = ReadBlobLong ( image ) ;\n viff_info . map_enable = ReadBlobLong ( image ) ;\n viff_info . maps_per_cycle = ReadBlobLong ( image ) ;\n viff_info . color_space_model = ReadBlobLong ( image ) ;\n for ( i = 0 ;\n i < 420 ;\n i ++ ) ( void ) ReadBlobByte ( image ) ;\n if ( EOFBlob ( image ) != MagickFalse ) ThrowReaderException ( CorruptImageError , \"UnexpectedEndOfFile\" ) ;\n image -> columns = viff_info . rows ;\n image -> rows = viff_info . columns ;\n image -> depth = viff_info . x_bits_per_pixel <= 8 ? 8UL : MAGICKCORE_QUANTUM_DEPTH ;\n number_pixels = ( MagickSizeType ) viff_info . columns * viff_info . rows ;\n if ( number_pixels != ( size_t ) number_pixels ) ThrowReaderException ( ResourceLimitError , \"MemoryAllocationFailed\" ) ;\n if ( number_pixels == 0 ) ThrowReaderException ( CoderError , \"ImageColumnOrRowSizeIsNotSupported\" ) ;\n if ( ( viff_info . number_data_bands < 1 ) || ( viff_info . number_data_bands > 4 ) ) ThrowReaderException ( CorruptImageError , \"ImproperImageHeader\" ) ;\n if ( ( viff_info . data_storage_type != VFF_TYP_BIT ) && ( viff_info . data_storage_type != VFF_TYP_1_BYTE ) && ( viff_info . data_storage_type != VFF_TYP_2_BYTE ) && ( viff_info . data_storage_type != VFF_TYP_4_BYTE ) && ( viff_info . data_storage_type != VFF_TYP_FLOAT ) && ( viff_info . data_storage_type != VFF_TYP_DOUBLE ) ) ThrowReaderException ( CoderError , \"DataStorageTypeIsNotSupported\" ) ;\n if ( viff_info . data_encode_scheme != VFF_DES_RAW ) ThrowReaderException ( CoderError , \"DataEncodingSchemeIsNotSupported\" ) ;\n if ( ( viff_info . map_storage_type != VFF_MAPTYP_NONE ) && ( viff_info . map_storage_type != VFF_MAPTYP_1_BYTE ) && ( viff_info . map_storage_type != VFF_MAPTYP_2_BYTE ) && ( viff_info . map_storage_type != VFF_MAPTYP_4_BYTE ) && ( viff_info . map_storage_type != VFF_MAPTYP_FLOAT ) && ( viff_info . map_storage_type != VFF_MAPTYP_DOUBLE ) ) ThrowReaderException ( CoderError , \"MapStorageTypeIsNotSupported\" ) ;\n if ( ( viff_info . color_space_model != VFF_CM_NONE ) && ( viff_info . color_space_model != VFF_CM_ntscRGB ) && ( viff_info . color_space_model != VFF_CM_genericRGB ) ) ThrowReaderException ( CoderError , \"ColorspaceModelIsNotSupported\" ) ;\n if ( viff_info . location_type != VFF_LOC_IMPLICIT ) ThrowReaderException ( CoderError , \"LocationTypeIsNotSupported\" ) ;\n if ( viff_info . number_of_images != 1 ) ThrowReaderException ( CoderError , \"NumberOfImagesIsNotSupported\" ) ;\n if ( viff_info . map_rows == 0 ) viff_info . map_scheme = VFF_MS_NONE ;\n switch ( ( int ) viff_info . map_scheme ) {\n case VFF_MS_NONE : {\n if ( viff_info . number_data_bands < 3 ) {\n if ( viff_info . data_storage_type == VFF_TYP_BIT ) image -> colors = 2 ;\n else if ( viff_info . data_storage_type == VFF_MAPTYP_1_BYTE ) image -> colors = 256UL ;\n else image -> colors = image -> depth <= 8 ? 256UL : 65536UL ;\n if ( AcquireImageColormap ( image , image -> colors ) == MagickFalse ) ThrowReaderException ( ResourceLimitError , \"MemoryAllocationFailed\" ) ;\n }\n break ;\n }\n case VFF_MS_ONEPERBAND : case VFF_MS_SHARED : {\n unsigned char * viff_colormap ;\n switch ( ( int ) viff_info . map_storage_type ) {\n case VFF_MAPTYP_1_BYTE : bytes_per_pixel = 1 ;\n break ;\n case VFF_MAPTYP_2_BYTE : bytes_per_pixel = 2 ;\n break ;\n case VFF_MAPTYP_4_BYTE : bytes_per_pixel = 4 ;\n break ;\n case VFF_MAPTYP_FLOAT : bytes_per_pixel = 4 ;\n break ;\n case VFF_MAPTYP_DOUBLE : bytes_per_pixel = 8 ;\n break ;\n default : bytes_per_pixel = 1 ;\n break ;\n }\n image -> colors = viff_info . map_columns ;\n if ( AcquireImageColormap ( image , image -> colors ) == MagickFalse ) ThrowReaderException ( ResourceLimitError , \"MemoryAllocationFailed\" ) ;\n if ( viff_info . map_rows > ( viff_info . map_rows * bytes_per_pixel * sizeof ( * viff_colormap ) ) ) ThrowReaderException ( CorruptImageError , \"ImproperImageHeader\" ) ;\n viff_colormap = ( unsigned char * ) AcquireQuantumMemory ( image -> colors , viff_info . map_rows * bytes_per_pixel * sizeof ( * viff_colormap ) ) ;\n if ( viff_colormap == ( unsigned char * ) NULL ) ThrowReaderException ( ResourceLimitError , \"MemoryAllocationFailed\" ) ;\n ( void ) ReadBlob ( image , bytes_per_pixel * image -> colors * viff_info . map_rows , viff_colormap ) ;\n lsb_first = 1 ;\n if ( * ( char * ) & lsb_first && ( ( viff_info . machine_dependency != VFF_DEP_DECORDER ) && ( viff_info . machine_dependency != VFF_DEP_NSORDER ) ) ) switch ( ( int ) viff_info . map_storage_type ) {\n case VFF_MAPTYP_2_BYTE : {\n MSBOrderShort ( viff_colormap , ( bytes_per_pixel * image -> colors * viff_info . map_rows ) ) ;\n break ;\n }\n case VFF_MAPTYP_4_BYTE : case VFF_MAPTYP_FLOAT : {\n MSBOrderLong ( viff_colormap , ( bytes_per_pixel * image -> colors * viff_info . map_rows ) ) ;\n break ;\n }\n default : break ;\n }\n for ( i = 0 ;\n i < ( ssize_t ) ( viff_info . map_rows * image -> colors ) ;\n i ++ ) {\n switch ( ( int ) viff_info . map_storage_type ) {\n case VFF_MAPTYP_2_BYTE : value = 1.0 * ( ( short * ) viff_colormap ) [ i ] ;\n break ;\n case VFF_MAPTYP_4_BYTE : value = 1.0 * ( ( int * ) viff_colormap ) [ i ] ;\n break ;\n case VFF_MAPTYP_FLOAT : value = ( ( float * ) viff_colormap ) [ i ] ;\n break ;\n case VFF_MAPTYP_DOUBLE : value = ( ( double * ) viff_colormap ) [ i ] ;\n break ;\n default : value = 1.0 * viff_colormap [ i ] ;\n break ;\n }\n if ( i < ( ssize_t ) image -> colors ) {\n image -> colormap [ i ] . red = ScaleCharToQuantum ( ( unsigned char ) value ) ;\n image -> colormap [ i ] . green = ScaleCharToQuantum ( ( unsigned char ) value ) ;\n image -> colormap [ i ] . blue = ScaleCharToQuantum ( ( unsigned char ) value ) ;\n }\n else if ( i < ( ssize_t ) ( 2 * image -> colors ) ) image -> colormap [ i % image -> colors ] . green = ScaleCharToQuantum ( ( unsigned char ) value ) ;\n else if ( i < ( ssize_t ) ( 3 * image -> colors ) ) image -> colormap [ i % image -> colors ] . blue = ScaleCharToQuantum ( ( unsigned char ) value ) ;\n }\n viff_colormap = ( unsigned char * ) RelinquishMagickMemory ( viff_colormap ) ;\n break ;\n }\n default : ThrowReaderException ( CoderError , \"ColormapTypeNotSupported\" ) ;\n }\n image -> matte = viff_info . number_data_bands == 4 ? MagickTrue : MagickFalse ;\n image -> storage_class = ( viff_info . number_data_bands < 3 ? PseudoClass : DirectClass ) ;\n image -> columns = viff_info . rows ;\n image -> rows = viff_info . columns ;\n if ( ( image_info -> ping != MagickFalse ) && ( image_info -> number_scenes != 0 ) ) if ( image -> scene >= ( image_info -> scene + image_info -> number_scenes - 1 ) ) break ;\n status = SetImageExtent ( image , image -> columns , image -> rows ) ;\n if ( status == MagickFalse ) {\n InheritException ( exception , & image -> exception ) ;\n return ( DestroyImageList ( image ) ) ;\n }\n switch ( ( int ) viff_info . data_storage_type ) {\n case VFF_TYP_2_BYTE : bytes_per_pixel = 2 ;\n break ;\n case VFF_TYP_4_BYTE : bytes_per_pixel = 4 ;\n break ;\n case VFF_TYP_FLOAT : bytes_per_pixel = 4 ;\n break ;\n case VFF_TYP_DOUBLE : bytes_per_pixel = 8 ;\n break ;\n default : bytes_per_pixel = 1 ;\n break ;\n }\n if ( viff_info . data_storage_type == VFF_TYP_BIT ) max_packets = ( ( image -> columns + 7UL ) >> 3UL ) * image -> rows ;\n else max_packets = ( size_t ) ( number_pixels * viff_info . number_data_bands ) ;\n pixels = ( unsigned char * ) AcquireQuantumMemory ( MagickMax ( number_pixels , max_packets ) , bytes_per_pixel * sizeof ( * pixels ) ) ;\n if ( pixels == ( unsigned char * ) NULL ) ThrowReaderException ( ResourceLimitError , \"MemoryAllocationFailed\" ) ;\n ( void ) ReadBlob ( image , bytes_per_pixel * max_packets , pixels ) ;\n lsb_first = 1 ;\n if ( * ( char * ) & lsb_first && ( ( viff_info . machine_dependency != VFF_DEP_DECORDER ) && ( viff_info . machine_dependency != VFF_DEP_NSORDER ) ) ) switch ( ( int ) viff_info . data_storage_type ) {\n case VFF_TYP_2_BYTE : {\n MSBOrderShort ( pixels , bytes_per_pixel * max_packets ) ;\n break ;\n }\n case VFF_TYP_4_BYTE : case VFF_TYP_FLOAT : {\n MSBOrderLong ( pixels , bytes_per_pixel * max_packets ) ;\n break ;\n }\n default : break ;\n }\n min_value = 0.0 ;\n scale_factor = 1.0 ;\n if ( ( viff_info . data_storage_type != VFF_TYP_1_BYTE ) && ( viff_info . map_scheme == VFF_MS_NONE ) ) {\n double max_value ;\n switch ( ( int ) viff_info . data_storage_type ) {\n case VFF_TYP_2_BYTE : value = 1.0 * ( ( short * ) pixels ) [ 0 ] ;\n break ;\n case VFF_TYP_4_BYTE : value = 1.0 * ( ( int * ) pixels ) [ 0 ] ;\n break ;\n case VFF_TYP_FLOAT : value = ( ( float * ) pixels ) [ 0 ] ;\n break ;\n case VFF_TYP_DOUBLE : value = ( ( double * ) pixels ) [ 0 ] ;\n break ;\n default : value = 1.0 * pixels [ 0 ] ;\n break ;\n }\n max_value = value ;\n min_value = value ;\n for ( i = 0 ;\n i < ( ssize_t ) max_packets ;\n i ++ ) {\n switch ( ( int ) viff_info . data_storage_type ) {\n case VFF_TYP_2_BYTE : value = 1.0 * ( ( short * ) pixels ) [ i ] ;\n break ;\n case VFF_TYP_4_BYTE : value = 1.0 * ( ( int * ) pixels ) [ i ] ;\n break ;\n case VFF_TYP_FLOAT : value = ( ( float * ) pixels ) [ i ] ;\n break ;\n case VFF_TYP_DOUBLE : value = ( ( double * ) pixels ) [ i ] ;\n break ;\n default : value = 1.0 * pixels [ i ] ;\n break ;\n }\n if ( value > max_value ) max_value = value ;\n else if ( value < min_value ) min_value = value ;\n }\n if ( ( min_value == 0 ) && ( max_value == 0 ) ) scale_factor = 0 ;\n else if ( min_value == max_value ) {\n scale_factor = ( MagickRealType ) QuantumRange / min_value ;\n min_value = 0 ;\n }\n else scale_factor = ( MagickRealType ) QuantumRange / ( max_value - min_value ) ;\n }\n p = ( unsigned char * ) pixels ;\n for ( i = 0 ;\n i < ( ssize_t ) max_packets ;\n i ++ ) {\n switch ( ( int ) viff_info . data_storage_type ) {\n case VFF_TYP_2_BYTE : value = 1.0 * ( ( short * ) pixels ) [ i ] ;\n break ;\n case VFF_TYP_4_BYTE : value = 1.0 * ( ( int * ) pixels ) [ i ] ;\n break ;\n case VFF_TYP_FLOAT : value = ( ( float * ) pixels ) [ i ] ;\n break ;\n case VFF_TYP_DOUBLE : value = ( ( double * ) pixels ) [ i ] ;\n break ;\n default : value = 1.0 * pixels [ i ] ;\n break ;\n }\n if ( viff_info . map_scheme == VFF_MS_NONE ) {\n value = ( value - min_value ) * scale_factor ;\n if ( value > QuantumRange ) value = QuantumRange ;\n else if ( value < 0 ) value = 0 ;\n }\n * p = ( unsigned char ) ( ( Quantum ) value ) ;\n p ++ ;\n }\n p = ( unsigned char * ) pixels ;\n if ( viff_info . data_storage_type == VFF_TYP_BIT ) {\n if ( image -> storage_class != PseudoClass ) ThrowReaderException ( CorruptImageError , \"ImproperImageHeader\" ) ;\n for ( y = 0 ;\n y < ( ssize_t ) image -> rows ;\n y ++ ) {\n q = QueueAuthenticPixels ( image , 0 , y , image -> columns , 1 , exception ) ;\n if ( q == ( PixelPacket * ) NULL ) break ;\n indexes = GetAuthenticIndexQueue ( image ) ;\n for ( x = 0 ;\n x < ( ssize_t ) ( image -> columns - 7 ) ;\n x += 8 ) {\n for ( bit = 0 ;\n bit < 8 ;\n bit ++ ) {\n quantum = ( size_t ) ( ( * p ) & ( 0x01 << bit ) ? 0 : 1 ) ;\n SetPixelRed ( q , quantum == 0 ? 0 : QuantumRange ) ;\n SetPixelGreen ( q , quantum == 0 ? 0 : QuantumRange ) ;\n SetPixelBlue ( q , quantum == 0 ? 0 : QuantumRange ) ;\n if ( image -> storage_class == PseudoClass ) SetPixelIndex ( indexes + x + bit , quantum ) ;\n }\n p ++ ;\n }\n if ( ( image -> columns % 8 ) != 0 ) {\n for ( bit = 0 ;\n bit < ( int ) ( image -> columns % 8 ) ;\n bit ++ ) {\n quantum = ( size_t ) ( ( * p ) & ( 0x01 << bit ) ? 0 : 1 ) ;\n SetPixelRed ( q , quantum == 0 ? 0 : QuantumRange ) ;\n SetPixelGreen ( q , quantum == 0 ? 0 : QuantumRange ) ;\n SetPixelBlue ( q , quantum == 0 ? 0 : QuantumRange ) ;\n if ( image -> storage_class == PseudoClass ) SetPixelIndex ( indexes + x + bit , quantum ) ;\n }\n p ++ ;\n }\n if ( SyncAuthenticPixels ( image , exception ) == MagickFalse ) break ;\n if ( image -> previous == ( Image * ) NULL ) {\n status = SetImageProgress ( image , LoadImageTag , ( MagickOffsetType ) y , image -> rows ) ;\n if ( status == MagickFalse ) break ;\n }\n }\n }\n else if ( image -> storage_class == PseudoClass ) for ( y = 0 ;\n y < ( ssize_t ) image -> rows ;\n y ++ ) {\n q = QueueAuthenticPixels ( image , 0 , y , image -> columns , 1 , exception ) ;\n if ( q == ( PixelPacket * ) NULL ) break ;\n indexes = GetAuthenticIndexQueue ( image ) ;\n for ( x = 0 ;\n x < ( ssize_t ) image -> columns ;\n x ++ ) SetPixelIndex ( indexes + x , * p ++ ) ;\n if ( SyncAuthenticPixels ( image , exception ) == MagickFalse ) break ;\n if ( image -> previous == ( Image * ) NULL ) {\n status = SetImageProgress ( image , LoadImageTag , ( MagickOffsetType ) y , image -> rows ) ;\n if ( status == MagickFalse ) break ;\n }\n }\n else {\n number_pixels = ( MagickSizeType ) image -> columns * image -> rows ;\n for ( y = 0 ;\n y < ( ssize_t ) image -> rows ;\n y ++ ) {\n q = QueueAuthenticPixels ( image , 0 , y , image -> columns , 1 , exception ) ;\n if ( q == ( PixelPacket * ) NULL ) break ;\n for ( x = 0 ;\n x < ( ssize_t ) image -> columns ;\n x ++ ) {\n SetPixelRed ( q , ScaleCharToQuantum ( * p ) ) ;\n SetPixelGreen ( q , ScaleCharToQuantum ( * ( p + number_pixels ) ) ) ;\n SetPixelBlue ( q , ScaleCharToQuantum ( * ( p + 2 * number_pixels ) ) ) ;\n if ( image -> colors != 0 ) {\n ssize_t index ;\n index = ( ssize_t ) GetPixelRed ( q ) ;\n SetPixelRed ( q , image -> colormap [ ( ssize_t ) ConstrainColormapIndex ( image , index ) ] . red ) ;\n index = ( ssize_t ) GetPixelGreen ( q ) ;\n SetPixelGreen ( q , image -> colormap [ ( ssize_t ) ConstrainColormapIndex ( image , index ) ] . green ) ;\n index = ( ssize_t ) GetPixelRed ( q ) ;\n SetPixelBlue ( q , image -> colormap [ ( ssize_t ) ConstrainColormapIndex ( image , index ) ] . blue ) ;\n }\n SetPixelOpacity ( q , image -> matte != MagickFalse ? QuantumRange - ScaleCharToQuantum ( * ( p + number_pixels * 3 ) ) : OpaqueOpacity ) ;\n p ++ ;\n q ++ ;\n }\n if ( SyncAuthenticPixels ( image , exception ) == MagickFalse ) break ;\n if ( image -> previous == ( Image * ) NULL ) {\n status = SetImageProgress ( image , LoadImageTag , ( MagickOffsetType ) y , image -> rows ) ;\n if ( status == MagickFalse ) break ;\n }\n }\n }\n pixels = ( unsigned char * ) RelinquishMagickMemory ( pixels ) ;\n if ( image -> storage_class == PseudoClass ) ( void ) SyncImage ( image ) ;\n if ( EOFBlob ( image ) != MagickFalse ) {\n ThrowFileException ( exception , CorruptImageError , \"UnexpectedEndOfFile\" , image -> filename ) ;\n break ;\n }\n if ( image_info -> number_scenes != 0 ) if ( image -> scene >= ( image_info -> scene + image_info -> number_scenes - 1 ) ) break ;\n count = ReadBlob ( image , 1 , & viff_info . identifier ) ;\n if ( ( count != 0 ) && ( viff_info . identifier == 0xab ) ) {\n AcquireNextImage ( image_info , image ) ;\n if ( GetNextImageInList ( image ) == ( Image * ) NULL ) {\n image = DestroyImageList ( image ) ;\n return ( ( Image * ) NULL ) ;\n }\n image = SyncNextImageInList ( image ) ;\n status = SetImageProgress ( image , LoadImagesTag , TellBlob ( image ) , GetBlobSize ( image ) ) ;\n if ( status == MagickFalse ) break ;\n }\n }\n while ( ( count != 0 ) && ( viff_info . identifier == 0xab ) ) ;\n ( void ) CloseBlob ( image ) ;\n return ( GetFirstImageInList ( image ) ) ;\n }"}
{"idx": 1697, "target": 0, "func": "static struct matrix build_lut_matrix ( struct lutType * lut ) {\n struct matrix result ;\n if ( lut ) {\n result . m [ 0 ] [ 0 ] = s15Fixed16Number_to_float ( lut -> e00 ) ;\n result . m [ 0 ] [ 1 ] = s15Fixed16Number_to_float ( lut -> e01 ) ;\n result . m [ 0 ] [ 2 ] = s15Fixed16Number_to_float ( lut -> e02 ) ;\n result . m [ 1 ] [ 0 ] = s15Fixed16Number_to_float ( lut -> e10 ) ;\n result . m [ 1 ] [ 1 ] = s15Fixed16Number_to_float ( lut -> e11 ) ;\n result . m [ 1 ] [ 2 ] = s15Fixed16Number_to_float ( lut -> e12 ) ;\n result . m [ 2 ] [ 0 ] = s15Fixed16Number_to_float ( lut -> e20 ) ;\n result . m [ 2 ] [ 1 ] = s15Fixed16Number_to_float ( lut -> e21 ) ;\n result . m [ 2 ] [ 2 ] = s15Fixed16Number_to_float ( lut -> e22 ) ;\n result . invalid = false ;\n }\n else {\n memset ( & result , 0 , sizeof ( struct matrix ) ) ;\n result . invalid = true ;\n }\n return result ;\n }"}
{"idx": 1698, "target": 0, "func": "void _zip_u2d_time ( time_t time , unsigned short * dtime , unsigned short * ddate ) {\n struct tm * tm ;\n tm = localtime ( & time ) ;\n * ddate = ( ( tm -> tm_year + 1900 - 1980 ) << 9 ) + ( ( tm -> tm_mon + 1 ) << 5 ) + tm -> tm_mday ;\n * dtime = ( ( tm -> tm_hour ) << 11 ) + ( ( tm -> tm_min ) << 5 ) + ( ( tm -> tm_sec ) >> 1 ) ;\n return ;\n }"}
{"idx": 1699, "target": 0, "func": "static int decode_subframe_length ( WMAProDecodeCtx * s , int offset ) {\n int frame_len_shift = 0 ;\n int subframe_len ;\n if ( offset == s -> samples_per_frame - s -> min_samples_per_subframe ) return s -> min_samples_per_subframe ;\n if ( s -> max_subframe_len_bit ) {\n if ( get_bits1 ( & s -> gb ) ) frame_len_shift = 1 + get_bits ( & s -> gb , s -> subframe_len_bits - 1 ) ;\n }\n else frame_len_shift = get_bits ( & s -> gb , s -> subframe_len_bits ) ;\n subframe_len = s -> samples_per_frame >> frame_len_shift ;\n if ( subframe_len < s -> min_samples_per_subframe || subframe_len > s -> samples_per_frame ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"broken frame: subframe_len %i\\n\" , subframe_len ) ;\n return AVERROR_INVALIDDATA ;\n }\n return subframe_len ;\n }"}
{"idx": 1700, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( UnloadTest , BrowserCloseTabWhenOtherTabHasListener ) {\n NavigateToDataURL ( CLOSE_TAB_WHEN_OTHER_TAB_HAS_LISTENER , \"only_one_unload\" ) ;\n content : : WindowedNotificationObserver observer ( chrome : : NOTIFICATION_TAB_ADDED , content : : NotificationService : : AllSources ( ) ) ;\n content : : WindowedNotificationObserver load_stop_observer ( content : : NOTIFICATION_LOAD_STOP , content : : NotificationService : : AllSources ( ) ) ;\n content : : SimulateMouseClick ( browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) , 0 , blink : : WebMouseEvent : : Button : : Left ) ;\n observer . Wait ( ) ;\n load_stop_observer . Wait ( ) ;\n CheckTitle ( \"popup\" ) ;\n content : : WebContentsDestroyedWatcher destroyed_watcher ( browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) ) ;\n chrome : : CloseTab ( browser ( ) ) ;\n destroyed_watcher . Wait ( ) ;\n CheckTitle ( \"only_one_unload\" ) ;\n }"}
{"idx": 1701, "target": 0, "func": "static const char * cmd_request_body_no_files_limit ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n long int limit ;\n if ( dcfg == NULL ) return NULL ;\n limit = strtol ( p1 , NULL , 10 ) ;\n if ( ( limit == LONG_MAX ) || ( limit == LONG_MIN ) || ( limit <= 0 ) ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid value for SecRequestBodyNoFilesLimit: %s\" , p1 ) ;\n }\n dcfg -> reqbody_no_files_limit = limit ;\n return NULL ;\n }"}
{"idx": 1702, "target": 1, "func": "static int decode_cabac_field_decoding_flag ( H264Context * h ) {\n const long mbb_xy = h -> mb_xy - 2L * h -> mb_stride ;\n unsigned long ctx = 0 ;\n ctx += h -> mb_field_decoding_flag & ! ! h -> mb_x ;\n ctx += ( h -> cur_pic . f . mb_type [ mbb_xy ] >> 7 ) & ( h -> slice_table [ mbb_xy ] == h -> slice_num ) ;\n return get_cabac_noinline ( & h -> cabac , & ( h -> cabac_state + 70 ) [ ctx ] ) ;\n }"}
{"idx": 1703, "target": 0, "func": "static int selinux_inet_sys_rcv_skb ( struct net * ns , int ifindex , char * addrp , u16 family , u32 peer_sid , struct common_audit_data * ad ) {\n int err ;\n u32 if_sid ;\n u32 node_sid ;\n err = sel_netif_sid ( ns , ifindex , & if_sid ) ;\n if ( err ) return err ;\n err = avc_has_perm ( peer_sid , if_sid , SECCLASS_NETIF , NETIF__INGRESS , ad ) ;\n if ( err ) return err ;\n err = sel_netnode_sid ( addrp , family , & node_sid ) ;\n if ( err ) return err ;\n return avc_has_perm ( peer_sid , node_sid , SECCLASS_NODE , NODE__RECVFROM , ad ) ;\n }"}
{"idx": 1704, "target": 0, "func": "void ProcessArchiveRestoreOptions ( Archive * AHX ) {\n ArchiveHandle * AH = ( ArchiveHandle * ) AHX ;\n RestoreOptions * ropt = AH -> public . ropt ;\n TocEntry * te ;\n teSection curSection ;\n curSection = SECTION_PRE_DATA ;\n for ( te = AH -> toc -> next ;\n te != AH -> toc ;\n te = te -> next ) {\n if ( AH -> mode != archModeRead ) {\n switch ( te -> section ) {\n case SECTION_NONE : break ;\n case SECTION_PRE_DATA : if ( curSection != SECTION_PRE_DATA ) write_msg ( modulename , \"WARNING: archive items not in correct section order\\n\" ) ;\n break ;\n case SECTION_DATA : if ( curSection == SECTION_POST_DATA ) write_msg ( modulename , \"WARNING: archive items not in correct section order\\n\" ) ;\n break ;\n case SECTION_POST_DATA : break ;\n default : exit_horribly ( modulename , \"unexpected section code %d\\n\" , ( int ) te -> section ) ;\n break ;\n }\n }\n if ( te -> section != SECTION_NONE ) curSection = te -> section ;\n te -> reqs = _tocEntryRequired ( te , curSection , ropt ) ;\n }\n if ( ropt -> strict_names ) StrictNamesCheck ( ropt ) ;\n }"}
{"idx": 1705, "target": 0, "func": "static void init_vaapi_pic ( VAPictureH264 * va_pic ) {\n va_pic -> picture_id = VA_INVALID_ID ;\n va_pic -> flags = VA_PICTURE_H264_INVALID ;\n va_pic -> TopFieldOrderCnt = 0 ;\n va_pic -> BottomFieldOrderCnt = 0 ;\n }"}
{"idx": 1706, "target": 0, "func": "static int dissect_h245_SET_SIZE_1_16_OF_CustomPictureClockFrequency ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_set_of ( tvb , offset , actx , tree , hf_index , ett_h245_SET_SIZE_1_16_OF_CustomPictureClockFrequency , SET_SIZE_1_16_OF_CustomPictureClockFrequency_set_of , 1 , 16 , FALSE ) ;\n return offset ;\n }"}
{"idx": 1707, "target": 0, "func": "static int proc_setconfig ( struct usb_dev_state * ps , void __user * arg ) {\n int u ;\n int status = 0 ;\n struct usb_host_config * actconfig ;\n if ( get_user ( u , ( int __user * ) arg ) ) return - EFAULT ;\n actconfig = ps -> dev -> actconfig ;\n if ( actconfig ) {\n int i ;\n for ( i = 0 ;\n i < actconfig -> desc . bNumInterfaces ;\n ++ i ) {\n if ( usb_interface_claimed ( actconfig -> interface [ i ] ) ) {\n dev_warn ( & ps -> dev -> dev , \"usbfs: interface %d claimed by %s \" \"while '%s' sets config #%d\\n\" , actconfig -> interface [ i ] -> cur_altsetting -> desc . bInterfaceNumber , actconfig -> interface [ i ] -> dev . driver -> name , current -> comm , u ) ;\n status = - EBUSY ;\n break ;\n }\n }\n }\n if ( status == 0 ) {\n if ( actconfig && actconfig -> desc . bConfigurationValue == u ) status = usb_reset_configuration ( ps -> dev ) ;\n else status = usb_set_configuration ( ps -> dev , u ) ;\n }\n return status ;\n }"}
{"idx": 1708, "target": 0, "func": "hb_bool_t hb_set_next_range ( const hb_set_t * set , hb_codepoint_t * first , hb_codepoint_t * last ) {\n return set -> next_range ( first , last ) ;\n }"}
{"idx": 1709, "target": 0, "func": "static void parse_from_existing ( struct branch * b ) {\n if ( is_null_sha1 ( b -> sha1 ) ) {\n hashclr ( b -> branch_tree . versions [ 0 ] . sha1 ) ;\n hashclr ( b -> branch_tree . versions [ 1 ] . sha1 ) ;\n }\n else {\n unsigned long size ;\n char * buf ;\n buf = read_object_with_reference ( b -> sha1 , commit_type , & size , b -> sha1 ) ;\n parse_from_commit ( b , buf , size ) ;\n free ( buf ) ;\n }\n }"}
{"idx": 1710, "target": 0, "func": "static void dtap_bcc_status ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n ELEM_MAND_LV ( GSM_A_PDU_TYPE_DTAP , DE_BCC_CAUSE , NULL ) ;\n ELEM_OPT_TV_SHORT ( 0xa0 , GSM_A_PDU_TYPE_DTAP , DE_BCC_CALL_STATE , NULL ) ;\n ELEM_OPT_TV_SHORT ( 0xb0 , GSM_A_PDU_TYPE_DTAP , DE_BCC_STATE_ATTR , NULL ) ;\n }"}
{"idx": 1711, "target": 0, "func": "static int dissect_h245_G729Extensions ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_G729Extensions , G729Extensions_sequence ) ;\n return offset ;\n }"}
{"idx": 1712, "target": 0, "func": "static void pvfc_fmt_release_num ( gchar * result , guint32 release_nr ) {\n g_snprintf ( result , ITEM_LABEL_LENGTH , \"%d (%d.%d.%d)\" , release_nr , release_nr / 10000 , ( release_nr % 10000 ) / 100 , ( release_nr % 10000 ) % 100 ) ;\n }"}
{"idx": 1713, "target": 0, "func": "apr_status_t modsecurity_tx_init ( modsec_rec * msr ) {\n const char * s = NULL ;\n const apr_array_header_t * arr ;\n char * semicolon = NULL ;\n char * comma = NULL ;\n apr_table_entry_t * te ;\n int i ;\n apr_pool_cleanup_register ( msr -> mp , msr , modsecurity_tx_cleanup , apr_pool_cleanup_null ) ;\n msr -> request_content_length = - 1 ;\n s = apr_table_get ( msr -> request_headers , \"Content-Length\" ) ;\n if ( s != NULL ) {\n msr -> request_content_length = strtol ( s , NULL , 10 ) ;\n }\n msr -> reqbody_chunked = 0 ;\n msr -> reqbody_should_exist = 0 ;\n if ( msr -> request_content_length == - 1 ) {\n char * transfer_encoding = ( char * ) apr_table_get ( msr -> request_headers , \"Transfer-Encoding\" ) ;\n if ( ( transfer_encoding != NULL ) && ( m_strcasestr ( transfer_encoding , \"chunked\" ) != NULL ) ) {\n msr -> reqbody_should_exist = 1 ;\n msr -> reqbody_chunked = 1 ;\n }\n }\n else {\n msr -> reqbody_should_exist = 1 ;\n }\n msr -> request_content_type = NULL ;\n s = apr_table_get ( msr -> request_headers , \"Content-Type\" ) ;\n if ( s != NULL ) msr -> request_content_type = s ;\n if ( ( msr -> request_content_type != NULL ) && ( strncasecmp ( msr -> request_content_type , \"application/x-www-form-urlencoded\" , 33 ) == 0 ) ) {\n msr -> msc_reqbody_storage = MSC_REQBODY_MEMORY ;\n msr -> msc_reqbody_spilltodisk = 0 ;\n msr -> msc_reqbody_processor = \"URLENCODED\" ;\n }\n else {\n if ( ( msr -> request_content_length != - 1 ) && ( msr -> request_content_length > msr -> txcfg -> reqbody_inmemory_limit ) ) {\n msr -> msc_reqbody_storage = MSC_REQBODY_DISK ;\n }\n msr -> msc_reqbody_storage = MSC_REQBODY_MEMORY ;\n msr -> msc_reqbody_spilltodisk = 1 ;\n if ( msr -> request_content_type != NULL ) {\n if ( strncasecmp ( msr -> request_content_type , \"multipart/form-data\" , 19 ) == 0 ) {\n msr -> msc_reqbody_processor = \"MULTIPART\" ;\n }\n }\n }\n if ( msr -> txcfg -> reqbody_buffering != REQUEST_BODY_FORCEBUF_OFF ) {\n msr -> msc_reqbody_storage = MSC_REQBODY_MEMORY ;\n msr -> msc_reqbody_spilltodisk = 0 ;\n }\n msr -> arguments = apr_table_make ( msr -> mp , 32 ) ;\n if ( msr -> arguments == NULL ) return - 1 ;\n if ( msr -> query_string != NULL ) {\n int invalid_count = 0 ;\n if ( parse_arguments ( msr , msr -> query_string , strlen ( msr -> query_string ) , msr -> txcfg -> argument_separator , \"QUERY_STRING\" , msr -> arguments , & invalid_count ) < 0 ) {\n msr_log ( msr , 1 , \"Initialisation: Error occurred while parsing QUERY_STRING arguments.\" ) ;\n return - 1 ;\n }\n if ( invalid_count ) {\n msr -> urlencoded_error = 1 ;\n }\n }\n msr -> arguments_to_sanitize = apr_table_make ( msr -> mp , 16 ) ;\n if ( msr -> arguments_to_sanitize == NULL ) return - 1 ;\n msr -> request_headers_to_sanitize = apr_table_make ( msr -> mp , 16 ) ;\n if ( msr -> request_headers_to_sanitize == NULL ) return - 1 ;\n msr -> response_headers_to_sanitize = apr_table_make ( msr -> mp , 16 ) ;\n if ( msr -> response_headers_to_sanitize == NULL ) return - 1 ;\n msr -> pattern_to_sanitize = apr_table_make ( msr -> mp , 32 ) ;\n if ( msr -> pattern_to_sanitize == NULL ) return - 1 ;\n msr -> removed_targets = apr_table_make ( msr -> mp , 16 ) ;\n if ( msr -> removed_targets == NULL ) return - 1 ;\n msr -> request_cookies = apr_table_make ( msr -> mp , 16 ) ;\n if ( msr -> request_cookies == NULL ) return - 1 ;\n msr -> matched_vars = apr_table_make ( msr -> mp , 8 ) ;\n if ( msr -> matched_vars == NULL ) return - 1 ;\n apr_table_clear ( msr -> matched_vars ) ;\n msr -> perf_rules = apr_table_make ( msr -> mp , 8 ) ;\n if ( msr -> perf_rules == NULL ) return - 1 ;\n apr_table_clear ( msr -> perf_rules ) ;\n arr = apr_table_elts ( msr -> request_headers ) ;\n te = ( apr_table_entry_t * ) arr -> elts ;\n for ( i = 0 ;\n i < arr -> nelts ;\n i ++ ) {\n if ( strcasecmp ( te [ i ] . key , \"Cookie\" ) == 0 ) {\n if ( msr -> txcfg -> cookie_format == COOKIES_V0 ) {\n semicolon = apr_pstrdup ( msr -> mp , te [ i ] . val ) ;\n while ( ( * semicolon != 0 ) && ( * semicolon != ';\n' ) ) semicolon ++ ;\n if ( * semicolon == ';\n' ) {\n parse_cookies_v0 ( msr , te [ i ] . val , msr -> request_cookies , \";\n\" ) ;\n }\n else {\n comma = apr_pstrdup ( msr -> mp , te [ i ] . val ) ;\n while ( ( * comma != 0 ) && ( * comma != ',' ) ) comma ++ ;\n if ( * comma == ',' ) {\n comma ++ ;\n if ( * comma == 0x20 ) {\n if ( msr -> txcfg -> debuglog_level >= 5 ) {\n msr_log ( msr , 5 , \"Cookie v0 parser: Using comma as a separator. Semi-colon was not identified!\" ) ;\n }\n parse_cookies_v0 ( msr , te [ i ] . val , msr -> request_cookies , \",\" ) ;\n }\n else {\n parse_cookies_v0 ( msr , te [ i ] . val , msr -> request_cookies , \";\n\" ) ;\n }\n }\n else {\n parse_cookies_v0 ( msr , te [ i ] . val , msr -> request_cookies , \";\n\" ) ;\n }\n }\n }\n else {\n parse_cookies_v1 ( msr , te [ i ] . val , msr -> request_cookies ) ;\n }\n }\n }\n msr -> tx_vars = apr_table_make ( msr -> mp , 32 ) ;\n if ( msr -> tx_vars == NULL ) return - 1 ;\n msr -> geo_vars = apr_table_make ( msr -> mp , 8 ) ;\n if ( msr -> geo_vars == NULL ) return - 1 ;\n msr -> collections_original = apr_table_make ( msr -> mp , 8 ) ;\n if ( msr -> collections_original == NULL ) return - 1 ;\n msr -> collections = apr_table_make ( msr -> mp , 8 ) ;\n if ( msr -> collections == NULL ) return - 1 ;\n msr -> collections_dirty = apr_table_make ( msr -> mp , 8 ) ;\n if ( msr -> collections_dirty == NULL ) return - 1 ;\n msr -> tcache = NULL ;\n msr -> tcache_items = 0 ;\n msr -> matched_rules = apr_array_make ( msr -> mp , 16 , sizeof ( void * ) ) ;\n if ( msr -> matched_rules == NULL ) return - 1 ;\n msr -> matched_var = ( msc_string * ) apr_pcalloc ( msr -> mp , sizeof ( msc_string ) ) ;\n if ( msr -> matched_var == NULL ) return - 1 ;\n msr -> highest_severity = 255 ;\n msr -> removed_rules = apr_array_make ( msr -> mp , 16 , sizeof ( char * ) ) ;\n if ( msr -> removed_rules == NULL ) return - 1 ;\n msr -> removed_rules_tag = apr_array_make ( msr -> mp , 16 , sizeof ( char * ) ) ;\n if ( msr -> removed_rules_tag == NULL ) return - 1 ;\n msr -> removed_rules_msg = apr_array_make ( msr -> mp , 16 , sizeof ( char * ) ) ;\n if ( msr -> removed_rules_msg == NULL ) return - 1 ;\n return 1 ;\n }"}
{"idx": 1714, "target": 0, "func": "static void vc1_apply_p_loop_filter ( VC1Context * v ) {\n MpegEncContext * s = & v -> s ;\n int i ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n vc1_apply_p_v_loop_filter ( v , i ) ;\n }\n if ( s -> mb_x ) {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n vc1_apply_p_h_loop_filter ( v , i ) ;\n }\n if ( s -> mb_x == s -> mb_width - 1 ) {\n s -> mb_x ++ ;\n ff_update_block_index ( s ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n vc1_apply_p_h_loop_filter ( v , i ) ;\n }\n }\n }\n }"}
{"idx": 1715, "target": 1, "func": "static int decode_frame ( WMAProDecodeCtx * s , AVFrame * frame , int * got_frame_ptr ) {\n AVCodecContext * avctx = s -> avctx ;\n GetBitContext * gb = & s -> gb ;\n int more_frames = 0 ;\n int len = 0 ;\n int i , ret ;\n if ( s -> len_prefix ) len = get_bits ( gb , s -> log2_frame_size ) ;\n av_dlog ( s -> avctx , \"decoding frame with length %x\\n\" , len ) ;\n if ( decode_tilehdr ( s ) ) {\n s -> packet_loss = 1 ;\n return 0 ;\n }\n if ( s -> avctx -> channels > 1 && get_bits1 ( gb ) ) {\n if ( get_bits1 ( gb ) ) {\n for ( i = 0 ;\n i < avctx -> channels * avctx -> channels ;\n i ++ ) skip_bits ( gb , 4 ) ;\n }\n }\n if ( s -> dynamic_range_compression ) {\n s -> drc_gain = get_bits ( gb , 8 ) ;\n av_dlog ( s -> avctx , \"drc_gain %i\\n\" , s -> drc_gain ) ;\n }\n if ( get_bits1 ( gb ) ) {\n int av_unused skip ;\n if ( get_bits1 ( gb ) ) {\n skip = get_bits ( gb , av_log2 ( s -> samples_per_frame * 2 ) ) ;\n av_dlog ( s -> avctx , \"start skip: %i\\n\" , skip ) ;\n }\n if ( get_bits1 ( gb ) ) {\n skip = get_bits ( gb , av_log2 ( s -> samples_per_frame * 2 ) ) ;\n av_dlog ( s -> avctx , \"end skip: %i\\n\" , skip ) ;\n }\n }\n av_dlog ( s -> avctx , \"BITSTREAM: frame header length was %i\\n\" , get_bits_count ( gb ) - s -> frame_offset ) ;\n s -> parsed_all_subframes = 0 ;\n for ( i = 0 ;\n i < avctx -> channels ;\n i ++ ) {\n s -> channel [ i ] . decoded_samples = 0 ;\n s -> channel [ i ] . cur_subframe = 0 ;\n s -> channel [ i ] . reuse_sf = 0 ;\n }\n while ( ! s -> parsed_all_subframes ) {\n if ( decode_subframe ( s ) < 0 ) {\n s -> packet_loss = 1 ;\n return 0 ;\n }\n }\n frame -> nb_samples = s -> samples_per_frame ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n s -> packet_loss = 1 ;\n return 0 ;\n }\n for ( i = 0 ;\n i < avctx -> channels ;\n i ++ ) memcpy ( frame -> extended_data [ i ] , s -> channel [ i ] . out , s -> samples_per_frame * sizeof ( * s -> channel [ i ] . out ) ) ;\n for ( i = 0 ;\n i < avctx -> channels ;\n i ++ ) {\n memcpy ( & s -> channel [ i ] . out [ 0 ] , & s -> channel [ i ] . out [ s -> samples_per_frame ] , s -> samples_per_frame * sizeof ( * s -> channel [ i ] . out ) >> 1 ) ;\n }\n if ( s -> skip_frame ) {\n s -> skip_frame = 0 ;\n * got_frame_ptr = 0 ;\n }\n else {\n * got_frame_ptr = 1 ;\n }\n if ( s -> len_prefix ) {\n if ( len != ( get_bits_count ( gb ) - s -> frame_offset ) + 2 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"frame[%i] would have to skip %i bits\\n\" , s -> frame_num , len - ( get_bits_count ( gb ) - s -> frame_offset ) - 1 ) ;\n s -> packet_loss = 1 ;\n return 0 ;\n }\n skip_bits_long ( gb , len - ( get_bits_count ( gb ) - s -> frame_offset ) - 1 ) ;\n }\n else {\n while ( get_bits_count ( gb ) < s -> num_saved_bits && get_bits1 ( gb ) == 0 ) {\n }\n }\n more_frames = get_bits1 ( gb ) ;\n ++ s -> frame_num ;\n return more_frames ;\n }"}
{"idx": 1716, "target": 1, "func": "static unsigned long xmlHashComputeQKey ( xmlHashTablePtr table , const xmlChar * prefix , const xmlChar * name , const xmlChar * prefix2 , const xmlChar * name2 , const xmlChar * prefix3 , const xmlChar * name3 ) {\n unsigned long value = 0L ;\n char ch ;\n if ( prefix != NULL ) value += 30 * ( * prefix ) ;\n else value += 30 * ( * name ) ;\n if ( prefix != NULL ) {\n while ( ( ch = * prefix ++ ) != 0 ) {\n value = value ^ ( ( value << 5 ) + ( value >> 3 ) + ( unsigned long ) ch ) ;\n }\n value = value ^ ( ( value << 5 ) + ( value >> 3 ) + ( unsigned long ) ':' ) ;\n }\n if ( name != NULL ) {\n while ( ( ch = * name ++ ) != 0 ) {\n value = value ^ ( ( value << 5 ) + ( value >> 3 ) + ( unsigned long ) ch ) ;\n }\n }\n if ( prefix2 != NULL ) {\n while ( ( ch = * prefix2 ++ ) != 0 ) {\n value = value ^ ( ( value << 5 ) + ( value >> 3 ) + ( unsigned long ) ch ) ;\n }\n value = value ^ ( ( value << 5 ) + ( value >> 3 ) + ( unsigned long ) ':' ) ;\n }\n if ( name2 != NULL ) {\n while ( ( ch = * name2 ++ ) != 0 ) {\n value = value ^ ( ( value << 5 ) + ( value >> 3 ) + ( unsigned long ) ch ) ;\n }\n }\n if ( prefix3 != NULL ) {\n while ( ( ch = * prefix3 ++ ) != 0 ) {\n value = value ^ ( ( value << 5 ) + ( value >> 3 ) + ( unsigned long ) ch ) ;\n }\n value = value ^ ( ( value << 5 ) + ( value >> 3 ) + ( unsigned long ) ':' ) ;\n }\n if ( name3 != NULL ) {\n while ( ( ch = * name3 ++ ) != 0 ) {\n value = value ^ ( ( value << 5 ) + ( value >> 3 ) + ( unsigned long ) ch ) ;\n }\n }\n return ( value % table -> size ) ;\n }"}
{"idx": 1717, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( UnloadTest , BrowserCloseInfiniteBeforeUnload ) {\n LoadUrlAndQuitBrowser ( INFINITE_BEFORE_UNLOAD_HTML , \"infinitebeforeunload\" ) ;\n }"}
{"idx": 1718, "target": 0, "func": "void abort_not_in_this_version ( ) {\n die ( \"Not available in this version of mysqltest\" ) ;\n }"}
{"idx": 1719, "target": 0, "func": "BN_ULONG bn_mul_words ( BN_ULONG * rp , const BN_ULONG * ap , int num , BN_ULONG w ) {\n BN_ULONG carry = 0 ;\n BN_ULONG bl , bh ;\n assert ( num >= 0 ) ;\n if ( num <= 0 ) return ( ( BN_ULONG ) 0 ) ;\n bl = LBITS ( w ) ;\n bh = HBITS ( w ) ;\n # ifndef OPENSSL_SMALL_FOOTPRINT while ( num & ~ 3 ) {\n mul ( rp [ 0 ] , ap [ 0 ] , bl , bh , carry ) ;\n mul ( rp [ 1 ] , ap [ 1 ] , bl , bh , carry ) ;\n mul ( rp [ 2 ] , ap [ 2 ] , bl , bh , carry ) ;\n mul ( rp [ 3 ] , ap [ 3 ] , bl , bh , carry ) ;\n ap += 4 ;\n rp += 4 ;\n num -= 4 ;\n }\n # endif while ( num ) {\n mul ( rp [ 0 ] , ap [ 0 ] , bl , bh , carry ) ;\n ap ++ ;\n rp ++ ;\n num -- ;\n }\n return ( carry ) ;\n }"}
{"idx": 1720, "target": 0, "func": "kadm5_ret_t kadm5_setkey_principal_3 ( void * server_handle , krb5_principal principal , krb5_boolean keepold , int n_ks_tuple , krb5_key_salt_tuple * ks_tuple , krb5_keyblock * keyblocks , int n_keys ) {\n krb5_db_entry * kdb ;\n osa_princ_ent_rec adb ;\n krb5_int32 now ;\n kadm5_policy_ent_rec pol ;\n krb5_key_data * old_key_data ;\n int n_old_keys ;\n int i , j , k , kvno , ret ;\n krb5_boolean have_pol = FALSE ;\n # if 0 int last_pwd ;\n # endif kadm5_server_handle_t handle = server_handle ;\n krb5_boolean similar ;\n krb5_keysalt keysalt ;\n krb5_key_data tmp_key_data ;\n krb5_key_data * tptr ;\n krb5_keyblock * act_mkey ;\n krb5_key_salt_tuple * ks_from_keys = NULL ;\n CHECK_HANDLE ( server_handle ) ;\n krb5_clear_error_message ( handle -> context ) ;\n if ( principal == NULL || keyblocks == NULL ) return EINVAL ;\n if ( hist_princ && ( ( krb5_principal_compare ( handle -> context , principal , hist_princ ) ) == TRUE ) ) return KADM5_PROTECT_PRINCIPAL ;\n if ( ( ret = kdb_get_entry ( handle , principal , & kdb , & adb ) ) ) return ( ret ) ;\n if ( ! n_ks_tuple ) {\n ret = make_ks_from_keys ( handle -> context , n_keys , keyblocks , & ks_from_keys ) ;\n if ( ret ) goto done ;\n ret = apply_keysalt_policy ( handle , adb . policy , n_keys , ks_from_keys , NULL , NULL ) ;\n free ( ks_from_keys ) ;\n }\n else {\n ret = apply_keysalt_policy ( handle , adb . policy , n_ks_tuple , ks_tuple , NULL , NULL ) ;\n }\n if ( ret ) goto done ;\n for ( i = 0 ;\n i < n_keys ;\n i ++ ) {\n for ( j = i + 1 ;\n j < n_keys ;\n j ++ ) {\n if ( ( ret = krb5_c_enctype_compare ( handle -> context , keyblocks [ i ] . enctype , keyblocks [ j ] . enctype , & similar ) ) ) return ( ret ) ;\n if ( similar ) {\n if ( n_ks_tuple ) {\n if ( ks_tuple [ i ] . ks_salttype == ks_tuple [ j ] . ks_salttype ) return KADM5_SETKEY_DUP_ENCTYPES ;\n }\n else return KADM5_SETKEY_DUP_ENCTYPES ;\n }\n }\n }\n if ( n_ks_tuple && n_ks_tuple != n_keys ) return KADM5_SETKEY3_ETYPE_MISMATCH ;\n for ( kvno = 0 , i = 0 ;\n i < kdb -> n_key_data ;\n i ++ ) if ( kdb -> key_data [ i ] . key_data_kvno > kvno ) kvno = kdb -> key_data [ i ] . key_data_kvno ;\n if ( keepold ) {\n old_key_data = kdb -> key_data ;\n n_old_keys = kdb -> n_key_data ;\n }\n else {\n if ( kdb -> key_data != NULL ) cleanup_key_data ( handle -> context , kdb -> n_key_data , kdb -> key_data ) ;\n n_old_keys = 0 ;\n old_key_data = NULL ;\n }\n kdb -> key_data = krb5_db_alloc ( handle -> context , NULL , ( n_keys + n_old_keys + 1 ) * sizeof ( krb5_key_data ) ) ;\n if ( kdb -> key_data == NULL ) {\n ret = ENOMEM ;\n goto done ;\n }\n memset ( kdb -> key_data , 0 , ( n_keys + n_old_keys ) * sizeof ( krb5_key_data ) ) ;\n kdb -> n_key_data = 0 ;\n for ( i = 0 ;\n i < n_keys ;\n i ++ ) {\n if ( n_ks_tuple ) {\n keysalt . type = ks_tuple [ i ] . ks_salttype ;\n keysalt . data . length = 0 ;\n keysalt . data . data = NULL ;\n if ( ks_tuple [ i ] . ks_enctype != keyblocks [ i ] . enctype ) {\n ret = KADM5_SETKEY3_ETYPE_MISMATCH ;\n goto done ;\n }\n }\n memset ( & tmp_key_data , 0 , sizeof ( tmp_key_data ) ) ;\n ret = kdb_get_active_mkey ( handle , NULL , & act_mkey ) ;\n if ( ret ) goto done ;\n ret = krb5_dbe_encrypt_key_data ( handle -> context , act_mkey , & keyblocks [ i ] , n_ks_tuple ? & keysalt : NULL , kvno + 1 , & tmp_key_data ) ;\n if ( ret ) goto done ;\n tptr = & kdb -> key_data [ i ] ;\n tptr -> key_data_ver = tmp_key_data . key_data_ver ;\n tptr -> key_data_kvno = tmp_key_data . key_data_kvno ;\n for ( k = 0 ;\n k < tmp_key_data . key_data_ver ;\n k ++ ) {\n tptr -> key_data_type [ k ] = tmp_key_data . key_data_type [ k ] ;\n tptr -> key_data_length [ k ] = tmp_key_data . key_data_length [ k ] ;\n if ( tmp_key_data . key_data_contents [ k ] ) {\n tptr -> key_data_contents [ k ] = krb5_db_alloc ( handle -> context , NULL , tmp_key_data . key_data_length [ k ] ) ;\n if ( tptr -> key_data_contents [ k ] == NULL ) {\n int i1 ;\n for ( i1 = k ;\n i1 < tmp_key_data . key_data_ver ;\n i1 ++ ) {\n if ( tmp_key_data . key_data_contents [ i1 ] ) {\n memset ( tmp_key_data . key_data_contents [ i1 ] , 0 , tmp_key_data . key_data_length [ i1 ] ) ;\n free ( tmp_key_data . key_data_contents [ i1 ] ) ;\n }\n }\n ret = ENOMEM ;\n goto done ;\n }\n memcpy ( tptr -> key_data_contents [ k ] , tmp_key_data . key_data_contents [ k ] , tmp_key_data . key_data_length [ k ] ) ;\n memset ( tmp_key_data . key_data_contents [ k ] , 0 , tmp_key_data . key_data_length [ k ] ) ;\n free ( tmp_key_data . key_data_contents [ k ] ) ;\n tmp_key_data . key_data_contents [ k ] = NULL ;\n }\n }\n kdb -> n_key_data ++ ;\n }\n for ( i = 0 ;\n i < n_old_keys ;\n i ++ ) {\n kdb -> key_data [ i + n_keys ] = old_key_data [ i ] ;\n memset ( & old_key_data [ i ] , 0 , sizeof ( krb5_key_data ) ) ;\n kdb -> n_key_data ++ ;\n }\n if ( old_key_data ) krb5_db_free ( handle -> context , old_key_data ) ;\n kdb -> attributes &= ~ KRB5_KDB_REQUIRES_PWCHANGE ;\n if ( ( ret = krb5_timeofday ( handle -> context , & now ) ) ) goto done ;\n if ( ( adb . aux_attributes & KADM5_POLICY ) ) {\n ret = get_policy ( handle , adb . policy , & pol , & have_pol ) ;\n if ( ret ) goto done ;\n }\n if ( have_pol ) {\n # if 0 if ( ret = krb5_dbe_lookup_last_pwd_change ( handle -> context , kdb , & last_pwd ) ) goto done ;\n if ( ( now - last_pwd ) < pol . pw_min_life && ! ( kdb -> attributes & KRB5_KDB_REQUIRES_PWCHANGE ) ) {\n ret = KADM5_PASS_TOOSOON ;\n goto done ;\n }\n # endif if ( pol . pw_max_life ) kdb -> pw_expiration = now + pol . pw_max_life ;\n else kdb -> pw_expiration = 0 ;\n }\n else {\n kdb -> pw_expiration = 0 ;\n }\n if ( ( ret = krb5_dbe_update_last_pwd_change ( handle -> context , kdb , now ) ) ) goto done ;\n kdb -> fail_auth_count = 0 ;\n if ( ( ret = kdb_put_entry ( handle , kdb , & adb ) ) ) goto done ;\n ret = KADM5_OK ;\n done : kdb_free_entry ( handle , kdb , & adb ) ;\n if ( have_pol ) kadm5_free_policy_ent ( handle -> lhandle , & pol ) ;\n return ret ;\n }"}
{"idx": 1721, "target": 0, "func": "static void convert_string_to_scalar ( char * value , double * scaledvalue , char * lobound , double * scaledlobound , char * hibound , double * scaledhibound ) {\n int rangelo , rangehi ;\n char * sptr ;\n rangelo = rangehi = ( unsigned char ) hibound [ 0 ] ;\n for ( sptr = lobound ;\n * sptr ;\n sptr ++ ) {\n if ( rangelo > ( unsigned char ) * sptr ) rangelo = ( unsigned char ) * sptr ;\n if ( rangehi < ( unsigned char ) * sptr ) rangehi = ( unsigned char ) * sptr ;\n }\n for ( sptr = hibound ;\n * sptr ;\n sptr ++ ) {\n if ( rangelo > ( unsigned char ) * sptr ) rangelo = ( unsigned char ) * sptr ;\n if ( rangehi < ( unsigned char ) * sptr ) rangehi = ( unsigned char ) * sptr ;\n }\n if ( rangelo <= 'Z' && rangehi >= 'A' ) {\n if ( rangelo > 'A' ) rangelo = 'A' ;\n if ( rangehi < 'Z' ) rangehi = 'Z' ;\n }\n if ( rangelo <= 'z' && rangehi >= 'a' ) {\n if ( rangelo > 'a' ) rangelo = 'a' ;\n if ( rangehi < 'z' ) rangehi = 'z' ;\n }\n if ( rangelo <= '9' && rangehi >= '0' ) {\n if ( rangelo > '0' ) rangelo = '0' ;\n if ( rangehi < '9' ) rangehi = '9' ;\n }\n if ( rangehi - rangelo < 9 ) {\n rangelo = ' ' ;\n rangehi = 127 ;\n }\n while ( * lobound ) {\n if ( * lobound != * hibound || * lobound != * value ) break ;\n lobound ++ , hibound ++ , value ++ ;\n }\n * scaledvalue = convert_one_string_to_scalar ( value , rangelo , rangehi ) ;\n * scaledlobound = convert_one_string_to_scalar ( lobound , rangelo , rangehi ) ;\n * scaledhibound = convert_one_string_to_scalar ( hibound , rangelo , rangehi ) ;\n }"}
{"idx": 1722, "target": 0, "func": "void grant_free ( void ) {\n DBUG_ENTER ( \"grant_free\" ) ;\n hash_free ( & column_priv_hash ) ;\n hash_free ( & proc_priv_hash ) ;\n hash_free ( & func_priv_hash ) ;\n free_root ( & memex , MYF ( 0 ) ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 1723, "target": 0, "func": "void http_init ( ) {\n static int init = 1 ;\n if ( init ) {\n init = 0 ;\n mime_init ( ) ;\n url_init ( ) ;\n HTTP_METHOD_CONNECT = hdrtoken_string_to_wks ( \"CONNECT\" ) ;\n HTTP_METHOD_DELETE = hdrtoken_string_to_wks ( \"DELETE\" ) ;\n HTTP_METHOD_GET = hdrtoken_string_to_wks ( \"GET\" ) ;\n HTTP_METHOD_HEAD = hdrtoken_string_to_wks ( \"HEAD\" ) ;\n HTTP_METHOD_ICP_QUERY = hdrtoken_string_to_wks ( \"ICP_QUERY\" ) ;\n HTTP_METHOD_OPTIONS = hdrtoken_string_to_wks ( \"OPTIONS\" ) ;\n HTTP_METHOD_POST = hdrtoken_string_to_wks ( \"POST\" ) ;\n HTTP_METHOD_PURGE = hdrtoken_string_to_wks ( \"PURGE\" ) ;\n HTTP_METHOD_PUT = hdrtoken_string_to_wks ( \"PUT\" ) ;\n HTTP_METHOD_TRACE = hdrtoken_string_to_wks ( \"TRACE\" ) ;\n HTTP_METHOD_PUSH = hdrtoken_string_to_wks ( \"PUSH\" ) ;\n HTTP_WKSIDX_CONNECT = hdrtoken_wks_to_index ( HTTP_METHOD_CONNECT ) ;\n HTTP_WKSIDX_METHODS_CNT ++ ;\n HTTP_WKSIDX_DELETE = hdrtoken_wks_to_index ( HTTP_METHOD_DELETE ) ;\n HTTP_WKSIDX_METHODS_CNT ++ ;\n HTTP_WKSIDX_GET = hdrtoken_wks_to_index ( HTTP_METHOD_GET ) ;\n HTTP_WKSIDX_METHODS_CNT ++ ;\n HTTP_WKSIDX_HEAD = hdrtoken_wks_to_index ( HTTP_METHOD_HEAD ) ;\n HTTP_WKSIDX_METHODS_CNT ++ ;\n HTTP_WKSIDX_ICP_QUERY = hdrtoken_wks_to_index ( HTTP_METHOD_ICP_QUERY ) ;\n HTTP_WKSIDX_METHODS_CNT ++ ;\n HTTP_WKSIDX_OPTIONS = hdrtoken_wks_to_index ( HTTP_METHOD_OPTIONS ) ;\n HTTP_WKSIDX_METHODS_CNT ++ ;\n HTTP_WKSIDX_POST = hdrtoken_wks_to_index ( HTTP_METHOD_POST ) ;\n HTTP_WKSIDX_METHODS_CNT ++ ;\n HTTP_WKSIDX_PURGE = hdrtoken_wks_to_index ( HTTP_METHOD_PURGE ) ;\n HTTP_WKSIDX_METHODS_CNT ++ ;\n HTTP_WKSIDX_PUT = hdrtoken_wks_to_index ( HTTP_METHOD_PUT ) ;\n HTTP_WKSIDX_METHODS_CNT ++ ;\n HTTP_WKSIDX_TRACE = hdrtoken_wks_to_index ( HTTP_METHOD_TRACE ) ;\n HTTP_WKSIDX_METHODS_CNT ++ ;\n HTTP_WKSIDX_PUSH = hdrtoken_wks_to_index ( HTTP_METHOD_PUSH ) ;\n HTTP_WKSIDX_METHODS_CNT ++ ;\n HTTP_LEN_CONNECT = hdrtoken_wks_to_length ( HTTP_METHOD_CONNECT ) ;\n HTTP_LEN_DELETE = hdrtoken_wks_to_length ( HTTP_METHOD_DELETE ) ;\n HTTP_LEN_GET = hdrtoken_wks_to_length ( HTTP_METHOD_GET ) ;\n HTTP_LEN_HEAD = hdrtoken_wks_to_length ( HTTP_METHOD_HEAD ) ;\n HTTP_LEN_ICP_QUERY = hdrtoken_wks_to_length ( HTTP_METHOD_ICP_QUERY ) ;\n HTTP_LEN_OPTIONS = hdrtoken_wks_to_length ( HTTP_METHOD_OPTIONS ) ;\n HTTP_LEN_POST = hdrtoken_wks_to_length ( HTTP_METHOD_POST ) ;\n HTTP_LEN_PURGE = hdrtoken_wks_to_length ( HTTP_METHOD_PURGE ) ;\n HTTP_LEN_PUT = hdrtoken_wks_to_length ( HTTP_METHOD_PUT ) ;\n HTTP_LEN_TRACE = hdrtoken_wks_to_length ( HTTP_METHOD_TRACE ) ;\n HTTP_LEN_PUSH = hdrtoken_wks_to_length ( HTTP_METHOD_PUSH ) ;\n HTTP_VALUE_BYTES = hdrtoken_string_to_wks ( \"bytes\" ) ;\n HTTP_VALUE_CHUNKED = hdrtoken_string_to_wks ( \"chunked\" ) ;\n HTTP_VALUE_CLOSE = hdrtoken_string_to_wks ( \"close\" ) ;\n HTTP_VALUE_COMPRESS = hdrtoken_string_to_wks ( \"compress\" ) ;\n HTTP_VALUE_DEFLATE = hdrtoken_string_to_wks ( \"deflate\" ) ;\n HTTP_VALUE_GZIP = hdrtoken_string_to_wks ( \"gzip\" ) ;\n HTTP_VALUE_IDENTITY = hdrtoken_string_to_wks ( \"identity\" ) ;\n HTTP_VALUE_KEEP_ALIVE = hdrtoken_string_to_wks ( \"keep-alive\" ) ;\n HTTP_VALUE_MAX_AGE = hdrtoken_string_to_wks ( \"max-age\" ) ;\n HTTP_VALUE_MAX_STALE = hdrtoken_string_to_wks ( \"max-stale\" ) ;\n HTTP_VALUE_MIN_FRESH = hdrtoken_string_to_wks ( \"min-fresh\" ) ;\n HTTP_VALUE_MUST_REVALIDATE = hdrtoken_string_to_wks ( \"must-revalidate\" ) ;\n HTTP_VALUE_NONE = hdrtoken_string_to_wks ( \"none\" ) ;\n HTTP_VALUE_NO_CACHE = hdrtoken_string_to_wks ( \"no-cache\" ) ;\n HTTP_VALUE_NO_STORE = hdrtoken_string_to_wks ( \"no-store\" ) ;\n HTTP_VALUE_NO_TRANSFORM = hdrtoken_string_to_wks ( \"no-transform\" ) ;\n HTTP_VALUE_ONLY_IF_CACHED = hdrtoken_string_to_wks ( \"only-if-cached\" ) ;\n HTTP_VALUE_PRIVATE = hdrtoken_string_to_wks ( \"private\" ) ;\n HTTP_VALUE_PROXY_REVALIDATE = hdrtoken_string_to_wks ( \"proxy-revalidate\" ) ;\n HTTP_VALUE_PUBLIC = hdrtoken_string_to_wks ( \"public\" ) ;\n HTTP_VALUE_S_MAXAGE = hdrtoken_string_to_wks ( \"s-maxage\" ) ;\n HTTP_VALUE_NEED_REVALIDATE_ONCE = hdrtoken_string_to_wks ( \"need-revalidate-once\" ) ;\n HTTP_VALUE_100_CONTINUE = hdrtoken_string_to_wks ( \"100-continue\" ) ;\n HTTP_LEN_BYTES = hdrtoken_wks_to_length ( HTTP_VALUE_BYTES ) ;\n HTTP_LEN_CHUNKED = hdrtoken_wks_to_length ( HTTP_VALUE_CHUNKED ) ;\n HTTP_LEN_CLOSE = hdrtoken_wks_to_length ( HTTP_VALUE_CLOSE ) ;\n HTTP_LEN_COMPRESS = hdrtoken_wks_to_length ( HTTP_VALUE_COMPRESS ) ;\n HTTP_LEN_DEFLATE = hdrtoken_wks_to_length ( HTTP_VALUE_DEFLATE ) ;\n HTTP_LEN_GZIP = hdrtoken_wks_to_length ( HTTP_VALUE_GZIP ) ;\n HTTP_LEN_IDENTITY = hdrtoken_wks_to_length ( HTTP_VALUE_IDENTITY ) ;\n HTTP_LEN_KEEP_ALIVE = hdrtoken_wks_to_length ( HTTP_VALUE_KEEP_ALIVE ) ;\n HTTP_LEN_MAX_AGE = hdrtoken_wks_to_length ( HTTP_VALUE_MAX_AGE ) ;\n HTTP_LEN_MAX_STALE = hdrtoken_wks_to_length ( HTTP_VALUE_MAX_STALE ) ;\n HTTP_LEN_MIN_FRESH = hdrtoken_wks_to_length ( HTTP_VALUE_MIN_FRESH ) ;\n HTTP_LEN_MUST_REVALIDATE = hdrtoken_wks_to_length ( HTTP_VALUE_MUST_REVALIDATE ) ;\n HTTP_LEN_NONE = hdrtoken_wks_to_length ( HTTP_VALUE_NONE ) ;\n HTTP_LEN_NO_CACHE = hdrtoken_wks_to_length ( HTTP_VALUE_NO_CACHE ) ;\n HTTP_LEN_NO_STORE = hdrtoken_wks_to_length ( HTTP_VALUE_NO_STORE ) ;\n HTTP_LEN_NO_TRANSFORM = hdrtoken_wks_to_length ( HTTP_VALUE_NO_TRANSFORM ) ;\n HTTP_LEN_ONLY_IF_CACHED = hdrtoken_wks_to_length ( HTTP_VALUE_ONLY_IF_CACHED ) ;\n HTTP_LEN_PRIVATE = hdrtoken_wks_to_length ( HTTP_VALUE_PRIVATE ) ;\n HTTP_LEN_PROXY_REVALIDATE = hdrtoken_wks_to_length ( HTTP_VALUE_PROXY_REVALIDATE ) ;\n HTTP_LEN_PUBLIC = hdrtoken_wks_to_length ( HTTP_VALUE_PUBLIC ) ;\n HTTP_LEN_S_MAXAGE = hdrtoken_wks_to_length ( HTTP_VALUE_S_MAXAGE ) ;\n HTTP_LEN_NEED_REVALIDATE_ONCE = hdrtoken_wks_to_length ( HTTP_VALUE_NEED_REVALIDATE_ONCE ) ;\n HTTP_LEN_100_CONTINUE = hdrtoken_wks_to_length ( HTTP_VALUE_100_CONTINUE ) ;\n # if 0 for ( int i = 0 ;\n i < ( int ) SIZEOF ( cache_control_values ) ;\n i ++ ) {\n cache_control_values [ i ] = hdrtoken_string_to_wks ( cache_control_names [ i ] ) ;\n }\n # endif }\n }"}
{"idx": 1724, "target": 0, "func": "void jpc_pi_destroy ( jpc_pi_t * pi ) {\n jpc_picomp_t * picomp ;\n int compno ;\n if ( pi -> picomps ) {\n for ( compno = 0 , picomp = pi -> picomps ;\n compno < pi -> numcomps ;\n ++ compno , ++ picomp ) {\n jpc_picomp_destroy ( picomp ) ;\n }\n jas_free ( pi -> picomps ) ;\n }\n if ( pi -> pchglist ) {\n jpc_pchglist_destroy ( pi -> pchglist ) ;\n }\n jas_free ( pi ) ;\n }"}
{"idx": 1725, "target": 0, "func": "EXCLUSIVE_REGRESSION_TEST ( SDK_API_HttpParentProxySet_Success ) ( RegressionTest * test , int level , int * pstatus ) {\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n if ( level < REGRESSION_TEST_EXTENDED ) {\n * pstatus = REGRESSION_TEST_NOT_RUN ;\n return ;\n }\n TSCont cont = TSContCreate ( parent_proxy_handler , TSMutexCreate ( ) ) ;\n if ( cont == nullptr ) {\n SDK_RPRINT ( test , \"TSHttpTxnParentProxySet\" , \"SuccessCase\" , TC_FAIL , \"Unable to create continuation\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n return ;\n }\n ParentTest * ptest = new ParentTest ( test , pstatus ) ;\n ptest -> testcase = \"SuccessCase\" ;\n ptest -> handler = parent_proxy_success ;\n TSContDataSet ( cont , ptest ) ;\n TSHttpHookAdd ( TS_HTTP_READ_REQUEST_HDR_HOOK , cont ) ;\n ptest -> os = synserver_create ( SYNSERVER_LISTEN_PORT , TSContCreate ( synserver_vc_accept , TSMutexCreate ( ) ) ) ;\n synserver_start ( ptest -> os ) ;\n TSContSchedule ( cont , 25 , TS_THREAD_POOL_DEFAULT ) ;\n }"}
{"idx": 1726, "target": 0, "func": "static void test_update ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n char szData [ 25 ] ;\n int nData = 1 ;\n MYSQL_RES * result ;\n MYSQL_BIND my_bind [ 2 ] ;\n ulong length [ 2 ] ;\n char query [ MAX_TEST_QUERY_LENGTH ] ;\n myheader ( \"test_update\" ) ;\n rc = mysql_autocommit ( mysql , TRUE ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_update\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_update(\" \"col1 int primary key auto_increment, \" \"col2 varchar(50), col3 int )\" ) ;\n myquery ( rc ) ;\n strmov ( query , \"INSERT INTO test_update(col2, col3) VALUES(?, ?)\" ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 2 ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 0 ] . buffer = szData ;\n my_bind [ 0 ] . buffer_length = sizeof ( szData ) ;\n my_bind [ 0 ] . length = & length [ 0 ] ;\n length [ 0 ] = sprintf ( szData , \"inserted-data\" ) ;\n my_bind [ 1 ] . buffer = ( void * ) & nData ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_LONG ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n nData = 100 ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n verify_affected_rows ( 1 ) ;\n mysql_stmt_close ( stmt ) ;\n strmov ( query , \"UPDATE test_update SET col2= ? WHERE col3= ?\" ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 2 ) ;\n nData = 100 ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 0 ] . buffer = szData ;\n my_bind [ 0 ] . buffer_length = sizeof ( szData ) ;\n my_bind [ 0 ] . length = & length [ 0 ] ;\n length [ 0 ] = sprintf ( szData , \"updated-data\" ) ;\n my_bind [ 1 ] . buffer = ( void * ) & nData ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_LONG ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n verify_affected_rows ( 1 ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"SELECT * FROM test_update\" ) ;\n myquery ( rc ) ;\n result = mysql_store_result ( mysql ) ;\n mytest ( result ) ;\n rc = my_process_result_set ( result ) ;\n DIE_UNLESS ( rc == 1 ) ;\n mysql_free_result ( result ) ;\n }"}
{"idx": 1727, "target": 0, "func": "static int mpeg_decode_slice ( MpegEncContext * s , int mb_y , const uint8_t * * buf , int buf_size ) {\n AVCodecContext * avctx = s -> avctx ;\n const int field_pic = s -> picture_structure != PICT_FRAME ;\n s -> resync_mb_x = s -> resync_mb_y = - 1 ;\n assert ( mb_y < s -> mb_height ) ;\n init_get_bits ( & s -> gb , * buf , buf_size * 8 ) ;\n ff_mpeg1_clean_buffers ( s ) ;\n s -> interlaced_dct = 0 ;\n s -> qscale = get_qscale ( s ) ;\n if ( s -> qscale == 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"qscale == 0\\n\" ) ;\n return - 1 ;\n }\n while ( get_bits1 ( & s -> gb ) != 0 ) {\n skip_bits ( & s -> gb , 8 ) ;\n }\n s -> mb_x = 0 ;\n if ( mb_y == 0 && s -> codec_tag == AV_RL32 ( \"SLIF\" ) ) {\n skip_bits1 ( & s -> gb ) ;\n }\n else {\n while ( get_bits_left ( & s -> gb ) > 0 ) {\n int code = get_vlc2 ( & s -> gb , mbincr_vlc . table , MBINCR_VLC_BITS , 2 ) ;\n if ( code < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"first mb_incr damaged\\n\" ) ;\n return - 1 ;\n }\n if ( code >= 33 ) {\n if ( code == 33 ) {\n s -> mb_x += 33 ;\n }\n }\n else {\n s -> mb_x += code ;\n break ;\n }\n }\n }\n if ( s -> mb_x >= ( unsigned ) s -> mb_width ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"initial skip overflow\\n\" ) ;\n return - 1 ;\n }\n if ( avctx -> hwaccel ) {\n const uint8_t * buf_end , * buf_start = * buf - 4 ;\n int start_code = - 1 ;\n buf_end = avpriv_mpv_find_start_code ( buf_start + 2 , * buf + buf_size , & start_code ) ;\n if ( buf_end < * buf + buf_size ) buf_end -= 4 ;\n s -> mb_y = mb_y ;\n if ( avctx -> hwaccel -> decode_slice ( avctx , buf_start , buf_end - buf_start ) < 0 ) return DECODE_SLICE_ERROR ;\n * buf = buf_end ;\n return DECODE_SLICE_OK ;\n }\n s -> resync_mb_x = s -> mb_x ;\n s -> resync_mb_y = s -> mb_y = mb_y ;\n s -> mb_skip_run = 0 ;\n ff_init_block_index ( s ) ;\n if ( s -> mb_y == 0 && s -> mb_x == 0 && ( s -> first_field || s -> picture_structure == PICT_FRAME ) ) {\n if ( s -> avctx -> debug & FF_DEBUG_PICT_INFO ) {\n av_log ( s -> avctx , AV_LOG_DEBUG , \"qp:%d fc:%2d%2d%2d%2d %s %s %s %s %s dc:%d pstruct:%d fdct:%d cmv:%d qtype:%d ivlc:%d rff:%d %s\\n\" , s -> qscale , s -> mpeg_f_code [ 0 ] [ 0 ] , s -> mpeg_f_code [ 0 ] [ 1 ] , s -> mpeg_f_code [ 1 ] [ 0 ] , s -> mpeg_f_code [ 1 ] [ 1 ] , s -> pict_type == AV_PICTURE_TYPE_I ? \"I\" : ( s -> pict_type == AV_PICTURE_TYPE_P ? \"P\" : ( s -> pict_type == AV_PICTURE_TYPE_B ? \"B\" : \"S\" ) ) , s -> progressive_sequence ? \"ps\" : \"\" , s -> progressive_frame ? \"pf\" : \"\" , s -> alternate_scan ? \"alt\" : \"\" , s -> top_field_first ? \"top\" : \"\" , s -> intra_dc_precision , s -> picture_structure , s -> frame_pred_frame_dct , s -> concealment_motion_vectors , s -> q_scale_type , s -> intra_vlc_format , s -> repeat_first_field , s -> chroma_420_type ? \"420\" : \"\" ) ;\n }\n }\n for ( ;\n ;\n ) {\n if ( CONFIG_MPEG_XVMC_DECODER && s -> avctx -> xvmc_acceleration > 1 ) ff_xvmc_init_block ( s ) ;\n if ( mpeg_decode_mb ( s , s -> block ) < 0 ) return - 1 ;\n if ( s -> current_picture . motion_val [ 0 ] && ! s -> encoding ) {\n const int wrap = s -> b8_stride ;\n int xy = s -> mb_x * 2 + s -> mb_y * 2 * wrap ;\n int b8_xy = 4 * ( s -> mb_x + s -> mb_y * s -> mb_stride ) ;\n int motion_x , motion_y , dir , i ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n for ( dir = 0 ;\n dir < 2 ;\n dir ++ ) {\n if ( s -> mb_intra || ( dir == 1 && s -> pict_type != AV_PICTURE_TYPE_B ) ) {\n motion_x = motion_y = 0 ;\n }\n else if ( s -> mv_type == MV_TYPE_16X16 || ( s -> mv_type == MV_TYPE_FIELD && field_pic ) ) {\n motion_x = s -> mv [ dir ] [ 0 ] [ 0 ] ;\n motion_y = s -> mv [ dir ] [ 0 ] [ 1 ] ;\n }\n else {\n motion_x = s -> mv [ dir ] [ i ] [ 0 ] ;\n motion_y = s -> mv [ dir ] [ i ] [ 1 ] ;\n }\n s -> current_picture . motion_val [ dir ] [ xy ] [ 0 ] = motion_x ;\n s -> current_picture . motion_val [ dir ] [ xy ] [ 1 ] = motion_y ;\n s -> current_picture . motion_val [ dir ] [ xy + 1 ] [ 0 ] = motion_x ;\n s -> current_picture . motion_val [ dir ] [ xy + 1 ] [ 1 ] = motion_y ;\n s -> current_picture . ref_index [ dir ] [ b8_xy ] = s -> current_picture . ref_index [ dir ] [ b8_xy + 1 ] = s -> field_select [ dir ] [ i ] ;\n assert ( s -> field_select [ dir ] [ i ] == 0 || s -> field_select [ dir ] [ i ] == 1 ) ;\n }\n xy += wrap ;\n b8_xy += 2 ;\n }\n }\n s -> dest [ 0 ] += 16 ;\n s -> dest [ 1 ] += 16 >> s -> chroma_x_shift ;\n s -> dest [ 2 ] += 16 >> s -> chroma_x_shift ;\n ff_MPV_decode_mb ( s , s -> block ) ;\n if ( ++ s -> mb_x >= s -> mb_width ) {\n const int mb_size = 16 ;\n ff_mpeg_draw_horiz_band ( s , mb_size * ( s -> mb_y >> field_pic ) , mb_size ) ;\n ff_MPV_report_decode_progress ( s ) ;\n s -> mb_x = 0 ;\n s -> mb_y += 1 << field_pic ;\n if ( s -> mb_y >= s -> mb_height ) {\n int left = get_bits_left ( & s -> gb ) ;\n int is_d10 = s -> chroma_format == 2 && s -> pict_type == AV_PICTURE_TYPE_I && avctx -> profile == 0 && avctx -> level == 5 && s -> intra_dc_precision == 2 && s -> q_scale_type == 1 && s -> alternate_scan == 0 && s -> progressive_frame == 0 ;\n if ( left < 0 || ( left && show_bits ( & s -> gb , FFMIN ( left , 23 ) ) && ! is_d10 ) || ( ( avctx -> err_recognition & AV_EF_BUFFER ) && left > 8 ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"end mismatch left=%d %0X\\n\" , left , show_bits ( & s -> gb , FFMIN ( left , 23 ) ) ) ;\n return - 1 ;\n }\n else goto eos ;\n }\n ff_init_block_index ( s ) ;\n }\n if ( s -> mb_skip_run == - 1 ) {\n s -> mb_skip_run = 0 ;\n for ( ;\n ;\n ) {\n int code = get_vlc2 ( & s -> gb , mbincr_vlc . table , MBINCR_VLC_BITS , 2 ) ;\n if ( code < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"mb incr damaged\\n\" ) ;\n return - 1 ;\n }\n if ( code >= 33 ) {\n if ( code == 33 ) {\n s -> mb_skip_run += 33 ;\n }\n else if ( code == 35 ) {\n if ( s -> mb_skip_run != 0 || show_bits ( & s -> gb , 15 ) != 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"slice mismatch\\n\" ) ;\n return - 1 ;\n }\n goto eos ;\n }\n }\n else {\n s -> mb_skip_run += code ;\n break ;\n }\n }\n if ( s -> mb_skip_run ) {\n int i ;\n if ( s -> pict_type == AV_PICTURE_TYPE_I ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"skipped MB in I frame at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n s -> mb_intra = 0 ;\n for ( i = 0 ;\n i < 12 ;\n i ++ ) s -> block_last_index [ i ] = - 1 ;\n if ( s -> picture_structure == PICT_FRAME ) s -> mv_type = MV_TYPE_16X16 ;\n else s -> mv_type = MV_TYPE_FIELD ;\n if ( s -> pict_type == AV_PICTURE_TYPE_P ) {\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = s -> mv [ 0 ] [ 0 ] [ 1 ] = 0 ;\n s -> last_mv [ 0 ] [ 0 ] [ 0 ] = s -> last_mv [ 0 ] [ 0 ] [ 1 ] = 0 ;\n s -> last_mv [ 0 ] [ 1 ] [ 0 ] = s -> last_mv [ 0 ] [ 1 ] [ 1 ] = 0 ;\n s -> field_select [ 0 ] [ 0 ] = ( s -> picture_structure - 1 ) & 1 ;\n }\n else {\n s -> mv [ 0 ] [ 0 ] [ 0 ] = s -> last_mv [ 0 ] [ 0 ] [ 0 ] ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = s -> last_mv [ 0 ] [ 0 ] [ 1 ] ;\n s -> mv [ 1 ] [ 0 ] [ 0 ] = s -> last_mv [ 1 ] [ 0 ] [ 0 ] ;\n s -> mv [ 1 ] [ 0 ] [ 1 ] = s -> last_mv [ 1 ] [ 0 ] [ 1 ] ;\n }\n }\n }\n }\n eos : * buf += ( get_bits_count ( & s -> gb ) - 1 ) / 8 ;\n av_dlog ( s , \"y %d %d %d %d\\n\" , s -> resync_mb_x , s -> resync_mb_y , s -> mb_x , s -> mb_y ) ;\n return 0 ;\n }"}
{"idx": 1728, "target": 0, "func": "static int do_execstack ( i_ctx_t * i_ctx_p , bool include_marks , bool include_oparrays , os_ptr op1 ) {\n os_ptr op = osp ;\n ref * arefs = op1 -> value . refs ;\n uint asize = r_size ( op1 ) ;\n uint i ;\n ref * rq ;\n for ( i = 0 , rq = arefs + asize ;\n rq != arefs ;\n ++ i ) {\n const ref * rp = ref_stack_index ( & e_stack , ( long ) i ) ;\n if ( r_has_type_attrs ( rp , t_null , a_executable ) && ! include_marks ) continue ;\n -- rq ;\n ref_assign_old ( op1 , rq , rp , \"execstack\" ) ;\n switch ( r_type ( rq ) ) {\n case t_operator : {\n uint opidx = op_index ( rq ) ;\n if ( opidx == 0 || op_def_is_internal ( op_index_def ( opidx ) ) ) r_clear_attrs ( rq , a_executable ) ;\n break ;\n }\n case t_struct : case t_astruct : {\n const char * tname = rq -> value . pstruct ? gs_struct_type_name_string ( gs_object_type ( imemory , rq -> value . pstruct ) ) : \"NULL\" ;\n make_const_string ( rq , a_readonly | avm_foreign , strlen ( tname ) , ( const byte * ) tname ) ;\n break ;\n }\n case t_array : case t_shortarray : case t_mixedarray : if ( ! include_oparrays && errorexec_find ( i_ctx_p , rq ) < 0 ) make_null ( rq ) ;\n break ;\n default : ;\n }\n }\n pop ( op - op1 ) ;\n return 0 ;\n }"}
{"idx": 1729, "target": 0, "func": "void vp9_idct8x8_add ( const tran_low_t * input , uint8_t * dest , int stride , int eob ) {\n if ( eob == 1 ) vp9_idct8x8_1_add ( input , dest , stride ) ;\n else if ( eob <= 12 ) vp9_idct8x8_12_add ( input , dest , stride ) ;\n else vp9_idct8x8_64_add ( input , dest , stride ) ;\n }"}
{"idx": 1730, "target": 0, "func": "static void cwd_globals_dtor ( virtual_cwd_globals * cwd_g TSRMLS_DC ) {\n CWD_STATE_FREE ( & cwd_g -> cwd ) ;\n realpath_cache_clean ( TSRMLS_C ) ;\n }"}
{"idx": 1731, "target": 0, "func": "static VALUE mString_Extend_json_create ( VALUE self , VALUE o ) {\n VALUE ary ;\n Check_Type ( o , T_HASH ) ;\n ary = rb_hash_aref ( o , rb_str_new2 ( \"raw\" ) ) ;\n return rb_funcall ( ary , i_pack , 1 , rb_str_new2 ( \"C*\" ) ) ;\n }"}
{"idx": 1732, "target": 1, "func": "static int remoteStreamHandleWriteData ( struct qemud_client * client , struct qemud_client_stream * stream , struct qemud_client_message * msg ) {\n remote_error rerr ;\n int ret ;\n VIR_DEBUG ( \"stream=%p proc=%d serial=%d len=%d offset=%d\" , stream , msg -> hdr . proc , msg -> hdr . serial , msg -> bufferLength , msg -> bufferOffset ) ;\n memset ( & rerr , 0 , sizeof rerr ) ;\n ret = virStreamSend ( stream -> st , msg -> buffer + msg -> bufferOffset , msg -> bufferLength - msg -> bufferOffset ) ;\n if ( ret > 0 ) {\n msg -> bufferOffset += ret ;\n if ( msg -> bufferOffset < msg -> bufferLength ) return 1 ;\n }\n else if ( ret == - 2 ) {\n return 1 ;\n }\n else {\n VIR_INFO0 ( \"Stream send failed\" ) ;\n stream -> closed = 1 ;\n remoteDispatchConnError ( & rerr , client -> conn ) ;\n return remoteSerializeReplyError ( client , & rerr , & msg -> hdr ) ;\n }\n return 0 ;\n }"}
{"idx": 1733, "target": 0, "func": "static void add_peak ( int period , int width , const float * shape , float ppc_gain , float * speech , int len ) {\n int i , j ;\n const float * shape_end = shape + len ;\n int center ;\n for ( i = 0 ;\n i < width / 2 ;\n i ++ ) speech [ i ] += ppc_gain * * shape ++ ;\n for ( i = 1 ;\n i < ROUNDED_DIV ( len , width ) ;\n i ++ ) {\n center = very_broken_op ( period , i ) ;\n for ( j = - width / 2 ;\n j < ( width + 1 ) / 2 ;\n j ++ ) speech [ j + center ] += ppc_gain * * shape ++ ;\n }\n center = very_broken_op ( period , i ) ;\n for ( j = - width / 2 ;\n j < ( width + 1 ) / 2 && shape < shape_end ;\n j ++ ) speech [ j + center ] += ppc_gain * * shape ++ ;\n }"}
{"idx": 1734, "target": 0, "func": "static int AnyInstructions ( SplineFont * sf ) {\n int i ;\n if ( sf -> subfontcnt != 0 ) {\n for ( i = 0 ;\n i < sf -> subfontcnt ;\n ++ i ) if ( AnyInstructions ( sf -> subfonts [ i ] ) ) return ( true ) ;\n }\n else {\n for ( i = 0 ;\n i < sf -> glyphcnt ;\n ++ i ) if ( sf -> glyphs [ i ] != NULL ) {\n if ( sf -> glyphs [ i ] -> ttf_instrs_len != 0 ) return ( true ) ;\n }\n }\n return ( false ) ;\n }"}
{"idx": 1735, "target": 0, "func": "static uint8_t one_code ( Gif_Context * gfc , Gif_Code code ) {\n uint8_t * suffixes = gfc -> suffix ;\n Gif_Code * prefixes = gfc -> prefix ;\n uint8_t * ptr ;\n int lastsuffix = 0 ;\n int codelength = gfc -> length [ code ] ;\n gfc -> decodepos += codelength ;\n ptr = gfc -> image + gfc -> decodepos ;\n while ( codelength > 0 ) {\n lastsuffix = suffixes [ code ] ;\n code = prefixes [ code ] ;\n -- ptr ;\n if ( ptr < gfc -> maximage ) * ptr = lastsuffix ;\n -- codelength ;\n }\n return lastsuffix ;\n }"}
{"idx": 1736, "target": 0, "func": "static void imc_calculate_coeffs ( IMCContext * q , float * flcoeffs1 , float * flcoeffs2 , int * bandWidthT , float * flcoeffs3 , float * flcoeffs5 ) {\n float workT1 [ BANDS ] ;\n float workT2 [ BANDS ] ;\n float workT3 [ BANDS ] ;\n float snr_limit = 1.e-30 ;\n float accum = 0.0 ;\n int i , cnt2 ;\n for ( i = 0 ;\n i < BANDS ;\n i ++ ) {\n flcoeffs5 [ i ] = workT2 [ i ] = 0.0 ;\n if ( bandWidthT [ i ] ) {\n workT1 [ i ] = flcoeffs1 [ i ] * flcoeffs1 [ i ] ;\n flcoeffs3 [ i ] = 2.0 * flcoeffs2 [ i ] ;\n }\n else {\n workT1 [ i ] = 0.0 ;\n flcoeffs3 [ i ] = - 30000.0 ;\n }\n workT3 [ i ] = bandWidthT [ i ] * workT1 [ i ] * 0.01 ;\n if ( workT3 [ i ] <= snr_limit ) workT3 [ i ] = 0.0 ;\n }\n for ( i = 0 ;\n i < BANDS ;\n i ++ ) {\n for ( cnt2 = i ;\n cnt2 < q -> cyclTab [ i ] ;\n cnt2 ++ ) flcoeffs5 [ cnt2 ] = flcoeffs5 [ cnt2 ] + workT3 [ i ] ;\n workT2 [ cnt2 - 1 ] = workT2 [ cnt2 - 1 ] + workT3 [ i ] ;\n }\n for ( i = 1 ;\n i < BANDS ;\n i ++ ) {\n accum = ( workT2 [ i - 1 ] + accum ) * q -> weights1 [ i - 1 ] ;\n flcoeffs5 [ i ] += accum ;\n }\n for ( i = 0 ;\n i < BANDS ;\n i ++ ) workT2 [ i ] = 0.0 ;\n for ( i = 0 ;\n i < BANDS ;\n i ++ ) {\n for ( cnt2 = i - 1 ;\n cnt2 > q -> cyclTab2 [ i ] ;\n cnt2 -- ) flcoeffs5 [ cnt2 ] += workT3 [ i ] ;\n workT2 [ cnt2 + 1 ] += workT3 [ i ] ;\n }\n accum = 0.0 ;\n for ( i = BANDS - 2 ;\n i >= 0 ;\n i -- ) {\n accum = ( workT2 [ i + 1 ] + accum ) * q -> weights2 [ i ] ;\n flcoeffs5 [ i ] += accum ;\n }\n }"}
{"idx": 1737, "target": 1, "func": "static inline int handle_cpu_signal ( uintptr_t pc , unsigned long address , int is_write , sigset_t * old_set , void * puc ) {\n int ret ;\n # if defined ( DEBUG_SIGNAL ) qemu_printf ( \"qemu: SIGSEGV pc=0x%08lx address=%08lx w=%d oldset=0x%08lx\\n\" , pc , address , is_write , * ( unsigned long * ) old_set ) ;\n # endif if ( is_write && h2g_valid ( address ) && page_unprotect ( h2g ( address ) , pc , puc ) ) {\n return 1 ;\n }\n ret = cpu_handle_mmu_fault ( cpu_single_env , address , is_write , MMU_USER_IDX ) ;\n if ( ret < 0 ) {\n return 0 ;\n }\n if ( ret == 0 ) {\n return 1 ;\n }\n cpu_restore_state ( cpu_single_env , pc ) ;\n sigprocmask ( SIG_SETMASK , old_set , NULL ) ;\n exception_action ( cpu_single_env ) ;\n return 1 ;\n }"}
{"idx": 1738, "target": 0, "func": "static int matroska_ebmlnum_uint ( MatroskaDemuxContext * matroska , uint8_t * data , uint32_t size , uint64_t * num ) {\n AVIOContext pb ;\n ffio_init_context ( & pb , data , size , 0 , NULL , NULL , NULL , NULL ) ;\n return ebml_read_num ( matroska , & pb , FFMIN ( size , 8 ) , num ) ;\n }"}
{"idx": 1739, "target": 0, "func": "static void curses_connection_detail ( void * conn ) {\n struct conn_tail * c = ( struct conn_tail * ) conn ;\n char tmp [ MAX_ASCII_ADDR_LEN ] ;\n char * proto = \"\" ;\n char name [ MAX_HOSTNAME_LEN ] ;\n unsigned int row = 0 ;\n DEBUG_MSG ( \"curses_connection_detail\" ) ;\n if ( wdg_conn_detail ) {\n wdg_destroy_object ( & wdg_conn_detail ) ;\n wdg_conn_detail = NULL ;\n }\n wdg_create_object ( & wdg_conn_detail , WDG_WINDOW , WDG_OBJ_WANT_FOCUS ) ;\n wdg_set_title ( wdg_conn_detail , \"Connection detail:\" , WDG_ALIGN_LEFT ) ;\n wdg_set_size ( wdg_conn_detail , 1 , 2 , 75 , 23 ) ;\n wdg_set_color ( wdg_conn_detail , WDG_COLOR_SCREEN , EC_COLOR ) ;\n wdg_set_color ( wdg_conn_detail , WDG_COLOR_WINDOW , EC_COLOR ) ;\n wdg_set_color ( wdg_conn_detail , WDG_COLOR_BORDER , EC_COLOR_BORDER ) ;\n wdg_set_color ( wdg_conn_detail , WDG_COLOR_FOCUS , EC_COLOR_FOCUS ) ;\n wdg_set_color ( wdg_conn_detail , WDG_COLOR_TITLE , EC_COLOR_TITLE ) ;\n wdg_draw_object ( wdg_conn_detail ) ;\n wdg_set_focus ( wdg_conn_detail ) ;\n wdg_add_destroy_key ( wdg_conn_detail , CTRL ( 'Q' ) , NULL ) ;\n wdg_window_print ( wdg_conn_detail , 1 , ++ row , \"Source MAC address : %s\" , mac_addr_ntoa ( c -> co -> L2_addr1 , tmp ) ) ;\n wdg_window_print ( wdg_conn_detail , 1 , ++ row , \"Destination MAC address : %s\" , mac_addr_ntoa ( c -> co -> L2_addr2 , tmp ) ) ;\n ++ row ;\n wdg_window_print ( wdg_conn_detail , 1 , ++ row , \"Source IP address : %s\" , ip_addr_ntoa ( & ( c -> co -> L3_addr1 ) , tmp ) ) ;\n if ( host_iptoa ( & ( c -> co -> L3_addr1 ) , name ) == E_SUCCESS ) wdg_window_print ( wdg_conn_detail , 1 , ++ row , \"Source hostname : %s\" , name ) ;\n # ifdef WITH_GEOIP if ( GBL_CONF -> geoip_support_enable ) wdg_window_print ( wdg_conn_detail , 1 , ++ row , \"Source location : %s\" , geoip_country_by_ip ( & c -> co -> L3_addr1 ) ) ;\n # endif wdg_window_print ( wdg_conn_detail , 1 , ++ row , \"Destination IP address : %s\" , ip_addr_ntoa ( & ( c -> co -> L3_addr2 ) , tmp ) ) ;\n if ( host_iptoa ( & ( c -> co -> L3_addr2 ) , name ) == E_SUCCESS ) wdg_window_print ( wdg_conn_detail , 1 , ++ row , \"Destination hostname : %s\" , name ) ;\n # ifdef WITH_GEOIP if ( GBL_CONF -> geoip_support_enable ) wdg_window_print ( wdg_conn_detail , 1 , ++ row , \"Destination location : %s\" , geoip_country_by_ip ( & c -> co -> L3_addr2 ) ) ;\n # endif ++ row ;\n switch ( c -> co -> L4_proto ) {\n case NL_TYPE_UDP : proto = \"UDP\" ;\n break ;\n case NL_TYPE_TCP : proto = \"TCP\" ;\n break ;\n }\n wdg_window_print ( wdg_conn_detail , 1 , ++ row , \"Protocol : %s\" , proto ) ;\n wdg_window_print ( wdg_conn_detail , 1 , ++ row , \"Source port : %-5d %s\" , ntohs ( c -> co -> L4_addr1 ) , service_search ( c -> co -> L4_addr1 , c -> co -> L4_proto ) ) ;\n wdg_window_print ( wdg_conn_detail , 1 , ++ row , \"Destination port : %-5d %s\" , ntohs ( c -> co -> L4_addr2 ) , service_search ( c -> co -> L4_addr2 , c -> co -> L4_proto ) ) ;\n row ++ ;\n wdg_window_print ( wdg_conn_detail , 1 , ++ row , \"--> %d <-- %d total: %d \" , c -> co -> tx , c -> co -> rx , c -> co -> xferred ) ;\n row ++ ;\n if ( c -> co -> DISSECTOR . user ) {\n wdg_window_print ( wdg_conn_detail , 1 , ++ row , \"Account : %s / %s\" , c -> co -> DISSECTOR . user , c -> co -> DISSECTOR . pass ) ;\n if ( c -> co -> DISSECTOR . info ) wdg_window_print ( wdg_conn_detail , 1 , ++ row , \"Additional Info : %s\" , c -> co -> DISSECTOR . info ) ;\n }\n }"}
{"idx": 1740, "target": 0, "func": "RSA * d2i_RSAPrivateKey_bio ( BIO * bp , RSA * * rsa ) {\n return ASN1_item_d2i_bio ( ASN1_ITEM_rptr ( RSAPrivateKey ) , bp , rsa ) ;\n }"}
{"idx": 1741, "target": 0, "func": "static int xd3_posix_io ( int fd , uint8_t * buf , size_t size , xd3_posix_func * func , size_t * nread ) {\n int ret ;\n size_t nproc = 0 ;\n while ( nproc < size ) {\n size_t tryread = min ( size - nproc , 1U << 30 ) ;\n ssize_t result = ( * func ) ( fd , buf + nproc , tryread ) ;\n if ( result < 0 ) {\n ret = get_errno ( ) ;\n if ( ret != EAGAIN && ret != EINTR ) {\n return ret ;\n }\n continue ;\n }\n if ( nread != NULL && result == 0 ) {\n break ;\n }\n nproc += result ;\n }\n if ( nread != NULL ) {\n ( * nread ) = nproc ;\n }\n return 0 ;\n }"}
{"idx": 1742, "target": 0, "func": "static void model_rd_for_sb_y ( VP9_COMP * cpi , BLOCK_SIZE bsize , MACROBLOCK * x , MACROBLOCKD * xd , int * out_rate_sum , int64_t * out_dist_sum , unsigned int * var_y , unsigned int * sse_y ) {\n unsigned int sse ;\n int rate ;\n int64_t dist ;\n struct macroblock_plane * const p = & x -> plane [ 0 ] ;\n struct macroblockd_plane * const pd = & xd -> plane [ 0 ] ;\n const uint32_t dc_quant = pd -> dequant [ 0 ] ;\n const uint32_t ac_quant = pd -> dequant [ 1 ] ;\n unsigned int var = cpi -> fn_ptr [ bsize ] . vf ( p -> src . buf , p -> src . stride , pd -> dst . buf , pd -> dst . stride , & sse ) ;\n * var_y = var ;\n * sse_y = sse ;\n if ( sse < dc_quant * dc_quant >> 6 ) x -> skip_txfm [ 0 ] = 1 ;\n else if ( var < ac_quant * ac_quant >> 6 ) x -> skip_txfm [ 0 ] = 2 ;\n else x -> skip_txfm [ 0 ] = 0 ;\n if ( cpi -> common . tx_mode == TX_MODE_SELECT ) {\n if ( sse > ( var << 2 ) ) xd -> mi [ 0 ] . src_mi -> mbmi . tx_size = MIN ( max_txsize_lookup [ bsize ] , tx_mode_to_biggest_tx_size [ cpi -> common . tx_mode ] ) ;\n else xd -> mi [ 0 ] . src_mi -> mbmi . tx_size = TX_8X8 ;\n }\n else {\n xd -> mi [ 0 ] . src_mi -> mbmi . tx_size = MIN ( max_txsize_lookup [ bsize ] , tx_mode_to_biggest_tx_size [ cpi -> common . tx_mode ] ) ;\n }\n vp9_model_rd_from_var_lapndz ( sse - var , 1 << num_pels_log2_lookup [ bsize ] , dc_quant >> 3 , & rate , & dist ) ;\n * out_rate_sum = rate >> 1 ;\n * out_dist_sum = dist << 3 ;\n vp9_model_rd_from_var_lapndz ( var , 1 << num_pels_log2_lookup [ bsize ] , ac_quant >> 3 , & rate , & dist ) ;\n * out_rate_sum += rate ;\n * out_dist_sum += dist << 4 ;\n }"}
{"idx": 1743, "target": 0, "func": "void check_pghost_envvar ( void ) {\n PQconninfoOption * option ;\n PQconninfoOption * start ;\n start = PQconndefaults ( ) ;\n if ( ! start ) pg_fatal ( \"out of memory\\n\" ) ;\n for ( option = start ;\n option -> keyword != NULL ;\n option ++ ) {\n if ( option -> envvar && ( strcmp ( option -> envvar , \"PGHOST\" ) == 0 || strcmp ( option -> envvar , \"PGHOSTADDR\" ) == 0 ) ) {\n const char * value = getenv ( option -> envvar ) ;\n if ( value && strlen ( value ) > 0 && ( strcmp ( value , \"localhost\" ) != 0 && strcmp ( value , \"127.0.0.1\" ) != 0 && strcmp ( value , \"::1\" ) != 0 && value [ 0 ] != '/' ) ) pg_fatal ( \"libpq environment variable %s has a non-local server value: %s\\n\" , option -> envvar , value ) ;\n }\n }\n PQconninfoFree ( start ) ;\n }"}
{"idx": 1744, "target": 0, "func": "static void dissect_q931_td_selection_and_int_ie ( tvbuff_t * tvb , packet_info * pinfo , int offset , int len , proto_tree * tree , proto_item * item ) {\n if ( len == 0 ) return ;\n dissect_q931_guint16_value ( tvb , pinfo , offset , len , tree , item , hf_q931_transit_delay ) ;\n }"}
{"idx": 1745, "target": 0, "func": "static void render_slice ( Vp3DecodeContext * s , int slice ) {\n int x , y , i , j , fragment ;\n int16_t * block = s -> block ;\n int motion_x = 0xdeadbeef , motion_y = 0xdeadbeef ;\n int motion_halfpel_index ;\n uint8_t * motion_source ;\n int plane , first_pixel ;\n if ( slice >= s -> c_superblock_height ) return ;\n for ( plane = 0 ;\n plane < 3 ;\n plane ++ ) {\n uint8_t * output_plane = s -> current_frame . f -> data [ plane ] + s -> data_offset [ plane ] ;\n uint8_t * last_plane = s -> last_frame . f -> data [ plane ] + s -> data_offset [ plane ] ;\n uint8_t * golden_plane = s -> golden_frame . f -> data [ plane ] + s -> data_offset [ plane ] ;\n int stride = s -> current_frame . f -> linesize [ plane ] ;\n int plane_width = s -> width >> ( plane && s -> chroma_x_shift ) ;\n int plane_height = s -> height >> ( plane && s -> chroma_y_shift ) ;\n int8_t ( * motion_val ) [ 2 ] = s -> motion_val [ ! ! plane ] ;\n int sb_x , sb_y = slice << ( ! plane && s -> chroma_y_shift ) ;\n int slice_height = sb_y + 1 + ( ! plane && s -> chroma_y_shift ) ;\n int slice_width = plane ? s -> c_superblock_width : s -> y_superblock_width ;\n int fragment_width = s -> fragment_width [ ! ! plane ] ;\n int fragment_height = s -> fragment_height [ ! ! plane ] ;\n int fragment_start = s -> fragment_start [ plane ] ;\n int do_await = ! plane && HAVE_THREADS && ( s -> avctx -> active_thread_type & FF_THREAD_FRAME ) ;\n if ( ! s -> flipped_image ) stride = - stride ;\n if ( CONFIG_GRAY && plane && ( s -> avctx -> flags & CODEC_FLAG_GRAY ) ) continue ;\n for ( ;\n sb_y < slice_height ;\n sb_y ++ ) {\n for ( sb_x = 0 ;\n sb_x < slice_width ;\n sb_x ++ ) {\n for ( j = 0 ;\n j < 16 ;\n j ++ ) {\n x = 4 * sb_x + hilbert_offset [ j ] [ 0 ] ;\n y = 4 * sb_y + hilbert_offset [ j ] [ 1 ] ;\n fragment = y * fragment_width + x ;\n i = fragment_start + fragment ;\n if ( x >= fragment_width || y >= fragment_height ) continue ;\n first_pixel = 8 * y * stride + 8 * x ;\n if ( do_await && s -> all_fragments [ i ] . coding_method != MODE_INTRA ) await_reference_row ( s , & s -> all_fragments [ i ] , motion_val [ fragment ] [ 1 ] , ( 16 * y ) >> s -> chroma_y_shift ) ;\n if ( s -> all_fragments [ i ] . coding_method != MODE_COPY ) {\n if ( ( s -> all_fragments [ i ] . coding_method == MODE_USING_GOLDEN ) || ( s -> all_fragments [ i ] . coding_method == MODE_GOLDEN_MV ) ) motion_source = golden_plane ;\n else motion_source = last_plane ;\n motion_source += first_pixel ;\n motion_halfpel_index = 0 ;\n if ( ( s -> all_fragments [ i ] . coding_method > MODE_INTRA ) && ( s -> all_fragments [ i ] . coding_method != MODE_USING_GOLDEN ) ) {\n int src_x , src_y ;\n motion_x = motion_val [ fragment ] [ 0 ] ;\n motion_y = motion_val [ fragment ] [ 1 ] ;\n src_x = ( motion_x >> 1 ) + 8 * x ;\n src_y = ( motion_y >> 1 ) + 8 * y ;\n motion_halfpel_index = motion_x & 0x01 ;\n motion_source += ( motion_x >> 1 ) ;\n motion_halfpel_index |= ( motion_y & 0x01 ) << 1 ;\n motion_source += ( ( motion_y >> 1 ) * stride ) ;\n if ( src_x < 0 || src_y < 0 || src_x + 9 >= plane_width || src_y + 9 >= plane_height ) {\n uint8_t * temp = s -> edge_emu_buffer ;\n if ( stride < 0 ) temp -= 8 * stride ;\n s -> vdsp . emulated_edge_mc ( temp , motion_source , stride , 9 , 9 , src_x , src_y , plane_width , plane_height ) ;\n motion_source = temp ;\n }\n }\n if ( s -> all_fragments [ i ] . coding_method != MODE_INTRA ) {\n if ( motion_halfpel_index != 3 ) {\n s -> dsp . put_no_rnd_pixels_tab [ 1 ] [ motion_halfpel_index ] ( output_plane + first_pixel , motion_source , stride , 8 ) ;\n }\n else {\n int d = ( motion_x ^ motion_y ) >> 31 ;\n s -> vp3dsp . put_no_rnd_pixels_l2 ( output_plane + first_pixel , motion_source - d , motion_source + stride + 1 + d , stride , 8 ) ;\n }\n }\n if ( s -> all_fragments [ i ] . coding_method == MODE_INTRA ) {\n int index ;\n index = vp3_dequant ( s , s -> all_fragments + i , plane , 0 , block ) ;\n if ( index > 63 ) continue ;\n s -> vp3dsp . idct_put ( output_plane + first_pixel , stride , block ) ;\n }\n else {\n int index = vp3_dequant ( s , s -> all_fragments + i , plane , 1 , block ) ;\n if ( index > 63 ) continue ;\n if ( index > 0 ) {\n s -> vp3dsp . idct_add ( output_plane + first_pixel , stride , block ) ;\n }\n else {\n s -> vp3dsp . idct_dc_add ( output_plane + first_pixel , stride , block ) ;\n }\n }\n }\n else {\n s -> dsp . put_pixels_tab [ 1 ] [ 0 ] ( output_plane + first_pixel , last_plane + first_pixel , stride , 8 ) ;\n }\n }\n }\n if ( ! s -> skip_loop_filter ) apply_loop_filter ( s , plane , 4 * sb_y - ! ! sb_y , FFMIN ( 4 * sb_y + 3 , fragment_height - 1 ) ) ;\n }\n }\n vp3_draw_horiz_band ( s , FFMIN ( ( 32 << s -> chroma_y_shift ) * ( slice + 1 ) - 16 , s -> height - 16 ) ) ;\n }"}
{"idx": 1746, "target": 0, "func": "static unsigned int wiener_map ( unsigned int n ) {\n static struct {\n unsigned int p_n , q_n ;\n }\n t [ ] = {\n {\n 512 , 119 }\n , {\n 768 , 145 }\n , {\n 1024 , 165 }\n , {\n 1280 , 183 }\n , {\n 1536 , 198 }\n , {\n 1792 , 212 }\n , {\n 2048 , 225 }\n , {\n 2304 , 237 }\n , {\n 2560 , 249 }\n , {\n 2816 , 259 }\n , {\n 3072 , 269 }\n , {\n 3328 , 279 }\n , {\n 3584 , 288 }\n , {\n 3840 , 296 }\n , {\n 4096 , 305 }\n , {\n 4352 , 313 }\n , {\n 4608 , 320 }\n , {\n 4864 , 328 }\n , {\n 5120 , 335 }\n , {\n 0 , 0 }\n }\n ;\n int i ;\n for ( i = 0 ;\n t [ i ] . p_n ;\n i ++ ) {\n if ( n <= t [ i ] . p_n ) return t [ i ] . q_n ;\n }\n return n / 8 + 200 ;\n }"}
{"idx": 1747, "target": 0, "func": "static int64_t rd_sbuv_dcpred ( const VP9_COMP * cpi , MACROBLOCK * x , int * rate , int * rate_tokenonly , int64_t * distortion , int * skippable , BLOCK_SIZE bsize ) {\n const VP9_COMMON * cm = & cpi -> common ;\n int64_t unused ;\n x -> e_mbd . mi [ 0 ] . src_mi -> mbmi . uv_mode = DC_PRED ;\n super_block_uvrd ( cpi , x , rate_tokenonly , distortion , skippable , & unused , bsize , INT64_MAX ) ;\n * rate = * rate_tokenonly + cpi -> intra_uv_mode_cost [ cm -> frame_type ] [ DC_PRED ] ;\n return RDCOST ( x -> rdmult , x -> rddiv , * rate , * distortion ) ;\n }"}
{"idx": 1748, "target": 0, "func": "static int dissect_h245_V76HDLCParameters ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_V76HDLCParameters , V76HDLCParameters_sequence ) ;\n return offset ;\n }"}
{"idx": 1749, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n const uint8_t * buf_end = buf + avpkt -> size ;\n KgvContext * const c = avctx -> priv_data ;\n int offsets [ 8 ] ;\n uint16_t * out , * prev ;\n int outcnt = 0 , maxcnt ;\n int w , h , i , res ;\n if ( avpkt -> size < 2 ) return AVERROR_INVALIDDATA ;\n w = ( buf [ 0 ] + 1 ) * 8 ;\n h = ( buf [ 1 ] + 1 ) * 8 ;\n buf += 2 ;\n if ( ( res = av_image_check_size ( w , h , 0 , avctx ) ) < 0 ) return res ;\n if ( w != avctx -> width || h != avctx -> height ) {\n av_frame_unref ( & c -> prev ) ;\n avcodec_set_dimensions ( avctx , w , h ) ;\n }\n maxcnt = w * h ;\n if ( ( res = ff_get_buffer ( avctx , frame , AV_GET_BUFFER_FLAG_REF ) ) < 0 ) return res ;\n out = ( uint16_t * ) frame -> data [ 0 ] ;\n if ( c -> prev . data [ 0 ] ) {\n prev = ( uint16_t * ) c -> prev . data [ 0 ] ;\n }\n else {\n prev = NULL ;\n }\n for ( i = 0 ;\n i < 8 ;\n i ++ ) offsets [ i ] = - 1 ;\n while ( outcnt < maxcnt && buf_end - 2 > buf ) {\n int code = AV_RL16 ( buf ) ;\n buf += 2 ;\n if ( ! ( code & 0x8000 ) ) {\n out [ outcnt ++ ] = code ;\n }\n else {\n int count ;\n int inp_off ;\n uint16_t * inp ;\n if ( ( code & 0x6000 ) == 0x6000 ) {\n int oidx = ( code >> 10 ) & 7 ;\n int start ;\n count = ( code & 0x3FF ) + 3 ;\n if ( offsets [ oidx ] < 0 ) {\n if ( buf_end - 3 < buf ) break ;\n offsets [ oidx ] = AV_RL24 ( buf ) ;\n buf += 3 ;\n }\n start = ( outcnt + offsets [ oidx ] ) % maxcnt ;\n if ( maxcnt - start < count ) break ;\n if ( ! prev ) {\n av_log ( avctx , AV_LOG_ERROR , \"Frame reference does not exist\\n\" ) ;\n break ;\n }\n inp = prev ;\n inp_off = start ;\n }\n else {\n int offset = ( code & 0x1FFF ) + 1 ;\n if ( ! ( code & 0x6000 ) ) {\n count = 2 ;\n }\n else if ( ( code & 0x6000 ) == 0x2000 ) {\n count = 3 ;\n }\n else {\n if ( buf_end - 1 < buf ) break ;\n count = 4 + * buf ++ ;\n }\n if ( outcnt < offset ) break ;\n inp = out ;\n inp_off = outcnt - offset ;\n }\n if ( maxcnt - outcnt < count ) break ;\n for ( i = inp_off ;\n i < count + inp_off ;\n i ++ ) {\n out [ outcnt ++ ] = inp [ i ] ;\n }\n }\n }\n if ( outcnt - maxcnt ) av_log ( avctx , AV_LOG_DEBUG , \"frame finished with %d diff\\n\" , outcnt - maxcnt ) ;\n av_frame_unref ( & c -> prev ) ;\n if ( ( res = av_frame_ref ( & c -> prev , frame ) ) < 0 ) return res ;\n * got_frame = 1 ;\n return avpkt -> size ;\n }"}
{"idx": 1750, "target": 0, "func": "int EVP_CIPHER_CTX_reset ( EVP_CIPHER_CTX * c ) {\n if ( c == NULL ) return 1 ;\n if ( c -> cipher != NULL ) {\n if ( c -> cipher -> cleanup && ! c -> cipher -> cleanup ( c ) ) return 0 ;\n if ( c -> cipher_data && c -> cipher -> ctx_size ) OPENSSL_cleanse ( c -> cipher_data , c -> cipher -> ctx_size ) ;\n }\n OPENSSL_free ( c -> cipher_data ) ;\n # ifndef OPENSSL_NO_ENGINE ENGINE_finish ( c -> engine ) ;\n # endif memset ( c , 0 , sizeof ( * c ) ) ;\n return 1 ;\n }"}
{"idx": 1751, "target": 0, "func": "int _WriteTTFFont ( FILE * ttf , SplineFont * sf , enum fontformat format , int32 * bsizes , enum bitmapformat bf , int flags , EncMap * map , int layer ) {\n struct alltabs at ;\n int i , anyglyphs ;\n short_too_long_warned = 0 ;\n locale_t tmplocale ;\n locale_t oldlocale ;\n switch_to_c_locale ( & tmplocale , & oldlocale ) ;\n if ( format == ff_otfcid || format == ff_cffcid ) {\n if ( sf -> cidmaster ) sf = sf -> cidmaster ;\n }\n else {\n if ( sf -> subfontcnt != 0 ) sf = sf -> subfonts [ 0 ] ;\n }\n if ( sf -> subfontcnt == 0 ) {\n anyglyphs = false ;\n for ( i = sf -> glyphcnt - 1 ;\n i >= 0 ;\n -- i ) {\n if ( SCWorthOutputting ( sf -> glyphs [ i ] ) ) {\n anyglyphs = true ;\n if ( sf -> glyphs [ i ] -> unicodeenc != - 1 ) break ;\n }\n }\n if ( ! anyglyphs && ! sf -> internal_temp ) {\n ff_post_error ( _ ( \"No Encoded Glyphs\" ) , _ ( \"Warning: Font contained no glyphs\" ) ) ;\n }\n if ( format != ff_ttfsym && ! ( flags & ttf_flag_symbol ) && ! sf -> internal_temp ) {\n if ( i < 0 && anyglyphs ) {\n if ( map -> enccount <= 256 ) {\n char * buts [ 3 ] ;\n buts [ 0 ] = _ ( \"_Yes\" ) ;\n buts [ 1 ] = _ ( \"_No\" ) ;\n buts [ 2 ] = NULL ;\n if ( ff_ask ( _ ( \"No Encoded Glyphs\" ) , ( const char * * ) buts , 0 , 1 , _ ( \"This font contains no glyphs with unicode encodings.\\nWould you like to use a \\\"Symbol\\\" encoding instead of Unicode?\" ) ) == 0 ) flags |= ttf_flag_symbol ;\n }\n else ff_post_error ( _ ( \"No Encoded Glyphs\" ) , _ ( \"This font contains no glyphs with unicode encodings.\\nYou will probably not be able to use the output.\" ) ) ;\n }\n }\n }\n for ( i = 0 ;\n i < sf -> glyphcnt ;\n ++ i ) if ( sf -> glyphs [ i ] != NULL ) sf -> glyphs [ i ] -> ttf_glyph = - 1 ;\n memset ( & at , '\\0' , sizeof ( struct alltabs ) ) ;\n ATinit ( & at , sf , map , flags , layer , format , bf , bsizes ) ;\n if ( format == ff_cff || format == ff_cffcid ) {\n dumpcff ( & at , sf , format , ttf ) ;\n }\n else {\n if ( initTables ( & at , sf , format , bsizes , bf ) ) dumpttf ( ttf , & at ) ;\n }\n switch_to_old_locale ( & tmplocale , & oldlocale ) ;\n if ( at . error || ferror ( ttf ) ) return ( 0 ) ;\n # ifdef __CygWin {\n struct stat buf ;\n fstat ( fileno ( ttf ) , & buf ) ;\n fchmod ( fileno ( ttf ) , S_IXUSR | buf . st_mode ) ;\n }\n # endif return ( 1 ) ;\n }"}
{"idx": 1752, "target": 0, "func": "int tm_adopt ( char * id , int adoptCmd , pid_t pid ) {\n int rc = TM_SUCCESS ;\n int status , ret ;\n pid_t sid ;\n char * env ;\n struct tcp_chan * chan = NULL ;\n sid = getsid ( pid ) ;\n if ( ! ispidowner ( sid ) ) return ( TM_EPERM ) ;\n if ( init_done ) return TM_BADINIT ;\n init_done = 1 ;\n if ( ( tm_jobid = getenv ( \"PBS_JOBID\" ) ) == NULL ) tm_jobid = ( char * ) \"ADOPT JOB\" ;\n tm_jobid_len = strlen ( tm_jobid ) ;\n if ( ( tm_jobcookie = getenv ( \"PBS_JOBCOOKIE\" ) ) == NULL ) tm_jobcookie = ( char * ) \"ADOPT COOKIE\" ;\n tm_jobcookie_len = strlen ( tm_jobcookie ) ;\n tm_jobndid = 0 ;\n tm_jobtid = 0 ;\n if ( ( env = getenv ( \"PBS_MOMPORT\" ) ) == NULL || ( tm_momport = atoi ( env ) ) == 0 ) tm_momport = PBS_MANAGER_SERVICE_PORT ;\n if ( adoptCmd != TM_ADOPT_ALTID && adoptCmd != TM_ADOPT_JOBID ) return TM_EUNKNOWNCMD ;\n if ( startcom ( adoptCmd , TM_NULL_EVENT , & chan ) != DIS_SUCCESS ) return TM_ESYSTEM ;\n if ( diswsi ( chan , sid ) != DIS_SUCCESS ) {\n rc = TM_ENOTCONNECTED ;\n goto tm_adopt_cleanup ;\n }\n if ( diswsi ( chan , pid ) != DIS_SUCCESS ) {\n rc = TM_ENOTCONNECTED ;\n goto tm_adopt_cleanup ;\n }\n if ( diswcs ( chan , id , strlen ( id ) ) != DIS_SUCCESS ) {\n rc = TM_ENOTCONNECTED ;\n goto tm_adopt_cleanup ;\n }\n DIS_tcp_wflush ( chan ) ;\n status = disrsi ( chan , & ret ) ;\n if ( ret != DIS_SUCCESS ) {\n rc = TM_ENOTCONNECTED ;\n goto tm_adopt_cleanup ;\n }\n tm_finalize ( ) ;\n if ( local_conn > - 1 ) {\n close ( local_conn ) ;\n local_conn = - 1 ;\n }\n DIS_tcp_cleanup ( chan ) ;\n return ( status == TM_OKAY ? TM_SUCCESS : TM_ENOTFOUND ) ;\n tm_adopt_cleanup : if ( chan != NULL ) DIS_tcp_cleanup ( chan ) ;\n return rc ;\n }"}
{"idx": 1753, "target": 0, "func": "unsigned int vp8_variance16x16_neon ( const unsigned char * src_ptr , int source_stride , const unsigned char * ref_ptr , int recon_stride , unsigned int * sse ) {\n int i ;\n int16x4_t d22s16 , d23s16 , d24s16 , d25s16 , d26s16 , d27s16 , d28s16 , d29s16 ;\n uint32x2_t d0u32 , d10u32 ;\n int64x1_t d0s64 , d1s64 ;\n uint8x16_t q0u8 , q1u8 , q2u8 , q3u8 ;\n uint16x8_t q11u16 , q12u16 , q13u16 , q14u16 ;\n int32x4_t q8s32 , q9s32 , q10s32 ;\n int64x2_t q0s64 , q1s64 , q5s64 ;\n q8s32 = vdupq_n_s32 ( 0 ) ;\n q9s32 = vdupq_n_s32 ( 0 ) ;\n q10s32 = vdupq_n_s32 ( 0 ) ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n q0u8 = vld1q_u8 ( src_ptr ) ;\n src_ptr += source_stride ;\n q1u8 = vld1q_u8 ( src_ptr ) ;\n src_ptr += source_stride ;\n __builtin_prefetch ( src_ptr ) ;\n q2u8 = vld1q_u8 ( ref_ptr ) ;\n ref_ptr += recon_stride ;\n q3u8 = vld1q_u8 ( ref_ptr ) ;\n ref_ptr += recon_stride ;\n __builtin_prefetch ( ref_ptr ) ;\n q11u16 = vsubl_u8 ( vget_low_u8 ( q0u8 ) , vget_low_u8 ( q2u8 ) ) ;\n q12u16 = vsubl_u8 ( vget_high_u8 ( q0u8 ) , vget_high_u8 ( q2u8 ) ) ;\n q13u16 = vsubl_u8 ( vget_low_u8 ( q1u8 ) , vget_low_u8 ( q3u8 ) ) ;\n q14u16 = vsubl_u8 ( vget_high_u8 ( q1u8 ) , vget_high_u8 ( q3u8 ) ) ;\n d22s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q11u16 ) ) ;\n d23s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q11u16 ) ) ;\n q8s32 = vpadalq_s16 ( q8s32 , vreinterpretq_s16_u16 ( q11u16 ) ) ;\n q9s32 = vmlal_s16 ( q9s32 , d22s16 , d22s16 ) ;\n q10s32 = vmlal_s16 ( q10s32 , d23s16 , d23s16 ) ;\n d24s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q12u16 ) ) ;\n d25s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q12u16 ) ) ;\n q8s32 = vpadalq_s16 ( q8s32 , vreinterpretq_s16_u16 ( q12u16 ) ) ;\n q9s32 = vmlal_s16 ( q9s32 , d24s16 , d24s16 ) ;\n q10s32 = vmlal_s16 ( q10s32 , d25s16 , d25s16 ) ;\n d26s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q13u16 ) ) ;\n d27s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q13u16 ) ) ;\n q8s32 = vpadalq_s16 ( q8s32 , vreinterpretq_s16_u16 ( q13u16 ) ) ;\n q9s32 = vmlal_s16 ( q9s32 , d26s16 , d26s16 ) ;\n q10s32 = vmlal_s16 ( q10s32 , d27s16 , d27s16 ) ;\n d28s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q14u16 ) ) ;\n d29s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q14u16 ) ) ;\n q8s32 = vpadalq_s16 ( q8s32 , vreinterpretq_s16_u16 ( q14u16 ) ) ;\n q9s32 = vmlal_s16 ( q9s32 , d28s16 , d28s16 ) ;\n q10s32 = vmlal_s16 ( q10s32 , d29s16 , d29s16 ) ;\n }\n q10s32 = vaddq_s32 ( q10s32 , q9s32 ) ;\n q0s64 = vpaddlq_s32 ( q8s32 ) ;\n q1s64 = vpaddlq_s32 ( q10s32 ) ;\n d0s64 = vadd_s64 ( vget_low_s64 ( q0s64 ) , vget_high_s64 ( q0s64 ) ) ;\n d1s64 = vadd_s64 ( vget_low_s64 ( q1s64 ) , vget_high_s64 ( q1s64 ) ) ;\n q5s64 = vmull_s32 ( vreinterpret_s32_s64 ( d0s64 ) , vreinterpret_s32_s64 ( d0s64 ) ) ;\n vst1_lane_u32 ( ( uint32_t * ) sse , vreinterpret_u32_s64 ( d1s64 ) , 0 ) ;\n d10u32 = vshr_n_u32 ( vreinterpret_u32_s64 ( vget_low_s64 ( q5s64 ) ) , 8 ) ;\n d0u32 = vsub_u32 ( vreinterpret_u32_s64 ( d1s64 ) , d10u32 ) ;\n return vget_lane_u32 ( d0u32 , 0 ) ;\n }"}
{"idx": 1754, "target": 0, "func": "int dtls1_shutdown ( SSL * s ) {\n int ret ;\n # ifndef OPENSSL_NO_SCTP BIO * wbio ;\n wbio = SSL_get_wbio ( s ) ;\n if ( wbio != NULL && BIO_dgram_is_sctp ( wbio ) && ! ( s -> shutdown & SSL_SENT_SHUTDOWN ) ) {\n ret = BIO_dgram_sctp_wait_for_dry ( wbio ) ;\n if ( ret < 0 ) return - 1 ;\n if ( ret == 0 ) BIO_ctrl ( SSL_get_wbio ( s ) , BIO_CTRL_DGRAM_SCTP_SAVE_SHUTDOWN , 1 , NULL ) ;\n }\n # endif ret = ssl3_shutdown ( s ) ;\n # ifndef OPENSSL_NO_SCTP BIO_ctrl ( SSL_get_wbio ( s ) , BIO_CTRL_DGRAM_SCTP_SAVE_SHUTDOWN , 0 , NULL ) ;\n # endif return ret ;\n }"}
{"idx": 1755, "target": 0, "func": "static void _uhash_allocate ( UHashtable * hash , int32_t primeIndex , UErrorCode * status ) {\n UHashElement * p , * limit ;\n UHashTok emptytok ;\n if ( U_FAILURE ( * status ) ) return ;\n U_ASSERT ( primeIndex >= 0 && primeIndex < PRIMES_LENGTH ) ;\n hash -> primeIndex = primeIndex ;\n hash -> length = PRIMES [ primeIndex ] ;\n p = hash -> elements = ( UHashElement * ) uprv_malloc ( sizeof ( UHashElement ) * hash -> length ) ;\n if ( hash -> elements == NULL ) {\n * status = U_MEMORY_ALLOCATION_ERROR ;\n return ;\n }\n emptytok . pointer = NULL ;\n emptytok . integer = 0 ;\n limit = p + hash -> length ;\n while ( p < limit ) {\n p -> key = emptytok ;\n p -> value = emptytok ;\n p -> hashcode = HASH_EMPTY ;\n ++ p ;\n }\n hash -> count = 0 ;\n hash -> lowWaterMark = ( int32_t ) ( hash -> length * hash -> lowWaterRatio ) ;\n hash -> highWaterMark = ( int32_t ) ( hash -> length * hash -> highWaterRatio ) ;\n }"}
{"idx": 1756, "target": 0, "func": "Jbig2Segment * jbig2_parse_segment_header ( Jbig2Ctx * ctx , uint8_t * buf , size_t buf_size , size_t * p_header_size ) {\n Jbig2Segment * result ;\n uint8_t rtscarf ;\n uint32_t rtscarf_long ;\n uint32_t * referred_to_segments ;\n uint32_t referred_to_segment_count ;\n uint32_t referred_to_segment_size ;\n uint32_t pa_size ;\n uint32_t offset ;\n if ( buf_size < 11 ) return NULL ;\n result = jbig2_new ( ctx , Jbig2Segment , 1 ) ;\n if ( result == NULL ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , - 1 , \"failed to allocate segment in jbig2_parse_segment_header\" ) ;\n return result ;\n }\n result -> number = jbig2_get_uint32 ( buf ) ;\n result -> flags = buf [ 4 ] ;\n rtscarf = buf [ 5 ] ;\n if ( ( rtscarf & 0xe0 ) == 0xe0 ) {\n rtscarf_long = jbig2_get_uint32 ( buf + 5 ) ;\n referred_to_segment_count = rtscarf_long & 0x1fffffff ;\n offset = 5 + 4 + ( referred_to_segment_count + 1 ) / 8 ;\n }\n else {\n referred_to_segment_count = ( rtscarf >> 5 ) ;\n offset = 5 + 1 ;\n }\n result -> referred_to_segment_count = referred_to_segment_count ;\n referred_to_segment_size = result -> number <= 256 ? 1 : result -> number <= 65536 ? 2 : 4 ;\n pa_size = result -> flags & 0x40 ? 4 : 1 ;\n if ( offset + referred_to_segment_count * referred_to_segment_size + pa_size + 4 > buf_size ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_DEBUG , result -> number , \"jbig2_parse_segment_header() called with insufficient data\" , - 1 ) ;\n jbig2_free ( ctx -> allocator , result ) ;\n return NULL ;\n }\n if ( referred_to_segment_count ) {\n uint32_t i ;\n referred_to_segments = jbig2_new ( ctx , uint32_t , referred_to_segment_count * referred_to_segment_size ) ;\n if ( referred_to_segments == NULL ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , - 1 , \"could not allocate referred_to_segments \" \"in jbig2_parse_segment_header\" ) ;\n return NULL ;\n }\n for ( i = 0 ;\n i < referred_to_segment_count ;\n i ++ ) {\n referred_to_segments [ i ] = ( referred_to_segment_size == 1 ) ? buf [ offset ] : ( referred_to_segment_size == 2 ) ? jbig2_get_uint16 ( buf + offset ) : jbig2_get_uint32 ( buf + offset ) ;\n offset += referred_to_segment_size ;\n jbig2_error ( ctx , JBIG2_SEVERITY_DEBUG , result -> number , \"segment %d refers to segment %d\" , result -> number , referred_to_segments [ i ] ) ;\n }\n result -> referred_to_segments = referred_to_segments ;\n }\n else {\n result -> referred_to_segments = NULL ;\n }\n if ( result -> flags & 0x40 ) {\n result -> page_association = jbig2_get_uint32 ( buf + offset ) ;\n offset += 4 ;\n }\n else {\n result -> page_association = buf [ offset ++ ] ;\n }\n jbig2_error ( ctx , JBIG2_SEVERITY_DEBUG , result -> number , \"segment %d is associated with page %d\" , result -> number , result -> page_association ) ;\n result -> data_length = jbig2_get_uint32 ( buf + offset ) ;\n * p_header_size = offset + 4 ;\n result -> result = NULL ;\n return result ;\n }"}
{"idx": 1757, "target": 0, "func": "static int dissect_h245_MultiplexEntryRejectionDescriptions ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MultiplexEntryRejectionDescriptions , MultiplexEntryRejectionDescriptions_sequence ) ;\n return offset ;\n }"}
{"idx": 1758, "target": 0, "func": "afs_int32 SPR_SetFieldsEntry ( struct rx_call * call , afs_int32 id , afs_int32 mask , afs_int32 flags , afs_int32 ngroups , afs_int32 nusers , afs_int32 spare1 , afs_int32 spare2 ) {\n afs_int32 code ;\n afs_int32 cid = ANONYMOUSID ;\n code = setFieldsEntry ( call , id , mask , flags , ngroups , nusers , spare1 , spare2 , & cid ) ;\n osi_auditU ( call , PTS_SetFldEntEvent , code , AUD_ID , id , AUD_END ) ;\n ViceLog ( 5 , ( \"PTS_SetFieldsEntry: code %d cid %d id %d\\n\" , code , cid , id ) ) ;\n return code ;\n }"}
{"idx": 1759, "target": 0, "func": "TEST_F ( MdDownloadsDOMHandlerTest , ChecksForRemovedFiles ) {\n EXPECT_CALL ( * manager ( ) , CheckForHistoryFilesRemoval ( ) ) ;\n TestMdDownloadsDOMHandler handler ( manager ( ) , web_ui ( ) ) ;\n testing : : Mock : : VerifyAndClear ( manager ( ) ) ;\n EXPECT_CALL ( * manager ( ) , CheckForHistoryFilesRemoval ( ) ) ;\n handler . OnJavascriptDisallowed ( ) ;\n }"}
{"idx": 1760, "target": 0, "func": "void lcc_network_buffer_destroy ( lcc_network_buffer_t * nb ) {\n if ( nb == NULL ) return ;\n free ( nb -> buffer ) ;\n free ( nb ) ;\n }"}
{"idx": 1761, "target": 0, "func": "int chk_status ( MI_CHECK * param , register MI_INFO * info ) {\n MYISAM_SHARE * share = info -> s ;\n if ( mi_is_crashed_on_repair ( info ) ) mi_check_print_warning ( param , \"Table is marked as crashed and last repair failed\" ) ;\n else if ( mi_is_crashed ( info ) ) mi_check_print_warning ( param , \"Table is marked as crashed\" ) ;\n if ( share -> state . open_count != ( uint ) ( info -> s -> global_changed ? 1 : 0 ) ) {\n uint save = param -> warning_printed ;\n mi_check_print_warning ( param , share -> state . open_count == 1 ? \"%d client is using or hasn't closed the table properly\" : \"%d clients are using or haven't closed the table properly\" , share -> state . open_count ) ;\n if ( param -> testflag & T_UPDATE_STATE ) param -> warning_printed = save ;\n }\n return 0 ;\n }"}
{"idx": 1762, "target": 0, "func": "int main ( int argc ATTRIBUTE_UNUSED , char * * argv ATTRIBUTE_UNUSED ) {\n printf ( \"%s : Automata support not compiled in\\n\" , argv [ 0 ] ) ;\n return ( 0 ) ;\n }"}
{"idx": 1763, "target": 0, "func": "int ffv1_init_slice_state ( FFV1Context * f , FFV1Context * fs ) {\n int j ;\n fs -> plane_count = f -> plane_count ;\n fs -> transparency = f -> transparency ;\n for ( j = 0 ;\n j < f -> plane_count ;\n j ++ ) {\n PlaneContext * const p = & fs -> plane [ j ] ;\n if ( fs -> ac ) {\n if ( ! p -> state ) p -> state = av_malloc ( CONTEXT_SIZE * p -> context_count * sizeof ( uint8_t ) ) ;\n if ( ! p -> state ) return AVERROR ( ENOMEM ) ;\n }\n else {\n if ( ! p -> vlc_state ) p -> vlc_state = av_malloc ( p -> context_count * sizeof ( VlcState ) ) ;\n if ( ! p -> vlc_state ) return AVERROR ( ENOMEM ) ;\n }\n }\n if ( fs -> ac > 1 ) {\n for ( j = 1 ;\n j < 256 ;\n j ++ ) {\n fs -> c . one_state [ j ] = f -> state_transition [ j ] ;\n fs -> c . zero_state [ 256 - j ] = 256 - fs -> c . one_state [ j ] ;\n }\n }\n return 0 ;\n }"}
{"idx": 1764, "target": 0, "func": "static uint32_t U_CALLCONV uprv_readDirectUInt32 ( uint32_t x ) {\n return x ;\n }"}
{"idx": 1765, "target": 0, "func": "static void dtap_sms_cp_error ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_TRUE ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_CP_CAUSE , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 1766, "target": 0, "func": "static void setup_quantization ( VP9_COMMON * const cm , MACROBLOCKD * const xd , struct vp9_read_bit_buffer * rb ) {\n int update = 0 ;\n cm -> base_qindex = vp9_rb_read_literal ( rb , QINDEX_BITS ) ;\n update |= read_delta_q ( rb , & cm -> y_dc_delta_q ) ;\n update |= read_delta_q ( rb , & cm -> uv_dc_delta_q ) ;\n update |= read_delta_q ( rb , & cm -> uv_ac_delta_q ) ;\n if ( update ) vp9_init_dequantizer ( cm ) ;\n xd -> lossless = cm -> base_qindex == 0 && cm -> y_dc_delta_q == 0 && cm -> uv_dc_delta_q == 0 && cm -> uv_ac_delta_q == 0 ;\n }"}
{"idx": 1767, "target": 0, "func": "sf_count_t psf_fgets ( char * buffer , sf_count_t bufsize , SF_PRIVATE * psf ) {\n sf_count_t k = 0 ;\n sf_count_t count ;\n while ( k < bufsize - 1 ) {\n count = read ( psf -> file . filedes , & ( buffer [ k ] ) , 1 ) ;\n if ( count == - 1 ) {\n if ( errno == EINTR ) continue ;\n psf_log_syserr ( psf , errno ) ;\n break ;\n }\n ;\n if ( count == 0 || buffer [ k ++ ] == '\\n' ) break ;\n }\n ;\n buffer [ k ] = 0 ;\n return k ;\n }"}
{"idx": 1768, "target": 0, "func": "static void dtap_tp_close_ue_test_loop ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_len = len ;\n curr_offset = offset ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_TP_UE_TEST_LOOP_MODE , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 1769, "target": 0, "func": "static inline void SetPixelCr ( const Image * restrict image , const Quantum cr , Quantum * restrict pixel ) {\n pixel [ image -> channel_map [ CrPixelChannel ] . offset ] = cr ;\n }"}
{"idx": 1770, "target": 0, "func": "static void save_bits ( WmallDecodeCtx * s , GetBitContext * gb , int len , int append ) {\n int buflen ;\n PutBitContext tmp ;\n if ( ! append ) {\n s -> frame_offset = get_bits_count ( gb ) & 7 ;\n s -> num_saved_bits = s -> frame_offset ;\n init_put_bits ( & s -> pb , s -> frame_data , MAX_FRAMESIZE ) ;\n }\n buflen = ( s -> num_saved_bits + len + 8 ) >> 3 ;\n if ( len <= 0 || buflen > MAX_FRAMESIZE ) {\n av_log_ask_for_sample ( s -> avctx , \"input buffer too small\\n\" ) ;\n s -> packet_loss = 1 ;\n return ;\n }\n s -> num_saved_bits += len ;\n if ( ! append ) {\n avpriv_copy_bits ( & s -> pb , gb -> buffer + ( get_bits_count ( gb ) >> 3 ) , s -> num_saved_bits ) ;\n }\n else {\n int align = 8 - ( get_bits_count ( gb ) & 7 ) ;\n align = FFMIN ( align , len ) ;\n put_bits ( & s -> pb , align , get_bits ( gb , align ) ) ;\n len -= align ;\n avpriv_copy_bits ( & s -> pb , gb -> buffer + ( get_bits_count ( gb ) >> 3 ) , len ) ;\n }\n skip_bits_long ( gb , len ) ;\n tmp = s -> pb ;\n flush_put_bits ( & tmp ) ;\n init_get_bits ( & s -> gb , s -> frame_data , s -> num_saved_bits ) ;\n skip_bits ( & s -> gb , s -> frame_offset ) ;\n }"}
{"idx": 1771, "target": 0, "func": "static const char * cmd_hash_engine ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n if ( dcfg == NULL ) return NULL ;\n if ( strcasecmp ( p1 , \"on\" ) == 0 ) {\n dcfg -> hash_is_enabled = HASH_ENABLED ;\n dcfg -> hash_enforcement = HASH_ENABLED ;\n }\n else if ( strcasecmp ( p1 , \"off\" ) == 0 ) {\n dcfg -> hash_is_enabled = HASH_DISABLED ;\n dcfg -> hash_enforcement = HASH_DISABLED ;\n }\n else return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid value for SexHashEngine: %s\" , p1 ) ;\n return NULL ;\n }"}
{"idx": 1772, "target": 0, "func": "static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 1773, "target": 0, "func": "restrict_node * create_restrict_node ( address_node * addr , address_node * mask , int_fifo * flags , int line_no ) {\n restrict_node * my_node ;\n my_node = emalloc_zero ( sizeof ( * my_node ) ) ;\n my_node -> addr = addr ;\n my_node -> mask = mask ;\n my_node -> flags = flags ;\n my_node -> line_no = line_no ;\n return my_node ;\n }"}
{"idx": 1774, "target": 0, "func": "static void gx_ttfExport__SetWidth ( ttfExport * self , FloatPoint * p ) {\n gx_ttfExport * e = ( gx_ttfExport * ) self ;\n e -> w . x = float2fixed ( p -> x ) ;\n e -> w . y = float2fixed ( p -> y ) ;\n }"}
{"idx": 1775, "target": 1, "func": "static int ptx_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n const uint8_t * buf_end = avpkt -> data + avpkt -> size ;\n PTXContext * const s = avctx -> priv_data ;\n AVFrame * picture = data ;\n AVFrame * const p = & s -> picture ;\n unsigned int offset , w , h , y , stride , bytes_per_pixel ;\n int ret ;\n uint8_t * ptr ;\n if ( buf_end - buf < 14 ) return AVERROR_INVALIDDATA ;\n offset = AV_RL16 ( buf ) ;\n w = AV_RL16 ( buf + 8 ) ;\n h = AV_RL16 ( buf + 10 ) ;\n bytes_per_pixel = AV_RL16 ( buf + 12 ) >> 3 ;\n if ( bytes_per_pixel != 2 ) {\n av_log_ask_for_sample ( avctx , \"Image format is not RGB15.\\n\" ) ;\n return AVERROR_PATCHWELCOME ;\n }\n avctx -> pix_fmt = AV_PIX_FMT_RGB555 ;\n if ( buf_end - buf < offset ) return AVERROR_INVALIDDATA ;\n if ( offset != 0x2c ) av_log_ask_for_sample ( avctx , \"offset != 0x2c\\n\" ) ;\n buf += offset ;\n if ( p -> data [ 0 ] ) avctx -> release_buffer ( avctx , p ) ;\n if ( ( ret = av_image_check_size ( w , h , 0 , avctx ) ) < 0 ) return ret ;\n if ( w != avctx -> width || h != avctx -> height ) avcodec_set_dimensions ( avctx , w , h ) ;\n if ( ( ret = ff_get_buffer ( avctx , p ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n p -> pict_type = AV_PICTURE_TYPE_I ;\n ptr = p -> data [ 0 ] ;\n stride = p -> linesize [ 0 ] ;\n for ( y = 0 ;\n y < h && buf_end - buf >= w * bytes_per_pixel ;\n y ++ ) {\n # if HAVE_BIGENDIAN unsigned int x ;\n for ( x = 0 ;\n x < w * bytes_per_pixel ;\n x += bytes_per_pixel ) AV_WN16 ( ptr + x , AV_RL16 ( buf + x ) ) ;\n # else memcpy ( ptr , buf , w * bytes_per_pixel ) ;\n # endif ptr += stride ;\n buf += w * bytes_per_pixel ;\n }\n * picture = s -> picture ;\n * got_frame = 1 ;\n if ( y < h ) {\n av_log ( avctx , AV_LOG_WARNING , \"incomplete packet\\n\" ) ;\n return avpkt -> size ;\n }\n return offset + w * h * bytes_per_pixel ;\n }"}
{"idx": 1776, "target": 0, "func": "PGconn * GetConnection ( Archive * AHX ) {\n ArchiveHandle * AH = ( ArchiveHandle * ) AHX ;\n return AH -> connection ;\n }"}
{"idx": 1777, "target": 0, "func": "int TSHttpTxnServerReqHdrBytesGet ( TSHttpTxn txnp ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n return sm -> server_request_hdr_bytes ;\n }"}
{"idx": 1778, "target": 0, "func": "static int dissect_h245_NumericString_SIZE_1_16 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_NumericString ( tvb , offset , actx , tree , hf_index , 1 , 16 , FALSE ) ;\n return offset ;\n }"}
{"idx": 1779, "target": 0, "func": "static inline PixelTrait GetPixelGrayTraits ( const Image * restrict image ) {\n return ( image -> channel_map [ GrayPixelChannel ] . traits ) ;\n }"}
{"idx": 1780, "target": 0, "func": "static int parse_frame_header ( AC3DecodeContext * s ) {\n AC3HeaderInfo hdr ;\n int err ;\n err = avpriv_ac3_parse_header ( & s -> gbc , & hdr ) ;\n if ( err ) return err ;\n s -> bit_alloc_params . sr_code = hdr . sr_code ;\n s -> bitstream_mode = hdr . bitstream_mode ;\n s -> channel_mode = hdr . channel_mode ;\n s -> channel_layout = hdr . channel_layout ;\n s -> lfe_on = hdr . lfe_on ;\n s -> bit_alloc_params . sr_shift = hdr . sr_shift ;\n s -> sample_rate = hdr . sample_rate ;\n s -> bit_rate = hdr . bit_rate ;\n s -> channels = hdr . channels ;\n s -> fbw_channels = s -> channels - s -> lfe_on ;\n s -> lfe_ch = s -> fbw_channels + 1 ;\n s -> frame_size = hdr . frame_size ;\n s -> center_mix_level = hdr . center_mix_level ;\n s -> surround_mix_level = hdr . surround_mix_level ;\n s -> num_blocks = hdr . num_blocks ;\n s -> frame_type = hdr . frame_type ;\n s -> substreamid = hdr . substreamid ;\n if ( s -> lfe_on ) {\n s -> start_freq [ s -> lfe_ch ] = 0 ;\n s -> end_freq [ s -> lfe_ch ] = 7 ;\n s -> num_exp_groups [ s -> lfe_ch ] = 2 ;\n s -> channel_in_cpl [ s -> lfe_ch ] = 0 ;\n }\n if ( hdr . bitstream_id <= 10 ) {\n s -> eac3 = 0 ;\n s -> snr_offset_strategy = 2 ;\n s -> block_switch_syntax = 1 ;\n s -> dither_flag_syntax = 1 ;\n s -> bit_allocation_syntax = 1 ;\n s -> fast_gain_syntax = 0 ;\n s -> first_cpl_leak = 0 ;\n s -> dba_syntax = 1 ;\n s -> skip_syntax = 1 ;\n memset ( s -> channel_uses_aht , 0 , sizeof ( s -> channel_uses_aht ) ) ;\n return ac3_parse_header ( s ) ;\n }\n else if ( CONFIG_EAC3_DECODER ) {\n s -> eac3 = 1 ;\n return ff_eac3_parse_header ( s ) ;\n }\n else {\n av_log ( s -> avctx , AV_LOG_ERROR , \"E-AC-3 support not compiled in\\n\" ) ;\n return - 1 ;\n }\n }"}
{"idx": 1781, "target": 0, "func": "TEST_F ( UsbBlocklistTest , StringsWithOneValidEntry ) {\n SetDynamicBlocklist ( \"18D1:58F0:0101\" ) ;\n EXPECT_EQ ( 1u , list ( ) . GetDynamicEntryCountForTest ( ) ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x18D1 , 0x58F0 , 0x0101 }\n ) ) ;\n SetDynamicBlocklist ( \" 18D1:58F0:0200 \" ) ;\n EXPECT_EQ ( 1u , list ( ) . GetDynamicEntryCountForTest ( ) ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x18D1 , 0x58F0 , 0x0200 }\n ) ) ;\n SetDynamicBlocklist ( \", 18D1:58F0:0201, \" ) ;\n EXPECT_EQ ( 1u , list ( ) . GetDynamicEntryCountForTest ( ) ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x18D1 , 0x58F0 , 0x0201 }\n ) ) ;\n SetDynamicBlocklist ( \"18D1:58F0:0202, 0000:1:0000\" ) ;\n EXPECT_EQ ( 1u , list ( ) . GetDynamicEntryCountForTest ( ) ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x18D1 , 0x58F0 , 0x0202 }\n ) ) ;\n }"}
{"idx": 1782, "target": 0, "func": "int main ( int argc , char * * argv ) {\n FILE * infile = NULL ;\n vpx_codec_ctx_t codec ;\n vpx_codec_enc_cfg_t cfg ;\n int frame_count = 0 ;\n vpx_image_t raw ;\n vpx_codec_err_t res ;\n VpxVideoInfo info ;\n VpxVideoWriter * writer = NULL ;\n const VpxInterface * encoder = NULL ;\n const int fps = 2 ;\n const double bits_per_pixel_per_frame = 0.067 ;\n exec_name = argv [ 0 ] ;\n if ( argc != 6 ) die ( \"Invalid number of arguments\" ) ;\n memset ( & info , 0 , sizeof ( info ) ) ;\n encoder = get_vpx_encoder_by_name ( argv [ 1 ] ) ;\n if ( encoder == NULL ) {\n die ( \"Unsupported codec.\" ) ;\n }\n assert ( encoder != NULL ) ;\n info . codec_fourcc = encoder -> fourcc ;\n info . frame_width = strtol ( argv [ 2 ] , NULL , 0 ) ;\n info . frame_height = strtol ( argv [ 3 ] , NULL , 0 ) ;\n info . time_base . numerator = 1 ;\n info . time_base . denominator = fps ;\n if ( info . frame_width <= 0 || info . frame_height <= 0 || ( info . frame_width % 2 ) != 0 || ( info . frame_height % 2 ) != 0 ) {\n die ( \"Invalid frame size: %dx%d\" , info . frame_width , info . frame_height ) ;\n }\n if ( ! vpx_img_alloc ( & raw , VPX_IMG_FMT_I420 , info . frame_width , info . frame_height , 1 ) ) {\n die ( \"Failed to allocate image.\" ) ;\n }\n printf ( \"Using %s\\n\" , vpx_codec_iface_name ( encoder -> codec_interface ( ) ) ) ;\n res = vpx_codec_enc_config_default ( encoder -> codec_interface ( ) , & cfg , 0 ) ;\n if ( res ) die_codec ( & codec , \"Failed to get default codec config.\" ) ;\n cfg . g_w = info . frame_width ;\n cfg . g_h = info . frame_height ;\n cfg . g_timebase . num = info . time_base . numerator ;\n cfg . g_timebase . den = info . time_base . denominator ;\n cfg . rc_target_bitrate = ( unsigned int ) ( bits_per_pixel_per_frame * cfg . g_w * cfg . g_h * fps / 1000 ) ;\n cfg . g_lag_in_frames = 0 ;\n writer = vpx_video_writer_open ( argv [ 5 ] , kContainerIVF , & info ) ;\n if ( ! writer ) die ( \"Failed to open %s for writing.\" , argv [ 5 ] ) ;\n if ( ! ( infile = fopen ( argv [ 4 ] , \"rb\" ) ) ) die ( \"Failed to open %s for reading.\" , argv [ 4 ] ) ;\n if ( vpx_codec_enc_init ( & codec , encoder -> codec_interface ( ) , & cfg , 0 ) ) die_codec ( & codec , \"Failed to initialize encoder\" ) ;\n while ( vpx_img_read ( & raw , infile ) ) {\n ++ frame_count ;\n if ( frame_count == 22 && encoder -> fourcc == VP8_FOURCC ) {\n set_roi_map ( & cfg , & codec ) ;\n }\n else if ( frame_count == 33 ) {\n set_active_map ( & cfg , & codec ) ;\n }\n else if ( frame_count == 44 ) {\n unset_active_map ( & cfg , & codec ) ;\n }\n encode_frame ( & codec , & raw , frame_count , writer ) ;\n }\n while ( encode_frame ( & codec , NULL , - 1 , writer ) ) {\n }\n printf ( \"\\n\" ) ;\n fclose ( infile ) ;\n printf ( \"Processed %d frames.\\n\" , frame_count ) ;\n vpx_img_free ( & raw ) ;\n if ( vpx_codec_destroy ( & codec ) ) die_codec ( & codec , \"Failed to destroy codec.\" ) ;\n vpx_video_writer_close ( writer ) ;\n return EXIT_SUCCESS ;\n }"}
{"idx": 1783, "target": 0, "func": "void c_main ( ) {\n puts ( \"----\" ) ;\n puts ( \"C Sample\" ) ;\n UErrorCode status = U_ZERO_ERROR ;\n int32_t i ;\n UCalendar * cal = ucal_open ( NULL , - 1 , NULL , UCAL_GREGORIAN , & status ) ;\n if ( U_FAILURE ( status ) ) {\n puts ( \"Couldn't create GregorianCalendar\" ) ;\n return ;\n }\n ucal_set ( cal , UCAL_YEAR , 2000 ) ;\n ucal_set ( cal , UCAL_MONTH , UCAL_FEBRUARY ) ;\n ucal_set ( cal , UCAL_DATE , 26 ) ;\n ucal_set ( cal , UCAL_HOUR_OF_DAY , 23 ) ;\n ucal_set ( cal , UCAL_MINUTE , 0 ) ;\n ucal_set ( cal , UCAL_SECOND , 0 ) ;\n ucal_set ( cal , UCAL_MILLISECOND , 0 ) ;\n for ( i = 0 ;\n i < 30 ;\n i ++ ) {\n printf ( \"year: %d, month: %d (%d in the implementation), day: %d\\n\" , ucal_get ( cal , UCAL_YEAR , & status ) , ucal_get ( cal , UCAL_MONTH , & status ) + 1 , ucal_get ( cal , UCAL_MONTH , & status ) , ucal_get ( cal , UCAL_DATE , & status ) ) ;\n if ( U_FAILURE ( status ) ) {\n puts ( \"Calendar::get failed\" ) ;\n return ;\n }\n ucal_add ( cal , UCAL_DATE , 1 , & status ) ;\n if ( U_FAILURE ( status ) ) {\n puts ( \"Calendar::add failed\" ) ;\n return ;\n }\n }\n ucal_close ( cal ) ;\n }"}
{"idx": 1784, "target": 0, "func": "static int selinux_peerlbl_enabled ( void ) {\n return ( selinux_policycap_alwaysnetwork || netlbl_enabled ( ) || selinux_xfrm_enabled ( ) ) ;\n }"}
{"idx": 1785, "target": 0, "func": "static void init_dequant_tables ( H264Context * h ) {\n int i , x ;\n init_dequant4_coeff_table ( h ) ;\n if ( h -> pps . transform_8x8_mode ) init_dequant8_coeff_table ( h ) ;\n if ( h -> sps . transform_bypass ) {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) for ( x = 0 ;\n x < 16 ;\n x ++ ) h -> dequant4_coeff [ i ] [ 0 ] [ x ] = 1 << 6 ;\n if ( h -> pps . transform_8x8_mode ) for ( i = 0 ;\n i < 6 ;\n i ++ ) for ( x = 0 ;\n x < 64 ;\n x ++ ) h -> dequant8_coeff [ i ] [ 0 ] [ x ] = 1 << 6 ;\n }\n }"}
{"idx": 1786, "target": 0, "func": "hidden_def ( _nss_dns_gethostbyname3_r ) enum nss_status _nss_dns_gethostbyname2_r ( const char * name , int af , struct hostent * result , char * buffer , size_t buflen , int * errnop , int * h_errnop ) {\n return _nss_dns_gethostbyname3_r ( name , af , result , buffer , buflen , errnop , h_errnop , NULL , NULL ) ;\n }"}
{"idx": 1787, "target": 0, "func": "static int dissect_CPMGetRows ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * parent_tree , gboolean in , void * private_data ) {\n struct mswsp_ct * ct = NULL ;\n gint offset = 16 ;\n proto_item * item ;\n proto_tree * tree ;\n proto_tree * seek_tree ;\n guint32 eType = 0 ;\n item = proto_tree_add_item ( parent_tree , hf_mswsp_msg , tvb , offset , in ? 0 : - 1 , ENC_NA ) ;\n tree = proto_item_add_subtree ( item , ett_mswsp_msg ) ;\n proto_item_set_text ( item , \"GetRows%s\" , in ? \"In\" : \"Out\" ) ;\n col_append_str ( pinfo -> cinfo , COL_INFO , \"GetRows\" ) ;\n ct = get_create_converstation_data ( pinfo ) ;\n if ( in ) {\n struct message_data * data = NULL ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrows_hcursor , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrows_rowstotransfer , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrows_rowwidth , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrows_cbseek , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n data = find_or_create_message_data ( ct , pinfo , 0xCC , in , private_data ) ;\n if ( data ) {\n data -> content . rowsin . cbreserved = tvb_get_letohl ( tvb , offset ) ;\n }\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrows_cbreserved , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrows_cbreadbuffer , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n if ( data ) {\n data -> content . rowsin . ulclientbase = tvb_get_letohl ( tvb , offset ) ;\n }\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrows_ulclientbase , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrows_fbwdfetch , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n eType = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrows_etype , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrows_chapt , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n seek_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_SeekDescription , NULL , \"SeekDescription\" ) ;\n switch ( eType ) {\n case 0 : break ;\n case 1 : parse_CRowSeekNext ( tvb , offset , seek_tree , \"CRowSeekNext\" ) ;\n break ;\n case 2 : parse_CRowSeekAt ( tvb , offset , seek_tree , \"CRowSeekAt\" ) ;\n break ;\n case 3 : parse_CRowSeekAtRatio ( tvb , offset , seek_tree , \"CRowSeekAtRatio\" ) ;\n break ;\n case 4 : parse_CRowSeekByBookmark ( tvb , offset , seek_tree , \"CRowSeekByRatio\" ) ;\n break ;\n default : break ;\n }\n }\n else {\n guint32 num_rows = 0 ;\n proto_item * ti ;\n proto_tree * pad_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_mswsp_pad , & ti , \"Padding\" ) ;\n struct CPMSetBindingsIn * bindingsin = find_binding_msg_data ( ct , pinfo , private_data ) ;\n struct rows_data * rowsin = find_rowsin_msg_data ( ct , pinfo , private_data ) ;\n gboolean b_64bit_mode = FALSE ;\n gboolean b_has_arch = is_64bit_mode ( ct , pinfo , & b_64bit_mode , private_data ) ;\n num_rows = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrows_crowsreturned , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n eType = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrows_etype , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrows_chapt , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n seek_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_SeekDescription , NULL , \"SeekDescription\" ) ;\n switch ( eType ) {\n case 0 : break ;\n case 1 : parse_CRowSeekNext ( tvb , offset , seek_tree , \"CRowSeekNext\" ) ;\n break ;\n case 2 : parse_CRowSeekAt ( tvb , offset , seek_tree , \"CRowSeekAt\" ) ;\n break ;\n case 3 : parse_CRowSeekAtRatio ( tvb , offset , seek_tree , \"CRowSeekAtRatio\" ) ;\n break ;\n case 4 : parse_CRowSeekByBookmark ( tvb , offset , seek_tree , \"CRowSeekByRatio\" ) ;\n break ;\n default : break ;\n }\n if ( b_has_arch && bindingsin && rowsin ) {\n offset = parse_padding ( tvb , offset , rowsin -> cbreserved , pad_tree , \"paddingRows\" ) ;\n parse_RowsBuffer ( tvb , pinfo , offset , num_rows , bindingsin , rowsin , b_64bit_mode , tree , \"Rows\" ) ;\n }\n else {\n gint nbytes = tvb_reported_length_remaining ( tvb , offset ) ;\n proto_tree_add_expert_format ( tree , pinfo , & ei_missing_msg_context , tvb , offset , nbytes , \"Undissected %d bytes (due to missing preceding msg(s))\" , nbytes ) ;\n }\n }\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 1788, "target": 0, "func": "static void decode_vectors ( COOKContext * q , COOKSubpacket * p , int * category , int * quant_index_table , float * mlt_buffer ) {\n int subband_coef_index [ SUBBAND_SIZE ] ;\n int subband_coef_sign [ SUBBAND_SIZE ] ;\n int band , j ;\n int index = 0 ;\n for ( band = 0 ;\n band < p -> total_subbands ;\n band ++ ) {\n index = category [ band ] ;\n if ( category [ band ] < 7 ) {\n if ( unpack_SQVH ( q , p , category [ band ] , subband_coef_index , subband_coef_sign ) ) {\n index = 7 ;\n for ( j = 0 ;\n j < p -> total_subbands ;\n j ++ ) category [ band + j ] = 7 ;\n }\n }\n if ( index >= 7 ) {\n memset ( subband_coef_index , 0 , sizeof ( subband_coef_index ) ) ;\n memset ( subband_coef_sign , 0 , sizeof ( subband_coef_sign ) ) ;\n }\n q -> scalar_dequant ( q , index , quant_index_table [ band ] , subband_coef_index , subband_coef_sign , & mlt_buffer [ band * SUBBAND_SIZE ] ) ;\n }\n if ( p -> total_subbands * SUBBAND_SIZE >= q -> samples_per_channel ) return ;\n }"}
{"idx": 1789, "target": 0, "func": "static void test_ps_null_param ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n MYSQL_BIND in_bind ;\n my_bool in_is_null ;\n long int in_long ;\n MYSQL_BIND out_bind ;\n ulong out_length ;\n my_bool out_is_null ;\n char out_str_data [ 20 ] ;\n const char * queries [ ] = {\n \"select ?\" , \"select ?+1\" , \"select col1 from test_ps_nulls where col1 <=> ?\" , NULL }\n ;\n const char * * cur_query = queries ;\n myheader ( \"test_null_ps_param_in_result\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_ps_nulls\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_ps_nulls(col1 int)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_ps_nulls values (1), (null)\" ) ;\n myquery ( rc ) ;\n memset ( & in_bind , 0 , sizeof ( in_bind ) ) ;\n memset ( & out_bind , 0 , sizeof ( out_bind ) ) ;\n in_bind . buffer_type = MYSQL_TYPE_LONG ;\n in_bind . is_null = & in_is_null ;\n in_bind . length = 0 ;\n in_bind . buffer = ( void * ) & in_long ;\n in_is_null = 1 ;\n in_long = 1 ;\n out_bind . buffer_type = MYSQL_TYPE_STRING ;\n out_bind . is_null = & out_is_null ;\n out_bind . length = & out_length ;\n out_bind . buffer = out_str_data ;\n out_bind . buffer_length = array_elements ( out_str_data ) ;\n for ( cur_query = queries ;\n * cur_query ;\n cur_query ++ ) {\n char query [ MAX_TEST_QUERY_LENGTH ] ;\n strmov ( query , * cur_query ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 1 ) ;\n rc = mysql_stmt_bind_param ( stmt , & in_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_bind_result ( stmt , & out_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc != MYSQL_NO_DATA ) ;\n DIE_UNLESS ( out_is_null ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n mysql_stmt_close ( stmt ) ;\n }\n }"}
{"idx": 1790, "target": 0, "func": "static int pfkey_spdadd ( struct sock * sk , struct sk_buff * skb , const struct sadb_msg * hdr , void * const * ext_hdrs ) {\n struct net * net = sock_net ( sk ) ;\n int err = 0 ;\n struct sadb_lifetime * lifetime ;\n struct sadb_address * sa ;\n struct sadb_x_policy * pol ;\n struct xfrm_policy * xp ;\n struct km_event c ;\n struct sadb_x_sec_ctx * sec_ctx ;\n if ( ! present_and_same_family ( ext_hdrs [ SADB_EXT_ADDRESS_SRC - 1 ] , ext_hdrs [ SADB_EXT_ADDRESS_DST - 1 ] ) || ! ext_hdrs [ SADB_X_EXT_POLICY - 1 ] ) return - EINVAL ;\n pol = ext_hdrs [ SADB_X_EXT_POLICY - 1 ] ;\n if ( pol -> sadb_x_policy_type > IPSEC_POLICY_IPSEC ) return - EINVAL ;\n if ( ! pol -> sadb_x_policy_dir || pol -> sadb_x_policy_dir >= IPSEC_DIR_MAX ) return - EINVAL ;\n xp = xfrm_policy_alloc ( net , GFP_KERNEL ) ;\n if ( xp == NULL ) return - ENOBUFS ;\n xp -> action = ( pol -> sadb_x_policy_type == IPSEC_POLICY_DISCARD ? XFRM_POLICY_BLOCK : XFRM_POLICY_ALLOW ) ;\n xp -> priority = pol -> sadb_x_policy_priority ;\n sa = ext_hdrs [ SADB_EXT_ADDRESS_SRC - 1 ] , xp -> family = pfkey_sadb_addr2xfrm_addr ( sa , & xp -> selector . saddr ) ;\n if ( ! xp -> family ) {\n err = - EINVAL ;\n goto out ;\n }\n xp -> selector . family = xp -> family ;\n xp -> selector . prefixlen_s = sa -> sadb_address_prefixlen ;\n xp -> selector . proto = pfkey_proto_to_xfrm ( sa -> sadb_address_proto ) ;\n xp -> selector . sport = ( ( struct sockaddr_in * ) ( sa + 1 ) ) -> sin_port ;\n if ( xp -> selector . sport ) xp -> selector . sport_mask = htons ( 0xffff ) ;\n sa = ext_hdrs [ SADB_EXT_ADDRESS_DST - 1 ] , pfkey_sadb_addr2xfrm_addr ( sa , & xp -> selector . daddr ) ;\n xp -> selector . prefixlen_d = sa -> sadb_address_prefixlen ;\n xp -> selector . proto = pfkey_proto_to_xfrm ( sa -> sadb_address_proto ) ;\n xp -> selector . dport = ( ( struct sockaddr_in * ) ( sa + 1 ) ) -> sin_port ;\n if ( xp -> selector . dport ) xp -> selector . dport_mask = htons ( 0xffff ) ;\n sec_ctx = ext_hdrs [ SADB_X_EXT_SEC_CTX - 1 ] ;\n if ( sec_ctx != NULL ) {\n struct xfrm_user_sec_ctx * uctx = pfkey_sadb2xfrm_user_sec_ctx ( sec_ctx ) ;\n if ( ! uctx ) {\n err = - ENOBUFS ;\n goto out ;\n }\n err = security_xfrm_policy_alloc ( & xp -> security , uctx ) ;\n kfree ( uctx ) ;\n if ( err ) goto out ;\n }\n xp -> lft . soft_byte_limit = XFRM_INF ;\n xp -> lft . hard_byte_limit = XFRM_INF ;\n xp -> lft . soft_packet_limit = XFRM_INF ;\n xp -> lft . hard_packet_limit = XFRM_INF ;\n if ( ( lifetime = ext_hdrs [ SADB_EXT_LIFETIME_HARD - 1 ] ) != NULL ) {\n xp -> lft . hard_packet_limit = _KEY2X ( lifetime -> sadb_lifetime_allocations ) ;\n xp -> lft . hard_byte_limit = _KEY2X ( lifetime -> sadb_lifetime_bytes ) ;\n xp -> lft . hard_add_expires_seconds = lifetime -> sadb_lifetime_addtime ;\n xp -> lft . hard_use_expires_seconds = lifetime -> sadb_lifetime_usetime ;\n }\n if ( ( lifetime = ext_hdrs [ SADB_EXT_LIFETIME_SOFT - 1 ] ) != NULL ) {\n xp -> lft . soft_packet_limit = _KEY2X ( lifetime -> sadb_lifetime_allocations ) ;\n xp -> lft . soft_byte_limit = _KEY2X ( lifetime -> sadb_lifetime_bytes ) ;\n xp -> lft . soft_add_expires_seconds = lifetime -> sadb_lifetime_addtime ;\n xp -> lft . soft_use_expires_seconds = lifetime -> sadb_lifetime_usetime ;\n }\n xp -> xfrm_nr = 0 ;\n if ( pol -> sadb_x_policy_type == IPSEC_POLICY_IPSEC && ( err = parse_ipsecrequests ( xp , pol ) ) < 0 ) goto out ;\n err = xfrm_policy_insert ( pol -> sadb_x_policy_dir - 1 , xp , hdr -> sadb_msg_type != SADB_X_SPDUPDATE ) ;\n xfrm_audit_policy_add ( xp , err ? 0 : 1 , audit_get_loginuid ( current ) , audit_get_sessionid ( current ) , 0 ) ;\n if ( err ) goto out ;\n if ( hdr -> sadb_msg_type == SADB_X_SPDUPDATE ) c . event = XFRM_MSG_UPDPOLICY ;\n else c . event = XFRM_MSG_NEWPOLICY ;\n c . seq = hdr -> sadb_msg_seq ;\n c . portid = hdr -> sadb_msg_pid ;\n km_policy_notify ( xp , pol -> sadb_x_policy_dir - 1 , & c ) ;\n xfrm_pol_put ( xp ) ;\n return 0 ;\n out : xp -> walk . dead = 1 ;\n xfrm_policy_destroy ( xp ) ;\n return err ;\n }"}
{"idx": 1791, "target": 0, "func": "static void stroke_rekey ( private_stroke_socket_t * this , stroke_msg_t * msg , FILE * out ) {\n pop_string ( msg , & msg -> terminate . name ) ;\n DBG1 ( DBG_CFG , \"received stroke: rekey '%s'\" , msg -> rekey . name ) ;\n this -> control -> rekey ( this -> control , msg , out ) ;\n }"}
{"idx": 1792, "target": 0, "func": "int32 get_typavgwidth ( Oid typid , int32 typmod ) {\n int typlen = get_typlen ( typid ) ;\n int32 maxwidth ;\n if ( typlen > 0 ) return typlen ;\n maxwidth = type_maximum_size ( typid , typmod ) ;\n if ( maxwidth > 0 ) {\n if ( typid == BPCHAROID ) return maxwidth ;\n if ( maxwidth <= 32 ) return maxwidth ;\n if ( maxwidth < 1000 ) return 32 + ( maxwidth - 32 ) / 2 ;\n return 32 + ( 1000 - 32 ) / 2 ;\n }\n return 32 ;\n }"}
{"idx": 1793, "target": 0, "func": "static void pk_transaction_get_details_local ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) {\n gboolean ret ;\n GError * error_local = NULL ;\n GError * error = NULL ;\n guint i ;\n guint length ;\n g_autofree gchar * content_type = NULL ;\n g_autofree gchar * files_temp = NULL ;\n g_autofree gchar * * full_paths = NULL ;\n g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;\n g_return_if_fail ( transaction -> priv -> tid != NULL ) ;\n g_variant_get ( params , \"(^a&s)\" , & full_paths ) ;\n files_temp = pk_package_ids_to_string ( full_paths ) ;\n g_debug ( \"GetDetailsLocal method called: %s\" , files_temp ) ;\n if ( ! pk_backend_is_implemented ( transaction -> priv -> backend , PK_ROLE_ENUM_GET_DETAILS_LOCAL ) ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NOT_SUPPORTED , \"GetDetailsLocal not supported by backend\" ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n length = g_strv_length ( full_paths ) ;\n if ( length == 0 ) {\n g_set_error_literal ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NUMBER_OF_PACKAGES_INVALID , \"No filenames listed\" ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n if ( length > PK_TRANSACTION_MAX_PACKAGES_TO_PROCESS ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NUMBER_OF_PACKAGES_INVALID , \"Too many files to process (%i/%i)\" , length , PK_TRANSACTION_MAX_PACKAGES_TO_PROCESS ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n length = g_strv_length ( full_paths ) ;\n for ( i = 0 ;\n i < length ;\n i ++ ) {\n ret = g_file_test ( full_paths [ i ] , G_FILE_TEST_EXISTS ) ;\n if ( ! ret ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NO_SUCH_FILE , \"No such file %s\" , full_paths [ i ] ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n content_type = pk_transaction_get_content_type_for_file ( full_paths [ i ] , & error_local ) ;\n if ( content_type == NULL ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_MIME_TYPE_NOT_SUPPORTED , \"Failed to get content type for file %s\" , full_paths [ i ] ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n ret = pk_transaction_is_supported_content_type ( transaction , content_type ) ;\n if ( ! ret ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_MIME_TYPE_NOT_SUPPORTED , \"MIME type '%s' not supported %s\" , content_type , full_paths [ i ] ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n }\n transaction -> priv -> cached_full_paths = g_strdupv ( full_paths ) ;\n pk_transaction_set_role ( transaction , PK_ROLE_ENUM_GET_DETAILS_LOCAL ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_READY ) ;\n out : pk_transaction_dbus_return ( context , error ) ;\n }"}
{"idx": 1794, "target": 0, "func": "static spl_filesystem_object * spl_filesystem_object_create_type ( int ht , spl_filesystem_object * source , int type , zend_class_entry * ce , zval * return_value TSRMLS_DC ) {\n spl_filesystem_object * intern ;\n zend_bool use_include_path = 0 ;\n zval * arg1 , * arg2 ;\n zend_error_handling error_handling ;\n zend_replace_error_handling ( EH_THROW , spl_ce_RuntimeException , & error_handling TSRMLS_CC ) ;\n switch ( source -> type ) {\n case SPL_FS_INFO : case SPL_FS_FILE : break ;\n case SPL_FS_DIR : if ( ! source -> u . dir . entry . d_name [ 0 ] ) {\n zend_throw_exception_ex ( spl_ce_RuntimeException , 0 TSRMLS_CC , \"Could not open file\" ) ;\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n return NULL ;\n }\n }\n switch ( type ) {\n case SPL_FS_INFO : ce = ce ? ce : source -> info_class ;\n zend_update_class_constants ( ce TSRMLS_CC ) ;\n return_value -> value . obj = spl_filesystem_object_new_ex ( ce , & intern TSRMLS_CC ) ;\n Z_TYPE_P ( return_value ) = IS_OBJECT ;\n spl_filesystem_object_get_file_name ( source TSRMLS_CC ) ;\n if ( ce -> constructor -> common . scope != spl_ce_SplFileInfo ) {\n MAKE_STD_ZVAL ( arg1 ) ;\n ZVAL_STRINGL ( arg1 , source -> file_name , source -> file_name_len , 1 ) ;\n zend_call_method_with_1_params ( & return_value , ce , & ce -> constructor , \"__construct\" , NULL , arg1 ) ;\n zval_ptr_dtor ( & arg1 ) ;\n }\n else {\n intern -> file_name = estrndup ( source -> file_name , source -> file_name_len ) ;\n intern -> file_name_len = source -> file_name_len ;\n intern -> _path = spl_filesystem_object_get_path ( source , & intern -> _path_len TSRMLS_CC ) ;\n intern -> _path = estrndup ( intern -> _path , intern -> _path_len ) ;\n }\n break ;\n case SPL_FS_FILE : ce = ce ? ce : source -> file_class ;\n zend_update_class_constants ( ce TSRMLS_CC ) ;\n return_value -> value . obj = spl_filesystem_object_new_ex ( ce , & intern TSRMLS_CC ) ;\n Z_TYPE_P ( return_value ) = IS_OBJECT ;\n spl_filesystem_object_get_file_name ( source TSRMLS_CC ) ;\n if ( ce -> constructor -> common . scope != spl_ce_SplFileObject ) {\n MAKE_STD_ZVAL ( arg1 ) ;\n MAKE_STD_ZVAL ( arg2 ) ;\n ZVAL_STRINGL ( arg1 , source -> file_name , source -> file_name_len , 1 ) ;\n ZVAL_STRINGL ( arg2 , \"r\" , 1 , 1 ) ;\n zend_call_method_with_2_params ( & return_value , ce , & ce -> constructor , \"__construct\" , NULL , arg1 , arg2 ) ;\n zval_ptr_dtor ( & arg1 ) ;\n zval_ptr_dtor ( & arg2 ) ;\n }\n else {\n intern -> file_name = source -> file_name ;\n intern -> file_name_len = source -> file_name_len ;\n intern -> _path = spl_filesystem_object_get_path ( source , & intern -> _path_len TSRMLS_CC ) ;\n intern -> _path = estrndup ( intern -> _path , intern -> _path_len ) ;\n intern -> u . file . open_mode = \"r\" ;\n intern -> u . file . open_mode_len = 1 ;\n if ( ht && zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"|sbr\" , & intern -> u . file . open_mode , & intern -> u . file . open_mode_len , & use_include_path , & intern -> u . file . zcontext ) == FAILURE ) {\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n intern -> u . file . open_mode = NULL ;\n intern -> file_name = NULL ;\n zval_dtor ( return_value ) ;\n Z_TYPE_P ( return_value ) = IS_NULL ;\n return NULL ;\n }\n if ( spl_filesystem_file_open ( intern , use_include_path , 0 TSRMLS_CC ) == FAILURE ) {\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n zval_dtor ( return_value ) ;\n Z_TYPE_P ( return_value ) = IS_NULL ;\n return NULL ;\n }\n }\n break ;\n case SPL_FS_DIR : zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n zend_throw_exception_ex ( spl_ce_RuntimeException , 0 TSRMLS_CC , \"Operation not supported\" ) ;\n return NULL ;\n }\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n return NULL ;\n }"}
{"idx": 1795, "target": 0, "func": "static struct xfrm_state * pfkey_xfrm_state_lookup ( struct net * net , const struct sadb_msg * hdr , void * const * ext_hdrs ) {\n const struct sadb_sa * sa ;\n const struct sadb_address * addr ;\n uint16_t proto ;\n unsigned short family ;\n xfrm_address_t * xaddr ;\n sa = ext_hdrs [ SADB_EXT_SA - 1 ] ;\n if ( sa == NULL ) return NULL ;\n proto = pfkey_satype2proto ( hdr -> sadb_msg_satype ) ;\n if ( proto == 0 ) return NULL ;\n addr = ext_hdrs [ SADB_EXT_ADDRESS_DST - 1 ] ;\n if ( addr == NULL ) return NULL ;\n family = ( ( const struct sockaddr * ) ( addr + 1 ) ) -> sa_family ;\n switch ( family ) {\n case AF_INET : xaddr = ( xfrm_address_t * ) & ( ( const struct sockaddr_in * ) ( addr + 1 ) ) -> sin_addr ;\n break ;\n # if IS_ENABLED ( CONFIG_IPV6 ) case AF_INET6 : xaddr = ( xfrm_address_t * ) & ( ( const struct sockaddr_in6 * ) ( addr + 1 ) ) -> sin6_addr ;\n break ;\n # endif default : xaddr = NULL ;\n }\n if ( ! xaddr ) return NULL ;\n return xfrm_state_lookup ( net , DUMMY_MARK , xaddr , sa -> sadb_sa_spi , proto , family ) ;\n }"}
{"idx": 1796, "target": 0, "func": "static VALUE ossl_asn1_ ## klass ( int argc , VALUE * argv , VALUE self ) \\ {\n return rb_funcall3 ( cASN1 ## klass , rb_intern ( \"new\" ) , argc , argv ) ;\n }\n OSSL_ASN1_IMPL_FACTORY_METHOD ( Boolean ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Integer ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Enumerated )"}
{"idx": 1797, "target": 0, "func": "static void init_builtin_echo ( void ) {\n # ifdef __WIN__ size_t echo_length ;\n dirname_part ( builtin_echo , my_progname , & echo_length ) ;\n fn_format ( builtin_echo , \".\\\\echo.exe\" , builtin_echo , \"\" , MYF ( MY_REPLACE_DIR ) ) ;\n if ( access ( builtin_echo , F_OK ) != 0 ) builtin_echo [ 0 ] = 0 ;\n return ;\n # else builtin_echo [ 0 ] = 0 ;\n return ;\n # endif }"}
{"idx": 1798, "target": 0, "func": "void proto_initialize_all_prefixes ( void ) {\n g_hash_table_foreach_remove ( prefixes , initialize_prefix , NULL ) ;\n }"}
{"idx": 1799, "target": 0, "func": "int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL ) DECLARE_PEM_rw ( PKCS7 , PKCS7 ) DECLARE_PEM_rw ( NETSCAPE_CERT_SEQUENCE , NETSCAPE_CERT_SEQUENCE ) DECLARE_PEM_rw ( PKCS8 , X509_SIG ) DECLARE_PEM_rw ( PKCS8_PRIV_KEY_INFO , PKCS8_PRIV_KEY_INFO ) # ifndef OPENSSL_NO_RSA DECLARE_PEM_rw_cb ( RSAPrivateKey , RSA ) DECLARE_PEM_rw_const ( RSAPublicKey , RSA ) DECLARE_PEM_rw ( RSA_PUBKEY , RSA ) # endif # ifndef OPENSSL_NO_DSA DECLARE_PEM_rw_cb ( DSAPrivateKey , DSA )"}
{"idx": 1800, "target": 0, "func": "static int dissect_nlm3_shareres ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n return dissect_nlm_shareres ( tvb , 0 , pinfo , tree , 3 ) ;\n }"}
{"idx": 1801, "target": 0, "func": "static void selinux_bprm_committing_creds ( struct linux_binprm * bprm ) {\n struct task_security_struct * new_tsec ;\n struct rlimit * rlim , * initrlim ;\n int rc , i ;\n new_tsec = bprm -> cred -> security ;\n if ( new_tsec -> sid == new_tsec -> osid ) return ;\n flush_unauthorized_files ( bprm -> cred , current -> files ) ;\n current -> pdeath_signal = 0 ;\n rc = avc_has_perm ( new_tsec -> osid , new_tsec -> sid , SECCLASS_PROCESS , PROCESS__RLIMITINH , NULL ) ;\n if ( rc ) {\n task_lock ( current ) ;\n for ( i = 0 ;\n i < RLIM_NLIMITS ;\n i ++ ) {\n rlim = current -> signal -> rlim + i ;\n initrlim = init_task . signal -> rlim + i ;\n rlim -> rlim_cur = min ( rlim -> rlim_max , initrlim -> rlim_cur ) ;\n }\n task_unlock ( current ) ;\n if ( IS_ENABLED ( CONFIG_POSIX_TIMERS ) ) update_rlimit_cpu ( current , rlimit ( RLIMIT_CPU ) ) ;\n }\n }"}
{"idx": 1802, "target": 0, "func": "static bluetooth_uuid_t get_characteristic_uuid_from_handle ( packet_info * pinfo , guint32 handle , bluetooth_data_t * bluetooth_data ) {\n wmem_tree_key_t key [ 4 ] ;\n guint32 frame_number ;\n handle_data_t * handle_data ;\n wmem_tree_t * sub_wmemtree ;\n bluetooth_uuid_t uuid ;\n memset ( & uuid , 0 , sizeof uuid ) ;\n frame_number = pinfo -> num ;\n key [ 0 ] . length = 1 ;\n key [ 0 ] . key = & bluetooth_data -> interface_id ;\n key [ 1 ] . length = 1 ;\n key [ 1 ] . key = & bluetooth_data -> adapter_id ;\n key [ 2 ] . length = 1 ;\n key [ 2 ] . key = & handle ;\n key [ 3 ] . length = 0 ;\n key [ 3 ] . key = NULL ;\n while ( handle > 0 ) {\n sub_wmemtree = ( wmem_tree_t * ) wmem_tree_lookup32_array ( handle_to_uuid , key ) ;\n handle_data = ( sub_wmemtree ) ? ( handle_data_t * ) wmem_tree_lookup32_le ( sub_wmemtree , frame_number ) : NULL ;\n if ( handle_data && handle_data -> type == ATTRIBUTE_TYPE_SERVICE ) return uuid ;\n if ( handle_data && handle_data -> type == ATTRIBUTE_TYPE_CHARACTERISTIC ) {\n uuid = handle_data -> uuid ;\n return uuid ;\n }\n handle -= 1 ;\n }\n return uuid ;\n }"}
{"idx": 1803, "target": 1, "func": "static ossl_inline void lh_ ## type ## _node_usage_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_usage_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING ) ;\n # ifdef _MSC_VER # pragma warning ( push ) # pragma warning ( disable : 4090 ) # endif DEFINE_LHASH_OF ( OPENSSL_CSTRING )"}
{"idx": 1804, "target": 0, "func": "int qemuMonitorTextGetBlockInfo ( qemuMonitorPtr mon , const char * devname , struct qemuDomainDiskInfo * info ) {\n char * reply = NULL ;\n int ret = - 1 ;\n char * dummy ;\n const char * p , * eol ;\n int devnamelen = strlen ( devname ) ;\n int tmp ;\n if ( qemuMonitorHMPCommand ( mon , \"info block\" , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , _ ( \"info block command failed\" ) ) ;\n goto cleanup ;\n }\n if ( strstr ( reply , \"\\ninfo \" ) ) {\n qemuReportError ( VIR_ERR_OPERATION_INVALID , \"%s\" , _ ( \"info block not supported by this qemu\" ) ) ;\n goto cleanup ;\n }\n p = reply ;\n while ( * p ) {\n if ( STRPREFIX ( p , QEMU_DRIVE_HOST_PREFIX ) ) p += strlen ( QEMU_DRIVE_HOST_PREFIX ) ;\n if ( STREQLEN ( p , devname , devnamelen ) && p [ devnamelen ] == ':' && p [ devnamelen + 1 ] == ' ' ) {\n eol = strchr ( p , '\\n' ) ;\n if ( ! eol ) eol = p + strlen ( p ) ;\n p += devnamelen + 2 ;\n while ( * p ) {\n if ( STRPREFIX ( p , \"removable=\" ) ) {\n p += strlen ( \"removable=\" ) ;\n if ( virStrToLong_i ( p , & dummy , 10 , & tmp ) == - 1 ) VIR_DEBUG ( \"error reading removable: %s\" , p ) ;\n else info -> removable = ( tmp != 0 ) ;\n }\n else if ( STRPREFIX ( p , \"locked=\" ) ) {\n p += strlen ( \"locked=\" ) ;\n if ( virStrToLong_i ( p , & dummy , 10 , & tmp ) == - 1 ) VIR_DEBUG ( \"error reading locked: %s\" , p ) ;\n else info -> locked = ( tmp != 0 ) ;\n }\n else if ( STRPREFIX ( p , \"tray_open=\" ) ) {\n p += strlen ( \"tray_open=\" ) ;\n if ( virStrToLong_i ( p , & dummy , 10 , & tmp ) == - 1 ) VIR_DEBUG ( \"error reading tray_open: %s\" , p ) ;\n else info -> tray_open = ( tmp != 0 ) ;\n }\n else {\n }\n p = strchr ( p , ' ' ) ;\n if ( ! p || p >= eol ) break ;\n p ++ ;\n }\n ret = 0 ;\n goto cleanup ;\n }\n p = strchr ( p , '\\n' ) ;\n if ( ! p ) break ;\n p ++ ;\n }\n qemuReportError ( VIR_ERR_INVALID_ARG , _ ( \"no info for device '%s'\" ) , devname ) ;\n cleanup : VIR_FREE ( reply ) ;\n return ret ;\n }"}
{"idx": 1805, "target": 0, "func": "static hb_position_t hb_font_get_glyph_v_advance_nil ( hb_font_t * font , void * font_data HB_UNUSED , hb_codepoint_t glyph , void * user_data HB_UNUSED ) {\n if ( font -> parent ) return font -> parent_scale_y_distance ( font -> parent -> get_glyph_v_advance ( glyph ) ) ;\n return font -> y_scale ;\n }"}
{"idx": 1806, "target": 1, "func": "static __inline__ __u32 __fswab32 ( __u32 val ) {\n # if defined ( __arch_swab32 ) return __arch_swab32 ( val ) ;\n # else return ___constant_swab32 ( val ) ;\n # endif }"}
{"idx": 1807, "target": 1, "func": "static void cookedprint ( int datatype , int length , const char * data , int status , int quiet , FILE * fp ) {\n char * name ;\n char * value ;\n char output_raw ;\n int fmt ;\n l_fp lfp ;\n sockaddr_u hval ;\n u_long uval ;\n int narr ;\n size_t len ;\n l_fp lfparr [ 8 ] ;\n char b [ 12 ] ;\n char bn [ 2 * MAXVARLEN ] ;\n char bv [ 2 * MAXVALLEN ] ;\n UNUSED_ARG ( datatype ) ;\n if ( ! quiet ) fprintf ( fp , \"status=%04x %s,\\n\" , status , statustoa ( datatype , status ) ) ;\n startoutput ( ) ;\n while ( nextvar ( & length , & data , & name , & value ) ) {\n fmt = varfmt ( name ) ;\n output_raw = 0 ;\n switch ( fmt ) {\n case PADDING : output_raw = '*' ;\n break ;\n case TS : if ( ! decodets ( value , & lfp ) ) output_raw = '?' ;\n else output ( fp , name , prettydate ( & lfp ) ) ;\n break ;\n case HA : case NA : if ( ! decodenetnum ( value , & hval ) ) {\n output_raw = '?' ;\n }\n else if ( fmt == HA ) {\n output ( fp , name , nntohost ( & hval ) ) ;\n }\n else {\n output ( fp , name , stoa ( & hval ) ) ;\n }\n break ;\n case RF : if ( decodenetnum ( value , & hval ) ) {\n if ( ISREFCLOCKADR ( & hval ) ) output ( fp , name , refnumtoa ( & hval ) ) ;\n else output ( fp , name , stoa ( & hval ) ) ;\n }\n else if ( strlen ( value ) <= 4 ) {\n output ( fp , name , value ) ;\n }\n else {\n output_raw = '?' ;\n }\n break ;\n case LP : if ( ! decodeuint ( value , & uval ) || uval > 3 ) {\n output_raw = '?' ;\n }\n else {\n b [ 0 ] = ( 0x2 & uval ) ? '1' : '0' ;\n b [ 1 ] = ( 0x1 & uval ) ? '1' : '0' ;\n b [ 2 ] = '\\0' ;\n output ( fp , name , b ) ;\n }\n break ;\n case OC : if ( ! decodeuint ( value , & uval ) ) {\n output_raw = '?' ;\n }\n else {\n snprintf ( b , sizeof ( b ) , \"%03lo\" , uval ) ;\n output ( fp , name , b ) ;\n }\n break ;\n case AR : if ( ! decodearr ( value , & narr , lfparr ) ) output_raw = '?' ;\n else outputarr ( fp , name , narr , lfparr ) ;\n break ;\n case FX : if ( ! decodeuint ( value , & uval ) ) output_raw = '?' ;\n else output ( fp , name , tstflags ( uval ) ) ;\n break ;\n default : fprintf ( stderr , \"Internal error in cookedprint, %s=%s, fmt %d\\n\" , name , value , fmt ) ;\n output_raw = '?' ;\n break ;\n }\n if ( output_raw != 0 ) {\n atoascii ( name , MAXVARLEN , bn , sizeof ( bn ) ) ;\n atoascii ( value , MAXVALLEN , bv , sizeof ( bv ) ) ;\n if ( output_raw != '*' ) {\n len = strlen ( bv ) ;\n bv [ len ] = output_raw ;\n bv [ len + 1 ] = '\\0' ;\n }\n output ( fp , bn , bv ) ;\n }\n }\n endoutput ( fp ) ;\n }"}
{"idx": 1808, "target": 0, "func": "int keyring_delete_keyblock ( KEYRING_HANDLE hd ) {\n int rc ;\n if ( ! hd -> found . kr ) return - 1 ;\n if ( hd -> found . kr -> read_only ) return gpg_error ( GPG_ERR_EACCES ) ;\n if ( ! hd -> found . n_packets ) {\n rc = keyring_get_keyblock ( hd , NULL ) ;\n if ( rc ) {\n log_error ( \"re-reading keyblock failed: %s\\n\" , gpg_strerror ( rc ) ) ;\n return rc ;\n }\n if ( ! hd -> found . n_packets ) BUG ( ) ;\n }\n iobuf_close ( hd -> current . iobuf ) ;\n hd -> current . iobuf = NULL ;\n rc = do_copy ( 2 , hd -> found . kr -> fname , NULL , hd -> found . offset , hd -> found . n_packets ) ;\n if ( ! rc ) {\n hd -> found . kr = NULL ;\n hd -> found . offset = 0 ;\n }\n return rc ;\n }"}
{"idx": 1809, "target": 0, "func": "static int write_path_table ( struct archive_write * a , int type_m , struct vdd * vdd ) {\n int depth , r ;\n size_t path_table_size ;\n r = ARCHIVE_OK ;\n path_table_size = 0 ;\n for ( depth = 0 ;\n depth < vdd -> max_depth ;\n depth ++ ) {\n r = _write_path_table ( a , type_m , depth , vdd ) ;\n if ( r < 0 ) return ( r ) ;\n path_table_size += r ;\n }\n path_table_size = path_table_size % PATH_TABLE_BLOCK_SIZE ;\n if ( path_table_size > 0 ) r = write_null ( a , PATH_TABLE_BLOCK_SIZE - path_table_size ) ;\n return ( r ) ;\n }"}
{"idx": 1810, "target": 0, "func": "int mask2plen ( uint32_t mask ) {\n uint32_t bitmasks [ 33 ] = {\n 0x00000000 , 0x80000000 , 0xc0000000 , 0xe0000000 , 0xf0000000 , 0xf8000000 , 0xfc000000 , 0xfe000000 , 0xff000000 , 0xff800000 , 0xffc00000 , 0xffe00000 , 0xfff00000 , 0xfff80000 , 0xfffc0000 , 0xfffe0000 , 0xffff0000 , 0xffff8000 , 0xffffc000 , 0xffffe000 , 0xfffff000 , 0xfffff800 , 0xfffffc00 , 0xfffffe00 , 0xffffff00 , 0xffffff80 , 0xffffffc0 , 0xffffffe0 , 0xfffffff0 , 0xfffffff8 , 0xfffffffc , 0xfffffffe , 0xffffffff }\n ;\n int prefix_len = 32 ;\n while ( prefix_len >= 0 ) {\n if ( bitmasks [ prefix_len ] == mask ) break ;\n prefix_len -- ;\n }\n return ( prefix_len ) ;\n }"}
{"idx": 1811, "target": 0, "func": "static uint64_t pxa2xx_i2c_read ( void * opaque , hwaddr addr , unsigned size ) {\n PXA2xxI2CState * s = ( PXA2xxI2CState * ) opaque ;\n addr -= s -> offset ;\n switch ( addr ) {\n case ICR : return s -> control ;\n case ISR : return s -> status | ( i2c_bus_busy ( s -> bus ) << 2 ) ;\n case ISAR : return s -> slave -> i2c . address ;\n case IDBR : return s -> data ;\n case IBMR : if ( s -> status & ( 1 << 2 ) ) s -> ibmr ^= 3 ;\n else s -> ibmr = 0 ;\n return s -> ibmr ;\n default : printf ( \"%s: Bad register \" REG_FMT \"\\n\" , __FUNCTION__ , addr ) ;\n break ;\n }\n return 0 ;\n }"}
{"idx": 1812, "target": 1, "func": "static void _SCSUClose ( UConverter * cnv ) {\n if ( cnv -> extraInfo != NULL ) {\n if ( ! cnv -> isExtraLocal ) {\n uprv_free ( cnv -> extraInfo ) ;\n }\n cnv -> extraInfo = NULL ;\n }\n }"}
{"idx": 1813, "target": 0, "func": "static void postfilter_5k0 ( SiprContext * ctx , const float * lpc , float * samples ) {\n float buf [ SUBFR_SIZE + LP_FILTER_ORDER ] ;\n float * pole_out = buf + LP_FILTER_ORDER ;\n float lpc_n [ LP_FILTER_ORDER ] ;\n float lpc_d [ LP_FILTER_ORDER ] ;\n int i ;\n for ( i = 0 ;\n i < LP_FILTER_ORDER ;\n i ++ ) {\n lpc_d [ i ] = lpc [ i ] * ff_pow_0_75 [ i ] ;\n lpc_n [ i ] = lpc [ i ] * ff_pow_0_5 [ i ] ;\n }\n ;\n memcpy ( pole_out - LP_FILTER_ORDER , ctx -> postfilter_mem , LP_FILTER_ORDER * sizeof ( float ) ) ;\n ff_celp_lp_synthesis_filterf ( pole_out , lpc_d , samples , SUBFR_SIZE , LP_FILTER_ORDER ) ;\n memcpy ( ctx -> postfilter_mem , pole_out + SUBFR_SIZE - LP_FILTER_ORDER , LP_FILTER_ORDER * sizeof ( float ) ) ;\n ff_tilt_compensation ( & ctx -> tilt_mem , 0.4 , pole_out , SUBFR_SIZE ) ;\n memcpy ( pole_out - LP_FILTER_ORDER , ctx -> postfilter_mem5k0 , LP_FILTER_ORDER * sizeof ( * pole_out ) ) ;\n memcpy ( ctx -> postfilter_mem5k0 , pole_out + SUBFR_SIZE - LP_FILTER_ORDER , LP_FILTER_ORDER * sizeof ( * pole_out ) ) ;\n ff_celp_lp_zero_synthesis_filterf ( samples , lpc_n , pole_out , SUBFR_SIZE , LP_FILTER_ORDER ) ;\n }"}
{"idx": 1814, "target": 0, "func": "static int fetch_indices ( void ) {\n int ret ;\n if ( push_verbosely ) fprintf ( stderr , \"Getting pack list\\n\" ) ;\n switch ( http_get_info_packs ( repo -> url , & repo -> packs ) ) {\n case HTTP_OK : case HTTP_MISSING_TARGET : ret = 0 ;\n break ;\n default : ret = - 1 ;\n }\n return ret ;\n }"}
{"idx": 1815, "target": 1, "func": "static int32_t u_scanf_pointer_handler ( UFILE * input , u_scanf_spec_info * info , ufmt_args * args , const UChar * fmt , int32_t * fmtConsumed , int32_t * argConverted ) {\n int32_t len ;\n int32_t skipped ;\n void * result ;\n void * * p = ( void * * ) ( args [ 0 ] . ptrValue ) ;\n skipped = u_scanf_skip_leading_ws ( input , info -> fPadChar ) ;\n ufile_fill_uchar_buffer ( input ) ;\n len = ( int32_t ) ( input -> str . fLimit - input -> str . fPos ) ;\n if ( info -> fWidth != - 1 ) {\n len = ufmt_min ( len , info -> fWidth ) ;\n }\n if ( len > ( int32_t ) ( sizeof ( void * ) * 2 ) ) {\n len = ( int32_t ) ( sizeof ( void * ) * 2 ) ;\n }\n result = ufmt_utop ( input -> str . fPos , & len ) ;\n if ( ! info -> fSkipArg ) {\n * p = result ;\n }\n input -> str . fPos += len ;\n * argConverted = ! info -> fSkipArg ;\n return len + skipped ;\n }"}
{"idx": 1816, "target": 0, "func": "static apr_status_t modsecurity_tx_cleanup ( void * data ) {\n modsec_rec * msr = ( modsec_rec * ) data ;\n char * my_error_msg = NULL ;\n if ( msr == NULL ) return APR_SUCCESS ;\n if ( msr -> mpd != NULL ) multipart_cleanup ( msr ) ;\n if ( msr -> xml != NULL ) xml_cleanup ( msr ) ;\n modsecurity_request_body_clear ( msr , & my_error_msg ) ;\n if ( my_error_msg != NULL ) {\n msr_log ( msr , 1 , \"%s\" , my_error_msg ) ;\n }\n # if defined ( WITH_LUA ) # ifdef CACHE_LUA if ( msr -> L != NULL ) lua_close ( msr -> L ) ;\n # endif # endif return APR_SUCCESS ;\n }"}
{"idx": 1817, "target": 0, "func": "static __inline__ unsigned int dccp_packet_hdr_len ( const __u8 type ) {\n if ( type == DCCP_PKT_DATA ) return 0 ;\n if ( type == DCCP_PKT_DATAACK || type == DCCP_PKT_ACK || type == DCCP_PKT_SYNC || type == DCCP_PKT_SYNCACK || type == DCCP_PKT_CLOSE || type == DCCP_PKT_CLOSEREQ ) return sizeof ( struct dccp_hdr_ack_bits ) ;\n if ( type == DCCP_PKT_REQUEST ) return sizeof ( struct dccp_hdr_request ) ;\n if ( type == DCCP_PKT_RESPONSE ) return sizeof ( struct dccp_hdr_response ) ;\n return sizeof ( struct dccp_hdr_reset ) ;\n }"}
{"idx": 1818, "target": 1, "func": "static int get_twopass_worst_quality ( const VP9_COMP * cpi , const FIRSTPASS_STATS * stats , int section_target_bandwidth ) {\n const RATE_CONTROL * const rc = & cpi -> rc ;\n const VP9EncoderConfig * const oxcf = & cpi -> oxcf ;\n if ( section_target_bandwidth <= 0 ) {\n return rc -> worst_quality ;\n }\n else {\n const int num_mbs = cpi -> common . MBs ;\n const double section_err = stats -> coded_error / stats -> count ;\n const double err_per_mb = section_err / num_mbs ;\n const double speed_term = 1.0 + 0.04 * oxcf -> speed ;\n const int target_norm_bits_per_mb = ( ( uint64_t ) section_target_bandwidth << BPER_MB_NORMBITS ) / num_mbs ;\n int q ;\n int is_svc_upper_layer = 0 ;\n if ( is_two_pass_svc ( cpi ) && cpi -> svc . spatial_layer_id > 0 ) is_svc_upper_layer = 1 ;\n for ( q = rc -> best_quality ;\n q < rc -> worst_quality ;\n ++ q ) {\n const double factor = calc_correction_factor ( err_per_mb , ERR_DIVISOR , is_svc_upper_layer ? SVC_FACTOR_PT_LOW : FACTOR_PT_LOW , FACTOR_PT_HIGH , q ) ;\n const int bits_per_mb = vp9_rc_bits_per_mb ( INTER_FRAME , q , factor * speed_term ) ;\n if ( bits_per_mb <= target_norm_bits_per_mb ) break ;\n }\n if ( cpi -> oxcf . rc_mode == VPX_CQ ) q = MAX ( q , oxcf -> cq_level ) ;\n return q ;\n }\n }"}
{"idx": 1819, "target": 0, "func": "void evdns_shutdown ( int fail_requests ) {\n struct nameserver * server , * server_next ;\n struct search_domain * dom , * dom_next ;\n while ( req_head ) {\n if ( fail_requests ) reply_callback ( req_head , 0 , DNS_ERR_SHUTDOWN , NULL ) ;\n request_finished ( req_head , & req_head ) ;\n }\n while ( req_waiting_head ) {\n if ( fail_requests ) reply_callback ( req_waiting_head , 0 , DNS_ERR_SHUTDOWN , NULL ) ;\n request_finished ( req_waiting_head , & req_waiting_head ) ;\n }\n global_requests_inflight = global_requests_waiting = 0 ;\n for ( server = server_head ;\n server ;\n server = server_next ) {\n server_next = server -> next ;\n if ( server -> socket >= 0 ) CLOSE_SOCKET ( server -> socket ) ;\n ( void ) event_del ( & server -> event ) ;\n if ( server -> state == 0 ) ( void ) event_del ( & server -> timeout_event ) ;\n free ( server ) ;\n if ( server_next == server_head ) break ;\n }\n server_head = NULL ;\n global_good_nameservers = 0 ;\n if ( global_search_state ) {\n for ( dom = global_search_state -> head ;\n dom ;\n dom = dom_next ) {\n dom_next = dom -> next ;\n free ( dom ) ;\n }\n free ( global_search_state ) ;\n global_search_state = NULL ;\n }\n evdns_log_fn = NULL ;\n }"}
{"idx": 1820, "target": 0, "func": "int xmlrpc_getlast_error ( void ) {\n return xmlrpc_error_code ;\n }"}
{"idx": 1821, "target": 0, "func": "int rateallocate ( jpc_enc_t * enc , int numlyrs , uint_fast32_t * cumlens ) {\n jpc_flt_t lo ;\n jpc_flt_t hi ;\n jas_stream_t * out ;\n uint_fast32_t cumlen ;\n int lyrno ;\n jpc_flt_t thresh ;\n jpc_flt_t goodthresh ;\n int success ;\n long pos ;\n long oldpos ;\n int numiters ;\n jpc_enc_tcmpt_t * comp ;\n jpc_enc_tcmpt_t * endcomps ;\n jpc_enc_rlvl_t * lvl ;\n jpc_enc_rlvl_t * endlvls ;\n jpc_enc_band_t * band ;\n jpc_enc_band_t * endbands ;\n jpc_enc_cblk_t * cblk ;\n jpc_enc_cblk_t * endcblks ;\n jpc_enc_pass_t * pass ;\n jpc_enc_pass_t * endpasses ;\n jpc_enc_pass_t * pass1 ;\n jpc_flt_t mxrdslope ;\n jpc_flt_t mnrdslope ;\n jpc_enc_tile_t * tile ;\n jpc_enc_prc_t * prc ;\n int prcno ;\n JAS_DBGLOG ( 10 , ( \"starting rate allocation\\n\" ) ) ;\n tile = enc -> curtile ;\n for ( lyrno = 1 ;\n lyrno < numlyrs - 1 ;\n ++ lyrno ) {\n if ( cumlens [ lyrno - 1 ] > cumlens [ lyrno ] ) {\n abort ( ) ;\n }\n }\n if ( ! ( out = jas_stream_memopen ( 0 , 0 ) ) ) {\n return - 1 ;\n }\n mnrdslope = DBL_MAX ;\n mxrdslope = 0 ;\n endcomps = & tile -> tcmpts [ tile -> numtcmpts ] ;\n for ( comp = tile -> tcmpts ;\n comp != endcomps ;\n ++ comp ) {\n endlvls = & comp -> rlvls [ comp -> numrlvls ] ;\n for ( lvl = comp -> rlvls ;\n lvl != endlvls ;\n ++ lvl ) {\n if ( ! lvl -> bands ) {\n continue ;\n }\n endbands = & lvl -> bands [ lvl -> numbands ] ;\n for ( band = lvl -> bands ;\n band != endbands ;\n ++ band ) {\n if ( ! band -> data ) {\n continue ;\n }\n for ( prcno = 0 , prc = band -> prcs ;\n prcno < lvl -> numprcs ;\n ++ prcno , ++ prc ) {\n if ( ! prc -> cblks ) {\n continue ;\n }\n endcblks = & prc -> cblks [ prc -> numcblks ] ;\n for ( cblk = prc -> cblks ;\n cblk != endcblks ;\n ++ cblk ) {\n calcrdslopes ( cblk ) ;\n endpasses = & cblk -> passes [ cblk -> numpasses ] ;\n for ( pass = cblk -> passes ;\n pass != endpasses ;\n ++ pass ) {\n if ( pass -> rdslope > 0 ) {\n if ( pass -> rdslope < mnrdslope ) {\n mnrdslope = pass -> rdslope ;\n }\n if ( pass -> rdslope > mxrdslope ) {\n mxrdslope = pass -> rdslope ;\n }\n }\n }\n }\n }\n }\n }\n }\n JAS_DBGLOG ( 10 , ( \"min rdslope = %f max rdslope = %f\\n\" , mnrdslope , mxrdslope ) ) ;\n jpc_init_t2state ( enc , 1 ) ;\n for ( lyrno = 0 ;\n lyrno < numlyrs ;\n ++ lyrno ) {\n lo = mnrdslope ;\n hi = mxrdslope ;\n success = 0 ;\n goodthresh = 0 ;\n numiters = 0 ;\n do {\n cumlen = cumlens [ lyrno ] ;\n if ( cumlen == UINT_FAST32_MAX ) {\n assert ( lyrno == numlyrs - 1 ) ;\n goodthresh = - 1 ;\n success = 1 ;\n break ;\n }\n thresh = ( lo + hi ) / 2 ;\n jpc_save_t2state ( enc ) ;\n oldpos = jas_stream_tell ( out ) ;\n assert ( oldpos >= 0 ) ;\n endcomps = & tile -> tcmpts [ tile -> numtcmpts ] ;\n for ( comp = tile -> tcmpts ;\n comp != endcomps ;\n ++ comp ) {\n endlvls = & comp -> rlvls [ comp -> numrlvls ] ;\n for ( lvl = comp -> rlvls ;\n lvl != endlvls ;\n ++ lvl ) {\n if ( ! lvl -> bands ) {\n continue ;\n }\n endbands = & lvl -> bands [ lvl -> numbands ] ;\n for ( band = lvl -> bands ;\n band != endbands ;\n ++ band ) {\n if ( ! band -> data ) {\n continue ;\n }\n for ( prcno = 0 , prc = band -> prcs ;\n prcno < lvl -> numprcs ;\n ++ prcno , ++ prc ) {\n if ( ! prc -> cblks ) {\n continue ;\n }\n endcblks = & prc -> cblks [ prc -> numcblks ] ;\n for ( cblk = prc -> cblks ;\n cblk != endcblks ;\n ++ cblk ) {\n if ( cblk -> curpass ) {\n endpasses = & cblk -> passes [ cblk -> numpasses ] ;\n pass1 = cblk -> curpass ;\n for ( pass = cblk -> curpass ;\n pass != endpasses ;\n ++ pass ) {\n if ( pass -> rdslope >= thresh ) {\n pass1 = & pass [ 1 ] ;\n }\n }\n for ( pass = cblk -> curpass ;\n pass != pass1 ;\n ++ pass ) {\n pass -> lyrno = lyrno ;\n }\n for ( ;\n pass != endpasses ;\n ++ pass ) {\n pass -> lyrno = - 1 ;\n }\n }\n }\n }\n }\n }\n }\n endcomps = & tile -> tcmpts [ tile -> numtcmpts ] ;\n for ( comp = tile -> tcmpts ;\n comp != endcomps ;\n ++ comp ) {\n endlvls = & comp -> rlvls [ comp -> numrlvls ] ;\n for ( lvl = comp -> rlvls ;\n lvl != endlvls ;\n ++ lvl ) {\n if ( ! lvl -> bands ) {\n continue ;\n }\n for ( prcno = 0 ;\n prcno < lvl -> numprcs ;\n ++ prcno ) {\n if ( jpc_enc_encpkt ( enc , out , comp - tile -> tcmpts , lvl - comp -> rlvls , prcno , lyrno ) ) {\n return - 1 ;\n }\n }\n }\n }\n pos = jas_stream_tell ( out ) ;\n assert ( pos >= 0 ) ;\n if ( pos > cumlen ) {\n lo = thresh ;\n }\n else if ( pos <= cumlen ) {\n hi = thresh ;\n if ( ! success || thresh < goodthresh ) {\n goodthresh = thresh ;\n success = 1 ;\n }\n }\n jpc_restore_t2state ( enc ) ;\n if ( jas_stream_seek ( out , oldpos , SEEK_SET ) < 0 ) {\n abort ( ) ;\n }\n JAS_DBGLOG ( 10 , ( \"maxlen=%08ld actuallen=%08ld thresh=%f\\n\" , cumlen , pos , thresh ) ) ;\n ++ numiters ;\n }\n while ( lo < hi - 1e-3 && numiters < 32 ) ;\n if ( ! success ) {\n jas_eprintf ( \"warning: empty layer generated\\n\" ) ;\n }\n JAS_DBGLOG ( 10 , ( \"success %d goodthresh %f\\n\" , success , goodthresh ) ) ;\n endcomps = & tile -> tcmpts [ tile -> numtcmpts ] ;\n for ( comp = tile -> tcmpts ;\n comp != endcomps ;\n ++ comp ) {\n endlvls = & comp -> rlvls [ comp -> numrlvls ] ;\n for ( lvl = comp -> rlvls ;\n lvl != endlvls ;\n ++ lvl ) {\n if ( ! lvl -> bands ) {\n continue ;\n }\n endbands = & lvl -> bands [ lvl -> numbands ] ;\n for ( band = lvl -> bands ;\n band != endbands ;\n ++ band ) {\n if ( ! band -> data ) {\n continue ;\n }\n for ( prcno = 0 , prc = band -> prcs ;\n prcno < lvl -> numprcs ;\n ++ prcno , ++ prc ) {\n if ( ! prc -> cblks ) {\n continue ;\n }\n endcblks = & prc -> cblks [ prc -> numcblks ] ;\n for ( cblk = prc -> cblks ;\n cblk != endcblks ;\n ++ cblk ) {\n if ( cblk -> curpass ) {\n endpasses = & cblk -> passes [ cblk -> numpasses ] ;\n pass1 = cblk -> curpass ;\n if ( success ) {\n for ( pass = cblk -> curpass ;\n pass != endpasses ;\n ++ pass ) {\n if ( pass -> rdslope >= goodthresh ) {\n pass1 = & pass [ 1 ] ;\n }\n }\n }\n for ( pass = cblk -> curpass ;\n pass != pass1 ;\n ++ pass ) {\n pass -> lyrno = lyrno ;\n }\n for ( ;\n pass != endpasses ;\n ++ pass ) {\n pass -> lyrno = - 1 ;\n }\n }\n }\n }\n }\n }\n }\n endcomps = & tile -> tcmpts [ tile -> numtcmpts ] ;\n for ( comp = tile -> tcmpts ;\n comp != endcomps ;\n ++ comp ) {\n endlvls = & comp -> rlvls [ comp -> numrlvls ] ;\n for ( lvl = comp -> rlvls ;\n lvl != endlvls ;\n ++ lvl ) {\n if ( ! lvl -> bands ) {\n continue ;\n }\n for ( prcno = 0 ;\n prcno < lvl -> numprcs ;\n ++ prcno ) {\n if ( jpc_enc_encpkt ( enc , out , comp - tile -> tcmpts , lvl - comp -> rlvls , prcno , lyrno ) ) {\n return - 1 ;\n }\n }\n }\n }\n }\n if ( jas_getdbglevel ( ) >= 5 ) {\n dump_layeringinfo ( enc ) ;\n }\n jas_stream_close ( out ) ;\n JAS_DBGLOG ( 10 , ( \"finished rate allocation\\n\" ) ) ;\n return 0 ;\n }"}
{"idx": 1822, "target": 0, "func": "static inline int get_byte ( LZOContext * c ) {\n if ( c -> in < c -> in_end ) return * c -> in ++ ;\n c -> error |= AV_LZO_INPUT_DEPLETED ;\n return 1 ;\n }"}
{"idx": 1823, "target": 0, "func": "static char * main_format_millis ( long millis , shortbuf * buf ) {\n if ( millis < 1000 ) {\n short_sprintf ( * buf , \"%lu ms\" , millis ) ;\n }\n else if ( millis < 10000 ) {\n short_sprintf ( * buf , \"%.1f sec\" , millis / 1000.0 ) ;\n }\n else {\n short_sprintf ( * buf , \"%lu sec\" , millis / 1000L ) ;\n }\n return buf -> buf ;\n }"}
{"idx": 1824, "target": 0, "func": "void ahwrite ( const void * ptr , size_t size , size_t nmemb , ArchiveHandle * AH ) {\n int bytes_written = 0 ;\n if ( AH -> writingBlob ) {\n size_t remaining = size * nmemb ;\n while ( AH -> lo_buf_used + remaining > AH -> lo_buf_size ) {\n size_t avail = AH -> lo_buf_size - AH -> lo_buf_used ;\n memcpy ( ( char * ) AH -> lo_buf + AH -> lo_buf_used , ptr , avail ) ;\n ptr = ( const void * ) ( ( const char * ) ptr + avail ) ;\n remaining -= avail ;\n AH -> lo_buf_used += avail ;\n dump_lo_buf ( AH ) ;\n }\n memcpy ( ( char * ) AH -> lo_buf + AH -> lo_buf_used , ptr , remaining ) ;\n AH -> lo_buf_used += remaining ;\n bytes_written = size * nmemb ;\n }\n else if ( AH -> gzOut ) bytes_written = GZWRITE ( ptr , size , nmemb , AH -> OF ) ;\n else if ( AH -> CustomOutPtr ) bytes_written = AH -> CustomOutPtr ( AH , ptr , size * nmemb ) ;\n else {\n if ( RestoringToDB ( AH ) ) bytes_written = ExecuteSqlCommandBuf ( & AH -> public , ( const char * ) ptr , size * nmemb ) ;\n else bytes_written = fwrite ( ptr , size , nmemb , AH -> OF ) * size ;\n }\n if ( bytes_written != size * nmemb ) WRITE_ERROR_EXIT ;\n return ;\n }"}
{"idx": 1825, "target": 0, "func": "static void ini_print_int ( WriterContext * wctx , const char * key , long long int value ) {\n printf ( \"%s=%lld\\n\" , key , value ) ;\n }"}
{"idx": 1826, "target": 0, "func": "static void await_reference_mb_row ( H264Context * const h , Picture * ref , int mb_y ) {\n int ref_field = ref -> reference - 1 ;\n int ref_field_picture = ref -> field_picture ;\n int ref_height = 16 * h -> mb_height >> ref_field_picture ;\n if ( ! HAVE_THREADS || ! ( h -> avctx -> active_thread_type & FF_THREAD_FRAME ) ) return ;\n ff_thread_await_progress ( & ref -> tf , FFMIN ( 16 * mb_y >> ref_field_picture , ref_height - 1 ) , ref_field_picture && ref_field ) ;\n }"}
{"idx": 1827, "target": 0, "func": "static void dtap_gcc_imm_setup ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n guint8 oct ;\n proto_tree * subtree ;\n curr_offset = offset ;\n curr_len = len ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , curr_offset << 3 , 4 , ENC_BIG_ENDIAN ) ;\n subtree = proto_tree_add_subtree ( tree , tvb , curr_offset , 1 , ett_gsm_common_elem [ DE_CIPH_KEY_SEQ_NUM ] , NULL , val_to_str_ext_const ( DE_CIPH_KEY_SEQ_NUM , & gsm_common_elem_strings_ext , \"\" ) ) ;\n proto_tree_add_bits_item ( subtree , hf_gsm_a_spare_bits , tvb , ( curr_offset << 3 ) + 4 , 1 , ENC_BIG_ENDIAN ) ;\n switch ( oct & 0x07 ) {\n case 0x07 : proto_tree_add_uint_format_value ( subtree , hf_gsm_a_dtap_ciphering_key_sequence_number , tvb , curr_offset , 1 , oct , \"No key is available\" ) ;\n break ;\n default : proto_tree_add_item ( subtree , hf_gsm_a_dtap_ciphering_key_sequence_number , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n break ;\n }\n curr_offset ++ ;\n curr_len -- ;\n ELEM_MAND_LV ( GSM_A_PDU_TYPE_COMMON , DE_MS_CM_2 , NULL ) ;\n ELEM_MAND_LV ( GSM_A_PDU_TYPE_COMMON , DE_MID , NULL ) ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_GCC_CALL_REF , NULL ) ;\n ELEM_OPT_TLV ( 0x7e , GSM_A_PDU_TYPE_DTAP , DE_USER_USER , NULL ) ;\n }"}
{"idx": 1828, "target": 1, "func": "TEST_F ( ProtocolHandlerRegistryTest , TestReplaceRemovesStaleHandlers ) {\n ProtocolHandler ph1 = CreateProtocolHandler ( \"mailto\" , GURL ( \"http://test.com/%s\" ) , \"test1\" ) ;\n ProtocolHandler ph2 = CreateProtocolHandler ( \"mailto\" , GURL ( \"http://test.com/updated-url/%s\" ) , \"test2\" ) ;\n ProtocolHandler ph3 = CreateProtocolHandler ( \"mailto\" , GURL ( \"http://test.com/third/%s\" ) , \"test\" ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph2 ) ;\n ASSERT_TRUE ( registry ( ) -> AttemptReplace ( ph3 ) ) ;\n const ProtocolHandler & handler ( registry ( ) -> GetHandlerFor ( \"mailto\" ) ) ;\n ASSERT_EQ ( handler . url ( ) , ph3 . url ( ) ) ;\n registry ( ) -> RemoveHandler ( ph3 ) ;\n ASSERT_TRUE ( registry ( ) -> GetHandlerFor ( \"mailto\" ) . IsEmpty ( ) ) ;\n }"}
{"idx": 1829, "target": 0, "func": "static const char * cmd_unicode_codepage ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n long val ;\n val = atol ( p1 ) ;\n if ( val <= 0 ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid setting for \" \"SecUnicodeCodePage: %s\" , p1 ) ;\n }\n unicode_codepage = ( unsigned long int ) val ;\n return NULL ;\n }"}
{"idx": 1830, "target": 0, "func": "zend_object_value pdo_row_new ( zend_class_entry * ce TSRMLS_DC ) {\n zend_object_value retval ;\n retval . handle = zend_objects_store_put ( NULL , ( zend_objects_store_dtor_t ) zend_objects_destroy_object , ( zend_objects_free_object_storage_t ) pdo_row_free_storage , NULL TSRMLS_CC ) ;\n retval . handlers = & pdo_row_object_handlers ;\n return retval ;\n }"}
{"idx": 1831, "target": 0, "func": "static int dissect_btgatt_microbit_button_b_state ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , void * data ) {\n btatt_data_t * att_data = ( btatt_data_t * ) data ;\n gint offset = 0 ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) return - 1 ;\n proto_tree_add_item ( tree , hf_gatt_microbit_button_b_state , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n return offset ;\n }"}
{"idx": 1832, "target": 0, "func": "int PEM_write_ ## name ( FILE * fp , const type * x ) ;\n # define DECLARE_PEM_write_cb_fp ( name , type ) int PEM_write_ ## name ( FILE * fp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # endif # define DECLARE_PEM_read_bio ( name , type ) type * PEM_read_bio_ ## name ( BIO * bp , type * * x , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL ) DECLARE_PEM_rw ( PKCS7 , PKCS7 ) DECLARE_PEM_rw ( NETSCAPE_CERT_SEQUENCE , NETSCAPE_CERT_SEQUENCE ) DECLARE_PEM_rw ( PKCS8 , X509_SIG ) DECLARE_PEM_rw ( PKCS8_PRIV_KEY_INFO , PKCS8_PRIV_KEY_INFO ) # ifndef OPENSSL_NO_RSA DECLARE_PEM_rw_cb ( RSAPrivateKey , RSA ) DECLARE_PEM_rw_const ( RSAPublicKey , RSA ) DECLARE_PEM_rw ( RSA_PUBKEY , RSA ) # endif # ifndef OPENSSL_NO_DSA DECLARE_PEM_rw_cb ( DSAPrivateKey , DSA ) DECLARE_PEM_rw ( DSA_PUBKEY , DSA ) DECLARE_PEM_rw_const ( DSAparams , DSA ) # endif # ifndef OPENSSL_NO_EC DECLARE_PEM_rw_const ( ECPKParameters , EC_GROUP ) DECLARE_PEM_rw_cb ( ECPrivateKey , EC_KEY ) DECLARE_PEM_rw ( EC_PUBKEY , EC_KEY ) # endif # ifndef OPENSSL_NO_DH DECLARE_PEM_rw_const ( DHparams , DH )"}
{"idx": 1833, "target": 0, "func": "static void cmd_window_up ( void ) {\n MAIN_WINDOW_REC * rec ;\n rec = mainwindows_find_left_upper ( active_mainwin ) ;\n if ( rec == NULL ) rec = mainwindows_find_left_upper ( NULL ) ;\n if ( rec != NULL ) window_set_active ( rec -> active ) ;\n }"}
{"idx": 1834, "target": 0, "func": "static int kvm_get_fpu ( X86CPU * cpu ) {\n CPUX86State * env = & cpu -> env ;\n struct kvm_fpu fpu ;\n int i , ret ;\n ret = kvm_vcpu_ioctl ( CPU ( cpu ) , KVM_GET_FPU , & fpu ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n env -> fpstt = ( fpu . fsw >> 11 ) & 7 ;\n env -> fpus = fpu . fsw ;\n env -> fpuc = fpu . fcw ;\n env -> fpop = fpu . last_opcode ;\n env -> fpip = fpu . last_ip ;\n env -> fpdp = fpu . last_dp ;\n for ( i = 0 ;\n i < 8 ;\n ++ i ) {\n env -> fptags [ i ] = ! ( ( fpu . ftwx >> i ) & 1 ) ;\n }\n memcpy ( env -> fpregs , fpu . fpr , sizeof env -> fpregs ) ;\n for ( i = 0 ;\n i < CPU_NB_REGS ;\n i ++ ) {\n env -> xmm_regs [ i ] . ZMM_Q ( 0 ) = ldq_p ( & fpu . xmm [ i ] [ 0 ] ) ;\n env -> xmm_regs [ i ] . ZMM_Q ( 1 ) = ldq_p ( & fpu . xmm [ i ] [ 8 ] ) ;\n }\n env -> mxcsr = fpu . mxcsr ;\n return 0 ;\n }"}
{"idx": 1835, "target": 0, "func": "static const char * cmd_request_body_limit ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n long int limit ;\n if ( dcfg == NULL ) return NULL ;\n limit = strtol ( p1 , NULL , 10 ) ;\n if ( ( limit == LONG_MAX ) || ( limit == LONG_MIN ) || ( limit <= 0 ) ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid value for SecRequestBodyLimit: %s\" , p1 ) ;\n }\n dcfg -> reqbody_limit = limit ;\n return NULL ;\n }"}
{"idx": 1836, "target": 0, "func": "METHOD ( x509_t , get_flags , x509_flag_t , private_x509_cert_t * this ) {\n return this -> flags ;\n }"}
{"idx": 1837, "target": 0, "func": "static inline int op ( uint8_t * * dst , const uint8_t * dst_end , GetByteContext * gb , int pixel , int count , int * x , int width , int linesize ) {\n int remaining = width - * x ;\n while ( count > 0 ) {\n int striplen = FFMIN ( count , remaining ) ;\n if ( gb ) {\n if ( bytestream2_get_bytes_left ( gb ) < striplen ) goto exhausted ;\n bytestream2_get_bufferu ( gb , * dst , striplen ) ;\n }\n else if ( pixel >= 0 ) memset ( * dst , pixel , striplen ) ;\n * dst += striplen ;\n remaining -= striplen ;\n count -= striplen ;\n if ( remaining <= 0 ) {\n * dst += linesize - width ;\n remaining = width ;\n }\n if ( linesize > 0 ) {\n if ( * dst >= dst_end ) goto exhausted ;\n }\n else {\n if ( * dst <= dst_end ) goto exhausted ;\n }\n }\n * x = width - remaining ;\n return 0 ;\n exhausted : * x = width - remaining ;\n return 1 ;\n }"}
{"idx": 1838, "target": 0, "func": "const EVP_CIPHER * EVP_chacha20_poly1305 ( void ) {\n return ( & chacha20_poly1305 ) ;\n }"}
{"idx": 1839, "target": 0, "func": "static int dissect_t38_T30_data ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_enumerated ( tvb , offset , actx , tree , hf_index , 9 , & Data_value , TRUE , 6 , NULL ) ;\n # line 41 \"../../asn1/t38/t38.cnf\" if ( primary_part ) {\n col_append_fstr ( actx -> pinfo -> cinfo , COL_INFO , \" data:%s:\" , val_to_str ( Data_value , t38_T30_data_vals , \"<unknown>\" ) ) ;\n }\n if ( primary_part ) t38_info -> data_value = Data_value ;\n return offset ;\n }"}
{"idx": 1840, "target": 0, "func": "PHP_FUNCTION ( uwsgi_cache_clear ) {\n char * cache = NULL ;\n int cachelen = 0 ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"|s\" , & cache , & cachelen ) == FAILURE ) {\n RETURN_NULL ( ) ;\n }\n if ( ! uwsgi_cache_magic_clear ( cache ) ) {\n RETURN_TRUE ;\n }\n RETURN_NULL ( ) ;\n }"}
{"idx": 1841, "target": 1, "func": "static void initial_reordering_vowel_syllable ( const hb_ot_shape_plan_t * plan , hb_face_t * face , hb_buffer_t * buffer , unsigned int start , unsigned int end ) {\n initial_reordering_consonant_syllable ( plan , face , buffer , start , end ) ;\n }"}
{"idx": 1842, "target": 0, "func": "static Datum ExecEvalConst ( ExprState * exprstate , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n Const * con = ( Const * ) exprstate -> expr ;\n if ( isDone ) * isDone = ExprSingleResult ;\n * isNull = con -> constisnull ;\n return con -> constvalue ;\n }"}
{"idx": 1843, "target": 0, "func": "int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL ) DECLARE_PEM_rw ( PKCS7 , PKCS7 ) DECLARE_PEM_rw ( NETSCAPE_CERT_SEQUENCE , NETSCAPE_CERT_SEQUENCE )"}
{"idx": 1844, "target": 0, "func": "static int dissect_h245_MasterSlaveDeterminationAck ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MasterSlaveDeterminationAck , MasterSlaveDeterminationAck_sequence ) ;\n # line 530 \"../../asn1/h245/h245.cnf\" if ( h245_pi != NULL ) h245_pi -> msg_type = H245_MastSlvDetAck ;\n return offset ;\n }"}
{"idx": 1845, "target": 0, "func": "METHOD ( x509_t , get_constraint , u_int , private_x509_cert_t * this , x509_constraint_t type ) {\n switch ( type ) {\n case X509_PATH_LEN : return this -> pathLenConstraint ;\n case X509_REQUIRE_EXPLICIT_POLICY : return this -> require_explicit ;\n case X509_INHIBIT_POLICY_MAPPING : return this -> inhibit_mapping ;\n case X509_INHIBIT_ANY_POLICY : return this -> inhibit_any ;\n default : return X509_NO_CONSTRAINT ;\n }\n }"}
{"idx": 1846, "target": 0, "func": "static int auth_server_input_cuid ( struct auth_server_connection * conn , const char * const * args ) {\n if ( conn -> handshake_received ) {\n i_error ( \"BUG: Authentication server already sent handshake\" ) ;\n return - 1 ;\n }\n if ( args [ 0 ] == NULL || str_to_uint ( args [ 0 ] , & conn -> connect_uid ) < 0 ) {\n i_error ( \"BUG: Authentication server sent broken CUID line\" ) ;\n return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 1847, "target": 0, "func": "static guint16 de_tp_loop_type ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n guchar oct ;\n curr_offset = offset ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_channel_coding03 , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_loop_mechanism1C , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n if ( ( oct & 0x1c ) == 0 ) {\n proto_tree_add_item ( tree , hf_gsm_a_dtap_timeslot_number , tvb , curr_offset , 1 , ENC_NA ) ;\n }\n curr_offset += 1 ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 1848, "target": 0, "func": "static void test_show_object ( struct object * object , const char * name , void * data ) {\n struct bitmap_test_data * tdata = data ;\n int bitmap_pos ;\n bitmap_pos = bitmap_position ( object -> oid . hash ) ;\n if ( bitmap_pos < 0 ) die ( \"Object not in bitmap: %s\\n\" , oid_to_hex ( & object -> oid ) ) ;\n bitmap_set ( tdata -> base , bitmap_pos ) ;\n display_progress ( tdata -> prg , ++ tdata -> seen ) ;\n }"}
{"idx": 1849, "target": 0, "func": "static void release_tree_content ( struct tree_content * t ) {\n struct avail_tree_content * f = ( struct avail_tree_content * ) t ;\n unsigned int hc = hc_entries ( f -> entry_capacity ) ;\n f -> next_avail = avail_tree_table [ hc ] ;\n avail_tree_table [ hc ] = f ;\n }"}
{"idx": 1850, "target": 1, "func": "SRP_user_pwd * SRP_VBASE_get_by_user ( SRP_VBASE * vb , char * username ) {\n int i ;\n SRP_user_pwd * user ;\n unsigned char digv [ SHA_DIGEST_LENGTH ] ;\n unsigned char digs [ SHA_DIGEST_LENGTH ] ;\n EVP_MD_CTX ctxt ;\n if ( vb == NULL ) return NULL ;\n for ( i = 0 ;\n i < sk_SRP_user_pwd_num ( vb -> users_pwd ) ;\n i ++ ) {\n user = sk_SRP_user_pwd_value ( vb -> users_pwd , i ) ;\n if ( strcmp ( user -> id , username ) == 0 ) return user ;\n }\n if ( ( vb -> seed_key == NULL ) || ( vb -> default_g == NULL ) || ( vb -> default_N == NULL ) ) return NULL ;\n if ( ( user = SRP_user_pwd_new ( ) ) == NULL ) return NULL ;\n SRP_user_pwd_set_gN ( user , vb -> default_g , vb -> default_N ) ;\n if ( ! SRP_user_pwd_set_ids ( user , username , NULL ) ) goto err ;\n if ( RAND_pseudo_bytes ( digv , SHA_DIGEST_LENGTH ) < 0 ) goto err ;\n EVP_MD_CTX_init ( & ctxt ) ;\n EVP_DigestInit_ex ( & ctxt , EVP_sha1 ( ) , NULL ) ;\n EVP_DigestUpdate ( & ctxt , vb -> seed_key , strlen ( vb -> seed_key ) ) ;\n EVP_DigestUpdate ( & ctxt , username , strlen ( username ) ) ;\n EVP_DigestFinal_ex ( & ctxt , digs , NULL ) ;\n EVP_MD_CTX_cleanup ( & ctxt ) ;\n if ( SRP_user_pwd_set_sv_BN ( user , BN_bin2bn ( digs , SHA_DIGEST_LENGTH , NULL ) , BN_bin2bn ( digv , SHA_DIGEST_LENGTH , NULL ) ) ) return user ;\n err : SRP_user_pwd_free ( user ) ;\n return NULL ;\n }"}
{"idx": 1851, "target": 0, "func": "void get_atttypetypmodcoll ( Oid relid , AttrNumber attnum , Oid * typid , int32 * typmod , Oid * collid ) {\n HeapTuple tp ;\n Form_pg_attribute att_tup ;\n tp = SearchSysCache2 ( ATTNUM , ObjectIdGetDatum ( relid ) , Int16GetDatum ( attnum ) ) ;\n if ( ! HeapTupleIsValid ( tp ) ) elog ( ERROR , \"cache lookup failed for attribute %d of relation %u\" , attnum , relid ) ;\n att_tup = ( Form_pg_attribute ) GETSTRUCT ( tp ) ;\n * typid = att_tup -> atttypid ;\n * typmod = att_tup -> atttypmod ;\n * collid = att_tup -> attcollation ;\n ReleaseSysCache ( tp ) ;\n }"}
{"idx": 1852, "target": 0, "func": "static int add_to_include_set ( struct bitmap * base , struct commit * commit ) {\n khiter_t hash_pos ;\n uint32_t bitmap_pos = find_object_pos ( commit -> object . oid . hash ) ;\n if ( bitmap_get ( base , bitmap_pos ) ) return 0 ;\n hash_pos = kh_get_sha1 ( writer . bitmaps , commit -> object . oid . hash ) ;\n if ( hash_pos < kh_end ( writer . bitmaps ) ) {\n struct bitmapped_commit * bc = kh_value ( writer . bitmaps , hash_pos ) ;\n bitmap_or_ewah ( base , bc -> bitmap ) ;\n return 0 ;\n }\n bitmap_set ( base , bitmap_pos ) ;\n return 1 ;\n }"}
{"idx": 1853, "target": 0, "func": "void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 )"}
{"idx": 1854, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n TM2Context * const l = avctx -> priv_data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size & ~ 3 ;\n AVFrame * const p = & l -> pic ;\n int offset = TM2_HEADER_SIZE ;\n int i , t , ret ;\n uint8_t * swbuf ;\n swbuf = av_malloc ( buf_size + FF_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( ! swbuf ) {\n av_log ( avctx , AV_LOG_ERROR , \"Cannot allocate temporary buffer\\n\" ) ;\n return AVERROR ( ENOMEM ) ;\n }\n p -> reference = 1 ;\n p -> buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE ;\n if ( ( ret = avctx -> reget_buffer ( avctx , p ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n av_free ( swbuf ) ;\n return ret ;\n }\n l -> dsp . bswap_buf ( ( uint32_t * ) swbuf , ( const uint32_t * ) buf , buf_size >> 2 ) ;\n if ( ( ret = tm2_read_header ( l , swbuf ) ) < 0 ) {\n av_free ( swbuf ) ;\n return ret ;\n }\n for ( i = 0 ;\n i < TM2_NUM_STREAMS ;\n i ++ ) {\n if ( offset >= buf_size ) {\n av_free ( swbuf ) ;\n return AVERROR_INVALIDDATA ;\n }\n t = tm2_read_stream ( l , swbuf + offset , tm2_stream_order [ i ] , buf_size - offset ) ;\n if ( t < 0 ) {\n av_free ( swbuf ) ;\n return t ;\n }\n offset += t ;\n }\n p -> key_frame = tm2_decode_blocks ( l , p ) ;\n if ( p -> key_frame ) p -> pict_type = AV_PICTURE_TYPE_I ;\n else p -> pict_type = AV_PICTURE_TYPE_P ;\n l -> cur = ! l -> cur ;\n * got_frame = 1 ;\n * ( AVFrame * ) data = l -> pic ;\n av_free ( swbuf ) ;\n return buf_size ;\n }"}
{"idx": 1855, "target": 0, "func": "static int dissect_notify_options_flags ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n guint32 flags ;\n static const int * hf_flags [ ] = {\n & hf_notify_options_flags_refresh , NULL }\n ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , NULL , di , drep , - 1 , & flags ) ;\n proto_tree_add_bitmask_value_with_flags ( tree , tvb , offset - 4 , hf_notify_options_flags , ett_notify_options_flags , hf_flags , flags , BMT_NO_APPEND ) ;\n return offset ;\n }"}
{"idx": 1856, "target": 0, "func": "static void pcnet_poll ( PCNetState * s ) {\n if ( CSR_RXON ( s ) ) {\n pcnet_rdte_poll ( s ) ;\n }\n if ( CSR_TDMD ( s ) || ( CSR_TXON ( s ) && ! CSR_DPOLL ( s ) && pcnet_tdte_poll ( s ) ) ) {\n if ( s -> tx_busy ) {\n return ;\n }\n pcnet_transmit ( s ) ;\n }\n }"}
{"idx": 1857, "target": 0, "func": "static inline void decode2x2 ( GetBitContext * gb , uint8_t * dst , int linesize ) {\n int i , j , v [ 2 ] ;\n switch ( get_bits ( gb , 2 ) ) {\n case 1 : v [ 0 ] = get_bits ( gb , 8 ) ;\n for ( j = 0 ;\n j < 2 ;\n j ++ ) memset ( dst + j * linesize , v [ 0 ] , 2 ) ;\n break ;\n case 2 : v [ 0 ] = get_bits ( gb , 8 ) ;\n v [ 1 ] = get_bits ( gb , 8 ) ;\n for ( j = 0 ;\n j < 2 ;\n j ++ ) for ( i = 0 ;\n i < 2 ;\n i ++ ) dst [ j * linesize + i ] = v [ get_bits1 ( gb ) ] ;\n break ;\n case 3 : for ( j = 0 ;\n j < 2 ;\n j ++ ) for ( i = 0 ;\n i < 2 ;\n i ++ ) dst [ j * linesize + i ] = get_bits ( gb , 8 ) ;\n }\n }"}
{"idx": 1858, "target": 0, "func": "void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 ) sadMxN ( 16 , 32 ) sadMxNx4D ( 16 , 32 ) sadMxN ( 16 , 16 ) sadMxNxK ( 16 , 16 , 3 ) sadMxNxK ( 16 , 16 , 8 ) sadMxNx4D ( 16 , 16 ) sadMxN ( 16 , 8 ) sadMxNxK ( 16 , 8 , 3 ) sadMxNxK ( 16 , 8 , 8 ) sadMxNx4D ( 16 , 8 ) sadMxN ( 8 , 16 ) sadMxNxK ( 8 , 16 , 3 ) sadMxNxK ( 8 , 16 , 8 ) sadMxNx4D ( 8 , 16 ) sadMxN ( 8 , 8 ) sadMxNxK ( 8 , 8 , 3 ) sadMxNxK ( 8 , 8 , 8 ) sadMxNx4D ( 8 , 8 ) sadMxN ( 8 , 4 ) sadMxNxK ( 8 , 4 , 8 ) sadMxNx4D ( 8 , 4 ) sadMxN ( 4 , 8 ) sadMxNxK ( 4 , 8 , 8 ) sadMxNx4D ( 4 , 8 )"}
{"idx": 1859, "target": 0, "func": "static int dsa_priv_encode ( PKCS8_PRIV_KEY_INFO * p8 , const EVP_PKEY * pkey ) {\n ASN1_STRING * params = NULL ;\n ASN1_INTEGER * prkey = NULL ;\n unsigned char * dp = NULL ;\n int dplen ;\n if ( ! pkey -> pkey . dsa || ! pkey -> pkey . dsa -> priv_key ) {\n DSAerr ( DSA_F_DSA_PRIV_ENCODE , DSA_R_MISSING_PARAMETERS ) ;\n goto err ;\n }\n params = ASN1_STRING_new ( ) ;\n if ( params == NULL ) {\n DSAerr ( DSA_F_DSA_PRIV_ENCODE , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n params -> length = i2d_DSAparams ( pkey -> pkey . dsa , & params -> data ) ;\n if ( params -> length <= 0 ) {\n DSAerr ( DSA_F_DSA_PRIV_ENCODE , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n params -> type = V_ASN1_SEQUENCE ;\n prkey = BN_to_ASN1_INTEGER ( pkey -> pkey . dsa -> priv_key , NULL ) ;\n if ( ! prkey ) {\n DSAerr ( DSA_F_DSA_PRIV_ENCODE , DSA_R_BN_ERROR ) ;\n goto err ;\n }\n dplen = i2d_ASN1_INTEGER ( prkey , & dp ) ;\n ASN1_STRING_clear_free ( prkey ) ;\n prkey = NULL ;\n if ( ! PKCS8_pkey_set0 ( p8 , OBJ_nid2obj ( NID_dsa ) , 0 , V_ASN1_SEQUENCE , params , dp , dplen ) ) goto err ;\n return 1 ;\n err : OPENSSL_free ( dp ) ;\n ASN1_STRING_free ( params ) ;\n ASN1_STRING_clear_free ( prkey ) ;\n return 0 ;\n }"}
{"idx": 1860, "target": 0, "func": "static TranslationBlock * tb_find_slow ( CPUArchState * env , target_ulong pc , target_ulong cs_base , uint64_t flags ) {\n TranslationBlock * tb , * * ptb1 ;\n unsigned int h ;\n tb_page_addr_t phys_pc , phys_page1 ;\n target_ulong virt_page2 ;\n tcg_ctx . tb_ctx . tb_invalidated_flag = 0 ;\n phys_pc = get_page_addr_code ( env , pc ) ;\n phys_page1 = phys_pc & TARGET_PAGE_MASK ;\n h = tb_phys_hash_func ( phys_pc ) ;\n ptb1 = & tcg_ctx . tb_ctx . tb_phys_hash [ h ] ;\n for ( ;\n ;\n ) {\n tb = * ptb1 ;\n if ( ! tb ) goto not_found ;\n if ( tb -> pc == pc && tb -> page_addr [ 0 ] == phys_page1 && tb -> cs_base == cs_base && tb -> flags == flags ) {\n if ( tb -> page_addr [ 1 ] != - 1 ) {\n tb_page_addr_t phys_page2 ;\n virt_page2 = ( pc & TARGET_PAGE_MASK ) + TARGET_PAGE_SIZE ;\n phys_page2 = get_page_addr_code ( env , virt_page2 ) ;\n if ( tb -> page_addr [ 1 ] == phys_page2 ) goto found ;\n }\n else {\n goto found ;\n }\n }\n ptb1 = & tb -> phys_hash_next ;\n }\n not_found : tb = tb_gen_code ( env , pc , cs_base , flags , 0 ) ;\n found : if ( likely ( * ptb1 ) ) {\n * ptb1 = tb -> phys_hash_next ;\n tb -> phys_hash_next = tcg_ctx . tb_ctx . tb_phys_hash [ h ] ;\n tcg_ctx . tb_ctx . tb_phys_hash [ h ] = tb ;\n }\n env -> tb_jmp_cache [ tb_jmp_cache_hash_func ( pc ) ] = tb ;\n return tb ;\n }"}
{"idx": 1861, "target": 0, "func": "void makeascii ( int length , const char * data , FILE * fp ) {\n const u_char * data_u_char ;\n const u_char * cp ;\n int c ;\n data_u_char = ( const u_char * ) data ;\n for ( cp = data_u_char ;\n cp < data_u_char + length ;\n cp ++ ) {\n c = ( int ) * cp ;\n if ( c & 0x80 ) {\n putc ( 'M' , fp ) ;\n putc ( '-' , fp ) ;\n c &= 0x7f ;\n }\n if ( c < ' ' ) {\n putc ( '^' , fp ) ;\n putc ( c + '@' , fp ) ;\n }\n else if ( 0x7f == c ) {\n putc ( '^' , fp ) ;\n putc ( '?' , fp ) ;\n }\n else putc ( c , fp ) ;\n }\n }"}
{"idx": 1862, "target": 0, "func": "void proto_register_rtmpt ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_rtmpt_handshake_c0 , {\n \"Protocol version\" , \"rtmpt.handshake.c0\" , FT_BYTES , BASE_NONE , NULL , 0x0 , \"RTMPT Handshake C0\" , HFILL }\n }\n , {\n & hf_rtmpt_handshake_s0 , {\n \"Protocol version\" , \"rtmpt.handshake.s0\" , FT_BYTES , BASE_NONE , NULL , 0x0 , \"RTMPT Handshake S0\" , HFILL }\n }\n , {\n & hf_rtmpt_handshake_c1 , {\n \"Handshake data\" , \"rtmpt.handshake.c1\" , FT_BYTES , BASE_NONE , NULL , 0x0 , \"RTMPT Handshake C1\" , HFILL }\n }\n , {\n & hf_rtmpt_handshake_s1 , {\n \"Handshake data\" , \"rtmpt.handshake.s1\" , FT_BYTES , BASE_NONE , NULL , 0x0 , \"RTMPT Handshake S1\" , HFILL }\n }\n , {\n & hf_rtmpt_handshake_c2 , {\n \"Handshake data\" , \"rtmpt.handshake.c2\" , FT_BYTES , BASE_NONE , NULL , 0x0 , \"RTMPT Handshake C2\" , HFILL }\n }\n , {\n & hf_rtmpt_handshake_s2 , {\n \"Handshake data\" , \"rtmpt.handshake.s2\" , FT_BYTES , BASE_NONE , NULL , 0x0 , \"RTMPT Handshake S2\" , HFILL }\n }\n , {\n & hf_rtmpt_header_format , {\n \"Format\" , \"rtmpt.header.format\" , FT_UINT8 , BASE_DEC , NULL , 0xC0 , \"RTMPT Basic Header format\" , HFILL }\n }\n , {\n & hf_rtmpt_header_csid , {\n \"Chunk Stream ID\" , \"rtmpt.header.csid\" , FT_UINT8 , BASE_DEC , NULL , 0x3F , \"RTMPT Basic Header chunk stream ID\" , HFILL }\n }\n , {\n & hf_rtmpt_header_timestamp , {\n \"Timestamp\" , \"rtmpt.header.timestamp\" , FT_UINT24 , BASE_DEC , NULL , 0x0 , \"RTMPT Message Header timestamp\" , HFILL }\n }\n , {\n & hf_rtmpt_header_timestamp_delta , {\n \"Timestamp delta\" , \"rtmpt.header.timestampdelta\" , FT_UINT24 , BASE_DEC , NULL , 0x0 , \"RTMPT Message Header timestamp delta\" , HFILL }\n }\n , {\n & hf_rtmpt_header_body_size , {\n \"Body size\" , \"rtmpt.header.bodysize\" , FT_UINT24 , BASE_DEC , NULL , 0x0 , \"RTMPT Message Header body size\" , HFILL }\n }\n , {\n & hf_rtmpt_header_typeid , {\n \"Type ID\" , \"rtmpt.header.typeid\" , FT_UINT8 , BASE_HEX , VALS ( rtmpt_opcode_vals ) , 0x0 , \"RTMPT Message Header type ID\" , HFILL }\n }\n , {\n & hf_rtmpt_header_streamid , {\n \"Stream ID\" , \"rtmpt.header.streamid\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"RTMPT Header stream ID\" , HFILL }\n }\n , {\n & hf_rtmpt_header_ets , {\n \"Extended timestamp\" , \"rtmpt.header.ets\" , FT_UINT24 , BASE_DEC , NULL , 0x0 , \"RTMPT Message Header extended timestamp\" , HFILL }\n }\n , {\n & hf_rtmpt_scm_chunksize , {\n \"Chunk size\" , \"rtmpt.scm.chunksize\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"RTMPT SCM chunk size\" , HFILL }\n }\n , {\n & hf_rtmpt_scm_csid , {\n \"Chunk stream ID\" , \"rtmpt.scm.csid\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"RTMPT SCM chunk stream ID\" , HFILL }\n }\n , {\n & hf_rtmpt_scm_seq , {\n \"Sequence number\" , \"rtmpt.scm.seq\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"RTMPT SCM acknowledgement sequence number\" , HFILL }\n }\n , {\n & hf_rtmpt_scm_was , {\n \"Window acknowledgement size\" , \"rtmpt.scm.was\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"RTMPT SCM window acknowledgement size\" , HFILL }\n }\n , {\n & hf_rtmpt_scm_limittype , {\n \"Limit type\" , \"rtmpt.scm.limittype\" , FT_UINT8 , BASE_DEC , VALS ( rtmpt_limit_vals ) , 0x0 , \"RTMPT SCM window acknowledgement size\" , HFILL }\n }\n , {\n & hf_rtmpt_ucm_eventtype , {\n \"Event type\" , \"rtmpt.ucm.eventtype\" , FT_UINT16 , BASE_DEC , VALS ( rtmpt_ucm_vals ) , 0x0 , \"RTMPT UCM event type\" , HFILL }\n }\n , {\n & hf_rtmpt_function_call , {\n \"Response to this call in frame\" , \"rtmpt.function.call\" , FT_FRAMENUM , BASE_NONE , NULL , 0x0 , \"RTMPT function call\" , HFILL }\n }\n , {\n & hf_rtmpt_function_response , {\n \"Call for this response in frame\" , \"rtmpt.function.response\" , FT_FRAMENUM , BASE_NONE , NULL , 0x0 , \"RTMPT function response\" , HFILL }\n }\n , {\n & hf_rtmpt_audio_control , {\n \"Audio control\" , \"rtmpt.audio.control\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , \"RTMPT Audio control\" , HFILL }\n }\n , {\n & hf_rtmpt_audio_format , {\n \"Format\" , \"rtmpt.audio.format\" , FT_UINT8 , BASE_DEC , VALS ( rtmpt_audio_codecs ) , 0xf0 , \"RTMPT Audio format\" , HFILL }\n }\n , {\n & hf_rtmpt_audio_rate , {\n \"Sample rate\" , \"rtmpt.audio.rate\" , FT_UINT8 , BASE_DEC , VALS ( rtmpt_audio_rates ) , 0x0c , \"RTMPT Audio sample rate\" , HFILL }\n }\n , {\n & hf_rtmpt_audio_size , {\n \"Sample size\" , \"rtmpt.audio.size\" , FT_UINT8 , BASE_DEC , VALS ( rtmpt_audio_sizes ) , 0x02 , \"RTMPT Audio sample size\" , HFILL }\n }\n , {\n & hf_rtmpt_audio_type , {\n \"Channels\" , \"rtmpt.audio.type\" , FT_UINT8 , BASE_DEC , VALS ( rtmpt_audio_types ) , 0x01 , \"RTMPT Audio channel count\" , HFILL }\n }\n , {\n & hf_rtmpt_audio_data , {\n \"Audio data\" , \"rtmpt.audio.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , \"RTMPT Audio data\" , HFILL }\n }\n , {\n & hf_rtmpt_video_control , {\n \"Video control\" , \"rtmpt.video.control\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , \"RTMPT Video control\" , HFILL }\n }\n , {\n & hf_rtmpt_video_type , {\n \"Type\" , \"rtmpt.video.type\" , FT_UINT8 , BASE_DEC , VALS ( rtmpt_video_types ) , 0xf0 , \"RTMPT Video type\" , HFILL }\n }\n , {\n & hf_rtmpt_video_format , {\n \"Format\" , \"rtmpt.video.format\" , FT_UINT8 , BASE_DEC , VALS ( rtmpt_video_codecs ) , 0x0f , \"RTMPT Video format\" , HFILL }\n }\n , {\n & hf_rtmpt_video_data , {\n \"Video data\" , \"rtmpt.video.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , \"RTMPT Video data\" , HFILL }\n }\n , {\n & hf_rtmpt_tag_type , {\n \"Type\" , \"rtmpt.tag.type\" , FT_UINT8 , BASE_DEC , VALS ( rtmpt_tag_vals ) , 0x0 , \"RTMPT Aggregate tag type\" , HFILL }\n }\n , {\n & hf_rtmpt_tag_datasize , {\n \"Data size\" , \"rtmpt.tag.datasize\" , FT_UINT24 , BASE_DEC , NULL , 0x0 , \"RTMPT Aggregate tag data size\" , HFILL }\n }\n , {\n & hf_rtmpt_tag_timestamp , {\n \"Timestamp\" , \"rtmpt.tag.timestamp\" , FT_UINT24 , BASE_DEC , NULL , 0x0 , \"RTMPT Aggregate tag timestamp\" , HFILL }\n }\n , {\n & hf_rtmpt_tag_ets , {\n \"Timestamp Extended\" , \"rtmpt.tag.ets\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , \"RTMPT Aggregate tag timestamp extended\" , HFILL }\n }\n , {\n & hf_rtmpt_tag_streamid , {\n \"Stream ID\" , \"rtmpt.tag.streamid\" , FT_UINT24 , BASE_DEC , NULL , 0x0 , \"RTMPT Aggregate tag stream ID\" , HFILL }\n }\n , {\n & hf_rtmpt_tag_tagsize , {\n \"Previous tag size\" , \"rtmpt.tag.tagsize\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"RTMPT Aggregate previous tag size\" , HFILL }\n }\n }\n ;\n static gint * ett [ ] = {\n & ett_rtmpt , & ett_rtmpt_handshake , & ett_rtmpt_header , & ett_rtmpt_body , & ett_rtmpt_ucm , & ett_rtmpt_audio_control , & ett_rtmpt_video_control , & ett_rtmpt_tag , & ett_rtmpt_tag_data }\n ;\n module_t * rtmpt_module ;\n proto_rtmpt = proto_register_protocol ( \"Real Time Messaging Protocol\" , \"RTMPT\" , \"rtmpt\" ) ;\n proto_register_field_array ( proto_rtmpt , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n rtmpt_module = prefs_register_protocol ( proto_rtmpt , NULL ) ;\n prefs_register_bool_preference ( rtmpt_module , \"desegment\" , \"Reassemble RTMPT messages spanning multiple TCP segments\" , \"Whether the RTMPT dissector should reassemble messages spanning multiple TCP segments.\" \" To use this option, you must also enable \\\"Allow subdissectors to reassemble TCP streams\\\"\" \" in the TCP protocol settings.\" , & rtmpt_desegment ) ;\n prefs_register_uint_preference ( rtmpt_module , \"max_packet_size\" , \"Maximum packet size\" , \"The largest acceptable packet size for reassembly\" , 10 , & rtmpt_max_packet_size ) ;\n }"}
{"idx": 1863, "target": 1, "func": "int dissect_h225_GenericIdentifier ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 848 \"./asn1/h225/h225.cnf\" gef_ctx_t * gefx ;\n proto_item * ti ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_GenericIdentifier , GenericIdentifier_choice , NULL ) ;\n # line 851 \"./asn1/h225/h225.cnf\" gef_ctx_update_key ( gef_ctx_get ( actx -> private_data ) ) ;\n gefx = gef_ctx_get ( actx -> private_data ) ;\n if ( gefx ) {\n ti = proto_tree_add_string ( tree , hf_h225_debug_dissector_try_string , tvb , offset >> 3 , 0 , gefx -> key ) ;\n PROTO_ITEM_SET_HIDDEN ( ti ) ;\n dissector_try_string ( gef_name_dissector_table , gefx -> key , tvb_new_subset ( tvb , offset >> 3 , 0 , 0 ) , actx -> pinfo , tree , actx ) ;\n }\n actx -> private_data = gefx ;\n return offset ;\n }"}
{"idx": 1864, "target": 0, "func": "static void dissect_zcl_ota_upgradeendreq ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_status , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_manufacturer_code , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_image_type , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n dissect_zcl_ota_file_version_field ( tvb , tree , offset ) ;\n }"}
{"idx": 1865, "target": 0, "func": "void auth_server_connection_disconnect ( struct auth_server_connection * conn , const char * reason ) {\n if ( ! conn -> connected ) return ;\n conn -> connected = FALSE ;\n conn -> handshake_received = FALSE ;\n conn -> version_received = FALSE ;\n conn -> has_plain_mech = FALSE ;\n conn -> server_pid = 0 ;\n conn -> connect_uid = 0 ;\n conn -> cookie = NULL ;\n array_clear ( & conn -> available_auth_mechs ) ;\n timeout_remove ( & conn -> to ) ;\n io_remove ( & conn -> io ) ;\n if ( conn -> fd != - 1 ) {\n i_stream_destroy ( & conn -> input ) ;\n o_stream_destroy ( & conn -> output ) ;\n if ( close ( conn -> fd ) < 0 ) i_error ( \"close(auth server connection) failed: %m\" ) ;\n conn -> fd = - 1 ;\n }\n auth_server_connection_remove_requests ( conn , reason ) ;\n if ( conn -> client -> connect_notify_callback != NULL ) {\n conn -> client -> connect_notify_callback ( conn -> client , FALSE , conn -> client -> connect_notify_context ) ;\n }\n }"}
{"idx": 1866, "target": 0, "func": "static void usage ( const char * name ) {\n ( printf ) ( \"Usage: %s [OPTIONS] FILE\\n\" \"QEMU Disk Network Block Device Server\\n\" \"\\n\" \" -h, --help display this help and exit\\n\" \" -V, --version output version information and exit\\n\" \"\\n\" \"Connection properties:\\n\" \" -p, --port=PORT port to listen on (default `%d')\\n\" \" -b, --bind=IFACE interface to bind to (default `0.0.0.0')\\n\" \" -k, --socket=PATH path to the unix socket\\n\" \" (default '\" SOCKET_PATH \"')\\n\" \" -e, --shared=NUM device can be shared by NUM clients (default '1')\\n\" \" -t, --persistent don't exit on the last connection\\n\" \" -v, --verbose display extra debugging information\\n\" \" -x, --export-name=NAME expose export by name\\n\" \" -D, --description=TEXT with -x, also export a human-readable description\\n\" \"\\n\" \"Exposing part of the image:\\n\" \" -o, --offset=OFFSET offset into the image\\n\" \" -P, --partition=NUM only expose partition NUM\\n\" \"\\n\" \"General purpose options:\\n\" \" --object type,id=ID,... define an object such as 'secret' for providing\\n\" \" passwords and/or encryption keys\\n\" \" -T, --trace [[enable=]<pattern>][,events=<file>][,file=<file>]\\n\" \" specify tracing options\\n\" \" --fork fork off the server process and exit the parent\\n\" \" once the server is running\\n\" # ifdef __linux__ \"Kernel NBD client support:\\n\" \" -c, --connect=DEV connect FILE to the local NBD device DEV\\n\" \" -d, --disconnect disconnect the specified device\\n\" \"\\n\" # endif \"\\n\" \"Block device options:\\n\" \" -f, --format=FORMAT set image format (raw, qcow2, ...)\\n\" \" -r, --read-only export read-only\\n\" \" -s, --snapshot use FILE as an external snapshot, create a temporary\\n\" \" file with backing_file=FILE, redirect the write to\\n\" \" the temporary one\\n\" \" -l, --load-snapshot=SNAPSHOT_PARAM\\n\" \" load an internal snapshot inside FILE and export it\\n\" \" as an read-only device, SNAPSHOT_PARAM format is\\n\" \" 'snapshot.id=[ID],snapshot.name=[NAME]', or\\n\" \" '[ID_OR_NAME]'\\n\" \" -n, --nocache disable host cache\\n\" \" --cache=MODE set cache mode (none, writeback, ...)\\n\" \" --aio=MODE set AIO mode (native or threads)\\n\" \" --discard=MODE set discard mode (ignore, unmap)\\n\" \" --detect-zeroes=MODE set detect-zeroes mode (off, on, unmap)\\n\" \" --image-opts treat FILE as a full set of image options\\n\" \"\\n\" \"Report bugs to <qemu-devel@nongnu.org>\\n\" , name , NBD_DEFAULT_PORT , \"DEVICE\" ) ;\n }"}
{"idx": 1867, "target": 0, "func": "static bool find_hierarchy_mountpts ( struct cgroup_meta_data * meta_data , char * * kernel_subsystems ) {\n bool bret = false ;\n FILE * proc_self_mountinfo ;\n char * line = NULL ;\n size_t sz = 0 ;\n char * * tokens = NULL ;\n size_t mount_point_count = 0 ;\n size_t mount_point_capacity = 0 ;\n size_t token_capacity = 0 ;\n int r ;\n proc_self_mountinfo = fopen_cloexec ( \"/proc/self/mountinfo\" , \"r\" ) ;\n if ( ! proc_self_mountinfo ) proc_self_mountinfo = fopen_cloexec ( \"/proc/1/mountinfo\" , \"r\" ) ;\n if ( ! proc_self_mountinfo ) return false ;\n while ( getline ( & line , & sz , proc_self_mountinfo ) != - 1 ) {\n char * token , * line_tok , * saveptr = NULL ;\n size_t i , j , k ;\n struct cgroup_mount_point * mount_point ;\n struct cgroup_hierarchy * h ;\n char * * subsystems ;\n if ( line [ 0 ] && line [ strlen ( line ) - 1 ] == '\\n' ) line [ strlen ( line ) - 1 ] = '\\0' ;\n for ( i = 0 , line_tok = line ;\n ( token = strtok_r ( line_tok , \" \" , & saveptr ) ) ;\n line_tok = NULL ) {\n r = lxc_grow_array ( ( void * * * ) & tokens , & token_capacity , i + 1 , 64 ) ;\n if ( r < 0 ) goto out ;\n tokens [ i ++ ] = token ;\n }\n for ( j = 6 ;\n j < i && tokens [ j ] ;\n j ++ ) if ( ! strcmp ( tokens [ j ] , \"-\" ) ) break ;\n if ( j >= i || ! tokens [ j ] ) continue ;\n if ( i != j + 4 ) continue ;\n if ( strcmp ( tokens [ j + 1 ] , \"cgroup\" ) != 0 ) continue ;\n subsystems = subsystems_from_mount_options ( tokens [ j + 3 ] , kernel_subsystems ) ;\n if ( ! subsystems ) goto out ;\n h = NULL ;\n for ( k = 1 ;\n k <= meta_data -> maximum_hierarchy ;\n k ++ ) {\n if ( meta_data -> hierarchies [ k ] && meta_data -> hierarchies [ k ] -> subsystems [ 0 ] && lxc_string_in_array ( meta_data -> hierarchies [ k ] -> subsystems [ 0 ] , ( const char * * ) subsystems ) ) {\n h = meta_data -> hierarchies [ k ] ;\n break ;\n }\n }\n lxc_free_array ( ( void * * ) subsystems , free ) ;\n r = lxc_grow_array ( ( void * * * ) & meta_data -> mount_points , & mount_point_capacity , mount_point_count + 1 , 12 ) ;\n if ( r < 0 ) goto out ;\n mount_point = calloc ( 1 , sizeof ( * mount_point ) ) ;\n if ( ! mount_point ) goto out ;\n meta_data -> mount_points [ mount_point_count ++ ] = mount_point ;\n mount_point -> hierarchy = h ;\n mount_point -> mount_point = strdup ( tokens [ 4 ] ) ;\n mount_point -> mount_prefix = strdup ( tokens [ 3 ] ) ;\n if ( ! mount_point -> mount_point || ! mount_point -> mount_prefix ) goto out ;\n mount_point -> read_only = ! lxc_string_in_list ( \"rw\" , tokens [ 5 ] , ',' ) ;\n if ( ! strcmp ( mount_point -> mount_prefix , \"/\" ) ) {\n if ( mount_point -> read_only ) {\n if ( ! h -> ro_absolute_mount_point ) h -> ro_absolute_mount_point = mount_point ;\n }\n else {\n if ( ! h -> rw_absolute_mount_point ) h -> rw_absolute_mount_point = mount_point ;\n }\n }\n k = lxc_array_len ( ( void * * ) h -> all_mount_points ) ;\n r = lxc_grow_array ( ( void * * * ) & h -> all_mount_points , & h -> all_mount_point_capacity , k + 1 , 4 ) ;\n if ( r < 0 ) goto out ;\n h -> all_mount_points [ k ] = mount_point ;\n }\n bret = true ;\n out : fclose ( proc_self_mountinfo ) ;\n free ( tokens ) ;\n free ( line ) ;\n return bret ;\n }"}
{"idx": 1868, "target": 0, "func": "bool feTimestampDifferenceExceeds ( int64 start_time , int64 stop_time , int msec ) {\n int64 diff = stop_time - start_time ;\n return ( diff >= msec * INT64CONST ( 1000 ) ) ;\n }"}
{"idx": 1869, "target": 0, "func": "int dissect_ber_GeneralString ( asn1_ctx_t * actx , proto_tree * tree , tvbuff_t * tvb , int offset , gint hf_id , char * name_string , guint name_len ) {\n tvbuff_t * out_tvb = NULL ;\n gint tvb_len ;\n offset = dissect_ber_restricted_string ( FALSE , BER_UNI_TAG_GeneralString , actx , tree , tvb , offset , hf_id , ( name_string ) ? & out_tvb : NULL ) ;\n if ( name_string ) {\n if ( out_tvb ) {\n tvb_len = tvb_reported_length ( out_tvb ) ;\n if ( ( guint ) tvb_len >= name_len ) {\n tvb_memcpy ( out_tvb , ( guint8 * ) name_string , 0 , name_len - 1 ) ;\n name_string [ name_len - 1 ] = '\\0' ;\n }\n else {\n tvb_memcpy ( out_tvb , ( guint8 * ) name_string , 0 , tvb_len ) ;\n name_string [ tvb_len ] = '\\0' ;\n }\n }\n }\n return offset ;\n }"}
{"idx": 1870, "target": 0, "func": "IN_PROC_BROWSER_TEST_P ( BrowserCloseManagerBrowserTest , MAYBE_TestBeforeUnloadMultipleSlowWindows ) {\n const int kBrowserCount = 5 ;\n const int kResposiveBrowserIndex = 2 ;\n for ( int i = 0 ;\n i < kBrowserCount ;\n i ++ ) {\n if ( i ) browsers_ . push_back ( CreateBrowser ( browser ( ) -> profile ( ) ) ) ;\n ASSERT_NO_FATAL_FAILURE ( ui_test_utils : : NavigateToURL ( browsers_ [ i ] , embedded_test_server ( ) -> GetURL ( ( i == kResposiveBrowserIndex ) ? \"/beforeunload.html\" : \"/beforeunload_slow.html\" ) ) ) ;\n }\n PrepareForDialog ( browsers_ [ kResposiveBrowserIndex ] ) ;\n RepeatedNotificationObserver cancel_observer ( chrome : : NOTIFICATION_BROWSER_CLOSE_CANCELLED , kResposiveBrowserIndex + 1 ) ;\n chrome : : CloseAllBrowsersAndQuit ( ) ;\n ASSERT_NO_FATAL_FAILURE ( CancelClose ( ) ) ;\n cancel_observer . Wait ( ) ;\n EXPECT_FALSE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n for ( int i = 0 ;\n i < kBrowserCount ;\n i ++ ) EXPECT_EQ ( 1 , browsers_ [ i ] -> tab_strip_model ( ) -> count ( ) ) ;\n RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , kBrowserCount ) ;\n chrome : : CloseAllBrowsersAndQuit ( ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n close_observer . Wait ( ) ;\n EXPECT_TRUE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_TRUE ( BrowserList : : GetInstance ( ) -> empty ( ) ) ;\n }"}
{"idx": 1871, "target": 0, "func": "void PNGAPI png_set_gAMA ( png_structp png_ptr , png_infop info_ptr , double file_gamma ) {\n double png_gamma ;\n png_debug1 ( 1 , \"in %s storage function\" , \"gAMA\" ) ;\n if ( png_ptr == NULL || info_ptr == NULL ) return ;\n if ( file_gamma > 21474.83 ) {\n png_warning ( png_ptr , \"Limiting gamma to 21474.83\" ) ;\n png_gamma = 21474.83 ;\n }\n else png_gamma = file_gamma ;\n info_ptr -> gamma = ( float ) png_gamma ;\n # ifdef PNG_FIXED_POINT_SUPPORTED info_ptr -> int_gamma = ( int ) ( png_gamma * 100000. + .5 ) ;\n # endif info_ptr -> valid |= PNG_INFO_gAMA ;\n if ( png_gamma == 0.0 ) png_warning ( png_ptr , \"Setting gamma=0\" ) ;\n }"}
{"idx": 1872, "target": 1, "func": "int vp9_get_switchable_rate ( const VP9_COMP * cpi ) {\n const MACROBLOCKD * const xd = & cpi -> mb . e_mbd ;\n const MB_MODE_INFO * const mbmi = & xd -> mi [ 0 ] -> mbmi ;\n const int ctx = vp9_get_pred_context_switchable_interp ( xd ) ;\n return SWITCHABLE_INTERP_RATE_FACTOR * cpi -> switchable_interp_costs [ ctx ] [ mbmi -> interp_filter ] ;\n }"}
{"idx": 1873, "target": 0, "func": "int keyring_lock ( KEYRING_HANDLE hd , int yes ) {\n KR_NAME kr ;\n int rc = 0 ;\n ( void ) hd ;\n if ( yes ) {\n for ( kr = kr_names ;\n kr ;\n kr = kr -> next ) {\n if ( ! keyring_is_writable ( kr ) ) continue ;\n if ( ! kr -> lockhd ) {\n kr -> lockhd = dotlock_create ( kr -> fname , 0 ) ;\n if ( ! kr -> lockhd ) {\n log_info ( \"can't allocate lock for '%s'\\n\" , kr -> fname ) ;\n rc = GPG_ERR_GENERAL ;\n }\n }\n }\n if ( rc ) return rc ;\n for ( kr = kr_names ;\n kr ;\n kr = kr -> next ) {\n if ( ! keyring_is_writable ( kr ) ) continue ;\n if ( kr -> is_locked ) ;\n else if ( dotlock_take ( kr -> lockhd , - 1 ) ) {\n log_info ( \"can't lock '%s'\\n\" , kr -> fname ) ;\n rc = GPG_ERR_GENERAL ;\n }\n else kr -> is_locked = 1 ;\n }\n }\n if ( rc || ! yes ) {\n for ( kr = kr_names ;\n kr ;\n kr = kr -> next ) {\n if ( ! keyring_is_writable ( kr ) ) continue ;\n if ( ! kr -> is_locked ) ;\n else if ( dotlock_release ( kr -> lockhd ) ) log_info ( \"can't unlock '%s'\\n\" , kr -> fname ) ;\n else kr -> is_locked = 0 ;\n }\n }\n return rc ;\n }"}
{"idx": 1874, "target": 0, "func": "static int codec_reinit ( AVCodecContext * avctx , int width , int height , int quality ) {\n NuvContext * c = avctx -> priv_data ;\n int ret ;\n width = FFALIGN ( width , 2 ) ;\n height = FFALIGN ( height , 2 ) ;\n if ( quality >= 0 ) get_quant_quality ( c , quality ) ;\n if ( width != c -> width || height != c -> height ) {\n if ( ( ret = av_image_check_size ( height , width , 0 , avctx ) ) < 0 ) return ret ;\n avctx -> width = c -> width = width ;\n avctx -> height = c -> height = height ;\n av_fast_malloc ( & c -> decomp_buf , & c -> decomp_size , c -> height * c -> width * 3 / 2 ) ;\n if ( ! c -> decomp_buf ) {\n av_log ( avctx , AV_LOG_ERROR , \"Can't allocate decompression buffer.\\n\" ) ;\n return AVERROR ( ENOMEM ) ;\n }\n ff_rtjpeg_decode_init ( & c -> rtj , & c -> dsp , c -> width , c -> height , c -> lq , c -> cq ) ;\n }\n else if ( quality != c -> quality ) ff_rtjpeg_decode_init ( & c -> rtj , & c -> dsp , c -> width , c -> height , c -> lq , c -> cq ) ;\n return 0 ;\n }"}
{"idx": 1875, "target": 0, "func": "static VALUE ossl_asn1_decode_all ( VALUE self , VALUE obj ) {\n VALUE ary , val ;\n unsigned char * p ;\n long len , tmp_len = 0 , read = 0 , offset = 0 ;\n VALUE tmp ;\n obj = ossl_to_der_if_possible ( obj ) ;\n tmp = rb_str_new4 ( StringValue ( obj ) ) ;\n p = ( unsigned char * ) RSTRING_PTR ( tmp ) ;\n len = RSTRING_LEN ( tmp ) ;\n tmp_len = len ;\n ary = rb_ary_new ( ) ;\n while ( tmp_len > 0 ) {\n long tmp_read = 0 ;\n val = ossl_asn1_decode0 ( & p , tmp_len , & offset , 0 , 0 , & tmp_read ) ;\n rb_ary_push ( ary , val ) ;\n read += tmp_read ;\n tmp_len -= tmp_read ;\n }\n RB_GC_GUARD ( tmp ) ;\n int_ossl_decode_sanity_check ( len , read , offset ) ;\n return ary ;\n }"}
{"idx": 1876, "target": 0, "func": "static int read_matrix_params ( MLPDecodeContext * m , unsigned int substr , GetBitContext * gbp ) {\n SubStream * s = & m -> substream [ substr ] ;\n unsigned int mat , ch ;\n const int max_primitive_matrices = m -> avctx -> codec_id == AV_CODEC_ID_MLP ? MAX_MATRICES_MLP : MAX_MATRICES_TRUEHD ;\n if ( m -> matrix_changed ++ > 1 ) {\n av_log ( m -> avctx , AV_LOG_ERROR , \"Matrices may change only once per access unit.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n s -> num_primitive_matrices = get_bits ( gbp , 4 ) ;\n if ( s -> num_primitive_matrices > max_primitive_matrices ) {\n av_log ( m -> avctx , AV_LOG_ERROR , \"Number of primitive matrices cannot be greater than %d.\\n\" , max_primitive_matrices ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( mat = 0 ;\n mat < s -> num_primitive_matrices ;\n mat ++ ) {\n int frac_bits , max_chan ;\n s -> matrix_out_ch [ mat ] = get_bits ( gbp , 4 ) ;\n frac_bits = get_bits ( gbp , 4 ) ;\n s -> lsb_bypass [ mat ] = get_bits1 ( gbp ) ;\n if ( s -> matrix_out_ch [ mat ] > s -> max_matrix_channel ) {\n av_log ( m -> avctx , AV_LOG_ERROR , \"Invalid channel %d specified as output from matrix.\\n\" , s -> matrix_out_ch [ mat ] ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( frac_bits > 14 ) {\n av_log ( m -> avctx , AV_LOG_ERROR , \"Too many fractional bits specified.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n max_chan = s -> max_matrix_channel ;\n if ( ! s -> noise_type ) max_chan += 2 ;\n for ( ch = 0 ;\n ch <= max_chan ;\n ch ++ ) {\n int coeff_val = 0 ;\n if ( get_bits1 ( gbp ) ) coeff_val = get_sbits ( gbp , frac_bits + 2 ) ;\n s -> matrix_coeff [ mat ] [ ch ] = coeff_val << ( 14 - frac_bits ) ;\n }\n if ( s -> noise_type ) s -> matrix_noise_shift [ mat ] = get_bits ( gbp , 4 ) ;\n else s -> matrix_noise_shift [ mat ] = 0 ;\n }\n return 0 ;\n }"}
{"idx": 1877, "target": 1, "func": "static void _UTF16ToUnicodeWithOffsets ( UConverterToUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n UConverter * cnv = pArgs -> converter ;\n const char * source = pArgs -> source ;\n const char * sourceLimit = pArgs -> sourceLimit ;\n int32_t * offsets = pArgs -> offsets ;\n int32_t state , offsetDelta ;\n uint8_t b ;\n state = cnv -> mode ;\n offsetDelta = 0 ;\n while ( source < sourceLimit && U_SUCCESS ( * pErrorCode ) ) {\n switch ( state ) {\n case 0 : cnv -> toUBytes [ 0 ] = ( uint8_t ) * source ++ ;\n cnv -> toULength = 1 ;\n state = 1 ;\n break ;\n case 1 : b = * source ;\n if ( cnv -> toUBytes [ 0 ] == 0xfe && b == 0xff ) {\n if ( IS_UTF16LE ( cnv ) ) {\n state = 7 ;\n }\n else {\n state = 8 ;\n }\n }\n else if ( cnv -> toUBytes [ 0 ] == 0xff && b == 0xfe ) {\n if ( IS_UTF16BE ( cnv ) ) {\n state = 6 ;\n }\n else {\n state = 9 ;\n }\n }\n else if ( ( IS_UTF16 ( cnv ) && UCNV_GET_VERSION ( cnv ) == 1 ) ) {\n state = 6 ;\n }\n if ( state >= 8 ) {\n ++ source ;\n cnv -> toULength = 0 ;\n offsetDelta = ( int32_t ) ( source - pArgs -> source ) ;\n }\n else if ( state < 6 ) {\n if ( source != pArgs -> source ) {\n source = pArgs -> source ;\n cnv -> toULength = 0 ;\n }\n if ( IS_UTF16LE ( cnv ) ) {\n state = 9 ;\n }\n else {\n state = 8 ;\n }\n }\n else {\n cnv -> toUBytes [ 1 ] = b ;\n cnv -> toULength = 2 ;\n pArgs -> source = source + 1 ;\n cnv -> mode = state + 2 ;\n * pErrorCode = U_ILLEGAL_ESCAPE_SEQUENCE ;\n return ;\n }\n cnv -> mode = state ;\n continue ;\n case 8 : pArgs -> source = source ;\n _UTF16BEToUnicodeWithOffsets ( pArgs , pErrorCode ) ;\n source = pArgs -> source ;\n break ;\n case 9 : pArgs -> source = source ;\n _UTF16LEToUnicodeWithOffsets ( pArgs , pErrorCode ) ;\n source = pArgs -> source ;\n break ;\n default : break ;\n }\n }\n if ( offsets != NULL && offsetDelta != 0 ) {\n int32_t * offsetsLimit = pArgs -> offsets ;\n while ( offsets < offsetsLimit ) {\n * offsets ++ += offsetDelta ;\n }\n }\n pArgs -> source = source ;\n if ( source == sourceLimit && pArgs -> flush ) {\n switch ( state ) {\n case 0 : break ;\n case 8 : _UTF16BEToUnicodeWithOffsets ( pArgs , pErrorCode ) ;\n break ;\n case 9 : _UTF16LEToUnicodeWithOffsets ( pArgs , pErrorCode ) ;\n break ;\n default : break ;\n }\n }\n cnv -> mode = state ;\n }"}
{"idx": 1878, "target": 0, "func": "void TSfclose ( TSFile filep ) {\n FileImpl * file = ( FileImpl * ) filep ;\n file -> fclose ( ) ;\n delete file ;\n }"}
{"idx": 1879, "target": 0, "func": "static MAIN_WINDOW_REC * find_window_with_room ( ) {\n MAIN_WINDOW_REC * biggest_rec ;\n GSList * tmp ;\n int space , biggest ;\n biggest = 0 ;\n biggest_rec = NULL ;\n for ( tmp = mainwindows ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n MAIN_WINDOW_REC * rec = tmp -> data ;\n space = MAIN_WINDOW_TEXT_HEIGHT ( rec ) ;\n if ( space >= WINDOW_MIN_SIZE + NEW_WINDOW_SIZE && space > biggest ) {\n biggest = space ;\n biggest_rec = rec ;\n }\n }\n return biggest_rec ;\n }"}
{"idx": 1880, "target": 0, "func": "static Datum ExecEvalScalarVarFast ( ExprState * exprstate , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n Var * variable = ( Var * ) exprstate -> expr ;\n TupleTableSlot * slot ;\n AttrNumber attnum ;\n if ( isDone ) * isDone = ExprSingleResult ;\n switch ( variable -> varno ) {\n case INNER_VAR : slot = econtext -> ecxt_innertuple ;\n break ;\n case OUTER_VAR : slot = econtext -> ecxt_outertuple ;\n break ;\n default : slot = econtext -> ecxt_scantuple ;\n break ;\n }\n attnum = variable -> varattno ;\n return slot_getattr ( slot , attnum , isNull ) ;\n }"}
{"idx": 1881, "target": 0, "func": "static void flush_dpb ( AVCodecContext * avctx ) {\n H264Context * h = avctx -> priv_data ;\n int i ;\n for ( i = 0 ;\n i <= MAX_DELAYED_PIC_COUNT ;\n i ++ ) {\n if ( h -> delayed_pic [ i ] ) h -> delayed_pic [ i ] -> reference = 0 ;\n h -> delayed_pic [ i ] = NULL ;\n }\n flush_change ( h ) ;\n if ( h -> DPB ) for ( i = 0 ;\n i < MAX_PICTURE_COUNT ;\n i ++ ) unref_picture ( h , & h -> DPB [ i ] ) ;\n h -> cur_pic_ptr = NULL ;\n unref_picture ( h , & h -> cur_pic ) ;\n h -> mb_x = h -> mb_y = 0 ;\n h -> parse_context . state = - 1 ;\n h -> parse_context . frame_start_found = 0 ;\n h -> parse_context . overread = 0 ;\n h -> parse_context . overread_index = 0 ;\n h -> parse_context . index = 0 ;\n h -> parse_context . last_index = 0 ;\n free_tables ( h , 1 ) ;\n h -> context_initialized = 0 ;\n }"}
{"idx": 1882, "target": 0, "func": "static PyObject * string_capitalize ( PyStringObject * self ) {\n char * s = PyString_AS_STRING ( self ) , * s_new ;\n Py_ssize_t i , n = PyString_GET_SIZE ( self ) ;\n PyObject * newobj ;\n newobj = PyString_FromStringAndSize ( NULL , n ) ;\n if ( newobj == NULL ) return NULL ;\n s_new = PyString_AsString ( newobj ) ;\n if ( 0 < n ) {\n int c = Py_CHARMASK ( * s ++ ) ;\n if ( islower ( c ) ) * s_new = toupper ( c ) ;\n else * s_new = c ;\n s_new ++ ;\n }\n for ( i = 1 ;\n i < n ;\n i ++ ) {\n int c = Py_CHARMASK ( * s ++ ) ;\n if ( isupper ( c ) ) * s_new = tolower ( c ) ;\n else * s_new = c ;\n s_new ++ ;\n }\n return newobj ;\n }"}
{"idx": 1883, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( HttpsEngagementPageLoadMetricsBrowserTest , UncommittedLoadWithError ) {\n StartHttpsServer ( true ) ;\n TabStripModel * tab_strip_model = browser ( ) -> tab_strip_model ( ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , https_test_server_ -> GetURL ( \"/simple.html\" ) ) ;\n content : : WebContentsDestroyedWatcher destroyed_watcher ( tab_strip_model -> GetActiveWebContents ( ) ) ;\n EXPECT_TRUE ( tab_strip_model -> CloseWebContentsAt ( tab_strip_model -> active_index ( ) , 0 ) ) ;\n destroyed_watcher . Wait ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpEngagementHistogram , 0 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementHistogram , 0 ) ;\n }"}
{"idx": 1884, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , TestReplaceNonDefaultHandler ) {\n ProtocolHandler ph1 = CreateProtocolHandler ( \"mailto\" , GURL ( \"http://test.com/%s\" ) ) ;\n ProtocolHandler ph2 = CreateProtocolHandler ( \"mailto\" , GURL ( \"http://test.com/updated-url/%s\" ) ) ;\n ProtocolHandler ph3 = CreateProtocolHandler ( \"mailto\" , GURL ( \"http://else.com/%s\" ) ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph3 ) ;\n ASSERT_TRUE ( registry ( ) -> AttemptReplace ( ph2 ) ) ;\n const ProtocolHandler & handler ( registry ( ) -> GetHandlerFor ( \"mailto\" ) ) ;\n ASSERT_EQ ( handler . url ( ) , ph3 . url ( ) ) ;\n }"}
{"idx": 1885, "target": 1, "func": "static int16_t * wmv2_pred_motion ( Wmv2Context * w , int * px , int * py ) {\n MpegEncContext * const s = & w -> s ;\n int xy , wrap , diff , type ;\n int16_t * A , * B , * C , * mot_val ;\n wrap = s -> b8_stride ;\n xy = s -> block_index [ 0 ] ;\n mot_val = s -> current_picture . f . motion_val [ 0 ] [ xy ] ;\n A = s -> current_picture . f . motion_val [ 0 ] [ xy - 1 ] ;\n B = s -> current_picture . f . motion_val [ 0 ] [ xy - wrap ] ;\n C = s -> current_picture . f . motion_val [ 0 ] [ xy + 2 - wrap ] ;\n if ( s -> mb_x && ! s -> first_slice_line && ! s -> mspel && w -> top_left_mv_flag ) diff = FFMAX ( FFABS ( A [ 0 ] - B [ 0 ] ) , FFABS ( A [ 1 ] - B [ 1 ] ) ) ;\n else diff = 0 ;\n if ( diff >= 8 ) type = get_bits1 ( & s -> gb ) ;\n else type = 2 ;\n if ( type == 0 ) {\n * px = A [ 0 ] ;\n * py = A [ 1 ] ;\n }\n else if ( type == 1 ) {\n * px = B [ 0 ] ;\n * py = B [ 1 ] ;\n }\n else {\n if ( s -> first_slice_line ) {\n * px = A [ 0 ] ;\n * py = A [ 1 ] ;\n }\n else {\n * px = mid_pred ( A [ 0 ] , B [ 0 ] , C [ 0 ] ) ;\n * py = mid_pred ( A [ 1 ] , B [ 1 ] , C [ 1 ] ) ;\n }\n }\n return mot_val ;\n }"}
{"idx": 1886, "target": 0, "func": "HTTPHdrImpl * http_hdr_clone ( HTTPHdrImpl * s_hh , HdrHeap * s_heap , HdrHeap * d_heap ) {\n HTTPHdrImpl * d_hh ;\n d_hh = http_hdr_create ( d_heap , s_hh -> m_polarity ) ;\n http_hdr_copy_onto ( s_hh , s_heap , d_hh , d_heap , ( ( s_heap != d_heap ) ? true : false ) ) ;\n return ( d_hh ) ;\n }"}
{"idx": 1887, "target": 0, "func": "static inline uint32_t vga_read_dword_le ( VGACommonState * vga , uint32_t addr ) {\n uint32_t offset = addr & vga -> vbe_size_mask & ~ 3 ;\n uint32_t * ptr = ( uint32_t * ) ( vga -> vram_ptr + offset ) ;\n return ldl_le_p ( ptr ) ;\n }"}
{"idx": 1888, "target": 0, "func": "static VALUE cState_initialize ( int argc , VALUE * argv , VALUE self ) {\n VALUE opts ;\n GET_STATE ( self ) ;\n state -> max_nesting = 100 ;\n state -> buffer_initial_length = FBUFFER_INITIAL_LENGTH_DEFAULT ;\n rb_scan_args ( argc , argv , \"01\" , & opts ) ;\n if ( ! NIL_P ( opts ) ) cState_configure ( self , opts ) ;\n return self ;\n }"}
{"idx": 1889, "target": 0, "func": "static void print_table_data_vertically ( MYSQL_RES * result ) {\n MYSQL_ROW cur ;\n uint max_length = 0 ;\n MYSQL_FIELD * field ;\n while ( ( field = mysql_fetch_field ( result ) ) ) {\n uint length = field -> name_length ;\n if ( length > max_length ) max_length = length ;\n field -> max_length = length ;\n }\n mysql_field_seek ( result , 0 ) ;\n for ( uint row_count = 1 ;\n ( cur = mysql_fetch_row ( result ) ) ;\n row_count ++ ) {\n if ( interrupted_query ) break ;\n mysql_field_seek ( result , 0 ) ;\n tee_fprintf ( PAGER , \"*************************** %d. row ***************************\\n\" , row_count ) ;\n ulong * lengths = mysql_fetch_lengths ( result ) ;\n for ( uint off = 0 ;\n off < mysql_num_fields ( result ) ;\n off ++ ) {\n field = mysql_fetch_field ( result ) ;\n if ( column_names ) tee_fprintf ( PAGER , \"%*s: \" , ( int ) max_length , field -> name ) ;\n if ( cur [ off ] ) {\n unsigned int i ;\n const char * p ;\n for ( i = 0 , p = cur [ off ] ;\n i < lengths [ off ] ;\n i += 1 , p += 1 ) {\n if ( * p == '\\0' ) tee_putc ( ( int ) ' ' , PAGER ) ;\n else tee_putc ( ( int ) * p , PAGER ) ;\n }\n tee_putc ( '\\n' , PAGER ) ;\n }\n else tee_fprintf ( PAGER , \"NULL\\n\" ) ;\n }\n }\n }"}
{"idx": 1890, "target": 0, "func": "static int huff_cmp ( const void * va , const void * vb ) {\n const Node * a = va , * b = vb ;\n return ( a -> count - b -> count ) * 256 + a -> sym - b -> sym ;\n }"}
{"idx": 1891, "target": 0, "func": "static int aes_ecb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n size_t bl = EVP_CIPHER_CTX_block_size ( ctx ) ;\n size_t i ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( len < bl ) return 1 ;\n for ( i = 0 , len -= bl ;\n i <= len ;\n i += bl ) ( * dat -> block ) ( in + i , out + i , & dat -> ks ) ;\n return 1 ;\n }"}
{"idx": 1892, "target": 0, "func": "static void mdb_writewait ( Operation * op , slap_callback * sc ) {\n ww_ctx * ww = sc -> sc_private ;\n if ( ! ww -> flag ) {\n mdb_rtxn_snap ( op , ww ) ;\n }\n }"}
{"idx": 1893, "target": 0, "func": "void rtadv_terminate ( struct zebra_vrf * zvrf ) {\n ;\n }"}
{"idx": 1894, "target": 0, "func": "static void rv4_weight ( RV34DecContext * r ) {\n r -> rdsp . rv40_weight_pixels_tab [ r -> scaled_weight ] [ 0 ] ( r -> s . dest [ 0 ] , r -> tmp_b_block_y [ 0 ] , r -> tmp_b_block_y [ 1 ] , r -> weight1 , r -> weight2 , r -> s . linesize ) ;\n r -> rdsp . rv40_weight_pixels_tab [ r -> scaled_weight ] [ 1 ] ( r -> s . dest [ 1 ] , r -> tmp_b_block_uv [ 0 ] , r -> tmp_b_block_uv [ 2 ] , r -> weight1 , r -> weight2 , r -> s . uvlinesize ) ;\n r -> rdsp . rv40_weight_pixels_tab [ r -> scaled_weight ] [ 1 ] ( r -> s . dest [ 2 ] , r -> tmp_b_block_uv [ 1 ] , r -> tmp_b_block_uv [ 3 ] , r -> weight1 , r -> weight2 , r -> s . uvlinesize ) ;\n }"}
{"idx": 1895, "target": 0, "func": "static void e1000e_set_mdic ( E1000ECore * core , int index , uint32_t val ) {\n uint32_t data = val & E1000_MDIC_DATA_MASK ;\n uint32_t addr = ( ( val & E1000_MDIC_REG_MASK ) >> E1000_MDIC_REG_SHIFT ) ;\n uint8_t page ;\n if ( ( val & E1000_MDIC_PHY_MASK ) >> E1000_MDIC_PHY_SHIFT != 1 ) {\n val = core -> mac [ MDIC ] | E1000_MDIC_ERROR ;\n }\n else if ( val & E1000_MDIC_OP_READ ) {\n if ( ! e1000e_phy_reg_check_cap ( core , addr , PHY_R , & page ) ) {\n trace_e1000e_core_mdic_read_unhandled ( page , addr ) ;\n val |= E1000_MDIC_ERROR ;\n }\n else {\n val = ( val ^ data ) | core -> phy [ page ] [ addr ] ;\n trace_e1000e_core_mdic_read ( page , addr , val ) ;\n }\n }\n else if ( val & E1000_MDIC_OP_WRITE ) {\n if ( ! e1000e_phy_reg_check_cap ( core , addr , PHY_W , & page ) ) {\n trace_e1000e_core_mdic_write_unhandled ( page , addr ) ;\n val |= E1000_MDIC_ERROR ;\n }\n else {\n trace_e1000e_core_mdic_write ( page , addr , data ) ;\n e1000e_phy_reg_write ( core , page , addr , data ) ;\n }\n }\n core -> mac [ MDIC ] = val | E1000_MDIC_READY ;\n if ( val & E1000_MDIC_INT_EN ) {\n e1000e_set_interrupt_cause ( core , E1000_ICR_MDAC ) ;\n }\n }"}
{"idx": 1896, "target": 0, "func": "static void acl_update_user ( const char * user , const char * host , const char * password , uint password_len , enum SSL_type ssl_type , const char * ssl_cipher , const char * x509_issuer , const char * x509_subject , USER_RESOURCES * mqh , ulong privileges ) {\n safe_mutex_assert_owner ( & acl_cache -> lock ) ;\n for ( uint i = 0 ;\n i < acl_users . elements ;\n i ++ ) {\n ACL_USER * acl_user = dynamic_element ( & acl_users , i , ACL_USER * ) ;\n if ( ( ! acl_user -> user && ! user [ 0 ] ) || ( acl_user -> user && ! strcmp ( user , acl_user -> user ) ) ) {\n if ( ( ! acl_user -> host . hostname && ! host [ 0 ] ) || ( acl_user -> host . hostname && ! my_strcasecmp ( system_charset_info , host , acl_user -> host . hostname ) ) ) {\n acl_user -> access = privileges ;\n if ( mqh -> specified_limits & USER_RESOURCES : : QUERIES_PER_HOUR ) acl_user -> user_resource . questions = mqh -> questions ;\n if ( mqh -> specified_limits & USER_RESOURCES : : UPDATES_PER_HOUR ) acl_user -> user_resource . updates = mqh -> updates ;\n if ( mqh -> specified_limits & USER_RESOURCES : : CONNECTIONS_PER_HOUR ) acl_user -> user_resource . conn_per_hour = mqh -> conn_per_hour ;\n if ( mqh -> specified_limits & USER_RESOURCES : : USER_CONNECTIONS ) acl_user -> user_resource . user_conn = mqh -> user_conn ;\n if ( ssl_type != SSL_TYPE_NOT_SPECIFIED ) {\n acl_user -> ssl_type = ssl_type ;\n acl_user -> ssl_cipher = ( ssl_cipher ? strdup_root ( & mem , ssl_cipher ) : 0 ) ;\n acl_user -> x509_issuer = ( x509_issuer ? strdup_root ( & mem , x509_issuer ) : 0 ) ;\n acl_user -> x509_subject = ( x509_subject ? strdup_root ( & mem , x509_subject ) : 0 ) ;\n }\n if ( password ) set_user_salt ( acl_user , password , password_len ) ;\n break ;\n }\n }\n }\n }"}
{"idx": 1897, "target": 0, "func": "static ui64 get_pid_start_time ( pid_t pid ) {\n glibtop_proc_time buf = {\n 0 }\n ;\n glibtop_get_proc_time ( & buf , pid ) ;\n return buf . start_time ;\n }"}
{"idx": 1898, "target": 0, "func": "static int dissect_zbee_zcl_met_idt ( tvbuff_t * tvb _U_ , packet_info * pinfo _U_ , proto_tree * tree _U_ , void * data _U_ ) {\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 1899, "target": 0, "func": "static void nlm_match_fhandle_request ( packet_info * pinfo , proto_tree * tree ) {\n nlm_msg_res_matched_data * md ;\n md = ( nlm_msg_res_matched_data * ) g_hash_table_lookup ( nlm_msg_res_matched , GINT_TO_POINTER ( pinfo -> fd -> num ) ) ;\n if ( md && md -> rep_frame ) {\n dissect_fhandle_hidden ( pinfo , tree , md -> rep_frame ) ;\n }\n }"}
{"idx": 1900, "target": 0, "func": "static const char * integer32_avp ( diam_ctx_t * c , diam_avp_t * a , tvbuff_t * tvb , diam_sub_dis_t * diam_sub_dis_inf _U_ ) {\n char * label = NULL ;\n proto_item * pi ;\n gint length = tvb_reported_length ( tvb ) ;\n if ( length == 4 ) {\n if ( c -> tree ) {\n pi = proto_tree_add_item ( c -> tree , a -> hf_value , tvb , 0 , length , ENC_BIG_ENDIAN ) ;\n label = ( char * ) wmem_alloc ( wmem_packet_scope ( ) , ITEM_LABEL_LENGTH + 1 ) ;\n proto_item_fill_label ( PITEM_FINFO ( pi ) , label ) ;\n label = strstr ( label , \": \" ) + 2 ;\n }\n }\n else {\n pi = proto_tree_add_bytes_format ( c -> tree , hf_diameter_avp_data_wrong_length , tvb , 0 , length , NULL , \"Error! Bad Integer32 Length\" ) ;\n expert_add_info_format ( c -> pinfo , pi , & ei_diameter_avp_len , \"Bad Integer32 Length (%u)\" , length ) ;\n PROTO_ITEM_SET_GENERATED ( pi ) ;\n }\n return label ;\n }"}
{"idx": 1901, "target": 1, "func": "zend_object_iterator * spl_filesystem_tree_get_iterator ( zend_class_entry * ce , zval * object , int by_ref TSRMLS_DC ) {\n spl_filesystem_iterator * iterator ;\n spl_filesystem_object * dir_object ;\n if ( by_ref ) {\n zend_error ( E_ERROR , \"An iterator cannot be used with foreach by reference\" ) ;\n }\n dir_object = ( spl_filesystem_object * ) zend_object_store_get_object ( object TSRMLS_CC ) ;\n iterator = spl_filesystem_object_to_iterator ( dir_object ) ;\n if ( iterator -> intern . data == NULL ) {\n iterator -> intern . data = object ;\n iterator -> intern . funcs = & spl_filesystem_tree_it_funcs ;\n }\n zval_add_ref ( & object ) ;\n return ( zend_object_iterator * ) iterator ;\n }"}
{"idx": 1902, "target": 0, "func": "void append_field ( DYNAMIC_STRING * ds , uint col_idx , MYSQL_FIELD * field , char * val , ulonglong len , my_bool is_null ) {\n char null [ ] = \"NULL\" ;\n if ( col_idx < max_replace_column && replace_column [ col_idx ] ) {\n val = replace_column [ col_idx ] ;\n len = strlen ( val ) ;\n }\n else if ( is_null ) {\n val = null ;\n len = 4 ;\n }\n # ifdef __WIN__ else if ( ( field -> type == MYSQL_TYPE_DOUBLE || field -> type == MYSQL_TYPE_FLOAT ) && field -> decimals >= 31 ) {\n char * start = strchr ( val , 'e' ) ;\n if ( start && strlen ( start ) >= 5 && ( start [ 1 ] == '-' || start [ 1 ] == '+' ) && start [ 2 ] == '0' ) {\n start += 2 ;\n if ( field -> flags & ZEROFILL_FLAG ) {\n memmove ( val + 1 , val , start - val ) ;\n * val = '0' ;\n }\n else {\n memmove ( start , start + 1 , strlen ( start ) ) ;\n len -- ;\n }\n }\n }\n # endif if ( ! display_result_vertically ) {\n if ( col_idx ) dynstr_append_mem ( ds , \"\\t\" , 1 ) ;\n replace_dynstr_append_mem ( ds , val , ( int ) len ) ;\n }\n else {\n dynstr_append ( ds , field -> name ) ;\n dynstr_append_mem ( ds , \"\\t\" , 1 ) ;\n replace_dynstr_append_mem ( ds , val , ( int ) len ) ;\n dynstr_append_mem ( ds , \"\\n\" , 1 ) ;\n }\n }"}
{"idx": 1903, "target": 0, "func": "static void init_ssl ( ) {\n # if defined ( HAVE_OPENSSL ) && ! defined ( EMBEDDED_LIBRARY ) if ( opt_use_ssl ) {\n enum enum_ssl_init_error error = SSL_INITERR_NOERROR ;\n ssl_acceptor_fd = new_VioSSLAcceptorFd ( opt_ssl_key , opt_ssl_cert , opt_ssl_ca , opt_ssl_capath , opt_ssl_cipher , & error ) ;\n DBUG_PRINT ( \"info\" , ( \"ssl_acceptor_fd: 0x%lx\" , ( long ) ssl_acceptor_fd ) ) ;\n ERR_remove_state ( 0 ) ;\n if ( ! ssl_acceptor_fd ) {\n sql_print_warning ( \"Failed to setup SSL\" ) ;\n sql_print_warning ( \"SSL error: %s\" , sslGetErrString ( error ) ) ;\n opt_use_ssl = 0 ;\n have_ssl = SHOW_OPTION_DISABLED ;\n }\n }\n else {\n have_ssl = SHOW_OPTION_DISABLED ;\n }\n if ( des_key_file ) load_des_key_file ( des_key_file ) ;\n # endif }"}
{"idx": 1904, "target": 0, "func": "int pdf_xobject_isolated ( fz_context * ctx , pdf_xobject * xobj ) {\n pdf_obj * group = pdf_dict_get ( ctx , xobj -> obj , PDF_NAME_Group ) ;\n if ( group ) return pdf_to_bool ( ctx , pdf_dict_get ( ctx , group , PDF_NAME_I ) ) ;\n return 0 ;\n }"}
{"idx": 1905, "target": 1, "func": "void vp9_loop_filter_frame_mt ( YV12_BUFFER_CONFIG * frame , VP9Decoder * pbi , VP9_COMMON * cm , int frame_filter_level , int y_only ) {\n VP9LfSync * const lf_sync = & pbi -> lf_row_sync ;\n const VP9WorkerInterface * const winterface = vp9_get_worker_interface ( ) ;\n const int sb_rows = mi_cols_aligned_to_sb ( cm -> mi_rows ) >> MI_BLOCK_SIZE_LOG2 ;\n const int tile_cols = 1 << cm -> log2_tile_cols ;\n const int num_workers = MIN ( pbi -> max_threads & ~ 1 , tile_cols ) ;\n int i ;\n if ( ! lf_sync -> sync_range || cm -> last_height != cm -> height ) {\n vp9_loop_filter_dealloc ( lf_sync ) ;\n vp9_loop_filter_alloc ( cm , lf_sync , sb_rows , cm -> width ) ;\n }\n if ( ! frame_filter_level ) return ;\n vp9_loop_filter_frame_init ( cm , frame_filter_level ) ;\n vpx_memset ( lf_sync -> cur_sb_col , - 1 , sizeof ( * lf_sync -> cur_sb_col ) * sb_rows ) ;\n for ( i = 0 ;\n i < num_workers ;\n ++ i ) {\n VP9Worker * const worker = & pbi -> tile_workers [ i ] ;\n TileWorkerData * const tile_data = ( TileWorkerData * ) worker -> data1 ;\n LFWorkerData * const lf_data = & tile_data -> lfdata ;\n worker -> hook = ( VP9WorkerHook ) loop_filter_row_worker ;\n lf_data -> frame_buffer = frame ;\n lf_data -> cm = cm ;\n vp9_copy ( lf_data -> planes , pbi -> mb . plane ) ;\n lf_data -> start = i ;\n lf_data -> stop = sb_rows ;\n lf_data -> y_only = y_only ;\n lf_data -> lf_sync = lf_sync ;\n lf_data -> num_lf_workers = num_workers ;\n if ( i == num_workers - 1 ) {\n winterface -> execute ( worker ) ;\n }\n else {\n winterface -> launch ( worker ) ;\n }\n }\n for ( i = 0 ;\n i < num_workers ;\n ++ i ) {\n winterface -> sync ( & pbi -> tile_workers [ i ] ) ;\n }\n }"}
{"idx": 1906, "target": 0, "func": "gpg_error_t keydb_search ( KEYDB_HANDLE hd , KEYDB_SEARCH_DESC * desc , size_t ndesc , size_t * descindex ) {\n gpg_error_t rc ;\n if ( descindex ) * descindex = 0 ;\n if ( ! hd ) return gpg_error ( GPG_ERR_INV_ARG ) ;\n if ( DBG_CLOCK ) log_clock ( \"keydb_search enter\" ) ;\n if ( DBG_CACHE ) dump_search_desc ( hd , \"keydb_search\" , desc , ndesc ) ;\n if ( ! hd -> no_caching && ndesc == 1 && ( desc [ 0 ] . mode == KEYDB_SEARCH_MODE_FPR20 || desc [ 0 ] . mode == KEYDB_SEARCH_MODE_FPR ) && keyblock_cache . state == KEYBLOCK_CACHE_FILLED && ! memcmp ( keyblock_cache . fpr , desc [ 0 ] . u . fpr , 20 ) ) {\n if ( DBG_CLOCK ) log_clock ( \"keydb_search leave (cached)\" ) ;\n return 0 ;\n }\n rc = - 1 ;\n while ( ( rc == - 1 || gpg_err_code ( rc ) == GPG_ERR_EOF ) && hd -> current >= 0 && hd -> current < hd -> used ) {\n switch ( hd -> active [ hd -> current ] . type ) {\n case KEYDB_RESOURCE_TYPE_NONE : BUG ( ) ;\n break ;\n case KEYDB_RESOURCE_TYPE_KEYRING : rc = keyring_search ( hd -> active [ hd -> current ] . u . kr , desc , ndesc , descindex ) ;\n break ;\n case KEYDB_RESOURCE_TYPE_KEYBOX : rc = keybox_search ( hd -> active [ hd -> current ] . u . kb , desc , ndesc , KEYBOX_BLOBTYPE_PGP , descindex , & hd -> skipped_long_blobs ) ;\n break ;\n }\n if ( rc == - 1 || gpg_err_code ( rc ) == GPG_ERR_EOF ) {\n hd -> current ++ ;\n }\n else if ( ! rc ) hd -> found = hd -> current ;\n }\n rc = ( ( rc == - 1 || gpg_err_code ( rc ) == GPG_ERR_EOF ) ? gpg_error ( GPG_ERR_NOT_FOUND ) : rc ) ;\n keyblock_cache_clear ( ) ;\n if ( ! hd -> no_caching && ! rc && ndesc == 1 && ( desc [ 0 ] . mode == KEYDB_SEARCH_MODE_FPR20 || desc [ 0 ] . mode == KEYDB_SEARCH_MODE_FPR ) ) {\n keyblock_cache . state = KEYBLOCK_CACHE_PREPARED ;\n memcpy ( keyblock_cache . fpr , desc [ 0 ] . u . fpr , 20 ) ;\n }\n if ( DBG_CLOCK ) log_clock ( rc ? \"keydb_search leave (not found)\" : \"keydb_search leave (found)\" ) ;\n return rc ;\n }"}
{"idx": 1907, "target": 0, "func": "static void dissect_t38_udp ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree ) {\n guint8 octet1 ;\n proto_item * it ;\n proto_tree * tr ;\n guint32 offset = 0 ;\n if ( dissect_possible_rtpv2_packets_as_rtp ) {\n octet1 = tvb_get_guint8 ( tvb , offset ) ;\n if ( RTP_VERSION ( octet1 ) == 2 ) {\n call_dissector ( rtp_handle , tvb , pinfo , tree ) ;\n return ;\n }\n }\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"T.38\" ) ;\n col_clear ( pinfo -> cinfo , COL_INFO ) ;\n primary_part = TRUE ;\n Data_Field_item_num = 0 ;\n it = proto_tree_add_protocol_format ( tree , proto_t38 , tvb , 0 , - 1 , \"ITU-T Recommendation T.38\" ) ;\n tr = proto_item_add_subtree ( it , ett_t38 ) ;\n init_t38_info_conv ( pinfo ) ;\n if ( global_t38_show_setup_info ) {\n show_setup_info ( tvb , tr , p_t38_packet_conv ) ;\n }\n col_append_str ( pinfo -> cinfo , COL_INFO , \"UDP: UDPTLPacket \" ) ;\n offset = dissect_UDPTLPacket_PDU ( tvb , pinfo , tr , NULL ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n proto_tree_add_expert_format ( tr , pinfo , & ei_t38_malformed , tvb , offset , tvb_reported_length_remaining ( tvb , offset ) , \"[MALFORMED PACKET or wrong preference settings]\" ) ;\n col_append_str ( pinfo -> cinfo , COL_INFO , \" [Malformed?]\" ) ;\n }\n }"}
{"idx": 1908, "target": 0, "func": "static void config_monitor ( config_tree * ptree ) {\n int_node * pfilegen_token ;\n const char * filegen_string ;\n const char * filegen_file ;\n FILEGEN * filegen ;\n filegen_node * my_node ;\n attr_val * my_opts ;\n int filegen_type ;\n int filegen_flag ;\n if ( ptree -> stats_dir ) stats_config ( STATS_STATSDIR , ptree -> stats_dir ) ;\n pfilegen_token = HEAD_PFIFO ( ptree -> stats_list ) ;\n for ( ;\n pfilegen_token != NULL ;\n pfilegen_token = pfilegen_token -> link ) {\n filegen_string = keyword ( pfilegen_token -> i ) ;\n filegen = filegen_get ( filegen_string ) ;\n if ( NULL == filegen ) {\n msyslog ( LOG_ERR , \"stats %s unrecognized\" , filegen_string ) ;\n continue ;\n }\n DPRINTF ( 4 , ( \"enabling filegen for %s statistics '%s%s'\\n\" , filegen_string , filegen -> prefix , filegen -> basename ) ) ;\n filegen -> flag |= FGEN_FLAG_ENABLED ;\n }\n my_node = HEAD_PFIFO ( ptree -> filegen_opts ) ;\n for ( ;\n my_node != NULL ;\n my_node = my_node -> link ) {\n filegen_file = keyword ( my_node -> filegen_token ) ;\n filegen = filegen_get ( filegen_file ) ;\n if ( NULL == filegen ) {\n msyslog ( LOG_ERR , \"filegen category '%s' unrecognized\" , filegen_file ) ;\n continue ;\n }\n filegen_flag = filegen -> flag ;\n filegen_type = filegen -> type ;\n filegen_flag |= FGEN_FLAG_ENABLED ;\n my_opts = HEAD_PFIFO ( my_node -> options ) ;\n for ( ;\n my_opts != NULL ;\n my_opts = my_opts -> link ) {\n switch ( my_opts -> attr ) {\n case T_File : filegen_file = my_opts -> value . s ;\n break ;\n case T_Type : switch ( my_opts -> value . i ) {\n default : NTP_INSIST ( 0 ) ;\n break ;\n case T_None : filegen_type = FILEGEN_NONE ;\n break ;\n case T_Pid : filegen_type = FILEGEN_PID ;\n break ;\n case T_Day : filegen_type = FILEGEN_DAY ;\n break ;\n case T_Week : filegen_type = FILEGEN_WEEK ;\n break ;\n case T_Month : filegen_type = FILEGEN_MONTH ;\n break ;\n case T_Year : filegen_type = FILEGEN_YEAR ;\n break ;\n case T_Age : filegen_type = FILEGEN_AGE ;\n break ;\n }\n break ;\n case T_Flag : switch ( my_opts -> value . i ) {\n case T_Link : filegen_flag |= FGEN_FLAG_LINK ;\n break ;\n case T_Nolink : filegen_flag &= ~ FGEN_FLAG_LINK ;\n break ;\n case T_Enable : filegen_flag |= FGEN_FLAG_ENABLED ;\n break ;\n case T_Disable : filegen_flag &= ~ FGEN_FLAG_ENABLED ;\n break ;\n default : msyslog ( LOG_ERR , \"Unknown filegen flag token %d\" , my_opts -> value . i ) ;\n exit ( 1 ) ;\n }\n break ;\n default : msyslog ( LOG_ERR , \"Unknown filegen option token %d\" , my_opts -> attr ) ;\n exit ( 1 ) ;\n }\n }\n filegen_config ( filegen , filegen_file , filegen_type , filegen_flag ) ;\n }\n }"}
{"idx": 1909, "target": 0, "func": "static gboolean connfilter ( GtkTreeModel * model , GtkTreeIter * iter , gpointer * data ) {\n gchar * src_host , * dst_host ;\n gboolean ret = TRUE ;\n struct conn_tail * conn = NULL ;\n ( void ) data ;\n gtk_tree_model_get ( model , iter , 1 , & src_host , 4 , & dst_host , 11 , & conn , - 1 ) ;\n if ( filter . host && strlen ( filter . host ) ) {\n if ( src_host && ! strcasestr ( src_host , filter . host ) && dst_host && ! strcasestr ( dst_host , filter . host ) ) {\n ret = FALSE ;\n g_free ( src_host ) ;\n g_free ( dst_host ) ;\n }\n }\n if ( conn && conn -> co ) {\n switch ( conn -> co -> L4_proto ) {\n case NL_TYPE_UDP : if ( ! filter . udp ) ret = FALSE ;\n break ;\n case NL_TYPE_TCP : if ( ! filter . tcp ) ret = FALSE ;\n break ;\n default : if ( ! filter . other ) ret = FALSE ;\n }\n switch ( conn -> co -> status ) {\n case CONN_IDLE : if ( ! filter . idle ) ret = FALSE ;\n break ;\n case CONN_ACTIVE : if ( ! filter . active ) ret = FALSE ;\n break ;\n case CONN_CLOSING : if ( ! filter . closing ) ret = FALSE ;\n break ;\n case CONN_CLOSED : if ( ! filter . closed ) ret = FALSE ;\n break ;\n case CONN_KILLED : if ( ! filter . killed ) ret = FALSE ;\n break ;\n default : break ;\n }\n }\n else {\n ret = FALSE ;\n }\n return ret ;\n }"}
{"idx": 1910, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( SessionRestorePageLoadMetricsBrowserTest , InitialForegroundTabChanged ) {\n ui_test_utils : : NavigateToURL ( browser ( ) , GetTestURL ( ) ) ;\n ui_test_utils : : NavigateToURLWithDisposition ( browser ( ) , GetTestURL ( ) , WindowOpenDisposition : : NEW_BACKGROUND_TAB , ui_test_utils : : BROWSER_TEST_WAIT_FOR_NAVIGATION ) ;\n SessionRestorePaintWaiter session_restore_paint_waiter ;\n Browser * new_browser = QuitBrowserAndRestore ( browser ( ) ) ;\n TabStripModel * tab_strip = new_browser -> tab_strip_model ( ) ;\n ASSERT_TRUE ( tab_strip ) ;\n ASSERT_EQ ( 2 , tab_strip -> count ( ) ) ;\n ASSERT_EQ ( 0 , tab_strip -> active_index ( ) ) ;\n tab_strip -> ActivateTabAt ( 1 , true ) ;\n session_restore_paint_waiter . WaitForForegroundTabs ( 1 ) ;\n ExpectFirstPaintMetricsTotalCount ( 0 ) ;\n }"}
{"idx": 1911, "target": 0, "func": "static GstFlowReturn gst_asf_demux_pull_indices ( GstASFDemux * demux ) {\n GstBuffer * buf = NULL ;\n guint64 offset ;\n guint num_read = 0 ;\n GstFlowReturn ret = GST_FLOW_OK ;\n offset = demux -> index_offset ;\n if ( G_UNLIKELY ( offset == 0 ) ) {\n GST_DEBUG_OBJECT ( demux , \"can't read indices, don't know index offset\" ) ;\n return GST_FLOW_OK ;\n }\n while ( gst_asf_demux_pull_data ( demux , offset , 16 + 8 , & buf , NULL ) ) {\n AsfObject obj ;\n GstMapInfo map ;\n guint8 * bufdata ;\n guint64 obj_size ;\n gst_buffer_map ( buf , & map , GST_MAP_READ ) ;\n g_assert ( map . size >= 16 + 8 ) ;\n if ( ! asf_demux_peek_object ( demux , map . data , 16 + 8 , & obj , TRUE ) ) {\n gst_buffer_unmap ( buf , & map ) ;\n gst_buffer_replace ( & buf , NULL ) ;\n ret = GST_FLOW_ERROR ;\n break ;\n }\n gst_buffer_unmap ( buf , & map ) ;\n gst_buffer_replace ( & buf , NULL ) ;\n if ( G_UNLIKELY ( obj . size > ( 5 * 1024 * 1024 ) ) ) {\n GST_DEBUG_OBJECT ( demux , \"implausible index object size, bailing out\" ) ;\n break ;\n }\n if ( G_UNLIKELY ( ! gst_asf_demux_pull_data ( demux , offset , obj . size , & buf , NULL ) ) ) break ;\n GST_LOG_OBJECT ( demux , \"index object at offset 0x%\" G_GINT64_MODIFIER \"X\" \", size %u\" , offset , ( guint ) obj . size ) ;\n offset += obj . size ;\n gst_buffer_map ( buf , & map , GST_MAP_READ ) ;\n g_assert ( map . size >= obj . size ) ;\n bufdata = ( guint8 * ) map . data ;\n obj_size = obj . size ;\n ret = gst_asf_demux_process_object ( demux , & bufdata , & obj_size ) ;\n gst_buffer_unmap ( buf , & map ) ;\n gst_buffer_replace ( & buf , NULL ) ;\n if ( G_UNLIKELY ( ret != GST_FLOW_OK ) ) break ;\n ++ num_read ;\n }\n GST_DEBUG_OBJECT ( demux , \"read %u index objects\" , num_read ) ;\n return ret ;\n }"}
{"idx": 1912, "target": 0, "func": "static int kex_agree_methods ( LIBSSH2_SESSION * session , unsigned char * data , unsigned data_len ) {\n unsigned char * kex , * hostkey , * crypt_cs , * crypt_sc , * comp_cs , * comp_sc , * mac_cs , * mac_sc ;\n size_t kex_len , hostkey_len , crypt_cs_len , crypt_sc_len , comp_cs_len ;\n size_t comp_sc_len , mac_cs_len , mac_sc_len ;\n unsigned char * s = data ;\n s ++ ;\n s += 16 ;\n if ( kex_string_pair ( & s , data , data_len , & kex_len , & kex ) ) return - 1 ;\n if ( kex_string_pair ( & s , data , data_len , & hostkey_len , & hostkey ) ) return - 1 ;\n if ( kex_string_pair ( & s , data , data_len , & crypt_cs_len , & crypt_cs ) ) return - 1 ;\n if ( kex_string_pair ( & s , data , data_len , & crypt_sc_len , & crypt_sc ) ) return - 1 ;\n if ( kex_string_pair ( & s , data , data_len , & mac_cs_len , & mac_cs ) ) return - 1 ;\n if ( kex_string_pair ( & s , data , data_len , & mac_sc_len , & mac_sc ) ) return - 1 ;\n if ( kex_string_pair ( & s , data , data_len , & comp_cs_len , & comp_cs ) ) return - 1 ;\n if ( kex_string_pair ( & s , data , data_len , & comp_sc_len , & comp_sc ) ) return - 1 ;\n session -> burn_optimistic_kexinit = * ( s ++ ) ;\n if ( data_len < ( unsigned ) ( s - data ) ) return - 1 ;\n if ( kex_agree_kex_hostkey ( session , kex , kex_len , hostkey , hostkey_len ) ) {\n return - 1 ;\n }\n if ( kex_agree_crypt ( session , & session -> local , crypt_cs , crypt_cs_len ) || kex_agree_crypt ( session , & session -> remote , crypt_sc , crypt_sc_len ) ) {\n return - 1 ;\n }\n if ( kex_agree_mac ( session , & session -> local , mac_cs , mac_cs_len ) || kex_agree_mac ( session , & session -> remote , mac_sc , mac_sc_len ) ) {\n return - 1 ;\n }\n if ( kex_agree_comp ( session , & session -> local , comp_cs , comp_cs_len ) || kex_agree_comp ( session , & session -> remote , comp_sc , comp_sc_len ) ) {\n return - 1 ;\n }\n # if 0 if ( libssh2_kex_agree_lang ( session , & session -> local , lang_cs , lang_cs_len ) || libssh2_kex_agree_lang ( session , & session -> remote , lang_sc , lang_sc_len ) ) {\n return - 1 ;\n }\n # endif _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Agreed on KEX method: %s\" , session -> kex -> name ) ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Agreed on HOSTKEY method: %s\" , session -> hostkey -> name ) ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Agreed on CRYPT_CS method: %s\" , session -> local . crypt -> name ) ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Agreed on CRYPT_SC method: %s\" , session -> remote . crypt -> name ) ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Agreed on MAC_CS method: %s\" , session -> local . mac -> name ) ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Agreed on MAC_SC method: %s\" , session -> remote . mac -> name ) ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Agreed on COMP_CS method: %s\" , session -> local . comp -> name ) ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Agreed on COMP_SC method: %s\" , session -> remote . comp -> name ) ;\n return 0 ;\n }"}
{"idx": 1913, "target": 0, "func": "static void pxa2xx_i2c_event ( I2CSlave * i2c , enum i2c_event event ) {\n PXA2xxI2CSlaveState * slave = FROM_I2C_SLAVE ( PXA2xxI2CSlaveState , i2c ) ;\n PXA2xxI2CState * s = slave -> host ;\n switch ( event ) {\n case I2C_START_SEND : s -> status |= ( 1 << 9 ) ;\n s -> status &= ~ ( 1 << 0 ) ;\n break ;\n case I2C_START_RECV : s -> status |= ( 1 << 9 ) ;\n s -> status |= 1 << 0 ;\n break ;\n case I2C_FINISH : s -> status |= ( 1 << 4 ) ;\n break ;\n case I2C_NACK : s -> status |= 1 << 1 ;\n break ;\n }\n pxa2xx_i2c_update ( s ) ;\n }"}
{"idx": 1914, "target": 0, "func": "static void nameserver_write_waiting ( struct nameserver * ns , char waiting ) {\n if ( ns -> write_waiting == waiting ) return ;\n ns -> write_waiting = waiting ;\n ( void ) event_del ( & ns -> event ) ;\n event_set ( & ns -> event , ns -> socket , EV_READ | ( waiting ? EV_WRITE : 0 ) | EV_PERSIST , nameserver_ready_callback , ns ) ;\n if ( event_add ( & ns -> event , NULL ) < 0 ) {\n log ( EVDNS_LOG_WARN , \"Error from libevent when adding event for %s\" , debug_ntoa ( ns -> address ) ) ;\n }\n }"}
{"idx": 1915, "target": 0, "func": "static uint64 _tiffSizeProc ( thandle_t fd ) {\n ULARGE_INTEGER m ;\n m . LowPart = GetFileSize ( fd , & m . HighPart ) ;\n return ( m . QuadPart ) ;\n }"}
{"idx": 1916, "target": 0, "func": "static void stroke_terminate_srcip ( private_stroke_socket_t * this , stroke_msg_t * msg , FILE * out ) {\n pop_string ( msg , & msg -> terminate_srcip . start ) ;\n pop_string ( msg , & msg -> terminate_srcip . end ) ;\n DBG1 ( DBG_CFG , \"received stroke: terminate-srcip %s-%s\" , msg -> terminate_srcip . start , msg -> terminate_srcip . end ) ;\n this -> control -> terminate_srcip ( this -> control , msg , out ) ;\n }"}
{"idx": 1917, "target": 0, "func": "HTTPHdrImpl * http_hdr_create ( HdrHeap * heap , HTTPType polarity ) {\n HTTPHdrImpl * hh ;\n hh = ( HTTPHdrImpl * ) heap -> allocate_obj ( sizeof ( HTTPHdrImpl ) , HDR_HEAP_OBJ_HTTP_HEADER ) ;\n http_hdr_init ( heap , hh , polarity ) ;\n return ( hh ) ;\n }"}
{"idx": 1918, "target": 0, "func": "PHP_FUNCTION ( uwsgi_cache_del ) {\n char * key = NULL ;\n int keylen = 0 ;\n char * cache = NULL ;\n int cachelen = 0 ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"s|s\" , & key , & keylen , & cache , & cachelen ) == FAILURE ) {\n RETURN_NULL ( ) ;\n }\n if ( ! uwsgi_cache_magic_del ( key , keylen , cache ) ) {\n RETURN_TRUE ;\n }\n RETURN_NULL ( ) ;\n }"}
{"idx": 1919, "target": 0, "func": "void TSHttpHookAdd ( TSHttpHookID id , TSCont contp ) {\n INKContInternal * icontp ;\n sdk_assert ( sdk_sanity_check_continuation ( contp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_hook_id ( id ) == TS_SUCCESS ) ;\n icontp = reinterpret_cast < INKContInternal * > ( contp ) ;\n if ( id >= TS_SSL_FIRST_HOOK && id <= TS_SSL_LAST_HOOK ) {\n TSSslHookInternalID internalId = static_cast < TSSslHookInternalID > ( id - TS_SSL_FIRST_HOOK ) ;\n ssl_hooks -> append ( internalId , icontp ) ;\n }\n else {\n http_global_hooks -> append ( id , icontp ) ;\n }\n }"}
{"idx": 1920, "target": 0, "func": "void remove_tap_listener_isup_calls ( void ) {\n remove_tap_listener ( & ( the_tapinfo_struct . isup_dummy ) ) ;\n have_isup_tap_listener = FALSE ;\n }"}
{"idx": 1921, "target": 0, "func": "const char * hb_blob_get_data ( hb_blob_t * blob , unsigned int * length ) {\n if ( length ) * length = blob -> length ;\n return blob -> data ;\n }"}
{"idx": 1922, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( ExternalProtocolDialogBrowserTest , TestAcceptWithChecked ) {\n ShowDialog ( ) ;\n SetChecked ( true ) ;\n EXPECT_TRUE ( dialog_ -> Accept ( ) ) ;\n EXPECT_TRUE ( called_ ) ;\n EXPECT_TRUE ( accept_ ) ;\n EXPECT_FALSE ( cancel_ ) ;\n EXPECT_TRUE ( dont_block_ ) ;\n histogram_tester_ . ExpectBucketCount ( ExternalProtocolHandler : : kRememberCheckboxMetric , 1 , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( ExternalProtocolHandler : : kHandleStateMetric , ExternalProtocolHandler : : CHECKED_LAUNCH , 1 ) ;\n }"}
{"idx": 1923, "target": 0, "func": "static void info_provider_callback ( NautilusInfoProvider * provider , NautilusOperationHandle * handle , NautilusOperationResult result , gpointer user_data ) {\n InfoProviderResponse * response ;\n response = g_new0 ( InfoProviderResponse , 1 ) ;\n response -> provider = provider ;\n response -> handle = handle ;\n response -> result = result ;\n response -> directory = NAUTILUS_DIRECTORY ( user_data ) ;\n response -> directory -> details -> extension_info_idle = g_idle_add_full ( G_PRIORITY_DEFAULT_IDLE , info_provider_idle_callback , response , g_free ) ;\n }"}
{"idx": 1924, "target": 0, "func": "inline TSReturnCode sdk_sanity_check_cachekey ( TSCacheKey key ) {\n if ( nullptr == key ) {\n return TS_ERROR ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 1925, "target": 0, "func": "static int parse_CRowSeekAt ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , const char * fmt , ... ) {\n proto_tree * tree ;\n proto_item * item ;\n va_list ap ;\n const char * txt ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CRowsSeekAt , & item , txt ) ;\n proto_tree_add_item ( tree , hf_mswsp_crowseekat_bmkoffset , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_crowseekat_skip , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_crowseekat_hregion , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 1926, "target": 0, "func": "static int dissect_h245_DepFECCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_DepFECCapability , DepFECCapability_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 1927, "target": 0, "func": "int mszipd_decompress_kwaj ( struct mszipd_stream * zip ) {\n register unsigned int bit_buffer ;\n register int bits_left ;\n unsigned char * i_ptr , * i_end ;\n int i , error , block_len ;\n for ( ;\n ;\n ) {\n RESTORE_BITS ;\n i = bits_left & 7 ;\n REMOVE_BITS ( i ) ;\n READ_BITS ( block_len , 8 ) ;\n READ_BITS ( i , 8 ) ;\n block_len |= i << 8 ;\n if ( block_len == 0 ) break ;\n READ_BITS ( i , 8 ) ;\n if ( i != 'C' ) return MSPACK_ERR_DATAFORMAT ;\n READ_BITS ( i , 8 ) ;\n if ( i != 'K' ) return MSPACK_ERR_DATAFORMAT ;\n zip -> window_posn = 0 ;\n zip -> bytes_output = 0 ;\n STORE_BITS ;\n if ( ( error = inflate ( zip ) ) ) {\n D ( ( \"inflate error %d\" , error ) ) return zip -> error = ( error > 0 ) ? error : MSPACK_ERR_DECRUNCH ;\n }\n if ( zip -> sys -> write ( zip -> output , & zip -> window [ 0 ] , zip -> bytes_output ) != zip -> bytes_output ) return zip -> error = MSPACK_ERR_WRITE ;\n }\n return MSPACK_ERR_OK ;\n }"}
{"idx": 1928, "target": 0, "func": "static bool hyperv_enabled ( X86CPU * cpu ) {\n CPUState * cs = CPU ( cpu ) ;\n return kvm_check_extension ( cs -> kvm_state , KVM_CAP_HYPERV ) > 0 && ( hyperv_hypercall_available ( cpu ) || cpu -> hyperv_time || cpu -> hyperv_relaxed_timing || cpu -> hyperv_crash || cpu -> hyperv_reset || cpu -> hyperv_vpindex || cpu -> hyperv_runtime || cpu -> hyperv_synic || cpu -> hyperv_stimer || cpu -> hyperv_reenlightenment ) ;\n }"}
{"idx": 1929, "target": 0, "func": "int cpu_gen_code ( CPUArchState * env , TranslationBlock * tb , int * gen_code_size_ptr ) {\n TCGContext * s = & tcg_ctx ;\n uint8_t * gen_code_buf ;\n int gen_code_size ;\n # ifdef CONFIG_PROFILER int64_t ti ;\n # endif # ifdef CONFIG_PROFILER s -> tb_count1 ++ ;\n ti = profile_getclock ( ) ;\n # endif tcg_func_start ( s ) ;\n gen_intermediate_code ( env , tb ) ;\n gen_code_buf = tb -> tc_ptr ;\n tb -> tb_next_offset [ 0 ] = 0xffff ;\n tb -> tb_next_offset [ 1 ] = 0xffff ;\n s -> tb_next_offset = tb -> tb_next_offset ;\n # ifdef USE_DIRECT_JUMP s -> tb_jmp_offset = tb -> tb_jmp_offset ;\n s -> tb_next = NULL ;\n # else s -> tb_jmp_offset = NULL ;\n s -> tb_next = tb -> tb_next ;\n # endif # ifdef CONFIG_PROFILER s -> tb_count ++ ;\n s -> interm_time += profile_getclock ( ) - ti ;\n s -> code_time -= profile_getclock ( ) ;\n # endif gen_code_size = tcg_gen_code ( s , gen_code_buf ) ;\n * gen_code_size_ptr = gen_code_size ;\n # ifdef CONFIG_PROFILER s -> code_time += profile_getclock ( ) ;\n s -> code_in_len += tb -> size ;\n s -> code_out_len += gen_code_size ;\n # endif # ifdef DEBUG_DISAS if ( qemu_loglevel_mask ( CPU_LOG_TB_OUT_ASM ) ) {\n qemu_log ( \"OUT: [size=%d]\\n\" , * gen_code_size_ptr ) ;\n log_disas ( tb -> tc_ptr , * gen_code_size_ptr ) ;\n qemu_log ( \"\\n\" ) ;\n qemu_log_flush ( ) ;\n }\n # endif return 0 ;\n }"}
{"idx": 1930, "target": 0, "func": "static void alloc_mode_context ( VP9_COMMON * cm , int num_4x4_blk , PICK_MODE_CONTEXT * ctx ) {\n const int num_blk = ( num_4x4_blk < 4 ? 4 : num_4x4_blk ) ;\n const int num_pix = num_blk << 4 ;\n int i , k ;\n ctx -> num_4x4_blk = num_blk ;\n CHECK_MEM_ERROR ( cm , ctx -> zcoeff_blk , vpx_calloc ( num_4x4_blk , sizeof ( uint8_t ) ) ) ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n ++ i ) {\n for ( k = 0 ;\n k < 3 ;\n ++ k ) {\n CHECK_MEM_ERROR ( cm , ctx -> coeff [ i ] [ k ] , vpx_memalign ( 16 , num_pix * sizeof ( * ctx -> coeff [ i ] [ k ] ) ) ) ;\n CHECK_MEM_ERROR ( cm , ctx -> qcoeff [ i ] [ k ] , vpx_memalign ( 16 , num_pix * sizeof ( * ctx -> qcoeff [ i ] [ k ] ) ) ) ;\n CHECK_MEM_ERROR ( cm , ctx -> dqcoeff [ i ] [ k ] , vpx_memalign ( 16 , num_pix * sizeof ( * ctx -> dqcoeff [ i ] [ k ] ) ) ) ;\n CHECK_MEM_ERROR ( cm , ctx -> eobs [ i ] [ k ] , vpx_memalign ( 16 , num_pix * sizeof ( * ctx -> eobs [ i ] [ k ] ) ) ) ;\n ctx -> coeff_pbuf [ i ] [ k ] = ctx -> coeff [ i ] [ k ] ;\n ctx -> qcoeff_pbuf [ i ] [ k ] = ctx -> qcoeff [ i ] [ k ] ;\n ctx -> dqcoeff_pbuf [ i ] [ k ] = ctx -> dqcoeff [ i ] [ k ] ;\n ctx -> eobs_pbuf [ i ] [ k ] = ctx -> eobs [ i ] [ k ] ;\n }\n }\n }"}
{"idx": 1931, "target": 0, "func": "static void _tiffUnmapProc ( thandle_t fd , tdata_t base , toff_t size ) {\n }"}
{"idx": 1932, "target": 0, "func": "int dissect_h225_AlternateTransportAddresses ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_AlternateTransportAddresses , AlternateTransportAddresses_sequence ) ;\n return offset ;\n }"}
{"idx": 1933, "target": 0, "func": "int dissect_ber_sequence ( gboolean implicit_tag , asn1_ctx_t * actx , proto_tree * parent_tree , tvbuff_t * tvb , int offset , const ber_sequence_t * seq , gint hf_id , gint ett_id ) {\n gint8 classx ;\n gboolean pcx , ind = 0 , ind_field , imp_tag = FALSE ;\n gint32 tagx ;\n guint32 lenx ;\n proto_tree * tree = parent_tree ;\n proto_item * item = NULL ;\n proto_item * cause ;\n int end_offset = 0 ;\n int hoffset ;\n tvbuff_t * next_tvb ;\n # ifdef DEBUG_BER {\n const char * name ;\n header_field_info * hfinfo ;\n if ( hf_id >= 0 ) {\n hfinfo = proto_registrar_get_nth ( hf_id ) ;\n name = hfinfo -> name ;\n }\n else {\n name = \"unnamed\" ;\n }\n if ( tvb_reported_length_remaining ( tvb , offset ) > 3 ) {\n printf ( \"SEQUENCE dissect_ber_sequence(%s) entered offset:%d len:%d %02x:%02x:%02x\\n\" , name , offset , tvb_reported_length_remaining ( tvb , offset ) , tvb_get_guint8 ( tvb , offset ) , tvb_get_guint8 ( tvb , offset + 1 ) , tvb_get_guint8 ( tvb , offset + 2 ) ) ;\n }\n else {\n printf ( \"SEQUENCE dissect_ber_sequence(%s) entered\\n\" , name ) ;\n }\n }\n # endif hoffset = offset ;\n if ( ! implicit_tag ) {\n offset = get_ber_identifier ( tvb , offset , NULL , NULL , NULL ) ;\n offset = get_ber_length ( tvb , offset , & lenx , NULL ) ;\n }\n else {\n lenx = tvb_reported_length_remaining ( tvb , offset ) ;\n end_offset = offset + lenx ;\n }\n if ( hf_id >= 0 ) {\n if ( parent_tree ) {\n item = proto_tree_add_item ( parent_tree , hf_id , tvb , hoffset , lenx + offset - hoffset , ENC_BIG_ENDIAN ) ;\n tree = proto_item_add_subtree ( item , ett_id ) ;\n }\n }\n offset = hoffset ;\n if ( ! implicit_tag ) {\n offset = dissect_ber_identifier ( actx -> pinfo , tree , tvb , offset , & classx , & pcx , & tagx ) ;\n offset = dissect_ber_length ( actx -> pinfo , tree , tvb , offset , & lenx , & ind ) ;\n if ( ind ) {\n end_offset = offset + lenx - 2 ;\n }\n else {\n end_offset = offset + lenx ;\n }\n if ( ( classx != BER_CLASS_APP ) && ( classx != BER_CLASS_PRI ) ) {\n if ( ! pcx || ( ! implicit_tag && ( ( classx != BER_CLASS_UNI ) || ( tagx != BER_UNI_TAG_SEQUENCE ) ) ) ) {\n tvb_ensure_bytes_exist ( tvb , hoffset , 2 ) ;\n cause = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset , lenx , \"sequence_expected\" , \"Sequence expected but class:%s(%d) %s tag:%d was unexpected\" , val_to_str_const ( classx , ber_class_codes , \"Unknown\" ) , classx , pcx ? ber_pc_codes_short . true_string : ber_pc_codes_short . false_string , tagx ) ;\n expert_add_info ( actx -> pinfo , cause , & ei_ber_expected_sequence ) ;\n if ( decode_unexpected ) {\n proto_tree * unknown_tree = proto_item_add_subtree ( cause , ett_ber_unknown ) ;\n dissect_unknown_ber ( actx -> pinfo , tvb , hoffset , unknown_tree ) ;\n }\n return end_offset ;\n }\n }\n }\n if ( offset == end_offset ) {\n proto_item_append_text ( item , \" [0 length]\" ) ;\n }\n while ( offset < end_offset ) {\n gint8 ber_class ;\n gboolean pc ;\n gint32 tag ;\n guint32 len ;\n int eoffset , count ;\n if ( ( tvb_get_guint8 ( tvb , offset ) == 0 ) && ( tvb_get_guint8 ( tvb , offset + 1 ) == 0 ) ) {\n offset = dissect_ber_identifier ( actx -> pinfo , tree , tvb , offset , & ber_class , & pc , & tag ) ;\n dissect_ber_length ( actx -> pinfo , tree , tvb , offset , & len , & ind ) ;\n proto_item_append_text ( item , \" 0 items\" ) ;\n return end_offset ;\n }\n hoffset = offset ;\n offset = get_ber_identifier ( tvb , offset , & ber_class , & pc , & tag ) ;\n offset = get_ber_length ( tvb , offset , & len , & ind_field ) ;\n eoffset = offset + len ;\n if ( eoffset <= hoffset ) THROW ( ReportedBoundsError ) ;\n ber_sequence_try_again : if ( ! seq -> func ) {\n offset = dissect_ber_identifier ( actx -> pinfo , tree , tvb , hoffset , NULL , NULL , NULL ) ;\n offset = dissect_ber_length ( actx -> pinfo , tree , tvb , offset , NULL , NULL ) ;\n cause = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset , len , \"unknown_field\" , \"This field lies beyond the end of the known sequence definition.\" ) ;\n expert_add_info ( actx -> pinfo , cause , & ei_ber_unknown_field_sequence ) ;\n if ( decode_unexpected ) {\n proto_tree * unknown_tree = proto_item_add_subtree ( cause , ett_ber_unknown ) ;\n dissect_unknown_ber ( actx -> pinfo , tvb , hoffset , unknown_tree ) ;\n }\n offset = eoffset ;\n continue ;\n }\n if ( ( ( seq -> ber_class == BER_CLASS_CON ) || ( seq -> ber_class == BER_CLASS_APP ) || ( seq -> ber_class == BER_CLASS_PRI ) ) && ( ! ( seq -> flags & BER_FLAGS_NOOWNTAG ) ) ) {\n if ( ( seq -> ber_class != BER_CLASS_ANY ) && ( seq -> tag != - 1 ) && ( ( seq -> ber_class != ber_class ) || ( seq -> tag != tag ) ) ) {\n if ( seq -> flags & BER_FLAGS_OPTIONAL ) {\n seq ++ ;\n goto ber_sequence_try_again ;\n }\n offset = dissect_ber_identifier ( actx -> pinfo , tree , tvb , hoffset , NULL , NULL , NULL ) ;\n offset = dissect_ber_length ( actx -> pinfo , tree , tvb , offset , NULL , NULL ) ;\n if ( seq -> ber_class == BER_CLASS_UNI ) {\n cause = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset , len , \"wrong_field\" , \"Wrong field in SEQUENCE expected class:%s(%d) tag:%d (%s) but found class:%s(%d) tag:%d\" , val_to_str_const ( seq -> ber_class , ber_class_codes , \"Unknown\" ) , seq -> ber_class , seq -> tag , val_to_str_ext_const ( seq -> tag , & ber_uni_tag_codes_ext , \"Unknown\" ) , val_to_str_const ( ber_class , ber_class_codes , \"Unknown\" ) , ber_class , tag ) ;\n }\n else {\n cause = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset , len , \"wrong_field\" , \"Wrong field in SEQUENCE expected class:%s(%d) tag:%d but found class:%s(%d) tag:%d\" , val_to_str_const ( seq -> ber_class , ber_class_codes , \"Unknown\" ) , seq -> ber_class , seq -> tag , val_to_str_const ( ber_class , ber_class_codes , \"Unknown\" ) , ber_class , tag ) ;\n }\n expert_add_info ( actx -> pinfo , cause , & ei_ber_sequence_field_wrong ) ;\n if ( decode_unexpected ) {\n proto_tree * unknown_tree = proto_item_add_subtree ( cause , ett_ber_unknown ) ;\n dissect_unknown_ber ( actx -> pinfo , tvb , hoffset , unknown_tree ) ;\n }\n seq ++ ;\n offset = eoffset ;\n continue ;\n }\n }\n else if ( ! ( seq -> flags & BER_FLAGS_NOTCHKTAG ) ) {\n if ( ( seq -> ber_class != BER_CLASS_ANY ) && ( seq -> tag != - 1 ) && ( ( seq -> ber_class != ber_class ) || ( seq -> tag != tag ) ) ) {\n if ( seq -> flags & BER_FLAGS_OPTIONAL ) {\n seq ++ ;\n goto ber_sequence_try_again ;\n }\n offset = dissect_ber_identifier ( actx -> pinfo , tree , tvb , hoffset , NULL , NULL , NULL ) ;\n offset = dissect_ber_length ( actx -> pinfo , tree , tvb , offset , NULL , NULL ) ;\n if ( seq -> ber_class == BER_CLASS_UNI ) {\n cause = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset , len , \"wrong_field\" , \"Wrong field in SEQUENCE expected class:%s(%d) tag:%d(%s) but found class:%s(%d) tag:%d\" , val_to_str_const ( seq -> ber_class , ber_class_codes , \"Unknown\" ) , seq -> ber_class , seq -> tag , val_to_str_ext_const ( seq -> tag , & ber_uni_tag_codes_ext , \"Unknown\" ) , val_to_str_const ( ber_class , ber_class_codes , \"Unknown\" ) , ber_class , tag ) ;\n }\n else {\n cause = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset , len , \"wrong_field\" , \"Wrong field in SEQUENCE expected class:%s(%d) tag:%d but found class:%s(%d) tag:%d\" , val_to_str_const ( seq -> ber_class , ber_class_codes , \"Unknown\" ) , seq -> ber_class , seq -> tag , val_to_str_const ( ber_class , ber_class_codes , \"Unknown\" ) , ber_class , tag ) ;\n }\n expert_add_info ( actx -> pinfo , cause , & ei_ber_sequence_field_wrong ) ;\n if ( decode_unexpected ) {\n proto_tree * unknown_tree = proto_item_add_subtree ( cause , ett_ber_unknown ) ;\n dissect_unknown_ber ( actx -> pinfo , tvb , hoffset , unknown_tree ) ;\n }\n seq ++ ;\n offset = eoffset ;\n continue ;\n }\n }\n if ( ! ( seq -> flags & BER_FLAGS_NOOWNTAG ) ) {\n if ( ind_field && ( len == 2 ) ) {\n next_tvb = ber_tvb_new_subset_length ( tvb , offset , len ) ;\n hoffset = eoffset ;\n }\n else {\n hoffset = dissect_ber_identifier ( actx -> pinfo , tree , tvb , hoffset , NULL , NULL , NULL ) ;\n hoffset = dissect_ber_length ( actx -> pinfo , tree , tvb , hoffset , NULL , NULL ) ;\n next_tvb = ber_tvb_new_subset_length ( tvb , hoffset , eoffset - hoffset - ( 2 * ind_field ) ) ;\n }\n }\n else {\n next_tvb = ber_tvb_new_subset_length ( tvb , hoffset , eoffset - hoffset ) ;\n }\n # if 0 if ( ( eoffset - hoffset ) > length_remaining ) {\n next_tvb = tvb_new_subset_remaining ( tvb , hoffset ) ;\n }\n else {\n }\n # endif # ifdef DEBUG_BER {\n const char * name ;\n header_field_info * hfinfo ;\n if ( hf_id >= 0 ) {\n hfinfo = proto_registrar_get_nth ( hf_id ) ;\n name = hfinfo -> name ;\n }\n else {\n name = \"unnamed\" ;\n }\n if ( tvb_reported_length_remaining ( next_tvb , 0 ) > 3 ) {\n printf ( \"SEQUENCE dissect_ber_sequence(%s) calling subdissector offset:%d len:%d %02x:%02x:%02x\\n\" , name , offset , tvb_reported_length_remaining ( next_tvb , 0 ) , tvb_get_guint8 ( next_tvb , 0 ) , tvb_get_guint8 ( next_tvb , 1 ) , tvb_get_guint8 ( next_tvb , 2 ) ) ;\n }\n else {\n printf ( \"SEQUENCE dissect_ber_sequence(%s) calling subdissector\\n\" , name ) ;\n }\n }\n # endif if ( next_tvb == NULL ) {\n THROW ( ReportedBoundsError ) ;\n }\n imp_tag = FALSE ;\n if ( seq -> flags & BER_FLAGS_IMPLTAG ) {\n imp_tag = TRUE ;\n }\n count = seq -> func ( imp_tag , next_tvb , 0 , actx , tree , * seq -> p_id ) ;\n # ifdef DEBUG_BER {\n const char * name ;\n header_field_info * hfinfo ;\n if ( hf_id >= 0 ) {\n hfinfo = proto_registrar_get_nth ( hf_id ) ;\n name = hfinfo -> name ;\n }\n else {\n name = \"unnamed\" ;\n }\n printf ( \"SEQUENCE dissect_ber_sequence(%s) subdissector ate %d bytes\\n\" , name , count ) ;\n }\n # endif if ( ( len != 0 ) && ( count == 0 ) && ( seq -> flags & BER_FLAGS_OPTIONAL ) ) {\n seq ++ ;\n goto ber_sequence_try_again ;\n }\n offset = eoffset ;\n if ( ! ( seq -> flags & BER_FLAGS_NOOWNTAG ) ) {\n if ( ( ind_field == 1 ) && ( len > 2 ) ) {\n if ( show_internal_ber_fields ) {\n proto_tree_add_item ( tree , hf_ber_seq_field_eoc , tvb , offset - 2 , 2 , ENC_NA ) ;\n }\n }\n }\n seq ++ ;\n }\n if ( offset != end_offset ) {\n tvb_ensure_bytes_exist ( tvb , offset - 2 , 2 ) ;\n cause = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset - 2 , 2 , \"illegal_length\" , \"Sequence ate %d too many bytes\" , offset - end_offset ) ;\n expert_add_info_format ( actx -> pinfo , cause , & ei_ber_error_length , \"BER Error: too many bytes in Sequence\" ) ;\n }\n if ( ind ) {\n end_offset += 2 ;\n if ( show_internal_ber_fields ) {\n proto_tree_add_item ( tree , hf_ber_seq_eoc , tvb , end_offset - 2 , 2 , ENC_NA ) ;\n }\n }\n return end_offset ;\n }"}
{"idx": 1934, "target": 0, "func": "pdf_xobject * pdf_keep_xobject ( fz_context * ctx , pdf_xobject * xobj ) {\n return fz_keep_storable ( ctx , & xobj -> storable ) ;\n }"}
{"idx": 1935, "target": 0, "func": "static void pcnet_csr_writew ( PCNetState * s , uint32_t rap , uint32_t new_value ) {\n uint16_t val = new_value ;\n # ifdef PCNET_DEBUG_CSR printf ( \"pcnet_csr_writew rap=%d val=0x%04x\\n\" , rap , val ) ;\n # endif switch ( rap ) {\n case 0 : s -> csr [ 0 ] &= ~ ( val & 0x7f00 ) ;\n s -> csr [ 0 ] = ( s -> csr [ 0 ] & ~ 0x0040 ) | ( val & 0x0048 ) ;\n val = ( val & 0x007f ) | ( s -> csr [ 0 ] & 0x7f00 ) ;\n if ( ( val & 7 ) == 7 ) {\n val &= ~ 3 ;\n }\n if ( ! CSR_STOP ( s ) && ( val & 4 ) ) {\n pcnet_stop ( s ) ;\n }\n if ( ! CSR_INIT ( s ) && ( val & 1 ) ) {\n pcnet_init ( s ) ;\n }\n if ( ! CSR_STRT ( s ) && ( val & 2 ) ) {\n pcnet_start ( s ) ;\n }\n if ( CSR_TDMD ( s ) ) {\n pcnet_transmit ( s ) ;\n }\n return ;\n case 1 : case 2 : case 8 : case 9 : case 10 : case 11 : case 12 : case 13 : case 14 : case 15 : case 18 : case 19 : case 20 : case 21 : case 22 : case 23 : case 24 : case 25 : case 26 : case 27 : case 28 : case 29 : case 30 : case 31 : case 32 : case 33 : case 34 : case 35 : case 36 : case 37 : case 38 : case 39 : case 40 : case 41 : case 42 : case 43 : case 44 : case 45 : case 46 : case 47 : case 72 : case 74 : break ;\n case 76 : case 78 : val = ( val > 0 ) ? val : 512 ;\n break ;\n case 112 : if ( CSR_STOP ( s ) || CSR_SPND ( s ) ) {\n break ;\n }\n return ;\n case 3 : break ;\n case 4 : s -> csr [ 4 ] &= ~ ( val & 0x026a ) ;\n val &= ~ 0x026a ;\n val |= s -> csr [ 4 ] & 0x026a ;\n break ;\n case 5 : s -> csr [ 5 ] &= ~ ( val & 0x0a90 ) ;\n val &= ~ 0x0a90 ;\n val |= s -> csr [ 5 ] & 0x0a90 ;\n break ;\n case 16 : pcnet_csr_writew ( s , 1 , val ) ;\n return ;\n case 17 : pcnet_csr_writew ( s , 2 , val ) ;\n return ;\n case 58 : pcnet_bcr_writew ( s , BCR_SWS , val ) ;\n break ;\n default : return ;\n }\n s -> csr [ rap ] = val ;\n }"}
{"idx": 1936, "target": 1, "func": "static bool get_variable_range ( PlannerInfo * root , VariableStatData * vardata , Oid sortop , Datum * min , Datum * max ) {\n Datum tmin = 0 ;\n Datum tmax = 0 ;\n bool have_data = false ;\n int16 typLen ;\n bool typByVal ;\n Datum * values ;\n int nvalues ;\n int i ;\n # ifdef NOT_USED if ( get_actual_variable_range ( root , vardata , sortop , min , max ) ) return true ;\n # endif if ( ! HeapTupleIsValid ( vardata -> statsTuple ) ) {\n return false ;\n }\n get_typlenbyval ( vardata -> atttype , & typLen , & typByVal ) ;\n if ( get_attstatsslot ( vardata -> statsTuple , vardata -> atttype , vardata -> atttypmod , STATISTIC_KIND_HISTOGRAM , sortop , NULL , & values , & nvalues , NULL , NULL ) ) {\n if ( nvalues > 0 ) {\n tmin = datumCopy ( values [ 0 ] , typByVal , typLen ) ;\n tmax = datumCopy ( values [ nvalues - 1 ] , typByVal , typLen ) ;\n have_data = true ;\n }\n free_attstatsslot ( vardata -> atttype , values , nvalues , NULL , 0 ) ;\n }\n else if ( get_attstatsslot ( vardata -> statsTuple , vardata -> atttype , vardata -> atttypmod , STATISTIC_KIND_HISTOGRAM , InvalidOid , NULL , & values , & nvalues , NULL , NULL ) ) {\n free_attstatsslot ( vardata -> atttype , values , nvalues , NULL , 0 ) ;\n return false ;\n }\n if ( get_attstatsslot ( vardata -> statsTuple , vardata -> atttype , vardata -> atttypmod , STATISTIC_KIND_MCV , InvalidOid , NULL , & values , & nvalues , NULL , NULL ) ) {\n bool tmin_is_mcv = false ;\n bool tmax_is_mcv = false ;\n FmgrInfo opproc ;\n fmgr_info ( get_opcode ( sortop ) , & opproc ) ;\n for ( i = 0 ;\n i < nvalues ;\n i ++ ) {\n if ( ! have_data ) {\n tmin = tmax = values [ i ] ;\n tmin_is_mcv = tmax_is_mcv = have_data = true ;\n continue ;\n }\n if ( DatumGetBool ( FunctionCall2Coll ( & opproc , DEFAULT_COLLATION_OID , values [ i ] , tmin ) ) ) {\n tmin = values [ i ] ;\n tmin_is_mcv = true ;\n }\n if ( DatumGetBool ( FunctionCall2Coll ( & opproc , DEFAULT_COLLATION_OID , tmax , values [ i ] ) ) ) {\n tmax = values [ i ] ;\n tmax_is_mcv = true ;\n }\n }\n if ( tmin_is_mcv ) tmin = datumCopy ( tmin , typByVal , typLen ) ;\n if ( tmax_is_mcv ) tmax = datumCopy ( tmax , typByVal , typLen ) ;\n free_attstatsslot ( vardata -> atttype , values , nvalues , NULL , 0 ) ;\n }\n * min = tmin ;\n * max = tmax ;\n return have_data ;\n }"}
{"idx": 1937, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ProfileBrowserTest , DISABLED_ProfileReadmeCreated ) {\n base : : ScopedTempDir temp_dir ;\n ASSERT_TRUE ( temp_dir . CreateUniqueTempDir ( ) ) ;\n MockProfileDelegate delegate ;\n EXPECT_CALL ( delegate , OnProfileCreated ( testing : : NotNull ( ) , true , true ) ) ;\n {\n content : : WindowedNotificationObserver observer ( chrome : : NOTIFICATION_PROFILE_CREATED , content : : NotificationService : : AllSources ( ) ) ;\n std : : unique_ptr < Profile > profile ( CreateProfile ( temp_dir . path ( ) , & delegate , Profile : : CREATE_MODE_ASYNCHRONOUS ) ) ;\n observer . Wait ( ) ;\n EXPECT_TRUE ( base : : PathExists ( temp_dir . path ( ) . Append ( chrome : : kReadmeFilename ) ) ) ;\n }\n FlushIoTaskRunnerAndSpinThreads ( ) ;\n }"}
{"idx": 1938, "target": 0, "func": "TEST_F ( HistoryQuickProviderTest , WordBoundariesWithPunctuationMatch ) {\n std : : vector < std : : string > expected_urls ;\n expected_urls . push_back ( \"http://popularsitewithpathonly.com/moo\" ) ;\n RunTest ( ASCIIToUTF16 ( \"/moo\" ) , false , expected_urls , false , ASCIIToUTF16 ( \"popularsitewithpathonly.com/moo\" ) , base : : string16 ( ) ) ;\n }"}
{"idx": 1939, "target": 0, "func": "static void pack_mb_tokens ( vp9_writer * w , TOKENEXTRA * * tp , const TOKENEXTRA * const stop ) {\n TOKENEXTRA * p = * tp ;\n while ( p < stop && p -> token != EOSB_TOKEN ) {\n const int t = p -> token ;\n const struct vp9_token * const a = & vp9_coef_encodings [ t ] ;\n const vp9_extra_bit * const b = & vp9_extra_bits [ t ] ;\n int i = 0 ;\n int v = a -> value ;\n int n = a -> len ;\n if ( p -> skip_eob_node ) {\n n -= p -> skip_eob_node ;\n i = 2 * p -> skip_eob_node ;\n }\n if ( t >= TWO_TOKEN && t < EOB_TOKEN ) {\n int len = UNCONSTRAINED_NODES - p -> skip_eob_node ;\n int bits = v >> ( n - len ) ;\n vp9_write_tree ( w , vp9_coef_tree , p -> context_tree , bits , len , i ) ;\n vp9_write_tree ( w , vp9_coef_con_tree , vp9_pareto8_full [ p -> context_tree [ PIVOT_NODE ] - 1 ] , v , n - len , 0 ) ;\n }\n else {\n vp9_write_tree ( w , vp9_coef_tree , p -> context_tree , v , n , i ) ;\n }\n if ( b -> base_val ) {\n const int e = p -> extra , l = b -> len ;\n if ( l ) {\n const unsigned char * pb = b -> prob ;\n int v = e >> 1 ;\n int n = l ;\n int i = 0 ;\n do {\n const int bb = ( v >> -- n ) & 1 ;\n vp9_write ( w , bb , pb [ i >> 1 ] ) ;\n i = b -> tree [ i + bb ] ;\n }\n while ( n ) ;\n }\n vp9_write_bit ( w , e & 1 ) ;\n }\n ++ p ;\n }\n * tp = p + ( p -> token == EOSB_TOKEN ) ;\n }"}
{"idx": 1940, "target": 0, "func": "void Curl_formclean ( struct FormData * * form_ptr ) {\n struct FormData * next , * form ;\n form = * form_ptr ;\n if ( ! form ) return ;\n do {\n next = form -> next ;\n if ( form -> type <= FORM_CONTENT ) free ( form -> line ) ;\n free ( form ) ;\n }\n while ( ( form = next ) != NULL ) ;\n * form_ptr = NULL ;\n }"}
{"idx": 1941, "target": 0, "func": "void sdp_calls_init_tap ( void ) {\n GString * error_string ;\n if ( have_sdp_tap_listener == FALSE ) {\n error_string = register_tap_listener ( \"sdp\" , & ( the_tapinfo_struct . sdp_dummy ) , NULL , 0 , voip_calls_dlg_reset , SDPcalls_packet , voip_calls_dlg_draw ) ;\n if ( error_string != NULL ) {\n simple_dialog ( ESD_TYPE_ERROR , ESD_BTN_OK , \"%s\" , error_string -> str ) ;\n g_string_free ( error_string , TRUE ) ;\n exit ( 1 ) ;\n }\n have_sdp_tap_listener = TRUE ;\n }\n }"}
{"idx": 1942, "target": 1, "func": "static void initial_reordering_symbol_cluster ( const hb_ot_shape_plan_t * plan HB_UNUSED , hb_face_t * face HB_UNUSED , hb_buffer_t * buffer HB_UNUSED , unsigned int start HB_UNUSED , unsigned int end HB_UNUSED ) {\n }"}
{"idx": 1943, "target": 1, "func": "static void ppp_hdlc ( netdissect_options * ndo , const u_char * p , int length ) {\n u_char * b , * s , * t , c ;\n int i , proto ;\n const void * se ;\n if ( length <= 0 ) return ;\n b = ( uint8_t * ) malloc ( length ) ;\n if ( b == NULL ) return ;\n for ( s = ( u_char * ) p , t = b , i = length ;\n i > 0 ;\n i -- ) {\n c = * s ++ ;\n if ( c == 0x7d ) {\n if ( i > 1 ) {\n i -- ;\n c = * s ++ ^ 0x20 ;\n }\n else continue ;\n }\n * t ++ = c ;\n }\n se = ndo -> ndo_snapend ;\n ndo -> ndo_snapend = t ;\n length = t - b ;\n if ( length < 1 ) goto trunc ;\n proto = * b ;\n switch ( proto ) {\n case PPP_IP : ip_print ( ndo , b + 1 , length - 1 ) ;\n goto cleanup ;\n case PPP_IPV6 : ip6_print ( ndo , b + 1 , length - 1 ) ;\n goto cleanup ;\n default : break ;\n }\n if ( length < 2 ) goto trunc ;\n proto = EXTRACT_16BITS ( b ) ;\n switch ( proto ) {\n case ( PPP_ADDRESS << 8 | PPP_CONTROL ) : if ( length < 4 ) goto trunc ;\n proto = EXTRACT_16BITS ( b + 2 ) ;\n handle_ppp ( ndo , proto , b + 4 , length - 4 ) ;\n break ;\n default : handle_ppp ( ndo , proto , b + 2 , length - 2 ) ;\n break ;\n }\n cleanup : ndo -> ndo_snapend = se ;\n free ( b ) ;\n return ;\n trunc : ndo -> ndo_snapend = se ;\n free ( b ) ;\n ND_PRINT ( ( ndo , \"[|ppp]\" ) ) ;\n }"}
{"idx": 1944, "target": 1, "func": "static void encode_nonrd_sb_row ( VP9_COMP * cpi , const TileInfo * const tile , int mi_row , TOKENEXTRA * * tp ) {\n SPEED_FEATURES * const sf = & cpi -> sf ;\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCK * const x = & cpi -> mb ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n int mi_col ;\n vpx_memset ( & xd -> left_context , 0 , sizeof ( xd -> left_context ) ) ;\n vpx_memset ( xd -> left_seg_context , 0 , sizeof ( xd -> left_seg_context ) ) ;\n for ( mi_col = tile -> mi_col_start ;\n mi_col < tile -> mi_col_end ;\n mi_col += MI_BLOCK_SIZE ) {\n int dummy_rate = 0 ;\n int64_t dummy_dist = 0 ;\n const int idx_str = cm -> mi_stride * mi_row + mi_col ;\n MODE_INFO * * mi = cm -> mi_grid_visible + idx_str ;\n MODE_INFO * * prev_mi = cm -> prev_mi_grid_visible + idx_str ;\n BLOCK_SIZE bsize ;\n x -> in_static_area = 0 ;\n x -> source_variance = UINT_MAX ;\n vp9_zero ( x -> pred_mv ) ;\n switch ( sf -> partition_search_type ) {\n case VAR_BASED_PARTITION : choose_partitioning ( cpi , tile , mi_row , mi_col ) ;\n nonrd_use_partition ( cpi , tile , mi , tp , mi_row , mi_col , BLOCK_64X64 , 1 , & dummy_rate , & dummy_dist , cpi -> pc_root ) ;\n break ;\n case SOURCE_VAR_BASED_PARTITION : set_source_var_based_partition ( cpi , tile , mi , mi_row , mi_col ) ;\n nonrd_use_partition ( cpi , tile , mi , tp , mi_row , mi_col , BLOCK_64X64 , 1 , & dummy_rate , & dummy_dist , cpi -> pc_root ) ;\n break ;\n case VAR_BASED_FIXED_PARTITION : case FIXED_PARTITION : bsize = sf -> partition_search_type == FIXED_PARTITION ? sf -> always_this_block_size : get_nonrd_var_based_fixed_partition ( cpi , mi_row , mi_col ) ;\n set_fixed_partitioning ( cpi , tile , mi , mi_row , mi_col , bsize ) ;\n nonrd_use_partition ( cpi , tile , mi , tp , mi_row , mi_col , BLOCK_64X64 , 1 , & dummy_rate , & dummy_dist , cpi -> pc_root ) ;\n break ;\n case REFERENCE_PARTITION : if ( sf -> partition_check || ! ( x -> in_static_area = is_background ( cpi , tile , mi_row , mi_col ) ) ) {\n set_modeinfo_offsets ( cm , xd , mi_row , mi_col ) ;\n auto_partition_range ( cpi , tile , mi_row , mi_col , & sf -> min_partition_size , & sf -> max_partition_size ) ;\n nonrd_pick_partition ( cpi , tile , tp , mi_row , mi_col , BLOCK_64X64 , & dummy_rate , & dummy_dist , 1 , INT64_MAX , cpi -> pc_root ) ;\n }\n else {\n copy_partitioning ( cm , mi , prev_mi ) ;\n nonrd_use_partition ( cpi , tile , mi , tp , mi_row , mi_col , BLOCK_64X64 , 1 , & dummy_rate , & dummy_dist , cpi -> pc_root ) ;\n }\n break ;\n default : assert ( 0 ) ;\n break ;\n }\n }\n }"}
{"idx": 1945, "target": 0, "func": "static uint32_t PPC_prep_io_readl ( void * opaque , hwaddr addr ) {\n sysctrl_t * sysctrl = opaque ;\n uint32_t ret ;\n addr = prep_IO_address ( sysctrl , addr ) ;\n ret = cpu_inl ( addr ) ;\n PPC_IO_DPRINTF ( \"0x\" TARGET_FMT_plx \" <= 0x%08\" PRIx32 \"\\n\" , addr , ret ) ;\n return ret ;\n }"}
{"idx": 1946, "target": 0, "func": "static int fts_build_mail_header ( struct fts_mail_build_context * ctx , const struct message_block * block ) {\n const struct message_header_line * hdr = block -> hdr ;\n struct fts_backend_build_key key ;\n int ret ;\n if ( hdr -> eoh ) return 0 ;\n i_zero ( & key ) ;\n key . uid = ctx -> mail -> uid ;\n key . type = block -> part -> physical_pos == 0 ? FTS_BACKEND_BUILD_KEY_HDR : FTS_BACKEND_BUILD_KEY_MIME_HDR ;\n key . part = block -> part ;\n key . hdr_name = hdr -> name ;\n if ( ( ctx -> update_ctx -> backend -> flags & FTS_BACKEND_FLAG_TOKENIZED_INPUT ) != 0 ) fts_build_tokenized_hdr_update_lang ( ctx , hdr ) ;\n if ( ! fts_backend_update_set_build_key ( ctx -> update_ctx , & key ) ) return 0 ;\n if ( ! message_header_is_address ( hdr -> name ) ) {\n ret = fts_build_unstructured_header ( ctx , hdr ) ;\n }\n else T_BEGIN {\n struct message_address * addr ;\n string_t * str ;\n addr = message_address_parse ( pool_datastack_create ( ) , hdr -> full_value , hdr -> full_value_len , UINT_MAX , FALSE ) ;\n str = t_str_new ( hdr -> full_value_len ) ;\n message_address_write ( str , addr ) ;\n ret = fts_build_data ( ctx , str_data ( str ) , str_len ( str ) , TRUE ) ;\n }\n T_END ;\n if ( ( ctx -> update_ctx -> backend -> flags & FTS_BACKEND_FLAG_TOKENIZED_INPUT ) != 0 ) {\n struct fts_user_language * prev_lang = ctx -> cur_user_lang ;\n fts_mail_build_ctx_set_lang ( ctx , fts_user_get_data_lang ( ctx -> update_ctx -> backend -> ns -> user ) ) ;\n key . hdr_name = \"\" ;\n if ( fts_backend_update_set_build_key ( ctx -> update_ctx , & key ) ) {\n if ( fts_build_data ( ctx , ( const void * ) hdr -> name , strlen ( hdr -> name ) , TRUE ) < 0 ) ret = - 1 ;\n }\n fts_mail_build_ctx_set_lang ( ctx , prev_lang ) ;\n }\n return ret ;\n }"}
{"idx": 1947, "target": 0, "func": "VirtIOS390Device * s390_virtio_bus_find_mem ( VirtIOS390Bus * bus , ram_addr_t mem ) {\n VirtIOS390Device * _dev ;\n DeviceState * dev ;\n QLIST_FOREACH ( dev , & bus -> bus . children , sibling ) {\n _dev = ( VirtIOS390Device * ) dev ;\n if ( _dev -> dev_offs == mem ) {\n return _dev ;\n }\n }\n return NULL ;\n }"}
{"idx": 1948, "target": 0, "func": "static int kex_string_pair ( unsigned char * * sp , unsigned char * data , size_t data_len , size_t * lenp , unsigned char * * strp ) {\n unsigned char * s = * sp ;\n * lenp = _libssh2_ntohu32 ( s ) ;\n if ( * lenp > ( data_len - ( s - data ) - 4 ) ) return 1 ;\n * strp = s + 4 ;\n s += 4 + * lenp ;\n * sp = s ;\n return 0 ;\n }"}
{"idx": 1949, "target": 0, "func": "int ff_dct_quantize_c ( MpegEncContext * s , int16_t * block , int n , int qscale , int * overflow ) {\n int i , j , level , last_non_zero , q , start_i ;\n const int * qmat ;\n const uint8_t * scantable = s -> intra_scantable . scantable ;\n int bias ;\n int max = 0 ;\n unsigned int threshold1 , threshold2 ;\n s -> dsp . fdct ( block ) ;\n if ( s -> dct_error_sum ) s -> denoise_dct ( s , block ) ;\n if ( s -> mb_intra ) {\n if ( ! s -> h263_aic ) {\n if ( n < 4 ) q = s -> y_dc_scale ;\n else q = s -> c_dc_scale ;\n q = q << 3 ;\n }\n else q = 1 << 3 ;\n block [ 0 ] = ( block [ 0 ] + ( q >> 1 ) ) / q ;\n start_i = 1 ;\n last_non_zero = 0 ;\n qmat = s -> q_intra_matrix [ qscale ] ;\n bias = s -> intra_quant_bias << ( QMAT_SHIFT - QUANT_BIAS_SHIFT ) ;\n }\n else {\n start_i = 0 ;\n last_non_zero = - 1 ;\n qmat = s -> q_inter_matrix [ qscale ] ;\n bias = s -> inter_quant_bias << ( QMAT_SHIFT - QUANT_BIAS_SHIFT ) ;\n }\n threshold1 = ( 1 << QMAT_SHIFT ) - bias - 1 ;\n threshold2 = ( threshold1 << 1 ) ;\n for ( i = 63 ;\n i >= start_i ;\n i -- ) {\n j = scantable [ i ] ;\n level = block [ j ] * qmat [ j ] ;\n if ( ( ( unsigned ) ( level + threshold1 ) ) > threshold2 ) {\n last_non_zero = i ;\n break ;\n }\n else {\n block [ j ] = 0 ;\n }\n }\n for ( i = start_i ;\n i <= last_non_zero ;\n i ++ ) {\n j = scantable [ i ] ;\n level = block [ j ] * qmat [ j ] ;\n if ( ( ( unsigned ) ( level + threshold1 ) ) > threshold2 ) {\n if ( level > 0 ) {\n level = ( bias + level ) >> QMAT_SHIFT ;\n block [ j ] = level ;\n }\n else {\n level = ( bias - level ) >> QMAT_SHIFT ;\n block [ j ] = - level ;\n }\n max |= level ;\n }\n else {\n block [ j ] = 0 ;\n }\n }\n * overflow = s -> max_qcoeff < max ;\n if ( s -> dsp . idct_permutation_type != FF_NO_IDCT_PERM ) ff_block_permute ( block , s -> dsp . idct_permutation , scantable , last_non_zero ) ;\n return last_non_zero ;\n }"}
{"idx": 1950, "target": 0, "func": "static void gtkui_connections_attach ( void ) {\n gtkui_kill_connections ( ) ;\n gtkui_show_connections ( ) ;\n }"}
{"idx": 1951, "target": 0, "func": "static inline void vc1_b_mc ( VC1Context * v , int dmv_x [ 2 ] , int dmv_y [ 2 ] , int direct , int mode ) {\n if ( v -> use_ic ) {\n v -> mv_mode2 = v -> mv_mode ;\n v -> mv_mode = MV_PMODE_INTENSITY_COMP ;\n }\n if ( direct ) {\n vc1_mc_1mv ( v , 0 ) ;\n vc1_interp_mc ( v ) ;\n if ( v -> use_ic ) v -> mv_mode = v -> mv_mode2 ;\n return ;\n }\n if ( mode == BMV_TYPE_INTERPOLATED ) {\n vc1_mc_1mv ( v , 0 ) ;\n vc1_interp_mc ( v ) ;\n if ( v -> use_ic ) v -> mv_mode = v -> mv_mode2 ;\n return ;\n }\n if ( v -> use_ic && ( mode == BMV_TYPE_BACKWARD ) ) v -> mv_mode = v -> mv_mode2 ;\n vc1_mc_1mv ( v , ( mode == BMV_TYPE_BACKWARD ) ) ;\n if ( v -> use_ic ) v -> mv_mode = v -> mv_mode2 ;\n }"}
{"idx": 1952, "target": 0, "func": "static void dtap_tp_reset_ue_positioning_stored_information ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_len = len ;\n curr_offset = offset ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_TP_UE_POSITIONING_TECHNOLOGY , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 1953, "target": 0, "func": "static int dissect_pvfs2_request ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo , guint32 server_op ) {\n proto_tree_add_item ( tree , hf_pvfs_context_id , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n offset = dissect_pvfs_credentials ( tvb , tree , offset ) ;\n switch ( server_op ) {\n case PVFS_SERV_CREATE : offset = dissect_pvfs2_create_request ( tvb , tree , offset , pinfo ) ;\n break ;\n case PVFS_SERV_REMOVE : offset = dissect_pvfs2_remove_request ( tvb , tree , offset , pinfo ) ;\n break ;\n case PVFS_SERV_IO : offset = dissect_pvfs2_io_request ( tvb , tree , offset , pinfo ) ;\n break ;\n case PVFS_SERV_GETATTR : offset = dissect_pvfs2_getattr_request ( tvb , tree , offset , pinfo ) ;\n break ;\n case PVFS_SERV_SETATTR : offset = dissect_pvfs2_setattr_request ( tvb , tree , offset , pinfo ) ;\n break ;\n case PVFS_SERV_LOOKUP_PATH : offset = dissect_pvfs2_lookup_path_request ( tvb , tree , offset , pinfo ) ;\n break ;\n case PVFS_SERV_CRDIRENT : offset = dissect_pvfs2_crdirent_request ( tvb , tree , offset , pinfo ) ;\n break ;\n case PVFS_SERV_RMDIRENT : offset = dissect_pvfs2_rmdirent_request ( tvb , tree , offset , pinfo ) ;\n break ;\n case PVFS_SERV_CHDIRENT : offset = dissect_pvfs2_chdirent_request ( tvb , tree , offset , pinfo ) ;\n break ;\n case PVFS_SERV_TRUNCATE : offset = dissect_pvfs2_truncate_request ( tvb , tree , offset , pinfo ) ;\n break ;\n case PVFS_SERV_MKDIR : offset = dissect_pvfs2_mkdir_request ( tvb , tree , offset , pinfo ) ;\n break ;\n case PVFS_SERV_READDIR : offset = dissect_pvfs2_readdir_request ( tvb , tree , offset , pinfo ) ;\n break ;\n # if 0 case PVFS_SERV_GETCONFIG : break ;\n # endif # if 0 case PVFS_SERV_WRITE_COMPLETION : break ;\n # endif case PVFS_SERV_FLUSH : offset = dissect_pvfs2_flush_request ( tvb , tree , offset , pinfo ) ;\n break ;\n case PVFS_SERV_MGMT_SETPARAM : offset = dissect_pvfs2_mgmt_setparam_request ( tvb , tree , offset , pinfo ) ;\n break ;\n # if 0 case PVFS_SERV_MGMT_NOOP : break ;\n # endif case PVFS_SERV_STATFS : offset = dissect_pvfs2_statfs_request ( tvb , tree , offset , pinfo ) ;\n break ;\n # if 0 case PVFS_SERV_PERF_UPDATE : break ;\n # endif case PVFS_SERV_MGMT_PERF_MON : offset = dissect_pvfs2_mgmt_perf_mon_request ( tvb , tree , offset , pinfo ) ;\n break ;\n case PVFS_SERV_MGMT_ITERATE_HANDLES : offset = dissect_pvfs2_mgmt_iterate_handles_request ( tvb , tree , offset , pinfo ) ;\n break ;\n case PVFS_SERV_MGMT_DSPACE_INFO_LIST : offset = dissect_pvfs2_mgmt_dspace_info_list_request ( tvb , tree , offset , pinfo ) ;\n break ;\n case PVFS_SERV_MGMT_EVENT_MON : offset = dissect_pvfs2_mgmt_event_mon_request ( tvb , tree , offset , pinfo ) ;\n break ;\n case PVFS_SERV_MGMT_REMOVE_OBJECT : offset = dissect_pvfs2_mgmt_remove_object_request ( tvb , tree , offset , pinfo ) ;\n break ;\n case PVFS_SERV_MGMT_REMOVE_DIRENT : offset = dissect_pvfs2_mgmt_remove_dirent_request ( tvb , tree , offset , pinfo ) ;\n break ;\n case PVFS_SERV_MGMT_GET_DIRDATA_HANDLE : offset = dissect_pvfs2_mgmt_get_dirdata_handle_request ( tvb , tree , offset , pinfo ) ;\n break ;\n # if 0 case PVFS_SERV_JOB_TIMER : break ;\n # endif case PVFS_SERV_PROTO_ERROR : break ;\n case PVFS_SERV_GETEATTR : offset = dissect_pvfs2_geteattr_request ( tvb , tree , offset , pinfo ) ;\n break ;\n case PVFS_SERV_SETEATTR : offset = dissect_pvfs2_seteattr_request ( tvb , tree , offset , pinfo ) ;\n break ;\n case PVFS_SERV_DELEATTR : offset = dissect_pvfs2_deleattr_request ( tvb , tree , offset , pinfo ) ;\n break ;\n default : break ;\n }\n return offset ;\n }"}
{"idx": 1954, "target": 0, "func": "static cmsBool Type_Signature_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) {\n cmsSignature * SigPtr = ( cmsSignature * ) Ptr ;\n return _cmsWriteUInt32Number ( io , * SigPtr ) ;\n cmsUNUSED_PARAMETER ( nItems ) ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 1955, "target": 0, "func": "METHOD ( x509_t , create_cert_policy_enumerator , enumerator_t * , private_x509_cert_t * this ) {\n return this -> cert_policies -> create_enumerator ( this -> cert_policies ) ;\n }"}
{"idx": 1956, "target": 0, "func": "static void vp8_subtract_mb ( MACROBLOCK * x ) {\n BLOCK * b = & x -> block [ 0 ] ;\n vp8_subtract_mby ( x -> src_diff , * ( b -> base_src ) , b -> src_stride , x -> e_mbd . dst . y_buffer , x -> e_mbd . dst . y_stride ) ;\n vp8_subtract_mbuv ( x -> src_diff , x -> src . u_buffer , x -> src . v_buffer , x -> src . uv_stride , x -> e_mbd . dst . u_buffer , x -> e_mbd . dst . v_buffer , x -> e_mbd . dst . uv_stride ) ;\n }"}
{"idx": 1957, "target": 0, "func": "static void push ( UScriptRun * scriptRun , int32_t pairIndex , UScriptCode scriptCode ) {\n scriptRun -> pushCount = LIMIT_INC ( scriptRun -> pushCount ) ;\n scriptRun -> fixupCount = LIMIT_INC ( scriptRun -> fixupCount ) ;\n scriptRun -> parenSP = INC1 ( scriptRun -> parenSP ) ;\n scriptRun -> parenStack [ scriptRun -> parenSP ] . pairIndex = pairIndex ;\n scriptRun -> parenStack [ scriptRun -> parenSP ] . scriptCode = scriptCode ;\n }"}
{"idx": 1958, "target": 0, "func": "proto_item * proto_tree_add_int64_format ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , gint64 value , const char * format , ... ) {\n proto_item * pi ;\n va_list ap ;\n pi = proto_tree_add_int64 ( tree , hfindex , tvb , start , length , value ) ;\n if ( pi != tree ) {\n TRY_TO_FAKE_THIS_REPR ( pi ) ;\n va_start ( ap , format ) ;\n proto_tree_set_representation ( pi , format , ap ) ;\n va_end ( ap ) ;\n }\n return pi ;\n }"}
{"idx": 1959, "target": 0, "func": "time_t TSMimeHdrFieldValueDateGet ( TSMBuffer bufp , TSMLoc hdr , TSMLoc field ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( hdr ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( hdr ) == TS_SUCCESS ) ) ;\n sdk_assert ( sdk_sanity_check_field_handle ( field , hdr ) == TS_SUCCESS ) ;\n int value_len ;\n const char * value_str = TSMimeFieldValueGet ( bufp , field , - 1 , & value_len ) ;\n if ( value_str == nullptr ) {\n return ( time_t ) 0 ;\n }\n return mime_parse_date ( value_str , value_str + value_len ) ;\n }"}
{"idx": 1960, "target": 0, "func": "static void show_commit ( struct commit * commit , void * data ) {\n mark_as_seen ( ( struct object * ) commit ) ;\n }"}
{"idx": 1961, "target": 0, "func": "static int parse_CAggregSpec ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree , const char * fmt , ... ) {\n proto_item * item ;\n proto_tree * tree ;\n va_list ap ;\n guint8 type ;\n guint32 ccAlias , idColumn ;\n const char * txt ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CAggregSpec , & item , txt ) ;\n type = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_caggregspec_type , tvb , offset , 1 , type ) ;\n proto_item_append_text ( item , \"type: %u\" , type ) ;\n offset += 1 ;\n offset = parse_padding ( tvb , offset , 4 , pad_tree , \"padding\" ) ;\n ccAlias = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_caggregspec_ccalias , tvb , offset , 1 , ccAlias ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_caggregspec_alias , tvb , offset , 2 * ccAlias , ENC_LITTLE_ENDIAN | ENC_UCS_2 ) ;\n offset += 2 * ccAlias ;\n idColumn = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_caggregspec_idcolumn , tvb , offset , 1 , idColumn ) ;\n offset += 4 ;\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 1962, "target": 0, "func": "static void init_tee ( const char * file_name ) {\n FILE * new_outfile ;\n if ( opt_outfile ) end_tee ( ) ;\n if ( ! ( new_outfile = my_fopen ( file_name , O_APPEND | O_WRONLY , MYF ( MY_WME ) ) ) ) {\n tee_fprintf ( stdout , \"Error logging to file '%s'\\n\" , file_name ) ;\n return ;\n }\n OUTFILE = new_outfile ;\n strmake_buf ( outfile , file_name ) ;\n tee_fprintf ( stdout , \"Logging to file '%s'\\n\" , file_name ) ;\n opt_outfile = 1 ;\n return ;\n }"}
{"idx": 1963, "target": 1, "func": "void ppc_prep_init ( int ram_size , int vga_ram_size , int boot_device , DisplayState * ds , const char * * fd_filename , int snapshot , const char * kernel_filename , const char * kernel_cmdline , const char * initrd_filename ) {\n char buf [ 1024 ] ;\n int PPC_io_memory ;\n int ret , linux_boot , initrd_size , i , nb_nics1 , fd ;\n linux_boot = ( kernel_filename != NULL ) ;\n cpu_register_physical_memory ( 0 , ram_size , 0 ) ;\n isa_mem_base = 0xc0000000 ;\n if ( linux_boot ) {\n ret = load_image ( kernel_filename , phys_ram_base + KERNEL_LOAD_ADDR ) ;\n if ( ret < 0 ) {\n fprintf ( stderr , \"qemu: could not load kernel '%s'\\n\" , kernel_filename ) ;\n exit ( 1 ) ;\n }\n initrd_size = 0 ;\n # if 0 if ( initrd_filename ) {\n initrd_size = load_image ( initrd_filename , phys_ram_base + INITRD_LOAD_ADDR ) ;\n if ( initrd_size < 0 ) {\n fprintf ( stderr , \"qemu: could not load initial ram disk '%s'\\n\" , initrd_filename ) ;\n exit ( 1 ) ;\n }\n }\n # endif PPC_init_hw ( ram_size , KERNEL_LOAD_ADDR , ret , KERNEL_STACK_ADDR , boot_device , initrd_filename ) ;\n }\n else {\n snprintf ( buf , sizeof ( buf ) , \"%s\" , BIOS_FILENAME ) ;\n printf ( \"load BIOS at %p\\n\" , phys_ram_base + 0x000f0000 ) ;\n ret = load_image ( buf , phys_ram_base + 0x000f0000 ) ;\n if ( ret != 0x10000 ) {\n fprintf ( stderr , \"qemu: could not load PPC bios '%s' (%d)\\n%m\\n\" , buf , ret ) ;\n exit ( 1 ) ;\n }\n }\n vga_initialize ( ds , phys_ram_base + ram_size , ram_size , vga_ram_size ) ;\n rtc_init ( 0x70 , 8 ) ;\n pic_init ( ) ;\n fd = serial_open_device ( ) ;\n serial_init ( 0x3f8 , 4 , fd ) ;\n # if 1 nb_nics1 = nb_nics ;\n if ( nb_nics1 > NE2000_NB_MAX ) nb_nics1 = NE2000_NB_MAX ;\n for ( i = 0 ;\n i < nb_nics1 ;\n i ++ ) {\n ne2000_init ( ne2000_io [ i ] , ne2000_irq [ i ] , & nd_table [ i ] ) ;\n }\n # endif for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n ide_init ( ide_iobase [ i ] , ide_iobase2 [ i ] , ide_irq [ i ] , bs_table [ 2 * i ] , bs_table [ 2 * i + 1 ] ) ;\n }\n kbd_init ( ) ;\n AUD_init ( ) ;\n DMA_init ( ) ;\n fdctrl_init ( 6 , 2 , 0 , 0x3f0 , fd_table ) ;\n PPC_io_memory = cpu_register_io_memory ( 0 , PPC_io_read , PPC_io_write ) ;\n cpu_register_physical_memory ( 0x80000000 , 0x10000 , PPC_io_memory ) ;\n register_ioport_read ( 0x398 , 2 , 1 , & PREP_io_read , NULL ) ;\n register_ioport_write ( 0x398 , 2 , 1 , & PREP_io_write , NULL ) ;\n register_ioport_write ( 0x0092 , 0x1 , 1 , & PREP_io_800_writeb , NULL ) ;\n register_ioport_read ( 0x0800 , 0x52 , 1 , & PREP_io_800_readb , NULL ) ;\n register_ioport_write ( 0x0800 , 0x52 , 1 , & PREP_io_800_writeb , NULL ) ;\n PPC_io_memory = cpu_register_io_memory ( 0 , PPC_ioB_read , PPC_ioB_write ) ;\n cpu_register_physical_memory ( 0xBFFFFFF0 , 0x4 , PPC_io_memory ) ;\n prep_NVRAM_init ( ) ;\n PPC_end_init ( ) ;\n }"}
{"idx": 1964, "target": 0, "func": "static int get_file_info ( const char * filename , OUT UpnpFileInfo * info ) {\n int code ;\n struct stat s ;\n FILE * fp ;\n int rc = 0 ;\n time_t aux_LastModified ;\n struct tm date ;\n char buffer [ ASCTIME_R_BUFFER_SIZE ] ;\n UpnpFileInfo_set_ContentType ( info , NULL ) ;\n code = stat ( filename , & s ) ;\n if ( code == - 1 ) return - 1 ;\n if ( S_ISDIR ( s . st_mode ) ) UpnpFileInfo_set_IsDirectory ( info , TRUE ) ;\n else if ( S_ISREG ( s . st_mode ) ) UpnpFileInfo_set_IsDirectory ( info , FALSE ) ;\n else return - 1 ;\n fp = fopen ( filename , \"r\" ) ;\n UpnpFileInfo_set_IsReadable ( info , fp != NULL ) ;\n if ( fp ) fclose ( fp ) ;\n UpnpFileInfo_set_FileLength ( info , s . st_size ) ;\n UpnpFileInfo_set_LastModified ( info , s . st_mtime ) ;\n rc = get_content_type ( filename , info ) ;\n aux_LastModified = UpnpFileInfo_get_LastModified ( info ) ;\n UpnpPrintf ( UPNP_INFO , HTTP , __FILE__ , __LINE__ , \"file info: %s, length: %lld, last_mod=%s readable=%d\\n\" , filename , ( long long ) UpnpFileInfo_get_FileLength ( info ) , web_server_asctime_r ( http_gmtime_r ( & aux_LastModified , & date ) , buffer ) , UpnpFileInfo_get_IsReadable ( info ) ) ;\n return rc ;\n }"}
{"idx": 1965, "target": 0, "func": "static const char * parseState ( const char * s , int32_t state [ 256 ] , uint32_t * pFlags ) {\n const char * t ;\n uint32_t start , end , i ;\n int32_t entry ;\n for ( i = 0 ;\n i < 256 ;\n ++ i ) {\n state [ i ] = MBCS_ENTRY_FINAL ( 0 , MBCS_STATE_ILLEGAL , 0xffff ) ;\n }\n s = u_skipWhitespace ( s ) ;\n if ( uprv_strncmp ( \"initial\" , s , 7 ) == 0 ) {\n * pFlags = MBCS_STATE_FLAG_DIRECT ;\n s = u_skipWhitespace ( s + 7 ) ;\n if ( * s ++ != ',' ) {\n return s - 1 ;\n }\n }\n else if ( * pFlags == 0 && uprv_strncmp ( \"surrogates\" , s , 10 ) == 0 ) {\n * pFlags = MBCS_STATE_FLAG_SURROGATES ;\n s = u_skipWhitespace ( s + 10 ) ;\n if ( * s ++ != ',' ) {\n return s - 1 ;\n }\n }\n else if ( * s == 0 ) {\n return NULL ;\n }\n for ( ;\n ;\n ) {\n s = u_skipWhitespace ( s ) ;\n start = uprv_strtoul ( s , ( char * * ) & t , 16 ) ;\n if ( s == t || 0xff < start ) {\n return s ;\n }\n s = u_skipWhitespace ( t ) ;\n if ( * s == '-' ) {\n s = u_skipWhitespace ( s + 1 ) ;\n end = uprv_strtoul ( s , ( char * * ) & t , 16 ) ;\n if ( s == t || end < start || 0xff < end ) {\n return s ;\n }\n s = u_skipWhitespace ( t ) ;\n }\n else {\n end = start ;\n }\n if ( * s != ':' && * s != '.' ) {\n entry = MBCS_ENTRY_FINAL ( 0 , MBCS_STATE_VALID_16 , 0 ) ;\n }\n else {\n entry = MBCS_ENTRY_TRANSITION ( 0 , 0 ) ;\n if ( * s == ':' ) {\n s = u_skipWhitespace ( s + 1 ) ;\n i = uprv_strtoul ( s , ( char * * ) & t , 16 ) ;\n if ( s != t ) {\n if ( 0x7f < i ) {\n return s ;\n }\n s = u_skipWhitespace ( t ) ;\n entry = MBCS_ENTRY_SET_STATE ( entry , i ) ;\n }\n }\n if ( * s == '.' ) {\n entry = MBCS_ENTRY_SET_FINAL ( entry ) ;\n s = u_skipWhitespace ( s + 1 ) ;\n if ( * s == 'u' ) {\n entry = MBCS_ENTRY_FINAL_SET_ACTION_VALUE ( entry , MBCS_STATE_UNASSIGNED , 0xfffe ) ;\n s = u_skipWhitespace ( s + 1 ) ;\n }\n else if ( * s == 'p' ) {\n if ( * pFlags != MBCS_STATE_FLAG_DIRECT ) {\n entry = MBCS_ENTRY_FINAL_SET_ACTION ( entry , MBCS_STATE_VALID_16_PAIR ) ;\n }\n else {\n entry = MBCS_ENTRY_FINAL_SET_ACTION ( entry , MBCS_STATE_VALID_16 ) ;\n }\n s = u_skipWhitespace ( s + 1 ) ;\n }\n else if ( * s == 's' ) {\n entry = MBCS_ENTRY_FINAL_SET_ACTION ( entry , MBCS_STATE_CHANGE_ONLY ) ;\n s = u_skipWhitespace ( s + 1 ) ;\n }\n else if ( * s == 'i' ) {\n entry = MBCS_ENTRY_FINAL_SET_ACTION_VALUE ( entry , MBCS_STATE_ILLEGAL , 0xffff ) ;\n s = u_skipWhitespace ( s + 1 ) ;\n }\n else {\n entry = MBCS_ENTRY_FINAL_SET_ACTION ( entry , MBCS_STATE_VALID_16 ) ;\n }\n }\n else {\n }\n }\n if ( MBCS_ENTRY_FINAL_ACTION ( entry ) == MBCS_STATE_VALID_16 ) {\n switch ( * pFlags ) {\n case 0 : break ;\n case MBCS_STATE_FLAG_DIRECT : entry = MBCS_ENTRY_FINAL_SET_ACTION_VALUE ( entry , MBCS_STATE_VALID_DIRECT_16 , 0xfffe ) ;\n break ;\n case MBCS_STATE_FLAG_SURROGATES : entry = MBCS_ENTRY_FINAL_SET_ACTION_VALUE ( entry , MBCS_STATE_VALID_16_PAIR , 0 ) ;\n break ;\n default : break ;\n }\n }\n for ( i = start ;\n i <= end ;\n ++ i ) {\n state [ i ] = entry ;\n }\n if ( * s == ',' ) {\n ++ s ;\n }\n else {\n return * s == 0 ? NULL : s ;\n }\n }\n }"}
{"idx": 1966, "target": 0, "func": "void ff_cavs_init_mb ( AVSContext * h ) {\n int i ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n h -> mv [ MV_FWD_B2 + i ] = h -> top_mv [ 0 ] [ h -> mbx * 2 + i ] ;\n h -> mv [ MV_BWD_B2 + i ] = h -> top_mv [ 1 ] [ h -> mbx * 2 + i ] ;\n }\n h -> pred_mode_Y [ 1 ] = h -> top_pred_Y [ h -> mbx * 2 + 0 ] ;\n h -> pred_mode_Y [ 2 ] = h -> top_pred_Y [ h -> mbx * 2 + 1 ] ;\n if ( ! ( h -> flags & B_AVAIL ) ) {\n h -> mv [ MV_FWD_B2 ] = un_mv ;\n h -> mv [ MV_FWD_B3 ] = un_mv ;\n h -> mv [ MV_BWD_B2 ] = un_mv ;\n h -> mv [ MV_BWD_B3 ] = un_mv ;\n h -> pred_mode_Y [ 1 ] = h -> pred_mode_Y [ 2 ] = NOT_AVAIL ;\n h -> flags &= ~ ( C_AVAIL | D_AVAIL ) ;\n }\n else if ( h -> mbx ) {\n h -> flags |= D_AVAIL ;\n }\n if ( h -> mbx == h -> mb_width - 1 ) h -> flags &= ~ C_AVAIL ;\n if ( ! ( h -> flags & C_AVAIL ) ) {\n h -> mv [ MV_FWD_C2 ] = un_mv ;\n h -> mv [ MV_BWD_C2 ] = un_mv ;\n }\n if ( ! ( h -> flags & D_AVAIL ) ) {\n h -> mv [ MV_FWD_D3 ] = un_mv ;\n h -> mv [ MV_BWD_D3 ] = un_mv ;\n }\n }"}
{"idx": 1967, "target": 0, "func": "static int dpcm_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n int buf_size = avpkt -> size ;\n DPCMContext * s = avctx -> priv_data ;\n AVFrame * frame = data ;\n int out = 0 , ret ;\n int predictor [ 2 ] ;\n int ch = 0 ;\n int stereo = avctx -> channels - 1 ;\n int16_t * output_samples , * samples_end ;\n GetByteContext gb ;\n if ( stereo && ( buf_size & 1 ) ) buf_size -- ;\n bytestream2_init ( & gb , avpkt -> data , buf_size ) ;\n switch ( avctx -> codec -> id ) {\n case AV_CODEC_ID_ROQ_DPCM : out = buf_size - 8 ;\n break ;\n case AV_CODEC_ID_INTERPLAY_DPCM : out = buf_size - 6 - avctx -> channels ;\n break ;\n case AV_CODEC_ID_XAN_DPCM : out = buf_size - 2 * avctx -> channels ;\n break ;\n case AV_CODEC_ID_SOL_DPCM : if ( avctx -> codec_tag != 3 ) out = buf_size * 2 ;\n else out = buf_size ;\n break ;\n }\n if ( out <= 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"packet is too small\\n\" ) ;\n return AVERROR ( EINVAL ) ;\n }\n frame -> nb_samples = out / avctx -> channels ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n output_samples = ( int16_t * ) frame -> data [ 0 ] ;\n samples_end = output_samples + out ;\n switch ( avctx -> codec -> id ) {\n case AV_CODEC_ID_ROQ_DPCM : bytestream2_skipu ( & gb , 6 ) ;\n if ( stereo ) {\n predictor [ 1 ] = sign_extend ( bytestream2_get_byteu ( & gb ) << 8 , 16 ) ;\n predictor [ 0 ] = sign_extend ( bytestream2_get_byteu ( & gb ) << 8 , 16 ) ;\n }\n else {\n predictor [ 0 ] = sign_extend ( bytestream2_get_le16u ( & gb ) , 16 ) ;\n }\n while ( output_samples < samples_end ) {\n predictor [ ch ] += s -> roq_square_array [ bytestream2_get_byteu ( & gb ) ] ;\n predictor [ ch ] = av_clip_int16 ( predictor [ ch ] ) ;\n * output_samples ++ = predictor [ ch ] ;\n ch ^= stereo ;\n }\n break ;\n case AV_CODEC_ID_INTERPLAY_DPCM : bytestream2_skipu ( & gb , 6 ) ;\n for ( ch = 0 ;\n ch < avctx -> channels ;\n ch ++ ) {\n predictor [ ch ] = sign_extend ( bytestream2_get_le16u ( & gb ) , 16 ) ;\n * output_samples ++ = predictor [ ch ] ;\n }\n ch = 0 ;\n while ( output_samples < samples_end ) {\n predictor [ ch ] += interplay_delta_table [ bytestream2_get_byteu ( & gb ) ] ;\n predictor [ ch ] = av_clip_int16 ( predictor [ ch ] ) ;\n * output_samples ++ = predictor [ ch ] ;\n ch ^= stereo ;\n }\n break ;\n case AV_CODEC_ID_XAN_DPCM : {\n int shift [ 2 ] = {\n 4 , 4 }\n ;\n for ( ch = 0 ;\n ch < avctx -> channels ;\n ch ++ ) predictor [ ch ] = sign_extend ( bytestream2_get_le16u ( & gb ) , 16 ) ;\n ch = 0 ;\n while ( output_samples < samples_end ) {\n int diff = bytestream2_get_byteu ( & gb ) ;\n int n = diff & 3 ;\n if ( n == 3 ) shift [ ch ] ++ ;\n else shift [ ch ] -= ( 2 * n ) ;\n diff = sign_extend ( ( diff & ~ 3 ) << 8 , 16 ) ;\n if ( shift [ ch ] < 0 ) shift [ ch ] = 0 ;\n diff >>= shift [ ch ] ;\n predictor [ ch ] += diff ;\n predictor [ ch ] = av_clip_int16 ( predictor [ ch ] ) ;\n * output_samples ++ = predictor [ ch ] ;\n ch ^= stereo ;\n }\n break ;\n }\n case AV_CODEC_ID_SOL_DPCM : if ( avctx -> codec_tag != 3 ) {\n uint8_t * output_samples_u8 = frame -> data [ 0 ] , * samples_end_u8 = output_samples_u8 + out ;\n while ( output_samples_u8 < samples_end_u8 ) {\n int n = bytestream2_get_byteu ( & gb ) ;\n s -> sample [ 0 ] += s -> sol_table [ n >> 4 ] ;\n s -> sample [ 0 ] = av_clip_uint8 ( s -> sample [ 0 ] ) ;\n * output_samples_u8 ++ = s -> sample [ 0 ] ;\n s -> sample [ stereo ] += s -> sol_table [ n & 0x0F ] ;\n s -> sample [ stereo ] = av_clip_uint8 ( s -> sample [ stereo ] ) ;\n * output_samples_u8 ++ = s -> sample [ stereo ] ;\n }\n }\n else {\n while ( output_samples < samples_end ) {\n int n = bytestream2_get_byteu ( & gb ) ;\n if ( n & 0x80 ) s -> sample [ ch ] -= sol_table_16 [ n & 0x7F ] ;\n else s -> sample [ ch ] += sol_table_16 [ n & 0x7F ] ;\n s -> sample [ ch ] = av_clip_int16 ( s -> sample [ ch ] ) ;\n * output_samples ++ = s -> sample [ ch ] ;\n ch ^= stereo ;\n }\n }\n break ;\n }\n * got_frame_ptr = 1 ;\n return avpkt -> size ;\n }"}
{"idx": 1968, "target": 0, "func": "rfbBool rfbSendNewFBSize ( rfbClientPtr cl , int w , int h ) {\n rfbFramebufferUpdateRectHeader rect ;\n if ( cl -> ublen + sz_rfbFramebufferUpdateRectHeader > UPDATE_BUF_SIZE ) {\n if ( ! rfbSendUpdateBuf ( cl ) ) return FALSE ;\n }\n if ( cl -> PalmVNC == TRUE ) rfbLog ( \"Sending rfbEncodingNewFBSize in response to a PalmVNC style framebuffer resize (%dx%d)\\n\" , w , h ) ;\n else rfbLog ( \"Sending rfbEncodingNewFBSize for resize to (%dx%d)\\n\" , w , h ) ;\n rect . encoding = Swap32IfLE ( rfbEncodingNewFBSize ) ;\n rect . r . x = 0 ;\n rect . r . y = 0 ;\n rect . r . w = Swap16IfLE ( w ) ;\n rect . r . h = Swap16IfLE ( h ) ;\n memcpy ( & cl -> updateBuf [ cl -> ublen ] , ( char * ) & rect , sz_rfbFramebufferUpdateRectHeader ) ;\n cl -> ublen += sz_rfbFramebufferUpdateRectHeader ;\n rfbStatRecordEncodingSent ( cl , rfbEncodingNewFBSize , sz_rfbFramebufferUpdateRectHeader , sz_rfbFramebufferUpdateRectHeader ) ;\n return TRUE ;\n }"}
{"idx": 1969, "target": 0, "func": "unsigned int vp8_variance8x16_neon ( const unsigned char * src_ptr , int source_stride , const unsigned char * ref_ptr , int recon_stride , unsigned int * sse ) {\n int i ;\n uint8x8_t d0u8 , d2u8 , d4u8 , d6u8 ;\n int16x4_t d22s16 , d23s16 , d24s16 , d25s16 ;\n uint32x2_t d0u32 , d10u32 ;\n int64x1_t d0s64 , d1s64 ;\n uint16x8_t q11u16 , q12u16 ;\n int32x4_t q8s32 , q9s32 , q10s32 ;\n int64x2_t q0s64 , q1s64 , q5s64 ;\n q8s32 = vdupq_n_s32 ( 0 ) ;\n q9s32 = vdupq_n_s32 ( 0 ) ;\n q10s32 = vdupq_n_s32 ( 0 ) ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n d0u8 = vld1_u8 ( src_ptr ) ;\n src_ptr += source_stride ;\n d2u8 = vld1_u8 ( src_ptr ) ;\n src_ptr += source_stride ;\n __builtin_prefetch ( src_ptr ) ;\n d4u8 = vld1_u8 ( ref_ptr ) ;\n ref_ptr += recon_stride ;\n d6u8 = vld1_u8 ( ref_ptr ) ;\n ref_ptr += recon_stride ;\n __builtin_prefetch ( ref_ptr ) ;\n q11u16 = vsubl_u8 ( d0u8 , d4u8 ) ;\n q12u16 = vsubl_u8 ( d2u8 , d6u8 ) ;\n d22s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q11u16 ) ) ;\n d23s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q11u16 ) ) ;\n q8s32 = vpadalq_s16 ( q8s32 , vreinterpretq_s16_u16 ( q11u16 ) ) ;\n q9s32 = vmlal_s16 ( q9s32 , d22s16 , d22s16 ) ;\n q10s32 = vmlal_s16 ( q10s32 , d23s16 , d23s16 ) ;\n d24s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q12u16 ) ) ;\n d25s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q12u16 ) ) ;\n q8s32 = vpadalq_s16 ( q8s32 , vreinterpretq_s16_u16 ( q12u16 ) ) ;\n q9s32 = vmlal_s16 ( q9s32 , d24s16 , d24s16 ) ;\n q10s32 = vmlal_s16 ( q10s32 , d25s16 , d25s16 ) ;\n }\n q10s32 = vaddq_s32 ( q10s32 , q9s32 ) ;\n q0s64 = vpaddlq_s32 ( q8s32 ) ;\n q1s64 = vpaddlq_s32 ( q10s32 ) ;\n d0s64 = vadd_s64 ( vget_low_s64 ( q0s64 ) , vget_high_s64 ( q0s64 ) ) ;\n d1s64 = vadd_s64 ( vget_low_s64 ( q1s64 ) , vget_high_s64 ( q1s64 ) ) ;\n q5s64 = vmull_s32 ( vreinterpret_s32_s64 ( d0s64 ) , vreinterpret_s32_s64 ( d0s64 ) ) ;\n vst1_lane_u32 ( ( uint32_t * ) sse , vreinterpret_u32_s64 ( d1s64 ) , 0 ) ;\n d10u32 = vshr_n_u32 ( vreinterpret_u32_s64 ( vget_low_s64 ( q5s64 ) ) , 7 ) ;\n d0u32 = vsub_u32 ( vreinterpret_u32_s64 ( d1s64 ) , d10u32 ) ;\n return vget_lane_u32 ( d0u32 , 0 ) ;\n }"}
{"idx": 1970, "target": 0, "func": "IN_PROC_BROWSER_TEST_P ( BrowserCloseManagerBrowserTest , TestWithOffTheRecordWindowAndRegularDownload ) {\n Profile * otr_profile = browser ( ) -> profile ( ) -> GetOffTheRecordProfile ( ) ;\n Browser * otr_browser = CreateBrowser ( otr_profile ) ;\n ASSERT_NO_FATAL_FAILURE ( CreateStalledDownload ( browser ( ) ) ) ;\n content : : TestNavigationObserver navigation_observer ( otr_browser -> tab_strip_model ( ) -> GetActiveWebContents ( ) , 1 ) ;\n ui_test_utils : : NavigateToURL ( otr_browser , GURL ( \"about:blank\" ) ) ;\n navigation_observer . Wait ( ) ;\n int num_downloads_blocking = 0 ;\n ASSERT_EQ ( Browser : : DOWNLOAD_CLOSE_OK , otr_browser -> OkToCloseWithInProgressDownloads ( & num_downloads_blocking ) ) ;\n ASSERT_EQ ( 0 , num_downloads_blocking ) ;\n {\n RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , 1 ) ;\n otr_browser -> window ( ) -> Close ( ) ;\n close_observer . Wait ( ) ;\n }\n ASSERT_EQ ( Browser : : DOWNLOAD_CLOSE_BROWSER_SHUTDOWN , browser ( ) -> OkToCloseWithInProgressDownloads ( & num_downloads_blocking ) ) ;\n ASSERT_EQ ( 1 , num_downloads_blocking ) ;\n {\n RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , 2 ) ;\n TestBrowserCloseManager : : AttemptClose ( TestBrowserCloseManager : : USER_CHOICE_USER_ALLOWS_CLOSE ) ;\n close_observer . Wait ( ) ;\n }\n EXPECT_TRUE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_TRUE ( BrowserList : : GetInstance ( ) -> empty ( ) ) ;\n if ( browser_defaults : : kBrowserAliveWithNoWindows ) EXPECT_EQ ( 1 , DownloadCoreService : : NonMaliciousDownloadCountAllProfiles ( ) ) ;\n else EXPECT_EQ ( 0 , DownloadCoreService : : NonMaliciousDownloadCountAllProfiles ( ) ) ;\n }"}
{"idx": 1971, "target": 0, "func": "xmlGenericErrorFunc * __xmlGenericError ( void ) {\n if ( IS_MAIN_THREAD ) return ( & xmlGenericError ) ;\n else return ( & xmlGetGlobalState ( ) -> xmlGenericError ) ;\n }"}
{"idx": 1972, "target": 0, "func": "static void set_ref ( VP9_COMMON * const cm , MACROBLOCKD * const xd , int idx , int mi_row , int mi_col ) {\n MB_MODE_INFO * const mbmi = & xd -> mi [ 0 ] -> mbmi ;\n RefBuffer * ref_buffer = & cm -> frame_refs [ mbmi -> ref_frame [ idx ] - LAST_FRAME ] ;\n xd -> block_refs [ idx ] = ref_buffer ;\n if ( ! vp9_is_valid_scale ( & ref_buffer -> sf ) ) vpx_internal_error ( & cm -> error , VPX_CODEC_UNSUP_BITSTREAM , \"Invalid scale factors\" ) ;\n vp9_setup_pre_planes ( xd , idx , ref_buffer -> buf , mi_row , mi_col , & ref_buffer -> sf ) ;\n xd -> corrupted |= ref_buffer -> buf -> corrupted ;\n }"}
{"idx": 1973, "target": 0, "func": "const EVP_CIPHER * GetCipherPtr ( VALUE obj ) {\n if ( rb_obj_is_kind_of ( obj , cCipher ) ) {\n EVP_CIPHER_CTX * ctx ;\n GetCipher ( obj , ctx ) ;\n return EVP_CIPHER_CTX_cipher ( ctx ) ;\n }\n else {\n const EVP_CIPHER * cipher ;\n StringValueCStr ( obj ) ;\n cipher = EVP_get_cipherbyname ( RSTRING_PTR ( obj ) ) ;\n if ( ! cipher ) ossl_raise ( rb_eArgError , \"unsupported cipher algorithm: %\" PRIsVALUE , obj ) ;\n return cipher ;\n }\n }"}
{"idx": 1974, "target": 0, "func": "SPL_METHOD ( SplFileObject , fpassthru ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n RETURN_LONG ( php_stream_passthru ( intern -> u . file . stream ) ) ;\n }"}
{"idx": 1975, "target": 0, "func": "static inline void mark_inode_as_seen ( DeepCountState * state , GFileInfo * info ) {\n guint64 inode ;\n inode = g_file_info_get_attribute_uint64 ( info , G_FILE_ATTRIBUTE_UNIX_INODE ) ;\n if ( inode != 0 ) {\n g_array_append_val ( state -> seen_deep_count_inodes , inode ) ;\n }\n }"}
{"idx": 1976, "target": 0, "func": "void compute_precache_linear ( uint8_t * output ) {\n uint32_t v = 0 ;\n for ( v = 0 ;\n v < PRECACHE_OUTPUT_SIZE ;\n v ++ ) {\n output [ v ] = v / ( PRECACHE_OUTPUT_SIZE / 256 ) ;\n }\n }"}
{"idx": 1977, "target": 0, "func": "static void selinux_sock_graft ( struct sock * sk , struct socket * parent ) {\n struct inode_security_struct * isec = inode_security_novalidate ( SOCK_INODE ( parent ) ) ;\n struct sk_security_struct * sksec = sk -> sk_security ;\n if ( sk -> sk_family == PF_INET || sk -> sk_family == PF_INET6 || sk -> sk_family == PF_UNIX ) isec -> sid = sksec -> sid ;\n sksec -> sclass = isec -> sclass ;\n }"}
{"idx": 1978, "target": 0, "func": "static void file_change_m ( const char * p , struct branch * b ) {\n static struct strbuf uq = STRBUF_INIT ;\n const char * endp ;\n struct object_entry * oe ;\n unsigned char sha1 [ 20 ] ;\n uint16_t mode , inline_data = 0 ;\n p = get_mode ( p , & mode ) ;\n if ( ! p ) die ( \"Corrupt mode: %s\" , command_buf . buf ) ;\n switch ( mode ) {\n case 0644 : case 0755 : mode |= S_IFREG ;\n case S_IFREG | 0644 : case S_IFREG | 0755 : case S_IFLNK : case S_IFDIR : case S_IFGITLINK : break ;\n default : die ( \"Corrupt mode: %s\" , command_buf . buf ) ;\n }\n if ( * p == ':' ) {\n oe = find_mark ( parse_mark_ref_space ( & p ) ) ;\n hashcpy ( sha1 , oe -> idx . sha1 ) ;\n }\n else if ( skip_prefix ( p , \"inline \" , & p ) ) {\n inline_data = 1 ;\n oe = NULL ;\n }\n else {\n if ( get_sha1_hex ( p , sha1 ) ) die ( \"Invalid dataref: %s\" , command_buf . buf ) ;\n oe = find_object ( sha1 ) ;\n p += 40 ;\n if ( * p ++ != ' ' ) die ( \"Missing space after SHA1: %s\" , command_buf . buf ) ;\n }\n strbuf_reset ( & uq ) ;\n if ( ! unquote_c_style ( & uq , p , & endp ) ) {\n if ( * endp ) die ( \"Garbage after path in: %s\" , command_buf . buf ) ;\n p = uq . buf ;\n }\n if ( S_ISDIR ( mode ) && ! hashcmp ( sha1 , EMPTY_TREE_SHA1_BIN ) && * p ) {\n tree_content_remove ( & b -> branch_tree , p , NULL , 0 ) ;\n return ;\n }\n if ( S_ISGITLINK ( mode ) ) {\n if ( inline_data ) die ( \"Git links cannot be specified 'inline': %s\" , command_buf . buf ) ;\n else if ( oe ) {\n if ( oe -> type != OBJ_COMMIT ) die ( \"Not a commit (actually a %s): %s\" , typename ( oe -> type ) , command_buf . buf ) ;\n }\n }\n else if ( inline_data ) {\n if ( S_ISDIR ( mode ) ) die ( \"Directories cannot be specified 'inline': %s\" , command_buf . buf ) ;\n if ( p != uq . buf ) {\n strbuf_addstr ( & uq , p ) ;\n p = uq . buf ;\n }\n read_next_command ( ) ;\n parse_and_store_blob ( & last_blob , sha1 , 0 ) ;\n }\n else {\n enum object_type expected = S_ISDIR ( mode ) ? OBJ_TREE : OBJ_BLOB ;\n enum object_type type = oe ? oe -> type : sha1_object_info ( sha1 , NULL ) ;\n if ( type < 0 ) die ( \"%s not found: %s\" , S_ISDIR ( mode ) ? \"Tree\" : \"Blob\" , command_buf . buf ) ;\n if ( type != expected ) die ( \"Not a %s (actually a %s): %s\" , typename ( expected ) , typename ( type ) , command_buf . buf ) ;\n }\n if ( ! * p ) {\n tree_content_replace ( & b -> branch_tree , sha1 , mode , NULL ) ;\n return ;\n }\n tree_content_set ( & b -> branch_tree , p , sha1 , mode , NULL ) ;\n }"}
{"idx": 1979, "target": 1, "func": "int i2d_ ## name ( type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;\n int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING )"}
{"idx": 1980, "target": 1, "func": "static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 1981, "target": 0, "func": "static FT_Error cid_hex_to_binary ( FT_Byte * data , FT_Long data_len , FT_ULong offset , CID_Face face ) {\n FT_Stream stream = face -> root . stream ;\n FT_Error error ;\n FT_Byte buffer [ 256 ] ;\n FT_Byte * p , * plimit ;\n FT_Byte * d , * dlimit ;\n FT_Byte val ;\n FT_Bool upper_nibble , done ;\n if ( FT_STREAM_SEEK ( offset ) ) goto Exit ;\n d = data ;\n dlimit = d + data_len ;\n p = buffer ;\n plimit = p ;\n upper_nibble = 1 ;\n done = 0 ;\n while ( d < dlimit ) {\n if ( p >= plimit ) {\n FT_ULong oldpos = FT_STREAM_POS ( ) ;\n FT_ULong size = stream -> size - oldpos ;\n if ( size == 0 ) {\n error = FT_THROW ( Syntax_Error ) ;\n goto Exit ;\n }\n if ( FT_STREAM_READ ( buffer , 256 > size ? size : 256 ) ) goto Exit ;\n p = buffer ;\n plimit = p + FT_STREAM_POS ( ) - oldpos ;\n }\n if ( ft_isdigit ( * p ) ) val = ( FT_Byte ) ( * p - '0' ) ;\n else if ( * p >= 'a' && * p <= 'f' ) val = ( FT_Byte ) ( * p - 'a' ) ;\n else if ( * p >= 'A' && * p <= 'F' ) val = ( FT_Byte ) ( * p - 'A' + 10 ) ;\n else if ( * p == ' ' || * p == '\\t' || * p == '\\r' || * p == '\\n' || * p == '\\f' || * p == '\\0' ) {\n p ++ ;\n continue ;\n }\n else if ( * p == '>' ) {\n val = 0 ;\n done = 1 ;\n }\n else {\n error = FT_THROW ( Syntax_Error ) ;\n goto Exit ;\n }\n if ( upper_nibble ) * d = ( FT_Byte ) ( val << 4 ) ;\n else {\n * d = ( FT_Byte ) ( * d + val ) ;\n d ++ ;\n }\n upper_nibble = ( FT_Byte ) ( 1 - upper_nibble ) ;\n if ( done ) break ;\n p ++ ;\n }\n error = FT_Err_Ok ;\n Exit : return error ;\n }"}
{"idx": 1982, "target": 1, "func": "static int sunrast_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n const uint8_t * buf_end = avpkt -> data + avpkt -> size ;\n SUNRASTContext * const s = avctx -> priv_data ;\n AVFrame * picture = data ;\n AVFrame * const p = & s -> picture ;\n unsigned int w , h , depth , type , maptype , maplength , stride , x , y , len , alen ;\n uint8_t * ptr ;\n const uint8_t * bufstart = buf ;\n int ret ;\n if ( avpkt -> size < 32 ) return AVERROR_INVALIDDATA ;\n if ( AV_RB32 ( buf ) != RAS_MAGIC ) {\n av_log ( avctx , AV_LOG_ERROR , \"this is not sunras encoded data\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n w = AV_RB32 ( buf + 4 ) ;\n h = AV_RB32 ( buf + 8 ) ;\n depth = AV_RB32 ( buf + 12 ) ;\n type = AV_RB32 ( buf + 20 ) ;\n maptype = AV_RB32 ( buf + 24 ) ;\n maplength = AV_RB32 ( buf + 28 ) ;\n buf += 32 ;\n if ( type == RT_FORMAT_TIFF || type == RT_FORMAT_IFF || type == RT_EXPERIMENTAL ) {\n av_log_ask_for_sample ( avctx , \"unsupported (compression) type\\n\" ) ;\n return AVERROR_PATCHWELCOME ;\n }\n if ( type > RT_FORMAT_IFF ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid (compression) type\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( av_image_check_size ( w , h , 0 , avctx ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid image size\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( maptype == RMT_RAW ) {\n av_log_ask_for_sample ( avctx , \"unsupported colormap type\\n\" ) ;\n return AVERROR_PATCHWELCOME ;\n }\n if ( maptype > RMT_RAW ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid colormap type\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n switch ( depth ) {\n case 1 : avctx -> pix_fmt = AV_PIX_FMT_MONOWHITE ;\n break ;\n case 8 : avctx -> pix_fmt = maplength ? AV_PIX_FMT_PAL8 : AV_PIX_FMT_GRAY8 ;\n break ;\n case 24 : avctx -> pix_fmt = ( type == RT_FORMAT_RGB ) ? AV_PIX_FMT_RGB24 : AV_PIX_FMT_BGR24 ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"invalid depth\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( p -> data [ 0 ] ) avctx -> release_buffer ( avctx , p ) ;\n if ( w != avctx -> width || h != avctx -> height ) avcodec_set_dimensions ( avctx , w , h ) ;\n if ( ( ret = ff_get_buffer ( avctx , p ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n p -> pict_type = AV_PICTURE_TYPE_I ;\n if ( buf_end - buf < maplength ) return AVERROR_INVALIDDATA ;\n if ( depth != 8 && maplength ) {\n av_log ( avctx , AV_LOG_WARNING , \"useless colormap found or file is corrupted, trying to recover\\n\" ) ;\n }\n else if ( maplength ) {\n unsigned int len = maplength / 3 ;\n if ( maplength % 3 || maplength > 768 ) {\n av_log ( avctx , AV_LOG_WARNING , \"invalid colormap length\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n ptr = p -> data [ 1 ] ;\n for ( x = 0 ;\n x < len ;\n x ++ , ptr += 4 ) * ( uint32_t * ) ptr = ( buf [ x ] << 16 ) + ( buf [ len + x ] << 8 ) + buf [ len + len + x ] ;\n }\n buf += maplength ;\n ptr = p -> data [ 0 ] ;\n stride = p -> linesize [ 0 ] ;\n len = ( depth * w + 7 ) >> 3 ;\n alen = len + ( len & 1 ) ;\n if ( type == RT_BYTE_ENCODED ) {\n int value , run ;\n uint8_t * end = ptr + h * stride ;\n x = 0 ;\n while ( ptr != end && buf < buf_end ) {\n run = 1 ;\n if ( buf_end - buf < 1 ) return AVERROR_INVALIDDATA ;\n if ( ( value = * buf ++ ) == RLE_TRIGGER ) {\n run = * buf ++ + 1 ;\n if ( run != 1 ) value = * buf ++ ;\n }\n while ( run -- ) {\n if ( x < len ) ptr [ x ] = value ;\n if ( ++ x >= alen ) {\n x = 0 ;\n ptr += stride ;\n if ( ptr == end ) break ;\n }\n }\n }\n }\n else {\n for ( y = 0 ;\n y < h ;\n y ++ ) {\n if ( buf_end - buf < len ) break ;\n memcpy ( ptr , buf , len ) ;\n ptr += stride ;\n buf += alen ;\n }\n }\n * picture = s -> picture ;\n * got_frame = 1 ;\n return buf - bufstart ;\n }"}
{"idx": 1983, "target": 0, "func": "int ipv6_rcv_saddr_equal ( const struct sock * sk , const struct sock * sk2 ) {\n const struct in6_addr * sk_rcv_saddr6 = & inet6_sk ( sk ) -> rcv_saddr ;\n const struct in6_addr * sk2_rcv_saddr6 = inet6_rcv_saddr ( sk2 ) ;\n __be32 sk1_rcv_saddr = inet_sk ( sk ) -> inet_rcv_saddr ;\n __be32 sk2_rcv_saddr = inet_rcv_saddr ( sk2 ) ;\n int sk_ipv6only = ipv6_only_sock ( sk ) ;\n int sk2_ipv6only = inet_v6_ipv6only ( sk2 ) ;\n int addr_type = ipv6_addr_type ( sk_rcv_saddr6 ) ;\n int addr_type2 = sk2_rcv_saddr6 ? ipv6_addr_type ( sk2_rcv_saddr6 ) : IPV6_ADDR_MAPPED ;\n if ( addr_type == IPV6_ADDR_MAPPED && addr_type2 == IPV6_ADDR_MAPPED ) return ( ! sk2_ipv6only && ( ! sk1_rcv_saddr || ! sk2_rcv_saddr || sk1_rcv_saddr == sk2_rcv_saddr ) ) ;\n if ( addr_type2 == IPV6_ADDR_ANY && ! ( sk2_ipv6only && addr_type == IPV6_ADDR_MAPPED ) ) return 1 ;\n if ( addr_type == IPV6_ADDR_ANY && ! ( sk_ipv6only && addr_type2 == IPV6_ADDR_MAPPED ) ) return 1 ;\n if ( sk2_rcv_saddr6 && ipv6_addr_equal ( sk_rcv_saddr6 , sk2_rcv_saddr6 ) ) return 1 ;\n return 0 ;\n }"}
{"idx": 1984, "target": 0, "func": "static bool compose_unicode ( const hb_ot_shape_normalize_context_t * c , hb_codepoint_t a , hb_codepoint_t b , hb_codepoint_t * ab ) {\n return c -> unicode -> compose ( a , b , ab ) ;\n }"}
{"idx": 1985, "target": 0, "func": "void rfbSetProtocolVersion ( rfbScreenInfoPtr rfbScreen , int major_ , int minor_ ) {\n if ( ( major_ == 3 ) && ( minor_ > 2 && minor_ < 9 ) ) {\n rfbScreen -> protocolMajorVersion = major_ ;\n rfbScreen -> protocolMinorVersion = minor_ ;\n }\n else rfbLog ( \"rfbSetProtocolVersion(%d,%d) set to invalid values\\n\" , major_ , minor_ ) ;\n }"}
{"idx": 1986, "target": 0, "func": "debugCBContext * debugCB_openContext ( ) {\n debugCBContext * ctx ;\n ctx = malloc ( sizeof ( debugCBContext ) ) ;\n if ( ctx != NULL ) {\n ctx -> magic = 0xC0FFEE ;\n ctx -> serial = debugCB_nextSerial ( ) ;\n ctx -> subCallback = NULL ;\n ctx -> subContext = NULL ;\n # if DEBUG_TMI fprintf ( stderr , \"debugCB:openContext opened[%p] = serial #%d\\n\" , ctx , ctx -> serial ) ;\n # endif }\n return ctx ;\n }"}
{"idx": 1987, "target": 0, "func": "int EVP_CipherFinal_ex ( EVP_CIPHER_CTX * ctx , unsigned char * out , int * outl ) {\n if ( ctx -> encrypt ) return EVP_EncryptFinal_ex ( ctx , out , outl ) ;\n else return EVP_DecryptFinal_ex ( ctx , out , outl ) ;\n }"}
{"idx": 1988, "target": 1, "func": "static int scan ( Scanner * s ) {\n uchar * cursor = s -> cur ;\n char * str , * ptr = NULL ;\n std : s -> tok = cursor ;\n s -> len = 0 ;\n # line 311 \"ext/date/lib/parse_iso_intervals.re\" # line 291 \"ext/date/lib/parse_iso_intervals.c\" {\n YYCTYPE yych ;\n unsigned int yyaccept = 0 ;\n static const unsigned char yybm [ ] = {\n 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 128 , 128 , 128 , 128 , 128 , 128 , 128 , 128 , 128 , 128 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , }\n ;\n YYDEBUG ( 0 , * YYCURSOR ) ;\n if ( ( YYLIMIT - YYCURSOR ) < 20 ) YYFILL ( 20 ) ;\n yych = * YYCURSOR ;\n if ( yych <= ',' ) {\n if ( yych <= '\\n' ) {\n if ( yych <= 0x00 ) goto yy9 ;\n if ( yych <= 0x08 ) goto yy11 ;\n if ( yych <= '\\t' ) goto yy7 ;\n goto yy9 ;\n }\n else {\n if ( yych == ' ' ) goto yy7 ;\n if ( yych <= '+' ) goto yy11 ;\n goto yy7 ;\n }\n }\n else {\n if ( yych <= 'O' ) {\n if ( yych <= '-' ) goto yy11 ;\n if ( yych <= '/' ) goto yy7 ;\n if ( yych <= '9' ) goto yy4 ;\n goto yy11 ;\n }\n else {\n if ( yych <= 'P' ) goto yy5 ;\n if ( yych != 'R' ) goto yy11 ;\n }\n }\n YYDEBUG ( 2 , * YYCURSOR ) ;\n ++ YYCURSOR ;\n if ( ( yych = * YYCURSOR ) <= '/' ) goto yy3 ;\n if ( yych <= '9' ) goto yy98 ;\n yy3 : YYDEBUG ( 3 , * YYCURSOR ) ;\n # line 424 \"ext/date/lib/parse_iso_intervals.re\" {\n add_error ( s , \"Unexpected character\" ) ;\n goto std ;\n }\n # line 366 \"ext/date/lib/parse_iso_intervals.c\" yy4 : YYDEBUG ( 4 , * YYCURSOR ) ;\n yyaccept = 0 ;\n yych = * ( YYMARKER = ++ YYCURSOR ) ;\n if ( yych <= '/' ) goto yy3 ;\n if ( yych <= '9' ) goto yy59 ;\n goto yy3 ;\n yy5 : YYDEBUG ( 5 , * YYCURSOR ) ;\n yyaccept = 1 ;\n yych = * ( YYMARKER = ++ YYCURSOR ) ;\n if ( yych <= '/' ) goto yy6 ;\n if ( yych <= '9' ) goto yy12 ;\n if ( yych == 'T' ) goto yy14 ;\n yy6 : YYDEBUG ( 6 , * YYCURSOR ) ;\n # line 351 \"ext/date/lib/parse_iso_intervals.re\" {\n timelib_sll nr ;\n int in_time = 0 ;\n DEBUG_OUTPUT ( \"period\" ) ;\n TIMELIB_INIT ;\n ptr ++ ;\n do {\n if ( * ptr == 'T' ) {\n in_time = 1 ;\n ptr ++ ;\n }\n if ( * ptr == '\\0' ) {\n add_error ( s , \"Missing expected time part\" ) ;\n break ;\n }\n nr = timelib_get_unsigned_nr ( ( char * * ) & ptr , 12 ) ;\n switch ( * ptr ) {\n case 'Y' : s -> period -> y = nr ;\n break ;\n case 'W' : s -> period -> d = nr * 7 ;\n break ;\n case 'D' : s -> period -> d = nr ;\n break ;\n case 'H' : s -> period -> h = nr ;\n break ;\n case 'S' : s -> period -> s = nr ;\n break ;\n case 'M' : if ( in_time ) {\n s -> period -> i = nr ;\n }\n else {\n s -> period -> m = nr ;\n }\n break ;\n default : add_error ( s , \"Undefined period specifier\" ) ;\n break ;\n }\n ptr ++ ;\n }\n while ( * ptr ) ;\n s -> have_period = 1 ;\n TIMELIB_DEINIT ;\n return TIMELIB_PERIOD ;\n }\n # line 424 \"ext/date/lib/parse_iso_intervals.c\" yy7 : YYDEBUG ( 7 , * YYCURSOR ) ;\n ++ YYCURSOR ;\n YYDEBUG ( 8 , * YYCURSOR ) ;\n # line 413 \"ext/date/lib/parse_iso_intervals.re\" {\n goto std ;\n }\n # line 433 \"ext/date/lib/parse_iso_intervals.c\" yy9 : YYDEBUG ( 9 , * YYCURSOR ) ;\n ++ YYCURSOR ;\n YYDEBUG ( 10 , * YYCURSOR ) ;\n # line 418 \"ext/date/lib/parse_iso_intervals.re\" {\n s -> pos = cursor ;\n s -> line ++ ;\n goto std ;\n }\n # line 443 \"ext/date/lib/parse_iso_intervals.c\" yy11 : YYDEBUG ( 11 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n goto yy3 ;\n yy12 : YYDEBUG ( 12 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= 'L' ) {\n if ( yych <= '9' ) {\n if ( yych >= '0' ) goto yy25 ;\n }\n else {\n if ( yych == 'D' ) goto yy24 ;\n }\n }\n else {\n if ( yych <= 'W' ) {\n if ( yych <= 'M' ) goto yy27 ;\n if ( yych >= 'W' ) goto yy26 ;\n }\n else {\n if ( yych == 'Y' ) goto yy28 ;\n }\n }\n yy13 : YYDEBUG ( 13 , * YYCURSOR ) ;\n YYCURSOR = YYMARKER ;\n if ( yyaccept <= 0 ) {\n goto yy3 ;\n }\n else {\n goto yy6 ;\n }\n yy14 : YYDEBUG ( 14 , * YYCURSOR ) ;\n yyaccept = 1 ;\n yych = * ( YYMARKER = ++ YYCURSOR ) ;\n if ( yybm [ 0 + yych ] & 128 ) {\n goto yy15 ;\n }\n goto yy6 ;\n yy15 : YYDEBUG ( 15 , * YYCURSOR ) ;\n ++ YYCURSOR ;\n if ( ( YYLIMIT - YYCURSOR ) < 2 ) YYFILL ( 2 ) ;\n yych = * YYCURSOR ;\n YYDEBUG ( 16 , * YYCURSOR ) ;\n if ( yybm [ 0 + yych ] & 128 ) {\n goto yy15 ;\n }\n if ( yych <= 'L' ) {\n if ( yych == 'H' ) goto yy19 ;\n goto yy13 ;\n }\n else {\n if ( yych <= 'M' ) goto yy18 ;\n if ( yych != 'S' ) goto yy13 ;\n }\n yy17 : YYDEBUG ( 17 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n goto yy6 ;\n yy18 : YYDEBUG ( 18 , * YYCURSOR ) ;\n yyaccept = 1 ;\n yych = * ( YYMARKER = ++ YYCURSOR ) ;\n if ( yych <= '/' ) goto yy6 ;\n if ( yych <= '9' ) goto yy22 ;\n goto yy6 ;\n yy19 : YYDEBUG ( 19 , * YYCURSOR ) ;\n yyaccept = 1 ;\n yych = * ( YYMARKER = ++ YYCURSOR ) ;\n if ( yych <= '/' ) goto yy6 ;\n if ( yych >= ':' ) goto yy6 ;\n yy20 : YYDEBUG ( 20 , * YYCURSOR ) ;\n ++ YYCURSOR ;\n if ( ( YYLIMIT - YYCURSOR ) < 2 ) YYFILL ( 2 ) ;\n yych = * YYCURSOR ;\n YYDEBUG ( 21 , * YYCURSOR ) ;\n if ( yych <= 'L' ) {\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '9' ) goto yy20 ;\n goto yy13 ;\n }\n else {\n if ( yych <= 'M' ) goto yy18 ;\n if ( yych == 'S' ) goto yy17 ;\n goto yy13 ;\n }\n yy22 : YYDEBUG ( 22 , * YYCURSOR ) ;\n ++ YYCURSOR ;\n if ( YYLIMIT <= YYCURSOR ) YYFILL ( 1 ) ;\n yych = * YYCURSOR ;\n YYDEBUG ( 23 , * YYCURSOR ) ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '9' ) goto yy22 ;\n if ( yych == 'S' ) goto yy17 ;\n goto yy13 ;\n yy24 : YYDEBUG ( 24 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych == 'T' ) goto yy14 ;\n goto yy6 ;\n yy25 : YYDEBUG ( 25 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= 'L' ) {\n if ( yych <= '9' ) {\n if ( yych <= '/' ) goto yy13 ;\n goto yy35 ;\n }\n else {\n if ( yych == 'D' ) goto yy24 ;\n goto yy13 ;\n }\n }\n else {\n if ( yych <= 'W' ) {\n if ( yych <= 'M' ) goto yy27 ;\n if ( yych <= 'V' ) goto yy13 ;\n }\n else {\n if ( yych == 'Y' ) goto yy28 ;\n goto yy13 ;\n }\n }\n yy26 : YYDEBUG ( 26 , * YYCURSOR ) ;\n yyaccept = 1 ;\n yych = * ( YYMARKER = ++ YYCURSOR ) ;\n if ( yych <= '/' ) goto yy6 ;\n if ( yych <= '9' ) goto yy33 ;\n if ( yych == 'T' ) goto yy14 ;\n goto yy6 ;\n yy27 : YYDEBUG ( 27 , * YYCURSOR ) ;\n yyaccept = 1 ;\n yych = * ( YYMARKER = ++ YYCURSOR ) ;\n if ( yych <= '/' ) goto yy6 ;\n if ( yych <= '9' ) goto yy31 ;\n if ( yych == 'T' ) goto yy14 ;\n goto yy6 ;\n yy28 : YYDEBUG ( 28 , * YYCURSOR ) ;\n yyaccept = 1 ;\n yych = * ( YYMARKER = ++ YYCURSOR ) ;\n if ( yych <= '/' ) goto yy6 ;\n if ( yych <= '9' ) goto yy29 ;\n if ( yych == 'T' ) goto yy14 ;\n goto yy6 ;\n yy29 : YYDEBUG ( 29 , * YYCURSOR ) ;\n ++ YYCURSOR ;\n if ( ( YYLIMIT - YYCURSOR ) < 3 ) YYFILL ( 3 ) ;\n yych = * YYCURSOR ;\n YYDEBUG ( 30 , * YYCURSOR ) ;\n if ( yych <= 'D' ) {\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '9' ) goto yy29 ;\n if ( yych <= 'C' ) goto yy13 ;\n goto yy24 ;\n }\n else {\n if ( yych <= 'M' ) {\n if ( yych <= 'L' ) goto yy13 ;\n goto yy27 ;\n }\n else {\n if ( yych == 'W' ) goto yy26 ;\n goto yy13 ;\n }\n }\n yy31 : YYDEBUG ( 31 , * YYCURSOR ) ;\n ++ YYCURSOR ;\n if ( ( YYLIMIT - YYCURSOR ) < 3 ) YYFILL ( 3 ) ;\n yych = * YYCURSOR ;\n YYDEBUG ( 32 , * YYCURSOR ) ;\n if ( yych <= 'C' ) {\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '9' ) goto yy31 ;\n goto yy13 ;\n }\n else {\n if ( yych <= 'D' ) goto yy24 ;\n if ( yych == 'W' ) goto yy26 ;\n goto yy13 ;\n }\n yy33 : YYDEBUG ( 33 , * YYCURSOR ) ;\n ++ YYCURSOR ;\n if ( ( YYLIMIT - YYCURSOR ) < 3 ) YYFILL ( 3 ) ;\n yych = * YYCURSOR ;\n YYDEBUG ( 34 , * YYCURSOR ) ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '9' ) goto yy33 ;\n if ( yych == 'D' ) goto yy24 ;\n goto yy13 ;\n yy35 : YYDEBUG ( 35 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= 'L' ) {\n if ( yych <= '9' ) {\n if ( yych <= '/' ) goto yy13 ;\n }\n else {\n if ( yych == 'D' ) goto yy24 ;\n goto yy13 ;\n }\n }\n else {\n if ( yych <= 'W' ) {\n if ( yych <= 'M' ) goto yy27 ;\n if ( yych <= 'V' ) goto yy13 ;\n goto yy26 ;\n }\n else {\n if ( yych == 'Y' ) goto yy28 ;\n goto yy13 ;\n }\n }\n YYDEBUG ( 36 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych != '-' ) goto yy39 ;\n YYDEBUG ( 37 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '0' ) goto yy40 ;\n if ( yych <= '1' ) goto yy41 ;\n goto yy13 ;\n yy38 : YYDEBUG ( 38 , * YYCURSOR ) ;\n ++ YYCURSOR ;\n if ( ( YYLIMIT - YYCURSOR ) < 3 ) YYFILL ( 3 ) ;\n yych = * YYCURSOR ;\n yy39 : YYDEBUG ( 39 , * YYCURSOR ) ;\n if ( yych <= 'L' ) {\n if ( yych <= '9' ) {\n if ( yych <= '/' ) goto yy13 ;\n goto yy38 ;\n }\n else {\n if ( yych == 'D' ) goto yy24 ;\n goto yy13 ;\n }\n }\n else {\n if ( yych <= 'W' ) {\n if ( yych <= 'M' ) goto yy27 ;\n if ( yych <= 'V' ) goto yy13 ;\n goto yy26 ;\n }\n else {\n if ( yych == 'Y' ) goto yy28 ;\n goto yy13 ;\n }\n }\n yy40 : YYDEBUG ( 40 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '9' ) goto yy42 ;\n goto yy13 ;\n yy41 : YYDEBUG ( 41 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= '3' ) goto yy13 ;\n yy42 : YYDEBUG ( 42 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych != '-' ) goto yy13 ;\n YYDEBUG ( 43 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '0' ) goto yy44 ;\n if ( yych <= '2' ) goto yy45 ;\n if ( yych <= '3' ) goto yy46 ;\n goto yy13 ;\n yy44 : YYDEBUG ( 44 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '9' ) goto yy47 ;\n goto yy13 ;\n yy45 : YYDEBUG ( 45 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '9' ) goto yy47 ;\n goto yy13 ;\n yy46 : YYDEBUG ( 46 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= '2' ) goto yy13 ;\n yy47 : YYDEBUG ( 47 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych != 'T' ) goto yy13 ;\n YYDEBUG ( 48 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '1' ) goto yy49 ;\n if ( yych <= '2' ) goto yy50 ;\n goto yy13 ;\n yy49 : YYDEBUG ( 49 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '9' ) goto yy51 ;\n goto yy13 ;\n yy50 : YYDEBUG ( 50 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= '5' ) goto yy13 ;\n yy51 : YYDEBUG ( 51 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych != ':' ) goto yy13 ;\n YYDEBUG ( 52 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= '6' ) goto yy13 ;\n YYDEBUG ( 53 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= ':' ) goto yy13 ;\n YYDEBUG ( 54 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych != ':' ) goto yy13 ;\n YYDEBUG ( 55 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= '6' ) goto yy13 ;\n YYDEBUG ( 56 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= ':' ) goto yy13 ;\n YYDEBUG ( 57 , * YYCURSOR ) ;\n ++ YYCURSOR ;\n YYDEBUG ( 58 , * YYCURSOR ) ;\n # line 393 \"ext/date/lib/parse_iso_intervals.re\" {\n DEBUG_OUTPUT ( \"combinedrep\" ) ;\n TIMELIB_INIT ;\n s -> period -> y = timelib_get_unsigned_nr ( ( char * * ) & ptr , 4 ) ;\n ptr ++ ;\n s -> period -> m = timelib_get_unsigned_nr ( ( char * * ) & ptr , 2 ) ;\n ptr ++ ;\n s -> period -> d = timelib_get_unsigned_nr ( ( char * * ) & ptr , 2 ) ;\n ptr ++ ;\n s -> period -> h = timelib_get_unsigned_nr ( ( char * * ) & ptr , 2 ) ;\n ptr ++ ;\n s -> period -> i = timelib_get_unsigned_nr ( ( char * * ) & ptr , 2 ) ;\n ptr ++ ;\n s -> period -> s = timelib_get_unsigned_nr ( ( char * * ) & ptr , 2 ) ;\n s -> have_period = 1 ;\n TIMELIB_DEINIT ;\n return TIMELIB_PERIOD ;\n }\n # line 792 \"ext/date/lib/parse_iso_intervals.c\" yy59 : YYDEBUG ( 59 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= ':' ) goto yy13 ;\n YYDEBUG ( 60 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= ':' ) goto yy13 ;\n YYDEBUG ( 61 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) {\n if ( yych == '-' ) goto yy64 ;\n goto yy13 ;\n }\n else {\n if ( yych <= '0' ) goto yy62 ;\n if ( yych <= '1' ) goto yy63 ;\n goto yy13 ;\n }\n yy62 : YYDEBUG ( 62 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '0' ) goto yy13 ;\n if ( yych <= '9' ) goto yy85 ;\n goto yy13 ;\n yy63 : YYDEBUG ( 63 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '2' ) goto yy85 ;\n goto yy13 ;\n yy64 : YYDEBUG ( 64 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '0' ) goto yy65 ;\n if ( yych <= '1' ) goto yy66 ;\n goto yy13 ;\n yy65 : YYDEBUG ( 65 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '0' ) goto yy13 ;\n if ( yych <= '9' ) goto yy67 ;\n goto yy13 ;\n yy66 : YYDEBUG ( 66 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= '3' ) goto yy13 ;\n yy67 : YYDEBUG ( 67 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych != '-' ) goto yy13 ;\n YYDEBUG ( 68 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '0' ) goto yy69 ;\n if ( yych <= '2' ) goto yy70 ;\n if ( yych <= '3' ) goto yy71 ;\n goto yy13 ;\n yy69 : YYDEBUG ( 69 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '0' ) goto yy13 ;\n if ( yych <= '9' ) goto yy72 ;\n goto yy13 ;\n yy70 : YYDEBUG ( 70 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '9' ) goto yy72 ;\n goto yy13 ;\n yy71 : YYDEBUG ( 71 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= '2' ) goto yy13 ;\n yy72 : YYDEBUG ( 72 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych != 'T' ) goto yy13 ;\n YYDEBUG ( 73 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '1' ) goto yy74 ;\n if ( yych <= '2' ) goto yy75 ;\n goto yy13 ;\n yy74 : YYDEBUG ( 74 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '9' ) goto yy76 ;\n goto yy13 ;\n yy75 : YYDEBUG ( 75 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= '5' ) goto yy13 ;\n yy76 : YYDEBUG ( 76 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych != ':' ) goto yy13 ;\n YYDEBUG ( 77 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= '6' ) goto yy13 ;\n YYDEBUG ( 78 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= ':' ) goto yy13 ;\n YYDEBUG ( 79 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych != ':' ) goto yy13 ;\n YYDEBUG ( 80 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= '6' ) goto yy13 ;\n YYDEBUG ( 81 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= ':' ) goto yy13 ;\n YYDEBUG ( 82 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych != 'Z' ) goto yy13 ;\n yy83 : YYDEBUG ( 83 , * YYCURSOR ) ;\n ++ YYCURSOR ;\n YYDEBUG ( 84 , * YYCURSOR ) ;\n # line 327 \"ext/date/lib/parse_iso_intervals.re\" {\n timelib_time * current ;\n if ( s -> have_date || s -> have_period ) {\n current = s -> end ;\n s -> have_end_date = 1 ;\n }\n else {\n current = s -> begin ;\n s -> have_begin_date = 1 ;\n }\n DEBUG_OUTPUT ( \"datetimebasic | datetimeextended\" ) ;\n TIMELIB_INIT ;\n current -> y = timelib_get_nr ( ( char * * ) & ptr , 4 ) ;\n current -> m = timelib_get_nr ( ( char * * ) & ptr , 2 ) ;\n current -> d = timelib_get_nr ( ( char * * ) & ptr , 2 ) ;\n current -> h = timelib_get_nr ( ( char * * ) & ptr , 2 ) ;\n current -> i = timelib_get_nr ( ( char * * ) & ptr , 2 ) ;\n current -> s = timelib_get_nr ( ( char * * ) & ptr , 2 ) ;\n s -> have_date = 1 ;\n TIMELIB_DEINIT ;\n return TIMELIB_ISO_DATE ;\n }\n # line 944 \"ext/date/lib/parse_iso_intervals.c\" yy85 : YYDEBUG ( 85 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '0' ) goto yy86 ;\n if ( yych <= '2' ) goto yy87 ;\n if ( yych <= '3' ) goto yy88 ;\n goto yy13 ;\n yy86 : YYDEBUG ( 86 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '0' ) goto yy13 ;\n if ( yych <= '9' ) goto yy89 ;\n goto yy13 ;\n yy87 : YYDEBUG ( 87 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '9' ) goto yy89 ;\n goto yy13 ;\n yy88 : YYDEBUG ( 88 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= '2' ) goto yy13 ;\n yy89 : YYDEBUG ( 89 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych != 'T' ) goto yy13 ;\n YYDEBUG ( 90 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '1' ) goto yy91 ;\n if ( yych <= '2' ) goto yy92 ;\n goto yy13 ;\n yy91 : YYDEBUG ( 91 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '9' ) goto yy93 ;\n goto yy13 ;\n yy92 : YYDEBUG ( 92 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= '5' ) goto yy13 ;\n yy93 : YYDEBUG ( 93 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= '6' ) goto yy13 ;\n YYDEBUG ( 94 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= ':' ) goto yy13 ;\n YYDEBUG ( 95 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= '6' ) goto yy13 ;\n YYDEBUG ( 96 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= ':' ) goto yy13 ;\n YYDEBUG ( 97 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych == 'Z' ) goto yy83 ;\n goto yy13 ;\n yy98 : YYDEBUG ( 98 , * YYCURSOR ) ;\n ++ YYCURSOR ;\n if ( YYLIMIT <= YYCURSOR ) YYFILL ( 1 ) ;\n yych = * YYCURSOR ;\n YYDEBUG ( 99 , * YYCURSOR ) ;\n if ( yych <= '/' ) goto yy100 ;\n if ( yych <= '9' ) goto yy98 ;\n yy100 : YYDEBUG ( 100 , * YYCURSOR ) ;\n # line 316 \"ext/date/lib/parse_iso_intervals.re\" {\n DEBUG_OUTPUT ( \"recurrences\" ) ;\n TIMELIB_INIT ;\n ptr ++ ;\n s -> recurrences = timelib_get_unsigned_nr ( ( char * * ) & ptr , 9 ) ;\n TIMELIB_DEINIT ;\n s -> have_recurrences = 1 ;\n return TIMELIB_PERIOD ;\n }\n # line 1032 \"ext/date/lib/parse_iso_intervals.c\" }\n # line 428 \"ext/date/lib/parse_iso_intervals.re\" }"}
{"idx": 1989, "target": 1, "func": "SPL_METHOD ( SplFileInfo , setInfoClass ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n zend_class_entry * ce = spl_ce_SplFileInfo ;\n zend_error_handling error_handling ;\n zend_replace_error_handling ( EH_THROW , spl_ce_UnexpectedValueException , & error_handling TSRMLS_CC ) ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"|C\" , & ce ) == SUCCESS ) {\n intern -> info_class = ce ;\n }\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n }"}
{"idx": 1990, "target": 0, "func": "static unsigned int hb_icu_unicode_decompose_compatibility ( hb_unicode_funcs_t * ufuncs HB_UNUSED , hb_codepoint_t u , hb_codepoint_t * decomposed , void * user_data HB_UNUSED ) {\n UChar utf16 [ 2 ] , normalized [ 2 * HB_UNICODE_MAX_DECOMPOSITION_LEN + 1 ] ;\n unsigned int len ;\n int32_t utf32_len ;\n hb_bool_t err ;\n UErrorCode icu_err ;\n len = 0 ;\n err = false ;\n U16_APPEND ( utf16 , len , ARRAY_LENGTH ( utf16 ) , u , err ) ;\n if ( err ) return 0 ;\n icu_err = U_ZERO_ERROR ;\n len = unorm_normalize ( utf16 , len , UNORM_NFKD , 0 , normalized , ARRAY_LENGTH ( normalized ) , & icu_err ) ;\n if ( icu_err ) return 0 ;\n icu_err = U_ZERO_ERROR ;\n u_strToUTF32 ( ( UChar32 * ) decomposed , HB_UNICODE_MAX_DECOMPOSITION_LEN , & utf32_len , normalized , len , & icu_err ) ;\n if ( icu_err ) return 0 ;\n return utf32_len ;\n }"}
{"idx": 1991, "target": 0, "func": "const char * proto_registrar_get_abbrev ( const int n ) {\n header_field_info * hfinfo ;\n PROTO_REGISTRAR_GET_NTH ( n , hfinfo ) ;\n return hfinfo -> abbrev ;\n }"}
{"idx": 1992, "target": 0, "func": "static pdf_obj * resolve_properties ( fz_context * ctx , pdf_csi * csi , pdf_obj * obj ) {\n if ( pdf_is_name ( ctx , obj ) ) return pdf_dict_get ( ctx , pdf_dict_get ( ctx , csi -> rdb , PDF_NAME_Properties ) , obj ) ;\n else return obj ;\n }"}
{"idx": 1993, "target": 0, "func": "static size_t fd_boot_image_size ( int media_type ) {\n switch ( media_type ) {\n case BOOT_MEDIA_1_2M_DISKETTE : return ( FD_1_2M_SIZE ) ;\n case BOOT_MEDIA_1_44M_DISKETTE : return ( FD_1_44M_SIZE ) ;\n case BOOT_MEDIA_2_88M_DISKETTE : return ( FD_2_88M_SIZE ) ;\n default : return ( 0 ) ;\n }\n }"}
{"idx": 1994, "target": 0, "func": "static void set_connfilter ( GtkWidget * widget , gpointer * data ) {\n gboolean * value ;\n DEBUG_MSG ( \"set_connfilter\" ) ;\n value = ( gboolean * ) data ;\n * value = gtk_toggle_button_get_active ( GTK_TOGGLE_BUTTON ( widget ) ) ;\n gtk_tree_model_filter_refilter ( GTK_TREE_MODEL_FILTER ( filter . model ) ) ;\n }"}
{"idx": 1995, "target": 0, "func": "int qemuMonitorJSONAddPCIHostDevice ( qemuMonitorPtr mon ATTRIBUTE_UNUSED , virDomainDevicePCIAddress * hostAddr ATTRIBUTE_UNUSED , virDomainDevicePCIAddress * guestAddr ATTRIBUTE_UNUSED ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"pci_add not suppported in JSON mode\" ) ) ;\n return - 1 ;\n }"}
{"idx": 1996, "target": 0, "func": "static int dissect_CPMConnect ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * parent_tree , gboolean in , void * private_data ) {\n proto_item * ti ;\n proto_tree * tree ;\n gint offset = 16 ;\n guint len ;\n guint32 version ;\n struct message_data * data = NULL ;\n struct mswsp_ct * ct = NULL ;\n ti = proto_tree_add_item ( parent_tree , hf_mswsp_msg , tvb , offset , - 1 , ENC_NA ) ;\n tree = proto_item_add_subtree ( ti , ett_mswsp_msg ) ;\n proto_item_set_text ( ti , \"CPMConnect%s\" , in ? \"In\" : \"Out\" ) ;\n col_append_str ( pinfo -> cinfo , COL_INFO , \"Connect\" ) ;\n ti = proto_tree_add_item_ret_uint ( tree , hf_mswsp_msg_Connect_Version , tvb , offset , 4 , ENC_LITTLE_ENDIAN , & version ) ;\n ct = get_create_converstation_data ( pinfo ) ;\n if ( ct ) {\n data = find_or_create_message_data ( ct , pinfo , 0xC8 , in , private_data ) ;\n if ( data ) {\n data -> content . version = version ;\n }\n }\n offset += 4 ;\n if ( in ) {\n guint32 blob_size1_off , blob_size2_off ;\n proto_tree * pad_tree ;\n pad_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_mswsp_pad , & ti , \"Padding\" ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_ConnectIn_ClientIsRemote , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n blob_size1_off = offset ;\n offset += 4 ;\n offset = parse_padding ( tvb , offset , 8 , pad_tree , \"_paddingcbBlob2\" ) ;\n blob_size2_off = offset ;\n offset += 4 ;\n offset = parse_padding ( tvb , offset , 16 , pad_tree , \"_padding\" ) ;\n len = tvb_unicode_strsize ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_ConnectIn_MachineName , tvb , offset , len , ENC_LITTLE_ENDIAN | ENC_UCS_2 ) ;\n offset += len ;\n len = tvb_unicode_strsize ( tvb , offset ) ;\n ti = proto_tree_add_item ( tree , hf_mswsp_msg_ConnectIn_UserName , tvb , offset , len , ENC_LITTLE_ENDIAN | ENC_UCS_2 ) ;\n offset += len ;\n offset = parse_padding ( tvb , offset , 8 , pad_tree , \"_paddingcPropSets\" ) ;\n offset = parse_PropertySetArray ( tvb , pinfo , offset , blob_size1_off , tree , pad_tree , \"PropSets\" ) ;\n offset = parse_padding ( tvb , offset , 8 , pad_tree , \"paddingExtPropset\" ) ;\n offset = parse_PropertySetArray ( tvb , pinfo , offset , blob_size2_off , tree , pad_tree , \"ExtPropset\" ) ;\n offset = parse_padding ( tvb , offset , 8 , pad_tree , \"???\" ) ;\n DISSECTOR_ASSERT ( offset == ( int ) tvb_reported_length ( tvb ) ) ;\n proto_tree_move_item ( tree , ti , proto_tree_get_parent ( pad_tree ) ) ;\n }\n else {\n }\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 1997, "target": 0, "func": "static void dissect_rsvp_session ( proto_item * ti , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int type , rsvp_conversation_info * rsvph ) {\n proto_item * hidden_item ;\n int offset2 = offset + 4 ;\n proto_item_set_text ( ti , \"%s\" , summary_session ( tvb , offset ) ) ;\n switch ( type ) {\n case RSVP_SESSION_TYPE_IPV4 : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"1 - IPv4\" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_filter [ RSVPF_SESSION_IP ] , tvb , offset2 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_filter [ RSVPF_SESSION_PROTO ] , tvb , offset2 + 4 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_session_flags , tvb , offset2 + 5 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_filter [ RSVPF_SESSION_PORT ] , tvb , offset2 + 6 , 2 , ENC_BIG_ENDIAN ) ;\n rsvph -> session_type = RSVP_SESSION_TYPE_IPV4 ;\n set_address_tvb ( & rsvph -> destination , AT_IPv4 , 4 , tvb , offset2 ) ;\n rsvph -> protocol = tvb_get_guint8 ( tvb , offset2 + 4 ) ;\n rsvph -> udp_dest_port = tvb_get_ntohs ( tvb , offset2 + 6 ) ;\n break ;\n case RSVP_SESSION_TYPE_IPV6 : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"2 - IPv6\" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_session_destination_address , tvb , offset2 , 16 , ENC_NA ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_session_protocol , tvb , offset2 + 16 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_session_flags , tvb , offset2 + 17 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_session_destination_port , tvb , offset2 + 18 , 2 , ENC_BIG_ENDIAN ) ;\n rsvph -> session_type = RSVP_SESSION_TYPE_IPV6 ;\n break ;\n case RSVP_SESSION_TYPE_IPV4_LSP : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"7 - IPv4 LSP\" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_filter [ RSVPF_SESSION_IP ] , tvb , offset2 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_filter [ RSVPF_SESSION_SHORT_CALL_ID ] , tvb , offset2 + 4 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_filter [ RSVPF_SESSION_TUNNEL_ID ] , tvb , offset2 + 6 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_extended_tunnel_id , tvb , offset2 + 8 , 4 , tvb_get_ntohl ( tvb , offset2 + 8 ) , \"%u (%s)\" , tvb_get_ntohl ( tvb , offset2 + 8 ) , tvb_ip_to_str ( tvb , offset2 + 8 ) ) ;\n hidden_item = proto_tree_add_item ( rsvp_object_tree , hf_rsvp_filter [ RSVPF_SESSION_EXT_TUNNEL_ID ] , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n rsvph -> session_type = RSVP_SESSION_TYPE_IPV4_LSP ;\n set_address_tvb ( & rsvph -> destination , AT_IPv4 , 4 , tvb , offset2 ) ;\n rsvph -> udp_dest_port = tvb_get_ntohs ( tvb , offset2 + 6 ) ;\n rsvph -> ext_tunnel_id = tvb_get_ntohl ( tvb , offset2 + 8 ) ;\n break ;\n case RSVP_SESSION_TYPE_IPV6_LSP : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"8 - IPv6 LSP\" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_filter [ RSVPF_SESSION_IP ] , tvb , offset2 , 16 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_filter [ RSVPF_SESSION_SHORT_CALL_ID ] , tvb , offset2 + 16 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_filter [ RSVPF_SESSION_TUNNEL_ID ] , tvb , offset2 + 18 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_extended_tunnel_ipv6 , tvb , offset2 + 20 , 16 , ENC_NA ) ;\n proto_item_set_text ( ti , \"Extended Tunnel ID: (%s)\" , tvb_ip6_to_str ( tvb , offset2 + 20 ) ) ;\n hidden_item = proto_tree_add_item ( rsvp_object_tree , hf_rsvp_filter [ RSVPF_SESSION_EXT_TUNNEL_ID_IPV6 ] , tvb , offset2 + 20 , 16 , ENC_NA ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n rsvph -> session_type = RSVP_SESSION_TYPE_IPV6_LSP ;\n set_address_tvb ( & rsvph -> destination , AT_IPv6 , 16 , tvb , offset2 ) ;\n rsvph -> udp_dest_port = tvb_get_ntohs ( tvb , offset2 + 18 ) ;\n rsvph -> ext_tunnel_id_ipv6_pre = tvb_get_ntoh64 ( tvb , offset2 + 20 ) ;\n rsvph -> ext_tunnel_id_ipv6_post = tvb_get_ntoh64 ( tvb , offset2 + 28 ) ;\n break ;\n case RSVP_SESSION_TYPE_AGGREGATE_IPV4 : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"9 - IPv4 Aggregate\" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_filter [ RSVPF_SESSION_IP ] , tvb , offset2 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_session_dscp , tvb , offset2 + 7 , 1 , ENC_BIG_ENDIAN ) ;\n rsvph -> session_type = RSVP_SESSION_TYPE_AGGREGATE_IPV4 ;\n set_address_tvb ( & rsvph -> destination , AT_IPv4 , 4 , tvb , offset2 ) ;\n rsvph -> dscp = tvb_get_guint8 ( tvb , offset2 + 7 ) ;\n rsvph -> ext_tunnel_id = tvb_get_ntohl ( tvb , offset2 + 8 ) ;\n break ;\n case RSVP_SESSION_TYPE_IPV4_UNI : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"11 - IPv4 UNI\" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_filter [ RSVPF_SESSION_IP ] , tvb , offset2 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_filter [ RSVPF_SESSION_TUNNEL_ID ] , tvb , offset2 + 6 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_session_extended_ipv4_address , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n hidden_item = proto_tree_add_item ( rsvp_object_tree , hf_rsvp_filter [ RSVPF_SESSION_EXT_TUNNEL_ID ] , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n rsvph -> session_type = RSVP_SESSION_TYPE_IPV4_UNI ;\n set_address_tvb ( & rsvph -> destination , AT_IPv4 , 4 , tvb , offset2 ) ;\n rsvph -> udp_dest_port = tvb_get_ntohs ( tvb , offset2 + 6 ) ;\n rsvph -> ext_tunnel_id = tvb_get_ntohl ( tvb , offset2 + 8 ) ;\n break ;\n case RSVP_SESSION_TYPE_P2MP_LSP_TUNNEL_IPV4 : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , RSVP_SESSION_TYPE_P2MP_LSP_TUNNEL_IPV4 , \"13 - IPv4 P2MP LSP TUNNEL\" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_filter [ RSVPF_SESSION_IP ] , tvb , offset2 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_filter [ RSVPF_SESSION_TUNNEL_ID ] , tvb , offset2 + 6 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_extended_tunnel , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n hidden_item = proto_tree_add_item ( rsvp_object_tree , hf_rsvp_filter [ RSVPF_SESSION_EXT_TUNNEL_ID ] , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n rsvph -> session_type = RSVP_SESSION_TYPE_P2MP_LSP_TUNNEL_IPV4 ;\n set_address_tvb ( & rsvph -> destination , AT_IPv4 , 4 , tvb , offset2 ) ;\n rsvph -> udp_dest_port = tvb_get_ntohs ( tvb , offset2 + 6 ) ;\n rsvph -> ext_tunnel_id = tvb_get_ntohl ( tvb , offset2 + 8 ) ;\n break ;\n case RSVP_SESSION_TYPE_IPV4_E_NNI : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"15 - IPv4 E-NNI\" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_filter [ RSVPF_SESSION_IP ] , tvb , offset2 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_filter [ RSVPF_SESSION_TUNNEL_ID ] , tvb , offset2 + 6 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_session_extended_ipv4_address , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n hidden_item = proto_tree_add_item ( rsvp_object_tree , hf_rsvp_filter [ RSVPF_SESSION_EXT_TUNNEL_ID ] , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n rsvph -> session_type = RSVP_SESSION_TYPE_IPV4_E_NNI ;\n set_address_tvb ( & rsvph -> destination , AT_IPv4 , 4 , tvb , offset2 ) ;\n rsvph -> udp_dest_port = tvb_get_ntohs ( tvb , offset2 + 6 ) ;\n rsvph -> ext_tunnel_id = tvb_get_ntohl ( tvb , offset2 + 8 ) ;\n break ;\n default : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"Unknown (%u)\" , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_session_data , tvb , offset2 , obj_length - 4 , ENC_NA ) ;\n break ;\n }\n }"}
{"idx": 1998, "target": 0, "func": "static guint16 de_gcc_state_attr ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n proto_tree_add_item ( tree , hf_gsm_a_dtap_gcc_state_attr , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_gcc_state_attr_da , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_gcc_state_attr_ua , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_gcc_state_attr_comm , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_gcc_state_attr_oi , tvb , offset , 1 , ENC_NA ) ;\n return 1 ;\n }"}
{"idx": 1999, "target": 0, "func": "static inline key_ref_t __key_update ( key_ref_t key_ref , struct key_preparsed_payload * prep ) {\n struct key * key = key_ref_to_ptr ( key_ref ) ;\n int ret ;\n ret = key_permission ( key_ref , KEY_NEED_WRITE ) ;\n if ( ret < 0 ) goto error ;\n ret = - EEXIST ;\n if ( ! key -> type -> update ) goto error ;\n down_write ( & key -> sem ) ;\n ret = key -> type -> update ( key , prep ) ;\n if ( ret == 0 ) clear_bit ( KEY_FLAG_NEGATIVE , & key -> flags ) ;\n up_write ( & key -> sem ) ;\n if ( ret < 0 ) goto error ;\n out : return key_ref ;\n error : key_put ( key ) ;\n key_ref = ERR_PTR ( ret ) ;\n goto out ;\n }"}
{"idx": 2000, "target": 0, "func": "static int unistim_calls_packet ( void * ptr _U_ , packet_info * pinfo , epan_dissect_t * edt _U_ , const void * unistim_info ) {\n voip_calls_tapinfo_t * tapinfo = & the_tapinfo_struct ;\n voip_calls_info_t * tmp_listinfo ;\n voip_calls_info_t * callsinfo = NULL ;\n unistim_info_t * tmp_unistim_info = NULL ;\n GList * list = NULL ;\n GString * g_tmp = NULL ;\n const gchar * frame_label = NULL ;\n gchar * comment = NULL ;\n const unistim_info_t * pi = ( const unistim_info_t * ) unistim_info ;\n g_tmp = g_string_new ( NULL ) ;\n list = g_list_first ( tapinfo -> callsinfo_list ) ;\n while ( list ) {\n tmp_listinfo = ( voip_calls_info_t * ) list -> data ;\n if ( tmp_listinfo -> protocol == VOIP_UNISTIM ) {\n tmp_unistim_info = ( unistim_info_t * ) tmp_listinfo -> prot_info ;\n if ( pi -> termid != 0 ) {\n if ( tmp_unistim_info -> termid == pi -> termid ) {\n if ( tmp_listinfo -> call_state == VOIP_COMPLETED || tmp_listinfo -> call_state == VOIP_UNKNOWN ) {\n }\n else {\n callsinfo = ( voip_calls_info_t * ) ( list -> data ) ;\n break ;\n }\n }\n }\n else {\n if ( ADDRESSES_EQUAL ( & tmp_unistim_info -> it_ip , & pinfo -> dst ) && ADDRESSES_EQUAL ( & tmp_unistim_info -> ni_ip , & pinfo -> src ) && ( tmp_unistim_info -> it_port == pinfo -> destport ) ) {\n if ( tmp_listinfo -> call_state == VOIP_COMPLETED || tmp_listinfo -> call_state == VOIP_UNKNOWN ) {\n }\n else {\n callsinfo = ( voip_calls_info_t * ) ( list -> data ) ;\n break ;\n }\n }\n else if ( ADDRESSES_EQUAL ( & tmp_unistim_info -> it_ip , & pinfo -> src ) && ADDRESSES_EQUAL ( & tmp_unistim_info -> ni_ip , & pinfo -> dst ) && ( tmp_unistim_info -> it_port == pinfo -> srcport ) ) {\n if ( tmp_listinfo -> call_state == VOIP_COMPLETED || tmp_listinfo -> call_state == VOIP_UNKNOWN ) {\n }\n else {\n callsinfo = ( voip_calls_info_t * ) ( list -> data ) ;\n break ;\n }\n }\n }\n }\n list = g_list_next ( list ) ;\n }\n if ( pi -> payload_type == 2 || pi -> payload_type == 1 ) {\n if ( pi -> key_state == 1 || pi -> hook_state == 1 ) {\n if ( callsinfo == NULL ) {\n callsinfo = ( voip_calls_info_t * ) g_malloc0 ( sizeof ( voip_calls_info_t ) ) ;\n callsinfo -> call_active_state = VOIP_ACTIVE ;\n callsinfo -> call_state = VOIP_CALL_SETUP ;\n callsinfo -> from_identity = g_strdup_printf ( \"%x\" , pi -> termid ) ;\n callsinfo -> to_identity = g_strdup ( \"UNKNOWN\" ) ;\n COPY_ADDRESS ( & ( callsinfo -> initial_speaker ) , & ( pinfo -> src ) ) ;\n callsinfo -> selected = FALSE ;\n callsinfo -> start_fd = pinfo -> fd ;\n callsinfo -> start_rel_ts = pinfo -> rel_ts ;\n callsinfo -> protocol = VOIP_UNISTIM ;\n callsinfo -> prot_info = g_malloc ( sizeof ( unistim_info_t ) ) ;\n tmp_unistim_info = ( unistim_info_t * ) callsinfo -> prot_info ;\n tmp_unistim_info -> rudp_type = 0 ;\n tmp_unistim_info -> payload_type = 0 ;\n tmp_unistim_info -> sequence = pi -> sequence ;\n tmp_unistim_info -> termid = pi -> termid ;\n tmp_unistim_info -> key_val = - 1 ;\n tmp_unistim_info -> key_state = - 1 ;\n tmp_unistim_info -> hook_state = - 1 ;\n tmp_unistim_info -> stream_connect = - 1 ;\n tmp_unistim_info -> trans_connect = - 1 ;\n tmp_unistim_info -> set_termid = - 1 ;\n tmp_unistim_info -> string_data = NULL ;\n tmp_unistim_info -> key_buffer = NULL ;\n COPY_ADDRESS ( & ( tmp_unistim_info -> it_ip ) , & ( pi -> it_ip ) ) ;\n COPY_ADDRESS ( & ( tmp_unistim_info -> ni_ip ) , & ( pi -> ni_ip ) ) ;\n tmp_unistim_info -> it_port = pi -> it_port ;\n callsinfo -> free_prot_info = g_free ;\n callsinfo -> npackets = 0 ;\n callsinfo -> call_num = tapinfo -> ncalls ++ ;\n tapinfo -> callsinfo_list = g_list_prepend ( tapinfo -> callsinfo_list , callsinfo ) ;\n }\n else {\n tmp_unistim_info = ( unistim_info_t * ) callsinfo -> prot_info ;\n tmp_unistim_info -> sequence = pi -> sequence ;\n }\n callsinfo -> stop_fd = pinfo -> fd ;\n callsinfo -> stop_rel_ts = pinfo -> rel_ts ;\n ++ ( callsinfo -> npackets ) ;\n ++ ( tapinfo -> npackets ) ;\n if ( pi -> key_val >= 0 && pi -> key_val <= 11 ) {\n if ( tmp_unistim_info -> key_buffer != NULL ) {\n g_string_assign ( g_tmp , tmp_unistim_info -> key_buffer ) ;\n if ( pi -> key_val == 10 ) {\n tmp_unistim_info -> key_buffer = g_strdup_printf ( \"%s*\" , g_tmp -> str ) ;\n }\n else if ( pi -> key_val == 11 ) {\n tmp_unistim_info -> key_buffer = g_strdup_printf ( \"%s#\" , g_tmp -> str ) ;\n }\n else {\n tmp_unistim_info -> key_buffer = g_strdup_printf ( \"%s%d\" , g_tmp -> str , pi -> key_val ) ;\n }\n }\n else {\n if ( pi -> key_val == 10 ) {\n tmp_unistim_info -> key_buffer = g_strdup ( \"*\" ) ;\n }\n else if ( pi -> key_val == 11 ) {\n tmp_unistim_info -> key_buffer = g_strdup ( \"#\" ) ;\n }\n else {\n tmp_unistim_info -> key_buffer = g_strdup_printf ( \"%d\" , pi -> key_val ) ;\n }\n }\n if ( pi -> key_val == 10 ) {\n comment = g_strdup_printf ( \"Key Input Sent: * (%d)\" , pi -> sequence ) ;\n }\n else if ( pi -> key_val == 11 ) {\n comment = g_strdup_printf ( \"Key Input Sent: # (%d)\" , pi -> sequence ) ;\n }\n else {\n comment = g_strdup_printf ( \"Key Input Sent: %d (%d)\" , pi -> key_val , pi -> sequence ) ;\n }\n }\n else if ( pi -> key_val == 12 ) {\n comment = g_strdup_printf ( \"Key Input Sent: UP (%d)\" , pi -> sequence ) ;\n }\n else if ( pi -> key_val == 13 ) {\n comment = g_strdup_printf ( \"Key Input Sent: DOWN (%d)\" , pi -> sequence ) ;\n }\n else if ( pi -> key_val == 14 ) {\n comment = g_strdup_printf ( \"Key Input Sent: RIGHT (%d)\" , pi -> sequence ) ;\n }\n else if ( pi -> key_val == 15 ) {\n if ( pi -> key_buffer != NULL ) {\n g_string_assign ( g_tmp , pi -> key_buffer ) ;\n g_string_truncate ( g_tmp , g_tmp -> len - 1 ) ;\n tmp_unistim_info -> key_buffer = g_strdup ( g_tmp -> str ) ;\n }\n comment = g_strdup_printf ( \"Key Input Sent: LEFT (%d)\" , pi -> sequence ) ;\n }\n else if ( pi -> key_val == 20 ) {\n comment = g_strdup_printf ( \"Key Input Sent: S0 (%d)\" , pi -> sequence ) ;\n }\n else if ( pi -> key_val == 21 ) {\n comment = g_strdup_printf ( \"Key Input Sent: S1 (%d)\" , pi -> sequence ) ;\n }\n else if ( pi -> key_val == 22 ) {\n if ( pi -> key_buffer != NULL ) {\n g_string_assign ( g_tmp , pi -> key_buffer ) ;\n g_string_truncate ( g_tmp , g_tmp -> len - 1 ) ;\n tmp_unistim_info -> key_buffer = g_strdup ( g_tmp -> str ) ;\n }\n comment = g_strdup_printf ( \"Key Input Sent: S2 (%d)\" , pi -> sequence ) ;\n }\n else if ( pi -> key_val == 28 ) {\n comment = g_strdup_printf ( \"Key Input Sent: Release (%d)\" , pi -> sequence ) ;\n }\n else if ( pi -> key_val == 23 ) {\n tmp_unistim_info -> key_buffer = g_strdup ( \"\\n\" ) ;\n comment = g_strdup_printf ( \"Key Input Sent: S3 (%d)\" , pi -> sequence ) ;\n }\n else if ( pi -> key_val == 27 ) {\n comment = g_strdup_printf ( \"Key Input Sent: Hold (%d)\" , pi -> sequence ) ;\n }\n else if ( pi -> key_val == 29 ) {\n comment = g_strdup_printf ( \"Key Input Sent: Mute (%d)\" , pi -> sequence ) ;\n }\n else if ( pi -> key_val == 30 ) {\n comment = g_strdup_printf ( \"Key Input Sent: Headset (%d)\" , pi -> sequence ) ;\n }\n else if ( pi -> key_val == 31 ) {\n comment = g_strdup_printf ( \"Key Input Sent: Handsfree (%d)\" , pi -> sequence ) ;\n }\n else if ( pi -> key_val >= 32 && pi -> key_val <= 56 ) {\n comment = g_strdup_printf ( \"Key Input Sent: Prog%d (%d)\" , ( pi -> key_val & 31 ) , pi -> sequence ) ;\n }\n if ( pi -> key_val != - 1 ) {\n frame_label = \"KEY INPUT\" ;\n if ( comment == NULL ) comment = g_strdup_printf ( \"Key Input Sent: UNKNOWN - %d (%d)\" , pi -> key_val , pi -> sequence ) ;\n add_to_graph ( tapinfo , pinfo , frame_label , comment , callsinfo -> call_num , & ( pinfo -> src ) , & ( pinfo -> dst ) , 1 ) ;\n g_free ( comment ) ;\n }\n if ( pi -> hook_state == 1 ) {\n frame_label = \"OFF HOOK\" ;\n comment = g_strdup_printf ( \"Off Hook (%d)\" , pi -> sequence ) ;\n add_to_graph ( tapinfo , pinfo , frame_label , comment , callsinfo -> call_num , & ( pinfo -> src ) , & ( pinfo -> dst ) , 1 ) ;\n g_free ( comment ) ;\n }\n else if ( pi -> hook_state == 0 ) {\n frame_label = \"ON HOOK\" ;\n comment = g_strdup_printf ( \"On Hook (%d)\" , pi -> sequence ) ;\n add_to_graph ( tapinfo , pinfo , frame_label , comment , callsinfo -> call_num , & ( pinfo -> src ) , & ( pinfo -> dst ) , 1 ) ;\n g_free ( comment ) ;\n }\n }\n if ( pi -> stream_connect == 1 && callsinfo != NULL ) {\n callsinfo -> start_fd = pinfo -> fd ;\n callsinfo -> start_rel_ts = pinfo -> rel_ts ;\n callsinfo -> stop_fd = pinfo -> fd ;\n callsinfo -> stop_rel_ts = pinfo -> rel_ts ;\n ++ ( callsinfo -> npackets ) ;\n ++ ( tapinfo -> npackets ) ;\n if ( tmp_unistim_info -> key_buffer != NULL ) {\n callsinfo -> to_identity = g_strdup_printf ( \"?? %s\" , tmp_unistim_info -> key_buffer ) ;\n }\n tmp_unistim_info -> sequence = pi -> sequence ;\n callsinfo -> call_active_state = VOIP_ACTIVE ;\n callsinfo -> call_state = VOIP_IN_CALL ;\n frame_label = \"STREAM OPENED\" ;\n comment = g_strdup_printf ( \"Stream Opened (%d)\" , pi -> sequence ) ;\n add_to_graph ( tapinfo , pinfo , frame_label , comment , callsinfo -> call_num , & ( pinfo -> src ) , & ( pinfo -> dst ) , 1 ) ;\n }\n else if ( pi -> stream_connect == 1 && callsinfo == NULL ) {\n callsinfo = ( voip_calls_info_t * ) g_malloc0 ( sizeof ( voip_calls_info_t ) ) ;\n callsinfo -> call_active_state = VOIP_ACTIVE ;\n callsinfo -> call_state = VOIP_CALL_SETUP ;\n callsinfo -> from_identity = g_strdup ( \"UNKNOWN\" ) ;\n callsinfo -> to_identity = g_strdup ( \"UNKNOWN\" ) ;\n COPY_ADDRESS ( & ( callsinfo -> initial_speaker ) , & ( pinfo -> src ) ) ;\n callsinfo -> selected = FALSE ;\n callsinfo -> start_fd = pinfo -> fd ;\n callsinfo -> start_rel_ts = pinfo -> rel_ts ;\n callsinfo -> protocol = VOIP_UNISTIM ;\n callsinfo -> prot_info = g_malloc ( sizeof ( unistim_info_t ) ) ;\n tmp_unistim_info = ( unistim_info_t * ) callsinfo -> prot_info ;\n tmp_unistim_info -> rudp_type = 0 ;\n tmp_unistim_info -> payload_type = 0 ;\n tmp_unistim_info -> sequence = pi -> sequence ;\n tmp_unistim_info -> termid = 0 ;\n tmp_unistim_info -> key_val = - 1 ;\n tmp_unistim_info -> key_state = - 1 ;\n tmp_unistim_info -> hook_state = - 1 ;\n tmp_unistim_info -> stream_connect = - 1 ;\n tmp_unistim_info -> trans_connect = - 1 ;\n tmp_unistim_info -> set_termid = - 1 ;\n tmp_unistim_info -> string_data = NULL ;\n tmp_unistim_info -> key_buffer = NULL ;\n COPY_ADDRESS ( & ( tmp_unistim_info -> it_ip ) , & ( pi -> it_ip ) ) ;\n COPY_ADDRESS ( & ( tmp_unistim_info -> ni_ip ) , & ( pi -> ni_ip ) ) ;\n tmp_unistim_info -> it_port = pi -> it_port ;\n callsinfo -> free_prot_info = g_free ;\n callsinfo -> npackets = 0 ;\n callsinfo -> call_num = tapinfo -> ncalls ++ ;\n tapinfo -> callsinfo_list = g_list_prepend ( tapinfo -> callsinfo_list , callsinfo ) ;\n callsinfo -> stop_fd = pinfo -> fd ;\n callsinfo -> stop_rel_ts = pinfo -> rel_ts ;\n ++ ( callsinfo -> npackets ) ;\n ++ ( tapinfo -> npackets ) ;\n if ( tmp_unistim_info -> key_buffer != NULL ) {\n callsinfo -> to_identity = g_strdup_printf ( \"?? %s\" , tmp_unistim_info -> key_buffer ) ;\n }\n tmp_unistim_info -> sequence = pi -> sequence ;\n callsinfo -> call_active_state = VOIP_ACTIVE ;\n callsinfo -> call_state = VOIP_IN_CALL ;\n frame_label = \"STREAM OPENED\" ;\n comment = g_strdup_printf ( \"Stream Opened (%d)\" , pi -> sequence ) ;\n add_to_graph ( tapinfo , pinfo , frame_label , comment , callsinfo -> call_num , & ( pinfo -> src ) , & ( pinfo -> dst ) , 1 ) ;\n }\n else if ( pi -> stream_connect == 0 && callsinfo != NULL ) {\n callsinfo -> stop_fd = pinfo -> fd ;\n callsinfo -> stop_rel_ts = pinfo -> rel_ts ;\n tmp_unistim_info -> sequence = pi -> sequence ;\n if ( callsinfo -> call_state == VOIP_IN_CALL ) {\n callsinfo -> call_active_state = VOIP_INACTIVE ;\n callsinfo -> call_state = VOIP_COMPLETED ;\n }\n else {\n callsinfo -> call_state = VOIP_UNKNOWN ;\n callsinfo -> call_active_state = VOIP_INACTIVE ;\n }\n frame_label = \"STREAM CLOSED\" ;\n comment = g_strdup_printf ( \"Stream Closed (%d)\" , pi -> sequence ) ;\n add_to_graph ( tapinfo , pinfo , frame_label , comment , callsinfo -> call_num , & ( pinfo -> src ) , & ( pinfo -> dst ) , 1 ) ;\n }\n else comment = NULL ;\n }\n else if ( pi -> rudp_type == 1 && callsinfo != NULL ) {\n if ( tmp_unistim_info -> sequence == pi -> sequence ) {\n frame_label = \"ACK\" ;\n comment = g_strdup_printf ( \"ACK for sequence %d\" , pi -> sequence ) ;\n add_to_graph ( tapinfo , pinfo , frame_label , comment , callsinfo -> call_num , & ( pinfo -> src ) , & ( pinfo -> dst ) , 1 ) ;\n }\n }\n else if ( pi -> rudp_type == 0 && callsinfo != NULL ) {\n frame_label = \"NAK\" ;\n comment = g_strdup_printf ( \"NAK for sequence %d\" , pi -> sequence ) ;\n add_to_graph ( tapinfo , pinfo , frame_label , comment , callsinfo -> call_num , & ( pinfo -> src ) , & ( pinfo -> dst ) , 1 ) ;\n }\n g_free ( comment ) ;\n tapinfo -> redraw = TRUE ;\n return 1 ;\n }"}
{"idx": 2001, "target": 0, "func": "static UBool U_CALLCONV lenient8IteratorHasPrevious ( UCharIterator * iter ) {\n return iter -> start > 0 ;\n }"}
{"idx": 2002, "target": 0, "func": "void proto_reg_handoff_mswsp ( void ) {\n heur_dissector_add ( \"smb_transact\" , dissect_mswsp_smb , \"WSP over SMB1\" , \"smb1_wsp\" , proto_mswsp , HEURISTIC_ENABLE ) ;\n heur_dissector_add ( \"smb2_pipe_subdissectors\" , dissect_mswsp_smb2 , \"WSP over SMB2\" , \"smb2_wsp\" , proto_mswsp , HEURISTIC_ENABLE ) ;\n }"}
{"idx": 2003, "target": 0, "func": "static void kadmin_addprinc_usage ( ) {\n fprintf ( stderr , _ ( \"usage: add_principal [options] principal\\n\" ) ) ;\n fprintf ( stderr , _ ( \"\\toptions are:\\n\" ) ) ;\n fprintf ( stderr , _ ( \"\\t\\t[-x db_princ_args]* [-expire expdate] \" \"[-pwexpire pwexpdate] [-maxlife maxtixlife]\\n\" \"\\t\\t[-kvno kvno] [-policy policy] [-clearpolicy] [-randkey]\\n\" \"\\t\\t[-pw password] [-maxrenewlife maxrenewlife]\\n\" \"\\t\\t[-e keysaltlist]\\n\\t\\t[{\n+|-}\nattribute]\\n\" ) ) ;\n fprintf ( stderr , _ ( \"\\tattributes are:\\n\" ) ) ;\n fprintf ( stderr , _ ( \"\\t\\tallow_postdated allow_forwardable allow_tgs_req \" \"allow_renewable\\n\" \"\\t\\tallow_proxiable allow_dup_skey allow_tix requires_preauth\\n\" \"\\t\\trequires_hwauth needchange allow_svr \" \"password_changing_service\\n\" \"\\t\\tok_as_delegate ok_to_auth_as_delegate \" \"no_auth_data_required\\n\" \"\\nwhere,\\n\\t[-x db_princ_args]* - any number of database \" \"specific arguments.\\n\" \"\\t\\t\\tLook at each database documentation for supported \" \"arguments\\n\" ) ) ;\n }"}
{"idx": 2004, "target": 0, "func": "static gint dissect_as_if_general_body ( tvbuff_t * tvb , gint offset , packet_info * pinfo _U_ , proto_tree * tree , usb_conv_info_t * usb_conv_info ) {\n audio_conv_info_t * audio_conv_info ;\n gint offset_start ;\n audio_conv_info = ( audio_conv_info_t * ) usb_conv_info -> class_data ;\n if ( ! audio_conv_info ) return 0 ;\n offset_start = offset ;\n if ( audio_conv_info -> ver_major == 1 ) {\n proto_tree_add_item ( tree , hf_as_if_gen_term_id , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( tree , hf_as_if_gen_delay , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( tree , hf_as_if_gen_format , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n return offset - offset_start ;\n }"}
{"idx": 2005, "target": 1, "func": "TEST_F ( AutocompleteResultTest , SortAndCullWithDemotionsByType ) {\n ACMatches matches ;\n const AutocompleteMatchTestData data [ ] = {\n {\n \"http://history-url/\" , AutocompleteMatchType : : HISTORY_URL }\n , {\n \"http://search-what-you-typed/\" , AutocompleteMatchType : : SEARCH_WHAT_YOU_TYPED }\n , {\n \"http://history-title/\" , AutocompleteMatchType : : HISTORY_TITLE }\n , {\n \"http://search-history/\" , AutocompleteMatchType : : SEARCH_HISTORY }\n , }\n ;\n PopulateAutocompleteMatchesFromTestData ( data , arraysize ( data ) , & matches ) ;\n matches . back ( ) . relevance = 500 ;\n {\n std : : map < std : : string , std : : string > params ;\n params [ std : : string ( OmniboxFieldTrial : : kDemoteByTypeRule ) + \":3:*\" ] = \"1:50,7:100,2:0\" ;\n ASSERT_TRUE ( variations : : AssociateVariationParams ( OmniboxFieldTrial : : kBundledExperimentFieldTrialName , \"A\" , params ) ) ;\n }\n base : : FieldTrialList : : CreateFieldTrial ( OmniboxFieldTrial : : kBundledExperimentFieldTrialName , \"A\" ) ;\n AutocompleteInput input ( base : : string16 ( ) , base : : string16 : : npos , std : : string ( ) , GURL ( ) , OmniboxEventProto : : HOME_PAGE , false , false , false , true , false , TestSchemeClassifier ( ) ) ;\n AutocompleteResult result ;\n result . AppendMatches ( input , matches ) ;\n result . SortAndCull ( input , std : : string ( ) , template_url_service_ . get ( ) ) ;\n ASSERT_EQ ( 3u , result . size ( ) ) ;\n EXPECT_EQ ( \"http://search-what-you-typed/\" , result . match_at ( 0 ) -> destination_url . spec ( ) ) ;\n EXPECT_EQ ( \"http://history-url/\" , result . match_at ( 1 ) -> destination_url . spec ( ) ) ;\n EXPECT_EQ ( \"http://search-history/\" , result . match_at ( 2 ) -> destination_url . spec ( ) ) ;\n }"}
{"idx": 2006, "target": 0, "func": "int logcat_dump_can_write_encap ( int encap ) {\n if ( encap == WTAP_ENCAP_PER_PACKET ) return WTAP_ERR_ENCAP_PER_PACKET_UNSUPPORTED ;\n if ( encap != WTAP_ENCAP_LOGCAT ) return WTAP_ERR_UNSUPPORTED_ENCAP ;\n return 0 ;\n }"}
{"idx": 2007, "target": 0, "func": "unsigned long # define BN_LONG long # define BN_BITS 128 # define BN_BYTES 8 # define BN_BITS2 64 # define BN_BITS4 32 # define BN_MASK ( 0xffffffffffffffffffffffffffffffffLL ) # define BN_MASK2 ( 0xffffffffffffffffL ) # define BN_MASK2l ( 0xffffffffL ) # define BN_MASK2h ( 0xffffffff00000000L ) # define BN_MASK2h1 ( 0xffffffff80000000L ) # define BN_TBIT ( 0x8000000000000000L ) # define BN_DEC_CONV ( 10000000000000000000UL ) # define BN_DEC_FMT1 \"%lu\" # define BN_DEC_FMT2 \"%019lu\" # define BN_DEC_NUM 19 # define BN_HEX_FMT1 \"%lX\" # define BN_HEX_FMT2 \"%016lX\" # endif # ifdef SIXTY_FOUR_BIT # undef BN_LLONG # undef BN_ULLONG # define BN_ULONG unsigned long long # define BN_LONG long long # define BN_BITS 128 # define BN_BYTES 8 # define BN_BITS2 64 # define BN_BITS4 32 # define BN_MASK2 ( 0xffffffffffffffffLL ) # define BN_MASK2l ( 0xffffffffL ) # define BN_MASK2h ( 0xffffffff00000000LL ) # define BN_MASK2h1 ( 0xffffffff80000000LL ) # define BN_TBIT ( 0x8000000000000000LL ) # define BN_DEC_CONV ( 10000000000000000000ULL ) # define BN_DEC_FMT1 \"%llu\" # define BN_DEC_FMT2 \"%019llu\" # define BN_DEC_NUM 19 # define BN_HEX_FMT1 \"%llX\" # define BN_HEX_FMT2 \"%016llX\" # endif # ifdef THIRTY_TWO_BIT # ifdef BN_LLONG # if defined ( _WIN32 ) && ! defined ( __GNUC__ ) # define BN_ULLONG unsigned __int64 # define BN_MASK ( 0xffffffffffffffffI64 ) # else # define BN_ULLONG unsigned long long # define BN_MASK ( 0xffffffffffffffffLL ) # endif # endif # define BN_ULONG unsigned int # define BN_LONG int # define BN_BITS 64 # define BN_BYTES 4 # define BN_BITS2 32 # define BN_BITS4 16 # define BN_MASK2 ( 0xffffffffL ) # define BN_MASK2l ( 0xffff ) # define BN_MASK2h1 ( 0xffff8000L ) # define BN_MASK2h ( 0xffff0000L ) # define BN_TBIT ( 0x80000000L ) # define BN_DEC_CONV ( 1000000000L ) # define BN_DEC_FMT1 \"%u\" # define BN_DEC_FMT2 \"%09u\" # define BN_DEC_NUM 9 # define BN_HEX_FMT1 \"%X\" # define BN_HEX_FMT2 \"%08X\" # endif # define BN_DEFAULT_BITS 1280 # define BN_FLG_MALLOCED 0x01 # define BN_FLG_STATIC_DATA 0x02 # define BN_FLG_CONSTTIME 0x04 # ifndef OPENSSL_NO_DEPRECATED # define BN_FLG_EXP_CONSTTIME BN_FLG_CONSTTIME # endif # ifndef OPENSSL_NO_DEPRECATED # define BN_FLG_FREE 0x8000 # endif # define BN_set_flags ( b , n ) ( ( b ) -> flags |= ( n ) ) # define BN_get_flags ( b , n ) ( ( b ) -> flags & ( n ) ) # define BN_with_flags ( dest , b , n ) ( ( dest ) -> d = ( b ) -> d , \\ ( dest ) -> top = ( b ) -> top , \\ ( dest ) -> dmax = ( b ) -> dmax , \\ ( dest ) -> neg = ( b ) -> neg , \\ ( dest ) -> flags = ( ( ( dest ) -> flags & BN_FLG_MALLOCED ) \\ | ( ( b ) -> flags & ~ BN_FLG_MALLOCED ) \\ | BN_FLG_STATIC_DATA \\ | ( n ) ) ) # if 0 typedef struct bignum_st BIGNUM ;\n typedef struct bignum_ctx BN_CTX ;\n typedef struct bn_blinding_st BN_BLINDING ;\n typedef struct bn_mont_ctx_st BN_MONT_CTX ;\n typedef struct bn_recp_ctx_st BN_RECP_CTX ;\n typedef struct bn_gencb_st BN_GENCB ;\n # endif struct bignum_st {\n BN_ULONG * d ;\n int top ;\n int dmax ;\n int neg ;\n int flags ;\n }\n ;\n struct bn_mont_ctx_st {\n int ri ;\n BIGNUM RR ;\n BIGNUM N ;\n BIGNUM Ni ;\n BN_ULONG n0 [ 2 ] ;\n int flags ;\n }\n ;\n struct bn_recp_ctx_st {\n BIGNUM N ;\n BIGNUM Nr ;\n int num_bits ;\n int shift ;\n int flags ;\n }\n ;\n struct bn_gencb_st {\n unsigned int ver ;\n void * arg ;\n union {\n void ( * cb_1 ) ( int , int , void * ) ;\n int ( * cb_2 ) ( int , int , BN_GENCB * ) ;\n }\n cb ;\n }\n ;\n int BN_GENCB_call ( BN_GENCB * cb , int a , int b ) ;\n # define BN_GENCB_set_old ( gencb , callback , cb_arg ) {\n \\ BN_GENCB * tmp_gencb = ( gencb ) ;\n \\ tmp_gencb -> ver = 1 ;\n \\ tmp_gencb -> arg = ( cb_arg ) ;\n \\ tmp_gencb -> cb . cb_1 = ( callback ) ;\n }\n # define BN_GENCB_set ( gencb , callback , cb_arg ) {\n \\ BN_GENCB * tmp_gencb = ( gencb ) ;\n \\ tmp_gencb -> ver = 2 ;\n \\ tmp_gencb -> arg = ( cb_arg ) ;\n \\ tmp_gencb -> cb . cb_2 = ( callback ) ;\n }\n # define BN_prime_checks 0 # define BN_prime_checks_for_size ( b ) ( ( b ) >= 1300 ? 2 : \\ ( b ) >= 850 ? 3 : \\ ( b ) >= 650 ? 4 : \\ ( b ) >= 550 ? 5 : \\ ( b ) >= 450 ? 6 : \\ ( b ) >= 400 ? 7 : \\ ( b ) >= 350 ? 8 : \\ ( b ) >= 300 ? 9 : \\ ( b ) >= 250 ? 12 : \\ ( b ) >= 200 ? 15 : \\ ( b ) >= 150 ? 18 : \\ 27 ) # define BN_num_bytes ( a ) ( ( BN_num_bits ( a ) + 7 ) / 8 ) # define BN_abs_is_word ( a , w ) ( ( ( ( a ) -> top == 1 ) && ( ( a ) -> d [ 0 ] == ( BN_ULONG ) ( w ) ) ) || \\ ( ( ( w ) == 0 ) && ( ( a ) -> top == 0 ) ) ) # define BN_is_zero ( a ) ( ( a ) -> top == 0 ) # define BN_is_one ( a ) ( BN_abs_is_word ( ( a ) , 1 ) && ! ( a ) -> neg ) # define BN_is_word ( a , w ) ( BN_abs_is_word ( ( a ) , ( w ) ) && ( ! ( w ) || ! ( a ) -> neg ) ) # define BN_is_odd ( a ) ( ( ( a ) -> top > 0 ) && ( ( a ) -> d [ 0 ] & 1 ) ) # define BN_one ( a ) ( BN_set_word ( ( a ) , 1 ) ) # define BN_zero_ex ( a ) \\ do {\n \\ BIGNUM * _tmp_bn = ( a ) ;\n \\ _tmp_bn -> top = 0 ;\n \\ _tmp_bn -> neg = 0 ;\n \\ }\n while ( 0 ) # ifdef OPENSSL_NO_DEPRECATED # define BN_zero ( a ) BN_zero_ex ( a ) # else # define BN_zero ( a ) ( BN_set_word ( ( a ) , 0 ) ) # endif const BIGNUM * BN_value_one ( void ) ;\n char * BN_options ( void ) ;\n BN_CTX * BN_CTX_new ( void ) ;\n # ifndef OPENSSL_NO_DEPRECATED void BN_CTX_init ( BN_CTX * c ) ;\n # endif void BN_CTX_free ( BN_CTX * c ) ;\n void BN_CTX_start ( BN_CTX * ctx ) ;\n BIGNUM * BN_CTX_get ( BN_CTX * ctx ) ;\n void BN_CTX_end ( BN_CTX * ctx ) ;\n int BN_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_pseudo_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_pseudo_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_num_bits ( const BIGNUM * a ) ;\n int BN_num_bits_word ( BN_ULONG l ) ;\n BIGNUM * BN_new ( void ) ;\n void BN_init ( BIGNUM * ) ;\n void BN_clear_free ( BIGNUM * a ) ;\n BIGNUM * BN_copy ( BIGNUM * a , const BIGNUM * b ) ;\n void BN_swap ( BIGNUM * a , BIGNUM * b ) ;\n BIGNUM * BN_bin2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2bin ( const BIGNUM * a , unsigned char * to ) ;\n BIGNUM * BN_mpi2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2mpi ( const BIGNUM * a , unsigned char * to ) ;\n int BN_sub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_usub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_uadd ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n int BN_sqr ( BIGNUM * r , const BIGNUM * a , BN_CTX * ctx ) ;\n void BN_set_negative ( BIGNUM * b , int n ) ;\n # define BN_is_negative ( a ) ( ( a ) -> neg != 0 ) int BN_div ( BIGNUM * dv , BIGNUM * rem , const BIGNUM * m , const BIGNUM * d , BN_CTX * ctx ) ;\n # define BN_mod ( rem , m , d , ctx ) BN_div ( NULL , ( rem ) , ( m ) , ( d ) , ( ctx ) ) int BN_nnmod ( BIGNUM * r , const BIGNUM * m , const BIGNUM * d , BN_CTX * ctx ) ;\n int BN_mod_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_add_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m ) ;\n int BN_mod_sub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_sub_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m ) ;\n int BN_mod_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_sqr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift1 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift1_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m ) ;\n int BN_mod_lshift ( BIGNUM * r , const BIGNUM * a , int n , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift_quick ( BIGNUM * r , const BIGNUM * a , int n , const BIGNUM * m ) ;\n BN_ULONG BN_mod_word ( const BIGNUM * a , BN_ULONG w ) ;\n BN_ULONG BN_div_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_mul_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_add_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_sub_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_set_word ( BIGNUM * a , BN_ULONG w ) ;\n BN_ULONG BN_get_word ( const BIGNUM * a ) ;\n int BN_cmp ( const BIGNUM * a , const BIGNUM * b ) ;\n void BN_free ( BIGNUM * a ) ;\n int BN_is_bit_set ( const BIGNUM * a , int n ) ;\n int BN_lshift ( BIGNUM * r , const BIGNUM * a , int n ) ;\n int BN_lshift1 ( BIGNUM * r , const BIGNUM * a ) ;\n int BN_exp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_mod_exp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_exp_mont ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) ;\n int BN_mod_exp_mont_consttime ( BIGNUM * rr , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * in_mont ) ;\n int BN_mod_exp_mont_word ( BIGNUM * r , BN_ULONG a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) ;\n int BN_mod_exp2_mont ( BIGNUM * r , const BIGNUM * a1 , const BIGNUM * p1 , const BIGNUM * a2 , const BIGNUM * p2 , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) ;\n int BN_mod_exp_simple ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mask_bits ( BIGNUM * a , int n ) ;\n # ifndef OPENSSL_NO_FP_API int BN_print_fp ( FILE * fp , const BIGNUM * a ) ;\n # endif # ifdef HEADER_BIO_H int BN_print ( BIO * fp , const BIGNUM * a ) ;\n # else int BN_print ( void * fp , const BIGNUM * a ) ;\n # endif int BN_reciprocal ( BIGNUM * r , const BIGNUM * m , int len , BN_CTX * ctx ) ;\n int BN_rshift ( BIGNUM * r , const BIGNUM * a , int n ) ;\n int BN_rshift1 ( BIGNUM * r , const BIGNUM * a ) ;\n void BN_clear ( BIGNUM * a ) ;\n BIGNUM * BN_dup ( const BIGNUM * a ) ;\n int BN_ucmp ( const BIGNUM * a , const BIGNUM * b ) ;\n int BN_set_bit ( BIGNUM * a , int n ) ;\n int BN_clear_bit ( BIGNUM * a , int n ) ;\n char * BN_bn2hex ( const BIGNUM * a ) ;\n char * BN_bn2dec ( const BIGNUM * a ) ;\n int BN_hex2bn ( BIGNUM * * a , const char * str ) ;\n int BN_dec2bn ( BIGNUM * * a , const char * str ) ;\n int BN_asc2bn ( BIGNUM * * a , const char * str ) ;\n int BN_gcd ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n int BN_kronecker ( const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n BIGNUM * BN_mod_inverse ( BIGNUM * ret , const BIGNUM * a , const BIGNUM * n , BN_CTX * ctx ) ;\n BIGNUM * BN_mod_sqrt ( BIGNUM * ret , const BIGNUM * a , const BIGNUM * n , BN_CTX * ctx ) ;\n void BN_consttime_swap ( BN_ULONG swap , BIGNUM * a , BIGNUM * b , int nwords ) ;\n # ifndef OPENSSL_NO_DEPRECATED BIGNUM * BN_generate_prime ( BIGNUM * ret , int bits , int safe , const BIGNUM * add , const BIGNUM * rem , void ( * callback ) ( int , int , void * ) , void * cb_arg ) ;\n int BN_is_prime ( const BIGNUM * p , int nchecks , void ( * callback ) ( int , int , void * ) , BN_CTX * ctx , void * cb_arg ) ;\n int BN_is_prime_fasttest ( const BIGNUM * p , int nchecks , void ( * callback ) ( int , int , void * ) , BN_CTX * ctx , void * cb_arg , int do_trial_division ) ;\n # endif int BN_generate_prime_ex ( BIGNUM * ret , int bits , int safe , const BIGNUM * add , const BIGNUM * rem , BN_GENCB * cb ) ;\n int BN_is_prime_ex ( const BIGNUM * p , int nchecks , BN_CTX * ctx , BN_GENCB * cb ) ;\n int BN_is_prime_fasttest_ex ( const BIGNUM * p , int nchecks , BN_CTX * ctx , int do_trial_division , BN_GENCB * cb ) ;\n int BN_X931_generate_Xpq ( BIGNUM * Xp , BIGNUM * Xq , int nbits , BN_CTX * ctx ) ;\n int BN_X931_derive_prime_ex ( BIGNUM * p , BIGNUM * p1 , BIGNUM * p2 , const BIGNUM * Xp , const BIGNUM * Xp1 , const BIGNUM * Xp2 , const BIGNUM * e , BN_CTX * ctx , BN_GENCB * cb ) ;\n int BN_X931_generate_prime_ex ( BIGNUM * p , BIGNUM * p1 , BIGNUM * p2 , BIGNUM * Xp1 , BIGNUM * Xp2 , const BIGNUM * Xp , const BIGNUM * e , BN_CTX * ctx , BN_GENCB * cb ) ;\n BN_MONT_CTX * BN_MONT_CTX_new ( void ) ;\n void BN_MONT_CTX_init ( BN_MONT_CTX * ctx ) ;\n int BN_mod_mul_montgomery ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_MONT_CTX * mont , BN_CTX * ctx ) ;\n # define BN_to_montgomery ( r , a , mont , ctx ) BN_mod_mul_montgomery ( \\ ( r ) , ( a ) , & ( ( mont ) -> RR ) , ( mont ) , ( ctx ) ) int BN_from_montgomery ( BIGNUM * r , const BIGNUM * a , BN_MONT_CTX * mont , BN_CTX * ctx ) ;\n void BN_MONT_CTX_free ( BN_MONT_CTX * mont ) ;\n int BN_MONT_CTX_set ( BN_MONT_CTX * mont , const BIGNUM * mod , BN_CTX * ctx ) ;\n BN_MONT_CTX * BN_MONT_CTX_copy ( BN_MONT_CTX * to , BN_MONT_CTX * from ) ;\n BN_MONT_CTX * BN_MONT_CTX_set_locked ( BN_MONT_CTX * * pmont , int lock , const BIGNUM * mod , BN_CTX * ctx ) ;\n # define BN_BLINDING_NO_UPDATE 0x00000001 # define BN_BLINDING_NO_RECREATE 0x00000002 BN_BLINDING * BN_BLINDING_new ( const BIGNUM * A , const BIGNUM * Ai , BIGNUM * mod ) ;\n void BN_BLINDING_free ( BN_BLINDING * b ) ;\n int BN_BLINDING_update ( BN_BLINDING * b , BN_CTX * ctx ) ;\n int BN_BLINDING_convert ( BIGNUM * n , BN_BLINDING * b , BN_CTX * ctx ) ;\n int BN_BLINDING_invert ( BIGNUM * n , BN_BLINDING * b , BN_CTX * ctx ) ;\n int BN_BLINDING_convert_ex ( BIGNUM * n , BIGNUM * r , BN_BLINDING * b , BN_CTX * ) ;\n int BN_BLINDING_invert_ex ( BIGNUM * n , const BIGNUM * r , BN_BLINDING * b , BN_CTX * ) ;\n # ifndef OPENSSL_NO_DEPRECATED unsigned long BN_BLINDING_get_thread_id ( const BN_BLINDING * ) ;\n void BN_BLINDING_set_thread_id ( BN_BLINDING * , unsigned long ) ;\n # endif CRYPTO_THREADID * BN_BLINDING_thread_id ( BN_BLINDING * ) ;\n unsigned long BN_BLINDING_get_flags ( const BN_BLINDING * ) ;\n void BN_BLINDING_set_flags ( BN_BLINDING * , unsigned long ) ;\n BN_BLINDING * BN_BLINDING_create_param ( BN_BLINDING * b , const BIGNUM * e , BIGNUM * m , BN_CTX * ctx , int ( * bn_mod_exp ) ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) , BN_MONT_CTX * m_ctx ) ;\n # ifndef OPENSSL_NO_DEPRECATED void BN_set_params ( int mul , int high , int low , int mont ) ;\n int BN_get_params ( int which ) ;\n # endif void BN_RECP_CTX_init ( BN_RECP_CTX * recp ) ;\n BN_RECP_CTX * BN_RECP_CTX_new ( void ) ;\n void BN_RECP_CTX_free ( BN_RECP_CTX * recp ) ;\n int BN_RECP_CTX_set ( BN_RECP_CTX * recp , const BIGNUM * rdiv , BN_CTX * ctx ) ;\n int BN_mod_mul_reciprocal ( BIGNUM * r , const BIGNUM * x , const BIGNUM * y , BN_RECP_CTX * recp , BN_CTX * ctx ) ;\n int BN_mod_exp_recp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_div_recp ( BIGNUM * dv , BIGNUM * rem , const BIGNUM * m , BN_RECP_CTX * recp , BN_CTX * ctx ) ;\n # ifndef OPENSSL_NO_EC2M int BN_GF2m_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n # define BN_GF2m_sub ( r , a , b ) BN_GF2m_add ( r , a , b ) int BN_GF2m_mod ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p ) ;\n int BN_GF2m_mod_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_inv ( BIGNUM * r , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_div ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_exp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqrt ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_solve_quad ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n # define BN_GF2m_cmp ( a , b ) BN_ucmp ( ( a ) , ( b ) ) int BN_GF2m_mod_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] ) ;\n int BN_GF2m_mod_mul_arr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqr_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_inv_arr ( BIGNUM * r , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_div_arr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_exp_arr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqrt_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_solve_quad_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_poly2arr ( const BIGNUM * a , int p [ ] , int max ) ;\n int BN_GF2m_arr2poly ( const int p [ ] , BIGNUM * a ) ;\n # endif int BN_nist_mod_192 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_224 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_256 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_384 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_521 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n const BIGNUM * BN_get0_nist_prime_192 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_224 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_256 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_384 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_521 ( void ) ;\n int ( * BN_nist_mod_func ( const BIGNUM * p ) ) ( BIGNUM * r , const BIGNUM * a , const BIGNUM * field , BN_CTX * ctx ) ;\n int BN_generate_dsa_nonce ( BIGNUM * out , const BIGNUM * range , const BIGNUM * priv , const unsigned char * message , size_t message_len , BN_CTX * ctx ) ;\n # define bn_expand ( a , bits ) ( ( ( ( ( ( bits + BN_BITS2 - 1 ) ) / BN_BITS2 ) ) <= ( a ) -> dmax ) ? \\ ( a ) : bn_expand2 ( ( a ) , ( bits + BN_BITS2 - 1 ) / BN_BITS2 ) ) # define bn_wexpand ( a , words ) ( ( ( words ) <= ( a ) -> dmax ) ? ( a ) : bn_expand2 ( ( a ) , ( words ) ) ) BIGNUM * bn_expand2 ( BIGNUM * a , int words ) ;\n # ifndef OPENSSL_NO_DEPRECATED BIGNUM * bn_dup_expand ( const BIGNUM * a , int words ) ;\n # endif # ifdef BN_DEBUG # include < assert . h > # ifdef BN_DEBUG_RAND # ifndef RAND_pseudo_bytes int RAND_pseudo_bytes ( unsigned char * buf , int num ) ;\n # define BN_DEBUG_TRIX # endif # define bn_pollute ( a ) \\ do {\n \\ const BIGNUM * _bnum1 = ( a ) ;\n \\ if ( _bnum1 -> top < _bnum1 -> dmax ) {\n \\ unsigned char _tmp_char ;\n \\ \\ BN_ULONG * _not_const ;\n \\ memcpy ( & _not_const , & _bnum1 -> d , sizeof ( BN_ULONG * ) ) ;\n \\ RAND_pseudo_bytes ( & _tmp_char , 1 ) ;\n \\ memset ( ( unsigned char * ) ( _not_const + _bnum1 -> top ) , _tmp_char , \\ ( _bnum1 -> dmax - _bnum1 -> top ) * sizeof ( BN_ULONG ) ) ;\n \\ }\n \\ }\n while ( 0 ) # ifdef BN_DEBUG_TRIX # undef RAND_pseudo_bytes # endif # else # define bn_pollute ( a ) # endif # define bn_check_top ( a ) \\ do {\n \\ const BIGNUM * _bnum2 = ( a ) ;\n \\ if ( _bnum2 != NULL ) {\n \\ assert ( ( _bnum2 -> top == 0 ) || \\ ( _bnum2 -> d [ _bnum2 -> top - 1 ] != 0 ) ) ;\n \\ bn_pollute ( _bnum2 ) ;\n \\ }\n \\ }\n while ( 0 ) # define bn_fix_top ( a ) bn_check_top ( a ) # define bn_check_size ( bn , bits ) bn_wcheck_size ( bn , ( ( bits + BN_BITS2 - 1 ) ) / BN_BITS2 ) # define bn_wcheck_size ( bn , words ) \\ do {\n \\ const BIGNUM * _bnum2 = ( bn ) ;\n \\ assert ( words <= ( _bnum2 ) -> dmax && words >= ( _bnum2 ) -> top ) ;\n \\ }\n while ( 0 ) # else # define bn_pollute ( a ) # define bn_check_top ( a ) # define bn_fix_top ( a ) bn_correct_top ( a ) # define bn_check_size ( bn , bits ) # define bn_wcheck_size ( bn , words ) # endif # define bn_correct_top ( a ) \\ {\n \\ BN_ULONG * ftl ;\n \\ int tmp_top = ( a ) -> top ;\n \\ if ( tmp_top > 0 ) \\ {\n \\ for ( ftl = & ( ( a ) -> d [ tmp_top - 1 ] ) ;\n tmp_top > 0 ;\n tmp_top -- ) \\ if ( * ( ftl -- ) ) break ;\n \\ ( a ) -> top = tmp_top ;\n \\ }\n \\ bn_pollute ( a ) ;\n \\ }\n BN_ULONG bn_mul_add_words ( BN_ULONG * rp , const BN_ULONG * ap , int num , BN_ULONG w )"}
{"idx": 2008, "target": 1, "func": "static gint dissect_ac_if_hdr_body ( tvbuff_t * tvb , gint offset , packet_info * pinfo _U_ , proto_tree * tree , usb_conv_info_t * usb_conv_info ) {\n gint offset_start ;\n guint16 bcdADC ;\n guint8 ver_major ;\n double ver ;\n guint8 if_in_collection , i ;\n audio_conv_info_t * audio_conv_info ;\n offset_start = offset ;\n bcdADC = tvb_get_letohs ( tvb , offset ) ;\n ver_major = USB_AUDIO_BCD44_TO_DEC ( bcdADC >> 8 ) ;\n ver = ver_major + USB_AUDIO_BCD44_TO_DEC ( bcdADC & 0xFF ) / 100.0 ;\n proto_tree_add_double_format_value ( tree , hf_ac_if_hdr_ver , tvb , offset , 2 , ver , \"%2.2f\" , ver ) ;\n audio_conv_info = ( audio_conv_info_t * ) usb_conv_info -> class_data ;\n if ( ! audio_conv_info ) {\n audio_conv_info = wmem_new ( wmem_file_scope ( ) , audio_conv_info_t ) ;\n usb_conv_info -> class_data = audio_conv_info ;\n }\n audio_conv_info -> ver_major = ver_major ;\n offset += 2 ;\n if ( ver_major == 1 ) {\n proto_tree_add_item ( tree , hf_ac_if_hdr_total_len , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if_in_collection = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_ac_if_hdr_bInCollection , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset ++ ;\n for ( i = 0 ;\n i < if_in_collection ;\n i ++ ) {\n proto_tree_add_item ( tree , hf_ac_if_hdr_if_num , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset ++ ;\n }\n }\n return offset - offset_start ;\n }"}
{"idx": 2009, "target": 0, "func": "void evhttp_connection_get_peer ( struct evhttp_connection * evcon , char * * address , u_short * port ) {\n * address = evcon -> address ;\n * port = evcon -> port ;\n }"}
{"idx": 2010, "target": 0, "func": "IN_PROC_BROWSER_TEST_P ( BrowserCloseManagerBrowserTest , TestWithDownloads ) {\n ASSERT_NO_FATAL_FAILURE ( CreateStalledDownload ( browser ( ) ) ) ;\n content : : TestNavigationObserver navigation_observer ( browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) , 1 ) ;\n TestBrowserCloseManager : : AttemptClose ( TestBrowserCloseManager : : USER_CHOICE_USER_CANCELS_CLOSE ) ;\n EXPECT_FALSE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n navigation_observer . Wait ( ) ;\n EXPECT_EQ ( GURL ( chrome : : kChromeUIDownloadsURL ) , browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) -> GetURL ( ) ) ;\n RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , 1 ) ;\n TestBrowserCloseManager : : AttemptClose ( TestBrowserCloseManager : : USER_CHOICE_USER_ALLOWS_CLOSE ) ;\n close_observer . Wait ( ) ;\n EXPECT_TRUE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_TRUE ( BrowserList : : GetInstance ( ) -> empty ( ) ) ;\n if ( browser_defaults : : kBrowserAliveWithNoWindows ) EXPECT_EQ ( 1 , DownloadCoreService : : NonMaliciousDownloadCountAllProfiles ( ) ) ;\n else EXPECT_EQ ( 0 , DownloadCoreService : : NonMaliciousDownloadCountAllProfiles ( ) ) ;\n }"}
{"idx": 2011, "target": 0, "func": "static void HtmlPut ( char * * ppsz_html , const char * psz_text ) {\n HtmlNPut ( ppsz_html , psz_text , INT_MAX ) ;\n }"}
{"idx": 2012, "target": 0, "func": "static gpgme_error_t uiserver_set_colon_line_handler ( void * engine , engine_colon_line_handler_t fnc , void * fnc_value ) {\n engine_uiserver_t uiserver = engine ;\n uiserver -> colon . fnc = fnc ;\n uiserver -> colon . fnc_value = fnc_value ;\n uiserver -> colon . any = 0 ;\n return 0 ;\n }"}
{"idx": 2013, "target": 0, "func": "static void * Type_Screening_Read ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number * nItems , cmsUInt32Number SizeOfTag ) {\n cmsScreening * sc = NULL ;\n cmsUInt32Number i ;\n sc = ( cmsScreening * ) _cmsMallocZero ( self -> ContextID , sizeof ( cmsScreening ) ) ;\n if ( sc == NULL ) return NULL ;\n * nItems = 0 ;\n if ( ! _cmsReadUInt32Number ( io , & sc -> Flag ) ) goto Error ;\n if ( ! _cmsReadUInt32Number ( io , & sc -> nChannels ) ) goto Error ;\n if ( sc -> nChannels > cmsMAXCHANNELS - 1 ) sc -> nChannels = cmsMAXCHANNELS - 1 ;\n for ( i = 0 ;\n i < sc -> nChannels ;\n i ++ ) {\n if ( ! _cmsRead15Fixed16Number ( io , & sc -> Channels [ i ] . Frequency ) ) goto Error ;\n if ( ! _cmsRead15Fixed16Number ( io , & sc -> Channels [ i ] . ScreenAngle ) ) goto Error ;\n if ( ! _cmsReadUInt32Number ( io , & sc -> Channels [ i ] . SpotShape ) ) goto Error ;\n }\n * nItems = 1 ;\n return ( void * ) sc ;\n Error : if ( sc != NULL ) _cmsFree ( self -> ContextID , sc ) ;\n return NULL ;\n cmsUNUSED_PARAMETER ( SizeOfTag ) ;\n }"}
{"idx": 2014, "target": 0, "func": "static int tile_worker_hook ( TileWorkerData * const tile_data , const TileInfo * const tile ) {\n int mi_row , mi_col ;\n for ( mi_row = tile -> mi_row_start ;\n mi_row < tile -> mi_row_end ;\n mi_row += MI_BLOCK_SIZE ) {\n vp9_zero ( tile_data -> xd . left_context ) ;\n vp9_zero ( tile_data -> xd . left_seg_context ) ;\n for ( mi_col = tile -> mi_col_start ;\n mi_col < tile -> mi_col_end ;\n mi_col += MI_BLOCK_SIZE ) {\n decode_partition ( tile_data -> cm , & tile_data -> xd , tile , mi_row , mi_col , & tile_data -> bit_reader , BLOCK_64X64 ) ;\n }\n }\n return ! tile_data -> xd . corrupted ;\n }"}
{"idx": 2015, "target": 0, "func": "static void filesystem_info_cancel ( NautilusDirectory * directory ) {\n if ( directory -> details -> filesystem_info_state != NULL ) {\n g_cancellable_cancel ( directory -> details -> filesystem_info_state -> cancellable ) ;\n directory -> details -> filesystem_info_state -> directory = NULL ;\n directory -> details -> filesystem_info_state = NULL ;\n async_job_end ( directory , \"filesystem info\" ) ;\n }\n }"}
{"idx": 2016, "target": 0, "func": "static void rsvp_init_protocol ( void ) {\n rsvp_request_hash = g_hash_table_new ( rsvp_hash , rsvp_equal ) ;\n }"}
{"idx": 2017, "target": 0, "func": "SPL_METHOD ( SplFileObject , seek ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n long line_pos ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"l\" , & line_pos ) == FAILURE ) {\n return ;\n }\n if ( line_pos < 0 ) {\n zend_throw_exception_ex ( spl_ce_LogicException , 0 TSRMLS_CC , \"Can't seek file %s to negative line %ld\" , intern -> file_name , line_pos ) ;\n RETURN_FALSE ;\n }\n spl_filesystem_file_rewind ( getThis ( ) , intern TSRMLS_CC ) ;\n while ( intern -> u . file . current_line_num < line_pos ) {\n if ( spl_filesystem_file_read_line ( getThis ( ) , intern , 1 TSRMLS_CC ) == FAILURE ) {\n break ;\n }\n }\n }"}
{"idx": 2018, "target": 0, "func": "static __inline__ void __swab16s ( __u16 * p ) {\n # ifdef __arch_swab16s __arch_swab16s ( p ) ;\n # else * p = __swab16p ( p ) ;\n # endif }"}
{"idx": 2019, "target": 0, "func": "int ratestrtosize ( char * s , uint_fast32_t rawsize , uint_fast32_t * size ) {\n jpc_flt_t f ;\n if ( strchr ( s , 'B' ) ) {\n * size = atoi ( s ) ;\n }\n else {\n f = atof ( s ) ;\n if ( f < 0 ) {\n * size = 0 ;\n }\n else if ( f > 1.0 ) {\n * size = rawsize + 1 ;\n }\n else {\n * size = f * rawsize ;\n }\n }\n return 0 ;\n }"}
{"idx": 2020, "target": 0, "func": "VAR * var_get ( const char * var_name , const char * * var_name_end , my_bool raw , my_bool ignore_not_existing ) {\n int digit ;\n VAR * v ;\n DBUG_ENTER ( \"var_get\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"var_name: %s\" , var_name ) ) ;\n if ( * var_name != '$' ) goto err ;\n digit = * ++ var_name - '0' ;\n if ( digit < 0 || digit >= 10 ) {\n const char * save_var_name = var_name , * end ;\n uint length ;\n end = ( var_name_end ) ? * var_name_end : 0 ;\n while ( my_isvar ( charset_info , * var_name ) && var_name != end ) var_name ++ ;\n if ( var_name == save_var_name ) {\n if ( ignore_not_existing ) DBUG_RETURN ( 0 ) ;\n die ( \"Empty variable\" ) ;\n }\n length = ( uint ) ( var_name - save_var_name ) ;\n if ( length >= MAX_VAR_NAME_LENGTH ) die ( \"Too long variable name: %s\" , save_var_name ) ;\n if ( ! ( v = ( VAR * ) my_hash_search ( & var_hash , ( const uchar * ) save_var_name , length ) ) ) {\n char buff [ MAX_VAR_NAME_LENGTH + 1 ] ;\n strmake ( buff , save_var_name , length ) ;\n v = var_from_env ( buff , \"\" ) ;\n }\n var_name -- ;\n }\n else v = var_reg + digit ;\n if ( ! raw && v -> int_dirty ) {\n sprintf ( v -> str_val , \"%d\" , v -> int_val ) ;\n v -> int_dirty = false ;\n v -> str_val_len = strlen ( v -> str_val ) ;\n }\n if ( var_name_end ) * var_name_end = var_name ;\n DBUG_RETURN ( v ) ;\n err : if ( var_name_end ) * var_name_end = 0 ;\n die ( \"Unsupported variable name: %s\" , var_name ) ;\n DBUG_RETURN ( 0 ) ;\n }"}
{"idx": 2021, "target": 0, "func": "void chat_completion_deinit ( void ) {\n while ( global_lastmsgs != NULL ) last_msg_destroy ( & global_lastmsgs , global_lastmsgs -> data ) ;\n signal_remove ( \"complete word\" , ( SIGNAL_FUNC ) sig_complete_word ) ;\n signal_remove ( \"complete command msg\" , ( SIGNAL_FUNC ) sig_complete_msg ) ;\n signal_remove ( \"complete command query\" , ( SIGNAL_FUNC ) sig_complete_msg ) ;\n signal_remove ( \"complete command action\" , ( SIGNAL_FUNC ) sig_complete_msg ) ;\n signal_remove ( \"complete erase command msg\" , ( SIGNAL_FUNC ) sig_erase_complete_msg ) ;\n signal_remove ( \"complete erase command query\" , ( SIGNAL_FUNC ) sig_erase_complete_msg ) ;\n signal_remove ( \"complete erase command action\" , ( SIGNAL_FUNC ) sig_erase_complete_msg ) ;\n signal_remove ( \"complete command connect\" , ( SIGNAL_FUNC ) sig_complete_connect ) ;\n signal_remove ( \"complete command server\" , ( SIGNAL_FUNC ) sig_complete_connect ) ;\n signal_remove ( \"complete command disconnect\" , ( SIGNAL_FUNC ) sig_complete_tag ) ;\n signal_remove ( \"complete command reconnect\" , ( SIGNAL_FUNC ) sig_complete_tag ) ;\n signal_remove ( \"complete command window server\" , ( SIGNAL_FUNC ) sig_complete_tag ) ;\n signal_remove ( \"complete command topic\" , ( SIGNAL_FUNC ) sig_complete_topic ) ;\n signal_remove ( \"complete command away\" , ( SIGNAL_FUNC ) sig_complete_away ) ;\n signal_remove ( \"complete command unalias\" , ( SIGNAL_FUNC ) sig_complete_unalias ) ;\n signal_remove ( \"complete command alias\" , ( SIGNAL_FUNC ) sig_complete_alias ) ;\n signal_remove ( \"complete command window goto\" , ( SIGNAL_FUNC ) sig_complete_window ) ;\n signal_remove ( \"complete command window item move\" , ( SIGNAL_FUNC ) sig_complete_channel ) ;\n signal_remove ( \"complete command server add\" , ( SIGNAL_FUNC ) sig_complete_server ) ;\n signal_remove ( \"complete command server remove\" , ( SIGNAL_FUNC ) sig_complete_server ) ;\n signal_remove ( \"complete command recode remove\" , ( SIGNAL_FUNC ) sig_complete_target ) ;\n signal_remove ( \"message public\" , ( SIGNAL_FUNC ) sig_message_public ) ;\n signal_remove ( \"message join\" , ( SIGNAL_FUNC ) sig_message_join ) ;\n signal_remove ( \"message private\" , ( SIGNAL_FUNC ) sig_message_private ) ;\n signal_remove ( \"message own_public\" , ( SIGNAL_FUNC ) sig_message_own_public ) ;\n signal_remove ( \"message own_private\" , ( SIGNAL_FUNC ) sig_message_own_private ) ;\n signal_remove ( \"nicklist remove\" , ( SIGNAL_FUNC ) sig_nick_removed ) ;\n signal_remove ( \"nicklist changed\" , ( SIGNAL_FUNC ) sig_nick_changed ) ;\n signal_remove ( \"send text\" , ( SIGNAL_FUNC ) event_text ) ;\n signal_remove ( \"server disconnected\" , ( SIGNAL_FUNC ) sig_server_disconnected ) ;\n signal_remove ( \"channel destroyed\" , ( SIGNAL_FUNC ) sig_channel_destroyed ) ;\n signal_remove ( \"setup changed\" , ( SIGNAL_FUNC ) read_settings ) ;\n g_free_not_null ( completion_char ) ;\n g_free_not_null ( cmdchars ) ;\n }"}
{"idx": 2022, "target": 0, "func": "static const uint8_t * decode_tiles_mt ( VP9Decoder * pbi , const uint8_t * data , const uint8_t * data_end ) {\n VP9_COMMON * const cm = & pbi -> common ;\n const VP9WorkerInterface * const winterface = vp9_get_worker_interface ( ) ;\n const uint8_t * bit_reader_end = NULL ;\n const int aligned_mi_cols = mi_cols_aligned_to_sb ( cm -> mi_cols ) ;\n const int tile_cols = 1 << cm -> log2_tile_cols ;\n const int tile_rows = 1 << cm -> log2_tile_rows ;\n const int num_workers = MIN ( pbi -> max_threads & ~ 1 , tile_cols ) ;\n TileBuffer tile_buffers [ 1 ] [ 1 << 6 ] ;\n int n ;\n int final_worker = - 1 ;\n assert ( tile_cols <= ( 1 << 6 ) ) ;\n assert ( tile_rows == 1 ) ;\n ( void ) tile_rows ;\n if ( pbi -> num_tile_workers == 0 ) {\n const int num_threads = pbi -> max_threads & ~ 1 ;\n int i ;\n CHECK_MEM_ERROR ( cm , pbi -> tile_workers , vpx_malloc ( num_threads * sizeof ( * pbi -> tile_workers ) ) ) ;\n for ( i = 0 ;\n i < num_threads ;\n ++ i ) {\n VP9Worker * const worker = & pbi -> tile_workers [ i ] ;\n ++ pbi -> num_tile_workers ;\n winterface -> init ( worker ) ;\n CHECK_MEM_ERROR ( cm , worker -> data1 , vpx_memalign ( 32 , sizeof ( TileWorkerData ) ) ) ;\n CHECK_MEM_ERROR ( cm , worker -> data2 , vpx_malloc ( sizeof ( TileInfo ) ) ) ;\n if ( i < num_threads - 1 && ! winterface -> reset ( worker ) ) {\n vpx_internal_error ( & cm -> error , VPX_CODEC_ERROR , \"Tile decoder thread creation failed\" ) ;\n }\n }\n }\n for ( n = 0 ;\n n < num_workers ;\n ++ n ) {\n pbi -> tile_workers [ n ] . hook = ( VP9WorkerHook ) tile_worker_hook ;\n }\n vpx_memset ( cm -> above_context , 0 , sizeof ( * cm -> above_context ) * MAX_MB_PLANE * 2 * aligned_mi_cols ) ;\n vpx_memset ( cm -> above_seg_context , 0 , sizeof ( * cm -> above_seg_context ) * aligned_mi_cols ) ;\n get_tile_buffers ( pbi , data , data_end , tile_cols , tile_rows , tile_buffers ) ;\n qsort ( tile_buffers [ 0 ] , tile_cols , sizeof ( tile_buffers [ 0 ] [ 0 ] ) , compare_tile_buffers ) ;\n {\n int group_start = 0 ;\n while ( group_start < tile_cols ) {\n const TileBuffer largest = tile_buffers [ 0 ] [ group_start ] ;\n const int group_end = MIN ( group_start + num_workers , tile_cols ) - 1 ;\n memmove ( tile_buffers [ 0 ] + group_start , tile_buffers [ 0 ] + group_start + 1 , ( group_end - group_start ) * sizeof ( tile_buffers [ 0 ] [ 0 ] ) ) ;\n tile_buffers [ 0 ] [ group_end ] = largest ;\n group_start = group_end + 1 ;\n }\n }\n n = 0 ;\n while ( n < tile_cols ) {\n int i ;\n for ( i = 0 ;\n i < num_workers && n < tile_cols ;\n ++ i ) {\n VP9Worker * const worker = & pbi -> tile_workers [ i ] ;\n TileWorkerData * const tile_data = ( TileWorkerData * ) worker -> data1 ;\n TileInfo * const tile = ( TileInfo * ) worker -> data2 ;\n TileBuffer * const buf = & tile_buffers [ 0 ] [ n ] ;\n tile_data -> cm = cm ;\n tile_data -> xd = pbi -> mb ;\n tile_data -> xd . corrupted = 0 ;\n vp9_tile_init ( tile , tile_data -> cm , 0 , buf -> col ) ;\n setup_token_decoder ( buf -> data , data_end , buf -> size , & cm -> error , & tile_data -> bit_reader , pbi -> decrypt_cb , pbi -> decrypt_state ) ;\n init_macroblockd ( cm , & tile_data -> xd ) ;\n vp9_zero ( tile_data -> xd . dqcoeff ) ;\n worker -> had_error = 0 ;\n if ( i == num_workers - 1 || n == tile_cols - 1 ) {\n winterface -> execute ( worker ) ;\n }\n else {\n winterface -> launch ( worker ) ;\n }\n if ( buf -> col == tile_cols - 1 ) {\n final_worker = i ;\n }\n ++ n ;\n }\n for ( ;\n i > 0 ;\n -- i ) {\n VP9Worker * const worker = & pbi -> tile_workers [ i - 1 ] ;\n pbi -> mb . corrupted |= ! winterface -> sync ( worker ) ;\n }\n if ( final_worker > - 1 ) {\n TileWorkerData * const tile_data = ( TileWorkerData * ) pbi -> tile_workers [ final_worker ] . data1 ;\n bit_reader_end = vp9_reader_find_end ( & tile_data -> bit_reader ) ;\n final_worker = - 1 ;\n }\n }\n return bit_reader_end ;\n }"}
{"idx": 2023, "target": 0, "func": "int dissect_ber_bitstring ( gboolean implicit_tag , asn1_ctx_t * actx , proto_tree * parent_tree , tvbuff_t * tvb , int offset , const asn_namedbit * named_bits , gint hf_id , gint ett_id , tvbuff_t * * out_tvb ) {\n return dissect_ber_constrained_bitstring ( implicit_tag , actx , parent_tree , tvb , offset , - 1 , - 1 , named_bits , hf_id , ett_id , out_tvb ) ;\n }"}
{"idx": 2024, "target": 0, "func": "static int kvm_put_xsave ( X86CPU * cpu ) {\n CPUX86State * env = & cpu -> env ;\n X86XSaveArea * xsave = env -> kvm_xsave_buf ;\n if ( ! has_xsave ) {\n return kvm_put_fpu ( cpu ) ;\n }\n x86_cpu_xsave_all_areas ( cpu , xsave ) ;\n return kvm_vcpu_ioctl ( CPU ( cpu ) , KVM_SET_XSAVE , xsave ) ;\n }"}
{"idx": 2025, "target": 0, "func": "static void start_or_stop_io ( NautilusDirectory * directory ) {\n NautilusFile * file ;\n gboolean doing_io ;\n file_list_start_or_stop ( directory ) ;\n file_info_stop ( directory ) ;\n directory_count_stop ( directory ) ;\n deep_count_stop ( directory ) ;\n mime_list_stop ( directory ) ;\n link_info_stop ( directory ) ;\n extension_info_stop ( directory ) ;\n mount_stop ( directory ) ;\n thumbnail_stop ( directory ) ;\n filesystem_info_stop ( directory ) ;\n doing_io = FALSE ;\n while ( ! nautilus_file_queue_is_empty ( directory -> details -> high_priority_queue ) ) {\n file = nautilus_file_queue_head ( directory -> details -> high_priority_queue ) ;\n file_info_start ( directory , file , & doing_io ) ;\n link_info_start ( directory , file , & doing_io ) ;\n if ( doing_io ) {\n return ;\n }\n move_file_to_low_priority_queue ( directory , file ) ;\n }\n while ( ! nautilus_file_queue_is_empty ( directory -> details -> low_priority_queue ) ) {\n file = nautilus_file_queue_head ( directory -> details -> low_priority_queue ) ;\n mount_start ( directory , file , & doing_io ) ;\n directory_count_start ( directory , file , & doing_io ) ;\n deep_count_start ( directory , file , & doing_io ) ;\n mime_list_start ( directory , file , & doing_io ) ;\n thumbnail_start ( directory , file , & doing_io ) ;\n filesystem_info_start ( directory , file , & doing_io ) ;\n if ( doing_io ) {\n return ;\n }\n move_file_to_extension_queue ( directory , file ) ;\n }\n while ( ! nautilus_file_queue_is_empty ( directory -> details -> extension_queue ) ) {\n file = nautilus_file_queue_head ( directory -> details -> extension_queue ) ;\n extension_info_start ( directory , file , & doing_io ) ;\n if ( doing_io ) {\n return ;\n }\n nautilus_directory_remove_file_from_work_queue ( directory , file ) ;\n }\n }"}
{"idx": 2026, "target": 0, "func": "static gint protobuf_verify_wiretype ( protobuf_desc_t * pb , protobuf_tag_t * tag , packet_info * pinfo , proto_tree * tree , guint8 expected_wire_type ) {\n gint len ;\n gint64 len_prefix ;\n proto_item * ti = NULL ;\n if ( expected_wire_type == tag -> wire_type ) {\n if ( expected_wire_type == PROTOBUF_WIRETYPE_LENGTHDELIMITED ) {\n len_prefix = get_varint64 ( pb -> tvb , pb -> offset , pb -> bytes_left , & len ) ;\n if ( len_prefix < 0 || len_prefix > G_MAXINT ) {\n ti = proto_tree_add_item ( tree , hf_steam_ihs_discovery_unknown_data , pb -> tvb , pb -> offset + len , pb -> bytes_left - len , ENC_NA ) ;\n expert_add_info_format ( pinfo , ti , & ei_steam_ihs_discovery_invalid_length , \"Length-delimited field %\" G_GUINT64_FORMAT \" has length prefix %\" G_GINT64_FORMAT \" outside valid range (0 <= x <= G_MAXINT).\" , tag -> field_number , len_prefix ) ;\n return pb -> bytes_left ;\n }\n else if ( ( ( gint ) len_prefix ) > ( pb -> bytes_left - len ) ) {\n ti = proto_tree_add_item ( tree , hf_steam_ihs_discovery_unknown_data , pb -> tvb , pb -> offset + len , pb -> bytes_left - len , ENC_NA ) ;\n expert_add_info_format ( pinfo , ti , & ei_steam_ihs_discovery_invalid_length , \"Length-delimited field %\" G_GUINT64_FORMAT \" has length prefix %\" G_GINT64_FORMAT \", but buffer is only %d bytes long.\" , tag -> field_number , len_prefix , ( pb -> bytes_left - len ) ) ;\n return pb -> bytes_left ;\n }\n }\n return 0 ;\n }\n len = protobuf_dissect_unknown_field ( pb , tag , pinfo , tree , & ti ) ;\n expert_add_info_format ( pinfo , ti , & ei_steam_ihs_discovery_invalid_wiretype , \"Expected wiretype %d (%s) for field %\" G_GUINT64_FORMAT \", but got %d (%s) instead.\" , expected_wire_type , protobuf_get_wiretype_name ( expected_wire_type ) , tag -> field_number , tag -> wire_type , protobuf_get_wiretype_name ( tag -> wire_type ) ) ;\n return len ;\n }"}
{"idx": 2027, "target": 0, "func": "TSReturnCode sdk_sanity_check_mime_parser ( TSMimeParser parser ) {\n if ( parser == nullptr ) {\n return TS_ERROR ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 2028, "target": 0, "func": "static int evhttp_parse_request_line ( struct evhttp_request * req , char * line ) {\n char * method ;\n char * uri ;\n char * version ;\n method = strsep ( & line , \" \" ) ;\n if ( line == NULL ) return ( - 1 ) ;\n uri = strsep ( & line , \" \" ) ;\n if ( line == NULL ) return ( - 1 ) ;\n version = strsep ( & line , \" \" ) ;\n if ( line != NULL ) return ( - 1 ) ;\n if ( strcmp ( method , \"GET\" ) == 0 ) {\n req -> type = EVHTTP_REQ_GET ;\n }\n else if ( strcmp ( method , \"POST\" ) == 0 ) {\n req -> type = EVHTTP_REQ_POST ;\n }\n else if ( strcmp ( method , \"HEAD\" ) == 0 ) {\n req -> type = EVHTTP_REQ_HEAD ;\n }\n else {\n event_debug ( ( \"%s: bad method %s on request %p from %s\" , __func__ , method , req , req -> remote_host ) ) ;\n return ( - 1 ) ;\n }\n if ( strcmp ( version , \"HTTP/1.0\" ) == 0 ) {\n req -> major = 1 ;\n req -> minor = 0 ;\n }\n else if ( strcmp ( version , \"HTTP/1.1\" ) == 0 ) {\n req -> major = 1 ;\n req -> minor = 1 ;\n }\n else {\n event_debug ( ( \"%s: bad version %s on request %p from %s\" , __func__ , version , req , req -> remote_host ) ) ;\n return ( - 1 ) ;\n }\n if ( ( req -> uri = strdup ( uri ) ) == NULL ) {\n event_debug ( ( \"%s: strdup\" , __func__ ) ) ;\n return ( - 1 ) ;\n }\n if ( strlen ( req -> uri ) > 0 && req -> uri [ 0 ] != '/' ) req -> flags |= EVHTTP_PROXY_REQUEST ;\n return ( 0 ) ;\n }"}
{"idx": 2029, "target": 0, "func": "xmlHashTablePtr xmlHashCreateDict ( int size , xmlDictPtr dict ) {\n xmlHashTablePtr table ;\n table = xmlHashCreate ( size ) ;\n if ( table != NULL ) {\n table -> dict = dict ;\n xmlDictReference ( dict ) ;\n }\n return ( table ) ;\n }"}
{"idx": 2030, "target": 1, "func": "int ff_h263_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n MpegEncContext * s = avctx -> priv_data ;\n int ret ;\n AVFrame * pict = data ;\n # ifdef PRINT_FRAME_TIME uint64_t time = rdtsc ( ) ;\n # endif s -> flags = avctx -> flags ;\n s -> flags2 = avctx -> flags2 ;\n if ( buf_size == 0 ) {\n if ( s -> low_delay == 0 && s -> next_picture_ptr ) {\n * pict = s -> next_picture_ptr -> f ;\n s -> next_picture_ptr = NULL ;\n * got_frame = 1 ;\n }\n return 0 ;\n }\n if ( s -> flags & CODEC_FLAG_TRUNCATED ) {\n int next ;\n if ( CONFIG_MPEG4_DECODER && s -> codec_id == AV_CODEC_ID_MPEG4 ) {\n next = ff_mpeg4_find_frame_end ( & s -> parse_context , buf , buf_size ) ;\n }\n else if ( CONFIG_H263_DECODER && s -> codec_id == AV_CODEC_ID_H263 ) {\n next = ff_h263_find_frame_end ( & s -> parse_context , buf , buf_size ) ;\n }\n else {\n av_log ( s -> avctx , AV_LOG_ERROR , \"this codec does not support truncated bitstreams\\n\" ) ;\n return - 1 ;\n }\n if ( ff_combine_frame ( & s -> parse_context , next , ( const uint8_t * * ) & buf , & buf_size ) < 0 ) return buf_size ;\n }\n retry : if ( s -> bitstream_buffer_size && ( s -> divx_packed || buf_size < 20 ) ) {\n init_get_bits ( & s -> gb , s -> bitstream_buffer , s -> bitstream_buffer_size * 8 ) ;\n }\n else init_get_bits ( & s -> gb , buf , buf_size * 8 ) ;\n s -> bitstream_buffer_size = 0 ;\n if ( ! s -> context_initialized ) {\n if ( ff_MPV_common_init ( s ) < 0 ) return - 1 ;\n }\n if ( s -> current_picture_ptr == NULL || s -> current_picture_ptr -> f . data [ 0 ] ) {\n int i = ff_find_unused_picture ( s , 0 ) ;\n if ( i < 0 ) return i ;\n s -> current_picture_ptr = & s -> picture [ i ] ;\n }\n if ( CONFIG_WMV2_DECODER && s -> msmpeg4_version == 5 ) {\n ret = ff_wmv2_decode_picture_header ( s ) ;\n }\n else if ( CONFIG_MSMPEG4_DECODER && s -> msmpeg4_version ) {\n ret = ff_msmpeg4_decode_picture_header ( s ) ;\n }\n else if ( CONFIG_MPEG4_DECODER && s -> h263_pred ) {\n if ( s -> avctx -> extradata_size && s -> picture_number == 0 ) {\n GetBitContext gb ;\n init_get_bits ( & gb , s -> avctx -> extradata , s -> avctx -> extradata_size * 8 ) ;\n ret = ff_mpeg4_decode_picture_header ( s , & gb ) ;\n }\n ret = ff_mpeg4_decode_picture_header ( s , & s -> gb ) ;\n }\n else if ( CONFIG_H263I_DECODER && s -> codec_id == AV_CODEC_ID_H263I ) {\n ret = ff_intel_h263_decode_picture_header ( s ) ;\n }\n else if ( CONFIG_FLV_DECODER && s -> h263_flv ) {\n ret = ff_flv_decode_picture_header ( s ) ;\n }\n else {\n ret = ff_h263_decode_picture_header ( s ) ;\n }\n if ( ret == FRAME_SKIPPED ) return get_consumed_bytes ( s , buf_size ) ;\n if ( ret < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"header damaged\\n\" ) ;\n return - 1 ;\n }\n avctx -> has_b_frames = ! s -> low_delay ;\n if ( s -> xvid_build == - 1 && s -> divx_version == - 1 && s -> lavc_build == - 1 ) {\n if ( s -> stream_codec_tag == AV_RL32 ( \"XVID\" ) || s -> codec_tag == AV_RL32 ( \"XVID\" ) || s -> codec_tag == AV_RL32 ( \"XVIX\" ) || s -> codec_tag == AV_RL32 ( \"RMP4\" ) || s -> codec_tag == AV_RL32 ( \"ZMP4\" ) || s -> codec_tag == AV_RL32 ( \"SIPP\" ) ) s -> xvid_build = 0 ;\n # if 0 if ( s -> codec_tag == AV_RL32 ( \"DIVX\" ) && s -> vo_type == 0 && s -> vol_control_parameters == 1 && s -> padding_bug_score > 0 && s -> low_delay ) s -> xvid_build = 0 ;\n # endif }\n if ( s -> xvid_build == - 1 && s -> divx_version == - 1 && s -> lavc_build == - 1 ) {\n if ( s -> codec_tag == AV_RL32 ( \"DIVX\" ) && s -> vo_type == 0 && s -> vol_control_parameters == 0 ) s -> divx_version = 400 ;\n }\n if ( s -> xvid_build >= 0 && s -> divx_version >= 0 ) {\n s -> divx_version = s -> divx_build = - 1 ;\n }\n if ( s -> workaround_bugs & FF_BUG_AUTODETECT ) {\n if ( s -> codec_tag == AV_RL32 ( \"XVIX\" ) ) s -> workaround_bugs |= FF_BUG_XVID_ILACE ;\n if ( s -> codec_tag == AV_RL32 ( \"UMP4\" ) ) {\n s -> workaround_bugs |= FF_BUG_UMP4 ;\n }\n if ( s -> divx_version >= 500 && s -> divx_build < 1814 ) {\n s -> workaround_bugs |= FF_BUG_QPEL_CHROMA ;\n }\n if ( s -> divx_version > 502 && s -> divx_build < 1814 ) {\n s -> workaround_bugs |= FF_BUG_QPEL_CHROMA2 ;\n }\n if ( s -> xvid_build <= 3U ) s -> padding_bug_score = 256 * 256 * 256 * 64 ;\n if ( s -> xvid_build <= 1U ) s -> workaround_bugs |= FF_BUG_QPEL_CHROMA ;\n if ( s -> xvid_build <= 12U ) s -> workaround_bugs |= FF_BUG_EDGE ;\n if ( s -> xvid_build <= 32U ) s -> workaround_bugs |= FF_BUG_DC_CLIP ;\n # define SET_QPEL_FUNC ( postfix1 , postfix2 ) s -> dsp . put_ ## postfix1 = ff_put_ ## postfix2 ;\n s -> dsp . put_no_rnd_ ## postfix1 = ff_put_no_rnd_ ## postfix2 ;\n s -> dsp . avg_ ## postfix1 = ff_avg_ ## postfix2 ;\n if ( s -> lavc_build < 4653U ) s -> workaround_bugs |= FF_BUG_STD_QPEL ;\n if ( s -> lavc_build < 4655U ) s -> workaround_bugs |= FF_BUG_DIRECT_BLOCKSIZE ;\n if ( s -> lavc_build < 4670U ) {\n s -> workaround_bugs |= FF_BUG_EDGE ;\n }\n if ( s -> lavc_build <= 4712U ) s -> workaround_bugs |= FF_BUG_DC_CLIP ;\n if ( s -> divx_version >= 0 ) s -> workaround_bugs |= FF_BUG_DIRECT_BLOCKSIZE ;\n if ( s -> divx_version == 501 && s -> divx_build == 20020416 ) s -> padding_bug_score = 256 * 256 * 256 * 64 ;\n if ( s -> divx_version < 500U ) {\n s -> workaround_bugs |= FF_BUG_EDGE ;\n }\n if ( s -> divx_version >= 0 ) s -> workaround_bugs |= FF_BUG_HPEL_CHROMA ;\n # if 0 if ( s -> divx_version == 500 ) s -> padding_bug_score = 256 * 256 * 256 * 64 ;\n if ( s -> resync_marker == 0 && s -> data_partitioning == 0 && s -> divx_version == - 1 && s -> codec_id == AV_CODEC_ID_MPEG4 && s -> vo_type == 0 ) s -> workaround_bugs |= FF_BUG_NO_PADDING ;\n if ( s -> lavc_build < 4609U ) s -> workaround_bugs |= FF_BUG_NO_PADDING ;\n # endif }\n if ( s -> workaround_bugs & FF_BUG_STD_QPEL ) {\n SET_QPEL_FUNC ( qpel_pixels_tab [ 0 ] [ 5 ] , qpel16_mc11_old_c ) SET_QPEL_FUNC ( qpel_pixels_tab [ 0 ] [ 7 ] , qpel16_mc31_old_c ) SET_QPEL_FUNC ( qpel_pixels_tab [ 0 ] [ 9 ] , qpel16_mc12_old_c ) SET_QPEL_FUNC ( qpel_pixels_tab [ 0 ] [ 11 ] , qpel16_mc32_old_c ) SET_QPEL_FUNC ( qpel_pixels_tab [ 0 ] [ 13 ] , qpel16_mc13_old_c ) SET_QPEL_FUNC ( qpel_pixels_tab [ 0 ] [ 15 ] , qpel16_mc33_old_c ) SET_QPEL_FUNC ( qpel_pixels_tab [ 1 ] [ 5 ] , qpel8_mc11_old_c ) SET_QPEL_FUNC ( qpel_pixels_tab [ 1 ] [ 7 ] , qpel8_mc31_old_c ) SET_QPEL_FUNC ( qpel_pixels_tab [ 1 ] [ 9 ] , qpel8_mc12_old_c ) SET_QPEL_FUNC ( qpel_pixels_tab [ 1 ] [ 11 ] , qpel8_mc32_old_c ) SET_QPEL_FUNC ( qpel_pixels_tab [ 1 ] [ 13 ] , qpel8_mc13_old_c ) SET_QPEL_FUNC ( qpel_pixels_tab [ 1 ] [ 15 ] , qpel8_mc33_old_c ) }\n if ( avctx -> debug & FF_DEBUG_BUGS ) av_log ( s -> avctx , AV_LOG_DEBUG , \"bugs: %X lavc_build:%d xvid_build:%d divx_version:%d divx_build:%d %s\\n\" , s -> workaround_bugs , s -> lavc_build , s -> xvid_build , s -> divx_version , s -> divx_build , s -> divx_packed ? \"p\" : \"\" ) ;\n # if HAVE_MMX if ( s -> codec_id == AV_CODEC_ID_MPEG4 && s -> xvid_build >= 0 && avctx -> idct_algo == FF_IDCT_AUTO && ( av_get_cpu_flags ( ) & AV_CPU_FLAG_MMX ) ) {\n avctx -> idct_algo = FF_IDCT_XVIDMMX ;\n ff_dct_common_init ( s ) ;\n s -> picture_number = 0 ;\n }\n # endif if ( ! avctx -> coded_width || ! avctx -> coded_height ) {\n ParseContext pc = s -> parse_context ;\n s -> parse_context . buffer = 0 ;\n ff_MPV_common_end ( s ) ;\n s -> parse_context = pc ;\n avcodec_set_dimensions ( avctx , s -> width , s -> height ) ;\n goto retry ;\n }\n if ( s -> width != avctx -> coded_width || s -> height != avctx -> coded_height || s -> context_reinit ) {\n s -> context_reinit = 0 ;\n avcodec_set_dimensions ( avctx , s -> width , s -> height ) ;\n if ( ( ret = ff_MPV_common_frame_size_change ( s ) ) ) return ret ;\n }\n if ( ( s -> codec_id == AV_CODEC_ID_H263 || s -> codec_id == AV_CODEC_ID_H263P || s -> codec_id == AV_CODEC_ID_H263I ) ) s -> gob_index = ff_h263_get_gob_height ( s ) ;\n s -> current_picture . f . pict_type = s -> pict_type ;\n s -> current_picture . f . key_frame = s -> pict_type == AV_PICTURE_TYPE_I ;\n if ( s -> last_picture_ptr == NULL && ( s -> pict_type == AV_PICTURE_TYPE_B || s -> droppable ) ) return get_consumed_bytes ( s , buf_size ) ;\n if ( ( avctx -> skip_frame >= AVDISCARD_NONREF && s -> pict_type == AV_PICTURE_TYPE_B ) || ( avctx -> skip_frame >= AVDISCARD_NONKEY && s -> pict_type != AV_PICTURE_TYPE_I ) || avctx -> skip_frame >= AVDISCARD_ALL ) return get_consumed_bytes ( s , buf_size ) ;\n if ( s -> next_p_frame_damaged ) {\n if ( s -> pict_type == AV_PICTURE_TYPE_B ) return get_consumed_bytes ( s , buf_size ) ;\n else s -> next_p_frame_damaged = 0 ;\n }\n if ( ( ! s -> no_rounding ) || s -> pict_type == AV_PICTURE_TYPE_B ) {\n s -> me . qpel_put = s -> dsp . put_qpel_pixels_tab ;\n s -> me . qpel_avg = s -> dsp . avg_qpel_pixels_tab ;\n }\n else {\n s -> me . qpel_put = s -> dsp . put_no_rnd_qpel_pixels_tab ;\n s -> me . qpel_avg = s -> dsp . avg_qpel_pixels_tab ;\n }\n if ( ff_MPV_frame_start ( s , avctx ) < 0 ) return - 1 ;\n if ( ! s -> divx_packed ) ff_thread_finish_setup ( avctx ) ;\n if ( CONFIG_MPEG4_VDPAU_DECODER && ( s -> avctx -> codec -> capabilities & CODEC_CAP_HWACCEL_VDPAU ) ) {\n ff_vdpau_mpeg4_decode_picture ( s , s -> gb . buffer , s -> gb . buffer_end - s -> gb . buffer ) ;\n goto frame_end ;\n }\n if ( avctx -> hwaccel ) {\n if ( avctx -> hwaccel -> start_frame ( avctx , s -> gb . buffer , s -> gb . buffer_end - s -> gb . buffer ) < 0 ) return - 1 ;\n }\n ff_mpeg_er_frame_start ( s ) ;\n if ( CONFIG_WMV2_DECODER && s -> msmpeg4_version == 5 ) {\n ret = ff_wmv2_decode_secondary_picture_header ( s ) ;\n if ( ret < 0 ) return ret ;\n if ( ret == 1 ) goto intrax8_decoded ;\n }\n s -> mb_x = 0 ;\n s -> mb_y = 0 ;\n ret = decode_slice ( s ) ;\n while ( s -> mb_y < s -> mb_height ) {\n if ( s -> msmpeg4_version ) {\n if ( s -> slice_height == 0 || s -> mb_x != 0 || ( s -> mb_y % s -> slice_height ) != 0 || get_bits_left ( & s -> gb ) < 0 ) break ;\n }\n else {\n int prev_x = s -> mb_x , prev_y = s -> mb_y ;\n if ( ff_h263_resync ( s ) < 0 ) break ;\n if ( prev_y * s -> mb_width + prev_x < s -> mb_y * s -> mb_width + s -> mb_x ) s -> er . error_occurred = 1 ;\n }\n if ( s -> msmpeg4_version < 4 && s -> h263_pred ) ff_mpeg4_clean_buffers ( s ) ;\n if ( decode_slice ( s ) < 0 ) ret = AVERROR_INVALIDDATA ;\n }\n if ( s -> msmpeg4_version && s -> msmpeg4_version < 4 && s -> pict_type == AV_PICTURE_TYPE_I ) if ( ! CONFIG_MSMPEG4_DECODER || ff_msmpeg4_decode_ext_header ( s , buf_size ) < 0 ) {\n s -> er . error_status_table [ s -> mb_num - 1 ] = ER_MB_ERROR ;\n }\n assert ( s -> bitstream_buffer_size == 0 ) ;\n frame_end : if ( s -> codec_id == AV_CODEC_ID_MPEG4 && s -> divx_packed ) {\n int current_pos = get_bits_count ( & s -> gb ) >> 3 ;\n int startcode_found = 0 ;\n if ( buf_size - current_pos > 5 ) {\n int i ;\n for ( i = current_pos ;\n i < buf_size - 3 ;\n i ++ ) {\n if ( buf [ i ] == 0 && buf [ i + 1 ] == 0 && buf [ i + 2 ] == 1 && buf [ i + 3 ] == 0xB6 ) {\n startcode_found = 1 ;\n break ;\n }\n }\n }\n if ( s -> gb . buffer == s -> bitstream_buffer && buf_size > 7 && s -> xvid_build >= 0 ) {\n startcode_found = 1 ;\n current_pos = 0 ;\n }\n if ( startcode_found ) {\n av_fast_malloc ( & s -> bitstream_buffer , & s -> allocated_bitstream_buffer_size , buf_size - current_pos + FF_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( ! s -> bitstream_buffer ) return AVERROR ( ENOMEM ) ;\n memcpy ( s -> bitstream_buffer , buf + current_pos , buf_size - current_pos ) ;\n s -> bitstream_buffer_size = buf_size - current_pos ;\n }\n }\n intrax8_decoded : ff_er_frame_end ( & s -> er ) ;\n if ( avctx -> hwaccel ) {\n if ( avctx -> hwaccel -> end_frame ( avctx ) < 0 ) return - 1 ;\n }\n ff_MPV_frame_end ( s ) ;\n assert ( s -> current_picture . f . pict_type == s -> current_picture_ptr -> f . pict_type ) ;\n assert ( s -> current_picture . f . pict_type == s -> pict_type ) ;\n if ( s -> pict_type == AV_PICTURE_TYPE_B || s -> low_delay ) {\n * pict = s -> current_picture_ptr -> f ;\n }\n else if ( s -> last_picture_ptr != NULL ) {\n * pict = s -> last_picture_ptr -> f ;\n }\n if ( s -> last_picture_ptr || s -> low_delay ) {\n * got_frame = 1 ;\n ff_print_debug_info ( s , pict ) ;\n }\n # ifdef PRINT_FRAME_TIME av_log ( avctx , AV_LOG_DEBUG , \"%\" PRId64 \"\\n\" , rdtsc ( ) - time ) ;\n # endif return ( ret && ( avctx -> err_recognition & AV_EF_EXPLODE ) ) ? ret : get_consumed_bytes ( s , buf_size ) ;\n }"}
{"idx": 2031, "target": 0, "func": "static void show_setup_info ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree ) {\n struct _rtp_conversation_info * p_conv_data = NULL ;\n proto_tree * rtp_setup_tree ;\n proto_item * ti ;\n p_conv_data = ( struct _rtp_conversation_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_rtp , 0 ) ;\n if ( ! p_conv_data ) return ;\n ti = proto_tree_add_string_format ( tree , hf_rtp_setup , tvb , 0 , 0 , \"\" , \"Stream setup by %s (frame %u)\" , p_conv_data -> method , p_conv_data -> frame_number ) ;\n PROTO_ITEM_SET_GENERATED ( ti ) ;\n rtp_setup_tree = proto_item_add_subtree ( ti , ett_rtp_setup ) ;\n if ( rtp_setup_tree ) {\n proto_item * item = proto_tree_add_uint ( rtp_setup_tree , hf_rtp_setup_frame , tvb , 0 , 0 , p_conv_data -> frame_number ) ;\n PROTO_ITEM_SET_GENERATED ( item ) ;\n item = proto_tree_add_string ( rtp_setup_tree , hf_rtp_setup_method , tvb , 0 , 0 , p_conv_data -> method ) ;\n PROTO_ITEM_SET_GENERATED ( item ) ;\n }\n }"}
{"idx": 2032, "target": 0, "func": "int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 )"}
{"idx": 2033, "target": 0, "func": "static bool equivalent_locale ( int category , const char * loca , const char * locb ) {\n const char * chara ;\n const char * charb ;\n char * canona ;\n char * canonb ;\n int lena ;\n int lenb ;\n if ( pg_strcasecmp ( loca , locb ) == 0 ) return true ;\n canona = get_canonical_locale_name ( category , loca ) ;\n chara = strrchr ( canona , '.' ) ;\n lena = chara ? ( chara - canona ) : strlen ( canona ) ;\n canonb = get_canonical_locale_name ( category , locb ) ;\n charb = strrchr ( canonb , '.' ) ;\n lenb = charb ? ( charb - canonb ) : strlen ( canonb ) ;\n if ( lena == lenb && pg_strncasecmp ( canona , canonb , lena ) == 0 ) {\n pg_free ( canona ) ;\n pg_free ( canonb ) ;\n return true ;\n }\n pg_free ( canona ) ;\n pg_free ( canonb ) ;\n return false ;\n }"}
{"idx": 2034, "target": 0, "func": "static int xan_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int ret , buf_size = avpkt -> size ;\n XanContext * s = avctx -> priv_data ;\n GetByteContext ctx ;\n int tag = 0 ;\n bytestream2_init ( & ctx , buf , buf_size ) ;\n while ( bytestream2_get_bytes_left ( & ctx ) > 8 && tag != VGA__TAG ) {\n unsigned * tmpptr ;\n uint32_t new_pal ;\n int size ;\n int i ;\n tag = bytestream2_get_le32 ( & ctx ) ;\n size = bytestream2_get_be32 ( & ctx ) ;\n size = FFMIN ( size , bytestream2_get_bytes_left ( & ctx ) ) ;\n switch ( tag ) {\n case PALT_TAG : if ( size < PALETTE_SIZE ) return AVERROR_INVALIDDATA ;\n if ( s -> palettes_count >= PALETTES_MAX ) return AVERROR_INVALIDDATA ;\n tmpptr = av_realloc ( s -> palettes , ( s -> palettes_count + 1 ) * AVPALETTE_SIZE ) ;\n if ( ! tmpptr ) return AVERROR ( ENOMEM ) ;\n s -> palettes = tmpptr ;\n tmpptr += s -> palettes_count * AVPALETTE_COUNT ;\n for ( i = 0 ;\n i < PALETTE_COUNT ;\n i ++ ) {\n # if RUNTIME_GAMMA int r = gamma_corr ( bytestream2_get_byteu ( & ctx ) ) ;\n int g = gamma_corr ( bytestream2_get_byteu ( & ctx ) ) ;\n int b = gamma_corr ( bytestream2_get_byteu ( & ctx ) ) ;\n # else int r = gamma_lookup [ bytestream2_get_byteu ( & ctx ) ] ;\n int g = gamma_lookup [ bytestream2_get_byteu ( & ctx ) ] ;\n int b = gamma_lookup [ bytestream2_get_byteu ( & ctx ) ] ;\n # endif * tmpptr ++ = ( r << 16 ) | ( g << 8 ) | b ;\n }\n s -> palettes_count ++ ;\n break ;\n case SHOT_TAG : if ( size < 4 ) return AVERROR_INVALIDDATA ;\n new_pal = bytestream2_get_le32 ( & ctx ) ;\n if ( new_pal < s -> palettes_count ) {\n s -> cur_palette = new_pal ;\n }\n else av_log ( avctx , AV_LOG_ERROR , \"Invalid palette selected\\n\" ) ;\n break ;\n case VGA__TAG : break ;\n default : bytestream2_skip ( & ctx , size ) ;\n break ;\n }\n }\n buf_size = bytestream2_get_bytes_left ( & ctx ) ;\n if ( s -> palettes_count <= 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"No palette found\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ( ret = ff_get_buffer ( avctx , frame , AV_GET_BUFFER_FLAG_REF ) ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( ! s -> frame_size ) s -> frame_size = frame -> linesize [ 0 ] * s -> avctx -> height ;\n memcpy ( frame -> data [ 1 ] , s -> palettes + s -> cur_palette * AVPALETTE_COUNT , AVPALETTE_SIZE ) ;\n s -> buf = ctx . buffer ;\n s -> size = buf_size ;\n if ( xan_wc3_decode_frame ( s , frame ) < 0 ) return AVERROR_INVALIDDATA ;\n av_frame_unref ( & s -> last_frame ) ;\n if ( ( ret = av_frame_ref ( & s -> last_frame , frame ) ) < 0 ) return ret ;\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 2035, "target": 0, "func": "static int cirrus_bitblt_videotovideo_patterncopy ( CirrusVGAState * s ) {\n return cirrus_bitblt_common_patterncopy ( s ) ;\n }"}
{"idx": 2036, "target": 1, "func": "static int kvm_get_supported_msrs ( KVMState * s ) {\n static int kvm_supported_msrs ;\n int ret = 0 ;\n if ( kvm_supported_msrs == 0 ) {\n struct kvm_msr_list msr_list , * kvm_msr_list ;\n kvm_supported_msrs = - 1 ;\n msr_list . nmsrs = 0 ;\n ret = kvm_ioctl ( s , KVM_GET_MSR_INDEX_LIST , & msr_list ) ;\n if ( ret < 0 && ret != - E2BIG ) {\n return ret ;\n }\n kvm_msr_list = g_malloc0 ( MAX ( 1024 , sizeof ( msr_list ) + msr_list . nmsrs * sizeof ( msr_list . indices [ 0 ] ) ) ) ;\n kvm_msr_list -> nmsrs = msr_list . nmsrs ;\n ret = kvm_ioctl ( s , KVM_GET_MSR_INDEX_LIST , kvm_msr_list ) ;\n if ( ret >= 0 ) {\n int i ;\n for ( i = 0 ;\n i < kvm_msr_list -> nmsrs ;\n i ++ ) {\n switch ( kvm_msr_list -> indices [ i ] ) {\n case MSR_STAR : has_msr_star = true ;\n break ;\n case MSR_VM_HSAVE_PA : has_msr_hsave_pa = true ;\n break ;\n case MSR_TSC_AUX : has_msr_tsc_aux = true ;\n break ;\n case MSR_TSC_ADJUST : has_msr_tsc_adjust = true ;\n break ;\n case MSR_IA32_TSCDEADLINE : has_msr_tsc_deadline = true ;\n break ;\n case MSR_IA32_SMBASE : has_msr_smbase = true ;\n break ;\n case MSR_SMI_COUNT : has_msr_smi_count = true ;\n break ;\n case MSR_IA32_MISC_ENABLE : has_msr_misc_enable = true ;\n break ;\n case MSR_IA32_BNDCFGS : has_msr_bndcfgs = true ;\n break ;\n case MSR_IA32_XSS : has_msr_xss = true ;\n break ;\n case HV_X64_MSR_CRASH_CTL : has_msr_hv_crash = true ;\n break ;\n case HV_X64_MSR_RESET : has_msr_hv_reset = true ;\n break ;\n case HV_X64_MSR_VP_INDEX : has_msr_hv_vpindex = true ;\n break ;\n case HV_X64_MSR_VP_RUNTIME : has_msr_hv_runtime = true ;\n break ;\n case HV_X64_MSR_SCONTROL : has_msr_hv_synic = true ;\n break ;\n case HV_X64_MSR_STIMER0_CONFIG : has_msr_hv_stimer = true ;\n break ;\n case HV_X64_MSR_TSC_FREQUENCY : has_msr_hv_frequencies = true ;\n break ;\n case HV_X64_MSR_REENLIGHTENMENT_CONTROL : has_msr_hv_reenlightenment = true ;\n break ;\n case MSR_IA32_SPEC_CTRL : has_msr_spec_ctrl = true ;\n break ;\n }\n }\n }\n g_free ( kvm_msr_list ) ;\n }\n return ret ;\n }"}
{"idx": 2037, "target": 1, "func": "void vp9_append_sub8x8_mvs_for_idx ( VP9_COMMON * cm , MACROBLOCKD * xd , const TileInfo * const tile , int block , int ref , int mi_row , int mi_col , int_mv * nearest , int_mv * near ) {\n int_mv mv_list [ MAX_MV_REF_CANDIDATES ] ;\n MODE_INFO * const mi = xd -> mi [ 0 ] ;\n b_mode_info * bmi = mi -> bmi ;\n int n ;\n assert ( MAX_MV_REF_CANDIDATES == 2 ) ;\n find_mv_refs_idx ( cm , xd , tile , mi , mi -> mbmi . ref_frame [ ref ] , mv_list , block , mi_row , mi_col ) ;\n near -> as_int = 0 ;\n switch ( block ) {\n case 0 : nearest -> as_int = mv_list [ 0 ] . as_int ;\n near -> as_int = mv_list [ 1 ] . as_int ;\n break ;\n case 1 : case 2 : nearest -> as_int = bmi [ 0 ] . as_mv [ ref ] . as_int ;\n for ( n = 0 ;\n n < MAX_MV_REF_CANDIDATES ;\n ++ n ) if ( nearest -> as_int != mv_list [ n ] . as_int ) {\n near -> as_int = mv_list [ n ] . as_int ;\n break ;\n }\n break ;\n case 3 : {\n int_mv candidates [ 2 + MAX_MV_REF_CANDIDATES ] ;\n candidates [ 0 ] = bmi [ 1 ] . as_mv [ ref ] ;\n candidates [ 1 ] = bmi [ 0 ] . as_mv [ ref ] ;\n candidates [ 2 ] = mv_list [ 0 ] ;\n candidates [ 3 ] = mv_list [ 1 ] ;\n nearest -> as_int = bmi [ 2 ] . as_mv [ ref ] . as_int ;\n for ( n = 0 ;\n n < 2 + MAX_MV_REF_CANDIDATES ;\n ++ n ) if ( nearest -> as_int != candidates [ n ] . as_int ) {\n near -> as_int = candidates [ n ] . as_int ;\n break ;\n }\n break ;\n }\n default : assert ( \"Invalid block index.\" ) ;\n }\n }"}
{"idx": 2038, "target": 0, "func": "static int dissect_h225_StimulusControl ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_StimulusControl , StimulusControl_sequence ) ;\n return offset ;\n }"}
{"idx": 2039, "target": 0, "func": "static inline void SetPixelBlueTraits ( Image * image , const PixelTrait traits ) {\n image -> channel_map [ BluePixelChannel ] . traits = traits ;\n }"}
{"idx": 2040, "target": 0, "func": "bool func_strict ( Oid funcid ) {\n HeapTuple tp ;\n bool result ;\n tp = SearchSysCache1 ( PROCOID , ObjectIdGetDatum ( funcid ) ) ;\n if ( ! HeapTupleIsValid ( tp ) ) elog ( ERROR , \"cache lookup failed for function %u\" , funcid ) ;\n result = ( ( Form_pg_proc ) GETSTRUCT ( tp ) ) -> proisstrict ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }"}
{"idx": 2041, "target": 0, "func": "void pdf_update_xobject_contents ( fz_context * ctx , pdf_document * doc , pdf_xobject * form , fz_buffer * buffer ) {\n pdf_update_stream ( ctx , doc , form -> obj , buffer , 0 ) ;\n form -> iteration ++ ;\n }"}
{"idx": 2042, "target": 0, "func": "static int dissect_h245_INTEGER_2_8191 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 2U , 8191U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 2043, "target": 1, "func": "static void _UTF16LEReset ( UConverter * cnv , UConverterResetChoice choice ) {\n if ( choice <= UCNV_RESET_TO_UNICODE ) {\n if ( UCNV_GET_VERSION ( cnv ) == 0 ) {\n cnv -> mode = 8 ;\n }\n else {\n cnv -> mode = 0 ;\n }\n }\n if ( choice != UCNV_RESET_TO_UNICODE && UCNV_GET_VERSION ( cnv ) == 1 ) {\n cnv -> fromUnicodeStatus = UCNV_NEED_TO_WRITE_BOM ;\n }\n }"}
{"idx": 2044, "target": 1, "func": "static int mv_read_header ( AVFormatContext * avctx ) {\n MvContext * mv = avctx -> priv_data ;\n AVIOContext * pb = avctx -> pb ;\n AVStream * ast = NULL , * vst = NULL ;\n int version , i ;\n int ret ;\n avio_skip ( pb , 4 ) ;\n version = avio_rb16 ( pb ) ;\n if ( version == 2 ) {\n uint64_t timestamp ;\n int v ;\n avio_skip ( pb , 22 ) ;\n ast = avformat_new_stream ( avctx , NULL ) ;\n if ( ! ast ) return AVERROR ( ENOMEM ) ;\n vst = avformat_new_stream ( avctx , NULL ) ;\n if ( ! vst ) return AVERROR ( ENOMEM ) ;\n avpriv_set_pts_info ( vst , 64 , 1 , 15 ) ;\n vst -> codecpar -> codec_type = AVMEDIA_TYPE_VIDEO ;\n vst -> avg_frame_rate = av_inv_q ( vst -> time_base ) ;\n vst -> nb_frames = avio_rb32 ( pb ) ;\n v = avio_rb32 ( pb ) ;\n switch ( v ) {\n case 1 : vst -> codecpar -> codec_id = AV_CODEC_ID_MVC1 ;\n break ;\n case 2 : vst -> codecpar -> format = AV_PIX_FMT_ARGB ;\n vst -> codecpar -> codec_id = AV_CODEC_ID_RAWVIDEO ;\n break ;\n default : avpriv_request_sample ( avctx , \"Video compression %i\" , v ) ;\n break ;\n }\n vst -> codecpar -> codec_tag = 0 ;\n vst -> codecpar -> width = avio_rb32 ( pb ) ;\n vst -> codecpar -> height = avio_rb32 ( pb ) ;\n avio_skip ( pb , 12 ) ;\n ast -> codecpar -> codec_type = AVMEDIA_TYPE_AUDIO ;\n ast -> nb_frames = vst -> nb_frames ;\n ast -> codecpar -> sample_rate = avio_rb32 ( pb ) ;\n if ( ast -> codecpar -> sample_rate <= 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid sample rate %d\\n\" , ast -> codecpar -> sample_rate ) ;\n return AVERROR_INVALIDDATA ;\n }\n avpriv_set_pts_info ( ast , 33 , 1 , ast -> codecpar -> sample_rate ) ;\n if ( set_channels ( avctx , ast , avio_rb32 ( pb ) ) < 0 ) return AVERROR_INVALIDDATA ;\n v = avio_rb32 ( pb ) ;\n if ( v == AUDIO_FORMAT_SIGNED ) {\n ast -> codecpar -> codec_id = AV_CODEC_ID_PCM_S16BE ;\n }\n else {\n avpriv_request_sample ( avctx , \"Audio compression (format %i)\" , v ) ;\n }\n avio_skip ( pb , 12 ) ;\n var_read_metadata ( avctx , \"title\" , 0x80 ) ;\n var_read_metadata ( avctx , \"comment\" , 0x100 ) ;\n avio_skip ( pb , 0x80 ) ;\n timestamp = 0 ;\n for ( i = 0 ;\n i < vst -> nb_frames ;\n i ++ ) {\n uint32_t pos = avio_rb32 ( pb ) ;\n uint32_t asize = avio_rb32 ( pb ) ;\n uint32_t vsize = avio_rb32 ( pb ) ;\n avio_skip ( pb , 8 ) ;\n av_add_index_entry ( ast , pos , timestamp , asize , 0 , AVINDEX_KEYFRAME ) ;\n av_add_index_entry ( vst , pos + asize , i , vsize , 0 , AVINDEX_KEYFRAME ) ;\n timestamp += asize / ( ast -> codecpar -> channels * 2 ) ;\n }\n }\n else if ( ! version && avio_rb16 ( pb ) == 3 ) {\n avio_skip ( pb , 4 ) ;\n if ( ( ret = read_table ( avctx , NULL , parse_global_var ) ) < 0 ) return ret ;\n if ( mv -> nb_audio_tracks > 1 ) {\n avpriv_request_sample ( avctx , \"Multiple audio streams support\" ) ;\n return AVERROR_PATCHWELCOME ;\n }\n else if ( mv -> nb_audio_tracks ) {\n ast = avformat_new_stream ( avctx , NULL ) ;\n if ( ! ast ) return AVERROR ( ENOMEM ) ;\n ast -> codecpar -> codec_type = AVMEDIA_TYPE_AUDIO ;\n if ( ( read_table ( avctx , ast , parse_audio_var ) ) < 0 ) return ret ;\n if ( mv -> acompression == 100 && mv -> aformat == AUDIO_FORMAT_SIGNED && ast -> codecpar -> bits_per_coded_sample == 16 ) {\n ast -> codecpar -> codec_id = AV_CODEC_ID_PCM_S16BE ;\n }\n else {\n avpriv_request_sample ( avctx , \"Audio compression %i (format %i, sr %i)\" , mv -> acompression , mv -> aformat , ast -> codecpar -> bits_per_coded_sample ) ;\n ast -> codecpar -> codec_id = AV_CODEC_ID_NONE ;\n }\n if ( ast -> codecpar -> channels <= 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"No valid channel count found.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n if ( mv -> nb_video_tracks > 1 ) {\n avpriv_request_sample ( avctx , \"Multiple video streams support\" ) ;\n return AVERROR_PATCHWELCOME ;\n }\n else if ( mv -> nb_video_tracks ) {\n vst = avformat_new_stream ( avctx , NULL ) ;\n if ( ! vst ) return AVERROR ( ENOMEM ) ;\n vst -> codecpar -> codec_type = AVMEDIA_TYPE_VIDEO ;\n if ( ( ret = read_table ( avctx , vst , parse_video_var ) ) < 0 ) return ret ;\n }\n if ( mv -> nb_audio_tracks ) read_index ( pb , ast ) ;\n if ( mv -> nb_video_tracks ) read_index ( pb , vst ) ;\n }\n else {\n avpriv_request_sample ( avctx , \"Version %i\" , version ) ;\n return AVERROR_PATCHWELCOME ;\n }\n return 0 ;\n }"}
{"idx": 2045, "target": 0, "func": "static inline int l1_unscale ( int n , int mant , int scale_factor ) {\n int shift , mod ;\n int64_t val ;\n shift = scale_factor_modshift [ scale_factor ] ;\n mod = shift & 3 ;\n shift >>= 2 ;\n val = MUL64 ( mant + ( - 1 << n ) + 1 , scale_factor_mult [ n - 1 ] [ mod ] ) ;\n shift += n ;\n return ( int ) ( ( val + ( 1LL << ( shift - 1 ) ) ) >> shift ) ;\n }"}
{"idx": 2046, "target": 0, "func": "unsigned int gcry_pk_get_nbits ( gcry_sexp_t key ) {\n gcry_module_t module = NULL ;\n gcry_pk_spec_t * pubkey ;\n gcry_mpi_t * keyarr = NULL ;\n unsigned int nbits = 0 ;\n gcry_err_code_t rc ;\n REGISTER_DEFAULT_PUBKEYS ;\n rc = sexp_to_key ( key , 0 , 0 , NULL , & keyarr , & module , NULL ) ;\n if ( rc == GPG_ERR_INV_OBJ ) rc = sexp_to_key ( key , 1 , 0 , NULL , & keyarr , & module , NULL ) ;\n if ( rc ) return 0 ;\n pubkey = ( gcry_pk_spec_t * ) module -> spec ;\n nbits = ( * pubkey -> get_nbits ) ( module -> mod_id , keyarr ) ;\n ath_mutex_lock ( & pubkeys_registered_lock ) ;\n _gcry_module_release ( module ) ;\n ath_mutex_unlock ( & pubkeys_registered_lock ) ;\n release_mpi_array ( keyarr ) ;\n gcry_free ( keyarr ) ;\n return nbits ;\n }"}
{"idx": 2047, "target": 0, "func": "int ff_intrax8_decode_picture ( IntraX8Context * const w , int dquant , int quant_offset ) {\n MpegEncContext * const s = w -> s ;\n int mb_xy ;\n assert ( s ) ;\n w -> use_quant_matrix = get_bits1 ( & s -> gb ) ;\n w -> dquant = dquant ;\n w -> quant = dquant >> 1 ;\n w -> qsum = quant_offset ;\n w -> divide_quant_dc_luma = ( ( 1 << 16 ) + ( w -> quant >> 1 ) ) / w -> quant ;\n if ( w -> quant < 5 ) {\n w -> quant_dc_chroma = w -> quant ;\n w -> divide_quant_dc_chroma = w -> divide_quant_dc_luma ;\n }\n else {\n w -> quant_dc_chroma = w -> quant + ( ( w -> quant + 3 ) >> 3 ) ;\n w -> divide_quant_dc_chroma = ( ( 1 << 16 ) + ( w -> quant_dc_chroma >> 1 ) ) / w -> quant_dc_chroma ;\n }\n x8_reset_vlc_tables ( w ) ;\n s -> resync_mb_x = 0 ;\n s -> resync_mb_y = 0 ;\n for ( s -> mb_y = 0 ;\n s -> mb_y < s -> mb_height * 2 ;\n s -> mb_y ++ ) {\n x8_init_block_index ( s ) ;\n mb_xy = ( s -> mb_y >> 1 ) * s -> mb_stride ;\n for ( s -> mb_x = 0 ;\n s -> mb_x < s -> mb_width * 2 ;\n s -> mb_x ++ ) {\n x8_get_prediction ( w ) ;\n if ( x8_setup_spatial_predictor ( w , 0 ) ) goto error ;\n if ( x8_decode_intra_mb ( w , 0 ) ) goto error ;\n if ( s -> mb_x & s -> mb_y & 1 ) {\n x8_get_prediction_chroma ( w ) ;\n x8_setup_spatial_predictor ( w , 1 ) ;\n if ( x8_decode_intra_mb ( w , 1 ) ) goto error ;\n x8_setup_spatial_predictor ( w , 2 ) ;\n if ( x8_decode_intra_mb ( w , 2 ) ) goto error ;\n s -> dest [ 1 ] += 8 ;\n s -> dest [ 2 ] += 8 ;\n s -> mbskip_table [ mb_xy ] = 0 ;\n s -> mbintra_table [ mb_xy ] = 1 ;\n s -> current_picture . qscale_table [ mb_xy ] = w -> quant ;\n mb_xy ++ ;\n }\n s -> dest [ 0 ] += 8 ;\n }\n if ( s -> mb_y & 1 ) {\n ff_mpeg_draw_horiz_band ( s , ( s -> mb_y - 1 ) * 8 , 16 ) ;\n }\n }\n error : ff_er_add_slice ( & s -> er , s -> resync_mb_x , s -> resync_mb_y , ( s -> mb_x >> 1 ) - 1 , ( s -> mb_y >> 1 ) - 1 , ER_MB_END ) ;\n return 0 ;\n }"}
{"idx": 2048, "target": 0, "func": "void proto_reg_handoff_opcua ( void ) {\n opcua_handle = create_dissector_handle ( dissect_opcua , proto_opcua ) ;\n dissector_add_uint_range_with_preference ( \"tcp.port\" , OPCUA_PORT_RANGE , opcua_handle ) ;\n }"}
{"idx": 2049, "target": 0, "func": "hb_face_t * hb_face_create ( hb_blob_t * blob , unsigned int index ) {\n hb_face_t * face ;\n if ( unlikely ( ! blob ) ) blob = hb_blob_get_empty ( ) ;\n hb_face_for_data_closure_t * closure = _hb_face_for_data_closure_create ( OT : : Sanitizer < OT : : OpenTypeFontFile > : : sanitize ( hb_blob_reference ( blob ) ) , index ) ;\n if ( unlikely ( ! closure ) ) return hb_face_get_empty ( ) ;\n face = hb_face_create_for_tables ( _hb_face_for_data_reference_table , closure , ( hb_destroy_func_t ) _hb_face_for_data_closure_destroy ) ;\n hb_face_set_index ( face , index ) ;\n return face ;\n }"}
{"idx": 2050, "target": 0, "func": "int rfc2231_parse ( struct rfc822_parser_context * ctx , const char * const * * result_r ) {\n ARRAY_TYPE ( const_string ) result ;\n ARRAY ( struct rfc2231_parameter ) rfc2231_params_arr ;\n struct rfc2231_parameter rfc2231_param ;\n const struct rfc2231_parameter * rfc2231_params ;\n const char * key , * value , * p , * p2 ;\n string_t * str ;\n unsigned int i , j , count , next , next_idx ;\n bool ok , have_extended , broken = FALSE ;\n int ret ;\n i_zero ( & rfc2231_param ) ;\n t_array_init ( & result , 8 ) ;\n t_array_init ( & rfc2231_params_arr , 8 ) ;\n while ( ( ret = rfc822_parse_content_param ( ctx , & key , & value ) ) != 0 ) {\n if ( ret < 0 ) {\n broken = TRUE ;\n if ( ctx -> data >= ctx -> end ) break ;\n ctx -> data ++ ;\n continue ;\n }\n p = strchr ( key , '*' ) ;\n if ( p != NULL ) {\n p2 = p ;\n if ( p [ 1 ] != '\\0' ) {\n p ++ ;\n rfc2231_param . idx = 0 ;\n for ( ;\n * p >= '0' && * p <= '9' ;\n p ++ ) {\n rfc2231_param . idx = rfc2231_param . idx * 10 + * p - '0' ;\n }\n }\n if ( * p != '*' ) rfc2231_param . extended = FALSE ;\n else {\n rfc2231_param . extended = TRUE ;\n p ++ ;\n }\n if ( * p != '\\0' ) p = NULL ;\n else {\n rfc2231_param . key = t_strdup_until ( key , p2 ) ;\n rfc2231_param . value = value ;\n array_append ( & rfc2231_params_arr , & rfc2231_param , 1 ) ;\n }\n }\n if ( p == NULL ) {\n array_append ( & result , & key , 1 ) ;\n array_append ( & result , & value , 1 ) ;\n }\n }\n if ( array_count ( & rfc2231_params_arr ) == 0 ) {\n array_append_zero ( & result ) ;\n * result_r = array_idx ( & result , 0 ) ;\n return broken ? - 1 : 0 ;\n }\n array_sort ( & rfc2231_params_arr , rfc2231_parameter_cmp ) ;\n rfc2231_params = array_get ( & rfc2231_params_arr , & count ) ;\n str = t_str_new ( 64 ) ;\n for ( i = 0 ;\n i < count ;\n i = next ) {\n ok = TRUE ;\n have_extended = FALSE ;\n next_idx = 0 ;\n for ( j = i ;\n j < count ;\n j ++ ) {\n if ( strcasecmp ( rfc2231_params [ i ] . key , rfc2231_params [ j ] . key ) != 0 ) break ;\n if ( rfc2231_params [ j ] . idx != next_idx ) {\n ok = FALSE ;\n }\n if ( rfc2231_params [ j ] . extended ) have_extended = TRUE ;\n next_idx ++ ;\n }\n next = j ;\n if ( ! ok ) {\n for ( j = i ;\n j < next ;\n j ++ ) {\n key = t_strdup_printf ( rfc2231_params [ j ] . extended ? \"%s*%u*\" : \"%s*%u\" , rfc2231_params [ j ] . key , rfc2231_params [ j ] . idx ) ;\n array_append ( & result , & key , 1 ) ;\n array_append ( & result , & rfc2231_params [ j ] . value , 1 ) ;\n }\n }\n else {\n str_truncate ( str , 0 ) ;\n if ( ! rfc2231_params [ i ] . extended && have_extended ) str_append ( str , \"''\" ) ;\n for ( j = i ;\n j < next ;\n j ++ ) {\n if ( ! rfc2231_params [ j ] . extended && have_extended ) {\n rfc2231_escape ( str , rfc2231_params [ j ] . value ) ;\n }\n else {\n str_append ( str , rfc2231_params [ j ] . value ) ;\n }\n }\n key = rfc2231_params [ i ] . key ;\n if ( have_extended ) key = t_strconcat ( key , \"*\" , NULL ) ;\n value = t_strdup ( str_c ( str ) ) ;\n array_append ( & result , & key , 1 ) ;\n array_append ( & result , & value , 1 ) ;\n }\n }\n array_append_zero ( & result ) ;\n * result_r = array_idx ( & result , 0 ) ;\n return broken ? - 1 : 0 ;\n }"}
{"idx": 2051, "target": 0, "func": "static void print_short_term ( H264Context * h ) {\n uint32_t i ;\n if ( h -> avctx -> debug & FF_DEBUG_MMCO ) {\n av_log ( h -> avctx , AV_LOG_DEBUG , \"short term list:\\n\" ) ;\n for ( i = 0 ;\n i < h -> short_ref_count ;\n i ++ ) {\n Picture * pic = h -> short_ref [ i ] ;\n av_log ( h -> avctx , AV_LOG_DEBUG , \"%d fn:%d poc:%d %p\\n\" , i , pic -> frame_num , pic -> poc , pic -> f . data [ 0 ] ) ;\n }\n }\n }"}
{"idx": 2052, "target": 0, "func": "static inline guint64 gst_asf_demux_get_uint64 ( guint8 * * p_data , guint64 * p_size ) {\n guint64 ret ;\n g_assert ( * p_size >= 8 ) ;\n ret = GST_READ_UINT64_LE ( * p_data ) ;\n * p_data += sizeof ( guint64 ) ;\n * p_size -= sizeof ( guint64 ) ;\n return ret ;\n }"}
{"idx": 2053, "target": 0, "func": "void remove_tap_listener_sdp_calls ( void ) {\n remove_tap_listener ( & ( the_tapinfo_struct . sdp_dummy ) ) ;\n have_sdp_tap_listener = FALSE ;\n }"}
{"idx": 2054, "target": 0, "func": "static int cyuv_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n CyuvDecodeContext * s = avctx -> priv_data ;\n AVFrame * frame = data ;\n unsigned char * y_plane ;\n unsigned char * u_plane ;\n unsigned char * v_plane ;\n int y_ptr ;\n int u_ptr ;\n int v_ptr ;\n const signed char * y_table = ( const signed char * ) buf + 0 ;\n const signed char * u_table = ( const signed char * ) buf + 16 ;\n const signed char * v_table = ( const signed char * ) buf + 32 ;\n unsigned char y_pred , u_pred , v_pred ;\n int stream_ptr ;\n unsigned char cur_byte ;\n int pixel_groups ;\n int ret ;\n if ( avctx -> codec_id == AV_CODEC_ID_AURA ) {\n y_table = u_table ;\n u_table = v_table ;\n }\n if ( buf_size != 48 + s -> height * ( s -> width * 3 / 4 ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"got a buffer with %d bytes when %d were expected\\n\" , buf_size , 48 + s -> height * ( s -> width * 3 / 4 ) ) ;\n return AVERROR_INVALIDDATA ;\n }\n stream_ptr = 48 ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n y_plane = frame -> data [ 0 ] ;\n u_plane = frame -> data [ 1 ] ;\n v_plane = frame -> data [ 2 ] ;\n for ( y_ptr = 0 , u_ptr = 0 , v_ptr = 0 ;\n y_ptr < ( s -> height * frame -> linesize [ 0 ] ) ;\n y_ptr += frame -> linesize [ 0 ] - s -> width , u_ptr += frame -> linesize [ 1 ] - s -> width / 4 , v_ptr += frame -> linesize [ 2 ] - s -> width / 4 ) {\n cur_byte = buf [ stream_ptr ++ ] ;\n u_plane [ u_ptr ++ ] = u_pred = cur_byte & 0xF0 ;\n y_plane [ y_ptr ++ ] = y_pred = ( cur_byte & 0x0F ) << 4 ;\n cur_byte = buf [ stream_ptr ++ ] ;\n v_plane [ v_ptr ++ ] = v_pred = cur_byte & 0xF0 ;\n y_pred += y_table [ cur_byte & 0x0F ] ;\n y_plane [ y_ptr ++ ] = y_pred ;\n cur_byte = buf [ stream_ptr ++ ] ;\n y_pred += y_table [ cur_byte & 0x0F ] ;\n y_plane [ y_ptr ++ ] = y_pred ;\n y_pred += y_table [ ( cur_byte & 0xF0 ) >> 4 ] ;\n y_plane [ y_ptr ++ ] = y_pred ;\n pixel_groups = s -> width / 4 - 1 ;\n while ( pixel_groups -- ) {\n cur_byte = buf [ stream_ptr ++ ] ;\n u_pred += u_table [ ( cur_byte & 0xF0 ) >> 4 ] ;\n u_plane [ u_ptr ++ ] = u_pred ;\n y_pred += y_table [ cur_byte & 0x0F ] ;\n y_plane [ y_ptr ++ ] = y_pred ;\n cur_byte = buf [ stream_ptr ++ ] ;\n v_pred += v_table [ ( cur_byte & 0xF0 ) >> 4 ] ;\n v_plane [ v_ptr ++ ] = v_pred ;\n y_pred += y_table [ cur_byte & 0x0F ] ;\n y_plane [ y_ptr ++ ] = y_pred ;\n cur_byte = buf [ stream_ptr ++ ] ;\n y_pred += y_table [ cur_byte & 0x0F ] ;\n y_plane [ y_ptr ++ ] = y_pred ;\n y_pred += y_table [ ( cur_byte & 0xF0 ) >> 4 ] ;\n y_plane [ y_ptr ++ ] = y_pred ;\n }\n }\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 2055, "target": 1, "func": "static ossl_inline t2 * sk_ ## t1 ## _value ( const STACK_OF ( t1 ) * sk , int idx ) {\n return ( t2 * ) OPENSSL_sk_value ( ( const OPENSSL_STACK * ) sk , idx ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new ( sk_ ## t1 ## _compfunc compare ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new ( ( OPENSSL_sk_compfunc ) compare ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_null ( void ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_null ( ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_reserve ( sk_ ## t1 ## _compfunc compare , int n ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_reserve ( ( OPENSSL_sk_compfunc ) compare , n ) ;\n }\n static ossl_inline int sk_ ## t1 ## _reserve ( STACK_OF ( t1 ) * sk , int n ) {\n return OPENSSL_sk_reserve ( ( OPENSSL_STACK * ) sk , n ) ;\n }\n static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 2056, "target": 0, "func": "void print_form_element ( int element , int cmd ) {\n time_t t ;\n int t_hour , t_min ;\n char buffer [ MAX_INPUT_BUFFER ] ;\n switch ( element ) {\n case PRINT_COMMON_HEADER : printf ( \"<tr><td COLSPAN=\\\"2\\\">&nbsp;\n</td></tr>\\n\" ) ;\n printf ( \"<tr><td COLSPAN=\\\"2\\\" CLASS='sectionHeader'>Common Data</td></tr>\\n\" ) ;\n printf ( \"<tr><td COLSPAN=\\\"2\\\">&nbsp;\n</td></tr>\\n\" ) ;\n break ;\n case PRINT_AUTHOR : printf ( \"<tr><td class=\\\"objectDescription descriptionleft\\\">Author (Your Name):</td><td align=\\\"left\\\">\" ) ;\n if ( lock_author_names == TRUE ) printf ( \"<INPUT TYPE='HIDDEN' NAME='com_author' VALUE='%s'>%s</td></tr>\\n\" , escape_string ( comment_author ) , escape_string ( comment_author ) ) ;\n else printf ( \"<INPUT TYPE='INPUT' NAME='com_author' VALUE='%s'></td></tr>\\n\" , escape_string ( comment_author ) ) ;\n break ;\n case PRINT_COMMENT_BOX : strcpy ( help_text , \"If you work with other administrators, you may find it useful to share information about a host/service \" \"that is having problems if more than one of you may be working on it. \" \"Make sure to enter a brief description of what you are doing.\" ) ;\n printf ( \"<tr><td class=\\\"objectDescription descriptionleft\\\">Comment:\" ) ;\n print_help_box ( help_text ) ;\n printf ( \"</td><td align=\\\"left\\\">\" ) ;\n printf ( \"<TEXTAREA ID=\\\"com_data\\\" NAME='com_data' COLS=25 ROWS=2 onkeyup=\\\"check_input();\n\\\">%s</TEXTAREA>\" , escape_string ( comment_data ) ) ;\n printf ( \"<BR><DIV ID='com_data_error' class=\\\"inputError\\\" style=\\\"display:none;\n\\\">Comment data can't be sent empty</DIV>\" ) ;\n printf ( \"</td></tr>\\n\" ) ;\n break ;\n case PRINT_CHECK_OUTPUT_BOX : snprintf ( help_text , sizeof ( help_text ) , \"Fill in the exact output string which sould be sent to %s\" , PROGRAM_NAME ) ;\n help_text [ sizeof ( help_text ) - 1 ] = '\\x0' ;\n printf ( \"<tr><td class=\\\"objectDescription descriptionleft\\\">Check Output:\" ) ;\n print_help_box ( help_text ) ;\n printf ( \"</td><td align=\\\"left\\\">\" ) ;\n printf ( \"<TEXTAREA ID=\\\"plugin_output\\\" NAME='plugin_output' COLS=25 ROWS=2 onkeyup=\\\"check_input();\n\\\"></TEXTAREA>\" ) ;\n printf ( \"<BR><DIV ID='plugin_output_error' class=\\\"inputError\\\" style=\\\"display:none;\n\\\">Output string can't be send empty</DIV>\" ) ;\n printf ( \"</td></tr>\\n\" ) ;\n break ;\n case PRINT_PERFORMANCE_DATA_BOX : snprintf ( help_text , sizeof ( help_text ) , \"Fill in the exact performance data string which sould be sent to %s\" , PROGRAM_NAME ) ;\n help_text [ sizeof ( help_text ) - 1 ] = '\\x0' ;\n printf ( \"<tr><td class=\\\"objectDescription descriptionleft\\\">Performance Data:\" ) ;\n print_help_box ( help_text ) ;\n printf ( \"</td><td align=\\\"left\\\">\" ) ;\n printf ( \"<TEXTAREA NAME='performance_data' COLS=25 ROWS=2></TEXTAREA></td></tr>\\n\" ) ;\n break ;\n case PRINT_STICKY_ACK : strcpy ( help_text , \"If you want acknowledgement to disable notifications until the host/service recovers, check this option.\" ) ;\n printf ( \"<tr><td class=\\\"objectDescription descriptionleft\\\">Sticky Acknowledgement:\" ) ;\n print_help_box ( help_text ) ;\n printf ( \"</td><td align=\\\"left\\\">\" ) ;\n printf ( \"<INPUT TYPE='checkbox' NAME='sticky_ack' %s></td></tr>\\n\" , ( sticky_ack == TRUE ) ? \"CHECKED\" : \"\" ) ;\n break ;\n case PRINT_SEND_NOTFICATION : strcpy ( help_text , \"If you do not want an acknowledgement notification sent out to the appropriate contacts, uncheck this option.\" ) ;\n printf ( \"<tr><td class=\\\"objectDescription descriptionleft\\\">Send Notification:\" ) ;\n print_help_box ( help_text ) ;\n printf ( \"</td><td align=\\\"left\\\">\" ) ;\n printf ( \"<INPUT TYPE='checkbox' NAME='send_notification' %s></td></tr>\\n\" , ( send_notification == TRUE ) ? \"CHECKED\" : \"\" ) ;\n break ;\n case PRINT_PERSISTENT : if ( cmd == CMD_ACKNOWLEDGE_HOST_PROBLEM || cmd == CMD_ACKNOWLEDGE_SVC_PROBLEM ) strcpy ( help_text , \"If you would like the comment to remain once the acknowledgement is removed, check this checkbox.\" ) ;\n else {\n snprintf ( help_text , sizeof ( help_text ) , \"If you uncheck this option, the comment will automatically be deleted the next time %s is restarted.\" , PROGRAM_NAME ) ;\n help_text [ sizeof ( help_text ) - 1 ] = '\\x0' ;\n }\n printf ( \"<tr><td class=\\\"objectDescription descriptionleft\\\">Persistent%s:\" , ( cmd == CMD_ACKNOWLEDGE_HOST_PROBLEM || cmd == CMD_ACKNOWLEDGE_SVC_PROBLEM ) ? \" Comment\" : \"\" ) ;\n print_help_box ( help_text ) ;\n printf ( \"</td><td align=\\\"left\\\">\" ) ;\n printf ( \"<INPUT TYPE='checkbox' NAME='persistent' %s></td></tr>\\n\" , ( persistent_ack_comments == TRUE || cmd == CMD_ADD_HOST_COMMENT || cmd == CMD_ADD_SVC_COMMENT ) ? \"CHECKED\" : \"\" ) ;\n break ;\n case PRINT_NOTIFICATION_DELAY : strcpy ( help_text , \"The notification delay will be disregarded if the host/service changes state before the next notification is scheduled to be sent out.\" ) ;\n printf ( \"<tr><td class=\\\"objectDescription descriptionleft\\\">Notification Delay (minutes from now):\" ) ;\n print_help_box ( help_text ) ;\n printf ( \"</td><td align=\\\"left\\\">\" ) ;\n printf ( \"<INPUT TYPE='TEXT' ID='not_dly' NAME='not_dly' VALUE='%d' SIZE=\\\"4\\\">\" , notification_delay ) ;\n printf ( \"<BR><DIV ID='not_dly_error' class=\\\"inputError\\\" style=\\\"display:none;\n\\\">Notification delay can't be zero</DIV>\" ) ;\n printf ( \"</td></tr>\\n\" ) ;\n break ;\n case PRINT_START_TIME : case PRINT_END_TIME : case PRINT_CHECK_TIME : time ( & t ) ;\n if ( element == PRINT_END_TIME ) t += ( unsigned long ) default_downtime_duration ;\n get_time_string ( & t , buffer , sizeof ( buffer ) - 1 , SHORT_DATE_TIME ) ;\n printf ( \"<tr><td class=\\\"objectDescription descriptionleft\\\">\" ) ;\n if ( element == PRINT_START_TIME ) {\n strcpy ( help_text , \"Set the start date/time for the downtime.\" ) ;\n printf ( \"Start Time:\" ) ;\n }\n else if ( element == PRINT_END_TIME ) {\n strcpy ( help_text , \"Set the end date/time for the downtime.\" ) ;\n printf ( \"End Time:\" ) ;\n }\n else {\n strcpy ( help_text , \"Set the date/time when this check should be schedule to.\" ) ;\n printf ( \"Check Time:\" ) ;\n }\n print_help_box ( help_text ) ;\n printf ( \"</td><td align=\\\"left\\\"><INPUT TYPE='TEXT' class='timepicker' NAME='%s_time' VALUE='%s' SIZE=\\\"25\\\"></td></tr>\\n\" , ( element == PRINT_END_TIME ) ? \"end\" : \"start\" , buffer ) ;\n break ;\n case PRINT_FIXED_FLEXIBLE_TYPE : default_downtime_duration = default_downtime_duration / 60 ;\n t_min = default_downtime_duration % 60 ;\n default_downtime_duration = default_downtime_duration - t_min ;\n t_hour = ( default_downtime_duration / 60 ) ;\n snprintf ( help_text , sizeof ( help_text ) , \"If you select the <i>fixed</i> option, the downtime will be in effect between the start and end times you specify. If you do not select the <i>fixed</i> \" \"option, %s will treat this as <i>flexible</i> downtime. Flexible downtime starts when the host goes down or becomes unreachable / service becomes critical (sometime between the \" \"start and end times you specified) and lasts as long as the duration of time you enter. The duration fields do not apply for fixed downtime.\" , PROGRAM_NAME ) ;\n help_text [ sizeof ( help_text ) - 1 ] = '\\x0' ;\n printf ( \"<tr><td class=\\\"objectDescription descriptionleft\\\">Type:\" ) ;\n print_help_box ( help_text ) ;\n printf ( \"</td><td align=\\\"left\\\">\\n\" ) ;\n printf ( \"\\t<SELECT ID=\\\"flexible_selection\\\" NAME='fixed' onChange=\\\"if (document.getElementById('flexible_selection').selectedIndex == 0) document.getElementById('fd_row').style.display = 'none';\n else document.getElementById('fd_row').style.display = '';\n\\\">\\n\" ) ;\n printf ( \"\\t\\t<OPTION VALUE=1\\\">Fixed</OPTION>\\n\" ) ;\n printf ( \"\\t\\t<OPTION VALUE=0\\\">Flexible</OPTION>\\n\" ) ;\n printf ( \"\\t</SELECT>\\n\" ) ;\n snprintf ( help_text , sizeof ( help_text ) , \"Enter here the duration of the downtime. %s will automatically delete the downtime after this time expired.\" , PROGRAM_NAME ) ;\n help_text [ sizeof ( help_text ) - 1 ] = '\\x0' ;\n printf ( \"<tr id=\\\"fd_row\\\" style=\\\"display:none;\n\\\"><td class=\\\"objectDescription descriptionleft\\\">Flexible Duration:\" ) ;\n print_help_box ( help_text ) ;\n printf ( \"</td><td align=\\\"left\\\">\\n\" ) ;\n printf ( \"\\t<table border=0 cellspacing=0 cellpadding=0>\\n\" ) ;\n printf ( \"\\t\\t<tr>\\n\" ) ;\n printf ( \"\\t\\t\\t<td><INPUT TYPE='TEXT' NAME='hours' VALUE='%d' SIZE=4 MAXLENGTH=4></td>\\n\" , t_hour ) ;\n printf ( \"\\t\\t\\t<td width=\\\"50\\\">&nbsp;\nHours</td>\\n\" ) ;\n printf ( \"\\t\\t\\t<td><INPUT TYPE='TEXT' NAME='minutes' VALUE='%d' SIZE=2 MAXLENGTH=2></td>\\n\" , t_min ) ;\n printf ( \"\\t\\t\\t<td width=\\\"50\\\">&nbsp;\nMinutes</td>\\n\" ) ;\n printf ( \"\\t\\t</tr>\\n\" ) ;\n printf ( \"\\t</table>\\n\" ) ;\n printf ( \"</td></tr>\\n\" ) ;\n break ;\n case PRINT_EXPIRE_ACKNOWLEDGEMENT : strcpy ( help_text , \"If you want to let the acknowledgement expire, check this option.\" ) ;\n printf ( \"<tr><td class=\\\"objectDescription descriptionleft\\\">Use Expire Time:\" ) ;\n print_help_box ( help_text ) ;\n printf ( \"</td><td align=\\\"left\\\">\" ) ;\n printf ( \"<INPUT TYPE='checkbox' ID='expire_checkbox' NAME='use_ack_end_time' onClick=\\\"if (document.getElementById('expire_checkbox').checked == true) document.getElementById('expired_date_row').style.display = '';\n else document.getElementById('expired_date_row').style.display = 'none';\n\\\"></td></tr>\\n\" ) ;\n snprintf ( help_text , sizeof ( help_text ) , \"Enter here the expire date/time for this acknowledgement. %s will automatically delete the acknowledgement after this time expired.\" , PROGRAM_NAME ) ;\n help_text [ sizeof ( help_text ) - 1 ] = '\\x0' ;\n time ( & t ) ;\n t += ( unsigned long ) default_expiring_acknowledgement_duration ;\n get_time_string ( & t , buffer , sizeof ( buffer ) - 1 , SHORT_DATE_TIME ) ;\n printf ( \"<tr id=\\\"expired_date_row\\\" style=\\\"display:none;\n\\\"><td class=\\\"objectDescription descriptionleft\\\">Expire Time:\" ) ;\n print_help_box ( help_text ) ;\n printf ( \"</td><td align=\\\"left\\\"><INPUT TYPE='TEXT' class='timepicker' NAME='end_time' VALUE='%s' SIZE=\\\"25\\\"></td></tr>\\n\" , buffer ) ;\n break ;\n case PRINT_EXPIRE_DISABLE_NOTIFICATIONS : strcpy ( help_text , \"If you want to let the disabled notifications expire, check this option.\" ) ;\n printf ( \"<tr><td class=\\\"objectDescription descriptionleft\\\">Use Expire Time:\" ) ;\n print_help_box ( help_text ) ;\n printf ( \"</td><td align=\\\"left\\\">\" ) ;\n printf ( \"<INPUT TYPE='checkbox' ID='expire_checkbox' NAME='use_disabled_notif_end_time' onClick=\\\"if (document.getElementById('expire_checkbox').checked == true) document.getElementById('expired_date_row').style.display = '';\n else document.getElementById('expired_date_row').style.display = 'none';\n\\\"></td></tr>\\n\" ) ;\n snprintf ( help_text , sizeof ( help_text ) , \"Enter the expire date/time for disabled notifications. %s will automatically re-enable all notifications after this time expired.\" , PROGRAM_NAME ) ;\n help_text [ sizeof ( help_text ) - 1 ] = '\\x0' ;\n time ( & t ) ;\n t += ( unsigned long ) default_expiring_disabled_notifications_duration ;\n get_time_string ( & t , buffer , sizeof ( buffer ) - 1 , SHORT_DATE_TIME ) ;\n printf ( \"<tr id=\\\"expired_date_row\\\" style=\\\"display:none;\n\\\"><td class=\\\"objectDescription descriptionleft\\\">Expire Time:\" ) ;\n print_help_box ( help_text ) ;\n printf ( \"</td><td align=\\\"left\\\"><INPUT TYPE='TEXT' class='timepicker' NAME='end_time' VALUE='%s' SIZE=\\\"25\\\"></td></tr>\\n\" , buffer ) ;\n break ;\n case PRINT_FORCE_CHECK : snprintf ( help_text , sizeof ( help_text ) , \"If you select this option, %s will force a check of the host/service regardless of both what time the scheduled check occurs and whether or not checks are enabled for the host/service.\" , PROGRAM_NAME ) ;\n help_text [ sizeof ( help_text ) - 1 ] = '\\x0' ;\n printf ( \"<tr><td class=\\\"objectDescription descriptionleft\\\">Force Check:\" ) ;\n print_help_box ( help_text ) ;\n printf ( \"</td><td align=\\\"left\\\">\" ) ;\n printf ( \"<INPUT TYPE='checkbox' NAME='force_check' %s></td></tr>\\n\" , ( force_check == TRUE ) ? \"CHECKED\" : \"\" ) ;\n break ;\n case PRINT_BROADCAST_NOTIFICATION : strcpy ( help_text , \"Selecting this option causes the notification to be sent out to all normal (non-escalated) and escalated contacts. These options allow you to override the normal notification logic if you need to get an important message out.\" ) ;\n printf ( \"<tr><td class=\\\"objectDescription descriptionleft\\\">Broadcast:\" ) ;\n print_help_box ( help_text ) ;\n printf ( \"</td><td align=\\\"left\\\">\" ) ;\n printf ( \"<INPUT TYPE='checkbox' NAME='broadcast_notification'></td></tr>\\n\" ) ;\n break ;\n case PRINT_FORCE_NOTIFICATION : snprintf ( help_text , sizeof ( help_text ) , \"Custom notifications normally follow the regular notification logic in %s. Selecting this option will force the notification to be sent out, regardless of the time restrictions, whether or not notifications are enabled, etc.\" , PROGRAM_NAME ) ;\n help_text [ sizeof ( help_text ) - 1 ] = '\\x0' ;\n printf ( \"<tr><td class=\\\"objectDescription descriptionleft\\\">Forced:\" ) ;\n print_help_box ( help_text ) ;\n printf ( \"</td><td align=\\\"left\\\">\" ) ;\n printf ( \"<INPUT TYPE='checkbox' NAME='force_notification'></td></tr>\\n\" ) ;\n break ;\n default : break ;\n }\n return ;\n }"}
{"idx": 2057, "target": 0, "func": "static inline void ipv6_addr_set ( struct in6_addr * addr , __be32 w1 , __be32 w2 , __be32 w3 , __be32 w4 ) {\n addr -> s6_addr32 [ 0 ] = w1 ;\n addr -> s6_addr32 [ 1 ] = w2 ;\n addr -> s6_addr32 [ 2 ] = w3 ;\n addr -> s6_addr32 [ 3 ] = w4 ;\n }"}
{"idx": 2058, "target": 0, "func": "static void run_vacuum_command ( PGconn * conn , const char * sql , bool echo , const char * table , const char * progname , bool async ) {\n bool status ;\n if ( async ) {\n if ( echo ) printf ( \"%s\\n\" , sql ) ;\n status = PQsendQuery ( conn , sql ) == 1 ;\n }\n else status = executeMaintenanceCommand ( conn , sql , echo ) ;\n if ( ! status ) {\n if ( table ) fprintf ( stderr , _ ( \"%s: vacuuming of table \\\"%s\\\" in database \\\"%s\\\" failed: %s\" ) , progname , table , PQdb ( conn ) , PQerrorMessage ( conn ) ) ;\n else fprintf ( stderr , _ ( \"%s: vacuuming of database \\\"%s\\\" failed: %s\" ) , progname , PQdb ( conn ) , PQerrorMessage ( conn ) ) ;\n if ( ! async ) {\n PQfinish ( conn ) ;\n exit ( 1 ) ;\n }\n }\n }"}
{"idx": 2059, "target": 0, "func": "int PEM_write_ ## name ( FILE * fp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # endif # define DECLARE_PEM_read_bio ( name , type ) type * PEM_read_bio_ ## name ( BIO * bp , type * * x , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL ) DECLARE_PEM_rw ( PKCS7 , PKCS7 ) DECLARE_PEM_rw ( NETSCAPE_CERT_SEQUENCE , NETSCAPE_CERT_SEQUENCE ) DECLARE_PEM_rw ( PKCS8 , X509_SIG ) DECLARE_PEM_rw ( PKCS8_PRIV_KEY_INFO , PKCS8_PRIV_KEY_INFO ) # ifndef OPENSSL_NO_RSA DECLARE_PEM_rw_cb ( RSAPrivateKey , RSA )"}
{"idx": 2060, "target": 0, "func": "EVP_PKEY * d2i_PrivateKey_bio ( BIO * bp , EVP_PKEY * * a ) {\n return ASN1_d2i_bio_of ( EVP_PKEY , EVP_PKEY_new , d2i_AutoPrivateKey , bp , a ) ;\n }"}
{"idx": 2061, "target": 0, "func": "static int dissect_h245_AudioToneCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_AudioToneCapability , AudioToneCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 2062, "target": 0, "func": "int i2d_X509_CRL_fp ( FILE * fp , X509_CRL * crl ) {\n return ASN1_item_i2d_fp ( ASN1_ITEM_rptr ( X509_CRL ) , fp , crl ) ;\n }"}
{"idx": 2063, "target": 0, "func": "bool vmxnet_tx_pkt_send ( struct VmxnetTxPkt * pkt , NetClientState * nc ) {\n assert ( pkt ) ;\n if ( ! pkt -> has_virt_hdr && pkt -> virt_hdr . flags & VIRTIO_NET_HDR_F_NEEDS_CSUM ) {\n vmxnet_tx_pkt_do_sw_csum ( pkt ) ;\n }\n if ( VIRTIO_NET_HDR_GSO_NONE != pkt -> virt_hdr . gso_type ) {\n if ( pkt -> payload_len > ETH_MAX_IP_DGRAM_LEN - pkt -> vec [ VMXNET_TX_PKT_L3HDR_FRAG ] . iov_len ) {\n return false ;\n }\n }\n if ( pkt -> has_virt_hdr || pkt -> virt_hdr . gso_type == VIRTIO_NET_HDR_GSO_NONE ) {\n qemu_sendv_packet ( nc , pkt -> vec , pkt -> payload_frags + VMXNET_TX_PKT_PL_START_FRAG ) ;\n return true ;\n }\n return vmxnet_tx_pkt_do_sw_fragmentation ( pkt , nc ) ;\n }"}
{"idx": 2064, "target": 0, "func": "static int dissect_h225_H221NonStandard ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 802 \"./asn1/h225/h225.cnf\" t35CountryCode = 0 ;\n t35Extension = 0 ;\n manufacturerCode = 0 ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_H221NonStandard , H221NonStandard_sequence ) ;\n # line 806 \"./asn1/h225/h225.cnf\" h221NonStandard = ( ( t35CountryCode * 256 ) + t35Extension ) * 65536 + manufacturerCode ;\n proto_tree_add_uint ( tree , hf_h221Manufacturer , tvb , ( offset >> 3 ) - 4 , 4 , h221NonStandard ) ;\n return offset ;\n }"}
{"idx": 2065, "target": 1, "func": "static ossl_inline void lh_ ## type ## _node_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _node_usage_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_usage_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING )"}
{"idx": 2066, "target": 0, "func": "static int advance_past_options ( char * * cpp ) {\n char * cp = * cpp ;\n int quoted = 0 ;\n for ( ;\n * cp && ( quoted || ( * cp != ' ' && * cp != '\\t' ) ) ;\n cp ++ ) {\n if ( * cp == '\\\\' && cp [ 1 ] == '\"' ) cp ++ ;\n else if ( * cp == '\"' ) quoted = ! quoted ;\n }\n * cpp = cp ;\n return ( * cp == '\\0' && quoted ) ? - 1 : 0 ;\n }"}
{"idx": 2067, "target": 0, "func": "static void ber_defragment_cleanup ( void ) {\n reassembly_table_destroy ( & octet_segment_reassembly_table ) ;\n }"}
{"idx": 2068, "target": 0, "func": "static guint get_pcp_message_len ( packet_info * pinfo _U_ , tvbuff_t * tvb , int offset , void * data _U_ ) {\n return ( guint ) tvb_get_ntohl ( tvb , offset ) ;\n }"}
{"idx": 2069, "target": 0, "func": "static cmsBool Write8bitTables ( cmsContext ContextID , cmsIOHANDLER * io , cmsUInt32Number n , _cmsStageToneCurvesData * Tables ) {\n int j ;\n cmsUInt32Number i ;\n cmsUInt8Number val ;\n for ( i = 0 ;\n i < n ;\n i ++ ) {\n if ( Tables ) {\n if ( ( Tables -> TheCurves [ i ] -> nEntries == 2 ) && ( Tables -> TheCurves [ i ] -> Table16 [ 0 ] == 0 ) && ( Tables -> TheCurves [ i ] -> Table16 [ 1 ] == 65535 ) ) {\n for ( j = 0 ;\n j < 256 ;\n j ++ ) {\n if ( ! _cmsWriteUInt8Number ( io , ( cmsUInt8Number ) j ) ) return FALSE ;\n }\n }\n else if ( Tables -> TheCurves [ i ] -> nEntries != 256 ) {\n cmsSignalError ( ContextID , cmsERROR_RANGE , \"LUT8 needs 256 entries on prelinearization\" ) ;\n return FALSE ;\n }\n else for ( j = 0 ;\n j < 256 ;\n j ++ ) {\n val = ( cmsUInt8Number ) FROM_16_TO_8 ( Tables -> TheCurves [ i ] -> Table16 [ j ] ) ;\n if ( ! _cmsWriteUInt8Number ( io , val ) ) return FALSE ;\n }\n }\n }\n return TRUE ;\n }"}
{"idx": 2070, "target": 0, "func": "static int __app_register_atfork ( void ( * prepare ) ( void ) , void ( * parent ) ( void ) , void ( * child ) ( void ) ) {\n return __register_atfork ( prepare , parent , child , & __dso_handle == NULL ? NULL : __dso_handle ) ;\n }"}
{"idx": 2071, "target": 0, "func": "static void delete_task_done ( GObject * source_object , GAsyncResult * res , gpointer user_data ) {\n DeleteJob * job ;\n GHashTable * debuting_uris ;\n job = user_data ;\n g_list_free_full ( job -> files , g_object_unref ) ;\n if ( job -> done_callback ) {\n debuting_uris = g_hash_table_new_full ( g_file_hash , ( GEqualFunc ) g_file_equal , g_object_unref , NULL ) ;\n job -> done_callback ( debuting_uris , job -> user_cancel , job -> done_callback_data ) ;\n g_hash_table_unref ( debuting_uris ) ;\n }\n finalize_common ( ( CommonJob * ) job ) ;\n nautilus_file_changes_consume_changes ( TRUE ) ;\n }"}
{"idx": 2072, "target": 0, "func": "static void sig_server_disconnected ( SERVER_REC * server ) {\n MODULE_SERVER_REC * mserver ;\n g_return_if_fail ( server != NULL ) ;\n mserver = MODULE_DATA ( server ) ;\n while ( mserver -> lastmsgs ) last_msg_destroy ( & mserver -> lastmsgs , mserver -> lastmsgs -> data ) ;\n }"}
{"idx": 2073, "target": 0, "func": "static int change_frame_graph ( voip_calls_tapinfo_t * tapinfo _U_ , guint32 frame_num , const gchar * new_frame_label , const gchar * new_comment ) {\n seq_analysis_item_t * gai = NULL ;\n gchar * frame_label = NULL ;\n gchar * comment = NULL ;\n if ( NULL != tapinfo -> graph_analysis -> ht ) gai = ( seq_analysis_item_t * ) g_hash_table_lookup ( tapinfo -> graph_analysis -> ht , & frame_num ) ;\n if ( gai ) {\n frame_label = gai -> frame_label ;\n comment = gai -> comment ;\n if ( new_frame_label != NULL ) {\n gai -> frame_label = g_strdup ( new_frame_label ) ;\n g_free ( frame_label ) ;\n }\n if ( new_comment != NULL ) {\n gai -> comment = g_strdup ( new_comment ) ;\n g_free ( comment ) ;\n }\n }\n return gai ? 1 : 0 ;\n }"}
{"idx": 2074, "target": 0, "func": "int ff_rv34_decode_init_thread_copy ( AVCodecContext * avctx ) {\n int err ;\n RV34DecContext * r = avctx -> priv_data ;\n r -> s . avctx = avctx ;\n if ( avctx -> internal -> is_copy ) {\n r -> tmp_b_block_base = NULL ;\n if ( ( err = ff_MPV_common_init ( & r -> s ) ) < 0 ) return err ;\n if ( ( err = rv34_decoder_alloc ( r ) ) < 0 ) return err ;\n }\n return 0 ;\n }"}
{"idx": 2075, "target": 0, "func": "static int dissect_pbb_addressblock ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , guint offset , guint maxoffset , guint8 addressType , guint8 addressSize ) {\n guint8 addr [ MAX_ADDR_SIZE ] ;\n guint8 numAddr ;\n guint8 address_flags ;\n guint8 head_length = 0 , tail_length = 0 ;\n guint block_length = 0 , midSize = 0 ;\n guint block_index = 0 , head_index = 0 , tail_index = 0 , mid_index = 0 , prefix_index = 0 ;\n proto_tree * addr_tree = NULL ;\n proto_tree * addrFlags_tree = NULL ;\n proto_tree * addrValue_tree = NULL ;\n proto_item * addr_item = NULL ;\n proto_item * addrFlags_item = NULL ;\n proto_item * addrValue_item = NULL ;\n int i = 0 ;\n if ( maxoffset - offset < 2 ) {\n proto_tree_add_expert_format ( tree , pinfo , & ei_packetbb_error , tvb , offset , maxoffset - offset , \"Not enough octets for minimal addressblock header\" ) ;\n return tvb_reported_length ( tvb ) ;\n }\n DISSECTOR_ASSERT ( addressSize <= MAX_ADDR_SIZE ) ;\n memset ( addr , 0 , addressSize ) ;\n block_length = 2 ;\n block_index = offset ;\n midSize = addressSize ;\n numAddr = tvb_get_guint8 ( tvb , offset ++ ) ;\n address_flags = tvb_get_guint8 ( tvb , offset ++ ) ;\n if ( ( address_flags & ADDR_HASHEAD ) != 0 ) {\n head_index = offset ;\n if ( maxoffset - offset <= 0 ) {\n proto_tree_add_expert_format ( tree , pinfo , & ei_packetbb_error , tvb , offset , maxoffset - offset , \"Not enough octets for addressblock head\" ) ;\n return tvb_reported_length ( tvb ) ;\n }\n head_length = tvb_get_guint8 ( tvb , offset ++ ) ;\n if ( head_length > addressSize - 1 ) {\n proto_tree_add_expert_format ( tree , pinfo , & ei_packetbb_error , tvb , offset , maxoffset - offset , \"address head length is too long\" ) ;\n return tvb_reported_length ( tvb ) ;\n }\n if ( maxoffset - offset < head_length ) {\n proto_tree_add_expert_format ( tree , pinfo , & ei_packetbb_error , tvb , offset , maxoffset - offset , \"Not enough octets for addressblock head\" ) ;\n return tvb_reported_length ( tvb ) ;\n }\n tvb_memcpy ( tvb , addr , offset , head_length ) ;\n midSize -= head_length ;\n block_length += ( head_length + 1 ) ;\n offset += head_length ;\n }\n if ( ( address_flags & ADDR_HASZEROTAIL ) != 0 ) {\n tail_index = offset ;\n if ( maxoffset - offset <= 0 ) {\n proto_tree_add_expert_format ( tree , pinfo , & ei_packetbb_error , tvb , offset , maxoffset - offset , \"Not enough octets for addressblock tail\" ) ;\n return tvb_reported_length ( tvb ) ;\n }\n tail_length = tvb_get_guint8 ( tvb , offset ++ ) ;\n if ( tail_length > addressSize - 1 - head_length ) {\n proto_tree_add_expert_format ( tree , pinfo , & ei_packetbb_error , tvb , offset , maxoffset - offset , \"address tail length is too long\" ) ;\n return tvb_reported_length ( tvb ) ;\n }\n midSize -= tail_length ;\n block_length ++ ;\n }\n else if ( ( address_flags & ADDR_HASFULLTAIL ) != 0 ) {\n tail_index = offset ;\n if ( maxoffset - offset <= 0 ) {\n proto_tree_add_expert_format ( tree , pinfo , & ei_packetbb_error , tvb , offset , maxoffset - offset , \"Not enough octets for addressblock tail\" ) ;\n return tvb_reported_length ( tvb ) ;\n }\n tail_length = tvb_get_guint8 ( tvb , offset ++ ) ;\n if ( tail_length > addressSize - 1 - head_length ) {\n proto_tree_add_expert_format ( tree , pinfo , & ei_packetbb_error , tvb , offset , maxoffset - offset , \"address tail length is too long\" ) ;\n return tvb_reported_length ( tvb ) ;\n }\n if ( maxoffset - offset < tail_length ) {\n proto_tree_add_expert_format ( tree , pinfo , & ei_packetbb_error , tvb , offset , maxoffset - offset , \"Not enough octets for addressblock tail\" ) ;\n return tvb_reported_length ( tvb ) ;\n }\n tvb_memcpy ( tvb , & addr [ addressSize - tail_length ] , offset , tail_length ) ;\n midSize -= tail_length ;\n block_length += ( tail_length + 1 ) ;\n offset += tail_length ;\n }\n mid_index = offset ;\n block_length += numAddr * midSize ;\n offset += numAddr * midSize ;\n if ( ( address_flags & ADDR_HASSINGLEPRELEN ) != 0 ) {\n prefix_index = offset ;\n block_length ++ ;\n }\n else if ( ( address_flags & ADDR_HASMULTIPRELEN ) != 0 ) {\n prefix_index = offset ;\n block_length += numAddr ;\n }\n if ( maxoffset < block_index + block_length ) {\n proto_tree_add_expert_format ( tree , pinfo , & ei_packetbb_error , tvb , offset , maxoffset - offset , \"Not enough octets for address block\" ) ;\n return maxoffset ;\n }\n addr_item = proto_tree_add_item ( tree , hf_packetbb_addr , tvb , block_index , block_length , ENC_NA ) ;\n addr_tree = proto_item_add_subtree ( addr_item , ett_packetbb_addr ) ;\n proto_item_append_text ( addr_item , \" (%d addresses)\" , numAddr ) ;\n proto_tree_add_item ( addr_tree , hf_packetbb_addr_num , tvb , block_index , 1 , ENC_BIG_ENDIAN ) ;\n addrFlags_item = proto_tree_add_item ( addr_tree , hf_packetbb_addr_flags , tvb , block_index + 1 , 1 , ENC_BIG_ENDIAN ) ;\n addrFlags_tree = proto_item_add_subtree ( addrFlags_item , ett_packetbb_addr_flags ) ;\n proto_tree_add_item ( addrFlags_tree , hf_packetbb_addr_flags_hashead , tvb , block_index + 1 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( addrFlags_tree , hf_packetbb_addr_flags_hasfulltail , tvb , block_index + 1 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( addrFlags_tree , hf_packetbb_addr_flags_haszerotail , tvb , block_index + 1 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( addrFlags_tree , hf_packetbb_addr_flags_hassingleprelen , tvb , block_index + 1 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( addrFlags_tree , hf_packetbb_addr_flags_hasmultiprelen , tvb , block_index + 1 , 1 , ENC_BIG_ENDIAN ) ;\n if ( ( address_flags & ADDR_HASHEAD ) != 0 ) {\n proto_tree_add_item ( addr_tree , hf_packetbb_addr_head , tvb , head_index , head_length + 1 , ENC_NA ) ;\n }\n if ( ( address_flags & ADDR_HASFULLTAIL ) != 0 ) {\n proto_tree_add_item ( addr_tree , hf_packetbb_addr_tail , tvb , tail_index , tail_length + 1 , ENC_NA ) ;\n }\n else if ( ( address_flags & ADDR_HASZEROTAIL ) != 0 ) {\n proto_tree_add_item ( addr_tree , hf_packetbb_addr_tail , tvb , tail_index , 1 , ENC_NA ) ;\n }\n for ( i = 0 ;\n i < numAddr ;\n i ++ ) {\n guint32 ipv4 = 0 ;\n guint8 prefix = addressSize * 8 ;\n tvb_memcpy ( tvb , & addr [ head_length ] , mid_index + midSize * i , midSize ) ;\n ipv4 = ( addr [ 3 ] << 24 ) + ( addr [ 2 ] << 16 ) + ( addr [ 1 ] << 8 ) + addr [ 0 ] ;\n switch ( addressType ) {\n case 0 : addrValue_item = proto_tree_add_ipv4 ( addr_tree , hf_packetbb_addr_value [ addressType ] , tvb , mid_index , block_index + block_length - mid_index , ipv4 ) ;\n break ;\n case 1 : addrValue_item = proto_tree_add_ipv6 ( addr_tree , hf_packetbb_addr_value [ addressType ] , tvb , mid_index , block_index + block_length - mid_index , ( struct e_in6_addr * ) addr ) ;\n break ;\n case 2 : addrValue_item = proto_tree_add_ether ( addr_tree , hf_packetbb_addr_value [ addressType ] , tvb , mid_index , block_index + block_length - mid_index , addr ) ;\n break ;\n case 3 : addrValue_item = proto_tree_add_bytes ( addr_tree , hf_packetbb_addr_value [ addressType ] , tvb , mid_index , block_index + block_length - mid_index , addr ) ;\n break ;\n default : break ;\n }\n addrValue_tree = proto_item_add_subtree ( addrValue_item , ett_packetbb_addr_value ) ;\n proto_tree_add_item ( addrValue_tree , hf_packetbb_addr_value_mid , tvb , mid_index + midSize * i , midSize , ENC_NA ) ;\n if ( ( address_flags & ADDR_HASSINGLEPRELEN ) != 0 ) {\n prefix = tvb_get_guint8 ( tvb , prefix_index ) ;\n proto_tree_add_item ( addrValue_tree , hf_packetbb_addr_value_prefix , tvb , prefix_index , 1 , ENC_BIG_ENDIAN ) ;\n }\n else if ( ( address_flags & ADDR_HASMULTIPRELEN ) != 0 ) {\n prefix = tvb_get_guint8 ( tvb , prefix_index + i ) ;\n proto_tree_add_item ( addrValue_tree , hf_packetbb_addr_value_prefix , tvb , prefix_index + i , 1 , ENC_BIG_ENDIAN ) ;\n }\n proto_item_append_text ( addrValue_item , \"/%d\" , prefix ) ;\n }\n offset = dissect_pbb_tlvblock ( tvb , pinfo , addr_tree , block_index + block_length , maxoffset , numAddr , TLV_CAT_ADDRESS ) ;\n return offset ;\n }"}
{"idx": 2076, "target": 0, "func": "REGRESSION_TEST ( SDK_API_TSMimeHdrParse ) ( RegressionTest * test , int , int * pstatus ) {\n const char * parse_string = \"field1:field1Value1,field1Value2\\r\\nfield2:10,-34,45\\r\\nfield3:field3Value1,23\\r\\nfield2: 2345, field2Value2\\r\\n\\r\\n\" ;\n const char * DUPLICATE_FIELD_NAME = \"field2\" ;\n const char * REMOVE_FIELD_NAME = \"field3\" ;\n TSMimeParser parser ;\n TSMBuffer bufp1 = ( TSMBuffer ) nullptr ;\n TSMBuffer bufp2 = ( TSMBuffer ) nullptr ;\n TSMBuffer bufp3 = ( TSMBuffer ) nullptr ;\n TSMLoc mime_hdr_loc1 = ( TSMLoc ) nullptr ;\n TSMLoc mime_hdr_loc2 = ( TSMLoc ) nullptr ;\n TSMLoc mime_hdr_loc3 = ( TSMLoc ) nullptr ;\n TSMLoc field_loc1 = ( TSMLoc ) nullptr ;\n TSMLoc field_loc2 = ( TSMLoc ) nullptr ;\n const char * start ;\n const char * end ;\n char * temp ;\n TSParseResult retval ;\n int hdrLength ;\n bool test_passed_parser_create = false ;\n bool test_passed_parse = false ;\n bool test_passed_parser_clear = false ;\n bool test_passed_parser_destroy = false ;\n bool test_passed_mime_hdr_print = false ;\n bool test_passed_mime_hdr_length_get = false ;\n bool test_passed_mime_hdr_field_next_dup = false ;\n bool test_passed_mime_hdr_copy = false ;\n bool test_passed_mime_hdr_clone = false ;\n bool test_passed_mime_hdr_field_remove = false ;\n bool test_passed_mime_hdr_field_copy = false ;\n bool test_passed_mime_hdr_field_copy_values = false ;\n bool test_passed_handle_mloc_release = false ;\n bool test_passed_mime_hdr_field_find = false ;\n parser = TSMimeParserCreate ( ) ;\n SDK_RPRINT ( test , \"TSMimeParserCreate\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_parser_create = true ;\n if ( test_passed_parser_create == true ) {\n bufp1 = TSMBufferCreate ( ) ;\n if ( TSMimeHdrCreate ( bufp1 , & mime_hdr_loc1 ) != TS_SUCCESS ) {\n SDK_RPRINT ( test , \"TSMimeHdrParse\" , \"TestCase1\" , TC_FAIL , \"Cannot create Mime hdr for parsing\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrPrint\" , \"TestCase1\" , TC_FAIL , \"Cannot run test as unable to create Mime Header for parsing\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrLengthGet\" , \"TestCase1\" , TC_FAIL , \"Cannot run test as unable to create Mime Header for parsing\" ) ;\n if ( TSMBufferDestroy ( bufp1 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSMimeHdrParse\" , \"TestCase1\" , TC_FAIL , \"Error in Destroying MBuffer\" ) ;\n }\n }\n else {\n start = parse_string ;\n end = parse_string + strlen ( parse_string ) + 1 ;\n if ( ( retval = TSMimeHdrParse ( parser , bufp1 , mime_hdr_loc1 , & start , end ) ) == TS_PARSE_ERROR ) {\n SDK_RPRINT ( test , \"TSMimeHdrParse\" , \"TestCase1\" , TC_FAIL , \"TSMimeHdrParse returns TS_PARSE_ERROR\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrPrint\" , \"TestCase1\" , TC_FAIL , \"Cannot run test as TSMimeHdrParse returned Error.\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrLengthGet\" , \"TestCase1\" , TC_FAIL , \"Cannot run test as TSMimeHdrParse returned Error.\" ) ;\n }\n else {\n if ( retval == TS_PARSE_DONE ) {\n temp = convert_mime_hdr_to_string ( bufp1 , mime_hdr_loc1 ) ;\n if ( strcmp ( parse_string , temp ) == 0 ) {\n SDK_RPRINT ( test , \"TSMimeHdrParse\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrPrint\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n hdrLength = TSMimeHdrLengthGet ( bufp1 , mime_hdr_loc1 ) ;\n if ( hdrLength == ( int ) strlen ( temp ) ) {\n SDK_RPRINT ( test , \"TSMimeHdrLengthGet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_mime_hdr_length_get = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrLengthGet\" , \"TestCase1\" , TC_FAIL , \"Value's Mismatch\" ) ;\n }\n test_passed_parse = true ;\n test_passed_mime_hdr_print = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrParse|TSMimeHdrPrint\" , \"TestCase1\" , TC_FAIL , \"Incorrect parsing or incorrect Printing\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrLengthGet\" , \"TestCase1\" , TC_FAIL , \"Cannot run test as TSMimeHdrParse|TSMimeHdrPrint failed.\" ) ;\n }\n TSfree ( temp ) ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrParse\" , \"TestCase1\" , TC_FAIL , \"Parsing Error\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrPrint\" , \"TestCase1\" , TC_FAIL , \"Cannot run test as TSMimeHdrParse returned error.\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrLengthGet\" , \"TestCase1\" , TC_FAIL , \"Cannot run test as TSMimeHdrParse returned error.\" ) ;\n }\n }\n }\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrParse\" , \"TestCase1\" , TC_FAIL , \"Cannot run test as unable to create a parser\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrPrint\" , \"TestCase1\" , TC_FAIL , \"Cannot run test as unable to create a parser\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrLengthGet\" , \"TestCase1\" , TC_FAIL , \"Cannot run test as unable to create a parser\" ) ;\n }\n if ( test_passed_parser_create == true ) {\n TSMimeParserClear ( parser ) ;\n SDK_RPRINT ( test , \"TSMimeParserClear\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_parser_clear = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeParserClear\" , \"TestCase1\" , TC_FAIL , \"Cannot run test as unable to create a parser\" ) ;\n }\n if ( test_passed_parser_create == true ) {\n TSMimeParserDestroy ( parser ) ;\n SDK_RPRINT ( test , \"TSMimeParserDestroy\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_parser_destroy = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeParserDestroy\" , \"TestCase1\" , TC_FAIL , \"Cannot run test as unable to create a parser\" ) ;\n }\n if ( test_passed_parse == true ) {\n if ( ( field_loc1 = TSMimeHdrFieldFind ( bufp1 , mime_hdr_loc1 , DUPLICATE_FIELD_NAME , - 1 ) ) == TS_NULL_MLOC ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldNextDup\" , \"TestCase1\" , TC_FAIL , \"TSMimeHdrFieldFind returns TS_NULL_MLOC\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldFind\" , \"TestCase1\" , TC_PASS , \"TSMimeHdrFieldFind returns TS_NULL_MLOC\" ) ;\n }\n else {\n const char * fieldName ;\n int length ;\n fieldName = TSMimeHdrFieldNameGet ( bufp1 , mime_hdr_loc1 , field_loc1 , & length ) ;\n if ( strncmp ( fieldName , DUPLICATE_FIELD_NAME , length ) == 0 ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldFind\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_mime_hdr_field_find = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldFind\" , \"TestCase1\" , TC_PASS , \"TSMimeHdrFieldFind returns incorrect field pointer\" ) ;\n }\n field_loc2 = TSMimeHdrFieldNextDup ( bufp1 , mime_hdr_loc1 , field_loc1 ) ;\n if ( compare_field_names ( test , bufp1 , mime_hdr_loc1 , field_loc1 , bufp1 , mime_hdr_loc1 , field_loc2 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldNextDup\" , \"TestCase1\" , TC_FAIL , \"Incorrect Pointer\" ) ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldNextDup\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_mime_hdr_field_next_dup = true ;\n }\n if ( TSHandleMLocRelease ( bufp1 , mime_hdr_loc1 , field_loc1 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSHandleMLocRelease\" , \"TestCase1\" , TC_FAIL , \"TSHandleMLocRelease returns TS_ERROR\" ) ;\n }\n else {\n SDK_RPRINT ( test , \"TSHandleMLocRelease\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_handle_mloc_release = true ;\n }\n if ( field_loc2 != nullptr ) {\n if ( TSHandleMLocRelease ( bufp1 , mime_hdr_loc1 , field_loc2 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSHandleMLocRelease\" , \"TestCase2\" , TC_FAIL , \"TSHandleMLocRelease returns TS_ERROR\" ) ;\n test_passed_handle_mloc_release = false ;\n }\n else {\n SDK_RPRINT ( test , \"TSHandleMLocRelease\" , \"TestCase2\" , TC_PASS , \"ok\" ) ;\n }\n }\n }\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldNext\" , \"TestCase1\" , TC_FAIL , \"Unable to run test as parsing failed.\" ) ;\n }\n if ( test_passed_parse == true ) {\n bufp2 = TSMBufferCreate ( ) ;\n if ( TSMimeHdrCreate ( bufp2 , & mime_hdr_loc2 ) != TS_SUCCESS ) {\n SDK_RPRINT ( test , \"TSMimeHdrCopy\" , \"TestCase1\" , TC_FAIL , \"Cannot create Mime hdr for copying\" ) ;\n if ( TSMBufferDestroy ( bufp2 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSMimeHdrCopy\" , \"TestCase1\" , TC_FAIL , \"Error in Destroying MBuffer\" ) ;\n }\n }\n else {\n if ( TSMimeHdrCopy ( bufp2 , mime_hdr_loc2 , bufp1 , mime_hdr_loc1 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSMimeHdrCopy\" , \"TestCase1\" , TC_FAIL , \"TSMimeHdrCopy returns TS_ERROR\" ) ;\n }\n else {\n temp = convert_mime_hdr_to_string ( bufp2 , mime_hdr_loc2 ) ;\n if ( strcmp ( parse_string , temp ) == 0 ) {\n SDK_RPRINT ( test , \"TSMimeHdrCopy\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_mime_hdr_copy = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrCopy\" , \"TestCase1\" , TC_FAIL , \"Value's Mismatch\" ) ;\n }\n TSfree ( temp ) ;\n }\n }\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrCopy\" , \"TestCase1\" , TC_FAIL , \"Unable to run test as parsing failed.\" ) ;\n }\n bufp3 = TSMBufferCreate ( ) ;\n TSMimeHdrCreate ( bufp3 , & mime_hdr_loc3 ) ;\n test_passed_mime_hdr_clone = true ;\n if ( test_passed_mime_hdr_copy == true ) {\n if ( ( field_loc1 = TSMimeHdrFieldFind ( bufp2 , mime_hdr_loc2 , REMOVE_FIELD_NAME , - 1 ) ) == TS_NULL_MLOC ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldRemove\" , \"TestCase1\" , TC_FAIL , \"TSMimeHdrFieldFind returns TS_NULL_MLOC\" ) ;\n }\n else {\n if ( TSMimeHdrFieldRemove ( bufp2 , mime_hdr_loc2 , field_loc1 ) != TS_SUCCESS ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldRemove\" , \"TestCase1\" , TC_FAIL , \"TSMimeHdrFieldRemove returns TS_ERROR\" ) ;\n }\n else {\n field_loc2 = TSMimeHdrFieldFind ( bufp2 , mime_hdr_loc2 , REMOVE_FIELD_NAME , - 1 ) ;\n if ( ( field_loc2 == TS_NULL_MLOC ) || ( field_loc1 != field_loc2 ) ) {\n test_passed_mime_hdr_field_remove = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldRemove\" , \"TestCase1\" , TC_FAIL , \"Field Not Removed\" ) ;\n }\n if ( test_passed_mime_hdr_field_remove == true ) {\n if ( TSMimeHdrFieldAppend ( bufp2 , mime_hdr_loc2 , field_loc1 ) != TS_SUCCESS ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldRemove\" , \"TestCase1\" , TC_FAIL , \"Unable to readd the field to mime header. Probably destroyed\" ) ;\n test_passed_mime_hdr_field_remove = false ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldRemove\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n }\n }\n if ( TSHandleMLocRelease ( bufp2 , mime_hdr_loc2 , field_loc1 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSHandleMLocRelease\" , \"TestCase3\" , TC_FAIL , \"TSHandleMLocRelease returns TS_ERROR\" ) ;\n test_passed_handle_mloc_release = false ;\n }\n else {\n SDK_RPRINT ( test , \"TSHandleMLocRelease\" , \"TestCase3\" , TC_PASS , \"ok\" ) ;\n }\n if ( field_loc2 != nullptr ) {\n if ( TSHandleMLocRelease ( bufp2 , mime_hdr_loc2 , field_loc2 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSHandleMLocRelease\" , \"TestCase4\" , TC_FAIL , \"TSHandleMLocRelease returns TS_ERROR\" ) ;\n test_passed_handle_mloc_release = false ;\n }\n else {\n SDK_RPRINT ( test , \"TSHandleMLocRelease\" , \"TestCase4\" , TC_PASS , \"ok\" ) ;\n }\n }\n }\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldNext\" , \"TestCase1\" , TC_FAIL , \"Unable to run test as parsing failed.\" ) ;\n }\n if ( test_passed_mime_hdr_copy == true ) {\n if ( TSMimeHdrFieldCreate ( bufp2 , mime_hdr_loc2 , & field_loc1 ) != TS_SUCCESS ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldCopy\" , \"TestCase1\" , TC_FAIL , \"Unable to create field for Copying\" ) ;\n }\n else {\n if ( ( field_loc2 = TSMimeHdrFieldGet ( bufp1 , mime_hdr_loc1 , 0 ) ) == TS_NULL_MLOC ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldCopy\" , \"TestCase1\" , TC_FAIL , \"Unable to get source field for copying\" ) ;\n }\n else {\n if ( TSMimeHdrFieldCopy ( bufp2 , mime_hdr_loc2 , field_loc1 , bufp1 , mime_hdr_loc1 , field_loc2 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldCopy\" , \"TestCase1\" , TC_FAIL , \"TSMimeHdrFieldCopy returns TS_ERROR\" ) ;\n }\n else {\n if ( ( compare_field_names ( test , bufp2 , mime_hdr_loc2 , field_loc1 , bufp1 , mime_hdr_loc1 , field_loc2 ) == TS_ERROR ) || ( compare_field_values ( test , bufp2 , mime_hdr_loc2 , field_loc1 , bufp1 , mime_hdr_loc1 , field_loc2 ) == TS_ERROR ) ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldCopy\" , \"TestCase1\" , TC_FAIL , \"Value's Mismatch\" ) ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldCopy\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_mime_hdr_field_copy = true ;\n }\n }\n }\n if ( TSHandleMLocRelease ( bufp2 , mime_hdr_loc2 , field_loc1 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSHandleMLocRelease\" , \"TestCase5\" , TC_FAIL , \"TSHandleMLocRelease returns TS_ERROR\" ) ;\n test_passed_handle_mloc_release = false ;\n }\n else {\n SDK_RPRINT ( test , \"TSHandleMLocRelease\" , \"TestCase5\" , TC_PASS , \"ok\" ) ;\n }\n if ( field_loc2 != nullptr ) {\n if ( TSHandleMLocRelease ( bufp1 , mime_hdr_loc1 , field_loc2 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSHandleMLocRelease\" , \"TestCase6\" , TC_FAIL , \"TSHandleMLocRelease returns TS_ERROR\" ) ;\n test_passed_handle_mloc_release = false ;\n }\n else {\n SDK_RPRINT ( test , \"TSHandleMLocRelease\" , \"TestCase6\" , TC_PASS , \"ok\" ) ;\n }\n }\n }\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldCopy\" , \"TestCase1\" , TC_FAIL , \"Unable to run test as bufp2 might not have been created\" ) ;\n }\n if ( test_passed_mime_hdr_clone == true ) {\n field_loc1 = nullptr ;\n field_loc2 = nullptr ;\n if ( ( field_loc2 = TSMimeHdrFieldGet ( bufp1 , mime_hdr_loc1 , 0 ) ) == TS_NULL_MLOC ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldClone\" , \"TestCase1\" , TC_FAIL , \"Unable to get source field for copying\" ) ;\n }\n else {\n if ( TSMimeHdrFieldClone ( bufp3 , mime_hdr_loc3 , bufp1 , mime_hdr_loc1 , field_loc2 , & field_loc1 ) != TS_SUCCESS ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldClone\" , \"TestCase1\" , TC_FAIL , \"TSMimeHdrFieldClone returns TS_ERROR\" ) ;\n }\n else {\n if ( ( compare_field_names ( test , bufp3 , mime_hdr_loc3 , field_loc1 , bufp1 , mime_hdr_loc1 , field_loc2 ) == TS_ERROR ) || ( compare_field_values ( test , bufp3 , mime_hdr_loc3 , field_loc1 , bufp1 , mime_hdr_loc1 , field_loc2 ) == TS_ERROR ) ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldClone\" , \"TestCase1\" , TC_FAIL , \"Value's Mismatch\" ) ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldClone\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n }\n }\n if ( field_loc1 != nullptr ) {\n if ( TSHandleMLocRelease ( bufp3 , mime_hdr_loc3 , field_loc1 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSHandleMLocRelease\" , \"TestCase7\" , TC_FAIL , \"TSHandleMLocRelease returns TS_ERROR\" ) ;\n test_passed_handle_mloc_release = false ;\n }\n else {\n SDK_RPRINT ( test , \"TSHandleMLocRelease\" , \"TestCase7\" , TC_PASS , \"ok\" ) ;\n }\n }\n if ( field_loc2 != nullptr ) {\n if ( TSHandleMLocRelease ( bufp1 , mime_hdr_loc1 , field_loc2 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSHandleMLocRelease\" , \"TestCase8\" , TC_FAIL , \"TSHandleMLocRelease returns TS_ERROR\" ) ;\n test_passed_handle_mloc_release = false ;\n }\n else {\n SDK_RPRINT ( test , \"TSHandleMLocRelease\" , \"TestCase8\" , TC_PASS , \"ok\" ) ;\n }\n }\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldClone\" , \"TestCase1\" , TC_FAIL , \"Unable to run test as bufp3 might not have been created\" ) ;\n }\n if ( test_passed_mime_hdr_copy == true ) {\n if ( TSMimeHdrFieldCreate ( bufp2 , mime_hdr_loc2 , & field_loc1 ) != TS_SUCCESS ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldCopyValues\" , \"TestCase1\" , TC_FAIL , \"Unable to create field for Copying\" ) ;\n }\n else {\n if ( ( field_loc2 = TSMimeHdrFieldGet ( bufp1 , mime_hdr_loc1 , 0 ) ) == TS_NULL_MLOC ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldCopyValues\" , \"TestCase1\" , TC_FAIL , \"Unable to get source field for copying\" ) ;\n }\n else {\n if ( TSMimeHdrFieldCopyValues ( bufp2 , mime_hdr_loc2 , field_loc1 , bufp1 , mime_hdr_loc1 , field_loc2 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldCopyValues\" , \"TestCase1\" , TC_FAIL , \"TSMimeHdrFieldCopy returns TS_ERROR\" ) ;\n }\n else {\n if ( compare_field_values ( test , bufp2 , mime_hdr_loc2 , field_loc1 , bufp1 , mime_hdr_loc1 , field_loc2 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldCopyValues\" , \"TestCase1\" , TC_FAIL , \"Value's Mismatch\" ) ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldCopyValues\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_mime_hdr_field_copy_values = true ;\n }\n }\n }\n if ( TSHandleMLocRelease ( bufp2 , mime_hdr_loc2 , field_loc1 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSHandleMLocRelease\" , \"TestCase9\" , TC_FAIL , \"TSHandleMLocRelease returns TS_ERROR\" ) ;\n test_passed_handle_mloc_release = false ;\n }\n else {\n SDK_RPRINT ( test , \"TSHandleMLocRelease\" , \"TestCase9\" , TC_PASS , \"ok\" ) ;\n }\n if ( field_loc2 != nullptr ) {\n if ( TSHandleMLocRelease ( bufp1 , mime_hdr_loc1 , field_loc2 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSHandleMLocRelease\" , \"TestCase10\" , TC_FAIL , \"TSHandleMLocRelease returns TS_ERROR\" ) ;\n test_passed_handle_mloc_release = false ;\n }\n else {\n SDK_RPRINT ( test , \"TSHandleMLocRelease\" , \"TestCase10\" , TC_PASS , \"ok\" ) ;\n }\n }\n }\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldCopy\" , \"TestCase1\" , TC_FAIL , \"Unable to run test as bufp2 might not have been created\" ) ;\n }\n if ( ( TSMimeHdrDestroy ( bufp1 , mime_hdr_loc1 ) == TS_ERROR ) || ( TSMimeHdrDestroy ( bufp2 , mime_hdr_loc2 ) == TS_ERROR ) || ( TSMimeHdrDestroy ( bufp3 , mime_hdr_loc3 ) == TS_ERROR ) ) {\n SDK_RPRINT ( test , \"\" , \"TestCase\" , TC_FAIL , \"TSMimeHdrDestroy returns TS_ERROR\" ) ;\n }\n if ( TSHandleMLocRelease ( bufp1 , TS_NULL_MLOC , mime_hdr_loc1 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSHandleMLocRelease\" , \"TestCase11|12|13\" , TC_FAIL , \"Unable to release mime_hdr_loc1 to Mime Hdrs\" ) ;\n test_passed_handle_mloc_release = false ;\n }\n if ( TSHandleMLocRelease ( bufp2 , TS_NULL_MLOC , mime_hdr_loc2 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSHandleMLocRelease\" , \"TestCase11|12|13\" , TC_FAIL , \"Unable to release mime_hdr_loc2 to Mime Hdrs\" ) ;\n test_passed_handle_mloc_release = false ;\n }\n if ( TSHandleMLocRelease ( bufp3 , TS_NULL_MLOC , mime_hdr_loc3 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSHandleMLocRelease\" , \"TestCase11|12|13\" , TC_FAIL , \"Unable to release mime_hdr_loc3 to Mime Hdrs\" ) ;\n test_passed_handle_mloc_release = false ;\n }\n if ( TSMBufferDestroy ( bufp1 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"\" , \"TestCase\" , TC_FAIL , \"TSMBufferDestroy(bufp1) returns TS_ERROR\" ) ;\n }\n if ( TSMBufferDestroy ( bufp2 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"\" , \"TestCase\" , TC_FAIL , \"TSMBufferDestroy(bufp2) returns TS_ERROR\" ) ;\n }\n if ( TSMBufferDestroy ( bufp3 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"\" , \"TestCase\" , TC_FAIL , \"TSMBufferDestroy(bufp3) returns TS_ERROR\" ) ;\n }\n if ( ( test_passed_parser_create != true ) || ( test_passed_parse != true ) || ( test_passed_parser_clear != true ) || ( test_passed_parser_destroy != true ) || ( test_passed_mime_hdr_print != true ) || ( test_passed_mime_hdr_length_get != true ) || ( test_passed_mime_hdr_field_next_dup != true ) || ( test_passed_mime_hdr_copy != true ) || ( test_passed_mime_hdr_clone != true ) || ( test_passed_mime_hdr_field_remove != true ) || ( test_passed_mime_hdr_field_copy != true ) || ( test_passed_mime_hdr_field_copy_values != true ) || ( test_passed_handle_mloc_release != true ) || ( test_passed_mime_hdr_field_find != true ) ) {\n * pstatus = REGRESSION_TEST_FAILED ;\n }\n else {\n * pstatus = REGRESSION_TEST_PASSED ;\n }\n }"}
{"idx": 2077, "target": 0, "func": "void pk_transaction_skip_auth_checks ( PkTransaction * transaction , gboolean skip_checks ) {\n g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;\n transaction -> priv -> skip_auth_check = skip_checks ;\n }"}
{"idx": 2078, "target": 1, "func": "static uint64_t cchip_read ( void * opaque , hwaddr addr , unsigned size ) {\n CPUAlphaState * env = cpu_single_env ;\n TyphoonState * s = opaque ;\n CPUState * cpu ;\n uint64_t ret = 0 ;\n if ( addr & 4 ) {\n return s -> latch_tmp ;\n }\n switch ( addr ) {\n case 0x0000 : break ;\n case 0x0040 : break ;\n case 0x0080 : cpu = ENV_GET_CPU ( env ) ;\n ret = s -> cchip . misc | ( cpu -> cpu_index & 3 ) ;\n break ;\n case 0x00c0 : break ;\n case 0x0100 : case 0x0140 : case 0x0180 : case 0x01c0 : break ;\n case 0x0200 : ret = s -> cchip . dim [ 0 ] ;\n break ;\n case 0x0240 : ret = s -> cchip . dim [ 1 ] ;\n break ;\n case 0x0280 : ret = s -> cchip . dim [ 0 ] & s -> cchip . drir ;\n break ;\n case 0x02c0 : ret = s -> cchip . dim [ 1 ] & s -> cchip . drir ;\n break ;\n case 0x0300 : ret = s -> cchip . drir ;\n break ;\n case 0x0340 : break ;\n case 0x0380 : ret = s -> cchip . iic [ 0 ] ;\n break ;\n case 0x03c0 : ret = s -> cchip . iic [ 1 ] ;\n break ;\n case 0x0400 : case 0x0440 : case 0x0480 : case 0x04c0 : break ;\n case 0x0580 : break ;\n case 0x05c0 : break ;\n case 0x0600 : ret = s -> cchip . dim [ 2 ] ;\n break ;\n case 0x0640 : ret = s -> cchip . dim [ 3 ] ;\n break ;\n case 0x0680 : ret = s -> cchip . dim [ 2 ] & s -> cchip . drir ;\n break ;\n case 0x06c0 : ret = s -> cchip . dim [ 3 ] & s -> cchip . drir ;\n break ;\n case 0x0700 : ret = s -> cchip . iic [ 2 ] ;\n break ;\n case 0x0740 : ret = s -> cchip . iic [ 3 ] ;\n break ;\n case 0x0780 : break ;\n case 0x0c00 : case 0x0c40 : case 0x0c80 : case 0x0cc0 : break ;\n default : cpu = CPU ( alpha_env_get_cpu ( cpu_single_env ) ) ;\n cpu_unassigned_access ( cpu , addr , false , false , 0 , size ) ;\n return - 1 ;\n }\n s -> latch_tmp = ret >> 32 ;\n return ret ;\n }"}
{"idx": 2079, "target": 0, "func": "static void get_tmfromtime ( struct tm * tm , time_t * t ) {\n # if HAVE_LOCALTIME_R tzset ( ) ;\n localtime_r ( t , tm ) ;\n # elif HAVE__LOCALTIME64_S _localtime64_s ( tm , t ) ;\n # else memcpy ( tm , localtime ( t ) , sizeof ( * tm ) ) ;\n # endif }"}
{"idx": 2080, "target": 0, "func": "static int dissect_h245_T_transferMode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_transferMode , T_transferMode_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 2081, "target": 0, "func": "static VALUE mFloat_to_json ( int argc , VALUE * argv , VALUE self ) {\n GENERATE_JSON ( float ) ;\n }"}
{"idx": 2082, "target": 0, "func": "TEST_F ( WebFrameSimTest , DisplayNoneIFrameHasNoLayoutObjects ) {\n SimRequest main_resource ( \"https://example.com/test.html\" , \"text/html\" ) ;\n SimRequest frame_resource ( \"https://example.com/frame.html\" , \"text/html\" ) ;\n LoadURL ( \"https://example.com/test.html\" ) ;\n main_resource . Complete ( \"<!DOCTYPE html>\" \"<iframe src=frame.html style='display: none'></iframe>\" ) ;\n frame_resource . Complete ( \"<!DOCTYPE html>\" \"<html><body>This is a visible iframe.</body></html>\" ) ;\n Element * element = GetDocument ( ) . QuerySelector ( \"iframe\" ) ;\n HTMLFrameOwnerElement * frame_owner_element = ToHTMLFrameOwnerElement ( element ) ;\n Document * iframe_doc = frame_owner_element -> contentDocument ( ) ;\n EXPECT_FALSE ( iframe_doc -> documentElement ( ) -> GetLayoutObject ( ) ) ;\n element -> SetInlineStyleProperty ( CSSPropertyDisplay , CSSValueBlock ) ;\n Compositor ( ) . BeginFrame ( ) ;\n EXPECT_TRUE ( iframe_doc -> documentElement ( ) -> GetLayoutObject ( ) ) ;\n element -> SetInlineStyleProperty ( CSSPropertyDisplay , CSSValueNone ) ;\n Compositor ( ) . BeginFrame ( ) ;\n EXPECT_FALSE ( iframe_doc -> documentElement ( ) -> GetLayoutObject ( ) ) ;\n }"}
{"idx": 2083, "target": 0, "func": "static void test_bug28386 ( ) {\n int rc ;\n MYSQL_STMT * stmt ;\n MYSQL_RES * result ;\n MYSQL_ROW row ;\n MYSQL_BIND bind ;\n const char hello [ ] = \"hello world!\" ;\n DBUG_ENTER ( \"test_bug28386\" ) ;\n myheader ( \"test_bug28386\" ) ;\n rc = mysql_query ( mysql , \"select @@global.log_output\" ) ;\n myquery ( rc ) ;\n result = mysql_store_result ( mysql ) ;\n DIE_UNLESS ( result ) ;\n row = mysql_fetch_row ( result ) ;\n if ( ! strstr ( row [ 0 ] , \"TABLE\" ) ) {\n mysql_free_result ( result ) ;\n if ( ! opt_silent ) printf ( \"Skipping the test since logging to tables is not enabled\\n\" ) ;\n return ;\n }\n mysql_free_result ( result ) ;\n enable_query_logs ( 1 ) ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT ?\" ) ;\n check_stmt ( stmt ) ;\n memset ( & bind , 0 , sizeof ( bind ) ) ;\n bind . buffer_type = MYSQL_TYPE_STRING ;\n bind . buffer = ( void * ) hello ;\n bind . buffer_length = sizeof ( hello ) ;\n mysql_stmt_bind_param ( stmt , & bind ) ;\n mysql_stmt_send_long_data ( stmt , 0 , hello , sizeof ( hello ) ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( rc == 1 ) ;\n rc = mysql_stmt_reset ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_close ( stmt ) ;\n DIE_UNLESS ( ! rc ) ;\n rc = mysql_query ( mysql , \"select * from mysql.general_log where \" \"command_type='Close stmt' or \" \"command_type='Reset stmt' or \" \"command_type='Long Data'\" ) ;\n myquery ( rc ) ;\n result = mysql_store_result ( mysql ) ;\n mytest ( result ) ;\n DIE_UNLESS ( mysql_num_rows ( result ) == 3 ) ;\n mysql_free_result ( result ) ;\n restore_query_logs ( ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 2084, "target": 0, "func": "static int encode_frame ( vpx_codec_ctx_t * codec , vpx_image_t * img , int frame_index , VpxVideoWriter * writer ) {\n int got_pkts = 0 ;\n vpx_codec_iter_t iter = NULL ;\n const vpx_codec_cx_pkt_t * pkt = NULL ;\n const vpx_codec_err_t res = vpx_codec_encode ( codec , img , frame_index , 1 , 0 , VPX_DL_GOOD_QUALITY ) ;\n if ( res != VPX_CODEC_OK ) die_codec ( codec , \"Failed to encode frame\" ) ;\n while ( ( pkt = vpx_codec_get_cx_data ( codec , & iter ) ) != NULL ) {\n got_pkts = 1 ;\n if ( pkt -> kind == VPX_CODEC_CX_FRAME_PKT ) {\n const int keyframe = ( pkt -> data . frame . flags & VPX_FRAME_IS_KEY ) != 0 ;\n if ( ! vpx_video_writer_write_frame ( writer , pkt -> data . frame . buf , pkt -> data . frame . sz , pkt -> data . frame . pts ) ) {\n die_codec ( codec , \"Failed to write compressed frame\" ) ;\n }\n printf ( keyframe ? \"K\" : \".\" ) ;\n fflush ( stdout ) ;\n }\n }\n return got_pkts ;\n }"}
{"idx": 2085, "target": 0, "func": "static void e1000e_process_tx_desc ( E1000ECore * core , struct e1000e_tx * tx , struct e1000_tx_desc * dp , int queue_index ) {\n uint32_t txd_lower = le32_to_cpu ( dp -> lower . data ) ;\n uint32_t dtype = txd_lower & ( E1000_TXD_CMD_DEXT | E1000_TXD_DTYP_D ) ;\n unsigned int split_size = txd_lower & 0xffff ;\n uint64_t addr ;\n struct e1000_context_desc * xp = ( struct e1000_context_desc * ) dp ;\n bool eop = txd_lower & E1000_TXD_CMD_EOP ;\n if ( dtype == E1000_TXD_CMD_DEXT ) {\n e1000x_read_tx_ctx_descr ( xp , & tx -> props ) ;\n e1000e_process_snap_option ( core , le32_to_cpu ( xp -> cmd_and_length ) ) ;\n return ;\n }\n else if ( dtype == ( E1000_TXD_CMD_DEXT | E1000_TXD_DTYP_D ) ) {\n tx -> props . sum_needed = le32_to_cpu ( dp -> upper . data ) >> 8 ;\n tx -> props . cptse = ( txd_lower & E1000_TXD_CMD_TSE ) ? 1 : 0 ;\n e1000e_process_ts_option ( core , dp ) ;\n }\n else {\n e1000e_process_ts_option ( core , dp ) ;\n tx -> props . cptse = 0 ;\n }\n addr = le64_to_cpu ( dp -> buffer_addr ) ;\n if ( ! tx -> skip_cp ) {\n if ( ! net_tx_pkt_add_raw_fragment ( tx -> tx_pkt , addr , split_size ) ) {\n tx -> skip_cp = true ;\n }\n }\n if ( eop ) {\n if ( ! tx -> skip_cp && net_tx_pkt_parse ( tx -> tx_pkt ) ) {\n if ( e1000x_vlan_enabled ( core -> mac ) && e1000x_is_vlan_txd ( txd_lower ) ) {\n net_tx_pkt_setup_vlan_header_ex ( tx -> tx_pkt , le16_to_cpu ( dp -> upper . fields . special ) , core -> vet ) ;\n }\n if ( e1000e_tx_pkt_send ( core , tx , queue_index ) ) {\n e1000e_on_tx_done_update_stats ( core , tx -> tx_pkt ) ;\n }\n }\n tx -> skip_cp = false ;\n net_tx_pkt_reset ( tx -> tx_pkt ) ;\n tx -> props . sum_needed = 0 ;\n tx -> props . cptse = 0 ;\n }\n }"}
{"idx": 2086, "target": 0, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING )"}
{"idx": 2087, "target": 0, "func": "static int dissect_h225_T_connectionParameters ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_T_connectionParameters , T_connectionParameters_sequence ) ;\n return offset ;\n }"}
{"idx": 2088, "target": 1, "func": "static int parse_CPropertyRestriction ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree , struct CPropertyRestriction * v , const char * fmt , ... ) {\n proto_tree * tree ;\n proto_item * item ;\n const char * txt , * str = NULL ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CPropertyRestriction , & item , txt ) ;\n offset = parse_relop ( tvb , offset , tree , & v -> relop , & str ) ;\n proto_item_append_text ( item , \" Op: %s\" , str ) ;\n offset = parse_CFullPropSpec ( tvb , offset , tree , pad_tree , & v -> property , \"Property\" ) ;\n offset = parse_CBaseStorageVariant ( tvb , offset , tree , pad_tree , & v -> prval , \"prval\" ) ;\n offset = parse_padding ( tvb , offset , 4 , pad_tree , \"padding_lcid\" ) ;\n v -> lcid = tvb_get_letohl ( tvb , offset ) ;\n offset = parse_lcid ( tvb , offset , tree , \"lcid\" ) ;\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 2089, "target": 0, "func": "void proto_register_h225 ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_h221Manufacturer , {\n \"H.225 Manufacturer\" , \"h225.Manufacturer\" , FT_UINT32 , BASE_HEX , VALS ( H221ManufacturerCode_vals ) , 0 , \"h225.H.221 Manufacturer\" , HFILL }\n }\n , {\n & hf_h225_ras_req_frame , {\n \"RAS Request Frame\" , \"h225.ras.reqframe\" , FT_FRAMENUM , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_ras_rsp_frame , {\n \"RAS Response Frame\" , \"h225.ras.rspframe\" , FT_FRAMENUM , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_ras_dup , {\n \"Duplicate RAS Message\" , \"h225.ras.dup\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_ras_deltatime , {\n \"RAS Service Response Time\" , \"h225.ras.timedelta\" , FT_RELATIVE_TIME , BASE_NONE , NULL , 0 , \"Timedelta between RAS-Request and RAS-Response\" , HFILL }\n }\n , {\n & hf_h225_debug_dissector_try_string , {\n \"*** DEBUG dissector_try_string\" , \"h225.debug.dissector_try_string\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , # line 1 \"./asn1/h225/packet-h225-hfarr.c\" {\n & hf_h225_H323_UserInformation_PDU , {\n \"H323-UserInformation\" , \"h225.H323_UserInformation_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_h225_ExtendedAliasAddress_PDU , {\n \"ExtendedAliasAddress\" , \"h225.ExtendedAliasAddress_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_RasMessage_PDU , {\n \"RasMessage\" , \"h225.RasMessage\" , FT_UINT32 , BASE_DEC , VALS ( h225_RasMessage_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_h323_uu_pdu , {\n \"h323-uu-pdu\" , \"h225.h323_uu_pdu_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_user_data , {\n \"user-data\" , \"h225.user_data_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_protocol_discriminator , {\n \"protocol-discriminator\" , \"h225.protocol_discriminator\" , FT_UINT32 , BASE_DEC | BASE_EXT_STRING , & q931_protocol_discriminator_vals_ext , 0 , \"INTEGER_0_255\" , HFILL }\n }\n , {\n & hf_h225_user_information , {\n \"user-information\" , \"h225.user_information\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_1_131\" , HFILL }\n }\n , {\n & hf_h225_h323_message_body , {\n \"h323-message-body\" , \"h225.h323_message_body\" , FT_UINT32 , BASE_DEC , VALS ( T_h323_message_body_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_setup , {\n \"setup\" , \"h225.setup_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"Setup_UUIE\" , HFILL }\n }\n , {\n & hf_h225_callProceeding , {\n \"callProceeding\" , \"h225.callProceeding_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"CallProceeding_UUIE\" , HFILL }\n }\n , {\n & hf_h225_connect , {\n \"connect\" , \"h225.connect_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"Connect_UUIE\" , HFILL }\n }\n , {\n & hf_h225_alerting , {\n \"alerting\" , \"h225.alerting_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"Alerting_UUIE\" , HFILL }\n }\n , {\n & hf_h225_information , {\n \"information\" , \"h225.information_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"Information_UUIE\" , HFILL }\n }\n , {\n & hf_h225_releaseComplete , {\n \"releaseComplete\" , \"h225.releaseComplete_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"ReleaseComplete_UUIE\" , HFILL }\n }\n , {\n & hf_h225_facility , {\n \"facility\" , \"h225.facility_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"Facility_UUIE\" , HFILL }\n }\n , {\n & hf_h225_progress , {\n \"progress\" , \"h225.progress_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"Progress_UUIE\" , HFILL }\n }\n , {\n & hf_h225_empty_flg , {\n \"empty\" , \"h225.empty_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"T_empty_flg\" , HFILL }\n }\n , {\n & hf_h225_status , {\n \"status\" , \"h225.status_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"Status_UUIE\" , HFILL }\n }\n , {\n & hf_h225_statusInquiry , {\n \"statusInquiry\" , \"h225.statusInquiry_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"StatusInquiry_UUIE\" , HFILL }\n }\n , {\n & hf_h225_setupAcknowledge , {\n \"setupAcknowledge\" , \"h225.setupAcknowledge_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"SetupAcknowledge_UUIE\" , HFILL }\n }\n , {\n & hf_h225_notify , {\n \"notify\" , \"h225.notify_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"Notify_UUIE\" , HFILL }\n }\n , {\n & hf_h225_nonStandardData , {\n \"nonStandardData\" , \"h225.nonStandardData_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"NonStandardParameter\" , HFILL }\n }\n , {\n & hf_h225_h4501SupplementaryService , {\n \"h4501SupplementaryService\" , \"h225.h4501SupplementaryService\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_h4501SupplementaryService_item , {\n \"h4501SupplementaryService item\" , \"h225.h4501SupplementaryService_item\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_h245Tunnelling , {\n \"h245Tunnelling\" , \"h225.h245Tunnelling\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_H245Control_item , {\n \"H245Control item\" , \"h225.H245Control_item\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_h245Control , {\n \"h245Control\" , \"h225.h245Control\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_nonStandardControl , {\n \"nonStandardControl\" , \"h225.nonStandardControl\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_NonStandardParameter\" , HFILL }\n }\n , {\n & hf_h225_nonStandardControl_item , {\n \"NonStandardParameter\" , \"h225.NonStandardParameter_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_callLinkage , {\n \"callLinkage\" , \"h225.callLinkage_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_tunnelledSignallingMessage , {\n \"tunnelledSignallingMessage\" , \"h225.tunnelledSignallingMessage_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_tunnelledProtocolID , {\n \"tunnelledProtocolID\" , \"h225.tunnelledProtocolID_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"TunnelledProtocol\" , HFILL }\n }\n , {\n & hf_h225_messageContent , {\n \"messageContent\" , \"h225.messageContent\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_messageContent_item , {\n \"messageContent item\" , \"h225.messageContent_item\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"T_messageContent_item\" , HFILL }\n }\n , {\n & hf_h225_tunnellingRequired , {\n \"tunnellingRequired\" , \"h225.tunnellingRequired_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_provisionalRespToH245Tunnelling , {\n \"provisionalRespToH245Tunnelling\" , \"h225.provisionalRespToH245Tunnelling_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_stimulusControl , {\n \"stimulusControl\" , \"h225.stimulusControl_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_genericData , {\n \"genericData\" , \"h225.genericData\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_GenericData\" , HFILL }\n }\n , {\n & hf_h225_genericData_item , {\n \"GenericData\" , \"h225.GenericData_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_nonStandard , {\n \"nonStandard\" , \"h225.nonStandard_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"NonStandardParameter\" , HFILL }\n }\n , {\n & hf_h225_isText , {\n \"isText\" , \"h225.isText_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_h248Message , {\n \"h248Message\" , \"h225.h248Message\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING\" , HFILL }\n }\n , {\n & hf_h225_protocolIdentifier , {\n \"protocolIdentifier\" , \"h225.protocolIdentifier\" , FT_OID , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_uUIE_destinationInfo , {\n \"destinationInfo\" , \"h225.destinationInfo_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"EndpointType\" , HFILL }\n }\n , {\n & hf_h225_h245Address , {\n \"h245Address\" , \"h225.h245Address\" , FT_UINT32 , BASE_DEC , VALS ( h225_H245TransportAddress_vals ) , 0 , \"H245TransportAddress\" , HFILL }\n }\n , {\n & hf_h225_callIdentifier , {\n \"callIdentifier\" , \"h225.callIdentifier_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_h245SecurityMode , {\n \"h245SecurityMode\" , \"h225.h245SecurityMode\" , FT_UINT32 , BASE_DEC , VALS ( h225_H245Security_vals ) , 0 , \"H245Security\" , HFILL }\n }\n , {\n & hf_h225_tokens , {\n \"tokens\" , \"h225.tokens\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_ClearToken\" , HFILL }\n }\n , {\n & hf_h225_tokens_item , {\n \"ClearToken\" , \"h225.ClearToken_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_cryptoTokens , {\n \"cryptoTokens\" , \"h225.cryptoTokens\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_CryptoH323Token\" , HFILL }\n }\n , {\n & hf_h225_cryptoTokens_item , {\n \"CryptoH323Token\" , \"h225.CryptoH323Token\" , FT_UINT32 , BASE_DEC , VALS ( h225_CryptoH323Token_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_fastStart , {\n \"fastStart\" , \"h225.fastStart\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_multipleCalls , {\n \"multipleCalls\" , \"h225.multipleCalls\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_maintainConnection , {\n \"maintainConnection\" , \"h225.maintainConnection\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_alertingAddress , {\n \"alertingAddress\" , \"h225.alertingAddress\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_AliasAddress\" , HFILL }\n }\n , {\n & hf_h225_alertingAddress_item , {\n \"AliasAddress\" , \"h225.AliasAddress\" , FT_UINT32 , BASE_DEC , VALS ( AliasAddress_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_presentationIndicator , {\n \"presentationIndicator\" , \"h225.presentationIndicator\" , FT_UINT32 , BASE_DEC , VALS ( h225_PresentationIndicator_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_screeningIndicator , {\n \"screeningIndicator\" , \"h225.screeningIndicator\" , FT_UINT32 , BASE_DEC , VALS ( h225_ScreeningIndicator_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_fastConnectRefused , {\n \"fastConnectRefused\" , \"h225.fastConnectRefused_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_serviceControl , {\n \"serviceControl\" , \"h225.serviceControl\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_ServiceControlSession\" , HFILL }\n }\n , {\n & hf_h225_serviceControl_item , {\n \"ServiceControlSession\" , \"h225.ServiceControlSession_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_capacity , {\n \"capacity\" , \"h225.capacity_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"CallCapacity\" , HFILL }\n }\n , {\n & hf_h225_featureSet , {\n \"featureSet\" , \"h225.featureSet_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_displayName , {\n \"displayName\" , \"h225.displayName\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_DisplayName\" , HFILL }\n }\n , {\n & hf_h225_displayName_item , {\n \"DisplayName\" , \"h225.DisplayName_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_conferenceID , {\n \"conferenceID\" , \"h225.conferenceID\" , FT_GUID , BASE_NONE , NULL , 0 , \"ConferenceIdentifier\" , HFILL }\n }\n , {\n & hf_h225_language , {\n \"language\" , \"h225.language\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_connectedAddress , {\n \"connectedAddress\" , \"h225.connectedAddress\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_AliasAddress\" , HFILL }\n }\n , {\n & hf_h225_connectedAddress_item , {\n \"AliasAddress\" , \"h225.AliasAddress\" , FT_UINT32 , BASE_DEC , VALS ( AliasAddress_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_circuitInfo , {\n \"circuitInfo\" , \"h225.circuitInfo_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_releaseCompleteReason , {\n \"reason\" , \"h225.reason\" , FT_UINT32 , BASE_DEC , VALS ( h225_ReleaseCompleteReason_vals ) , 0 , \"ReleaseCompleteReason\" , HFILL }\n }\n , {\n & hf_h225_busyAddress , {\n \"busyAddress\" , \"h225.busyAddress\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_AliasAddress\" , HFILL }\n }\n , {\n & hf_h225_busyAddress_item , {\n \"AliasAddress\" , \"h225.AliasAddress\" , FT_UINT32 , BASE_DEC , VALS ( AliasAddress_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_destinationInfo , {\n \"destinationInfo\" , \"h225.destinationInfo_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"EndpointType\" , HFILL }\n }\n , {\n & hf_h225_noBandwidth , {\n \"noBandwidth\" , \"h225.noBandwidth_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_gatekeeperResources , {\n \"gatekeeperResources\" , \"h225.gatekeeperResources_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_unreachableDestination , {\n \"unreachableDestination\" , \"h225.unreachableDestination_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_destinationRejection , {\n \"destinationRejection\" , \"h225.destinationRejection_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_invalidRevision , {\n \"invalidRevision\" , \"h225.invalidRevision_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_noPermission , {\n \"noPermission\" , \"h225.noPermission_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_unreachableGatekeeper , {\n \"unreachableGatekeeper\" , \"h225.unreachableGatekeeper_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_gatewayResources , {\n \"gatewayResources\" , \"h225.gatewayResources_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_badFormatAddress , {\n \"badFormatAddress\" , \"h225.badFormatAddress_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_adaptiveBusy , {\n \"adaptiveBusy\" , \"h225.adaptiveBusy_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_inConf , {\n \"inConf\" , \"h225.inConf_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_undefinedReason , {\n \"undefinedReason\" , \"h225.undefinedReason_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_facilityCallDeflection , {\n \"facilityCallDeflection\" , \"h225.facilityCallDeflection_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_securityDenied , {\n \"securityDenied\" , \"h225.securityDenied_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_calledPartyNotRegistered , {\n \"calledPartyNotRegistered\" , \"h225.calledPartyNotRegistered_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_callerNotRegistered , {\n \"callerNotRegistered\" , \"h225.callerNotRegistered_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_newConnectionNeeded , {\n \"newConnectionNeeded\" , \"h225.newConnectionNeeded_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_nonStandardReason , {\n \"nonStandardReason\" , \"h225.nonStandardReason_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"NonStandardParameter\" , HFILL }\n }\n , {\n & hf_h225_replaceWithConferenceInvite , {\n \"replaceWithConferenceInvite\" , \"h225.replaceWithConferenceInvite\" , FT_GUID , BASE_NONE , NULL , 0 , \"ConferenceIdentifier\" , HFILL }\n }\n , {\n & hf_h225_genericDataReason , {\n \"genericDataReason\" , \"h225.genericDataReason_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_neededFeatureNotSupported , {\n \"neededFeatureNotSupported\" , \"h225.neededFeatureNotSupported_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_tunnelledSignallingRejected , {\n \"tunnelledSignallingRejected\" , \"h225.tunnelledSignallingRejected_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_invalidCID , {\n \"invalidCID\" , \"h225.invalidCID_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_rLC_securityError , {\n \"securityError\" , \"h225.securityError\" , FT_UINT32 , BASE_DEC , VALS ( h225_SecurityErrors_vals ) , 0 , \"SecurityErrors\" , HFILL }\n }\n , {\n & hf_h225_hopCountExceeded , {\n \"hopCountExceeded\" , \"h225.hopCountExceeded_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_sourceAddress , {\n \"sourceAddress\" , \"h225.sourceAddress\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_AliasAddress\" , HFILL }\n }\n , {\n & hf_h225_sourceAddress_item , {\n \"AliasAddress\" , \"h225.AliasAddress\" , FT_UINT32 , BASE_DEC , VALS ( AliasAddress_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_setup_UUIE_sourceInfo , {\n \"sourceInfo\" , \"h225.sourceInfo_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"EndpointType\" , HFILL }\n }\n , {\n & hf_h225_destinationAddress , {\n \"destinationAddress\" , \"h225.destinationAddress\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_AliasAddress\" , HFILL }\n }\n , {\n & hf_h225_destinationAddress_item , {\n \"AliasAddress\" , \"h225.AliasAddress\" , FT_UINT32 , BASE_DEC , VALS ( AliasAddress_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_destCallSignalAddress , {\n \"destCallSignalAddress\" , \"h225.destCallSignalAddress\" , FT_UINT32 , BASE_DEC , VALS ( h225_TransportAddress_vals ) , 0 , \"TransportAddress\" , HFILL }\n }\n , {\n & hf_h225_destExtraCallInfo , {\n \"destExtraCallInfo\" , \"h225.destExtraCallInfo\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_AliasAddress\" , HFILL }\n }\n , {\n & hf_h225_destExtraCallInfo_item , {\n \"AliasAddress\" , \"h225.AliasAddress\" , FT_UINT32 , BASE_DEC , VALS ( AliasAddress_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_destExtraCRV , {\n \"destExtraCRV\" , \"h225.destExtraCRV\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_CallReferenceValue\" , HFILL }\n }\n , {\n & hf_h225_destExtraCRV_item , {\n \"CallReferenceValue\" , \"h225.CallReferenceValue\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_activeMC , {\n \"activeMC\" , \"h225.activeMC\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_conferenceGoal , {\n \"conferenceGoal\" , \"h225.conferenceGoal\" , FT_UINT32 , BASE_DEC , VALS ( h225_T_conferenceGoal_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_create , {\n \"create\" , \"h225.create_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_join , {\n \"join\" , \"h225.join_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_invite , {\n \"invite\" , \"h225.invite_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_capability_negotiation , {\n \"capability-negotiation\" , \"h225.capability_negotiation_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_callIndependentSupplementaryService , {\n \"callIndependentSupplementaryService\" , \"h225.callIndependentSupplementaryService_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_callServices , {\n \"callServices\" , \"h225.callServices_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"QseriesOptions\" , HFILL }\n }\n , {\n & hf_h225_callType , {\n \"callType\" , \"h225.callType\" , FT_UINT32 , BASE_DEC , VALS ( h225_CallType_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_sourceCallSignalAddress , {\n \"sourceCallSignalAddress\" , \"h225.sourceCallSignalAddress\" , FT_UINT32 , BASE_DEC , VALS ( h225_TransportAddress_vals ) , 0 , \"TransportAddress\" , HFILL }\n }\n , {\n & hf_h225_uUIE_remoteExtensionAddress , {\n \"remoteExtensionAddress\" , \"h225.remoteExtensionAddress\" , FT_UINT32 , BASE_DEC , VALS ( AliasAddress_vals ) , 0 , \"AliasAddress\" , HFILL }\n }\n , {\n & hf_h225_h245SecurityCapability , {\n \"h245SecurityCapability\" , \"h225.h245SecurityCapability\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_H245Security\" , HFILL }\n }\n , {\n & hf_h225_h245SecurityCapability_item , {\n \"H245Security\" , \"h225.H245Security\" , FT_UINT32 , BASE_DEC , VALS ( h225_H245Security_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_FastStart_item , {\n \"FastStart item\" , \"h225.FastStart_item\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_mediaWaitForConnect , {\n \"mediaWaitForConnect\" , \"h225.mediaWaitForConnect\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_canOverlapSend , {\n \"canOverlapSend\" , \"h225.canOverlapSend\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_endpointIdentifier , {\n \"endpointIdentifier\" , \"h225.endpointIdentifier\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_connectionParameters , {\n \"connectionParameters\" , \"h225.connectionParameters_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_connectionType , {\n \"connectionType\" , \"h225.connectionType\" , FT_UINT32 , BASE_DEC , VALS ( h225_ScnConnectionType_vals ) , 0 , \"ScnConnectionType\" , HFILL }\n }\n , {\n & hf_h225_numberOfScnConnections , {\n \"numberOfScnConnections\" , \"h225.numberOfScnConnections\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_65535\" , HFILL }\n }\n , {\n & hf_h225_connectionAggregation , {\n \"connectionAggregation\" , \"h225.connectionAggregation\" , FT_UINT32 , BASE_DEC , VALS ( h225_ScnConnectionAggregation_vals ) , 0 , \"ScnConnectionAggregation\" , HFILL }\n }\n , {\n & hf_h225_Language_item , {\n \"Language item\" , \"h225.Language_item\" , FT_STRING , BASE_NONE , NULL , 0 , \"IA5String_SIZE_1_32\" , HFILL }\n }\n , {\n & hf_h225_symmetricOperationRequired , {\n \"symmetricOperationRequired\" , \"h225.symmetricOperationRequired_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_desiredProtocols , {\n \"desiredProtocols\" , \"h225.desiredProtocols\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_SupportedProtocols\" , HFILL }\n }\n , {\n & hf_h225_desiredProtocols_item , {\n \"SupportedProtocols\" , \"h225.SupportedProtocols\" , FT_UINT32 , BASE_DEC , VALS ( h225_SupportedProtocols_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_neededFeatures , {\n \"neededFeatures\" , \"h225.neededFeatures\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_FeatureDescriptor\" , HFILL }\n }\n , {\n & hf_h225_neededFeatures_item , {\n \"FeatureDescriptor\" , \"h225.FeatureDescriptor_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_desiredFeatures , {\n \"desiredFeatures\" , \"h225.desiredFeatures\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_FeatureDescriptor\" , HFILL }\n }\n , {\n & hf_h225_desiredFeatures_item , {\n \"FeatureDescriptor\" , \"h225.FeatureDescriptor_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_supportedFeatures , {\n \"supportedFeatures\" , \"h225.supportedFeatures\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_FeatureDescriptor\" , HFILL }\n }\n , {\n & hf_h225_supportedFeatures_item , {\n \"FeatureDescriptor\" , \"h225.FeatureDescriptor_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_ParallelH245Control_item , {\n \"ParallelH245Control item\" , \"h225.ParallelH245Control_item\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_parallelH245Control , {\n \"parallelH245Control\" , \"h225.parallelH245Control\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_additionalSourceAddresses , {\n \"additionalSourceAddresses\" , \"h225.additionalSourceAddresses\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_ExtendedAliasAddress\" , HFILL }\n }\n , {\n & hf_h225_additionalSourceAddresses_item , {\n \"ExtendedAliasAddress\" , \"h225.ExtendedAliasAddress_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_hopCount_1_31 , {\n \"hopCount\" , \"h225.hopCount\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_31\" , HFILL }\n }\n , {\n & hf_h225_unknown , {\n \"unknown\" , \"h225.unknown_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_bChannel , {\n \"bChannel\" , \"h225.bChannel_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_hybrid2x64 , {\n \"hybrid2x64\" , \"h225.hybrid2x64_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_hybrid384 , {\n \"hybrid384\" , \"h225.hybrid384_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_hybrid1536 , {\n \"hybrid1536\" , \"h225.hybrid1536_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_hybrid1920 , {\n \"hybrid1920\" , \"h225.hybrid1920_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_multirate , {\n \"multirate\" , \"h225.multirate_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_auto , {\n \"auto\" , \"h225.auto_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_none , {\n \"none\" , \"h225.none_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_h221 , {\n \"h221\" , \"h225.h221_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_bonded_mode1 , {\n \"bonded-mode1\" , \"h225.bonded_mode1_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_bonded_mode2 , {\n \"bonded-mode2\" , \"h225.bonded_mode2_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_bonded_mode3 , {\n \"bonded-mode3\" , \"h225.bonded_mode3_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_presentationAllowed , {\n \"presentationAllowed\" , \"h225.presentationAllowed_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_presentationRestricted , {\n \"presentationRestricted\" , \"h225.presentationRestricted_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_addressNotAvailable , {\n \"addressNotAvailable\" , \"h225.addressNotAvailable_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_alternativeAddress , {\n \"alternativeAddress\" , \"h225.alternativeAddress\" , FT_UINT32 , BASE_DEC , VALS ( h225_TransportAddress_vals ) , 0 , \"TransportAddress\" , HFILL }\n }\n , {\n & hf_h225_alternativeAliasAddress , {\n \"alternativeAliasAddress\" , \"h225.alternativeAliasAddress\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_AliasAddress\" , HFILL }\n }\n , {\n & hf_h225_alternativeAliasAddress_item , {\n \"AliasAddress\" , \"h225.AliasAddress\" , FT_UINT32 , BASE_DEC , VALS ( AliasAddress_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_facilityReason , {\n \"reason\" , \"h225.reason\" , FT_UINT32 , BASE_DEC , VALS ( FacilityReason_vals ) , 0 , \"FacilityReason\" , HFILL }\n }\n , {\n & hf_h225_conferences , {\n \"conferences\" , \"h225.conferences\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_ConferenceList\" , HFILL }\n }\n , {\n & hf_h225_conferences_item , {\n \"ConferenceList\" , \"h225.ConferenceList_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_conferenceAlias , {\n \"conferenceAlias\" , \"h225.conferenceAlias\" , FT_UINT32 , BASE_DEC , VALS ( AliasAddress_vals ) , 0 , \"AliasAddress\" , HFILL }\n }\n , {\n & hf_h225_routeCallToGatekeeper , {\n \"routeCallToGatekeeper\" , \"h225.routeCallToGatekeeper_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_callForwarded , {\n \"callForwarded\" , \"h225.callForwarded_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_routeCallToMC , {\n \"routeCallToMC\" , \"h225.routeCallToMC_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_conferenceListChoice , {\n \"conferenceListChoice\" , \"h225.conferenceListChoice_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_startH245 , {\n \"startH245\" , \"h225.startH245_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_noH245 , {\n \"noH245\" , \"h225.noH245_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_newTokens , {\n \"newTokens\" , \"h225.newTokens_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_featureSetUpdate , {\n \"featureSetUpdate\" , \"h225.featureSetUpdate_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_forwardedElements , {\n \"forwardedElements\" , \"h225.forwardedElements_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_transportedInformation , {\n \"transportedInformation\" , \"h225.transportedInformation_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_h245IpAddress , {\n \"ipAddress\" , \"h225.ipAddress_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"T_h245IpAddress\" , HFILL }\n }\n , {\n & hf_h225_h245Ip , {\n \"ip\" , \"h225.ip\" , FT_IPv4 , BASE_NONE , NULL , 0 , \"T_h245Ip\" , HFILL }\n }\n , {\n & hf_h225_h245IpPort , {\n \"port\" , \"h225.port\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"T_h245IpPort\" , HFILL }\n }\n , {\n & hf_h225_h245IpSourceRoute , {\n \"ipSourceRoute\" , \"h225.ipSourceRoute_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"T_h245IpSourceRoute\" , HFILL }\n }\n , {\n & hf_h225_ip , {\n \"ip\" , \"h225.ip\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_4\" , HFILL }\n }\n , {\n & hf_h225_port , {\n \"port\" , \"h225.port\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_65535\" , HFILL }\n }\n , {\n & hf_h225_h245Route , {\n \"route\" , \"h225.route\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"T_h245Route\" , HFILL }\n }\n , {\n & hf_h225_h245Route_item , {\n \"route item\" , \"h225.route_item\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_4\" , HFILL }\n }\n , {\n & hf_h225_h245Routing , {\n \"routing\" , \"h225.routing\" , FT_UINT32 , BASE_DEC , VALS ( h225_T_h245Routing_vals ) , 0 , \"T_h245Routing\" , HFILL }\n }\n , {\n & hf_h225_strict , {\n \"strict\" , \"h225.strict_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_loose , {\n \"loose\" , \"h225.loose_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_h245IpxAddress , {\n \"ipxAddress\" , \"h225.ipxAddress_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"T_h245IpxAddress\" , HFILL }\n }\n , {\n & hf_h225_node , {\n \"node\" , \"h225.node\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_6\" , HFILL }\n }\n , {\n & hf_h225_netnum , {\n \"netnum\" , \"h225.netnum\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_4\" , HFILL }\n }\n , {\n & hf_h225_h245IpxPort , {\n \"port\" , \"h225.port\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_2\" , HFILL }\n }\n , {\n & hf_h225_h245Ip6Address , {\n \"ip6Address\" , \"h225.ip6Address_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"T_h245Ip6Address\" , HFILL }\n }\n , {\n & hf_h225_h245Ip6 , {\n \"ip\" , \"h225.ip\" , FT_IPv6 , BASE_NONE , NULL , 0 , \"T_h245Ip6\" , HFILL }\n }\n , {\n & hf_h225_port_01 , {\n \"port\" , \"h225.port\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_netBios , {\n \"netBios\" , \"h225.netBios\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_16\" , HFILL }\n }\n , {\n & hf_h225_nsap , {\n \"nsap\" , \"h225.nsap\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_1_20\" , HFILL }\n }\n , {\n & hf_h225_nonStandardAddress , {\n \"nonStandardAddress\" , \"h225.nonStandardAddress_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"NonStandardParameter\" , HFILL }\n }\n , {\n & hf_h225_ipAddress , {\n \"ipAddress\" , \"h225.ipAddress_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_ipV4 , {\n \"ip\" , \"h225.ip\" , FT_IPv4 , BASE_NONE , NULL , 0 , \"IpV4\" , HFILL }\n }\n , {\n & hf_h225_ipV4_port , {\n \"port\" , \"h225.port\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_65535\" , HFILL }\n }\n , {\n & hf_h225_ipSourceRoute , {\n \"ipSourceRoute\" , \"h225.ipSourceRoute_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_src_route_ipV4 , {\n \"ip\" , \"h225.ip\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_4\" , HFILL }\n }\n , {\n & hf_h225_ipV4_src_port , {\n \"port\" , \"h225.port\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_65535\" , HFILL }\n }\n , {\n & hf_h225_route , {\n \"route\" , \"h225.route\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_route_item , {\n \"route item\" , \"h225.route_item\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_4\" , HFILL }\n }\n , {\n & hf_h225_routing , {\n \"routing\" , \"h225.routing\" , FT_UINT32 , BASE_DEC , VALS ( h225_T_routing_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_ipxAddress , {\n \"ipxAddress\" , \"h225.ipxAddress_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_ipx_port , {\n \"port\" , \"h225.port\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_2\" , HFILL }\n }\n , {\n & hf_h225_ip6Address , {\n \"ip6Address\" , \"h225.ip6Address_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_ipV6 , {\n \"ip\" , \"h225.ip\" , FT_IPv6 , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_16\" , HFILL }\n }\n , {\n & hf_h225_ipV6_port , {\n \"port\" , \"h225.port\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_65535\" , HFILL }\n }\n , {\n & hf_h225_vendor , {\n \"vendor\" , \"h225.vendor_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"VendorIdentifier\" , HFILL }\n }\n , {\n & hf_h225_gatekeeper , {\n \"gatekeeper\" , \"h225.gatekeeper_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"GatekeeperInfo\" , HFILL }\n }\n , {\n & hf_h225_gateway , {\n \"gateway\" , \"h225.gateway_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"GatewayInfo\" , HFILL }\n }\n , {\n & hf_h225_mcu , {\n \"mcu\" , \"h225.mcu_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"McuInfo\" , HFILL }\n }\n , {\n & hf_h225_terminal , {\n \"terminal\" , \"h225.terminal_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"TerminalInfo\" , HFILL }\n }\n , {\n & hf_h225_mc , {\n \"mc\" , \"h225.mc\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_undefinedNode , {\n \"undefinedNode\" , \"h225.undefinedNode\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_set , {\n \"set\" , \"h225.set\" , FT_BYTES , BASE_NONE , NULL , 0 , \"BIT_STRING_SIZE_32\" , HFILL }\n }\n , {\n & hf_h225_supportedTunnelledProtocols , {\n \"supportedTunnelledProtocols\" , \"h225.supportedTunnelledProtocols\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_TunnelledProtocol\" , HFILL }\n }\n , {\n & hf_h225_supportedTunnelledProtocols_item , {\n \"TunnelledProtocol\" , \"h225.TunnelledProtocol_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_protocol , {\n \"protocol\" , \"h225.protocol\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_SupportedProtocols\" , HFILL }\n }\n , {\n & hf_h225_protocol_item , {\n \"SupportedProtocols\" , \"h225.SupportedProtocols\" , FT_UINT32 , BASE_DEC , VALS ( h225_SupportedProtocols_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_h310 , {\n \"h310\" , \"h225.h310_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"H310Caps\" , HFILL }\n }\n , {\n & hf_h225_h320 , {\n \"h320\" , \"h225.h320_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"H320Caps\" , HFILL }\n }\n , {\n & hf_h225_h321 , {\n \"h321\" , \"h225.h321_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"H321Caps\" , HFILL }\n }\n , {\n & hf_h225_h322 , {\n \"h322\" , \"h225.h322_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"H322Caps\" , HFILL }\n }\n , {\n & hf_h225_h323 , {\n \"h323\" , \"h225.h323_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"H323Caps\" , HFILL }\n }\n , {\n & hf_h225_h324 , {\n \"h324\" , \"h225.h324_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"H324Caps\" , HFILL }\n }\n , {\n & hf_h225_voice , {\n \"voice\" , \"h225.voice_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"VoiceCaps\" , HFILL }\n }\n , {\n & hf_h225_t120_only , {\n \"t120-only\" , \"h225.t120_only_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"T120OnlyCaps\" , HFILL }\n }\n , {\n & hf_h225_nonStandardProtocol , {\n \"nonStandardProtocol\" , \"h225.nonStandardProtocol_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_t38FaxAnnexbOnly , {\n \"t38FaxAnnexbOnly\" , \"h225.t38FaxAnnexbOnly_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"T38FaxAnnexbOnlyCaps\" , HFILL }\n }\n , {\n & hf_h225_sip , {\n \"sip\" , \"h225.sip_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"SIPCaps\" , HFILL }\n }\n , {\n & hf_h225_dataRatesSupported , {\n \"dataRatesSupported\" , \"h225.dataRatesSupported\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_DataRate\" , HFILL }\n }\n , {\n & hf_h225_dataRatesSupported_item , {\n \"DataRate\" , \"h225.DataRate_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_supportedPrefixes , {\n \"supportedPrefixes\" , \"h225.supportedPrefixes\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_SupportedPrefix\" , HFILL }\n }\n , {\n & hf_h225_supportedPrefixes_item , {\n \"SupportedPrefix\" , \"h225.SupportedPrefix_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_t38FaxProtocol , {\n \"t38FaxProtocol\" , \"h225.t38FaxProtocol\" , FT_UINT32 , BASE_DEC , VALS ( DataProtocolCapability_vals ) , 0 , \"DataProtocolCapability\" , HFILL }\n }\n , {\n & hf_h225_t38FaxProfile , {\n \"t38FaxProfile\" , \"h225.t38FaxProfile_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_vendorIdentifier_vendor , {\n \"vendor\" , \"h225.vendor_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"H221NonStandard\" , HFILL }\n }\n , {\n & hf_h225_productId , {\n \"productId\" , \"h225.productId\" , FT_STRING , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_1_256\" , HFILL }\n }\n , {\n & hf_h225_versionId , {\n \"versionId\" , \"h225.versionId\" , FT_STRING , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_1_256\" , HFILL }\n }\n , {\n & hf_h225_enterpriseNumber , {\n \"enterpriseNumber\" , \"h225.enterpriseNumber\" , FT_OID , BASE_NONE , NULL , 0 , \"OBJECT_IDENTIFIER\" , HFILL }\n }\n , {\n & hf_h225_t35CountryCode , {\n \"t35CountryCode\" , \"h225.t35CountryCode\" , FT_UINT32 , BASE_DEC , VALS ( T35CountryCode_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_t35Extension , {\n \"t35Extension\" , \"h225.t35Extension\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_manufacturerCode , {\n \"manufacturerCode\" , \"h225.manufacturerCode\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_tunnelledProtocol_id , {\n \"id\" , \"h225.id\" , FT_UINT32 , BASE_DEC , VALS ( h225_TunnelledProtocol_id_vals ) , 0 , \"TunnelledProtocol_id\" , HFILL }\n }\n , {\n & hf_h225_tunnelledProtocolObjectID , {\n \"tunnelledProtocolObjectID\" , \"h225.tunnelledProtocolObjectID\" , FT_OID , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_tunnelledProtocolAlternateID , {\n \"tunnelledProtocolAlternateID\" , \"h225.tunnelledProtocolAlternateID_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"TunnelledProtocolAlternateIdentifier\" , HFILL }\n }\n , {\n & hf_h225_subIdentifier , {\n \"subIdentifier\" , \"h225.subIdentifier\" , FT_STRING , BASE_NONE , NULL , 0 , \"IA5String_SIZE_1_64\" , HFILL }\n }\n , {\n & hf_h225_protocolType , {\n \"protocolType\" , \"h225.protocolType\" , FT_STRING , BASE_NONE , NULL , 0 , \"IA5String_SIZE_1_64\" , HFILL }\n }\n , {\n & hf_h225_protocolVariant , {\n \"protocolVariant\" , \"h225.protocolVariant\" , FT_STRING , BASE_NONE , NULL , 0 , \"IA5String_SIZE_1_64\" , HFILL }\n }\n , {\n & hf_h225_nonStandardIdentifier , {\n \"nonStandardIdentifier\" , \"h225.nonStandardIdentifier\" , FT_UINT32 , BASE_DEC , VALS ( h225_NonStandardIdentifier_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_nsp_data , {\n \"data\" , \"h225.data\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"T_nsp_data\" , HFILL }\n }\n , {\n & hf_h225_nsiOID , {\n \"object\" , \"h225.object\" , FT_OID , BASE_NONE , NULL , 0 , \"T_nsiOID\" , HFILL }\n }\n , {\n & hf_h225_h221NonStandard , {\n \"h221NonStandard\" , \"h225.h221NonStandard_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_dialledDigits , {\n \"dialledDigits\" , \"h225.dialledDigits\" , FT_STRING , BASE_NONE , NULL , 0 , \"DialedDigits\" , HFILL }\n }\n , {\n & hf_h225_h323_ID , {\n \"h323-ID\" , \"h225.h323_ID\" , FT_STRING , BASE_NONE , NULL , 0 , \"BMPString_SIZE_1_256\" , HFILL }\n }\n , {\n & hf_h225_url_ID , {\n \"url-ID\" , \"h225.url_ID\" , FT_STRING , BASE_NONE , NULL , 0 , \"IA5String_SIZE_1_512\" , HFILL }\n }\n , {\n & hf_h225_transportID , {\n \"transportID\" , \"h225.transportID\" , FT_UINT32 , BASE_DEC , VALS ( h225_TransportAddress_vals ) , 0 , \"TransportAddress\" , HFILL }\n }\n , {\n & hf_h225_email_ID , {\n \"email-ID\" , \"h225.email_ID\" , FT_STRING , BASE_NONE , NULL , 0 , \"IA5String_SIZE_1_512\" , HFILL }\n }\n , {\n & hf_h225_partyNumber , {\n \"partyNumber\" , \"h225.partyNumber\" , FT_UINT32 , BASE_DEC , VALS ( h225_PartyNumber_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_mobileUIM , {\n \"mobileUIM\" , \"h225.mobileUIM\" , FT_UINT32 , BASE_DEC , VALS ( h225_MobileUIM_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_isupNumber , {\n \"isupNumber\" , \"h225.isupNumber\" , FT_UINT32 , BASE_DEC , VALS ( h225_IsupNumber_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_wildcard , {\n \"wildcard\" , \"h225.wildcard\" , FT_UINT32 , BASE_DEC , VALS ( AliasAddress_vals ) , 0 , \"AliasAddress\" , HFILL }\n }\n , {\n & hf_h225_range , {\n \"range\" , \"h225.range_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_startOfRange , {\n \"startOfRange\" , \"h225.startOfRange\" , FT_UINT32 , BASE_DEC , VALS ( h225_PartyNumber_vals ) , 0 , \"PartyNumber\" , HFILL }\n }\n , {\n & hf_h225_endOfRange , {\n \"endOfRange\" , \"h225.endOfRange\" , FT_UINT32 , BASE_DEC , VALS ( h225_PartyNumber_vals ) , 0 , \"PartyNumber\" , HFILL }\n }\n , {\n & hf_h225_e164Number , {\n \"e164Number\" , \"h225.e164Number_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"PublicPartyNumber\" , HFILL }\n }\n , {\n & hf_h225_dataPartyNumber , {\n \"dataPartyNumber\" , \"h225.dataPartyNumber\" , FT_STRING , BASE_NONE , NULL , 0 , \"NumberDigits\" , HFILL }\n }\n , {\n & hf_h225_telexPartyNumber , {\n \"telexPartyNumber\" , \"h225.telexPartyNumber\" , FT_STRING , BASE_NONE , NULL , 0 , \"NumberDigits\" , HFILL }\n }\n , {\n & hf_h225_privateNumber , {\n \"privateNumber\" , \"h225.privateNumber_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"PrivatePartyNumber\" , HFILL }\n }\n , {\n & hf_h225_nationalStandardPartyNumber , {\n \"nationalStandardPartyNumber\" , \"h225.nationalStandardPartyNumber\" , FT_STRING , BASE_NONE , NULL , 0 , \"NumberDigits\" , HFILL }\n }\n , {\n & hf_h225_publicTypeOfNumber , {\n \"publicTypeOfNumber\" , \"h225.publicTypeOfNumber\" , FT_UINT32 , BASE_DEC , VALS ( h225_PublicTypeOfNumber_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_publicNumberDigits , {\n \"publicNumberDigits\" , \"h225.publicNumberDigits\" , FT_STRING , BASE_NONE , NULL , 0 , \"NumberDigits\" , HFILL }\n }\n , {\n & hf_h225_privateTypeOfNumber , {\n \"privateTypeOfNumber\" , \"h225.privateTypeOfNumber\" , FT_UINT32 , BASE_DEC , VALS ( h225_PrivateTypeOfNumber_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_privateNumberDigits , {\n \"privateNumberDigits\" , \"h225.privateNumberDigits\" , FT_STRING , BASE_NONE , NULL , 0 , \"NumberDigits\" , HFILL }\n }\n , {\n & hf_h225_language_01 , {\n \"language\" , \"h225.language\" , FT_STRING , BASE_NONE , NULL , 0 , \"IA5String\" , HFILL }\n }\n , {\n & hf_h225_name , {\n \"name\" , \"h225.name\" , FT_STRING , BASE_NONE , NULL , 0 , \"BMPString_SIZE_1_80\" , HFILL }\n }\n , {\n & hf_h225_internationalNumber , {\n \"internationalNumber\" , \"h225.internationalNumber_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_nationalNumber , {\n \"nationalNumber\" , \"h225.nationalNumber_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_networkSpecificNumber , {\n \"networkSpecificNumber\" , \"h225.networkSpecificNumber_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_subscriberNumber , {\n \"subscriberNumber\" , \"h225.subscriberNumber_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_abbreviatedNumber , {\n \"abbreviatedNumber\" , \"h225.abbreviatedNumber_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_level2RegionalNumber , {\n \"level2RegionalNumber\" , \"h225.level2RegionalNumber_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_level1RegionalNumber , {\n \"level1RegionalNumber\" , \"h225.level1RegionalNumber_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_pISNSpecificNumber , {\n \"pISNSpecificNumber\" , \"h225.pISNSpecificNumber_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_localNumber , {\n \"localNumber\" , \"h225.localNumber_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_ansi_41_uim , {\n \"ansi-41-uim\" , \"h225.ansi_41_uim_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_gsm_uim , {\n \"gsm-uim\" , \"h225.gsm_uim_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_imsi , {\n \"imsi\" , \"h225.imsi\" , FT_STRING , BASE_NONE , NULL , 0 , \"TBCD_STRING_SIZE_3_16\" , HFILL }\n }\n , {\n & hf_h225_min , {\n \"min\" , \"h225.min\" , FT_STRING , BASE_NONE , NULL , 0 , \"TBCD_STRING_SIZE_3_16\" , HFILL }\n }\n , {\n & hf_h225_mdn , {\n \"mdn\" , \"h225.mdn\" , FT_STRING , BASE_NONE , NULL , 0 , \"TBCD_STRING_SIZE_3_16\" , HFILL }\n }\n , {\n & hf_h225_msisdn , {\n \"msisdn\" , \"h225.msisdn\" , FT_STRING , BASE_NONE , NULL , 0 , \"TBCD_STRING_SIZE_3_16\" , HFILL }\n }\n , {\n & hf_h225_esn , {\n \"esn\" , \"h225.esn\" , FT_STRING , BASE_NONE , NULL , 0 , \"TBCD_STRING_SIZE_16\" , HFILL }\n }\n , {\n & hf_h225_mscid , {\n \"mscid\" , \"h225.mscid\" , FT_STRING , BASE_NONE , NULL , 0 , \"TBCD_STRING_SIZE_3_16\" , HFILL }\n }\n , {\n & hf_h225_system_id , {\n \"system-id\" , \"h225.system_id\" , FT_UINT32 , BASE_DEC , VALS ( h225_T_system_id_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_sid , {\n \"sid\" , \"h225.sid\" , FT_STRING , BASE_NONE , NULL , 0 , \"TBCD_STRING_SIZE_1_4\" , HFILL }\n }\n , {\n & hf_h225_mid , {\n \"mid\" , \"h225.mid\" , FT_STRING , BASE_NONE , NULL , 0 , \"TBCD_STRING_SIZE_1_4\" , HFILL }\n }\n , {\n & hf_h225_systemMyTypeCode , {\n \"systemMyTypeCode\" , \"h225.systemMyTypeCode\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_1\" , HFILL }\n }\n , {\n & hf_h225_systemAccessType , {\n \"systemAccessType\" , \"h225.systemAccessType\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_1\" , HFILL }\n }\n , {\n & hf_h225_qualificationInformationCode , {\n \"qualificationInformationCode\" , \"h225.qualificationInformationCode\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_1\" , HFILL }\n }\n , {\n & hf_h225_sesn , {\n \"sesn\" , \"h225.sesn\" , FT_STRING , BASE_NONE , NULL , 0 , \"TBCD_STRING_SIZE_16\" , HFILL }\n }\n , {\n & hf_h225_soc , {\n \"soc\" , \"h225.soc\" , FT_STRING , BASE_NONE , NULL , 0 , \"TBCD_STRING_SIZE_3_16\" , HFILL }\n }\n , {\n & hf_h225_tmsi , {\n \"tmsi\" , \"h225.tmsi\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_1_4\" , HFILL }\n }\n , {\n & hf_h225_imei , {\n \"imei\" , \"h225.imei\" , FT_STRING , BASE_NONE , NULL , 0 , \"TBCD_STRING_SIZE_15_16\" , HFILL }\n }\n , {\n & hf_h225_hplmn , {\n \"hplmn\" , \"h225.hplmn\" , FT_STRING , BASE_NONE , NULL , 0 , \"TBCD_STRING_SIZE_1_4\" , HFILL }\n }\n , {\n & hf_h225_vplmn , {\n \"vplmn\" , \"h225.vplmn\" , FT_STRING , BASE_NONE , NULL , 0 , \"TBCD_STRING_SIZE_1_4\" , HFILL }\n }\n , {\n & hf_h225_isupE164Number , {\n \"e164Number\" , \"h225.e164Number_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"IsupPublicPartyNumber\" , HFILL }\n }\n , {\n & hf_h225_isupDataPartyNumber , {\n \"dataPartyNumber\" , \"h225.dataPartyNumber\" , FT_STRING , BASE_NONE , NULL , 0 , \"IsupDigits\" , HFILL }\n }\n , {\n & hf_h225_isupTelexPartyNumber , {\n \"telexPartyNumber\" , \"h225.telexPartyNumber\" , FT_STRING , BASE_NONE , NULL , 0 , \"IsupDigits\" , HFILL }\n }\n , {\n & hf_h225_isupPrivateNumber , {\n \"privateNumber\" , \"h225.privateNumber_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"IsupPrivatePartyNumber\" , HFILL }\n }\n , {\n & hf_h225_isupNationalStandardPartyNumber , {\n \"nationalStandardPartyNumber\" , \"h225.nationalStandardPartyNumber\" , FT_STRING , BASE_NONE , NULL , 0 , \"IsupDigits\" , HFILL }\n }\n , {\n & hf_h225_natureOfAddress , {\n \"natureOfAddress\" , \"h225.natureOfAddress\" , FT_UINT32 , BASE_DEC , VALS ( h225_NatureOfAddress_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_address , {\n \"address\" , \"h225.address\" , FT_STRING , BASE_NONE , NULL , 0 , \"IsupDigits\" , HFILL }\n }\n , {\n & hf_h225_routingNumberNationalFormat , {\n \"routingNumberNationalFormat\" , \"h225.routingNumberNationalFormat_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_routingNumberNetworkSpecificFormat , {\n \"routingNumberNetworkSpecificFormat\" , \"h225.routingNumberNetworkSpecificFormat_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_routingNumberWithCalledDirectoryNumber , {\n \"routingNumberWithCalledDirectoryNumber\" , \"h225.routingNumberWithCalledDirectoryNumber_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_extAliasAddress , {\n \"address\" , \"h225.address\" , FT_UINT32 , BASE_DEC , VALS ( AliasAddress_vals ) , 0 , \"AliasAddress\" , HFILL }\n }\n , {\n & hf_h225_aliasAddress , {\n \"aliasAddress\" , \"h225.aliasAddress\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_AliasAddress\" , HFILL }\n }\n , {\n & hf_h225_aliasAddress_item , {\n \"AliasAddress\" , \"h225.AliasAddress\" , FT_UINT32 , BASE_DEC , VALS ( AliasAddress_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_callSignalAddress , {\n \"callSignalAddress\" , \"h225.callSignalAddress\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_TransportAddress\" , HFILL }\n }\n , {\n & hf_h225_callSignalAddress_item , {\n \"TransportAddress\" , \"h225.TransportAddress\" , FT_UINT32 , BASE_DEC , VALS ( h225_TransportAddress_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_rasAddress , {\n \"rasAddress\" , \"h225.rasAddress\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_TransportAddress\" , HFILL }\n }\n , {\n & hf_h225_rasAddress_item , {\n \"TransportAddress\" , \"h225.TransportAddress\" , FT_UINT32 , BASE_DEC , VALS ( h225_TransportAddress_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_endpointType , {\n \"endpointType\" , \"h225.endpointType_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_priority , {\n \"priority\" , \"h225.priority\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_127\" , HFILL }\n }\n , {\n & hf_h225_remoteExtensionAddress , {\n \"remoteExtensionAddress\" , \"h225.remoteExtensionAddress\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_AliasAddress\" , HFILL }\n }\n , {\n & hf_h225_remoteExtensionAddress_item , {\n \"AliasAddress\" , \"h225.AliasAddress\" , FT_UINT32 , BASE_DEC , VALS ( AliasAddress_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_alternateTransportAddresses , {\n \"alternateTransportAddresses\" , \"h225.alternateTransportAddresses_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_annexE , {\n \"annexE\" , \"h225.annexE\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_TransportAddress\" , HFILL }\n }\n , {\n & hf_h225_annexE_item , {\n \"TransportAddress\" , \"h225.TransportAddress\" , FT_UINT32 , BASE_DEC , VALS ( h225_TransportAddress_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_sctp , {\n \"sctp\" , \"h225.sctp\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_TransportAddress\" , HFILL }\n }\n , {\n & hf_h225_sctp_item , {\n \"TransportAddress\" , \"h225.TransportAddress\" , FT_UINT32 , BASE_DEC , VALS ( h225_TransportAddress_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_tcp , {\n \"tcp\" , \"h225.tcp_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_annexE_flg , {\n \"annexE\" , \"h225.annexE_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_sctp_flg , {\n \"sctp\" , \"h225.sctp_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_alternateGK_rasAddress , {\n \"rasAddress\" , \"h225.rasAddress\" , FT_UINT32 , BASE_DEC , VALS ( h225_TransportAddress_vals ) , 0 , \"TransportAddress\" , HFILL }\n }\n , {\n & hf_h225_gatekeeperIdentifier , {\n \"gatekeeperIdentifier\" , \"h225.gatekeeperIdentifier\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_needToRegister , {\n \"needToRegister\" , \"h225.needToRegister\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_alternateGatekeeper , {\n \"alternateGatekeeper\" , \"h225.alternateGatekeeper\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_AlternateGK\" , HFILL }\n }\n , {\n & hf_h225_alternateGatekeeper_item , {\n \"AlternateGK\" , \"h225.AlternateGK_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_altGKisPermanent , {\n \"altGKisPermanent\" , \"h225.altGKisPermanent\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_default , {\n \"default\" , \"h225.default_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_encryption , {\n \"encryption\" , \"h225.encryption\" , FT_UINT32 , BASE_DEC , VALS ( h225_SecurityServiceMode_vals ) , 0 , \"SecurityServiceMode\" , HFILL }\n }\n , {\n & hf_h225_authenticaton , {\n \"authenticaton\" , \"h225.authenticaton\" , FT_UINT32 , BASE_DEC , VALS ( h225_SecurityServiceMode_vals ) , 0 , \"SecurityServiceMode\" , HFILL }\n }\n , {\n & hf_h225_securityCapabilities_integrity , {\n \"integrity\" , \"h225.integrity\" , FT_UINT32 , BASE_DEC , VALS ( h225_SecurityServiceMode_vals ) , 0 , \"SecurityServiceMode\" , HFILL }\n }\n , {\n & hf_h225_securityWrongSyncTime , {\n \"securityWrongSyncTime\" , \"h225.securityWrongSyncTime_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_securityReplay , {\n \"securityReplay\" , \"h225.securityReplay_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_securityWrongGeneralID , {\n \"securityWrongGeneralID\" , \"h225.securityWrongGeneralID_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_securityWrongSendersID , {\n \"securityWrongSendersID\" , \"h225.securityWrongSendersID_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_securityIntegrityFailed , {\n \"securityIntegrityFailed\" , \"h225.securityIntegrityFailed_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_securityWrongOID , {\n \"securityWrongOID\" , \"h225.securityWrongOID_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_securityDHmismatch , {\n \"securityDHmismatch\" , \"h225.securityDHmismatch_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_securityCertificateExpired , {\n \"securityCertificateExpired\" , \"h225.securityCertificateExpired_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_securityCertificateDateInvalid , {\n \"securityCertificateDateInvalid\" , \"h225.securityCertificateDateInvalid_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_securityCertificateRevoked , {\n \"securityCertificateRevoked\" , \"h225.securityCertificateRevoked_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_securityCertificateNotReadable , {\n \"securityCertificateNotReadable\" , \"h225.securityCertificateNotReadable_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_securityCertificateSignatureInvalid , {\n \"securityCertificateSignatureInvalid\" , \"h225.securityCertificateSignatureInvalid_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_securityCertificateMissing , {\n \"securityCertificateMissing\" , \"h225.securityCertificateMissing_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_securityCertificateIncomplete , {\n \"securityCertificateIncomplete\" , \"h225.securityCertificateIncomplete_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_securityUnsupportedCertificateAlgOID , {\n \"securityUnsupportedCertificateAlgOID\" , \"h225.securityUnsupportedCertificateAlgOID_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_securityUnknownCA , {\n \"securityUnknownCA\" , \"h225.securityUnknownCA_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_noSecurity , {\n \"noSecurity\" , \"h225.noSecurity_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_tls , {\n \"tls\" , \"h225.tls_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"SecurityCapabilities\" , HFILL }\n }\n , {\n & hf_h225_ipsec , {\n \"ipsec\" , \"h225.ipsec_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"SecurityCapabilities\" , HFILL }\n }\n , {\n & hf_h225_q932Full , {\n \"q932Full\" , \"h225.q932Full\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_q951Full , {\n \"q951Full\" , \"h225.q951Full\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_q952Full , {\n \"q952Full\" , \"h225.q952Full\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_q953Full , {\n \"q953Full\" , \"h225.q953Full\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_q955Full , {\n \"q955Full\" , \"h225.q955Full\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_q956Full , {\n \"q956Full\" , \"h225.q956Full\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_q957Full , {\n \"q957Full\" , \"h225.q957Full\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_q954Info , {\n \"q954Info\" , \"h225.q954Info_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"Q954Details\" , HFILL }\n }\n , {\n & hf_h225_conferenceCalling , {\n \"conferenceCalling\" , \"h225.conferenceCalling\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_threePartyService , {\n \"threePartyService\" , \"h225.threePartyService\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_guid , {\n \"guid\" , \"h225.guid\" , FT_GUID , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_isoAlgorithm , {\n \"isoAlgorithm\" , \"h225.isoAlgorithm\" , FT_OID , BASE_NONE , NULL , 0 , \"OBJECT_IDENTIFIER\" , HFILL }\n }\n , {\n & hf_h225_hMAC_MD5 , {\n \"hMAC-MD5\" , \"h225.hMAC_MD5_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_hMAC_iso10118_2_s , {\n \"hMAC-iso10118-2-s\" , \"h225.hMAC_iso10118_2_s\" , FT_UINT32 , BASE_DEC , VALS ( h225_EncryptIntAlg_vals ) , 0 , \"EncryptIntAlg\" , HFILL }\n }\n , {\n & hf_h225_hMAC_iso10118_2_l , {\n \"hMAC-iso10118-2-l\" , \"h225.hMAC_iso10118_2_l\" , FT_UINT32 , BASE_DEC , VALS ( h225_EncryptIntAlg_vals ) , 0 , \"EncryptIntAlg\" , HFILL }\n }\n , {\n & hf_h225_hMAC_iso10118_3 , {\n \"hMAC-iso10118-3\" , \"h225.hMAC_iso10118_3\" , FT_OID , BASE_NONE , NULL , 0 , \"OBJECT_IDENTIFIER\" , HFILL }\n }\n , {\n & hf_h225_digSig , {\n \"digSig\" , \"h225.digSig_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_iso9797 , {\n \"iso9797\" , \"h225.iso9797\" , FT_OID , BASE_NONE , NULL , 0 , \"OBJECT_IDENTIFIER\" , HFILL }\n }\n , {\n & hf_h225_nonIsoIM , {\n \"nonIsoIM\" , \"h225.nonIsoIM\" , FT_UINT32 , BASE_DEC , VALS ( h225_NonIsoIntegrityMechanism_vals ) , 0 , \"NonIsoIntegrityMechanism\" , HFILL }\n }\n , {\n & hf_h225_algorithmOID , {\n \"algorithmOID\" , \"h225.algorithmOID\" , FT_OID , BASE_NONE , NULL , 0 , \"OBJECT_IDENTIFIER\" , HFILL }\n }\n , {\n & hf_h225_icv , {\n \"icv\" , \"h225.icv\" , FT_BYTES , BASE_NONE , NULL , 0 , \"BIT_STRING\" , HFILL }\n }\n , {\n & hf_h225_cryptoEPPwdHash , {\n \"cryptoEPPwdHash\" , \"h225.cryptoEPPwdHash_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_alias , {\n \"alias\" , \"h225.alias\" , FT_UINT32 , BASE_DEC , VALS ( AliasAddress_vals ) , 0 , \"AliasAddress\" , HFILL }\n }\n , {\n & hf_h225_timeStamp , {\n \"timeStamp\" , \"h225.timeStamp\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_LOCAL , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_token , {\n \"token\" , \"h225.token_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"HASHED\" , HFILL }\n }\n , {\n & hf_h225_cryptoGKPwdHash , {\n \"cryptoGKPwdHash\" , \"h225.cryptoGKPwdHash_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_gatekeeperId , {\n \"gatekeeperId\" , \"h225.gatekeeperId\" , FT_STRING , BASE_NONE , NULL , 0 , \"GatekeeperIdentifier\" , HFILL }\n }\n , {\n & hf_h225_cryptoEPPwdEncr , {\n \"cryptoEPPwdEncr\" , \"h225.cryptoEPPwdEncr_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"ENCRYPTED\" , HFILL }\n }\n , {\n & hf_h225_cryptoGKPwdEncr , {\n \"cryptoGKPwdEncr\" , \"h225.cryptoGKPwdEncr_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"ENCRYPTED\" , HFILL }\n }\n , {\n & hf_h225_cryptoEPCert , {\n \"cryptoEPCert\" , \"h225.cryptoEPCert_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"SIGNED\" , HFILL }\n }\n , {\n & hf_h225_cryptoGKCert , {\n \"cryptoGKCert\" , \"h225.cryptoGKCert_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"SIGNED\" , HFILL }\n }\n , {\n & hf_h225_cryptoFastStart , {\n \"cryptoFastStart\" , \"h225.cryptoFastStart_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"SIGNED\" , HFILL }\n }\n , {\n & hf_h225_nestedcryptoToken , {\n \"nestedcryptoToken\" , \"h225.nestedcryptoToken\" , FT_UINT32 , BASE_DEC , VALS ( h235_CryptoToken_vals ) , 0 , \"CryptoToken\" , HFILL }\n }\n , {\n & hf_h225_channelRate , {\n \"channelRate\" , \"h225.channelRate\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"BandWidth\" , HFILL }\n }\n , {\n & hf_h225_channelMultiplier , {\n \"channelMultiplier\" , \"h225.channelMultiplier\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_256\" , HFILL }\n }\n , {\n & hf_h225_globalCallId , {\n \"globalCallId\" , \"h225.globalCallId\" , FT_GUID , BASE_NONE , NULL , 0 , \"GloballyUniqueID\" , HFILL }\n }\n , {\n & hf_h225_threadId , {\n \"threadId\" , \"h225.threadId\" , FT_GUID , BASE_NONE , NULL , 0 , \"GloballyUniqueID\" , HFILL }\n }\n , {\n & hf_h225_prefix , {\n \"prefix\" , \"h225.prefix\" , FT_UINT32 , BASE_DEC , VALS ( AliasAddress_vals ) , 0 , \"AliasAddress\" , HFILL }\n }\n , {\n & hf_h225_canReportCallCapacity , {\n \"canReportCallCapacity\" , \"h225.canReportCallCapacity\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_capacityReportingSpecification_when , {\n \"when\" , \"h225.when_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"CapacityReportingSpecification_when\" , HFILL }\n }\n , {\n & hf_h225_callStart , {\n \"callStart\" , \"h225.callStart_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_callEnd , {\n \"callEnd\" , \"h225.callEnd_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_maximumCallCapacity , {\n \"maximumCallCapacity\" , \"h225.maximumCallCapacity_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"CallCapacityInfo\" , HFILL }\n }\n , {\n & hf_h225_currentCallCapacity , {\n \"currentCallCapacity\" , \"h225.currentCallCapacity_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"CallCapacityInfo\" , HFILL }\n }\n , {\n & hf_h225_voiceGwCallsAvailable , {\n \"voiceGwCallsAvailable\" , \"h225.voiceGwCallsAvailable\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_CallsAvailable\" , HFILL }\n }\n , {\n & hf_h225_voiceGwCallsAvailable_item , {\n \"CallsAvailable\" , \"h225.CallsAvailable_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_h310GwCallsAvailable , {\n \"h310GwCallsAvailable\" , \"h225.h310GwCallsAvailable\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_CallsAvailable\" , HFILL }\n }\n , {\n & hf_h225_h310GwCallsAvailable_item , {\n \"CallsAvailable\" , \"h225.CallsAvailable_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_h320GwCallsAvailable , {\n \"h320GwCallsAvailable\" , \"h225.h320GwCallsAvailable\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_CallsAvailable\" , HFILL }\n }\n , {\n & hf_h225_h320GwCallsAvailable_item , {\n \"CallsAvailable\" , \"h225.CallsAvailable_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_h321GwCallsAvailable , {\n \"h321GwCallsAvailable\" , \"h225.h321GwCallsAvailable\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_CallsAvailable\" , HFILL }\n }\n , {\n & hf_h225_h321GwCallsAvailable_item , {\n \"CallsAvailable\" , \"h225.CallsAvailable_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_h322GwCallsAvailable , {\n \"h322GwCallsAvailable\" , \"h225.h322GwCallsAvailable\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_CallsAvailable\" , HFILL }\n }\n , {\n & hf_h225_h322GwCallsAvailable_item , {\n \"CallsAvailable\" , \"h225.CallsAvailable_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_h323GwCallsAvailable , {\n \"h323GwCallsAvailable\" , \"h225.h323GwCallsAvailable\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_CallsAvailable\" , HFILL }\n }\n , {\n & hf_h225_h323GwCallsAvailable_item , {\n \"CallsAvailable\" , \"h225.CallsAvailable_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_h324GwCallsAvailable , {\n \"h324GwCallsAvailable\" , \"h225.h324GwCallsAvailable\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_CallsAvailable\" , HFILL }\n }\n , {\n & hf_h225_h324GwCallsAvailable_item , {\n \"CallsAvailable\" , \"h225.CallsAvailable_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_t120OnlyGwCallsAvailable , {\n \"t120OnlyGwCallsAvailable\" , \"h225.t120OnlyGwCallsAvailable\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_CallsAvailable\" , HFILL }\n }\n , {\n & hf_h225_t120OnlyGwCallsAvailable_item , {\n \"CallsAvailable\" , \"h225.CallsAvailable_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_t38FaxAnnexbOnlyGwCallsAvailable , {\n \"t38FaxAnnexbOnlyGwCallsAvailable\" , \"h225.t38FaxAnnexbOnlyGwCallsAvailable\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_CallsAvailable\" , HFILL }\n }\n , {\n & hf_h225_t38FaxAnnexbOnlyGwCallsAvailable_item , {\n \"CallsAvailable\" , \"h225.CallsAvailable_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_terminalCallsAvailable , {\n \"terminalCallsAvailable\" , \"h225.terminalCallsAvailable\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_CallsAvailable\" , HFILL }\n }\n , {\n & hf_h225_terminalCallsAvailable_item , {\n \"CallsAvailable\" , \"h225.CallsAvailable_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_mcuCallsAvailable , {\n \"mcuCallsAvailable\" , \"h225.mcuCallsAvailable\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_CallsAvailable\" , HFILL }\n }\n , {\n & hf_h225_mcuCallsAvailable_item , {\n \"CallsAvailable\" , \"h225.CallsAvailable_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_sipGwCallsAvailable , {\n \"sipGwCallsAvailable\" , \"h225.sipGwCallsAvailable\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_CallsAvailable\" , HFILL }\n }\n , {\n & hf_h225_sipGwCallsAvailable_item , {\n \"CallsAvailable\" , \"h225.CallsAvailable_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_calls , {\n \"calls\" , \"h225.calls\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_4294967295\" , HFILL }\n }\n , {\n & hf_h225_group_IA5String , {\n \"group\" , \"h225.group\" , FT_STRING , BASE_NONE , NULL , 0 , \"IA5String_SIZE_1_128\" , HFILL }\n }\n , {\n & hf_h225_carrier , {\n \"carrier\" , \"h225.carrier_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"CarrierInfo\" , HFILL }\n }\n , {\n & hf_h225_sourceCircuitID , {\n \"sourceCircuitID\" , \"h225.sourceCircuitID_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"CircuitIdentifier\" , HFILL }\n }\n , {\n & hf_h225_destinationCircuitID , {\n \"destinationCircuitID\" , \"h225.destinationCircuitID_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"CircuitIdentifier\" , HFILL }\n }\n , {\n & hf_h225_cic , {\n \"cic\" , \"h225.cic_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"CicInfo\" , HFILL }\n }\n , {\n & hf_h225_group , {\n \"group\" , \"h225.group_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"GroupID\" , HFILL }\n }\n , {\n & hf_h225_cic_2_4 , {\n \"cic\" , \"h225.cic\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"T_cic_2_4\" , HFILL }\n }\n , {\n & hf_h225_cic_2_4_item , {\n \"cic item\" , \"h225.cic_item\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_2_4\" , HFILL }\n }\n , {\n & hf_h225_pointCode , {\n \"pointCode\" , \"h225.pointCode\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_2_5\" , HFILL }\n }\n , {\n & hf_h225_member , {\n \"member\" , \"h225.member\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_member_item , {\n \"member item\" , \"h225.member_item\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_65535\" , HFILL }\n }\n , {\n & hf_h225_carrierIdentificationCode , {\n \"carrierIdentificationCode\" , \"h225.carrierIdentificationCode\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_3_4\" , HFILL }\n }\n , {\n & hf_h225_carrierName , {\n \"carrierName\" , \"h225.carrierName\" , FT_STRING , BASE_NONE , NULL , 0 , \"IA5String_SIZE_1_128\" , HFILL }\n }\n , {\n & hf_h225_url , {\n \"url\" , \"h225.url\" , FT_STRING , BASE_NONE , NULL , 0 , \"IA5String_SIZE_0_512\" , HFILL }\n }\n , {\n & hf_h225_signal , {\n \"signal\" , \"h225.signal\" , FT_BYTES , BASE_NONE , NULL , 0 , \"H248SignalsDescriptor\" , HFILL }\n }\n , {\n & hf_h225_callCreditServiceControl , {\n \"callCreditServiceControl\" , \"h225.callCreditServiceControl_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_sessionId_0_255 , {\n \"sessionId\" , \"h225.sessionId\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_255\" , HFILL }\n }\n , {\n & hf_h225_contents , {\n \"contents\" , \"h225.contents\" , FT_UINT32 , BASE_DEC , VALS ( h225_ServiceControlDescriptor_vals ) , 0 , \"ServiceControlDescriptor\" , HFILL }\n }\n , {\n & hf_h225_reason , {\n \"reason\" , \"h225.reason\" , FT_UINT32 , BASE_DEC , VALS ( h225_ServiceControlSession_reason_vals ) , 0 , \"ServiceControlSession_reason\" , HFILL }\n }\n , {\n & hf_h225_open , {\n \"open\" , \"h225.open_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_refresh , {\n \"refresh\" , \"h225.refresh_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_close , {\n \"close\" , \"h225.close_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_nonStandardUsageTypes , {\n \"nonStandardUsageTypes\" , \"h225.nonStandardUsageTypes\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_NonStandardParameter\" , HFILL }\n }\n , {\n & hf_h225_nonStandardUsageTypes_item , {\n \"NonStandardParameter\" , \"h225.NonStandardParameter_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_startTime , {\n \"startTime\" , \"h225.startTime_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_endTime_flg , {\n \"endTime\" , \"h225.endTime_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_terminationCause_flg , {\n \"terminationCause\" , \"h225.terminationCause_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_when , {\n \"when\" , \"h225.when_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"RasUsageSpecification_when\" , HFILL }\n }\n , {\n & hf_h225_start , {\n \"start\" , \"h225.start_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_end , {\n \"end\" , \"h225.end_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_inIrr , {\n \"inIrr\" , \"h225.inIrr_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_ras_callStartingPoint , {\n \"callStartingPoint\" , \"h225.callStartingPoint_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"RasUsageSpecificationcallStartingPoint\" , HFILL }\n }\n , {\n & hf_h225_alerting_flg , {\n \"alerting\" , \"h225.alerting_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_connect_flg , {\n \"connect\" , \"h225.connect_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_required , {\n \"required\" , \"h225.required_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"RasUsageInfoTypes\" , HFILL }\n }\n , {\n & hf_h225_nonStandardUsageFields , {\n \"nonStandardUsageFields\" , \"h225.nonStandardUsageFields\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_NonStandardParameter\" , HFILL }\n }\n , {\n & hf_h225_nonStandardUsageFields_item , {\n \"NonStandardParameter\" , \"h225.NonStandardParameter_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_alertingTime , {\n \"alertingTime\" , \"h225.alertingTime\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_LOCAL , NULL , 0 , \"TimeStamp\" , HFILL }\n }\n , {\n & hf_h225_connectTime , {\n \"connectTime\" , \"h225.connectTime\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_LOCAL , NULL , 0 , \"TimeStamp\" , HFILL }\n }\n , {\n & hf_h225_endTime , {\n \"endTime\" , \"h225.endTime\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_LOCAL , NULL , 0 , \"TimeStamp\" , HFILL }\n }\n , {\n & hf_h225_releaseCompleteCauseIE , {\n \"releaseCompleteCauseIE\" , \"h225.releaseCompleteCauseIE\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_2_32\" , HFILL }\n }\n , {\n & hf_h225_sender , {\n \"sender\" , \"h225.sender\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_multicast , {\n \"multicast\" , \"h225.multicast\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_bandwidth , {\n \"bandwidth\" , \"h225.bandwidth\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_rtcpAddresses , {\n \"rtcpAddresses\" , \"h225.rtcpAddresses_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"TransportChannelInfo\" , HFILL }\n }\n , {\n & hf_h225_canDisplayAmountString , {\n \"canDisplayAmountString\" , \"h225.canDisplayAmountString\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_canEnforceDurationLimit , {\n \"canEnforceDurationLimit\" , \"h225.canEnforceDurationLimit\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_amountString , {\n \"amountString\" , \"h225.amountString\" , FT_STRING , BASE_NONE , NULL , 0 , \"BMPString_SIZE_1_512\" , HFILL }\n }\n , {\n & hf_h225_billingMode , {\n \"billingMode\" , \"h225.billingMode\" , FT_UINT32 , BASE_DEC , VALS ( h225_T_billingMode_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_credit , {\n \"credit\" , \"h225.credit_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_debit , {\n \"debit\" , \"h225.debit_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_callDurationLimit , {\n \"callDurationLimit\" , \"h225.callDurationLimit\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_4294967295\" , HFILL }\n }\n , {\n & hf_h225_enforceCallDurationLimit , {\n \"enforceCallDurationLimit\" , \"h225.enforceCallDurationLimit\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_callStartingPoint , {\n \"callStartingPoint\" , \"h225.callStartingPoint\" , FT_UINT32 , BASE_DEC , VALS ( h225_CallCreditServiceControl_callStartingPoint_vals ) , 0 , \"CallCreditServiceControl_callStartingPoint\" , HFILL }\n }\n , {\n & hf_h225_id , {\n \"id\" , \"h225.id\" , FT_UINT32 , BASE_DEC , VALS ( h225_GenericIdentifier_vals ) , 0 , \"GenericIdentifier\" , HFILL }\n }\n , {\n & hf_h225_parameters , {\n \"parameters\" , \"h225.parameters\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_SIZE_1_512_OF_EnumeratedParameter\" , HFILL }\n }\n , {\n & hf_h225_parameters_item , {\n \"EnumeratedParameter\" , \"h225.EnumeratedParameter_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_standard , {\n \"standard\" , \"h225.standard\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_oid , {\n \"oid\" , \"h225.oid\" , FT_OID , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_genericIdentifier_nonStandard , {\n \"nonStandard\" , \"h225.nonStandard\" , FT_GUID , BASE_NONE , NULL , 0 , \"GloballyUniqueID\" , HFILL }\n }\n , {\n & hf_h225_content , {\n \"content\" , \"h225.content\" , FT_UINT32 , BASE_DEC , VALS ( h225_Content_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_raw , {\n \"raw\" , \"h225.raw\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_text , {\n \"text\" , \"h225.text\" , FT_STRING , BASE_NONE , NULL , 0 , \"IA5String\" , HFILL }\n }\n , {\n & hf_h225_unicode , {\n \"unicode\" , \"h225.unicode\" , FT_STRING , BASE_NONE , NULL , 0 , \"BMPString\" , HFILL }\n }\n , {\n & hf_h225_bool , {\n \"bool\" , \"h225.bool\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_number8 , {\n \"number8\" , \"h225.number8\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_255\" , HFILL }\n }\n , {\n & hf_h225_number16 , {\n \"number16\" , \"h225.number16\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_65535\" , HFILL }\n }\n , {\n & hf_h225_number32 , {\n \"number32\" , \"h225.number32\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_4294967295\" , HFILL }\n }\n , {\n & hf_h225_transport , {\n \"transport\" , \"h225.transport\" , FT_UINT32 , BASE_DEC , VALS ( h225_TransportAddress_vals ) , 0 , \"TransportAddress\" , HFILL }\n }\n , {\n & hf_h225_compound , {\n \"compound\" , \"h225.compound\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_SIZE_1_512_OF_EnumeratedParameter\" , HFILL }\n }\n , {\n & hf_h225_compound_item , {\n \"EnumeratedParameter\" , \"h225.EnumeratedParameter_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_nested , {\n \"nested\" , \"h225.nested\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_SIZE_1_16_OF_GenericData\" , HFILL }\n }\n , {\n & hf_h225_nested_item , {\n \"GenericData\" , \"h225.GenericData_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_replacementFeatureSet , {\n \"replacementFeatureSet\" , \"h225.replacementFeatureSet\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_sendAddress , {\n \"sendAddress\" , \"h225.sendAddress\" , FT_UINT32 , BASE_DEC , VALS ( h225_TransportAddress_vals ) , 0 , \"TransportAddress\" , HFILL }\n }\n , {\n & hf_h225_recvAddress , {\n \"recvAddress\" , \"h225.recvAddress\" , FT_UINT32 , BASE_DEC , VALS ( h225_TransportAddress_vals ) , 0 , \"TransportAddress\" , HFILL }\n }\n , {\n & hf_h225_rtpAddress , {\n \"rtpAddress\" , \"h225.rtpAddress_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"TransportChannelInfo\" , HFILL }\n }\n , {\n & hf_h225_rtcpAddress , {\n \"rtcpAddress\" , \"h225.rtcpAddress_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"TransportChannelInfo\" , HFILL }\n }\n , {\n & hf_h225_cname , {\n \"cname\" , \"h225.cname\" , FT_STRING , BASE_NONE , NULL , 0 , \"PrintableString\" , HFILL }\n }\n , {\n & hf_h225_ssrc , {\n \"ssrc\" , \"h225.ssrc\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_4294967295\" , HFILL }\n }\n , {\n & hf_h225_sessionId , {\n \"sessionId\" , \"h225.sessionId\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_255\" , HFILL }\n }\n , {\n & hf_h225_associatedSessionIds , {\n \"associatedSessionIds\" , \"h225.associatedSessionIds\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_associatedSessionIds_item , {\n \"associatedSessionIds item\" , \"h225.associatedSessionIds_item\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_255\" , HFILL }\n }\n , {\n & hf_h225_multicast_flg , {\n \"multicast\" , \"h225.multicast_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_gatekeeperBased , {\n \"gatekeeperBased\" , \"h225.gatekeeperBased_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_endpointBased , {\n \"endpointBased\" , \"h225.endpointBased_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_gatekeeperRequest , {\n \"gatekeeperRequest\" , \"h225.gatekeeperRequest_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_gatekeeperConfirm , {\n \"gatekeeperConfirm\" , \"h225.gatekeeperConfirm_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_gatekeeperReject , {\n \"gatekeeperReject\" , \"h225.gatekeeperReject_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_registrationRequest , {\n \"registrationRequest\" , \"h225.registrationRequest_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_registrationConfirm , {\n \"registrationConfirm\" , \"h225.registrationConfirm_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_registrationReject , {\n \"registrationReject\" , \"h225.registrationReject_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_unregistrationRequest , {\n \"unregistrationRequest\" , \"h225.unregistrationRequest_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_unregistrationConfirm , {\n \"unregistrationConfirm\" , \"h225.unregistrationConfirm_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_unregistrationReject , {\n \"unregistrationReject\" , \"h225.unregistrationReject_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_admissionRequest , {\n \"admissionRequest\" , \"h225.admissionRequest_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_admissionConfirm , {\n \"admissionConfirm\" , \"h225.admissionConfirm_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_admissionReject , {\n \"admissionReject\" , \"h225.admissionReject_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_bandwidthRequest , {\n \"bandwidthRequest\" , \"h225.bandwidthRequest_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_bandwidthConfirm , {\n \"bandwidthConfirm\" , \"h225.bandwidthConfirm_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_bandwidthReject , {\n \"bandwidthReject\" , \"h225.bandwidthReject_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_disengageRequest , {\n \"disengageRequest\" , \"h225.disengageRequest_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_disengageConfirm , {\n \"disengageConfirm\" , \"h225.disengageConfirm_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_disengageReject , {\n \"disengageReject\" , \"h225.disengageReject_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_locationRequest , {\n \"locationRequest\" , \"h225.locationRequest_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_locationConfirm , {\n \"locationConfirm\" , \"h225.locationConfirm_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_locationReject , {\n \"locationReject\" , \"h225.locationReject_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_infoRequest , {\n \"infoRequest\" , \"h225.infoRequest_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_infoRequestResponse , {\n \"infoRequestResponse\" , \"h225.infoRequestResponse_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_nonStandardMessage , {\n \"nonStandardMessage\" , \"h225.nonStandardMessage_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_unknownMessageResponse , {\n \"unknownMessageResponse\" , \"h225.unknownMessageResponse_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_requestInProgress , {\n \"requestInProgress\" , \"h225.requestInProgress_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_resourcesAvailableIndicate , {\n \"resourcesAvailableIndicate\" , \"h225.resourcesAvailableIndicate_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_resourcesAvailableConfirm , {\n \"resourcesAvailableConfirm\" , \"h225.resourcesAvailableConfirm_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_infoRequestAck , {\n \"infoRequestAck\" , \"h225.infoRequestAck_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_infoRequestNak , {\n \"infoRequestNak\" , \"h225.infoRequestNak_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_serviceControlIndication , {\n \"serviceControlIndication\" , \"h225.serviceControlIndication_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_serviceControlResponse , {\n \"serviceControlResponse\" , \"h225.serviceControlResponse_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_admissionConfirmSequence , {\n \"admissionConfirmSequence\" , \"h225.admissionConfirmSequence\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_AdmissionConfirm\" , HFILL }\n }\n , {\n & hf_h225_admissionConfirmSequence_item , {\n \"AdmissionConfirm\" , \"h225.AdmissionConfirm_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_requestSeqNum , {\n \"requestSeqNum\" , \"h225.requestSeqNum\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_gatekeeperRequest_rasAddress , {\n \"rasAddress\" , \"h225.rasAddress\" , FT_UINT32 , BASE_DEC , VALS ( h225_TransportAddress_vals ) , 0 , \"TransportAddress\" , HFILL }\n }\n , {\n & hf_h225_endpointAlias , {\n \"endpointAlias\" , \"h225.endpointAlias\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_AliasAddress\" , HFILL }\n }\n , {\n & hf_h225_endpointAlias_item , {\n \"AliasAddress\" , \"h225.AliasAddress\" , FT_UINT32 , BASE_DEC , VALS ( AliasAddress_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_alternateEndpoints , {\n \"alternateEndpoints\" , \"h225.alternateEndpoints\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_Endpoint\" , HFILL }\n }\n , {\n & hf_h225_alternateEndpoints_item , {\n \"Endpoint\" , \"h225.Endpoint_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_authenticationCapability , {\n \"authenticationCapability\" , \"h225.authenticationCapability\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_AuthenticationMechanism\" , HFILL }\n }\n , {\n & hf_h225_authenticationCapability_item , {\n \"AuthenticationMechanism\" , \"h225.AuthenticationMechanism\" , FT_UINT32 , BASE_DEC , VALS ( h235_AuthenticationMechanism_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_algorithmOIDs , {\n \"algorithmOIDs\" , \"h225.algorithmOIDs\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_algorithmOIDs_item , {\n \"algorithmOIDs item\" , \"h225.algorithmOIDs_item\" , FT_OID , BASE_NONE , NULL , 0 , \"OBJECT_IDENTIFIER\" , HFILL }\n }\n , {\n & hf_h225_integrity , {\n \"integrity\" , \"h225.integrity\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_IntegrityMechanism\" , HFILL }\n }\n , {\n & hf_h225_integrity_item , {\n \"IntegrityMechanism\" , \"h225.IntegrityMechanism\" , FT_UINT32 , BASE_DEC , VALS ( h225_IntegrityMechanism_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_integrityCheckValue , {\n \"integrityCheckValue\" , \"h225.integrityCheckValue_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"ICV\" , HFILL }\n }\n , {\n & hf_h225_supportsAltGK , {\n \"supportsAltGK\" , \"h225.supportsAltGK_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_supportsAssignedGK , {\n \"supportsAssignedGK\" , \"h225.supportsAssignedGK\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_assignedGatekeeper , {\n \"assignedGatekeeper\" , \"h225.assignedGatekeeper_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"AlternateGK\" , HFILL }\n }\n , {\n & hf_h225_gatekeeperConfirm_rasAddress , {\n \"rasAddress\" , \"h225.rasAddress\" , FT_UINT32 , BASE_DEC , VALS ( h225_TransportAddress_vals ) , 0 , \"TransportAddress\" , HFILL }\n }\n , {\n & hf_h225_authenticationMode , {\n \"authenticationMode\" , \"h225.authenticationMode\" , FT_UINT32 , BASE_DEC , VALS ( h235_AuthenticationMechanism_vals ) , 0 , \"AuthenticationMechanism\" , HFILL }\n }\n , {\n & hf_h225_rehomingModel , {\n \"rehomingModel\" , \"h225.rehomingModel\" , FT_UINT32 , BASE_DEC , VALS ( h225_RehomingModel_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_gatekeeperRejectReason , {\n \"rejectReason\" , \"h225.rejectReason\" , FT_UINT32 , BASE_DEC , VALS ( GatekeeperRejectReason_vals ) , 0 , \"GatekeeperRejectReason\" , HFILL }\n }\n , {\n & hf_h225_altGKInfo , {\n \"altGKInfo\" , \"h225.altGKInfo_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_resourceUnavailable , {\n \"resourceUnavailable\" , \"h225.resourceUnavailable_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_terminalExcluded , {\n \"terminalExcluded\" , \"h225.terminalExcluded_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_securityDenial , {\n \"securityDenial\" , \"h225.securityDenial_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_gkRej_securityError , {\n \"securityError\" , \"h225.securityError\" , FT_UINT32 , BASE_DEC , VALS ( h225_SecurityErrors_vals ) , 0 , \"SecurityErrors\" , HFILL }\n }\n , {\n & hf_h225_discoveryComplete , {\n \"discoveryComplete\" , \"h225.discoveryComplete\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_terminalType , {\n \"terminalType\" , \"h225.terminalType_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"EndpointType\" , HFILL }\n }\n , {\n & hf_h225_terminalAlias , {\n \"terminalAlias\" , \"h225.terminalAlias\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_AliasAddress\" , HFILL }\n }\n , {\n & hf_h225_terminalAlias_item , {\n \"AliasAddress\" , \"h225.AliasAddress\" , FT_UINT32 , BASE_DEC , VALS ( AliasAddress_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_endpointVendor , {\n \"endpointVendor\" , \"h225.endpointVendor_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"VendorIdentifier\" , HFILL }\n }\n , {\n & hf_h225_timeToLive , {\n \"timeToLive\" , \"h225.timeToLive\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_keepAlive , {\n \"keepAlive\" , \"h225.keepAlive\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_willSupplyUUIEs , {\n \"willSupplyUUIEs\" , \"h225.willSupplyUUIEs\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_additiveRegistration , {\n \"additiveRegistration\" , \"h225.additiveRegistration_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_terminalAliasPattern , {\n \"terminalAliasPattern\" , \"h225.terminalAliasPattern\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_AddressPattern\" , HFILL }\n }\n , {\n & hf_h225_terminalAliasPattern_item , {\n \"AddressPattern\" , \"h225.AddressPattern\" , FT_UINT32 , BASE_DEC , VALS ( h225_AddressPattern_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_usageReportingCapability , {\n \"usageReportingCapability\" , \"h225.usageReportingCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"RasUsageInfoTypes\" , HFILL }\n }\n , {\n & hf_h225_supportedH248Packages , {\n \"supportedH248Packages\" , \"h225.supportedH248Packages\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_H248PackagesDescriptor\" , HFILL }\n }\n , {\n & hf_h225_supportedH248Packages_item , {\n \"H248PackagesDescriptor\" , \"h225.H248PackagesDescriptor\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_callCreditCapability , {\n \"callCreditCapability\" , \"h225.callCreditCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_capacityReportingCapability , {\n \"capacityReportingCapability\" , \"h225.capacityReportingCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_restart , {\n \"restart\" , \"h225.restart_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_supportsACFSequences , {\n \"supportsACFSequences\" , \"h225.supportsACFSequences_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_transportQOS , {\n \"transportQOS\" , \"h225.transportQOS\" , FT_UINT32 , BASE_DEC , VALS ( h225_TransportQOS_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_willRespondToIRR , {\n \"willRespondToIRR\" , \"h225.willRespondToIRR\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_preGrantedARQ , {\n \"preGrantedARQ\" , \"h225.preGrantedARQ_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_makeCall , {\n \"makeCall\" , \"h225.makeCall\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_useGKCallSignalAddressToMakeCall , {\n \"useGKCallSignalAddressToMakeCall\" , \"h225.useGKCallSignalAddressToMakeCall\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_answerCall , {\n \"answerCall\" , \"h225.answerCall\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_useGKCallSignalAddressToAnswer , {\n \"useGKCallSignalAddressToAnswer\" , \"h225.useGKCallSignalAddressToAnswer\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_irrFrequencyInCall , {\n \"irrFrequencyInCall\" , \"h225.irrFrequencyInCall\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_65535\" , HFILL }\n }\n , {\n & hf_h225_totalBandwidthRestriction , {\n \"totalBandwidthRestriction\" , \"h225.totalBandwidthRestriction\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"BandWidth\" , HFILL }\n }\n , {\n & hf_h225_useSpecifiedTransport , {\n \"useSpecifiedTransport\" , \"h225.useSpecifiedTransport\" , FT_UINT32 , BASE_DEC , VALS ( h225_UseSpecifiedTransport_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_supportsAdditiveRegistration , {\n \"supportsAdditiveRegistration\" , \"h225.supportsAdditiveRegistration_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_usageSpec , {\n \"usageSpec\" , \"h225.usageSpec\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_RasUsageSpecification\" , HFILL }\n }\n , {\n & hf_h225_usageSpec_item , {\n \"RasUsageSpecification\" , \"h225.RasUsageSpecification_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_featureServerAlias , {\n \"featureServerAlias\" , \"h225.featureServerAlias\" , FT_UINT32 , BASE_DEC , VALS ( AliasAddress_vals ) , 0 , \"AliasAddress\" , HFILL }\n }\n , {\n & hf_h225_capacityReportingSpec , {\n \"capacityReportingSpec\" , \"h225.capacityReportingSpec_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"CapacityReportingSpecification\" , HFILL }\n }\n , {\n & hf_h225_registrationRejectReason , {\n \"rejectReason\" , \"h225.rejectReason\" , FT_UINT32 , BASE_DEC , VALS ( RegistrationRejectReason_vals ) , 0 , \"RegistrationRejectReason\" , HFILL }\n }\n , {\n & hf_h225_discoveryRequired , {\n \"discoveryRequired\" , \"h225.discoveryRequired_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_invalidCallSignalAddress , {\n \"invalidCallSignalAddress\" , \"h225.invalidCallSignalAddress_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_invalidRASAddress , {\n \"invalidRASAddress\" , \"h225.invalidRASAddress_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_duplicateAlias , {\n \"duplicateAlias\" , \"h225.duplicateAlias\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_AliasAddress\" , HFILL }\n }\n , {\n & hf_h225_duplicateAlias_item , {\n \"AliasAddress\" , \"h225.AliasAddress\" , FT_UINT32 , BASE_DEC , VALS ( AliasAddress_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_invalidTerminalType , {\n \"invalidTerminalType\" , \"h225.invalidTerminalType_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_transportNotSupported , {\n \"transportNotSupported\" , \"h225.transportNotSupported_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_transportQOSNotSupported , {\n \"transportQOSNotSupported\" , \"h225.transportQOSNotSupported_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_invalidAlias , {\n \"invalidAlias\" , \"h225.invalidAlias_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_fullRegistrationRequired , {\n \"fullRegistrationRequired\" , \"h225.fullRegistrationRequired_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_additiveRegistrationNotSupported , {\n \"additiveRegistrationNotSupported\" , \"h225.additiveRegistrationNotSupported_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_invalidTerminalAliases , {\n \"invalidTerminalAliases\" , \"h225.invalidTerminalAliases_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_reg_securityError , {\n \"securityError\" , \"h225.securityError\" , FT_UINT32 , BASE_DEC , VALS ( h225_SecurityErrors_vals ) , 0 , \"SecurityErrors\" , HFILL }\n }\n , {\n & hf_h225_registerWithAssignedGK , {\n \"registerWithAssignedGK\" , \"h225.registerWithAssignedGK_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_unregRequestReason , {\n \"reason\" , \"h225.reason\" , FT_UINT32 , BASE_DEC , VALS ( UnregRequestReason_vals ) , 0 , \"UnregRequestReason\" , HFILL }\n }\n , {\n & hf_h225_endpointAliasPattern , {\n \"endpointAliasPattern\" , \"h225.endpointAliasPattern\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_AddressPattern\" , HFILL }\n }\n , {\n & hf_h225_endpointAliasPattern_item , {\n \"AddressPattern\" , \"h225.AddressPattern\" , FT_UINT32 , BASE_DEC , VALS ( h225_AddressPattern_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_reregistrationRequired , {\n \"reregistrationRequired\" , \"h225.reregistrationRequired_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_ttlExpired , {\n \"ttlExpired\" , \"h225.ttlExpired_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_maintenance , {\n \"maintenance\" , \"h225.maintenance_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_securityError , {\n \"securityError\" , \"h225.securityError\" , FT_UINT32 , BASE_DEC , VALS ( h225_SecurityErrors2_vals ) , 0 , \"SecurityErrors2\" , HFILL }\n }\n , {\n & hf_h225_unregRejectReason , {\n \"rejectReason\" , \"h225.rejectReason\" , FT_UINT32 , BASE_DEC , VALS ( UnregRejectReason_vals ) , 0 , \"UnregRejectReason\" , HFILL }\n }\n , {\n & hf_h225_notCurrentlyRegistered , {\n \"notCurrentlyRegistered\" , \"h225.notCurrentlyRegistered_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_callInProgress , {\n \"callInProgress\" , \"h225.callInProgress_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_permissionDenied , {\n \"permissionDenied\" , \"h225.permissionDenied_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_callModel , {\n \"callModel\" , \"h225.callModel\" , FT_UINT32 , BASE_DEC , VALS ( h225_CallModel_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_DestinationInfo_item , {\n \"DestinationInfo item\" , \"h225.DestinationInfo_item\" , FT_UINT32 , BASE_DEC , VALS ( AliasAddress_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_destinationInfo_01 , {\n \"destinationInfo\" , \"h225.destinationInfo\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_srcInfo , {\n \"srcInfo\" , \"h225.srcInfo\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_AliasAddress\" , HFILL }\n }\n , {\n & hf_h225_srcInfo_item , {\n \"AliasAddress\" , \"h225.AliasAddress\" , FT_UINT32 , BASE_DEC , VALS ( AliasAddress_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_srcCallSignalAddress , {\n \"srcCallSignalAddress\" , \"h225.srcCallSignalAddress\" , FT_UINT32 , BASE_DEC , VALS ( h225_TransportAddress_vals ) , 0 , \"TransportAddress\" , HFILL }\n }\n , {\n & hf_h225_bandWidth , {\n \"bandWidth\" , \"h225.bandWidth\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_callReferenceValue , {\n \"callReferenceValue\" , \"h225.callReferenceValue\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_canMapAlias , {\n \"canMapAlias\" , \"h225.canMapAlias\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_srcAlternatives , {\n \"srcAlternatives\" , \"h225.srcAlternatives\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_Endpoint\" , HFILL }\n }\n , {\n & hf_h225_srcAlternatives_item , {\n \"Endpoint\" , \"h225.Endpoint_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_destAlternatives , {\n \"destAlternatives\" , \"h225.destAlternatives\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_Endpoint\" , HFILL }\n }\n , {\n & hf_h225_destAlternatives_item , {\n \"Endpoint\" , \"h225.Endpoint_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_gatewayDataRate , {\n \"gatewayDataRate\" , \"h225.gatewayDataRate_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"DataRate\" , HFILL }\n }\n , {\n & hf_h225_desiredTunnelledProtocol , {\n \"desiredTunnelledProtocol\" , \"h225.desiredTunnelledProtocol_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"TunnelledProtocol\" , HFILL }\n }\n , {\n & hf_h225_canMapSrcAlias , {\n \"canMapSrcAlias\" , \"h225.canMapSrcAlias\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_pointToPoint , {\n \"pointToPoint\" , \"h225.pointToPoint_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_oneToN , {\n \"oneToN\" , \"h225.oneToN_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_nToOne , {\n \"nToOne\" , \"h225.nToOne_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_nToN , {\n \"nToN\" , \"h225.nToN_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_direct , {\n \"direct\" , \"h225.direct_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_gatekeeperRouted , {\n \"gatekeeperRouted\" , \"h225.gatekeeperRouted_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_endpointControlled , {\n \"endpointControlled\" , \"h225.endpointControlled_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_gatekeeperControlled , {\n \"gatekeeperControlled\" , \"h225.gatekeeperControlled_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_noControl , {\n \"noControl\" , \"h225.noControl_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_qOSCapabilities , {\n \"qOSCapabilities\" , \"h225.qOSCapabilities\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_SIZE_1_256_OF_QOSCapability\" , HFILL }\n }\n , {\n & hf_h225_qOSCapabilities_item , {\n \"QOSCapability\" , \"h225.QOSCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_irrFrequency , {\n \"irrFrequency\" , \"h225.irrFrequency\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_65535\" , HFILL }\n }\n , {\n & hf_h225_destinationType , {\n \"destinationType\" , \"h225.destinationType_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"EndpointType\" , HFILL }\n }\n , {\n & hf_h225_uuiesRequested , {\n \"uuiesRequested\" , \"h225.uuiesRequested_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_supportedProtocols , {\n \"supportedProtocols\" , \"h225.supportedProtocols\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_SupportedProtocols\" , HFILL }\n }\n , {\n & hf_h225_supportedProtocols_item , {\n \"SupportedProtocols\" , \"h225.SupportedProtocols\" , FT_UINT32 , BASE_DEC , VALS ( h225_SupportedProtocols_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_modifiedSrcInfo , {\n \"modifiedSrcInfo\" , \"h225.modifiedSrcInfo\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_AliasAddress\" , HFILL }\n }\n , {\n & hf_h225_modifiedSrcInfo_item , {\n \"AliasAddress\" , \"h225.AliasAddress\" , FT_UINT32 , BASE_DEC , VALS ( AliasAddress_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_setup_bool , {\n \"setup\" , \"h225.setup\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_callProceeding_flg , {\n \"callProceeding\" , \"h225.callProceeding\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_connect_bool , {\n \"connect\" , \"h225.connect\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_alerting_bool , {\n \"alerting\" , \"h225.alerting\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_information_bool , {\n \"information\" , \"h225.information\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_releaseComplete_bool , {\n \"releaseComplete\" , \"h225.releaseComplete\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_facility_bool , {\n \"facility\" , \"h225.facility\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_progress_bool , {\n \"progress\" , \"h225.progress\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_empty , {\n \"empty\" , \"h225.empty\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_status_bool , {\n \"status\" , \"h225.status\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_statusInquiry_bool , {\n \"statusInquiry\" , \"h225.statusInquiry\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_setupAcknowledge_bool , {\n \"setupAcknowledge\" , \"h225.setupAcknowledge\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_notify_bool , {\n \"notify\" , \"h225.notify\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_rejectReason , {\n \"rejectReason\" , \"h225.rejectReason\" , FT_UINT32 , BASE_DEC , VALS ( AdmissionRejectReason_vals ) , 0 , \"AdmissionRejectReason\" , HFILL }\n }\n , {\n & hf_h225_invalidPermission , {\n \"invalidPermission\" , \"h225.invalidPermission_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_requestDenied , {\n \"requestDenied\" , \"h225.requestDenied_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_invalidEndpointIdentifier , {\n \"invalidEndpointIdentifier\" , \"h225.invalidEndpointIdentifier_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_qosControlNotSupported , {\n \"qosControlNotSupported\" , \"h225.qosControlNotSupported_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_incompleteAddress , {\n \"incompleteAddress\" , \"h225.incompleteAddress_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_aliasesInconsistent , {\n \"aliasesInconsistent\" , \"h225.aliasesInconsistent_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_routeCallToSCN , {\n \"routeCallToSCN\" , \"h225.routeCallToSCN\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_PartyNumber\" , HFILL }\n }\n , {\n & hf_h225_routeCallToSCN_item , {\n \"PartyNumber\" , \"h225.PartyNumber\" , FT_UINT32 , BASE_DEC , VALS ( h225_PartyNumber_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_exceedsCallCapacity , {\n \"exceedsCallCapacity\" , \"h225.exceedsCallCapacity_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_collectDestination , {\n \"collectDestination\" , \"h225.collectDestination_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_collectPIN , {\n \"collectPIN\" , \"h225.collectPIN_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_noRouteToDestination , {\n \"noRouteToDestination\" , \"h225.noRouteToDestination_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_unallocatedNumber , {\n \"unallocatedNumber\" , \"h225.unallocatedNumber_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_answeredCall , {\n \"answeredCall\" , \"h225.answeredCall\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_usageInformation , {\n \"usageInformation\" , \"h225.usageInformation_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"RasUsageInformation\" , HFILL }\n }\n , {\n & hf_h225_bandwidthDetails , {\n \"bandwidthDetails\" , \"h225.bandwidthDetails\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_BandwidthDetails\" , HFILL }\n }\n , {\n & hf_h225_bandwidthDetails_item , {\n \"BandwidthDetails\" , \"h225.BandwidthDetails_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_bandRejectReason , {\n \"rejectReason\" , \"h225.rejectReason\" , FT_UINT32 , BASE_DEC , VALS ( BandRejectReason_vals ) , 0 , \"BandRejectReason\" , HFILL }\n }\n , {\n & hf_h225_allowedBandWidth , {\n \"allowedBandWidth\" , \"h225.allowedBandWidth\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"BandWidth\" , HFILL }\n }\n , {\n & hf_h225_notBound , {\n \"notBound\" , \"h225.notBound_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_invalidConferenceID , {\n \"invalidConferenceID\" , \"h225.invalidConferenceID_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_insufficientResources , {\n \"insufficientResources\" , \"h225.insufficientResources_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_replyAddress , {\n \"replyAddress\" , \"h225.replyAddress\" , FT_UINT32 , BASE_DEC , VALS ( h225_TransportAddress_vals ) , 0 , \"TransportAddress\" , HFILL }\n }\n , {\n & hf_h225_sourceInfo , {\n \"sourceInfo\" , \"h225.sourceInfo\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_AliasAddress\" , HFILL }\n }\n , {\n & hf_h225_sourceInfo_item , {\n \"AliasAddress\" , \"h225.AliasAddress\" , FT_UINT32 , BASE_DEC , VALS ( AliasAddress_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_hopCount , {\n \"hopCount\" , \"h225.hopCount\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_255\" , HFILL }\n }\n , {\n & hf_h225_sourceEndpointInfo , {\n \"sourceEndpointInfo\" , \"h225.sourceEndpointInfo\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_AliasAddress\" , HFILL }\n }\n , {\n & hf_h225_sourceEndpointInfo_item , {\n \"AliasAddress\" , \"h225.AliasAddress\" , FT_UINT32 , BASE_DEC , VALS ( AliasAddress_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_locationConfirm_callSignalAddress , {\n \"callSignalAddress\" , \"h225.callSignalAddress\" , FT_UINT32 , BASE_DEC , VALS ( h225_TransportAddress_vals ) , 0 , \"TransportAddress\" , HFILL }\n }\n , {\n & hf_h225_locationConfirm_rasAddress , {\n \"rasAddress\" , \"h225.rasAddress\" , FT_UINT32 , BASE_DEC , VALS ( h225_TransportAddress_vals ) , 0 , \"TransportAddress\" , HFILL }\n }\n , {\n & hf_h225_locationRejectReason , {\n \"rejectReason\" , \"h225.rejectReason\" , FT_UINT32 , BASE_DEC , VALS ( LocationRejectReason_vals ) , 0 , \"LocationRejectReason\" , HFILL }\n }\n , {\n & hf_h225_notRegistered , {\n \"notRegistered\" , \"h225.notRegistered_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_routeCalltoSCN , {\n \"routeCalltoSCN\" , \"h225.routeCalltoSCN\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_PartyNumber\" , HFILL }\n }\n , {\n & hf_h225_routeCalltoSCN_item , {\n \"PartyNumber\" , \"h225.PartyNumber\" , FT_UINT32 , BASE_DEC , VALS ( h225_PartyNumber_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_disengageReason , {\n \"disengageReason\" , \"h225.disengageReason\" , FT_UINT32 , BASE_DEC , VALS ( DisengageReason_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_terminationCause , {\n \"terminationCause\" , \"h225.terminationCause\" , FT_UINT32 , BASE_DEC , VALS ( h225_CallTerminationCause_vals ) , 0 , \"CallTerminationCause\" , HFILL }\n }\n , {\n & hf_h225_forcedDrop , {\n \"forcedDrop\" , \"h225.forcedDrop_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_normalDrop , {\n \"normalDrop\" , \"h225.normalDrop_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_disengageRejectReason , {\n \"rejectReason\" , \"h225.rejectReason\" , FT_UINT32 , BASE_DEC , VALS ( DisengageRejectReason_vals ) , 0 , \"DisengageRejectReason\" , HFILL }\n }\n , {\n & hf_h225_requestToDropOther , {\n \"requestToDropOther\" , \"h225.requestToDropOther_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_usageInfoRequested , {\n \"usageInfoRequested\" , \"h225.usageInfoRequested_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"RasUsageInfoTypes\" , HFILL }\n }\n , {\n & hf_h225_segmentedResponseSupported , {\n \"segmentedResponseSupported\" , \"h225.segmentedResponseSupported_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_nextSegmentRequested , {\n \"nextSegmentRequested\" , \"h225.nextSegmentRequested\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_65535\" , HFILL }\n }\n , {\n & hf_h225_capacityInfoRequested , {\n \"capacityInfoRequested\" , \"h225.capacityInfoRequested_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_infoRequestResponse_rasAddress , {\n \"rasAddress\" , \"h225.rasAddress\" , FT_UINT32 , BASE_DEC , VALS ( h225_TransportAddress_vals ) , 0 , \"TransportAddress\" , HFILL }\n }\n , {\n & hf_h225_perCallInfo , {\n \"perCallInfo\" , \"h225.perCallInfo\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_perCallInfo_item , {\n \"perCallInfo item\" , \"h225.perCallInfo_item_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_originator , {\n \"originator\" , \"h225.originator\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_audio , {\n \"audio\" , \"h225.audio\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_RTPSession\" , HFILL }\n }\n , {\n & hf_h225_audio_item , {\n \"RTPSession\" , \"h225.RTPSession_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_video , {\n \"video\" , \"h225.video\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_RTPSession\" , HFILL }\n }\n , {\n & hf_h225_video_item , {\n \"RTPSession\" , \"h225.RTPSession_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_data , {\n \"data\" , \"h225.data\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_TransportChannelInfo\" , HFILL }\n }\n , {\n & hf_h225_data_item , {\n \"TransportChannelInfo\" , \"h225.TransportChannelInfo_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_h245 , {\n \"h245\" , \"h225.h245_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"TransportChannelInfo\" , HFILL }\n }\n , {\n & hf_h225_callSignalling , {\n \"callSignalling\" , \"h225.callSignalling_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"TransportChannelInfo\" , HFILL }\n }\n , {\n & hf_h225_substituteConfIDs , {\n \"substituteConfIDs\" , \"h225.substituteConfIDs\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_ConferenceIdentifier\" , HFILL }\n }\n , {\n & hf_h225_substituteConfIDs_item , {\n \"ConferenceIdentifier\" , \"h225.ConferenceIdentifier\" , FT_GUID , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_pdu , {\n \"pdu\" , \"h225.pdu\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_pdu_item , {\n \"pdu item\" , \"h225.pdu_item_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_h323pdu , {\n \"h323pdu\" , \"h225.h323pdu_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"H323_UU_PDU\" , HFILL }\n }\n , {\n & hf_h225_sent , {\n \"sent\" , \"h225.sent\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_needResponse , {\n \"needResponse\" , \"h225.needResponse\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_irrStatus , {\n \"irrStatus\" , \"h225.irrStatus\" , FT_UINT32 , BASE_DEC , VALS ( h225_InfoRequestResponseStatus_vals ) , 0 , \"InfoRequestResponseStatus\" , HFILL }\n }\n , {\n & hf_h225_unsolicited , {\n \"unsolicited\" , \"h225.unsolicited\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_complete , {\n \"complete\" , \"h225.complete_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_incomplete , {\n \"incomplete\" , \"h225.incomplete_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_segment , {\n \"segment\" , \"h225.segment\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_65535\" , HFILL }\n }\n , {\n & hf_h225_invalidCall , {\n \"invalidCall\" , \"h225.invalidCall_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_nakReason , {\n \"nakReason\" , \"h225.nakReason\" , FT_UINT32 , BASE_DEC , VALS ( InfoRequestNakReason_vals ) , 0 , \"InfoRequestNakReason\" , HFILL }\n }\n , {\n & hf_h225_messageNotUnderstood , {\n \"messageNotUnderstood\" , \"h225.messageNotUnderstood\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING\" , HFILL }\n }\n , {\n & hf_h225_delay , {\n \"delay\" , \"h225.delay\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_65535\" , HFILL }\n }\n , {\n & hf_h225_protocols , {\n \"protocols\" , \"h225.protocols\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_SupportedProtocols\" , HFILL }\n }\n , {\n & hf_h225_protocols_item , {\n \"SupportedProtocols\" , \"h225.SupportedProtocols\" , FT_UINT32 , BASE_DEC , VALS ( h225_SupportedProtocols_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_almostOutOfResources , {\n \"almostOutOfResources\" , \"h225.almostOutOfResources\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h225_callSpecific , {\n \"callSpecific\" , \"h225.callSpecific_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_result , {\n \"result\" , \"h225.result\" , FT_UINT32 , BASE_DEC , VALS ( h225_T_result_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_started , {\n \"started\" , \"h225.started_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_failed , {\n \"failed\" , \"h225.failed_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_stopped , {\n \"stopped\" , \"h225.stopped_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h225_notAvailable , {\n \"notAvailable\" , \"h225.notAvailable_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , # line 843 \"./asn1/h225/packet-h225-template.c\" }\n ;\n static gint * ett [ ] = {\n & ett_h225 , # line 1 \"./asn1/h225/packet-h225-ettarr.c\" & ett_h225_H323_UserInformation , & ett_h225_T_user_data , & ett_h225_H323_UU_PDU , & ett_h225_T_h323_message_body , & ett_h225_T_h4501SupplementaryService , & ett_h225_H245Control , & ett_h225_SEQUENCE_OF_NonStandardParameter , & ett_h225_T_tunnelledSignallingMessage , & ett_h225_T_messageContent , & ett_h225_SEQUENCE_OF_GenericData , & ett_h225_StimulusControl , & ett_h225_Alerting_UUIE , & ett_h225_SEQUENCE_OF_ClearToken , & ett_h225_SEQUENCE_OF_CryptoH323Token , & ett_h225_SEQUENCE_OF_AliasAddress , & ett_h225_SEQUENCE_OF_ServiceControlSession , & ett_h225_SEQUENCE_OF_DisplayName , & ett_h225_CallProceeding_UUIE , & ett_h225_Connect_UUIE , & ett_h225_Information_UUIE , & ett_h225_ReleaseComplete_UUIE , & ett_h225_ReleaseCompleteReason , & ett_h225_Setup_UUIE , & ett_h225_SEQUENCE_OF_CallReferenceValue , & ett_h225_T_conferenceGoal , & ett_h225_SEQUENCE_OF_H245Security , & ett_h225_FastStart , & ett_h225_T_connectionParameters , & ett_h225_Language , & ett_h225_SEQUENCE_OF_SupportedProtocols , & ett_h225_SEQUENCE_OF_FeatureDescriptor , & ett_h225_ParallelH245Control , & ett_h225_SEQUENCE_OF_ExtendedAliasAddress , & ett_h225_ScnConnectionType , & ett_h225_ScnConnectionAggregation , & ett_h225_PresentationIndicator , & ett_h225_Facility_UUIE , & ett_h225_SEQUENCE_OF_ConferenceList , & ett_h225_ConferenceList , & ett_h225_FacilityReason , & ett_h225_Progress_UUIE , & ett_h225_TransportAddress , & ett_h225_H245TransportAddress , & ett_h225_T_h245IpAddress , & ett_h225_T_h245IpSourceRoute , & ett_h225_T_h245Route , & ett_h225_T_h245Routing , & ett_h225_T_h245IpxAddress , & ett_h225_T_h245Ip6Address , & ett_h225_T_ipAddress , & ett_h225_T_ipSourceRoute , & ett_h225_T_route , & ett_h225_T_routing , & ett_h225_T_ipxAddress , & ett_h225_T_ip6Address , & ett_h225_Status_UUIE , & ett_h225_StatusInquiry_UUIE , & ett_h225_SetupAcknowledge_UUIE , & ett_h225_Notify_UUIE , & ett_h225_EndpointType , & ett_h225_SEQUENCE_OF_TunnelledProtocol , & ett_h225_GatewayInfo , & ett_h225_SupportedProtocols , & ett_h225_H310Caps , & ett_h225_SEQUENCE_OF_DataRate , & ett_h225_SEQUENCE_OF_SupportedPrefix , & ett_h225_H320Caps , & ett_h225_H321Caps , & ett_h225_H322Caps , & ett_h225_H323Caps , & ett_h225_H324Caps , & ett_h225_VoiceCaps , & ett_h225_T120OnlyCaps , & ett_h225_NonStandardProtocol , & ett_h225_T38FaxAnnexbOnlyCaps , & ett_h225_SIPCaps , & ett_h225_McuInfo , & ett_h225_TerminalInfo , & ett_h225_GatekeeperInfo , & ett_h225_VendorIdentifier , & ett_h225_H221NonStandard , & ett_h225_TunnelledProtocol , & ett_h225_TunnelledProtocol_id , & ett_h225_TunnelledProtocolAlternateIdentifier , & ett_h225_NonStandardParameter , & ett_h225_NonStandardIdentifier , & ett_h225_AliasAddress , & ett_h225_AddressPattern , & ett_h225_T_range , & ett_h225_PartyNumber , & ett_h225_PublicPartyNumber , & ett_h225_PrivatePartyNumber , & ett_h225_DisplayName , & ett_h225_PublicTypeOfNumber , & ett_h225_PrivateTypeOfNumber , & ett_h225_MobileUIM , & ett_h225_ANSI_41_UIM , & ett_h225_T_system_id , & ett_h225_GSM_UIM , & ett_h225_IsupNumber , & ett_h225_IsupPublicPartyNumber , & ett_h225_IsupPrivatePartyNumber , & ett_h225_NatureOfAddress , & ett_h225_ExtendedAliasAddress , & ett_h225_Endpoint , & ett_h225_SEQUENCE_OF_TransportAddress , & ett_h225_AlternateTransportAddresses , & ett_h225_UseSpecifiedTransport , & ett_h225_AlternateGK , & ett_h225_AltGKInfo , & ett_h225_SEQUENCE_OF_AlternateGK , & ett_h225_SecurityServiceMode , & ett_h225_SecurityCapabilities , & ett_h225_SecurityErrors , & ett_h225_SecurityErrors2 , & ett_h225_H245Security , & ett_h225_QseriesOptions , & ett_h225_Q954Details , & ett_h225_CallIdentifier , & ett_h225_EncryptIntAlg , & ett_h225_NonIsoIntegrityMechanism , & ett_h225_IntegrityMechanism , & ett_h225_ICV , & ett_h225_CryptoH323Token , & ett_h225_T_cryptoEPPwdHash , & ett_h225_T_cryptoGKPwdHash , & ett_h225_DataRate , & ett_h225_CallLinkage , & ett_h225_SupportedPrefix , & ett_h225_CapacityReportingCapability , & ett_h225_CapacityReportingSpecification , & ett_h225_CapacityReportingSpecification_when , & ett_h225_CallCapacity , & ett_h225_CallCapacityInfo , & ett_h225_SEQUENCE_OF_CallsAvailable , & ett_h225_CallsAvailable , & ett_h225_CircuitInfo , & ett_h225_CircuitIdentifier , & ett_h225_CicInfo , & ett_h225_T_cic_2_4 , & ett_h225_GroupID , & ett_h225_T_member , & ett_h225_CarrierInfo , & ett_h225_ServiceControlDescriptor , & ett_h225_ServiceControlSession , & ett_h225_ServiceControlSession_reason , & ett_h225_RasUsageInfoTypes , & ett_h225_RasUsageSpecification , & ett_h225_RasUsageSpecification_when , & ett_h225_RasUsageSpecificationcallStartingPoint , & ett_h225_RasUsageInformation , & ett_h225_CallTerminationCause , & ett_h225_BandwidthDetails , & ett_h225_CallCreditCapability , & ett_h225_CallCreditServiceControl , & ett_h225_T_billingMode , & ett_h225_CallCreditServiceControl_callStartingPoint , & ett_h225_GenericData , & ett_h225_SEQUENCE_SIZE_1_512_OF_EnumeratedParameter , & ett_h225_GenericIdentifier , & ett_h225_EnumeratedParameter , & ett_h225_Content , & ett_h225_SEQUENCE_SIZE_1_16_OF_GenericData , & ett_h225_FeatureSet , & ett_h225_TransportChannelInfo , & ett_h225_RTPSession , & ett_h225_T_associatedSessionIds , & ett_h225_RehomingModel , & ett_h225_RasMessage , & ett_h225_SEQUENCE_OF_AdmissionConfirm , & ett_h225_GatekeeperRequest , & ett_h225_SEQUENCE_OF_Endpoint , & ett_h225_SEQUENCE_OF_AuthenticationMechanism , & ett_h225_T_algorithmOIDs , & ett_h225_SEQUENCE_OF_IntegrityMechanism , & ett_h225_GatekeeperConfirm , & ett_h225_GatekeeperReject , & ett_h225_GatekeeperRejectReason , & ett_h225_RegistrationRequest , & ett_h225_SEQUENCE_OF_AddressPattern , & ett_h225_SEQUENCE_OF_H248PackagesDescriptor , & ett_h225_RegistrationConfirm , & ett_h225_T_preGrantedARQ , & ett_h225_SEQUENCE_OF_RasUsageSpecification , & ett_h225_RegistrationReject , & ett_h225_RegistrationRejectReason , & ett_h225_T_invalidTerminalAliases , & ett_h225_UnregistrationRequest , & ett_h225_UnregRequestReason , & ett_h225_UnregistrationConfirm , & ett_h225_UnregistrationReject , & ett_h225_UnregRejectReason , & ett_h225_AdmissionRequest , & ett_h225_DestinationInfo , & ett_h225_CallType , & ett_h225_CallModel , & ett_h225_TransportQOS , & ett_h225_SEQUENCE_SIZE_1_256_OF_QOSCapability , & ett_h225_AdmissionConfirm , & ett_h225_UUIEsRequested , & ett_h225_AdmissionReject , & ett_h225_AdmissionRejectReason , & ett_h225_SEQUENCE_OF_PartyNumber , & ett_h225_BandwidthRequest , & ett_h225_SEQUENCE_OF_BandwidthDetails , & ett_h225_BandwidthConfirm , & ett_h225_BandwidthReject , & ett_h225_BandRejectReason , & ett_h225_LocationRequest , & ett_h225_LocationConfirm , & ett_h225_LocationReject , & ett_h225_LocationRejectReason , & ett_h225_DisengageRequest , & ett_h225_DisengageReason , & ett_h225_DisengageConfirm , & ett_h225_DisengageReject , & ett_h225_DisengageRejectReason , & ett_h225_InfoRequest , & ett_h225_InfoRequestResponse , & ett_h225_T_perCallInfo , & ett_h225_T_perCallInfo_item , & ett_h225_SEQUENCE_OF_RTPSession , & ett_h225_SEQUENCE_OF_TransportChannelInfo , & ett_h225_SEQUENCE_OF_ConferenceIdentifier , & ett_h225_T_pdu , & ett_h225_T_pdu_item , & ett_h225_InfoRequestResponseStatus , & ett_h225_InfoRequestAck , & ett_h225_InfoRequestNak , & ett_h225_InfoRequestNakReason , & ett_h225_NonStandardMessage , & ett_h225_UnknownMessageResponse , & ett_h225_RequestInProgress , & ett_h225_ResourcesAvailableIndicate , & ett_h225_ResourcesAvailableConfirm , & ett_h225_ServiceControlIndication , & ett_h225_T_callSpecific , & ett_h225_ServiceControlResponse , & ett_h225_T_result , # line 849 \"./asn1/h225/packet-h225-template.c\" }\n ;\n static tap_param h225_stat_params [ ] = {\n {\n PARAM_FILTER , \"filter\" , \"Filter\" , NULL , TRUE }\n }\n ;\n static stat_tap_table_ui h225_stat_table = {\n REGISTER_STAT_GROUP_TELEPHONY , \"H.225\" , PFNAME , \"h225,counter\" , h225_stat_init , h225_stat_packet , h225_stat_reset , NULL , NULL , sizeof ( h225_stat_fields ) / sizeof ( stat_tap_table_item ) , h225_stat_fields , sizeof ( h225_stat_params ) / sizeof ( tap_param ) , h225_stat_params , NULL , 0 }\n ;\n module_t * h225_module ;\n int proto_h225_ras ;\n proto_h225 = proto_register_protocol ( PNAME , PSNAME , PFNAME ) ;\n proto_h225_ras = proto_register_protocol ( \"H.225 RAS\" , \"H.225 RAS\" , \"h225_ras\" ) ;\n proto_register_field_array ( proto_h225 , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n h225_module = prefs_register_protocol ( proto_h225 , proto_reg_handoff_h225 ) ;\n prefs_register_uint_preference ( h225_module , \"tls.port\" , \"H.225 TLS Port\" , \"H.225 Server TLS Port\" , 10 , & h225_tls_port ) ;\n prefs_register_bool_preference ( h225_module , \"reassembly\" , \"Reassemble H.225 messages spanning multiple TCP segments\" , \"Whether the H.225 dissector should reassemble messages spanning multiple TCP segments.\" \" To use this option, you must also enable \\\"Allow subdissectors to reassemble TCP streams\\\" in the TCP protocol settings.\" , & h225_reassembly ) ;\n prefs_register_bool_preference ( h225_module , \"h245_in_tree\" , \"Display tunnelled H.245 inside H.225.0 tree\" , \"ON - display tunnelled H.245 inside H.225.0 tree, OFF - display tunnelled H.245 in root tree after H.225.0\" , & h225_h245_in_tree ) ;\n prefs_register_bool_preference ( h225_module , \"tp_in_tree\" , \"Display tunnelled protocols inside H.225.0 tree\" , \"ON - display tunnelled protocols inside H.225.0 tree, OFF - display tunnelled protocols in root tree after H.225.0\" , & h225_tp_in_tree ) ;\n register_dissector ( PFNAME , dissect_h225_H323UserInformation , proto_h225 ) ;\n register_dissector ( \"h323ui\" , dissect_h225_H323UserInformation , proto_h225 ) ;\n h225ras_handle = register_dissector ( \"h225.ras\" , dissect_h225_h225_RasMessage , proto_h225 ) ;\n nsp_object_dissector_table = register_dissector_table ( \"h225.nsp.object\" , \"H.225 NonStandardParameter (object)\" , proto_h225 , FT_STRING , BASE_NONE , DISSECTOR_TABLE_ALLOW_DUPLICATE ) ;\n nsp_h221_dissector_table = register_dissector_table ( \"h225.nsp.h221\" , \"H.225 NonStandardParameter (h221)\" , proto_h225 , FT_UINT32 , BASE_HEX , DISSECTOR_TABLE_ALLOW_DUPLICATE ) ;\n tp_dissector_table = register_dissector_table ( \"h225.tp\" , \"H.225 TunnelledProtocol\" , proto_h225 , FT_STRING , BASE_NONE , DISSECTOR_TABLE_ALLOW_DUPLICATE ) ;\n gef_name_dissector_table = register_dissector_table ( \"h225.gef.name\" , \"H.225 Generic Extensible Framework (names)\" , proto_h225 , FT_STRING , BASE_NONE , DISSECTOR_TABLE_ALLOW_DUPLICATE ) ;\n gef_content_dissector_table = register_dissector_table ( \"h225.gef.content\" , \"H.225 Generic Extensible Framework\" , proto_h225 , FT_STRING , BASE_NONE , DISSECTOR_TABLE_ALLOW_DUPLICATE ) ;\n register_init_routine ( & h225_init_routine ) ;\n register_cleanup_routine ( & h225_cleanup_routine ) ;\n h225_tap = register_tap ( PFNAME ) ;\n register_rtd_table ( proto_h225_ras , PFNAME , NUM_RAS_STATS , 1 , ras_message_category , h225rassrt_packet , NULL ) ;\n register_stat_tap_table_ui ( & h225_stat_table ) ;\n oid_add_from_string ( \"Version 1\" , \"0.0.8.2250.0.1\" ) ;\n oid_add_from_string ( \"Version 2\" , \"0.0.8.2250.0.2\" ) ;\n oid_add_from_string ( \"Version 3\" , \"0.0.8.2250.0.3\" ) ;\n oid_add_from_string ( \"Version 4\" , \"0.0.8.2250.0.4\" ) ;\n oid_add_from_string ( \"Version 5\" , \"0.0.8.2250.0.5\" ) ;\n oid_add_from_string ( \"Version 6\" , \"0.0.8.2250.0.6\" ) ;\n }"}
{"idx": 2090, "target": 0, "func": "static int libgsm_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n int i , ret ;\n LibGSMDecodeContext * s = avctx -> priv_data ;\n AVFrame * frame = data ;\n uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n int16_t * samples ;\n if ( buf_size < avctx -> block_align ) {\n av_log ( avctx , AV_LOG_ERROR , \"Packet is too small\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n frame -> nb_samples = avctx -> frame_size ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n samples = ( int16_t * ) frame -> data [ 0 ] ;\n for ( i = 0 ;\n i < avctx -> frame_size / GSM_FRAME_SIZE ;\n i ++ ) {\n if ( ( ret = gsm_decode ( s -> state , buf , samples ) ) < 0 ) return - 1 ;\n buf += GSM_BLOCK_SIZE ;\n samples += GSM_FRAME_SIZE ;\n }\n * got_frame_ptr = 1 ;\n return avctx -> block_align ;\n }"}
{"idx": 2091, "target": 0, "func": "static Int decGetDigits ( Unit * uar , Int len ) {\n Unit * up = uar + ( len - 1 ) ;\n Int digits = ( len - 1 ) * DECDPUN + 1 ;\n # if DECDPUN > 4 uInt const * pow ;\n # endif # if DECCHECK if ( len < 1 ) printf ( \"decGetDigits called with len<1 [%ld]\\n\" , ( LI ) len ) ;\n # endif for ( ;\n up >= uar ;\n up -- ) {\n if ( * up == 0 ) {\n if ( digits == 1 ) break ;\n digits -= DECDPUN ;\n continue ;\n }\n # if DECDPUN > 1 if ( * up < 10 ) break ;\n digits ++ ;\n # if DECDPUN > 2 if ( * up < 100 ) break ;\n digits ++ ;\n # if DECDPUN > 3 if ( * up < 1000 ) break ;\n digits ++ ;\n # if DECDPUN > 4 for ( pow = & powers [ 4 ] ;\n * up >= * pow ;\n pow ++ ) digits ++ ;\n # endif # endif # endif # endif break ;\n }\n return digits ;\n }"}
{"idx": 2092, "target": 0, "func": "static inline const guint8 * get_string_value ( wmem_allocator_t * scope , tvbuff_t * tvb , gint start , gint length , gint * ret_length , const guint encoding ) {\n if ( length == - 1 ) {\n length = tvb_ensure_captured_length_remaining ( tvb , start ) ;\n }\n * ret_length = length ;\n return tvb_get_string_enc ( scope , tvb , start , length , encoding ) ;\n }"}
{"idx": 2093, "target": 0, "func": "int test_sqr ( BIO * bp , BN_CTX * ctx ) {\n BIGNUM * a , * c , * d , * e ;\n int i , ret = 0 ;\n a = BN_new ( ) ;\n c = BN_new ( ) ;\n d = BN_new ( ) ;\n e = BN_new ( ) ;\n if ( a == NULL || c == NULL || d == NULL || e == NULL ) {\n goto err ;\n }\n for ( i = 0 ;\n i < num0 ;\n i ++ ) {\n BN_bntest_rand ( a , 40 + i * 10 , 0 , 0 ) ;\n a -> neg = rand_neg ( ) ;\n BN_sqr ( c , a , ctx ) ;\n if ( bp != NULL ) {\n if ( ! results ) {\n BN_print ( bp , a ) ;\n BIO_puts ( bp , \" * \" ) ;\n BN_print ( bp , a ) ;\n BIO_puts ( bp , \" - \" ) ;\n }\n BN_print ( bp , c ) ;\n BIO_puts ( bp , \"\\n\" ) ;\n }\n BN_div ( d , e , c , a , ctx ) ;\n BN_sub ( d , d , a ) ;\n if ( ! BN_is_zero ( d ) || ! BN_is_zero ( e ) ) {\n fprintf ( stderr , \"Square test failed!\\n\" ) ;\n goto err ;\n }\n }\n BN_hex2bn ( & a , \"80000000000000008000000000000001FFFFFFFFFFFFFFFE0000000000000000\" ) ;\n BN_sqr ( c , a , ctx ) ;\n if ( bp != NULL ) {\n if ( ! results ) {\n BN_print ( bp , a ) ;\n BIO_puts ( bp , \" * \" ) ;\n BN_print ( bp , a ) ;\n BIO_puts ( bp , \" - \" ) ;\n }\n BN_print ( bp , c ) ;\n BIO_puts ( bp , \"\\n\" ) ;\n }\n BN_mul ( d , a , a , ctx ) ;\n if ( BN_cmp ( c , d ) ) {\n fprintf ( stderr , \"Square test failed: BN_sqr and BN_mul produce \" \"different results!\\n\" ) ;\n goto err ;\n }\n BN_hex2bn ( & a , \"80000000000000000000000080000001FFFFFFFE000000000000000000000000\" ) ;\n BN_sqr ( c , a , ctx ) ;\n if ( bp != NULL ) {\n if ( ! results ) {\n BN_print ( bp , a ) ;\n BIO_puts ( bp , \" * \" ) ;\n BN_print ( bp , a ) ;\n BIO_puts ( bp , \" - \" ) ;\n }\n BN_print ( bp , c ) ;\n BIO_puts ( bp , \"\\n\" ) ;\n }\n BN_mul ( d , a , a , ctx ) ;\n if ( BN_cmp ( c , d ) ) {\n fprintf ( stderr , \"Square test failed: BN_sqr and BN_mul produce \" \"different results!\\n\" ) ;\n goto err ;\n }\n ret = 1 ;\n err : if ( a != NULL ) BN_free ( a ) ;\n if ( c != NULL ) BN_free ( c ) ;\n if ( d != NULL ) BN_free ( d ) ;\n if ( e != NULL ) BN_free ( e ) ;\n return ret ;\n }"}
{"idx": 2094, "target": 0, "func": "static char * parse_encoded_word ( char * str , enum ContentEncoding * enc , char * * charset , size_t * charsetlen , char * * text , size_t * textlen ) {\n static struct Regex * re = NULL ;\n regmatch_t match [ 4 ] ;\n size_t nmatch = 4 ;\n if ( re == NULL ) {\n re = mutt_regex_compile ( \"=\\\\?\" \"([^][()<>@,;\n:\\\\\\\"/?. =]+)\" \"\\\\?\" \"([qQbB])\" \"\\\\?\" \"([^?]+)\" \"\\\\?=\" , REG_EXTENDED ) ;\n assert ( re && \"Something is wrong with your RE engine.\" ) ;\n }\n int rc = regexec ( re -> regex , str , nmatch , match , 0 ) ;\n if ( rc != 0 ) return NULL ;\n * charset = str + match [ 1 ] . rm_so ;\n * charsetlen = match [ 1 ] . rm_eo - match [ 1 ] . rm_so ;\n * enc = ( ( str [ match [ 2 ] . rm_so ] == 'Q' ) || ( str [ match [ 2 ] . rm_so ] == 'q' ) ) ? ENCQUOTEDPRINTABLE : ENCBASE64 ;\n * text = str + match [ 3 ] . rm_so ;\n * textlen = match [ 3 ] . rm_eo - match [ 3 ] . rm_so ;\n return ( str + match [ 0 ] . rm_so ) ;\n }"}
{"idx": 2095, "target": 0, "func": "void proto_register_dns ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_dns_length , {\n \"Length\" , \"dns.length\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Length of DNS-over-TCP request or response\" , HFILL }\n }\n , {\n & hf_dns_flags , {\n \"Flags\" , \"dns.flags\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_flags_response , {\n \"Response\" , \"dns.flags.response\" , FT_BOOLEAN , 16 , TFS ( & tfs_flags_response ) , F_RESPONSE , \"Is the message a response?\" , HFILL }\n }\n , {\n & hf_dns_flags_opcode , {\n \"Opcode\" , \"dns.flags.opcode\" , FT_UINT16 , BASE_DEC , VALS ( opcode_vals ) , F_OPCODE , \"Operation code\" , HFILL }\n }\n , {\n & hf_dns_flags_authoritative , {\n \"Authoritative\" , \"dns.flags.authoritative\" , FT_BOOLEAN , 16 , TFS ( & tfs_flags_authoritative ) , F_AUTHORITATIVE , \"Is the server is an authority for the domain?\" , HFILL }\n }\n , {\n & hf_dns_flags_conflict_query , {\n \"Conflict\" , \"dns.flags.conflict\" , FT_BOOLEAN , 16 , TFS ( & tfs_flags_conflict_query ) , F_CONFLICT , \"Did we receive multiple responses to a query?\" , HFILL }\n }\n , {\n & hf_dns_flags_conflict_response , {\n \"Conflict\" , \"dns.flags.conflict\" , FT_BOOLEAN , 16 , TFS ( & tfs_flags_conflict_response ) , F_CONFLICT , \"Is the name considered unique?\" , HFILL }\n }\n , {\n & hf_dns_flags_truncated , {\n \"Truncated\" , \"dns.flags.truncated\" , FT_BOOLEAN , 16 , TFS ( & tfs_flags_truncated ) , F_TRUNCATED , \"Is the message truncated?\" , HFILL }\n }\n , {\n & hf_dns_flags_recdesired , {\n \"Recursion desired\" , \"dns.flags.recdesired\" , FT_BOOLEAN , 16 , TFS ( & tfs_flags_recdesired ) , F_RECDESIRED , \"Do query recursively?\" , HFILL }\n }\n , {\n & hf_dns_flags_tentative , {\n \"Tentative\" , \"dns.flags.tentative\" , FT_BOOLEAN , 16 , TFS ( & tfs_flags_tentative ) , F_TENTATIVE , \"Is the responder authoritative for the name, but not yet verified the uniqueness?\" , HFILL }\n }\n , {\n & hf_dns_flags_recavail , {\n \"Recursion available\" , \"dns.flags.recavail\" , FT_BOOLEAN , 16 , TFS ( & tfs_flags_recavail ) , F_RECAVAIL , \"Can the server do recursive queries?\" , HFILL }\n }\n , {\n & hf_dns_flags_z , {\n \"Z\" , \"dns.flags.z\" , FT_BOOLEAN , 16 , TFS ( & tfs_flags_z ) , F_Z , \"Z flag\" , HFILL }\n }\n , {\n & hf_dns_flags_authenticated , {\n \"Answer authenticated\" , \"dns.flags.authenticated\" , FT_BOOLEAN , 16 , TFS ( & tfs_flags_authenticated ) , F_AUTHENTIC , \"Was the reply data authenticated by the server?\" , HFILL }\n }\n , {\n & hf_dns_flags_ad , {\n \"AD bit\" , \"dns.flags.authenticated\" , FT_BOOLEAN , 16 , TFS ( & tfs_set_notset ) , F_AUTHENTIC , NULL , HFILL }\n }\n , {\n & hf_dns_flags_checkdisable , {\n \"Non-authenticated data\" , \"dns.flags.checkdisable\" , FT_BOOLEAN , 16 , TFS ( & tfs_flags_checkdisable ) , F_CHECKDISABLE , \"Is non-authenticated data acceptable?\" , HFILL }\n }\n , {\n & hf_dns_flags_rcode , {\n \"Reply code\" , \"dns.flags.rcode\" , FT_UINT16 , BASE_DEC , VALS ( rcode_vals ) , F_RCODE , NULL , HFILL }\n }\n , {\n & hf_dns_transaction_id , {\n \"Transaction ID\" , \"dns.id\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , \"Identification of transaction\" , HFILL }\n }\n , {\n & hf_dns_qry_type , {\n \"Type\" , \"dns.qry.type\" , FT_UINT16 , BASE_DEC | BASE_EXT_STRING , & dns_types_description_vals_ext , 0 , \"Query Type\" , HFILL }\n }\n , {\n & hf_dns_qry_class , {\n \"Class\" , \"dns.qry.class\" , FT_UINT16 , BASE_HEX , VALS ( dns_classes ) , 0x0 , \"Query Class\" , HFILL }\n }\n , {\n & hf_dns_qry_class_mdns , {\n \"Class\" , \"dns.qry.class\" , FT_UINT16 , BASE_HEX , VALS ( dns_classes ) , 0x7FFF , \"Query Class\" , HFILL }\n }\n , {\n & hf_dns_qry_qu , {\n \"\\\"QU\\\" question\" , \"dns.qry.qu\" , FT_BOOLEAN , 16 , NULL , C_QU , \"QU flag\" , HFILL }\n }\n , {\n & hf_dns_qry_name , {\n \"Name\" , \"dns.qry.name\" , FT_STRING , BASE_NONE , NULL , 0x0 , \"Query Name\" , HFILL }\n }\n , {\n & hf_dns_qry_name_len , {\n \"Name Length\" , \"dns.qry.name.len\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Query Name Len\" , HFILL }\n }\n , {\n & hf_dns_count_labels , {\n \"Label Count\" , \"dns.count.labels\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Query Label Count\" , HFILL }\n }\n , {\n & hf_dns_rr_type , {\n \"Type\" , \"dns.resp.type\" , FT_UINT16 , BASE_DEC | BASE_EXT_STRING , & dns_types_description_vals_ext , 0x0 , \"Response Type\" , HFILL }\n }\n , {\n & hf_dns_rr_class , {\n \"Class\" , \"dns.resp.class\" , FT_UINT16 , BASE_HEX , VALS ( dns_classes ) , 0x0 , \"Response Class\" , HFILL }\n }\n , {\n & hf_dns_rr_class_mdns , {\n \"Class\" , \"dns.resp.class\" , FT_UINT16 , BASE_HEX , VALS ( dns_classes ) , 0x7FFF , \"Response Class\" , HFILL }\n }\n , {\n & hf_dns_rr_cache_flush , {\n \"Cache flush\" , \"dns.resp.cache_flush\" , FT_BOOLEAN , 16 , NULL , C_FLUSH , \"Cache flush flag\" , HFILL }\n }\n , {\n & hf_dns_rr_ext_rcode , {\n \"Higher bits in extended RCODE\" , \"dns.resp.ext_rcode\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_rr_edns0_version , {\n \"EDNS0 version\" , \"dns.resp.edns0_version\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_rr_z , {\n \"Z\" , \"dns.resp.z\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_rr_z_do , {\n \"DO bit\" , \"dns.resp.z.do\" , FT_BOOLEAN , 16 , TFS ( & tfs_dns_rr_z_do ) , 0x8000 , \"DNSSEC OK\" , HFILL }\n }\n , {\n & hf_dns_rr_z_reserved , {\n \"Reserved\" , \"dns.resp.z.reserved\" , FT_UINT16 , BASE_HEX , NULL , 0x7FFF , NULL , HFILL }\n }\n , {\n & hf_dns_srv_service , {\n \"Service\" , \"dns.srv.service\" , FT_STRING , BASE_NONE , NULL , 0x0 , \"Desired service\" , HFILL }\n }\n , {\n & hf_dns_srv_proto , {\n \"Protocol\" , \"dns.srv.proto\" , FT_STRING , BASE_NONE , NULL , 0x0 , \"Desired protocol\" , HFILL }\n }\n , {\n & hf_dns_srv_name , {\n \"Name\" , \"dns.srv.name\" , FT_STRING , BASE_NONE , NULL , 0x0 , \"Domain this resource record refers to\" , HFILL }\n }\n , {\n & hf_dns_srv_priority , {\n \"Priority\" , \"dns.srv.priority\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_srv_weight , {\n \"Weight\" , \"dns.srv.weight\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_srv_port , {\n \"Port\" , \"dns.srv.port\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_srv_target , {\n \"Target\" , \"dns.srv.target\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_naptr_order , {\n \"Order\" , \"dns.naptr.order\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_naptr_preference , {\n \"Preference\" , \"dns.naptr.preference\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_naptr_flags_length , {\n \"Flags Length\" , \"dns.naptr.flags_length\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_naptr_flags , {\n \"Flags\" , \"dns.naptr.flags\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_naptr_service_length , {\n \"Service Length\" , \"dns.naptr.service_length\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_naptr_service , {\n \"Service\" , \"dns.naptr.service\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_naptr_regex_length , {\n \"Regex Length\" , \"dns.naptr.regex_length\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_naptr_regex , {\n \"Regex\" , \"dns.naptr.regex\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_naptr_replacement_length , {\n \"Replacement Length\" , \"dns.naptr.replacement_length\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_naptr_replacement , {\n \"Replacement\" , \"dns.naptr.replacement\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_rr_name , {\n \"Name\" , \"dns.resp.name\" , FT_STRING , BASE_NONE , NULL , 0x0 , \"Response Name\" , HFILL }\n }\n , {\n & hf_dns_rr_ttl , {\n \"Time to live\" , \"dns.resp.ttl\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"Response TTL\" , HFILL }\n }\n , {\n & hf_dns_rr_len , {\n \"Data length\" , \"dns.resp.len\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"Response Length\" , HFILL }\n }\n , {\n & hf_dns_a , {\n \"Address\" , \"dns.a\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , \"Response Address\" , HFILL }\n }\n , {\n & hf_dns_md , {\n \"Mail Destination\" , \"dns.md\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_mf , {\n \"Mail Forwarder\" , \"dns.mf\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_mb , {\n \"MailBox Domaine\" , \"dns.mb\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_mg , {\n \"Mail Group member\" , \"dns.mg\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_mr , {\n \"Mail Rename domaine\" , \"dns.mr\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_null , {\n \"Null (data)\" , \"dns.null\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_aaaa , {\n \"AAAA Address\" , \"dns.aaaa\" , FT_IPv6 , BASE_NONE , NULL , 0x0 , \"AAAA Response Address\" , HFILL }\n }\n , {\n & hf_dns_cname , {\n \"CNAME\" , \"dns.cname\" , FT_STRING , BASE_NONE , NULL , 0x0 , \"Response Primary Name\" , HFILL }\n }\n , {\n & hf_dns_rr_udp_payload_size_mdns , {\n \"UDP payload size\" , \"dns.rr.udp_payload_size\" , FT_UINT16 , BASE_HEX , NULL , 0x7FFF , NULL , HFILL }\n }\n , {\n & hf_dns_rr_udp_payload_size , {\n \"UDP payload size\" , \"dns.rr.udp_payload_size\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_soa_mname , {\n \"Primary name server\" , \"dns.soa.mname\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_soa_rname , {\n \"Responsible authority's mailbox\" , \"dns.soa.rname\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_soa_serial_number , {\n \"Serial Number\" , \"dns.soa.serial_number\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_soa_refresh_interval , {\n \"Refresh Interval\" , \"dns.soa.refresh_interval\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_soa_retry_interval , {\n \"Retry Interval\" , \"dns.soa.retry_interval\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_soa_expire_limit , {\n \"Expire limit\" , \"dns.soa.expire_limit\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_soa_minimum_ttl , {\n \"Minimum TTL\" , \"dns.soa.mininum_ttl\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_ptr_domain_name , {\n \"Domain Name\" , \"dns.ptr.domain_name\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_wks_address , {\n \"Address\" , \"dns.wks.address\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_wks_protocol , {\n \"Protocol\" , \"dns.wks.protocol\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & ipproto_val_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_wks_bits , {\n \"Bits\" , \"dns.wks.bits\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_hinfo_cpu_length , {\n \"CPU Length\" , \"dns.hinfo.cpu_length\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_hinfo_cpu , {\n \"CPU\" , \"dns.hinfo.cpu\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_hinfo_os_length , {\n \"OS Length\" , \"dns.hinfo.os_length\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_hinfo_os , {\n \"OS\" , \"dns.hinfo.os\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_minfo_r_mailbox , {\n \"Responsible Mailbox\" , \"dns.minfo.r\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_minfo_e_mailbox , {\n \"Error Mailbox\" , \"dns.minfo.e\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_mx_preference , {\n \"Preference\" , \"dns.mx.preference\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_mx_mail_exchange , {\n \"Mail Exchange\" , \"dns.mx.mail_exchange\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_txt_length , {\n \"TXT Length\" , \"dns.txt.length\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_txt , {\n \"TXT\" , \"dns.txt\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_openpgpkey , {\n \"OpenPGP Key\" , \"dns.openpgpkey\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_spf_length , {\n \"SPF Length\" , \"dns.spf.length\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_spf , {\n \"SPF\" , \"dns.spf\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_ilnp_nodeid_preference , {\n \"Preference\" , \"dns.ilnp.nid.preference\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_ilnp_nodeid , {\n \"NodeID\" , \"dns.ilnp.nid\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_ilnp_locator32_preference , {\n \"Preference\" , \"dns.ilnp.l32.preference\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_ilnp_locator32 , {\n \"Locator32\" , \"dns.ilnp.l32\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_ilnp_locator64_preference , {\n \"Preference\" , \"dns.ilnp.l64.preference\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_ilnp_locator64 , {\n \"Locator64\" , \"dns.ilnp.l64\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_ilnp_locatorfqdn_preference , {\n \"Preference\" , \"dns.ilnp.lp.preference\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_ilnp_locatorfqdn , {\n \"Locator FQDN\" , \"dns.ilnp.lp\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_eui48 , {\n \"EUI48 Address\" , \"dns.eui48\" , FT_ETHER , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_eui64 , {\n \"EUI64 Address\" , \"dns.eui64\" , FT_EUI64 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_rrsig_type_covered , {\n \"Type Covered\" , \"dns.rrsig.type_covered\" , FT_UINT16 , BASE_DEC | BASE_EXT_STRING , & dns_types_description_vals_ext , 0x0 , \"Identifies the type of the RRset that is covered by this RRSIG record\" , HFILL }\n }\n , {\n & hf_dns_rrsig_algorithm , {\n \"Algorithm\" , \"dns.rrsig.algorithm\" , FT_UINT8 , BASE_DEC , VALS ( dnssec_algo_vals ) , 0x0 , \"Identifies the cryptographic algorithm used to create the signature\" , HFILL }\n }\n , {\n & hf_dns_rrsig_labels , {\n \"Labels\" , \"dns.rrsig.labels\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , \"Specifies the number of labels in the original RRSIG RR owner name\" , HFILL }\n }\n , {\n & hf_dns_rrsig_original_ttl , {\n \"Original TTL\" , \"dns.rrsig.original_ttl\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"Specifies the TTL of the covered RRset as it appears in the authoritative zone\" , HFILL }\n }\n , {\n & hf_dns_rrsig_signature_expiration , {\n \"Signature Expiration\" , \"dns.rrsig.signature_expiration\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_LOCAL , NULL , 0x0 , \"Specify a validity period for the signature\" , HFILL }\n }\n , {\n & hf_dns_rrsig_signature_inception , {\n \"Signature Inception\" , \"dns.rrsig.signature_inception\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_LOCAL , NULL , 0x0 , \"Specify a validity period for the signature\" , HFILL }\n }\n , {\n & hf_dns_rrsig_key_tag , {\n \"Key Tag\" , \"dns.rrsig.key_tag\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Contains the key tag value of the DNSKEY RR that validates this signature\" , HFILL }\n }\n , {\n & hf_dns_rrsig_signers_name , {\n \"Signer's name\" , \"dns.rrsig.signers_name\" , FT_STRING , BASE_NONE , NULL , 0x0 , \"Identifies the owner name of the DNSKEY RR that a validator is supposed to use to validate this signature\" , HFILL }\n }\n , {\n & hf_dns_rrsig_signature , {\n \"Signature\" , \"dns.rrsig.signature\" , FT_BYTES , BASE_NONE , NULL , 0x0 , \"Contains the cryptographic signature that covers the RRSIG RDATA\" , HFILL }\n }\n , {\n & hf_dns_dnskey_flags , {\n \"Flags\" , \"dns.dnskey.flags\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_dnskey_flags_zone_key , {\n \"Zone Key\" , \"dns.dnskey.flags.zone_key\" , FT_BOOLEAN , 16 , TFS ( & dns_dnskey_zone_key_tfs ) , DNSKEY_FLAGS_ZK , NULL , HFILL }\n }\n , {\n & hf_dns_dnskey_flags_key_revoked , {\n \"Key Revoked\" , \"dns.dnskey.flags.key_revoked\" , FT_BOOLEAN , 16 , TFS ( & tfs_yes_no ) , DNSKEY_FLAGS_KR , NULL , HFILL }\n }\n , {\n & hf_dns_dnskey_flags_secure_entry_point , {\n \"Key Signing Key\" , \"dns.dnskey.flags.secure_entry_point\" , FT_BOOLEAN , 16 , TFS ( & tfs_yes_no ) , DNSKEY_FLAGS_SEP , NULL , HFILL }\n }\n , {\n & hf_dns_dnskey_flags_reserved , {\n \"Key Signing Key\" , \"dns.dnskey.flags.reserved\" , FT_UINT16 , BASE_HEX , NULL , DNSKEY_FLAGS_RSV , \"Must be zero\" , HFILL }\n }\n , {\n & hf_dns_dnskey_protocol , {\n \"Protocol\" , \"dns.dnskey.protocol\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , \"Must be 3\" , HFILL }\n }\n , {\n & hf_dns_dnskey_algorithm , {\n \"Algorithm\" , \"dns.dnskey.algorithm\" , FT_UINT8 , BASE_DEC , VALS ( dnssec_algo_vals ) , 0x0 , \"Identifies the public key's cryptographic algorithm and determines the format of the Public Key field\" , HFILL }\n }\n , {\n & hf_dns_dnskey_key_id , {\n \"Key id\" , \"dns.dnskey.key_id\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_dnskey_public_key , {\n \"Public Key\" , \"dns.dnskey.public_key\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_key_flags , {\n \"Flags\" , \"dns.key.flags\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_key_flags_authentication , {\n \"Key allowed for authentication\" , \"dns.key.flags.authentication\" , FT_BOOLEAN , 16 , TFS ( & tfs_not_allowed_allowed ) , 0x8000 , NULL , HFILL }\n }\n , {\n & hf_dns_key_flags_confidentiality , {\n \"Key allowed for confidentiality\" , \"dns.key.flags.confidentiality\" , FT_BOOLEAN , 16 , TFS ( & tfs_not_allowed_allowed ) , 0x4000 , NULL , HFILL }\n }\n , {\n & hf_dns_key_flags_key_required , {\n \"Key required\" , \"dns.key.flags.required\" , FT_BOOLEAN , 16 , TFS ( & tfs_required_experimental ) , 0x2000 , NULL , HFILL }\n }\n , {\n & hf_dns_key_flags_associated_user , {\n \"Key is associated with a user\" , \"dns.key.flags.associated_user\" , FT_BOOLEAN , 16 , TFS ( & tfs_yes_no ) , 0x0400 , NULL , HFILL }\n }\n , {\n & hf_dns_key_flags_associated_named_entity , {\n \"Key is associated with the named entity\" , \"dns.key.flags.associated_named_entity\" , FT_BOOLEAN , 16 , TFS ( & tfs_yes_no ) , 0x0200 , NULL , HFILL }\n }\n , {\n & hf_dns_key_flags_ipsec , {\n \"Key use with IPSEC\" , \"dns.key.flags.ipsec\" , FT_BOOLEAN , 16 , TFS ( & tfs_valid_invalid ) , 0x0080 , NULL , HFILL }\n }\n , {\n & hf_dns_key_flags_mime , {\n \"Key use with MIME security multiparts\" , \"dns.key.flags.mime\" , FT_BOOLEAN , 16 , TFS ( & tfs_valid_invalid ) , 0x0040 , NULL , HFILL }\n }\n , {\n & hf_dns_key_flags_signatory , {\n \"Signatory\" , \"dns.key.flags.signatory\" , FT_UINT16 , BASE_DEC , NULL , 0x000F , NULL , HFILL }\n }\n , {\n & hf_dns_key_protocol , {\n \"Protocol\" , \"dns.key.protocol\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_key_algorithm , {\n \"Algorithm\" , \"dns.key.algorithm\" , FT_UINT8 , BASE_DEC , VALS ( dnssec_algo_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_key_key_id , {\n \"Key ID\" , \"dns.key.key_id\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_key_public_key , {\n \"Public Key\" , \"dns.key.public_key\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_px_preference , {\n \"Preference\" , \"dns.px.preference\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_px_map822 , {\n \"MAP822\" , \"dns.px.map822\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_px_mapx400 , {\n \"MAPX400\" , \"dns.px.map400\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_tkey_algo_name , {\n \"Algorithm name\" , \"dns.tkey.algo_name\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_tkey_signature_expiration , {\n \"Signature Expiration\" , \"dns.tkey.signature_expiration\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_LOCAL , NULL , 0x0 , \"Specify a validity period for the signature\" , HFILL }\n }\n , {\n & hf_dns_tkey_signature_inception , {\n \"Signature Inception\" , \"dns.tkey.signature_inception\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_LOCAL , NULL , 0x0 , \"Specify a validity period for the signature\" , HFILL }\n }\n , {\n & hf_dns_tkey_mode , {\n \"Mode\" , \"dns.tkey.mode\" , FT_UINT16 , BASE_DEC , VALS ( tkey_mode_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_tkey_error , {\n \"Error\" , \"dns.tkey.error\" , FT_UINT16 , BASE_DEC , VALS ( rcode_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_tkey_key_size , {\n \"Key Size\" , \"dns.tkey.key_size\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_tkey_key_data , {\n \"Key Data\" , \"dns.tkey.key_data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_tkey_other_size , {\n \"Other Size\" , \"dns.tkey.other_size\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_tkey_other_data , {\n \"Other Data\" , \"dns.tkey.other_data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_ipseckey_gateway_precedence , {\n \"Gateway Precedence\" , \"dns.ipseckey.gateway_precedence\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_ipseckey_gateway_algorithm , {\n \"Gateway Algorithm\" , \"dns.ipseckey.gateway_algorithm\" , FT_UINT8 , BASE_DEC , VALS ( gw_algo_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_ipseckey_gateway_type , {\n \"Gateway Type\" , \"dns.ipseckey.gateway_type\" , FT_UINT8 , BASE_DEC , VALS ( gw_type_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_ipseckey_gateway_ipv4 , {\n \"IPv4 Gateway\" , \"dns.ipseckey.gateway_ipv4\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_ipseckey_gateway_ipv6 , {\n \"IPv6 Gateway\" , \"dns.ipseckey.gateway_ipv6\" , FT_IPv6 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_ipseckey_gateway_dns , {\n \"DNS Gateway\" , \"dns.ipseckey.gateway_dns\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_ipseckey_public_key , {\n \"Public Key\" , \"dns.ipseckey.public_key\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_a6_prefix_len , {\n \"Prefix len\" , \"dns.a6.prefix_len\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_a6_address_suffix , {\n \"Address Suffix\" , \"dns.a6.address_suffix\" , FT_IPv6 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_a6_prefix_name , {\n \"Prefix name\" , \"dns.a6.prefix_name\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_dname , {\n \"Dname\" , \"dns.dname\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_loc_version , {\n \"Version\" , \"dns.loc.version\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_loc_size , {\n \"Size\" , \"dns.loc.size\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_loc_horizontal_precision , {\n \"Horizontal Precision\" , \"dns.loc.horizontal_precision\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_loc_vertical_precision , {\n \"Vertial Precision\" , \"dns.loc.vertial_precision\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_loc_latitude , {\n \"Latitude\" , \"dns.loc.latitude\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_loc_longitude , {\n \"Longitude\" , \"dns.loc.longitude\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_loc_altitude , {\n \"Altitude\" , \"dns.loc.altitude\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_loc_unknown_data , {\n \"Unknown data\" , \"dns.loc.unknown_data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_nxt_next_domain_name , {\n \"Next Domain Name\" , \"dns.nxt.next_domain_name\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_kx_preference , {\n \"Preference\" , \"dns.kx.preference\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_kx_key_exchange , {\n \"Key Exchange\" , \"dns.kx.key_exchange\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_cert_type , {\n \"Type\" , \"dns.cert.type\" , FT_UINT16 , BASE_DEC , VALS ( dns_cert_type_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_cert_key_tag , {\n \"Key Tag\" , \"dns.cert.key_tag\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_cert_algorithm , {\n \"Algorithm\" , \"dns.cert.algorithm\" , FT_UINT8 , BASE_DEC , VALS ( dnssec_algo_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_cert_certificate , {\n \"Certificate (or CRL)\" , \"dns.cert.certificate\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_nsec_next_domain_name , {\n \"Next Domain Name\" , \"dns.nsec.next_domain_name\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_ns , {\n \"Name Server\" , \"dns.ns\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_opt , {\n \"Option\" , \"dns.opt\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_opt_code , {\n \"Option Code\" , \"dns.opt.code\" , FT_UINT16 , BASE_DEC , VALS ( edns0_opt_code_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_opt_len , {\n \"Option Length\" , \"dns.opt.len\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_opt_data , {\n \"Option Data\" , \"dns.opt.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_opt_dau , {\n \"DAU\" , \"dns.opt.dau\" , FT_UINT8 , BASE_DEC , VALS ( dnssec_algo_vals ) , 0x0 , \"DNSSEC Algorithm Understood\" , HFILL }\n }\n , {\n & hf_dns_opt_dhu , {\n \"DHU\" , \"dns.opt.dhu\" , FT_UINT8 , BASE_DEC , VALS ( dns_ds_digest_vals ) , 0x0 , \"DS Hash Understood\" , HFILL }\n }\n , {\n & hf_dns_opt_n3u , {\n \"N3U\" , \"dns.opt.n3u\" , FT_UINT8 , BASE_DEC , VALS ( hash_algorithms ) , 0x0 , \"NSEC3 Hash Understood\" , HFILL }\n }\n , {\n & hf_dns_opt_client_family , {\n \"Family\" , \"dns.opt.client.family\" , FT_UINT16 , BASE_DEC , VALS ( afamily_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_opt_client_netmask , {\n \"Source Netmask\" , \"dns.opt.client.netmask\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_opt_client_scope , {\n \"Scope Netmask\" , \"dns.opt.client.scope\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_opt_client_addr , {\n \"Client Subnet\" , \"dns.opt.client.addr\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_opt_client_addr4 , {\n \"Client Subnet\" , \"dns.opt.client.addr4\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_opt_client_addr6 , {\n \"Client Subnet\" , \"dns.opt.client.addr6\" , FT_IPv6 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_count_questions , {\n \"Questions\" , \"dns.count.queries\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Number of queries in packet\" , HFILL }\n }\n , {\n & hf_dns_count_zones , {\n \"Zones\" , \"dns.count.zones\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Number of zones in packet\" , HFILL }\n }\n , {\n & hf_dns_count_answers , {\n \"Answer RRs\" , \"dns.count.answers\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Number of answers in packet\" , HFILL }\n }\n , {\n & hf_dns_count_prerequisites , {\n \"Prerequisites\" , \"dns.count.prerequisites\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Number of prerequisites in packet\" , HFILL }\n }\n , {\n & hf_dns_count_auth_rr , {\n \"Authority RRs\" , \"dns.count.auth_rr\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Number of authoritative records in packet\" , HFILL }\n }\n , {\n & hf_dns_count_updates , {\n \"Updates\" , \"dns.count.updates\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Number of updates records in packet\" , HFILL }\n }\n , {\n & hf_dns_nsec3_algo , {\n \"Hash algorithm\" , \"dns.nsec3.algo\" , FT_UINT8 , BASE_DEC , VALS ( hash_algorithms ) , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_nsec3_flags , {\n \"NSEC3 flags\" , \"dns.nsec3.flags\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_nsec3_flag_optout , {\n \"NSEC3 Opt-out flag\" , \"dns.nsec3.flags.opt_out\" , FT_BOOLEAN , 8 , TFS ( & tfs_flags_nsec3_optout ) , NSEC3_FLAG_OPTOUT , NULL , HFILL }\n }\n , {\n & hf_dns_nsec3_iterations , {\n \"NSEC3 iterations\" , \"dns.nsec3.iterations\" , FT_UINT16 , BASE_DEC , NULL , 0 , \"Number of hashing iterations\" , HFILL }\n }\n , {\n & hf_dns_nsec3_salt_length , {\n \"Salt length\" , \"dns.nsec3.salt_length\" , FT_UINT8 , BASE_DEC , NULL , 0 , \"Length of salt in bytes\" , HFILL }\n }\n , {\n & hf_dns_nsec3_salt_value , {\n \"Salt value\" , \"dns.nsec3.salt_value\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_nsec3_hash_length , {\n \"Hash length\" , \"dns.nsec3.hash_length\" , FT_UINT8 , BASE_DEC , NULL , 0 , \"Length in bytes of next hashed owner\" , HFILL }\n }\n , {\n & hf_dns_nsec3_hash_value , {\n \"Next hashed owner\" , \"dns.nsec3.hash_value\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_tlsa_certificate_usage , {\n \"Certificate Usage\" , \"dns.tlsa.certificate_usage\" , FT_UINT8 , BASE_DEC , VALS ( tlsa_certificate_usage_vals ) , 0 , \"Specifies the provided association that will be used to match the certificate presented in the TLS handshake\" , HFILL }\n }\n , {\n & hf_dns_tlsa_selector , {\n \"Selector\" , \"dns.tlsa.selector\" , FT_UINT8 , BASE_DEC , VALS ( tlsa_selector_vals ) , 0 , \"Specifies which part of the TLS certificate presented by the server will be matched against the association data\" , HFILL }\n }\n , {\n & hf_dns_tlsa_matching_type , {\n \"Matching Type\" , \"dns.tlsa.matching_type\" , FT_UINT8 , BASE_DEC , VALS ( tlsa_matching_type_vals ) , 0 , \"Specifies how the certificate association is presented\" , HFILL }\n }\n , {\n & hf_dns_tlsa_certificate_association_data , {\n \"Certificate Association Data\" , \"dns.tlsa.certificate_association_data\" , FT_BYTES , BASE_NONE , NULL , 0 , \"The data refers to the certificate in the association\" , HFILL }\n }\n , {\n & hf_dns_tsig_algorithm_name , {\n \"Algorithm Name\" , \"dns.tsig.algorithm_name\" , FT_STRING , BASE_NONE , NULL , 0x0 , \"Name of algorithm used for the MAC\" , HFILL }\n }\n , {\n & hf_dns_tsig_time_signed , {\n \"Time Signed\" , \"dns.tsig.time_signed\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_LOCAL , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_tsig_original_id , {\n \"Original Id\" , \"dns.tsig.original_id\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_tsig_error , {\n \"Error\" , \"dns.tsig.error\" , FT_UINT16 , BASE_DEC , VALS ( rcode_vals ) , 0x0 , \"Expanded RCODE for TSIG\" , HFILL }\n }\n , {\n & hf_dns_tsig_fudge , {\n \"Fudge\" , \"dns.tsig.fudge\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Number of bytes for the MAC\" , HFILL }\n }\n , {\n & hf_dns_tsig_mac_size , {\n \"MAC Size\" , \"dns.tsig.mac_size\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Number of bytes for the MAC\" , HFILL }\n }\n , {\n & hf_dns_tsig_other_len , {\n \"Other Len\" , \"dns.tsig.other_len\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Number of bytes for Other Data\" , HFILL }\n }\n , {\n & hf_dns_tsig_mac , {\n \"MAC\" , \"dns.tsig.mac\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_tsig_other_data , {\n \"Other Data\" , \"dns.tsig.other_data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_response_in , {\n \"Response In\" , \"dns.response_in\" , FT_FRAMENUM , BASE_NONE , NULL , 0x0 , \"The response to this DNS query is in this frame\" , HFILL }\n }\n , {\n & hf_dns_response_to , {\n \"Request In\" , \"dns.response_to\" , FT_FRAMENUM , BASE_NONE , NULL , 0x0 , \"This is a response to the DNS query in this frame\" , HFILL }\n }\n , {\n & hf_dns_time , {\n \"Time\" , \"dns.time\" , FT_RELATIVE_TIME , BASE_NONE , NULL , 0x0 , \"The time between the Query and the Response\" , HFILL }\n }\n , {\n & hf_dns_count_add_rr , {\n \"Additional RRs\" , \"dns.count.add_rr\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Number of additional records in packet\" , HFILL }\n }\n , {\n & hf_dns_sshfp_algorithm , {\n \"Algorithm\" , \"dns.sshfp.algorithm\" , FT_UINT8 , BASE_DEC , VALS ( sshfp_algo_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_sshfp_fingerprint_type , {\n \"Fingerprint type\" , \"dns.sshfp.fingerprint.type\" , FT_UINT8 , BASE_DEC , VALS ( sshfp_fingertype_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_sshfp_fingerprint , {\n \"Fingerprint\" , \"dns.sshfp.fingerprint\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_hip_hit_length , {\n \"HIT length\" , \"dns.hip.hit.length\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_hip_pk_algo , {\n \"HIT length\" , \"dns.hip.hit.pk.algo\" , FT_UINT8 , BASE_DEC , VALS ( hip_algo_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_hip_pk_length , {\n \"PK length\" , \"dns.hip.pk.length\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_hip_hit , {\n \"Host Identity Tag\" , \"dns.hip.hit\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_hip_pk , {\n \"HIP Public Key\" , \"dns.hip.pk\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_hip_rendezvous_server , {\n \"Rendezvous Server\" , \"dns.hip.rendezvous_server\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_dhcid_rdata , {\n \"DHCID Data\" , \"dns.dhcid.rdata\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_ds_key_id , {\n \"Key id\" , \"dns.ds.key_id\" , FT_UINT16 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_ds_algorithm , {\n \"Algorithm\" , \"dns.ds.algorithm\" , FT_UINT8 , BASE_DEC , VALS ( dnssec_algo_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_ds_digest_type , {\n \"Digest Type\" , \"dns.ds.digest_type\" , FT_UINT8 , BASE_DEC , VALS ( dns_ds_digest_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_ds_digest , {\n \"Digest\" , \"dns.ds.digest\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_apl_address_family , {\n \"Address Family\" , \"dns.apl.address_family\" , FT_UINT16 , BASE_DEC , VALS ( afamily_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_apl_coded_prefix , {\n \"Prefix Length\" , \"dns.apl.coded_prefix\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_apl_negation , {\n \"Negation Flag\" , \"dns.apl.negation\" , FT_BOOLEAN , 8 , TFS ( & tfs_dns_apl_negation ) , DNS_APL_NEGATION , NULL , HFILL }\n }\n , {\n & hf_dns_apl_afdlength , {\n \"Address Length\" , \"dns.apl.afdlength\" , FT_UINT8 , BASE_DEC , NULL , DNS_APL_AFDLENGTH , \"in octets\" , HFILL }\n }\n , {\n & hf_dns_apl_afdpart_ipv4 , {\n \"Address\" , \"dns.apl.afdpart.ipv4\" , FT_IPv4 , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_apl_afdpart_ipv6 , {\n \"Address\" , \"dns.apl.afdpart.ipv6\" , FT_IPv6 , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_apl_afdpart_data , {\n \"Address\" , \"dns.apl.afdpart.data\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_gpos_longitude_length , {\n \"Longitude length\" , \"dns.gpos.longitude_length\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_gpos_longitude , {\n \"Longitude\" , \"dns.gpos.longitude\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_gpos_latitude_length , {\n \"Latitude length\" , \"dns.gpos.latitude_length\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_gpos_latitude , {\n \"Latitude\" , \"dns.gpos.latitude\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_gpos_altitude_length , {\n \"Altitude length\" , \"dns.gpos.altitude_length\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_gpos_altitude , {\n \"Altitude\" , \"dns.gpos.altitude\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_rp_mailbox , {\n \"Mailbox\" , \"dns.rp.mailbox\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_rp_txt_rr , {\n \"TXT RR\" , \"dns.rp.txt_rr\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_afsdb_subtype , {\n \"Subtype\" , \"dns.afsdb.subtype\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_afsdb_hostname , {\n \"Hostname\" , \"dns.afsdb.hostname\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_x25_length , {\n \"Length\" , \"dns.x25.length\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_x25_psdn_address , {\n \"PSDN-Address\" , \"dns.x25.psdn_address\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_isdn_length , {\n \"Length\" , \"dns.idsn.length\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_isdn_address , {\n \"ISDN Address\" , \"dns.idsn.address\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_isdn_sa_length , {\n \"Length\" , \"dns.idsn.sa.length\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_isdn_sa , {\n \"Sub Address\" , \"dns.idsn.sa.address\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_rt_preference , {\n \"Preference\" , \"dns.rt.subtype\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_rt_intermediate_host , {\n \"Intermediate Hostname\" , \"dns.rt.intermediate_host\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_nsap_rdata , {\n \"NSAP Data\" , \"dns.nsap.rdata\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_nsap_ptr_owner , {\n \"Owner\" , \"dns.nsap_ptr.owner\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_caa_flags , {\n \"CAA Flags\" , \"dns.caa.flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_caa_flag_issuer_critical , {\n \"Issuer Critical\" , \"dns.caa.flags.issuer_critical\" , FT_BOOLEAN , 8 , TFS ( & tfs_critical_not_critical ) , CAA_FLAG_ISSUER_CRITICAL , \"Other CAs must not issue certificates\" , HFILL }\n }\n , {\n & hf_dns_caa_issue , {\n \"Issue\" , \"dns.caa.issue\" , FT_STRING , BASE_NONE , NULL , 0x0 , \"CA which is allowed to issue certificates\" , HFILL }\n }\n , {\n & hf_dns_caa_issuewild , {\n \"Issue Wildcard\" , \"dns.caa.issuewild\" , FT_STRING , BASE_NONE , NULL , 0x0 , \"CA which is allowed to issue wildcard certificates\" , HFILL }\n }\n , {\n & hf_dns_caa_iodef , {\n \"Report URL\" , \"dns.caa.iodef\" , FT_STRING , BASE_NONE , NULL , 0x0 , \"URL or email address for certificate issue requests and violation reports\" , HFILL }\n }\n , {\n & hf_dns_caa_unknown , {\n \"Unkown tag\" , \"dns.caa.unknown\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_caa_tag_length , {\n \"Tag length\" , \"dns.caa.tag_length\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_dns_caa_tag , {\n \"Tag\" , \"dns.caa.tag\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_caa_value , {\n \"Value\" , \"dns.caa.value\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_wins_local_flag , {\n \"Local Flag\" , \"dns.wins.local_flag\" , FT_BOOLEAN , 32 , TFS ( & tfs_true_false ) , 0x1 , NULL , HFILL }\n }\n , {\n & hf_dns_wins_lookup_timeout , {\n \"Lookup timeout\" , \"dns.wins.lookup_timeout\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"In seconds\" , HFILL }\n }\n , {\n & hf_dns_wins_cache_timeout , {\n \"Cache timeout\" , \"dns.wins.cache_timeout\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"In seconds\" , HFILL }\n }\n , {\n & hf_dns_wins_nb_wins_servers , {\n \"Number of WINS servers\" , \"dns.wins.nb_wins_servers\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_wins_server , {\n \"WINS Server Address\" , \"dns.wins.wins_server\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_winsr_local_flag , {\n \"Local Flag\" , \"dns.winsr.local_flag\" , FT_BOOLEAN , 32 , TFS ( & tfs_true_false ) , 0x1 , NULL , HFILL }\n }\n , {\n & hf_dns_winsr_lookup_timeout , {\n \"Lookup timeout\" , \"dns.winsr.lookup_timeout\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"In seconds\" , HFILL }\n }\n , {\n & hf_dns_winsr_cache_timeout , {\n \"Cache timeout\" , \"dns.winsr.cache_timeout\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"In seconds\" , HFILL }\n }\n , {\n & hf_dns_winsr_name_result_domain , {\n \"Name Result Domain\" , \"dns.winsr.name_result_domain\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_dns_data , {\n \"Data\" , \"dns.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , }\n ;\n static ei_register_info ei [ ] = {\n {\n & ei_dns_opt_bad_length , {\n \"dns.rr.opt.bad_length\" , PI_MALFORMED , PI_ERROR , \"Length too long for any type of IP address.\" , EXPFILL }\n }\n , {\n & ei_dns_undecoded_option , {\n \"dns.undecoded.type\" , PI_UNDECODED , PI_NOTE , \"Undecoded option\" , EXPFILL }\n }\n , {\n & ei_dns_depr_opc , {\n \"dns.depr.opc\" , PI_PROTOCOL , PI_WARN , \"Deprecated opcode\" , EXPFILL }\n }\n , {\n & ei_ttl_negative , {\n \"dns.ttl.negative\" , PI_PROTOCOL , PI_WARN , \"TTL can't be negative\" , EXPFILL }\n }\n , {\n & ei_dns_tsig_alg , {\n \"dns.tsig.noalg\" , PI_UNDECODED , PI_WARN , \"No dissector for algorithm\" , EXPFILL }\n }\n , }\n ;\n static gint * ett [ ] = {\n & ett_dns , & ett_dns_qd , & ett_dns_rr , & ett_dns_qry , & ett_dns_ans , & ett_dns_flags , & ett_dns_opts , & ett_nsec3_flags , & ett_key_flags , & ett_t_key , & ett_dns_mac , & ett_caa_flags , & ett_caa_data , }\n ;\n module_t * dns_module ;\n expert_module_t * expert_dns ;\n proto_dns = proto_register_protocol ( \"Domain Name Service\" , \"DNS\" , \"dns\" ) ;\n proto_register_field_array ( proto_dns , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n expert_dns = expert_register_protocol ( proto_dns ) ;\n expert_register_field_array ( expert_dns , ei , array_length ( ei ) ) ;\n range_convert_str ( & global_dns_tcp_port_range , DEFAULT_DNS_PORT_RANGE , MAX_TCP_PORT ) ;\n range_convert_str ( & global_dns_udp_port_range , DEFAULT_DNS_PORT_RANGE , MAX_UDP_PORT ) ;\n dns_module = prefs_register_protocol ( proto_dns , proto_reg_handoff_dns ) ;\n prefs_register_range_preference ( dns_module , \"tcp.ports\" , \"DNS TCP ports\" , \"TCP ports to be decoded as DNS (default: \" DEFAULT_DNS_PORT_RANGE \")\" , & global_dns_tcp_port_range , MAX_TCP_PORT ) ;\n prefs_register_range_preference ( dns_module , \"udp.ports\" , \"DNS UDP ports\" , \"UDP ports to be decoded as DNS (default: \" DEFAULT_DNS_PORT_RANGE \")\" , & global_dns_udp_port_range , MAX_UDP_PORT ) ;\n prefs_register_bool_preference ( dns_module , \"desegment_dns_messages\" , \"Reassemble DNS messages spanning multiple TCP segments\" , \"Whether the DNS dissector should reassemble messages spanning multiple TCP segments.\" \" To use this option, you must also enable \\\"Allow subdissectors to reassemble TCP streams\\\" in the TCP protocol settings.\" , & dns_desegment ) ;\n prefs_register_bool_preference ( dns_module , \"use_for_addr_resolution\" , \"Use DNS packet data for address resolution\" , \"Whether addressame pairs found in dissected DNS packets should be used by Wireshark for name resolution.\" , & dns_use_for_addr_resolution ) ;\n dns_tsig_dissector_table = register_dissector_table ( \"dns.tsig.mac\" , \"DNS TSIG MAC Dissectors\" , FT_STRING , BASE_NONE ) ;\n dns_tap = register_tap ( \"dns\" ) ;\n }"}
{"idx": 2096, "target": 0, "func": "static void prplcb_roomlist_in_progress ( PurpleRoomlist * list , gboolean in_progress ) {\n struct im_connection * ic ;\n struct purple_data * pd ;\n struct purple_roomlist_data * rld = list -> ui_data ;\n if ( in_progress || ! rld ) {\n return ;\n }\n ic = purple_ic_by_pa ( list -> account ) ;\n imcb_chat_list_free ( ic ) ;\n pd = ic -> proto_data ;\n g_free ( pd -> chat_list_server ) ;\n pd -> chat_list_server = NULL ;\n ic -> chatlist = g_slist_reverse ( rld -> chats ) ;\n rld -> chats = NULL ;\n imcb_chat_list_finish ( ic ) ;\n if ( rld -> initialized ) {\n purple_roomlist_unref ( list ) ;\n }\n }"}
{"idx": 2097, "target": 1, "func": "void vp9_select_in_frame_q_segment ( VP9_COMP * cpi , int mi_row , int mi_col , int output_enabled , int projected_rate ) {\n VP9_COMMON * const cm = & cpi -> common ;\n const int mi_offset = mi_row * cm -> mi_cols + mi_col ;\n const int bw = num_8x8_blocks_wide_lookup [ BLOCK_64X64 ] ;\n const int bh = num_8x8_blocks_high_lookup [ BLOCK_64X64 ] ;\n const int xmis = MIN ( cm -> mi_cols - mi_col , bw ) ;\n const int ymis = MIN ( cm -> mi_rows - mi_row , bh ) ;\n int complexity_metric = 64 ;\n int x , y ;\n unsigned char segment ;\n if ( ! output_enabled ) {\n segment = 0 ;\n }\n else {\n const int target_rate = ( cpi -> rc . sb64_target_rate * xmis * ymis * 256 ) / ( bw * bh ) ;\n const int aq_strength = get_aq_c_strength ( cm -> base_qindex ) ;\n const int active_segments = aq_c_active_segments [ aq_strength ] ;\n segment = active_segments - 1 ;\n while ( segment > 0 ) {\n if ( projected_rate < ( target_rate * aq_c_transitions [ aq_strength ] [ segment ] ) ) {\n break ;\n }\n -- segment ;\n }\n if ( target_rate > 0 ) {\n complexity_metric = clamp ( ( int ) ( ( projected_rate * 64 ) / target_rate ) , 16 , 255 ) ;\n }\n }\n for ( y = 0 ;\n y < ymis ;\n y ++ ) {\n for ( x = 0 ;\n x < xmis ;\n x ++ ) {\n cpi -> segmentation_map [ mi_offset + y * cm -> mi_cols + x ] = segment ;\n cpi -> complexity_map [ mi_offset + y * cm -> mi_cols + x ] = ( unsigned char ) complexity_metric ;\n }\n }\n }"}
{"idx": 2098, "target": 0, "func": "static void test_multi_stmt ( ) {\n MYSQL_STMT * stmt , * stmt1 , * stmt2 ;\n int rc ;\n uint32 id ;\n char name [ 50 ] ;\n MYSQL_BIND my_bind [ 2 ] ;\n ulong length [ 2 ] ;\n my_bool is_null [ 2 ] ;\n myheader ( \"test_multi_stmt\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_multi_table\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_multi_table(id int, name char(20))\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_multi_table values(10, 'mysql')\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT * FROM test_multi_table \" \"WHERE id= ?\" ) ;\n check_stmt ( stmt ) ;\n stmt2 = mysql_simple_prepare ( mysql , \"UPDATE test_multi_table \" \"SET name='updated' WHERE id=10\" ) ;\n check_stmt ( stmt2 ) ;\n verify_param_count ( stmt , 1 ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 0 ] . buffer = ( void * ) & id ;\n my_bind [ 0 ] . is_null = & is_null [ 0 ] ;\n my_bind [ 0 ] . length = & length [ 0 ] ;\n is_null [ 0 ] = 0 ;\n length [ 0 ] = 0 ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 1 ] . buffer = ( void * ) name ;\n my_bind [ 1 ] . buffer_length = sizeof ( name ) ;\n my_bind [ 1 ] . length = & length [ 1 ] ;\n my_bind [ 1 ] . is_null = & is_null [ 1 ] ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n id = 10 ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n id = 999 ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) {\n fprintf ( stdout , \"\\n int_data: %lu(%lu)\" , ( ulong ) id , length [ 0 ] ) ;\n fprintf ( stdout , \"\\n str_data: %s(%lu)\" , name , length [ 1 ] ) ;\n }\n DIE_UNLESS ( id == 10 ) ;\n DIE_UNLESS ( strcmp ( name , \"mysql\" ) == 0 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n stmt1 = mysql_simple_prepare ( mysql , \"DELETE FROM test_multi_table \" \"WHERE id= ? AND \" \"CONVERT(name USING utf8)=?\" ) ;\n check_stmt ( stmt1 ) ;\n verify_param_count ( stmt1 , 2 ) ;\n rc = mysql_stmt_bind_param ( stmt1 , my_bind ) ;\n check_execute ( stmt1 , rc ) ;\n rc = mysql_stmt_execute ( stmt2 ) ;\n check_execute ( stmt2 , rc ) ;\n verify_st_affected_rows ( stmt2 , 1 ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) {\n fprintf ( stdout , \"\\n int_data: %lu(%lu)\" , ( ulong ) id , length [ 0 ] ) ;\n fprintf ( stdout , \"\\n str_data: %s(%lu)\" , name , length [ 1 ] ) ;\n }\n DIE_UNLESS ( id == 10 ) ;\n DIE_UNLESS ( strcmp ( name , \"updated\" ) == 0 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n rc = mysql_stmt_execute ( stmt1 ) ;\n check_execute ( stmt1 , rc ) ;\n verify_st_affected_rows ( stmt1 , 1 ) ;\n mysql_stmt_close ( stmt1 ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n rc = my_stmt_result ( \"SELECT * FROM test_multi_table\" ) ;\n DIE_UNLESS ( rc == 0 ) ;\n mysql_stmt_close ( stmt ) ;\n mysql_stmt_close ( stmt2 ) ;\n }"}
{"idx": 2099, "target": 0, "func": "static inline uint16_t vga_read_word_be ( VGACommonState * vga , uint32_t addr ) {\n uint32_t offset = addr & vga -> vbe_size_mask & ~ 1 ;\n uint16_t * ptr = ( uint16_t * ) ( vga -> vram_ptr + offset ) ;\n return lduw_be_p ( ptr ) ;\n }"}
{"idx": 2100, "target": 0, "func": "int qemuMonitorJSONGetMemoryStats ( qemuMonitorPtr mon , virDomainMemoryStatPtr stats , unsigned int nr_stats ) {\n int ret ;\n int got = 0 ;\n virJSONValuePtr cmd = qemuMonitorJSONMakeCommand ( \"query-balloon\" , NULL ) ;\n virJSONValuePtr reply = NULL ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) {\n if ( qemuMonitorJSONHasError ( reply , \"DeviceNotActive\" ) || qemuMonitorJSONHasError ( reply , \"KVMMissingCap\" ) ) goto cleanup ;\n ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n if ( ret == 0 ) {\n virJSONValuePtr data ;\n unsigned long long mem ;\n if ( ! ( data = virJSONValueObjectGet ( reply , \"return\" ) ) ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"info balloon reply was missing return data\" ) ) ;\n ret = - 1 ;\n goto cleanup ;\n }\n if ( virJSONValueObjectHasKey ( data , \"actual\" ) && ( got < nr_stats ) ) {\n if ( virJSONValueObjectGetNumberUlong ( data , \"actual\" , & mem ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"info balloon reply was missing balloon actual\" ) ) ;\n ret = - 1 ;\n goto cleanup ;\n }\n stats [ got ] . tag = VIR_DOMAIN_MEMORY_STAT_ACTUAL_BALLOON ;\n stats [ got ] . val = ( mem / 1024 ) ;\n got ++ ;\n }\n if ( virJSONValueObjectHasKey ( data , \"mem_swapped_in\" ) && ( got < nr_stats ) ) {\n if ( virJSONValueObjectGetNumberUlong ( data , \"mem_swapped_in\" , & mem ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"info balloon reply was missing balloon mem_swapped_in\" ) ) ;\n ret = - 1 ;\n goto cleanup ;\n }\n stats [ got ] . tag = VIR_DOMAIN_MEMORY_STAT_SWAP_IN ;\n stats [ got ] . val = ( mem / 1024 ) ;\n got ++ ;\n }\n if ( virJSONValueObjectHasKey ( data , \"mem_swapped_out\" ) && ( got < nr_stats ) ) {\n if ( virJSONValueObjectGetNumberUlong ( data , \"mem_swapped_out\" , & mem ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"info balloon reply was missing balloon mem_swapped_out\" ) ) ;\n ret = - 1 ;\n goto cleanup ;\n }\n stats [ got ] . tag = VIR_DOMAIN_MEMORY_STAT_SWAP_OUT ;\n stats [ got ] . val = ( mem / 1024 ) ;\n got ++ ;\n }\n if ( virJSONValueObjectHasKey ( data , \"major_page_faults\" ) && ( got < nr_stats ) ) {\n if ( virJSONValueObjectGetNumberUlong ( data , \"major_page_faults\" , & mem ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"info balloon reply was missing balloon major_page_faults\" ) ) ;\n ret = - 1 ;\n goto cleanup ;\n }\n stats [ got ] . tag = VIR_DOMAIN_MEMORY_STAT_MAJOR_FAULT ;\n stats [ got ] . val = mem ;\n got ++ ;\n }\n if ( virJSONValueObjectHasKey ( data , \"minor_page_faults\" ) && ( got < nr_stats ) ) {\n if ( virJSONValueObjectGetNumberUlong ( data , \"minor_page_faults\" , & mem ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"info balloon reply was missing balloon minor_page_faults\" ) ) ;\n ret = - 1 ;\n goto cleanup ;\n }\n stats [ got ] . tag = VIR_DOMAIN_MEMORY_STAT_MINOR_FAULT ;\n stats [ got ] . val = mem ;\n got ++ ;\n }\n if ( virJSONValueObjectHasKey ( data , \"free_mem\" ) && ( got < nr_stats ) ) {\n if ( virJSONValueObjectGetNumberUlong ( data , \"free_mem\" , & mem ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"info balloon reply was missing balloon free_mem\" ) ) ;\n ret = - 1 ;\n goto cleanup ;\n }\n stats [ got ] . tag = VIR_DOMAIN_MEMORY_STAT_UNUSED ;\n stats [ got ] . val = ( mem / 1024 ) ;\n got ++ ;\n }\n if ( virJSONValueObjectHasKey ( data , \"total_mem\" ) && ( got < nr_stats ) ) {\n if ( virJSONValueObjectGetNumberUlong ( data , \"total_mem\" , & mem ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"info balloon reply was missing balloon total_mem\" ) ) ;\n ret = - 1 ;\n goto cleanup ;\n }\n stats [ got ] . tag = VIR_DOMAIN_MEMORY_STAT_AVAILABLE ;\n stats [ got ] . val = ( mem / 1024 ) ;\n got ++ ;\n }\n }\n }\n if ( got > 0 ) ret = got ;\n cleanup : virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 2101, "target": 0, "func": "int ff_rm_read_mdpr_codecdata ( AVFormatContext * s , AVIOContext * pb , AVStream * st , RMStream * rst , unsigned int codec_data_size , const uint8_t * mime ) {\n unsigned int v ;\n int size ;\n int64_t codec_pos ;\n int ret ;\n if ( codec_data_size > INT_MAX ) return AVERROR_INVALIDDATA ;\n if ( codec_data_size == 0 ) return 0 ;\n avpriv_set_pts_info ( st , 64 , 1 , 1000 ) ;\n codec_pos = avio_tell ( pb ) ;\n v = avio_rb32 ( pb ) ;\n if ( v == MKTAG ( 0xfd , 'a' , 'r' , '.' ) ) {\n if ( rm_read_audio_stream_info ( s , pb , st , rst , 0 ) ) return - 1 ;\n }\n else if ( v == MKBETAG ( 'L' , 'S' , 'D' , ':' ) ) {\n avio_seek ( pb , - 4 , SEEK_CUR ) ;\n if ( ( ret = rm_read_extradata ( s , pb , st -> codecpar , codec_data_size ) ) < 0 ) return ret ;\n st -> codecpar -> codec_type = AVMEDIA_TYPE_AUDIO ;\n st -> codecpar -> codec_tag = AV_RL32 ( st -> codecpar -> extradata ) ;\n st -> codecpar -> codec_id = ff_codec_get_id ( ff_rm_codec_tags , st -> codecpar -> codec_tag ) ;\n }\n else if ( mime && ! strcmp ( mime , \"logical-fileinfo\" ) ) {\n int stream_count , rule_count , property_count , i ;\n ff_free_stream ( s , st ) ;\n if ( avio_rb16 ( pb ) != 0 ) {\n av_log ( s , AV_LOG_WARNING , \"Unsupported version\\n\" ) ;\n goto skip ;\n }\n stream_count = avio_rb16 ( pb ) ;\n avio_skip ( pb , 6 * stream_count ) ;\n rule_count = avio_rb16 ( pb ) ;\n avio_skip ( pb , 2 * rule_count ) ;\n property_count = avio_rb16 ( pb ) ;\n for ( i = 0 ;\n i < property_count ;\n i ++ ) {\n uint8_t name [ 128 ] , val [ 128 ] ;\n avio_rb32 ( pb ) ;\n if ( avio_rb16 ( pb ) != 0 ) {\n av_log ( s , AV_LOG_WARNING , \"Unsupported Name value property version\\n\" ) ;\n goto skip ;\n }\n get_str8 ( pb , name , sizeof ( name ) ) ;\n switch ( avio_rb32 ( pb ) ) {\n case 2 : get_strl ( pb , val , sizeof ( val ) , avio_rb16 ( pb ) ) ;\n av_dict_set ( & s -> metadata , name , val , 0 ) ;\n break ;\n default : avio_skip ( pb , avio_rb16 ( pb ) ) ;\n }\n }\n }\n else {\n int fps ;\n if ( avio_rl32 ( pb ) != MKTAG ( 'V' , 'I' , 'D' , 'O' ) ) {\n fail1 : av_log ( s , AV_LOG_WARNING , \"Unsupported stream type %08x\\n\" , v ) ;\n goto skip ;\n }\n st -> codecpar -> codec_tag = avio_rl32 ( pb ) ;\n st -> codecpar -> codec_id = ff_codec_get_id ( ff_rm_codec_tags , st -> codecpar -> codec_tag ) ;\n av_log ( s , AV_LOG_TRACE , \"%\" PRIX32 \" %X\\n\" , st -> codecpar -> codec_tag , MKTAG ( 'R' , 'V' , '2' , '0' ) ) ;\n if ( st -> codecpar -> codec_id == AV_CODEC_ID_NONE ) goto fail1 ;\n st -> codecpar -> width = avio_rb16 ( pb ) ;\n st -> codecpar -> height = avio_rb16 ( pb ) ;\n avio_skip ( pb , 2 ) ;\n avio_skip ( pb , 4 ) ;\n st -> codecpar -> codec_type = AVMEDIA_TYPE_VIDEO ;\n st -> need_parsing = AVSTREAM_PARSE_TIMESTAMPS ;\n fps = avio_rb32 ( pb ) ;\n if ( ( ret = rm_read_extradata ( s , pb , st -> codecpar , codec_data_size - ( avio_tell ( pb ) - codec_pos ) ) ) < 0 ) return ret ;\n if ( fps > 0 ) {\n av_reduce ( & st -> avg_frame_rate . den , & st -> avg_frame_rate . num , 0x10000 , fps , ( 1 << 30 ) - 1 ) ;\n # if FF_API_R_FRAME_RATE st -> r_frame_rate = st -> avg_frame_rate ;\n # endif }\n else if ( s -> error_recognition & AV_EF_EXPLODE ) {\n av_log ( s , AV_LOG_ERROR , \"Invalid framerate\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n skip : size = avio_tell ( pb ) - codec_pos ;\n if ( codec_data_size >= size ) {\n avio_skip ( pb , codec_data_size - size ) ;\n }\n else {\n av_log ( s , AV_LOG_WARNING , \"codec_data_size %u < size %d\\n\" , codec_data_size , size ) ;\n }\n return 0 ;\n }"}
{"idx": 2102, "target": 0, "func": "static void warn_or_exit_on_error ( vpx_codec_ctx_t * ctx , int fatal , const char * s , ... ) {\n va_list ap ;\n va_start ( ap , s ) ;\n warn_or_exit_on_errorv ( ctx , fatal , s , ap ) ;\n va_end ( ap ) ;\n }"}
{"idx": 2103, "target": 0, "func": "unsigned char * gcry_pk_get_keygrip ( gcry_sexp_t key , unsigned char * array ) {\n gcry_sexp_t list = NULL , l2 = NULL ;\n gcry_pk_spec_t * pubkey = NULL ;\n gcry_module_t module = NULL ;\n pk_extra_spec_t * extraspec ;\n const char * s ;\n char * name = NULL ;\n int idx ;\n const char * elems ;\n gcry_md_hd_t md = NULL ;\n int okay = 0 ;\n REGISTER_DEFAULT_PUBKEYS ;\n list = gcry_sexp_find_token ( key , \"public-key\" , 0 ) ;\n if ( ! list ) list = gcry_sexp_find_token ( key , \"private-key\" , 0 ) ;\n if ( ! list ) list = gcry_sexp_find_token ( key , \"protected-private-key\" , 0 ) ;\n if ( ! list ) list = gcry_sexp_find_token ( key , \"shadowed-private-key\" , 0 ) ;\n if ( ! list ) return NULL ;\n l2 = gcry_sexp_cadr ( list ) ;\n gcry_sexp_release ( list ) ;\n list = l2 ;\n l2 = NULL ;\n name = _gcry_sexp_nth_string ( list , 0 ) ;\n if ( ! name ) goto fail ;\n ath_mutex_lock ( & pubkeys_registered_lock ) ;\n module = gcry_pk_lookup_name ( name ) ;\n ath_mutex_unlock ( & pubkeys_registered_lock ) ;\n if ( ! module ) goto fail ;\n pubkey = ( gcry_pk_spec_t * ) module -> spec ;\n extraspec = module -> extraspec ;\n elems = pubkey -> elements_grip ;\n if ( ! elems ) goto fail ;\n if ( gcry_md_open ( & md , GCRY_MD_SHA1 , 0 ) ) goto fail ;\n if ( extraspec && extraspec -> comp_keygrip ) {\n if ( extraspec -> comp_keygrip ( md , list ) ) goto fail ;\n }\n else {\n for ( idx = 0 , s = elems ;\n * s ;\n s ++ , idx ++ ) {\n const char * data ;\n size_t datalen ;\n char buf [ 30 ] ;\n l2 = gcry_sexp_find_token ( list , s , 1 ) ;\n if ( ! l2 ) goto fail ;\n data = gcry_sexp_nth_data ( l2 , 1 , & datalen ) ;\n if ( ! data ) goto fail ;\n snprintf ( buf , sizeof buf , \"(1:%c%u:\" , * s , ( unsigned int ) datalen ) ;\n gcry_md_write ( md , buf , strlen ( buf ) ) ;\n gcry_md_write ( md , data , datalen ) ;\n gcry_sexp_release ( l2 ) ;\n l2 = NULL ;\n gcry_md_write ( md , \")\" , 1 ) ;\n }\n }\n if ( ! array ) {\n array = gcry_malloc ( 20 ) ;\n if ( ! array ) goto fail ;\n }\n memcpy ( array , gcry_md_read ( md , GCRY_MD_SHA1 ) , 20 ) ;\n okay = 1 ;\n fail : gcry_free ( name ) ;\n gcry_sexp_release ( l2 ) ;\n gcry_md_close ( md ) ;\n gcry_sexp_release ( list ) ;\n return okay ? array : NULL ;\n }"}
{"idx": 2104, "target": 0, "func": "static int mainwindow_grow ( MAIN_WINDOW_REC * window , int count , int resize_lower ) {\n if ( ! resize_lower || ! try_shrink_lower ( window , count ) ) {\n if ( ! try_shrink_upper ( window , count ) ) {\n if ( resize_lower || ! try_shrink_lower ( window , count ) ) return FALSE ;\n }\n }\n return TRUE ;\n }"}
{"idx": 2105, "target": 0, "func": "static void dissect_q931_cug_ie ( tvbuff_t * tvb , int offset , int len , proto_tree * tree ) {\n if ( len == 0 ) return ;\n proto_tree_add_item ( tree , hf_q931_cug_indication , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset += 1 ;\n len -= 1 ;\n if ( len == 0 ) return ;\n proto_tree_add_item ( tree , hf_q931_cug_index_code , tvb , offset , len , ENC_NA | ENC_ASCII ) ;\n }"}
{"idx": 2106, "target": 0, "func": "void ReadHead ( ArchiveHandle * AH ) {\n char tmpMag [ 7 ] ;\n int fmt ;\n struct tm crtm ;\n if ( ! AH -> readHeader ) {\n ( * AH -> ReadBufPtr ) ( AH , tmpMag , 5 ) ;\n if ( strncmp ( tmpMag , \"PGDMP\" , 5 ) != 0 ) exit_horribly ( modulename , \"did not find magic string in file header\\n\" ) ;\n AH -> vmaj = ( * AH -> ReadBytePtr ) ( AH ) ;\n AH -> vmin = ( * AH -> ReadBytePtr ) ( AH ) ;\n if ( AH -> vmaj > 1 || ( ( AH -> vmaj == 1 ) && ( AH -> vmin > 0 ) ) ) AH -> vrev = ( * AH -> ReadBytePtr ) ( AH ) ;\n else AH -> vrev = 0 ;\n AH -> version = ( ( AH -> vmaj * 256 + AH -> vmin ) * 256 + AH -> vrev ) * 256 + 0 ;\n if ( AH -> version < K_VERS_1_0 || AH -> version > K_VERS_MAX ) exit_horribly ( modulename , \"unsupported version (%d.%d) in file header\\n\" , AH -> vmaj , AH -> vmin ) ;\n AH -> intSize = ( * AH -> ReadBytePtr ) ( AH ) ;\n if ( AH -> intSize > 32 ) exit_horribly ( modulename , \"sanity check on integer size (%lu) failed\\n\" , ( unsigned long ) AH -> intSize ) ;\n if ( AH -> intSize > sizeof ( int ) ) write_msg ( modulename , \"WARNING: archive was made on a machine with larger integers, some operations might fail\\n\" ) ;\n if ( AH -> version >= K_VERS_1_7 ) AH -> offSize = ( * AH -> ReadBytePtr ) ( AH ) ;\n else AH -> offSize = AH -> intSize ;\n fmt = ( * AH -> ReadBytePtr ) ( AH ) ;\n if ( AH -> format != fmt ) exit_horribly ( modulename , \"expected format (%d) differs from format found in file (%d)\\n\" , AH -> format , fmt ) ;\n }\n if ( AH -> version >= K_VERS_1_2 ) {\n if ( AH -> version < K_VERS_1_4 ) AH -> compression = ( * AH -> ReadBytePtr ) ( AH ) ;\n else AH -> compression = ReadInt ( AH ) ;\n }\n else AH -> compression = Z_DEFAULT_COMPRESSION ;\n # ifndef HAVE_LIBZ if ( AH -> compression != 0 ) write_msg ( modulename , \"WARNING: archive is compressed, but this installation does not support compression -- no data will be available\\n\" ) ;\n # endif if ( AH -> version >= K_VERS_1_4 ) {\n crtm . tm_sec = ReadInt ( AH ) ;\n crtm . tm_min = ReadInt ( AH ) ;\n crtm . tm_hour = ReadInt ( AH ) ;\n crtm . tm_mday = ReadInt ( AH ) ;\n crtm . tm_mon = ReadInt ( AH ) ;\n crtm . tm_year = ReadInt ( AH ) ;\n crtm . tm_isdst = ReadInt ( AH ) ;\n AH -> archdbname = ReadStr ( AH ) ;\n AH -> createDate = mktime ( & crtm ) ;\n if ( AH -> createDate == ( time_t ) - 1 ) write_msg ( modulename , \"WARNING: invalid creation date in header\\n\" ) ;\n }\n if ( AH -> version >= K_VERS_1_10 ) {\n AH -> archiveRemoteVersion = ReadStr ( AH ) ;\n AH -> archiveDumpVersion = ReadStr ( AH ) ;\n }\n }"}
{"idx": 2107, "target": 0, "func": "static vpx_codec_err_t validate_img ( vpx_codec_alg_priv_t * ctx , const vpx_image_t * img ) {\n switch ( img -> fmt ) {\n case VPX_IMG_FMT_YV12 : case VPX_IMG_FMT_I420 : case VPX_IMG_FMT_I422 : case VPX_IMG_FMT_I444 : break ;\n default : ERROR ( \"Invalid image format. Only YV12, I420, I422, I444 images are \" \"supported.\" ) ;\n break ;\n }\n if ( img -> d_w != ctx -> cfg . g_w || img -> d_h != ctx -> cfg . g_h ) ERROR ( \"Image size must match encoder init configuration size\" ) ;\n return VPX_CODEC_OK ;\n }"}
{"idx": 2108, "target": 0, "func": "static void reverse_dc_prediction ( Vp3DecodeContext * s , int first_fragment , int fragment_width , int fragment_height ) {\n # define PUL 8 # define PU 4 # define PUR 2 # define PL 1 int x , y ;\n int i = first_fragment ;\n int predicted_dc ;\n int vl , vul , vu , vur ;\n int l , ul , u , ur ;\n static const int predictor_transform [ 16 ] [ 4 ] = {\n {\n 0 , 0 , 0 , 0 }\n , {\n 0 , 0 , 0 , 128 }\n , {\n 0 , 0 , 128 , 0 }\n , {\n 0 , 0 , 53 , 75 }\n , {\n 0 , 128 , 0 , 0 }\n , {\n 0 , 64 , 0 , 64 }\n , {\n 0 , 128 , 0 , 0 }\n , {\n 0 , 0 , 53 , 75 }\n , {\n 128 , 0 , 0 , 0 }\n , {\n 0 , 0 , 0 , 128 }\n , {\n 64 , 0 , 64 , 0 }\n , {\n 0 , 0 , 53 , 75 }\n , {\n 0 , 128 , 0 , 0 }\n , {\n - 104 , 116 , 0 , 116 }\n , {\n 24 , 80 , 24 , 0 }\n , {\n - 104 , 116 , 0 , 116 }\n }\n ;\n static const unsigned char compatible_frame [ 9 ] = {\n 1 , 0 , 1 , 1 , 1 , 2 , 2 , 1 , 3 }\n ;\n int current_frame_type ;\n short last_dc [ 3 ] ;\n int transform = 0 ;\n vul = vu = vur = vl = 0 ;\n last_dc [ 0 ] = last_dc [ 1 ] = last_dc [ 2 ] = 0 ;\n for ( y = 0 ;\n y < fragment_height ;\n y ++ ) {\n for ( x = 0 ;\n x < fragment_width ;\n x ++ , i ++ ) {\n if ( s -> all_fragments [ i ] . coding_method != MODE_COPY ) {\n current_frame_type = compatible_frame [ s -> all_fragments [ i ] . coding_method ] ;\n transform = 0 ;\n if ( x ) {\n l = i - 1 ;\n vl = DC_COEFF ( l ) ;\n if ( COMPATIBLE_FRAME ( l ) ) transform |= PL ;\n }\n if ( y ) {\n u = i - fragment_width ;\n vu = DC_COEFF ( u ) ;\n if ( COMPATIBLE_FRAME ( u ) ) transform |= PU ;\n if ( x ) {\n ul = i - fragment_width - 1 ;\n vul = DC_COEFF ( ul ) ;\n if ( COMPATIBLE_FRAME ( ul ) ) transform |= PUL ;\n }\n if ( x + 1 < fragment_width ) {\n ur = i - fragment_width + 1 ;\n vur = DC_COEFF ( ur ) ;\n if ( COMPATIBLE_FRAME ( ur ) ) transform |= PUR ;\n }\n }\n if ( transform == 0 ) {\n predicted_dc = last_dc [ current_frame_type ] ;\n }\n else {\n predicted_dc = ( predictor_transform [ transform ] [ 0 ] * vul ) + ( predictor_transform [ transform ] [ 1 ] * vu ) + ( predictor_transform [ transform ] [ 2 ] * vur ) + ( predictor_transform [ transform ] [ 3 ] * vl ) ;\n predicted_dc /= 128 ;\n if ( ( transform == 15 ) || ( transform == 13 ) ) {\n if ( FFABS ( predicted_dc - vu ) > 128 ) predicted_dc = vu ;\n else if ( FFABS ( predicted_dc - vl ) > 128 ) predicted_dc = vl ;\n else if ( FFABS ( predicted_dc - vul ) > 128 ) predicted_dc = vul ;\n }\n }\n DC_COEFF ( i ) += predicted_dc ;\n last_dc [ current_frame_type ] = DC_COEFF ( i ) ;\n }\n }\n }\n }"}
{"idx": 2109, "target": 0, "func": "static int dissect_pvfs_flowproto_type ( tvbuff_t * tvb , proto_tree * tree , int offset ) {\n proto_tree_add_item ( tree , hf_pvfs_flowproto_type , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n return offset ;\n }"}
{"idx": 2110, "target": 0, "func": "static void extract_job_on_progress ( AutoarExtractor * extractor , guint64 archive_current_decompressed_size , guint archive_current_decompressed_files , gpointer user_data ) {\n ExtractJob * extract_job = user_data ;\n CommonJob * common = user_data ;\n GFile * source_file ;\n char * details ;\n double elapsed ;\n double transfer_rate ;\n int remaining_time ;\n guint64 archive_total_decompressed_size ;\n gdouble archive_weight ;\n gdouble archive_decompress_progress ;\n guint64 job_completed_size ;\n gdouble job_progress ;\n source_file = autoar_extractor_get_source_file ( extractor ) ;\n nautilus_progress_info_take_status ( common -> progress , f ( _ ( \"Extracting \u201c%B\u201d\" ) , source_file ) ) ;\n archive_total_decompressed_size = autoar_extractor_get_total_size ( extractor ) ;\n archive_decompress_progress = ( gdouble ) archive_current_decompressed_size / ( gdouble ) archive_total_decompressed_size ;\n archive_weight = 0 ;\n if ( extract_job -> total_compressed_size ) {\n archive_weight = ( gdouble ) extract_job -> archive_compressed_size / ( gdouble ) extract_job -> total_compressed_size ;\n }\n job_progress = archive_decompress_progress * archive_weight + extract_job -> base_progress ;\n elapsed = g_timer_elapsed ( common -> time , NULL ) ;\n transfer_rate = 0 ;\n remaining_time = - 1 ;\n job_completed_size = job_progress * extract_job -> total_compressed_size ;\n if ( elapsed > 0 ) {\n transfer_rate = job_completed_size / elapsed ;\n }\n if ( transfer_rate > 0 ) {\n remaining_time = ( extract_job -> total_compressed_size - job_completed_size ) / transfer_rate ;\n }\n if ( elapsed < SECONDS_NEEDED_FOR_RELIABLE_TRANSFER_RATE || transfer_rate == 0 ) {\n details = f ( _ ( \"%S / %S\" ) , job_completed_size , extract_job -> total_compressed_size ) ;\n }\n else {\n details = f ( ngettext ( \"%S / %S \\xE2\\x80\\x94 %T left (%S/sec)\" , \"%S / %S \\xE2\\x80\\x94 %T left (%S/sec)\" , seconds_count_format_time_units ( remaining_time ) ) , job_completed_size , extract_job -> total_compressed_size , remaining_time , ( goffset ) transfer_rate ) ;\n }\n nautilus_progress_info_take_details ( common -> progress , details ) ;\n if ( elapsed > SECONDS_NEEDED_FOR_APROXIMATE_TRANSFER_RATE ) {\n nautilus_progress_info_set_remaining_time ( common -> progress , remaining_time ) ;\n nautilus_progress_info_set_elapsed_time ( common -> progress , elapsed ) ;\n }\n nautilus_progress_info_set_progress ( common -> progress , job_progress , 1 ) ;\n }"}
{"idx": 2111, "target": 0, "func": "static void add_objects_in_unpacked_packs ( struct rev_info * revs ) {\n struct packed_git * p ;\n struct in_pack in_pack ;\n uint32_t i ;\n memset ( & in_pack , 0 , sizeof ( in_pack ) ) ;\n for ( p = packed_git ;\n p ;\n p = p -> next ) {\n const unsigned char * sha1 ;\n struct object * o ;\n if ( ! p -> pack_local || p -> pack_keep ) continue ;\n if ( open_pack_index ( p ) ) die ( \"cannot open pack index\" ) ;\n ALLOC_GROW ( in_pack . array , in_pack . nr + p -> num_objects , in_pack . alloc ) ;\n for ( i = 0 ;\n i < p -> num_objects ;\n i ++ ) {\n sha1 = nth_packed_object_sha1 ( p , i ) ;\n o = lookup_unknown_object ( sha1 ) ;\n if ( ! ( o -> flags & OBJECT_ADDED ) ) mark_in_pack_object ( o , p , & in_pack ) ;\n o -> flags |= OBJECT_ADDED ;\n }\n }\n if ( in_pack . nr ) {\n qsort ( in_pack . array , in_pack . nr , sizeof ( in_pack . array [ 0 ] ) , ofscmp ) ;\n for ( i = 0 ;\n i < in_pack . nr ;\n i ++ ) {\n struct object * o = in_pack . array [ i ] . object ;\n add_object_entry ( o -> oid . hash , o -> type , \"\" , 0 ) ;\n }\n }\n free ( in_pack . array ) ;\n }"}
{"idx": 2112, "target": 0, "func": "void close_connections ( ) {\n DBUG_ENTER ( \"close_connections\" ) ;\n for ( -- next_con ;\n next_con >= connections ;\n -- next_con ) {\n # ifdef EMBEDDED_LIBRARY emb_close_connection ( next_con ) ;\n # endif if ( next_con -> stmt ) mysql_stmt_close ( next_con -> stmt ) ;\n next_con -> stmt = 0 ;\n mysql_close ( next_con -> mysql ) ;\n next_con -> mysql = 0 ;\n if ( next_con -> util_mysql ) mysql_close ( next_con -> util_mysql ) ;\n my_free ( next_con -> name ) ;\n }\n my_free ( connections ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 2113, "target": 1, "func": "static inline void xan_wc3_copy_pixel_run ( XanContext * s , int x , int y , int pixel_count , int motion_x , int motion_y ) {\n int stride ;\n int line_inc ;\n int curframe_index , prevframe_index ;\n int curframe_x , prevframe_x ;\n int width = s -> avctx -> width ;\n unsigned char * palette_plane , * prev_palette_plane ;\n if ( y + motion_y < 0 || y + motion_y >= s -> avctx -> height || x + motion_x < 0 || x + motion_x >= s -> avctx -> width ) return ;\n palette_plane = s -> current_frame . data [ 0 ] ;\n prev_palette_plane = s -> last_frame . data [ 0 ] ;\n if ( ! prev_palette_plane ) prev_palette_plane = palette_plane ;\n stride = s -> current_frame . linesize [ 0 ] ;\n line_inc = stride - width ;\n curframe_index = y * stride + x ;\n curframe_x = x ;\n prevframe_index = ( y + motion_y ) * stride + x + motion_x ;\n prevframe_x = x + motion_x ;\n while ( pixel_count && curframe_index < s -> frame_size && prevframe_index < s -> frame_size ) {\n int count = FFMIN3 ( pixel_count , width - curframe_x , width - prevframe_x ) ;\n memcpy ( palette_plane + curframe_index , prev_palette_plane + prevframe_index , count ) ;\n pixel_count -= count ;\n curframe_index += count ;\n prevframe_index += count ;\n curframe_x += count ;\n prevframe_x += count ;\n if ( curframe_x >= width ) {\n curframe_index += line_inc ;\n curframe_x = 0 ;\n }\n if ( prevframe_x >= width ) {\n prevframe_index += line_inc ;\n prevframe_x = 0 ;\n }\n }\n }"}
{"idx": 2114, "target": 0, "func": "static int auth_server_input_mech ( struct auth_server_connection * conn , const char * const * args ) {\n struct auth_mech_desc mech_desc ;\n if ( conn -> handshake_received ) {\n i_error ( \"BUG: Authentication server already sent handshake\" ) ;\n return - 1 ;\n }\n if ( args [ 0 ] == NULL ) {\n i_error ( \"BUG: Authentication server sent broken MECH line\" ) ;\n return - 1 ;\n }\n i_zero ( & mech_desc ) ;\n mech_desc . name = p_strdup ( conn -> pool , args [ 0 ] ) ;\n if ( strcmp ( mech_desc . name , \"PLAIN\" ) == 0 ) conn -> has_plain_mech = TRUE ;\n for ( args ++ ;\n * args != NULL ;\n args ++ ) {\n if ( strcmp ( * args , \"private\" ) == 0 ) mech_desc . flags |= MECH_SEC_PRIVATE ;\n else if ( strcmp ( * args , \"anonymous\" ) == 0 ) mech_desc . flags |= MECH_SEC_ANONYMOUS ;\n else if ( strcmp ( * args , \"plaintext\" ) == 0 ) mech_desc . flags |= MECH_SEC_PLAINTEXT ;\n else if ( strcmp ( * args , \"dictionary\" ) == 0 ) mech_desc . flags |= MECH_SEC_DICTIONARY ;\n else if ( strcmp ( * args , \"active\" ) == 0 ) mech_desc . flags |= MECH_SEC_ACTIVE ;\n else if ( strcmp ( * args , \"forward-secrecy\" ) == 0 ) mech_desc . flags |= MECH_SEC_FORWARD_SECRECY ;\n else if ( strcmp ( * args , \"mutual-auth\" ) == 0 ) mech_desc . flags |= MECH_SEC_MUTUAL_AUTH ;\n }\n array_append ( & conn -> available_auth_mechs , & mech_desc , 1 ) ;\n return 0 ;\n }"}
{"idx": 2115, "target": 0, "func": "static int read_delta_q ( struct vp9_read_bit_buffer * rb , int * delta_q ) {\n const int old = * delta_q ;\n * delta_q = vp9_rb_read_bit ( rb ) ? vp9_rb_read_signed_literal ( rb , 4 ) : 0 ;\n return old != * delta_q ;\n }"}
{"idx": 2116, "target": 0, "func": "static void idct16 ( const tran_low_t * input , tran_low_t * output ) {\n tran_low_t step1 [ 16 ] , step2 [ 16 ] ;\n tran_high_t temp1 , temp2 ;\n step1 [ 0 ] = input [ 0 / 2 ] ;\n step1 [ 1 ] = input [ 16 / 2 ] ;\n step1 [ 2 ] = input [ 8 / 2 ] ;\n step1 [ 3 ] = input [ 24 / 2 ] ;\n step1 [ 4 ] = input [ 4 / 2 ] ;\n step1 [ 5 ] = input [ 20 / 2 ] ;\n step1 [ 6 ] = input [ 12 / 2 ] ;\n step1 [ 7 ] = input [ 28 / 2 ] ;\n step1 [ 8 ] = input [ 2 / 2 ] ;\n step1 [ 9 ] = input [ 18 / 2 ] ;\n step1 [ 10 ] = input [ 10 / 2 ] ;\n step1 [ 11 ] = input [ 26 / 2 ] ;\n step1 [ 12 ] = input [ 6 / 2 ] ;\n step1 [ 13 ] = input [ 22 / 2 ] ;\n step1 [ 14 ] = input [ 14 / 2 ] ;\n step1 [ 15 ] = input [ 30 / 2 ] ;\n step2 [ 0 ] = step1 [ 0 ] ;\n step2 [ 1 ] = step1 [ 1 ] ;\n step2 [ 2 ] = step1 [ 2 ] ;\n step2 [ 3 ] = step1 [ 3 ] ;\n step2 [ 4 ] = step1 [ 4 ] ;\n step2 [ 5 ] = step1 [ 5 ] ;\n step2 [ 6 ] = step1 [ 6 ] ;\n step2 [ 7 ] = step1 [ 7 ] ;\n temp1 = step1 [ 8 ] * cospi_30_64 - step1 [ 15 ] * cospi_2_64 ;\n temp2 = step1 [ 8 ] * cospi_2_64 + step1 [ 15 ] * cospi_30_64 ;\n step2 [ 8 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 15 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = step1 [ 9 ] * cospi_14_64 - step1 [ 14 ] * cospi_18_64 ;\n temp2 = step1 [ 9 ] * cospi_18_64 + step1 [ 14 ] * cospi_14_64 ;\n step2 [ 9 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 14 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = step1 [ 10 ] * cospi_22_64 - step1 [ 13 ] * cospi_10_64 ;\n temp2 = step1 [ 10 ] * cospi_10_64 + step1 [ 13 ] * cospi_22_64 ;\n step2 [ 10 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 13 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = step1 [ 11 ] * cospi_6_64 - step1 [ 12 ] * cospi_26_64 ;\n temp2 = step1 [ 11 ] * cospi_26_64 + step1 [ 12 ] * cospi_6_64 ;\n step2 [ 11 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 12 ] = dct_const_round_shift ( temp2 ) ;\n step1 [ 0 ] = step2 [ 0 ] ;\n step1 [ 1 ] = step2 [ 1 ] ;\n step1 [ 2 ] = step2 [ 2 ] ;\n step1 [ 3 ] = step2 [ 3 ] ;\n temp1 = step2 [ 4 ] * cospi_28_64 - step2 [ 7 ] * cospi_4_64 ;\n temp2 = step2 [ 4 ] * cospi_4_64 + step2 [ 7 ] * cospi_28_64 ;\n step1 [ 4 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 7 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = step2 [ 5 ] * cospi_12_64 - step2 [ 6 ] * cospi_20_64 ;\n temp2 = step2 [ 5 ] * cospi_20_64 + step2 [ 6 ] * cospi_12_64 ;\n step1 [ 5 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 6 ] = dct_const_round_shift ( temp2 ) ;\n step1 [ 8 ] = step2 [ 8 ] + step2 [ 9 ] ;\n step1 [ 9 ] = step2 [ 8 ] - step2 [ 9 ] ;\n step1 [ 10 ] = - step2 [ 10 ] + step2 [ 11 ] ;\n step1 [ 11 ] = step2 [ 10 ] + step2 [ 11 ] ;\n step1 [ 12 ] = step2 [ 12 ] + step2 [ 13 ] ;\n step1 [ 13 ] = step2 [ 12 ] - step2 [ 13 ] ;\n step1 [ 14 ] = - step2 [ 14 ] + step2 [ 15 ] ;\n step1 [ 15 ] = step2 [ 14 ] + step2 [ 15 ] ;\n temp1 = ( step1 [ 0 ] + step1 [ 1 ] ) * cospi_16_64 ;\n temp2 = ( step1 [ 0 ] - step1 [ 1 ] ) * cospi_16_64 ;\n step2 [ 0 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 1 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = step1 [ 2 ] * cospi_24_64 - step1 [ 3 ] * cospi_8_64 ;\n temp2 = step1 [ 2 ] * cospi_8_64 + step1 [ 3 ] * cospi_24_64 ;\n step2 [ 2 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 3 ] = dct_const_round_shift ( temp2 ) ;\n step2 [ 4 ] = step1 [ 4 ] + step1 [ 5 ] ;\n step2 [ 5 ] = step1 [ 4 ] - step1 [ 5 ] ;\n step2 [ 6 ] = - step1 [ 6 ] + step1 [ 7 ] ;\n step2 [ 7 ] = step1 [ 6 ] + step1 [ 7 ] ;\n step2 [ 8 ] = step1 [ 8 ] ;\n step2 [ 15 ] = step1 [ 15 ] ;\n temp1 = - step1 [ 9 ] * cospi_8_64 + step1 [ 14 ] * cospi_24_64 ;\n temp2 = step1 [ 9 ] * cospi_24_64 + step1 [ 14 ] * cospi_8_64 ;\n step2 [ 9 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 14 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = - step1 [ 10 ] * cospi_24_64 - step1 [ 13 ] * cospi_8_64 ;\n temp2 = - step1 [ 10 ] * cospi_8_64 + step1 [ 13 ] * cospi_24_64 ;\n step2 [ 10 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 13 ] = dct_const_round_shift ( temp2 ) ;\n step2 [ 11 ] = step1 [ 11 ] ;\n step2 [ 12 ] = step1 [ 12 ] ;\n step1 [ 0 ] = step2 [ 0 ] + step2 [ 3 ] ;\n step1 [ 1 ] = step2 [ 1 ] + step2 [ 2 ] ;\n step1 [ 2 ] = step2 [ 1 ] - step2 [ 2 ] ;\n step1 [ 3 ] = step2 [ 0 ] - step2 [ 3 ] ;\n step1 [ 4 ] = step2 [ 4 ] ;\n temp1 = ( step2 [ 6 ] - step2 [ 5 ] ) * cospi_16_64 ;\n temp2 = ( step2 [ 5 ] + step2 [ 6 ] ) * cospi_16_64 ;\n step1 [ 5 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 6 ] = dct_const_round_shift ( temp2 ) ;\n step1 [ 7 ] = step2 [ 7 ] ;\n step1 [ 8 ] = step2 [ 8 ] + step2 [ 11 ] ;\n step1 [ 9 ] = step2 [ 9 ] + step2 [ 10 ] ;\n step1 [ 10 ] = step2 [ 9 ] - step2 [ 10 ] ;\n step1 [ 11 ] = step2 [ 8 ] - step2 [ 11 ] ;\n step1 [ 12 ] = - step2 [ 12 ] + step2 [ 15 ] ;\n step1 [ 13 ] = - step2 [ 13 ] + step2 [ 14 ] ;\n step1 [ 14 ] = step2 [ 13 ] + step2 [ 14 ] ;\n step1 [ 15 ] = step2 [ 12 ] + step2 [ 15 ] ;\n step2 [ 0 ] = step1 [ 0 ] + step1 [ 7 ] ;\n step2 [ 1 ] = step1 [ 1 ] + step1 [ 6 ] ;\n step2 [ 2 ] = step1 [ 2 ] + step1 [ 5 ] ;\n step2 [ 3 ] = step1 [ 3 ] + step1 [ 4 ] ;\n step2 [ 4 ] = step1 [ 3 ] - step1 [ 4 ] ;\n step2 [ 5 ] = step1 [ 2 ] - step1 [ 5 ] ;\n step2 [ 6 ] = step1 [ 1 ] - step1 [ 6 ] ;\n step2 [ 7 ] = step1 [ 0 ] - step1 [ 7 ] ;\n step2 [ 8 ] = step1 [ 8 ] ;\n step2 [ 9 ] = step1 [ 9 ] ;\n temp1 = ( - step1 [ 10 ] + step1 [ 13 ] ) * cospi_16_64 ;\n temp2 = ( step1 [ 10 ] + step1 [ 13 ] ) * cospi_16_64 ;\n step2 [ 10 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 13 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = ( - step1 [ 11 ] + step1 [ 12 ] ) * cospi_16_64 ;\n temp2 = ( step1 [ 11 ] + step1 [ 12 ] ) * cospi_16_64 ;\n step2 [ 11 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 12 ] = dct_const_round_shift ( temp2 ) ;\n step2 [ 14 ] = step1 [ 14 ] ;\n step2 [ 15 ] = step1 [ 15 ] ;\n output [ 0 ] = step2 [ 0 ] + step2 [ 15 ] ;\n output [ 1 ] = step2 [ 1 ] + step2 [ 14 ] ;\n output [ 2 ] = step2 [ 2 ] + step2 [ 13 ] ;\n output [ 3 ] = step2 [ 3 ] + step2 [ 12 ] ;\n output [ 4 ] = step2 [ 4 ] + step2 [ 11 ] ;\n output [ 5 ] = step2 [ 5 ] + step2 [ 10 ] ;\n output [ 6 ] = step2 [ 6 ] + step2 [ 9 ] ;\n output [ 7 ] = step2 [ 7 ] + step2 [ 8 ] ;\n output [ 8 ] = step2 [ 7 ] - step2 [ 8 ] ;\n output [ 9 ] = step2 [ 6 ] - step2 [ 9 ] ;\n output [ 10 ] = step2 [ 5 ] - step2 [ 10 ] ;\n output [ 11 ] = step2 [ 4 ] - step2 [ 11 ] ;\n output [ 12 ] = step2 [ 3 ] - step2 [ 12 ] ;\n output [ 13 ] = step2 [ 2 ] - step2 [ 13 ] ;\n output [ 14 ] = step2 [ 1 ] - step2 [ 14 ] ;\n output [ 15 ] = step2 [ 0 ] - step2 [ 15 ] ;\n }"}
{"idx": 2117, "target": 0, "func": "int X509_CRL_digest ( const X509_CRL * data , const EVP_MD * type , unsigned char * md , unsigned int * len ) {\n return ( ASN1_item_digest ( ASN1_ITEM_rptr ( X509_CRL ) , type , ( char * ) data , md , len ) ) ;\n }"}
{"idx": 2118, "target": 0, "func": "static int estimate_sid_gain ( G723_1_Context * p ) {\n int i , shift , seg , seg2 , t , val , val_add , x , y ;\n shift = 16 - p -> cur_gain * 2 ;\n if ( shift > 0 ) t = p -> sid_gain << shift ;\n else t = p -> sid_gain >> - shift ;\n x = t * cng_filt [ 0 ] >> 16 ;\n if ( x >= cng_bseg [ 2 ] ) return 0x3F ;\n if ( x >= cng_bseg [ 1 ] ) {\n shift = 4 ;\n seg = 3 ;\n }\n else {\n shift = 3 ;\n seg = ( x >= cng_bseg [ 0 ] ) ;\n }\n seg2 = FFMIN ( seg , 3 ) ;\n val = 1 << shift ;\n val_add = val >> 1 ;\n for ( i = 0 ;\n i < shift ;\n i ++ ) {\n t = seg * 32 + ( val << seg2 ) ;\n t *= t ;\n if ( x >= t ) val += val_add ;\n else val -= val_add ;\n val_add >>= 1 ;\n }\n t = seg * 32 + ( val << seg2 ) ;\n y = t * t - x ;\n if ( y <= 0 ) {\n t = seg * 32 + ( val + 1 << seg2 ) ;\n t = t * t - x ;\n val = ( seg2 - 1 << 4 ) + val ;\n if ( t >= y ) val ++ ;\n }\n else {\n t = seg * 32 + ( val - 1 << seg2 ) ;\n t = t * t - x ;\n val = ( seg2 - 1 << 4 ) + val ;\n if ( t >= y ) val -- ;\n }\n return val ;\n }"}
{"idx": 2119, "target": 1, "func": "static double calc_correction_factor ( double err_per_mb , double err_divisor , double pt_low , double pt_high , int q ) {\n const double error_term = err_per_mb / err_divisor ;\n const double power_term = MIN ( vp9_convert_qindex_to_q ( q ) * 0.0125 + pt_low , pt_high ) ;\n if ( power_term < 1.0 ) assert ( error_term >= 0.0 ) ;\n return fclamp ( pow ( error_term , power_term ) , 0.05 , 5.0 ) ;\n }"}
{"idx": 2120, "target": 0, "func": "int ialloc_add_clump ( gs_ref_memory_t * imem , ulong space , client_name_t cname ) {\n clump_t * cp ;\n imem -> is_controlled = false ;\n imem -> large_size = imem -> clump_size ;\n imem -> limit = max_long ;\n imem -> gc_status . max_vm = max_long ;\n cp = alloc_add_clump ( imem , space , cname ) ;\n imem -> procs . alloc_bytes_immovable = imem -> procs . alloc_bytes ;\n imem -> procs . alloc_struct_immovable = imem -> procs . alloc_struct ;\n imem -> procs . alloc_byte_array_immovable = imem -> procs . alloc_byte_array ;\n imem -> procs . alloc_struct_array_immovable = imem -> procs . alloc_struct_array ;\n imem -> procs . alloc_string_immovable = imem -> procs . alloc_string ;\n imem -> is_controlled = true ;\n imem -> limit = 0 ;\n return ( cp ? 0 : gs_note_error ( gs_error_VMerror ) ) ;\n }"}
{"idx": 2121, "target": 0, "func": "X509_ATTRIBUTE * X509_REQ_get_attr ( const X509_REQ * req , int loc ) {\n return X509at_get_attr ( req -> req_info -> attributes , loc ) ;\n }"}
{"idx": 2122, "target": 0, "func": "static gint dissect_btavdtp ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n proto_item * ti ;\n proto_tree * btavdtp_tree = NULL ;\n proto_tree * signal_tree = NULL ;\n proto_item * signal_item = NULL ;\n btl2cap_data_t * l2cap_data ;\n gint offset = 0 ;\n gint i_sep = 1 ;\n gint packet_type = 0 ;\n gint message_type = 0 ;\n gint signal_id = 0 ;\n guint delay ;\n wmem_tree_t * subtree ;\n wmem_tree_key_t key [ 8 ] ;\n channels_info_t * channels_info ;\n guint32 interface_id ;\n guint32 adapter_id ;\n guint32 chandle ;\n guint32 psm ;\n guint32 direction ;\n guint32 cid ;\n guint32 frame_number ;\n sep_entry_t * sep ;\n tvbuff_t * next_tvb ;\n guint32 seid ;\n gint codec = - 1 ;\n gint content_protection_type = 0 ;\n guint32 configuration_offset ;\n guint8 configuration_length ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"AVDTP\" ) ;\n direction = pinfo -> p2p_dir ;\n switch ( direction ) {\n case P2P_DIR_SENT : col_set_str ( pinfo -> cinfo , COL_INFO , \"Sent \" ) ;\n break ;\n case P2P_DIR_RECV : col_set_str ( pinfo -> cinfo , COL_INFO , \"Rcvd \" ) ;\n break ;\n default : col_set_str ( pinfo -> cinfo , COL_INFO , \"UnknownDirection \" ) ;\n goto LABEL_data ;\n }\n l2cap_data = ( btl2cap_data_t * ) data ;\n DISSECTOR_ASSERT ( l2cap_data ) ;\n interface_id = l2cap_data -> interface_id ;\n adapter_id = l2cap_data -> adapter_id ;\n chandle = l2cap_data -> chandle ;\n psm = l2cap_data -> psm ;\n cid = l2cap_data -> cid ;\n frame_number = pinfo -> num ;\n key [ 0 ] . length = 1 ;\n key [ 0 ] . key = & interface_id ;\n key [ 1 ] . length = 1 ;\n key [ 1 ] . key = & adapter_id ;\n key [ 2 ] . length = 1 ;\n key [ 2 ] . key = & chandle ;\n key [ 3 ] . length = 1 ;\n key [ 3 ] . key = & psm ;\n key [ 4 ] . length = 0 ;\n key [ 4 ] . key = NULL ;\n subtree = ( wmem_tree_t * ) wmem_tree_lookup32_array ( channels , key ) ;\n channels_info = ( subtree ) ? ( channels_info_t * ) wmem_tree_lookup32_le ( subtree , frame_number ) : NULL ;\n if ( ! ( channels_info && ( ( * channels_info -> adapter_disconnect_in_frame >= pinfo -> num && * channels_info -> hci_disconnect_in_frame >= pinfo -> num && * channels_info -> l2cap_disconnect_in_frame >= pinfo -> num && channels_info -> disconnect_in_frame >= pinfo -> num ) || ( * channels_info -> adapter_disconnect_in_frame == 0 || * channels_info -> hci_disconnect_in_frame == 0 || * channels_info -> l2cap_disconnect_in_frame == 0 || channels_info -> disconnect_in_frame == 0 ) ) ) ) {\n channels_info = ( channels_info_t * ) wmem_new ( wmem_file_scope ( ) , channels_info_t ) ;\n channels_info -> control_local_cid = l2cap_data -> local_cid ;\n channels_info -> control_remote_cid = l2cap_data -> remote_cid ;\n channels_info -> media_local_cid = BTL2CAP_UNKNOWN_CID ;\n channels_info -> media_remote_cid = BTL2CAP_UNKNOWN_CID ;\n channels_info -> disconnect_in_frame = max_disconnect_in_frame ;\n channels_info -> l2cap_disconnect_in_frame = l2cap_data -> disconnect_in_frame ;\n channels_info -> hci_disconnect_in_frame = l2cap_data -> hci_disconnect_in_frame ;\n channels_info -> adapter_disconnect_in_frame = l2cap_data -> adapter_disconnect_in_frame ;\n channels_info -> sep = NULL ;\n if ( ! pinfo -> fd -> flags . visited || ( * channels_info -> adapter_disconnect_in_frame == 0 || * channels_info -> hci_disconnect_in_frame == 0 || * channels_info -> l2cap_disconnect_in_frame == 0 || channels_info -> disconnect_in_frame == 0 ) ) {\n key [ 4 ] . length = 1 ;\n key [ 4 ] . key = & frame_number ;\n key [ 5 ] . length = 0 ;\n key [ 5 ] . key = NULL ;\n channels_info -> stream_numbers = wmem_tree_new ( wmem_file_scope ( ) ) ;\n if ( * channels_info -> adapter_disconnect_in_frame > 0 && * channels_info -> hci_disconnect_in_frame > 0 && * channels_info -> l2cap_disconnect_in_frame > 0 && channels_info -> disconnect_in_frame > 0 ) {\n wmem_tree_insert32_array ( channels , key , channels_info ) ;\n }\n }\n else {\n channels_info -> stream_numbers = NULL ;\n }\n }\n if ( ! ( l2cap_data -> local_cid == channels_info -> control_local_cid && l2cap_data -> remote_cid == channels_info -> control_remote_cid ) && ( channels_info -> media_local_cid == BTL2CAP_UNKNOWN_CID || ( l2cap_data -> local_cid == channels_info -> media_local_cid && l2cap_data -> remote_cid == channels_info -> media_remote_cid ) ) ) {\n if ( ! pinfo -> fd -> flags . visited && channels_info -> media_local_cid == BTL2CAP_UNKNOWN_CID ) {\n channels_info -> media_local_cid = l2cap_data -> local_cid ;\n channels_info -> media_remote_cid = l2cap_data -> remote_cid ;\n }\n if ( ! channels_info -> sep ) {\n ti = proto_tree_add_item ( tree , proto_btavdtp , tvb , offset , - 1 , ENC_NA ) ;\n btavdtp_tree = proto_item_add_subtree ( ti , ett_btavdtp ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"Media stream on cid=0x%04x\" , l2cap_data -> cid ) ;\n proto_tree_add_item ( btavdtp_tree , hf_btavdtp_data , tvb , offset , - 1 , ENC_NA ) ;\n }\n else {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"Media stream ACP SEID [%u - %s %s]\" , channels_info -> sep -> seid , get_sep_media_type ( interface_id , adapter_id , chandle , direction , channels_info -> sep -> seid , frame_number ) , get_sep_type ( interface_id , adapter_id , chandle , direction , channels_info -> sep -> seid , frame_number ) ) ;\n if ( channels_info -> sep -> media_type == MEDIA_TYPE_AUDIO ) {\n sep_data_t sep_data ;\n media_stream_number_value_t * media_stream_number_value ;\n media_packet_info_t * previous_media_packet_info ;\n media_packet_info_t * current_media_packet_info ;\n nstime_t first_abs_ts ;\n gdouble cumulative_frame_duration ;\n gdouble avrcp_song_position = - 1.0 ;\n btavrcp_song_position_data_t * song_position_data ;\n sep_data . codec = channels_info -> sep -> codec ;\n sep_data . vendor_id = channels_info -> sep -> vendor_id ;\n sep_data . vendor_codec = channels_info -> sep -> vendor_codec ;\n sep_data . acp_seid = channels_info -> sep -> seid ;\n sep_data . int_seid = channels_info -> sep -> int_seid ;\n sep_data . content_protection_type = channels_info -> sep -> content_protection_type ;\n sep_data . stream_start_in_frame = 0 ;\n sep_data . stream_end_in_frame = 0 ;\n sep_data . configuration_length = channels_info -> sep -> configuration_length ;\n sep_data . configuration = channels_info -> sep -> configuration ;\n media_stream_number_value = ( media_stream_number_value_t * ) wmem_tree_lookup32_le ( channels_info -> stream_numbers , frame_number - 1 ) ;\n if ( media_stream_number_value ) {\n sep_data . stream_number = media_stream_number_value -> stream_number ;\n if ( media_stream_number_value -> stream_start_in_frame == 0 ) media_stream_number_value -> stream_start_in_frame = pinfo -> num ;\n if ( ! pinfo -> fd -> flags . visited ) media_stream_number_value -> stream_end_in_frame = pinfo -> num ;\n sep_data . stream_start_in_frame = media_stream_number_value -> stream_start_in_frame ;\n sep_data . stream_end_in_frame = media_stream_number_value -> stream_end_in_frame ;\n }\n else {\n sep_data . stream_number = 1 ;\n }\n key [ 0 ] . length = 1 ;\n key [ 0 ] . key = & interface_id ;\n key [ 1 ] . length = 1 ;\n key [ 1 ] . key = & adapter_id ;\n key [ 3 ] . length = 1 ;\n key [ 3 ] . key = & cid ;\n key [ 4 ] . length = 1 ;\n key [ 4 ] . key = & direction ;\n key [ 5 ] . length = 0 ;\n key [ 5 ] . key = NULL ;\n key [ 2 ] . length = 0 ;\n key [ 2 ] . key = NULL ;\n subtree = ( wmem_tree_t * ) wmem_tree_lookup32_array ( btavrcp_song_positions , key ) ;\n song_position_data = ( subtree ) ? ( btavrcp_song_position_data_t * ) wmem_tree_lookup32_le ( subtree , frame_number ) : NULL ;\n if ( song_position_data && ( song_position_data -> used_in_frame == 0 || song_position_data -> used_in_frame == frame_number ) ) {\n avrcp_song_position = song_position_data -> song_position ;\n if ( ! pinfo -> fd -> flags . visited ) song_position_data -> used_in_frame = frame_number ;\n }\n key [ 2 ] . length = 1 ;\n key [ 2 ] . key = & chandle ;\n subtree = ( wmem_tree_t * ) wmem_tree_lookup32_array ( media_packet_times , key ) ;\n previous_media_packet_info = ( subtree ) ? ( media_packet_info_t * ) wmem_tree_lookup32_le ( subtree , frame_number - 1 ) : NULL ;\n if ( previous_media_packet_info && previous_media_packet_info -> stream_number == sep_data . stream_number ) {\n sep_data . previous_media_packet_info = previous_media_packet_info ;\n first_abs_ts = previous_media_packet_info -> first_abs_ts ;\n cumulative_frame_duration = previous_media_packet_info -> cumulative_frame_duration ;\n if ( avrcp_song_position == - 1.0 ) avrcp_song_position = previous_media_packet_info -> avrcp_song_position ;\n else previous_media_packet_info -> avrcp_song_position = avrcp_song_position ;\n }\n else {\n if ( avrcp_song_position == - 1.0 ) avrcp_song_position = 0.0 ;\n first_abs_ts = pinfo -> abs_ts ;\n cumulative_frame_duration = 0.0 ;\n sep_data . previous_media_packet_info = ( media_packet_info_t * ) wmem_new ( wmem_epan_scope ( ) , media_packet_info_t ) ;\n sep_data . previous_media_packet_info -> abs_ts = pinfo -> abs_ts ;\n sep_data . previous_media_packet_info -> first_abs_ts = first_abs_ts ;\n sep_data . previous_media_packet_info -> cumulative_frame_duration = cumulative_frame_duration ;\n sep_data . previous_media_packet_info -> avrcp_song_position = avrcp_song_position ;\n sep_data . previous_media_packet_info -> stream_number = sep_data . stream_number ;\n }\n if ( ! pinfo -> fd -> flags . visited ) {\n key [ 5 ] . length = 1 ;\n key [ 5 ] . key = & frame_number ;\n key [ 6 ] . length = 0 ;\n key [ 6 ] . key = NULL ;\n if ( avrcp_song_position == - 1.0 ) avrcp_song_position = 0.0 ;\n current_media_packet_info = wmem_new ( wmem_file_scope ( ) , media_packet_info_t ) ;\n current_media_packet_info -> abs_ts = pinfo -> abs_ts ;\n current_media_packet_info -> first_abs_ts = first_abs_ts ;\n current_media_packet_info -> cumulative_frame_duration = cumulative_frame_duration ;\n current_media_packet_info -> avrcp_song_position = avrcp_song_position ;\n current_media_packet_info -> stream_number = sep_data . stream_number ;\n wmem_tree_insert32_array ( media_packet_times , key , current_media_packet_info ) ;\n }\n key [ 5 ] . length = 0 ;\n key [ 5 ] . key = NULL ;\n subtree = ( wmem_tree_t * ) wmem_tree_lookup32_array ( media_packet_times , key ) ;\n current_media_packet_info = ( subtree ) ? ( media_packet_info_t * ) wmem_tree_lookup32 ( subtree , frame_number ) : NULL ;\n if ( current_media_packet_info ) sep_data . current_media_packet_info = current_media_packet_info ;\n else sep_data . current_media_packet_info = NULL ;\n next_tvb = tvb_new_subset_remaining ( tvb , offset ) ;\n call_dissector_with_data ( bta2dp_handle , next_tvb , pinfo , tree , & sep_data ) ;\n }\n else if ( channels_info -> sep -> media_type == MEDIA_TYPE_VIDEO ) {\n sep_data_t sep_data ;\n media_stream_number_value_t * media_stream_number_value ;\n sep_data . codec = channels_info -> sep -> codec ;\n sep_data . vendor_id = channels_info -> sep -> vendor_id ;\n sep_data . vendor_codec = channels_info -> sep -> vendor_codec ;\n sep_data . acp_seid = channels_info -> sep -> seid ;\n sep_data . int_seid = channels_info -> sep -> int_seid ;\n sep_data . content_protection_type = channels_info -> sep -> content_protection_type ;\n sep_data . stream_start_in_frame = 0 ;\n sep_data . stream_end_in_frame = 0 ;\n sep_data . configuration_length = channels_info -> sep -> configuration_length ;\n sep_data . configuration = channels_info -> sep -> configuration ;\n media_stream_number_value = ( media_stream_number_value_t * ) wmem_tree_lookup32_le ( channels_info -> stream_numbers , frame_number - 1 ) ;\n if ( media_stream_number_value ) {\n sep_data . stream_number = media_stream_number_value -> stream_number ;\n }\n else {\n sep_data . stream_number = 1 ;\n }\n next_tvb = tvb_new_subset_remaining ( tvb , offset ) ;\n call_dissector_with_data ( btvdp_handle , next_tvb , pinfo , tree , & sep_data ) ;\n }\n else {\n ti = proto_tree_add_item ( tree , proto_btavdtp , tvb , offset , - 1 , ENC_NA ) ;\n btavdtp_tree = proto_item_add_subtree ( ti , ett_btavdtp ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"Media stream on cid=0x%04x\" , l2cap_data -> cid ) ;\n proto_tree_add_item ( btavdtp_tree , hf_btavdtp_data , tvb , offset , - 1 , ENC_NA ) ;\n }\n }\n return tvb_reported_length ( tvb ) ;\n }\n else if ( ! ( l2cap_data -> local_cid == channels_info -> control_local_cid && l2cap_data -> remote_cid == channels_info -> control_remote_cid ) ) {\n ti = proto_tree_add_item ( tree , proto_btavdtp , tvb , offset , - 1 , ENC_NA ) ;\n btavdtp_tree = proto_item_add_subtree ( ti , ett_btavdtp ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"Unknown channel stream on cid=0x%04x\" , l2cap_data -> cid ) ;\n proto_tree_add_item ( btavdtp_tree , hf_btavdtp_data , tvb , offset , - 1 , ENC_NA ) ;\n return tvb_reported_length ( tvb ) ;\n }\n ti = proto_tree_add_item ( tree , proto_btavdtp , tvb , offset , - 1 , ENC_NA ) ;\n btavdtp_tree = proto_item_add_subtree ( ti , ett_btavdtp ) ;\n message_type = ( tvb_get_guint8 ( tvb , offset ) & AVDTP_MESSAGE_TYPE_MASK ) ;\n packet_type = ( tvb_get_guint8 ( tvb , offset ) & AVDTP_PACKET_TYPE_MASK ) >> 2 ;\n signal_item = proto_tree_add_item ( btavdtp_tree , hf_btavdtp_signal , tvb , offset , ( packet_type == PACKET_TYPE_START ) ? 3 : 2 , ENC_NA ) ;\n signal_tree = proto_item_add_subtree ( signal_item , ett_btavdtp_sep ) ;\n proto_tree_add_item ( signal_tree , hf_btavdtp_transaction , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( signal_tree , hf_btavdtp_packet_type , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( signal_tree , hf_btavdtp_message_type , tvb , offset , 1 , ENC_NA ) ;\n if ( packet_type == PACKET_TYPE_START ) {\n offset += 1 ;\n proto_tree_add_item ( signal_tree , hf_btavdtp_number_of_signal_packets , tvb , offset , 1 , ENC_NA ) ;\n }\n if ( packet_type == PACKET_TYPE_CONTINUE || packet_type == PACKET_TYPE_END ) goto LABEL_data ;\n offset += 1 ;\n proto_tree_add_item ( signal_tree , hf_btavdtp_rfa0 , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( signal_tree , hf_btavdtp_signal_id , tvb , offset , 1 , ENC_NA ) ;\n signal_id = tvb_get_guint8 ( tvb , offset ) & AVDTP_SIGNAL_ID_MASK ;\n proto_item_append_text ( signal_item , \": %s (%s)\" , val_to_str_const ( signal_id , signal_id_vals , \"Unknown signal\" ) , val_to_str_const ( message_type , message_type_vals , \"Unknown message type\" ) ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"%s - %s\" , val_to_str_const ( message_type , message_type_vals , \"Unknown message type\" ) , val_to_str_const ( signal_id , signal_id_vals , \"Unknown signal\" ) ) ;\n offset += 1 ;\n if ( message_type != MESSAGE_TYPE_GENERAL_REJECT ) switch ( signal_id ) {\n case SIGNAL_ID_DISCOVER : if ( message_type == MESSAGE_TYPE_COMMAND ) break ;\n if ( message_type == MESSAGE_TYPE_REJECT ) {\n proto_tree_add_item ( btavdtp_tree , hf_btavdtp_error_code , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n }\n offset = dissect_sep ( tvb , pinfo , btavdtp_tree , offset , interface_id , adapter_id , chandle ) ;\n break ;\n case SIGNAL_ID_GET_CAPABILITIES : case SIGNAL_ID_GET_ALL_CAPABILITIES : if ( message_type == MESSAGE_TYPE_COMMAND ) {\n offset = dissect_seid ( tvb , pinfo , btavdtp_tree , offset , SEID_ACP , 0 , NULL , interface_id , adapter_id , chandle , frame_number ) ;\n break ;\n }\n if ( message_type == MESSAGE_TYPE_REJECT ) {\n proto_tree_add_item ( btavdtp_tree , hf_btavdtp_error_code , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n }\n offset = dissect_capabilities ( tvb , pinfo , btavdtp_tree , offset , NULL , NULL , NULL , NULL , NULL , NULL ) ;\n break ;\n case SIGNAL_ID_SET_CONFIGURATION : if ( message_type == MESSAGE_TYPE_COMMAND ) {\n guint32 int_seid ;\n guint32 vendor_id ;\n guint16 vendor_codec ;\n guint32 reverse_direction ;\n offset = dissect_seid ( tvb , pinfo , btavdtp_tree , offset , SEID_ACP , 0 , & seid , interface_id , adapter_id , chandle , frame_number ) ;\n offset = dissect_seid ( tvb , pinfo , btavdtp_tree , offset , SEID_INT , 0 , & int_seid , interface_id , adapter_id , chandle , frame_number ) ;\n offset = dissect_capabilities ( tvb , pinfo , btavdtp_tree , offset , & codec , & content_protection_type , & vendor_id , & vendor_codec , & configuration_offset , & configuration_length ) ;\n if ( ! pinfo -> fd -> flags . visited ) {\n key [ 0 ] . length = 1 ;\n key [ 0 ] . key = & interface_id ;\n key [ 1 ] . length = 1 ;\n key [ 1 ] . key = & adapter_id ;\n key [ 2 ] . length = 1 ;\n key [ 2 ] . key = & chandle ;\n key [ 3 ] . length = 1 ;\n key [ 3 ] . key = & direction ;\n key [ 4 ] . length = 1 ;\n key [ 4 ] . key = & seid ;\n key [ 5 ] . length = 0 ;\n key [ 5 ] . key = NULL ;\n subtree = ( wmem_tree_t * ) wmem_tree_lookup32_array ( sep_list , key ) ;\n sep = ( subtree ) ? ( sep_entry_t * ) wmem_tree_lookup32_le ( subtree , frame_number ) : NULL ;\n if ( sep ) {\n sep -> codec = codec ;\n sep -> vendor_id = vendor_id ;\n sep -> vendor_codec = vendor_codec ;\n sep -> content_protection_type = content_protection_type ;\n sep -> int_seid = int_seid ;\n if ( configuration_length > 0 ) {\n sep -> configuration_length = configuration_length ;\n sep -> configuration = ( guint8 * ) tvb_memdup ( wmem_file_scope ( ) , tvb , configuration_offset , configuration_length ) ;\n }\n if ( direction == P2P_DIR_SENT ) reverse_direction = P2P_DIR_RECV ;\n else if ( direction == P2P_DIR_RECV ) reverse_direction = P2P_DIR_SENT ;\n else reverse_direction = P2P_DIR_UNKNOWN ;\n key [ 3 ] . length = 1 ;\n key [ 3 ] . key = & reverse_direction ;\n key [ 4 ] . length = 1 ;\n key [ 4 ] . key = & int_seid ;\n key [ 5 ] . length = 1 ;\n key [ 5 ] . key = & frame_number ;\n key [ 6 ] . length = 0 ;\n key [ 6 ] . key = NULL ;\n wmem_tree_insert32_array ( sep_list , key , sep ) ;\n }\n }\n break ;\n }\n if ( message_type == MESSAGE_TYPE_REJECT ) {\n proto_tree_add_item ( btavdtp_tree , hf_btavdtp_service_category , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( btavdtp_tree , hf_btavdtp_error_code , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n }\n break ;\n case SIGNAL_ID_GET_CONFIGURATION : if ( message_type == MESSAGE_TYPE_COMMAND ) {\n offset = dissect_seid ( tvb , pinfo , btavdtp_tree , offset , SEID_ACP , 0 , NULL , interface_id , adapter_id , chandle , frame_number ) ;\n break ;\n }\n if ( message_type == MESSAGE_TYPE_REJECT ) {\n proto_tree_add_item ( btavdtp_tree , hf_btavdtp_error_code , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n }\n offset = dissect_capabilities ( tvb , pinfo , btavdtp_tree , offset , NULL , NULL , NULL , NULL , NULL , NULL ) ;\n break ;\n case SIGNAL_ID_RECONFIGURE : if ( message_type == MESSAGE_TYPE_COMMAND ) {\n guint32 vendor_id ;\n guint16 vendor_codec ;\n offset = dissect_seid ( tvb , pinfo , btavdtp_tree , offset , SEID_ACP , 0 , & seid , interface_id , adapter_id , chandle , frame_number ) ;\n offset = dissect_capabilities ( tvb , pinfo , btavdtp_tree , offset , & codec , & content_protection_type , & vendor_id , & vendor_codec , & configuration_offset , & configuration_length ) ;\n if ( ! pinfo -> fd -> flags . visited ) {\n key [ 0 ] . length = 1 ;\n key [ 0 ] . key = & interface_id ;\n key [ 1 ] . length = 1 ;\n key [ 1 ] . key = & adapter_id ;\n key [ 2 ] . length = 1 ;\n key [ 2 ] . key = & chandle ;\n key [ 3 ] . length = 1 ;\n key [ 3 ] . key = & direction ;\n key [ 4 ] . length = 1 ;\n key [ 4 ] . key = & seid ;\n key [ 5 ] . length = 0 ;\n key [ 5 ] . key = NULL ;\n subtree = ( wmem_tree_t * ) wmem_tree_lookup32_array ( sep_list , key ) ;\n sep = ( subtree ) ? ( sep_entry_t * ) wmem_tree_lookup32_le ( subtree , frame_number ) : NULL ;\n if ( sep ) {\n sep -> codec = codec ;\n sep -> vendor_id = vendor_id ;\n sep -> vendor_codec = vendor_codec ;\n sep -> content_protection_type = content_protection_type ;\n if ( configuration_length > 0 ) {\n sep -> configuration_length = configuration_length ;\n sep -> configuration = ( guint8 * ) tvb_memdup ( wmem_file_scope ( ) , tvb , configuration_offset , configuration_length ) ;\n }\n }\n }\n break ;\n }\n if ( message_type == MESSAGE_TYPE_REJECT ) {\n proto_tree_add_item ( btavdtp_tree , hf_btavdtp_service_category , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( btavdtp_tree , hf_btavdtp_error_code , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n }\n break ;\n case SIGNAL_ID_OPEN : if ( message_type == MESSAGE_TYPE_COMMAND ) {\n offset = dissect_seid ( tvb , pinfo , btavdtp_tree , offset , SEID_ACP , 0 , & seid , interface_id , adapter_id , chandle , frame_number ) ;\n if ( ! pinfo -> fd -> flags . visited ) {\n key [ 0 ] . length = 1 ;\n key [ 0 ] . key = & interface_id ;\n key [ 1 ] . length = 1 ;\n key [ 1 ] . key = & adapter_id ;\n key [ 2 ] . length = 1 ;\n key [ 2 ] . key = & chandle ;\n key [ 3 ] . length = 1 ;\n key [ 3 ] . key = & direction ;\n key [ 4 ] . length = 1 ;\n key [ 4 ] . key = & seid ;\n key [ 5 ] . length = 0 ;\n key [ 5 ] . key = NULL ;\n subtree = ( wmem_tree_t * ) wmem_tree_lookup32_array ( sep_list , key ) ;\n sep = ( subtree ) ? ( sep_entry_t * ) wmem_tree_lookup32_le ( subtree , frame_number ) : NULL ;\n if ( sep ) {\n sep -> state = SEP_STATE_OPEN ;\n key [ 3 ] . length = 1 ;\n key [ 3 ] . key = & frame_number ;\n key [ 4 ] . length = 0 ;\n key [ 4 ] . key = NULL ;\n wmem_tree_insert32_array ( sep_open , key , sep ) ;\n }\n }\n break ;\n }\n if ( message_type == MESSAGE_TYPE_REJECT ) {\n proto_tree_add_item ( btavdtp_tree , hf_btavdtp_error_code , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n }\n if ( message_type == MESSAGE_TYPE_ACCEPT && ! pinfo -> fd -> flags . visited ) {\n key [ 0 ] . length = 1 ;\n key [ 0 ] . key = & interface_id ;\n key [ 1 ] . length = 1 ;\n key [ 1 ] . key = & adapter_id ;\n key [ 2 ] . length = 1 ;\n key [ 2 ] . key = & chandle ;\n key [ 3 ] . length = 0 ;\n key [ 3 ] . key = NULL ;\n subtree = ( wmem_tree_t * ) wmem_tree_lookup32_array ( sep_open , key ) ;\n sep = ( subtree ) ? ( sep_entry_t * ) wmem_tree_lookup32_le ( subtree , frame_number ) : NULL ;\n if ( sep && sep -> state == SEP_STATE_OPEN ) {\n sep -> state = SEP_STATE_IN_USE ;\n channels_info -> sep = sep ;\n }\n }\n break ;\n case SIGNAL_ID_START : if ( message_type == MESSAGE_TYPE_COMMAND ) {\n i_sep = 1 ;\n while ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n offset = dissect_seid ( tvb , pinfo , btavdtp_tree , offset , SEID_ACP , i_sep , NULL , interface_id , adapter_id , chandle , frame_number ) ;\n i_sep += 1 ;\n }\n break ;\n }\n if ( message_type == MESSAGE_TYPE_REJECT ) {\n offset = dissect_seid ( tvb , pinfo , btavdtp_tree , offset , SEID_ACP , 0 , NULL , interface_id , adapter_id , chandle , frame_number ) ;\n proto_tree_add_item ( btavdtp_tree , hf_btavdtp_error_code , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n }\n if ( message_type == MESSAGE_TYPE_ACCEPT && ! pinfo -> fd -> flags . visited ) {\n media_stream_number_value_t * media_stream_number_value ;\n guint32 stream_number = 0 ;\n media_stream_number_value = ( media_stream_number_value_t * ) wmem_tree_lookup32_le ( channels_info -> stream_numbers , frame_number - 1 ) ;\n # if RTP_PLAYER_WORKAROUND == TRUE {\n media_stream_number_value_t * file_scope_stream_number_value ;\n if ( media_stream_number_value ) {\n stream_number = media_stream_number_value -> stream_number ;\n }\n else {\n file_scope_stream_number_value = ( media_stream_number_value_t * ) wmem_tree_lookup32_le ( file_scope_stream_number , frame_number - 1 ) ;\n if ( file_scope_stream_number_value ) stream_number = file_scope_stream_number_value -> stream_number + 1 ;\n else stream_number = 0 ;\n }\n file_scope_stream_number_value = wmem_new ( wmem_file_scope ( ) , media_stream_number_value_t ) ;\n file_scope_stream_number_value -> stream_number = stream_number ;\n wmem_tree_insert32 ( file_scope_stream_number , frame_number , file_scope_stream_number_value ) ;\n }\n # else if ( media_stream_number_value ) stream_number = media_stream_number_value -> stream_number ;\n else stream_number = 0 ;\n # endif media_stream_number_value = wmem_new ( wmem_file_scope ( ) , media_stream_number_value_t ) ;\n media_stream_number_value -> stream_number = stream_number + 1 ;\n media_stream_number_value -> stream_start_in_frame = 0 ;\n media_stream_number_value -> stream_end_in_frame = 0 ;\n wmem_tree_insert32 ( channels_info -> stream_numbers , frame_number , media_stream_number_value ) ;\n }\n break ;\n case SIGNAL_ID_CLOSE : if ( message_type == MESSAGE_TYPE_COMMAND ) {\n offset = dissect_seid ( tvb , pinfo , btavdtp_tree , offset , SEID_ACP , 0 , NULL , interface_id , adapter_id , chandle , frame_number ) ;\n break ;\n }\n if ( message_type == MESSAGE_TYPE_REJECT ) {\n proto_tree_add_item ( btavdtp_tree , hf_btavdtp_error_code , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n }\n if ( ! pinfo -> fd -> flags . visited && message_type == MESSAGE_TYPE_ACCEPT && channels_info -> disconnect_in_frame > pinfo -> num ) {\n channels_info -> disconnect_in_frame = pinfo -> num ;\n }\n break ;\n case SIGNAL_ID_SUSPEND : if ( message_type == MESSAGE_TYPE_COMMAND ) {\n i_sep = 1 ;\n while ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n offset = dissect_seid ( tvb , pinfo , btavdtp_tree , offset , SEID_ACP , i_sep , NULL , interface_id , adapter_id , chandle , frame_number ) ;\n i_sep += 1 ;\n }\n break ;\n }\n if ( message_type == MESSAGE_TYPE_REJECT ) {\n offset = dissect_seid ( tvb , pinfo , btavdtp_tree , offset , SEID_ACP , 0 , NULL , interface_id , adapter_id , chandle , frame_number ) ;\n proto_tree_add_item ( btavdtp_tree , hf_btavdtp_error_code , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n }\n break ;\n case SIGNAL_ID_ABORT : if ( message_type == MESSAGE_TYPE_COMMAND ) {\n offset = dissect_seid ( tvb , pinfo , btavdtp_tree , offset , SEID_ACP , 0 , NULL , interface_id , adapter_id , chandle , frame_number ) ;\n break ;\n }\n if ( message_type == MESSAGE_TYPE_REJECT ) {\n proto_tree_add_item ( btavdtp_tree , hf_btavdtp_error_code , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n }\n if ( ! pinfo -> fd -> flags . visited && message_type == MESSAGE_TYPE_ACCEPT && channels_info -> disconnect_in_frame > pinfo -> num ) {\n channels_info -> disconnect_in_frame = pinfo -> num ;\n }\n break ;\n case SIGNAL_ID_SECURITY_CONTROL : if ( message_type == MESSAGE_TYPE_COMMAND ) {\n offset = dissect_seid ( tvb , pinfo , btavdtp_tree , offset , SEID_ACP , 0 , NULL , interface_id , adapter_id , chandle , frame_number ) ;\n proto_tree_add_item ( btavdtp_tree , hf_btavdtp_data , tvb , offset , - 1 , ENC_NA ) ;\n offset += tvb_reported_length_remaining ( tvb , offset ) ;\n break ;\n }\n if ( message_type == MESSAGE_TYPE_REJECT ) {\n proto_tree_add_item ( btavdtp_tree , hf_btavdtp_error_code , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n }\n proto_tree_add_item ( btavdtp_tree , hf_btavdtp_data , tvb , offset , - 1 , ENC_NA ) ;\n offset += tvb_reported_length_remaining ( tvb , offset ) ;\n break ;\n case SIGNAL_ID_DELAY_REPORT : if ( message_type == MESSAGE_TYPE_COMMAND ) {\n proto_item * pitem ;\n delay = tvb_get_ntohs ( tvb , offset + 1 ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"(%u.%u ms)\" , delay / 10 , delay % 10 ) ;\n offset = dissect_seid ( tvb , pinfo , btavdtp_tree , offset , SEID_ACP , 0 , NULL , interface_id , adapter_id , chandle , frame_number ) ;\n pitem = proto_tree_add_item ( btavdtp_tree , hf_btavdtp_delay , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( pitem , \" (1/10 ms)\" ) ;\n offset += 2 ;\n break ;\n }\n if ( message_type == MESSAGE_TYPE_REJECT ) {\n proto_tree_add_item ( btavdtp_tree , hf_btavdtp_error_code , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n }\n break ;\n }\n LABEL_data : if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n proto_tree_add_item ( btavdtp_tree , hf_btavdtp_data , tvb , offset , - 1 , ENC_NA ) ;\n }\n return offset ;\n }"}
{"idx": 2123, "target": 0, "func": "static vpx_codec_err_t ctrl_set_svc_parameters ( vpx_codec_alg_priv_t * ctx , va_list args ) {\n VP9_COMP * const cpi = ctx -> cpi ;\n vpx_svc_extra_cfg_t * const params = va_arg ( args , vpx_svc_extra_cfg_t * ) ;\n int i ;\n for ( i = 0 ;\n i < cpi -> svc . number_spatial_layers ;\n ++ i ) {\n LAYER_CONTEXT * lc = & cpi -> svc . layer_context [ i ] ;\n lc -> max_q = params -> max_quantizers [ i ] ;\n lc -> min_q = params -> min_quantizers [ i ] ;\n lc -> scaling_factor_num = params -> scaling_factor_num [ i ] ;\n lc -> scaling_factor_den = params -> scaling_factor_den [ i ] ;\n }\n return VPX_CODEC_OK ;\n }"}
{"idx": 2124, "target": 1, "func": "int arm_cpu_caps ( void ) {\n int flags ;\n int mask ;\n if ( ! arm_cpu_env_flags ( & flags ) ) {\n return flags ;\n }\n mask = arm_cpu_env_mask ( ) ;\n # if HAVE_EDSP flags |= HAS_EDSP ;\n # endif # if HAVE_MEDIA flags |= HAS_MEDIA ;\n # endif # if HAVE_NEON flags |= HAS_NEON ;\n # endif return flags & mask ;\n }"}
{"idx": 2125, "target": 0, "func": "static int usbdev_notify ( struct notifier_block * self , unsigned long action , void * dev ) {\n switch ( action ) {\n case USB_DEVICE_ADD : break ;\n case USB_DEVICE_REMOVE : usbdev_remove ( dev ) ;\n break ;\n }\n return NOTIFY_OK ;\n }"}
{"idx": 2126, "target": 1, "func": "static int cinvideo_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n CinVideoContext * cin = avctx -> priv_data ;\n int i , y , palette_type , palette_colors_count , bitmap_frame_type , bitmap_frame_size , res = 0 ;\n palette_type = buf [ 0 ] ;\n palette_colors_count = AV_RL16 ( buf + 1 ) ;\n bitmap_frame_type = buf [ 3 ] ;\n buf += 4 ;\n bitmap_frame_size = buf_size - 4 ;\n if ( bitmap_frame_size < palette_colors_count * ( 3 + ( palette_type != 0 ) ) ) return AVERROR_INVALIDDATA ;\n if ( palette_type == 0 ) {\n if ( palette_colors_count > 256 ) return AVERROR_INVALIDDATA ;\n for ( i = 0 ;\n i < palette_colors_count ;\n ++ i ) {\n cin -> palette [ i ] = bytestream_get_le24 ( & buf ) ;\n bitmap_frame_size -= 3 ;\n }\n }\n else {\n for ( i = 0 ;\n i < palette_colors_count ;\n ++ i ) {\n cin -> palette [ buf [ 0 ] ] = AV_RL24 ( buf + 1 ) ;\n buf += 4 ;\n bitmap_frame_size -= 4 ;\n }\n }\n switch ( bitmap_frame_type ) {\n case 9 : cin_decode_rle ( buf , bitmap_frame_size , cin -> bitmap_table [ CIN_CUR_BMP ] , cin -> bitmap_size ) ;\n break ;\n case 34 : cin_decode_rle ( buf , bitmap_frame_size , cin -> bitmap_table [ CIN_CUR_BMP ] , cin -> bitmap_size ) ;\n cin_apply_delta_data ( cin -> bitmap_table [ CIN_PRE_BMP ] , cin -> bitmap_table [ CIN_CUR_BMP ] , cin -> bitmap_size ) ;\n break ;\n case 35 : cin_decode_huffman ( buf , bitmap_frame_size , cin -> bitmap_table [ CIN_INT_BMP ] , cin -> bitmap_size ) ;\n cin_decode_rle ( cin -> bitmap_table [ CIN_INT_BMP ] , bitmap_frame_size , cin -> bitmap_table [ CIN_CUR_BMP ] , cin -> bitmap_size ) ;\n break ;\n case 36 : bitmap_frame_size = cin_decode_huffman ( buf , bitmap_frame_size , cin -> bitmap_table [ CIN_INT_BMP ] , cin -> bitmap_size ) ;\n cin_decode_rle ( cin -> bitmap_table [ CIN_INT_BMP ] , bitmap_frame_size , cin -> bitmap_table [ CIN_CUR_BMP ] , cin -> bitmap_size ) ;\n cin_apply_delta_data ( cin -> bitmap_table [ CIN_PRE_BMP ] , cin -> bitmap_table [ CIN_CUR_BMP ] , cin -> bitmap_size ) ;\n break ;\n case 37 : cin_decode_huffman ( buf , bitmap_frame_size , cin -> bitmap_table [ CIN_CUR_BMP ] , cin -> bitmap_size ) ;\n break ;\n case 38 : res = cin_decode_lzss ( buf , bitmap_frame_size , cin -> bitmap_table [ CIN_CUR_BMP ] , cin -> bitmap_size ) ;\n if ( res < 0 ) return res ;\n break ;\n case 39 : res = cin_decode_lzss ( buf , bitmap_frame_size , cin -> bitmap_table [ CIN_CUR_BMP ] , cin -> bitmap_size ) ;\n if ( res < 0 ) return res ;\n cin_apply_delta_data ( cin -> bitmap_table [ CIN_PRE_BMP ] , cin -> bitmap_table [ CIN_CUR_BMP ] , cin -> bitmap_size ) ;\n break ;\n }\n cin -> frame . buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE ;\n if ( avctx -> reget_buffer ( avctx , & cin -> frame ) ) {\n av_log ( cin -> avctx , AV_LOG_ERROR , \"delphinecinvideo: reget_buffer() failed to allocate a frame\\n\" ) ;\n return - 1 ;\n }\n memcpy ( cin -> frame . data [ 1 ] , cin -> palette , sizeof ( cin -> palette ) ) ;\n cin -> frame . palette_has_changed = 1 ;\n for ( y = 0 ;\n y < cin -> avctx -> height ;\n ++ y ) memcpy ( cin -> frame . data [ 0 ] + ( cin -> avctx -> height - 1 - y ) * cin -> frame . linesize [ 0 ] , cin -> bitmap_table [ CIN_CUR_BMP ] + y * cin -> avctx -> width , cin -> avctx -> width ) ;\n FFSWAP ( uint8_t * , cin -> bitmap_table [ CIN_CUR_BMP ] , cin -> bitmap_table [ CIN_PRE_BMP ] ) ;\n * got_frame = 1 ;\n * ( AVFrame * ) data = cin -> frame ;\n return buf_size ;\n }"}
{"idx": 2127, "target": 1, "func": "static ossl_inline type * lh_ ## type ## _insert ( LHASH_OF ( type ) * lh , type * d ) {\n return ( type * ) OPENSSL_LH_insert ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline type * lh_ ## type ## _delete ( LHASH_OF ( type ) * lh , const type * d ) {\n return ( type * ) OPENSSL_LH_delete ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline type * lh_ ## type ## _retrieve ( LHASH_OF ( type ) * lh , const type * d ) {\n return ( type * ) OPENSSL_LH_retrieve ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline int lh_ ## type ## _error ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_error ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _num_items ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_num_items ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _node_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _node_usage_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_usage_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING ) ;\n # ifdef _MSC_VER # pragma warning ( push ) # pragma warning ( disable : 4090 ) # endif DEFINE_LHASH_OF ( OPENSSL_CSTRING )"}
{"idx": 2128, "target": 1, "func": "void configure_buffer_updates ( VP9_COMP * cpi ) {\n TWO_PASS * const twopass = & cpi -> twopass ;\n cpi -> rc . is_src_frame_alt_ref = 0 ;\n switch ( twopass -> gf_group . update_type [ twopass -> gf_group . index ] ) {\n case KF_UPDATE : cpi -> refresh_last_frame = 1 ;\n cpi -> refresh_golden_frame = 1 ;\n cpi -> refresh_alt_ref_frame = 1 ;\n break ;\n case LF_UPDATE : cpi -> refresh_last_frame = 1 ;\n cpi -> refresh_golden_frame = 0 ;\n cpi -> refresh_alt_ref_frame = 0 ;\n break ;\n case GF_UPDATE : cpi -> refresh_last_frame = 1 ;\n cpi -> refresh_golden_frame = 1 ;\n cpi -> refresh_alt_ref_frame = 0 ;\n break ;\n case OVERLAY_UPDATE : cpi -> refresh_last_frame = 0 ;\n cpi -> refresh_golden_frame = 1 ;\n cpi -> refresh_alt_ref_frame = 0 ;\n cpi -> rc . is_src_frame_alt_ref = 1 ;\n break ;\n case ARF_UPDATE : cpi -> refresh_last_frame = 0 ;\n cpi -> refresh_golden_frame = 0 ;\n cpi -> refresh_alt_ref_frame = 1 ;\n break ;\n default : assert ( 0 ) ;\n break ;\n }\n if ( is_two_pass_svc ( cpi ) ) {\n if ( cpi -> svc . layer_context [ cpi -> svc . spatial_layer_id ] . gold_ref_idx < 0 ) cpi -> refresh_golden_frame = 0 ;\n if ( cpi -> alt_ref_source == NULL ) cpi -> refresh_alt_ref_frame = 0 ;\n }\n }"}
{"idx": 2129, "target": 0, "func": "void ef_globals_free ( void ) {\n SAFE_FREE ( ef_gbls -> source_file ) ;\n SAFE_FREE ( ef_gbls -> output_file ) ;\n SAFE_FREE ( ef_gbls ) ;\n return ;\n }"}
{"idx": 2130, "target": 0, "func": "static void _slurm_rpc_epilog_complete ( slurm_msg_t * msg , bool * run_scheduler , bool running_composite ) {\n static int active_rpc_cnt = 0 ;\n static time_t config_update = 0 ;\n static bool defer_sched = false ;\n DEF_TIMERS ;\n slurmctld_lock_t job_write_lock = {\n READ_LOCK , WRITE_LOCK , WRITE_LOCK , NO_LOCK , NO_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n epilog_complete_msg_t * epilog_msg = ( epilog_complete_msg_t * ) msg -> data ;\n struct job_record * job_ptr ;\n char jbuf [ JBUFSIZ ] ;\n START_TIMER ;\n debug2 ( \"Processing RPC: MESSAGE_EPILOG_COMPLETE uid=%d\" , uid ) ;\n if ( ! validate_slurm_user ( uid ) ) {\n error ( \"Security violation, EPILOG_COMPLETE RPC from uid=%d\" , uid ) ;\n return ;\n }\n if ( ! running_composite ) {\n if ( config_update != slurmctld_conf . last_update ) {\n char * sched_params = slurm_get_sched_params ( ) ;\n defer_sched = ( sched_params && strstr ( sched_params , \"defer\" ) ) ;\n xfree ( sched_params ) ;\n config_update = slurmctld_conf . last_update ;\n }\n _throttle_start ( & active_rpc_cnt ) ;\n lock_slurmctld ( job_write_lock ) ;\n }\n if ( slurmctld_conf . debug_flags & DEBUG_FLAG_ROUTE ) info ( \"_slurm_rpc_epilog_complete: \" \"node_name = %s, job_id = %u\" , epilog_msg -> node_name , epilog_msg -> job_id ) ;\n if ( job_epilog_complete ( epilog_msg -> job_id , epilog_msg -> node_name , epilog_msg -> return_code ) ) * run_scheduler = true ;\n job_ptr = find_job_record ( epilog_msg -> job_id ) ;\n if ( epilog_msg -> return_code ) error ( \"%s: epilog error %s Node=%s Err=%s %s\" , __func__ , jobid2str ( job_ptr , jbuf , sizeof ( jbuf ) ) , epilog_msg -> node_name , slurm_strerror ( epilog_msg -> return_code ) , TIME_STR ) ;\n else debug2 ( \"%s: %s Node=%s %s\" , __func__ , jobid2str ( job_ptr , jbuf , sizeof ( jbuf ) ) , epilog_msg -> node_name , TIME_STR ) ;\n if ( ! running_composite ) {\n unlock_slurmctld ( job_write_lock ) ;\n _throttle_fini ( & active_rpc_cnt ) ;\n }\n END_TIMER2 ( \"_slurm_rpc_epilog_complete\" ) ;\n if ( ! running_composite && * run_scheduler ) {\n if ( ! LOTS_OF_AGENTS && ! defer_sched ) ( void ) schedule ( 0 ) ;\n schedule_node_save ( ) ;\n schedule_job_save ( ) ;\n }\n }"}
{"idx": 2131, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , AbortNewNavigation ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n GURL url ( embedded_test_server ( ) -> GetURL ( \"/title1.html\" ) ) ;\n NavigateParams params ( browser ( ) , url , ui : : PAGE_TRANSITION_LINK ) ;\n content : : TestNavigationManager manager ( browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) , url ) ;\n Navigate ( & params ) ;\n EXPECT_TRUE ( manager . WaitForRequestStart ( ) ) ;\n GURL url2 ( embedded_test_server ( ) -> GetURL ( \"/title2.html\" ) ) ;\n NavigateParams params2 ( browser ( ) , url2 , ui : : PAGE_TRANSITION_FROM_ADDRESS_BAR ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : LOAD_EVENT ) ;\n Navigate ( & params2 ) ;\n waiter -> Wait ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramAbortNewNavigationBeforeCommit , 1 ) ;\n }"}
{"idx": 2132, "target": 0, "func": "static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new ( sk_ ## t1 ## _compfunc compare ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new ( ( OPENSSL_sk_compfunc ) compare ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_null ( void ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_null ( ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_reserve ( sk_ ## t1 ## _compfunc compare , int n ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_reserve ( ( OPENSSL_sk_compfunc ) compare , n ) ;\n }\n static ossl_inline int sk_ ## t1 ## _reserve ( STACK_OF ( t1 ) * sk , int n ) {\n return OPENSSL_sk_reserve ( ( OPENSSL_STACK * ) sk , n ) ;\n }\n static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 2133, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( MimeHandlerViewTest , Basic ) {\n RunTest ( \"testBasic.csv\" ) ;\n }"}
{"idx": 2134, "target": 0, "func": "static inline float fung ( float x ) {\n if ( x >= 6.0f / 29.0f ) return x * x * x ;\n return ( 108.0f / 841.0f ) * ( x - ( 4.0f / 29.0f ) ) ;\n }"}
{"idx": 2135, "target": 0, "func": "static int dissect_h245_T_additionalPictureMemory ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_additionalPictureMemory , T_additionalPictureMemory_sequence ) ;\n return offset ;\n }"}
{"idx": 2136, "target": 0, "func": "static void gs_heap_enable_free ( gs_memory_t * mem , bool enable ) {\n if ( enable ) mem -> procs . free_object = gs_heap_free_object , mem -> procs . free_string = gs_heap_free_string ;\n else mem -> procs . free_object = gs_ignore_free_object , mem -> procs . free_string = gs_ignore_free_string ;\n }"}
{"idx": 2137, "target": 0, "func": "static vpx_codec_err_t ctrl_set_tile_columns ( vpx_codec_alg_priv_t * ctx , va_list args ) {\n struct vp9_extracfg extra_cfg = ctx -> extra_cfg ;\n extra_cfg . tile_columns = CAST ( VP9E_SET_TILE_COLUMNS , args ) ;\n return update_extra_cfg ( ctx , & extra_cfg ) ;\n }"}
{"idx": 2138, "target": 0, "func": "static void compactToUnicode2 ( UCMStates * states , uint16_t * * pUnicodeCodeUnits , _MBCSToUFallback * toUFallbacks , int32_t countToUFallbacks , UBool verbose ) {\n int32_t ( * oldStateTable ) [ 256 ] ;\n uint16_t count [ 256 ] ;\n uint16_t * oldUnicodeCodeUnits ;\n int32_t entry , offset , oldOffset , trailOffset , oldTrailOffset , savings , sum ;\n int32_t i , j , leadState , trailState , newState , fallback ;\n uint16_t unit ;\n if ( states -> outputType == MBCS_OUTPUT_2_SISO ) {\n leadState = 1 ;\n }\n else {\n leadState = 0 ;\n }\n uprv_memset ( count , 0 , sizeof ( count ) ) ;\n for ( i = 0 ;\n i < 256 ;\n ++ i ) {\n entry = states -> stateTable [ leadState ] [ i ] ;\n if ( MBCS_ENTRY_IS_TRANSITION ( entry ) ) {\n ++ count [ MBCS_ENTRY_TRANSITION_STATE ( entry ) ] ;\n }\n }\n trailState = 0 ;\n for ( i = 1 ;\n i < states -> countStates ;\n ++ i ) {\n if ( count [ i ] > count [ trailState ] ) {\n trailState = i ;\n }\n }\n uprv_memset ( count , 0 , sizeof ( count ) ) ;\n savings = 0 ;\n for ( i = 0 ;\n i < 256 ;\n ++ i ) {\n entry = states -> stateTable [ leadState ] [ i ] ;\n if ( MBCS_ENTRY_IS_TRANSITION ( entry ) && ( MBCS_ENTRY_TRANSITION_STATE ( entry ) ) == trailState ) {\n offset = MBCS_ENTRY_TRANSITION_OFFSET ( entry ) ;\n for ( j = 0 ;\n j < 256 ;\n ++ j ) {\n entry = states -> stateTable [ trailState ] [ j ] ;\n switch ( MBCS_ENTRY_FINAL_ACTION ( entry ) ) {\n case MBCS_STATE_VALID_16 : entry = offset + MBCS_ENTRY_FINAL_VALUE_16 ( entry ) ;\n if ( ( * pUnicodeCodeUnits ) [ entry ] == 0xfffe && ucm_findFallback ( toUFallbacks , countToUFallbacks , entry ) < 0 ) {\n ++ count [ i ] ;\n }\n else {\n j = 999 ;\n }\n break ;\n case MBCS_STATE_VALID_16_PAIR : entry = offset + MBCS_ENTRY_FINAL_VALUE_16 ( entry ) ;\n if ( ( * pUnicodeCodeUnits ) [ entry ] == 0xfffe ) {\n count [ i ] += 2 ;\n }\n else {\n j = 999 ;\n }\n break ;\n default : break ;\n }\n }\n if ( j == 256 ) {\n savings += count [ i ] ;\n }\n else {\n count [ i ] = 0 ;\n }\n }\n }\n savings = savings * 2 - 1024 ;\n if ( savings <= 0 ) {\n return ;\n }\n if ( verbose ) {\n printf ( \"compacting toUnicode data saves %ld bytes\\n\" , ( long ) savings ) ;\n }\n if ( states -> countStates >= MBCS_MAX_STATE_COUNT ) {\n fprintf ( stderr , \"cannot compact toUnicode because the maximum number of states is reached\\n\" ) ;\n return ;\n }\n oldStateTable = ( int32_t ( * ) [ 256 ] ) uprv_malloc ( states -> countStates * 1024 ) ;\n if ( oldStateTable == NULL ) {\n fprintf ( stderr , \"cannot compact toUnicode: out of memory\\n\" ) ;\n return ;\n }\n uprv_memcpy ( oldStateTable , states -> stateTable , states -> countStates * 1024 ) ;\n newState = states -> countStates ++ ;\n states -> stateFlags [ newState ] = 0 ;\n for ( i = 0 ;\n i < 256 ;\n ++ i ) {\n entry = states -> stateTable [ trailState ] [ i ] ;\n switch ( MBCS_ENTRY_FINAL_ACTION ( entry ) ) {\n case MBCS_STATE_VALID_16 : case MBCS_STATE_VALID_16_PAIR : states -> stateTable [ newState ] [ i ] = MBCS_ENTRY_FINAL_SET_ACTION_VALUE ( entry , MBCS_STATE_UNASSIGNED , 0xfffe ) ;\n break ;\n default : states -> stateTable [ newState ] [ i ] = entry ;\n break ;\n }\n }\n for ( i = 0 ;\n i < 256 ;\n ++ i ) {\n if ( count [ i ] > 0 ) {\n states -> stateTable [ leadState ] [ i ] = MBCS_ENTRY_SET_STATE ( states -> stateTable [ leadState ] [ i ] , newState ) ;\n }\n }\n for ( i = 0 ;\n i < states -> countStates ;\n ++ i ) {\n states -> stateFlags [ i ] &= ~ MBCS_STATE_FLAG_READY ;\n }\n sum = sumUpStates ( states ) ;\n oldUnicodeCodeUnits = * pUnicodeCodeUnits ;\n if ( sum == 0 ) {\n * pUnicodeCodeUnits = NULL ;\n if ( oldUnicodeCodeUnits != NULL ) {\n uprv_free ( oldUnicodeCodeUnits ) ;\n }\n uprv_free ( oldStateTable ) ;\n return ;\n }\n * pUnicodeCodeUnits = ( uint16_t * ) uprv_malloc ( sum * sizeof ( uint16_t ) ) ;\n if ( * pUnicodeCodeUnits == NULL ) {\n fprintf ( stderr , \"cannot compact toUnicode: out of memory allocating %ld 16-bit code units\\n\" , ( long ) sum ) ;\n * pUnicodeCodeUnits = oldUnicodeCodeUnits ;\n -- states -> countStates ;\n uprv_memcpy ( states -> stateTable , oldStateTable , states -> countStates * 1024 ) ;\n uprv_free ( oldStateTable ) ;\n return ;\n }\n for ( i = 0 ;\n i < sum ;\n ++ i ) {\n ( * pUnicodeCodeUnits ) [ i ] = 0xfffe ;\n }\n for ( leadState = 0 ;\n leadState < states -> countStates ;\n ++ leadState ) {\n if ( ( states -> stateFlags [ leadState ] & 0xf ) == MBCS_STATE_FLAG_DIRECT ) {\n for ( i = 0 ;\n i < 256 ;\n ++ i ) {\n entry = states -> stateTable [ leadState ] [ i ] ;\n if ( MBCS_ENTRY_IS_TRANSITION ( entry ) ) {\n trailState = ( uint8_t ) MBCS_ENTRY_TRANSITION_STATE ( entry ) ;\n if ( trailState != newState ) {\n trailOffset = MBCS_ENTRY_TRANSITION_OFFSET ( entry ) ;\n oldTrailOffset = MBCS_ENTRY_TRANSITION_OFFSET ( oldStateTable [ leadState ] [ i ] ) ;\n for ( j = 0 ;\n j < 256 ;\n ++ j ) {\n entry = states -> stateTable [ trailState ] [ j ] ;\n switch ( MBCS_ENTRY_FINAL_ACTION ( entry ) ) {\n case MBCS_STATE_VALID_16 : offset = trailOffset + MBCS_ENTRY_FINAL_VALUE_16 ( entry ) ;\n oldOffset = oldTrailOffset + MBCS_ENTRY_FINAL_VALUE_16 ( oldStateTable [ trailState ] [ j ] ) ;\n unit = ( * pUnicodeCodeUnits ) [ offset ] = oldUnicodeCodeUnits [ oldOffset ] ;\n if ( unit == 0xfffe && ( fallback = ucm_findFallback ( toUFallbacks , countToUFallbacks , oldOffset ) ) >= 0 ) {\n toUFallbacks [ fallback ] . offset = 0x80000000 | offset ;\n }\n break ;\n case MBCS_STATE_VALID_16_PAIR : offset = trailOffset + MBCS_ENTRY_FINAL_VALUE_16 ( entry ) ;\n oldOffset = oldTrailOffset + MBCS_ENTRY_FINAL_VALUE_16 ( oldStateTable [ trailState ] [ j ] ) ;\n ( * pUnicodeCodeUnits ) [ offset ++ ] = oldUnicodeCodeUnits [ oldOffset ++ ] ;\n ( * pUnicodeCodeUnits ) [ offset ] = oldUnicodeCodeUnits [ oldOffset ] ;\n break ;\n default : break ;\n }\n }\n }\n }\n }\n }\n }\n for ( i = 0 ;\n i < countToUFallbacks ;\n ++ i ) {\n toUFallbacks [ i ] . offset &= 0x7fffffff ;\n }\n uprv_free ( oldUnicodeCodeUnits ) ;\n uprv_free ( oldStateTable ) ;\n }"}
{"idx": 2139, "target": 0, "func": "static xmlLinkPtr xmlListLinkReverseSearch ( xmlListPtr l , void * data ) {\n xmlLinkPtr lk ;\n if ( l == NULL ) return ( NULL ) ;\n lk = xmlListHigherSearch ( l , data ) ;\n if ( lk == l -> sentinel ) return NULL ;\n else {\n if ( l -> linkCompare ( lk -> data , data ) == 0 ) return lk ;\n return NULL ;\n }\n }"}
{"idx": 2140, "target": 0, "func": "CURLcode Curl_http_input_auth ( struct connectdata * conn , bool proxy , const char * auth ) {\n struct Curl_easy * data = conn -> data ;\n # ifdef USE_SPNEGO struct negotiatedata * negdata = proxy ? & data -> state . proxyneg : & data -> state . negotiate ;\n # endif unsigned long * availp ;\n struct auth * authp ;\n if ( proxy ) {\n availp = & data -> info . proxyauthavail ;\n authp = & data -> state . authproxy ;\n }\n else {\n availp = & data -> info . httpauthavail ;\n authp = & data -> state . authhost ;\n }\n while ( * auth ) {\n # ifdef USE_SPNEGO if ( checkprefix ( \"Negotiate\" , auth ) ) {\n if ( ( authp -> avail & CURLAUTH_NEGOTIATE ) || Curl_auth_is_spnego_supported ( ) ) {\n * availp |= CURLAUTH_NEGOTIATE ;\n authp -> avail |= CURLAUTH_NEGOTIATE ;\n if ( authp -> picked == CURLAUTH_NEGOTIATE ) {\n if ( negdata -> state == GSS_AUTHSENT || negdata -> state == GSS_AUTHNONE ) {\n CURLcode result = Curl_input_negotiate ( conn , proxy , auth ) ;\n if ( ! result ) {\n DEBUGASSERT ( ! data -> req . newurl ) ;\n data -> req . newurl = strdup ( data -> change . url ) ;\n if ( ! data -> req . newurl ) return CURLE_OUT_OF_MEMORY ;\n data -> state . authproblem = FALSE ;\n negdata -> state = GSS_AUTHRECV ;\n }\n else data -> state . authproblem = TRUE ;\n }\n }\n }\n }\n else # endif # ifdef USE_NTLM if ( checkprefix ( \"NTLM\" , auth ) ) {\n if ( ( authp -> avail & CURLAUTH_NTLM ) || ( authp -> avail & CURLAUTH_NTLM_WB ) || Curl_auth_is_ntlm_supported ( ) ) {\n * availp |= CURLAUTH_NTLM ;\n authp -> avail |= CURLAUTH_NTLM ;\n if ( authp -> picked == CURLAUTH_NTLM || authp -> picked == CURLAUTH_NTLM_WB ) {\n CURLcode result = Curl_input_ntlm ( conn , proxy , auth ) ;\n if ( ! result ) {\n data -> state . authproblem = FALSE ;\n # ifdef NTLM_WB_ENABLED if ( authp -> picked == CURLAUTH_NTLM_WB ) {\n * availp &= ~ CURLAUTH_NTLM ;\n authp -> avail &= ~ CURLAUTH_NTLM ;\n * availp |= CURLAUTH_NTLM_WB ;\n authp -> avail |= CURLAUTH_NTLM_WB ;\n while ( * auth && ISSPACE ( * auth ) ) auth ++ ;\n if ( checkprefix ( \"NTLM\" , auth ) ) {\n auth += strlen ( \"NTLM\" ) ;\n while ( * auth && ISSPACE ( * auth ) ) auth ++ ;\n if ( * auth ) if ( ( conn -> challenge_header = strdup ( auth ) ) == NULL ) return CURLE_OUT_OF_MEMORY ;\n }\n }\n # endif }\n else {\n infof ( data , \"Authentication problem. Ignoring this.\\n\" ) ;\n data -> state . authproblem = TRUE ;\n }\n }\n }\n }\n else # endif # ifndef CURL_DISABLE_CRYPTO_AUTH if ( checkprefix ( \"Digest\" , auth ) ) {\n if ( ( authp -> avail & CURLAUTH_DIGEST ) != 0 ) infof ( data , \"Ignoring duplicate digest auth header.\\n\" ) ;\n else if ( Curl_auth_is_digest_supported ( ) ) {\n CURLcode result ;\n * availp |= CURLAUTH_DIGEST ;\n authp -> avail |= CURLAUTH_DIGEST ;\n result = Curl_input_digest ( conn , proxy , auth ) ;\n if ( result ) {\n infof ( data , \"Authentication problem. Ignoring this.\\n\" ) ;\n data -> state . authproblem = TRUE ;\n }\n }\n }\n else # endif if ( checkprefix ( \"Basic\" , auth ) ) {\n * availp |= CURLAUTH_BASIC ;\n authp -> avail |= CURLAUTH_BASIC ;\n if ( authp -> picked == CURLAUTH_BASIC ) {\n authp -> avail = CURLAUTH_NONE ;\n infof ( data , \"Authentication problem. Ignoring this.\\n\" ) ;\n data -> state . authproblem = TRUE ;\n }\n }\n while ( * auth && * auth != ',' ) auth ++ ;\n if ( * auth == ',' ) auth ++ ;\n while ( * auth && ISSPACE ( * auth ) ) auth ++ ;\n }\n return CURLE_OK ;\n }"}
{"idx": 2141, "target": 1, "func": "static inline void vmsvga_copy_rect ( struct vmsvga_state_s * s , int x0 , int y0 , int x1 , int y1 , int w , int h ) {\n DisplaySurface * surface = qemu_console_surface ( s -> vga . con ) ;\n uint8_t * vram = s -> vga . vram_ptr ;\n int bypl = surface_stride ( surface ) ;\n int bypp = surface_bytes_per_pixel ( surface ) ;\n int width = bypp * w ;\n int line = h ;\n uint8_t * ptr [ 2 ] ;\n if ( y1 > y0 ) {\n ptr [ 0 ] = vram + bypp * x0 + bypl * ( y0 + h - 1 ) ;\n ptr [ 1 ] = vram + bypp * x1 + bypl * ( y1 + h - 1 ) ;\n for ( ;\n line > 0 ;\n line -- , ptr [ 0 ] -= bypl , ptr [ 1 ] -= bypl ) {\n memmove ( ptr [ 1 ] , ptr [ 0 ] , width ) ;\n }\n }\n else {\n ptr [ 0 ] = vram + bypp * x0 + bypl * y0 ;\n ptr [ 1 ] = vram + bypp * x1 + bypl * y1 ;\n for ( ;\n line > 0 ;\n line -- , ptr [ 0 ] += bypl , ptr [ 1 ] += bypl ) {\n memmove ( ptr [ 1 ] , ptr [ 0 ] , width ) ;\n }\n }\n vmsvga_update_rect_delayed ( s , x1 , y1 , w , h ) ;\n }"}
{"idx": 2142, "target": 0, "func": "void fz_drop_colorspace ( fz_context * ctx , fz_colorspace * cs ) {\n fz_drop_key_storable ( ctx , & cs -> key_storable ) ;\n }"}
{"idx": 2143, "target": 0, "func": "static uint64_t openpic_cpu_read ( void * opaque , hwaddr addr , unsigned len ) {\n return openpic_cpu_read_internal ( opaque , addr , ( addr & 0x1f000 ) >> 12 ) ;\n }"}
{"idx": 2144, "target": 0, "func": "void proto_reg_handoff_AllJoyn ( void ) {\n static gboolean initialized = FALSE ;\n static dissector_handle_t alljoyn_handle_ns ;\n static dissector_handle_t alljoyn_handle_ardp ;\n if ( ! initialized ) {\n alljoyn_handle_ns = new_create_dissector_handle ( dissect_AllJoyn_name_server , proto_AllJoyn_ns ) ;\n alljoyn_handle_ardp = new_create_dissector_handle ( dissect_AllJoyn_ardp , proto_AllJoyn_ardp ) ;\n }\n else {\n dissector_delete_uint ( \"udp.port\" , name_server_port , alljoyn_handle_ns ) ;\n dissector_delete_uint ( \"tcp.port\" , name_server_port , alljoyn_handle_ns ) ;\n dissector_delete_uint ( \"udp.port\" , message_port , alljoyn_handle_ardp ) ;\n dissector_delete_uint ( \"tcp.port\" , message_port , alljoyn_handle_ardp ) ;\n }\n dissector_add_uint ( \"udp.port\" , name_server_port , alljoyn_handle_ns ) ;\n dissector_add_uint ( \"tcp.port\" , name_server_port , alljoyn_handle_ns ) ;\n dissector_add_uint ( \"udp.port\" , message_port , alljoyn_handle_ardp ) ;\n dissector_add_uint ( \"tcp.port\" , message_port , alljoyn_handle_ardp ) ;\n }"}
{"idx": 2145, "target": 0, "func": "static int opt_input_file_i ( void * optctx , const char * opt , const char * arg ) {\n opt_input_file ( optctx , arg ) ;\n return 0 ;\n }"}
{"idx": 2146, "target": 0, "func": "static PyObject * string_repr ( PyObject * op ) {\n return PyString_Repr ( op , 1 ) ;\n }"}
{"idx": 2147, "target": 0, "func": "static int dissect_h225_T_cryptoEPPwdHash ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_T_cryptoEPPwdHash , T_cryptoEPPwdHash_sequence ) ;\n return offset ;\n }"}
{"idx": 2148, "target": 0, "func": "static int evhttp_valid_response_code ( int code ) {\n if ( code == 0 ) return ( 0 ) ;\n return ( 1 ) ;\n }"}
{"idx": 2149, "target": 0, "func": "static int dissect_h245_ATMParameters ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_ATMParameters , ATMParameters_sequence ) ;\n return offset ;\n }"}
{"idx": 2150, "target": 0, "func": "static void dissect_zcl_appl_evtalt_get_alerts_rsp ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree * sub_tree = NULL ;\n guint i ;\n guint8 count ;\n count = tvb_get_guint8 ( tvb , * offset ) & ZBEE_ZCL_APPL_EVTALT_COUNT_NUM_MASK ;\n proto_tree_add_item ( tree , hf_zbee_zcl_appl_evtalt_count_num , tvb , * offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_appl_evtalt_count_type , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n sub_tree = proto_tree_add_subtree_format ( tree , tvb , * offset , 1 , ett_zbee_zcl_appl_evtalt_alerts_struct [ i ] , NULL , \"Alerts Structure #%u\" , i ) ;\n dissect_zcl_appl_evtalt_alerts_struct ( tvb , sub_tree , offset ) ;\n }\n }"}
{"idx": 2151, "target": 0, "func": "static void idr_register ( struct idr * idr , struct isoent * isoent , int weight , int noff ) {\n struct idrent * idrent , * n ;\n idrent = & ( idr -> idrent_pool [ idr -> pool_idx ++ ] ) ;\n idrent -> wnext = idrent -> avail = NULL ;\n idrent -> isoent = isoent ;\n idrent -> weight = weight ;\n idrent -> noff = noff ;\n idrent -> rename_num = 0 ;\n if ( ! __archive_rb_tree_insert_node ( & ( idr -> rbtree ) , & ( idrent -> rbnode ) ) ) {\n n = ( struct idrent * ) __archive_rb_tree_find_node ( & ( idr -> rbtree ) , idrent -> isoent ) ;\n if ( n != NULL ) {\n idrent -> avail = n ;\n * idr -> wait_list . last = idrent ;\n idr -> wait_list . last = & ( idrent -> wnext ) ;\n }\n }\n }"}
{"idx": 2152, "target": 0, "func": "static void proto_tree_set_guid ( field_info * fi , const e_guid_t * value_ptr ) {\n DISSECTOR_ASSERT ( value_ptr != NULL ) ;\n fvalue_set_guid ( & fi -> value , value_ptr ) ;\n }"}
{"idx": 2153, "target": 0, "func": "static void dissect_q931_restart_indicator_ie ( tvbuff_t * tvb , packet_info * pinfo , int offset , int len , proto_tree * tree , proto_item * item ) {\n if ( len != 1 ) {\n expert_add_info_format ( pinfo , item , & ei_q931_invalid_length , \"Restart indicator: length is %d, should be 1\" , len ) ;\n return ;\n }\n proto_tree_add_item ( tree , hf_q931_restart_indicator , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n }"}
{"idx": 2154, "target": 0, "func": "static inline void decompose_cluster ( const hb_ot_shape_normalize_context_t * c , unsigned int end , bool might_short_circuit , bool always_short_circuit ) {\n if ( likely ( c -> buffer -> idx + 1 == end ) ) decompose_current_character ( c , might_short_circuit ) ;\n else decompose_multi_char_cluster ( c , end , always_short_circuit ) ;\n }"}
{"idx": 2155, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( AppApiTest , ServerRedirectToAppFromExtension ) {\n LoadExtension ( test_data_dir_ . AppendASCII ( \"app_process\" ) ) ;\n const Extension * launcher = LoadExtension ( test_data_dir_ . AppendASCII ( \"app_launcher\" ) ) ;\n content : : TestNavigationObserver test_navigation_observer ( browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) , 2 ) ;\n test_navigation_observer . StartWatchingNewWebContents ( ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , launcher -> GetResourceURL ( \"server_redirect.html\" ) ) ;\n test_navigation_observer . Wait ( ) ;\n bool is_installed = false ;\n ASSERT_TRUE ( content : : ExecuteScriptAndExtractBool ( browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) , \"window.domAutomationController.send(chrome.app.isInstalled)\" , & is_installed ) ) ;\n ASSERT_TRUE ( is_installed ) ;\n }"}
{"idx": 2156, "target": 0, "func": "static inline void dct_single_coeff_elimination ( MpegEncContext * s , int n , int threshold ) {\n static const char tab [ 64 ] = {\n 3 , 2 , 2 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }\n ;\n int score = 0 ;\n int run = 0 ;\n int i ;\n int16_t * block = s -> block [ n ] ;\n const int last_index = s -> block_last_index [ n ] ;\n int skip_dc ;\n if ( threshold < 0 ) {\n skip_dc = 0 ;\n threshold = - threshold ;\n }\n else skip_dc = 1 ;\n if ( last_index <= skip_dc - 1 ) return ;\n for ( i = 0 ;\n i <= last_index ;\n i ++ ) {\n const int j = s -> intra_scantable . permutated [ i ] ;\n const int level = FFABS ( block [ j ] ) ;\n if ( level == 1 ) {\n if ( skip_dc && i == 0 ) continue ;\n score += tab [ run ] ;\n run = 0 ;\n }\n else if ( level > 1 ) {\n return ;\n }\n else {\n run ++ ;\n }\n }\n if ( score >= threshold ) return ;\n for ( i = skip_dc ;\n i <= last_index ;\n i ++ ) {\n const int j = s -> intra_scantable . permutated [ i ] ;\n block [ j ] = 0 ;\n }\n if ( block [ 0 ] ) s -> block_last_index [ n ] = 0 ;\n else s -> block_last_index [ n ] = - 1 ;\n }"}
{"idx": 2157, "target": 0, "func": "int evdns_clear_nameservers_and_suspend ( void ) {\n struct nameserver * server = server_head , * started_at = server_head ;\n struct request * req = req_head , * req_started_at = req_head ;\n if ( ! server ) return 0 ;\n while ( 1 ) {\n struct nameserver * next = server -> next ;\n ( void ) event_del ( & server -> event ) ;\n if ( evtimer_initialized ( & server -> timeout_event ) ) ( void ) evtimer_del ( & server -> timeout_event ) ;\n if ( server -> socket >= 0 ) CLOSE_SOCKET ( server -> socket ) ;\n free ( server ) ;\n if ( next == started_at ) break ;\n server = next ;\n }\n server_head = NULL ;\n global_good_nameservers = 0 ;\n while ( req ) {\n struct request * next = req -> next ;\n req -> tx_count = req -> reissue_count = 0 ;\n req -> ns = NULL ;\n ( void ) evtimer_del ( & req -> timeout_event ) ;\n req -> trans_id = 0 ;\n req -> transmit_me = 0 ;\n global_requests_waiting ++ ;\n evdns_request_insert ( req , & req_waiting_head ) ;\n req_waiting_head = req_waiting_head -> prev ;\n if ( next == req_started_at ) break ;\n req = next ;\n }\n req_head = NULL ;\n global_requests_inflight = 0 ;\n return 0 ;\n }"}
{"idx": 2158, "target": 0, "func": "static void dissect_zcl_pwr_prof_pwrprofnotif ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree * sub_tree = NULL ;\n guint i ;\n guint8 total_profile_number ;\n guint8 num_of_transferred_phases ;\n total_profile_number = tvb_get_guint8 ( tvb , * offset ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_tot_prof_num , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n if ( total_profile_number != 0 ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_pwr_prof_id , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n num_of_transferred_phases = tvb_get_guint8 ( tvb , * offset ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_num_of_trans_phases , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n for ( i = 0 ;\n i < num_of_transferred_phases ;\n i ++ ) {\n sub_tree = proto_tree_add_subtree_format ( tree , tvb , * offset , 1 , ett_zbee_zcl_pwr_prof_enphases [ i ] , NULL , \"Energy Phase #%u\" , i ) ;\n dissect_zcl_energy_phase ( tvb , sub_tree , offset ) ;\n }\n }\n }"}
{"idx": 2159, "target": 0, "func": "static Const * string_to_bytea_const ( const char * str , size_t str_len ) {\n bytea * bstr = palloc ( VARHDRSZ + str_len ) ;\n Datum conval ;\n memcpy ( VARDATA ( bstr ) , str , str_len ) ;\n SET_VARSIZE ( bstr , VARHDRSZ + str_len ) ;\n conval = PointerGetDatum ( bstr ) ;\n return makeConst ( BYTEAOID , - 1 , InvalidOid , - 1 , conval , false , false ) ;\n }"}
{"idx": 2160, "target": 0, "func": "static guint16 de_recall_type ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( offset << 3 ) , 5 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_recall_type , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n return ( 1 ) ;\n }"}
{"idx": 2161, "target": 0, "func": "int vp8_yv12_alloc_frame_buffer ( YV12_BUFFER_CONFIG * ybf , int width , int height , int border ) {\n if ( ybf ) {\n vp8_yv12_de_alloc_frame_buffer ( ybf ) ;\n return vp8_yv12_realloc_frame_buffer ( ybf , width , height , border ) ;\n }\n return - 2 ;\n }"}
{"idx": 2162, "target": 0, "func": "static ossl_inline int sk_ ## t1 ## _num ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_num ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _value ( const STACK_OF ( t1 ) * sk , int idx ) {\n return ( t2 * ) OPENSSL_sk_value ( ( const OPENSSL_STACK * ) sk , idx ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new ( sk_ ## t1 ## _compfunc compare ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new ( ( OPENSSL_sk_compfunc ) compare ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_null ( void ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_null ( ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_reserve ( sk_ ## t1 ## _compfunc compare , int n ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_reserve ( ( OPENSSL_sk_compfunc ) compare , n ) ;\n }\n static ossl_inline int sk_ ## t1 ## _reserve ( STACK_OF ( t1 ) * sk , int n ) {\n return OPENSSL_sk_reserve ( ( OPENSSL_STACK * ) sk , n ) ;\n }\n static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 2163, "target": 1, "func": "int gdev_x_open ( gx_device_X * xdev ) {\n XSizeHints sizehints ;\n char * window_id ;\n XEvent event ;\n XVisualInfo xvinfo ;\n int nitems ;\n XtAppContext app_con ;\n Widget toplevel ;\n Display * dpy ;\n XColor xc ;\n int zero = 0 ;\n int xid_height = 0 , xid_width = 0 ;\n int code ;\n # ifdef DEBUG # ifdef have_Xdebug if ( gs_debug [ 'X' ] ) {\n extern int _Xdebug ;\n _Xdebug = 1 ;\n }\n # endif # endif if ( ! ( xdev -> dpy = XOpenDisplay ( ( char * ) NULL ) ) ) {\n char * dispname = getenv ( \"DISPLAY\" ) ;\n emprintf1 ( xdev -> memory , \"Cannot open X display `%s'.\\n\" , ( dispname == NULL ? \"(null)\" : dispname ) ) ;\n return_error ( gs_error_ioerror ) ;\n }\n xdev -> dest = 0 ;\n if ( ( window_id = getenv ( \"GHOSTVIEW\" ) ) ) {\n if ( ! ( xdev -> ghostview = sscanf ( window_id , \"%ld %ld\" , & ( xdev -> win ) , & ( xdev -> dest ) ) ) ) {\n emprintf ( xdev -> memory , \"Cannot get Window ID from ghostview.\\n\" ) ;\n return_error ( gs_error_ioerror ) ;\n }\n }\n if ( xdev -> pwin != ( Window ) None ) {\n XWindowAttributes attrib ;\n xdev -> win = xdev -> pwin ;\n if ( XGetWindowAttributes ( xdev -> dpy , xdev -> win , & attrib ) ) {\n xdev -> scr = attrib . screen ;\n xvinfo . visual = attrib . visual ;\n xdev -> cmap = attrib . colormap ;\n xid_width = attrib . width ;\n xid_height = attrib . height ;\n }\n else {\n xid_width = xid_height = 0 ;\n }\n }\n else if ( xdev -> ghostview ) {\n XWindowAttributes attrib ;\n Atom type ;\n int format ;\n unsigned long nitems , bytes_after ;\n char * buf ;\n Atom ghostview_atom = XInternAtom ( xdev -> dpy , \"GHOSTVIEW\" , False ) ;\n if ( XGetWindowAttributes ( xdev -> dpy , xdev -> win , & attrib ) ) {\n xdev -> scr = attrib . screen ;\n xvinfo . visual = attrib . visual ;\n xdev -> cmap = attrib . colormap ;\n xdev -> width = attrib . width ;\n xdev -> height = attrib . height ;\n }\n if ( XGetWindowProperty ( xdev -> dpy , xdev -> win , ghostview_atom , 0 , 256 , ( xdev -> dest != 0 ) , XA_STRING , & type , & format , & nitems , & bytes_after , ( unsigned char * * ) & buf ) == 0 && type == XA_STRING ) {\n int llx , lly , urx , ury ;\n int left_margin = 0 , bottom_margin = 0 ;\n int right_margin = 0 , top_margin = 0 ;\n int page_orientation ;\n float xppp , yppp ;\n nitems = sscanf ( buf , \"%ld %d %d %d %d %d %f %f %d %d %d %d\" , & ( xdev -> bpixmap ) , & page_orientation , & llx , & lly , & urx , & ury , & ( xdev -> x_pixels_per_inch ) , & ( xdev -> y_pixels_per_inch ) , & left_margin , & bottom_margin , & right_margin , & top_margin ) ;\n if ( ! ( nitems == 8 || nitems == 12 ) ) {\n emprintf ( xdev -> memory , \"Cannot get ghostview property.\\n\" ) ;\n return_error ( gs_error_ioerror ) ;\n }\n if ( xdev -> dest && xdev -> bpixmap ) {\n emprintf ( xdev -> memory , \"Both destination and backing pixmap specified.\\n\" ) ;\n return_error ( gs_error_rangecheck ) ;\n }\n if ( xdev -> dest ) {\n Window root ;\n int x , y ;\n unsigned int width , height ;\n unsigned int border_width , depth ;\n if ( XGetGeometry ( xdev -> dpy , xdev -> dest , & root , & x , & y , & width , & height , & border_width , & depth ) ) {\n xdev -> width = width ;\n xdev -> height = height ;\n }\n }\n xppp = xdev -> x_pixels_per_inch / 72.0 ;\n yppp = xdev -> y_pixels_per_inch / 72.0 ;\n switch ( page_orientation ) {\n case Portrait : xdev -> initial_matrix . xx = xppp ;\n xdev -> initial_matrix . xy = 0.0 ;\n xdev -> initial_matrix . yx = 0.0 ;\n xdev -> initial_matrix . yy = - yppp ;\n xdev -> initial_matrix . tx = - llx * xppp ;\n xdev -> initial_matrix . ty = ury * yppp ;\n break ;\n case Landscape : xdev -> initial_matrix . xx = 0.0 ;\n xdev -> initial_matrix . xy = yppp ;\n xdev -> initial_matrix . yx = xppp ;\n xdev -> initial_matrix . yy = 0.0 ;\n xdev -> initial_matrix . tx = - lly * xppp ;\n xdev -> initial_matrix . ty = - llx * yppp ;\n break ;\n case Upsidedown : xdev -> initial_matrix . xx = - xppp ;\n xdev -> initial_matrix . xy = 0.0 ;\n xdev -> initial_matrix . yx = 0.0 ;\n xdev -> initial_matrix . yy = yppp ;\n xdev -> initial_matrix . tx = urx * xppp ;\n xdev -> initial_matrix . ty = - lly * yppp ;\n break ;\n case Seascape : xdev -> initial_matrix . xx = 0.0 ;\n xdev -> initial_matrix . xy = - yppp ;\n xdev -> initial_matrix . yx = - xppp ;\n xdev -> initial_matrix . yy = 0.0 ;\n xdev -> initial_matrix . tx = ury * xppp ;\n xdev -> initial_matrix . ty = urx * yppp ;\n break ;\n }\n xdev -> ImagingBBox [ 0 ] = llx - left_margin ;\n xdev -> ImagingBBox [ 1 ] = lly - bottom_margin ;\n xdev -> ImagingBBox [ 2 ] = urx + right_margin ;\n xdev -> ImagingBBox [ 3 ] = ury + top_margin ;\n xdev -> ImagingBBox_set = true ;\n }\n else if ( xdev -> pwin == ( Window ) None ) {\n emprintf ( xdev -> memory , \"Cannot get ghostview property.\\n\" ) ;\n return_error ( gs_error_ioerror ) ;\n }\n }\n else {\n Screen * scr = DefaultScreenOfDisplay ( xdev -> dpy ) ;\n xdev -> scr = scr ;\n xvinfo . visual = DefaultVisualOfScreen ( scr ) ;\n xdev -> cmap = DefaultColormapOfScreen ( scr ) ;\n if ( xvinfo . visual -> class != TrueColor ) {\n int scrno = DefaultScreen ( xdev -> dpy ) ;\n if ( XMatchVisualInfo ( xdev -> dpy , scrno , 24 , TrueColor , & xvinfo ) || XMatchVisualInfo ( xdev -> dpy , scrno , 32 , TrueColor , & xvinfo ) || XMatchVisualInfo ( xdev -> dpy , scrno , 16 , TrueColor , & xvinfo ) || XMatchVisualInfo ( xdev -> dpy , scrno , 15 , TrueColor , & xvinfo ) ) {\n xdev -> cmap = XCreateColormap ( xdev -> dpy , DefaultRootWindow ( xdev -> dpy ) , xvinfo . visual , AllocNone ) ;\n }\n }\n }\n xvinfo . visualid = XVisualIDFromVisual ( xvinfo . visual ) ;\n xdev -> vinfo = XGetVisualInfo ( xdev -> dpy , VisualIDMask , & xvinfo , & nitems ) ;\n if ( xdev -> vinfo == NULL ) {\n emprintf ( xdev -> memory , \"Cannot get XVisualInfo.\\n\" ) ;\n return_error ( gs_error_ioerror ) ;\n }\n x_error_handler . orighandler = XSetErrorHandler ( x_catch_free_colors ) ;\n XtToolkitInitialize ( ) ;\n app_con = XtCreateApplicationContext ( ) ;\n XtAppSetFallbackResources ( app_con , gdev_x_fallback_resources ) ;\n dpy = XtOpenDisplay ( app_con , NULL , \"ghostscript\" , \"Ghostscript\" , NULL , 0 , & zero , NULL ) ;\n toplevel = XtAppCreateShell ( NULL , \"Ghostscript\" , applicationShellWidgetClass , dpy , NULL , 0 ) ;\n XtGetApplicationResources ( toplevel , ( XtPointer ) xdev , gdev_x_resources , gdev_x_resource_count , NULL , 0 ) ;\n xc . pixel = xdev -> foreground ;\n XQueryColor ( xdev -> dpy , DefaultColormap ( xdev -> dpy , DefaultScreen ( xdev -> dpy ) ) , & xc ) ;\n XAllocColor ( xdev -> dpy , xdev -> cmap , & xc ) ;\n xdev -> foreground = xc . pixel ;\n xc . pixel = xdev -> background ;\n XQueryColor ( xdev -> dpy , DefaultColormap ( xdev -> dpy , DefaultScreen ( xdev -> dpy ) ) , & xc ) ;\n XAllocColor ( xdev -> dpy , xdev -> cmap , & xc ) ;\n xdev -> background = xc . pixel ;\n code = gdev_x_setup_colors ( xdev ) ;\n if ( code < 0 ) {\n XCloseDisplay ( xdev -> dpy ) ;\n return code ;\n }\n check_device_separable ( ( gx_device * ) xdev ) ;\n if ( ! xdev -> ghostview ) {\n XWMHints wm_hints ;\n XClassHint class_hint ;\n XSetWindowAttributes xswa ;\n gx_device * dev = ( gx_device * ) xdev ;\n if ( xdev -> x_pixels_per_inch == FAKE_RES || xdev -> y_pixels_per_inch == FAKE_RES ) {\n float xsize = ( float ) xdev -> width / xdev -> x_pixels_per_inch ;\n float ysize = ( float ) xdev -> height / xdev -> y_pixels_per_inch ;\n int workarea_width = WidthOfScreen ( xdev -> scr ) , workarea_height = HeightOfScreen ( xdev -> scr ) ;\n x_get_work_area ( xdev , & workarea_width , & workarea_height ) ;\n if ( xdev -> xResolution == 0.0 && xdev -> yResolution == 0.0 ) {\n float dpi , xdpi , ydpi ;\n xdpi = 25.4 * WidthOfScreen ( xdev -> scr ) / WidthMMOfScreen ( xdev -> scr ) ;\n ydpi = 25.4 * HeightOfScreen ( xdev -> scr ) / HeightMMOfScreen ( xdev -> scr ) ;\n dpi = min ( xdpi , ydpi ) ;\n if ( dpi < 30 ) dpi = 75 ;\n else {\n while ( xsize * dpi > WidthOfScreen ( xdev -> scr ) - 32 || ysize * dpi > HeightOfScreen ( xdev -> scr ) - 32 ) dpi *= 0.95 ;\n }\n xdev -> x_pixels_per_inch = dpi ;\n xdev -> y_pixels_per_inch = dpi ;\n }\n else {\n xdev -> x_pixels_per_inch = xdev -> xResolution ;\n xdev -> y_pixels_per_inch = xdev -> yResolution ;\n }\n if ( xdev -> width > workarea_width ) {\n xdev -> width = min ( xsize * xdev -> x_pixels_per_inch , workarea_width ) ;\n }\n if ( xdev -> height > workarea_height ) {\n xdev -> height = min ( ysize * xdev -> y_pixels_per_inch , workarea_height ) ;\n }\n xdev -> MediaSize [ 0 ] = ( float ) xdev -> width / xdev -> x_pixels_per_inch * 72 ;\n xdev -> MediaSize [ 1 ] = ( float ) xdev -> height / xdev -> y_pixels_per_inch * 72 ;\n }\n sizehints . x = 0 ;\n sizehints . y = 0 ;\n sizehints . width = xdev -> width ;\n sizehints . height = xdev -> height ;\n sizehints . flags = 0 ;\n if ( xdev -> geometry != NULL ) {\n char gstr [ 40 ] ;\n int bitmask ;\n gs_sprintf ( gstr , \"%dx%d+%d+%d\" , sizehints . width , sizehints . height , sizehints . x , sizehints . y ) ;\n bitmask = XWMGeometry ( xdev -> dpy , DefaultScreen ( xdev -> dpy ) , xdev -> geometry , gstr , xdev -> borderWidth , & sizehints , & sizehints . x , & sizehints . y , & sizehints . width , & sizehints . height , & sizehints . win_gravity ) ;\n if ( bitmask & ( XValue | YValue ) ) sizehints . flags |= USPosition ;\n }\n gx_default_get_initial_matrix ( dev , & ( xdev -> initial_matrix ) ) ;\n if ( xdev -> pwin != ( Window ) None && xid_width != 0 && xid_height != 0 ) {\n # if 0 xdev -> initial_matrix . xx = xdev -> initial_matrix . xx * ( float ) xid_width / ( float ) xdev -> width ;\n xdev -> initial_matrix . yy = xdev -> initial_matrix . yy * ( float ) xid_height / ( float ) xdev -> height ;\n # endif xdev -> width = xid_width ;\n xdev -> height = xid_height ;\n xdev -> initial_matrix . ty = xdev -> height ;\n }\n else {\n xswa . event_mask = ExposureMask ;\n xswa . background_pixel = xdev -> background ;\n xswa . border_pixel = xdev -> borderColor ;\n xswa . colormap = xdev -> cmap ;\n xdev -> win = XCreateWindow ( xdev -> dpy , RootWindowOfScreen ( xdev -> scr ) , sizehints . x , sizehints . y , xdev -> width , xdev -> height , xdev -> borderWidth , xdev -> vinfo -> depth , InputOutput , xdev -> vinfo -> visual , CWEventMask | CWBackPixel | CWBorderPixel | CWColormap , & xswa ) ;\n XStoreName ( xdev -> dpy , xdev -> win , \"ghostscript\" ) ;\n XSetWMNormalHints ( xdev -> dpy , xdev -> win , & sizehints ) ;\n wm_hints . flags = InputHint ;\n wm_hints . input = False ;\n XSetWMHints ( xdev -> dpy , xdev -> win , & wm_hints ) ;\n class_hint . res_name = ( char * ) \"ghostscript\" ;\n class_hint . res_class = ( char * ) \"Ghostscript\" ;\n XSetClassHint ( xdev -> dpy , xdev -> win , & class_hint ) ;\n }\n }\n XtDestroyWidget ( toplevel ) ;\n XtCloseDisplay ( dpy ) ;\n XtDestroyApplicationContext ( app_con ) ;\n xdev -> ht . pixmap = ( Pixmap ) 0 ;\n xdev -> ht . id = gx_no_bitmap_id ;\n ;\n xdev -> fill_style = FillSolid ;\n xdev -> function = GXcopy ;\n xdev -> fid = ( Font ) 0 ;\n xdev -> gc = XCreateGC ( xdev -> dpy , xdev -> win , 0 , ( XGCValues * ) NULL ) ;\n XSetFunction ( xdev -> dpy , xdev -> gc , GXcopy ) ;\n XSetLineAttributes ( xdev -> dpy , xdev -> gc , 0 , LineSolid , CapButt , JoinMiter ) ;\n gdev_x_clear_window ( xdev ) ;\n if ( ! xdev -> ghostview ) {\n XMapWindow ( xdev -> dpy , xdev -> win ) ;\n XSync ( xdev -> dpy , False ) ;\n if ( xdev -> pwin == ( Window ) None ) {\n XNextEvent ( xdev -> dpy , & event ) ;\n }\n XSetGraphicsExposures ( xdev -> dpy , xdev -> gc , False ) ;\n XSelectInput ( xdev -> dpy , xdev -> win , NoEventMask ) ;\n }\n else {\n XSetWindowAttributes attributes ;\n attributes . override_redirect = True ;\n xdev -> mwin = XCreateWindow ( xdev -> dpy , RootWindowOfScreen ( xdev -> scr ) , 0 , 0 , 1 , 1 , 0 , CopyFromParent , CopyFromParent , CopyFromParent , CWOverrideRedirect , & attributes ) ;\n xdev -> NEXT = XInternAtom ( xdev -> dpy , \"NEXT\" , False ) ;\n xdev -> PAGE = XInternAtom ( xdev -> dpy , \"PAGE\" , False ) ;\n xdev -> DONE = XInternAtom ( xdev -> dpy , \"DONE\" , False ) ;\n }\n xdev -> ht . no_pixmap = XCreatePixmap ( xdev -> dpy , xdev -> win , 1 , 1 , xdev -> vinfo -> depth ) ;\n return 0 ;\n }"}
{"idx": 2164, "target": 0, "func": "static TRBType xhci_ring_fetch ( XHCIState * xhci , XHCIRing * ring , XHCITRB * trb , dma_addr_t * addr ) {\n PCIDevice * pci_dev = PCI_DEVICE ( xhci ) ;\n uint32_t link_cnt = 0 ;\n while ( 1 ) {\n TRBType type ;\n pci_dma_read ( pci_dev , ring -> dequeue , trb , TRB_SIZE ) ;\n trb -> addr = ring -> dequeue ;\n trb -> ccs = ring -> ccs ;\n le64_to_cpus ( & trb -> parameter ) ;\n le32_to_cpus ( & trb -> status ) ;\n le32_to_cpus ( & trb -> control ) ;\n trace_usb_xhci_fetch_trb ( ring -> dequeue , trb_name ( trb ) , trb -> parameter , trb -> status , trb -> control ) ;\n if ( ( trb -> control & TRB_C ) != ring -> ccs ) {\n return 0 ;\n }\n type = TRB_TYPE ( * trb ) ;\n if ( type != TR_LINK ) {\n if ( addr ) {\n * addr = ring -> dequeue ;\n }\n ring -> dequeue += TRB_SIZE ;\n return type ;\n }\n else {\n if ( ++ link_cnt > TRB_LINK_LIMIT ) {\n return 0 ;\n }\n ring -> dequeue = xhci_mask64 ( trb -> parameter ) ;\n if ( trb -> control & TRB_LK_TC ) {\n ring -> ccs = ! ring -> ccs ;\n }\n }\n }\n }"}
{"idx": 2165, "target": 0, "func": "static char * pack_bitmap_filename ( struct packed_git * p ) {\n size_t len ;\n if ( ! strip_suffix ( p -> pack_name , \".pack\" , & len ) ) die ( \"BUG: pack_name does not end in .pack\" ) ;\n return xstrfmt ( \"%.*s.bitmap\" , ( int ) len , p -> pack_name ) ;\n }"}
{"idx": 2166, "target": 0, "func": "static const char * cmd_pcre_match_limit ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n long val ;\n if ( cmd -> server -> is_virtual ) {\n return \"ModSecurity: SecPcreMatchLimit not allowed in VirtualHost\" ;\n }\n val = atol ( p1 ) ;\n if ( val <= 0 ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid setting for \" \"SecPcreMatchLimit: %s\" , p1 ) ;\n }\n msc_pcre_match_limit = ( unsigned long int ) val ;\n return NULL ;\n }"}
{"idx": 2167, "target": 0, "func": "static void _becomeOwner ( ArchiveHandle * AH , TocEntry * te ) {\n RestoreOptions * ropt = AH -> public . ropt ;\n if ( ropt && ( ropt -> noOwner || ! ropt -> use_setsessauth ) ) return ;\n _becomeUser ( AH , te -> owner ) ;\n }"}
{"idx": 2168, "target": 0, "func": "static guint32 dissect_netb_name_in_conflict ( tvbuff_t * tvb , packet_info * pinfo _U_ , int offset , proto_tree * tree ) {\n netbios_add_name ( \"Name In Conflict\" , tvb , offset + NB_RECVER_NAME , tree ) ;\n netbios_add_name ( \"Sender's Name\" , tvb , offset + NB_SENDER_NAME , tree ) ;\n return 0 ;\n }"}
{"idx": 2169, "target": 0, "func": "TEST_F ( WebFrameTest , PrintIframeUnderDetached ) {\n RegisterMockedHttpURLLoad ( \"print-detached-iframe.html\" ) ;\n FrameTestHelpers : : WebViewHelper web_view_helper ;\n web_view_helper . InitializeAndLoad ( base_url_ + \"print-detached-iframe.html\" ) ;\n TestFramePrinting ( ToWebLocalFrameImpl ( web_view_helper . LocalMainFrame ( ) -> FirstChild ( ) -> FirstChild ( ) ) ) ;\n }"}
{"idx": 2170, "target": 0, "func": "static void motion_search ( RoqContext * enc , int blocksize ) {\n static const motion_vect offsets [ 8 ] = {\n {\n {\n 0 , - 1 }\n }\n , {\n {\n 0 , 1 }\n }\n , {\n {\n - 1 , 0 }\n }\n , {\n {\n 1 , 0 }\n }\n , {\n {\n - 1 , 1 }\n }\n , {\n {\n 1 , - 1 }\n }\n , {\n {\n - 1 , - 1 }\n }\n , {\n {\n 1 , 1 }\n }\n , }\n ;\n int diff , lowestdiff , oldbest ;\n int off [ 3 ] ;\n motion_vect bestpick = {\n {\n 0 , 0 }\n }\n ;\n int i , j , k , offset ;\n motion_vect * last_motion ;\n motion_vect * this_motion ;\n motion_vect vect , vect2 ;\n int max = ( enc -> width / blocksize ) * enc -> height / blocksize ;\n if ( blocksize == 4 ) {\n last_motion = enc -> last_motion4 ;\n this_motion = enc -> this_motion4 ;\n }\n else {\n last_motion = enc -> last_motion8 ;\n this_motion = enc -> this_motion8 ;\n }\n for ( i = 0 ;\n i < enc -> height ;\n i += blocksize ) for ( j = 0 ;\n j < enc -> width ;\n j += blocksize ) {\n lowestdiff = eval_motion_dist ( enc , j , i , ( motion_vect ) {\n {\n 0 , 0 }\n }\n , blocksize ) ;\n bestpick . d [ 0 ] = 0 ;\n bestpick . d [ 1 ] = 0 ;\n if ( blocksize == 4 ) EVAL_MOTION ( enc -> this_motion8 [ ( i / 8 ) * ( enc -> width / 8 ) + j / 8 ] ) ;\n offset = ( i / blocksize ) * enc -> width / blocksize + j / blocksize ;\n if ( offset < max && offset >= 0 ) EVAL_MOTION ( last_motion [ offset ] ) ;\n offset ++ ;\n if ( offset < max && offset >= 0 ) EVAL_MOTION ( last_motion [ offset ] ) ;\n offset = ( i / blocksize + 1 ) * enc -> width / blocksize + j / blocksize ;\n if ( offset < max && offset >= 0 ) EVAL_MOTION ( last_motion [ offset ] ) ;\n off [ 0 ] = ( i / blocksize ) * enc -> width / blocksize + j / blocksize - 1 ;\n off [ 1 ] = off [ 0 ] - enc -> width / blocksize + 1 ;\n off [ 2 ] = off [ 1 ] + 1 ;\n if ( i ) {\n for ( k = 0 ;\n k < 2 ;\n k ++ ) vect . d [ k ] = mid_pred ( this_motion [ off [ 0 ] ] . d [ k ] , this_motion [ off [ 1 ] ] . d [ k ] , this_motion [ off [ 2 ] ] . d [ k ] ) ;\n EVAL_MOTION ( vect ) ;\n for ( k = 0 ;\n k < 3 ;\n k ++ ) EVAL_MOTION ( this_motion [ off [ k ] ] ) ;\n }\n else if ( j ) EVAL_MOTION ( this_motion [ off [ 0 ] ] ) ;\n vect = bestpick ;\n oldbest = - 1 ;\n while ( oldbest != lowestdiff ) {\n oldbest = lowestdiff ;\n for ( k = 0 ;\n k < 8 ;\n k ++ ) {\n vect2 = vect ;\n vect2 . d [ 0 ] += offsets [ k ] . d [ 0 ] ;\n vect2 . d [ 1 ] += offsets [ k ] . d [ 1 ] ;\n EVAL_MOTION ( vect2 ) ;\n }\n vect = bestpick ;\n }\n offset = ( i / blocksize ) * enc -> width / blocksize + j / blocksize ;\n this_motion [ offset ] = bestpick ;\n }\n }"}
{"idx": 2171, "target": 0, "func": "static void _kill_job_on_msg_fail ( uint32_t job_id ) {\n slurmctld_lock_t job_write_lock = {\n NO_LOCK , WRITE_LOCK , WRITE_LOCK , NO_LOCK , READ_LOCK }\n ;\n error ( \"Job allocate response msg send failure, killing JobId=%u\" , job_id ) ;\n lock_slurmctld ( job_write_lock ) ;\n job_complete ( job_id , slurmctld_conf . slurm_user_id , false , false , SIGTERM ) ;\n unlock_slurmctld ( job_write_lock ) ;\n }"}
{"idx": 2172, "target": 0, "func": "int main ( int argc , char * * argv ) {\n struct transfer_request * request ;\n struct transfer_request * next_request ;\n int nr_refspec = 0 ;\n char * * refspec = NULL ;\n struct remote_lock * ref_lock = NULL ;\n struct remote_lock * info_ref_lock = NULL ;\n struct rev_info revs ;\n int delete_branch = 0 ;\n int force_delete = 0 ;\n int objects_to_send ;\n int rc = 0 ;\n int i ;\n int new_refs ;\n struct ref * ref , * local_refs ;\n git_setup_gettext ( ) ;\n git_extract_argv0_path ( argv [ 0 ] ) ;\n repo = xcalloc ( 1 , sizeof ( * repo ) ) ;\n argv ++ ;\n for ( i = 1 ;\n i < argc ;\n i ++ , argv ++ ) {\n char * arg = * argv ;\n if ( * arg == '-' ) {\n if ( ! strcmp ( arg , \"--all\" ) ) {\n push_all = MATCH_REFS_ALL ;\n continue ;\n }\n if ( ! strcmp ( arg , \"--force\" ) ) {\n force_all = 1 ;\n continue ;\n }\n if ( ! strcmp ( arg , \"--dry-run\" ) ) {\n dry_run = 1 ;\n continue ;\n }\n if ( ! strcmp ( arg , \"--helper-status\" ) ) {\n helper_status = 1 ;\n continue ;\n }\n if ( ! strcmp ( arg , \"--verbose\" ) ) {\n push_verbosely = 1 ;\n http_is_verbose = 1 ;\n continue ;\n }\n if ( ! strcmp ( arg , \"-d\" ) ) {\n delete_branch = 1 ;\n continue ;\n }\n if ( ! strcmp ( arg , \"-D\" ) ) {\n delete_branch = 1 ;\n force_delete = 1 ;\n continue ;\n }\n if ( ! strcmp ( arg , \"-h\" ) ) usage ( http_push_usage ) ;\n }\n if ( ! repo -> url ) {\n char * path = strstr ( arg , \"//\" ) ;\n str_end_url_with_slash ( arg , & repo -> url ) ;\n repo -> path_len = strlen ( repo -> url ) ;\n if ( path ) {\n repo -> path = strchr ( path + 2 , '/' ) ;\n if ( repo -> path ) repo -> path_len = strlen ( repo -> path ) ;\n }\n continue ;\n }\n refspec = argv ;\n nr_refspec = argc - i ;\n break ;\n }\n # ifndef USE_CURL_MULTI die ( \"git-push is not available for http/https repository when not compiled with USE_CURL_MULTI\" ) ;\n # endif if ( ! repo -> url ) usage ( http_push_usage ) ;\n if ( delete_branch && nr_refspec != 1 ) die ( \"You must specify only one branch name when deleting a remote branch\" ) ;\n setup_git_directory ( ) ;\n memset ( remote_dir_exists , - 1 , 256 ) ;\n http_init ( NULL , repo -> url , 1 ) ;\n # ifdef USE_CURL_MULTI is_running_queue = 0 ;\n # endif if ( ! locking_available ( ) ) {\n rc = 1 ;\n goto cleanup ;\n }\n sigchain_push_common ( remove_locks_on_signal ) ;\n repo -> can_update_info_refs = 0 ;\n repo -> has_info_refs = remote_exists ( \"info/refs\" ) ;\n repo -> has_info_packs = remote_exists ( \"objects/info/packs\" ) ;\n if ( repo -> has_info_refs ) {\n info_ref_lock = lock_remote ( \"info/refs\" , LOCK_TIME ) ;\n if ( info_ref_lock ) repo -> can_update_info_refs = 1 ;\n else {\n error ( \"cannot lock existing info/refs\" ) ;\n rc = 1 ;\n goto cleanup ;\n }\n }\n if ( repo -> has_info_packs ) fetch_indices ( ) ;\n local_refs = get_local_heads ( ) ;\n fprintf ( stderr , \"Fetching remote heads...\\n\" ) ;\n get_dav_remote_heads ( ) ;\n run_request_queue ( ) ;\n if ( delete_branch ) {\n if ( delete_remote_branch ( refspec [ 0 ] , force_delete ) == - 1 ) {\n fprintf ( stderr , \"Unable to delete remote branch %s\\n\" , refspec [ 0 ] ) ;\n if ( helper_status ) printf ( \"error %s cannot remove\\n\" , refspec [ 0 ] ) ;\n }\n goto cleanup ;\n }\n if ( match_push_refs ( local_refs , & remote_refs , nr_refspec , ( const char * * ) refspec , push_all ) ) {\n rc = - 1 ;\n goto cleanup ;\n }\n if ( ! remote_refs ) {\n fprintf ( stderr , \"No refs in common and none specified;\n doing nothing.\\n\" ) ;\n if ( helper_status ) printf ( \"error null no match\\n\" ) ;\n rc = 0 ;\n goto cleanup ;\n }\n new_refs = 0 ;\n for ( ref = remote_refs ;\n ref ;\n ref = ref -> next ) {\n struct argv_array commit_argv = ARGV_ARRAY_INIT ;\n if ( ! ref -> peer_ref ) continue ;\n if ( is_null_oid ( & ref -> peer_ref -> new_oid ) ) {\n if ( delete_remote_branch ( ref -> name , 1 ) == - 1 ) {\n error ( \"Could not remove %s\" , ref -> name ) ;\n if ( helper_status ) printf ( \"error %s cannot remove\\n\" , ref -> name ) ;\n rc = - 4 ;\n }\n else if ( helper_status ) printf ( \"ok %s\\n\" , ref -> name ) ;\n new_refs ++ ;\n continue ;\n }\n if ( ! oidcmp ( & ref -> old_oid , & ref -> peer_ref -> new_oid ) ) {\n if ( push_verbosely ) fprintf ( stderr , \"'%s': up-to-date\\n\" , ref -> name ) ;\n if ( helper_status ) printf ( \"ok %s up to date\\n\" , ref -> name ) ;\n continue ;\n }\n if ( ! force_all && ! is_null_oid ( & ref -> old_oid ) && ! ref -> force ) {\n if ( ! has_object_file ( & ref -> old_oid ) || ! ref_newer ( & ref -> peer_ref -> new_oid , & ref -> old_oid ) ) {\n error ( \"remote '%s' is not an ancestor of\\n\" \"local '%s'.\\n\" \"Maybe you are not up-to-date and \" \"need to pull first?\" , ref -> name , ref -> peer_ref -> name ) ;\n if ( helper_status ) printf ( \"error %s non-fast forward\\n\" , ref -> name ) ;\n rc = - 2 ;\n continue ;\n }\n }\n oidcpy ( & ref -> new_oid , & ref -> peer_ref -> new_oid ) ;\n new_refs ++ ;\n fprintf ( stderr , \"updating '%s'\" , ref -> name ) ;\n if ( strcmp ( ref -> name , ref -> peer_ref -> name ) ) fprintf ( stderr , \" using '%s'\" , ref -> peer_ref -> name ) ;\n fprintf ( stderr , \"\\n from %s\\n to %s\\n\" , oid_to_hex ( & ref -> old_oid ) , oid_to_hex ( & ref -> new_oid ) ) ;\n if ( dry_run ) {\n if ( helper_status ) printf ( \"ok %s\\n\" , ref -> name ) ;\n continue ;\n }\n ref_lock = lock_remote ( ref -> name , LOCK_TIME ) ;\n if ( ref_lock == NULL ) {\n fprintf ( stderr , \"Unable to lock remote branch %s\\n\" , ref -> name ) ;\n if ( helper_status ) printf ( \"error %s lock error\\n\" , ref -> name ) ;\n rc = 1 ;\n continue ;\n }\n argv_array_push ( & commit_argv , \"\" ) ;\n argv_array_push ( & commit_argv , \"--objects\" ) ;\n argv_array_push ( & commit_argv , oid_to_hex ( & ref -> new_oid ) ) ;\n if ( ! push_all && ! is_null_oid ( & ref -> old_oid ) ) argv_array_pushf ( & commit_argv , \"^%s\" , oid_to_hex ( & ref -> old_oid ) ) ;\n init_revisions ( & revs , setup_git_directory ( ) ) ;\n setup_revisions ( commit_argv . argc , commit_argv . argv , & revs , NULL ) ;\n revs . edge_hint = 0 ;\n pushing = 0 ;\n if ( prepare_revision_walk ( & revs ) ) die ( \"revision walk setup failed\" ) ;\n mark_edges_uninteresting ( & revs , NULL ) ;\n objects_to_send = get_delta ( & revs , ref_lock ) ;\n finish_all_active_slots ( ) ;\n pushing = 1 ;\n if ( objects_to_send ) fprintf ( stderr , \" sending %d objects\\n\" , objects_to_send ) ;\n run_request_queue ( ) ;\n if ( aborted || ! update_remote ( ref -> new_oid . hash , ref_lock ) ) rc = 1 ;\n if ( ! rc ) fprintf ( stderr , \" done\\n\" ) ;\n if ( helper_status ) printf ( \"%s %s\\n\" , ! rc ? \"ok\" : \"error\" , ref -> name ) ;\n unlock_remote ( ref_lock ) ;\n check_locks ( ) ;\n argv_array_clear ( & commit_argv ) ;\n }\n if ( repo -> has_info_refs && new_refs ) {\n if ( info_ref_lock && repo -> can_update_info_refs ) {\n fprintf ( stderr , \"Updating remote server info\\n\" ) ;\n if ( ! dry_run ) update_remote_info_refs ( info_ref_lock ) ;\n }\n else {\n fprintf ( stderr , \"Unable to update server info\\n\" ) ;\n }\n }\n cleanup : if ( info_ref_lock ) unlock_remote ( info_ref_lock ) ;\n free ( repo ) ;\n http_cleanup ( ) ;\n request = request_queue_head ;\n while ( request != NULL ) {\n next_request = request -> next ;\n release_request ( request ) ;\n request = next_request ;\n }\n return rc ;\n }"}
{"idx": 2173, "target": 0, "func": "static void selinux_file_free_security ( struct file * file ) {\n file_free_security ( file ) ;\n }"}
{"idx": 2174, "target": 0, "func": "static void virtio_write_config ( PCIDevice * pci_dev , uint32_t address , uint32_t val , int len ) {\n VirtIOPCIProxy * proxy = DO_UPCAST ( VirtIOPCIProxy , pci_dev , pci_dev ) ;\n if ( PCI_COMMAND == address ) {\n if ( ! ( val & PCI_COMMAND_MASTER ) ) {\n proxy -> vdev -> status &= ~ VIRTIO_CONFIG_S_DRIVER_OK ;\n }\n }\n pci_default_write_config ( pci_dev , address , val , len ) ;\n msix_write_config ( pci_dev , address , val , len ) ;\n }"}
{"idx": 2175, "target": 0, "func": "static int dissect_ber ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n const char * name ;\n int offset ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"BER\" ) ;\n col_set_str ( pinfo -> cinfo , COL_DEF_SRC , \"BER encoded file\" ) ;\n if ( ! decode_as_syntax ) {\n col_set_str ( pinfo -> cinfo , COL_INFO , \"Unknown BER\" ) ;\n offset = dissect_unknown_ber ( pinfo , tvb , 0 , tree ) ;\n }\n else {\n offset = call_ber_syntax_callback ( decode_as_syntax , tvb , 0 , pinfo , tree ) ;\n name = get_ber_oid_syntax ( decode_as_syntax ) ;\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"Decoded as %s\" , name ? name : decode_as_syntax ) ;\n }\n return offset ;\n }"}
{"idx": 2176, "target": 0, "func": "static void wmapro_window ( WMAProDecodeCtx * s ) {\n int i ;\n for ( i = 0 ;\n i < s -> channels_for_cur_subframe ;\n i ++ ) {\n int c = s -> channel_indexes_for_cur_subframe [ i ] ;\n float * window ;\n int winlen = s -> channel [ c ] . prev_block_len ;\n float * start = s -> channel [ c ] . coeffs - ( winlen >> 1 ) ;\n if ( s -> subframe_len < winlen ) {\n start += ( winlen - s -> subframe_len ) >> 1 ;\n winlen = s -> subframe_len ;\n }\n window = s -> windows [ av_log2 ( winlen ) - WMAPRO_BLOCK_MIN_BITS ] ;\n winlen >>= 1 ;\n s -> fdsp . vector_fmul_window ( start , start , start + winlen , window , winlen ) ;\n s -> channel [ c ] . prev_block_len = s -> subframe_len ;\n }\n }"}
{"idx": 2177, "target": 0, "func": "static void test_signal_restore ( void ) {\n struct event ev ;\n struct event_base * base = event_init ( ) ;\n # ifdef HAVE_SIGACTION struct sigaction sa ;\n # endif test_ok = 0 ;\n printf ( \"Signal handler restore: \" ) ;\n # ifdef HAVE_SIGACTION sa . sa_handler = signal_cb_sa ;\n sa . sa_flags = 0x0 ;\n sigemptyset ( & sa . sa_mask ) ;\n if ( sigaction ( SIGUSR1 , & sa , NULL ) == - 1 ) goto out ;\n # else if ( signal ( SIGUSR1 , signal_cb_sa ) == SIG_ERR ) goto out ;\n # endif signal_set ( & ev , SIGUSR1 , signal_cb , & ev ) ;\n signal_add ( & ev , NULL ) ;\n signal_del ( & ev ) ;\n raise ( SIGUSR1 ) ;\n if ( test_ok != 2 ) test_ok = 0 ;\n out : event_base_free ( base ) ;\n cleanup_test ( ) ;\n return ;\n }"}
{"idx": 2178, "target": 0, "func": "Datum nlikejoinsel ( PG_FUNCTION_ARGS ) {\n PG_RETURN_FLOAT8 ( patternjoinsel ( fcinfo , Pattern_Type_Like , true ) ) ;\n }"}
{"idx": 2179, "target": 1, "func": "static void pic_as_field ( Picture * pic , const int parity ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) {\n if ( parity == PICT_BOTTOM_FIELD ) pic -> f . data [ i ] += pic -> f . linesize [ i ] ;\n pic -> f . reference = parity ;\n pic -> f . linesize [ i ] *= 2 ;\n }\n pic -> poc = pic -> field_poc [ parity == PICT_BOTTOM_FIELD ] ;\n }"}
{"idx": 2180, "target": 0, "func": "static int rtp_packetize_g726 ( sout_stream_id_sys_t * id , block_t * in , int i_pad ) {\n int i_max = ( rtp_mtu ( id ) - 12 + i_pad - 1 ) & ~ i_pad ;\n int i_count = ( in -> i_buffer + i_max - 1 ) / i_max ;\n uint8_t * p_data = in -> p_buffer ;\n int i_data = in -> i_buffer ;\n int i_packet = 0 ;\n while ( i_data > 0 ) {\n int i_payload = __MIN ( i_max , i_data ) ;\n block_t * out = block_Alloc ( 12 + i_payload ) ;\n rtp_packetize_common ( id , out , 0 , ( in -> i_pts > VLC_TS_INVALID ? in -> i_pts : in -> i_dts ) ) ;\n memcpy ( & out -> p_buffer [ 12 ] , p_data , i_payload ) ;\n out -> i_dts = in -> i_dts + i_packet ++ * in -> i_length / i_count ;\n out -> i_length = in -> i_length / i_count ;\n rtp_packetize_send ( id , out ) ;\n p_data += i_payload ;\n i_data -= i_payload ;\n }\n block_Release ( in ) ;\n return VLC_SUCCESS ;\n }"}
{"idx": 2181, "target": 0, "func": "void jpc_qmfb_join_colres ( jpc_fix_t * a , int numrows , int numcols , int stride , int parity ) {\n int bufsize = JPC_CEILDIVPOW2 ( numrows , 1 ) ;\n jpc_fix_t joinbuf [ QMFB_JOINBUFSIZE * JPC_QMFB_COLGRPSIZE ] ;\n jpc_fix_t * buf = joinbuf ;\n jpc_fix_t * srcptr ;\n jpc_fix_t * dstptr ;\n register jpc_fix_t * srcptr2 ;\n register jpc_fix_t * dstptr2 ;\n register int n ;\n register int i ;\n int hstartcol ;\n if ( bufsize > QMFB_JOINBUFSIZE ) {\n if ( ! ( buf = jas_alloc3 ( bufsize , numcols , sizeof ( jpc_fix_t ) ) ) ) {\n abort ( ) ;\n }\n }\n hstartcol = ( numrows + 1 - parity ) >> 1 ;\n n = hstartcol ;\n srcptr = & a [ 0 ] ;\n dstptr = buf ;\n while ( n -- > 0 ) {\n dstptr2 = dstptr ;\n srcptr2 = srcptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n * dstptr2 = * srcptr2 ;\n ++ dstptr2 ;\n ++ srcptr2 ;\n }\n srcptr += stride ;\n dstptr += numcols ;\n }\n srcptr = & a [ hstartcol * stride ] ;\n dstptr = & a [ ( 1 - parity ) * stride ] ;\n n = numrows - hstartcol ;\n while ( n -- > 0 ) {\n dstptr2 = dstptr ;\n srcptr2 = srcptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n * dstptr2 = * srcptr2 ;\n ++ dstptr2 ;\n ++ srcptr2 ;\n }\n dstptr += 2 * stride ;\n srcptr += stride ;\n }\n srcptr = buf ;\n dstptr = & a [ parity * stride ] ;\n n = hstartcol ;\n while ( n -- > 0 ) {\n dstptr2 = dstptr ;\n srcptr2 = srcptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n * dstptr2 = * srcptr2 ;\n ++ dstptr2 ;\n ++ srcptr2 ;\n }\n dstptr += 2 * stride ;\n srcptr += numcols ;\n }\n if ( buf != joinbuf ) {\n jas_free ( buf ) ;\n }\n }"}
{"idx": 2182, "target": 0, "func": "static void sig_server_disconnected ( SERVER_REC * server ) {\n g_return_if_fail ( server != NULL ) ;\n printformat ( server , NULL , MSGLEVEL_CLIENTNOTICE , TXT_CONNECTION_LOST , server -> connrec -> address ) ;\n }"}
{"idx": 2183, "target": 0, "func": "static int dissect_rsl_ie_ms_pow ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_tree * ie_tree ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_MS_POW ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 2 , ett_ie_ms_pow , NULL , \"MS Power IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_ms_power_lev , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ms_fpc , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n return offset ;\n }"}
{"idx": 2184, "target": 0, "func": "static void save_same_name_hfinfo ( gpointer data ) {\n same_name_hfinfo = ( header_field_info * ) data ;\n }"}
{"idx": 2185, "target": 0, "func": "static int best_effort_strncat_from_utf16le ( struct archive_string * as , const void * _p , size_t bytes , struct archive_string_conv * sc ) {\n return ( best_effort_strncat_from_utf16 ( as , _p , bytes , sc , 0 ) ) ;\n }"}
{"idx": 2186, "target": 0, "func": "static afs_int32 listEntries ( struct rx_call * call , afs_int32 flag , afs_int32 startindex , prentries * bulkentries , afs_int32 * nextstartindex , afs_int32 * cid ) {\n afs_int32 code ;\n struct ubik_trans * tt ;\n afs_int32 i , eof , pos , maxentries , f ;\n struct prentry tentry ;\n afs_int32 pollcount = 0 ;\n * nextstartindex = - 1 ;\n bulkentries -> prentries_val = 0 ;\n bulkentries -> prentries_len = 0 ;\n code = Initdb ( ) ;\n if ( code != PRSUCCESS ) return code ;\n code = ubik_BeginTransReadAny ( dbase , UBIK_READTRANS , & tt ) ;\n if ( code ) return code ;\n code = ubik_SetLock ( tt , 1 , 1 , LOCKREAD ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = read_DbHeader ( tt ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = WhoIsThis ( call , tt , cid ) ;\n if ( code ) ABORT_WITH ( tt , PRPERM ) ;\n code = IsAMemberOf ( tt , * cid , SYSADMINID ) ;\n if ( ! code && ! pr_noAuth ) ABORT_WITH ( tt , PRPERM ) ;\n eof = ntohl ( cheader . eofPtr ) - sizeof ( cheader ) ;\n maxentries = eof / sizeof ( struct prentry ) ;\n for ( i = startindex ;\n i < maxentries ;\n i ++ ) {\n pos = i * sizeof ( struct prentry ) + sizeof ( cheader ) ;\n code = pr_ReadEntry ( tt , 0 , pos , & tentry ) ;\n if ( code ) goto done ;\n if ( ++ pollcount > 50 ) {\n # ifndef AFS_PTHREAD_ENV IOMGR_Poll ( ) ;\n # endif pollcount = 0 ;\n }\n f = ( tentry . flags & PRTYPE ) ;\n if ( ( ( flag & PRUSERS ) && ( f == 0 ) ) || ( ( flag & PRGROUPS ) && ( f & PRGRP ) ) ) {\n code = put_prentries ( & tentry , bulkentries ) ;\n if ( code == - 1 ) break ;\n if ( code ) goto done ;\n }\n }\n code = 0 ;\n if ( i < maxentries ) * nextstartindex = i ;\n done : if ( code ) {\n if ( bulkentries -> prentries_val ) free ( bulkentries -> prentries_val ) ;\n bulkentries -> prentries_val = 0 ;\n bulkentries -> prentries_len = 0 ;\n ABORT_WITH ( tt , code ) ;\n }\n else {\n code = ubik_EndTrans ( tt ) ;\n }\n if ( code ) return code ;\n return PRSUCCESS ;\n }"}
{"idx": 2187, "target": 0, "func": "static gpgme_error_t add_io_cb ( engine_gpgsm_t gpgsm , iocb_data_t * iocbd , gpgme_io_cb_t handler ) {\n gpgme_error_t err ;\n TRACE_BEG2 ( DEBUG_ENGINE , \"engine-gpgsm:add_io_cb\" , gpgsm , \"fd %d, dir %d\" , iocbd -> fd , iocbd -> dir ) ;\n err = ( * gpgsm -> io_cbs . add ) ( gpgsm -> io_cbs . add_priv , iocbd -> fd , iocbd -> dir , handler , iocbd -> data , & iocbd -> tag ) ;\n if ( err ) return TRACE_ERR ( err ) ;\n if ( ! iocbd -> dir ) err = _gpgme_io_set_nonblocking ( iocbd -> fd ) ;\n return TRACE_ERR ( err ) ;\n }"}
{"idx": 2188, "target": 0, "func": "static u_short create_scan_states ( char * text , u_short token , follby followedby , u_short prev_state ) {\n u_short my_state ;\n u_short return_state ;\n u_short prev_char_s ;\n u_short curr_char_s ;\n return_state = prev_state ;\n curr_char_s = prev_state ;\n prev_char_s = 0 ;\n while ( curr_char_s && ( text [ 0 ] < sst [ curr_char_s ] . ch ) ) {\n prev_char_s = curr_char_s ;\n curr_char_s = sst [ curr_char_s ] . other_next_s ;\n }\n if ( curr_char_s && ( text [ 0 ] == sst [ curr_char_s ] . ch ) ) {\n my_state = curr_char_s ;\n if ( '\\0' == text [ 1 ] ) {\n fprintf ( stderr , \"Duplicate entries for keyword '%s' in\" \" keyword_gen.c ntp_keywords[].\\n\" , current_keyword ) ;\n exit ( 2 ) ;\n }\n }\n else {\n do my_state = sst_highwater ++ ;\n while ( my_state < COUNTOF ( sst ) && sst [ my_state ] . finishes_token ) ;\n if ( my_state >= COUNTOF ( sst ) ) {\n fprintf ( stderr , \"fatal, keyword scanner state array \" \"sst[%d] is too small, modify\\n\" \"keyword-gen.c to increase.\\n\" , ( int ) COUNTOF ( sst ) ) ;\n exit ( 3 ) ;\n }\n sst [ my_state ] . ch = text [ 0 ] ;\n sst [ my_state ] . other_next_s = curr_char_s ;\n sst [ my_state ] . followedby = FOLLBY_NON_ACCEPTING ;\n if ( prev_char_s ) sst [ prev_char_s ] . other_next_s = my_state ;\n else return_state = my_state ;\n }\n if ( '\\0' == text [ 1 ] ) {\n sst [ my_state ] . finishes_token = ( u_short ) token ;\n sst [ my_state ] . followedby = ( char ) followedby ;\n if ( sst [ token ] . finishes_token != ( u_short ) token ) {\n fprintf ( stderr , \"fatal, sst[%d] not reserved for %s.\\n\" , token , symbname ( token ) ) ;\n exit ( 6 ) ;\n }\n if ( my_state != token ) {\n sst [ token ] = sst [ my_state ] ;\n ZERO ( sst [ my_state ] ) ;\n do sst_highwater -- ;\n while ( sst [ sst_highwater ] . finishes_token ) ;\n my_state = token ;\n if ( prev_char_s ) sst [ prev_char_s ] . other_next_s = my_state ;\n else return_state = my_state ;\n }\n }\n else sst [ my_state ] . match_next_s = create_scan_states ( & text [ 1 ] , token , followedby , sst [ my_state ] . match_next_s ) ;\n return return_state ;\n }"}
{"idx": 2189, "target": 0, "func": "static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_null ( void ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_null ( ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_reserve ( sk_ ## t1 ## _compfunc compare , int n ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_reserve ( ( OPENSSL_sk_compfunc ) compare , n ) ;\n }\n static ossl_inline int sk_ ## t1 ## _reserve ( STACK_OF ( t1 ) * sk , int n ) {\n return OPENSSL_sk_reserve ( ( OPENSSL_STACK * ) sk , n ) ;\n }\n static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 2190, "target": 0, "func": "void DeCloneArchive ( ArchiveHandle * AH ) {\n Assert ( AH -> connection == NULL ) ;\n ( AH -> DeClonePtr ) ( AH ) ;\n if ( AH -> sqlparse . curCmd ) destroyPQExpBuffer ( AH -> sqlparse . curCmd ) ;\n if ( AH -> currUser ) free ( AH -> currUser ) ;\n if ( AH -> currSchema ) free ( AH -> currSchema ) ;\n if ( AH -> currTablespace ) free ( AH -> currTablespace ) ;\n if ( AH -> savedPassword ) free ( AH -> savedPassword ) ;\n free ( AH ) ;\n }"}
{"idx": 2191, "target": 0, "func": "char * get_language_name ( Oid langoid , bool missing_ok ) {\n HeapTuple tp ;\n tp = SearchSysCache1 ( LANGOID , ObjectIdGetDatum ( langoid ) ) ;\n if ( HeapTupleIsValid ( tp ) ) {\n Form_pg_language lantup = ( Form_pg_language ) GETSTRUCT ( tp ) ;\n char * result ;\n result = pstrdup ( NameStr ( lantup -> lanname ) ) ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }\n if ( ! missing_ok ) elog ( ERROR , \"cache lookup failed for language %u\" , langoid ) ;\n return NULL ;\n }"}
{"idx": 2192, "target": 1, "func": "static const char * _UTF16GetName ( const UConverter * cnv ) {\n if ( UCNV_GET_VERSION ( cnv ) == 0 ) {\n return \"UTF-16\" ;\n }\n else if ( UCNV_GET_VERSION ( cnv ) == 1 ) {\n return \"UTF-16,version=1\" ;\n }\n else {\n return \"UTF-16,version=2\" ;\n }\n }"}
{"idx": 2193, "target": 1, "func": "static int decode_udvm_multitype_operand ( guint8 * buff , guint operand_address , guint16 * value ) {\n guint test_bits ;\n guint bytecode ;\n guint offset = operand_address ;\n guint16 operand ;\n guint32 result ;\n guint8 temp_data ;\n guint16 temp_data16 ;\n guint16 memmory_addr = 0 ;\n * value = 0 ;\n bytecode = buff [ operand_address ] ;\n test_bits = ( bytecode & 0xc0 ) >> 6 ;\n switch ( test_bits ) {\n case 0 : operand = buff [ operand_address ] ;\n * value = operand ;\n offset ++ ;\n break ;\n case 1 : memmory_addr = ( bytecode & 0x3f ) * 2 ;\n temp_data16 = buff [ memmory_addr ] << 8 ;\n temp_data16 = temp_data16 | buff [ ( memmory_addr + 1 ) & 0xffff ] ;\n * value = temp_data16 ;\n offset ++ ;\n break ;\n case 2 : test_bits = ( bytecode & 0xe0 ) >> 5 ;\n if ( test_bits == 5 ) {\n temp_data = buff [ operand_address ] & 0x1f ;\n operand = temp_data << 8 ;\n temp_data = buff [ ( operand_address + 1 ) & 0xffff ] ;\n operand = operand | temp_data ;\n * value = operand ;\n offset = offset + 2 ;\n }\n else {\n test_bits = ( bytecode & 0xf0 ) >> 4 ;\n if ( test_bits == 9 ) {\n temp_data = buff [ operand_address ] & 0x0f ;\n operand = temp_data << 8 ;\n temp_data = buff [ ( operand_address + 1 ) & 0xffff ] ;\n operand = operand | temp_data ;\n operand = operand + 61440 ;\n * value = operand ;\n offset = offset + 2 ;\n }\n else {\n test_bits = ( bytecode & 0x08 ) >> 3 ;\n if ( test_bits == 1 ) {\n result = 1 << ( ( buff [ operand_address ] & 0x07 ) + 8 ) ;\n operand = result & 0xffff ;\n * value = operand ;\n offset ++ ;\n }\n else {\n test_bits = ( bytecode & 0x0e ) >> 1 ;\n if ( test_bits == 3 ) {\n result = 1 << ( ( buff [ operand_address ] & 0x01 ) + 6 ) ;\n operand = result & 0xffff ;\n * value = operand ;\n offset ++ ;\n }\n else {\n offset ++ ;\n temp_data16 = buff [ ( operand_address + 1 ) & 0xffff ] << 8 ;\n temp_data16 = temp_data16 | buff [ ( operand_address + 2 ) & 0xffff ] ;\n if ( ( bytecode & 0x01 ) == 1 ) {\n memmory_addr = temp_data16 ;\n temp_data16 = buff [ memmory_addr ] << 8 ;\n temp_data16 = temp_data16 | buff [ ( memmory_addr + 1 ) & 0xffff ] ;\n }\n * value = temp_data16 ;\n offset = offset + 2 ;\n }\n }\n }\n }\n break ;\n case 3 : test_bits = ( bytecode & 0x20 ) >> 5 ;\n if ( test_bits == 1 ) {\n operand = ( buff [ operand_address ] & 0x1f ) + 65504 ;\n * value = operand ;\n offset ++ ;\n }\n else {\n memmory_addr = buff [ operand_address ] & 0x1f ;\n memmory_addr = memmory_addr << 8 ;\n memmory_addr = memmory_addr | buff [ ( operand_address + 1 ) & 0xffff ] ;\n temp_data16 = buff [ memmory_addr ] << 8 ;\n temp_data16 = temp_data16 | buff [ ( memmory_addr + 1 ) & 0xffff ] ;\n * value = temp_data16 ;\n offset = offset + 2 ;\n }\n default : break ;\n }\n return offset ;\n }"}
{"idx": 2194, "target": 1, "func": "static void sliplink_print ( netdissect_options * ndo , register const u_char * p , register const struct ip * ip , register u_int length ) {\n int dir ;\n u_int hlen ;\n dir = p [ SLX_DIR ] ;\n ND_PRINT ( ( ndo , dir == SLIPDIR_IN ? \"I \" : \"O \" ) ) ;\n if ( ndo -> ndo_nflag ) {\n register int i ;\n for ( i = SLX_CHDR ;\n i < SLX_CHDR + CHDR_LEN - 1 ;\n ++ i ) ND_PRINT ( ( ndo , \"%02x.\" , p [ i ] ) ) ;\n ND_PRINT ( ( ndo , \"%02x: \" , p [ SLX_CHDR + CHDR_LEN - 1 ] ) ) ;\n return ;\n }\n switch ( p [ SLX_CHDR ] & 0xf0 ) {\n case TYPE_IP : ND_PRINT ( ( ndo , \"ip %d: \" , length + SLIP_HDRLEN ) ) ;\n break ;\n case TYPE_UNCOMPRESSED_TCP : lastconn = ( ( const struct ip * ) & p [ SLX_CHDR ] ) -> ip_p ;\n hlen = IP_HL ( ip ) ;\n hlen += TH_OFF ( ( const struct tcphdr * ) & ( ( const int * ) ip ) [ hlen ] ) ;\n lastlen [ dir ] [ lastconn ] = length - ( hlen << 2 ) ;\n ND_PRINT ( ( ndo , \"utcp %d: \" , lastconn ) ) ;\n break ;\n default : if ( p [ SLX_CHDR ] & TYPE_COMPRESSED_TCP ) {\n compressed_sl_print ( ndo , & p [ SLX_CHDR ] , ip , length , dir ) ;\n ND_PRINT ( ( ndo , \": \" ) ) ;\n }\n else ND_PRINT ( ( ndo , \"slip-%d!: \" , p [ SLX_CHDR ] ) ) ;\n }\n }"}
{"idx": 2195, "target": 0, "func": "static __inline__ void TLV_LIST_STEP ( struct tlv_list_desc * list ) {\n __u16 tlv_space = TLV_ALIGN ( ntohs ( list -> tlv_ptr -> tlv_len ) ) ;\n list -> tlv_ptr = ( struct tlv_desc * ) ( ( char * ) list -> tlv_ptr + tlv_space ) ;\n list -> tlv_space -= tlv_space ;\n }"}
{"idx": 2196, "target": 0, "func": "static int validate_header ( const struct evkeyvalq * headers , const char * key , const char * value ) {\n const char * real_val = evhttp_find_header ( headers , key ) ;\n if ( real_val == NULL ) return ( - 1 ) ;\n if ( strcmp ( real_val , value ) != 0 ) return ( - 1 ) ;\n return ( 0 ) ;\n }"}
{"idx": 2197, "target": 0, "func": "static int dissect_h245_Cmd_reverseParameters ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_Cmd_reverseParameters , Cmd_reverseParameters_sequence ) ;\n return offset ;\n }"}
{"idx": 2198, "target": 0, "func": "static void test_bug9735 ( ) {\n MYSQL_RES * res ;\n int rc ;\n myheader ( \"test_bug9735\" ) ;\n rc = mysql_query ( mysql , \"drop table if exists t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t1 (a mediumtext, b longtext) \" \"character set latin1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"select * from t1\" ) ;\n myquery ( rc ) ;\n res = mysql_store_result ( mysql ) ;\n verify_prepare_field ( res , 0 , \"a\" , \"a\" , MYSQL_TYPE_BLOB , \"t1\" , \"t1\" , current_db , ( 1U << 24 ) - 1 , 0 ) ;\n verify_prepare_field ( res , 1 , \"b\" , \"b\" , MYSQL_TYPE_BLOB , \"t1\" , \"t1\" , current_db , ~ 0U , 0 ) ;\n mysql_free_result ( res ) ;\n rc = mysql_query ( mysql , \"drop table t1\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 2199, "target": 0, "func": "static struct async * reap_as ( struct usb_dev_state * ps ) {\n DECLARE_WAITQUEUE ( wait , current ) ;\n struct async * as = NULL ;\n struct usb_device * dev = ps -> dev ;\n add_wait_queue ( & ps -> wait , & wait ) ;\n for ( ;\n ;\n ) {\n __set_current_state ( TASK_INTERRUPTIBLE ) ;\n as = async_getcompleted ( ps ) ;\n if ( as || ! connected ( ps ) ) break ;\n if ( signal_pending ( current ) ) break ;\n usb_unlock_device ( dev ) ;\n schedule ( ) ;\n usb_lock_device ( dev ) ;\n }\n remove_wait_queue ( & ps -> wait , & wait ) ;\n set_current_state ( TASK_RUNNING ) ;\n return as ;\n }"}
{"idx": 2200, "target": 0, "func": "static int iso9660_close ( struct archive_write * a ) {\n struct iso9660 * iso9660 ;\n int ret , blocks ;\n iso9660 = a -> format_data ;\n if ( wb_remaining ( a ) > 0 ) {\n ret = wb_write_out ( a ) ;\n if ( ret < 0 ) return ( ret ) ;\n }\n # ifdef DEBUG if ( iso9660 -> birth_time == 0 ) # endif time ( & ( iso9660 -> birth_time ) ) ;\n if ( iso9660 -> opt . boot ) {\n ret = isoent_find_out_boot_file ( a , iso9660 -> primary . rootent ) ;\n if ( ret < 0 ) return ( ret ) ;\n ret = zisofs_rewind_boot_file ( a ) ;\n if ( ret < 0 ) return ( ret ) ;\n if ( wb_remaining ( a ) > 0 ) {\n ret = wb_write_out ( a ) ;\n if ( ret < 0 ) return ( ret ) ;\n }\n ret = isoent_create_boot_catalog ( a , iso9660 -> primary . rootent ) ;\n if ( ret < 0 ) return ( ret ) ;\n }\n if ( iso9660 -> opt . joliet ) {\n ret = isoent_clone_tree ( a , & ( iso9660 -> joliet . rootent ) , iso9660 -> primary . rootent ) ;\n if ( ret < 0 ) return ( ret ) ;\n if ( iso9660 -> sconv_to_utf16be == NULL ) {\n iso9660 -> sconv_to_utf16be = archive_string_conversion_to_charset ( & ( a -> archive ) , \"UTF-16BE\" , 1 ) ;\n if ( iso9660 -> sconv_to_utf16be == NULL ) return ( ARCHIVE_FATAL ) ;\n iso9660 -> sconv_from_utf16be = archive_string_conversion_from_charset ( & ( a -> archive ) , \"UTF-16BE\" , 1 ) ;\n if ( iso9660 -> sconv_from_utf16be == NULL ) return ( ARCHIVE_FATAL ) ;\n }\n }\n ret = isoent_make_path_table ( a ) ;\n if ( ret < 0 ) return ( ret ) ;\n blocks = SYSTEM_AREA_BLOCK + PRIMARY_VOLUME_DESCRIPTOR_BLOCK + VOLUME_DESCRIPTOR_SET_TERMINATOR_BLOCK + NON_ISO_FILE_SYSTEM_INFORMATION_BLOCK ;\n if ( iso9660 -> opt . boot ) blocks += BOOT_RECORD_DESCRIPTOR_BLOCK ;\n if ( iso9660 -> opt . joliet ) blocks += SUPPLEMENTARY_VOLUME_DESCRIPTOR_BLOCK ;\n if ( iso9660 -> opt . iso_level == 4 ) blocks += SUPPLEMENTARY_VOLUME_DESCRIPTOR_BLOCK ;\n iso9660 -> primary . location_type_L_path_table = blocks ;\n blocks += iso9660 -> primary . path_table_block ;\n iso9660 -> primary . location_type_M_path_table = blocks ;\n blocks += iso9660 -> primary . path_table_block ;\n if ( iso9660 -> opt . joliet ) {\n iso9660 -> joliet . location_type_L_path_table = blocks ;\n blocks += iso9660 -> joliet . path_table_block ;\n iso9660 -> joliet . location_type_M_path_table = blocks ;\n blocks += iso9660 -> joliet . path_table_block ;\n }\n isoent_setup_directory_location ( iso9660 , blocks , & ( iso9660 -> primary ) ) ;\n blocks += iso9660 -> primary . total_dir_block ;\n if ( iso9660 -> opt . joliet ) {\n isoent_setup_directory_location ( iso9660 , blocks , & ( iso9660 -> joliet ) ) ;\n blocks += iso9660 -> joliet . total_dir_block ;\n }\n if ( iso9660 -> opt . rr ) {\n iso9660 -> location_rrip_er = blocks ;\n blocks += RRIP_ER_BLOCK ;\n }\n isoent_setup_file_location ( iso9660 , blocks ) ;\n blocks += iso9660 -> total_file_block ;\n if ( iso9660 -> opt . boot && iso9660 -> opt . boot_info_table ) {\n ret = setup_boot_information ( a ) ;\n if ( ret < 0 ) return ( ret ) ;\n }\n iso9660 -> volume_space_size = blocks ;\n if ( iso9660 -> opt . pad ) iso9660 -> volume_space_size += PADDING_BLOCK ;\n iso9660 -> volume_sequence_number = 1 ;\n iso9660 -> wbuff_remaining = wb_buffmax ( ) ;\n iso9660 -> wbuff_type = WB_TO_STREAM ;\n iso9660 -> wbuff_offset = 0 ;\n iso9660 -> wbuff_written = 0 ;\n iso9660 -> wbuff_tail = 0 ;\n ret = write_null ( a , SYSTEM_AREA_BLOCK * LOGICAL_BLOCK_SIZE ) ;\n if ( ret != ARCHIVE_OK ) return ( ARCHIVE_FATAL ) ;\n ret = write_VD ( a , & ( iso9660 -> primary ) ) ;\n if ( ret != ARCHIVE_OK ) return ( ARCHIVE_FATAL ) ;\n if ( iso9660 -> opt . boot ) {\n ret = write_VD_boot_record ( a ) ;\n if ( ret != ARCHIVE_OK ) return ( ARCHIVE_FATAL ) ;\n }\n if ( iso9660 -> opt . iso_level == 4 ) {\n iso9660 -> primary . vdd_type = VDD_ENHANCED ;\n ret = write_VD ( a , & ( iso9660 -> primary ) ) ;\n iso9660 -> primary . vdd_type = VDD_PRIMARY ;\n if ( ret != ARCHIVE_OK ) return ( ARCHIVE_FATAL ) ;\n }\n if ( iso9660 -> opt . joliet ) {\n ret = write_VD ( a , & ( iso9660 -> joliet ) ) ;\n if ( ret != ARCHIVE_OK ) return ( ARCHIVE_FATAL ) ;\n }\n ret = write_VD_terminator ( a ) ;\n if ( ret != ARCHIVE_OK ) return ( ARCHIVE_FATAL ) ;\n ret = write_information_block ( a ) ;\n if ( ret != ARCHIVE_OK ) return ( ARCHIVE_FATAL ) ;\n ret = write_path_table ( a , 0 , & ( iso9660 -> primary ) ) ;\n if ( ret != ARCHIVE_OK ) return ( ARCHIVE_FATAL ) ;\n ret = write_path_table ( a , 1 , & ( iso9660 -> primary ) ) ;\n if ( ret != ARCHIVE_OK ) return ( ARCHIVE_FATAL ) ;\n if ( iso9660 -> opt . joliet ) {\n ret = write_path_table ( a , 0 , & ( iso9660 -> joliet ) ) ;\n if ( ret != ARCHIVE_OK ) return ( ARCHIVE_FATAL ) ;\n ret = write_path_table ( a , 1 , & ( iso9660 -> joliet ) ) ;\n if ( ret != ARCHIVE_OK ) return ( ARCHIVE_FATAL ) ;\n }\n ret = write_directory_descriptors ( a , & ( iso9660 -> primary ) ) ;\n if ( ret != ARCHIVE_OK ) return ( ARCHIVE_FATAL ) ;\n if ( iso9660 -> opt . joliet ) {\n ret = write_directory_descriptors ( a , & ( iso9660 -> joliet ) ) ;\n if ( ret != ARCHIVE_OK ) return ( ARCHIVE_FATAL ) ;\n }\n if ( iso9660 -> opt . rr ) {\n ret = write_rr_ER ( a ) ;\n if ( ret != ARCHIVE_OK ) return ( ARCHIVE_FATAL ) ;\n }\n ret = write_file_descriptors ( a ) ;\n if ( ret != ARCHIVE_OK ) return ( ARCHIVE_FATAL ) ;\n if ( iso9660 -> opt . pad ) {\n ret = write_null ( a , PADDING_BLOCK * LOGICAL_BLOCK_SIZE ) ;\n if ( ret != ARCHIVE_OK ) return ( ARCHIVE_FATAL ) ;\n }\n if ( iso9660 -> directories_too_deep != NULL ) {\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"%s: Directories too deep.\" , archive_entry_pathname ( iso9660 -> directories_too_deep -> file -> entry ) ) ;\n return ( ARCHIVE_WARN ) ;\n }\n ret = wb_write_out ( a ) ;\n return ( ret ) ;\n }"}
{"idx": 2201, "target": 0, "func": "static splay_app_result_t free_all_not_allocator ( clump_t * cp , void * arg ) {\n struct free_data * fd = ( struct free_data * ) arg ;\n if ( cp -> cbase + sizeof ( obj_header_t ) != ( byte * ) fd -> imem ) alloc_free_clump ( cp , fd -> imem ) ;\n else fd -> allocator = cp ;\n return SPLAY_APP_CONTINUE ;\n }"}
{"idx": 2202, "target": 0, "func": "static Image * ReadIPLImage ( const ImageInfo * image_info , ExceptionInfo * exception ) {\n Image * image ;\n MagickBooleanType status ;\n register PixelPacket * q ;\n unsigned char magick [ 12 ] , * pixels ;\n ssize_t count ;\n ssize_t y ;\n size_t t_count = 0 ;\n size_t length ;\n IPLInfo ipl_info ;\n QuantumFormatType quantum_format ;\n QuantumInfo * quantum_info ;\n QuantumType quantum_type ;\n assert ( image_info != ( const ImageInfo * ) NULL ) ;\n assert ( image_info -> signature == MagickSignature ) ;\n if ( image_info -> debug != MagickFalse ) ( void ) LogMagickEvent ( TraceEvent , GetMagickModule ( ) , \"%s\" , image_info -> filename ) ;\n assert ( exception != ( ExceptionInfo * ) NULL ) ;\n assert ( exception -> signature == MagickSignature ) ;\n image = AcquireImage ( image_info ) ;\n status = OpenBlob ( image_info , image , ReadBinaryBlobMode , exception ) ;\n if ( status == MagickFalse ) {\n image = DestroyImageList ( image ) ;\n return ( ( Image * ) NULL ) ;\n }\n count = ReadBlob ( image , 4 , magick ) ;\n ( void ) count ;\n if ( ( LocaleNCompare ( ( char * ) magick , \"iiii\" , 4 ) == 0 ) ) image -> endian = LSBEndian ;\n else {\n if ( ( LocaleNCompare ( ( char * ) magick , \"mmmm\" , 4 ) == 0 ) ) image -> endian = MSBEndian ;\n else {\n ThrowReaderException ( CorruptImageError , \"ImproperImageHeader\" ) ;\n }\n }\n count = ReadBlob ( image , 8 , magick ) ;\n count = ReadBlob ( image , 4 , magick ) ;\n if ( ( LocaleNCompare ( ( char * ) magick , \"data\" , 4 ) != 0 ) ) ThrowReaderException ( CorruptImageError , \"ImproperImageHeader\" ) ;\n ipl_info . size = ReadBlobLong ( image ) ;\n ipl_info . width = ReadBlobLong ( image ) ;\n ipl_info . height = ReadBlobLong ( image ) ;\n if ( ( ipl_info . width == 0UL ) || ( ipl_info . height == 0UL ) ) ThrowReaderException ( CorruptImageError , \"ImproperImageHeader\" ) ;\n ipl_info . colors = ReadBlobLong ( image ) ;\n if ( ipl_info . colors == 3 ) {\n SetImageColorspace ( image , sRGBColorspace ) ;\n }\n else {\n image -> colorspace = GRAYColorspace ;\n }\n ipl_info . z = ReadBlobLong ( image ) ;\n ipl_info . time = ReadBlobLong ( image ) ;\n ipl_info . byteType = ReadBlobLong ( image ) ;\n switch ( ipl_info . byteType ) {\n case 0 : ipl_info . depth = 8 ;\n quantum_format = UnsignedQuantumFormat ;\n break ;\n case 1 : ipl_info . depth = 16 ;\n quantum_format = SignedQuantumFormat ;\n break ;\n case 2 : ipl_info . depth = 16 ;\n quantum_format = UnsignedQuantumFormat ;\n break ;\n case 3 : ipl_info . depth = 32 ;\n quantum_format = SignedQuantumFormat ;\n break ;\n case 4 : ipl_info . depth = 32 ;\n quantum_format = FloatingPointQuantumFormat ;\n break ;\n case 5 : ipl_info . depth = 8 ;\n quantum_format = UnsignedQuantumFormat ;\n break ;\n case 6 : ipl_info . depth = 16 ;\n quantum_format = UnsignedQuantumFormat ;\n break ;\n case 10 : ipl_info . depth = 64 ;\n quantum_format = FloatingPointQuantumFormat ;\n break ;\n default : ipl_info . depth = 16 ;\n quantum_format = UnsignedQuantumFormat ;\n break ;\n }\n SetHeaderFromIPL ( image , & ipl_info ) ;\n if ( image_info -> ping != MagickFalse ) {\n ( void ) CloseBlob ( image ) ;\n return ( GetFirstImageInList ( image ) ) ;\n }\n length = image -> columns ;\n quantum_type = GetQuantumType ( image , exception ) ;\n do {\n SetHeaderFromIPL ( image , & ipl_info ) ;\n if ( ( image_info -> ping != MagickFalse ) && ( image_info -> number_scenes != 0 ) ) if ( image -> scene >= ( image_info -> scene + image_info -> number_scenes - 1 ) ) break ;\n status = SetImageExtent ( image , image -> columns , image -> rows ) ;\n if ( status == MagickFalse ) {\n InheritException ( exception , & image -> exception ) ;\n return ( DestroyImageList ( image ) ) ;\n }\n quantum_info = AcquireQuantumInfo ( image_info , image ) ;\n if ( quantum_info == ( QuantumInfo * ) NULL ) ThrowReaderException ( ResourceLimitError , \"MemoryAllocationFailed\" ) ;\n status = SetQuantumFormat ( image , quantum_info , quantum_format ) ;\n if ( status == MagickFalse ) ThrowReaderException ( ResourceLimitError , \"MemoryAllocationFailed\" ) ;\n pixels = GetQuantumPixels ( quantum_info ) ;\n if ( image -> columns != ipl_info . width ) {\n }\n if ( ipl_info . colors == 1 ) {\n for ( y = 0 ;\n y < ( ssize_t ) image -> rows ;\n y ++ ) {\n ( void ) ReadBlob ( image , length * image -> depth / 8 , pixels ) ;\n q = QueueAuthenticPixels ( image , 0 , y , image -> columns , 1 , exception ) ;\n if ( q == ( PixelPacket * ) NULL ) break ;\n ( void ) ImportQuantumPixels ( image , ( CacheView * ) NULL , quantum_info , GrayQuantum , pixels , exception ) ;\n if ( SyncAuthenticPixels ( image , exception ) == MagickFalse ) break ;\n }\n }\n else {\n for ( y = 0 ;\n y < ( ssize_t ) image -> rows ;\n y ++ ) {\n ( void ) ReadBlob ( image , length * image -> depth / 8 , pixels ) ;\n q = QueueAuthenticPixels ( image , 0 , y , image -> columns , 1 , exception ) ;\n if ( q == ( PixelPacket * ) NULL ) break ;\n ( void ) ImportQuantumPixels ( image , ( CacheView * ) NULL , quantum_info , RedQuantum , pixels , exception ) ;\n if ( SyncAuthenticPixels ( image , exception ) == MagickFalse ) break ;\n }\n for ( y = 0 ;\n y < ( ssize_t ) image -> rows ;\n y ++ ) {\n ( void ) ReadBlob ( image , length * image -> depth / 8 , pixels ) ;\n q = QueueAuthenticPixels ( image , 0 , y , image -> columns , 1 , exception ) ;\n if ( q == ( PixelPacket * ) NULL ) break ;\n ( void ) ImportQuantumPixels ( image , ( CacheView * ) NULL , quantum_info , GreenQuantum , pixels , exception ) ;\n if ( SyncAuthenticPixels ( image , exception ) == MagickFalse ) break ;\n }\n for ( y = 0 ;\n y < ( ssize_t ) image -> rows ;\n y ++ ) {\n ( void ) ReadBlob ( image , length * image -> depth / 8 , pixels ) ;\n q = QueueAuthenticPixels ( image , 0 , y , image -> columns , 1 , exception ) ;\n if ( q == ( PixelPacket * ) NULL ) break ;\n ( void ) ImportQuantumPixels ( image , ( CacheView * ) NULL , quantum_info , BlueQuantum , pixels , exception ) ;\n if ( SyncAuthenticPixels ( image , exception ) == MagickFalse ) break ;\n }\n }\n SetQuantumImageType ( image , quantum_type ) ;\n t_count ++ ;\n quantum_info = DestroyQuantumInfo ( quantum_info ) ;\n if ( EOFBlob ( image ) != MagickFalse ) {\n ThrowFileException ( exception , CorruptImageError , \"UnexpectedEndOfFile\" , image -> filename ) ;\n break ;\n }\n if ( t_count < ipl_info . z * ipl_info . time ) {\n AcquireNextImage ( image_info , image ) ;\n if ( GetNextImageInList ( image ) == ( Image * ) NULL ) {\n image = DestroyImageList ( image ) ;\n return ( ( Image * ) NULL ) ;\n }\n image = SyncNextImageInList ( image ) ;\n status = SetImageProgress ( image , LoadImagesTag , TellBlob ( image ) , GetBlobSize ( image ) ) ;\n if ( status == MagickFalse ) break ;\n }\n }\n while ( t_count < ipl_info . z * ipl_info . time ) ;\n CloseBlob ( image ) ;\n return ( GetFirstImageInList ( image ) ) ;\n }"}
{"idx": 2203, "target": 0, "func": "static void remoteDispatchCopyError ( remote_error * rerr , virErrorPtr verr ) {\n rerr -> code = verr -> code ;\n rerr -> domain = verr -> domain ;\n rerr -> message = verr -> message ? malloc ( sizeof ( char * ) ) : NULL ;\n if ( rerr -> message ) * rerr -> message = strdup ( verr -> message ) ;\n rerr -> level = verr -> level ;\n rerr -> str1 = verr -> str1 ? malloc ( sizeof ( char * ) ) : NULL ;\n if ( rerr -> str1 ) * rerr -> str1 = strdup ( verr -> str1 ) ;\n rerr -> str2 = verr -> str2 ? malloc ( sizeof ( char * ) ) : NULL ;\n if ( rerr -> str2 ) * rerr -> str2 = strdup ( verr -> str2 ) ;\n rerr -> str3 = verr -> str3 ? malloc ( sizeof ( char * ) ) : NULL ;\n if ( rerr -> str3 ) * rerr -> str3 = strdup ( verr -> str3 ) ;\n rerr -> int1 = verr -> int1 ;\n rerr -> int2 = verr -> int2 ;\n }"}
{"idx": 2204, "target": 0, "func": "static int run_question ( CommonJob * job , char * primary_text , char * secondary_text , const char * details_text , gboolean show_all , ... ) {\n va_list varargs ;\n int res ;\n va_start ( varargs , show_all ) ;\n res = run_simple_dialog_va ( job , FALSE , GTK_MESSAGE_QUESTION , primary_text , secondary_text , details_text , show_all , varargs ) ;\n va_end ( varargs ) ;\n return res ;\n }"}
{"idx": 2205, "target": 0, "func": "static int ts_lua_http_config_string_get ( lua_State * L ) {\n int conf ;\n const char * value ;\n int value_len ;\n ts_lua_http_ctx * http_ctx ;\n GET_HTTP_CONTEXT ( http_ctx , L ) ;\n conf = luaL_checkinteger ( L , 1 ) ;\n TSHttpTxnConfigStringGet ( http_ctx -> txnp , conf , & value , & value_len ) ;\n lua_pushlstring ( L , value , value_len ) ;\n return 1 ;\n }"}
{"idx": 2206, "target": 1, "func": "static void _UTF7ToUnicodeWithOffsets ( UConverterToUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n UConverter * cnv ;\n const uint8_t * source , * sourceLimit ;\n UChar * target ;\n const UChar * targetLimit ;\n int32_t * offsets ;\n uint8_t * bytes ;\n uint8_t byteIndex ;\n int32_t length , targetCapacity ;\n uint16_t bits ;\n int8_t base64Counter ;\n UBool inDirectMode ;\n int8_t base64Value ;\n int32_t sourceIndex , nextSourceIndex ;\n uint8_t b ;\n cnv = pArgs -> converter ;\n source = ( const uint8_t * ) pArgs -> source ;\n sourceLimit = ( const uint8_t * ) pArgs -> sourceLimit ;\n target = pArgs -> target ;\n targetLimit = pArgs -> targetLimit ;\n offsets = pArgs -> offsets ;\n {\n uint32_t status = cnv -> toUnicodeStatus ;\n inDirectMode = ( UBool ) ( ( status >> 24 ) & 1 ) ;\n base64Counter = ( int8_t ) ( status >> 16 ) ;\n bits = ( uint16_t ) status ;\n }\n bytes = cnv -> toUBytes ;\n byteIndex = cnv -> toULength ;\n sourceIndex = byteIndex == 0 ? 0 : - 1 ;\n nextSourceIndex = 0 ;\n if ( inDirectMode ) {\n directMode : byteIndex = 0 ;\n length = ( int32_t ) ( sourceLimit - source ) ;\n targetCapacity = ( int32_t ) ( targetLimit - target ) ;\n if ( length > targetCapacity ) {\n length = targetCapacity ;\n }\n while ( length > 0 ) {\n b = * source ++ ;\n if ( ! isLegalUTF7 ( b ) ) {\n bytes [ 0 ] = b ;\n byteIndex = 1 ;\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n else if ( b != PLUS ) {\n * target ++ = b ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ++ ;\n }\n }\n else {\n nextSourceIndex = ++ sourceIndex ;\n inDirectMode = FALSE ;\n byteIndex = 0 ;\n bits = 0 ;\n base64Counter = - 1 ;\n goto unicodeMode ;\n }\n -- length ;\n }\n if ( source < sourceLimit && target >= targetLimit ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n else {\n unicodeMode : while ( source < sourceLimit ) {\n if ( target < targetLimit ) {\n bytes [ byteIndex ++ ] = b = * source ++ ;\n ++ nextSourceIndex ;\n base64Value = - 3 ;\n if ( b >= 126 || ( base64Value = fromBase64 [ b ] ) == - 3 || base64Value == - 1 ) {\n inDirectMode = TRUE ;\n if ( base64Counter == - 1 ) {\n -- source ;\n bytes [ 0 ] = PLUS ;\n byteIndex = 1 ;\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n else if ( bits != 0 ) {\n -- source ;\n -- byteIndex ;\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n else {\n if ( base64Value == - 3 ) {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n else {\n -- source ;\n sourceIndex = nextSourceIndex - 1 ;\n goto directMode ;\n }\n }\n }\n else if ( base64Value >= 0 ) {\n switch ( base64Counter ) {\n case - 1 : case 0 : bits = base64Value ;\n base64Counter = 1 ;\n break ;\n case 1 : case 3 : case 4 : case 6 : bits = ( uint16_t ) ( ( bits << 6 ) | base64Value ) ;\n ++ base64Counter ;\n break ;\n case 2 : * target ++ = ( UChar ) ( ( bits << 4 ) | ( base64Value >> 2 ) ) ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n sourceIndex = nextSourceIndex - 1 ;\n }\n bytes [ 0 ] = b ;\n byteIndex = 1 ;\n bits = ( uint16_t ) ( base64Value & 3 ) ;\n base64Counter = 3 ;\n break ;\n case 5 : * target ++ = ( UChar ) ( ( bits << 2 ) | ( base64Value >> 4 ) ) ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n sourceIndex = nextSourceIndex - 1 ;\n }\n bytes [ 0 ] = b ;\n byteIndex = 1 ;\n bits = ( uint16_t ) ( base64Value & 15 ) ;\n base64Counter = 6 ;\n break ;\n case 7 : * target ++ = ( UChar ) ( ( bits << 6 ) | base64Value ) ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n sourceIndex = nextSourceIndex ;\n }\n byteIndex = 0 ;\n bits = 0 ;\n base64Counter = 0 ;\n break ;\n default : break ;\n }\n }\n else {\n inDirectMode = TRUE ;\n if ( base64Counter == - 1 ) {\n * target ++ = PLUS ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex - 1 ;\n }\n }\n else {\n if ( bits != 0 ) {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n }\n sourceIndex = nextSourceIndex ;\n goto directMode ;\n }\n }\n else {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n }\n if ( U_SUCCESS ( * pErrorCode ) && pArgs -> flush && source == sourceLimit && bits == 0 ) {\n byteIndex = 0 ;\n }\n cnv -> toUnicodeStatus = ( ( uint32_t ) inDirectMode << 24 ) | ( ( uint32_t ) ( ( uint8_t ) base64Counter ) << 16 ) | ( uint32_t ) bits ;\n cnv -> toULength = byteIndex ;\n pArgs -> source = ( const char * ) source ;\n pArgs -> target = target ;\n pArgs -> offsets = offsets ;\n return ;\n }"}
{"idx": 2207, "target": 0, "func": "static int dv_decode_video_segment ( AVCodecContext * avctx , void * arg ) {\n DVVideoContext * s = avctx -> priv_data ;\n DVwork_chunk * work_chunk = arg ;\n int quant , dc , dct_mode , class1 , j ;\n int mb_index , mb_x , mb_y , last_index ;\n int y_stride , linesize ;\n int16_t * block , * block1 ;\n int c_offset ;\n uint8_t * y_ptr ;\n const uint8_t * buf_ptr ;\n PutBitContext pb , vs_pb ;\n GetBitContext gb ;\n BlockInfo mb_data [ 5 * DV_MAX_BPM ] , * mb , * mb1 ;\n LOCAL_ALIGNED_16 ( int16_t , sblock , [ 5 * DV_MAX_BPM ] , [ 64 ] ) ;\n LOCAL_ALIGNED_16 ( uint8_t , mb_bit_buffer , [ 80 + FF_INPUT_BUFFER_PADDING_SIZE ] ) ;\n LOCAL_ALIGNED_16 ( uint8_t , vs_bit_buffer , [ 5 * 80 + FF_INPUT_BUFFER_PADDING_SIZE ] ) ;\n const int log2_blocksize = 3 ;\n int is_field_mode [ 5 ] ;\n assert ( ( ( ( int ) mb_bit_buffer ) & 7 ) == 0 ) ;\n assert ( ( ( ( int ) vs_bit_buffer ) & 7 ) == 0 ) ;\n memset ( sblock , 0 , 5 * DV_MAX_BPM * sizeof ( * sblock ) ) ;\n buf_ptr = & s -> buf [ work_chunk -> buf_offset * 80 ] ;\n block1 = & sblock [ 0 ] [ 0 ] ;\n mb1 = mb_data ;\n init_put_bits ( & vs_pb , vs_bit_buffer , 5 * 80 ) ;\n for ( mb_index = 0 ;\n mb_index < 5 ;\n mb_index ++ , mb1 += s -> sys -> bpm , block1 += s -> sys -> bpm * 64 ) {\n quant = buf_ptr [ 3 ] & 0x0f ;\n buf_ptr += 4 ;\n init_put_bits ( & pb , mb_bit_buffer , 80 ) ;\n mb = mb1 ;\n block = block1 ;\n is_field_mode [ mb_index ] = 0 ;\n for ( j = 0 ;\n j < s -> sys -> bpm ;\n j ++ ) {\n last_index = s -> sys -> block_sizes [ j ] ;\n init_get_bits ( & gb , buf_ptr , last_index ) ;\n dc = get_sbits ( & gb , 9 ) ;\n dct_mode = get_bits1 ( & gb ) ;\n class1 = get_bits ( & gb , 2 ) ;\n if ( DV_PROFILE_IS_HD ( s -> sys ) ) {\n mb -> idct_put = s -> idct_put [ 0 ] ;\n mb -> scan_table = s -> dv_zigzag [ 0 ] ;\n mb -> factor_table = & s -> sys -> idct_factor [ ( j >= 4 ) * 4 * 16 * 64 + class1 * 16 * 64 + quant * 64 ] ;\n is_field_mode [ mb_index ] |= ! j && dct_mode ;\n }\n else {\n mb -> idct_put = s -> idct_put [ dct_mode && log2_blocksize == 3 ] ;\n mb -> scan_table = s -> dv_zigzag [ dct_mode ] ;\n mb -> factor_table = & s -> sys -> idct_factor [ ( class1 == 3 ) * 2 * 22 * 64 + dct_mode * 22 * 64 + ( quant + ff_dv_quant_offset [ class1 ] ) * 64 ] ;\n }\n dc = dc << 2 ;\n dc += 1024 ;\n block [ 0 ] = dc ;\n buf_ptr += last_index >> 3 ;\n mb -> pos = 0 ;\n mb -> partial_bit_count = 0 ;\n av_dlog ( avctx , \"MB block: %d, %d \" , mb_index , j ) ;\n dv_decode_ac ( & gb , mb , block ) ;\n if ( mb -> pos >= 64 ) bit_copy ( & pb , & gb ) ;\n block += 64 ;\n mb ++ ;\n }\n av_dlog ( avctx , \"***pass 2 size=%d MB#=%d\\n\" , put_bits_count ( & pb ) , mb_index ) ;\n block = block1 ;\n mb = mb1 ;\n init_get_bits ( & gb , mb_bit_buffer , put_bits_count ( & pb ) ) ;\n put_bits32 ( & pb , 0 ) ;\n flush_put_bits ( & pb ) ;\n for ( j = 0 ;\n j < s -> sys -> bpm ;\n j ++ , block += 64 , mb ++ ) {\n if ( mb -> pos < 64 && get_bits_left ( & gb ) > 0 ) {\n dv_decode_ac ( & gb , mb , block ) ;\n if ( mb -> pos < 64 ) break ;\n }\n }\n if ( j >= s -> sys -> bpm ) bit_copy ( & vs_pb , & gb ) ;\n }\n av_dlog ( avctx , \"***pass 3 size=%d\\n\" , put_bits_count ( & vs_pb ) ) ;\n block = & sblock [ 0 ] [ 0 ] ;\n mb = mb_data ;\n init_get_bits ( & gb , vs_bit_buffer , put_bits_count ( & vs_pb ) ) ;\n put_bits32 ( & vs_pb , 0 ) ;\n flush_put_bits ( & vs_pb ) ;\n for ( mb_index = 0 ;\n mb_index < 5 ;\n mb_index ++ ) {\n for ( j = 0 ;\n j < s -> sys -> bpm ;\n j ++ ) {\n if ( mb -> pos < 64 ) {\n av_dlog ( avctx , \"start %d:%d\\n\" , mb_index , j ) ;\n dv_decode_ac ( & gb , mb , block ) ;\n }\n if ( mb -> pos >= 64 && mb -> pos < 127 ) av_log ( avctx , AV_LOG_ERROR , \"AC EOB marker is absent pos=%d\\n\" , mb -> pos ) ;\n block += 64 ;\n mb ++ ;\n }\n }\n block = & sblock [ 0 ] [ 0 ] ;\n mb = mb_data ;\n for ( mb_index = 0 ;\n mb_index < 5 ;\n mb_index ++ ) {\n dv_calculate_mb_xy ( s , work_chunk , mb_index , & mb_x , & mb_y ) ;\n if ( ( s -> sys -> pix_fmt == AV_PIX_FMT_YUV420P ) || ( s -> sys -> pix_fmt == AV_PIX_FMT_YUV411P && mb_x >= ( 704 / 8 ) ) || ( s -> sys -> height >= 720 && mb_y != 134 ) ) {\n y_stride = ( s -> picture . linesize [ 0 ] << ( ( ! is_field_mode [ mb_index ] ) * log2_blocksize ) ) ;\n }\n else {\n y_stride = ( 2 << log2_blocksize ) ;\n }\n y_ptr = s -> picture . data [ 0 ] + ( ( mb_y * s -> picture . linesize [ 0 ] + mb_x ) << log2_blocksize ) ;\n linesize = s -> picture . linesize [ 0 ] << is_field_mode [ mb_index ] ;\n mb [ 0 ] . idct_put ( y_ptr , linesize , block + 0 * 64 ) ;\n if ( s -> sys -> video_stype == 4 ) {\n mb [ 2 ] . idct_put ( y_ptr + ( 1 << log2_blocksize ) , linesize , block + 2 * 64 ) ;\n }\n else {\n mb [ 1 ] . idct_put ( y_ptr + ( 1 << log2_blocksize ) , linesize , block + 1 * 64 ) ;\n mb [ 2 ] . idct_put ( y_ptr + y_stride , linesize , block + 2 * 64 ) ;\n mb [ 3 ] . idct_put ( y_ptr + ( 1 << log2_blocksize ) + y_stride , linesize , block + 3 * 64 ) ;\n }\n mb += 4 ;\n block += 4 * 64 ;\n c_offset = ( ( ( mb_y >> ( s -> sys -> pix_fmt == AV_PIX_FMT_YUV420P ) ) * s -> picture . linesize [ 1 ] + ( mb_x >> ( ( s -> sys -> pix_fmt == AV_PIX_FMT_YUV411P ) ? 2 : 1 ) ) ) << log2_blocksize ) ;\n for ( j = 2 ;\n j ;\n j -- ) {\n uint8_t * c_ptr = s -> picture . data [ j ] + c_offset ;\n if ( s -> sys -> pix_fmt == AV_PIX_FMT_YUV411P && mb_x >= ( 704 / 8 ) ) {\n uint64_t aligned_pixels [ 64 / 8 ] ;\n uint8_t * pixels = ( uint8_t * ) aligned_pixels ;\n uint8_t * c_ptr1 , * ptr1 ;\n int x , y ;\n mb -> idct_put ( pixels , 8 , block ) ;\n for ( y = 0 ;\n y < ( 1 << log2_blocksize ) ;\n y ++ , c_ptr += s -> picture . linesize [ j ] , pixels += 8 ) {\n ptr1 = pixels + ( 1 << ( log2_blocksize - 1 ) ) ;\n c_ptr1 = c_ptr + ( s -> picture . linesize [ j ] << log2_blocksize ) ;\n for ( x = 0 ;\n x < ( 1 << ( log2_blocksize - 1 ) ) ;\n x ++ ) {\n c_ptr [ x ] = pixels [ x ] ;\n c_ptr1 [ x ] = ptr1 [ x ] ;\n }\n }\n block += 64 ;\n mb ++ ;\n }\n else {\n y_stride = ( mb_y == 134 ) ? ( 1 << log2_blocksize ) : s -> picture . linesize [ j ] << ( ( ! is_field_mode [ mb_index ] ) * log2_blocksize ) ;\n linesize = s -> picture . linesize [ j ] << is_field_mode [ mb_index ] ;\n ( mb ++ ) -> idct_put ( c_ptr , linesize , block ) ;\n block += 64 ;\n if ( s -> sys -> bpm == 8 ) {\n ( mb ++ ) -> idct_put ( c_ptr + y_stride , linesize , block ) ;\n block += 64 ;\n }\n }\n }\n }\n return 0 ;\n }"}
{"idx": 2208, "target": 0, "func": "static void e1000e_set_phy_page ( E1000ECore * core , int index , uint16_t val ) {\n core -> phy [ 0 ] [ PHY_PAGE ] = val & PHY_PAGE_RW_MASK ;\n }"}
{"idx": 2209, "target": 0, "func": "static void secondary_cpu_reset ( void * opaque ) {\n SPARCCPU * cpu = opaque ;\n CPUState * cs = CPU ( cpu ) ;\n cpu_reset ( cs ) ;\n cs -> halted = 1 ;\n }"}
{"idx": 2210, "target": 0, "func": "void crypto_policy_set_rtcp_default ( crypto_policy_t * p ) {\n p -> cipher_type = AES_ICM ;\n p -> cipher_key_len = 30 ;\n p -> auth_type = HMAC_SHA1 ;\n p -> auth_key_len = 20 ;\n p -> auth_tag_len = 10 ;\n p -> sec_serv = sec_serv_conf_and_auth ;\n }"}
{"idx": 2211, "target": 0, "func": "static int dissect_h245_INTEGER_M262144_262143 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , - 262144 , 262143U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 2212, "target": 0, "func": "static inline void set_myanmar_properties ( hb_glyph_info_t & info ) {\n hb_codepoint_t u = info . codepoint ;\n unsigned int type = hb_indic_get_categories ( u ) ;\n indic_category_t cat = ( indic_category_t ) ( type & 0x7Fu ) ;\n indic_position_t pos = ( indic_position_t ) ( type >> 8 ) ;\n if ( unlikely ( hb_in_range ( u , 0xFE00u , 0xFE0Fu ) ) ) cat = ( indic_category_t ) OT_VS ;\n switch ( u ) {\n case 0x104Eu : cat = ( indic_category_t ) OT_C ;\n break ;\n case 0x002Du : case 0x00A0u : case 0x00D7u : case 0x2012u : case 0x2013u : case 0x2014u : case 0x2015u : case 0x2022u : case 0x25CCu : case 0x25FBu : case 0x25FCu : case 0x25FDu : case 0x25FEu : cat = ( indic_category_t ) OT_GB ;\n break ;\n case 0x1004u : case 0x101Bu : case 0x105Au : cat = ( indic_category_t ) OT_Ra ;\n break ;\n case 0x1032u : case 0x1036u : cat = ( indic_category_t ) OT_A ;\n break ;\n case 0x103Au : cat = ( indic_category_t ) OT_As ;\n break ;\n case 0x1041u : case 0x1042u : case 0x1043u : case 0x1044u : case 0x1045u : case 0x1046u : case 0x1047u : case 0x1048u : case 0x1049u : case 0x1090u : case 0x1091u : case 0x1092u : case 0x1093u : case 0x1094u : case 0x1095u : case 0x1096u : case 0x1097u : case 0x1098u : case 0x1099u : cat = ( indic_category_t ) OT_D ;\n break ;\n case 0x1040u : cat = ( indic_category_t ) OT_D ;\n break ;\n case 0x103Eu : case 0x1060u : cat = ( indic_category_t ) OT_MH ;\n break ;\n case 0x103Cu : cat = ( indic_category_t ) OT_MR ;\n break ;\n case 0x103Du : case 0x1082u : cat = ( indic_category_t ) OT_MW ;\n break ;\n case 0x103Bu : case 0x105Eu : case 0x105Fu : cat = ( indic_category_t ) OT_MY ;\n break ;\n case 0x1063u : case 0x1064u : case 0x1069u : case 0x106Au : case 0x106Bu : case 0x106Cu : case 0x106Du : case 0xAA7Bu : cat = ( indic_category_t ) OT_PT ;\n break ;\n case 0x1038u : case 0x1087u : case 0x1088u : case 0x1089u : case 0x108Au : case 0x108Bu : case 0x108Cu : case 0x108Du : case 0x108Fu : case 0x109Au : case 0x109Bu : case 0x109Cu : cat = ( indic_category_t ) OT_SM ;\n break ;\n case 0x104Au : case 0x104Bu : cat = ( indic_category_t ) OT_P ;\n break ;\n }\n if ( cat == OT_M ) {\n switch ( ( int ) pos ) {\n case POS_PRE_C : cat = ( indic_category_t ) OT_VPre ;\n pos = POS_PRE_M ;\n break ;\n case POS_ABOVE_C : cat = ( indic_category_t ) OT_VAbv ;\n break ;\n case POS_BELOW_C : cat = ( indic_category_t ) OT_VBlw ;\n break ;\n case POS_POST_C : cat = ( indic_category_t ) OT_VPst ;\n break ;\n }\n }\n info . myanmar_category ( ) = ( myanmar_category_t ) cat ;\n info . myanmar_position ( ) = pos ;\n }"}
{"idx": 2213, "target": 0, "func": "static long srec_get_symtab_upper_bound ( bfd * abfd ) {\n return ( bfd_get_symcount ( abfd ) + 1 ) * sizeof ( asymbol * ) ;\n }"}
{"idx": 2214, "target": 0, "func": "static void ImportRGBAQuantum ( const Image * image , QuantumInfo * quantum_info , const MagickSizeType number_pixels , const unsigned char * magick_restrict p , Quantum * magick_restrict q , ExceptionInfo * exception ) {\n QuantumAny range ;\n register ssize_t x ;\n unsigned int pixel ;\n assert ( image != ( Image * ) NULL ) ;\n assert ( image -> signature == MagickCoreSignature ) ;\n switch ( quantum_info -> depth ) {\n case 8 : {\n unsigned char pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelRed ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelGreen ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelBlue ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelAlpha ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 10 : {\n pixel = 0 ;\n if ( quantum_info -> pack == MagickFalse ) {\n register ssize_t i ;\n size_t quantum ;\n ssize_t n ;\n n = 0 ;\n quantum = 0 ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n switch ( n % 3 ) {\n case 0 : {\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n quantum = ( size_t ) ( ScaleShortToQuantum ( ( unsigned short ) ( ( ( pixel >> 22 ) & 0x3ff ) << 6 ) ) ) ;\n break ;\n }\n case 1 : {\n quantum = ( size_t ) ( ScaleShortToQuantum ( ( unsigned short ) ( ( ( pixel >> 12 ) & 0x3ff ) << 6 ) ) ) ;\n break ;\n }\n case 2 : {\n quantum = ( size_t ) ( ScaleShortToQuantum ( ( unsigned short ) ( ( ( pixel >> 2 ) & 0x3ff ) << 6 ) ) ) ;\n break ;\n }\n }\n switch ( i ) {\n case 0 : SetPixelRed ( image , ( Quantum ) quantum , q ) ;\n break ;\n case 1 : SetPixelGreen ( image , ( Quantum ) quantum , q ) ;\n break ;\n case 2 : SetPixelBlue ( image , ( Quantum ) quantum , q ) ;\n break ;\n case 3 : SetPixelAlpha ( image , ( Quantum ) quantum , q ) ;\n break ;\n }\n n ++ ;\n }\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ScaleShortToQuantum ( ( unsigned short ) ( pixel << 6 ) ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ScaleShortToQuantum ( ( unsigned short ) ( pixel << 6 ) ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ScaleShortToQuantum ( ( unsigned short ) ( pixel << 6 ) ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelAlpha ( image , ScaleShortToQuantum ( ( unsigned short ) ( pixel << 6 ) ) , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 16 : {\n unsigned short pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelRed ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGreen ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlue ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelAlpha ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelRed ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGreen ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlue ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelAlpha ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 32 : {\n unsigned int pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n float pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelAlpha ( image , ClampToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelRed ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGreen ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlue ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelAlpha ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 64 : {\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n double pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelAlpha ( image , ClampToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n default : {\n range = GetQuantumRange ( quantum_info -> depth ) ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelAlpha ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n }"}
{"idx": 2215, "target": 0, "func": "static void pk_proxy_appeared_cb ( GObject * source , GAsyncResult * res , gpointer user_data ) {\n ActivateParametersInstall * parameters_install = user_data ;\n char * mime_type , * name_owner ;\n char * error_message ;\n GtkWidget * dialog ;\n GDBusProxy * proxy ;\n GError * error = NULL ;\n proxy = g_dbus_proxy_new_for_bus_finish ( res , & error ) ;\n name_owner = g_dbus_proxy_get_name_owner ( proxy ) ;\n if ( error != NULL || name_owner == NULL ) {\n g_warning ( \"Couldn't call Modify on the PackageKit interface: %s\" , error != NULL ? error -> message : \"no owner for PackageKit\" ) ;\n g_clear_error ( & error ) ;\n show_unhandled_type_error ( parameters_install ) ;\n return ;\n }\n g_free ( name_owner ) ;\n mime_type = nautilus_file_get_mime_type ( parameters_install -> file ) ;\n error_message = get_application_no_mime_type_handler_message ( parameters_install -> file , parameters_install -> uri ) ;\n dialog = gtk_message_dialog_new ( parameters_install -> parent_window , 0 , GTK_MESSAGE_ERROR , GTK_BUTTONS_YES_NO , \"%s\" , error_message ) ;\n gtk_message_dialog_format_secondary_text ( GTK_MESSAGE_DIALOG ( dialog ) , _ ( \"There is no application installed for \u201c%s\u201d files.\\n\" \"Do you want to search for an application to open this file?\" ) , g_content_type_get_description ( mime_type ) ) ;\n gtk_window_set_resizable ( GTK_WINDOW ( dialog ) , FALSE ) ;\n parameters_install -> dialog = dialog ;\n parameters_install -> proxy = proxy ;\n g_signal_connect ( dialog , \"response\" , G_CALLBACK ( application_unhandled_file_install ) , parameters_install ) ;\n g_signal_connect ( dialog , \"delete-event\" , G_CALLBACK ( delete_cb ) , NULL ) ;\n gtk_widget_show_all ( dialog ) ;\n g_free ( mime_type ) ;\n }"}
{"idx": 2216, "target": 0, "func": "static void isofile_init_entry_list ( struct iso9660 * iso9660 ) {\n iso9660 -> all_file_list . first = NULL ;\n iso9660 -> all_file_list . last = & ( iso9660 -> all_file_list . first ) ;\n }"}
{"idx": 2217, "target": 0, "func": "static int com_use ( String * buffer __attribute__ ( ( unused ) ) , char * line ) {\n char * tmp , buff [ FN_REFLEN + 1 ] ;\n int select_db ;\n bzero ( buff , sizeof ( buff ) ) ;\n strmake_buf ( buff , line ) ;\n tmp = get_arg ( buff , GET ) ;\n if ( ! tmp || ! * tmp ) {\n put_info ( \"USE must be followed by a database name\" , INFO_ERROR ) ;\n return 0 ;\n }\n get_current_db ( ) ;\n if ( ! current_db || cmp_database ( charset_info , current_db , tmp ) ) {\n if ( one_database ) {\n skip_updates = 1 ;\n select_db = 0 ;\n }\n else select_db = 2 ;\n }\n else {\n skip_updates = 0 ;\n select_db = 1 ;\n }\n if ( select_db ) {\n if ( ! connected && reconnect ( ) ) return opt_reconnect ? - 1 : 1 ;\n if ( mysql_select_db ( & mysql , tmp ) ) {\n if ( mysql_errno ( & mysql ) != CR_SERVER_GONE_ERROR ) return put_error ( & mysql ) ;\n if ( reconnect ( ) ) return opt_reconnect ? - 1 : 1 ;\n if ( mysql_select_db ( & mysql , tmp ) ) return put_error ( & mysql ) ;\n }\n my_free ( current_db ) ;\n current_db = my_strdup ( tmp , MYF ( MY_WME ) ) ;\n # ifdef HAVE_READLINE if ( select_db > 1 ) build_completion_hash ( opt_rehash , 1 ) ;\n # endif }\n put_info ( \"Database changed\" , INFO_INFO ) ;\n return 0 ;\n }"}
{"idx": 2218, "target": 0, "func": "static void lfe_interpolation_fir ( DCAContext * s , int decimation_select , int num_deci_sample , float * samples_in , float * samples_out , float scale ) {\n int decifactor ;\n const float * prCoeff ;\n int deciindex ;\n if ( decimation_select == 1 ) {\n decifactor = 64 ;\n prCoeff = lfe_fir_128 ;\n }\n else {\n decifactor = 32 ;\n prCoeff = lfe_fir_64 ;\n }\n for ( deciindex = 0 ;\n deciindex < num_deci_sample ;\n deciindex ++ ) {\n s -> dcadsp . lfe_fir ( samples_out , samples_in , prCoeff , decifactor , scale ) ;\n samples_in ++ ;\n samples_out += 2 * decifactor ;\n }\n }"}
{"idx": 2219, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FullscreenControllerInteractiveTest , DISABLED_FullscreenMouseLockContentSettings ) {\n TestFullscreenMouseLockContentSettings ( ) ;\n }"}
{"idx": 2220, "target": 0, "func": "static void search_postfix_add ( const char * domain ) {\n int domain_len ;\n struct search_domain * sdomain ;\n while ( domain [ 0 ] == '.' ) domain ++ ;\n domain_len = strlen ( domain ) ;\n if ( ! global_search_state ) global_search_state = search_state_new ( ) ;\n if ( ! global_search_state ) return ;\n global_search_state -> num_domains ++ ;\n sdomain = ( struct search_domain * ) malloc ( sizeof ( struct search_domain ) + domain_len ) ;\n if ( ! sdomain ) return ;\n memcpy ( ( ( u8 * ) sdomain ) + sizeof ( struct search_domain ) , domain , domain_len ) ;\n sdomain -> next = global_search_state -> head ;\n sdomain -> len = domain_len ;\n global_search_state -> head = sdomain ;\n }"}
{"idx": 2221, "target": 0, "func": "static Selectivity regex_selectivity_sub ( const char * patt , int pattlen , bool case_insensitive ) {\n Selectivity sel = 1.0 ;\n int paren_depth = 0 ;\n int paren_pos = 0 ;\n int pos ;\n for ( pos = 0 ;\n pos < pattlen ;\n pos ++ ) {\n if ( patt [ pos ] == '(' ) {\n if ( paren_depth == 0 ) paren_pos = pos ;\n paren_depth ++ ;\n }\n else if ( patt [ pos ] == ')' && paren_depth > 0 ) {\n paren_depth -- ;\n if ( paren_depth == 0 ) sel *= regex_selectivity_sub ( patt + ( paren_pos + 1 ) , pos - ( paren_pos + 1 ) , case_insensitive ) ;\n }\n else if ( patt [ pos ] == '|' && paren_depth == 0 ) {\n sel += regex_selectivity_sub ( patt + ( pos + 1 ) , pattlen - ( pos + 1 ) , case_insensitive ) ;\n break ;\n }\n else if ( patt [ pos ] == '[' ) {\n bool negclass = false ;\n if ( patt [ ++ pos ] == '^' ) {\n negclass = true ;\n pos ++ ;\n }\n if ( patt [ pos ] == ']' ) pos ++ ;\n while ( pos < pattlen && patt [ pos ] != ']' ) pos ++ ;\n if ( paren_depth == 0 ) sel *= ( negclass ? ( 1.0 - CHAR_RANGE_SEL ) : CHAR_RANGE_SEL ) ;\n }\n else if ( patt [ pos ] == '.' ) {\n if ( paren_depth == 0 ) sel *= ANY_CHAR_SEL ;\n }\n else if ( patt [ pos ] == '*' || patt [ pos ] == '?' || patt [ pos ] == '+' ) {\n if ( paren_depth == 0 ) sel *= PARTIAL_WILDCARD_SEL ;\n }\n else if ( patt [ pos ] == '{\n' ) {\n while ( pos < pattlen && patt [ pos ] != '}\n' ) pos ++ ;\n if ( paren_depth == 0 ) sel *= PARTIAL_WILDCARD_SEL ;\n }\n else if ( patt [ pos ] == '\\\\' ) {\n pos ++ ;\n if ( pos >= pattlen ) break ;\n if ( paren_depth == 0 ) sel *= FIXED_CHAR_SEL ;\n }\n else {\n if ( paren_depth == 0 ) sel *= FIXED_CHAR_SEL ;\n }\n }\n if ( sel > 1.0 ) sel = 1.0 ;\n return sel ;\n }"}
{"idx": 2222, "target": 1, "func": "static void _Latin1GetUnicodeSet ( const UConverter * cnv , const USetAdder * sa , UConverterUnicodeSet which , UErrorCode * pErrorCode ) {\n sa -> addRange ( sa -> set , 0 , 0xff ) ;\n }"}
{"idx": 2223, "target": 0, "func": "static void test_signal_dealloc ( void ) {\n struct event ev ;\n struct event_base * base = event_init ( ) ;\n printf ( \"Signal dealloc: \" ) ;\n signal_set ( & ev , SIGUSR1 , signal_cb , & ev ) ;\n signal_add ( & ev , NULL ) ;\n signal_del ( & ev ) ;\n event_base_free ( base ) ;\n test_ok = 1 ;\n cleanup_test ( ) ;\n }"}
{"idx": 2224, "target": 0, "func": "static bool config_filter_is_superset ( const struct config_filter * sup , const struct config_filter * filter ) {\n if ( sup -> local_bits > filter -> local_bits ) return FALSE ;\n if ( sup -> remote_bits > filter -> remote_bits ) return FALSE ;\n if ( sup -> local_name != NULL && filter -> local_name == NULL ) {\n i_warning ( \"%s\" , sup -> local_name ) ;\n return FALSE ;\n }\n if ( sup -> service != NULL && filter -> service == NULL ) return FALSE ;\n return TRUE ;\n }"}
{"idx": 2225, "target": 0, "func": "static int nntp_msg_close ( struct Context * ctx , struct Message * msg ) {\n return mutt_file_fclose ( & msg -> fp ) ;\n }"}
{"idx": 2226, "target": 0, "func": "static void dtap_cc_modify_complete ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_TRUE ;\n ELEM_MAND_LV ( GSM_A_PDU_TYPE_DTAP , DE_BEARER_CAP , NULL ) ;\n ELEM_OPT_TLV ( 0x7c , GSM_A_PDU_TYPE_DTAP , DE_LLC , NULL ) ;\n ELEM_OPT_TLV ( 0x7d , GSM_A_PDU_TYPE_DTAP , DE_HLC , NULL ) ;\n ELEM_OPT_T ( 0xa3 , GSM_A_PDU_TYPE_DTAP , DE_REV_CALL_SETUP_DIR , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 2227, "target": 0, "func": "static unsigned int dtls1_guess_mtu ( unsigned int curr_mtu ) {\n unsigned int i ;\n if ( curr_mtu == 0 ) return g_probable_mtu [ 0 ] ;\n for ( i = 0 ;\n i < sizeof ( g_probable_mtu ) / sizeof ( g_probable_mtu [ 0 ] ) ;\n i ++ ) if ( curr_mtu > g_probable_mtu [ i ] ) return g_probable_mtu [ i ] ;\n return curr_mtu ;\n }"}
{"idx": 2228, "target": 0, "func": "int phar_is_tar ( char * buf , char * fname ) {\n tar_header * header = ( tar_header * ) buf ;\n php_uint32 checksum = phar_tar_number ( header -> checksum , sizeof ( header -> checksum ) ) ;\n php_uint32 ret ;\n char save [ sizeof ( header -> checksum ) ] ;\n if ( ! strncmp ( buf , \"<?php\" , sizeof ( \"<?php\" ) - 1 ) ) {\n return 0 ;\n }\n memcpy ( save , header -> checksum , sizeof ( header -> checksum ) ) ;\n memset ( header -> checksum , ' ' , sizeof ( header -> checksum ) ) ;\n ret = ( checksum == phar_tar_checksum ( buf , 512 ) ) ;\n memcpy ( header -> checksum , save , sizeof ( header -> checksum ) ) ;\n if ( ! ret && strstr ( fname , \".tar\" ) ) {\n return 1 ;\n }\n return ret ;\n }"}
{"idx": 2229, "target": 0, "func": "static const char * U_CALLCONV _UTF16GetName ( const UConverter * cnv ) {\n if ( UCNV_GET_VERSION ( cnv ) == 0 ) {\n return \"UTF-16\" ;\n }\n else if ( UCNV_GET_VERSION ( cnv ) == 1 ) {\n return \"UTF-16,version=1\" ;\n }\n else {\n return \"UTF-16,version=2\" ;\n }\n }"}
{"idx": 2230, "target": 0, "func": "static void lsp_interpolate ( int16_t * lpc , int16_t * cur_lsp , int16_t * prev_lsp ) {\n int i ;\n int16_t * lpc_ptr = lpc ;\n ff_acelp_weighted_vector_sum ( lpc , cur_lsp , prev_lsp , 4096 , 12288 , 1 << 13 , 14 , LPC_ORDER ) ;\n ff_acelp_weighted_vector_sum ( lpc + LPC_ORDER , cur_lsp , prev_lsp , 8192 , 8192 , 1 << 13 , 14 , LPC_ORDER ) ;\n ff_acelp_weighted_vector_sum ( lpc + 2 * LPC_ORDER , cur_lsp , prev_lsp , 12288 , 4096 , 1 << 13 , 14 , LPC_ORDER ) ;\n memcpy ( lpc + 3 * LPC_ORDER , cur_lsp , LPC_ORDER * sizeof ( * lpc ) ) ;\n for ( i = 0 ;\n i < SUBFRAMES ;\n i ++ ) {\n lsp2lpc ( lpc_ptr ) ;\n lpc_ptr += LPC_ORDER ;\n }\n }"}
{"idx": 2231, "target": 0, "func": "static void selinux_sk_clone_security ( const struct sock * sk , struct sock * newsk ) {\n struct sk_security_struct * sksec = sk -> sk_security ;\n struct sk_security_struct * newsksec = newsk -> sk_security ;\n newsksec -> sid = sksec -> sid ;\n newsksec -> peer_sid = sksec -> peer_sid ;\n newsksec -> sclass = sksec -> sclass ;\n selinux_netlbl_sk_security_reset ( newsksec ) ;\n }"}
{"idx": 2232, "target": 0, "func": "void e1000e_core_pci_realize ( E1000ECore * core , const uint16_t * eeprom_templ , uint32_t eeprom_size , const uint8_t * macaddr ) {\n int i ;\n core -> autoneg_timer = timer_new_ms ( QEMU_CLOCK_VIRTUAL , e1000e_autoneg_timer , core ) ;\n e1000e_intrmgr_pci_realize ( core ) ;\n core -> vmstate = qemu_add_vm_change_state_handler ( e1000e_vm_state_change , core ) ;\n for ( i = 0 ;\n i < E1000E_NUM_QUEUES ;\n i ++ ) {\n net_tx_pkt_init ( & core -> tx [ i ] . tx_pkt , core -> owner , E1000E_MAX_TX_FRAGS , core -> has_vnet ) ;\n }\n net_rx_pkt_init ( & core -> rx_pkt , core -> has_vnet ) ;\n e1000x_core_prepare_eeprom ( core -> eeprom , eeprom_templ , eeprom_size , PCI_DEVICE_GET_CLASS ( core -> owner ) -> device_id , macaddr ) ;\n e1000e_update_rx_offloads ( core ) ;\n }"}
{"idx": 2233, "target": 1, "func": "void kadmin_addprinc ( int argc , char * argv [ ] ) {\n kadm5_principal_ent_rec princ ;\n kadm5_policy_ent_rec defpol ;\n long mask ;\n krb5_boolean randkey = FALSE , old_style_randkey = FALSE ;\n int n_ks_tuple ;\n krb5_key_salt_tuple * ks_tuple = NULL ;\n char * pass , * canon = NULL ;\n krb5_error_code retval ;\n char newpw [ 1024 ] , dummybuf [ 256 ] ;\n static char prompt1 [ 1024 ] , prompt2 [ 1024 ] ;\n memset ( & princ , 0 , sizeof ( princ ) ) ;\n princ . attributes = 0 ;\n if ( kadmin_parse_princ_args ( argc , argv , & princ , & mask , & pass , & randkey , & ks_tuple , & n_ks_tuple , \"add_principal\" ) ) {\n kadmin_addprinc_usage ( ) ;\n goto cleanup ;\n }\n retval = krb5_unparse_name ( context , princ . principal , & canon ) ;\n if ( retval ) {\n com_err ( \"add_principal\" , retval , _ ( \"while canonicalizing principal\" ) ) ;\n goto cleanup ;\n }\n if ( ! ( mask & KADM5_POLICY ) && ! ( mask & KADM5_POLICY_CLR ) ) {\n if ( ! kadm5_get_policy ( handle , \"default\" , & defpol ) ) {\n fprintf ( stderr , _ ( \"NOTICE: no policy specified for %s;\n \" \"assigning \\\"default\\\"\\n\" ) , canon ) ;\n princ . policy = \"default\" ;\n mask |= KADM5_POLICY ;\n kadm5_free_policy_ent ( handle , & defpol ) ;\n }\n else fprintf ( stderr , _ ( \"WARNING: no policy specified for %s;\n \" \"defaulting to no policy\\n\" ) , canon ) ;\n }\n mask &= ~ KADM5_POLICY_CLR ;\n if ( randkey ) {\n pass = NULL ;\n }\n else if ( pass == NULL ) {\n unsigned int sz = sizeof ( newpw ) - 1 ;\n snprintf ( prompt1 , sizeof ( prompt1 ) , _ ( \"Enter password for principal \\\"%s\\\"\" ) , canon ) ;\n snprintf ( prompt2 , sizeof ( prompt2 ) , _ ( \"Re-enter password for principal \\\"%s\\\"\" ) , canon ) ;\n retval = krb5_read_password ( context , prompt1 , prompt2 , newpw , & sz ) ;\n if ( retval ) {\n com_err ( \"add_principal\" , retval , _ ( \"while reading password for \\\"%s\\\".\" ) , canon ) ;\n goto cleanup ;\n }\n pass = newpw ;\n }\n mask |= KADM5_PRINCIPAL ;\n retval = create_princ ( & princ , mask , n_ks_tuple , ks_tuple , pass ) ;\n if ( retval == EINVAL && randkey ) {\n prepare_dummy_password ( dummybuf , sizeof ( dummybuf ) ) ;\n princ . attributes |= KRB5_KDB_DISALLOW_ALL_TIX ;\n mask |= KADM5_ATTRIBUTES ;\n pass = dummybuf ;\n retval = create_princ ( & princ , mask , n_ks_tuple , ks_tuple , pass ) ;\n old_style_randkey = 1 ;\n }\n if ( retval ) {\n com_err ( \"add_principal\" , retval , \"while creating \\\"%s\\\".\" , canon ) ;\n goto cleanup ;\n }\n if ( old_style_randkey ) {\n retval = randkey_princ ( princ . principal , FALSE , n_ks_tuple , ks_tuple ) ;\n if ( retval ) {\n com_err ( \"add_principal\" , retval , _ ( \"while randomizing key for \\\"%s\\\".\" ) , canon ) ;\n goto cleanup ;\n }\n princ . attributes &= ~ KRB5_KDB_DISALLOW_ALL_TIX ;\n mask = KADM5_ATTRIBUTES ;\n retval = kadm5_modify_principal ( handle , & princ , mask ) ;\n if ( retval ) {\n com_err ( \"add_principal\" , retval , _ ( \"while clearing DISALLOW_ALL_TIX for \\\"%s\\\".\" ) , canon ) ;\n goto cleanup ;\n }\n }\n printf ( \"Principal \\\"%s\\\" created.\\n\" , canon ) ;\n cleanup : krb5_free_principal ( context , princ . principal ) ;\n free ( ks_tuple ) ;\n free ( canon ) ;\n kadmin_free_tl_data ( & princ . n_tl_data , & princ . tl_data ) ;\n }"}
{"idx": 2234, "target": 1, "func": "void * vpx_svc_get_buffer ( SvcContext * svc_ctx ) {\n SvcInternal * const si = get_svc_internal ( svc_ctx ) ;\n if ( svc_ctx == NULL || si == NULL || si -> frame_list == NULL ) return NULL ;\n if ( si -> frame_temp ) fd_free ( si -> frame_temp ) ;\n si -> frame_temp = si -> frame_list ;\n si -> frame_list = si -> frame_list -> next ;\n return si -> frame_temp -> buf ;\n }"}
{"idx": 2235, "target": 0, "func": "Selectivity scalararraysel ( PlannerInfo * root , ScalarArrayOpExpr * clause , bool is_join_clause , int varRelid , JoinType jointype , SpecialJoinInfo * sjinfo ) {\n Oid operator = clause -> opno ;\n bool useOr = clause -> useOr ;\n bool isEquality = false ;\n bool isInequality = false ;\n Node * leftop ;\n Node * rightop ;\n Oid nominal_element_type ;\n Oid nominal_element_collation ;\n TypeCacheEntry * typentry ;\n RegProcedure oprsel ;\n FmgrInfo oprselproc ;\n Selectivity s1 ;\n Selectivity s1disjoint ;\n Assert ( list_length ( clause -> args ) == 2 ) ;\n leftop = ( Node * ) linitial ( clause -> args ) ;\n rightop = ( Node * ) lsecond ( clause -> args ) ;\n leftop = estimate_expression_value ( root , leftop ) ;\n rightop = estimate_expression_value ( root , rightop ) ;\n nominal_element_type = get_base_element_type ( exprType ( rightop ) ) ;\n if ( ! OidIsValid ( nominal_element_type ) ) return ( Selectivity ) 0.5 ;\n nominal_element_collation = exprCollation ( rightop ) ;\n rightop = strip_array_coercion ( rightop ) ;\n typentry = lookup_type_cache ( nominal_element_type , TYPECACHE_EQ_OPR ) ;\n if ( OidIsValid ( typentry -> eq_opr ) ) {\n if ( operator == typentry -> eq_opr ) isEquality = true ;\n else if ( get_negator ( operator ) == typentry -> eq_opr ) isInequality = true ;\n }\n if ( ( isEquality || isInequality ) && ! is_join_clause ) {\n s1 = scalararraysel_containment ( root , leftop , rightop , nominal_element_type , isEquality , useOr , varRelid ) ;\n if ( s1 >= 0.0 ) return s1 ;\n }\n if ( is_join_clause ) oprsel = get_oprjoin ( operator ) ;\n else oprsel = get_oprrest ( operator ) ;\n if ( ! oprsel ) return ( Selectivity ) 0.5 ;\n fmgr_info ( oprsel , & oprselproc ) ;\n if ( oprsel == F_EQSEL || oprsel == F_EQJOINSEL ) isEquality = true ;\n else if ( oprsel == F_NEQSEL || oprsel == F_NEQJOINSEL ) isInequality = true ;\n if ( rightop && IsA ( rightop , Const ) ) {\n Datum arraydatum = ( ( Const * ) rightop ) -> constvalue ;\n bool arrayisnull = ( ( Const * ) rightop ) -> constisnull ;\n ArrayType * arrayval ;\n int16 elmlen ;\n bool elmbyval ;\n char elmalign ;\n int num_elems ;\n Datum * elem_values ;\n bool * elem_nulls ;\n int i ;\n if ( arrayisnull ) return ( Selectivity ) 0.0 ;\n arrayval = DatumGetArrayTypeP ( arraydatum ) ;\n get_typlenbyvalalign ( ARR_ELEMTYPE ( arrayval ) , & elmlen , & elmbyval , & elmalign ) ;\n deconstruct_array ( arrayval , ARR_ELEMTYPE ( arrayval ) , elmlen , elmbyval , elmalign , & elem_values , & elem_nulls , & num_elems ) ;\n s1 = s1disjoint = ( useOr ? 0.0 : 1.0 ) ;\n for ( i = 0 ;\n i < num_elems ;\n i ++ ) {\n List * args ;\n Selectivity s2 ;\n args = list_make2 ( leftop , makeConst ( nominal_element_type , - 1 , nominal_element_collation , elmlen , elem_values [ i ] , elem_nulls [ i ] , elmbyval ) ) ;\n if ( is_join_clause ) s2 = DatumGetFloat8 ( FunctionCall5Coll ( & oprselproc , clause -> inputcollid , PointerGetDatum ( root ) , ObjectIdGetDatum ( operator ) , PointerGetDatum ( args ) , Int16GetDatum ( jointype ) , PointerGetDatum ( sjinfo ) ) ) ;\n else s2 = DatumGetFloat8 ( FunctionCall4Coll ( & oprselproc , clause -> inputcollid , PointerGetDatum ( root ) , ObjectIdGetDatum ( operator ) , PointerGetDatum ( args ) , Int32GetDatum ( varRelid ) ) ) ;\n if ( useOr ) {\n s1 = s1 + s2 - s1 * s2 ;\n if ( isEquality ) s1disjoint += s2 ;\n }\n else {\n s1 = s1 * s2 ;\n if ( isInequality ) s1disjoint += s2 - 1.0 ;\n }\n }\n if ( ( useOr ? isEquality : isInequality ) && s1disjoint >= 0.0 && s1disjoint <= 1.0 ) s1 = s1disjoint ;\n }\n else if ( rightop && IsA ( rightop , ArrayExpr ) && ! ( ( ArrayExpr * ) rightop ) -> multidims ) {\n ArrayExpr * arrayexpr = ( ArrayExpr * ) rightop ;\n int16 elmlen ;\n bool elmbyval ;\n ListCell * l ;\n get_typlenbyval ( arrayexpr -> element_typeid , & elmlen , & elmbyval ) ;\n s1 = s1disjoint = ( useOr ? 0.0 : 1.0 ) ;\n foreach ( l , arrayexpr -> elements ) {\n Node * elem = ( Node * ) lfirst ( l ) ;\n List * args ;\n Selectivity s2 ;\n args = list_make2 ( leftop , elem ) ;\n if ( is_join_clause ) s2 = DatumGetFloat8 ( FunctionCall5Coll ( & oprselproc , clause -> inputcollid , PointerGetDatum ( root ) , ObjectIdGetDatum ( operator ) , PointerGetDatum ( args ) , Int16GetDatum ( jointype ) , PointerGetDatum ( sjinfo ) ) ) ;\n else s2 = DatumGetFloat8 ( FunctionCall4Coll ( & oprselproc , clause -> inputcollid , PointerGetDatum ( root ) , ObjectIdGetDatum ( operator ) , PointerGetDatum ( args ) , Int32GetDatum ( varRelid ) ) ) ;\n if ( useOr ) {\n s1 = s1 + s2 - s1 * s2 ;\n if ( isEquality ) s1disjoint += s2 ;\n }\n else {\n s1 = s1 * s2 ;\n if ( isInequality ) s1disjoint += s2 - 1.0 ;\n }\n }\n if ( ( useOr ? isEquality : isInequality ) && s1disjoint >= 0.0 && s1disjoint <= 1.0 ) s1 = s1disjoint ;\n }\n else {\n CaseTestExpr * dummyexpr ;\n List * args ;\n Selectivity s2 ;\n int i ;\n dummyexpr = makeNode ( CaseTestExpr ) ;\n dummyexpr -> typeId = nominal_element_type ;\n dummyexpr -> typeMod = - 1 ;\n dummyexpr -> collation = clause -> inputcollid ;\n args = list_make2 ( leftop , dummyexpr ) ;\n if ( is_join_clause ) s2 = DatumGetFloat8 ( FunctionCall5Coll ( & oprselproc , clause -> inputcollid , PointerGetDatum ( root ) , ObjectIdGetDatum ( operator ) , PointerGetDatum ( args ) , Int16GetDatum ( jointype ) , PointerGetDatum ( sjinfo ) ) ) ;\n else s2 = DatumGetFloat8 ( FunctionCall4Coll ( & oprselproc , clause -> inputcollid , PointerGetDatum ( root ) , ObjectIdGetDatum ( operator ) , PointerGetDatum ( args ) , Int32GetDatum ( varRelid ) ) ) ;\n s1 = useOr ? 0.0 : 1.0 ;\n for ( i = 0 ;\n i < 10 ;\n i ++ ) {\n if ( useOr ) s1 = s1 + s2 - s1 * s2 ;\n else s1 = s1 * s2 ;\n }\n }\n CLAMP_PROBABILITY ( s1 ) ;\n return s1 ;\n }"}
{"idx": 2236, "target": 0, "func": "static void dissect_rsvp_association ( proto_tree * ti , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int type ) {\n guint16 association_type ;\n guint16 association_id ;\n proto_item_set_text ( ti , \"ASSOCIATION \" ) ;\n association_type = tvb_get_ntohs ( tvb , offset + 4 ) ;\n association_id = tvb_get_ntohs ( tvb , offset + 6 ) ;\n switch ( type ) {\n case 1 : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"1 (IPv4)\" ) ;\n proto_item_append_text ( ti , \"(IPv4): \" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_association_type , tvb , offset + 4 , 2 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \"%s. \" , val_to_str ( association_type , association_type_vals , \"Unknown (%u)\" ) ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_association_id , tvb , offset + 6 , 2 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \"ID: %u. \" , association_id ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_association_source_ipv4 , tvb , offset + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \"Src: %s\" , tvb_ip_to_str ( tvb , offset + 8 ) ) ;\n break ;\n case 2 : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"2 (IPv6)\" ) ;\n proto_item_append_text ( ti , \"(IPv6): \" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_association_type , tvb , offset + 4 , 2 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \"%s. \" , val_to_str ( association_type , association_type_vals , \"Unknown (%u)\" ) ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_association_id , tvb , offset + 6 , 2 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \"ID: %u. \" , association_id ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_association_source_ipv6 , tvb , offset + 8 , 16 , ENC_NA ) ;\n proto_item_append_text ( ti , \"Src: %s\" , tvb_ip6_to_str ( tvb , offset + 8 ) ) ;\n break ;\n case 4 : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"4 (Routing Area)\" ) ;\n proto_item_append_text ( ti , \"(Routing Area): \" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_association_type , tvb , offset + 4 , 2 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \"%s. \" , val_to_str ( association_type , association_type_vals , \"Unknown (%u)\" ) ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_association_id , tvb , offset + 6 , 2 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \"Association ID: %u, \" , association_id ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_association_routing_area_id , tvb , offset + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \"Routing Area ID: %u, \" , tvb_get_ntohl ( tvb , offset + 8 ) ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_association_node_id , tvb , offset + 12 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \"Node ID: %s\" , tvb_ip_to_str ( tvb , offset + 12 ) ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_association_padding , tvb , offset + 8 , 16 , ENC_NA ) ;\n break ;\n default : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"Unknown (%u)\" , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_association_data , tvb , offset + 4 , obj_length - 4 , ENC_NA ) ;\n break ;\n }\n }"}
{"idx": 2237, "target": 0, "func": "static int get_bits_esc4 ( GetBitContext * gb ) {\n if ( get_bits1 ( gb ) ) return get_bits ( gb , 4 ) + 1 ;\n else return 0 ;\n }"}
{"idx": 2238, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( UnloadTest , CrossSiteInfiniteBeforeUnloadAsync ) {\n if ( base : : CommandLine : : ForCurrentProcess ( ) -> HasSwitch ( switches : : kSingleProcess ) ) return ;\n NavigateToDataURL ( INFINITE_BEFORE_UNLOAD_HTML , \"infinitebeforeunload\" ) ;\n NavigateToNolistenersFileTwiceAsync ( ) ;\n }"}
{"idx": 2239, "target": 0, "func": "static long nfanode ( struct vars * v , struct subre * t , int converttosearch , FILE * f ) {\n struct nfa * nfa ;\n long ret = 0 ;\n assert ( t -> begin != NULL ) ;\n # ifdef REG_DEBUG if ( f != NULL ) {\n char idbuf [ 50 ] ;\n fprintf ( f , \"\\n\\n\\n========= TREE NODE %s ==========\\n\" , stid ( t , idbuf , sizeof ( idbuf ) ) ) ;\n }\n # endif nfa = newnfa ( v , v -> cm , v -> nfa ) ;\n NOERRZ ( ) ;\n dupnfa ( nfa , t -> begin , t -> end , nfa -> init , nfa -> final ) ;\n if ( ! ISERR ( ) ) specialcolors ( nfa ) ;\n if ( ! ISERR ( ) ) ret = optimize ( nfa , f ) ;\n if ( converttosearch && ! ISERR ( ) ) makesearch ( v , nfa ) ;\n if ( ! ISERR ( ) ) compact ( nfa , & t -> cnfa ) ;\n freenfa ( nfa ) ;\n return ret ;\n }"}
{"idx": 2240, "target": 0, "func": "METHOD ( x509_t , create_subjectAltName_enumerator , enumerator_t * , private_x509_cert_t * this ) {\n return this -> subjectAltNames -> create_enumerator ( this -> subjectAltNames ) ;\n }"}
{"idx": 2241, "target": 1, "func": "static void * qemu_dummy_cpu_thread_fn ( void * arg ) {\n # ifdef _WIN32 fprintf ( stderr , \"qtest is not supported under Windows\\n\" ) ;\n exit ( 1 ) ;\n # else CPUState * cpu = arg ;\n sigset_t waitset ;\n int r ;\n qemu_mutex_lock_iothread ( ) ;\n qemu_thread_get_self ( cpu -> thread ) ;\n cpu -> thread_id = qemu_get_thread_id ( ) ;\n sigemptyset ( & waitset ) ;\n sigaddset ( & waitset , SIG_IPI ) ;\n cpu -> created = true ;\n qemu_cond_signal ( & qemu_cpu_cond ) ;\n cpu_single_env = cpu -> env_ptr ;\n while ( 1 ) {\n cpu_single_env = NULL ;\n qemu_mutex_unlock_iothread ( ) ;\n do {\n int sig ;\n r = sigwait ( & waitset , & sig ) ;\n }\n while ( r == - 1 && ( errno == EAGAIN || errno == EINTR ) ) ;\n if ( r == - 1 ) {\n perror ( \"sigwait\" ) ;\n exit ( 1 ) ;\n }\n qemu_mutex_lock_iothread ( ) ;\n cpu_single_env = cpu -> env_ptr ;\n qemu_wait_io_event_common ( cpu ) ;\n }\n return NULL ;\n # endif }"}
{"idx": 2242, "target": 0, "func": "CURLcode Curl_http_done ( struct connectdata * conn , CURLcode status , bool premature ) {\n struct Curl_easy * data = conn -> data ;\n struct HTTP * http = data -> req . protop ;\n infof ( data , \"Curl_http_done: called premature == %d\\n\" , premature ) ;\n Curl_unencode_cleanup ( conn ) ;\n # ifdef USE_SPNEGO if ( data -> state . proxyneg . state == GSS_AUTHSENT || data -> state . negotiate . state == GSS_AUTHSENT ) {\n if ( ( data -> req . httpcode != 401 ) && ( data -> req . httpcode != 407 ) && ! data -> set . connect_only ) streamclose ( conn , \"Negotiate transfer completed\" ) ;\n Curl_cleanup_negotiate ( data ) ;\n }\n # endif conn -> seek_func = data -> set . seek_func ;\n conn -> seek_client = data -> set . seek_client ;\n if ( ! http ) return CURLE_OK ;\n if ( http -> send_buffer ) {\n Curl_add_buffer_free ( http -> send_buffer ) ;\n http -> send_buffer = NULL ;\n }\n Curl_http2_done ( conn , premature ) ;\n if ( HTTPREQ_POST_FORM == data -> set . httpreq ) {\n data -> req . bytecount = http -> readbytecount + http -> writebytecount ;\n Curl_formclean ( & http -> sendit ) ;\n if ( http -> form . fp ) {\n fclose ( http -> form . fp ) ;\n http -> form . fp = NULL ;\n }\n }\n else if ( HTTPREQ_PUT == data -> set . httpreq ) data -> req . bytecount = http -> readbytecount + http -> writebytecount ;\n if ( status ) return status ;\n if ( ! premature && ! conn -> bits . retry && ! data -> set . connect_only && ( http -> readbytecount + data -> req . headerbytecount - data -> req . deductheadercount ) <= 0 ) {\n failf ( data , \"Empty reply from server\" ) ;\n return CURLE_GOT_NOTHING ;\n }\n return CURLE_OK ;\n }"}
{"idx": 2243, "target": 1, "func": "static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 2244, "target": 0, "func": "int i2d_DSAPrivateKey_bio ( BIO * bp , DSA * dsa ) {\n return ASN1_i2d_bio_of_const ( DSA , i2d_DSAPrivateKey , bp , dsa ) ;\n }"}
{"idx": 2245, "target": 0, "func": "static void kvm_msr_buf_reset ( X86CPU * cpu ) {\n memset ( cpu -> kvm_msr_buf , 0 , MSR_BUF_SIZE ) ;\n }"}
{"idx": 2246, "target": 0, "func": "static int estimate_motion_thread ( AVCodecContext * c , void * arg ) {\n MpegEncContext * s = * ( void * * ) arg ;\n ff_check_alignment ( ) ;\n s -> me . dia_size = s -> avctx -> dia_size ;\n s -> first_slice_line = 1 ;\n for ( s -> mb_y = s -> start_mb_y ;\n s -> mb_y < s -> end_mb_y ;\n s -> mb_y ++ ) {\n s -> mb_x = 0 ;\n ff_init_block_index ( s ) ;\n for ( s -> mb_x = 0 ;\n s -> mb_x < s -> mb_width ;\n s -> mb_x ++ ) {\n s -> block_index [ 0 ] += 2 ;\n s -> block_index [ 1 ] += 2 ;\n s -> block_index [ 2 ] += 2 ;\n s -> block_index [ 3 ] += 2 ;\n if ( s -> pict_type == AV_PICTURE_TYPE_B ) ff_estimate_b_frame_motion ( s , s -> mb_x , s -> mb_y ) ;\n else ff_estimate_p_frame_motion ( s , s -> mb_x , s -> mb_y ) ;\n }\n s -> first_slice_line = 0 ;\n }\n return 0 ;\n }"}
{"idx": 2247, "target": 0, "func": "static guint find_head ( body_parts * * body_parts_array , guint16 * tsn ) {\n guint length = 0 ;\n * tsn = ( * tsn == 0 ) ? ( guint16 ) ( MAX_TSN - 1 ) : ( * tsn ) - 1 ;\n for ( ;\n body_parts_array [ * tsn ] -> middle != NULL ;\n * tsn = ( * tsn == 0 ) ? ( guint16 ) ( MAX_TSN - 1 ) : ( * tsn ) - 1 ) length += body_parts_array [ * tsn ] -> middle -> length ;\n if ( body_parts_array [ * tsn ] -> head != NULL ) return length + body_parts_array [ * tsn ] -> head -> length ;\n return 0 ;\n }"}
{"idx": 2248, "target": 0, "func": "int dissect_h225_TransportQOS ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_TransportQOS , TransportQOS_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 2249, "target": 1, "func": "int dissect_h225_TunnelledProtocol ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 748 \"./asn1/h225/h225.cnf\" tpOID = \"\" ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_TunnelledProtocol , TunnelledProtocol_sequence ) ;\n # line 750 \"./asn1/h225/h225.cnf\" tp_handle = dissector_get_string_handle ( tp_dissector_table , tpOID ) ;\n return offset ;\n }"}
{"idx": 2250, "target": 0, "func": "void curses_show_connections ( void ) {\n DEBUG_MSG ( \"curses_show_connections\" ) ;\n if ( wdg_connections ) {\n wdg_set_focus ( wdg_connections ) ;\n return ;\n }\n wdg_create_object ( & wdg_connections , WDG_DYNLIST , WDG_OBJ_WANT_FOCUS ) ;\n wdg_set_title ( wdg_connections , \"Live connections:\" , WDG_ALIGN_LEFT ) ;\n wdg_set_size ( wdg_connections , 1 , 2 , - 1 , SYSMSG_WIN_SIZE - 1 ) ;\n wdg_set_color ( wdg_connections , WDG_COLOR_SCREEN , EC_COLOR ) ;\n wdg_set_color ( wdg_connections , WDG_COLOR_WINDOW , EC_COLOR ) ;\n wdg_set_color ( wdg_connections , WDG_COLOR_BORDER , EC_COLOR_BORDER ) ;\n wdg_set_color ( wdg_connections , WDG_COLOR_FOCUS , EC_COLOR_FOCUS ) ;\n wdg_set_color ( wdg_connections , WDG_COLOR_TITLE , EC_COLOR_TITLE ) ;\n wdg_draw_object ( wdg_connections ) ;\n wdg_set_focus ( wdg_connections ) ;\n wdg_dynlist_print_callback ( wdg_connections , conntrack_print ) ;\n wdg_dynlist_select_callback ( wdg_connections , curses_connection_data ) ;\n wdg_add_idle_callback ( refresh_connections ) ;\n wdg_add_destroy_key ( wdg_connections , CTRL ( 'Q' ) , curses_kill_connections ) ;\n wdg_dynlist_add_callback ( wdg_connections , 'd' , curses_connection_detail ) ;\n wdg_dynlist_add_callback ( wdg_connections , 'k' , curses_connection_kill ) ;\n wdg_dynlist_add_callback ( wdg_connections , 'x' , curses_connection_purge ) ;\n wdg_dynlist_add_callback ( wdg_connections , ' ' , curses_connection_help ) ;\n }"}
{"idx": 2251, "target": 0, "func": "afs_int32 WhoIsThis ( struct rx_call * acall , struct ubik_trans * at , afs_int32 * aid ) {\n int foreign = 0 ;\n struct rx_connection * tconn ;\n afs_int32 code ;\n char tcell [ MAXKTCREALMLEN ] ;\n char name [ MAXKTCNAMELEN ] ;\n char inst [ MAXKTCNAMELEN ] ;\n int ilen ;\n char vname [ 256 ] ;\n * aid = ANONYMOUSID ;\n tconn = rx_ConnectionOf ( acall ) ;\n code = rx_SecurityClassOf ( tconn ) ;\n if ( code == 0 ) return 0 ;\n else if ( code == 1 ) {\n goto done ;\n }\n else if ( code == 2 ) {\n if ( ( code = rxkad_GetServerInfo ( acall -> conn , NULL , 0 , name , inst , tcell , NULL ) ) ) goto done ;\n # if 0 if ( exp < FT_ApproxTime ( ) ) goto done ;\n # endif if ( tcell [ 0 ] ) foreign = afs_is_foreign_ticket_name ( name , inst , tcell , pr_realmName ) ;\n strncpy ( vname , name , sizeof ( vname ) ) ;\n if ( ( ilen = strlen ( inst ) ) ) {\n if ( strlen ( vname ) + 1 + ilen >= sizeof ( vname ) ) goto done ;\n strcat ( vname , \".\" ) ;\n strcat ( vname , inst ) ;\n }\n if ( foreign ) {\n if ( strlen ( vname ) + strlen ( tcell ) + 1 >= sizeof ( vname ) ) goto done ;\n strcat ( vname , \"@\" ) ;\n strcat ( vname , tcell ) ;\n }\n if ( strcmp ( AUTH_SUPERUSER , vname ) == 0 ) * aid = SYSADMINID ;\n else {\n lcstring ( vname , vname , sizeof ( vname ) ) ;\n code = NameToID ( at , vname , aid ) ;\n }\n }\n done : if ( code && ! pr_noAuth ) return - 1 ;\n return 0 ;\n }"}
{"idx": 2252, "target": 0, "func": "TEST_F ( SoundContentSettingObserverTest , MutedAudioBlockedBySiteException ) {\n ChangeSoundContentSettingTo ( CONTENT_SETTING_BLOCK ) ;\n SimulateAudioStarting ( ) ;\n EXPECT_TRUE ( RecordedSiteMuted ( ) ) ;\n ExpectRecordedForReason ( SoundContentSettingObserver : : MuteReason : : kSiteException ) ;\n }"}
{"idx": 2253, "target": 1, "func": "static GstFlowReturn gst_asf_demux_process_ext_content_desc ( GstASFDemux * demux , guint8 * data , guint64 size ) {\n GstTagList * taglist ;\n guint16 blockcount , i ;\n gboolean content3D = FALSE ;\n struct {\n const gchar * interleave_name ;\n GstASF3DMode interleaving_type ;\n }\n stereoscopic_layout_map [ ] = {\n {\n \"SideBySideRF\" , GST_ASF_3D_SIDE_BY_SIDE_HALF_RL }\n , {\n \"SideBySideLF\" , GST_ASF_3D_SIDE_BY_SIDE_HALF_LR }\n , {\n \"OverUnderRT\" , GST_ASF_3D_TOP_AND_BOTTOM_HALF_RL }\n , {\n \"OverUnderLT\" , GST_ASF_3D_TOP_AND_BOTTOM_HALF_LR }\n , {\n \"DualStream\" , GST_ASF_3D_DUAL_STREAM }\n }\n ;\n GST_INFO_OBJECT ( demux , \"object is an extended content description\" ) ;\n taglist = gst_tag_list_new_empty ( ) ;\n if ( size < 2 ) goto not_enough_data ;\n blockcount = gst_asf_demux_get_uint16 ( & data , & size ) ;\n for ( i = 1 ;\n i <= blockcount ;\n ++ i ) {\n const gchar * gst_tag_name ;\n guint16 datatype ;\n guint16 value_len ;\n guint16 name_len ;\n GValue tag_value = {\n 0 , }\n ;\n gsize in , out ;\n gchar * name ;\n gchar * name_utf8 = NULL ;\n gchar * value ;\n if ( ! gst_asf_demux_get_string ( & name , & name_len , & data , & size ) ) goto not_enough_data ;\n if ( size < 2 ) {\n g_free ( name ) ;\n goto not_enough_data ;\n }\n datatype = gst_asf_demux_get_uint16 ( & data , & size ) ;\n if ( ! gst_asf_demux_get_string ( & value , & value_len , & data , & size ) ) {\n g_free ( name ) ;\n goto not_enough_data ;\n }\n name_utf8 = g_convert ( name , name_len , \"UTF-8\" , \"UTF-16LE\" , & in , & out , NULL ) ;\n if ( name_utf8 != NULL ) {\n GST_DEBUG ( \"Found tag/metadata %s\" , name_utf8 ) ;\n gst_tag_name = gst_asf_demux_get_gst_tag_from_tag_name ( name_utf8 ) ;\n GST_DEBUG ( \"gst_tag_name %s\" , GST_STR_NULL ( gst_tag_name ) ) ;\n switch ( datatype ) {\n case ASF_DEMUX_DATA_TYPE_UTF16LE_STRING : {\n gchar * value_utf8 ;\n value_utf8 = g_convert ( value , value_len , \"UTF-8\" , \"UTF-16LE\" , & in , & out , NULL ) ;\n if ( value_utf8 != NULL && * value_utf8 != '\\0' ) {\n GST_DEBUG ( \"string value %s\" , value_utf8 ) ;\n value_utf8 [ out ] = '\\0' ;\n if ( gst_tag_name != NULL ) {\n if ( strcmp ( gst_tag_name , GST_TAG_DATE_TIME ) == 0 ) {\n guint year = atoi ( value_utf8 ) ;\n if ( year > 0 ) {\n g_value_init ( & tag_value , GST_TYPE_DATE_TIME ) ;\n g_value_take_boxed ( & tag_value , gst_date_time_new_y ( year ) ) ;\n }\n }\n else if ( strcmp ( gst_tag_name , GST_TAG_GENRE ) == 0 ) {\n guint id3v1_genre_id ;\n const gchar * genre_str ;\n if ( sscanf ( value_utf8 , \"(%u)\" , & id3v1_genre_id ) == 1 && ( ( genre_str = gst_tag_id3_genre_get ( id3v1_genre_id ) ) ) ) {\n GST_DEBUG ( \"Genre: %s -> %s\" , value_utf8 , genre_str ) ;\n g_free ( value_utf8 ) ;\n value_utf8 = g_strdup ( genre_str ) ;\n }\n }\n else {\n GType tag_type ;\n tag_type = gst_tag_get_type ( gst_tag_name ) ;\n g_value_init ( & tag_value , tag_type ) ;\n if ( ! gst_value_deserialize ( & tag_value , value_utf8 ) ) {\n GValue from_val = {\n 0 , }\n ;\n g_value_init ( & from_val , G_TYPE_STRING ) ;\n g_value_set_string ( & from_val , value_utf8 ) ;\n if ( ! g_value_transform ( & from_val , & tag_value ) ) {\n GST_WARNING_OBJECT ( demux , \"Could not transform string tag to \" \"%s tag type %s\" , gst_tag_name , g_type_name ( tag_type ) ) ;\n g_value_unset ( & tag_value ) ;\n }\n g_value_unset ( & from_val ) ;\n }\n }\n }\n else {\n GST_DEBUG ( \"Setting metadata\" ) ;\n g_value_init ( & tag_value , G_TYPE_STRING ) ;\n g_value_set_string ( & tag_value , value_utf8 ) ;\n if ( content3D ) {\n guint i ;\n if ( strncmp ( \"StereoscopicLayout\" , name_utf8 , strlen ( name_utf8 ) ) == 0 ) {\n for ( i = 0 ;\n i < G_N_ELEMENTS ( stereoscopic_layout_map ) ;\n i ++ ) {\n if ( g_str_equal ( stereoscopic_layout_map [ i ] . interleave_name , value_utf8 ) ) {\n demux -> asf_3D_mode = stereoscopic_layout_map [ i ] . interleaving_type ;\n GST_INFO ( \"find interleave type %u\" , demux -> asf_3D_mode ) ;\n }\n }\n }\n GST_INFO_OBJECT ( demux , \"3d type is %u\" , demux -> asf_3D_mode ) ;\n }\n else {\n demux -> asf_3D_mode = GST_ASF_3D_NONE ;\n GST_INFO_OBJECT ( demux , \"None 3d type\" ) ;\n }\n }\n }\n else if ( value_utf8 == NULL ) {\n GST_WARNING ( \"Failed to convert string value to UTF8, skipping\" ) ;\n }\n else {\n GST_DEBUG ( \"Skipping empty string value for %s\" , GST_STR_NULL ( gst_tag_name ) ) ;\n }\n g_free ( value_utf8 ) ;\n break ;\n }\n case ASF_DEMUX_DATA_TYPE_BYTE_ARRAY : {\n if ( gst_tag_name ) {\n if ( ! g_str_equal ( gst_tag_name , GST_TAG_IMAGE ) ) {\n GST_FIXME ( \"Unhandled byte array tag %s\" , GST_STR_NULL ( gst_tag_name ) ) ;\n break ;\n }\n else {\n asf_demux_parse_picture_tag ( taglist , ( guint8 * ) value , value_len ) ;\n }\n }\n break ;\n }\n case ASF_DEMUX_DATA_TYPE_DWORD : {\n guint uint_val = GST_READ_UINT32_LE ( value ) ;\n g_value_init ( & tag_value , G_TYPE_UINT ) ;\n if ( ! strcmp ( name_utf8 , \"WM/Track\" ) ) ++ uint_val ;\n g_value_set_uint ( & tag_value , uint_val ) ;\n break ;\n }\n case ASF_DEMUX_DATA_TYPE_BOOL : {\n gboolean bool_val = GST_READ_UINT32_LE ( value ) ;\n if ( strncmp ( \"Stereoscopic\" , name_utf8 , strlen ( name_utf8 ) ) == 0 ) {\n if ( bool_val ) {\n GST_INFO_OBJECT ( demux , \"This is 3D contents\" ) ;\n content3D = TRUE ;\n }\n else {\n GST_INFO_OBJECT ( demux , \"This is not 3D contenst\" ) ;\n content3D = FALSE ;\n }\n }\n break ;\n }\n default : {\n GST_DEBUG ( \"Skipping tag %s of type %d\" , gst_tag_name , datatype ) ;\n break ;\n }\n }\n if ( G_IS_VALUE ( & tag_value ) ) {\n if ( gst_tag_name ) {\n GstTagMergeMode merge_mode = GST_TAG_MERGE_APPEND ;\n if ( strcmp ( name_utf8 , \"WM/TrackNumber\" ) == 0 ) merge_mode = GST_TAG_MERGE_REPLACE ;\n gst_tag_list_add_values ( taglist , merge_mode , gst_tag_name , & tag_value , NULL ) ;\n }\n else {\n GST_DEBUG ( \"Setting global metadata %s\" , name_utf8 ) ;\n gst_structure_set_value ( demux -> global_metadata , name_utf8 , & tag_value ) ;\n }\n g_value_unset ( & tag_value ) ;\n }\n }\n g_free ( name ) ;\n g_free ( value ) ;\n g_free ( name_utf8 ) ;\n }\n gst_asf_demux_add_global_tags ( demux , taglist ) ;\n return GST_FLOW_OK ;\n not_enough_data : {\n GST_WARNING ( \"Unexpected end of data parsing ext content desc object\" ) ;\n gst_tag_list_unref ( taglist ) ;\n return GST_FLOW_OK ;\n }\n }"}
{"idx": 2254, "target": 0, "func": "static void cirrus_linear_write ( void * opaque , hwaddr addr , uint64_t val , unsigned size ) {\n CirrusVGAState * s = opaque ;\n unsigned mode ;\n addr &= s -> cirrus_addr_mask ;\n if ( ( ( s -> vga . sr [ 0x17 ] & 0x44 ) == 0x44 ) && ( ( addr & s -> linear_mmio_mask ) == s -> linear_mmio_mask ) ) {\n cirrus_mmio_blt_write ( s , addr & 0xff , val ) ;\n }\n else if ( s -> cirrus_srcptr != s -> cirrus_srcptr_end ) {\n * s -> cirrus_srcptr ++ = ( uint8_t ) val ;\n if ( s -> cirrus_srcptr >= s -> cirrus_srcptr_end ) {\n cirrus_bitblt_cputovideo_next ( s ) ;\n }\n }\n else {\n if ( ( s -> vga . gr [ 0x0B ] & 0x14 ) == 0x14 ) {\n addr <<= 4 ;\n }\n else if ( s -> vga . gr [ 0x0B ] & 0x02 ) {\n addr <<= 3 ;\n }\n addr &= s -> cirrus_addr_mask ;\n mode = s -> vga . gr [ 0x05 ] & 0x7 ;\n if ( mode < 4 || mode > 5 || ( ( s -> vga . gr [ 0x0B ] & 0x4 ) == 0 ) ) {\n * ( s -> vga . vram_ptr + addr ) = ( uint8_t ) val ;\n memory_region_set_dirty ( & s -> vga . vram , addr , 1 ) ;\n }\n else {\n if ( ( s -> vga . gr [ 0x0B ] & 0x14 ) != 0x14 ) {\n cirrus_mem_writeb_mode4and5_8bpp ( s , mode , addr , val ) ;\n }\n else {\n cirrus_mem_writeb_mode4and5_16bpp ( s , mode , addr , val ) ;\n }\n }\n }\n }"}
{"idx": 2255, "target": 0, "func": "static int decode_channel_residues ( WmallDecodeCtx * s , int ch , int tile_size ) {\n int i = 0 ;\n unsigned int ave_mean ;\n s -> transient [ ch ] = get_bits1 ( & s -> gb ) ;\n if ( s -> transient [ ch ] ) {\n s -> transient_pos [ ch ] = get_bits ( & s -> gb , av_log2 ( tile_size ) ) ;\n if ( s -> transient_pos [ ch ] ) s -> transient [ ch ] = 0 ;\n s -> channel [ ch ] . transient_counter = FFMAX ( s -> channel [ ch ] . transient_counter , s -> samples_per_frame / 2 ) ;\n }\n else if ( s -> channel [ ch ] . transient_counter ) s -> transient [ ch ] = 1 ;\n if ( s -> seekable_tile ) {\n ave_mean = get_bits ( & s -> gb , s -> bits_per_sample ) ;\n s -> ave_sum [ ch ] = ave_mean << ( s -> movave_scaling + 1 ) ;\n }\n if ( s -> seekable_tile ) {\n if ( s -> do_inter_ch_decorr ) s -> channel_residues [ ch ] [ 0 ] = get_sbits ( & s -> gb , s -> bits_per_sample + 1 ) ;\n else s -> channel_residues [ ch ] [ 0 ] = get_sbits ( & s -> gb , s -> bits_per_sample ) ;\n i ++ ;\n }\n for ( ;\n i < tile_size ;\n i ++ ) {\n int quo = 0 , rem , rem_bits , residue ;\n while ( get_bits1 ( & s -> gb ) ) {\n quo ++ ;\n if ( get_bits_left ( & s -> gb ) <= 0 ) return - 1 ;\n }\n if ( quo >= 32 ) quo += get_bits_long ( & s -> gb , get_bits ( & s -> gb , 5 ) + 1 ) ;\n ave_mean = ( s -> ave_sum [ ch ] + ( 1 << s -> movave_scaling ) ) >> ( s -> movave_scaling + 1 ) ;\n if ( ave_mean <= 1 ) residue = quo ;\n else {\n rem_bits = av_ceil_log2 ( ave_mean ) ;\n rem = rem_bits ? get_bits_long ( & s -> gb , rem_bits ) : 0 ;\n residue = ( quo << rem_bits ) + rem ;\n }\n s -> ave_sum [ ch ] = residue + s -> ave_sum [ ch ] - ( s -> ave_sum [ ch ] >> s -> movave_scaling ) ;\n if ( residue & 1 ) residue = - ( residue >> 1 ) - 1 ;\n else residue = residue >> 1 ;\n s -> channel_residues [ ch ] [ i ] = residue ;\n }\n return 0 ;\n }"}
{"idx": 2256, "target": 1, "func": "static void doapr_outch ( char * * sbuffer , char * * buffer , size_t * currlen , size_t * maxlen , int c ) {\n assert ( * sbuffer != NULL || buffer != NULL ) ;\n assert ( * currlen <= * maxlen ) ;\n if ( buffer && * currlen == * maxlen ) {\n * maxlen += 1024 ;\n if ( * buffer == NULL ) {\n * buffer = OPENSSL_malloc ( * maxlen ) ;\n if ( ! * buffer ) {\n return ;\n }\n if ( * currlen > 0 ) {\n assert ( * sbuffer != NULL ) ;\n memcpy ( * buffer , * sbuffer , * currlen ) ;\n }\n * sbuffer = NULL ;\n }\n else {\n * buffer = OPENSSL_realloc ( * buffer , * maxlen ) ;\n if ( ! * buffer ) {\n return ;\n }\n }\n }\n if ( * currlen < * maxlen ) {\n if ( * sbuffer ) ( * sbuffer ) [ ( * currlen ) ++ ] = ( char ) c ;\n else ( * buffer ) [ ( * currlen ) ++ ] = ( char ) c ;\n }\n return ;\n }"}
{"idx": 2257, "target": 0, "func": "TSReturnCode TSMimeHdrFieldDestroy ( TSMBuffer bufp , TSMLoc mh_mloc , TSMLoc field_mloc ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( mh_mloc ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( mh_mloc ) == TS_SUCCESS ) ) ;\n sdk_assert ( sdk_sanity_check_field_handle ( field_mloc , mh_mloc ) == TS_SUCCESS ) ;\n if ( ! isWriteable ( bufp ) ) {\n return TS_ERROR ;\n }\n MIMEFieldSDKHandle * field_handle = ( MIMEFieldSDKHandle * ) field_mloc ;\n if ( field_handle -> mh == nullptr ) {\n ink_release_assert ( ! \"Failed MH\" ) ;\n }\n else {\n MIMEHdrImpl * mh = _hdr_mloc_to_mime_hdr_impl ( mh_mloc ) ;\n HdrHeap * heap = ( HdrHeap * ) ( ( ( HdrHeapSDKHandle * ) bufp ) -> m_heap ) ;\n ink_assert ( mh == field_handle -> mh ) ;\n if ( sdk_sanity_check_field_handle ( field_mloc , mh_mloc ) != TS_SUCCESS ) {\n return TS_ERROR ;\n }\n mime_hdr_field_delete ( heap , mh , field_handle -> field_ptr , false ) ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 2258, "target": 0, "func": "int handle__publish ( struct mosquitto_db * db , struct mosquitto * context ) {\n char * topic ;\n mosquitto__payload_uhpa payload ;\n uint32_t payloadlen ;\n uint8_t dup , qos , retain ;\n uint16_t mid = 0 ;\n int rc = 0 ;\n uint8_t header = context -> in_packet . command ;\n int res = 0 ;\n struct mosquitto_msg_store * stored = NULL ;\n int len ;\n int slen ;\n char * topic_mount ;\n # ifdef WITH_BRIDGE char * topic_temp ;\n int i ;\n struct mosquitto__bridge_topic * cur_topic ;\n bool match ;\n # endif payload . ptr = NULL ;\n dup = ( header & 0x08 ) >> 3 ;\n qos = ( header & 0x06 ) >> 1 ;\n if ( qos == 3 ) {\n log__printf ( NULL , MOSQ_LOG_INFO , \"Invalid QoS in PUBLISH from %s, disconnecting.\" , context -> id ) ;\n return 1 ;\n }\n retain = ( header & 0x01 ) ;\n if ( packet__read_string ( & context -> in_packet , & topic , & slen ) ) return 1 ;\n if ( ! slen ) {\n mosquitto__free ( topic ) ;\n return 1 ;\n }\n if ( mosquitto_validate_utf8 ( topic , slen ) != MOSQ_ERR_SUCCESS ) {\n mosquitto__free ( topic ) ;\n return 1 ;\n }\n # ifdef WITH_BRIDGE if ( context -> bridge && context -> bridge -> topics && context -> bridge -> topic_remapping ) {\n for ( i = 0 ;\n i < context -> bridge -> topic_count ;\n i ++ ) {\n cur_topic = & context -> bridge -> topics [ i ] ;\n if ( ( cur_topic -> direction == bd_both || cur_topic -> direction == bd_in ) && ( cur_topic -> remote_prefix || cur_topic -> local_prefix ) ) {\n rc = mosquitto_topic_matches_sub ( cur_topic -> remote_topic , topic , & match ) ;\n if ( rc ) {\n mosquitto__free ( topic ) ;\n return rc ;\n }\n if ( match ) {\n if ( cur_topic -> remote_prefix ) {\n if ( ! strncmp ( cur_topic -> remote_prefix , topic , strlen ( cur_topic -> remote_prefix ) ) ) {\n topic_temp = mosquitto__strdup ( topic + strlen ( cur_topic -> remote_prefix ) ) ;\n if ( ! topic_temp ) {\n mosquitto__free ( topic ) ;\n return MOSQ_ERR_NOMEM ;\n }\n mosquitto__free ( topic ) ;\n topic = topic_temp ;\n }\n }\n if ( cur_topic -> local_prefix ) {\n len = strlen ( topic ) + strlen ( cur_topic -> local_prefix ) + 1 ;\n topic_temp = mosquitto__malloc ( len + 1 ) ;\n if ( ! topic_temp ) {\n mosquitto__free ( topic ) ;\n return MOSQ_ERR_NOMEM ;\n }\n snprintf ( topic_temp , len , \"%s%s\" , cur_topic -> local_prefix , topic ) ;\n topic_temp [ len ] = '\\0' ;\n mosquitto__free ( topic ) ;\n topic = topic_temp ;\n }\n break ;\n }\n }\n }\n }\n # endif if ( mosquitto_pub_topic_check ( topic ) != MOSQ_ERR_SUCCESS ) {\n mosquitto__free ( topic ) ;\n return 1 ;\n }\n if ( qos > 0 ) {\n if ( packet__read_uint16 ( & context -> in_packet , & mid ) ) {\n mosquitto__free ( topic ) ;\n return 1 ;\n }\n }\n payloadlen = context -> in_packet . remaining_length - context -> in_packet . pos ;\n G_PUB_BYTES_RECEIVED_INC ( payloadlen ) ;\n if ( context -> listener && context -> listener -> mount_point ) {\n len = strlen ( context -> listener -> mount_point ) + strlen ( topic ) + 1 ;\n topic_mount = mosquitto__malloc ( len + 1 ) ;\n if ( ! topic_mount ) {\n mosquitto__free ( topic ) ;\n return MOSQ_ERR_NOMEM ;\n }\n snprintf ( topic_mount , len , \"%s%s\" , context -> listener -> mount_point , topic ) ;\n topic_mount [ len ] = '\\0' ;\n mosquitto__free ( topic ) ;\n topic = topic_mount ;\n }\n if ( payloadlen ) {\n if ( db -> config -> message_size_limit && payloadlen > db -> config -> message_size_limit ) {\n log__printf ( NULL , MOSQ_LOG_DEBUG , \"Dropped too large PUBLISH from %s (d%d, q%d, r%d, m%d, '%s', ... (%ld bytes))\" , context -> id , dup , qos , retain , mid , topic , ( long ) payloadlen ) ;\n goto process_bad_message ;\n }\n if ( UHPA_ALLOC ( payload , payloadlen + 1 ) == 0 ) {\n mosquitto__free ( topic ) ;\n return MOSQ_ERR_NOMEM ;\n }\n if ( packet__read_bytes ( & context -> in_packet , UHPA_ACCESS ( payload , payloadlen ) , payloadlen ) ) {\n mosquitto__free ( topic ) ;\n UHPA_FREE ( payload , payloadlen ) ;\n return 1 ;\n }\n }\n rc = mosquitto_acl_check ( db , context , topic , MOSQ_ACL_WRITE ) ;\n if ( rc == MOSQ_ERR_ACL_DENIED ) {\n log__printf ( NULL , MOSQ_LOG_DEBUG , \"Denied PUBLISH from %s (d%d, q%d, r%d, m%d, '%s', ... (%ld bytes))\" , context -> id , dup , qos , retain , mid , topic , ( long ) payloadlen ) ;\n goto process_bad_message ;\n }\n else if ( rc != MOSQ_ERR_SUCCESS ) {\n mosquitto__free ( topic ) ;\n UHPA_FREE ( payload , payloadlen ) ;\n return rc ;\n }\n log__printf ( NULL , MOSQ_LOG_DEBUG , \"Received PUBLISH from %s (d%d, q%d, r%d, m%d, '%s', ... (%ld bytes))\" , context -> id , dup , qos , retain , mid , topic , ( long ) payloadlen ) ;\n if ( qos > 0 ) {\n db__message_store_find ( context , mid , & stored ) ;\n }\n if ( ! stored ) {\n dup = 0 ;\n if ( db__message_store ( db , context -> id , mid , topic , qos , payloadlen , & payload , retain , & stored , 0 ) ) {\n return 1 ;\n }\n }\n else {\n mosquitto__free ( topic ) ;\n topic = stored -> topic ;\n dup = 1 ;\n }\n switch ( qos ) {\n case 0 : if ( sub__messages_queue ( db , context -> id , topic , qos , retain , & stored ) ) rc = 1 ;\n break ;\n case 1 : if ( sub__messages_queue ( db , context -> id , topic , qos , retain , & stored ) ) rc = 1 ;\n if ( send__puback ( context , mid ) ) rc = 1 ;\n break ;\n case 2 : if ( ! dup ) {\n res = db__message_insert ( db , context , mid , mosq_md_in , qos , retain , stored ) ;\n }\n else {\n res = 0 ;\n }\n if ( ! res ) {\n if ( send__pubrec ( context , mid ) ) rc = 1 ;\n }\n else if ( res == 1 ) {\n rc = 1 ;\n }\n break ;\n }\n return rc ;\n process_bad_message : mosquitto__free ( topic ) ;\n UHPA_FREE ( payload , payloadlen ) ;\n switch ( qos ) {\n case 0 : return MOSQ_ERR_SUCCESS ;\n case 1 : return send__puback ( context , mid ) ;\n case 2 : db__message_store_find ( context , mid , & stored ) ;\n if ( ! stored ) {\n if ( db__message_store ( db , context -> id , mid , NULL , qos , 0 , NULL , false , & stored , 0 ) ) {\n return 1 ;\n }\n res = db__message_insert ( db , context , mid , mosq_md_in , qos , false , stored ) ;\n }\n else {\n res = 0 ;\n }\n if ( ! res ) {\n res = send__pubrec ( context , mid ) ;\n }\n return res ;\n }\n return 1 ;\n }"}
{"idx": 2259, "target": 0, "func": "static inline MagickRealType GetPixelInfoLuma ( const PixelInfo * restrict pixel ) {\n MagickRealType blue , green , red ;\n if ( pixel -> colorspace == GRAYColorspace ) return ( pixel -> red ) ;\n if ( pixel -> colorspace == sRGBColorspace ) return ( 0.212656f * pixel -> red + 0.715158f * pixel -> green + 0.072186f * pixel -> blue ) ;\n red = EncodePixelGamma ( pixel -> red ) ;\n green = EncodePixelGamma ( pixel -> green ) ;\n blue = EncodePixelGamma ( pixel -> blue ) ;\n return ( 0.212656f * red + 0.715158f * green + 0.072186f * blue ) ;\n }"}
{"idx": 2260, "target": 0, "func": "TSReturnCode TSHttpTxnAborted ( TSHttpTxn txnp ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n switch ( sm -> t_state . squid_codes . log_code ) {\n case SQUID_LOG_ERR_CLIENT_ABORT : case SQUID_LOG_TCP_SWAPFAIL : return TS_SUCCESS ;\n default : break ;\n }\n if ( sm -> t_state . current . server && sm -> t_state . current . server -> abort == HttpTransact : : ABORTED ) {\n return TS_SUCCESS ;\n }\n return TS_ERROR ;\n }"}
{"idx": 2261, "target": 0, "func": "static hb_tag_t hb_ot_old_tag_from_script ( hb_script_t script ) {\n switch ( ( hb_tag_t ) script ) {\n case HB_SCRIPT_INVALID : return HB_OT_TAG_DEFAULT_SCRIPT ;\n case HB_SCRIPT_HIRAGANA : return HB_TAG ( 'k' , 'a' , 'n' , 'a' ) ;\n case HB_SCRIPT_LAO : return HB_TAG ( 'l' , 'a' , 'o' , ' ' ) ;\n case HB_SCRIPT_YI : return HB_TAG ( 'y' , 'i' , ' ' , ' ' ) ;\n case HB_SCRIPT_NKO : return HB_TAG ( 'n' , 'k' , 'o' , ' ' ) ;\n case HB_SCRIPT_VAI : return HB_TAG ( 'v' , 'a' , 'i' , ' ' ) ;\n }\n return ( ( hb_tag_t ) script ) | 0x20000000u ;\n }"}
{"idx": 2262, "target": 0, "func": "int dissect_h245_T38FaxProfile ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T38FaxProfile , T38FaxProfile_sequence ) ;\n return offset ;\n }"}
{"idx": 2263, "target": 0, "func": "static int rawv6_sendmsg ( struct kiocb * iocb , struct sock * sk , struct msghdr * msg , size_t len ) {\n struct ipv6_txoptions opt_space ;\n struct sockaddr_in6 * sin6 = ( struct sockaddr_in6 * ) msg -> msg_name ;\n struct in6_addr * daddr , * final_p = NULL , final ;\n struct inet_sock * inet = inet_sk ( sk ) ;\n struct ipv6_pinfo * np = inet6_sk ( sk ) ;\n struct raw6_sock * rp = raw6_sk ( sk ) ;\n struct ipv6_txoptions * opt = NULL ;\n struct ip6_flowlabel * flowlabel = NULL ;\n struct dst_entry * dst = NULL ;\n struct flowi fl ;\n int addr_len = msg -> msg_namelen ;\n int hlimit = - 1 ;\n int tclass = - 1 ;\n int dontfrag = - 1 ;\n u16 proto ;\n int err ;\n if ( len > INT_MAX ) return - EMSGSIZE ;\n if ( msg -> msg_flags & MSG_OOB ) return - EOPNOTSUPP ;\n memset ( & fl , 0 , sizeof ( fl ) ) ;\n fl . mark = sk -> sk_mark ;\n if ( sin6 ) {\n if ( addr_len < SIN6_LEN_RFC2133 ) return - EINVAL ;\n if ( sin6 -> sin6_family && sin6 -> sin6_family != AF_INET6 ) return ( - EAFNOSUPPORT ) ;\n proto = ntohs ( sin6 -> sin6_port ) ;\n if ( ! proto ) proto = inet -> inet_num ;\n else if ( proto != inet -> inet_num ) return ( - EINVAL ) ;\n if ( proto > 255 ) return ( - EINVAL ) ;\n daddr = & sin6 -> sin6_addr ;\n if ( np -> sndflow ) {\n fl . fl6_flowlabel = sin6 -> sin6_flowinfo & IPV6_FLOWINFO_MASK ;\n if ( fl . fl6_flowlabel & IPV6_FLOWLABEL_MASK ) {\n flowlabel = fl6_sock_lookup ( sk , fl . fl6_flowlabel ) ;\n if ( flowlabel == NULL ) return - EINVAL ;\n daddr = & flowlabel -> dst ;\n }\n }\n if ( sk -> sk_state == TCP_ESTABLISHED && ipv6_addr_equal ( daddr , & np -> daddr ) ) daddr = & np -> daddr ;\n if ( addr_len >= sizeof ( struct sockaddr_in6 ) && sin6 -> sin6_scope_id && ipv6_addr_type ( daddr ) & IPV6_ADDR_LINKLOCAL ) fl . oif = sin6 -> sin6_scope_id ;\n }\n else {\n if ( sk -> sk_state != TCP_ESTABLISHED ) return - EDESTADDRREQ ;\n proto = inet -> inet_num ;\n daddr = & np -> daddr ;\n fl . fl6_flowlabel = np -> flow_label ;\n }\n if ( fl . oif == 0 ) fl . oif = sk -> sk_bound_dev_if ;\n if ( msg -> msg_controllen ) {\n opt = & opt_space ;\n memset ( opt , 0 , sizeof ( struct ipv6_txoptions ) ) ;\n opt -> tot_len = sizeof ( struct ipv6_txoptions ) ;\n err = datagram_send_ctl ( sock_net ( sk ) , msg , & fl , opt , & hlimit , & tclass , & dontfrag ) ;\n if ( err < 0 ) {\n fl6_sock_release ( flowlabel ) ;\n return err ;\n }\n if ( ( fl . fl6_flowlabel & IPV6_FLOWLABEL_MASK ) && ! flowlabel ) {\n flowlabel = fl6_sock_lookup ( sk , fl . fl6_flowlabel ) ;\n if ( flowlabel == NULL ) return - EINVAL ;\n }\n if ( ! ( opt -> opt_nflen | opt -> opt_flen ) ) opt = NULL ;\n }\n if ( opt == NULL ) opt = np -> opt ;\n if ( flowlabel ) opt = fl6_merge_options ( & opt_space , flowlabel , opt ) ;\n opt = ipv6_fixup_options ( & opt_space , opt ) ;\n fl . proto = proto ;\n err = rawv6_probe_proto_opt ( & fl , msg ) ;\n if ( err ) goto out ;\n if ( ! ipv6_addr_any ( daddr ) ) ipv6_addr_copy ( & fl . fl6_dst , daddr ) ;\n else fl . fl6_dst . s6_addr [ 15 ] = 0x1 ;\n if ( ipv6_addr_any ( & fl . fl6_src ) && ! ipv6_addr_any ( & np -> saddr ) ) ipv6_addr_copy ( & fl . fl6_src , & np -> saddr ) ;\n if ( opt && opt -> srcrt ) {\n struct rt0_hdr * rt0 = ( struct rt0_hdr * ) opt -> srcrt ;\n ipv6_addr_copy ( & final , & fl . fl6_dst ) ;\n ipv6_addr_copy ( & fl . fl6_dst , rt0 -> addr ) ;\n final_p = & final ;\n }\n if ( ! fl . oif && ipv6_addr_is_multicast ( & fl . fl6_dst ) ) fl . oif = np -> mcast_oif ;\n security_sk_classify_flow ( sk , & fl ) ;\n err = ip6_dst_lookup ( sk , & dst , & fl ) ;\n if ( err ) goto out ;\n if ( final_p ) ipv6_addr_copy ( & fl . fl6_dst , final_p ) ;\n err = __xfrm_lookup ( sock_net ( sk ) , & dst , & fl , sk , XFRM_LOOKUP_WAIT ) ;\n if ( err < 0 ) {\n if ( err == - EREMOTE ) err = ip6_dst_blackhole ( sk , & dst , & fl ) ;\n if ( err < 0 ) goto out ;\n }\n if ( hlimit < 0 ) {\n if ( ipv6_addr_is_multicast ( & fl . fl6_dst ) ) hlimit = np -> mcast_hops ;\n else hlimit = np -> hop_limit ;\n if ( hlimit < 0 ) hlimit = ip6_dst_hoplimit ( dst ) ;\n }\n if ( tclass < 0 ) tclass = np -> tclass ;\n if ( dontfrag < 0 ) dontfrag = np -> dontfrag ;\n if ( msg -> msg_flags & MSG_CONFIRM ) goto do_confirm ;\n back_from_confirm : if ( inet -> hdrincl ) {\n err = rawv6_send_hdrinc ( sk , msg -> msg_iov , len , & fl , ( struct rt6_info * ) dst , msg -> msg_flags ) ;\n }\n else {\n lock_sock ( sk ) ;\n err = ip6_append_data ( sk , ip_generic_getfrag , msg -> msg_iov , len , 0 , hlimit , tclass , opt , & fl , ( struct rt6_info * ) dst , msg -> msg_flags , dontfrag ) ;\n if ( err ) ip6_flush_pending_frames ( sk ) ;\n else if ( ! ( msg -> msg_flags & MSG_MORE ) ) err = rawv6_push_pending_frames ( sk , & fl , rp ) ;\n release_sock ( sk ) ;\n }\n done : dst_release ( dst ) ;\n out : fl6_sock_release ( flowlabel ) ;\n return err < 0 ? err : len ;\n do_confirm : dst_confirm ( dst ) ;\n if ( ! ( msg -> msg_flags & MSG_PROBE ) || len ) goto back_from_confirm ;\n err = 0 ;\n goto done ;\n }"}
{"idx": 2264, "target": 0, "func": "static inline int32_t calculate_sign_huff ( MLPDecodeContext * m , unsigned int substr , unsigned int ch ) {\n SubStream * s = & m -> substream [ substr ] ;\n ChannelParams * cp = & s -> channel_params [ ch ] ;\n int lsb_bits = cp -> huff_lsbs - s -> quant_step_size [ ch ] ;\n int sign_shift = lsb_bits + ( cp -> codebook ? 2 - cp -> codebook : - 1 ) ;\n int32_t sign_huff_offset = cp -> huff_offset ;\n if ( cp -> codebook > 0 ) sign_huff_offset -= 7 << lsb_bits ;\n if ( sign_shift >= 0 ) sign_huff_offset -= 1 << sign_shift ;\n return sign_huff_offset ;\n }"}
{"idx": 2265, "target": 0, "func": "static int qemuAgentOnceInit ( void ) {\n if ( ! ( qemuAgentClass = virClassNew ( virClassForObjectLockable ( ) , \"qemuAgent\" , sizeof ( qemuAgent ) , qemuAgentDispose ) ) ) return - 1 ;\n return 0 ;\n }"}
{"idx": 2266, "target": 0, "func": "static void set_ext_overrides ( VP9_COMP * cpi ) {\n if ( cpi -> ext_refresh_frame_context_pending ) {\n cpi -> common . refresh_frame_context = cpi -> ext_refresh_frame_context ;\n cpi -> ext_refresh_frame_context_pending = 0 ;\n }\n if ( cpi -> ext_refresh_frame_flags_pending ) {\n cpi -> refresh_last_frame = cpi -> ext_refresh_last_frame ;\n cpi -> refresh_golden_frame = cpi -> ext_refresh_golden_frame ;\n cpi -> refresh_alt_ref_frame = cpi -> ext_refresh_alt_ref_frame ;\n cpi -> ext_refresh_frame_flags_pending = 0 ;\n }\n }"}
{"idx": 2267, "target": 0, "func": "int keyring_update_keyblock ( KEYRING_HANDLE hd , KBNODE kb ) {\n int rc ;\n if ( ! hd -> found . kr ) return - 1 ;\n if ( hd -> found . kr -> read_only ) return gpg_error ( GPG_ERR_EACCES ) ;\n if ( ! hd -> found . n_packets ) {\n rc = keyring_get_keyblock ( hd , NULL ) ;\n if ( rc ) {\n log_error ( \"re-reading keyblock failed: %s\\n\" , gpg_strerror ( rc ) ) ;\n return rc ;\n }\n if ( ! hd -> found . n_packets ) BUG ( ) ;\n }\n iobuf_close ( hd -> current . iobuf ) ;\n hd -> current . iobuf = NULL ;\n rc = do_copy ( 3 , hd -> found . kr -> fname , kb , hd -> found . offset , hd -> found . n_packets ) ;\n if ( ! rc ) {\n if ( kr_offtbl ) {\n update_offset_hash_table_from_kb ( kr_offtbl , kb , 0 ) ;\n }\n hd -> found . kr = NULL ;\n hd -> found . offset = 0 ;\n }\n return rc ;\n }"}
{"idx": 2268, "target": 0, "func": "TSReturnCode TSCacheKeyDigestSet ( TSCacheKey key , const char * input , int length ) {\n sdk_assert ( sdk_sanity_check_cachekey ( key ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_iocore_structure ( ( void * ) input ) == TS_SUCCESS ) ;\n sdk_assert ( length > 0 ) ;\n CacheInfo * ci = reinterpret_cast < CacheInfo * > ( key ) ;\n if ( ci -> magic != CACHE_INFO_MAGIC_ALIVE ) {\n return TS_ERROR ;\n }\n MD5Context ( ) . hash_immediate ( ci -> cache_key , input , length ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 2269, "target": 0, "func": "static int test_encode_decode_uint64_t ( xd3_stream * stream , int unused ) {\n TEST_ENCODE_DECODE_INTEGER ( uint64_t , 1ULL , UINT64_MAX ) ;\n }"}
{"idx": 2270, "target": 0, "func": "TEST_F ( FullscreenControllerStateUnitTest , ExitTabFullscreenViaDetachingTab ) {\n AddTab ( browser ( ) , GURL ( url : : kAboutBlankURL ) ) ;\n AddTab ( browser ( ) , GURL ( url : : kAboutBlankURL ) ) ;\n ASSERT_TRUE ( InvokeEvent ( TAB_FULLSCREEN_TRUE ) ) ;\n ASSERT_TRUE ( InvokeEvent ( WINDOW_CHANGE ) ) ;\n ASSERT_TRUE ( browser ( ) -> window ( ) -> IsFullscreen ( ) ) ;\n scoped_ptr < content : : WebContents > web_contents ( browser ( ) -> tab_strip_model ( ) -> DetachWebContentsAt ( 0 ) ) ;\n ChangeWindowFullscreenState ( ) ;\n EXPECT_FALSE ( browser ( ) -> window ( ) -> IsFullscreen ( ) ) ;\n }"}
{"idx": 2271, "target": 0, "func": "static int dissect_h245_H223ModeParameters ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_H223ModeParameters , H223ModeParameters_sequence ) ;\n return offset ;\n }"}
{"idx": 2272, "target": 1, "func": "static inline void decompose_current_character ( const hb_ot_shape_normalize_context_t * c , bool shortest ) {\n hb_buffer_t * const buffer = c -> buffer ;\n hb_codepoint_t glyph ;\n if ( shortest && c -> font -> get_glyph ( buffer -> cur ( ) . codepoint , 0 , & glyph ) ) next_char ( buffer , glyph ) ;\n else if ( decompose ( c , shortest , buffer -> cur ( ) . codepoint ) ) skip_char ( buffer ) ;\n else if ( ! shortest && c -> font -> get_glyph ( buffer -> cur ( ) . codepoint , 0 , & glyph ) ) next_char ( buffer , glyph ) ;\n else if ( decompose_compatibility ( c , buffer -> cur ( ) . codepoint ) ) skip_char ( buffer ) ;\n else next_char ( buffer , glyph ) ;\n }"}
{"idx": 2273, "target": 0, "func": "static void dumpcomposite ( SplineChar * sc , struct glyphinfo * gi ) {\n struct glyphhead gh ;\n DBounds bb ;\n int i , ptcnt , ctcnt , flags , sptcnt , rd ;\n SplineSet * ss ;\n RefChar * ref ;\n SplineChar * isc = sc -> ttf_instrs == NULL && sc -> parent -> mm != NULL && sc -> parent -> mm -> apple ? sc -> parent -> mm -> normal -> glyphs [ sc -> orig_pos ] : sc ;\n int arg1 , arg2 ;\n if ( gi -> next_glyph != sc -> ttf_glyph ) IError ( \"Glyph count wrong in ttf output\" ) ;\n if ( gi -> next_glyph >= gi -> maxp -> numGlyphs ) IError ( \"max glyph count wrong in ttf output\" ) ;\n gi -> loca [ gi -> next_glyph ] = ftell ( gi -> glyphs ) ;\n SplineCharLayerQuickBounds ( sc , gi -> layer , & bb ) ;\n gh . numContours = - 1 ;\n gh . xmin = floor ( bb . minx ) ;\n gh . ymin = floor ( bb . miny ) ;\n gh . xmax = ceil ( bb . maxx ) ;\n gh . ymax = ceil ( bb . maxy ) ;\n dumpghstruct ( gi , & gh ) ;\n i = ptcnt = ctcnt = 0 ;\n for ( ref = sc -> layers [ gi -> layer ] . refs ;\n ref != NULL ;\n ref = ref -> next , ++ i ) {\n if ( ref -> sc -> ttf_glyph == - 1 ) {\n continue ;\n }\n flags = 0 ;\n if ( ref -> round_translation_to_grid ) flags |= _ROUND ;\n if ( ref -> use_my_metrics ) flags |= _USE_MY_METRICS ;\n if ( ref -> next != NULL ) flags |= _MORE ;\n else if ( isc -> ttf_instrs_len != 0 ) flags |= _INSTR ;\n if ( ref -> transform [ 1 ] != 0 || ref -> transform [ 2 ] != 0 ) flags |= _MATRIX ;\n else if ( ref -> transform [ 0 ] != ref -> transform [ 3 ] ) flags |= _XY_SCALE ;\n else if ( ref -> transform [ 0 ] != 1. ) flags |= _SCALE ;\n if ( ref -> point_match ) {\n arg1 = ref -> match_pt_base ;\n arg2 = ref -> match_pt_ref ;\n }\n else {\n arg1 = rint ( ref -> transform [ 4 ] ) ;\n arg2 = rint ( ref -> transform [ 5 ] ) ;\n flags |= _ARGS_ARE_XY | _UNSCALED_OFFSETS ;\n }\n if ( arg1 < - 128 || arg1 > 127 || arg2 < - 128 || arg2 > 127 ) flags |= _ARGS_ARE_WORDS ;\n putshort ( gi -> glyphs , flags ) ;\n putshort ( gi -> glyphs , ref -> sc -> ttf_glyph == - 1 ? 0 : ref -> sc -> ttf_glyph ) ;\n if ( flags & _ARGS_ARE_WORDS ) {\n putshort ( gi -> glyphs , ( short ) arg1 ) ;\n putshort ( gi -> glyphs , ( short ) arg2 ) ;\n }\n else {\n putc ( ( char ) arg1 , gi -> glyphs ) ;\n putc ( ( char ) arg2 , gi -> glyphs ) ;\n }\n if ( flags & _MATRIX ) {\n put2d14 ( gi -> glyphs , ref -> transform [ 0 ] ) ;\n put2d14 ( gi -> glyphs , ref -> transform [ 1 ] ) ;\n put2d14 ( gi -> glyphs , ref -> transform [ 2 ] ) ;\n put2d14 ( gi -> glyphs , ref -> transform [ 3 ] ) ;\n }\n else if ( flags & _XY_SCALE ) {\n put2d14 ( gi -> glyphs , ref -> transform [ 0 ] ) ;\n put2d14 ( gi -> glyphs , ref -> transform [ 3 ] ) ;\n }\n else if ( flags & _SCALE ) {\n put2d14 ( gi -> glyphs , ref -> transform [ 0 ] ) ;\n }\n sptcnt = SSTtfNumberPoints ( ref -> layers [ 0 ] . splines ) ;\n for ( ss = ref -> layers [ 0 ] . splines ;\n ss != NULL ;\n ss = ss -> next ) {\n ++ ctcnt ;\n }\n if ( sc -> layers [ gi -> layer ] . order2 ) ptcnt += sptcnt ;\n else if ( ptcnt >= 0 && gi -> pointcounts [ ref -> sc -> ttf_glyph == - 1 ? 0 : ref -> sc -> ttf_glyph ] >= 0 ) ptcnt += gi -> pointcounts [ ref -> sc -> ttf_glyph == - 1 ? 0 : ref -> sc -> ttf_glyph ] ;\n else ptcnt = - 1 ;\n rd = RefDepth ( ref , gi -> layer ) ;\n if ( rd > gi -> maxp -> maxcomponentdepth ) gi -> maxp -> maxcomponentdepth = rd ;\n }\n if ( isc -> ttf_instrs_len != 0 ) dumpinstrs ( gi , isc -> ttf_instrs , isc -> ttf_instrs_len ) ;\n gi -> pointcounts [ gi -> next_glyph ++ ] = ptcnt ;\n if ( gi -> maxp -> maxnumcomponents < i ) gi -> maxp -> maxnumcomponents = i ;\n if ( gi -> maxp -> maxCompositPts < ptcnt ) gi -> maxp -> maxCompositPts = ptcnt ;\n if ( gi -> maxp -> maxCompositCtrs < ctcnt ) gi -> maxp -> maxCompositCtrs = ctcnt ;\n ttfdumpmetrics ( sc , gi , & bb ) ;\n if ( ftell ( gi -> glyphs ) & 1 ) putc ( '\\0' , gi -> glyphs ) ;\n }"}
{"idx": 2274, "target": 1, "func": "void linux_udev_hotplug_poll ( void ) {\n struct udev_device * udev_dev ;\n usbi_mutex_static_lock ( & linux_hotplug_lock ) ;\n do {\n udev_dev = udev_monitor_receive_device ( udev_monitor ) ;\n if ( udev_dev ) {\n usbi_dbg ( \"Handling hotplug event from hotplug_poll\" ) ;\n udev_hotplug_event ( udev_dev ) ;\n }\n }\n while ( udev_dev ) ;\n usbi_mutex_static_unlock ( & linux_hotplug_lock ) ;\n }"}
{"idx": 2275, "target": 0, "func": "static int me_sasl ( struct Client * client_p , struct Client * source_p , int parc , const char * parv [ ] ) {\n struct Client * target_p , * agent_p ;\n if ( strncmp ( parv [ 2 ] , me . id , 3 ) ) return 0 ;\n if ( ( target_p = find_id ( parv [ 2 ] ) ) == NULL ) return 0 ;\n if ( ( agent_p = find_id ( parv [ 1 ] ) ) == NULL ) return 0 ;\n if ( source_p != agent_p -> servptr ) return 0 ;\n if ( ! IsService ( agent_p ) ) return 0 ;\n if ( * target_p -> localClient -> sasl_agent && strncmp ( parv [ 1 ] , target_p -> localClient -> sasl_agent , IDLEN ) ) return 0 ;\n else if ( ! * target_p -> localClient -> sasl_agent ) rb_strlcpy ( target_p -> localClient -> sasl_agent , parv [ 1 ] , IDLEN ) ;\n if ( * parv [ 3 ] == 'C' ) sendto_one ( target_p , \"AUTHENTICATE %s\" , parv [ 4 ] ) ;\n else if ( * parv [ 3 ] == 'D' ) {\n if ( * parv [ 4 ] == 'F' ) sendto_one ( target_p , form_str ( ERR_SASLFAIL ) , me . name , EmptyString ( target_p -> name ) ? \"*\" : target_p -> name ) ;\n else if ( * parv [ 4 ] == 'S' ) {\n sendto_one ( target_p , form_str ( RPL_SASLSUCCESS ) , me . name , EmptyString ( target_p -> name ) ? \"*\" : target_p -> name ) ;\n target_p -> localClient -> sasl_complete = 1 ;\n ServerStats . is_ssuc ++ ;\n }\n * target_p -> localClient -> sasl_agent = '\\0' ;\n }\n else if ( * parv [ 3 ] == 'M' ) sendto_one ( target_p , form_str ( RPL_SASLMECHS ) , me . name , EmptyString ( target_p -> name ) ? \"*\" : target_p -> name , parv [ 4 ] ) ;\n return 0 ;\n }"}
{"idx": 2276, "target": 0, "func": "static void ulti_grad ( AVFrame * frame , int x , int y , uint8_t * Y , int chroma , int angle ) {\n uint8_t Luma [ 16 ] ;\n if ( angle & 8 ) {\n int t ;\n angle &= 0x7 ;\n t = Y [ 0 ] ;\n Y [ 0 ] = Y [ 3 ] ;\n Y [ 3 ] = t ;\n t = Y [ 1 ] ;\n Y [ 1 ] = Y [ 2 ] ;\n Y [ 2 ] = t ;\n }\n switch ( angle ) {\n case 0 : Luma [ 0 ] = Y [ 0 ] ;\n Luma [ 1 ] = Y [ 1 ] ;\n Luma [ 2 ] = Y [ 2 ] ;\n Luma [ 3 ] = Y [ 3 ] ;\n Luma [ 4 ] = Y [ 0 ] ;\n Luma [ 5 ] = Y [ 1 ] ;\n Luma [ 6 ] = Y [ 2 ] ;\n Luma [ 7 ] = Y [ 3 ] ;\n Luma [ 8 ] = Y [ 0 ] ;\n Luma [ 9 ] = Y [ 1 ] ;\n Luma [ 10 ] = Y [ 2 ] ;\n Luma [ 11 ] = Y [ 3 ] ;\n Luma [ 12 ] = Y [ 0 ] ;\n Luma [ 13 ] = Y [ 1 ] ;\n Luma [ 14 ] = Y [ 2 ] ;\n Luma [ 15 ] = Y [ 3 ] ;\n break ;\n case 1 : Luma [ 0 ] = Y [ 1 ] ;\n Luma [ 1 ] = Y [ 2 ] ;\n Luma [ 2 ] = Y [ 3 ] ;\n Luma [ 3 ] = Y [ 3 ] ;\n Luma [ 4 ] = Y [ 0 ] ;\n Luma [ 5 ] = Y [ 1 ] ;\n Luma [ 6 ] = Y [ 2 ] ;\n Luma [ 7 ] = Y [ 3 ] ;\n Luma [ 8 ] = Y [ 0 ] ;\n Luma [ 9 ] = Y [ 1 ] ;\n Luma [ 10 ] = Y [ 2 ] ;\n Luma [ 11 ] = Y [ 3 ] ;\n Luma [ 12 ] = Y [ 0 ] ;\n Luma [ 13 ] = Y [ 0 ] ;\n Luma [ 14 ] = Y [ 1 ] ;\n Luma [ 15 ] = Y [ 2 ] ;\n break ;\n case 2 : Luma [ 0 ] = Y [ 1 ] ;\n Luma [ 1 ] = Y [ 2 ] ;\n Luma [ 2 ] = Y [ 3 ] ;\n Luma [ 3 ] = Y [ 3 ] ;\n Luma [ 4 ] = Y [ 1 ] ;\n Luma [ 5 ] = Y [ 2 ] ;\n Luma [ 6 ] = Y [ 2 ] ;\n Luma [ 7 ] = Y [ 3 ] ;\n Luma [ 8 ] = Y [ 0 ] ;\n Luma [ 9 ] = Y [ 1 ] ;\n Luma [ 10 ] = Y [ 1 ] ;\n Luma [ 11 ] = Y [ 2 ] ;\n Luma [ 12 ] = Y [ 0 ] ;\n Luma [ 13 ] = Y [ 0 ] ;\n Luma [ 14 ] = Y [ 1 ] ;\n Luma [ 15 ] = Y [ 2 ] ;\n break ;\n case 3 : Luma [ 0 ] = Y [ 2 ] ;\n Luma [ 1 ] = Y [ 3 ] ;\n Luma [ 2 ] = Y [ 3 ] ;\n Luma [ 3 ] = Y [ 3 ] ;\n Luma [ 4 ] = Y [ 1 ] ;\n Luma [ 5 ] = Y [ 2 ] ;\n Luma [ 6 ] = Y [ 2 ] ;\n Luma [ 7 ] = Y [ 3 ] ;\n Luma [ 8 ] = Y [ 0 ] ;\n Luma [ 9 ] = Y [ 1 ] ;\n Luma [ 10 ] = Y [ 1 ] ;\n Luma [ 11 ] = Y [ 2 ] ;\n Luma [ 12 ] = Y [ 0 ] ;\n Luma [ 13 ] = Y [ 0 ] ;\n Luma [ 14 ] = Y [ 0 ] ;\n Luma [ 15 ] = Y [ 1 ] ;\n break ;\n case 4 : Luma [ 0 ] = Y [ 3 ] ;\n Luma [ 1 ] = Y [ 3 ] ;\n Luma [ 2 ] = Y [ 3 ] ;\n Luma [ 3 ] = Y [ 3 ] ;\n Luma [ 4 ] = Y [ 2 ] ;\n Luma [ 5 ] = Y [ 2 ] ;\n Luma [ 6 ] = Y [ 2 ] ;\n Luma [ 7 ] = Y [ 2 ] ;\n Luma [ 8 ] = Y [ 1 ] ;\n Luma [ 9 ] = Y [ 1 ] ;\n Luma [ 10 ] = Y [ 1 ] ;\n Luma [ 11 ] = Y [ 1 ] ;\n Luma [ 12 ] = Y [ 0 ] ;\n Luma [ 13 ] = Y [ 0 ] ;\n Luma [ 14 ] = Y [ 0 ] ;\n Luma [ 15 ] = Y [ 0 ] ;\n break ;\n case 5 : Luma [ 0 ] = Y [ 3 ] ;\n Luma [ 1 ] = Y [ 3 ] ;\n Luma [ 2 ] = Y [ 3 ] ;\n Luma [ 3 ] = Y [ 2 ] ;\n Luma [ 4 ] = Y [ 3 ] ;\n Luma [ 5 ] = Y [ 2 ] ;\n Luma [ 6 ] = Y [ 2 ] ;\n Luma [ 7 ] = Y [ 1 ] ;\n Luma [ 8 ] = Y [ 2 ] ;\n Luma [ 9 ] = Y [ 1 ] ;\n Luma [ 10 ] = Y [ 1 ] ;\n Luma [ 11 ] = Y [ 0 ] ;\n Luma [ 12 ] = Y [ 1 ] ;\n Luma [ 13 ] = Y [ 0 ] ;\n Luma [ 14 ] = Y [ 0 ] ;\n Luma [ 15 ] = Y [ 0 ] ;\n break ;\n case 6 : Luma [ 0 ] = Y [ 3 ] ;\n Luma [ 1 ] = Y [ 3 ] ;\n Luma [ 2 ] = Y [ 2 ] ;\n Luma [ 3 ] = Y [ 2 ] ;\n Luma [ 4 ] = Y [ 3 ] ;\n Luma [ 5 ] = Y [ 2 ] ;\n Luma [ 6 ] = Y [ 1 ] ;\n Luma [ 7 ] = Y [ 1 ] ;\n Luma [ 8 ] = Y [ 2 ] ;\n Luma [ 9 ] = Y [ 2 ] ;\n Luma [ 10 ] = Y [ 1 ] ;\n Luma [ 11 ] = Y [ 0 ] ;\n Luma [ 12 ] = Y [ 1 ] ;\n Luma [ 13 ] = Y [ 1 ] ;\n Luma [ 14 ] = Y [ 0 ] ;\n Luma [ 15 ] = Y [ 0 ] ;\n break ;\n case 7 : Luma [ 0 ] = Y [ 3 ] ;\n Luma [ 1 ] = Y [ 3 ] ;\n Luma [ 2 ] = Y [ 2 ] ;\n Luma [ 3 ] = Y [ 1 ] ;\n Luma [ 4 ] = Y [ 3 ] ;\n Luma [ 5 ] = Y [ 2 ] ;\n Luma [ 6 ] = Y [ 1 ] ;\n Luma [ 7 ] = Y [ 0 ] ;\n Luma [ 8 ] = Y [ 3 ] ;\n Luma [ 9 ] = Y [ 2 ] ;\n Luma [ 10 ] = Y [ 1 ] ;\n Luma [ 11 ] = Y [ 0 ] ;\n Luma [ 12 ] = Y [ 2 ] ;\n Luma [ 13 ] = Y [ 1 ] ;\n Luma [ 14 ] = Y [ 0 ] ;\n Luma [ 15 ] = Y [ 0 ] ;\n break ;\n default : Luma [ 0 ] = Y [ 0 ] ;\n Luma [ 1 ] = Y [ 0 ] ;\n Luma [ 2 ] = Y [ 1 ] ;\n Luma [ 3 ] = Y [ 1 ] ;\n Luma [ 4 ] = Y [ 0 ] ;\n Luma [ 5 ] = Y [ 0 ] ;\n Luma [ 6 ] = Y [ 1 ] ;\n Luma [ 7 ] = Y [ 1 ] ;\n Luma [ 8 ] = Y [ 2 ] ;\n Luma [ 9 ] = Y [ 2 ] ;\n Luma [ 10 ] = Y [ 3 ] ;\n Luma [ 11 ] = Y [ 3 ] ;\n Luma [ 12 ] = Y [ 2 ] ;\n Luma [ 13 ] = Y [ 2 ] ;\n Luma [ 14 ] = Y [ 3 ] ;\n Luma [ 15 ] = Y [ 3 ] ;\n break ;\n }\n ulti_convert_yuv ( frame , x , y , Luma , chroma ) ;\n }"}
{"idx": 2277, "target": 1, "func": "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 ) {\n gcry_err_code_t err = 0 ;\n gcry_sexp_t list , l2 ;\n char * name ;\n const char * elems ;\n gcry_mpi_t * array ;\n gcry_module_t module ;\n gcry_pk_spec_t * pubkey ;\n pk_extra_spec_t * extraspec ;\n int is_ecc ;\n list = gcry_sexp_find_token ( sexp , want_private ? \"private-key\" : \"public-key\" , 0 ) ;\n if ( ! list && ! want_private ) list = gcry_sexp_find_token ( sexp , \"private-key\" , 0 ) ;\n if ( ! list ) return GPG_ERR_INV_OBJ ;\n l2 = gcry_sexp_cadr ( list ) ;\n gcry_sexp_release ( list ) ;\n list = l2 ;\n name = _gcry_sexp_nth_string ( list , 0 ) ;\n if ( ! name ) {\n gcry_sexp_release ( list ) ;\n return GPG_ERR_INV_OBJ ;\n }\n if ( ! strcmp ( name , \"ecc\" ) ) is_ecc = 2 ;\n else if ( ! strcmp ( name , \"ecdsa\" ) || ! strcmp ( name , \"ecdh\" ) ) is_ecc = 1 ;\n else is_ecc = 0 ;\n ath_mutex_lock ( & pubkeys_registered_lock ) ;\n if ( is_ecc == 2 && ( use & GCRY_PK_USAGE_SIGN ) ) module = gcry_pk_lookup_name ( \"ecdsa\" ) ;\n else if ( is_ecc == 2 && ( use & GCRY_PK_USAGE_ENCR ) ) module = gcry_pk_lookup_name ( \"ecdh\" ) ;\n else module = gcry_pk_lookup_name ( name ) ;\n ath_mutex_unlock ( & pubkeys_registered_lock ) ;\n gcry_free ( name ) ;\n if ( ! module ) {\n gcry_sexp_release ( list ) ;\n return GPG_ERR_PUBKEY_ALGO ;\n }\n else {\n pubkey = ( gcry_pk_spec_t * ) module -> spec ;\n extraspec = module -> extraspec ;\n }\n if ( override_elems ) elems = override_elems ;\n else if ( want_private ) elems = pubkey -> elements_skey ;\n else elems = pubkey -> elements_pkey ;\n array = gcry_calloc ( strlen ( elems ) + 1 , sizeof ( * array ) ) ;\n if ( ! array ) err = gpg_err_code_from_syserror ( ) ;\n if ( ! err ) {\n if ( is_ecc ) err = sexp_elements_extract_ecc ( list , elems , array , extraspec , want_private ) ;\n else err = sexp_elements_extract ( list , elems , array , pubkey -> name ) ;\n }\n gcry_sexp_release ( list ) ;\n if ( err ) {\n gcry_free ( array ) ;\n ath_mutex_lock ( & pubkeys_registered_lock ) ;\n _gcry_module_release ( module ) ;\n ath_mutex_unlock ( & pubkeys_registered_lock ) ;\n }\n else {\n * retarray = array ;\n * retalgo = module ;\n if ( r_is_ecc ) * r_is_ecc = is_ecc ;\n }\n return err ;\n }"}
{"idx": 2278, "target": 0, "func": "static int dissect_h245_T_mediaType ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_mediaType , T_mediaType_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 2279, "target": 0, "func": "static void set_permissions_thread_func ( GTask * task , gpointer source_object , gpointer task_data , GCancellable * cancellable ) {\n SetPermissionsJob * job = task_data ;\n CommonJob * common ;\n common = ( CommonJob * ) job ;\n nautilus_progress_info_set_status ( common -> progress , _ ( \"Setting permissions\" ) ) ;\n nautilus_progress_info_start ( job -> common . progress ) ;\n set_permissions_file ( job , job -> file , NULL ) ;\n }"}
{"idx": 2280, "target": 0, "func": "rfbBool rfbSendXvp ( rfbClientPtr cl , uint8_t version , uint8_t code ) {\n rfbXvpMsg xvp ;\n xvp . type = rfbXvp ;\n xvp . pad = 0 ;\n xvp . version = version ;\n xvp . code = code ;\n LOCK ( cl -> sendMutex ) ;\n if ( rfbWriteExact ( cl , ( char * ) & xvp , sz_rfbXvpMsg ) < 0 ) {\n rfbLogPerror ( \"rfbSendXvp: write\" ) ;\n rfbCloseClient ( cl ) ;\n }\n UNLOCK ( cl -> sendMutex ) ;\n rfbStatRecordMessageSent ( cl , rfbXvp , sz_rfbXvpMsg , sz_rfbXvpMsg ) ;\n return TRUE ;\n }"}
{"idx": 2281, "target": 0, "func": "static mpa_state_t * init_mpa_state ( void ) {\n mpa_state_t * state ;\n state = ( mpa_state_t * ) wmem_alloc0 ( wmem_file_scope ( ) , sizeof ( mpa_state_t ) ) ;\n state -> revision = - 1 ;\n return state ;\n }"}
{"idx": 2282, "target": 0, "func": "static void dummy_signal ( int sig ) {\n }"}
{"idx": 2283, "target": 0, "func": "static int dissect_h245_OpenLogicalChannelAck ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 218 \"../../asn1/h245/h245.cnf\" guint32 temp ;\n int p2p_dir ;\n h223_pending_olc * pend ;\n const gchar * olc_key ;\n olc_info_t * olc_req ;\n upcoming_olc = ( ! actx -> pinfo -> fd -> flags . visited ) ? wmem_new0 ( wmem_packet_scope ( ) , olc_info_t ) : NULL ;\n h223_fw_lc_num = 0 ;\n h223_rev_lc_num = 0 ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_OpenLogicalChannelAck , OpenLogicalChannelAck_sequence ) ;\n temp = h223_fw_lc_num ;\n p2p_dir = actx -> pinfo -> p2p_dir ;\n if ( actx -> pinfo -> p2p_dir == P2P_DIR_SENT ) actx -> pinfo -> p2p_dir = P2P_DIR_RECV ;\n else actx -> pinfo -> p2p_dir = P2P_DIR_SENT ;\n pend = ( h223_pending_olc * ) g_hash_table_lookup ( h223_pending_olc_reqs [ actx -> pinfo -> p2p_dir ] , GINT_TO_POINTER ( temp ) ) ;\n if ( pend ) {\n DISSECTOR_ASSERT ( ( h223_rev_lc_num && pend -> rev_channel_params ) || ( ! h223_rev_lc_num && ! pend -> rev_channel_params ) ) ;\n if ( h223_add_lc_handle ) {\n ( * h223_add_lc_handle ) ( actx -> pinfo , h223_fw_lc_num , pend -> fw_channel_params ) ;\n if ( h223_rev_lc_num ) ( * h223_add_lc_handle ) ( actx -> pinfo , h223_rev_lc_num , pend -> rev_channel_params ) ;\n }\n }\n else {\n }\n actx -> pinfo -> p2p_dir = p2p_dir ;\n if ( upcoming_olc ) {\n olc_key = gen_olc_key ( upcoming_olc -> fwd_lc_num , & actx -> pinfo -> src , & actx -> pinfo -> dst ) ;\n olc_req = ( olc_info_t * ) g_hash_table_lookup ( h245_pending_olc_reqs , olc_key ) ;\n if ( olc_req ) {\n update_unicast_addr ( & olc_req -> fwd_lc . media_addr , & upcoming_olc -> fwd_lc . media_addr ) ;\n update_unicast_addr ( & olc_req -> fwd_lc . media_control_addr , & upcoming_olc -> fwd_lc . media_control_addr ) ;\n update_unicast_addr ( & olc_req -> rev_lc . media_addr , & upcoming_olc -> rev_lc . media_addr ) ;\n update_unicast_addr ( & olc_req -> rev_lc . media_control_addr , & upcoming_olc -> rev_lc . media_control_addr ) ;\n h245_setup_channels ( actx -> pinfo , & olc_req -> fwd_lc ) ;\n h245_setup_channels ( actx -> pinfo , & olc_req -> rev_lc ) ;\n g_hash_table_remove ( h245_pending_olc_reqs , olc_key ) ;\n }\n else {\n h245_setup_channels ( actx -> pinfo , & upcoming_olc -> fwd_lc ) ;\n }\n }\n upcoming_olc = NULL ;\n if ( h245_pi != NULL ) h245_pi -> msg_type = H245_OpenLogChnAck ;\n return offset ;\n }"}
{"idx": 2284, "target": 1, "func": "static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 2285, "target": 0, "func": "static bool ExecTargetList ( List * targetlist , TupleDesc tupdesc , ExprContext * econtext , Datum * values , bool * isnull , ExprDoneCond * itemIsDone , ExprDoneCond * isDone ) {\n Form_pg_attribute * att = tupdesc -> attrs ;\n MemoryContext oldContext ;\n ListCell * tl ;\n bool haveDoneSets ;\n oldContext = MemoryContextSwitchTo ( econtext -> ecxt_per_tuple_memory ) ;\n haveDoneSets = false ;\n foreach ( tl , targetlist ) {\n GenericExprState * gstate = ( GenericExprState * ) lfirst ( tl ) ;\n TargetEntry * tle = ( TargetEntry * ) gstate -> xprstate . expr ;\n AttrNumber resind = tle -> resno - 1 ;\n values [ resind ] = ExecEvalExpr ( gstate -> arg , econtext , & isnull [ resind ] , & itemIsDone [ resind ] ) ;\n values [ resind ] = MakeExpandedObjectReadOnly ( values [ resind ] , isnull [ resind ] , att [ resind ] -> attlen ) ;\n if ( itemIsDone [ resind ] != ExprSingleResult ) {\n if ( isDone == NULL ) ereport ( ERROR , ( errcode ( ERRCODE_FEATURE_NOT_SUPPORTED ) , errmsg ( \"set-valued function called in context that cannot accept a set\" ) ) ) ;\n if ( itemIsDone [ resind ] == ExprMultipleResult ) {\n * isDone = ExprMultipleResult ;\n }\n else {\n haveDoneSets = true ;\n }\n }\n }\n if ( haveDoneSets ) {\n if ( * isDone == ExprSingleResult ) {\n * isDone = ExprEndResult ;\n MemoryContextSwitchTo ( oldContext ) ;\n return false ;\n }\n else {\n foreach ( tl , targetlist ) {\n GenericExprState * gstate = ( GenericExprState * ) lfirst ( tl ) ;\n TargetEntry * tle = ( TargetEntry * ) gstate -> xprstate . expr ;\n AttrNumber resind = tle -> resno - 1 ;\n if ( itemIsDone [ resind ] == ExprEndResult ) {\n values [ resind ] = ExecEvalExpr ( gstate -> arg , econtext , & isnull [ resind ] , & itemIsDone [ resind ] ) ;\n values [ resind ] = MakeExpandedObjectReadOnly ( values [ resind ] , isnull [ resind ] , att [ resind ] -> attlen ) ;\n if ( itemIsDone [ resind ] == ExprEndResult ) {\n * isDone = ExprEndResult ;\n break ;\n }\n }\n }\n if ( * isDone == ExprEndResult ) {\n foreach ( tl , targetlist ) {\n GenericExprState * gstate = ( GenericExprState * ) lfirst ( tl ) ;\n TargetEntry * tle = ( TargetEntry * ) gstate -> xprstate . expr ;\n AttrNumber resind = tle -> resno - 1 ;\n while ( itemIsDone [ resind ] == ExprMultipleResult ) {\n values [ resind ] = ExecEvalExpr ( gstate -> arg , econtext , & isnull [ resind ] , & itemIsDone [ resind ] ) ;\n }\n }\n MemoryContextSwitchTo ( oldContext ) ;\n return false ;\n }\n }\n }\n MemoryContextSwitchTo ( oldContext ) ;\n return true ;\n }"}
{"idx": 2286, "target": 0, "func": "static int sort_ft_key_read ( MI_SORT_PARAM * sort_param , void * key ) {\n int error ;\n SORT_INFO * sort_info = sort_param -> sort_info ;\n MI_INFO * info = sort_info -> info ;\n FT_WORD * wptr = 0 ;\n DBUG_ENTER ( \"sort_ft_key_read\" ) ;\n if ( ! sort_param -> wordlist ) {\n for ( ;\n ;\n ) {\n free_root ( & sort_param -> wordroot , MYF ( MY_MARK_BLOCKS_FREE ) ) ;\n if ( ( error = sort_get_next_record ( sort_param ) ) ) DBUG_RETURN ( error ) ;\n if ( ! ( wptr = _mi_ft_parserecord ( info , sort_param -> key , sort_param -> record , & sort_param -> wordroot ) ) ) DBUG_RETURN ( 1 ) ;\n if ( wptr -> pos ) break ;\n error = sort_write_record ( sort_param ) ;\n }\n sort_param -> wordptr = sort_param -> wordlist = wptr ;\n }\n else {\n error = 0 ;\n wptr = ( FT_WORD * ) ( sort_param -> wordptr ) ;\n }\n sort_param -> real_key_length = ( info -> s -> rec_reflength + _ft_make_key ( info , sort_param -> key , key , wptr ++ , sort_param -> filepos ) ) ;\n # ifdef HAVE_purify if ( sort_param -> key_length > sort_param -> real_key_length ) bzero ( key + sort_param -> real_key_length , ( sort_param -> key_length - sort_param -> real_key_length ) ) ;\n # endif if ( ! wptr -> pos ) {\n free_root ( & sort_param -> wordroot , MYF ( MY_MARK_BLOCKS_FREE ) ) ;\n sort_param -> wordlist = 0 ;\n error = sort_write_record ( sort_param ) ;\n }\n else sort_param -> wordptr = ( void * ) wptr ;\n DBUG_RETURN ( error ) ;\n }"}
{"idx": 2287, "target": 0, "func": "static int dissect_h245_T_mobileOperationTransmitCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_mobileOperationTransmitCapability , T_mobileOperationTransmitCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 2288, "target": 0, "func": "TSVIO TSVConnWriteVIOGet ( TSVConn connp ) {\n sdk_assert ( sdk_sanity_check_iocore_structure ( connp ) == TS_SUCCESS ) ;\n VConnection * vc = ( VConnection * ) connp ;\n TSVIO data ;\n if ( vc -> get_data ( TS_API_DATA_WRITE_VIO , & data ) ) {\n return data ;\n }\n return nullptr ;\n }"}
{"idx": 2289, "target": 0, "func": "static gint gst_asf_demux_check_header ( GstASFDemux * demux ) {\n AsfObject obj ;\n guint8 * cdata = ( guint8 * ) gst_adapter_map ( demux -> adapter , ASF_OBJECT_HEADER_SIZE ) ;\n if ( cdata == NULL ) return GST_ASF_DEMUX_CHECK_HEADER_NEED_DATA ;\n if ( asf_demux_peek_object ( demux , cdata , ASF_OBJECT_HEADER_SIZE , & obj , FALSE && obj . id == ASF_OBJ_HEADER ) ) return GST_ASF_DEMUX_CHECK_HEADER_YES ;\n return GST_ASF_DEMUX_CHECK_HEADER_NO ;\n }"}
{"idx": 2290, "target": 0, "func": "static VALUE ossl_cipher_set_key_length ( VALUE self , VALUE key_length ) {\n int len = NUM2INT ( key_length ) ;\n EVP_CIPHER_CTX * ctx ;\n GetCipher ( self , ctx ) ;\n if ( EVP_CIPHER_CTX_set_key_length ( ctx , len ) != 1 ) ossl_raise ( eCipherError , NULL ) ;\n return key_length ;\n }"}
{"idx": 2291, "target": 0, "func": "TEST_F ( ScoredHistoryMatchTest , ScoringTLD ) {\n base : : Time now = base : : Time : : NowFromSystemTime ( ) ;\n std : : string url_string ( \"http://fedcba.com/\" ) ;\n const GURL url ( url_string ) ;\n history : : URLRow row ( MakeURLRow ( url_string . c_str ( ) , \"\" , 8 , 3 , 1 ) ) ;\n RowWordStarts word_starts ;\n PopulateWordStarts ( row , & word_starts ) ;\n WordStarts two_words_no_offsets ( 2 , 0u ) ;\n VisitInfoVector visits = CreateVisitInfoVector ( 8 , 3 , now ) ;\n ScoredHistoryMatch scored ( row , visits , ASCIIToUTF16 ( \"fed com\" ) , Make2Terms ( \"fed\" , \"com\" ) , two_words_no_offsets , word_starts , false , nullptr , now ) ;\n EXPECT_EQ ( 0 , scored . raw_score ) ;\n base : : AutoReset < bool > reset ( & ScoredHistoryMatch : : allow_tld_matches_ , true ) ;\n ScoredHistoryMatch scored_with_tld ( row , visits , ASCIIToUTF16 ( \"fed com\" ) , Make2Terms ( \"fed\" , \"com\" ) , two_words_no_offsets , word_starts , false , nullptr , now ) ;\n EXPECT_GT ( scored_with_tld . raw_score , 0 ) ;\n }"}
{"idx": 2292, "target": 0, "func": "static unsigned long xmlHashComputeQKey ( xmlHashTablePtr table , const xmlChar * prefix , const xmlChar * name , const xmlChar * prefix2 , const xmlChar * name2 , const xmlChar * prefix3 , const xmlChar * name3 ) {\n unsigned long value = 0L ;\n char ch ;\n # ifdef HASH_RANDOMIZATION value = table -> random_seed ;\n # endif if ( prefix != NULL ) value += 30 * ( * prefix ) ;\n else value += 30 * ( * name ) ;\n if ( prefix != NULL ) {\n while ( ( ch = * prefix ++ ) != 0 ) {\n value = value ^ ( ( value << 5 ) + ( value >> 3 ) + ( unsigned long ) ch ) ;\n }\n value = value ^ ( ( value << 5 ) + ( value >> 3 ) + ( unsigned long ) ':' ) ;\n }\n if ( name != NULL ) {\n while ( ( ch = * name ++ ) != 0 ) {\n value = value ^ ( ( value << 5 ) + ( value >> 3 ) + ( unsigned long ) ch ) ;\n }\n }\n value = value ^ ( ( value << 5 ) + ( value >> 3 ) ) ;\n if ( prefix2 != NULL ) {\n while ( ( ch = * prefix2 ++ ) != 0 ) {\n value = value ^ ( ( value << 5 ) + ( value >> 3 ) + ( unsigned long ) ch ) ;\n }\n value = value ^ ( ( value << 5 ) + ( value >> 3 ) + ( unsigned long ) ':' ) ;\n }\n if ( name2 != NULL ) {\n while ( ( ch = * name2 ++ ) != 0 ) {\n value = value ^ ( ( value << 5 ) + ( value >> 3 ) + ( unsigned long ) ch ) ;\n }\n }\n value = value ^ ( ( value << 5 ) + ( value >> 3 ) ) ;\n if ( prefix3 != NULL ) {\n while ( ( ch = * prefix3 ++ ) != 0 ) {\n value = value ^ ( ( value << 5 ) + ( value >> 3 ) + ( unsigned long ) ch ) ;\n }\n value = value ^ ( ( value << 5 ) + ( value >> 3 ) + ( unsigned long ) ':' ) ;\n }\n if ( name3 != NULL ) {\n while ( ( ch = * name3 ++ ) != 0 ) {\n value = value ^ ( ( value << 5 ) + ( value >> 3 ) + ( unsigned long ) ch ) ;\n }\n }\n return ( value % table -> size ) ;\n }"}
{"idx": 2293, "target": 0, "func": "CpuInfoList * qmp_query_cpus ( Error * * errp ) {\n CpuInfoList * head = NULL , * cur_item = NULL ;\n CPUArchState * env ;\n for ( env = first_cpu ;\n env != NULL ;\n env = env -> next_cpu ) {\n CPUState * cpu = ENV_GET_CPU ( env ) ;\n CpuInfoList * info ;\n cpu_synchronize_state ( cpu ) ;\n info = g_malloc0 ( sizeof ( * info ) ) ;\n info -> value = g_malloc0 ( sizeof ( * info -> value ) ) ;\n info -> value -> CPU = cpu -> cpu_index ;\n info -> value -> current = ( env == first_cpu ) ;\n info -> value -> halted = cpu -> halted ;\n info -> value -> thread_id = cpu -> thread_id ;\n # if defined ( TARGET_I386 ) info -> value -> has_pc = true ;\n info -> value -> pc = env -> eip + env -> segs [ R_CS ] . base ;\n # elif defined ( TARGET_PPC ) info -> value -> has_nip = true ;\n info -> value -> nip = env -> nip ;\n # elif defined ( TARGET_SPARC ) info -> value -> has_pc = true ;\n info -> value -> pc = env -> pc ;\n info -> value -> has_npc = true ;\n info -> value -> npc = env -> npc ;\n # elif defined ( TARGET_MIPS ) info -> value -> has_PC = true ;\n info -> value -> PC = env -> active_tc . PC ;\n # endif if ( ! cur_item ) {\n head = cur_item = info ;\n }\n else {\n cur_item -> next = info ;\n cur_item = info ;\n }\n }\n return head ;\n }"}
{"idx": 2294, "target": 0, "func": "int dissect_h225_ICV ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_ICV , ICV_sequence ) ;\n return offset ;\n }"}
{"idx": 2295, "target": 0, "func": "TEST ( ExtensionCSPValidator , IsLegal ) {\n EXPECT_TRUE ( ContentSecurityPolicyIsLegal ( \"foo\" ) ) ;\n EXPECT_TRUE ( ContentSecurityPolicyIsLegal ( \"default-src 'self';\n script-src http://www.google.com\" ) ) ;\n EXPECT_FALSE ( ContentSecurityPolicyIsLegal ( \"default-src 'self';\n\\nscript-src http://www.google.com\" ) ) ;\n EXPECT_FALSE ( ContentSecurityPolicyIsLegal ( \"default-src 'self';\n\\rscript-src http://www.google.com\" ) ) ;\n EXPECT_FALSE ( ContentSecurityPolicyIsLegal ( \"default-src 'self';\n,script-src http://www.google.com\" ) ) ;\n }"}
{"idx": 2296, "target": 0, "func": "static void _doSetFixedOutputState ( ArchiveHandle * AH ) {\n RestoreOptions * ropt = AH -> public . ropt ;\n ahprintf ( AH , \"SET statement_timeout = 0;\n\\n\" ) ;\n ahprintf ( AH , \"SET lock_timeout = 0;\n\\n\" ) ;\n ahprintf ( AH , \"SET idle_in_transaction_session_timeout = 0;\n\\n\" ) ;\n ahprintf ( AH , \"SET client_encoding = '%s';\n\\n\" , pg_encoding_to_char ( AH -> public . encoding ) ) ;\n ahprintf ( AH , \"SET standard_conforming_strings = %s;\n\\n\" , AH -> public . std_strings ? \"on\" : \"off\" ) ;\n if ( ropt && ropt -> use_role ) ahprintf ( AH , \"SET ROLE %s;\n\\n\" , fmtId ( ropt -> use_role ) ) ;\n ahprintf ( AH , \"SET check_function_bodies = false;\n\\n\" ) ;\n ahprintf ( AH , \"SET client_min_messages = warning;\n\\n\" ) ;\n if ( ! AH -> public . std_strings ) ahprintf ( AH , \"SET escape_string_warning = off;\n\\n\" ) ;\n if ( ropt && ropt -> enable_row_security ) ahprintf ( AH , \"SET row_security = on;\n\\n\" ) ;\n else ahprintf ( AH , \"SET row_security = off;\n\\n\" ) ;\n ahprintf ( AH , \"\\n\" ) ;\n }"}
{"idx": 2297, "target": 0, "func": "static int dissect_h245_Cmd_aal ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_Cmd_aal , Cmd_aal_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 2298, "target": 0, "func": "static void dissect_coap_opt_uri_port ( tvbuff_t * tvb , proto_item * head_item , proto_tree * subtree , gint offset , gint opt_length , coap_info * coinfo , int hf ) {\n guint port = 0 ;\n if ( opt_length != 0 ) {\n port = coap_get_opt_uint ( tvb , offset , opt_length ) ;\n }\n proto_tree_add_uint ( subtree , hf , tvb , offset , opt_length , port ) ;\n proto_item_append_text ( head_item , \": %u\" , port ) ;\n wmem_strbuf_append_printf ( coinfo -> uri_str_strbuf , \":%u\" , port ) ;\n }"}
{"idx": 2299, "target": 0, "func": "static int dissect_h245_OLC_ack_reverseLogicalChannelParameters ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_OLC_ack_reverseLogicalChannelParameters , OLC_ack_reverseLogicalChannelParameters_sequence ) ;\n return offset ;\n }"}
{"idx": 2300, "target": 0, "func": "static struct request * request_find_from_trans_id ( u16 trans_id ) {\n struct request * req = req_head , * const started_at = req_head ;\n if ( req ) {\n do {\n if ( req -> trans_id == trans_id ) return req ;\n req = req -> next ;\n }\n while ( req != started_at ) ;\n }\n return NULL ;\n }"}
{"idx": 2301, "target": 0, "func": "static int script_connect ( struct mail_user * user , const char * * path_r ) {\n const char * path ;\n int fd ;\n path = mail_user_plugin_getenv ( user , \"fts_decoder\" ) ;\n if ( path == NULL ) return - 1 ;\n if ( * path != '/' ) path = t_strconcat ( user -> set -> base_dir , \"/\" , path , NULL ) ;\n fd = net_connect_unix_with_retries ( path , 1000 ) ;\n if ( fd == - 1 ) i_error ( \"net_connect_unix(%s) failed: %m\" , path ) ;\n else net_set_nonblock ( fd , FALSE ) ;\n * path_r = path ;\n return fd ;\n }"}
{"idx": 2302, "target": 0, "func": "void proto_item_set_len ( proto_item * pi , const gint length ) {\n field_info * fi ;\n TRY_TO_FAKE_THIS_REPR_VOID ( pi ) ;\n fi = PITEM_FINFO ( pi ) ;\n if ( fi == NULL ) return ;\n DISSECTOR_ASSERT ( length >= 0 ) ;\n fi -> length = length ;\n if ( fi -> value . ftype -> ftype == FT_BYTES && length <= ( gint ) fi -> value . value . bytes -> len ) fi -> value . value . bytes -> len = length ;\n }"}
{"idx": 2303, "target": 0, "func": "SPL_METHOD ( SplFileObject , ftruncate ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n long size ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"l\" , & size ) == FAILURE ) {\n return ;\n }\n if ( ! php_stream_truncate_supported ( intern -> u . file . stream ) ) {\n zend_throw_exception_ex ( spl_ce_LogicException , 0 TSRMLS_CC , \"Can't truncate file %s\" , intern -> file_name ) ;\n RETURN_FALSE ;\n }\n RETURN_BOOL ( 0 == php_stream_truncate_set_size ( intern -> u . file . stream , size ) ) ;\n }"}
{"idx": 2304, "target": 0, "func": "ArchiveHandle * CloneArchive ( ArchiveHandle * AH ) {\n ArchiveHandle * clone ;\n clone = ( ArchiveHandle * ) pg_malloc ( sizeof ( ArchiveHandle ) ) ;\n memcpy ( clone , AH , sizeof ( ArchiveHandle ) ) ;\n memset ( & ( clone -> sqlparse ) , 0 , sizeof ( clone -> sqlparse ) ) ;\n clone -> connection = NULL ;\n clone -> connCancel = NULL ;\n clone -> currUser = NULL ;\n clone -> currSchema = NULL ;\n clone -> currTablespace = NULL ;\n clone -> currWithOids = - 1 ;\n if ( clone -> savedPassword ) clone -> savedPassword = pg_strdup ( clone -> savedPassword ) ;\n clone -> public . n_errors = 0 ;\n if ( AH -> mode == archModeRead ) {\n RestoreOptions * ropt = AH -> public . ropt ;\n Assert ( AH -> connection == NULL ) ;\n ConnectDatabase ( ( Archive * ) clone , ropt -> dbname , ropt -> pghost , ropt -> pgport , ropt -> username , ropt -> promptPassword ) ;\n _doSetFixedOutputState ( clone ) ;\n }\n else {\n PQExpBufferData connstr ;\n char * pghost ;\n char * pgport ;\n char * username ;\n Assert ( AH -> connection != NULL ) ;\n initPQExpBuffer ( & connstr ) ;\n appendPQExpBuffer ( & connstr , \"dbname=\" ) ;\n appendConnStrVal ( & connstr , PQdb ( AH -> connection ) ) ;\n pghost = PQhost ( AH -> connection ) ;\n pgport = PQport ( AH -> connection ) ;\n username = PQuser ( AH -> connection ) ;\n ConnectDatabase ( ( Archive * ) clone , connstr . data , pghost , pgport , username , TRI_NO ) ;\n termPQExpBuffer ( & connstr ) ;\n }\n ( clone -> ClonePtr ) ( clone ) ;\n Assert ( clone -> connection != NULL ) ;\n return clone ;\n }"}
{"idx": 2305, "target": 0, "func": "TSVIO TSVConnReadVIOGet ( TSVConn connp ) {\n sdk_assert ( sdk_sanity_check_iocore_structure ( connp ) == TS_SUCCESS ) ;\n VConnection * vc = ( VConnection * ) connp ;\n TSVIO data ;\n if ( vc -> get_data ( TS_API_DATA_READ_VIO , & data ) ) {\n return data ;\n }\n return nullptr ;\n }"}
{"idx": 2306, "target": 0, "func": "static int read_application_extension ( Gif_Context * gfc , Gif_Reader * grr ) {\n Gif_Stream * gfs = gfc -> stream ;\n uint8_t buffer [ GIF_MAX_BLOCK + 1 ] ;\n uint8_t len = gifgetbyte ( grr ) ;\n gifgetblock ( buffer , len , grr ) ;\n if ( len == 11 && ( memcmp ( buffer , \"NETSCAPE2.0\" , 11 ) == 0 || memcmp ( buffer , \"ANIMEXTS1.0\" , 11 ) == 0 ) ) {\n len = gifgetbyte ( grr ) ;\n if ( len == 3 ) {\n gifgetbyte ( grr ) ;\n gfs -> loopcount = gifgetunsigned ( grr ) ;\n len = gifgetbyte ( grr ) ;\n if ( len ) gif_read_error ( gfc , 1 , \"bad loop extension\" ) ;\n }\n else gif_read_error ( gfc , 1 , \"bad loop extension\" ) ;\n while ( len > 0 ) {\n gifgetblock ( buffer , len , grr ) ;\n len = gifgetbyte ( grr ) ;\n }\n return 1 ;\n }\n else return read_unknown_extension ( gfc , grr , 0xFF , ( char * ) buffer , len ) ;\n }"}
{"idx": 2307, "target": 0, "func": "static int try_shrink_lower ( MAIN_WINDOW_REC * window , int count ) {\n MAIN_WINDOW_REC * shrink_win ;\n shrink_win = mainwindows_find_lower ( window ) ;\n if ( shrink_win != NULL ) {\n int ok ;\n GSList * shrink_list , * tmp ;\n MAIN_WINDOW_REC * win ;\n ok = TRUE ;\n shrink_list = mainwindows_get_line ( shrink_win ) ;\n for ( tmp = shrink_list ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n win = tmp -> data ;\n if ( MAIN_WINDOW_TEXT_HEIGHT ( win ) - count < WINDOW_MIN_SIZE ) {\n ok = FALSE ;\n break ;\n }\n }\n if ( ok ) {\n GSList * grow_list ;\n grow_list = mainwindows_get_line ( window ) ;\n for ( tmp = shrink_list ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n win = tmp -> data ;\n win -> first_line += count ;\n }\n for ( tmp = grow_list ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n win = tmp -> data ;\n win -> last_line += count ;\n }\n mainwindows_resize_two ( grow_list , shrink_list , count ) ;\n g_slist_free ( grow_list ) ;\n }\n g_slist_free ( shrink_list ) ;\n return ok ;\n }\n return FALSE ;\n }"}
{"idx": 2308, "target": 0, "func": "static struct object_entry * parse_treeish_dataref ( const char * * p ) {\n unsigned char sha1 [ 20 ] ;\n struct object_entry * e ;\n if ( * * p == ':' ) {\n e = find_mark ( parse_mark_ref_space ( p ) ) ;\n if ( ! e ) die ( \"Unknown mark: %s\" , command_buf . buf ) ;\n hashcpy ( sha1 , e -> idx . sha1 ) ;\n }\n else {\n if ( get_sha1_hex ( * p , sha1 ) ) die ( \"Invalid dataref: %s\" , command_buf . buf ) ;\n e = find_object ( sha1 ) ;\n * p += 40 ;\n if ( * ( * p ) ++ != ' ' ) die ( \"Missing space after tree-ish: %s\" , command_buf . buf ) ;\n }\n while ( ! e || e -> type != OBJ_TREE ) e = dereference ( e , sha1 ) ;\n return e ;\n }"}
{"idx": 2309, "target": 0, "func": "static void idct8_sse2 ( __m128i * in ) {\n const __m128i rounding = _mm_set1_epi32 ( DCT_CONST_ROUNDING ) ;\n const __m128i stg1_0 = pair_set_epi16 ( cospi_28_64 , - cospi_4_64 ) ;\n const __m128i stg1_1 = pair_set_epi16 ( cospi_4_64 , cospi_28_64 ) ;\n const __m128i stg1_2 = pair_set_epi16 ( - cospi_20_64 , cospi_12_64 ) ;\n const __m128i stg1_3 = pair_set_epi16 ( cospi_12_64 , cospi_20_64 ) ;\n const __m128i stg2_0 = pair_set_epi16 ( cospi_16_64 , cospi_16_64 ) ;\n const __m128i stg2_1 = pair_set_epi16 ( cospi_16_64 , - cospi_16_64 ) ;\n const __m128i stg2_2 = pair_set_epi16 ( cospi_24_64 , - cospi_8_64 ) ;\n const __m128i stg2_3 = pair_set_epi16 ( cospi_8_64 , cospi_24_64 ) ;\n __m128i in0 , in1 , in2 , in3 , in4 , in5 , in6 , in7 ;\n __m128i stp1_0 , stp1_1 , stp1_2 , stp1_3 , stp1_4 , stp1_5 , stp1_6 , stp1_7 ;\n __m128i stp2_0 , stp2_1 , stp2_2 , stp2_3 , stp2_4 , stp2_5 , stp2_6 , stp2_7 ;\n __m128i tmp0 , tmp1 , tmp2 , tmp3 , tmp4 , tmp5 , tmp6 , tmp7 ;\n TRANSPOSE_8X8 ( in [ 0 ] , in [ 1 ] , in [ 2 ] , in [ 3 ] , in [ 4 ] , in [ 5 ] , in [ 6 ] , in [ 7 ] , in0 , in1 , in2 , in3 , in4 , in5 , in6 , in7 ) ;\n IDCT8 ( in0 , in1 , in2 , in3 , in4 , in5 , in6 , in7 , in [ 0 ] , in [ 1 ] , in [ 2 ] , in [ 3 ] , in [ 4 ] , in [ 5 ] , in [ 6 ] , in [ 7 ] ) ;\n }"}
{"idx": 2310, "target": 0, "func": "void hb_set_invert ( hb_set_t * set ) {\n set -> invert ( ) ;\n }"}
{"idx": 2311, "target": 0, "func": "static void vga_draw_line4 ( VGACommonState * vga , uint8_t * d , uint32_t addr , int width ) {\n uint32_t plane_mask , data , v , * palette ;\n int x ;\n palette = vga -> last_palette ;\n plane_mask = mask16 [ vga -> ar [ VGA_ATC_PLANE_ENABLE ] & 0xf ] ;\n width >>= 3 ;\n for ( x = 0 ;\n x < width ;\n x ++ ) {\n data = vga_read_dword_le ( vga , addr ) ;\n data &= plane_mask ;\n v = expand4 [ GET_PLANE ( data , 0 ) ] ;\n v |= expand4 [ GET_PLANE ( data , 1 ) ] << 1 ;\n v |= expand4 [ GET_PLANE ( data , 2 ) ] << 2 ;\n v |= expand4 [ GET_PLANE ( data , 3 ) ] << 3 ;\n ( ( uint32_t * ) d ) [ 0 ] = palette [ v >> 28 ] ;\n ( ( uint32_t * ) d ) [ 1 ] = palette [ ( v >> 24 ) & 0xf ] ;\n ( ( uint32_t * ) d ) [ 2 ] = palette [ ( v >> 20 ) & 0xf ] ;\n ( ( uint32_t * ) d ) [ 3 ] = palette [ ( v >> 16 ) & 0xf ] ;\n ( ( uint32_t * ) d ) [ 4 ] = palette [ ( v >> 12 ) & 0xf ] ;\n ( ( uint32_t * ) d ) [ 5 ] = palette [ ( v >> 8 ) & 0xf ] ;\n ( ( uint32_t * ) d ) [ 6 ] = palette [ ( v >> 4 ) & 0xf ] ;\n ( ( uint32_t * ) d ) [ 7 ] = palette [ ( v >> 0 ) & 0xf ] ;\n d += 32 ;\n addr += 4 ;\n }\n }"}
{"idx": 2312, "target": 1, "func": "static int ipvideo_decode_block_opcode_0xF ( IpvideoContext * s ) {\n int x , y ;\n unsigned char sample [ 2 ] ;\n sample [ 0 ] = bytestream2_get_byte ( & s -> stream_ptr ) ;\n sample [ 1 ] = bytestream2_get_byte ( & s -> stream_ptr ) ;\n for ( y = 0 ;\n y < 8 ;\n y ++ ) {\n for ( x = 0 ;\n x < 8 ;\n x += 2 ) {\n * s -> pixel_ptr ++ = sample [ y & 1 ] ;\n * s -> pixel_ptr ++ = sample [ ! ( y & 1 ) ] ;\n }\n s -> pixel_ptr += s -> line_inc ;\n }\n return 0 ;\n }"}
{"idx": 2313, "target": 0, "func": "static struct im_connection * purple_ic_by_gc ( PurpleConnection * gc ) {\n return purple_ic_by_pa ( purple_connection_get_account ( gc ) ) ;\n }"}
{"idx": 2314, "target": 0, "func": "static uchar * acl_entry_get_key ( acl_entry * entry , size_t * length , my_bool not_used __attribute__ ( ( unused ) ) ) {\n * length = ( uint ) entry -> length ;\n return ( uchar * ) entry -> key ;\n }"}
{"idx": 2315, "target": 0, "func": "static enum PixelFormat ffmpeg_GetFormat ( AVCodecContext * p_context , const enum PixelFormat * pi_fmt ) {\n decoder_t * p_dec = p_context -> opaque ;\n decoder_sys_t * p_sys = p_dec -> p_sys ;\n vlc_va_t * p_va = p_sys -> p_va ;\n if ( p_va != NULL ) vlc_va_Delete ( p_va ) ;\n bool can_hwaccel = false ;\n for ( size_t i = 0 ;\n pi_fmt [ i ] != AV_PIX_FMT_NONE ;\n i ++ ) {\n const AVPixFmtDescriptor * dsc = av_pix_fmt_desc_get ( pi_fmt [ i ] ) ;\n if ( dsc == NULL ) continue ;\n bool hwaccel = ( dsc -> flags & AV_PIX_FMT_FLAG_HWACCEL ) != 0 ;\n msg_Dbg ( p_dec , \"available %sware decoder output format %d (%s)\" , hwaccel ? \"hard\" : \"soft\" , pi_fmt [ i ] , dsc -> name ) ;\n if ( hwaccel ) can_hwaccel = true ;\n }\n if ( ! can_hwaccel ) goto end ;\n if ( p_context -> profile != FF_PROFILE_UNKNOWN ) p_dec -> fmt_in . i_profile = p_context -> profile ;\n if ( p_context -> level != FF_LEVEL_UNKNOWN ) p_dec -> fmt_in . i_level = p_context -> level ;\n p_va = vlc_va_New ( VLC_OBJECT ( p_dec ) , p_context , & p_dec -> fmt_in ) ;\n if ( p_va == NULL ) goto end ;\n for ( size_t i = 0 ;\n pi_fmt [ i ] != AV_PIX_FMT_NONE ;\n i ++ ) {\n if ( p_va -> pix_fmt != pi_fmt [ i ] ) continue ;\n if ( p_context -> coded_width > 0 && p_context -> coded_height > 0 && vlc_va_Setup ( p_va , & p_context -> hwaccel_context , & p_dec -> fmt_out . video . i_chroma , p_context -> coded_width , p_context -> coded_height ) ) {\n msg_Err ( p_dec , \"acceleration setup failure\" ) ;\n break ;\n }\n if ( p_va -> description ) msg_Info ( p_dec , \"Using %s for hardware decoding.\" , p_va -> description ) ;\n p_sys -> b_direct_rendering = false ;\n p_sys -> p_va = p_va ;\n p_context -> draw_horiz_band = NULL ;\n return pi_fmt [ i ] ;\n }\n vlc_va_Delete ( p_va ) ;\n end : p_sys -> p_va = NULL ;\n return avcodec_default_get_format ( p_context , pi_fmt ) ;\n }"}
{"idx": 2316, "target": 0, "func": "static qcelp_packet_rate determine_bitrate ( AVCodecContext * avctx , const int buf_size , const uint8_t * * buf ) {\n qcelp_packet_rate bitrate ;\n if ( ( bitrate = buf_size2bitrate ( buf_size ) ) >= 0 ) {\n if ( bitrate > * * buf ) {\n QCELPContext * q = avctx -> priv_data ;\n if ( ! q -> warned_buf_mismatch_bitrate ) {\n av_log ( avctx , AV_LOG_WARNING , \"Claimed bitrate and buffer size mismatch.\\n\" ) ;\n q -> warned_buf_mismatch_bitrate = 1 ;\n }\n bitrate = * * buf ;\n }\n else if ( bitrate < * * buf ) {\n av_log ( avctx , AV_LOG_ERROR , \"Buffer is too small for the claimed bitrate.\\n\" ) ;\n return I_F_Q ;\n }\n ( * buf ) ++ ;\n }\n else if ( ( bitrate = buf_size2bitrate ( buf_size + 1 ) ) >= 0 ) {\n av_log ( avctx , AV_LOG_WARNING , \"Bitrate byte is missing, guessing the bitrate from packet size.\\n\" ) ;\n }\n else return I_F_Q ;\n if ( bitrate == SILENCE ) {\n av_log_ask_for_sample ( avctx , \"'Blank frame handling is experimental.\" ) ;\n }\n return bitrate ;\n }"}
{"idx": 2317, "target": 0, "func": "static inline int64_t systick_scale ( nvic_state * s ) {\n if ( s -> systick . control & SYSTICK_CLKSOURCE ) return system_clock_scale ;\n else return 1000 ;\n }"}
{"idx": 2318, "target": 0, "func": "static int dissect_pvfs2_io_response ( tvbuff_t * tvb , proto_tree * tree , int offset ) {\n return dissect_pvfs_uint64 ( tvb , tree , offset , hf_pvfs_size , NULL ) ;\n }"}
{"idx": 2319, "target": 0, "func": "static int dissect_h245_INTEGER_0_524287 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 524287U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 2320, "target": 1, "func": "static int dissect_h225_Setup_UUIE ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 466 \"./asn1/h225/h225.cnf\" h225_packet_info * h225_pi ;\n contains_faststart = FALSE ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_Setup_UUIE , Setup_UUIE_sequence ) ;\n # line 471 \"./asn1/h225/h225.cnf\" h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> cs_type = H225_SETUP ;\n if ( contains_faststart == TRUE ) g_snprintf ( h225_pi -> frame_label , 50 , \"%s OLC (%s)\" , val_to_str ( h225_pi -> cs_type , T_h323_message_body_vals , \"<unknown>\" ) , h225_pi -> frame_label ) ;\n else g_snprintf ( h225_pi -> frame_label , 50 , \"%s\" , val_to_str ( h225_pi -> cs_type , T_h323_message_body_vals , \"<unknown>\" ) ) ;\n }\n return offset ;\n }"}
{"idx": 2321, "target": 0, "func": "static struct cgroup_process_info * lxc_cgroup_process_info_getx ( const char * proc_pid_cgroup_str , struct cgroup_meta_data * meta ) {\n struct cgroup_process_info * result = NULL ;\n FILE * proc_pid_cgroup = NULL ;\n char * line = NULL ;\n size_t sz = 0 ;\n int saved_errno = 0 ;\n struct cgroup_process_info * * cptr = & result ;\n struct cgroup_process_info * entry = NULL ;\n proc_pid_cgroup = fopen_cloexec ( proc_pid_cgroup_str , \"r\" ) ;\n if ( ! proc_pid_cgroup ) return NULL ;\n while ( getline ( & line , & sz , proc_pid_cgroup ) != - 1 ) {\n char * colon1 ;\n char * colon2 ;\n char * endptr ;\n int hierarchy_number ;\n struct cgroup_hierarchy * h = NULL ;\n if ( ! line [ 0 ] ) continue ;\n if ( line [ strlen ( line ) - 1 ] == '\\n' ) line [ strlen ( line ) - 1 ] = '\\0' ;\n colon1 = strchr ( line , ':' ) ;\n if ( ! colon1 ) continue ;\n * colon1 ++ = '\\0' ;\n colon2 = strchr ( colon1 , ':' ) ;\n if ( ! colon2 ) continue ;\n * colon2 ++ = '\\0' ;\n endptr = NULL ;\n hierarchy_number = strtoul ( line , & endptr , 10 ) ;\n if ( ! endptr || * endptr ) continue ;\n if ( hierarchy_number > meta -> maximum_hierarchy ) {\n errno = EAGAIN ;\n goto out_error ;\n }\n h = meta -> hierarchies [ hierarchy_number ] ;\n if ( ! h ) {\n errno = EAGAIN ;\n goto out_error ;\n }\n if ( ! h -> used ) continue ;\n entry = calloc ( 1 , sizeof ( struct cgroup_process_info ) ) ;\n if ( ! entry ) goto out_error ;\n entry -> meta_ref = lxc_cgroup_get_meta ( meta ) ;\n entry -> hierarchy = h ;\n entry -> cgroup_path = strdup ( colon2 ) ;\n if ( ! entry -> cgroup_path ) goto out_error ;\n * cptr = entry ;\n cptr = & entry -> next ;\n entry = NULL ;\n }\n fclose ( proc_pid_cgroup ) ;\n free ( line ) ;\n return result ;\n out_error : saved_errno = errno ;\n if ( proc_pid_cgroup ) fclose ( proc_pid_cgroup ) ;\n lxc_cgroup_process_info_free ( result ) ;\n lxc_cgroup_process_info_free ( entry ) ;\n free ( line ) ;\n errno = saved_errno ;\n return NULL ;\n }"}
{"idx": 2322, "target": 0, "func": "int vp9_rc_pick_q_and_bounds ( const VP9_COMP * cpi , int * bottom_index , int * top_index ) {\n int q ;\n if ( cpi -> oxcf . pass == 0 ) {\n if ( cpi -> oxcf . rc_mode == VPX_CBR ) q = rc_pick_q_and_bounds_one_pass_cbr ( cpi , bottom_index , top_index ) ;\n else q = rc_pick_q_and_bounds_one_pass_vbr ( cpi , bottom_index , top_index ) ;\n }\n else {\n q = rc_pick_q_and_bounds_two_pass ( cpi , bottom_index , top_index ) ;\n }\n if ( cpi -> sf . use_nonrd_pick_mode ) {\n if ( cpi -> sf . force_frame_boost == 1 ) q -= cpi -> sf . max_delta_qindex ;\n if ( q < * bottom_index ) * bottom_index = q ;\n else if ( q > * top_index ) * top_index = q ;\n }\n return q ;\n }"}
{"idx": 2323, "target": 0, "func": "static int dissect_h225_RegistrationConfirm ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_RegistrationConfirm , RegistrationConfirm_sequence ) ;\n return offset ;\n }"}
{"idx": 2324, "target": 0, "func": "static void U_CALLCONV _UTF16LEToUnicodeWithOffsets ( UConverterToUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n UConverter * cnv ;\n const uint8_t * source ;\n UChar * target ;\n int32_t * offsets ;\n uint32_t targetCapacity , length , count , sourceIndex ;\n UChar c , trail ;\n if ( pArgs -> converter -> mode < 8 ) {\n _UTF16ToUnicodeWithOffsets ( pArgs , pErrorCode ) ;\n return ;\n }\n cnv = pArgs -> converter ;\n source = ( const uint8_t * ) pArgs -> source ;\n length = ( int32_t ) ( ( const uint8_t * ) pArgs -> sourceLimit - source ) ;\n if ( length <= 0 && cnv -> toUnicodeStatus == 0 ) {\n return ;\n }\n target = pArgs -> target ;\n if ( target >= pArgs -> targetLimit ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n return ;\n }\n targetCapacity = ( uint32_t ) ( pArgs -> targetLimit - pArgs -> target ) ;\n offsets = pArgs -> offsets ;\n sourceIndex = 0 ;\n c = 0 ;\n if ( cnv -> toUnicodeStatus != 0 ) {\n cnv -> toUBytes [ 0 ] = ( uint8_t ) cnv -> toUnicodeStatus ;\n cnv -> toULength = 1 ;\n cnv -> toUnicodeStatus = 0 ;\n }\n if ( ( count = cnv -> toULength ) != 0 ) {\n uint8_t * p = cnv -> toUBytes ;\n do {\n p [ count ++ ] = * source ++ ;\n ++ sourceIndex ;\n -- length ;\n if ( count == 2 ) {\n c = ( ( UChar ) p [ 1 ] << 8 ) | p [ 0 ] ;\n if ( U16_IS_SINGLE ( c ) ) {\n * target ++ = c ;\n if ( offsets != NULL ) {\n * offsets ++ = - 1 ;\n }\n -- targetCapacity ;\n count = 0 ;\n c = 0 ;\n break ;\n }\n else if ( U16_IS_SURROGATE_LEAD ( c ) ) {\n c = 0 ;\n }\n else {\n break ;\n }\n }\n else if ( count == 4 ) {\n c = ( ( UChar ) p [ 1 ] << 8 ) | p [ 0 ] ;\n trail = ( ( UChar ) p [ 3 ] << 8 ) | p [ 2 ] ;\n if ( U16_IS_TRAIL ( trail ) ) {\n * target ++ = c ;\n if ( targetCapacity >= 2 ) {\n * target ++ = trail ;\n if ( offsets != NULL ) {\n * offsets ++ = - 1 ;\n * offsets ++ = - 1 ;\n }\n targetCapacity -= 2 ;\n }\n else {\n targetCapacity = 0 ;\n cnv -> UCharErrorBuffer [ 0 ] = trail ;\n cnv -> UCharErrorBufferLength = 1 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n count = 0 ;\n c = 0 ;\n break ;\n }\n else {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n if ( ( ( const uint8_t * ) pArgs -> source - source ) >= 2 ) {\n source -= 2 ;\n }\n else {\n cnv -> toUnicodeStatus = 0x100 | p [ 2 ] ;\n -- source ;\n }\n cnv -> toULength = 2 ;\n pArgs -> source = ( const char * ) source ;\n pArgs -> target = target ;\n pArgs -> offsets = offsets ;\n return ;\n }\n }\n }\n while ( length > 0 ) ;\n cnv -> toULength = ( int8_t ) count ;\n }\n count = 2 * targetCapacity ;\n if ( count > length ) {\n count = length & ~ 1 ;\n }\n if ( c == 0 && count > 0 ) {\n length -= count ;\n count >>= 1 ;\n targetCapacity -= count ;\n if ( offsets == NULL ) {\n do {\n c = ( ( UChar ) source [ 1 ] << 8 ) | source [ 0 ] ;\n source += 2 ;\n if ( U16_IS_SINGLE ( c ) ) {\n * target ++ = c ;\n }\n else if ( U16_IS_SURROGATE_LEAD ( c ) && count >= 2 && U16_IS_TRAIL ( trail = ( ( UChar ) source [ 1 ] << 8 ) | source [ 0 ] ) ) {\n source += 2 ;\n -- count ;\n * target ++ = c ;\n * target ++ = trail ;\n }\n else {\n break ;\n }\n }\n while ( -- count > 0 ) ;\n }\n else {\n do {\n c = ( ( UChar ) source [ 1 ] << 8 ) | source [ 0 ] ;\n source += 2 ;\n if ( U16_IS_SINGLE ( c ) ) {\n * target ++ = c ;\n * offsets ++ = sourceIndex ;\n sourceIndex += 2 ;\n }\n else if ( U16_IS_SURROGATE_LEAD ( c ) && count >= 2 && U16_IS_TRAIL ( trail = ( ( UChar ) source [ 1 ] << 8 ) | source [ 0 ] ) ) {\n source += 2 ;\n -- count ;\n * target ++ = c ;\n * target ++ = trail ;\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ;\n sourceIndex += 4 ;\n }\n else {\n break ;\n }\n }\n while ( -- count > 0 ) ;\n }\n if ( count == 0 ) {\n c = 0 ;\n }\n else {\n length += 2 * ( count - 1 ) ;\n targetCapacity += count ;\n }\n }\n if ( c != 0 ) {\n cnv -> toUBytes [ 0 ] = ( uint8_t ) c ;\n cnv -> toUBytes [ 1 ] = ( uint8_t ) ( c >> 8 ) ;\n cnv -> toULength = 2 ;\n if ( U16_IS_SURROGATE_LEAD ( c ) ) {\n if ( length >= 2 ) {\n if ( U16_IS_TRAIL ( trail = ( ( UChar ) source [ 1 ] << 8 ) | source [ 0 ] ) ) {\n source += 2 ;\n length -= 2 ;\n * target ++ = c ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n cnv -> UCharErrorBuffer [ 0 ] = trail ;\n cnv -> UCharErrorBufferLength = 1 ;\n cnv -> toULength = 0 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n else {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n else {\n }\n }\n else {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n if ( U_SUCCESS ( * pErrorCode ) ) {\n if ( length > 0 ) {\n if ( targetCapacity == 0 ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n else {\n cnv -> toUBytes [ cnv -> toULength ++ ] = * source ++ ;\n }\n }\n }\n pArgs -> source = ( const char * ) source ;\n pArgs -> target = target ;\n pArgs -> offsets = offsets ;\n }"}
{"idx": 2325, "target": 0, "func": "int fz_lookup_rendering_intent ( const char * name ) {\n int i ;\n for ( i = 0 ;\n i < nelem ( fz_intent_names ) ;\n i ++ ) if ( ! strcmp ( name , fz_intent_names [ i ] ) ) return i ;\n return FZ_RI_RELATIVE_COLORIMETRIC ;\n }"}
{"idx": 2326, "target": 0, "func": "u_int ppp_bsdos_if_print ( netdissect_options * ndo _U_ , const struct pcap_pkthdr * h _U_ , register const u_char * p _U_ ) {\n register int hdrlength ;\n # ifdef __bsdi__ register u_int length = h -> len ;\n register u_int caplen = h -> caplen ;\n uint16_t ptype ;\n const u_char * q ;\n int i ;\n if ( caplen < PPP_BSDI_HDRLEN ) {\n ND_PRINT ( ( ndo , \"[|ppp]\" ) ) ;\n return ( caplen ) }\n hdrlength = 0 ;\n # if 0 if ( p [ 0 ] == PPP_ADDRESS && p [ 1 ] == PPP_CONTROL ) {\n if ( ndo -> ndo_eflag ) ND_PRINT ( ( ndo , \"%02x %02x \" , p [ 0 ] , p [ 1 ] ) ) ;\n p += 2 ;\n hdrlength = 2 ;\n }\n if ( ndo -> ndo_eflag ) ND_PRINT ( ( ndo , \"%d \" , length ) ) ;\n if ( * p & 01 ) {\n ptype = * p ;\n if ( ndo -> ndo_eflag ) ND_PRINT ( ( ndo , \"%02x \" , ptype ) ) ;\n p ++ ;\n hdrlength += 1 ;\n }\n else {\n ptype = EXTRACT_16BITS ( p ) ;\n if ( ndo -> ndo_eflag ) ND_PRINT ( ( ndo , \"%04x \" , ptype ) ) ;\n p += 2 ;\n hdrlength += 2 ;\n }\n # else ptype = 0 ;\n if ( ndo -> ndo_eflag ) ND_PRINT ( ( ndo , \"%c \" , p [ SLC_DIR ] ? 'O' : 'I' ) ) ;\n if ( p [ SLC_LLHL ] ) {\n struct ppp_header * ph ;\n q = p + SLC_BPFHDRLEN ;\n ph = ( struct ppp_header * ) q ;\n if ( ph -> phdr_addr == PPP_ADDRESS && ph -> phdr_ctl == PPP_CONTROL ) {\n if ( ndo -> ndo_eflag ) ND_PRINT ( ( ndo , \"%02x %02x \" , q [ 0 ] , q [ 1 ] ) ) ;\n ptype = EXTRACT_16BITS ( & ph -> phdr_type ) ;\n if ( ndo -> ndo_eflag && ( ptype == PPP_VJC || ptype == PPP_VJNC ) ) {\n ND_PRINT ( ( ndo , \"%s \" , tok2str ( ppptype2str , \"proto-#%d\" , ptype ) ) ) ;\n }\n }\n else {\n if ( ndo -> ndo_eflag ) {\n ND_PRINT ( ( ndo , \"LLH=[\" ) ) ;\n for ( i = 0 ;\n i < p [ SLC_LLHL ] ;\n i ++ ) ND_PRINT ( ( ndo , \"%02x\" , q [ i ] ) ) ;\n ND_PRINT ( ( ndo , \"] \" ) ) ;\n }\n }\n }\n if ( ndo -> ndo_eflag ) ND_PRINT ( ( ndo , \"%d \" , length ) ) ;\n if ( p [ SLC_CHL ] ) {\n q = p + SLC_BPFHDRLEN + p [ SLC_LLHL ] ;\n switch ( ptype ) {\n case PPP_VJC : ptype = vjc_print ( ndo , q , ptype ) ;\n hdrlength = PPP_BSDI_HDRLEN ;\n p += hdrlength ;\n switch ( ptype ) {\n case PPP_IP : ip_print ( ndo , p , length ) ;\n break ;\n case PPP_IPV6 : ip6_print ( ndo , p , length ) ;\n break ;\n case PPP_MPLS_UCAST : case PPP_MPLS_MCAST : mpls_print ( ndo , p , length ) ;\n break ;\n }\n goto printx ;\n case PPP_VJNC : ptype = vjc_print ( ndo , q , ptype ) ;\n hdrlength = PPP_BSDI_HDRLEN ;\n p += hdrlength ;\n switch ( ptype ) {\n case PPP_IP : ip_print ( ndo , p , length ) ;\n break ;\n case PPP_IPV6 : ip6_print ( ndo , p , length ) ;\n break ;\n case PPP_MPLS_UCAST : case PPP_MPLS_MCAST : mpls_print ( ndo , p , length ) ;\n break ;\n }\n goto printx ;\n default : if ( ndo -> ndo_eflag ) {\n ND_PRINT ( ( ndo , \"CH=[\" ) ) ;\n for ( i = 0 ;\n i < p [ SLC_LLHL ] ;\n i ++ ) ND_PRINT ( ( ndo , \"%02x\" , q [ i ] ) ) ;\n ND_PRINT ( ( ndo , \"] \" ) ) ;\n }\n break ;\n }\n }\n hdrlength = PPP_BSDI_HDRLEN ;\n # endif length -= hdrlength ;\n p += hdrlength ;\n switch ( ptype ) {\n case PPP_IP : ip_print ( p , length ) ;\n break ;\n case PPP_IPV6 : ip6_print ( ndo , p , length ) ;\n break ;\n case PPP_MPLS_UCAST : case PPP_MPLS_MCAST : mpls_print ( ndo , p , length ) ;\n break ;\n default : ND_PRINT ( ( ndo , \"%s \" , tok2str ( ppptype2str , \"unknown PPP protocol (0x%04x)\" , ptype ) ) ) ;\n }\n printx : # else hdrlength = 0 ;\n # endif return ( hdrlength ) ;\n }"}
{"idx": 2327, "target": 0, "func": "int dissect_h245_TransportAddress ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_TransportAddress , TransportAddress_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 2328, "target": 0, "func": "static void dissect_zcl_color_control_move_hue_saturation ( tvbuff_t * tvb , proto_tree * tree , guint * offset , gboolean enhanced ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_move_mode , tvb , * offset , 1 , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n if ( enhanced ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_enhanced_rate , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n }\n else {\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_rate , tvb , * offset , 1 , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n }\n }"}
{"idx": 2329, "target": 0, "func": "const gx_device * gs_getdefaultdevice ( void ) {\n return gs_getdefaultlibdevice ( NULL ) ;\n }"}
{"idx": 2330, "target": 0, "func": "static int selinux_setprocattr ( struct task_struct * p , char * name , void * value , size_t size ) {\n struct task_security_struct * tsec ;\n struct cred * new ;\n u32 sid = 0 , ptsid ;\n int error ;\n char * str = value ;\n if ( current != p ) {\n return - EACCES ;\n }\n if ( ! strcmp ( name , \"exec\" ) ) error = current_has_perm ( p , PROCESS__SETEXEC ) ;\n else if ( ! strcmp ( name , \"fscreate\" ) ) error = current_has_perm ( p , PROCESS__SETFSCREATE ) ;\n else if ( ! strcmp ( name , \"keycreate\" ) ) error = current_has_perm ( p , PROCESS__SETKEYCREATE ) ;\n else if ( ! strcmp ( name , \"sockcreate\" ) ) error = current_has_perm ( p , PROCESS__SETSOCKCREATE ) ;\n else if ( ! strcmp ( name , \"current\" ) ) error = current_has_perm ( p , PROCESS__SETCURRENT ) ;\n else error = - EINVAL ;\n if ( error ) return error ;\n if ( size && str [ 0 ] && str [ 0 ] != '\\n' ) {\n if ( str [ size - 1 ] == '\\n' ) {\n str [ size - 1 ] = 0 ;\n size -- ;\n }\n error = security_context_to_sid ( value , size , & sid , GFP_KERNEL ) ;\n if ( error == - EINVAL && ! strcmp ( name , \"fscreate\" ) ) {\n if ( ! capable ( CAP_MAC_ADMIN ) ) {\n struct audit_buffer * ab ;\n size_t audit_size ;\n if ( str [ size - 1 ] == '\\0' ) audit_size = size - 1 ;\n else audit_size = size ;\n ab = audit_log_start ( current -> audit_context , GFP_ATOMIC , AUDIT_SELINUX_ERR ) ;\n audit_log_format ( ab , \"op=fscreate invalid_context=\" ) ;\n audit_log_n_untrustedstring ( ab , value , audit_size ) ;\n audit_log_end ( ab ) ;\n return error ;\n }\n error = security_context_to_sid_force ( value , size , & sid ) ;\n }\n if ( error ) return error ;\n }\n new = prepare_creds ( ) ;\n if ( ! new ) return - ENOMEM ;\n tsec = new -> security ;\n if ( ! strcmp ( name , \"exec\" ) ) {\n tsec -> exec_sid = sid ;\n }\n else if ( ! strcmp ( name , \"fscreate\" ) ) {\n tsec -> create_sid = sid ;\n }\n else if ( ! strcmp ( name , \"keycreate\" ) ) {\n error = may_create_key ( sid , p ) ;\n if ( error ) goto abort_change ;\n tsec -> keycreate_sid = sid ;\n }\n else if ( ! strcmp ( name , \"sockcreate\" ) ) {\n tsec -> sockcreate_sid = sid ;\n }\n else if ( ! strcmp ( name , \"current\" ) ) {\n error = - EINVAL ;\n if ( sid == 0 ) goto abort_change ;\n error = - EPERM ;\n if ( ! current_is_single_threaded ( ) ) {\n error = security_bounded_transition ( tsec -> sid , sid ) ;\n if ( error ) goto abort_change ;\n }\n error = avc_has_perm ( tsec -> sid , sid , SECCLASS_PROCESS , PROCESS__DYNTRANSITION , NULL ) ;\n if ( error ) goto abort_change ;\n ptsid = ptrace_parent_sid ( p ) ;\n if ( ptsid != 0 ) {\n error = avc_has_perm ( ptsid , sid , SECCLASS_PROCESS , PROCESS__PTRACE , NULL ) ;\n if ( error ) goto abort_change ;\n }\n tsec -> sid = sid ;\n }\n else {\n error = - EINVAL ;\n goto abort_change ;\n }\n commit_creds ( new ) ;\n return size ;\n abort_change : abort_creds ( new ) ;\n return error ;\n }"}
{"idx": 2331, "target": 0, "func": "static int dissect_h245_H223MultiplexReconfiguration ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_H223MultiplexReconfiguration , H223MultiplexReconfiguration_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 2332, "target": 0, "func": "static int init_dimensions ( H264Context * h ) {\n int width = h -> width - ( h -> sps . crop_right + h -> sps . crop_left ) ;\n int height = h -> height - ( h -> sps . crop_top + h -> sps . crop_bottom ) ;\n av_assert0 ( h -> sps . crop_right + h -> sps . crop_left < ( unsigned ) h -> width ) ;\n av_assert0 ( h -> sps . crop_top + h -> sps . crop_bottom < ( unsigned ) h -> height ) ;\n if ( ! h -> sps . crop && FFALIGN ( h -> avctx -> width , 16 ) == h -> width && FFALIGN ( h -> avctx -> height , 16 ) == h -> height ) {\n width = h -> avctx -> width ;\n height = h -> avctx -> height ;\n }\n if ( width <= 0 || height <= 0 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"Invalid cropped dimensions: %dx%d.\\n\" , width , height ) ;\n if ( h -> avctx -> err_recognition & AV_EF_EXPLODE ) return AVERROR_INVALIDDATA ;\n av_log ( h -> avctx , AV_LOG_WARNING , \"Ignoring cropping information.\\n\" ) ;\n h -> sps . crop_bottom = h -> sps . crop_top = h -> sps . crop_right = h -> sps . crop_left = 0 ;\n h -> sps . crop = 0 ;\n width = h -> width ;\n height = h -> height ;\n }\n h -> avctx -> coded_width = h -> width ;\n h -> avctx -> coded_height = h -> height ;\n h -> avctx -> width = width ;\n h -> avctx -> height = height ;\n return 0 ;\n }"}
{"idx": 2333, "target": 0, "func": "static void test_frm_bug ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND my_bind [ 2 ] ;\n MYSQL_RES * result ;\n MYSQL_ROW row ;\n FILE * test_file ;\n char data_dir [ FN_REFLEN ] ;\n char test_frm [ FN_REFLEN ] ;\n int rc ;\n myheader ( \"test_frm_bug\" ) ;\n mysql_autocommit ( mysql , TRUE ) ;\n rc = mysql_query ( mysql , \"drop table if exists test_frm_bug\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"flush tables\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"show variables like 'datadir'\" ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 0 ] . buffer = data_dir ;\n my_bind [ 0 ] . buffer_length = FN_REFLEN ;\n my_bind [ 1 ] = my_bind [ 0 ] ;\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n data directory: %s\" , data_dir ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n strxmov ( test_frm , data_dir , \"/\" , current_db , \"/\" , \"test_frm_bug.frm\" , NullS ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n test_frm: %s\" , test_frm ) ;\n if ( ! ( test_file = my_fopen ( test_frm , ( int ) ( O_RDWR | O_CREAT ) , MYF ( MY_WME ) ) ) ) {\n fprintf ( stdout , \"\\n ERROR: my_fopen failed for '%s'\" , test_frm ) ;\n fprintf ( stdout , \"\\n test cancelled\" ) ;\n exit ( 1 ) ;\n }\n if ( ! opt_silent ) fprintf ( test_file , \"this is a junk file for test\" ) ;\n rc = mysql_query ( mysql , \"SHOW TABLE STATUS like 'test_frm_bug'\" ) ;\n myquery ( rc ) ;\n result = mysql_store_result ( mysql ) ;\n mytest ( result ) ;\n rc = my_process_result_set ( result ) ;\n DIE_UNLESS ( rc == 1 ) ;\n mysql_data_seek ( result , 0 ) ;\n row = mysql_fetch_row ( result ) ;\n mytest ( row ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n Comment: %s\" , row [ 17 ] ) ;\n DIE_UNLESS ( row [ 17 ] != 0 ) ;\n mysql_free_result ( result ) ;\n mysql_stmt_close ( stmt ) ;\n my_fclose ( test_file , MYF ( 0 ) ) ;\n mysql_query ( mysql , \"drop table if exists test_frm_bug\" ) ;\n }"}
{"idx": 2334, "target": 0, "func": "static inline void ipv6_addr_set_v4mapped ( const __be32 addr , struct in6_addr * v4mapped ) {\n ipv6_addr_set ( v4mapped , 0 , 0 , htonl ( 0x0000FFFF ) , addr ) ;\n }"}
{"idx": 2335, "target": 0, "func": "op_array_table * get_op_array ( const gs_memory_t * mem , int size ) {\n gs_main_instance * minst = get_minst_from_memory ( mem ) ;\n return op_index_op_array_table ( minst -> i_ctx_p , size ) ;\n }"}
{"idx": 2336, "target": 0, "func": "static afs_int32 setFieldsEntry ( struct rx_call * call , afs_int32 id , afs_int32 mask , afs_int32 flags , afs_int32 ngroups , afs_int32 nusers , afs_int32 spare1 , afs_int32 spare2 , afs_int32 * cid ) {\n afs_int32 code ;\n struct ubik_trans * tt ;\n afs_int32 pos ;\n struct prentry tentry ;\n afs_int32 tflags ;\n if ( mask == 0 ) return 0 ;\n code = Initdb ( ) ;\n if ( code ) return code ;\n if ( id == ANYUSERID || id == AUTHUSERID || id == ANONYMOUSID ) return PRPERM ;\n if ( code != PRSUCCESS ) return code ;\n code = ubik_BeginTrans ( dbase , UBIK_WRITETRANS , & tt ) ;\n if ( code ) return code ;\n code = ubik_SetLock ( tt , 1 , 1 , LOCKWRITE ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = read_DbHeader ( tt ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = WhoIsThis ( call , tt , cid ) ;\n if ( code ) ABORT_WITH ( tt , PRPERM ) ;\n pos = FindByID ( tt , id ) ;\n if ( ! pos ) ABORT_WITH ( tt , PRNOENT ) ;\n code = pr_ReadEntry ( tt , 0 , pos , & tentry ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n tflags = tentry . flags ;\n if ( mask & ( PR_SF_NGROUPS | PR_SF_NUSERS ) ) {\n if ( ! AccessOK ( tt , * cid , 0 , 0 , 0 ) ) ABORT_WITH ( tt , PRPERM ) ;\n if ( ( tflags & PRQUOTA ) == 0 ) {\n tentry . ngroups = tentry . nusers = 20 ;\n }\n }\n else {\n if ( ! AccessOK ( tt , * cid , & tentry , 0 , 0 ) ) ABORT_WITH ( tt , PRPERM ) ;\n }\n if ( mask & 0xffff ) {\n afs_int32 flagsMask = mask & 0xffff ;\n tflags &= ~ ( flagsMask << PRIVATE_SHIFT ) ;\n tflags |= ( flags & flagsMask ) << PRIVATE_SHIFT ;\n tflags |= PRACCESS ;\n }\n if ( mask & PR_SF_NGROUPS ) {\n if ( ngroups < 0 ) ABORT_WITH ( tt , PRBADARG ) ;\n tentry . ngroups = ngroups ;\n tflags |= PRQUOTA ;\n }\n if ( mask & PR_SF_NUSERS ) {\n if ( nusers < 0 ) ABORT_WITH ( tt , PRBADARG ) ;\n tentry . nusers = nusers ;\n tflags |= PRQUOTA ;\n }\n tentry . flags = tflags ;\n code = pr_WriteEntry ( tt , 0 , pos , & tentry ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = ubik_EndTrans ( tt ) ;\n return code ;\n }"}
{"idx": 2337, "target": 0, "func": "lcc_network_buffer_t * lcc_network_buffer_create ( size_t size ) {\n lcc_network_buffer_t * nb ;\n if ( size == 0 ) size = LCC_NETWORK_BUFFER_SIZE_DEFAULT ;\n if ( size < 128 ) {\n errno = EINVAL ;\n return ( NULL ) ;\n }\n nb = malloc ( sizeof ( * nb ) ) ;\n if ( nb == NULL ) return ( NULL ) ;\n memset ( nb , 0 , sizeof ( * nb ) ) ;\n nb -> size = size ;\n nb -> buffer = malloc ( nb -> size ) ;\n if ( nb -> buffer == NULL ) {\n free ( nb ) ;\n return ( NULL ) ;\n }\n memset ( nb -> buffer , 0 , nb -> size ) ;\n nb -> ptr = nb -> buffer ;\n nb -> free = nb -> size ;\n nb -> seclevel = NONE ;\n nb -> username = NULL ;\n nb -> password = NULL ;\n return ( nb ) ;\n }"}
{"idx": 2338, "target": 1, "func": "static void copy_partitioning ( VP9_COMMON * cm , MODE_INFO * * mi_8x8 , MODE_INFO * * prev_mi_8x8 ) {\n const int mis = cm -> mi_stride ;\n int block_row , block_col ;\n for ( block_row = 0 ;\n block_row < 8 ;\n ++ block_row ) {\n for ( block_col = 0 ;\n block_col < 8 ;\n ++ block_col ) {\n MODE_INFO * const prev_mi = prev_mi_8x8 [ block_row * mis + block_col ] ;\n const BLOCK_SIZE sb_type = prev_mi ? prev_mi -> mbmi . sb_type : 0 ;\n if ( prev_mi ) {\n const ptrdiff_t offset = prev_mi - cm -> prev_mi ;\n mi_8x8 [ block_row * mis + block_col ] = cm -> mi + offset ;\n mi_8x8 [ block_row * mis + block_col ] -> mbmi . sb_type = sb_type ;\n }\n }\n }\n }"}
{"idx": 2339, "target": 0, "func": "proto_item * proto_tree_add_ipv6 ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , const struct e_in6_addr * value_ptr ) {\n proto_item * pi ;\n header_field_info * hfinfo ;\n CHECK_FOR_NULL_TREE ( tree ) ;\n TRY_TO_FAKE_THIS_ITEM ( tree , hfindex , hfinfo ) ;\n DISSECTOR_ASSERT_FIELD_TYPE ( hfinfo , FT_IPv6 ) ;\n pi = proto_tree_add_pi ( tree , hfinfo , tvb , start , & length ) ;\n proto_tree_set_ipv6 ( PNODE_FINFO ( pi ) , value_ptr -> bytes ) ;\n return pi ;\n }"}
{"idx": 2340, "target": 0, "func": "static void extension_info_stop ( NautilusDirectory * directory ) {\n if ( directory -> details -> extension_info_in_progress != NULL ) {\n NautilusFile * file ;\n file = directory -> details -> extension_info_file ;\n if ( file != NULL ) {\n g_assert ( NAUTILUS_IS_FILE ( file ) ) ;\n g_assert ( file -> details -> directory == directory ) ;\n if ( is_needy ( file , lacks_extension_info , REQUEST_EXTENSION_INFO ) ) {\n return ;\n }\n }\n extension_info_cancel ( directory ) ;\n }\n }"}
{"idx": 2341, "target": 0, "func": "void fz_new_colorspace_context ( fz_context * ctx ) {\n ctx -> colorspace = fz_malloc_struct ( ctx , fz_colorspace_context ) ;\n ctx -> colorspace -> ctx_refs = 1 ;\n set_no_icc ( ctx -> colorspace ) ;\n # ifdef NO_ICC fz_set_cmm_engine ( ctx , NULL ) ;\n # else fz_set_cmm_engine ( ctx , & fz_cmm_engine_lcms ) ;\n # endif }"}
{"idx": 2342, "target": 0, "func": "void run_query_normal ( struct st_connection * cn , struct st_command * command , int flags , char * query , int query_len , DYNAMIC_STRING * ds , DYNAMIC_STRING * ds_warnings ) {\n MYSQL_RES * res = 0 ;\n MYSQL * mysql = cn -> mysql ;\n int err = 0 , counter = 0 ;\n DBUG_ENTER ( \"run_query_normal\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"flags: %d\" , flags ) ) ;\n DBUG_PRINT ( \"enter\" , ( \"query: '%-.60s'\" , query ) ) ;\n if ( ! mysql ) {\n handle_no_active_connection ( command , cn , ds ) ;\n DBUG_VOID_RETURN ;\n }\n if ( flags & QUERY_SEND_FLAG ) {\n if ( do_send_query ( cn , query , query_len ) ) {\n handle_error ( command , mysql_errno ( mysql ) , mysql_error ( mysql ) , mysql_sqlstate ( mysql ) , ds ) ;\n goto end ;\n }\n }\n if ( ! ( flags & QUERY_REAP_FLAG ) ) {\n cn -> pending = TRUE ;\n DBUG_VOID_RETURN ;\n }\n do {\n if ( ( counter == 0 ) && do_read_query_result ( cn ) ) {\n cn -> pending = TRUE ;\n handle_error ( command , mysql_errno ( mysql ) , mysql_error ( mysql ) , mysql_sqlstate ( mysql ) , ds ) ;\n goto end ;\n }\n if ( mysql_field_count ( mysql ) && ( ( res = mysql_store_result ( mysql ) ) == 0 ) ) {\n handle_error ( command , mysql_errno ( mysql ) , mysql_error ( mysql ) , mysql_sqlstate ( mysql ) , ds ) ;\n goto end ;\n }\n if ( ! disable_result_log ) {\n if ( res ) {\n MYSQL_FIELD * fields = mysql_fetch_fields ( res ) ;\n uint num_fields = mysql_num_fields ( res ) ;\n if ( display_metadata ) append_metadata ( ds , fields , num_fields ) ;\n if ( ! display_result_vertically ) append_table_headings ( ds , fields , num_fields ) ;\n append_result ( ds , res ) ;\n }\n if ( ! disable_info ) append_info ( ds , mysql_affected_rows ( mysql ) , mysql_info ( mysql ) ) ;\n if ( ! disable_warnings && ! mysql_more_results ( mysql ) ) {\n if ( append_warnings ( ds_warnings , mysql ) || ds_warnings -> length ) {\n dynstr_append_mem ( ds , \"Warnings:\\n\" , 10 ) ;\n dynstr_append_mem ( ds , ds_warnings -> str , ds_warnings -> length ) ;\n }\n }\n }\n if ( res ) {\n mysql_free_result ( res ) ;\n res = 0 ;\n }\n counter ++ ;\n }\n while ( ! ( err = mysql_next_result ( mysql ) ) ) ;\n if ( err > 0 ) {\n handle_error ( command , mysql_errno ( mysql ) , mysql_error ( mysql ) , mysql_sqlstate ( mysql ) , ds ) ;\n goto end ;\n }\n DBUG_ASSERT ( err == - 1 ) ;\n handle_no_error ( command ) ;\n revert_properties ( ) ;\n end : cn -> pending = FALSE ;\n var_set_errno ( mysql_errno ( mysql ) ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 2343, "target": 0, "func": "static void sig_message_public ( SERVER_REC * server , const char * msg , const char * nick , const char * address , const char * target ) {\n CHANNEL_REC * channel ;\n int own ;\n g_return_if_fail ( nick != NULL ) ;\n channel = channel_find ( server , target ) ;\n if ( channel != NULL ) {\n own = nick_match_msg ( channel , msg , server -> nick ) ;\n CHANNEL_LAST_MSG_ADD ( channel , nick , own ) ;\n }\n }"}
{"idx": 2344, "target": 0, "func": "void ntpq_custom_opt_handler ( tOptions * pOptions , tOptDesc * pOptDesc ) {\n switch ( pOptDesc -> optValue ) {\n default : fprintf ( stderr , \"ntpq_custom_opt_handler unexpected option '%c' (%d)\\n\" , pOptDesc -> optValue , pOptDesc -> optValue ) ;\n exit ( 1 ) ;\n case 'c' : ADDCMD ( pOptDesc -> pzLastArg ) ;\n break ;\n case 'p' : ADDCMD ( \"peers\" ) ;\n break ;\n }\n }"}
{"idx": 2345, "target": 0, "func": "TEST ( URLFixerTest , FixupURL ) {\n for ( size_t i = 0 ;\n i < arraysize ( fixup_cases ) ;\n ++ i ) {\n FixupCase value = fixup_cases [ i ] ;\n EXPECT_EQ ( value . output , url_formatter : : FixupURL ( value . input , \"\" ) . possibly_invalid_spec ( ) ) << \"input: \" << value . input ;\n }\n FixupCase tld_cases [ ] = {\n {\n \"somedomainthatwillnotbeagtld\" , \"http://www.somedomainthatwillnotbeagtld.com/\" }\n , {\n \"somedomainthatwillnotbeagtld.\" , \"http://www.somedomainthatwillnotbeagtld.com/\" }\n , {\n \"somedomainthatwillnotbeagtld..\" , \"http://www.somedomainthatwillnotbeagtld.com/\" }\n , {\n \".somedomainthatwillnotbeagtld\" , \"http://www.somedomainthatwillnotbeagtld.com/\" }\n , {\n \"www.somedomainthatwillnotbeagtld\" , \"http://www.somedomainthatwillnotbeagtld.com/\" }\n , {\n \"somedomainthatwillnotbeagtld.com\" , \"http://somedomainthatwillnotbeagtld.com/\" }\n , {\n \"http://somedomainthatwillnotbeagtld\" , \"http://www.somedomainthatwillnotbeagtld.com/\" }\n , {\n \"..somedomainthatwillnotbeagtld..\" , \"http://www.somedomainthatwillnotbeagtld.com/\" }\n , {\n \"http://www.somedomainthatwillnotbeagtld\" , \"http://www.somedomainthatwillnotbeagtld.com/\" }\n , {\n \"9999999999999999\" , \"http://www.9999999999999999.com/\" }\n , {\n \"somedomainthatwillnotbeagtld/foo\" , \"http://www.somedomainthatwillnotbeagtld.com/foo\" }\n , {\n \"somedomainthatwillnotbeagtld.com/foo\" , \"http://somedomainthatwillnotbeagtld.com/foo\" }\n , {\n \"somedomainthatwillnotbeagtld/?foo=.com\" , \"http://www.somedomainthatwillnotbeagtld.com/?foo=.com\" }\n , {\n \"www.somedomainthatwillnotbeagtld/?foo=www.\" , \"http://www.somedomainthatwillnotbeagtld.com/?foo=www.\" }\n , {\n \"somedomainthatwillnotbeagtld.com/?foo=.com\" , \"http://somedomainthatwillnotbeagtld.com/?foo=.com\" }\n , {\n \"http://www.somedomainthatwillnotbeagtld.com\" , \"http://www.somedomainthatwillnotbeagtld.com/\" }\n , {\n \"somedomainthatwillnotbeagtld:123\" , \"http://www.somedomainthatwillnotbeagtld.com:123/\" }\n , {\n \"http://somedomainthatwillnotbeagtld:123\" , \"http://www.somedomainthatwillnotbeagtld.com:123/\" }\n , }\n ;\n for ( size_t i = 0 ;\n i < arraysize ( tld_cases ) ;\n ++ i ) {\n FixupCase value = tld_cases [ i ] ;\n EXPECT_EQ ( value . output , url_formatter : : FixupURL ( value . input , \"com\" ) . possibly_invalid_spec ( ) ) ;\n }\n }"}
{"idx": 2346, "target": 1, "func": "END_TEST START_TEST ( test_find_available_user ) {\n in_addr_t ip ;\n int i ;\n ip = inet_addr ( \"127.0.0.1\" ) ;\n init_users ( ip , 27 ) ;\n for ( i = 0 ;\n i < USERS ;\n i ++ ) {\n fail_unless ( find_available_user ( ) == i ) ;\n }\n for ( i = 0 ;\n i < USERS ;\n i ++ ) {\n fail_unless ( find_available_user ( ) == - 1 ) ;\n }\n users [ 3 ] . active = 0 ;\n fail_unless ( find_available_user ( ) == 3 ) ;\n fail_unless ( find_available_user ( ) == - 1 ) ;\n users [ 3 ] . last_pkt = 55 ;\n fail_unless ( find_available_user ( ) == 3 ) ;\n fail_unless ( find_available_user ( ) == - 1 ) ;\n }"}
{"idx": 2347, "target": 0, "func": "static int dissect_h245_GenericInformation ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 656 \"../../asn1/h245/h245.cnf\" void * priv_data = actx -> private_data ;\n actx -> private_data = gef_ctx_alloc ( NULL , \"GenericInformation\" ) ;\n offset = dissect_h245_GenericMessage ( tvb , offset , actx , tree , hf_index ) ;\n # line 659 \"../../asn1/h245/h245.cnf\" actx -> private_data = priv_data ;\n return offset ;\n }"}
{"idx": 2348, "target": 0, "func": "int dissect_ber_constrained_sequence_of ( gboolean implicit_tag , asn1_ctx_t * actx , proto_tree * parent_tree , tvbuff_t * tvb , int offset , gint32 min_len , gint32 max_len , const ber_sequence_t * seq , gint hf_id , gint ett_id ) {\n return dissect_ber_sq_of ( implicit_tag , BER_UNI_TAG_SEQUENCE , actx , parent_tree , tvb , offset , min_len , max_len , seq , hf_id , ett_id ) ;\n }"}
{"idx": 2349, "target": 0, "func": "static void auto_partition_range ( VP9_COMP * cpi , const TileInfo * const tile , int mi_row , int mi_col , BLOCK_SIZE * min_block_size , BLOCK_SIZE * max_block_size ) {\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCKD * const xd = & cpi -> mb . e_mbd ;\n MODE_INFO * mi_8x8 = xd -> mi ;\n const int left_in_image = xd -> left_available && mi_8x8 [ - 1 ] . src_mi ;\n const int above_in_image = xd -> up_available && mi_8x8 [ - xd -> mi_stride ] . src_mi ;\n int row8x8_remaining = tile -> mi_row_end - mi_row ;\n int col8x8_remaining = tile -> mi_col_end - mi_col ;\n int bh , bw ;\n BLOCK_SIZE min_size = BLOCK_32X32 ;\n BLOCK_SIZE max_size = BLOCK_8X8 ;\n int bsl = mi_width_log2 ( BLOCK_64X64 ) ;\n const int search_range_ctrl = ( ( ( mi_row + mi_col ) >> bsl ) + get_chessboard_index ( cm -> current_video_frame ) ) & 0x1 ;\n if ( search_range_ctrl && ( left_in_image || above_in_image || cm -> frame_type != KEY_FRAME ) ) {\n int block ;\n MODE_INFO * mi ;\n BLOCK_SIZE sb_type ;\n if ( left_in_image ) {\n MODE_INFO * cur_mi ;\n mi = mi_8x8 [ - 1 ] . src_mi ;\n for ( block = 0 ;\n block < MI_BLOCK_SIZE ;\n ++ block ) {\n cur_mi = mi [ block * xd -> mi_stride ] . src_mi ;\n sb_type = cur_mi ? cur_mi -> mbmi . sb_type : 0 ;\n min_size = MIN ( min_size , sb_type ) ;\n max_size = MAX ( max_size , sb_type ) ;\n }\n }\n if ( above_in_image ) {\n mi = mi_8x8 [ - xd -> mi_stride * MI_BLOCK_SIZE ] . src_mi ;\n for ( block = 0 ;\n block < MI_BLOCK_SIZE ;\n ++ block ) {\n sb_type = mi [ block ] . src_mi ? mi [ block ] . src_mi -> mbmi . sb_type : 0 ;\n min_size = MIN ( min_size , sb_type ) ;\n max_size = MAX ( max_size , sb_type ) ;\n }\n }\n min_size = min_partition_size [ min_size ] ;\n max_size = find_partition_size ( max_size , row8x8_remaining , col8x8_remaining , & bh , & bw ) ;\n min_size = MIN ( min_size , max_size ) ;\n min_size = MAX ( min_size , BLOCK_8X8 ) ;\n max_size = MIN ( max_size , BLOCK_32X32 ) ;\n }\n else {\n min_size = BLOCK_8X8 ;\n max_size = BLOCK_32X32 ;\n }\n * min_block_size = min_size ;\n * max_block_size = max_size ;\n }"}
{"idx": 2350, "target": 0, "func": "static int dissect_h245_T_lostPartialPicture ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_lostPartialPicture , T_lostPartialPicture_sequence ) ;\n return offset ;\n }"}
{"idx": 2351, "target": 0, "func": "TSCacheHttpInfo TSCacheHttpInfoCopy ( TSCacheHttpInfo infop ) {\n CacheHTTPInfo * new_info = new CacheHTTPInfo ;\n new_info -> copy ( ( CacheHTTPInfo * ) infop ) ;\n return reinterpret_cast < TSCacheHttpInfo > ( new_info ) ;\n }"}
{"idx": 2352, "target": 0, "func": "static void acl_insert_user ( const char * user , const char * host , const char * password , uint password_len , enum SSL_type ssl_type , const char * ssl_cipher , const char * x509_issuer , const char * x509_subject , USER_RESOURCES * mqh , ulong privileges ) {\n ACL_USER acl_user ;\n safe_mutex_assert_owner ( & acl_cache -> lock ) ;\n acl_user . user = * user ? strdup_root ( & mem , user ) : 0 ;\n update_hostname ( & acl_user . host , * host ? strdup_root ( & mem , host ) : 0 ) ;\n acl_user . access = privileges ;\n acl_user . user_resource = * mqh ;\n acl_user . sort = get_sort ( 2 , acl_user . host . hostname , acl_user . user ) ;\n acl_user . hostname_length = ( uint ) strlen ( host ) ;\n acl_user . ssl_type = ( ssl_type != SSL_TYPE_NOT_SPECIFIED ? ssl_type : SSL_TYPE_NONE ) ;\n acl_user . ssl_cipher = ssl_cipher ? strdup_root ( & mem , ssl_cipher ) : 0 ;\n acl_user . x509_issuer = x509_issuer ? strdup_root ( & mem , x509_issuer ) : 0 ;\n acl_user . x509_subject = x509_subject ? strdup_root ( & mem , x509_subject ) : 0 ;\n set_user_salt ( & acl_user , password , password_len ) ;\n VOID ( push_dynamic ( & acl_users , ( uchar * ) & acl_user ) ) ;\n if ( ! acl_user . host . hostname || ( acl_user . host . hostname [ 0 ] == wild_many && ! acl_user . host . hostname [ 1 ] ) ) allow_all_hosts = 1 ;\n my_qsort ( ( uchar * ) dynamic_element ( & acl_users , 0 , ACL_USER * ) , acl_users . elements , sizeof ( ACL_USER ) , ( qsort_cmp ) acl_compare ) ;\n rebuild_check_host ( ) ;\n }"}
{"idx": 2353, "target": 0, "func": "TEST_F ( OmniboxViewViewsTest , EditTextfield ) {\n omnibox_textfield ( ) -> SetCursorEnabled ( false ) ;\n ui : : KeyEvent char_event ( ui : : ET_KEY_PRESSED , ui : : VKEY_A , ui : : DomCode : : US_A , 0 , ui : : DomKey : : FromCharacter ( 'a' ) , ui : : EventTimeForNow ( ) ) ;\n omnibox_textfield ( ) -> InsertChar ( char_event ) ;\n EXPECT_TRUE ( IsCursorEnabled ( ) ) ;\n }"}
{"idx": 2354, "target": 0, "func": "void PNGAPI png_set_invalid ( png_structp png_ptr , png_infop info_ptr , int mask ) {\n if ( png_ptr && info_ptr ) info_ptr -> valid &= ~ mask ;\n }"}
{"idx": 2355, "target": 0, "func": "REGRESSION_TEST ( SDK_API_TSConfig ) ( RegressionTest * test , int , int * pstatus ) {\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n ConfigData * config = ( ConfigData * ) TSmalloc ( sizeof ( ConfigData ) ) ;\n config -> a = \"unit\" ;\n config -> b = \"test\" ;\n my_config_id = TSConfigSet ( 0 , config , config_destroy_func ) ;\n TSConfig test_config = nullptr ;\n test_config = TSConfigGet ( my_config_id ) ;\n if ( ! test_config ) {\n SDK_RPRINT ( test , \"TSConfigSet\" , \"TestCase1\" , TC_FAIL , \"can't correctly set global config structure\" ) ;\n SDK_RPRINT ( test , \"TSConfigGet\" , \"TestCase1\" , TC_FAIL , \"can't correctly get global config structure\" ) ;\n TSConfigRelease ( my_config_id , reinterpret_cast < TSConfig > ( config ) ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n return ;\n }\n if ( TSConfigDataGet ( test_config ) != config ) {\n SDK_RPRINT ( test , \"TSConfigDataGet\" , \"TestCase1\" , TC_FAIL , \"failed to get config data\" ) ;\n TSConfigRelease ( my_config_id , reinterpret_cast < TSConfig > ( config ) ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n return ;\n }\n SDK_RPRINT ( test , \"TSConfigGet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( test , \"TSConfigSet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( test , \"TSConfigDataGet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n TSConfigRelease ( my_config_id , reinterpret_cast < TSConfig > ( config ) ) ;\n * pstatus = REGRESSION_TEST_PASSED ;\n return ;\n }"}
{"idx": 2356, "target": 0, "func": "int dissect_coap_options ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * coap_tree , gint offset , gint offset_end , coap_info * coinfo , coap_common_dissect_t * dissect_hf ) {\n guint opt_num = 0 ;\n int i ;\n guint8 endmarker ;\n for ( i = 1 ;\n offset < offset_end ;\n i ++ ) {\n offset = dissect_coap_options_main ( tvb , pinfo , coap_tree , offset , i , & opt_num , offset_end , coinfo , dissect_hf ) ;\n if ( offset == - 1 ) return - 1 ;\n if ( offset >= offset_end ) break ;\n endmarker = tvb_get_guint8 ( tvb , offset ) ;\n if ( endmarker == 0xff ) {\n proto_tree_add_item ( coap_tree , dissect_hf -> hf . opt_end_marker , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset += 1 ;\n break ;\n }\n }\n return offset ;\n }"}
{"idx": 2357, "target": 0, "func": "static unsigned int _warc_rdtyp ( const char * buf , size_t bsz ) {\n static const char _key [ ] = \"\\r\\nWARC-Type:\" ;\n const char * val , * eol ;\n if ( ( val = xmemmem ( buf , bsz , _key , sizeof ( _key ) - 1U ) ) == NULL ) {\n return WT_NONE ;\n }\n val += sizeof ( _key ) - 1U ;\n if ( ( eol = _warc_find_eol ( val , buf + bsz - val ) ) == NULL ) {\n return WT_NONE ;\n }\n while ( val < eol && ( * val == ' ' || * val == '\\t' ) ) ++ val ;\n if ( val + 8U == eol ) {\n if ( memcmp ( val , \"resource\" , 8U ) == 0 ) return WT_RSRC ;\n else if ( memcmp ( val , \"response\" , 8U ) == 0 ) return WT_RSP ;\n }\n return WT_NONE ;\n }"}
{"idx": 2358, "target": 0, "func": "static void qcms_transform_module_clut ( struct qcms_modular_transform * transform , float * src , float * dest , size_t length ) {\n size_t i ;\n int xy_len = 1 ;\n int x_len = transform -> grid_size ;\n int len = x_len * x_len ;\n float * r_table = transform -> r_clut ;\n float * g_table = transform -> g_clut ;\n float * b_table = transform -> b_clut ;\n assert ( transform -> grid_size >= 1 ) ;\n for ( i = 0 ;\n i < length ;\n i ++ ) {\n float device_r = * src ++ ;\n float device_g = * src ++ ;\n float device_b = * src ++ ;\n float linear_r = lut_interp_linear_float ( device_r , transform -> input_clut_table_r , transform -> input_clut_table_length ) ;\n float linear_g = lut_interp_linear_float ( device_g , transform -> input_clut_table_g , transform -> input_clut_table_length ) ;\n float linear_b = lut_interp_linear_float ( device_b , transform -> input_clut_table_b , transform -> input_clut_table_length ) ;\n int x = floor ( linear_r * ( transform -> grid_size - 1 ) ) ;\n int y = floor ( linear_g * ( transform -> grid_size - 1 ) ) ;\n int z = floor ( linear_b * ( transform -> grid_size - 1 ) ) ;\n int x_n = ceil ( linear_r * ( transform -> grid_size - 1 ) ) ;\n int y_n = ceil ( linear_g * ( transform -> grid_size - 1 ) ) ;\n int z_n = ceil ( linear_b * ( transform -> grid_size - 1 ) ) ;\n float x_d = linear_r * ( transform -> grid_size - 1 ) - x ;\n float y_d = linear_g * ( transform -> grid_size - 1 ) - y ;\n float z_d = linear_b * ( transform -> grid_size - 1 ) - z ;\n float r_x1 = lerp ( CLU ( r_table , x , y , z ) , CLU ( r_table , x_n , y , z ) , x_d ) ;\n float r_x2 = lerp ( CLU ( r_table , x , y_n , z ) , CLU ( r_table , x_n , y_n , z ) , x_d ) ;\n float r_y1 = lerp ( r_x1 , r_x2 , y_d ) ;\n float r_x3 = lerp ( CLU ( r_table , x , y , z_n ) , CLU ( r_table , x_n , y , z_n ) , x_d ) ;\n float r_x4 = lerp ( CLU ( r_table , x , y_n , z_n ) , CLU ( r_table , x_n , y_n , z_n ) , x_d ) ;\n float r_y2 = lerp ( r_x3 , r_x4 , y_d ) ;\n float clut_r = lerp ( r_y1 , r_y2 , z_d ) ;\n float g_x1 = lerp ( CLU ( g_table , x , y , z ) , CLU ( g_table , x_n , y , z ) , x_d ) ;\n float g_x2 = lerp ( CLU ( g_table , x , y_n , z ) , CLU ( g_table , x_n , y_n , z ) , x_d ) ;\n float g_y1 = lerp ( g_x1 , g_x2 , y_d ) ;\n float g_x3 = lerp ( CLU ( g_table , x , y , z_n ) , CLU ( g_table , x_n , y , z_n ) , x_d ) ;\n float g_x4 = lerp ( CLU ( g_table , x , y_n , z_n ) , CLU ( g_table , x_n , y_n , z_n ) , x_d ) ;\n float g_y2 = lerp ( g_x3 , g_x4 , y_d ) ;\n float clut_g = lerp ( g_y1 , g_y2 , z_d ) ;\n float b_x1 = lerp ( CLU ( b_table , x , y , z ) , CLU ( b_table , x_n , y , z ) , x_d ) ;\n float b_x2 = lerp ( CLU ( b_table , x , y_n , z ) , CLU ( b_table , x_n , y_n , z ) , x_d ) ;\n float b_y1 = lerp ( b_x1 , b_x2 , y_d ) ;\n float b_x3 = lerp ( CLU ( b_table , x , y , z_n ) , CLU ( b_table , x_n , y , z_n ) , x_d ) ;\n float b_x4 = lerp ( CLU ( b_table , x , y_n , z_n ) , CLU ( b_table , x_n , y_n , z_n ) , x_d ) ;\n float b_y2 = lerp ( b_x3 , b_x4 , y_d ) ;\n float clut_b = lerp ( b_y1 , b_y2 , z_d ) ;\n float pcs_r = lut_interp_linear_float ( clut_r , transform -> output_clut_table_r , transform -> output_clut_table_length ) ;\n float pcs_g = lut_interp_linear_float ( clut_g , transform -> output_clut_table_g , transform -> output_clut_table_length ) ;\n float pcs_b = lut_interp_linear_float ( clut_b , transform -> output_clut_table_b , transform -> output_clut_table_length ) ;\n * dest ++ = clamp_float ( pcs_r ) ;\n * dest ++ = clamp_float ( pcs_g ) ;\n * dest ++ = clamp_float ( pcs_b ) ;\n }\n }"}
{"idx": 2359, "target": 0, "func": "unsigned int TSMimeHdrFieldValueUintGet ( TSMBuffer bufp , TSMLoc hdr , TSMLoc field , int idx ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( hdr ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( hdr ) == TS_SUCCESS ) ) ;\n sdk_assert ( sdk_sanity_check_field_handle ( field , hdr ) == TS_SUCCESS ) ;\n int value_len ;\n const char * value_str = TSMimeFieldValueGet ( bufp , field , idx , & value_len ) ;\n if ( value_str == nullptr ) {\n return 0 ;\n }\n return mime_parse_uint ( value_str , value_str + value_len ) ;\n }"}
{"idx": 2360, "target": 0, "func": "static VALUE ossl_x509name_eql ( VALUE self , VALUE other ) {\n if ( ! rb_obj_is_kind_of ( other , cX509Name ) ) return Qfalse ;\n return ossl_x509name_cmp0 ( self , other ) == 0 ? Qtrue : Qfalse ;\n }"}
{"idx": 2361, "target": 0, "func": "static void apply_pitch_filters ( QCELPContext * q , float * cdn_vector ) {\n int i ;\n const float * v_synthesis_filtered , * v_pre_filtered ;\n if ( q -> bitrate >= RATE_HALF || q -> bitrate == SILENCE || ( q -> bitrate == I_F_Q && ( q -> prev_bitrate >= RATE_HALF ) ) ) {\n if ( q -> bitrate >= RATE_HALF ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n q -> pitch_gain [ i ] = q -> frame . plag [ i ] ? ( q -> frame . pgain [ i ] + 1 ) * 0.25 : 0.0 ;\n q -> pitch_lag [ i ] = q -> frame . plag [ i ] + 16 ;\n }\n }\n else {\n float max_pitch_gain ;\n if ( q -> bitrate == I_F_Q ) {\n if ( q -> erasure_count < 3 ) max_pitch_gain = 0.9 - 0.3 * ( q -> erasure_count - 1 ) ;\n else max_pitch_gain = 0.0 ;\n }\n else {\n assert ( q -> bitrate == SILENCE ) ;\n max_pitch_gain = 1.0 ;\n }\n for ( i = 0 ;\n i < 4 ;\n i ++ ) q -> pitch_gain [ i ] = FFMIN ( q -> pitch_gain [ i ] , max_pitch_gain ) ;\n memset ( q -> frame . pfrac , 0 , sizeof ( q -> frame . pfrac ) ) ;\n }\n v_synthesis_filtered = do_pitchfilter ( q -> pitch_synthesis_filter_mem , cdn_vector , q -> pitch_gain , q -> pitch_lag , q -> frame . pfrac ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) q -> pitch_gain [ i ] = 0.5 * FFMIN ( q -> pitch_gain [ i ] , 1.0 ) ;\n v_pre_filtered = do_pitchfilter ( q -> pitch_pre_filter_mem , v_synthesis_filtered , q -> pitch_gain , q -> pitch_lag , q -> frame . pfrac ) ;\n apply_gain_ctrl ( cdn_vector , v_synthesis_filtered , v_pre_filtered ) ;\n }\n else {\n memcpy ( q -> pitch_synthesis_filter_mem , cdn_vector + 17 , 143 * sizeof ( float ) ) ;\n memcpy ( q -> pitch_pre_filter_mem , cdn_vector + 17 , 143 * sizeof ( float ) ) ;\n memset ( q -> pitch_gain , 0 , sizeof ( q -> pitch_gain ) ) ;\n memset ( q -> pitch_lag , 0 , sizeof ( q -> pitch_lag ) ) ;\n }\n }"}
{"idx": 2362, "target": 0, "func": "static Py_ssize_t string_length ( PyStringObject * a ) {\n return Py_SIZE ( a ) ;\n }"}
{"idx": 2363, "target": 1, "func": "vpx_codec_err_t vpx_svc_init ( SvcContext * svc_ctx , vpx_codec_ctx_t * codec_ctx , vpx_codec_iface_t * iface , vpx_codec_enc_cfg_t * enc_cfg ) {\n vpx_codec_err_t res ;\n int i ;\n SvcInternal * const si = get_svc_internal ( svc_ctx ) ;\n if ( svc_ctx == NULL || codec_ctx == NULL || iface == NULL || enc_cfg == NULL ) {\n return VPX_CODEC_INVALID_PARAM ;\n }\n if ( si == NULL ) return VPX_CODEC_MEM_ERROR ;\n si -> codec_ctx = codec_ctx ;\n si -> width = enc_cfg -> g_w ;\n si -> height = enc_cfg -> g_h ;\n if ( enc_cfg -> kf_max_dist < 2 ) {\n svc_log ( svc_ctx , SVC_LOG_ERROR , \"key frame distance too small: %d\\n\" , enc_cfg -> kf_max_dist ) ;\n return VPX_CODEC_INVALID_PARAM ;\n }\n si -> kf_dist = enc_cfg -> kf_max_dist ;\n if ( svc_ctx -> spatial_layers == 0 ) svc_ctx -> spatial_layers = VPX_SS_DEFAULT_LAYERS ;\n if ( svc_ctx -> spatial_layers < 1 || svc_ctx -> spatial_layers > VPX_SS_MAX_LAYERS ) {\n svc_log ( svc_ctx , SVC_LOG_ERROR , \"spatial layers: invalid value: %d\\n\" , svc_ctx -> spatial_layers ) ;\n return VPX_CODEC_INVALID_PARAM ;\n }\n res = parse_quantizer_values ( svc_ctx , si -> quantizers ) ;\n if ( res != VPX_CODEC_OK ) return res ;\n res = parse_scale_factors ( svc_ctx , si -> scale_factors ) ;\n if ( res != VPX_CODEC_OK ) return res ;\n res = parse_options ( svc_ctx , si -> options ) ;\n if ( res != VPX_CODEC_OK ) return res ;\n if ( svc_ctx -> spatial_layers < 1 ) svc_ctx -> spatial_layers = 1 ;\n if ( svc_ctx -> spatial_layers > VPX_SS_MAX_LAYERS ) svc_ctx -> spatial_layers = VPX_SS_MAX_LAYERS ;\n if ( svc_ctx -> temporal_layers < 1 ) svc_ctx -> temporal_layers = 1 ;\n if ( svc_ctx -> temporal_layers > VPX_TS_MAX_LAYERS ) svc_ctx -> temporal_layers = VPX_TS_MAX_LAYERS ;\n si -> layers = svc_ctx -> spatial_layers ;\n if ( si -> layers > 1 ) {\n float total = 0 ;\n float alloc_ratio [ VPX_SS_MAX_LAYERS ] = {\n 0 }\n ;\n assert ( si -> layers <= VPX_SS_MAX_LAYERS ) ;\n for ( i = 0 ;\n i < si -> layers ;\n ++ i ) {\n int pos = i + VPX_SS_MAX_LAYERS - svc_ctx -> spatial_layers ;\n if ( pos < VPX_SS_MAX_LAYERS && si -> scaling_factor_den [ pos ] > 0 ) {\n alloc_ratio [ i ] = ( float ) ( si -> scaling_factor_num [ pos ] * 1.0 / si -> scaling_factor_den [ pos ] ) ;\n alloc_ratio [ i ] *= alloc_ratio [ i ] ;\n total += alloc_ratio [ i ] ;\n }\n }\n for ( i = 0 ;\n i < si -> layers ;\n ++ i ) {\n if ( total > 0 ) {\n enc_cfg -> ss_target_bitrate [ i ] = ( unsigned int ) ( enc_cfg -> rc_target_bitrate * alloc_ratio [ i ] / total ) ;\n }\n }\n }\n # if CONFIG_SPATIAL_SVC for ( i = 0 ;\n i < si -> layers ;\n ++ i ) enc_cfg -> ss_enable_auto_alt_ref [ i ] = si -> enable_auto_alt_ref [ i ] ;\n # endif if ( svc_ctx -> temporal_layers > 1 ) {\n int i ;\n for ( i = 0 ;\n i < svc_ctx -> temporal_layers ;\n ++ i ) {\n enc_cfg -> ts_target_bitrate [ i ] = enc_cfg -> rc_target_bitrate / svc_ctx -> temporal_layers ;\n enc_cfg -> ts_rate_decimator [ i ] = 1 << ( svc_ctx -> temporal_layers - 1 - i ) ;\n }\n }\n enc_cfg -> ss_number_layers = si -> layers ;\n enc_cfg -> ts_number_layers = svc_ctx -> temporal_layers ;\n enc_cfg -> rc_dropframe_thresh = 0 ;\n enc_cfg -> rc_resize_allowed = 0 ;\n if ( enc_cfg -> g_pass == VPX_RC_ONE_PASS ) {\n enc_cfg -> rc_min_quantizer = 33 ;\n enc_cfg -> rc_max_quantizer = 33 ;\n }\n enc_cfg -> rc_undershoot_pct = 100 ;\n enc_cfg -> rc_overshoot_pct = 15 ;\n enc_cfg -> rc_buf_initial_sz = 500 ;\n enc_cfg -> rc_buf_optimal_sz = 600 ;\n enc_cfg -> rc_buf_sz = 1000 ;\n if ( enc_cfg -> g_error_resilient == 0 && si -> use_multiple_frame_contexts == 0 ) enc_cfg -> g_error_resilient = 1 ;\n res = vpx_codec_enc_init ( codec_ctx , iface , enc_cfg , VPX_CODEC_USE_PSNR ) ;\n if ( res != VPX_CODEC_OK ) {\n svc_log ( svc_ctx , SVC_LOG_ERROR , \"svc_enc_init error\\n\" ) ;\n return res ;\n }\n vpx_codec_control ( codec_ctx , VP9E_SET_SVC , 1 ) ;\n vpx_codec_control ( codec_ctx , VP8E_SET_TOKEN_PARTITIONS , 1 ) ;\n return VPX_CODEC_OK ;\n }"}
{"idx": 2364, "target": 0, "func": "static void * Type_XYZ_Dup ( struct _cms_typehandler_struct * self , const void * Ptr , cmsUInt32Number n ) {\n return _cmsDupMem ( self -> ContextID , Ptr , sizeof ( cmsCIEXYZ ) ) ;\n cmsUNUSED_PARAMETER ( n ) ;\n }"}
{"idx": 2365, "target": 0, "func": "static int set_wpa_key ( char * string ) {\n char * p ;\n char * pass ;\n char * ssid ;\n char tmp [ 128 ] ;\n int i ;\n if ( ! strncasecmp ( string , \"pwd\" , 3 ) ) {\n if ( ( p = strchr ( string + + strlen ( \"pwd\" ) + 1 , ':' ) ) != NULL ) {\n * p = 0 ;\n }\n else {\n SEMIFATAL_ERROR ( \"Invalid parsing of the WPA password (missing SSID)\" ) ;\n }\n i = strlen ( string + strlen ( \"pwd\" ) + 1 ) ;\n if ( i < 8 || i > 63 ) {\n SEMIFATAL_ERROR ( \"Invalid parsing of the WPA-PWD password (must be 8..63 chars)\" ) ;\n }\n SAFE_STRDUP ( pass , string + strlen ( \"pwd\" ) + 1 ) ;\n SAFE_STRDUP ( ssid , p + 1 ) ;\n PKCS5_PBKDF2_HMAC_SHA1 ( pass , strlen ( pass ) , ( u_char * ) ssid , strlen ( ssid ) , 4096 , 32 , GBL_WIFI -> wkey ) ;\n SAFE_FREE ( pass ) ;\n SAFE_FREE ( ssid ) ;\n }\n if ( ! strncasecmp ( string , \"psk\" , 3 ) ) {\n if ( strlen ( string + strlen ( \"psk\" ) + 1 ) != 64 ) {\n SEMIFATAL_ERROR ( \"Invalid parsing of the WPA-PSK password (must be 64 chars)\" ) ;\n }\n str_hex_to_bytes ( string + strlen ( \"psk\" ) + 1 , GBL_WIFI -> wkey ) ;\n }\n USER_MSG ( \"Using WPA key: %s\\n\" , str_tohex ( GBL_WIFI -> wkey , WPA_KEY_LEN , tmp , sizeof ( tmp ) ) ) ;\n return E_SUCCESS ;\n }"}
{"idx": 2366, "target": 0, "func": "static inline bool is_port_in_range ( int port , HttpConfigPortRange * pr ) {\n while ( pr ) {\n if ( pr -> low == - 1 ) {\n return true ;\n }\n else if ( ( pr -> low <= port ) && ( pr -> high >= port ) ) {\n return true ;\n }\n pr = pr -> next ;\n }\n return false ;\n }"}
{"idx": 2367, "target": 0, "func": "void getauthkeys ( const char * keyfile ) {\n int len ;\n len = strlen ( keyfile ) ;\n if ( ! len ) return ;\n # ifndef SYS_WINNT key_file_name = erealloc ( key_file_name , len + 1 ) ;\n memcpy ( key_file_name , keyfile , len + 1 ) ;\n # else key_file_name = erealloc ( key_file_name , _MAX_PATH ) ;\n if ( len + 1 > _MAX_PATH ) return ;\n if ( ! ExpandEnvironmentStrings ( keyfile , key_file_name , _MAX_PATH ) ) {\n msyslog ( LOG_ERR , \"ExpandEnvironmentStrings(KEY_FILE) failed: %m\" ) ;\n strncpy ( key_file_name , keyfile , _MAX_PATH ) ;\n }\n # endif authreadkeys ( key_file_name ) ;\n }"}
{"idx": 2368, "target": 0, "func": "static GFile * map_possibly_volatile_file_to_real ( GFile * volatile_file , GCancellable * cancellable , GError * * error ) {\n GFile * real_file = NULL ;\n GFileInfo * info = NULL ;\n info = g_file_query_info ( volatile_file , G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK \",\" G_FILE_ATTRIBUTE_STANDARD_IS_VOLATILE \",\" G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET , G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS , cancellable , error ) ;\n if ( info == NULL ) {\n return NULL ;\n }\n else {\n gboolean is_volatile ;\n is_volatile = g_file_info_get_attribute_boolean ( info , G_FILE_ATTRIBUTE_STANDARD_IS_VOLATILE ) ;\n if ( is_volatile ) {\n const gchar * target ;\n target = g_file_info_get_symlink_target ( info ) ;\n real_file = g_file_resolve_relative_path ( volatile_file , target ) ;\n }\n }\n g_object_unref ( info ) ;\n if ( real_file == NULL ) {\n real_file = g_object_ref ( volatile_file ) ;\n }\n return real_file ;\n }"}
{"idx": 2369, "target": 0, "func": "static bool steal_time_msr_needed ( void * opaque ) {\n X86CPU * cpu = opaque ;\n return cpu -> env . steal_time_msr != 0 ;\n }"}
{"idx": 2370, "target": 0, "func": "static void build_page_bitmap ( PageDesc * p ) {\n int n , tb_start , tb_end ;\n TranslationBlock * tb ;\n p -> code_bitmap = g_malloc0 ( TARGET_PAGE_SIZE / 8 ) ;\n tb = p -> first_tb ;\n while ( tb != NULL ) {\n n = ( uintptr_t ) tb & 3 ;\n tb = ( TranslationBlock * ) ( ( uintptr_t ) tb & ~ 3 ) ;\n if ( n == 0 ) {\n tb_start = tb -> pc & ~ TARGET_PAGE_MASK ;\n tb_end = tb_start + tb -> size ;\n if ( tb_end > TARGET_PAGE_SIZE ) {\n tb_end = TARGET_PAGE_SIZE ;\n }\n }\n else {\n tb_start = 0 ;\n tb_end = ( ( tb -> pc + tb -> size ) & ~ TARGET_PAGE_MASK ) ;\n }\n set_bits ( p -> code_bitmap , tb_start , tb_end - tb_start ) ;\n tb = tb -> page_next [ n ] ;\n }\n }"}
{"idx": 2371, "target": 1, "func": "static void _LMBCSToUnicodeWithOffsets ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n char LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n UChar uniChar ;\n const char * saveSource ;\n const char * pStartLMBCS = args -> source ;\n const char * errSource = NULL ;\n int8_t savebytes = 0 ;\n while ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit > args -> target ) {\n saveSource = args -> source ;\n if ( args -> converter -> toULength ) {\n const char * saveSourceLimit ;\n size_t size_old = args -> converter -> toULength ;\n size_t size_new_maybe_1 = sizeof ( LMBCS ) - size_old ;\n size_t size_new_maybe_2 = args -> sourceLimit - args -> source ;\n size_t size_new = ( size_new_maybe_1 < size_new_maybe_2 ) ? size_new_maybe_1 : size_new_maybe_2 ;\n uprv_memcpy ( LMBCS , args -> converter -> toUBytes , size_old ) ;\n uprv_memcpy ( LMBCS + size_old , args -> source , size_new ) ;\n saveSourceLimit = args -> sourceLimit ;\n args -> source = errSource = LMBCS ;\n args -> sourceLimit = LMBCS + size_old + size_new ;\n savebytes = ( int8_t ) ( size_old + size_new ) ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n args -> source = saveSource + ( ( args -> source - LMBCS ) - size_old ) ;\n args -> sourceLimit = saveSourceLimit ;\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n args -> converter -> toULength = savebytes ;\n uprv_memcpy ( args -> converter -> toUBytes , LMBCS , savebytes ) ;\n args -> source = args -> sourceLimit ;\n * err = U_ZERO_ERROR ;\n return ;\n }\n else {\n args -> converter -> toULength = 0 ;\n }\n }\n else {\n errSource = saveSource ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n savebytes = ( int8_t ) ( args -> source - saveSource ) ;\n }\n if ( U_SUCCESS ( * err ) ) {\n if ( uniChar < 0xfffe ) {\n * ( args -> target ) ++ = uniChar ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = ( int32_t ) ( saveSource - pStartLMBCS ) ;\n }\n }\n else if ( uniChar == 0xfffe ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n }\n if ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit <= args -> target ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n else if ( U_FAILURE ( * err ) ) {\n args -> converter -> toULength = savebytes ;\n if ( savebytes > 0 ) {\n uprv_memcpy ( args -> converter -> toUBytes , errSource , savebytes ) ;\n }\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n * err = U_ZERO_ERROR ;\n }\n }\n }"}
{"idx": 2372, "target": 0, "func": "char * curl_easy_unescape ( struct Curl_easy * data , const char * string , int length , int * olen ) {\n char * str = NULL ;\n if ( length >= 0 ) {\n size_t inputlen = length ;\n size_t outputlen ;\n CURLcode res = Curl_urldecode ( data , string , inputlen , & str , & outputlen , FALSE ) ;\n if ( res ) return NULL ;\n if ( olen ) {\n if ( outputlen <= ( size_t ) INT_MAX ) * olen = curlx_uztosi ( outputlen ) ;\n else Curl_safefree ( str ) ;\n }\n }\n return str ;\n }"}
{"idx": 2373, "target": 0, "func": "static inline RV34VLC * choose_vlc_set ( int quant , int mod , int type ) {\n if ( mod == 2 && quant < 19 ) quant += 10 ;\n else if ( mod && quant < 26 ) quant += 5 ;\n return type ? & inter_vlcs [ rv34_quant_to_vlc_set [ 1 ] [ av_clip ( quant , 0 , 30 ) ] ] : & intra_vlcs [ rv34_quant_to_vlc_set [ 0 ] [ av_clip ( quant , 0 , 30 ) ] ] ;\n }"}
{"idx": 2374, "target": 0, "func": "static int dissect_h225_Progress_UUIE ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 414 \"./asn1/h225/h225.cnf\" h225_packet_info * h225_pi ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_Progress_UUIE , Progress_UUIE_sequence ) ;\n # line 418 \"./asn1/h225/h225.cnf\" h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> cs_type = H225_PROGRESS ;\n if ( contains_faststart ) {\n char temp [ 50 ] ;\n g_snprintf ( temp , 50 , \"%s OLC (%s)\" , val_to_str ( h225_pi -> cs_type , T_h323_message_body_vals , \"<unknown>\" ) , h225_pi -> frame_label ) ;\n g_strlcpy ( h225_pi -> frame_label , temp , 50 ) ;\n }\n else g_snprintf ( h225_pi -> frame_label , 50 , \"%s\" , val_to_str ( h225_pi -> cs_type , T_h323_message_body_vals , \"<unknown>\" ) ) ;\n }\n return offset ;\n }"}
{"idx": 2375, "target": 0, "func": "void PNGAPI png_set_benign_errors ( png_structp png_ptr , int allowed ) {\n png_debug ( 1 , \"in png_set_benign_errors\" ) ;\n if ( allowed ) png_ptr -> flags |= PNG_FLAG_BENIGN_ERRORS_WARN ;\n else png_ptr -> flags &= ~ PNG_FLAG_BENIGN_ERRORS_WARN ;\n }"}
{"idx": 2376, "target": 0, "func": "void create_script_for_old_cluster_deletion ( char * * deletion_script_file_name ) {\n FILE * script = NULL ;\n int tblnum ;\n char old_cluster_pgdata [ MAXPGPATH ] , new_cluster_pgdata [ MAXPGPATH ] ;\n * deletion_script_file_name = psprintf ( \"%sdelete_old_cluster.%s\" , SCRIPT_PREFIX , SCRIPT_EXT ) ;\n strlcpy ( old_cluster_pgdata , old_cluster . pgdata , MAXPGPATH ) ;\n canonicalize_path ( old_cluster_pgdata ) ;\n strlcpy ( new_cluster_pgdata , new_cluster . pgdata , MAXPGPATH ) ;\n canonicalize_path ( new_cluster_pgdata ) ;\n if ( path_is_prefix_of_path ( old_cluster_pgdata , new_cluster_pgdata ) ) {\n pg_log ( PG_WARNING , \"\\nWARNING: new data directory should not be inside the old data directory, e.g. %s\\n\" , old_cluster_pgdata ) ;\n unlink ( * deletion_script_file_name ) ;\n pg_free ( * deletion_script_file_name ) ;\n * deletion_script_file_name = NULL ;\n return ;\n }\n for ( tblnum = 0 ;\n tblnum < os_info . num_old_tablespaces ;\n tblnum ++ ) {\n char old_tablespace_dir [ MAXPGPATH ] ;\n strlcpy ( old_tablespace_dir , os_info . old_tablespaces [ tblnum ] , MAXPGPATH ) ;\n canonicalize_path ( old_tablespace_dir ) ;\n if ( path_is_prefix_of_path ( old_cluster_pgdata , old_tablespace_dir ) ) {\n pg_log ( PG_WARNING , \"\\nWARNING: user-defined tablespace locations should not be inside the data directory, e.g. %s\\n\" , old_tablespace_dir ) ;\n unlink ( * deletion_script_file_name ) ;\n pg_free ( * deletion_script_file_name ) ;\n * deletion_script_file_name = NULL ;\n return ;\n }\n }\n prep_status ( \"Creating script to delete old cluster\" ) ;\n if ( ( script = fopen_priv ( * deletion_script_file_name , \"w\" ) ) == NULL ) pg_fatal ( \"Could not open file \\\"%s\\\": %s\\n\" , * deletion_script_file_name , getErrorText ( ) ) ;\n # ifndef WIN32 fprintf ( script , \"#!/bin/sh\\n\\n\" ) ;\n # endif fprintf ( script , RMDIR_CMD \" %c%s%c\\n\" , PATH_QUOTE , fix_path_separator ( old_cluster . pgdata ) , PATH_QUOTE ) ;\n for ( tblnum = 0 ;\n tblnum < os_info . num_old_tablespaces ;\n tblnum ++ ) {\n if ( strlen ( old_cluster . tablespace_suffix ) == 0 ) {\n int dbnum ;\n fprintf ( script , \"\\n\" ) ;\n if ( GET_MAJOR_VERSION ( old_cluster . major_version ) <= 804 ) fprintf ( script , RM_CMD \" %s%cPG_VERSION\\n\" , fix_path_separator ( os_info . old_tablespaces [ tblnum ] ) , PATH_SEPARATOR ) ;\n for ( dbnum = 0 ;\n dbnum < old_cluster . dbarr . ndbs ;\n dbnum ++ ) fprintf ( script , RMDIR_CMD \" %c%s%c%d%c\\n\" , PATH_QUOTE , fix_path_separator ( os_info . old_tablespaces [ tblnum ] ) , PATH_SEPARATOR , old_cluster . dbarr . dbs [ dbnum ] . db_oid , PATH_QUOTE ) ;\n }\n else {\n char * suffix_path = pg_strdup ( old_cluster . tablespace_suffix ) ;\n fprintf ( script , RMDIR_CMD \" %c%s%s%c\\n\" , PATH_QUOTE , fix_path_separator ( os_info . old_tablespaces [ tblnum ] ) , fix_path_separator ( suffix_path ) , PATH_QUOTE ) ;\n pfree ( suffix_path ) ;\n }\n }\n fclose ( script ) ;\n # ifndef WIN32 if ( chmod ( * deletion_script_file_name , S_IRWXU ) != 0 ) pg_fatal ( \"Could not add execute permission to file \\\"%s\\\": %s\\n\" , * deletion_script_file_name , getErrorText ( ) ) ;\n # endif check_ok ( ) ;\n }"}
{"idx": 2377, "target": 0, "func": "static void ctl_putcal ( const char * tag , const struct calendar * pcal ) {\n char buffer [ 100 ] ;\n unsigned numch ;\n numch = snprintf ( buffer , sizeof ( buffer ) , \"%s=%04d%02d%02d%02d%02d\" , tag , pcal -> year , pcal -> month , pcal -> monthday , pcal -> hour , pcal -> minute ) ;\n INSIST ( numch < sizeof ( buffer ) ) ;\n ctl_putdata ( buffer , numch , 0 ) ;\n return ;\n }"}
{"idx": 2378, "target": 0, "func": "static void get_system_identitier ( char * system_id , size_t size ) {\n # if defined ( HAVE_SYS_UTSNAME_H ) struct utsname u ;\n uname ( & u ) ;\n strncpy ( system_id , u . sysname , size - 1 ) ;\n system_id [ size - 1 ] = '\\0' ;\n # elif defined ( _WIN32 ) && ! defined ( __CYGWIN__ ) strncpy ( system_id , \"Windows\" , size - 1 ) ;\n system_id [ size - 1 ] = '\\0' ;\n # else # error no way to get the system identifier on your platform . # endif }"}
{"idx": 2379, "target": 0, "func": "METHOD ( certificate_t , destroy , void , private_x509_cert_t * this ) {\n if ( ref_put ( & this -> ref ) ) {\n this -> subjectAltNames -> destroy_offset ( this -> subjectAltNames , offsetof ( identification_t , destroy ) ) ;\n this -> crl_uris -> destroy_function ( this -> crl_uris , ( void * ) crl_uri_destroy ) ;\n this -> ocsp_uris -> destroy_function ( this -> ocsp_uris , free ) ;\n this -> ipAddrBlocks -> destroy_offset ( this -> ipAddrBlocks , offsetof ( traffic_selector_t , destroy ) ) ;\n this -> permitted_names -> destroy_offset ( this -> permitted_names , offsetof ( identification_t , destroy ) ) ;\n this -> excluded_names -> destroy_offset ( this -> excluded_names , offsetof ( identification_t , destroy ) ) ;\n this -> cert_policies -> destroy_function ( this -> cert_policies , ( void * ) cert_policy_destroy ) ;\n this -> policy_mappings -> destroy_function ( this -> policy_mappings , ( void * ) policy_mapping_destroy ) ;\n DESTROY_IF ( this -> issuer ) ;\n DESTROY_IF ( this -> subject ) ;\n DESTROY_IF ( this -> public_key ) ;\n chunk_free ( & this -> authKeyIdentifier ) ;\n chunk_free ( & this -> encoding ) ;\n chunk_free ( & this -> encoding_hash ) ;\n if ( ! this -> parsed ) {\n chunk_free ( & this -> signature ) ;\n chunk_free ( & this -> serialNumber ) ;\n chunk_free ( & this -> tbsCertificate ) ;\n }\n free ( this ) ;\n }\n }"}
{"idx": 2380, "target": 0, "func": "static void dissect_zcl_identify_identify ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_identify_identify_time , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n }"}
{"idx": 2381, "target": 0, "func": "static void read_tx_mode_probs ( struct tx_probs * tx_probs , vp9_reader * r ) {\n int i , j ;\n for ( i = 0 ;\n i < TX_SIZE_CONTEXTS ;\n ++ i ) for ( j = 0 ;\n j < TX_SIZES - 3 ;\n ++ j ) vp9_diff_update_prob ( r , & tx_probs -> p8x8 [ i ] [ j ] ) ;\n for ( i = 0 ;\n i < TX_SIZE_CONTEXTS ;\n ++ i ) for ( j = 0 ;\n j < TX_SIZES - 2 ;\n ++ j ) vp9_diff_update_prob ( r , & tx_probs -> p16x16 [ i ] [ j ] ) ;\n for ( i = 0 ;\n i < TX_SIZE_CONTEXTS ;\n ++ i ) for ( j = 0 ;\n j < TX_SIZES - 1 ;\n ++ j ) vp9_diff_update_prob ( r , & tx_probs -> p32x32 [ i ] [ j ] ) ;\n }"}
{"idx": 2382, "target": 0, "func": "static int dissect_h225_Information_UUIE ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 401 \"./asn1/h225/h225.cnf\" h225_packet_info * h225_pi ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_Information_UUIE , Information_UUIE_sequence ) ;\n # line 405 \"./asn1/h225/h225.cnf\" h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> cs_type = H225_INFORMATION ;\n g_snprintf ( h225_pi -> frame_label , 50 , \"%s\" , val_to_str ( h225_pi -> cs_type , T_h323_message_body_vals , \"<unknown>\" ) ) ;\n }\n return offset ;\n }"}
{"idx": 2383, "target": 0, "func": "static void _getObjectDescription ( PQExpBuffer buf , TocEntry * te , ArchiveHandle * AH ) {\n const char * type = te -> desc ;\n if ( strcmp ( type , \"VIEW\" ) == 0 || strcmp ( type , \"SEQUENCE\" ) == 0 || strcmp ( type , \"MATERIALIZED VIEW\" ) == 0 ) type = \"TABLE\" ;\n if ( strcmp ( type , \"COLLATION\" ) == 0 || strcmp ( type , \"CONVERSION\" ) == 0 || strcmp ( type , \"DOMAIN\" ) == 0 || strcmp ( type , \"TABLE\" ) == 0 || strcmp ( type , \"TYPE\" ) == 0 || strcmp ( type , \"FOREIGN TABLE\" ) == 0 || strcmp ( type , \"TEXT SEARCH DICTIONARY\" ) == 0 || strcmp ( type , \"TEXT SEARCH CONFIGURATION\" ) == 0 || strcmp ( type , \"DATABASE\" ) == 0 || strcmp ( type , \"PROCEDURAL LANGUAGE\" ) == 0 || strcmp ( type , \"SCHEMA\" ) == 0 || strcmp ( type , \"FOREIGN DATA WRAPPER\" ) == 0 || strcmp ( type , \"SERVER\" ) == 0 || strcmp ( type , \"USER MAPPING\" ) == 0 ) {\n appendPQExpBuffer ( buf , \"%s %s\" , type , fmtId ( te -> tag ) ) ;\n return ;\n }\n if ( strcmp ( type , \"BLOB\" ) == 0 ) {\n appendPQExpBuffer ( buf , \"LARGE OBJECT %s\" , te -> tag ) ;\n return ;\n }\n if ( strcmp ( type , \"AGGREGATE\" ) == 0 || strcmp ( type , \"FUNCTION\" ) == 0 || strcmp ( type , \"OPERATOR\" ) == 0 || strcmp ( type , \"OPERATOR CLASS\" ) == 0 || strcmp ( type , \"OPERATOR FAMILY\" ) == 0 ) {\n char * first = pg_strdup ( te -> dropStmt + 5 ) ;\n char * last ;\n last = first + strlen ( first ) - 1 ;\n while ( last >= first && ( * last == '\\n' || * last == ';\n' ) ) last -- ;\n * ( last + 1 ) = '\\0' ;\n appendPQExpBufferStr ( buf , first ) ;\n free ( first ) ;\n return ;\n }\n write_msg ( modulename , \"WARNING: don't know how to set owner for object type %s\\n\" , type ) ;\n }"}
{"idx": 2384, "target": 0, "func": "static int virLogSetDefaultOutputToJournald ( void ) {\n virLogPriority priority = virLogDefaultPriority ;\n if ( priority == VIR_LOG_DEBUG ) priority = VIR_LOG_INFO ;\n return virAsprintf ( & virLogDefaultOutput , \"%d:journald\" , priority ) ;\n }"}
{"idx": 2385, "target": 0, "func": "static int s_aos_seek ( register stream * s , gs_offset_t pos ) {\n uint end = s -> srlimit - s -> cbuf + 1 ;\n long offset = pos - s -> position ;\n if ( offset >= 0 && offset <= end ) {\n s -> srptr = s -> cbuf + offset - 1 ;\n return 0 ;\n }\n if ( pos < 0 || pos > s -> file_limit ) return ERRC ;\n s -> srptr = s -> srlimit = s -> cbuf - 1 ;\n s -> end_status = 0 ;\n s -> position = pos ;\n return 0 ;\n }"}
{"idx": 2386, "target": 0, "func": "static void pdf_run_gs_op ( fz_context * ctx , pdf_processor * proc , int b ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_gstate * gstate = pdf_flush_text ( ctx , pr ) ;\n gstate -> fill . color_params . op = b ;\n }"}
{"idx": 2387, "target": 0, "func": "void * concat_gen_fifos ( void * first , void * second ) {\n gen_fifo * pf1 ;\n gen_fifo * pf2 ;\n pf1 = first ;\n pf2 = second ;\n if ( NULL == pf1 ) return pf2 ;\n else if ( NULL == pf2 ) return pf1 ;\n CONCAT_FIFO ( * pf1 , * pf2 , link ) ;\n free ( pf2 ) ;\n return pf1 ;\n }"}
{"idx": 2388, "target": 0, "func": "static void show_extended_objects ( struct bitmap * objects , show_reachable_fn show_reach ) {\n struct eindex * eindex = & bitmap_git . ext_index ;\n uint32_t i ;\n for ( i = 0 ;\n i < eindex -> count ;\n ++ i ) {\n struct object * obj ;\n if ( ! bitmap_get ( objects , bitmap_git . pack -> num_objects + i ) ) continue ;\n obj = eindex -> objects [ i ] ;\n show_reach ( obj -> oid . hash , obj -> type , 0 , eindex -> hashes [ i ] , NULL , 0 ) ;\n }\n }"}
{"idx": 2389, "target": 0, "func": "static __always_inline __le64 __cpu_to_le64p ( const __u64 * p ) {\n return ( __le64 ) * p ;\n }"}
{"idx": 2390, "target": 0, "func": "static struct rows_data * find_rowsin_msg_data ( struct mswsp_ct * ct , packet_info * pinfo , void * private_data ) {\n struct rows_data * result = NULL ;\n struct message_data * data = find_matching_request_by_fid ( ct , pinfo , 0xCC , TRUE , private_data ) ;\n if ( data ) {\n result = & data -> content . rowsin ;\n }\n return result ;\n }"}
{"idx": 2391, "target": 0, "func": "unsigned long ssl3_output_cert_chain ( SSL * s , X509 * x ) {\n unsigned char * p ;\n int i ;\n unsigned long l = 7 ;\n BUF_MEM * buf ;\n int no_chain ;\n if ( ( s -> mode & SSL_MODE_NO_AUTO_CHAIN ) || s -> ctx -> extra_certs ) no_chain = 1 ;\n else no_chain = 0 ;\n buf = s -> init_buf ;\n if ( ! BUF_MEM_grow_clean ( buf , 10 ) ) {\n SSLerr ( SSL_F_SSL3_OUTPUT_CERT_CHAIN , ERR_R_BUF_LIB ) ;\n return ( 0 ) ;\n }\n if ( x != NULL ) {\n if ( no_chain ) {\n if ( ssl3_add_cert_to_buf ( buf , & l , x ) ) return ( 0 ) ;\n }\n else {\n X509_STORE_CTX xs_ctx ;\n if ( ! X509_STORE_CTX_init ( & xs_ctx , s -> ctx -> cert_store , x , NULL ) ) {\n SSLerr ( SSL_F_SSL3_OUTPUT_CERT_CHAIN , ERR_R_X509_LIB ) ;\n return ( 0 ) ;\n }\n X509_verify_cert ( & xs_ctx ) ;\n ERR_clear_error ( ) ;\n for ( i = 0 ;\n i < sk_X509_num ( xs_ctx . chain ) ;\n i ++ ) {\n x = sk_X509_value ( xs_ctx . chain , i ) ;\n if ( ssl3_add_cert_to_buf ( buf , & l , x ) ) {\n X509_STORE_CTX_cleanup ( & xs_ctx ) ;\n return 0 ;\n }\n }\n X509_STORE_CTX_cleanup ( & xs_ctx ) ;\n }\n }\n for ( i = 0 ;\n i < sk_X509_num ( s -> ctx -> extra_certs ) ;\n i ++ ) {\n x = sk_X509_value ( s -> ctx -> extra_certs , i ) ;\n if ( ssl3_add_cert_to_buf ( buf , & l , x ) ) return ( 0 ) ;\n }\n l -= 7 ;\n p = ( unsigned char * ) & ( buf -> data [ 4 ] ) ;\n l2n3 ( l , p ) ;\n l += 3 ;\n p = ( unsigned char * ) & ( buf -> data [ 0 ] ) ;\n * ( p ++ ) = SSL3_MT_CERTIFICATE ;\n l2n3 ( l , p ) ;\n l += 4 ;\n return ( l ) ;\n }"}
{"idx": 2392, "target": 0, "func": "static int fz_cmp_link_key ( fz_context * ctx , void * k0_ , void * k1_ ) {\n fz_link_key * k0 = ( fz_link_key * ) k0_ ;\n fz_link_key * k1 = ( fz_link_key * ) k1_ ;\n return k0 -> proof == k1 -> proof && k0 -> src_extras == k1 -> src_extras && k0 -> dst_extras == k1 -> dst_extras && k0 -> copy_spots == k1 -> copy_spots && k0 -> depth == k1 -> depth && k0 -> rend . bp == k1 -> rend . bp && k0 -> rend . ri == k1 -> rend . ri && memcmp ( k0 -> dst_md5 , k1 -> dst_md5 , 16 ) == 0 && memcmp ( k0 -> src_md5 , k1 -> src_md5 , 16 ) ;\n }"}
{"idx": 2393, "target": 0, "func": "SPL_METHOD ( RecursiveDirectoryIterator , hasChildren ) {\n zend_bool allow_links = 0 ;\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"|b\" , & allow_links ) == FAILURE ) {\n return ;\n }\n if ( spl_filesystem_is_invalid_or_dot ( intern -> u . dir . entry . d_name ) ) {\n RETURN_FALSE ;\n }\n else {\n spl_filesystem_object_get_file_name ( intern TSRMLS_CC ) ;\n if ( ! allow_links && ! ( intern -> flags & SPL_FILE_DIR_FOLLOW_SYMLINKS ) ) {\n php_stat ( intern -> file_name , intern -> file_name_len , FS_IS_LINK , return_value TSRMLS_CC ) ;\n if ( zend_is_true ( return_value ) ) {\n RETURN_FALSE ;\n }\n }\n php_stat ( intern -> file_name , intern -> file_name_len , FS_IS_DIR , return_value TSRMLS_CC ) ;\n }\n }"}
{"idx": 2394, "target": 0, "func": "static int loop_continue ( i_ctx_t * i_ctx_p ) {\n register es_ptr ep = esp ;\n ref_assign ( ep + 2 , ep ) ;\n esp = ep + 2 ;\n return o_push_estack ;\n }"}
{"idx": 2395, "target": 0, "func": "static int ebml_parse_nest ( MatroskaDemuxContext * matroska , EbmlSyntax * syntax , void * data ) {\n int i , res = 0 ;\n for ( i = 0 ;\n syntax [ i ] . id ;\n i ++ ) switch ( syntax [ i ] . type ) {\n case EBML_UINT : * ( uint64_t * ) ( ( char * ) data + syntax [ i ] . data_offset ) = syntax [ i ] . def . u ;\n break ;\n case EBML_FLOAT : * ( double * ) ( ( char * ) data + syntax [ i ] . data_offset ) = syntax [ i ] . def . f ;\n break ;\n case EBML_STR : case EBML_UTF8 : if ( syntax [ i ] . def . s ) {\n uint8_t * * dst = ( uint8_t * * ) ( ( uint8_t * ) data + syntax [ i ] . data_offset ) ;\n * dst = av_strdup ( syntax [ i ] . def . s ) ;\n if ( ! * dst ) return AVERROR ( ENOMEM ) ;\n }\n break ;\n }\n while ( ! res && ! ebml_level_end ( matroska ) ) res = ebml_parse ( matroska , syntax , data ) ;\n return res ;\n }"}
{"idx": 2396, "target": 0, "func": "static int32_t U_CALLCONV uprv_copyArray16 ( const UDataSwapper * ds , const void * inData , int32_t length , void * outData , UErrorCode * pErrorCode ) {\n if ( pErrorCode == NULL || U_FAILURE ( * pErrorCode ) ) {\n return 0 ;\n }\n if ( ds == NULL || inData == NULL || length < 0 || ( length & 1 ) != 0 || outData == NULL ) {\n * pErrorCode = U_ILLEGAL_ARGUMENT_ERROR ;\n return 0 ;\n }\n if ( length > 0 && inData != outData ) {\n uprv_memcpy ( outData , inData , length ) ;\n }\n return length ;\n }"}
{"idx": 2397, "target": 0, "func": "static ossl_inline void lh_ ## type ## _stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING )"}
{"idx": 2398, "target": 1, "func": "static int32_t u_scanf_hex_handler ( UFILE * input , u_scanf_spec_info * info , ufmt_args * args , const UChar * fmt , int32_t * fmtConsumed , int32_t * argConverted ) {\n int32_t len ;\n int32_t skipped ;\n void * num = ( void * ) ( args [ 0 ] . ptrValue ) ;\n int64_t result ;\n skipped = u_scanf_skip_leading_ws ( input , info -> fPadChar ) ;\n ufile_fill_uchar_buffer ( input ) ;\n len = ( int32_t ) ( input -> str . fLimit - input -> str . fPos ) ;\n if ( info -> fWidth != - 1 ) len = ufmt_min ( len , info -> fWidth ) ;\n if ( * ( input -> str . fPos ) == 0x0030 && ( * ( input -> str . fPos + 1 ) == 0x0078 || * ( input -> str . fPos + 1 ) == 0x0058 ) ) {\n input -> str . fPos += 2 ;\n len -= 2 ;\n }\n result = ufmt_uto64 ( input -> str . fPos , & len , 16 ) ;\n input -> str . fPos += len ;\n if ( ! info -> fSkipArg ) {\n if ( info -> fIsShort ) * ( int16_t * ) num = ( int16_t ) ( UINT16_MAX & result ) ;\n else if ( info -> fIsLongLong ) * ( int64_t * ) num = result ;\n else * ( int32_t * ) num = ( int32_t ) ( UINT32_MAX & result ) ;\n }\n * argConverted = ! info -> fSkipArg ;\n return len + skipped ;\n }"}
{"idx": 2399, "target": 0, "func": "void proto_reg_handoff_bta2dp ( void ) {\n sbc_handle = find_dissector_add_dependency ( \"sbc\" , proto_bta2dp ) ;\n mp2t_handle = find_dissector_add_dependency ( \"mp2t\" , proto_bta2dp ) ;\n mpeg_audio_handle = find_dissector_add_dependency ( \"mpeg-audio\" , proto_bta2dp ) ;\n atrac_handle = find_dissector_add_dependency ( \"atrac\" , proto_bta2dp ) ;\n rtp_handle = find_dissector_add_dependency ( \"rtp\" , proto_bta2dp ) ;\n dissector_add_string ( \"bluetooth.uuid\" , \"110a\" , bta2dp_handle ) ;\n dissector_add_string ( \"bluetooth.uuid\" , \"110b\" , bta2dp_handle ) ;\n dissector_add_string ( \"bluetooth.uuid\" , \"110d\" , bta2dp_handle ) ;\n dissector_add_for_decode_as ( \"btl2cap.cid\" , bta2dp_handle ) ;\n }"}
{"idx": 2400, "target": 0, "func": "static int tls_process_cke_rsa ( SSL * s , PACKET * pkt , int * al ) {\n # ifndef OPENSSL_NO_RSA unsigned char rand_premaster_secret [ SSL_MAX_MASTER_KEY_LENGTH ] ;\n int decrypt_len ;\n unsigned char decrypt_good , version_good ;\n size_t j , padding_len ;\n PACKET enc_premaster ;\n RSA * rsa = NULL ;\n unsigned char * rsa_decrypt = NULL ;\n int ret = 0 ;\n rsa = EVP_PKEY_get0_RSA ( s -> cert -> pkeys [ SSL_PKEY_RSA_ENC ] . privatekey ) ;\n if ( rsa == NULL ) {\n * al = SSL_AD_HANDSHAKE_FAILURE ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_RSA , SSL_R_MISSING_RSA_CERTIFICATE ) ;\n return 0 ;\n }\n if ( s -> version == SSL3_VERSION || s -> version == DTLS1_BAD_VER ) {\n enc_premaster = * pkt ;\n }\n else {\n if ( ! PACKET_get_length_prefixed_2 ( pkt , & enc_premaster ) || PACKET_remaining ( pkt ) != 0 ) {\n * al = SSL_AD_DECODE_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_RSA , SSL_R_LENGTH_MISMATCH ) ;\n return 0 ;\n }\n }\n if ( RSA_size ( rsa ) < SSL_MAX_MASTER_KEY_LENGTH ) {\n * al = SSL_AD_INTERNAL_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_RSA , RSA_R_KEY_SIZE_TOO_SMALL ) ;\n return 0 ;\n }\n rsa_decrypt = OPENSSL_malloc ( RSA_size ( rsa ) ) ;\n if ( rsa_decrypt == NULL ) {\n * al = SSL_AD_INTERNAL_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_RSA , ERR_R_MALLOC_FAILURE ) ;\n return 0 ;\n }\n if ( RAND_bytes ( rand_premaster_secret , sizeof ( rand_premaster_secret ) ) <= 0 ) goto err ;\n decrypt_len = RSA_private_decrypt ( PACKET_remaining ( & enc_premaster ) , PACKET_data ( & enc_premaster ) , rsa_decrypt , rsa , RSA_NO_PADDING ) ;\n if ( decrypt_len < 0 ) goto err ;\n if ( decrypt_len < 11 + SSL_MAX_MASTER_KEY_LENGTH ) {\n * al = SSL_AD_DECRYPT_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_RSA , SSL_R_DECRYPTION_FAILED ) ;\n goto err ;\n }\n padding_len = decrypt_len - SSL_MAX_MASTER_KEY_LENGTH ;\n decrypt_good = constant_time_eq_int_8 ( rsa_decrypt [ 0 ] , 0 ) & constant_time_eq_int_8 ( rsa_decrypt [ 1 ] , 2 ) ;\n for ( j = 2 ;\n j < padding_len - 1 ;\n j ++ ) {\n decrypt_good &= ~ constant_time_is_zero_8 ( rsa_decrypt [ j ] ) ;\n }\n decrypt_good &= constant_time_is_zero_8 ( rsa_decrypt [ padding_len - 1 ] ) ;\n version_good = constant_time_eq_8 ( rsa_decrypt [ padding_len ] , ( unsigned ) ( s -> client_version >> 8 ) ) ;\n version_good &= constant_time_eq_8 ( rsa_decrypt [ padding_len + 1 ] , ( unsigned ) ( s -> client_version & 0xff ) ) ;\n if ( s -> options & SSL_OP_TLS_ROLLBACK_BUG ) {\n unsigned char workaround_good ;\n workaround_good = constant_time_eq_8 ( rsa_decrypt [ padding_len ] , ( unsigned ) ( s -> version >> 8 ) ) ;\n workaround_good &= constant_time_eq_8 ( rsa_decrypt [ padding_len + 1 ] , ( unsigned ) ( s -> version & 0xff ) ) ;\n version_good |= workaround_good ;\n }\n decrypt_good &= version_good ;\n for ( j = 0 ;\n j < sizeof ( rand_premaster_secret ) ;\n j ++ ) {\n rsa_decrypt [ padding_len + j ] = constant_time_select_8 ( decrypt_good , rsa_decrypt [ padding_len + j ] , rand_premaster_secret [ j ] ) ;\n }\n if ( ! ssl_generate_master_secret ( s , rsa_decrypt + padding_len , sizeof ( rand_premaster_secret ) , 0 ) ) {\n * al = SSL_AD_INTERNAL_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_RSA , ERR_R_INTERNAL_ERROR ) ;\n goto err ;\n }\n ret = 1 ;\n err : OPENSSL_free ( rsa_decrypt ) ;\n return ret ;\n # else * al = SSL_AD_INTERNAL_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_RSA , ERR_R_INTERNAL_ERROR ) ;\n return 0 ;\n # endif }"}
{"idx": 2401, "target": 0, "func": "const YV12_BUFFER_CONFIG * vp9_get_scaled_ref_frame ( const VP9_COMP * cpi , int ref_frame ) {\n const VP9_COMMON * const cm = & cpi -> common ;\n const int ref_idx = cm -> ref_frame_map [ get_ref_frame_idx ( cpi , ref_frame ) ] ;\n const int scaled_idx = cpi -> scaled_ref_idx [ ref_frame - 1 ] ;\n return ( scaled_idx != ref_idx ) ? & cm -> frame_bufs [ scaled_idx ] . buf : NULL ;\n }"}
{"idx": 2402, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( HttpsEngagementPageLoadMetricsBrowserTest , Simple_Http ) {\n StartHttpServer ( ) ;\n base : : TimeDelta upper_bound = NavigateInForegroundAndCloseWithTiming ( http_test_server_ -> GetURL ( \"/simple.html\" ) ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpEngagementHistogram , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementHistogram , 0 ) ;\n int32_t bucket_min = histogram_tester_ . GetAllSamples ( internal : : kHttpEngagementHistogram ) [ 0 ] . min ;\n EXPECT_GE ( upper_bound . InMilliseconds ( ) , bucket_min ) ;\n EXPECT_LT ( 0 , bucket_min ) ;\n }"}
{"idx": 2403, "target": 1, "func": "static inline void vc1_pred_mv ( VC1Context * v , int n , int dmv_x , int dmv_y , int mv1 , int r_x , int r_y , uint8_t * is_intra , int pred_flag , int dir ) {\n MpegEncContext * s = & v -> s ;\n int xy , wrap , off = 0 ;\n int16_t * A , * B , * C ;\n int px , py ;\n int sum ;\n int mixedmv_pic , num_samefield = 0 , num_oppfield = 0 ;\n int opposite , a_f , b_f , c_f ;\n int16_t field_predA [ 2 ] ;\n int16_t field_predB [ 2 ] ;\n int16_t field_predC [ 2 ] ;\n int a_valid , b_valid , c_valid ;\n int hybridmv_thresh , y_bias = 0 ;\n if ( v -> mv_mode == MV_PMODE_MIXED_MV || ( ( v -> mv_mode == MV_PMODE_INTENSITY_COMP ) && ( v -> mv_mode2 == MV_PMODE_MIXED_MV ) ) ) mixedmv_pic = 1 ;\n else mixedmv_pic = 0 ;\n dmv_x <<= 1 - s -> quarter_sample ;\n dmv_y <<= 1 - s -> quarter_sample ;\n wrap = s -> b8_stride ;\n xy = s -> block_index [ n ] ;\n if ( s -> mb_intra ) {\n s -> mv [ 0 ] [ n ] [ 0 ] = s -> current_picture . f . motion_val [ 0 ] [ xy + v -> blocks_off ] [ 0 ] = 0 ;\n s -> mv [ 0 ] [ n ] [ 1 ] = s -> current_picture . f . motion_val [ 0 ] [ xy + v -> blocks_off ] [ 1 ] = 0 ;\n s -> current_picture . f . motion_val [ 1 ] [ xy + v -> blocks_off ] [ 0 ] = 0 ;\n s -> current_picture . f . motion_val [ 1 ] [ xy + v -> blocks_off ] [ 1 ] = 0 ;\n if ( mv1 ) {\n s -> current_picture . f . motion_val [ 0 ] [ xy + 1 + v -> blocks_off ] [ 0 ] = 0 ;\n s -> current_picture . f . motion_val [ 0 ] [ xy + 1 + v -> blocks_off ] [ 1 ] = 0 ;\n s -> current_picture . f . motion_val [ 0 ] [ xy + wrap + v -> blocks_off ] [ 0 ] = 0 ;\n s -> current_picture . f . motion_val [ 0 ] [ xy + wrap + v -> blocks_off ] [ 1 ] = 0 ;\n s -> current_picture . f . motion_val [ 0 ] [ xy + wrap + 1 + v -> blocks_off ] [ 0 ] = 0 ;\n s -> current_picture . f . motion_val [ 0 ] [ xy + wrap + 1 + v -> blocks_off ] [ 1 ] = 0 ;\n v -> luma_mv [ s -> mb_x ] [ 0 ] = v -> luma_mv [ s -> mb_x ] [ 1 ] = 0 ;\n s -> current_picture . f . motion_val [ 1 ] [ xy + 1 + v -> blocks_off ] [ 0 ] = 0 ;\n s -> current_picture . f . motion_val [ 1 ] [ xy + 1 + v -> blocks_off ] [ 1 ] = 0 ;\n s -> current_picture . f . motion_val [ 1 ] [ xy + wrap ] [ 0 ] = 0 ;\n s -> current_picture . f . motion_val [ 1 ] [ xy + wrap + v -> blocks_off ] [ 1 ] = 0 ;\n s -> current_picture . f . motion_val [ 1 ] [ xy + wrap + 1 + v -> blocks_off ] [ 0 ] = 0 ;\n s -> current_picture . f . motion_val [ 1 ] [ xy + wrap + 1 + v -> blocks_off ] [ 1 ] = 0 ;\n }\n return ;\n }\n C = s -> current_picture . f . motion_val [ dir ] [ xy - 1 + v -> blocks_off ] ;\n A = s -> current_picture . f . motion_val [ dir ] [ xy - wrap + v -> blocks_off ] ;\n if ( mv1 ) {\n if ( v -> field_mode && mixedmv_pic ) off = ( s -> mb_x == ( s -> mb_width - 1 ) ) ? - 2 : 2 ;\n else off = ( s -> mb_x == ( s -> mb_width - 1 ) ) ? - 1 : 2 ;\n }\n else {\n switch ( n ) {\n case 0 : off = ( s -> mb_x > 0 ) ? - 1 : 1 ;\n break ;\n case 1 : off = ( s -> mb_x == ( s -> mb_width - 1 ) ) ? - 1 : 1 ;\n break ;\n case 2 : off = 1 ;\n break ;\n case 3 : off = - 1 ;\n }\n }\n B = s -> current_picture . f . motion_val [ dir ] [ xy - wrap + off + v -> blocks_off ] ;\n a_valid = ! s -> first_slice_line || ( n == 2 || n == 3 ) ;\n b_valid = a_valid && ( s -> mb_width > 1 ) ;\n c_valid = s -> mb_x || ( n == 1 || n == 3 ) ;\n if ( v -> field_mode ) {\n a_valid = a_valid && ! is_intra [ xy - wrap ] ;\n b_valid = b_valid && ! is_intra [ xy - wrap + off ] ;\n c_valid = c_valid && ! is_intra [ xy - 1 ] ;\n }\n if ( a_valid ) {\n a_f = v -> mv_f [ dir ] [ xy - wrap + v -> blocks_off ] ;\n num_oppfield += a_f ;\n num_samefield += 1 - a_f ;\n field_predA [ 0 ] = A [ 0 ] ;\n field_predA [ 1 ] = A [ 1 ] ;\n }\n else {\n field_predA [ 0 ] = field_predA [ 1 ] = 0 ;\n a_f = 0 ;\n }\n if ( b_valid ) {\n b_f = v -> mv_f [ dir ] [ xy - wrap + off + v -> blocks_off ] ;\n num_oppfield += b_f ;\n num_samefield += 1 - b_f ;\n field_predB [ 0 ] = B [ 0 ] ;\n field_predB [ 1 ] = B [ 1 ] ;\n }\n else {\n field_predB [ 0 ] = field_predB [ 1 ] = 0 ;\n b_f = 0 ;\n }\n if ( c_valid ) {\n c_f = v -> mv_f [ dir ] [ xy - 1 + v -> blocks_off ] ;\n num_oppfield += c_f ;\n num_samefield += 1 - c_f ;\n field_predC [ 0 ] = C [ 0 ] ;\n field_predC [ 1 ] = C [ 1 ] ;\n }\n else {\n field_predC [ 0 ] = field_predC [ 1 ] = 0 ;\n c_f = 0 ;\n }\n if ( v -> field_mode ) {\n if ( ! v -> numref ) opposite = 1 - v -> reffield ;\n else {\n if ( num_samefield <= num_oppfield ) opposite = 1 - pred_flag ;\n else opposite = pred_flag ;\n }\n }\n else opposite = 0 ;\n if ( opposite ) {\n if ( a_valid && ! a_f ) {\n field_predA [ 0 ] = scaleforopp ( v , field_predA [ 0 ] , 0 , dir ) ;\n field_predA [ 1 ] = scaleforopp ( v , field_predA [ 1 ] , 1 , dir ) ;\n }\n if ( b_valid && ! b_f ) {\n field_predB [ 0 ] = scaleforopp ( v , field_predB [ 0 ] , 0 , dir ) ;\n field_predB [ 1 ] = scaleforopp ( v , field_predB [ 1 ] , 1 , dir ) ;\n }\n if ( c_valid && ! c_f ) {\n field_predC [ 0 ] = scaleforopp ( v , field_predC [ 0 ] , 0 , dir ) ;\n field_predC [ 1 ] = scaleforopp ( v , field_predC [ 1 ] , 1 , dir ) ;\n }\n v -> mv_f [ dir ] [ xy + v -> blocks_off ] = 1 ;\n v -> ref_field_type [ dir ] = ! v -> cur_field_type ;\n }\n else {\n if ( a_valid && a_f ) {\n field_predA [ 0 ] = scaleforsame ( v , n , field_predA [ 0 ] , 0 , dir ) ;\n field_predA [ 1 ] = scaleforsame ( v , n , field_predA [ 1 ] , 1 , dir ) ;\n }\n if ( b_valid && b_f ) {\n field_predB [ 0 ] = scaleforsame ( v , n , field_predB [ 0 ] , 0 , dir ) ;\n field_predB [ 1 ] = scaleforsame ( v , n , field_predB [ 1 ] , 1 , dir ) ;\n }\n if ( c_valid && c_f ) {\n field_predC [ 0 ] = scaleforsame ( v , n , field_predC [ 0 ] , 0 , dir ) ;\n field_predC [ 1 ] = scaleforsame ( v , n , field_predC [ 1 ] , 1 , dir ) ;\n }\n v -> mv_f [ dir ] [ xy + v -> blocks_off ] = 0 ;\n v -> ref_field_type [ dir ] = v -> cur_field_type ;\n }\n if ( a_valid ) {\n px = field_predA [ 0 ] ;\n py = field_predA [ 1 ] ;\n }\n else if ( c_valid ) {\n px = field_predC [ 0 ] ;\n py = field_predC [ 1 ] ;\n }\n else if ( b_valid ) {\n px = field_predB [ 0 ] ;\n py = field_predB [ 1 ] ;\n }\n else {\n px = 0 ;\n py = 0 ;\n }\n if ( num_samefield + num_oppfield > 1 ) {\n px = mid_pred ( field_predA [ 0 ] , field_predB [ 0 ] , field_predC [ 0 ] ) ;\n py = mid_pred ( field_predA [ 1 ] , field_predB [ 1 ] , field_predC [ 1 ] ) ;\n }\n if ( ! v -> field_mode ) {\n int qx , qy , X , Y ;\n qx = ( s -> mb_x << 6 ) + ( ( n == 1 || n == 3 ) ? 32 : 0 ) ;\n qy = ( s -> mb_y << 6 ) + ( ( n == 2 || n == 3 ) ? 32 : 0 ) ;\n X = ( s -> mb_width << 6 ) - 4 ;\n Y = ( s -> mb_height << 6 ) - 4 ;\n if ( mv1 ) {\n if ( qx + px < - 60 ) px = - 60 - qx ;\n if ( qy + py < - 60 ) py = - 60 - qy ;\n }\n else {\n if ( qx + px < - 28 ) px = - 28 - qx ;\n if ( qy + py < - 28 ) py = - 28 - qy ;\n }\n if ( qx + px > X ) px = X - qx ;\n if ( qy + py > Y ) py = Y - qy ;\n }\n if ( ! v -> field_mode || s -> pict_type != AV_PICTURE_TYPE_B ) {\n hybridmv_thresh = 32 ;\n if ( a_valid && c_valid ) {\n if ( is_intra [ xy - wrap ] ) sum = FFABS ( px ) + FFABS ( py ) ;\n else sum = FFABS ( px - field_predA [ 0 ] ) + FFABS ( py - field_predA [ 1 ] ) ;\n if ( sum > hybridmv_thresh ) {\n if ( get_bits1 ( & s -> gb ) ) {\n px = field_predA [ 0 ] ;\n py = field_predA [ 1 ] ;\n }\n else {\n px = field_predC [ 0 ] ;\n py = field_predC [ 1 ] ;\n }\n }\n else {\n if ( is_intra [ xy - 1 ] ) sum = FFABS ( px ) + FFABS ( py ) ;\n else sum = FFABS ( px - field_predC [ 0 ] ) + FFABS ( py - field_predC [ 1 ] ) ;\n if ( sum > hybridmv_thresh ) {\n if ( get_bits1 ( & s -> gb ) ) {\n px = field_predA [ 0 ] ;\n py = field_predA [ 1 ] ;\n }\n else {\n px = field_predC [ 0 ] ;\n py = field_predC [ 1 ] ;\n }\n }\n }\n }\n }\n if ( v -> field_mode && v -> numref ) r_y >>= 1 ;\n if ( v -> field_mode && v -> cur_field_type && v -> ref_field_type [ dir ] == 0 ) y_bias = 1 ;\n s -> mv [ dir ] [ n ] [ 0 ] = s -> current_picture . f . motion_val [ dir ] [ xy + v -> blocks_off ] [ 0 ] = ( ( px + dmv_x + r_x ) & ( ( r_x << 1 ) - 1 ) ) - r_x ;\n s -> mv [ dir ] [ n ] [ 1 ] = s -> current_picture . f . motion_val [ dir ] [ xy + v -> blocks_off ] [ 1 ] = ( ( py + dmv_y + r_y - y_bias ) & ( ( r_y << 1 ) - 1 ) ) - r_y + y_bias ;\n if ( mv1 ) {\n s -> current_picture . f . motion_val [ dir ] [ xy + 1 + v -> blocks_off ] [ 0 ] = s -> current_picture . f . motion_val [ dir ] [ xy + v -> blocks_off ] [ 0 ] ;\n s -> current_picture . f . motion_val [ dir ] [ xy + 1 + v -> blocks_off ] [ 1 ] = s -> current_picture . f . motion_val [ dir ] [ xy + v -> blocks_off ] [ 1 ] ;\n s -> current_picture . f . motion_val [ dir ] [ xy + wrap + v -> blocks_off ] [ 0 ] = s -> current_picture . f . motion_val [ dir ] [ xy + v -> blocks_off ] [ 0 ] ;\n s -> current_picture . f . motion_val [ dir ] [ xy + wrap + v -> blocks_off ] [ 1 ] = s -> current_picture . f . motion_val [ dir ] [ xy + v -> blocks_off ] [ 1 ] ;\n s -> current_picture . f . motion_val [ dir ] [ xy + wrap + 1 + v -> blocks_off ] [ 0 ] = s -> current_picture . f . motion_val [ dir ] [ xy + v -> blocks_off ] [ 0 ] ;\n s -> current_picture . f . motion_val [ dir ] [ xy + wrap + 1 + v -> blocks_off ] [ 1 ] = s -> current_picture . f . motion_val [ dir ] [ xy + v -> blocks_off ] [ 1 ] ;\n v -> mv_f [ dir ] [ xy + 1 + v -> blocks_off ] = v -> mv_f [ dir ] [ xy + v -> blocks_off ] ;\n v -> mv_f [ dir ] [ xy + wrap + v -> blocks_off ] = v -> mv_f [ dir ] [ xy + wrap + 1 + v -> blocks_off ] = v -> mv_f [ dir ] [ xy + v -> blocks_off ] ;\n }\n }"}
{"idx": 2404, "target": 0, "func": "static int mysql_init_variables ( void ) {\n opt_skip_slave_start = opt_reckless_slave = 0 ;\n mysql_home [ 0 ] = pidfile_name [ 0 ] = log_error_file [ 0 ] = 0 ;\n # if defined ( HAVE_REALPATH ) && ! defined ( HAVE_valgrind ) && ! defined ( HAVE_BROKEN_REALPATH ) myisam_test_invalid_symlink = test_if_data_home_dir ;\n # endif opt_log = opt_slow_log = 0 ;\n opt_bin_log = opt_bin_log_used = 0 ;\n opt_disable_networking = opt_skip_show_db = 0 ;\n opt_skip_name_resolve = 0 ;\n opt_ignore_builtin_innodb = 0 ;\n opt_logname = opt_binlog_index_name = opt_slow_logname = 0 ;\n opt_log_basename = 0 ;\n opt_tc_log_file = ( char * ) \"tc.log\" ;\n opt_secure_auth = 0 ;\n opt_bootstrap = opt_myisam_log = 0 ;\n mqh_used = 0 ;\n kill_in_progress = 0 ;\n cleanup_done = 0 ;\n server_id_supplied = 0 ;\n test_flags = select_errors = dropping_tables = ha_open_options = 0 ;\n thread_count = thread_running = kill_cached_threads = wake_thread = 0 ;\n slave_open_temp_tables = 0 ;\n cached_thread_count = 0 ;\n opt_endinfo = using_udf_functions = 0 ;\n opt_using_transactions = 0 ;\n abort_loop = select_thread_in_use = signal_thread_in_use = 0 ;\n ready_to_exit = shutdown_in_progress = grant_option = 0 ;\n aborted_threads = aborted_connects = 0 ;\n subquery_cache_miss = subquery_cache_hit = 0 ;\n delayed_insert_threads = delayed_insert_writes = delayed_rows_in_use = 0 ;\n delayed_insert_errors = thread_created = 0 ;\n specialflag = 0 ;\n binlog_cache_use = binlog_cache_disk_use = 0 ;\n max_used_connections = slow_launch_threads = 0 ;\n mysqld_user = mysqld_chroot = opt_init_file = opt_bin_logname = 0 ;\n prepared_stmt_count = 0 ;\n mysqld_unix_port = opt_mysql_tmpdir = my_bind_addr_str = NullS ;\n bzero ( ( uchar * ) & mysql_tmpdir_list , sizeof ( mysql_tmpdir_list ) ) ;\n bzero ( ( char * ) & global_status_var , sizeof ( global_status_var ) ) ;\n opt_large_pages = 0 ;\n opt_super_large_pages = 0 ;\n # if defined ( ENABLED_DEBUG_SYNC ) opt_debug_sync_timeout = 0 ;\n # endif key_map_full . set_all ( ) ;\n system_charset_info = & my_charset_utf8_general_ci ;\n files_charset_info = & my_charset_utf8_general_ci ;\n national_charset_info = & my_charset_utf8_general_ci ;\n table_alias_charset = & my_charset_bin ;\n character_set_filesystem = & my_charset_bin ;\n opt_specialflag = SPECIAL_ENGLISH ;\n unix_sock = base_ip_sock = extra_ip_sock = INVALID_SOCKET ;\n mysql_home_ptr = mysql_home ;\n pidfile_name_ptr = pidfile_name ;\n log_error_file_ptr = log_error_file ;\n protocol_version = PROTOCOL_VERSION ;\n what_to_log = ~ ( 1L << ( uint ) COM_TIME ) ;\n refresh_version = 2L ;\n executed_events = 0 ;\n global_query_id = thread_id = 1L ;\n my_atomic_rwlock_init ( & global_query_id_lock ) ;\n my_atomic_rwlock_init ( & thread_running_lock ) ;\n strnmov ( server_version , MYSQL_SERVER_VERSION , sizeof ( server_version ) - 1 ) ;\n threads . empty ( ) ;\n thread_cache . empty ( ) ;\n key_caches . empty ( ) ;\n if ( ! ( dflt_key_cache = get_or_create_key_cache ( default_key_cache_base . str , default_key_cache_base . length ) ) ) {\n sql_print_error ( \"Cannot allocate the keycache\" ) ;\n return 1 ;\n }\n multi_keycache_init ( ) ;\n mysql_real_data_home_len = strmake_buf ( mysql_real_data_home , get_relative_path ( MYSQL_DATADIR ) ) - mysql_real_data_home ;\n master_info_file = ( char * ) \"master.info\" , relay_log_info_file = ( char * ) \"relay-log.info\" ;\n report_user = report_password = report_host = 0 ;\n opt_relay_logname = opt_relaylog_index_name = 0 ;\n charsets_dir = 0 ;\n default_character_set_name = ( char * ) MYSQL_DEFAULT_CHARSET_NAME ;\n default_collation_name = compiled_default_collation_name ;\n character_set_filesystem_name = ( char * ) \"binary\" ;\n lc_messages = ( char * ) \"en_US\" ;\n lc_time_names_name = ( char * ) \"en_US\" ;\n # ifndef DBUG_OFF default_dbug_option = IF_WIN ( \"d:t:i:O,\\\\mysqld.trace\" , \"d:t:i:o,/tmp/mysqld.trace\" ) ;\n current_dbug_option = default_dbug_option ;\n # endif opt_error_log = IF_WIN ( 1 , 0 ) ;\n # ifdef ENABLED_PROFILING have_profiling = SHOW_OPTION_YES ;\n # else have_profiling = SHOW_OPTION_NO ;\n # endif # if defined ( HAVE_OPENSSL ) && ! defined ( EMBEDDED_LIBRARY ) have_ssl = SHOW_OPTION_YES ;\n # else have_ssl = SHOW_OPTION_NO ;\n # endif # ifdef HAVE_BROKEN_REALPATH have_symlink = SHOW_OPTION_NO ;\n # else have_symlink = SHOW_OPTION_YES ;\n # endif # ifdef HAVE_DLOPEN have_dlopen = SHOW_OPTION_YES ;\n # else have_dlopen = SHOW_OPTION_NO ;\n # endif # ifdef HAVE_QUERY_CACHE have_query_cache = SHOW_OPTION_YES ;\n # else have_query_cache = SHOW_OPTION_NO ;\n # endif # ifdef HAVE_SPATIAL have_geometry = SHOW_OPTION_YES ;\n # else have_geometry = SHOW_OPTION_NO ;\n # endif # ifdef HAVE_RTREE_KEYS have_rtree_keys = SHOW_OPTION_YES ;\n # else have_rtree_keys = SHOW_OPTION_NO ;\n # endif # ifdef HAVE_CRYPT have_crypt = SHOW_OPTION_YES ;\n # else have_crypt = SHOW_OPTION_NO ;\n # endif # ifdef HAVE_COMPRESS have_compress = SHOW_OPTION_YES ;\n # else have_compress = SHOW_OPTION_NO ;\n # endif # ifdef HAVE_LIBWRAP libwrapName = NullS ;\n # endif # ifdef HAVE_OPENSSL des_key_file = 0 ;\n # ifndef EMBEDDED_LIBRARY ssl_acceptor_fd = 0 ;\n # endif # endif # ifdef HAVE_SMEM shared_memory_base_name = default_shared_memory_base_name ;\n # endif # if defined ( __WIN__ ) {\n char prg_dev [ LIBLEN ] ;\n char executing_path_name [ LIBLEN ] ;\n if ( ! test_if_hard_path ( my_progname ) ) {\n GetModuleFileName ( NULL , executing_path_name , sizeof ( executing_path_name ) ) ;\n my_path ( prg_dev , executing_path_name , NULL ) ;\n }\n else my_path ( prg_dev , my_progname , \"mysql/bin\" ) ;\n strcat ( prg_dev , \"/../\" ) ;\n cleanup_dirname ( mysql_home , prg_dev ) ;\n }\n # else const char * tmpenv ;\n if ( ! ( tmpenv = getenv ( \"MY_BASEDIR_VERSION\" ) ) ) tmpenv = DEFAULT_MYSQL_HOME ;\n strmake_buf ( mysql_home , tmpenv ) ;\n # endif return 0 ;\n }"}
{"idx": 2405, "target": 0, "func": "static void closepath ( SplinePointList * cur , int is_type2 ) {\n if ( cur != NULL && cur -> first == cur -> last && cur -> first -> prev == NULL && is_type2 ) return ;\n if ( cur != NULL && cur -> first != NULL && cur -> first != cur -> last ) {\n if ( RealWithin ( cur -> first -> me . x , cur -> last -> me . x , .05 ) && RealWithin ( cur -> first -> me . y , cur -> last -> me . y , .05 ) ) {\n SplinePoint * oldlast = cur -> last ;\n cur -> first -> prevcp = oldlast -> prevcp ;\n cur -> first -> prevcp . x += ( cur -> first -> me . x - oldlast -> me . x ) ;\n cur -> first -> prevcp . y += ( cur -> first -> me . y - oldlast -> me . y ) ;\n cur -> first -> noprevcp = oldlast -> noprevcp ;\n oldlast -> prev -> from -> next = NULL ;\n cur -> last = oldlast -> prev -> from ;\n chunkfree ( oldlast -> prev , sizeof ( * oldlast ) ) ;\n chunkfree ( oldlast -> hintmask , sizeof ( HintMask ) ) ;\n chunkfree ( oldlast , sizeof ( * oldlast ) ) ;\n }\n CheckMake ( cur -> last , cur -> first ) ;\n SplineMake3 ( cur -> last , cur -> first ) ;\n cur -> last = cur -> first ;\n }\n }"}
{"idx": 2406, "target": 0, "func": "mpi_ptr_t # ifdef M_DEBUG mpi_debug_alloc_limb_space ( unsigned nlimbs , int secure , const char * info ) # else mpi_alloc_limb_space ( unsigned nlimbs , int secure ) # endif {\n size_t len = nlimbs * sizeof ( mpi_limb_t ) ;\n mpi_ptr_t p ;\n if ( DBG_MEMORY ) log_debug ( \"mpi_alloc_limb_space(%u)\\n\" , ( unsigned ) len * 8 ) ;\n # if 0 if ( ! secure ) {\n if ( nlimbs == 5 && unused_limbs_5 ) {\n p = unused_limbs_5 ;\n unused_limbs_5 = * p ;\n return p ;\n }\n else if ( nlimbs == 32 && unused_limbs_32 ) {\n p = unused_limbs_32 ;\n unused_limbs_32 = * p ;\n return p ;\n }\n else if ( nlimbs == 64 && unused_limbs_64 ) {\n p = unused_limbs_64 ;\n unused_limbs_64 = * p ;\n return p ;\n }\n }\n # endif # ifdef M_DEBUG p = secure ? m_debug_alloc_secure ( len , info ) : m_debug_alloc ( len , info ) ;\n # else p = secure ? xmalloc_secure ( len ) : xmalloc ( len ) ;\n # endif return p ;\n }"}
{"idx": 2407, "target": 0, "func": "static unsigned get_current_oemcp ( void ) {\n return ( - 1 ) ;\n }"}
{"idx": 2408, "target": 0, "func": "static int count_ah_combs ( const struct xfrm_tmpl * t ) {\n int i , sz = 0 ;\n for ( i = 0 ;\n ;\n i ++ ) {\n const struct xfrm_algo_desc * aalg = xfrm_aalg_get_byidx ( i ) ;\n if ( ! aalg ) break ;\n if ( ! aalg -> pfkey_supported ) continue ;\n if ( aalg_tmpl_set ( t , aalg ) && aalg -> available ) sz += sizeof ( struct sadb_comb ) ;\n }\n return sz + sizeof ( struct sadb_prop ) ;\n }"}
{"idx": 2409, "target": 0, "func": "static GstFlowReturn gst_asf_demux_chain_headers ( GstASFDemux * demux ) {\n AsfObject obj ;\n guint8 * header_data , * data = NULL ;\n const guint8 * cdata = NULL ;\n guint64 header_size ;\n GstFlowReturn flow = GST_FLOW_OK ;\n cdata = ( guint8 * ) gst_adapter_map ( demux -> adapter , ASF_OBJECT_HEADER_SIZE ) ;\n if ( cdata == NULL ) goto need_more_data ;\n if ( ! asf_demux_peek_object ( demux , cdata , ASF_OBJECT_HEADER_SIZE , & obj , TRUE ) ) goto parse_failed ;\n if ( obj . id != ASF_OBJ_HEADER ) goto wrong_type ;\n GST_LOG_OBJECT ( demux , \"header size = %u\" , ( guint ) obj . size ) ;\n if ( gst_adapter_available ( demux -> adapter ) < obj . size + 50 ) goto need_more_data ;\n data = gst_adapter_take ( demux -> adapter , obj . size + 50 ) ;\n header_data = data ;\n header_size = obj . size ;\n flow = gst_asf_demux_process_object ( demux , & header_data , & header_size ) ;\n if ( flow != GST_FLOW_OK ) goto parse_failed ;\n demux -> data_offset = obj . size + 50 ;\n if ( ! gst_asf_demux_parse_data_object_start ( demux , data + obj . size ) ) goto wrong_type ;\n if ( demux -> num_streams == 0 ) goto no_streams ;\n g_free ( data ) ;\n return GST_FLOW_OK ;\n need_more_data : {\n GST_LOG_OBJECT ( demux , \"not enough data in adapter yet\" ) ;\n return GST_FLOW_OK ;\n }\n wrong_type : {\n GST_ELEMENT_ERROR ( demux , STREAM , WRONG_TYPE , ( NULL ) , ( \"This doesn't seem to be an ASF file\" ) ) ;\n g_free ( data ) ;\n return GST_FLOW_ERROR ;\n }\n no_streams : parse_failed : {\n GST_ELEMENT_ERROR ( demux , STREAM , DEMUX , ( NULL ) , ( \"header parsing failed, or no streams found, flow = %s\" , gst_flow_get_name ( flow ) ) ) ;\n g_free ( data ) ;\n return GST_FLOW_ERROR ;\n }\n }"}
{"idx": 2410, "target": 0, "func": "static void basic_avp_reginfo ( diam_avp_t * a , const char * name , enum ftenum ft , field_display_e base , value_string_ext * vs_ext ) {\n hf_register_info hf ;\n gint * ettp = & ( a -> ett ) ;\n hf . p_id = & ( a -> hf_value ) ;\n hf . hfinfo . name = NULL ;\n hf . hfinfo . abbrev = NULL ;\n hf . hfinfo . type = ft ;\n hf . hfinfo . display = base ;\n hf . hfinfo . strings = NULL ;\n hf . hfinfo . bitmask = 0x0 ;\n hf . hfinfo . blurb = a -> vendor -> code ? wmem_strdup_printf ( wmem_epan_scope ( ) , \"vendor=%d code=%d\" , a -> vendor -> code , a -> code ) : wmem_strdup_printf ( wmem_epan_scope ( ) , \"code=%d\" , a -> code ) ;\n HFILL_INIT ( hf ) ;\n hf . hfinfo . name = wmem_strdup_printf ( wmem_epan_scope ( ) , \"%s\" , name ) ;\n hf . hfinfo . abbrev = alnumerize ( wmem_strdup_printf ( wmem_epan_scope ( ) , \"diameter.%s\" , name ) ) ;\n if ( vs_ext ) {\n hf . hfinfo . strings = vs_ext ;\n }\n wmem_array_append ( build_dict . hf , & hf , 1 ) ;\n g_ptr_array_add ( build_dict . ett , ettp ) ;\n }"}
{"idx": 2411, "target": 0, "func": "static Int decShiftToMost ( Unit * uar , Int digits , Int shift ) {\n Unit * target , * source , * first ;\n Int cut ;\n uInt next ;\n if ( shift == 0 ) return digits ;\n if ( ( digits + shift ) <= DECDPUN ) {\n * uar = ( Unit ) ( * uar * powers [ shift ] ) ;\n return digits + shift ;\n }\n next = 0 ;\n source = uar + D2U ( digits ) - 1 ;\n target = source + D2U ( shift ) ;\n cut = DECDPUN - MSUDIGITS ( shift ) ;\n if ( cut == 0 ) {\n for ( ;\n source >= uar ;\n source -- , target -- ) * target = * source ;\n }\n else {\n first = uar + D2U ( digits + shift ) - 1 ;\n for ( ;\n source >= uar ;\n source -- , target -- ) {\n # if DECDPUN <= 4 uInt quot = QUOT10 ( * source , cut ) ;\n uInt rem = * source - quot * powers [ cut ] ;\n next += quot ;\n # else uInt rem = * source % powers [ cut ] ;\n next += * source / powers [ cut ] ;\n # endif if ( target <= first ) * target = ( Unit ) next ;\n next = rem * powers [ DECDPUN - cut ] ;\n }\n }\n for ( ;\n target >= uar ;\n target -- ) {\n * target = ( Unit ) next ;\n next = 0 ;\n }\n return digits + shift ;\n }"}
{"idx": 2412, "target": 0, "func": "extern int as_mysql_node_up ( mysql_conn_t * mysql_conn , struct node_record * node_ptr , time_t event_time ) {\n char * query ;\n int rc = SLURM_SUCCESS ;\n if ( check_connection ( mysql_conn ) != SLURM_SUCCESS ) return ESLURM_DB_CONNECTION ;\n if ( ! mysql_conn -> cluster_name ) {\n error ( \"%s:%d no cluster name\" , THIS_FILE , __LINE__ ) ;\n return SLURM_ERROR ;\n }\n query = xstrdup_printf ( \"update \\\"%s_%s\\\" set time_end=%ld where \" \"time_end=0 and node_name='%s';\n\" , mysql_conn -> cluster_name , event_table , event_time , node_ptr -> name ) ;\n debug4 ( \"%d(%s:%d) query\\n%s\" , mysql_conn -> conn , THIS_FILE , __LINE__ , query ) ;\n rc = mysql_db_query ( mysql_conn , query ) ;\n xfree ( query ) ;\n return rc ;\n }"}
{"idx": 2413, "target": 0, "func": "static void add_preferred_base_object ( const char * name ) {\n struct pbase_tree * it ;\n int cmplen ;\n unsigned hash = pack_name_hash ( name ) ;\n if ( ! num_preferred_base || check_pbase_path ( hash ) ) return ;\n cmplen = name_cmp_len ( name ) ;\n for ( it = pbase_tree ;\n it ;\n it = it -> next ) {\n if ( cmplen == 0 ) {\n add_object_entry ( it -> pcache . sha1 , OBJ_TREE , NULL , 1 ) ;\n }\n else {\n struct tree_desc tree ;\n init_tree_desc ( & tree , it -> pcache . tree_data , it -> pcache . tree_size ) ;\n add_pbase_object ( & tree , name , cmplen , name ) ;\n }\n }\n }"}
{"idx": 2414, "target": 0, "func": "static int dissect_h225_OCTET_STRING ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , NO_BOUND , NO_BOUND , FALSE , NULL ) ;\n return offset ;\n }"}
{"idx": 2415, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( UnloadTest , BrowserCloseInfiniteUnloadAlert ) {\n if ( base : : CommandLine : : ForCurrentProcess ( ) -> HasSwitch ( switches : : kSingleProcess ) ) return ;\n LoadUrlAndQuitBrowser ( INFINITE_UNLOAD_ALERT_HTML , \"infiniteunloadalert\" ) ;\n }"}
{"idx": 2416, "target": 0, "func": "int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL ) DECLARE_PEM_rw ( PKCS7 , PKCS7 ) DECLARE_PEM_rw ( NETSCAPE_CERT_SEQUENCE , NETSCAPE_CERT_SEQUENCE ) DECLARE_PEM_rw ( PKCS8 , X509_SIG ) DECLARE_PEM_rw ( PKCS8_PRIV_KEY_INFO , PKCS8_PRIV_KEY_INFO ) # ifndef OPENSSL_NO_RSA DECLARE_PEM_rw_cb ( RSAPrivateKey , RSA )"}
{"idx": 2417, "target": 0, "func": "SPL_METHOD ( DirectoryIterator , next ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n int skip_dots = SPL_HAS_FLAG ( intern -> flags , SPL_FILE_DIR_SKIPDOTS ) ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n intern -> u . dir . index ++ ;\n do {\n spl_filesystem_dir_read ( intern TSRMLS_CC ) ;\n }\n while ( skip_dots && spl_filesystem_is_dot ( intern -> u . dir . entry . d_name ) ) ;\n if ( intern -> file_name ) {\n efree ( intern -> file_name ) ;\n intern -> file_name = NULL ;\n }\n }"}
{"idx": 2418, "target": 0, "func": "static MAIN_WINDOW_REC * mainwindows_find_right ( MAIN_WINDOW_REC * window , int find_first ) {\n int first_line , last_line , last_column ;\n MAIN_WINDOW_REC * best ;\n GSList * tmp ;\n if ( window != NULL ) {\n first_line = window -> first_line ;\n last_line = window -> last_line ;\n last_column = window -> last_column ;\n }\n else {\n first_line = last_line = last_column = - 1 ;\n }\n if ( find_first ) last_column = - 1 ;\n best = NULL ;\n for ( tmp = mainwindows ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n MAIN_WINDOW_REC * rec = tmp -> data ;\n if ( rec -> first_line >= first_line && rec -> last_line <= last_line && rec -> first_column > last_column && ( best == NULL || rec -> first_column < best -> first_column ) ) best = rec ;\n }\n return best ;\n }"}
{"idx": 2419, "target": 0, "func": "static VALUE ossl_asn1_ ## klass ( int argc , VALUE * argv , VALUE self ) \\ {\n return rb_funcall3 ( cASN1 ## klass , rb_intern ( \"new\" ) , argc , argv ) ;\n }\n OSSL_ASN1_IMPL_FACTORY_METHOD ( Boolean ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Integer ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Enumerated ) OSSL_ASN1_IMPL_FACTORY_METHOD ( BitString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( OctetString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( UTF8String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( NumericString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( PrintableString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( T61String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( VideotexString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( IA5String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( GraphicString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( ISO64String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( GeneralString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( UniversalString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( BMPString )"}
{"idx": 2420, "target": 0, "func": "proto_item * proto_tree_add_bitmask_ret_uint64 ( proto_tree * parent_tree , tvbuff_t * tvb , const guint offset , const int hf_hdr , const gint ett , const int * * fields , const guint encoding , guint64 * retval ) {\n return proto_tree_add_bitmask_with_flags_ret_uint64 ( parent_tree , tvb , offset , hf_hdr , ett , fields , encoding , BMT_NO_INT | BMT_NO_TFS , retval ) ;\n }"}
{"idx": 2421, "target": 0, "func": "static int read_rle_sgi ( uint8_t * out_buf , SgiState * s ) {\n uint8_t * dest_row ;\n unsigned int len = s -> height * s -> depth * 4 ;\n GetByteContext g_table = s -> g ;\n unsigned int y , z ;\n unsigned int start_offset ;\n if ( len * 2 > bytestream2_get_bytes_left ( & s -> g ) ) {\n return AVERROR_INVALIDDATA ;\n }\n for ( z = 0 ;\n z < s -> depth ;\n z ++ ) {\n dest_row = out_buf ;\n for ( y = 0 ;\n y < s -> height ;\n y ++ ) {\n dest_row -= s -> linesize ;\n start_offset = bytestream2_get_be32 ( & g_table ) ;\n bytestream2_seek ( & s -> g , start_offset , SEEK_SET ) ;\n if ( expand_rle_row ( s , dest_row + z , dest_row + FFABS ( s -> linesize ) , s -> depth ) != s -> width ) {\n return AVERROR_INVALIDDATA ;\n }\n }\n }\n return 0 ;\n }"}
{"idx": 2422, "target": 0, "func": "static void purple_gg_buddylist_export ( PurpleConnection * gc ) {\n struct im_connection * ic = purple_ic_by_gc ( gc ) ;\n if ( set_getstr ( & ic -> acc -> set , \"gg_sync_contacts\" ) ) {\n GList * actions = gc -> prpl -> info -> actions ( gc -> prpl , gc ) ;\n GList * p ;\n for ( p = g_list_first ( actions ) ;\n p ;\n p = p -> next ) {\n if ( ( ( PurplePluginAction * ) p -> data ) && purple_menu_cmp ( ( ( PurplePluginAction * ) p -> data ) -> label , \"Upload buddylist to Server\" ) == 0 ) {\n PurplePluginAction action ;\n action . plugin = gc -> prpl ;\n action . context = gc ;\n action . user_data = NULL ;\n ( ( PurplePluginAction * ) p -> data ) -> callback ( & action ) ;\n break ;\n }\n }\n g_list_free ( actions ) ;\n }\n }"}
{"idx": 2423, "target": 0, "func": "IN_PROC_BROWSER_TEST_P ( BrowserCloseManagerBrowserTest , TestAddTabWithBeforeUnloadDuringShutdown ) {\n browsers_ . push_back ( CreateBrowser ( browser ( ) -> profile ( ) ) ) ;\n ASSERT_NO_FATAL_FAILURE ( ui_test_utils : : NavigateToURL ( browsers_ [ 0 ] , embedded_test_server ( ) -> GetURL ( \"/beforeunload.html\" ) ) ) ;\n ASSERT_NO_FATAL_FAILURE ( ui_test_utils : : NavigateToURL ( browsers_ [ 1 ] , embedded_test_server ( ) -> GetURL ( \"/beforeunload.html\" ) ) ) ;\n PrepareForDialog ( browsers_ [ 0 ] ) ;\n PrepareForDialog ( browsers_ [ 1 ] ) ;\n RepeatedNotificationObserver cancel_observer ( chrome : : NOTIFICATION_BROWSER_CLOSE_CANCELLED , 2 ) ;\n chrome : : CloseAllBrowsersAndQuit ( ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n AddBlankTabAndShow ( browsers_ [ 0 ] ) ;\n ASSERT_NO_FATAL_FAILURE ( ui_test_utils : : NavigateToURL ( browsers_ [ 0 ] , embedded_test_server ( ) -> GetURL ( \"/beforeunload.html\" ) ) ) ;\n AddBlankTabAndShow ( browsers_ [ 1 ] ) ;\n ASSERT_NO_FATAL_FAILURE ( ui_test_utils : : NavigateToURL ( browsers_ [ 1 ] , embedded_test_server ( ) -> GetURL ( \"/beforeunload.html\" ) ) ) ;\n PrepareForDialog ( browsers_ [ 0 ] ) ;\n PrepareForDialog ( browsers_ [ 1 ] ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n ASSERT_NO_FATAL_FAILURE ( CancelClose ( ) ) ;\n cancel_observer . Wait ( ) ;\n EXPECT_FALSE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_EQ ( 2 , browsers_ [ 0 ] -> tab_strip_model ( ) -> count ( ) ) ;\n EXPECT_EQ ( 2 , browsers_ [ 1 ] -> tab_strip_model ( ) -> count ( ) ) ;\n RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , 2 ) ;\n chrome : : CloseAllBrowsersAndQuit ( ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n close_observer . Wait ( ) ;\n EXPECT_TRUE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_TRUE ( BrowserList : : GetInstance ( ) -> empty ( ) ) ;\n }"}
{"idx": 2424, "target": 0, "func": "void sun4m_irq_info ( Monitor * mon , const QDict * qdict ) {\n if ( slavio_intctl ) slavio_irq_info ( mon , slavio_intctl ) ;\n }"}
{"idx": 2425, "target": 0, "func": "int tls_construct_server_done ( SSL * s ) {\n if ( ! ssl_set_handshake_header ( s , SSL3_MT_SERVER_DONE , 0 ) ) {\n SSLerr ( SSL_F_TLS_CONSTRUCT_SERVER_DONE , ERR_R_INTERNAL_ERROR ) ;\n ossl_statem_set_error ( s ) ;\n return 0 ;\n }\n if ( ! s -> s3 -> tmp . cert_request ) {\n if ( ! ssl3_digest_cached_records ( s , 0 ) ) {\n ossl_statem_set_error ( s ) ;\n }\n }\n return 1 ;\n }"}
{"idx": 2426, "target": 0, "func": "Oid get_rel_tablespace ( Oid relid ) {\n HeapTuple tp ;\n tp = SearchSysCache1 ( RELOID , ObjectIdGetDatum ( relid ) ) ;\n if ( HeapTupleIsValid ( tp ) ) {\n Form_pg_class reltup = ( Form_pg_class ) GETSTRUCT ( tp ) ;\n Oid result ;\n result = reltup -> reltablespace ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }\n else return InvalidOid ;\n }"}
{"idx": 2427, "target": 0, "func": "static void await_reference_row ( Vp3DecodeContext * s , Vp3Fragment * fragment , int motion_y , int y ) {\n ThreadFrame * ref_frame ;\n int ref_row ;\n int border = motion_y & 1 ;\n if ( fragment -> coding_method == MODE_USING_GOLDEN || fragment -> coding_method == MODE_GOLDEN_MV ) ref_frame = & s -> golden_frame ;\n else ref_frame = & s -> last_frame ;\n ref_row = y + ( motion_y >> 1 ) ;\n ref_row = FFMAX ( FFABS ( ref_row ) , ref_row + 8 + border ) ;\n ff_thread_await_progress ( ref_frame , ref_row , 0 ) ;\n }"}
{"idx": 2428, "target": 0, "func": "static int is_mv_diff_gt_3 ( int16_t ( * motion_val ) [ 2 ] , int step ) {\n int d ;\n d = motion_val [ 0 ] [ 0 ] - motion_val [ - step ] [ 0 ] ;\n if ( d < - 3 || d > 3 ) return 1 ;\n d = motion_val [ 0 ] [ 1 ] - motion_val [ - step ] [ 1 ] ;\n if ( d < - 3 || d > 3 ) return 1 ;\n return 0 ;\n }"}
{"idx": 2429, "target": 0, "func": "static int dsa_param_print ( BIO * bp , const EVP_PKEY * pkey , int indent , ASN1_PCTX * ctx ) {\n return do_dsa_print ( bp , pkey -> pkey . dsa , indent , 0 ) ;\n }"}
{"idx": 2430, "target": 0, "func": "static int OpenDecoder ( vlc_object_t * p_this ) {\n decoder_t * p_dec = ( decoder_t * ) p_this ;\n decoder_sys_t * p_sys ;\n SchroDecoder * p_schro ;\n if ( p_dec -> fmt_in . i_codec != VLC_CODEC_DIRAC ) {\n return VLC_EGENERIC ;\n }\n p_sys = malloc ( sizeof ( decoder_sys_t ) ) ;\n if ( p_sys == NULL ) return VLC_ENOMEM ;\n schro_init ( ) ;\n if ( ! ( p_schro = schro_decoder_new ( ) ) ) {\n free ( p_sys ) ;\n return VLC_EGENERIC ;\n }\n p_dec -> p_sys = p_sys ;\n p_sys -> p_schro = p_schro ;\n p_sys -> p_format = NULL ;\n p_sys -> i_lastpts = VLC_TS_INVALID ;\n p_sys -> i_frame_pts_delta = 0 ;\n p_dec -> fmt_out . i_cat = VIDEO_ES ;\n p_dec -> fmt_out . i_codec = VLC_CODEC_I420 ;\n p_dec -> pf_decode_video = DecodeBlock ;\n return VLC_SUCCESS ;\n }"}
{"idx": 2431, "target": 1, "func": "void vp9_fdct8x8_c ( const int16_t * input , int16_t * final_output , int stride ) {\n int i , j ;\n int16_t intermediate [ 64 ] ;\n {\n int16_t * output = intermediate ;\n int s0 , s1 , s2 , s3 , s4 , s5 , s6 , s7 ;\n int t0 , t1 , t2 , t3 ;\n int x0 , x1 , x2 , x3 ;\n int i ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n s0 = ( input [ 0 * stride ] + input [ 7 * stride ] ) * 4 ;\n s1 = ( input [ 1 * stride ] + input [ 6 * stride ] ) * 4 ;\n s2 = ( input [ 2 * stride ] + input [ 5 * stride ] ) * 4 ;\n s3 = ( input [ 3 * stride ] + input [ 4 * stride ] ) * 4 ;\n s4 = ( input [ 3 * stride ] - input [ 4 * stride ] ) * 4 ;\n s5 = ( input [ 2 * stride ] - input [ 5 * stride ] ) * 4 ;\n s6 = ( input [ 1 * stride ] - input [ 6 * stride ] ) * 4 ;\n s7 = ( input [ 0 * stride ] - input [ 7 * stride ] ) * 4 ;\n x0 = s0 + s3 ;\n x1 = s1 + s2 ;\n x2 = s1 - s2 ;\n x3 = s0 - s3 ;\n t0 = ( x0 + x1 ) * cospi_16_64 ;\n t1 = ( x0 - x1 ) * cospi_16_64 ;\n t2 = x2 * cospi_24_64 + x3 * cospi_8_64 ;\n t3 = - x2 * cospi_8_64 + x3 * cospi_24_64 ;\n output [ 0 * 8 ] = fdct_round_shift ( t0 ) ;\n output [ 2 * 8 ] = fdct_round_shift ( t2 ) ;\n output [ 4 * 8 ] = fdct_round_shift ( t1 ) ;\n output [ 6 * 8 ] = fdct_round_shift ( t3 ) ;\n t0 = ( s6 - s5 ) * cospi_16_64 ;\n t1 = ( s6 + s5 ) * cospi_16_64 ;\n t2 = fdct_round_shift ( t0 ) ;\n t3 = fdct_round_shift ( t1 ) ;\n x0 = s4 + t2 ;\n x1 = s4 - t2 ;\n x2 = s7 - t3 ;\n x3 = s7 + t3 ;\n t0 = x0 * cospi_28_64 + x3 * cospi_4_64 ;\n t1 = x1 * cospi_12_64 + x2 * cospi_20_64 ;\n t2 = x2 * cospi_12_64 + x1 * - cospi_20_64 ;\n t3 = x3 * cospi_28_64 + x0 * - cospi_4_64 ;\n output [ 1 * 8 ] = fdct_round_shift ( t0 ) ;\n output [ 3 * 8 ] = fdct_round_shift ( t2 ) ;\n output [ 5 * 8 ] = fdct_round_shift ( t1 ) ;\n output [ 7 * 8 ] = fdct_round_shift ( t3 ) ;\n input ++ ;\n output ++ ;\n }\n }\n for ( i = 0 ;\n i < 8 ;\n ++ i ) {\n fdct8 ( & intermediate [ i * 8 ] , & final_output [ i * 8 ] ) ;\n for ( j = 0 ;\n j < 8 ;\n ++ j ) final_output [ j + i * 8 ] /= 2 ;\n }\n }"}
{"idx": 2432, "target": 0, "func": "static int main_write_output ( xd3_stream * stream , main_file * ofile ) {\n int ret ;\n if ( option_no_output ) {\n return 0 ;\n }\n if ( stream -> avail_out > 0 && ( ret = main_file_write ( ofile , stream -> next_out , stream -> avail_out , \"write failed\" ) ) ) {\n return ret ;\n }\n return 0 ;\n }"}
{"idx": 2433, "target": 0, "func": "int dissect_h225_CryptoH323Token ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_CryptoH323Token , CryptoH323Token_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 2434, "target": 0, "func": "int i2c_ASN1_BIT_STRING ( ASN1_BIT_STRING * a , unsigned char * * pp ) {\n int ret , j , bits , len ;\n unsigned char * p , * d ;\n if ( a == NULL ) return ( 0 ) ;\n len = a -> length ;\n if ( len > 0 ) {\n if ( a -> flags & ASN1_STRING_FLAG_BITS_LEFT ) {\n bits = ( int ) a -> flags & 0x07 ;\n }\n else {\n for ( ;\n len > 0 ;\n len -- ) {\n if ( a -> data [ len - 1 ] ) break ;\n }\n j = a -> data [ len - 1 ] ;\n if ( j & 0x01 ) bits = 0 ;\n else if ( j & 0x02 ) bits = 1 ;\n else if ( j & 0x04 ) bits = 2 ;\n else if ( j & 0x08 ) bits = 3 ;\n else if ( j & 0x10 ) bits = 4 ;\n else if ( j & 0x20 ) bits = 5 ;\n else if ( j & 0x40 ) bits = 6 ;\n else if ( j & 0x80 ) bits = 7 ;\n else bits = 0 ;\n }\n }\n else bits = 0 ;\n ret = 1 + len ;\n if ( pp == NULL ) return ( ret ) ;\n p = * pp ;\n * ( p ++ ) = ( unsigned char ) bits ;\n d = a -> data ;\n memcpy ( p , d , len ) ;\n p += len ;\n if ( len > 0 ) p [ - 1 ] &= ( 0xff << bits ) ;\n * pp = p ;\n return ( ret ) ;\n }"}
{"idx": 2435, "target": 0, "func": "MPI # ifdef M_DEBUG mpi_debug_alloc_like ( MPI a , const char * info ) # else mpi_alloc_like ( MPI a ) # endif {\n MPI b ;\n if ( a && ( a -> flags & 4 ) ) {\n void * p = m_is_secure ( a -> d ) ? xmalloc_secure ( a -> nbits ) : xmalloc ( a -> nbits ) ;\n memcpy ( p , a -> d , a -> nbits ) ;\n b = mpi_set_opaque ( NULL , p , a -> nbits ) ;\n }\n else if ( a ) {\n # ifdef M_DEBUG b = mpi_is_secure ( a ) ? mpi_debug_alloc_secure ( a -> nlimbs , info ) : mpi_debug_alloc ( a -> nlimbs , info ) ;\n # else b = mpi_is_secure ( a ) ? mpi_alloc_secure ( a -> nlimbs ) : mpi_alloc ( a -> nlimbs ) ;\n # endif b -> nlimbs = 0 ;\n b -> sign = 0 ;\n b -> flags = a -> flags ;\n b -> nbits = 0 ;\n }\n else b = NULL ;\n return b ;\n }"}
{"idx": 2436, "target": 0, "func": "char * gcry_sexp_nth_string ( const gcry_sexp_t list , int number ) {\n const char * s ;\n size_t n ;\n char * buf ;\n s = sexp_nth_data ( list , number , & n ) ;\n if ( ! s || n < 1 || ( n + 1 ) < 1 ) return NULL ;\n buf = gcry_malloc ( n + 1 ) ;\n if ( ! buf ) return NULL ;\n memcpy ( buf , s , n ) ;\n buf [ n ] = 0 ;\n return buf ;\n }"}
{"idx": 2437, "target": 0, "func": "static LaunchLocation * find_launch_location_for_file ( GList * list , NautilusFile * file ) {\n LaunchLocation * location ;\n GList * l ;\n for ( l = list ;\n l != NULL ;\n l = l -> next ) {\n location = l -> data ;\n if ( location -> file == file ) {\n return location ;\n }\n }\n return NULL ;\n }"}
{"idx": 2438, "target": 0, "func": "void TSHttpTxnErrorBodySet ( TSHttpTxn txnp , char * buf , size_t buflength , char * mimetype ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n HttpTransact : : State * s = & ( sm -> t_state ) ;\n s -> free_internal_msg_buffer ( ) ;\n ats_free ( s -> internal_msg_buffer_type ) ;\n s -> internal_msg_buffer = buf ;\n s -> internal_msg_buffer_size = buf ? buflength : 0 ;\n s -> internal_msg_buffer_fast_allocator_size = - 1 ;\n s -> internal_msg_buffer_type = mimetype ;\n }"}
{"idx": 2439, "target": 0, "func": "void warn_or_exit_horribly ( ArchiveHandle * AH , const char * modulename , const char * fmt , ... ) {\n va_list ap ;\n switch ( AH -> stage ) {\n case STAGE_NONE : break ;\n case STAGE_INITIALIZING : if ( AH -> stage != AH -> lastErrorStage ) write_msg ( modulename , \"Error while INITIALIZING:\\n\" ) ;\n break ;\n case STAGE_PROCESSING : if ( AH -> stage != AH -> lastErrorStage ) write_msg ( modulename , \"Error while PROCESSING TOC:\\n\" ) ;\n break ;\n case STAGE_FINALIZING : if ( AH -> stage != AH -> lastErrorStage ) write_msg ( modulename , \"Error while FINALIZING:\\n\" ) ;\n break ;\n }\n if ( AH -> currentTE != NULL && AH -> currentTE != AH -> lastErrorTE ) {\n write_msg ( modulename , \"Error from TOC entry %d;\n %u %u %s %s %s\\n\" , AH -> currentTE -> dumpId , AH -> currentTE -> catalogId . tableoid , AH -> currentTE -> catalogId . oid , AH -> currentTE -> desc , AH -> currentTE -> tag , AH -> currentTE -> owner ) ;\n }\n AH -> lastErrorStage = AH -> stage ;\n AH -> lastErrorTE = AH -> currentTE ;\n va_start ( ap , fmt ) ;\n vwrite_msg ( modulename , fmt , ap ) ;\n va_end ( ap ) ;\n if ( AH -> public . exit_on_error ) exit_nicely ( 1 ) ;\n else AH -> public . n_errors ++ ;\n }"}
{"idx": 2440, "target": 0, "func": "static gcry_err_code_t dummy_check_secret_key ( int algorithm , gcry_mpi_t * skey ) {\n ( void ) algorithm ;\n ( void ) skey ;\n fips_signal_error ( \"using dummy public key function\" ) ;\n return GPG_ERR_NOT_IMPLEMENTED ;\n }"}
{"idx": 2441, "target": 0, "func": "Oid get_opfamily_proc ( Oid opfamily , Oid lefttype , Oid righttype , int16 procnum ) {\n HeapTuple tp ;\n Form_pg_amproc amproc_tup ;\n RegProcedure result ;\n tp = SearchSysCache4 ( AMPROCNUM , ObjectIdGetDatum ( opfamily ) , ObjectIdGetDatum ( lefttype ) , ObjectIdGetDatum ( righttype ) , Int16GetDatum ( procnum ) ) ;\n if ( ! HeapTupleIsValid ( tp ) ) return InvalidOid ;\n amproc_tup = ( Form_pg_amproc ) GETSTRUCT ( tp ) ;\n result = amproc_tup -> amproc ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }"}
{"idx": 2442, "target": 0, "func": "static void read_settings ( void ) {\n keep_privates_count = settings_get_int ( \"completion_keep_privates\" ) ;\n keep_publics_count = settings_get_int ( \"completion_keep_publics\" ) ;\n completion_lowercase = settings_get_bool ( \"completion_nicks_lowercase\" ) ;\n completion_auto = settings_get_bool ( \"completion_auto\" ) ;\n completion_strict = settings_get_bool ( \"completion_strict\" ) ;\n completion_empty_line = settings_get_bool ( \"completion_empty_line\" ) ;\n completion_match_case = settings_get_choice ( \"completion_nicks_match_case\" ) ;\n g_free_not_null ( completion_char ) ;\n completion_char = g_strdup ( settings_get_str ( \"completion_char\" ) ) ;\n g_free_not_null ( cmdchars ) ;\n cmdchars = g_strdup ( settings_get_str ( \"cmdchars\" ) ) ;\n if ( * completion_char == '\\0' ) {\n completion_auto = FALSE ;\n }\n }"}
{"idx": 2443, "target": 0, "func": "int test_mont ( BIO * bp , BN_CTX * ctx ) {\n BIGNUM a , b , c , d , A , B ;\n BIGNUM n ;\n int i ;\n BN_MONT_CTX * mont ;\n BN_init ( & a ) ;\n BN_init ( & b ) ;\n BN_init ( & c ) ;\n BN_init ( & d ) ;\n BN_init ( & A ) ;\n BN_init ( & B ) ;\n BN_init ( & n ) ;\n mont = BN_MONT_CTX_new ( ) ;\n if ( mont == NULL ) return 0 ;\n BN_bntest_rand ( & a , 100 , 0 , 0 ) ;\n BN_bntest_rand ( & b , 100 , 0 , 0 ) ;\n for ( i = 0 ;\n i < num2 ;\n i ++ ) {\n int bits = ( 200 * ( i + 1 ) ) um2 ;\n if ( bits == 0 ) continue ;\n BN_bntest_rand ( & n , bits , 0 , 1 ) ;\n BN_MONT_CTX_set ( mont , & n , ctx ) ;\n BN_nnmod ( & a , & a , & n , ctx ) ;\n BN_nnmod ( & b , & b , & n , ctx ) ;\n BN_to_montgomery ( & A , & a , mont , ctx ) ;\n BN_to_montgomery ( & B , & b , mont , ctx ) ;\n BN_mod_mul_montgomery ( & c , & A , & B , mont , ctx ) ;\n BN_from_montgomery ( & A , & c , mont , ctx ) ;\n if ( bp != NULL ) {\n if ( ! results ) {\n # ifdef undef fprintf ( stderr , \"%d * %d %% %d\\n\" , BN_num_bits ( & a ) , BN_num_bits ( & b ) , BN_num_bits ( mont -> N ) ) ;\n # endif BN_print ( bp , & a ) ;\n BIO_puts ( bp , \" * \" ) ;\n BN_print ( bp , & b ) ;\n BIO_puts ( bp , \" % \" ) ;\n BN_print ( bp , & ( mont -> N ) ) ;\n BIO_puts ( bp , \" - \" ) ;\n }\n BN_print ( bp , & A ) ;\n BIO_puts ( bp , \"\\n\" ) ;\n }\n BN_mod_mul ( & d , & a , & b , & n , ctx ) ;\n BN_sub ( & d , & d , & A ) ;\n if ( ! BN_is_zero ( & d ) ) {\n fprintf ( stderr , \"Montgomery multiplication test failed!\\n\" ) ;\n return 0 ;\n }\n }\n BN_MONT_CTX_free ( mont ) ;\n BN_free ( & a ) ;\n BN_free ( & b ) ;\n BN_free ( & c ) ;\n BN_free ( & d ) ;\n BN_free ( & A ) ;\n BN_free ( & B ) ;\n BN_free ( & n ) ;\n return ( 1 ) ;\n }"}
{"idx": 2444, "target": 1, "func": "void xmlInitializeGlobalState ( xmlGlobalStatePtr gs ) {\n # ifdef DEBUG_GLOBALS fprintf ( stderr , \"Initializing globals at %lu for thread %d\\n\" , ( unsigned long ) gs , xmlGetThreadId ( ) ) ;\n # endif if ( xmlThrDefMutex == NULL ) xmlInitGlobals ( ) ;\n xmlMutexLock ( xmlThrDefMutex ) ;\n # if defined ( LIBXML_DOCB_ENABLED ) && defined ( LIBXML_LEGACY_ENABLED ) && defined ( LIBXML_SAX1_ENABLED ) initdocbDefaultSAXHandler ( & gs -> docbDefaultSAXHandler ) ;\n # endif # if defined ( LIBXML_HTML_ENABLED ) && defined ( LIBXML_LEGACY_ENABLED ) inithtmlDefaultSAXHandler ( & gs -> htmlDefaultSAXHandler ) ;\n # endif gs -> oldXMLWDcompatibility = 0 ;\n gs -> xmlBufferAllocScheme = xmlBufferAllocSchemeThrDef ;\n gs -> xmlDefaultBufferSize = xmlDefaultBufferSizeThrDef ;\n # if defined ( LIBXML_SAX1_ENABLED ) && defined ( LIBXML_LEGACY_ENABLED ) initxmlDefaultSAXHandler ( & gs -> xmlDefaultSAXHandler , 1 ) ;\n # endif gs -> xmlDefaultSAXLocator . getPublicId = xmlSAX2GetPublicId ;\n gs -> xmlDefaultSAXLocator . getSystemId = xmlSAX2GetSystemId ;\n gs -> xmlDefaultSAXLocator . getLineNumber = xmlSAX2GetLineNumber ;\n gs -> xmlDefaultSAXLocator . getColumnNumber = xmlSAX2GetColumnNumber ;\n gs -> xmlDoValidityCheckingDefaultValue = xmlDoValidityCheckingDefaultValueThrDef ;\n # if defined ( DEBUG_MEMORY_LOCATION ) | defined ( DEBUG_MEMORY ) gs -> xmlFree = ( xmlFreeFunc ) xmlMemFree ;\n gs -> xmlMalloc = ( xmlMallocFunc ) xmlMemMalloc ;\n gs -> xmlMallocAtomic = ( xmlMallocFunc ) xmlMemMalloc ;\n gs -> xmlRealloc = ( xmlReallocFunc ) xmlMemRealloc ;\n gs -> xmlMemStrdup = ( xmlStrdupFunc ) xmlMemoryStrdup ;\n # else gs -> xmlFree = ( xmlFreeFunc ) free ;\n gs -> xmlMalloc = ( xmlMallocFunc ) malloc ;\n gs -> xmlMallocAtomic = ( xmlMallocFunc ) malloc ;\n gs -> xmlRealloc = ( xmlReallocFunc ) realloc ;\n gs -> xmlMemStrdup = ( xmlStrdupFunc ) xmlStrdup ;\n # endif gs -> xmlGetWarningsDefaultValue = xmlGetWarningsDefaultValueThrDef ;\n gs -> xmlIndentTreeOutput = xmlIndentTreeOutputThrDef ;\n gs -> xmlTreeIndentString = xmlTreeIndentStringThrDef ;\n gs -> xmlKeepBlanksDefaultValue = xmlKeepBlanksDefaultValueThrDef ;\n gs -> xmlLineNumbersDefaultValue = xmlLineNumbersDefaultValueThrDef ;\n gs -> xmlLoadExtDtdDefaultValue = xmlLoadExtDtdDefaultValueThrDef ;\n gs -> xmlParserDebugEntities = xmlParserDebugEntitiesThrDef ;\n gs -> xmlParserVersion = LIBXML_VERSION_STRING ;\n gs -> xmlPedanticParserDefaultValue = xmlPedanticParserDefaultValueThrDef ;\n gs -> xmlSaveNoEmptyTags = xmlSaveNoEmptyTagsThrDef ;\n gs -> xmlSubstituteEntitiesDefaultValue = xmlSubstituteEntitiesDefaultValueThrDef ;\n gs -> xmlGenericError = xmlGenericErrorThrDef ;\n gs -> xmlStructuredError = xmlStructuredErrorThrDef ;\n gs -> xmlGenericErrorContext = xmlGenericErrorContextThrDef ;\n gs -> xmlStructuredErrorContext = xmlStructuredErrorContextThrDef ;\n gs -> xmlRegisterNodeDefaultValue = xmlRegisterNodeDefaultValueThrDef ;\n gs -> xmlDeregisterNodeDefaultValue = xmlDeregisterNodeDefaultValueThrDef ;\n gs -> xmlParserInputBufferCreateFilenameValue = xmlParserInputBufferCreateFilenameValueThrDef ;\n gs -> xmlOutputBufferCreateFilenameValue = xmlOutputBufferCreateFilenameValueThrDef ;\n memset ( & gs -> xmlLastError , 0 , sizeof ( xmlError ) ) ;\n xmlMutexUnlock ( xmlThrDefMutex ) ;\n }"}
{"idx": 2445, "target": 0, "func": "struct qemud_client_stream * remoteCreateClientStream ( virConnectPtr conn , remote_message_header * hdr ) {\n struct qemud_client_stream * stream ;\n VIR_DEBUG ( \"proc=%d serial=%d\" , hdr -> proc , hdr -> serial ) ;\n if ( VIR_ALLOC ( stream ) < 0 ) return NULL ;\n stream -> procedure = hdr -> proc ;\n stream -> serial = hdr -> serial ;\n stream -> st = virStreamNew ( conn , VIR_STREAM_NONBLOCK ) ;\n if ( ! stream -> st ) {\n VIR_FREE ( stream ) ;\n return NULL ;\n }\n stream -> filter . query = remoteStreamFilter ;\n stream -> filter . opaque = stream ;\n return stream ;\n }"}
{"idx": 2446, "target": 0, "func": "static bool parse_policyMappings ( chunk_t blob , int level0 , private_x509_cert_t * this ) {\n x509_policy_mapping_t * map = NULL ;\n asn1_parser_t * parser ;\n chunk_t object ;\n int objectID ;\n bool success ;\n parser = asn1_parser_create ( policyMappingsObjects , blob ) ;\n parser -> set_top_level ( parser , level0 ) ;\n while ( parser -> iterate ( parser , & objectID , & object ) ) {\n switch ( objectID ) {\n case POLICY_MAPPING : INIT ( map ) ;\n this -> policy_mappings -> insert_last ( this -> policy_mappings , map ) ;\n break ;\n case POLICY_MAPPING_ISSUER : if ( map && ! map -> issuer . len ) {\n map -> issuer = chunk_clone ( object ) ;\n }\n break ;\n case POLICY_MAPPING_SUBJECT : if ( map && ! map -> subject . len ) {\n map -> subject = chunk_clone ( object ) ;\n }\n break ;\n default : break ;\n }\n }\n success = parser -> success ( parser ) ;\n parser -> destroy ( parser ) ;\n return success ;\n }"}
{"idx": 2447, "target": 0, "func": "static void decFinalize ( decNumber * dn , decContext * set , Int * residue , uInt * status ) {\n Int shift ;\n Int tinyexp = set -> emin - dn -> digits + 1 ;\n if ( dn -> exponent <= tinyexp ) {\n Int comp ;\n decNumber nmin ;\n if ( dn -> exponent < tinyexp ) {\n decSetSubnormal ( dn , set , residue , status ) ;\n return ;\n }\n uprv_decNumberZero ( & nmin ) ;\n nmin . lsu [ 0 ] = 1 ;\n nmin . exponent = set -> emin ;\n comp = decCompare ( dn , & nmin , 1 ) ;\n if ( comp == BADINT ) {\n * status |= DEC_Insufficient_storage ;\n return ;\n }\n if ( * residue < 0 && comp == 0 ) {\n decApplyRound ( dn , set , * residue , status ) ;\n decSetSubnormal ( dn , set , residue , status ) ;\n return ;\n }\n }\n if ( * residue != 0 ) decApplyRound ( dn , set , * residue , status ) ;\n if ( dn -> exponent <= set -> emax - set -> digits + 1 ) return ;\n if ( dn -> exponent > set -> emax - dn -> digits + 1 ) {\n decSetOverflow ( dn , set , status ) ;\n return ;\n }\n if ( ! set -> clamp ) return ;\n shift = dn -> exponent - ( set -> emax - set -> digits + 1 ) ;\n if ( ! ISZERO ( dn ) ) {\n dn -> digits = decShiftToMost ( dn -> lsu , dn -> digits , shift ) ;\n }\n dn -> exponent -= shift ;\n * status |= DEC_Clamped ;\n return ;\n }"}
{"idx": 2448, "target": 0, "func": "static ulong find_set ( TYPELIB * lib , const char * x , size_t length , char * * err_pos , uint * err_len ) {\n const char * end = x + length ;\n ulong found = 0 ;\n uint find ;\n char buff [ 255 ] ;\n * err_pos = 0 ;\n while ( end > x && my_isspace ( charset_info , end [ - 1 ] ) ) end -- ;\n * err_len = 0 ;\n if ( x != end ) {\n const char * start = x ;\n for ( ;\n ;\n ) {\n const char * pos = start ;\n uint var_len ;\n for ( ;\n pos != end && * pos != ',' ;\n pos ++ ) ;\n var_len = ( uint ) ( pos - start ) ;\n strmake ( buff , start , min ( sizeof ( buff ) - 1 , var_len ) ) ;\n find = find_type ( buff , lib , FIND_TYPE_BASIC ) ;\n if ( ! find ) {\n * err_pos = ( char * ) start ;\n * err_len = var_len ;\n }\n else found |= ( ( longlong ) 1 << ( find - 1 ) ) ;\n if ( pos == end ) break ;\n start = pos + 1 ;\n }\n }\n return found ;\n }"}
{"idx": 2449, "target": 0, "func": "static int dissect_u3v_register ( guint64 addr , proto_tree * branch , tvbuff_t * tvb , gint offset , gint length , u3v_conv_info_t * u3v_conv_info ) {\n gint isABRM = FALSE , isSBRM = FALSE , isSIRM = FALSE , isEIRM = FALSE ;\n if ( addr < 0x10000 ) {\n isABRM = TRUE ;\n switch ( addr ) {\n case U3V_ABRM_GENCP_VERSION : proto_tree_add_item ( branch , hf_u3v_bootstrap_GenCP_Version , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_ABRM_MANUFACTURER_NAME : if ( length <= 64 ) {\n proto_tree_add_item ( branch , hf_u3v_bootstrap_Manufacturer_Name , tvb , offset , length , ENC_ASCII | ENC_NA ) ;\n }\n break ;\n case U3V_ABRM_MODEL_NAME : if ( length <= 64 ) {\n proto_tree_add_item ( branch , hf_u3v_bootstrap_Model_Name , tvb , offset , length , ENC_ASCII | ENC_NA ) ;\n }\n break ;\n case U3V_ABRM_FAMILY_NAME : if ( length <= 64 ) {\n proto_tree_add_item ( branch , hf_u3v_bootstrap_Family_Name , tvb , offset , length , ENC_ASCII | ENC_NA ) ;\n }\n break ;\n case U3V_ABRM_DEVICE_VERSION : if ( length <= 64 ) {\n proto_tree_add_item ( branch , hf_u3v_bootstrap_Device_Version , tvb , offset , length , ENC_ASCII | ENC_NA ) ;\n }\n break ;\n case U3V_ABRM_MANUFACTURER_INFO : if ( length <= 64 ) {\n proto_tree_add_item ( branch , hf_u3v_bootstrap_Manufacturer_Info , tvb , offset , length , ENC_ASCII | ENC_NA ) ;\n }\n break ;\n case U3V_ABRM_SERIAL_NUMBER : if ( length <= 64 ) {\n proto_tree_add_item ( branch , hf_u3v_bootstrap_Serial_Number , tvb , offset , length , ENC_ASCII | ENC_NA ) ;\n }\n break ;\n case U3V_ABRM_USER_DEFINED_NAME : if ( length <= 64 ) {\n proto_tree_add_item ( branch , hf_u3v_bootstrap_User_Defined_Name , tvb , offset , length , ENC_ASCII | ENC_NA ) ;\n }\n break ;\n case U3V_ABRM_DEVICE_CAPABILITY : proto_tree_add_item ( branch , hf_u3v_bootstrap_Device_Capability , tvb , offset , 8 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_ABRM_MAXIMUM_DEVICE_RESPONSE_TIME : proto_tree_add_item ( branch , hf_u3v_bootstrap_Maximum_Device_Response_Time , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_ABRM_MANIFEST_TABLE_ADDRESS : proto_tree_add_item ( branch , hf_u3v_bootstrap_Manifest_Table_Address , tvb , offset , 8 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_ABRM_SBRM_ADDRESS : proto_tree_add_item ( branch , hf_u3v_bootstrap_SBRM_Address , tvb , offset , 8 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_ABRM_DEVICE_CONFIGURATION : proto_tree_add_item ( branch , hf_u3v_bootstrap_Device_Configuration , tvb , offset , 8 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_ABRM_HEARTBEAT_TIMEOUT : proto_tree_add_item ( branch , hf_u3v_bootstrap_Heartbeat_Timeout , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_ABRM_MESSAGE_CHANNEL_CHANNEL_ID : proto_tree_add_item ( branch , hf_u3v_bootstrap_Message_Channel_channel_id , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_ABRM_TIMESTAMP : proto_tree_add_item ( branch , hf_u3v_bootstrap_Timestamp , tvb , offset , 8 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_ABRM_TIMESTAMP_LATCH : proto_tree_add_item ( branch , hf_u3v_bootstrap_Timestamp_Latch , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_ABRM_TIMESTAMP_INCREMENT : proto_tree_add_item ( branch , hf_u3v_bootstrap_Timestamp_Increment , tvb , offset , 8 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_ABRM_ACCESS_PRIVILEGE : proto_tree_add_item ( branch , hf_u3v_bootstrap_Access_Privilege , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_ABRM_PROTOCOL_ENDIANESS : proto_tree_add_item ( branch , hf_u3v_bootstrap_Protocol_Endianess , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_ABRM_IMPLEMENTATION_ENDIANESS : proto_tree_add_item ( branch , hf_u3v_bootstrap_Implementation_Endianess , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n break ;\n default : isABRM = FALSE ;\n break ;\n }\n }\n if ( u3v_conv_info -> sbrm_addr != 0 && ( addr >= u3v_conv_info -> sbrm_addr ) ) {\n guint64 map_offset = addr - u3v_conv_info -> sbrm_addr ;\n isSBRM = TRUE ;\n switch ( map_offset ) {\n case U3V_SBRM_U3V_VERSION : proto_tree_add_item ( branch , hf_u3v_bootstrap_U3V_Version , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_SBRM_U3VCP_CAPABILITY_REGISTER : proto_tree_add_item ( branch , hf_u3v_bootstrap_U3VCP_Capability_Register , tvb , offset , 8 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_SBRM_U3VCP_CONFIGURATION_REGISTER : proto_tree_add_item ( branch , hf_u3v_bootstrap_U3VCP_Configuration_Register , tvb , offset , 8 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_SBRM_MAXIMUM_COMMAND_TRANSFER_LENGTH : proto_tree_add_item ( branch , hf_u3v_bootstrap_Maximum_Command_Transfer_Length , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_SBRM_MAXIMUM_ACKNOWLEDGE_TRANSFER_LENGTH : proto_tree_add_item ( branch , hf_u3v_bootstrap_Maximum_Acknowledge_Transfer_Length , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_SBRM_NUMBER_OF_STREAM_CHANNELS : proto_tree_add_item ( branch , hf_u3v_bootstrap_Number_of_Stream_Channels , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_SBRM_SIRM_ADDRESS : proto_tree_add_item ( branch , hf_u3v_bootstrap_SIRM_Address , tvb , offset , 8 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_SBRM_SIRM_LENGTH : proto_tree_add_item ( branch , hf_u3v_bootstrap_SIRM_Length , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_SBRM_EIRM_ADDRESS : proto_tree_add_item ( branch , hf_u3v_bootstrap_EIRM_Address , tvb , offset , 8 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_SBRM_EIRM_LENGTH : proto_tree_add_item ( branch , hf_u3v_bootstrap_EIRM_Length , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_SBRM_IIDC2_ADDRESS : proto_tree_add_item ( branch , hf_u3v_bootstrap_IIDC2_Address , tvb , offset , 8 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_SBRM_CURRENT_SPEED : proto_tree_add_item ( branch , hf_u3v_bootstrap_Current_Speed , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n break ;\n default : isSBRM = FALSE ;\n break ;\n }\n }\n if ( u3v_conv_info -> sirm_addr != 0 && ( addr >= u3v_conv_info -> sirm_addr ) ) {\n guint64 map_offset = addr - u3v_conv_info -> sirm_addr ;\n isSIRM = TRUE ;\n switch ( map_offset ) {\n case U3V_SIRM_SI_INFO : proto_tree_add_item ( branch , hf_u3v_bootstrap_SI_Info , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_SIRM_SI_CONTROL : proto_tree_add_item ( branch , hf_u3v_bootstrap_SI_Control , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_SIRM_SI_REQUIRED_PAYLOAD_SIZE : proto_tree_add_item ( branch , hf_u3v_bootstrap_SI_Required_Payload_Size , tvb , offset , 8 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_SIRM_SI_REQUIRED_LEADER_SIZE : proto_tree_add_item ( branch , hf_u3v_bootstrap_SI_Required_Leader_Size , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_SIRM_SI_REQUIRED_TRAILER_SIZE : proto_tree_add_item ( branch , hf_u3v_bootstrap_SI_Required_Trailer_Size , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_SIRM_SI_MAXIMUM_LEADER_SIZE : proto_tree_add_item ( branch , hf_u3v_bootstrap_SI_Maximum_Leader_Size , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_SIRM_SI_PAYLOAD_TRANSFER_SIZE : proto_tree_add_item ( branch , hf_u3v_bootstrap_SI_Payload_Transfer_Size , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_SIRM_SI_PAYLOAD_TRANSFER_COUNT : proto_tree_add_item ( branch , hf_u3v_bootstrap_SI_Payload_Transfer_Count , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_SIRM_SI_PAYLOAD_FINAL_TRANSFER1_SIZE : proto_tree_add_item ( branch , hf_u3v_bootstrap_SI_Payload_Final_Transfer1_Size , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_SIRM_SI_PAYLOAD_FINAL_TRANSFER2_SIZE : proto_tree_add_item ( branch , hf_u3v_bootstrap_SI_Payload_Final_Transfer2_Size , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_SIRM_SI_MAXIMUM_TRAILER_SIZE : proto_tree_add_item ( branch , hf_u3v_bootstrap_SI_Maximum_Trailer_Size , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n break ;\n default : isSIRM = FALSE ;\n break ;\n }\n }\n if ( u3v_conv_info -> eirm_addr != 0 && ( addr >= u3v_conv_info -> eirm_addr ) ) {\n guint64 map_offset = addr - u3v_conv_info -> eirm_addr ;\n isEIRM = TRUE ;\n switch ( map_offset ) {\n case U3V_EIRM_EI_CONTROL : proto_tree_add_item ( branch , hf_u3v_bootstrap_EI_Control , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_EIRM_MAXIMUM_EVENT_TRANSFER_LENGTH : proto_tree_add_item ( branch , hf_u3v_bootstrap_Maximum_Event_Transfer_Length , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case U3V_EIRM_EVENT_TEST_CONTROL : proto_tree_add_item ( branch , hf_u3v_bootstrap_Event_Test_Control , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n break ;\n default : isEIRM = FALSE ;\n break ;\n }\n }\n if ( isABRM || isSBRM || isSIRM || isEIRM ) {\n return 1 ;\n }\n return 0 ;\n }"}
{"idx": 2450, "target": 0, "func": "static cmsBool ReadMPECurve ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Cargo , cmsUInt32Number n , cmsUInt32Number SizeOfTag ) {\n cmsToneCurve * * GammaTables = ( cmsToneCurve * * ) Cargo ;\n GammaTables [ n ] = ReadSegmentedCurve ( self , io ) ;\n return ( GammaTables [ n ] != NULL ) ;\n cmsUNUSED_PARAMETER ( SizeOfTag ) ;\n }"}
{"idx": 2451, "target": 0, "func": "void do_remove_file ( struct st_command * command ) {\n int error ;\n static DYNAMIC_STRING ds_filename ;\n const struct command_arg rm_args [ ] = {\n {\n \"filename\" , ARG_STRING , TRUE , & ds_filename , \"File to delete\" }\n }\n ;\n DBUG_ENTER ( \"do_remove_file\" ) ;\n check_command_args ( command , command -> first_argument , rm_args , sizeof ( rm_args ) / sizeof ( struct command_arg ) , ' ' ) ;\n DBUG_PRINT ( \"info\" , ( \"removing file: %s\" , ds_filename . str ) ) ;\n error = my_delete ( ds_filename . str , MYF ( disable_warnings ? 0 : MY_WME ) ) != 0 ;\n handle_command_error ( command , error , my_errno ) ;\n dynstr_free ( & ds_filename ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 2452, "target": 0, "func": "static OFCondition makeLengthError ( const char * pdu , unsigned long bufSize , unsigned long minSize , unsigned long length ) {\n OFStringStream stream ;\n stream << \"DUL Illegal \" << pdu << \". Got \" << bufSize << \" bytes of data\" ;\n if ( length != 0 ) stream << \" with a length field of \" << length << \" (data before length field is not included in length field)\" ;\n if ( minSize != 0 ) stream << \". The minimum allowed size is \" << minSize ;\n stream << \".\" << OFStringStream_ends ;\n OFCondition ret ;\n OFSTRINGSTREAM_GETSTR ( stream , tmpString ) ret = makeDcmnetCondition ( DULC_ILLEGALPDULENGTH , OF_error , tmpString ) ;\n OFSTRINGSTREAM_FREESTR ( tmpString ) return ret ;\n }"}
{"idx": 2453, "target": 0, "func": "static int test_command_line_arguments ( xd3_stream * stream , int ignore ) {\n int i , ret ;\n static const char * cmdpairs [ ] = {\n \"%s %s -A < %s > %s\" , \"%s -d < %s > %s\" , \"%s %s -A -e < %s > %s\" , \"%s -d < %s > %s\" , \"%s %s -A= encode < %s > %s\" , \"%s decode < %s > %s\" , \"%s %s -A -q encode < %s > %s\" , \"%s -qdq < %s > %s\" , \"%s %s -A= %s > %s\" , \"%s -d %s > %s\" , \"%s %s -A -e %s > %s\" , \"%s -d %s > %s\" , \"%s %s encode -A= %s > %s\" , \"%s decode %s > %s\" , \"%s %s -A= %s %s\" , \"%s -d %s %s\" , \"%s %s -A -e %s %s\" , \"%s -d %s %s\" , \"%s %s -A= encode %s %s\" , \"%s decode %s %s\" , \"%s %s -A -f %s %s\" , \"%s -f -d %s %s\" , \"%s %s -e -A= %s %s\" , \"%s -d -f %s %s\" , \"%s %s -f encode -A= %s %s\" , \"%s -f decode -f %s %s\" , }\n ;\n char ecmd [ TESTBUFSIZE ] , dcmd [ TESTBUFSIZE ] ;\n int pairs = SIZEOF_ARRAY ( cmdpairs ) / 2 ;\n xoff_t tsize ;\n xoff_t dsize ;\n double ratio ;\n mt_init ( & static_mtrand , 0x9f73f7fc ) ;\n for ( i = 0 ;\n i < pairs ;\n i += 1 ) {\n test_setup ( ) ;\n if ( ( ret = test_make_inputs ( stream , NULL , & tsize ) ) ) {\n return ret ;\n }\n snprintf_func ( ecmd , TESTBUFSIZE , cmdpairs [ 2 * i ] , program_name , test_softcfg_str , TEST_TARGET_FILE , TEST_DELTA_FILE ) ;\n snprintf_func ( dcmd , TESTBUFSIZE , cmdpairs [ 2 * i + 1 ] , program_name , TEST_DELTA_FILE , TEST_RECON_FILE ) ;\n if ( ( ret = system ( ecmd ) ) != 0 ) {\n XPR ( NT \"encode command: %s\\n\" , ecmd ) ;\n stream -> msg = \"encode cmd failed\" ;\n return XD3_INTERNAL ;\n }\n if ( ( ret = system ( dcmd ) ) != 0 ) {\n XPR ( NT \"decode command: %s\\n\" , dcmd ) ;\n stream -> msg = \"decode cmd failed\" ;\n return XD3_INTERNAL ;\n }\n if ( ( ret = test_compare_files ( TEST_TARGET_FILE , TEST_RECON_FILE ) ) ) {\n return ret ;\n }\n if ( ( ret = test_file_size ( TEST_DELTA_FILE , & dsize ) ) ) {\n return ret ;\n }\n ratio = ( double ) dsize / ( double ) tsize ;\n if ( ratio >= TEST_ADD_RATIO + TEST_EPSILON ) {\n XPR ( NT \"test encode with size ratio %.4f, \" \"expected < %.4f (%\" Q \"u, %\" Q \"u)\\n\" , ratio , TEST_ADD_RATIO + TEST_EPSILON , dsize , tsize ) ;\n stream -> msg = \"strange encoding\" ;\n return XD3_INTERNAL ;\n }\n if ( ratio <= TEST_ADD_RATIO * ( 1.0 - 2 * TEST_EPSILON ) ) {\n XPR ( NT \"test encode with size ratio %.4f, \" \"expected > %.4f\\n\" , ratio , TEST_ADD_RATIO - TEST_EPSILON ) ;\n stream -> msg = \"strange encoding\" ;\n return XD3_INTERNAL ;\n }\n if ( ( ret = test_compare_files ( TEST_DELTA_FILE , TEST_TARGET_FILE ) ) == 0 ) {\n stream -> msg = \"broken test_compare_files\" ;\n return XD3_INTERNAL ;\n }\n test_cleanup ( ) ;\n DOT ( ) ;\n }\n return 0 ;\n }"}
{"idx": 2454, "target": 0, "func": "static Datum ExecMakeFunctionResultNoSets ( FuncExprState * fcache , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n ListCell * arg ;\n Datum result ;\n FunctionCallInfo fcinfo ;\n PgStat_FunctionCallUsage fcusage ;\n int i ;\n check_stack_depth ( ) ;\n if ( isDone ) * isDone = ExprSingleResult ;\n fcinfo = & fcache -> fcinfo_data ;\n i = 0 ;\n foreach ( arg , fcache -> args ) {\n ExprState * argstate = ( ExprState * ) lfirst ( arg ) ;\n fcinfo -> arg [ i ] = ExecEvalExpr ( argstate , econtext , & fcinfo -> argnull [ i ] , NULL ) ;\n i ++ ;\n }\n if ( fcache -> func . fn_strict ) {\n while ( -- i >= 0 ) {\n if ( fcinfo -> argnull [ i ] ) {\n * isNull = true ;\n return ( Datum ) 0 ;\n }\n }\n }\n pgstat_init_function_usage ( fcinfo , & fcusage ) ;\n fcinfo -> isnull = false ;\n result = FunctionCallInvoke ( fcinfo ) ;\n * isNull = fcinfo -> isnull ;\n pgstat_end_function_usage ( & fcusage , true ) ;\n return result ;\n }"}
{"idx": 2455, "target": 0, "func": "static void write_pack_file ( void ) {\n uint32_t i = 0 , j ;\n struct sha1file * f ;\n off_t offset ;\n uint32_t nr_remaining = nr_result ;\n time_t last_mtime = 0 ;\n struct object_entry * * write_order ;\n if ( progress > pack_to_stdout ) progress_state = start_progress ( _ ( \"Writing objects\" ) , nr_result ) ;\n written_list = xmalloc ( to_pack . nr_objects * sizeof ( * written_list ) ) ;\n write_order = compute_write_order ( ) ;\n do {\n unsigned char sha1 [ 20 ] ;\n char * pack_tmp_name = NULL ;\n if ( pack_to_stdout ) f = sha1fd_throughput ( 1 , \"<stdout>\" , progress_state ) ;\n else f = create_tmp_packfile ( & pack_tmp_name ) ;\n offset = write_pack_header ( f , nr_remaining ) ;\n if ( reuse_packfile ) {\n off_t packfile_size ;\n assert ( pack_to_stdout ) ;\n packfile_size = write_reused_pack ( f ) ;\n offset += packfile_size ;\n }\n nr_written = 0 ;\n for ( ;\n i < to_pack . nr_objects ;\n i ++ ) {\n struct object_entry * e = write_order [ i ] ;\n if ( write_one ( f , e , & offset ) == WRITE_ONE_BREAK ) break ;\n display_progress ( progress_state , written ) ;\n }\n if ( pack_to_stdout ) {\n sha1close ( f , sha1 , CSUM_CLOSE ) ;\n }\n else if ( nr_written == nr_remaining ) {\n sha1close ( f , sha1 , CSUM_FSYNC ) ;\n }\n else {\n int fd = sha1close ( f , sha1 , 0 ) ;\n fixup_pack_header_footer ( fd , sha1 , pack_tmp_name , nr_written , sha1 , offset ) ;\n close ( fd ) ;\n write_bitmap_index = 0 ;\n }\n if ( ! pack_to_stdout ) {\n struct stat st ;\n struct strbuf tmpname = STRBUF_INIT ;\n if ( stat ( pack_tmp_name , & st ) < 0 ) {\n warning ( \"failed to stat %s: %s\" , pack_tmp_name , strerror ( errno ) ) ;\n }\n else if ( ! last_mtime ) {\n last_mtime = st . st_mtime ;\n }\n else {\n struct utimbuf utb ;\n utb . actime = st . st_atime ;\n utb . modtime = -- last_mtime ;\n if ( utime ( pack_tmp_name , & utb ) < 0 ) warning ( \"failed utime() on %s: %s\" , pack_tmp_name , strerror ( errno ) ) ;\n }\n strbuf_addf ( & tmpname , \"%s-\" , base_name ) ;\n if ( write_bitmap_index ) {\n bitmap_writer_set_checksum ( sha1 ) ;\n bitmap_writer_build_type_index ( written_list , nr_written ) ;\n }\n finish_tmp_packfile ( & tmpname , pack_tmp_name , written_list , nr_written , & pack_idx_opts , sha1 ) ;\n if ( write_bitmap_index ) {\n strbuf_addf ( & tmpname , \"%s.bitmap\" , sha1_to_hex ( sha1 ) ) ;\n stop_progress ( & progress_state ) ;\n bitmap_writer_show_progress ( progress ) ;\n bitmap_writer_reuse_bitmaps ( & to_pack ) ;\n bitmap_writer_select_commits ( indexed_commits , indexed_commits_nr , - 1 ) ;\n bitmap_writer_build ( & to_pack ) ;\n bitmap_writer_finish ( written_list , nr_written , tmpname . buf , write_bitmap_options ) ;\n write_bitmap_index = 0 ;\n }\n strbuf_release ( & tmpname ) ;\n free ( pack_tmp_name ) ;\n puts ( sha1_to_hex ( sha1 ) ) ;\n }\n for ( j = 0 ;\n j < nr_written ;\n j ++ ) {\n written_list [ j ] -> offset = ( off_t ) - 1 ;\n }\n nr_remaining -= nr_written ;\n }\n while ( nr_remaining && i < to_pack . nr_objects ) ;\n free ( written_list ) ;\n free ( write_order ) ;\n stop_progress ( & progress_state ) ;\n if ( written != nr_result ) die ( \"wrote %\" PRIu32 \" objects while expecting %\" PRIu32 , written , nr_result ) ;\n }"}
{"idx": 2456, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ContentSettingBubbleDialogTest , InvokeDialog_plugins ) {\n RunDialog ( ) ;\n }"}
{"idx": 2457, "target": 1, "func": "static PyObject * checkPassword ( PyObject * self , PyObject * args ) {\n const char * user = NULL ;\n const char * pswd = NULL ;\n const char * service = NULL ;\n const char * default_realm = NULL ;\n int result = 0 ;\n if ( ! PyArg_ParseTuple ( args , \"ssss\" , & user , & pswd , & service , & default_realm ) ) return NULL ;\n result = authenticate_user_krb5pwd ( user , pswd , service , default_realm ) ;\n if ( result ) return Py_INCREF ( Py_True ) , Py_True ;\n else return NULL ;\n }"}
{"idx": 2458, "target": 0, "func": "static void dtap_gcc_get_status ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n ELEM_OPT_TLV ( 0x17 , GSM_A_PDU_TYPE_COMMON , DE_MID , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 2459, "target": 0, "func": "static void var_filter_block2d_bil_w8 ( const uint8_t * src_ptr , uint8_t * output_ptr , unsigned int src_pixels_per_line , int pixel_step , unsigned int output_height , unsigned int output_width , const uint16_t * vpx_filter ) {\n const uint8x8_t f0 = vmov_n_u8 ( ( uint8_t ) vpx_filter [ 0 ] ) ;\n const uint8x8_t f1 = vmov_n_u8 ( ( uint8_t ) vpx_filter [ 1 ] ) ;\n unsigned int i ;\n for ( i = 0 ;\n i < output_height ;\n ++ i ) {\n const uint8x8_t src_0 = vld1_u8 ( & src_ptr [ 0 ] ) ;\n const uint8x8_t src_1 = vld1_u8 ( & src_ptr [ pixel_step ] ) ;\n const uint16x8_t a = vmull_u8 ( src_0 , f0 ) ;\n const uint16x8_t b = vmlal_u8 ( a , src_1 , f1 ) ;\n const uint8x8_t out = vrshrn_n_u16 ( b , FILTER_BITS ) ;\n vst1_u8 ( & output_ptr [ 0 ] , out ) ;\n src_ptr += src_pixels_per_line ;\n output_ptr += output_width ;\n }\n }"}
{"idx": 2460, "target": 0, "func": "static gboolean strcase_equal ( gconstpointer ka , gconstpointer kb ) {\n const char * a = ( const char * ) ka ;\n const char * b = ( const char * ) kb ;\n return g_ascii_strcasecmp ( a , b ) == 0 ;\n }"}
{"idx": 2461, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , FirstMeaningfulPaintRecorded ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : FIRST_MEANINGFUL_PAINT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/title1.html\" ) ) ;\n waiter -> Wait ( ) ;\n histogram_tester_ . ExpectUniqueSample ( internal : : kHistogramFirstMeaningfulPaintStatus , internal : : FIRST_MEANINGFUL_PAINT_RECORDED , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramFirstMeaningfulPaint , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramParseStartToFirstMeaningfulPaint , 1 ) ;\n }"}
{"idx": 2462, "target": 0, "func": "static void dissect_rsvp_restart_cap ( proto_tree * ti , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int type ) {\n int offset2 = offset + 4 ;\n guint restart , recovery ;\n proto_item_set_text ( ti , \"RESTART CAPABILITY: \" ) ;\n switch ( type ) {\n case 1 : proto_tree_add_uint ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type ) ;\n restart = tvb_get_ntohl ( tvb , offset2 ) ;\n proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_restart_cap_restart_time , tvb , offset2 , 4 , restart , \"%d ms\" , restart ) ;\n recovery = tvb_get_ntohl ( tvb , offset2 + 4 ) ;\n proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_restart_cap_recovery_time , tvb , offset2 + 4 , 4 , recovery , \"%d ms\" , recovery ) ;\n proto_item_append_text ( ti , \"Restart Time: %d ms. Recovery Time: %d ms.\" , restart , recovery ) ;\n break ;\n default : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"Unknown (%u)\" , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_restart_cap_data , tvb , offset2 , obj_length - 4 , ENC_NA ) ;\n break ;\n }\n }"}
{"idx": 2463, "target": 0, "func": "static int dissect_DRIVER_INFO_6 ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n proto_tree * subtree ;\n int struct_start = offset ;\n subtree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_DRIVER_INFO_6 , NULL , \"Driver info level 6\" ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_driverinfo_cversion , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_drivername , struct_start , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_environment , struct_start , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_driverpath , struct_start , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_datafile , struct_start , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_configfile , struct_start , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_helpfile , struct_start , NULL ) ;\n offset = dissect_spoolss_relstrarray ( tvb , offset , pinfo , subtree , di , drep , hf_dependentfiles , struct_start , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_monitorname , struct_start , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_defaultdatatype , struct_start , NULL ) ;\n offset = dissect_spoolss_relstrarray ( tvb , offset , pinfo , subtree , di , drep , hf_previousdrivernames , struct_start , NULL ) ;\n offset = dissect_ndr_nt_NTTIME ( tvb , offset , pinfo , subtree , di , drep , hf_driverdate ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_padding , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_driver_version_low , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_driver_version_high , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_mfgname , struct_start , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_oemurl , struct_start , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_hardwareid , struct_start , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_provider , struct_start , NULL ) ;\n return offset ;\n }"}
{"idx": 2464, "target": 1, "func": "static double get_zero_motion_factor ( const FIRSTPASS_STATS * frame ) {\n const double sr_ratio = frame -> coded_error / DOUBLE_DIVIDE_CHECK ( frame -> sr_coded_error ) ;\n const double zero_motion_pct = frame -> pcnt_inter - frame -> pcnt_motion ;\n return MIN ( sr_ratio , zero_motion_pct ) ;\n }"}
{"idx": 2465, "target": 0, "func": "void vp9_setup_block_planes ( MACROBLOCKD * xd , int ss_x , int ss_y ) {\n int i ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n i ++ ) {\n xd -> plane [ i ] . plane_type = i ? PLANE_TYPE_UV : PLANE_TYPE_Y ;\n xd -> plane [ i ] . subsampling_x = i ? ss_x : 0 ;\n xd -> plane [ i ] . subsampling_y = i ? ss_y : 0 ;\n }\n }"}
{"idx": 2466, "target": 0, "func": "SPL_METHOD ( SplFileInfo , func_name ) \\ {\n \\ spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n \\ zend_error_handling error_handling ;\n \\ if ( zend_parse_parameters_none ( ) == FAILURE ) {\n \\ return ;\n \\ }\n \\ \\ zend_replace_error_handling ( EH_THROW , spl_ce_RuntimeException , & error_handling TSRMLS_CC ) ;\n \\ spl_filesystem_object_get_file_name ( intern TSRMLS_CC ) ;\n \\ php_stat ( intern -> file_name , intern -> file_name_len , func_num , return_value TSRMLS_CC ) ;\n \\ zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n \\ }\n FileInfoFunction ( getPerms , FS_PERMS ) FileInfoFunction ( getInode , FS_INODE ) FileInfoFunction ( getSize , FS_SIZE ) FileInfoFunction ( getOwner , FS_OWNER ) FileInfoFunction ( getGroup , FS_GROUP ) FileInfoFunction ( getATime , FS_ATIME ) FileInfoFunction ( getMTime , FS_MTIME ) FileInfoFunction ( getCTime , FS_CTIME ) FileInfoFunction ( getType , FS_TYPE ) FileInfoFunction ( isWritable , FS_IS_W )"}
{"idx": 2467, "target": 0, "func": "static GFile * extract_job_on_decide_destination ( AutoarExtractor * extractor , GFile * destination , GList * files , gpointer user_data ) {\n ExtractJob * extract_job = user_data ;\n GFile * decided_destination ;\n g_autofree char * basename = NULL ;\n nautilus_progress_info_set_details ( extract_job -> common . progress , _ ( \"Verifying destination\" ) ) ;\n basename = g_file_get_basename ( destination ) ;\n decided_destination = nautilus_generate_unique_file_in_directory ( extract_job -> destination_directory , basename ) ;\n if ( job_aborted ( ( CommonJob * ) extract_job ) ) {\n g_object_unref ( decided_destination ) ;\n return NULL ;\n }\n extract_job -> output_files = g_list_prepend ( extract_job -> output_files , decided_destination ) ;\n return g_object_ref ( decided_destination ) ;\n }"}
{"idx": 2468, "target": 0, "func": "int auth_server_connection_connect ( struct auth_server_connection * conn ) {\n const char * handshake ;\n int fd ;\n i_assert ( ! conn -> connected ) ;\n i_assert ( conn -> fd == - 1 ) ;\n conn -> last_connect = ioloop_time ;\n timeout_remove ( & conn -> to ) ;\n fd = net_connect_unix_with_retries ( conn -> client -> auth_socket_path , 1000 ) ;\n if ( fd == - 1 ) {\n if ( errno == EACCES ) {\n i_error ( \"auth: %s\" , eacces_error_get ( \"connect\" , conn -> client -> auth_socket_path ) ) ;\n }\n else {\n i_error ( \"auth: connect(%s) failed: %m\" , conn -> client -> auth_socket_path ) ;\n }\n return - 1 ;\n }\n conn -> fd = fd ;\n conn -> io = io_add ( fd , IO_READ , auth_server_connection_input , conn ) ;\n conn -> input = i_stream_create_fd ( fd , AUTH_SERVER_CONN_MAX_LINE_LENGTH ) ;\n conn -> output = o_stream_create_fd ( fd , ( size_t ) - 1 ) ;\n conn -> connected = TRUE ;\n handshake = t_strdup_printf ( \"VERSION\\t%u\\t%u\\nCPID\\t%u\\n\" , AUTH_CLIENT_PROTOCOL_MAJOR_VERSION , AUTH_CLIENT_PROTOCOL_MINOR_VERSION , conn -> client -> client_pid ) ;\n if ( o_stream_send_str ( conn -> output , handshake ) < 0 ) {\n i_warning ( \"Error sending handshake to auth server: %s\" , o_stream_get_error ( conn -> output ) ) ;\n auth_server_connection_disconnect ( conn , o_stream_get_error ( conn -> output ) ) ;\n return - 1 ;\n }\n conn -> to = timeout_add ( AUTH_HANDSHAKE_TIMEOUT , auth_client_handshake_timeout , conn ) ;\n return 0 ;\n }"}
{"idx": 2469, "target": 0, "func": "static inline void SetPixelIndex ( const Image * restrict image , const Quantum index , Quantum * restrict pixel ) {\n if ( image -> channel_map [ IndexPixelChannel ] . traits != UndefinedPixelTrait ) pixel [ image -> channel_map [ IndexPixelChannel ] . offset ] = index ;\n }"}
{"idx": 2470, "target": 0, "func": "static int cli_scanfile ( const char * filename , cli_ctx * ctx ) {\n int fd , ret ;\n fd = safe_open ( filename , O_RDONLY | O_BINARY ) ;\n if ( fd < 0 ) return CL_EOPEN ;\n ret = cli_magic_scandesc ( fd , ctx ) ;\n close ( fd ) ;\n return ret ;\n }"}
{"idx": 2471, "target": 0, "func": "xsltDocumentPtr xsltFindDocument ( xsltTransformContextPtr ctxt , xmlDocPtr doc ) {\n xsltDocumentPtr ret ;\n if ( ( ctxt == NULL ) || ( doc == NULL ) ) return ( NULL ) ;\n ret = ctxt -> docList ;\n while ( ret != NULL ) {\n if ( ret -> doc == doc ) return ( ret ) ;\n ret = ret -> next ;\n }\n if ( doc == ctxt -> style -> doc ) return ( ctxt -> document ) ;\n return ( NULL ) ;\n }"}
{"idx": 2472, "target": 0, "func": "static int proc_getdriver ( struct usb_dev_state * ps , void __user * arg ) {\n struct usbdevfs_getdriver gd ;\n struct usb_interface * intf ;\n int ret ;\n if ( copy_from_user ( & gd , arg , sizeof ( gd ) ) ) return - EFAULT ;\n intf = usb_ifnum_to_if ( ps -> dev , gd . interface ) ;\n if ( ! intf || ! intf -> dev . driver ) ret = - ENODATA ;\n else {\n strlcpy ( gd . driver , intf -> dev . driver -> name , sizeof ( gd . driver ) ) ;\n ret = ( copy_to_user ( arg , & gd , sizeof ( gd ) ) ? - EFAULT : 0 ) ;\n }\n return ret ;\n }"}
{"idx": 2473, "target": 0, "func": "static void vorbis_free ( vorbis_context * vc ) {\n int i ;\n av_freep ( & vc -> channel_residues ) ;\n av_freep ( & vc -> saved ) ;\n for ( i = 0 ;\n i < vc -> residue_count ;\n i ++ ) av_free ( vc -> residues [ i ] . classifs ) ;\n av_freep ( & vc -> residues ) ;\n av_freep ( & vc -> modes ) ;\n ff_mdct_end ( & vc -> mdct [ 0 ] ) ;\n ff_mdct_end ( & vc -> mdct [ 1 ] ) ;\n for ( i = 0 ;\n i < vc -> codebook_count ;\n ++ i ) {\n av_free ( vc -> codebooks [ i ] . codevectors ) ;\n ff_free_vlc ( & vc -> codebooks [ i ] . vlc ) ;\n }\n av_freep ( & vc -> codebooks ) ;\n for ( i = 0 ;\n i < vc -> floor_count ;\n ++ i ) {\n if ( vc -> floors [ i ] . floor_type == 0 ) {\n av_free ( vc -> floors [ i ] . data . t0 . map [ 0 ] ) ;\n av_free ( vc -> floors [ i ] . data . t0 . map [ 1 ] ) ;\n av_free ( vc -> floors [ i ] . data . t0 . book_list ) ;\n av_free ( vc -> floors [ i ] . data . t0 . lsp ) ;\n }\n else {\n av_free ( vc -> floors [ i ] . data . t1 . list ) ;\n }\n }\n av_freep ( & vc -> floors ) ;\n for ( i = 0 ;\n i < vc -> mapping_count ;\n ++ i ) {\n av_free ( vc -> mappings [ i ] . magnitude ) ;\n av_free ( vc -> mappings [ i ] . angle ) ;\n av_free ( vc -> mappings [ i ] . mux ) ;\n }\n av_freep ( & vc -> mappings ) ;\n }"}
{"idx": 2474, "target": 0, "func": "static int pxa2xx_fir_load ( QEMUFile * f , void * opaque , int version_id ) {\n PXA2xxFIrState * s = ( PXA2xxFIrState * ) opaque ;\n int i ;\n s -> enable = qemu_get_be32 ( f ) ;\n qemu_get_8s ( f , & s -> control [ 0 ] ) ;\n qemu_get_8s ( f , & s -> control [ 1 ] ) ;\n qemu_get_8s ( f , & s -> control [ 2 ] ) ;\n qemu_get_8s ( f , & s -> status [ 0 ] ) ;\n qemu_get_8s ( f , & s -> status [ 1 ] ) ;\n s -> rx_len = qemu_get_byte ( f ) ;\n s -> rx_start = 0 ;\n for ( i = 0 ;\n i < s -> rx_len ;\n i ++ ) s -> rx_fifo [ i ] = qemu_get_byte ( f ) ;\n return 0 ;\n }"}
{"idx": 2475, "target": 1, "func": "static int dissect_h225_FeatureDescriptor ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 840 \"./asn1/h225/h225.cnf\" void * priv_data = actx -> private_data ;\n actx -> private_data = gef_ctx_alloc ( NULL , \"FeatureDescriptor\" ) ;\n offset = dissect_h225_GenericData ( tvb , offset , actx , tree , hf_index ) ;\n # line 843 \"./asn1/h225/h225.cnf\" actx -> private_data = priv_data ;\n return offset ;\n }"}
{"idx": 2476, "target": 0, "func": "int ff_update_duplicate_context ( MpegEncContext * dst , MpegEncContext * src ) {\n MpegEncContext bak ;\n int i , ret ;\n backup_duplicate_context ( & bak , dst ) ;\n memcpy ( dst , src , sizeof ( MpegEncContext ) ) ;\n backup_duplicate_context ( dst , & bak ) ;\n for ( i = 0 ;\n i < 12 ;\n i ++ ) {\n dst -> pblocks [ i ] = & dst -> block [ i ] ;\n }\n if ( ! dst -> edge_emu_buffer && ( ret = ff_mpv_frame_size_alloc ( dst , dst -> linesize ) ) < 0 ) {\n av_log ( dst -> avctx , AV_LOG_ERROR , \"failed to allocate context \" \"scratch buffers.\\n\" ) ;\n return ret ;\n }\n return 0 ;\n }"}
{"idx": 2477, "target": 0, "func": "int tls1_setup_key_block ( SSL * s ) {\n unsigned char * p1 , * p2 = NULL ;\n const EVP_CIPHER * c ;\n const EVP_MD * hash ;\n int num ;\n SSL_COMP * comp ;\n int mac_type = NID_undef , mac_secret_size = 0 ;\n int ret = 0 ;\n # ifdef KSSL_DEBUG printf ( \"tls1_setup_key_block()\\n\" ) ;\n # endif if ( s -> s3 -> tmp . key_block_length != 0 ) return ( 1 ) ;\n if ( ! ssl_cipher_get_evp ( s -> session , & c , & hash , & mac_type , & mac_secret_size , & comp ) ) {\n SSLerr ( SSL_F_TLS1_SETUP_KEY_BLOCK , SSL_R_CIPHER_OR_HASH_UNAVAILABLE ) ;\n return ( 0 ) ;\n }\n s -> s3 -> tmp . new_sym_enc = c ;\n s -> s3 -> tmp . new_hash = hash ;\n s -> s3 -> tmp . new_mac_pkey_type = mac_type ;\n s -> s3 -> tmp . new_mac_secret_size = mac_secret_size ;\n num = EVP_CIPHER_key_length ( c ) + mac_secret_size + EVP_CIPHER_iv_length ( c ) ;\n num *= 2 ;\n ssl3_cleanup_key_block ( s ) ;\n if ( ( p1 = ( unsigned char * ) OPENSSL_malloc ( num ) ) == NULL ) {\n SSLerr ( SSL_F_TLS1_SETUP_KEY_BLOCK , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n s -> s3 -> tmp . key_block_length = num ;\n s -> s3 -> tmp . key_block = p1 ;\n if ( ( p2 = ( unsigned char * ) OPENSSL_malloc ( num ) ) == NULL ) {\n SSLerr ( SSL_F_TLS1_SETUP_KEY_BLOCK , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n # ifdef TLS_DEBUG printf ( \"client random\\n\" ) ;\n {\n int z ;\n for ( z = 0 ;\n z < SSL3_RANDOM_SIZE ;\n z ++ ) printf ( \"%02X%c\" , s -> s3 -> client_random [ z ] , ( ( z + 1 ) % 16 ) ? ' ' : '\\n' ) ;\n }\n printf ( \"server random\\n\" ) ;\n {\n int z ;\n for ( z = 0 ;\n z < SSL3_RANDOM_SIZE ;\n z ++ ) printf ( \"%02X%c\" , s -> s3 -> server_random [ z ] , ( ( z + 1 ) % 16 ) ? ' ' : '\\n' ) ;\n }\n printf ( \"pre-master\\n\" ) ;\n {\n int z ;\n for ( z = 0 ;\n z < s -> session -> master_key_length ;\n z ++ ) printf ( \"%02X%c\" , s -> session -> master_key [ z ] , ( ( z + 1 ) % 16 ) ? ' ' : '\\n' ) ;\n }\n # endif if ( ! tls1_generate_key_block ( s , p1 , p2 , num ) ) goto err ;\n # ifdef TLS_DEBUG printf ( \"\\nkey block\\n\" ) ;\n {\n int z ;\n for ( z = 0 ;\n z < num ;\n z ++ ) printf ( \"%02X%c\" , p1 [ z ] , ( ( z + 1 ) % 16 ) ? ' ' : '\\n' ) ;\n }\n # endif if ( ! ( s -> options & SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS ) && s -> method -> version <= TLS1_VERSION ) {\n s -> s3 -> need_empty_fragments = 1 ;\n if ( s -> session -> cipher != NULL ) {\n if ( s -> session -> cipher -> algorithm_enc == SSL_eNULL ) s -> s3 -> need_empty_fragments = 0 ;\n # ifndef OPENSSL_NO_RC4 if ( s -> session -> cipher -> algorithm_enc == SSL_RC4 ) s -> s3 -> need_empty_fragments = 0 ;\n # endif }\n }\n ret = 1 ;\n err : if ( p2 ) {\n OPENSSL_cleanse ( p2 , num ) ;\n OPENSSL_free ( p2 ) ;\n }\n return ( ret ) ;\n }"}
{"idx": 2478, "target": 0, "func": "static inline int dequant ( AVSContext * h , int16_t * level_buf , uint8_t * run_buf , int16_t * dst , int mul , int shift , int coeff_num ) {\n int round = 1 << ( shift - 1 ) ;\n int pos = - 1 ;\n const uint8_t * scantab = h -> scantable . permutated ;\n while ( -- coeff_num >= 0 ) {\n pos += run_buf [ coeff_num ] ;\n if ( pos > 63 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"position out of block bounds at pic %d MB(%d,%d)\\n\" , h -> cur . poc , h -> mbx , h -> mby ) ;\n return - 1 ;\n }\n dst [ scantab [ pos ] ] = ( level_buf [ coeff_num ] * mul + round ) >> shift ;\n }\n return 0 ;\n }"}
{"idx": 2479, "target": 0, "func": "static int append_to_frame_graph ( voip_calls_tapinfo_t * tapinfo _U_ , guint32 frame_num , const gchar * new_frame_label , const gchar * new_comment ) {\n seq_analysis_item_t * gai = NULL ;\n gchar * frame_label = NULL ;\n gchar * comment = NULL ;\n if ( NULL != tapinfo -> graph_analysis -> ht ) gai = ( seq_analysis_item_t * ) g_hash_table_lookup ( tapinfo -> graph_analysis -> ht , & frame_num ) ;\n if ( gai ) {\n frame_label = gai -> frame_label ;\n comment = gai -> comment ;\n if ( new_frame_label != NULL ) {\n gai -> frame_label = g_strdup_printf ( \"%s %s\" , frame_label , new_frame_label ) ;\n g_free ( frame_label ) ;\n }\n if ( new_comment != NULL ) {\n gai -> comment = g_strdup_printf ( \"%s %s\" , comment , new_comment ) ;\n g_free ( comment ) ;\n }\n }\n return gai ? 1 : 0 ;\n }"}
{"idx": 2480, "target": 0, "func": "void proto_reg_handoff_dns ( void ) {\n dissector_handle_t dns_sctp_handle ;\n dissector_handle_t mdns_udp_handle ;\n dissector_handle_t llmnr_udp_handle ;\n static range_t * dns_tcp_port_range ;\n static range_t * dns_udp_port_range ;\n static gboolean Initialized = FALSE ;\n if ( ! Initialized ) {\n dns_udp_handle = create_dissector_handle ( dissect_dns_udp , proto_dns ) ;\n dns_tcp_handle = new_create_dissector_handle ( dissect_dns_tcp , proto_dns ) ;\n stats_tree_register ( \"dns\" , \"dns\" , \"DNS\" , 0 , dns_stats_tree_packet , dns_stats_tree_init , NULL ) ;\n Initialized = TRUE ;\n }\n else {\n dissector_delete_uint_range ( \"tcp.port\" , dns_tcp_port_range , dns_tcp_handle ) ;\n dissector_delete_uint_range ( \"udp.port\" , dns_udp_port_range , dns_udp_handle ) ;\n g_free ( dns_tcp_port_range ) ;\n g_free ( dns_udp_port_range ) ;\n }\n dns_tcp_port_range = range_copy ( global_dns_tcp_port_range ) ;\n dns_udp_port_range = range_copy ( global_dns_udp_port_range ) ;\n dissector_add_uint_range ( \"tcp.port\" , dns_tcp_port_range , dns_tcp_handle ) ;\n dissector_add_uint_range ( \"udp.port\" , dns_udp_port_range , dns_udp_handle ) ;\n dns_sctp_handle = create_dissector_handle ( dissect_dns_sctp , proto_dns ) ;\n mdns_udp_handle = create_dissector_handle ( dissect_mdns_udp , proto_dns ) ;\n llmnr_udp_handle = create_dissector_handle ( dissect_llmnr_udp , proto_dns ) ;\n dissector_add_uint ( \"udp.port\" , UDP_PORT_MDNS , mdns_udp_handle ) ;\n dissector_add_uint ( \"tcp.port\" , TCP_PORT_MDNS , dns_tcp_handle ) ;\n dissector_add_uint ( \"udp.port\" , UDP_PORT_LLMNR , llmnr_udp_handle ) ;\n dissector_add_uint ( \"sctp.port\" , SCTP_PORT_DNS , dns_sctp_handle ) ;\n # if 0 dissector_add_uint ( \"sctp.ppi\" , DNS_PAYLOAD_PROTOCOL_ID , dns_sctp_handle ) ;\n # endif gssapi_handle = find_dissector ( \"gssapi\" ) ;\n ntlmssp_handle = find_dissector ( \"ntlmssp\" ) ;\n }"}
{"idx": 2481, "target": 0, "func": "static int config_filter_parser_cmp_rev ( struct config_filter_parser * const * p1 , struct config_filter_parser * const * p2 ) {\n return - config_filter_parser_cmp ( p1 , p2 ) ;\n }"}
{"idx": 2482, "target": 0, "func": "static int dissect_h245_T_passwordResponse ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_passwordResponse , T_passwordResponse_sequence ) ;\n return offset ;\n }"}
{"idx": 2483, "target": 0, "func": "static guint8 fpdu_pad_length ( guint16 ulpdu_length ) {\n guint32 length = ulpdu_length + MPA_ULPDU_LENGTH_LEN ;\n return ( MPA_ALIGNMENT - ( length % MPA_ALIGNMENT ) ) % MPA_ALIGNMENT ;\n }"}
{"idx": 2484, "target": 0, "func": "hb_font_funcs_t * hb_font_funcs_create ( void ) {\n hb_font_funcs_t * ffuncs ;\n if ( ! ( ffuncs = hb_object_create < hb_font_funcs_t > ( ) ) ) return hb_font_funcs_get_empty ( ) ;\n ffuncs -> get = _hb_font_funcs_nil . get ;\n return ffuncs ;\n }"}
{"idx": 2485, "target": 0, "func": "static inline void setCORKopt ( int sock , int onOff ) {\n # if defined ( TCP_CORK ) setsockopt ( sock , SOL_TCP , TCP_CORK , & onOff , sizeof ( onOff ) ) ;\n # elif defined ( TCP_NOPUSH ) setsockopt ( sock , IPPROTO_TCP , TCP_NOPUSH , & onOff , sizeof ( onOff ) ) ;\n # endif }"}
{"idx": 2486, "target": 0, "func": "static void test_bug10736 ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND my_bind [ 1 ] ;\n char a [ 21 ] ;\n int rc ;\n const char * stmt_text ;\n int i = 0 ;\n ulong type ;\n myheader ( \"test_bug10736\" ) ;\n mysql_query ( mysql , \"drop table if exists t1\" ) ;\n mysql_query ( mysql , \"create table t1 (id integer not null primary key,\" \"name VARCHAR(20) NOT NULL)\" ) ;\n rc = mysql_query ( mysql , \"insert into t1 (id, name) values \" \"(1, 'aaa'), (2, 'bbb'), (3, 'ccc')\" ) ;\n myquery ( rc ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n type = ( ulong ) CURSOR_TYPE_READ_ONLY ;\n rc = mysql_stmt_attr_set ( stmt , STMT_ATTR_CURSOR_TYPE , ( void * ) & type ) ;\n check_execute ( stmt , rc ) ;\n stmt_text = \"select name from t1 where name=(select name from t1 where id=2)\" ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt , rc ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 0 ] . buffer = ( void * ) a ;\n my_bind [ 0 ] . buffer_length = sizeof ( a ) ;\n mysql_stmt_bind_result ( stmt , my_bind ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n int row_no = 0 ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n while ( ( rc = mysql_stmt_fetch ( stmt ) ) == 0 ) {\n if ( ! opt_silent ) printf ( \"%d: %s\\n\" , row_no , a ) ;\n ++ row_no ;\n }\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n }\n rc = mysql_stmt_close ( stmt ) ;\n DIE_UNLESS ( rc == 0 ) ;\n rc = mysql_query ( mysql , \"drop table t1\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 2487, "target": 0, "func": "SPL_METHOD ( SplFileObject , valid ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n if ( SPL_HAS_FLAG ( intern -> flags , SPL_FILE_OBJECT_READ_AHEAD ) ) {\n RETURN_BOOL ( intern -> u . file . current_line || intern -> u . file . current_zval ) ;\n }\n else {\n RETVAL_BOOL ( ! php_stream_eof ( intern -> u . file . stream ) ) ;\n }\n }"}
{"idx": 2488, "target": 0, "func": "static int SpoolssRFNPCNEX_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n offset = dissect_ndr_pointer ( tvb , offset , pinfo , tree , di , drep , dissect_NOTIFY_INFO , NDR_POINTER_UNIQUE , \"Notify Info\" , - 1 ) ;\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 2489, "target": 0, "func": "void usage_exit ( ) {\n fprintf ( stderr , \"Usage: %s <infile> <outfile> <N-M|N/M>\\n\" , exec_name ) ;\n exit ( EXIT_FAILURE ) ;\n }"}
{"idx": 2490, "target": 0, "func": "static int main_read_primary_input ( main_file * file , uint8_t * buf , size_t size , size_t * nread ) {\n # if EXTERNAL_COMPRESSION if ( option_decompress_inputs && file -> flags & RD_FIRST ) {\n file -> flags &= ~ RD_FIRST ;\n return main_secondary_decompress_check ( file , buf , size , nread ) ;\n }\n # endif return main_file_read ( file , buf , size , nread , \"input read failed\" ) ;\n }"}
{"idx": 2491, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( SessionRestorePageLoadMetricsBrowserTest , RestoreForeignSession ) {\n Profile * profile = browser ( ) -> profile ( ) ;\n sessions : : SerializedNavigationEntry nav1 = sessions : : SerializedNavigationEntryTestHelper : : CreateNavigation ( GetTestURL ( ) . spec ( ) , \"one\" ) ;\n sessions : : SerializedNavigationEntry nav2 = sessions : : SerializedNavigationEntryTestHelper : : CreateNavigation ( GetTestURL2 ( ) . spec ( ) , \"two\" ) ;\n std : : vector < const sessions : : SessionWindow * > session ;\n sessions : : SessionWindow window ;\n auto tab1 = std : : make_unique < sessions : : SessionTab > ( ) ;\n {\n sync_pb : : SessionTab sync_data ;\n sync_data . set_tab_visual_index ( 0 ) ;\n sync_data . set_current_navigation_index ( 0 ) ;\n sync_data . set_pinned ( true ) ;\n sync_data . add_navigation ( ) -> CopyFrom ( nav1 . ToSyncData ( ) ) ;\n tab1 -> SetFromSyncData ( sync_data , base : : Time : : Now ( ) ) ;\n }\n window . tabs . push_back ( std : : move ( tab1 ) ) ;\n auto tab2 = std : : make_unique < sessions : : SessionTab > ( ) ;\n {\n sync_pb : : SessionTab sync_data ;\n sync_data . set_tab_visual_index ( 1 ) ;\n sync_data . set_current_navigation_index ( 0 ) ;\n sync_data . set_pinned ( false ) ;\n sync_data . add_navigation ( ) -> CopyFrom ( nav2 . ToSyncData ( ) ) ;\n tab2 -> SetFromSyncData ( sync_data , base : : Time : : Now ( ) ) ;\n }\n window . tabs . push_back ( std : : move ( tab2 ) ) ;\n session . push_back ( static_cast < const sessions : : SessionWindow * > ( & window ) ) ;\n ui_test_utils : : BrowserAddedObserver window_observer ;\n SessionRestorePaintWaiter session_restore_paint_waiter ;\n SessionRestore : : RestoreForeignSessionWindows ( profile , session . begin ( ) , session . end ( ) ) ;\n Browser * new_browser = window_observer . WaitForSingleNewBrowser ( ) ;\n ASSERT_TRUE ( new_browser ) ;\n ASSERT_EQ ( 2 , new_browser -> tab_strip_model ( ) -> count ( ) ) ;\n session_restore_paint_waiter . WaitForForegroundTabs ( 1 ) ;\n ASSERT_NO_FATAL_FAILURE ( WaitForTabsToLoad ( new_browser ) ) ;\n ExpectFirstPaintMetricsTotalCount ( 1 ) ;\n }"}
{"idx": 2492, "target": 0, "func": "static TSReturnCode URLPartSet ( TSMBuffer bufp , TSMLoc obj , const char * value , int length , URLPartSetF url_f ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_url_handle ( obj ) == TS_SUCCESS ) ;\n if ( ! isWriteable ( bufp ) ) {\n return TS_ERROR ;\n }\n URL u ;\n u . m_heap = ( ( HdrHeapSDKHandle * ) bufp ) -> m_heap ;\n u . m_url_impl = ( URLImpl * ) obj ;\n if ( ! value ) {\n length = 0 ;\n }\n else if ( length < 0 ) {\n length = strlen ( value ) ;\n }\n ( u . * url_f ) ( value , length ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 2493, "target": 0, "func": "static const char * cmd_web_app_id ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n dcfg -> webappid = p1 ;\n return NULL ;\n }"}
{"idx": 2494, "target": 0, "func": "static void set_option_info ( struct archive_string * info , int * opt , const char * key , enum keytype type , ... ) {\n va_list ap ;\n char prefix ;\n const char * s ;\n int d ;\n prefix = ( * opt == 0 ) ? ' ' : ',' ;\n va_start ( ap , type ) ;\n switch ( type ) {\n case KEY_FLG : d = va_arg ( ap , int ) ;\n archive_string_sprintf ( info , \"%c%s%s\" , prefix , ( d == 0 ) ? \"!\" : \"\" , key ) ;\n break ;\n case KEY_STR : s = va_arg ( ap , const char * ) ;\n archive_string_sprintf ( info , \"%c%s=%s\" , prefix , key , s ) ;\n break ;\n case KEY_INT : d = va_arg ( ap , int ) ;\n archive_string_sprintf ( info , \"%c%s=%d\" , prefix , key , d ) ;\n break ;\n case KEY_HEX : d = va_arg ( ap , int ) ;\n archive_string_sprintf ( info , \"%c%s=%x\" , prefix , key , d ) ;\n break ;\n }\n va_end ( ap ) ;\n * opt = 1 ;\n }"}
{"idx": 2495, "target": 0, "func": "static struct object_entry * * compute_write_order ( void ) {\n unsigned int i , wo_end , last_untagged ;\n struct object_entry * * wo = xmalloc ( to_pack . nr_objects * sizeof ( * wo ) ) ;\n struct object_entry * objects = to_pack . objects ;\n for ( i = 0 ;\n i < to_pack . nr_objects ;\n i ++ ) {\n objects [ i ] . tagged = 0 ;\n objects [ i ] . filled = 0 ;\n objects [ i ] . delta_child = NULL ;\n objects [ i ] . delta_sibling = NULL ;\n }\n for ( i = to_pack . nr_objects ;\n i > 0 ;\n ) {\n struct object_entry * e = & objects [ -- i ] ;\n if ( ! e -> delta ) continue ;\n e -> delta_sibling = e -> delta -> delta_child ;\n e -> delta -> delta_child = e ;\n }\n for_each_tag_ref ( mark_tagged , NULL ) ;\n for ( i = wo_end = 0 ;\n i < to_pack . nr_objects ;\n i ++ ) {\n if ( objects [ i ] . tagged ) break ;\n add_to_write_order ( wo , & wo_end , & objects [ i ] ) ;\n }\n last_untagged = i ;\n for ( ;\n i < to_pack . nr_objects ;\n i ++ ) {\n if ( objects [ i ] . tagged ) add_to_write_order ( wo , & wo_end , & objects [ i ] ) ;\n }\n for ( i = last_untagged ;\n i < to_pack . nr_objects ;\n i ++ ) {\n if ( objects [ i ] . type != OBJ_COMMIT && objects [ i ] . type != OBJ_TAG ) continue ;\n add_to_write_order ( wo , & wo_end , & objects [ i ] ) ;\n }\n for ( i = last_untagged ;\n i < to_pack . nr_objects ;\n i ++ ) {\n if ( objects [ i ] . type != OBJ_TREE ) continue ;\n add_to_write_order ( wo , & wo_end , & objects [ i ] ) ;\n }\n for ( i = last_untagged ;\n i < to_pack . nr_objects ;\n i ++ ) {\n if ( ! objects [ i ] . filled ) add_family_to_write_order ( wo , & wo_end , & objects [ i ] ) ;\n }\n if ( wo_end != to_pack . nr_objects ) die ( \"ordered %u objects, expected %\" PRIu32 , wo_end , to_pack . nr_objects ) ;\n return wo ;\n }"}
{"idx": 2496, "target": 0, "func": "static int resume_error ( lua_State * L , const char * msg ) {\n L -> top = L -> ci -> base ;\n setsvalue2s ( L , L -> top , luaS_new ( L , msg ) ) ;\n incr_top ( L ) ;\n lua_unlock ( L ) ;\n return LUA_ERRRUN ;\n }"}
{"idx": 2497, "target": 0, "func": "int xmlrpc_about ( void * userdata , int ac , char * * av ) {\n char buf [ XMLRPC_BUFSIZE ] ;\n char buf2 [ XMLRPC_BUFSIZE ] ;\n char buf3 [ XMLRPC_BUFSIZE ] ;\n char buf4 [ XMLRPC_BUFSIZE ] ;\n char * arraydata ;\n ( void ) userdata ;\n xmlrpc_integer ( buf3 , ac ) ;\n xmlrpc_string ( buf4 , av [ 0 ] ) ;\n xmlrpc_string ( buf , ( char * ) XMLLIB_VERSION ) ;\n xmlrpc_string ( buf2 , ( char * ) XMLLIB_AUTHOR ) ;\n arraydata = xmlrpc_array ( 4 , buf , buf2 , buf3 , buf4 ) ;\n xmlrpc_send ( 1 , arraydata ) ;\n free ( arraydata ) ;\n return XMLRPC_CONT ;\n }"}
{"idx": 2498, "target": 0, "func": "static VALUE ossl_asn1_ ## klass ( int argc , VALUE * argv , VALUE self ) \\ {\n return rb_funcall3 ( cASN1 ## klass , rb_intern ( \"new\" ) , argc , argv ) ;\n }\n OSSL_ASN1_IMPL_FACTORY_METHOD ( Boolean ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Integer ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Enumerated ) OSSL_ASN1_IMPL_FACTORY_METHOD ( BitString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( OctetString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( UTF8String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( NumericString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( PrintableString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( T61String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( VideotexString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( IA5String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( GraphicString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( ISO64String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( GeneralString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( UniversalString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( BMPString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Null ) OSSL_ASN1_IMPL_FACTORY_METHOD ( ObjectId ) OSSL_ASN1_IMPL_FACTORY_METHOD ( UTCTime )"}
{"idx": 2499, "target": 0, "func": "static int selinux_socket_getsockname ( struct socket * sock ) {\n return sock_has_perm ( current , sock -> sk , SOCKET__GETATTR ) ;\n }"}
{"idx": 2500, "target": 0, "func": "static uint64_t xhci_oper_read ( void * ptr , hwaddr reg , unsigned size ) {\n XHCIState * xhci = ptr ;\n uint32_t ret ;\n switch ( reg ) {\n case 0x00 : ret = xhci -> usbcmd ;\n break ;\n case 0x04 : ret = xhci -> usbsts ;\n break ;\n case 0x08 : ret = 1 ;\n break ;\n case 0x14 : ret = xhci -> dnctrl ;\n break ;\n case 0x18 : ret = xhci -> crcr_low & ~ 0xe ;\n break ;\n case 0x1c : ret = xhci -> crcr_high ;\n break ;\n case 0x30 : ret = xhci -> dcbaap_low ;\n break ;\n case 0x34 : ret = xhci -> dcbaap_high ;\n break ;\n case 0x38 : ret = xhci -> config ;\n break ;\n default : trace_usb_xhci_unimplemented ( \"oper read\" , reg ) ;\n ret = 0 ;\n }\n trace_usb_xhci_oper_read ( reg , ret ) ;\n return ret ;\n }"}
{"idx": 2501, "target": 0, "func": "static int dissect_h225_InfoRequestResponseStatus ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_InfoRequestResponseStatus , InfoRequestResponseStatus_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 2502, "target": 0, "func": "void mime_days_since_epoch_to_mdy_slowcase ( unsigned int days_since_jan_1_1970 , int * m_return , int * d_return , int * y_return ) {\n static const int DAYS_OFFSET = 25508 ;\n static const char months [ ] = {\n 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 6 , 6 , 6 , 6 , 6 , 6 , 6 , 6 , 6 , 6 , 6 , 6 , 6 , 6 , 6 , 6 , 6 , 6 , 6 , 6 , 6 , 6 , 6 , 6 , 6 , 6 , 6 , 6 , 6 , 6 , 6 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 }\n ;\n static const int days [ 12 ] = {\n 305 , 336 , - 1 , 30 , 60 , 91 , 121 , 152 , 183 , 213 , 244 , 274 }\n ;\n int mday , year , month , d , dp ;\n mday = days_since_jan_1_1970 ;\n year = mday / 365 + 69 ;\n d = dp = ( year * 365 ) + ( year / 4 ) - ( year / 100 ) + ( year / 100 + 3 ) / 4 - DAYS_OFFSET - 1 ;\n while ( dp < mday ) {\n d = dp ;\n year += 1 ;\n dp = ( year * 365 ) + ( year / 4 ) - ( year / 100 ) + ( year / 100 + 3 ) / 4 - DAYS_OFFSET - 1 ;\n }\n d = mday - d ;\n if ( ( d < 0 ) || ( d > 366 ) ) {\n ink_assert ( ! \"bad date\" ) ;\n }\n else {\n month = months [ d ] ;\n if ( month > 1 ) {\n year -= 1 ;\n }\n mday = d - days [ month ] - 1 ;\n year += 1900 ;\n * m_return = month ;\n * d_return = mday ;\n * y_return = year ;\n }\n }"}
{"idx": 2503, "target": 0, "func": "static int dissect_h245_DataMode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_DataMode , DataMode_sequence ) ;\n return offset ;\n }"}
{"idx": 2504, "target": 0, "func": "static void flush_char ( GifCtx * ctx ) {\n if ( ctx -> a_count > 0 ) {\n gdPutC ( ctx -> a_count , ctx -> g_outfile ) ;\n gdPutBuf ( ctx -> accum , ctx -> a_count , ctx -> g_outfile ) ;\n ctx -> a_count = 0 ;\n }\n }"}
{"idx": 2505, "target": 1, "func": "static void cmv_decode_intra ( CmvContext * s , const uint8_t * buf , const uint8_t * buf_end ) {\n unsigned char * dst = s -> frame . data [ 0 ] ;\n int i ;\n for ( i = 0 ;\n i < s -> avctx -> height && buf_end - buf >= s -> avctx -> width ;\n i ++ ) {\n memcpy ( dst , buf , s -> avctx -> width ) ;\n dst += s -> frame . linesize [ 0 ] ;\n buf += s -> avctx -> width ;\n }\n }"}
{"idx": 2506, "target": 0, "func": "static void * spl_ptr_llist_pop ( spl_ptr_llist * llist TSRMLS_DC ) {\n void * data ;\n spl_ptr_llist_element * tail = llist -> tail ;\n if ( tail == NULL ) {\n return NULL ;\n }\n if ( tail -> prev ) {\n tail -> prev -> next = NULL ;\n }\n else {\n llist -> head = NULL ;\n }\n llist -> tail = tail -> prev ;\n llist -> count -- ;\n data = tail -> data ;\n if ( llist -> dtor ) {\n llist -> dtor ( tail TSRMLS_CC ) ;\n }\n tail -> data = NULL ;\n SPL_LLIST_DELREF ( tail ) ;\n return data ;\n }"}
{"idx": 2507, "target": 0, "func": "static SlirpState * slirp_lookup ( Monitor * mon , const char * vlan , const char * stack ) {\n if ( vlan ) {\n NetClientState * nc ;\n nc = net_hub_find_client_by_name ( strtol ( vlan , NULL , 0 ) , stack ) ;\n if ( ! nc ) {\n monitor_printf ( mon , \"unrecognized (vlan-id, stackname) pair\\n\" ) ;\n return NULL ;\n }\n if ( strcmp ( nc -> model , \"user\" ) ) {\n monitor_printf ( mon , \"invalid device specified\\n\" ) ;\n return NULL ;\n }\n return DO_UPCAST ( SlirpState , nc , nc ) ;\n }\n else {\n if ( QTAILQ_EMPTY ( & slirp_stacks ) ) {\n monitor_printf ( mon , \"user mode network stack not in use\\n\" ) ;\n return NULL ;\n }\n return QTAILQ_FIRST ( & slirp_stacks ) ;\n }\n }"}
{"idx": 2508, "target": 0, "func": "TEST_F ( HQPOrderingTest , TEMatch ) {\n std : : vector < std : : string > expected_urls ;\n expected_urls . push_back ( \"http://techmeme.com/\" ) ;\n expected_urls . push_back ( \"http://www.teamliquid.net/\" ) ;\n expected_urls . push_back ( \"http://www.teamliquid.net/tlpd\" ) ;\n RunTest ( ASCIIToUTF16 ( \"te\" ) , false , expected_urls , true , ASCIIToUTF16 ( \"techmeme.com\" ) , ASCIIToUTF16 ( \"chmeme.com\" ) ) ;\n }"}
{"idx": 2509, "target": 1, "func": "int dissect_ber_GeneralizedTime ( gboolean implicit_tag , asn1_ctx_t * actx , proto_tree * tree , tvbuff_t * tvb , int offset , gint hf_id ) {\n char str [ 35 ] ;\n int tmp_int ;\n const guint8 * tmpstr ;\n char * strptr ;\n char first_delim [ 2 ] ;\n int first_digits ;\n char second_delim [ 2 ] ;\n int second_digits ;\n int ret ;\n gint8 ber_class ;\n gboolean pc ;\n gint32 tag ;\n guint32 len ;\n int end_offset ;\n int hoffset ;\n proto_item * cause ;\n if ( ! implicit_tag ) {\n hoffset = offset ;\n offset = dissect_ber_identifier ( actx -> pinfo , tree , tvb , offset , & ber_class , & pc , & tag ) ;\n offset = dissect_ber_length ( actx -> pinfo , tree , tvb , offset , & len , NULL ) ;\n end_offset = offset + len ;\n if ( ( ber_class != BER_CLASS_UNI ) || ( tag != BER_UNI_TAG_GeneralizedTime ) ) {\n tvb_ensure_bytes_exist ( tvb , hoffset , 2 ) ;\n cause = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset , len , \"generalized_time_expected\" , \"GeneralizedTime expected but class:%s(%d) %s tag:%d was unexpected\" , val_to_str_const ( ber_class , ber_class_codes , \"Unknown\" ) , ber_class , pc ? ber_pc_codes_short . true_string : ber_pc_codes_short . false_string , tag ) ;\n expert_add_info ( actx -> pinfo , cause , & ei_ber_expected_generalized_time ) ;\n if ( decode_unexpected ) {\n proto_tree * unknown_tree = proto_item_add_subtree ( cause , ett_ber_unknown ) ;\n dissect_unknown_ber ( actx -> pinfo , tvb , hoffset , unknown_tree ) ;\n }\n return end_offset ;\n }\n }\n else {\n len = tvb_reported_length_remaining ( tvb , offset ) ;\n end_offset = offset + len ;\n }\n if ( ( len < 14 ) || ( len > 23 ) ) {\n cause = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset , len , \"illegal_length\" , \"GeneralizedTime invalid length: %u\" , len ) ;\n expert_add_info_format ( actx -> pinfo , cause , & ei_ber_error_length , \"BER Error: GeneralizedTime invalid length\" ) ;\n if ( decode_unexpected ) {\n proto_tree * unknown_tree = proto_item_add_subtree ( cause , ett_ber_unknown ) ;\n dissect_unknown_ber ( actx -> pinfo , tvb , offset , unknown_tree ) ;\n }\n return end_offset ;\n }\n tmpstr = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset , len , ENC_ASCII ) ;\n strptr = str ;\n strptr += g_snprintf ( str , 20 , \"%.4s-%.2s-%.2s %.2s:%.2s:%.2s\" , tmpstr , tmpstr + 4 , tmpstr + 6 , tmpstr + 8 , tmpstr + 10 , tmpstr + 12 ) ;\n first_delim [ 0 ] = 0 ;\n second_delim [ 0 ] = 0 ;\n ret = sscanf ( tmpstr , \"%14d%1[.,+-Z]%4d%1[+-Z]%4d\" , & tmp_int , first_delim , & first_digits , second_delim , & second_digits ) ;\n if ( ret < 1 ) {\n cause = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset , len , \"invalid_generalized_time\" , \"GeneralizedTime invalid format: %s\" , tmpstr ) ;\n expert_add_info ( actx -> pinfo , cause , & ei_ber_invalid_format_generalized_time ) ;\n if ( decode_unexpected ) {\n proto_tree * unknown_tree = proto_item_add_subtree ( cause , ett_ber_unknown ) ;\n dissect_unknown_ber ( actx -> pinfo , tvb , offset , unknown_tree ) ;\n }\n return end_offset ;\n }\n switch ( first_delim [ 0 ] ) {\n case '.' : case ',' : strptr += g_snprintf ( strptr , 5 , \"%c%.3d\" , first_delim [ 0 ] , first_digits ) ;\n switch ( second_delim [ 0 ] ) {\n case '+' : case '-' : g_snprintf ( strptr , 12 , \" (UTC%c%.4d)\" , second_delim [ 0 ] , second_digits ) ;\n break ;\n case 'Z' : g_snprintf ( strptr , 7 , \" (UTC)\" ) ;\n break ;\n case 0 : break ;\n default : break ;\n }\n break ;\n case '+' : case '-' : g_snprintf ( strptr , 12 , \" (UTC%c%.4d)\" , first_delim [ 0 ] , first_digits ) ;\n break ;\n case 'Z' : g_snprintf ( strptr , 7 , \" (UTC)\" ) ;\n break ;\n case 0 : break ;\n default : break ;\n }\n if ( hf_id >= 0 ) {\n proto_tree_add_string ( tree , hf_id , tvb , offset , len , str ) ;\n }\n offset += len ;\n return offset ;\n }"}
{"idx": 2510, "target": 0, "func": "static int parse_audio_var ( AVFormatContext * avctx , AVStream * st , const char * name , int size ) {\n MvContext * mv = avctx -> priv_data ;\n AVIOContext * pb = avctx -> pb ;\n if ( ! strcmp ( name , \"__DIR_COUNT\" ) ) {\n st -> nb_frames = var_read_int ( pb , size ) ;\n }\n else if ( ! strcmp ( name , \"AUDIO_FORMAT\" ) ) {\n mv -> aformat = var_read_int ( pb , size ) ;\n }\n else if ( ! strcmp ( name , \"COMPRESSION\" ) ) {\n mv -> acompression = var_read_int ( pb , size ) ;\n }\n else if ( ! strcmp ( name , \"DEFAULT_VOL\" ) ) {\n var_read_metadata ( avctx , name , size ) ;\n }\n else if ( ! strcmp ( name , \"NUM_CHANNELS\" ) ) {\n return set_channels ( avctx , st , var_read_int ( pb , size ) ) ;\n }\n else if ( ! strcmp ( name , \"SAMPLE_RATE\" ) ) {\n st -> codecpar -> sample_rate = var_read_int ( pb , size ) ;\n avpriv_set_pts_info ( st , 33 , 1 , st -> codecpar -> sample_rate ) ;\n }\n else if ( ! strcmp ( name , \"SAMPLE_WIDTH\" ) ) {\n st -> codecpar -> bits_per_coded_sample = var_read_int ( pb , size ) * 8 ;\n }\n else return AVERROR_INVALIDDATA ;\n return 0 ;\n }"}
{"idx": 2511, "target": 0, "func": "static void selinux_bprm_committed_creds ( struct linux_binprm * bprm ) {\n const struct task_security_struct * tsec = current_security ( ) ;\n struct itimerval itimer ;\n u32 osid , sid ;\n int rc , i ;\n osid = tsec -> osid ;\n sid = tsec -> sid ;\n if ( sid == osid ) return ;\n rc = avc_has_perm ( osid , sid , SECCLASS_PROCESS , PROCESS__SIGINH , NULL ) ;\n if ( rc ) {\n if ( IS_ENABLED ( CONFIG_POSIX_TIMERS ) ) {\n memset ( & itimer , 0 , sizeof itimer ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) do_setitimer ( i , & itimer , NULL ) ;\n }\n spin_lock_irq ( & current -> sighand -> siglock ) ;\n if ( ! fatal_signal_pending ( current ) ) {\n flush_sigqueue ( & current -> pending ) ;\n flush_sigqueue ( & current -> signal -> shared_pending ) ;\n flush_signal_handlers ( current , 1 ) ;\n sigemptyset ( & current -> blocked ) ;\n recalc_sigpending ( ) ;\n }\n spin_unlock_irq ( & current -> sighand -> siglock ) ;\n }\n read_lock ( & tasklist_lock ) ;\n __wake_up_parent ( current , current -> real_parent ) ;\n read_unlock ( & tasklist_lock ) ;\n }"}
{"idx": 2512, "target": 0, "func": "proto_item * proto_tree_add_double_format ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , double value , const char * format , ... ) {\n proto_item * pi ;\n va_list ap ;\n pi = proto_tree_add_double ( tree , hfindex , tvb , start , length , value ) ;\n if ( pi != tree ) {\n TRY_TO_FAKE_THIS_REPR ( pi ) ;\n va_start ( ap , format ) ;\n proto_tree_set_representation ( pi , format , ap ) ;\n va_end ( ap ) ;\n }\n return pi ;\n }"}
{"idx": 2513, "target": 0, "func": "TEST_F ( ScoredHistoryMatchTest , CullSearchResults ) {\n scoped_ptr < TemplateURLService > template_url_service = make_scoped_ptr ( new TemplateURLService ( nullptr , make_scoped_ptr ( new SearchTermsData ) , nullptr , scoped_ptr < TemplateURLServiceClient > ( ) , nullptr , nullptr , base : : Closure ( ) ) ) ;\n base : : Time now = base : : Time : : NowFromSystemTime ( ) ;\n history : : URLRow row ( MakeURLRow ( \"http://testsearch.com/thequery\" , \"Test Search Engine\" , 3 , 30 , 1 ) ) ;\n RowWordStarts word_starts ;\n PopulateWordStarts ( row , & word_starts ) ;\n WordStarts one_word_no_offset ( 1 , 0u ) ;\n VisitInfoVector visits = CreateVisitInfoVector ( 3 , 30 , now ) ;\n visits [ 0 ] . second = ui : : PAGE_TRANSITION_TYPED ;\n ScoredHistoryMatch scored_a ( row , visits , ASCIIToUTF16 ( \"thequery\" ) , Make1Term ( \"thequery\" ) , one_word_no_offset , word_starts , false , template_url_service . get ( ) , now ) ;\n EXPECT_GT ( scored_a . raw_score , 0 ) ;\n ScoredHistoryMatch scored_b ( row , visits , ASCIIToUTF16 ( \"testsearch\" ) , Make1Term ( \"testsearch\" ) , one_word_no_offset , word_starts , false , template_url_service . get ( ) , now ) ;\n EXPECT_GT ( scored_b . raw_score , 0 ) ;\n TemplateURLData data ;\n data . SetShortName ( ASCIIToUTF16 ( \"TestEngine\" ) ) ;\n data . SetKeyword ( ASCIIToUTF16 ( \"TestEngine\" ) ) ;\n data . SetURL ( \"http://testsearch.com/{\nsearchTerms}\n\" ) ;\n TemplateURL * template_url = new TemplateURL ( data ) ;\n template_url_service -> Add ( template_url ) ;\n template_url_service -> SetUserSelectedDefaultSearchProvider ( template_url ) ;\n template_url_service -> Load ( ) ;\n ScoredHistoryMatch scored_c ( row , visits , ASCIIToUTF16 ( \"thequery\" ) , Make1Term ( \"thequery\" ) , one_word_no_offset , word_starts , false , template_url_service . get ( ) , now ) ;\n EXPECT_EQ ( 0 , scored_c . raw_score ) ;\n ScoredHistoryMatch scored_d ( row , visits , ASCIIToUTF16 ( \"testsearch\" ) , Make1Term ( \"testsearch\" ) , one_word_no_offset , word_starts , false , template_url_service . get ( ) , now ) ;\n EXPECT_EQ ( 0 , scored_d . raw_score ) ;\n }"}
{"idx": 2514, "target": 0, "func": "static void sun4m_machine_init ( void ) {\n qemu_register_machine ( & ss5_machine ) ;\n qemu_register_machine ( & ss10_machine ) ;\n qemu_register_machine ( & ss600mp_machine ) ;\n qemu_register_machine ( & ss20_machine ) ;\n qemu_register_machine ( & voyager_machine ) ;\n qemu_register_machine ( & ss_lx_machine ) ;\n qemu_register_machine ( & ss4_machine ) ;\n qemu_register_machine ( & scls_machine ) ;\n qemu_register_machine ( & sbook_machine ) ;\n }"}
{"idx": 2515, "target": 0, "func": "int keyring_register_filename ( const char * fname , int read_only , void * * ptr ) {\n KR_NAME kr ;\n if ( active_handles ) BUG ( ) ;\n for ( kr = kr_names ;\n kr ;\n kr = kr -> next ) {\n if ( same_file_p ( kr -> fname , fname ) ) {\n if ( read_only ) kr -> read_only = 1 ;\n * ptr = kr ;\n return 0 ;\n }\n }\n kr = xmalloc ( sizeof * kr + strlen ( fname ) ) ;\n strcpy ( kr -> fname , fname ) ;\n kr -> read_only = read_only ;\n kr -> lockhd = NULL ;\n kr -> is_locked = 0 ;\n kr -> did_full_scan = 0 ;\n kr -> next = kr_names ;\n kr_names = kr ;\n if ( ! kr_offtbl ) kr_offtbl = new_offset_hash_table ( ) ;\n * ptr = kr ;\n return 1 ;\n }"}
{"idx": 2516, "target": 0, "func": "static void init_me_luts_bd ( int * bit16lut , int * bit4lut , int range , vpx_bit_depth_t bit_depth ) {\n int i ;\n for ( i = 0 ;\n i < range ;\n i ++ ) {\n const double q = vp9_convert_qindex_to_q ( i , bit_depth ) ;\n bit16lut [ i ] = ( int ) ( 0.0418 * q + 2.4107 ) ;\n bit4lut [ i ] = ( int ) ( 0.063 * q + 2.742 ) ;\n }\n }"}
{"idx": 2517, "target": 0, "func": "static int dissect_h245_TransportCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_TransportCapability , TransportCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 2518, "target": 0, "func": "int X509_REQ_get_attr_by_NID ( const X509_REQ * req , int nid , int lastpos ) {\n return X509at_get_attr_by_NID ( req -> req_info -> attributes , nid , lastpos ) ;\n }"}
{"idx": 2519, "target": 0, "func": "static int dissect_h245_T_cLC_source ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_cLC_source , T_cLC_source_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 2520, "target": 0, "func": "static inline PixelTrait GetPixelYellowTraits ( const Image * restrict image ) {\n return ( image -> channel_map [ YellowPixelChannel ] . traits ) ;\n }"}
{"idx": 2521, "target": 0, "func": "static void armv7m_nvic_realize ( DeviceState * dev , Error * * errp ) {\n nvic_state * s = NVIC ( dev ) ;\n NVICClass * nc = NVIC_GET_CLASS ( s ) ;\n s -> gic . num_cpu = 1 ;\n s -> gic . revision = 0xffffffff ;\n s -> num_irq = s -> gic . num_irq ;\n nc -> parent_realize ( dev , errp ) ;\n if ( error_is_set ( errp ) ) {\n return ;\n }\n gic_init_irqs_and_distributor ( & s -> gic , s -> num_irq ) ;\n memory_region_init ( & s -> container , OBJECT ( s ) , \"nvic\" , 0x1000 ) ;\n memory_region_init_io ( & s -> sysregmem , OBJECT ( s ) , & nvic_sysreg_ops , s , \"nvic_sysregs\" , 0x1000 ) ;\n memory_region_add_subregion ( & s -> container , 0 , & s -> sysregmem ) ;\n memory_region_init_alias ( & s -> gic_iomem_alias , OBJECT ( s ) , \"nvic-gic\" , & s -> gic . iomem , 0x100 , 0xc00 ) ;\n memory_region_add_subregion_overlap ( & s -> container , 0x100 , & s -> gic_iomem_alias , 1 ) ;\n memory_region_add_subregion ( get_system_memory ( ) , 0xe000e000 , & s -> container ) ;\n s -> systick . timer = qemu_new_timer_ns ( vm_clock , systick_timer_tick , s ) ;\n }"}
{"idx": 2522, "target": 0, "func": "int xmlListCopy ( xmlListPtr cur , const xmlListPtr old ) {\n xmlLinkPtr lk ;\n if ( ( old == NULL ) || ( cur == NULL ) ) return ( 1 ) ;\n for ( lk = old -> sentinel -> next ;\n lk != old -> sentinel ;\n lk = lk -> next ) {\n if ( 0 != xmlListInsert ( cur , lk -> data ) ) {\n xmlListDelete ( cur ) ;\n return ( 1 ) ;\n }\n }\n return ( 0 ) ;\n }"}
{"idx": 2523, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FullscreenControllerInteractiveTest , DISABLED_TestTabDoesntExitFullscreenOnSubFrameNavigation ) {\n ASSERT_TRUE ( test_server ( ) -> Start ( ) ) ;\n GURL url ( ui_test_utils : : GetTestUrl ( base : : FilePath ( base : : FilePath : : kCurrentDirectory ) , base : : FilePath ( kSimpleFile ) ) ) ;\n GURL url_with_fragment ( url . spec ( ) + \"#fragment\" ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , url ) ;\n ASSERT_NO_FATAL_FAILURE ( ToggleTabFullscreen ( true ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , url_with_fragment ) ;\n ASSERT_TRUE ( IsWindowFullscreenForTabOrPending ( ) ) ;\n }"}
{"idx": 2524, "target": 1, "func": "int vp9_get_tx_size_context ( const MACROBLOCKD * xd ) {\n const int max_tx_size = max_txsize_lookup [ xd -> mi [ 0 ] -> mbmi . sb_type ] ;\n const MB_MODE_INFO * const above_mbmi = get_mbmi ( get_above_mi ( xd ) ) ;\n const MB_MODE_INFO * const left_mbmi = get_mbmi ( get_left_mi ( xd ) ) ;\n const int has_above = above_mbmi != NULL ;\n const int has_left = left_mbmi != NULL ;\n int above_ctx = ( has_above && ! above_mbmi -> skip ) ? ( int ) above_mbmi -> tx_size : max_tx_size ;\n int left_ctx = ( has_left && ! left_mbmi -> skip ) ? ( int ) left_mbmi -> tx_size : max_tx_size ;\n if ( ! has_left ) left_ctx = above_ctx ;\n if ( ! has_above ) above_ctx = left_ctx ;\n return ( above_ctx + left_ctx ) > max_tx_size ;\n }"}
{"idx": 2525, "target": 0, "func": "Expr * get_notclausearg ( Expr * notclause ) {\n return linitial ( ( ( BoolExpr * ) notclause ) -> args ) ;\n }"}
{"idx": 2526, "target": 0, "func": "void destroy_address_node ( address_node * my_node ) {\n if ( NULL == my_node ) return ;\n NTP_REQUIRE ( NULL != my_node -> address ) ;\n free ( my_node -> address ) ;\n free ( my_node ) ;\n }"}
{"idx": 2527, "target": 1, "func": "int petite_inflate2x_1to9 ( char * buf , uint32_t minrva , uint32_t bufsz , struct cli_exe_section * sections , unsigned int sectcount , uint32_t Imagebase , uint32_t pep , int desc , int version , uint32_t ResRva , uint32_t ResSize ) {\n char * adjbuf = buf - minrva ;\n char * packed = NULL ;\n uint32_t thisrva = 0 , bottom = 0 , enc_ep = 0 , irva = 0 , workdone = 0 , grown = 0x355 , skew = 0x35 ;\n int j = 0 , oob , mangled = 0 , check4resources = 0 ;\n struct cli_exe_section * usects = NULL ;\n void * tmpsct = NULL ;\n if ( version == 2 ) packed = adjbuf + sections [ sectcount - 1 ] . rva + 0x1b8 ;\n if ( version == 1 ) {\n packed = adjbuf + sections [ sectcount - 1 ] . rva + 0x178 ;\n grown = 0x323 ;\n skew = 0x34 ;\n }\n while ( 1 ) {\n char * ssrc , * ddst ;\n uint32_t size , srva ;\n int backbytes , oldback , backsize , addsize ;\n if ( ! CLI_ISCONTAINED ( buf , bufsz , packed , 4 ) ) {\n if ( usects ) free ( usects ) ;\n return 1 ;\n }\n srva = cli_readint32 ( packed ) ;\n if ( ! srva ) {\n int t , upd = 1 ;\n if ( j <= 0 ) return 1 ;\n while ( upd ) {\n upd = 0 ;\n for ( t = 0 ;\n t < j - 1 ;\n t ++ ) {\n uint32_t trva , trsz , tvsz ;\n if ( usects [ t ] . rva <= usects [ t + 1 ] . rva ) continue ;\n trva = usects [ t ] . rva ;\n trsz = usects [ t ] . rsz ;\n tvsz = usects [ t ] . vsz ;\n usects [ t ] . rva = usects [ t + 1 ] . rva ;\n usects [ t ] . rsz = usects [ t + 1 ] . rsz ;\n usects [ t ] . vsz = usects [ t + 1 ] . vsz ;\n usects [ t + 1 ] . rva = trva ;\n usects [ t + 1 ] . rsz = trsz ;\n usects [ t + 1 ] . vsz = tvsz ;\n upd = 1 ;\n }\n }\n for ( t = 0 ;\n t < j - 1 ;\n t ++ ) {\n if ( usects [ t ] . vsz != usects [ t + 1 ] . rva - usects [ t ] . rva ) usects [ t ] . vsz = usects [ t + 1 ] . rva - usects [ t ] . rva ;\n }\n if ( enc_ep ) {\n uint32_t virtaddr = pep + 5 + Imagebase , tmpep ;\n int rndm = 0 , dummy = 1 ;\n char * thunk = adjbuf + irva ;\n char * imports ;\n if ( version == 2 ) {\n while ( dummy && CLI_ISCONTAINED ( buf , bufsz , thunk , 4 ) ) {\n uint32_t api ;\n if ( ! cli_readint32 ( thunk ) ) {\n workdone = 1 ;\n break ;\n }\n imports = adjbuf + cli_readint32 ( thunk ) ;\n thunk += 4 ;\n dummy = 0 ;\n while ( CLI_ISCONTAINED ( buf , bufsz , imports , 4 ) ) {\n dummy = 0 ;\n imports += 4 ;\n if ( ! ( api = cli_readint32 ( imports - 4 ) ) ) {\n dummy = 1 ;\n break ;\n }\n if ( ( api != ( api | 0x80000000 ) ) && mangled && -- rndm < 0 ) {\n api = virtaddr ;\n virtaddr += 5 ;\n rndm = virtaddr & 7 ;\n }\n else {\n api = 0xbff01337 ;\n }\n if ( sections [ sectcount - 1 ] . rva + Imagebase < api ) enc_ep -- ;\n if ( api < virtaddr ) enc_ep -- ;\n tmpep = ( enc_ep & 0xfffffff8 ) >> 3 & 0x1fffffff ;\n enc_ep = ( enc_ep & 7 ) << 29 | tmpep ;\n }\n }\n }\n else workdone = 1 ;\n enc_ep = pep + 5 + enc_ep ;\n if ( workdone == 1 ) {\n cli_dbgmsg ( \"Petite: Old EP: %x\\n\" , enc_ep ) ;\n }\n else {\n enc_ep = usects [ 0 ] . rva ;\n cli_dbgmsg ( \"Petite: In troubles while attempting to decrypt old EP, using bogus %x\\n\" , enc_ep ) ;\n }\n }\n for ( t = 0 ;\n t < j ;\n t ++ ) {\n usects [ t ] . raw = ( t > 0 ) ? ( usects [ t - 1 ] . raw + usects [ t - 1 ] . rsz ) : 0 ;\n if ( usects [ t ] . rsz != 0 ) {\n if ( CLI_ISCONTAINED ( buf , bufsz , buf + usects [ t ] . raw , usects [ t ] . rsz ) ) {\n memmove ( buf + usects [ t ] . raw , adjbuf + usects [ t ] . rva , usects [ t ] . rsz ) ;\n }\n else {\n cli_dbgmsg ( \"Petite: Skipping section %d, Raw: %x, RSize:%x\\n\" , t , usects [ t ] . raw , usects [ t ] . rsz ) ;\n usects [ t ] . raw = t > 0 ? usects [ t - 1 ] . raw : 0 ;\n usects [ t ] . rsz = 0 ;\n }\n }\n }\n cli_dbgmsg ( \"Petite: Sections dump:\\n\" ) ;\n for ( t = 0 ;\n t < j ;\n t ++ ) cli_dbgmsg ( \"Petite: .SECT%d RVA:%x VSize:%x ROffset: %x, RSize:%x\\n\" , t , usects [ t ] . rva , usects [ t ] . vsz , usects [ t ] . raw , usects [ t ] . rsz ) ;\n if ( ! cli_rebuildpe ( buf , usects , j , Imagebase , enc_ep , ResRva , ResSize , desc ) ) {\n cli_dbgmsg ( \"Petite: Rebuilding failed\\n\" ) ;\n free ( usects ) ;\n return 1 ;\n }\n free ( usects ) ;\n return 0 ;\n }\n size = srva & 0x7fffffff ;\n if ( srva != size ) {\n check4resources = 0 ;\n if ( ! CLI_ISCONTAINED ( buf , bufsz , packed + 4 , 8 ) ) {\n if ( usects ) free ( usects ) ;\n return 1 ;\n }\n bottom = cli_readint32 ( packed + 8 ) + 4 ;\n ssrc = adjbuf + cli_readint32 ( packed + 4 ) - ( size - 1 ) * 4 ;\n ddst = adjbuf + cli_readint32 ( packed + 8 ) - ( size - 1 ) * 4 ;\n if ( ! CLI_ISCONTAINED ( buf , bufsz , ssrc , size * 4 ) || ! CLI_ISCONTAINED ( buf , bufsz , ddst , size * 4 ) ) {\n if ( usects ) free ( usects ) ;\n return 1 ;\n }\n memmove ( ddst , ssrc , size * 4 ) ;\n packed += 0x0c ;\n }\n else {\n uint32_t check1 , check2 ;\n uint8_t mydl = 0 ;\n uint8_t goback ;\n unsigned int q ;\n if ( ! CLI_ISCONTAINED ( buf , bufsz , packed + 4 , 8 ) ) {\n if ( usects ) free ( usects ) ;\n return 1 ;\n }\n size = cli_readint32 ( packed + 4 ) ;\n thisrva = cli_readint32 ( packed + 8 ) ;\n packed += 0x10 ;\n if ( j >= 96 ) {\n cli_dbgmsg ( \"Petite: maximum number of sections exceeded, giving up.\\n\" ) ;\n free ( usects ) ;\n return 1 ;\n }\n if ( ! ( tmpsct = cli_realloc ( usects , sizeof ( struct cli_exe_section ) * ( j + 1 ) ) ) ) {\n if ( usects ) free ( usects ) ;\n return 1 ;\n }\n usects = ( struct cli_exe_section * ) tmpsct ;\n usects [ j ] . rva = thisrva ;\n usects [ j ] . rsz = size ;\n if ( ( int ) ( bottom - thisrva ) > 0 ) usects [ j ] . vsz = bottom - thisrva ;\n else usects [ j ] . vsz = size ;\n usects [ j ] . raw = 0 ;\n if ( ! size ) {\n j ++ ;\n continue ;\n }\n ssrc = adjbuf + srva ;\n ddst = adjbuf + thisrva ;\n for ( q = 0 ;\n q < sectcount ;\n q ++ ) {\n if ( ! CLI_ISCONTAINED ( sections [ q ] . rva , sections [ q ] . vsz , usects [ j ] . rva , usects [ j ] . vsz ) ) continue ;\n if ( ! check4resources ) {\n usects [ j ] . rva = sections [ q ] . rva ;\n usects [ j ] . rsz = thisrva - sections [ q ] . rva + size ;\n }\n break ;\n }\n if ( q == sectcount ) {\n free ( usects ) ;\n return 1 ;\n }\n j ++ ;\n if ( size < 0x10000 ) {\n check1 = 0x0FFFFC060 ;\n check2 = 0x0FFFFFC60 ;\n goback = 5 ;\n }\n else if ( size < 0x40000 ) {\n check1 = 0x0FFFF8180 ;\n check2 = 0x0FFFFF980 ;\n goback = 7 ;\n }\n else {\n check1 = 0x0FFFF8300 ;\n check2 = 0x0FFFFFB00 ;\n goback = 8 ;\n }\n if ( ! CLI_ISCONTAINED ( buf , bufsz , ssrc , 1 ) || ! CLI_ISCONTAINED ( buf , bufsz , ddst , 1 ) ) {\n free ( usects ) ;\n return 1 ;\n }\n size -- ;\n * ddst ++ = * ssrc ++ ;\n backbytes = 0 ;\n oldback = 0 ;\n while ( size > 0 ) {\n oob = doubledl ( & ssrc , & mydl , buf , bufsz ) ;\n if ( oob == - 1 ) {\n free ( usects ) ;\n return 1 ;\n }\n if ( ! oob ) {\n if ( ! CLI_ISCONTAINED ( buf , bufsz , ssrc , 1 ) || ! CLI_ISCONTAINED ( buf , bufsz , ddst , 1 ) ) {\n free ( usects ) ;\n return 1 ;\n }\n * ddst ++ = ( char ) ( ( * ssrc ++ ) ^ ( size & 0xff ) ) ;\n size -- ;\n }\n else {\n addsize = 0 ;\n backbytes ++ ;\n while ( 1 ) {\n if ( ( oob = doubledl ( & ssrc , & mydl , buf , bufsz ) ) == - 1 ) {\n free ( usects ) ;\n return 1 ;\n }\n backbytes = backbytes * 2 + oob ;\n if ( ( oob = doubledl ( & ssrc , & mydl , buf , bufsz ) ) == - 1 ) {\n free ( usects ) ;\n return 1 ;\n }\n if ( ! oob ) break ;\n }\n backbytes -= 3 ;\n if ( backbytes >= 0 ) {\n backsize = goback ;\n do {\n if ( ( oob = doubledl ( & ssrc , & mydl , buf , bufsz ) ) == - 1 ) {\n free ( usects ) ;\n return 1 ;\n }\n backbytes = backbytes * 2 + oob ;\n backsize -- ;\n }\n while ( backsize ) ;\n backbytes ^= 0xffffffff ;\n addsize += 1 + ( backbytes < ( int ) check2 ) + ( backbytes < ( int ) check1 ) ;\n oldback = backbytes ;\n }\n else {\n backsize = backbytes + 1 ;\n backbytes = oldback ;\n }\n if ( ( oob = doubledl ( & ssrc , & mydl , buf , bufsz ) ) == - 1 ) {\n free ( usects ) ;\n return 1 ;\n }\n backsize = backsize * 2 + oob ;\n if ( ( oob = doubledl ( & ssrc , & mydl , buf , bufsz ) ) == - 1 ) {\n free ( usects ) ;\n return 1 ;\n }\n backsize = backsize * 2 + oob ;\n if ( ! backsize ) {\n backsize ++ ;\n while ( 1 ) {\n if ( ( oob = doubledl ( & ssrc , & mydl , buf , bufsz ) ) == - 1 ) {\n free ( usects ) ;\n return 1 ;\n }\n backsize = backsize * 2 + oob ;\n if ( ( oob = doubledl ( & ssrc , & mydl , buf , bufsz ) ) == - 1 ) {\n free ( usects ) ;\n return 1 ;\n }\n if ( ! oob ) break ;\n }\n backsize += 2 ;\n }\n backsize += addsize ;\n size -= backsize ;\n if ( ! CLI_ISCONTAINED ( buf , bufsz , ddst , backsize ) || ! CLI_ISCONTAINED ( buf , bufsz , ddst + backbytes , backsize ) ) {\n free ( usects ) ;\n return 1 ;\n }\n while ( backsize -- ) {\n * ddst = * ( ddst + backbytes ) ;\n ddst ++ ;\n }\n backbytes = 0 ;\n backsize = 0 ;\n }\n }\n if ( j ) {\n int strippetite = 0 ;\n uint32_t reloc ;\n if ( usects [ j - 1 ] . rsz > grown && CLI_ISCONTAINED ( buf , bufsz , ddst - grown + 5 + 0x4f , 8 ) && cli_readint32 ( ddst - grown + 5 + 0x4f ) == 0x645ec033 && cli_readint32 ( ddst - grown + 5 + 0x4f + 4 ) == 0x1b8b188b ) {\n reloc = 0 ;\n strippetite = 1 ;\n }\n if ( ! strippetite && usects [ j - 1 ] . rsz > grown + skew && CLI_ISCONTAINED ( buf , bufsz , ddst - grown + 5 + 0x4f - skew , 8 ) && cli_readint32 ( ddst - grown + 5 + 0x4f - skew ) == 0x645ec033 && cli_readint32 ( ddst - grown + 5 + 0x4f + 4 - skew ) == 0x1b8b188b ) {\n reloc = skew ;\n strippetite = 1 ;\n }\n if ( strippetite && CLI_ISCONTAINED ( buf , bufsz , ddst - grown + 0x0f - 8 - reloc , 8 ) ) {\n uint32_t test1 , test2 ;\n test1 = cli_readint32 ( ddst - grown + 0x0f - 8 - reloc ) ^ 0x9d6661aa ;\n test2 = cli_readint32 ( ddst - grown + 0x0f - 4 - reloc ) ^ 0xe908c483 ;\n cli_dbgmsg ( \"Petite: Found petite code in sect%d(%x). Let's strip it.\\n\" , j - 1 , usects [ j - 1 ] . rva ) ;\n if ( test1 == test2 && CLI_ISCONTAINED ( buf , bufsz , ddst - grown + 0x0f - reloc , 0x1c0 - 0x0f + 4 ) ) {\n irva = cli_readint32 ( ddst - grown + 0x121 - reloc ) ;\n enc_ep = cli_readint32 ( ddst - grown + 0x0f - reloc ) ^ test1 ;\n mangled = ( ( uint32_t ) cli_readint32 ( ddst - grown + 0x1c0 - reloc ) != 0x90909090 ) ;\n cli_dbgmsg ( \"Petite: Encrypted EP: %x | Array of imports: %x\\n\" , enc_ep , irva ) ;\n }\n usects [ j - 1 ] . rsz -= grown + reloc ;\n }\n }\n check4resources ++ ;\n }\n }\n }"}
{"idx": 2528, "target": 0, "func": "static int dissect_h245_T_t38FaxUdpEC ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_t38FaxUdpEC , T_t38FaxUdpEC_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 2529, "target": 0, "func": "static void fix_dependencies ( ArchiveHandle * AH ) {\n TocEntry * te ;\n int i ;\n for ( te = AH -> toc -> next ;\n te != AH -> toc ;\n te = te -> next ) {\n te -> depCount = te -> nDeps ;\n te -> revDeps = NULL ;\n te -> nRevDeps = 0 ;\n te -> par_prev = NULL ;\n te -> par_next = NULL ;\n }\n repoint_table_dependencies ( AH ) ;\n if ( AH -> version < K_VERS_1_11 ) {\n for ( te = AH -> toc -> next ;\n te != AH -> toc ;\n te = te -> next ) {\n if ( strcmp ( te -> desc , \"BLOB COMMENTS\" ) == 0 && te -> nDeps == 0 ) {\n TocEntry * te2 ;\n for ( te2 = AH -> toc -> next ;\n te2 != AH -> toc ;\n te2 = te2 -> next ) {\n if ( strcmp ( te2 -> desc , \"BLOBS\" ) == 0 ) {\n te -> dependencies = ( DumpId * ) pg_malloc ( sizeof ( DumpId ) ) ;\n te -> dependencies [ 0 ] = te2 -> dumpId ;\n te -> nDeps ++ ;\n te -> depCount ++ ;\n break ;\n }\n }\n break ;\n }\n }\n }\n for ( te = AH -> toc -> next ;\n te != AH -> toc ;\n te = te -> next ) {\n for ( i = 0 ;\n i < te -> nDeps ;\n i ++ ) {\n DumpId depid = te -> dependencies [ i ] ;\n if ( depid <= AH -> maxDumpId && AH -> tocsByDumpId [ depid ] != NULL ) AH -> tocsByDumpId [ depid ] -> nRevDeps ++ ;\n else te -> depCount -- ;\n }\n }\n for ( te = AH -> toc -> next ;\n te != AH -> toc ;\n te = te -> next ) {\n if ( te -> nRevDeps > 0 ) te -> revDeps = ( DumpId * ) pg_malloc ( te -> nRevDeps * sizeof ( DumpId ) ) ;\n te -> nRevDeps = 0 ;\n }\n for ( te = AH -> toc -> next ;\n te != AH -> toc ;\n te = te -> next ) {\n for ( i = 0 ;\n i < te -> nDeps ;\n i ++ ) {\n DumpId depid = te -> dependencies [ i ] ;\n if ( depid <= AH -> maxDumpId && AH -> tocsByDumpId [ depid ] != NULL ) {\n TocEntry * otherte = AH -> tocsByDumpId [ depid ] ;\n otherte -> revDeps [ otherte -> nRevDeps ++ ] = te -> dumpId ;\n }\n }\n }\n for ( te = AH -> toc -> next ;\n te != AH -> toc ;\n te = te -> next ) {\n te -> lockDeps = NULL ;\n te -> nLockDeps = 0 ;\n identify_locking_dependencies ( AH , te ) ;\n }\n }"}
{"idx": 2530, "target": 0, "func": "static const char * add_marker ( cmd_parms * cmd , directory_config * dcfg , const char * p1 , const char * p2 , const char * p3 ) {\n char * my_error_msg = NULL ;\n msre_rule * rule = NULL ;\n extern msc_engine * modsecurity ;\n int p ;\n # ifdef DEBUG_CONF ap_log_perror ( APLOG_MARK , APLOG_STARTUP | APLOG_NOERRNO , 0 , cmd -> pool , \"Rule: type=%d p1='%s' p2='%s' p3='%s'\" , RULE_TYPE_MARKER , p1 , p2 , p3 ) ;\n # endif if ( ( dcfg -> ruleset == NULL ) || ( dcfg -> ruleset == NOT_SET_P ) ) {\n dcfg -> ruleset = msre_ruleset_create ( modsecurity -> msre , cmd -> pool ) ;\n if ( dcfg -> ruleset == NULL ) return FATAL_ERROR ;\n }\n rule = msre_rule_create ( dcfg -> ruleset , RULE_TYPE_MARKER , cmd -> directive -> filename , cmd -> directive -> line_num , p1 , p2 , p3 , & my_error_msg ) ;\n if ( rule == NULL ) {\n return my_error_msg ;\n }\n rule -> placeholder = RULE_PH_MARKER ;\n for ( p = PHASE_FIRST ;\n p <= PHASE_LAST ;\n p ++ ) {\n # ifdef DEBUG_CONF ap_log_perror ( APLOG_MARK , APLOG_STARTUP | APLOG_NOERRNO , 0 , cmd -> pool , \"Adding marker %pp phase=%d id=\\\"%s\\\".\" , rule , p , ( rule -> actionset -> id == NOT_SET_P ? \"(none)\" : rule -> actionset -> id ) ) ;\n # endif if ( msre_ruleset_rule_add ( dcfg -> ruleset , rule , p ) < 0 ) {\n return \"Internal Error: Failed to add marker to the ruleset.\" ;\n }\n }\n if ( dcfg -> tmp_rule_placeholders != NULL ) {\n apr_table_unset ( dcfg -> tmp_rule_placeholders , rule -> actionset -> id ) ;\n }\n return NULL ;\n }"}
{"idx": 2531, "target": 0, "func": "void kadmin_addprinc ( int argc , char * argv [ ] ) {\n kadm5_principal_ent_rec princ ;\n long mask ;\n krb5_boolean randkey = FALSE , old_style_randkey = FALSE ;\n int n_ks_tuple ;\n krb5_key_salt_tuple * ks_tuple = NULL ;\n char * pass , * canon = NULL ;\n krb5_error_code retval ;\n char newpw [ 1024 ] , dummybuf [ 256 ] ;\n static char prompt1 [ 1024 ] , prompt2 [ 1024 ] ;\n memset ( & princ , 0 , sizeof ( princ ) ) ;\n princ . attributes = 0 ;\n if ( kadmin_parse_princ_args ( argc , argv , & princ , & mask , & pass , & randkey , & ks_tuple , & n_ks_tuple , \"add_principal\" ) ) {\n kadmin_addprinc_usage ( ) ;\n goto cleanup ;\n }\n retval = krb5_unparse_name ( context , princ . principal , & canon ) ;\n if ( retval ) {\n com_err ( \"add_principal\" , retval , _ ( \"while canonicalizing principal\" ) ) ;\n goto cleanup ;\n }\n if ( mask & KADM5_POLICY ) {\n if ( ! policy_exists ( princ . policy ) ) {\n fprintf ( stderr , _ ( \"WARNING: policy \\\"%s\\\" does not exist\\n\" ) , princ . policy ) ;\n }\n }\n else if ( ! ( mask & KADM5_POLICY_CLR ) ) {\n if ( policy_exists ( \"default\" ) ) {\n fprintf ( stderr , _ ( \"NOTICE: no policy specified for %s;\n \" \"assigning \\\"default\\\"\\n\" ) , canon ) ;\n princ . policy = \"default\" ;\n mask |= KADM5_POLICY ;\n }\n else fprintf ( stderr , _ ( \"WARNING: no policy specified for %s;\n \" \"defaulting to no policy\\n\" ) , canon ) ;\n }\n mask &= ~ KADM5_POLICY_CLR ;\n if ( randkey ) {\n pass = NULL ;\n }\n else if ( pass == NULL ) {\n unsigned int sz = sizeof ( newpw ) - 1 ;\n snprintf ( prompt1 , sizeof ( prompt1 ) , _ ( \"Enter password for principal \\\"%s\\\"\" ) , canon ) ;\n snprintf ( prompt2 , sizeof ( prompt2 ) , _ ( \"Re-enter password for principal \\\"%s\\\"\" ) , canon ) ;\n retval = krb5_read_password ( context , prompt1 , prompt2 , newpw , & sz ) ;\n if ( retval ) {\n com_err ( \"add_principal\" , retval , _ ( \"while reading password for \\\"%s\\\".\" ) , canon ) ;\n goto cleanup ;\n }\n pass = newpw ;\n }\n mask |= KADM5_PRINCIPAL ;\n retval = create_princ ( & princ , mask , n_ks_tuple , ks_tuple , pass ) ;\n if ( retval == EINVAL && randkey ) {\n prepare_dummy_password ( dummybuf , sizeof ( dummybuf ) ) ;\n princ . attributes |= KRB5_KDB_DISALLOW_ALL_TIX ;\n mask |= KADM5_ATTRIBUTES ;\n pass = dummybuf ;\n retval = create_princ ( & princ , mask , n_ks_tuple , ks_tuple , pass ) ;\n old_style_randkey = 1 ;\n }\n if ( retval ) {\n com_err ( \"add_principal\" , retval , \"while creating \\\"%s\\\".\" , canon ) ;\n goto cleanup ;\n }\n if ( old_style_randkey ) {\n retval = randkey_princ ( princ . principal , FALSE , n_ks_tuple , ks_tuple ) ;\n if ( retval ) {\n com_err ( \"add_principal\" , retval , _ ( \"while randomizing key for \\\"%s\\\".\" ) , canon ) ;\n goto cleanup ;\n }\n princ . attributes &= ~ KRB5_KDB_DISALLOW_ALL_TIX ;\n mask = KADM5_ATTRIBUTES ;\n retval = kadm5_modify_principal ( handle , & princ , mask ) ;\n if ( retval ) {\n com_err ( \"add_principal\" , retval , _ ( \"while clearing DISALLOW_ALL_TIX for \\\"%s\\\".\" ) , canon ) ;\n goto cleanup ;\n }\n }\n printf ( \"Principal \\\"%s\\\" created.\\n\" , canon ) ;\n cleanup : krb5_free_principal ( context , princ . principal ) ;\n free ( ks_tuple ) ;\n free ( canon ) ;\n kadmin_free_tl_data ( & princ . n_tl_data , & princ . tl_data ) ;\n }"}
{"idx": 2532, "target": 0, "func": "static int tokenexec_continue ( i_ctx_t * i_ctx_p , scanner_state * pstate , bool save ) {\n os_ptr op = osp ;\n int code ;\n make_null ( osp ) ;\n pop ( 1 ) ;\n again : check_estack ( 1 ) ;\n code = gs_scan_token ( i_ctx_p , ( ref * ) ( esp + 1 ) , pstate ) ;\n op = osp ;\n switch ( code ) {\n case 0 : if ( r_is_proc ( esp + 1 ) ) {\n push ( 1 ) ;\n ref_assign ( op , esp + 1 ) ;\n code = 0 ;\n break ;\n }\n case scan_BOS : ++ esp ;\n code = o_push_estack ;\n break ;\n case scan_EOF : code = 0 ;\n break ;\n case scan_Refill : code = gs_scan_handle_refill ( i_ctx_p , pstate , save , ztokenexec_continue ) ;\n switch ( code ) {\n case 0 : goto again ;\n case o_push_estack : return code ;\n }\n break ;\n case scan_Comment : case scan_DSC_Comment : return ztoken_handle_comment ( i_ctx_p , pstate , esp + 1 , code , save , true , ztokenexec_continue ) ;\n default : gs_scanner_error_object ( i_ctx_p , pstate , & i_ctx_p -> error_object ) ;\n break ;\n }\n if ( ! save ) {\n gs_free_object ( ( ( scanner_state_dynamic * ) pstate ) -> mem , pstate , \"token_continue\" ) ;\n }\n return code ;\n }"}
{"idx": 2533, "target": 0, "func": "static void host ( struct parse * pcmd , FILE * fp ) {\n int i ;\n if ( pcmd -> nargs == 0 ) {\n if ( havehost ) ( void ) fprintf ( fp , \"current host is %s\\n\" , currenthost ) ;\n else ( void ) fprintf ( fp , \"no current host\\n\" ) ;\n return ;\n }\n i = 0 ;\n ai_fam_templ = ai_fam_default ;\n if ( pcmd -> nargs == 2 ) {\n if ( ! strcmp ( \"-4\" , pcmd -> argval [ i ] . string ) ) ai_fam_templ = AF_INET ;\n else if ( ! strcmp ( \"-6\" , pcmd -> argval [ i ] . string ) ) ai_fam_templ = AF_INET6 ;\n else goto no_change ;\n i = 1 ;\n }\n if ( openhost ( pcmd -> argval [ i ] . string , ai_fam_templ ) ) {\n fprintf ( fp , \"current host set to %s\\n\" , currenthost ) ;\n }\n else {\n no_change : if ( havehost ) fprintf ( fp , \"current host remains %s\\n\" , currenthost ) ;\n else fprintf ( fp , \"still no current host\\n\" ) ;\n }\n }"}
{"idx": 2534, "target": 0, "func": "static void gs_heap_free_object ( gs_memory_t * mem , void * ptr , client_name_t cname ) {\n gs_malloc_memory_t * mmem = ( gs_malloc_memory_t * ) mem ;\n gs_malloc_block_t * bp ;\n gs_memory_type_ptr_t pstype ;\n struct_proc_finalize ( ( * finalize ) ) ;\n if_debug3m ( 'a' , mem , \"[a-]gs_free(%s) 0x%lx(%u)\\n\" , client_name_string ( cname ) , ( ulong ) ptr , ( ptr == 0 ? 0 : ( ( gs_malloc_block_t * ) ptr ) [ - 1 ] . size ) ) ;\n if ( ptr == 0 ) return ;\n pstype = ( ( gs_malloc_block_t * ) ptr ) [ - 1 ] . type ;\n finalize = pstype -> finalize ;\n if ( finalize != 0 ) {\n if_debug3m ( 'u' , mem , \"[u]finalizing %s 0x%lx (%s)\\n\" , struct_type_name_string ( pstype ) , ( ulong ) ptr , client_name_string ( cname ) ) ;\n ( * finalize ) ( mem , ptr ) ;\n }\n if ( mmem -> monitor ) gx_monitor_enter ( mmem -> monitor ) ;\n # if 1 bp = & ( ( gs_malloc_block_t * ) ptr ) [ - 1 ] ;\n if ( bp -> prev ) bp -> prev -> next = bp -> next ;\n if ( bp -> next ) bp -> next -> prev = bp -> prev ;\n if ( bp == mmem -> allocated ) {\n mmem -> allocated = bp -> next ;\n mmem -> allocated -> prev = NULL ;\n }\n mmem -> used -= bp -> size + sizeof ( gs_malloc_block_t ) ;\n if ( mmem -> monitor ) gx_monitor_leave ( mmem -> monitor ) ;\n gs_alloc_fill ( bp , gs_alloc_fill_free , bp -> size + sizeof ( gs_malloc_block_t ) ) ;\n free ( bp ) ;\n # else bp = mmem -> allocated ;\n if ( ptr == bp + 1 ) {\n mmem -> allocated = bp -> next ;\n mmem -> used -= bp -> size + sizeof ( gs_malloc_block_t ) ;\n if ( mmem -> allocated ) mmem -> allocated -> prev = 0 ;\n if ( mmem -> monitor ) gx_monitor_leave ( mmem -> monitor ) ;\n gs_alloc_fill ( bp , gs_alloc_fill_free , bp -> size + sizeof ( gs_malloc_block_t ) ) ;\n free ( bp ) ;\n }\n else {\n gs_malloc_block_t * np ;\n if ( bp ) {\n for ( ;\n ( np = bp -> next ) != 0 ;\n bp = np ) {\n if ( ptr == np + 1 ) {\n bp -> next = np -> next ;\n if ( np -> next ) np -> next -> prev = bp ;\n mmem -> used -= np -> size + sizeof ( gs_malloc_block_t ) ;\n if ( mmem -> monitor ) gx_monitor_leave ( mmem -> monitor ) ;\n gs_alloc_fill ( np , gs_alloc_fill_free , np -> size + sizeof ( gs_malloc_block_t ) ) ;\n free ( np ) ;\n return ;\n }\n }\n }\n if ( mmem -> monitor ) gx_monitor_leave ( mmem -> monitor ) ;\n lprintf2 ( \"%s: free 0x%lx not found!\\n\" , client_name_string ( cname ) , ( ulong ) ptr ) ;\n free ( ( char * ) ( ( gs_malloc_block_t * ) ptr - 1 ) ) ;\n }\n # endif }"}
{"idx": 2535, "target": 0, "func": "int load_initrd ( const char * filename , uint8_t * addr ) {\n int fd , size ;\n printf ( \"Load initrd\\n\" ) ;\n fd = open ( filename , O_RDONLY ) ;\n if ( fd < 0 ) return - 1 ;\n size = read ( fd , addr , 16 * 1024 * 1024 ) ;\n if ( size < 0 ) goto fail ;\n close ( fd ) ;\n printf ( \"Load initrd: %d\\n\" , size ) ;\n return size ;\n fail : close ( fd ) ;\n printf ( \"Load initrd failed\\n\" ) ;\n return - 1 ;\n }"}
{"idx": 2536, "target": 0, "func": "static inline void SetPixelChannelTraits ( Image * image , const PixelChannel channel , const PixelTrait traits ) {\n image -> channel_map [ channel ] . traits = traits ;\n }"}
{"idx": 2537, "target": 0, "func": "static void _slurm_rpc_layout_show ( slurm_msg_t * msg ) {\n layout_info_request_msg_t * layout_req_msg = ( layout_info_request_msg_t * ) msg -> data ;\n DEF_TIMERS ;\n slurm_msg_t response_msg ;\n char * dump ;\n int dump_size ;\n static int high_buffer_size = ( 1024 * 1024 ) ;\n Buf buffer = init_buf ( high_buffer_size ) ;\n START_TIMER ;\n debug2 ( \"Processing RPC: REQUEST_LAYOUT_INFO\" ) ;\n if ( layout_req_msg -> layout_type == NULL ) {\n dump = slurm_get_layouts ( ) ;\n pack32 ( ( uint32_t ) 2 , buffer ) ;\n packstr ( dump , buffer ) ;\n packstr ( \"\\n\" , buffer ) ;\n xfree ( dump ) ;\n }\n else {\n if ( layouts_pack_layout ( layout_req_msg -> layout_type , layout_req_msg -> entities , layout_req_msg -> type , layout_req_msg -> flags , buffer ) != SLURM_SUCCESS ) {\n debug2 ( \"%s: unable to get layout[%s]\" , __func__ , layout_req_msg -> layout_type ) ;\n slurm_send_rc_msg ( msg , SLURM_NO_CHANGE_IN_DATA ) ;\n free_buf ( buffer ) ;\n return ;\n }\n }\n dump_size = get_buf_offset ( buffer ) ;\n high_buffer_size = MAX ( high_buffer_size , dump_size ) ;\n dump = xfer_buf_data ( buffer ) ;\n END_TIMER2 ( \"_slurm_rpc_resv_show\" ) ;\n slurm_msg_t_init ( & response_msg ) ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . address = msg -> address ;\n response_msg . conn = msg -> conn ;\n response_msg . msg_type = RESPONSE_LAYOUT_INFO ;\n response_msg . data = dump ;\n response_msg . data_size = dump_size ;\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n xfree ( dump ) ;\n }"}
{"idx": 2538, "target": 0, "func": "TEST_F ( NativeBackendLibsecretTest , FetchFederatedCredential ) {\n other_auth_ . signon_realm = \"federation://www.example.com/google.com\" ;\n other_auth_ . federation_origin = url : : Origin ( GURL ( \"https://google.com/\" ) ) ;\n EXPECT_TRUE ( CheckCredentialAvailability ( other_auth_ , GURL ( \"http://www.example.com/\" ) , PasswordForm : : SCHEME_HTML , nullptr ) ) ;\n }"}
{"idx": 2539, "target": 0, "func": "static void xhci_complete ( USBPort * port , USBPacket * packet ) {\n XHCITransfer * xfer = container_of ( packet , XHCITransfer , packet ) ;\n if ( packet -> status == USB_RET_REMOVE_FROM_QUEUE ) {\n xhci_ep_nuke_one_xfer ( xfer , 0 ) ;\n return ;\n }\n xhci_try_complete_packet ( xfer ) ;\n xhci_kick_epctx ( xfer -> epctx , xfer -> streamid ) ;\n if ( xfer -> complete ) {\n xhci_ep_free_xfer ( xfer ) ;\n }\n }"}
{"idx": 2540, "target": 0, "func": "const char * TSHttpTxnPluginTagGet ( TSHttpTxn txnp ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = reinterpret_cast < HttpSM * > ( txnp ) ;\n return sm -> plugin_tag ;\n }"}
{"idx": 2541, "target": 0, "func": "Expr * make_andclause ( List * andclauses ) {\n BoolExpr * expr = makeNode ( BoolExpr ) ;\n expr -> boolop = AND_EXPR ;\n expr -> args = andclauses ;\n expr -> location = - 1 ;\n return ( Expr * ) expr ;\n }"}
{"idx": 2542, "target": 0, "func": "static int compress_bidder_free ( struct archive_read_filter_bidder * self ) {\n self -> data = NULL ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 2543, "target": 0, "func": "int decodetime ( char * str , l_fp * lfp ) {\n return mstolfp ( str , lfp ) ;\n }"}
{"idx": 2544, "target": 0, "func": "static int php_stream_http_stream_stat ( php_stream_wrapper * wrapper , php_stream * stream , php_stream_statbuf * ssb TSRMLS_DC ) {\n return - 1 ;\n }"}
{"idx": 2545, "target": 0, "func": "xsltSecurityCheck xsltGetSecurityPrefs ( xsltSecurityPrefsPtr sec , xsltSecurityOption option ) {\n if ( sec == NULL ) return ( NULL ) ;\n switch ( option ) {\n case XSLT_SECPREF_READ_FILE : return ( sec -> readFile ) ;\n case XSLT_SECPREF_WRITE_FILE : return ( sec -> createFile ) ;\n case XSLT_SECPREF_CREATE_DIRECTORY : return ( sec -> createDir ) ;\n case XSLT_SECPREF_READ_NETWORK : return ( sec -> readNet ) ;\n case XSLT_SECPREF_WRITE_NETWORK : return ( sec -> writeNet ) ;\n }\n return ( NULL ) ;\n }"}
{"idx": 2546, "target": 0, "func": "static const char * hf_try_val64_to_str_const ( guint64 value , const header_field_info * hfinfo , const char * unknown_str ) {\n const char * str = hf_try_val64_to_str ( value , hfinfo ) ;\n return ( str ) ? str : unknown_str ;\n }"}
{"idx": 2547, "target": 0, "func": "static void i_free_all ( gs_memory_t * mem , uint free_mask , client_name_t cname ) {\n gs_ref_memory_t * imem = ( gs_ref_memory_t * ) mem ;\n struct free_data fd ;\n fd . imem = imem ;\n fd . allocator = NULL ;\n if ( free_mask & FREE_ALL_DATA && imem -> root != NULL ) {\n clump_splay_app ( imem -> root , imem , free_all_not_allocator , & fd ) ;\n imem -> root = fd . allocator ;\n if ( fd . allocator ) fd . allocator -> parent = fd . allocator -> left = fd . allocator -> right = NULL ;\n }\n if ( free_mask & FREE_ALL_ALLOCATOR ) {\n clump_splay_app ( imem -> root , imem , free_all_allocator , & fd ) ;\n }\n }"}
{"idx": 2548, "target": 0, "func": "static UChar32 U_CALLCONV _UTF16GetNextUChar ( UConverterToUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n switch ( pArgs -> converter -> mode ) {\n case 8 : return _UTF16BEGetNextUChar ( pArgs , pErrorCode ) ;\n case 9 : return _UTF16LEGetNextUChar ( pArgs , pErrorCode ) ;\n default : return UCNV_GET_NEXT_UCHAR_USE_TO_U ;\n }\n }"}
{"idx": 2549, "target": 0, "func": "static void set_result_format_version ( ulong new_version ) {\n switch ( new_version ) {\n case 1 : break ;\n case 2 : break ;\n default : die ( \"Version format %lu has not yet been implemented\" , new_version ) ;\n break ;\n }\n opt_result_format_version = new_version ;\n }"}
{"idx": 2550, "target": 0, "func": "int TSHttpCurrentClientConnectionsGet ( void ) {\n int64_t S ;\n HTTP_READ_DYN_SUM ( http_current_client_connections_stat , S ) ;\n return ( int ) S ;\n }"}
{"idx": 2551, "target": 0, "func": "static void _dumpcffstrings ( FILE * file , struct pschars * strs ) {\n int i , len , offsize ;\n len = 1 ;\n for ( i = 0 ;\n i < strs -> next ;\n ++ i ) len += strs -> lens [ i ] ;\n putshort ( file , strs -> next ) ;\n if ( strs -> next != 0 ) {\n offsize = len <= 255 ? 1 : len <= 65535 ? 2 : len <= 0xffffff ? 3 : 4 ;\n putc ( offsize , file ) ;\n len = 1 ;\n for ( i = 0 ;\n i < strs -> next ;\n ++ i ) {\n dumpoffset ( file , offsize , len ) ;\n len += strs -> lens [ i ] ;\n }\n dumpoffset ( file , offsize , len ) ;\n for ( i = 0 ;\n i < strs -> next ;\n ++ i ) {\n uint8 * pt = strs -> values [ i ] , * end = pt + strs -> lens [ i ] ;\n while ( pt < end ) {\n putc ( * pt ++ , file ) ;\n }\n }\n }\n }"}
{"idx": 2552, "target": 0, "func": "int tls_construct_server_hello ( SSL * s ) {\n unsigned char * buf ;\n unsigned char * p , * d ;\n int i , sl ;\n int al = 0 ;\n unsigned long l ;\n buf = ( unsigned char * ) s -> init_buf -> data ;\n d = p = ssl_handshake_start ( s ) ;\n * ( p ++ ) = s -> version >> 8 ;\n * ( p ++ ) = s -> version & 0xff ;\n memcpy ( p , s -> s3 -> server_random , SSL3_RANDOM_SIZE ) ;\n p += SSL3_RANDOM_SIZE ;\n if ( s -> session -> not_resumable || ( ! ( s -> ctx -> session_cache_mode & SSL_SESS_CACHE_SERVER ) && ! s -> hit ) ) s -> session -> session_id_length = 0 ;\n sl = s -> session -> session_id_length ;\n if ( sl > ( int ) sizeof ( s -> session -> session_id ) ) {\n SSLerr ( SSL_F_TLS_CONSTRUCT_SERVER_HELLO , ERR_R_INTERNAL_ERROR ) ;\n ossl_statem_set_error ( s ) ;\n return 0 ;\n }\n * ( p ++ ) = sl ;\n memcpy ( p , s -> session -> session_id , sl ) ;\n p += sl ;\n i = ssl3_put_cipher_by_char ( s -> s3 -> tmp . new_cipher , p ) ;\n p += i ;\n # ifdef OPENSSL_NO_COMP * ( p ++ ) = 0 ;\n # else if ( s -> s3 -> tmp . new_compression == NULL ) * ( p ++ ) = 0 ;\n else * ( p ++ ) = s -> s3 -> tmp . new_compression -> id ;\n # endif if ( ssl_prepare_serverhello_tlsext ( s ) <= 0 ) {\n SSLerr ( SSL_F_TLS_CONSTRUCT_SERVER_HELLO , SSL_R_SERVERHELLO_TLSEXT ) ;\n ossl_statem_set_error ( s ) ;\n return 0 ;\n }\n if ( ( p = ssl_add_serverhello_tlsext ( s , p , buf + SSL3_RT_MAX_PLAIN_LENGTH , & al ) ) == NULL ) {\n ssl3_send_alert ( s , SSL3_AL_FATAL , al ) ;\n SSLerr ( SSL_F_TLS_CONSTRUCT_SERVER_HELLO , ERR_R_INTERNAL_ERROR ) ;\n ossl_statem_set_error ( s ) ;\n return 0 ;\n }\n l = ( p - d ) ;\n if ( ! ssl_set_handshake_header ( s , SSL3_MT_SERVER_HELLO , l ) ) {\n SSLerr ( SSL_F_TLS_CONSTRUCT_SERVER_HELLO , ERR_R_INTERNAL_ERROR ) ;\n ossl_statem_set_error ( s ) ;\n return 0 ;\n }\n return 1 ;\n }"}
{"idx": 2553, "target": 0, "func": "static const char * ultag_getExtensionKey ( const ULanguageTag * langtag , int32_t idx ) {\n const char * key = NULL ;\n ExtensionListEntry * cur = langtag -> extensions ;\n int32_t i = 0 ;\n while ( cur ) {\n if ( i == idx ) {\n key = cur -> key ;\n break ;\n }\n cur = cur -> next ;\n i ++ ;\n }\n return key ;\n }"}
{"idx": 2554, "target": 0, "func": "static void acl_insert_db ( const char * user , const char * host , const char * db , ulong privileges ) {\n ACL_DB acl_db ;\n safe_mutex_assert_owner ( & acl_cache -> lock ) ;\n acl_db . user = strdup_root ( & mem , user ) ;\n update_hostname ( & acl_db . host , * host ? strdup_root ( & mem , host ) : 0 ) ;\n acl_db . db = strdup_root ( & mem , db ) ;\n acl_db . access = privileges ;\n acl_db . sort = get_sort ( 3 , acl_db . host . hostname , acl_db . db , acl_db . user ) ;\n VOID ( push_dynamic ( & acl_dbs , ( uchar * ) & acl_db ) ) ;\n my_qsort ( ( uchar * ) dynamic_element ( & acl_dbs , 0 , ACL_DB * ) , acl_dbs . elements , sizeof ( ACL_DB ) , ( qsort_cmp ) acl_compare ) ;\n }"}
{"idx": 2555, "target": 0, "func": "static int dissect_h225_H323UserInformation ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n proto_item * it ;\n proto_tree * tr ;\n int offset = 0 ;\n h225_packet_info * h225_pi ;\n h225_pi = create_h225_packet_info ( pinfo ) ;\n h225_pi -> msg_type = H225_CS ;\n p_add_proto_data ( wmem_packet_scope ( ) , pinfo , proto_h225 , 0 , h225_pi ) ;\n next_tvb_init ( & h245_list ) ;\n next_tvb_init ( & tp_list ) ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , PSNAME ) ;\n col_clear ( pinfo -> cinfo , COL_INFO ) ;\n it = proto_tree_add_protocol_format ( tree , proto_h225 , tvb , 0 , - 1 , PSNAME \" CS\" ) ;\n tr = proto_item_add_subtree ( it , ett_h225 ) ;\n offset = dissect_H323_UserInformation_PDU ( tvb , pinfo , tr , NULL ) ;\n if ( h245_list . count ) {\n col_append_str ( pinfo -> cinfo , COL_PROTOCOL , \"/\" ) ;\n col_set_fence ( pinfo -> cinfo , COL_PROTOCOL ) ;\n }\n next_tvb_call ( & h245_list , pinfo , tree , h245dg_handle , data_handle ) ;\n next_tvb_call ( & tp_list , pinfo , tree , NULL , data_handle ) ;\n tap_queue_packet ( h225_tap , pinfo , h225_pi ) ;\n return offset ;\n }"}
{"idx": 2556, "target": 0, "func": "int vp9_get_pred_context_single_ref_p2 ( const MACROBLOCKD * xd ) {\n int pred_context ;\n const MB_MODE_INFO * const above_mbmi = get_mbmi ( get_above_mi ( xd ) ) ;\n const MB_MODE_INFO * const left_mbmi = get_mbmi ( get_left_mi ( xd ) ) ;\n const int has_above = above_mbmi != NULL ;\n const int has_left = left_mbmi != NULL ;\n if ( has_above && has_left ) {\n const int above_intra = ! is_inter_block ( above_mbmi ) ;\n const int left_intra = ! is_inter_block ( left_mbmi ) ;\n if ( above_intra && left_intra ) {\n pred_context = 2 ;\n }\n else if ( above_intra || left_intra ) {\n const MB_MODE_INFO * edge_mbmi = above_intra ? left_mbmi : above_mbmi ;\n if ( ! has_second_ref ( edge_mbmi ) ) {\n if ( edge_mbmi -> ref_frame [ 0 ] == LAST_FRAME ) pred_context = 3 ;\n else pred_context = 4 * ( edge_mbmi -> ref_frame [ 0 ] == GOLDEN_FRAME ) ;\n }\n else {\n pred_context = 1 + 2 * ( edge_mbmi -> ref_frame [ 0 ] == GOLDEN_FRAME || edge_mbmi -> ref_frame [ 1 ] == GOLDEN_FRAME ) ;\n }\n }\n else {\n const int above_has_second = has_second_ref ( above_mbmi ) ;\n const int left_has_second = has_second_ref ( left_mbmi ) ;\n const MV_REFERENCE_FRAME above0 = above_mbmi -> ref_frame [ 0 ] ;\n const MV_REFERENCE_FRAME above1 = above_mbmi -> ref_frame [ 1 ] ;\n const MV_REFERENCE_FRAME left0 = left_mbmi -> ref_frame [ 0 ] ;\n const MV_REFERENCE_FRAME left1 = left_mbmi -> ref_frame [ 1 ] ;\n if ( above_has_second && left_has_second ) {\n if ( above0 == left0 && above1 == left1 ) pred_context = 3 * ( above0 == GOLDEN_FRAME || above1 == GOLDEN_FRAME || left0 == GOLDEN_FRAME || left1 == GOLDEN_FRAME ) ;\n else pred_context = 2 ;\n }\n else if ( above_has_second || left_has_second ) {\n const MV_REFERENCE_FRAME rfs = ! above_has_second ? above0 : left0 ;\n const MV_REFERENCE_FRAME crf1 = above_has_second ? above0 : left0 ;\n const MV_REFERENCE_FRAME crf2 = above_has_second ? above1 : left1 ;\n if ( rfs == GOLDEN_FRAME ) pred_context = 3 + ( crf1 == GOLDEN_FRAME || crf2 == GOLDEN_FRAME ) ;\n else if ( rfs == ALTREF_FRAME ) pred_context = crf1 == GOLDEN_FRAME || crf2 == GOLDEN_FRAME ;\n else pred_context = 1 + 2 * ( crf1 == GOLDEN_FRAME || crf2 == GOLDEN_FRAME ) ;\n }\n else {\n if ( above0 == LAST_FRAME && left0 == LAST_FRAME ) {\n pred_context = 3 ;\n }\n else if ( above0 == LAST_FRAME || left0 == LAST_FRAME ) {\n const MV_REFERENCE_FRAME edge0 = ( above0 == LAST_FRAME ) ? left0 : above0 ;\n pred_context = 4 * ( edge0 == GOLDEN_FRAME ) ;\n }\n else {\n pred_context = 2 * ( above0 == GOLDEN_FRAME ) + * ( left0 == GOLDEN_FRAME ) ;\n }\n }\n }\n }\n else if ( has_above || has_left ) {\n const MB_MODE_INFO * edge_mbmi = has_above ? above_mbmi : left_mbmi ;\n if ( ! is_inter_block ( edge_mbmi ) || ( edge_mbmi -> ref_frame [ 0 ] == LAST_FRAME && ! has_second_ref ( edge_mbmi ) ) ) pred_context = 2 ;\n else if ( ! has_second_ref ( edge_mbmi ) ) pred_context = 4 * ( edge_mbmi -> ref_frame [ 0 ] == GOLDEN_FRAME ) ;\n else pred_context = 3 * ( edge_mbmi -> ref_frame [ 0 ] == GOLDEN_FRAME || edge_mbmi -> ref_frame [ 1 ] == GOLDEN_FRAME ) ;\n }\n else {\n pred_context = 2 ;\n }\n assert ( pred_context >= 0 && pred_context < REF_CONTEXTS ) ;\n return pred_context ;\n }"}
{"idx": 2557, "target": 0, "func": "static gboolean lacks_deep_count ( NautilusFile * file ) {\n return file -> details -> deep_counts_status != NAUTILUS_REQUEST_DONE ;\n }"}
{"idx": 2558, "target": 0, "func": "TSHttpType TSHttpHdrTypeGet ( TSMBuffer bufp , TSMLoc obj ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_http_hdr_handle ( obj ) == TS_SUCCESS ) ;\n HTTPHdr h ;\n SET_HTTP_HDR ( h , bufp , obj ) ;\n return ( TSHttpType ) h . type_get ( ) ;\n }"}
{"idx": 2559, "target": 0, "func": "static int com_nopager ( String * buffer __attribute__ ( ( unused ) ) , char * line __attribute__ ( ( unused ) ) ) {\n strmov ( pager , \"stdout\" ) ;\n opt_nopager = 1 ;\n PAGER = stdout ;\n tee_fprintf ( stdout , \"PAGER set to stdout\\n\" ) ;\n return 0 ;\n }"}
{"idx": 2560, "target": 0, "func": "TSVConn TSTransformCreate ( TSEventFunc event_funcp , TSHttpTxn txnp ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n return TSVConnCreate ( event_funcp , TSContMutexGet ( reinterpret_cast < TSCont > ( txnp ) ) ) ;\n }"}
{"idx": 2561, "target": 0, "func": "static inline void decode_residual_chroma ( AVSContext * h ) {\n if ( h -> cbp & ( 1 << 4 ) ) decode_residual_block ( h , & h -> gb , chroma_dec , 0 , cavs_chroma_qp [ h -> qp ] , h -> cu , h -> c_stride ) ;\n if ( h -> cbp & ( 1 << 5 ) ) decode_residual_block ( h , & h -> gb , chroma_dec , 0 , cavs_chroma_qp [ h -> qp ] , h -> cv , h -> c_stride ) ;\n }"}
{"idx": 2562, "target": 0, "func": "static int present_and_same_family ( const struct sadb_address * src , const struct sadb_address * dst ) {\n const struct sockaddr * s_addr , * d_addr ;\n if ( ! src || ! dst ) return 0 ;\n s_addr = ( const struct sockaddr * ) ( src + 1 ) ;\n d_addr = ( const struct sockaddr * ) ( dst + 1 ) ;\n if ( s_addr -> sa_family != d_addr -> sa_family ) return 0 ;\n if ( s_addr -> sa_family != AF_INET # if IS_ENABLED ( CONFIG_IPV6 ) && s_addr -> sa_family != AF_INET6 # endif ) return 0 ;\n return 1 ;\n }"}
{"idx": 2563, "target": 0, "func": "int qemuMonitorTextStopCPUs ( qemuMonitorPtr mon ) {\n char * info ;\n if ( qemuMonitorHMPCommand ( mon , \"stop\" , & info ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , _ ( \"cannot stop CPU execution\" ) ) ;\n return - 1 ;\n }\n VIR_FREE ( info ) ;\n return 0 ;\n }"}
{"idx": 2564, "target": 0, "func": "CURLcode Curl_http_output_auth ( struct connectdata * conn , const char * request , const char * path , bool proxytunnel ) {\n CURLcode result = CURLE_OK ;\n struct Curl_easy * data = conn -> data ;\n struct auth * authhost ;\n struct auth * authproxy ;\n DEBUGASSERT ( data ) ;\n authhost = & data -> state . authhost ;\n authproxy = & data -> state . authproxy ;\n if ( ( conn -> bits . httpproxy && conn -> bits . proxy_user_passwd ) || conn -> bits . user_passwd ) ;\n else {\n authhost -> done = TRUE ;\n authproxy -> done = TRUE ;\n return CURLE_OK ;\n }\n if ( authhost -> want && ! authhost -> picked ) authhost -> picked = authhost -> want ;\n if ( authproxy -> want && ! authproxy -> picked ) authproxy -> picked = authproxy -> want ;\n # ifndef CURL_DISABLE_PROXY if ( conn -> bits . httpproxy && ( conn -> bits . tunnel_proxy == proxytunnel ) ) {\n result = output_auth_headers ( conn , authproxy , request , path , TRUE ) ;\n if ( result ) return result ;\n }\n else # else ( void ) proxytunnel ;\n # endif authproxy -> done = TRUE ;\n if ( ! data -> state . this_is_a_follow || conn -> bits . netrc || ! data -> state . first_host || data -> set . http_disable_hostname_check_before_authentication || Curl_raw_equal ( data -> state . first_host , conn -> host . name ) ) {\n result = output_auth_headers ( conn , authhost , request , path , FALSE ) ;\n }\n else authhost -> done = TRUE ;\n return result ;\n }"}
{"idx": 2565, "target": 1, "func": "static void read_sbr_extension ( AACContext * ac , SpectralBandReplication * sbr , GetBitContext * gb , int bs_extension_id , int * num_bits_left ) {\n switch ( bs_extension_id ) {\n case EXTENSION_ID_PS : if ( ! ac -> oc [ 1 ] . m4ac . ps ) {\n av_log ( ac -> avctx , AV_LOG_ERROR , \"Parametric Stereo signaled to be not-present but was found in the bitstream.\\n\" ) ;\n skip_bits_long ( gb , * num_bits_left ) ;\n * num_bits_left = 0 ;\n }\n else {\n # if 1 * num_bits_left -= ff_ps_read_data ( ac -> avctx , gb , & sbr -> ps , * num_bits_left ) ;\n ac -> avctx -> profile = FF_PROFILE_AAC_HE_V2 ;\n # else avpriv_report_missing_feature ( ac -> avctx , \"Parametric Stereo\" ) ;\n skip_bits_long ( gb , * num_bits_left ) ;\n * num_bits_left = 0 ;\n # endif }\n break ;\n default : if ( bs_extension_id || * num_bits_left > 16 || show_bits ( gb , * num_bits_left ) ) avpriv_request_sample ( ac -> avctx , \"Reserved SBR extensions\" ) ;\n skip_bits_long ( gb , * num_bits_left ) ;\n * num_bits_left = 0 ;\n break ;\n }\n }"}
{"idx": 2566, "target": 0, "func": "void proto_reg_handoff_zbee_zcl_scenes ( void ) {\n dissector_handle_t scenes_handle ;\n scenes_handle = find_dissector ( ZBEE_PROTOABBREV_ZCL_SCENES ) ;\n dissector_add_uint ( \"zbee.zcl.cluster\" , ZBEE_ZCL_CID_SCENES , scenes_handle ) ;\n zbee_zcl_init_cluster ( proto_zbee_zcl_scenes , ett_zbee_zcl_scenes , ZBEE_ZCL_CID_SCENES , hf_zbee_zcl_scenes_attr_id , hf_zbee_zcl_scenes_srv_rx_cmd_id , hf_zbee_zcl_scenes_srv_tx_cmd_id , ( zbee_zcl_fn_attr_data ) dissect_zcl_scenes_attr_data ) ;\n }"}
{"idx": 2567, "target": 0, "func": "int dtls_construct_hello_verify_request ( SSL * s ) {\n unsigned int len ;\n unsigned char * buf ;\n buf = ( unsigned char * ) s -> init_buf -> data ;\n if ( s -> ctx -> app_gen_cookie_cb == NULL || s -> ctx -> app_gen_cookie_cb ( s , s -> d1 -> cookie , & ( s -> d1 -> cookie_len ) ) == 0 || s -> d1 -> cookie_len > 255 ) {\n SSLerr ( SSL_F_DTLS_CONSTRUCT_HELLO_VERIFY_REQUEST , SSL_R_COOKIE_GEN_CALLBACK_FAILURE ) ;\n ossl_statem_set_error ( s ) ;\n return 0 ;\n }\n len = dtls_raw_hello_verify_request ( & buf [ DTLS1_HM_HEADER_LENGTH ] , s -> d1 -> cookie , s -> d1 -> cookie_len ) ;\n dtls1_set_message_header ( s , DTLS1_MT_HELLO_VERIFY_REQUEST , len , 0 , len ) ;\n len += DTLS1_HM_HEADER_LENGTH ;\n s -> init_num = len ;\n s -> init_off = 0 ;\n return 1 ;\n }"}
{"idx": 2568, "target": 0, "func": "static int dissect_h245_SEQUENCE_OF_DataApplicationCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h245_SEQUENCE_OF_DataApplicationCapability , SEQUENCE_OF_DataApplicationCapability_sequence_of ) ;\n return offset ;\n }"}
{"idx": 2569, "target": 0, "func": "static guint32 dissect_trunkcall_ts ( tvbuff_t * tvb , guint32 offset , proto_tree * iax2_tree , guint16 * scallno ) {\n proto_tree * call_tree ;\n guint16 datalen , rlen , ts ;\n datalen = tvb_get_ntohs ( tvb , offset ) ;\n * scallno = tvb_get_ntohs ( tvb , offset + 2 ) ;\n ts = tvb_get_ntohs ( tvb , offset + 4 ) ;\n rlen = MIN ( tvb_captured_length ( tvb ) - offset - 6 , datalen ) ;\n if ( iax2_tree ) {\n call_tree = proto_tree_add_subtree_format ( iax2_tree , tvb , offset , rlen + 6 , ett_iax2_trunk_call , NULL , \"Trunk call from %u, ts: %u\" , * scallno , ts ) ;\n proto_tree_add_item ( call_tree , hf_iax2_trunk_call_len , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( call_tree , hf_iax2_trunk_call_scallno , tvb , offset + 2 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( call_tree , hf_iax2_trunk_call_ts , tvb , offset + 4 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( call_tree , hf_iax2_trunk_call_data , tvb , offset + 6 , rlen , ENC_NA ) ;\n }\n offset += 6 + rlen ;\n return offset ;\n }"}
{"idx": 2570, "target": 0, "func": "static inline double freq2bark ( double freq ) {\n return 3.5 * atan ( ( freq / 7500.0 ) * ( freq / 7500.0 ) ) + 13.0 * atan ( freq * 0.00076 ) ;\n }"}
{"idx": 2571, "target": 0, "func": "static fz_colorspace * base_indexed ( const fz_colorspace * cs ) {\n struct indexed * idx = cs -> data ;\n return idx -> base ;\n }"}
{"idx": 2572, "target": 0, "func": "static gcry_err_code_t pubkey_encrypt ( int algorithm , gcry_mpi_t * resarr , gcry_mpi_t data , gcry_mpi_t * pkey , int flags ) {\n gcry_pk_spec_t * pubkey ;\n gcry_module_t module ;\n gcry_err_code_t rc ;\n int i ;\n if ( DBG_CIPHER && ! fips_mode ( ) ) {\n log_debug ( \"pubkey_encrypt: algo=%d\\n\" , algorithm ) ;\n for ( i = 0 ;\n i < pubkey_get_npkey ( algorithm ) ;\n i ++ ) log_mpidump ( \" pkey\" , pkey [ i ] ) ;\n log_mpidump ( \" data\" , data ) ;\n }\n ath_mutex_lock ( & pubkeys_registered_lock ) ;\n module = _gcry_module_lookup_id ( pubkeys_registered , algorithm ) ;\n if ( module ) {\n pubkey = ( gcry_pk_spec_t * ) module -> spec ;\n rc = pubkey -> encrypt ( algorithm , resarr , data , pkey , flags ) ;\n _gcry_module_release ( module ) ;\n goto ready ;\n }\n rc = GPG_ERR_PUBKEY_ALGO ;\n ready : ath_mutex_unlock ( & pubkeys_registered_lock ) ;\n if ( ! rc && DBG_CIPHER && ! fips_mode ( ) ) {\n for ( i = 0 ;\n i < pubkey_get_nenc ( algorithm ) ;\n i ++ ) log_mpidump ( \" encr\" , resarr [ i ] ) ;\n }\n return rc ;\n }"}
{"idx": 2573, "target": 0, "func": "static void stroke_counters ( private_stroke_socket_t * this , stroke_msg_t * msg , FILE * out ) {\n pop_string ( msg , & msg -> counters . name ) ;\n if ( msg -> counters . reset ) {\n this -> counter -> reset ( this -> counter , msg -> counters . name ) ;\n }\n else {\n this -> counter -> print ( this -> counter , out , msg -> counters . name ) ;\n }\n }"}
{"idx": 2574, "target": 0, "func": "char * curl_easy_escape ( struct Curl_easy * data , const char * string , int inlength ) {\n size_t alloc ;\n char * ns ;\n char * testing_ptr = NULL ;\n unsigned char in ;\n size_t newlen ;\n size_t strindex = 0 ;\n size_t length ;\n CURLcode result ;\n if ( inlength < 0 ) return NULL ;\n alloc = ( inlength ? ( size_t ) inlength : strlen ( string ) ) + 1 ;\n newlen = alloc ;\n ns = malloc ( alloc ) ;\n if ( ! ns ) return NULL ;\n length = alloc - 1 ;\n while ( length -- ) {\n in = * string ;\n if ( Curl_isunreserved ( in ) ) ns [ strindex ++ ] = in ;\n else {\n newlen += 2 ;\n if ( newlen > alloc ) {\n alloc *= 2 ;\n testing_ptr = realloc ( ns , alloc ) ;\n if ( ! testing_ptr ) {\n free ( ns ) ;\n return NULL ;\n }\n else {\n ns = testing_ptr ;\n }\n }\n result = Curl_convert_to_network ( data , & in , 1 ) ;\n if ( result ) {\n free ( ns ) ;\n return NULL ;\n }\n snprintf ( & ns [ strindex ] , 4 , \"%%%02X\" , in ) ;\n strindex += 3 ;\n }\n string ++ ;\n }\n ns [ strindex ] = 0 ;\n return ns ;\n }"}
{"idx": 2575, "target": 1, "func": "void vp9_set_speed_features ( VP9_COMP * cpi ) {\n SPEED_FEATURES * const sf = & cpi -> sf ;\n VP9_COMMON * const cm = & cpi -> common ;\n const VP9EncoderConfig * const oxcf = & cpi -> oxcf ;\n int i ;\n sf -> frame_parameter_update = 1 ;\n sf -> mv . search_method = NSTEP ;\n sf -> recode_loop = ALLOW_RECODE ;\n sf -> mv . subpel_search_method = SUBPEL_TREE ;\n sf -> mv . subpel_iters_per_step = 2 ;\n sf -> mv . subpel_force_stop = 0 ;\n sf -> optimize_coefficients = ! is_lossless_requested ( & cpi -> oxcf ) ;\n sf -> mv . reduce_first_step_size = 0 ;\n sf -> mv . auto_mv_step_size = 0 ;\n sf -> mv . fullpel_search_step_param = 6 ;\n sf -> comp_inter_joint_search_thresh = BLOCK_4X4 ;\n sf -> adaptive_rd_thresh = 0 ;\n sf -> use_lastframe_partitioning = LAST_FRAME_PARTITION_OFF ;\n sf -> tx_size_search_method = USE_FULL_RD ;\n sf -> use_lp32x32fdct = 0 ;\n sf -> adaptive_motion_search = 0 ;\n sf -> adaptive_pred_interp_filter = 0 ;\n sf -> adaptive_mode_search = 0 ;\n sf -> cb_pred_filter_search = 0 ;\n sf -> cb_partition_search = 0 ;\n sf -> motion_field_mode_search = 0 ;\n sf -> alt_ref_search_fp = 0 ;\n sf -> use_quant_fp = 0 ;\n sf -> reference_masking = 0 ;\n sf -> partition_search_type = SEARCH_PARTITION ;\n sf -> less_rectangular_check = 0 ;\n sf -> use_square_partition_only = 0 ;\n sf -> auto_min_max_partition_size = NOT_IN_USE ;\n sf -> max_partition_size = BLOCK_64X64 ;\n sf -> min_partition_size = BLOCK_4X4 ;\n sf -> adjust_partitioning_from_last_frame = 0 ;\n sf -> last_partitioning_redo_frequency = 4 ;\n sf -> constrain_copy_partition = 0 ;\n sf -> disable_split_mask = 0 ;\n sf -> mode_search_skip_flags = 0 ;\n sf -> force_frame_boost = 0 ;\n sf -> max_delta_qindex = 0 ;\n sf -> disable_filter_search_var_thresh = 0 ;\n sf -> adaptive_interp_filter_search = 0 ;\n for ( i = 0 ;\n i < TX_SIZES ;\n i ++ ) {\n sf -> intra_y_mode_mask [ i ] = INTRA_ALL ;\n sf -> intra_uv_mode_mask [ i ] = INTRA_ALL ;\n }\n sf -> use_rd_breakout = 0 ;\n sf -> skip_encode_sb = 0 ;\n sf -> use_uv_intra_rd_estimate = 0 ;\n sf -> allow_skip_recode = 0 ;\n sf -> lpf_pick = LPF_PICK_FROM_FULL_IMAGE ;\n sf -> use_fast_coef_updates = TWO_LOOP ;\n sf -> use_fast_coef_costing = 0 ;\n sf -> mode_skip_start = MAX_MODES ;\n sf -> use_nonrd_pick_mode = 0 ;\n for ( i = 0 ;\n i < BLOCK_SIZES ;\n ++ i ) sf -> inter_mode_mask [ i ] = INTER_ALL ;\n sf -> max_intra_bsize = BLOCK_64X64 ;\n sf -> reuse_inter_pred_sby = 0 ;\n sf -> always_this_block_size = BLOCK_16X16 ;\n sf -> search_type_check_frequency = 50 ;\n sf -> encode_breakout_thresh = 0 ;\n sf -> elevate_newmv_thresh = 0 ;\n sf -> recode_tolerance = 25 ;\n sf -> default_interp_filter = SWITCHABLE ;\n sf -> tx_size_search_breakout = 0 ;\n sf -> partition_search_breakout_dist_thr = 0 ;\n sf -> partition_search_breakout_rate_thr = 0 ;\n if ( oxcf -> mode == REALTIME ) set_rt_speed_feature ( cpi , sf , oxcf -> speed , oxcf -> content ) ;\n else if ( oxcf -> mode == GOOD ) set_good_speed_feature ( cpi , cm , sf , oxcf -> speed ) ;\n cpi -> full_search_sad = vp9_full_search_sad ;\n cpi -> diamond_search_sad = oxcf -> mode == BEST ? vp9_full_range_search : vp9_diamond_search_sad ;\n cpi -> refining_search_sad = vp9_refining_search_sad ;\n if ( oxcf -> pass == 1 ) sf -> optimize_coefficients = 0 ;\n if ( oxcf -> pass == 0 ) {\n sf -> recode_loop = DISALLOW_RECODE ;\n sf -> optimize_coefficients = 0 ;\n }\n if ( sf -> mv . subpel_search_method == SUBPEL_TREE ) {\n cpi -> find_fractional_mv_step = vp9_find_best_sub_pixel_tree ;\n }\n else if ( sf -> mv . subpel_search_method == SUBPEL_TREE_PRUNED ) {\n cpi -> find_fractional_mv_step = vp9_find_best_sub_pixel_tree_pruned ;\n }\n cpi -> mb . optimize = sf -> optimize_coefficients == 1 && oxcf -> pass != 1 ;\n if ( sf -> disable_split_mask == DISABLE_ALL_SPLIT ) sf -> adaptive_pred_interp_filter = 0 ;\n if ( ! cpi -> oxcf . frame_periodic_boost ) {\n sf -> max_delta_qindex = 0 ;\n }\n if ( cpi -> encode_breakout && oxcf -> mode == REALTIME && sf -> encode_breakout_thresh > cpi -> encode_breakout ) cpi -> encode_breakout = sf -> encode_breakout_thresh ;\n }"}
{"idx": 2576, "target": 0, "func": "static void compute_xor_offsets ( void ) {\n static const int MAX_XOR_OFFSET_SEARCH = 10 ;\n int i , next = 0 ;\n while ( next < writer . selected_nr ) {\n struct bitmapped_commit * stored = & writer . selected [ next ] ;\n int best_offset = 0 ;\n struct ewah_bitmap * best_bitmap = stored -> bitmap ;\n struct ewah_bitmap * test_xor ;\n for ( i = 1 ;\n i <= MAX_XOR_OFFSET_SEARCH ;\n ++ i ) {\n int curr = next - i ;\n if ( curr < 0 ) break ;\n test_xor = ewah_pool_new ( ) ;\n ewah_xor ( writer . selected [ curr ] . bitmap , stored -> bitmap , test_xor ) ;\n if ( test_xor -> buffer_size < best_bitmap -> buffer_size ) {\n if ( best_bitmap != stored -> bitmap ) ewah_pool_free ( best_bitmap ) ;\n best_bitmap = test_xor ;\n best_offset = i ;\n }\n else {\n ewah_pool_free ( test_xor ) ;\n }\n }\n stored -> xor_offset = best_offset ;\n stored -> write_as = best_bitmap ;\n next ++ ;\n }\n }"}
{"idx": 2577, "target": 0, "func": "static int decrypt_key_data ( krb5_context context , int n_key_data , krb5_key_data * key_data , krb5_keyblock * * keyblocks , int * n_keys ) {\n krb5_keyblock * keys ;\n int ret , i ;\n keys = ( krb5_keyblock * ) malloc ( n_key_data * sizeof ( krb5_keyblock ) ) ;\n if ( keys == NULL ) return ENOMEM ;\n memset ( keys , 0 , n_key_data * sizeof ( krb5_keyblock ) ) ;\n for ( i = 0 ;\n i < n_key_data ;\n i ++ ) {\n ret = krb5_dbe_decrypt_key_data ( context , NULL , & key_data [ i ] , & keys [ i ] , NULL ) ;\n if ( ret ) {\n for ( ;\n i >= 0 ;\n i -- ) {\n if ( keys [ i ] . contents ) {\n memset ( keys [ i ] . contents , 0 , keys [ i ] . length ) ;\n free ( keys [ i ] . contents ) ;\n }\n }\n memset ( keys , 0 , n_key_data * sizeof ( krb5_keyblock ) ) ;\n free ( keys ) ;\n return ret ;\n }\n }\n * keyblocks = keys ;\n if ( n_keys ) * n_keys = n_key_data ;\n return 0 ;\n }"}
{"idx": 2578, "target": 0, "func": "static void PPC_prep_io_writel ( void * opaque , hwaddr addr , uint32_t value ) {\n sysctrl_t * sysctrl = opaque ;\n addr = prep_IO_address ( sysctrl , addr ) ;\n PPC_IO_DPRINTF ( \"0x\" TARGET_FMT_plx \" => 0x%08\" PRIx32 \"\\n\" , addr , value ) ;\n cpu_outl ( addr , value ) ;\n }"}
{"idx": 2579, "target": 0, "func": "chunk_t x509_parse_authorityKeyIdentifier ( chunk_t blob , int level0 , chunk_t * authKeySerialNumber ) {\n asn1_parser_t * parser ;\n chunk_t object ;\n int objectID ;\n chunk_t authKeyIdentifier = chunk_empty ;\n * authKeySerialNumber = chunk_empty ;\n parser = asn1_parser_create ( authKeyIdentifierObjects , blob ) ;\n parser -> set_top_level ( parser , level0 ) ;\n while ( parser -> iterate ( parser , & objectID , & object ) ) {\n switch ( objectID ) {\n case AUTH_KEY_ID_KEY_ID : authKeyIdentifier = chunk_clone ( object ) ;\n break ;\n case AUTH_KEY_ID_CERT_ISSUER : break ;\n case AUTH_KEY_ID_CERT_SERIAL : * authKeySerialNumber = object ;\n break ;\n default : break ;\n }\n }\n parser -> destroy ( parser ) ;\n return authKeyIdentifier ;\n }"}
{"idx": 2580, "target": 0, "func": "static int dissect_h245_T_h223_al_type_al1M ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 339 \"../../asn1/h245/h245.cnf\" if ( h223_lc_params_temp ) h223_lc_params_temp -> al_type = al1M ;\n offset = dissect_h245_H223AL1MParameters ( tvb , offset , actx , tree , hf_index ) ;\n return offset ;\n }"}
{"idx": 2581, "target": 0, "func": "static void HandleType3Reference ( IO * wrapper , EntityChar * ec , real transform [ 6 ] , char * tokbuf , int toksize ) {\n int tok ;\n real dval ;\n char * glyphname ;\n RefChar * ref ;\n tok = nextpstoken ( wrapper , & dval , tokbuf , toksize ) ;\n if ( strcmp ( tokbuf , \"get\" ) != 0 ) return ;\n tok = nextpstoken ( wrapper , & dval , tokbuf , toksize ) ;\n if ( tok != pt_namelit ) return ;\n glyphname = copy ( tokbuf ) ;\n tok = nextpstoken ( wrapper , & dval , tokbuf , toksize ) ;\n if ( strcmp ( tokbuf , \"get\" ) != 0 ) {\n free ( glyphname ) ;\n return ;\n }\n tok = nextpstoken ( wrapper , & dval , tokbuf , toksize ) ;\n if ( strcmp ( tokbuf , \"exec\" ) != 0 ) {\n free ( glyphname ) ;\n return ;\n }\n ref = RefCharCreate ( ) ;\n memcpy ( ref -> transform , transform , sizeof ( ref -> transform ) ) ;\n ref -> sc = ( SplineChar * ) glyphname ;\n ref -> next = ec -> refs ;\n ec -> refs = ref ;\n }"}
{"idx": 2582, "target": 0, "func": "static void i_defer_frees ( gs_memory_t * mem , int defer ) {\n }"}
{"idx": 2583, "target": 0, "func": "int test_compare_files ( const char * tgt , const char * rec ) {\n FILE * orig , * recons ;\n static uint8_t obuf [ TESTBUFSIZE ] , rbuf [ TESTBUFSIZE ] ;\n xoff_t offset = 0 ;\n size_t i ;\n size_t oc , rc ;\n xoff_t diffs = 0 ;\n if ( ( orig = fopen ( tgt , \"r\" ) ) == NULL ) {\n XPR ( NT \"open %s failed\\n\" , tgt ) ;\n return get_errno ( ) ;\n }\n if ( ( recons = fopen ( rec , \"r\" ) ) == NULL ) {\n XPR ( NT \"open %s failed\\n\" , rec ) ;\n return get_errno ( ) ;\n }\n for ( ;\n ;\n ) {\n oc = fread ( obuf , 1 , TESTBUFSIZE , orig ) ;\n rc = fread ( rbuf , 1 , TESTBUFSIZE , recons ) ;\n if ( oc != rc ) {\n return XD3_INTERNAL ;\n }\n if ( oc == 0 ) {\n break ;\n }\n for ( i = 0 ;\n i < oc ;\n i += 1 ) {\n if ( obuf [ i ] != rbuf [ i ] ) {\n XPR ( NT \"byte %u (read %u @ %\" Q \"u) %d != %d\\n\" , ( int ) i , ( int ) oc , offset , obuf [ i ] , rbuf [ i ] ) ;\n diffs ++ ;\n return XD3_INTERNAL ;\n }\n }\n offset += oc ;\n }\n fclose ( orig ) ;\n fclose ( recons ) ;\n if ( diffs != 0 ) {\n return XD3_INTERNAL ;\n }\n return 0 ;\n }"}
{"idx": 2584, "target": 0, "func": "static void name_from_addr ( struct sockaddr * sa , socklen_t salen , char * * phost , char * * pport ) {\n char ntop [ NI_MAXHOST ] ;\n char strport [ NI_MAXSERV ] ;\n int ni_result ;\n # ifdef HAVE_GETNAMEINFO ni_result = getnameinfo ( sa , salen , ntop , sizeof ( ntop ) , strport , sizeof ( strport ) , NI_NUMERICHOST | NI_NUMERICSERV ) ;\n if ( ni_result != 0 ) {\n if ( ni_result == EAI_SYSTEM ) event_err ( 1 , \"getnameinfo failed\" ) ;\n else event_errx ( 1 , \"getnameinfo failed: %s\" , gai_strerror ( ni_result ) ) ;\n return ;\n }\n # else ni_result = fake_getnameinfo ( sa , salen , ntop , sizeof ( ntop ) , strport , sizeof ( strport ) , NI_NUMERICHOST | NI_NUMERICSERV ) ;\n if ( ni_result != 0 ) return ;\n # endif * phost = strdup ( ntop ) ;\n * pport = strdup ( strport ) ;\n }"}
{"idx": 2585, "target": 0, "func": "static void test_bug10214 ( ) {\n int len ;\n char out [ 8 ] ;\n myheader ( \"test_bug10214\" ) ;\n DIE_UNLESS ( ! ( mysql -> server_status & SERVER_STATUS_NO_BACKSLASH_ESCAPES ) ) ;\n len = mysql_real_escape_string ( mysql , out , \"a'b\\\\c\" , 5 ) ;\n DIE_UNLESS ( memcmp ( out , \"a\\\\'b\\\\\\\\c\" , len ) == 0 ) ;\n mysql_query ( mysql , \"set sql_mode='NO_BACKSLASH_ESCAPES'\" ) ;\n DIE_UNLESS ( mysql -> server_status & SERVER_STATUS_NO_BACKSLASH_ESCAPES ) ;\n len = mysql_real_escape_string ( mysql , out , \"a'b\\\\c\" , 5 ) ;\n DIE_UNLESS ( memcmp ( out , \"a''b\\\\c\" , len ) == 0 ) ;\n mysql_query ( mysql , \"set sql_mode=''\" ) ;\n }"}
{"idx": 2586, "target": 0, "func": "void do_device_add ( Monitor * mon , const QDict * qdict ) {\n QemuOpts * opts ;\n opts = qemu_opts_parse ( & qemu_device_opts , qdict_get_str ( qdict , \"config\" ) , \"driver\" ) ;\n if ( opts ) qdev_device_add ( opts ) ;\n }"}
{"idx": 2587, "target": 0, "func": "REGRESSION_TEST ( SDK_API_TSIOBufferReaderConsume ) ( RegressionTest * test , int , int * pstatus ) {\n bool test_passed = false ;\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n TSIOBuffer bufp = TSIOBufferSizedCreate ( TS_IOBUFFER_SIZE_INDEX_4K ) ;\n TSIOBufferReader readerp = TSIOBufferReaderAlloc ( bufp ) ;\n TSIOBufferProduce ( bufp , 10 ) ;\n TSIOBufferReaderConsume ( readerp , 10 ) ;\n int64_t reader_avail = TSIOBufferReaderAvail ( readerp ) ;\n if ( reader_avail == 0 ) {\n SDK_RPRINT ( test , \"TSIOBufferReaderConsume\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSIOBufferReaderConsume\" , \"TestCase1\" , TC_FAIL , \"failed\" ) ;\n }\n * pstatus = ( ( test_passed == true ) ? REGRESSION_TEST_PASSED : REGRESSION_TEST_FAILED ) ;\n return ;\n }"}
{"idx": 2588, "target": 0, "func": "static void test_bug58036 ( ) {\n MYSQL * conn ;\n DBUG_ENTER ( \"test_bug47485\" ) ;\n myheader ( \"test_bug58036\" ) ;\n conn = mysql_client_init ( NULL ) ;\n mysql_options ( conn , MYSQL_SET_CHARSET_NAME , \"ucs2\" ) ;\n if ( mysql_real_connect ( conn , opt_host , opt_user , opt_password , opt_db ? opt_db : \"test\" , opt_port , opt_unix_socket , 0 ) ) {\n if ( ! opt_silent ) printf ( \"mysql_real_connect() succeeded (failure expected)\\n\" ) ;\n mysql_close ( conn ) ;\n DIE ( \"\" ) ;\n }\n if ( ! opt_silent ) printf ( \"Got mysql_real_connect() error (expected): %s (%d)\\n\" , mysql_error ( conn ) , mysql_errno ( conn ) ) ;\n DIE_UNLESS ( mysql_errno ( conn ) == ER_WRONG_VALUE_FOR_VAR ) ;\n mysql_close ( conn ) ;\n conn = mysql_client_init ( NULL ) ;\n mysql_options ( conn , MYSQL_SET_CHARSET_NAME , \"latin1\" ) ;\n if ( ! mysql_real_connect ( conn , opt_host , opt_user , opt_password , opt_db ? opt_db : \"test\" , opt_port , opt_unix_socket , 0 ) ) {\n if ( ! opt_silent ) printf ( \"mysql_real_connect() failed: %s (%d)\\n\" , mysql_error ( conn ) , mysql_errno ( conn ) ) ;\n mysql_close ( conn ) ;\n DIE ( \"\" ) ;\n }\n mysql_options ( conn , MYSQL_SET_CHARSET_NAME , \"ucs2\" ) ;\n if ( ! mysql_change_user ( conn , opt_user , opt_password , NULL ) ) {\n if ( ! opt_silent ) printf ( \"mysql_change_user() succedded, error expected!\" ) ;\n mysql_close ( conn ) ;\n DIE ( \"\" ) ;\n }\n if ( ! opt_silent ) printf ( \"Got mysql_change_user() error (expected): %s (%d)\\n\" , mysql_error ( conn ) , mysql_errno ( conn ) ) ;\n mysql_close ( conn ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 2589, "target": 0, "func": "static void mips_malta_register_types ( void ) {\n type_register_static ( & mips_malta_device ) ;\n }"}
{"idx": 2590, "target": 0, "func": "static int jbig2_decode_generic_region_TPGDON ( Jbig2Ctx * ctx , Jbig2Segment * segment , const Jbig2GenericRegionParams * params , Jbig2ArithState * as , Jbig2Image * image , Jbig2ArithCx * GB_stats ) {\n switch ( params -> GBTEMPLATE ) {\n case 0 : return jbig2_decode_generic_template0_TPGDON ( ctx , segment , params , as , image , GB_stats ) ;\n case 1 : return jbig2_decode_generic_template1_TPGDON ( ctx , segment , params , as , image , GB_stats ) ;\n case 2 : return jbig2_decode_generic_template2_TPGDON ( ctx , segment , params , as , image , GB_stats ) ;\n case 3 : return jbig2_decode_generic_template3_TPGDON ( ctx , segment , params , as , image , GB_stats ) ;\n }\n return - 1 ;\n }"}
{"idx": 2591, "target": 0, "func": "int evdns_resolve_reverse ( const struct in_addr * in , int flags , evdns_callback_type callback , void * ptr ) {\n char buf [ 32 ] ;\n struct request * req ;\n u32 a ;\n assert ( in ) ;\n a = ntohl ( in -> s_addr ) ;\n evutil_snprintf ( buf , sizeof ( buf ) , \"%d.%d.%d.%d.in-addr.arpa\" , ( int ) ( u8 ) ( ( a ) & 0xff ) , ( int ) ( u8 ) ( ( a >> 8 ) & 0xff ) , ( int ) ( u8 ) ( ( a >> 16 ) & 0xff ) , ( int ) ( u8 ) ( ( a >> 24 ) & 0xff ) ) ;\n log ( EVDNS_LOG_DEBUG , \"Resolve requested for %s (reverse)\" , buf ) ;\n req = request_new ( TYPE_PTR , buf , flags , callback , ptr ) ;\n if ( ! req ) return 1 ;\n request_submit ( req ) ;\n return 0 ;\n }"}
{"idx": 2592, "target": 0, "func": "int kvm_device_msi_assign ( KVMState * s , uint32_t dev_id , int virq ) {\n return kvm_assign_irq_internal ( s , dev_id , KVM_DEV_IRQ_HOST_MSI | KVM_DEV_IRQ_GUEST_MSI , virq ) ;\n }"}
{"idx": 2593, "target": 0, "func": "static void xhci_stall_ep ( XHCITransfer * xfer ) {\n XHCIEPContext * epctx = xfer -> epctx ;\n XHCIState * xhci = epctx -> xhci ;\n uint32_t err ;\n XHCIStreamContext * sctx ;\n if ( epctx -> nr_pstreams ) {\n sctx = xhci_find_stream ( epctx , xfer -> streamid , & err ) ;\n if ( sctx == NULL ) {\n return ;\n }\n sctx -> ring . dequeue = xfer -> trbs [ 0 ] . addr ;\n sctx -> ring . ccs = xfer -> trbs [ 0 ] . ccs ;\n xhci_set_ep_state ( xhci , epctx , sctx , EP_HALTED ) ;\n }\n else {\n epctx -> ring . dequeue = xfer -> trbs [ 0 ] . addr ;\n epctx -> ring . ccs = xfer -> trbs [ 0 ] . ccs ;\n xhci_set_ep_state ( xhci , epctx , NULL , EP_HALTED ) ;\n }\n }"}
{"idx": 2594, "target": 0, "func": "void xmlrpc_send ( int argc , ... ) {\n va_list va ;\n int idx = 0 ;\n int len ;\n char buf [ 1024 ] ;\n const char * ss ;\n mowgli_string_t * s = mowgli_string_create ( ) ;\n char * s2 ;\n char * header ;\n if ( xmlrpc . encode ) {\n snprintf ( buf , sizeof buf , \"<?xml version=\\\"1.0\\\" encoding=\\\"%s\\\" ?>\\r\\n<methodResponse>\\r\\n<params>\\r\\n\" , xmlrpc . encode ) ;\n }\n else {\n snprintf ( buf , sizeof buf , \"<?xml version=\\\"1.0\\\"?>\\r\\n<methodResponse>\\r\\n<params>\\r\\n\" ) ;\n }\n s -> append ( s , buf , strlen ( buf ) ) ;\n va_start ( va , argc ) ;\n for ( idx = 0 ;\n idx < argc ;\n idx ++ ) {\n ss = \" <param>\\r\\n <value>\\r\\n \" ;\n s -> append ( s , ss , strlen ( ss ) ) ;\n ss = va_arg ( va , const char * ) ;\n s -> append ( s , ss , strlen ( ss ) ) ;\n ss = \"\\r\\n </value>\\r\\n </param>\\r\\n\" ;\n s -> append ( s , ss , strlen ( ss ) ) ;\n }\n va_end ( va ) ;\n ss = \"</params>\\r\\n</methodResponse>\" ;\n s -> append ( s , ss , strlen ( ss ) ) ;\n len = s -> pos ;\n if ( xmlrpc . httpheader ) {\n header = xmlrpc_write_header ( len ) ;\n s2 = smalloc ( strlen ( header ) + len + 1 ) ;\n strcpy ( s2 , header ) ;\n memcpy ( s2 + strlen ( header ) , s -> str , len ) ;\n xmlrpc . setbuffer ( s2 , len + strlen ( header ) ) ;\n free ( header ) ;\n free ( s2 ) ;\n xmlrpc . httpheader = 1 ;\n }\n else {\n xmlrpc . setbuffer ( s -> str , len ) ;\n }\n if ( xmlrpc . encode ) {\n free ( xmlrpc . encode ) ;\n xmlrpc . encode = NULL ;\n }\n s -> destroy ( s ) ;\n }"}
{"idx": 2595, "target": 0, "func": "int do_modify_var ( struct st_command * command , enum enum_operator op ) {\n const char * p = command -> first_argument ;\n VAR * v ;\n if ( ! * p ) die ( \"Missing argument to %.*s\" , command -> first_word_len , command -> query ) ;\n if ( * p != '$' ) die ( \"The argument to %.*s must be a variable (start with $)\" , command -> first_word_len , command -> query ) ;\n v = var_get ( p , & p , 1 , 0 ) ;\n if ( ! v -> is_int ) die ( \"Cannot perform inc/dec on a non-numeric value\" ) ;\n switch ( op ) {\n case DO_DEC : v -> int_val -- ;\n break ;\n case DO_INC : v -> int_val ++ ;\n break ;\n default : die ( \"Invalid operator to do_modify_var\" ) ;\n break ;\n }\n v -> int_dirty = true ;\n command -> last_argument = ( char * ) ++ p ;\n return 0 ;\n }"}
{"idx": 2596, "target": 0, "func": "static void set_trap ( struct recvbuf * rbufp , int restrict_mask ) {\n int traptype ;\n if ( restrict_mask & RES_NOTRAP ) {\n ctl_error ( CERR_PERMISSION ) ;\n return ;\n }\n traptype = TRAP_TYPE_PRIO ;\n if ( restrict_mask & RES_LPTRAP ) traptype = TRAP_TYPE_NONPRIO ;\n if ( ! ctlsettrap ( & rbufp -> recv_srcadr , rbufp -> dstadr , traptype , ( int ) res_version ) ) ctl_error ( CERR_NORESOURCE ) ;\n ctl_flushpkt ( 0 ) ;\n }"}
{"idx": 2597, "target": 0, "func": "kadm5_ret_t kadm5_modify_principal ( void * server_handle , kadm5_principal_ent_t entry , long mask ) {\n int ret , ret2 , i ;\n kadm5_policy_ent_rec pol ;\n krb5_boolean have_pol = FALSE ;\n krb5_db_entry * kdb ;\n krb5_tl_data * tl_data_orig ;\n osa_princ_ent_rec adb ;\n kadm5_server_handle_t handle = server_handle ;\n CHECK_HANDLE ( server_handle ) ;\n krb5_clear_error_message ( handle -> context ) ;\n if ( entry == NULL ) return EINVAL ;\n if ( ( mask & KADM5_PRINCIPAL ) || ( mask & KADM5_LAST_PWD_CHANGE ) || ( mask & KADM5_MOD_TIME ) || ( mask & KADM5_MOD_NAME ) || ( mask & KADM5_MKVNO ) || ( mask & KADM5_AUX_ATTRIBUTES ) || ( mask & KADM5_KEY_DATA ) || ( mask & KADM5_LAST_SUCCESS ) || ( mask & KADM5_LAST_FAILED ) ) return KADM5_BAD_MASK ;\n if ( ( mask & ~ ALL_PRINC_MASK ) ) return KADM5_BAD_MASK ;\n if ( ( mask & KADM5_POLICY ) && entry -> policy == NULL ) return KADM5_BAD_MASK ;\n if ( ( mask & KADM5_POLICY ) && ( mask & KADM5_POLICY_CLR ) ) return KADM5_BAD_MASK ;\n if ( mask & KADM5_TL_DATA ) {\n tl_data_orig = entry -> tl_data ;\n while ( tl_data_orig ) {\n if ( tl_data_orig -> tl_data_type < 256 ) return KADM5_BAD_TL_TYPE ;\n tl_data_orig = tl_data_orig -> tl_data_next ;\n }\n }\n ret = kdb_get_entry ( handle , entry -> principal , & kdb , & adb ) ;\n if ( ret ) return ( ret ) ;\n if ( ( mask & KADM5_POLICY ) ) {\n ret = get_policy ( handle , entry -> policy , & pol , & have_pol ) ;\n if ( ret ) goto done ;\n adb . aux_attributes |= KADM5_POLICY ;\n if ( adb . policy ) free ( adb . policy ) ;\n adb . policy = strdup ( entry -> policy ) ;\n }\n if ( have_pol ) {\n if ( pol . pw_max_life ) {\n ret = krb5_dbe_lookup_last_pwd_change ( handle -> context , kdb , & ( kdb -> pw_expiration ) ) ;\n if ( ret ) goto done ;\n kdb -> pw_expiration += pol . pw_max_life ;\n }\n else {\n kdb -> pw_expiration = 0 ;\n }\n }\n if ( ( mask & KADM5_POLICY_CLR ) && ( adb . aux_attributes & KADM5_POLICY ) ) {\n free ( adb . policy ) ;\n adb . policy = NULL ;\n adb . aux_attributes &= ~ KADM5_POLICY ;\n kdb -> pw_expiration = 0 ;\n }\n if ( ( mask & KADM5_ATTRIBUTES ) ) kdb -> attributes = entry -> attributes ;\n if ( ( mask & KADM5_MAX_LIFE ) ) kdb -> max_life = entry -> max_life ;\n if ( ( mask & KADM5_PRINC_EXPIRE_TIME ) ) kdb -> expiration = entry -> princ_expire_time ;\n if ( mask & KADM5_PW_EXPIRATION ) kdb -> pw_expiration = entry -> pw_expiration ;\n if ( mask & KADM5_MAX_RLIFE ) kdb -> max_renewable_life = entry -> max_renewable_life ;\n if ( ( mask & KADM5_KVNO ) ) {\n for ( i = 0 ;\n i < kdb -> n_key_data ;\n i ++ ) kdb -> key_data [ i ] . key_data_kvno = entry -> kvno ;\n }\n if ( mask & KADM5_TL_DATA ) {\n krb5_tl_data * tl ;\n for ( tl = entry -> tl_data ;\n tl ;\n tl = tl -> tl_data_next ) {\n ret = krb5_dbe_update_tl_data ( handle -> context , kdb , tl ) ;\n if ( ret ) {\n goto done ;\n }\n }\n }\n if ( mask & KADM5_FAIL_AUTH_COUNT ) {\n if ( entry -> fail_auth_count != 0 ) {\n ret = KADM5_BAD_SERVER_PARAMS ;\n goto done ;\n }\n kdb -> fail_auth_count = 0 ;\n }\n kdb -> mask = mask ;\n ret = k5_kadm5_hook_modify ( handle -> context , handle -> hook_handles , KADM5_HOOK_STAGE_PRECOMMIT , entry , mask ) ;\n if ( ret ) goto done ;\n ret = kdb_put_entry ( handle , kdb , & adb ) ;\n if ( ret ) goto done ;\n ( void ) k5_kadm5_hook_modify ( handle -> context , handle -> hook_handles , KADM5_HOOK_STAGE_POSTCOMMIT , entry , mask ) ;\n ret = KADM5_OK ;\n done : if ( have_pol ) {\n ret2 = kadm5_free_policy_ent ( handle -> lhandle , & pol ) ;\n ret = ret ? ret : ret2 ;\n }\n kdb_free_entry ( handle , kdb , & adb ) ;\n return ret ;\n }"}
{"idx": 2598, "target": 0, "func": "void proto_tree_prime_hfid ( proto_tree * tree _U_ , const gint hfid ) {\n header_field_info * hfinfo ;\n PROTO_REGISTRAR_GET_NTH ( hfid , hfinfo ) ;\n hfinfo -> ref_type = HF_REF_TYPE_DIRECT ;\n if ( hfinfo -> parent != - 1 ) {\n header_field_info * parent_hfinfo ;\n PROTO_REGISTRAR_GET_NTH ( hfinfo -> parent , parent_hfinfo ) ;\n if ( parent_hfinfo -> ref_type != HF_REF_TYPE_DIRECT ) parent_hfinfo -> ref_type = HF_REF_TYPE_INDIRECT ;\n }\n }"}
{"idx": 2599, "target": 0, "func": "static void test_bug11901 ( ) {\n int rc ;\n const char * stmt_text ;\n myheader ( \"test_bug11901\" ) ;\n stmt_text = \"drop table if exists t1, t2\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt_text = \"create table t1 (\" \" empno int(11) not null, firstname varchar(20) not null,\" \" midinit varchar(20) not null, lastname varchar(20) not null,\" \" workdept varchar(6) not null, salary double not null,\" \" bonus float not null, primary key (empno), \" \" unique key (workdept, empno) \" \") default charset=latin1 collate=latin1_bin\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt_text = \"insert into t1 values \" \"(10, 'CHRISTINE', 'I', 'HAAS', 'A00', 52750, 1000),\" \"(20, 'MICHAEL', 'L', 'THOMPSON', 'B01', 41250, 800), \" \"(30, 'SALLY', 'A', 'KWAN', 'C01', 38250, 800), \" \"(50, 'JOHN', 'B', 'GEYER', 'E01', 40175, 800), \" \"(60, 'IRVING', 'F', 'STERN', 'D11', 32250, 500), \" \"(70, 'EVA', 'D', 'PULASKI', 'D21', 36170, 700), \" \"(90, 'EILEEN', 'W', 'HENDERSON', 'E11', 29750, 600), \" \"(100, 'THEODORE', 'Q', 'SPENSER', 'E21', 26150, 500), \" \"(110, 'VINCENZO', 'G', 'LUCCHESSI', 'A00', 46500, 900), \" \"(120, 'SEAN', '', 'O\\\\'CONNELL', 'A00', 29250, 600), \" \"(130, 'DOLORES', 'M', 'QUINTANA', 'C01', 23800, 500), \" \"(140, 'HEATHER', 'A', 'NICHOLLS', 'C01', 28420, 600), \" \"(150, 'BRUCE', '', 'ADAMSON', 'D11', 25280, 500), \" \"(160, 'ELIZABETH', 'R', 'PIANKA', 'D11', 22250, 400), \" \"(170, 'MASATOSHI', 'J', 'YOSHIMURA', 'D11', 24680, 500), \" \"(180, 'MARILYN', 'S', 'SCOUTTEN', 'D11', 21340, 500), \" \"(190, 'JAMES', 'H', 'WALKER', 'D11', 20450, 400), \" \"(200, 'DAVID', '', 'BROWN', 'D11', 27740, 600), \" \"(210, 'WILLIAM', 'T', 'JONES', 'D11', 18270, 400), \" \"(220, 'JENNIFER', 'K', 'LUTZ', 'D11', 29840, 600), \" \"(230, 'JAMES', 'J', 'JEFFERSON', 'D21', 22180, 400), \" \"(240, 'SALVATORE', 'M', 'MARINO', 'D21', 28760, 600), \" \"(250, 'DANIEL', 'S', 'SMITH', 'D21', 19180, 400), \" \"(260, 'SYBIL', 'P', 'JOHNSON', 'D21', 17250, 300), \" \"(270, 'MARIA', 'L', 'PEREZ', 'D21', 27380, 500), \" \"(280, 'ETHEL', 'R', 'SCHNEIDER', 'E11', 26250, 500), \" \"(290, 'JOHN', 'R', 'PARKER', 'E11', 15340, 300), \" \"(300, 'PHILIP', 'X', 'SMITH', 'E11', 17750, 400), \" \"(310, 'MAUDE', 'F', 'SETRIGHT', 'E11', 15900, 300), \" \"(320, 'RAMLAL', 'V', 'MEHTA', 'E21', 19950, 400), \" \"(330, 'WING', '', 'LEE', 'E21', 25370, 500), \" \"(340, 'JASON', 'R', 'GOUNOT', 'E21', 23840, 500)\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt_text = \"create table t2 (\" \" deptno varchar(6) not null, deptname varchar(20) not null,\" \" mgrno int(11) not null, location varchar(20) not null,\" \" admrdept varchar(6) not null, refcntd int(11) not null,\" \" refcntu int(11) not null, primary key (deptno)\" \") default charset=latin1 collate=latin1_bin\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt_text = \"insert into t2 values \" \"('A00', 'SPIFFY COMPUTER SERV', 10, '', 'A00', 0, 0), \" \"('B01', 'PLANNING', 20, '', 'A00', 0, 0), \" \"('C01', 'INFORMATION CENTER', 30, '', 'A00', 0, 0), \" \"('D01', 'DEVELOPMENT CENTER', 0, '', 'A00', 0, 0),\" \"('D11', 'MANUFACTURING SYSTEM', 60, '', 'D01', 0, 0), \" \"('D21', 'ADMINISTRATION SYSTE', 70, '', 'D01', 0, 0), \" \"('E01', 'SUPPORT SERVICES', 50, '', 'A00', 0, 0), \" \"('E11', 'OPERATIONS', 90, '', 'E01', 0, 0), \" \"('E21', 'SOFTWARE SUPPORT', 100,'', 'E01', 0, 0)\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n }"}
{"idx": 2600, "target": 1, "func": "static int diffie_hellman_sha256 ( LIBSSH2_SESSION * session , _libssh2_bn * g , _libssh2_bn * p , int group_order , unsigned char packet_type_init , unsigned char packet_type_reply , unsigned char * midhash , unsigned long midhash_len , kmdhgGPshakex_state_t * exchange_state ) {\n int ret = 0 ;\n int rc ;\n libssh2_sha256_ctx exchange_hash_ctx ;\n if ( exchange_state -> state == libssh2_NB_state_idle ) {\n exchange_state -> e_packet = NULL ;\n exchange_state -> s_packet = NULL ;\n exchange_state -> k_value = NULL ;\n exchange_state -> ctx = _libssh2_bn_ctx_new ( ) ;\n exchange_state -> x = _libssh2_bn_init ( ) ;\n exchange_state -> e = _libssh2_bn_init ( ) ;\n exchange_state -> f = _libssh2_bn_init_from_bin ( ) ;\n exchange_state -> k = _libssh2_bn_init ( ) ;\n memset ( & exchange_state -> req_state , 0 , sizeof ( packet_require_state_t ) ) ;\n _libssh2_bn_rand ( exchange_state -> x , group_order , 0 , - 1 ) ;\n _libssh2_bn_mod_exp ( exchange_state -> e , g , exchange_state -> x , p , exchange_state -> ctx ) ;\n exchange_state -> e_packet_len = _libssh2_bn_bytes ( exchange_state -> e ) + 6 ;\n if ( _libssh2_bn_bits ( exchange_state -> e ) % 8 ) {\n exchange_state -> e_packet_len -- ;\n }\n exchange_state -> e_packet = LIBSSH2_ALLOC ( session , exchange_state -> e_packet_len ) ;\n if ( ! exchange_state -> e_packet ) {\n ret = _libssh2_error ( session , LIBSSH2_ERROR_ALLOC , \"Out of memory error\" ) ;\n goto clean_exit ;\n }\n exchange_state -> e_packet [ 0 ] = packet_type_init ;\n _libssh2_htonu32 ( exchange_state -> e_packet + 1 , exchange_state -> e_packet_len - 5 ) ;\n if ( _libssh2_bn_bits ( exchange_state -> e ) % 8 ) {\n _libssh2_bn_to_bin ( exchange_state -> e , exchange_state -> e_packet + 5 ) ;\n }\n else {\n exchange_state -> e_packet [ 5 ] = 0 ;\n _libssh2_bn_to_bin ( exchange_state -> e , exchange_state -> e_packet + 6 ) ;\n }\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Sending KEX packet %d\" , ( int ) packet_type_init ) ;\n exchange_state -> state = libssh2_NB_state_created ;\n }\n if ( exchange_state -> state == libssh2_NB_state_created ) {\n rc = _libssh2_transport_send ( session , exchange_state -> e_packet , exchange_state -> e_packet_len , NULL , 0 ) ;\n if ( rc == LIBSSH2_ERROR_EAGAIN ) {\n return rc ;\n }\n else if ( rc ) {\n ret = _libssh2_error ( session , rc , \"Unable to send KEX init message\" ) ;\n goto clean_exit ;\n }\n exchange_state -> state = libssh2_NB_state_sent ;\n }\n if ( exchange_state -> state == libssh2_NB_state_sent ) {\n if ( session -> burn_optimistic_kexinit ) {\n int burn_type ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Waiting for badly guessed KEX packet (to be ignored)\" ) ;\n burn_type = _libssh2_packet_burn ( session , & exchange_state -> burn_state ) ;\n if ( burn_type == LIBSSH2_ERROR_EAGAIN ) {\n return burn_type ;\n }\n else if ( burn_type <= 0 ) {\n ret = burn_type ;\n goto clean_exit ;\n }\n session -> burn_optimistic_kexinit = 0 ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Burnt packet of type: %02x\" , ( unsigned int ) burn_type ) ;\n }\n exchange_state -> state = libssh2_NB_state_sent1 ;\n }\n if ( exchange_state -> state == libssh2_NB_state_sent1 ) {\n rc = _libssh2_packet_require ( session , packet_type_reply , & exchange_state -> s_packet , & exchange_state -> s_packet_len , 0 , NULL , 0 , & exchange_state -> req_state ) ;\n if ( rc == LIBSSH2_ERROR_EAGAIN ) {\n return rc ;\n }\n if ( rc ) {\n ret = _libssh2_error ( session , LIBSSH2_ERROR_TIMEOUT , \"Timed out waiting for KEX reply\" ) ;\n goto clean_exit ;\n }\n exchange_state -> s = exchange_state -> s_packet + 1 ;\n session -> server_hostkey_len = _libssh2_ntohu32 ( exchange_state -> s ) ;\n exchange_state -> s += 4 ;\n if ( session -> server_hostkey ) LIBSSH2_FREE ( session , session -> server_hostkey ) ;\n session -> server_hostkey = LIBSSH2_ALLOC ( session , session -> server_hostkey_len ) ;\n if ( ! session -> server_hostkey ) {\n ret = _libssh2_error ( session , LIBSSH2_ERROR_ALLOC , \"Unable to allocate memory for a copy \" \"of the host key\" ) ;\n goto clean_exit ;\n }\n memcpy ( session -> server_hostkey , exchange_state -> s , session -> server_hostkey_len ) ;\n exchange_state -> s += session -> server_hostkey_len ;\n # if LIBSSH2_MD5 {\n libssh2_md5_ctx fingerprint_ctx ;\n if ( libssh2_md5_init ( & fingerprint_ctx ) ) {\n libssh2_md5_update ( fingerprint_ctx , session -> server_hostkey , session -> server_hostkey_len ) ;\n libssh2_md5_final ( fingerprint_ctx , session -> server_hostkey_md5 ) ;\n session -> server_hostkey_md5_valid = TRUE ;\n }\n else {\n session -> server_hostkey_md5_valid = FALSE ;\n }\n }\n # ifdef LIBSSH2DEBUG {\n char fingerprint [ 50 ] , * fprint = fingerprint ;\n int i ;\n for ( i = 0 ;\n i < 16 ;\n i ++ , fprint += 3 ) {\n snprintf ( fprint , 4 , \"%02x:\" , session -> server_hostkey_md5 [ i ] ) ;\n }\n * ( -- fprint ) = '\\0' ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Server's MD5 Fingerprint: %s\" , fingerprint ) ;\n }\n # endif # endif {\n libssh2_sha1_ctx fingerprint_ctx ;\n if ( libssh2_sha1_init ( & fingerprint_ctx ) ) {\n libssh2_sha1_update ( fingerprint_ctx , session -> server_hostkey , session -> server_hostkey_len ) ;\n libssh2_sha1_final ( fingerprint_ctx , session -> server_hostkey_sha1 ) ;\n session -> server_hostkey_sha1_valid = TRUE ;\n }\n else {\n session -> server_hostkey_sha1_valid = FALSE ;\n }\n }\n # ifdef LIBSSH2DEBUG {\n char fingerprint [ 64 ] , * fprint = fingerprint ;\n int i ;\n for ( i = 0 ;\n i < 20 ;\n i ++ , fprint += 3 ) {\n snprintf ( fprint , 4 , \"%02x:\" , session -> server_hostkey_sha1 [ i ] ) ;\n }\n * ( -- fprint ) = '\\0' ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Server's SHA1 Fingerprint: %s\" , fingerprint ) ;\n }\n # endif if ( session -> hostkey -> init ( session , session -> server_hostkey , session -> server_hostkey_len , & session -> server_hostkey_abstract ) ) {\n ret = _libssh2_error ( session , LIBSSH2_ERROR_HOSTKEY_INIT , \"Unable to initialize hostkey importer\" ) ;\n goto clean_exit ;\n }\n exchange_state -> f_value_len = _libssh2_ntohu32 ( exchange_state -> s ) ;\n exchange_state -> s += 4 ;\n exchange_state -> f_value = exchange_state -> s ;\n exchange_state -> s += exchange_state -> f_value_len ;\n _libssh2_bn_from_bin ( exchange_state -> f , exchange_state -> f_value_len , exchange_state -> f_value ) ;\n exchange_state -> h_sig_len = _libssh2_ntohu32 ( exchange_state -> s ) ;\n exchange_state -> s += 4 ;\n exchange_state -> h_sig = exchange_state -> s ;\n _libssh2_bn_mod_exp ( exchange_state -> k , exchange_state -> f , exchange_state -> x , p , exchange_state -> ctx ) ;\n exchange_state -> k_value_len = _libssh2_bn_bytes ( exchange_state -> k ) + 5 ;\n if ( _libssh2_bn_bits ( exchange_state -> k ) % 8 ) {\n exchange_state -> k_value_len -- ;\n }\n exchange_state -> k_value = LIBSSH2_ALLOC ( session , exchange_state -> k_value_len ) ;\n if ( ! exchange_state -> k_value ) {\n ret = _libssh2_error ( session , LIBSSH2_ERROR_ALLOC , \"Unable to allocate buffer for K\" ) ;\n goto clean_exit ;\n }\n _libssh2_htonu32 ( exchange_state -> k_value , exchange_state -> k_value_len - 4 ) ;\n if ( _libssh2_bn_bits ( exchange_state -> k ) % 8 ) {\n _libssh2_bn_to_bin ( exchange_state -> k , exchange_state -> k_value + 4 ) ;\n }\n else {\n exchange_state -> k_value [ 4 ] = 0 ;\n _libssh2_bn_to_bin ( exchange_state -> k , exchange_state -> k_value + 5 ) ;\n }\n exchange_state -> exchange_hash = ( void * ) & exchange_hash_ctx ;\n libssh2_sha256_init ( & exchange_hash_ctx ) ;\n if ( session -> local . banner ) {\n _libssh2_htonu32 ( exchange_state -> h_sig_comp , strlen ( ( char * ) session -> local . banner ) - 2 ) ;\n libssh2_sha256_update ( exchange_hash_ctx , exchange_state -> h_sig_comp , 4 ) ;\n libssh2_sha256_update ( exchange_hash_ctx , ( char * ) session -> local . banner , strlen ( ( char * ) session -> local . banner ) - 2 ) ;\n }\n else {\n _libssh2_htonu32 ( exchange_state -> h_sig_comp , sizeof ( LIBSSH2_SSH_DEFAULT_BANNER ) - 1 ) ;\n libssh2_sha256_update ( exchange_hash_ctx , exchange_state -> h_sig_comp , 4 ) ;\n libssh2_sha256_update ( exchange_hash_ctx , LIBSSH2_SSH_DEFAULT_BANNER , sizeof ( LIBSSH2_SSH_DEFAULT_BANNER ) - 1 ) ;\n }\n _libssh2_htonu32 ( exchange_state -> h_sig_comp , strlen ( ( char * ) session -> remote . banner ) ) ;\n libssh2_sha256_update ( exchange_hash_ctx , exchange_state -> h_sig_comp , 4 ) ;\n libssh2_sha256_update ( exchange_hash_ctx , session -> remote . banner , strlen ( ( char * ) session -> remote . banner ) ) ;\n _libssh2_htonu32 ( exchange_state -> h_sig_comp , session -> local . kexinit_len ) ;\n libssh2_sha256_update ( exchange_hash_ctx , exchange_state -> h_sig_comp , 4 ) ;\n libssh2_sha256_update ( exchange_hash_ctx , session -> local . kexinit , session -> local . kexinit_len ) ;\n _libssh2_htonu32 ( exchange_state -> h_sig_comp , session -> remote . kexinit_len ) ;\n libssh2_sha256_update ( exchange_hash_ctx , exchange_state -> h_sig_comp , 4 ) ;\n libssh2_sha256_update ( exchange_hash_ctx , session -> remote . kexinit , session -> remote . kexinit_len ) ;\n _libssh2_htonu32 ( exchange_state -> h_sig_comp , session -> server_hostkey_len ) ;\n libssh2_sha256_update ( exchange_hash_ctx , exchange_state -> h_sig_comp , 4 ) ;\n libssh2_sha256_update ( exchange_hash_ctx , session -> server_hostkey , session -> server_hostkey_len ) ;\n if ( packet_type_init == SSH_MSG_KEX_DH_GEX_INIT ) {\n # ifdef LIBSSH2_DH_GEX_NEW _libssh2_htonu32 ( exchange_state -> h_sig_comp , LIBSSH2_DH_GEX_MINGROUP ) ;\n _libssh2_htonu32 ( exchange_state -> h_sig_comp + 4 , LIBSSH2_DH_GEX_OPTGROUP ) ;\n _libssh2_htonu32 ( exchange_state -> h_sig_comp + 8 , LIBSSH2_DH_GEX_MAXGROUP ) ;\n libssh2_sha256_update ( exchange_hash_ctx , exchange_state -> h_sig_comp , 12 ) ;\n # else _libssh2_htonu32 ( exchange_state -> h_sig_comp , LIBSSH2_DH_GEX_OPTGROUP ) ;\n libssh2_sha256_update ( exchange_hash_ctx , exchange_state -> h_sig_comp , 4 ) ;\n # endif }\n if ( midhash ) {\n libssh2_sha256_update ( exchange_hash_ctx , midhash , midhash_len ) ;\n }\n libssh2_sha256_update ( exchange_hash_ctx , exchange_state -> e_packet + 1 , exchange_state -> e_packet_len - 1 ) ;\n _libssh2_htonu32 ( exchange_state -> h_sig_comp , exchange_state -> f_value_len ) ;\n libssh2_sha256_update ( exchange_hash_ctx , exchange_state -> h_sig_comp , 4 ) ;\n libssh2_sha256_update ( exchange_hash_ctx , exchange_state -> f_value , exchange_state -> f_value_len ) ;\n libssh2_sha256_update ( exchange_hash_ctx , exchange_state -> k_value , exchange_state -> k_value_len ) ;\n libssh2_sha256_final ( exchange_hash_ctx , exchange_state -> h_sig_comp ) ;\n if ( session -> hostkey -> sig_verify ( session , exchange_state -> h_sig , exchange_state -> h_sig_len , exchange_state -> h_sig_comp , SHA256_DIGEST_LENGTH , & session -> server_hostkey_abstract ) ) {\n ret = _libssh2_error ( session , LIBSSH2_ERROR_HOSTKEY_SIGN , \"Unable to verify hostkey signature\" ) ;\n goto clean_exit ;\n }\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Sending NEWKEYS message\" ) ;\n exchange_state -> c = SSH_MSG_NEWKEYS ;\n exchange_state -> state = libssh2_NB_state_sent2 ;\n }\n if ( exchange_state -> state == libssh2_NB_state_sent2 ) {\n rc = _libssh2_transport_send ( session , & exchange_state -> c , 1 , NULL , 0 ) ;\n if ( rc == LIBSSH2_ERROR_EAGAIN ) {\n return rc ;\n }\n else if ( rc ) {\n ret = _libssh2_error ( session , rc , \"Unable to send NEWKEYS message\" ) ;\n goto clean_exit ;\n }\n exchange_state -> state = libssh2_NB_state_sent3 ;\n }\n if ( exchange_state -> state == libssh2_NB_state_sent3 ) {\n rc = _libssh2_packet_require ( session , SSH_MSG_NEWKEYS , & exchange_state -> tmp , & exchange_state -> tmp_len , 0 , NULL , 0 , & exchange_state -> req_state ) ;\n if ( rc == LIBSSH2_ERROR_EAGAIN ) {\n return rc ;\n }\n else if ( rc ) {\n ret = _libssh2_error ( session , rc , \"Timed out waiting for NEWKEYS\" ) ;\n goto clean_exit ;\n }\n session -> state |= LIBSSH2_STATE_NEWKEYS ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Received NEWKEYS message\" ) ;\n LIBSSH2_FREE ( session , exchange_state -> tmp ) ;\n if ( ! session -> session_id ) {\n session -> session_id = LIBSSH2_ALLOC ( session , SHA256_DIGEST_LENGTH ) ;\n if ( ! session -> session_id ) {\n ret = _libssh2_error ( session , LIBSSH2_ERROR_ALLOC , \"Unable to allocate buffer for SHA digest\" ) ;\n goto clean_exit ;\n }\n memcpy ( session -> session_id , exchange_state -> h_sig_comp , SHA256_DIGEST_LENGTH ) ;\n session -> session_id_len = SHA256_DIGEST_LENGTH ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"session_id calculated\" ) ;\n }\n if ( session -> local . crypt -> dtor ) {\n session -> local . crypt -> dtor ( session , & session -> local . crypt_abstract ) ;\n }\n if ( session -> local . crypt -> init ) {\n unsigned char * iv = NULL , * secret = NULL ;\n int free_iv = 0 , free_secret = 0 ;\n LIBSSH2_KEX_METHOD_DIFFIE_HELLMAN_SHA256_HASH ( iv , session -> local . crypt -> iv_len , \"A\" ) ;\n if ( ! iv ) {\n ret = - 1 ;\n goto clean_exit ;\n }\n LIBSSH2_KEX_METHOD_DIFFIE_HELLMAN_SHA256_HASH ( secret , session -> local . crypt -> secret_len , \"C\" ) ;\n if ( ! secret ) {\n LIBSSH2_FREE ( session , iv ) ;\n ret = LIBSSH2_ERROR_KEX_FAILURE ;\n goto clean_exit ;\n }\n if ( session -> local . crypt -> init ( session , session -> local . crypt , iv , & free_iv , secret , & free_secret , 1 , & session -> local . crypt_abstract ) ) {\n LIBSSH2_FREE ( session , iv ) ;\n LIBSSH2_FREE ( session , secret ) ;\n ret = LIBSSH2_ERROR_KEX_FAILURE ;\n goto clean_exit ;\n }\n if ( free_iv ) {\n memset ( iv , 0 , session -> local . crypt -> iv_len ) ;\n LIBSSH2_FREE ( session , iv ) ;\n }\n if ( free_secret ) {\n memset ( secret , 0 , session -> local . crypt -> secret_len ) ;\n LIBSSH2_FREE ( session , secret ) ;\n }\n }\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Client to Server IV and Key calculated\" ) ;\n if ( session -> remote . crypt -> dtor ) {\n session -> remote . crypt -> dtor ( session , & session -> remote . crypt_abstract ) ;\n }\n if ( session -> remote . crypt -> init ) {\n unsigned char * iv = NULL , * secret = NULL ;\n int free_iv = 0 , free_secret = 0 ;\n LIBSSH2_KEX_METHOD_DIFFIE_HELLMAN_SHA256_HASH ( iv , session -> remote . crypt -> iv_len , \"B\" ) ;\n if ( ! iv ) {\n ret = LIBSSH2_ERROR_KEX_FAILURE ;\n goto clean_exit ;\n }\n LIBSSH2_KEX_METHOD_DIFFIE_HELLMAN_SHA256_HASH ( secret , session -> remote . crypt -> secret_len , \"D\" ) ;\n if ( ! secret ) {\n LIBSSH2_FREE ( session , iv ) ;\n ret = LIBSSH2_ERROR_KEX_FAILURE ;\n goto clean_exit ;\n }\n if ( session -> remote . crypt -> init ( session , session -> remote . crypt , iv , & free_iv , secret , & free_secret , 0 , & session -> remote . crypt_abstract ) ) {\n LIBSSH2_FREE ( session , iv ) ;\n LIBSSH2_FREE ( session , secret ) ;\n ret = LIBSSH2_ERROR_KEX_FAILURE ;\n goto clean_exit ;\n }\n if ( free_iv ) {\n memset ( iv , 0 , session -> remote . crypt -> iv_len ) ;\n LIBSSH2_FREE ( session , iv ) ;\n }\n if ( free_secret ) {\n memset ( secret , 0 , session -> remote . crypt -> secret_len ) ;\n LIBSSH2_FREE ( session , secret ) ;\n }\n }\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Server to Client IV and Key calculated\" ) ;\n if ( session -> local . mac -> dtor ) {\n session -> local . mac -> dtor ( session , & session -> local . mac_abstract ) ;\n }\n if ( session -> local . mac -> init ) {\n unsigned char * key = NULL ;\n int free_key = 0 ;\n LIBSSH2_KEX_METHOD_DIFFIE_HELLMAN_SHA256_HASH ( key , session -> local . mac -> key_len , \"E\" ) ;\n if ( ! key ) {\n ret = LIBSSH2_ERROR_KEX_FAILURE ;\n goto clean_exit ;\n }\n session -> local . mac -> init ( session , key , & free_key , & session -> local . mac_abstract ) ;\n if ( free_key ) {\n memset ( key , 0 , session -> local . mac -> key_len ) ;\n LIBSSH2_FREE ( session , key ) ;\n }\n }\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Client to Server HMAC Key calculated\" ) ;\n if ( session -> remote . mac -> dtor ) {\n session -> remote . mac -> dtor ( session , & session -> remote . mac_abstract ) ;\n }\n if ( session -> remote . mac -> init ) {\n unsigned char * key = NULL ;\n int free_key = 0 ;\n LIBSSH2_KEX_METHOD_DIFFIE_HELLMAN_SHA256_HASH ( key , session -> remote . mac -> key_len , \"F\" ) ;\n if ( ! key ) {\n ret = LIBSSH2_ERROR_KEX_FAILURE ;\n goto clean_exit ;\n }\n session -> remote . mac -> init ( session , key , & free_key , & session -> remote . mac_abstract ) ;\n if ( free_key ) {\n memset ( key , 0 , session -> remote . mac -> key_len ) ;\n LIBSSH2_FREE ( session , key ) ;\n }\n }\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Server to Client HMAC Key calculated\" ) ;\n if ( session -> local . comp && session -> local . comp -> dtor ) {\n session -> local . comp -> dtor ( session , 1 , & session -> local . comp_abstract ) ;\n }\n if ( session -> local . comp && session -> local . comp -> init ) {\n if ( session -> local . comp -> init ( session , 1 , & session -> local . comp_abstract ) ) {\n ret = LIBSSH2_ERROR_KEX_FAILURE ;\n goto clean_exit ;\n }\n }\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Client to Server compression initialized\" ) ;\n if ( session -> remote . comp && session -> remote . comp -> dtor ) {\n session -> remote . comp -> dtor ( session , 0 , & session -> remote . comp_abstract ) ;\n }\n if ( session -> remote . comp && session -> remote . comp -> init ) {\n if ( session -> remote . comp -> init ( session , 0 , & session -> remote . comp_abstract ) ) {\n ret = LIBSSH2_ERROR_KEX_FAILURE ;\n goto clean_exit ;\n }\n }\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Server to Client compression initialized\" ) ;\n }\n clean_exit : _libssh2_bn_free ( exchange_state -> x ) ;\n exchange_state -> x = NULL ;\n _libssh2_bn_free ( exchange_state -> e ) ;\n exchange_state -> e = NULL ;\n _libssh2_bn_free ( exchange_state -> f ) ;\n exchange_state -> f = NULL ;\n _libssh2_bn_free ( exchange_state -> k ) ;\n exchange_state -> k = NULL ;\n _libssh2_bn_ctx_free ( exchange_state -> ctx ) ;\n exchange_state -> ctx = NULL ;\n if ( exchange_state -> e_packet ) {\n LIBSSH2_FREE ( session , exchange_state -> e_packet ) ;\n exchange_state -> e_packet = NULL ;\n }\n if ( exchange_state -> s_packet ) {\n LIBSSH2_FREE ( session , exchange_state -> s_packet ) ;\n exchange_state -> s_packet = NULL ;\n }\n if ( exchange_state -> k_value ) {\n LIBSSH2_FREE ( session , exchange_state -> k_value ) ;\n exchange_state -> k_value = NULL ;\n }\n exchange_state -> state = libssh2_NB_state_idle ;\n return ret ;\n }"}
{"idx": 2601, "target": 0, "func": "static void sethead ( struct head * head , SplineFont * sf , struct alltabs * at , enum fontformat format , int32 * bsizes ) {\n int i , lr , rl , indic_rearrange , arabic ;\n ASM * sm ;\n struct ttflangname * useng ;\n float vn ;\n if ( at -> gi . xmin == 15000 ) at -> gi . xmin = 0 ;\n if ( at -> gi . ymin == 15000 ) at -> gi . ymin = 0 ;\n if ( bsizes != NULL && format == ff_none ) {\n if ( sf -> ascent > at -> gi . ymax ) at -> gi . ymax = sf -> ascent ;\n if ( - sf -> descent < at -> gi . ymin ) at -> gi . ymin = - sf -> descent ;\n }\n head -> xmin = at -> gi . xmin ;\n head -> ymin = at -> gi . ymin ;\n head -> xmax = at -> gi . xmax ;\n head -> ymax = at -> gi . ymax ;\n lr = rl = arabic = 0 ;\n for ( i = 0 ;\n i < at -> gi . gcnt ;\n ++ i ) if ( at -> gi . bygid [ i ] != - 1 ) {\n SplineChar * sc = sf -> glyphs [ at -> gi . bygid [ i ] ] ;\n int uni = sc -> unicodeenc ;\n if ( SCRightToLeft ( sc ) ) rl = 1 ;\n else if ( ( uni != - 1 && uni < 0x10000 && islefttoright ( uni ) ) || ( uni >= 0x10300 && uni < 0x107ff ) ) lr = 1 ;\n if ( SCScriptFromUnicode ( sc ) == CHR ( 'a' , 'r' , 'a' , 'b' ) ) arabic = 1 ;\n }\n head -> version = 0x00010000 ;\n head -> revision = sf -> sfntRevision ;\n if ( sf -> sfntRevision == sfntRevisionUnset ) {\n head -> revision = 0x00010000 ;\n for ( useng = sf -> names ;\n useng != NULL ;\n useng = useng -> next ) if ( useng -> lang == 0x409 ) break ;\n if ( useng != NULL && useng -> names [ ttf_version ] != NULL && sscanf ( useng -> names [ ttf_version ] , \"Version %f\" , & vn ) == 1 ) {\n head -> revision = vn * 65536 ;\n }\n else if ( sf -> subfontcnt != 0 ) {\n int val , mant ;\n val = floor ( sf -> cidversion ) ;\n mant = floor ( 65536. * ( ( double ) sf -> cidversion - val ) ) ;\n head -> revision = ( val << 16 ) | mant ;\n }\n else if ( sf -> version != NULL ) {\n char * pt = sf -> version ;\n double dval ;\n int val , mant ;\n while ( * pt && ! isdigit ( * pt ) && * pt != '.' ) ++ pt ;\n if ( * pt ) {\n dval = strtod ( pt , NULL ) ;\n val = floor ( dval ) ;\n mant = floor ( 65536. * ( dval - val ) ) ;\n head -> revision = ( val << 16 ) | mant ;\n }\n }\n }\n head -> checksumAdj = 0 ;\n head -> magicNum = 0x5f0f3cf5 ;\n head -> flags = 8 | 2 | 1 ;\n if ( format >= ff_ttf && format <= ff_ttfdfont ) {\n if ( AnyInstructions ( sf ) ) head -> flags = 0x10 | 8 | 4 | 2 | 1 ;\n else if ( AnyMisleadingBitmapAdvances ( sf , bsizes ) ) head -> flags = 0x10 | 8 | 2 | 1 ;\n }\n if ( sf -> hasvmetrics ) head -> flags |= ( 1 << 5 ) ;\n if ( arabic ) head -> flags |= ( 1 << 7 ) ;\n if ( sf -> sm ) head -> flags |= ( 1 << 8 ) ;\n if ( rl ) head -> flags |= ( 1 << 9 ) ;\n indic_rearrange = 0 ;\n for ( sm = sf -> sm ;\n sm != NULL ;\n sm = sm -> next ) if ( sm -> type == asm_indic ) indic_rearrange = true ;\n if ( indic_rearrange ) head -> flags |= ( 1 << 10 ) ;\n if ( sf -> head_optimized_for_cleartype ) head -> flags |= ( 1 << 13 ) ;\n head -> emunits = sf -> ascent + sf -> descent ;\n head -> macstyle = MacStyleCode ( sf , NULL ) ;\n head -> lowestreadable = 8 ;\n head -> locais32 = 1 ;\n if ( at -> gi . glyph_len < 0x20000 ) head -> locais32 = 0 ;\n if ( lr && rl ) head -> dirhint = 0 ;\n else if ( rl ) head -> dirhint = - 2 ;\n else head -> dirhint = 2 ;\n if ( rl ) head -> flags |= ( 1 << 9 ) ;\n cvt_unix_to_1904 ( sf -> creationtime , head -> createtime ) ;\n cvt_unix_to_1904 ( sf -> modificationtime , head -> modtime ) ;\n }"}
{"idx": 2602, "target": 0, "func": "static int rcancelrequested ( void ) {\n return InterruptPending && ( QueryCancelPending || ProcDiePending ) ;\n }"}
{"idx": 2603, "target": 0, "func": "static void predict_and_reconstruct_intra_block ( int plane , int block , BLOCK_SIZE plane_bsize , TX_SIZE tx_size , void * arg ) {\n struct intra_args * const args = ( struct intra_args * ) arg ;\n VP9_COMMON * const cm = args -> cm ;\n MACROBLOCKD * const xd = args -> xd ;\n struct macroblockd_plane * const pd = & xd -> plane [ plane ] ;\n MODE_INFO * const mi = xd -> mi [ 0 ] ;\n const PREDICTION_MODE mode = ( plane == 0 ) ? get_y_mode ( mi , block ) : mi -> mbmi . uv_mode ;\n int x , y ;\n uint8_t * dst ;\n txfrm_block_to_raster_xy ( plane_bsize , tx_size , block , & x , & y ) ;\n dst = & pd -> dst . buf [ 4 * y * pd -> dst . stride + 4 * x ] ;\n vp9_predict_intra_block ( xd , block >> ( tx_size << 1 ) , b_width_log2 ( plane_bsize ) , tx_size , mode , dst , pd -> dst . stride , dst , pd -> dst . stride , x , y , plane ) ;\n if ( ! mi -> mbmi . skip ) {\n const int eob = vp9_decode_block_tokens ( cm , xd , plane , block , plane_bsize , x , y , tx_size , args -> r ) ;\n inverse_transform_block ( xd , plane , block , tx_size , dst , pd -> dst . stride , eob ) ;\n }\n }"}
{"idx": 2604, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( UnloadTest , BrowserListDoubleCloseBeforeUnloadOK ) {\n NavigateToDataURL ( BEFORE_UNLOAD_HTML , \"beforeunload\" ) ;\n content : : WindowedNotificationObserver window_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , content : : NotificationService : : AllSources ( ) ) ;\n UnloadResults unload_results ;\n BrowserList : : CloseAllBrowsersWithProfile ( browser ( ) -> profile ( ) , base : : Bind ( & UnloadResults : : AddSuccess , base : : Unretained ( & unload_results ) ) , base : : Bind ( & UnloadResults : : AddAbort , base : : Unretained ( & unload_results ) ) , false ) ;\n BrowserList : : CloseAllBrowsersWithProfile ( browser ( ) -> profile ( ) , base : : Bind ( & UnloadResults : : AddSuccess , base : : Unretained ( & unload_results ) ) , base : : Bind ( & UnloadResults : : AddAbort , base : : Unretained ( & unload_results ) ) , false ) ;\n ClickModalDialogButton ( true ) ;\n window_observer . Wait ( ) ;\n EXPECT_EQ ( 1 , unload_results . get_successes ( ) ) ;\n EXPECT_EQ ( 0 , unload_results . get_aborts ( ) ) ;\n }"}
{"idx": 2605, "target": 0, "func": "xmlSAXLocator * __xmlDefaultSAXLocator ( void ) {\n if ( IS_MAIN_THREAD ) return ( & xmlDefaultSAXLocator ) ;\n else return ( & xmlGetGlobalState ( ) -> xmlDefaultSAXLocator ) ;\n }"}
{"idx": 2606, "target": 0, "func": "TEST ( AutocompleteMatchTest , Duplicates ) {\n struct DuplicateCases {\n const wchar_t * input ;\n const std : : string url1 ;\n const std : : string url2 ;\n const bool expected_duplicate ;\n }\n cases [ ] = {\n {\n L\"g\" , \"http://www.google.com/\" , \"https://www.google.com/\" , true }\n , {\n L\"g\" , \"http://www.google.com/\" , \"http://www.google.com\" , true }\n , {\n L\"g\" , \"http://google.com/\" , \"http://www.google.com/\" , true }\n , {\n L\"g\" , \"http://www.google.com/\" , \"HTTP://www.GOOGLE.com/\" , true }\n , {\n L\"g\" , \"http://www.google.com/\" , \"http://www.google.com\" , true }\n , {\n L\"g\" , \"https://www.google.com/\" , \"http://google.com\" , true }\n , {\n L\"g\" , \"http://www.google.com/\" , \"wss://www.google.com/\" , false }\n , {\n L\"g\" , \"http://www.google.com/1\" , \"http://www.google.com/1/\" , false }\n , {\n L\"g\" , \"http://www.google.com/\" , \"http://www.google.com/1\" , false }\n , {\n L\"g\" , \"http://www.google.com/\" , \"http://www.goo.com/\" , false }\n , {\n L\"g\" , \"http://www.google.com/\" , \"http://w2.google.com/\" , false }\n , {\n L\"g\" , \"http://www.google.com/\" , \"http://m.google.com/\" , false }\n , {\n L\"g\" , \"http://www.google.com/\" , \"http://www.google.com/?foo\" , false }\n , {\n L\"http://g\" , \"http://google.com/\" , \"https://google.com/\" , false }\n , {\n L\"http://g\" , \"http://blah.com/\" , \"https://blah.com/\" , true }\n , {\n L\"http://g\" , \"http://google.com/1\" , \"https://google.com/1\" , false }\n , {\n L\"http://g hello\" , \"http://google.com/\" , \"https://google.com/\" , false }\n , {\n L\"hello http://g\" , \"http://google.com/\" , \"https://google.com/\" , false }\n , {\n L\"hello http://g\" , \"http://blah.com/\" , \"https://blah.com/\" , true }\n , {\n L\"http://b http://g\" , \"http://google.com/\" , \"https://google.com/\" , false }\n , {\n L\"http://b http://g\" , \"http://blah.com/\" , \"https://blah.com/\" , false }\n , {\n L\"x\" , \"http://xn--1lq90ic7f1rc.cn/\" , \"https://xn--1lq90ic7f1rc.cn/\" , true }\n , {\n L\"http://\\x5317 x\" , \"http://xn--1lq90ic7f1rc.cn/\" , \"https://xn--1lq90ic7f1rc.cn/\" , false }\n , {\n L\"http://\\x89c6 x\" , \"http://xn--1lq90ic7f1rc.cn/\" , \"https://xn--1lq90ic7f1rc.cn/\" , true }\n , }\n ;\n for ( size_t i = 0 ;\n i < arraysize ( cases ) ;\n ++ i ) {\n SCOPED_TRACE ( \"input=\" + base : : WideToUTF8 ( cases [ i ] . input ) + \" url1=\" + cases [ i ] . url1 + \" url2=\" + cases [ i ] . url2 ) ;\n AutocompleteInput input ( base : : WideToUTF16 ( cases [ i ] . input ) , base : : string16 : : npos , std : : string ( ) , GURL ( ) , metrics : : OmniboxEventProto : : INVALID_SPEC , false , false , true , true , false , TestSchemeClassifier ( ) ) ;\n AutocompleteMatch m1 ( nullptr , 100 , false , AutocompleteMatchType : : URL_WHAT_YOU_TYPED ) ;\n m1 . destination_url = GURL ( cases [ i ] . url1 ) ;\n m1 . ComputeStrippedDestinationURL ( input , nullptr ) ;\n AutocompleteMatch m2 ( nullptr , 100 , false , AutocompleteMatchType : : URL_WHAT_YOU_TYPED ) ;\n m2 . destination_url = GURL ( cases [ i ] . url2 ) ;\n m2 . ComputeStrippedDestinationURL ( input , nullptr ) ;\n EXPECT_EQ ( cases [ i ] . expected_duplicate , AutocompleteMatch : : DestinationsEqual ( m1 , m2 ) ) ;\n }\n }"}
{"idx": 2607, "target": 1, "func": "static int jbig2_find_changing_element_of_color ( const byte * line , int x , int w , int color ) {\n if ( line == 0 ) return w ;\n x = jbig2_find_changing_element ( line , x , w ) ;\n if ( x < w && getbit ( line , x ) != color ) x = jbig2_find_changing_element ( line , x , w ) ;\n return x ;\n }"}
{"idx": 2608, "target": 0, "func": "static void pdf_run_squote ( fz_context * ctx , pdf_processor * proc , char * string , int string_len ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_gstate * gstate = pr -> gstate + pr -> gtop ;\n pdf_tos_newline ( & pr -> tos , gstate -> text . leading ) ;\n pdf_show_string ( ctx , pr , ( unsigned char * ) string , string_len ) ;\n }"}
{"idx": 2609, "target": 0, "func": "static void free_sconv_object ( struct archive_string_conv * sc ) {\n free ( sc -> from_charset ) ;\n free ( sc -> to_charset ) ;\n archive_string_free ( & sc -> utftmp ) ;\n # if HAVE_ICONV if ( sc -> cd != ( iconv_t ) - 1 ) iconv_close ( sc -> cd ) ;\n if ( sc -> cd_w != ( iconv_t ) - 1 ) iconv_close ( sc -> cd_w ) ;\n # endif free ( sc ) ;\n }"}
{"idx": 2610, "target": 0, "func": "static void decode_fixed_sparse ( AMRFixed * fixed_sparse , const int16_t * pulses , SiprMode mode , int low_gain ) {\n int i ;\n switch ( mode ) {\n case MODE_6k5 : for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n fixed_sparse -> x [ i ] = 3 * ( pulses [ i ] & 0xf ) + i ;\n fixed_sparse -> y [ i ] = pulses [ i ] & 0x10 ? - 1 : 1 ;\n }\n fixed_sparse -> n = 3 ;\n break ;\n case MODE_8k5 : for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n fixed_sparse -> x [ 2 * i ] = 3 * ( ( pulses [ i ] >> 4 ) & 0xf ) + i ;\n fixed_sparse -> x [ 2 * i + 1 ] = 3 * ( pulses [ i ] & 0xf ) + i ;\n fixed_sparse -> y [ 2 * i ] = ( pulses [ i ] & 0x100 ) ? - 1.0 : 1.0 ;\n fixed_sparse -> y [ 2 * i + 1 ] = ( fixed_sparse -> x [ 2 * i + 1 ] < fixed_sparse -> x [ 2 * i ] ) ? - fixed_sparse -> y [ 2 * i ] : fixed_sparse -> y [ 2 * i ] ;\n }\n fixed_sparse -> n = 6 ;\n break ;\n case MODE_5k0 : default : if ( low_gain ) {\n int offset = ( pulses [ 0 ] & 0x200 ) ? 2 : 0 ;\n int val = pulses [ 0 ] ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n int index = ( val & 0x7 ) * 6 + 4 - i * 2 ;\n fixed_sparse -> y [ i ] = ( offset + index ) & 0x3 ? - 1 : 1 ;\n fixed_sparse -> x [ i ] = index ;\n val >>= 3 ;\n }\n fixed_sparse -> n = 3 ;\n }\n else {\n int pulse_subset = ( pulses [ 0 ] >> 8 ) & 1 ;\n fixed_sparse -> x [ 0 ] = ( ( pulses [ 0 ] >> 4 ) & 15 ) * 3 + pulse_subset ;\n fixed_sparse -> x [ 1 ] = ( pulses [ 0 ] & 15 ) * 3 + pulse_subset + 1 ;\n fixed_sparse -> y [ 0 ] = pulses [ 0 ] & 0x200 ? - 1 : 1 ;\n fixed_sparse -> y [ 1 ] = - fixed_sparse -> y [ 0 ] ;\n fixed_sparse -> n = 2 ;\n }\n break ;\n }\n }"}
{"idx": 2611, "target": 0, "func": "static void steamdiscover_dissect_body_streamingcancelrequest ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , gint offset , gint bytes_left ) {\n guint len ;\n gint64 value ;\n protobuf_desc_t pb = {\n tvb , offset , bytes_left }\n ;\n protobuf_tag_t tag = {\n 0 , 0 , 0 }\n ;\n while ( protobuf_iter_next ( & pb , & tag ) ) {\n switch ( tag . field_number ) {\n case STEAMDISCOVER_FN_STREAMINGCANCELREQUEST_REQUESTID : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_uint ( tree , hf_steam_ihs_discovery_body_streamingcancelrequest_requestid , pb . tvb , pb . offset , len , ( guint32 ) value ) ;\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"%s, ID=%08x\" , hf_steam_ihs_discovery_header_msgtype_strings [ STEAMDISCOVER_MSGTYPE_DEVICESTREAMINGCANCELREQUEST ] . strptr , ( guint32 ) value ) ;\n break ;\n default : len = protobuf_dissect_unknown_field ( & pb , & tag , pinfo , tree , NULL ) ;\n break ;\n }\n protobuf_seek_forward ( & pb , len ) ;\n }\n }"}
{"idx": 2612, "target": 0, "func": "static int dissect_pcp_message_desc ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , int offset ) {\n proto_item * pcp_desc_item ;\n proto_tree * pcp_desc_tree ;\n proto_item * pcp_desc_units_item ;\n proto_tree * pcp_desc_units_tree ;\n guint32 bits_offset ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"[%s]\" , val_to_str ( PCP_PDU_DESC , packettypenames , \"Unknown Type:0x%02x\" ) ) ;\n pcp_desc_item = proto_tree_add_item ( tree , hf_pcp_desc , tvb , offset , 4 , ENC_NA ) ;\n pcp_desc_tree = proto_item_add_subtree ( pcp_desc_item , ett_pcp ) ;\n offset = dissect_pcp_partial_pmid ( tvb , pinfo , pcp_desc_tree , offset ) ;\n proto_tree_add_item ( pcp_desc_tree , hf_pcp_pmid_type , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( pcp_desc_tree , hf_pcp_instance_indom , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( pcp_desc_tree , hf_pcp_pmid_sem , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n bits_offset = offset * 8 ;\n pcp_desc_units_item = proto_tree_add_item ( pcp_desc_tree , hf_pcp_units , tvb , offset , - 1 , ENC_NA ) ;\n pcp_desc_units_tree = proto_item_add_subtree ( pcp_desc_units_item , ett_pcp ) ;\n proto_tree_add_bits_item ( pcp_desc_units_tree , hf_pcp_units_dimspace , tvb , bits_offset , 4 , ENC_BIG_ENDIAN ) ;\n bits_offset += 4 ;\n proto_tree_add_bits_item ( pcp_desc_units_tree , hf_pcp_units_dimtime , tvb , bits_offset , 4 , ENC_BIG_ENDIAN ) ;\n bits_offset += 4 ;\n proto_tree_add_bits_item ( pcp_desc_units_tree , hf_pcp_units_dimcount , tvb , bits_offset , 4 , ENC_BIG_ENDIAN ) ;\n bits_offset += 4 ;\n proto_tree_add_bits_item ( pcp_desc_units_tree , hf_pcp_units_scalespace , tvb , bits_offset , 4 , ENC_BIG_ENDIAN ) ;\n bits_offset += 4 ;\n proto_tree_add_bits_item ( pcp_desc_units_tree , hf_pcp_units_scaletime , tvb , bits_offset , 4 , ENC_BIG_ENDIAN ) ;\n bits_offset += 4 ;\n proto_tree_add_bits_item ( pcp_desc_units_tree , hf_pcp_units_scalecount , tvb , bits_offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 3 ;\n proto_tree_add_item ( pcp_desc_units_tree , hf_pcp_pdu_padding , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n return offset ;\n }"}
{"idx": 2613, "target": 0, "func": "static uint32_t xhci_nec_challenge ( uint32_t hi , uint32_t lo ) {\n uint32_t val ;\n val = rotl ( lo - 0x49434878 , 32 - ( ( hi >> 8 ) & 0x1F ) ) ;\n val += rotl ( lo + 0x49434878 , hi & 0x1F ) ;\n val -= rotl ( hi ^ 0x49434878 , ( lo >> 16 ) & 0x1F ) ;\n return ~ val ;\n }"}
{"idx": 2614, "target": 0, "func": "static int dissect_h245_Mla_type ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_Mla_type , Mla_type_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 2615, "target": 0, "func": "int min_heap_elem_greater ( struct event * a , struct event * b ) {\n return evutil_timercmp ( & a -> ev_timeout , & b -> ev_timeout , > ) ;\n }"}
{"idx": 2616, "target": 0, "func": "static void dissect_zcl_color_control_step_color ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_step_X , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_step_Y , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_transit_time , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n }"}
{"idx": 2617, "target": 1, "func": "static int ogg_read_header ( AVFormatContext * s ) {\n struct ogg * ogg = s -> priv_data ;\n int ret , i ;\n ogg -> curidx = - 1 ;\n do {\n ret = ogg_packet ( s , NULL , NULL , NULL , NULL ) ;\n if ( ret < 0 ) {\n ogg_read_close ( s ) ;\n return ret ;\n }\n }\n while ( ! ogg -> headers ) ;\n av_log ( s , AV_LOG_TRACE , \"found headers\\n\" ) ;\n for ( i = 0 ;\n i < ogg -> nstreams ;\n i ++ ) {\n struct ogg_stream * os = ogg -> streams + i ;\n if ( ogg -> streams [ i ] . header < 0 ) {\n av_log ( s , AV_LOG_ERROR , \"Header parsing failed for stream %d\\n\" , i ) ;\n ogg -> streams [ i ] . codec = NULL ;\n }\n else if ( os -> codec && os -> nb_header < os -> codec -> nb_header ) {\n av_log ( s , AV_LOG_WARNING , \"Headers mismatch for stream %d: \" \"expected %d received %d.\\n\" , i , os -> codec -> nb_header , os -> nb_header ) ;\n if ( s -> error_recognition & AV_EF_EXPLODE ) return AVERROR_INVALIDDATA ;\n }\n if ( os -> start_granule != OGG_NOGRANULE_VALUE ) os -> lastpts = s -> streams [ i ] -> start_time = ogg_gptopts ( s , i , os -> start_granule , NULL ) ;\n }\n ret = ogg_get_length ( s ) ;\n if ( ret < 0 ) {\n ogg_read_close ( s ) ;\n return ret ;\n }\n return 0 ;\n }"}
{"idx": 2618, "target": 0, "func": "int qemuMonitorJSONAddUSBDeviceMatch ( qemuMonitorPtr mon ATTRIBUTE_UNUSED , int vendor ATTRIBUTE_UNUSED , int product ATTRIBUTE_UNUSED ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"usb_add not suppported in JSON mode\" ) ) ;\n return - 1 ;\n }"}
{"idx": 2619, "target": 1, "func": "static int mpeg4_decode_mb ( MpegEncContext * s , int16_t block [ 6 ] [ 64 ] ) {\n int cbpc , cbpy , i , cbp , pred_x , pred_y , mx , my , dquant ;\n int16_t * mot_val ;\n static int8_t quant_tab [ 4 ] = {\n - 1 , - 2 , 1 , 2 }\n ;\n const int xy = s -> mb_x + s -> mb_y * s -> mb_stride ;\n assert ( s -> h263_pred ) ;\n if ( s -> pict_type == AV_PICTURE_TYPE_P || s -> pict_type == AV_PICTURE_TYPE_S ) {\n do {\n if ( get_bits1 ( & s -> gb ) ) {\n s -> mb_intra = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) s -> block_last_index [ i ] = - 1 ;\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n if ( s -> pict_type == AV_PICTURE_TYPE_S && s -> vol_sprite_usage == GMC_SPRITE ) {\n s -> current_picture . f . mb_type [ xy ] = MB_TYPE_SKIP | MB_TYPE_GMC | MB_TYPE_16x16 | MB_TYPE_L0 ;\n s -> mcsel = 1 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = get_amv ( s , 0 ) ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = get_amv ( s , 1 ) ;\n s -> mb_skipped = 0 ;\n }\n else {\n s -> current_picture . f . mb_type [ xy ] = MB_TYPE_SKIP | MB_TYPE_16x16 | MB_TYPE_L0 ;\n s -> mcsel = 0 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = 0 ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = 0 ;\n s -> mb_skipped = 1 ;\n }\n goto end ;\n }\n cbpc = get_vlc2 ( & s -> gb , ff_h263_inter_MCBPC_vlc . table , INTER_MCBPC_VLC_BITS , 2 ) ;\n if ( cbpc < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"cbpc damaged at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n }\n while ( cbpc == 20 ) ;\n s -> dsp . clear_blocks ( s -> block [ 0 ] ) ;\n dquant = cbpc & 8 ;\n s -> mb_intra = ( ( cbpc & 4 ) != 0 ) ;\n if ( s -> mb_intra ) goto intra ;\n if ( s -> pict_type == AV_PICTURE_TYPE_S && s -> vol_sprite_usage == GMC_SPRITE && ( cbpc & 16 ) == 0 ) s -> mcsel = get_bits1 ( & s -> gb ) ;\n else s -> mcsel = 0 ;\n cbpy = get_vlc2 ( & s -> gb , ff_h263_cbpy_vlc . table , CBPY_VLC_BITS , 1 ) ^ 0x0F ;\n cbp = ( cbpc & 3 ) | ( cbpy << 2 ) ;\n if ( dquant ) {\n ff_set_qscale ( s , s -> qscale + quant_tab [ get_bits ( & s -> gb , 2 ) ] ) ;\n }\n if ( ( ! s -> progressive_sequence ) && ( cbp || ( s -> workaround_bugs & FF_BUG_XVID_ILACE ) ) ) s -> interlaced_dct = get_bits1 ( & s -> gb ) ;\n s -> mv_dir = MV_DIR_FORWARD ;\n if ( ( cbpc & 16 ) == 0 ) {\n if ( s -> mcsel ) {\n s -> current_picture . f . mb_type [ xy ] = MB_TYPE_GMC | MB_TYPE_16x16 | MB_TYPE_L0 ;\n s -> mv_type = MV_TYPE_16X16 ;\n mx = get_amv ( s , 0 ) ;\n my = get_amv ( s , 1 ) ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = mx ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = my ;\n }\n else if ( ( ! s -> progressive_sequence ) && get_bits1 ( & s -> gb ) ) {\n s -> current_picture . f . mb_type [ xy ] = MB_TYPE_16x8 | MB_TYPE_L0 | MB_TYPE_INTERLACED ;\n s -> mv_type = MV_TYPE_FIELD ;\n s -> field_select [ 0 ] [ 0 ] = get_bits1 ( & s -> gb ) ;\n s -> field_select [ 0 ] [ 1 ] = get_bits1 ( & s -> gb ) ;\n ff_h263_pred_motion ( s , 0 , 0 , & pred_x , & pred_y ) ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n mx = ff_h263_decode_motion ( s , pred_x , s -> f_code ) ;\n if ( mx >= 0xffff ) return - 1 ;\n my = ff_h263_decode_motion ( s , pred_y / 2 , s -> f_code ) ;\n if ( my >= 0xffff ) return - 1 ;\n s -> mv [ 0 ] [ i ] [ 0 ] = mx ;\n s -> mv [ 0 ] [ i ] [ 1 ] = my ;\n }\n }\n else {\n s -> current_picture . f . mb_type [ xy ] = MB_TYPE_16x16 | MB_TYPE_L0 ;\n s -> mv_type = MV_TYPE_16X16 ;\n ff_h263_pred_motion ( s , 0 , 0 , & pred_x , & pred_y ) ;\n mx = ff_h263_decode_motion ( s , pred_x , s -> f_code ) ;\n if ( mx >= 0xffff ) return - 1 ;\n my = ff_h263_decode_motion ( s , pred_y , s -> f_code ) ;\n if ( my >= 0xffff ) return - 1 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = mx ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = my ;\n }\n }\n else {\n s -> current_picture . f . mb_type [ xy ] = MB_TYPE_8x8 | MB_TYPE_L0 ;\n s -> mv_type = MV_TYPE_8X8 ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n mot_val = ff_h263_pred_motion ( s , i , 0 , & pred_x , & pred_y ) ;\n mx = ff_h263_decode_motion ( s , pred_x , s -> f_code ) ;\n if ( mx >= 0xffff ) return - 1 ;\n my = ff_h263_decode_motion ( s , pred_y , s -> f_code ) ;\n if ( my >= 0xffff ) return - 1 ;\n s -> mv [ 0 ] [ i ] [ 0 ] = mx ;\n s -> mv [ 0 ] [ i ] [ 1 ] = my ;\n mot_val [ 0 ] = mx ;\n mot_val [ 1 ] = my ;\n }\n }\n }\n else if ( s -> pict_type == AV_PICTURE_TYPE_B ) {\n int modb1 ;\n int modb2 ;\n int mb_type ;\n s -> mb_intra = 0 ;\n s -> mcsel = 0 ;\n if ( s -> mb_x == 0 ) {\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n s -> last_mv [ i ] [ 0 ] [ 0 ] = s -> last_mv [ i ] [ 0 ] [ 1 ] = s -> last_mv [ i ] [ 1 ] [ 0 ] = s -> last_mv [ i ] [ 1 ] [ 1 ] = 0 ;\n }\n ff_thread_await_progress ( & s -> next_picture_ptr -> f , s -> mb_y , 0 ) ;\n }\n s -> mb_skipped = s -> next_picture . f . mbskip_table [ s -> mb_y * s -> mb_stride + s -> mb_x ] ;\n if ( s -> mb_skipped ) {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) s -> block_last_index [ i ] = - 1 ;\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = 0 ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = 0 ;\n s -> mv [ 1 ] [ 0 ] [ 0 ] = 0 ;\n s -> mv [ 1 ] [ 0 ] [ 1 ] = 0 ;\n s -> current_picture . f . mb_type [ xy ] = MB_TYPE_SKIP | MB_TYPE_16x16 | MB_TYPE_L0 ;\n goto end ;\n }\n modb1 = get_bits1 ( & s -> gb ) ;\n if ( modb1 ) {\n mb_type = MB_TYPE_DIRECT2 | MB_TYPE_SKIP | MB_TYPE_L0L1 ;\n cbp = 0 ;\n }\n else {\n modb2 = get_bits1 ( & s -> gb ) ;\n mb_type = get_vlc2 ( & s -> gb , mb_type_b_vlc . table , MB_TYPE_B_VLC_BITS , 1 ) ;\n if ( mb_type < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"illegal MB_type\\n\" ) ;\n return - 1 ;\n }\n mb_type = mb_type_b_map [ mb_type ] ;\n if ( modb2 ) cbp = 0 ;\n else {\n s -> dsp . clear_blocks ( s -> block [ 0 ] ) ;\n cbp = get_bits ( & s -> gb , 6 ) ;\n }\n if ( ( ! IS_DIRECT ( mb_type ) ) && cbp ) {\n if ( get_bits1 ( & s -> gb ) ) {\n ff_set_qscale ( s , s -> qscale + get_bits1 ( & s -> gb ) * 4 - 2 ) ;\n }\n }\n if ( ! s -> progressive_sequence ) {\n if ( cbp ) s -> interlaced_dct = get_bits1 ( & s -> gb ) ;\n if ( ! IS_DIRECT ( mb_type ) && get_bits1 ( & s -> gb ) ) {\n mb_type |= MB_TYPE_16x8 | MB_TYPE_INTERLACED ;\n mb_type &= ~ MB_TYPE_16x16 ;\n if ( USES_LIST ( mb_type , 0 ) ) {\n s -> field_select [ 0 ] [ 0 ] = get_bits1 ( & s -> gb ) ;\n s -> field_select [ 0 ] [ 1 ] = get_bits1 ( & s -> gb ) ;\n }\n if ( USES_LIST ( mb_type , 1 ) ) {\n s -> field_select [ 1 ] [ 0 ] = get_bits1 ( & s -> gb ) ;\n s -> field_select [ 1 ] [ 1 ] = get_bits1 ( & s -> gb ) ;\n }\n }\n }\n s -> mv_dir = 0 ;\n if ( ( mb_type & ( MB_TYPE_DIRECT2 | MB_TYPE_INTERLACED ) ) == 0 ) {\n s -> mv_type = MV_TYPE_16X16 ;\n if ( USES_LIST ( mb_type , 0 ) ) {\n s -> mv_dir = MV_DIR_FORWARD ;\n mx = ff_h263_decode_motion ( s , s -> last_mv [ 0 ] [ 0 ] [ 0 ] , s -> f_code ) ;\n my = ff_h263_decode_motion ( s , s -> last_mv [ 0 ] [ 0 ] [ 1 ] , s -> f_code ) ;\n s -> last_mv [ 0 ] [ 1 ] [ 0 ] = s -> last_mv [ 0 ] [ 0 ] [ 0 ] = s -> mv [ 0 ] [ 0 ] [ 0 ] = mx ;\n s -> last_mv [ 0 ] [ 1 ] [ 1 ] = s -> last_mv [ 0 ] [ 0 ] [ 1 ] = s -> mv [ 0 ] [ 0 ] [ 1 ] = my ;\n }\n if ( USES_LIST ( mb_type , 1 ) ) {\n s -> mv_dir |= MV_DIR_BACKWARD ;\n mx = ff_h263_decode_motion ( s , s -> last_mv [ 1 ] [ 0 ] [ 0 ] , s -> b_code ) ;\n my = ff_h263_decode_motion ( s , s -> last_mv [ 1 ] [ 0 ] [ 1 ] , s -> b_code ) ;\n s -> last_mv [ 1 ] [ 1 ] [ 0 ] = s -> last_mv [ 1 ] [ 0 ] [ 0 ] = s -> mv [ 1 ] [ 0 ] [ 0 ] = mx ;\n s -> last_mv [ 1 ] [ 1 ] [ 1 ] = s -> last_mv [ 1 ] [ 0 ] [ 1 ] = s -> mv [ 1 ] [ 0 ] [ 1 ] = my ;\n }\n }\n else if ( ! IS_DIRECT ( mb_type ) ) {\n s -> mv_type = MV_TYPE_FIELD ;\n if ( USES_LIST ( mb_type , 0 ) ) {\n s -> mv_dir = MV_DIR_FORWARD ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n mx = ff_h263_decode_motion ( s , s -> last_mv [ 0 ] [ i ] [ 0 ] , s -> f_code ) ;\n my = ff_h263_decode_motion ( s , s -> last_mv [ 0 ] [ i ] [ 1 ] / 2 , s -> f_code ) ;\n s -> last_mv [ 0 ] [ i ] [ 0 ] = s -> mv [ 0 ] [ i ] [ 0 ] = mx ;\n s -> last_mv [ 0 ] [ i ] [ 1 ] = ( s -> mv [ 0 ] [ i ] [ 1 ] = my ) * 2 ;\n }\n }\n if ( USES_LIST ( mb_type , 1 ) ) {\n s -> mv_dir |= MV_DIR_BACKWARD ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n mx = ff_h263_decode_motion ( s , s -> last_mv [ 1 ] [ i ] [ 0 ] , s -> b_code ) ;\n my = ff_h263_decode_motion ( s , s -> last_mv [ 1 ] [ i ] [ 1 ] / 2 , s -> b_code ) ;\n s -> last_mv [ 1 ] [ i ] [ 0 ] = s -> mv [ 1 ] [ i ] [ 0 ] = mx ;\n s -> last_mv [ 1 ] [ i ] [ 1 ] = ( s -> mv [ 1 ] [ i ] [ 1 ] = my ) * 2 ;\n }\n }\n }\n }\n if ( IS_DIRECT ( mb_type ) ) {\n if ( IS_SKIP ( mb_type ) ) mx = my = 0 ;\n else {\n mx = ff_h263_decode_motion ( s , 0 , 1 ) ;\n my = ff_h263_decode_motion ( s , 0 , 1 ) ;\n }\n s -> mv_dir = MV_DIR_FORWARD | MV_DIR_BACKWARD | MV_DIRECT ;\n mb_type |= ff_mpeg4_set_direct_mv ( s , mx , my ) ;\n }\n s -> current_picture . f . mb_type [ xy ] = mb_type ;\n }\n else {\n do {\n cbpc = get_vlc2 ( & s -> gb , ff_h263_intra_MCBPC_vlc . table , INTRA_MCBPC_VLC_BITS , 2 ) ;\n if ( cbpc < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"I cbpc damaged at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n }\n while ( cbpc == 8 ) ;\n dquant = cbpc & 4 ;\n s -> mb_intra = 1 ;\n intra : s -> ac_pred = get_bits1 ( & s -> gb ) ;\n if ( s -> ac_pred ) s -> current_picture . f . mb_type [ xy ] = MB_TYPE_INTRA | MB_TYPE_ACPRED ;\n else s -> current_picture . f . mb_type [ xy ] = MB_TYPE_INTRA ;\n cbpy = get_vlc2 ( & s -> gb , ff_h263_cbpy_vlc . table , CBPY_VLC_BITS , 1 ) ;\n if ( cbpy < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"I cbpy damaged at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n cbp = ( cbpc & 3 ) | ( cbpy << 2 ) ;\n s -> use_intra_dc_vlc = s -> qscale < s -> intra_dc_threshold ;\n if ( dquant ) {\n ff_set_qscale ( s , s -> qscale + quant_tab [ get_bits ( & s -> gb , 2 ) ] ) ;\n }\n if ( ! s -> progressive_sequence ) s -> interlaced_dct = get_bits1 ( & s -> gb ) ;\n s -> dsp . clear_blocks ( s -> block [ 0 ] ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( mpeg4_decode_block ( s , block [ i ] , i , cbp & 32 , 1 , 0 ) < 0 ) return - 1 ;\n cbp += cbp ;\n }\n goto end ;\n }\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( mpeg4_decode_block ( s , block [ i ] , i , cbp & 32 , 0 , 0 ) < 0 ) return - 1 ;\n cbp += cbp ;\n }\n end : if ( s -> codec_id == AV_CODEC_ID_MPEG4 ) {\n if ( mpeg4_is_resync ( s ) ) {\n const int delta = s -> mb_x + 1 == s -> mb_width ? 2 : 1 ;\n if ( s -> pict_type == AV_PICTURE_TYPE_B && s -> next_picture . f . mbskip_table [ xy + delta ] ) {\n ff_thread_await_progress ( & s -> next_picture_ptr -> f , ( s -> mb_x + delta >= s -> mb_width ) ? FFMIN ( s -> mb_y + 1 , s -> mb_height - 1 ) : s -> mb_y , 0 ) ;\n }\n if ( s -> pict_type == AV_PICTURE_TYPE_B && s -> next_picture . f . mbskip_table [ xy + delta ] ) return SLICE_OK ;\n return SLICE_END ;\n }\n }\n return SLICE_OK ;\n }"}
{"idx": 2620, "target": 0, "func": "int gx_device_adjust_resolution ( gx_device * dev , int actual_width , int actual_height , int fit ) {\n double width_ratio = ( double ) actual_width / dev -> width ;\n double height_ratio = ( double ) actual_height / dev -> height ;\n double ratio = ( fit ? min ( width_ratio , height_ratio ) : max ( width_ratio , height_ratio ) ) ;\n dev -> HWResolution [ 0 ] *= ratio ;\n dev -> HWResolution [ 1 ] *= ratio ;\n gx_device_set_width_height ( dev , actual_width , actual_height ) ;\n return 0 ;\n }"}
{"idx": 2621, "target": 0, "func": "int check_change_password ( THD * thd , const char * host , const char * user , char * new_password , uint new_password_len ) {\n if ( ! initialized ) {\n my_error ( ER_OPTION_PREVENTS_STATEMENT , MYF ( 0 ) , \"--skip-grant-tables\" ) ;\n return ( 1 ) ;\n }\n if ( ! thd -> slave_thread && ( strcmp ( thd -> security_ctx -> user , user ) || my_strcasecmp ( system_charset_info , host , thd -> security_ctx -> priv_host ) ) ) {\n if ( check_access ( thd , UPDATE_ACL , \"mysql\" , 0 , 1 , 0 , 0 ) ) return ( 1 ) ;\n }\n if ( ! thd -> slave_thread && ! thd -> security_ctx -> user [ 0 ] ) {\n my_message ( ER_PASSWORD_ANONYMOUS_USER , ER ( ER_PASSWORD_ANONYMOUS_USER ) , MYF ( 0 ) ) ;\n return ( 1 ) ;\n }\n size_t len = strlen ( new_password ) ;\n if ( len && len != SCRAMBLED_PASSWORD_CHAR_LENGTH && len != SCRAMBLED_PASSWORD_CHAR_LENGTH_323 ) {\n my_error ( ER_PASSWD_LENGTH , MYF ( 0 ) , SCRAMBLED_PASSWORD_CHAR_LENGTH ) ;\n return - 1 ;\n }\n return ( 0 ) ;\n }"}
{"idx": 2622, "target": 0, "func": "const char * TSHttpHdrHostGet ( TSMBuffer bufp , TSMLoc obj , int * length ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_http_hdr_handle ( obj ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) length ) == TS_SUCCESS ) ;\n HTTPHdr h ;\n SET_HTTP_HDR ( h , bufp , obj ) ;\n return h . host_get ( length ) ;\n }"}
{"idx": 2623, "target": 0, "func": "char * xmlrpc_double ( char * buf , double value ) {\n * buf = '\\0' ;\n snprintf ( buf , XMLRPC_BUFSIZE , \"<double>%g</double>\" , value ) ;\n return buf ;\n }"}
{"idx": 2624, "target": 0, "func": "void DMA_schedule ( int nchan ) {\n }"}
{"idx": 2625, "target": 1, "func": "void vp9_idct4x4_16_add_c ( const int16_t * input , uint8_t * dest , int stride ) {\n int16_t out [ 4 * 4 ] ;\n int16_t * outptr = out ;\n int i , j ;\n int16_t temp_in [ 4 ] , temp_out [ 4 ] ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) {\n idct4 ( input , outptr ) ;\n input += 4 ;\n outptr += 4 ;\n }\n for ( i = 0 ;\n i < 4 ;\n ++ i ) {\n for ( j = 0 ;\n j < 4 ;\n ++ j ) temp_in [ j ] = out [ j * 4 + i ] ;\n idct4 ( temp_in , temp_out ) ;\n for ( j = 0 ;\n j < 4 ;\n ++ j ) dest [ j * stride + i ] = clip_pixel ( ROUND_POWER_OF_TWO ( temp_out [ j ] , 4 ) + dest [ j * stride + i ] ) ;\n }\n }"}
{"idx": 2626, "target": 0, "func": "static void U_CALLCONV _CompoundText_GetUnicodeSet ( const UConverter * cnv , const USetAdder * sa , UConverterUnicodeSet which , UErrorCode * pErrorCode ) {\n UConverterDataCompoundText * myConverterData = ( UConverterDataCompoundText * ) cnv -> extraInfo ;\n int32_t i ;\n for ( i = 1 ;\n i < NUM_OF_CONVERTERS ;\n i ++ ) {\n ucnv_MBCSGetUnicodeSetForUnicode ( myConverterData -> myConverterArray [ i ] , sa , which , pErrorCode ) ;\n }\n sa -> add ( sa -> set , 0x0000 ) ;\n sa -> add ( sa -> set , 0x0009 ) ;\n sa -> add ( sa -> set , 0x000A ) ;\n sa -> addRange ( sa -> set , 0x0020 , 0x007F ) ;\n sa -> addRange ( sa -> set , 0x00A0 , 0x00FF ) ;\n }"}
{"idx": 2627, "target": 0, "func": "static int tablefilematch ( struct taboff * tab , FILE * ttc , struct alltabs * all , int pos ) {\n int i , ch1 , ch2 ;\n struct taboff * test ;\n unsigned len ;\n for ( i = 0 ;\n i < pos ;\n ++ i ) {\n test = findtabindir ( & all [ i ] . tabdir , tab -> tag ) ;\n if ( test == NULL || test -> data == ( void * ) ( intpt ) - 1 || test -> length != tab -> length ) continue ;\n rewind ( tab -> data ) ;\n fseek ( ttc , test -> offset , SEEK_SET ) ;\n for ( len = 0 ;\n len < tab -> length && ( ch1 = getc ( tab -> data ) ) != EOF && ( ch2 = getc ( ttc ) ) != EOF ;\n ++ len ) {\n if ( ch1 != ch2 ) break ;\n }\n if ( len == tab -> length ) {\n rewind ( tab -> data ) ;\n fseek ( ttc , 0 , SEEK_END ) ;\n return ( i ) ;\n }\n }\n rewind ( tab -> data ) ;\n fseek ( ttc , 0 , SEEK_END ) ;\n return ( - 1 ) ;\n }"}
{"idx": 2628, "target": 1, "func": "TEST_F ( AutocompleteResultTest , SortAndCullDuplicateSearchURLs ) {\n TemplateURLData url_data ;\n url_data . SetShortName ( base : : ASCIIToUTF16 ( \"unittest\" ) ) ;\n url_data . SetKeyword ( base : : ASCIIToUTF16 ( \"foo\" ) ) ;\n url_data . SetURL ( \"http://www.foo.com/s?q={\nsearchTerms}\n\" ) ;\n template_url_service_ . get ( ) -> Add ( new TemplateURL ( url_data ) ) ;\n TestData data [ ] = {\n {\n 0 , 1 , 1300 , true }\n , {\n 1 , 1 , 1200 , true }\n , {\n 2 , 1 , 1100 , true }\n , {\n 3 , 1 , 1000 , true }\n , {\n 4 , 2 , 900 , true }\n , }\n ;\n ACMatches matches ;\n PopulateAutocompleteMatches ( data , arraysize ( data ) , & matches ) ;\n matches [ 0 ] . destination_url = GURL ( \"http://www.foo.com/s?q=foo\" ) ;\n matches [ 1 ] . destination_url = GURL ( \"http://www.foo.com/s?q=foo2\" ) ;\n matches [ 2 ] . destination_url = GURL ( \"http://www.foo.com/s?q=foo&oq=f\" ) ;\n matches [ 3 ] . destination_url = GURL ( \"http://www.foo.com/s?q=foo&aqs=0\" ) ;\n matches [ 4 ] . destination_url = GURL ( \"http://www.foo.com/\" ) ;\n AutocompleteInput input ( base : : string16 ( ) , base : : string16 : : npos , std : : string ( ) , GURL ( ) , OmniboxEventProto : : INVALID_SPEC , false , false , false , true , false , TestSchemeClassifier ( ) ) ;\n AutocompleteResult result ;\n result . AppendMatches ( input , matches ) ;\n result . SortAndCull ( input , std : : string ( ) , template_url_service_ . get ( ) ) ;\n ASSERT_EQ ( 3U , result . size ( ) ) ;\n EXPECT_EQ ( \"http://www.foo.com/s?q=foo\" , result . match_at ( 0 ) -> destination_url . spec ( ) ) ;\n EXPECT_EQ ( 1300 , result . match_at ( 0 ) -> relevance ) ;\n EXPECT_EQ ( \"http://www.foo.com/s?q=foo2\" , result . match_at ( 1 ) -> destination_url . spec ( ) ) ;\n EXPECT_EQ ( 1200 , result . match_at ( 1 ) -> relevance ) ;\n EXPECT_EQ ( \"http://www.foo.com/\" , result . match_at ( 2 ) -> destination_url . spec ( ) ) ;\n EXPECT_EQ ( 900 , result . match_at ( 2 ) -> relevance ) ;\n }"}
{"idx": 2629, "target": 1, "func": "vpx_codec_err_t vpx_svc_set_quantizers ( SvcContext * svc_ctx , const char * quantizers ) {\n SvcInternal * const si = get_svc_internal ( svc_ctx ) ;\n if ( svc_ctx == NULL || quantizers == NULL || si == NULL ) {\n return VPX_CODEC_INVALID_PARAM ;\n }\n strncpy ( si -> quantizers , quantizers , sizeof ( si -> quantizers ) ) ;\n si -> quantizers [ sizeof ( si -> quantizers ) - 1 ] = '\\0' ;\n return VPX_CODEC_OK ;\n }"}
{"idx": 2630, "target": 0, "func": "static List * fetch_function_defaults ( HeapTuple func_tuple ) {\n List * defaults ;\n Datum proargdefaults ;\n bool isnull ;\n char * str ;\n proargdefaults = SysCacheGetAttr ( PROCOID , func_tuple , Anum_pg_proc_proargdefaults , & isnull ) ;\n if ( isnull ) elog ( ERROR , \"not enough default arguments\" ) ;\n str = TextDatumGetCString ( proargdefaults ) ;\n defaults = ( List * ) stringToNode ( str ) ;\n Assert ( IsA ( defaults , List ) ) ;\n pfree ( str ) ;\n return defaults ;\n }"}
{"idx": 2631, "target": 0, "func": "static void rate_block ( int plane , int block , BLOCK_SIZE plane_bsize , TX_SIZE tx_size , struct rdcost_block_args * args ) {\n int x_idx , y_idx ;\n txfrm_block_to_raster_xy ( plane_bsize , tx_size , block , & x_idx , & y_idx ) ;\n args -> rate = cost_coeffs ( args -> x , plane , block , args -> t_above + x_idx , args -> t_left + y_idx , tx_size , args -> so -> scan , args -> so -> neighbors , args -> use_fast_coef_costing ) ;\n }"}
{"idx": 2632, "target": 0, "func": "int ExecuteSqlCommandBuf ( Archive * AHX , const char * buf , size_t bufLen ) {\n ArchiveHandle * AH = ( ArchiveHandle * ) AHX ;\n if ( AH -> outputKind == OUTPUT_COPYDATA ) {\n if ( AH -> pgCopyIn && PQputCopyData ( AH -> connection , buf , bufLen ) <= 0 ) exit_horribly ( modulename , \"error returned by PQputCopyData: %s\" , PQerrorMessage ( AH -> connection ) ) ;\n }\n else if ( AH -> outputKind == OUTPUT_OTHERDATA ) {\n ExecuteSimpleCommands ( AH , buf , bufLen ) ;\n }\n else {\n if ( buf [ bufLen ] == '\\0' ) ExecuteSqlCommand ( AH , buf , \"could not execute query\" ) ;\n else {\n char * str = ( char * ) pg_malloc ( bufLen + 1 ) ;\n memcpy ( str , buf , bufLen ) ;\n str [ bufLen ] = '\\0' ;\n ExecuteSqlCommand ( AH , str , \"could not execute query\" ) ;\n free ( str ) ;\n }\n }\n return bufLen ;\n }"}
{"idx": 2633, "target": 0, "func": "static void window_reparent ( WINDOW_REC * win , MAIN_WINDOW_REC * mainwin ) {\n MAIN_WINDOW_REC * old_mainwin ;\n old_mainwin = WINDOW_MAIN ( win ) ;\n if ( old_mainwin != mainwin ) {\n gui_window_set_unsticky ( win ) ;\n if ( old_mainwin -> active == win ) {\n mainwindow_change_active ( old_mainwin , win ) ;\n if ( active_mainwin == NULL ) {\n active_mainwin = mainwin ;\n window_set_active ( mainwin -> active ) ;\n }\n }\n gui_window_reparent ( win , mainwin ) ;\n window_set_active ( win ) ;\n }\n }"}
{"idx": 2634, "target": 0, "func": "static void request_counter_add_request ( RequestCounter counter , Request request ) {\n guint i ;\n for ( i = 0 ;\n i < REQUEST_TYPE_LAST ;\n i ++ ) {\n if ( REQUEST_WANTS_TYPE ( request , i ) ) {\n counter [ i ] ++ ;\n }\n }\n }"}
{"idx": 2635, "target": 0, "func": "void vp9_fdct16x16_1_c ( const int16_t * input , tran_low_t * output , int stride ) {\n int r , c ;\n tran_low_t sum = 0 ;\n for ( r = 0 ;\n r < 16 ;\n ++ r ) for ( c = 0 ;\n c < 16 ;\n ++ c ) sum += input [ r * stride + c ] ;\n output [ 0 ] = sum >> 1 ;\n output [ 1 ] = 0 ;\n }"}
{"idx": 2636, "target": 0, "func": "SPL_METHOD ( SplFileInfo , __construct ) {\n spl_filesystem_object * intern ;\n char * path ;\n int len ;\n zend_error_handling error_handling ;\n zend_replace_error_handling ( EH_THROW , spl_ce_RuntimeException , & error_handling TSRMLS_CC ) ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"s\" , & path , & len ) == FAILURE ) {\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n return ;\n }\n intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n spl_filesystem_info_set_filename ( intern , path , len , 1 TSRMLS_CC ) ;\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n }"}
{"idx": 2637, "target": 0, "func": "void fz_set_icc_bgr ( fz_context * ctx , fz_colorspace * cs ) {\n fz_iccprofile * profile ;\n if ( cs == NULL || ! fz_colorspace_is_icc ( ctx , cs ) ) return ;\n profile = cs -> data ;\n profile -> bgr = 1 ;\n return ;\n }"}
{"idx": 2638, "target": 0, "func": "static void vc1_mc_1mv ( VC1Context * v , int dir ) {\n MpegEncContext * s = & v -> s ;\n DSPContext * dsp = & v -> s . dsp ;\n H264ChromaContext * h264chroma = & v -> h264chroma ;\n uint8_t * srcY , * srcU , * srcV ;\n int dxy , mx , my , uvmx , uvmy , src_x , src_y , uvsrc_x , uvsrc_y ;\n int off , off_uv ;\n int v_edge_pos = s -> v_edge_pos >> v -> field_mode ;\n if ( ( ! v -> field_mode || ( v -> ref_field_type [ dir ] == 1 && v -> cur_field_type == 1 ) ) && ! v -> s . last_picture . f . data [ 0 ] ) return ;\n mx = s -> mv [ dir ] [ 0 ] [ 0 ] ;\n my = s -> mv [ dir ] [ 0 ] [ 1 ] ;\n if ( s -> pict_type == AV_PICTURE_TYPE_P ) {\n s -> current_picture . motion_val [ 1 ] [ s -> block_index [ 0 ] + v -> blocks_off ] [ 0 ] = mx ;\n s -> current_picture . motion_val [ 1 ] [ s -> block_index [ 0 ] + v -> blocks_off ] [ 1 ] = my ;\n }\n uvmx = ( mx + ( ( mx & 3 ) == 3 ) ) >> 1 ;\n uvmy = ( my + ( ( my & 3 ) == 3 ) ) >> 1 ;\n v -> luma_mv [ s -> mb_x ] [ 0 ] = uvmx ;\n v -> luma_mv [ s -> mb_x ] [ 1 ] = uvmy ;\n if ( v -> field_mode && v -> cur_field_type != v -> ref_field_type [ dir ] ) {\n my = my - 2 + 4 * v -> cur_field_type ;\n uvmy = uvmy - 2 + 4 * v -> cur_field_type ;\n }\n if ( v -> fastuvmc && ( v -> fcm != ILACE_FRAME ) ) {\n uvmx = uvmx + ( ( uvmx < 0 ) ? ( uvmx & 1 ) : - ( uvmx & 1 ) ) ;\n uvmy = uvmy + ( ( uvmy < 0 ) ? ( uvmy & 1 ) : - ( uvmy & 1 ) ) ;\n }\n if ( v -> field_mode ) {\n if ( ! dir ) {\n if ( ( v -> cur_field_type != v -> ref_field_type [ dir ] ) && v -> cur_field_type ) {\n srcY = s -> current_picture . f . data [ 0 ] ;\n srcU = s -> current_picture . f . data [ 1 ] ;\n srcV = s -> current_picture . f . data [ 2 ] ;\n }\n else {\n srcY = s -> last_picture . f . data [ 0 ] ;\n srcU = s -> last_picture . f . data [ 1 ] ;\n srcV = s -> last_picture . f . data [ 2 ] ;\n }\n }\n else {\n srcY = s -> next_picture . f . data [ 0 ] ;\n srcU = s -> next_picture . f . data [ 1 ] ;\n srcV = s -> next_picture . f . data [ 2 ] ;\n }\n }\n else {\n if ( ! dir ) {\n srcY = s -> last_picture . f . data [ 0 ] ;\n srcU = s -> last_picture . f . data [ 1 ] ;\n srcV = s -> last_picture . f . data [ 2 ] ;\n }\n else {\n srcY = s -> next_picture . f . data [ 0 ] ;\n srcU = s -> next_picture . f . data [ 1 ] ;\n srcV = s -> next_picture . f . data [ 2 ] ;\n }\n }\n src_x = s -> mb_x * 16 + ( mx >> 2 ) ;\n src_y = s -> mb_y * 16 + ( my >> 2 ) ;\n uvsrc_x = s -> mb_x * 8 + ( uvmx >> 2 ) ;\n uvsrc_y = s -> mb_y * 8 + ( uvmy >> 2 ) ;\n if ( v -> profile != PROFILE_ADVANCED ) {\n src_x = av_clip ( src_x , - 16 , s -> mb_width * 16 ) ;\n src_y = av_clip ( src_y , - 16 , s -> mb_height * 16 ) ;\n uvsrc_x = av_clip ( uvsrc_x , - 8 , s -> mb_width * 8 ) ;\n uvsrc_y = av_clip ( uvsrc_y , - 8 , s -> mb_height * 8 ) ;\n }\n else {\n src_x = av_clip ( src_x , - 17 , s -> avctx -> coded_width ) ;\n src_y = av_clip ( src_y , - 18 , s -> avctx -> coded_height + 1 ) ;\n uvsrc_x = av_clip ( uvsrc_x , - 8 , s -> avctx -> coded_width >> 1 ) ;\n uvsrc_y = av_clip ( uvsrc_y , - 8 , s -> avctx -> coded_height >> 1 ) ;\n }\n srcY += src_y * s -> linesize + src_x ;\n srcU += uvsrc_y * s -> uvlinesize + uvsrc_x ;\n srcV += uvsrc_y * s -> uvlinesize + uvsrc_x ;\n if ( v -> field_mode && v -> ref_field_type [ dir ] ) {\n srcY += s -> current_picture_ptr -> f . linesize [ 0 ] ;\n srcU += s -> current_picture_ptr -> f . linesize [ 1 ] ;\n srcV += s -> current_picture_ptr -> f . linesize [ 2 ] ;\n }\n if ( s -> flags & CODEC_FLAG_GRAY ) {\n srcU = s -> edge_emu_buffer + 18 * s -> linesize ;\n srcV = s -> edge_emu_buffer + 18 * s -> linesize ;\n }\n if ( v -> rangeredfrm || ( v -> mv_mode == MV_PMODE_INTENSITY_COMP ) || s -> h_edge_pos < 22 || v_edge_pos < 22 || ( unsigned ) ( src_x - s -> mspel ) > s -> h_edge_pos - ( mx & 3 ) - 16 - s -> mspel * 3 || ( unsigned ) ( src_y - 1 ) > v_edge_pos - ( my & 3 ) - 16 - 3 ) {\n uint8_t * uvbuf = s -> edge_emu_buffer + 19 * s -> linesize ;\n srcY -= s -> mspel * ( 1 + s -> linesize ) ;\n s -> vdsp . emulated_edge_mc ( s -> edge_emu_buffer , srcY , s -> linesize , 17 + s -> mspel * 2 , 17 + s -> mspel * 2 , src_x - s -> mspel , src_y - s -> mspel , s -> h_edge_pos , v_edge_pos ) ;\n srcY = s -> edge_emu_buffer ;\n s -> vdsp . emulated_edge_mc ( uvbuf , srcU , s -> uvlinesize , 8 + 1 , 8 + 1 , uvsrc_x , uvsrc_y , s -> h_edge_pos >> 1 , v_edge_pos >> 1 ) ;\n s -> vdsp . emulated_edge_mc ( uvbuf + 16 , srcV , s -> uvlinesize , 8 + 1 , 8 + 1 , uvsrc_x , uvsrc_y , s -> h_edge_pos >> 1 , v_edge_pos >> 1 ) ;\n srcU = uvbuf ;\n srcV = uvbuf + 16 ;\n if ( v -> rangeredfrm ) {\n int i , j ;\n uint8_t * src , * src2 ;\n src = srcY ;\n for ( j = 0 ;\n j < 17 + s -> mspel * 2 ;\n j ++ ) {\n for ( i = 0 ;\n i < 17 + s -> mspel * 2 ;\n i ++ ) src [ i ] = ( ( src [ i ] - 128 ) >> 1 ) + 128 ;\n src += s -> linesize ;\n }\n src = srcU ;\n src2 = srcV ;\n for ( j = 0 ;\n j < 9 ;\n j ++ ) {\n for ( i = 0 ;\n i < 9 ;\n i ++ ) {\n src [ i ] = ( ( src [ i ] - 128 ) >> 1 ) + 128 ;\n src2 [ i ] = ( ( src2 [ i ] - 128 ) >> 1 ) + 128 ;\n }\n src += s -> uvlinesize ;\n src2 += s -> uvlinesize ;\n }\n }\n if ( v -> mv_mode == MV_PMODE_INTENSITY_COMP ) {\n int i , j ;\n uint8_t * src , * src2 ;\n src = srcY ;\n for ( j = 0 ;\n j < 17 + s -> mspel * 2 ;\n j ++ ) {\n for ( i = 0 ;\n i < 17 + s -> mspel * 2 ;\n i ++ ) src [ i ] = v -> luty [ src [ i ] ] ;\n src += s -> linesize ;\n }\n src = srcU ;\n src2 = srcV ;\n for ( j = 0 ;\n j < 9 ;\n j ++ ) {\n for ( i = 0 ;\n i < 9 ;\n i ++ ) {\n src [ i ] = v -> lutuv [ src [ i ] ] ;\n src2 [ i ] = v -> lutuv [ src2 [ i ] ] ;\n }\n src += s -> uvlinesize ;\n src2 += s -> uvlinesize ;\n }\n }\n srcY += s -> mspel * ( 1 + s -> linesize ) ;\n }\n if ( v -> field_mode && v -> cur_field_type ) {\n off = s -> current_picture_ptr -> f . linesize [ 0 ] ;\n off_uv = s -> current_picture_ptr -> f . linesize [ 1 ] ;\n }\n else {\n off = 0 ;\n off_uv = 0 ;\n }\n if ( s -> mspel ) {\n dxy = ( ( my & 3 ) << 2 ) | ( mx & 3 ) ;\n v -> vc1dsp . put_vc1_mspel_pixels_tab [ dxy ] ( s -> dest [ 0 ] + off , srcY , s -> linesize , v -> rnd ) ;\n v -> vc1dsp . put_vc1_mspel_pixels_tab [ dxy ] ( s -> dest [ 0 ] + off + 8 , srcY + 8 , s -> linesize , v -> rnd ) ;\n srcY += s -> linesize * 8 ;\n v -> vc1dsp . put_vc1_mspel_pixels_tab [ dxy ] ( s -> dest [ 0 ] + off + 8 * s -> linesize , srcY , s -> linesize , v -> rnd ) ;\n v -> vc1dsp . put_vc1_mspel_pixels_tab [ dxy ] ( s -> dest [ 0 ] + off + 8 * s -> linesize + 8 , srcY + 8 , s -> linesize , v -> rnd ) ;\n }\n else {\n dxy = ( my & 2 ) | ( ( mx & 2 ) >> 1 ) ;\n if ( ! v -> rnd ) dsp -> put_pixels_tab [ 0 ] [ dxy ] ( s -> dest [ 0 ] + off , srcY , s -> linesize , 16 ) ;\n else dsp -> put_no_rnd_pixels_tab [ 0 ] [ dxy ] ( s -> dest [ 0 ] + off , srcY , s -> linesize , 16 ) ;\n }\n if ( s -> flags & CODEC_FLAG_GRAY ) return ;\n uvmx = ( uvmx & 3 ) << 1 ;\n uvmy = ( uvmy & 3 ) << 1 ;\n if ( ! v -> rnd ) {\n h264chroma -> put_h264_chroma_pixels_tab [ 0 ] ( s -> dest [ 1 ] + off_uv , srcU , s -> uvlinesize , 8 , uvmx , uvmy ) ;\n h264chroma -> put_h264_chroma_pixels_tab [ 0 ] ( s -> dest [ 2 ] + off_uv , srcV , s -> uvlinesize , 8 , uvmx , uvmy ) ;\n }\n else {\n v -> vc1dsp . put_no_rnd_vc1_chroma_pixels_tab [ 0 ] ( s -> dest [ 1 ] + off_uv , srcU , s -> uvlinesize , 8 , uvmx , uvmy ) ;\n v -> vc1dsp . put_no_rnd_vc1_chroma_pixels_tab [ 0 ] ( s -> dest [ 2 ] + off_uv , srcV , s -> uvlinesize , 8 , uvmx , uvmy ) ;\n }\n }"}
{"idx": 2639, "target": 0, "func": "static void unfold_ifblk ( struct block * * blk ) {\n struct ifblock * ifblk ;\n struct unfold_elm * ue ;\n u_int32 a = vlabel ++ ;\n u_int32 b = vlabel ++ ;\n u_int32 c = vlabel ++ ;\n ef_debug ( 1 , \"#\" ) ;\n ifblk = ( * blk ) -> un . ifb ;\n unfold_conds ( ifblk -> conds , a , b ) ;\n SAFE_CALLOC ( ue , 1 , sizeof ( struct unfold_elm ) ) ;\n ue -> label = a ;\n TAILQ_INSERT_TAIL ( & unfolded_tree , ue , next ) ;\n if ( ifblk -> blk != NULL ) {\n unfold_blk ( & ifblk -> blk ) ;\n }\n if ( ifblk -> elseblk != NULL ) {\n SAFE_CALLOC ( ue , 1 , sizeof ( struct unfold_elm ) ) ;\n ue -> fop . opcode = FOP_JMP ;\n ue -> fop . op . jmp = c ;\n TAILQ_INSERT_TAIL ( & unfolded_tree , ue , next ) ;\n }\n SAFE_CALLOC ( ue , 1 , sizeof ( struct unfold_elm ) ) ;\n ue -> label = b ;\n TAILQ_INSERT_TAIL ( & unfolded_tree , ue , next ) ;\n if ( ifblk -> elseblk != NULL ) {\n unfold_blk ( & ifblk -> elseblk ) ;\n SAFE_CALLOC ( ue , 1 , sizeof ( struct unfold_elm ) ) ;\n ue -> label = c ;\n TAILQ_INSERT_TAIL ( & unfolded_tree , ue , next ) ;\n }\n }"}
{"idx": 2640, "target": 0, "func": "static int zvmstatus ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n gs_memory_status_t mstat , dstat ;\n gs_memory_status ( imemory , & mstat ) ;\n if ( imemory == imemory_global ) {\n gs_memory_status_t sstat ;\n gs_memory_status ( imemory_system , & sstat ) ;\n mstat . allocated += sstat . allocated ;\n mstat . used += sstat . used ;\n }\n gs_memory_status ( imemory -> non_gc_memory , & dstat ) ;\n push ( 3 ) ;\n make_int ( op - 2 , imemory_save_level ( iimemory_local ) ) ;\n make_int ( op - 1 , mstat . used ) ;\n make_int ( op , mstat . allocated + dstat . allocated - dstat . used ) ;\n return 0 ;\n }"}
{"idx": 2641, "target": 0, "func": "static int zcliprestore ( i_ctx_t * i_ctx_p ) {\n return gs_cliprestore ( igs ) ;\n }"}
{"idx": 2642, "target": 0, "func": "static int get_errno ( void ) {\n # ifndef _WIN32 if ( errno == 0 ) {\n XPR ( NT \"you found a bug: expected errno != 0\\n\" ) ;\n errno = XD3_INTERNAL ;\n }\n return errno ;\n # else DWORD err_num = GetLastError ( ) ;\n if ( err_num == NO_ERROR ) {\n err_num = XD3_INTERNAL ;\n }\n return err_num ;\n # endif }"}
{"idx": 2643, "target": 0, "func": "static gboolean gst_asf_demux_handle_seek_push ( GstASFDemux * demux , GstEvent * event ) {\n gdouble rate ;\n GstFormat format ;\n GstSeekFlags flags ;\n GstSeekType cur_type , stop_type ;\n gint64 cur , stop ;\n guint packet ;\n gboolean res ;\n GstEvent * byte_event ;\n gst_event_parse_seek ( event , & rate , & format , & flags , & cur_type , & cur , & stop_type , & stop ) ;\n stop_type = GST_SEEK_TYPE_NONE ;\n stop = - 1 ;\n GST_DEBUG_OBJECT ( demux , \"seeking to %\" GST_TIME_FORMAT , GST_TIME_ARGS ( cur ) ) ;\n if ( ! gst_asf_demux_seek_index_lookup ( demux , & packet , cur , NULL , NULL , FALSE , NULL ) ) {\n packet = ( guint ) gst_util_uint64_scale ( demux -> num_packets , cur , demux -> play_time ) ;\n }\n if ( packet > demux -> num_packets ) {\n GST_DEBUG_OBJECT ( demux , \"could not determine packet to seek to, \" \"seek aborted.\" ) ;\n return FALSE ;\n }\n GST_DEBUG_OBJECT ( demux , \"seeking to packet %d\" , packet ) ;\n cur = demux -> data_offset + ( ( guint64 ) packet * demux -> packet_size ) ;\n GST_DEBUG_OBJECT ( demux , \"Pushing BYTE seek rate %g, \" \"start %\" G_GINT64_FORMAT \", stop %\" G_GINT64_FORMAT , rate , cur , stop ) ;\n byte_event = gst_event_new_seek ( rate , GST_FORMAT_BYTES , flags , cur_type , cur , stop_type , stop ) ;\n gst_event_set_seqnum ( byte_event , gst_event_get_seqnum ( event ) ) ;\n res = gst_pad_push_event ( demux -> sinkpad , byte_event ) ;\n return res ;\n }"}
{"idx": 2644, "target": 0, "func": "void nautilus_file_operations_new_file_from_template ( GtkWidget * parent_view , GdkPoint * target_point , const char * parent_dir , const char * target_filename , const char * template_uri , NautilusCreateCallback done_callback , gpointer done_callback_data ) {\n GTask * task ;\n CreateJob * job ;\n GtkWindow * parent_window ;\n parent_window = NULL ;\n if ( parent_view ) {\n parent_window = ( GtkWindow * ) gtk_widget_get_ancestor ( parent_view , GTK_TYPE_WINDOW ) ;\n }\n job = op_job_new ( CreateJob , parent_window ) ;\n job -> done_callback = done_callback ;\n job -> done_callback_data = done_callback_data ;\n job -> dest_dir = g_file_new_for_uri ( parent_dir ) ;\n if ( target_point != NULL ) {\n job -> position = * target_point ;\n job -> has_position = TRUE ;\n }\n job -> filename = g_strdup ( target_filename ) ;\n if ( template_uri ) {\n job -> src = g_file_new_for_uri ( template_uri ) ;\n }\n if ( ! nautilus_file_undo_manager_is_operating ( ) ) {\n job -> common . undo_info = nautilus_file_undo_info_create_new ( NAUTILUS_FILE_UNDO_OP_CREATE_FILE_FROM_TEMPLATE ) ;\n }\n task = g_task_new ( NULL , job -> common . cancellable , create_task_done , job ) ;\n g_task_set_task_data ( task , job , NULL ) ;\n g_task_run_in_thread ( task , create_task_thread_func ) ;\n g_object_unref ( task ) ;\n }"}
{"idx": 2645, "target": 0, "func": "TEST_F ( NativeBackendLibsecretTest , AddDuplicateLogin ) {\n NativeBackendLibsecret backend ( 42 ) ;\n VerifiedAdd ( & backend , form_google_ ) ;\n PasswordStoreChangeList expected_changes ;\n expected_changes . push_back ( PasswordStoreChange ( PasswordStoreChange : : REMOVE , form_google_ ) ) ;\n form_google_ . times_used ++ ;\n form_google_ . submit_element = UTF8ToUTF16 ( \"submit2\" ) ;\n expected_changes . push_back ( PasswordStoreChange ( PasswordStoreChange : : ADD , form_google_ ) ) ;\n PasswordStoreChangeList actual_changes = backend . AddLogin ( form_google_ ) ;\n CheckPasswordChanges ( expected_changes , actual_changes ) ;\n EXPECT_EQ ( 1u , global_mock_libsecret_items -> size ( ) ) ;\n if ( ! global_mock_libsecret_items -> empty ( ) ) CheckMockSecretItem ( ( * global_mock_libsecret_items ) [ 0 ] , form_google_ , \"chrome-42\" ) ;\n }"}
{"idx": 2646, "target": 0, "func": "static void encode_signal_range ( VC2EncContext * s ) {\n put_bits ( & s -> pb , 1 , ! s -> strict_compliance ) ;\n if ( ! s -> strict_compliance ) put_vc2_ue_uint ( & s -> pb , s -> bpp_idx ) ;\n }"}
{"idx": 2647, "target": 0, "func": "static void manager_recv_cb ( EV_P_ ev_io * w , int revents ) {\n struct manager_ctx * manager = ( struct manager_ctx * ) w ;\n socklen_t len ;\n ssize_t r ;\n struct sockaddr_un claddr ;\n char buf [ BUF_SIZE ] ;\n memset ( buf , 0 , BUF_SIZE ) ;\n len = sizeof ( struct sockaddr_un ) ;\n r = recvfrom ( manager -> fd , buf , BUF_SIZE , 0 , ( struct sockaddr * ) & claddr , & len ) ;\n if ( r == - 1 ) {\n ERROR ( \"manager_recvfrom\" ) ;\n return ;\n }\n if ( r > BUF_SIZE / 2 ) {\n LOGE ( \"too large request: %d\" , ( int ) r ) ;\n return ;\n }\n char * action = get_action ( buf , r ) ;\n if ( action == NULL ) {\n return ;\n }\n if ( strcmp ( action , \"add\" ) == 0 ) {\n struct server * server = get_server ( buf , r ) ;\n if ( server == NULL || server -> port [ 0 ] == 0 || server -> password [ 0 ] == 0 ) {\n LOGE ( \"invalid command: %s:%s\" , buf , get_data ( buf , r ) ) ;\n if ( server != NULL ) {\n destroy_server ( server ) ;\n ss_free ( server ) ;\n }\n goto ERROR_MSG ;\n }\n remove_server ( working_dir , server -> port ) ;\n int ret = add_server ( manager , server ) ;\n char * msg ;\n int msg_len ;\n if ( ret == - 1 ) {\n msg = \"port is not available\" ;\n msg_len = 21 ;\n }\n else {\n msg = \"ok\" ;\n msg_len = 2 ;\n }\n if ( sendto ( manager -> fd , msg , msg_len , 0 , ( struct sockaddr * ) & claddr , len ) != 2 ) {\n ERROR ( \"add_sendto\" ) ;\n }\n }\n else if ( strcmp ( action , \"list\" ) == 0 ) {\n struct cork_hash_table_iterator iter ;\n struct cork_hash_table_entry * entry ;\n char buf [ BUF_SIZE ] ;\n memset ( buf , 0 , BUF_SIZE ) ;\n sprintf ( buf , \"[\" ) ;\n cork_hash_table_iterator_init ( server_table , & iter ) ;\n while ( ( entry = cork_hash_table_iterator_next ( & iter ) ) != NULL ) {\n struct server * server = ( struct server * ) entry -> value ;\n char * method = server -> method ? server -> method : manager -> method ;\n size_t pos = strlen ( buf ) ;\n size_t entry_len = strlen ( server -> port ) + strlen ( server -> password ) + strlen ( method ) ;\n if ( pos > BUF_SIZE - entry_len - 50 ) {\n if ( sendto ( manager -> fd , buf , pos , 0 , ( struct sockaddr * ) & claddr , len ) != pos ) {\n ERROR ( \"list_sendto\" ) ;\n }\n memset ( buf , 0 , BUF_SIZE ) ;\n pos = 0 ;\n }\n sprintf ( buf + pos , \"\\n\\t{\n\\\"server_port\\\":\\\"%s\\\",\\\"password\\\":\\\"%s\\\",\\\"method\\\":\\\"%s\\\"}\n,\" , server -> port , server -> password , method ) ;\n }\n size_t pos = strlen ( buf ) ;\n strcpy ( buf + pos - 1 , \"\\n]\" ) ;\n pos = strlen ( buf ) ;\n if ( sendto ( manager -> fd , buf , pos , 0 , ( struct sockaddr * ) & claddr , len ) != pos ) {\n ERROR ( \"list_sendto\" ) ;\n }\n }\n else if ( strcmp ( action , \"remove\" ) == 0 ) {\n struct server * server = get_server ( buf , r ) ;\n if ( server == NULL || server -> port [ 0 ] == 0 ) {\n LOGE ( \"invalid command: %s:%s\" , buf , get_data ( buf , r ) ) ;\n if ( server != NULL ) {\n destroy_server ( server ) ;\n ss_free ( server ) ;\n }\n goto ERROR_MSG ;\n }\n remove_server ( working_dir , server -> port ) ;\n destroy_server ( server ) ;\n ss_free ( server ) ;\n char msg [ 3 ] = \"ok\" ;\n if ( sendto ( manager -> fd , msg , 2 , 0 , ( struct sockaddr * ) & claddr , len ) != 2 ) {\n ERROR ( \"remove_sendto\" ) ;\n }\n }\n else if ( strcmp ( action , \"stat\" ) == 0 ) {\n char port [ 8 ] ;\n uint64_t traffic = 0 ;\n if ( parse_traffic ( buf , r , port , & traffic ) == - 1 ) {\n LOGE ( \"invalid command: %s:%s\" , buf , get_data ( buf , r ) ) ;\n return ;\n }\n update_stat ( port , traffic ) ;\n }\n else if ( strcmp ( action , \"ping\" ) == 0 ) {\n struct cork_hash_table_entry * entry ;\n struct cork_hash_table_iterator server_iter ;\n char buf [ BUF_SIZE ] ;\n memset ( buf , 0 , BUF_SIZE ) ;\n sprintf ( buf , \"stat: {\n\" ) ;\n cork_hash_table_iterator_init ( server_table , & server_iter ) ;\n while ( ( entry = cork_hash_table_iterator_next ( & server_iter ) ) != NULL ) {\n struct server * server = ( struct server * ) entry -> value ;\n size_t pos = strlen ( buf ) ;\n if ( pos > BUF_SIZE / 2 ) {\n buf [ pos - 1 ] = '}\n' ;\n if ( sendto ( manager -> fd , buf , pos , 0 , ( struct sockaddr * ) & claddr , len ) != pos ) {\n ERROR ( \"ping_sendto\" ) ;\n }\n memset ( buf , 0 , BUF_SIZE ) ;\n }\n else {\n sprintf ( buf + pos , \"\\\"%s\\\":%\" PRIu64 \",\" , server -> port , server -> traffic ) ;\n }\n }\n size_t pos = strlen ( buf ) ;\n if ( pos > 7 ) {\n buf [ pos - 1 ] = '}\n' ;\n }\n else {\n buf [ pos ] = '}\n' ;\n pos ++ ;\n }\n if ( sendto ( manager -> fd , buf , pos , 0 , ( struct sockaddr * ) & claddr , len ) != pos ) {\n ERROR ( \"ping_sendto\" ) ;\n }\n }\n return ;\n ERROR_MSG : strcpy ( buf , \"err\" ) ;\n if ( sendto ( manager -> fd , buf , 3 , 0 , ( struct sockaddr * ) & claddr , len ) != 3 ) {\n ERROR ( \"error_sendto\" ) ;\n }\n }"}
{"idx": 2648, "target": 0, "func": "static int ts_lua_http_server_packet_tos_set ( lua_State * L ) {\n int value ;\n ts_lua_http_ctx * http_ctx ;\n GET_HTTP_CONTEXT ( http_ctx , L ) ;\n value = luaL_checkinteger ( L , 1 ) ;\n TSDebug ( TS_LUA_DEBUG_TAG , \"server packet tos set\" ) ;\n TSHttpTxnServerPacketTosSet ( http_ctx -> txnp , value ) ;\n return 0 ;\n }"}
{"idx": 2649, "target": 1, "func": "void registerSimpleTypes ( int proto ) {\n expert_module_t * expert_proto ;\n static hf_register_info hf [ ] = {\n {\n & hf_opcua_diag_mask , {\n \"EncodingMask\" , \"opcua.diag.mask\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_diag_mask_symbolicflag , {\n \"has symbolic id\" , \"opcua.diag.has_symbolic_id\" , FT_BOOLEAN , 8 , NULL , DIAGNOSTICINFO_ENCODINGMASK_SYMBOLICID_FLAG , NULL , HFILL }\n }\n , {\n & hf_opcua_diag_mask_namespaceflag , {\n \"has namespace\" , \"opcua.diag.has_namespace\" , FT_BOOLEAN , 8 , NULL , DIAGNOSTICINFO_ENCODINGMASK_NAMESPACE_FLAG , NULL , HFILL }\n }\n , {\n & hf_opcua_diag_mask_localizedtextflag , {\n \"has localizedtext\" , \"opcua.diag.has_localizedtext\" , FT_BOOLEAN , 8 , NULL , DIAGNOSTICINFO_ENCODINGMASK_LOCALIZEDTEXT_FLAG , NULL , HFILL }\n }\n , {\n & hf_opcua_diag_mask_localeflag , {\n \"has locale\" , \"opcua.diag.has_locale\" , FT_BOOLEAN , 8 , NULL , DIAGNOSTICINFO_ENCODINGMASK_LOCALE_FLAG , NULL , HFILL }\n }\n , {\n & hf_opcua_diag_mask_additionalinfoflag , {\n \"has additional info\" , \"opcua.diag.has_additional_info\" , FT_BOOLEAN , 8 , NULL , DIAGNOSTICINFO_ENCODINGMASK_ADDITIONALINFO_FLAG , NULL , HFILL }\n }\n , {\n & hf_opcua_diag_mask_innerstatuscodeflag , {\n \"has inner statuscode\" , \"opcua.diag.has_inner_statuscode\" , FT_BOOLEAN , 8 , NULL , DIAGNOSTICINFO_ENCODINGMASK_INNERSTATUSCODE_FLAG , NULL , HFILL }\n }\n , {\n & hf_opcua_diag_mask_innerdiaginfoflag , {\n \"has inner diagnostic info\" , \"opcua.diag.has_inner_diagnostic_code\" , FT_BOOLEAN , 8 , NULL , DIAGNOSTICINFO_ENCODINGMASK_INNERDIAGNOSTICINFO_FLAG , NULL , HFILL }\n }\n , {\n & hf_opcua_loctext_mask , {\n \"EncodingMask\" , \"opcua.loctext.mask\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_loctext_mask_localeflag , {\n \"has locale information\" , \"opcua.loctext.has_locale_information\" , FT_BOOLEAN , 8 , NULL , LOCALIZEDTEXT_ENCODINGBYTE_LOCALE , NULL , HFILL }\n }\n , {\n & hf_opcua_loctext_mask_textflag , {\n \"has text\" , \"opcua.loctext.has_text\" , FT_BOOLEAN , 8 , NULL , LOCALIZEDTEXT_ENCODINGBYTE_TEXT , NULL , HFILL }\n }\n , {\n & hf_opcua_nodeid_encodingmask , {\n \"EncodingMask\" , \"opcua.nodeid.encodingmask\" , FT_UINT8 , BASE_HEX , VALS ( g_nodeidmasks ) , 0x0F , NULL , HFILL }\n }\n , {\n & hf_opcua_nodeid_nsindex , {\n \"Namespace Index\" , \"opcua.nodeid.nsindex\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_nodeid_numeric , {\n \"Identifier Numeric\" , \"opcua.nodeid.numeric\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_nodeid_string , {\n \"Identifier String\" , \"opcua.nodeid.string\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_nodeid_guid , {\n \"Identifier Guid\" , \"opcua.nodeid.guid\" , FT_GUID , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_nodeid_bytestring , {\n \"Identifier ByteString\" , \"opcua.nodeid.bytestring\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_expandednodeid_mask , {\n \"EncodingMask\" , \"opcua.expandednodeid.mask\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_expandednodeid_mask_namespaceuri , {\n \"has namespace uri\" , \"opcua.expandednodeid.has_namespace_uri\" , FT_BOOLEAN , 8 , NULL , NODEID_NAMESPACEURIFLAG , NULL , HFILL }\n }\n , {\n & hf_opcua_expandednodeid_mask_serverindex , {\n \"has server index\" , \"opcua.expandednodeid.has_server_index\" , FT_BOOLEAN , 8 , NULL , NODEID_SERVERINDEXFLAG , NULL , HFILL }\n }\n , {\n & hf_opcua_localizedtext_locale , {\n \"Locale\" , \"opcua.loctext.Locale\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_localizedtext_text , {\n \"Text\" , \"opcua.loctext.Text\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_qualifiedname_id , {\n \"Id\" , \"opcua.qualname.Id\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_qualifiedname_name , {\n \"Name\" , \"opcua.qualname.Name\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_datavalue_mask , {\n \"EncodingMask\" , \"opcua.datavalue.mask\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_datavalue_mask_valueflag , {\n \"has value\" , \"opcua.datavalue.has_value\" , FT_BOOLEAN , 8 , NULL , DATAVALUE_ENCODINGBYTE_VALUE , NULL , HFILL }\n }\n , {\n & hf_opcua_datavalue_mask_statuscodeflag , {\n \"has statuscode\" , \"opcua.datavalue.has_statuscode\" , FT_BOOLEAN , 8 , NULL , DATAVALUE_ENCODINGBYTE_STATUSCODE , NULL , HFILL }\n }\n , {\n & hf_opcua_datavalue_mask_sourcetimestampflag , {\n \"has source timestamp\" , \"opcua.datavalue.has_source_timestamp\" , FT_BOOLEAN , 8 , NULL , DATAVALUE_ENCODINGBYTE_SOURCETIMESTAMP , NULL , HFILL }\n }\n , {\n & hf_opcua_datavalue_mask_servertimestampflag , {\n \"has server timestamp\" , \"opcua.datavalue.has_server_timestamp\" , FT_BOOLEAN , 8 , NULL , DATAVALUE_ENCODINGBYTE_SERVERTIMESTAMP , NULL , HFILL }\n }\n , {\n & hf_opcua_datavalue_mask_sourcepicoseconds , {\n \"has source picoseconds\" , \"opcua.datavalue.has_source_picoseconds\" , FT_BOOLEAN , 8 , NULL , DATAVALUE_ENCODINGBYTE_SOURCEPICOSECONDS , NULL , HFILL }\n }\n , {\n & hf_opcua_datavalue_mask_serverpicoseconds , {\n \"has server picoseconds\" , \"opcua.datavalue.has_server_picoseconds\" , FT_BOOLEAN , 8 , NULL , DATAVALUE_ENCODINGBYTE_SERVERPICOSECONDS , NULL , HFILL }\n }\n , {\n & hf_opcua_variant_encodingmask , {\n \"Variant Type\" , \"opcua.variant.has_value\" , FT_UINT8 , BASE_HEX , VALS ( g_VariantTypes ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_SourceTimestamp , {\n \"SourceTimestamp\" , \"opcua.datavalue.SourceTimestamp\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_LOCAL , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_SourcePicoseconds , {\n \"SourcePicoseconds\" , \"opcua.datavalue.SourcePicoseconds\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_ServerTimestamp , {\n \"ServerTimestamp\" , \"opcua.datavalue.ServerTimestamp\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_LOCAL , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_ServerPicoseconds , {\n \"ServerPicoseconds\" , \"opcua.datavalue.ServerPicoseconds\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_diag_symbolicid , {\n \"SymbolicId\" , \"opcua.diag.SymbolicId\" , FT_INT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_diag_namespace , {\n \"Namespace\" , \"opcua.diag.Namespace\" , FT_INT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_diag_localizedtext , {\n \"LocalizedText\" , \"opcua.diag.LocalizedText\" , FT_INT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_diag_locale , {\n \"Locale\" , \"opcua.diag.Locale\" , FT_INT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_diag_additionalinfo , {\n \"AdditionalInfo\" , \"opcua.diag.AdditionalInfo\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_diag_innerstatuscode , {\n \"InnerStatusCode\" , \"opcua.diag.InnerStatusCode\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_extobj_mask , {\n \"EncodingMask\" , \"opcua.extobj.mask\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_extobj_mask_binbodyflag , {\n \"has binary body\" , \"opcua.extobj.has_binary_body\" , FT_BOOLEAN , 8 , NULL , EXTOBJ_ENCODINGMASK_BINBODY_FLAG , NULL , HFILL }\n }\n , {\n & hf_opcua_extobj_mask_xmlbodyflag , {\n \"has xml body\" , \"opcua.extobj.has_xml_body\" , FT_BOOLEAN , 8 , NULL , EXTOBJ_ENCODINGMASK_XMLBODY_FLAG , NULL , HFILL }\n }\n , {\n & hf_opcua_ArraySize , {\n \"ArraySize\" , \"opcua.variant.ArraySize\" , FT_INT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_ServerIndex , {\n \"ServerIndex\" , \"opcua.expandednodeid.ServerIndex\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_status_StructureChanged , {\n \"StructureChanged\" , \"opcua.statuscode.structureChanged\" , FT_BOOLEAN , 16 , NULL , STATUSCODE_STRUCTURECHANGED , NULL , HFILL }\n }\n , {\n & hf_opcua_status_SemanticsChanged , {\n \"SemanticsChanged\" , \"opcua.statuscode.semanticsChanged\" , FT_BOOLEAN , 16 , NULL , STATUSCODE_SEMANTICSCHANGED , NULL , HFILL }\n }\n , {\n & hf_opcua_status_InfoBit_Limit_Overflow , {\n \"Overflow\" , \"opcua.statuscode.overflow\" , FT_BOOLEAN , 16 , NULL , STATUSCODE_INFOBIT_OVERFLOW , NULL , HFILL }\n }\n , {\n & hf_opcua_status_InfoBit_Historian_Partial , {\n \"HistorianBit: Partial\" , \"opcua.statuscode.historian.partial\" , FT_BOOLEAN , 16 , NULL , STATUSCODE_INFOBIT_HISTORIAN_PARTIAL , NULL , HFILL }\n }\n , {\n & hf_opcua_status_InfoBit_Historian_ExtraData , {\n \"HistorianBit: ExtraData\" , \"opcua.statuscode.historian.extraData\" , FT_BOOLEAN , 16 , NULL , STATUSCODE_INFOBIT_HISTORIAN_EXTRADATA , NULL , HFILL }\n }\n , {\n & hf_opcua_status_InfoBit_Historian_MultiValue , {\n \"HistorianBit: MultiValue\" , \"opcua.statuscode.historian.multiValue\" , FT_BOOLEAN , 16 , NULL , STATUSCODE_INFOBIT_HISTORIAN_MULTIVALUE , NULL , HFILL }\n }\n , {\n & hf_opcua_status_InfoType , {\n \"InfoType\" , \"opcua.statuscode.infoType\" , FT_UINT16 , BASE_HEX , VALS ( g_infotype ) , 0x0C00 , NULL , HFILL }\n }\n , {\n & hf_opcua_status_Limit , {\n \"Limit\" , \"opcua.statuscode.limit\" , FT_UINT16 , BASE_HEX , VALS ( g_limit ) , 0x0300 , NULL , HFILL }\n }\n , {\n & hf_opcua_status_Historian , {\n \"Historian\" , \"opcua.statuscode.historian\" , FT_UINT16 , BASE_HEX , VALS ( g_historian ) , 0x0003 , NULL , HFILL }\n }\n , {\n & hf_opcua_returnDiag , {\n \"Return Diagnostics\" , \"opcua.returndiag\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_returnDiag_mask_sl_symbolicId , {\n \"ServiceLevel / SymbolicId\" , \"opcua.returndiag.servicelevel.symbolicid\" , FT_BOOLEAN , 16 , NULL , RETURNDIAGNOSTICS_SERVICELEVEL_SYMBOLICID , NULL , HFILL }\n }\n , {\n & hf_opcua_returnDiag_mask_sl_localizedText , {\n \"ServiceLevel / LocalizedText\" , \"opcua.returndiag.servicelevel.localizedtext\" , FT_BOOLEAN , 16 , NULL , RETURNDIAGNOSTICS_SERVICELEVEL_LOCALIZEDTEXT , NULL , HFILL }\n }\n , {\n & hf_opcua_returnDiag_mask_sl_additionalinfo , {\n \"ServiceLevel / AdditionalInfo\" , \"opcua.returndiag.servicelevel.additionalinfo\" , FT_BOOLEAN , 16 , NULL , RETURNDIAGNOSTICS_SERVICELEVEL_ADDITIONALINFO , NULL , HFILL }\n }\n , {\n & hf_opcua_returnDiag_mask_sl_innerstatuscode , {\n \"ServiceLevel / Inner StatusCode\" , \"opcua.returndiag.servicelevel.innerstatuscode\" , FT_BOOLEAN , 16 , NULL , RETURNDIAGNOSTICS_SERVICELEVEL_INNERSTATUSCODE , NULL , HFILL }\n }\n , {\n & hf_opcua_returnDiag_mask_sl_innerdiagnostics , {\n \"ServiceLevel / Inner Diagnostics\" , \"opcua.returndiag.servicelevel.innerdiagnostics\" , FT_BOOLEAN , 16 , NULL , RETURNDIAGNOSTICS_SERVICELEVEL_INNERDIAGNOSTICS , NULL , HFILL }\n }\n , {\n & hf_opcua_returnDiag_mask_ol_symbolicId , {\n \"OperationLevel / SymbolicId\" , \"opcua.returndiag.operationlevel.symbolicid\" , FT_BOOLEAN , 16 , NULL , RETURNDIAGNOSTICS_OPERATIONLEVEL_SYMBOLICID , NULL , HFILL }\n }\n , {\n & hf_opcua_returnDiag_mask_ol_localizedText , {\n \"OperationLevel / LocalizedText\" , \"opcua.returndiag.operationlevel.localizedtext\" , FT_BOOLEAN , 16 , NULL , RETURNDIAGNOSTICS_OPERATIONLEVEL_LOCALIZEDTEXT , NULL , HFILL }\n }\n , {\n & hf_opcua_returnDiag_mask_ol_additionalinfo , {\n \"OperationLevel / AdditionalInfo\" , \"opcua.returndiag.operationlevel.additionalinfo\" , FT_BOOLEAN , 16 , NULL , RETURNDIAGNOSTICS_OPERATIONLEVEL_ADDITIONALINFO , NULL , HFILL }\n }\n , {\n & hf_opcua_returnDiag_mask_ol_innerstatuscode , {\n \"OperationLevel / Inner StatusCode\" , \"opcua.returndiag.operationlevel.innerstatuscode\" , FT_BOOLEAN , 16 , NULL , RETURNDIAGNOSTICS_OPERATIONLEVEL_INNERSTATUSCODE , NULL , HFILL }\n }\n , {\n & hf_opcua_returnDiag_mask_ol_innerdiagnostics , {\n \"OperationLevel / Inner Diagnostics\" , \"opcua.returndiag.operationlevel.innerdiagnostics\" , FT_BOOLEAN , 16 , NULL , RETURNDIAGNOSTICS_OPERATIONLEVEL_INNERDIAGNOSTICS , NULL , HFILL }\n }\n , {\n & hf_opcua_nodeClassMask , {\n \"Node Class Mask\" , \"opcua.nodeclassmask\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_nodeClassMask_all , {\n \"Node Class Mask\" , \"opcua.nodeclassmask.all\" , FT_UINT32 , BASE_HEX , VALS ( g_NodeClassMask ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_nodeClassMask_object , {\n \"Object\" , \"opcua.nodeclassmask.object\" , FT_BOOLEAN , 16 , NULL , NODECLASSMASK_OBJECT , NULL , HFILL }\n }\n , {\n & hf_opcua_nodeClassMask_variable , {\n \"Variable\" , \"opcua.nodeclassmask.variable\" , FT_BOOLEAN , 16 , NULL , NODECLASSMASK_VARIABLE , NULL , HFILL }\n }\n , {\n & hf_opcua_nodeClassMask_method , {\n \"Method\" , \"opcua.nodeclassmask.method\" , FT_BOOLEAN , 16 , NULL , NODECLASSMASK_METHOD , NULL , HFILL }\n }\n , {\n & hf_opcua_nodeClassMask_objecttype , {\n \"ObjectType\" , \"opcua.nodeclassmask.objecttype\" , FT_BOOLEAN , 16 , NULL , NODECLASSMASK_OBJECTTYPE , NULL , HFILL }\n }\n , {\n & hf_opcua_nodeClassMask_variabletype , {\n \"VariableType\" , \"opcua.nodeclassmask.variabletype\" , FT_BOOLEAN , 16 , NULL , NODECLASSMASK_VARIABLETYPE , NULL , HFILL }\n }\n , {\n & hf_opcua_nodeClassMask_referencetype , {\n \"ReferenceType\" , \"opcua.nodeclassmask.referencetype\" , FT_BOOLEAN , 16 , NULL , NODECLASSMASK_REFERENCETYPE , NULL , HFILL }\n }\n , {\n & hf_opcua_nodeClassMask_datatype , {\n \"DataType\" , \"opcua.nodeclassmask.datatype\" , FT_BOOLEAN , 16 , NULL , NODECLASSMASK_DATATYPE , NULL , HFILL }\n }\n , {\n & hf_opcua_nodeClassMask_view , {\n \"View\" , \"opcua.nodeclassmask.view\" , FT_BOOLEAN , 16 , NULL , NODECLASSMASK_VIEW , NULL , HFILL }\n }\n , {\n & hf_opcua_resultMask , {\n \"Result Mask\" , \"opcua.resultmask\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_opcua_resultMask_referencetype , {\n \"Reference Type\" , \"opcua.resultmask.referencetype\" , FT_BOOLEAN , 16 , NULL , RESULTMASK_REFERENCETYPE , NULL , HFILL }\n }\n , {\n & hf_opcua_resultMask_isforward , {\n \"Is Forward\" , \"opcua.resultmask.isforward\" , FT_BOOLEAN , 16 , NULL , RESULTMASK_ISFORWARD , NULL , HFILL }\n }\n , {\n & hf_opcua_resultMask_nodeclass , {\n \"Node Class\" , \"opcua.resultmask.nodeclass\" , FT_BOOLEAN , 16 , NULL , RESULTMASK_NODECLASS , NULL , HFILL }\n }\n , {\n & hf_opcua_resultMask_browsename , {\n \"Browse Name\" , \"opcua.resultmask.browsename\" , FT_BOOLEAN , 16 , NULL , RESULTMASK_BROWSENAME , NULL , HFILL }\n }\n , {\n & hf_opcua_resultMask_displayname , {\n \"Display Name\" , \"opcua.resultmask.displayname\" , FT_BOOLEAN , 16 , NULL , RESULTMASK_DISPLAYNAME , NULL , HFILL }\n }\n , {\n & hf_opcua_resultMask_typedefinition , {\n \"Type Definiton\" , \"opcua.resultmask.typedefinition\" , FT_BOOLEAN , 16 , NULL , RESULTMASK_TYPEDEFINITION , NULL , HFILL }\n }\n , {\n & hf_opcua_resultMask_all , {\n \"Result Mask\" , \"opcua.resultmask.all\" , FT_UINT32 , BASE_HEX , VALS ( g_ResultMask ) , 0x0 , NULL , HFILL }\n }\n , }\n ;\n static ei_register_info ei [ ] = {\n {\n & ei_array_length , {\n \"opcua.array.length\" , PI_UNDECODED , PI_ERROR , \"Max array length exceeded\" , EXPFILL }\n }\n , }\n ;\n proto_register_field_array ( proto , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n expert_proto = expert_register_protocol ( proto ) ;\n expert_register_field_array ( expert_proto , ei , array_length ( ei ) ) ;\n }"}
{"idx": 2650, "target": 0, "func": "int wpa_decrypt ( u_char * mac , u_char * data , size_t len , struct wpa_sa sa ) {\n if ( sa . algo == WPA_KEY_CCMP ) {\n return wpa_ccmp_decrypt ( mac , data , len , sa ) ;\n }\n else if ( sa . algo == WPA_KEY_TKIP ) {\n return wpa_tkip_decrypt ( mac , data , len , sa ) ;\n }\n return - E_NOTHANDLED ;\n }"}
{"idx": 2651, "target": 0, "func": "static void constrain_line ( int x_0 , int * x_1 , int y_0 , int * y_1 , int width , int height ) {\n int dx ;\n int dy ;\n if ( * x_1 > width ) {\n dx = * x_1 - x_0 ;\n dy = * y_1 - y_0 ;\n * x_1 = width ;\n if ( dx ) * y_1 = ( ( width - x_0 ) * dy ) / dx + y_0 ;\n }\n if ( * x_1 < 0 ) {\n dx = * x_1 - x_0 ;\n dy = * y_1 - y_0 ;\n * x_1 = 0 ;\n if ( dx ) * y_1 = ( ( 0 - x_0 ) * dy ) / dx + y_0 ;\n }\n if ( * y_1 > height ) {\n dx = * x_1 - x_0 ;\n dy = * y_1 - y_0 ;\n * y_1 = height ;\n if ( dy ) * x_1 = ( ( height - y_0 ) * dx ) / dy + x_0 ;\n }\n if ( * y_1 < 0 ) {\n dx = * x_1 - x_0 ;\n dy = * y_1 - y_0 ;\n * y_1 = 0 ;\n if ( dy ) * x_1 = ( ( 0 - y_0 ) * dx ) / dy + x_0 ;\n }\n }"}
{"idx": 2652, "target": 0, "func": "int vp8_yv12_realloc_frame_buffer ( YV12_BUFFER_CONFIG * ybf , int width , int height , int border ) {\n if ( ybf ) {\n int aligned_width = ( width + 15 ) & ~ 15 ;\n int aligned_height = ( height + 15 ) & ~ 15 ;\n int y_stride = ( ( aligned_width + 2 * border ) + 31 ) & ~ 31 ;\n int yplane_size = ( aligned_height + 2 * border ) * y_stride ;\n int uv_width = aligned_width >> 1 ;\n int uv_height = aligned_height >> 1 ;\n int uv_stride = y_stride >> 1 ;\n int uvplane_size = ( uv_height + border ) * uv_stride ;\n const int frame_size = yplane_size + 2 * uvplane_size ;\n if ( ! ybf -> buffer_alloc ) {\n ybf -> buffer_alloc = ( uint8_t * ) vpx_memalign ( 32 , frame_size ) ;\n ybf -> buffer_alloc_sz = frame_size ;\n }\n if ( ! ybf -> buffer_alloc || ybf -> buffer_alloc_sz < frame_size ) return - 1 ;\n if ( border & 0x1f ) return - 3 ;\n ybf -> y_crop_width = width ;\n ybf -> y_crop_height = height ;\n ybf -> y_width = aligned_width ;\n ybf -> y_height = aligned_height ;\n ybf -> y_stride = y_stride ;\n ybf -> uv_crop_width = ( width + 1 ) / 2 ;\n ybf -> uv_crop_height = ( height + 1 ) / 2 ;\n ybf -> uv_width = uv_width ;\n ybf -> uv_height = uv_height ;\n ybf -> uv_stride = uv_stride ;\n ybf -> alpha_width = 0 ;\n ybf -> alpha_height = 0 ;\n ybf -> alpha_stride = 0 ;\n ybf -> border = border ;\n ybf -> frame_size = frame_size ;\n ybf -> y_buffer = ybf -> buffer_alloc + ( border * y_stride ) + border ;\n ybf -> u_buffer = ybf -> buffer_alloc + yplane_size + ( border / 2 * uv_stride ) + border / 2 ;\n ybf -> v_buffer = ybf -> buffer_alloc + yplane_size + uvplane_size + ( border / 2 * uv_stride ) + border / 2 ;\n ybf -> alpha_buffer = NULL ;\n ybf -> corrupted = 0 ;\n return 0 ;\n }\n return - 2 ;\n }"}
{"idx": 2653, "target": 0, "func": "static void create_pmid_to_name_map_from_candidates ( pcp_conv_info_t * pcp_conv_info , tvbuff_t * tvb , int offset , guint32 num_ids ) {\n guint32 i ;\n for ( i = 0 ;\n i < num_ids ;\n i ++ ) {\n guint32 pmid ;\n guint8 * pmid_name ;\n pmid = tvb_get_ntohl ( tvb , offset ) ;\n pmid_name = * ( guint8 * * ) wmem_array_index ( pcp_conv_info -> pmid_name_candidates , i ) ;\n if ( wmem_map_lookup ( pcp_conv_info -> pmid_to_name , GINT_TO_POINTER ( pmid ) ) == NULL ) {\n wmem_map_insert ( pcp_conv_info -> pmid_to_name , GINT_TO_POINTER ( pmid ) , pmid_name ) ;\n }\n offset += 4 ;\n }\n }"}
{"idx": 2654, "target": 0, "func": "static unsigned char conv_ascii2bin ( unsigned char a ) {\n if ( a & 0x80 ) return B64_ERROR ;\n return data_ascii2bin [ a ] ;\n }"}
{"idx": 2655, "target": 0, "func": "static float stability_factor ( const float * isf , const float * isf_past ) {\n int i ;\n float acc = 0.0 ;\n for ( i = 0 ;\n i < LP_ORDER - 1 ;\n i ++ ) acc += ( isf [ i ] - isf_past [ i ] ) * ( isf [ i ] - isf_past [ i ] ) ;\n return FFMAX ( 0.0 , 1.25 - acc * 0.8 * 512 ) ;\n }"}
{"idx": 2656, "target": 0, "func": "static void * Type_Curve_Read ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number * nItems , cmsUInt32Number SizeOfTag ) {\n cmsUInt32Number Count ;\n cmsToneCurve * NewGamma ;\n * nItems = 0 ;\n if ( ! _cmsReadUInt32Number ( io , & Count ) ) return NULL ;\n switch ( Count ) {\n case 0 : {\n cmsFloat64Number SingleGamma = 1.0 ;\n NewGamma = cmsBuildParametricToneCurve ( self -> ContextID , 1 , & SingleGamma ) ;\n if ( ! NewGamma ) return NULL ;\n * nItems = 1 ;\n return NewGamma ;\n }\n case 1 : {\n cmsUInt16Number SingleGammaFixed ;\n cmsFloat64Number SingleGamma ;\n if ( ! _cmsReadUInt16Number ( io , & SingleGammaFixed ) ) return NULL ;\n SingleGamma = _cms8Fixed8toDouble ( SingleGammaFixed ) ;\n * nItems = 1 ;\n return cmsBuildParametricToneCurve ( self -> ContextID , 1 , & SingleGamma ) ;\n }\n default : if ( Count > 0x7FFF ) return NULL ;\n NewGamma = cmsBuildTabulatedToneCurve16 ( self -> ContextID , Count , NULL ) ;\n if ( ! NewGamma ) return NULL ;\n if ( ! _cmsReadUInt16Array ( io , Count , NewGamma -> Table16 ) ) return NULL ;\n * nItems = 1 ;\n return NewGamma ;\n }\n cmsUNUSED_PARAMETER ( SizeOfTag ) ;\n }"}
{"idx": 2657, "target": 0, "func": "static int dissect_h245_MultiplePayloadStreamElementMode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MultiplePayloadStreamElementMode , MultiplePayloadStreamElementMode_sequence ) ;\n return offset ;\n }"}
{"idx": 2658, "target": 0, "func": "TSReturnCode TSHttpTxnPrivateSessionSet ( TSHttpTxn txnp , int private_session ) {\n if ( sdk_sanity_check_txn ( txnp ) != TS_SUCCESS ) {\n return TS_ERROR ;\n }\n HttpSM * sm = ( HttpSM * ) txnp ;\n if ( sm -> set_server_session_private ( private_session ) ) {\n return TS_SUCCESS ;\n }\n return TS_ERROR ;\n }"}
{"idx": 2659, "target": 0, "func": "static Datum string_to_datum ( const char * str , Oid datatype ) {\n Assert ( str != NULL ) ;\n if ( datatype == NAMEOID ) return DirectFunctionCall1 ( namein , CStringGetDatum ( str ) ) ;\n else if ( datatype == BYTEAOID ) return DirectFunctionCall1 ( byteain , CStringGetDatum ( str ) ) ;\n else return CStringGetTextDatum ( str ) ;\n }"}
{"idx": 2660, "target": 0, "func": "const char * TSHttpHdrReasonGet ( TSMBuffer bufp , TSMLoc obj , int * length ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_http_hdr_handle ( obj ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) length ) == TS_SUCCESS ) ;\n HTTPHdr h ;\n SET_HTTP_HDR ( h , bufp , obj ) ;\n return h . reason_get ( length ) ;\n }"}
{"idx": 2661, "target": 0, "func": "static VALUE ossl_x509name_add_entry ( int argc , VALUE * argv , VALUE self ) {\n X509_NAME * name ;\n VALUE oid , value , type ;\n const char * oid_name ;\n rb_scan_args ( argc , argv , \"21\" , & oid , & value , & type ) ;\n oid_name = StringValueCStr ( oid ) ;\n StringValue ( value ) ;\n if ( NIL_P ( type ) ) type = rb_aref ( OBJECT_TYPE_TEMPLATE , oid ) ;\n GetX509Name ( self , name ) ;\n if ( ! X509_NAME_add_entry_by_txt ( name , oid_name , NUM2INT ( type ) , ( const unsigned char * ) RSTRING_PTR ( value ) , RSTRING_LENINT ( value ) , - 1 , 0 ) ) {\n ossl_raise ( eX509NameError , NULL ) ;\n }\n return self ;\n }"}
{"idx": 2662, "target": 0, "func": "static int purple_send_typing ( struct im_connection * ic , char * who , int flags ) {\n PurpleTypingState state = PURPLE_NOT_TYPING ;\n struct purple_data * pd = ic -> proto_data ;\n if ( flags & OPT_TYPING ) {\n state = PURPLE_TYPING ;\n }\n else if ( flags & OPT_THINKING ) {\n state = PURPLE_TYPED ;\n }\n serv_send_typing ( purple_account_get_connection ( pd -> account ) , who , state ) ;\n return 1 ;\n }"}
{"idx": 2663, "target": 0, "func": "static int dissect_h245_INTEGER_1_64 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 64U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 2664, "target": 0, "func": "static void remoteStreamUpdateEvents ( struct qemud_client_stream * stream ) {\n int newEvents = 0 ;\n if ( stream -> rx ) newEvents |= VIR_STREAM_EVENT_WRITABLE ;\n if ( stream -> tx && ! stream -> recvEOF ) newEvents |= VIR_STREAM_EVENT_READABLE ;\n virStreamEventUpdateCallback ( stream -> st , newEvents ) ;\n }"}
{"idx": 2665, "target": 0, "func": "int AlreadyMSSymbolArea ( SplineFont * sf , EncMap * map ) {\n int i ;\n int acnt = 0 , pcnt = 0 ;\n for ( i = 0 ;\n i < map -> enccount && i < 0xffff ;\n ++ i ) {\n if ( map -> map [ i ] != - 1 && sf -> glyphs [ map -> map [ i ] ] != NULL && sf -> glyphs [ map -> map [ i ] ] -> ttf_glyph != - 1 ) {\n if ( i >= 0xf000 && i <= 0xf0ff ) ++ pcnt ;\n else if ( i >= 0x20 && i <= 0xff ) ++ acnt ;\n }\n }\n return ( pcnt > acnt ) ;\n }"}
{"idx": 2666, "target": 0, "func": "EC_KEY * d2i_ECParameters ( EC_KEY * * a , const unsigned char * * in , long len ) {\n EC_KEY * ret ;\n if ( in == NULL || * in == NULL ) {\n ECerr ( EC_F_D2I_ECPARAMETERS , ERR_R_PASSED_NULL_PARAMETER ) ;\n return NULL ;\n }\n if ( a == NULL || * a == NULL ) {\n if ( ( ret = EC_KEY_new ( ) ) == NULL ) {\n ECerr ( EC_F_D2I_ECPARAMETERS , ERR_R_MALLOC_FAILURE ) ;\n return NULL ;\n }\n if ( a ) * a = ret ;\n }\n else ret = * a ;\n if ( ! d2i_ECPKParameters ( & ret -> group , in , len ) ) {\n ECerr ( EC_F_D2I_ECPARAMETERS , ERR_R_EC_LIB ) ;\n return NULL ;\n }\n return ret ;\n }"}
{"idx": 2667, "target": 1, "func": "const char * vpx_svc_dump_statistics ( SvcContext * svc_ctx ) {\n int number_of_frames , encode_frame_count ;\n int i , j ;\n uint32_t bytes_total = 0 ;\n double scale [ COMPONENTS ] ;\n double psnr [ COMPONENTS ] ;\n double mse [ COMPONENTS ] ;\n double y_scale ;\n SvcInternal * const si = get_svc_internal ( svc_ctx ) ;\n if ( svc_ctx == NULL || si == NULL ) return NULL ;\n svc_log_reset ( svc_ctx ) ;\n encode_frame_count = si -> encode_frame_count ;\n if ( si -> encode_frame_count <= 0 ) return vpx_svc_get_message ( svc_ctx ) ;\n svc_log ( svc_ctx , SVC_LOG_INFO , \"\\n\" ) ;\n for ( i = 0 ;\n i < si -> layers ;\n ++ i ) {\n number_of_frames = encode_frame_count ;\n svc_log ( svc_ctx , SVC_LOG_INFO , \"Layer %d Average PSNR=[%2.3f, %2.3f, %2.3f, %2.3f], Bytes=[%u]\\n\" , i , ( double ) si -> psnr_sum [ i ] [ 0 ] / number_of_frames , ( double ) si -> psnr_sum [ i ] [ 1 ] / number_of_frames , ( double ) si -> psnr_sum [ i ] [ 2 ] / number_of_frames , ( double ) si -> psnr_sum [ i ] [ 3 ] / number_of_frames , si -> bytes_sum [ i ] ) ;\n y_scale = si -> width * si -> height * 255.0 * 255.0 * number_of_frames ;\n scale [ 1 ] = y_scale ;\n scale [ 2 ] = scale [ 3 ] = y_scale / 4 ;\n scale [ 0 ] = y_scale * 1.5 ;\n for ( j = 0 ;\n j < COMPONENTS ;\n j ++ ) {\n psnr [ j ] = calc_psnr ( si -> sse_sum [ i ] [ j ] / scale [ j ] ) ;\n mse [ j ] = si -> sse_sum [ i ] [ j ] * 255.0 * 255.0 / scale [ j ] ;\n }\n svc_log ( svc_ctx , SVC_LOG_INFO , \"Layer %d Overall PSNR=[%2.3f, %2.3f, %2.3f, %2.3f]\\n\" , i , psnr [ 0 ] , psnr [ 1 ] , psnr [ 2 ] , psnr [ 3 ] ) ;\n svc_log ( svc_ctx , SVC_LOG_INFO , \"Layer %d Overall MSE=[%2.3f, %2.3f, %2.3f, %2.3f]\\n\" , i , mse [ 0 ] , mse [ 1 ] , mse [ 2 ] , mse [ 3 ] ) ;\n bytes_total += si -> bytes_sum [ i ] ;\n si -> bytes_sum [ i ] = 0 ;\n for ( j = 0 ;\n j < COMPONENTS ;\n ++ j ) {\n si -> psnr_sum [ i ] [ j ] = 0 ;\n si -> sse_sum [ i ] [ j ] = 0 ;\n }\n }\n si -> encode_frame_count = 0 ;\n svc_log ( svc_ctx , SVC_LOG_INFO , \"Total Bytes=[%u]\\n\" , bytes_total ) ;\n return vpx_svc_get_message ( svc_ctx ) ;\n }"}
{"idx": 2668, "target": 1, "func": "TEST_F ( ExternalProtocolHandlerTest , TestGetBlockStateLocalBlockStateCopiedAndResetOnProfilePref ) {\n base : : DictionaryValue prefs_local ;\n prefs_local . SetBoolean ( \"tel\" , true ) ;\n local_state_ -> Set ( prefs : : kExcludedSchemes , prefs_local ) ;\n ExternalProtocolHandler : : BlockState block_state = ExternalProtocolHandler : : GetBlockState ( \"tel\" , profile_ . get ( ) ) ;\n EXPECT_EQ ( ExternalProtocolHandler : : UNKNOWN , block_state ) ;\n EXPECT_TRUE ( local_state_ -> GetDictionary ( prefs : : kExcludedSchemes ) -> empty ( ) ) ;\n EXPECT_FALSE ( profile_ -> GetPrefs ( ) -> GetDictionary ( prefs : : kExcludedSchemes ) -> empty ( ) ) ;\n }"}
{"idx": 2669, "target": 0, "func": "static void dissect_zcl_ota_querynextimagereq ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n guint8 field_ctrl ;\n field_ctrl = dissect_zcl_ota_field_ctrl_field ( tvb , tree , offset ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_manufacturer_code , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_image_type , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n dissect_zcl_ota_file_version_field ( tvb , tree , offset ) ;\n if ( field_ctrl & ZBEE_ZCL_OTA_FIELD_CTRL_HW_VER_PRESENT ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_hw_version , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n }\n }"}
{"idx": 2670, "target": 0, "func": "static void pxa2xx_i2s_reset ( PXA2xxI2SState * i2s ) {\n i2s -> rx_len = 0 ;\n i2s -> tx_len = 0 ;\n i2s -> fifo_len = 0 ;\n i2s -> clk = 0x1a ;\n i2s -> control [ 0 ] = 0x00 ;\n i2s -> control [ 1 ] = 0x00 ;\n i2s -> status = 0x00 ;\n i2s -> mask = 0x00 ;\n }"}
{"idx": 2671, "target": 0, "func": "static char * get_relative_path ( const char * path ) {\n if ( test_if_hard_path ( path ) && is_prefix ( path , DEFAULT_MYSQL_HOME ) && strcmp ( DEFAULT_MYSQL_HOME , FN_ROOTDIR ) ) {\n path += ( uint ) strlen ( DEFAULT_MYSQL_HOME ) ;\n while ( * path == FN_LIBCHAR || * path == FN_LIBCHAR2 ) path ++ ;\n }\n return ( char * ) path ;\n }"}
{"idx": 2672, "target": 0, "func": "int mem_get_bits_rectangle ( gx_device * dev , const gs_int_rect * prect , gs_get_bits_params_t * params , gs_int_rect * * unread ) {\n gx_device_memory * const mdev = ( gx_device_memory * ) dev ;\n gs_get_bits_options_t options = params -> options ;\n int x = prect -> p . x , w = prect -> q . x - x , y = prect -> p . y , h = prect -> q . y - y ;\n if ( options == 0 ) {\n params -> options = ( GB_ALIGN_STANDARD | GB_ALIGN_ANY ) | ( GB_RETURN_COPY | GB_RETURN_POINTER ) | ( GB_OFFSET_0 | GB_OFFSET_SPECIFIED | GB_OFFSET_ANY ) | ( GB_RASTER_STANDARD | GB_RASTER_SPECIFIED | GB_RASTER_ANY ) | GB_PACKING_CHUNKY | GB_COLORS_NATIVE | GB_ALPHA_NONE ;\n return_error ( gs_error_rangecheck ) ;\n }\n if ( mdev -> line_ptrs == 0x00 ) return_error ( gs_error_rangecheck ) ;\n if ( ( w <= 0 ) | ( h <= 0 ) ) {\n if ( ( w | h ) < 0 ) return_error ( gs_error_rangecheck ) ;\n return 0 ;\n }\n if ( x < 0 || w > dev -> width - x || y < 0 || h > dev -> height - y ) return_error ( gs_error_rangecheck ) ;\n {\n gs_get_bits_params_t copy_params ;\n byte * * base = & scan_line_base ( mdev , y ) ;\n int code ;\n copy_params . options = GB_COLORS_NATIVE | GB_PACKING_CHUNKY | GB_ALPHA_NONE | ( mdev -> raster == bitmap_raster ( mdev -> width * mdev -> color_info . depth ) ? GB_RASTER_STANDARD : GB_RASTER_SPECIFIED ) ;\n copy_params . raster = mdev -> raster ;\n code = gx_get_bits_return_pointer ( dev , x , h , params , & copy_params , base ) ;\n if ( code >= 0 ) return code ;\n return gx_get_bits_copy ( dev , x , w , h , params , & copy_params , * base , gx_device_raster ( dev , true ) ) ;\n }\n }"}
{"idx": 2673, "target": 1, "func": "GType hb_gobject_ ## name ## _get_type ( void ) \\ {\n static gsize type_id = 0 ;\n if ( g_once_init_enter ( & type_id ) ) {\n GType id = g_boxed_type_register_static ( g_intern_static_string ( \"hb_\" # name \"_t\" ) , ( GBoxedCopyFunc ) copy_func , ( GBoxedFreeFunc ) free_func ) ;\n g_once_init_leave ( & type_id , id ) ;\n }\n return type_id ;\n \\ }\n # define HB_DEFINE_OBJECT_TYPE ( name ) HB_DEFINE_BOXED_TYPE ( name , hb_ ## name ## _reference , hb_ ## name ## _destroy ) ;\n HB_DEFINE_OBJECT_TYPE ( buffer )"}
{"idx": 2674, "target": 0, "func": "int main_file_read ( main_file * ifile , uint8_t * buf , size_t size , size_t * nread , const char * msg ) {\n int ret = 0 ;\n # if XD3_STDIO size_t result ;\n result = fread ( buf , 1 , size , ifile -> file ) ;\n if ( result < size && ferror ( ifile -> file ) ) {\n ret = get_errno ( ) ;\n }\n else {\n * nread = result ;\n }\n # elif XD3_POSIX ret = xd3_posix_io ( ifile -> file , buf , size , ( xd3_posix_func * ) & read , nread ) ;\n # elif XD3_WIN32 ret = xd3_win32_io ( ifile -> file , buf , size , 1 , nread ) ;\n # endif if ( ret ) {\n XPR ( NT \"%s: %s: %s\\n\" , msg , ifile -> filename , xd3_mainerror ( ret ) ) ;\n }\n else {\n if ( option_verbose > 4 ) {\n XPR ( NT \"read %s: %zu bytes\\n\" , ifile -> filename , ( * nread ) ) ;\n }\n ifile -> nread += ( * nread ) ;\n }\n return ret ;\n }"}
{"idx": 2675, "target": 0, "func": "static const char * cmd_request_body_access ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n if ( dcfg == NULL ) return NULL ;\n if ( strcasecmp ( p1 , \"on\" ) == 0 ) dcfg -> reqbody_access = 1 ;\n else if ( strcasecmp ( p1 , \"off\" ) == 0 ) dcfg -> reqbody_access = 0 ;\n else return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid value for SecRequestBodyAccess: %s\" , p1 ) ;\n return NULL ;\n }"}
{"idx": 2676, "target": 0, "func": "void hmp_hostfwd_remove ( Monitor * mon , const QDict * qdict ) {\n struct in_addr host_addr = {\n . s_addr = INADDR_ANY }\n ;\n int host_port ;\n char buf [ 256 ] ;\n const char * src_str , * p ;\n SlirpState * s ;\n int is_udp = 0 ;\n int err ;\n const char * arg1 = qdict_get_str ( qdict , \"arg1\" ) ;\n const char * arg2 = qdict_get_try_str ( qdict , \"arg2\" ) ;\n const char * arg3 = qdict_get_try_str ( qdict , \"arg3\" ) ;\n if ( arg2 ) {\n s = slirp_lookup ( mon , arg1 , arg2 ) ;\n src_str = arg3 ;\n }\n else {\n s = slirp_lookup ( mon , NULL , NULL ) ;\n src_str = arg1 ;\n }\n if ( ! s ) {\n return ;\n }\n p = src_str ;\n if ( ! p || get_str_sep ( buf , sizeof ( buf ) , & p , ':' ) < 0 ) {\n goto fail_syntax ;\n }\n if ( ! strcmp ( buf , \"tcp\" ) || buf [ 0 ] == '\\0' ) {\n is_udp = 0 ;\n }\n else if ( ! strcmp ( buf , \"udp\" ) ) {\n is_udp = 1 ;\n }\n else {\n goto fail_syntax ;\n }\n if ( get_str_sep ( buf , sizeof ( buf ) , & p , ':' ) < 0 ) {\n goto fail_syntax ;\n }\n if ( buf [ 0 ] != '\\0' && ! inet_aton ( buf , & host_addr ) ) {\n goto fail_syntax ;\n }\n host_port = atoi ( p ) ;\n err = slirp_remove_hostfwd ( s -> slirp , is_udp , host_addr , host_port ) ;\n monitor_printf ( mon , \"host forwarding rule for %s %s\\n\" , src_str , err ? \"not found\" : \"removed\" ) ;\n return ;\n fail_syntax : monitor_printf ( mon , \"invalid format\\n\" ) ;\n }"}
{"idx": 2677, "target": 0, "func": "float lut_interp_linear_float ( float value , float * table , size_t length ) {\n int upper , lower ;\n value = value * ( length - 1 ) ;\n upper = ceil ( value ) ;\n lower = floor ( value ) ;\n value = table [ upper ] * ( 1. - ( upper - value ) ) + table [ lower ] * ( upper - value ) ;\n return value ;\n }"}
{"idx": 2678, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens )"}
{"idx": 2679, "target": 0, "func": "static inline Quantum GetPixelb ( const Image * restrict image , const Quantum * restrict pixel ) {\n return ( pixel [ image -> channel_map [ bPixelChannel ] . offset ] ) ;\n }"}
{"idx": 2680, "target": 0, "func": "static void process_tree ( struct rev_info * revs , struct tree * tree , show_object_fn show , struct strbuf * base , const char * name , void * cb_data ) {\n struct object * obj = & tree -> object ;\n struct tree_desc desc ;\n struct name_entry entry ;\n enum interesting match = revs -> diffopt . pathspec . nr == 0 ? all_entries_interesting : entry_not_interesting ;\n int baselen = base -> len ;\n if ( ! revs -> tree_objects ) return ;\n if ( ! obj ) die ( \"bad tree object\" ) ;\n if ( obj -> flags & ( UNINTERESTING | SEEN ) ) return ;\n if ( parse_tree_gently ( tree , revs -> ignore_missing_links ) < 0 ) {\n if ( revs -> ignore_missing_links ) return ;\n die ( \"bad tree object %s\" , oid_to_hex ( & obj -> oid ) ) ;\n }\n obj -> flags |= SEEN ;\n strbuf_addstr ( base , name ) ;\n show ( obj , base -> buf , cb_data ) ;\n if ( base -> len ) strbuf_addch ( base , '/' ) ;\n init_tree_desc ( & desc , tree -> buffer , tree -> size ) ;\n while ( tree_entry ( & desc , & entry ) ) {\n if ( match != all_entries_interesting ) {\n match = tree_entry_interesting ( & entry , base , 0 , & revs -> diffopt . pathspec ) ;\n if ( match == all_entries_not_interesting ) break ;\n if ( match == entry_not_interesting ) continue ;\n }\n if ( S_ISDIR ( entry . mode ) ) process_tree ( revs , lookup_tree ( entry . sha1 ) , show , base , entry . path , cb_data ) ;\n else if ( S_ISGITLINK ( entry . mode ) ) process_gitlink ( revs , entry . sha1 , show , base , entry . path , cb_data ) ;\n else process_blob ( revs , lookup_blob ( entry . sha1 ) , show , base , entry . path , cb_data ) ;\n }\n strbuf_setlen ( base , baselen ) ;\n free_tree_buffer ( tree ) ;\n }"}
{"idx": 2681, "target": 0, "func": "DeviceState * qdev_create ( BusState * bus , const char * name ) {\n DeviceInfo * info ;\n DeviceState * dev ;\n if ( ! bus ) {\n if ( ! main_system_bus ) {\n main_system_bus = qbus_create ( & system_bus_info , NULL , \"main-system-bus\" ) ;\n }\n bus = main_system_bus ;\n }\n info = qdev_find_info ( bus -> info , name ) ;\n if ( ! info ) {\n hw_error ( \"Unknown device '%s' for bus '%s'\\n\" , name , bus -> info -> name ) ;\n }\n dev = qemu_mallocz ( info -> size ) ;\n dev -> info = info ;\n dev -> parent_bus = bus ;\n qdev_prop_set_defaults ( dev , dev -> info -> props ) ;\n qdev_prop_set_defaults ( dev , dev -> parent_bus -> info -> props ) ;\n qdev_prop_set_globals ( dev ) ;\n QLIST_INSERT_HEAD ( & bus -> children , dev , sibling ) ;\n if ( qdev_hotplug ) {\n assert ( bus -> allow_hotplug ) ;\n dev -> hotplugged = 1 ;\n }\n dev -> state = DEV_STATE_CREATED ;\n return dev ;\n }"}
{"idx": 2682, "target": 1, "func": "void dtls1_stop_timer ( SSL * s ) {\n memset ( & s -> d1 -> timeout , 0 , sizeof ( s -> d1 -> timeout ) ) ;\n memset ( & s -> d1 -> next_timeout , 0 , sizeof ( s -> d1 -> next_timeout ) ) ;\n s -> d1 -> timeout_duration = 1 ;\n BIO_ctrl ( SSL_get_rbio ( s ) , BIO_CTRL_DGRAM_SET_NEXT_TIMEOUT , 0 , & ( s -> d1 -> next_timeout ) ) ;\n dtls1_clear_record_buffer ( s ) ;\n }"}
{"idx": 2683, "target": 0, "func": "void proto_register_h245 ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_h245_pdu_type , {\n \"PDU Type\" , \"h245.pdu_type\" , FT_UINT32 , BASE_DEC , VALS ( h245_MultimediaSystemControlMessage_vals ) , 0 , \"Type of H.245 PDU\" , HFILL }\n }\n , {\n & hf_h245Manufacturer , {\n \"H.245 Manufacturer\" , \"h245.Manufacturer\" , FT_UINT32 , BASE_HEX , VALS ( H221ManufacturerCode_vals ) , 0 , \"h245.H.221 Manufacturer\" , HFILL }\n }\n , {\n & hf_h245_subMessageIdentifier_standard , {\n \"subMessageIdentifier\" , \"h245.subMessageIdentifier.standard\" , FT_UINT32 , BASE_DEC , VALS ( h245_h239subMessageIdentifier_vals ) , 0 , NULL , HFILL }\n }\n , # line 1 \"../../asn1/h245/packet-h245-hfarr.c\" {\n & hf_h245_OpenLogicalChannel_PDU , {\n \"OpenLogicalChannel\" , \"h245.OpenLogicalChannel_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_request , {\n \"request\" , \"h245.request\" , FT_UINT32 , BASE_DEC , VALS ( h245_RequestMessage_vals ) , 0 , \"RequestMessage\" , HFILL }\n }\n , {\n & hf_h245_response , {\n \"response\" , \"h245.response\" , FT_UINT32 , BASE_DEC , VALS ( h245_ResponseMessage_vals ) , 0 , \"ResponseMessage\" , HFILL }\n }\n , {\n & hf_h245_command , {\n \"command\" , \"h245.command\" , FT_UINT32 , BASE_DEC , VALS ( h245_CommandMessage_vals ) , 0 , \"CommandMessage\" , HFILL }\n }\n , {\n & hf_h245_indication , {\n \"indication\" , \"h245.indication\" , FT_UINT32 , BASE_DEC , VALS ( h245_IndicationMessage_vals ) , 0 , \"IndicationMessage\" , HFILL }\n }\n , {\n & hf_h245_nonStandardMsg , {\n \"nonStandard\" , \"h245.nonStandard_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"NonStandardMessage\" , HFILL }\n }\n , {\n & hf_h245_masterSlaveDetermination , {\n \"masterSlaveDetermination\" , \"h245.masterSlaveDetermination_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_terminalCapabilitySet , {\n \"terminalCapabilitySet\" , \"h245.terminalCapabilitySet_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_openLogicalChannel , {\n \"openLogicalChannel\" , \"h245.openLogicalChannel_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_closeLogicalChannel , {\n \"closeLogicalChannel\" , \"h245.closeLogicalChannel_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_requestChannelClose , {\n \"requestChannelClose\" , \"h245.requestChannelClose_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_multiplexEntrySend , {\n \"multiplexEntrySend\" , \"h245.multiplexEntrySend_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_requestMultiplexEntry , {\n \"requestMultiplexEntry\" , \"h245.requestMultiplexEntry_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_requestMode , {\n \"requestMode\" , \"h245.requestMode_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_roundTripDelayRequest , {\n \"roundTripDelayRequest\" , \"h245.roundTripDelayRequest_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_maintenanceLoopRequest , {\n \"maintenanceLoopRequest\" , \"h245.maintenanceLoopRequest_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_communicationModeRequest , {\n \"communicationModeRequest\" , \"h245.communicationModeRequest_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_conferenceRequest , {\n \"conferenceRequest\" , \"h245.conferenceRequest\" , FT_UINT32 , BASE_DEC , VALS ( h245_ConferenceRequest_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_multilinkRequest , {\n \"multilinkRequest\" , \"h245.multilinkRequest\" , FT_UINT32 , BASE_DEC , VALS ( h245_MultilinkRequest_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_logicalChannelRateRequest , {\n \"logicalChannelRateRequest\" , \"h245.logicalChannelRateRequest_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_genericRequest , {\n \"genericRequest\" , \"h245.genericRequest_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"GenericMessage\" , HFILL }\n }\n , {\n & hf_h245_masterSlaveDeterminationAck , {\n \"masterSlaveDeterminationAck\" , \"h245.masterSlaveDeterminationAck_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_masterSlaveDeterminationReject , {\n \"masterSlaveDeterminationReject\" , \"h245.masterSlaveDeterminationReject_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_terminalCapabilitySetAck , {\n \"terminalCapabilitySetAck\" , \"h245.terminalCapabilitySetAck_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_terminalCapabilitySetReject , {\n \"terminalCapabilitySetReject\" , \"h245.terminalCapabilitySetReject_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_openLogicalChannelAck , {\n \"openLogicalChannelAck\" , \"h245.openLogicalChannelAck_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_openLogicalChannelReject , {\n \"openLogicalChannelReject\" , \"h245.openLogicalChannelReject_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_closeLogicalChannelAck , {\n \"closeLogicalChannelAck\" , \"h245.closeLogicalChannelAck_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_requestChannelCloseAck , {\n \"requestChannelCloseAck\" , \"h245.requestChannelCloseAck_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_requestChannelCloseReject , {\n \"requestChannelCloseReject\" , \"h245.requestChannelCloseReject_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_multiplexEntrySendAck , {\n \"multiplexEntrySendAck\" , \"h245.multiplexEntrySendAck_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_multiplexEntrySendReject , {\n \"multiplexEntrySendReject\" , \"h245.multiplexEntrySendReject_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_requestMultiplexEntryAck , {\n \"requestMultiplexEntryAck\" , \"h245.requestMultiplexEntryAck_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_requestMultiplexEntryReject , {\n \"requestMultiplexEntryReject\" , \"h245.requestMultiplexEntryReject_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_requestModeAck , {\n \"requestModeAck\" , \"h245.requestModeAck_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_requestModeReject , {\n \"requestModeReject\" , \"h245.requestModeReject_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_roundTripDelayResponse , {\n \"roundTripDelayResponse\" , \"h245.roundTripDelayResponse_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_maintenanceLoopAck , {\n \"maintenanceLoopAck\" , \"h245.maintenanceLoopAck_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_maintenanceLoopReject , {\n \"maintenanceLoopReject\" , \"h245.maintenanceLoopReject_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_communicationModeResponse , {\n \"communicationModeResponse\" , \"h245.communicationModeResponse\" , FT_UINT32 , BASE_DEC , VALS ( h245_CommunicationModeResponse_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_conferenceResponse , {\n \"conferenceResponse\" , \"h245.conferenceResponse\" , FT_UINT32 , BASE_DEC , VALS ( h245_ConferenceResponse_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_multilinkResponse , {\n \"multilinkResponse\" , \"h245.multilinkResponse\" , FT_UINT32 , BASE_DEC , VALS ( h245_MultilinkResponse_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_logicalChannelRateAcknowledge , {\n \"logicalChannelRateAcknowledge\" , \"h245.logicalChannelRateAcknowledge_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_logicalChannelRateReject , {\n \"logicalChannelRateReject\" , \"h245.logicalChannelRateReject_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_genericResponse , {\n \"genericResponse\" , \"h245.genericResponse_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"GenericMessage\" , HFILL }\n }\n , {\n & hf_h245_maintenanceLoopOffCommand , {\n \"maintenanceLoopOffCommand\" , \"h245.maintenanceLoopOffCommand_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_sendTerminalCapabilitySet , {\n \"sendTerminalCapabilitySet\" , \"h245.sendTerminalCapabilitySet\" , FT_UINT32 , BASE_DEC , VALS ( h245_SendTerminalCapabilitySet_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_encryptionCommand , {\n \"encryptionCommand\" , \"h245.encryptionCommand\" , FT_UINT32 , BASE_DEC , VALS ( h245_EncryptionCommand_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_flowControlCommand , {\n \"flowControlCommand\" , \"h245.flowControlCommand_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_endSessionCommand , {\n \"endSessionCommand\" , \"h245.endSessionCommand\" , FT_UINT32 , BASE_DEC , VALS ( h245_EndSessionCommand_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_miscellaneousCommand , {\n \"miscellaneousCommand\" , \"h245.miscellaneousCommand_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_communicationModeCommand , {\n \"communicationModeCommand\" , \"h245.communicationModeCommand_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_conferenceCommand , {\n \"conferenceCommand\" , \"h245.conferenceCommand\" , FT_UINT32 , BASE_DEC , VALS ( h245_ConferenceCommand_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_h223MultiplexReconfiguration , {\n \"h223MultiplexReconfiguration\" , \"h245.h223MultiplexReconfiguration\" , FT_UINT32 , BASE_DEC , VALS ( h245_H223MultiplexReconfiguration_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_newATMVCCommand , {\n \"newATMVCCommand\" , \"h245.newATMVCCommand_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_mobileMultilinkReconfigurationCommand , {\n \"mobileMultilinkReconfigurationCommand\" , \"h245.mobileMultilinkReconfigurationCommand_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_genericCommand , {\n \"genericCommand\" , \"h245.genericCommand_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"GenericMessage\" , HFILL }\n }\n , {\n & hf_h245_functionNotUnderstood , {\n \"functionNotUnderstood\" , \"h245.functionNotUnderstood\" , FT_UINT32 , BASE_DEC , VALS ( h245_FunctionNotUnderstood_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_masterSlaveDeterminationRelease , {\n \"masterSlaveDeterminationRelease\" , \"h245.masterSlaveDeterminationRelease_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_terminalCapabilitySetRelease , {\n \"terminalCapabilitySetRelease\" , \"h245.terminalCapabilitySetRelease_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_openLogicalChannelConfirm , {\n \"openLogicalChannelConfirm\" , \"h245.openLogicalChannelConfirm_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_requestChannelCloseRelease , {\n \"requestChannelCloseRelease\" , \"h245.requestChannelCloseRelease_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_multiplexEntrySendRelease , {\n \"multiplexEntrySendRelease\" , \"h245.multiplexEntrySendRelease_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_requestMultiplexEntryRelease , {\n \"requestMultiplexEntryRelease\" , \"h245.requestMultiplexEntryRelease_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_requestModeRelease , {\n \"requestModeRelease\" , \"h245.requestModeRelease_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_miscellaneousIndication , {\n \"miscellaneousIndication\" , \"h245.miscellaneousIndication_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_jitterIndication , {\n \"jitterIndication\" , \"h245.jitterIndication_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_h223SkewIndication , {\n \"h223SkewIndication\" , \"h245.h223SkewIndication_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_newATMVCIndication , {\n \"newATMVCIndication\" , \"h245.newATMVCIndication_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_userInput , {\n \"userInput\" , \"h245.userInput\" , FT_UINT32 , BASE_DEC , VALS ( h245_UserInputIndication_vals ) , 0 , \"UserInputIndication\" , HFILL }\n }\n , {\n & hf_h245_h2250MaximumSkewIndication , {\n \"h2250MaximumSkewIndication\" , \"h245.h2250MaximumSkewIndication_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_mcLocationIndication , {\n \"mcLocationIndication\" , \"h245.mcLocationIndication_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_conferenceIndication , {\n \"conferenceIndication\" , \"h245.conferenceIndication\" , FT_UINT32 , BASE_DEC , VALS ( h245_ConferenceIndication_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_vendorIdentification , {\n \"vendorIdentification\" , \"h245.vendorIdentification_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_functionNotSupported , {\n \"functionNotSupported\" , \"h245.functionNotSupported_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_multilinkIndication , {\n \"multilinkIndication\" , \"h245.multilinkIndication\" , FT_UINT32 , BASE_DEC , VALS ( h245_MultilinkIndication_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_logicalChannelRateRelease , {\n \"logicalChannelRateRelease\" , \"h245.logicalChannelRateRelease_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_flowControlIndication , {\n \"flowControlIndication\" , \"h245.flowControlIndication_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_mobileMultilinkReconfigurationIndication , {\n \"mobileMultilinkReconfigurationIndication\" , \"h245.mobileMultilinkReconfigurationIndication_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_genericIndication , {\n \"genericIndication\" , \"h245.genericIndication_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"GenericMessage\" , HFILL }\n }\n , {\n & hf_h245_messageIdentifier , {\n \"messageIdentifier\" , \"h245.messageIdentifier\" , FT_UINT32 , BASE_DEC , VALS ( h245_CapabilityIdentifier_vals ) , 0 , \"CapabilityIdentifier\" , HFILL }\n }\n , {\n & hf_h245_subMessageIdentifier , {\n \"subMessageIdentifier\" , \"h245.subMessageIdentifier\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_messageContent , {\n \"messageContent\" , \"h245.messageContent\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_messageContent_item , {\n \"messageContent item\" , \"h245.messageContent_item_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"T_messageContent_item\" , HFILL }\n }\n , {\n & hf_h245_nonStandardData , {\n \"nonStandardData\" , \"h245.nonStandardData_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"NonStandardParameter\" , HFILL }\n }\n , {\n & hf_h245_nonStandardIdentifier , {\n \"nonStandardIdentifier\" , \"h245.nonStandardIdentifier\" , FT_UINT32 , BASE_DEC , VALS ( h245_NonStandardIdentifier_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_nsd_data , {\n \"data\" , \"h245.data\" , FT_BYTES , BASE_NONE , NULL , 0 , \"T_nsd_data\" , HFILL }\n }\n , {\n & hf_h245_object , {\n \"object\" , \"h245.object\" , FT_OID , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_h221NonStandardID , {\n \"h221NonStandard\" , \"h245.h221NonStandard_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"H221NonStandardID\" , HFILL }\n }\n , {\n & hf_h245_t35CountryCode , {\n \"t35CountryCode\" , \"h245.t35CountryCode\" , FT_UINT32 , BASE_DEC , VALS ( T35CountryCode_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_t35Extension , {\n \"t35Extension\" , \"h245.t35Extension\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_manufacturerCode , {\n \"manufacturerCode\" , \"h245.manufacturerCode\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_terminalType , {\n \"terminalType\" , \"h245.terminalType\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_255\" , HFILL }\n }\n , {\n & hf_h245_statusDeterminationNumber , {\n \"statusDeterminationNumber\" , \"h245.statusDeterminationNumber\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_16777215\" , HFILL }\n }\n , {\n & hf_h245_decision , {\n \"decision\" , \"h245.decision\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_decision_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_master , {\n \"master\" , \"h245.master_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_slave , {\n \"slave\" , \"h245.slave_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_msd_rej_cause , {\n \"cause\" , \"h245.cause\" , FT_UINT32 , BASE_DEC , VALS ( h245_MasterSlaveDeterminationRejectCause_vals ) , 0 , \"MasterSlaveDeterminationRejectCause\" , HFILL }\n }\n , {\n & hf_h245_identicalNumbers , {\n \"identicalNumbers\" , \"h245.identicalNumbers_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_sequenceNumber , {\n \"sequenceNumber\" , \"h245.sequenceNumber\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_protocolIdentifier , {\n \"protocolIdentifier\" , \"h245.protocolIdentifier\" , FT_OID , BASE_NONE , NULL , 0 , \"OBJECT_IDENTIFIER\" , HFILL }\n }\n , {\n & hf_h245_multiplexCapability , {\n \"multiplexCapability\" , \"h245.multiplexCapability\" , FT_UINT32 , BASE_DEC , VALS ( h245_MultiplexCapability_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_capabilityTable , {\n \"capabilityTable\" , \"h245.capabilityTable\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SET_SIZE_1_256_OF_CapabilityTableEntry\" , HFILL }\n }\n , {\n & hf_h245_capabilityTable_item , {\n \"CapabilityTableEntry\" , \"h245.CapabilityTableEntry_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_capabilityDescriptors , {\n \"capabilityDescriptors\" , \"h245.capabilityDescriptors\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SET_SIZE_1_256_OF_CapabilityDescriptor\" , HFILL }\n }\n , {\n & hf_h245_capabilityDescriptors_item , {\n \"CapabilityDescriptor\" , \"h245.CapabilityDescriptor_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_genericInformation , {\n \"genericInformation\" , \"h245.genericInformation\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_GenericInformation\" , HFILL }\n }\n , {\n & hf_h245_genericInformation_item , {\n \"GenericInformation\" , \"h245.GenericInformation_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_capabilityTableEntryNumber , {\n \"capabilityTableEntryNumber\" , \"h245.capabilityTableEntryNumber\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_capability , {\n \"capability\" , \"h245.capability\" , FT_UINT32 , BASE_DEC , VALS ( h245_Capability_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_capabilityDescriptorNumber , {\n \"capabilityDescriptorNumber\" , \"h245.capabilityDescriptorNumber\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_simultaneousCapabilities , {\n \"simultaneousCapabilities\" , \"h245.simultaneousCapabilities\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SET_SIZE_1_256_OF_AlternativeCapabilitySet\" , HFILL }\n }\n , {\n & hf_h245_simultaneousCapabilities_item , {\n \"AlternativeCapabilitySet\" , \"h245.AlternativeCapabilitySet\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_AlternativeCapabilitySet_item , {\n \"alternativeCapability\" , \"h245.CapabilityTableEntryNumber\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"CapabilityTableEntryNumber\" , HFILL }\n }\n , {\n & hf_h245_tcs_rej_cause , {\n \"cause\" , \"h245.cause\" , FT_UINT32 , BASE_DEC , VALS ( h245_TerminalCapabilitySetRejectCause_vals ) , 0 , \"TerminalCapabilitySetRejectCause\" , HFILL }\n }\n , {\n & hf_h245_unspecified , {\n \"unspecified\" , \"h245.unspecified_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_undefinedTableEntryUsed , {\n \"undefinedTableEntryUsed\" , \"h245.undefinedTableEntryUsed_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_descriptorCapacityExceeded , {\n \"descriptorCapacityExceeded\" , \"h245.descriptorCapacityExceeded_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_tableEntryCapacityExceeded , {\n \"tableEntryCapacityExceeded\" , \"h245.tableEntryCapacityExceeded\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_tableEntryCapacityExceeded_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_highestEntryNumberProcessed , {\n \"highestEntryNumberProcessed\" , \"h245.highestEntryNumberProcessed\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"CapabilityTableEntryNumber\" , HFILL }\n }\n , {\n & hf_h245_noneProcessed , {\n \"noneProcessed\" , \"h245.noneProcessed_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_nonStandard , {\n \"nonStandard\" , \"h245.nonStandard_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"NonStandardParameter\" , HFILL }\n }\n , {\n & hf_h245_receiveVideoCapability , {\n \"receiveVideoCapability\" , \"h245.receiveVideoCapability\" , FT_UINT32 , BASE_DEC , VALS ( h245_VideoCapability_vals ) , 0 , \"VideoCapability\" , HFILL }\n }\n , {\n & hf_h245_transmitVideoCapability , {\n \"transmitVideoCapability\" , \"h245.transmitVideoCapability\" , FT_UINT32 , BASE_DEC , VALS ( h245_VideoCapability_vals ) , 0 , \"VideoCapability\" , HFILL }\n }\n , {\n & hf_h245_receiveAndTransmitVideoCapability , {\n \"receiveAndTransmitVideoCapability\" , \"h245.receiveAndTransmitVideoCapability\" , FT_UINT32 , BASE_DEC , VALS ( h245_VideoCapability_vals ) , 0 , \"VideoCapability\" , HFILL }\n }\n , {\n & hf_h245_receiveAudioCapability , {\n \"receiveAudioCapability\" , \"h245.receiveAudioCapability\" , FT_UINT32 , BASE_DEC , VALS ( h245_AudioCapability_vals ) , 0 , \"AudioCapability\" , HFILL }\n }\n , {\n & hf_h245_transmitAudioCapability , {\n \"transmitAudioCapability\" , \"h245.transmitAudioCapability\" , FT_UINT32 , BASE_DEC , VALS ( h245_AudioCapability_vals ) , 0 , \"AudioCapability\" , HFILL }\n }\n , {\n & hf_h245_receiveAndTransmitAudioCapability , {\n \"receiveAndTransmitAudioCapability\" , \"h245.receiveAndTransmitAudioCapability\" , FT_UINT32 , BASE_DEC , VALS ( h245_AudioCapability_vals ) , 0 , \"AudioCapability\" , HFILL }\n }\n , {\n & hf_h245_receiveDataApplicationCapability , {\n \"receiveDataApplicationCapability\" , \"h245.receiveDataApplicationCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"DataApplicationCapability\" , HFILL }\n }\n , {\n & hf_h245_transmitDataApplicationCapability , {\n \"transmitDataApplicationCapability\" , \"h245.transmitDataApplicationCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"DataApplicationCapability\" , HFILL }\n }\n , {\n & hf_h245_receiveAndTransmitDataApplicationCapability , {\n \"receiveAndTransmitDataApplicationCapability\" , \"h245.receiveAndTransmitDataApplicationCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"DataApplicationCapability\" , HFILL }\n }\n , {\n & hf_h245_h233EncryptionTransmitCapability , {\n \"h233EncryptionTransmitCapability\" , \"h245.h233EncryptionTransmitCapability\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_h233EncryptionReceiveCapability , {\n \"h233EncryptionReceiveCapability\" , \"h245.h233EncryptionReceiveCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_h233IVResponseTime , {\n \"h233IVResponseTime\" , \"h245.h233IVResponseTime\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_255\" , HFILL }\n }\n , {\n & hf_h245_conferenceCapability , {\n \"conferenceCapability\" , \"h245.conferenceCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_h235SecurityCapability , {\n \"h235SecurityCapability\" , \"h245.h235SecurityCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_maxPendingReplacementFor , {\n \"maxPendingReplacementFor\" , \"h245.maxPendingReplacementFor\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_255\" , HFILL }\n }\n , {\n & hf_h245_receiveUserInputCapability , {\n \"receiveUserInputCapability\" , \"h245.receiveUserInputCapability\" , FT_UINT32 , BASE_DEC , VALS ( h245_UserInputCapability_vals ) , 0 , \"UserInputCapability\" , HFILL }\n }\n , {\n & hf_h245_transmitUserInputCapability , {\n \"transmitUserInputCapability\" , \"h245.transmitUserInputCapability\" , FT_UINT32 , BASE_DEC , VALS ( h245_UserInputCapability_vals ) , 0 , \"UserInputCapability\" , HFILL }\n }\n , {\n & hf_h245_receiveAndTransmitUserInputCapability , {\n \"receiveAndTransmitUserInputCapability\" , \"h245.receiveAndTransmitUserInputCapability\" , FT_UINT32 , BASE_DEC , VALS ( h245_UserInputCapability_vals ) , 0 , \"UserInputCapability\" , HFILL }\n }\n , {\n & hf_h245_genericControlCapability , {\n \"genericControlCapability\" , \"h245.genericControlCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"GenericCapability\" , HFILL }\n }\n , {\n & hf_h245_receiveMultiplexedStreamCapability , {\n \"receiveMultiplexedStreamCapability\" , \"h245.receiveMultiplexedStreamCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"MultiplexedStreamCapability\" , HFILL }\n }\n , {\n & hf_h245_transmitMultiplexedStreamCapability , {\n \"transmitMultiplexedStreamCapability\" , \"h245.transmitMultiplexedStreamCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"MultiplexedStreamCapability\" , HFILL }\n }\n , {\n & hf_h245_receiveAndTransmitMultiplexedStreamCapability , {\n \"receiveAndTransmitMultiplexedStreamCapability\" , \"h245.receiveAndTransmitMultiplexedStreamCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"MultiplexedStreamCapability\" , HFILL }\n }\n , {\n & hf_h245_receiveRTPAudioTelephonyEventCapability , {\n \"receiveRTPAudioTelephonyEventCapability\" , \"h245.receiveRTPAudioTelephonyEventCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"AudioTelephonyEventCapability\" , HFILL }\n }\n , {\n & hf_h245_receiveRTPAudioToneCapability , {\n \"receiveRTPAudioToneCapability\" , \"h245.receiveRTPAudioToneCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"AudioToneCapability\" , HFILL }\n }\n , {\n & hf_h245_depFecCapability , {\n \"depFecCapability\" , \"h245.depFecCapability\" , FT_UINT32 , BASE_DEC , VALS ( h245_DepFECCapability_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_multiplePayloadStreamCapability , {\n \"multiplePayloadStreamCapability\" , \"h245.multiplePayloadStreamCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_fecCapability , {\n \"fecCapability\" , \"h245.fecCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_redundancyEncodingCap , {\n \"redundancyEncodingCap\" , \"h245.redundancyEncodingCap_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"RedundancyEncodingCapability\" , HFILL }\n }\n , {\n & hf_h245_oneOfCapabilities , {\n \"oneOfCapabilities\" , \"h245.oneOfCapabilities\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"AlternativeCapabilitySet\" , HFILL }\n }\n , {\n & hf_h245_encryptionAuthenticationAndIntegrity , {\n \"encryptionAuthenticationAndIntegrity\" , \"h245.encryptionAuthenticationAndIntegrity_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_mediaCapability , {\n \"mediaCapability\" , \"h245.mediaCapability\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"CapabilityTableEntryNumber\" , HFILL }\n }\n , {\n & hf_h245_h222Capability , {\n \"h222Capability\" , \"h245.h222Capability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_h223Capability , {\n \"h223Capability\" , \"h245.h223Capability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_v76Capability , {\n \"v76Capability\" , \"h245.v76Capability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_h2250Capability , {\n \"h2250Capability\" , \"h245.h2250Capability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_genericMultiplexCapability , {\n \"genericMultiplexCapability\" , \"h245.genericMultiplexCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"GenericCapability\" , HFILL }\n }\n , {\n & hf_h245_numberOfVCs , {\n \"numberOfVCs\" , \"h245.numberOfVCs\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_256\" , HFILL }\n }\n , {\n & hf_h245_vcCapability , {\n \"vcCapability\" , \"h245.vcCapability\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SET_OF_VCCapability\" , HFILL }\n }\n , {\n & hf_h245_vcCapability_item , {\n \"VCCapability\" , \"h245.VCCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_aal1 , {\n \"aal1\" , \"h245.aal1_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_nullClockRecovery , {\n \"nullClockRecovery\" , \"h245.nullClockRecovery\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_srtsClockRecovery_bool , {\n \"srtsClockRecovery\" , \"h245.srtsClockRecovery\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_adaptiveClockRecovery , {\n \"adaptiveClockRecovery\" , \"h245.adaptiveClockRecovery\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_nullErrorCorrection , {\n \"nullErrorCorrection\" , \"h245.nullErrorCorrection\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_longInterleaver , {\n \"longInterleaver\" , \"h245.longInterleaver\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_shortInterleaver , {\n \"shortInterleaver\" , \"h245.shortInterleaver\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_errorCorrectionOnly , {\n \"errorCorrectionOnly\" , \"h245.errorCorrectionOnly\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_structuredDataTransfer , {\n \"structuredDataTransfer\" , \"h245.structuredDataTransfer\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_partiallyFilledCells , {\n \"partiallyFilledCells\" , \"h245.partiallyFilledCells\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_aal5 , {\n \"aal5\" , \"h245.aal5_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_forwardMaximumSDUSize , {\n \"forwardMaximumSDUSize\" , \"h245.forwardMaximumSDUSize\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_65535\" , HFILL }\n }\n , {\n & hf_h245_backwardMaximumSDUSize , {\n \"backwardMaximumSDUSize\" , \"h245.backwardMaximumSDUSize\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_65535\" , HFILL }\n }\n , {\n & hf_h245_transportStream_bool , {\n \"transportStream\" , \"h245.transportStream\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_programStream , {\n \"programStream\" , \"h245.programStream\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_availableBitRates , {\n \"availableBitRates\" , \"h245.availableBitRates_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_avb_type , {\n \"type\" , \"h245.type\" , FT_UINT32 , BASE_DEC , VALS ( h245_Avb_type_vals ) , 0 , \"Avb_type\" , HFILL }\n }\n , {\n & hf_h245_singleBitRate , {\n \"singleBitRate\" , \"h245.singleBitRate\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_65535\" , HFILL }\n }\n , {\n & hf_h245_rangeOfBitRates , {\n \"rangeOfBitRates\" , \"h245.rangeOfBitRates_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_lowerBitRate , {\n \"lowerBitRate\" , \"h245.lowerBitRate\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_65535\" , HFILL }\n }\n , {\n & hf_h245_higherBitRate , {\n \"higherBitRate\" , \"h245.higherBitRate\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_65535\" , HFILL }\n }\n , {\n & hf_h245_aal1ViaGateway , {\n \"aal1ViaGateway\" , \"h245.aal1ViaGateway_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_gatewayAddress , {\n \"gatewayAddress\" , \"h245.gatewayAddress\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SET_SIZE_1_256_OF_Q2931Address\" , HFILL }\n }\n , {\n & hf_h245_gatewayAddress_item , {\n \"Q2931Address\" , \"h245.Q2931Address_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_srtsClockRecoveryflag , {\n \"srtsClockRecovery\" , \"h245.srtsClockRecovery\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_transportWithI_frames , {\n \"transportWithI-frames\" , \"h245.transportWithI_frames\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_videoWithAL1 , {\n \"videoWithAL1\" , \"h245.videoWithAL1\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_videoWithAL2 , {\n \"videoWithAL2\" , \"h245.videoWithAL2\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_videoWithAL3 , {\n \"videoWithAL3\" , \"h245.videoWithAL3\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_audioWithAL1 , {\n \"audioWithAL1\" , \"h245.audioWithAL1\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_audioWithAL2 , {\n \"audioWithAL2\" , \"h245.audioWithAL2\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_audioWithAL3 , {\n \"audioWithAL3\" , \"h245.audioWithAL3\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_dataWithAL1 , {\n \"dataWithAL1\" , \"h245.dataWithAL1\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_dataWithAL2 , {\n \"dataWithAL2\" , \"h245.dataWithAL2\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_dataWithAL3 , {\n \"dataWithAL3\" , \"h245.dataWithAL3\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_maximumAl2SDUSize , {\n \"maximumAl2SDUSize\" , \"h245.maximumAl2SDUSize\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_65535\" , HFILL }\n }\n , {\n & hf_h245_maximumAl3SDUSize , {\n \"maximumAl3SDUSize\" , \"h245.maximumAl3SDUSize\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_65535\" , HFILL }\n }\n , {\n & hf_h245_maximumDelayJitter , {\n \"maximumDelayJitter\" , \"h245.maximumDelayJitter\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_1023\" , HFILL }\n }\n , {\n & hf_h245_h223MultiplexTableCapability , {\n \"h223MultiplexTableCapability\" , \"h245.h223MultiplexTableCapability\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_h223MultiplexTableCapability_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_basic , {\n \"basic\" , \"h245.basic_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_enhanced , {\n \"enhanced\" , \"h245.enhanced_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_maximumNestingDepth , {\n \"maximumNestingDepth\" , \"h245.maximumNestingDepth\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_15\" , HFILL }\n }\n , {\n & hf_h245_maximumElementListSize , {\n \"maximumElementListSize\" , \"h245.maximumElementListSize\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_2_255\" , HFILL }\n }\n , {\n & hf_h245_maximumSubElementListSize , {\n \"maximumSubElementListSize\" , \"h245.maximumSubElementListSize\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_2_255\" , HFILL }\n }\n , {\n & hf_h245_maxMUXPDUSizeCapability , {\n \"maxMUXPDUSizeCapability\" , \"h245.maxMUXPDUSizeCapability\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_nsrpSupport , {\n \"nsrpSupport\" , \"h245.nsrpSupport\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_mobileOperationTransmitCapability , {\n \"mobileOperationTransmitCapability\" , \"h245.mobileOperationTransmitCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_modeChangeCapability , {\n \"modeChangeCapability\" , \"h245.modeChangeCapability\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_h223AnnexA , {\n \"h223AnnexA\" , \"h245.h223AnnexA\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_h223AnnexADoubleFlagFlag , {\n \"h223AnnexADoubleFlag\" , \"h245.h223AnnexADoubleFlag\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_h223AnnexB , {\n \"h223AnnexB\" , \"h245.h223AnnexB\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_h223AnnexBwithHeader , {\n \"h223AnnexBwithHeader\" , \"h245.h223AnnexBwithHeader\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_h223AnnexCCapability , {\n \"h223AnnexCCapability\" , \"h245.h223AnnexCCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_bitRate_1_19200 , {\n \"bitRate\" , \"h245.bitRate\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_19200\" , HFILL }\n }\n , {\n & hf_h245_mobileMultilinkFrameCapability , {\n \"mobileMultilinkFrameCapability\" , \"h245.mobileMultilinkFrameCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_maximumSampleSize , {\n \"maximumSampleSize\" , \"h245.maximumSampleSize\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_255\" , HFILL }\n }\n , {\n & hf_h245_maximumPayloadLength , {\n \"maximumPayloadLength\" , \"h245.maximumPayloadLength\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_65025\" , HFILL }\n }\n , {\n & hf_h245_videoWithAL1M , {\n \"videoWithAL1M\" , \"h245.videoWithAL1M\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_videoWithAL2M , {\n \"videoWithAL2M\" , \"h245.videoWithAL2M\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_videoWithAL3M , {\n \"videoWithAL3M\" , \"h245.videoWithAL3M\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_audioWithAL1M , {\n \"audioWithAL1M\" , \"h245.audioWithAL1M\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_audioWithAL2M , {\n \"audioWithAL2M\" , \"h245.audioWithAL2M\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_audioWithAL3M , {\n \"audioWithAL3M\" , \"h245.audioWithAL3M\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_dataWithAL1M , {\n \"dataWithAL1M\" , \"h245.dataWithAL1M\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_dataWithAL2M , {\n \"dataWithAL2M\" , \"h245.dataWithAL2M\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_dataWithAL3M , {\n \"dataWithAL3M\" , \"h245.dataWithAL3M\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_alpduInterleaving , {\n \"alpduInterleaving\" , \"h245.alpduInterleaving\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_maximumAL1MPDUSize , {\n \"maximumAL1MPDUSize\" , \"h245.maximumAL1MPDUSize\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_65535\" , HFILL }\n }\n , {\n & hf_h245_maximumAL2MSDUSize , {\n \"maximumAL2MSDUSize\" , \"h245.maximumAL2MSDUSize\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_65535\" , HFILL }\n }\n , {\n & hf_h245_maximumAL3MSDUSize , {\n \"maximumAL3MSDUSize\" , \"h245.maximumAL3MSDUSize\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_65535\" , HFILL }\n }\n , {\n & hf_h245_rsCodeCapability , {\n \"rsCodeCapability\" , \"h245.rsCodeCapability\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_suspendResumeCapabilitywAddress , {\n \"suspendResumeCapabilitywAddress\" , \"h245.suspendResumeCapabilitywAddress\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_suspendResumeCapabilitywoAddress , {\n \"suspendResumeCapabilitywoAddress\" , \"h245.suspendResumeCapabilitywoAddress\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_rejCapability , {\n \"rejCapability\" , \"h245.rejCapability\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_sREJCapability , {\n \"sREJCapability\" , \"h245.sREJCapability\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_mREJCapability , {\n \"mREJCapability\" , \"h245.mREJCapability\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_crc8bitCapability , {\n \"crc8bitCapability\" , \"h245.crc8bitCapability\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_crc16bitCapability , {\n \"crc16bitCapability\" , \"h245.crc16bitCapability\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_crc32bitCapability , {\n \"crc32bitCapability\" , \"h245.crc32bitCapability\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_uihCapability , {\n \"uihCapability\" , \"h245.uihCapability\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_numOfDLCS , {\n \"numOfDLCS\" , \"h245.numOfDLCS\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_2_8191\" , HFILL }\n }\n , {\n & hf_h245_twoOctetAddressFieldCapability , {\n \"twoOctetAddressFieldCapability\" , \"h245.twoOctetAddressFieldCapability\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_loopBackTestCapability , {\n \"loopBackTestCapability\" , \"h245.loopBackTestCapability\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_n401Capability , {\n \"n401Capability\" , \"h245.n401Capability\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_4095\" , HFILL }\n }\n , {\n & hf_h245_maxWindowSizeCapability , {\n \"maxWindowSizeCapability\" , \"h245.maxWindowSizeCapability\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_127\" , HFILL }\n }\n , {\n & hf_h245_v75Capability , {\n \"v75Capability\" , \"h245.v75Capability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_audioHeader , {\n \"audioHeader\" , \"h245.audioHeader\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_maximumAudioDelayJitter , {\n \"maximumAudioDelayJitter\" , \"h245.maximumAudioDelayJitter\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_1023\" , HFILL }\n }\n , {\n & hf_h245_receiveMultipointCapability , {\n \"receiveMultipointCapability\" , \"h245.receiveMultipointCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"MultipointCapability\" , HFILL }\n }\n , {\n & hf_h245_transmitMultipointCapability , {\n \"transmitMultipointCapability\" , \"h245.transmitMultipointCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"MultipointCapability\" , HFILL }\n }\n , {\n & hf_h245_receiveAndTransmitMultipointCapability , {\n \"receiveAndTransmitMultipointCapability\" , \"h245.receiveAndTransmitMultipointCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"MultipointCapability\" , HFILL }\n }\n , {\n & hf_h245_mcCapability , {\n \"mcCapability\" , \"h245.mcCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_centralizedConferenceMC , {\n \"centralizedConferenceMC\" , \"h245.centralizedConferenceMC\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_decentralizedConferenceMC , {\n \"decentralizedConferenceMC\" , \"h245.decentralizedConferenceMC\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_rtcpVideoControlCapability , {\n \"rtcpVideoControlCapability\" , \"h245.rtcpVideoControlCapability\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_mediaPacketizationCapability , {\n \"mediaPacketizationCapability\" , \"h245.mediaPacketizationCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_transportCapability , {\n \"transportCapability\" , \"h245.transportCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_redundancyEncodingCapability , {\n \"redundancyEncodingCapability\" , \"h245.redundancyEncodingCapability\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_SIZE_1_256_OF_RedundancyEncodingCapability\" , HFILL }\n }\n , {\n & hf_h245_redundancyEncodingCapability_item , {\n \"RedundancyEncodingCapability\" , \"h245.RedundancyEncodingCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_logicalChannelSwitchingCapability , {\n \"logicalChannelSwitchingCapability\" , \"h245.logicalChannelSwitchingCapability\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_t120DynamicPortCapability , {\n \"t120DynamicPortCapability\" , \"h245.t120DynamicPortCapability\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_h261aVideoPacketization , {\n \"h261aVideoPacketization\" , \"h245.h261aVideoPacketization\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_rtpPayloadTypes , {\n \"rtpPayloadType\" , \"h245.rtpPayloadType\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_SIZE_1_256_OF_RTPPayloadType\" , HFILL }\n }\n , {\n & hf_h245_rtpPayloadTypes_item , {\n \"RTPPayloadType\" , \"h245.RTPPayloadType_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_qosMode , {\n \"qosMode\" , \"h245.qosMode\" , FT_UINT32 , BASE_DEC , VALS ( h245_QOSMode_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_tokenRate , {\n \"tokenRate\" , \"h245.tokenRate\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_4294967295\" , HFILL }\n }\n , {\n & hf_h245_bucketSize , {\n \"bucketSize\" , \"h245.bucketSize\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_4294967295\" , HFILL }\n }\n , {\n & hf_h245_peakRate , {\n \"peakRate\" , \"h245.peakRate\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_4294967295\" , HFILL }\n }\n , {\n & hf_h245_minPoliced , {\n \"minPoliced\" , \"h245.minPoliced\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_4294967295\" , HFILL }\n }\n , {\n & hf_h245_maxPktSize , {\n \"maxPktSize\" , \"h245.maxPktSize\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_4294967295\" , HFILL }\n }\n , {\n & hf_h245_guaranteedQOS , {\n \"guaranteedQOS\" , \"h245.guaranteedQOS_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_controlledLoad , {\n \"controlledLoad\" , \"h245.controlledLoad_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_maxNTUSize , {\n \"maxNTUSize\" , \"h245.maxNTUSize\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_65535\" , HFILL }\n }\n , {\n & hf_h245_atmUBR , {\n \"atmUBR\" , \"h245.atmUBR\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_atmrtVBR , {\n \"atmrtVBR\" , \"h245.atmrtVBR\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_atmnrtVBR , {\n \"atmnrtVBR\" , \"h245.atmnrtVBR\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_atmABR , {\n \"atmABR\" , \"h245.atmABR\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_atmCBR , {\n \"atmCBR\" , \"h245.atmCBR\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_nonStandardParameter , {\n \"nonStandardParameter\" , \"h245.nonStandardParameter_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_value , {\n \"value\" , \"h245.value\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_255\" , HFILL }\n }\n , {\n & hf_h245_servicePrioritySignalled , {\n \"servicePrioritySignalled\" , \"h245.servicePrioritySignalled\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_servicePriorityValue , {\n \"servicePriorityValue\" , \"h245.servicePriorityValue_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_serviceClass , {\n \"serviceClass\" , \"h245.serviceClass\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_4095\" , HFILL }\n }\n , {\n & hf_h245_serviceSubclass , {\n \"serviceSubclass\" , \"h245.serviceSubclass\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_255\" , HFILL }\n }\n , {\n & hf_h245_desired , {\n \"desired\" , \"h245.desired_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_required , {\n \"required\" , \"h245.required_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_class0 , {\n \"class0\" , \"h245.class0_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_class1 , {\n \"class1\" , \"h245.class1_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_class2 , {\n \"class2\" , \"h245.class2_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_class3 , {\n \"class3\" , \"h245.class3_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_class4 , {\n \"class4\" , \"h245.class4_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_class5 , {\n \"class5\" , \"h245.class5_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_qosType , {\n \"qosType\" , \"h245.qosType\" , FT_UINT32 , BASE_DEC , VALS ( h245_QOSType_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_qosClass , {\n \"qosClass\" , \"h245.qosClass\" , FT_UINT32 , BASE_DEC , VALS ( h245_QOSClass_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_averageRate , {\n \"averageRate\" , \"h245.averageRate\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_4294967295\" , HFILL }\n }\n , {\n & hf_h245_burst , {\n \"burst\" , \"h245.burst\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_4294967295\" , HFILL }\n }\n , {\n & hf_h245_rsvpParameters , {\n \"rsvpParameters\" , \"h245.rsvpParameters_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_atmParameters , {\n \"atmParameters\" , \"h245.atmParameters_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_localQoS , {\n \"localQoS\" , \"h245.localQoS\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_genericTransportParameters , {\n \"genericTransportParameters\" , \"h245.genericTransportParameters_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_servicePriority , {\n \"servicePriority\" , \"h245.servicePriority_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_authorizationParameter , {\n \"authorizationParameter\" , \"h245.authorizationParameter_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"AuthorizationParameters\" , HFILL }\n }\n , {\n & hf_h245_qosDescriptor , {\n \"qosDescriptor\" , \"h245.qosDescriptor_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_dscpValue , {\n \"dscpValue\" , \"h245.dscpValue\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_63\" , HFILL }\n }\n , {\n & hf_h245_ip_UDP , {\n \"ip-UDP\" , \"h245.ip_UDP_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_ip_TCP , {\n \"ip-TCP\" , \"h245.ip_TCP_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_atm_AAL5_UNIDIR , {\n \"atm-AAL5-UNIDIR\" , \"h245.atm_AAL5_UNIDIR_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_atm_AAL5_BIDIR , {\n \"atm-AAL5-BIDIR\" , \"h245.atm_AAL5_BIDIR_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_atm_AAL5_compressed , {\n \"atm-AAL5-compressed\" , \"h245.atm_AAL5_compressed_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_variable_delta , {\n \"variable-delta\" , \"h245.variable_delta\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_mediaTransport , {\n \"mediaTransport\" , \"h245.mediaTransport\" , FT_UINT32 , BASE_DEC , VALS ( h245_MediaTransportType_vals ) , 0 , \"MediaTransportType\" , HFILL }\n }\n , {\n & hf_h245_qOSCapabilities , {\n \"qOSCapabilities\" , \"h245.qOSCapabilities\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_SIZE_1_256_OF_QOSCapability\" , HFILL }\n }\n , {\n & hf_h245_qOSCapabilities_item , {\n \"QOSCapability\" , \"h245.QOSCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_mediaChannelCapabilities , {\n \"mediaChannelCapabilities\" , \"h245.mediaChannelCapabilities\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_SIZE_1_256_OF_MediaChannelCapability\" , HFILL }\n }\n , {\n & hf_h245_mediaChannelCapabilities_item , {\n \"MediaChannelCapability\" , \"h245.MediaChannelCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_redundancyEncodingMethod , {\n \"redundancyEncodingMethod\" , \"h245.redundancyEncodingMethod\" , FT_UINT32 , BASE_DEC , VALS ( h245_RedundancyEncodingMethod_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_primaryEncoding , {\n \"primaryEncoding\" , \"h245.primaryEncoding\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"CapabilityTableEntryNumber\" , HFILL }\n }\n , {\n & hf_h245_secondaryEncodingCapability , {\n \"secondaryEncoding\" , \"h245.secondaryEncoding\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_SIZE_1_256_OF_CapabilityTableEntryNumber\" , HFILL }\n }\n , {\n & hf_h245_secondaryEncodingCapability_item , {\n \"CapabilityTableEntryNumber\" , \"h245.CapabilityTableEntryNumber\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_rtpAudioRedundancyEncoding , {\n \"rtpAudioRedundancyEncoding\" , \"h245.rtpAudioRedundancyEncoding_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_rtpH263VideoRedundancyEncoding , {\n \"rtpH263VideoRedundancyEncoding\" , \"h245.rtpH263VideoRedundancyEncoding_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_numberOfThreads , {\n \"numberOfThreads\" , \"h245.numberOfThreads\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_16\" , HFILL }\n }\n , {\n & hf_h245_framesBetweenSyncPoints , {\n \"framesBetweenSyncPoints\" , \"h245.framesBetweenSyncPoints\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_256\" , HFILL }\n }\n , {\n & hf_h245_frameToThreadMapping , {\n \"frameToThreadMapping\" , \"h245.frameToThreadMapping\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_frameToThreadMapping_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_roundrobin , {\n \"roundrobin\" , \"h245.roundrobin_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_custom , {\n \"custom\" , \"h245.custom\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_SIZE_1_256_OF_RTPH263VideoRedundancyFrameMapping\" , HFILL }\n }\n , {\n & hf_h245_custom_item , {\n \"RTPH263VideoRedundancyFrameMapping\" , \"h245.RTPH263VideoRedundancyFrameMapping_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_containedThreads , {\n \"containedThreads\" , \"h245.containedThreads\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_containedThreads_item , {\n \"containedThreads item\" , \"h245.containedThreads_item\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_15\" , HFILL }\n }\n , {\n & hf_h245_threadNumber , {\n \"threadNumber\" , \"h245.threadNumber\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_15\" , HFILL }\n }\n , {\n & hf_h245_frameSequence , {\n \"frameSequence\" , \"h245.frameSequence\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_frameSequence_item , {\n \"frameSequence item\" , \"h245.frameSequence_item\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_255\" , HFILL }\n }\n , {\n & hf_h245_multicastCapability , {\n \"multicastCapability\" , \"h245.multicastCapability\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_multiUniCastConference , {\n \"multiUniCastConference\" , \"h245.multiUniCastConference\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_mediaDistributionCapability , {\n \"mediaDistributionCapability\" , \"h245.mediaDistributionCapability\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_MediaDistributionCapability\" , HFILL }\n }\n , {\n & hf_h245_mediaDistributionCapability_item , {\n \"MediaDistributionCapability\" , \"h245.MediaDistributionCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_centralizedControl , {\n \"centralizedControl\" , \"h245.centralizedControl\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_distributedControl , {\n \"distributedControl\" , \"h245.distributedControl\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_centralizedAudio , {\n \"centralizedAudio\" , \"h245.centralizedAudio\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_distributedAudio , {\n \"distributedAudio\" , \"h245.distributedAudio\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_centralizedVideo , {\n \"centralizedVideo\" , \"h245.centralizedVideo\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_distributedVideo , {\n \"distributedVideo\" , \"h245.distributedVideo\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_centralizedData , {\n \"centralizedData\" , \"h245.centralizedData\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_DataApplicationCapability\" , HFILL }\n }\n , {\n & hf_h245_centralizedData_item , {\n \"DataApplicationCapability\" , \"h245.DataApplicationCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_distributedData , {\n \"distributedData\" , \"h245.distributedData\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_DataApplicationCapability\" , HFILL }\n }\n , {\n & hf_h245_distributedData_item , {\n \"DataApplicationCapability\" , \"h245.DataApplicationCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_h261VideoCapability , {\n \"h261VideoCapability\" , \"h245.h261VideoCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_h262VideoCapability , {\n \"h262VideoCapability\" , \"h245.h262VideoCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_h263VideoCapability , {\n \"h263VideoCapability\" , \"h245.h263VideoCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_is11172VideoCapability , {\n \"is11172VideoCapability\" , \"h245.is11172VideoCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_genericVideoCapability , {\n \"genericVideoCapability\" , \"h245.genericVideoCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"GenericCapability\" , HFILL }\n }\n , {\n & hf_h245_extendedVideoCapability , {\n \"extendedVideoCapability\" , \"h245.extendedVideoCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_videoCapability , {\n \"videoCapability\" , \"h245.videoCapability\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_VideoCapability\" , HFILL }\n }\n , {\n & hf_h245_videoCapability_item , {\n \"VideoCapability\" , \"h245.VideoCapability\" , FT_UINT32 , BASE_DEC , VALS ( h245_VideoCapability_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_videoCapabilityExtension , {\n \"videoCapabilityExtension\" , \"h245.videoCapabilityExtension\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_GenericCapability\" , HFILL }\n }\n , {\n & hf_h245_videoCapabilityExtension_item , {\n \"GenericCapability\" , \"h245.GenericCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_qcifMPI_1_4 , {\n \"qcifMPI\" , \"h245.qcifMPI\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_4\" , HFILL }\n }\n , {\n & hf_h245_cifMPI_1_4 , {\n \"cifMPI\" , \"h245.cifMPI\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_4\" , HFILL }\n }\n , {\n & hf_h245_temporalSpatialTradeOffCapability , {\n \"temporalSpatialTradeOffCapability\" , \"h245.temporalSpatialTradeOffCapability\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_maxBitRate_1_19200 , {\n \"maxBitRate\" , \"h245.maxBitRate\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_19200\" , HFILL }\n }\n , {\n & hf_h245_stillImageTransmission , {\n \"stillImageTransmission\" , \"h245.stillImageTransmission\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_videoBadMBsCap , {\n \"videoBadMBsCap\" , \"h245.videoBadMBsCap\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_profileAndLevel_SPatML , {\n \"profileAndLevel-SPatML\" , \"h245.profileAndLevel_SPatML\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_profileAndLevel_MPatLL , {\n \"profileAndLevel-MPatLL\" , \"h245.profileAndLevel_MPatLL\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_profileAndLevel_MPatML , {\n \"profileAndLevel-MPatML\" , \"h245.profileAndLevel_MPatML\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_profileAndLevel_MPatH_14 , {\n \"profileAndLevel-MPatH-14\" , \"h245.profileAndLevel_MPatH_14\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_profileAndLevel_MPatHL , {\n \"profileAndLevel-MPatHL\" , \"h245.profileAndLevel_MPatHL\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_profileAndLevel_SNRatLL , {\n \"profileAndLevel-SNRatLL\" , \"h245.profileAndLevel_SNRatLL\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_profileAndLevel_SNRatML , {\n \"profileAndLevel-SNRatML\" , \"h245.profileAndLevel_SNRatML\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_profileAndLevel_SpatialatH_14 , {\n \"profileAndLevel-SpatialatH-14\" , \"h245.profileAndLevel_SpatialatH_14\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_profileAndLevel_HPatML , {\n \"profileAndLevel-HPatML\" , \"h245.profileAndLevel_HPatML\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_profileAndLevel_HPatH_14 , {\n \"profileAndLevel-HPatH-14\" , \"h245.profileAndLevel_HPatH_14\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_profileAndLevel_HPatHL , {\n \"profileAndLevel-HPatHL\" , \"h245.profileAndLevel_HPatHL\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_videoBitRate , {\n \"videoBitRate\" , \"h245.videoBitRate\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_1073741823\" , HFILL }\n }\n , {\n & hf_h245_vbvBufferSize , {\n \"vbvBufferSize\" , \"h245.vbvBufferSize\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_262143\" , HFILL }\n }\n , {\n & hf_h245_samplesPerLine , {\n \"samplesPerLine\" , \"h245.samplesPerLine\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_16383\" , HFILL }\n }\n , {\n & hf_h245_linesPerFrame , {\n \"linesPerFrame\" , \"h245.linesPerFrame\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_16383\" , HFILL }\n }\n , {\n & hf_h245_framesPerSecond , {\n \"framesPerSecond\" , \"h245.framesPerSecond\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_15\" , HFILL }\n }\n , {\n & hf_h245_luminanceSampleRate , {\n \"luminanceSampleRate\" , \"h245.luminanceSampleRate\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_4294967295\" , HFILL }\n }\n , {\n & hf_h245_sqcifMPI_1_32 , {\n \"sqcifMPI\" , \"h245.sqcifMPI\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_32\" , HFILL }\n }\n , {\n & hf_h245_qcifMPI , {\n \"qcifMPI\" , \"h245.qcifMPI\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_32\" , HFILL }\n }\n , {\n & hf_h245_cifMPI , {\n \"cifMPI\" , \"h245.cifMPI\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_32\" , HFILL }\n }\n , {\n & hf_h245_cif4MPI_1_32 , {\n \"cif4MPI\" , \"h245.cif4MPI\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_32\" , HFILL }\n }\n , {\n & hf_h245_cif16MPI_1_32 , {\n \"cif16MPI\" , \"h245.cif16MPI\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_32\" , HFILL }\n }\n , {\n & hf_h245_maxBitRate , {\n \"maxBitRate\" , \"h245.maxBitRate\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_192400\" , HFILL }\n }\n , {\n & hf_h245_unrestrictedVector , {\n \"unrestrictedVector\" , \"h245.unrestrictedVector\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_arithmeticCoding , {\n \"arithmeticCoding\" , \"h245.arithmeticCoding\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_advancedPrediction , {\n \"advancedPrediction\" , \"h245.advancedPrediction\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_pbFrames , {\n \"pbFrames\" , \"h245.pbFrames\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_hrd_B , {\n \"hrd-B\" , \"h245.hrd_B\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_524287\" , HFILL }\n }\n , {\n & hf_h245_bppMaxKb , {\n \"bppMaxKb\" , \"h245.bppMaxKb\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_65535\" , HFILL }\n }\n , {\n & hf_h245_slowSqcifMPI , {\n \"slowSqcifMPI\" , \"h245.slowSqcifMPI\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_3600\" , HFILL }\n }\n , {\n & hf_h245_slowQcifMPI , {\n \"slowQcifMPI\" , \"h245.slowQcifMPI\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_3600\" , HFILL }\n }\n , {\n & hf_h245_slowCifMPI , {\n \"slowCifMPI\" , \"h245.slowCifMPI\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_3600\" , HFILL }\n }\n , {\n & hf_h245_slowCif4MPI , {\n \"slowCif4MPI\" , \"h245.slowCif4MPI\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_3600\" , HFILL }\n }\n , {\n & hf_h245_slowCif16MPI , {\n \"slowCif16MPI\" , \"h245.slowCif16MPI\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_3600\" , HFILL }\n }\n , {\n & hf_h245_errorCompensation , {\n \"errorCompensation\" , \"h245.errorCompensation\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_enhancementLayerInfo , {\n \"enhancementLayerInfo\" , \"h245.enhancementLayerInfo_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_h263Options , {\n \"h263Options\" , \"h245.h263Options_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_baseBitRateConstrained , {\n \"baseBitRateConstrained\" , \"h245.baseBitRateConstrained\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_snrEnhancement , {\n \"snrEnhancement\" , \"h245.snrEnhancement\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SET_SIZE_1_14_OF_EnhancementOptions\" , HFILL }\n }\n , {\n & hf_h245_snrEnhancement_item , {\n \"EnhancementOptions\" , \"h245.EnhancementOptions_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_spatialEnhancement , {\n \"spatialEnhancement\" , \"h245.spatialEnhancement\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SET_SIZE_1_14_OF_EnhancementOptions\" , HFILL }\n }\n , {\n & hf_h245_spatialEnhancement_item , {\n \"EnhancementOptions\" , \"h245.EnhancementOptions_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_bPictureEnhancement , {\n \"bPictureEnhancement\" , \"h245.bPictureEnhancement\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SET_SIZE_1_14_OF_BEnhancementParameters\" , HFILL }\n }\n , {\n & hf_h245_bPictureEnhancement_item , {\n \"BEnhancementParameters\" , \"h245.BEnhancementParameters_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_enhancementOptions , {\n \"enhancementOptions\" , \"h245.enhancementOptions_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_numberOfBPictures , {\n \"numberOfBPictures\" , \"h245.numberOfBPictures\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_64\" , HFILL }\n }\n , {\n & hf_h245_advancedIntraCodingMode , {\n \"advancedIntraCodingMode\" , \"h245.advancedIntraCodingMode\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_deblockingFilterMode , {\n \"deblockingFilterMode\" , \"h245.deblockingFilterMode\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_improvedPBFramesMode , {\n \"improvedPBFramesMode\" , \"h245.improvedPBFramesMode\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_unlimitedMotionVectors , {\n \"unlimitedMotionVectors\" , \"h245.unlimitedMotionVectors\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_fullPictureFreeze , {\n \"fullPictureFreeze\" , \"h245.fullPictureFreeze\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_partialPictureFreezeAndRelease , {\n \"partialPictureFreezeAndRelease\" , \"h245.partialPictureFreezeAndRelease\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_resizingPartPicFreezeAndRelease , {\n \"resizingPartPicFreezeAndRelease\" , \"h245.resizingPartPicFreezeAndRelease\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_fullPictureSnapshot , {\n \"fullPictureSnapshot\" , \"h245.fullPictureSnapshot\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_partialPictureSnapshot , {\n \"partialPictureSnapshot\" , \"h245.partialPictureSnapshot\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_videoSegmentTagging , {\n \"videoSegmentTagging\" , \"h245.videoSegmentTagging\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_progressiveRefinement , {\n \"progressiveRefinement\" , \"h245.progressiveRefinement\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_dynamicPictureResizingByFour , {\n \"dynamicPictureResizingByFour\" , \"h245.dynamicPictureResizingByFour\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_dynamicPictureResizingSixteenthPel , {\n \"dynamicPictureResizingSixteenthPel\" , \"h245.dynamicPictureResizingSixteenthPel\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_dynamicWarpingHalfPel , {\n \"dynamicWarpingHalfPel\" , \"h245.dynamicWarpingHalfPel\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_dynamicWarpingSixteenthPel , {\n \"dynamicWarpingSixteenthPel\" , \"h245.dynamicWarpingSixteenthPel\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_independentSegmentDecoding , {\n \"independentSegmentDecoding\" , \"h245.independentSegmentDecoding\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_slicesInOrder_NonRect , {\n \"slicesInOrder-NonRect\" , \"h245.slicesInOrder_NonRect\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_slicesInOrder_Rect , {\n \"slicesInOrder-Rect\" , \"h245.slicesInOrder_Rect\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_slicesNoOrder_NonRect , {\n \"slicesNoOrder-NonRect\" , \"h245.slicesNoOrder_NonRect\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_slicesNoOrder_Rect , {\n \"slicesNoOrder-Rect\" , \"h245.slicesNoOrder_Rect\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_alternateInterVLCMode , {\n \"alternateInterVLCMode\" , \"h245.alternateInterVLCMode\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_modifiedQuantizationMode , {\n \"modifiedQuantizationMode\" , \"h245.modifiedQuantizationMode\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_reducedResolutionUpdate , {\n \"reducedResolutionUpdate\" , \"h245.reducedResolutionUpdate\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_transparencyParameters , {\n \"transparencyParameters\" , \"h245.transparencyParameters_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_separateVideoBackChannel , {\n \"separateVideoBackChannel\" , \"h245.separateVideoBackChannel\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_refPictureSelection , {\n \"refPictureSelection\" , \"h245.refPictureSelection_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_customPictureClockFrequency , {\n \"customPictureClockFrequency\" , \"h245.customPictureClockFrequency\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SET_SIZE_1_16_OF_CustomPictureClockFrequency\" , HFILL }\n }\n , {\n & hf_h245_customPictureClockFrequency_item , {\n \"CustomPictureClockFrequency\" , \"h245.CustomPictureClockFrequency_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_customPictureFormat , {\n \"customPictureFormat\" , \"h245.customPictureFormat\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SET_SIZE_1_16_OF_CustomPictureFormat\" , HFILL }\n }\n , {\n & hf_h245_customPictureFormat_item , {\n \"CustomPictureFormat\" , \"h245.CustomPictureFormat_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_modeCombos , {\n \"modeCombos\" , \"h245.modeCombos\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SET_SIZE_1_16_OF_H263VideoModeCombos\" , HFILL }\n }\n , {\n & hf_h245_modeCombos_item , {\n \"H263VideoModeCombos\" , \"h245.H263VideoModeCombos_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_h263Version3Options , {\n \"h263Version3Options\" , \"h245.h263Version3Options_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_presentationOrder , {\n \"presentationOrder\" , \"h245.presentationOrder\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_256\" , HFILL }\n }\n , {\n & hf_h245_offset_x , {\n \"offset-x\" , \"h245.offset_x\" , FT_INT32 , BASE_DEC , NULL , 0 , \"INTEGER_M262144_262143\" , HFILL }\n }\n , {\n & hf_h245_offset_y , {\n \"offset-y\" , \"h245.offset_y\" , FT_INT32 , BASE_DEC , NULL , 0 , \"INTEGER_M262144_262143\" , HFILL }\n }\n , {\n & hf_h245_scale_x , {\n \"scale-x\" , \"h245.scale_x\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_255\" , HFILL }\n }\n , {\n & hf_h245_scale_y , {\n \"scale-y\" , \"h245.scale_y\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_255\" , HFILL }\n }\n , {\n & hf_h245_additionalPictureMemory , {\n \"additionalPictureMemory\" , \"h245.additionalPictureMemory_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_sqcifAdditionalPictureMemory , {\n \"sqcifAdditionalPictureMemory\" , \"h245.sqcifAdditionalPictureMemory\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_256\" , HFILL }\n }\n , {\n & hf_h245_qcifAdditionalPictureMemory , {\n \"qcifAdditionalPictureMemory\" , \"h245.qcifAdditionalPictureMemory\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_256\" , HFILL }\n }\n , {\n & hf_h245_cifAdditionalPictureMemory , {\n \"cifAdditionalPictureMemory\" , \"h245.cifAdditionalPictureMemory\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_256\" , HFILL }\n }\n , {\n & hf_h245_cif4AdditionalPictureMemory , {\n \"cif4AdditionalPictureMemory\" , \"h245.cif4AdditionalPictureMemory\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_256\" , HFILL }\n }\n , {\n & hf_h245_cif16AdditionalPictureMemory , {\n \"cif16AdditionalPictureMemory\" , \"h245.cif16AdditionalPictureMemory\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_256\" , HFILL }\n }\n , {\n & hf_h245_bigCpfAdditionalPictureMemory , {\n \"bigCpfAdditionalPictureMemory\" , \"h245.bigCpfAdditionalPictureMemory\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_256\" , HFILL }\n }\n , {\n & hf_h245_videoMux , {\n \"videoMux\" , \"h245.videoMux\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_videoBackChannelSend , {\n \"videoBackChannelSend\" , \"h245.videoBackChannelSend\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_videoBackChannelSend_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_none , {\n \"none\" , \"h245.none_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_ackMessageOnly , {\n \"ackMessageOnly\" , \"h245.ackMessageOnly_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_nackMessageOnly , {\n \"nackMessageOnly\" , \"h245.nackMessageOnly_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_ackOrNackMessageOnly , {\n \"ackOrNackMessageOnly\" , \"h245.ackOrNackMessageOnly_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_ackAndNackMessage , {\n \"ackAndNackMessage\" , \"h245.ackAndNackMessage_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_enhancedReferencePicSelect , {\n \"enhancedReferencePicSelect\" , \"h245.enhancedReferencePicSelect_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_subPictureRemovalParameters , {\n \"subPictureRemovalParameters\" , \"h245.subPictureRemovalParameters_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_mpuHorizMBs , {\n \"mpuHorizMBs\" , \"h245.mpuHorizMBs\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_128\" , HFILL }\n }\n , {\n & hf_h245_mpuVertMBs , {\n \"mpuVertMBs\" , \"h245.mpuVertMBs\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_72\" , HFILL }\n }\n , {\n & hf_h245_mpuTotalNumber , {\n \"mpuTotalNumber\" , \"h245.mpuTotalNumber\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_65536\" , HFILL }\n }\n , {\n & hf_h245_clockConversionCode , {\n \"clockConversionCode\" , \"h245.clockConversionCode\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1000_1001\" , HFILL }\n }\n , {\n & hf_h245_clockDivisor , {\n \"clockDivisor\" , \"h245.clockDivisor\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_127\" , HFILL }\n }\n , {\n & hf_h245_sqcifMPI , {\n \"sqcifMPI\" , \"h245.sqcifMPI\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_2048\" , HFILL }\n }\n , {\n & hf_h245_qcifMPI_1_2048 , {\n \"qcifMPI\" , \"h245.qcifMPI\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_2048\" , HFILL }\n }\n , {\n & hf_h245_cifMPI2_1_2048 , {\n \"cifMPI\" , \"h245.cifMPI\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_2048\" , HFILL }\n }\n , {\n & hf_h245_cif4MPI , {\n \"cif4MPI\" , \"h245.cif4MPI\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_2048\" , HFILL }\n }\n , {\n & hf_h245_cif16MPI , {\n \"cif16MPI\" , \"h245.cif16MPI\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_2048\" , HFILL }\n }\n , {\n & hf_h245_maxCustomPictureWidth , {\n \"maxCustomPictureWidth\" , \"h245.maxCustomPictureWidth\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_2048\" , HFILL }\n }\n , {\n & hf_h245_maxCustomPictureHeight , {\n \"maxCustomPictureHeight\" , \"h245.maxCustomPictureHeight\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_2048\" , HFILL }\n }\n , {\n & hf_h245_minCustomPictureWidth , {\n \"minCustomPictureWidth\" , \"h245.minCustomPictureWidth\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_2048\" , HFILL }\n }\n , {\n & hf_h245_minCustomPictureHeight , {\n \"minCustomPictureHeight\" , \"h245.minCustomPictureHeight\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_2048\" , HFILL }\n }\n , {\n & hf_h245_mPI , {\n \"mPI\" , \"h245.mPI_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_standardMPI , {\n \"standardMPI\" , \"h245.standardMPI\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_31\" , HFILL }\n }\n , {\n & hf_h245_customPCF , {\n \"customPCF\" , \"h245.customPCF\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_customPCF_item , {\n \"customPCF item\" , \"h245.customPCF_item_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_customMPI , {\n \"customMPI\" , \"h245.customMPI\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_2048\" , HFILL }\n }\n , {\n & hf_h245_pixelAspectInformation , {\n \"pixelAspectInformation\" , \"h245.pixelAspectInformation\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_pixelAspectInformation_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_anyPixelAspectRatio , {\n \"anyPixelAspectRatio\" , \"h245.anyPixelAspectRatio\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_pixelAspectCode , {\n \"pixelAspectCode\" , \"h245.pixelAspectCode\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_pixelAspectCode_item , {\n \"pixelAspectCode item\" , \"h245.pixelAspectCode_item\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_14\" , HFILL }\n }\n , {\n & hf_h245_extendedPAR , {\n \"extendedPAR\" , \"h245.extendedPAR\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_extendedPAR_item , {\n \"extendedPAR item\" , \"h245.extendedPAR_item_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_width , {\n \"width\" , \"h245.width\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_255\" , HFILL }\n }\n , {\n & hf_h245_height , {\n \"height\" , \"h245.height\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_255\" , HFILL }\n }\n , {\n & hf_h245_h263VideoUncoupledModes , {\n \"h263VideoUncoupledModes\" , \"h245.h263VideoUncoupledModes_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"H263ModeComboFlags\" , HFILL }\n }\n , {\n & hf_h245_h263VideoCoupledModes , {\n \"h263VideoCoupledModes\" , \"h245.h263VideoCoupledModes\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SET_SIZE_1_16_OF_H263ModeComboFlags\" , HFILL }\n }\n , {\n & hf_h245_h263VideoCoupledModes_item , {\n \"H263ModeComboFlags\" , \"h245.H263ModeComboFlags_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_referencePicSelect , {\n \"referencePicSelect\" , \"h245.referencePicSelect\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_enhancedReferencePicSelectBool , {\n \"enhancedReferencePicSelect\" , \"h245.enhancedReferencePicSelect\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_dataPartitionedSlices , {\n \"dataPartitionedSlices\" , \"h245.dataPartitionedSlices\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_fixedPointIDCT0 , {\n \"fixedPointIDCT0\" , \"h245.fixedPointIDCT0\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_interlacedFields , {\n \"interlacedFields\" , \"h245.interlacedFields\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_currentPictureHeaderRepetition , {\n \"currentPictureHeaderRepetition\" , \"h245.currentPictureHeaderRepetition\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_previousPictureHeaderRepetition , {\n \"previousPictureHeaderRepetition\" , \"h245.previousPictureHeaderRepetition\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_nextPictureHeaderRepetition , {\n \"nextPictureHeaderRepetition\" , \"h245.nextPictureHeaderRepetition\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_pictureNumberBoolean , {\n \"pictureNumber\" , \"h245.pictureNumber\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_spareReferencePictures , {\n \"spareReferencePictures\" , \"h245.spareReferencePictures\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_constrainedBitstream , {\n \"constrainedBitstream\" , \"h245.constrainedBitstream\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_pictureRate , {\n \"pictureRate\" , \"h245.pictureRate\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_15\" , HFILL }\n }\n , {\n & hf_h245_g711Alaw64k , {\n \"g711Alaw64k\" , \"h245.g711Alaw64k\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_256\" , HFILL }\n }\n , {\n & hf_h245_g711Alaw56k , {\n \"g711Alaw56k\" , \"h245.g711Alaw56k\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_256\" , HFILL }\n }\n , {\n & hf_h245_g711Ulaw64k , {\n \"g711Ulaw64k\" , \"h245.g711Ulaw64k\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_256\" , HFILL }\n }\n , {\n & hf_h245_g711Ulaw56k , {\n \"g711Ulaw56k\" , \"h245.g711Ulaw56k\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_256\" , HFILL }\n }\n , {\n & hf_h245_g722_64k , {\n \"g722-64k\" , \"h245.g722_64k\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_256\" , HFILL }\n }\n , {\n & hf_h245_g722_56k , {\n \"g722-56k\" , \"h245.g722_56k\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_256\" , HFILL }\n }\n , {\n & hf_h245_g722_48k , {\n \"g722-48k\" , \"h245.g722_48k\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_256\" , HFILL }\n }\n , {\n & hf_h245_g7231 , {\n \"g7231\" , \"h245.g7231_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_maxAl_sduAudioFrames , {\n \"maxAl-sduAudioFrames\" , \"h245.maxAl_sduAudioFrames\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_256\" , HFILL }\n }\n , {\n & hf_h245_silenceSuppression , {\n \"silenceSuppression\" , \"h245.silenceSuppression\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_g728 , {\n \"g728\" , \"h245.g728\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_256\" , HFILL }\n }\n , {\n & hf_h245_g729 , {\n \"g729\" , \"h245.g729\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_256\" , HFILL }\n }\n , {\n & hf_h245_g729AnnexA , {\n \"g729AnnexA\" , \"h245.g729AnnexA\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_256\" , HFILL }\n }\n , {\n & hf_h245_is11172AudioCapability , {\n \"is11172AudioCapability\" , \"h245.is11172AudioCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_is13818AudioCapability , {\n \"is13818AudioCapability\" , \"h245.is13818AudioCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_g729wAnnexB , {\n \"g729wAnnexB\" , \"h245.g729wAnnexB\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_256\" , HFILL }\n }\n , {\n & hf_h245_g729AnnexAwAnnexB , {\n \"g729AnnexAwAnnexB\" , \"h245.g729AnnexAwAnnexB\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_256\" , HFILL }\n }\n , {\n & hf_h245_g7231AnnexCCapability , {\n \"g7231AnnexCCapability\" , \"h245.g7231AnnexCCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_gsmFullRate , {\n \"gsmFullRate\" , \"h245.gsmFullRate_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"GSMAudioCapability\" , HFILL }\n }\n , {\n & hf_h245_gsmHalfRate , {\n \"gsmHalfRate\" , \"h245.gsmHalfRate_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"GSMAudioCapability\" , HFILL }\n }\n , {\n & hf_h245_gsmEnhancedFullRate , {\n \"gsmEnhancedFullRate\" , \"h245.gsmEnhancedFullRate_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"GSMAudioCapability\" , HFILL }\n }\n , {\n & hf_h245_genericAudioCapability , {\n \"genericAudioCapability\" , \"h245.genericAudioCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"GenericCapability\" , HFILL }\n }\n , {\n & hf_h245_g729Extensions , {\n \"g729Extensions\" , \"h245.g729Extensions_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_vbd , {\n \"vbd\" , \"h245.vbd_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"VBDCapability\" , HFILL }\n }\n , {\n & hf_h245_audioTelephonyEvent , {\n \"audioTelephonyEvent\" , \"h245.audioTelephonyEvent_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"NoPTAudioTelephonyEventCapability\" , HFILL }\n }\n , {\n & hf_h245_audioTone , {\n \"audioTone\" , \"h245.audioTone_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"NoPTAudioToneCapability\" , HFILL }\n }\n , {\n & hf_h245_audioUnit , {\n \"audioUnit\" , \"h245.audioUnit\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_256\" , HFILL }\n }\n , {\n & hf_h245_annexA , {\n \"annexA\" , \"h245.annexA\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_annexB , {\n \"annexB\" , \"h245.annexB\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_annexD , {\n \"annexD\" , \"h245.annexD\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_annexE , {\n \"annexE\" , \"h245.annexE\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_annexF , {\n \"annexF\" , \"h245.annexF\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_annexG , {\n \"annexG\" , \"h245.annexG\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_annexH , {\n \"annexH\" , \"h245.annexH\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_highRateMode0 , {\n \"highRateMode0\" , \"h245.highRateMode0\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_27_78\" , HFILL }\n }\n , {\n & hf_h245_highRateMode1 , {\n \"highRateMode1\" , \"h245.highRateMode1\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_27_78\" , HFILL }\n }\n , {\n & hf_h245_lowRateMode0 , {\n \"lowRateMode0\" , \"h245.lowRateMode0\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_23_66\" , HFILL }\n }\n , {\n & hf_h245_lowRateMode1 , {\n \"lowRateMode1\" , \"h245.lowRateMode1\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_23_66\" , HFILL }\n }\n , {\n & hf_h245_sidMode0 , {\n \"sidMode0\" , \"h245.sidMode0\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_6_17\" , HFILL }\n }\n , {\n & hf_h245_sidMode1 , {\n \"sidMode1\" , \"h245.sidMode1\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_6_17\" , HFILL }\n }\n , {\n & hf_h245_g723AnnexCAudioMode , {\n \"g723AnnexCAudioMode\" , \"h245.g723AnnexCAudioMode_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_audioLayer1 , {\n \"audioLayer1\" , \"h245.audioLayer1\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_audioLayer2 , {\n \"audioLayer2\" , \"h245.audioLayer2\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_audioLayer3 , {\n \"audioLayer3\" , \"h245.audioLayer3\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_audioSampling32k , {\n \"audioSampling32k\" , \"h245.audioSampling32k\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_audioSampling44k1 , {\n \"audioSampling44k1\" , \"h245.audioSampling44k1\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_audioSampling48k , {\n \"audioSampling48k\" , \"h245.audioSampling48k\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_singleChannel , {\n \"singleChannel\" , \"h245.singleChannel\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_twoChannels , {\n \"twoChannels\" , \"h245.twoChannels\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_bitRate_1_448 , {\n \"bitRate\" , \"h245.bitRate\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_448\" , HFILL }\n }\n , {\n & hf_h245_audioSampling16k , {\n \"audioSampling16k\" , \"h245.audioSampling16k\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_audioSampling22k05 , {\n \"audioSampling22k05\" , \"h245.audioSampling22k05\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_audioSampling24k , {\n \"audioSampling24k\" , \"h245.audioSampling24k\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_threeChannels2_1 , {\n \"threeChannels2-1\" , \"h245.threeChannels2_1\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_threeChannels3_0 , {\n \"threeChannels3-0\" , \"h245.threeChannels3_0\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_fourChannels2_0_2_0 , {\n \"fourChannels2-0-2-0\" , \"h245.fourChannels2_0_2_0\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_fourChannels2_2 , {\n \"fourChannels2-2\" , \"h245.fourChannels2_2\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_fourChannels3_1 , {\n \"fourChannels3-1\" , \"h245.fourChannels3_1\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_fiveChannels3_0_2_0 , {\n \"fiveChannels3-0-2-0\" , \"h245.fiveChannels3_0_2_0\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_fiveChannels3_2 , {\n \"fiveChannels3-2\" , \"h245.fiveChannels3_2\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_lowFrequencyEnhancement , {\n \"lowFrequencyEnhancement\" , \"h245.lowFrequencyEnhancement\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_multilingual , {\n \"multilingual\" , \"h245.multilingual\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_bitRate2_1_1130 , {\n \"bitRate\" , \"h245.bitRate\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_1130\" , HFILL }\n }\n , {\n & hf_h245_audioUnitSize , {\n \"audioUnitSize\" , \"h245.audioUnitSize\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_256\" , HFILL }\n }\n , {\n & hf_h245_comfortNoise , {\n \"comfortNoise\" , \"h245.comfortNoise\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_scrambled , {\n \"scrambled\" , \"h245.scrambled\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_vbd_cap_type , {\n \"type\" , \"h245.type\" , FT_UINT32 , BASE_DEC , VALS ( h245_AudioCapability_vals ) , 0 , \"AudioCapability\" , HFILL }\n }\n , {\n & hf_h245_t120 , {\n \"t120\" , \"h245.t120\" , FT_UINT32 , BASE_DEC , VALS ( DataProtocolCapability_vals ) , 0 , \"DataProtocolCapability\" , HFILL }\n }\n , {\n & hf_h245_dsm_cc , {\n \"dsm-cc\" , \"h245.dsm_cc\" , FT_UINT32 , BASE_DEC , VALS ( DataProtocolCapability_vals ) , 0 , \"DataProtocolCapability\" , HFILL }\n }\n , {\n & hf_h245_userData , {\n \"userData\" , \"h245.userData\" , FT_UINT32 , BASE_DEC , VALS ( DataProtocolCapability_vals ) , 0 , \"DataProtocolCapability\" , HFILL }\n }\n , {\n & hf_h245_t84 , {\n \"t84\" , \"h245.t84_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_t84Protocol , {\n \"t84Protocol\" , \"h245.t84Protocol\" , FT_UINT32 , BASE_DEC , VALS ( DataProtocolCapability_vals ) , 0 , \"DataProtocolCapability\" , HFILL }\n }\n , {\n & hf_h245_t84Profile , {\n \"t84Profile\" , \"h245.t84Profile\" , FT_UINT32 , BASE_DEC , VALS ( h245_T84Profile_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_t434 , {\n \"t434\" , \"h245.t434\" , FT_UINT32 , BASE_DEC , VALS ( DataProtocolCapability_vals ) , 0 , \"DataProtocolCapability\" , HFILL }\n }\n , {\n & hf_h245_h224 , {\n \"h224\" , \"h245.h224\" , FT_UINT32 , BASE_DEC , VALS ( DataProtocolCapability_vals ) , 0 , \"DataProtocolCapability\" , HFILL }\n }\n , {\n & hf_h245_nlpidProtocol , {\n \"nlpidProtocol\" , \"h245.nlpidProtocol\" , FT_UINT32 , BASE_DEC , VALS ( DataProtocolCapability_vals ) , 0 , \"DataProtocolCapability\" , HFILL }\n }\n , {\n & hf_h245_nlpidData , {\n \"nlpidData\" , \"h245.nlpidData\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING\" , HFILL }\n }\n , {\n & hf_h245_nlpid , {\n \"nlpid\" , \"h245.nlpid_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_dsvdControl , {\n \"dsvdControl\" , \"h245.dsvdControl_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_h222DataPartitioning , {\n \"h222DataPartitioning\" , \"h245.h222DataPartitioning\" , FT_UINT32 , BASE_DEC , VALS ( DataProtocolCapability_vals ) , 0 , \"DataProtocolCapability\" , HFILL }\n }\n , {\n & hf_h245_t30fax , {\n \"t30fax\" , \"h245.t30fax\" , FT_UINT32 , BASE_DEC , VALS ( DataProtocolCapability_vals ) , 0 , \"DataProtocolCapability\" , HFILL }\n }\n , {\n & hf_h245_t140 , {\n \"t140\" , \"h245.t140\" , FT_UINT32 , BASE_DEC , VALS ( DataProtocolCapability_vals ) , 0 , \"DataProtocolCapability\" , HFILL }\n }\n , {\n & hf_h245_t38fax , {\n \"t38fax\" , \"h245.t38fax_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_t38FaxProtocol , {\n \"t38FaxProtocol\" , \"h245.t38FaxProtocol\" , FT_UINT32 , BASE_DEC , VALS ( DataProtocolCapability_vals ) , 0 , \"DataProtocolCapability\" , HFILL }\n }\n , {\n & hf_h245_t38FaxProfile , {\n \"t38FaxProfile\" , \"h245.t38FaxProfile_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_genericDataCapability , {\n \"genericDataCapability\" , \"h245.genericDataCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"GenericCapability\" , HFILL }\n }\n , {\n & hf_h245_application , {\n \"application\" , \"h245.application\" , FT_UINT32 , BASE_DEC , VALS ( h245_Application_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_maxBitRate2_0_4294967295 , {\n \"maxBitRate\" , \"h245.maxBitRate\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_4294967295\" , HFILL }\n }\n , {\n & hf_h245_v14buffered , {\n \"v14buffered\" , \"h245.v14buffered_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_v42lapm , {\n \"v42lapm\" , \"h245.v42lapm_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_hdlcFrameTunnelling , {\n \"hdlcFrameTunnelling\" , \"h245.hdlcFrameTunnelling_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_h310SeparateVCStack , {\n \"h310SeparateVCStack\" , \"h245.h310SeparateVCStack_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_h310SingleVCStack , {\n \"h310SingleVCStack\" , \"h245.h310SingleVCStack_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_transparent , {\n \"transparent\" , \"h245.transparent_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_segmentationAndReassembly , {\n \"segmentationAndReassembly\" , \"h245.segmentationAndReassembly_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_hdlcFrameTunnelingwSAR , {\n \"hdlcFrameTunnelingwSAR\" , \"h245.hdlcFrameTunnelingwSAR_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_v120 , {\n \"v120\" , \"h245.v120_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_separateLANStack , {\n \"separateLANStack\" , \"h245.separateLANStack_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_v76wCompression , {\n \"v76wCompression\" , \"h245.v76wCompression\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_v76wCompression_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_transmitCompression , {\n \"transmitCompression\" , \"h245.transmitCompression\" , FT_UINT32 , BASE_DEC , VALS ( h245_CompressionType_vals ) , 0 , \"CompressionType\" , HFILL }\n }\n , {\n & hf_h245_receiveCompression , {\n \"receiveCompression\" , \"h245.receiveCompression\" , FT_UINT32 , BASE_DEC , VALS ( h245_CompressionType_vals ) , 0 , \"CompressionType\" , HFILL }\n }\n , {\n & hf_h245_transmitAndReceiveCompression , {\n \"transmitAndReceiveCompression\" , \"h245.transmitAndReceiveCompression\" , FT_UINT32 , BASE_DEC , VALS ( h245_CompressionType_vals ) , 0 , \"CompressionType\" , HFILL }\n }\n , {\n & hf_h245_tcp , {\n \"tcp\" , \"h245.tcp_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_udp , {\n \"udp\" , \"h245.udp_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_v42bis , {\n \"v42bis\" , \"h245.v42bis_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_numberOfCodewords , {\n \"numberOfCodewords\" , \"h245.numberOfCodewords\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_65536\" , HFILL }\n }\n , {\n & hf_h245_maximumStringLength , {\n \"maximumStringLength\" , \"h245.maximumStringLength\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_256\" , HFILL }\n }\n , {\n & hf_h245_t84Unrestricted , {\n \"t84Unrestricted\" , \"h245.t84Unrestricted_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_t84Restricted , {\n \"t84Restricted\" , \"h245.t84Restricted_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_qcif_bool , {\n \"qcif\" , \"h245.qcif\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_cif_bool , {\n \"cif\" , \"h245.cif\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_ccir601Seq , {\n \"ccir601Seq\" , \"h245.ccir601Seq\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_ccir601Prog , {\n \"ccir601Prog\" , \"h245.ccir601Prog\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_hdtvSeq , {\n \"hdtvSeq\" , \"h245.hdtvSeq\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_hdtvProg , {\n \"hdtvProg\" , \"h245.hdtvProg\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_g3FacsMH200x100 , {\n \"g3FacsMH200x100\" , \"h245.g3FacsMH200x100\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_g3FacsMH200x200 , {\n \"g3FacsMH200x200\" , \"h245.g3FacsMH200x200\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_g4FacsMMR200x100 , {\n \"g4FacsMMR200x100\" , \"h245.g4FacsMMR200x100\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_g4FacsMMR200x200 , {\n \"g4FacsMMR200x200\" , \"h245.g4FacsMMR200x200\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_jbig200x200Seq , {\n \"jbig200x200Seq\" , \"h245.jbig200x200Seq\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_jbig200x200Prog , {\n \"jbig200x200Prog\" , \"h245.jbig200x200Prog\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_jbig300x300Seq , {\n \"jbig300x300Seq\" , \"h245.jbig300x300Seq\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_jbig300x300Prog , {\n \"jbig300x300Prog\" , \"h245.jbig300x300Prog\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_digPhotoLow , {\n \"digPhotoLow\" , \"h245.digPhotoLow\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_digPhotoMedSeq , {\n \"digPhotoMedSeq\" , \"h245.digPhotoMedSeq\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_digPhotoMedProg , {\n \"digPhotoMedProg\" , \"h245.digPhotoMedProg\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_digPhotoHighSeq , {\n \"digPhotoHighSeq\" , \"h245.digPhotoHighSeq\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_digPhotoHighProg , {\n \"digPhotoHighProg\" , \"h245.digPhotoHighProg\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_fillBitRemoval , {\n \"fillBitRemoval\" , \"h245.fillBitRemoval\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_transcodingJBIG , {\n \"transcodingJBIG\" , \"h245.transcodingJBIG\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_transcodingMMR , {\n \"transcodingMMR\" , \"h245.transcodingMMR\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_version , {\n \"version\" , \"h245.version\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_255\" , HFILL }\n }\n , {\n & hf_h245_t38FaxRateManagement , {\n \"t38FaxRateManagement\" , \"h245.t38FaxRateManagement\" , FT_UINT32 , BASE_DEC , VALS ( h245_T38FaxRateManagement_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_t38FaxUdpOptions , {\n \"t38FaxUdpOptions\" , \"h245.t38FaxUdpOptions_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_t38FaxTcpOptions , {\n \"t38FaxTcpOptions\" , \"h245.t38FaxTcpOptions_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_localTCF , {\n \"localTCF\" , \"h245.localTCF_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_transferredTCF , {\n \"transferredTCF\" , \"h245.transferredTCF_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_t38FaxMaxBuffer , {\n \"t38FaxMaxBuffer\" , \"h245.t38FaxMaxBuffer\" , FT_INT32 , BASE_DEC , NULL , 0 , \"INTEGER\" , HFILL }\n }\n , {\n & hf_h245_t38FaxMaxDatagram , {\n \"t38FaxMaxDatagram\" , \"h245.t38FaxMaxDatagram\" , FT_INT32 , BASE_DEC , NULL , 0 , \"INTEGER\" , HFILL }\n }\n , {\n & hf_h245_t38FaxUdpEC , {\n \"t38FaxUdpEC\" , \"h245.t38FaxUdpEC\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_t38FaxUdpEC_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_t38UDPFEC , {\n \"t38UDPFEC\" , \"h245.t38UDPFEC_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_t38UDPRedundancy , {\n \"t38UDPRedundancy\" , \"h245.t38UDPRedundancy_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_t38TCPBidirectionalMode , {\n \"t38TCPBidirectionalMode\" , \"h245.t38TCPBidirectionalMode\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_encryptionCapability , {\n \"encryptionCapability\" , \"h245.encryptionCapability\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_authenticationCapability , {\n \"authenticationCapability\" , \"h245.authenticationCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_integrityCapability , {\n \"integrityCapability\" , \"h245.integrityCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_genericH235SecurityCapability , {\n \"genericH235SecurityCapability\" , \"h245.genericH235SecurityCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"GenericCapability\" , HFILL }\n }\n , {\n & hf_h245_EncryptionCapability_item , {\n \"MediaEncryptionAlgorithm\" , \"h245.MediaEncryptionAlgorithm\" , FT_UINT32 , BASE_DEC , VALS ( h245_MediaEncryptionAlgorithm_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_algorithm , {\n \"algorithm\" , \"h245.algorithm\" , FT_OID , BASE_NONE , NULL , 0 , \"OBJECT_IDENTIFIER\" , HFILL }\n }\n , {\n & hf_h245_antiSpamAlgorithm , {\n \"antiSpamAlgorithm\" , \"h245.antiSpamAlgorithm\" , FT_OID , BASE_NONE , NULL , 0 , \"OBJECT_IDENTIFIER\" , HFILL }\n }\n , {\n & hf_h245_ui_nonStandard , {\n \"nonStandard\" , \"h245.nonStandard\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_SIZE_1_16_OF_NonStandardParameter\" , HFILL }\n }\n , {\n & hf_h245_ui_nonStandard_item , {\n \"NonStandardParameter\" , \"h245.NonStandardParameter_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_basicString , {\n \"basicString\" , \"h245.basicString_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_iA5String , {\n \"iA5String\" , \"h245.iA5String_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_generalString , {\n \"generalString\" , \"h245.generalString_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_dtmf , {\n \"dtmf\" , \"h245.dtmf_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_hookflash , {\n \"hookflash\" , \"h245.hookflash_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_extendedAlphanumericFlag , {\n \"extendedAlphanumeric\" , \"h245.extendedAlphanumeric_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_encryptedBasicString , {\n \"encryptedBasicString\" , \"h245.encryptedBasicString_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_encryptedIA5String , {\n \"encryptedIA5String\" , \"h245.encryptedIA5String_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_encryptedGeneralString , {\n \"encryptedGeneralString\" , \"h245.encryptedGeneralString_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_secureDTMF , {\n \"secureDTMF\" , \"h245.secureDTMF_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_genericUserInputCapability , {\n \"genericUserInputCapability\" , \"h245.genericUserInputCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"GenericCapability\" , HFILL }\n }\n , {\n & hf_h245_nonStandardParams , {\n \"nonStandardData\" , \"h245.nonStandardData\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_NonStandardParameter\" , HFILL }\n }\n , {\n & hf_h245_nonStandardParams_item , {\n \"NonStandardParameter\" , \"h245.NonStandardParameter_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_chairControlCapability , {\n \"chairControlCapability\" , \"h245.chairControlCapability\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_videoIndicateMixingCapability , {\n \"videoIndicateMixingCapability\" , \"h245.videoIndicateMixingCapability\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_multipointVisualizationCapability , {\n \"multipointVisualizationCapability\" , \"h245.multipointVisualizationCapability\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_capabilityIdentifier , {\n \"capabilityIdentifier\" , \"h245.capabilityIdentifier\" , FT_UINT32 , BASE_DEC , VALS ( h245_CapabilityIdentifier_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_collapsing , {\n \"collapsing\" , \"h245.collapsing\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_collapsing_item , {\n \"collapsing item\" , \"h245.collapsing_item_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_nonCollapsing , {\n \"nonCollapsing\" , \"h245.nonCollapsing\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_nonCollapsing_item , {\n \"nonCollapsing item\" , \"h245.nonCollapsing_item_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_nonCollapsingRaw , {\n \"nonCollapsingRaw\" , \"h245.nonCollapsingRaw\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_transport , {\n \"transport\" , \"h245.transport\" , FT_UINT32 , BASE_DEC , VALS ( DataProtocolCapability_vals ) , 0 , \"DataProtocolCapability\" , HFILL }\n }\n , {\n & hf_h245_standardOid , {\n \"standard\" , \"h245.standard\" , FT_OID , BASE_NONE , NULL , 0 , \"T_standardOid\" , HFILL }\n }\n , {\n & hf_h245_h221NonStandard , {\n \"h221NonStandard\" , \"h245.h221NonStandard_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"NonStandardParameter\" , HFILL }\n }\n , {\n & hf_h245_uuid , {\n \"uuid\" , \"h245.uuid\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_16\" , HFILL }\n }\n , {\n & hf_h245_domainBased , {\n \"domainBased\" , \"h245.domainBased\" , FT_STRING , BASE_NONE , NULL , 0 , \"IA5String_SIZE_1_64\" , HFILL }\n }\n , {\n & hf_h245_parameterIdentifier , {\n \"parameterIdentifier\" , \"h245.parameterIdentifier\" , FT_UINT32 , BASE_DEC , VALS ( h245_ParameterIdentifier_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_parameterValue , {\n \"parameterValue\" , \"h245.parameterValue\" , FT_UINT32 , BASE_DEC , VALS ( h245_ParameterValue_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_supersedes , {\n \"supersedes\" , \"h245.supersedes\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_ParameterIdentifier\" , HFILL }\n }\n , {\n & hf_h245_supersedes_item , {\n \"ParameterIdentifier\" , \"h245.ParameterIdentifier\" , FT_UINT32 , BASE_DEC , VALS ( h245_ParameterIdentifier_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_standard , {\n \"standard\" , \"h245.standard\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_logical , {\n \"logical\" , \"h245.logical_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_booleanArray , {\n \"booleanArray\" , \"h245.booleanArray\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_unsignedMin , {\n \"unsignedMin\" , \"h245.unsignedMin\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_unsignedMax , {\n \"unsignedMax\" , \"h245.unsignedMax\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_unsigned32Min , {\n \"unsigned32Min\" , \"h245.unsigned32Min\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_unsigned32Max , {\n \"unsigned32Max\" , \"h245.unsigned32Max\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_octetString , {\n \"octetString\" , \"h245.octetString\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_genericParameters , {\n \"genericParameter\" , \"h245.genericParameter\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_GenericParameter\" , HFILL }\n }\n , {\n & hf_h245_genericParameters_item , {\n \"GenericParameter\" , \"h245.GenericParameter_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_multiplexFormat , {\n \"multiplexFormat\" , \"h245.multiplexFormat\" , FT_UINT32 , BASE_DEC , VALS ( h245_MultiplexFormat_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_controlOnMuxStream , {\n \"controlOnMuxStream\" , \"h245.controlOnMuxStream\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_capabilityOnMuxStream , {\n \"capabilityOnMuxStream\" , \"h245.capabilityOnMuxStream\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SET_SIZE_1_256_OF_AlternativeCapabilitySet\" , HFILL }\n }\n , {\n & hf_h245_capabilityOnMuxStream_item , {\n \"AlternativeCapabilitySet\" , \"h245.AlternativeCapabilitySet\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_dynamicRTPPayloadType , {\n \"dynamicRTPPayloadType\" , \"h245.dynamicRTPPayloadType\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_96_127\" , HFILL }\n }\n , {\n & hf_h245_audioTelephoneEvent , {\n \"audioTelephoneEvent\" , \"h245.audioTelephoneEvent\" , FT_STRING , BASE_NONE , NULL , 0 , \"GeneralString\" , HFILL }\n }\n , {\n & hf_h245_capabilities , {\n \"capabilities\" , \"h245.capabilities\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SET_SIZE_1_256_OF_AlternativeCapabilitySet\" , HFILL }\n }\n , {\n & hf_h245_capabilities_item , {\n \"AlternativeCapabilitySet\" , \"h245.AlternativeCapabilitySet\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_fecc_rfc2733 , {\n \"rfc2733\" , \"h245.rfc2733_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"FECC_rfc2733\" , HFILL }\n }\n , {\n & hf_h245_redundancyEncodingBool , {\n \"redundancyEncoding\" , \"h245.redundancyEncoding\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_separateStreamBool , {\n \"separateStream\" , \"h245.separateStream_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"T_separateStreamBool\" , HFILL }\n }\n , {\n & hf_h245_separatePort , {\n \"separatePort\" , \"h245.separatePort\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_samePortBool , {\n \"samePort\" , \"h245.samePort\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_protectedCapability , {\n \"protectedCapability\" , \"h245.protectedCapability\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"CapabilityTableEntryNumber\" , HFILL }\n }\n , {\n & hf_h245_fecScheme , {\n \"fecScheme\" , \"h245.fecScheme\" , FT_OID , BASE_NONE , NULL , 0 , \"OBJECT_IDENTIFIER\" , HFILL }\n }\n , {\n & hf_h245_rfc2733rfc2198 , {\n \"rfc2733rfc2198\" , \"h245.rfc2733rfc2198\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"MaxRedundancy\" , HFILL }\n }\n , {\n & hf_h245_rfc2733sameport , {\n \"rfc2733sameport\" , \"h245.rfc2733sameport\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"MaxRedundancy\" , HFILL }\n }\n , {\n & hf_h245_rfc2733diffport , {\n \"rfc2733diffport\" , \"h245.rfc2733diffport\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"MaxRedundancy\" , HFILL }\n }\n , {\n & hf_h245_rfc2733Format , {\n \"rfc2733Format\" , \"h245.rfc2733Format\" , FT_UINT32 , BASE_DEC , VALS ( h245_Rfc2733Format_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_olc_fw_lcn , {\n \"forwardLogicalChannelNumber\" , \"h245.forwardLogicalChannelNumber\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"OLC_fw_lcn\" , HFILL }\n }\n , {\n & hf_h245_forwardLogicalChannelParameters , {\n \"forwardLogicalChannelParameters\" , \"h245.forwardLogicalChannelParameters_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_portNumber , {\n \"portNumber\" , \"h245.portNumber\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_65535\" , HFILL }\n }\n , {\n & hf_h245_dataType , {\n \"dataType\" , \"h245.dataType\" , FT_UINT32 , BASE_DEC , VALS ( h245_DataType_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_olc_forw_multiplexParameters , {\n \"multiplexParameters\" , \"h245.multiplexParameters\" , FT_UINT32 , BASE_DEC , VALS ( h245_OLC_forw_multiplexParameters_vals ) , 0 , \"OLC_forw_multiplexParameters\" , HFILL }\n }\n , {\n & hf_h245_h222LogicalChannelParameters , {\n \"h222LogicalChannelParameters\" , \"h245.h222LogicalChannelParameters_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_olc_fw_h223_params , {\n \"h223LogicalChannelParameters\" , \"h245.h223LogicalChannelParameters_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"OLC_fw_h223_params\" , HFILL }\n }\n , {\n & hf_h245_v76LogicalChannelParameters , {\n \"v76LogicalChannelParameters\" , \"h245.v76LogicalChannelParameters_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_h2250LogicalChannelParameters , {\n \"h2250LogicalChannelParameters\" , \"h245.h2250LogicalChannelParameters_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_forwardLogicalChannelDependency , {\n \"forwardLogicalChannelDependency\" , \"h245.forwardLogicalChannelDependency\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"LogicalChannelNumber\" , HFILL }\n }\n , {\n & hf_h245_replacementFor , {\n \"replacementFor\" , \"h245.replacementFor\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"LogicalChannelNumber\" , HFILL }\n }\n , {\n & hf_h245_reverseLogicalChannelParameters , {\n \"reverseLogicalChannelParameters\" , \"h245.reverseLogicalChannelParameters_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"OLC_reverseLogicalChannelParameters\" , HFILL }\n }\n , {\n & hf_h245_olc_rev_multiplexParameter , {\n \"multiplexParameters\" , \"h245.multiplexParameters\" , FT_UINT32 , BASE_DEC , VALS ( h245_OLC_rev_multiplexParameters_vals ) , 0 , \"OLC_rev_multiplexParameters\" , HFILL }\n }\n , {\n & hf_h245_olc_rev_h223_params , {\n \"h223LogicalChannelParameters\" , \"h245.h223LogicalChannelParameters_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"OLC_rev_h223_params\" , HFILL }\n }\n , {\n & hf_h245_reverseLogicalChannelDependency , {\n \"reverseLogicalChannelDependency\" , \"h245.reverseLogicalChannelDependency\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"LogicalChannelNumber\" , HFILL }\n }\n , {\n & hf_h245_separateStack , {\n \"separateStack\" , \"h245.separateStack_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"NetworkAccessParameters\" , HFILL }\n }\n , {\n & hf_h245_encryptionSync , {\n \"encryptionSync\" , \"h245.encryptionSync_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_distribution , {\n \"distribution\" , \"h245.distribution\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_distribution_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_unicast , {\n \"unicast\" , \"h245.unicast_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_multicast , {\n \"multicast\" , \"h245.multicast_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_networkAddress , {\n \"networkAddress\" , \"h245.networkAddress\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_networkAddress_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_q2931Address , {\n \"q2931Address\" , \"h245.q2931Address_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_e164Address , {\n \"e164Address\" , \"h245.e164Address\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_localAreaAddress , {\n \"localAreaAddress\" , \"h245.localAreaAddress\" , FT_UINT32 , BASE_DEC , VALS ( h245_TransportAddress_vals ) , 0 , \"TransportAddress\" , HFILL }\n }\n , {\n & hf_h245_associateConference , {\n \"associateConference\" , \"h245.associateConference\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_externalReference , {\n \"externalReference\" , \"h245.externalReference\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_1_255\" , HFILL }\n }\n , {\n & hf_h245_t120SetupProcedure , {\n \"t120SetupProcedure\" , \"h245.t120SetupProcedure\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_t120SetupProcedure_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_originateCall , {\n \"originateCall\" , \"h245.originateCall_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_waitForCall , {\n \"waitForCall\" , \"h245.waitForCall_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_issueQuery , {\n \"issueQuery\" , \"h245.issueQuery_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_address , {\n \"address\" , \"h245.address\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_address_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_internationalNumber , {\n \"internationalNumber\" , \"h245.internationalNumber\" , FT_STRING , BASE_NONE , NULL , 0 , \"NumericString_SIZE_1_16\" , HFILL }\n }\n , {\n & hf_h245_nsapAddress , {\n \"nsapAddress\" , \"h245.nsapAddress\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_1_20\" , HFILL }\n }\n , {\n & hf_h245_subaddress , {\n \"subaddress\" , \"h245.subaddress\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_1_20\" , HFILL }\n }\n , {\n & hf_h245_audioHeaderPresent , {\n \"audioHeaderPresent\" , \"h245.audioHeaderPresent\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_nullData , {\n \"nullData\" , \"h245.nullData_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_videoData , {\n \"videoData\" , \"h245.videoData\" , FT_UINT32 , BASE_DEC , VALS ( h245_VideoCapability_vals ) , 0 , \"VideoCapability\" , HFILL }\n }\n , {\n & hf_h245_audioData , {\n \"audioData\" , \"h245.audioData\" , FT_UINT32 , BASE_DEC , VALS ( h245_AudioCapability_vals ) , 0 , \"AudioCapability\" , HFILL }\n }\n , {\n & hf_h245_data , {\n \"data\" , \"h245.data_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"DataApplicationCapability\" , HFILL }\n }\n , {\n & hf_h245_encryptionData , {\n \"encryptionData\" , \"h245.encryptionData\" , FT_UINT32 , BASE_DEC , VALS ( h245_EncryptionMode_vals ) , 0 , \"EncryptionMode\" , HFILL }\n }\n , {\n & hf_h245_h235Control , {\n \"h235Control\" , \"h245.h235Control_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"NonStandardParameter\" , HFILL }\n }\n , {\n & hf_h245_h235Media , {\n \"h235Media\" , \"h245.h235Media_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_multiplexedStream , {\n \"multiplexedStream\" , \"h245.multiplexedStream_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"MultiplexedStreamParameter\" , HFILL }\n }\n , {\n & hf_h245_redundancyEncoding , {\n \"redundancyEncoding\" , \"h245.redundancyEncoding_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_multiplePayloadStream , {\n \"multiplePayloadStream\" , \"h245.multiplePayloadStream_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_depFec , {\n \"depFec\" , \"h245.depFec\" , FT_UINT32 , BASE_DEC , VALS ( h245_DepFECData_vals ) , 0 , \"DepFECData\" , HFILL }\n }\n , {\n & hf_h245_fec , {\n \"fec\" , \"h245.fec\" , FT_UINT32 , BASE_DEC , VALS ( h245_FECData_vals ) , 0 , \"FECData\" , HFILL }\n }\n , {\n & hf_h245_mediaType , {\n \"mediaType\" , \"h245.mediaType\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_mediaType_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_resourceID , {\n \"resourceID\" , \"h245.resourceID\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_65535\" , HFILL }\n }\n , {\n & hf_h245_subChannelID , {\n \"subChannelID\" , \"h245.subChannelID\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_8191\" , HFILL }\n }\n , {\n & hf_h245_pcr_pid , {\n \"pcr-pid\" , \"h245.pcr_pid\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_8191\" , HFILL }\n }\n , {\n & hf_h245_programDescriptors , {\n \"programDescriptors\" , \"h245.programDescriptors\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING\" , HFILL }\n }\n , {\n & hf_h245_streamDescriptors , {\n \"streamDescriptors\" , \"h245.streamDescriptors\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING\" , HFILL }\n }\n , {\n & hf_h245_adaptationLayerType , {\n \"adaptationLayerType\" , \"h245.adaptationLayerType\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_adaptationLayerType_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_h223_al_type_al1Framed , {\n \"al1Framed\" , \"h245.al1Framed_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"T_h223_al_type_al1Framed\" , HFILL }\n }\n , {\n & hf_h245_h223_al_type_al1NotFramed , {\n \"al1NotFramed\" , \"h245.al1NotFramed_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"T_h223_al_type_al1NotFramed\" , HFILL }\n }\n , {\n & hf_h245_h223_al_type_al2WithoutSequenceNumbers , {\n \"al2WithoutSequenceNumbers\" , \"h245.al2WithoutSequenceNumbers_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"T_h223_al_type_al2WithoutSequenceNumbers\" , HFILL }\n }\n , {\n & hf_h245_h223_al_type_al2WithSequenceNumbers , {\n \"al2WithSequenceNumbers\" , \"h245.al2WithSequenceNumbers_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"T_h223_al_type_al2WithSequenceNumbers\" , HFILL }\n }\n , {\n & hf_h245_controlFieldOctets , {\n \"controlFieldOctets\" , \"h245.controlFieldOctets\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_al3_sendBufferSize , {\n \"sendBufferSize\" , \"h245.sendBufferSize\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"T_al3_sendBufferSize\" , HFILL }\n }\n , {\n & hf_h245_h223_al_type_al3 , {\n \"al3\" , \"h245.al3_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"T_h223_al_type_al3\" , HFILL }\n }\n , {\n & hf_h245_h223_al_type_al1M , {\n \"al1M\" , \"h245.al1M_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"T_h223_al_type_al1M\" , HFILL }\n }\n , {\n & hf_h245_h223_al_type_al2M , {\n \"al2M\" , \"h245.al2M_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"T_h223_al_type_al2M\" , HFILL }\n }\n , {\n & hf_h245_h223_al_type_al3M , {\n \"al3M\" , \"h245.al3M_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"T_h223_al_type_al3M\" , HFILL }\n }\n , {\n & hf_h245_h223_lc_segmentableFlag , {\n \"segmentableFlag\" , \"h245.segmentableFlag\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"T_h223_lc_segmentableFlag\" , HFILL }\n }\n , {\n & hf_h245_transferMode , {\n \"transferMode\" , \"h245.transferMode\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_transferMode_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_framed , {\n \"framed\" , \"h245.framed_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_unframed , {\n \"unframed\" , \"h245.unframed_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_aL1HeaderFEC , {\n \"headerFEC\" , \"h245.headerFEC\" , FT_UINT32 , BASE_DEC , VALS ( h245_AL1HeaderFEC_vals ) , 0 , \"AL1HeaderFEC\" , HFILL }\n }\n , {\n & hf_h245_sebch16_7 , {\n \"sebch16-7\" , \"h245.sebch16_7_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_golay24_12 , {\n \"golay24-12\" , \"h245.golay24_12_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_crcLength2 , {\n \"crcLength\" , \"h245.crcLength\" , FT_UINT32 , BASE_DEC , VALS ( h245_AL1CrcLength_vals ) , 0 , \"AL1CrcLength\" , HFILL }\n }\n , {\n & hf_h245_crc4bit , {\n \"crc4bit\" , \"h245.crc4bit_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_crc12bit , {\n \"crc12bit\" , \"h245.crc12bit_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_crc20bit , {\n \"crc20bit\" , \"h245.crc20bit_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_crc28bit , {\n \"crc28bit\" , \"h245.crc28bit_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_crc8bit , {\n \"crc8bit\" , \"h245.crc8bit_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_crc16bit , {\n \"crc16bit\" , \"h245.crc16bit_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_crc32bit , {\n \"crc32bit\" , \"h245.crc32bit_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_crcNotUsed , {\n \"crcNotUsed\" , \"h245.crcNotUsed_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_rcpcCodeRate , {\n \"rcpcCodeRate\" , \"h245.rcpcCodeRate\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_8_32\" , HFILL }\n }\n , {\n & hf_h245_noArq , {\n \"noArq\" , \"h245.noArq_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_typeIArq , {\n \"typeIArq\" , \"h245.typeIArq_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"H223AnnexCArqParameters\" , HFILL }\n }\n , {\n & hf_h245_typeIIArq , {\n \"typeIIArq\" , \"h245.typeIIArq_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"H223AnnexCArqParameters\" , HFILL }\n }\n , {\n & hf_h245_arqType , {\n \"arqType\" , \"h245.arqType\" , FT_UINT32 , BASE_DEC , VALS ( h245_ArqType_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_alsduSplitting , {\n \"alsduSplitting\" , \"h245.alsduSplitting\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_rsCodeCorrection , {\n \"rsCodeCorrection\" , \"h245.rsCodeCorrection\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_127\" , HFILL }\n }\n , {\n & hf_h245_aL2HeaderFEC , {\n \"headerFEC\" , \"h245.headerFEC\" , FT_UINT32 , BASE_DEC , VALS ( h245_AL2HeaderFEC_vals ) , 0 , \"AL2HeaderFEC\" , HFILL }\n }\n , {\n & hf_h245_sebch16_5 , {\n \"sebch16-5\" , \"h245.sebch16_5_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_headerFormat , {\n \"headerFormat\" , \"h245.headerFormat\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_headerFormat_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_crlength2 , {\n \"crcLength\" , \"h245.crcLength\" , FT_UINT32 , BASE_DEC , VALS ( h245_AL3CrcLength_vals ) , 0 , \"AL3CrcLength\" , HFILL }\n }\n , {\n & hf_h245_numberOfRetransmissions , {\n \"numberOfRetransmissions\" , \"h245.numberOfRetransmissions\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_numberOfRetransmissions_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_finite , {\n \"finite\" , \"h245.finite\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_16\" , HFILL }\n }\n , {\n & hf_h245_infinite , {\n \"infinite\" , \"h245.infinite_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_sendBufferSize , {\n \"sendBufferSize\" , \"h245.sendBufferSize\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_16777215\" , HFILL }\n }\n , {\n & hf_h245_hdlcParameters , {\n \"hdlcParameters\" , \"h245.hdlcParameters_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"V76HDLCParameters\" , HFILL }\n }\n , {\n & hf_h245_suspendResume , {\n \"suspendResume\" , \"h245.suspendResume\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_suspendResume_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_noSuspendResume , {\n \"noSuspendResume\" , \"h245.noSuspendResume_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_suspendResumewAddress , {\n \"suspendResumewAddress\" , \"h245.suspendResumewAddress_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_suspendResumewoAddress , {\n \"suspendResumewoAddress\" , \"h245.suspendResumewoAddress_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_uIH , {\n \"uIH\" , \"h245.uIH\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_v76_mode , {\n \"mode\" , \"h245.mode\" , FT_UINT32 , BASE_DEC , VALS ( h245_V76LCP_mode_vals ) , 0 , \"V76LCP_mode\" , HFILL }\n }\n , {\n & hf_h245_eRM , {\n \"eRM\" , \"h245.eRM_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_windowSize , {\n \"windowSize\" , \"h245.windowSize\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_127\" , HFILL }\n }\n , {\n & hf_h245_recovery , {\n \"recovery\" , \"h245.recovery\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_recovery_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_rej , {\n \"rej\" , \"h245.rej_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_sREJ , {\n \"sREJ\" , \"h245.sREJ_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_mSREJ , {\n \"mSREJ\" , \"h245.mSREJ_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_uNERM , {\n \"uNERM\" , \"h245.uNERM_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_v75Parameters , {\n \"v75Parameters\" , \"h245.v75Parameters_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_crcLength , {\n \"crcLength\" , \"h245.crcLength\" , FT_UINT32 , BASE_DEC , VALS ( h245_CRCLength_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_n401 , {\n \"n401\" , \"h245.n401\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_4095\" , HFILL }\n }\n , {\n & hf_h245_loopbackTestProcedure , {\n \"loopbackTestProcedure\" , \"h245.loopbackTestProcedure\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_sessionID_0_255 , {\n \"sessionID\" , \"h245.sessionID\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_255\" , HFILL }\n }\n , {\n & hf_h245_associatedSessionID , {\n \"associatedSessionID\" , \"h245.associatedSessionID\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_255\" , HFILL }\n }\n , {\n & hf_h245_mediaChannel , {\n \"mediaChannel\" , \"h245.mediaChannel\" , FT_UINT32 , BASE_DEC , VALS ( h245_TransportAddress_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_mediaGuaranteedDelivery , {\n \"mediaGuaranteedDelivery\" , \"h245.mediaGuaranteedDelivery\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_mediaControlChannel , {\n \"mediaControlChannel\" , \"h245.mediaControlChannel\" , FT_UINT32 , BASE_DEC , VALS ( h245_TransportAddress_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_mediaControlGuaranteedDelivery , {\n \"mediaControlGuaranteedDelivery\" , \"h245.mediaControlGuaranteedDelivery\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_destination , {\n \"destination\" , \"h245.destination_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"TerminalLabel\" , HFILL }\n }\n , {\n & hf_h245_mediaPacketization , {\n \"mediaPacketization\" , \"h245.mediaPacketization\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_mediaPacketization_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_h261aVideoPacketizationFlag , {\n \"h261aVideoPacketization\" , \"h245.h261aVideoPacketization_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_rtpPayloadType , {\n \"rtpPayloadType\" , \"h245.rtpPayloadType_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_source , {\n \"source\" , \"h245.source_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"TerminalLabel\" , HFILL }\n }\n , {\n & hf_h245_payloadDescriptor , {\n \"payloadDescriptor\" , \"h245.payloadDescriptor\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_payloadDescriptor_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_rfc_number , {\n \"rfc-number\" , \"h245.rfc_number\" , FT_UINT32 , BASE_DEC , VALS ( h245_RFC_number_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_oid , {\n \"oid\" , \"h245.oid\" , FT_OID , BASE_NONE , NULL , 0 , \"OBJECT_IDENTIFIER\" , HFILL }\n }\n , {\n & hf_h245_rtpPayloadType_01 , {\n \"payloadType\" , \"h245.payloadType\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"T_rtpPayloadType\" , HFILL }\n }\n , {\n & hf_h245_secondaryEncoding , {\n \"secondaryEncoding\" , \"h245.secondaryEncoding\" , FT_UINT32 , BASE_DEC , VALS ( h245_DataType_vals ) , 0 , \"DataType\" , HFILL }\n }\n , {\n & hf_h245_rtpRedundancyEncoding , {\n \"rtpRedundancyEncoding\" , \"h245.rtpRedundancyEncoding_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_primary , {\n \"primary\" , \"h245.primary_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"RedundancyEncodingElement\" , HFILL }\n }\n , {\n & hf_h245_secondary , {\n \"secondary\" , \"h245.secondary\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_RedundancyEncodingElement\" , HFILL }\n }\n , {\n & hf_h245_secondary_item , {\n \"RedundancyEncodingElement\" , \"h245.RedundancyEncodingElement_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_payloadType , {\n \"payloadType\" , \"h245.payloadType\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_127\" , HFILL }\n }\n , {\n & hf_h245_elements , {\n \"elements\" , \"h245.elements\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_MultiplePayloadStreamElement\" , HFILL }\n }\n , {\n & hf_h245_elements_item , {\n \"MultiplePayloadStreamElement\" , \"h245.MultiplePayloadStreamElement_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_dep_rfc2733 , {\n \"rfc2733\" , \"h245.rfc2733_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"RFC2733Data\" , HFILL }\n }\n , {\n & hf_h245_fec_data_mode , {\n \"mode\" , \"h245.mode\" , FT_UINT32 , BASE_DEC , VALS ( h245_FECdata_mode_vals ) , 0 , \"FECdata_mode\" , HFILL }\n }\n , {\n & hf_h245_redundancyEncodingFlag , {\n \"redundancyEncoding\" , \"h245.redundancyEncoding_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_differentPort , {\n \"differentPort\" , \"h245.differentPort_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_protectedSessionID , {\n \"protectedSessionID\" , \"h245.protectedSessionID\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_255\" , HFILL }\n }\n , {\n & hf_h245_protectedPayloadType , {\n \"protectedPayloadType\" , \"h245.protectedPayloadType\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_127\" , HFILL }\n }\n , {\n & hf_h245_samePort , {\n \"samePort\" , \"h245.samePort_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_separateStream , {\n \"separateStream\" , \"h245.separateStream\" , FT_UINT32 , BASE_DEC , VALS ( h245_DepSeparateStream_vals ) , 0 , \"DepSeparateStream\" , HFILL }\n }\n , {\n & hf_h245_rfc2733 , {\n \"rfc2733\" , \"h245.rfc2733_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_pktMode , {\n \"pktMode\" , \"h245.pktMode\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_pktMode_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_rfc2198coding , {\n \"rfc2198coding\" , \"h245.rfc2198coding_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_mode_rfc2733sameport , {\n \"rfc2733sameport\" , \"h245.rfc2733sameport_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"T_mode_rfc2733sameport\" , HFILL }\n }\n , {\n & hf_h245_mode_rfc2733diffport , {\n \"rfc2733diffport\" , \"h245.rfc2733diffport_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"T_mode_rfc2733diffport\" , HFILL }\n }\n , {\n & hf_h245_protectedChannel , {\n \"protectedChannel\" , \"h245.protectedChannel\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"LogicalChannelNumber\" , HFILL }\n }\n , {\n & hf_h245_unicastAddress , {\n \"unicastAddress\" , \"h245.unicastAddress\" , FT_UINT32 , BASE_DEC , VALS ( h245_UnicastAddress_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_multicastAddress , {\n \"multicastAddress\" , \"h245.multicastAddress\" , FT_UINT32 , BASE_DEC , VALS ( h245_MulticastAddress_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_iPAddress , {\n \"iPAddress\" , \"h245.iPAddress_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_ip4_network , {\n \"network\" , \"h245.network\" , FT_IPv4 , BASE_NONE , NULL , 0 , \"Ipv4_network\" , HFILL }\n }\n , {\n & hf_h245_tsapIdentifier , {\n \"tsapIdentifier\" , \"h245.tsapIdentifier\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_iPXAddress , {\n \"iPXAddress\" , \"h245.iPXAddress_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_node , {\n \"node\" , \"h245.node\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_6\" , HFILL }\n }\n , {\n & hf_h245_netnum , {\n \"netnum\" , \"h245.netnum\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_4\" , HFILL }\n }\n , {\n & hf_h245_ipx_tsapIdentifier , {\n \"tsapIdentifier\" , \"h245.tsapIdentifier\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_2\" , HFILL }\n }\n , {\n & hf_h245_iP6Address , {\n \"iP6Address\" , \"h245.iP6Address_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_ip6_network , {\n \"network\" , \"h245.network\" , FT_IPv6 , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_16\" , HFILL }\n }\n , {\n & hf_h245_ipv6_tsapIdentifier , {\n \"tsapIdentifier\" , \"h245.tsapIdentifier\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_65535\" , HFILL }\n }\n , {\n & hf_h245_netBios , {\n \"netBios\" , \"h245.netBios\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_16\" , HFILL }\n }\n , {\n & hf_h245_iPSourceRouteAddress , {\n \"iPSourceRouteAddress\" , \"h245.iPSourceRouteAddress_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_routing , {\n \"routing\" , \"h245.routing\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_routing_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_strict , {\n \"strict\" , \"h245.strict_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_loose , {\n \"loose\" , \"h245.loose_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_network , {\n \"network\" , \"h245.network\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_4\" , HFILL }\n }\n , {\n & hf_h245_iPSrcRoute_tsapIdentifier , {\n \"tsapIdentifier\" , \"h245.tsapIdentifier\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_65535\" , HFILL }\n }\n , {\n & hf_h245_route , {\n \"route\" , \"h245.route\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_route_item , {\n \"route item\" , \"h245.route_item\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_4\" , HFILL }\n }\n , {\n & hf_h245_nsap , {\n \"nsap\" , \"h245.nsap\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_1_20\" , HFILL }\n }\n , {\n & hf_h245_nonStandardAddress , {\n \"nonStandardAddress\" , \"h245.nonStandardAddress_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"NonStandardParameter\" , HFILL }\n }\n , {\n & hf_h245_mIPAddress , {\n \"iPAddress\" , \"h245.iPAddress_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"MIPAddress\" , HFILL }\n }\n , {\n & hf_h245_mip4_network , {\n \"network\" , \"h245.network\" , FT_IPv4 , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_4\" , HFILL }\n }\n , {\n & hf_h245_multicast_tsapIdentifier , {\n \"tsapIdentifier\" , \"h245.tsapIdentifier\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_65535\" , HFILL }\n }\n , {\n & hf_h245_mIP6Address , {\n \"iP6Address\" , \"h245.iP6Address_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"MIP6Address\" , HFILL }\n }\n , {\n & hf_h245_mip6_network , {\n \"network\" , \"h245.network\" , FT_IPv6 , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_16\" , HFILL }\n }\n , {\n & hf_h245_multicast_IPv6_tsapIdentifier , {\n \"tsapIdentifier\" , \"h245.tsapIdentifier\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_65535\" , HFILL }\n }\n , {\n & hf_h245_synchFlag , {\n \"synchFlag\" , \"h245.synchFlag\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_255\" , HFILL }\n }\n , {\n & hf_h245_h235Key , {\n \"h235Key\" , \"h245.h235Key\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_1_65535\" , HFILL }\n }\n , {\n & hf_h245_escrowentry , {\n \"escrowentry\" , \"h245.escrowentry\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_SIZE_1_256_OF_EscrowData\" , HFILL }\n }\n , {\n & hf_h245_escrowentry_item , {\n \"EscrowData\" , \"h245.EscrowData_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_genericParameter , {\n \"genericParameter\" , \"h245.genericParameter_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_escrowID , {\n \"escrowID\" , \"h245.escrowID\" , FT_OID , BASE_NONE , NULL , 0 , \"OBJECT_IDENTIFIER\" , HFILL }\n }\n , {\n & hf_h245_escrowValue , {\n \"escrowValue\" , \"h245.escrowValue\" , FT_BYTES , BASE_NONE , NULL , 0 , \"BIT_STRING_SIZE_1_65535\" , HFILL }\n }\n , {\n & hf_h245_olc_ack_fw_lcn , {\n \"forwardLogicalChannelNumber\" , \"h245.forwardLogicalChannelNumber\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"OLC_ack_fw_lcn\" , HFILL }\n }\n , {\n & hf_h245_olc_ack_reverseLogicalChannelParameters , {\n \"reverseLogicalChannelParameters\" , \"h245.reverseLogicalChannelParameters_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"OLC_ack_reverseLogicalChannelParameters\" , HFILL }\n }\n , {\n & hf_h245_reverseLogicalChannelNumber , {\n \"reverseLogicalChannelNumber\" , \"h245.reverseLogicalChannelNumber\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_olc_ack_multiplexParameters , {\n \"multiplexParameters\" , \"h245.multiplexParameters\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_olc_ack_multiplexParameters_vals ) , 0 , \"T_olc_ack_multiplexParameters\" , HFILL }\n }\n , {\n & hf_h245_forwardMultiplexAckParameters , {\n \"forwardMultiplexAckParameters\" , \"h245.forwardMultiplexAckParameters\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_forwardMultiplexAckParameters_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_h2250LogicalChannelAckParameters , {\n \"h2250LogicalChannelAckParameters\" , \"h245.h2250LogicalChannelAckParameters_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_forwardLogicalChannelNumber , {\n \"forwardLogicalChannelNumber\" , \"h245.forwardLogicalChannelNumber\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"LogicalChannelNumber\" , HFILL }\n }\n , {\n & hf_h245_olc_rej_cause , {\n \"cause\" , \"h245.cause\" , FT_UINT32 , BASE_DEC , VALS ( h245_OpenLogicalChannelRejectCause_vals ) , 0 , \"OpenLogicalChannelRejectCause\" , HFILL }\n }\n , {\n & hf_h245_unsuitableReverseParameters , {\n \"unsuitableReverseParameters\" , \"h245.unsuitableReverseParameters_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_dataTypeNotSupported , {\n \"dataTypeNotSupported\" , \"h245.dataTypeNotSupported_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_dataTypeNotAvailable , {\n \"dataTypeNotAvailable\" , \"h245.dataTypeNotAvailable_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_unknownDataType , {\n \"unknownDataType\" , \"h245.unknownDataType_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_dataTypeALCombinationNotSupported , {\n \"dataTypeALCombinationNotSupported\" , \"h245.dataTypeALCombinationNotSupported_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_multicastChannelNotAllowed , {\n \"multicastChannelNotAllowed\" , \"h245.multicastChannelNotAllowed_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_insufficientBandwidth , {\n \"insufficientBandwidth\" , \"h245.insufficientBandwidth_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_separateStackEstablishmentFailed , {\n \"separateStackEstablishmentFailed\" , \"h245.separateStackEstablishmentFailed_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_invalidSessionID , {\n \"invalidSessionID\" , \"h245.invalidSessionID_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_masterSlaveConflict , {\n \"masterSlaveConflict\" , \"h245.masterSlaveConflict_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_waitForCommunicationMode , {\n \"waitForCommunicationMode\" , \"h245.waitForCommunicationMode_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_invalidDependentChannel , {\n \"invalidDependentChannel\" , \"h245.invalidDependentChannel_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_replacementForRejected , {\n \"replacementForRejected\" , \"h245.replacementForRejected_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_securityDenied , {\n \"securityDenied\" , \"h245.securityDenied_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_qoSControlNotSupported , {\n \"qoSControlNotSupported\" , \"h245.qoSControlNotSupported_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_sessionID , {\n \"sessionID\" , \"h245.sessionID\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_255\" , HFILL }\n }\n , {\n & hf_h245_ack_mediaChannel , {\n \"mediaChannel\" , \"h245.mediaChannel\" , FT_UINT32 , BASE_DEC , VALS ( h245_TransportAddress_vals ) , 0 , \"Ack_mediaChannel\" , HFILL }\n }\n , {\n & hf_h245_ack_mediaControlChannel , {\n \"mediaControlChannel\" , \"h245.mediaControlChannel\" , FT_UINT32 , BASE_DEC , VALS ( h245_TransportAddress_vals ) , 0 , \"Ack_mediaControlChannel\" , HFILL }\n }\n , {\n & hf_h245_flowControlToZero , {\n \"flowControlToZero\" , \"h245.flowControlToZero\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_cLC_source , {\n \"source\" , \"h245.source\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_cLC_source_vals ) , 0 , \"T_cLC_source\" , HFILL }\n }\n , {\n & hf_h245_user , {\n \"user\" , \"h245.user_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_lcse , {\n \"lcse\" , \"h245.lcse_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_clc_reason , {\n \"reason\" , \"h245.reason\" , FT_UINT32 , BASE_DEC , VALS ( h245_Clc_reason_vals ) , 0 , \"Clc_reason\" , HFILL }\n }\n , {\n & hf_h245_unknown , {\n \"unknown\" , \"h245.unknown_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_reopen , {\n \"reopen\" , \"h245.reopen_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_reservationFailure , {\n \"reservationFailure\" , \"h245.reservationFailure_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_networkErrorCode , {\n \"networkErrorCode\" , \"h245.networkErrorCode\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_255\" , HFILL }\n }\n , {\n & hf_h245_qosCapability , {\n \"qosCapability\" , \"h245.qosCapability_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_reason , {\n \"reason\" , \"h245.reason\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_reason_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_normal , {\n \"normal\" , \"h245.normal_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_req_chan_clos_rej_cause , {\n \"cause\" , \"h245.cause\" , FT_UINT32 , BASE_DEC , VALS ( h245_RequestChannelCloseRejectCause_vals ) , 0 , \"RequestChannelCloseRejectCause\" , HFILL }\n }\n , {\n & hf_h245_multiplexEntryDescriptors , {\n \"multiplexEntryDescriptors\" , \"h245.multiplexEntryDescriptors\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SET_SIZE_1_15_OF_MultiplexEntryDescriptor\" , HFILL }\n }\n , {\n & hf_h245_multiplexEntryDescriptors_item , {\n \"MultiplexEntryDescriptor\" , \"h245.MultiplexEntryDescriptor_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_multiplexTableEntryNumber , {\n \"multiplexTableEntryNumber\" , \"h245.multiplexTableEntryNumber\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_elementList , {\n \"elementList\" , \"h245.elementList\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_elementList_item , {\n \"MultiplexElement\" , \"h245.MultiplexElement_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_me_type , {\n \"type\" , \"h245.type\" , FT_UINT32 , BASE_DEC , VALS ( h245_Me_type_vals ) , 0 , \"Me_type\" , HFILL }\n }\n , {\n & hf_h245_logicalChannelNum , {\n \"logicalChannelNumber\" , \"h245.logicalChannelNumber\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"T_logicalChannelNum\" , HFILL }\n }\n , {\n & hf_h245_subElementList , {\n \"subElementList\" , \"h245.subElementList\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_subElementList_item , {\n \"MultiplexElement\" , \"h245.MultiplexElement_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_me_repeatCount , {\n \"repeatCount\" , \"h245.repeatCount\" , FT_UINT32 , BASE_DEC , VALS ( h245_ME_repeatCount_vals ) , 0 , \"ME_repeatCount\" , HFILL }\n }\n , {\n & hf_h245_me_repeatCount_finite , {\n \"finite\" , \"h245.finite\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"ME_finiteRepeatCount\" , HFILL }\n }\n , {\n & hf_h245_untilClosingFlag , {\n \"untilClosingFlag\" , \"h245.untilClosingFlag_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_multiplexTableEntryNumbers , {\n \"multiplexTableEntryNumber\" , \"h245.multiplexTableEntryNumber\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SET_SIZE_1_15_OF_MultiplexTableEntryNumber\" , HFILL }\n }\n , {\n & hf_h245_multiplexTableEntryNumbers_item , {\n \"MultiplexTableEntryNumber\" , \"h245.MultiplexTableEntryNumber\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_sendRejectionDescriptions , {\n \"rejectionDescriptions\" , \"h245.rejectionDescriptions\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SET_SIZE_1_15_OF_MultiplexEntryRejectionDescriptions\" , HFILL }\n }\n , {\n & hf_h245_sendRejectionDescriptions_item , {\n \"MultiplexEntryRejectionDescriptions\" , \"h245.MultiplexEntryRejectionDescriptions_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_mux_rej_cause , {\n \"cause\" , \"h245.cause\" , FT_UINT32 , BASE_DEC , VALS ( h245_MultiplexEntryRejectionDescriptionsCause_vals ) , 0 , \"MultiplexEntryRejectionDescriptionsCause\" , HFILL }\n }\n , {\n & hf_h245_unspecifiedCause , {\n \"unspecifiedCause\" , \"h245.unspecifiedCause_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_descriptorTooComplex , {\n \"descriptorTooComplex\" , \"h245.descriptorTooComplex_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_entryNumbers , {\n \"entryNumbers\" , \"h245.entryNumbers\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SET_SIZE_1_15_OF_MultiplexTableEntryNumber\" , HFILL }\n }\n , {\n & hf_h245_entryNumbers_item , {\n \"MultiplexTableEntryNumber\" , \"h245.MultiplexTableEntryNumber\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_rejectionDescriptions , {\n \"rejectionDescriptions\" , \"h245.rejectionDescriptions\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SET_SIZE_1_15_OF_RequestMultiplexEntryRejectionDescriptions\" , HFILL }\n }\n , {\n & hf_h245_rejectionDescriptions_item , {\n \"RequestMultiplexEntryRejectionDescriptions\" , \"h245.RequestMultiplexEntryRejectionDescriptions_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_req_mux_rej_cause , {\n \"cause\" , \"h245.cause\" , FT_UINT32 , BASE_DEC , VALS ( h245_RequestMultiplexEntryRejectionDescriptionsCause_vals ) , 0 , \"RequestMultiplexEntryRejectionDescriptionsCause\" , HFILL }\n }\n , {\n & hf_h245_requestedModes , {\n \"requestedModes\" , \"h245.requestedModes\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_SIZE_1_256_OF_ModeDescription\" , HFILL }\n }\n , {\n & hf_h245_requestedModes_item , {\n \"ModeDescription\" , \"h245.ModeDescription\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_req_mode_ack_response , {\n \"response\" , \"h245.response\" , FT_UINT32 , BASE_DEC , VALS ( h245_Req_mode_ack_response_vals ) , 0 , \"Req_mode_ack_response\" , HFILL }\n }\n , {\n & hf_h245_willTransmitMostPreferredMode , {\n \"willTransmitMostPreferredMode\" , \"h245.willTransmitMostPreferredMode_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_willTransmitLessPreferredMode , {\n \"willTransmitLessPreferredMode\" , \"h245.willTransmitLessPreferredMode_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_req_rej_cause , {\n \"cause\" , \"h245.cause\" , FT_UINT32 , BASE_DEC , VALS ( h245_RequestModeRejectCause_vals ) , 0 , \"RequestModeRejectCause\" , HFILL }\n }\n , {\n & hf_h245_modeUnavailable , {\n \"modeUnavailable\" , \"h245.modeUnavailable_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_multipointConstraint , {\n \"multipointConstraint\" , \"h245.multipointConstraint_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_requestDenied , {\n \"requestDenied\" , \"h245.requestDenied_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_ModeDescription_item , {\n \"ModeElement\" , \"h245.ModeElement_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_videoMode , {\n \"videoMode\" , \"h245.videoMode\" , FT_UINT32 , BASE_DEC , VALS ( h245_VideoMode_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_audioMode , {\n \"audioMode\" , \"h245.audioMode\" , FT_UINT32 , BASE_DEC , VALS ( h245_AudioMode_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_dataMode , {\n \"dataMode\" , \"h245.dataMode_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_encryptionMode , {\n \"encryptionMode\" , \"h245.encryptionMode\" , FT_UINT32 , BASE_DEC , VALS ( h245_EncryptionMode_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_h235Mode , {\n \"h235Mode\" , \"h245.h235Mode_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_multiplexedStreamMode , {\n \"multiplexedStreamMode\" , \"h245.multiplexedStreamMode_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"MultiplexedStreamParameter\" , HFILL }\n }\n , {\n & hf_h245_redundancyEncodingDTMode , {\n \"redundancyEncodingDTMode\" , \"h245.redundancyEncodingDTMode_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_multiplePayloadStreamMode , {\n \"multiplePayloadStreamMode\" , \"h245.multiplePayloadStreamMode_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_depFecMode , {\n \"depFecMode\" , \"h245.depFecMode\" , FT_UINT32 , BASE_DEC , VALS ( h245_DepFECMode_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_fecMode , {\n \"fecMode\" , \"h245.fecMode_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_type , {\n \"type\" , \"h245.type\" , FT_UINT32 , BASE_DEC , VALS ( h245_ModeElementType_vals ) , 0 , \"ModeElementType\" , HFILL }\n }\n , {\n & hf_h245_h223ModeParameters , {\n \"h223ModeParameters\" , \"h245.h223ModeParameters_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_v76ModeParameters , {\n \"v76ModeParameters\" , \"h245.v76ModeParameters\" , FT_UINT32 , BASE_DEC , VALS ( h245_V76ModeParameters_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_h2250ModeParameters , {\n \"h2250ModeParameters\" , \"h245.h2250ModeParameters_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_genericModeParameters , {\n \"genericModeParameters\" , \"h245.genericModeParameters_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"GenericCapability\" , HFILL }\n }\n , {\n & hf_h245_multiplexedStreamModeParameters , {\n \"multiplexedStreamModeParameters\" , \"h245.multiplexedStreamModeParameters_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_logicalChannelNumber , {\n \"logicalChannelNumber\" , \"h245.logicalChannelNumber\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_mediaMode , {\n \"mediaMode\" , \"h245.mediaMode\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_mediaMode_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_prmary_dtmode , {\n \"primary\" , \"h245.primary_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"RedundancyEncodingDTModeElement\" , HFILL }\n }\n , {\n & hf_h245_secondaryDTM , {\n \"secondary\" , \"h245.secondary\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_RedundancyEncodingDTModeElement\" , HFILL }\n }\n , {\n & hf_h245_secondaryDTM_item , {\n \"RedundancyEncodingDTModeElement\" , \"h245.RedundancyEncodingDTModeElement_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_re_type , {\n \"type\" , \"h245.type\" , FT_UINT32 , BASE_DEC , VALS ( h245_Re_type_vals ) , 0 , \"Re_type\" , HFILL }\n }\n , {\n & hf_h245_mpsmElements , {\n \"elements\" , \"h245.elements\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_MultiplePayloadStreamElementMode\" , HFILL }\n }\n , {\n & hf_h245_mpsmElements_item , {\n \"MultiplePayloadStreamElementMode\" , \"h245.MultiplePayloadStreamElementMode_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_rfc2733Mode , {\n \"rfc2733Mode\" , \"h245.rfc2733Mode_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_fec_mode , {\n \"mode\" , \"h245.mode\" , FT_UINT32 , BASE_DEC , VALS ( h245_FEC_mode_vals ) , 0 , \"FEC_mode\" , HFILL }\n }\n , {\n & hf_h245_protectedElement , {\n \"protectedElement\" , \"h245.protectedElement\" , FT_UINT32 , BASE_DEC , VALS ( h245_ModeElementType_vals ) , 0 , \"ModeElementType\" , HFILL }\n }\n , {\n & hf_h245_adaptationLayer , {\n \"adaptationLayerType\" , \"h245.adaptationLayerType\" , FT_UINT32 , BASE_DEC , VALS ( h245_AdaptationLayerType_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_al1Framed , {\n \"al1Framed\" , \"h245.al1Framed_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_al1NotFramed , {\n \"al1NotFramed\" , \"h245.al1NotFramed_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_al2WithoutSequenceNumbers , {\n \"al2WithoutSequenceNumbers\" , \"h245.al2WithoutSequenceNumbers_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_al2WithSequenceNumbers , {\n \"al2WithSequenceNumbers\" , \"h245.al2WithSequenceNumbers_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_al3 , {\n \"al3\" , \"h245.al3_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_al1M , {\n \"al1M\" , \"h245.al1M_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"H223AL1MParameters\" , HFILL }\n }\n , {\n & hf_h245_al2M , {\n \"al2M\" , \"h245.al2M_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"H223AL2MParameters\" , HFILL }\n }\n , {\n & hf_h245_al3M , {\n \"al3M\" , \"h245.al3M_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"H223AL3MParameters\" , HFILL }\n }\n , {\n & hf_h245_segmentableFlag , {\n \"segmentableFlag\" , \"h245.segmentableFlag\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_redundancyEncodingMode , {\n \"redundancyEncodingMode\" , \"h245.redundancyEncodingMode_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_secondaryEncodingMode , {\n \"secondaryEncoding\" , \"h245.secondaryEncoding\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_secondaryEncodingMode_vals ) , 0 , \"T_secondaryEncodingMode\" , HFILL }\n }\n , {\n & hf_h245_h261VideoMode , {\n \"h261VideoMode\" , \"h245.h261VideoMode_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_h262VideoMode , {\n \"h262VideoMode\" , \"h245.h262VideoMode_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_h263VideoMode , {\n \"h263VideoMode\" , \"h245.h263VideoMode_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_is11172VideoMode , {\n \"is11172VideoMode\" , \"h245.is11172VideoMode_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_genericVideoMode , {\n \"genericVideoMode\" , \"h245.genericVideoMode_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"GenericCapability\" , HFILL }\n }\n , {\n & hf_h245_h261_resolution , {\n \"resolution\" , \"h245.resolution\" , FT_UINT32 , BASE_DEC , VALS ( h245_H261Resolution_vals ) , 0 , \"H261Resolution\" , HFILL }\n }\n , {\n & hf_h245_qcif , {\n \"qcif\" , \"h245.qcif_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_cif , {\n \"cif\" , \"h245.cif_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_profileAndLevel , {\n \"profileAndLevel\" , \"h245.profileAndLevel\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_profileAndLevel_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_profileAndLevel_SPatMLMode , {\n \"profileAndLevel-SPatML\" , \"h245.profileAndLevel_SPatML_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_profileAndLevel_MPatLLMode , {\n \"profileAndLevel-MPatLL\" , \"h245.profileAndLevel_MPatLL_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_profileAndLevel_MPatMLMode , {\n \"profileAndLevel-MPatML\" , \"h245.profileAndLevel_MPatML_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_profileAndLevel_MPatH_14Mode , {\n \"profileAndLevel-MPatH-14\" , \"h245.profileAndLevel_MPatH_14_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_profileAndLevel_MPatHLMode , {\n \"profileAndLevel-MPatHL\" , \"h245.profileAndLevel_MPatHL_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_profileAndLevel_SNRatLLMode , {\n \"profileAndLevel-SNRatLL\" , \"h245.profileAndLevel_SNRatLL_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_profileAndLevel_SNRatMLMode , {\n \"profileAndLevel-SNRatML\" , \"h245.profileAndLevel_SNRatML_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_profileAndLevel_SpatialatH_14Mode , {\n \"profileAndLevel-SpatialatH-14\" , \"h245.profileAndLevel_SpatialatH_14_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_profileAndLevel_HPatMLMode , {\n \"profileAndLevel-HPatML\" , \"h245.profileAndLevel_HPatML_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_profileAndLevel_HPatH_14Mode , {\n \"profileAndLevel-HPatH-14\" , \"h245.profileAndLevel_HPatH_14_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_profileAndLevel_HPatHLMode , {\n \"profileAndLevel-HPatHL\" , \"h245.profileAndLevel_HPatHL_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_h263_resolution , {\n \"resolution\" , \"h245.resolution\" , FT_UINT32 , BASE_DEC , VALS ( h245_H263Resolution_vals ) , 0 , \"H263Resolution\" , HFILL }\n }\n , {\n & hf_h245_sqcif , {\n \"sqcif\" , \"h245.sqcif_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_cif4 , {\n \"cif4\" , \"h245.cif4_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_cif16 , {\n \"cif16\" , \"h245.cif16_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_custom_res , {\n \"custom\" , \"h245.custom_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_g711Alaw64k_mode , {\n \"g711Alaw64k\" , \"h245.g711Alaw64k_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_g711Alaw56k_mode , {\n \"g711Alaw56k\" , \"h245.g711Alaw56k_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_g711Ulaw64k_mode , {\n \"g711Ulaw64k\" , \"h245.g711Ulaw64k_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_g711Ulaw56k_mode , {\n \"g711Ulaw56k\" , \"h245.g711Ulaw56k_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_g722_64k_mode , {\n \"g722-64k\" , \"h245.g722_64k_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_g722_56k_mode , {\n \"g722-56k\" , \"h245.g722_56k_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_g722_48k_mode , {\n \"g722-48k\" , \"h245.g722_48k_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_g728_mode , {\n \"g728\" , \"h245.g728_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_g729_mode , {\n \"g729\" , \"h245.g729_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_g729AnnexA_mode , {\n \"g729AnnexA\" , \"h245.g729AnnexA_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_g7231_mode , {\n \"g7231\" , \"h245.g7231\" , FT_UINT32 , BASE_DEC , VALS ( h245_Mode_g7231_vals ) , 0 , \"Mode_g7231\" , HFILL }\n }\n , {\n & hf_h245_noSilenceSuppressionLowRate , {\n \"noSilenceSuppressionLowRate\" , \"h245.noSilenceSuppressionLowRate_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_noSilenceSuppressionHighRate , {\n \"noSilenceSuppressionHighRate\" , \"h245.noSilenceSuppressionHighRate_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_silenceSuppressionLowRate , {\n \"silenceSuppressionLowRate\" , \"h245.silenceSuppressionLowRate_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_silenceSuppressionHighRate , {\n \"silenceSuppressionHighRate\" , \"h245.silenceSuppressionHighRate_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_is11172AudioMode , {\n \"is11172AudioMode\" , \"h245.is11172AudioMode_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_is13818AudioMode , {\n \"is13818AudioMode\" , \"h245.is13818AudioMode_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_g7231AnnexCMode , {\n \"g7231AnnexCMode\" , \"h245.g7231AnnexCMode_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_genericAudioMode , {\n \"genericAudioMode\" , \"h245.genericAudioMode_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"GenericCapability\" , HFILL }\n }\n , {\n & hf_h245_vbd_mode , {\n \"vbd\" , \"h245.vbd_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"VBDMode\" , HFILL }\n }\n , {\n & hf_h245_audioLayer , {\n \"audioLayer\" , \"h245.audioLayer\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_audioLayer_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_audioLayer1Mode , {\n \"audioLayer1\" , \"h245.audioLayer1_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_audioLayer2Mode , {\n \"audioLayer2\" , \"h245.audioLayer2_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_audioLayer3Mode , {\n \"audioLayer3\" , \"h245.audioLayer3_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_audioSampling , {\n \"audioSampling\" , \"h245.audioSampling\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_audioSampling_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_audioSampling32kMode , {\n \"audioSampling32k\" , \"h245.audioSampling32k_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_audioSampling44k1Mode , {\n \"audioSampling44k1\" , \"h245.audioSampling44k1_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_audioSampling48kMode , {\n \"audioSampling48k\" , \"h245.audioSampling48k_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_is11172multichannelType , {\n \"multichannelType\" , \"h245.multichannelType\" , FT_UINT32 , BASE_DEC , VALS ( h245_IS11172_multichannelType_vals ) , 0 , \"IS11172_multichannelType\" , HFILL }\n }\n , {\n & hf_h245_singleChannelMode , {\n \"singleChannel\" , \"h245.singleChannel_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_twoChannelStereo , {\n \"twoChannelStereo\" , \"h245.twoChannelStereo_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_twoChannelDual , {\n \"twoChannelDual\" , \"h245.twoChannelDual_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_audioLayerMode , {\n \"audioLayer\" , \"h245.audioLayer\" , FT_UINT32 , BASE_DEC , VALS ( h245_IS13818AudioLayer_vals ) , 0 , \"IS13818AudioLayer\" , HFILL }\n }\n , {\n & hf_h245_audioSamplingMode , {\n \"audioSampling\" , \"h245.audioSampling\" , FT_UINT32 , BASE_DEC , VALS ( h245_IS13818AudioSampling_vals ) , 0 , \"IS13818AudioSampling\" , HFILL }\n }\n , {\n & hf_h245_audioSampling16kMode , {\n \"audioSampling16k\" , \"h245.audioSampling16k_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_audioSampling22k05Mode , {\n \"audioSampling22k05\" , \"h245.audioSampling22k05_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_audioSampling24kMode , {\n \"audioSampling24k\" , \"h245.audioSampling24k_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_is13818MultichannelType , {\n \"multichannelType\" , \"h245.multichannelType\" , FT_UINT32 , BASE_DEC , VALS ( h245_IS13818MultichannelType_vals ) , 0 , \"IS13818MultichannelType\" , HFILL }\n }\n , {\n & hf_h245_threeChannels2_1Mode , {\n \"threeChannels2-1\" , \"h245.threeChannels2_1_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_threeChannels3_0Mode , {\n \"threeChannels3-0\" , \"h245.threeChannels3_0_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_fourChannels2_0_2_0Mode , {\n \"fourChannels2-0-2-0\" , \"h245.fourChannels2_0_2_0_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_fourChannels2_2Mode , {\n \"fourChannels2-2\" , \"h245.fourChannels2_2_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_fourChannels3_1Mode , {\n \"fourChannels3-1\" , \"h245.fourChannels3_1_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_fiveChannels3_0_2_0Mode , {\n \"fiveChannels3-0-2-0\" , \"h245.fiveChannels3_0_2_0_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_fiveChannels3_2Mode , {\n \"fiveChannels3-2\" , \"h245.fiveChannels3_2_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_vbd_type , {\n \"type\" , \"h245.type\" , FT_UINT32 , BASE_DEC , VALS ( h245_AudioMode_vals ) , 0 , \"AudioMode\" , HFILL }\n }\n , {\n & hf_h245_datamodeapplication , {\n \"application\" , \"h245.application\" , FT_UINT32 , BASE_DEC , VALS ( h245_DataModeApplication_vals ) , 0 , \"DataModeApplication\" , HFILL }\n }\n , {\n & hf_h245_t84DataProtocolCapability , {\n \"t84\" , \"h245.t84\" , FT_UINT32 , BASE_DEC , VALS ( DataProtocolCapability_vals ) , 0 , \"DataProtocolCapability\" , HFILL }\n }\n , {\n & hf_h245_t38faxDataProtocolCapability , {\n \"t38fax\" , \"h245.t38fax_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"T38faxApp\" , HFILL }\n }\n , {\n & hf_h245_genericDataMode , {\n \"genericDataMode\" , \"h245.genericDataMode_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"GenericCapability\" , HFILL }\n }\n , {\n & hf_h245_bitRate_0_4294967295 , {\n \"bitRate\" , \"h245.bitRate\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_4294967295\" , HFILL }\n }\n , {\n & hf_h245_h233Encryption , {\n \"h233Encryption\" , \"h245.h233Encryption_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_mlr_type , {\n \"type\" , \"h245.type\" , FT_UINT32 , BASE_DEC , VALS ( h245_Mlr_type_vals ) , 0 , \"Mlr_type\" , HFILL }\n }\n , {\n & hf_h245_systemLoop , {\n \"systemLoop\" , \"h245.systemLoop_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_mediaLoop , {\n \"mediaLoop\" , \"h245.mediaLoop\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"LogicalChannelNumber\" , HFILL }\n }\n , {\n & hf_h245_logicalChannelLoop , {\n \"logicalChannelLoop\" , \"h245.logicalChannelLoop\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"LogicalChannelNumber\" , HFILL }\n }\n , {\n & hf_h245_mla_type , {\n \"type\" , \"h245.type\" , FT_UINT32 , BASE_DEC , VALS ( h245_Mla_type_vals ) , 0 , \"Mla_type\" , HFILL }\n }\n , {\n & hf_h245_mlrej_type , {\n \"type\" , \"h245.type\" , FT_UINT32 , BASE_DEC , VALS ( h245_Mlrej_type_vals ) , 0 , \"Mlrej_type\" , HFILL }\n }\n , {\n & hf_h245_maintloop_rej_cause , {\n \"cause\" , \"h245.cause\" , FT_UINT32 , BASE_DEC , VALS ( h245_MaintenanceLoopRejectCause_vals ) , 0 , \"MaintenanceLoopRejectCause\" , HFILL }\n }\n , {\n & hf_h245_canNotPerformLoop , {\n \"canNotPerformLoop\" , \"h245.canNotPerformLoop_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_communicationModeTable , {\n \"communicationModeTable\" , \"h245.communicationModeTable\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SET_SIZE_1_256_OF_CommunicationModeTableEntry\" , HFILL }\n }\n , {\n & hf_h245_communicationModeTable_item , {\n \"CommunicationModeTableEntry\" , \"h245.CommunicationModeTableEntry_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_terminalLabel , {\n \"terminalLabel\" , \"h245.terminalLabel_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_sessionDescription , {\n \"sessionDescription\" , \"h245.sessionDescription\" , FT_STRING , BASE_NONE , NULL , 0 , \"BMPString_SIZE_1_128\" , HFILL }\n }\n , {\n & hf_h245_entryDataType , {\n \"dataType\" , \"h245.dataType\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_entryDataType_vals ) , 0 , \"T_entryDataType\" , HFILL }\n }\n , {\n & hf_h245_cm_mediaChannel , {\n \"mediaChannel\" , \"h245.mediaChannel\" , FT_UINT32 , BASE_DEC , VALS ( h245_TransportAddress_vals ) , 0 , \"Cm_mediaChannel\" , HFILL }\n }\n , {\n & hf_h245_cm_mediaControlChannel , {\n \"mediaControlChannel\" , \"h245.mediaControlChannel\" , FT_UINT32 , BASE_DEC , VALS ( h245_TransportAddress_vals ) , 0 , \"TransportAddress\" , HFILL }\n }\n , {\n & hf_h245_sessionDependency , {\n \"sessionDependency\" , \"h245.sessionDependency\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_255\" , HFILL }\n }\n , {\n & hf_h245_terminalListRequest , {\n \"terminalListRequest\" , \"h245.terminalListRequest_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_makeMeChair , {\n \"makeMeChair\" , \"h245.makeMeChair_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_cancelMakeMeChair , {\n \"cancelMakeMeChair\" , \"h245.cancelMakeMeChair_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_dropTerminal , {\n \"dropTerminal\" , \"h245.dropTerminal_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"TerminalLabel\" , HFILL }\n }\n , {\n & hf_h245_requestTerminalID , {\n \"requestTerminalID\" , \"h245.requestTerminalID_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"TerminalLabel\" , HFILL }\n }\n , {\n & hf_h245_enterH243Password , {\n \"enterH243Password\" , \"h245.enterH243Password_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_enterH243TerminalID , {\n \"enterH243TerminalID\" , \"h245.enterH243TerminalID_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_enterH243ConferenceID , {\n \"enterH243ConferenceID\" , \"h245.enterH243ConferenceID_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_enterExtensionAddress , {\n \"enterExtensionAddress\" , \"h245.enterExtensionAddress_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_requestChairTokenOwner , {\n \"requestChairTokenOwner\" , \"h245.requestChairTokenOwner_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_requestTerminalCertificate , {\n \"requestTerminalCertificate\" , \"h245.requestTerminalCertificate_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_certSelectionCriteria , {\n \"certSelectionCriteria\" , \"h245.certSelectionCriteria\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_sRandom , {\n \"sRandom\" , \"h245.sRandom\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_4294967295\" , HFILL }\n }\n , {\n & hf_h245_broadcastMyLogicalChannel , {\n \"broadcastMyLogicalChannel\" , \"h245.broadcastMyLogicalChannel\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"LogicalChannelNumber\" , HFILL }\n }\n , {\n & hf_h245_makeTerminalBroadcaster , {\n \"makeTerminalBroadcaster\" , \"h245.makeTerminalBroadcaster_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"TerminalLabel\" , HFILL }\n }\n , {\n & hf_h245_sendThisSource , {\n \"sendThisSource\" , \"h245.sendThisSource_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"TerminalLabel\" , HFILL }\n }\n , {\n & hf_h245_requestAllTerminalIDs , {\n \"requestAllTerminalIDs\" , \"h245.requestAllTerminalIDs_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_remoteMCRequest , {\n \"remoteMCRequest\" , \"h245.remoteMCRequest\" , FT_UINT32 , BASE_DEC , VALS ( h245_RemoteMCRequest_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_CertSelectionCriteria_item , {\n \"Criteria\" , \"h245.Criteria_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_field , {\n \"field\" , \"h245.field\" , FT_OID , BASE_NONE , NULL , 0 , \"OBJECT_IDENTIFIER\" , HFILL }\n }\n , {\n & hf_h245_criteriaValue , {\n \"value\" , \"h245.value\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_1_65535\" , HFILL }\n }\n , {\n & hf_h245_mcuNumber , {\n \"mcuNumber\" , \"h245.mcuNumber\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_terminalNumber , {\n \"terminalNumber\" , \"h245.terminalNumber\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_mCTerminalIDResponse , {\n \"mCTerminalIDResponse\" , \"h245.mCTerminalIDResponse_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_terminalID , {\n \"terminalID\" , \"h245.terminalID\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_terminalIDResponse , {\n \"terminalIDResponse\" , \"h245.terminalIDResponse_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_conferenceIDResponse , {\n \"conferenceIDResponse\" , \"h245.conferenceIDResponse_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_conferenceID , {\n \"conferenceID\" , \"h245.conferenceID\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_passwordResponse , {\n \"passwordResponse\" , \"h245.passwordResponse_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_password , {\n \"password\" , \"h245.password\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_terminalListResponse , {\n \"terminalListResponse\" , \"h245.terminalListResponse\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SET_SIZE_1_256_OF_TerminalLabel\" , HFILL }\n }\n , {\n & hf_h245_terminalListResponse_item , {\n \"TerminalLabel\" , \"h245.TerminalLabel_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_videoCommandReject , {\n \"videoCommandReject\" , \"h245.videoCommandReject_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_terminalDropReject , {\n \"terminalDropReject\" , \"h245.terminalDropReject_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_makeMeChairResponse , {\n \"makeMeChairResponse\" , \"h245.makeMeChairResponse\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_makeMeChairResponse_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_grantedChairToken , {\n \"grantedChairToken\" , \"h245.grantedChairToken_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_deniedChairToken , {\n \"deniedChairToken\" , \"h245.deniedChairToken_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_extensionAddressResponse , {\n \"extensionAddressResponse\" , \"h245.extensionAddressResponse_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_extensionAddress , {\n \"extensionAddress\" , \"h245.extensionAddress\" , FT_BYTES , BASE_NONE , NULL , 0 , \"TerminalID\" , HFILL }\n }\n , {\n & hf_h245_chairTokenOwnerResponse , {\n \"chairTokenOwnerResponse\" , \"h245.chairTokenOwnerResponse_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_terminalCertificateResponse , {\n \"terminalCertificateResponse\" , \"h245.terminalCertificateResponse_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_certificateResponse , {\n \"certificateResponse\" , \"h245.certificateResponse\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_1_65535\" , HFILL }\n }\n , {\n & hf_h245_broadcastMyLogicalChannelResponse , {\n \"broadcastMyLogicalChannelResponse\" , \"h245.broadcastMyLogicalChannelResponse\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_broadcastMyLogicalChannelResponse_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_grantedBroadcastMyLogicalChannel , {\n \"grantedBroadcastMyLogicalChannel\" , \"h245.grantedBroadcastMyLogicalChannel_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_deniedBroadcastMyLogicalChannel , {\n \"deniedBroadcastMyLogicalChannel\" , \"h245.deniedBroadcastMyLogicalChannel_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_makeTerminalBroadcasterResponse , {\n \"makeTerminalBroadcasterResponse\" , \"h245.makeTerminalBroadcasterResponse\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_makeTerminalBroadcasterResponse_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_grantedMakeTerminalBroadcaster , {\n \"grantedMakeTerminalBroadcaster\" , \"h245.grantedMakeTerminalBroadcaster_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_deniedMakeTerminalBroadcaster , {\n \"deniedMakeTerminalBroadcaster\" , \"h245.deniedMakeTerminalBroadcaster_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_sendThisSourceResponse , {\n \"sendThisSourceResponse\" , \"h245.sendThisSourceResponse\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_sendThisSourceResponse_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_grantedSendThisSource , {\n \"grantedSendThisSource\" , \"h245.grantedSendThisSource_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_deniedSendThisSource , {\n \"deniedSendThisSource\" , \"h245.deniedSendThisSource_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_requestAllTerminalIDsResponse , {\n \"requestAllTerminalIDsResponse\" , \"h245.requestAllTerminalIDsResponse_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_remoteMCResponse , {\n \"remoteMCResponse\" , \"h245.remoteMCResponse\" , FT_UINT32 , BASE_DEC , VALS ( h245_RemoteMCResponse_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_terminalInformation , {\n \"terminalInformation\" , \"h245.terminalInformation\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_TerminalInformation\" , HFILL }\n }\n , {\n & hf_h245_terminalInformation_item , {\n \"TerminalInformation\" , \"h245.TerminalInformation_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_masterActivate , {\n \"masterActivate\" , \"h245.masterActivate_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_slaveActivate , {\n \"slaveActivate\" , \"h245.slaveActivate_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_deActivate , {\n \"deActivate\" , \"h245.deActivate_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_accept , {\n \"accept\" , \"h245.accept_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_reject , {\n \"reject\" , \"h245.reject\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_reject_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_functionNotSupportedFlag , {\n \"functionNotSupported\" , \"h245.functionNotSupported_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_callInformationReq , {\n \"callInformation\" , \"h245.callInformation_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"CallInformationReq\" , HFILL }\n }\n , {\n & hf_h245_maxNumberOfAdditionalConnections , {\n \"maxNumberOfAdditionalConnections\" , \"h245.maxNumberOfAdditionalConnections\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_65535\" , HFILL }\n }\n , {\n & hf_h245_addConnectionReq , {\n \"addConnection\" , \"h245.addConnection_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"AddConnectionReq\" , HFILL }\n }\n , {\n & hf_h245_dialingInformation , {\n \"dialingInformation\" , \"h245.dialingInformation\" , FT_UINT32 , BASE_DEC , VALS ( h245_DialingInformation_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_removeConnectionReq , {\n \"removeConnection\" , \"h245.removeConnection_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"RemoveConnectionReq\" , HFILL }\n }\n , {\n & hf_h245_connectionIdentifier , {\n \"connectionIdentifier\" , \"h245.connectionIdentifier_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_maximumHeaderIntervalReq , {\n \"maximumHeaderInterval\" , \"h245.maximumHeaderInterval_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"MaximumHeaderIntervalReq\" , HFILL }\n }\n , {\n & hf_h245_requestType , {\n \"requestType\" , \"h245.requestType\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_requestType_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_currentIntervalInformation , {\n \"currentIntervalInformation\" , \"h245.currentIntervalInformation_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_requestedInterval , {\n \"requestedInterval\" , \"h245.requestedInterval\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_65535\" , HFILL }\n }\n , {\n & hf_h245_callInformationResp , {\n \"callInformation\" , \"h245.callInformation_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"CallInformationResp\" , HFILL }\n }\n , {\n & hf_h245_callAssociationNumber , {\n \"callAssociationNumber\" , \"h245.callAssociationNumber\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_4294967295\" , HFILL }\n }\n , {\n & hf_h245_addConnectionResp , {\n \"addConnection\" , \"h245.addConnection_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"AddConnectionResp\" , HFILL }\n }\n , {\n & hf_h245_responseCode , {\n \"responseCode\" , \"h245.responseCode\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_responseCode_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_accepted , {\n \"accepted\" , \"h245.accepted_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_rejected , {\n \"rejected\" , \"h245.rejected\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_rejected_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_connectionsNotAvailable , {\n \"connectionsNotAvailable\" , \"h245.connectionsNotAvailable_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_userRejected , {\n \"userRejected\" , \"h245.userRejected_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_removeConnectionResp , {\n \"removeConnection\" , \"h245.removeConnection_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"RemoveConnectionResp\" , HFILL }\n }\n , {\n & hf_h245_maximumHeaderIntervalResp , {\n \"maximumHeaderInterval\" , \"h245.maximumHeaderInterval_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"MaximumHeaderIntervalResp\" , HFILL }\n }\n , {\n & hf_h245_currentInterval , {\n \"currentInterval\" , \"h245.currentInterval\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_65535\" , HFILL }\n }\n , {\n & hf_h245_crcDesired , {\n \"crcDesired\" , \"h245.crcDesired_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_excessiveError , {\n \"excessiveError\" , \"h245.excessiveError_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_differential , {\n \"differential\" , \"h245.differential\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SET_SIZE_1_65535_OF_DialingInformationNumber\" , HFILL }\n }\n , {\n & hf_h245_differential_item , {\n \"DialingInformationNumber\" , \"h245.DialingInformationNumber_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_infoNotAvailable , {\n \"infoNotAvailable\" , \"h245.infoNotAvailable\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_65535\" , HFILL }\n }\n , {\n & hf_h245_networkAddressNum , {\n \"networkAddress\" , \"h245.networkAddress\" , FT_STRING , BASE_NONE , NULL , 0 , \"NumericString_SIZE_0_40\" , HFILL }\n }\n , {\n & hf_h245_subAddress , {\n \"subAddress\" , \"h245.subAddress\" , FT_STRING , BASE_NONE , NULL , 0 , \"IA5String_SIZE_1_40\" , HFILL }\n }\n , {\n & hf_h245_networkType , {\n \"networkType\" , \"h245.networkType\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SET_SIZE_1_255_OF_DialingInformationNetworkType\" , HFILL }\n }\n , {\n & hf_h245_networkType_item , {\n \"DialingInformationNetworkType\" , \"h245.DialingInformationNetworkType\" , FT_UINT32 , BASE_DEC , VALS ( h245_DialingInformationNetworkType_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_n_isdn , {\n \"n-isdn\" , \"h245.n_isdn_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_gstn , {\n \"gstn\" , \"h245.gstn_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_mobile , {\n \"mobile\" , \"h245.mobile_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_channelTag , {\n \"channelTag\" , \"h245.channelTag\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_4294967295\" , HFILL }\n }\n , {\n & hf_h245_sequenceNum , {\n \"sequenceNumber\" , \"h245.sequenceNumber\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_4294967295\" , HFILL }\n }\n , {\n & hf_h245_maximumBitRate , {\n \"maximumBitRate\" , \"h245.maximumBitRate\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_rejectReason , {\n \"rejectReason\" , \"h245.rejectReason\" , FT_UINT32 , BASE_DEC , VALS ( h245_LogicalChannelRateRejectReason_vals ) , 0 , \"LogicalChannelRateRejectReason\" , HFILL }\n }\n , {\n & hf_h245_currentMaximumBitRate , {\n \"currentMaximumBitRate\" , \"h245.currentMaximumBitRate\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"MaximumBitRate\" , HFILL }\n }\n , {\n & hf_h245_undefinedReason , {\n \"undefinedReason\" , \"h245.undefinedReason_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_insufficientResources , {\n \"insufficientResources\" , \"h245.insufficientResources_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_specificRequest , {\n \"specificRequest\" , \"h245.specificRequest_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_multiplexCapabilityBool , {\n \"multiplexCapability\" , \"h245.multiplexCapability\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_capabilityTableEntryNumbers , {\n \"capabilityTableEntryNumbers\" , \"h245.capabilityTableEntryNumbers\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SET_SIZE_1_65535_OF_CapabilityTableEntryNumber\" , HFILL }\n }\n , {\n & hf_h245_capabilityTableEntryNumbers_item , {\n \"CapabilityTableEntryNumber\" , \"h245.CapabilityTableEntryNumber\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_capabilityDescriptorNumbers , {\n \"capabilityDescriptorNumbers\" , \"h245.capabilityDescriptorNumbers\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SET_SIZE_1_256_OF_CapabilityDescriptorNumber\" , HFILL }\n }\n , {\n & hf_h245_capabilityDescriptorNumbers_item , {\n \"CapabilityDescriptorNumber\" , \"h245.CapabilityDescriptorNumber\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_genericRequestFlag , {\n \"genericRequest\" , \"h245.genericRequest_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_encryptionSE , {\n \"encryptionSE\" , \"h245.encryptionSE\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING\" , HFILL }\n }\n , {\n & hf_h245_encryptionIVRequest , {\n \"encryptionIVRequest\" , \"h245.encryptionIVRequest_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_encryptionAlgorithmID , {\n \"encryptionAlgorithmID\" , \"h245.encryptionAlgorithmID_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_h233AlgorithmIdentifier , {\n \"h233AlgorithmIdentifier\" , \"h245.h233AlgorithmIdentifier\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SequenceNumber\" , HFILL }\n }\n , {\n & hf_h245_associatedAlgorithm , {\n \"associatedAlgorithm\" , \"h245.associatedAlgorithm_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"NonStandardParameter\" , HFILL }\n }\n , {\n & hf_h245_wholeMultiplex , {\n \"wholeMultiplex\" , \"h245.wholeMultiplex_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_scope , {\n \"scope\" , \"h245.scope\" , FT_UINT32 , BASE_DEC , VALS ( h245_Scope_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_res_maximumBitRate , {\n \"maximumBitRate\" , \"h245.maximumBitRate\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_16777215\" , HFILL }\n }\n , {\n & hf_h245_noRestriction , {\n \"noRestriction\" , \"h245.noRestriction_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_restriction , {\n \"restriction\" , \"h245.restriction\" , FT_UINT32 , BASE_DEC , VALS ( h245_Restriction_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_disconnect , {\n \"disconnect\" , \"h245.disconnect_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_gstnOptions , {\n \"gstnOptions\" , \"h245.gstnOptions\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_gstnOptions_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_telephonyMode , {\n \"telephonyMode\" , \"h245.telephonyMode_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_v8bis , {\n \"v8bis\" , \"h245.v8bis_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_v34DSVD , {\n \"v34DSVD\" , \"h245.v34DSVD_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_v34DuplexFAX , {\n \"v34DuplexFAX\" , \"h245.v34DuplexFAX_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_v34H324 , {\n \"v34H324\" , \"h245.v34H324_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_isdnOptions , {\n \"isdnOptions\" , \"h245.isdnOptions\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_isdnOptions_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_v140 , {\n \"v140\" , \"h245.v140_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_terminalOnHold , {\n \"terminalOnHold\" , \"h245.terminalOnHold_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_cancelBroadcastMyLogicalChannel , {\n \"cancelBroadcastMyLogicalChannel\" , \"h245.cancelBroadcastMyLogicalChannel\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"LogicalChannelNumber\" , HFILL }\n }\n , {\n & hf_h245_cancelMakeTerminalBroadcaster , {\n \"cancelMakeTerminalBroadcaster\" , \"h245.cancelMakeTerminalBroadcaster_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_cancelSendThisSource , {\n \"cancelSendThisSource\" , \"h245.cancelSendThisSource_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_dropConference , {\n \"dropConference\" , \"h245.dropConference_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_substituteConferenceIDCommand , {\n \"substituteConferenceIDCommand\" , \"h245.substituteConferenceIDCommand_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_conferenceIdentifier , {\n \"conferenceIdentifier\" , \"h245.conferenceIdentifier\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_16\" , HFILL }\n }\n , {\n & hf_h245_masterToSlave , {\n \"masterToSlave\" , \"h245.masterToSlave_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_slaveToMaster , {\n \"slaveToMaster\" , \"h245.slaveToMaster_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_mc_type , {\n \"type\" , \"h245.type\" , FT_UINT32 , BASE_DEC , VALS ( h245_Mc_type_vals ) , 0 , \"Mc_type\" , HFILL }\n }\n , {\n & hf_h245_equaliseDelay , {\n \"equaliseDelay\" , \"h245.equaliseDelay_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_zeroDelay , {\n \"zeroDelay\" , \"h245.zeroDelay_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_multipointModeCommand , {\n \"multipointModeCommand\" , \"h245.multipointModeCommand_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_cancelMultipointModeCommand , {\n \"cancelMultipointModeCommand\" , \"h245.cancelMultipointModeCommand_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_videoFreezePicture , {\n \"videoFreezePicture\" , \"h245.videoFreezePicture_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_videoFastUpdatePicture , {\n \"videoFastUpdatePicture\" , \"h245.videoFastUpdatePicture_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_videoFastUpdateGOB , {\n \"videoFastUpdateGOB\" , \"h245.videoFastUpdateGOB_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_firstGOB , {\n \"firstGOB\" , \"h245.firstGOB\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_17\" , HFILL }\n }\n , {\n & hf_h245_numberOfGOBs , {\n \"numberOfGOBs\" , \"h245.numberOfGOBs\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_18\" , HFILL }\n }\n , {\n & hf_h245_videoTemporalSpatialTradeOff , {\n \"videoTemporalSpatialTradeOff\" , \"h245.videoTemporalSpatialTradeOff\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_31\" , HFILL }\n }\n , {\n & hf_h245_videoSendSyncEveryGOB , {\n \"videoSendSyncEveryGOB\" , \"h245.videoSendSyncEveryGOB_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_videoSendSyncEveryGOBCancel , {\n \"videoSendSyncEveryGOBCancel\" , \"h245.videoSendSyncEveryGOBCancel_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_videoFastUpdateMB , {\n \"videoFastUpdateMB\" , \"h245.videoFastUpdateMB_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_firstGOB_0_255 , {\n \"firstGOB\" , \"h245.firstGOB\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_255\" , HFILL }\n }\n , {\n & hf_h245_firstMB_1_8192 , {\n \"firstMB\" , \"h245.firstMB\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_8192\" , HFILL }\n }\n , {\n & hf_h245_numberOfMBs , {\n \"numberOfMBs\" , \"h245.numberOfMBs\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_8192\" , HFILL }\n }\n , {\n & hf_h245_maxH223MUXPDUsize , {\n \"maxH223MUXPDUsize\" , \"h245.maxH223MUXPDUsize\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_65535\" , HFILL }\n }\n , {\n & hf_h245_encryptionUpdate , {\n \"encryptionUpdate\" , \"h245.encryptionUpdate_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"EncryptionSync\" , HFILL }\n }\n , {\n & hf_h245_encryptionUpdateRequest , {\n \"encryptionUpdateRequest\" , \"h245.encryptionUpdateRequest_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_switchReceiveMediaOff , {\n \"switchReceiveMediaOff\" , \"h245.switchReceiveMediaOff_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_switchReceiveMediaOn , {\n \"switchReceiveMediaOn\" , \"h245.switchReceiveMediaOn_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_progressiveRefinementStart , {\n \"progressiveRefinementStart\" , \"h245.progressiveRefinementStart_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_repeatCount , {\n \"repeatCount\" , \"h245.repeatCount\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_repeatCount_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_doOneProgression , {\n \"doOneProgression\" , \"h245.doOneProgression_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_doContinuousProgressions , {\n \"doContinuousProgressions\" , \"h245.doContinuousProgressions_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_doOneIndependentProgression , {\n \"doOneIndependentProgression\" , \"h245.doOneIndependentProgression_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_doContinuousIndependentProgressions , {\n \"doContinuousIndependentProgressions\" , \"h245.doContinuousIndependentProgressions_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_progressiveRefinementAbortOne , {\n \"progressiveRefinementAbortOne\" , \"h245.progressiveRefinementAbortOne_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_progressiveRefinementAbortContinuous , {\n \"progressiveRefinementAbortContinuous\" , \"h245.progressiveRefinementAbortContinuous_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_videoBadMBs , {\n \"videoBadMBs\" , \"h245.videoBadMBs_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_firstMB , {\n \"firstMB\" , \"h245.firstMB\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_9216\" , HFILL }\n }\n , {\n & hf_h245_numberOfMBs1_1_9216 , {\n \"numberOfMBs\" , \"h245.numberOfMBs\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_9216\" , HFILL }\n }\n , {\n & hf_h245_temporalReference , {\n \"temporalReference\" , \"h245.temporalReference\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_1023\" , HFILL }\n }\n , {\n & hf_h245_lostPicture , {\n \"lostPicture\" , \"h245.lostPicture\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_PictureReference\" , HFILL }\n }\n , {\n & hf_h245_lostPicture_item , {\n \"PictureReference\" , \"h245.PictureReference\" , FT_UINT32 , BASE_DEC , VALS ( h245_PictureReference_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_lostPartialPicture , {\n \"lostPartialPicture\" , \"h245.lostPartialPicture_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_pictureReference , {\n \"pictureReference\" , \"h245.pictureReference\" , FT_UINT32 , BASE_DEC , VALS ( h245_PictureReference_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_recoveryReferencePicture , {\n \"recoveryReferencePicture\" , \"h245.recoveryReferencePicture\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"SEQUENCE_OF_PictureReference\" , HFILL }\n }\n , {\n & hf_h245_recoveryReferencePicture_item , {\n \"PictureReference\" , \"h245.PictureReference\" , FT_UINT32 , BASE_DEC , VALS ( h245_PictureReference_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_encryptionUpdateCommand , {\n \"encryptionUpdateCommand\" , \"h245.encryptionUpdateCommand_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_encryptionUpdateAck , {\n \"encryptionUpdateAck\" , \"h245.encryptionUpdateAck_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_direction , {\n \"direction\" , \"h245.direction\" , FT_UINT32 , BASE_DEC , VALS ( h245_EncryptionUpdateDirection_vals ) , 0 , \"EncryptionUpdateDirection\" , HFILL }\n }\n , {\n & hf_h245_secureChannel , {\n \"secureChannel\" , \"h245.secureChannel\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_sharedSecret , {\n \"sharedSecret\" , \"h245.sharedSecret\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_certProtectedKey , {\n \"certProtectedKey\" , \"h245.certProtectedKey\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_keyProtectionMethod , {\n \"keyProtectionMethod\" , \"h245.keyProtectionMethod_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_pictureNumber , {\n \"pictureNumber\" , \"h245.pictureNumber\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_1023\" , HFILL }\n }\n , {\n & hf_h245_longTermPictureIndex , {\n \"longTermPictureIndex\" , \"h245.longTermPictureIndex\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_255\" , HFILL }\n }\n , {\n & hf_h245_h223ModeChange , {\n \"h223ModeChange\" , \"h245.h223ModeChange\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_h223ModeChange_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_toLevel0 , {\n \"toLevel0\" , \"h245.toLevel0_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_toLevel1 , {\n \"toLevel1\" , \"h245.toLevel1_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_toLevel2 , {\n \"toLevel2\" , \"h245.toLevel2_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_toLevel2withOptionalHeader , {\n \"toLevel2withOptionalHeader\" , \"h245.toLevel2withOptionalHeader_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_h223AnnexADoubleFlag , {\n \"h223AnnexADoubleFlag\" , \"h245.h223AnnexADoubleFlag\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_h223AnnexADoubleFlag_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_start , {\n \"start\" , \"h245.start_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_stop , {\n \"stop\" , \"h245.stop_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_bitRate , {\n \"bitRate\" , \"h245.bitRate\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_65535\" , HFILL }\n }\n , {\n & hf_h245_bitRateLockedToPCRClock , {\n \"bitRateLockedToPCRClock\" , \"h245.bitRateLockedToPCRClock\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_bitRateLockedToNetworkClock , {\n \"bitRateLockedToNetworkClock\" , \"h245.bitRateLockedToNetworkClock\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , \"BOOLEAN\" , HFILL }\n }\n , {\n & hf_h245_cmd_aal , {\n \"aal\" , \"h245.aal\" , FT_UINT32 , BASE_DEC , VALS ( h245_Cmd_aal_vals ) , 0 , \"Cmd_aal\" , HFILL }\n }\n , {\n & hf_h245_cmd_aal1 , {\n \"aal1\" , \"h245.aal1_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"Cmd_aal1\" , HFILL }\n }\n , {\n & hf_h245_cmd_clockRecovery , {\n \"clockRecovery\" , \"h245.clockRecovery\" , FT_UINT32 , BASE_DEC , VALS ( h245_Cmd_clockRecovery_vals ) , 0 , \"Cmd_clockRecovery\" , HFILL }\n }\n , {\n & hf_h245_nullClockRecoveryflag , {\n \"nullClockRecovery\" , \"h245.nullClockRecovery_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_srtsClockRecovery , {\n \"srtsClockRecovery\" , \"h245.srtsClockRecovery_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_adaptiveClockRecoveryFlag , {\n \"adaptiveClockRecovery\" , \"h245.adaptiveClockRecovery_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_cmd_errorCorrection , {\n \"errorCorrection\" , \"h245.errorCorrection\" , FT_UINT32 , BASE_DEC , VALS ( h245_Cmd_errorCorrection_vals ) , 0 , \"Cmd_errorCorrection\" , HFILL }\n }\n , {\n & hf_h245_nullErrorCorrectionFlag , {\n \"nullErrorCorrection\" , \"h245.nullErrorCorrection_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_longInterleaverFlag , {\n \"longInterleaver\" , \"h245.longInterleaver_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_shortInterleaverFlag , {\n \"shortInterleaver\" , \"h245.shortInterleaver_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_errorCorrectionOnlyFlag , {\n \"errorCorrectionOnly\" , \"h245.errorCorrectionOnly_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_cmd_aal5 , {\n \"aal5\" , \"h245.aal5_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"Cmd_aal5\" , HFILL }\n }\n , {\n & hf_h245_cmd_multiplex , {\n \"multiplex\" , \"h245.multiplex\" , FT_UINT32 , BASE_DEC , VALS ( h245_Cmd_multiplex_vals ) , 0 , \"Cmd_multiplex\" , HFILL }\n }\n , {\n & hf_h245_noMultiplex , {\n \"noMultiplex\" , \"h245.noMultiplex_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_transportStream , {\n \"transportStream\" , \"h245.transportStream_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_programStreamFlag , {\n \"programStream\" , \"h245.programStream_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_cmd_reverseParameters , {\n \"reverseParameters\" , \"h245.reverseParameters_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"Cmd_reverseParameters\" , HFILL }\n }\n , {\n & hf_h245_cmdr_multiplex , {\n \"multiplex\" , \"h245.multiplex\" , FT_UINT32 , BASE_DEC , VALS ( h245_CmdR_multiplex_vals ) , 0 , \"CmdR_multiplex\" , HFILL }\n }\n , {\n & hf_h245_sampleSize , {\n \"sampleSize\" , \"h245.sampleSize\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_255\" , HFILL }\n }\n , {\n & hf_h245_samplesPerFrame , {\n \"samplesPerFrame\" , \"h245.samplesPerFrame\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_255\" , HFILL }\n }\n , {\n & hf_h245_status , {\n \"status\" , \"h245.status\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_status_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_synchronized , {\n \"synchronized\" , \"h245.synchronized_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_reconfiguration , {\n \"reconfiguration\" , \"h245.reconfiguration_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_fns_cause , {\n \"cause\" , \"h245.cause\" , FT_UINT32 , BASE_DEC , VALS ( h245_FunctionNotSupportedCause_vals ) , 0 , \"FunctionNotSupportedCause\" , HFILL }\n }\n , {\n & hf_h245_syntaxError , {\n \"syntaxError\" , \"h245.syntaxError_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_semanticError , {\n \"semanticError\" , \"h245.semanticError_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_unknownFunction , {\n \"unknownFunction\" , \"h245.unknownFunction_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_returnedFunction , {\n \"returnedFunction\" , \"h245.returnedFunction\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_sbeNumber , {\n \"sbeNumber\" , \"h245.sbeNumber\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_9\" , HFILL }\n }\n , {\n & hf_h245_terminalNumberAssign , {\n \"terminalNumberAssign\" , \"h245.terminalNumberAssign_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"TerminalLabel\" , HFILL }\n }\n , {\n & hf_h245_terminalJoinedConference , {\n \"terminalJoinedConference\" , \"h245.terminalJoinedConference_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"TerminalLabel\" , HFILL }\n }\n , {\n & hf_h245_terminalLeftConference , {\n \"terminalLeftConference\" , \"h245.terminalLeftConference_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"TerminalLabel\" , HFILL }\n }\n , {\n & hf_h245_seenByAtLeastOneOther , {\n \"seenByAtLeastOneOther\" , \"h245.seenByAtLeastOneOther_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_cancelSeenByAtLeastOneOther , {\n \"cancelSeenByAtLeastOneOther\" , \"h245.cancelSeenByAtLeastOneOther_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_seenByAll , {\n \"seenByAll\" , \"h245.seenByAll_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_cancelSeenByAll , {\n \"cancelSeenByAll\" , \"h245.cancelSeenByAll_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_terminalYouAreSeeing , {\n \"terminalYouAreSeeing\" , \"h245.terminalYouAreSeeing_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"TerminalLabel\" , HFILL }\n }\n , {\n & hf_h245_requestForFloor , {\n \"requestForFloor\" , \"h245.requestForFloor_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_withdrawChairToken , {\n \"withdrawChairToken\" , \"h245.withdrawChairToken_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_floorRequested , {\n \"floorRequested\" , \"h245.floorRequested_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"TerminalLabel\" , HFILL }\n }\n , {\n & hf_h245_terminalYouAreSeeingInSubPictureNumber , {\n \"terminalYouAreSeeingInSubPictureNumber\" , \"h245.terminalYouAreSeeingInSubPictureNumber_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_videoIndicateCompose , {\n \"videoIndicateCompose\" , \"h245.videoIndicateCompose_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_masterMCU , {\n \"masterMCU\" , \"h245.masterMCU_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_cancelMasterMCU , {\n \"cancelMasterMCU\" , \"h245.cancelMasterMCU_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_subPictureNumber , {\n \"subPictureNumber\" , \"h245.subPictureNumber\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_255\" , HFILL }\n }\n , {\n & hf_h245_compositionNumber , {\n \"compositionNumber\" , \"h245.compositionNumber\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_255\" , HFILL }\n }\n , {\n & hf_h245_mi_type , {\n \"type\" , \"h245.type\" , FT_UINT32 , BASE_DEC , VALS ( h245_Mi_type_vals ) , 0 , \"Mi_type\" , HFILL }\n }\n , {\n & hf_h245_logicalChannelActive , {\n \"logicalChannelActive\" , \"h245.logicalChannelActive_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_logicalChannelInactive , {\n \"logicalChannelInactive\" , \"h245.logicalChannelInactive_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_multipointConference , {\n \"multipointConference\" , \"h245.multipointConference_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_cancelMultipointConference , {\n \"cancelMultipointConference\" , \"h245.cancelMultipointConference_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_multipointZeroComm , {\n \"multipointZeroComm\" , \"h245.multipointZeroComm_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_cancelMultipointZeroComm , {\n \"cancelMultipointZeroComm\" , \"h245.cancelMultipointZeroComm_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_multipointSecondaryStatus , {\n \"multipointSecondaryStatus\" , \"h245.multipointSecondaryStatus_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_cancelMultipointSecondaryStatus , {\n \"cancelMultipointSecondaryStatus\" , \"h245.cancelMultipointSecondaryStatus_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_videoIndicateReadyToActivate , {\n \"videoIndicateReadyToActivate\" , \"h245.videoIndicateReadyToActivate_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_videoNotDecodedMBs , {\n \"videoNotDecodedMBs\" , \"h245.videoNotDecodedMBs_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_temporalReference_0_255 , {\n \"temporalReference\" , \"h245.temporalReference\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_255\" , HFILL }\n }\n , {\n & hf_h245_estimatedReceivedJitterMantissa , {\n \"estimatedReceivedJitterMantissa\" , \"h245.estimatedReceivedJitterMantissa\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_3\" , HFILL }\n }\n , {\n & hf_h245_estimatedReceivedJitterExponent , {\n \"estimatedReceivedJitterExponent\" , \"h245.estimatedReceivedJitterExponent\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_7\" , HFILL }\n }\n , {\n & hf_h245_skippedFrameCount , {\n \"skippedFrameCount\" , \"h245.skippedFrameCount\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_15\" , HFILL }\n }\n , {\n & hf_h245_additionalDecoderBuffer , {\n \"additionalDecoderBuffer\" , \"h245.additionalDecoderBuffer\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_262143\" , HFILL }\n }\n , {\n & hf_h245_logicalChannelNumber1 , {\n \"logicalChannelNumber1\" , \"h245.logicalChannelNumber1\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"LogicalChannelNumber\" , HFILL }\n }\n , {\n & hf_h245_logicalChannelNumber2 , {\n \"logicalChannelNumber2\" , \"h245.logicalChannelNumber2\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"LogicalChannelNumber\" , HFILL }\n }\n , {\n & hf_h245_skew , {\n \"skew\" , \"h245.skew\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_4095\" , HFILL }\n }\n , {\n & hf_h245_maximumSkew , {\n \"maximumSkew\" , \"h245.maximumSkew\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_4095\" , HFILL }\n }\n , {\n & hf_h245_signalAddress , {\n \"signalAddress\" , \"h245.signalAddress\" , FT_UINT32 , BASE_DEC , VALS ( h245_TransportAddress_vals ) , 0 , \"TransportAddress\" , HFILL }\n }\n , {\n & hf_h245_vendor , {\n \"vendor\" , \"h245.vendor\" , FT_UINT32 , BASE_DEC , VALS ( h245_NonStandardIdentifier_vals ) , 0 , \"NonStandardIdentifier\" , HFILL }\n }\n , {\n & hf_h245_productNumber , {\n \"productNumber\" , \"h245.productNumber\" , FT_STRING , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_1_256\" , HFILL }\n }\n , {\n & hf_h245_versionNumber , {\n \"versionNumber\" , \"h245.versionNumber\" , FT_STRING , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_1_256\" , HFILL }\n }\n , {\n & hf_h245_ind_aal , {\n \"aal\" , \"h245.aal\" , FT_UINT32 , BASE_DEC , VALS ( h245_Ind_aal_vals ) , 0 , \"Ind_aal\" , HFILL }\n }\n , {\n & hf_h245_ind_aal1 , {\n \"aal1\" , \"h245.aal1_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"Ind_aal1\" , HFILL }\n }\n , {\n & hf_h245_ind_clockRecovery , {\n \"clockRecovery\" , \"h245.clockRecovery\" , FT_UINT32 , BASE_DEC , VALS ( h245_Ind_clockRecovery_vals ) , 0 , \"Ind_clockRecovery\" , HFILL }\n }\n , {\n & hf_h245_ind_errorCorrection , {\n \"errorCorrection\" , \"h245.errorCorrection\" , FT_UINT32 , BASE_DEC , VALS ( h245_Ind_errorCorrection_vals ) , 0 , \"Ind_errorCorrection\" , HFILL }\n }\n , {\n & hf_h245_ind_aal5 , {\n \"aal5\" , \"h245.aal5_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"Ind_aal5\" , HFILL }\n }\n , {\n & hf_h245_ind_multiplex , {\n \"multiplex\" , \"h245.multiplex\" , FT_UINT32 , BASE_DEC , VALS ( h245_Ind_multiplex_vals ) , 0 , \"Ind_multiplex\" , HFILL }\n }\n , {\n & hf_h245_ind_reverseParameters , {\n \"reverseParameters\" , \"h245.reverseParameters_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"Ind_reverseParameters\" , HFILL }\n }\n , {\n & hf_h245_indr_multiplex , {\n \"multiplex\" , \"h245.multiplex\" , FT_UINT32 , BASE_DEC , VALS ( h245_IndR_multiplex_vals ) , 0 , \"IndR_multiplex\" , HFILL }\n }\n , {\n & hf_h245_iv8 , {\n \"iv8\" , \"h245.iv8\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_iv16 , {\n \"iv16\" , \"h245.iv16\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_iv , {\n \"iv\" , \"h245.iv\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING\" , HFILL }\n }\n , {\n & hf_h245_alphanumeric , {\n \"alphanumeric\" , \"h245.alphanumeric\" , FT_STRING , BASE_NONE , NULL , 0 , \"GeneralString\" , HFILL }\n }\n , {\n & hf_h245_userInputSupportIndication , {\n \"userInputSupportIndication\" , \"h245.userInputSupportIndication\" , FT_UINT32 , BASE_DEC , VALS ( h245_T_userInputSupportIndication_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_signal , {\n \"signal\" , \"h245.signal_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_signalType , {\n \"signalType\" , \"h245.signalType\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_duration , {\n \"duration\" , \"h245.duration\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_1_65535\" , HFILL }\n }\n , {\n & hf_h245_rtp , {\n \"rtp\" , \"h245.rtp_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_timestamp , {\n \"timestamp\" , \"h245.timestamp\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_4294967295\" , HFILL }\n }\n , {\n & hf_h245_expirationTime , {\n \"expirationTime\" , \"h245.expirationTime\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"INTEGER_0_4294967295\" , HFILL }\n }\n , {\n & hf_h245_rtpPayloadIndication , {\n \"rtpPayloadIndication\" , \"h245.rtpPayloadIndication_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_paramS , {\n \"paramS\" , \"h245.paramS_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_encryptedSignalType , {\n \"encryptedSignalType\" , \"h245.encryptedSignalType\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING_SIZE_1\" , HFILL }\n }\n , {\n & hf_h245_algorithmOID , {\n \"algorithmOID\" , \"h245.algorithmOID\" , FT_OID , BASE_NONE , NULL , 0 , \"OBJECT_IDENTIFIER\" , HFILL }\n }\n , {\n & hf_h245_signalUpdate , {\n \"signalUpdate\" , \"h245.signalUpdate_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_si_rtp , {\n \"rtp\" , \"h245.rtp_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"Si_rtp\" , HFILL }\n }\n , {\n & hf_h245_extendedAlphanumeric , {\n \"extendedAlphanumeric\" , \"h245.extendedAlphanumeric_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_h245_encrypted , {\n \"encrypted\" , \"h245.encrypted\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING\" , HFILL }\n }\n , {\n & hf_h245_encryptedAlphanumeric , {\n \"encryptedAlphanumeric\" , \"h245.encryptedAlphanumeric_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , # line 481 \"../../asn1/h245/packet-h245-template.c\" }\n ;\n static gint * ett [ ] = {\n & ett_h245 , & ett_h245_returnedFunction , # line 1 \"../../asn1/h245/packet-h245-ettarr.c\" & ett_h245_MultimediaSystemControlMessage , & ett_h245_RequestMessage , & ett_h245_ResponseMessage , & ett_h245_CommandMessage , & ett_h245_IndicationMessage , & ett_h245_GenericMessage , & ett_h245_T_messageContent , & ett_h245_NonStandardMessage , & ett_h245_NonStandardParameter , & ett_h245_NonStandardIdentifier , & ett_h245_H221NonStandardID , & ett_h245_MasterSlaveDetermination , & ett_h245_MasterSlaveDeterminationAck , & ett_h245_T_decision , & ett_h245_MasterSlaveDeterminationReject , & ett_h245_MasterSlaveDeterminationRejectCause , & ett_h245_MasterSlaveDeterminationRelease , & ett_h245_TerminalCapabilitySet , & ett_h245_SET_SIZE_1_256_OF_CapabilityTableEntry , & ett_h245_SET_SIZE_1_256_OF_CapabilityDescriptor , & ett_h245_SEQUENCE_OF_GenericInformation , & ett_h245_CapabilityTableEntry , & ett_h245_CapabilityDescriptor , & ett_h245_SET_SIZE_1_256_OF_AlternativeCapabilitySet , & ett_h245_AlternativeCapabilitySet , & ett_h245_TerminalCapabilitySetAck , & ett_h245_TerminalCapabilitySetReject , & ett_h245_TerminalCapabilitySetRejectCause , & ett_h245_T_tableEntryCapacityExceeded , & ett_h245_TerminalCapabilitySetRelease , & ett_h245_Capability , & ett_h245_T_h233EncryptionReceiveCapability , & ett_h245_H235SecurityCapability , & ett_h245_MultiplexCapability , & ett_h245_H222Capability , & ett_h245_SET_OF_VCCapability , & ett_h245_VCCapability , & ett_h245_T_aal1 , & ett_h245_T_aal5 , & ett_h245_T_availableBitRates , & ett_h245_Avb_type , & ett_h245_T_rangeOfBitRates , & ett_h245_T_aal1ViaGateway , & ett_h245_SET_SIZE_1_256_OF_Q2931Address , & ett_h245_H223Capability , & ett_h245_T_h223MultiplexTableCapability , & ett_h245_T_enhanced , & ett_h245_T_mobileOperationTransmitCapability , & ett_h245_T_mobileMultilinkFrameCapability , & ett_h245_H223AnnexCCapability , & ett_h245_V76Capability , & ett_h245_V75Capability , & ett_h245_H2250Capability , & ett_h245_T_mcCapability , & ett_h245_SEQUENCE_SIZE_1_256_OF_RedundancyEncodingCapability , & ett_h245_MediaPacketizationCapability , & ett_h245_SEQUENCE_SIZE_1_256_OF_RTPPayloadType , & ett_h245_RSVPParameters , & ett_h245_QOSMode , & ett_h245_ATMParameters , & ett_h245_ServicePriorityValue , & ett_h245_ServicePriority , & ett_h245_AuthorizationParameters , & ett_h245_QOSType , & ett_h245_QOSClass , & ett_h245_QOSDescriptor , & ett_h245_GenericTransportParameters , & ett_h245_QOSCapability , & ett_h245_MediaTransportType , & ett_h245_T_atm_AAL5_compressed , & ett_h245_MediaChannelCapability , & ett_h245_TransportCapability , & ett_h245_SEQUENCE_SIZE_1_256_OF_QOSCapability , & ett_h245_SEQUENCE_SIZE_1_256_OF_MediaChannelCapability , & ett_h245_RedundancyEncodingCapability , & ett_h245_SEQUENCE_SIZE_1_256_OF_CapabilityTableEntryNumber , & ett_h245_RedundancyEncodingMethod , & ett_h245_RTPH263VideoRedundancyEncoding , & ett_h245_T_frameToThreadMapping , & ett_h245_SEQUENCE_SIZE_1_256_OF_RTPH263VideoRedundancyFrameMapping , & ett_h245_T_containedThreads , & ett_h245_RTPH263VideoRedundancyFrameMapping , & ett_h245_T_frameSequence , & ett_h245_MultipointCapability , & ett_h245_SEQUENCE_OF_MediaDistributionCapability , & ett_h245_MediaDistributionCapability , & ett_h245_SEQUENCE_OF_DataApplicationCapability , & ett_h245_VideoCapability , & ett_h245_ExtendedVideoCapability , & ett_h245_SEQUENCE_OF_VideoCapability , & ett_h245_SEQUENCE_OF_GenericCapability , & ett_h245_H261VideoCapability , & ett_h245_H262VideoCapability , & ett_h245_H263VideoCapability , & ett_h245_EnhancementLayerInfo , & ett_h245_SET_SIZE_1_14_OF_EnhancementOptions , & ett_h245_SET_SIZE_1_14_OF_BEnhancementParameters , & ett_h245_BEnhancementParameters , & ett_h245_EnhancementOptions , & ett_h245_H263Options , & ett_h245_SET_SIZE_1_16_OF_CustomPictureClockFrequency , & ett_h245_SET_SIZE_1_16_OF_CustomPictureFormat , & ett_h245_SET_SIZE_1_16_OF_H263VideoModeCombos , & ett_h245_TransparencyParameters , & ett_h245_RefPictureSelection , & ett_h245_T_additionalPictureMemory , & ett_h245_T_videoBackChannelSend , & ett_h245_T_enhancedReferencePicSelect , & ett_h245_T_subPictureRemovalParameters , & ett_h245_CustomPictureClockFrequency , & ett_h245_CustomPictureFormat , & ett_h245_T_mPI , & ett_h245_T_customPCF , & ett_h245_T_customPCF_item , & ett_h245_T_pixelAspectInformation , & ett_h245_T_pixelAspectCode , & ett_h245_T_extendedPAR , & ett_h245_T_extendedPAR_item , & ett_h245_H263VideoModeCombos , & ett_h245_SET_SIZE_1_16_OF_H263ModeComboFlags , & ett_h245_H263ModeComboFlags , & ett_h245_H263Version3Options , & ett_h245_IS11172VideoCapability , & ett_h245_AudioCapability , & ett_h245_T_g7231 , & ett_h245_G729Extensions , & ett_h245_G7231AnnexCCapability , & ett_h245_G723AnnexCAudioMode , & ett_h245_IS11172AudioCapability , & ett_h245_IS13818AudioCapability , & ett_h245_GSMAudioCapability , & ett_h245_VBDCapability , & ett_h245_DataApplicationCapability , & ett_h245_Application , & ett_h245_T_t84 , & ett_h245_Nlpid , & ett_h245_T_t38fax , & ett_h245_DataProtocolCapability , & ett_h245_T_v76wCompression , & ett_h245_CompressionType , & ett_h245_V42bis , & ett_h245_T84Profile , & ett_h245_T_t84Restricted , & ett_h245_T38FaxProfile , & ett_h245_T38FaxRateManagement , & ett_h245_T38FaxUdpOptions , & ett_h245_T_t38FaxUdpEC , & ett_h245_T38FaxTcpOptions , & ett_h245_EncryptionAuthenticationAndIntegrity , & ett_h245_EncryptionCapability , & ett_h245_MediaEncryptionAlgorithm , & ett_h245_AuthenticationCapability , & ett_h245_IntegrityCapability , & ett_h245_UserInputCapability , & ett_h245_SEQUENCE_SIZE_1_16_OF_NonStandardParameter , & ett_h245_ConferenceCapability , & ett_h245_SEQUENCE_OF_NonStandardParameter , & ett_h245_GenericCapability , & ett_h245_T_collapsing , & ett_h245_T_nonCollapsing , & ett_h245_CapabilityIdentifier , & ett_h245_GenericParameter , & ett_h245_SEQUENCE_OF_ParameterIdentifier , & ett_h245_ParameterIdentifier , & ett_h245_ParameterValue , & ett_h245_SEQUENCE_OF_GenericParameter , & ett_h245_MultiplexedStreamCapability , & ett_h245_MultiplexFormat , & ett_h245_AudioTelephonyEventCapability , & ett_h245_AudioToneCapability , & ett_h245_NoPTAudioTelephonyEventCapability , & ett_h245_NoPTAudioToneCapability , & ett_h245_MultiplePayloadStreamCapability , & ett_h245_DepFECCapability , & ett_h245_FECC_rfc2733 , & ett_h245_T_separateStreamBool , & ett_h245_FECCapability , & ett_h245_Rfc2733Format , & ett_h245_OpenLogicalChannel , & ett_h245_T_forwardLogicalChannelParameters , & ett_h245_OLC_forw_multiplexParameters , & ett_h245_OLC_reverseLogicalChannelParameters , & ett_h245_OLC_rev_multiplexParameters , & ett_h245_NetworkAccessParameters , & ett_h245_T_distribution , & ett_h245_T_networkAddress , & ett_h245_T_t120SetupProcedure , & ett_h245_Q2931Address , & ett_h245_T_address , & ett_h245_V75Parameters , & ett_h245_DataType , & ett_h245_H235Media , & ett_h245_T_mediaType , & ett_h245_MultiplexedStreamParameter , & ett_h245_H222LogicalChannelParameters , & ett_h245_H223LogicalChannelParameters , & ett_h245_T_adaptationLayerType , & ett_h245_Al3 , & ett_h245_H223AL1MParameters , & ett_h245_T_transferMode , & ett_h245_AL1HeaderFEC , & ett_h245_AL1CrcLength , & ett_h245_ArqType , & ett_h245_H223AL2MParameters , & ett_h245_AL2HeaderFEC , & ett_h245_H223AL3MParameters , & ett_h245_T_headerFormat , & ett_h245_AL3CrcLength , & ett_h245_H223AnnexCArqParameters , & ett_h245_T_numberOfRetransmissions , & ett_h245_V76LogicalChannelParameters , & ett_h245_T_suspendResume , & ett_h245_V76LCP_mode , & ett_h245_T_eRM , & ett_h245_T_recovery , & ett_h245_V76HDLCParameters , & ett_h245_CRCLength , & ett_h245_H2250LogicalChannelParameters , & ett_h245_T_mediaPacketization , & ett_h245_RTPPayloadType , & ett_h245_T_payloadDescriptor , & ett_h245_RedundancyEncoding , & ett_h245_T_rtpRedundancyEncoding , & ett_h245_SEQUENCE_OF_RedundancyEncodingElement , & ett_h245_RedundancyEncodingElement , & ett_h245_MultiplePayloadStream , & ett_h245_SEQUENCE_OF_MultiplePayloadStreamElement , & ett_h245_MultiplePayloadStreamElement , & ett_h245_DepFECData , & ett_h245_RFC2733Data , & ett_h245_FECdata_mode , & ett_h245_DepSeparateStream , & ett_h245_T_differentPort , & ett_h245_T_samePort , & ett_h245_FECData , & ett_h245_T_rfc2733 , & ett_h245_T_pktMode , & ett_h245_T_mode_rfc2733sameport , & ett_h245_T_mode_rfc2733diffport , & ett_h245_TransportAddress , & ett_h245_UnicastAddress , & ett_h245_T_iPAddress , & ett_h245_T_iPXAddress , & ett_h245_T_iP6Address , & ett_h245_T_iPSourceRouteAddress , & ett_h245_T_routing , & ett_h245_T_route , & ett_h245_MulticastAddress , & ett_h245_MIPAddress , & ett_h245_MIP6Address , & ett_h245_EncryptionSync , & ett_h245_SEQUENCE_SIZE_1_256_OF_EscrowData , & ett_h245_EscrowData , & ett_h245_OpenLogicalChannelAck , & ett_h245_OLC_ack_reverseLogicalChannelParameters , & ett_h245_T_olc_ack_multiplexParameters , & ett_h245_T_forwardMultiplexAckParameters , & ett_h245_OpenLogicalChannelReject , & ett_h245_OpenLogicalChannelRejectCause , & ett_h245_OpenLogicalChannelConfirm , & ett_h245_H2250LogicalChannelAckParameters , & ett_h245_CloseLogicalChannel , & ett_h245_T_cLC_source , & ett_h245_Clc_reason , & ett_h245_CloseLogicalChannelAck , & ett_h245_RequestChannelClose , & ett_h245_T_reason , & ett_h245_RequestChannelCloseAck , & ett_h245_RequestChannelCloseReject , & ett_h245_RequestChannelCloseRejectCause , & ett_h245_RequestChannelCloseRelease , & ett_h245_MultiplexEntrySend , & ett_h245_SET_SIZE_1_15_OF_MultiplexEntryDescriptor , & ett_h245_MultiplexEntryDescriptor , & ett_h245_T_elementList , & ett_h245_MultiplexElement , & ett_h245_Me_type , & ett_h245_T_subElementList , & ett_h245_ME_repeatCount , & ett_h245_MultiplexEntrySendAck , & ett_h245_SET_SIZE_1_15_OF_MultiplexTableEntryNumber , & ett_h245_MultiplexEntrySendReject , & ett_h245_SET_SIZE_1_15_OF_MultiplexEntryRejectionDescriptions , & ett_h245_MultiplexEntryRejectionDescriptions , & ett_h245_MultiplexEntryRejectionDescriptionsCause , & ett_h245_MultiplexEntrySendRelease , & ett_h245_RequestMultiplexEntry , & ett_h245_RequestMultiplexEntryAck , & ett_h245_RequestMultiplexEntryReject , & ett_h245_SET_SIZE_1_15_OF_RequestMultiplexEntryRejectionDescriptions , & ett_h245_RequestMultiplexEntryRejectionDescriptions , & ett_h245_RequestMultiplexEntryRejectionDescriptionsCause , & ett_h245_RequestMultiplexEntryRelease , & ett_h245_RequestMode , & ett_h245_SEQUENCE_SIZE_1_256_OF_ModeDescription , & ett_h245_RequestModeAck , & ett_h245_Req_mode_ack_response , & ett_h245_RequestModeReject , & ett_h245_RequestModeRejectCause , & ett_h245_RequestModeRelease , & ett_h245_ModeDescription , & ett_h245_ModeElementType , & ett_h245_ModeElement , & ett_h245_H235Mode , & ett_h245_T_mediaMode , & ett_h245_MultiplexedStreamModeParameters , & ett_h245_RedundancyEncodingDTMode , & ett_h245_SEQUENCE_OF_RedundancyEncodingDTModeElement , & ett_h245_RedundancyEncodingDTModeElement , & ett_h245_Re_type , & ett_h245_MultiplePayloadStreamMode , & ett_h245_SEQUENCE_OF_MultiplePayloadStreamElementMode , & ett_h245_MultiplePayloadStreamElementMode , & ett_h245_DepFECMode , & ett_h245_T_rfc2733Mode , & ett_h245_FEC_mode , & ett_h245_FECMode , & ett_h245_H223ModeParameters , & ett_h245_AdaptationLayerType , & ett_h245_V76ModeParameters , & ett_h245_H2250ModeParameters , & ett_h245_RedundancyEncodingMode , & ett_h245_T_secondaryEncodingMode , & ett_h245_VideoMode , & ett_h245_H261VideoMode , & ett_h245_H261Resolution , & ett_h245_H262VideoMode , & ett_h245_T_profileAndLevel , & ett_h245_H263VideoMode , & ett_h245_H263Resolution , & ett_h245_IS11172VideoMode , & ett_h245_AudioMode , & ett_h245_Mode_g7231 , & ett_h245_IS11172AudioMode , & ett_h245_T_audioLayer , & ett_h245_T_audioSampling , & ett_h245_IS11172_multichannelType , & ett_h245_IS13818AudioMode , & ett_h245_IS13818AudioLayer , & ett_h245_IS13818AudioSampling , & ett_h245_IS13818MultichannelType , & ett_h245_G7231AnnexCMode , & ett_h245_VBDMode , & ett_h245_DataMode , & ett_h245_DataModeApplication , & ett_h245_T38faxApp , & ett_h245_EncryptionMode , & ett_h245_RoundTripDelayRequest , & ett_h245_RoundTripDelayResponse , & ett_h245_MaintenanceLoopRequest , & ett_h245_Mlr_type , & ett_h245_MaintenanceLoopAck , & ett_h245_Mla_type , & ett_h245_MaintenanceLoopReject , & ett_h245_Mlrej_type , & ett_h245_MaintenanceLoopRejectCause , & ett_h245_MaintenanceLoopOffCommand , & ett_h245_CommunicationModeCommand , & ett_h245_SET_SIZE_1_256_OF_CommunicationModeTableEntry , & ett_h245_CommunicationModeRequest , & ett_h245_CommunicationModeResponse , & ett_h245_CommunicationModeTableEntry , & ett_h245_T_entryDataType , & ett_h245_ConferenceRequest , & ett_h245_T_requestTerminalCertificate , & ett_h245_CertSelectionCriteria , & ett_h245_Criteria , & ett_h245_TerminalLabel , & ett_h245_ConferenceResponse , & ett_h245_T_mCTerminalIDResponse , & ett_h245_T_terminalIDResponse , & ett_h245_T_conferenceIDResponse , & ett_h245_T_passwordResponse , & ett_h245_SET_SIZE_1_256_OF_TerminalLabel , & ett_h245_T_makeMeChairResponse , & ett_h245_T_extensionAddressResponse , & ett_h245_T_chairTokenOwnerResponse , & ett_h245_T_terminalCertificateResponse , & ett_h245_T_broadcastMyLogicalChannelResponse , & ett_h245_T_makeTerminalBroadcasterResponse , & ett_h245_T_sendThisSourceResponse , & ett_h245_RequestAllTerminalIDsResponse , & ett_h245_SEQUENCE_OF_TerminalInformation , & ett_h245_TerminalInformation , & ett_h245_RemoteMCRequest , & ett_h245_RemoteMCResponse , & ett_h245_T_reject , & ett_h245_MultilinkRequest , & ett_h245_CallInformationReq , & ett_h245_AddConnectionReq , & ett_h245_RemoveConnectionReq , & ett_h245_MaximumHeaderIntervalReq , & ett_h245_T_requestType , & ett_h245_MultilinkResponse , & ett_h245_CallInformationResp , & ett_h245_AddConnectionResp , & ett_h245_T_responseCode , & ett_h245_T_rejected , & ett_h245_RemoveConnectionResp , & ett_h245_MaximumHeaderIntervalResp , & ett_h245_MultilinkIndication , & ett_h245_T_crcDesired , & ett_h245_T_excessiveError , & ett_h245_DialingInformation , & ett_h245_SET_SIZE_1_65535_OF_DialingInformationNumber , & ett_h245_DialingInformationNumber , & ett_h245_SET_SIZE_1_255_OF_DialingInformationNetworkType , & ett_h245_DialingInformationNetworkType , & ett_h245_ConnectionIdentifier , & ett_h245_LogicalChannelRateRequest , & ett_h245_LogicalChannelRateAcknowledge , & ett_h245_LogicalChannelRateReject , & ett_h245_LogicalChannelRateRejectReason , & ett_h245_LogicalChannelRateRelease , & ett_h245_SendTerminalCapabilitySet , & ett_h245_T_specificRequest , & ett_h245_SET_SIZE_1_65535_OF_CapabilityTableEntryNumber , & ett_h245_SET_SIZE_1_256_OF_CapabilityDescriptorNumber , & ett_h245_EncryptionCommand , & ett_h245_T_encryptionAlgorithmID , & ett_h245_FlowControlCommand , & ett_h245_Scope , & ett_h245_Restriction , & ett_h245_EndSessionCommand , & ett_h245_T_gstnOptions , & ett_h245_T_isdnOptions , & ett_h245_ConferenceCommand , & ett_h245_SubstituteConferenceIDCommand , & ett_h245_EncryptionUpdateDirection , & ett_h245_MiscellaneousCommand , & ett_h245_Mc_type , & ett_h245_T_videoFastUpdateGOB , & ett_h245_T_videoFastUpdateMB , & ett_h245_T_progressiveRefinementStart , & ett_h245_T_repeatCount , & ett_h245_T_videoBadMBs , & ett_h245_SEQUENCE_OF_PictureReference , & ett_h245_T_lostPartialPicture , & ett_h245_T_encryptionUpdateCommand , & ett_h245_T_encryptionUpdateAck , & ett_h245_KeyProtectionMethod , & ett_h245_EncryptionUpdateRequest , & ett_h245_PictureReference , & ett_h245_H223MultiplexReconfiguration , & ett_h245_T_h223ModeChange , & ett_h245_T_h223AnnexADoubleFlag , & ett_h245_NewATMVCCommand , & ett_h245_Cmd_aal , & ett_h245_Cmd_aal1 , & ett_h245_Cmd_clockRecovery , & ett_h245_Cmd_errorCorrection , & ett_h245_Cmd_aal5 , & ett_h245_Cmd_multiplex , & ett_h245_Cmd_reverseParameters , & ett_h245_CmdR_multiplex , & ett_h245_MobileMultilinkReconfigurationCommand , & ett_h245_T_status , & ett_h245_FunctionNotUnderstood , & ett_h245_FunctionNotSupported , & ett_h245_FunctionNotSupportedCause , & ett_h245_ConferenceIndication , & ett_h245_TerminalYouAreSeeingInSubPictureNumber , & ett_h245_VideoIndicateCompose , & ett_h245_MiscellaneousIndication , & ett_h245_Mi_type , & ett_h245_T_videoNotDecodedMBs , & ett_h245_JitterIndication , & ett_h245_H223SkewIndication , & ett_h245_H2250MaximumSkewIndication , & ett_h245_MCLocationIndication , & ett_h245_VendorIdentification , & ett_h245_NewATMVCIndication , & ett_h245_Ind_aal , & ett_h245_Ind_aal1 , & ett_h245_Ind_clockRecovery , & ett_h245_Ind_errorCorrection , & ett_h245_Ind_aal5 , & ett_h245_Ind_multiplex , & ett_h245_Ind_reverseParameters , & ett_h245_IndR_multiplex , & ett_h245_Params , & ett_h245_UserInputIndication , & ett_h245_T_userInputSupportIndication , & ett_h245_T_signal , & ett_h245_T_rtp , & ett_h245_T_signalUpdate , & ett_h245_Si_rtp , & ett_h245_T_extendedAlphanumeric , & ett_h245_EncryptedAlphanumeric , & ett_h245_FlowControlIndication , & ett_h245_MobileMultilinkReconfigurationIndication , # line 488 \"../../asn1/h245/packet-h245-template.c\" }\n ;\n module_t * h245_module ;\n proto_h245 = proto_register_protocol ( PNAME , PSNAME , PFNAME ) ;\n register_init_routine ( h245_init ) ;\n proto_register_field_array ( proto_h245 , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n h245_module = prefs_register_protocol ( proto_h245 , NULL ) ;\n prefs_register_bool_preference ( h245_module , \"reassembly\" , \"Reassemble H.245 messages spanning multiple TCP segments\" , \"Whether the H.245 dissector should reassemble messages spanning multiple TCP segments.\" \" To use this option, you must also enable \\\"Allow subdissectors to reassemble TCP streams\\\" in the TCP protocol settings.\" , & h245_reassembly ) ;\n prefs_register_bool_preference ( h245_module , \"shorttypes\" , \"Show short message types\" , \"Whether the dissector should show short names or the long names from the standard\" , & h245_shorttypes ) ;\n register_dissector ( \"h245dg\" , dissect_h245_h245 , proto_h245 ) ;\n register_dissector ( \"h245\" , dissect_h245 , proto_h245 ) ;\n nsp_object_dissector_table = register_dissector_table ( \"h245.nsp.object\" , \"H.245 NonStandardParameter (object)\" , FT_STRING , BASE_NONE ) ;\n nsp_h221_dissector_table = register_dissector_table ( \"h245.nsp.h221\" , \"H.245 NonStandardParameter (h221)\" , FT_UINT32 , BASE_HEX ) ;\n gef_name_dissector_table = register_dissector_table ( \"h245.gef.name\" , \"H.245 Generic Extensible Framework (names)\" , FT_STRING , BASE_NONE ) ;\n gef_content_dissector_table = register_dissector_table ( \"h245.gef.content\" , \"H.245 Generic Extensible Framework\" , FT_STRING , BASE_NONE ) ;\n h245_tap = register_tap ( \"h245\" ) ;\n h245dg_tap = register_tap ( \"h245dg\" ) ;\n oid_add_from_string ( \"h239ControlCapability\" , \"0.0.8.239.1.1\" ) ;\n oid_add_from_string ( \"h239ExtendedVideoCapability\" , \"0.0.8.239.1.2\" ) ;\n oid_add_from_string ( \"generic-message\" , \"0.0.8.239.2\" ) ;\n oid_add_from_string ( \"h245 version 3\" , \"0.0.8.245.0.3\" ) ;\n oid_add_from_string ( \"h245 version 4\" , \"0.0.8.245.0.4\" ) ;\n oid_add_from_string ( \"h245 version 5\" , \"0.0.8.245.0.5\" ) ;\n oid_add_from_string ( \"h245 version 6\" , \"0.0.8.245.0.6\" ) ;\n oid_add_from_string ( \"h245 version 7\" , \"0.0.8.245.0.7\" ) ;\n oid_add_from_string ( \"h245 version 8\" , \"0.0.8.245.0.8\" ) ;\n oid_add_from_string ( \"h245 version 9\" , \"0.0.8.245.0.9\" ) ;\n oid_add_from_string ( \"h245 version 10\" , \"0.0.8.245.0.10\" ) ;\n oid_add_from_string ( \"h245 version 11\" , \"0.0.8.245.0.11\" ) ;\n oid_add_from_string ( \"h245 version 12\" , \"0.0.8.245.0.12\" ) ;\n oid_add_from_string ( \"h245 version 13\" , \"0.0.8.245.0.13\" ) ;\n oid_add_from_string ( \"ISO/IEC 14496-2 MPEG-4 video\" , \"0.0.8.245.1.0.0\" ) ;\n oid_add_from_string ( \"ISO/IEC 14496-3 MPEG-4 audio\" , \"0.0.8.245.1.1.0\" ) ;\n oid_add_from_string ( \"AMR\" , \"0.0.8.245.1.1.1\" ) ;\n oid_add_from_string ( \"acelp\" , \"0.0.8.245.1.1.2\" ) ;\n oid_add_from_string ( \"us1\" , \"0.0.8.245.1.1.3\" ) ;\n oid_add_from_string ( \"is127evrc\" , \"0.0.8.245.1.1.4\" ) ;\n oid_add_from_string ( \"ISO/IEC 13818-7\" , \"0.0.8.245.1.1.5\" ) ;\n oid_add_from_string ( \"rfc3389\" , \"0.0.8.245.1.1.6\" ) ;\n oid_add_from_string ( \"L-16\" , \"0.0.8.245.1.1.7\" ) ;\n oid_add_from_string ( \"bounded-audio-stream\" , \"0.0.8.245.1.1.8\" ) ;\n oid_add_from_string ( \"AMR-NB\" , \"0.0.8.245.1.1.9\" ) ;\n oid_add_from_string ( \"AMR-WB\" , \"0.0.8.245.1.1.10\" ) ;\n oid_add_from_string ( \"ilbc\" , \"0.0.8.245.1.1.11\" ) ;\n oid_add_from_string ( \"ISO/IEC 14496-1\" , \"0.0.8.245.1.2.0\" ) ;\n oid_add_from_string ( \"Nx64\" , \"0.0.8.245.1.2.1\" ) ;\n oid_add_from_string ( \"logical-channel-bit-ratemanagement\" , \"0.0.8.245.1.3.0\" ) ;\n oid_add_from_string ( \"h264 generic-capabilities\" , \"0.0.8.241.0.0.1\" ) ;\n oid_add_from_string ( \"iPpacketization_h241AnnexA(single NAL unit mode)\" , \"0.0.8.241.0.0.0.0\" ) ;\n oid_add_from_string ( \"iPpacketization_RFC3984NonInterleaved\" , \"0.0.8.241.0.0.0.1\" ) ;\n oid_add_from_string ( \"iPpacketization_RFC3984Interleaved\" , \"0.0.8.241.0.0.0.2\" ) ;\n }"}
{"idx": 2684, "target": 0, "func": "void hb_set_add ( hb_set_t * set , hb_codepoint_t codepoint ) {\n set -> add ( codepoint ) ;\n }"}
{"idx": 2685, "target": 0, "func": "int TSUrlLengthGet ( TSMBuffer bufp , TSMLoc obj ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_url_handle ( obj ) == TS_SUCCESS ) ;\n URLImpl * url_impl = ( URLImpl * ) obj ;\n return url_length_get ( url_impl ) ;\n }"}
{"idx": 2686, "target": 0, "func": "TEST_F ( BrowsingDataRemoverImplTest , RemoveQuotaManagedProtectedOrigins ) {\n # if BUILDFLAG ( ENABLE_EXTENSIONS ) MockExtensionSpecialStoragePolicy * policy = CreateMockPolicy ( ) ;\n policy -> AddProtected ( kOrigin1 . GetOrigin ( ) ) ;\n # endif BlockUntilBrowsingDataRemoved ( base : : Time ( ) , base : : Time : : Max ( ) , BrowsingDataRemover : : REMOVE_APPCACHE | BrowsingDataRemover : : REMOVE_SERVICE_WORKERS | BrowsingDataRemover : : REMOVE_CACHE_STORAGE | BrowsingDataRemover : : REMOVE_FILE_SYSTEMS | BrowsingDataRemover : : REMOVE_INDEXEDDB | BrowsingDataRemover : : REMOVE_WEBSQL , true ) ;\n EXPECT_EQ ( BrowsingDataRemover : : REMOVE_APPCACHE | BrowsingDataRemover : : REMOVE_SERVICE_WORKERS | BrowsingDataRemover : : REMOVE_CACHE_STORAGE | BrowsingDataRemover : : REMOVE_FILE_SYSTEMS | BrowsingDataRemover : : REMOVE_INDEXEDDB | BrowsingDataRemover : : REMOVE_WEBSQL , GetRemovalMask ( ) ) ;\n EXPECT_EQ ( BrowsingDataHelper : : PROTECTED_WEB | BrowsingDataHelper : : UNPROTECTED_WEB , GetOriginTypeMask ( ) ) ;\n StoragePartitionRemovalData removal_data = GetStoragePartitionRemovalData ( ) ;\n EXPECT_EQ ( removal_data . remove_mask , StoragePartition : : REMOVE_DATA_MASK_FILE_SYSTEMS | StoragePartition : : REMOVE_DATA_MASK_WEBSQL | StoragePartition : : REMOVE_DATA_MASK_APPCACHE | StoragePartition : : REMOVE_DATA_MASK_SERVICE_WORKERS | StoragePartition : : REMOVE_DATA_MASK_CACHE_STORAGE | StoragePartition : : REMOVE_DATA_MASK_INDEXEDDB ) ;\n EXPECT_EQ ( removal_data . quota_storage_remove_mask , StoragePartition : : QUOTA_MANAGED_STORAGE_MASK_ALL ) ;\n EXPECT_TRUE ( removal_data . origin_matcher . Run ( kOrigin1 , mock_policy ( ) ) ) ;\n EXPECT_TRUE ( removal_data . origin_matcher . Run ( kOrigin2 , mock_policy ( ) ) ) ;\n EXPECT_TRUE ( removal_data . origin_matcher . Run ( kOrigin3 , mock_policy ( ) ) ) ;\n }"}
{"idx": 2687, "target": 0, "func": "xmlAttrPtr xsltAttrListTemplateProcess ( xsltTransformContextPtr ctxt , xmlNodePtr target , xmlAttrPtr attrs ) {\n xmlAttrPtr attr , copy , last ;\n xmlNodePtr oldInsert , text ;\n xmlNsPtr origNs = NULL , copyNs = NULL ;\n const xmlChar * value ;\n xmlChar * valueAVT ;\n if ( ( ctxt == NULL ) || ( target == NULL ) || ( attrs == NULL ) || ( target -> type != XML_ELEMENT_NODE ) ) return ( NULL ) ;\n oldInsert = ctxt -> insert ;\n ctxt -> insert = target ;\n if ( target -> properties ) {\n last = target -> properties ;\n while ( last -> next != NULL ) last = last -> next ;\n }\n else {\n last = NULL ;\n }\n attr = attrs ;\n do {\n # ifdef XSLT_REFACTORED if ( attr -> psvi == xsltXSLTAttrMarker ) {\n goto next_attribute ;\n }\n # else if ( ( attr -> ns != NULL ) && xmlStrEqual ( attr -> ns -> href , XSLT_NAMESPACE ) ) {\n goto next_attribute ;\n }\n # endif if ( attr -> children != NULL ) {\n if ( ( attr -> children -> type != XML_TEXT_NODE ) || ( attr -> children -> next != NULL ) ) {\n xsltTransformError ( ctxt , NULL , attr -> parent , \"Internal error: The children of an attribute node of a \" \"literal result element are not in the expected form.\\n\" ) ;\n goto error ;\n }\n value = attr -> children -> content ;\n if ( value == NULL ) value = xmlDictLookup ( ctxt -> dict , BAD_CAST \"\" , 0 ) ;\n }\n else value = xmlDictLookup ( ctxt -> dict , BAD_CAST \"\" , 0 ) ;\n copy = xmlNewDocProp ( target -> doc , attr -> name , NULL ) ;\n if ( copy == NULL ) {\n if ( attr -> ns ) {\n xsltTransformError ( ctxt , NULL , attr -> parent , \"Internal error: Failed to create attribute '{\n%s}\n%s'.\\n\" , attr -> ns -> href , attr -> name ) ;\n }\n else {\n xsltTransformError ( ctxt , NULL , attr -> parent , \"Internal error: Failed to create attribute '%s'.\\n\" , attr -> name ) ;\n }\n goto error ;\n }\n copy -> parent = target ;\n if ( last == NULL ) {\n target -> properties = copy ;\n last = copy ;\n }\n else {\n last -> next = copy ;\n copy -> prev = last ;\n last = copy ;\n }\n if ( attr -> ns != origNs ) {\n origNs = attr -> ns ;\n if ( attr -> ns != NULL ) {\n # ifdef XSLT_REFACTORED copyNs = xsltGetSpecialNamespace ( ctxt , attr -> parent , attr -> ns -> href , attr -> ns -> prefix , target ) ;\n # else copyNs = xsltGetNamespace ( ctxt , attr -> parent , attr -> ns , target ) ;\n # endif if ( copyNs == NULL ) goto error ;\n }\n else copyNs = NULL ;\n }\n copy -> ns = copyNs ;\n text = xmlNewText ( NULL ) ;\n if ( text != NULL ) {\n copy -> last = copy -> children = text ;\n text -> parent = ( xmlNodePtr ) copy ;\n text -> doc = copy -> doc ;\n if ( attr -> psvi != NULL ) {\n valueAVT = xsltEvalAVT ( ctxt , attr -> psvi , attr -> parent ) ;\n if ( valueAVT == NULL ) {\n if ( attr -> ns ) {\n xsltTransformError ( ctxt , NULL , attr -> parent , \"Internal error: Failed to evaluate the AVT \" \"of attribute '{\n%s}\n%s'.\\n\" , attr -> ns -> href , attr -> name ) ;\n }\n else {\n xsltTransformError ( ctxt , NULL , attr -> parent , \"Internal error: Failed to evaluate the AVT \" \"of attribute '%s'.\\n\" , attr -> name ) ;\n }\n text -> content = xmlStrdup ( BAD_CAST \"\" ) ;\n goto error ;\n }\n else {\n text -> content = valueAVT ;\n }\n }\n else if ( ( ctxt -> internalized ) && ( target -> doc != NULL ) && ( target -> doc -> dict == ctxt -> dict ) && xmlDictOwns ( ctxt -> dict , value ) ) {\n text -> content = ( xmlChar * ) value ;\n }\n else {\n text -> content = xmlStrdup ( value ) ;\n }\n if ( ( copy != NULL ) && ( text != NULL ) && ( xmlIsID ( copy -> doc , copy -> parent , copy ) ) ) xmlAddID ( NULL , copy -> doc , text -> content , copy ) ;\n }\n next_attribute : attr = attr -> next ;\n }\n while ( attr != NULL ) ;\n attr = attrs ;\n do {\n # ifdef XSLT_REFACTORED if ( ( attr -> psvi == xsltXSLTAttrMarker ) && xmlStrEqual ( attr -> name , ( const xmlChar * ) \"use-attribute-sets\" ) ) {\n xsltApplyAttributeSet ( ctxt , ctxt -> node , ( xmlNodePtr ) attr , NULL ) ;\n }\n # else if ( ( attr -> ns != NULL ) && xmlStrEqual ( attr -> name , ( const xmlChar * ) \"use-attribute-sets\" ) && xmlStrEqual ( attr -> ns -> href , XSLT_NAMESPACE ) ) {\n xsltApplyAttributeSet ( ctxt , ctxt -> node , ( xmlNodePtr ) attr , NULL ) ;\n }\n # endif attr = attr -> next ;\n }\n while ( attr != NULL ) ;\n ctxt -> insert = oldInsert ;\n return ( target -> properties ) ;\n error : ctxt -> insert = oldInsert ;\n return ( NULL ) ;\n }"}
{"idx": 2688, "target": 0, "func": "void printEachBackward ( UBreakIterator * boundary , UChar * str ) {\n int32_t start ;\n int32_t end = ubrk_last ( boundary ) ;\n for ( start = ubrk_previous ( boundary ) ;\n start != UBRK_DONE ;\n end = start , start = ubrk_previous ( boundary ) ) {\n printTextRange ( str , start , end ) ;\n }\n }"}
{"idx": 2689, "target": 0, "func": "static afs_int32 nameToID ( struct rx_call * call , namelist * aname , idlist * aid ) {\n afs_int32 code ;\n struct ubik_trans * tt ;\n afs_int32 i ;\n int size ;\n int count = 0 ;\n aid -> idlist_len = 0 ;\n aid -> idlist_val = NULL ;\n size = aname -> namelist_len ;\n if ( size == 0 ) return 0 ;\n if ( size < 0 ) return PRTOOMANY ;\n aid -> idlist_val = ( afs_int32 * ) malloc ( size * sizeof ( afs_int32 ) ) ;\n if ( ! aid -> idlist_val ) return PRNOMEM ;\n code = Initdb ( ) ;\n if ( code != PRSUCCESS ) return code ;\n code = ubik_BeginTransReadAny ( dbase , UBIK_READTRANS , & tt ) ;\n if ( code ) return code ;\n code = ubik_SetLock ( tt , 1 , 1 , LOCKREAD ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = read_DbHeader ( tt ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n for ( i = 0 ;\n i < aname -> namelist_len ;\n i ++ ) {\n char vname [ 256 ] ;\n char * nameinst , * cell ;\n strncpy ( vname , aname -> namelist_val [ i ] , sizeof ( vname ) ) ;\n vname [ sizeof ( vname ) - 1 ] = '\\0' ;\n nameinst = vname ;\n cell = strchr ( vname , '@' ) ;\n if ( cell ) {\n * cell = '\\0' ;\n cell ++ ;\n }\n if ( cell && afs_is_foreign_ticket_name ( nameinst , NULL , cell , pr_realmName ) ) code = NameToID ( tt , aname -> namelist_val [ i ] , & aid -> idlist_val [ i ] ) ;\n else code = NameToID ( tt , nameinst , & aid -> idlist_val [ i ] ) ;\n if ( code != PRSUCCESS ) aid -> idlist_val [ i ] = ANONYMOUSID ;\n osi_audit ( PTS_NmToIdEvent , code , AUD_STR , aname -> namelist_val [ i ] , AUD_ID , aid -> idlist_val [ i ] , AUD_END ) ;\n ViceLog ( 125 , ( \"PTS_NameToID: code %d aname %s aid %d\\n\" , code , aname -> namelist_val [ i ] , aid -> idlist_val [ i ] ) ) ;\n if ( count ++ > 50 ) {\n # ifndef AFS_PTHREAD_ENV IOMGR_Poll ( ) ;\n # endif count = 0 ;\n }\n }\n aid -> idlist_len = aname -> namelist_len ;\n code = ubik_EndTrans ( tt ) ;\n if ( code ) return code ;\n return PRSUCCESS ;\n }"}
{"idx": 2690, "target": 0, "func": "static void dlmopen_doit ( void * a ) {\n struct dlmopen_args * args = ( struct dlmopen_args * ) a ;\n args -> map = _dl_open ( args -> fname , ( RTLD_LAZY | __RTLD_DLOPEN | __RTLD_AUDIT | __RTLD_SECURE ) , dl_main , LM_ID_NEWLM , _dl_argc , _dl_argv , __environ ) ;\n }"}
{"idx": 2691, "target": 0, "func": "static cmsBool ReadOffsetArray ( cmsIOHANDLER * io , _cmsDICarray * a , cmsUInt32Number Count , cmsUInt32Number Length , cmsUInt32Number BaseOffset ) {\n cmsUInt32Number i ;\n for ( i = 0 ;\n i < Count ;\n i ++ ) {\n if ( ! ReadOneElem ( io , & a -> Name , i , BaseOffset ) ) return FALSE ;\n if ( ! ReadOneElem ( io , & a -> Value , i , BaseOffset ) ) return FALSE ;\n if ( Length > 16 ) {\n if ( ! ReadOneElem ( io , & a -> DisplayName , i , BaseOffset ) ) return FALSE ;\n }\n if ( Length > 24 ) {\n if ( ! ReadOneElem ( io , & a -> DisplayValue , i , BaseOffset ) ) return FALSE ;\n }\n }\n return TRUE ;\n }"}
{"idx": 2692, "target": 0, "func": "static void check_new_cluster_is_empty ( void ) {\n int dbnum ;\n for ( dbnum = 0 ;\n dbnum < new_cluster . dbarr . ndbs ;\n dbnum ++ ) {\n int relnum ;\n RelInfoArr * rel_arr = & new_cluster . dbarr . dbs [ dbnum ] . rel_arr ;\n for ( relnum = 0 ;\n relnum < rel_arr -> nrels ;\n relnum ++ ) {\n if ( strcmp ( rel_arr -> rels [ relnum ] . nspname , \"pg_catalog\" ) != 0 ) pg_fatal ( \"New cluster database \\\"%s\\\" is not empty\\n\" , new_cluster . dbarr . dbs [ dbnum ] . db_name ) ;\n }\n }\n }"}
{"idx": 2693, "target": 0, "func": "void hb_ot_tags_from_script ( hb_script_t script , hb_tag_t * script_tag_1 , hb_tag_t * script_tag_2 ) {\n hb_tag_t new_tag ;\n * script_tag_2 = HB_OT_TAG_DEFAULT_SCRIPT ;\n * script_tag_1 = hb_ot_old_tag_from_script ( script ) ;\n new_tag = hb_ot_new_tag_from_script ( script ) ;\n if ( unlikely ( new_tag != HB_OT_TAG_DEFAULT_SCRIPT ) ) {\n * script_tag_2 = * script_tag_1 ;\n * script_tag_1 = new_tag ;\n }\n }"}
{"idx": 2694, "target": 0, "func": "static zval * row_prop_read ( zval * object , zval * member , int type , const zend_literal * key TSRMLS_DC ) {\n zval * return_value ;\n pdo_stmt_t * stmt = ( pdo_stmt_t * ) zend_object_store_get_object ( object TSRMLS_CC ) ;\n int colno = - 1 ;\n MAKE_STD_ZVAL ( return_value ) ;\n RETVAL_NULL ( ) ;\n if ( stmt ) {\n if ( Z_TYPE_P ( member ) == IS_LONG ) {\n if ( Z_LVAL_P ( member ) >= 0 && Z_LVAL_P ( member ) < stmt -> column_count ) {\n fetch_value ( stmt , return_value , Z_LVAL_P ( member ) , NULL TSRMLS_CC ) ;\n }\n }\n else {\n convert_to_string ( member ) ;\n for ( colno = 0 ;\n colno < stmt -> column_count ;\n colno ++ ) {\n if ( strcmp ( stmt -> columns [ colno ] . name , Z_STRVAL_P ( member ) ) == 0 ) {\n fetch_value ( stmt , return_value , colno , NULL TSRMLS_CC ) ;\n Z_SET_REFCOUNT_P ( return_value , 0 ) ;\n Z_UNSET_ISREF_P ( return_value ) ;\n return return_value ;\n }\n }\n if ( strcmp ( Z_STRVAL_P ( member ) , \"queryString\" ) == 0 ) {\n zval_ptr_dtor ( & return_value ) ;\n return std_object_handlers . read_property ( object , member , type , key TSRMLS_CC ) ;\n }\n }\n }\n Z_SET_REFCOUNT_P ( return_value , 0 ) ;\n Z_UNSET_ISREF_P ( return_value ) ;\n return return_value ;\n }"}
{"idx": 2695, "target": 0, "func": "static void malta_fpga_write ( void * opaque , hwaddr addr , uint64_t val , unsigned size ) {\n MaltaFPGAState * s = opaque ;\n uint32_t saddr ;\n saddr = ( addr & 0xfffff ) ;\n switch ( saddr ) {\n case 0x00200 : break ;\n case 0x00210 : break ;\n case 0x00408 : s -> leds = val & 0xff ;\n malta_fpga_update_display ( s ) ;\n break ;\n case 0x00410 : snprintf ( s -> display_text , 9 , \"%08X\" , ( uint32_t ) val ) ;\n malta_fpga_update_display ( s ) ;\n break ;\n case 0x00418 : case 0x00420 : case 0x00428 : case 0x00430 : case 0x00438 : case 0x00440 : case 0x00448 : case 0x00450 : s -> display_text [ ( saddr - 0x00418 ) >> 3 ] = ( char ) val ;\n malta_fpga_update_display ( s ) ;\n break ;\n case 0x00500 : if ( val == 0x42 ) qemu_system_reset_request ( ) ;\n break ;\n case 0x00508 : s -> brk = val & 0xff ;\n break ;\n case 0x00a00 : s -> gpout = val & 0xff ;\n break ;\n case 0x00b08 : s -> i2coe = val & 0x03 ;\n break ;\n case 0x00b10 : eeprom24c0x_write ( val & 0x02 , val & 0x01 ) ;\n s -> i2cout = val ;\n break ;\n case 0x00b18 : s -> i2csel = val & 0x01 ;\n break ;\n default : # if 0 printf ( \"malta_fpga_write: Bad register offset 0x\" TARGET_FMT_lx \"\\n\" , addr ) ;\n # endif break ;\n }\n }"}
{"idx": 2696, "target": 0, "func": "static int dissect_nlm_lock ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , int version , rpc_call_info_value * rpc_call ) {\n if ( nlm_match_msgres ) {\n if ( rpc_call -> proc == 7 ) {\n if ( ( ! pinfo -> fd -> flags . visited ) ) {\n nlm_register_unmatched_msg ( pinfo , tvb , offset ) ;\n }\n else {\n nlm_print_msgres_request ( pinfo , tree , tvb ) ;\n }\n if ( nfs_fhandle_reqrep_matching ) {\n nlm_match_fhandle_request ( pinfo , tree ) ;\n }\n }\n }\n offset = dissect_rpc_data ( tvb , tree , hf_nlm_cookie , offset ) ;\n offset = dissect_rpc_bool ( tvb , tree , hf_nlm_block , offset ) ;\n offset = dissect_rpc_bool ( tvb , tree , hf_nlm_exclusive , offset ) ;\n offset = dissect_lock ( tvb , pinfo , tree , version , offset , rpc_call ) ;\n offset = dissect_rpc_bool ( tvb , tree , hf_nlm_reclaim , offset ) ;\n offset = dissect_rpc_uint32 ( tvb , tree , hf_nlm_state , offset ) ;\n return offset ;\n }"}
{"idx": 2697, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize ) ;\n DECL_PIOCTL ( PGetCacheSize ) ;\n DECL_PIOCTL ( PRemoveCallBack ) ;\n DECL_PIOCTL ( PNewCell ) ;\n DECL_PIOCTL ( PNewAlias ) ;\n DECL_PIOCTL ( PListCells ) ;\n DECL_PIOCTL ( PListAliases ) ;\n DECL_PIOCTL ( PRemoveMount ) ;\n DECL_PIOCTL ( PGetCellStatus ) ;\n DECL_PIOCTL ( PSetCellStatus ) ;\n DECL_PIOCTL ( PFlushVolumeData ) ;\n DECL_PIOCTL ( PFlushAllVolumeData ) ;\n DECL_PIOCTL ( PGetVnodeXStatus )"}
{"idx": 2698, "target": 0, "func": "static uint32_t e1000e_rss_get_hash_type ( E1000ECore * core , struct NetRxPkt * pkt ) {\n bool isip4 , isip6 , isudp , istcp ;\n assert ( e1000e_rss_enabled ( core ) ) ;\n net_rx_pkt_get_protocols ( pkt , & isip4 , & isip6 , & isudp , & istcp ) ;\n if ( isip4 ) {\n bool fragment = net_rx_pkt_get_ip4_info ( pkt ) -> fragment ;\n trace_e1000e_rx_rss_ip4 ( fragment , istcp , core -> mac [ MRQC ] , E1000_MRQC_EN_TCPIPV4 ( core -> mac [ MRQC ] ) , E1000_MRQC_EN_IPV4 ( core -> mac [ MRQC ] ) ) ;\n if ( ! fragment && istcp && E1000_MRQC_EN_TCPIPV4 ( core -> mac [ MRQC ] ) ) {\n return E1000_MRQ_RSS_TYPE_IPV4TCP ;\n }\n if ( E1000_MRQC_EN_IPV4 ( core -> mac [ MRQC ] ) ) {\n return E1000_MRQ_RSS_TYPE_IPV4 ;\n }\n }\n else if ( isip6 ) {\n eth_ip6_hdr_info * ip6info = net_rx_pkt_get_ip6_info ( pkt ) ;\n bool ex_dis = core -> mac [ RFCTL ] & E1000_RFCTL_IPV6_EX_DIS ;\n bool new_ex_dis = core -> mac [ RFCTL ] & E1000_RFCTL_NEW_IPV6_EXT_DIS ;\n trace_e1000e_rx_rss_ip6_rfctl ( core -> mac [ RFCTL ] ) ;\n trace_e1000e_rx_rss_ip6 ( ex_dis , new_ex_dis , istcp , ip6info -> has_ext_hdrs , ip6info -> rss_ex_dst_valid , ip6info -> rss_ex_src_valid , core -> mac [ MRQC ] , E1000_MRQC_EN_TCPIPV6 ( core -> mac [ MRQC ] ) , E1000_MRQC_EN_IPV6EX ( core -> mac [ MRQC ] ) , E1000_MRQC_EN_IPV6 ( core -> mac [ MRQC ] ) ) ;\n if ( ( ! ex_dis || ! ip6info -> has_ext_hdrs ) && ( ! new_ex_dis || ! ( ip6info -> rss_ex_dst_valid || ip6info -> rss_ex_src_valid ) ) ) {\n if ( istcp && ! ip6info -> fragment && E1000_MRQC_EN_TCPIPV6 ( core -> mac [ MRQC ] ) ) {\n return E1000_MRQ_RSS_TYPE_IPV6TCP ;\n }\n if ( E1000_MRQC_EN_IPV6EX ( core -> mac [ MRQC ] ) ) {\n return E1000_MRQ_RSS_TYPE_IPV6EX ;\n }\n }\n if ( E1000_MRQC_EN_IPV6 ( core -> mac [ MRQC ] ) ) {\n return E1000_MRQ_RSS_TYPE_IPV6 ;\n }\n }\n return E1000_MRQ_RSS_TYPE_NONE ;\n }"}
{"idx": 2699, "target": 0, "func": "static gint handle_message_field ( tvbuff_t * tvb , packet_info * pinfo , proto_item * header_tree , guint encoding , gint offset , guint8 * * signature , guint8 * signature_length ) {\n proto_tree * field_tree ;\n proto_item * item , * field_item ;\n guint8 field_code ;\n guint8 type_id ;\n gboolean is_reply_to = FALSE ;\n gint starting_offset = offset ;\n gint padding_start ;\n field_code = tvb_get_guint8 ( tvb , offset ) ;\n if ( HDR_REPLY_SERIAL == field_code ) {\n is_reply_to = TRUE ;\n }\n field_item = proto_tree_add_item ( header_tree , hf_alljoyn_mess_header_field , tvb , offset , 1 , ENC_NA ) ;\n field_tree = proto_item_add_subtree ( field_item , ett_alljoyn_mess_header_field ) ;\n proto_tree_add_item ( field_tree , hf_alljoyn_mess_body_header_fieldcode , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n handle_message_header_expected_byte ( tvb , offset , field_tree , 0x01 ) ;\n offset += 1 ;\n item = proto_tree_add_item ( field_tree , hf_alljoyn_mess_body_header_typeid , tvb , offset , 1 , ENC_NA ) ;\n type_id = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n handle_message_header_expected_byte ( tvb , offset , field_tree , 0x00 ) ;\n offset += 1 ;\n offset = parse_arg ( tvb , pinfo , item , encoding , offset , field_tree , is_reply_to , type_id , field_code , signature , signature_length , starting_offset ) ;\n padding_start = offset ;\n offset = round_to_8byte ( offset , starting_offset ) ;\n add_padding_item ( padding_start , offset , tvb , field_tree ) ;\n if ( offset < 0 || offset > ( gint ) tvb_reported_length ( tvb ) ) {\n offset = ( gint ) tvb_reported_length ( tvb ) ;\n }\n proto_item_set_end ( field_tree , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 2700, "target": 0, "func": "static uint32_t U_CALLCONV lenient8IteratorGetState ( const UCharIterator * iter ) {\n uint32_t state = ( uint32_t ) ( iter -> start << 1 ) ;\n if ( iter -> reservedField != 0 ) {\n state |= 1 ;\n }\n return state ;\n }"}
{"idx": 2701, "target": 0, "func": "int EVP_CipherFinal ( EVP_CIPHER_CTX * ctx , unsigned char * out , int * outl ) {\n if ( ctx -> encrypt ) return EVP_EncryptFinal ( ctx , out , outl ) ;\n else return EVP_DecryptFinal ( ctx , out , outl ) ;\n }"}
{"idx": 2702, "target": 1, "func": "int main ( ) {\n pthread_key_create ( & threadKey , nullptr ) ;\n Utils : : init ( & Debug , & Error ) ;\n {\n cout << endl << \"===================== Test 1\" << endl ;\n Utils : : HeaderValueList whitelistCookies ;\n whitelistCookies . push_back ( \"c1\" ) ;\n whitelistCookies . push_back ( \"c2\" ) ;\n whitelistCookies . push_back ( \"c3\" ) ;\n whitelistCookies . push_back ( \"c4\" ) ;\n whitelistCookies . push_back ( \"c5\" ) ;\n Variables esi_vars ( \"vars_test\" , & Debug , & Error , whitelistCookies ) ;\n const char * strings [ ] = {\n \"Cookie\" , \";\n c1=v1;\n c2=v2;\n ;\n c3;\n c4=;\n c5=v5 \" , \"Host\" , \"example.com\" , \"Referer\" , \"google.com\" , \"Blah\" , \"Blah\" , \"Accept-Language\" , \"en-gb , en-us , ,\" , \"Accept-Language\" , \"ka-in\" , nullptr }\n ;\n HttpHeaderList headers ;\n addToHeaderList ( strings , headers ) ;\n esi_vars . populate ( headers ) ;\n esi_vars . populate ( \"a=b&c=d&e=f\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nc1}\n\" ) == \"v1\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nc2}\n\" ) == \"v2\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nc3}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nc4}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nc5}\n\" ) == \"v5\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nc2}\n\" ) != \"v1\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nC1}\n\" ) != \"v1\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_USER_AGENT\" ) . size ( ) == 0 ) ;\n assert ( esi_vars . getValue ( \"BLAH\" ) . size ( ) == 0 ) ;\n assert ( esi_vars . getValue ( \"HTTP_HOST\" ) == \"example.com\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_host\" ) == \"example.com\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_REFERER\" ) == \"google.com\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_BLAH\" ) . size ( ) == 0 ) ;\n assert ( esi_vars . getValue ( \"HTTP_ACCEPT_LANGUAGE{\nen-gb}\n\" ) == \"true\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_ACCEPT_LANGUAGE{\nen-us}\n\" ) == \"true\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_ACCEPT_LANGUAGE{\nes-us}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) == \"a=b&c=d&e=f\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\na}\n\" ) == \"b\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\ne}\n\" ) == \"f\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\nz}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nc1\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIEc1\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIEc1}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"{\nc1}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nc1{\nc2}\n}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nc1{\nc2}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nc1c}\n2}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nc1c2}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"{\nc1c2}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\n}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nc1}\nc\" ) == \"\" ) ;\n esi_vars . populate ( HttpHeader ( \"hosT\" , - 1 , \"localhost\" , - 1 ) ) ;\n assert ( esi_vars . getValue ( \"HTTP_HOST\" ) == \"localhost\" ) ;\n esi_vars . populate ( HttpHeader ( \"User-agent\" , - 1 , \"Mozilla/5.0 (Windows;\n U;\n Windows NT 5.1;\n en-US;\n rv:1.9.1.6) \" \"Gecko/20091201 Firefox/3.5.6 (.NETgecko CLR 3.5.30729)\" , - 1 ) ) ;\n assert ( esi_vars . getValue ( \"HTTP_ACCEPT_LANGUAGE{\nka-in}\n\" ) == \"true\" ) ;\n esi_vars . clear ( ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\na}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nc1}\n\" ) == \"\" ) ;\n esi_vars . populate ( headers ) ;\n esi_vars . populate ( \"a=b&c=d&e=f\" ) ;\n Expression esi_expr ( \"vars_test\" , & Debug , & Error , esi_vars ) ;\n assert ( esi_expr . expand ( nullptr ) == \"\" ) ;\n assert ( esi_expr . expand ( \"\" ) == \"\" ) ;\n assert ( esi_expr . expand ( \"blah\" ) == \"blah\" ) ;\n assert ( esi_expr . expand ( \"blah$(HTTP_HOST\" ) == \"\" ) ;\n assert ( esi_expr . expand ( \"blah$A(HTTP_HOST)\" ) == \"blah$A(HTTP_HOST)\" ) ;\n assert ( esi_expr . expand ( \"blah$()\" ) == \"blah\" ) ;\n assert ( esi_expr . expand ( \"blah-$(HTTP_HOST)\" ) == \"blah-example.com\" ) ;\n assert ( esi_expr . expand ( \"blah-$(HTTP_REFERER)\" ) == \"blah-google.com\" ) ;\n assert ( esi_expr . expand ( \"blah-$(HTTP_COOKIE{\nc1}\n)\" ) == \"blah-v1\" ) ;\n assert ( esi_expr . expand ( \"blah-$(HTTP_COOKIE{\nc1a}\n)\" ) == \"blah-\" ) ;\n assert ( esi_expr . expand ( \"blah-$(HTTP_COOKIE{\nc1}\n$(HTTP_HOST))\" ) == \"\" ) ;\n assert ( esi_expr . expand ( \"blah-$(HTTP_COOKIE{\nc1}\n)-$(HTTP_HOST)\" ) == \"blah-v1-example.com\" ) ;\n assert ( esi_expr . expand ( \"$()\" ) == \"\" ) ;\n assert ( esi_expr . expand ( \"$(HTTP_COOKIE{\nc1}\n)$(HTTP_COOKIE{\nc2}\n)$(HTTP_HOST)\" ) == \"v1v2example.com\" ) ;\n assert ( esi_expr . expand ( \"'blah\" ) == \"\" ) ;\n assert ( esi_expr . expand ( \"\\\"blah\" ) == \"\" ) ;\n assert ( esi_expr . expand ( \"'blah'\" ) == \"blah\" ) ;\n assert ( esi_expr . expand ( \"\\\"blah\\\"\" ) == \"blah\" ) ;\n assert ( esi_expr . expand ( \"'$(HTTP_COOKIE{\nc1}\n)'\" ) == \"v1\" ) ;\n assert ( esi_expr . expand ( \"\\\"$(HTTP_HOST)\\\"\" ) == \"example.com\" ) ;\n assert ( esi_expr . expand ( \" blah \" ) == \"blah\" ) ;\n assert ( esi_expr . expand ( \" $(HTTP_REFERER) $(HTTP_HOST) \" ) == \"google.com example.com\" ) ;\n assert ( esi_expr . expand ( \" ' foo ' \" ) == \" foo \" ) ;\n assert ( esi_expr . expand ( \" ' foo '\" ) == \" foo \" ) ;\n assert ( esi_expr . expand ( \"bar \" ) == \"bar\" ) ;\n assert ( esi_expr . evaluate ( \"foo\" ) == true ) ;\n assert ( esi_expr . evaluate ( \"\" ) == false ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_HOST)\" ) == true ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_XHOST)\" ) == false ) ;\n assert ( esi_expr . evaluate ( \"foo == foo\" ) == true ) ;\n assert ( esi_expr . evaluate ( \"'foo' == \\\"foo\\\"\" ) == true ) ;\n assert ( esi_expr . evaluate ( \"foo == foo1\" ) == false ) ;\n assert ( esi_expr . evaluate ( \"'foo' == \\\"foo1\\\"\" ) == false ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_REFERER) == google.com\" ) == true ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_HOST)=='example.com'\" ) == true ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_REFERER) != google.com\" ) == false ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_HOST)!='example.com'\" ) == false ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_HOST) == 'facebook.com'\" ) == false ) ;\n assert ( esi_expr . evaluate ( \"!\" ) == true ) ;\n assert ( esi_expr . evaluate ( \"!abc\" ) == false ) ;\n assert ( esi_expr . evaluate ( \"!$(FOO_BAR)\" ) == true ) ;\n assert ( esi_expr . evaluate ( \"!$(HTTP_HOST)\" ) == false ) ;\n assert ( esi_expr . evaluate ( \"abc!abc\" ) == true ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nc1}\n) == 'v1'\" ) == true ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nc1b}\n) == 'v1'\" ) == false ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nc1}\n) <= 'v2'\" ) == true ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nc1}\n) < 'v2'\" ) == true ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nc1}\n) >= 'v0'\" ) == true ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nc1}\n) > 'v2'\" ) == false ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nc1}\n) & 'v2'\" ) == true ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nfoo}\n) & $(HTTP_COOKIE{\nbar}\n)\" ) == false ) ;\n assert ( esi_expr . evaluate ( \"'' | $(HTTP_COOKIE{\nc1}\n)\" ) == true ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nfoo}\n) | $(HTTP_COOKIE{\nbar}\n)\" ) == false ) ;\n assert ( esi_expr . expand ( \"foo|bar\" ) == \"foo|bar\" ) ;\n assert ( esi_expr . expand ( \"$(HTTP_HOST|\" ) == \"\" ) ;\n assert ( esi_expr . expand ( \"$(HTTP_HOST|foo\" ) == \"\" ) ;\n assert ( esi_expr . expand ( \"$(HTTP_HOST|foo)\" ) == \"example.com\" ) ;\n assert ( esi_expr . expand ( \"$(HTTP_XHOST|foo)\" ) == \"foo\" ) ;\n assert ( esi_expr . expand ( \"$(|foo)\" ) == \"foo\" ) ;\n assert ( esi_expr . expand ( \"$(HTTP_ACCEPT_LANGUAGE{\nen-uk}\n)\" ) == \"\" ) ;\n assert ( esi_expr . expand ( \"$(HTTP_ACCEPT_LANGUAGE{\nen-uk}\n|'yes')\" ) == \"yes\" ) ;\n assert ( esi_expr . expand ( \"$(HTTP_ACCEPT_LANGUAGE{\nen-uk}\n|'yes with space')\" ) == \"yes with space\" ) ;\n assert ( esi_expr . expand ( \"$(HTTP_ACCEPT_LANGUAGE{\nen-gb}\n|'yes')\" ) == \"true\" ) ;\n assert ( esi_expr . expand ( \"$(HTTP_ACCEPT_LANGUAGE{\nen-gb}\n|'yes)\" ) == \"\" ) ;\n assert ( esi_expr . expand ( \"$(HTTP_ACCEPT_LANGUAGE{\nen-uk}\n|'yes)\" ) == \"\" ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nnon-existent}\n) < 7\" ) == false ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nc1}\n) > $(HTTP_COOKIE{\nnon-existent}\n)\" ) == false ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nnon-existent}\n) <= 7\" ) == false ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nc1}\n) >= $(HTTP_COOKIE{\nnon-existent}\n)\" ) == false ) ;\n esi_vars . clear ( ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) . size ( ) == 0 ) ;\n esi_vars . populate ( \"a\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) == \"a\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\na}\n\" ) . size ( ) == 0 ) ;\n esi_vars . clear ( ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) . size ( ) == 0 ) ;\n esi_vars . populate ( \"\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\na}\n\" ) . size ( ) == 0 ) ;\n esi_vars . clear ( ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) . size ( ) == 0 ) ;\n esi_vars . populate ( \"a=b\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) == \"a=b\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\na}\n\" ) == \"b\" ) ;\n esi_vars . clear ( ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) . size ( ) == 0 ) ;\n esi_vars . populate ( \"a=b&\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) == \"a=b&\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\na}\n\" ) == \"b\" ) ;\n esi_vars . clear ( ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) . size ( ) == 0 ) ;\n esi_vars . populate ( \"&a=b&\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) == \"&a=b&\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\na}\n\" ) == \"b\" ) ;\n esi_vars . clear ( ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) . size ( ) == 0 ) ;\n esi_vars . populate ( \"name1=value1&name2=value2&name3=val%32ue\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) == \"name1=value1&name2=value2&name3=val%32ue\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\nname1}\n\" ) == \"value1\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\nname2}\n\" ) == \"value2\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\nname3}\n\" ) == \"val%32ue\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\nname4}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\n}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\nfoo}\n\" ) == \"\" ) ;\n esi_vars . clear ( ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) . size ( ) == 0 ) ;\n esi_vars . populate ( \"=\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) == \"=\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\na}\n\" ) == \"\" ) ;\n esi_vars . clear ( ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) . size ( ) == 0 ) ;\n esi_vars . populate ( \"a=&\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) == \"a=&\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\na}\n\" ) == \"\" ) ;\n esi_vars . clear ( ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) . size ( ) == 0 ) ;\n esi_vars . populate ( \"=b&\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) == \"=b&\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\na}\n\" ) == \"\" ) ;\n esi_vars . clear ( ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) . size ( ) == 0 ) ;\n esi_vars . populate ( \"foo=bar&blah=&\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) == \"foo=bar&blah=&\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\nfoo}\n\" ) == \"bar\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\nblah}\n\" ) == \"\" ) ;\n esi_vars . clear ( ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) . size ( ) == 0 ) ;\n esi_vars . populate ( \"=blah&foo=bar\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) == \"=blah&foo=bar\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\nfoo}\n\" ) == \"bar\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\nblah}\n\" ) == \"\" ) ;\n }\n {\n cout << endl << \"===================== Test 2\" << endl ;\n gFakeDebugLog . assign ( \"\" ) ;\n Utils : : HeaderValueList whitelistCookies ;\n Variables esi_vars ( \"vars_test\" , & fakeDebug , & Error , whitelistCookies ) ;\n esi_vars . populate ( HttpHeader ( \"Host\" , - 1 , \"example.com\" , - 1 ) ) ;\n esi_vars . populate ( HttpHeader ( \"Referer\" , - 1 , \"google.com\" , - 1 ) ) ;\n const char * PARSING_DEBUG_MESSAGE = \"Parsing headers\" ;\n assert ( gFakeDebugLog . find ( PARSING_DEBUG_MESSAGE ) >= gFakeDebugLog . size ( ) ) ;\n assert ( esi_vars . getValue ( \"HTTP_HOST\" ) == \"example.com\" ) ;\n size_t str_pos = gFakeDebugLog . find ( PARSING_DEBUG_MESSAGE ) ;\n assert ( str_pos < gFakeDebugLog . size ( ) ) ;\n assert ( esi_vars . getValue ( \"HTTP_REFERER\" ) == \"google.com\" ) ;\n assert ( gFakeDebugLog . rfind ( PARSING_DEBUG_MESSAGE ) == str_pos ) ;\n esi_vars . populate ( HttpHeader ( \"Host\" , - 1 , \"localhost\" , - 1 ) ) ;\n assert ( esi_vars . getValue ( \"HTTP_HOST\" ) == \"localhost\" ) ;\n assert ( gFakeDebugLog . rfind ( PARSING_DEBUG_MESSAGE ) == str_pos ) ;\n assert ( esi_vars . getValue ( \"HTTP_HOST\" ) == \"localhost\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_REFERER\" ) == \"google.com\" ) ;\n esi_vars . clear ( ) ;\n esi_vars . populate ( HttpHeader ( \"Host\" , - 1 , \"home\" , - 1 ) ) ;\n assert ( esi_vars . getValue ( \"HTTP_HOST\" ) == \"home\" ) ;\n assert ( gFakeDebugLog . rfind ( PARSING_DEBUG_MESSAGE ) != str_pos ) ;\n assert ( esi_vars . getValue ( \"HTTP_REFERER\" ) == \"\" ) ;\n }\n {\n cout << endl << \"===================== Test 3\" << endl ;\n Utils : : HeaderValueList whitelistCookies ;\n whitelistCookies . push_back ( \"age\" ) ;\n whitelistCookies . push_back ( \"grade\" ) ;\n whitelistCookies . push_back ( \"avg\" ) ;\n whitelistCookies . push_back ( \"t1\" ) ;\n whitelistCookies . push_back ( \"t2\" ) ;\n whitelistCookies . push_back ( \"t3\" ) ;\n whitelistCookies . push_back ( \"t4\" ) ;\n whitelistCookies . push_back ( \"t5\" ) ;\n whitelistCookies . push_back ( \"c1\" ) ;\n Variables esi_vars ( \"vars_test\" , & Debug , & Error , whitelistCookies ) ;\n esi_vars . populate ( HttpHeader ( \"Host\" , - 1 , \"example.com\" , - 1 ) ) ;\n esi_vars . populate ( HttpHeader ( \"Referer\" , - 1 , \"google.com\" , - 1 ) ) ;\n esi_vars . populate ( HttpHeader ( \"Cookie\" , - 1 , \"age=21;\n grade=-5;\n avg=4.3;\n t1=\\\" \\\";\n t2=0.0\" , - 1 ) ) ;\n esi_vars . populate ( HttpHeader ( \"Cookie\" , - 1 , \"t3=-0;\n t4=0;\n t5=6\" , - 1 ) ) ;\n Expression esi_expr ( \"vars_test\" , & Debug , & Error , esi_vars ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nage}\n) >= -9\" ) ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nage}\n) > 9\" ) ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nage}\n) < 22\" ) ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nage}\n) <= 22.1\" ) ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nage}\n) > 100a\" ) ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nt1}\n)\" ) ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\ngrade}\n)\" ) ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\ngrade}\n) == -5\" ) ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\ngrade}\n) != -5.1\" ) ) ;\n assert ( esi_expr . evaluate ( \"!$(HTTP_COOKIE{\nt2}\n)\" ) ) ;\n assert ( esi_expr . evaluate ( \"!$(HTTP_COOKIE{\nt3}\n)\" ) ) ;\n assert ( esi_expr . evaluate ( \"!$(HTTP_COOKIE{\nt4}\n)\" ) ) ;\n assert ( esi_expr . evaluate ( \"+4.3 == $(HTTP_COOKIE{\navg}\n)\" ) ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\ngrade}\n) < -0x2\" ) ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nt2}\n) | 1\" ) ) ;\n assert ( ! esi_expr . evaluate ( \"$(HTTP_COOKIE{\nt3}\n) & 1\" ) ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nt5}\n) == 6\" ) ) ;\n string strange_cookie ( \"c1=123\" ) ;\n strange_cookie [ 4 ] = '\\0' ;\n esi_vars . populate ( HttpHeader ( \"Cookie\" , - 1 , strange_cookie . data ( ) , strange_cookie . size ( ) ) ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nc1}\n\" ) . size ( ) == 3 ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nc1}\n\" ) [ 1 ] == '\\0' ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nc1}\n) != 1\" ) ) ;\n }\n {\n cout << endl << \"===================== Test 4\" << endl ;\n Utils : : HeaderValueList whitelistCookies ;\n whitelistCookies . push_back ( \"FPS\" ) ;\n whitelistCookies . push_back ( \"mb\" ) ;\n whitelistCookies . push_back ( \"Y\" ) ;\n whitelistCookies . push_back ( \"C\" ) ;\n whitelistCookies . push_back ( \"F\" ) ;\n whitelistCookies . push_back ( \"a\" ) ;\n whitelistCookies . push_back ( \"c\" ) ;\n Variables esi_vars ( \"vars_test\" , & Debug , & Error , whitelistCookies ) ;\n string cookie_str ( \"FPS=dl;\n mb=d=OPsv7rvU4FFaAOoIRi75BBuqdMdbMLFuDwQmk6nKrCgno7L4xuN44zm7QBQJRmQSh8ken6GSVk8-&v=1;\n C=mg=1;\n \" \"Y=v=1&n=fmaptagvuff50&l=fc0d94i7/o&p=m2f0000313000400&r=8j&lg=en-US&intl=us;\n \" \"F=a=4KvLV9IMvTJnIAqCk25y9Use6hnPALtUf3n78PihlcIqvmzoW.Ax8UyW8_oxtgFNrrdmooqZmPa7WsX4gE.\" \"6sI69wuNwRKrRPFT29h9lhwuxxLz0RuQedVXhJhc323Q-&b=8gQZ\" ) ;\n esi_vars . populate ( HttpHeader ( \"Cookie\" , - 1 , cookie_str . data ( ) , cookie_str . size ( ) ) ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nFPS}\n\" ) == \"dl\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nmb}\n\" ) == \"d=OPsv7rvU4FFaAOoIRi75BBuqdMdbMLFuDwQmk6nKrCgno7L4xuN44zm7QBQJRmQSh8ken6GSVk8-&v=1\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nY;\nn}\n\" ) == \"fmaptagvuff50\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nY;\nl}\n\" ) == \"fc0d94i7/o\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nY;\nintl}\n\" ) == \"us\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nC}\n\" ) == \"mg=1\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nnon-existent}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nY}\n\" ) == \"v=1&n=fmaptagvuff50&l=fc0d94i7/o&p=m2f0000313000400&r=8j&lg=en-US&intl=us\" ) ;\n esi_vars . populate ( HttpHeader ( \"Host\" , - 1 , \"www.example.com\" , - 1 ) ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nF}\n\" ) == \"a=4KvLV9IMvTJnIAqCk25y9Use6hnPALtUf3n78PihlcIqvmzoW.\" \"Ax8UyW8_oxtgFNrrdmooqZmPa7WsX4gE.6sI69wuNwRKrRPFT29h9lhwuxxLz0RuQedVXhJhc323Q-&b=8gQZ\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_HOST\" ) == \"www.example.com\" ) ;\n esi_vars . populate ( HttpHeader ( \"Cookie\" , - 1 , \"a=b;\n c=d\" , - 1 ) ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nY;\nintl}\n\" ) == \"us\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nF}\n\" ) == \"a=4KvLV9IMvTJnIAqCk25y9Use6hnPALtUf3n78PihlcIqvmzoW.\" \"Ax8UyW8_oxtgFNrrdmooqZmPa7WsX4gE.6sI69wuNwRKrRPFT29h9lhwuxxLz0RuQedVXhJhc323Q-&b=8gQZ\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\na}\n\" ) == \"b\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nc}\n\" ) == \"d\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_HOST\" ) == \"www.example.com\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nY;\nblah}\n\" ) == \"\" ) ;\n esi_vars . clear ( ) ;\n esi_vars . populate ( HttpHeader ( \"Cookie\" , - 1 , \"Y=junk\" , - 1 ) ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nY}\n\" ) == \"junk\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nY;\nintl}\n\" ) == \"\" ) ;\n }\n {\n cout << endl << \"===================== Test 5\" << endl ;\n Utils : : HeaderValueList whitelistCookies ;\n Variables esi_vars ( \"vars_test\" , & Debug , & Error , whitelistCookies ) ;\n esi_vars . populate ( HttpHeader ( \"hdr1\" , - 1 , \"hval1\" , - 1 ) ) ;\n esi_vars . populate ( HttpHeader ( \"Hdr2\" , - 1 , \"hval2\" , - 1 ) ) ;\n esi_vars . populate ( HttpHeader ( \"@Intenal-hdr1\" , - 1 , \"internal-hval1\" , - 1 ) ) ;\n assert ( esi_vars . getValue ( \"HTTP_HEADER{\nhdr1}\n\" ) == \"hval1\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_HEADER{\nhdr2}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_HEADER{\nHdr2}\n\" ) == \"hval2\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_HEADER{\nnon-existent}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_HEADER{\n@Intenal-hdr1}\n\" ) == \"internal-hval1\" ) ;\n }\n {\n cout << endl << \"===================== Test 6\" << endl ;\n Utils : : HeaderValueList whitelistCookies ;\n whitelistCookies . push_back ( \"*\" ) ;\n Variables esi_vars ( \"vars_test\" , & Debug , & Error , whitelistCookies ) ;\n esi_vars . populate ( HttpHeader ( \"Host\" , - 1 , \"example.com\" , - 1 ) ) ;\n esi_vars . populate ( HttpHeader ( \"Cookie\" , - 1 , \"age=21;\n grade=-5;\n avg=4.3;\n t1=\\\" \\\";\n t2=0.0\" , - 1 ) ) ;\n esi_vars . populate ( HttpHeader ( \"Cookie\" , - 1 , \"t3=-0;\n t4=0;\n t5=6\" , - 1 ) ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nage}\n\" ) == \"21\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\ngrade}\n\" ) == \"-5\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\navg}\n\" ) == \"4.3\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nt1}\n\" ) == \" \" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nt2}\n\" ) == \"0.0\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nt3}\n\" ) == \"-0\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nt4}\n\" ) == \"0\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nt5}\n\" ) == \"6\" ) ;\n }\n cout << endl << \"All tests passed!\" << endl ;\n return 0 ;\n }"}
{"idx": 2703, "target": 0, "func": "size_t TSfwrite ( TSFile filep , const void * buf , size_t length ) {\n FileImpl * file = ( FileImpl * ) filep ;\n return file -> fwrite ( buf , length ) ;\n }"}
{"idx": 2704, "target": 0, "func": "THD * next_global_thread ( THD * thd ) {\n if ( threads . is_last ( thd ) ) return NULL ;\n struct ilink * next = thd -> next ;\n return static_cast < THD * > ( next ) ;\n }"}
{"idx": 2705, "target": 0, "func": "int _libssh2_kex_exchange ( LIBSSH2_SESSION * session , int reexchange , key_exchange_state_t * key_state ) {\n int rc = 0 ;\n int retcode ;\n session -> state |= LIBSSH2_STATE_KEX_ACTIVE ;\n if ( key_state -> state == libssh2_NB_state_idle ) {\n session -> state |= LIBSSH2_STATE_EXCHANGING_KEYS ;\n if ( reexchange ) {\n session -> kex = NULL ;\n if ( session -> hostkey && session -> hostkey -> dtor ) {\n session -> hostkey -> dtor ( session , & session -> server_hostkey_abstract ) ;\n }\n session -> hostkey = NULL ;\n }\n key_state -> state = libssh2_NB_state_created ;\n }\n if ( ! session -> kex || ! session -> hostkey ) {\n if ( key_state -> state == libssh2_NB_state_created ) {\n key_state -> oldlocal = session -> local . kexinit ;\n key_state -> oldlocal_len = session -> local . kexinit_len ;\n session -> local . kexinit = NULL ;\n key_state -> state = libssh2_NB_state_sent ;\n }\n if ( key_state -> state == libssh2_NB_state_sent ) {\n retcode = kexinit ( session ) ;\n if ( retcode == LIBSSH2_ERROR_EAGAIN ) {\n session -> state &= ~ LIBSSH2_STATE_KEX_ACTIVE ;\n return retcode ;\n }\n else if ( retcode ) {\n session -> local . kexinit = key_state -> oldlocal ;\n session -> local . kexinit_len = key_state -> oldlocal_len ;\n key_state -> state = libssh2_NB_state_idle ;\n session -> state &= ~ LIBSSH2_STATE_KEX_ACTIVE ;\n session -> state &= ~ LIBSSH2_STATE_EXCHANGING_KEYS ;\n return - 1 ;\n }\n key_state -> state = libssh2_NB_state_sent1 ;\n }\n if ( key_state -> state == libssh2_NB_state_sent1 ) {\n retcode = _libssh2_packet_require ( session , SSH_MSG_KEXINIT , & key_state -> data , & key_state -> data_len , 0 , NULL , 0 , & key_state -> req_state ) ;\n if ( retcode == LIBSSH2_ERROR_EAGAIN ) {\n session -> state &= ~ LIBSSH2_STATE_KEX_ACTIVE ;\n return retcode ;\n }\n else if ( retcode ) {\n if ( session -> local . kexinit ) {\n LIBSSH2_FREE ( session , session -> local . kexinit ) ;\n }\n session -> local . kexinit = key_state -> oldlocal ;\n session -> local . kexinit_len = key_state -> oldlocal_len ;\n key_state -> state = libssh2_NB_state_idle ;\n session -> state &= ~ LIBSSH2_STATE_KEX_ACTIVE ;\n session -> state &= ~ LIBSSH2_STATE_EXCHANGING_KEYS ;\n return - 1 ;\n }\n if ( session -> remote . kexinit ) {\n LIBSSH2_FREE ( session , session -> remote . kexinit ) ;\n }\n session -> remote . kexinit = key_state -> data ;\n session -> remote . kexinit_len = key_state -> data_len ;\n if ( kex_agree_methods ( session , key_state -> data , key_state -> data_len ) ) rc = LIBSSH2_ERROR_KEX_FAILURE ;\n key_state -> state = libssh2_NB_state_sent2 ;\n }\n }\n else {\n key_state -> state = libssh2_NB_state_sent2 ;\n }\n if ( rc == 0 && session -> kex ) {\n if ( key_state -> state == libssh2_NB_state_sent2 ) {\n retcode = session -> kex -> exchange_keys ( session , & key_state -> key_state_low ) ;\n if ( retcode == LIBSSH2_ERROR_EAGAIN ) {\n session -> state &= ~ LIBSSH2_STATE_KEX_ACTIVE ;\n return retcode ;\n }\n else if ( retcode ) {\n rc = _libssh2_error ( session , LIBSSH2_ERROR_KEY_EXCHANGE_FAILURE , \"Unrecoverable error exchanging keys\" ) ;\n }\n }\n }\n if ( session -> local . kexinit ) {\n LIBSSH2_FREE ( session , session -> local . kexinit ) ;\n session -> local . kexinit = NULL ;\n }\n if ( session -> remote . kexinit ) {\n LIBSSH2_FREE ( session , session -> remote . kexinit ) ;\n session -> remote . kexinit = NULL ;\n }\n session -> state &= ~ LIBSSH2_STATE_KEX_ACTIVE ;\n session -> state &= ~ LIBSSH2_STATE_EXCHANGING_KEYS ;\n key_state -> state = libssh2_NB_state_idle ;\n return rc ;\n }"}
{"idx": 2706, "target": 0, "func": "static void sig_complete_channel ( GList * * list , WINDOW_REC * window , const char * word , const char * line , int * want_space ) {\n g_return_if_fail ( list != NULL ) ;\n g_return_if_fail ( word != NULL ) ;\n * list = completion_get_channels ( NULL , word ) ;\n if ( * list != NULL ) signal_stop ( ) ;\n }"}
{"idx": 2707, "target": 0, "func": "static void collect_features_indic ( hb_ot_shape_planner_t * plan ) {\n hb_ot_map_builder_t * map = & plan -> map ;\n map -> add_gsub_pause ( setup_syllables ) ;\n map -> add_global_bool_feature ( HB_TAG ( 'l' , 'o' , 'c' , 'l' ) ) ;\n map -> add_global_bool_feature ( HB_TAG ( 'c' , 'c' , 'm' , 'p' ) ) ;\n unsigned int i = 0 ;\n map -> add_gsub_pause ( initial_reordering ) ;\n for ( ;\n i < INDIC_BASIC_FEATURES ;\n i ++ ) {\n map -> add_feature ( indic_features [ i ] . tag , 1 , indic_features [ i ] . flags | F_MANUAL_ZWJ ) ;\n map -> add_gsub_pause ( NULL ) ;\n }\n map -> add_gsub_pause ( final_reordering ) ;\n for ( ;\n i < INDIC_NUM_FEATURES ;\n i ++ ) {\n map -> add_feature ( indic_features [ i ] . tag , 1 , indic_features [ i ] . flags | F_MANUAL_ZWJ ) ;\n }\n map -> add_global_bool_feature ( HB_TAG ( 'c' , 'a' , 'l' , 't' ) ) ;\n map -> add_global_bool_feature ( HB_TAG ( 'c' , 'l' , 'i' , 'g' ) ) ;\n map -> add_gsub_pause ( clear_syllables ) ;\n }"}
{"idx": 2708, "target": 0, "func": "void remove_tap_listener_skinny_calls ( void ) {\n remove_tap_listener ( & ( the_tapinfo_struct . skinny_dummy ) ) ;\n have_skinny_tap_listener = FALSE ;\n }"}
{"idx": 2709, "target": 0, "func": "void dcc_resume_deinit ( void ) {\n signal_remove ( \"ctcp msg dcc resume\" , ( SIGNAL_FUNC ) ctcp_msg_dcc_resume ) ;\n signal_remove ( \"ctcp msg dcc accept\" , ( SIGNAL_FUNC ) ctcp_msg_dcc_accept ) ;\n command_unbind ( \"dcc resume\" , ( SIGNAL_FUNC ) cmd_dcc_resume ) ;\n }"}
{"idx": 2710, "target": 0, "func": "TSReturnCode TSHttpTxnServerRespIgnore ( TSHttpTxn txnp ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpTransact : : State * s = & ( ( ( HttpSM * ) txnp ) -> t_state ) ;\n HTTPInfo * cached_obj = s -> cache_info . object_read ;\n HTTPHdr * cached_resp ;\n if ( cached_obj == nullptr || ! cached_obj -> valid ( ) ) {\n return TS_ERROR ;\n }\n cached_resp = cached_obj -> response_get ( ) ;\n if ( cached_resp == nullptr || ! cached_resp -> valid ( ) ) {\n return TS_ERROR ;\n }\n s -> api_server_response_ignore = true ;\n return TS_SUCCESS ;\n }"}
{"idx": 2711, "target": 0, "func": "static const char * hfinfo_numeric_value_format ( const header_field_info * hfinfo , char buf [ 32 ] , guint32 value ) {\n int display = hfinfo -> display & FIELD_DISPLAY_E_MASK ;\n if ( hfinfo -> type == FT_FRAMENUM ) {\n display = BASE_DEC ;\n }\n if ( IS_BASE_PORT ( display ) ) {\n display = BASE_DEC ;\n }\n switch ( display ) {\n case BASE_NONE : case BASE_DEC_HEX : case BASE_OCT : case BASE_CUSTOM : display = BASE_DEC ;\n break ;\n case BASE_HEX_DEC : display = BASE_HEX ;\n break ;\n }\n return hfinfo_number_value_format_display ( hfinfo , display , buf , value ) ;\n }"}
{"idx": 2712, "target": 0, "func": "static void final_reordering ( const hb_ot_shape_plan_t * plan , hb_font_t * font HB_UNUSED , hb_buffer_t * buffer ) {\n unsigned int count = buffer -> len ;\n if ( unlikely ( ! count ) ) return ;\n foreach_syllable ( buffer , start , end ) final_reordering_syllable ( plan , buffer , start , end ) ;\n HB_BUFFER_DEALLOCATE_VAR ( buffer , indic_category ) ;\n HB_BUFFER_DEALLOCATE_VAR ( buffer , indic_position ) ;\n }"}
{"idx": 2713, "target": 0, "func": "static void test_errors ( ) {\n int rc ;\n MYSQL_RES * result ;\n myheader ( \"test_errors\" ) ;\n mysql_query ( mysql , \"DROP TABLE if exists test_non_exists\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE test_non_exists\" ) ;\n myquery_r ( rc ) ;\n rc = mysql_query ( mysql , \"SHOW ERRORS\" ) ;\n myquery ( rc ) ;\n result = mysql_store_result ( mysql ) ;\n mytest ( result ) ;\n ( void ) my_process_result_set ( result ) ;\n mysql_free_result ( result ) ;\n }"}
{"idx": 2714, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( WebRtcApprtcBrowserTest , MAYBE_MANUAL_FirefoxApprtcInteropTest ) {\n DetectErrorsInJavaScript ( ) ;\n ASSERT_TRUE ( LaunchApprtcInstanceOnLocalhost ( \"9999\" ) ) ;\n ASSERT_TRUE ( LaunchColliderOnLocalHost ( \"http://localhost:9999\" , \"8089\" ) ) ;\n while ( ! LocalApprtcInstanceIsUp ( ) ) DVLOG ( 1 ) << \"Waiting for AppRTC to come up...\" ;\n GURL room_url = GURL ( \"http://localhost:9999/r/some_room\" \"?wshpp=localhost:8089&wstls=false\" \"&firefox_fake_device=1\" ) ;\n chrome : : AddTabAt ( browser ( ) , GURL ( ) , - 1 , true ) ;\n content : : WebContents * chrome_tab = browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) ;\n PermissionRequestManager : : FromWebContents ( chrome_tab ) -> set_auto_response_for_test ( PermissionRequestManager : : ACCEPT_ALL ) ;\n InfoBarResponder infobar_responder ( InfoBarService : : FromWebContents ( chrome_tab ) , InfoBarResponder : : ACCEPT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , room_url ) ;\n ASSERT_TRUE ( LaunchFirefoxWithUrl ( room_url ) ) ;\n ASSERT_TRUE ( WaitForCallToComeUp ( chrome_tab ) ) ;\n ASSERT_TRUE ( DetectRemoteVideoPlaying ( chrome_tab ) ) ;\n }"}
{"idx": 2715, "target": 1, "func": "int event_reinit ( struct event_base * base ) {\n const struct eventop * evsel = base -> evsel ;\n void * evbase = base -> evbase ;\n int res = 0 ;\n struct event * ev ;\n if ( ! evsel -> need_reinit ) return ( 0 ) ;\n if ( base -> sig . ev_signal_added ) {\n event_queue_remove ( base , & base -> sig . ev_signal , EVLIST_INSERTED ) ;\n if ( base -> sig . ev_signal . ev_flags & EVLIST_ACTIVE ) event_queue_remove ( base , & base -> sig . ev_signal , EVLIST_ACTIVE ) ;\n base -> sig . ev_signal_added = 0 ;\n }\n if ( base -> evsel -> dealloc != NULL ) base -> evsel -> dealloc ( base , base -> evbase ) ;\n evbase = base -> evbase = evsel -> init ( base ) ;\n if ( base -> evbase == NULL ) event_errx ( 1 , \"%s: could not reinitialize event mechanism\" , __func__ ) ;\n TAILQ_FOREACH ( ev , & base -> eventqueue , ev_next ) {\n if ( evsel -> add ( evbase , ev ) == - 1 ) res = - 1 ;\n }\n return ( res ) ;\n }"}
{"idx": 2716, "target": 0, "func": "static int rv30_decode_mb_info ( RV34DecContext * r ) {\n static const int rv30_p_types [ 6 ] = {\n RV34_MB_SKIP , RV34_MB_P_16x16 , RV34_MB_P_8x8 , - 1 , RV34_MB_TYPE_INTRA , RV34_MB_TYPE_INTRA16x16 }\n ;\n static const int rv30_b_types [ 6 ] = {\n RV34_MB_SKIP , RV34_MB_B_DIRECT , RV34_MB_B_FORWARD , RV34_MB_B_BACKWARD , RV34_MB_TYPE_INTRA , RV34_MB_TYPE_INTRA16x16 }\n ;\n MpegEncContext * s = & r -> s ;\n GetBitContext * gb = & s -> gb ;\n unsigned code = svq3_get_ue_golomb ( gb ) ;\n if ( code > 11 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Incorrect MB type code\\n\" ) ;\n return - 1 ;\n }\n if ( code > 5 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"dquant needed\\n\" ) ;\n code -= 6 ;\n }\n if ( s -> pict_type != AV_PICTURE_TYPE_B ) return rv30_p_types [ code ] ;\n else return rv30_b_types [ code ] ;\n }"}
{"idx": 2717, "target": 0, "func": "int EVP_ENCODE_CTX_num ( EVP_ENCODE_CTX * ctx ) {\n return ctx -> num ;\n }"}
{"idx": 2718, "target": 0, "func": "static bool message_decode_header ( struct message_decoder_context * ctx , struct message_header_line * hdr , struct message_block * output ) {\n size_t value_len ;\n if ( hdr -> continues ) {\n hdr -> use_full_value = TRUE ;\n return FALSE ;\n }\n T_BEGIN {\n if ( hdr -> name_len == 12 && strcasecmp ( hdr -> name , \"Content-Type\" ) == 0 ) parse_content_type ( ctx , hdr ) ;\n if ( hdr -> name_len == 25 && strcasecmp ( hdr -> name , \"Content-Transfer-Encoding\" ) == 0 ) ctx -> message_cte = message_decoder_parse_cte ( hdr ) ;\n }\n T_END ;\n buffer_set_used_size ( ctx -> buf , 0 ) ;\n message_header_decode_utf8 ( hdr -> full_value , hdr -> full_value_len , ctx -> buf , ctx -> normalizer ) ;\n value_len = ctx -> buf -> used ;\n if ( ctx -> normalizer != NULL ) {\n ( void ) ctx -> normalizer ( hdr -> name , hdr -> name_len , ctx -> buf ) ;\n buffer_append_c ( ctx -> buf , '\\0' ) ;\n }\n else {\n if ( ! uni_utf8_get_valid_data ( ( const unsigned char * ) hdr -> name , hdr -> name_len , ctx -> buf ) ) buffer_append_c ( ctx -> buf , '\\0' ) ;\n }\n ctx -> hdr = * hdr ;\n ctx -> hdr . full_value = ctx -> buf -> data ;\n ctx -> hdr . full_value_len = value_len ;\n ctx -> hdr . value_len = 0 ;\n if ( ctx -> buf -> used != value_len ) {\n ctx -> hdr . name = CONST_PTR_OFFSET ( ctx -> buf -> data , ctx -> hdr . full_value_len ) ;\n ctx -> hdr . name_len = ctx -> buf -> used - 1 - value_len ;\n }\n output -> hdr = & ctx -> hdr ;\n return TRUE ;\n }"}
{"idx": 2719, "target": 0, "func": "static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 2720, "target": 0, "func": "static void vacuum_one_database ( const char * dbname , vacuumingOptions * vacopts , int stage , SimpleStringList * tables , const char * host , const char * port , const char * username , enum trivalue prompt_password , int concurrentCons , const char * progname , bool echo , bool quiet ) {\n PQExpBufferData sql ;\n PGconn * conn ;\n SimpleStringListCell * cell ;\n ParallelSlot * slots = NULL ;\n SimpleStringList dbtables = {\n NULL , NULL }\n ;\n int i ;\n bool failed = false ;\n bool parallel = concurrentCons > 1 ;\n const char * stage_commands [ ] = {\n \"SET default_statistics_target=1;\n SET vacuum_cost_delay=0;\n\" , \"SET default_statistics_target=10;\n RESET vacuum_cost_delay;\n\" , \"RESET default_statistics_target;\n\" }\n ;\n const char * stage_messages [ ] = {\n gettext_noop ( \"Generating minimal optimizer statistics (1 target)\" ) , gettext_noop ( \"Generating medium optimizer statistics (10 targets)\" ) , gettext_noop ( \"Generating default (full) optimizer statistics\" ) }\n ;\n Assert ( stage == ANALYZE_NO_STAGE || ( stage >= 0 && stage < ANALYZE_NUM_STAGES ) ) ;\n conn = connectDatabase ( dbname , host , port , username , prompt_password , progname , false , true ) ;\n if ( ! quiet ) {\n if ( stage != ANALYZE_NO_STAGE ) printf ( _ ( \"%s: processing database \\\"%s\\\": %s\\n\" ) , progname , PQdb ( conn ) , stage_messages [ stage ] ) ;\n else printf ( _ ( \"%s: vacuuming database \\\"%s\\\"\\n\" ) , progname , PQdb ( conn ) ) ;\n fflush ( stdout ) ;\n }\n initPQExpBuffer ( & sql ) ;\n if ( parallel && ( ! tables || ! tables -> head ) ) {\n PQExpBufferData buf ;\n PGresult * res ;\n int ntups ;\n int i ;\n initPQExpBuffer ( & buf ) ;\n res = executeQuery ( conn , \"SELECT c.relname, ns.nspname FROM pg_class c, pg_namespace ns\\n\" \" WHERE relkind IN (\\'r\\', \\'m\\') AND c.relnamespace = ns.oid\\n\" \" ORDER BY c.relpages DESC;\n\" , progname , echo ) ;\n ntups = PQntuples ( res ) ;\n for ( i = 0 ;\n i < ntups ;\n i ++ ) {\n appendPQExpBufferStr ( & buf , fmtQualifiedId ( PQserverVersion ( conn ) , PQgetvalue ( res , i , 1 ) , PQgetvalue ( res , i , 0 ) ) ) ;\n simple_string_list_append ( & dbtables , buf . data ) ;\n resetPQExpBuffer ( & buf ) ;\n }\n termPQExpBuffer ( & buf ) ;\n tables = & dbtables ;\n if ( concurrentCons > ntups ) concurrentCons = ntups ;\n if ( concurrentCons <= 1 ) parallel = false ;\n PQclear ( res ) ;\n }\n slots = ( ParallelSlot * ) pg_malloc ( sizeof ( ParallelSlot ) * concurrentCons ) ;\n init_slot ( slots , conn , progname ) ;\n if ( parallel ) {\n for ( i = 1 ;\n i < concurrentCons ;\n i ++ ) {\n conn = connectDatabase ( dbname , host , port , username , prompt_password , progname , false , true ) ;\n init_slot ( slots + i , conn , progname ) ;\n }\n }\n if ( stage != ANALYZE_NO_STAGE ) {\n int j ;\n for ( j = 0 ;\n j < concurrentCons ;\n j ++ ) executeCommand ( ( slots + j ) -> connection , stage_commands [ stage ] , progname , echo ) ;\n }\n cell = tables ? tables -> head : NULL ;\n do {\n ParallelSlot * free_slot ;\n const char * tabname = cell ? cell -> val : NULL ;\n prepare_vacuum_command ( & sql , conn , vacopts , tabname ) ;\n if ( CancelRequested ) {\n failed = true ;\n goto finish ;\n }\n if ( parallel ) {\n free_slot = GetIdleSlot ( slots , concurrentCons , progname ) ;\n if ( ! free_slot ) {\n failed = true ;\n goto finish ;\n }\n free_slot -> isFree = false ;\n }\n else free_slot = slots ;\n run_vacuum_command ( free_slot -> connection , sql . data , echo , tabname , progname , parallel ) ;\n if ( cell ) cell = cell -> next ;\n }\n while ( cell != NULL ) ;\n if ( parallel ) {\n int j ;\n for ( j = 0 ;\n j < concurrentCons ;\n j ++ ) {\n if ( ! GetQueryResult ( ( slots + j ) -> connection , progname ) ) goto finish ;\n ( slots + j ) -> isFree = true ;\n }\n }\n finish : for ( i = 0 ;\n i < concurrentCons ;\n i ++ ) DisconnectDatabase ( slots + i ) ;\n pfree ( slots ) ;\n termPQExpBuffer ( & sql ) ;\n if ( failed ) exit ( 1 ) ;\n }"}
{"idx": 2721, "target": 1, "func": "static guint16 dissect_mpa_fpdu ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , mpa_state_t * state , struct tcpinfo * tcpinfo , guint8 endpoint ) {\n proto_item * mpa_item = NULL ;\n proto_item * mpa_header_item = NULL ;\n proto_tree * mpa_tree = NULL ;\n proto_tree * mpa_header_tree = NULL ;\n guint8 pad_length ;\n guint16 ulpdu_length , exp_ulpdu_length ;\n guint32 offset , total_length ;\n guint32 num_of_m = 0 ;\n if ( state -> minfo [ endpoint ] . valid && get_first_marker_offset ( state , tcpinfo , endpoint ) == 0 ) {\n offset = MPA_MARKER_LEN ;\n }\n else {\n offset = 0 ;\n }\n ulpdu_length = ( guint16 ) tvb_get_ntohs ( tvb , offset ) ;\n mpa_packetlist ( pinfo , MPA_FPDU ) ;\n if ( state -> minfo [ endpoint ] . valid ) {\n num_of_m = number_of_markers ( state , tcpinfo , endpoint ) ;\n }\n pad_length = fpdu_pad_length ( ulpdu_length ) ;\n exp_ulpdu_length = expected_ulpdu_length ( state , tcpinfo , endpoint ) ;\n if ( ! exp_ulpdu_length || exp_ulpdu_length != ( ulpdu_length + pad_length ) ) {\n proto_tree_add_expert_format ( tree , pinfo , & ei_mpa_bad_length , tvb , offset , MPA_ULPDU_LENGTH_LEN , \"[ULPDU length [%u] field does not contain the expected length[%u]]\" , exp_ulpdu_length , ulpdu_length + pad_length ) ;\n }\n mpa_item = proto_tree_add_item ( tree , proto_iwarp_mpa , tvb , 0 , - 1 , ENC_NA ) ;\n mpa_tree = proto_item_add_subtree ( mpa_item , ett_mpa ) ;\n mpa_header_item = proto_tree_add_item ( mpa_tree , hf_mpa_fpdu , tvb , offset , - 1 , ENC_NA ) ;\n mpa_header_tree = proto_item_add_subtree ( mpa_header_item , ett_mpa ) ;\n proto_tree_add_uint ( mpa_header_tree , hf_mpa_ulpdu_length , tvb , offset , MPA_ULPDU_LENGTH_LEN , ulpdu_length ) ;\n if ( state -> minfo [ endpoint ] . valid && num_of_m > 0 ) {\n total_length = fpdu_total_length ( tcpinfo ) ;\n if ( pad_length > 0 ) {\n proto_tree_add_item ( mpa_header_tree , hf_mpa_pad , tvb , pad_offset ( tcpinfo , total_length , pad_length ) , pad_length , ENC_NA ) ;\n }\n dissect_fpdu_crc ( tvb , mpa_header_tree , state , total_length - MPA_CRC_LEN , num_of_m * MPA_MARKER_LEN + ulpdu_length + pad_length + MPA_ULPDU_LENGTH_LEN ) ;\n dissect_fpdu_markers ( tvb , mpa_tree , state , tcpinfo , endpoint ) ;\n }\n else {\n offset += MPA_ULPDU_LENGTH_LEN + ulpdu_length ;\n if ( pad_length > 0 ) {\n proto_tree_add_item ( mpa_header_tree , hf_mpa_pad , tvb , offset , pad_length , ENC_NA ) ;\n offset += pad_length ;\n }\n dissect_fpdu_crc ( tvb , mpa_header_tree , state , offset , ulpdu_length + pad_length + MPA_ULPDU_LENGTH_LEN ) ;\n }\n return ulpdu_length ;\n }"}
{"idx": 2722, "target": 0, "func": "static void print_gss_error ( OM_uint32 err_maj , OM_uint32 err_min ) {\n OM_uint32 maj_stat , min_stat ;\n OM_uint32 msg_ctx = 0 ;\n gss_buffer_desc status_string ;\n char buf_maj [ 512 ] ;\n char buf_min [ 512 ] ;\n do {\n maj_stat = gss_display_status ( & min_stat , err_maj , GSS_C_GSS_CODE , GSS_C_NO_OID , & msg_ctx , & status_string ) ;\n if ( GSS_ERROR ( maj_stat ) ) break ;\n size_t status_len = status_string . length ;\n if ( status_len >= sizeof ( buf_maj ) ) status_len = sizeof ( buf_maj ) - 1 ;\n strncpy ( buf_maj , ( char * ) status_string . value , status_len ) ;\n buf_maj [ status_len ] = '\\0' ;\n gss_release_buffer ( & min_stat , & status_string ) ;\n maj_stat = gss_display_status ( & min_stat , err_min , GSS_C_MECH_CODE , GSS_C_NULL_OID , & msg_ctx , & status_string ) ;\n if ( ! GSS_ERROR ( maj_stat ) ) {\n status_len = status_string . length ;\n if ( status_len >= sizeof ( buf_min ) ) status_len = sizeof ( buf_min ) - 1 ;\n strncpy ( buf_min , ( char * ) status_string . value , status_len ) ;\n buf_min [ status_len ] = '\\0' ;\n gss_release_buffer ( & min_stat , & status_string ) ;\n }\n }\n while ( ! GSS_ERROR ( maj_stat ) && msg_ctx != 0 ) ;\n mutt_debug ( 2 , \"((%s:%d )(%s:%d))\\n\" , buf_maj , err_maj , buf_min , err_min ) ;\n }"}
{"idx": 2723, "target": 0, "func": "static int dissect_h245_RedundancyEncodingMode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_RedundancyEncodingMode , RedundancyEncodingMode_sequence ) ;\n return offset ;\n }"}
{"idx": 2724, "target": 0, "func": "void psf_init_files ( SF_PRIVATE * psf ) {\n psf -> file . filedes = - 1 ;\n psf -> rsrc . filedes = - 1 ;\n psf -> file . savedes = - 1 ;\n }"}
{"idx": 2725, "target": 0, "func": "bool chal_reply_h ( connection_t * c ) {\n char hishash [ MAX_STRING_SIZE ] ;\n char myhash [ EVP_MAX_MD_SIZE ] ;\n EVP_MD_CTX * ctx ;\n if ( sscanf ( c -> buffer , \"%*d \" MAX_STRING , hishash ) != 1 ) {\n logger ( LOG_ERR , \"Got bad %s from %s (%s)\" , \"CHAL_REPLY\" , c -> name , c -> hostname ) ;\n return false ;\n }\n if ( strlen ( hishash ) != ( size_t ) EVP_MD_size ( c -> outdigest ) * 2 ) {\n logger ( LOG_ERR , \"Possible intruder %s (%s): %s\" , c -> name , c -> hostname , \"wrong challenge reply length\" ) ;\n return false ;\n }\n if ( ! hex2bin ( hishash , hishash , EVP_MD_size ( c -> outdigest ) ) ) {\n logger ( LOG_ERR , \"Got bad %s from %s(%s): %s\" , \"CHAL_REPLY\" , c -> name , c -> hostname , \"invalid hash\" ) ;\n return false ;\n }\n ctx = EVP_MD_CTX_create ( ) ;\n if ( ! ctx ) {\n abort ( ) ;\n }\n if ( ! EVP_DigestInit ( ctx , c -> outdigest ) || ! EVP_DigestUpdate ( ctx , c -> hischallenge , RSA_size ( c -> rsa_key ) ) || ! EVP_DigestFinal ( ctx , ( unsigned char * ) myhash , NULL ) ) {\n EVP_MD_CTX_destroy ( ctx ) ;\n logger ( LOG_ERR , \"Error during calculation of response from %s (%s): %s\" , c -> name , c -> hostname , ERR_error_string ( ERR_get_error ( ) , NULL ) ) ;\n return false ;\n }\n EVP_MD_CTX_destroy ( ctx ) ;\n if ( memcmp ( hishash , myhash , EVP_MD_size ( c -> outdigest ) ) ) {\n logger ( LOG_ERR , \"Possible intruder %s (%s): %s\" , c -> name , c -> hostname , \"wrong challenge reply\" ) ;\n ifdebug ( SCARY_THINGS ) {\n bin2hex ( myhash , hishash , SHA_DIGEST_LENGTH ) ;\n hishash [ SHA_DIGEST_LENGTH * 2 ] = '\\0' ;\n logger ( LOG_DEBUG , \"Expected challenge reply: %s\" , hishash ) ;\n }\n return false ;\n }\n c -> allow_request = ACK ;\n if ( ! c -> outgoing ) {\n send_chal_reply ( c ) ;\n }\n return send_ack ( c ) ;\n }"}
{"idx": 2726, "target": 0, "func": "void pk_transaction_get_updates ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) {\n PkBitfield filter ;\n g_autoptr ( GError ) error = NULL ;\n g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;\n g_return_if_fail ( transaction -> priv -> tid != NULL ) ;\n g_variant_get ( params , \"(t)\" , & filter ) ;\n g_debug ( \"GetUpdates method called\" ) ;\n if ( ! pk_backend_is_implemented ( transaction -> priv -> backend , PK_ROLE_ENUM_GET_UPDATES ) ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NOT_SUPPORTED , \"GetUpdates not supported by backend\" ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n transaction -> priv -> cached_filters = filter ;\n pk_transaction_set_role ( transaction , PK_ROLE_ENUM_GET_UPDATES ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_READY ) ;\n out : pk_transaction_dbus_return ( context , error ) ;\n }"}
{"idx": 2727, "target": 0, "func": "static void trash_files ( CommonJob * job , GList * files , int * files_skipped ) {\n GList * l ;\n GFile * file ;\n GList * to_delete ;\n SourceInfo source_info ;\n TransferInfo transfer_info ;\n gboolean skipped_file ;\n if ( job_aborted ( job ) ) {\n return ;\n }\n scan_sources ( files , & source_info , job , OP_KIND_TRASH ) ;\n if ( job_aborted ( job ) ) {\n return ;\n }\n g_timer_start ( job -> time ) ;\n memset ( & transfer_info , 0 , sizeof ( transfer_info ) ) ;\n report_trash_progress ( job , & source_info , & transfer_info ) ;\n to_delete = NULL ;\n for ( l = files ;\n l != NULL && ! job_aborted ( job ) ;\n l = l -> next ) {\n file = l -> data ;\n skipped_file = FALSE ;\n trash_file ( job , file , & skipped_file , & source_info , & transfer_info , TRUE , & to_delete ) ;\n if ( skipped_file ) {\n ( * files_skipped ) ++ ;\n transfer_add_file_to_count ( file , job , & transfer_info ) ;\n report_trash_progress ( job , & source_info , & transfer_info ) ;\n }\n }\n if ( to_delete ) {\n to_delete = g_list_reverse ( to_delete ) ;\n delete_files ( job , to_delete , files_skipped ) ;\n g_list_free ( to_delete ) ;\n }\n }"}
{"idx": 2728, "target": 0, "func": "static int read_argb_line ( CLLCContext * ctx , GetBitContext * gb , int * top_left , VLC * vlc , uint8_t * outbuf ) {\n uint8_t * dst ;\n int pred [ 4 ] ;\n int code ;\n int i ;\n OPEN_READER ( bits , gb ) ;\n dst = outbuf ;\n pred [ 0 ] = top_left [ 0 ] ;\n pred [ 1 ] = top_left [ 1 ] ;\n pred [ 2 ] = top_left [ 2 ] ;\n pred [ 3 ] = top_left [ 3 ] ;\n for ( i = 0 ;\n i < ctx -> avctx -> width ;\n i ++ ) {\n UPDATE_CACHE ( bits , gb ) ;\n GET_VLC ( code , bits , gb , vlc [ 0 ] . table , 7 , 2 ) ;\n pred [ 0 ] += code ;\n dst [ 0 ] = pred [ 0 ] ;\n if ( dst [ 0 ] ) {\n UPDATE_CACHE ( bits , gb ) ;\n GET_VLC ( code , bits , gb , vlc [ 1 ] . table , 7 , 2 ) ;\n pred [ 1 ] += code ;\n dst [ 1 ] = pred [ 1 ] ;\n UPDATE_CACHE ( bits , gb ) ;\n GET_VLC ( code , bits , gb , vlc [ 2 ] . table , 7 , 2 ) ;\n pred [ 2 ] += code ;\n dst [ 2 ] = pred [ 2 ] ;\n UPDATE_CACHE ( bits , gb ) ;\n GET_VLC ( code , bits , gb , vlc [ 3 ] . table , 7 , 2 ) ;\n pred [ 3 ] += code ;\n dst [ 3 ] = pred [ 3 ] ;\n }\n else {\n dst [ 1 ] = 0 ;\n dst [ 2 ] = 0 ;\n dst [ 3 ] = 0 ;\n }\n dst += 4 ;\n }\n CLOSE_READER ( bits , gb ) ;\n dst -= 4 * ctx -> avctx -> width ;\n top_left [ 0 ] = dst [ 0 ] ;\n if ( top_left [ 0 ] ) {\n top_left [ 1 ] = dst [ 1 ] ;\n top_left [ 2 ] = dst [ 2 ] ;\n top_left [ 3 ] = dst [ 3 ] ;\n }\n return 0 ;\n }"}
{"idx": 2729, "target": 0, "func": "static void jas_image_cmpt_destroy ( jas_image_cmpt_t * cmpt ) {\n if ( cmpt -> stream_ ) {\n jas_stream_close ( cmpt -> stream_ ) ;\n }\n jas_free ( cmpt ) ;\n }"}
{"idx": 2730, "target": 1, "func": "extern int name ( int ) __THROW __exctype ( isalnum ) ;\n __exctype ( isalpha ) ;\n __exctype ( iscntrl ) ;\n __exctype ( isdigit )"}
{"idx": 2731, "target": 0, "func": "PGconn * GetConnection ( void ) {\n PGconn * tmpconn ;\n int argcount = 7 ;\n int i ;\n const char * * keywords ;\n const char * * values ;\n const char * tmpparam ;\n bool need_password ;\n PQconninfoOption * conn_opts = NULL ;\n PQconninfoOption * conn_opt ;\n char * err_msg = NULL ;\n Assert ( dbname == NULL || connection_string == NULL ) ;\n i = 0 ;\n if ( connection_string ) {\n conn_opts = PQconninfoParse ( connection_string , & err_msg ) ;\n if ( conn_opts == NULL ) {\n fprintf ( stderr , \"%s: %s\" , progname , err_msg ) ;\n exit ( 1 ) ;\n }\n for ( conn_opt = conn_opts ;\n conn_opt -> keyword != NULL ;\n conn_opt ++ ) {\n if ( conn_opt -> val != NULL && conn_opt -> val [ 0 ] != '\\0' && strcmp ( conn_opt -> keyword , \"dbname\" ) != 0 ) argcount ++ ;\n }\n keywords = pg_malloc0 ( ( argcount + 1 ) * sizeof ( * keywords ) ) ;\n values = pg_malloc0 ( ( argcount + 1 ) * sizeof ( * values ) ) ;\n for ( conn_opt = conn_opts ;\n conn_opt -> keyword != NULL ;\n conn_opt ++ ) {\n if ( conn_opt -> val != NULL && conn_opt -> val [ 0 ] != '\\0' && strcmp ( conn_opt -> keyword , \"dbname\" ) != 0 ) {\n keywords [ i ] = conn_opt -> keyword ;\n values [ i ] = conn_opt -> val ;\n i ++ ;\n }\n }\n }\n else {\n keywords = pg_malloc0 ( ( argcount + 1 ) * sizeof ( * keywords ) ) ;\n values = pg_malloc0 ( ( argcount + 1 ) * sizeof ( * values ) ) ;\n }\n keywords [ i ] = \"dbname\" ;\n values [ i ] = dbname == NULL ? \"replication\" : dbname ;\n i ++ ;\n keywords [ i ] = \"replication\" ;\n values [ i ] = dbname == NULL ? \"true\" : \"database\" ;\n i ++ ;\n keywords [ i ] = \"fallback_application_name\" ;\n values [ i ] = progname ;\n i ++ ;\n if ( dbhost ) {\n keywords [ i ] = \"host\" ;\n values [ i ] = dbhost ;\n i ++ ;\n }\n if ( dbuser ) {\n keywords [ i ] = \"user\" ;\n values [ i ] = dbuser ;\n i ++ ;\n }\n if ( dbport ) {\n keywords [ i ] = \"port\" ;\n values [ i ] = dbport ;\n i ++ ;\n }\n need_password = ( dbgetpassword == 1 && dbpassword == NULL ) ;\n do {\n if ( need_password ) {\n if ( dbpassword ) free ( dbpassword ) ;\n dbpassword = simple_prompt ( _ ( \"Password: \" ) , 100 , false ) ;\n need_password = false ;\n }\n if ( dbpassword ) {\n keywords [ i ] = \"password\" ;\n values [ i ] = dbpassword ;\n }\n else {\n keywords [ i ] = NULL ;\n values [ i ] = NULL ;\n }\n tmpconn = PQconnectdbParams ( keywords , values , true ) ;\n if ( ! tmpconn ) {\n fprintf ( stderr , _ ( \"%s: could not connect to server\\n\" ) , progname ) ;\n exit ( 1 ) ;\n }\n if ( PQstatus ( tmpconn ) == CONNECTION_BAD && PQconnectionNeedsPassword ( tmpconn ) && dbgetpassword != - 1 ) {\n PQfinish ( tmpconn ) ;\n need_password = true ;\n }\n }\n while ( need_password ) ;\n if ( PQstatus ( tmpconn ) != CONNECTION_OK ) {\n fprintf ( stderr , _ ( \"%s: could not connect to server: %s\" ) , progname , PQerrorMessage ( tmpconn ) ) ;\n PQfinish ( tmpconn ) ;\n free ( values ) ;\n free ( keywords ) ;\n if ( conn_opts ) PQconninfoFree ( conn_opts ) ;\n return NULL ;\n }\n free ( values ) ;\n free ( keywords ) ;\n if ( conn_opts ) PQconninfoFree ( conn_opts ) ;\n tmpparam = PQparameterStatus ( tmpconn , \"integer_datetimes\" ) ;\n if ( ! tmpparam ) {\n fprintf ( stderr , _ ( \"%s: could not determine server setting for integer_datetimes\\n\" ) , progname ) ;\n PQfinish ( tmpconn ) ;\n exit ( 1 ) ;\n }\n # ifdef HAVE_INT64_TIMESTAMP if ( strcmp ( tmpparam , \"on\" ) != 0 ) # else if ( strcmp ( tmpparam , \"off\" ) != 0 ) # endif {\n fprintf ( stderr , _ ( \"%s: integer_datetimes compile flag does not match server\\n\" ) , progname ) ;\n PQfinish ( tmpconn ) ;\n exit ( 1 ) ;\n }\n return tmpconn ;\n }"}
{"idx": 2732, "target": 0, "func": "static chr lexdigits ( struct vars * v , int base , int minlen , int maxlen ) {\n uchr n ;\n int len ;\n chr c ;\n int d ;\n const uchr ub = ( uchr ) base ;\n n = 0 ;\n for ( len = 0 ;\n len < maxlen && ! ATEOS ( ) ;\n len ++ ) {\n c = * v -> now ++ ;\n switch ( c ) {\n case CHR ( '0' ) : case CHR ( '1' ) : case CHR ( '2' ) : case CHR ( '3' ) : case CHR ( '4' ) : case CHR ( '5' ) : case CHR ( '6' ) : case CHR ( '7' ) : case CHR ( '8' ) : case CHR ( '9' ) : d = DIGITVAL ( c ) ;\n break ;\n case CHR ( 'a' ) : case CHR ( 'A' ) : d = 10 ;\n break ;\n case CHR ( 'b' ) : case CHR ( 'B' ) : d = 11 ;\n break ;\n case CHR ( 'c' ) : case CHR ( 'C' ) : d = 12 ;\n break ;\n case CHR ( 'd' ) : case CHR ( 'D' ) : d = 13 ;\n break ;\n case CHR ( 'e' ) : case CHR ( 'E' ) : d = 14 ;\n break ;\n case CHR ( 'f' ) : case CHR ( 'F' ) : d = 15 ;\n break ;\n default : v -> now -- ;\n d = - 1 ;\n break ;\n }\n if ( d >= base ) {\n v -> now -- ;\n d = - 1 ;\n }\n if ( d < 0 ) break ;\n n = n * ub + ( uchr ) d ;\n }\n if ( len < minlen ) ERR ( REG_EESCAPE ) ;\n return ( chr ) n ;\n }"}
{"idx": 2733, "target": 0, "func": "void vp8_sixtap_predict8x4_neon ( unsigned char * src_ptr , int src_pixels_per_line , int xoffset , int yoffset , unsigned char * dst_ptr , int dst_pitch ) {\n unsigned char * src ;\n uint8x8_t d0u8 , d1u8 , d2u8 , d3u8 , d4u8 , d5u8 , d6u8 , d7u8 , d8u8 , d9u8 ;\n uint8x8_t d22u8 , d23u8 , d24u8 , d25u8 , d26u8 ;\n uint8x8_t d27u8 , d28u8 , d29u8 , d30u8 , d31u8 ;\n int8x8_t dtmps8 , d0s8 , d1s8 , d2s8 , d3s8 , d4s8 , d5s8 ;\n uint16x8_t q3u16 , q4u16 , q5u16 , q6u16 , q7u16 ;\n uint16x8_t q8u16 , q9u16 , q10u16 , q11u16 , q12u16 ;\n int16x8_t q3s16 , q4s16 , q5s16 , q6s16 , q7s16 ;\n int16x8_t q8s16 , q9s16 , q10s16 , q11s16 , q12s16 ;\n uint8x16_t q3u8 , q4u8 , q5u8 , q6u8 , q7u8 ;\n if ( xoffset == 0 ) {\n dtmps8 = vld1_s8 ( vp8_sub_pel_filters [ yoffset ] ) ;\n d0s8 = vdup_lane_s8 ( dtmps8 , 0 ) ;\n d1s8 = vdup_lane_s8 ( dtmps8 , 1 ) ;\n d2s8 = vdup_lane_s8 ( dtmps8 , 2 ) ;\n d3s8 = vdup_lane_s8 ( dtmps8 , 3 ) ;\n d4s8 = vdup_lane_s8 ( dtmps8 , 4 ) ;\n d5s8 = vdup_lane_s8 ( dtmps8 , 5 ) ;\n d0u8 = vreinterpret_u8_s8 ( vabs_s8 ( d0s8 ) ) ;\n d1u8 = vreinterpret_u8_s8 ( vabs_s8 ( d1s8 ) ) ;\n d2u8 = vreinterpret_u8_s8 ( vabs_s8 ( d2s8 ) ) ;\n d3u8 = vreinterpret_u8_s8 ( vabs_s8 ( d3s8 ) ) ;\n d4u8 = vreinterpret_u8_s8 ( vabs_s8 ( d4s8 ) ) ;\n d5u8 = vreinterpret_u8_s8 ( vabs_s8 ( d5s8 ) ) ;\n src = src_ptr - src_pixels_per_line * 2 ;\n d22u8 = vld1_u8 ( src ) ;\n src += src_pixels_per_line ;\n d23u8 = vld1_u8 ( src ) ;\n src += src_pixels_per_line ;\n d24u8 = vld1_u8 ( src ) ;\n src += src_pixels_per_line ;\n d25u8 = vld1_u8 ( src ) ;\n src += src_pixels_per_line ;\n d26u8 = vld1_u8 ( src ) ;\n src += src_pixels_per_line ;\n d27u8 = vld1_u8 ( src ) ;\n src += src_pixels_per_line ;\n d28u8 = vld1_u8 ( src ) ;\n src += src_pixels_per_line ;\n d29u8 = vld1_u8 ( src ) ;\n src += src_pixels_per_line ;\n d30u8 = vld1_u8 ( src ) ;\n q3u16 = vmull_u8 ( d22u8 , d0u8 ) ;\n q4u16 = vmull_u8 ( d23u8 , d0u8 ) ;\n q5u16 = vmull_u8 ( d24u8 , d0u8 ) ;\n q6u16 = vmull_u8 ( d25u8 , d0u8 ) ;\n q3u16 = vmlsl_u8 ( q3u16 , d23u8 , d1u8 ) ;\n q4u16 = vmlsl_u8 ( q4u16 , d24u8 , d1u8 ) ;\n q5u16 = vmlsl_u8 ( q5u16 , d25u8 , d1u8 ) ;\n q6u16 = vmlsl_u8 ( q6u16 , d26u8 , d1u8 ) ;\n q3u16 = vmlsl_u8 ( q3u16 , d26u8 , d4u8 ) ;\n q4u16 = vmlsl_u8 ( q4u16 , d27u8 , d4u8 ) ;\n q5u16 = vmlsl_u8 ( q5u16 , d28u8 , d4u8 ) ;\n q6u16 = vmlsl_u8 ( q6u16 , d29u8 , d4u8 ) ;\n q3u16 = vmlal_u8 ( q3u16 , d24u8 , d2u8 ) ;\n q4u16 = vmlal_u8 ( q4u16 , d25u8 , d2u8 ) ;\n q5u16 = vmlal_u8 ( q5u16 , d26u8 , d2u8 ) ;\n q6u16 = vmlal_u8 ( q6u16 , d27u8 , d2u8 ) ;\n q3u16 = vmlal_u8 ( q3u16 , d27u8 , d5u8 ) ;\n q4u16 = vmlal_u8 ( q4u16 , d28u8 , d5u8 ) ;\n q5u16 = vmlal_u8 ( q5u16 , d29u8 , d5u8 ) ;\n q6u16 = vmlal_u8 ( q6u16 , d30u8 , d5u8 ) ;\n q7u16 = vmull_u8 ( d25u8 , d3u8 ) ;\n q8u16 = vmull_u8 ( d26u8 , d3u8 ) ;\n q9u16 = vmull_u8 ( d27u8 , d3u8 ) ;\n q10u16 = vmull_u8 ( d28u8 , d3u8 ) ;\n q3s16 = vreinterpretq_s16_u16 ( q3u16 ) ;\n q4s16 = vreinterpretq_s16_u16 ( q4u16 ) ;\n q5s16 = vreinterpretq_s16_u16 ( q5u16 ) ;\n q6s16 = vreinterpretq_s16_u16 ( q6u16 ) ;\n q7s16 = vreinterpretq_s16_u16 ( q7u16 ) ;\n q8s16 = vreinterpretq_s16_u16 ( q8u16 ) ;\n q9s16 = vreinterpretq_s16_u16 ( q9u16 ) ;\n q10s16 = vreinterpretq_s16_u16 ( q10u16 ) ;\n q7s16 = vqaddq_s16 ( q7s16 , q3s16 ) ;\n q8s16 = vqaddq_s16 ( q8s16 , q4s16 ) ;\n q9s16 = vqaddq_s16 ( q9s16 , q5s16 ) ;\n q10s16 = vqaddq_s16 ( q10s16 , q6s16 ) ;\n d6u8 = vqrshrun_n_s16 ( q7s16 , 7 ) ;\n d7u8 = vqrshrun_n_s16 ( q8s16 , 7 ) ;\n d8u8 = vqrshrun_n_s16 ( q9s16 , 7 ) ;\n d9u8 = vqrshrun_n_s16 ( q10s16 , 7 ) ;\n vst1_u8 ( dst_ptr , d6u8 ) ;\n dst_ptr += dst_pitch ;\n vst1_u8 ( dst_ptr , d7u8 ) ;\n dst_ptr += dst_pitch ;\n vst1_u8 ( dst_ptr , d8u8 ) ;\n dst_ptr += dst_pitch ;\n vst1_u8 ( dst_ptr , d9u8 ) ;\n return ;\n }\n dtmps8 = vld1_s8 ( vp8_sub_pel_filters [ xoffset ] ) ;\n d0s8 = vdup_lane_s8 ( dtmps8 , 0 ) ;\n d1s8 = vdup_lane_s8 ( dtmps8 , 1 ) ;\n d2s8 = vdup_lane_s8 ( dtmps8 , 2 ) ;\n d3s8 = vdup_lane_s8 ( dtmps8 , 3 ) ;\n d4s8 = vdup_lane_s8 ( dtmps8 , 4 ) ;\n d5s8 = vdup_lane_s8 ( dtmps8 , 5 ) ;\n d0u8 = vreinterpret_u8_s8 ( vabs_s8 ( d0s8 ) ) ;\n d1u8 = vreinterpret_u8_s8 ( vabs_s8 ( d1s8 ) ) ;\n d2u8 = vreinterpret_u8_s8 ( vabs_s8 ( d2s8 ) ) ;\n d3u8 = vreinterpret_u8_s8 ( vabs_s8 ( d3s8 ) ) ;\n d4u8 = vreinterpret_u8_s8 ( vabs_s8 ( d4s8 ) ) ;\n d5u8 = vreinterpret_u8_s8 ( vabs_s8 ( d5s8 ) ) ;\n if ( yoffset == 0 ) src = src_ptr - 2 ;\n else src = src_ptr - 2 - ( src_pixels_per_line * 2 ) ;\n q3u8 = vld1q_u8 ( src ) ;\n src += src_pixels_per_line ;\n q4u8 = vld1q_u8 ( src ) ;\n src += src_pixels_per_line ;\n q5u8 = vld1q_u8 ( src ) ;\n src += src_pixels_per_line ;\n q6u8 = vld1q_u8 ( src ) ;\n q7u16 = vmull_u8 ( vget_low_u8 ( q3u8 ) , d0u8 ) ;\n q8u16 = vmull_u8 ( vget_low_u8 ( q4u8 ) , d0u8 ) ;\n q9u16 = vmull_u8 ( vget_low_u8 ( q5u8 ) , d0u8 ) ;\n q10u16 = vmull_u8 ( vget_low_u8 ( q6u8 ) , d0u8 ) ;\n d28u8 = vext_u8 ( vget_low_u8 ( q3u8 ) , vget_high_u8 ( q3u8 ) , 1 ) ;\n d29u8 = vext_u8 ( vget_low_u8 ( q4u8 ) , vget_high_u8 ( q4u8 ) , 1 ) ;\n d30u8 = vext_u8 ( vget_low_u8 ( q5u8 ) , vget_high_u8 ( q5u8 ) , 1 ) ;\n d31u8 = vext_u8 ( vget_low_u8 ( q6u8 ) , vget_high_u8 ( q6u8 ) , 1 ) ;\n q7u16 = vmlsl_u8 ( q7u16 , d28u8 , d1u8 ) ;\n q8u16 = vmlsl_u8 ( q8u16 , d29u8 , d1u8 ) ;\n q9u16 = vmlsl_u8 ( q9u16 , d30u8 , d1u8 ) ;\n q10u16 = vmlsl_u8 ( q10u16 , d31u8 , d1u8 ) ;\n d28u8 = vext_u8 ( vget_low_u8 ( q3u8 ) , vget_high_u8 ( q3u8 ) , 4 ) ;\n d29u8 = vext_u8 ( vget_low_u8 ( q4u8 ) , vget_high_u8 ( q4u8 ) , 4 ) ;\n d30u8 = vext_u8 ( vget_low_u8 ( q5u8 ) , vget_high_u8 ( q5u8 ) , 4 ) ;\n d31u8 = vext_u8 ( vget_low_u8 ( q6u8 ) , vget_high_u8 ( q6u8 ) , 4 ) ;\n q7u16 = vmlsl_u8 ( q7u16 , d28u8 , d4u8 ) ;\n q8u16 = vmlsl_u8 ( q8u16 , d29u8 , d4u8 ) ;\n q9u16 = vmlsl_u8 ( q9u16 , d30u8 , d4u8 ) ;\n q10u16 = vmlsl_u8 ( q10u16 , d31u8 , d4u8 ) ;\n d28u8 = vext_u8 ( vget_low_u8 ( q3u8 ) , vget_high_u8 ( q3u8 ) , 2 ) ;\n d29u8 = vext_u8 ( vget_low_u8 ( q4u8 ) , vget_high_u8 ( q4u8 ) , 2 ) ;\n d30u8 = vext_u8 ( vget_low_u8 ( q5u8 ) , vget_high_u8 ( q5u8 ) , 2 ) ;\n d31u8 = vext_u8 ( vget_low_u8 ( q6u8 ) , vget_high_u8 ( q6u8 ) , 2 ) ;\n q7u16 = vmlal_u8 ( q7u16 , d28u8 , d2u8 ) ;\n q8u16 = vmlal_u8 ( q8u16 , d29u8 , d2u8 ) ;\n q9u16 = vmlal_u8 ( q9u16 , d30u8 , d2u8 ) ;\n q10u16 = vmlal_u8 ( q10u16 , d31u8 , d2u8 ) ;\n d28u8 = vext_u8 ( vget_low_u8 ( q3u8 ) , vget_high_u8 ( q3u8 ) , 5 ) ;\n d29u8 = vext_u8 ( vget_low_u8 ( q4u8 ) , vget_high_u8 ( q4u8 ) , 5 ) ;\n d30u8 = vext_u8 ( vget_low_u8 ( q5u8 ) , vget_high_u8 ( q5u8 ) , 5 ) ;\n d31u8 = vext_u8 ( vget_low_u8 ( q6u8 ) , vget_high_u8 ( q6u8 ) , 5 ) ;\n q7u16 = vmlal_u8 ( q7u16 , d28u8 , d5u8 ) ;\n q8u16 = vmlal_u8 ( q8u16 , d29u8 , d5u8 ) ;\n q9u16 = vmlal_u8 ( q9u16 , d30u8 , d5u8 ) ;\n q10u16 = vmlal_u8 ( q10u16 , d31u8 , d5u8 ) ;\n d28u8 = vext_u8 ( vget_low_u8 ( q3u8 ) , vget_high_u8 ( q3u8 ) , 3 ) ;\n d29u8 = vext_u8 ( vget_low_u8 ( q4u8 ) , vget_high_u8 ( q4u8 ) , 3 ) ;\n d30u8 = vext_u8 ( vget_low_u8 ( q5u8 ) , vget_high_u8 ( q5u8 ) , 3 ) ;\n d31u8 = vext_u8 ( vget_low_u8 ( q6u8 ) , vget_high_u8 ( q6u8 ) , 3 ) ;\n q3u16 = vmull_u8 ( d28u8 , d3u8 ) ;\n q4u16 = vmull_u8 ( d29u8 , d3u8 ) ;\n q5u16 = vmull_u8 ( d30u8 , d3u8 ) ;\n q6u16 = vmull_u8 ( d31u8 , d3u8 ) ;\n q3s16 = vreinterpretq_s16_u16 ( q3u16 ) ;\n q4s16 = vreinterpretq_s16_u16 ( q4u16 ) ;\n q5s16 = vreinterpretq_s16_u16 ( q5u16 ) ;\n q6s16 = vreinterpretq_s16_u16 ( q6u16 ) ;\n q7s16 = vreinterpretq_s16_u16 ( q7u16 ) ;\n q8s16 = vreinterpretq_s16_u16 ( q8u16 ) ;\n q9s16 = vreinterpretq_s16_u16 ( q9u16 ) ;\n q10s16 = vreinterpretq_s16_u16 ( q10u16 ) ;\n q7s16 = vqaddq_s16 ( q7s16 , q3s16 ) ;\n q8s16 = vqaddq_s16 ( q8s16 , q4s16 ) ;\n q9s16 = vqaddq_s16 ( q9s16 , q5s16 ) ;\n q10s16 = vqaddq_s16 ( q10s16 , q6s16 ) ;\n d22u8 = vqrshrun_n_s16 ( q7s16 , 7 ) ;\n d23u8 = vqrshrun_n_s16 ( q8s16 , 7 ) ;\n d24u8 = vqrshrun_n_s16 ( q9s16 , 7 ) ;\n d25u8 = vqrshrun_n_s16 ( q10s16 , 7 ) ;\n if ( yoffset == 0 ) {\n vst1_u8 ( dst_ptr , d22u8 ) ;\n dst_ptr += dst_pitch ;\n vst1_u8 ( dst_ptr , d23u8 ) ;\n dst_ptr += dst_pitch ;\n vst1_u8 ( dst_ptr , d24u8 ) ;\n dst_ptr += dst_pitch ;\n vst1_u8 ( dst_ptr , d25u8 ) ;\n return ;\n }\n src += src_pixels_per_line ;\n q3u8 = vld1q_u8 ( src ) ;\n src += src_pixels_per_line ;\n q4u8 = vld1q_u8 ( src ) ;\n src += src_pixels_per_line ;\n q5u8 = vld1q_u8 ( src ) ;\n src += src_pixels_per_line ;\n q6u8 = vld1q_u8 ( src ) ;\n src += src_pixels_per_line ;\n q7u8 = vld1q_u8 ( src ) ;\n q8u16 = vmull_u8 ( vget_low_u8 ( q3u8 ) , d0u8 ) ;\n q9u16 = vmull_u8 ( vget_low_u8 ( q4u8 ) , d0u8 ) ;\n q10u16 = vmull_u8 ( vget_low_u8 ( q5u8 ) , d0u8 ) ;\n q11u16 = vmull_u8 ( vget_low_u8 ( q6u8 ) , d0u8 ) ;\n q12u16 = vmull_u8 ( vget_low_u8 ( q7u8 ) , d0u8 ) ;\n d27u8 = vext_u8 ( vget_low_u8 ( q3u8 ) , vget_high_u8 ( q3u8 ) , 1 ) ;\n d28u8 = vext_u8 ( vget_low_u8 ( q4u8 ) , vget_high_u8 ( q4u8 ) , 1 ) ;\n d29u8 = vext_u8 ( vget_low_u8 ( q5u8 ) , vget_high_u8 ( q5u8 ) , 1 ) ;\n d30u8 = vext_u8 ( vget_low_u8 ( q6u8 ) , vget_high_u8 ( q6u8 ) , 1 ) ;\n d31u8 = vext_u8 ( vget_low_u8 ( q7u8 ) , vget_high_u8 ( q7u8 ) , 1 ) ;\n q8u16 = vmlsl_u8 ( q8u16 , d27u8 , d1u8 ) ;\n q9u16 = vmlsl_u8 ( q9u16 , d28u8 , d1u8 ) ;\n q10u16 = vmlsl_u8 ( q10u16 , d29u8 , d1u8 ) ;\n q11u16 = vmlsl_u8 ( q11u16 , d30u8 , d1u8 ) ;\n q12u16 = vmlsl_u8 ( q12u16 , d31u8 , d1u8 ) ;\n d27u8 = vext_u8 ( vget_low_u8 ( q3u8 ) , vget_high_u8 ( q3u8 ) , 4 ) ;\n d28u8 = vext_u8 ( vget_low_u8 ( q4u8 ) , vget_high_u8 ( q4u8 ) , 4 ) ;\n d29u8 = vext_u8 ( vget_low_u8 ( q5u8 ) , vget_high_u8 ( q5u8 ) , 4 ) ;\n d30u8 = vext_u8 ( vget_low_u8 ( q6u8 ) , vget_high_u8 ( q6u8 ) , 4 ) ;\n d31u8 = vext_u8 ( vget_low_u8 ( q7u8 ) , vget_high_u8 ( q7u8 ) , 4 ) ;\n q8u16 = vmlsl_u8 ( q8u16 , d27u8 , d4u8 ) ;\n q9u16 = vmlsl_u8 ( q9u16 , d28u8 , d4u8 ) ;\n q10u16 = vmlsl_u8 ( q10u16 , d29u8 , d4u8 ) ;\n q11u16 = vmlsl_u8 ( q11u16 , d30u8 , d4u8 ) ;\n q12u16 = vmlsl_u8 ( q12u16 , d31u8 , d4u8 ) ;\n d27u8 = vext_u8 ( vget_low_u8 ( q3u8 ) , vget_high_u8 ( q3u8 ) , 2 ) ;\n d28u8 = vext_u8 ( vget_low_u8 ( q4u8 ) , vget_high_u8 ( q4u8 ) , 2 ) ;\n d29u8 = vext_u8 ( vget_low_u8 ( q5u8 ) , vget_high_u8 ( q5u8 ) , 2 ) ;\n d30u8 = vext_u8 ( vget_low_u8 ( q6u8 ) , vget_high_u8 ( q6u8 ) , 2 ) ;\n d31u8 = vext_u8 ( vget_low_u8 ( q7u8 ) , vget_high_u8 ( q7u8 ) , 2 ) ;\n q8u16 = vmlal_u8 ( q8u16 , d27u8 , d2u8 ) ;\n q9u16 = vmlal_u8 ( q9u16 , d28u8 , d2u8 ) ;\n q10u16 = vmlal_u8 ( q10u16 , d29u8 , d2u8 ) ;\n q11u16 = vmlal_u8 ( q11u16 , d30u8 , d2u8 ) ;\n q12u16 = vmlal_u8 ( q12u16 , d31u8 , d2u8 ) ;\n d27u8 = vext_u8 ( vget_low_u8 ( q3u8 ) , vget_high_u8 ( q3u8 ) , 5 ) ;\n d28u8 = vext_u8 ( vget_low_u8 ( q4u8 ) , vget_high_u8 ( q4u8 ) , 5 ) ;\n d29u8 = vext_u8 ( vget_low_u8 ( q5u8 ) , vget_high_u8 ( q5u8 ) , 5 ) ;\n d30u8 = vext_u8 ( vget_low_u8 ( q6u8 ) , vget_high_u8 ( q6u8 ) , 5 ) ;\n d31u8 = vext_u8 ( vget_low_u8 ( q7u8 ) , vget_high_u8 ( q7u8 ) , 5 ) ;\n q8u16 = vmlal_u8 ( q8u16 , d27u8 , d5u8 ) ;\n q9u16 = vmlal_u8 ( q9u16 , d28u8 , d5u8 ) ;\n q10u16 = vmlal_u8 ( q10u16 , d29u8 , d5u8 ) ;\n q11u16 = vmlal_u8 ( q11u16 , d30u8 , d5u8 ) ;\n q12u16 = vmlal_u8 ( q12u16 , d31u8 , d5u8 ) ;\n d27u8 = vext_u8 ( vget_low_u8 ( q3u8 ) , vget_high_u8 ( q3u8 ) , 3 ) ;\n d28u8 = vext_u8 ( vget_low_u8 ( q4u8 ) , vget_high_u8 ( q4u8 ) , 3 ) ;\n d29u8 = vext_u8 ( vget_low_u8 ( q5u8 ) , vget_high_u8 ( q5u8 ) , 3 ) ;\n d30u8 = vext_u8 ( vget_low_u8 ( q6u8 ) , vget_high_u8 ( q6u8 ) , 3 ) ;\n d31u8 = vext_u8 ( vget_low_u8 ( q7u8 ) , vget_high_u8 ( q7u8 ) , 3 ) ;\n q3u16 = vmull_u8 ( d27u8 , d3u8 ) ;\n q4u16 = vmull_u8 ( d28u8 , d3u8 ) ;\n q5u16 = vmull_u8 ( d29u8 , d3u8 ) ;\n q6u16 = vmull_u8 ( d30u8 , d3u8 ) ;\n q7u16 = vmull_u8 ( d31u8 , d3u8 ) ;\n q3s16 = vreinterpretq_s16_u16 ( q3u16 ) ;\n q4s16 = vreinterpretq_s16_u16 ( q4u16 ) ;\n q5s16 = vreinterpretq_s16_u16 ( q5u16 ) ;\n q6s16 = vreinterpretq_s16_u16 ( q6u16 ) ;\n q7s16 = vreinterpretq_s16_u16 ( q7u16 ) ;\n q8s16 = vreinterpretq_s16_u16 ( q8u16 ) ;\n q9s16 = vreinterpretq_s16_u16 ( q9u16 ) ;\n q10s16 = vreinterpretq_s16_u16 ( q10u16 ) ;\n q11s16 = vreinterpretq_s16_u16 ( q11u16 ) ;\n q12s16 = vreinterpretq_s16_u16 ( q12u16 ) ;\n q8s16 = vqaddq_s16 ( q8s16 , q3s16 ) ;\n q9s16 = vqaddq_s16 ( q9s16 , q4s16 ) ;\n q10s16 = vqaddq_s16 ( q10s16 , q5s16 ) ;\n q11s16 = vqaddq_s16 ( q11s16 , q6s16 ) ;\n q12s16 = vqaddq_s16 ( q12s16 , q7s16 ) ;\n d26u8 = vqrshrun_n_s16 ( q8s16 , 7 ) ;\n d27u8 = vqrshrun_n_s16 ( q9s16 , 7 ) ;\n d28u8 = vqrshrun_n_s16 ( q10s16 , 7 ) ;\n d29u8 = vqrshrun_n_s16 ( q11s16 , 7 ) ;\n d30u8 = vqrshrun_n_s16 ( q12s16 , 7 ) ;\n dtmps8 = vld1_s8 ( vp8_sub_pel_filters [ yoffset ] ) ;\n d0s8 = vdup_lane_s8 ( dtmps8 , 0 ) ;\n d1s8 = vdup_lane_s8 ( dtmps8 , 1 ) ;\n d2s8 = vdup_lane_s8 ( dtmps8 , 2 ) ;\n d3s8 = vdup_lane_s8 ( dtmps8 , 3 ) ;\n d4s8 = vdup_lane_s8 ( dtmps8 , 4 ) ;\n d5s8 = vdup_lane_s8 ( dtmps8 , 5 ) ;\n d0u8 = vreinterpret_u8_s8 ( vabs_s8 ( d0s8 ) ) ;\n d1u8 = vreinterpret_u8_s8 ( vabs_s8 ( d1s8 ) ) ;\n d2u8 = vreinterpret_u8_s8 ( vabs_s8 ( d2s8 ) ) ;\n d3u8 = vreinterpret_u8_s8 ( vabs_s8 ( d3s8 ) ) ;\n d4u8 = vreinterpret_u8_s8 ( vabs_s8 ( d4s8 ) ) ;\n d5u8 = vreinterpret_u8_s8 ( vabs_s8 ( d5s8 ) ) ;\n q3u16 = vmull_u8 ( d22u8 , d0u8 ) ;\n q4u16 = vmull_u8 ( d23u8 , d0u8 ) ;\n q5u16 = vmull_u8 ( d24u8 , d0u8 ) ;\n q6u16 = vmull_u8 ( d25u8 , d0u8 ) ;\n q3u16 = vmlsl_u8 ( q3u16 , d23u8 , d1u8 ) ;\n q4u16 = vmlsl_u8 ( q4u16 , d24u8 , d1u8 ) ;\n q5u16 = vmlsl_u8 ( q5u16 , d25u8 , d1u8 ) ;\n q6u16 = vmlsl_u8 ( q6u16 , d26u8 , d1u8 ) ;\n q3u16 = vmlsl_u8 ( q3u16 , d26u8 , d4u8 ) ;\n q4u16 = vmlsl_u8 ( q4u16 , d27u8 , d4u8 ) ;\n q5u16 = vmlsl_u8 ( q5u16 , d28u8 , d4u8 ) ;\n q6u16 = vmlsl_u8 ( q6u16 , d29u8 , d4u8 ) ;\n q3u16 = vmlal_u8 ( q3u16 , d24u8 , d2u8 ) ;\n q4u16 = vmlal_u8 ( q4u16 , d25u8 , d2u8 ) ;\n q5u16 = vmlal_u8 ( q5u16 , d26u8 , d2u8 ) ;\n q6u16 = vmlal_u8 ( q6u16 , d27u8 , d2u8 ) ;\n q3u16 = vmlal_u8 ( q3u16 , d27u8 , d5u8 ) ;\n q4u16 = vmlal_u8 ( q4u16 , d28u8 , d5u8 ) ;\n q5u16 = vmlal_u8 ( q5u16 , d29u8 , d5u8 ) ;\n q6u16 = vmlal_u8 ( q6u16 , d30u8 , d5u8 ) ;\n q7u16 = vmull_u8 ( d25u8 , d3u8 ) ;\n q8u16 = vmull_u8 ( d26u8 , d3u8 ) ;\n q9u16 = vmull_u8 ( d27u8 , d3u8 ) ;\n q10u16 = vmull_u8 ( d28u8 , d3u8 ) ;\n q3s16 = vreinterpretq_s16_u16 ( q3u16 ) ;\n q4s16 = vreinterpretq_s16_u16 ( q4u16 ) ;\n q5s16 = vreinterpretq_s16_u16 ( q5u16 ) ;\n q6s16 = vreinterpretq_s16_u16 ( q6u16 ) ;\n q7s16 = vreinterpretq_s16_u16 ( q7u16 ) ;\n q8s16 = vreinterpretq_s16_u16 ( q8u16 ) ;\n q9s16 = vreinterpretq_s16_u16 ( q9u16 ) ;\n q10s16 = vreinterpretq_s16_u16 ( q10u16 ) ;\n q7s16 = vqaddq_s16 ( q7s16 , q3s16 ) ;\n q8s16 = vqaddq_s16 ( q8s16 , q4s16 ) ;\n q9s16 = vqaddq_s16 ( q9s16 , q5s16 ) ;\n q10s16 = vqaddq_s16 ( q10s16 , q6s16 ) ;\n d6u8 = vqrshrun_n_s16 ( q7s16 , 7 ) ;\n d7u8 = vqrshrun_n_s16 ( q8s16 , 7 ) ;\n d8u8 = vqrshrun_n_s16 ( q9s16 , 7 ) ;\n d9u8 = vqrshrun_n_s16 ( q10s16 , 7 ) ;\n vst1_u8 ( dst_ptr , d6u8 ) ;\n dst_ptr += dst_pitch ;\n vst1_u8 ( dst_ptr , d7u8 ) ;\n dst_ptr += dst_pitch ;\n vst1_u8 ( dst_ptr , d8u8 ) ;\n dst_ptr += dst_pitch ;\n vst1_u8 ( dst_ptr , d9u8 ) ;\n return ;\n }"}
{"idx": 2734, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( SingleClientSessionsSyncTest , TimestampMatchesHistory ) {\n ASSERT_TRUE ( SetupSync ( ) ) << \"SetupSync() failed.\" ;\n ASSERT_TRUE ( CheckInitialState ( 0 ) ) ;\n const GURL url ( \"about:version\" ) ;\n ScopedWindowMap windows ;\n ASSERT_TRUE ( OpenTabAndGetLocalWindows ( 0 , url , windows . GetMutable ( ) ) ) ;\n int found_navigations = 0 ;\n for ( SessionWindowMap : : const_iterator it = windows . Get ( ) -> begin ( ) ;\n it != windows . Get ( ) -> end ( ) ;\n ++ it ) {\n for ( std : : vector < sessions : : SessionTab * > : : const_iterator it2 = it -> second -> tabs . begin ( ) ;\n it2 != it -> second -> tabs . end ( ) ;\n ++ it2 ) {\n for ( std : : vector < sessions : : SerializedNavigationEntry > : : const_iterator it3 = ( * it2 ) -> navigations . begin ( ) ;\n it3 != ( * it2 ) -> navigations . end ( ) ;\n ++ it3 ) {\n const base : : Time timestamp = it3 -> timestamp ( ) ;\n history : : URLRow virtual_row ;\n ASSERT_TRUE ( GetUrlFromClient ( 0 , it3 -> virtual_url ( ) , & virtual_row ) ) ;\n const base : : Time history_timestamp = virtual_row . last_visit ( ) ;\n ASSERT_EQ ( timestamp , history_timestamp ) ;\n ++ found_navigations ;\n }\n }\n }\n ASSERT_EQ ( 1 , found_navigations ) ;\n }"}
{"idx": 2735, "target": 1, "func": "static int vc1_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size , n_slices = 0 , i ;\n VC1Context * v = avctx -> priv_data ;\n MpegEncContext * s = & v -> s ;\n AVFrame * pict = data ;\n uint8_t * buf2 = NULL ;\n const uint8_t * buf_start = buf ;\n int mb_height , n_slices1 ;\n struct {\n uint8_t * buf ;\n GetBitContext gb ;\n int mby_start ;\n }\n * slices = NULL , * tmp ;\n if ( buf_size == 0 || ( buf_size == 4 && AV_RB32 ( buf ) == VC1_CODE_ENDOFSEQ ) ) {\n if ( s -> low_delay == 0 && s -> next_picture_ptr ) {\n * pict = s -> next_picture_ptr -> f ;\n s -> next_picture_ptr = NULL ;\n * got_frame = 1 ;\n }\n return 0 ;\n }\n if ( s -> avctx -> codec -> capabilities & CODEC_CAP_HWACCEL_VDPAU ) {\n if ( v -> profile < PROFILE_ADVANCED ) avctx -> pix_fmt = AV_PIX_FMT_VDPAU_WMV3 ;\n else avctx -> pix_fmt = AV_PIX_FMT_VDPAU_VC1 ;\n }\n if ( avctx -> codec_id == AV_CODEC_ID_VC1 || avctx -> codec_id == AV_CODEC_ID_VC1IMAGE ) {\n int buf_size2 = 0 ;\n buf2 = av_mallocz ( buf_size + FF_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( IS_MARKER ( AV_RB32 ( buf ) ) ) {\n const uint8_t * start , * end , * next ;\n int size ;\n next = buf ;\n for ( start = buf , end = buf + buf_size ;\n next < end ;\n start = next ) {\n next = find_next_marker ( start + 4 , end ) ;\n size = next - start - 4 ;\n if ( size <= 0 ) continue ;\n switch ( AV_RB32 ( start ) ) {\n case VC1_CODE_FRAME : if ( avctx -> hwaccel || s -> avctx -> codec -> capabilities & CODEC_CAP_HWACCEL_VDPAU ) buf_start = start ;\n buf_size2 = vc1_unescape_buffer ( start + 4 , size , buf2 ) ;\n break ;\n case VC1_CODE_FIELD : {\n int buf_size3 ;\n tmp = av_realloc ( slices , sizeof ( * slices ) * ( n_slices + 1 ) ) ;\n if ( ! tmp ) goto err ;\n slices = tmp ;\n slices [ n_slices ] . buf = av_mallocz ( buf_size + FF_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( ! slices [ n_slices ] . buf ) goto err ;\n buf_size3 = vc1_unescape_buffer ( start + 4 , size , slices [ n_slices ] . buf ) ;\n init_get_bits ( & slices [ n_slices ] . gb , slices [ n_slices ] . buf , buf_size3 << 3 ) ;\n slices [ n_slices ] . mby_start = s -> mb_height >> 1 ;\n n_slices1 = n_slices - 1 ;\n n_slices ++ ;\n break ;\n }\n case VC1_CODE_ENTRYPOINT : buf_size2 = vc1_unescape_buffer ( start + 4 , size , buf2 ) ;\n init_get_bits ( & s -> gb , buf2 , buf_size2 * 8 ) ;\n ff_vc1_decode_entry_point ( avctx , v , & s -> gb ) ;\n break ;\n case VC1_CODE_SLICE : {\n int buf_size3 ;\n tmp = av_realloc ( slices , sizeof ( * slices ) * ( n_slices + 1 ) ) ;\n if ( ! tmp ) goto err ;\n slices = tmp ;\n slices [ n_slices ] . buf = av_mallocz ( buf_size + FF_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( ! slices [ n_slices ] . buf ) goto err ;\n buf_size3 = vc1_unescape_buffer ( start + 4 , size , slices [ n_slices ] . buf ) ;\n init_get_bits ( & slices [ n_slices ] . gb , slices [ n_slices ] . buf , buf_size3 << 3 ) ;\n slices [ n_slices ] . mby_start = get_bits ( & slices [ n_slices ] . gb , 9 ) ;\n n_slices ++ ;\n break ;\n }\n }\n }\n }\n else if ( v -> interlace && ( ( buf [ 0 ] & 0xC0 ) == 0xC0 ) ) {\n const uint8_t * divider ;\n int buf_size3 ;\n divider = find_next_marker ( buf , buf + buf_size ) ;\n if ( ( divider == ( buf + buf_size ) ) || AV_RB32 ( divider ) != VC1_CODE_FIELD ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error in WVC1 interlaced frame\\n\" ) ;\n goto err ;\n }\n else {\n tmp = av_realloc ( slices , sizeof ( * slices ) * ( n_slices + 1 ) ) ;\n if ( ! tmp ) goto err ;\n slices = tmp ;\n slices [ n_slices ] . buf = av_mallocz ( buf_size + FF_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( ! slices [ n_slices ] . buf ) goto err ;\n buf_size3 = vc1_unescape_buffer ( divider + 4 , buf + buf_size - divider - 4 , slices [ n_slices ] . buf ) ;\n init_get_bits ( & slices [ n_slices ] . gb , slices [ n_slices ] . buf , buf_size3 << 3 ) ;\n slices [ n_slices ] . mby_start = s -> mb_height >> 1 ;\n n_slices1 = n_slices - 1 ;\n n_slices ++ ;\n }\n buf_size2 = vc1_unescape_buffer ( buf , divider - buf , buf2 ) ;\n }\n else {\n buf_size2 = vc1_unescape_buffer ( buf , buf_size , buf2 ) ;\n }\n init_get_bits ( & s -> gb , buf2 , buf_size2 * 8 ) ;\n }\n else init_get_bits ( & s -> gb , buf , buf_size * 8 ) ;\n if ( v -> res_sprite ) {\n v -> new_sprite = ! get_bits1 ( & s -> gb ) ;\n v -> two_sprites = get_bits1 ( & s -> gb ) ;\n if ( avctx -> codec_id == AV_CODEC_ID_WMV3IMAGE || avctx -> codec_id == AV_CODEC_ID_VC1IMAGE ) {\n if ( v -> new_sprite ) {\n avctx -> width = avctx -> coded_width = v -> sprite_width ;\n avctx -> height = avctx -> coded_height = v -> sprite_height ;\n }\n else {\n goto image ;\n }\n }\n }\n if ( s -> context_initialized && ( s -> width != avctx -> coded_width || s -> height != avctx -> coded_height ) ) {\n ff_vc1_decode_end ( avctx ) ;\n }\n if ( ! s -> context_initialized ) {\n if ( ff_msmpeg4_decode_init ( avctx ) < 0 || ff_vc1_decode_init_alloc_tables ( v ) < 0 ) goto err ;\n s -> low_delay = ! avctx -> has_b_frames || v -> res_sprite ;\n if ( v -> profile == PROFILE_ADVANCED ) {\n s -> h_edge_pos = avctx -> coded_width ;\n s -> v_edge_pos = avctx -> coded_height ;\n }\n }\n if ( s -> current_picture_ptr == NULL || s -> current_picture_ptr -> f . data [ 0 ] ) {\n int i = ff_find_unused_picture ( s , 0 ) ;\n if ( i < 0 ) goto err ;\n s -> current_picture_ptr = & s -> picture [ i ] ;\n }\n v -> pic_header_flag = 0 ;\n if ( v -> profile < PROFILE_ADVANCED ) {\n if ( ff_vc1_parse_frame_header ( v , & s -> gb ) == - 1 ) {\n goto err ;\n }\n }\n else {\n if ( ff_vc1_parse_frame_header_adv ( v , & s -> gb ) == - 1 ) {\n goto err ;\n }\n }\n if ( ( avctx -> codec_id == AV_CODEC_ID_WMV3IMAGE || avctx -> codec_id == AV_CODEC_ID_VC1IMAGE ) && s -> pict_type != AV_PICTURE_TYPE_I ) {\n av_log ( v -> s . avctx , AV_LOG_ERROR , \"Sprite decoder: expected I-frame\\n\" ) ;\n goto err ;\n }\n s -> current_picture_ptr -> f . repeat_pict = 0 ;\n if ( v -> rff ) {\n s -> current_picture_ptr -> f . repeat_pict = 1 ;\n }\n else if ( v -> rptfrm ) {\n s -> current_picture_ptr -> f . repeat_pict = v -> rptfrm * 2 ;\n }\n s -> current_picture . f . pict_type = s -> pict_type ;\n s -> current_picture . f . key_frame = s -> pict_type == AV_PICTURE_TYPE_I ;\n if ( s -> last_picture_ptr == NULL && ( s -> pict_type == AV_PICTURE_TYPE_B || s -> droppable ) ) {\n goto err ;\n }\n if ( ( avctx -> skip_frame >= AVDISCARD_NONREF && s -> pict_type == AV_PICTURE_TYPE_B ) || ( avctx -> skip_frame >= AVDISCARD_NONKEY && s -> pict_type != AV_PICTURE_TYPE_I ) || avctx -> skip_frame >= AVDISCARD_ALL ) {\n goto end ;\n }\n if ( s -> next_p_frame_damaged ) {\n if ( s -> pict_type == AV_PICTURE_TYPE_B ) goto end ;\n else s -> next_p_frame_damaged = 0 ;\n }\n if ( ff_MPV_frame_start ( s , avctx ) < 0 ) {\n goto err ;\n }\n s -> me . qpel_put = s -> dsp . put_qpel_pixels_tab ;\n s -> me . qpel_avg = s -> dsp . avg_qpel_pixels_tab ;\n if ( ( CONFIG_VC1_VDPAU_DECODER ) && s -> avctx -> codec -> capabilities & CODEC_CAP_HWACCEL_VDPAU ) ff_vdpau_vc1_decode_picture ( s , buf_start , ( buf + buf_size ) - buf_start ) ;\n else if ( avctx -> hwaccel ) {\n if ( avctx -> hwaccel -> start_frame ( avctx , buf , buf_size ) < 0 ) goto err ;\n if ( avctx -> hwaccel -> decode_slice ( avctx , buf_start , ( buf + buf_size ) - buf_start ) < 0 ) goto err ;\n if ( avctx -> hwaccel -> end_frame ( avctx ) < 0 ) goto err ;\n }\n else {\n ff_mpeg_er_frame_start ( s ) ;\n v -> bits = buf_size * 8 ;\n v -> end_mb_x = s -> mb_width ;\n if ( v -> field_mode ) {\n uint8_t * tmp [ 2 ] ;\n s -> current_picture . f . linesize [ 0 ] <<= 1 ;\n s -> current_picture . f . linesize [ 1 ] <<= 1 ;\n s -> current_picture . f . linesize [ 2 ] <<= 1 ;\n s -> linesize <<= 1 ;\n s -> uvlinesize <<= 1 ;\n tmp [ 0 ] = v -> mv_f_last [ 0 ] ;\n tmp [ 1 ] = v -> mv_f_last [ 1 ] ;\n v -> mv_f_last [ 0 ] = v -> mv_f_next [ 0 ] ;\n v -> mv_f_last [ 1 ] = v -> mv_f_next [ 1 ] ;\n v -> mv_f_next [ 0 ] = v -> mv_f [ 0 ] ;\n v -> mv_f_next [ 1 ] = v -> mv_f [ 1 ] ;\n v -> mv_f [ 0 ] = tmp [ 0 ] ;\n v -> mv_f [ 1 ] = tmp [ 1 ] ;\n }\n mb_height = s -> mb_height >> v -> field_mode ;\n for ( i = 0 ;\n i <= n_slices ;\n i ++ ) {\n if ( i > 0 && slices [ i - 1 ] . mby_start >= mb_height ) {\n if ( v -> field_mode <= 0 ) {\n av_log ( v -> s . avctx , AV_LOG_ERROR , \"Slice %d starts beyond \" \"picture boundary (%d >= %d)\\n\" , i , slices [ i - 1 ] . mby_start , mb_height ) ;\n continue ;\n }\n v -> second_field = 1 ;\n v -> blocks_off = s -> mb_width * s -> mb_height << 1 ;\n v -> mb_off = s -> mb_stride * s -> mb_height >> 1 ;\n }\n else {\n v -> second_field = 0 ;\n v -> blocks_off = 0 ;\n v -> mb_off = 0 ;\n }\n if ( i ) {\n v -> pic_header_flag = 0 ;\n if ( v -> field_mode && i == n_slices1 + 2 ) {\n if ( ff_vc1_parse_frame_header_adv ( v , & s -> gb ) < 0 ) {\n av_log ( v -> s . avctx , AV_LOG_ERROR , \"Field header damaged\\n\" ) ;\n continue ;\n }\n }\n else if ( get_bits1 ( & s -> gb ) ) {\n v -> pic_header_flag = 1 ;\n if ( ff_vc1_parse_frame_header_adv ( v , & s -> gb ) < 0 ) {\n av_log ( v -> s . avctx , AV_LOG_ERROR , \"Slice header damaged\\n\" ) ;\n continue ;\n }\n }\n }\n s -> start_mb_y = ( i == 0 ) ? 0 : FFMAX ( 0 , slices [ i - 1 ] . mby_start % mb_height ) ;\n if ( ! v -> field_mode || v -> second_field ) s -> end_mb_y = ( i == n_slices ) ? mb_height : FFMIN ( mb_height , slices [ i ] . mby_start % mb_height ) ;\n else s -> end_mb_y = ( i <= n_slices1 + 1 ) ? mb_height : FFMIN ( mb_height , slices [ i ] . mby_start % mb_height ) ;\n ff_vc1_decode_blocks ( v ) ;\n if ( i != n_slices ) s -> gb = slices [ i ] . gb ;\n }\n if ( v -> field_mode ) {\n v -> second_field = 0 ;\n if ( s -> pict_type == AV_PICTURE_TYPE_B ) {\n memcpy ( v -> mv_f_base , v -> mv_f_next_base , 2 * ( s -> b8_stride * ( s -> mb_height * 2 + 1 ) + s -> mb_stride * ( s -> mb_height + 1 ) * 2 ) ) ;\n }\n s -> current_picture . f . linesize [ 0 ] >>= 1 ;\n s -> current_picture . f . linesize [ 1 ] >>= 1 ;\n s -> current_picture . f . linesize [ 2 ] >>= 1 ;\n s -> linesize >>= 1 ;\n s -> uvlinesize >>= 1 ;\n }\n av_dlog ( s -> avctx , \"Consumed %i/%i bits\\n\" , get_bits_count ( & s -> gb ) , s -> gb . size_in_bits ) ;\n ff_er_frame_end ( & s -> er ) ;\n }\n ff_MPV_frame_end ( s ) ;\n if ( avctx -> codec_id == AV_CODEC_ID_WMV3IMAGE || avctx -> codec_id == AV_CODEC_ID_VC1IMAGE ) {\n image : avctx -> width = avctx -> coded_width = v -> output_width ;\n avctx -> height = avctx -> coded_height = v -> output_height ;\n if ( avctx -> skip_frame >= AVDISCARD_NONREF ) goto end ;\n # if CONFIG_WMV3IMAGE_DECODER || CONFIG_VC1IMAGE_DECODER if ( vc1_decode_sprites ( v , & s -> gb ) ) goto err ;\n # endif * pict = v -> sprite_output_frame ;\n * got_frame = 1 ;\n }\n else {\n if ( s -> pict_type == AV_PICTURE_TYPE_B || s -> low_delay ) {\n * pict = s -> current_picture_ptr -> f ;\n }\n else if ( s -> last_picture_ptr != NULL ) {\n * pict = s -> last_picture_ptr -> f ;\n }\n if ( s -> last_picture_ptr || s -> low_delay ) {\n * got_frame = 1 ;\n ff_print_debug_info ( s , pict ) ;\n }\n }\n end : av_free ( buf2 ) ;\n for ( i = 0 ;\n i < n_slices ;\n i ++ ) av_free ( slices [ i ] . buf ) ;\n av_free ( slices ) ;\n return buf_size ;\n err : av_free ( buf2 ) ;\n for ( i = 0 ;\n i < n_slices ;\n i ++ ) av_free ( slices [ i ] . buf ) ;\n av_free ( slices ) ;\n return - 1 ;\n }"}
{"idx": 2736, "target": 0, "func": "static int frame_max_bits ( const RATE_CONTROL * rc , const VP9EncoderConfig * oxcf ) {\n int64_t max_bits = ( ( int64_t ) rc -> avg_frame_bandwidth * ( int64_t ) oxcf -> two_pass_vbrmax_section ) / 100 ;\n if ( max_bits < 0 ) max_bits = 0 ;\n else if ( max_bits > rc -> max_frame_bandwidth ) max_bits = rc -> max_frame_bandwidth ;\n return ( int ) max_bits ;\n }"}
{"idx": 2737, "target": 0, "func": "static void * prplcb_account_request_authorize ( PurpleAccount * account , const char * remote_user , const char * id , const char * alias , const char * message , gboolean on_list , PurpleAccountRequestAuthorizationCb authorize_cb , PurpleAccountRequestAuthorizationCb deny_cb , void * user_data ) {\n struct im_connection * ic = purple_ic_by_pa ( account ) ;\n char * q ;\n if ( alias ) {\n q = g_strdup_printf ( \"%s (%s) wants to add you to his/her contact \" \"list. (%s)\" , alias , remote_user , message ) ;\n }\n else {\n q = g_strdup_printf ( \"%s wants to add you to his/her contact \" \"list. (%s)\" , remote_user , message ) ;\n }\n imcb_ask_with_free ( ic , q , user_data , authorize_cb , deny_cb , NULL ) ;\n g_free ( q ) ;\n return NULL ;\n }"}
{"idx": 2738, "target": 0, "func": "static void alloc_limit_failure ( char * fn_name , size_t size ) {\n fprintf ( stderr , \"%s: Maximum allocation size exceeded \" \"(maxsize = %lu;\n size = %lu).\\n\" , fn_name , ( unsigned long ) alloc_limit , ( unsigned long ) size ) ;\n }"}
{"idx": 2739, "target": 0, "func": "enum nss_status _nss_nis_setaliasent ( void ) {\n __libc_lock_lock ( lock ) ;\n new_start = 1 ;\n if ( oldkey != NULL ) {\n free ( oldkey ) ;\n oldkey = NULL ;\n oldkeylen = 0 ;\n }\n __libc_lock_unlock ( lock ) ;\n return NSS_STATUS_SUCCESS ;\n }"}
{"idx": 2740, "target": 0, "func": "static int gcry_pk_lookup_func_name ( void * spec , void * data ) {\n gcry_pk_spec_t * pubkey = ( gcry_pk_spec_t * ) spec ;\n char * name = ( char * ) data ;\n const char * * aliases = pubkey -> aliases ;\n int ret = stricmp ( name , pubkey -> name ) ;\n while ( ret && * aliases ) ret = stricmp ( name , * aliases ++ ) ;\n return ! ret ;\n }"}
{"idx": 2741, "target": 0, "func": "static inline int IRQ_testbit ( IRQQueue * q , int n_IRQ ) {\n return test_bit ( n_IRQ , q -> queue ) ;\n }"}
{"idx": 2742, "target": 0, "func": "gboolean proto_deregister_protocol ( const char * short_name ) {\n protocol_t * protocol ;\n header_field_info * hfinfo ;\n int proto_id ;\n gint key ;\n guint i ;\n proto_id = proto_get_id_by_short_name ( short_name ) ;\n protocol = find_protocol_by_id ( proto_id ) ;\n if ( protocol == NULL ) return FALSE ;\n key = wrs_str_hash ( protocol -> name ) ;\n g_hash_table_remove ( proto_names , & key ) ;\n g_hash_table_remove ( proto_short_names , ( gpointer ) short_name ) ;\n g_hash_table_remove ( proto_filter_names , ( gpointer ) protocol -> filter_name ) ;\n for ( i = 0 ;\n i < protocol -> fields -> len ;\n i ++ ) {\n hfinfo = ( header_field_info * ) g_ptr_array_index ( protocol -> fields , i ) ;\n hfinfo_remove_from_gpa_name_map ( hfinfo ) ;\n expert_deregister_expertinfo ( hfinfo -> abbrev ) ;\n g_ptr_array_add ( deregistered_fields , gpa_hfinfo . hfi [ hfinfo -> id ] ) ;\n }\n g_ptr_array_free ( protocol -> fields , TRUE ) ;\n protocol -> fields = NULL ;\n protocols = g_list_remove ( protocols , protocol ) ;\n g_ptr_array_add ( deregistered_fields , gpa_hfinfo . hfi [ proto_id ] ) ;\n g_hash_table_steal ( gpa_name_map , protocol -> filter_name ) ;\n g_free ( last_field_name ) ;\n last_field_name = NULL ;\n return TRUE ;\n }"}
{"idx": 2743, "target": 0, "func": "static int dissect_h225_H321Caps ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_H321Caps , H321Caps_sequence ) ;\n return offset ;\n }"}
{"idx": 2744, "target": 0, "func": "static void qpeg_decode_inter ( QpegContext * qctx , uint8_t * dst , int stride , int width , int height , int delta , const uint8_t * ctable , uint8_t * refdata ) {\n int i , j ;\n int code ;\n int filled = 0 ;\n int orig_height ;\n for ( i = 0 ;\n i < height ;\n i ++ ) memcpy ( refdata + ( i * width ) , dst + ( i * stride ) , width ) ;\n orig_height = height ;\n height -- ;\n dst = dst + height * stride ;\n while ( ( bytestream2_get_bytes_left ( & qctx -> buffer ) > 0 ) && ( height >= 0 ) ) {\n code = bytestream2_get_byte ( & qctx -> buffer ) ;\n if ( delta ) {\n while ( ( code & 0xF0 ) == 0xF0 ) {\n if ( delta == 1 ) {\n int me_idx ;\n int me_w , me_h , me_x , me_y ;\n uint8_t * me_plane ;\n int corr , val ;\n me_idx = code & 0xF ;\n me_w = qpeg_table_w [ me_idx ] ;\n me_h = qpeg_table_h [ me_idx ] ;\n corr = bytestream2_get_byte ( & qctx -> buffer ) ;\n val = corr >> 4 ;\n if ( val > 7 ) val -= 16 ;\n me_x = val ;\n val = corr & 0xF ;\n if ( val > 7 ) val -= 16 ;\n me_y = val ;\n if ( ( me_x + filled < 0 ) || ( me_x + me_w + filled > width ) || ( height - me_y - me_h < 0 ) || ( height - me_y > orig_height ) || ( filled + me_w > width ) || ( height - me_h < 0 ) ) av_log ( NULL , AV_LOG_ERROR , \"Bogus motion vector (%i,%i), block size %ix%i at %i,%i\\n\" , me_x , me_y , me_w , me_h , filled , height ) ;\n else {\n me_plane = refdata + ( filled + me_x ) + ( height - me_y ) * width ;\n for ( j = 0 ;\n j < me_h ;\n j ++ ) {\n for ( i = 0 ;\n i < me_w ;\n i ++ ) dst [ filled + i - ( j * stride ) ] = me_plane [ i - ( j * width ) ] ;\n }\n }\n }\n code = bytestream2_get_byte ( & qctx -> buffer ) ;\n }\n }\n if ( code == 0xE0 ) break ;\n if ( code > 0xE0 ) {\n int p ;\n code &= 0x1F ;\n p = bytestream2_get_byte ( & qctx -> buffer ) ;\n for ( i = 0 ;\n i <= code ;\n i ++ ) {\n dst [ filled ++ ] = p ;\n if ( filled >= width ) {\n filled = 0 ;\n dst -= stride ;\n height -- ;\n }\n }\n }\n else if ( code >= 0xC0 ) {\n code &= 0x1F ;\n for ( i = 0 ;\n i <= code ;\n i ++ ) {\n dst [ filled ++ ] = bytestream2_get_byte ( & qctx -> buffer ) ;\n if ( filled >= width ) {\n filled = 0 ;\n dst -= stride ;\n height -- ;\n }\n }\n }\n else if ( code >= 0x80 ) {\n int skip ;\n code &= 0x3F ;\n if ( ! code ) skip = bytestream2_get_byte ( & qctx -> buffer ) + 64 ;\n else if ( code == 1 ) skip = bytestream2_get_byte ( & qctx -> buffer ) + 320 ;\n else skip = code ;\n filled += skip ;\n while ( filled >= width ) {\n filled -= width ;\n dst -= stride ;\n height -- ;\n if ( height < 0 ) break ;\n }\n }\n else {\n if ( code ) {\n dst [ filled ++ ] = ctable [ code & 0x7F ] ;\n }\n else filled ++ ;\n if ( filled >= width ) {\n filled = 0 ;\n dst -= stride ;\n height -- ;\n }\n }\n }\n }"}
{"idx": 2745, "target": 0, "func": "static int dissect_CPMGetApproximatePosition ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * parent_tree , gboolean in , void * data _U_ ) {\n gint offset = 16 ;\n proto_item * item ;\n proto_tree * tree ;\n item = proto_tree_add_item ( parent_tree , hf_mswsp_msg , tvb , offset , in ? 0 : - 1 , ENC_NA ) ;\n tree = proto_item_add_subtree ( item , ett_mswsp_msg ) ;\n proto_item_set_text ( item , \"GetApproximatePosition%s\" , in ? \"In\" : \"Out\" ) ;\n col_append_str ( pinfo -> cinfo , COL_INFO , \"GetApproximatePosition\" ) ;\n if ( in ) {\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetapproxpos_hcursor , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetapproxpos_chapt , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetapproxpos_bmk , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n }\n else {\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetapproxpos_numerator , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetapproxpos_denominator , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n }\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 2746, "target": 0, "func": "uint start_at_word ( char * pos ) {\n return ( ( ( ! memcmp ( pos , \"\\\\b\" , 2 ) && pos [ 2 ] ) || ! memcmp ( pos , \"\\\\^\" , 2 ) ) ? 1 : 0 ) ;\n }"}
{"idx": 2747, "target": 0, "func": "static int string_print ( PyStringObject * op , FILE * fp , int flags ) {\n Py_ssize_t i , str_len ;\n char c ;\n int quote ;\n if ( ! PyString_CheckExact ( op ) ) {\n int ret ;\n op = ( PyStringObject * ) PyObject_Str ( ( PyObject * ) op ) ;\n if ( op == NULL ) return - 1 ;\n ret = string_print ( op , fp , flags ) ;\n Py_DECREF ( op ) ;\n return ret ;\n }\n if ( flags & Py_PRINT_RAW ) {\n char * data = op -> ob_sval ;\n Py_ssize_t size = Py_SIZE ( op ) ;\n Py_BEGIN_ALLOW_THREADS while ( size > INT_MAX ) {\n const int chunk_size = INT_MAX & ~ 0x3FFF ;\n fwrite ( data , 1 , chunk_size , fp ) ;\n data += chunk_size ;\n size -= chunk_size ;\n }\n # ifdef __VMS if ( size ) fwrite ( data , ( size_t ) size , 1 , fp ) ;\n # else fwrite ( data , 1 , ( size_t ) size , fp ) ;\n # endif Py_END_ALLOW_THREADS return 0 ;\n }\n quote = '\\'' ;\n if ( memchr ( op -> ob_sval , '\\'' , Py_SIZE ( op ) ) && ! memchr ( op -> ob_sval , '\"' , Py_SIZE ( op ) ) ) quote = '\"' ;\n str_len = Py_SIZE ( op ) ;\n Py_BEGIN_ALLOW_THREADS fputc ( quote , fp ) ;\n for ( i = 0 ;\n i < str_len ;\n i ++ ) {\n c = op -> ob_sval [ i ] ;\n if ( c == quote || c == '\\\\' ) fprintf ( fp , \"\\\\%c\" , c ) ;\n else if ( c == '\\t' ) fprintf ( fp , \"\\\\t\" ) ;\n else if ( c == '\\n' ) fprintf ( fp , \"\\\\n\" ) ;\n else if ( c == '\\r' ) fprintf ( fp , \"\\\\r\" ) ;\n else if ( c < ' ' || c >= 0x7f ) fprintf ( fp , \"\\\\x%02x\" , c & 0xff ) ;\n else fputc ( c , fp ) ;\n }\n fputc ( quote , fp ) ;\n Py_END_ALLOW_THREADS return 0 ;\n }"}
{"idx": 2748, "target": 0, "func": "int gx_ttf_outline ( ttfFont * ttf , gx_ttfReader * r , gs_font_type42 * pfont , int glyph_index , const gs_matrix * m , const gs_log2_scale_point * pscale , gx_path * path , bool design_grid ) {\n gx_ttfExport e ;\n ttfOutliner o ;\n gs_point char_size , subpix_origin ;\n gs_matrix post_transform ;\n FloatMatrix m1 ;\n bool dg ;\n uint gftt = gs_currentgridfittt ( pfont -> dir ) ;\n bool ttin = ( gftt & 1 ) ;\n bool auth = ( gftt & 2 ) ;\n decompose_matrix ( pfont , m , pscale , design_grid , & char_size , & subpix_origin , & post_transform , & dg ) ;\n m1 . a = post_transform . xx ;\n m1 . b = post_transform . xy ;\n m1 . c = post_transform . yx ;\n m1 . d = post_transform . yy ;\n m1 . tx = post_transform . tx ;\n m1 . ty = post_transform . ty ;\n e . super . bPoints = false ;\n e . super . bOutline = true ;\n e . super . MoveTo = gx_ttfExport__MoveTo ;\n e . super . LineTo = gx_ttfExport__LineTo ;\n e . super . CurveTo = gx_ttfExport__CurveTo ;\n e . super . Close = gx_ttfExport__Close ;\n e . super . Point = gx_ttfExport__Point ;\n e . super . SetWidth = gx_ttfExport__SetWidth ;\n e . super . DebugPaint = gx_ttfExport__DebugPaint ;\n e . error = 0 ;\n e . path = path ;\n e . w . x = 0 ;\n e . w . y = 0 ;\n e . monotonize = auth ;\n gx_ttfReader__Reset ( r ) ;\n ttfOutliner__init ( & o , ttf , & r -> super , & e . super , true , false , pfont -> WMode != 0 ) ;\n switch ( ttfOutliner__Outline ( & o , glyph_index , subpix_origin . x , subpix_origin . y , & m1 ) ) {\n case fBadInstruction : WarnBadInstruction ( pfont , glyph_index ) ;\n goto recover ;\n case fPatented : if ( ! auth ) WarnPatented ( pfont , ttf , \"Some glyphs of the font\" ) ;\n recover : if ( ! design_grid && auth ) return grid_fit ( pfont -> dir -> san , path , pfont , pscale , & e , & o ) ;\n case fNoError : if ( ! design_grid && ! ttin && auth ) return grid_fit ( pfont -> dir -> san , path , pfont , pscale , & e , & o ) ;\n ttfOutliner__DrawGlyphOutline ( & o ) ;\n if ( e . error ) return e . error ;\n return 0 ;\n case fMemoryError : return_error ( gs_error_VMerror ) ;\n case fUnimplemented : return_error ( gs_error_unregistered ) ;\n default : {\n int code = r -> super . Error ( & r -> super ) ;\n if ( code < 0 ) return code ;\n return_error ( gs_error_invalidfont ) ;\n }\n }\n }"}
{"idx": 2749, "target": 0, "func": "static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 2750, "target": 0, "func": "static int decode_i_mb ( FourXContext * f ) {\n int ret ;\n int i ;\n f -> dsp . clear_blocks ( f -> block [ 0 ] ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) if ( ( ret = decode_i_block ( f , f -> block [ i ] ) ) < 0 ) return ret ;\n return 0 ;\n }"}
{"idx": 2751, "target": 0, "func": "static void dissect_payload ( tvbuff_t * tvb , guint32 offset , packet_info * pinfo , proto_tree * iax2_tree , proto_tree * tree , guint32 ts _U_ , gboolean video , iax_packet_data * iax_packet ) {\n # if 0 gboolean out_of_order = FALSE ;\n # endif tvbuff_t * sub_tvb ;\n guint32 codec = iax_packet -> codec ;\n guint32 nbytes ;\n iax_call_data * iax_call = iax_packet -> call_data ;\n if ( offset >= tvb_reported_length ( tvb ) ) {\n col_append_str ( pinfo -> cinfo , COL_INFO , \", empty frame\" ) ;\n return ;\n }\n sub_tvb = tvb_new_subset_remaining ( tvb , offset ) ;\n if ( ! video && iax_call && iax_call -> dataformat != 0 ) {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", data, format %s\" , val_to_str ( iax_call -> dataformat , iax_dataformats , \"unknown (0x%02x)\" ) ) ;\n # if 0 if ( out_of_order ) col_append_str ( pinfo -> cinfo , COL_INFO , \" (out-of-order packet)\" ) ;\n # endif }\n else {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , val_to_str_ext ( codec , & codec_types_ext , \"unknown (0x%02x)\" ) ) ;\n }\n nbytes = tvb_reported_length ( sub_tvb ) ;\n proto_tree_add_item ( iax2_tree , hf_iax2_payload_data , sub_tvb , 0 , - 1 , ENC_NA ) ;\n iax2_info -> payload_len = nbytes ;\n iax2_info -> payload_data = tvb_get_ptr ( sub_tvb , 0 , - 1 ) ;\n if ( iax_packet -> call_data ) desegment_iax ( sub_tvb , pinfo , iax2_tree , tree , video , iax_packet ) ;\n else process_iax_pdu ( sub_tvb , pinfo , tree , video , iax_packet ) ;\n }"}
{"idx": 2752, "target": 1, "func": "static int cinaudio_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n CinAudioContext * cin = avctx -> priv_data ;\n const uint8_t * buf_end = buf + avpkt -> size ;\n int16_t * samples ;\n int delta , ret ;\n frame -> nb_samples = avpkt -> size - cin -> initial_decode_frame ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n samples = ( int16_t * ) frame -> data [ 0 ] ;\n delta = cin -> delta ;\n if ( cin -> initial_decode_frame ) {\n cin -> initial_decode_frame = 0 ;\n delta = sign_extend ( AV_RL16 ( buf ) , 16 ) ;\n buf += 2 ;\n * samples ++ = delta ;\n }\n while ( buf < buf_end ) {\n delta += cinaudio_delta16_table [ * buf ++ ] ;\n delta = av_clip_int16 ( delta ) ;\n * samples ++ = delta ;\n }\n cin -> delta = delta ;\n * got_frame_ptr = 1 ;\n return avpkt -> size ;\n }"}
{"idx": 2753, "target": 0, "func": "static int decode_subframe_fixed ( FLACContext * s , int32_t * decoded , int pred_order , int bps ) {\n const int blocksize = s -> blocksize ;\n int a , b , c , d , i ;\n for ( i = 0 ;\n i < pred_order ;\n i ++ ) {\n decoded [ i ] = get_sbits_long ( & s -> gb , bps ) ;\n }\n if ( decode_residuals ( s , decoded , pred_order ) < 0 ) return - 1 ;\n if ( pred_order > 0 ) a = decoded [ pred_order - 1 ] ;\n if ( pred_order > 1 ) b = a - decoded [ pred_order - 2 ] ;\n if ( pred_order > 2 ) c = b - decoded [ pred_order - 2 ] + decoded [ pred_order - 3 ] ;\n if ( pred_order > 3 ) d = c - decoded [ pred_order - 2 ] + 2 * decoded [ pred_order - 3 ] - decoded [ pred_order - 4 ] ;\n switch ( pred_order ) {\n case 0 : break ;\n case 1 : for ( i = pred_order ;\n i < blocksize ;\n i ++ ) decoded [ i ] = a += decoded [ i ] ;\n break ;\n case 2 : for ( i = pred_order ;\n i < blocksize ;\n i ++ ) decoded [ i ] = a += b += decoded [ i ] ;\n break ;\n case 3 : for ( i = pred_order ;\n i < blocksize ;\n i ++ ) decoded [ i ] = a += b += c += decoded [ i ] ;\n break ;\n case 4 : for ( i = pred_order ;\n i < blocksize ;\n i ++ ) decoded [ i ] = a += b += c += d += decoded [ i ] ;\n break ;\n default : av_log ( s -> avctx , AV_LOG_ERROR , \"illegal pred order %d\\n\" , pred_order ) ;\n return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 2754, "target": 0, "func": "TEST_F ( TemplateURLTest , GetURLNoSuggestionsURL ) {\n TemplateURLData data ;\n data . SetURL ( \"http://google.com/?q={\nsearchTerms}\n\" ) ;\n data . instant_url = \"http://google.com/instant#q={\nsearchTerms}\n\" ;\n data . alternate_urls . push_back ( \"http://google.com/alt?q={\nsearchTerms}\n\" ) ;\n data . alternate_urls . push_back ( \"{\ngoogle:baseURL}\n/alt/#q={\nsearchTerms}\n\" ) ;\n TemplateURL url ( data ) ;\n const std : : vector < TemplateURLRef > & url_refs = url . url_refs ( ) ;\n ASSERT_EQ ( 3U , url_refs . size ( ) ) ;\n EXPECT_EQ ( \"http://google.com/alt?q={\nsearchTerms}\n\" , url_refs [ 0 ] . GetURL ( ) ) ;\n EXPECT_EQ ( \"{\ngoogle:baseURL}\n/alt/#q={\nsearchTerms}\n\" , url_refs [ 1 ] . GetURL ( ) ) ;\n EXPECT_EQ ( \"http://google.com/?q={\nsearchTerms}\n\" , url_refs [ 2 ] . GetURL ( ) ) ;\n }"}
{"idx": 2755, "target": 0, "func": "static int get_slice_offset ( AVCodecContext * avctx , const uint8_t * buf , int n ) {\n if ( avctx -> slice_count ) return avctx -> slice_offset [ n ] ;\n else return AV_RL32 ( buf + n * 8 - 4 ) == 1 ? AV_RL32 ( buf + n * 8 ) : AV_RB32 ( buf + n * 8 ) ;\n }"}
{"idx": 2756, "target": 0, "func": "int main ( int argc , char * * argv ) {\n char inputbuf [ 4096 ] ;\n unsigned char * buf ;\n size_t len ;\n gpg_error_t err ;\n if ( argc == 2 && ! strcmp ( argv [ 1 ] , \"--to-str\" ) ) {\n fread ( inputbuf , 1 , sizeof inputbuf , stdin ) ;\n if ( ! feof ( stdin ) ) fail ( \"read error or input too large\" ) ;\n fail ( \"not yet implemented\" ) ;\n }\n else if ( argc == 2 && ! strcmp ( argv [ 1 ] , \"--to-der\" ) ) {\n fread ( inputbuf , 1 , sizeof inputbuf , stdin ) ;\n if ( ! feof ( stdin ) ) fail ( \"read error or input too large\" ) ;\n err = ksba_dn_str2der ( inputbuf , & buf , & len ) ;\n fail_if_err ( err ) ;\n fwrite ( buf , len , 1 , stdout ) ;\n }\n else if ( argc == 1 ) {\n test_0 ( ) ;\n test_1 ( ) ;\n test_2 ( ) ;\n }\n else {\n fprintf ( stderr , \"usage: t-dnparser [--to-str|--to-der]\\n\" ) ;\n return 1 ;\n }\n return 0 ;\n }"}
{"idx": 2757, "target": 0, "func": "void y4m_input_close ( y4m_input * _y4m ) {\n free ( _y4m -> dst_buf ) ;\n free ( _y4m -> aux_buf ) ;\n }"}
{"idx": 2758, "target": 0, "func": "static int auth_server_input_done ( struct auth_server_connection * conn ) {\n if ( array_count ( & conn -> available_auth_mechs ) == 0 ) {\n i_error ( \"BUG: Authentication server returned no mechanisms\" ) ;\n return - 1 ;\n }\n if ( conn -> cookie == NULL ) {\n i_error ( \"BUG: Authentication server didn't send a cookie\" ) ;\n return - 1 ;\n }\n timeout_remove ( & conn -> to ) ;\n conn -> handshake_received = TRUE ;\n if ( conn -> client -> connect_notify_callback != NULL ) {\n conn -> client -> connect_notify_callback ( conn -> client , TRUE , conn -> client -> connect_notify_context ) ;\n }\n return 0 ;\n }"}
{"idx": 2759, "target": 0, "func": "TSReturnCode TSHttpHdrTypeSet ( TSMBuffer bufp , TSMLoc obj , TSHttpType type ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_http_hdr_handle ( obj ) == TS_SUCCESS ) ;\n sdk_assert ( ( type >= TS_HTTP_TYPE_UNKNOWN ) && ( type <= TS_HTTP_TYPE_RESPONSE ) ) ;\n if ( ! isWriteable ( bufp ) ) {\n return TS_ERROR ;\n }\n HTTPHdr h ;\n SET_HTTP_HDR ( h , bufp , obj ) ;\n ink_assert ( h . m_http -> m_type == HDR_HEAP_OBJ_HTTP_HEADER ) ;\n if ( h . m_http -> m_polarity == HTTP_TYPE_UNKNOWN ) {\n if ( type == ( TSHttpType ) HTTP_TYPE_REQUEST ) {\n h . m_http -> u . req . m_url_impl = url_create ( h . m_heap ) ;\n h . m_http -> m_polarity = ( HTTPType ) type ;\n }\n else if ( type == ( TSHttpType ) HTTP_TYPE_RESPONSE ) {\n h . m_http -> m_polarity = ( HTTPType ) type ;\n }\n }\n return TS_SUCCESS ;\n }"}
{"idx": 2760, "target": 0, "func": "static void xhci_free_device_streams ( XHCIState * xhci , unsigned int slotid , uint32_t epmask ) {\n USBEndpoint * eps [ 30 ] ;\n int nr_eps ;\n nr_eps = xhci_epmask_to_eps_with_streams ( xhci , slotid , epmask , NULL , eps ) ;\n if ( nr_eps ) {\n usb_device_free_streams ( eps [ 0 ] -> dev , eps , nr_eps ) ;\n }\n }"}
{"idx": 2761, "target": 0, "func": "static void iadst8_sse2 ( __m128i * in ) {\n const __m128i k__cospi_p02_p30 = pair_set_epi16 ( cospi_2_64 , cospi_30_64 ) ;\n const __m128i k__cospi_p30_m02 = pair_set_epi16 ( cospi_30_64 , - cospi_2_64 ) ;\n const __m128i k__cospi_p10_p22 = pair_set_epi16 ( cospi_10_64 , cospi_22_64 ) ;\n const __m128i k__cospi_p22_m10 = pair_set_epi16 ( cospi_22_64 , - cospi_10_64 ) ;\n const __m128i k__cospi_p18_p14 = pair_set_epi16 ( cospi_18_64 , cospi_14_64 ) ;\n const __m128i k__cospi_p14_m18 = pair_set_epi16 ( cospi_14_64 , - cospi_18_64 ) ;\n const __m128i k__cospi_p26_p06 = pair_set_epi16 ( cospi_26_64 , cospi_6_64 ) ;\n const __m128i k__cospi_p06_m26 = pair_set_epi16 ( cospi_6_64 , - cospi_26_64 ) ;\n const __m128i k__cospi_p08_p24 = pair_set_epi16 ( cospi_8_64 , cospi_24_64 ) ;\n const __m128i k__cospi_p24_m08 = pair_set_epi16 ( cospi_24_64 , - cospi_8_64 ) ;\n const __m128i k__cospi_m24_p08 = pair_set_epi16 ( - cospi_24_64 , cospi_8_64 ) ;\n const __m128i k__cospi_p16_m16 = pair_set_epi16 ( cospi_16_64 , - cospi_16_64 ) ;\n const __m128i k__cospi_p16_p16 = _mm_set1_epi16 ( cospi_16_64 ) ;\n const __m128i k__const_0 = _mm_set1_epi16 ( 0 ) ;\n const __m128i k__DCT_CONST_ROUNDING = _mm_set1_epi32 ( DCT_CONST_ROUNDING ) ;\n __m128i u0 , u1 , u2 , u3 , u4 , u5 , u6 , u7 , u8 , u9 , u10 , u11 , u12 , u13 , u14 , u15 ;\n __m128i v0 , v1 , v2 , v3 , v4 , v5 , v6 , v7 , v8 , v9 , v10 , v11 , v12 , v13 , v14 , v15 ;\n __m128i w0 , w1 , w2 , w3 , w4 , w5 , w6 , w7 , w8 , w9 , w10 , w11 , w12 , w13 , w14 , w15 ;\n __m128i s0 , s1 , s2 , s3 , s4 , s5 , s6 , s7 ;\n __m128i in0 , in1 , in2 , in3 , in4 , in5 , in6 , in7 ;\n array_transpose_8x8 ( in , in ) ;\n in0 = in [ 7 ] ;\n in1 = in [ 0 ] ;\n in2 = in [ 5 ] ;\n in3 = in [ 2 ] ;\n in4 = in [ 3 ] ;\n in5 = in [ 4 ] ;\n in6 = in [ 1 ] ;\n in7 = in [ 6 ] ;\n s0 = _mm_unpacklo_epi16 ( in0 , in1 ) ;\n s1 = _mm_unpackhi_epi16 ( in0 , in1 ) ;\n s2 = _mm_unpacklo_epi16 ( in2 , in3 ) ;\n s3 = _mm_unpackhi_epi16 ( in2 , in3 ) ;\n s4 = _mm_unpacklo_epi16 ( in4 , in5 ) ;\n s5 = _mm_unpackhi_epi16 ( in4 , in5 ) ;\n s6 = _mm_unpacklo_epi16 ( in6 , in7 ) ;\n s7 = _mm_unpackhi_epi16 ( in6 , in7 ) ;\n u0 = _mm_madd_epi16 ( s0 , k__cospi_p02_p30 ) ;\n u1 = _mm_madd_epi16 ( s1 , k__cospi_p02_p30 ) ;\n u2 = _mm_madd_epi16 ( s0 , k__cospi_p30_m02 ) ;\n u3 = _mm_madd_epi16 ( s1 , k__cospi_p30_m02 ) ;\n u4 = _mm_madd_epi16 ( s2 , k__cospi_p10_p22 ) ;\n u5 = _mm_madd_epi16 ( s3 , k__cospi_p10_p22 ) ;\n u6 = _mm_madd_epi16 ( s2 , k__cospi_p22_m10 ) ;\n u7 = _mm_madd_epi16 ( s3 , k__cospi_p22_m10 ) ;\n u8 = _mm_madd_epi16 ( s4 , k__cospi_p18_p14 ) ;\n u9 = _mm_madd_epi16 ( s5 , k__cospi_p18_p14 ) ;\n u10 = _mm_madd_epi16 ( s4 , k__cospi_p14_m18 ) ;\n u11 = _mm_madd_epi16 ( s5 , k__cospi_p14_m18 ) ;\n u12 = _mm_madd_epi16 ( s6 , k__cospi_p26_p06 ) ;\n u13 = _mm_madd_epi16 ( s7 , k__cospi_p26_p06 ) ;\n u14 = _mm_madd_epi16 ( s6 , k__cospi_p06_m26 ) ;\n u15 = _mm_madd_epi16 ( s7 , k__cospi_p06_m26 ) ;\n w0 = _mm_add_epi32 ( u0 , u8 ) ;\n w1 = _mm_add_epi32 ( u1 , u9 ) ;\n w2 = _mm_add_epi32 ( u2 , u10 ) ;\n w3 = _mm_add_epi32 ( u3 , u11 ) ;\n w4 = _mm_add_epi32 ( u4 , u12 ) ;\n w5 = _mm_add_epi32 ( u5 , u13 ) ;\n w6 = _mm_add_epi32 ( u6 , u14 ) ;\n w7 = _mm_add_epi32 ( u7 , u15 ) ;\n w8 = _mm_sub_epi32 ( u0 , u8 ) ;\n w9 = _mm_sub_epi32 ( u1 , u9 ) ;\n w10 = _mm_sub_epi32 ( u2 , u10 ) ;\n w11 = _mm_sub_epi32 ( u3 , u11 ) ;\n w12 = _mm_sub_epi32 ( u4 , u12 ) ;\n w13 = _mm_sub_epi32 ( u5 , u13 ) ;\n w14 = _mm_sub_epi32 ( u6 , u14 ) ;\n w15 = _mm_sub_epi32 ( u7 , u15 ) ;\n v0 = _mm_add_epi32 ( w0 , k__DCT_CONST_ROUNDING ) ;\n v1 = _mm_add_epi32 ( w1 , k__DCT_CONST_ROUNDING ) ;\n v2 = _mm_add_epi32 ( w2 , k__DCT_CONST_ROUNDING ) ;\n v3 = _mm_add_epi32 ( w3 , k__DCT_CONST_ROUNDING ) ;\n v4 = _mm_add_epi32 ( w4 , k__DCT_CONST_ROUNDING ) ;\n v5 = _mm_add_epi32 ( w5 , k__DCT_CONST_ROUNDING ) ;\n v6 = _mm_add_epi32 ( w6 , k__DCT_CONST_ROUNDING ) ;\n v7 = _mm_add_epi32 ( w7 , k__DCT_CONST_ROUNDING ) ;\n v8 = _mm_add_epi32 ( w8 , k__DCT_CONST_ROUNDING ) ;\n v9 = _mm_add_epi32 ( w9 , k__DCT_CONST_ROUNDING ) ;\n v10 = _mm_add_epi32 ( w10 , k__DCT_CONST_ROUNDING ) ;\n v11 = _mm_add_epi32 ( w11 , k__DCT_CONST_ROUNDING ) ;\n v12 = _mm_add_epi32 ( w12 , k__DCT_CONST_ROUNDING ) ;\n v13 = _mm_add_epi32 ( w13 , k__DCT_CONST_ROUNDING ) ;\n v14 = _mm_add_epi32 ( w14 , k__DCT_CONST_ROUNDING ) ;\n v15 = _mm_add_epi32 ( w15 , k__DCT_CONST_ROUNDING ) ;\n u0 = _mm_srai_epi32 ( v0 , DCT_CONST_BITS ) ;\n u1 = _mm_srai_epi32 ( v1 , DCT_CONST_BITS ) ;\n u2 = _mm_srai_epi32 ( v2 , DCT_CONST_BITS ) ;\n u3 = _mm_srai_epi32 ( v3 , DCT_CONST_BITS ) ;\n u4 = _mm_srai_epi32 ( v4 , DCT_CONST_BITS ) ;\n u5 = _mm_srai_epi32 ( v5 , DCT_CONST_BITS ) ;\n u6 = _mm_srai_epi32 ( v6 , DCT_CONST_BITS ) ;\n u7 = _mm_srai_epi32 ( v7 , DCT_CONST_BITS ) ;\n u8 = _mm_srai_epi32 ( v8 , DCT_CONST_BITS ) ;\n u9 = _mm_srai_epi32 ( v9 , DCT_CONST_BITS ) ;\n u10 = _mm_srai_epi32 ( v10 , DCT_CONST_BITS ) ;\n u11 = _mm_srai_epi32 ( v11 , DCT_CONST_BITS ) ;\n u12 = _mm_srai_epi32 ( v12 , DCT_CONST_BITS ) ;\n u13 = _mm_srai_epi32 ( v13 , DCT_CONST_BITS ) ;\n u14 = _mm_srai_epi32 ( v14 , DCT_CONST_BITS ) ;\n u15 = _mm_srai_epi32 ( v15 , DCT_CONST_BITS ) ;\n in [ 0 ] = _mm_packs_epi32 ( u0 , u1 ) ;\n in [ 1 ] = _mm_packs_epi32 ( u2 , u3 ) ;\n in [ 2 ] = _mm_packs_epi32 ( u4 , u5 ) ;\n in [ 3 ] = _mm_packs_epi32 ( u6 , u7 ) ;\n in [ 4 ] = _mm_packs_epi32 ( u8 , u9 ) ;\n in [ 5 ] = _mm_packs_epi32 ( u10 , u11 ) ;\n in [ 6 ] = _mm_packs_epi32 ( u12 , u13 ) ;\n in [ 7 ] = _mm_packs_epi32 ( u14 , u15 ) ;\n s0 = _mm_add_epi16 ( in [ 0 ] , in [ 2 ] ) ;\n s1 = _mm_add_epi16 ( in [ 1 ] , in [ 3 ] ) ;\n s2 = _mm_sub_epi16 ( in [ 0 ] , in [ 2 ] ) ;\n s3 = _mm_sub_epi16 ( in [ 1 ] , in [ 3 ] ) ;\n u0 = _mm_unpacklo_epi16 ( in [ 4 ] , in [ 5 ] ) ;\n u1 = _mm_unpackhi_epi16 ( in [ 4 ] , in [ 5 ] ) ;\n u2 = _mm_unpacklo_epi16 ( in [ 6 ] , in [ 7 ] ) ;\n u3 = _mm_unpackhi_epi16 ( in [ 6 ] , in [ 7 ] ) ;\n v0 = _mm_madd_epi16 ( u0 , k__cospi_p08_p24 ) ;\n v1 = _mm_madd_epi16 ( u1 , k__cospi_p08_p24 ) ;\n v2 = _mm_madd_epi16 ( u0 , k__cospi_p24_m08 ) ;\n v3 = _mm_madd_epi16 ( u1 , k__cospi_p24_m08 ) ;\n v4 = _mm_madd_epi16 ( u2 , k__cospi_m24_p08 ) ;\n v5 = _mm_madd_epi16 ( u3 , k__cospi_m24_p08 ) ;\n v6 = _mm_madd_epi16 ( u2 , k__cospi_p08_p24 ) ;\n v7 = _mm_madd_epi16 ( u3 , k__cospi_p08_p24 ) ;\n w0 = _mm_add_epi32 ( v0 , v4 ) ;\n w1 = _mm_add_epi32 ( v1 , v5 ) ;\n w2 = _mm_add_epi32 ( v2 , v6 ) ;\n w3 = _mm_add_epi32 ( v3 , v7 ) ;\n w4 = _mm_sub_epi32 ( v0 , v4 ) ;\n w5 = _mm_sub_epi32 ( v1 , v5 ) ;\n w6 = _mm_sub_epi32 ( v2 , v6 ) ;\n w7 = _mm_sub_epi32 ( v3 , v7 ) ;\n v0 = _mm_add_epi32 ( w0 , k__DCT_CONST_ROUNDING ) ;\n v1 = _mm_add_epi32 ( w1 , k__DCT_CONST_ROUNDING ) ;\n v2 = _mm_add_epi32 ( w2 , k__DCT_CONST_ROUNDING ) ;\n v3 = _mm_add_epi32 ( w3 , k__DCT_CONST_ROUNDING ) ;\n v4 = _mm_add_epi32 ( w4 , k__DCT_CONST_ROUNDING ) ;\n v5 = _mm_add_epi32 ( w5 , k__DCT_CONST_ROUNDING ) ;\n v6 = _mm_add_epi32 ( w6 , k__DCT_CONST_ROUNDING ) ;\n v7 = _mm_add_epi32 ( w7 , k__DCT_CONST_ROUNDING ) ;\n u0 = _mm_srai_epi32 ( v0 , DCT_CONST_BITS ) ;\n u1 = _mm_srai_epi32 ( v1 , DCT_CONST_BITS ) ;\n u2 = _mm_srai_epi32 ( v2 , DCT_CONST_BITS ) ;\n u3 = _mm_srai_epi32 ( v3 , DCT_CONST_BITS ) ;\n u4 = _mm_srai_epi32 ( v4 , DCT_CONST_BITS ) ;\n u5 = _mm_srai_epi32 ( v5 , DCT_CONST_BITS ) ;\n u6 = _mm_srai_epi32 ( v6 , DCT_CONST_BITS ) ;\n u7 = _mm_srai_epi32 ( v7 , DCT_CONST_BITS ) ;\n s4 = _mm_packs_epi32 ( u0 , u1 ) ;\n s5 = _mm_packs_epi32 ( u2 , u3 ) ;\n s6 = _mm_packs_epi32 ( u4 , u5 ) ;\n s7 = _mm_packs_epi32 ( u6 , u7 ) ;\n u0 = _mm_unpacklo_epi16 ( s2 , s3 ) ;\n u1 = _mm_unpackhi_epi16 ( s2 , s3 ) ;\n u2 = _mm_unpacklo_epi16 ( s6 , s7 ) ;\n u3 = _mm_unpackhi_epi16 ( s6 , s7 ) ;\n v0 = _mm_madd_epi16 ( u0 , k__cospi_p16_p16 ) ;\n v1 = _mm_madd_epi16 ( u1 , k__cospi_p16_p16 ) ;\n v2 = _mm_madd_epi16 ( u0 , k__cospi_p16_m16 ) ;\n v3 = _mm_madd_epi16 ( u1 , k__cospi_p16_m16 ) ;\n v4 = _mm_madd_epi16 ( u2 , k__cospi_p16_p16 ) ;\n v5 = _mm_madd_epi16 ( u3 , k__cospi_p16_p16 ) ;\n v6 = _mm_madd_epi16 ( u2 , k__cospi_p16_m16 ) ;\n v7 = _mm_madd_epi16 ( u3 , k__cospi_p16_m16 ) ;\n u0 = _mm_add_epi32 ( v0 , k__DCT_CONST_ROUNDING ) ;\n u1 = _mm_add_epi32 ( v1 , k__DCT_CONST_ROUNDING ) ;\n u2 = _mm_add_epi32 ( v2 , k__DCT_CONST_ROUNDING ) ;\n u3 = _mm_add_epi32 ( v3 , k__DCT_CONST_ROUNDING ) ;\n u4 = _mm_add_epi32 ( v4 , k__DCT_CONST_ROUNDING ) ;\n u5 = _mm_add_epi32 ( v5 , k__DCT_CONST_ROUNDING ) ;\n u6 = _mm_add_epi32 ( v6 , k__DCT_CONST_ROUNDING ) ;\n u7 = _mm_add_epi32 ( v7 , k__DCT_CONST_ROUNDING ) ;\n v0 = _mm_srai_epi32 ( u0 , DCT_CONST_BITS ) ;\n v1 = _mm_srai_epi32 ( u1 , DCT_CONST_BITS ) ;\n v2 = _mm_srai_epi32 ( u2 , DCT_CONST_BITS ) ;\n v3 = _mm_srai_epi32 ( u3 , DCT_CONST_BITS ) ;\n v4 = _mm_srai_epi32 ( u4 , DCT_CONST_BITS ) ;\n v5 = _mm_srai_epi32 ( u5 , DCT_CONST_BITS ) ;\n v6 = _mm_srai_epi32 ( u6 , DCT_CONST_BITS ) ;\n v7 = _mm_srai_epi32 ( u7 , DCT_CONST_BITS ) ;\n s2 = _mm_packs_epi32 ( v0 , v1 ) ;\n s3 = _mm_packs_epi32 ( v2 , v3 ) ;\n s6 = _mm_packs_epi32 ( v4 , v5 ) ;\n s7 = _mm_packs_epi32 ( v6 , v7 ) ;\n in [ 0 ] = s0 ;\n in [ 1 ] = _mm_sub_epi16 ( k__const_0 , s4 ) ;\n in [ 2 ] = s6 ;\n in [ 3 ] = _mm_sub_epi16 ( k__const_0 , s2 ) ;\n in [ 4 ] = s3 ;\n in [ 5 ] = _mm_sub_epi16 ( k__const_0 , s7 ) ;\n in [ 6 ] = s5 ;\n in [ 7 ] = _mm_sub_epi16 ( k__const_0 , s1 ) ;\n }"}
{"idx": 2762, "target": 0, "func": "static void test_simpletimeout ( void ) {\n struct timeval tv ;\n struct event ev ;\n setup_test ( \"Simple timeout: \" ) ;\n tv . tv_usec = 0 ;\n tv . tv_sec = SECONDS ;\n evtimer_set ( & ev , timeout_cb , NULL ) ;\n evtimer_add ( & ev , & tv ) ;\n evutil_gettimeofday ( & tset , NULL ) ;\n event_dispatch ( ) ;\n cleanup_test ( ) ;\n }"}
{"idx": 2763, "target": 0, "func": "static void dtap_mm_cm_reestab_req ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n guint8 oct ;\n proto_tree * subtree ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_TRUE ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , curr_offset << 3 , 4 , ENC_BIG_ENDIAN ) ;\n subtree = proto_tree_add_subtree ( tree , tvb , curr_offset , 1 , ett_gsm_common_elem [ DE_CIPH_KEY_SEQ_NUM ] , NULL , val_to_str_ext_const ( DE_CIPH_KEY_SEQ_NUM , & gsm_common_elem_strings_ext , \"\" ) ) ;\n proto_tree_add_bits_item ( subtree , hf_gsm_a_spare_bits , tvb , ( curr_offset << 3 ) + 4 , 1 , ENC_BIG_ENDIAN ) ;\n switch ( oct & 0x07 ) {\n case 0x07 : proto_tree_add_uint_format_value ( subtree , hf_gsm_a_dtap_ciphering_key_sequence_number , tvb , curr_offset , 1 , oct , \"No key is available\" ) ;\n break ;\n default : proto_tree_add_item ( subtree , hf_gsm_a_dtap_ciphering_key_sequence_number , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n break ;\n }\n curr_offset ++ ;\n curr_len -- ;\n if ( ( signed ) curr_len <= 0 ) return ;\n ELEM_MAND_LV ( GSM_A_PDU_TYPE_COMMON , DE_MS_CM_2 , NULL ) ;\n ELEM_MAND_LV ( GSM_A_PDU_TYPE_COMMON , DE_MID , NULL ) ;\n ELEM_OPT_TV ( 0x13 , GSM_A_PDU_TYPE_COMMON , DE_LAI , NULL ) ;\n ELEM_OPT_TV_SHORT ( 0xD0 , GSM_A_PDU_TYPE_GM , DE_DEVICE_PROPERTIES , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 2764, "target": 0, "func": "void proto_register_btvdp ( void ) {\n module_t * module ;\n expert_module_t * expert_btavdtp ;\n static hf_register_info hf [ ] = {\n {\n & hf_btvdp_acp_seid , {\n \"ACP SEID\" , \"btvdp.acp_seid\" , FT_UINT8 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_btvdp_int_seid , {\n \"INT SEID\" , \"btvdp.int_seid\" , FT_UINT8 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_btvdp_codec , {\n \"Codec\" , \"btvdp.codec\" , FT_UINT8 , BASE_HEX , VALS ( media_codec_video_type_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_btvdp_vendor_id , {\n \"Vendor ID\" , \"btvdp.codec.vendor.vendor_id\" , FT_UINT32 , BASE_HEX | BASE_EXT_STRING , & bluetooth_company_id_vals_ext , 0x00 , NULL , HFILL }\n }\n , {\n & hf_btvdp_vendor_codec_id , {\n \"Vendor Codec\" , \"btvdp.codec.vendor.codec_id\" , FT_UINT16 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_btvdp_content_protection , {\n \"Content Protection\" , \"btvdp.content_protection\" , FT_UINT16 , BASE_HEX , VALS ( content_protection_type_vals ) , 0x0000 , NULL , HFILL }\n }\n , {\n & hf_btvdp_stream_start_in_frame , {\n \"Stream Start in Frame\" , \"btvdp.stream_start_in_frame\" , FT_FRAMENUM , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_btvdp_stream_end_in_frame , {\n \"Stream End in Frame\" , \"btvdp.stream_end_in_frame\" , FT_FRAMENUM , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_btvdp_stream_number , {\n \"Stream Number\" , \"btvdp.stream_number\" , FT_UINT32 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , }\n ;\n static gint * ett [ ] = {\n & ett_btvdp }\n ;\n static ei_register_info ei [ ] = {\n {\n & ei_btavdtp_sbc_min_bitpool_out_of_range , {\n \"btavdtp.codec.sbc.minimum_bitpool.out_of_range\" , PI_PROTOCOL , PI_WARN , \"Bitpool is out of range. Should be 2..250.\" , EXPFILL }\n }\n , {\n & ei_btavdtp_sbc_max_bitpool_out_of_range , {\n \"btavdtp.codec.sbc.maximum_bitpool.out_of_range\" , PI_PROTOCOL , PI_WARN , \"Bitpool is out of range. Should be 2..250.\" , EXPFILL }\n }\n , {\n & ei_btavdtp_unexpected_losc_data , {\n \"btavdtp.unexpected_losc_data\" , PI_PROTOCOL , PI_WARN , \"Unexpected losc data\" , EXPFILL }\n }\n , }\n ;\n proto_btvdp = proto_register_protocol ( \"Bluetooth VDP Profile\" , \"BT VDP\" , \"btvdp\" ) ;\n btvdp_handle = register_dissector ( \"btvdp\" , dissect_btvdp , proto_btvdp ) ;\n proto_register_field_array ( proto_btvdp , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n expert_btavdtp = expert_register_protocol ( proto_btvdp ) ;\n expert_register_field_array ( expert_btavdtp , ei , array_length ( ei ) ) ;\n module = prefs_register_protocol_subtree ( \"Bluetooth\" , proto_btvdp , NULL ) ;\n prefs_register_static_text_preference ( module , \"vdp.version\" , \"Bluetooth Profile VDP version: 1.1\" , \"Version of profile supported by this dissector.\" ) ;\n prefs_register_bool_preference ( module , \"vdp.content_protection.scms_t\" , \"Force SCMS-T decoding\" , \"Force decoding stream as VDP with Content Protection SCMS-T \" , & force_vdp_scms_t ) ;\n prefs_register_enum_preference ( module , \"vdp.codec\" , \"Force codec\" , \"Force decoding stream as VDP with specified codec\" , & force_vdp_codec , pref_vdp_codec , FALSE ) ;\n }"}
{"idx": 2765, "target": 0, "func": "static void qdev_print ( Monitor * mon , DeviceState * dev , int indent ) {\n BusState * child ;\n qdev_printf ( \"dev: %s, id \\\"%s\\\"\\n\" , dev -> info -> name , dev -> id ? dev -> id : \"\" ) ;\n indent += 2 ;\n if ( dev -> num_gpio_in ) {\n qdev_printf ( \"gpio-in %d\\n\" , dev -> num_gpio_in ) ;\n }\n if ( dev -> num_gpio_out ) {\n qdev_printf ( \"gpio-out %d\\n\" , dev -> num_gpio_out ) ;\n }\n qdev_print_props ( mon , dev , dev -> info -> props , \"dev\" , indent ) ;\n qdev_print_props ( mon , dev , dev -> parent_bus -> info -> props , \"bus\" , indent ) ;\n if ( dev -> parent_bus -> info -> print_dev ) dev -> parent_bus -> info -> print_dev ( mon , dev , indent ) ;\n QLIST_FOREACH ( child , & dev -> child_bus , sibling ) {\n qbus_print ( mon , child , indent ) ;\n }\n }"}
{"idx": 2766, "target": 0, "func": "proto_item * parseGuid ( proto_tree * tree , tvbuff_t * tvb , packet_info * pinfo _U_ , gint * pOffset , int hfIndex ) {\n proto_item * item = proto_tree_add_item ( tree , hfIndex , tvb , * pOffset , GUID_LEN , ENC_NA ) ;\n * pOffset += GUID_LEN ;\n return item ;\n }"}
{"idx": 2767, "target": 0, "func": "void report_clusters_compatible ( void ) {\n if ( user_opts . check ) {\n pg_log ( PG_REPORT , \"\\n*Clusters are compatible*\\n\" ) ;\n stop_postmaster ( false ) ;\n exit ( 0 ) ;\n }\n pg_log ( PG_REPORT , \"\\n\" \"If pg_upgrade fails after this point, you must re-initdb the\\n\" \"new cluster before continuing.\\n\" ) ;\n }"}
{"idx": 2768, "target": 0, "func": "static const char * ContentTypeForFilename ( const char * filename , const char * prevtype ) {\n const char * contenttype = NULL ;\n unsigned int i ;\n struct ContentType {\n const char * extension ;\n const char * type ;\n }\n ;\n static const struct ContentType ctts [ ] = {\n {\n \".gif\" , \"image/gif\" }\n , {\n \".jpg\" , \"image/jpeg\" }\n , {\n \".jpeg\" , \"image/jpeg\" }\n , {\n \".txt\" , \"text/plain\" }\n , {\n \".html\" , \"text/html\" }\n , {\n \".xml\" , \"application/xml\" }\n }\n ;\n if ( prevtype ) contenttype = prevtype ;\n else contenttype = HTTPPOST_CONTENTTYPE_DEFAULT ;\n if ( filename ) {\n for ( i = 0 ;\n i < sizeof ( ctts ) / sizeof ( ctts [ 0 ] ) ;\n i ++ ) {\n if ( strlen ( filename ) >= strlen ( ctts [ i ] . extension ) ) {\n if ( strequal ( filename + strlen ( filename ) - strlen ( ctts [ i ] . extension ) , ctts [ i ] . extension ) ) {\n contenttype = ctts [ i ] . type ;\n break ;\n }\n }\n }\n }\n return contenttype ;\n }"}
{"idx": 2769, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , NewPage ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n GURL url = embedded_test_server ( ) -> GetURL ( \"/title1.html\" ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : FIRST_PAINT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , url ) ;\n waiter -> Wait ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramDomContentLoaded , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramLoad , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramFirstLayout , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramFirstPaint , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramParseDuration , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramParseBlockedOnScriptLoad , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramParseBlockedOnScriptExecution , 1 ) ;\n NavigateToUntrackedUrl ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramPageLoadTotalBytes , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramPageTimingForegroundDuration , 1 ) ;\n const auto & entries = test_ukm_recorder_ -> GetMergedEntriesByName ( internal : : kUkmPageLoadEventName ) ;\n EXPECT_EQ ( 1u , entries . size ( ) ) ;\n for ( const auto & kv : entries ) {\n test_ukm_recorder_ -> ExpectEntrySourceHasUrl ( kv . second . get ( ) , url ) ;\n EXPECT_TRUE ( test_ukm_recorder_ -> EntryHasMetric ( kv . second . get ( ) , internal : : kUkmDomContentLoadedName ) ) ;\n EXPECT_TRUE ( test_ukm_recorder_ -> EntryHasMetric ( kv . second . get ( ) , internal : : kUkmLoadEventName ) ) ;\n EXPECT_TRUE ( test_ukm_recorder_ -> EntryHasMetric ( kv . second . get ( ) , internal : : kUkmFirstPaintName ) ) ;\n EXPECT_TRUE ( test_ukm_recorder_ -> EntryHasMetric ( kv . second . get ( ) , internal : : kUkmFirstContentfulPaintName ) ) ;\n }\n EXPECT_FALSE ( NoPageLoadMetricsRecorded ( ) ) ;\n }"}
{"idx": 2770, "target": 0, "func": "static void setup_display_size ( VP9_COMMON * cm , struct vp9_read_bit_buffer * rb ) {\n cm -> display_width = cm -> width ;\n cm -> display_height = cm -> height ;\n if ( vp9_rb_read_bit ( rb ) ) vp9_read_frame_size ( rb , & cm -> display_width , & cm -> display_height ) ;\n }"}
{"idx": 2771, "target": 0, "func": "static uint8_t lut_interp_linear_precache_output ( uint32_t input_value , uint16_t * table , size_t length ) {\n uintptr_t value = ( input_value * ( length - 1 ) ) ;\n uint32_t upper = ( value + PRECACHE_OUTPUT_MAX - 1 ) / PRECACHE_OUTPUT_MAX ;\n uint32_t lower = value / PRECACHE_OUTPUT_MAX ;\n uint32_t interp = value % PRECACHE_OUTPUT_MAX ;\n value = ( table [ upper ] * ( interp ) + table [ lower ] * ( PRECACHE_OUTPUT_MAX - interp ) ) ;\n value += ( PRECACHE_OUTPUT_MAX * 65535 / 255 ) / 2 ;\n value /= ( PRECACHE_OUTPUT_MAX * 65535 / 255 ) ;\n return value ;\n }"}
{"idx": 2772, "target": 0, "func": "int __glob_pattern_type ( pattern , quote ) const char * pattern ;\n int quote ;\n {\n register const char * p ;\n int ret = 0 ;\n for ( p = pattern ;\n * p != '\\0' ;\n ++ p ) switch ( * p ) {\n case '?' : case '*' : return 1 ;\n case '\\\\' : if ( quote ) {\n if ( p [ 1 ] != '\\0' ) ++ p ;\n ret |= 2 ;\n }\n break ;\n case '[' : ret |= 4 ;\n break ;\n case ']' : if ( ret & 4 ) return 1 ;\n break ;\n }\n return ret ;\n }"}
{"idx": 2773, "target": 0, "func": "static void help ( struct parse * pcmd , FILE * fp ) {\n struct xcmd * xcp = NULL ;\n const char * cmd ;\n const char * list [ 100 ] ;\n size_t word , words ;\n size_t row , rows ;\n size_t col , cols ;\n size_t length ;\n if ( pcmd -> nargs == 0 ) {\n words = 0 ;\n for ( xcp = builtins ;\n xcp -> keyword != NULL ;\n xcp ++ ) {\n if ( * ( xcp -> keyword ) != '?' && words < COUNTOF ( list ) ) list [ words ++ ] = xcp -> keyword ;\n }\n for ( xcp = opcmds ;\n xcp -> keyword != NULL ;\n xcp ++ ) if ( words < COUNTOF ( list ) ) list [ words ++ ] = xcp -> keyword ;\n qsort ( ( void * ) list , words , sizeof ( list [ 0 ] ) , helpsort ) ;\n col = 0 ;\n for ( word = 0 ;\n word < words ;\n word ++ ) {\n length = strlen ( list [ word ] ) ;\n col = max ( col , length ) ;\n }\n cols = SCREENWIDTH / ++ col ;\n rows = ( words + cols - 1 ) / cols ;\n fprintf ( fp , \"ntpq commands:\\n\" ) ;\n for ( row = 0 ;\n row < rows ;\n row ++ ) {\n for ( word = row ;\n word < words ;\n word += rows ) fprintf ( fp , \"%-*.*s\" , ( int ) col , ( int ) col - 1 , list [ word ] ) ;\n fprintf ( fp , \"\\n\" ) ;\n }\n }\n else {\n cmd = pcmd -> argval [ 0 ] . string ;\n words = findcmd ( cmd , builtins , opcmds , & xcp ) ;\n if ( words == 0 ) {\n fprintf ( stderr , \"Command `%s' is unknown\\n\" , cmd ) ;\n return ;\n }\n else if ( words >= 2 ) {\n fprintf ( stderr , \"Command `%s' is ambiguous\\n\" , cmd ) ;\n return ;\n }\n fprintf ( fp , \"function: %s\\n\" , xcp -> comment ) ;\n printusage ( xcp , fp ) ;\n }\n }"}
{"idx": 2774, "target": 0, "func": "int qemuAgentFSThaw ( qemuAgentPtr mon ) {\n int ret = - 1 ;\n virJSONValuePtr cmd ;\n virJSONValuePtr reply = NULL ;\n cmd = qemuAgentMakeCommand ( \"guest-fsfreeze-thaw\" , NULL ) ;\n if ( ! cmd ) return - 1 ;\n if ( qemuAgentCommand ( mon , cmd , & reply , true , VIR_DOMAIN_QEMU_AGENT_COMMAND_BLOCK ) < 0 ) goto cleanup ;\n if ( virJSONValueObjectGetNumberInt ( reply , \"return\" , & ret ) < 0 ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"malformed return value\" ) ) ;\n }\n cleanup : virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 2775, "target": 0, "func": "void h225_calls_init_tap ( void ) {\n GString * error_string ;\n if ( have_H225_tap_listener == FALSE ) {\n error_string = register_tap_listener ( \"h225\" , & ( the_tapinfo_struct . h225_dummy ) , NULL , 0 , voip_calls_dlg_reset , H225calls_packet , voip_calls_dlg_draw ) ;\n if ( error_string != NULL ) {\n simple_dialog ( ESD_TYPE_ERROR , ESD_BTN_OK , \"%s\" , error_string -> str ) ;\n g_string_free ( error_string , TRUE ) ;\n exit ( 1 ) ;\n }\n have_H225_tap_listener = TRUE ;\n }\n }"}
{"idx": 2776, "target": 0, "func": "static void qemu_init_sigbus ( void ) {\n }"}
{"idx": 2777, "target": 0, "func": "static int http_config_cb ( const char * , RecDataT , RecData , void * ) {\n ink_atomic_increment ( ( int * ) & http_config_changes , 1 ) ;\n INK_MEMORY_BARRIER ;\n eventProcessor . schedule_in ( http_config_cont , HRTIME_SECONDS ( 1 ) , ET_CALL ) ;\n return 0 ;\n }"}
{"idx": 2778, "target": 0, "func": "static int check_dual_ref_flags ( VP9_COMP * cpi ) {\n const int ref_flags = cpi -> ref_frame_flags ;\n if ( vp9_segfeature_active ( & cpi -> common . seg , 1 , SEG_LVL_REF_FRAME ) ) {\n return 0 ;\n }\n else {\n return ( ! ! ( ref_flags & VP9_GOLD_FLAG ) + ! ! ( ref_flags & VP9_LAST_FLAG ) + ! ! ( ref_flags & VP9_ALT_FLAG ) ) >= 2 ;\n }\n }"}
{"idx": 2779, "target": 0, "func": "static int parse_RowsBufferCol ( tvbuff_t * tvb , packet_info * pinfo , int offset , guint32 row , guint32 col , struct CPMSetBindingsIn * bindingsin , struct rows_data * rowsin , gboolean b_is_64bit , proto_tree * parent_tree , const char * fmt , ... ) {\n proto_tree * tree ;\n proto_item * item ;\n guint32 buf_start = offset ;\n guint32 buf_offset = buf_start + ( row * bindingsin -> brow ) ;\n struct CTableColumn * pcol = & bindingsin -> acolumns [ col ] ;\n static const value_string STATUS [ ] = {\n {\n 0 , \"StoreStatusOk\" }\n , {\n 1 , \"StoreStatusDeferred\" }\n , {\n 2 , \"StoreStatusNull\" }\n , {\n 0 , NULL }\n }\n ;\n const char * txt ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_GetRowsColumn , & item , txt ) ;\n proto_item_append_text ( item , \" (%s)\" , pcol -> name ) ;\n if ( pcol -> statusused ) {\n int tmp_offset = buf_offset + pcol -> statusoffset ;\n proto_tree_add_string ( tree , hf_mswsp_ctablecolumn_status , tvb , tmp_offset , 1 , val_to_str ( tvb_get_guint8 ( tvb , tmp_offset ) , STATUS , \"(Invalid: 0x%x)\" ) ) ;\n }\n if ( pcol -> lengthused ) {\n int tmp_offset = buf_offset + pcol -> lengthoffset ;\n proto_tree_add_item ( tree , hf_mswsp_ctablecolumn_length , tvb , tmp_offset , 1 , ENC_LITTLE_ENDIAN ) ;\n }\n if ( pcol -> valueused ) {\n int tmp_offset = buf_offset + pcol -> valueoffset ;\n struct CRowVariant variant ;\n guint32 len = pcol -> valuesize ;\n guint64 base_address = rowsin -> ulclientbase ;\n ZERO_STRUCT ( variant ) ;\n if ( pcol -> lengthused ) {\n len = tvb_get_letohs ( tvb , buf_offset + pcol -> lengthoffset ) - pcol -> valuesize ;\n }\n if ( pcol -> vtype == VT_VARIANT ) {\n parse_VariantCol ( tvb , pinfo , tmp_offset , tree , base_address , len , b_is_64bit , & variant , \"CRowVariant\" ) ;\n }\n }\n return offset ;\n }"}
{"idx": 2780, "target": 0, "func": "static Node * substitute_actual_parameters ( Node * expr , int nargs , List * args , int * usecounts ) {\n substitute_actual_parameters_context context ;\n context . nargs = nargs ;\n context . args = args ;\n context . usecounts = usecounts ;\n return substitute_actual_parameters_mutator ( expr , & context ) ;\n }"}
{"idx": 2781, "target": 0, "func": "int PEM_write_ ## name ( FILE * fp , type * x ) ;\n # define DECLARE_PEM_write_fp_const ( name , type ) int PEM_write_ ## name ( FILE * fp , const type * x ) ;\n # define DECLARE_PEM_write_cb_fp ( name , type ) int PEM_write_ ## name ( FILE * fp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # endif # define DECLARE_PEM_read_bio ( name , type ) type * PEM_read_bio_ ## name ( BIO * bp , type * * x , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL ) DECLARE_PEM_rw ( PKCS7 , PKCS7 ) DECLARE_PEM_rw ( NETSCAPE_CERT_SEQUENCE , NETSCAPE_CERT_SEQUENCE ) DECLARE_PEM_rw ( PKCS8 , X509_SIG ) DECLARE_PEM_rw ( PKCS8_PRIV_KEY_INFO , PKCS8_PRIV_KEY_INFO ) # ifndef OPENSSL_NO_RSA DECLARE_PEM_rw_cb ( RSAPrivateKey , RSA ) DECLARE_PEM_rw_const ( RSAPublicKey , RSA ) DECLARE_PEM_rw ( RSA_PUBKEY , RSA ) # endif # ifndef OPENSSL_NO_DSA DECLARE_PEM_rw_cb ( DSAPrivateKey , DSA ) DECLARE_PEM_rw ( DSA_PUBKEY , DSA ) DECLARE_PEM_rw_const ( DSAparams , DSA ) # endif # ifndef OPENSSL_NO_EC DECLARE_PEM_rw_const ( ECPKParameters , EC_GROUP ) DECLARE_PEM_rw_cb ( ECPrivateKey , EC_KEY ) DECLARE_PEM_rw ( EC_PUBKEY , EC_KEY )"}
{"idx": 2782, "target": 0, "func": "static void cmd_window_move_down ( void ) {\n MAIN_WINDOW_REC * rec ;\n rec = mainwindows_find_lower_right ( active_mainwin ) ;\n if ( rec != NULL ) window_reparent ( active_win , rec ) ;\n }"}
{"idx": 2783, "target": 0, "func": "void relpTcpHintBurstBegin ( relpTcp_t * pThis ) {\n setCORKopt ( pThis -> sock , 1 ) ;\n }"}
{"idx": 2784, "target": 0, "func": "int dissect_h225_CallIdentifier ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_CallIdentifier , CallIdentifier_sequence ) ;\n return offset ;\n }"}
{"idx": 2785, "target": 0, "func": "static int dissect_h245_T_nsd_data ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 981 \"../../asn1/h245/h245.cnf\" tvbuff_t * next_tvb = NULL ;\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , NO_BOUND , NO_BOUND , FALSE , & next_tvb ) ;\n if ( next_tvb && tvb_length ( next_tvb ) ) {\n call_dissector ( ( nsp_handle ) ? nsp_handle : data_handle , next_tvb , actx -> pinfo , tree ) ;\n }\n return offset ;\n }"}
{"idx": 2786, "target": 0, "func": "xmlStructuredErrorFunc * __xmlStructuredError ( void ) {\n if ( IS_MAIN_THREAD ) return ( & xmlStructuredError ) ;\n else return ( & xmlGetGlobalState ( ) -> xmlStructuredError ) ;\n }"}
{"idx": 2787, "target": 0, "func": "int ssl3_get_record ( SSL * s ) {\n int ssl_major , ssl_minor , al ;\n int enc_err , n , i , ret = - 1 ;\n SSL3_RECORD * rr ;\n SSL3_BUFFER * rbuf ;\n SSL_SESSION * sess ;\n unsigned char * p ;\n unsigned char md [ EVP_MAX_MD_SIZE ] ;\n short version ;\n unsigned mac_size ;\n unsigned int num_recs = 0 ;\n unsigned int max_recs ;\n unsigned int j ;\n rr = RECORD_LAYER_get_rrec ( & s -> rlayer ) ;\n rbuf = RECORD_LAYER_get_rbuf ( & s -> rlayer ) ;\n max_recs = s -> max_pipelines ;\n if ( max_recs == 0 ) max_recs = 1 ;\n sess = s -> session ;\n do {\n if ( ( RECORD_LAYER_get_rstate ( & s -> rlayer ) != SSL_ST_READ_BODY ) || ( RECORD_LAYER_get_packet_length ( & s -> rlayer ) < SSL3_RT_HEADER_LENGTH ) ) {\n n = ssl3_read_n ( s , SSL3_RT_HEADER_LENGTH , SSL3_BUFFER_get_len ( rbuf ) , 0 , num_recs == 0 ? 1 : 0 ) ;\n if ( n <= 0 ) return ( n ) ;\n RECORD_LAYER_set_rstate ( & s -> rlayer , SSL_ST_READ_BODY ) ;\n p = RECORD_LAYER_get_packet ( & s -> rlayer ) ;\n if ( s -> server && RECORD_LAYER_is_first_record ( & s -> rlayer ) && ( p [ 0 ] & 0x80 ) && ( p [ 2 ] == SSL2_MT_CLIENT_HELLO ) ) {\n rr [ num_recs ] . type = SSL3_RT_HANDSHAKE ;\n rr [ num_recs ] . rec_version = SSL2_VERSION ;\n rr [ num_recs ] . length = ( ( p [ 0 ] & 0x7f ) << 8 ) | p [ 1 ] ;\n if ( rr [ num_recs ] . length > SSL3_BUFFER_get_len ( rbuf ) - SSL2_RT_HEADER_LENGTH ) {\n al = SSL_AD_RECORD_OVERFLOW ;\n SSLerr ( SSL_F_SSL3_GET_RECORD , SSL_R_PACKET_LENGTH_TOO_LONG ) ;\n goto f_err ;\n }\n if ( rr [ num_recs ] . length < MIN_SSL2_RECORD_LEN ) {\n al = SSL_AD_HANDSHAKE_FAILURE ;\n SSLerr ( SSL_F_SSL3_GET_RECORD , SSL_R_LENGTH_TOO_SHORT ) ;\n goto f_err ;\n }\n }\n else {\n if ( s -> msg_callback ) s -> msg_callback ( 0 , 0 , SSL3_RT_HEADER , p , 5 , s , s -> msg_callback_arg ) ;\n rr [ num_recs ] . type = * ( p ++ ) ;\n ssl_major = * ( p ++ ) ;\n ssl_minor = * ( p ++ ) ;\n version = ( ssl_major << 8 ) | ssl_minor ;\n rr [ num_recs ] . rec_version = version ;\n n2s ( p , rr [ num_recs ] . length ) ;\n if ( ! s -> first_packet && version != s -> version ) {\n SSLerr ( SSL_F_SSL3_GET_RECORD , SSL_R_WRONG_VERSION_NUMBER ) ;\n if ( ( s -> version & 0xFF00 ) == ( version & 0xFF00 ) && ! s -> enc_write_ctx && ! s -> write_hash ) {\n if ( rr -> type == SSL3_RT_ALERT ) {\n goto err ;\n }\n s -> version = ( unsigned short ) version ;\n }\n al = SSL_AD_PROTOCOL_VERSION ;\n goto f_err ;\n }\n if ( ( version >> 8 ) != SSL3_VERSION_MAJOR ) {\n if ( RECORD_LAYER_is_first_record ( & s -> rlayer ) ) {\n p = RECORD_LAYER_get_packet ( & s -> rlayer ) ;\n if ( strncmp ( ( char * ) p , \"GET \" , 4 ) == 0 || strncmp ( ( char * ) p , \"POST \" , 5 ) == 0 || strncmp ( ( char * ) p , \"HEAD \" , 5 ) == 0 || strncmp ( ( char * ) p , \"PUT \" , 4 ) == 0 ) {\n SSLerr ( SSL_F_SSL3_GET_RECORD , SSL_R_HTTP_REQUEST ) ;\n goto err ;\n }\n else if ( strncmp ( ( char * ) p , \"CONNE\" , 5 ) == 0 ) {\n SSLerr ( SSL_F_SSL3_GET_RECORD , SSL_R_HTTPS_PROXY_REQUEST ) ;\n goto err ;\n }\n SSLerr ( SSL_F_SSL3_GET_RECORD , SSL_R_WRONG_VERSION_NUMBER ) ;\n goto err ;\n }\n else {\n SSLerr ( SSL_F_SSL3_GET_RECORD , SSL_R_WRONG_VERSION_NUMBER ) ;\n al = SSL_AD_PROTOCOL_VERSION ;\n goto f_err ;\n }\n }\n if ( rr [ num_recs ] . length > SSL3_BUFFER_get_len ( rbuf ) - SSL3_RT_HEADER_LENGTH ) {\n al = SSL_AD_RECORD_OVERFLOW ;\n SSLerr ( SSL_F_SSL3_GET_RECORD , SSL_R_PACKET_LENGTH_TOO_LONG ) ;\n goto f_err ;\n }\n }\n }\n if ( rr [ num_recs ] . rec_version == SSL2_VERSION ) {\n i = rr [ num_recs ] . length + SSL2_RT_HEADER_LENGTH - SSL3_RT_HEADER_LENGTH ;\n }\n else {\n i = rr [ num_recs ] . length ;\n }\n if ( i > 0 ) {\n n = ssl3_read_n ( s , i , i , 1 , 0 ) ;\n if ( n <= 0 ) return ( n ) ;\n }\n RECORD_LAYER_set_rstate ( & s -> rlayer , SSL_ST_READ_HEADER ) ;\n if ( rr [ num_recs ] . rec_version == SSL2_VERSION ) {\n rr [ num_recs ] . input = & ( RECORD_LAYER_get_packet ( & s -> rlayer ) [ SSL2_RT_HEADER_LENGTH ] ) ;\n }\n else {\n rr [ num_recs ] . input = & ( RECORD_LAYER_get_packet ( & s -> rlayer ) [ SSL3_RT_HEADER_LENGTH ] ) ;\n }\n if ( rr [ num_recs ] . length > SSL3_RT_MAX_ENCRYPTED_LENGTH ) {\n al = SSL_AD_RECORD_OVERFLOW ;\n SSLerr ( SSL_F_SSL3_GET_RECORD , SSL_R_ENCRYPTED_LENGTH_TOO_LONG ) ;\n goto f_err ;\n }\n rr [ num_recs ] . data = rr [ num_recs ] . input ;\n rr [ num_recs ] . orig_len = rr [ num_recs ] . length ;\n rr [ num_recs ] . read = 0 ;\n num_recs ++ ;\n RECORD_LAYER_reset_packet_length ( & s -> rlayer ) ;\n RECORD_LAYER_clear_first_record ( & s -> rlayer ) ;\n }\n while ( num_recs < max_recs && rr [ num_recs - 1 ] . type == SSL3_RT_APPLICATION_DATA && SSL_USE_EXPLICIT_IV ( s ) && s -> enc_read_ctx != NULL && ( EVP_CIPHER_flags ( EVP_CIPHER_CTX_cipher ( s -> enc_read_ctx ) ) & EVP_CIPH_FLAG_PIPELINE ) && ssl3_record_app_data_waiting ( s ) ) ;\n if ( SSL_USE_ETM ( s ) && s -> read_hash ) {\n unsigned char * mac ;\n mac_size = EVP_MD_CTX_size ( s -> read_hash ) ;\n OPENSSL_assert ( mac_size <= EVP_MAX_MD_SIZE ) ;\n for ( j = 0 ;\n j < num_recs ;\n j ++ ) {\n if ( rr [ j ] . length < mac_size ) {\n al = SSL_AD_DECODE_ERROR ;\n SSLerr ( SSL_F_SSL3_GET_RECORD , SSL_R_LENGTH_TOO_SHORT ) ;\n goto f_err ;\n }\n rr [ j ] . length -= mac_size ;\n mac = rr [ j ] . data + rr [ j ] . length ;\n i = s -> method -> ssl3_enc -> mac ( s , & rr [ j ] , md , 0 ) ;\n if ( i < 0 || CRYPTO_memcmp ( md , mac , ( size_t ) mac_size ) != 0 ) {\n al = SSL_AD_BAD_RECORD_MAC ;\n SSLerr ( SSL_F_SSL3_GET_RECORD , SSL_R_DECRYPTION_FAILED_OR_BAD_RECORD_MAC ) ;\n goto f_err ;\n }\n }\n }\n enc_err = s -> method -> ssl3_enc -> enc ( s , rr , num_recs , 0 ) ;\n if ( enc_err == 0 ) {\n al = SSL_AD_DECRYPTION_FAILED ;\n SSLerr ( SSL_F_SSL3_GET_RECORD , SSL_R_BLOCK_CIPHER_PAD_IS_WRONG ) ;\n goto f_err ;\n }\n # ifdef SSL_DEBUG printf ( \"dec %d\\n\" , rr -> length ) ;\n {\n unsigned int z ;\n for ( z = 0 ;\n z < rr -> length ;\n z ++ ) printf ( \"%02X%c\" , rr -> data [ z ] , ( ( z + 1 ) % 16 ) ? ' ' : '\\n' ) ;\n }\n printf ( \"\\n\" ) ;\n # endif if ( ( sess != NULL ) && ( s -> enc_read_ctx != NULL ) && ( EVP_MD_CTX_md ( s -> read_hash ) != NULL ) && ! SSL_USE_ETM ( s ) ) {\n unsigned char * mac = NULL ;\n unsigned char mac_tmp [ EVP_MAX_MD_SIZE ] ;\n mac_size = EVP_MD_CTX_size ( s -> read_hash ) ;\n OPENSSL_assert ( mac_size <= EVP_MAX_MD_SIZE ) ;\n for ( j = 0 ;\n j < num_recs ;\n j ++ ) {\n if ( rr [ j ] . orig_len < mac_size || ( EVP_CIPHER_CTX_mode ( s -> enc_read_ctx ) == EVP_CIPH_CBC_MODE && rr [ j ] . orig_len < mac_size + 1 ) ) {\n al = SSL_AD_DECODE_ERROR ;\n SSLerr ( SSL_F_SSL3_GET_RECORD , SSL_R_LENGTH_TOO_SHORT ) ;\n goto f_err ;\n }\n if ( EVP_CIPHER_CTX_mode ( s -> enc_read_ctx ) == EVP_CIPH_CBC_MODE ) {\n mac = mac_tmp ;\n ssl3_cbc_copy_mac ( mac_tmp , & rr [ j ] , mac_size ) ;\n rr [ j ] . length -= mac_size ;\n }\n else {\n rr [ j ] . length -= mac_size ;\n mac = & rr [ j ] . data [ rr [ j ] . length ] ;\n }\n i = s -> method -> ssl3_enc -> mac ( s , & rr [ j ] , md , 0 ) ;\n if ( i < 0 || mac == NULL || CRYPTO_memcmp ( md , mac , ( size_t ) mac_size ) != 0 ) enc_err = - 1 ;\n if ( rr -> length > SSL3_RT_MAX_COMPRESSED_LENGTH + mac_size ) enc_err = - 1 ;\n }\n }\n if ( enc_err < 0 ) {\n al = SSL_AD_BAD_RECORD_MAC ;\n SSLerr ( SSL_F_SSL3_GET_RECORD , SSL_R_DECRYPTION_FAILED_OR_BAD_RECORD_MAC ) ;\n goto f_err ;\n }\n for ( j = 0 ;\n j < num_recs ;\n j ++ ) {\n if ( s -> expand != NULL ) {\n if ( rr [ j ] . length > SSL3_RT_MAX_COMPRESSED_LENGTH ) {\n al = SSL_AD_RECORD_OVERFLOW ;\n SSLerr ( SSL_F_SSL3_GET_RECORD , SSL_R_COMPRESSED_LENGTH_TOO_LONG ) ;\n goto f_err ;\n }\n if ( ! ssl3_do_uncompress ( s , & rr [ j ] ) ) {\n al = SSL_AD_DECOMPRESSION_FAILURE ;\n SSLerr ( SSL_F_SSL3_GET_RECORD , SSL_R_BAD_DECOMPRESSION ) ;\n goto f_err ;\n }\n }\n if ( rr [ j ] . length > SSL3_RT_MAX_PLAIN_LENGTH ) {\n al = SSL_AD_RECORD_OVERFLOW ;\n SSLerr ( SSL_F_SSL3_GET_RECORD , SSL_R_DATA_LENGTH_TOO_LONG ) ;\n goto f_err ;\n }\n rr [ j ] . off = 0 ;\n if ( rr [ j ] . length == 0 ) {\n RECORD_LAYER_inc_empty_record_count ( & s -> rlayer ) ;\n if ( RECORD_LAYER_get_empty_record_count ( & s -> rlayer ) > MAX_EMPTY_RECORDS ) {\n al = SSL_AD_UNEXPECTED_MESSAGE ;\n SSLerr ( SSL_F_SSL3_GET_RECORD , SSL_R_RECORD_TOO_SMALL ) ;\n goto f_err ;\n }\n }\n else {\n RECORD_LAYER_reset_empty_record_count ( & s -> rlayer ) ;\n }\n }\n RECORD_LAYER_set_numrpipes ( & s -> rlayer , num_recs ) ;\n return 1 ;\n f_err : ssl3_send_alert ( s , SSL3_AL_FATAL , al ) ;\n err : return ret ;\n }"}
{"idx": 2788, "target": 0, "func": "static int init_er ( MpegEncContext * s ) {\n ERContext * er = & s -> er ;\n int mb_array_size = s -> mb_height * s -> mb_stride ;\n int i ;\n er -> avctx = s -> avctx ;\n er -> dsp = & s -> dsp ;\n er -> mb_index2xy = s -> mb_index2xy ;\n er -> mb_num = s -> mb_num ;\n er -> mb_width = s -> mb_width ;\n er -> mb_height = s -> mb_height ;\n er -> mb_stride = s -> mb_stride ;\n er -> b8_stride = s -> b8_stride ;\n er -> er_temp_buffer = av_malloc ( s -> mb_height * s -> mb_stride ) ;\n er -> error_status_table = av_mallocz ( mb_array_size ) ;\n if ( ! er -> er_temp_buffer || ! er -> error_status_table ) goto fail ;\n er -> mbskip_table = s -> mbskip_table ;\n er -> mbintra_table = s -> mbintra_table ;\n for ( i = 0 ;\n i < FF_ARRAY_ELEMS ( s -> dc_val ) ;\n i ++ ) er -> dc_val [ i ] = s -> dc_val [ i ] ;\n er -> decode_mb = mpeg_er_decode_mb ;\n er -> opaque = s ;\n return 0 ;\n fail : av_freep ( & er -> er_temp_buffer ) ;\n av_freep ( & er -> error_status_table ) ;\n return AVERROR ( ENOMEM ) ;\n }"}
{"idx": 2789, "target": 1, "func": "static int dissect_h225_BandRejectReason ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 625 \"./asn1/h225/h225.cnf\" gint32 value ;\n h225_packet_info * h225_pi ;\n h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_BandRejectReason , BandRejectReason_choice , & value ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> reason = value ;\n }\n return offset ;\n }"}
{"idx": 2790, "target": 1, "func": "static void init_bit_trees ( ) {\n init_bit_tree ( cat1 , 1 ) ;\n init_bit_tree ( cat2 , 2 ) ;\n init_bit_tree ( cat3 , 3 ) ;\n init_bit_tree ( cat4 , 4 ) ;\n init_bit_tree ( cat5 , 5 ) ;\n init_bit_tree ( cat6 , 14 ) ;\n }"}
{"idx": 2791, "target": 0, "func": "void http_request_done ( struct evhttp_request * req , void * arg ) {\n const char * what = \"This is funny\" ;\n if ( req -> response_code != HTTP_OK ) {\n fprintf ( stderr , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n if ( evhttp_find_header ( req -> input_headers , \"Content-Type\" ) == NULL ) {\n fprintf ( stderr , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n if ( EVBUFFER_LENGTH ( req -> input_buffer ) != strlen ( what ) ) {\n fprintf ( stderr , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n if ( memcmp ( EVBUFFER_DATA ( req -> input_buffer ) , what , strlen ( what ) ) != 0 ) {\n fprintf ( stderr , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n test_ok = 1 ;\n event_loopexit ( NULL ) ;\n }"}
{"idx": 2792, "target": 0, "func": "static void pdf_run_gs_UseBlackPtComp ( fz_context * ctx , pdf_processor * proc , pdf_obj * obj ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_gstate * gstate = pdf_flush_text ( ctx , pr ) ;\n int on = pdf_name_eq ( ctx , obj , PDF_NAME_ON ) ;\n gstate -> stroke . color_params . bp = on ;\n gstate -> fill . color_params . bp = on ;\n }"}
{"idx": 2793, "target": 0, "func": "static void virtio_pci_config_writew ( void * opaque , uint32_t addr , uint32_t val ) {\n VirtIOPCIProxy * proxy = opaque ;\n uint32_t config = VIRTIO_PCI_CONFIG ( & proxy -> pci_dev ) ;\n addr -= proxy -> addr ;\n if ( addr < config ) {\n virtio_ioport_write ( proxy , addr , val ) ;\n return ;\n }\n addr -= config ;\n virtio_config_writew ( proxy -> vdev , addr , val ) ;\n }"}
{"idx": 2794, "target": 0, "func": "static vpx_codec_err_t ctrl_set_cq_level ( vpx_codec_alg_priv_t * ctx , va_list args ) {\n struct vp9_extracfg extra_cfg = ctx -> extra_cfg ;\n extra_cfg . cq_level = CAST ( VP8E_SET_CQ_LEVEL , args ) ;\n return update_extra_cfg ( ctx , & extra_cfg ) ;\n }"}
{"idx": 2795, "target": 0, "func": "static void test_immediatesignal ( void ) {\n struct event ev ;\n test_ok = 0 ;\n printf ( \"Immediate signal: \" ) ;\n signal_set ( & ev , SIGUSR1 , signal_cb , & ev ) ;\n signal_add ( & ev , NULL ) ;\n raise ( SIGUSR1 ) ;\n event_loop ( EVLOOP_NONBLOCK ) ;\n signal_del ( & ev ) ;\n cleanup_test ( ) ;\n }"}
{"idx": 2796, "target": 0, "func": "REGRESSION_TEST ( SDK_API_TXN_HTTP_INFO_GET ) ( RegressionTest * test , int , int * pstatus ) {\n HttpSM * s = HttpSM : : allocate ( ) ;\n bool success = true ;\n TSHttpTxn txnp = reinterpret_cast < TSHttpTxn > ( s ) ;\n TSMgmtInt ival_read ;\n s -> init ( ) ;\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n HttpCacheSM * c_sm = & ( s -> get_cache_sm ( ) ) ;\n c_sm -> set_readwhilewrite_inprogress ( true ) ;\n c_sm -> set_open_read_tries ( 5 ) ;\n c_sm -> set_open_write_tries ( 8 ) ;\n TSHttpTxnInfoIntGet ( txnp , TS_TXN_INFO_CACHE_HIT_RWW , & ival_read ) ;\n if ( ival_read == 0 ) {\n SDK_RPRINT ( test , \"TSHttpTxnInfoIntGet\" , \"TestCase1\" , TC_FAIL , \"Failed on %d, %d != %d\" , TS_TXN_INFO_CACHE_HIT_RWW , ival_read , 1 ) ;\n success = false ;\n }\n TSHttpTxnInfoIntGet ( txnp , TS_TXN_INFO_CACHE_OPEN_READ_TRIES , & ival_read ) ;\n if ( ival_read != 5 ) {\n SDK_RPRINT ( test , \"TSHttpTxnInfoIntGet\" , \"TestCase1\" , TC_FAIL , \"Failed on %d, %d != %d\" , TS_TXN_INFO_CACHE_HIT_RWW , ival_read , 5 ) ;\n success = false ;\n }\n TSHttpTxnInfoIntGet ( txnp , TS_TXN_INFO_CACHE_OPEN_WRITE_TRIES , & ival_read ) ;\n if ( ival_read != 8 ) {\n SDK_RPRINT ( test , \"TSHttpTxnInfoIntGet\" , \"TestCase1\" , TC_FAIL , \"Failed on %d, %d != %d\" , TS_TXN_INFO_CACHE_HIT_RWW , ival_read , 8 ) ;\n success = false ;\n }\n s -> destroy ( ) ;\n if ( success ) {\n * pstatus = REGRESSION_TEST_PASSED ;\n SDK_RPRINT ( test , \"TSHttpTxnInfoIntGet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n else {\n * pstatus = REGRESSION_TEST_FAILED ;\n }\n return ;\n }"}
{"idx": 2797, "target": 0, "func": "void generate_filename ( const char * pattern , char * out , size_t q_len , unsigned int d_w , unsigned int d_h , unsigned int frame_in ) {\n const char * p = pattern ;\n char * q = out ;\n do {\n char * next_pat = strchr ( p , '%' ) ;\n if ( p == next_pat ) {\n size_t pat_len ;\n q [ q_len - 1 ] = '\\0' ;\n switch ( p [ 1 ] ) {\n case 'w' : snprintf ( q , q_len - 1 , \"%d\" , d_w ) ;\n break ;\n case 'h' : snprintf ( q , q_len - 1 , \"%d\" , d_h ) ;\n break ;\n case '1' : snprintf ( q , q_len - 1 , \"%d\" , frame_in ) ;\n break ;\n case '2' : snprintf ( q , q_len - 1 , \"%02d\" , frame_in ) ;\n break ;\n case '3' : snprintf ( q , q_len - 1 , \"%03d\" , frame_in ) ;\n break ;\n case '4' : snprintf ( q , q_len - 1 , \"%04d\" , frame_in ) ;\n break ;\n case '5' : snprintf ( q , q_len - 1 , \"%05d\" , frame_in ) ;\n break ;\n case '6' : snprintf ( q , q_len - 1 , \"%06d\" , frame_in ) ;\n break ;\n case '7' : snprintf ( q , q_len - 1 , \"%07d\" , frame_in ) ;\n break ;\n case '8' : snprintf ( q , q_len - 1 , \"%08d\" , frame_in ) ;\n break ;\n case '9' : snprintf ( q , q_len - 1 , \"%09d\" , frame_in ) ;\n break ;\n default : die ( \"Unrecognized pattern %%%c\\n\" , p [ 1 ] ) ;\n break ;\n }\n pat_len = strlen ( q ) ;\n if ( pat_len >= q_len - 1 ) die ( \"Output filename too long.\\n\" ) ;\n q += pat_len ;\n p += 2 ;\n q_len -= pat_len ;\n }\n else {\n size_t copy_len ;\n if ( ! next_pat ) copy_len = strlen ( p ) ;\n else copy_len = next_pat - p ;\n if ( copy_len >= q_len - 1 ) die ( \"Output filename too long.\\n\" ) ;\n memcpy ( q , p , copy_len ) ;\n q [ copy_len ] = '\\0' ;\n q += copy_len ;\n p += copy_len ;\n q_len -= copy_len ;\n }\n }\n while ( * p ) ;\n }"}
{"idx": 2798, "target": 0, "func": "void xps_parse_linear_gradient_brush ( xps_document * doc , const fz_matrix * ctm , const fz_rect * area , char * base_uri , xps_resource * dict , fz_xml * root ) {\n xps_parse_gradient_brush ( doc , ctm , area , base_uri , dict , root , xps_draw_linear_gradient ) ;\n }"}
{"idx": 2799, "target": 0, "func": "const char * event_get_method ( void ) {\n return ( current_base -> evsel -> name ) ;\n }"}
{"idx": 2800, "target": 0, "func": "void dtls1_clear_record_buffer ( SSL * s ) {\n pitem * item ;\n for ( item = pqueue_pop ( s -> d1 -> sent_messages ) ;\n item != NULL ;\n item = pqueue_pop ( s -> d1 -> sent_messages ) ) {\n dtls1_hm_fragment_free ( ( hm_fragment * ) item -> data ) ;\n pitem_free ( item ) ;\n }\n }"}
{"idx": 2801, "target": 0, "func": "void crypto_policy_set_aes_cm_256_null_auth ( crypto_policy_t * p ) {\n p -> cipher_type = AES_ICM ;\n p -> cipher_key_len = 46 ;\n p -> auth_type = NULL_AUTH ;\n p -> auth_key_len = 0 ;\n p -> auth_tag_len = 0 ;\n p -> sec_serv = sec_serv_conf ;\n }"}
{"idx": 2802, "target": 0, "func": "static bool rowtype_field_matches ( Oid rowtypeid , int fieldnum , Oid expectedtype , int32 expectedtypmod , Oid expectedcollation ) {\n TupleDesc tupdesc ;\n Form_pg_attribute attr ;\n if ( rowtypeid == RECORDOID ) return true ;\n tupdesc = lookup_rowtype_tupdesc ( rowtypeid , - 1 ) ;\n if ( fieldnum <= 0 || fieldnum > tupdesc -> natts ) {\n ReleaseTupleDesc ( tupdesc ) ;\n return false ;\n }\n attr = tupdesc -> attrs [ fieldnum - 1 ] ;\n if ( attr -> attisdropped || attr -> atttypid != expectedtype || attr -> atttypmod != expectedtypmod || attr -> attcollation != expectedcollation ) {\n ReleaseTupleDesc ( tupdesc ) ;\n return false ;\n }\n ReleaseTupleDesc ( tupdesc ) ;\n return true ;\n }"}
{"idx": 2803, "target": 0, "func": "static int s390_virtio_device_init ( VirtIOS390Device * dev , VirtIODevice * vdev ) {\n VirtIOS390Bus * bus ;\n int dev_len ;\n bus = DO_UPCAST ( VirtIOS390Bus , bus , dev -> qdev . parent_bus ) ;\n dev -> vdev = vdev ;\n dev -> dev_offs = bus -> dev_offs ;\n dev -> feat_len = sizeof ( uint32_t ) ;\n dev_len = VIRTIO_DEV_OFFS_CONFIG ;\n dev_len += s390_virtio_device_num_vq ( dev ) * VIRTIO_VQCONFIG_LEN ;\n dev_len += dev -> feat_len * 2 ;\n dev_len += vdev -> config_len ;\n bus -> dev_offs += dev_len ;\n virtio_bind_device ( vdev , & virtio_s390_bindings , dev ) ;\n dev -> host_features = vdev -> get_features ( vdev , dev -> host_features ) ;\n s390_virtio_device_sync ( dev ) ;\n return 0 ;\n }"}
{"idx": 2804, "target": 0, "func": "static int dissect_h245_T_eRM ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_eRM , T_eRM_sequence ) ;\n return offset ;\n }"}
{"idx": 2805, "target": 0, "func": "static int rpza_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n RpzaContext * s = avctx -> priv_data ;\n int ret ;\n s -> buf = buf ;\n s -> size = buf_size ;\n if ( ( ret = ff_reget_buffer ( avctx , & s -> frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n rpza_decode_stream ( s ) ;\n if ( ( ret = av_frame_ref ( data , & s -> frame ) ) < 0 ) return ret ;\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 2806, "target": 0, "func": "int mbfl_buffer_converter_illegal_substchar ( mbfl_buffer_converter * convd , int substchar ) {\n if ( convd != NULL ) {\n if ( convd -> filter2 != NULL ) {\n convd -> filter2 -> illegal_substchar = substchar ;\n }\n else if ( convd -> filter1 != NULL ) {\n convd -> filter1 -> illegal_substchar = substchar ;\n }\n else {\n return 0 ;\n }\n }\n return 1 ;\n }"}
{"idx": 2807, "target": 0, "func": "void ff_write_quant_matrix ( PutBitContext * pb , uint16_t * matrix ) {\n int i ;\n if ( matrix ) {\n put_bits ( pb , 1 , 1 ) ;\n for ( i = 0 ;\n i < 64 ;\n i ++ ) {\n put_bits ( pb , 8 , matrix [ ff_zigzag_direct [ i ] ] ) ;\n }\n }\n else put_bits ( pb , 1 , 0 ) ;\n }"}
{"idx": 2808, "target": 0, "func": "afs_int32 SPR_ListSuperGroups ( struct rx_call * call , afs_int32 aid , prlist * alist , afs_int32 * over ) {\n # if defined ( SUPERGROUPS ) afs_int32 code ;\n afs_int32 cid = ANONYMOUSID ;\n code = listSuperGroups ( call , aid , alist , over , & cid ) ;\n osi_auditU ( call , PTS_LstSGrps , code , AUD_ID , aid , AUD_END ) ;\n ViceLog ( 125 , ( \"PTS_ListSuperGroups: code %d cid %d aid %d\\n\" , code , cid , aid ) ) ;\n return code ;\n # else return RXGEN_OPCODE ;\n # endif }"}
{"idx": 2809, "target": 0, "func": "static void fill_slice_short ( DXVA_Slice_H264_Short * slice , unsigned position , unsigned size ) {\n memset ( slice , 0 , sizeof ( * slice ) ) ;\n slice -> BSNALunitDataLocation = position ;\n slice -> SliceBytesInBuffer = size ;\n slice -> wBadSliceChopping = 0 ;\n }"}
{"idx": 2810, "target": 1, "func": "static int vc1_decode_intra_block ( VC1Context * v , int16_t block [ 64 ] , int n , int coded , int mquant , int codingset ) {\n GetBitContext * gb = & v -> s . gb ;\n MpegEncContext * s = & v -> s ;\n int dc_pred_dir = 0 ;\n int i ;\n int16_t * dc_val ;\n int16_t * ac_val , * ac_val2 ;\n int dcdiff ;\n int mb_pos = s -> mb_x + s -> mb_y * s -> mb_stride ;\n int a_avail = v -> a_avail , c_avail = v -> c_avail ;\n int use_pred = s -> ac_pred ;\n int scale ;\n int q1 , q2 = 0 ;\n s -> dsp . clear_block ( block ) ;\n mquant = ( mquant < 1 ) ? 0 : ( ( mquant > 31 ) ? 31 : mquant ) ;\n s -> y_dc_scale = s -> y_dc_scale_table [ mquant ] ;\n s -> c_dc_scale = s -> c_dc_scale_table [ mquant ] ;\n if ( n < 4 ) {\n dcdiff = get_vlc2 ( & s -> gb , ff_msmp4_dc_luma_vlc [ s -> dc_table_index ] . table , DC_VLC_BITS , 3 ) ;\n }\n else {\n dcdiff = get_vlc2 ( & s -> gb , ff_msmp4_dc_chroma_vlc [ s -> dc_table_index ] . table , DC_VLC_BITS , 3 ) ;\n }\n if ( dcdiff < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Illegal DC VLC\\n\" ) ;\n return - 1 ;\n }\n if ( dcdiff ) {\n if ( dcdiff == 119 ) {\n if ( mquant == 1 ) dcdiff = get_bits ( gb , 10 ) ;\n else if ( mquant == 2 ) dcdiff = get_bits ( gb , 9 ) ;\n else dcdiff = get_bits ( gb , 8 ) ;\n }\n else {\n if ( mquant == 1 ) dcdiff = ( dcdiff << 2 ) + get_bits ( gb , 2 ) - 3 ;\n else if ( mquant == 2 ) dcdiff = ( dcdiff << 1 ) + get_bits1 ( gb ) - 1 ;\n }\n if ( get_bits1 ( gb ) ) dcdiff = - dcdiff ;\n }\n dcdiff += vc1_pred_dc ( & v -> s , v -> overlap , mquant , n , a_avail , c_avail , & dc_val , & dc_pred_dir ) ;\n * dc_val = dcdiff ;\n if ( n < 4 ) {\n block [ 0 ] = dcdiff * s -> y_dc_scale ;\n }\n else {\n block [ 0 ] = dcdiff * s -> c_dc_scale ;\n }\n i = 1 ;\n if ( ! a_avail ) dc_pred_dir = 1 ;\n if ( ! c_avail ) dc_pred_dir = 0 ;\n if ( ! a_avail && ! c_avail ) use_pred = 0 ;\n ac_val = s -> ac_val [ 0 ] [ 0 ] + s -> block_index [ n ] * 16 ;\n ac_val2 = ac_val ;\n scale = mquant * 2 + v -> halfpq ;\n if ( dc_pred_dir ) ac_val -= 16 ;\n else ac_val -= 16 * s -> block_wrap [ n ] ;\n q1 = s -> current_picture . f . qscale_table [ mb_pos ] ;\n if ( dc_pred_dir && c_avail && mb_pos ) q2 = s -> current_picture . f . qscale_table [ mb_pos - 1 ] ;\n if ( ! dc_pred_dir && a_avail && mb_pos >= s -> mb_stride ) q2 = s -> current_picture . f . qscale_table [ mb_pos - s -> mb_stride ] ;\n if ( dc_pred_dir && n == 1 ) q2 = q1 ;\n if ( ! dc_pred_dir && n == 2 ) q2 = q1 ;\n if ( n == 3 ) q2 = q1 ;\n if ( coded ) {\n int last = 0 , skip , value ;\n int k ;\n while ( ! last ) {\n vc1_decode_ac_coeff ( v , & last , & skip , & value , codingset ) ;\n i += skip ;\n if ( i > 63 ) break ;\n if ( v -> fcm == PROGRESSIVE ) block [ v -> zz_8x8 [ 0 ] [ i ++ ] ] = value ;\n else {\n if ( use_pred && ( v -> fcm == ILACE_FRAME ) ) {\n if ( ! dc_pred_dir ) block [ v -> zz_8x8 [ 2 ] [ i ++ ] ] = value ;\n else block [ v -> zz_8x8 [ 3 ] [ i ++ ] ] = value ;\n }\n else {\n block [ v -> zzi_8x8 [ i ++ ] ] = value ;\n }\n }\n }\n if ( use_pred ) {\n if ( q2 && q1 != q2 ) {\n q1 = q1 * 2 + ( ( q1 == v -> pq ) ? v -> halfpq : 0 ) - 1 ;\n q2 = q2 * 2 + ( ( q2 == v -> pq ) ? v -> halfpq : 0 ) - 1 ;\n if ( q1 < 1 ) return AVERROR_INVALIDDATA ;\n if ( dc_pred_dir ) {\n for ( k = 1 ;\n k < 8 ;\n k ++ ) block [ k << v -> left_blk_sh ] += ( ac_val [ k ] * q2 * ff_vc1_dqscale [ q1 - 1 ] + 0x20000 ) >> 18 ;\n }\n else {\n for ( k = 1 ;\n k < 8 ;\n k ++ ) block [ k << v -> top_blk_sh ] += ( ac_val [ k + 8 ] * q2 * ff_vc1_dqscale [ q1 - 1 ] + 0x20000 ) >> 18 ;\n }\n }\n else {\n if ( dc_pred_dir ) {\n for ( k = 1 ;\n k < 8 ;\n k ++ ) block [ k << v -> left_blk_sh ] += ac_val [ k ] ;\n }\n else {\n for ( k = 1 ;\n k < 8 ;\n k ++ ) block [ k << v -> top_blk_sh ] += ac_val [ k + 8 ] ;\n }\n }\n }\n for ( k = 1 ;\n k < 8 ;\n k ++ ) {\n ac_val2 [ k ] = block [ k << v -> left_blk_sh ] ;\n ac_val2 [ k + 8 ] = block [ k << v -> top_blk_sh ] ;\n }\n for ( k = 1 ;\n k < 64 ;\n k ++ ) if ( block [ k ] ) {\n block [ k ] *= scale ;\n if ( ! v -> pquantizer ) block [ k ] += ( block [ k ] < 0 ) ? - mquant : mquant ;\n }\n if ( use_pred ) i = 63 ;\n }\n else {\n int k ;\n memset ( ac_val2 , 0 , 16 * 2 ) ;\n if ( dc_pred_dir ) {\n if ( use_pred ) {\n memcpy ( ac_val2 , ac_val , 8 * 2 ) ;\n if ( q2 && q1 != q2 ) {\n q1 = q1 * 2 + ( ( q1 == v -> pq ) ? v -> halfpq : 0 ) - 1 ;\n q2 = q2 * 2 + ( ( q2 == v -> pq ) ? v -> halfpq : 0 ) - 1 ;\n if ( q1 < 1 ) return AVERROR_INVALIDDATA ;\n for ( k = 1 ;\n k < 8 ;\n k ++ ) ac_val2 [ k ] = ( ac_val2 [ k ] * q2 * ff_vc1_dqscale [ q1 - 1 ] + 0x20000 ) >> 18 ;\n }\n }\n }\n else {\n if ( use_pred ) {\n memcpy ( ac_val2 + 8 , ac_val + 8 , 8 * 2 ) ;\n if ( q2 && q1 != q2 ) {\n q1 = q1 * 2 + ( ( q1 == v -> pq ) ? v -> halfpq : 0 ) - 1 ;\n q2 = q2 * 2 + ( ( q2 == v -> pq ) ? v -> halfpq : 0 ) - 1 ;\n if ( q1 < 1 ) return AVERROR_INVALIDDATA ;\n for ( k = 1 ;\n k < 8 ;\n k ++ ) ac_val2 [ k + 8 ] = ( ac_val2 [ k + 8 ] * q2 * ff_vc1_dqscale [ q1 - 1 ] + 0x20000 ) >> 18 ;\n }\n }\n }\n if ( use_pred ) {\n if ( dc_pred_dir ) {\n for ( k = 1 ;\n k < 8 ;\n k ++ ) {\n block [ k << v -> left_blk_sh ] = ac_val2 [ k ] * scale ;\n if ( ! v -> pquantizer && block [ k << v -> left_blk_sh ] ) block [ k << v -> left_blk_sh ] += ( block [ k << v -> left_blk_sh ] < 0 ) ? - mquant : mquant ;\n }\n }\n else {\n for ( k = 1 ;\n k < 8 ;\n k ++ ) {\n block [ k << v -> top_blk_sh ] = ac_val2 [ k + 8 ] * scale ;\n if ( ! v -> pquantizer && block [ k << v -> top_blk_sh ] ) block [ k << v -> top_blk_sh ] += ( block [ k << v -> top_blk_sh ] < 0 ) ? - mquant : mquant ;\n }\n }\n i = 63 ;\n }\n }\n s -> block_last_index [ n ] = i ;\n return 0 ;\n }"}
{"idx": 2811, "target": 0, "func": "static int show_format ( WriterContext * w , InputFile * ifile ) {\n AVFormatContext * fmt_ctx = ifile -> fmt_ctx ;\n char val_str [ 128 ] ;\n int64_t size = fmt_ctx -> pb ? avio_size ( fmt_ctx -> pb ) : - 1 ;\n int ret = 0 ;\n writer_print_section_header ( w , SECTION_ID_FORMAT ) ;\n print_str_validate ( \"filename\" , fmt_ctx -> filename ) ;\n print_int ( \"nb_streams\" , fmt_ctx -> nb_streams ) ;\n print_int ( \"nb_programs\" , fmt_ctx -> nb_programs ) ;\n print_str ( \"format_name\" , fmt_ctx -> iformat -> name ) ;\n if ( ! do_bitexact ) {\n if ( fmt_ctx -> iformat -> long_name ) print_str ( \"format_long_name\" , fmt_ctx -> iformat -> long_name ) ;\n else print_str_opt ( \"format_long_name\" , \"unknown\" ) ;\n }\n print_time ( \"start_time\" , fmt_ctx -> start_time , & AV_TIME_BASE_Q ) ;\n print_time ( \"duration\" , fmt_ctx -> duration , & AV_TIME_BASE_Q ) ;\n if ( size >= 0 ) print_val ( \"size\" , size , unit_byte_str ) ;\n else print_str_opt ( \"size\" , \"N/A\" ) ;\n if ( fmt_ctx -> bit_rate > 0 ) print_val ( \"bit_rate\" , fmt_ctx -> bit_rate , unit_bit_per_second_str ) ;\n else print_str_opt ( \"bit_rate\" , \"N/A\" ) ;\n print_int ( \"probe_score\" , av_format_get_probe_score ( fmt_ctx ) ) ;\n if ( do_show_format_tags ) ret = show_tags ( w , fmt_ctx -> metadata , SECTION_ID_FORMAT_TAGS ) ;\n writer_print_section_footer ( w ) ;\n fflush ( stdout ) ;\n return ret ;\n }"}
{"idx": 2812, "target": 0, "func": "int x_catch_free_colors ( Display * dpy , XErrorEvent * err ) {\n if ( err -> request_code == X_FreeColors || x_error_handler . orighandler == x_catch_free_colors ) return 0 ;\n return x_error_handler . orighandler ( dpy , err ) ;\n }"}
{"idx": 2813, "target": 0, "func": "void ff_fix_long_mvs ( MpegEncContext * s , uint8_t * field_select_table , int field_select , int16_t ( * mv_table ) [ 2 ] , int f_code , int type , int truncate ) {\n MotionEstContext * const c = & s -> me ;\n int y , h_range , v_range ;\n int range = ( ( ( s -> out_format == FMT_MPEG1 || s -> msmpeg4_version ) ? 8 : 16 ) << f_code ) ;\n if ( c -> avctx -> me_range && range > c -> avctx -> me_range ) range = c -> avctx -> me_range ;\n h_range = range ;\n v_range = field_select_table ? range >> 1 : range ;\n for ( y = 0 ;\n y < s -> mb_height ;\n y ++ ) {\n int x ;\n int xy = y * s -> mb_stride ;\n for ( x = 0 ;\n x < s -> mb_width ;\n x ++ ) {\n if ( s -> mb_type [ xy ] & type ) {\n if ( field_select_table == NULL || field_select_table [ xy ] == field_select ) {\n if ( mv_table [ xy ] [ 0 ] >= h_range || mv_table [ xy ] [ 0 ] < - h_range || mv_table [ xy ] [ 1 ] >= v_range || mv_table [ xy ] [ 1 ] < - v_range ) {\n if ( truncate ) {\n if ( mv_table [ xy ] [ 0 ] > h_range - 1 ) mv_table [ xy ] [ 0 ] = h_range - 1 ;\n else if ( mv_table [ xy ] [ 0 ] < - h_range ) mv_table [ xy ] [ 0 ] = - h_range ;\n if ( mv_table [ xy ] [ 1 ] > v_range - 1 ) mv_table [ xy ] [ 1 ] = v_range - 1 ;\n else if ( mv_table [ xy ] [ 1 ] < - v_range ) mv_table [ xy ] [ 1 ] = - v_range ;\n }\n else {\n s -> mb_type [ xy ] &= ~ type ;\n s -> mb_type [ xy ] |= CANDIDATE_MB_TYPE_INTRA ;\n mv_table [ xy ] [ 0 ] = mv_table [ xy ] [ 1 ] = 0 ;\n }\n }\n }\n }\n xy ++ ;\n }\n }\n }"}
{"idx": 2814, "target": 0, "func": "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_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_SEQUENCE_OF_SupportedPrefix , SEQUENCE_OF_SupportedPrefix_sequence_of ) ;\n return offset ;\n }"}
{"idx": 2815, "target": 0, "func": "WRITE_CLASS_ENCODER ( AuthCapsInfo ) struct AuthTicket {\n EntityName name ;\n uint64_t global_id ;\n uint64_t auid ;\n utime_t created , renew_after , expires ;\n AuthCapsInfo caps ;\n __u32 flags ;\n AuthTicket ( ) : global_id ( 0 ) , auid ( CEPH_AUTH_UID_DEFAULT ) , flags ( 0 ) {\n }\n void init_timestamps ( utime_t now , double ttl ) {\n created = now ;\n expires = now ;\n expires += ttl ;\n renew_after = now ;\n renew_after += ttl / 2.0 ;\n }\n void encode ( bufferlist & bl ) const {\n __u8 struct_v = 2 ;\n : : encode ( struct_v , bl ) ;\n : : encode ( name , bl ) ;\n : : encode ( global_id , bl ) ;\n : : encode ( auid , bl ) ;\n : : encode ( created , bl ) ;\n : : encode ( expires , bl ) ;\n : : encode ( caps , bl ) ;\n : : encode ( flags , bl ) ;\n }\n void decode ( bufferlist : : iterator & bl ) {\n __u8 struct_v ;\n : : decode ( struct_v , bl ) ;\n : : decode ( name , bl ) ;\n : : decode ( global_id , bl ) ;\n if ( struct_v >= 2 ) : : decode ( auid , bl ) ;\n else auid = CEPH_AUTH_UID_DEFAULT ;\n : : decode ( created , bl ) ;\n : : decode ( expires , bl ) ;\n : : decode ( caps , bl ) ;\n : : decode ( flags , bl ) ;\n }\n }\n ;\n WRITE_CLASS_ENCODER ( AuthTicket ) struct AuthAuthorizer {\n __u32 protocol ;\n bufferlist bl ;\n CryptoKey session_key ;\n explicit AuthAuthorizer ( __u32 p ) : protocol ( p ) {\n }\n virtual ~ AuthAuthorizer ( ) {\n }\n virtual bool verify_reply ( bufferlist : : iterator & reply ) = 0 ;\n virtual bool add_challenge ( CephContext * cct , bufferlist & challenge ) = 0 ;\n }"}
{"idx": 2816, "target": 0, "func": "static int dissect_h245_T_rtp ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_rtp , T_rtp_sequence ) ;\n return offset ;\n }"}
{"idx": 2817, "target": 1, "func": "void vp8_mbpost_proc_down_c ( unsigned char * dst , int pitch , int rows , int cols , int flimit ) {\n int r , c , i ;\n const short * rv3 = & vp8_rv [ 63 & rand ( ) ] ;\n for ( c = 0 ;\n c < cols ;\n c ++ ) {\n unsigned char * s = & dst [ c ] ;\n int sumsq = 0 ;\n int sum = 0 ;\n unsigned char d [ 16 ] ;\n const short * rv2 = rv3 + ( ( c * 17 ) & 127 ) ;\n for ( i = - 8 ;\n i < 0 ;\n i ++ ) s [ i * pitch ] = s [ 0 ] ;\n for ( i = rows ;\n i < rows + 17 ;\n i ++ ) s [ i * pitch ] = s [ ( rows - 1 ) * pitch ] ;\n for ( i = - 8 ;\n i <= 6 ;\n i ++ ) {\n sumsq += s [ i * pitch ] * s [ i * pitch ] ;\n sum += s [ i * pitch ] ;\n }\n for ( r = 0 ;\n r < rows + 8 ;\n r ++ ) {\n sumsq += s [ 7 * pitch ] * s [ 7 * pitch ] - s [ - 8 * pitch ] * s [ - 8 * pitch ] ;\n sum += s [ 7 * pitch ] - s [ - 8 * pitch ] ;\n d [ r & 15 ] = s [ 0 ] ;\n if ( sumsq * 15 - sum * sum < flimit ) {\n d [ r & 15 ] = ( rv2 [ r & 127 ] + sum + s [ 0 ] ) >> 4 ;\n }\n if ( r >= 8 ) s [ - 8 * pitch ] = d [ ( r - 8 ) & 15 ] ;\n s += pitch ;\n }\n }\n }"}
{"idx": 2818, "target": 0, "func": "static void test_want_only_once ( void ) {\n struct event ev ;\n struct timeval tv ;\n setup_test ( \"Want read only once: \" ) ;\n write ( pair [ 0 ] , TEST1 , strlen ( TEST1 ) + 1 ) ;\n evutil_timerclear ( & tv ) ;\n tv . tv_sec = 1 ;\n event_loopexit ( & tv ) ;\n event_set ( & ev , pair [ 1 ] , EV_READ , read_once_cb , & ev ) ;\n if ( event_add ( & ev , NULL ) == - 1 ) exit ( 1 ) ;\n event_dispatch ( ) ;\n cleanup_test ( ) ;\n }"}
{"idx": 2819, "target": 0, "func": "int prepare_bitmap_git ( void ) {\n if ( bitmap_git . loaded ) return 0 ;\n if ( ! open_pack_bitmap ( ) ) return load_pack_bitmap ( ) ;\n return - 1 ;\n }"}
{"idx": 2820, "target": 0, "func": "static int dissect_h225_T_route ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_T_route , T_route_sequence_of ) ;\n return offset ;\n }"}
{"idx": 2821, "target": 0, "func": "static int dissect_h245_FECMode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_FECMode , FECMode_sequence ) ;\n return offset ;\n }"}
{"idx": 2822, "target": 0, "func": "static void inhibit_power_manager ( CommonJob * job , const char * message ) {\n job -> inhibit_cookie = gtk_application_inhibit ( GTK_APPLICATION ( g_application_get_default ( ) ) , GTK_WINDOW ( job -> parent_window ) , GTK_APPLICATION_INHIBIT_LOGOUT | GTK_APPLICATION_INHIBIT_SUSPEND , message ) ;\n }"}
{"idx": 2823, "target": 0, "func": "TEST_F ( SSLErrorAssistantTest , DynamicInterstitialListNoCertHashes ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n EXPECT_EQ ( 1u , ssl_info ( ) . public_key_hashes . size ( ) ) ;\n auto config_proto = std : : make_unique < chrome_browser_ssl : : SSLErrorAssistantConfig > ( ) ;\n config_proto -> set_version_id ( kLargeVersionId ) ;\n chrome_browser_ssl : : DynamicInterstitial * filter = config_proto -> add_dynamic_interstitial ( ) ;\n filter -> set_interstitial_type ( chrome_browser_ssl : : DynamicInterstitial : : INTERSTITIAL_PAGE_CAPTIVE_PORTAL ) ;\n filter -> set_cert_error ( chrome_browser_ssl : : DynamicInterstitial : : UNKNOWN_CERT_ERROR ) ;\n filter -> add_sha256_hash ( \"sha256ightjar\" ) ;\n filter -> add_sha256_hash ( \"sha256/frogmouth\" ) ;\n filter -> add_sha256_hash ( \"sha256/poorwill\" ) ;\n filter = config_proto -> add_dynamic_interstitial ( ) ;\n filter -> set_interstitial_type ( chrome_browser_ssl : : DynamicInterstitial : : INTERSTITIAL_PAGE_SSL ) ;\n filter -> set_cert_error ( chrome_browser_ssl : : DynamicInterstitial : : ERR_CERT_COMMON_NAME_INVALID ) ;\n filter -> set_issuer_common_name_regex ( issuer_common_name ( ) ) ;\n filter -> set_issuer_organization_regex ( issuer_organization_name ( ) ) ;\n filter -> set_mitm_software_name ( \"UwS\" ) ;\n error_assistant ( ) -> SetErrorAssistantProto ( std : : move ( config_proto ) ) ;\n base : : Optional < DynamicInterstitialInfo > dynamic_interstitial = error_assistant ( ) -> MatchDynamicInterstitial ( ssl_info ( ) ) ;\n ASSERT_TRUE ( dynamic_interstitial ) ;\n EXPECT_EQ ( chrome_browser_ssl : : DynamicInterstitial : : INTERSTITIAL_PAGE_SSL , dynamic_interstitial -> interstitial_type ) ;\n }"}
{"idx": 2824, "target": 1, "func": "php_stream * php_stream_url_wrap_http_ex ( php_stream_wrapper * wrapper , const char * path , const char * mode , int options , char * * opened_path , php_stream_context * context , int redirect_max , int flags STREAMS_DC TSRMLS_DC ) {\n php_stream * stream = NULL ;\n php_url * resource = NULL ;\n int use_ssl ;\n int use_proxy = 0 ;\n char * scratch = NULL ;\n char * tmp = NULL ;\n char * ua_str = NULL ;\n zval * * ua_zval = NULL , * * tmpzval = NULL , * ssl_proxy_peer_name = NULL ;\n int scratch_len = 0 ;\n int body = 0 ;\n char location [ HTTP_HEADER_BLOCK_SIZE ] ;\n zval * response_header = NULL ;\n int reqok = 0 ;\n char * http_header_line = NULL ;\n char tmp_line [ 128 ] ;\n size_t chunk_size = 0 , file_size = 0 ;\n int eol_detect = 0 ;\n char * transport_string , * errstr = NULL ;\n int transport_len , have_header = 0 , request_fulluri = 0 , ignore_errors = 0 ;\n char * protocol_version = NULL ;\n int protocol_version_len = 3 ;\n struct timeval timeout ;\n char * user_headers = NULL ;\n int header_init = ( ( flags & HTTP_WRAPPER_HEADER_INIT ) != 0 ) ;\n int redirected = ( ( flags & HTTP_WRAPPER_REDIRECTED ) != 0 ) ;\n int follow_location = 1 ;\n php_stream_filter * transfer_encoding = NULL ;\n int response_code ;\n tmp_line [ 0 ] = '\\0' ;\n if ( redirect_max < 1 ) {\n php_stream_wrapper_log_error ( wrapper , options TSRMLS_CC , \"Redirection limit reached, aborting\" ) ;\n return NULL ;\n }\n resource = php_url_parse ( path ) ;\n if ( resource == NULL ) {\n return NULL ;\n }\n if ( strncasecmp ( resource -> scheme , \"http\" , sizeof ( \"http\" ) ) && strncasecmp ( resource -> scheme , \"https\" , sizeof ( \"https\" ) ) ) {\n if ( ! context || php_stream_context_get_option ( context , wrapper -> wops -> label , \"proxy\" , & tmpzval ) == FAILURE || Z_TYPE_PP ( tmpzval ) != IS_STRING || Z_STRLEN_PP ( tmpzval ) <= 0 ) {\n php_url_free ( resource ) ;\n return php_stream_open_wrapper_ex ( path , mode , REPORT_ERRORS , NULL , context ) ;\n }\n request_fulluri = 1 ;\n use_ssl = 0 ;\n use_proxy = 1 ;\n transport_len = Z_STRLEN_PP ( tmpzval ) ;\n transport_string = estrndup ( Z_STRVAL_PP ( tmpzval ) , Z_STRLEN_PP ( tmpzval ) ) ;\n }\n else {\n if ( strpbrk ( mode , \"awx+\" ) ) {\n php_stream_wrapper_log_error ( wrapper , options TSRMLS_CC , \"HTTP wrapper does not support writeable connections\" ) ;\n php_url_free ( resource ) ;\n return NULL ;\n }\n use_ssl = resource -> scheme && ( strlen ( resource -> scheme ) > 4 ) && resource -> scheme [ 4 ] == 's' ;\n if ( use_ssl && resource -> port == 0 ) resource -> port = 443 ;\n else if ( resource -> port == 0 ) resource -> port = 80 ;\n if ( context && php_stream_context_get_option ( context , wrapper -> wops -> label , \"proxy\" , & tmpzval ) == SUCCESS && Z_TYPE_PP ( tmpzval ) == IS_STRING && Z_STRLEN_PP ( tmpzval ) > 0 ) {\n use_proxy = 1 ;\n transport_len = Z_STRLEN_PP ( tmpzval ) ;\n transport_string = estrndup ( Z_STRVAL_PP ( tmpzval ) , Z_STRLEN_PP ( tmpzval ) ) ;\n }\n else {\n transport_len = spprintf ( & transport_string , 0 , \"%s://%s:%d\" , use_ssl ? \"ssl\" : \"tcp\" , resource -> host , resource -> port ) ;\n }\n }\n if ( context && php_stream_context_get_option ( context , wrapper -> wops -> label , \"timeout\" , & tmpzval ) == SUCCESS ) {\n SEPARATE_ZVAL ( tmpzval ) ;\n convert_to_double_ex ( tmpzval ) ;\n timeout . tv_sec = ( time_t ) Z_DVAL_PP ( tmpzval ) ;\n timeout . tv_usec = ( size_t ) ( ( Z_DVAL_PP ( tmpzval ) - timeout . tv_sec ) * 1000000 ) ;\n }\n else {\n timeout . tv_sec = FG ( default_socket_timeout ) ;\n timeout . tv_usec = 0 ;\n }\n stream = php_stream_xport_create ( transport_string , transport_len , options , STREAM_XPORT_CLIENT | STREAM_XPORT_CONNECT , NULL , & timeout , context , & errstr , NULL ) ;\n if ( stream ) {\n php_stream_set_option ( stream , PHP_STREAM_OPTION_READ_TIMEOUT , 0 , & timeout ) ;\n }\n if ( errstr ) {\n php_stream_wrapper_log_error ( wrapper , options TSRMLS_CC , \"%s\" , errstr ) ;\n efree ( errstr ) ;\n errstr = NULL ;\n }\n efree ( transport_string ) ;\n if ( stream && use_proxy && use_ssl ) {\n smart_str header = {\n 0 }\n ;\n if ( ! context || php_stream_context_get_option ( context , \"ssl\" , \"peer_name\" , & tmpzval ) == FAILURE ) {\n MAKE_STD_ZVAL ( ssl_proxy_peer_name ) ;\n ZVAL_STRING ( ssl_proxy_peer_name , resource -> host , 1 ) ;\n php_stream_context_set_option ( stream -> context , \"ssl\" , \"peer_name\" , ssl_proxy_peer_name ) ;\n }\n smart_str_appendl ( & header , \"CONNECT \" , sizeof ( \"CONNECT \" ) - 1 ) ;\n smart_str_appends ( & header , resource -> host ) ;\n smart_str_appendc ( & header , ':' ) ;\n smart_str_append_unsigned ( & header , resource -> port ) ;\n smart_str_appendl ( & header , \" HTTP/1.0\\r\\n\" , sizeof ( \" HTTP/1.0\\r\\n\" ) - 1 ) ;\n if ( context && php_stream_context_get_option ( context , \"http\" , \"header\" , & tmpzval ) == SUCCESS ) {\n char * s , * p ;\n if ( Z_TYPE_PP ( tmpzval ) == IS_ARRAY ) {\n HashPosition pos ;\n zval * * tmpheader = NULL ;\n for ( zend_hash_internal_pointer_reset_ex ( Z_ARRVAL_PP ( tmpzval ) , & pos ) ;\n SUCCESS == zend_hash_get_current_data_ex ( Z_ARRVAL_PP ( tmpzval ) , ( void * ) & tmpheader , & pos ) ;\n zend_hash_move_forward_ex ( Z_ARRVAL_PP ( tmpzval ) , & pos ) ) {\n if ( Z_TYPE_PP ( tmpheader ) == IS_STRING ) {\n s = Z_STRVAL_PP ( tmpheader ) ;\n do {\n while ( * s == ' ' || * s == '\\t' ) s ++ ;\n p = s ;\n while ( * p != 0 && * p != ':' && * p != '\\r' && * p != '\\n' ) p ++ ;\n if ( * p == ':' ) {\n p ++ ;\n if ( p - s == sizeof ( \"Proxy-Authorization:\" ) - 1 && zend_binary_strcasecmp ( s , sizeof ( \"Proxy-Authorization:\" ) - 1 , \"Proxy-Authorization:\" , sizeof ( \"Proxy-Authorization:\" ) - 1 ) == 0 ) {\n while ( * p != 0 && * p != '\\r' && * p != '\\n' ) p ++ ;\n smart_str_appendl ( & header , s , p - s ) ;\n smart_str_appendl ( & header , \"\\r\\n\" , sizeof ( \"\\r\\n\" ) - 1 ) ;\n goto finish ;\n }\n else {\n while ( * p != 0 && * p != '\\r' && * p != '\\n' ) p ++ ;\n }\n }\n s = p ;\n while ( * s == '\\r' || * s == '\\n' ) s ++ ;\n }\n while ( * s != 0 ) ;\n }\n }\n }\n else if ( Z_TYPE_PP ( tmpzval ) == IS_STRING && Z_STRLEN_PP ( tmpzval ) ) {\n s = Z_STRVAL_PP ( tmpzval ) ;\n do {\n while ( * s == ' ' || * s == '\\t' ) s ++ ;\n p = s ;\n while ( * p != 0 && * p != ':' && * p != '\\r' && * p != '\\n' ) p ++ ;\n if ( * p == ':' ) {\n p ++ ;\n if ( p - s == sizeof ( \"Proxy-Authorization:\" ) - 1 && zend_binary_strcasecmp ( s , sizeof ( \"Proxy-Authorization:\" ) - 1 , \"Proxy-Authorization:\" , sizeof ( \"Proxy-Authorization:\" ) - 1 ) == 0 ) {\n while ( * p != 0 && * p != '\\r' && * p != '\\n' ) p ++ ;\n smart_str_appendl ( & header , s , p - s ) ;\n smart_str_appendl ( & header , \"\\r\\n\" , sizeof ( \"\\r\\n\" ) - 1 ) ;\n goto finish ;\n }\n else {\n while ( * p != 0 && * p != '\\r' && * p != '\\n' ) p ++ ;\n }\n }\n s = p ;\n while ( * s == '\\r' || * s == '\\n' ) s ++ ;\n }\n while ( * s != 0 ) ;\n }\n }\n finish : smart_str_appendl ( & header , \"\\r\\n\" , sizeof ( \"\\r\\n\" ) - 1 ) ;\n if ( php_stream_write ( stream , header . c , header . len ) != header . len ) {\n php_stream_wrapper_log_error ( wrapper , options TSRMLS_CC , \"Cannot connect to HTTPS server through proxy\" ) ;\n php_stream_close ( stream ) ;\n stream = NULL ;\n }\n smart_str_free ( & header ) ;\n if ( stream ) {\n char header_line [ HTTP_HEADER_BLOCK_SIZE ] ;\n while ( php_stream_gets ( stream , header_line , HTTP_HEADER_BLOCK_SIZE - 1 ) != NULL ) {\n if ( header_line [ 0 ] == '\\n' || header_line [ 0 ] == '\\r' || header_line [ 0 ] == '\\0' ) {\n break ;\n }\n }\n }\n if ( stream ) {\n if ( php_stream_xport_crypto_setup ( stream , STREAM_CRYPTO_METHOD_SSLv23_CLIENT , NULL TSRMLS_CC ) < 0 || php_stream_xport_crypto_enable ( stream , 1 TSRMLS_CC ) < 0 ) {\n php_stream_wrapper_log_error ( wrapper , options TSRMLS_CC , \"Cannot connect to HTTPS server through proxy\" ) ;\n php_stream_close ( stream ) ;\n stream = NULL ;\n }\n }\n }\n if ( stream == NULL ) goto out ;\n if ( options & STREAM_WILL_CAST ) chunk_size = php_stream_set_chunk_size ( stream , 1 ) ;\n eol_detect = stream -> flags & ( PHP_STREAM_FLAG_DETECT_EOL | PHP_STREAM_FLAG_EOL_MAC ) ;\n stream -> flags &= ~ ( PHP_STREAM_FLAG_DETECT_EOL | PHP_STREAM_FLAG_EOL_MAC ) ;\n php_stream_context_set ( stream , context ) ;\n php_stream_notify_info ( context , PHP_STREAM_NOTIFY_CONNECT , NULL , 0 ) ;\n if ( header_init && context && php_stream_context_get_option ( context , \"http\" , \"max_redirects\" , & tmpzval ) == SUCCESS ) {\n SEPARATE_ZVAL ( tmpzval ) ;\n convert_to_long_ex ( tmpzval ) ;\n redirect_max = Z_LVAL_PP ( tmpzval ) ;\n }\n if ( context && php_stream_context_get_option ( context , \"http\" , \"method\" , & tmpzval ) == SUCCESS ) {\n if ( Z_TYPE_PP ( tmpzval ) == IS_STRING && Z_STRLEN_PP ( tmpzval ) > 0 ) {\n if ( ! redirected || ( Z_STRLEN_PP ( tmpzval ) == 3 && memcmp ( \"GET\" , Z_STRVAL_PP ( tmpzval ) , 3 ) == 0 ) || ( Z_STRLEN_PP ( tmpzval ) == 4 && memcmp ( \"HEAD\" , Z_STRVAL_PP ( tmpzval ) , 4 ) == 0 ) ) {\n scratch_len = strlen ( path ) + 29 + Z_STRLEN_PP ( tmpzval ) ;\n scratch = emalloc ( scratch_len ) ;\n strlcpy ( scratch , Z_STRVAL_PP ( tmpzval ) , Z_STRLEN_PP ( tmpzval ) + 1 ) ;\n strncat ( scratch , \" \" , 1 ) ;\n }\n }\n }\n if ( context && php_stream_context_get_option ( context , \"http\" , \"protocol_version\" , & tmpzval ) == SUCCESS ) {\n SEPARATE_ZVAL ( tmpzval ) ;\n convert_to_double_ex ( tmpzval ) ;\n protocol_version_len = spprintf ( & protocol_version , 0 , \"%.1F\" , Z_DVAL_PP ( tmpzval ) ) ;\n }\n if ( ! scratch ) {\n scratch_len = strlen ( path ) + 29 + protocol_version_len ;\n scratch = emalloc ( scratch_len ) ;\n strncpy ( scratch , \"GET \" , scratch_len ) ;\n }\n if ( ! request_fulluri && context && php_stream_context_get_option ( context , \"http\" , \"request_fulluri\" , & tmpzval ) == SUCCESS ) {\n zval ztmp = * * tmpzval ;\n zval_copy_ctor ( & ztmp ) ;\n convert_to_boolean ( & ztmp ) ;\n request_fulluri = Z_BVAL ( ztmp ) ? 1 : 0 ;\n zval_dtor ( & ztmp ) ;\n }\n if ( request_fulluri ) {\n strcat ( scratch , path ) ;\n }\n else {\n if ( resource -> path && * resource -> path ) {\n strlcat ( scratch , resource -> path , scratch_len ) ;\n }\n else {\n strlcat ( scratch , \"/\" , scratch_len ) ;\n }\n if ( resource -> query ) {\n strlcat ( scratch , \"?\" , scratch_len ) ;\n strlcat ( scratch , resource -> query , scratch_len ) ;\n }\n }\n if ( protocol_version ) {\n strlcat ( scratch , \" HTTP/\" , scratch_len ) ;\n strlcat ( scratch , protocol_version , scratch_len ) ;\n strlcat ( scratch , \"\\r\\n\" , scratch_len ) ;\n }\n else {\n strlcat ( scratch , \" HTTP/1.0\\r\\n\" , scratch_len ) ;\n }\n php_stream_write ( stream , scratch , strlen ( scratch ) ) ;\n if ( context && php_stream_context_get_option ( context , \"http\" , \"header\" , & tmpzval ) == SUCCESS ) {\n tmp = NULL ;\n if ( Z_TYPE_PP ( tmpzval ) == IS_ARRAY ) {\n HashPosition pos ;\n zval * * tmpheader = NULL ;\n smart_str tmpstr = {\n 0 }\n ;\n for ( zend_hash_internal_pointer_reset_ex ( Z_ARRVAL_PP ( tmpzval ) , & pos ) ;\n SUCCESS == zend_hash_get_current_data_ex ( Z_ARRVAL_PP ( tmpzval ) , ( void * ) & tmpheader , & pos ) ;\n zend_hash_move_forward_ex ( Z_ARRVAL_PP ( tmpzval ) , & pos ) ) {\n if ( Z_TYPE_PP ( tmpheader ) == IS_STRING ) {\n smart_str_appendl ( & tmpstr , Z_STRVAL_PP ( tmpheader ) , Z_STRLEN_PP ( tmpheader ) ) ;\n smart_str_appendl ( & tmpstr , \"\\r\\n\" , sizeof ( \"\\r\\n\" ) - 1 ) ;\n }\n }\n smart_str_0 ( & tmpstr ) ;\n if ( tmpstr . c ) {\n tmp = php_trim ( tmpstr . c , strlen ( tmpstr . c ) , NULL , 0 , NULL , 3 TSRMLS_CC ) ;\n smart_str_free ( & tmpstr ) ;\n }\n }\n if ( Z_TYPE_PP ( tmpzval ) == IS_STRING && Z_STRLEN_PP ( tmpzval ) ) {\n tmp = php_trim ( Z_STRVAL_PP ( tmpzval ) , Z_STRLEN_PP ( tmpzval ) , NULL , 0 , NULL , 3 TSRMLS_CC ) ;\n }\n if ( tmp && strlen ( tmp ) > 0 ) {\n char * s ;\n user_headers = estrdup ( tmp ) ;\n php_strtolower ( tmp , strlen ( tmp ) ) ;\n if ( ! header_init ) {\n strip_header ( user_headers , tmp , \"content-length:\" ) ;\n strip_header ( user_headers , tmp , \"content-type:\" ) ;\n }\n if ( ( s = strstr ( tmp , \"user-agent:\" ) ) && ( s == tmp || * ( s - 1 ) == '\\r' || * ( s - 1 ) == '\\n' || * ( s - 1 ) == '\\t' || * ( s - 1 ) == ' ' ) ) {\n have_header |= HTTP_HEADER_USER_AGENT ;\n }\n if ( ( s = strstr ( tmp , \"host:\" ) ) && ( s == tmp || * ( s - 1 ) == '\\r' || * ( s - 1 ) == '\\n' || * ( s - 1 ) == '\\t' || * ( s - 1 ) == ' ' ) ) {\n have_header |= HTTP_HEADER_HOST ;\n }\n if ( ( s = strstr ( tmp , \"from:\" ) ) && ( s == tmp || * ( s - 1 ) == '\\r' || * ( s - 1 ) == '\\n' || * ( s - 1 ) == '\\t' || * ( s - 1 ) == ' ' ) ) {\n have_header |= HTTP_HEADER_FROM ;\n }\n if ( ( s = strstr ( tmp , \"authorization:\" ) ) && ( s == tmp || * ( s - 1 ) == '\\r' || * ( s - 1 ) == '\\n' || * ( s - 1 ) == '\\t' || * ( s - 1 ) == ' ' ) ) {\n have_header |= HTTP_HEADER_AUTH ;\n }\n if ( ( s = strstr ( tmp , \"content-length:\" ) ) && ( s == tmp || * ( s - 1 ) == '\\r' || * ( s - 1 ) == '\\n' || * ( s - 1 ) == '\\t' || * ( s - 1 ) == ' ' ) ) {\n have_header |= HTTP_HEADER_CONTENT_LENGTH ;\n }\n if ( ( s = strstr ( tmp , \"content-type:\" ) ) && ( s == tmp || * ( s - 1 ) == '\\r' || * ( s - 1 ) == '\\n' || * ( s - 1 ) == '\\t' || * ( s - 1 ) == ' ' ) ) {\n have_header |= HTTP_HEADER_TYPE ;\n }\n if ( ( s = strstr ( tmp , \"connection:\" ) ) && ( s == tmp || * ( s - 1 ) == '\\r' || * ( s - 1 ) == '\\n' || * ( s - 1 ) == '\\t' || * ( s - 1 ) == ' ' ) ) {\n have_header |= HTTP_HEADER_CONNECTION ;\n }\n if ( use_proxy && use_ssl && ( s = strstr ( tmp , \"proxy-authorization:\" ) ) && ( s == tmp || * ( s - 1 ) == '\\r' || * ( s - 1 ) == '\\n' || * ( s - 1 ) == '\\t' || * ( s - 1 ) == ' ' ) ) {\n char * p = s + sizeof ( \"proxy-authorization:\" ) - 1 ;\n while ( s > tmp && ( * ( s - 1 ) == ' ' || * ( s - 1 ) == '\\t' ) ) s -- ;\n while ( * p != 0 && * p != '\\r' && * p != '\\n' ) p ++ ;\n while ( * p == '\\r' || * p == '\\n' ) p ++ ;\n if ( * p == 0 ) {\n if ( s == tmp ) {\n efree ( user_headers ) ;\n user_headers = NULL ;\n }\n else {\n while ( s > tmp && ( * ( s - 1 ) == '\\r' || * ( s - 1 ) == '\\n' ) ) s -- ;\n user_headers [ s - tmp ] = 0 ;\n }\n }\n else {\n memmove ( user_headers + ( s - tmp ) , user_headers + ( p - tmp ) , strlen ( p ) + 1 ) ;\n }\n }\n }\n if ( tmp ) {\n efree ( tmp ) ;\n }\n }\n if ( ( ( have_header & HTTP_HEADER_AUTH ) == 0 ) && resource -> user ) {\n php_url_decode ( resource -> user , strlen ( resource -> user ) ) ;\n strcpy ( scratch , resource -> user ) ;\n strcat ( scratch , \":\" ) ;\n if ( resource -> pass ) {\n php_url_decode ( resource -> pass , strlen ( resource -> pass ) ) ;\n strcat ( scratch , resource -> pass ) ;\n }\n tmp = ( char * ) php_base64_encode ( ( unsigned char * ) scratch , strlen ( scratch ) , NULL ) ;\n if ( snprintf ( scratch , scratch_len , \"Authorization: Basic %s\\r\\n\" , tmp ) > 0 ) {\n php_stream_write ( stream , scratch , strlen ( scratch ) ) ;\n php_stream_notify_info ( context , PHP_STREAM_NOTIFY_AUTH_REQUIRED , NULL , 0 ) ;\n }\n efree ( tmp ) ;\n tmp = NULL ;\n }\n if ( ( ( have_header & HTTP_HEADER_FROM ) == 0 ) && FG ( from_address ) ) {\n if ( snprintf ( scratch , scratch_len , \"From: %s\\r\\n\" , FG ( from_address ) ) > 0 ) php_stream_write ( stream , scratch , strlen ( scratch ) ) ;\n }\n if ( ( have_header & HTTP_HEADER_HOST ) == 0 ) {\n if ( ( use_ssl && resource -> port != 443 && resource -> port != 0 ) || ( ! use_ssl && resource -> port != 80 && resource -> port != 0 ) ) {\n if ( snprintf ( scratch , scratch_len , \"Host: %s:%i\\r\\n\" , resource -> host , resource -> port ) > 0 ) php_stream_write ( stream , scratch , strlen ( scratch ) ) ;\n }\n else {\n if ( snprintf ( scratch , scratch_len , \"Host: %s\\r\\n\" , resource -> host ) > 0 ) {\n php_stream_write ( stream , scratch , strlen ( scratch ) ) ;\n }\n }\n }\n if ( ( have_header & HTTP_HEADER_CONNECTION ) == 0 ) {\n php_stream_write_string ( stream , \"Connection: close\\r\\n\" ) ;\n }\n if ( context && php_stream_context_get_option ( context , \"http\" , \"user_agent\" , & ua_zval ) == SUCCESS && Z_TYPE_PP ( ua_zval ) == IS_STRING ) {\n ua_str = Z_STRVAL_PP ( ua_zval ) ;\n }\n else if ( FG ( user_agent ) ) {\n ua_str = FG ( user_agent ) ;\n }\n if ( ( ( have_header & HTTP_HEADER_USER_AGENT ) == 0 ) && ua_str ) {\n # define _UA_HEADER \"User-Agent: %s\\r\\n\" char * ua ;\n size_t ua_len ;\n ua_len = sizeof ( _UA_HEADER ) + strlen ( ua_str ) ;\n if ( ua_len > sizeof ( _UA_HEADER ) ) {\n ua = emalloc ( ua_len + 1 ) ;\n if ( ( ua_len = slprintf ( ua , ua_len , _UA_HEADER , ua_str ) ) > 0 ) {\n ua [ ua_len ] = 0 ;\n php_stream_write ( stream , ua , ua_len ) ;\n }\n else {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"Cannot construct User-agent header\" ) ;\n }\n if ( ua ) {\n efree ( ua ) ;\n }\n }\n }\n if ( user_headers ) {\n if ( header_init && context && ! ( have_header & HTTP_HEADER_CONTENT_LENGTH ) && php_stream_context_get_option ( context , \"http\" , \"content\" , & tmpzval ) == SUCCESS && Z_TYPE_PP ( tmpzval ) == IS_STRING && Z_STRLEN_PP ( tmpzval ) > 0 ) {\n scratch_len = slprintf ( scratch , scratch_len , \"Content-Length: %d\\r\\n\" , Z_STRLEN_PP ( tmpzval ) ) ;\n php_stream_write ( stream , scratch , scratch_len ) ;\n have_header |= HTTP_HEADER_CONTENT_LENGTH ;\n }\n php_stream_write ( stream , user_headers , strlen ( user_headers ) ) ;\n php_stream_write ( stream , \"\\r\\n\" , sizeof ( \"\\r\\n\" ) - 1 ) ;\n efree ( user_headers ) ;\n }\n if ( header_init && context && php_stream_context_get_option ( context , \"http\" , \"content\" , & tmpzval ) == SUCCESS && Z_TYPE_PP ( tmpzval ) == IS_STRING && Z_STRLEN_PP ( tmpzval ) > 0 ) {\n if ( ! ( have_header & HTTP_HEADER_CONTENT_LENGTH ) ) {\n scratch_len = slprintf ( scratch , scratch_len , \"Content-Length: %d\\r\\n\" , Z_STRLEN_PP ( tmpzval ) ) ;\n php_stream_write ( stream , scratch , scratch_len ) ;\n }\n if ( ! ( have_header & HTTP_HEADER_TYPE ) ) {\n php_stream_write ( stream , \"Content-Type: application/x-www-form-urlencoded\\r\\n\" , sizeof ( \"Content-Type: application/x-www-form-urlencoded\\r\\n\" ) - 1 ) ;\n php_error_docref ( NULL TSRMLS_CC , E_NOTICE , \"Content-type not specified assuming application/x-www-form-urlencoded\" ) ;\n }\n php_stream_write ( stream , \"\\r\\n\" , sizeof ( \"\\r\\n\" ) - 1 ) ;\n php_stream_write ( stream , Z_STRVAL_PP ( tmpzval ) , Z_STRLEN_PP ( tmpzval ) ) ;\n }\n else {\n php_stream_write ( stream , \"\\r\\n\" , sizeof ( \"\\r\\n\" ) - 1 ) ;\n }\n location [ 0 ] = '\\0' ;\n if ( ! EG ( active_symbol_table ) ) {\n zend_rebuild_symbol_table ( TSRMLS_C ) ;\n }\n if ( header_init ) {\n zval * ztmp ;\n MAKE_STD_ZVAL ( ztmp ) ;\n array_init ( ztmp ) ;\n ZEND_SET_SYMBOL ( EG ( active_symbol_table ) , \"http_response_header\" , ztmp ) ;\n }\n {\n zval * * rh ;\n if ( zend_hash_find ( EG ( active_symbol_table ) , \"http_response_header\" , sizeof ( \"http_response_header\" ) , ( void * * ) & rh ) != SUCCESS || Z_TYPE_PP ( rh ) != IS_ARRAY ) {\n php_stream_wrapper_log_error ( wrapper , options TSRMLS_CC , \"HTTP request failed, http_response_header overwritten\" ) ;\n goto out ;\n }\n response_header = * rh ;\n Z_ADDREF_P ( response_header ) ;\n }\n if ( ! php_stream_eof ( stream ) ) {\n size_t tmp_line_len ;\n if ( php_stream_get_line ( stream , tmp_line , sizeof ( tmp_line ) - 1 , & tmp_line_len ) != NULL ) {\n zval * http_response ;\n if ( tmp_line_len > 9 ) {\n response_code = atoi ( tmp_line + 9 ) ;\n }\n else {\n response_code = 0 ;\n }\n if ( context && SUCCESS == php_stream_context_get_option ( context , \"http\" , \"ignore_errors\" , & tmpzval ) ) {\n ignore_errors = zend_is_true ( * tmpzval ) ;\n }\n if ( ( options & STREAM_ONLY_GET_HEADERS ) || ignore_errors ) {\n reqok = 1 ;\n }\n if ( response_code >= 100 && response_code < 200 ) {\n while ( ! php_stream_eof ( stream ) && php_stream_get_line ( stream , tmp_line , sizeof ( tmp_line ) - 1 , & tmp_line_len ) != NULL && ( tmp_line_len < sizeof ( \"HTTP/1\" ) - 1 || strncasecmp ( tmp_line , \"HTTP/1\" , sizeof ( \"HTTP/1\" ) - 1 ) ) ) ;\n if ( tmp_line_len > 9 ) {\n response_code = atoi ( tmp_line + 9 ) ;\n }\n else {\n response_code = 0 ;\n }\n }\n if ( response_code >= 200 && response_code < 400 ) {\n reqok = 1 ;\n }\n else {\n switch ( response_code ) {\n case 403 : php_stream_notify_error ( context , PHP_STREAM_NOTIFY_AUTH_RESULT , tmp_line , response_code ) ;\n break ;\n default : if ( ! tmp_line_len ) {\n tmp_line [ 0 ] = '\\0' ;\n }\n php_stream_notify_error ( context , PHP_STREAM_NOTIFY_FAILURE , tmp_line , response_code ) ;\n }\n }\n if ( tmp_line [ tmp_line_len - 1 ] == '\\n' ) {\n -- tmp_line_len ;\n if ( tmp_line [ tmp_line_len - 1 ] == '\\r' ) {\n -- tmp_line_len ;\n }\n }\n MAKE_STD_ZVAL ( http_response ) ;\n ZVAL_STRINGL ( http_response , tmp_line , tmp_line_len , 1 ) ;\n zend_hash_next_index_insert ( Z_ARRVAL_P ( response_header ) , & http_response , sizeof ( zval * ) , NULL ) ;\n }\n }\n else {\n php_stream_wrapper_log_error ( wrapper , options TSRMLS_CC , \"HTTP request failed, unexpected end of socket!\" ) ;\n goto out ;\n }\n http_header_line = emalloc ( HTTP_HEADER_BLOCK_SIZE ) ;\n while ( ! body && ! php_stream_eof ( stream ) ) {\n size_t http_header_line_length ;\n if ( php_stream_get_line ( stream , http_header_line , HTTP_HEADER_BLOCK_SIZE , & http_header_line_length ) && * http_header_line != '\\n' && * http_header_line != '\\r' ) {\n char * e = http_header_line + http_header_line_length - 1 ;\n if ( * e != '\\n' ) {\n do {\n if ( php_stream_get_line ( stream , http_header_line , HTTP_HEADER_BLOCK_SIZE , & http_header_line_length ) == NULL ) {\n php_stream_wrapper_log_error ( wrapper , options TSRMLS_CC , \"Failed to read HTTP headers\" ) ;\n goto out ;\n }\n e = http_header_line + http_header_line_length - 1 ;\n }\n while ( * e != '\\n' ) ;\n continue ;\n }\n while ( * e == '\\n' || * e == '\\r' ) {\n e -- ;\n }\n http_header_line_length = e - http_header_line + 1 ;\n http_header_line [ http_header_line_length ] = '\\0' ;\n if ( ! strncasecmp ( http_header_line , \"Location: \" , 10 ) ) {\n if ( context && php_stream_context_get_option ( context , \"http\" , \"follow_location\" , & tmpzval ) == SUCCESS ) {\n SEPARATE_ZVAL ( tmpzval ) ;\n convert_to_long_ex ( tmpzval ) ;\n follow_location = Z_LVAL_PP ( tmpzval ) ;\n }\n else if ( ! ( response_code >= 300 && response_code < 304 || 307 == response_code || 308 == response_code ) ) {\n follow_location = 0 ;\n }\n strlcpy ( location , http_header_line + 10 , sizeof ( location ) ) ;\n }\n else if ( ! strncasecmp ( http_header_line , \"Content-Type: \" , 14 ) ) {\n php_stream_notify_info ( context , PHP_STREAM_NOTIFY_MIME_TYPE_IS , http_header_line + 14 , 0 ) ;\n }\n else if ( ! strncasecmp ( http_header_line , \"Content-Length: \" , 16 ) ) {\n file_size = atoi ( http_header_line + 16 ) ;\n php_stream_notify_file_size ( context , file_size , http_header_line , 0 ) ;\n }\n else if ( ! strncasecmp ( http_header_line , \"Transfer-Encoding: chunked\" , sizeof ( \"Transfer-Encoding: chunked\" ) ) ) {\n if ( ! ( options & STREAM_ONLY_GET_HEADERS ) ) {\n long decode = 1 ;\n if ( context && php_stream_context_get_option ( context , \"http\" , \"auto_decode\" , & tmpzval ) == SUCCESS ) {\n SEPARATE_ZVAL ( tmpzval ) ;\n convert_to_boolean ( * tmpzval ) ;\n decode = Z_LVAL_PP ( tmpzval ) ;\n }\n if ( decode ) {\n transfer_encoding = php_stream_filter_create ( \"dechunk\" , NULL , php_stream_is_persistent ( stream ) TSRMLS_CC ) ;\n if ( transfer_encoding ) {\n continue ;\n }\n }\n }\n }\n if ( http_header_line [ 0 ] == '\\0' ) {\n body = 1 ;\n }\n else {\n zval * http_header ;\n MAKE_STD_ZVAL ( http_header ) ;\n ZVAL_STRINGL ( http_header , http_header_line , http_header_line_length , 1 ) ;\n zend_hash_next_index_insert ( Z_ARRVAL_P ( response_header ) , & http_header , sizeof ( zval * ) , NULL ) ;\n }\n }\n else {\n break ;\n }\n }\n if ( ! reqok || ( location [ 0 ] != '\\0' && follow_location ) ) {\n if ( ! follow_location || ( ( ( options & STREAM_ONLY_GET_HEADERS ) || ignore_errors ) && redirect_max <= 1 ) ) {\n goto out ;\n }\n if ( location [ 0 ] != '\\0' ) php_stream_notify_info ( context , PHP_STREAM_NOTIFY_REDIRECTED , location , 0 ) ;\n php_stream_close ( stream ) ;\n stream = NULL ;\n if ( location [ 0 ] != '\\0' ) {\n char new_path [ HTTP_HEADER_BLOCK_SIZE ] ;\n char loc_path [ HTTP_HEADER_BLOCK_SIZE ] ;\n * new_path = '\\0' ;\n if ( strlen ( location ) < 8 || ( strncasecmp ( location , \"http://\" , sizeof ( \"http://\" ) - 1 ) && strncasecmp ( location , \"https://\" , sizeof ( \"https://\" ) - 1 ) && strncasecmp ( location , \"ftp://\" , sizeof ( \"ftp://\" ) - 1 ) && strncasecmp ( location , \"ftps://\" , sizeof ( \"ftps://\" ) - 1 ) ) ) {\n if ( * location != '/' ) {\n if ( * ( location + 1 ) != '\\0' && resource -> path ) {\n char * s = strrchr ( resource -> path , '/' ) ;\n if ( ! s ) {\n s = resource -> path ;\n if ( ! s [ 0 ] ) {\n efree ( s ) ;\n s = resource -> path = estrdup ( \"/\" ) ;\n }\n else {\n * s = '/' ;\n }\n }\n s [ 1 ] = '\\0' ;\n if ( resource -> path && * ( resource -> path ) == '/' && * ( resource -> path + 1 ) == '\\0' ) {\n snprintf ( loc_path , sizeof ( loc_path ) - 1 , \"%s%s\" , resource -> path , location ) ;\n }\n else {\n snprintf ( loc_path , sizeof ( loc_path ) - 1 , \"%s/%s\" , resource -> path , location ) ;\n }\n }\n else {\n snprintf ( loc_path , sizeof ( loc_path ) - 1 , \"/%s\" , location ) ;\n }\n }\n else {\n strlcpy ( loc_path , location , sizeof ( loc_path ) ) ;\n }\n if ( ( use_ssl && resource -> port != 443 ) || ( ! use_ssl && resource -> port != 80 ) ) {\n snprintf ( new_path , sizeof ( new_path ) - 1 , \"%s://%s:%d%s\" , resource -> scheme , resource -> host , resource -> port , loc_path ) ;\n }\n else {\n snprintf ( new_path , sizeof ( new_path ) - 1 , \"%s://%s%s\" , resource -> scheme , resource -> host , loc_path ) ;\n }\n }\n else {\n strlcpy ( new_path , location , sizeof ( new_path ) ) ;\n }\n php_url_free ( resource ) ;\n if ( ( resource = php_url_parse ( new_path ) ) == NULL ) {\n php_stream_wrapper_log_error ( wrapper , options TSRMLS_CC , \"Invalid redirect URL! %s\" , new_path ) ;\n goto out ;\n }\n # define CHECK_FOR_CNTRL_CHARS ( val ) {\n if ( val ) {\n unsigned char * s , * e ;\n int l ;\n l = php_url_decode ( val , strlen ( val ) ) ;\n s = ( unsigned char * ) val ;\n e = s + l ;\n while ( s < e ) {\n if ( iscntrl ( * s ) ) {\n php_stream_wrapper_log_error ( wrapper , options TSRMLS_CC , \"Invalid redirect URL! %s\" , new_path ) ;\n goto out ;\n }\n s ++ ;\n }\n }\n \\ }\n if ( strncasecmp ( new_path , \"http://\" , sizeof ( \"http://\" ) - 1 ) || strncasecmp ( new_path , \"https://\" , sizeof ( \"https://\" ) - 1 ) ) {\n CHECK_FOR_CNTRL_CHARS ( resource -> user ) CHECK_FOR_CNTRL_CHARS ( resource -> pass ) CHECK_FOR_CNTRL_CHARS ( resource -> path ) }\n stream = php_stream_url_wrap_http_ex ( wrapper , new_path , mode , options , opened_path , context , -- redirect_max , HTTP_WRAPPER_REDIRECTED STREAMS_CC TSRMLS_CC ) ;\n }\n else {\n php_stream_wrapper_log_error ( wrapper , options TSRMLS_CC , \"HTTP request failed! %s\" , tmp_line ) ;\n }\n }\n out : if ( protocol_version ) {\n efree ( protocol_version ) ;\n }\n if ( http_header_line ) {\n efree ( http_header_line ) ;\n }\n if ( scratch ) {\n efree ( scratch ) ;\n }\n if ( resource ) {\n php_url_free ( resource ) ;\n }\n if ( stream ) {\n if ( header_init ) {\n stream -> wrapperdata = response_header ;\n }\n else {\n if ( response_header ) {\n Z_DELREF_P ( response_header ) ;\n }\n }\n php_stream_notify_progress_init ( context , 0 , file_size ) ;\n if ( options & STREAM_WILL_CAST ) php_stream_set_chunk_size ( stream , chunk_size ) ;\n stream -> flags |= eol_detect ;\n stream -> position = 0 ;\n strlcpy ( stream -> mode , mode , sizeof ( stream -> mode ) ) ;\n if ( transfer_encoding ) {\n php_stream_filter_append ( & stream -> readfilters , transfer_encoding ) ;\n }\n }\n else {\n if ( response_header ) {\n Z_DELREF_P ( response_header ) ;\n }\n if ( transfer_encoding ) {\n php_stream_filter_free ( transfer_encoding TSRMLS_CC ) ;\n }\n }\n return stream ;\n }"}
{"idx": 2825, "target": 0, "func": "static void qemu_cpu_kick_thread ( CPUState * cpu ) {\n # ifndef _WIN32 int err ;\n err = pthread_kill ( cpu -> thread -> thread , SIG_IPI ) ;\n if ( err ) {\n fprintf ( stderr , \"qemu:%s: %s\" , __func__ , strerror ( err ) ) ;\n exit ( 1 ) ;\n }\n # else if ( ! qemu_cpu_is_self ( cpu ) ) {\n CONTEXT tcgContext ;\n if ( SuspendThread ( cpu -> hThread ) == ( DWORD ) - 1 ) {\n fprintf ( stderr , \"qemu:%s: GetLastError:%lu\\n\" , __func__ , GetLastError ( ) ) ;\n exit ( 1 ) ;\n }\n tcgContext . ContextFlags = CONTEXT_CONTROL ;\n while ( GetThreadContext ( cpu -> hThread , & tcgContext ) != 0 ) {\n continue ;\n }\n cpu_signal ( 0 ) ;\n if ( ResumeThread ( cpu -> hThread ) == ( DWORD ) - 1 ) {\n fprintf ( stderr , \"qemu:%s: GetLastError:%lu\\n\" , __func__ , GetLastError ( ) ) ;\n exit ( 1 ) ;\n }\n }\n # endif }"}
{"idx": 2826, "target": 0, "func": "static int dissect_h225_GatekeeperRequest ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_GatekeeperRequest , GatekeeperRequest_sequence ) ;\n return offset ;\n }"}
{"idx": 2827, "target": 0, "func": "static const char * * slirp_dnssearch ( const StringList * dnsname ) {\n const StringList * c = dnsname ;\n size_t i = 0 , num_opts = 0 ;\n const char * * ret ;\n while ( c ) {\n num_opts ++ ;\n c = c -> next ;\n }\n if ( num_opts == 0 ) {\n return NULL ;\n }\n ret = g_malloc ( ( num_opts + 1 ) * sizeof ( * ret ) ) ;\n c = dnsname ;\n while ( c ) {\n ret [ i ++ ] = c -> value -> str ;\n c = c -> next ;\n }\n ret [ i ] = NULL ;\n return ret ;\n }"}
{"idx": 2828, "target": 0, "func": "mbfl_string * mbfl_ja_jp_hantozen ( mbfl_string * string , mbfl_string * result , int mode ) {\n int n ;\n unsigned char * p ;\n const mbfl_encoding * encoding ;\n mbfl_memory_device device ;\n mbfl_convert_filter * decoder = NULL ;\n mbfl_convert_filter * encoder = NULL ;\n mbfl_convert_filter * tl_filter = NULL ;\n mbfl_convert_filter * next_filter = NULL ;\n mbfl_filt_tl_jisx0201_jisx0208_param * param = NULL ;\n if ( string == NULL || result == NULL ) {\n return NULL ;\n }\n encoding = mbfl_no2encoding ( string -> no_encoding ) ;\n if ( encoding == NULL ) {\n return NULL ;\n }\n mbfl_memory_device_init ( & device , string -> len , 0 ) ;\n mbfl_string_init ( result ) ;\n result -> no_language = string -> no_language ;\n result -> no_encoding = string -> no_encoding ;\n decoder = mbfl_convert_filter_new ( mbfl_no_encoding_wchar , string -> no_encoding , mbfl_memory_device_output , 0 , & device ) ;\n if ( decoder == NULL ) {\n goto out ;\n }\n next_filter = decoder ;\n param = ( mbfl_filt_tl_jisx0201_jisx0208_param * ) mbfl_malloc ( sizeof ( mbfl_filt_tl_jisx0201_jisx0208_param ) ) ;\n if ( param == NULL ) {\n goto out ;\n }\n param -> mode = mode ;\n tl_filter = mbfl_convert_filter_new2 ( & vtbl_tl_jisx0201_jisx0208 , ( int ( * ) ( int , void * ) ) next_filter -> filter_function , ( int ( * ) ( void * ) ) next_filter -> filter_flush , next_filter ) ;\n if ( tl_filter == NULL ) {\n mbfl_free ( param ) ;\n goto out ;\n }\n tl_filter -> opaque = param ;\n next_filter = tl_filter ;\n encoder = mbfl_convert_filter_new ( string -> no_encoding , mbfl_no_encoding_wchar , ( int ( * ) ( int , void * ) ) next_filter -> filter_function , ( int ( * ) ( void * ) ) next_filter -> filter_flush , next_filter ) ;\n if ( encoder == NULL ) {\n goto out ;\n }\n p = string -> val ;\n n = string -> len ;\n if ( p != NULL ) {\n while ( n > 0 ) {\n if ( ( * encoder -> filter_function ) ( * p ++ , encoder ) < 0 ) {\n break ;\n }\n n -- ;\n }\n }\n mbfl_convert_filter_flush ( encoder ) ;\n result = mbfl_memory_device_result ( & device , result ) ;\n out : if ( tl_filter != NULL ) {\n if ( tl_filter -> opaque != NULL ) {\n mbfl_free ( tl_filter -> opaque ) ;\n }\n mbfl_convert_filter_delete ( tl_filter ) ;\n }\n if ( decoder != NULL ) {\n mbfl_convert_filter_delete ( decoder ) ;\n }\n if ( encoder != NULL ) {\n mbfl_convert_filter_delete ( encoder ) ;\n }\n return result ;\n }"}
{"idx": 2829, "target": 0, "func": "static zend_object_value spl_filesystem_object_clone ( zval * zobject TSRMLS_DC ) {\n zend_object_value new_obj_val ;\n zend_object * old_object ;\n zend_object * new_object ;\n zend_object_handle handle = Z_OBJ_HANDLE_P ( zobject ) ;\n spl_filesystem_object * intern ;\n spl_filesystem_object * source ;\n int index , skip_dots ;\n old_object = zend_objects_get_address ( zobject TSRMLS_CC ) ;\n source = ( spl_filesystem_object * ) old_object ;\n new_obj_val = spl_filesystem_object_new_ex ( old_object -> ce , & intern TSRMLS_CC ) ;\n new_object = & intern -> std ;\n intern -> flags = source -> flags ;\n switch ( source -> type ) {\n case SPL_FS_INFO : intern -> _path_len = source -> _path_len ;\n intern -> _path = estrndup ( source -> _path , source -> _path_len ) ;\n intern -> file_name_len = source -> file_name_len ;\n intern -> file_name = estrndup ( source -> file_name , intern -> file_name_len ) ;\n break ;\n case SPL_FS_DIR : spl_filesystem_dir_open ( intern , source -> _path TSRMLS_CC ) ;\n skip_dots = SPL_HAS_FLAG ( source -> flags , SPL_FILE_DIR_SKIPDOTS ) ;\n for ( index = 0 ;\n index < source -> u . dir . index ;\n ++ index ) {\n do {\n spl_filesystem_dir_read ( intern TSRMLS_CC ) ;\n }\n while ( skip_dots && spl_filesystem_is_dot ( intern -> u . dir . entry . d_name ) ) ;\n }\n intern -> u . dir . index = index ;\n break ;\n case SPL_FS_FILE : php_error_docref ( NULL TSRMLS_CC , E_ERROR , \"An object of class %s cannot be cloned\" , old_object -> ce -> name ) ;\n break ;\n }\n intern -> file_class = source -> file_class ;\n intern -> info_class = source -> info_class ;\n intern -> oth = source -> oth ;\n intern -> oth_handler = source -> oth_handler ;\n zend_objects_clone_members ( new_object , new_obj_val , old_object , handle TSRMLS_CC ) ;\n if ( intern -> oth_handler && intern -> oth_handler -> clone ) {\n intern -> oth_handler -> clone ( source , intern TSRMLS_CC ) ;\n }\n return new_obj_val ;\n }"}
{"idx": 2830, "target": 0, "func": "static int zrunandhide ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n es_ptr ep ;\n check_op ( 2 ) ;\n if ( ! r_is_array ( op - 1 ) ) return_op_typecheck ( op ) ;\n if ( ! r_has_attr ( op , a_executable ) ) return 0 ;\n check_estack ( 5 ) ;\n ep = esp += 5 ;\n make_mark_estack ( ep - 4 , es_other , err_end_runandhide ) ;\n make_op_estack ( ep - 1 , end_runandhide ) ;\n ref_assign ( ep , op ) ;\n make_int ( ep - 3 , ( int ) op [ - 1 ] . tas . type_attrs ) ;\n ref_assign ( ep - 2 , op - 1 ) ;\n r_clear_attrs ( ep - 2 , a_all ) ;\n esfile_check_cache ( ) ;\n pop ( 2 ) ;\n return o_push_estack ;\n }"}
{"idx": 2831, "target": 0, "func": "static void dumpcffencoding ( SplineFont * sf , struct alltabs * at ) {\n int i , cnt , anydups ;\n uint32 start_pos = ftell ( at -> encoding ) ;\n SplineChar * sc ;\n EncMap * map = at -> map ;\n putc ( 0 , at -> encoding ) ;\n putc ( 0xff , at -> encoding ) ;\n for ( i = 0 ;\n i < sf -> glyphcnt ;\n ++ i ) if ( sf -> glyphs [ i ] != NULL ) sf -> glyphs [ i ] -> ticked = false ;\n cnt = 0 ;\n anydups = 0 ;\n for ( i = 0 ;\n i < 256 && i < map -> enccount ;\n ++ i ) if ( map -> map [ i ] != - 1 && ( sc = sf -> glyphs [ map -> map [ i ] ] ) != NULL ) {\n if ( sc -> ttf_glyph > 255 ) continue ;\n if ( sc -> ticked ) {\n ++ anydups ;\n }\n else if ( sc -> ttf_glyph > 0 ) {\n if ( cnt >= 255 ) break ;\n putc ( i , at -> encoding ) ;\n ++ cnt ;\n sc -> ticked = true ;\n }\n }\n if ( anydups ) {\n fseek ( at -> encoding , start_pos , SEEK_SET ) ;\n putc ( 0x80 , at -> encoding ) ;\n putc ( cnt , at -> encoding ) ;\n fseek ( at -> encoding , 0 , SEEK_END ) ;\n putc ( anydups , at -> encoding ) ;\n for ( i = 0 ;\n i < sf -> glyphcnt ;\n ++ i ) if ( sf -> glyphs [ i ] != NULL ) sf -> glyphs [ i ] -> ticked = false ;\n for ( i = 0 ;\n i < 256 && i < map -> enccount ;\n ++ i ) if ( map -> map [ i ] != - 1 && ( sc = sf -> glyphs [ map -> map [ i ] ] ) != NULL ) {\n if ( sc -> ttf_glyph > 255 ) continue ;\n if ( sc -> ticked ) {\n putc ( i , at -> encoding ) ;\n putshort ( at -> encoding , at -> gn_sid [ sc -> ttf_glyph ] ) ;\n }\n sc -> ticked = true ;\n }\n }\n else {\n fseek ( at -> encoding , start_pos + 1 , SEEK_SET ) ;\n putc ( cnt , at -> encoding ) ;\n fseek ( at -> encoding , 0 , SEEK_END ) ;\n }\n free ( at -> gn_sid ) ;\n at -> gn_sid = NULL ;\n }"}
{"idx": 2832, "target": 0, "func": "int dissect_h225_BandWidth ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 4294967295U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 2833, "target": 0, "func": "static uint32_t file_block_getter ( uint8_t * p , uint32_t s , Gif_Reader * grr ) {\n size_t nread = fread ( p , 1 , s , grr -> f ) ;\n if ( nread < s ) memset ( p + nread , 0 , s - nread ) ;\n grr -> pos += nread ;\n return nread ;\n }"}
{"idx": 2834, "target": 0, "func": "static int parse_CAggregSet ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree , const char * fmt , ... ) {\n guint32 cCount , i ;\n proto_item * item ;\n proto_tree * tree ;\n const char * txt ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CAggregSet , & item , txt ) ;\n cCount = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_caggregset_count , tvb , offset , 4 , cCount ) ;\n offset += 4 ;\n for ( i = 0 ;\n i < cCount ;\n i ++ ) {\n offset = parse_CAggregSpec ( tvb , offset , tree , pad_tree , \"AggregSpecs[%u]\" , i ) ;\n }\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 2835, "target": 0, "func": "void vp9_choose_segmap_coding_method ( VP9_COMMON * cm , MACROBLOCKD * xd ) {\n struct segmentation * seg = & cm -> seg ;\n int no_pred_cost ;\n int t_pred_cost = INT_MAX ;\n int i , tile_col , mi_row , mi_col ;\n int temporal_predictor_count [ PREDICTION_PROBS ] [ 2 ] = {\n {\n 0 }\n }\n ;\n int no_pred_segcounts [ MAX_SEGMENTS ] = {\n 0 }\n ;\n int t_unpred_seg_counts [ MAX_SEGMENTS ] = {\n 0 }\n ;\n vp9_prob no_pred_tree [ SEG_TREE_PROBS ] ;\n vp9_prob t_pred_tree [ SEG_TREE_PROBS ] ;\n vp9_prob t_nopred_prob [ PREDICTION_PROBS ] ;\n vpx_memset ( seg -> tree_probs , 255 , sizeof ( seg -> tree_probs ) ) ;\n vpx_memset ( seg -> pred_probs , 255 , sizeof ( seg -> pred_probs ) ) ;\n for ( tile_col = 0 ;\n tile_col < 1 << cm -> log2_tile_cols ;\n tile_col ++ ) {\n TileInfo tile ;\n MODE_INFO * mi_ptr ;\n vp9_tile_init ( & tile , cm , 0 , tile_col ) ;\n mi_ptr = cm -> mi + tile . mi_col_start ;\n for ( mi_row = 0 ;\n mi_row < cm -> mi_rows ;\n mi_row += 8 , mi_ptr += 8 * cm -> mi_stride ) {\n MODE_INFO * mi = mi_ptr ;\n for ( mi_col = tile . mi_col_start ;\n mi_col < tile . mi_col_end ;\n mi_col += 8 , mi += 8 ) count_segs_sb ( cm , xd , & tile , mi , no_pred_segcounts , temporal_predictor_count , t_unpred_seg_counts , mi_row , mi_col , BLOCK_64X64 ) ;\n }\n }\n calc_segtree_probs ( no_pred_segcounts , no_pred_tree ) ;\n no_pred_cost = cost_segmap ( no_pred_segcounts , no_pred_tree ) ;\n if ( ! frame_is_intra_only ( cm ) ) {\n calc_segtree_probs ( t_unpred_seg_counts , t_pred_tree ) ;\n t_pred_cost = cost_segmap ( t_unpred_seg_counts , t_pred_tree ) ;\n for ( i = 0 ;\n i < PREDICTION_PROBS ;\n i ++ ) {\n const int count0 = temporal_predictor_count [ i ] [ 0 ] ;\n const int count1 = temporal_predictor_count [ i ] [ 1 ] ;\n t_nopred_prob [ i ] = get_binary_prob ( count0 , count1 ) ;\n t_pred_cost += count0 * vp9_cost_zero ( t_nopred_prob [ i ] ) + count1 * vp9_cost_one ( t_nopred_prob [ i ] ) ;\n }\n }\n if ( t_pred_cost < no_pred_cost ) {\n seg -> temporal_update = 1 ;\n vpx_memcpy ( seg -> tree_probs , t_pred_tree , sizeof ( t_pred_tree ) ) ;\n vpx_memcpy ( seg -> pred_probs , t_nopred_prob , sizeof ( t_nopred_prob ) ) ;\n }\n else {\n seg -> temporal_update = 0 ;\n vpx_memcpy ( seg -> tree_probs , no_pred_tree , sizeof ( no_pred_tree ) ) ;\n }\n }"}
{"idx": 2836, "target": 1, "func": "static void rv40_loop_filter ( RV34DecContext * r , int row ) {\n MpegEncContext * s = & r -> s ;\n int mb_pos , mb_x ;\n int i , j , k ;\n uint8_t * Y , * C ;\n int alpha , beta , betaY , betaC ;\n int q ;\n int mbtype [ 4 ] ;\n int mb_strong [ 4 ] ;\n int clip [ 4 ] ;\n int cbp [ 4 ] ;\n int uvcbp [ 4 ] [ 2 ] ;\n unsigned mvmasks [ 4 ] ;\n mb_pos = row * s -> mb_stride ;\n for ( mb_x = 0 ;\n mb_x < s -> mb_width ;\n mb_x ++ , mb_pos ++ ) {\n int mbtype = s -> current_picture_ptr -> f . mb_type [ mb_pos ] ;\n if ( IS_INTRA ( mbtype ) || IS_SEPARATE_DC ( mbtype ) ) r -> cbp_luma [ mb_pos ] = r -> deblock_coefs [ mb_pos ] = 0xFFFF ;\n if ( IS_INTRA ( mbtype ) ) r -> cbp_chroma [ mb_pos ] = 0xFF ;\n }\n mb_pos = row * s -> mb_stride ;\n for ( mb_x = 0 ;\n mb_x < s -> mb_width ;\n mb_x ++ , mb_pos ++ ) {\n int y_h_deblock , y_v_deblock ;\n int c_v_deblock [ 2 ] , c_h_deblock [ 2 ] ;\n int clip_left ;\n int avail [ 4 ] ;\n unsigned y_to_deblock ;\n int c_to_deblock [ 2 ] ;\n q = s -> current_picture_ptr -> f . qscale_table [ mb_pos ] ;\n alpha = rv40_alpha_tab [ q ] ;\n beta = rv40_beta_tab [ q ] ;\n betaY = betaC = beta * 3 ;\n if ( s -> width * s -> height <= 176 * 144 ) betaY += beta ;\n avail [ 0 ] = 1 ;\n avail [ 1 ] = row ;\n avail [ 2 ] = mb_x ;\n avail [ 3 ] = row < s -> mb_height - 1 ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n if ( avail [ i ] ) {\n int pos = mb_pos + neighbour_offs_x [ i ] + neighbour_offs_y [ i ] * s -> mb_stride ;\n mvmasks [ i ] = r -> deblock_coefs [ pos ] ;\n mbtype [ i ] = s -> current_picture_ptr -> f . mb_type [ pos ] ;\n cbp [ i ] = r -> cbp_luma [ pos ] ;\n uvcbp [ i ] [ 0 ] = r -> cbp_chroma [ pos ] & 0xF ;\n uvcbp [ i ] [ 1 ] = r -> cbp_chroma [ pos ] >> 4 ;\n }\n else {\n mvmasks [ i ] = 0 ;\n mbtype [ i ] = mbtype [ 0 ] ;\n cbp [ i ] = 0 ;\n uvcbp [ i ] [ 0 ] = uvcbp [ i ] [ 1 ] = 0 ;\n }\n mb_strong [ i ] = IS_INTRA ( mbtype [ i ] ) || IS_SEPARATE_DC ( mbtype [ i ] ) ;\n clip [ i ] = rv40_filter_clip_tbl [ mb_strong [ i ] + 1 ] [ q ] ;\n }\n y_to_deblock = mvmasks [ POS_CUR ] | ( mvmasks [ POS_BOTTOM ] << 16 ) ;\n y_h_deblock = y_to_deblock | ( ( cbp [ POS_CUR ] << 4 ) & ~ MASK_Y_TOP_ROW ) | ( ( cbp [ POS_TOP ] & MASK_Y_LAST_ROW ) >> 12 ) ;\n y_v_deblock = y_to_deblock | ( ( cbp [ POS_CUR ] << 1 ) & ~ MASK_Y_LEFT_COL ) | ( ( cbp [ POS_LEFT ] & MASK_Y_RIGHT_COL ) >> 3 ) ;\n if ( ! mb_x ) y_v_deblock &= ~ MASK_Y_LEFT_COL ;\n if ( ! row ) y_h_deblock &= ~ MASK_Y_TOP_ROW ;\n if ( row == s -> mb_height - 1 || ( mb_strong [ POS_CUR ] | mb_strong [ POS_BOTTOM ] ) ) y_h_deblock &= ~ ( MASK_Y_TOP_ROW << 16 ) ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n c_to_deblock [ i ] = ( uvcbp [ POS_BOTTOM ] [ i ] << 4 ) | uvcbp [ POS_CUR ] [ i ] ;\n c_v_deblock [ i ] = c_to_deblock [ i ] | ( ( uvcbp [ POS_CUR ] [ i ] << 1 ) & ~ MASK_C_LEFT_COL ) | ( ( uvcbp [ POS_LEFT ] [ i ] & MASK_C_RIGHT_COL ) >> 1 ) ;\n c_h_deblock [ i ] = c_to_deblock [ i ] | ( ( uvcbp [ POS_TOP ] [ i ] & MASK_C_LAST_ROW ) >> 2 ) | ( uvcbp [ POS_CUR ] [ i ] << 2 ) ;\n if ( ! mb_x ) c_v_deblock [ i ] &= ~ MASK_C_LEFT_COL ;\n if ( ! row ) c_h_deblock [ i ] &= ~ MASK_C_TOP_ROW ;\n if ( row == s -> mb_height - 1 || ( mb_strong [ POS_CUR ] | mb_strong [ POS_BOTTOM ] ) ) c_h_deblock [ i ] &= ~ ( MASK_C_TOP_ROW << 4 ) ;\n }\n for ( j = 0 ;\n j < 16 ;\n j += 4 ) {\n Y = s -> current_picture_ptr -> f . data [ 0 ] + mb_x * 16 + ( row * 16 + j ) * s -> linesize ;\n for ( i = 0 ;\n i < 4 ;\n i ++ , Y += 4 ) {\n int ij = i + j ;\n int clip_cur = y_to_deblock & ( MASK_CUR << ij ) ? clip [ POS_CUR ] : 0 ;\n int dither = j ? ij : i * 4 ;\n if ( y_h_deblock & ( MASK_BOTTOM << ij ) ) {\n rv40_adaptive_loop_filter ( & r -> rdsp , Y + 4 * s -> linesize , s -> linesize , dither , y_to_deblock & ( MASK_BOTTOM << ij ) ? clip [ POS_CUR ] : 0 , clip_cur , alpha , beta , betaY , 0 , 0 , 0 ) ;\n }\n if ( y_v_deblock & ( MASK_CUR << ij ) && ( i || ! ( mb_strong [ POS_CUR ] | mb_strong [ POS_LEFT ] ) ) ) {\n if ( ! i ) clip_left = mvmasks [ POS_LEFT ] & ( MASK_RIGHT << j ) ? clip [ POS_LEFT ] : 0 ;\n else clip_left = y_to_deblock & ( MASK_CUR << ( ij - 1 ) ) ? clip [ POS_CUR ] : 0 ;\n rv40_adaptive_loop_filter ( & r -> rdsp , Y , s -> linesize , dither , clip_cur , clip_left , alpha , beta , betaY , 0 , 0 , 1 ) ;\n }\n if ( ! j && y_h_deblock & ( MASK_CUR << i ) && ( mb_strong [ POS_CUR ] | mb_strong [ POS_TOP ] ) ) {\n rv40_adaptive_loop_filter ( & r -> rdsp , Y , s -> linesize , dither , clip_cur , mvmasks [ POS_TOP ] & ( MASK_TOP << i ) ? clip [ POS_TOP ] : 0 , alpha , beta , betaY , 0 , 1 , 0 ) ;\n }\n if ( y_v_deblock & ( MASK_CUR << ij ) && ! i && ( mb_strong [ POS_CUR ] | mb_strong [ POS_LEFT ] ) ) {\n clip_left = mvmasks [ POS_LEFT ] & ( MASK_RIGHT << j ) ? clip [ POS_LEFT ] : 0 ;\n rv40_adaptive_loop_filter ( & r -> rdsp , Y , s -> linesize , dither , clip_cur , clip_left , alpha , beta , betaY , 0 , 1 , 1 ) ;\n }\n }\n }\n for ( k = 0 ;\n k < 2 ;\n k ++ ) {\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n C = s -> current_picture_ptr -> f . data [ k + 1 ] + mb_x * 8 + ( row * 8 + j * 4 ) * s -> uvlinesize ;\n for ( i = 0 ;\n i < 2 ;\n i ++ , C += 4 ) {\n int ij = i + j * 2 ;\n int clip_cur = c_to_deblock [ k ] & ( MASK_CUR << ij ) ? clip [ POS_CUR ] : 0 ;\n if ( c_h_deblock [ k ] & ( MASK_CUR << ( ij + 2 ) ) ) {\n int clip_bot = c_to_deblock [ k ] & ( MASK_CUR << ( ij + 2 ) ) ? clip [ POS_CUR ] : 0 ;\n rv40_adaptive_loop_filter ( & r -> rdsp , C + 4 * s -> uvlinesize , s -> uvlinesize , i * 8 , clip_bot , clip_cur , alpha , beta , betaC , 1 , 0 , 0 ) ;\n }\n if ( ( c_v_deblock [ k ] & ( MASK_CUR << ij ) ) && ( i || ! ( mb_strong [ POS_CUR ] | mb_strong [ POS_LEFT ] ) ) ) {\n if ( ! i ) clip_left = uvcbp [ POS_LEFT ] [ k ] & ( MASK_CUR << ( 2 * j + 1 ) ) ? clip [ POS_LEFT ] : 0 ;\n else clip_left = c_to_deblock [ k ] & ( MASK_CUR << ( ij - 1 ) ) ? clip [ POS_CUR ] : 0 ;\n rv40_adaptive_loop_filter ( & r -> rdsp , C , s -> uvlinesize , j * 8 , clip_cur , clip_left , alpha , beta , betaC , 1 , 0 , 1 ) ;\n }\n if ( ! j && c_h_deblock [ k ] & ( MASK_CUR << ij ) && ( mb_strong [ POS_CUR ] | mb_strong [ POS_TOP ] ) ) {\n int clip_top = uvcbp [ POS_TOP ] [ k ] & ( MASK_CUR << ( ij + 2 ) ) ? clip [ POS_TOP ] : 0 ;\n rv40_adaptive_loop_filter ( & r -> rdsp , C , s -> uvlinesize , i * 8 , clip_cur , clip_top , alpha , beta , betaC , 1 , 1 , 0 ) ;\n }\n if ( c_v_deblock [ k ] & ( MASK_CUR << ij ) && ! i && ( mb_strong [ POS_CUR ] | mb_strong [ POS_LEFT ] ) ) {\n clip_left = uvcbp [ POS_LEFT ] [ k ] & ( MASK_CUR << ( 2 * j + 1 ) ) ? clip [ POS_LEFT ] : 0 ;\n rv40_adaptive_loop_filter ( & r -> rdsp , C , s -> uvlinesize , j * 8 , clip_cur , clip_left , alpha , beta , betaC , 1 , 1 , 1 ) ;\n }\n }\n }\n }\n }\n }"}
{"idx": 2837, "target": 0, "func": "static int dissect_spoolss_relstrarray ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep , int hf_index , int struct_start , char * * data ) {\n proto_item * item ;\n proto_tree * subtree ;\n guint32 relstr_offset , relstr_start ;\n char * text ;\n item = proto_tree_add_string ( tree , hf_index , tvb , offset , 4 , \"\" ) ;\n subtree = proto_item_add_subtree ( item , ett_RELSTR_ARRAY ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_offset , & relstr_offset ) ;\n relstr_start = relstr_offset + struct_start ;\n if ( relstr_offset ) dissect_spoolss_uint16uni ( tvb , relstr_start , pinfo , subtree , drep , & text , hf_relative_string ) ;\n else {\n text = g_strdup ( \"NULL\" ) ;\n }\n proto_item_append_text ( item , \"%s\" , text ) ;\n if ( data ) * data = text ;\n else g_free ( text ) ;\n return offset ;\n }"}
{"idx": 2838, "target": 0, "func": "static VALUE cState_partial_generate ( VALUE self , VALUE obj ) {\n FBuffer * buffer = cState_prepare_buffer ( self ) ;\n GET_STATE ( self ) ;\n generate_json ( buffer , self , state , obj ) ;\n return fbuffer_to_s ( buffer ) ;\n }"}
{"idx": 2839, "target": 0, "func": "static int ossl_x509name_cmp0 ( VALUE self , VALUE other ) {\n X509_NAME * name1 , * name2 ;\n GetX509Name ( self , name1 ) ;\n SafeGetX509Name ( other , name2 ) ;\n return X509_NAME_cmp ( name1 , name2 ) ;\n }"}
{"idx": 2840, "target": 0, "func": "int vp8_use_as_reference ( VP8_COMP * cpi , int ref_frame_flags ) {\n if ( ref_frame_flags > 7 ) return - 1 ;\n cpi -> ref_frame_flags = ref_frame_flags ;\n return 0 ;\n }"}
{"idx": 2841, "target": 0, "func": "static void configure_tcp ( connection_t * c ) {\n int option ;\n # ifdef O_NONBLOCK int flags = fcntl ( c -> socket , F_GETFL ) ;\n if ( fcntl ( c -> socket , F_SETFL , flags | O_NONBLOCK ) < 0 ) {\n logger ( LOG_ERR , \"fcntl for %s: %s\" , c -> hostname , strerror ( errno ) ) ;\n }\n # elif defined ( WIN32 ) unsigned long arg = 1 ;\n if ( ioctlsocket ( c -> socket , FIONBIO , & arg ) != 0 ) {\n logger ( LOG_ERR , \"ioctlsocket for %s: %s\" , c -> hostname , sockstrerror ( sockerrno ) ) ;\n }\n # endif # if defined ( SOL_TCP ) && defined ( TCP_NODELAY ) option = 1 ;\n setsockopt ( c -> socket , SOL_TCP , TCP_NODELAY , ( void * ) & option , sizeof ( option ) ) ;\n # endif # if defined ( IP_TOS ) && defined ( IPTOS_LOWDELAY ) option = IPTOS_LOWDELAY ;\n setsockopt ( c -> socket , IPPROTO_IP , IP_TOS , ( void * ) & option , sizeof ( option ) ) ;\n # endif # if defined ( IPV6_TCLASS ) && defined ( IPTOS_LOWDELAY ) option = IPTOS_LOWDELAY ;\n setsockopt ( c -> socket , IPPROTO_IPV6 , IPV6_TCLASS , ( void * ) & option , sizeof ( option ) ) ;\n # endif }"}
{"idx": 2842, "target": 0, "func": "TSReturnCode # if TS_USE_TLS_NPN TSNetAcceptNamedProtocol ( TSCont contp , const char * protocol ) {\n sdk_assert ( protocol != nullptr ) ;\n sdk_assert ( contp != nullptr ) ;\n sdk_assert ( sdk_sanity_check_continuation ( contp ) == TS_SUCCESS ) ;\n if ( ! ssl_register_protocol ( protocol , ( INKContInternal * ) contp ) ) {\n ssl_unregister_protocol ( protocol , ( INKContInternal * ) contp ) ;\n return TS_ERROR ;\n }\n return TS_SUCCESS ;\n }\n # else TSNetAcceptNamedProtocol ( TSCont , const char * ) {\n return TS_ERROR ;\n }"}
{"idx": 2843, "target": 0, "func": "static int count_new_keys ( int n_key_data , krb5_key_data * key_data ) {\n int n ;\n for ( n = 1 ;\n n < n_key_data ;\n n ++ ) {\n if ( key_data [ n - 1 ] . key_data_kvno != key_data [ n ] . key_data_kvno ) return n ;\n }\n return n_key_data ;\n }"}
{"idx": 2844, "target": 1, "func": "void vp9_tokenize_initialize ( ) {\n TOKENVALUE * const t = dct_value_tokens + DCT_MAX_VALUE ;\n const vp9_extra_bit * const e = vp9_extra_bits ;\n int i = - DCT_MAX_VALUE ;\n int sign = 1 ;\n do {\n if ( ! i ) sign = 0 ;\n {\n const int a = sign ? - i : i ;\n int eb = sign ;\n if ( a > 4 ) {\n int j = 4 ;\n while ( ++ j < 11 && e [ j ] . base_val <= a ) {\n }\n t [ i ] . token = -- j ;\n eb |= ( a - e [ j ] . base_val ) << 1 ;\n }\n else {\n t [ i ] . token = a ;\n }\n t [ i ] . extra = eb ;\n }\n {\n int cost = 0 ;\n const vp9_extra_bit * p = & vp9_extra_bits [ t [ i ] . token ] ;\n if ( p -> base_val ) {\n const int extra = t [ i ] . extra ;\n const int length = p -> len ;\n if ( length ) cost += treed_cost ( p -> tree , p -> prob , extra >> 1 , length ) ;\n cost += vp9_cost_bit ( vp9_prob_half , extra & 1 ) ;\n dct_value_cost [ i + DCT_MAX_VALUE ] = cost ;\n }\n }\n }\n while ( ++ i < DCT_MAX_VALUE ) ;\n vp9_dct_value_tokens_ptr = dct_value_tokens + DCT_MAX_VALUE ;\n vp9_dct_value_cost_ptr = dct_value_cost + DCT_MAX_VALUE ;\n }"}
{"idx": 2845, "target": 0, "func": "static void pdf_process_extgstate ( fz_context * ctx , pdf_processor * proc , pdf_csi * csi , pdf_obj * dict ) {\n pdf_obj * obj ;\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_LW ) ;\n if ( pdf_is_number ( ctx , obj ) && proc -> op_w ) proc -> op_w ( ctx , proc , pdf_to_real ( ctx , obj ) ) ;\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_LC ) ;\n if ( pdf_is_int ( ctx , obj ) && proc -> op_J ) proc -> op_J ( ctx , proc , fz_clampi ( pdf_to_int ( ctx , obj ) , 0 , 2 ) ) ;\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_LJ ) ;\n if ( pdf_is_int ( ctx , obj ) && proc -> op_j ) proc -> op_j ( ctx , proc , fz_clampi ( pdf_to_int ( ctx , obj ) , 0 , 2 ) ) ;\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_ML ) ;\n if ( pdf_is_number ( ctx , obj ) && proc -> op_M ) proc -> op_M ( ctx , proc , pdf_to_real ( ctx , obj ) ) ;\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_D ) ;\n if ( pdf_is_array ( ctx , obj ) && proc -> op_d ) {\n pdf_obj * dash_array = pdf_array_get ( ctx , obj , 0 ) ;\n pdf_obj * dash_phase = pdf_array_get ( ctx , obj , 1 ) ;\n proc -> op_d ( ctx , proc , dash_array , pdf_to_real ( ctx , dash_phase ) ) ;\n }\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_RI ) ;\n if ( pdf_is_name ( ctx , obj ) && proc -> op_ri ) proc -> op_ri ( ctx , proc , pdf_to_name ( ctx , obj ) ) ;\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_FL ) ;\n if ( pdf_is_number ( ctx , obj ) && proc -> op_i ) proc -> op_i ( ctx , proc , pdf_to_real ( ctx , obj ) ) ;\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_Font ) ;\n if ( pdf_is_array ( ctx , obj ) && proc -> op_Tf ) {\n pdf_obj * font_ref = pdf_array_get ( ctx , obj , 0 ) ;\n pdf_obj * font_size = pdf_array_get ( ctx , obj , 1 ) ;\n pdf_font_desc * font = load_font_or_hail_mary ( ctx , csi -> doc , csi -> rdb , font_ref , 0 , csi -> cookie ) ;\n fz_try ( ctx ) proc -> op_Tf ( ctx , proc , \"ExtGState\" , font , pdf_to_real ( ctx , font_size ) ) ;\n fz_always ( ctx ) pdf_drop_font ( ctx , font ) ;\n fz_catch ( ctx ) fz_rethrow ( ctx ) ;\n }\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_OP ) ;\n if ( pdf_is_bool ( ctx , obj ) && proc -> op_gs_OP ) proc -> op_gs_OP ( ctx , proc , pdf_to_bool ( ctx , obj ) ) ;\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_op ) ;\n if ( pdf_is_bool ( ctx , obj ) && proc -> op_gs_op ) proc -> op_gs_op ( ctx , proc , pdf_to_bool ( ctx , obj ) ) ;\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_OPM ) ;\n if ( pdf_is_int ( ctx , obj ) && proc -> op_gs_OPM ) proc -> op_gs_OPM ( ctx , proc , pdf_to_int ( ctx , obj ) ) ;\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_UseBlackPtComp ) ;\n if ( pdf_is_name ( ctx , obj ) && proc -> op_gs_UseBlackPtComp ) proc -> op_gs_UseBlackPtComp ( ctx , proc , obj ) ;\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_TR2 ) ;\n if ( pdf_is_name ( ctx , obj ) ) if ( ! pdf_name_eq ( ctx , obj , PDF_NAME_Identity ) && ! pdf_name_eq ( ctx , obj , PDF_NAME_Default ) ) fz_warn ( ctx , \"ignoring transfer function\" ) ;\n if ( ! obj ) {\n pdf_obj * tr = pdf_dict_get ( ctx , dict , PDF_NAME_TR ) ;\n if ( pdf_is_name ( ctx , tr ) ) if ( ! pdf_name_eq ( ctx , tr , PDF_NAME_Identity ) ) fz_warn ( ctx , \"ignoring transfer function\" ) ;\n }\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_CA ) ;\n if ( pdf_is_number ( ctx , obj ) && proc -> op_gs_CA ) proc -> op_gs_CA ( ctx , proc , pdf_to_real ( ctx , obj ) ) ;\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_ca ) ;\n if ( pdf_is_number ( ctx , obj ) && proc -> op_gs_ca ) proc -> op_gs_ca ( ctx , proc , pdf_to_real ( ctx , obj ) ) ;\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_BM ) ;\n if ( pdf_is_array ( ctx , obj ) ) obj = pdf_array_get ( ctx , obj , 0 ) ;\n if ( pdf_is_name ( ctx , obj ) && proc -> op_gs_BM ) proc -> op_gs_BM ( ctx , proc , pdf_to_name ( ctx , obj ) ) ;\n obj = pdf_dict_get ( ctx , dict , PDF_NAME_SMask ) ;\n if ( proc -> op_gs_SMask ) {\n if ( pdf_is_dict ( ctx , obj ) ) {\n pdf_xobject * xobj ;\n pdf_obj * group , * s , * bc , * tr ;\n float softmask_bc [ FZ_MAX_COLORS ] ;\n fz_colorspace * colorspace ;\n int colorspace_n = 1 ;\n int k , luminosity ;\n fz_var ( xobj ) ;\n group = pdf_dict_get ( ctx , obj , PDF_NAME_G ) ;\n xobj = pdf_load_xobject ( ctx , csi -> doc , group ) ;\n fz_try ( ctx ) {\n colorspace = pdf_xobject_colorspace ( ctx , xobj ) ;\n if ( colorspace ) colorspace_n = fz_colorspace_n ( ctx , colorspace ) ;\n for ( k = 0 ;\n k < colorspace_n ;\n k ++ ) softmask_bc [ k ] = 0 ;\n if ( fz_colorspace_is_cmyk ( ctx , colorspace ) ) softmask_bc [ 3 ] = 1.0f ;\n fz_drop_colorspace ( ctx , colorspace ) ;\n bc = pdf_dict_get ( ctx , obj , PDF_NAME_BC ) ;\n if ( pdf_is_array ( ctx , bc ) ) {\n for ( k = 0 ;\n k < colorspace_n ;\n k ++ ) softmask_bc [ k ] = pdf_to_real ( ctx , pdf_array_get ( ctx , bc , k ) ) ;\n }\n s = pdf_dict_get ( ctx , obj , PDF_NAME_S ) ;\n if ( pdf_name_eq ( ctx , s , PDF_NAME_Luminosity ) ) luminosity = 1 ;\n else luminosity = 0 ;\n tr = pdf_dict_get ( ctx , obj , PDF_NAME_TR ) ;\n if ( tr && ! pdf_name_eq ( ctx , tr , PDF_NAME_Identity ) ) fz_warn ( ctx , \"ignoring transfer function\" ) ;\n proc -> op_gs_SMask ( ctx , proc , xobj , csi -> rdb , softmask_bc , luminosity ) ;\n }\n fz_always ( ctx ) {\n pdf_drop_xobject ( ctx , xobj ) ;\n }\n fz_catch ( ctx ) {\n fz_rethrow ( ctx ) ;\n }\n }\n else if ( pdf_is_name ( ctx , obj ) && pdf_name_eq ( ctx , obj , PDF_NAME_None ) ) {\n proc -> op_gs_SMask ( ctx , proc , NULL , NULL , NULL , 0 ) ;\n }\n }\n }"}
{"idx": 2846, "target": 1, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL )"}
{"idx": 2847, "target": 0, "func": "int jbig2_halftone_region ( Jbig2Ctx * ctx , Jbig2Segment * segment , const byte * segment_data ) {\n int offset = 0 ;\n Jbig2RegionSegmentInfo region_info ;\n Jbig2HalftoneRegionParams params ;\n Jbig2Image * image = NULL ;\n Jbig2ArithCx * GB_stats = NULL ;\n int code = 0 ;\n if ( segment -> data_length < 17 ) goto too_short ;\n jbig2_get_region_segment_info ( & region_info , segment_data ) ;\n offset += 17 ;\n if ( segment -> data_length < 18 ) goto too_short ;\n params . flags = segment_data [ offset ] ;\n params . HMMR = params . flags & 1 ;\n params . HTEMPLATE = ( params . flags & 6 ) >> 1 ;\n params . HENABLESKIP = ( params . flags & 8 ) >> 3 ;\n params . op = ( Jbig2ComposeOp ) ( ( params . flags & 0x70 ) >> 4 ) ;\n params . HDEFPIXEL = ( params . flags & 0x80 ) >> 7 ;\n offset += 1 ;\n jbig2_error ( ctx , JBIG2_SEVERITY_INFO , segment -> number , \"halftone region: %d x %d @ (%x,%d) flags=%02x\" , region_info . width , region_info . height , region_info . x , region_info . y , params . flags ) ;\n if ( params . HMMR && params . HTEMPLATE ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"HTEMPLATE is %d when HMMR is %d, contrary to spec\" , params . HTEMPLATE , params . HMMR ) ;\n }\n if ( params . HMMR && params . HENABLESKIP ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"HENABLESKIP is %d when HMMR is %d, contrary to spec\" , params . HENABLESKIP , params . HMMR ) ;\n }\n if ( segment -> data_length - offset < 16 ) goto too_short ;\n params . HGW = jbig2_get_uint32 ( segment_data + offset ) ;\n params . HGH = jbig2_get_uint32 ( segment_data + offset + 4 ) ;\n params . HGX = jbig2_get_int32 ( segment_data + offset + 8 ) ;\n params . HGY = jbig2_get_int32 ( segment_data + offset + 12 ) ;\n offset += 16 ;\n if ( segment -> data_length - offset < 4 ) goto too_short ;\n params . HRX = jbig2_get_uint16 ( segment_data + offset ) ;\n params . HRY = jbig2_get_uint16 ( segment_data + offset + 2 ) ;\n offset += 4 ;\n jbig2_error ( ctx , JBIG2_SEVERITY_INFO , segment -> number , \" grid %d x %d @ (%d.%d,%d.%d) vector (%d.%d,%d.%d)\" , params . HGW , params . HGH , params . HGX >> 8 , params . HGX & 0xff , params . HGY >> 8 , params . HGY & 0xff , params . HRX >> 8 , params . HRX & 0xff , params . HRY >> 8 , params . HRY & 0xff ) ;\n if ( ! params . HMMR ) {\n int stats_size = jbig2_generic_stats_size ( ctx , params . HTEMPLATE ) ;\n GB_stats = jbig2_new ( ctx , Jbig2ArithCx , stats_size ) ;\n if ( GB_stats == NULL ) {\n return jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"failed to allocate GB_stats in halftone region\" ) ;\n }\n memset ( GB_stats , 0 , stats_size ) ;\n }\n image = jbig2_image_new ( ctx , region_info . width , region_info . height ) ;\n if ( image == NULL ) {\n jbig2_free ( ctx -> allocator , GB_stats ) ;\n return jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"unable to allocate halftone image\" ) ;\n }\n code = jbig2_decode_halftone_region ( ctx , segment , & params , segment_data + offset , segment -> data_length - offset , image , GB_stats ) ;\n if ( ! params . HMMR ) {\n jbig2_free ( ctx -> allocator , GB_stats ) ;\n }\n jbig2_page_add_result ( ctx , & ctx -> pages [ ctx -> current_page ] , image , region_info . x , region_info . y , region_info . op ) ;\n jbig2_image_release ( ctx , image ) ;\n return code ;\n too_short : return jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"Segment too short\" ) ;\n }"}
{"idx": 2848, "target": 1, "func": "void compute_curve_gamma_table_type_parametric ( float gamma_table [ 256 ] , float parameter [ 7 ] , int count ) {\n size_t X ;\n float interval ;\n float a , b , c , e , f ;\n float y = parameter [ 0 ] ;\n if ( count == 0 ) {\n a = 1 ;\n b = 0 ;\n c = 0 ;\n e = 0 ;\n f = 0 ;\n interval = - INFINITY ;\n }\n else if ( count == 1 ) {\n a = parameter [ 1 ] ;\n b = parameter [ 2 ] ;\n c = 0 ;\n e = 0 ;\n f = 0 ;\n interval = - 1 * parameter [ 2 ] / parameter [ 1 ] ;\n }\n else if ( count == 2 ) {\n a = parameter [ 1 ] ;\n b = parameter [ 2 ] ;\n c = 0 ;\n e = parameter [ 3 ] ;\n f = parameter [ 3 ] ;\n interval = - 1 * parameter [ 2 ] / parameter [ 1 ] ;\n }\n else if ( count == 3 ) {\n a = parameter [ 1 ] ;\n b = parameter [ 2 ] ;\n c = parameter [ 3 ] ;\n e = - c ;\n f = 0 ;\n interval = parameter [ 4 ] ;\n }\n else if ( count == 4 ) {\n a = parameter [ 1 ] ;\n b = parameter [ 2 ] ;\n c = parameter [ 3 ] ;\n e = parameter [ 5 ] - c ;\n f = parameter [ 6 ] ;\n interval = parameter [ 4 ] ;\n }\n else {\n assert ( 0 && \"invalid parametric function type.\" ) ;\n a = 1 ;\n b = 0 ;\n c = 0 ;\n e = 0 ;\n f = 0 ;\n interval = - INFINITY ;\n }\n for ( X = 0 ;\n X < 256 ;\n X ++ ) {\n float x = X / 255.0 ;\n if ( x >= interval ) {\n gamma_table [ X ] = clamp_float ( pow ( a * x + b , y ) + c + e ) ;\n }\n else {\n gamma_table [ X ] = clamp_float ( c * x + f ) ;\n }\n }\n }"}
{"idx": 2849, "target": 0, "func": "static void decStatus ( decNumber * dn , uInt status , decContext * set ) {\n if ( status & DEC_NaNs ) {\n if ( status & DEC_sNaN ) status &= ~ DEC_sNaN ;\n else {\n uprv_decNumberZero ( dn ) ;\n dn -> bits = DECNAN ;\n }\n }\n uprv_decContextSetStatus ( set , status ) ;\n return ;\n }"}
{"idx": 2850, "target": 0, "func": "static void convolve ( float * tgt , const float * src , int len , int n ) {\n for ( ;\n n >= 0 ;\n n -- ) tgt [ n ] = avpriv_scalarproduct_float_c ( src , src - n , len ) ;\n }"}
{"idx": 2851, "target": 0, "func": "static int dissect_h225_SEQUENCE_OF_AlternateGK ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_SEQUENCE_OF_AlternateGK , SEQUENCE_OF_AlternateGK_sequence_of ) ;\n return offset ;\n }"}
{"idx": 2852, "target": 0, "func": "static const char * cmd_rule_inheritance ( cmd_parms * cmd , void * _dcfg , int flag ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n if ( dcfg == NULL ) return NULL ;\n dcfg -> rule_inheritance = flag ;\n return NULL ;\n }"}
{"idx": 2853, "target": 0, "func": "static int dissect_rsl_ie_starting_time ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_tree * ie_tree ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_STARTING_TIME ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 3 , ett_ie_staring_time , NULL , \"Starting Time IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_req_ref_T1prim , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_req_ref_T3 , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_req_ref_T2 , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n return offset ;\n }"}
{"idx": 2854, "target": 0, "func": "static void dissect_zcl_scenes_remove_all_scenes_response ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_scenes_status , tvb , * offset , 1 , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_scenes_group_id , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n }"}
{"idx": 2855, "target": 0, "func": "static int tree_content_set ( struct tree_entry * root , const char * p , const unsigned char * sha1 , const uint16_t mode , struct tree_content * subtree ) {\n struct tree_content * t ;\n const char * slash1 ;\n unsigned int i , n ;\n struct tree_entry * e ;\n slash1 = strchrnul ( p , '/' ) ;\n n = slash1 - p ;\n if ( ! n ) die ( \"Empty path component found in input\" ) ;\n if ( ! * slash1 && ! S_ISDIR ( mode ) && subtree ) die ( \"Non-directories cannot have subtrees\" ) ;\n if ( ! root -> tree ) load_tree ( root ) ;\n t = root -> tree ;\n for ( i = 0 ;\n i < t -> entry_count ;\n i ++ ) {\n e = t -> entries [ i ] ;\n if ( e -> name -> str_len == n && ! strncmp_icase ( p , e -> name -> str_dat , n ) ) {\n if ( ! * slash1 ) {\n if ( ! S_ISDIR ( mode ) && e -> versions [ 1 ] . mode == mode && ! hashcmp ( e -> versions [ 1 ] . sha1 , sha1 ) ) return 0 ;\n e -> versions [ 1 ] . mode = mode ;\n hashcpy ( e -> versions [ 1 ] . sha1 , sha1 ) ;\n if ( e -> tree ) release_tree_content_recursive ( e -> tree ) ;\n e -> tree = subtree ;\n if ( S_ISDIR ( e -> versions [ 0 ] . mode ) ) e -> versions [ 0 ] . mode |= NO_DELTA ;\n hashclr ( root -> versions [ 1 ] . sha1 ) ;\n return 1 ;\n }\n if ( ! S_ISDIR ( e -> versions [ 1 ] . mode ) ) {\n e -> tree = new_tree_content ( 8 ) ;\n e -> versions [ 1 ] . mode = S_IFDIR ;\n }\n if ( ! e -> tree ) load_tree ( e ) ;\n if ( tree_content_set ( e , slash1 + 1 , sha1 , mode , subtree ) ) {\n hashclr ( root -> versions [ 1 ] . sha1 ) ;\n return 1 ;\n }\n return 0 ;\n }\n }\n if ( t -> entry_count == t -> entry_capacity ) root -> tree = t = grow_tree_content ( t , t -> entry_count ) ;\n e = new_tree_entry ( ) ;\n e -> name = to_atom ( p , n ) ;\n e -> versions [ 0 ] . mode = 0 ;\n hashclr ( e -> versions [ 0 ] . sha1 ) ;\n t -> entries [ t -> entry_count ++ ] = e ;\n if ( * slash1 ) {\n e -> tree = new_tree_content ( 8 ) ;\n e -> versions [ 1 ] . mode = S_IFDIR ;\n tree_content_set ( e , slash1 + 1 , sha1 , mode , subtree ) ;\n }\n else {\n e -> tree = subtree ;\n e -> versions [ 1 ] . mode = mode ;\n hashcpy ( e -> versions [ 1 ] . sha1 , sha1 ) ;\n }\n hashclr ( root -> versions [ 1 ] . sha1 ) ;\n return 1 ;\n }"}
{"idx": 2856, "target": 0, "func": "static void enable_segmentation ( VP8_COMP * cpi ) {\n cpi -> mb . e_mbd . segmentation_enabled = 1 ;\n cpi -> mb . e_mbd . update_mb_segmentation_map = 1 ;\n cpi -> mb . e_mbd . update_mb_segmentation_data = 1 ;\n }"}
{"idx": 2857, "target": 0, "func": "static inline int svq3_mc_dir ( SVQ3Context * s , int size , int mode , int dir , int avg ) {\n int i , j , k , mx , my , dx , dy , x , y ;\n H264Context * h = & s -> h ;\n const int part_width = ( ( size & 5 ) == 4 ) ? 4 : 16 >> ( size & 1 ) ;\n const int part_height = 16 >> ( ( unsigned ) ( size + 1 ) / 3 ) ;\n const int extra_width = ( mode == PREDICT_MODE ) ? - 16 * 6 : 0 ;\n const int h_edge_pos = 6 * ( s -> h_edge_pos - part_width ) - extra_width ;\n const int v_edge_pos = 6 * ( s -> v_edge_pos - part_height ) - extra_width ;\n for ( i = 0 ;\n i < 16 ;\n i += part_height ) for ( j = 0 ;\n j < 16 ;\n j += part_width ) {\n const int b_xy = ( 4 * h -> mb_x + ( j >> 2 ) ) + ( 4 * h -> mb_y + ( i >> 2 ) ) * h -> b_stride ;\n int dxy ;\n x = 16 * h -> mb_x + j ;\n y = 16 * h -> mb_y + i ;\n k = ( j >> 2 & 1 ) + ( i >> 1 & 2 ) + ( j >> 1 & 4 ) + ( i & 8 ) ;\n if ( mode != PREDICT_MODE ) {\n pred_motion ( h , k , part_width >> 2 , dir , 1 , & mx , & my ) ;\n }\n else {\n mx = s -> next_pic -> motion_val [ 0 ] [ b_xy ] [ 0 ] << 1 ;\n my = s -> next_pic -> motion_val [ 0 ] [ b_xy ] [ 1 ] << 1 ;\n if ( dir == 0 ) {\n mx = mx * h -> frame_num_offset / h -> prev_frame_num_offset + 1 >> 1 ;\n my = my * h -> frame_num_offset / h -> prev_frame_num_offset + 1 >> 1 ;\n }\n else {\n mx = mx * ( h -> frame_num_offset - h -> prev_frame_num_offset ) / h -> prev_frame_num_offset + 1 >> 1 ;\n my = my * ( h -> frame_num_offset - h -> prev_frame_num_offset ) / h -> prev_frame_num_offset + 1 >> 1 ;\n }\n }\n mx = av_clip ( mx , extra_width - 6 * x , h_edge_pos - 6 * x ) ;\n my = av_clip ( my , extra_width - 6 * y , v_edge_pos - 6 * y ) ;\n if ( mode == PREDICT_MODE ) {\n dx = dy = 0 ;\n }\n else {\n dy = svq3_get_se_golomb ( & h -> gb ) ;\n dx = svq3_get_se_golomb ( & h -> gb ) ;\n if ( dx == INVALID_VLC || dy == INVALID_VLC ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"invalid MV vlc\\n\" ) ;\n return - 1 ;\n }\n }\n if ( mode == THIRDPEL_MODE ) {\n int fx , fy ;\n mx = ( mx + 1 >> 1 ) + dx ;\n my = ( my + 1 >> 1 ) + dy ;\n fx = ( unsigned ) ( mx + 0x3000 ) / 3 - 0x1000 ;\n fy = ( unsigned ) ( my + 0x3000 ) / 3 - 0x1000 ;\n dxy = ( mx - 3 * fx ) + 4 * ( my - 3 * fy ) ;\n svq3_mc_dir_part ( s , x , y , part_width , part_height , fx , fy , dxy , 1 , dir , avg ) ;\n mx += mx ;\n my += my ;\n }\n else if ( mode == HALFPEL_MODE || mode == PREDICT_MODE ) {\n mx = ( unsigned ) ( mx + 1 + 0x3000 ) / 3 + dx - 0x1000 ;\n my = ( unsigned ) ( my + 1 + 0x3000 ) / 3 + dy - 0x1000 ;\n dxy = ( mx & 1 ) + 2 * ( my & 1 ) ;\n svq3_mc_dir_part ( s , x , y , part_width , part_height , mx >> 1 , my >> 1 , dxy , 0 , dir , avg ) ;\n mx *= 3 ;\n my *= 3 ;\n }\n else {\n mx = ( unsigned ) ( mx + 3 + 0x6000 ) / 6 + dx - 0x1000 ;\n my = ( unsigned ) ( my + 3 + 0x6000 ) / 6 + dy - 0x1000 ;\n svq3_mc_dir_part ( s , x , y , part_width , part_height , mx , my , 0 , 0 , dir , avg ) ;\n mx *= 6 ;\n my *= 6 ;\n }\n if ( mode != PREDICT_MODE ) {\n int32_t mv = pack16to32 ( mx , my ) ;\n if ( part_height == 8 && i < 8 ) {\n AV_WN32A ( h -> mv_cache [ dir ] [ scan8 [ k ] + 1 * 8 ] , mv ) ;\n if ( part_width == 8 && j < 8 ) AV_WN32A ( h -> mv_cache [ dir ] [ scan8 [ k ] + 1 + 1 * 8 ] , mv ) ;\n }\n if ( part_width == 8 && j < 8 ) AV_WN32A ( h -> mv_cache [ dir ] [ scan8 [ k ] + 1 ] , mv ) ;\n if ( part_width == 4 || part_height == 4 ) AV_WN32A ( h -> mv_cache [ dir ] [ scan8 [ k ] ] , mv ) ;\n }\n fill_rectangle ( h -> cur_pic . motion_val [ dir ] [ b_xy ] , part_width >> 2 , part_height >> 2 , h -> b_stride , pack16to32 ( mx , my ) , 4 ) ;\n }\n return 0 ;\n }"}
{"idx": 2858, "target": 0, "func": "TSReturnCode TSHttpTxnParentProxyGet ( TSHttpTxn txnp , const char * * hostname , int * port ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n * hostname = sm -> t_state . api_info . parent_proxy_name ;\n * port = sm -> t_state . api_info . parent_proxy_port ;\n return TS_SUCCESS ;\n }"}
{"idx": 2859, "target": 0, "func": "void proto_register_h245 ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_h245_pdu_type , {\n \"PDU Type\" , \"h245.pdu_type\" , FT_UINT32 , BASE_DEC , VALS ( h245_MultimediaSystemControlMessage_vals ) , 0 , \"Type of H.245 PDU\" , HFILL }\n }\n , {\n & hf_h245Manufacturer , {\n \"H.245 Manufacturer\" , \"h245.Manufacturer\" , FT_UINT32 , BASE_HEX , VALS ( H221ManufacturerCode_vals ) , 0 , \"h245.H.221 Manufacturer\" , HFILL }\n }\n , {\n & hf_h245_subMessageIdentifier_standard , {\n \"subMessageIdentifier\" , \"h245.subMessageIdentifier.standard\" , FT_UINT32 , BASE_DEC , VALS ( h245_h239subMessageIdentifier_vals ) , 0 , NULL , HFILL }\n }\n , # include \"packet-h245-hfarr.c\" }\n ;\n static gint * ett [ ] = {\n & ett_h245 , & ett_h245_returnedFunction , # include \"packet-h245-ettarr.c\" }\n ;\n module_t * h245_module ;\n proto_h245 = proto_register_protocol ( PNAME , PSNAME , PFNAME ) ;\n register_init_routine ( h245_init ) ;\n proto_register_field_array ( proto_h245 , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n h245_module = prefs_register_protocol ( proto_h245 , NULL ) ;\n prefs_register_bool_preference ( h245_module , \"reassembly\" , \"Reassemble H.245 messages spanning multiple TCP segments\" , \"Whether the H.245 dissector should reassemble messages spanning multiple TCP segments.\" \" To use this option, you must also enable \\\"Allow subdissectors to reassemble TCP streams\\\" in the TCP protocol settings.\" , & h245_reassembly ) ;\n prefs_register_bool_preference ( h245_module , \"shorttypes\" , \"Show short message types\" , \"Whether the dissector should show short names or the long names from the standard\" , & h245_shorttypes ) ;\n register_dissector ( \"h245dg\" , dissect_h245_h245 , proto_h245 ) ;\n register_dissector ( \"h245\" , dissect_h245 , proto_h245 ) ;\n nsp_object_dissector_table = register_dissector_table ( \"h245.nsp.object\" , \"H.245 NonStandardParameter (object)\" , FT_STRING , BASE_NONE ) ;\n nsp_h221_dissector_table = register_dissector_table ( \"h245.nsp.h221\" , \"H.245 NonStandardParameter (h221)\" , FT_UINT32 , BASE_HEX ) ;\n gef_name_dissector_table = register_dissector_table ( \"h245.gef.name\" , \"H.245 Generic Extensible Framework (names)\" , FT_STRING , BASE_NONE ) ;\n gef_content_dissector_table = register_dissector_table ( \"h245.gef.content\" , \"H.245 Generic Extensible Framework\" , FT_STRING , BASE_NONE ) ;\n h245_tap = register_tap ( \"h245\" ) ;\n h245dg_tap = register_tap ( \"h245dg\" ) ;\n oid_add_from_string ( \"h239ControlCapability\" , \"0.0.8.239.1.1\" ) ;\n oid_add_from_string ( \"h239ExtendedVideoCapability\" , \"0.0.8.239.1.2\" ) ;\n oid_add_from_string ( \"generic-message\" , \"0.0.8.239.2\" ) ;\n oid_add_from_string ( \"h245 version 3\" , \"0.0.8.245.0.3\" ) ;\n oid_add_from_string ( \"h245 version 4\" , \"0.0.8.245.0.4\" ) ;\n oid_add_from_string ( \"h245 version 5\" , \"0.0.8.245.0.5\" ) ;\n oid_add_from_string ( \"h245 version 6\" , \"0.0.8.245.0.6\" ) ;\n oid_add_from_string ( \"h245 version 7\" , \"0.0.8.245.0.7\" ) ;\n oid_add_from_string ( \"h245 version 8\" , \"0.0.8.245.0.8\" ) ;\n oid_add_from_string ( \"h245 version 9\" , \"0.0.8.245.0.9\" ) ;\n oid_add_from_string ( \"h245 version 10\" , \"0.0.8.245.0.10\" ) ;\n oid_add_from_string ( \"h245 version 11\" , \"0.0.8.245.0.11\" ) ;\n oid_add_from_string ( \"h245 version 12\" , \"0.0.8.245.0.12\" ) ;\n oid_add_from_string ( \"h245 version 13\" , \"0.0.8.245.0.13\" ) ;\n oid_add_from_string ( \"ISO/IEC 14496-2 MPEG-4 video\" , \"0.0.8.245.1.0.0\" ) ;\n oid_add_from_string ( \"ISO/IEC 14496-3 MPEG-4 audio\" , \"0.0.8.245.1.1.0\" ) ;\n oid_add_from_string ( \"AMR\" , \"0.0.8.245.1.1.1\" ) ;\n oid_add_from_string ( \"acelp\" , \"0.0.8.245.1.1.2\" ) ;\n oid_add_from_string ( \"us1\" , \"0.0.8.245.1.1.3\" ) ;\n oid_add_from_string ( \"is127evrc\" , \"0.0.8.245.1.1.4\" ) ;\n oid_add_from_string ( \"ISO/IEC 13818-7\" , \"0.0.8.245.1.1.5\" ) ;\n oid_add_from_string ( \"rfc3389\" , \"0.0.8.245.1.1.6\" ) ;\n oid_add_from_string ( \"L-16\" , \"0.0.8.245.1.1.7\" ) ;\n oid_add_from_string ( \"bounded-audio-stream\" , \"0.0.8.245.1.1.8\" ) ;\n oid_add_from_string ( \"AMR-NB\" , \"0.0.8.245.1.1.9\" ) ;\n oid_add_from_string ( \"AMR-WB\" , \"0.0.8.245.1.1.10\" ) ;\n oid_add_from_string ( \"ilbc\" , \"0.0.8.245.1.1.11\" ) ;\n oid_add_from_string ( \"ISO/IEC 14496-1\" , \"0.0.8.245.1.2.0\" ) ;\n oid_add_from_string ( \"Nx64\" , \"0.0.8.245.1.2.1\" ) ;\n oid_add_from_string ( \"logical-channel-bit-ratemanagement\" , \"0.0.8.245.1.3.0\" ) ;\n oid_add_from_string ( \"h264 generic-capabilities\" , \"0.0.8.241.0.0.1\" ) ;\n oid_add_from_string ( \"iPpacketization_h241AnnexA(single NAL unit mode)\" , \"0.0.8.241.0.0.0.0\" ) ;\n oid_add_from_string ( \"iPpacketization_RFC3984NonInterleaved\" , \"0.0.8.241.0.0.0.1\" ) ;\n oid_add_from_string ( \"iPpacketization_RFC3984Interleaved\" , \"0.0.8.241.0.0.0.2\" ) ;\n }"}
{"idx": 2860, "target": 0, "func": "int WriteCaffHeader ( FILE * outfile , WavpackContext * wpc , int64_t total_samples , int qmode ) {\n CAFChunkHeader caf_desc_chunk_header , caf_chan_chunk_header , caf_data_chunk_header ;\n CAFChannelLayout caf_channel_layout ;\n CAFAudioFormat caf_audio_format ;\n CAFFileHeader caf_file_header ;\n uint32_t mEditCount , bcount ;\n int num_channels = WavpackGetNumChannels ( wpc ) ;\n int32_t channel_mask = WavpackGetChannelMask ( wpc ) ;\n int32_t sample_rate = WavpackGetSampleRate ( wpc ) ;\n int bytes_per_sample = WavpackGetBytesPerSample ( wpc ) ;\n int bits_per_sample = WavpackGetBitsPerSample ( wpc ) ;\n int float_norm_exp = WavpackGetFloatNormExp ( wpc ) ;\n uint32_t channel_layout_tag = WavpackGetChannelLayout ( wpc , NULL ) ;\n unsigned char * channel_identities = malloc ( num_channels + 1 ) ;\n int num_identified_chans , i ;\n if ( float_norm_exp && float_norm_exp != 127 ) {\n error_line ( \"can't create valid CAFF header for non-normalized floating data!\" ) ;\n free ( channel_identities ) ;\n return FALSE ;\n }\n WavpackGetChannelIdentities ( wpc , channel_identities ) ;\n for ( num_identified_chans = i = 0 ;\n i < num_channels ;\n ++ i ) if ( channel_identities [ i ] != 0xff ) num_identified_chans ++ ;\n strncpy ( caf_file_header . mFileType , \"caff\" , sizeof ( caf_file_header . mFileType ) ) ;\n caf_file_header . mFileVersion = 1 ;\n caf_file_header . mFileFlags = 0 ;\n WavpackNativeToBigEndian ( & caf_file_header , CAFFileHeaderFormat ) ;\n if ( ! DoWriteFile ( outfile , & caf_file_header , sizeof ( caf_file_header ) , & bcount ) || bcount != sizeof ( caf_file_header ) ) return FALSE ;\n strncpy ( caf_desc_chunk_header . mChunkType , \"desc\" , sizeof ( caf_desc_chunk_header . mChunkType ) ) ;\n caf_desc_chunk_header . mChunkSize = sizeof ( caf_audio_format ) ;\n WavpackNativeToBigEndian ( & caf_desc_chunk_header , CAFChunkHeaderFormat ) ;\n if ( ! DoWriteFile ( outfile , & caf_desc_chunk_header , sizeof ( caf_desc_chunk_header ) , & bcount ) || bcount != sizeof ( caf_desc_chunk_header ) ) return FALSE ;\n caf_audio_format . mSampleRate = ( double ) sample_rate ;\n strncpy ( caf_audio_format . mFormatID , \"lpcm\" , sizeof ( caf_audio_format . mFormatID ) ) ;\n caf_audio_format . mFormatFlags = float_norm_exp ? CAF_FORMAT_FLOAT : 0 ;\n if ( ! ( qmode & QMODE_BIG_ENDIAN ) ) caf_audio_format . mFormatFlags |= CAF_FORMAT_LITTLE_ENDIAN ;\n caf_audio_format . mBytesPerPacket = bytes_per_sample * num_channels ;\n caf_audio_format . mFramesPerPacket = 1 ;\n caf_audio_format . mChannelsPerFrame = num_channels ;\n caf_audio_format . mBitsPerChannel = bits_per_sample ;\n WavpackNativeToBigEndian ( & caf_audio_format , CAFAudioFormatFormat ) ;\n if ( ! DoWriteFile ( outfile , & caf_audio_format , sizeof ( caf_audio_format ) , & bcount ) || bcount != sizeof ( caf_audio_format ) ) return FALSE ;\n if ( channel_layout_tag || ( num_channels > 2 ? num_identified_chans : channel_mask != 5 - num_channels ) ) {\n int bits = 0 , bmask ;\n for ( bmask = 1 ;\n bmask ;\n bmask <<= 1 ) if ( bmask & channel_mask ) ++ bits ;\n if ( ( channel_layout_tag & 0xff0000 ) || ( bits == num_channels && ! ( qmode & QMODE_REORDERED_CHANS ) ) ) {\n strncpy ( caf_chan_chunk_header . mChunkType , \"chan\" , sizeof ( caf_chan_chunk_header . mChunkType ) ) ;\n caf_chan_chunk_header . mChunkSize = sizeof ( caf_channel_layout ) ;\n WavpackNativeToBigEndian ( & caf_chan_chunk_header , CAFChunkHeaderFormat ) ;\n if ( ! DoWriteFile ( outfile , & caf_chan_chunk_header , sizeof ( caf_chan_chunk_header ) , & bcount ) || bcount != sizeof ( caf_chan_chunk_header ) ) return FALSE ;\n if ( channel_layout_tag ) {\n if ( debug_logging_mode ) error_line ( \"writing \\\"chan\\\" chunk with layout tag 0x%08x\" , channel_layout_tag ) ;\n caf_channel_layout . mChannelLayoutTag = channel_layout_tag ;\n caf_channel_layout . mChannelBitmap = 0 ;\n }\n else {\n if ( debug_logging_mode ) error_line ( \"writing \\\"chan\\\" chunk with UseChannelBitmap tag, bitmap = 0x%08x\" , channel_mask ) ;\n caf_channel_layout . mChannelLayoutTag = kCAFChannelLayoutTag_UseChannelBitmap ;\n caf_channel_layout . mChannelBitmap = channel_mask ;\n }\n caf_channel_layout . mNumberChannelDescriptions = 0 ;\n WavpackNativeToBigEndian ( & caf_channel_layout , CAFChannelLayoutFormat ) ;\n if ( ! DoWriteFile ( outfile , & caf_channel_layout , sizeof ( caf_channel_layout ) , & bcount ) || bcount != sizeof ( caf_channel_layout ) ) return FALSE ;\n }\n else {\n CAFChannelDescription caf_channel_description ;\n unsigned char * new_channel_order = NULL ;\n int i ;\n if ( debug_logging_mode ) error_line ( \"writing \\\"chan\\\" chunk with UseChannelDescriptions tag, bitmap = 0x%08x, reordered = %s\" , channel_mask , ( qmode & QMODE_REORDERED_CHANS ) ? \"yes\" : \"no\" ) ;\n if ( qmode & QMODE_REORDERED_CHANS ) {\n if ( ( int ) ( channel_layout_tag & 0xff ) <= num_channels ) {\n new_channel_order = malloc ( num_channels ) ;\n for ( i = 0 ;\n i < num_channels ;\n ++ i ) new_channel_order [ i ] = i ;\n WavpackGetChannelLayout ( wpc , new_channel_order ) ;\n }\n }\n strncpy ( caf_chan_chunk_header . mChunkType , \"chan\" , sizeof ( caf_chan_chunk_header . mChunkType ) ) ;\n caf_chan_chunk_header . mChunkSize = sizeof ( caf_channel_layout ) + sizeof ( caf_channel_description ) * num_channels ;\n WavpackNativeToBigEndian ( & caf_chan_chunk_header , CAFChunkHeaderFormat ) ;\n if ( ! DoWriteFile ( outfile , & caf_chan_chunk_header , sizeof ( caf_chan_chunk_header ) , & bcount ) || bcount != sizeof ( caf_chan_chunk_header ) ) return FALSE ;\n caf_channel_layout . mChannelLayoutTag = kCAFChannelLayoutTag_UseChannelDescriptions ;\n caf_channel_layout . mChannelBitmap = 0 ;\n caf_channel_layout . mNumberChannelDescriptions = num_channels ;\n WavpackNativeToBigEndian ( & caf_channel_layout , CAFChannelLayoutFormat ) ;\n if ( ! DoWriteFile ( outfile , & caf_channel_layout , sizeof ( caf_channel_layout ) , & bcount ) || bcount != sizeof ( caf_channel_layout ) ) return FALSE ;\n for ( i = 0 ;\n i < num_channels ;\n ++ i ) {\n unsigned char chan_id = new_channel_order ? channel_identities [ new_channel_order [ i ] ] : channel_identities [ i ] ;\n CLEAR ( caf_channel_description ) ;\n if ( ( chan_id >= 1 && chan_id <= 18 ) || ( chan_id >= 33 && chan_id <= 44 ) || ( chan_id >= 200 && chan_id <= 207 ) ) caf_channel_description . mChannelLabel = chan_id ;\n else if ( chan_id >= 221 && chan_id <= 225 ) caf_channel_description . mChannelLabel = chan_id + 80 ;\n if ( debug_logging_mode ) error_line ( \"chan %d --> %d\" , i + 1 , caf_channel_description . mChannelLabel ) ;\n WavpackNativeToBigEndian ( & caf_channel_description , CAFChannelDescriptionFormat ) ;\n if ( ! DoWriteFile ( outfile , & caf_channel_description , sizeof ( caf_channel_description ) , & bcount ) || bcount != sizeof ( caf_channel_description ) ) return FALSE ;\n }\n if ( new_channel_order ) free ( new_channel_order ) ;\n }\n }\n strncpy ( caf_data_chunk_header . mChunkType , \"data\" , sizeof ( caf_data_chunk_header . mChunkType ) ) ;\n if ( total_samples == - 1 ) caf_data_chunk_header . mChunkSize = - 1 ;\n else caf_data_chunk_header . mChunkSize = ( total_samples * bytes_per_sample * num_channels ) + sizeof ( mEditCount ) ;\n WavpackNativeToBigEndian ( & caf_data_chunk_header , CAFChunkHeaderFormat ) ;\n if ( ! DoWriteFile ( outfile , & caf_data_chunk_header , sizeof ( caf_data_chunk_header ) , & bcount ) || bcount != sizeof ( caf_data_chunk_header ) ) return FALSE ;\n mEditCount = 0 ;\n WavpackNativeToBigEndian ( & mEditCount , \"L\" ) ;\n if ( ! DoWriteFile ( outfile , & mEditCount , sizeof ( mEditCount ) , & bcount ) || bcount != sizeof ( mEditCount ) ) return FALSE ;\n free ( channel_identities ) ;\n return TRUE ;\n }"}
{"idx": 2861, "target": 1, "func": "static ossl_inline type * lh_ ## type ## _retrieve ( LHASH_OF ( type ) * lh , const type * d ) {\n return ( type * ) OPENSSL_LH_retrieve ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline int lh_ ## type ## _error ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_error ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _num_items ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_num_items ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _node_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _node_usage_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_usage_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING ) ;\n # ifdef _MSC_VER # pragma warning ( push ) # pragma warning ( disable : 4090 ) # endif DEFINE_LHASH_OF ( OPENSSL_CSTRING )"}
{"idx": 2862, "target": 0, "func": "static FILE_DCC_REC * dcc_resume_find ( int type , const char * nick , int port ) {\n GSList * tmp ;\n for ( tmp = dcc_conns ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n FILE_DCC_REC * dcc = tmp -> data ;\n if ( dcc -> type == type && ! dcc_is_connected ( dcc ) && dcc -> port == port && g_ascii_strcasecmp ( dcc -> nick , nick ) == 0 ) return dcc ;\n }\n return NULL ;\n }"}
{"idx": 2863, "target": 0, "func": "static int checkHttpTxnClientAddrGet ( SocketTest * test , void * data ) {\n uint16_t port ;\n uint16_t browser_port ;\n TSHttpTxn txnp = ( TSHttpTxn ) data ;\n sockaddr const * ptr = TSHttpTxnClientAddrGet ( txnp ) ;\n browser_port = test -> browser -> local_port ;\n if ( nullptr == ptr ) {\n SDK_RPRINT ( test -> regtest , \"TSHttpTxnClientClientAddrGet\" , \"TestCase2\" , TC_FAIL , \"TSHttpTxnClientAddrGet returned 0 pointer.\" ) ;\n test -> test_client_remote_port_get = false ;\n return TS_EVENT_CONTINUE ;\n }\n port = ats_ip_port_host_order ( ptr ) ;\n TSDebug ( UTDBG_TAG , \"Browser port = %x, Txn remote port = %x\" , browser_port , port ) ;\n if ( port == browser_port ) {\n SDK_RPRINT ( test -> regtest , \"TSHttpTxnClientAddrGet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test -> test_client_remote_port_get = true ;\n }\n else {\n SDK_RPRINT ( test -> regtest , \"TSHttpTxnClientAddrGet\" , \"TestCase1\" , TC_FAIL , \"Value's Mismatch. From Function: %d Expected Value: %d\" , port , browser_port ) ;\n test -> test_client_remote_port_get = false ;\n }\n return TS_EVENT_CONTINUE ;\n }"}
{"idx": 2864, "target": 1, "func": "static void vga_draw_line2d2 ( VGACommonState * s1 , uint8_t * d , const uint8_t * s , int width ) {\n uint32_t plane_mask , * palette , data , v ;\n int x ;\n palette = s1 -> last_palette ;\n plane_mask = mask16 [ s1 -> ar [ VGA_ATC_PLANE_ENABLE ] & 0xf ] ;\n width >>= 3 ;\n for ( x = 0 ;\n x < width ;\n x ++ ) {\n data = ( ( uint32_t * ) s ) [ 0 ] ;\n data &= plane_mask ;\n v = expand2 [ GET_PLANE ( data , 0 ) ] ;\n v |= expand2 [ GET_PLANE ( data , 2 ) ] << 2 ;\n PUT_PIXEL2 ( d , 0 , palette [ v >> 12 ] ) ;\n PUT_PIXEL2 ( d , 1 , palette [ ( v >> 8 ) & 0xf ] ) ;\n PUT_PIXEL2 ( d , 2 , palette [ ( v >> 4 ) & 0xf ] ) ;\n PUT_PIXEL2 ( d , 3 , palette [ ( v >> 0 ) & 0xf ] ) ;\n v = expand2 [ GET_PLANE ( data , 1 ) ] ;\n v |= expand2 [ GET_PLANE ( data , 3 ) ] << 2 ;\n PUT_PIXEL2 ( d , 4 , palette [ v >> 12 ] ) ;\n PUT_PIXEL2 ( d , 5 , palette [ ( v >> 8 ) & 0xf ] ) ;\n PUT_PIXEL2 ( d , 6 , palette [ ( v >> 4 ) & 0xf ] ) ;\n PUT_PIXEL2 ( d , 7 , palette [ ( v >> 0 ) & 0xf ] ) ;\n d += 64 ;\n s += 4 ;\n }\n }"}
{"idx": 2865, "target": 1, "func": "void vp9_idct32x32_1024_add_sse2 ( const int16_t * input , uint8_t * dest , int stride ) {\n const __m128i rounding = _mm_set1_epi32 ( DCT_CONST_ROUNDING ) ;\n const __m128i final_rounding = _mm_set1_epi16 ( 1 << 5 ) ;\n const __m128i stg1_0 = pair_set_epi16 ( cospi_31_64 , - cospi_1_64 ) ;\n const __m128i stg1_1 = pair_set_epi16 ( cospi_1_64 , cospi_31_64 ) ;\n const __m128i stg1_2 = pair_set_epi16 ( cospi_15_64 , - cospi_17_64 ) ;\n const __m128i stg1_3 = pair_set_epi16 ( cospi_17_64 , cospi_15_64 ) ;\n const __m128i stg1_4 = pair_set_epi16 ( cospi_23_64 , - cospi_9_64 ) ;\n const __m128i stg1_5 = pair_set_epi16 ( cospi_9_64 , cospi_23_64 ) ;\n const __m128i stg1_6 = pair_set_epi16 ( cospi_7_64 , - cospi_25_64 ) ;\n const __m128i stg1_7 = pair_set_epi16 ( cospi_25_64 , cospi_7_64 ) ;\n const __m128i stg1_8 = pair_set_epi16 ( cospi_27_64 , - cospi_5_64 ) ;\n const __m128i stg1_9 = pair_set_epi16 ( cospi_5_64 , cospi_27_64 ) ;\n const __m128i stg1_10 = pair_set_epi16 ( cospi_11_64 , - cospi_21_64 ) ;\n const __m128i stg1_11 = pair_set_epi16 ( cospi_21_64 , cospi_11_64 ) ;\n const __m128i stg1_12 = pair_set_epi16 ( cospi_19_64 , - cospi_13_64 ) ;\n const __m128i stg1_13 = pair_set_epi16 ( cospi_13_64 , cospi_19_64 ) ;\n const __m128i stg1_14 = pair_set_epi16 ( cospi_3_64 , - cospi_29_64 ) ;\n const __m128i stg1_15 = pair_set_epi16 ( cospi_29_64 , cospi_3_64 ) ;\n const __m128i stg2_0 = pair_set_epi16 ( cospi_30_64 , - cospi_2_64 ) ;\n const __m128i stg2_1 = pair_set_epi16 ( cospi_2_64 , cospi_30_64 ) ;\n const __m128i stg2_2 = pair_set_epi16 ( cospi_14_64 , - cospi_18_64 ) ;\n const __m128i stg2_3 = pair_set_epi16 ( cospi_18_64 , cospi_14_64 ) ;\n const __m128i stg2_4 = pair_set_epi16 ( cospi_22_64 , - cospi_10_64 ) ;\n const __m128i stg2_5 = pair_set_epi16 ( cospi_10_64 , cospi_22_64 ) ;\n const __m128i stg2_6 = pair_set_epi16 ( cospi_6_64 , - cospi_26_64 ) ;\n const __m128i stg2_7 = pair_set_epi16 ( cospi_26_64 , cospi_6_64 ) ;\n const __m128i stg3_0 = pair_set_epi16 ( cospi_28_64 , - cospi_4_64 ) ;\n const __m128i stg3_1 = pair_set_epi16 ( cospi_4_64 , cospi_28_64 ) ;\n const __m128i stg3_2 = pair_set_epi16 ( cospi_12_64 , - cospi_20_64 ) ;\n const __m128i stg3_3 = pair_set_epi16 ( cospi_20_64 , cospi_12_64 ) ;\n const __m128i stg3_4 = pair_set_epi16 ( - cospi_4_64 , cospi_28_64 ) ;\n const __m128i stg3_5 = pair_set_epi16 ( cospi_28_64 , cospi_4_64 ) ;\n const __m128i stg3_6 = pair_set_epi16 ( - cospi_28_64 , - cospi_4_64 ) ;\n const __m128i stg3_8 = pair_set_epi16 ( - cospi_20_64 , cospi_12_64 ) ;\n const __m128i stg3_9 = pair_set_epi16 ( cospi_12_64 , cospi_20_64 ) ;\n const __m128i stg3_10 = pair_set_epi16 ( - cospi_12_64 , - cospi_20_64 ) ;\n const __m128i stg4_0 = pair_set_epi16 ( cospi_16_64 , cospi_16_64 ) ;\n const __m128i stg4_1 = pair_set_epi16 ( cospi_16_64 , - cospi_16_64 ) ;\n const __m128i stg4_2 = pair_set_epi16 ( cospi_24_64 , - cospi_8_64 ) ;\n const __m128i stg4_3 = pair_set_epi16 ( cospi_8_64 , cospi_24_64 ) ;\n const __m128i stg4_4 = pair_set_epi16 ( - cospi_8_64 , cospi_24_64 ) ;\n const __m128i stg4_5 = pair_set_epi16 ( cospi_24_64 , cospi_8_64 ) ;\n const __m128i stg4_6 = pair_set_epi16 ( - cospi_24_64 , - cospi_8_64 ) ;\n const __m128i stg6_0 = pair_set_epi16 ( - cospi_16_64 , cospi_16_64 ) ;\n __m128i in [ 32 ] , col [ 128 ] , zero_idx [ 16 ] ;\n __m128i stp1_0 , stp1_1 , stp1_2 , stp1_3 , stp1_4 , stp1_5 , stp1_6 , stp1_7 , stp1_8 , stp1_9 , stp1_10 , stp1_11 , stp1_12 , stp1_13 , stp1_14 , stp1_15 , stp1_16 , stp1_17 , stp1_18 , stp1_19 , stp1_20 , stp1_21 , stp1_22 , stp1_23 , stp1_24 , stp1_25 , stp1_26 , stp1_27 , stp1_28 , stp1_29 , stp1_30 , stp1_31 ;\n __m128i stp2_0 , stp2_1 , stp2_2 , stp2_3 , stp2_4 , stp2_5 , stp2_6 , stp2_7 , stp2_8 , stp2_9 , stp2_10 , stp2_11 , stp2_12 , stp2_13 , stp2_14 , stp2_15 , stp2_16 , stp2_17 , stp2_18 , stp2_19 , stp2_20 , stp2_21 , stp2_22 , stp2_23 , stp2_24 , stp2_25 , stp2_26 , stp2_27 , stp2_28 , stp2_29 , stp2_30 , stp2_31 ;\n __m128i tmp0 , tmp1 , tmp2 , tmp3 , tmp4 , tmp5 , tmp6 , tmp7 ;\n int i , j , i32 ;\n int zero_flag [ 2 ] ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n i32 = ( i << 5 ) ;\n LOAD_DQCOEFF ( in [ 0 ] , input ) ;\n LOAD_DQCOEFF ( in [ 8 ] , input ) ;\n LOAD_DQCOEFF ( in [ 16 ] , input ) ;\n LOAD_DQCOEFF ( in [ 24 ] , input ) ;\n LOAD_DQCOEFF ( in [ 1 ] , input ) ;\n LOAD_DQCOEFF ( in [ 9 ] , input ) ;\n LOAD_DQCOEFF ( in [ 17 ] , input ) ;\n LOAD_DQCOEFF ( in [ 25 ] , input ) ;\n LOAD_DQCOEFF ( in [ 2 ] , input ) ;\n LOAD_DQCOEFF ( in [ 10 ] , input ) ;\n LOAD_DQCOEFF ( in [ 18 ] , input ) ;\n LOAD_DQCOEFF ( in [ 26 ] , input ) ;\n LOAD_DQCOEFF ( in [ 3 ] , input ) ;\n LOAD_DQCOEFF ( in [ 11 ] , input ) ;\n LOAD_DQCOEFF ( in [ 19 ] , input ) ;\n LOAD_DQCOEFF ( in [ 27 ] , input ) ;\n LOAD_DQCOEFF ( in [ 4 ] , input ) ;\n LOAD_DQCOEFF ( in [ 12 ] , input ) ;\n LOAD_DQCOEFF ( in [ 20 ] , input ) ;\n LOAD_DQCOEFF ( in [ 28 ] , input ) ;\n LOAD_DQCOEFF ( in [ 5 ] , input ) ;\n LOAD_DQCOEFF ( in [ 13 ] , input ) ;\n LOAD_DQCOEFF ( in [ 21 ] , input ) ;\n LOAD_DQCOEFF ( in [ 29 ] , input ) ;\n LOAD_DQCOEFF ( in [ 6 ] , input ) ;\n LOAD_DQCOEFF ( in [ 14 ] , input ) ;\n LOAD_DQCOEFF ( in [ 22 ] , input ) ;\n LOAD_DQCOEFF ( in [ 30 ] , input ) ;\n LOAD_DQCOEFF ( in [ 7 ] , input ) ;\n LOAD_DQCOEFF ( in [ 15 ] , input ) ;\n LOAD_DQCOEFF ( in [ 23 ] , input ) ;\n LOAD_DQCOEFF ( in [ 31 ] , input ) ;\n zero_idx [ 0 ] = _mm_or_si128 ( in [ 0 ] , in [ 1 ] ) ;\n zero_idx [ 1 ] = _mm_or_si128 ( in [ 2 ] , in [ 3 ] ) ;\n zero_idx [ 2 ] = _mm_or_si128 ( in [ 4 ] , in [ 5 ] ) ;\n zero_idx [ 3 ] = _mm_or_si128 ( in [ 6 ] , in [ 7 ] ) ;\n zero_idx [ 4 ] = _mm_or_si128 ( in [ 8 ] , in [ 9 ] ) ;\n zero_idx [ 5 ] = _mm_or_si128 ( in [ 10 ] , in [ 11 ] ) ;\n zero_idx [ 6 ] = _mm_or_si128 ( in [ 12 ] , in [ 13 ] ) ;\n zero_idx [ 7 ] = _mm_or_si128 ( in [ 14 ] , in [ 15 ] ) ;\n zero_idx [ 8 ] = _mm_or_si128 ( in [ 16 ] , in [ 17 ] ) ;\n zero_idx [ 9 ] = _mm_or_si128 ( in [ 18 ] , in [ 19 ] ) ;\n zero_idx [ 10 ] = _mm_or_si128 ( in [ 20 ] , in [ 21 ] ) ;\n zero_idx [ 11 ] = _mm_or_si128 ( in [ 22 ] , in [ 23 ] ) ;\n zero_idx [ 12 ] = _mm_or_si128 ( in [ 24 ] , in [ 25 ] ) ;\n zero_idx [ 13 ] = _mm_or_si128 ( in [ 26 ] , in [ 27 ] ) ;\n zero_idx [ 14 ] = _mm_or_si128 ( in [ 28 ] , in [ 29 ] ) ;\n zero_idx [ 15 ] = _mm_or_si128 ( in [ 30 ] , in [ 31 ] ) ;\n zero_idx [ 0 ] = _mm_or_si128 ( zero_idx [ 0 ] , zero_idx [ 1 ] ) ;\n zero_idx [ 1 ] = _mm_or_si128 ( zero_idx [ 2 ] , zero_idx [ 3 ] ) ;\n zero_idx [ 2 ] = _mm_or_si128 ( zero_idx [ 4 ] , zero_idx [ 5 ] ) ;\n zero_idx [ 3 ] = _mm_or_si128 ( zero_idx [ 6 ] , zero_idx [ 7 ] ) ;\n zero_idx [ 4 ] = _mm_or_si128 ( zero_idx [ 8 ] , zero_idx [ 9 ] ) ;\n zero_idx [ 5 ] = _mm_or_si128 ( zero_idx [ 10 ] , zero_idx [ 11 ] ) ;\n zero_idx [ 6 ] = _mm_or_si128 ( zero_idx [ 12 ] , zero_idx [ 13 ] ) ;\n zero_idx [ 7 ] = _mm_or_si128 ( zero_idx [ 14 ] , zero_idx [ 15 ] ) ;\n zero_idx [ 8 ] = _mm_or_si128 ( zero_idx [ 0 ] , zero_idx [ 1 ] ) ;\n zero_idx [ 9 ] = _mm_or_si128 ( zero_idx [ 2 ] , zero_idx [ 3 ] ) ;\n zero_idx [ 10 ] = _mm_or_si128 ( zero_idx [ 4 ] , zero_idx [ 5 ] ) ;\n zero_idx [ 11 ] = _mm_or_si128 ( zero_idx [ 6 ] , zero_idx [ 7 ] ) ;\n zero_idx [ 12 ] = _mm_or_si128 ( zero_idx [ 8 ] , zero_idx [ 9 ] ) ;\n zero_idx [ 13 ] = _mm_or_si128 ( zero_idx [ 10 ] , zero_idx [ 11 ] ) ;\n zero_idx [ 14 ] = _mm_or_si128 ( zero_idx [ 12 ] , zero_idx [ 13 ] ) ;\n zero_idx [ 0 ] = _mm_unpackhi_epi64 ( zero_idx [ 14 ] , zero_idx [ 14 ] ) ;\n zero_idx [ 1 ] = _mm_or_si128 ( zero_idx [ 0 ] , zero_idx [ 14 ] ) ;\n zero_idx [ 2 ] = _mm_srli_epi64 ( zero_idx [ 1 ] , 32 ) ;\n zero_flag [ 0 ] = _mm_cvtsi128_si32 ( zero_idx [ 1 ] ) ;\n zero_flag [ 1 ] = _mm_cvtsi128_si32 ( zero_idx [ 2 ] ) ;\n if ( ! zero_flag [ 0 ] && ! zero_flag [ 1 ] ) {\n col [ i32 + 0 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 1 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 2 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 3 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 4 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 5 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 6 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 7 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 8 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 9 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 10 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 11 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 12 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 13 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 14 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 15 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 16 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 17 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 18 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 19 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 20 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 21 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 22 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 23 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 24 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 25 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 26 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 27 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 28 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 29 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 30 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 31 ] = _mm_setzero_si128 ( ) ;\n continue ;\n }\n array_transpose_8x8 ( in , in ) ;\n array_transpose_8x8 ( in + 8 , in + 8 ) ;\n array_transpose_8x8 ( in + 16 , in + 16 ) ;\n array_transpose_8x8 ( in + 24 , in + 24 ) ;\n IDCT32 col [ i32 + 0 ] = _mm_add_epi16 ( stp1_0 , stp1_31 ) ;\n col [ i32 + 1 ] = _mm_add_epi16 ( stp1_1 , stp1_30 ) ;\n col [ i32 + 2 ] = _mm_add_epi16 ( stp1_2 , stp1_29 ) ;\n col [ i32 + 3 ] = _mm_add_epi16 ( stp1_3 , stp1_28 ) ;\n col [ i32 + 4 ] = _mm_add_epi16 ( stp1_4 , stp1_27 ) ;\n col [ i32 + 5 ] = _mm_add_epi16 ( stp1_5 , stp1_26 ) ;\n col [ i32 + 6 ] = _mm_add_epi16 ( stp1_6 , stp1_25 ) ;\n col [ i32 + 7 ] = _mm_add_epi16 ( stp1_7 , stp1_24 ) ;\n col [ i32 + 8 ] = _mm_add_epi16 ( stp1_8 , stp1_23 ) ;\n col [ i32 + 9 ] = _mm_add_epi16 ( stp1_9 , stp1_22 ) ;\n col [ i32 + 10 ] = _mm_add_epi16 ( stp1_10 , stp1_21 ) ;\n col [ i32 + 11 ] = _mm_add_epi16 ( stp1_11 , stp1_20 ) ;\n col [ i32 + 12 ] = _mm_add_epi16 ( stp1_12 , stp1_19 ) ;\n col [ i32 + 13 ] = _mm_add_epi16 ( stp1_13 , stp1_18 ) ;\n col [ i32 + 14 ] = _mm_add_epi16 ( stp1_14 , stp1_17 ) ;\n col [ i32 + 15 ] = _mm_add_epi16 ( stp1_15 , stp1_16 ) ;\n col [ i32 + 16 ] = _mm_sub_epi16 ( stp1_15 , stp1_16 ) ;\n col [ i32 + 17 ] = _mm_sub_epi16 ( stp1_14 , stp1_17 ) ;\n col [ i32 + 18 ] = _mm_sub_epi16 ( stp1_13 , stp1_18 ) ;\n col [ i32 + 19 ] = _mm_sub_epi16 ( stp1_12 , stp1_19 ) ;\n col [ i32 + 20 ] = _mm_sub_epi16 ( stp1_11 , stp1_20 ) ;\n col [ i32 + 21 ] = _mm_sub_epi16 ( stp1_10 , stp1_21 ) ;\n col [ i32 + 22 ] = _mm_sub_epi16 ( stp1_9 , stp1_22 ) ;\n col [ i32 + 23 ] = _mm_sub_epi16 ( stp1_8 , stp1_23 ) ;\n col [ i32 + 24 ] = _mm_sub_epi16 ( stp1_7 , stp1_24 ) ;\n col [ i32 + 25 ] = _mm_sub_epi16 ( stp1_6 , stp1_25 ) ;\n col [ i32 + 26 ] = _mm_sub_epi16 ( stp1_5 , stp1_26 ) ;\n col [ i32 + 27 ] = _mm_sub_epi16 ( stp1_4 , stp1_27 ) ;\n col [ i32 + 28 ] = _mm_sub_epi16 ( stp1_3 , stp1_28 ) ;\n col [ i32 + 29 ] = _mm_sub_epi16 ( stp1_2 , stp1_29 ) ;\n col [ i32 + 30 ] = _mm_sub_epi16 ( stp1_1 , stp1_30 ) ;\n col [ i32 + 31 ] = _mm_sub_epi16 ( stp1_0 , stp1_31 ) ;\n }\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n const __m128i zero = _mm_setzero_si128 ( ) ;\n j = i << 3 ;\n array_transpose_8x8 ( col + j , in ) ;\n array_transpose_8x8 ( col + j + 32 , in + 8 ) ;\n array_transpose_8x8 ( col + j + 64 , in + 16 ) ;\n array_transpose_8x8 ( col + j + 96 , in + 24 ) ;\n IDCT32 in [ 0 ] = _mm_add_epi16 ( stp1_0 , stp1_31 ) ;\n in [ 1 ] = _mm_add_epi16 ( stp1_1 , stp1_30 ) ;\n in [ 2 ] = _mm_add_epi16 ( stp1_2 , stp1_29 ) ;\n in [ 3 ] = _mm_add_epi16 ( stp1_3 , stp1_28 ) ;\n in [ 4 ] = _mm_add_epi16 ( stp1_4 , stp1_27 ) ;\n in [ 5 ] = _mm_add_epi16 ( stp1_5 , stp1_26 ) ;\n in [ 6 ] = _mm_add_epi16 ( stp1_6 , stp1_25 ) ;\n in [ 7 ] = _mm_add_epi16 ( stp1_7 , stp1_24 ) ;\n in [ 8 ] = _mm_add_epi16 ( stp1_8 , stp1_23 ) ;\n in [ 9 ] = _mm_add_epi16 ( stp1_9 , stp1_22 ) ;\n in [ 10 ] = _mm_add_epi16 ( stp1_10 , stp1_21 ) ;\n in [ 11 ] = _mm_add_epi16 ( stp1_11 , stp1_20 ) ;\n in [ 12 ] = _mm_add_epi16 ( stp1_12 , stp1_19 ) ;\n in [ 13 ] = _mm_add_epi16 ( stp1_13 , stp1_18 ) ;\n in [ 14 ] = _mm_add_epi16 ( stp1_14 , stp1_17 ) ;\n in [ 15 ] = _mm_add_epi16 ( stp1_15 , stp1_16 ) ;\n in [ 16 ] = _mm_sub_epi16 ( stp1_15 , stp1_16 ) ;\n in [ 17 ] = _mm_sub_epi16 ( stp1_14 , stp1_17 ) ;\n in [ 18 ] = _mm_sub_epi16 ( stp1_13 , stp1_18 ) ;\n in [ 19 ] = _mm_sub_epi16 ( stp1_12 , stp1_19 ) ;\n in [ 20 ] = _mm_sub_epi16 ( stp1_11 , stp1_20 ) ;\n in [ 21 ] = _mm_sub_epi16 ( stp1_10 , stp1_21 ) ;\n in [ 22 ] = _mm_sub_epi16 ( stp1_9 , stp1_22 ) ;\n in [ 23 ] = _mm_sub_epi16 ( stp1_8 , stp1_23 ) ;\n in [ 24 ] = _mm_sub_epi16 ( stp1_7 , stp1_24 ) ;\n in [ 25 ] = _mm_sub_epi16 ( stp1_6 , stp1_25 ) ;\n in [ 26 ] = _mm_sub_epi16 ( stp1_5 , stp1_26 ) ;\n in [ 27 ] = _mm_sub_epi16 ( stp1_4 , stp1_27 ) ;\n in [ 28 ] = _mm_sub_epi16 ( stp1_3 , stp1_28 ) ;\n in [ 29 ] = _mm_sub_epi16 ( stp1_2 , stp1_29 ) ;\n in [ 30 ] = _mm_sub_epi16 ( stp1_1 , stp1_30 ) ;\n in [ 31 ] = _mm_sub_epi16 ( stp1_0 , stp1_31 ) ;\n in [ 0 ] = _mm_adds_epi16 ( in [ 0 ] , final_rounding ) ;\n in [ 1 ] = _mm_adds_epi16 ( in [ 1 ] , final_rounding ) ;\n in [ 2 ] = _mm_adds_epi16 ( in [ 2 ] , final_rounding ) ;\n in [ 3 ] = _mm_adds_epi16 ( in [ 3 ] , final_rounding ) ;\n in [ 4 ] = _mm_adds_epi16 ( in [ 4 ] , final_rounding ) ;\n in [ 5 ] = _mm_adds_epi16 ( in [ 5 ] , final_rounding ) ;\n in [ 6 ] = _mm_adds_epi16 ( in [ 6 ] , final_rounding ) ;\n in [ 7 ] = _mm_adds_epi16 ( in [ 7 ] , final_rounding ) ;\n in [ 8 ] = _mm_adds_epi16 ( in [ 8 ] , final_rounding ) ;\n in [ 9 ] = _mm_adds_epi16 ( in [ 9 ] , final_rounding ) ;\n in [ 10 ] = _mm_adds_epi16 ( in [ 10 ] , final_rounding ) ;\n in [ 11 ] = _mm_adds_epi16 ( in [ 11 ] , final_rounding ) ;\n in [ 12 ] = _mm_adds_epi16 ( in [ 12 ] , final_rounding ) ;\n in [ 13 ] = _mm_adds_epi16 ( in [ 13 ] , final_rounding ) ;\n in [ 14 ] = _mm_adds_epi16 ( in [ 14 ] , final_rounding ) ;\n in [ 15 ] = _mm_adds_epi16 ( in [ 15 ] , final_rounding ) ;\n in [ 16 ] = _mm_adds_epi16 ( in [ 16 ] , final_rounding ) ;\n in [ 17 ] = _mm_adds_epi16 ( in [ 17 ] , final_rounding ) ;\n in [ 18 ] = _mm_adds_epi16 ( in [ 18 ] , final_rounding ) ;\n in [ 19 ] = _mm_adds_epi16 ( in [ 19 ] , final_rounding ) ;\n in [ 20 ] = _mm_adds_epi16 ( in [ 20 ] , final_rounding ) ;\n in [ 21 ] = _mm_adds_epi16 ( in [ 21 ] , final_rounding ) ;\n in [ 22 ] = _mm_adds_epi16 ( in [ 22 ] , final_rounding ) ;\n in [ 23 ] = _mm_adds_epi16 ( in [ 23 ] , final_rounding ) ;\n in [ 24 ] = _mm_adds_epi16 ( in [ 24 ] , final_rounding ) ;\n in [ 25 ] = _mm_adds_epi16 ( in [ 25 ] , final_rounding ) ;\n in [ 26 ] = _mm_adds_epi16 ( in [ 26 ] , final_rounding ) ;\n in [ 27 ] = _mm_adds_epi16 ( in [ 27 ] , final_rounding ) ;\n in [ 28 ] = _mm_adds_epi16 ( in [ 28 ] , final_rounding ) ;\n in [ 29 ] = _mm_adds_epi16 ( in [ 29 ] , final_rounding ) ;\n in [ 30 ] = _mm_adds_epi16 ( in [ 30 ] , final_rounding ) ;\n in [ 31 ] = _mm_adds_epi16 ( in [ 31 ] , final_rounding ) ;\n in [ 0 ] = _mm_srai_epi16 ( in [ 0 ] , 6 ) ;\n in [ 1 ] = _mm_srai_epi16 ( in [ 1 ] , 6 ) ;\n in [ 2 ] = _mm_srai_epi16 ( in [ 2 ] , 6 ) ;\n in [ 3 ] = _mm_srai_epi16 ( in [ 3 ] , 6 ) ;\n in [ 4 ] = _mm_srai_epi16 ( in [ 4 ] , 6 ) ;\n in [ 5 ] = _mm_srai_epi16 ( in [ 5 ] , 6 ) ;\n in [ 6 ] = _mm_srai_epi16 ( in [ 6 ] , 6 ) ;\n in [ 7 ] = _mm_srai_epi16 ( in [ 7 ] , 6 ) ;\n in [ 8 ] = _mm_srai_epi16 ( in [ 8 ] , 6 ) ;\n in [ 9 ] = _mm_srai_epi16 ( in [ 9 ] , 6 ) ;\n in [ 10 ] = _mm_srai_epi16 ( in [ 10 ] , 6 ) ;\n in [ 11 ] = _mm_srai_epi16 ( in [ 11 ] , 6 ) ;\n in [ 12 ] = _mm_srai_epi16 ( in [ 12 ] , 6 ) ;\n in [ 13 ] = _mm_srai_epi16 ( in [ 13 ] , 6 ) ;\n in [ 14 ] = _mm_srai_epi16 ( in [ 14 ] , 6 ) ;\n in [ 15 ] = _mm_srai_epi16 ( in [ 15 ] , 6 ) ;\n in [ 16 ] = _mm_srai_epi16 ( in [ 16 ] , 6 ) ;\n in [ 17 ] = _mm_srai_epi16 ( in [ 17 ] , 6 ) ;\n in [ 18 ] = _mm_srai_epi16 ( in [ 18 ] , 6 ) ;\n in [ 19 ] = _mm_srai_epi16 ( in [ 19 ] , 6 ) ;\n in [ 20 ] = _mm_srai_epi16 ( in [ 20 ] , 6 ) ;\n in [ 21 ] = _mm_srai_epi16 ( in [ 21 ] , 6 ) ;\n in [ 22 ] = _mm_srai_epi16 ( in [ 22 ] , 6 ) ;\n in [ 23 ] = _mm_srai_epi16 ( in [ 23 ] , 6 ) ;\n in [ 24 ] = _mm_srai_epi16 ( in [ 24 ] , 6 ) ;\n in [ 25 ] = _mm_srai_epi16 ( in [ 25 ] , 6 ) ;\n in [ 26 ] = _mm_srai_epi16 ( in [ 26 ] , 6 ) ;\n in [ 27 ] = _mm_srai_epi16 ( in [ 27 ] , 6 ) ;\n in [ 28 ] = _mm_srai_epi16 ( in [ 28 ] , 6 ) ;\n in [ 29 ] = _mm_srai_epi16 ( in [ 29 ] , 6 ) ;\n in [ 30 ] = _mm_srai_epi16 ( in [ 30 ] , 6 ) ;\n in [ 31 ] = _mm_srai_epi16 ( in [ 31 ] , 6 ) ;\n RECON_AND_STORE ( dest , in [ 0 ] ) ;\n RECON_AND_STORE ( dest , in [ 1 ] ) ;\n RECON_AND_STORE ( dest , in [ 2 ] ) ;\n RECON_AND_STORE ( dest , in [ 3 ] ) ;\n RECON_AND_STORE ( dest , in [ 4 ] ) ;\n RECON_AND_STORE ( dest , in [ 5 ] ) ;\n RECON_AND_STORE ( dest , in [ 6 ] ) ;\n RECON_AND_STORE ( dest , in [ 7 ] ) ;\n RECON_AND_STORE ( dest , in [ 8 ] ) ;\n RECON_AND_STORE ( dest , in [ 9 ] ) ;\n RECON_AND_STORE ( dest , in [ 10 ] ) ;\n RECON_AND_STORE ( dest , in [ 11 ] ) ;\n RECON_AND_STORE ( dest , in [ 12 ] ) ;\n RECON_AND_STORE ( dest , in [ 13 ] ) ;\n RECON_AND_STORE ( dest , in [ 14 ] ) ;\n RECON_AND_STORE ( dest , in [ 15 ] ) ;\n RECON_AND_STORE ( dest , in [ 16 ] ) ;\n RECON_AND_STORE ( dest , in [ 17 ] ) ;\n RECON_AND_STORE ( dest , in [ 18 ] ) ;\n RECON_AND_STORE ( dest , in [ 19 ] ) ;\n RECON_AND_STORE ( dest , in [ 20 ] ) ;\n RECON_AND_STORE ( dest , in [ 21 ] ) ;\n RECON_AND_STORE ( dest , in [ 22 ] ) ;\n RECON_AND_STORE ( dest , in [ 23 ] ) ;\n RECON_AND_STORE ( dest , in [ 24 ] ) ;\n RECON_AND_STORE ( dest , in [ 25 ] ) ;\n RECON_AND_STORE ( dest , in [ 26 ] ) ;\n RECON_AND_STORE ( dest , in [ 27 ] ) ;\n RECON_AND_STORE ( dest , in [ 28 ] ) ;\n RECON_AND_STORE ( dest , in [ 29 ] ) ;\n RECON_AND_STORE ( dest , in [ 30 ] ) ;\n RECON_AND_STORE ( dest , in [ 31 ] ) ;\n dest += 8 - ( stride * 32 ) ;\n }\n }"}
{"idx": 2866, "target": 0, "func": "static bool parse_authorityInfoAccess ( chunk_t blob , int level0 , private_x509_cert_t * this ) {\n asn1_parser_t * parser ;\n chunk_t object ;\n int objectID ;\n int accessMethod = OID_UNKNOWN ;\n bool success = FALSE ;\n parser = asn1_parser_create ( authInfoAccessObjects , blob ) ;\n parser -> set_top_level ( parser , level0 ) ;\n while ( parser -> iterate ( parser , & objectID , & object ) ) {\n switch ( objectID ) {\n case AUTH_INFO_ACCESS_METHOD : accessMethod = asn1_known_oid ( object ) ;\n break ;\n case AUTH_INFO_ACCESS_LOCATION : {\n switch ( accessMethod ) {\n case OID_OCSP : case OID_CA_ISSUERS : {\n identification_t * id ;\n char * uri ;\n id = parse_generalName ( object , parser -> get_level ( parser ) + 1 ) ;\n if ( id == NULL ) {\n goto end ;\n }\n DBG2 ( DBG_ASN , \" '%Y'\" , id ) ;\n if ( accessMethod == OID_OCSP && gn_to_string ( id , & uri ) ) {\n this -> ocsp_uris -> insert_last ( this -> ocsp_uris , uri ) ;\n }\n id -> destroy ( id ) ;\n }\n break ;\n default : break ;\n }\n break ;\n }\n default : break ;\n }\n }\n success = parser -> success ( parser ) ;\n end : parser -> destroy ( parser ) ;\n return success ;\n }"}
{"idx": 2867, "target": 0, "func": "void proto_free_deregistered_fields ( void ) {\n expert_free_deregistered_expertinfos ( ) ;\n g_ptr_array_foreach ( deregistered_fields , free_deregistered_field , NULL ) ;\n g_ptr_array_free ( deregistered_fields , TRUE ) ;\n deregistered_fields = g_ptr_array_new ( ) ;\n g_ptr_array_foreach ( deregistered_data , free_deregistered_data , NULL ) ;\n g_ptr_array_free ( deregistered_data , TRUE ) ;\n deregistered_data = g_ptr_array_new ( ) ;\n }"}
{"idx": 2868, "target": 0, "func": "static void evhttp_send_done ( struct evhttp_connection * evcon , void * arg ) {\n int need_close ;\n struct evhttp_request * req = TAILQ_FIRST ( & evcon -> requests ) ;\n TAILQ_REMOVE ( & evcon -> requests , req , next ) ;\n evhttp_connection_stop_detectclose ( evcon ) ;\n need_close = ( req -> minor == 0 && ! evhttp_is_connection_keepalive ( req -> input_headers ) ) || evhttp_is_connection_close ( req -> flags , req -> input_headers ) || evhttp_is_connection_close ( req -> flags , req -> output_headers ) ;\n assert ( req -> flags & EVHTTP_REQ_OWN_CONNECTION ) ;\n evhttp_request_free ( req ) ;\n if ( need_close ) {\n evhttp_connection_free ( evcon ) ;\n return ;\n }\n if ( evhttp_associate_new_request_with_connection ( evcon ) == - 1 ) evhttp_connection_free ( evcon ) ;\n }"}
{"idx": 2869, "target": 0, "func": "int main ( int argc , char * * argv ) {\n VpxVideoWriter * outfile [ VPX_TS_MAX_LAYERS ] = {\n NULL }\n ;\n vpx_codec_ctx_t codec ;\n vpx_codec_enc_cfg_t cfg ;\n int frame_cnt = 0 ;\n vpx_image_t raw ;\n vpx_codec_err_t res ;\n unsigned int width ;\n unsigned int height ;\n int speed ;\n int frame_avail ;\n int got_data ;\n int flags = 0 ;\n unsigned int i ;\n int pts = 0 ;\n int frame_duration = 1 ;\n int layering_mode = 0 ;\n int layer_flags [ VPX_TS_MAX_PERIODICITY ] = {\n 0 }\n ;\n int flag_periodicity = 1 ;\n vpx_svc_layer_id_t layer_id = {\n 0 , 0 }\n ;\n const VpxInterface * encoder = NULL ;\n FILE * infile = NULL ;\n struct RateControlMetrics rc ;\n int64_t cx_time = 0 ;\n exec_name = argv [ 0 ] ;\n if ( argc < 11 ) {\n die ( \"Usage: %s <infile> <outfile> <codec_type(vp8/vp9)> <width> <height> \" \"<rate_num> <rate_den> <speed> <frame_drop_threshold> <mode> \" \"<Rate_0> ... <Rate_nlayers-1> \\n\" , argv [ 0 ] ) ;\n }\n encoder = get_vpx_encoder_by_name ( argv [ 3 ] ) ;\n if ( ! encoder ) die ( \"Unsupported codec.\" ) ;\n printf ( \"Using %s\\n\" , vpx_codec_iface_name ( encoder -> codec_interface ( ) ) ) ;\n width = strtol ( argv [ 4 ] , NULL , 0 ) ;\n height = strtol ( argv [ 5 ] , NULL , 0 ) ;\n if ( width < 16 || width % 2 || height < 16 || height % 2 ) {\n die ( \"Invalid resolution: %d x %d\" , width , height ) ;\n }\n layering_mode = strtol ( argv [ 10 ] , NULL , 0 ) ;\n if ( layering_mode < 0 || layering_mode > 12 ) {\n die ( \"Invalid layering mode (0..12) %s\" , argv [ 10 ] ) ;\n }\n if ( argc != 11 + mode_to_num_layers [ layering_mode ] ) {\n die ( \"Invalid number of arguments\" ) ;\n }\n if ( ! vpx_img_alloc ( & raw , VPX_IMG_FMT_I420 , width , height , 32 ) ) {\n die ( \"Failed to allocate image\" , width , height ) ;\n }\n res = vpx_codec_enc_config_default ( encoder -> codec_interface ( ) , & cfg , 0 ) ;\n if ( res ) {\n printf ( \"Failed to get config: %s\\n\" , vpx_codec_err_to_string ( res ) ) ;\n return EXIT_FAILURE ;\n }\n cfg . g_w = width ;\n cfg . g_h = height ;\n cfg . g_timebase . num = strtol ( argv [ 6 ] , NULL , 0 ) ;\n cfg . g_timebase . den = strtol ( argv [ 7 ] , NULL , 0 ) ;\n speed = strtol ( argv [ 8 ] , NULL , 0 ) ;\n if ( speed < 0 ) {\n die ( \"Invalid speed setting: must be positive\" ) ;\n }\n for ( i = 11 ;\n ( int ) i < 11 + mode_to_num_layers [ layering_mode ] ;\n ++ i ) {\n cfg . ts_target_bitrate [ i - 11 ] = strtol ( argv [ i ] , NULL , 0 ) ;\n }\n cfg . rc_dropframe_thresh = strtol ( argv [ 9 ] , NULL , 0 ) ;\n cfg . rc_end_usage = VPX_CBR ;\n cfg . rc_resize_allowed = 0 ;\n cfg . rc_min_quantizer = 2 ;\n cfg . rc_max_quantizer = 56 ;\n cfg . rc_undershoot_pct = 50 ;\n cfg . rc_overshoot_pct = 50 ;\n cfg . rc_buf_initial_sz = 500 ;\n cfg . rc_buf_optimal_sz = 600 ;\n cfg . rc_buf_sz = 1000 ;\n cfg . g_error_resilient = 1 ;\n cfg . g_lag_in_frames = 0 ;\n cfg . kf_mode = VPX_KF_AUTO ;\n cfg . kf_min_dist = cfg . kf_max_dist = 3000 ;\n set_temporal_layer_pattern ( layering_mode , & cfg , layer_flags , & flag_periodicity ) ;\n set_rate_control_metrics ( & rc , & cfg ) ;\n cfg . rc_target_bitrate = cfg . ts_target_bitrate [ cfg . ts_number_layers - 1 ] ;\n if ( ! ( infile = fopen ( argv [ 1 ] , \"rb\" ) ) ) {\n die ( \"Failed to open %s for reading\" , argv [ 1 ] ) ;\n }\n for ( i = 0 ;\n i < cfg . ts_number_layers ;\n ++ i ) {\n char file_name [ PATH_MAX ] ;\n VpxVideoInfo info ;\n info . codec_fourcc = encoder -> fourcc ;\n info . frame_width = cfg . g_w ;\n info . frame_height = cfg . g_h ;\n info . time_base . numerator = cfg . g_timebase . num ;\n info . time_base . denominator = cfg . g_timebase . den ;\n snprintf ( file_name , sizeof ( file_name ) , \"%s_%d.ivf\" , argv [ 2 ] , i ) ;\n outfile [ i ] = vpx_video_writer_open ( file_name , kContainerIVF , & info ) ;\n if ( ! outfile [ i ] ) die ( \"Failed to open %s for writing\" , file_name ) ;\n assert ( outfile [ i ] != NULL ) ;\n }\n cfg . ss_number_layers = 1 ;\n if ( vpx_codec_enc_init ( & codec , encoder -> codec_interface ( ) , & cfg , 0 ) ) die_codec ( & codec , \"Failed to initialize encoder\" ) ;\n if ( strncmp ( encoder -> name , \"vp8\" , 3 ) == 0 ) {\n vpx_codec_control ( & codec , VP8E_SET_CPUUSED , - speed ) ;\n vpx_codec_control ( & codec , VP8E_SET_NOISE_SENSITIVITY , kDenoiserOnYOnly ) ;\n }\n else if ( strncmp ( encoder -> name , \"vp9\" , 3 ) == 0 ) {\n vpx_codec_control ( & codec , VP8E_SET_CPUUSED , speed ) ;\n vpx_codec_control ( & codec , VP9E_SET_AQ_MODE , 3 ) ;\n vpx_codec_control ( & codec , VP9E_SET_FRAME_PERIODIC_BOOST , 0 ) ;\n vpx_codec_control ( & codec , VP9E_SET_NOISE_SENSITIVITY , 0 ) ;\n if ( vpx_codec_control ( & codec , VP9E_SET_SVC , 1 ) ) {\n die_codec ( & codec , \"Failed to set SVC\" ) ;\n }\n }\n vpx_codec_control ( & codec , VP8E_SET_STATIC_THRESHOLD , 1 ) ;\n vpx_codec_control ( & codec , VP8E_SET_TOKEN_PARTITIONS , 1 ) ;\n {\n const int max_intra_size_pct = 200 ;\n vpx_codec_control ( & codec , VP8E_SET_MAX_INTRA_BITRATE_PCT , max_intra_size_pct ) ;\n }\n frame_avail = 1 ;\n while ( frame_avail || got_data ) {\n struct vpx_usec_timer timer ;\n vpx_codec_iter_t iter = NULL ;\n const vpx_codec_cx_pkt_t * pkt ;\n layer_id . spatial_layer_id = 0 ;\n layer_id . temporal_layer_id = cfg . ts_layer_id [ frame_cnt % cfg . ts_periodicity ] ;\n if ( strncmp ( encoder -> name , \"vp9\" , 3 ) == 0 ) {\n vpx_codec_control ( & codec , VP9E_SET_SVC_LAYER_ID , & layer_id ) ;\n }\n flags = layer_flags [ frame_cnt % flag_periodicity ] ;\n frame_avail = vpx_img_read ( & raw , infile ) ;\n if ( frame_avail ) ++ rc . layer_input_frames [ layer_id . temporal_layer_id ] ;\n vpx_usec_timer_start ( & timer ) ;\n if ( vpx_codec_encode ( & codec , frame_avail ? & raw : NULL , pts , 1 , flags , VPX_DL_REALTIME ) ) {\n die_codec ( & codec , \"Failed to encode frame\" ) ;\n }\n vpx_usec_timer_mark ( & timer ) ;\n cx_time += vpx_usec_timer_elapsed ( & timer ) ;\n if ( layering_mode != 7 ) {\n layer_flags [ 0 ] &= ~ VPX_EFLAG_FORCE_KF ;\n }\n got_data = 0 ;\n while ( ( pkt = vpx_codec_get_cx_data ( & codec , & iter ) ) ) {\n got_data = 1 ;\n switch ( pkt -> kind ) {\n case VPX_CODEC_CX_FRAME_PKT : for ( i = cfg . ts_layer_id [ frame_cnt % cfg . ts_periodicity ] ;\n i < cfg . ts_number_layers ;\n ++ i ) {\n vpx_video_writer_write_frame ( outfile [ i ] , pkt -> data . frame . buf , pkt -> data . frame . sz , pts ) ;\n ++ rc . layer_tot_enc_frames [ i ] ;\n rc . layer_encoding_bitrate [ i ] += 8.0 * pkt -> data . frame . sz ;\n if ( i == cfg . ts_layer_id [ frame_cnt % cfg . ts_periodicity ] && ! ( pkt -> data . frame . flags & VPX_FRAME_IS_KEY ) ) {\n rc . layer_avg_frame_size [ i ] += 8.0 * pkt -> data . frame . sz ;\n rc . layer_avg_rate_mismatch [ i ] += fabs ( 8.0 * pkt -> data . frame . sz - rc . layer_pfb [ i ] ) / rc . layer_pfb [ i ] ;\n ++ rc . layer_enc_frames [ i ] ;\n }\n }\n break ;\n default : break ;\n }\n }\n ++ frame_cnt ;\n pts += frame_duration ;\n }\n fclose ( infile ) ;\n printout_rate_control_summary ( & rc , & cfg , frame_cnt ) ;\n printf ( \"\\n\" ) ;\n printf ( \"Frame cnt and encoding time/FPS stats for encoding: %d %f %f \\n\" , frame_cnt , * ( float ) cx_time / ( double ) ( frame_cnt * 1000000 ) , * ( double ) frame_cnt / ( double ) cx_time ) ;\n if ( vpx_codec_destroy ( & codec ) ) die_codec ( & codec , \"Failed to destroy codec\" ) ;\n for ( i = 0 ;\n i < cfg . ts_number_layers ;\n ++ i ) vpx_video_writer_close ( outfile [ i ] ) ;\n vpx_img_free ( & raw ) ;\n return EXIT_SUCCESS ;\n }"}
{"idx": 2870, "target": 0, "func": "static int dissect_h225_TBCD_STRING_SIZE_3_16 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_size_constrained_type ( tvb , offset , actx , tree , hf_index , dissect_h225_TBCD_STRING , \"TBCD_STRING\" , 3 , 16 , FALSE ) ;\n return offset ;\n }"}
{"idx": 2871, "target": 0, "func": "static int dissect_h245_OLC_fw_h223_params ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 185 \"../../asn1/h245/h245.cnf\" h223_fw_lc_params = wmem_new ( wmem_file_scope ( ) , h223_lc_params ) ;\n h223_fw_lc_params -> al_type = al_nonStandard ;\n h223_fw_lc_params -> al_params = NULL ;\n h223_fw_lc_params -> segmentable = 0 ;\n h223_fw_lc_params -> subdissector = NULL ;\n h223_lc_params_temp = h223_fw_lc_params ;\n offset = dissect_h245_H223LogicalChannelParameters ( tvb , offset , actx , tree , hf_index ) ;\n return offset ;\n }"}
{"idx": 2872, "target": 1, "func": "int ff_rv34_decode_frame ( AVCodecContext * avctx , void * data , int * got_picture_ptr , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n RV34DecContext * r = avctx -> priv_data ;\n MpegEncContext * s = & r -> s ;\n AVFrame * pict = data ;\n SliceInfo si ;\n int i ;\n int slice_count ;\n const uint8_t * slices_hdr = NULL ;\n int last = 0 ;\n if ( buf_size == 0 ) {\n if ( s -> low_delay == 0 && s -> next_picture_ptr ) {\n * pict = s -> next_picture_ptr -> f ;\n s -> next_picture_ptr = NULL ;\n * got_picture_ptr = 1 ;\n }\n return 0 ;\n }\n if ( ! avctx -> slice_count ) {\n slice_count = ( * buf ++ ) + 1 ;\n slices_hdr = buf + 4 ;\n buf += 8 * slice_count ;\n buf_size -= 1 + 8 * slice_count ;\n }\n else slice_count = avctx -> slice_count ;\n if ( get_slice_offset ( avctx , slices_hdr , 0 ) < 0 || get_slice_offset ( avctx , slices_hdr , 0 ) > buf_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"Slice offset is invalid\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n init_get_bits ( & s -> gb , buf + get_slice_offset ( avctx , slices_hdr , 0 ) , ( buf_size - get_slice_offset ( avctx , slices_hdr , 0 ) ) * 8 ) ;\n if ( r -> parse_slice_header ( r , & r -> s . gb , & si ) < 0 || si . start ) {\n av_log ( avctx , AV_LOG_ERROR , \"First slice header is incorrect\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ( ! s -> last_picture_ptr || ! s -> last_picture_ptr -> f . data [ 0 ] ) && si . type == AV_PICTURE_TYPE_B ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid decoder state: B-frame without \" \"reference data.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ( avctx -> skip_frame >= AVDISCARD_NONREF && si . type == AV_PICTURE_TYPE_B ) || ( avctx -> skip_frame >= AVDISCARD_NONKEY && si . type != AV_PICTURE_TYPE_I ) || avctx -> skip_frame >= AVDISCARD_ALL ) return avpkt -> size ;\n if ( si . start == 0 ) {\n if ( s -> mb_num_left > 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"New frame but still %d MB left.\" , s -> mb_num_left ) ;\n ff_er_frame_end ( & s -> er ) ;\n ff_MPV_frame_end ( s ) ;\n }\n if ( s -> width != si . width || s -> height != si . height ) {\n int err ;\n av_log ( s -> avctx , AV_LOG_WARNING , \"Changing dimensions to %dx%d\\n\" , si . width , si . height ) ;\n s -> width = si . width ;\n s -> height = si . height ;\n avcodec_set_dimensions ( s -> avctx , s -> width , s -> height ) ;\n if ( ( err = ff_MPV_common_frame_size_change ( s ) ) < 0 ) return err ;\n if ( ( err = rv34_decoder_realloc ( r ) ) < 0 ) return err ;\n }\n s -> pict_type = si . type ? si . type : AV_PICTURE_TYPE_I ;\n if ( ff_MPV_frame_start ( s , s -> avctx ) < 0 ) return - 1 ;\n ff_mpeg_er_frame_start ( s ) ;\n if ( ! r -> tmp_b_block_base ) {\n int i ;\n r -> tmp_b_block_base = av_malloc ( s -> linesize * 48 ) ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) r -> tmp_b_block_y [ i ] = r -> tmp_b_block_base + i * 16 * s -> linesize ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) r -> tmp_b_block_uv [ i ] = r -> tmp_b_block_base + 32 * s -> linesize + ( i >> 1 ) * 8 * s -> uvlinesize + ( i & 1 ) * 16 ;\n }\n r -> cur_pts = si . pts ;\n if ( s -> pict_type != AV_PICTURE_TYPE_B ) {\n r -> last_pts = r -> next_pts ;\n r -> next_pts = r -> cur_pts ;\n }\n else {\n int refdist = GET_PTS_DIFF ( r -> next_pts , r -> last_pts ) ;\n int dist0 = GET_PTS_DIFF ( r -> cur_pts , r -> last_pts ) ;\n int dist1 = GET_PTS_DIFF ( r -> next_pts , r -> cur_pts ) ;\n if ( ! refdist ) {\n r -> mv_weight1 = r -> mv_weight2 = r -> weight1 = r -> weight2 = 8192 ;\n r -> scaled_weight = 0 ;\n }\n else {\n r -> mv_weight1 = ( dist0 << 14 ) / refdist ;\n r -> mv_weight2 = ( dist1 << 14 ) / refdist ;\n if ( ( r -> mv_weight1 | r -> mv_weight2 ) & 511 ) {\n r -> weight1 = r -> mv_weight1 ;\n r -> weight2 = r -> mv_weight2 ;\n r -> scaled_weight = 0 ;\n }\n else {\n r -> weight1 = r -> mv_weight1 >> 9 ;\n r -> weight2 = r -> mv_weight2 >> 9 ;\n r -> scaled_weight = 1 ;\n }\n }\n }\n s -> mb_x = s -> mb_y = 0 ;\n ff_thread_finish_setup ( s -> avctx ) ;\n }\n else if ( HAVE_THREADS && ( s -> avctx -> active_thread_type & FF_THREAD_FRAME ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Decoder needs full frames in frame \" \"multithreading mode (start MB is %d).\\n\" , si . start ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( i = 0 ;\n i < slice_count ;\n i ++ ) {\n int offset = get_slice_offset ( avctx , slices_hdr , i ) ;\n int size ;\n if ( i + 1 == slice_count ) size = buf_size - offset ;\n else size = get_slice_offset ( avctx , slices_hdr , i + 1 ) - offset ;\n if ( offset < 0 || offset > buf_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"Slice offset is invalid\\n\" ) ;\n break ;\n }\n r -> si . end = s -> mb_width * s -> mb_height ;\n s -> mb_num_left = r -> s . mb_x + r -> s . mb_y * r -> s . mb_width - r -> si . start ;\n if ( i + 1 < slice_count ) {\n if ( get_slice_offset ( avctx , slices_hdr , i + 1 ) < 0 || get_slice_offset ( avctx , slices_hdr , i + 1 ) > buf_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"Slice offset is invalid\\n\" ) ;\n break ;\n }\n init_get_bits ( & s -> gb , buf + get_slice_offset ( avctx , slices_hdr , i + 1 ) , ( buf_size - get_slice_offset ( avctx , slices_hdr , i + 1 ) ) * 8 ) ;\n if ( r -> parse_slice_header ( r , & r -> s . gb , & si ) < 0 ) {\n if ( i + 2 < slice_count ) size = get_slice_offset ( avctx , slices_hdr , i + 2 ) - offset ;\n else size = buf_size - offset ;\n }\n else r -> si . end = si . start ;\n }\n if ( size < 0 || size > buf_size - offset ) {\n av_log ( avctx , AV_LOG_ERROR , \"Slice size is invalid\\n\" ) ;\n break ;\n }\n last = rv34_decode_slice ( r , r -> si . end , buf + offset , size ) ;\n if ( last ) break ;\n }\n if ( s -> current_picture_ptr ) {\n if ( last ) {\n if ( r -> loop_filter ) r -> loop_filter ( r , s -> mb_height - 1 ) ;\n * got_picture_ptr = finish_frame ( avctx , pict ) ;\n }\n else if ( HAVE_THREADS && ( s -> avctx -> active_thread_type & FF_THREAD_FRAME ) ) {\n av_log ( avctx , AV_LOG_INFO , \"marking unfished frame as finished\\n\" ) ;\n ff_er_frame_end ( & s -> er ) ;\n ff_MPV_frame_end ( s ) ;\n s -> mb_num_left = 0 ;\n ff_thread_report_progress ( & s -> current_picture_ptr -> f , INT_MAX , 0 ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n return avpkt -> size ;\n }"}
{"idx": 2873, "target": 0, "func": "TSReturnCode TSMimeHdrCreate ( TSMBuffer bufp , TSMLoc * locp ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) locp ) == TS_SUCCESS ) ;\n if ( ! isWriteable ( bufp ) ) {\n return TS_ERROR ;\n }\n * locp = reinterpret_cast < TSMLoc > ( mime_hdr_create ( ( ( HdrHeapSDKHandle * ) bufp ) -> m_heap ) ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 2874, "target": 0, "func": "static int refresh_lock ( struct remote_lock * lock ) {\n struct active_request_slot * slot ;\n struct slot_results results ;\n struct curl_slist * dav_headers ;\n int rc = 0 ;\n lock -> refreshing = 1 ;\n dav_headers = get_dav_token_headers ( lock , DAV_HEADER_IF | DAV_HEADER_TIMEOUT ) ;\n slot = get_active_slot ( ) ;\n slot -> results = & results ;\n curl_setup_http_get ( slot -> curl , lock -> url , DAV_LOCK ) ;\n curl_easy_setopt ( slot -> curl , CURLOPT_HTTPHEADER , dav_headers ) ;\n if ( start_active_slot ( slot ) ) {\n run_active_slot ( slot ) ;\n if ( results . curl_result != CURLE_OK ) {\n fprintf ( stderr , \"LOCK HTTP error %ld\\n\" , results . http_code ) ;\n }\n else {\n lock -> start_time = time ( NULL ) ;\n rc = 1 ;\n }\n }\n lock -> refreshing = 0 ;\n curl_slist_free_all ( dav_headers ) ;\n return rc ;\n }"}
{"idx": 2875, "target": 0, "func": "static int selinux_nlmsg_perm ( struct sock * sk , struct sk_buff * skb ) {\n int err = 0 ;\n u32 perm ;\n struct nlmsghdr * nlh ;\n struct sk_security_struct * sksec = sk -> sk_security ;\n if ( skb -> len < NLMSG_HDRLEN ) {\n err = - EINVAL ;\n goto out ;\n }\n nlh = nlmsg_hdr ( skb ) ;\n err = selinux_nlmsg_lookup ( sksec -> sclass , nlh -> nlmsg_type , & perm ) ;\n if ( err ) {\n if ( err == - EINVAL ) {\n pr_warn_ratelimited ( \"SELinux: unrecognized netlink\" \" message: protocol=%hu nlmsg_type=%hu sclass=%s\" \" pig=%d comm=%s\\n\" , sk -> sk_protocol , nlh -> nlmsg_type , secclass_map [ sksec -> sclass - 1 ] . name , task_pid_nr ( current ) , current -> comm ) ;\n if ( ! selinux_enforcing || security_get_allow_unknown ( ) ) err = 0 ;\n }\n if ( err == - ENOENT ) err = 0 ;\n goto out ;\n }\n err = sock_has_perm ( current , sk , perm ) ;\n out : return err ;\n }"}
{"idx": 2876, "target": 0, "func": "static UFILE * finit_owner ( FILE * f , const char * locale , const char * codepage , UBool takeOwnership ) {\n UErrorCode status = U_ZERO_ERROR ;\n UFILE * result ;\n if ( f == NULL ) {\n return 0 ;\n }\n result = ( UFILE * ) uprv_malloc ( sizeof ( UFILE ) ) ;\n if ( result == NULL ) {\n return 0 ;\n }\n uprv_memset ( result , 0 , sizeof ( UFILE ) ) ;\n result -> fFileno = fileno ( f ) ;\n result -> fFile = f ;\n result -> str . fBuffer = result -> fUCBuffer ;\n result -> str . fPos = result -> fUCBuffer ;\n result -> str . fLimit = result -> fUCBuffer ;\n # if ! UCONFIG_NO_FORMATTING if ( u_locbund_init ( & result -> str . fBundle , locale ) == 0 ) {\n uprv_free ( result ) ;\n return 0 ;\n }\n # endif if ( codepage == NULL || * codepage != '\\0' ) {\n result -> fConverter = ucnv_open ( codepage , & status ) ;\n }\n if ( U_SUCCESS ( status ) ) {\n result -> fOwnFile = takeOwnership ;\n }\n else {\n # if ! UCONFIG_NO_FORMATTING u_locbund_close ( & result -> str . fBundle ) ;\n # endif uprv_free ( result ) ;\n result = NULL ;\n }\n return result ;\n }"}
{"idx": 2877, "target": 1, "func": "static void count_segs_sb ( const VP9_COMMON * cm , MACROBLOCKD * xd , const TileInfo * tile , MODE_INFO * * mi , int * no_pred_segcounts , int ( * temporal_predictor_count ) [ 2 ] , int * t_unpred_seg_counts , int mi_row , int mi_col , BLOCK_SIZE bsize ) {\n const int mis = cm -> mi_stride ;\n int bw , bh ;\n const int bs = num_8x8_blocks_wide_lookup [ bsize ] , hbs = bs / 2 ;\n if ( mi_row >= cm -> mi_rows || mi_col >= cm -> mi_cols ) return ;\n bw = num_8x8_blocks_wide_lookup [ mi [ 0 ] -> mbmi . sb_type ] ;\n bh = num_8x8_blocks_high_lookup [ mi [ 0 ] -> mbmi . sb_type ] ;\n if ( bw == bs && bh == bs ) {\n count_segs ( cm , xd , tile , mi , no_pred_segcounts , temporal_predictor_count , t_unpred_seg_counts , bs , bs , mi_row , mi_col ) ;\n }\n else if ( bw == bs && bh < bs ) {\n count_segs ( cm , xd , tile , mi , no_pred_segcounts , temporal_predictor_count , t_unpred_seg_counts , bs , hbs , mi_row , mi_col ) ;\n count_segs ( cm , xd , tile , mi + hbs * mis , no_pred_segcounts , temporal_predictor_count , t_unpred_seg_counts , bs , hbs , mi_row + hbs , mi_col ) ;\n }\n else if ( bw < bs && bh == bs ) {\n count_segs ( cm , xd , tile , mi , no_pred_segcounts , temporal_predictor_count , t_unpred_seg_counts , hbs , bs , mi_row , mi_col ) ;\n count_segs ( cm , xd , tile , mi + hbs , no_pred_segcounts , temporal_predictor_count , t_unpred_seg_counts , hbs , bs , mi_row , mi_col + hbs ) ;\n }\n else {\n const BLOCK_SIZE subsize = subsize_lookup [ PARTITION_SPLIT ] [ bsize ] ;\n int n ;\n assert ( bw < bs && bh < bs ) ;\n for ( n = 0 ;\n n < 4 ;\n n ++ ) {\n const int mi_dc = hbs * ( n & 1 ) ;\n const int mi_dr = hbs * ( n >> 1 ) ;\n count_segs_sb ( cm , xd , tile , & mi [ mi_dr * mis + mi_dc ] , no_pred_segcounts , temporal_predictor_count , t_unpred_seg_counts , mi_row + mi_dr , mi_col + mi_dc , subsize ) ;\n }\n }\n }"}
{"idx": 2878, "target": 0, "func": "static void tb_link_page ( TranslationBlock * tb , tb_page_addr_t phys_pc , tb_page_addr_t phys_page2 ) {\n unsigned int h ;\n TranslationBlock * * ptb ;\n mmap_lock ( ) ;\n h = tb_phys_hash_func ( phys_pc ) ;\n ptb = & tcg_ctx . tb_ctx . tb_phys_hash [ h ] ;\n tb -> phys_hash_next = * ptb ;\n * ptb = tb ;\n tb_alloc_page ( tb , 0 , phys_pc & TARGET_PAGE_MASK ) ;\n if ( phys_page2 != - 1 ) {\n tb_alloc_page ( tb , 1 , phys_page2 ) ;\n }\n else {\n tb -> page_addr [ 1 ] = - 1 ;\n }\n tb -> jmp_first = ( TranslationBlock * ) ( ( uintptr_t ) tb | 2 ) ;\n tb -> jmp_next [ 0 ] = NULL ;\n tb -> jmp_next [ 1 ] = NULL ;\n if ( tb -> tb_next_offset [ 0 ] != 0xffff ) {\n tb_reset_jump ( tb , 0 ) ;\n }\n if ( tb -> tb_next_offset [ 1 ] != 0xffff ) {\n tb_reset_jump ( tb , 1 ) ;\n }\n # ifdef DEBUG_TB_CHECK tb_page_check ( ) ;\n # endif mmap_unlock ( ) ;\n }"}
{"idx": 2879, "target": 0, "func": "static char * cgroup_rename_nsgroup ( const char * mountpath , const char * oldname , pid_t pid , const char * name ) {\n char * dir , * fulloldpath ;\n char * newname , * fullnewpath ;\n int len , newlen , ret ;\n dir = alloca ( strlen ( oldname ) + 1 ) ;\n strcpy ( dir , oldname ) ;\n len = strlen ( oldname ) + strlen ( mountpath ) + 22 ;\n fulloldpath = alloca ( len ) ;\n ret = snprintf ( fulloldpath , len , \"%s/%s/%ld\" , mountpath , oldname , ( unsigned long ) pid ) ;\n if ( ret < 0 || ret >= len ) return NULL ;\n len = strlen ( dir ) + strlen ( name ) + 2 ;\n newname = malloc ( len ) ;\n if ( ! newname ) {\n SYSERROR ( \"Out of memory\" ) ;\n return NULL ;\n }\n ret = snprintf ( newname , len , \"%s/%s\" , dir , name ) ;\n if ( ret < 0 || ret >= len ) {\n free ( newname ) ;\n return NULL ;\n }\n newlen = strlen ( mountpath ) + len + 2 ;\n fullnewpath = alloca ( newlen ) ;\n ret = snprintf ( fullnewpath , newlen , \"%s/%s\" , mountpath , newname ) ;\n if ( ret < 0 || ret >= newlen ) {\n free ( newname ) ;\n return NULL ;\n }\n if ( access ( fullnewpath , F_OK ) == 0 ) {\n if ( rmdir ( fullnewpath ) != 0 ) {\n SYSERROR ( \"container cgroup %s already exists.\" , fullnewpath ) ;\n free ( newname ) ;\n return NULL ;\n }\n }\n if ( rename ( fulloldpath , fullnewpath ) ) {\n SYSERROR ( \"failed to rename cgroup %s->%s\" , fulloldpath , fullnewpath ) ;\n free ( newname ) ;\n return NULL ;\n }\n DEBUG ( \"'%s' renamed to '%s'\" , oldname , newname ) ;\n return newname ;\n }"}
{"idx": 2880, "target": 0, "func": "static int selinux_task_setpgid ( struct task_struct * p , pid_t pgid ) {\n return current_has_perm ( p , PROCESS__SETPGID ) ;\n }"}
{"idx": 2881, "target": 0, "func": "static cmsBool Type_Text_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) {\n cmsMLU * mlu = ( cmsMLU * ) Ptr ;\n cmsUInt32Number size ;\n cmsBool rc ;\n char * Text ;\n size = cmsMLUgetASCII ( mlu , cmsNoLanguage , cmsNoCountry , NULL , 0 ) ;\n if ( size == 0 ) return FALSE ;\n Text = ( char * ) _cmsMalloc ( self -> ContextID , size ) ;\n if ( Text == NULL ) return FALSE ;\n cmsMLUgetASCII ( mlu , cmsNoLanguage , cmsNoCountry , Text , size ) ;\n rc = io -> Write ( io , size , Text ) ;\n _cmsFree ( self -> ContextID , Text ) ;\n return rc ;\n cmsUNUSED_PARAMETER ( nItems ) ;\n }"}
{"idx": 2882, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ExtensionMessageBubbleViewBrowserTest , ExtensionBubbleAnchoredToExtensionAction ) {\n TestBubbleAnchoredToExtensionAction ( ) ;\n }"}
{"idx": 2883, "target": 0, "func": "static int pfkey_send_new_mapping ( struct xfrm_state * x , xfrm_address_t * ipaddr , __be16 sport ) {\n struct sk_buff * skb ;\n struct sadb_msg * hdr ;\n struct sadb_sa * sa ;\n struct sadb_address * addr ;\n struct sadb_x_nat_t_port * n_port ;\n int sockaddr_size ;\n int size ;\n __u8 satype = ( x -> id . proto == IPPROTO_ESP ? SADB_SATYPE_ESP : 0 ) ;\n struct xfrm_encap_tmpl * natt = NULL ;\n sockaddr_size = pfkey_sockaddr_size ( x -> props . family ) ;\n if ( ! sockaddr_size ) return - EINVAL ;\n if ( ! satype ) return - EINVAL ;\n if ( ! x -> encap ) return - EINVAL ;\n natt = x -> encap ;\n size = sizeof ( struct sadb_msg ) + sizeof ( struct sadb_sa ) + ( sizeof ( struct sadb_address ) * 2 ) + ( sockaddr_size * 2 ) + ( sizeof ( struct sadb_x_nat_t_port ) * 2 ) ;\n skb = alloc_skb ( size + 16 , GFP_ATOMIC ) ;\n if ( skb == NULL ) return - ENOMEM ;\n hdr = ( struct sadb_msg * ) skb_put ( skb , sizeof ( struct sadb_msg ) ) ;\n hdr -> sadb_msg_version = PF_KEY_V2 ;\n hdr -> sadb_msg_type = SADB_X_NAT_T_NEW_MAPPING ;\n hdr -> sadb_msg_satype = satype ;\n hdr -> sadb_msg_len = size / sizeof ( uint64_t ) ;\n hdr -> sadb_msg_errno = 0 ;\n hdr -> sadb_msg_reserved = 0 ;\n hdr -> sadb_msg_seq = x -> km . seq = get_acqseq ( ) ;\n hdr -> sadb_msg_pid = 0 ;\n sa = ( struct sadb_sa * ) skb_put ( skb , sizeof ( struct sadb_sa ) ) ;\n sa -> sadb_sa_len = sizeof ( struct sadb_sa ) / sizeof ( uint64_t ) ;\n sa -> sadb_sa_exttype = SADB_EXT_SA ;\n sa -> sadb_sa_spi = x -> id . spi ;\n sa -> sadb_sa_replay = 0 ;\n sa -> sadb_sa_state = 0 ;\n sa -> sadb_sa_auth = 0 ;\n sa -> sadb_sa_encrypt = 0 ;\n sa -> sadb_sa_flags = 0 ;\n addr = ( struct sadb_address * ) skb_put ( skb , sizeof ( struct sadb_address ) + sockaddr_size ) ;\n addr -> sadb_address_len = ( sizeof ( struct sadb_address ) + sockaddr_size ) / sizeof ( uint64_t ) ;\n addr -> sadb_address_exttype = SADB_EXT_ADDRESS_SRC ;\n addr -> sadb_address_proto = 0 ;\n addr -> sadb_address_reserved = 0 ;\n addr -> sadb_address_prefixlen = pfkey_sockaddr_fill ( & x -> props . saddr , 0 , ( struct sockaddr * ) ( addr + 1 ) , x -> props . family ) ;\n if ( ! addr -> sadb_address_prefixlen ) BUG ( ) ;\n n_port = ( struct sadb_x_nat_t_port * ) skb_put ( skb , sizeof ( * n_port ) ) ;\n n_port -> sadb_x_nat_t_port_len = sizeof ( * n_port ) / sizeof ( uint64_t ) ;\n n_port -> sadb_x_nat_t_port_exttype = SADB_X_EXT_NAT_T_SPORT ;\n n_port -> sadb_x_nat_t_port_port = natt -> encap_sport ;\n n_port -> sadb_x_nat_t_port_reserved = 0 ;\n addr = ( struct sadb_address * ) skb_put ( skb , sizeof ( struct sadb_address ) + sockaddr_size ) ;\n addr -> sadb_address_len = ( sizeof ( struct sadb_address ) + sockaddr_size ) / sizeof ( uint64_t ) ;\n addr -> sadb_address_exttype = SADB_EXT_ADDRESS_DST ;\n addr -> sadb_address_proto = 0 ;\n addr -> sadb_address_reserved = 0 ;\n addr -> sadb_address_prefixlen = pfkey_sockaddr_fill ( ipaddr , 0 , ( struct sockaddr * ) ( addr + 1 ) , x -> props . family ) ;\n if ( ! addr -> sadb_address_prefixlen ) BUG ( ) ;\n n_port = ( struct sadb_x_nat_t_port * ) skb_put ( skb , sizeof ( * n_port ) ) ;\n n_port -> sadb_x_nat_t_port_len = sizeof ( * n_port ) / sizeof ( uint64_t ) ;\n n_port -> sadb_x_nat_t_port_exttype = SADB_X_EXT_NAT_T_DPORT ;\n n_port -> sadb_x_nat_t_port_port = sport ;\n n_port -> sadb_x_nat_t_port_reserved = 0 ;\n return pfkey_broadcast ( skb , GFP_ATOMIC , BROADCAST_REGISTERED , NULL , xs_net ( x ) ) ;\n }"}
{"idx": 2884, "target": 0, "func": "static gboolean gst_asf_demux_parse_data_object_start ( GstASFDemux * demux , guint8 * data ) {\n AsfObject obj ;\n if ( ! asf_demux_peek_object ( demux , data , 50 , & obj , TRUE ) ) {\n GST_WARNING_OBJECT ( demux , \"Corrupted data\" ) ;\n return FALSE ;\n }\n if ( obj . id != ASF_OBJ_DATA ) {\n GST_WARNING_OBJECT ( demux , \"headers not followed by a DATA object\" ) ;\n return FALSE ;\n }\n demux -> state = GST_ASF_DEMUX_STATE_DATA ;\n if ( ! demux -> broadcast && obj . size > 50 ) {\n demux -> data_size = obj . size - 50 ;\n demux -> index_offset = demux -> data_offset + demux -> data_size ;\n }\n else {\n demux -> data_size = 0 ;\n demux -> index_offset = 0 ;\n }\n demux -> packet = 0 ;\n if ( ! demux -> broadcast ) {\n demux -> num_packets = GST_READ_UINT64_LE ( data + ( 16 + 8 ) + 16 ) ;\n }\n else {\n demux -> num_packets = 0 ;\n }\n if ( demux -> num_packets == 0 ) demux -> seekable = FALSE ;\n if ( demux -> data_size == 0 && demux -> num_packets > 0 ) {\n demux -> data_size = demux -> num_packets * demux -> packet_size ;\n demux -> index_offset = demux -> data_offset + demux -> data_size ;\n }\n gst_asf_demux_process_queued_extended_stream_objects ( demux ) ;\n GST_INFO_OBJECT ( demux , \"Stream has %\" G_GUINT64_FORMAT \" packets, \" \"data_offset=%\" G_GINT64_FORMAT \", data_size=%\" G_GINT64_FORMAT \", index_offset=%\" G_GUINT64_FORMAT , demux -> num_packets , demux -> data_offset , demux -> data_size , demux -> index_offset ) ;\n return TRUE ;\n }"}
{"idx": 2885, "target": 0, "func": "static int dissect_h245_T_manufacturerCode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 65535U , & manufacturerCode , FALSE ) ;\n return offset ;\n }"}
{"idx": 2886, "target": 0, "func": "static int rfc2231_parameter_cmp ( const struct rfc2231_parameter * r1 , const struct rfc2231_parameter * r2 ) {\n int ret ;\n ret = strcmp ( r1 -> key , r2 -> key ) ;\n if ( ret != 0 ) return ret ;\n return r1 -> idx < r2 -> idx ? - 1 : ( r1 -> idx > r2 -> idx ? 1 : 0 ) ;\n }"}
{"idx": 2887, "target": 0, "func": "void mi_check_print_warning ( MI_CHECK * param , const char * fmt , ... ) {\n va_list args ;\n DBUG_ENTER ( \"mi_check_print_warning\" ) ;\n fflush ( stdout ) ;\n if ( ! param -> warning_printed && ! param -> error_printed ) {\n if ( param -> testflag & T_SILENT ) fprintf ( stderr , \"%s: MyISAM file %s\\n\" , my_progname_short , param -> isam_file_name ) ;\n param -> out_flag |= O_DATA_LOST ;\n }\n param -> warning_printed = 1 ;\n va_start ( args , fmt ) ;\n fprintf ( stderr , \"%s: warning: \" , my_progname_short ) ;\n ( void ) vfprintf ( stderr , fmt , args ) ;\n ( void ) fputc ( '\\n' , stderr ) ;\n fflush ( stderr ) ;\n va_end ( args ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 2888, "target": 0, "func": "static void PPC_io_writew ( target_phys_addr_t addr , uint32_t value ) {\n if ( ( addr < 0x800001f0 || addr > 0x800001f7 ) && ( addr < 0x80000170 || addr > 0x80000177 ) ) {\n PPC_IO_DPRINTF ( \"0x%08x => 0x%04x\\n\" , addr - PPC_IO_BASE , value ) ;\n }\n # ifdef TARGET_WORDS_BIGENDIAN value = bswap16 ( value ) ;\n # endif cpu_outw ( NULL , addr - PPC_IO_BASE , value ) ;\n }"}
{"idx": 2889, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FullscreenControllerInteractiveTest , DISABLED_TestNewTabExitsFullscreen ) {\n ASSERT_TRUE ( test_server ( ) -> Start ( ) ) ;\n AddTabAtIndex ( 0 , GURL ( url : : kAboutBlankURL ) , PAGE_TRANSITION_TYPED ) ;\n ASSERT_NO_FATAL_FAILURE ( ToggleTabFullscreen ( true ) ) ;\n {\n FullscreenNotificationObserver fullscreen_observer ;\n AddTabAtIndex ( 1 , GURL ( url : : kAboutBlankURL ) , PAGE_TRANSITION_TYPED ) ;\n fullscreen_observer . Wait ( ) ;\n ASSERT_FALSE ( browser ( ) -> window ( ) -> IsFullscreen ( ) ) ;\n }\n }"}
{"idx": 2890, "target": 0, "func": "void ps2_queue ( PS2State * s , int b ) {\n PS2Queue * q = & s -> queue ;\n if ( q -> count >= PS2_QUEUE_SIZE - 1 ) return ;\n q -> data [ q -> wptr ] = b ;\n if ( ++ q -> wptr == PS2_QUEUE_SIZE ) q -> wptr = 0 ;\n q -> count ++ ;\n s -> update_irq ( s -> update_arg , 1 ) ;\n }"}
{"idx": 2891, "target": 0, "func": "PHP_FUNCTION ( locale_get_display_region ) {\n get_icu_disp_value_src_php ( LOC_REGION_TAG , INTERNAL_FUNCTION_PARAM_PASSTHRU ) ;\n }"}
{"idx": 2892, "target": 0, "func": "static char * xmemmem ( const char * hay , const size_t haysize , const char * needle , const size_t needlesize ) {\n const char * const eoh = hay + haysize ;\n const char * const eon = needle + needlesize ;\n const char * hp ;\n const char * np ;\n const char * cand ;\n unsigned int hsum ;\n unsigned int nsum ;\n unsigned int eqp ;\n if ( needlesize == 0UL ) {\n return deconst ( hay ) ;\n }\n else if ( ( hay = memchr ( hay , * needle , haysize ) ) == NULL ) {\n return NULL ;\n }\n for ( hp = hay + 1U , np = needle + 1U , hsum = * hay , nsum = * hay , eqp = 1U ;\n hp < eoh && np < eon ;\n hsum ^= * hp , nsum ^= * np , eqp &= * hp == * np , hp ++ , np ++ ) ;\n if ( np < eon ) {\n return NULL ;\n }\n else if ( eqp ) {\n return deconst ( hay ) ;\n }\n for ( cand = hay ;\n hp < eoh ;\n hp ++ ) {\n hsum ^= * cand ++ ;\n hsum ^= * hp ;\n if ( hsum == nsum && memcmp ( cand , needle , needlesize - 1U ) == 0 ) {\n return deconst ( cand ) ;\n }\n }\n return NULL ;\n }"}
{"idx": 2893, "target": 0, "func": "static int AnyMisleadingBitmapAdvances ( SplineFont * sf , int32 * bsizes ) {\n int strike , gid ;\n double em = sf -> ascent + sf -> descent ;\n BDFFont * bdf ;\n if ( bsizes == NULL ) return ( false ) ;\n for ( strike = 0 ;\n bsizes [ strike ] != 0 ;\n ++ strike ) {\n for ( bdf = sf -> bitmaps ;\n bdf != NULL && ( bdf -> pixelsize != ( bsizes [ strike ] & 0xffff ) || BDFDepth ( bdf ) != ( bsizes [ strike ] >> 16 ) ) ;\n bdf = bdf -> next ) ;\n if ( bdf == NULL ) continue ;\n for ( gid = 0 ;\n gid < sf -> glyphcnt && gid < bdf -> glyphcnt ;\n ++ gid ) {\n SplineChar * sc = sf -> glyphs [ gid ] ;\n BDFChar * bc = bdf -> glyphs [ gid ] ;\n if ( sc == NULL || bc == NULL ) continue ;\n if ( ( int ) rint ( ( sc -> width * bdf -> pixelsize ) / em ) != bc -> width ) return ( true ) ;\n }\n }\n return ( false ) ;\n }"}
{"idx": 2894, "target": 0, "func": "static void vc1_decode_b_blocks ( VC1Context * v ) {\n MpegEncContext * s = & v -> s ;\n switch ( v -> c_ac_table_index ) {\n case 0 : v -> codingset = ( v -> pqindex <= 8 ) ? CS_HIGH_RATE_INTRA : CS_LOW_MOT_INTRA ;\n break ;\n case 1 : v -> codingset = CS_HIGH_MOT_INTRA ;\n break ;\n case 2 : v -> codingset = CS_MID_RATE_INTRA ;\n break ;\n }\n switch ( v -> c_ac_table_index ) {\n case 0 : v -> codingset2 = ( v -> pqindex <= 8 ) ? CS_HIGH_RATE_INTER : CS_LOW_MOT_INTER ;\n break ;\n case 1 : v -> codingset2 = CS_HIGH_MOT_INTER ;\n break ;\n case 2 : v -> codingset2 = CS_MID_RATE_INTER ;\n break ;\n }\n s -> first_slice_line = 1 ;\n for ( s -> mb_y = s -> start_mb_y ;\n s -> mb_y < s -> end_mb_y ;\n s -> mb_y ++ ) {\n s -> mb_x = 0 ;\n ff_init_block_index ( s ) ;\n for ( ;\n s -> mb_x < s -> mb_width ;\n s -> mb_x ++ ) {\n ff_update_block_index ( s ) ;\n if ( v -> fcm == ILACE_FIELD ) vc1_decode_b_mb_intfi ( v ) ;\n else vc1_decode_b_mb ( v ) ;\n if ( get_bits_count ( & s -> gb ) > v -> bits || get_bits_count ( & s -> gb ) < 0 ) {\n ff_er_add_slice ( & s -> er , 0 , s -> start_mb_y , s -> mb_x , s -> mb_y , ER_MB_ERROR ) ;\n av_log ( s -> avctx , AV_LOG_ERROR , \"Bits overconsumption: %i > %i at %ix%i\\n\" , get_bits_count ( & s -> gb ) , v -> bits , s -> mb_x , s -> mb_y ) ;\n return ;\n }\n if ( v -> s . loop_filter ) vc1_loop_filter_iblk ( v , v -> pq ) ;\n }\n if ( ! v -> s . loop_filter ) ff_mpeg_draw_horiz_band ( s , s -> mb_y * 16 , 16 ) ;\n else if ( s -> mb_y ) ff_mpeg_draw_horiz_band ( s , ( s -> mb_y - 1 ) * 16 , 16 ) ;\n s -> first_slice_line = 0 ;\n }\n if ( v -> s . loop_filter ) ff_mpeg_draw_horiz_band ( s , ( s -> end_mb_y - 1 ) * 16 , 16 ) ;\n ff_er_add_slice ( & s -> er , 0 , s -> start_mb_y << v -> field_mode , s -> mb_width - 1 , ( s -> end_mb_y << v -> field_mode ) - 1 , ER_MB_END ) ;\n }"}
{"idx": 2895, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FullscreenControllerInteractiveTest , DISABLED_PrivilegedMouseLockAndFullscreen ) {\n ASSERT_TRUE ( test_server ( ) -> Start ( ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , test_server ( ) -> GetURL ( kFullscreenMouseLockHTML ) ) ;\n ASSERT_FALSE ( IsFullscreenBubbleDisplayed ( ) ) ;\n SetPrivilegedFullscreen ( true ) ;\n FullscreenNotificationObserver fullscreen_observer ;\n ASSERT_TRUE ( ui_test_utils : : SendKeyPressAndWait ( browser ( ) , ui : : VKEY_B , false , true , false , false , chrome : : NOTIFICATION_MOUSE_LOCK_CHANGED , content : : NotificationService : : AllSources ( ) ) ) ;\n fullscreen_observer . Wait ( ) ;\n ASSERT_FALSE ( IsFullscreenBubbleDisplayed ( ) ) ;\n ASSERT_FALSE ( IsFullscreenPermissionRequested ( ) ) ;\n ASSERT_FALSE ( IsMouseLockPermissionRequested ( ) ) ;\n ASSERT_TRUE ( IsMouseLocked ( ) ) ;\n ASSERT_TRUE ( IsWindowFullscreenForTabOrPending ( ) ) ;\n }"}
{"idx": 2896, "target": 0, "func": "void fz_drop_colorspace_context ( fz_context * ctx ) {\n if ( ! ctx ) return ;\n if ( fz_drop_imp ( ctx , ctx -> colorspace , & ctx -> colorspace -> ctx_refs ) ) {\n fz_drop_colorspace ( ctx , ctx -> colorspace -> gray ) ;\n fz_drop_colorspace ( ctx , ctx -> colorspace -> rgb ) ;\n fz_drop_colorspace ( ctx , ctx -> colorspace -> bgr ) ;\n fz_drop_colorspace ( ctx , ctx -> colorspace -> cmyk ) ;\n fz_drop_colorspace ( ctx , ctx -> colorspace -> lab ) ;\n fz_drop_cmm_context ( ctx ) ;\n fz_free ( ctx , ctx -> colorspace ) ;\n ctx -> colorspace = NULL ;\n }\n }"}
{"idx": 2897, "target": 0, "func": "static int virtio_blk_exit_pci ( PCIDevice * pci_dev ) {\n VirtIOPCIProxy * proxy = DO_UPCAST ( VirtIOPCIProxy , pci_dev , pci_dev ) ;\n drive_uninit ( proxy -> dinfo ) ;\n return virtio_exit_pci ( pci_dev ) ;\n }"}
{"idx": 2898, "target": 1, "func": "int process_netbios_name ( const guchar * name_ptr , char * name_ret , int name_ret_len ) {\n int i ;\n int name_type = * ( name_ptr + NETBIOS_NAME_LEN - 1 ) ;\n guchar name_char ;\n static const char hex_digits [ 16 ] = {\n '0' , '1' , '2' , '3' , '4' , '5' , '6' , '7' , '8' , '9' , 'a' , 'b' , 'c' , 'd' , 'e' , 'f' }\n ;\n for ( i = 0 ;\n i < NETBIOS_NAME_LEN - 1 ;\n i ++ ) {\n name_char = * name_ptr ++ ;\n if ( name_char >= ' ' && name_char <= '~' ) {\n if ( -- name_ret_len > 0 ) * name_ret ++ = name_char ;\n }\n else {\n if ( -- name_ret_len > 0 ) * name_ret ++ = '<' ;\n if ( -- name_ret_len > 0 ) * name_ret ++ = hex_digits [ ( name_char >> 4 ) ] ;\n if ( -- name_ret_len > 0 ) * name_ret ++ = hex_digits [ ( name_char & 0x0F ) ] ;\n if ( -- name_ret_len > 0 ) * name_ret ++ = '>' ;\n }\n }\n * name_ret = '\\0' ;\n name_ret -- ;\n for ( i = 0 ;\n i < NETBIOS_NAME_LEN - 1 ;\n i ++ ) {\n if ( * name_ret != ' ' ) {\n * ( name_ret + 1 ) = 0 ;\n break ;\n }\n name_ret -- ;\n }\n return name_type ;\n }"}
{"idx": 2899, "target": 0, "func": "static void set_rt_speed_feature ( VP9_COMP * cpi , SPEED_FEATURES * sf , int speed , vp9e_tune_content content ) {\n VP9_COMMON * const cm = & cpi -> common ;\n const int is_keyframe = cm -> frame_type == KEY_FRAME ;\n const int frames_since_key = is_keyframe ? 0 : cpi -> rc . frames_since_key ;\n sf -> static_segmentation = 0 ;\n sf -> adaptive_rd_thresh = 1 ;\n sf -> use_fast_coef_costing = 1 ;\n if ( speed >= 1 ) {\n sf -> use_square_partition_only = ! frame_is_intra_only ( cm ) ;\n sf -> less_rectangular_check = 1 ;\n sf -> tx_size_search_method = frame_is_intra_only ( cm ) ? USE_FULL_RD : USE_LARGESTALL ;\n if ( MIN ( cm -> width , cm -> height ) >= 720 ) sf -> disable_split_mask = cm -> show_frame ? DISABLE_ALL_SPLIT : DISABLE_ALL_INTER_SPLIT ;\n else sf -> disable_split_mask = DISABLE_COMPOUND_SPLIT ;\n sf -> use_rd_breakout = 1 ;\n sf -> adaptive_motion_search = 1 ;\n sf -> adaptive_pred_interp_filter = 1 ;\n sf -> mv . auto_mv_step_size = 1 ;\n sf -> adaptive_rd_thresh = 2 ;\n sf -> intra_y_mode_mask [ TX_32X32 ] = INTRA_DC_H_V ;\n sf -> intra_uv_mode_mask [ TX_32X32 ] = INTRA_DC_H_V ;\n sf -> intra_uv_mode_mask [ TX_16X16 ] = INTRA_DC_H_V ;\n }\n if ( speed >= 2 ) {\n if ( MIN ( cm -> width , cm -> height ) >= 720 ) sf -> disable_split_mask = cm -> show_frame ? DISABLE_ALL_SPLIT : DISABLE_ALL_INTER_SPLIT ;\n else sf -> disable_split_mask = LAST_AND_INTRA_SPLIT_ONLY ;\n sf -> mode_search_skip_flags = FLAG_SKIP_INTRA_DIRMISMATCH | FLAG_SKIP_INTRA_BESTINTER | FLAG_SKIP_COMP_BESTINTRA | FLAG_SKIP_INTRA_LOWVAR ;\n sf -> adaptive_pred_interp_filter = 2 ;\n sf -> reference_masking = 1 ;\n sf -> disable_filter_search_var_thresh = 50 ;\n sf -> comp_inter_joint_search_thresh = BLOCK_SIZES ;\n sf -> auto_min_max_partition_size = RELAXED_NEIGHBORING_MIN_MAX ;\n sf -> use_lastframe_partitioning = LAST_FRAME_PARTITION_LOW_MOTION ;\n sf -> lf_motion_threshold = LOW_MOTION_THRESHOLD ;\n sf -> adjust_partitioning_from_last_frame = 1 ;\n sf -> last_partitioning_redo_frequency = 3 ;\n sf -> use_lp32x32fdct = 1 ;\n sf -> mode_skip_start = 11 ;\n sf -> intra_y_mode_mask [ TX_16X16 ] = INTRA_DC_H_V ;\n }\n if ( speed >= 3 ) {\n sf -> use_square_partition_only = 1 ;\n sf -> disable_filter_search_var_thresh = 100 ;\n sf -> use_lastframe_partitioning = LAST_FRAME_PARTITION_ALL ;\n sf -> constrain_copy_partition = 1 ;\n sf -> use_uv_intra_rd_estimate = 1 ;\n sf -> skip_encode_sb = 1 ;\n sf -> mv . subpel_iters_per_step = 1 ;\n sf -> use_fast_coef_updates = ONE_LOOP_REDUCED ;\n sf -> adaptive_rd_thresh = 4 ;\n sf -> mode_skip_start = 6 ;\n sf -> allow_skip_recode = 0 ;\n sf -> optimize_coefficients = 0 ;\n sf -> disable_split_mask = DISABLE_ALL_SPLIT ;\n sf -> lpf_pick = LPF_PICK_FROM_Q ;\n }\n if ( speed >= 4 ) {\n int i ;\n sf -> last_partitioning_redo_frequency = 4 ;\n sf -> adaptive_rd_thresh = 5 ;\n sf -> use_fast_coef_costing = 0 ;\n sf -> auto_min_max_partition_size = STRICT_NEIGHBORING_MIN_MAX ;\n sf -> adjust_partitioning_from_last_frame = cm -> last_frame_type != cm -> frame_type || ( 0 == ( frames_since_key + 1 ) % sf -> last_partitioning_redo_frequency ) ;\n sf -> mv . subpel_force_stop = 1 ;\n for ( i = 0 ;\n i < TX_SIZES ;\n i ++ ) {\n sf -> intra_y_mode_mask [ i ] = INTRA_DC_H_V ;\n sf -> intra_uv_mode_mask [ i ] = INTRA_DC ;\n }\n sf -> intra_y_mode_mask [ TX_32X32 ] = INTRA_DC ;\n sf -> frame_parameter_update = 0 ;\n sf -> mv . search_method = FAST_HEX ;\n sf -> inter_mode_mask [ BLOCK_32X32 ] = INTER_NEAREST_NEAR_NEW ;\n sf -> inter_mode_mask [ BLOCK_32X64 ] = INTER_NEAREST ;\n sf -> inter_mode_mask [ BLOCK_64X32 ] = INTER_NEAREST ;\n sf -> inter_mode_mask [ BLOCK_64X64 ] = INTER_NEAREST ;\n sf -> max_intra_bsize = BLOCK_32X32 ;\n sf -> allow_skip_recode = 1 ;\n }\n if ( speed >= 5 ) {\n sf -> use_quant_fp = ! is_keyframe ;\n sf -> auto_min_max_partition_size = is_keyframe ? RELAXED_NEIGHBORING_MIN_MAX : STRICT_NEIGHBORING_MIN_MAX ;\n sf -> max_partition_size = BLOCK_32X32 ;\n sf -> min_partition_size = BLOCK_8X8 ;\n sf -> partition_check = ( frames_since_key % sf -> last_partitioning_redo_frequency == 1 ) ;\n sf -> force_frame_boost = is_keyframe || ( frames_since_key % ( sf -> last_partitioning_redo_frequency << 1 ) == 1 ) ;\n sf -> max_delta_qindex = is_keyframe ? 20 : 15 ;\n sf -> partition_search_type = REFERENCE_PARTITION ;\n sf -> use_nonrd_pick_mode = 1 ;\n sf -> allow_skip_recode = 0 ;\n }\n if ( speed >= 6 ) {\n if ( content == VP9E_CONTENT_SCREEN ) {\n int i ;\n for ( i = 0 ;\n i < BLOCK_SIZES ;\n ++ i ) sf -> inter_mode_mask [ i ] = INTER_ALL ;\n }\n sf -> partition_search_type = SOURCE_VAR_BASED_PARTITION ;\n sf -> search_type_check_frequency = 50 ;\n sf -> tx_size_search_method = is_keyframe ? USE_LARGESTALL : USE_TX_8X8 ;\n sf -> reuse_inter_pred_sby = 1 ;\n sf -> elevate_newmv_thresh = 2000 ;\n sf -> mv . reduce_first_step_size = 1 ;\n }\n if ( speed >= 7 ) {\n sf -> mv . search_method = FAST_DIAMOND ;\n sf -> mv . fullpel_search_step_param = 10 ;\n sf -> lpf_pick = LPF_PICK_MINIMAL_LPF ;\n sf -> encode_breakout_thresh = ( MIN ( cm -> width , cm -> height ) >= 720 ) ? : 300 ;\n sf -> elevate_newmv_thresh = 2500 ;\n }\n if ( speed >= 12 ) {\n sf -> elevate_newmv_thresh = 4000 ;\n sf -> mv . subpel_force_stop = 2 ;\n }\n if ( speed >= 13 ) {\n int i ;\n sf -> max_intra_bsize = BLOCK_32X32 ;\n for ( i = 0 ;\n i < BLOCK_SIZES ;\n ++ i ) sf -> inter_mode_mask [ i ] = INTER_NEAREST ;\n }\n }"}
{"idx": 2900, "target": 0, "func": "static VALUE ossl_cipher_reset ( VALUE self ) {\n EVP_CIPHER_CTX * ctx ;\n GetCipher ( self , ctx ) ;\n if ( EVP_CipherInit_ex ( ctx , NULL , NULL , NULL , NULL , - 1 ) != 1 ) ossl_raise ( eCipherError , NULL ) ;\n return self ;\n }"}
{"idx": 2901, "target": 0, "func": "static int dissect_h245_H261VideoCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_H261VideoCapability , H261VideoCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 2902, "target": 0, "func": "static int chacha20_poly1305_cleanup ( EVP_CIPHER_CTX * ctx ) {\n EVP_CHACHA_AEAD_CTX * actx = aead_data ( ctx ) ;\n if ( actx ) OPENSSL_cleanse ( ctx -> cipher_data , sizeof ( * ctx ) + Poly1305_ctx_size ( ) ) ;\n return 1 ;\n }"}
{"idx": 2903, "target": 0, "func": "static void dtap_mm_loc_upd_req ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n guint8 oct ;\n proto_tree * subtree ;\n proto_item * item ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_TRUE ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n subtree = proto_tree_add_subtree ( tree , tvb , curr_offset , 1 , ett_gsm_common_elem [ DE_CIPH_KEY_SEQ_NUM ] , NULL , val_to_str_ext_const ( DE_CIPH_KEY_SEQ_NUM , & gsm_common_elem_strings_ext , \"\" ) ) ;\n proto_tree_add_bits_item ( subtree , hf_gsm_a_spare_bits , tvb , curr_offset << 3 , 1 , ENC_BIG_ENDIAN ) ;\n switch ( ( oct & 0x70 ) >> 4 ) {\n case 0x07 : proto_tree_add_uint_format_value ( subtree , hf_gsm_a_dtap_ciphering_key_sequence_number70 , tvb , curr_offset , 1 , oct , \"No key is available\" ) ;\n break ;\n default : proto_tree_add_item ( subtree , hf_gsm_a_dtap_ciphering_key_sequence_number70 , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n break ;\n }\n subtree = proto_tree_add_subtree ( tree , tvb , curr_offset , 1 , ett_gsm_dtap_elem [ DE_LOC_UPD_TYPE ] , & item , val_to_str_ext_const ( DE_LOC_UPD_TYPE , & gsm_dtap_elem_strings_ext , \"\" ) ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_follow_on_request , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_bits_item ( subtree , hf_gsm_a_spare_bits , tvb , ( curr_offset << 3 ) + 5 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_updating_type , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( item , \" - %s\" , val_to_str_const ( oct & 0x03 , gsm_a_dtap_updating_type_vals , \"Reserved\" ) ) ;\n curr_offset ++ ;\n curr_len -- ;\n if ( ( signed ) curr_len <= 0 ) return ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_COMMON , DE_LAI , NULL ) ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_COMMON , DE_MS_CM_1 , NULL ) ;\n ELEM_MAND_LV ( GSM_A_PDU_TYPE_COMMON , DE_MID , NULL ) ;\n ELEM_OPT_TLV ( 0x33 , GSM_A_PDU_TYPE_COMMON , DE_MS_CM_2 , \" - Mobile station classmark for UMTS\" ) ;\n ELEM_OPT_TV_SHORT ( 0xc0 , GSM_A_PDU_TYPE_DTAP , DE_ADD_UPD_PARAMS , NULL ) ;\n ELEM_OPT_TV_SHORT ( 0xD0 , GSM_A_PDU_TYPE_GM , DE_DEVICE_PROPERTIES , NULL ) ;\n ELEM_OPT_TV_SHORT ( 0xE0 , GSM_A_PDU_TYPE_COMMON , DE_MS_NET_FEAT_SUP , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 2904, "target": 0, "func": "void jpc_ns_invlift_col ( jpc_fix_t * a , int numrows , int stride , int parity ) {\n jpc_fix_t * lptr ;\n jpc_fix_t * hptr ;\n register jpc_fix_t * lptr2 ;\n register jpc_fix_t * hptr2 ;\n register int n ;\n int llen ;\n llen = ( numrows + 1 - parity ) >> 1 ;\n if ( numrows > 1 ) {\n # if defined ( WT_DOSCALE ) lptr = & a [ 0 ] ;\n n = llen ;\n while ( n -- > 0 ) {\n lptr2 = lptr ;\n lptr2 [ 0 ] = jpc_fix_mul ( lptr2 [ 0 ] , jpc_dbltofix ( 1.0 / LGAIN ) ) ;\n ++ lptr2 ;\n lptr += stride ;\n }\n hptr = & a [ llen * stride ] ;\n n = numrows - llen ;\n while ( n -- > 0 ) {\n hptr2 = hptr ;\n hptr2 [ 0 ] = jpc_fix_mul ( hptr2 [ 0 ] , jpc_dbltofix ( 1.0 / HGAIN ) ) ;\n ++ hptr2 ;\n hptr += stride ;\n }\n # endif lptr = & a [ 0 ] ;\n hptr = & a [ llen * stride ] ;\n if ( ! parity ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n jpc_fix_minuseq ( lptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * DELTA ) , hptr2 [ 0 ] ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n lptr += stride ;\n }\n n = llen - ( ! parity ) - ( parity != ( numrows & 1 ) ) ;\n while ( n -- > 0 ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n jpc_fix_minuseq ( lptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( DELTA ) , jpc_fix_add ( hptr2 [ 0 ] , hptr2 [ stride ] ) ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n lptr += stride ;\n hptr += stride ;\n }\n if ( parity != ( numrows & 1 ) ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n jpc_fix_minuseq ( lptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * DELTA ) , hptr2 [ 0 ] ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n lptr = & a [ 0 ] ;\n hptr = & a [ llen * stride ] ;\n if ( parity ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n jpc_fix_minuseq ( hptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * GAMMA ) , lptr2 [ 0 ] ) ) ;\n ++ hptr2 ;\n ++ lptr2 ;\n hptr += stride ;\n }\n n = numrows - llen - parity - ( parity == ( numrows & 1 ) ) ;\n while ( n -- > 0 ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n jpc_fix_minuseq ( hptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( GAMMA ) , jpc_fix_add ( lptr2 [ 0 ] , lptr2 [ stride ] ) ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n hptr += stride ;\n lptr += stride ;\n }\n if ( parity == ( numrows & 1 ) ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n jpc_fix_minuseq ( hptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * GAMMA ) , lptr2 [ 0 ] ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n lptr = & a [ 0 ] ;\n hptr = & a [ llen * stride ] ;\n if ( ! parity ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n jpc_fix_minuseq ( lptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * BETA ) , hptr2 [ 0 ] ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n lptr += stride ;\n }\n n = llen - ( ! parity ) - ( parity != ( numrows & 1 ) ) ;\n while ( n -- > 0 ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n jpc_fix_minuseq ( lptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( BETA ) , jpc_fix_add ( hptr2 [ 0 ] , hptr2 [ stride ] ) ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n lptr += stride ;\n hptr += stride ;\n }\n if ( parity != ( numrows & 1 ) ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n jpc_fix_minuseq ( lptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * BETA ) , hptr2 [ 0 ] ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n lptr = & a [ 0 ] ;\n hptr = & a [ llen * stride ] ;\n if ( parity ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n jpc_fix_minuseq ( hptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * ALPHA ) , lptr2 [ 0 ] ) ) ;\n ++ hptr2 ;\n ++ lptr2 ;\n hptr += stride ;\n }\n n = numrows - llen - parity - ( parity == ( numrows & 1 ) ) ;\n while ( n -- > 0 ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n jpc_fix_minuseq ( hptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( ALPHA ) , jpc_fix_add ( lptr2 [ 0 ] , lptr2 [ stride ] ) ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n hptr += stride ;\n lptr += stride ;\n }\n if ( parity == ( numrows & 1 ) ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n jpc_fix_minuseq ( hptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * ALPHA ) , lptr2 [ 0 ] ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n }\n else {\n # if defined ( WT_LENONE ) if ( parity ) {\n lptr2 = & a [ 0 ] ;\n lptr2 [ 0 ] = jpc_fix_asr ( lptr2 [ 0 ] , 1 ) ;\n ++ lptr2 ;\n }\n # endif }\n }"}
{"idx": 2905, "target": 0, "func": "static void mspack_fmap_free ( void * mem ) {\n if ( mem ) {\n free ( mem ) ;\n mem = NULL ;\n }\n return ;\n }"}
{"idx": 2906, "target": 0, "func": "static void http_chunked_writecb ( struct bufferevent * bev , void * arg ) {\n if ( EVBUFFER_LENGTH ( EVBUFFER_OUTPUT ( bev ) ) == 0 ) {\n bufferevent_enable ( bev , EV_READ ) ;\n test_ok ++ ;\n }\n }"}
{"idx": 2907, "target": 0, "func": "void mime_field_value_set_uint ( HdrHeap * heap , MIMEHdrImpl * mh , MIMEField * field , uint32_t value ) {\n char buf [ 16 ] ;\n int len = mime_format_uint ( buf , value , sizeof ( buf ) ) ;\n mime_field_value_set ( heap , mh , field , buf , len , true ) ;\n }"}
{"idx": 2908, "target": 0, "func": "Oid get_ordering_op_for_equality_op ( Oid opno , bool use_lhs_type ) {\n Oid result = InvalidOid ;\n CatCList * catlist ;\n int i ;\n catlist = SearchSysCacheList1 ( AMOPOPID , ObjectIdGetDatum ( opno ) ) ;\n for ( i = 0 ;\n i < catlist -> n_members ;\n i ++ ) {\n HeapTuple tuple = & catlist -> members [ i ] -> tuple ;\n Form_pg_amop aform = ( Form_pg_amop ) GETSTRUCT ( tuple ) ;\n if ( aform -> amopmethod != BTREE_AM_OID ) continue ;\n if ( aform -> amopstrategy == BTEqualStrategyNumber ) {\n Oid typid ;\n typid = use_lhs_type ? aform -> amoplefttype : aform -> amoprighttype ;\n result = get_opfamily_member ( aform -> amopfamily , typid , typid , BTLessStrategyNumber ) ;\n if ( OidIsValid ( result ) ) break ;\n }\n }\n ReleaseSysCacheList ( catlist ) ;\n return result ;\n }"}
{"idx": 2909, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ExtensionMessageBubbleViewBrowserTest , TestClickingLearnMoreButton ) {\n TestClickingLearnMoreButton ( ) ;\n }"}
{"idx": 2910, "target": 0, "func": "static int kex_agree_mac ( LIBSSH2_SESSION * session , libssh2_endpoint_data * endpoint , unsigned char * mac , unsigned long mac_len ) {\n const LIBSSH2_MAC_METHOD * * macp = _libssh2_mac_methods ( ) ;\n unsigned char * s ;\n ( void ) session ;\n if ( endpoint -> mac_prefs ) {\n s = ( unsigned char * ) endpoint -> mac_prefs ;\n while ( s && * s ) {\n unsigned char * p = ( unsigned char * ) strchr ( ( char * ) s , ',' ) ;\n size_t method_len = ( p ? ( size_t ) ( p - s ) : strlen ( ( char * ) s ) ) ;\n if ( kex_agree_instr ( mac , mac_len , s , method_len ) ) {\n const LIBSSH2_MAC_METHOD * method = ( const LIBSSH2_MAC_METHOD * ) kex_get_method_by_name ( ( char * ) s , method_len , ( const LIBSSH2_COMMON_METHOD * * ) macp ) ;\n if ( ! method ) {\n return - 1 ;\n }\n endpoint -> mac = method ;\n return 0 ;\n }\n s = p ? p + 1 : NULL ;\n }\n return - 1 ;\n }\n while ( * macp && ( * macp ) -> name ) {\n s = kex_agree_instr ( mac , mac_len , ( unsigned char * ) ( * macp ) -> name , strlen ( ( * macp ) -> name ) ) ;\n if ( s ) {\n endpoint -> mac = * macp ;\n return 0 ;\n }\n macp ++ ;\n }\n return - 1 ;\n }"}
{"idx": 2911, "target": 0, "func": "static inline void invalidate_page_bitmap ( PageDesc * p ) {\n if ( p -> code_bitmap ) {\n g_free ( p -> code_bitmap ) ;\n p -> code_bitmap = NULL ;\n }\n p -> code_write_count = 0 ;\n }"}
{"idx": 2912, "target": 0, "func": "static gboolean lacks_filesystem_info ( NautilusFile * file ) {\n return ! file -> details -> filesystem_info_is_up_to_date ;\n }"}
{"idx": 2913, "target": 0, "func": "int mem_draw_thin_line ( gx_device * dev , fixed fx0 , fixed fy0 , fixed fx1 , fixed fy1 , const gx_drawing_color * pdcolor , gs_logical_operation_t lop , fixed adjustx , fixed adjusty ) {\n return gx_default_draw_thin_line ( dev , fx0 , fy0 , fx1 , fy1 , pdcolor , lop , adjustx , adjusty ) ;\n }"}
{"idx": 2914, "target": 0, "func": "static void SRP_user_pwd_set_gN ( SRP_user_pwd * vinfo , const BIGNUM * g , const BIGNUM * N ) {\n vinfo -> N = N ;\n vinfo -> g = g ;\n }"}
{"idx": 2915, "target": 0, "func": "TEST_F ( BrowsingDataRemoverImplTest , RemoveQuotaManagedUnprotectedOrigins ) {\n # if BUILDFLAG ( ENABLE_EXTENSIONS ) MockExtensionSpecialStoragePolicy * policy = CreateMockPolicy ( ) ;\n policy -> AddProtected ( kOrigin1 . GetOrigin ( ) ) ;\n # endif BlockUntilBrowsingDataRemoved ( base : : Time ( ) , base : : Time : : Max ( ) , BrowsingDataRemover : : REMOVE_FILE_SYSTEMS | BrowsingDataRemover : : REMOVE_WEBSQL | BrowsingDataRemover : : REMOVE_APPCACHE | BrowsingDataRemover : : REMOVE_SERVICE_WORKERS | BrowsingDataRemover : : REMOVE_CACHE_STORAGE | BrowsingDataRemover : : REMOVE_INDEXEDDB , false ) ;\n EXPECT_EQ ( BrowsingDataRemover : : REMOVE_FILE_SYSTEMS | BrowsingDataRemover : : REMOVE_WEBSQL | BrowsingDataRemover : : REMOVE_APPCACHE | BrowsingDataRemover : : REMOVE_SERVICE_WORKERS | BrowsingDataRemover : : REMOVE_CACHE_STORAGE | BrowsingDataRemover : : REMOVE_INDEXEDDB , GetRemovalMask ( ) ) ;\n EXPECT_EQ ( BrowsingDataHelper : : UNPROTECTED_WEB , GetOriginTypeMask ( ) ) ;\n StoragePartitionRemovalData removal_data = GetStoragePartitionRemovalData ( ) ;\n EXPECT_EQ ( removal_data . remove_mask , StoragePartition : : REMOVE_DATA_MASK_FILE_SYSTEMS | StoragePartition : : REMOVE_DATA_MASK_WEBSQL | StoragePartition : : REMOVE_DATA_MASK_APPCACHE | StoragePartition : : REMOVE_DATA_MASK_SERVICE_WORKERS | StoragePartition : : REMOVE_DATA_MASK_CACHE_STORAGE | StoragePartition : : REMOVE_DATA_MASK_INDEXEDDB ) ;\n EXPECT_EQ ( removal_data . quota_storage_remove_mask , StoragePartition : : QUOTA_MANAGED_STORAGE_MASK_ALL ) ;\n EXPECT_EQ ( ShouldRemoveForProtectedOriginOne ( ) , removal_data . origin_matcher . Run ( kOrigin1 , mock_policy ( ) ) ) ;\n EXPECT_TRUE ( removal_data . origin_matcher . Run ( kOrigin2 , mock_policy ( ) ) ) ;\n EXPECT_TRUE ( removal_data . origin_matcher . Run ( kOrigin3 , mock_policy ( ) ) ) ;\n }"}
{"idx": 2916, "target": 0, "func": "static void dissect_rsvp_lsp_tunnel_if_id ( proto_tree * ti , packet_info * pinfo , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int type ) {\n proto_item_set_text ( ti , \"LSP INTERFACE-ID: \" ) ;\n switch ( type ) {\n case 1 : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"1 - Unnumbered interface\" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_lsp_tunnel_if_id_router_id , tvb , offset + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_lsp_tunnel_if_id_interface_id , tvb , offset + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_set_text ( ti , \"LSP INTERFACE-ID: Unnumbered, Router-ID %s, Interface-ID %d\" , tvb_ip_to_str ( tvb , offset + 4 ) , tvb_get_ntohl ( tvb , offset + 8 ) ) ;\n break ;\n case 2 : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"2 - IPv4\" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_lsp_tunnel_if_id_ipv4_interface_address , tvb , offset + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_lsp_tunnel_if_id_target_igp_instance , tvb , offset + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_set_text ( ti , \"LSP INTERFACE-ID: IPv4, interface address %s,\" \"IGP instance %s\" , tvb_ip_to_str ( tvb , offset + 4 ) , tvb_ip_to_str ( tvb , offset + 8 ) ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_lsp_tunnel_if_id_action , tvb , offset + 12 , 1 , ENC_BIG_ENDIAN ) ;\n dissect_rsvp_lsp_tunnel_if_id_tlv ( rsvp_object_tree , pinfo , tvb , offset + 16 , obj_length - 16 , TREE ( TT_LSP_TUNNEL_IF_ID_SUBTREE ) ) ;\n break ;\n case 3 : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"3 - IPv6\" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_lsp_tunnel_if_id_ipv6_interface_address , tvb , offset + 4 , 16 , ENC_NA ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_lsp_tunnel_if_id_target_igp_instance , tvb , offset + 20 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_set_text ( ti , \"LSP INTERFACE-ID: IPv6, interface address %s,\" \"IGP instance %s\" , tvb_ip6_to_str ( tvb , offset + 4 ) , tvb_ip_to_str ( tvb , offset + 20 ) ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_lsp_tunnel_if_id_action , tvb , offset + 24 , 1 , ENC_BIG_ENDIAN ) ;\n dissect_rsvp_lsp_tunnel_if_id_tlv ( rsvp_object_tree , pinfo , tvb , offset + 28 , obj_length - 28 , TREE ( TT_LSP_TUNNEL_IF_ID_SUBTREE ) ) ;\n break ;\n case 4 : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"4 - Unnumbered interface with target\" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_lsp_tunnel_if_id_router_id , tvb , offset + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_lsp_tunnel_if_id_interface_id , tvb , offset + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_lsp_tunnel_if_id_target_igp_instance , tvb , offset + 12 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_set_text ( ti , \"LSP INTERFACE-ID: Unnumbered with target, Router-ID %s,\" \" Interface-ID %d, IGP instance %s\" , tvb_ip_to_str ( tvb , offset + 4 ) , tvb_get_ntohl ( tvb , offset + 8 ) , tvb_ip_to_str ( tvb , offset + 12 ) ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_lsp_tunnel_if_id_action , tvb , offset + 16 , 1 , ENC_BIG_ENDIAN ) ;\n dissect_rsvp_lsp_tunnel_if_id_tlv ( rsvp_object_tree , pinfo , tvb , offset + 20 , obj_length - 20 , TREE ( TT_LSP_TUNNEL_IF_ID_SUBTREE ) ) ;\n break ;\n default : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"Unknown (%u)\" , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_lsp_tunnel_if_id_data , tvb , offset + 4 , obj_length - 4 , ENC_NA ) ;\n break ;\n }\n }"}
{"idx": 2917, "target": 0, "func": "static void e1000e_set_rfctl ( E1000ECore * core , int index , uint32_t val ) {\n trace_e1000e_rx_set_rfctl ( val ) ;\n if ( ! ( val & E1000_RFCTL_ISCSI_DIS ) ) {\n trace_e1000e_wrn_iscsi_filtering_not_supported ( ) ;\n }\n if ( ! ( val & E1000_RFCTL_NFSW_DIS ) ) {\n trace_e1000e_wrn_nfsw_filtering_not_supported ( ) ;\n }\n if ( ! ( val & E1000_RFCTL_NFSR_DIS ) ) {\n trace_e1000e_wrn_nfsr_filtering_not_supported ( ) ;\n }\n core -> mac [ RFCTL ] = val ;\n }"}
{"idx": 2918, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , UseCounterFeaturesInIframe ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : LOAD_EVENT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/page_load_metrics/use_counter_features_in_iframe.html\" ) ) ;\n waiter -> Wait ( ) ;\n NavigateToUntrackedUrl ( ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kFeaturesHistogramName , static_cast < int32_t > ( WebFeature : : kTextWholeText ) , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kFeaturesHistogramName , static_cast < int32_t > ( WebFeature : : kV8Element_Animate_Method ) , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kFeaturesHistogramName , static_cast < int32_t > ( WebFeature : : kNavigatorVibrate ) , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kFeaturesHistogramName , static_cast < int32_t > ( WebFeature : : kPageVisits ) , 1 ) ;\n }"}
{"idx": 2919, "target": 0, "func": "static int64_t get_sse ( const uint8_t * a , int a_stride , const uint8_t * b , int b_stride , int width , int height ) {\n const int dw = width % 16 ;\n const int dh = height % 16 ;\n int64_t total_sse = 0 ;\n unsigned int sse = 0 ;\n int sum = 0 ;\n int x , y ;\n if ( dw > 0 ) {\n variance ( & a [ width - dw ] , a_stride , & b [ width - dw ] , b_stride , dw , height , & sse , & sum ) ;\n total_sse += sse ;\n }\n if ( dh > 0 ) {\n variance ( & a [ ( height - dh ) * a_stride ] , a_stride , & b [ ( height - dh ) * b_stride ] , b_stride , width - dw , dh , & sse , & sum ) ;\n total_sse += sse ;\n }\n for ( y = 0 ;\n y < height / 16 ;\n ++ y ) {\n const uint8_t * pa = a ;\n const uint8_t * pb = b ;\n for ( x = 0 ;\n x < width / 16 ;\n ++ x ) {\n vp9_mse16x16 ( pa , a_stride , pb , b_stride , & sse ) ;\n total_sse += sse ;\n pa += 16 ;\n pb += 16 ;\n }\n a += 16 * a_stride ;\n b += 16 * b_stride ;\n }\n return total_sse ;\n }"}
{"idx": 2920, "target": 0, "func": "static void DecoderPlaySpu ( decoder_t * p_dec , subpicture_t * p_subpic ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n vout_thread_t * p_vout = p_owner -> p_spu_vout ;\n if ( p_subpic -> i_start <= VLC_TS_INVALID ) {\n msg_Warn ( p_dec , \"non-dated spu buffer received\" ) ;\n subpicture_Delete ( p_subpic ) ;\n return ;\n }\n vlc_mutex_lock ( & p_owner -> lock ) ;\n if ( p_owner -> b_waiting ) {\n p_owner -> b_has_data = true ;\n vlc_cond_signal ( & p_owner -> wait_acknowledge ) ;\n }\n bool b_reject = DecoderWaitUnblock ( p_dec ) ;\n DecoderFixTs ( p_dec , & p_subpic -> i_start , & p_subpic -> i_stop , NULL , NULL , INT64_MAX ) ;\n if ( p_subpic -> i_start <= VLC_TS_INVALID ) b_reject = true ;\n DecoderWaitDate ( p_dec , & b_reject , p_subpic -> i_start - SPU_MAX_PREPARE_TIME ) ;\n vlc_mutex_unlock ( & p_owner -> lock ) ;\n if ( ! b_reject ) vout_PutSubpicture ( p_vout , p_subpic ) ;\n else subpicture_Delete ( p_subpic ) ;\n }"}
{"idx": 2921, "target": 0, "func": "static int64_t rd_pick_intra_sby_mode ( VP9_COMP * cpi , MACROBLOCK * x , int * rate , int * rate_tokenonly , int64_t * distortion , int * skippable , BLOCK_SIZE bsize , int64_t tx_cache [ TX_MODES ] , int64_t best_rd ) {\n PREDICTION_MODE mode ;\n PREDICTION_MODE mode_selected = DC_PRED ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n MODE_INFO * const mic = xd -> mi [ 0 ] . src_mi ;\n int this_rate , this_rate_tokenonly , s ;\n int64_t this_distortion , this_rd ;\n TX_SIZE best_tx = TX_4X4 ;\n int i ;\n int * bmode_costs = cpi -> mbmode_cost ;\n if ( cpi -> sf . tx_size_search_method == USE_FULL_RD ) for ( i = 0 ;\n i < TX_MODES ;\n i ++ ) tx_cache [ i ] = INT64_MAX ;\n for ( mode = DC_PRED ;\n mode <= TM_PRED ;\n mode ++ ) {\n int64_t local_tx_cache [ TX_MODES ] ;\n MODE_INFO * above_mi = xd -> mi [ - xd -> mi_stride ] . src_mi ;\n MODE_INFO * left_mi = xd -> left_available ? xd -> mi [ - 1 ] . src_mi : NULL ;\n if ( cpi -> common . frame_type == KEY_FRAME ) {\n const PREDICTION_MODE A = vp9_above_block_mode ( mic , above_mi , 0 ) ;\n const PREDICTION_MODE L = vp9_left_block_mode ( mic , left_mi , 0 ) ;\n bmode_costs = cpi -> y_mode_costs [ A ] [ L ] ;\n }\n mic -> mbmi . mode = mode ;\n super_block_yrd ( cpi , x , & this_rate_tokenonly , & this_distortion , & s , NULL , bsize , local_tx_cache , best_rd ) ;\n if ( this_rate_tokenonly == INT_MAX ) continue ;\n this_rate = this_rate_tokenonly + bmode_costs [ mode ] ;\n this_rd = RDCOST ( x -> rdmult , x -> rddiv , this_rate , this_distortion ) ;\n if ( this_rd < best_rd ) {\n mode_selected = mode ;\n best_rd = this_rd ;\n best_tx = mic -> mbmi . tx_size ;\n * rate = this_rate ;\n * rate_tokenonly = this_rate_tokenonly ;\n * distortion = this_distortion ;\n * skippable = s ;\n }\n if ( cpi -> sf . tx_size_search_method == USE_FULL_RD && this_rd < INT64_MAX ) {\n for ( i = 0 ;\n i < TX_MODES && local_tx_cache [ i ] < INT64_MAX ;\n i ++ ) {\n const int64_t adj_rd = this_rd + local_tx_cache [ i ] - local_tx_cache [ cpi -> common . tx_mode ] ;\n if ( adj_rd < tx_cache [ i ] ) {\n tx_cache [ i ] = adj_rd ;\n }\n }\n }\n }\n mic -> mbmi . mode = mode_selected ;\n mic -> mbmi . tx_size = best_tx ;\n return best_rd ;\n }"}
{"idx": 2922, "target": 0, "func": "static const sasl_cmd * find_sasl_command ( tvbuff_t * tvb , gint offset ) {\n gint command_index ;\n for ( command_index = 0 ;\n command_index < sasl_commands_count ;\n command_index ++ ) {\n const sasl_cmd * cmd ;\n cmd = & sasl_commands [ command_index ] ;\n if ( 0 == tvb_strneql ( tvb , offset , cmd -> text , cmd -> length ) ) {\n return cmd ;\n }\n }\n return NULL ;\n }"}
{"idx": 2923, "target": 0, "func": "TEST_P ( GLES2DecoderTestWithCHROMIUMPathRendering , IsPathCHROMIUMInvalidArgsBadSharedMemoryId ) {\n EXPECT_CALL ( * gl_ , IsPathNV ( kServicePathId ) ) . Times ( 0 ) ;\n SpecializedSetup < cmds : : IsPathCHROMIUM , 0 > ( false ) ;\n cmds : : IsPathCHROMIUM cmd ;\n cmd . Init ( client_path_id_ , kInvalidSharedMemoryId , shared_memory_offset_ ) ;\n EXPECT_EQ ( error : : kOutOfBounds , ExecuteCmd ( cmd ) ) ;\n cmd . Init ( client_path_id_ , shared_memory_id_ , kInvalidSharedMemoryOffset ) ;\n EXPECT_EQ ( error : : kOutOfBounds , ExecuteCmd ( cmd ) ) ;\n }"}
{"idx": 2924, "target": 0, "func": "gint nautilus_mime_types_get_number_of_groups ( void ) {\n return G_N_ELEMENTS ( mimetype_groups ) ;\n }"}
{"idx": 2925, "target": 0, "func": "static void writer_print_ts ( WriterContext * wctx , const char * key , int64_t ts , int is_duration ) {\n if ( ( ! is_duration && ts == AV_NOPTS_VALUE ) || ( is_duration && ts == 0 ) ) {\n writer_print_string ( wctx , key , \"N/A\" , PRINT_STRING_OPT ) ;\n }\n else {\n writer_print_integer ( wctx , key , ts ) ;\n }\n }"}
{"idx": 2926, "target": 0, "func": "static int32_t virtio_net_flush_tx ( VirtIONet * n , VirtQueue * vq ) {\n VirtQueueElement elem ;\n int32_t num_packets = 0 ;\n if ( ! ( n -> vdev . status & VIRTIO_CONFIG_S_DRIVER_OK ) ) {\n return num_packets ;\n }\n assert ( n -> vdev . vm_running ) ;\n if ( n -> async_tx . elem . out_num ) {\n virtio_queue_set_notification ( n -> tx_vq , 0 ) ;\n return num_packets ;\n }\n while ( virtqueue_pop ( vq , & elem ) ) {\n ssize_t ret , len = 0 ;\n unsigned int out_num = elem . out_num ;\n struct iovec * out_sg = & elem . out_sg [ 0 ] ;\n unsigned hdr_len ;\n hdr_len = n -> mergeable_rx_bufs ? sizeof ( struct virtio_net_hdr_mrg_rxbuf ) : sizeof ( struct virtio_net_hdr ) ;\n if ( out_num < 1 || out_sg -> iov_len != hdr_len ) {\n error_report ( \"virtio-net header not in first element\" ) ;\n exit ( 1 ) ;\n }\n if ( ! n -> has_vnet_hdr ) {\n out_num -- ;\n out_sg ++ ;\n len += hdr_len ;\n }\n else if ( n -> mergeable_rx_bufs ) {\n hdr_len -= sizeof ( struct virtio_net_hdr ) ;\n out_sg -> iov_len -= hdr_len ;\n len += hdr_len ;\n }\n ret = qemu_sendv_packet_async ( & n -> nic -> nc , out_sg , out_num , virtio_net_tx_complete ) ;\n if ( ret == 0 ) {\n virtio_queue_set_notification ( n -> tx_vq , 0 ) ;\n n -> async_tx . elem = elem ;\n n -> async_tx . len = len ;\n return - EBUSY ;\n }\n len += ret ;\n virtqueue_push ( vq , & elem , len ) ;\n virtio_notify ( & n -> vdev , vq ) ;\n if ( ++ num_packets >= n -> tx_burst ) {\n break ;\n }\n }\n return num_packets ;\n }"}
{"idx": 2927, "target": 0, "func": "static void afx_class_init ( ObjectClass * klass , void * data ) {\n SysBusDeviceClass * k = SYS_BUS_DEVICE_CLASS ( klass ) ;\n k -> init = afx_init1 ;\n }"}
{"idx": 2928, "target": 0, "func": "void pim_print ( netdissect_options * ndo , register const u_char * bp , register u_int len , const u_char * bp2 ) {\n register const u_char * ep ;\n register const struct pim * pim = ( const struct pim * ) bp ;\n ep = ( const u_char * ) ndo -> ndo_snapend ;\n if ( bp >= ep ) return ;\n # ifdef notyet ND_TCHECK ( pim -> pim_rsv ) ;\n # endif switch ( PIM_VER ( pim -> pim_typever ) ) {\n case 2 : if ( ! ndo -> ndo_vflag ) {\n ND_PRINT ( ( ndo , \"PIMv%u, %s, length %u\" , PIM_VER ( pim -> pim_typever ) , tok2str ( pimv2_type_values , \"Unknown Type\" , PIM_TYPE ( pim -> pim_typever ) ) , len ) ) ;\n return ;\n }\n else {\n ND_PRINT ( ( ndo , \"PIMv%u, length %u\\n\\t%s\" , PIM_VER ( pim -> pim_typever ) , len , tok2str ( pimv2_type_values , \"Unknown Type\" , PIM_TYPE ( pim -> pim_typever ) ) ) ) ;\n pimv2_print ( ndo , bp , len , bp2 ) ;\n }\n break ;\n default : ND_PRINT ( ( ndo , \"PIMv%u, length %u\" , PIM_VER ( pim -> pim_typever ) , len ) ) ;\n break ;\n }\n return ;\n }"}
{"idx": 2929, "target": 0, "func": "unsigned int vp9_sub_pixel_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp2 , W , dst , dst_stride , sse ) ;\n \\ }\n # define SUBPIX_AVG_VAR ( W , H ) unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 ) VAR ( 8 , 4 ) SUBPIX_VAR ( 8 , 4 ) SUBPIX_AVG_VAR ( 8 , 4 ) VAR ( 8 , 8 ) SUBPIX_VAR ( 8 , 8 ) SUBPIX_AVG_VAR ( 8 , 8 ) VAR ( 8 , 16 ) SUBPIX_VAR ( 8 , 16 ) SUBPIX_AVG_VAR ( 8 , 16 ) VAR ( 16 , 8 ) SUBPIX_VAR ( 16 , 8 ) SUBPIX_AVG_VAR ( 16 , 8 ) VAR ( 16 , 16 ) SUBPIX_VAR ( 16 , 16 ) SUBPIX_AVG_VAR ( 16 , 16 ) VAR ( 16 , 32 ) SUBPIX_VAR ( 16 , 32 )"}
{"idx": 2930, "target": 0, "func": "static int ztoken_continue ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n scanner_state * pstate ;\n check_stype ( * op , st_scanner_state_dynamic ) ;\n pstate = r_ptr ( op , scanner_state ) ;\n return token_continue ( i_ctx_p , pstate , false ) ;\n }"}
{"idx": 2931, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( BluetoothChooserBrowserTest , InvokeDialog_ScanningWithDevicesBubble ) {\n set_status ( FakeBluetoothChooserController : : BluetoothStatus : : SCANNING ) ;\n AddDeviceForAllStrengths ( ) ;\n RunDialog ( ) ;\n }"}
{"idx": 2932, "target": 0, "func": "int qemuMonitorJSONStartCPUs ( qemuMonitorPtr mon , virConnectPtr conn ATTRIBUTE_UNUSED ) {\n int ret ;\n virJSONValuePtr cmd = qemuMonitorJSONMakeCommand ( \"cont\" , NULL ) ;\n virJSONValuePtr reply = NULL ;\n int i = 0 , timeout = 3 ;\n if ( ! cmd ) return - 1 ;\n do {\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret != 0 ) break ;\n if ( ( ret = qemuMonitorJSONCheckError ( cmd , reply ) ) == 0 ) break ;\n if ( ! qemuMonitorJSONHasError ( reply , \"MigrationExpected\" ) ) break ;\n virJSONValueFree ( reply ) ;\n reply = NULL ;\n usleep ( 250000 ) ;\n }\n while ( ++ i <= timeout ) ;\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 2933, "target": 1, "func": "static void process_packet_data ( struct wtap_pkthdr * phdr , Buffer * target , guint8 * buffer , gint len , k12_t * k12 ) {\n guint32 type ;\n guint buffer_offset ;\n guint64 ts ;\n guint32 length ;\n guint32 extra_len ;\n guint32 src_id ;\n k12_src_desc_t * src_desc ;\n phdr -> rec_type = REC_TYPE_PACKET ;\n phdr -> presence_flags = WTAP_HAS_TS ;\n ts = pntoh64 ( buffer + K12_PACKET_TIMESTAMP ) ;\n phdr -> ts . secs = ( guint32 ) ( ( ts / 2000000 ) + 631152000 ) ;\n phdr -> ts . nsecs = ( guint32 ) ( ( ts % 2000000 ) * 500 ) ;\n length = pntoh32 ( buffer + K12_RECORD_FRAME_LEN ) & 0x00001FFF ;\n phdr -> len = phdr -> caplen = length ;\n type = pntoh32 ( buffer + K12_RECORD_TYPE ) ;\n buffer_offset = ( type == K12_REC_D0020 ) ? K12_PACKET_FRAME_D0020 : K12_PACKET_FRAME ;\n ws_buffer_assure_space ( target , length ) ;\n memcpy ( ws_buffer_start_ptr ( target ) , buffer + buffer_offset , length ) ;\n extra_len = len - buffer_offset - length ;\n ws_buffer_assure_space ( & ( k12 -> extra_info ) , extra_len ) ;\n memcpy ( ws_buffer_start_ptr ( & ( k12 -> extra_info ) ) , buffer + buffer_offset + length , extra_len ) ;\n phdr -> pseudo_header . k12 . extra_info = ( guint8 * ) ws_buffer_start_ptr ( & ( k12 -> extra_info ) ) ;\n phdr -> pseudo_header . k12 . extra_length = extra_len ;\n src_id = pntoh32 ( buffer + K12_RECORD_SRC_ID ) ;\n K12_DBG ( 5 , ( \"process_packet_data: src_id=%.8x\" , src_id ) ) ;\n phdr -> pseudo_header . k12 . input = src_id ;\n if ( ! ( src_desc = ( k12_src_desc_t * ) g_hash_table_lookup ( k12 -> src_by_id , GUINT_TO_POINTER ( src_id ) ) ) ) {\n src_desc = ( k12_src_desc_t * ) g_hash_table_lookup ( k12 -> src_by_id , GUINT_TO_POINTER ( src_id & K12_RECORD_SRC_ID_MASK ) ) ;\n }\n if ( src_desc ) {\n K12_DBG ( 5 , ( \"process_packet_data: input_name='%s' stack_file='%s' type=%x\" , src_desc -> input_name , src_desc -> stack_file , src_desc -> input_type ) ) ;\n phdr -> pseudo_header . k12 . input_name = src_desc -> input_name ;\n phdr -> pseudo_header . k12 . stack_file = src_desc -> stack_file ;\n phdr -> pseudo_header . k12 . input_type = src_desc -> input_type ;\n switch ( src_desc -> input_type ) {\n case K12_PORT_ATMPVC : if ( ( long ) ( buffer_offset + length + K12_PACKET_OFFSET_CID ) < len ) {\n phdr -> pseudo_header . k12 . input_info . atm . vp = pntoh16 ( buffer + buffer_offset + length + K12_PACKET_OFFSET_VP ) ;\n phdr -> pseudo_header . k12 . input_info . atm . vc = pntoh16 ( buffer + buffer_offset + length + K12_PACKET_OFFSET_VC ) ;\n phdr -> pseudo_header . k12 . input_info . atm . cid = * ( ( unsigned char * ) ( buffer + buffer_offset + length + K12_PACKET_OFFSET_CID ) ) ;\n break ;\n }\n default : memcpy ( & ( phdr -> pseudo_header . k12 . input_info ) , & ( src_desc -> input_info ) , sizeof ( src_desc -> input_info ) ) ;\n break ;\n }\n }\n else {\n K12_DBG ( 5 , ( \"process_packet_data: NO SRC_RECORD FOUND\" ) ) ;\n memset ( & ( phdr -> pseudo_header . k12 ) , 0 , sizeof ( phdr -> pseudo_header . k12 ) ) ;\n phdr -> pseudo_header . k12 . input_name = \"unknown port\" ;\n phdr -> pseudo_header . k12 . stack_file = \"unknown stack file\" ;\n }\n phdr -> pseudo_header . k12 . input = src_id ;\n phdr -> pseudo_header . k12 . stuff = k12 ;\n }"}
{"idx": 2934, "target": 0, "func": "static int dca_parse_frame_header ( DCAContext * s ) {\n init_get_bits ( & s -> gb , s -> dca_buffer , s -> dca_buffer_size * 8 ) ;\n skip_bits_long ( & s -> gb , 32 ) ;\n s -> frame_type = get_bits ( & s -> gb , 1 ) ;\n s -> samples_deficit = get_bits ( & s -> gb , 5 ) + 1 ;\n s -> crc_present = get_bits ( & s -> gb , 1 ) ;\n s -> sample_blocks = get_bits ( & s -> gb , 7 ) + 1 ;\n s -> frame_size = get_bits ( & s -> gb , 14 ) + 1 ;\n if ( s -> frame_size < 95 ) return AVERROR_INVALIDDATA ;\n s -> amode = get_bits ( & s -> gb , 6 ) ;\n s -> sample_rate = avpriv_dca_sample_rates [ get_bits ( & s -> gb , 4 ) ] ;\n if ( ! s -> sample_rate ) return AVERROR_INVALIDDATA ;\n s -> bit_rate_index = get_bits ( & s -> gb , 5 ) ;\n s -> bit_rate = dca_bit_rates [ s -> bit_rate_index ] ;\n if ( ! s -> bit_rate ) return AVERROR_INVALIDDATA ;\n s -> downmix = get_bits ( & s -> gb , 1 ) ;\n s -> dynrange = get_bits ( & s -> gb , 1 ) ;\n s -> timestamp = get_bits ( & s -> gb , 1 ) ;\n s -> aux_data = get_bits ( & s -> gb , 1 ) ;\n s -> hdcd = get_bits ( & s -> gb , 1 ) ;\n s -> ext_descr = get_bits ( & s -> gb , 3 ) ;\n s -> ext_coding = get_bits ( & s -> gb , 1 ) ;\n s -> aspf = get_bits ( & s -> gb , 1 ) ;\n s -> lfe = get_bits ( & s -> gb , 2 ) ;\n s -> predictor_history = get_bits ( & s -> gb , 1 ) ;\n if ( s -> crc_present ) s -> header_crc = get_bits ( & s -> gb , 16 ) ;\n s -> multirate_inter = get_bits ( & s -> gb , 1 ) ;\n s -> version = get_bits ( & s -> gb , 4 ) ;\n s -> copy_history = get_bits ( & s -> gb , 2 ) ;\n s -> source_pcm_res = get_bits ( & s -> gb , 3 ) ;\n s -> front_sum = get_bits ( & s -> gb , 1 ) ;\n s -> surround_sum = get_bits ( & s -> gb , 1 ) ;\n s -> dialog_norm = get_bits ( & s -> gb , 4 ) ;\n s -> output = s -> amode ;\n if ( s -> lfe ) s -> output |= DCA_LFE ;\n # ifdef TRACE av_log ( s -> avctx , AV_LOG_DEBUG , \"frame type: %i\\n\" , s -> frame_type ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"samples deficit: %i\\n\" , s -> samples_deficit ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"crc present: %i\\n\" , s -> crc_present ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"sample blocks: %i (%i samples)\\n\" , s -> sample_blocks , s -> sample_blocks * 32 ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"frame size: %i bytes\\n\" , s -> frame_size ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"amode: %i (%i channels)\\n\" , s -> amode , dca_channels [ s -> amode ] ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"sample rate: %i Hz\\n\" , s -> sample_rate ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"bit rate: %i bits/s\\n\" , s -> bit_rate ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"downmix: %i\\n\" , s -> downmix ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"dynrange: %i\\n\" , s -> dynrange ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"timestamp: %i\\n\" , s -> timestamp ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"aux_data: %i\\n\" , s -> aux_data ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"hdcd: %i\\n\" , s -> hdcd ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"ext descr: %i\\n\" , s -> ext_descr ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"ext coding: %i\\n\" , s -> ext_coding ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"aspf: %i\\n\" , s -> aspf ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"lfe: %i\\n\" , s -> lfe ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"predictor history: %i\\n\" , s -> predictor_history ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"header crc: %i\\n\" , s -> header_crc ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"multirate inter: %i\\n\" , s -> multirate_inter ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"version number: %i\\n\" , s -> version ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"copy history: %i\\n\" , s -> copy_history ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"source pcm resolution: %i (%i bits/sample)\\n\" , s -> source_pcm_res , dca_bits_per_sample [ s -> source_pcm_res ] ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"front sum: %i\\n\" , s -> front_sum ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"surround sum: %i\\n\" , s -> surround_sum ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"dialog norm: %i\\n\" , s -> dialog_norm ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"\\n\" ) ;\n # endif s -> subframes = get_bits ( & s -> gb , 4 ) + 1 ;\n return dca_parse_audio_coding_header ( s , 0 ) ;\n }"}
{"idx": 2935, "target": 1, "func": "static int find_best_16x16_intra ( VP9_COMP * cpi , PREDICTION_MODE * pbest_mode ) {\n MACROBLOCK * const x = & cpi -> mb ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n PREDICTION_MODE best_mode = - 1 , mode ;\n unsigned int best_err = INT_MAX ;\n for ( mode = DC_PRED ;\n mode <= TM_PRED ;\n mode ++ ) {\n unsigned int err ;\n xd -> mi [ 0 ] -> mbmi . mode = mode ;\n vp9_predict_intra_block ( xd , 0 , 2 , TX_16X16 , mode , x -> plane [ 0 ] . src . buf , x -> plane [ 0 ] . src . stride , xd -> plane [ 0 ] . dst . buf , xd -> plane [ 0 ] . dst . stride , 0 , 0 , 0 ) ;\n err = vp9_sad16x16 ( x -> plane [ 0 ] . src . buf , x -> plane [ 0 ] . src . stride , xd -> plane [ 0 ] . dst . buf , xd -> plane [ 0 ] . dst . stride ) ;\n if ( err < best_err ) {\n best_err = err ;\n best_mode = mode ;\n }\n }\n if ( pbest_mode ) * pbest_mode = best_mode ;\n return best_err ;\n }"}
{"idx": 2936, "target": 0, "func": "static inline uint16_t e1000e_get_reg_index_with_offset ( const uint16_t * mac_reg_access , hwaddr addr ) {\n uint16_t index = ( addr & 0x1ffff ) >> 2 ;\n return index + ( mac_reg_access [ index ] & 0xfffe ) ;\n }"}
{"idx": 2937, "target": 0, "func": "static void reset_temporal_layer_change ( VP8_COMP * cpi , VP8_CONFIG * oxcf , const int prev_num_layers ) {\n int i ;\n double prev_layer_framerate = 0 ;\n const int curr_num_layers = cpi -> oxcf . number_of_layers ;\n if ( prev_num_layers == 1 ) {\n cpi -> current_layer = 0 ;\n save_layer_context ( cpi ) ;\n }\n for ( i = 0 ;\n i < curr_num_layers ;\n i ++ ) {\n LAYER_CONTEXT * lc = & cpi -> layer_context [ i ] ;\n if ( i >= prev_num_layers ) {\n init_temporal_layer_context ( cpi , oxcf , i , prev_layer_framerate ) ;\n }\n lc -> buffer_level = cpi -> oxcf . starting_buffer_level_in_ms * cpi -> oxcf . target_bitrate [ i ] ;\n lc -> bits_off_target = lc -> buffer_level ;\n if ( curr_num_layers == 1 ) {\n lc -> target_bandwidth = cpi -> oxcf . target_bandwidth ;\n lc -> buffer_level = cpi -> oxcf . starting_buffer_level_in_ms * lc -> target_bandwidth / 1000 ;\n lc -> bits_off_target = lc -> buffer_level ;\n restore_layer_context ( cpi , 0 ) ;\n }\n prev_layer_framerate = cpi -> output_framerate / cpi -> oxcf . rate_decimator [ i ] ;\n }\n }"}
{"idx": 2938, "target": 0, "func": "static void cmd_window_balance ( void ) {\n GSList * sorted , * stmp , * line , * ltmp ;\n int avail_size , unit_size , bigger_units ;\n int windows , last_line , old_size ;\n MAIN_WINDOW_REC * win ;\n windows = g_slist_length ( mainwindows ) ;\n if ( windows == 1 ) return ;\n sorted = NULL ;\n windows = 0 ;\n for ( win = mainwindows_find_lower ( NULL ) ;\n win != NULL ;\n win = mainwindows_find_lower ( win ) ) {\n windows ++ ;\n sorted = g_slist_append ( sorted , win ) ;\n }\n avail_size = term_height - screen_reserved_top - screen_reserved_bottom ;\n unit_size = avail_size / windows ;\n bigger_units = avail_size % windows ;\n last_line = screen_reserved_top ;\n for ( stmp = sorted ;\n stmp != NULL ;\n stmp = stmp -> next ) {\n win = stmp -> data ;\n line = mainwindows_get_line ( win ) ;\n for ( ltmp = line ;\n ltmp != NULL ;\n ltmp = ltmp -> next ) {\n MAIN_WINDOW_REC * rec = ltmp -> data ;\n old_size = rec -> height ;\n rec -> first_line = last_line ;\n rec -> last_line = rec -> first_line + unit_size - 1 ;\n if ( bigger_units > 0 ) {\n rec -> last_line ++ ;\n }\n rec -> height = rec -> last_line - rec -> first_line + 1 ;\n mainwindow_resize ( rec , 0 , rec -> height - old_size ) ;\n }\n if ( line != NULL && bigger_units > 0 ) {\n bigger_units -- ;\n }\n last_line = win -> last_line + 1 ;\n g_slist_free ( line ) ;\n }\n g_slist_free ( sorted ) ;\n mainwindows_redraw ( ) ;\n }"}
{"idx": 2939, "target": 0, "func": "static int dissect_h225_CicInfo ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_CicInfo , CicInfo_sequence ) ;\n return offset ;\n }"}
{"idx": 2940, "target": 0, "func": "void * xmalloc ( size_t num , size_t size ) {\n size_t res ;\n if ( check_mul_overflow ( num , size , & res ) ) abort ( ) ;\n void * ptr = malloc ( res ) ;\n if ( ! ptr && ( size != 0 ) ) {\n perror ( \"xmalloc: Memory allocation failure\" ) ;\n abort ( ) ;\n }\n return ptr ;\n }"}
{"idx": 2941, "target": 1, "func": "static void feature_destroy ( hb_feature_t * g ) {\n free ( g ) ;\n }"}
{"idx": 2942, "target": 0, "func": "static void model256_update ( Model256 * m , int val ) {\n int i , sum = 0 ;\n unsigned scale ;\n int send , sidx = 1 ;\n m -> weights [ val ] ++ ;\n m -> till_rescale -- ;\n if ( m -> till_rescale ) return ;\n m -> tot_weight += m -> upd_val ;\n if ( m -> tot_weight > 0x8000 ) {\n m -> tot_weight = 0 ;\n for ( i = 0 ;\n i < 256 ;\n i ++ ) {\n m -> weights [ i ] = ( m -> weights [ i ] + 1 ) >> 1 ;\n m -> tot_weight += m -> weights [ i ] ;\n }\n }\n scale = 0x80000000u / m -> tot_weight ;\n m -> secondary [ 0 ] = 0 ;\n for ( i = 0 ;\n i < 256 ;\n i ++ ) {\n m -> freqs [ i ] = sum * scale >> 16 ;\n sum += m -> weights [ i ] ;\n send = m -> freqs [ i ] >> MODEL256_SEC_SCALE ;\n while ( sidx <= send ) m -> secondary [ sidx ++ ] = i - 1 ;\n }\n while ( sidx < m -> sec_size ) m -> secondary [ sidx ++ ] = 255 ;\n m -> upd_val = m -> upd_val * 5 >> 2 ;\n if ( m -> upd_val > m -> max_upd_val ) m -> upd_val = m -> max_upd_val ;\n m -> till_rescale = m -> upd_val ;\n }"}
{"idx": 2943, "target": 0, "func": "static int SpoolssDeletePrinter_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , NULL , NULL , FALSE , FALSE ) ;\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 2944, "target": 0, "func": "static void nbd_export_closed ( NBDExport * exp ) {\n assert ( state == TERMINATING ) ;\n state = TERMINATED ;\n }"}
{"idx": 2945, "target": 0, "func": "static void restore_layer_context ( VP8_COMP * cpi , const int layer ) {\n LAYER_CONTEXT * lc = & cpi -> layer_context [ layer ] ;\n cpi -> current_layer = layer ;\n cpi -> target_bandwidth = lc -> target_bandwidth ;\n cpi -> oxcf . target_bandwidth = lc -> target_bandwidth ;\n cpi -> oxcf . starting_buffer_level = lc -> starting_buffer_level ;\n cpi -> oxcf . optimal_buffer_level = lc -> optimal_buffer_level ;\n cpi -> oxcf . maximum_buffer_size = lc -> maximum_buffer_size ;\n cpi -> oxcf . starting_buffer_level_in_ms = lc -> starting_buffer_level_in_ms ;\n cpi -> oxcf . optimal_buffer_level_in_ms = lc -> optimal_buffer_level_in_ms ;\n cpi -> oxcf . maximum_buffer_size_in_ms = lc -> maximum_buffer_size_in_ms ;\n cpi -> buffer_level = lc -> buffer_level ;\n cpi -> bits_off_target = lc -> bits_off_target ;\n cpi -> total_actual_bits = lc -> total_actual_bits ;\n cpi -> active_worst_quality = lc -> active_worst_quality ;\n cpi -> active_best_quality = lc -> active_best_quality ;\n cpi -> ni_av_qi = lc -> ni_av_qi ;\n cpi -> ni_tot_qi = lc -> ni_tot_qi ;\n cpi -> ni_frames = lc -> ni_frames ;\n cpi -> avg_frame_qindex = lc -> avg_frame_qindex ;\n cpi -> rate_correction_factor = lc -> rate_correction_factor ;\n cpi -> key_frame_rate_correction_factor = lc -> key_frame_rate_correction_factor ;\n cpi -> gf_rate_correction_factor = lc -> gf_rate_correction_factor ;\n cpi -> mb . zbin_over_quant = lc -> zbin_over_quant ;\n cpi -> inter_frame_target = lc -> inter_frame_target ;\n cpi -> total_byte_count = lc -> total_byte_count ;\n cpi -> common . filter_level = lc -> filter_level ;\n cpi -> last_frame_percent_intra = lc -> last_frame_percent_intra ;\n memcpy ( cpi -> mb . count_mb_ref_frame_usage , lc -> count_mb_ref_frame_usage , sizeof ( cpi -> mb . count_mb_ref_frame_usage ) ) ;\n }"}
{"idx": 2946, "target": 0, "func": "static int __attribute_noinline__ link_exists2_p ( const char * dir , size_t dirlen , const char * fname , glob_t * pglob # ifndef _LIBC , int flags # endif ) {\n size_t fnamelen = strlen ( fname ) ;\n char * fullname = ( char * ) __alloca ( dirlen + 1 + fnamelen + 1 ) ;\n struct stat st ;\n # ifndef _LIBC struct_stat64 st64 ;\n # endif mempcpy ( mempcpy ( mempcpy ( fullname , dir , dirlen ) , \"/\" , 1 ) , fname , fnamelen + 1 ) ;\n # ifdef _LIBC return ( * pglob -> gl_stat ) ( fullname , & st ) == 0 ;\n # else return ( ( __builtin_expect ( flags & GLOB_ALTDIRFUNC , 0 ) ? ( * pglob -> gl_stat ) ( fullname , & st ) : __stat64 ( fullname , & st64 ) ) == 0 ) ;\n # endif }"}
{"idx": 2947, "target": 0, "func": "static int dissect_h245_INTEGER_1_128 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 128U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 2948, "target": 0, "func": "static char * sic10_opaque_literal_attr ( tvbuff_t * tvb , guint32 offset , const char * token , guint8 codepage _U_ , guint32 * length ) {\n guint32 data_len = tvb_get_guintvar ( tvb , offset , length ) ;\n char * str = NULL ;\n if ( token && ( ( strcmp ( token , \"created\" ) == 0 ) || ( strcmp ( token , \"si-expires\" ) == 0 ) ) ) {\n str = date_time_from_opaque ( tvb , offset + * length , data_len ) ;\n }\n if ( str == NULL ) {\n str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"(%d bytes of unparsed opaque data)\" , data_len ) ;\n }\n * length += data_len ;\n return str ;\n }"}
{"idx": 2949, "target": 0, "func": "static void tqi_calculate_qtable ( MpegEncContext * s , int quant ) {\n const int qscale = ( 215 - 2 * quant ) * 5 ;\n int i ;\n s -> intra_matrix [ 0 ] = ( ff_inv_aanscales [ 0 ] * ff_mpeg1_default_intra_matrix [ 0 ] ) >> 11 ;\n for ( i = 1 ;\n i < 64 ;\n i ++ ) s -> intra_matrix [ i ] = ( ff_inv_aanscales [ i ] * ff_mpeg1_default_intra_matrix [ i ] * qscale + 32 ) >> 14 ;\n }"}
{"idx": 2950, "target": 0, "func": "void vp8_fast_quantize_b_c ( BLOCK * b , BLOCKD * d ) {\n int i , rc , eob ;\n int x , y , z , sz ;\n short * coeff_ptr = b -> coeff ;\n short * round_ptr = b -> round ;\n short * quant_ptr = b -> quant_fast ;\n short * qcoeff_ptr = d -> qcoeff ;\n short * dqcoeff_ptr = d -> dqcoeff ;\n short * dequant_ptr = d -> dequant ;\n eob = - 1 ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n rc = vp8_default_zig_zag1d [ i ] ;\n z = coeff_ptr [ rc ] ;\n sz = ( z >> 31 ) ;\n x = ( z ^ sz ) - sz ;\n y = ( ( x + round_ptr [ rc ] ) * quant_ptr [ rc ] ) >> 16 ;\n x = ( y ^ sz ) - sz ;\n qcoeff_ptr [ rc ] = x ;\n dqcoeff_ptr [ rc ] = x * dequant_ptr [ rc ] ;\n if ( y ) {\n eob = i ;\n }\n }\n * d -> eob = ( char ) ( eob + 1 ) ;\n }"}
{"idx": 2951, "target": 0, "func": "static Datum ExecEvalConvertRowtype ( ConvertRowtypeExprState * cstate , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n ConvertRowtypeExpr * convert = ( ConvertRowtypeExpr * ) cstate -> xprstate . expr ;\n HeapTuple result ;\n Datum tupDatum ;\n HeapTupleHeader tuple ;\n HeapTupleData tmptup ;\n tupDatum = ExecEvalExpr ( cstate -> arg , econtext , isNull , isDone ) ;\n if ( * isNull ) return tupDatum ;\n tuple = DatumGetHeapTupleHeader ( tupDatum ) ;\n if ( cstate -> indesc == NULL ) {\n get_cached_rowtype ( exprType ( ( Node * ) convert -> arg ) , - 1 , & cstate -> indesc , econtext ) ;\n cstate -> initialized = false ;\n }\n if ( cstate -> outdesc == NULL ) {\n get_cached_rowtype ( convert -> resulttype , - 1 , & cstate -> outdesc , econtext ) ;\n cstate -> initialized = false ;\n }\n Assert ( HeapTupleHeaderGetTypeId ( tuple ) == cstate -> indesc -> tdtypeid || HeapTupleHeaderGetTypeId ( tuple ) == RECORDOID ) ;\n if ( ! cstate -> initialized ) {\n MemoryContext old_cxt ;\n old_cxt = MemoryContextSwitchTo ( econtext -> ecxt_per_query_memory ) ;\n cstate -> map = convert_tuples_by_name ( cstate -> indesc , cstate -> outdesc , gettext_noop ( \"could not convert row type\" ) ) ;\n cstate -> initialized = true ;\n MemoryContextSwitchTo ( old_cxt ) ;\n }\n if ( cstate -> map == NULL ) return tupDatum ;\n tmptup . t_len = HeapTupleHeaderGetDatumLength ( tuple ) ;\n tmptup . t_data = tuple ;\n result = do_convert_tuple ( & tmptup , cstate -> map ) ;\n return HeapTupleGetDatum ( result ) ;\n }"}
{"idx": 2952, "target": 0, "func": "static int dissect_zbee_zcl_ota ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n proto_tree * payload_tree ;\n zbee_zcl_packet * zcl ;\n guint offset = 0 ;\n guint8 cmd_id ;\n gint rem_len ;\n if ( data == NULL ) return 0 ;\n zcl = ( zbee_zcl_packet * ) data ;\n cmd_id = zcl -> cmd_id ;\n if ( zcl -> direction == ZBEE_ZCL_FCF_TO_SERVER ) {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"%s, Seq: %u\" , val_to_str_const ( cmd_id , zbee_zcl_ota_srv_rx_cmd_names , \"Unknown Command\" ) , zcl -> tran_seqno ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_srv_rx_cmd_id , tvb , offset , 1 , cmd_id ) ;\n rem_len = tvb_reported_length_remaining ( tvb , ++ offset ) ;\n if ( rem_len > 0 ) {\n payload_tree = proto_tree_add_subtree ( tree , tvb , offset , rem_len , ett_zbee_zcl_ota , NULL , \"Payload\" ) ;\n switch ( cmd_id ) {\n case ZBEE_ZCL_CMD_ID_OTA_QUERY_NEXT_IMAGE_REQ : dissect_zcl_ota_querynextimagereq ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_OTA_IMAGE_BLOCK_REQ : dissect_zcl_ota_imageblockreq ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_OTA_IMAGE_PAGE_REQ : dissect_zcl_ota_imagepagereq ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_OTA_UPGRADE_END_REQ : dissect_zcl_ota_upgradeendreq ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_OTA_QUERY_SPEC_FILE_REQ : dissect_zcl_ota_queryspecfilereq ( tvb , payload_tree , & offset ) ;\n break ;\n default : break ;\n }\n }\n }\n else {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"%s, Seq: %u\" , val_to_str_const ( cmd_id , zbee_zcl_ota_srv_tx_cmd_names , \"Unknown Command\" ) , zcl -> tran_seqno ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_srv_tx_cmd_id , tvb , offset , 1 , cmd_id ) ;\n rem_len = tvb_reported_length_remaining ( tvb , ++ offset ) ;\n if ( rem_len > 0 ) {\n payload_tree = proto_tree_add_subtree ( tree , tvb , offset , rem_len , ett_zbee_zcl_ota , NULL , \"Payload\" ) ;\n switch ( cmd_id ) {\n case ZBEE_ZCL_CMD_ID_OTA_IMAGE_NOTIFY : dissect_zcl_ota_imagenotify ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_OTA_QUERY_NEXT_IMAGE_RSP : dissect_zcl_ota_querynextimagersp ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_OTA_IMAGE_BLOCK_RSP : dissect_zcl_ota_imageblockrsp ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_OTA_UPGRADE_END_RSP : dissect_zcl_ota_upgradeendrsp ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_OTA_QUERY_SPEC_FILE_RSP : dissect_zcl_ota_queryspecfilersp ( tvb , payload_tree , & offset ) ;\n break ;\n default : break ;\n }\n }\n }\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 2953, "target": 0, "func": "static inline void bit_copy ( PutBitContext * pb , GetBitContext * gb ) {\n int bits_left = get_bits_left ( gb ) ;\n while ( bits_left >= MIN_CACHE_BITS ) {\n put_bits ( pb , MIN_CACHE_BITS , get_bits ( gb , MIN_CACHE_BITS ) ) ;\n bits_left -= MIN_CACHE_BITS ;\n }\n if ( bits_left > 0 ) {\n put_bits ( pb , bits_left , get_bits ( gb , bits_left ) ) ;\n }\n }"}
{"idx": 2954, "target": 0, "func": "static void usb_ehci_pci_realize ( PCIDevice * dev , Error * * errp ) {\n EHCIPCIState * i = PCI_EHCI ( dev ) ;\n EHCIState * s = & i -> ehci ;\n uint8_t * pci_conf = dev -> config ;\n pci_set_byte ( & pci_conf [ PCI_CLASS_PROG ] , 0x20 ) ;\n pci_set_byte ( & pci_conf [ PCI_CAPABILITY_LIST ] , 0x00 ) ;\n pci_set_byte ( & pci_conf [ PCI_INTERRUPT_PIN ] , 4 ) ;\n pci_set_byte ( & pci_conf [ PCI_MIN_GNT ] , 0 ) ;\n pci_set_byte ( & pci_conf [ PCI_MAX_LAT ] , 0 ) ;\n pci_set_byte ( & pci_conf [ USB_SBRN ] , USB_RELEASE_2 ) ;\n pci_set_byte ( & pci_conf [ 0x61 ] , 0x20 ) ;\n pci_set_word ( & pci_conf [ 0x62 ] , 0x00 ) ;\n pci_conf [ 0x64 ] = 0x00 ;\n pci_conf [ 0x65 ] = 0x00 ;\n pci_conf [ 0x66 ] = 0x00 ;\n pci_conf [ 0x67 ] = 0x00 ;\n pci_conf [ 0x68 ] = 0x01 ;\n pci_conf [ 0x69 ] = 0x00 ;\n pci_conf [ 0x6a ] = 0x00 ;\n pci_conf [ 0x6b ] = 0x00 ;\n pci_conf [ 0x6c ] = 0x00 ;\n pci_conf [ 0x6d ] = 0x00 ;\n pci_conf [ 0x6e ] = 0x00 ;\n pci_conf [ 0x6f ] = 0xc0 ;\n s -> irq = pci_allocate_irq ( dev ) ;\n s -> as = pci_get_address_space ( dev ) ;\n usb_ehci_realize ( s , DEVICE ( dev ) , NULL ) ;\n pci_register_bar ( dev , 0 , PCI_BASE_ADDRESS_SPACE_MEMORY , & s -> mem ) ;\n }"}
{"idx": 2955, "target": 0, "func": "static void notice_processor ( void * arg , const char * message ) {\n write_msg ( NULL , \"%s\" , message ) ;\n }"}
{"idx": 2956, "target": 0, "func": "static void save_coding_context ( VP9_COMP * cpi ) {\n CODING_CONTEXT * const cc = & cpi -> coding_context ;\n VP9_COMMON * cm = & cpi -> common ;\n vp9_copy ( cc -> nmvjointcost , cpi -> mb . nmvjointcost ) ;\n vpx_memcpy ( cc -> nmvcosts [ 0 ] , cpi -> nmvcosts [ 0 ] , MV_VALS * sizeof ( * cpi -> nmvcosts [ 0 ] ) ) ;\n vpx_memcpy ( cc -> nmvcosts [ 1 ] , cpi -> nmvcosts [ 1 ] , MV_VALS * sizeof ( * cpi -> nmvcosts [ 1 ] ) ) ;\n vpx_memcpy ( cc -> nmvcosts_hp [ 0 ] , cpi -> nmvcosts_hp [ 0 ] , MV_VALS * sizeof ( * cpi -> nmvcosts_hp [ 0 ] ) ) ;\n vpx_memcpy ( cc -> nmvcosts_hp [ 1 ] , cpi -> nmvcosts_hp [ 1 ] , MV_VALS * sizeof ( * cpi -> nmvcosts_hp [ 1 ] ) ) ;\n vp9_copy ( cc -> segment_pred_probs , cm -> seg . pred_probs ) ;\n vpx_memcpy ( cpi -> coding_context . last_frame_seg_map_copy , cm -> last_frame_seg_map , ( cm -> mi_rows * cm -> mi_cols ) ) ;\n vp9_copy ( cc -> last_ref_lf_deltas , cm -> lf . last_ref_deltas ) ;\n vp9_copy ( cc -> last_mode_lf_deltas , cm -> lf . last_mode_deltas ) ;\n cc -> fc = cm -> fc ;\n }"}
{"idx": 2957, "target": 0, "func": "static char * ts_format ( netdissect_options * ndo # ifndef HAVE_PCAP_SET_TSTAMP_PRECISION _U_ # endif , int sec , int usec , char * buf ) {\n const char * format ;\n # ifdef HAVE_PCAP_SET_TSTAMP_PRECISION switch ( ndo -> ndo_tstamp_precision ) {\n case PCAP_TSTAMP_PRECISION_MICRO : format = \"%02d:%02d:%02d.%06u\" ;\n break ;\n case PCAP_TSTAMP_PRECISION_NANO : format = \"%02d:%02d:%02d.%09u\" ;\n break ;\n default : format = \"%02d:%02d:%02d.{\nunknown}\n\" ;\n break ;\n }\n # else format = \"%02d:%02d:%02d.%06u\" ;\n # endif snprintf ( buf , TS_BUF_SIZE , format , sec / 3600 , ( sec % 3600 ) / 60 , sec % 60 , usec ) ;\n return buf ;\n }"}
{"idx": 2958, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ClientHintsBrowserTest , ClientHintsHttpsSubresourceDifferentOrigin ) {\n base : : HistogramTester histogram_tester ;\n ui_test_utils : : NavigateToURL ( browser ( ) , accept_ch_with_lifetime_url ( ) ) ;\n histogram_tester . ExpectUniqueSample ( \"ClientHints.UpdateEventCount\" , 1 , 1 ) ;\n ContentSettingsForOneType client_hints_settings ;\n HostContentSettingsMap * host_content_settings_map = HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) ;\n host_content_settings_map -> GetSettingsForOneType ( CONTENT_SETTINGS_TYPE_CLIENT_HINTS , std : : string ( ) , & client_hints_settings ) ;\n ASSERT_EQ ( 1U , client_hints_settings . size ( ) ) ;\n host_content_settings_map -> SetWebsiteSettingDefaultScope ( GURL ( \"https://foo.com/\" ) , GURL ( ) , CONTENT_SETTINGS_TYPE_CLIENT_HINTS , std : : string ( ) , std : : make_unique < base : : Value > ( client_hints_settings . at ( 0 ) . setting_value -> Clone ( ) ) ) ;\n host_content_settings_map = HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) ;\n host_content_settings_map -> GetSettingsForOneType ( CONTENT_SETTINGS_TYPE_CLIENT_HINTS , std : : string ( ) , & client_hints_settings ) ;\n ASSERT_EQ ( 2U , client_hints_settings . size ( ) ) ;\n SetClientHintExpectationsOnMainFrame ( true ) ;\n SetClientHintExpectationsOnSubresources ( true ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , without_accept_ch_without_lifetime_img_localhost ( ) ) ;\n base : : RunLoop ( ) . RunUntilIdle ( ) ;\n content : : FetchHistogramsFromChildProcesses ( ) ;\n SubprocessMetricsProvider : : MergeHistogramDeltasForTesting ( ) ;\n # if defined ( OS_ANDROID ) EXPECT_EQ ( 4u , count_client_hints_headers_seen ( ) ) ;\n # else EXPECT_EQ ( 6u , count_client_hints_headers_seen ( ) ) ;\n # endif ui_test_utils : : NavigateToURL ( browser ( ) , without_accept_ch_without_lifetime_img_foo_com ( ) ) ;\n base : : RunLoop ( ) . RunUntilIdle ( ) ;\n content : : FetchHistogramsFromChildProcesses ( ) ;\n SubprocessMetricsProvider : : MergeHistogramDeltasForTesting ( ) ;\n # if defined ( OS_ANDROID ) EXPECT_EQ ( 6u , count_client_hints_headers_seen ( ) ) ;\n # else EXPECT_EQ ( 9u , count_client_hints_headers_seen ( ) ) ;\n # endif EXPECT_EQ ( 1u , third_party_request_count_seen ( ) ) ;\n EXPECT_EQ ( 0u , third_party_client_hints_count_seen ( ) ) ;\n }"}
{"idx": 2959, "target": 0, "func": "static int dissect_rsl_ie_smscb_mess ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_item * ti ;\n proto_tree * ie_tree ;\n tvbuff_t * next_tvb ;\n guint length ;\n guint8 ie_id ;\n int ie_offset ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_SMSCB_MESS ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_ie_smscb_mess , & ti , \"SMSCB Message IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n length = tvb_get_guint8 ( tvb , offset ) ;\n proto_item_set_len ( ti , length + 2 ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_length , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n ie_offset = offset ;\n next_tvb = tvb_new_subset_length ( tvb , offset , length ) ;\n call_dissector ( gsm_cbs_handle , next_tvb , pinfo , top_tree ) ;\n offset = ie_offset + length ;\n return offset ;\n }"}
{"idx": 2960, "target": 0, "func": "static int nntp_mbox_close ( struct Context * ctx ) {\n struct NntpData * nntp_data = ctx -> data , * nntp_tmp = NULL ;\n if ( ! nntp_data ) return 0 ;\n nntp_data -> unread = ctx -> unread ;\n nntp_acache_free ( nntp_data ) ;\n if ( ! nntp_data -> nserv || ! nntp_data -> nserv -> groups_hash || ! nntp_data -> group ) return 0 ;\n nntp_tmp = mutt_hash_find ( nntp_data -> nserv -> groups_hash , nntp_data -> group ) ;\n if ( nntp_tmp == NULL || nntp_tmp != nntp_data ) nntp_data_free ( nntp_data ) ;\n return 0 ;\n }"}
{"idx": 2961, "target": 0, "func": "Oid get_negator ( Oid opno ) {\n HeapTuple tp ;\n tp = SearchSysCache1 ( OPEROID , ObjectIdGetDatum ( opno ) ) ;\n if ( HeapTupleIsValid ( tp ) ) {\n Form_pg_operator optup = ( Form_pg_operator ) GETSTRUCT ( tp ) ;\n Oid result ;\n result = optup -> oprnegate ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }\n else return InvalidOid ;\n }"}
{"idx": 2962, "target": 0, "func": "const char * get_errname_from_code ( uint error_code ) {\n const char * name ;\n if ( ( name = get_errname_from_code ( error_code , global_error_names ) ) != unknown_error ) return name ;\n return get_errname_from_code ( error_code , handler_error_names ) ;\n }"}
{"idx": 2963, "target": 0, "func": "static void write_clockstatus ( struct recvbuf * rbufp , int restrict_mask ) {\n ctl_error ( CERR_PERMISSION ) ;\n }"}
{"idx": 2964, "target": 0, "func": "static void doInsertionSort ( char * array , int32_t length , int32_t itemSize , UComparator * cmp , const void * context , void * pv ) {\n int32_t j ;\n for ( j = 1 ;\n j < length ;\n ++ j ) {\n char * item = array + j * itemSize ;\n int32_t insertionPoint = uprv_stableBinarySearch ( array , j , item , itemSize , cmp , context ) ;\n if ( insertionPoint < 0 ) {\n insertionPoint = ~ insertionPoint ;\n }\n else {\n ++ insertionPoint ;\n }\n if ( insertionPoint < j ) {\n char * dest = array + insertionPoint * itemSize ;\n uprv_memcpy ( pv , item , itemSize ) ;\n uprv_memmove ( dest + itemSize , dest , ( j - insertionPoint ) * ( size_t ) itemSize ) ;\n uprv_memcpy ( dest , pv , itemSize ) ;\n }\n }\n }"}
{"idx": 2965, "target": 0, "func": "void mime_parser_init ( MIMEParser * parser ) {\n mime_scanner_init ( & parser -> m_scanner ) ;\n _mime_parser_init ( parser ) ;\n }"}
{"idx": 2966, "target": 1, "func": "static int32_t u_scanf_percent_handler ( UFILE * input , u_scanf_spec_info * info , ufmt_args * args , const UChar * fmt , int32_t * fmtConsumed , int32_t * argConverted ) {\n int32_t len ;\n double num ;\n UNumberFormat * format ;\n int32_t parsePos = 0 ;\n UErrorCode status = U_ZERO_ERROR ;\n u_scanf_skip_leading_ws ( input , info -> fPadChar ) ;\n ufile_fill_uchar_buffer ( input ) ;\n len = ( int32_t ) ( input -> str . fLimit - input -> str . fPos ) ;\n if ( info -> fWidth != - 1 ) len = ufmt_min ( len , info -> fWidth ) ;\n format = u_locbund_getNumberFormat ( & input -> str . fBundle , UNUM_PERCENT ) ;\n if ( format == 0 ) return 0 ;\n u_scanf_skip_leading_positive_sign ( input , format , & status ) ;\n num = unum_parseDouble ( format , input -> str . fPos , len , & parsePos , & status ) ;\n if ( ! info -> fSkipArg ) {\n * ( double * ) ( args [ 0 ] . ptrValue ) = num ;\n }\n input -> str . fPos += parsePos ;\n * argConverted = ! info -> fSkipArg ;\n return parsePos ;\n }"}
{"idx": 2967, "target": 0, "func": "unsigned int vp9_sad ## m ## x ## n ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride ) {\n return sad ( src , src_stride , ref , ref_stride , m , n ) ;\n \\ }\n 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 ) {\n uint8_t comp_pred [ m * n ] ;\n vp9_comp_avg_pred ( comp_pred , second_pred , m , n , ref , ref_stride ) ;\n return sad ( src , src_stride , comp_pred , m , m , n ) ;\n \\ }\n # define sadMxNxK ( m , n , k ) void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 ) sadMxN ( 16 , 32 ) sadMxNx4D ( 16 , 32 ) sadMxN ( 16 , 16 ) sadMxNxK ( 16 , 16 , 3 ) sadMxNxK ( 16 , 16 , 8 ) sadMxNx4D ( 16 , 16 ) sadMxN ( 16 , 8 ) sadMxNxK ( 16 , 8 , 3 ) sadMxNxK ( 16 , 8 , 8 ) sadMxNx4D ( 16 , 8 ) sadMxN ( 8 , 16 ) sadMxNxK ( 8 , 16 , 3 ) sadMxNxK ( 8 , 16 , 8 ) sadMxNx4D ( 8 , 16 ) sadMxN ( 8 , 8 ) sadMxNxK ( 8 , 8 , 3 ) sadMxNxK ( 8 , 8 , 8 ) sadMxNx4D ( 8 , 8 ) sadMxN ( 8 , 4 ) sadMxNxK ( 8 , 4 , 8 ) sadMxNx4D ( 8 , 4 ) sadMxN ( 4 , 8 ) sadMxNxK ( 4 , 8 , 8 ) sadMxNx4D ( 4 , 8 ) sadMxN ( 4 , 4 )"}
{"idx": 2968, "target": 0, "func": "static int RestoringToDB ( ArchiveHandle * AH ) {\n RestoreOptions * ropt = AH -> public . ropt ;\n return ( ropt && ropt -> useDB && AH -> connection ) ;\n }"}
{"idx": 2969, "target": 0, "func": "static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 2970, "target": 0, "func": "void check_new_cluster ( void ) {\n get_db_and_rel_infos ( & new_cluster ) ;\n check_new_cluster_is_empty ( ) ;\n check_databases_are_compatible ( ) ;\n check_loadable_libraries ( ) ;\n if ( user_opts . transfer_mode == TRANSFER_MODE_LINK ) check_hard_link ( ) ;\n check_is_install_user ( & new_cluster ) ;\n check_for_prepared_transactions ( & new_cluster ) ;\n }"}
{"idx": 2971, "target": 0, "func": "static int dissect_h245_T_iPAddress ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_iPAddress , T_iPAddress_sequence ) ;\n return offset ;\n }"}
{"idx": 2972, "target": 0, "func": "mbfl_encoding_detector * mbfl_encoding_detector_new2 ( const mbfl_encoding * * elist , int elistsz , int strict ) {\n mbfl_encoding_detector * identd ;\n int i , num ;\n mbfl_identify_filter * filter ;\n if ( elist == NULL || elistsz <= 0 ) {\n return NULL ;\n }\n identd = ( mbfl_encoding_detector * ) mbfl_malloc ( sizeof ( mbfl_encoding_detector ) ) ;\n if ( identd == NULL ) {\n return NULL ;\n }\n identd -> filter_list = ( mbfl_identify_filter * * ) mbfl_calloc ( elistsz , sizeof ( mbfl_identify_filter * ) ) ;\n if ( identd -> filter_list == NULL ) {\n mbfl_free ( identd ) ;\n return NULL ;\n }\n i = 0 ;\n num = 0 ;\n while ( i < elistsz ) {\n filter = mbfl_identify_filter_new2 ( elist [ i ] ) ;\n if ( filter != NULL ) {\n identd -> filter_list [ num ] = filter ;\n num ++ ;\n }\n i ++ ;\n }\n identd -> filter_list_size = num ;\n identd -> strict = strict ;\n return identd ;\n }"}
{"idx": 2973, "target": 0, "func": "static void http_bad_request ( void ) {\n struct timeval tv ;\n struct bufferevent * bev ;\n int fd ;\n const char * http_request ;\n short port = - 1 ;\n test_ok = 0 ;\n fprintf ( stdout , \"Testing \\\"Bad Request\\\" on connection close: \" ) ;\n http = http_setup ( & port , NULL ) ;\n if ( evhttp_bind_socket ( http , \"127.0.0.1\" , port + 1 ) == - 1 ) {\n fprintf ( stdout , \"FAILED (bind)\\n\" ) ;\n exit ( 1 ) ;\n }\n fd = http_connect ( \"127.0.0.1\" , port ) ;\n bev = bufferevent_new ( fd , http_badreq_readcb , http_writecb , http_badreq_errorcb , NULL ) ;\n bufferevent_enable ( bev , EV_READ ) ;\n http_request = \"\" ;\n shutdown ( fd , SHUT_WR ) ;\n timerclear ( & tv ) ;\n tv . tv_usec = 10000 ;\n event_once ( - 1 , EV_TIMEOUT , http_badreq_successcb , bev , & tv ) ;\n event_dispatch ( ) ;\n bufferevent_free ( bev ) ;\n EVUTIL_CLOSESOCKET ( fd ) ;\n if ( test_ok != 0 ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n fd = http_connect ( \"127.0.0.1\" , port + 1 ) ;\n bev = bufferevent_new ( fd , http_badreq_readcb , http_writecb , http_badreq_errorcb , NULL ) ;\n bufferevent_enable ( bev , EV_READ ) ;\n http_request = \"GET /badrequest HTTP/1.0\\r\\n\" \"Connection: Keep-Alive\\r\\n\" \"\\r\\n\" ;\n bufferevent_write ( bev , http_request , strlen ( http_request ) ) ;\n timerclear ( & tv ) ;\n tv . tv_usec = 10000 ;\n event_once ( - 1 , EV_TIMEOUT , http_badreq_successcb , bev , & tv ) ;\n event_dispatch ( ) ;\n evhttp_free ( http ) ;\n if ( test_ok != 2 ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n fprintf ( stdout , \"OK\\n\" ) ;\n }"}
{"idx": 2974, "target": 0, "func": "int UnblendedCompare ( real u1 [ MmMax ] , real u2 [ MmMax ] , int cnt ) {\n int i ;\n for ( i = 0 ;\n i < cnt ;\n ++ i ) {\n if ( u1 [ i ] != u2 [ i ] ) return ( u1 [ i ] > u2 [ i ] ? 1 : - 1 ) ;\n }\n return ( 0 ) ;\n }"}
{"idx": 2975, "target": 0, "func": "static void cleanup ( void ) {\n fclose ( log_opts . internal ) ;\n if ( ! log_opts . retain ) {\n int dbnum ;\n char * * filename ;\n for ( filename = output_files ;\n * filename != NULL ;\n filename ++ ) unlink ( * filename ) ;\n unlink ( GLOBALS_DUMP_FILE ) ;\n if ( old_cluster . dbarr . dbs ) for ( dbnum = 0 ;\n dbnum < old_cluster . dbarr . ndbs ;\n dbnum ++ ) {\n char sql_file_name [ MAXPGPATH ] , log_file_name [ MAXPGPATH ] ;\n DbInfo * old_db = & old_cluster . dbarr . dbs [ dbnum ] ;\n snprintf ( sql_file_name , sizeof ( sql_file_name ) , DB_DUMP_FILE_MASK , old_db -> db_oid ) ;\n unlink ( sql_file_name ) ;\n snprintf ( log_file_name , sizeof ( log_file_name ) , DB_DUMP_LOG_FILE_MASK , old_db -> db_oid ) ;\n unlink ( log_file_name ) ;\n }\n }\n }"}
{"idx": 2976, "target": 0, "func": "static void pfkey_remove ( struct sock * sk ) {\n mutex_lock ( & pfkey_mutex ) ;\n sk_del_node_init_rcu ( sk ) ;\n mutex_unlock ( & pfkey_mutex ) ;\n }"}
{"idx": 2977, "target": 1, "func": "void vp9_iht8x8_64_add_c ( const int16_t * input , uint8_t * dest , int stride , int tx_type ) {\n int i , j ;\n int16_t out [ 8 * 8 ] ;\n int16_t * outptr = out ;\n int16_t temp_in [ 8 ] , temp_out [ 8 ] ;\n const transform_2d ht = IHT_8 [ tx_type ] ;\n for ( i = 0 ;\n i < 8 ;\n ++ i ) {\n ht . rows ( input , outptr ) ;\n input += 8 ;\n outptr += 8 ;\n }\n for ( i = 0 ;\n i < 8 ;\n ++ i ) {\n for ( j = 0 ;\n j < 8 ;\n ++ j ) temp_in [ j ] = out [ j * 8 + i ] ;\n ht . cols ( temp_in , temp_out ) ;\n for ( j = 0 ;\n j < 8 ;\n ++ j ) dest [ j * stride + i ] = clip_pixel ( ROUND_POWER_OF_TWO ( temp_out [ j ] , 5 ) + dest [ j * stride + i ] ) ;\n }\n }"}
{"idx": 2978, "target": 0, "func": "static gboolean prefix_equal ( gconstpointer ap , gconstpointer bp ) {\n const gchar * a = ( const gchar * ) ap ;\n const gchar * b = ( const gchar * ) bp ;\n do {\n gchar ac = * a ++ ;\n gchar bc = * b ++ ;\n if ( ( ac == '.' || ac == '\\0' ) && ( bc == '.' || bc == '\\0' ) ) return TRUE ;\n if ( ( ac == '.' || ac == '\\0' ) && ! ( bc == '.' || bc == '\\0' ) ) return FALSE ;\n if ( ( bc == '.' || bc == '\\0' ) && ! ( ac == '.' || ac == '\\0' ) ) return FALSE ;\n if ( ac != bc ) return FALSE ;\n }\n while ( 1 ) ;\n return FALSE ;\n }"}
{"idx": 2979, "target": 0, "func": "static int dissect_rsl_ie_ch_id ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_item * ti ;\n proto_tree * ie_tree ;\n guint8 length ;\n int ie_offset ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_CH_ID ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_ie_ch_id , & ti , \"Channel Identification IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n length = tvb_get_guint8 ( tvb , offset ) ;\n proto_item_set_len ( ti , length + 2 ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_length , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n ie_offset = offset ;\n proto_tree_add_item ( ie_tree , hf_rsl_channel_description_tag , tvb , offset , 1 , ENC_NA ) ;\n de_rr_ch_dsc ( tvb , ie_tree , pinfo , offset + 1 , length , NULL , 0 ) ;\n offset += 4 ;\n proto_tree_add_item ( ie_tree , hf_rsl_mobile_allocation_tag , tvb , offset , 2 , ENC_NA ) ;\n return ie_offset + length ;\n }"}
{"idx": 2980, "target": 1, "func": "void vp9_idct4x4_1_add_c ( const int16_t * input , uint8_t * dest , int dest_stride ) {\n int i ;\n int a1 ;\n int16_t out = dct_const_round_shift ( input [ 0 ] * cospi_16_64 ) ;\n out = dct_const_round_shift ( out * cospi_16_64 ) ;\n a1 = ROUND_POWER_OF_TWO ( out , 4 ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n dest [ 0 ] = clip_pixel ( dest [ 0 ] + a1 ) ;\n dest [ 1 ] = clip_pixel ( dest [ 1 ] + a1 ) ;\n dest [ 2 ] = clip_pixel ( dest [ 2 ] + a1 ) ;\n dest [ 3 ] = clip_pixel ( dest [ 3 ] + a1 ) ;\n dest += dest_stride ;\n }\n }"}
{"idx": 2981, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( HttpsEngagementPageLoadMetricsBrowserTest , SameOrigin_Https ) {\n StartHttpsServer ( false ) ;\n NavigateTwiceInTabAndClose ( https_test_server_ -> GetURL ( \"/simple.html\" ) , https_test_server_ -> GetURL ( \"/empty.html\" ) ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpEngagementHistogram , 0 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementHistogram , 2 ) ;\n }"}
{"idx": 2982, "target": 0, "func": "int xps_count_font_encodings ( fz_font * font ) {\n FT_Face face = font -> ft_face ;\n return face -> num_charmaps ;\n }"}
{"idx": 2983, "target": 0, "func": "static void unmount_mount_callback ( GObject * source_object , GAsyncResult * res , gpointer user_data ) {\n UnmountData * data = user_data ;\n GError * error ;\n char * primary ;\n gboolean unmounted ;\n error = NULL ;\n if ( data -> eject ) {\n unmounted = g_mount_eject_with_operation_finish ( G_MOUNT ( source_object ) , res , & error ) ;\n }\n else {\n unmounted = g_mount_unmount_with_operation_finish ( G_MOUNT ( source_object ) , res , & error ) ;\n }\n if ( ! unmounted ) {\n if ( error -> code != G_IO_ERROR_FAILED_HANDLED ) {\n if ( data -> eject ) {\n primary = f ( _ ( \"Unable to eject %V\" ) , source_object ) ;\n }\n else {\n primary = f ( _ ( \"Unable to unmount %V\" ) , source_object ) ;\n }\n eel_show_error_dialog ( primary , error -> message , data -> parent_window ) ;\n g_free ( primary ) ;\n }\n }\n if ( data -> callback ) {\n data -> callback ( data -> callback_data ) ;\n }\n if ( error != NULL ) {\n g_error_free ( error ) ;\n }\n unmount_data_free ( data ) ;\n }"}
{"idx": 2984, "target": 0, "func": "int i2d_RSAPrivateKey_bio ( BIO * bp , RSA * rsa ) {\n return ASN1_item_i2d_bio ( ASN1_ITEM_rptr ( RSAPrivateKey ) , bp , rsa ) ;\n }"}
{"idx": 2985, "target": 0, "func": "void rfbProcessClientMessage ( rfbClientPtr cl ) {\n switch ( cl -> state ) {\n case RFB_PROTOCOL_VERSION : rfbProcessClientProtocolVersion ( cl ) ;\n return ;\n case RFB_SECURITY_TYPE : rfbProcessClientSecurityType ( cl ) ;\n return ;\n case RFB_AUTHENTICATION : rfbAuthProcessClientMessage ( cl ) ;\n return ;\n case RFB_INITIALISATION : case RFB_INITIALISATION_SHARED : rfbProcessClientInitMessage ( cl ) ;\n return ;\n default : rfbProcessClientNormalMessage ( cl ) ;\n return ;\n }\n }"}
{"idx": 2986, "target": 0, "func": "static mtime_t DecoderGetDisplayDate ( decoder_t * p_dec , mtime_t i_ts ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n vlc_mutex_lock ( & p_owner -> lock ) ;\n if ( p_owner -> b_waiting || p_owner -> b_paused ) i_ts = VLC_TS_INVALID ;\n vlc_mutex_unlock ( & p_owner -> lock ) ;\n if ( ! p_owner -> p_clock || i_ts <= VLC_TS_INVALID ) return i_ts ;\n if ( input_clock_ConvertTS ( VLC_OBJECT ( p_dec ) , p_owner -> p_clock , NULL , & i_ts , NULL , INT64_MAX ) ) {\n msg_Err ( p_dec , \"Could not get display date for timestamp %\" PRId64 \"\" , i_ts ) ;\n return VLC_TS_INVALID ;\n }\n return i_ts ;\n }"}
{"idx": 2987, "target": 0, "func": "TIFF * TIFFFdOpen ( int ifd , const char * name , const char * mode ) {\n TIFF * tif ;\n int fSuppressMap ;\n int m ;\n fSuppressMap = 0 ;\n for ( m = 0 ;\n mode [ m ] != 0 ;\n m ++ ) {\n if ( mode [ m ] == 'u' ) {\n fSuppressMap = 1 ;\n break ;\n }\n }\n tif = TIFFClientOpen ( name , mode , ( thandle_t ) ifd , _tiffReadProc , _tiffWriteProc , _tiffSeekProc , _tiffCloseProc , _tiffSizeProc , fSuppressMap ? _tiffDummyMapProc : _tiffMapProc , fSuppressMap ? _tiffDummyUnmapProc : _tiffUnmapProc ) ;\n if ( tif ) tif -> tif_fd = ifd ;\n return ( tif ) ;\n }"}
{"idx": 2988, "target": 0, "func": "static int dissect_h225_PrintableString ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_PrintableString ( tvb , offset , actx , tree , hf_index , NO_BOUND , NO_BOUND , FALSE ) ;\n return offset ;\n }"}
{"idx": 2989, "target": 0, "func": "TEST_F ( ExternalProtocolHandlerTest , TestLaunchSchemeBlockedChromeOtherModeDefault ) {\n DoTest ( ExternalProtocolHandler : : BLOCK , shell_integration : : OTHER_MODE_IS_DEFAULT , Action : : BLOCK ) ;\n }"}
{"idx": 2990, "target": 1, "func": "int i2d_ ## name ( type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;\n int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE )"}
{"idx": 2991, "target": 0, "func": "static void segmentation_test_function ( VP8_COMP * cpi ) {\n unsigned char * seg_map ;\n signed char feature_data [ MB_LVL_MAX ] [ MAX_MB_SEGMENTS ] ;\n CHECK_MEM_ERROR ( seg_map , vpx_calloc ( cpi -> common . mb_rows * cpi -> common . mb_cols , 1 ) ) ;\n set_segmentation_map ( cpi , seg_map ) ;\n enable_segmentation ( cpi ) ;\n feature_data [ MB_LVL_ALT_Q ] [ 0 ] = 0 ;\n feature_data [ MB_LVL_ALT_Q ] [ 1 ] = 4 ;\n feature_data [ MB_LVL_ALT_Q ] [ 2 ] = 0 ;\n feature_data [ MB_LVL_ALT_Q ] [ 3 ] = 0 ;\n feature_data [ MB_LVL_ALT_LF ] [ 0 ] = 0 ;\n feature_data [ MB_LVL_ALT_LF ] [ 1 ] = 0 ;\n feature_data [ MB_LVL_ALT_LF ] [ 2 ] = 0 ;\n feature_data [ MB_LVL_ALT_LF ] [ 3 ] = 0 ;\n set_segment_data ( cpi , & feature_data [ 0 ] [ 0 ] , SEGMENT_DELTADATA ) ;\n vpx_free ( seg_map ) ;\n seg_map = 0 ;\n }"}
{"idx": 2992, "target": 1, "func": "SPL_METHOD ( RecursiveDirectoryIterator , getSubPath ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n if ( intern -> u . dir . sub_path ) {\n RETURN_STRINGL ( intern -> u . dir . sub_path , intern -> u . dir . sub_path_len , 1 ) ;\n }\n else {\n RETURN_STRINGL ( \"\" , 0 , 1 ) ;\n }\n }"}
{"idx": 2993, "target": 0, "func": "int ff_set_ref_count ( H264Context * h ) {\n int num_ref_idx_active_override_flag ;\n h -> ref_count [ 0 ] = h -> pps . ref_count [ 0 ] ;\n h -> ref_count [ 1 ] = h -> pps . ref_count [ 1 ] ;\n if ( h -> slice_type_nos != AV_PICTURE_TYPE_I ) {\n unsigned max [ 2 ] ;\n max [ 0 ] = max [ 1 ] = h -> picture_structure == PICT_FRAME ? 15 : 31 ;\n if ( h -> slice_type_nos == AV_PICTURE_TYPE_B ) h -> direct_spatial_mv_pred = get_bits1 ( & h -> gb ) ;\n num_ref_idx_active_override_flag = get_bits1 ( & h -> gb ) ;\n if ( num_ref_idx_active_override_flag ) {\n h -> ref_count [ 0 ] = get_ue_golomb ( & h -> gb ) + 1 ;\n if ( h -> slice_type_nos == AV_PICTURE_TYPE_B ) {\n h -> ref_count [ 1 ] = get_ue_golomb ( & h -> gb ) + 1 ;\n }\n else h -> ref_count [ 1 ] = 1 ;\n }\n if ( h -> ref_count [ 0 ] - 1 > max [ 0 ] || h -> ref_count [ 1 ] - 1 > max [ 1 ] ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"reference overflow %u > %u or %u > %u\\n\" , h -> ref_count [ 0 ] - 1 , max [ 0 ] , h -> ref_count [ 1 ] - 1 , max [ 1 ] ) ;\n h -> ref_count [ 0 ] = h -> ref_count [ 1 ] = 0 ;\n return AVERROR_INVALIDDATA ;\n }\n if ( h -> slice_type_nos == AV_PICTURE_TYPE_B ) h -> list_count = 2 ;\n else h -> list_count = 1 ;\n }\n else {\n h -> list_count = 0 ;\n h -> ref_count [ 0 ] = h -> ref_count [ 1 ] = 0 ;\n }\n return 0 ;\n }"}
{"idx": 2994, "target": 0, "func": "extern int as_mysql_add_resv ( mysql_conn_t * mysql_conn , slurmdb_reservation_rec_t * resv ) {\n int rc = SLURM_SUCCESS ;\n char * cols = NULL , * vals = NULL , * extra = NULL , * query = NULL ;\n if ( ! resv ) {\n error ( \"No reservation was given to add.\" ) ;\n return SLURM_ERROR ;\n }\n if ( ! resv -> id ) {\n error ( \"We need an id to add a reservation.\" ) ;\n return SLURM_ERROR ;\n }\n if ( ! resv -> time_start ) {\n error ( \"We need a start time to add a reservation.\" ) ;\n return SLURM_ERROR ;\n }\n if ( ! resv -> cluster || ! resv -> cluster [ 0 ] ) {\n error ( \"We need a cluster name to add a reservation.\" ) ;\n return SLURM_ERROR ;\n }\n _setup_resv_limits ( resv , & cols , & vals , & extra ) ;\n xstrfmtcat ( query , \"insert into \\\"%s_%s\\\" (id_resv%s) values (%u%s) \" \"on duplicate key update deleted=0%s;\n\" , resv -> cluster , resv_table , cols , resv -> id , vals , extra ) ;\n if ( debug_flags & DEBUG_FLAG_DB_RESV ) DB_DEBUG ( mysql_conn -> conn , \"query\\n%s\" , query ) ;\n rc = mysql_db_query ( mysql_conn , query ) ;\n xfree ( query ) ;\n xfree ( cols ) ;\n xfree ( vals ) ;\n xfree ( extra ) ;\n return rc ;\n }"}
{"idx": 2995, "target": 1, "func": "static int get_gf_active_quality ( const RATE_CONTROL * const rc , int q ) {\n return get_active_quality ( q , rc -> gfu_boost , gf_low , gf_high , arfgf_low_motion_minq , arfgf_high_motion_minq ) ;\n }"}
{"idx": 2996, "target": 0, "func": "static char * adb_send_and_read ( socket_handle_t sock , const char * adb_service , char * buffer , int buffer_length , gssize * data_length ) {\n gssize used_buffer_length ;\n gssize result ;\n char status [ 4 ] ;\n size_t adb_service_length ;\n adb_service_length = strlen ( adb_service ) ;\n result = send ( sock , adb_service , ( int ) adb_service_length , 0 ) ;\n if ( result != ( gssize ) adb_service_length ) {\n errmsg_print ( \"ERROR: Error while sending <%s> to ADB\" , adb_service ) ;\n if ( data_length ) * data_length = 0 ;\n return NULL ;\n }\n used_buffer_length = 0 ;\n while ( used_buffer_length < 4 ) {\n result = recv ( sock , buffer + used_buffer_length , ( int ) ( buffer_length - used_buffer_length ) , 0 ) ;\n if ( result <= 0 ) {\n errmsg_print ( \"ERROR: Broken socket connection while fetching reply status for <%s>\" , adb_service ) ;\n return NULL ;\n }\n used_buffer_length += result ;\n }\n memcpy ( status , buffer , 4 ) ;\n while ( result > 0 ) {\n result = recv ( sock , buffer + used_buffer_length , ( int ) ( buffer_length - used_buffer_length ) , 0 ) ;\n if ( result < 0 ) {\n errmsg_print ( \"ERROR: Broken socket connection while reading reply for <%s>\" , adb_service ) ;\n return NULL ;\n }\n else if ( result == 0 ) {\n break ;\n }\n used_buffer_length += result ;\n }\n if ( data_length ) * data_length = used_buffer_length - 4 ;\n if ( memcmp ( status , \"OKAY\" , 4 ) ) {\n errmsg_print ( \"ERROR: Error while receiving by ADB for <%s>\" , adb_service ) ;\n if ( data_length ) * data_length = 0 ;\n return NULL ;\n }\n return buffer + 4 ;\n }"}
{"idx": 2997, "target": 0, "func": "static void * qemu_tcg_cpu_thread_fn ( void * arg ) {\n CPUState * cpu = arg ;\n CPUArchState * env ;\n qemu_tcg_init_cpu_signals ( ) ;\n qemu_thread_get_self ( cpu -> thread ) ;\n qemu_mutex_lock ( & qemu_global_mutex ) ;\n qemu_for_each_cpu ( tcg_signal_cpu_creation , NULL ) ;\n qemu_cond_signal ( & qemu_cpu_cond ) ;\n while ( ENV_GET_CPU ( first_cpu ) -> stopped ) {\n qemu_cond_wait ( tcg_halt_cond , & qemu_global_mutex ) ;\n for ( env = first_cpu ;\n env != NULL ;\n env = env -> next_cpu ) {\n qemu_wait_io_event_common ( ENV_GET_CPU ( env ) ) ;\n }\n }\n while ( 1 ) {\n tcg_exec_all ( ) ;\n if ( use_icount && qemu_clock_deadline ( vm_clock ) <= 0 ) {\n qemu_notify_event ( ) ;\n }\n qemu_tcg_wait_io_event ( ) ;\n }\n return NULL ;\n }"}
{"idx": 2998, "target": 0, "func": "static inline MagickBooleanType IsPixelGray ( const Image * restrict image , const Quantum * restrict pixel ) {\n MagickRealType blue , green , red ;\n red = ( MagickRealType ) pixel [ image -> channel_map [ RedPixelChannel ] . offset ] ;\n green = ( MagickRealType ) pixel [ image -> channel_map [ GreenPixelChannel ] . offset ] ;\n blue = ( MagickRealType ) pixel [ image -> channel_map [ BluePixelChannel ] . offset ] ;\n if ( ( AbsolutePixelValue ( red - green ) < MagickEpsilon ) && ( AbsolutePixelValue ( green - blue ) < MagickEpsilon ) ) return ( MagickTrue ) ;\n return ( MagickFalse ) ;\n }"}
{"idx": 2999, "target": 0, "func": "int i2d_ ## name ( type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;\n int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING )"}
{"idx": 3000, "target": 0, "func": "guint16 de_mid ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string , int string_len ) {\n guint8 oct ;\n guint32 curr_offset ;\n guint32 value ;\n gboolean odd ;\n const gchar * digit_str ;\n proto_item * ti ;\n curr_offset = offset ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n switch ( oct & 0x07 ) {\n case 0 : proto_tree_add_item ( tree , hf_gsm_a_unused , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_odd_even_ind , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_mobile_identity_type , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n if ( add_string ) g_snprintf ( add_string , string_len , \" - No Identity Code\" ) ;\n curr_offset ++ ;\n if ( len > 1 ) {\n expert_add_info ( pinfo , tree , & ei_gsm_a_format_not_supported ) ;\n }\n curr_offset += len - 1 ;\n break ;\n case 3 : case 1 : odd = oct & 0x08 ;\n proto_tree_add_item ( tree , hf_gsm_a_id_dig_1 , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_odd_even_ind , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_mobile_identity_type , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n if ( ( oct & 0x07 ) == 3 ) {\n digit_str = tvb_bcd_dig_to_wmem_packet_str ( tvb , curr_offset , len - ( curr_offset - offset ) , NULL , TRUE ) ;\n proto_tree_add_string_format ( tree , hf_gsm_a_imeisv , tvb , curr_offset , len - ( curr_offset - offset ) , digit_str , \"BCD Digits: %s\" , digit_str ) ;\n }\n else {\n digit_str = dissect_e212_imsi ( tvb , pinfo , tree , curr_offset , len - ( curr_offset - offset ) , TRUE ) ;\n }\n if ( sccp_assoc && ! sccp_assoc -> calling_party ) {\n sccp_assoc -> calling_party = wmem_strdup_printf ( wmem_file_scope ( ) , ( ( oct & 0x07 ) == 3 ) ? \"IMEISV: %s\" : \"IMSI: %s\" , digit_str ) ;\n }\n if ( add_string ) g_snprintf ( add_string , string_len , \" - %s (%s)\" , ( ( oct & 0x07 ) == 3 ) ? \"IMEISV\" : \"IMSI\" , digit_str ) ;\n curr_offset += len - ( curr_offset - offset ) ;\n if ( ! odd ) {\n proto_tree_add_item ( tree , hf_gsm_a_filler , tvb , curr_offset - 1 , 1 , ENC_NA ) ;\n }\n break ;\n case 2 : proto_tree_add_uint_format_value ( tree , hf_gsm_a_identity_digit1 , tvb , curr_offset , 1 , oct , \"%c\" , Dgt1_9_bcd . out [ ( oct & 0xf0 ) >> 4 ] ) ;\n proto_tree_add_item ( tree , hf_gsm_a_odd_even_ind , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_mobile_identity_type , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n if ( curr_offset - offset >= len ) return ( curr_offset - offset ) ;\n digit_str = tvb_bcd_dig_to_wmem_packet_str ( tvb , curr_offset , len - ( curr_offset - offset ) , NULL , TRUE ) ;\n proto_tree_add_string_format ( tree , hf_gsm_a_imei , tvb , curr_offset , len - ( curr_offset - offset ) , digit_str , \"BCD Digits: %s\" , digit_str ) ;\n if ( add_string ) g_snprintf ( add_string , string_len , \" - IMEI (%s)\" , digit_str ) ;\n curr_offset += len - ( curr_offset - offset ) ;\n break ;\n case 4 : proto_tree_add_item ( tree , hf_gsm_a_unused , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_odd_even_ind , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_mobile_identity_type , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n value = tvb_get_ntohl ( tvb , curr_offset ) ;\n proto_tree_add_uint ( tree , hf_gsm_a_tmsi , tvb , curr_offset , 4 , value ) ;\n if ( add_string ) g_snprintf ( add_string , string_len , \" - TMSI/P-TMSI (0x%04x)\" , value ) ;\n curr_offset += 4 ;\n break ;\n case 5 : proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , curr_offset << 3 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_mbs_ses_id_ind , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_tmgi_mcc_mnc_ind , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_odd_even_ind , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_mobile_identity_type , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n proto_tree_add_item ( tree , hf_gsm_a_mbs_service_id , tvb , curr_offset , 3 , ENC_BIG_ENDIAN ) ;\n curr_offset += 3 ;\n if ( ( oct & 0x10 ) == 0x10 ) {\n curr_offset = dissect_e212_mcc_mnc ( tvb , pinfo , tree , curr_offset , E212_NONE , TRUE ) ;\n }\n if ( ( oct & 0x20 ) == 0x20 ) {\n proto_tree_add_item ( tree , hf_gsm_a_mbs_session_id , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n }\n break ;\n default : proto_tree_add_item ( tree , hf_gsm_a_odd_even_ind , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n ti = proto_tree_add_item ( tree , hf_gsm_a_mobile_identity_type , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n expert_add_info_format ( pinfo , ti , & ei_gsm_a_mobile_identity_type , \"Unknown format %u\" , ( oct & 0x07 ) ) ;\n if ( add_string ) g_snprintf ( add_string , string_len , \" - Format Unknown\" ) ;\n curr_offset += len ;\n break ;\n }\n EXTRANEOUS_DATA_CHECK ( len , curr_offset - offset , pinfo , & ei_gsm_a_extraneous_data ) ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 3001, "target": 0, "func": "static void gs_heap_free_string ( gs_memory_t * mem , byte * data , uint nbytes , client_name_t cname ) {\n gs_heap_free_object ( mem , data , cname ) ;\n }"}
{"idx": 3002, "target": 0, "func": "static guint32 parse_wbxml_attribute_list_defined ( proto_tree * tree , tvbuff_t * tvb , guint32 offset , guint32 str_tbl , guint8 level , guint8 * codepage_attr , const wbxml_decoding * map ) {\n guint32 tvb_len = tvb_reported_length ( tvb ) ;\n guint32 off = offset , last_off ;\n guint32 len ;\n guint str_len ;\n guint32 ent ;\n guint32 idx ;\n guint8 peek ;\n guint8 attr_save_known = 0 ;\n const char * attr_save_literal = NULL ;\n DebugLog ( ( \"parse_wbxml_attr_defined (level = %u, offset = %u)\\n\" , level , offset ) ) ;\n last_off = off ;\n while ( off < tvb_len ) {\n peek = tvb_get_guint8 ( tvb , off ) ;\n DebugLog ( ( \"ATTR: (top of while) level = %3u, peek = 0x%02X, \" \"off = %u, tvb_len = %u\\n\" , level , peek , off , tvb_len ) ) ;\n if ( ( peek & 0x3F ) < 5 ) switch ( peek ) {\n case 0x00 : * codepage_attr = tvb_get_guint8 ( tvb , off + 1 ) ;\n proto_tree_add_text ( tree , tvb , off , 2 , \" | Attr | A -->%3d \" \"| SWITCH_PAGE (Attr code page) |\" , * codepage_attr ) ;\n off += 2 ;\n break ;\n case 0x01 : off ++ ;\n DebugLog ( ( \"ATTR: level = %u, Return: len = %u\\n\" , level , off - offset ) ) ;\n return ( off - offset ) ;\n case 0x02 : ent = tvb_get_guintvar ( tvb , off + 1 , & len ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Attr | A %3d \" \"| ENTITY \" \"| %s'&#%u;\n'\" , level , * codepage_attr , Indent ( level ) , ent ) ;\n off += 1 + len ;\n break ;\n case 0x03 : len = tvb_strsize ( tvb , off + 1 ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Attr | A %3d \" \"| STR_I (Inline string) \" \"| %s\\'%s\\'\" , level , * codepage_attr , Indent ( level ) , tvb_format_text ( tvb , off + 1 , len - 1 ) ) ;\n off += 1 + len ;\n break ;\n case 0x04 : idx = tvb_get_guintvar ( tvb , off + 1 , & len ) ;\n str_len = tvb_strsize ( tvb , str_tbl + idx ) ;\n attr_save_known = 0 ;\n attr_save_literal = tvb_format_text ( tvb , str_tbl + idx , str_len - 1 ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Attr | A %3d \" \"| LITERAL (Literal Attribute) \" \"| %s<%s />\" , level , * codepage_attr , Indent ( level ) , attr_save_literal ) ;\n off += 1 + len ;\n break ;\n case 0x40 : case 0x41 : case 0x42 : len = tvb_strsize ( tvb , off + 1 ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Attr | A %3d \" \"| EXT_I_%1x (Extension Token) \" \"| %s(%s: \\'%s\\')\" , level , * codepage_attr , peek & 0x0f , Indent ( level ) , map_token ( map -> global , 0 , peek ) , tvb_format_text ( tvb , off + 1 , len - 1 ) ) ;\n off += 1 + len ;\n break ;\n case 0x80 : case 0x81 : case 0x82 : idx = tvb_get_guintvar ( tvb , off + 1 , & len ) ;\n {\n char * s ;\n if ( map -> ext_t [ peek & 0x03 ] ) s = ( map -> ext_t [ peek & 0x03 ] ) ( tvb , idx , str_tbl ) ;\n else s = wmem_strdup_printf ( wmem_packet_scope ( ) , \"EXT_T_%1x (%s)\" , peek & 0x03 , map_token ( map -> global , 0 , peek ) ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Tag | T %3d \" \"| EXT_T_%1x (Extension Token) \" \"| %s%s)\" , level , * codepage_attr , peek & 0x0f , Indent ( level ) , s ) ;\n }\n off += 1 + len ;\n break ;\n case 0x83 : idx = tvb_get_guintvar ( tvb , off + 1 , & len ) ;\n str_len = tvb_strsize ( tvb , str_tbl + idx ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Attr | A %3d \" \"| STR_T (Tableref string) \" \"| %s\\'%s\\'\" , level , * codepage_attr , Indent ( level ) , tvb_format_text ( tvb , str_tbl + idx , str_len - 1 ) ) ;\n off += 1 + len ;\n break ;\n case 0xC0 : case 0xC1 : case 0xC2 : proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Attr | A %3d \" \"| EXT_%1x (Extension Token) \" \"| %s(%s)\" , level , * codepage_attr , peek & 0x0f , Indent ( level ) , map_token ( map -> global , 0 , peek ) ) ;\n off ++ ;\n break ;\n case 0xC3 : if ( tvb_get_guint8 ( tvb , 0 ) ) {\n char * str ;\n if ( attr_save_known ) {\n if ( map -> opaque_binary_attr ) {\n str = map -> opaque_binary_attr ( tvb , off + 1 , attr_save_known , * codepage_attr , & len ) ;\n }\n else {\n str = default_opaque_binary_attr ( tvb , off + 1 , attr_save_known , * codepage_attr , & len ) ;\n }\n }\n else {\n if ( map -> opaque_literal_tag ) {\n str = map -> opaque_literal_attr ( tvb , off + 1 , attr_save_literal , * codepage_attr , & len ) ;\n }\n else {\n str = default_opaque_literal_attr ( tvb , off + 1 , attr_save_literal , * codepage_attr , & len ) ;\n }\n }\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Attr | A %3d \" \"| OPAQUE (Opaque data) \" \"| %s%s\" , level , * codepage_attr , Indent ( level ) , str ) ;\n off += 1 + len ;\n }\n else {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Attr | A %3d \" \"| RESERVED_2 (Invalid Token!) \" \"| WBXML 1.0 parsing stops here.\" , level , * codepage_attr ) ;\n off = tvb_len ;\n DebugLog ( ( \"ATTR: level = %u, Return: len = %u\\n\" , level , off - offset ) ) ;\n return ( off - offset ) ;\n }\n break ;\n default : proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Attr | A %3d \" \"| %-10s (Invalid Token!) \" \"| WBXML parsing stops here.\" , level , * codepage_attr , val_to_str_ext ( peek , & vals_wbxml1x_global_tokens_ext , \"(unknown 0x%x)\" ) ) ;\n off = tvb_len ;\n break ;\n }\n else {\n if ( peek & 0x80 ) {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Attr | A %3d \" \"| Known attrValue 0x%02X \" \"| %s%s\" , level , * codepage_attr , peek & 0x7f , Indent ( level ) , map_token ( map -> attrValue , * codepage_attr , peek ) ) ;\n off ++ ;\n }\n else {\n attr_save_known = peek & 0x7f ;\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Attr | A %3d \" \"| Known attrStart 0x%02X \" \"| %s%s\" , level , * codepage_attr , attr_save_known , Indent ( level ) , map_token ( map -> attrStart , * codepage_attr , peek ) ) ;\n off ++ ;\n }\n }\n if ( off < last_off ) {\n THROW ( ReportedBoundsError ) ;\n }\n last_off = off ;\n }\n DebugLog ( ( \"ATTR: level = %u, Return: len = %u (end of function body)\\n\" , level , off - offset ) ) ;\n return ( off - offset ) ;\n }"}
{"idx": 3003, "target": 1, "func": "static void rd_use_partition ( VP9_COMP * cpi , const TileInfo * const tile , MODE_INFO * * mi_8x8 , TOKENEXTRA * * tp , int mi_row , int mi_col , BLOCK_SIZE bsize , int * rate , int64_t * dist , int do_recon , PC_TREE * pc_tree ) {\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCK * const x = & cpi -> mb ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n const int mis = cm -> mi_stride ;\n const int bsl = b_width_log2 ( bsize ) ;\n const int mi_step = num_4x4_blocks_wide_lookup [ bsize ] / 2 ;\n const int bss = ( 1 << bsl ) / 4 ;\n int i , pl ;\n PARTITION_TYPE partition = PARTITION_NONE ;\n BLOCK_SIZE subsize ;\n ENTROPY_CONTEXT l [ 16 * MAX_MB_PLANE ] , a [ 16 * MAX_MB_PLANE ] ;\n PARTITION_CONTEXT sl [ 8 ] , sa [ 8 ] ;\n int last_part_rate = INT_MAX ;\n int64_t last_part_dist = INT64_MAX ;\n int64_t last_part_rd = INT64_MAX ;\n int none_rate = INT_MAX ;\n int64_t none_dist = INT64_MAX ;\n int64_t none_rd = INT64_MAX ;\n int chosen_rate = INT_MAX ;\n int64_t chosen_dist = INT64_MAX ;\n int64_t chosen_rd = INT64_MAX ;\n BLOCK_SIZE sub_subsize = BLOCK_4X4 ;\n int splits_below = 0 ;\n BLOCK_SIZE bs_type = mi_8x8 [ 0 ] -> mbmi . sb_type ;\n int do_partition_search = 1 ;\n PICK_MODE_CONTEXT * ctx = & pc_tree -> none ;\n if ( mi_row >= cm -> mi_rows || mi_col >= cm -> mi_cols ) return ;\n assert ( num_4x4_blocks_wide_lookup [ bsize ] == num_4x4_blocks_high_lookup [ bsize ] ) ;\n partition = partition_lookup [ bsl ] [ bs_type ] ;\n subsize = get_subsize ( bsize , partition ) ;\n pc_tree -> partitioning = partition ;\n save_context ( cpi , mi_row , mi_col , a , l , sa , sl , bsize ) ;\n if ( bsize == BLOCK_16X16 && cpi -> oxcf . aq_mode ) {\n set_offsets ( cpi , tile , mi_row , mi_col , bsize ) ;\n x -> mb_energy = vp9_block_energy ( cpi , x , bsize ) ;\n }\n if ( do_partition_search && cpi -> sf . partition_search_type == SEARCH_PARTITION && cpi -> sf . adjust_partitioning_from_last_frame ) {\n if ( partition == PARTITION_SPLIT && subsize > BLOCK_8X8 ) {\n sub_subsize = get_subsize ( subsize , PARTITION_SPLIT ) ;\n splits_below = 1 ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n int jj = i >> 1 , ii = i & 0x01 ;\n MODE_INFO * this_mi = mi_8x8 [ jj * bss * mis + ii * bss ] ;\n if ( this_mi && this_mi -> mbmi . sb_type >= sub_subsize ) {\n splits_below = 0 ;\n }\n }\n }\n if ( partition != PARTITION_NONE && ! splits_below && mi_row + ( mi_step >> 1 ) < cm -> mi_rows && mi_col + ( mi_step >> 1 ) < cm -> mi_cols ) {\n pc_tree -> partitioning = PARTITION_NONE ;\n rd_pick_sb_modes ( cpi , tile , mi_row , mi_col , & none_rate , & none_dist , bsize , ctx , INT64_MAX , 0 ) ;\n pl = partition_plane_context ( xd , mi_row , mi_col , bsize ) ;\n if ( none_rate < INT_MAX ) {\n none_rate += cpi -> partition_cost [ pl ] [ PARTITION_NONE ] ;\n none_rd = RDCOST ( x -> rdmult , x -> rddiv , none_rate , none_dist ) ;\n }\n restore_context ( cpi , mi_row , mi_col , a , l , sa , sl , bsize ) ;\n mi_8x8 [ 0 ] -> mbmi . sb_type = bs_type ;\n pc_tree -> partitioning = partition ;\n }\n }\n switch ( partition ) {\n case PARTITION_NONE : rd_pick_sb_modes ( cpi , tile , mi_row , mi_col , & last_part_rate , & last_part_dist , bsize , ctx , INT64_MAX , 0 ) ;\n break ;\n case PARTITION_HORZ : rd_pick_sb_modes ( cpi , tile , mi_row , mi_col , & last_part_rate , & last_part_dist , subsize , & pc_tree -> horizontal [ 0 ] , INT64_MAX , 0 ) ;\n if ( last_part_rate != INT_MAX && bsize >= BLOCK_8X8 && mi_row + ( mi_step >> 1 ) < cm -> mi_rows ) {\n int rt = 0 ;\n int64_t dt = 0 ;\n PICK_MODE_CONTEXT * ctx = & pc_tree -> horizontal [ 0 ] ;\n update_state ( cpi , ctx , mi_row , mi_col , subsize , 0 ) ;\n encode_superblock ( cpi , tp , 0 , mi_row , mi_col , subsize , ctx ) ;\n rd_pick_sb_modes ( cpi , tile , mi_row + ( mi_step >> 1 ) , mi_col , & rt , & dt , subsize , & pc_tree -> horizontal [ 1 ] , INT64_MAX , 1 ) ;\n if ( rt == INT_MAX || dt == INT64_MAX ) {\n last_part_rate = INT_MAX ;\n last_part_dist = INT64_MAX ;\n break ;\n }\n last_part_rate += rt ;\n last_part_dist += dt ;\n }\n break ;\n case PARTITION_VERT : rd_pick_sb_modes ( cpi , tile , mi_row , mi_col , & last_part_rate , & last_part_dist , subsize , & pc_tree -> vertical [ 0 ] , INT64_MAX , 0 ) ;\n if ( last_part_rate != INT_MAX && bsize >= BLOCK_8X8 && mi_col + ( mi_step >> 1 ) < cm -> mi_cols ) {\n int rt = 0 ;\n int64_t dt = 0 ;\n PICK_MODE_CONTEXT * ctx = & pc_tree -> vertical [ 0 ] ;\n update_state ( cpi , ctx , mi_row , mi_col , subsize , 0 ) ;\n encode_superblock ( cpi , tp , 0 , mi_row , mi_col , subsize , ctx ) ;\n rd_pick_sb_modes ( cpi , tile , mi_row , mi_col + ( mi_step >> 1 ) , & rt , & dt , subsize , & pc_tree -> vertical [ bsize > BLOCK_8X8 ] , INT64_MAX , 1 ) ;\n if ( rt == INT_MAX || dt == INT64_MAX ) {\n last_part_rate = INT_MAX ;\n last_part_dist = INT64_MAX ;\n break ;\n }\n last_part_rate += rt ;\n last_part_dist += dt ;\n }\n break ;\n case PARTITION_SPLIT : if ( bsize == BLOCK_8X8 ) {\n rd_pick_sb_modes ( cpi , tile , mi_row , mi_col , & last_part_rate , & last_part_dist , subsize , pc_tree -> leaf_split [ 0 ] , INT64_MAX , 0 ) ;\n break ;\n }\n last_part_rate = 0 ;\n last_part_dist = 0 ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n int x_idx = ( i & 1 ) * ( mi_step >> 1 ) ;\n int y_idx = ( i >> 1 ) * ( mi_step >> 1 ) ;\n int jj = i >> 1 , ii = i & 0x01 ;\n int rt ;\n int64_t dt ;\n if ( ( mi_row + y_idx >= cm -> mi_rows ) || ( mi_col + x_idx >= cm -> mi_cols ) ) continue ;\n rd_use_partition ( cpi , tile , mi_8x8 + jj * bss * mis + ii * bss , tp , mi_row + y_idx , mi_col + x_idx , subsize , & rt , & dt , i != 3 , pc_tree -> split [ i ] ) ;\n if ( rt == INT_MAX || dt == INT64_MAX ) {\n last_part_rate = INT_MAX ;\n last_part_dist = INT64_MAX ;\n break ;\n }\n last_part_rate += rt ;\n last_part_dist += dt ;\n }\n break ;\n default : assert ( 0 ) ;\n break ;\n }\n pl = partition_plane_context ( xd , mi_row , mi_col , bsize ) ;\n if ( last_part_rate < INT_MAX ) {\n last_part_rate += cpi -> partition_cost [ pl ] [ partition ] ;\n last_part_rd = RDCOST ( x -> rdmult , x -> rddiv , last_part_rate , last_part_dist ) ;\n }\n if ( do_partition_search && cpi -> sf . adjust_partitioning_from_last_frame && cpi -> sf . partition_search_type == SEARCH_PARTITION && partition != PARTITION_SPLIT && bsize > BLOCK_8X8 && ( mi_row + mi_step < cm -> mi_rows || mi_row + ( mi_step >> 1 ) == cm -> mi_rows ) && ( mi_col + mi_step < cm -> mi_cols || mi_col + ( mi_step >> 1 ) == cm -> mi_cols ) ) {\n BLOCK_SIZE split_subsize = get_subsize ( bsize , PARTITION_SPLIT ) ;\n chosen_rate = 0 ;\n chosen_dist = 0 ;\n restore_context ( cpi , mi_row , mi_col , a , l , sa , sl , bsize ) ;\n pc_tree -> partitioning = PARTITION_SPLIT ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n int x_idx = ( i & 1 ) * ( mi_step >> 1 ) ;\n int y_idx = ( i >> 1 ) * ( mi_step >> 1 ) ;\n int rt = 0 ;\n int64_t dt = 0 ;\n ENTROPY_CONTEXT l [ 16 * MAX_MB_PLANE ] , a [ 16 * MAX_MB_PLANE ] ;\n PARTITION_CONTEXT sl [ 8 ] , sa [ 8 ] ;\n if ( ( mi_row + y_idx >= cm -> mi_rows ) || ( mi_col + x_idx >= cm -> mi_cols ) ) continue ;\n save_context ( cpi , mi_row , mi_col , a , l , sa , sl , bsize ) ;\n pc_tree -> split [ i ] -> partitioning = PARTITION_NONE ;\n rd_pick_sb_modes ( cpi , tile , mi_row + y_idx , mi_col + x_idx , & rt , & dt , split_subsize , & pc_tree -> split [ i ] -> none , INT64_MAX , i ) ;\n restore_context ( cpi , mi_row , mi_col , a , l , sa , sl , bsize ) ;\n if ( rt == INT_MAX || dt == INT64_MAX ) {\n chosen_rate = INT_MAX ;\n chosen_dist = INT64_MAX ;\n break ;\n }\n chosen_rate += rt ;\n chosen_dist += dt ;\n if ( i != 3 ) encode_sb ( cpi , tile , tp , mi_row + y_idx , mi_col + x_idx , 0 , split_subsize , pc_tree -> split [ i ] ) ;\n pl = partition_plane_context ( xd , mi_row + y_idx , mi_col + x_idx , split_subsize ) ;\n chosen_rate += cpi -> partition_cost [ pl ] [ PARTITION_NONE ] ;\n }\n pl = partition_plane_context ( xd , mi_row , mi_col , bsize ) ;\n if ( chosen_rate < INT_MAX ) {\n chosen_rate += cpi -> partition_cost [ pl ] [ PARTITION_SPLIT ] ;\n chosen_rd = RDCOST ( x -> rdmult , x -> rddiv , chosen_rate , chosen_dist ) ;\n }\n }\n if ( last_part_rd < chosen_rd ) {\n mi_8x8 [ 0 ] -> mbmi . sb_type = bsize ;\n if ( bsize >= BLOCK_8X8 ) pc_tree -> partitioning = partition ;\n chosen_rate = last_part_rate ;\n chosen_dist = last_part_dist ;\n chosen_rd = last_part_rd ;\n }\n if ( none_rd < chosen_rd ) {\n if ( bsize >= BLOCK_8X8 ) pc_tree -> partitioning = PARTITION_NONE ;\n chosen_rate = none_rate ;\n chosen_dist = none_dist ;\n }\n restore_context ( cpi , mi_row , mi_col , a , l , sa , sl , bsize ) ;\n if ( bsize == BLOCK_64X64 ) assert ( chosen_rate < INT_MAX && chosen_dist < INT64_MAX ) ;\n if ( do_recon ) {\n int output_enabled = ( bsize == BLOCK_64X64 ) ;\n if ( ( cpi -> oxcf . aq_mode == COMPLEXITY_AQ ) && cm -> seg . update_map ) {\n vp9_select_in_frame_q_segment ( cpi , mi_row , mi_col , output_enabled , chosen_rate ) ;\n }\n if ( cpi -> oxcf . aq_mode == CYCLIC_REFRESH_AQ ) vp9_cyclic_refresh_set_rate_and_dist_sb ( cpi -> cyclic_refresh , chosen_rate , chosen_dist ) ;\n encode_sb ( cpi , tile , tp , mi_row , mi_col , output_enabled , bsize , pc_tree ) ;\n }\n * rate = chosen_rate ;\n * dist = chosen_dist ;\n }"}
{"idx": 3004, "target": 0, "func": "static int init_nss_db ( struct crypto_instance * instance ) {\n if ( ( ! cipher_to_nss [ instance -> crypto_cipher_type ] ) && ( ! hash_to_nss [ instance -> crypto_hash_type ] ) ) {\n return 0 ;\n }\n if ( NSS_NoDB_Init ( \".\" ) != SECSuccess ) {\n log_printf ( instance -> log_level_security , \"NSS DB initialization failed (err %d)\" , PR_GetError ( ) ) ;\n return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 3005, "target": 0, "func": "static char * gs_main_tempnames ( gs_main_instance * minst ) {\n i_ctx_t * i_ctx_p = minst -> i_ctx_p ;\n ref * SAFETY ;\n ref * tempfiles ;\n ref keyval [ 2 ] ;\n char * tempnames = NULL ;\n int i ;\n int idict ;\n int len = 0 ;\n const byte * data = NULL ;\n uint size ;\n if ( minst -> init_done >= 2 ) {\n if ( dict_find_string ( systemdict , \"SAFETY\" , & SAFETY ) <= 0 || dict_find_string ( SAFETY , \"tempfiles\" , & tempfiles ) <= 0 ) return NULL ;\n idict = dict_first ( tempfiles ) ;\n while ( ( idict = dict_next ( tempfiles , idict , & keyval [ 0 ] ) ) >= 0 ) {\n if ( obj_string_data ( minst -> heap , & keyval [ 0 ] , & data , & size ) >= 0 ) len += size + 1 ;\n }\n if ( len != 0 ) tempnames = ( char * ) malloc ( len + 1 ) ;\n if ( tempnames ) {\n memset ( tempnames , 0 , len + 1 ) ;\n idict = dict_first ( tempfiles ) ;\n i = 0 ;\n while ( ( idict = dict_next ( tempfiles , idict , & keyval [ 0 ] ) ) >= 0 ) {\n if ( obj_string_data ( minst -> heap , & keyval [ 0 ] , & data , & size ) >= 0 ) {\n memcpy ( tempnames + i , ( const char * ) data , size ) ;\n i += size ;\n tempnames [ i ++ ] = '\\0' ;\n }\n }\n }\n }\n return tempnames ;\n }"}
{"idx": 3006, "target": 0, "func": "static TRBCCode xhci_enable_slot ( XHCIState * xhci , unsigned int slotid ) {\n trace_usb_xhci_slot_enable ( slotid ) ;\n assert ( slotid >= 1 && slotid <= xhci -> numslots ) ;\n xhci -> slots [ slotid - 1 ] . enabled = 1 ;\n xhci -> slots [ slotid - 1 ] . uport = NULL ;\n memset ( xhci -> slots [ slotid - 1 ] . eps , 0 , sizeof ( XHCIEPContext * ) * 31 ) ;\n return CC_SUCCESS ;\n }"}
{"idx": 3007, "target": 0, "func": "static void decode_8_pulses_31bits ( const int16_t * fixed_index , AMRFixed * fixed_sparse ) {\n int pulse_position [ 8 ] ;\n int i , temp ;\n decode_10bit_pulse ( fixed_index [ 4 ] , pulse_position , 0 , 4 , 1 ) ;\n decode_10bit_pulse ( fixed_index [ 5 ] , pulse_position , 2 , 6 , 5 ) ;\n temp = ( ( fixed_index [ 6 ] >> 2 ) * 25 + 12 ) >> 5 ;\n pulse_position [ 3 ] = temp % 5 ;\n pulse_position [ 7 ] = temp / 5 ;\n if ( pulse_position [ 7 ] & 1 ) pulse_position [ 3 ] = 4 - pulse_position [ 3 ] ;\n pulse_position [ 3 ] = ( pulse_position [ 3 ] << 1 ) + ( fixed_index [ 6 ] & 1 ) ;\n pulse_position [ 7 ] = ( pulse_position [ 7 ] << 1 ) + ( ( fixed_index [ 6 ] >> 1 ) & 1 ) ;\n fixed_sparse -> n = 8 ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n const int pos1 = ( pulse_position [ i ] << 2 ) + i ;\n const int pos2 = ( pulse_position [ i + 4 ] << 2 ) + i ;\n const float sign = fixed_index [ i ] ? - 1.0 : 1.0 ;\n fixed_sparse -> x [ i ] = pos1 ;\n fixed_sparse -> x [ i + 4 ] = pos2 ;\n fixed_sparse -> y [ i ] = sign ;\n fixed_sparse -> y [ i + 4 ] = pos2 < pos1 ? - sign : sign ;\n }\n }"}
{"idx": 3008, "target": 0, "func": "static void vvalue_strbuf_append_ui4 ( wmem_strbuf_t * strbuf , void * ptr ) {\n guint32 ui4 = * ( guint32 * ) ptr ;\n wmem_strbuf_append_printf ( strbuf , \"%d\" , ui4 ) ;\n }"}
{"idx": 3009, "target": 1, "func": "VALUE rb_dlhandle_initialize ( int argc , VALUE argv [ ] , VALUE self ) {\n void * ptr ;\n struct dl_handle * dlhandle ;\n VALUE lib , flag ;\n char * clib ;\n int cflag ;\n const char * err ;\n switch ( rb_scan_args ( argc , argv , \"02\" , & lib , & flag ) ) {\n case 0 : clib = NULL ;\n cflag = RTLD_LAZY | RTLD_GLOBAL ;\n break ;\n case 1 : clib = NIL_P ( lib ) ? NULL : StringValuePtr ( lib ) ;\n cflag = RTLD_LAZY | RTLD_GLOBAL ;\n break ;\n case 2 : clib = NIL_P ( lib ) ? NULL : StringValuePtr ( lib ) ;\n cflag = NUM2INT ( flag ) ;\n break ;\n default : rb_bug ( \"rb_dlhandle_new\" ) ;\n }\n ptr = dlopen ( clib , cflag ) ;\n # if defined ( HAVE_DLERROR ) if ( ! ptr && ( err = dlerror ( ) ) ) {\n rb_raise ( rb_eDLError , \"%s\" , err ) ;\n }\n # else if ( ! ptr ) {\n err = dlerror ( ) ;\n rb_raise ( rb_eDLError , \"%s\" , err ) ;\n }\n # endif Data_Get_Struct ( self , struct dl_handle , dlhandle ) ;\n if ( dlhandle -> ptr && dlhandle -> open && dlhandle -> enable_close ) {\n dlclose ( dlhandle -> ptr ) ;\n }\n dlhandle -> ptr = ptr ;\n dlhandle -> open = 1 ;\n dlhandle -> enable_close = 0 ;\n if ( rb_block_given_p ( ) ) {\n rb_ensure ( rb_yield , self , rb_dlhandle_close , self ) ;\n }\n return Qnil ;\n }"}
{"idx": 3010, "target": 0, "func": "static int unpack_SQVH ( COOKContext * q , COOKSubpacket * p , int category , int * subband_coef_index , int * subband_coef_sign ) {\n int i , j ;\n int vlc , vd , tmp , result ;\n vd = vd_tab [ category ] ;\n result = 0 ;\n for ( i = 0 ;\n i < vpr_tab [ category ] ;\n i ++ ) {\n vlc = get_vlc2 ( & q -> gb , q -> sqvh [ category ] . table , q -> sqvh [ category ] . bits , 3 ) ;\n if ( p -> bits_per_subpacket < get_bits_count ( & q -> gb ) ) {\n vlc = 0 ;\n result = 1 ;\n }\n for ( j = vd - 1 ;\n j >= 0 ;\n j -- ) {\n tmp = ( vlc * invradix_tab [ category ] ) / 0x100000 ;\n subband_coef_index [ vd * i + j ] = vlc - tmp * ( kmax_tab [ category ] + 1 ) ;\n vlc = tmp ;\n }\n for ( j = 0 ;\n j < vd ;\n j ++ ) {\n if ( subband_coef_index [ i * vd + j ] ) {\n if ( get_bits_count ( & q -> gb ) < p -> bits_per_subpacket ) {\n subband_coef_sign [ i * vd + j ] = get_bits1 ( & q -> gb ) ;\n }\n else {\n result = 1 ;\n subband_coef_sign [ i * vd + j ] = 0 ;\n }\n }\n else {\n subband_coef_sign [ i * vd + j ] = 0 ;\n }\n }\n }\n return result ;\n }"}
{"idx": 3011, "target": 0, "func": "static zend_object_value spl_dllist_object_clone ( zval * zobject TSRMLS_DC ) {\n zend_object_value new_obj_val ;\n zend_object * old_object ;\n zend_object * new_object ;\n zend_object_handle handle = Z_OBJ_HANDLE_P ( zobject ) ;\n spl_dllist_object * intern ;\n old_object = zend_objects_get_address ( zobject TSRMLS_CC ) ;\n new_obj_val = spl_dllist_object_new_ex ( old_object -> ce , & intern , zobject , 1 TSRMLS_CC ) ;\n new_object = & intern -> std ;\n zend_objects_clone_members ( new_object , new_obj_val , old_object , handle TSRMLS_CC ) ;\n return new_obj_val ;\n }"}
{"idx": 3012, "target": 0, "func": "kadm5_ret_t kadm5_set_string ( void * server_handle , krb5_principal principal , const char * key , const char * value ) {\n kadm5_server_handle_t handle = server_handle ;\n kadm5_ret_t ret ;\n krb5_db_entry * kdb ;\n osa_princ_ent_rec adb ;\n CHECK_HANDLE ( server_handle ) ;\n if ( principal == NULL || key == NULL ) return EINVAL ;\n ret = kdb_get_entry ( handle , principal , & kdb , & adb ) ;\n if ( ret ) return ret ;\n ret = krb5_dbe_set_string ( handle -> context , kdb , key , value ) ;\n if ( ret ) goto done ;\n kdb -> mask = KADM5_TL_DATA ;\n ret = kdb_put_entry ( handle , kdb , & adb ) ;\n done : kdb_free_entry ( handle , kdb , & adb ) ;\n return ret ;\n }"}
{"idx": 3013, "target": 0, "func": "static void read_switchable_interp_probs ( FRAME_CONTEXT * fc , vp9_reader * r ) {\n int i , j ;\n for ( j = 0 ;\n j < SWITCHABLE_FILTER_CONTEXTS ;\n ++ j ) for ( i = 0 ;\n i < SWITCHABLE_FILTERS - 1 ;\n ++ i ) vp9_diff_update_prob ( r , & fc -> switchable_interp_prob [ j ] [ i ] ) ;\n }"}
{"idx": 3014, "target": 0, "func": "static int ready_callback_key_compare_only_active ( gconstpointer a , gconstpointer b ) {\n const ReadyCallback * callback_a ;\n callback_a = a ;\n if ( ! callback_a -> active ) {\n return - 1 ;\n }\n return ready_callback_key_compare ( a , b ) ;\n }"}
{"idx": 3015, "target": 0, "func": "static int dissect_h245_T_makeTerminalBroadcasterResponse ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_makeTerminalBroadcasterResponse , T_makeTerminalBroadcasterResponse_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 3016, "target": 0, "func": "relpRetVal relpTcpSetOwnCert ( relpTcp_t * pThis , char * cert ) {\n ENTER_RELPFUNC ;\n RELPOBJ_assert ( pThis , Tcp ) ;\n free ( pThis -> ownCertFile ) ;\n if ( cert == NULL ) {\n pThis -> ownCertFile = NULL ;\n }\n else {\n if ( ( pThis -> ownCertFile = strdup ( cert ) ) == NULL ) ABORT_FINALIZE ( RELP_RET_OUT_OF_MEMORY ) ;\n }\n finalize_it : LEAVE_RELPFUNC ;\n }"}
{"idx": 3017, "target": 0, "func": "int jbig2_decode_halftone_mmr ( Jbig2Ctx * ctx , const Jbig2GenericRegionParams * params , const byte * data , size_t size , Jbig2Image * image , size_t * consumed_bytes ) {\n Jbig2MmrCtx mmr ;\n const uint32_t rowstride = image -> stride ;\n byte * dst = image -> data ;\n byte * ref = NULL ;\n uint32_t y ;\n int code = 0 ;\n const uint32_t EOFB = 0x001001 ;\n jbig2_decode_mmr_init ( & mmr , image -> width , image -> height , data , size ) ;\n for ( y = 0 ;\n y < image -> height ;\n y ++ ) {\n memset ( dst , 0 , rowstride ) ;\n code = jbig2_decode_mmr_line ( & mmr , ref , dst ) ;\n if ( code < 0 ) return code ;\n ref = dst ;\n dst += rowstride ;\n }\n if ( mmr . word >> 8 == EOFB ) {\n mmr . data_index += 3 ;\n }\n * consumed_bytes += mmr . data_index + ( mmr . bit_index >> 3 ) + ( mmr . bit_index > 0 ? 1 : 0 ) ;\n return code ;\n }"}
{"idx": 3018, "target": 0, "func": "static int avi_extract_stream_metadata ( AVFormatContext * s , AVStream * st ) {\n GetByteContext gb ;\n uint8_t * data = st -> codecpar -> extradata ;\n int data_size = st -> codecpar -> extradata_size ;\n int tag , offset ;\n if ( ! data || data_size < 8 ) {\n return AVERROR_INVALIDDATA ;\n }\n bytestream2_init ( & gb , data , data_size ) ;\n tag = bytestream2_get_le32 ( & gb ) ;\n switch ( tag ) {\n case MKTAG ( 'A' , 'V' , 'I' , 'F' ) : bytestream2_skip ( & gb , 4 ) ;\n offset = bytestream2_tell ( & gb ) ;\n bytestream2_init ( & gb , data + offset , data_size - offset ) ;\n return avpriv_exif_decode_ifd ( s , & gb , 1 , 0 , & st -> metadata ) ;\n break ;\n case MKTAG ( 'C' , 'A' , 'S' , 'I' ) : avpriv_request_sample ( s , \"RIFF stream data tag type CASI (%u)\" , tag ) ;\n break ;\n case MKTAG ( 'Z' , 'o' , 'r' , 'a' ) : avpriv_request_sample ( s , \"RIFF stream data tag type Zora (%u)\" , tag ) ;\n break ;\n default : break ;\n }\n return 0 ;\n }"}
{"idx": 3019, "target": 0, "func": "static Datum ExecEvalRowCompare ( RowCompareExprState * rstate , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n bool result ;\n RowCompareType rctype = ( ( RowCompareExpr * ) rstate -> xprstate . expr ) -> rctype ;\n int32 cmpresult = 0 ;\n ListCell * l ;\n ListCell * r ;\n int i ;\n if ( isDone ) * isDone = ExprSingleResult ;\n * isNull = true ;\n i = 0 ;\n forboth ( l , rstate -> largs , r , rstate -> rargs ) {\n ExprState * le = ( ExprState * ) lfirst ( l ) ;\n ExprState * re = ( ExprState * ) lfirst ( r ) ;\n FunctionCallInfoData locfcinfo ;\n InitFunctionCallInfoData ( locfcinfo , & ( rstate -> funcs [ i ] ) , 2 , rstate -> collations [ i ] , NULL , NULL ) ;\n locfcinfo . arg [ 0 ] = ExecEvalExpr ( le , econtext , & locfcinfo . argnull [ 0 ] , NULL ) ;\n locfcinfo . arg [ 1 ] = ExecEvalExpr ( re , econtext , & locfcinfo . argnull [ 1 ] , NULL ) ;\n if ( rstate -> funcs [ i ] . fn_strict && ( locfcinfo . argnull [ 0 ] || locfcinfo . argnull [ 1 ] ) ) return ( Datum ) 0 ;\n locfcinfo . isnull = false ;\n cmpresult = DatumGetInt32 ( FunctionCallInvoke ( & locfcinfo ) ) ;\n if ( locfcinfo . isnull ) return ( Datum ) 0 ;\n if ( cmpresult != 0 ) break ;\n i ++ ;\n }\n switch ( rctype ) {\n case ROWCOMPARE_LT : result = ( cmpresult < 0 ) ;\n break ;\n case ROWCOMPARE_LE : result = ( cmpresult <= 0 ) ;\n break ;\n case ROWCOMPARE_GE : result = ( cmpresult >= 0 ) ;\n break ;\n case ROWCOMPARE_GT : result = ( cmpresult > 0 ) ;\n break ;\n default : elog ( ERROR , \"unrecognized RowCompareType: %d\" , ( int ) rctype ) ;\n result = 0 ;\n break ;\n }\n * isNull = false ;\n return BoolGetDatum ( result ) ;\n }"}
{"idx": 3020, "target": 0, "func": "static gcry_err_code_t pss_verify ( gcry_mpi_t value , gcry_mpi_t encoded , unsigned int nbits , int algo , size_t saltlen ) {\n gcry_err_code_t rc = 0 ;\n size_t hlen ;\n unsigned char * em = NULL ;\n size_t emlen = ( nbits + 7 ) / 8 ;\n unsigned char * salt ;\n unsigned char * h ;\n unsigned char * buf = NULL ;\n size_t buflen ;\n unsigned char * dbmask ;\n unsigned char * mhash ;\n unsigned char * p ;\n size_t n ;\n hlen = gcry_md_get_algo_dlen ( algo ) ;\n gcry_assert ( hlen ) ;\n buflen = 8 + hlen + saltlen ;\n if ( buflen < emlen - hlen - 1 ) buflen = emlen - hlen - 1 ;\n buflen += hlen ;\n buf = gcry_malloc ( buflen ) ;\n if ( ! buf ) {\n rc = gpg_err_code_from_syserror ( ) ;\n goto leave ;\n }\n dbmask = buf ;\n mhash = buf + buflen - hlen ;\n rc = octet_string_from_mpi ( NULL , mhash , value , hlen ) ;\n if ( rc ) goto leave ;\n rc = octet_string_from_mpi ( & em , NULL , encoded , emlen ) ;\n if ( rc ) goto leave ;\n if ( emlen < hlen + saltlen + 2 ) {\n rc = GPG_ERR_TOO_SHORT ;\n goto leave ;\n }\n if ( em [ emlen - 1 ] != 0xbc ) {\n rc = GPG_ERR_BAD_SIGNATURE ;\n goto leave ;\n }\n h = em + emlen - 1 - hlen ;\n if ( ( em [ 0 ] & ~ ( 0xFF >> ( 8 * emlen - nbits ) ) ) ) {\n rc = GPG_ERR_BAD_SIGNATURE ;\n goto leave ;\n }\n mgf1 ( dbmask , emlen - hlen - 1 , h , hlen , algo ) ;\n for ( n = 0 , p = dbmask ;\n n < emlen - hlen - 1 ;\n n ++ , p ++ ) em [ n ] ^= * p ;\n em [ 0 ] &= 0xFF >> ( 8 * emlen - nbits ) ;\n for ( n = 0 ;\n n < emlen - hlen - saltlen - 2 && ! em [ n ] ;\n n ++ ) ;\n if ( n != emlen - hlen - saltlen - 2 || em [ n ++ ] != 1 ) {\n rc = GPG_ERR_BAD_SIGNATURE ;\n goto leave ;\n }\n salt = em + n ;\n memset ( buf , 0 , 8 ) ;\n memcpy ( buf + 8 , mhash , hlen ) ;\n memcpy ( buf + 8 + hlen , salt , saltlen ) ;\n gcry_md_hash_buffer ( algo , buf , buf , 8 + hlen + saltlen ) ;\n rc = memcmp ( h , buf , hlen ) ? GPG_ERR_BAD_SIGNATURE : GPG_ERR_NO_ERROR ;\n leave : if ( em ) {\n wipememory ( em , emlen ) ;\n gcry_free ( em ) ;\n }\n if ( buf ) {\n wipememory ( buf , buflen ) ;\n gcry_free ( buf ) ;\n }\n return rc ;\n }"}
{"idx": 3021, "target": 0, "func": "static void su_failure ( const char * tty , bool su_to_root ) {\n sulog ( tty , false , caller_name , name ) ;\n # ifdef USE_SYSLOG if ( getdef_bool ( \"SYSLOG_SU_ENAB\" ) ) {\n SYSLOG ( ( su_to_root ? LOG_NOTICE : LOG_INFO , \"- %s %s:%s\" , tty , ( '\\0' != caller_name [ 0 ] ) ? caller_name : \"???\" , ( '\\0' != name [ 0 ] ) ? name : \"???\" ) ) ;\n }\n closelog ( ) ;\n # endif # ifdef WITH_AUDIT audit_fd = audit_open ( ) ;\n audit_log_acct_message ( audit_fd , AUDIT_USER_ROLE_CHANGE , NULL , \"su\" , ( '\\0' != caller_name [ 0 ] ) ? caller_name : \"???\" , AUDIT_NO_ID , \"localhost\" , NULL , tty , 0 ) ;\n close ( audit_fd ) ;\n # endif exit ( 1 ) ;\n }"}
{"idx": 3022, "target": 0, "func": "sf_count_t psf_ftell ( SF_PRIVATE * psf ) {\n sf_count_t pos ;\n if ( psf -> virtual_io ) return psf -> vio . tell ( psf -> vio_user_data ) ;\n if ( psf -> is_pipe ) return psf -> pipeoffset ;\n pos = lseek ( psf -> file . filedes , 0 , SEEK_CUR ) ;\n if ( pos == ( ( sf_count_t ) - 1 ) ) {\n psf_log_syserr ( psf , errno ) ;\n return - 1 ;\n }\n ;\n return pos - psf -> fileoffset ;\n }"}
{"idx": 3023, "target": 0, "func": "TSReturnCode TSHttpTxnHookRegisteredFor ( TSHttpTxn txnp , TSHttpHookID id , TSEventFunc funcp ) {\n HttpSM * sm = ( HttpSM * ) txnp ;\n APIHook * hook = sm -> txn_hook_get ( id ) ;\n while ( hook != nullptr ) {\n if ( hook -> m_cont && hook -> m_cont -> m_event_func == funcp ) {\n return TS_SUCCESS ;\n }\n hook = hook -> m_link . next ;\n }\n return TS_ERROR ;\n }"}
{"idx": 3024, "target": 0, "func": "static void gst_asf_demux_mark_discont ( GstASFDemux * demux ) {\n guint n ;\n GST_DEBUG_OBJECT ( demux , \"Mark stream discont\" ) ;\n for ( n = 0 ;\n n < demux -> num_streams ;\n n ++ ) demux -> stream [ n ] . discont = TRUE ;\n }"}
{"idx": 3025, "target": 0, "func": "static bool virtio_net_started ( VirtIONet * n , uint8_t status ) {\n return ( status & VIRTIO_CONFIG_S_DRIVER_OK ) && ( n -> status & VIRTIO_NET_S_LINK_UP ) && n -> vdev . vm_running ;\n }"}
{"idx": 3026, "target": 0, "func": "static int dissect_h245_MaintenanceLoopAck ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MaintenanceLoopAck , MaintenanceLoopAck_sequence ) ;\n return offset ;\n }"}
{"idx": 3027, "target": 0, "func": "static ngx_int_t process_header ( ngx_http_request_t * r ) {\n ngx_str_t * status_line ;\n ngx_int_t rc , status ;\n ngx_table_elt_t * h ;\n ngx_http_upstream_t * u ;\n ngx_http_upstream_header_t * hh ;\n ngx_http_upstream_main_conf_t * umcf ;\n ngx_http_core_loc_conf_t * clcf ;\n passenger_loc_conf_t * slcf ;\n umcf = ngx_http_get_module_main_conf ( r , ngx_http_upstream_module ) ;\n clcf = ngx_http_get_module_loc_conf ( r , ngx_http_core_module ) ;\n slcf = ngx_http_get_module_loc_conf ( r , ngx_http_passenger_module ) ;\n for ( ;\n ;\n ) {\n rc = ngx_http_parse_header_line ( r , & r -> upstream -> buffer , 1 ) ;\n if ( rc == NGX_OK ) {\n h = ngx_list_push ( & r -> upstream -> headers_in . headers ) ;\n if ( h == NULL ) {\n return NGX_ERROR ;\n }\n h -> hash = r -> header_hash ;\n h -> key . len = r -> header_name_end - r -> header_name_start ;\n h -> value . len = r -> header_end - r -> header_start ;\n h -> key . data = ngx_pnalloc ( r -> pool , h -> key . len + 1 + h -> value . len + 1 + h -> key . len ) ;\n if ( h -> key . data == NULL ) {\n return NGX_ERROR ;\n }\n h -> value . data = h -> key . data + h -> key . len + 1 ;\n h -> lowcase_key = h -> key . data + h -> key . len + 1 + h -> value . len + 1 ;\n ngx_memcpy ( h -> key . data , r -> header_name_start , h -> key . len ) ;\n h -> key . data [ h -> key . len ] = '\\0' ;\n ngx_memcpy ( h -> value . data , r -> header_start , h -> value . len ) ;\n h -> value . data [ h -> value . len ] = '\\0' ;\n if ( h -> key . len == r -> lowcase_index ) {\n ngx_memcpy ( h -> lowcase_key , r -> lowcase_header , h -> key . len ) ;\n }\n else {\n ngx_strlow ( h -> lowcase_key , h -> key . data , h -> key . len ) ;\n }\n hh = ngx_hash_find ( & umcf -> headers_in_hash , h -> hash , h -> lowcase_key , h -> key . len ) ;\n if ( hh && hh -> handler ( r , h , hh -> offset ) != NGX_OK ) {\n return NGX_ERROR ;\n }\n ngx_log_debug2 ( NGX_LOG_DEBUG_HTTP , r -> connection -> log , 0 , \"http scgi header: \\\"%V: %V\\\"\" , & h -> key , & h -> value ) ;\n continue ;\n }\n if ( rc == NGX_HTTP_PARSE_HEADER_DONE ) {\n ngx_log_debug0 ( NGX_LOG_DEBUG_HTTP , r -> connection -> log , 0 , \"http scgi header done\" ) ;\n if ( r -> upstream -> headers_in . server == NULL ) {\n h = ngx_list_push ( & r -> upstream -> headers_in . headers ) ;\n if ( h == NULL ) {\n return NGX_HTTP_INTERNAL_SERVER_ERROR ;\n }\n h -> hash = ngx_hash ( ngx_hash ( ngx_hash ( ngx_hash ( ngx_hash ( 's' , 'e' ) , 'r' ) , 'v' ) , 'e' ) , 'r' ) ;\n h -> key . len = sizeof ( \"Server\" ) - 1 ;\n h -> key . data = ( u_char * ) \"Server\" ;\n if ( slcf -> show_version_in_header == 0 ) {\n if ( clcf -> server_tokens ) {\n h -> value . data = ( u_char * ) ( NGINX_VER \" + Phusion Passenger\" ) ;\n }\n else {\n h -> value . data = ( u_char * ) ( \"nginx + Phusion Passenger\" ) ;\n }\n }\n else {\n if ( clcf -> server_tokens ) {\n h -> value . data = ( u_char * ) ( NGINX_VER \" + Phusion Passenger \" PASSENGER_VERSION ) ;\n }\n else {\n h -> value . data = ( u_char * ) ( \"nginx + Phusion Passenger \" PASSENGER_VERSION ) ;\n }\n }\n h -> value . len = ngx_strlen ( h -> value . data ) ;\n h -> lowcase_key = ( u_char * ) \"server\" ;\n }\n if ( r -> upstream -> headers_in . date == NULL ) {\n h = ngx_list_push ( & r -> upstream -> headers_in . headers ) ;\n if ( h == NULL ) {\n return NGX_HTTP_INTERNAL_SERVER_ERROR ;\n }\n h -> hash = ngx_hash ( ngx_hash ( ngx_hash ( 'd' , 'a' ) , 't' ) , 'e' ) ;\n h -> key . len = sizeof ( \"Date\" ) - 1 ;\n h -> key . data = ( u_char * ) \"Date\" ;\n h -> value . len = 0 ;\n h -> value . data = NULL ;\n h -> lowcase_key = ( u_char * ) \"date\" ;\n }\n u = r -> upstream ;\n if ( u -> headers_in . status_n ) {\n goto done ;\n }\n if ( u -> headers_in . status ) {\n status_line = & u -> headers_in . status -> value ;\n status = ngx_atoi ( status_line -> data , 3 ) ;\n if ( status == NGX_ERROR ) {\n ngx_log_error ( NGX_LOG_ERR , r -> connection -> log , 0 , \"upstream sent invalid status \\\"%V\\\"\" , status_line ) ;\n return NGX_HTTP_UPSTREAM_INVALID_HEADER ;\n }\n u -> headers_in . status_n = status ;\n u -> headers_in . status_line = * status_line ;\n }\n else if ( u -> headers_in . location ) {\n u -> headers_in . status_n = 302 ;\n ngx_str_set ( & u -> headers_in . status_line , \"302 Moved Temporarily\" ) ;\n }\n else {\n u -> headers_in . status_n = 200 ;\n ngx_str_set ( & u -> headers_in . status_line , \"200 OK\" ) ;\n }\n if ( u -> state ) {\n u -> state -> status = u -> headers_in . status_n ;\n }\n done : # ifdef NGX_HTTP_SWITCHING_PROTOCOLS if ( u -> headers_in . status_n == NGX_HTTP_SWITCHING_PROTOCOLS && r -> headers_in . upgrade ) {\n u -> upgrade = 1 ;\n }\n # endif return NGX_OK ;\n }\n if ( rc == NGX_AGAIN ) {\n return NGX_AGAIN ;\n }\n ngx_log_error ( NGX_LOG_ERR , r -> connection -> log , 0 , \"upstream sent invalid header\" ) ;\n return NGX_HTTP_UPSTREAM_INVALID_HEADER ;\n }\n }"}
{"idx": 3028, "target": 0, "func": "static int dissect_h225_CallType ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_CallType , CallType_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 3029, "target": 0, "func": "TEST_F ( SoundContentSettingObserverTest , AudioMutingUpdatesWithNavigation ) {\n EXPECT_FALSE ( web_contents ( ) -> IsAudioMuted ( ) ) ;\n ChangeSoundContentSettingTo ( CONTENT_SETTING_BLOCK ) ;\n EXPECT_TRUE ( web_contents ( ) -> IsAudioMuted ( ) ) ;\n NavigateAndCommit ( GURL ( kURL2 ) ) ;\n EXPECT_FALSE ( web_contents ( ) -> IsAudioMuted ( ) ) ;\n NavigateAndCommit ( GURL ( kURL1 ) ) ;\n EXPECT_TRUE ( web_contents ( ) -> IsAudioMuted ( ) ) ;\n }"}
{"idx": 3030, "target": 0, "func": "static void remove_callback_link_keep_data ( NautilusDirectory * directory , GList * link ) {\n ReadyCallback * callback ;\n callback = link -> data ;\n directory -> details -> call_when_ready_list = g_list_remove_link ( directory -> details -> call_when_ready_list , link ) ;\n request_counter_remove_request ( directory -> details -> call_when_ready_counters , callback -> request ) ;\n g_list_free_1 ( link ) ;\n }"}
{"idx": 3031, "target": 0, "func": "static void sbr_hf_inverse_filter ( SBRDSPContext * dsp , float ( * alpha0 ) [ 2 ] , float ( * alpha1 ) [ 2 ] , const float X_low [ 32 ] [ 40 ] [ 2 ] , int k0 ) {\n int k ;\n for ( k = 0 ;\n k < k0 ;\n k ++ ) {\n LOCAL_ALIGNED_16 ( float , phi , [ 3 ] , [ 2 ] [ 2 ] ) ;\n float dk ;\n dsp -> autocorrelate ( X_low [ k ] , phi ) ;\n dk = phi [ 2 ] [ 1 ] [ 0 ] * phi [ 1 ] [ 0 ] [ 0 ] - ( phi [ 1 ] [ 1 ] [ 0 ] * phi [ 1 ] [ 1 ] [ 0 ] + phi [ 1 ] [ 1 ] [ 1 ] * phi [ 1 ] [ 1 ] [ 1 ] ) / 1.000001f ;\n if ( ! dk ) {\n alpha1 [ k ] [ 0 ] = 0 ;\n alpha1 [ k ] [ 1 ] = 0 ;\n }\n else {\n float temp_real , temp_im ;\n temp_real = phi [ 0 ] [ 0 ] [ 0 ] * phi [ 1 ] [ 1 ] [ 0 ] - phi [ 0 ] [ 0 ] [ 1 ] * phi [ 1 ] [ 1 ] [ 1 ] - phi [ 0 ] [ 1 ] [ 0 ] * phi [ 1 ] [ 0 ] [ 0 ] ;\n temp_im = phi [ 0 ] [ 0 ] [ 0 ] * phi [ 1 ] [ 1 ] [ 1 ] + phi [ 0 ] [ 0 ] [ 1 ] * phi [ 1 ] [ 1 ] [ 0 ] - phi [ 0 ] [ 1 ] [ 1 ] * phi [ 1 ] [ 0 ] [ 0 ] ;\n alpha1 [ k ] [ 0 ] = temp_real / dk ;\n alpha1 [ k ] [ 1 ] = temp_im / dk ;\n }\n if ( ! phi [ 1 ] [ 0 ] [ 0 ] ) {\n alpha0 [ k ] [ 0 ] = 0 ;\n alpha0 [ k ] [ 1 ] = 0 ;\n }\n else {\n float temp_real , temp_im ;\n temp_real = phi [ 0 ] [ 0 ] [ 0 ] + alpha1 [ k ] [ 0 ] * phi [ 1 ] [ 1 ] [ 0 ] + alpha1 [ k ] [ 1 ] * phi [ 1 ] [ 1 ] [ 1 ] ;\n temp_im = phi [ 0 ] [ 0 ] [ 1 ] + alpha1 [ k ] [ 1 ] * phi [ 1 ] [ 1 ] [ 0 ] - alpha1 [ k ] [ 0 ] * phi [ 1 ] [ 1 ] [ 1 ] ;\n alpha0 [ k ] [ 0 ] = - temp_real / phi [ 1 ] [ 0 ] [ 0 ] ;\n alpha0 [ k ] [ 1 ] = - temp_im / phi [ 1 ] [ 0 ] [ 0 ] ;\n }\n if ( alpha1 [ k ] [ 0 ] * alpha1 [ k ] [ 0 ] + alpha1 [ k ] [ 1 ] * alpha1 [ k ] [ 1 ] >= 16.0f || alpha0 [ k ] [ 0 ] * alpha0 [ k ] [ 0 ] + alpha0 [ k ] [ 1 ] * alpha0 [ k ] [ 1 ] >= 16.0f ) {\n alpha1 [ k ] [ 0 ] = 0 ;\n alpha1 [ k ] [ 1 ] = 0 ;\n alpha0 [ k ] [ 0 ] = 0 ;\n alpha0 [ k ] [ 1 ] = 0 ;\n }\n }\n }"}
{"idx": 3032, "target": 0, "func": "static int dissect_rsl_ie_cb_cmd_type ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_tree * ie_tree ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_CB_CMD_TYPE ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_ie_cb_cmd_type , NULL , \"CB Command type IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_ch_needed , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n return offset ;\n }"}
{"idx": 3033, "target": 0, "func": "static void fadst8 ( const tran_low_t * input , tran_low_t * output ) {\n tran_high_t s0 , s1 , s2 , s3 , s4 , s5 , s6 , s7 ;\n tran_high_t x0 = input [ 7 ] ;\n tran_high_t x1 = input [ 0 ] ;\n tran_high_t x2 = input [ 5 ] ;\n tran_high_t x3 = input [ 2 ] ;\n tran_high_t x4 = input [ 3 ] ;\n tran_high_t x5 = input [ 4 ] ;\n tran_high_t x6 = input [ 1 ] ;\n tran_high_t x7 = input [ 6 ] ;\n s0 = cospi_2_64 * x0 + cospi_30_64 * x1 ;\n s1 = cospi_30_64 * x0 - cospi_2_64 * x1 ;\n s2 = cospi_10_64 * x2 + cospi_22_64 * x3 ;\n s3 = cospi_22_64 * x2 - cospi_10_64 * x3 ;\n s4 = cospi_18_64 * x4 + cospi_14_64 * x5 ;\n s5 = cospi_14_64 * x4 - cospi_18_64 * x5 ;\n s6 = cospi_26_64 * x6 + cospi_6_64 * x7 ;\n s7 = cospi_6_64 * x6 - cospi_26_64 * x7 ;\n x0 = fdct_round_shift ( s0 + s4 ) ;\n x1 = fdct_round_shift ( s1 + s5 ) ;\n x2 = fdct_round_shift ( s2 + s6 ) ;\n x3 = fdct_round_shift ( s3 + s7 ) ;\n x4 = fdct_round_shift ( s0 - s4 ) ;\n x5 = fdct_round_shift ( s1 - s5 ) ;\n x6 = fdct_round_shift ( s2 - s6 ) ;\n x7 = fdct_round_shift ( s3 - s7 ) ;\n s0 = x0 ;\n s1 = x1 ;\n s2 = x2 ;\n s3 = x3 ;\n s4 = cospi_8_64 * x4 + cospi_24_64 * x5 ;\n s5 = cospi_24_64 * x4 - cospi_8_64 * x5 ;\n s6 = - cospi_24_64 * x6 + cospi_8_64 * x7 ;\n s7 = cospi_8_64 * x6 + cospi_24_64 * x7 ;\n x0 = s0 + s2 ;\n x1 = s1 + s3 ;\n x2 = s0 - s2 ;\n x3 = s1 - s3 ;\n x4 = fdct_round_shift ( s4 + s6 ) ;\n x5 = fdct_round_shift ( s5 + s7 ) ;\n x6 = fdct_round_shift ( s4 - s6 ) ;\n x7 = fdct_round_shift ( s5 - s7 ) ;\n s2 = cospi_16_64 * ( x2 + x3 ) ;\n s3 = cospi_16_64 * ( x2 - x3 ) ;\n s6 = cospi_16_64 * ( x6 + x7 ) ;\n s7 = cospi_16_64 * ( x6 - x7 ) ;\n x2 = fdct_round_shift ( s2 ) ;\n x3 = fdct_round_shift ( s3 ) ;\n x6 = fdct_round_shift ( s6 ) ;\n x7 = fdct_round_shift ( s7 ) ;\n output [ 0 ] = x0 ;\n output [ 1 ] = - x4 ;\n output [ 2 ] = x6 ;\n output [ 3 ] = - x2 ;\n output [ 4 ] = x3 ;\n output [ 5 ] = - x7 ;\n output [ 6 ] = x5 ;\n output [ 7 ] = - x1 ;\n }"}
{"idx": 3034, "target": 0, "func": "static int rawv6_seticmpfilter ( struct sock * sk , int level , int optname , char __user * optval , int optlen ) {\n switch ( optname ) {\n case ICMPV6_FILTER : if ( optlen > sizeof ( struct icmp6_filter ) ) optlen = sizeof ( struct icmp6_filter ) ;\n if ( copy_from_user ( & raw6_sk ( sk ) -> filter , optval , optlen ) ) return - EFAULT ;\n return 0 ;\n default : return - ENOPROTOOPT ;\n }\n return 0 ;\n }"}
{"idx": 3035, "target": 0, "func": "static int spl_filesystem_file_is_empty_line ( spl_filesystem_object * intern TSRMLS_DC ) {\n if ( intern -> u . file . current_line ) {\n return intern -> u . file . current_line_len == 0 ;\n }\n else if ( intern -> u . file . current_zval ) {\n switch ( Z_TYPE_P ( intern -> u . file . current_zval ) ) {\n case IS_STRING : return Z_STRLEN_P ( intern -> u . file . current_zval ) == 0 ;\n case IS_ARRAY : if ( SPL_HAS_FLAG ( intern -> flags , SPL_FILE_OBJECT_READ_CSV ) && zend_hash_num_elements ( Z_ARRVAL_P ( intern -> u . file . current_zval ) ) == 1 ) {\n zval * * first = Z_ARRVAL_P ( intern -> u . file . current_zval ) -> pListHead -> pData ;\n return Z_TYPE_PP ( first ) == IS_STRING && Z_STRLEN_PP ( first ) == 0 ;\n }\n return zend_hash_num_elements ( Z_ARRVAL_P ( intern -> u . file . current_zval ) ) == 0 ;\n case IS_NULL : return 1 ;\n default : return 0 ;\n }\n }\n else {\n return 1 ;\n }\n }"}
{"idx": 3036, "target": 0, "func": "static int chacha20_poly1305_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_CHACHA_AEAD_CTX * actx = aead_data ( ctx ) ;\n size_t rem , plen = actx -> tls_payload_length ;\n static const unsigned char zero [ POLY1305_BLOCK_SIZE ] = {\n 0 }\n ;\n if ( ! actx -> mac_inited ) {\n actx -> key . counter [ 0 ] = 0 ;\n memset ( actx -> key . buf , 0 , sizeof ( actx -> key . buf ) ) ;\n ChaCha20_ctr32 ( actx -> key . buf , actx -> key . buf , CHACHA_BLK_SIZE , actx -> key . key . d , actx -> key . counter ) ;\n Poly1305_Init ( POLY1305_ctx ( actx ) , actx -> key . buf ) ;\n actx -> key . counter [ 0 ] = 1 ;\n actx -> key . partial_len = 0 ;\n actx -> len . aad = actx -> len . text = 0 ;\n actx -> mac_inited = 1 ;\n }\n if ( in ) {\n if ( out == NULL ) {\n Poly1305_Update ( POLY1305_ctx ( actx ) , in , len ) ;\n actx -> len . aad += len ;\n actx -> aad = 1 ;\n return len ;\n }\n else {\n if ( actx -> aad ) {\n if ( ( rem = ( size_t ) actx -> len . aad % POLY1305_BLOCK_SIZE ) ) Poly1305_Update ( POLY1305_ctx ( actx ) , zero , POLY1305_BLOCK_SIZE - rem ) ;\n actx -> aad = 0 ;\n }\n actx -> tls_payload_length = NO_TLS_PAYLOAD_LENGTH ;\n if ( plen == NO_TLS_PAYLOAD_LENGTH ) plen = len ;\n else if ( len != plen + POLY1305_BLOCK_SIZE ) return - 1 ;\n if ( ctx -> encrypt ) {\n chacha_cipher ( ctx , out , in , plen ) ;\n Poly1305_Update ( POLY1305_ctx ( actx ) , out , plen ) ;\n in += plen ;\n out += plen ;\n actx -> len . text += plen ;\n }\n else {\n Poly1305_Update ( POLY1305_ctx ( actx ) , in , plen ) ;\n chacha_cipher ( ctx , out , in , plen ) ;\n in += plen ;\n out += plen ;\n actx -> len . text += plen ;\n }\n }\n }\n if ( in == NULL || plen != len ) {\n const union {\n long one ;\n char little ;\n }\n is_endian = {\n 1 }\n ;\n unsigned char temp [ POLY1305_BLOCK_SIZE ] ;\n if ( actx -> aad ) {\n if ( ( rem = ( size_t ) actx -> len . aad % POLY1305_BLOCK_SIZE ) ) Poly1305_Update ( POLY1305_ctx ( actx ) , zero , POLY1305_BLOCK_SIZE - rem ) ;\n actx -> aad = 0 ;\n }\n if ( ( rem = ( size_t ) actx -> len . text % POLY1305_BLOCK_SIZE ) ) Poly1305_Update ( POLY1305_ctx ( actx ) , zero , POLY1305_BLOCK_SIZE - rem ) ;\n if ( is_endian . little ) {\n Poly1305_Update ( POLY1305_ctx ( actx ) , ( unsigned char * ) & actx -> len , POLY1305_BLOCK_SIZE ) ;\n }\n else {\n temp [ 0 ] = ( unsigned char ) ( actx -> len . aad ) ;\n temp [ 1 ] = ( unsigned char ) ( actx -> len . aad >> 8 ) ;\n temp [ 2 ] = ( unsigned char ) ( actx -> len . aad >> 16 ) ;\n temp [ 3 ] = ( unsigned char ) ( actx -> len . aad >> 24 ) ;\n temp [ 4 ] = ( unsigned char ) ( actx -> len . aad >> 32 ) ;\n temp [ 5 ] = ( unsigned char ) ( actx -> len . aad >> 40 ) ;\n temp [ 6 ] = ( unsigned char ) ( actx -> len . aad >> 48 ) ;\n temp [ 7 ] = ( unsigned char ) ( actx -> len . aad >> 56 ) ;\n temp [ 8 ] = ( unsigned char ) ( actx -> len . text ) ;\n temp [ 9 ] = ( unsigned char ) ( actx -> len . text >> 8 ) ;\n temp [ 10 ] = ( unsigned char ) ( actx -> len . text >> 16 ) ;\n temp [ 11 ] = ( unsigned char ) ( actx -> len . text >> 24 ) ;\n temp [ 12 ] = ( unsigned char ) ( actx -> len . text >> 32 ) ;\n temp [ 13 ] = ( unsigned char ) ( actx -> len . text >> 40 ) ;\n temp [ 14 ] = ( unsigned char ) ( actx -> len . text >> 48 ) ;\n temp [ 15 ] = ( unsigned char ) ( actx -> len . text >> 56 ) ;\n Poly1305_Update ( POLY1305_ctx ( actx ) , temp , POLY1305_BLOCK_SIZE ) ;\n }\n Poly1305_Final ( POLY1305_ctx ( actx ) , ctx -> encrypt ? actx -> tag : temp ) ;\n actx -> mac_inited = 0 ;\n if ( in != NULL && len != plen ) {\n if ( ctx -> encrypt ) {\n memcpy ( out , actx -> tag , POLY1305_BLOCK_SIZE ) ;\n }\n else {\n if ( CRYPTO_memcmp ( temp , in , POLY1305_BLOCK_SIZE ) ) {\n memset ( out - plen , 0 , plen ) ;\n return - 1 ;\n }\n }\n }\n else if ( ! ctx -> encrypt ) {\n if ( CRYPTO_memcmp ( temp , actx -> tag , actx -> tag_len ) ) return - 1 ;\n }\n }\n return len ;\n }"}
{"idx": 3037, "target": 0, "func": "SPL_METHOD ( SplFileInfo , func_name ) \\ {\n \\ spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n \\ zend_error_handling error_handling ;\n \\ if ( zend_parse_parameters_none ( ) == FAILURE ) {\n \\ return ;\n \\ }\n \\ \\ zend_replace_error_handling ( EH_THROW , spl_ce_RuntimeException , & error_handling TSRMLS_CC ) ;\n \\ spl_filesystem_object_get_file_name ( intern TSRMLS_CC ) ;\n \\ php_stat ( intern -> file_name , intern -> file_name_len , func_num , return_value TSRMLS_CC ) ;\n \\ zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n \\ }\n FileInfoFunction ( getPerms , FS_PERMS ) FileInfoFunction ( getInode , FS_INODE ) FileInfoFunction ( getSize , FS_SIZE ) FileInfoFunction ( getOwner , FS_OWNER ) FileInfoFunction ( getGroup , FS_GROUP ) FileInfoFunction ( getATime , FS_ATIME ) FileInfoFunction ( getMTime , FS_MTIME ) FileInfoFunction ( getCTime , FS_CTIME ) FileInfoFunction ( getType , FS_TYPE ) FileInfoFunction ( isWritable , FS_IS_W ) FileInfoFunction ( isReadable , FS_IS_R ) FileInfoFunction ( isExecutable , FS_IS_X ) FileInfoFunction ( isFile , FS_IS_FILE )"}
{"idx": 3038, "target": 0, "func": "static void insert_to_graph_t38 ( voip_calls_tapinfo_t * tapinfo _U_ , packet_info * pinfo , const gchar * frame_label , const gchar * comment , guint16 call_num , address * src_addr , address * dst_addr , guint16 line_style , guint32 frame_num ) {\n seq_analysis_item_t * gai , * new_gai ;\n GList * list ;\n guint item_num ;\n gboolean inserted ;\n gchar time_str [ COL_MAX_LEN ] ;\n new_gai = ( seq_analysis_item_t * ) g_malloc ( sizeof ( seq_analysis_item_t ) ) ;\n new_gai -> fd = packet_list_get_row_data ( frame_num ) ;\n COPY_ADDRESS ( & ( new_gai -> src_addr ) , src_addr ) ;\n COPY_ADDRESS ( & ( new_gai -> dst_addr ) , dst_addr ) ;\n new_gai -> port_src = pinfo -> srcport ;\n new_gai -> port_dst = pinfo -> destport ;\n if ( frame_label != NULL ) new_gai -> frame_label = g_strdup ( frame_label ) ;\n else new_gai -> frame_label = g_strdup ( \"\" ) ;\n if ( comment != NULL ) new_gai -> comment = g_strdup ( comment ) ;\n else new_gai -> comment = g_strdup ( \"\" ) ;\n new_gai -> conv_num = call_num ;\n new_gai -> line_style = line_style ;\n set_fd_time ( cfile . epan , new_gai -> fd , time_str ) ;\n new_gai -> time_str = g_strdup ( time_str ) ;\n new_gai -> display = FALSE ;\n item_num = 0 ;\n inserted = FALSE ;\n list = g_list_first ( tapinfo -> graph_analysis -> list ) ;\n while ( list ) {\n gai = ( seq_analysis_item_t * ) list -> data ;\n if ( gai -> fd -> num > frame_num ) {\n the_tapinfo_struct . graph_analysis -> list = g_list_insert ( the_tapinfo_struct . graph_analysis -> list , new_gai , item_num ) ;\n g_hash_table_insert ( tapinfo -> graph_analysis -> ht , & new_gai -> fd -> num , new_gai ) ;\n inserted = TRUE ;\n break ;\n }\n list = g_list_next ( list ) ;\n item_num ++ ;\n }\n if ( ! inserted ) {\n tapinfo -> graph_analysis -> list = g_list_prepend ( tapinfo -> graph_analysis -> list , new_gai ) ;\n g_hash_table_insert ( tapinfo -> graph_analysis -> ht , & new_gai -> fd -> num , new_gai ) ;\n }\n }"}
{"idx": 3039, "target": 1, "func": "static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 3040, "target": 0, "func": "int ahprintf ( ArchiveHandle * AH , const char * fmt , ... ) {\n char * p ;\n size_t len = 128 ;\n size_t cnt ;\n for ( ;\n ;\n ) {\n va_list args ;\n p = ( char * ) pg_malloc ( len ) ;\n va_start ( args , fmt ) ;\n cnt = pvsnprintf ( p , len , fmt , args ) ;\n va_end ( args ) ;\n if ( cnt < len ) break ;\n free ( p ) ;\n len = cnt ;\n }\n ahwrite ( p , 1 , cnt , AH ) ;\n free ( p ) ;\n return ( int ) cnt ;\n }"}
{"idx": 3041, "target": 0, "func": "static guint16 de_red_party_sub_addr ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ ) {\n gchar * extr_addr ;\n de_sub_addr ( tvb , tree , pinfo , offset , len , & extr_addr ) ;\n if ( extr_addr && add_string ) g_snprintf ( add_string , string_len , \" - (%s)\" , extr_addr ) ;\n return ( len ) ;\n }"}
{"idx": 3042, "target": 1, "func": "static int qemuAgentIORead ( qemuAgentPtr mon ) {\n size_t avail = mon -> bufferLength - mon -> bufferOffset ;\n int ret = 0 ;\n if ( avail < 1024 ) {\n if ( VIR_REALLOC_N ( mon -> buffer , mon -> bufferLength + 1024 ) < 0 ) return - 1 ;\n mon -> bufferLength += 1024 ;\n avail += 1024 ;\n }\n while ( avail > 1 ) {\n int got ;\n got = read ( mon -> fd , mon -> buffer + mon -> bufferOffset , avail - 1 ) ;\n if ( got < 0 ) {\n if ( errno == EAGAIN ) break ;\n virReportSystemError ( errno , \"%s\" , _ ( \"Unable to read from monitor\" ) ) ;\n ret = - 1 ;\n break ;\n }\n if ( got == 0 ) break ;\n ret += got ;\n avail -= got ;\n mon -> bufferOffset += got ;\n mon -> buffer [ mon -> bufferOffset ] = '\\0' ;\n }\n # if DEBUG_IO VIR_DEBUG ( \"Now read %zu bytes of data\" , mon -> bufferOffset ) ;\n # endif return ret ;\n }"}
{"idx": 3043, "target": 0, "func": "static inline int msmpeg4v1_pred_dc ( MpegEncContext * s , int n , int32_t * * dc_val_ptr ) {\n int i ;\n if ( n < 4 ) {\n i = 0 ;\n }\n else {\n i = n - 3 ;\n }\n * dc_val_ptr = & s -> last_dc [ i ] ;\n return s -> last_dc [ i ] ;\n }"}
{"idx": 3044, "target": 0, "func": "static void test_bug12744 ( ) {\n MYSQL_STMT * prep_stmt = NULL ;\n MYSQL * lmysql ;\n int rc ;\n myheader ( \"test_bug12744\" ) ;\n lmysql = mysql_client_init ( NULL ) ;\n DIE_UNLESS ( lmysql ) ;\n if ( ! mysql_real_connect ( lmysql , opt_host , opt_user , opt_password , current_db , opt_port , opt_unix_socket , 0 ) ) {\n fprintf ( stderr , \"Failed to connect to the database\\n\" ) ;\n DIE_UNLESS ( 0 ) ;\n }\n prep_stmt = mysql_stmt_init ( lmysql ) ;\n rc = mysql_stmt_prepare ( prep_stmt , \"SELECT 1\" , 8 ) ;\n DIE_UNLESS ( rc == 0 ) ;\n mysql_close ( lmysql ) ;\n rc = mysql_stmt_execute ( prep_stmt ) ;\n DIE_UNLESS ( rc ) ;\n rc = mysql_stmt_reset ( prep_stmt ) ;\n DIE_UNLESS ( rc ) ;\n rc = mysql_stmt_close ( prep_stmt ) ;\n DIE_UNLESS ( rc == 0 ) ;\n }"}
{"idx": 3045, "target": 0, "func": "TEST_P ( GLES2DecoderTestWithCHROMIUMFramebufferMixedSamples , CoverageModulationCHROMIUMValidArgs ) {\n EXPECT_CALL ( * gl_ , CoverageModulationNV ( GL_RGB ) ) ;\n SpecializedSetup < cmds : : CoverageModulationCHROMIUM , 0 > ( true ) ;\n cmds : : CoverageModulationCHROMIUM cmd ;\n cmd . Init ( GL_RGB ) ;\n EXPECT_EQ ( error : : kNoError , ExecuteCmd ( cmd ) ) ;\n EXPECT_EQ ( GL_NO_ERROR , GetGLError ( ) ) ;\n }"}
{"idx": 3046, "target": 0, "func": "PyObject * _PyString_Join ( PyObject * sep , PyObject * x ) {\n assert ( sep != NULL && PyString_Check ( sep ) ) ;\n assert ( x != NULL ) ;\n return string_join ( ( PyStringObject * ) sep , x ) ;\n }"}
{"idx": 3047, "target": 0, "func": "static void single_motion_search ( VP9_COMP * cpi , MACROBLOCK * x , BLOCK_SIZE bsize , int mi_row , int mi_col , int_mv * tmp_mv , int * rate_mv ) {\n MACROBLOCKD * xd = & x -> e_mbd ;\n const VP9_COMMON * cm = & cpi -> common ;\n MB_MODE_INFO * mbmi = & xd -> mi [ 0 ] . src_mi -> mbmi ;\n struct buf_2d backup_yv12 [ MAX_MB_PLANE ] = {\n {\n 0 , 0 }\n }\n ;\n int bestsme = INT_MAX ;\n int step_param ;\n int sadpb = x -> sadperbit16 ;\n MV mvp_full ;\n int ref = mbmi -> ref_frame [ 0 ] ;\n MV ref_mv = mbmi -> ref_mvs [ ref ] [ 0 ] . as_mv ;\n int tmp_col_min = x -> mv_col_min ;\n int tmp_col_max = x -> mv_col_max ;\n int tmp_row_min = x -> mv_row_min ;\n int tmp_row_max = x -> mv_row_max ;\n int sad_list [ 5 ] ;\n const YV12_BUFFER_CONFIG * scaled_ref_frame = vp9_get_scaled_ref_frame ( cpi , ref ) ;\n MV pred_mv [ 3 ] ;\n pred_mv [ 0 ] = mbmi -> ref_mvs [ ref ] [ 0 ] . as_mv ;\n pred_mv [ 1 ] = mbmi -> ref_mvs [ ref ] [ 1 ] . as_mv ;\n pred_mv [ 2 ] = x -> pred_mv [ ref ] ;\n if ( scaled_ref_frame ) {\n int i ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n i ++ ) backup_yv12 [ i ] = xd -> plane [ i ] . pre [ 0 ] ;\n vp9_setup_pre_planes ( xd , 0 , scaled_ref_frame , mi_row , mi_col , NULL ) ;\n }\n vp9_set_mv_search_range ( x , & ref_mv ) ;\n if ( cpi -> sf . mv . auto_mv_step_size && cm -> show_frame ) {\n step_param = ( vp9_init_search_range ( x -> max_mv_context [ ref ] ) + cpi -> mv_step_param ) / 2 ;\n }\n else {\n step_param = cpi -> mv_step_param ;\n }\n if ( cpi -> sf . adaptive_motion_search && bsize < BLOCK_64X64 ) {\n int boffset = 2 * ( b_width_log2 ( BLOCK_64X64 ) - MIN ( b_height_log2 ( bsize ) , b_width_log2 ( bsize ) ) ) ;\n step_param = MAX ( step_param , boffset ) ;\n }\n if ( cpi -> sf . adaptive_motion_search ) {\n int bwl = b_width_log2 ( bsize ) ;\n int bhl = b_height_log2 ( bsize ) ;\n int i ;\n int tlevel = x -> pred_mv_sad [ ref ] >> ( bwl + bhl + 4 ) ;\n if ( tlevel < 5 ) step_param += 2 ;\n for ( i = LAST_FRAME ;\n i <= ALTREF_FRAME && cm -> show_frame ;\n ++ i ) {\n if ( ( x -> pred_mv_sad [ ref ] >> 3 ) > x -> pred_mv_sad [ i ] ) {\n x -> pred_mv [ ref ] . row = 0 ;\n x -> pred_mv [ ref ] . col = 0 ;\n tmp_mv -> as_int = INVALID_MV ;\n if ( scaled_ref_frame ) {\n int i ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n i ++ ) xd -> plane [ i ] . pre [ 0 ] = backup_yv12 [ i ] ;\n }\n return ;\n }\n }\n }\n mvp_full = pred_mv [ x -> mv_best_ref_index [ ref ] ] ;\n mvp_full . col >>= 3 ;\n mvp_full . row >>= 3 ;\n bestsme = vp9_full_pixel_search ( cpi , x , bsize , & mvp_full , step_param , sadpb , cond_sad_list ( cpi , sad_list ) , & ref_mv , & tmp_mv -> as_mv , INT_MAX , 1 ) ;\n x -> mv_col_min = tmp_col_min ;\n x -> mv_col_max = tmp_col_max ;\n x -> mv_row_min = tmp_row_min ;\n x -> mv_row_max = tmp_row_max ;\n if ( bestsme < INT_MAX ) {\n int dis ;\n cpi -> find_fractional_mv_step ( x , & tmp_mv -> as_mv , & ref_mv , cm -> allow_high_precision_mv , x -> errorperbit , & cpi -> fn_ptr [ bsize ] , cpi -> sf . mv . subpel_force_stop , cpi -> sf . mv . subpel_iters_per_step , cond_sad_list ( cpi , sad_list ) , x -> nmvjointcost , x -> mvcost , & dis , & x -> pred_sse [ ref ] , NULL , 0 , 0 ) ;\n }\n * rate_mv = vp9_mv_bit_cost ( & tmp_mv -> as_mv , & ref_mv , x -> nmvjointcost , x -> mvcost , MV_COST_WEIGHT ) ;\n if ( cpi -> sf . adaptive_motion_search ) x -> pred_mv [ ref ] = tmp_mv -> as_mv ;\n if ( scaled_ref_frame ) {\n int i ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n i ++ ) xd -> plane [ i ] . pre [ 0 ] = backup_yv12 [ i ] ;\n }\n }"}
{"idx": 3048, "target": 0, "func": "void timeout_process ( struct event_base * base ) {\n struct timeval now ;\n struct event * ev ;\n if ( min_heap_empty ( & base -> timeheap ) ) return ;\n gettime ( base , & now ) ;\n while ( ( ev = min_heap_top ( & base -> timeheap ) ) ) {\n if ( evutil_timercmp ( & ev -> ev_timeout , & now , > ) ) break ;\n event_del ( ev ) ;\n event_debug ( ( \"timeout_process: call %p\" , ev -> ev_callback ) ) ;\n event_active ( ev , EV_TIMEOUT , 1 ) ;\n }\n }"}
{"idx": 3049, "target": 0, "func": "static void fill_mode_info_sb ( VP9_COMMON * cm , MACROBLOCK * x , int mi_row , int mi_col , BLOCK_SIZE bsize , BLOCK_SIZE subsize , PC_TREE * pc_tree ) {\n MACROBLOCKD * xd = & x -> e_mbd ;\n int bsl = b_width_log2 ( bsize ) , hbs = ( 1 << bsl ) / 4 ;\n PARTITION_TYPE partition = pc_tree -> partitioning ;\n assert ( bsize >= BLOCK_8X8 ) ;\n if ( mi_row >= cm -> mi_rows || mi_col >= cm -> mi_cols ) return ;\n switch ( partition ) {\n case PARTITION_NONE : set_modeinfo_offsets ( cm , xd , mi_row , mi_col ) ;\n * ( xd -> mi [ 0 ] . src_mi ) = pc_tree -> none . mic ;\n duplicate_mode_info_in_sb ( cm , xd , mi_row , mi_col , bsize ) ;\n break ;\n case PARTITION_VERT : set_modeinfo_offsets ( cm , xd , mi_row , mi_col ) ;\n * ( xd -> mi [ 0 ] . src_mi ) = pc_tree -> vertical [ 0 ] . mic ;\n duplicate_mode_info_in_sb ( cm , xd , mi_row , mi_col , bsize ) ;\n if ( mi_col + hbs < cm -> mi_cols ) {\n set_modeinfo_offsets ( cm , xd , mi_row , mi_col + hbs ) ;\n * ( xd -> mi [ 0 ] . src_mi ) = pc_tree -> vertical [ 1 ] . mic ;\n duplicate_mode_info_in_sb ( cm , xd , mi_row , mi_col + hbs , bsize ) ;\n }\n break ;\n case PARTITION_HORZ : set_modeinfo_offsets ( cm , xd , mi_row , mi_col ) ;\n * ( xd -> mi [ 0 ] . src_mi ) = pc_tree -> horizontal [ 0 ] . mic ;\n duplicate_mode_info_in_sb ( cm , xd , mi_row , mi_col , bsize ) ;\n if ( mi_row + hbs < cm -> mi_rows ) {\n set_modeinfo_offsets ( cm , xd , mi_row + hbs , mi_col ) ;\n * ( xd -> mi [ 0 ] . src_mi ) = pc_tree -> horizontal [ 1 ] . mic ;\n duplicate_mode_info_in_sb ( cm , xd , mi_row + hbs , mi_col , bsize ) ;\n }\n break ;\n case PARTITION_SPLIT : {\n BLOCK_SIZE subsubsize = get_subsize ( subsize , PARTITION_SPLIT ) ;\n fill_mode_info_sb ( cm , x , mi_row , mi_col , subsize , subsubsize , pc_tree -> split [ 0 ] ) ;\n fill_mode_info_sb ( cm , x , mi_row , mi_col + hbs , subsize , subsubsize , pc_tree -> split [ 1 ] ) ;\n fill_mode_info_sb ( cm , x , mi_row + hbs , mi_col , subsize , subsubsize , pc_tree -> split [ 2 ] ) ;\n fill_mode_info_sb ( cm , x , mi_row + hbs , mi_col + hbs , subsize , subsubsize , pc_tree -> split [ 3 ] ) ;\n break ;\n }\n default : break ;\n }\n }"}
{"idx": 3050, "target": 0, "func": "static void fix_bitshift ( ShortenContext * s , int32_t * buffer ) {\n int i ;\n if ( s -> bitshift != 0 ) for ( i = 0 ;\n i < s -> blocksize ;\n i ++ ) buffer [ i ] <<= s -> bitshift ;\n }"}
{"idx": 3051, "target": 0, "func": "int buffer_write_bytes ( buffer_t buffer , const char * data , int size ) {\n if ( buffer_write ( buffer , data , size ) ) {\n PyErr_NoMemory ( ) ;\n return 0 ;\n }\n return 1 ;\n }"}
{"idx": 3052, "target": 1, "func": "static int cavs_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n AVSContext * h = avctx -> priv_data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n AVFrame * picture = data ;\n uint32_t stc = - 1 ;\n int input_size ;\n const uint8_t * buf_end ;\n const uint8_t * buf_ptr ;\n if ( buf_size == 0 ) {\n if ( ! h -> low_delay && h -> DPB [ 0 ] . f -> data [ 0 ] ) {\n * got_frame = 1 ;\n * picture = * h -> DPB [ 0 ] . f ;\n if ( h -> cur . f -> data [ 0 ] ) avctx -> release_buffer ( avctx , h -> cur . f ) ;\n FFSWAP ( AVSFrame , h -> cur , h -> DPB [ 0 ] ) ;\n }\n return 0 ;\n }\n buf_ptr = buf ;\n buf_end = buf + buf_size ;\n for ( ;\n ;\n ) {\n buf_ptr = avpriv_mpv_find_start_code ( buf_ptr , buf_end , & stc ) ;\n if ( ( stc & 0xFFFFFE00 ) || buf_ptr == buf_end ) return FFMAX ( 0 , buf_ptr - buf ) ;\n input_size = ( buf_end - buf_ptr ) * 8 ;\n switch ( stc ) {\n case CAVS_START_CODE : init_get_bits ( & h -> gb , buf_ptr , input_size ) ;\n decode_seq_header ( h ) ;\n break ;\n case PIC_I_START_CODE : if ( ! h -> got_keyframe ) {\n if ( h -> DPB [ 0 ] . f -> data [ 0 ] ) avctx -> release_buffer ( avctx , h -> DPB [ 0 ] . f ) ;\n if ( h -> DPB [ 1 ] . f -> data [ 0 ] ) avctx -> release_buffer ( avctx , h -> DPB [ 1 ] . f ) ;\n h -> got_keyframe = 1 ;\n }\n case PIC_PB_START_CODE : * got_frame = 0 ;\n if ( ! h -> got_keyframe ) break ;\n init_get_bits ( & h -> gb , buf_ptr , input_size ) ;\n h -> stc = stc ;\n if ( decode_pic ( h ) ) break ;\n * got_frame = 1 ;\n if ( h -> cur . f -> pict_type != AV_PICTURE_TYPE_B ) {\n if ( h -> DPB [ 1 ] . f -> data [ 0 ] ) {\n * picture = * h -> DPB [ 1 ] . f ;\n }\n else {\n * got_frame = 0 ;\n }\n }\n else * picture = * h -> cur . f ;\n break ;\n case EXT_START_CODE : break ;\n case USER_START_CODE : break ;\n default : if ( stc <= SLICE_MAX_START_CODE ) {\n init_get_bits ( & h -> gb , buf_ptr , input_size ) ;\n decode_slice_header ( h , & h -> gb ) ;\n }\n break ;\n }\n }\n }"}
{"idx": 3053, "target": 0, "func": "static void register_rsvp_prefs ( void ) {\n module_t * rsvp_module ;\n rsvp_module = prefs_register_protocol ( proto_rsvp , NULL ) ;\n prefs_register_bool_preference ( rsvp_module , \"process_bundle\" , \"Dissect sub-messages in BUNDLE message\" , \"Specifies whether Wireshark should decode and display sub-messages within BUNDLE messages\" , & rsvp_bundle_dissect ) ;\n prefs_register_enum_preference ( rsvp_module , \"generalized_label_options\" , \"Dissect generalized labels as\" , \"Specifies how Wireshark should dissect generalized labels\" , ( gint * ) & rsvp_generalized_label_option , rsvp_generalized_label_options , FALSE ) ;\n }"}
{"idx": 3054, "target": 0, "func": "static gint dissect_usb_audio_descriptor ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n gint offset = 0 ;\n usb_conv_info_t * usb_conv_info ;\n proto_tree * desc_tree = NULL ;\n proto_item * desc_tree_item ;\n guint8 desc_len ;\n guint8 desc_type ;\n guint8 desc_subtype ;\n const gchar * subtype_str ;\n usb_conv_info = ( usb_conv_info_t * ) data ;\n if ( ! usb_conv_info || usb_conv_info -> interfaceClass != IF_CLASS_AUDIO ) return 0 ;\n desc_len = tvb_get_guint8 ( tvb , offset ) ;\n desc_type = tvb_get_guint8 ( tvb , offset + 1 ) ;\n if ( desc_type == CS_INTERFACE && usb_conv_info -> interfaceSubclass == AUDIO_IF_SUBCLASS_AUDIOCONTROL ) {\n desc_tree = proto_tree_add_subtree ( tree , tvb , offset , desc_len , ett_usb_audio_desc , & desc_tree_item , \"Class-specific Audio Control Interface Descriptor\" ) ;\n dissect_usb_descriptor_header ( desc_tree , tvb , offset , & aud_descriptor_type_vals_ext ) ;\n offset += 2 ;\n desc_subtype = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( desc_tree , hf_ac_if_desc_subtype , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n subtype_str = try_val_to_str_ext ( desc_subtype , & ac_subtype_vals_ext ) ;\n if ( subtype_str ) proto_item_append_text ( desc_tree_item , \": %s\" , subtype_str ) ;\n offset ++ ;\n switch ( desc_subtype ) {\n case AC_SUBTYPE_HEADER : dissect_ac_if_hdr_body ( tvb , offset , pinfo , desc_tree , usb_conv_info ) ;\n break ;\n case AC_SUBTYPE_INPUT_TERMINAL : dissect_ac_if_input_terminal ( tvb , offset , pinfo , desc_tree , usb_conv_info ) ;\n break ;\n case AC_SUBTYPE_OUTPUT_TERMINAL : dissect_ac_if_output_terminal ( tvb , offset , pinfo , desc_tree , usb_conv_info ) ;\n break ;\n case AC_SUBTYPE_FEATURE_UNIT : dissect_ac_if_feature_unit ( tvb , offset , pinfo , desc_tree , usb_conv_info ) ;\n break ;\n default : proto_tree_add_expert ( desc_tree , pinfo , & ei_usb_audio_undecoded , tvb , offset - 3 , desc_len ) ;\n break ;\n }\n }\n else if ( desc_type == CS_INTERFACE && usb_conv_info -> interfaceSubclass == AUDIO_IF_SUBCLASS_AUDIOSTREAMING ) {\n desc_tree = proto_tree_add_subtree ( tree , tvb , offset , desc_len , ett_usb_audio_desc , & desc_tree_item , \"Class-specific Audio Streaming Interface Descriptor\" ) ;\n dissect_usb_descriptor_header ( desc_tree , tvb , offset , & aud_descriptor_type_vals_ext ) ;\n offset += 2 ;\n desc_subtype = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( desc_tree , hf_as_if_desc_subtype , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n subtype_str = try_val_to_str_ext ( desc_subtype , & as_subtype_vals_ext ) ;\n if ( subtype_str ) proto_item_append_text ( desc_tree_item , \": %s\" , subtype_str ) ;\n offset ++ ;\n switch ( desc_subtype ) {\n case AS_SUBTYPE_GENERAL : dissect_as_if_general_body ( tvb , offset , pinfo , desc_tree , usb_conv_info ) ;\n break ;\n case AS_SUBTYPE_FORMAT_TYPE : dissect_as_if_format_type_body ( tvb , offset , pinfo , desc_tree , usb_conv_info ) ;\n break ;\n default : proto_tree_add_expert ( desc_tree , pinfo , & ei_usb_audio_undecoded , tvb , offset - 3 , desc_len ) ;\n break ;\n }\n }\n else if ( desc_type == CS_ENDPOINT && usb_conv_info -> interfaceSubclass == AUDIO_IF_SUBCLASS_AUDIOSTREAMING ) {\n desc_tree = proto_tree_add_subtree ( tree , tvb , offset , desc_len , ett_usb_audio_desc , & desc_tree_item , \"Class-specific Audio Streaming Endpoint Descriptor\" ) ;\n dissect_usb_descriptor_header ( desc_tree , tvb , offset , & aud_descriptor_type_vals_ext ) ;\n offset += 2 ;\n proto_tree_add_item ( desc_tree , hf_as_ep_desc_subtype , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n }\n else return 0 ;\n return desc_len ;\n }"}
{"idx": 3055, "target": 0, "func": "static void truespeech_read_frame ( TSContext * dec , const uint8_t * input ) {\n GetBitContext gb ;\n dec -> dsp . bswap_buf ( ( uint32_t * ) dec -> buffer , ( const uint32_t * ) input , 8 ) ;\n init_get_bits ( & gb , dec -> buffer , 32 * 8 ) ;\n dec -> vector [ 7 ] = ts_codebook [ 7 ] [ get_bits ( & gb , 3 ) ] ;\n dec -> vector [ 6 ] = ts_codebook [ 6 ] [ get_bits ( & gb , 3 ) ] ;\n dec -> vector [ 5 ] = ts_codebook [ 5 ] [ get_bits ( & gb , 3 ) ] ;\n dec -> vector [ 4 ] = ts_codebook [ 4 ] [ get_bits ( & gb , 4 ) ] ;\n dec -> vector [ 3 ] = ts_codebook [ 3 ] [ get_bits ( & gb , 4 ) ] ;\n dec -> vector [ 2 ] = ts_codebook [ 2 ] [ get_bits ( & gb , 4 ) ] ;\n dec -> vector [ 1 ] = ts_codebook [ 1 ] [ get_bits ( & gb , 5 ) ] ;\n dec -> vector [ 0 ] = ts_codebook [ 0 ] [ get_bits ( & gb , 5 ) ] ;\n dec -> flag = get_bits1 ( & gb ) ;\n dec -> offset1 [ 0 ] = get_bits ( & gb , 4 ) << 4 ;\n dec -> offset2 [ 3 ] = get_bits ( & gb , 7 ) ;\n dec -> offset2 [ 2 ] = get_bits ( & gb , 7 ) ;\n dec -> offset2 [ 1 ] = get_bits ( & gb , 7 ) ;\n dec -> offset2 [ 0 ] = get_bits ( & gb , 7 ) ;\n dec -> offset1 [ 1 ] = get_bits ( & gb , 4 ) ;\n dec -> pulseval [ 1 ] = get_bits ( & gb , 14 ) ;\n dec -> pulseval [ 0 ] = get_bits ( & gb , 14 ) ;\n dec -> offset1 [ 1 ] |= get_bits ( & gb , 4 ) << 4 ;\n dec -> pulseval [ 3 ] = get_bits ( & gb , 14 ) ;\n dec -> pulseval [ 2 ] = get_bits ( & gb , 14 ) ;\n dec -> offset1 [ 0 ] |= get_bits1 ( & gb ) ;\n dec -> pulsepos [ 0 ] = get_bits_long ( & gb , 27 ) ;\n dec -> pulseoff [ 0 ] = get_bits ( & gb , 4 ) ;\n dec -> offset1 [ 0 ] |= get_bits1 ( & gb ) << 1 ;\n dec -> pulsepos [ 1 ] = get_bits_long ( & gb , 27 ) ;\n dec -> pulseoff [ 1 ] = get_bits ( & gb , 4 ) ;\n dec -> offset1 [ 0 ] |= get_bits1 ( & gb ) << 2 ;\n dec -> pulsepos [ 2 ] = get_bits_long ( & gb , 27 ) ;\n dec -> pulseoff [ 2 ] = get_bits ( & gb , 4 ) ;\n dec -> offset1 [ 0 ] |= get_bits1 ( & gb ) << 3 ;\n dec -> pulsepos [ 3 ] = get_bits_long ( & gb , 27 ) ;\n dec -> pulseoff [ 3 ] = get_bits ( & gb , 4 ) ;\n }"}
{"idx": 3056, "target": 1, "func": "TEST_F ( ScoredHistoryMatchTest , Inlining ) {\n base : : Time now = base : : Time : : NowFromSystemTime ( ) ;\n RowWordStarts word_starts ;\n WordStarts one_word_no_offset ( 1 , 0u ) ;\n VisitInfoVector visits ;\n {\n history : : URLRow row ( MakeURLRow ( \"http://www.google.com\" , \"abcdef\" , 3 , 30 , 1 ) ) ;\n PopulateWordStarts ( row , & word_starts ) ;\n ScoredHistoryMatch scored_a ( row , visits , std : : string ( ) , ASCIIToUTF16 ( \"g\" ) , Make1Term ( \"g\" ) , one_word_no_offset , word_starts , false , nullptr , now ) ;\n EXPECT_FALSE ( scored_a . match_in_scheme ) ;\n ScoredHistoryMatch scored_b ( row , visits , std : : string ( ) , ASCIIToUTF16 ( \"w\" ) , Make1Term ( \"w\" ) , one_word_no_offset , word_starts , false , nullptr , now ) ;\n EXPECT_FALSE ( scored_b . match_in_scheme ) ;\n ScoredHistoryMatch scored_c ( row , visits , std : : string ( ) , ASCIIToUTF16 ( \"h\" ) , Make1Term ( \"h\" ) , one_word_no_offset , word_starts , false , nullptr , now ) ;\n EXPECT_TRUE ( scored_c . match_in_scheme ) ;\n ScoredHistoryMatch scored_d ( row , visits , std : : string ( ) , ASCIIToUTF16 ( \"o\" ) , Make1Term ( \"o\" ) , one_word_no_offset , word_starts , false , nullptr , now ) ;\n EXPECT_FALSE ( scored_d . match_in_scheme ) ;\n }\n {\n history : : URLRow row ( MakeURLRow ( \"http://teams.foo.com\" , \"abcdef\" , 3 , 30 , 1 ) ) ;\n PopulateWordStarts ( row , & word_starts ) ;\n ScoredHistoryMatch scored_a ( row , visits , std : : string ( ) , ASCIIToUTF16 ( \"t\" ) , Make1Term ( \"t\" ) , one_word_no_offset , word_starts , false , nullptr , now ) ;\n EXPECT_FALSE ( scored_a . match_in_scheme ) ;\n ScoredHistoryMatch scored_b ( row , visits , std : : string ( ) , ASCIIToUTF16 ( \"f\" ) , Make1Term ( \"f\" ) , one_word_no_offset , word_starts , false , nullptr , now ) ;\n EXPECT_FALSE ( scored_b . match_in_scheme ) ;\n ScoredHistoryMatch scored_c ( row , visits , std : : string ( ) , ASCIIToUTF16 ( \"o\" ) , Make1Term ( \"o\" ) , one_word_no_offset , word_starts , false , nullptr , now ) ;\n EXPECT_FALSE ( scored_c . match_in_scheme ) ;\n }\n {\n history : : URLRow row ( MakeURLRow ( \"https://www.testing.com\" , \"abcdef\" , 3 , 30 , 1 ) ) ;\n PopulateWordStarts ( row , & word_starts ) ;\n ScoredHistoryMatch scored_a ( row , visits , std : : string ( ) , ASCIIToUTF16 ( \"t\" ) , Make1Term ( \"t\" ) , one_word_no_offset , word_starts , false , nullptr , now ) ;\n EXPECT_FALSE ( scored_a . match_in_scheme ) ;\n ScoredHistoryMatch scored_b ( row , visits , std : : string ( ) , ASCIIToUTF16 ( \"h\" ) , Make1Term ( \"h\" ) , one_word_no_offset , word_starts , false , nullptr , now ) ;\n EXPECT_TRUE ( scored_b . match_in_scheme ) ;\n ScoredHistoryMatch scored_c ( row , visits , std : : string ( ) , ASCIIToUTF16 ( \"w\" ) , Make1Term ( \"w\" ) , one_word_no_offset , word_starts , false , nullptr , now ) ;\n EXPECT_FALSE ( scored_c . match_in_scheme ) ;\n }\n {\n history : : URLRow row ( MakeURLRow ( \"http://www.xn--1lq90ic7f1rc.cn/xnblah\" , \"abcd\" , 3 , 30 , 1 ) ) ;\n PopulateWordStarts ( row , & word_starts ) ;\n ScoredHistoryMatch scored_a ( row , visits , \"zh-CN\" , ASCIIToUTF16 ( \"x\" ) , Make1Term ( \"x\" ) , one_word_no_offset , word_starts , false , nullptr , now ) ;\n EXPECT_FALSE ( scored_a . match_in_scheme ) ;\n ScoredHistoryMatch scored_b ( row , visits , \"zh-CN\" , ASCIIToUTF16 ( \"xn\" ) , Make1Term ( \"xn\" ) , one_word_no_offset , word_starts , false , nullptr , now ) ;\n EXPECT_FALSE ( scored_b . match_in_scheme ) ;\n ScoredHistoryMatch scored_c ( row , visits , \"zh-CN\" , ASCIIToUTF16 ( \"w\" ) , Make1Term ( \"w\" ) , one_word_no_offset , word_starts , false , nullptr , now ) ;\n EXPECT_FALSE ( scored_c . match_in_scheme ) ;\n }\n }"}
{"idx": 3057, "target": 1, "func": "static inline void vc1_pred_b_mv_intfi ( VC1Context * v , int n , int * dmv_x , int * dmv_y , int mv1 , int * pred_flag ) {\n int dir = ( v -> bmvtype == BMV_TYPE_BACKWARD ) ? 1 : 0 ;\n MpegEncContext * s = & v -> s ;\n int mb_pos = s -> mb_x + s -> mb_y * s -> mb_stride ;\n if ( v -> bmvtype == BMV_TYPE_DIRECT ) {\n int total_opp , k , f ;\n if ( s -> next_picture . f . mb_type [ mb_pos + v -> mb_off ] != MB_TYPE_INTRA ) {\n s -> mv [ 0 ] [ 0 ] [ 0 ] = scale_mv ( s -> next_picture . f . motion_val [ 1 ] [ s -> block_index [ 0 ] + v -> blocks_off ] [ 0 ] , v -> bfraction , 0 , s -> quarter_sample ) ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = scale_mv ( s -> next_picture . f . motion_val [ 1 ] [ s -> block_index [ 0 ] + v -> blocks_off ] [ 1 ] , v -> bfraction , 0 , s -> quarter_sample ) ;\n s -> mv [ 1 ] [ 0 ] [ 0 ] = scale_mv ( s -> next_picture . f . motion_val [ 1 ] [ s -> block_index [ 0 ] + v -> blocks_off ] [ 0 ] , v -> bfraction , 1 , s -> quarter_sample ) ;\n s -> mv [ 1 ] [ 0 ] [ 1 ] = scale_mv ( s -> next_picture . f . motion_val [ 1 ] [ s -> block_index [ 0 ] + v -> blocks_off ] [ 1 ] , v -> bfraction , 1 , s -> quarter_sample ) ;\n total_opp = v -> mv_f_next [ 0 ] [ s -> block_index [ 0 ] + v -> blocks_off ] + v -> mv_f_next [ 0 ] [ s -> block_index [ 1 ] + v -> blocks_off ] + v -> mv_f_next [ 0 ] [ s -> block_index [ 2 ] + v -> blocks_off ] + v -> mv_f_next [ 0 ] [ s -> block_index [ 3 ] + v -> blocks_off ] ;\n f = ( total_opp > 2 ) ? 1 : 0 ;\n }\n else {\n s -> mv [ 0 ] [ 0 ] [ 0 ] = s -> mv [ 0 ] [ 0 ] [ 1 ] = 0 ;\n s -> mv [ 1 ] [ 0 ] [ 0 ] = s -> mv [ 1 ] [ 0 ] [ 1 ] = 0 ;\n f = 0 ;\n }\n v -> ref_field_type [ 0 ] = v -> ref_field_type [ 1 ] = v -> cur_field_type ^ f ;\n for ( k = 0 ;\n k < 4 ;\n k ++ ) {\n s -> current_picture . f . motion_val [ 0 ] [ s -> block_index [ k ] + v -> blocks_off ] [ 0 ] = s -> mv [ 0 ] [ 0 ] [ 0 ] ;\n s -> current_picture . f . motion_val [ 0 ] [ s -> block_index [ k ] + v -> blocks_off ] [ 1 ] = s -> mv [ 0 ] [ 0 ] [ 1 ] ;\n s -> current_picture . f . motion_val [ 1 ] [ s -> block_index [ k ] + v -> blocks_off ] [ 0 ] = s -> mv [ 1 ] [ 0 ] [ 0 ] ;\n s -> current_picture . f . motion_val [ 1 ] [ s -> block_index [ k ] + v -> blocks_off ] [ 1 ] = s -> mv [ 1 ] [ 0 ] [ 1 ] ;\n v -> mv_f [ 0 ] [ s -> block_index [ k ] + v -> blocks_off ] = f ;\n v -> mv_f [ 1 ] [ s -> block_index [ k ] + v -> blocks_off ] = f ;\n }\n return ;\n }\n if ( v -> bmvtype == BMV_TYPE_INTERPOLATED ) {\n vc1_pred_mv ( v , 0 , dmv_x [ 0 ] , dmv_y [ 0 ] , 1 , v -> range_x , v -> range_y , v -> mb_type [ 0 ] , pred_flag [ 0 ] , 0 ) ;\n vc1_pred_mv ( v , 0 , dmv_x [ 1 ] , dmv_y [ 1 ] , 1 , v -> range_x , v -> range_y , v -> mb_type [ 0 ] , pred_flag [ 1 ] , 1 ) ;\n return ;\n }\n if ( dir ) {\n vc1_pred_mv ( v , n , dmv_x [ 1 ] , dmv_y [ 1 ] , mv1 , v -> range_x , v -> range_y , v -> mb_type [ 0 ] , pred_flag [ 1 ] , 1 ) ;\n if ( n == 3 || mv1 ) {\n vc1_pred_mv ( v , 0 , dmv_x [ 0 ] , dmv_y [ 0 ] , 1 , v -> range_x , v -> range_y , v -> mb_type [ 0 ] , 0 , 0 ) ;\n }\n }\n else {\n vc1_pred_mv ( v , n , dmv_x [ 0 ] , dmv_y [ 0 ] , mv1 , v -> range_x , v -> range_y , v -> mb_type [ 0 ] , pred_flag [ 0 ] , 0 ) ;\n if ( n == 3 || mv1 ) {\n vc1_pred_mv ( v , 0 , dmv_x [ 1 ] , dmv_y [ 1 ] , 1 , v -> range_x , v -> range_y , v -> mb_type [ 0 ] , 0 , 1 ) ;\n }\n }\n }"}
{"idx": 3058, "target": 0, "func": "static bool checkprotoprefix ( struct Curl_easy * data , struct connectdata * conn , const char * s ) {\n # ifndef CURL_DISABLE_RTSP if ( conn -> handler -> protocol & CURLPROTO_RTSP ) return checkrtspprefix ( data , s ) ;\n # else ( void ) conn ;\n # endif return checkhttpprefix ( data , s ) ;\n }"}
{"idx": 3059, "target": 0, "func": "static inline void SetPixelb ( const Image * restrict image , const Quantum b , Quantum * restrict pixel ) {\n if ( image -> channel_map [ bPixelChannel ] . traits != UndefinedPixelTrait ) pixel [ image -> channel_map [ bPixelChannel ] . offset ] = b ;\n }"}
{"idx": 3060, "target": 0, "func": "void ff_vdpau_vc1_decode_picture ( MpegEncContext * s , const uint8_t * buf , int buf_size ) {\n VC1Context * v = s -> avctx -> priv_data ;\n struct vdpau_render_state * render , * last , * next ;\n render = ( struct vdpau_render_state * ) s -> current_picture . f . data [ 0 ] ;\n assert ( render ) ;\n render -> info . vc1 . frame_coding_mode = v -> fcm ;\n render -> info . vc1 . postprocflag = v -> postprocflag ;\n render -> info . vc1 . pulldown = v -> broadcast ;\n render -> info . vc1 . interlace = v -> interlace ;\n render -> info . vc1 . tfcntrflag = v -> tfcntrflag ;\n render -> info . vc1 . finterpflag = v -> finterpflag ;\n render -> info . vc1 . psf = v -> psf ;\n render -> info . vc1 . dquant = v -> dquant ;\n render -> info . vc1 . panscan_flag = v -> panscanflag ;\n render -> info . vc1 . refdist_flag = v -> refdist_flag ;\n render -> info . vc1 . quantizer = v -> quantizer_mode ;\n render -> info . vc1 . extended_mv = v -> extended_mv ;\n render -> info . vc1 . extended_dmv = v -> extended_dmv ;\n render -> info . vc1 . overlap = v -> overlap ;\n render -> info . vc1 . vstransform = v -> vstransform ;\n render -> info . vc1 . loopfilter = v -> s . loop_filter ;\n render -> info . vc1 . fastuvmc = v -> fastuvmc ;\n render -> info . vc1 . range_mapy_flag = v -> range_mapy_flag ;\n render -> info . vc1 . range_mapy = v -> range_mapy ;\n render -> info . vc1 . range_mapuv_flag = v -> range_mapuv_flag ;\n render -> info . vc1 . range_mapuv = v -> range_mapuv ;\n render -> info . vc1 . multires = v -> multires ;\n render -> info . vc1 . syncmarker = v -> s . resync_marker ;\n render -> info . vc1 . rangered = v -> rangered | ( v -> rangeredfrm << 1 ) ;\n render -> info . vc1 . maxbframes = v -> s . max_b_frames ;\n render -> info . vc1 . deblockEnable = v -> postprocflag & 1 ;\n render -> info . vc1 . pquant = v -> pq ;\n render -> info . vc1 . forward_reference = VDP_INVALID_HANDLE ;\n render -> info . vc1 . backward_reference = VDP_INVALID_HANDLE ;\n if ( v -> bi_type ) render -> info . vc1 . picture_type = 4 ;\n else render -> info . vc1 . picture_type = s -> pict_type - 1 + s -> pict_type / 3 ;\n switch ( s -> pict_type ) {\n case AV_PICTURE_TYPE_B : next = ( struct vdpau_render_state * ) s -> next_picture . f . data [ 0 ] ;\n assert ( next ) ;\n render -> info . vc1 . backward_reference = next -> surface ;\n case AV_PICTURE_TYPE_P : last = ( struct vdpau_render_state * ) s -> last_picture . f . data [ 0 ] ;\n if ( ! last ) last = render ;\n render -> info . vc1 . forward_reference = last -> surface ;\n }\n ff_vdpau_add_data_chunk ( s -> current_picture_ptr -> f . data [ 0 ] , buf , buf_size ) ;\n render -> info . vc1 . slice_count = 1 ;\n ff_mpeg_draw_horiz_band ( s , 0 , s -> avctx -> height ) ;\n render -> bitstream_buffers_used = 0 ;\n }"}
{"idx": 3061, "target": 0, "func": "REGRESSION_TEST ( SDK_API_TSIOBufferCopy ) ( RegressionTest * test , int , int * pstatus ) {\n bool test_passed = false ;\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n char input_buf [ ] = \"This is the test for TSIOBufferCopy, TSIOBufferWrite, TSIOBufferReaderCopy\" ;\n char output_buf [ 1024 ] ;\n TSIOBuffer bufp = TSIOBufferSizedCreate ( TS_IOBUFFER_SIZE_INDEX_4K ) ;\n TSIOBuffer bufp2 = TSIOBufferSizedCreate ( TS_IOBUFFER_SIZE_INDEX_4K ) ;\n TSIOBufferReader readerp = TSIOBufferReaderAlloc ( bufp ) ;\n TSIOBufferWrite ( bufp , input_buf , ( strlen ( input_buf ) + 1 ) ) ;\n TSIOBufferCopy ( bufp2 , readerp , ( strlen ( input_buf ) + 1 ) , 0 ) ;\n TSIOBufferReaderCopy ( readerp , output_buf , ( strlen ( input_buf ) + 1 ) ) ;\n if ( strcmp ( input_buf , output_buf ) == 0 ) {\n SDK_RPRINT ( test , \"TSIOBufferWrite\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( test , \"TSIOBufferCopy\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( test , \"TSIOBufferReaderCopy\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSIOBufferWrite\" , \"TestCase1\" , TC_FAIL , \"failed\" ) ;\n SDK_RPRINT ( test , \"TSIOBufferCopy\" , \"TestCase1\" , TC_FAIL , \"failed\" ) ;\n SDK_RPRINT ( test , \"TSIOBufferReaderCopy\" , \"TestCase1\" , TC_FAIL , \"failed\" ) ;\n }\n * pstatus = ( ( test_passed == true ) ? REGRESSION_TEST_PASSED : REGRESSION_TEST_FAILED ) ;\n return ;\n }"}
{"idx": 3062, "target": 0, "func": "static void destroy_setvar_fifo ( setvar_fifo * fifo ) {\n setvar_node * sv ;\n if ( fifo != NULL ) {\n do {\n UNLINK_FIFO ( sv , * fifo , link ) ;\n if ( sv != NULL ) {\n free ( sv -> var ) ;\n free ( sv -> val ) ;\n free ( sv ) ;\n }\n }\n while ( sv != NULL ) ;\n free ( fifo ) ;\n }\n }"}
{"idx": 3063, "target": 0, "func": "static size_t unicode_to_utf8 ( char * p , size_t remaining , uint32_t uc ) {\n char * _p = p ;\n if ( uc > UNICODE_MAX ) uc = UNICODE_R_CHAR ;\n if ( uc <= 0x7f ) {\n if ( remaining == 0 ) return ( 0 ) ;\n * p ++ = ( char ) uc ;\n }\n else if ( uc <= 0x7ff ) {\n if ( remaining < 2 ) return ( 0 ) ;\n * p ++ = 0xc0 | ( ( uc >> 6 ) & 0x1f ) ;\n * p ++ = 0x80 | ( uc & 0x3f ) ;\n }\n else if ( uc <= 0xffff ) {\n if ( remaining < 3 ) return ( 0 ) ;\n * p ++ = 0xe0 | ( ( uc >> 12 ) & 0x0f ) ;\n * p ++ = 0x80 | ( ( uc >> 6 ) & 0x3f ) ;\n * p ++ = 0x80 | ( uc & 0x3f ) ;\n }\n else {\n if ( remaining < 4 ) return ( 0 ) ;\n * p ++ = 0xf0 | ( ( uc >> 18 ) & 0x07 ) ;\n * p ++ = 0x80 | ( ( uc >> 12 ) & 0x3f ) ;\n * p ++ = 0x80 | ( ( uc >> 6 ) & 0x3f ) ;\n * p ++ = 0x80 | ( uc & 0x3f ) ;\n }\n return ( p - _p ) ;\n }"}
{"idx": 3064, "target": 0, "func": "int ossl_statem_server_read_transition ( SSL * s , int mt ) {\n OSSL_STATEM * st = & s -> statem ;\n switch ( st -> hand_state ) {\n case TLS_ST_BEFORE : case DTLS_ST_SW_HELLO_VERIFY_REQUEST : if ( mt == SSL3_MT_CLIENT_HELLO ) {\n st -> hand_state = TLS_ST_SR_CLNT_HELLO ;\n return 1 ;\n }\n break ;\n case TLS_ST_SW_SRVR_DONE : if ( mt == SSL3_MT_CLIENT_KEY_EXCHANGE ) {\n if ( s -> s3 -> tmp . cert_request ) {\n if ( s -> version == SSL3_VERSION ) {\n if ( ( s -> verify_mode & SSL_VERIFY_PEER ) && ( s -> verify_mode & SSL_VERIFY_FAIL_IF_NO_PEER_CERT ) ) {\n ssl3_send_alert ( s , SSL3_AL_FATAL , SSL3_AD_HANDSHAKE_FAILURE ) ;\n SSLerr ( SSL_F_OSSL_STATEM_SERVER_READ_TRANSITION , SSL_R_PEER_DID_NOT_RETURN_A_CERTIFICATE ) ;\n return 0 ;\n }\n st -> hand_state = TLS_ST_SR_KEY_EXCH ;\n return 1 ;\n }\n }\n else {\n st -> hand_state = TLS_ST_SR_KEY_EXCH ;\n return 1 ;\n }\n }\n else if ( s -> s3 -> tmp . cert_request ) {\n if ( mt == SSL3_MT_CERTIFICATE ) {\n st -> hand_state = TLS_ST_SR_CERT ;\n return 1 ;\n }\n }\n break ;\n case TLS_ST_SR_CERT : if ( mt == SSL3_MT_CLIENT_KEY_EXCHANGE ) {\n st -> hand_state = TLS_ST_SR_KEY_EXCH ;\n return 1 ;\n }\n break ;\n case TLS_ST_SR_KEY_EXCH : if ( s -> session -> peer == NULL || st -> no_cert_verify ) {\n if ( mt == SSL3_MT_CHANGE_CIPHER_SPEC ) {\n st -> hand_state = TLS_ST_SR_CHANGE ;\n return 1 ;\n }\n }\n else {\n if ( mt == SSL3_MT_CERTIFICATE_VERIFY ) {\n st -> hand_state = TLS_ST_SR_CERT_VRFY ;\n return 1 ;\n }\n }\n break ;\n case TLS_ST_SR_CERT_VRFY : if ( mt == SSL3_MT_CHANGE_CIPHER_SPEC ) {\n st -> hand_state = TLS_ST_SR_CHANGE ;\n return 1 ;\n }\n break ;\n case TLS_ST_SR_CHANGE : # ifndef OPENSSL_NO_NEXTPROTONEG if ( s -> s3 -> next_proto_neg_seen ) {\n if ( mt == SSL3_MT_NEXT_PROTO ) {\n st -> hand_state = TLS_ST_SR_NEXT_PROTO ;\n return 1 ;\n }\n }\n else {\n # endif if ( mt == SSL3_MT_FINISHED ) {\n st -> hand_state = TLS_ST_SR_FINISHED ;\n return 1 ;\n }\n # ifndef OPENSSL_NO_NEXTPROTONEG }\n # endif break ;\n # ifndef OPENSSL_NO_NEXTPROTONEG case TLS_ST_SR_NEXT_PROTO : if ( mt == SSL3_MT_FINISHED ) {\n st -> hand_state = TLS_ST_SR_FINISHED ;\n return 1 ;\n }\n break ;\n # endif case TLS_ST_SW_FINISHED : if ( mt == SSL3_MT_CHANGE_CIPHER_SPEC ) {\n st -> hand_state = TLS_ST_SR_CHANGE ;\n return 1 ;\n }\n break ;\n default : break ;\n }\n ssl3_send_alert ( s , SSL3_AL_FATAL , SSL3_AD_UNEXPECTED_MESSAGE ) ;\n SSLerr ( SSL_F_OSSL_STATEM_SERVER_READ_TRANSITION , SSL_R_UNEXPECTED_MESSAGE ) ;\n return 0 ;\n }"}
{"idx": 3065, "target": 0, "func": "static void * Type_Text_Description_Dup ( struct _cms_typehandler_struct * self , const void * Ptr , cmsUInt32Number n ) {\n return ( void * ) cmsMLUdup ( ( cmsMLU * ) Ptr ) ;\n cmsUNUSED_PARAMETER ( n ) ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 3066, "target": 0, "func": "static const char * cmd_audit_log_dirmode ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n if ( dcfg == NULL ) return NULL ;\n if ( strcasecmp ( p1 , \"default\" ) == 0 ) {\n dcfg -> auditlog_dirperms = NOT_SET ;\n }\n else {\n long int mode = strtol ( p1 , NULL , 8 ) ;\n if ( ( mode == LONG_MAX ) || ( mode == LONG_MIN ) || ( mode <= 0 ) || ( mode > 07777 ) ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid value for SecAuditLogDirMode: %s\" , p1 ) ;\n }\n dcfg -> auditlog_dirperms = mode2fileperms ( mode ) ;\n }\n return NULL ;\n }"}
{"idx": 3067, "target": 0, "func": "static List * find_nonnullable_vars_walker ( Node * node , bool top_level ) {\n List * result = NIL ;\n ListCell * l ;\n if ( node == NULL ) return NIL ;\n if ( IsA ( node , Var ) ) {\n Var * var = ( Var * ) node ;\n if ( var -> varlevelsup == 0 ) result = list_make1 ( var ) ;\n }\n else if ( IsA ( node , List ) ) {\n foreach ( l , ( List * ) node ) {\n result = list_concat ( result , find_nonnullable_vars_walker ( lfirst ( l ) , top_level ) ) ;\n }\n }\n else if ( IsA ( node , FuncExpr ) ) {\n FuncExpr * expr = ( FuncExpr * ) node ;\n if ( func_strict ( expr -> funcid ) ) result = find_nonnullable_vars_walker ( ( Node * ) expr -> args , false ) ;\n }\n else if ( IsA ( node , OpExpr ) ) {\n OpExpr * expr = ( OpExpr * ) node ;\n set_opfuncid ( expr ) ;\n if ( func_strict ( expr -> opfuncid ) ) result = find_nonnullable_vars_walker ( ( Node * ) expr -> args , false ) ;\n }\n else if ( IsA ( node , ScalarArrayOpExpr ) ) {\n ScalarArrayOpExpr * expr = ( ScalarArrayOpExpr * ) node ;\n if ( is_strict_saop ( expr , true ) ) result = find_nonnullable_vars_walker ( ( Node * ) expr -> args , false ) ;\n }\n else if ( IsA ( node , BoolExpr ) ) {\n BoolExpr * expr = ( BoolExpr * ) node ;\n switch ( expr -> boolop ) {\n case AND_EXPR : if ( top_level ) {\n result = find_nonnullable_vars_walker ( ( Node * ) expr -> args , top_level ) ;\n break ;\n }\n case OR_EXPR : foreach ( l , expr -> args ) {\n List * subresult ;\n subresult = find_nonnullable_vars_walker ( lfirst ( l ) , top_level ) ;\n if ( result == NIL ) result = subresult ;\n else result = list_intersection ( result , subresult ) ;\n if ( result == NIL ) break ;\n }\n break ;\n case NOT_EXPR : result = find_nonnullable_vars_walker ( ( Node * ) expr -> args , false ) ;\n break ;\n default : elog ( ERROR , \"unrecognized boolop: %d\" , ( int ) expr -> boolop ) ;\n break ;\n }\n }\n else if ( IsA ( node , RelabelType ) ) {\n RelabelType * expr = ( RelabelType * ) node ;\n result = find_nonnullable_vars_walker ( ( Node * ) expr -> arg , top_level ) ;\n }\n else if ( IsA ( node , CoerceViaIO ) ) {\n CoerceViaIO * expr = ( CoerceViaIO * ) node ;\n result = find_nonnullable_vars_walker ( ( Node * ) expr -> arg , false ) ;\n }\n else if ( IsA ( node , ArrayCoerceExpr ) ) {\n ArrayCoerceExpr * expr = ( ArrayCoerceExpr * ) node ;\n result = find_nonnullable_vars_walker ( ( Node * ) expr -> arg , top_level ) ;\n }\n else if ( IsA ( node , ConvertRowtypeExpr ) ) {\n ConvertRowtypeExpr * expr = ( ConvertRowtypeExpr * ) node ;\n result = find_nonnullable_vars_walker ( ( Node * ) expr -> arg , top_level ) ;\n }\n else if ( IsA ( node , CollateExpr ) ) {\n CollateExpr * expr = ( CollateExpr * ) node ;\n result = find_nonnullable_vars_walker ( ( Node * ) expr -> arg , top_level ) ;\n }\n else if ( IsA ( node , NullTest ) ) {\n NullTest * expr = ( NullTest * ) node ;\n if ( top_level && expr -> nulltesttype == IS_NOT_NULL && ! expr -> argisrow ) result = find_nonnullable_vars_walker ( ( Node * ) expr -> arg , false ) ;\n }\n else if ( IsA ( node , BooleanTest ) ) {\n BooleanTest * expr = ( BooleanTest * ) node ;\n if ( top_level && ( expr -> booltesttype == IS_TRUE || expr -> booltesttype == IS_FALSE || expr -> booltesttype == IS_NOT_UNKNOWN ) ) result = find_nonnullable_vars_walker ( ( Node * ) expr -> arg , false ) ;\n }\n else if ( IsA ( node , PlaceHolderVar ) ) {\n PlaceHolderVar * phv = ( PlaceHolderVar * ) node ;\n result = find_nonnullable_vars_walker ( ( Node * ) phv -> phexpr , top_level ) ;\n }\n return result ;\n }"}
{"idx": 3068, "target": 0, "func": "void TSVConnInactivityTimeoutCancel ( TSVConn connp ) {\n sdk_assert ( sdk_sanity_check_iocore_structure ( connp ) == TS_SUCCESS ) ;\n NetVConnection * vc = ( NetVConnection * ) connp ;\n vc -> cancel_inactivity_timeout ( ) ;\n }"}
{"idx": 3069, "target": 0, "func": "Jbig2WordStream * jbig2_word_stream_buf_new ( Jbig2Ctx * ctx , const byte * data , size_t size ) {\n Jbig2WordStreamBuf * result = jbig2_new ( ctx , Jbig2WordStreamBuf , 1 ) ;\n if ( result == NULL ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , - 1 , \"failed to allocate Jbig2WordStreamBuf in jbig2_word_stream_buf_new\" ) ;\n return NULL ;\n }\n result -> super . get_next_word = jbig2_word_stream_buf_get_next_word ;\n result -> data = data ;\n result -> size = size ;\n return & result -> super ;\n }"}
{"idx": 3070, "target": 0, "func": "int jas_image_copycmpt ( jas_image_t * dstimage , int dstcmptno , jas_image_t * srcimage , int srccmptno ) {\n jas_image_cmpt_t * newcmpt ;\n if ( dstimage -> numcmpts_ >= dstimage -> maxcmpts_ ) {\n if ( jas_image_growcmpts ( dstimage , dstimage -> maxcmpts_ + 128 ) ) {\n return - 1 ;\n }\n }\n if ( ! ( newcmpt = jas_image_cmpt_copy ( srcimage -> cmpts_ [ srccmptno ] ) ) ) {\n return - 1 ;\n }\n if ( dstcmptno < dstimage -> numcmpts_ ) {\n memmove ( & dstimage -> cmpts_ [ dstcmptno + 1 ] , & dstimage -> cmpts_ [ dstcmptno ] , ( dstimage -> numcmpts_ - dstcmptno ) * sizeof ( jas_image_cmpt_t * ) ) ;\n }\n dstimage -> cmpts_ [ dstcmptno ] = newcmpt ;\n ++ dstimage -> numcmpts_ ;\n jas_image_setbbox ( dstimage ) ;\n return 0 ;\n }"}
{"idx": 3071, "target": 0, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE )"}
{"idx": 3072, "target": 0, "func": "static bool hyperv_crash_enable_needed ( void * opaque ) {\n X86CPU * cpu = opaque ;\n CPUX86State * env = & cpu -> env ;\n int i ;\n for ( i = 0 ;\n i < HV_CRASH_PARAMS ;\n i ++ ) {\n if ( env -> msr_hv_crash_params [ i ] ) {\n return true ;\n }\n }\n return false ;\n }"}
{"idx": 3073, "target": 0, "func": "static int checkHttpTxnParentProxy ( ContData * data , TSHttpTxn txnp ) {\n const char * hostname = \"txnpp.example.com\" ;\n int port = 10180 ;\n const char * hostnameget = nullptr ;\n int portget = 0 ;\n TSHttpTxnParentProxySet ( txnp , ( char * ) hostname , port ) ;\n if ( TSHttpTxnParentProxyGet ( txnp , & hostnameget , & portget ) != TS_SUCCESS ) {\n SDK_RPRINT ( data -> test , \"TSHttpTxnParentProxySet\" , \"TestCase1\" , TC_FAIL , \"TSHttpTxnParentProxyGet doesn't return TS_SUCCESS\" ) ;\n SDK_RPRINT ( data -> test , \"TSHttpTxnParentProxyGet\" , \"TestCase1\" , TC_FAIL , \"TSHttpTxnParentProxyGet doesn't return TS_SUCCESS\" ) ;\n return TS_EVENT_CONTINUE ;\n }\n if ( ( strcmp ( hostname , hostnameget ) == 0 ) && ( port == portget ) ) {\n SDK_RPRINT ( data -> test , \"TSHttpTxnParentProxySet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( data -> test , \"TSHttpTxnParentProxyGet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n data -> test_passed_Parent_Proxy = true ;\n }\n else {\n SDK_RPRINT ( data -> test , \"TSHttpTxnParentProxySet\" , \"TestCase1\" , TC_FAIL , \"Value's Mismatch\" ) ;\n SDK_RPRINT ( data -> test , \"TSHttpTxnParentProxyGet\" , \"TestCase1\" , TC_FAIL , \"Value's Mismatch\" ) ;\n }\n return TS_EVENT_CONTINUE ;\n }"}
{"idx": 3074, "target": 0, "func": "static inline int mpc8_dec_base ( GetBitContext * gb , int k , int n ) {\n int len = mpc8_cnk_len [ k - 1 ] [ n - 1 ] - 1 ;\n int code = len ? get_bits_long ( gb , len ) : 0 ;\n if ( code >= mpc8_cnk_lost [ k - 1 ] [ n - 1 ] ) code = ( ( code << 1 ) | get_bits1 ( gb ) ) - mpc8_cnk_lost [ k - 1 ] [ n - 1 ] ;\n return code ;\n }"}
{"idx": 3075, "target": 0, "func": "void Init_dlhandle ( ) {\n rb_cDLHandle = rb_define_class_under ( rb_mDL , \"Handle\" , rb_cObject ) ;\n rb_define_alloc_func ( rb_cDLHandle , rb_dlhandle_s_allocate ) ;\n rb_define_method ( rb_cDLHandle , \"initialize\" , rb_dlhandle_initialize , - 1 ) ;\n rb_define_method ( rb_cDLHandle , \"to_i\" , rb_dlhandle_to_i , 0 ) ;\n rb_define_method ( rb_cDLHandle , \"close\" , rb_dlhandle_close , 0 ) ;\n rb_define_method ( rb_cDLHandle , \"sym\" , rb_dlhandle_sym , 1 ) ;\n rb_define_method ( rb_cDLHandle , \"[]\" , rb_dlhandle_sym , 1 ) ;\n rb_define_method ( rb_cDLHandle , \"disable_close\" , rb_dlhandle_disable_close , 0 ) ;\n rb_define_method ( rb_cDLHandle , \"enable_close\" , rb_dlhandle_enable_close , 0 ) ;\n }"}
{"idx": 3076, "target": 0, "func": "const struct master_service_settings * master_service_settings_get ( struct master_service * service ATTR_UNUSED ) {\n return & set ;\n }"}
{"idx": 3077, "target": 0, "func": "int exsltMathXpathCtxtRegister ( xmlXPathContextPtr ctxt , const xmlChar * prefix ) {\n if ( ctxt && prefix && ! xmlXPathRegisterNs ( ctxt , prefix , ( const xmlChar * ) EXSLT_MATH_NAMESPACE ) && ! xmlXPathRegisterFuncNS ( ctxt , ( const xmlChar * ) \"min\" , ( const xmlChar * ) EXSLT_MATH_NAMESPACE , exsltMathMinFunction ) && ! xmlXPathRegisterFuncNS ( ctxt , ( const xmlChar * ) \"max\" , ( const xmlChar * ) EXSLT_MATH_NAMESPACE , exsltMathMaxFunction ) && ! xmlXPathRegisterFuncNS ( ctxt , ( const xmlChar * ) \"highest\" , ( const xmlChar * ) EXSLT_MATH_NAMESPACE , exsltMathHighestFunction ) && ! xmlXPathRegisterFuncNS ( ctxt , ( const xmlChar * ) \"lowest\" , ( const xmlChar * ) EXSLT_MATH_NAMESPACE , exsltMathLowestFunction ) # ifdef HAVE_STDLIB_H && ! xmlXPathRegisterFuncNS ( ctxt , ( const xmlChar * ) \"random\" , ( const xmlChar * ) EXSLT_MATH_NAMESPACE , exsltMathRandomFunction ) # endif # if HAVE_MATH_H && ! xmlXPathRegisterFuncNS ( ctxt , ( const xmlChar * ) \"abs\" , ( const xmlChar * ) EXSLT_MATH_NAMESPACE , exsltMathAbsFunction ) && ! xmlXPathRegisterFuncNS ( ctxt , ( const xmlChar * ) \"sqrt\" , ( const xmlChar * ) EXSLT_MATH_NAMESPACE , exsltMathSqrtFunction ) && ! xmlXPathRegisterFuncNS ( ctxt , ( const xmlChar * ) \"power\" , ( const xmlChar * ) EXSLT_MATH_NAMESPACE , exsltMathPowerFunction ) && ! xmlXPathRegisterFuncNS ( ctxt , ( const xmlChar * ) \"log\" , ( const xmlChar * ) EXSLT_MATH_NAMESPACE , exsltMathLogFunction ) && ! xmlXPathRegisterFuncNS ( ctxt , ( const xmlChar * ) \"sin\" , ( const xmlChar * ) EXSLT_MATH_NAMESPACE , exsltMathSinFunction ) && ! xmlXPathRegisterFuncNS ( ctxt , ( const xmlChar * ) \"cos\" , ( const xmlChar * ) EXSLT_MATH_NAMESPACE , exsltMathCosFunction ) && ! xmlXPathRegisterFuncNS ( ctxt , ( const xmlChar * ) \"tan\" , ( const xmlChar * ) EXSLT_MATH_NAMESPACE , exsltMathTanFunction ) && ! xmlXPathRegisterFuncNS ( ctxt , ( const xmlChar * ) \"asin\" , ( const xmlChar * ) EXSLT_MATH_NAMESPACE , exsltMathAsinFunction ) && ! xmlXPathRegisterFuncNS ( ctxt , ( const xmlChar * ) \"acos\" , ( const xmlChar * ) EXSLT_MATH_NAMESPACE , exsltMathAcosFunction ) && ! xmlXPathRegisterFuncNS ( ctxt , ( const xmlChar * ) \"atan\" , ( const xmlChar * ) EXSLT_MATH_NAMESPACE , exsltMathAtanFunction ) && ! xmlXPathRegisterFuncNS ( ctxt , ( const xmlChar * ) \"atan2\" , ( const xmlChar * ) EXSLT_MATH_NAMESPACE , exsltMathAtan2Function ) && ! xmlXPathRegisterFuncNS ( ctxt , ( const xmlChar * ) \"exp\" , ( const xmlChar * ) EXSLT_MATH_NAMESPACE , exsltMathExpFunction ) # endif && ! xmlXPathRegisterFuncNS ( ctxt , ( const xmlChar * ) \"constant\" , ( const xmlChar * ) EXSLT_MATH_NAMESPACE , exsltMathConstantFunction ) ) {\n return 0 ;\n }\n return - 1 ;\n }"}
{"idx": 3078, "target": 0, "func": "static struct qcms_modular_transform * qcms_modular_transform_create_lut ( struct lutType * lut ) {\n struct qcms_modular_transform * first_transform = NULL ;\n struct qcms_modular_transform * * next_transform = & first_transform ;\n struct qcms_modular_transform * transform = NULL ;\n size_t in_curve_len , clut_length , out_curve_len ;\n float * in_curves , * clut , * out_curves ;\n transform = qcms_modular_transform_alloc ( ) ;\n if ( ! transform ) goto fail ;\n append_transform ( transform , & next_transform ) ;\n transform -> matrix = build_lut_matrix ( lut ) ;\n if ( transform -> matrix . invalid ) goto fail ;\n transform -> transform_module_fn = qcms_transform_module_matrix ;\n transform = qcms_modular_transform_alloc ( ) ;\n if ( ! transform ) goto fail ;\n append_transform ( transform , & next_transform ) ;\n in_curve_len = sizeof ( float ) * lut -> num_input_table_entries * 3 ;\n in_curves = malloc ( in_curve_len ) ;\n if ( ! in_curves ) goto fail ;\n memcpy ( in_curves , lut -> input_table , in_curve_len ) ;\n transform -> input_clut_table_r = in_curves + lut -> num_input_table_entries * 0 ;\n transform -> input_clut_table_g = in_curves + lut -> num_input_table_entries * 1 ;\n transform -> input_clut_table_b = in_curves + lut -> num_input_table_entries * 2 ;\n transform -> input_clut_table_length = lut -> num_input_table_entries ;\n clut_length = sizeof ( float ) * pow ( lut -> num_clut_grid_points , 3 ) * 3 ;\n clut = malloc ( clut_length ) ;\n if ( ! clut ) goto fail ;\n memcpy ( clut , lut -> clut_table , clut_length ) ;\n transform -> r_clut = clut + 0 ;\n transform -> g_clut = clut + 1 ;\n transform -> b_clut = clut + 2 ;\n transform -> grid_size = lut -> num_clut_grid_points ;\n out_curve_len = sizeof ( float ) * lut -> num_output_table_entries * 3 ;\n out_curves = malloc ( out_curve_len ) ;\n if ( ! out_curves ) goto fail ;\n memcpy ( out_curves , lut -> output_table , out_curve_len ) ;\n transform -> output_clut_table_r = out_curves + lut -> num_output_table_entries * 0 ;\n transform -> output_clut_table_g = out_curves + lut -> num_output_table_entries * 1 ;\n transform -> output_clut_table_b = out_curves + lut -> num_output_table_entries * 2 ;\n transform -> output_clut_table_length = lut -> num_output_table_entries ;\n transform -> transform_module_fn = qcms_transform_module_clut ;\n return first_transform ;\n fail : qcms_modular_transform_release ( first_transform ) ;\n return NULL ;\n }"}
{"idx": 3079, "target": 0, "func": "static int lag_decode_line ( LagarithContext * l , lag_rac * rac , uint8_t * dst , int width , int stride , int esc_count ) {\n int i = 0 ;\n int ret = 0 ;\n if ( ! esc_count ) esc_count = - 1 ;\n handle_zeros : if ( l -> zeros_rem ) {\n int count = FFMIN ( l -> zeros_rem , width - i ) ;\n memset ( dst + i , 0 , count ) ;\n i += count ;\n l -> zeros_rem -= count ;\n }\n while ( i < width ) {\n dst [ i ] = lag_get_rac ( rac ) ;\n ret ++ ;\n if ( dst [ i ] ) l -> zeros = 0 ;\n else l -> zeros ++ ;\n i ++ ;\n if ( l -> zeros == esc_count ) {\n int index = lag_get_rac ( rac ) ;\n ret ++ ;\n l -> zeros = 0 ;\n l -> zeros_rem = lag_calc_zero_run ( index ) ;\n goto handle_zeros ;\n }\n }\n return ret ;\n }"}
{"idx": 3080, "target": 0, "func": "void kadmin_renameprinc ( int argc , char * argv [ ] ) {\n kadm5_ret_t retval ;\n krb5_principal oprinc = NULL , nprinc = NULL ;\n char * ocanon = NULL , * ncanon = NULL ;\n char reply [ 5 ] ;\n if ( ! ( argc == 3 || ( argc == 4 && ! strcmp ( \"-force\" , argv [ 1 ] ) ) ) ) {\n fprintf ( stderr , _ ( \"usage: rename_principal [-force] old_principal \" \"new_principal\\n\" ) ) ;\n return ;\n }\n retval = kadmin_parse_name ( argv [ argc - 2 ] , & oprinc ) ;\n if ( retval ) {\n com_err ( \"rename_principal\" , retval , _ ( \"while parsing old principal name\" ) ) ;\n goto cleanup ;\n }\n retval = kadmin_parse_name ( argv [ argc - 1 ] , & nprinc ) ;\n if ( retval ) {\n com_err ( \"rename_principal\" , retval , _ ( \"while parsing new principal name\" ) ) ;\n goto cleanup ;\n }\n retval = krb5_unparse_name ( context , oprinc , & ocanon ) ;\n if ( retval ) {\n com_err ( \"rename_principal\" , retval , _ ( \"while canonicalizing old principal\" ) ) ;\n goto cleanup ;\n }\n retval = krb5_unparse_name ( context , nprinc , & ncanon ) ;\n if ( retval ) {\n com_err ( \"rename_principal\" , retval , _ ( \"while canonicalizing new principal\" ) ) ;\n goto cleanup ;\n }\n if ( argc == 3 ) {\n printf ( _ ( \"Are you sure you want to rename the principal \\\"%s\\\" \" \"to \\\"%s\\\"? (yeso): \" ) , ocanon , ncanon ) ;\n fgets ( reply , sizeof ( reply ) , stdin ) ;\n if ( strcmp ( \"yes\\n\" , reply ) ) {\n fprintf ( stderr , _ ( \"Principal \\\"%s\\\" not renamed\\n\" ) , ocanon ) ;\n goto cleanup ;\n }\n }\n retval = kadm5_rename_principal ( handle , oprinc , nprinc ) ;\n if ( retval ) {\n com_err ( \"rename_principal\" , retval , _ ( \"while renaming principal \\\"%s\\\" to \\\"%s\\\"\" ) , ocanon , ncanon ) ;\n goto cleanup ;\n }\n printf ( _ ( \"Principal \\\"%s\\\" renamed to \\\"%s\\\".\\n\" ) , ocanon , ncanon ) ;\n printf ( _ ( \"Make sure that you have removed the old principal from all ACLs \" \"before reusing.\\n\" ) ) ;\n cleanup : krb5_free_principal ( context , nprinc ) ;\n krb5_free_principal ( context , oprinc ) ;\n free ( ncanon ) ;\n free ( ocanon ) ;\n }"}
{"idx": 3081, "target": 0, "func": "static void _cmd_window_show_opt ( const char * data , int right ) {\n MAIN_WINDOW_REC * parent ;\n WINDOW_REC * window ;\n if ( * data == '\\0' ) cmd_return_error ( CMDERR_NOT_ENOUGH_PARAMS ) ;\n if ( is_numeric ( data , '\\0' ) ) {\n window = window_find_refnum ( atoi ( data ) ) ;\n if ( window == NULL ) {\n printformat_window ( active_win , MSGLEVEL_CLIENTERROR , TXT_REFNUM_NOT_FOUND , data ) ;\n }\n }\n else {\n window = window_find_item ( active_win -> active_server , data ) ;\n }\n if ( window == NULL || is_window_visible ( window ) ) return ;\n if ( WINDOW_GUI ( window ) -> sticky ) {\n if ( ! settings_get_bool ( \"autounstick_windows\" ) ) {\n printformat_window ( active_win , MSGLEVEL_CLIENTERROR , TXT_CANT_SHOW_STICKY_WINDOWS ) ;\n return ;\n }\n }\n parent = mainwindow_create ( right ) ;\n if ( parent == NULL ) {\n printformat_window ( active_win , MSGLEVEL_CLIENTERROR , TXT_WINDOW_TOO_SMALL ) ;\n return ;\n }\n parent -> active = window ;\n gui_window_reparent ( window , parent ) ;\n if ( settings_get_bool ( \"autostick_split_windows\" ) ) gui_window_set_sticky ( window ) ;\n active_mainwin = NULL ;\n window_set_active ( window ) ;\n }"}
{"idx": 3082, "target": 0, "func": "static void mime_list_state_free ( MimeListState * state ) {\n if ( state -> enumerator ) {\n if ( ! g_file_enumerator_is_closed ( state -> enumerator ) ) {\n g_file_enumerator_close_async ( state -> enumerator , 0 , NULL , NULL , NULL ) ;\n }\n g_object_unref ( state -> enumerator ) ;\n }\n g_object_unref ( state -> cancellable ) ;\n istr_set_destroy ( state -> mime_list_hash ) ;\n nautilus_directory_unref ( state -> directory ) ;\n g_free ( state ) ;\n }"}
{"idx": 3083, "target": 0, "func": "static VALUE ossl_x509name_initialize ( int argc , VALUE * argv , VALUE self ) {\n X509_NAME * name ;\n VALUE arg , template ;\n GetX509Name ( self , name ) ;\n if ( rb_scan_args ( argc , argv , \"02\" , & arg , & template ) == 0 ) {\n return self ;\n }\n else {\n VALUE tmp = rb_check_array_type ( arg ) ;\n if ( ! NIL_P ( tmp ) ) {\n VALUE args ;\n if ( NIL_P ( template ) ) template = OBJECT_TYPE_TEMPLATE ;\n args = rb_ary_new3 ( 2 , self , template ) ;\n rb_block_call ( tmp , rb_intern ( \"each\" ) , 0 , 0 , ossl_x509name_init_i , args ) ;\n }\n else {\n const unsigned char * p ;\n VALUE str = ossl_to_der_if_possible ( arg ) ;\n X509_NAME * x ;\n StringValue ( str ) ;\n p = ( unsigned char * ) RSTRING_PTR ( str ) ;\n x = d2i_X509_NAME ( & name , & p , RSTRING_LEN ( str ) ) ;\n DATA_PTR ( self ) = name ;\n if ( ! x ) {\n ossl_raise ( eX509NameError , NULL ) ;\n }\n }\n }\n return self ;\n }"}
{"idx": 3084, "target": 0, "func": "static int16_t findOffset ( const char * const * list , const char * key ) {\n const char * const * anchor = list ;\n while ( * list != NULL ) {\n if ( strcmp ( key , * list ) == 0 ) {\n return ( int16_t ) ( list - anchor ) ;\n }\n list ++ ;\n }\n return - 1 ;\n }"}
{"idx": 3085, "target": 0, "func": "static void compactToUnicodeHelper ( UCMStates * states , uint16_t * unicodeCodeUnits , _MBCSToUFallback * toUFallbacks , int32_t countToUFallbacks ) {\n int32_t state , savings ;\n for ( state = 0 ;\n state < states -> countStates ;\n ++ state ) {\n if ( ( states -> stateFlags [ state ] & 0xf ) == MBCS_STATE_FLAG_DIRECT ) {\n savings = findUnassigned ( states , unicodeCodeUnits , toUFallbacks , countToUFallbacks , state , 0 , 0 ) ;\n if ( savings > 0 ) {\n printf ( \" all-unassigned sequences from initial state %ld use %ld bytes\\n\" , ( long ) state , ( long ) savings ) ;\n }\n }\n }\n }"}
{"idx": 3086, "target": 0, "func": "static void report_progress ( const MYSQL * mysql , uint stage , uint max_stage , double progress , const char * proc_info , uint proc_info_length ) {\n uint length = printf ( \"Stage: %d of %d '%.*s' %6.3g%% of stage done\" , stage , max_stage , proc_info_length , proc_info , progress ) ;\n if ( length < last_progress_report_length ) printf ( \"%*s\" , last_progress_report_length - length , \"\" ) ;\n putc ( '\\r' , stdout ) ;\n fflush ( stdout ) ;\n last_progress_report_length = length ;\n }"}
{"idx": 3087, "target": 0, "func": "void vp9_free_pc_tree ( VP9_COMP * cpi ) {\n const int tree_nodes = 64 + 16 + 4 + 1 ;\n int i ;\n for ( i = 0 ;\n i < 64 ;\n ++ i ) free_mode_context ( & cpi -> leaf_tree [ i ] ) ;\n for ( i = 0 ;\n i < tree_nodes ;\n ++ i ) free_tree_contexts ( & cpi -> pc_tree [ i ] ) ;\n vpx_free ( cpi -> pc_tree ) ;\n cpi -> pc_tree = NULL ;\n vpx_free ( cpi -> leaf_tree ) ;\n cpi -> leaf_tree = NULL ;\n }"}
{"idx": 3088, "target": 0, "func": "static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 3089, "target": 0, "func": "static int get_para_features ( KVMState * s ) {\n int i , features = 0 ;\n for ( i = 0 ;\n i < ARRAY_SIZE ( para_features ) ;\n i ++ ) {\n if ( kvm_check_extension ( s , para_features [ i ] . cap ) ) {\n features |= ( 1 << para_features [ i ] . feature ) ;\n }\n }\n return features ;\n }"}
{"idx": 3090, "target": 0, "func": "static void mpeg4_decode_sprite_trajectory ( MpegEncContext * s , GetBitContext * gb ) {\n int i ;\n int a = 2 << s -> sprite_warping_accuracy ;\n int rho = 3 - s -> sprite_warping_accuracy ;\n int r = 16 / a ;\n const int vop_ref [ 4 ] [ 2 ] = {\n {\n 0 , 0 }\n , {\n s -> width , 0 }\n , {\n 0 , s -> height }\n , {\n s -> width , s -> height }\n }\n ;\n int d [ 4 ] [ 2 ] = {\n {\n 0 , 0 }\n , {\n 0 , 0 }\n , {\n 0 , 0 }\n , {\n 0 , 0 }\n }\n ;\n int sprite_ref [ 4 ] [ 2 ] ;\n int virtual_ref [ 2 ] [ 2 ] ;\n int w2 , h2 , w3 , h3 ;\n int alpha = 0 , beta = 0 ;\n int w = s -> width ;\n int h = s -> height ;\n int min_ab ;\n for ( i = 0 ;\n i < s -> num_sprite_warping_points ;\n i ++ ) {\n int length ;\n int x = 0 , y = 0 ;\n length = get_vlc2 ( gb , sprite_trajectory . table , SPRITE_TRAJ_VLC_BITS , 3 ) ;\n if ( length ) {\n x = get_xbits ( gb , length ) ;\n }\n if ( ! ( s -> divx_version == 500 && s -> divx_build == 413 ) ) skip_bits1 ( gb ) ;\n length = get_vlc2 ( gb , sprite_trajectory . table , SPRITE_TRAJ_VLC_BITS , 3 ) ;\n if ( length ) {\n y = get_xbits ( gb , length ) ;\n }\n skip_bits1 ( gb ) ;\n s -> sprite_traj [ i ] [ 0 ] = d [ i ] [ 0 ] = x ;\n s -> sprite_traj [ i ] [ 1 ] = d [ i ] [ 1 ] = y ;\n }\n for ( ;\n i < 4 ;\n i ++ ) s -> sprite_traj [ i ] [ 0 ] = s -> sprite_traj [ i ] [ 1 ] = 0 ;\n while ( ( 1 << alpha ) < w ) alpha ++ ;\n while ( ( 1 << beta ) < h ) beta ++ ;\n w2 = 1 << alpha ;\n h2 = 1 << beta ;\n if ( s -> divx_version == 500 && s -> divx_build == 413 ) {\n sprite_ref [ 0 ] [ 0 ] = a * vop_ref [ 0 ] [ 0 ] + d [ 0 ] [ 0 ] ;\n sprite_ref [ 0 ] [ 1 ] = a * vop_ref [ 0 ] [ 1 ] + d [ 0 ] [ 1 ] ;\n sprite_ref [ 1 ] [ 0 ] = a * vop_ref [ 1 ] [ 0 ] + d [ 0 ] [ 0 ] + d [ 1 ] [ 0 ] ;\n sprite_ref [ 1 ] [ 1 ] = a * vop_ref [ 1 ] [ 1 ] + d [ 0 ] [ 1 ] + d [ 1 ] [ 1 ] ;\n sprite_ref [ 2 ] [ 0 ] = a * vop_ref [ 2 ] [ 0 ] + d [ 0 ] [ 0 ] + d [ 2 ] [ 0 ] ;\n sprite_ref [ 2 ] [ 1 ] = a * vop_ref [ 2 ] [ 1 ] + d [ 0 ] [ 1 ] + d [ 2 ] [ 1 ] ;\n }\n else {\n sprite_ref [ 0 ] [ 0 ] = ( a >> 1 ) * ( 2 * vop_ref [ 0 ] [ 0 ] + d [ 0 ] [ 0 ] ) ;\n sprite_ref [ 0 ] [ 1 ] = ( a >> 1 ) * ( 2 * vop_ref [ 0 ] [ 1 ] + d [ 0 ] [ 1 ] ) ;\n sprite_ref [ 1 ] [ 0 ] = ( a >> 1 ) * ( 2 * vop_ref [ 1 ] [ 0 ] + d [ 0 ] [ 0 ] + d [ 1 ] [ 0 ] ) ;\n sprite_ref [ 1 ] [ 1 ] = ( a >> 1 ) * ( 2 * vop_ref [ 1 ] [ 1 ] + d [ 0 ] [ 1 ] + d [ 1 ] [ 1 ] ) ;\n sprite_ref [ 2 ] [ 0 ] = ( a >> 1 ) * ( 2 * vop_ref [ 2 ] [ 0 ] + d [ 0 ] [ 0 ] + d [ 2 ] [ 0 ] ) ;\n sprite_ref [ 2 ] [ 1 ] = ( a >> 1 ) * ( 2 * vop_ref [ 2 ] [ 1 ] + d [ 0 ] [ 1 ] + d [ 2 ] [ 1 ] ) ;\n }\n virtual_ref [ 0 ] [ 0 ] = 16 * ( vop_ref [ 0 ] [ 0 ] + w2 ) + ROUNDED_DIV ( ( ( w - w2 ) * ( r * sprite_ref [ 0 ] [ 0 ] - 16 * vop_ref [ 0 ] [ 0 ] ) + w2 * ( r * sprite_ref [ 1 ] [ 0 ] - 16 * vop_ref [ 1 ] [ 0 ] ) ) , w ) ;\n virtual_ref [ 0 ] [ 1 ] = 16 * vop_ref [ 0 ] [ 1 ] + ROUNDED_DIV ( ( ( w - w2 ) * ( r * sprite_ref [ 0 ] [ 1 ] - 16 * vop_ref [ 0 ] [ 1 ] ) + w2 * ( r * sprite_ref [ 1 ] [ 1 ] - 16 * vop_ref [ 1 ] [ 1 ] ) ) , w ) ;\n virtual_ref [ 1 ] [ 0 ] = 16 * vop_ref [ 0 ] [ 0 ] + ROUNDED_DIV ( ( ( h - h2 ) * ( r * sprite_ref [ 0 ] [ 0 ] - 16 * vop_ref [ 0 ] [ 0 ] ) + h2 * ( r * sprite_ref [ 2 ] [ 0 ] - 16 * vop_ref [ 2 ] [ 0 ] ) ) , h ) ;\n virtual_ref [ 1 ] [ 1 ] = 16 * ( vop_ref [ 0 ] [ 1 ] + h2 ) + ROUNDED_DIV ( ( ( h - h2 ) * ( r * sprite_ref [ 0 ] [ 1 ] - 16 * vop_ref [ 0 ] [ 1 ] ) + h2 * ( r * sprite_ref [ 2 ] [ 1 ] - 16 * vop_ref [ 2 ] [ 1 ] ) ) , h ) ;\n switch ( s -> num_sprite_warping_points ) {\n case 0 : s -> sprite_offset [ 0 ] [ 0 ] = 0 ;\n s -> sprite_offset [ 0 ] [ 1 ] = 0 ;\n s -> sprite_offset [ 1 ] [ 0 ] = 0 ;\n s -> sprite_offset [ 1 ] [ 1 ] = 0 ;\n s -> sprite_delta [ 0 ] [ 0 ] = a ;\n s -> sprite_delta [ 0 ] [ 1 ] = 0 ;\n s -> sprite_delta [ 1 ] [ 0 ] = 0 ;\n s -> sprite_delta [ 1 ] [ 1 ] = a ;\n s -> sprite_shift [ 0 ] = 0 ;\n s -> sprite_shift [ 1 ] = 0 ;\n break ;\n case 1 : s -> sprite_offset [ 0 ] [ 0 ] = sprite_ref [ 0 ] [ 0 ] - a * vop_ref [ 0 ] [ 0 ] ;\n s -> sprite_offset [ 0 ] [ 1 ] = sprite_ref [ 0 ] [ 1 ] - a * vop_ref [ 0 ] [ 1 ] ;\n s -> sprite_offset [ 1 ] [ 0 ] = ( ( sprite_ref [ 0 ] [ 0 ] >> 1 ) | ( sprite_ref [ 0 ] [ 0 ] & 1 ) ) - a * ( vop_ref [ 0 ] [ 0 ] / 2 ) ;\n s -> sprite_offset [ 1 ] [ 1 ] = ( ( sprite_ref [ 0 ] [ 1 ] >> 1 ) | ( sprite_ref [ 0 ] [ 1 ] & 1 ) ) - a * ( vop_ref [ 0 ] [ 1 ] / 2 ) ;\n s -> sprite_delta [ 0 ] [ 0 ] = a ;\n s -> sprite_delta [ 0 ] [ 1 ] = 0 ;\n s -> sprite_delta [ 1 ] [ 0 ] = 0 ;\n s -> sprite_delta [ 1 ] [ 1 ] = a ;\n s -> sprite_shift [ 0 ] = 0 ;\n s -> sprite_shift [ 1 ] = 0 ;\n break ;\n case 2 : s -> sprite_offset [ 0 ] [ 0 ] = ( sprite_ref [ 0 ] [ 0 ] << ( alpha + rho ) ) + ( - r * sprite_ref [ 0 ] [ 0 ] + virtual_ref [ 0 ] [ 0 ] ) * ( - vop_ref [ 0 ] [ 0 ] ) + ( r * sprite_ref [ 0 ] [ 1 ] - virtual_ref [ 0 ] [ 1 ] ) * ( - vop_ref [ 0 ] [ 1 ] ) + ( 1 << ( alpha + rho - 1 ) ) ;\n s -> sprite_offset [ 0 ] [ 1 ] = ( sprite_ref [ 0 ] [ 1 ] << ( alpha + rho ) ) + ( - r * sprite_ref [ 0 ] [ 1 ] + virtual_ref [ 0 ] [ 1 ] ) * ( - vop_ref [ 0 ] [ 0 ] ) + ( - r * sprite_ref [ 0 ] [ 0 ] + virtual_ref [ 0 ] [ 0 ] ) * ( - vop_ref [ 0 ] [ 1 ] ) + ( 1 << ( alpha + rho - 1 ) ) ;\n s -> sprite_offset [ 1 ] [ 0 ] = ( ( - r * sprite_ref [ 0 ] [ 0 ] + virtual_ref [ 0 ] [ 0 ] ) * ( - 2 * vop_ref [ 0 ] [ 0 ] + 1 ) + ( r * sprite_ref [ 0 ] [ 1 ] - virtual_ref [ 0 ] [ 1 ] ) * ( - 2 * vop_ref [ 0 ] [ 1 ] + 1 ) + 2 * w2 * r * sprite_ref [ 0 ] [ 0 ] - 16 * w2 + ( 1 << ( alpha + rho + 1 ) ) ) ;\n s -> sprite_offset [ 1 ] [ 1 ] = ( ( - r * sprite_ref [ 0 ] [ 1 ] + virtual_ref [ 0 ] [ 1 ] ) * ( - 2 * vop_ref [ 0 ] [ 0 ] + 1 ) + ( - r * sprite_ref [ 0 ] [ 0 ] + virtual_ref [ 0 ] [ 0 ] ) * ( - 2 * vop_ref [ 0 ] [ 1 ] + 1 ) + 2 * w2 * r * sprite_ref [ 0 ] [ 1 ] - 16 * w2 + ( 1 << ( alpha + rho + 1 ) ) ) ;\n s -> sprite_delta [ 0 ] [ 0 ] = ( - r * sprite_ref [ 0 ] [ 0 ] + virtual_ref [ 0 ] [ 0 ] ) ;\n s -> sprite_delta [ 0 ] [ 1 ] = ( + r * sprite_ref [ 0 ] [ 1 ] - virtual_ref [ 0 ] [ 1 ] ) ;\n s -> sprite_delta [ 1 ] [ 0 ] = ( - r * sprite_ref [ 0 ] [ 1 ] + virtual_ref [ 0 ] [ 1 ] ) ;\n s -> sprite_delta [ 1 ] [ 1 ] = ( - r * sprite_ref [ 0 ] [ 0 ] + virtual_ref [ 0 ] [ 0 ] ) ;\n s -> sprite_shift [ 0 ] = alpha + rho ;\n s -> sprite_shift [ 1 ] = alpha + rho + 2 ;\n break ;\n case 3 : min_ab = FFMIN ( alpha , beta ) ;\n w3 = w2 >> min_ab ;\n h3 = h2 >> min_ab ;\n s -> sprite_offset [ 0 ] [ 0 ] = ( sprite_ref [ 0 ] [ 0 ] << ( alpha + beta + rho - min_ab ) ) + ( - r * sprite_ref [ 0 ] [ 0 ] + virtual_ref [ 0 ] [ 0 ] ) * h3 * ( - vop_ref [ 0 ] [ 0 ] ) + ( - r * sprite_ref [ 0 ] [ 0 ] + virtual_ref [ 1 ] [ 0 ] ) * w3 * ( - vop_ref [ 0 ] [ 1 ] ) + ( 1 << ( alpha + beta + rho - min_ab - 1 ) ) ;\n s -> sprite_offset [ 0 ] [ 1 ] = ( sprite_ref [ 0 ] [ 1 ] << ( alpha + beta + rho - min_ab ) ) + ( - r * sprite_ref [ 0 ] [ 1 ] + virtual_ref [ 0 ] [ 1 ] ) * h3 * ( - vop_ref [ 0 ] [ 0 ] ) + ( - r * sprite_ref [ 0 ] [ 1 ] + virtual_ref [ 1 ] [ 1 ] ) * w3 * ( - vop_ref [ 0 ] [ 1 ] ) + ( 1 << ( alpha + beta + rho - min_ab - 1 ) ) ;\n s -> sprite_offset [ 1 ] [ 0 ] = ( - r * sprite_ref [ 0 ] [ 0 ] + virtual_ref [ 0 ] [ 0 ] ) * h3 * ( - 2 * vop_ref [ 0 ] [ 0 ] + 1 ) + ( - r * sprite_ref [ 0 ] [ 0 ] + virtual_ref [ 1 ] [ 0 ] ) * w3 * ( - 2 * vop_ref [ 0 ] [ 1 ] + 1 ) + 2 * w2 * h3 * r * sprite_ref [ 0 ] [ 0 ] - 16 * w2 * h3 + ( 1 << ( alpha + beta + rho - min_ab + 1 ) ) ;\n s -> sprite_offset [ 1 ] [ 1 ] = ( - r * sprite_ref [ 0 ] [ 1 ] + virtual_ref [ 0 ] [ 1 ] ) * h3 * ( - 2 * vop_ref [ 0 ] [ 0 ] + 1 ) + ( - r * sprite_ref [ 0 ] [ 1 ] + virtual_ref [ 1 ] [ 1 ] ) * w3 * ( - 2 * vop_ref [ 0 ] [ 1 ] + 1 ) + 2 * w2 * h3 * r * sprite_ref [ 0 ] [ 1 ] - 16 * w2 * h3 + ( 1 << ( alpha + beta + rho - min_ab + 1 ) ) ;\n s -> sprite_delta [ 0 ] [ 0 ] = ( - r * sprite_ref [ 0 ] [ 0 ] + virtual_ref [ 0 ] [ 0 ] ) * h3 ;\n s -> sprite_delta [ 0 ] [ 1 ] = ( - r * sprite_ref [ 0 ] [ 0 ] + virtual_ref [ 1 ] [ 0 ] ) * w3 ;\n s -> sprite_delta [ 1 ] [ 0 ] = ( - r * sprite_ref [ 0 ] [ 1 ] + virtual_ref [ 0 ] [ 1 ] ) * h3 ;\n s -> sprite_delta [ 1 ] [ 1 ] = ( - r * sprite_ref [ 0 ] [ 1 ] + virtual_ref [ 1 ] [ 1 ] ) * w3 ;\n s -> sprite_shift [ 0 ] = alpha + beta + rho - min_ab ;\n s -> sprite_shift [ 1 ] = alpha + beta + rho - min_ab + 2 ;\n break ;\n }\n if ( s -> sprite_delta [ 0 ] [ 0 ] == a << s -> sprite_shift [ 0 ] && s -> sprite_delta [ 0 ] [ 1 ] == 0 && s -> sprite_delta [ 1 ] [ 0 ] == 0 && s -> sprite_delta [ 1 ] [ 1 ] == a << s -> sprite_shift [ 0 ] ) {\n s -> sprite_offset [ 0 ] [ 0 ] >>= s -> sprite_shift [ 0 ] ;\n s -> sprite_offset [ 0 ] [ 1 ] >>= s -> sprite_shift [ 0 ] ;\n s -> sprite_offset [ 1 ] [ 0 ] >>= s -> sprite_shift [ 1 ] ;\n s -> sprite_offset [ 1 ] [ 1 ] >>= s -> sprite_shift [ 1 ] ;\n s -> sprite_delta [ 0 ] [ 0 ] = a ;\n s -> sprite_delta [ 0 ] [ 1 ] = 0 ;\n s -> sprite_delta [ 1 ] [ 0 ] = 0 ;\n s -> sprite_delta [ 1 ] [ 1 ] = a ;\n s -> sprite_shift [ 0 ] = 0 ;\n s -> sprite_shift [ 1 ] = 0 ;\n s -> real_sprite_warping_points = 1 ;\n }\n else {\n int shift_y = 16 - s -> sprite_shift [ 0 ] ;\n int shift_c = 16 - s -> sprite_shift [ 1 ] ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n s -> sprite_offset [ 0 ] [ i ] <<= shift_y ;\n s -> sprite_offset [ 1 ] [ i ] <<= shift_c ;\n s -> sprite_delta [ 0 ] [ i ] <<= shift_y ;\n s -> sprite_delta [ 1 ] [ i ] <<= shift_y ;\n s -> sprite_shift [ i ] = 16 ;\n }\n s -> real_sprite_warping_points = s -> num_sprite_warping_points ;\n }\n }"}
{"idx": 3091, "target": 0, "func": "static void multiple_read_cb ( int fd , short event , void * arg ) {\n struct event * ev = arg ;\n int len ;\n len = read ( fd , rbuf + roff , sizeof ( rbuf ) - roff ) ;\n if ( len == - 1 ) fprintf ( stderr , \"%s: read\\n\" , __func__ ) ;\n if ( len <= 0 ) {\n if ( usepersist ) event_del ( ev ) ;\n return ;\n }\n roff += len ;\n if ( ! usepersist ) {\n if ( event_add ( ev , NULL ) == - 1 ) exit ( 1 ) ;\n }\n }"}
{"idx": 3092, "target": 0, "func": "static int dsa_pub_decode ( EVP_PKEY * pkey , X509_PUBKEY * pubkey ) {\n const unsigned char * p , * pm ;\n int pklen , pmlen ;\n int ptype ;\n void * pval ;\n ASN1_STRING * pstr ;\n X509_ALGOR * palg ;\n ASN1_INTEGER * public_key = NULL ;\n DSA * dsa = NULL ;\n if ( ! X509_PUBKEY_get0_param ( NULL , & p , & pklen , & palg , pubkey ) ) return 0 ;\n X509_ALGOR_get0 ( NULL , & ptype , & pval , palg ) ;\n if ( ptype == V_ASN1_SEQUENCE ) {\n pstr = pval ;\n pm = pstr -> data ;\n pmlen = pstr -> length ;\n if ( ( dsa = d2i_DSAparams ( NULL , & pm , pmlen ) ) == NULL ) {\n DSAerr ( DSA_F_DSA_PUB_DECODE , DSA_R_DECODE_ERROR ) ;\n goto err ;\n }\n }\n else if ( ( ptype == V_ASN1_NULL ) || ( ptype == V_ASN1_UNDEF ) ) {\n if ( ( dsa = DSA_new ( ) ) == NULL ) {\n DSAerr ( DSA_F_DSA_PUB_DECODE , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n }\n else {\n DSAerr ( DSA_F_DSA_PUB_DECODE , DSA_R_PARAMETER_ENCODING_ERROR ) ;\n goto err ;\n }\n if ( ( public_key = d2i_ASN1_INTEGER ( NULL , & p , pklen ) ) == NULL ) {\n DSAerr ( DSA_F_DSA_PUB_DECODE , DSA_R_DECODE_ERROR ) ;\n goto err ;\n }\n if ( ( dsa -> pub_key = ASN1_INTEGER_to_BN ( public_key , NULL ) ) == NULL ) {\n DSAerr ( DSA_F_DSA_PUB_DECODE , DSA_R_BN_DECODE_ERROR ) ;\n goto err ;\n }\n ASN1_INTEGER_free ( public_key ) ;\n EVP_PKEY_assign_DSA ( pkey , dsa ) ;\n return 1 ;\n err : ASN1_INTEGER_free ( public_key ) ;\n DSA_free ( dsa ) ;\n return 0 ;\n }"}
{"idx": 3093, "target": 0, "func": "static int sb_finish_set_opts ( struct super_block * sb ) {\n struct superblock_security_struct * sbsec = sb -> s_security ;\n struct dentry * root = sb -> s_root ;\n struct inode * root_inode = d_backing_inode ( root ) ;\n int rc = 0 ;\n if ( sbsec -> behavior == SECURITY_FS_USE_XATTR ) {\n if ( ! ( root_inode -> i_opflags & IOP_XATTR ) ) {\n printk ( KERN_WARNING \"SELinux: (dev %s, type %s) has no \" \"xattr support\\n\" , sb -> s_id , sb -> s_type -> name ) ;\n rc = - EOPNOTSUPP ;\n goto out ;\n }\n rc = __vfs_getxattr ( root , root_inode , XATTR_NAME_SELINUX , NULL , 0 ) ;\n if ( rc < 0 && rc != - ENODATA ) {\n if ( rc == - EOPNOTSUPP ) printk ( KERN_WARNING \"SELinux: (dev %s, type \" \"%s) has no security xattr handler\\n\" , sb -> s_id , sb -> s_type -> name ) ;\n else printk ( KERN_WARNING \"SELinux: (dev %s, type \" \"%s) getxattr errno %d\\n\" , sb -> s_id , sb -> s_type -> name , - rc ) ;\n goto out ;\n }\n }\n if ( sbsec -> behavior > ARRAY_SIZE ( labeling_behaviors ) ) printk ( KERN_ERR \"SELinux: initialized (dev %s, type %s), unknown behavior\\n\" , sb -> s_id , sb -> s_type -> name ) ;\n sbsec -> flags |= SE_SBINITIALIZED ;\n if ( selinux_is_sblabel_mnt ( sb ) ) sbsec -> flags |= SBLABEL_MNT ;\n rc = inode_doinit_with_dentry ( root_inode , root ) ;\n spin_lock ( & sbsec -> isec_lock ) ;\n next_inode : if ( ! list_empty ( & sbsec -> isec_head ) ) {\n struct inode_security_struct * isec = list_entry ( sbsec -> isec_head . next , struct inode_security_struct , list ) ;\n struct inode * inode = isec -> inode ;\n list_del_init ( & isec -> list ) ;\n spin_unlock ( & sbsec -> isec_lock ) ;\n inode = igrab ( inode ) ;\n if ( inode ) {\n if ( ! IS_PRIVATE ( inode ) ) inode_doinit ( inode ) ;\n iput ( inode ) ;\n }\n spin_lock ( & sbsec -> isec_lock ) ;\n goto next_inode ;\n }\n spin_unlock ( & sbsec -> isec_lock ) ;\n out : return rc ;\n }"}
{"idx": 3094, "target": 0, "func": "static int dissect_pvfs2_deleattr_request ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"handle\" , NULL ) ;\n offset = dissect_pvfs_fs_id ( tvb , tree , offset ) ;\n offset = dissect_pvfs_ds_keyval ( tvb , tree , offset ) ;\n return offset ;\n }"}
{"idx": 3095, "target": 0, "func": "static int qtrle_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n QtrleContext * s = avctx -> priv_data ;\n int header , start_line ;\n int height , row_ptr ;\n int has_palette = 0 ;\n int ret ;\n bytestream2_init ( & s -> g , avpkt -> data , avpkt -> size ) ;\n if ( ( ret = ff_reget_buffer ( avctx , & s -> frame ) ) < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( avpkt -> size < 8 ) goto done ;\n bytestream2_seek ( & s -> g , 4 , SEEK_SET ) ;\n header = bytestream2_get_be16 ( & s -> g ) ;\n if ( header & 0x0008 ) {\n if ( avpkt -> size < 14 ) goto done ;\n start_line = bytestream2_get_be16 ( & s -> g ) ;\n bytestream2_skip ( & s -> g , 2 ) ;\n height = bytestream2_get_be16 ( & s -> g ) ;\n bytestream2_skip ( & s -> g , 2 ) ;\n }\n else {\n start_line = 0 ;\n height = s -> avctx -> height ;\n }\n row_ptr = s -> frame . linesize [ 0 ] * start_line ;\n switch ( avctx -> bits_per_coded_sample ) {\n case 1 : case 33 : qtrle_decode_1bpp ( s , row_ptr , height ) ;\n break ;\n case 2 : case 34 : qtrle_decode_2n4bpp ( s , row_ptr , height , 2 ) ;\n has_palette = 1 ;\n break ;\n case 4 : case 36 : qtrle_decode_2n4bpp ( s , row_ptr , height , 4 ) ;\n has_palette = 1 ;\n break ;\n case 8 : case 40 : qtrle_decode_8bpp ( s , row_ptr , height ) ;\n has_palette = 1 ;\n break ;\n case 16 : qtrle_decode_16bpp ( s , row_ptr , height ) ;\n break ;\n case 24 : qtrle_decode_24bpp ( s , row_ptr , height ) ;\n break ;\n case 32 : qtrle_decode_32bpp ( s , row_ptr , height ) ;\n break ;\n default : av_log ( s -> avctx , AV_LOG_ERROR , \"Unsupported colorspace: %d bits/sample?\\n\" , avctx -> bits_per_coded_sample ) ;\n break ;\n }\n if ( has_palette ) {\n const uint8_t * pal = av_packet_get_side_data ( avpkt , AV_PKT_DATA_PALETTE , NULL ) ;\n if ( pal ) {\n s -> frame . palette_has_changed = 1 ;\n memcpy ( s -> pal , pal , AVPALETTE_SIZE ) ;\n }\n memcpy ( s -> frame . data [ 1 ] , s -> pal , AVPALETTE_SIZE ) ;\n }\n done : if ( ( ret = av_frame_ref ( data , & s -> frame ) ) < 0 ) return ret ;\n * got_frame = 1 ;\n return avpkt -> size ;\n }"}
{"idx": 3096, "target": 0, "func": "static PyObject * string_subscript ( PyStringObject * self , PyObject * item ) {\n if ( PyIndex_Check ( item ) ) {\n Py_ssize_t i = PyNumber_AsSsize_t ( item , PyExc_IndexError ) ;\n if ( i == - 1 && PyErr_Occurred ( ) ) return NULL ;\n if ( i < 0 ) i += PyString_GET_SIZE ( self ) ;\n return string_item ( self , i ) ;\n }\n else if ( PySlice_Check ( item ) ) {\n Py_ssize_t start , stop , step , slicelength , cur , i ;\n char * source_buf ;\n char * result_buf ;\n PyObject * result ;\n if ( _PySlice_Unpack ( item , & start , & stop , & step ) < 0 ) {\n return NULL ;\n }\n slicelength = _PySlice_AdjustIndices ( PyString_GET_SIZE ( self ) , & start , & stop , step ) ;\n if ( slicelength <= 0 ) {\n return PyString_FromStringAndSize ( \"\" , 0 ) ;\n }\n else if ( start == 0 && step == 1 && slicelength == PyString_GET_SIZE ( self ) && PyString_CheckExact ( self ) ) {\n Py_INCREF ( self ) ;\n return ( PyObject * ) self ;\n }\n else if ( step == 1 ) {\n return PyString_FromStringAndSize ( PyString_AS_STRING ( self ) + start , slicelength ) ;\n }\n else {\n source_buf = PyString_AsString ( ( PyObject * ) self ) ;\n result_buf = ( char * ) PyMem_Malloc ( slicelength ) ;\n if ( result_buf == NULL ) return PyErr_NoMemory ( ) ;\n for ( cur = start , i = 0 ;\n i < slicelength ;\n cur += step , i ++ ) {\n result_buf [ i ] = source_buf [ cur ] ;\n }\n result = PyString_FromStringAndSize ( result_buf , slicelength ) ;\n PyMem_Free ( result_buf ) ;\n return result ;\n }\n }\n else {\n PyErr_Format ( PyExc_TypeError , \"string indices must be integers, not %.200s\" , Py_TYPE ( item ) -> tp_name ) ;\n return NULL ;\n }\n }"}
{"idx": 3097, "target": 1, "func": "gpg_err_code_t _gcry_ecc_fill_in_curve ( unsigned int nbits , const char * name , elliptic_curve_t * curve , unsigned int * r_nbits ) {\n int idx , aliasno ;\n const char * resname = NULL ;\n if ( name ) {\n for ( idx = 0 ;\n domain_parms [ idx ] . desc ;\n idx ++ ) if ( ! strcmp ( name , domain_parms [ idx ] . desc ) ) {\n resname = domain_parms [ idx ] . desc ;\n break ;\n }\n if ( ! domain_parms [ idx ] . desc ) {\n for ( aliasno = 0 ;\n curve_aliases [ aliasno ] . name ;\n aliasno ++ ) if ( ! strcmp ( name , curve_aliases [ aliasno ] . other ) ) break ;\n if ( curve_aliases [ aliasno ] . name ) {\n for ( idx = 0 ;\n domain_parms [ idx ] . desc ;\n idx ++ ) if ( ! strcmp ( curve_aliases [ aliasno ] . name , domain_parms [ idx ] . desc ) ) {\n resname = domain_parms [ idx ] . desc ;\n break ;\n }\n }\n }\n }\n else {\n for ( idx = 0 ;\n domain_parms [ idx ] . desc ;\n idx ++ ) if ( nbits == domain_parms [ idx ] . nbits ) break ;\n }\n if ( ! domain_parms [ idx ] . desc ) return GPG_ERR_UNKNOWN_CURVE ;\n if ( fips_mode ( ) && ! domain_parms [ idx ] . fips ) return GPG_ERR_NOT_SUPPORTED ;\n switch ( domain_parms [ idx ] . model ) {\n case MPI_EC_WEIERSTRASS : case MPI_EC_TWISTEDEDWARDS : break ;\n case MPI_EC_MONTGOMERY : return GPG_ERR_NOT_SUPPORTED ;\n default : return GPG_ERR_BUG ;\n }\n if ( r_nbits ) * r_nbits = domain_parms [ idx ] . nbits ;\n curve -> model = domain_parms [ idx ] . model ;\n curve -> p = scanval ( domain_parms [ idx ] . p ) ;\n curve -> a = scanval ( domain_parms [ idx ] . a ) ;\n curve -> b = scanval ( domain_parms [ idx ] . b ) ;\n curve -> n = scanval ( domain_parms [ idx ] . n ) ;\n curve -> G . x = scanval ( domain_parms [ idx ] . g_x ) ;\n curve -> G . y = scanval ( domain_parms [ idx ] . g_y ) ;\n curve -> G . z = mpi_alloc_set_ui ( 1 ) ;\n curve -> name = resname ;\n return 0 ;\n }"}
{"idx": 3098, "target": 0, "func": "static int cinepak_decode_vectors ( CinepakContext * s , cvid_strip * strip , int chunk_id , int size , const uint8_t * data ) {\n const uint8_t * eod = ( data + size ) ;\n uint32_t flag , mask ;\n cvid_codebook * codebook ;\n unsigned int x , y ;\n uint32_t iy [ 4 ] ;\n uint32_t iu [ 2 ] ;\n uint32_t iv [ 2 ] ;\n flag = 0 ;\n mask = 0 ;\n for ( y = strip -> y1 ;\n y < strip -> y2 ;\n y += 4 ) {\n iy [ 0 ] = strip -> x1 + ( y * s -> frame . linesize [ 0 ] ) ;\n iy [ 1 ] = iy [ 0 ] + s -> frame . linesize [ 0 ] ;\n iy [ 2 ] = iy [ 1 ] + s -> frame . linesize [ 0 ] ;\n iy [ 3 ] = iy [ 2 ] + s -> frame . linesize [ 0 ] ;\n iu [ 0 ] = ( strip -> x1 / 2 ) + ( ( y / 2 ) * s -> frame . linesize [ 1 ] ) ;\n iu [ 1 ] = iu [ 0 ] + s -> frame . linesize [ 1 ] ;\n iv [ 0 ] = ( strip -> x1 / 2 ) + ( ( y / 2 ) * s -> frame . linesize [ 2 ] ) ;\n iv [ 1 ] = iv [ 0 ] + s -> frame . linesize [ 2 ] ;\n for ( x = strip -> x1 ;\n x < strip -> x2 ;\n x += 4 ) {\n if ( ( chunk_id & 0x01 ) && ! ( mask >>= 1 ) ) {\n if ( ( data + 4 ) > eod ) return AVERROR_INVALIDDATA ;\n flag = AV_RB32 ( data ) ;\n data += 4 ;\n mask = 0x80000000 ;\n }\n if ( ! ( chunk_id & 0x01 ) || ( flag & mask ) ) {\n if ( ! ( chunk_id & 0x02 ) && ! ( mask >>= 1 ) ) {\n if ( ( data + 4 ) > eod ) return AVERROR_INVALIDDATA ;\n flag = AV_RB32 ( data ) ;\n data += 4 ;\n mask = 0x80000000 ;\n }\n if ( ( chunk_id & 0x02 ) || ( ~ flag & mask ) ) {\n if ( data >= eod ) return AVERROR_INVALIDDATA ;\n codebook = & strip -> v1_codebook [ * data ++ ] ;\n s -> frame . data [ 0 ] [ iy [ 0 ] + 0 ] = codebook -> y0 ;\n s -> frame . data [ 0 ] [ iy [ 0 ] + 1 ] = codebook -> y0 ;\n s -> frame . data [ 0 ] [ iy [ 1 ] + 0 ] = codebook -> y0 ;\n s -> frame . data [ 0 ] [ iy [ 1 ] + 1 ] = codebook -> y0 ;\n if ( ! s -> palette_video ) {\n s -> frame . data [ 1 ] [ iu [ 0 ] ] = codebook -> u ;\n s -> frame . data [ 2 ] [ iv [ 0 ] ] = codebook -> v ;\n }\n s -> frame . data [ 0 ] [ iy [ 0 ] + 2 ] = codebook -> y1 ;\n s -> frame . data [ 0 ] [ iy [ 0 ] + 3 ] = codebook -> y1 ;\n s -> frame . data [ 0 ] [ iy [ 1 ] + 2 ] = codebook -> y1 ;\n s -> frame . data [ 0 ] [ iy [ 1 ] + 3 ] = codebook -> y1 ;\n if ( ! s -> palette_video ) {\n s -> frame . data [ 1 ] [ iu [ 0 ] + 1 ] = codebook -> u ;\n s -> frame . data [ 2 ] [ iv [ 0 ] + 1 ] = codebook -> v ;\n }\n s -> frame . data [ 0 ] [ iy [ 2 ] + 0 ] = codebook -> y2 ;\n s -> frame . data [ 0 ] [ iy [ 2 ] + 1 ] = codebook -> y2 ;\n s -> frame . data [ 0 ] [ iy [ 3 ] + 0 ] = codebook -> y2 ;\n s -> frame . data [ 0 ] [ iy [ 3 ] + 1 ] = codebook -> y2 ;\n if ( ! s -> palette_video ) {\n s -> frame . data [ 1 ] [ iu [ 1 ] ] = codebook -> u ;\n s -> frame . data [ 2 ] [ iv [ 1 ] ] = codebook -> v ;\n }\n s -> frame . data [ 0 ] [ iy [ 2 ] + 2 ] = codebook -> y3 ;\n s -> frame . data [ 0 ] [ iy [ 2 ] + 3 ] = codebook -> y3 ;\n s -> frame . data [ 0 ] [ iy [ 3 ] + 2 ] = codebook -> y3 ;\n s -> frame . data [ 0 ] [ iy [ 3 ] + 3 ] = codebook -> y3 ;\n if ( ! s -> palette_video ) {\n s -> frame . data [ 1 ] [ iu [ 1 ] + 1 ] = codebook -> u ;\n s -> frame . data [ 2 ] [ iv [ 1 ] + 1 ] = codebook -> v ;\n }\n }\n else if ( flag & mask ) {\n if ( ( data + 4 ) > eod ) return AVERROR_INVALIDDATA ;\n codebook = & strip -> v4_codebook [ * data ++ ] ;\n s -> frame . data [ 0 ] [ iy [ 0 ] + 0 ] = codebook -> y0 ;\n s -> frame . data [ 0 ] [ iy [ 0 ] + 1 ] = codebook -> y1 ;\n s -> frame . data [ 0 ] [ iy [ 1 ] + 0 ] = codebook -> y2 ;\n s -> frame . data [ 0 ] [ iy [ 1 ] + 1 ] = codebook -> y3 ;\n if ( ! s -> palette_video ) {\n s -> frame . data [ 1 ] [ iu [ 0 ] ] = codebook -> u ;\n s -> frame . data [ 2 ] [ iv [ 0 ] ] = codebook -> v ;\n }\n codebook = & strip -> v4_codebook [ * data ++ ] ;\n s -> frame . data [ 0 ] [ iy [ 0 ] + 2 ] = codebook -> y0 ;\n s -> frame . data [ 0 ] [ iy [ 0 ] + 3 ] = codebook -> y1 ;\n s -> frame . data [ 0 ] [ iy [ 1 ] + 2 ] = codebook -> y2 ;\n s -> frame . data [ 0 ] [ iy [ 1 ] + 3 ] = codebook -> y3 ;\n if ( ! s -> palette_video ) {\n s -> frame . data [ 1 ] [ iu [ 0 ] + 1 ] = codebook -> u ;\n s -> frame . data [ 2 ] [ iv [ 0 ] + 1 ] = codebook -> v ;\n }\n codebook = & strip -> v4_codebook [ * data ++ ] ;\n s -> frame . data [ 0 ] [ iy [ 2 ] + 0 ] = codebook -> y0 ;\n s -> frame . data [ 0 ] [ iy [ 2 ] + 1 ] = codebook -> y1 ;\n s -> frame . data [ 0 ] [ iy [ 3 ] + 0 ] = codebook -> y2 ;\n s -> frame . data [ 0 ] [ iy [ 3 ] + 1 ] = codebook -> y3 ;\n if ( ! s -> palette_video ) {\n s -> frame . data [ 1 ] [ iu [ 1 ] ] = codebook -> u ;\n s -> frame . data [ 2 ] [ iv [ 1 ] ] = codebook -> v ;\n }\n codebook = & strip -> v4_codebook [ * data ++ ] ;\n s -> frame . data [ 0 ] [ iy [ 2 ] + 2 ] = codebook -> y0 ;\n s -> frame . data [ 0 ] [ iy [ 2 ] + 3 ] = codebook -> y1 ;\n s -> frame . data [ 0 ] [ iy [ 3 ] + 2 ] = codebook -> y2 ;\n s -> frame . data [ 0 ] [ iy [ 3 ] + 3 ] = codebook -> y3 ;\n if ( ! s -> palette_video ) {\n s -> frame . data [ 1 ] [ iu [ 1 ] + 1 ] = codebook -> u ;\n s -> frame . data [ 2 ] [ iv [ 1 ] + 1 ] = codebook -> v ;\n }\n }\n }\n iy [ 0 ] += 4 ;\n iy [ 1 ] += 4 ;\n iy [ 2 ] += 4 ;\n iy [ 3 ] += 4 ;\n iu [ 0 ] += 2 ;\n iu [ 1 ] += 2 ;\n iv [ 0 ] += 2 ;\n iv [ 1 ] += 2 ;\n }\n }\n return 0 ;\n }"}
{"idx": 3099, "target": 0, "func": "static void cancel_link_info_for_file ( NautilusDirectory * directory , NautilusFile * file ) {\n if ( directory -> details -> link_info_read_state != NULL && directory -> details -> link_info_read_state -> file == file ) {\n link_info_cancel ( directory ) ;\n }\n }"}
{"idx": 3100, "target": 0, "func": "void vp9_entropy_mode_init ( ) {\n vp9_tokens_from_tree ( intra_mode_encodings , vp9_intra_mode_tree ) ;\n vp9_tokens_from_tree ( switchable_interp_encodings , vp9_switchable_interp_tree ) ;\n vp9_tokens_from_tree ( partition_encodings , vp9_partition_tree ) ;\n vp9_tokens_from_tree ( inter_mode_encodings , vp9_inter_mode_tree ) ;\n }"}
{"idx": 3101, "target": 0, "func": "TEST_F ( ProfileInfoCacheTest , DeleteProfile ) {\n EXPECT_EQ ( 0u , GetCache ( ) -> GetNumberOfProfiles ( ) ) ;\n base : : FilePath path_1 = GetProfilePath ( \"path_1\" ) ;\n GetCache ( ) -> AddProfileToCache ( path_1 , ASCIIToUTF16 ( \"name_1\" ) , base : : string16 ( ) , 0 , std : : string ( ) ) ;\n EXPECT_EQ ( 1u , GetCache ( ) -> GetNumberOfProfiles ( ) ) ;\n base : : FilePath path_2 = GetProfilePath ( \"path_2\" ) ;\n base : : string16 name_2 = ASCIIToUTF16 ( \"name_2\" ) ;\n GetCache ( ) -> AddProfileToCache ( path_2 , name_2 , base : : string16 ( ) , 0 , std : : string ( ) ) ;\n EXPECT_EQ ( 2u , GetCache ( ) -> GetNumberOfProfiles ( ) ) ;\n GetCache ( ) -> DeleteProfileFromCache ( path_1 ) ;\n EXPECT_EQ ( 1u , GetCache ( ) -> GetNumberOfProfiles ( ) ) ;\n EXPECT_EQ ( name_2 , GetCache ( ) -> GetNameOfProfileAtIndex ( 0 ) ) ;\n GetCache ( ) -> DeleteProfileFromCache ( path_2 ) ;\n EXPECT_EQ ( 0u , GetCache ( ) -> GetNumberOfProfiles ( ) ) ;\n }"}
{"idx": 3102, "target": 0, "func": "static int ogg_new_stream ( AVFormatContext * s , uint32_t serial ) {\n struct ogg * ogg = s -> priv_data ;\n int idx = ogg -> nstreams ;\n AVStream * st ;\n struct ogg_stream * os ;\n size_t size ;\n if ( ogg -> state ) {\n av_log ( s , AV_LOG_ERROR , \"New streams are not supposed to be added \" \"in between Ogg context save/restore operations.\\n\" ) ;\n return AVERROR_BUG ;\n }\n if ( av_size_mult ( ogg -> nstreams + 1 , sizeof ( * ogg -> streams ) , & size ) < 0 || ! ( os = av_realloc ( ogg -> streams , size ) ) ) return AVERROR ( ENOMEM ) ;\n ogg -> streams = os ;\n os = ogg -> streams + idx ;\n memset ( os , 0 , sizeof ( * os ) ) ;\n os -> serial = serial ;\n os -> bufsize = DECODER_BUFFER_SIZE ;\n os -> buf = av_malloc ( os -> bufsize + AV_INPUT_BUFFER_PADDING_SIZE ) ;\n os -> header = - 1 ;\n os -> start_granule = OGG_NOGRANULE_VALUE ;\n if ( ! os -> buf ) return AVERROR ( ENOMEM ) ;\n st = avformat_new_stream ( s , NULL ) ;\n if ( ! st ) {\n av_freep ( & os -> buf ) ;\n return AVERROR ( ENOMEM ) ;\n }\n st -> id = idx ;\n avpriv_set_pts_info ( st , 64 , 1 , 1000000 ) ;\n ogg -> nstreams ++ ;\n return idx ;\n }"}
{"idx": 3103, "target": 0, "func": "static void print_progress_bar ( struct filter_op * fop ) {\n switch ( fop -> opcode ) {\n case FOP_EXIT : ef_debug ( 1 , \"!\" ) ;\n break ;\n case FOP_TEST : ef_debug ( 1 , \"?\" ) ;\n break ;\n case FOP_ASSIGN : ef_debug ( 1 , \"=\" ) ;\n break ;\n case FOP_FUNC : ef_debug ( 1 , \".\" ) ;\n break ;\n case FOP_JMP : ef_debug ( 1 , \":\" ) ;\n break ;\n case FOP_JTRUE : case FOP_JFALSE : ef_debug ( 1 , \";\n\" ) ;\n break ;\n }\n }"}
{"idx": 3104, "target": 0, "func": "Datum icregexeqjoinsel ( PG_FUNCTION_ARGS ) {\n PG_RETURN_FLOAT8 ( patternjoinsel ( fcinfo , Pattern_Type_Regex_IC , false ) ) ;\n }"}
{"idx": 3105, "target": 0, "func": "static int dissect_h225_BandwidthConfirm ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_BandwidthConfirm , BandwidthConfirm_sequence ) ;\n return offset ;\n }"}
{"idx": 3106, "target": 0, "func": "long jas_stream_setrwcount ( jas_stream_t * stream , long rwcnt ) {\n int old ;\n old = stream -> rwcnt_ ;\n stream -> rwcnt_ = rwcnt ;\n return old ;\n }"}
{"idx": 3107, "target": 0, "func": "static proto_item * ber_add_bad_length_error ( packet_info * pinfo , proto_tree * tree , const char * name , tvbuff_t * tvb , const gint start , gint length ) {\n proto_item * ti ;\n ti = proto_tree_add_string_format ( tree , hf_ber_error , tvb , start , length , \"illegal_length\" , \"%s: length of item (%d) is not valid\" , name , length ) ;\n expert_add_info_format ( pinfo , ti , & ei_ber_error_length , \"Length of item (%d) is not valid\" , length ) ;\n return ti ;\n }"}
{"idx": 3108, "target": 0, "func": "static void dtap_tp_multi_slot_loop_ack ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_len = len ;\n curr_offset = offset ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_TP_LOOP_ACK , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 3109, "target": 0, "func": "static int match_principals_option ( const char * principal_list , struct sshkey_cert * cert ) {\n char * result ;\n u_int i ;\n for ( i = 0 ;\n i < cert -> nprincipals ;\n i ++ ) {\n if ( ( result = match_list ( cert -> principals [ i ] , principal_list , NULL ) ) != NULL ) {\n debug3 ( \"matched principal from key options \\\"%.100s\\\"\" , result ) ;\n free ( result ) ;\n return 1 ;\n }\n }\n return 0 ;\n }"}
{"idx": 3110, "target": 0, "func": "static int dumpcff ( struct alltabs * at , SplineFont * sf , enum fontformat format , FILE * cff ) {\n int ret ;\n if ( format == ff_cff ) {\n AssignTTFGlyph ( & at -> gi , sf , at -> map , true ) ;\n ret = dumptype2glyphs ( sf , at ) ;\n }\n else {\n SFDummyUpCIDs ( & at -> gi , sf ) ;\n ret = dumpcidglyphs ( sf , at ) ;\n free ( sf -> glyphs ) ;\n sf -> glyphs = NULL ;\n sf -> glyphcnt = sf -> glyphmax = 0 ;\n }\n free ( at -> gi . bygid ) ;\n if ( ! ret ) at -> error = true ;\n else if ( at -> gi . flags & ps_flag_nocffsugar ) {\n if ( ! ttfcopyfile ( cff , at -> cfff , 0 , \"CFF\" ) ) at -> error = true ;\n }\n else {\n long len ;\n char buffer [ 80 ] ;\n fprintf ( cff , \"%%!PS-Adobe-3.0 Resource-FontSet\\n\" ) ;\n fprintf ( cff , \"%%%%DocumentNeedResources:ProcSet (FontSetInit)\\n\" ) ;\n fprintf ( cff , \"%%%%Title: (FontSet/%s)\\n\" , sf -> fontname ) ;\n fprintf ( cff , \"%%%%EndComments\\n\" ) ;\n fprintf ( cff , \"%%%%IncludeResource: ProcSet(FontSetInit)\\n\" ) ;\n fprintf ( cff , \"%%%%BeginResource: FontSet(%s)\\n\" , sf -> fontname ) ;\n fprintf ( cff , \"/FontSetInit /ProcSet findresource begin\\n\" ) ;\n fseek ( at -> cfff , 0 , SEEK_END ) ;\n len = ftell ( at -> cfff ) ;\n rewind ( at -> cfff ) ;\n sprintf ( buffer , \"/%s %ld StartData\\n\" , sf -> fontname , len ) ;\n fprintf ( cff , \"%%%%BeginData: %ld Binary Bytes\\n\" , ( long ) ( len + strlen ( buffer ) ) ) ;\n fputs ( buffer , cff ) ;\n if ( ! ttfcopyfile ( cff , at -> cfff , ftell ( cff ) , \"CFF\" ) ) at -> error = true ;\n fprintf ( cff , \"\\n%%%%EndData\\n\" ) ;\n fprintf ( cff , \"%%%%EndResource\\n\" ) ;\n fprintf ( cff , \"%%%%EOF\\n\" ) ;\n }\n return ( ! at -> error ) ;\n }"}
{"idx": 3111, "target": 0, "func": "static int test_decompress_single_bit_error ( xd3_stream * stream , int expected_non_failures ) {\n int ret ;\n usize_t i ;\n uint8_t encoded [ 4 * sizeof ( test_text ) ] ;\n usize_t encoded_size ;\n int non_failures = 0 ;\n int cksum = ( stream -> flags & XD3_ADLER32 ) != 0 ;\n # ifndef DEBUG_TEST_FAILURES # define TEST_FAILURES ( ) # else system ( \"rm -rf test_text.*\" ) ;\n {\n char buf [ TESTBUFSIZE ] ;\n FILE * f ;\n snprintf_func ( buf , TESTBUFSIZE , \"test_text\" ) ;\n f = fopen ( buf , \"w\" ) ;\n fwrite ( test_text , 1 , sizeof ( test_text ) , f ) ;\n fclose ( f ) ;\n }\n # define TEST_FAILURES ( ) do {\n char buf [ TESTBUFSIZE ] ;\n FILE * f ;\n snprintf_func ( buf , TESTBUFSIZE , \"test_text.xz.%d\" , non_failures ) ;\n f = fopen ( buf , \"w\" ) ;\n fwrite ( encoded , 1 , encoded_size , f ) ;\n fclose ( f ) ;\n }\n while ( 0 ) # endif stream -> sec_data . inefficient = 1 ;\n stream -> sec_inst . inefficient = 1 ;\n stream -> sec_addr . inefficient = 1 ;\n if ( ( ret = test_compress_text ( stream , encoded , & encoded_size ) ) ) {\n return ret ;\n }\n if ( ( ret = test_decompress_text ( stream , encoded , encoded_size , sizeof ( test_text ) / 4 ) ) ) {\n return ret ;\n }\n TEST_FAILURES ( ) ;\n for ( i = 0 ;\n i < encoded_size * 8 ;\n i += 1 ) {\n encoded [ i / 8 ] ^= 1 << ( i % 8 ) ;\n if ( ( ret = test_decompress_text ( stream , encoded , encoded_size , sizeof ( test_text ) ) ) == 0 ) {\n non_failures += 1 ;\n # ifdef DEBUG_TEST_FAILURES XPR ( NT \"%u[%u] non-failure %u\\n\" , i / 8 , i % 8 , non_failures ) ;\n # endif TEST_FAILURES ( ) ;\n }\n else {\n }\n if ( cksum && ret == EIO ) {\n stream -> msg = \"checksum mismatch\" ;\n return XD3_INTERNAL ;\n }\n encoded [ i / 8 ] ^= 1 << ( i % 8 ) ;\n }\n if ( ( ret = test_decompress_text ( stream , encoded , encoded_size , 1 ) ) ) {\n return ret ;\n }\n if ( non_failures != expected_non_failures ) {\n XPR ( NT \"non-failures %u;\n expected %u\" , non_failures , expected_non_failures ) ;\n stream -> msg = \"incorrect\" ;\n return XD3_INTERNAL ;\n }\n DOT ( ) ;\n return 0 ;\n }"}
{"idx": 3112, "target": 0, "func": "static void dumpinstrs ( struct glyphinfo * gi , uint8 * instrs , int cnt ) {\n int i ;\n if ( ( gi -> flags & ttf_flag_nohints ) ) {\n putshort ( gi -> glyphs , 0 ) ;\n return ;\n }\n if ( gi -> maxp -> maxglyphInstr < cnt ) gi -> maxp -> maxglyphInstr = cnt ;\n putshort ( gi -> glyphs , cnt ) ;\n for ( i = 0 ;\n i < cnt ;\n ++ i ) putc ( instrs [ i ] , gi -> glyphs ) ;\n }"}
{"idx": 3113, "target": 0, "func": "static int dissect_h225_SEQUENCE_OF_H245Security ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_SEQUENCE_OF_H245Security , SEQUENCE_OF_H245Security_sequence_of ) ;\n return offset ;\n }"}
{"idx": 3114, "target": 0, "func": "TEST_F ( HistoryQuickProviderTest , TypedCountMatches ) {\n std : : vector < std : : string > expected_urls ;\n expected_urls . push_back ( \"http://typeredest.com/y/a\" ) ;\n expected_urls . push_back ( \"http://typeredest.com/y/b\" ) ;\n expected_urls . push_back ( \"http://typeredest.com/x/c\" ) ;\n RunTest ( ASCIIToUTF16 ( \"typeredest\" ) , false , expected_urls , true , ASCIIToUTF16 ( \"typeredest.com/y/a\" ) , ASCIIToUTF16 ( \".com/y/a\" ) ) ;\n }"}
{"idx": 3115, "target": 0, "func": "static int dissect_h245_EncryptionSync ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 706 \"../../asn1/h245/h245.cnf\" void * priv_data = actx -> private_data ;\n actx -> private_data = gef_ctx_alloc ( NULL , \"EncryptionSync\" ) ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_EncryptionSync , EncryptionSync_sequence ) ;\n # line 709 \"../../asn1/h245/h245.cnf\" actx -> private_data = priv_data ;\n return offset ;\n }"}
{"idx": 3116, "target": 0, "func": "static void i_set_object_type ( gs_memory_t * mem , void * ptr , gs_memory_type_ptr_t type ) {\n obj_header_t * pp ;\n if ( ptr == 0 ) return ;\n pp = ( obj_header_t * ) ptr - 1 ;\n pp -> o_type = type ;\n }"}
{"idx": 3117, "target": 0, "func": "int dissect_ber_set ( gboolean implicit_tag , asn1_ctx_t * actx , proto_tree * parent_tree , tvbuff_t * tvb , int offset , const ber_sequence_t * set , gint hf_id , gint ett_id ) {\n gint8 classx ;\n gboolean pcx , ind = 0 , ind_field , imp_tag = FALSE ;\n gint32 tagx ;\n guint32 lenx ;\n proto_tree * tree = parent_tree ;\n proto_item * item = NULL ;\n proto_item * cause ;\n int end_offset , s_offset ;\n int hoffset ;\n tvbuff_t * next_tvb ;\n guint32 mandatory_fields = 0 ;\n guint8 set_idx ;\n gboolean first_pass ;\n const ber_sequence_t * cset = NULL ;\n # define MAX_SET_ELEMENTS 32 s_offset = offset ;\n # ifdef DEBUG_BER {\n const char * name ;\n header_field_info * hfinfo ;\n if ( hf_id >= 0 ) {\n hfinfo = proto_registrar_get_nth ( hf_id ) ;\n name = hfinfo -> name ;\n }\n else {\n name = \"unnamed\" ;\n }\n if ( tvb_reported_length_remaining ( tvb , offset ) > 3 ) {\n printf ( \"SET dissect_ber_set(%s) entered offset:%d len:%d %02x:%02x:%02x\\n\" , name , offset , tvb_reported_length_remaining ( tvb , offset ) , tvb_get_guint8 ( tvb , offset ) , tvb_get_guint8 ( tvb , offset + 1 ) , tvb_get_guint8 ( tvb , offset + 2 ) ) ;\n }\n else {\n printf ( \"SET dissect_ber_set(%s) entered\\n\" , name ) ;\n }\n }\n # endif if ( ! implicit_tag ) {\n hoffset = offset ;\n offset = dissect_ber_identifier ( actx -> pinfo , tree , tvb , offset , & classx , & pcx , & tagx ) ;\n offset = dissect_ber_length ( actx -> pinfo , tree , tvb , offset , & lenx , & ind ) ;\n if ( ind ) {\n end_offset = offset + lenx - 2 ;\n }\n else {\n end_offset = offset + lenx ;\n }\n if ( ( classx != BER_CLASS_APP ) && ( classx != BER_CLASS_PRI ) ) {\n if ( ! pcx || ( ! implicit_tag && ( ( classx != BER_CLASS_UNI ) || ( tagx != BER_UNI_TAG_SET ) ) ) ) {\n tvb_ensure_bytes_exist ( tvb , hoffset , 2 ) ;\n cause = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset , lenx , \"set_expected\" , \"SET expected but class:%s(%d) %s tag:%d was found\" , val_to_str_const ( classx , ber_class_codes , \"Unknown\" ) , classx , pcx ? ber_pc_codes_short . true_string : ber_pc_codes_short . false_string , tagx ) ;\n expert_add_info ( actx -> pinfo , cause , & ei_ber_expected_set ) ;\n if ( decode_unexpected ) {\n proto_tree * unknown_tree = proto_item_add_subtree ( cause , ett_ber_unknown ) ;\n dissect_unknown_ber ( actx -> pinfo , tvb , hoffset , unknown_tree ) ;\n }\n return end_offset ;\n }\n }\n }\n else {\n lenx = tvb_reported_length_remaining ( tvb , offset ) ;\n end_offset = offset + lenx ;\n }\n if ( hf_id >= 0 ) {\n if ( parent_tree ) {\n item = proto_tree_add_item ( parent_tree , hf_id , tvb , offset , lenx , ENC_BIG_ENDIAN ) ;\n tree = proto_item_add_subtree ( item , ett_id ) ;\n }\n }\n for ( set_idx = 0 ;\n ( cset = & set [ set_idx ] ) -> func && ( set_idx < MAX_SET_ELEMENTS ) ;\n set_idx ++ ) {\n if ( ! ( cset -> flags & BER_FLAGS_OPTIONAL ) ) mandatory_fields |= 1 << set_idx ;\n }\n while ( offset < end_offset ) {\n gint8 ber_class ;\n gboolean pc ;\n gint32 tag ;\n guint32 len ;\n int eoffset , count ;\n if ( ( tvb_get_guint8 ( tvb , offset ) == 0 ) && ( tvb_get_guint8 ( tvb , offset + 1 ) == 0 ) ) {\n if ( show_internal_ber_fields ) {\n proto_tree_add_item ( tree , hf_ber_seq_eoc , tvb , s_offset , offset + 2 , ENC_NA ) ;\n }\n return end_offset ;\n }\n hoffset = offset ;\n offset = get_ber_identifier ( tvb , offset , & ber_class , & pc , & tag ) ;\n offset = get_ber_length ( tvb , offset , & len , & ind_field ) ;\n eoffset = offset + len ;\n for ( first_pass = TRUE , cset = set , set_idx = 0 ;\n cset -> func || first_pass ;\n cset ++ , set_idx ++ ) {\n if ( ! cset -> func ) {\n first_pass = FALSE ;\n cset = set ;\n set_idx = 0 ;\n }\n if ( ( first_pass && ( ( cset -> ber_class == ber_class ) && ( cset -> tag == tag ) ) ) || ( ! first_pass && ( ( cset -> ber_class == BER_CLASS_ANY ) && ( cset -> tag == - 1 ) ) ) ) {\n if ( ! ( cset -> flags & BER_FLAGS_NOOWNTAG ) ) {\n hoffset = dissect_ber_identifier ( actx -> pinfo , tree , tvb , hoffset , NULL , NULL , NULL ) ;\n hoffset = dissect_ber_length ( actx -> pinfo , tree , tvb , hoffset , NULL , NULL ) ;\n next_tvb = ber_tvb_new_subset_length ( tvb , hoffset , eoffset - hoffset - ( 2 * ind_field ) ) ;\n }\n else {\n next_tvb = ber_tvb_new_subset_length ( tvb , hoffset , eoffset - hoffset ) ;\n }\n # if 0 if ( ( eoffset - hoffset ) > length_remaining ) {\n next_tvb = tvb_new_subset_remaining ( tvb , hoffset ) ;\n }\n else {\n }\n # endif # ifdef DEBUG_BER {\n const char * name ;\n header_field_info * hfinfo ;\n if ( hf_id >= 0 ) {\n hfinfo = proto_registrar_get_nth ( hf_id ) ;\n name = hfinfo -> name ;\n }\n else {\n name = \"unnamed\" ;\n }\n if ( tvb_reported_length_remaining ( next_tvb , 0 ) > 3 ) {\n printf ( \"SET dissect_ber_set(%s) calling subdissector offset:%d len:%d %02x:%02x:%02x\\n\" , name , offset , tvb_reported_length_remaining ( next_tvb , 0 ) , tvb_get_guint8 ( next_tvb , 0 ) , tvb_get_guint8 ( next_tvb , 1 ) , tvb_get_guint8 ( next_tvb , 2 ) ) ;\n }\n else {\n printf ( \"SET dissect_ber_set(%s) calling subdissector\\n\" , name ) ;\n }\n }\n # endif if ( next_tvb == NULL ) {\n THROW ( ReportedBoundsError ) ;\n }\n imp_tag = FALSE ;\n if ( ( cset -> flags & BER_FLAGS_IMPLTAG ) ) imp_tag = TRUE ;\n count = cset -> func ( imp_tag , next_tvb , 0 , actx , tree , * cset -> p_id ) ;\n if ( count || ( first_pass && ( ( len == 0 ) || ( ( ind_field == 1 ) && ( len == 2 ) ) ) ) ) {\n if ( set_idx < MAX_SET_ELEMENTS ) mandatory_fields &= ~ ( 1 << set_idx ) ;\n offset = eoffset ;\n if ( ! ( cset -> flags & BER_FLAGS_NOOWNTAG ) ) {\n if ( ind_field == 1 ) {\n if ( show_internal_ber_fields ) {\n proto_tree_add_item ( tree , hf_ber_set_field_eoc , tvb , offset , count , ENC_NA ) ;\n }\n }\n }\n break ;\n }\n }\n }\n if ( ! cset -> func ) {\n cause = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset , len , \"unknown_field\" , \"Unknown field in SET class:%s(%d) tag:%d\" , val_to_str_const ( ber_class , ber_class_codes , \"Unknown\" ) , ber_class , tag ) ;\n expert_add_info ( actx -> pinfo , cause , & ei_ber_unknown_field_set ) ;\n if ( decode_unexpected ) {\n proto_tree * unknown_tree = proto_item_add_subtree ( cause , ett_ber_unknown ) ;\n dissect_unknown_ber ( actx -> pinfo , tvb , hoffset , unknown_tree ) ;\n }\n offset = eoffset ;\n }\n }\n if ( mandatory_fields ) {\n for ( set_idx = 0 ;\n ( cset = & set [ set_idx ] ) -> func && ( set_idx < MAX_SET_ELEMENTS ) ;\n set_idx ++ ) {\n if ( mandatory_fields & ( 1 << set_idx ) ) {\n cause = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset , lenx , \"missing_field\" , \"Missing field in SET class:%s(%d) tag:%d expected\" , val_to_str_const ( cset -> ber_class , ber_class_codes , \"Unknown\" ) , cset -> ber_class , cset -> tag ) ;\n expert_add_info ( actx -> pinfo , cause , & ei_ber_missing_field_set ) ;\n }\n }\n }\n if ( offset != end_offset ) {\n tvb_ensure_bytes_exist ( tvb , offset - 2 , 2 ) ;\n cause = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset - 2 , 2 , \"illegal_length\" , \"SET ate %d too many bytes\" , offset - end_offset ) ;\n expert_add_info_format ( actx -> pinfo , cause , & ei_ber_error_length , \"BER Error: too many bytes in SET\" ) ;\n }\n if ( ind ) {\n end_offset += 2 ;\n if ( show_internal_ber_fields ) {\n proto_tree_add_item ( tree , hf_ber_set_eoc , tvb , end_offset - 2 , 2 , ENC_NA ) ;\n }\n }\n return end_offset ;\n }"}
{"idx": 3118, "target": 0, "func": "static int dissect_h225_Facility_UUIE ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 445 \"./asn1/h225/h225.cnf\" h225_packet_info * h225_pi ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_Facility_UUIE , Facility_UUIE_sequence ) ;\n # line 449 \"./asn1/h225/h225.cnf\" h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> cs_type = H225_FACILITY ;\n g_snprintf ( h225_pi -> frame_label , 50 , \"%s\" , val_to_str ( h225_pi -> cs_type , T_h323_message_body_vals , \"<unknown>\" ) ) ;\n }\n return offset ;\n }"}
{"idx": 3119, "target": 1, "func": "static byte * gs_heap_alloc_bytes ( gs_memory_t * mem , uint size , client_name_t cname ) {\n gs_malloc_memory_t * mmem = ( gs_malloc_memory_t * ) mem ;\n byte * ptr = 0 ;\n # ifdef DEBUG const char * msg ;\n static const char * const ok_msg = \"OK\" ;\n # define set_msg ( str ) ( msg = ( str ) ) # else # define set_msg ( str ) DO_NOTHING # endif if ( mmem -> monitor ) gx_monitor_enter ( mmem -> monitor ) ;\n if ( size > mmem -> limit - sizeof ( gs_malloc_block_t ) ) {\n set_msg ( \"exceeded limit\" ) ;\n }\n else {\n uint added = size + sizeof ( gs_malloc_block_t ) ;\n if ( mmem -> limit - added < mmem -> used ) set_msg ( \"exceeded limit\" ) ;\n else if ( ( ptr = ( byte * ) Memento_label ( malloc ( added ) , cname ) ) == 0 ) set_msg ( \"failed\" ) ;\n else {\n gs_malloc_block_t * bp = ( gs_malloc_block_t * ) ptr ;\n set_msg ( ok_msg ) ;\n if ( mmem -> allocated ) mmem -> allocated -> prev = bp ;\n bp -> next = mmem -> allocated ;\n bp -> prev = 0 ;\n bp -> size = size ;\n bp -> type = & st_bytes ;\n bp -> cname = cname ;\n mmem -> allocated = bp ;\n ptr = ( byte * ) ( bp + 1 ) ;\n mmem -> used += size + sizeof ( gs_malloc_block_t ) ;\n if ( mmem -> used > mmem -> max_used ) mmem -> max_used = mmem -> used ;\n }\n }\n if ( mmem -> monitor ) gx_monitor_leave ( mmem -> monitor ) ;\n if ( ptr ) gs_alloc_fill ( ptr , gs_alloc_fill_alloc , size ) ;\n # ifdef DEBUG if ( gs_debug_c ( 'a' ) || msg != ok_msg ) dmlprintf6 ( mem , \"[a+]gs_malloc(%s)(%u) = 0x%lx: %s, used=%ld, max=%ld\\n\" , client_name_string ( cname ) , size , ( ulong ) ptr , msg , mmem -> used , mmem -> max_used ) ;\n # endif return ptr ;\n # undef set_msg }"}
{"idx": 3120, "target": 1, "func": "extern int name ( int , locale_t ) __THROW __exctype_l ( isalnum_l ) ;\n __exctype_l ( isalpha_l ) ;\n __exctype_l ( iscntrl_l ) ;\n __exctype_l ( isdigit_l ) ;\n __exctype_l ( islower_l ) ;\n __exctype_l ( isgraph_l ) ;\n __exctype_l ( isprint_l ) ;\n __exctype_l ( ispunct_l ) ;\n __exctype_l ( isspace_l ) ;\n __exctype_l ( isupper_l )"}
{"idx": 3121, "target": 0, "func": "static int selinux_sem_semctl ( struct sem_array * sma , int cmd ) {\n int err ;\n u32 perms ;\n switch ( cmd ) {\n case IPC_INFO : case SEM_INFO : return task_has_system ( current , SYSTEM__IPC_INFO ) ;\n case GETPID : case GETNCNT : case GETZCNT : perms = SEM__GETATTR ;\n break ;\n case GETVAL : case GETALL : perms = SEM__READ ;\n break ;\n case SETVAL : case SETALL : perms = SEM__WRITE ;\n break ;\n case IPC_RMID : perms = SEM__DESTROY ;\n break ;\n case IPC_SET : perms = SEM__SETATTR ;\n break ;\n case IPC_STAT : case SEM_STAT : perms = SEM__GETATTR | SEM__ASSOCIATE ;\n break ;\n default : return 0 ;\n }\n err = ipc_has_perm ( & sma -> sem_perm , perms ) ;\n return err ;\n }"}
{"idx": 3122, "target": 0, "func": "unsigned int mpi_get_flags ( MPI a ) {\n return a -> flags ;\n }"}
{"idx": 3123, "target": 0, "func": "static int option_cmp ( my_option * a , my_option * b ) {\n const char * sa = a -> name ;\n const char * sb = b -> name ;\n for ( ;\n * sa || * sb ;\n sa ++ , sb ++ ) {\n if ( * sa < * sb ) {\n if ( * sa == '-' && * sb == '_' ) continue ;\n else return - 1 ;\n }\n if ( * sa > * sb ) {\n if ( * sa == '_' && * sb == '-' ) continue ;\n else return 1 ;\n }\n }\n DBUG_ASSERT ( a -> name == b -> name ) ;\n return 0 ;\n }"}
{"idx": 3124, "target": 0, "func": "static inline int get_lowest_part_list_y ( H264Context * h , Picture * pic , int n , int height , int y_offset , int list ) {\n int raw_my = h -> mv_cache [ list ] [ scan8 [ n ] ] [ 1 ] ;\n int filter_height_down = ( raw_my & 3 ) ? 3 : 0 ;\n int full_my = ( raw_my >> 2 ) + y_offset ;\n int bottom = full_my + filter_height_down + height ;\n av_assert2 ( height >= 0 ) ;\n return FFMAX ( 0 , bottom ) ;\n }"}
{"idx": 3125, "target": 0, "func": "static void test_bug21206 ( ) {\n const size_t cursor_count = 1025 ;\n const char * create_table [ ] = {\n \"DROP TABLE IF EXISTS t1\" , \"CREATE TABLE t1 (i INT)\" , \"INSERT INTO t1 VALUES (1), (2), (3)\" }\n ;\n const char * query = \"SELECT * FROM t1\" ;\n Stmt_fetch * fetch_array = ( Stmt_fetch * ) calloc ( cursor_count , sizeof ( Stmt_fetch ) ) ;\n Stmt_fetch * fetch ;\n DBUG_ENTER ( \"test_bug21206\" ) ;\n myheader ( \"test_bug21206\" ) ;\n fill_tables ( create_table , sizeof ( create_table ) / sizeof ( * create_table ) ) ;\n for ( fetch = fetch_array ;\n fetch < fetch_array + cursor_count ;\n ++ fetch ) {\n stmt_fetch_init ( fetch , fetch - fetch_array , query ) ;\n }\n for ( fetch = fetch_array ;\n fetch < fetch_array + cursor_count ;\n ++ fetch ) stmt_fetch_close ( fetch ) ;\n free ( fetch_array ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 3126, "target": 0, "func": "struct message_search_context * message_search_init ( const char * normalized_key_utf8 , normalizer_func_t * normalizer , enum message_search_flags flags ) {\n struct message_search_context * ctx ;\n i_assert ( * normalized_key_utf8 != '\\0' ) ;\n ctx = i_new ( struct message_search_context , 1 ) ;\n ctx -> flags = flags ;\n ctx -> decoder = message_decoder_init ( normalizer , 0 ) ;\n ctx -> str_find_ctx = str_find_init ( default_pool , normalized_key_utf8 ) ;\n return ctx ;\n }"}
{"idx": 3127, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize ) ;\n DECL_PIOCTL ( PGetCacheSize ) ;\n DECL_PIOCTL ( PRemoveCallBack ) ;\n DECL_PIOCTL ( PNewCell ) ;\n DECL_PIOCTL ( PNewAlias ) ;\n DECL_PIOCTL ( PListCells ) ;\n DECL_PIOCTL ( PListAliases ) ;\n DECL_PIOCTL ( PRemoveMount ) ;\n DECL_PIOCTL ( PGetCellStatus ) ;\n DECL_PIOCTL ( PSetCellStatus ) ;\n DECL_PIOCTL ( PFlushVolumeData ) ;\n DECL_PIOCTL ( PFlushAllVolumeData ) ;\n DECL_PIOCTL ( PGetVnodeXStatus ) ;\n DECL_PIOCTL ( PGetVnodeXStatus2 ) ;\n DECL_PIOCTL ( PSetSysName ) ;\n DECL_PIOCTL ( PSetSPrefs ) ;\n DECL_PIOCTL ( PSetSPrefs33 ) ;\n DECL_PIOCTL ( PGetSPrefs ) ;\n DECL_PIOCTL ( PExportAfs )"}
{"idx": 3128, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( WebRtcApprtcBrowserTest , MANUAL_WorksOnApprtc ) {\n DetectErrorsInJavaScript ( ) ;\n ASSERT_TRUE ( LaunchApprtcInstanceOnLocalhost ( \"9999\" ) ) ;\n ASSERT_TRUE ( LaunchColliderOnLocalHost ( \"http://localhost:9999\" , \"8089\" ) ) ;\n while ( ! LocalApprtcInstanceIsUp ( ) ) DVLOG ( 1 ) << \"Waiting for AppRTC to come up...\" ;\n GURL room_url = GURL ( \"http://localhost:9999/r/some_room\" \"?wshpp=localhost:8089&wstls=false\" ) ;\n chrome : : AddTabAt ( browser ( ) , GURL ( ) , - 1 , true ) ;\n content : : WebContents * left_tab = browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) ;\n PermissionRequestManager : : FromWebContents ( left_tab ) -> set_auto_response_for_test ( PermissionRequestManager : : ACCEPT_ALL ) ;\n InfoBarResponder left_infobar_responder ( InfoBarService : : FromWebContents ( left_tab ) , InfoBarResponder : : ACCEPT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , room_url ) ;\n chrome : : AddTabAt ( browser ( ) , GURL ( ) , - 1 , true ) ;\n content : : WebContents * right_tab = browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) ;\n PermissionRequestManager : : FromWebContents ( right_tab ) -> set_auto_response_for_test ( PermissionRequestManager : : ACCEPT_ALL ) ;\n InfoBarResponder right_infobar_responder ( InfoBarService : : FromWebContents ( right_tab ) , InfoBarResponder : : ACCEPT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , room_url ) ;\n ASSERT_TRUE ( WaitForCallToComeUp ( left_tab ) ) ;\n ASSERT_TRUE ( WaitForCallToComeUp ( right_tab ) ) ;\n ASSERT_TRUE ( DetectRemoteVideoPlaying ( left_tab ) ) ;\n ASSERT_TRUE ( DetectRemoteVideoPlaying ( right_tab ) ) ;\n chrome : : CloseWebContents ( browser ( ) , left_tab , false ) ;\n chrome : : CloseWebContents ( browser ( ) , right_tab , false ) ;\n }"}
{"idx": 3129, "target": 0, "func": "static void int_dsa_free ( EVP_PKEY * pkey ) {\n DSA_free ( pkey -> pkey . dsa ) ;\n }"}
{"idx": 3130, "target": 0, "func": "static int dissect_h245_MaximumHeaderIntervalResp ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MaximumHeaderIntervalResp , MaximumHeaderIntervalResp_sequence ) ;\n return offset ;\n }"}
{"idx": 3131, "target": 0, "func": "void proto_item_set_text ( proto_item * pi , const char * format , ... ) {\n field_info * fi = NULL ;\n va_list ap ;\n TRY_TO_FAKE_THIS_REPR_VOID ( pi ) ;\n fi = PITEM_FINFO ( pi ) ;\n if ( fi == NULL ) return ;\n if ( fi -> rep ) {\n ITEM_LABEL_FREE ( PNODE_POOL ( pi ) , fi -> rep ) ;\n fi -> rep = NULL ;\n }\n va_start ( ap , format ) ;\n proto_tree_set_representation ( pi , format , ap ) ;\n va_end ( ap ) ;\n }"}
{"idx": 3132, "target": 0, "func": "static int dissect_h225_OCTET_STRING_SIZE_1_20 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 1 , 20 , FALSE , NULL ) ;\n return offset ;\n }"}
{"idx": 3133, "target": 0, "func": "static int send_xmessage ( char * xa_filename , char * message ) {\n if ( access ( xa_filename , R_OK ) == 0 ) {\n setenv ( \"XAUTHORITY\" , xa_filename , 1 ) ;\n if ( verbose ) print_error ( stdout , \"Trying xauth file \\\"%s\\\"\" , xa_filename ) ;\n if ( system ( message ) == 0 ) return 1 ;\n }\n return 0 ;\n }"}
{"idx": 3134, "target": 0, "func": "static void free_indexed ( fz_context * ctx , fz_colorspace * cs ) {\n struct indexed * idx = cs -> data ;\n fz_drop_colorspace ( ctx , idx -> base ) ;\n fz_free ( ctx , idx -> lookup ) ;\n fz_free ( ctx , idx ) ;\n }"}
{"idx": 3135, "target": 0, "func": "static void gtkui_kill_connections ( void ) {\n DEBUG_MSG ( \"gtk_kill_connections\" ) ;\n g_source_remove ( connections_idle ) ;\n gtk_widget_destroy ( conns_window ) ;\n conns_window = NULL ;\n }"}
{"idx": 3136, "target": 1, "func": "void safeputs ( netdissect_options * ndo , const u_char * s , const u_int maxlen ) {\n u_int idx = 0 ;\n while ( * s && idx < maxlen ) {\n safeputchar ( ndo , * s ) ;\n idx ++ ;\n s ++ ;\n }\n }"}
{"idx": 3137, "target": 0, "func": "static int dissect_t38_Data_Field_item ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_t38_Data_Field_item , Data_Field_item_sequence ) ;\n # line 53 \"../../asn1/t38/t38.cnf\" if ( primary_part ) Data_Field_item_num ++ ;\n return offset ;\n }"}
{"idx": 3138, "target": 0, "func": "int qemuAgentSetUserPassword ( qemuAgentPtr mon , const char * user , const char * password , bool crypted ) {\n int ret = - 1 ;\n virJSONValuePtr cmd = NULL ;\n virJSONValuePtr reply = NULL ;\n char * password64 = NULL ;\n if ( ! ( password64 = virStringEncodeBase64 ( ( unsigned char * ) password , strlen ( password ) ) ) ) goto cleanup ;\n if ( ! ( cmd = qemuAgentMakeCommand ( \"guest-set-user-password\" , \"b:crypted\" , crypted , \"s:username\" , user , \"s:password\" , password64 , NULL ) ) ) goto cleanup ;\n if ( qemuAgentCommand ( mon , cmd , & reply , true , VIR_DOMAIN_QEMU_AGENT_COMMAND_BLOCK ) < 0 ) goto cleanup ;\n ret = 0 ;\n cleanup : virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n VIR_FREE ( password64 ) ;\n return ret ;\n }"}
{"idx": 3139, "target": 0, "func": "void _zip_dirent_torrent_normalize ( struct zip_dirent * de ) {\n static struct tm torrenttime ;\n static time_t last_mod = 0 ;\n if ( last_mod == 0 ) {\n # ifdef HAVE_STRUCT_TM_TM_ZONE time_t now ;\n struct tm * l ;\n # endif torrenttime . tm_sec = 0 ;\n torrenttime . tm_min = 32 ;\n torrenttime . tm_hour = 23 ;\n torrenttime . tm_mday = 24 ;\n torrenttime . tm_mon = 11 ;\n torrenttime . tm_year = 96 ;\n torrenttime . tm_wday = 0 ;\n torrenttime . tm_yday = 0 ;\n torrenttime . tm_isdst = 0 ;\n # ifdef HAVE_STRUCT_TM_TM_ZONE time ( & now ) ;\n l = localtime ( & now ) ;\n torrenttime . tm_gmtoff = l -> tm_gmtoff ;\n torrenttime . tm_zone = l -> tm_zone ;\n # endif last_mod = mktime ( & torrenttime ) ;\n }\n de -> version_madeby = 0 ;\n de -> version_needed = 20 ;\n de -> bitflags = 2 ;\n de -> comp_method = ZIP_CM_DEFLATE ;\n de -> last_mod = last_mod ;\n de -> disk_number = 0 ;\n de -> int_attrib = 0 ;\n de -> ext_attrib = 0 ;\n de -> offset = 0 ;\n free ( de -> extrafield ) ;\n de -> extrafield = NULL ;\n de -> extrafield_len = 0 ;\n free ( de -> comment ) ;\n de -> comment = NULL ;\n de -> comment_len = 0 ;\n }"}
{"idx": 3140, "target": 0, "func": "static void dissect_rsvp_style ( proto_item * ti , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int type ) {\n int offset2 = offset + 4 ;\n switch ( type ) {\n case 1 : {\n guint32 style ;\n proto_tree_add_uint ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_style_flags , tvb , offset2 , 1 , ENC_BIG_ENDIAN ) ;\n style = tvb_get_ntoh24 ( tvb , offset2 + 1 ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_style_style , tvb , offset2 + 1 , 3 , ENC_BIG_ENDIAN ) ;\n proto_item_set_text ( ti , \"STYLE: %s (%d)\" , val_to_str_const ( style , style_vals , \"Unknown\" ) , style ) ;\n break ;\n }\n default : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"Unknown (%u)\" , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_style_data , tvb , offset2 , obj_length - 4 , ENC_NA ) ;\n break ;\n }\n }"}
{"idx": 3141, "target": 0, "func": "static int dissect_nlm4_granted ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n return dissect_nlm_granted ( tvb , 0 , pinfo , tree , 4 , ( rpc_call_info_value * ) data ) ;\n }"}
{"idx": 3142, "target": 0, "func": "static int dissect_h225_GatewayInfo ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_GatewayInfo , GatewayInfo_sequence ) ;\n return offset ;\n }"}
{"idx": 3143, "target": 1, "func": "int evsignal_init ( struct event_base * base ) {\n int i ;\n if ( evutil_socketpair ( AF_UNIX , SOCK_STREAM , 0 , base -> sig . ev_signal_pair ) == - 1 ) {\n # ifdef WIN32 event_warn ( \"%s: socketpair\" , __func__ ) ;\n # else event_err ( 1 , \"%s: socketpair\" , __func__ ) ;\n # endif return - 1 ;\n }\n FD_CLOSEONEXEC ( base -> sig . ev_signal_pair [ 0 ] ) ;\n FD_CLOSEONEXEC ( base -> sig . ev_signal_pair [ 1 ] ) ;\n base -> sig . sh_old = NULL ;\n base -> sig . sh_old_max = 0 ;\n base -> sig . evsignal_caught = 0 ;\n memset ( & base -> sig . evsigcaught , 0 , sizeof ( sig_atomic_t ) * NSIG ) ;\n for ( i = 0 ;\n i < NSIG ;\n ++ i ) TAILQ_INIT ( & base -> sig . evsigevents [ i ] ) ;\n evutil_make_socket_nonblocking ( base -> sig . ev_signal_pair [ 0 ] ) ;\n event_set ( & base -> sig . ev_signal , base -> sig . ev_signal_pair [ 1 ] , EV_READ | EV_PERSIST , evsignal_cb , & base -> sig . ev_signal ) ;\n base -> sig . ev_signal . ev_base = base ;\n base -> sig . ev_signal . ev_flags |= EVLIST_INTERNAL ;\n return 0 ;\n }"}
{"idx": 3144, "target": 0, "func": "void do_append_file ( struct st_command * command ) {\n do_write_file_command ( command , TRUE ) ;\n }"}
{"idx": 3145, "target": 0, "func": "Datum regexeqjoinsel ( PG_FUNCTION_ARGS ) {\n PG_RETURN_FLOAT8 ( patternjoinsel ( fcinfo , Pattern_Type_Regex , false ) ) ;\n }"}
{"idx": 3146, "target": 0, "func": "static int strtoint ( const char * const str ) {\n char * endptr ;\n const int r = strtol ( str , & endptr , 10 ) ;\n if ( * endptr ) return - 1 ;\n return r ;\n }"}
{"idx": 3147, "target": 0, "func": "static PHP_NAMED_FUNCTION ( zif_zip_open ) {\n char * filename ;\n int filename_len ;\n char resolved_path [ MAXPATHLEN + 1 ] ;\n zip_rsrc * rsrc_int ;\n int err = 0 ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"p\" , & filename , & filename_len ) == FAILURE ) {\n return ;\n }\n if ( filename_len == 0 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"Empty string as source\" ) ;\n RETURN_FALSE ;\n }\n if ( ZIP_OPENBASEDIR_CHECKPATH ( filename ) ) {\n RETURN_FALSE ;\n }\n if ( ! expand_filepath ( filename , resolved_path TSRMLS_CC ) ) {\n RETURN_FALSE ;\n }\n rsrc_int = ( zip_rsrc * ) emalloc ( sizeof ( zip_rsrc ) ) ;\n rsrc_int -> za = zip_open ( resolved_path , 0 , & err ) ;\n if ( rsrc_int -> za == NULL ) {\n efree ( rsrc_int ) ;\n RETURN_LONG ( ( long ) err ) ;\n }\n rsrc_int -> index_current = 0 ;\n rsrc_int -> num_files = zip_get_num_files ( rsrc_int -> za ) ;\n ZEND_REGISTER_RESOURCE ( return_value , rsrc_int , le_zip_dir ) ;\n }"}
{"idx": 3148, "target": 0, "func": "CURLcode Curl_auth_create_plain_message ( struct Curl_easy * data , const char * userp , const char * passwdp , char * * outptr , size_t * outlen ) {\n CURLcode result ;\n char * plainauth ;\n size_t ulen ;\n size_t plen ;\n size_t plainlen ;\n * outlen = 0 ;\n * outptr = NULL ;\n ulen = strlen ( userp ) ;\n plen = strlen ( passwdp ) ;\n if ( ( ulen > SIZE_T_MAX / 4 ) || ( plen > ( SIZE_T_MAX / 2 - 2 ) ) ) return CURLE_OUT_OF_MEMORY ;\n plainlen = 2 * ulen + plen + 2 ;\n plainauth = malloc ( plainlen ) ;\n if ( ! plainauth ) return CURLE_OUT_OF_MEMORY ;\n memcpy ( plainauth , userp , ulen ) ;\n plainauth [ ulen ] = '\\0' ;\n memcpy ( plainauth + ulen + 1 , userp , ulen ) ;\n plainauth [ 2 * ulen + 1 ] = '\\0' ;\n memcpy ( plainauth + 2 * ulen + 2 , passwdp , plen ) ;\n result = Curl_base64_encode ( data , plainauth , plainlen , outptr , outlen ) ;\n free ( plainauth ) ;\n return result ;\n }"}
{"idx": 3149, "target": 0, "func": "static int dump_selected_tables ( char * db , char * * table_names , int tables ) {\n char table_buff [ NAME_LEN * 2 + 3 ] ;\n DYNAMIC_STRING lock_tables_query ;\n MEM_ROOT root ;\n char * * dump_tables , * * pos , * * end ;\n DBUG_ENTER ( \"dump_selected_tables\" ) ;\n if ( init_dumping ( db , init_dumping_tables ) ) DBUG_RETURN ( 1 ) ;\n init_alloc_root ( & root , 8192 , 0 ) ;\n if ( ! ( dump_tables = pos = ( char * * ) alloc_root ( & root , tables * sizeof ( char * ) ) ) ) die ( EX_EOM , \"alloc_root failure.\" ) ;\n init_dynamic_string_checked ( & lock_tables_query , \"LOCK TABLES \" , 256 , 1024 ) ;\n for ( ;\n tables > 0 ;\n tables -- , table_names ++ ) {\n if ( ( * pos = get_actual_table_name ( * table_names , & root ) ) ) {\n if ( lock_tables ) {\n dynstr_append_checked ( & lock_tables_query , quote_name ( * pos , table_buff , 1 ) ) ;\n dynstr_append_checked ( & lock_tables_query , \" READ /*!32311 LOCAL */,\" ) ;\n }\n pos ++ ;\n }\n else {\n if ( ! ignore_errors ) {\n dynstr_free ( & lock_tables_query ) ;\n free_root ( & root , MYF ( 0 ) ) ;\n }\n maybe_die ( EX_ILLEGAL_TABLE , \"Couldn't find table: \\\"%s\\\"\" , * table_names ) ;\n }\n }\n end = pos ;\n if ( lock_tables && ! ( mysql_get_server_version ( mysql ) >= FIRST_INFORMATION_SCHEMA_VERSION && ! my_strcasecmp ( & my_charset_latin1 , db , INFORMATION_SCHEMA_DB_NAME ) ) && ! ( mysql_get_server_version ( mysql ) >= FIRST_PERFORMANCE_SCHEMA_VERSION && ! my_strcasecmp ( & my_charset_latin1 , db , PERFORMANCE_SCHEMA_DB_NAME ) ) ) {\n if ( mysql_real_query ( mysql , lock_tables_query . str , lock_tables_query . length - 1 ) ) {\n if ( ! ignore_errors ) {\n dynstr_free ( & lock_tables_query ) ;\n free_root ( & root , MYF ( 0 ) ) ;\n }\n DB_error ( mysql , \"when doing LOCK TABLES\" ) ;\n }\n }\n dynstr_free ( & lock_tables_query ) ;\n if ( flush_logs ) {\n if ( mysql_refresh ( mysql , REFRESH_LOG ) ) {\n if ( ! ignore_errors ) free_root ( & root , MYF ( 0 ) ) ;\n DB_error ( mysql , \"when doing refresh\" ) ;\n }\n else verbose_msg ( \"-- dump_selected_tables : logs flushed successfully!\\n\" ) ;\n }\n if ( opt_xml ) print_xml_tag ( md_result_file , \"\" , \"\\n\" , \"database\" , \"name=\" , db , NullS ) ;\n for ( pos = dump_tables ;\n pos < end ;\n pos ++ ) {\n DBUG_PRINT ( \"info\" , ( \"Dumping table %s\" , * pos ) ) ;\n dump_table ( * pos , db ) ;\n if ( opt_dump_triggers && mysql_get_server_version ( mysql ) >= 50009 ) {\n if ( dump_triggers_for_table ( * pos , db ) ) {\n if ( path ) my_fclose ( md_result_file , MYF ( MY_WME ) ) ;\n maybe_exit ( EX_MYSQLERR ) ;\n }\n }\n }\n if ( seen_views ) {\n for ( pos = dump_tables ;\n pos < end ;\n pos ++ ) get_view_structure ( * pos , db ) ;\n }\n if ( opt_events && mysql_get_server_version ( mysql ) >= 50106 ) {\n DBUG_PRINT ( \"info\" , ( \"Dumping events for database %s\" , db ) ) ;\n dump_events_for_db ( db ) ;\n }\n if ( opt_routines && mysql_get_server_version ( mysql ) >= 50009 ) {\n DBUG_PRINT ( \"info\" , ( \"Dumping routines for database %s\" , db ) ) ;\n dump_routines_for_db ( db ) ;\n }\n free_root ( & root , MYF ( 0 ) ) ;\n my_free ( order_by ) ;\n order_by = 0 ;\n if ( opt_xml ) {\n fputs ( \"</database>\\n\" , md_result_file ) ;\n check_io ( md_result_file ) ;\n }\n if ( lock_tables ) ( void ) mysql_query_with_error_report ( mysql , 0 , \"UNLOCK TABLES\" ) ;\n DBUG_RETURN ( 0 ) ;\n }"}
{"idx": 3150, "target": 0, "func": "static int ipvideo_decode_block_opcode_0x8 ( IpvideoContext * s , AVFrame * frame ) {\n int x , y ;\n unsigned char P [ 4 ] ;\n unsigned int flags = 0 ;\n P [ 0 ] = bytestream2_get_byte ( & s -> stream_ptr ) ;\n P [ 1 ] = bytestream2_get_byte ( & s -> stream_ptr ) ;\n if ( P [ 0 ] <= P [ 1 ] ) {\n for ( y = 0 ;\n y < 16 ;\n y ++ ) {\n if ( ! ( y & 3 ) ) {\n if ( y ) {\n P [ 0 ] = bytestream2_get_byte ( & s -> stream_ptr ) ;\n P [ 1 ] = bytestream2_get_byte ( & s -> stream_ptr ) ;\n }\n flags = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n }\n for ( x = 0 ;\n x < 4 ;\n x ++ , flags >>= 1 ) * s -> pixel_ptr ++ = P [ flags & 1 ] ;\n s -> pixel_ptr += s -> stride - 4 ;\n if ( y == 7 ) s -> pixel_ptr -= 8 * s -> stride - 4 ;\n }\n }\n else {\n flags = bytestream2_get_le32 ( & s -> stream_ptr ) ;\n P [ 2 ] = bytestream2_get_byte ( & s -> stream_ptr ) ;\n P [ 3 ] = bytestream2_get_byte ( & s -> stream_ptr ) ;\n if ( P [ 2 ] <= P [ 3 ] ) {\n for ( y = 0 ;\n y < 16 ;\n y ++ ) {\n for ( x = 0 ;\n x < 4 ;\n x ++ , flags >>= 1 ) * s -> pixel_ptr ++ = P [ flags & 1 ] ;\n s -> pixel_ptr += s -> stride - 4 ;\n if ( y == 7 ) {\n s -> pixel_ptr -= 8 * s -> stride - 4 ;\n P [ 0 ] = P [ 2 ] ;\n P [ 1 ] = P [ 3 ] ;\n flags = bytestream2_get_le32 ( & s -> stream_ptr ) ;\n }\n }\n }\n else {\n for ( y = 0 ;\n y < 8 ;\n y ++ ) {\n if ( y == 4 ) {\n P [ 0 ] = P [ 2 ] ;\n P [ 1 ] = P [ 3 ] ;\n flags = bytestream2_get_le32 ( & s -> stream_ptr ) ;\n }\n for ( x = 0 ;\n x < 8 ;\n x ++ , flags >>= 1 ) * s -> pixel_ptr ++ = P [ flags & 1 ] ;\n s -> pixel_ptr += s -> line_inc ;\n }\n }\n }\n return 0 ;\n }"}
{"idx": 3151, "target": 0, "func": "static hb_script_t hb_ot_old_tag_to_script ( hb_tag_t tag ) {\n if ( unlikely ( tag == HB_OT_TAG_DEFAULT_SCRIPT ) ) return HB_SCRIPT_INVALID ;\n if ( unlikely ( ( tag & 0x0000FF00u ) == 0x00002000u ) ) tag |= ( tag >> 8 ) & 0x0000FF00u ;\n if ( unlikely ( ( tag & 0x000000FFu ) == 0x00000020u ) ) tag |= ( tag >> 8 ) & 0x000000FFu ;\n return ( hb_script_t ) ( tag & ~ 0x20000000u ) ;\n }"}
{"idx": 3152, "target": 0, "func": "static void test_bug2248 ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n const char * query1 = \"SELECT DATABASE()\" ;\n const char * query2 = \"INSERT INTO test_bug2248 VALUES (10)\" ;\n myheader ( \"test_bug2248\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_bug2248\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_bug2248 (id int)\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , query1 ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute_r ( stmt , rc ) ;\n rc = mysql_stmt_store_result ( stmt ) ;\n check_execute_r ( stmt , rc ) ;\n mysql_stmt_close ( stmt ) ;\n stmt = mysql_simple_prepare ( mysql , query2 ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == 1 ) ;\n rc = mysql_stmt_store_result ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute_r ( stmt , rc ) ;\n DIE_UNLESS ( rc == 1 ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"DROP TABLE test_bug2248\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 3153, "target": 0, "func": "static void pdf_init_csi ( fz_context * ctx , pdf_csi * csi , pdf_document * doc , pdf_obj * rdb , pdf_lexbuf * buf , fz_cookie * cookie ) {\n memset ( csi , 0 , sizeof * csi ) ;\n csi -> doc = doc ;\n csi -> rdb = rdb ;\n csi -> buf = buf ;\n csi -> cookie = cookie ;\n }"}
{"idx": 3154, "target": 0, "func": "static void nonword ( struct vars * v , int dir , struct state * lp , struct state * rp ) {\n int anchor = ( dir == AHEAD ) ? '$' : '^' ;\n assert ( dir == AHEAD || dir == BEHIND ) ;\n newarc ( v -> nfa , anchor , 1 , lp , rp ) ;\n newarc ( v -> nfa , anchor , 0 , lp , rp ) ;\n colorcomplement ( v -> nfa , v -> cm , dir , v -> wordchrs , lp , rp ) ;\n }"}
{"idx": 3155, "target": 0, "func": "static void proto_tree_set_guid_tvb ( field_info * fi , tvbuff_t * tvb , gint start , const guint encoding ) {\n e_guid_t guid ;\n tvb_get_guid ( tvb , start , & guid , encoding ) ;\n proto_tree_set_guid ( fi , & guid ) ;\n }"}
{"idx": 3156, "target": 0, "func": "TEST_F ( SyncBookmarkDataTypeControllerTest , Stop ) {\n CreateBookmarkModel ( LOAD_MODEL ) ;\n SetStartExpectations ( ) ;\n SetAssociateExpectations ( ) ;\n SetStopExpectations ( ) ;\n EXPECT_EQ ( DataTypeController : : NOT_RUNNING , bookmark_dtc_ -> state ( ) ) ;\n EXPECT_CALL ( start_callback_ , Run ( DataTypeController : : OK , _ , _ ) ) ;\n Start ( ) ;\n EXPECT_EQ ( DataTypeController : : RUNNING , bookmark_dtc_ -> state ( ) ) ;\n bookmark_dtc_ -> Stop ( ) ;\n EXPECT_EQ ( DataTypeController : : NOT_RUNNING , bookmark_dtc_ -> state ( ) ) ;\n }"}
{"idx": 3157, "target": 0, "func": "static UBool ucnv_outputOverflowFromUnicode ( UConverter * cnv , char * * target , const char * targetLimit , int32_t * * pOffsets , UErrorCode * err ) {\n int32_t * offsets ;\n char * overflow , * t ;\n int32_t i , length ;\n t = * target ;\n if ( pOffsets != NULL ) {\n offsets = * pOffsets ;\n }\n else {\n offsets = NULL ;\n }\n overflow = ( char * ) cnv -> charErrorBuffer ;\n length = cnv -> charErrorBufferLength ;\n i = 0 ;\n while ( i < length ) {\n if ( t == targetLimit ) {\n int32_t j = 0 ;\n do {\n overflow [ j ++ ] = overflow [ i ++ ] ;\n }\n while ( i < length ) ;\n cnv -> charErrorBufferLength = ( int8_t ) j ;\n * target = t ;\n if ( offsets != NULL ) {\n * pOffsets = offsets ;\n }\n * err = U_BUFFER_OVERFLOW_ERROR ;\n return TRUE ;\n }\n * t ++ = overflow [ i ++ ] ;\n if ( offsets != NULL ) {\n * offsets ++ = - 1 ;\n }\n }\n cnv -> charErrorBufferLength = 0 ;\n * target = t ;\n if ( offsets != NULL ) {\n * pOffsets = offsets ;\n }\n return FALSE ;\n }"}
{"idx": 3158, "target": 0, "func": "int EVP_EncodeBlock ( unsigned char * t , const unsigned char * f , int dlen ) {\n int i , ret = 0 ;\n unsigned long l ;\n for ( i = dlen ;\n i > 0 ;\n i -= 3 ) {\n if ( i >= 3 ) {\n l = ( ( ( unsigned long ) f [ 0 ] ) << 16L ) | ( ( ( unsigned long ) f [ 1 ] ) << 8L ) | f [ 2 ] ;\n * ( t ++ ) = conv_bin2ascii ( l >> 18L ) ;\n * ( t ++ ) = conv_bin2ascii ( l >> 12L ) ;\n * ( t ++ ) = conv_bin2ascii ( l >> 6L ) ;\n * ( t ++ ) = conv_bin2ascii ( l ) ;\n }\n else {\n l = ( ( unsigned long ) f [ 0 ] ) << 16L ;\n if ( i == 2 ) l |= ( ( unsigned long ) f [ 1 ] << 8L ) ;\n * ( t ++ ) = conv_bin2ascii ( l >> 18L ) ;\n * ( t ++ ) = conv_bin2ascii ( l >> 12L ) ;\n * ( t ++ ) = ( i == 1 ) ? '=' : conv_bin2ascii ( l >> 6L ) ;\n * ( t ++ ) = '=' ;\n }\n ret += 4 ;\n f += 3 ;\n }\n * t = '\\0' ;\n return ( ret ) ;\n }"}
{"idx": 3159, "target": 1, "func": "int i2d_ ## name ( type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;\n int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DIRECTORYSTRING ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DISPLAYTEXT ) DECLARE_ASN1_FUNCTIONS ( ASN1_PRINTABLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_T61STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_IA5STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_GENERALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTCTIME ) DECLARE_ASN1_FUNCTIONS ( ASN1_GENERALIZEDTIME ) DECLARE_ASN1_FUNCTIONS ( ASN1_TIME )"}
{"idx": 3160, "target": 0, "func": "static int virtio_net_has_buffers ( VirtIONet * n , int bufsize ) {\n if ( virtio_queue_empty ( n -> rx_vq ) || ( n -> mergeable_rx_bufs && ! virtqueue_avail_bytes ( n -> rx_vq , bufsize , 0 ) ) ) {\n virtio_queue_set_notification ( n -> rx_vq , 1 ) ;\n if ( virtio_queue_empty ( n -> rx_vq ) || ( n -> mergeable_rx_bufs && ! virtqueue_avail_bytes ( n -> rx_vq , bufsize , 0 ) ) ) return 0 ;\n }\n virtio_queue_set_notification ( n -> rx_vq , 0 ) ;\n return 1 ;\n }"}
{"idx": 3161, "target": 1, "func": "void vp9_update_mv_count ( VP9_COMMON * cm , const MACROBLOCKD * xd ) {\n const MODE_INFO * mi = xd -> mi [ 0 ] ;\n const MB_MODE_INFO * const mbmi = & mi -> mbmi ;\n if ( mbmi -> sb_type < BLOCK_8X8 ) {\n const int num_4x4_w = num_4x4_blocks_wide_lookup [ mbmi -> sb_type ] ;\n const int num_4x4_h = num_4x4_blocks_high_lookup [ mbmi -> sb_type ] ;\n int idx , idy ;\n for ( idy = 0 ;\n idy < 2 ;\n idy += num_4x4_h ) {\n for ( idx = 0 ;\n idx < 2 ;\n idx += num_4x4_w ) {\n const int i = idy * 2 + idx ;\n if ( mi -> bmi [ i ] . as_mode == NEWMV ) inc_mvs ( mbmi , mi -> bmi [ i ] . as_mv , & cm -> counts . mv ) ;\n }\n }\n }\n else {\n if ( mbmi -> mode == NEWMV ) inc_mvs ( mbmi , mbmi -> mv , & cm -> counts . mv ) ;\n }\n }"}
{"idx": 3162, "target": 0, "func": "PHP_FUNCTION ( uwsgi_setprocname ) {\n char * name ;\n int name_len ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"s\" , & name , & name_len ) == FAILURE ) {\n RETURN_NULL ( ) ;\n }\n uwsgi_set_processname ( estrndup ( name , name_len ) ) ;\n RETURN_NULL ( ) ;\n }"}
{"idx": 3163, "target": 0, "func": "static int dissect_h225_T_oid ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 883 \"./asn1/h225/h225.cnf\" const gchar * oid_str = NULL ;\n gef_ctx_t * gefx ;\n offset = dissect_per_object_identifier_str ( tvb , offset , actx , tree , hf_index , & oid_str ) ;\n gefx = gef_ctx_get ( actx -> private_data ) ;\n if ( gefx ) gefx -> id = oid_str ;\n return offset ;\n }"}
{"idx": 3164, "target": 0, "func": "static int mpc8_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n MPCContext * c = avctx -> priv_data ;\n GetBitContext gb2 , * gb = & gb2 ;\n int i , j , k , ch , cnt , res , t ;\n Band * bands = c -> bands ;\n int off ;\n int maxband , keyframe ;\n int last [ 2 ] ;\n frame -> nb_samples = MPC_FRAME_SIZE ;\n if ( ( res = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return res ;\n }\n keyframe = c -> cur_frame == 0 ;\n if ( keyframe ) {\n memset ( c -> Q , 0 , sizeof ( c -> Q ) ) ;\n c -> last_bits_used = 0 ;\n }\n init_get_bits ( gb , buf , buf_size * 8 ) ;\n skip_bits ( gb , c -> last_bits_used & 7 ) ;\n if ( keyframe ) maxband = mpc8_get_mod_golomb ( gb , c -> maxbands + 1 ) ;\n else {\n maxband = c -> last_max_band + get_vlc2 ( gb , band_vlc . table , MPC8_BANDS_BITS , 2 ) ;\n if ( maxband > 32 ) maxband -= 33 ;\n }\n if ( maxband > c -> maxbands + 1 ) return AVERROR_INVALIDDATA ;\n c -> last_max_band = maxband ;\n if ( maxband ) {\n last [ 0 ] = last [ 1 ] = 0 ;\n for ( i = maxband - 1 ;\n i >= 0 ;\n i -- ) {\n for ( ch = 0 ;\n ch < 2 ;\n ch ++ ) {\n last [ ch ] = get_vlc2 ( gb , res_vlc [ last [ ch ] > 2 ] . table , MPC8_RES_BITS , 2 ) + last [ ch ] ;\n if ( last [ ch ] > 15 ) last [ ch ] -= 17 ;\n bands [ i ] . res [ ch ] = last [ ch ] ;\n }\n }\n if ( c -> MSS ) {\n int mask ;\n cnt = 0 ;\n for ( i = 0 ;\n i < maxband ;\n i ++ ) if ( bands [ i ] . res [ 0 ] || bands [ i ] . res [ 1 ] ) cnt ++ ;\n t = mpc8_get_mod_golomb ( gb , cnt ) ;\n mask = mpc8_get_mask ( gb , cnt , t ) ;\n for ( i = maxband - 1 ;\n i >= 0 ;\n i -- ) if ( bands [ i ] . res [ 0 ] || bands [ i ] . res [ 1 ] ) {\n bands [ i ] . msf = mask & 1 ;\n mask >>= 1 ;\n }\n }\n }\n for ( i = maxband ;\n i < c -> maxbands ;\n i ++ ) bands [ i ] . res [ 0 ] = bands [ i ] . res [ 1 ] = 0 ;\n if ( keyframe ) {\n for ( i = 0 ;\n i < 32 ;\n i ++ ) c -> oldDSCF [ 0 ] [ i ] = c -> oldDSCF [ 1 ] [ i ] = 1 ;\n }\n for ( i = 0 ;\n i < maxband ;\n i ++ ) {\n if ( bands [ i ] . res [ 0 ] || bands [ i ] . res [ 1 ] ) {\n cnt = ! ! bands [ i ] . res [ 0 ] + ! ! bands [ i ] . res [ 1 ] - 1 ;\n if ( cnt >= 0 ) {\n t = get_vlc2 ( gb , scfi_vlc [ cnt ] . table , scfi_vlc [ cnt ] . bits , 1 ) ;\n if ( bands [ i ] . res [ 0 ] ) bands [ i ] . scfi [ 0 ] = t >> ( 2 * cnt ) ;\n if ( bands [ i ] . res [ 1 ] ) bands [ i ] . scfi [ 1 ] = t & 3 ;\n }\n }\n }\n for ( i = 0 ;\n i < maxband ;\n i ++ ) {\n for ( ch = 0 ;\n ch < 2 ;\n ch ++ ) {\n if ( ! bands [ i ] . res [ ch ] ) continue ;\n if ( c -> oldDSCF [ ch ] [ i ] ) {\n bands [ i ] . scf_idx [ ch ] [ 0 ] = get_bits ( gb , 7 ) - 6 ;\n c -> oldDSCF [ ch ] [ i ] = 0 ;\n }\n else {\n t = get_vlc2 ( gb , dscf_vlc [ 1 ] . table , MPC8_DSCF1_BITS , 2 ) ;\n if ( t == 64 ) t += get_bits ( gb , 6 ) ;\n bands [ i ] . scf_idx [ ch ] [ 0 ] = ( ( bands [ i ] . scf_idx [ ch ] [ 2 ] + t - 25 ) & 0x7F ) - 6 ;\n }\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n if ( ( bands [ i ] . scfi [ ch ] << j ) & 2 ) bands [ i ] . scf_idx [ ch ] [ j + 1 ] = bands [ i ] . scf_idx [ ch ] [ j ] ;\n else {\n t = get_vlc2 ( gb , dscf_vlc [ 0 ] . table , MPC8_DSCF0_BITS , 2 ) ;\n if ( t == 31 ) t = 64 + get_bits ( gb , 6 ) ;\n bands [ i ] . scf_idx [ ch ] [ j + 1 ] = ( ( bands [ i ] . scf_idx [ ch ] [ j ] + t - 25 ) & 0x7F ) - 6 ;\n }\n }\n }\n }\n for ( i = 0 , off = 0 ;\n i < maxband ;\n i ++ , off += SAMPLES_PER_BAND ) {\n for ( ch = 0 ;\n ch < 2 ;\n ch ++ ) {\n res = bands [ i ] . res [ ch ] ;\n switch ( res ) {\n case - 1 : for ( j = 0 ;\n j < SAMPLES_PER_BAND ;\n j ++ ) c -> Q [ ch ] [ off + j ] = ( av_lfg_get ( & c -> rnd ) & 0x3FC ) - 510 ;\n break ;\n case 0 : break ;\n case 1 : for ( j = 0 ;\n j < SAMPLES_PER_BAND ;\n j += SAMPLES_PER_BAND / 2 ) {\n cnt = get_vlc2 ( gb , q1_vlc . table , MPC8_Q1_BITS , 2 ) ;\n t = mpc8_get_mask ( gb , 18 , cnt ) ;\n for ( k = 0 ;\n k < SAMPLES_PER_BAND / 2 ;\n k ++ , t <<= 1 ) c -> Q [ ch ] [ off + j + k ] = ( t & 0x20000 ) ? ( get_bits1 ( gb ) << 1 ) - 1 : 0 ;\n }\n break ;\n case 2 : cnt = 6 ;\n for ( j = 0 ;\n j < SAMPLES_PER_BAND ;\n j += 3 ) {\n t = get_vlc2 ( gb , q2_vlc [ cnt > 3 ] . table , MPC8_Q2_BITS , 2 ) ;\n c -> Q [ ch ] [ off + j + 0 ] = mpc8_idx50 [ t ] ;\n c -> Q [ ch ] [ off + j + 1 ] = mpc8_idx51 [ t ] ;\n c -> Q [ ch ] [ off + j + 2 ] = mpc8_idx52 [ t ] ;\n cnt = ( cnt >> 1 ) + mpc8_huffq2 [ t ] ;\n }\n break ;\n case 3 : case 4 : for ( j = 0 ;\n j < SAMPLES_PER_BAND ;\n j += 2 ) {\n t = get_vlc2 ( gb , q3_vlc [ res - 3 ] . table , MPC8_Q3_BITS , 2 ) + q3_offsets [ res - 3 ] ;\n c -> Q [ ch ] [ off + j + 1 ] = t >> 4 ;\n c -> Q [ ch ] [ off + j + 0 ] = ( t & 8 ) ? ( t & 0xF ) - 16 : ( t & 0xF ) ;\n }\n break ;\n case 5 : case 6 : case 7 : case 8 : cnt = 2 * mpc8_thres [ res ] ;\n for ( j = 0 ;\n j < SAMPLES_PER_BAND ;\n j ++ ) {\n t = get_vlc2 ( gb , quant_vlc [ res - 5 ] [ cnt > mpc8_thres [ res ] ] . table , quant_vlc [ res - 5 ] [ cnt > mpc8_thres [ res ] ] . bits , 2 ) + quant_offsets [ res - 5 ] ;\n c -> Q [ ch ] [ off + j ] = t ;\n cnt = ( cnt >> 1 ) + FFABS ( c -> Q [ ch ] [ off + j ] ) ;\n }\n break ;\n default : for ( j = 0 ;\n j < SAMPLES_PER_BAND ;\n j ++ ) {\n c -> Q [ ch ] [ off + j ] = get_vlc2 ( gb , q9up_vlc . table , MPC8_Q9UP_BITS , 2 ) ;\n if ( res != 9 ) {\n c -> Q [ ch ] [ off + j ] <<= res - 9 ;\n c -> Q [ ch ] [ off + j ] |= get_bits ( gb , res - 9 ) ;\n }\n c -> Q [ ch ] [ off + j ] -= ( 1 << ( res - 2 ) ) - 1 ;\n }\n }\n }\n }\n ff_mpc_dequantize_and_synth ( c , maxband - 1 , ( int16_t * * ) frame -> extended_data , avctx -> channels ) ;\n c -> cur_frame ++ ;\n c -> last_bits_used = get_bits_count ( gb ) ;\n if ( get_bits_left ( gb ) < 8 ) c -> last_bits_used = buf_size << 3 ;\n if ( c -> cur_frame >= c -> frames ) c -> cur_frame = 0 ;\n * got_frame_ptr = 1 ;\n return c -> cur_frame ? c -> last_bits_used >> 3 : buf_size ;\n }"}
{"idx": 3165, "target": 0, "func": "wtap_open_return_val ascend_open ( wtap * wth , int * err , gchar * * err_info ) {\n gint64 offset ;\n ws_statb64 statbuf ;\n ascend_t * ascend ;\n wth -> priv = NULL ;\n offset = ascend_seek ( wth , err , err_info ) ;\n if ( offset == - 1 ) {\n if ( * err != 0 && * err != WTAP_ERR_SHORT_READ ) return WTAP_OPEN_ERROR ;\n return WTAP_OPEN_NOT_MINE ;\n }\n init_parse_ascend ( ) ;\n if ( ! check_ascend ( wth -> fh , & wth -> phdr ) ) {\n return WTAP_OPEN_NOT_MINE ;\n }\n wth -> file_type_subtype = WTAP_FILE_TYPE_SUBTYPE_ASCEND ;\n switch ( wth -> phdr . pseudo_header . ascend . type ) {\n case ASCEND_PFX_ISDN_X : case ASCEND_PFX_ISDN_R : wth -> file_encap = WTAP_ENCAP_ISDN ;\n break ;\n case ASCEND_PFX_ETHER : wth -> file_encap = WTAP_ENCAP_ETHERNET ;\n break ;\n default : wth -> file_encap = WTAP_ENCAP_ASCEND ;\n }\n wth -> snapshot_length = ASCEND_MAX_PKT_LEN ;\n wth -> subtype_read = ascend_read ;\n wth -> subtype_seek_read = ascend_seek_read ;\n ascend = ( ascend_t * ) g_malloc ( sizeof ( ascend_t ) ) ;\n wth -> priv = ( void * ) ascend ;\n ascend -> next_packet_seek_start = offset ;\n if ( wtap_fstat ( wth , & statbuf , err ) == - 1 ) {\n return WTAP_OPEN_ERROR ;\n }\n ascend -> inittime = statbuf . st_ctime ;\n ascend -> adjusted = FALSE ;\n wth -> file_tsprec = WTAP_TSPREC_USEC ;\n init_parse_ascend ( ) ;\n return WTAP_OPEN_MINE ;\n }"}
{"idx": 3166, "target": 0, "func": "static void h245_init ( void ) {\n if ( h245_pending_olc_reqs ) g_hash_table_destroy ( h245_pending_olc_reqs ) ;\n h245_pending_olc_reqs = g_hash_table_new ( g_str_hash , g_str_equal ) ;\n h223_lc_init ( ) ;\n }"}
{"idx": 3167, "target": 0, "func": "static int dissect_rsl_ie_ch_desc ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_item * ti ;\n proto_tree * ie_tree ;\n guint length ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_CH_DESC ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_ie_ch_desc , & ti , \"Channel description IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n length = tvb_get_guint8 ( tvb , offset ) ;\n proto_item_set_len ( ti , length + 2 ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_length , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_group_channel_description , tvb , offset , length , ENC_NA ) ;\n offset = offset + length ;\n return offset ;\n }"}
{"idx": 3168, "target": 0, "func": "int main ( int argc ATTRIBUTE_UNUSED , char * * argv ATTRIBUTE_UNUSED ) {\n printf ( \"%s : RelaxNG support not compiled in\\n\" , argv [ 0 ] ) ;\n return ( 0 ) ;\n }"}
{"idx": 3169, "target": 0, "func": "static void vc2_subband_dwt_53 ( VC2TransformContext * t , dwtcoef * data , ptrdiff_t stride , int width , int height ) {\n int x , y ;\n dwtcoef * synth = t -> buffer , * synthl = synth , * datal = data ;\n const ptrdiff_t synth_width = width << 1 ;\n const ptrdiff_t synth_height = height << 1 ;\n for ( y = 0 ;\n y < synth_height ;\n y ++ ) {\n for ( x = 0 ;\n x < synth_width ;\n x ++ ) synthl [ x ] = datal [ x ] << 1 ;\n synthl += synth_width ;\n datal += stride ;\n }\n synthl = synth ;\n for ( y = 0 ;\n y < synth_height ;\n y ++ ) {\n for ( x = 0 ;\n x < width - 1 ;\n x ++ ) synthl [ 2 * x + 1 ] -= ( synthl [ 2 * x ] + synthl [ 2 * x + 2 ] + 1 ) >> 1 ;\n synthl [ synth_width - 1 ] -= ( 2 * synthl [ synth_width - 2 ] + 1 ) >> 1 ;\n synthl [ 0 ] += ( 2 * synthl [ 1 ] + 2 ) >> 2 ;\n for ( x = 1 ;\n x < width - 1 ;\n x ++ ) synthl [ 2 * x ] += ( synthl [ 2 * x - 1 ] + synthl [ 2 * x + 1 ] + 2 ) >> 2 ;\n synthl [ synth_width - 2 ] += ( synthl [ synth_width - 3 ] + synthl [ synth_width - 1 ] + 2 ) >> 2 ;\n synthl += synth_width ;\n }\n synthl = synth + synth_width ;\n for ( x = 0 ;\n x < synth_width ;\n x ++ ) synthl [ x ] -= ( synthl [ x - synth_width ] + synthl [ x + synth_width ] + 1 ) >> 1 ;\n synthl = synth + ( synth_width << 1 ) ;\n for ( y = 1 ;\n y < height - 1 ;\n y ++ ) {\n for ( x = 0 ;\n x < synth_width ;\n x ++ ) synthl [ x + synth_width ] -= ( synthl [ x ] + synthl [ x + synth_width * 2 ] + 1 ) >> 1 ;\n synthl += ( synth_width << 1 ) ;\n }\n synthl = synth + ( synth_height - 1 ) * synth_width ;\n for ( x = 0 ;\n x < synth_width ;\n x ++ ) synthl [ x ] -= ( 2 * synthl [ x - synth_width ] + 1 ) >> 1 ;\n synthl = synth ;\n for ( x = 0 ;\n x < synth_width ;\n x ++ ) synthl [ x ] += ( 2 * synthl [ synth_width + x ] + 2 ) >> 2 ;\n synthl = synth + ( synth_width << 1 ) ;\n for ( y = 1 ;\n y < height - 1 ;\n y ++ ) {\n for ( x = 0 ;\n x < synth_width ;\n x ++ ) synthl [ x ] += ( synthl [ x + synth_width ] + synthl [ x - synth_width ] + 2 ) >> 2 ;\n synthl += ( synth_width << 1 ) ;\n }\n synthl = synth + ( synth_height - 2 ) * synth_width ;\n for ( x = 0 ;\n x < synth_width ;\n x ++ ) synthl [ x ] += ( synthl [ x - synth_width ] + synthl [ x + synth_width ] + 2 ) >> 2 ;\n deinterleave ( data , stride , width , height , synth ) ;\n }"}
{"idx": 3170, "target": 0, "func": "void vmmouse_set_data ( const uint32_t * data ) {\n X86CPU * cpu = X86_CPU ( current_cpu ) ;\n CPUX86State * env = & cpu -> env ;\n env -> regs [ R_EAX ] = data [ 0 ] ;\n env -> regs [ R_EBX ] = data [ 1 ] ;\n env -> regs [ R_ECX ] = data [ 2 ] ;\n env -> regs [ R_EDX ] = data [ 3 ] ;\n env -> regs [ R_ESI ] = data [ 4 ] ;\n env -> regs [ R_EDI ] = data [ 5 ] ;\n }"}
{"idx": 3171, "target": 0, "func": "static inline uint8_t motion_arg ( motion_vect mot ) {\n uint8_t ax = 8 - ( ( uint8_t ) mot . d [ 0 ] ) ;\n uint8_t ay = 8 - ( ( uint8_t ) mot . d [ 1 ] ) ;\n return ( ( ax & 15 ) << 4 ) | ( ay & 15 ) ;\n }"}
{"idx": 3172, "target": 1, "func": "static int dissect_h225_T_nsp_data ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 805 \"./asn1/h225/h225.cnf\" tvbuff_t * next_tvb = NULL ;\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , NO_BOUND , NO_BOUND , FALSE , & next_tvb ) ;\n if ( next_tvb && tvb_reported_length ( next_tvb ) ) {\n call_dissector ( ( nsp_handle ) ? nsp_handle : data_handle , next_tvb , actx -> pinfo , tree ) ;\n }\n return offset ;\n }"}
{"idx": 3173, "target": 0, "func": "static void gsm_a_dtap_cc_stat_init ( new_stat_tap_ui * new_stat , new_stat_tap_gui_init_cb gui_callback , void * gui_data ) {\n gsm_a_stat_init ( new_stat , gui_callback , gui_data , \"GSM A-I/F DTAP Call Control Statistics\" , gsm_a_dtap_msg_cc_strings ) ;\n }"}
{"idx": 3174, "target": 1, "func": "GType hb_gobject_ ## name ## _get_type ( void ) \\ {\n static gsize type_id = 0 ;\n if ( g_once_init_enter ( & type_id ) ) {\n GType id = g_boxed_type_register_static ( g_intern_static_string ( \"hb_\" # name \"_t\" ) , ( GBoxedCopyFunc ) copy_func , ( GBoxedFreeFunc ) free_func ) ;\n g_once_init_leave ( & type_id , id ) ;\n }\n return type_id ;\n \\ }\n # define HB_DEFINE_OBJECT_TYPE ( name ) HB_DEFINE_BOXED_TYPE ( name , hb_ ## name ## _reference , hb_ ## name ## _destroy ) ;\n HB_DEFINE_OBJECT_TYPE ( buffer ) HB_DEFINE_OBJECT_TYPE ( blob )"}
{"idx": 3175, "target": 0, "func": "static void copyarray ( struct pskeydict * to , struct pskeydict * from , struct garbage * tofrees ) {\n int i ;\n struct pskeyval * oldent = from -> entries ;\n * to = * from ;\n to -> entries = calloc ( to -> cnt , sizeof ( struct pskeyval ) ) ;\n for ( i = 0 ;\n i < to -> cnt ;\n ++ i ) {\n to -> entries [ i ] = oldent [ i ] ;\n if ( to -> entries [ i ] . type == ps_string || to -> entries [ i ] . type == ps_instr || to -> entries [ i ] . type == ps_lit ) to -> entries [ i ] . u . str = copy ( to -> entries [ i ] . u . str ) ;\n else if ( to -> entries [ i ] . type == ps_array || to -> entries [ i ] . type == ps_dict ) copyarray ( & to -> entries [ i ] . u . dict , & oldent [ i ] . u . dict , tofrees ) ;\n }\n collectgarbage ( tofrees , to ) ;\n }"}
{"idx": 3176, "target": 0, "func": "int gs_make_mem_device_with_copydevice ( gx_device_memory * * ppdev , const gx_device_memory * mdproto , gs_memory_t * mem , int page_device , gx_device * target ) {\n int code ;\n gx_device_memory * pdev ;\n if ( mem == 0 ) return - 1 ;\n code = gs_copydevice ( ( gx_device * * ) & pdev , ( const gx_device * ) mdproto , mem ) ;\n if ( code < 0 ) return code ;\n switch ( page_device ) {\n case - 1 : set_dev_proc ( pdev , get_page_device , gx_default_get_page_device ) ;\n break ;\n case 1 : set_dev_proc ( pdev , get_page_device , gx_page_device_get_page_device ) ;\n break ;\n }\n if ( target == 0 ) {\n if ( pdev -> color_info . depth == 1 ) {\n pdev -> cached_colors . black = 1 ;\n pdev -> cached_colors . white = 0 ;\n }\n else {\n pdev -> cached_colors . black = 0 ;\n pdev -> cached_colors . white = ( 1 << pdev -> color_info . depth ) - 1 ;\n }\n pdev -> graphics_type_tag = GS_UNKNOWN_TAG ;\n }\n else {\n gx_device_set_target ( ( gx_device_forward * ) pdev , target ) ;\n gx_device_forward_color_procs ( ( gx_device_forward * ) pdev ) ;\n gx_device_copy_color_procs ( ( gx_device * ) pdev , target ) ;\n pdev -> cached_colors = target -> cached_colors ;\n pdev -> graphics_type_tag = target -> graphics_type_tag ;\n }\n if ( pdev -> color_info . depth == 1 ) {\n gx_color_value cv [ 3 ] ;\n cv [ 0 ] = cv [ 1 ] = cv [ 2 ] = 0 ;\n gdev_mem_mono_set_inverted ( pdev , ( target == 0 || ( * dev_proc ( pdev , encode_color ) ) ( ( gx_device * ) pdev , cv ) != 0 ) ) ;\n }\n check_device_separable ( ( gx_device * ) pdev ) ;\n gx_device_fill_in_procs ( ( gx_device * ) pdev ) ;\n pdev -> band_y = 0 ;\n * ppdev = pdev ;\n return 0 ;\n }"}
{"idx": 3177, "target": 0, "func": "void rtadv_init ( struct zebra_vrf * zvrf ) {\n ;\n }"}
{"idx": 3178, "target": 0, "func": "static inline bool e1000e_postpone_interrupt ( bool * interrupt_pending , E1000IntrDelayTimer * timer ) {\n if ( timer -> running ) {\n trace_e1000e_irq_postponed_by_xitr ( timer -> delay_reg << 2 ) ;\n * interrupt_pending = true ;\n return true ;\n }\n if ( timer -> core -> mac [ timer -> delay_reg ] != 0 ) {\n e1000e_intrmgr_rearm_timer ( timer ) ;\n }\n return false ;\n }"}
{"idx": 3179, "target": 0, "func": "static int dissect_h245_INTEGER_0_16383 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 16383U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 3180, "target": 0, "func": "void ufmt_ptou ( UChar * buffer , int32_t * len , void * value , UBool uselower ) {\n int32_t i ;\n int32_t length = 0 ;\n uint8_t * ptrIdx = ( uint8_t * ) & value ;\n # if U_IS_BIG_ENDIAN for ( i = 0 ;\n i < ( int32_t ) sizeof ( void * ) ;\n i ++ ) # else for ( i = ( int32_t ) sizeof ( void * ) - 1 ;\n i >= 0 ;\n i -- ) # endif {\n uint8_t byteVal = ptrIdx [ i ] ;\n uint16_t firstNibble = ( uint16_t ) ( byteVal >> 4 ) ;\n uint16_t secondNibble = ( uint16_t ) ( byteVal & 0xF ) ;\n if ( uselower ) {\n buffer [ length ++ ] = TO_LC_DIGIT ( firstNibble ) ;\n buffer [ length ++ ] = TO_LC_DIGIT ( secondNibble ) ;\n }\n else {\n buffer [ length ++ ] = TO_UC_DIGIT ( firstNibble ) ;\n buffer [ length ++ ] = TO_UC_DIGIT ( secondNibble ) ;\n }\n }\n * len = length ;\n }"}
{"idx": 3181, "target": 0, "func": "static void insert_mark ( uintmax_t idnum , struct object_entry * oe ) {\n struct mark_set * s = marks ;\n while ( ( idnum >> s -> shift ) >= 1024 ) {\n s = pool_calloc ( 1 , sizeof ( struct mark_set ) ) ;\n s -> shift = marks -> shift + 10 ;\n s -> data . sets [ 0 ] = marks ;\n marks = s ;\n }\n while ( s -> shift ) {\n uintmax_t i = idnum >> s -> shift ;\n idnum -= i << s -> shift ;\n if ( ! s -> data . sets [ i ] ) {\n s -> data . sets [ i ] = pool_calloc ( 1 , sizeof ( struct mark_set ) ) ;\n s -> data . sets [ i ] -> shift = s -> shift - 10 ;\n }\n s = s -> data . sets [ i ] ;\n }\n if ( ! s -> data . marked [ idnum ] ) marks_set_count ++ ;\n s -> data . marked [ idnum ] = oe ;\n }"}
{"idx": 3182, "target": 0, "func": "static int dissect_h245_FECCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_FECCapability , FECCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 3183, "target": 0, "func": "int av_image_alloc ( uint8_t * pointers [ 4 ] , int linesizes [ 4 ] , int w , int h , enum PixelFormat pix_fmt , int align ) {\n int i , ret ;\n uint8_t * buf ;\n if ( ( ret = av_image_check_size ( w , h , 0 , NULL ) ) < 0 ) return ret ;\n if ( ( ret = av_image_fill_linesizes ( linesizes , pix_fmt , w ) ) < 0 ) return ret ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) linesizes [ i ] = FFALIGN ( linesizes [ i ] , align ) ;\n if ( ( ret = av_image_fill_pointers ( pointers , pix_fmt , h , NULL , linesizes ) ) < 0 ) return ret ;\n buf = av_malloc ( ret + align ) ;\n if ( ! buf ) return AVERROR ( ENOMEM ) ;\n if ( ( ret = av_image_fill_pointers ( pointers , pix_fmt , h , buf , linesizes ) ) < 0 ) {\n av_free ( buf ) ;\n return ret ;\n }\n if ( av_pix_fmt_descriptors [ pix_fmt ] . flags & PIX_FMT_PAL ) ff_set_systematic_pal2 ( ( uint32_t * ) pointers [ 1 ] , pix_fmt ) ;\n return ret ;\n }"}
{"idx": 3184, "target": 1, "func": "int xmlListPushBack ( xmlListPtr l , void * data ) {\n xmlLinkPtr lkPlace , lkNew ;\n if ( l == NULL ) return ( 0 ) ;\n lkPlace = l -> sentinel -> prev ;\n if ( NULL == ( lkNew = ( xmlLinkPtr ) xmlMalloc ( sizeof ( xmlLink ) ) ) ) {\n xmlGenericError ( xmlGenericErrorContext , \"Cannot initialize memory for new link\" ) ;\n return ( 0 ) ;\n }\n lkNew -> data = data ;\n lkNew -> next = lkPlace -> next ;\n ( lkPlace -> next ) -> prev = lkNew ;\n lkPlace -> next = lkNew ;\n lkNew -> prev = lkPlace ;\n return 1 ;\n }"}
{"idx": 3185, "target": 0, "func": "static int dissect_h225_SecurityErrors ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_SecurityErrors , SecurityErrors_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 3186, "target": 0, "func": "static void dissect_coap_opt_proxy_scheme ( tvbuff_t * tvb , proto_item * head_item , proto_tree * subtree , gint offset , gint opt_length , int hf ) {\n const guint8 * str = NULL ;\n if ( opt_length == 0 ) {\n str = nullstr ;\n }\n else {\n str = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset , opt_length , ENC_ASCII ) ;\n }\n proto_tree_add_string ( subtree , hf , tvb , offset , opt_length , str ) ;\n proto_item_append_text ( head_item , \": %s\" , str ) ;\n }"}
{"idx": 3187, "target": 0, "func": "static void set_pseudo_header_frame4 ( union wtap_pseudo_header * pseudo_header , struct frame4_rec * frame4 ) {\n guint32 StatusWord ;\n guint8 aal_type , hl_type ;\n guint16 vpi , vci ;\n pseudo_header -> atm . flags = 0 ;\n StatusWord = pletoh32 ( & frame4 -> atm_info . StatusWord ) ;\n if ( StatusWord & SW_RAW_CELL ) pseudo_header -> atm . flags |= ATM_RAW_CELL ;\n aal_type = frame4 -> atm_info . AppTrafType & ATT_AALTYPE ;\n hl_type = frame4 -> atm_info . AppTrafType & ATT_HLTYPE ;\n vpi = pletoh16 ( & frame4 -> atm_info . Vpi ) ;\n vci = pletoh16 ( & frame4 -> atm_info . Vci ) ;\n switch ( aal_type ) {\n case ATT_AAL_UNKNOWN : if ( vpi == 0 && vci == 5 ) pseudo_header -> atm . aal = AAL_SIGNALLING ;\n else pseudo_header -> atm . aal = AAL_UNKNOWN ;\n pseudo_header -> atm . type = TRAF_UNKNOWN ;\n pseudo_header -> atm . subtype = TRAF_ST_UNKNOWN ;\n break ;\n case ATT_AAL1 : pseudo_header -> atm . aal = AAL_1 ;\n pseudo_header -> atm . type = TRAF_UNKNOWN ;\n pseudo_header -> atm . subtype = TRAF_ST_UNKNOWN ;\n break ;\n case ATT_AAL3_4 : pseudo_header -> atm . aal = AAL_3_4 ;\n pseudo_header -> atm . type = TRAF_UNKNOWN ;\n pseudo_header -> atm . subtype = TRAF_ST_UNKNOWN ;\n break ;\n case ATT_AAL5 : pseudo_header -> atm . aal = AAL_5 ;\n switch ( hl_type ) {\n case ATT_HL_UNKNOWN : pseudo_header -> atm . type = TRAF_UNKNOWN ;\n pseudo_header -> atm . subtype = TRAF_ST_UNKNOWN ;\n break ;\n case ATT_HL_LLCMX : pseudo_header -> atm . type = TRAF_LLCMX ;\n pseudo_header -> atm . subtype = TRAF_ST_UNKNOWN ;\n break ;\n case ATT_HL_VCMX : pseudo_header -> atm . type = TRAF_VCMX ;\n switch ( frame4 -> atm_info . AppHLType ) {\n case AHLT_UNKNOWN : pseudo_header -> atm . subtype = TRAF_ST_UNKNOWN ;\n break ;\n case AHLT_VCMX_802_3_FCS : pseudo_header -> atm . subtype = TRAF_ST_VCMX_802_3_FCS ;\n break ;\n case AHLT_VCMX_802_4_FCS : pseudo_header -> atm . subtype = TRAF_ST_VCMX_802_4_FCS ;\n break ;\n case AHLT_VCMX_802_5_FCS : pseudo_header -> atm . subtype = TRAF_ST_VCMX_802_5_FCS ;\n break ;\n case AHLT_VCMX_FDDI_FCS : pseudo_header -> atm . subtype = TRAF_ST_VCMX_FDDI_FCS ;\n break ;\n case AHLT_VCMX_802_6_FCS : pseudo_header -> atm . subtype = TRAF_ST_VCMX_802_6_FCS ;\n break ;\n case AHLT_VCMX_802_3 : pseudo_header -> atm . subtype = TRAF_ST_VCMX_802_3 ;\n break ;\n case AHLT_VCMX_802_4 : pseudo_header -> atm . subtype = TRAF_ST_VCMX_802_4 ;\n break ;\n case AHLT_VCMX_802_5 : pseudo_header -> atm . subtype = TRAF_ST_VCMX_802_5 ;\n break ;\n case AHLT_VCMX_FDDI : pseudo_header -> atm . subtype = TRAF_ST_VCMX_FDDI ;\n break ;\n case AHLT_VCMX_802_6 : pseudo_header -> atm . subtype = TRAF_ST_VCMX_802_6 ;\n break ;\n case AHLT_VCMX_FRAGMENTS : pseudo_header -> atm . subtype = TRAF_ST_VCMX_FRAGMENTS ;\n break ;\n case AHLT_VCMX_BPDU : pseudo_header -> atm . subtype = TRAF_ST_VCMX_BPDU ;\n break ;\n default : pseudo_header -> atm . subtype = TRAF_ST_UNKNOWN ;\n break ;\n }\n break ;\n case ATT_HL_LANE : pseudo_header -> atm . type = TRAF_LANE ;\n switch ( frame4 -> atm_info . AppHLType ) {\n case AHLT_UNKNOWN : pseudo_header -> atm . subtype = TRAF_ST_UNKNOWN ;\n break ;\n case AHLT_LANE_LE_CTRL : pseudo_header -> atm . subtype = TRAF_ST_LANE_LE_CTRL ;\n break ;\n case AHLT_LANE_802_3 : pseudo_header -> atm . subtype = TRAF_ST_LANE_802_3 ;\n break ;\n case AHLT_LANE_802_5 : pseudo_header -> atm . subtype = TRAF_ST_LANE_802_5 ;\n break ;\n case AHLT_LANE_802_3_MC : pseudo_header -> atm . subtype = TRAF_ST_LANE_802_3_MC ;\n break ;\n case AHLT_LANE_802_5_MC : pseudo_header -> atm . subtype = TRAF_ST_LANE_802_5_MC ;\n break ;\n default : pseudo_header -> atm . subtype = TRAF_ST_UNKNOWN ;\n break ;\n }\n break ;\n case ATT_HL_ILMI : pseudo_header -> atm . type = TRAF_ILMI ;\n pseudo_header -> atm . subtype = TRAF_ST_UNKNOWN ;\n break ;\n case ATT_HL_FRMR : pseudo_header -> atm . type = TRAF_FR ;\n pseudo_header -> atm . subtype = TRAF_ST_UNKNOWN ;\n break ;\n case ATT_HL_SPANS : pseudo_header -> atm . type = TRAF_SPANS ;\n pseudo_header -> atm . subtype = TRAF_ST_UNKNOWN ;\n break ;\n case ATT_HL_IPSILON : pseudo_header -> atm . type = TRAF_IPSILON ;\n switch ( frame4 -> atm_info . AppHLType ) {\n case AHLT_UNKNOWN : pseudo_header -> atm . subtype = TRAF_ST_UNKNOWN ;\n break ;\n case AHLT_IPSILON_FT0 : pseudo_header -> atm . subtype = TRAF_ST_IPSILON_FT0 ;\n break ;\n case AHLT_IPSILON_FT1 : pseudo_header -> atm . subtype = TRAF_ST_IPSILON_FT1 ;\n break ;\n case AHLT_IPSILON_FT2 : pseudo_header -> atm . subtype = TRAF_ST_IPSILON_FT2 ;\n break ;\n default : pseudo_header -> atm . subtype = TRAF_ST_UNKNOWN ;\n break ;\n }\n break ;\n default : pseudo_header -> atm . type = TRAF_UNKNOWN ;\n pseudo_header -> atm . subtype = TRAF_ST_UNKNOWN ;\n break ;\n }\n break ;\n case ATT_AAL_USER : pseudo_header -> atm . aal = AAL_USER ;\n pseudo_header -> atm . type = TRAF_UNKNOWN ;\n pseudo_header -> atm . subtype = TRAF_ST_UNKNOWN ;\n break ;\n case ATT_AAL_SIGNALLING : pseudo_header -> atm . aal = AAL_SIGNALLING ;\n pseudo_header -> atm . type = TRAF_UNKNOWN ;\n pseudo_header -> atm . subtype = TRAF_ST_UNKNOWN ;\n break ;\n case ATT_OAMCELL : pseudo_header -> atm . aal = AAL_OAMCELL ;\n pseudo_header -> atm . type = TRAF_UNKNOWN ;\n pseudo_header -> atm . subtype = TRAF_ST_UNKNOWN ;\n break ;\n default : pseudo_header -> atm . aal = AAL_UNKNOWN ;\n pseudo_header -> atm . type = TRAF_UNKNOWN ;\n pseudo_header -> atm . subtype = TRAF_ST_UNKNOWN ;\n break ;\n }\n pseudo_header -> atm . vpi = vpi ;\n pseudo_header -> atm . vci = vci ;\n pseudo_header -> atm . channel = pletoh16 ( & frame4 -> atm_info . channel ) ;\n pseudo_header -> atm . cells = pletoh16 ( & frame4 -> atm_info . cells ) ;\n pseudo_header -> atm . aal5t_u2u = pletoh16 ( & frame4 -> atm_info . Trailer . aal5t_u2u ) ;\n pseudo_header -> atm . aal5t_len = pletoh16 ( & frame4 -> atm_info . Trailer . aal5t_len ) ;\n pseudo_header -> atm . aal5t_chksum = pntoh32 ( & frame4 -> atm_info . Trailer . aal5t_chksum ) ;\n }"}
{"idx": 3188, "target": 0, "func": "static uint32_t virtio_net_bad_features ( VirtIODevice * vdev ) {\n uint32_t features = 0 ;\n features |= ( 1 << VIRTIO_NET_F_MAC ) ;\n features |= ( 1 << VIRTIO_NET_F_CSUM ) ;\n features |= ( 1 << VIRTIO_NET_F_HOST_TSO4 ) ;\n features |= ( 1 << VIRTIO_NET_F_HOST_TSO6 ) ;\n features |= ( 1 << VIRTIO_NET_F_HOST_ECN ) ;\n return features ;\n }"}
{"idx": 3189, "target": 0, "func": "static gcry_error_t vsexp_sscan ( gcry_sexp_t * retsexp , size_t * erroff , const char * buffer , size_t length , int argflag , void * * arg_list , va_list arg_ptr ) {\n gcry_err_code_t err = 0 ;\n static const char tokenchars [ ] = \"abcdefghijklmnopqrstuvwxyz\" \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\" \"0123456789-./_:*+=\" ;\n const char * p ;\n size_t n ;\n const char * digptr = NULL ;\n const char * quoted = NULL ;\n const char * tokenp = NULL ;\n const char * hexfmt = NULL ;\n const char * base64 = NULL ;\n const char * disphint = NULL ;\n const char * percent = NULL ;\n int hexcount = 0 ;\n int quoted_esc = 0 ;\n int datalen = 0 ;\n size_t dummy_erroff ;\n struct make_space_ctx c ;\n int arg_counter = 0 ;\n int level = 0 ;\n if ( ! erroff ) erroff = & dummy_erroff ;\n # define ARG_NEXT ( storage , type ) \\ do \\ {\n \\ if ( ! arg_list ) \\ storage = va_arg ( arg_ptr , type ) ;\n \\ else \\ storage = * ( ( type * ) ( arg_list [ arg_counter ++ ] ) ) ;\n \\ }\n \\ while ( 0 ) # define MAKE_SPACE ( n ) do {\n \\ gpg_err_code_t _ms_err = make_space ( & c , ( n ) ) ;\n \\ if ( _ms_err ) \\ {\n \\ err = _ms_err ;\n \\ * erroff = p - buffer ;\n \\ goto leave ;\n \\ }\n \\ }\n while ( 0 ) # define STORE_LEN ( p , n ) do {\n \\ DATALEN ashort = ( n ) ;\n \\ memcpy ( ( p ) , & ashort , sizeof ( ashort ) ) ;\n \\ ( p ) += sizeof ( ashort ) ;\n \\ }\n while ( 0 ) c . allocated = length + sizeof ( DATALEN ) ;\n if ( buffer && length && gcry_is_secure ( buffer ) ) c . sexp = gcry_malloc_secure ( sizeof * c . sexp + c . allocated - 1 ) ;\n else c . sexp = gcry_malloc ( sizeof * c . sexp + c . allocated - 1 ) ;\n if ( ! c . sexp ) {\n err = gpg_err_code_from_errno ( errno ) ;\n * erroff = 0 ;\n goto leave ;\n }\n c . pos = c . sexp -> d ;\n for ( p = buffer , n = length ;\n n ;\n p ++ , n -- ) {\n if ( tokenp && ! hexfmt ) {\n if ( strchr ( tokenchars , * p ) ) continue ;\n else {\n datalen = p - tokenp ;\n MAKE_SPACE ( datalen ) ;\n * c . pos ++ = ST_DATA ;\n STORE_LEN ( c . pos , datalen ) ;\n memcpy ( c . pos , tokenp , datalen ) ;\n c . pos += datalen ;\n tokenp = NULL ;\n }\n }\n if ( quoted ) {\n if ( quoted_esc ) {\n switch ( * p ) {\n case 'b' : case 't' : case 'v' : case 'n' : case 'f' : case 'r' : case '\"' : case '\\'' : case '\\\\' : quoted_esc = 0 ;\n break ;\n case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : if ( ! ( ( n > 2 ) && ( p [ 1 ] >= '0' ) && ( p [ 1 ] <= '7' ) && ( p [ 2 ] >= '0' ) && ( p [ 2 ] <= '7' ) ) ) {\n * erroff = p - buffer ;\n err = GPG_ERR_SEXP_BAD_QUOTATION ;\n goto leave ;\n }\n p += 2 ;\n n -= 2 ;\n quoted_esc = 0 ;\n break ;\n case 'x' : if ( ! ( ( n > 2 ) && hexdigitp ( p + 1 ) && hexdigitp ( p + 2 ) ) ) {\n * erroff = p - buffer ;\n err = GPG_ERR_SEXP_BAD_QUOTATION ;\n goto leave ;\n }\n p += 2 ;\n n -= 2 ;\n quoted_esc = 0 ;\n break ;\n case '\\r' : if ( n && ( p [ 1 ] == '\\n' ) ) {\n p ++ ;\n n -- ;\n }\n quoted_esc = 0 ;\n break ;\n case '\\n' : if ( n && ( p [ 1 ] == '\\r' ) ) {\n p ++ ;\n n -- ;\n }\n quoted_esc = 0 ;\n break ;\n default : * erroff = p - buffer ;\n err = GPG_ERR_SEXP_BAD_QUOTATION ;\n goto leave ;\n }\n }\n else if ( * p == '\\\\' ) quoted_esc = 1 ;\n else if ( * p == '\\\"' ) {\n unsigned char * save ;\n size_t len ;\n quoted ++ ;\n MAKE_SPACE ( p - quoted ) ;\n * c . pos ++ = ST_DATA ;\n save = c . pos ;\n STORE_LEN ( c . pos , 0 ) ;\n len = unquote_string ( quoted , p - quoted , c . pos ) ;\n c . pos += len ;\n STORE_LEN ( save , len ) ;\n quoted = NULL ;\n }\n }\n else if ( hexfmt ) {\n if ( isxdigit ( * p ) ) hexcount ++ ;\n else if ( * p == '#' ) {\n if ( ( hexcount & 1 ) ) {\n * erroff = p - buffer ;\n err = GPG_ERR_SEXP_ODD_HEX_NUMBERS ;\n goto leave ;\n }\n datalen = hexcount / 2 ;\n MAKE_SPACE ( datalen ) ;\n * c . pos ++ = ST_DATA ;\n STORE_LEN ( c . pos , datalen ) ;\n for ( hexfmt ++ ;\n hexfmt < p ;\n hexfmt ++ ) {\n int tmpc ;\n if ( whitespacep ( hexfmt ) ) continue ;\n tmpc = hextonibble ( * ( const unsigned char * ) hexfmt ) ;\n for ( hexfmt ++ ;\n hexfmt < p && whitespacep ( hexfmt ) ;\n hexfmt ++ ) ;\n if ( hexfmt < p ) {\n tmpc *= 16 ;\n tmpc += hextonibble ( * ( const unsigned char * ) hexfmt ) ;\n }\n * c . pos ++ = tmpc ;\n }\n hexfmt = NULL ;\n }\n else if ( ! whitespacep ( p ) ) {\n * erroff = p - buffer ;\n err = GPG_ERR_SEXP_BAD_HEX_CHAR ;\n goto leave ;\n }\n }\n else if ( base64 ) {\n if ( * p == '|' ) base64 = NULL ;\n }\n else if ( digptr ) {\n if ( digitp ( p ) ) ;\n else if ( * p == ':' ) {\n datalen = atoi ( digptr ) ;\n digptr = NULL ;\n if ( datalen > n - 1 ) {\n * erroff = p - buffer ;\n err = GPG_ERR_SEXP_STRING_TOO_LONG ;\n goto leave ;\n }\n MAKE_SPACE ( datalen ) ;\n * c . pos ++ = ST_DATA ;\n STORE_LEN ( c . pos , datalen ) ;\n memcpy ( c . pos , p + 1 , datalen ) ;\n c . pos += datalen ;\n n -= datalen ;\n p += datalen ;\n }\n else if ( * p == '\\\"' ) {\n digptr = NULL ;\n quoted = p ;\n quoted_esc = 0 ;\n }\n else if ( * p == '#' ) {\n digptr = NULL ;\n hexfmt = p ;\n hexcount = 0 ;\n }\n else if ( * p == '|' ) {\n digptr = NULL ;\n base64 = p ;\n }\n else {\n * erroff = p - buffer ;\n err = GPG_ERR_SEXP_INV_LEN_SPEC ;\n goto leave ;\n }\n }\n else if ( percent ) {\n if ( * p == 'm' || * p == 'M' ) {\n gcry_mpi_t m ;\n size_t nm = 0 ;\n int mpifmt = * p == 'm' ? GCRYMPI_FMT_STD : GCRYMPI_FMT_USG ;\n ARG_NEXT ( m , gcry_mpi_t ) ;\n if ( gcry_mpi_get_flag ( m , GCRYMPI_FLAG_OPAQUE ) ) {\n void * mp ;\n unsigned int nbits ;\n mp = gcry_mpi_get_opaque ( m , & nbits ) ;\n nm = ( nbits + 7 ) / 8 ;\n if ( mp && nm ) {\n MAKE_SPACE ( nm ) ;\n if ( ! gcry_is_secure ( c . sexp -> d ) && gcry_mpi_get_flag ( m , GCRYMPI_FLAG_SECURE ) ) {\n gcry_sexp_t newsexp ;\n byte * newhead ;\n newsexp = gcry_malloc_secure ( sizeof * newsexp + c . allocated - 1 ) ;\n if ( ! newsexp ) {\n err = gpg_err_code_from_errno ( errno ) ;\n goto leave ;\n }\n newhead = newsexp -> d ;\n memcpy ( newhead , c . sexp -> d , ( c . pos - c . sexp -> d ) ) ;\n c . pos = newhead + ( c . pos - c . sexp -> d ) ;\n gcry_free ( c . sexp ) ;\n c . sexp = newsexp ;\n }\n * c . pos ++ = ST_DATA ;\n STORE_LEN ( c . pos , nm ) ;\n memcpy ( c . pos , mp , nm ) ;\n c . pos += nm ;\n }\n }\n else {\n if ( gcry_mpi_print ( mpifmt , NULL , 0 , & nm , m ) ) BUG ( ) ;\n MAKE_SPACE ( nm ) ;\n if ( ! gcry_is_secure ( c . sexp -> d ) && gcry_mpi_get_flag ( m , GCRYMPI_FLAG_SECURE ) ) {\n gcry_sexp_t newsexp ;\n byte * newhead ;\n newsexp = gcry_malloc_secure ( sizeof * newsexp + c . allocated - 1 ) ;\n if ( ! newsexp ) {\n err = gpg_err_code_from_errno ( errno ) ;\n goto leave ;\n }\n newhead = newsexp -> d ;\n memcpy ( newhead , c . sexp -> d , ( c . pos - c . sexp -> d ) ) ;\n c . pos = newhead + ( c . pos - c . sexp -> d ) ;\n gcry_free ( c . sexp ) ;\n c . sexp = newsexp ;\n }\n * c . pos ++ = ST_DATA ;\n STORE_LEN ( c . pos , nm ) ;\n if ( gcry_mpi_print ( mpifmt , c . pos , nm , & nm , m ) ) BUG ( ) ;\n c . pos += nm ;\n }\n }\n else if ( * p == 's' ) {\n const char * astr ;\n size_t alen ;\n ARG_NEXT ( astr , const char * ) ;\n alen = strlen ( astr ) ;\n MAKE_SPACE ( alen ) ;\n * c . pos ++ = ST_DATA ;\n STORE_LEN ( c . pos , alen ) ;\n memcpy ( c . pos , astr , alen ) ;\n c . pos += alen ;\n }\n else if ( * p == 'b' ) {\n const char * astr ;\n int alen ;\n ARG_NEXT ( alen , int ) ;\n ARG_NEXT ( astr , const char * ) ;\n MAKE_SPACE ( alen ) ;\n if ( alen && ! gcry_is_secure ( c . sexp -> d ) && gcry_is_secure ( astr ) ) {\n gcry_sexp_t newsexp ;\n byte * newhead ;\n newsexp = gcry_malloc_secure ( sizeof * newsexp + c . allocated - 1 ) ;\n if ( ! newsexp ) {\n err = gpg_err_code_from_errno ( errno ) ;\n goto leave ;\n }\n newhead = newsexp -> d ;\n memcpy ( newhead , c . sexp -> d , ( c . pos - c . sexp -> d ) ) ;\n c . pos = newhead + ( c . pos - c . sexp -> d ) ;\n gcry_free ( c . sexp ) ;\n c . sexp = newsexp ;\n }\n * c . pos ++ = ST_DATA ;\n STORE_LEN ( c . pos , alen ) ;\n memcpy ( c . pos , astr , alen ) ;\n c . pos += alen ;\n }\n else if ( * p == 'd' ) {\n int aint ;\n size_t alen ;\n char buf [ 35 ] ;\n ARG_NEXT ( aint , int ) ;\n sprintf ( buf , \"%d\" , aint ) ;\n alen = strlen ( buf ) ;\n MAKE_SPACE ( alen ) ;\n * c . pos ++ = ST_DATA ;\n STORE_LEN ( c . pos , alen ) ;\n memcpy ( c . pos , buf , alen ) ;\n c . pos += alen ;\n }\n else if ( * p == 'u' ) {\n unsigned int aint ;\n size_t alen ;\n char buf [ 35 ] ;\n ARG_NEXT ( aint , unsigned int ) ;\n sprintf ( buf , \"%u\" , aint ) ;\n alen = strlen ( buf ) ;\n MAKE_SPACE ( alen ) ;\n * c . pos ++ = ST_DATA ;\n STORE_LEN ( c . pos , alen ) ;\n memcpy ( c . pos , buf , alen ) ;\n c . pos += alen ;\n }\n else if ( * p == 'S' ) {\n gcry_sexp_t asexp ;\n size_t alen , aoff ;\n ARG_NEXT ( asexp , gcry_sexp_t ) ;\n alen = get_internal_buffer ( asexp , & aoff ) ;\n if ( alen ) {\n MAKE_SPACE ( alen ) ;\n memcpy ( c . pos , asexp -> d + aoff , alen ) ;\n c . pos += alen ;\n }\n }\n else {\n * erroff = p - buffer ;\n err = GPG_ERR_SEXP_INV_LEN_SPEC ;\n goto leave ;\n }\n percent = NULL ;\n }\n else if ( * p == '(' ) {\n if ( disphint ) {\n * erroff = p - buffer ;\n err = GPG_ERR_SEXP_UNMATCHED_DH ;\n goto leave ;\n }\n MAKE_SPACE ( 0 ) ;\n * c . pos ++ = ST_OPEN ;\n level ++ ;\n }\n else if ( * p == ')' ) {\n if ( disphint ) {\n * erroff = p - buffer ;\n err = GPG_ERR_SEXP_UNMATCHED_DH ;\n goto leave ;\n }\n MAKE_SPACE ( 0 ) ;\n * c . pos ++ = ST_CLOSE ;\n level -- ;\n }\n else if ( * p == '\\\"' ) {\n quoted = p ;\n quoted_esc = 0 ;\n }\n else if ( * p == '#' ) {\n hexfmt = p ;\n hexcount = 0 ;\n }\n else if ( * p == '|' ) base64 = p ;\n else if ( * p == '[' ) {\n if ( disphint ) {\n * erroff = p - buffer ;\n err = GPG_ERR_SEXP_NESTED_DH ;\n goto leave ;\n }\n disphint = p ;\n }\n else if ( * p == ']' ) {\n if ( ! disphint ) {\n * erroff = p - buffer ;\n err = GPG_ERR_SEXP_UNMATCHED_DH ;\n goto leave ;\n }\n disphint = NULL ;\n }\n else if ( digitp ( p ) ) {\n if ( * p == '0' ) {\n * erroff = p - buffer ;\n err = GPG_ERR_SEXP_ZERO_PREFIX ;\n goto leave ;\n }\n digptr = p ;\n }\n else if ( strchr ( tokenchars , * p ) ) tokenp = p ;\n else if ( whitespacep ( p ) ) ;\n else if ( * p == '{\n' ) {\n * erroff = p - buffer ;\n err = GPG_ERR_SEXP_UNEXPECTED_PUNC ;\n goto leave ;\n }\n else if ( strchr ( \"&\\\\\" , * p ) ) {\n * erroff = p - buffer ;\n err = GPG_ERR_SEXP_UNEXPECTED_PUNC ;\n goto leave ;\n }\n else if ( argflag && ( * p == '%' ) ) percent = p ;\n else {\n * erroff = p - buffer ;\n err = GPG_ERR_SEXP_BAD_CHARACTER ;\n goto leave ;\n }\n }\n MAKE_SPACE ( 0 ) ;\n * c . pos ++ = ST_STOP ;\n if ( level && ! err ) err = GPG_ERR_SEXP_UNMATCHED_PAREN ;\n leave : if ( err ) {\n if ( c . sexp ) {\n if ( gcry_is_secure ( c . sexp ) ) wipememory ( c . sexp , sizeof ( struct gcry_sexp ) + c . allocated - 1 ) ;\n gcry_free ( c . sexp ) ;\n }\n * retsexp = NULL ;\n }\n else * retsexp = normalize ( c . sexp ) ;\n return gcry_error ( err ) ;\n # undef MAKE_SPACE # undef STORE_LEN }"}
{"idx": 3190, "target": 0, "func": "static void virLogSourceUpdate ( virLogSourcePtr source ) {\n virLogLock ( ) ;\n if ( source -> serial < virLogFiltersSerial ) {\n unsigned int priority = virLogDefaultPriority ;\n unsigned int flags = 0 ;\n size_t i ;\n for ( i = 0 ;\n i < virLogNbFilters ;\n i ++ ) {\n if ( strstr ( source -> name , virLogFilters [ i ] -> match ) ) {\n priority = virLogFilters [ i ] -> priority ;\n flags = virLogFilters [ i ] -> flags ;\n break ;\n }\n }\n source -> priority = priority ;\n source -> flags = flags ;\n source -> serial = virLogFiltersSerial ;\n }\n virLogUnlock ( ) ;\n }"}
{"idx": 3191, "target": 0, "func": "int16 get_typlen ( Oid typid ) {\n HeapTuple tp ;\n tp = SearchSysCache1 ( TYPEOID , ObjectIdGetDatum ( typid ) ) ;\n if ( HeapTupleIsValid ( tp ) ) {\n Form_pg_type typtup = ( Form_pg_type ) GETSTRUCT ( tp ) ;\n int16 result ;\n result = typtup -> typlen ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }\n else return 0 ;\n }"}
{"idx": 3192, "target": 0, "func": "static VALUE decode_bool ( unsigned char * der , long length ) {\n const unsigned char * p = der ;\n if ( length != 3 ) ossl_raise ( eASN1Error , \"invalid length for BOOLEAN\" ) ;\n if ( p [ 0 ] != 1 || p [ 1 ] != 1 ) ossl_raise ( eASN1Error , \"invalid BOOLEAN\" ) ;\n return p [ 2 ] ? Qtrue : Qfalse ;\n }"}
{"idx": 3193, "target": 0, "func": "static void cirrus_bitblt_cputovideo_next ( CirrusVGAState * s ) {\n int copy_count ;\n uint8_t * end_ptr ;\n if ( s -> cirrus_srccounter > 0 ) {\n if ( s -> cirrus_blt_mode & CIRRUS_BLTMODE_PATTERNCOPY ) {\n cirrus_bitblt_common_patterncopy ( s ) ;\n the_end : s -> cirrus_srccounter = 0 ;\n cirrus_bitblt_reset ( s ) ;\n }\n else {\n do {\n ( * s -> cirrus_rop ) ( s , s -> cirrus_blt_dstaddr , 0 , 0 , 0 , s -> cirrus_blt_width , 1 ) ;\n cirrus_invalidate_region ( s , s -> cirrus_blt_dstaddr , 0 , s -> cirrus_blt_width , 1 ) ;\n s -> cirrus_blt_dstaddr += s -> cirrus_blt_dstpitch ;\n s -> cirrus_srccounter -= s -> cirrus_blt_srcpitch ;\n if ( s -> cirrus_srccounter <= 0 ) goto the_end ;\n end_ptr = s -> cirrus_bltbuf + s -> cirrus_blt_srcpitch ;\n copy_count = s -> cirrus_srcptr_end - end_ptr ;\n memmove ( s -> cirrus_bltbuf , end_ptr , copy_count ) ;\n s -> cirrus_srcptr = s -> cirrus_bltbuf + copy_count ;\n s -> cirrus_srcptr_end = s -> cirrus_bltbuf + s -> cirrus_blt_srcpitch ;\n }\n while ( s -> cirrus_srcptr >= s -> cirrus_srcptr_end ) ;\n }\n }\n }"}
{"idx": 3194, "target": 0, "func": "static void cmd_network_add ( const char * data ) {\n cmd_network_add_modify ( data , TRUE ) ;\n }"}
{"idx": 3195, "target": 0, "func": "int ff_ivi_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n IVI45DecContext * ctx = avctx -> priv_data ;\n const uint8_t * buf = avpkt -> data ;\n AVFrame * frame = data ;\n int buf_size = avpkt -> size ;\n int result , p , b ;\n init_get_bits ( & ctx -> gb , buf , buf_size * 8 ) ;\n ctx -> frame_data = buf ;\n ctx -> frame_size = buf_size ;\n result = ctx -> decode_pic_hdr ( ctx , avctx ) ;\n if ( result ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error while decoding picture header: %d\\n\" , result ) ;\n return - 1 ;\n }\n if ( ctx -> gop_invalid ) return AVERROR_INVALIDDATA ;\n if ( ctx -> gop_flags & IVI5_IS_PROTECTED ) {\n av_log ( avctx , AV_LOG_ERROR , \"Password-protected clip!\\n\" ) ;\n return - 1 ;\n }\n ctx -> switch_buffers ( ctx ) ;\n if ( ctx -> is_nonnull_frame ( ctx ) ) {\n for ( p = 0 ;\n p < 3 ;\n p ++ ) {\n for ( b = 0 ;\n b < ctx -> planes [ p ] . num_bands ;\n b ++ ) {\n result = decode_band ( ctx , & ctx -> planes [ p ] . bands [ b ] , avctx ) ;\n if ( result ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error while decoding band: %d, plane: %d\\n\" , b , p ) ;\n return - 1 ;\n }\n }\n }\n }\n if ( avctx -> codec_id == AV_CODEC_ID_INDEO4 && ctx -> frame_type == 0 ) {\n while ( get_bits ( & ctx -> gb , 8 ) ) ;\n skip_bits_long ( & ctx -> gb , 64 ) ;\n if ( get_bits_left ( & ctx -> gb ) > 18 && show_bits ( & ctx -> gb , 18 ) == 0x3FFF8 ) av_log ( avctx , AV_LOG_ERROR , \"Buffer contains IP frames!\\n\" ) ;\n }\n avcodec_set_dimensions ( avctx , ctx -> planes [ 0 ] . width , ctx -> planes [ 0 ] . height ) ;\n if ( ( result = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return result ;\n }\n if ( ctx -> is_scalable ) {\n if ( avctx -> codec_id == AV_CODEC_ID_INDEO4 ) ff_ivi_recompose_haar ( & ctx -> planes [ 0 ] , frame -> data [ 0 ] , frame -> linesize [ 0 ] ) ;\n else ff_ivi_recompose53 ( & ctx -> planes [ 0 ] , frame -> data [ 0 ] , frame -> linesize [ 0 ] ) ;\n }\n else {\n ivi_output_plane ( & ctx -> planes [ 0 ] , frame -> data [ 0 ] , frame -> linesize [ 0 ] ) ;\n }\n ivi_output_plane ( & ctx -> planes [ 2 ] , frame -> data [ 1 ] , frame -> linesize [ 1 ] ) ;\n ivi_output_plane ( & ctx -> planes [ 1 ] , frame -> data [ 2 ] , frame -> linesize [ 2 ] ) ;\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 3196, "target": 0, "func": "int mpi_is_neg ( MPI a ) {\n return a -> sign ;\n }"}
{"idx": 3197, "target": 1, "func": "void ff_fix_long_p_mvs ( MpegEncContext * s ) {\n MotionEstContext * const c = & s -> me ;\n const int f_code = s -> f_code ;\n int y , range ;\n assert ( s -> pict_type == AV_PICTURE_TYPE_P ) ;\n range = ( ( ( s -> out_format == FMT_MPEG1 || s -> msmpeg4_version ) ? 8 : 16 ) << f_code ) ;\n assert ( range <= 16 || ! s -> msmpeg4_version ) ;\n assert ( range <= 256 || ! ( s -> codec_id == AV_CODEC_ID_MPEG2VIDEO && s -> avctx -> strict_std_compliance >= FF_COMPLIANCE_NORMAL ) ) ;\n if ( c -> avctx -> me_range && range > c -> avctx -> me_range ) range = c -> avctx -> me_range ;\n if ( s -> flags & CODEC_FLAG_4MV ) {\n const int wrap = s -> b8_stride ;\n for ( y = 0 ;\n y < s -> mb_height ;\n y ++ ) {\n int xy = y * 2 * wrap ;\n int i = y * s -> mb_stride ;\n int x ;\n for ( x = 0 ;\n x < s -> mb_width ;\n x ++ ) {\n if ( s -> mb_type [ i ] & CANDIDATE_MB_TYPE_INTER4V ) {\n int block ;\n for ( block = 0 ;\n block < 4 ;\n block ++ ) {\n int off = ( block & 1 ) + ( block >> 1 ) * wrap ;\n int mx = s -> current_picture . f . motion_val [ 0 ] [ xy + off ] [ 0 ] ;\n int my = s -> current_picture . f . motion_val [ 0 ] [ xy + off ] [ 1 ] ;\n if ( mx >= range || mx < - range || my >= range || my < - range ) {\n s -> mb_type [ i ] &= ~ CANDIDATE_MB_TYPE_INTER4V ;\n s -> mb_type [ i ] |= CANDIDATE_MB_TYPE_INTRA ;\n s -> current_picture . f . mb_type [ i ] = CANDIDATE_MB_TYPE_INTRA ;\n }\n }\n }\n xy += 2 ;\n i ++ ;\n }\n }\n }\n }"}
{"idx": 3198, "target": 0, "func": "GType hb_gobject_ ## name ## _get_type ( void ) \\ {\n static gsize type_id = 0 ;\n if ( g_once_init_enter ( & type_id ) ) {\n GType id = g_boxed_type_register_static ( g_intern_static_string ( \"hb_\" # name \"_t\" ) , ( GBoxedCopyFunc ) copy_func , ( GBoxedFreeFunc ) free_func ) ;\n g_once_init_leave ( & type_id , id ) ;\n }\n return type_id ;\n \\ }\n # define HB_DEFINE_OBJECT_TYPE ( name ) HB_DEFINE_BOXED_TYPE ( name , hb_ ## name ## _reference , hb_ ## name ## _destroy ) ;\n # define HB_DEFINE_VALUE_TYPE ( name ) static hb_ ## name ## _t * _hb_ ## name ## _reference ( const hb_ ## name ## _t * l ) {\n hb_ ## name ## _t * c = ( hb_ ## name ## _t * ) calloc ( 1 , sizeof ( hb_ ## name ## _t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * l ;\n return c ;\n }\n static void _hb_ ## name ## _destroy ( hb_ ## name ## _t * l ) {\n free ( l ) ;\n }\n HB_DEFINE_BOXED_TYPE ( name , _hb_ ## name ## _reference , _hb_ ## name ## _destroy ) ;\n HB_DEFINE_OBJECT_TYPE ( buffer ) HB_DEFINE_OBJECT_TYPE ( blob ) HB_DEFINE_OBJECT_TYPE ( face ) HB_DEFINE_OBJECT_TYPE ( font ) HB_DEFINE_OBJECT_TYPE ( font_funcs ) HB_DEFINE_OBJECT_TYPE ( set ) HB_DEFINE_OBJECT_TYPE ( shape_plan ) HB_DEFINE_OBJECT_TYPE ( unicode_funcs ) HB_DEFINE_VALUE_TYPE ( feature ) HB_DEFINE_VALUE_TYPE ( glyph_info )"}
{"idx": 3199, "target": 1, "func": "void stp_print ( netdissect_options * ndo , const u_char * p , u_int length ) {\n const struct stp_bpdu_ * stp_bpdu ;\n u_int mstp_len ;\n u_int spb_len ;\n stp_bpdu = ( const struct stp_bpdu_ * ) p ;\n if ( length < 4 ) goto trunc ;\n ND_TCHECK ( stp_bpdu -> protocol_id ) ;\n if ( EXTRACT_16BITS ( & stp_bpdu -> protocol_id ) ) {\n ND_PRINT ( ( ndo , \"unknown STP version, length %u\" , length ) ) ;\n return ;\n }\n ND_TCHECK ( stp_bpdu -> protocol_version ) ;\n ND_PRINT ( ( ndo , \"STP %s\" , tok2str ( stp_proto_values , \"Unknown STP protocol (0x%02x)\" , stp_bpdu -> protocol_version ) ) ) ;\n switch ( stp_bpdu -> protocol_version ) {\n case STP_PROTO_REGULAR : case STP_PROTO_RAPID : case STP_PROTO_MSTP : case STP_PROTO_SPB : break ;\n default : return ;\n }\n ND_TCHECK ( stp_bpdu -> bpdu_type ) ;\n ND_PRINT ( ( ndo , \", %s\" , tok2str ( stp_bpdu_type_values , \"Unknown BPDU Type (0x%02x)\" , stp_bpdu -> bpdu_type ) ) ) ;\n switch ( stp_bpdu -> bpdu_type ) {\n case STP_BPDU_TYPE_CONFIG : if ( length < sizeof ( struct stp_bpdu_ ) - 1 ) {\n goto trunc ;\n }\n if ( ! stp_print_config_bpdu ( ndo , stp_bpdu , length ) ) goto trunc ;\n break ;\n case STP_BPDU_TYPE_RSTP : if ( stp_bpdu -> protocol_version == STP_PROTO_RAPID ) {\n if ( length < sizeof ( struct stp_bpdu_ ) ) {\n goto trunc ;\n }\n if ( ! stp_print_config_bpdu ( ndo , stp_bpdu , length ) ) goto trunc ;\n }\n else if ( stp_bpdu -> protocol_version == STP_PROTO_MSTP || stp_bpdu -> protocol_version == STP_PROTO_SPB ) {\n if ( length < STP_BPDU_MSTP_MIN_LEN ) {\n goto trunc ;\n }\n ND_TCHECK ( stp_bpdu -> v1_length ) ;\n if ( stp_bpdu -> v1_length != 0 ) {\n goto trunc ;\n }\n ND_TCHECK_16BITS ( p + MST_BPDU_VER3_LEN_OFFSET ) ;\n mstp_len = EXTRACT_16BITS ( p + MST_BPDU_VER3_LEN_OFFSET ) ;\n mstp_len += 2 ;\n if ( length < ( sizeof ( struct stp_bpdu_ ) + mstp_len ) ) {\n goto trunc ;\n }\n if ( ! stp_print_mstp_bpdu ( ndo , stp_bpdu , length ) ) goto trunc ;\n if ( stp_bpdu -> protocol_version == STP_PROTO_SPB ) {\n spb_len = EXTRACT_16BITS ( p + MST_BPDU_VER3_LEN_OFFSET + mstp_len ) ;\n spb_len += 2 ;\n if ( length < ( sizeof ( struct stp_bpdu_ ) + mstp_len + spb_len ) || spb_len < SPB_BPDU_MIN_LEN ) {\n goto trunc ;\n }\n if ( ! stp_print_spb_bpdu ( ndo , stp_bpdu , ( sizeof ( struct stp_bpdu_ ) + mstp_len ) ) ) goto trunc ;\n }\n }\n break ;\n case STP_BPDU_TYPE_TOPO_CHANGE : break ;\n default : break ;\n }\n return ;\n trunc : ND_PRINT ( ( ndo , \"[|stp %d]\" , length ) ) ;\n }"}
{"idx": 3200, "target": 1, "func": "static int mimic_decode_update_thread_context ( AVCodecContext * avctx , const AVCodecContext * avctx_from ) {\n MimicContext * dst = avctx -> priv_data , * src = avctx_from -> priv_data ;\n if ( avctx == avctx_from ) return 0 ;\n dst -> cur_index = src -> next_cur_index ;\n dst -> prev_index = src -> next_prev_index ;\n memcpy ( dst -> buf_ptrs , src -> buf_ptrs , sizeof ( src -> buf_ptrs ) ) ;\n memcpy ( dst -> flipped_ptrs , src -> flipped_ptrs , sizeof ( src -> flipped_ptrs ) ) ;\n memset ( & dst -> buf_ptrs [ dst -> cur_index ] , 0 , sizeof ( AVFrame ) ) ;\n return 0 ;\n }"}
{"idx": 3201, "target": 0, "func": "static void custom_full_name_skip ( va_list * va ) {\n ( void ) va_arg ( * va , GFile * ) ;\n }"}
{"idx": 3202, "target": 1, "func": "static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 3203, "target": 0, "func": "void xsltSetLoaderFunc ( xsltDocLoaderFunc f ) {\n if ( f == NULL ) xsltDocDefaultLoader = xsltDocDefaultLoaderFunc ;\n else xsltDocDefaultLoader = f ;\n }"}
{"idx": 3204, "target": 0, "func": "int proto_registrar_get_parent ( const int n ) {\n header_field_info * hfinfo ;\n PROTO_REGISTRAR_GET_NTH ( n , hfinfo ) ;\n return hfinfo -> parent ;\n }"}
{"idx": 3205, "target": 1, "func": "TEST_F ( TtsControllerTest , TestGetMatchingVoice ) {\n std : : unique_ptr < TestableTtsController > tts_controller = std : : make_unique < TestableTtsController > ( ) ;\n # if defined ( OS_CHROMEOS ) TestingPrefServiceSimple pref_service_ ;\n std : : unique_ptr < base : : DictionaryValue > lang_to_voices = std : : make_unique < base : : DictionaryValue > ( ) ;\n lang_to_voices -> SetKey ( \"es\" , base : : Value ( \"{\n\\\"name\\\":\\\"Voice8\\\",\\\"extension\\\":\\\"id8\\\"}\n\" ) ) ;\n lang_to_voices -> SetKey ( \"noLanguage\" , base : : Value ( \"{\n\\\"name\\\":\\\"Android\\\",\\\"extension\\\":\\\"\\\"}\n\" ) ) ;\n pref_service_ . registry ( ) -> RegisterDictionaryPref ( prefs : : kTextToSpeechLangToVoiceName , std : : move ( lang_to_voices ) ) ;\n tts_controller -> pref_service_ = & pref_service_ ;\n # endif {\n Utterance utterance ( nullptr ) ;\n std : : vector < VoiceData > voices ;\n EXPECT_EQ ( - 1 , tts_controller -> GetMatchingVoice ( & utterance , voices ) ) ;\n }\n {\n Utterance utterance ( nullptr ) ;\n std : : vector < VoiceData > voices ;\n voices . push_back ( VoiceData ( ) ) ;\n voices . push_back ( VoiceData ( ) ) ;\n EXPECT_EQ ( 0 , tts_controller -> GetMatchingVoice ( & utterance , voices ) ) ;\n }\n {\n Utterance utterance ( nullptr ) ;\n std : : vector < VoiceData > voices ;\n VoiceData fr_voice ;\n fr_voice . lang = \"fr\" ;\n voices . push_back ( fr_voice ) ;\n VoiceData en_voice ;\n en_voice . lang = \"en\" ;\n voices . push_back ( en_voice ) ;\n VoiceData de_voice ;\n de_voice . lang = \"de\" ;\n voices . push_back ( de_voice ) ;\n EXPECT_EQ ( 1 , tts_controller -> GetMatchingVoice ( & utterance , voices ) ) ;\n }\n {\n std : : vector < VoiceData > voices ;\n VoiceData voice0 ;\n voices . push_back ( voice0 ) ;\n VoiceData voice1 ;\n voice1 . gender = TTS_GENDER_FEMALE ;\n voices . push_back ( voice1 ) ;\n VoiceData voice2 ;\n voice2 . events . insert ( TTS_EVENT_WORD ) ;\n voices . push_back ( voice2 ) ;\n VoiceData voice3 ;\n voice3 . lang = \"de-DE\" ;\n voices . push_back ( voice3 ) ;\n VoiceData voice4 ;\n voice4 . lang = \"fr-CA\" ;\n voices . push_back ( voice4 ) ;\n VoiceData voice5 ;\n voice5 . name = \"Voice5\" ;\n voices . push_back ( voice5 ) ;\n VoiceData voice6 ;\n voice6 . extension_id = \"id6\" ;\n voices . push_back ( voice6 ) ;\n VoiceData voice7 ;\n voice7 . extension_id = \"id7\" ;\n voice7 . name = \"Voice7\" ;\n voice7 . lang = \"es-es\" ;\n voices . push_back ( voice7 ) ;\n VoiceData voice8 ;\n voice8 . extension_id = \"id8\" ;\n voice8 . name = \"Voice8\" ;\n voice8 . lang = \"es-mx\" ;\n voices . push_back ( voice8 ) ;\n VoiceData voice9 ;\n voice9 . extension_id = \"\" ;\n voice9 . name = \"Android\" ;\n voice9 . lang = \"\" ;\n voice9 . native = true ;\n voices . push_back ( voice9 ) ;\n Utterance utterance ( nullptr ) ;\n EXPECT_EQ ( 0 , tts_controller -> GetMatchingVoice ( & utterance , voices ) ) ;\n utterance . set_gender ( TTS_GENDER_FEMALE ) ;\n EXPECT_EQ ( 1 , tts_controller -> GetMatchingVoice ( & utterance , voices ) ) ;\n std : : set < TtsEventType > types ;\n types . insert ( TTS_EVENT_WORD ) ;\n utterance . set_required_event_types ( types ) ;\n EXPECT_EQ ( 2 , tts_controller -> GetMatchingVoice ( & utterance , voices ) ) ;\n utterance . set_lang ( \"de-DE\" ) ;\n EXPECT_EQ ( 3 , tts_controller -> GetMatchingVoice ( & utterance , voices ) ) ;\n utterance . set_lang ( \"fr-FR\" ) ;\n EXPECT_EQ ( 4 , tts_controller -> GetMatchingVoice ( & utterance , voices ) ) ;\n utterance . set_voice_name ( \"Voice5\" ) ;\n EXPECT_EQ ( 5 , tts_controller -> GetMatchingVoice ( & utterance , voices ) ) ;\n utterance . set_voice_name ( \"\" ) ;\n utterance . set_extension_id ( \"id6\" ) ;\n EXPECT_EQ ( 6 , tts_controller -> GetMatchingVoice ( & utterance , voices ) ) ;\n # if defined ( OS_CHROMEOS ) utterance . set_extension_id ( \"\" ) ;\n utterance . set_lang ( \"es-es\" ) ;\n EXPECT_EQ ( 7 , tts_controller -> GetMatchingVoice ( & utterance , voices ) ) ;\n utterance . set_extension_id ( \"\" ) ;\n utterance . set_lang ( \"es-ar\" ) ;\n EXPECT_EQ ( 8 , tts_controller -> GetMatchingVoice ( & utterance , voices ) ) ;\n utterance . set_voice_name ( \"Android\" ) ;\n utterance . set_extension_id ( \"\" ) ;\n utterance . set_lang ( \"\" ) ;\n EXPECT_EQ ( 9 , tts_controller -> GetMatchingVoice ( & utterance , voices ) ) ;\n # endif }\n }"}
{"idx": 3206, "target": 1, "func": "static int32_t u_scanf_simple_percent_handler ( UFILE * input , u_scanf_spec_info * info , ufmt_args * args , const UChar * fmt , int32_t * fmtConsumed , int32_t * argConverted ) {\n * argConverted = 0 ;\n if ( u_fgetc ( input ) != 0x0025 ) {\n * argConverted = - 1 ;\n }\n return 1 ;\n }"}
{"idx": 3207, "target": 0, "func": "static PyObject * string_translate ( PyStringObject * self , PyObject * args ) {\n register char * input , * output ;\n const char * table ;\n register Py_ssize_t i , c , changed = 0 ;\n PyObject * input_obj = ( PyObject * ) self ;\n const char * output_start , * del_table = NULL ;\n Py_ssize_t inlen , tablen , dellen = 0 ;\n PyObject * result ;\n int trans_table [ 256 ] ;\n PyObject * tableobj , * delobj = NULL ;\n if ( ! PyArg_UnpackTuple ( args , \"translate\" , 1 , 2 , & tableobj , & delobj ) ) return NULL ;\n if ( PyString_Check ( tableobj ) ) {\n table = PyString_AS_STRING ( tableobj ) ;\n tablen = PyString_GET_SIZE ( tableobj ) ;\n }\n else if ( tableobj == Py_None ) {\n table = NULL ;\n tablen = 256 ;\n }\n # ifdef Py_USING_UNICODE else if ( PyUnicode_Check ( tableobj ) ) {\n if ( delobj != NULL ) {\n PyErr_SetString ( PyExc_TypeError , \"deletions are implemented differently for unicode\" ) ;\n return NULL ;\n }\n return PyUnicode_Translate ( ( PyObject * ) self , tableobj , NULL ) ;\n }\n # endif else if ( PyObject_AsCharBuffer ( tableobj , & table , & tablen ) ) return NULL ;\n if ( tablen != 256 ) {\n PyErr_SetString ( PyExc_ValueError , \"translation table must be 256 characters long\" ) ;\n return NULL ;\n }\n if ( delobj != NULL ) {\n if ( PyString_Check ( delobj ) ) {\n del_table = PyString_AS_STRING ( delobj ) ;\n dellen = PyString_GET_SIZE ( delobj ) ;\n }\n # ifdef Py_USING_UNICODE else if ( PyUnicode_Check ( delobj ) ) {\n PyErr_SetString ( PyExc_TypeError , \"deletions are implemented differently for unicode\" ) ;\n return NULL ;\n }\n # endif else if ( PyObject_AsCharBuffer ( delobj , & del_table , & dellen ) ) return NULL ;\n }\n else {\n del_table = NULL ;\n dellen = 0 ;\n }\n inlen = PyString_GET_SIZE ( input_obj ) ;\n result = PyString_FromStringAndSize ( ( char * ) NULL , inlen ) ;\n if ( result == NULL ) return NULL ;\n output_start = output = PyString_AsString ( result ) ;\n input = PyString_AS_STRING ( input_obj ) ;\n if ( dellen == 0 && table != NULL ) {\n for ( i = inlen ;\n -- i >= 0 ;\n ) {\n c = Py_CHARMASK ( * input ++ ) ;\n if ( Py_CHARMASK ( ( * output ++ = table [ c ] ) ) != c ) changed = 1 ;\n }\n if ( changed || ! PyString_CheckExact ( input_obj ) ) return result ;\n Py_DECREF ( result ) ;\n Py_INCREF ( input_obj ) ;\n return input_obj ;\n }\n if ( table == NULL ) {\n for ( i = 0 ;\n i < 256 ;\n i ++ ) trans_table [ i ] = Py_CHARMASK ( i ) ;\n }\n else {\n for ( i = 0 ;\n i < 256 ;\n i ++ ) trans_table [ i ] = Py_CHARMASK ( table [ i ] ) ;\n }\n for ( i = 0 ;\n i < dellen ;\n i ++ ) trans_table [ ( int ) Py_CHARMASK ( del_table [ i ] ) ] = - 1 ;\n for ( i = inlen ;\n -- i >= 0 ;\n ) {\n c = Py_CHARMASK ( * input ++ ) ;\n if ( trans_table [ c ] != - 1 ) if ( Py_CHARMASK ( * output ++ = ( char ) trans_table [ c ] ) == c ) continue ;\n changed = 1 ;\n }\n if ( ! changed && PyString_CheckExact ( input_obj ) ) {\n Py_DECREF ( result ) ;\n Py_INCREF ( input_obj ) ;\n return input_obj ;\n }\n if ( inlen > 0 && _PyString_Resize ( & result , output - output_start ) ) return NULL ;\n return result ;\n }"}
{"idx": 3208, "target": 0, "func": "uint32_t mime_parse_uint ( const char * buf , const char * end ) {\n uint32_t num ;\n if ( ! buf || ( buf == end ) ) {\n return 0 ;\n }\n if ( is_digit ( * buf ) ) {\n num = * buf ++ - '0' ;\n while ( ( buf != end ) && is_digit ( * buf ) ) {\n num = ( num * 10 ) + ( * buf ++ - '0' ) ;\n }\n return num ;\n }\n else {\n num = 0 ;\n while ( ( buf != end ) && ParseRules : : is_space ( * buf ) ) {\n buf += 1 ;\n }\n while ( ( buf != end ) && is_digit ( * buf ) ) {\n num = ( num * 10 ) + ( * buf ++ - '0' ) ;\n }\n return num ;\n }\n }"}
{"idx": 3209, "target": 0, "func": "gcry_mpi_t _gcry_sexp_nth_opaque_mpi ( gcry_sexp_t list , int number ) {\n char * p ;\n size_t n ;\n gcry_mpi_t a ;\n p = gcry_sexp_nth_buffer ( list , number , & n ) ;\n if ( ! p ) return NULL ;\n a = gcry_is_secure ( list ) ? _gcry_mpi_snew ( 0 ) : _gcry_mpi_new ( 0 ) ;\n if ( a ) gcry_mpi_set_opaque ( a , p , n * 8 ) ;\n else gcry_free ( p ) ;\n return a ;\n }"}
{"idx": 3210, "target": 0, "func": "static void truncate_pack ( struct sha1file_checkpoint * checkpoint ) {\n if ( sha1file_truncate ( pack_file , checkpoint ) ) die_errno ( \"cannot truncate pack to skip duplicate\" ) ;\n pack_size = checkpoint -> offset ;\n }"}
{"idx": 3211, "target": 0, "func": "int X509_CRL_sign_ctx ( X509_CRL * x , EVP_MD_CTX * ctx ) {\n x -> crl -> enc . modified = 1 ;\n return ASN1_item_sign_ctx ( ASN1_ITEM_rptr ( X509_CRL_INFO ) , x -> crl -> sig_alg , x -> sig_alg , x -> signature , x -> crl , ctx ) ;\n }"}
{"idx": 3212, "target": 1, "func": "static vpx_codec_err_t validate_config ( vpx_codec_alg_priv_t * ctx , const vpx_codec_enc_cfg_t * cfg , const struct vp9_extracfg * extra_cfg ) {\n RANGE_CHECK ( cfg , g_w , 1 , 65535 ) ;\n RANGE_CHECK ( cfg , g_h , 1 , 65535 ) ;\n RANGE_CHECK ( cfg , g_timebase . den , 1 , 1000000000 ) ;\n RANGE_CHECK ( cfg , g_timebase . num , 1 , cfg -> g_timebase . den ) ;\n RANGE_CHECK_HI ( cfg , g_profile , 3 ) ;\n RANGE_CHECK_HI ( cfg , rc_max_quantizer , 63 ) ;\n RANGE_CHECK_HI ( cfg , rc_min_quantizer , cfg -> rc_max_quantizer ) ;\n RANGE_CHECK_BOOL ( extra_cfg , lossless ) ;\n RANGE_CHECK ( extra_cfg , aq_mode , 0 , AQ_MODE_COUNT - 1 ) ;\n RANGE_CHECK ( extra_cfg , frame_periodic_boost , 0 , 1 ) ;\n RANGE_CHECK_HI ( cfg , g_threads , 64 ) ;\n RANGE_CHECK_HI ( cfg , g_lag_in_frames , MAX_LAG_BUFFERS ) ;\n RANGE_CHECK ( cfg , rc_end_usage , VPX_VBR , VPX_Q ) ;\n RANGE_CHECK_HI ( cfg , rc_undershoot_pct , 1000 ) ;\n RANGE_CHECK_HI ( cfg , rc_overshoot_pct , 1000 ) ;\n RANGE_CHECK_HI ( cfg , rc_2pass_vbr_bias_pct , 100 ) ;\n RANGE_CHECK ( cfg , kf_mode , VPX_KF_DISABLED , VPX_KF_AUTO ) ;\n RANGE_CHECK_BOOL ( cfg , rc_resize_allowed ) ;\n RANGE_CHECK_HI ( cfg , rc_dropframe_thresh , 100 ) ;\n RANGE_CHECK_HI ( cfg , rc_resize_up_thresh , 100 ) ;\n RANGE_CHECK_HI ( cfg , rc_resize_down_thresh , 100 ) ;\n RANGE_CHECK ( cfg , g_pass , VPX_RC_ONE_PASS , VPX_RC_LAST_PASS ) ;\n if ( cfg -> rc_resize_allowed == 1 ) {\n RANGE_CHECK ( cfg , rc_scaled_width , 1 , cfg -> g_w ) ;\n RANGE_CHECK ( cfg , rc_scaled_height , 1 , cfg -> g_h ) ;\n }\n RANGE_CHECK ( cfg , ss_number_layers , 1 , VPX_SS_MAX_LAYERS ) ;\n RANGE_CHECK ( cfg , ts_number_layers , 1 , VPX_TS_MAX_LAYERS ) ;\n if ( cfg -> ts_number_layers > 1 ) {\n unsigned int i ;\n for ( i = 1 ;\n i < cfg -> ts_number_layers ;\n ++ i ) if ( cfg -> ts_target_bitrate [ i ] < cfg -> ts_target_bitrate [ i - 1 ] ) ERROR ( \"ts_target_bitrate entries are not increasing\" ) ;\n RANGE_CHECK ( cfg , ts_rate_decimator [ cfg -> ts_number_layers - 1 ] , 1 , 1 ) ;\n for ( i = cfg -> ts_number_layers - 2 ;\n i > 0 ;\n -- i ) if ( cfg -> ts_rate_decimator [ i - 1 ] != 2 * cfg -> ts_rate_decimator [ i ] ) ERROR ( \"ts_rate_decimator factors are not powers of 2\" ) ;\n }\n # if CONFIG_SPATIAL_SVC if ( cfg -> ss_number_layers * cfg -> ts_number_layers > REF_FRAMES ) ERROR ( \"Too many layers. Maximum 8 layers could be set\" ) ;\n if ( ( cfg -> ss_number_layers > 1 || cfg -> ts_number_layers > 1 ) && cfg -> g_pass == VPX_RC_LAST_PASS ) {\n unsigned int i , alt_ref_sum = 0 ;\n for ( i = 0 ;\n i < cfg -> ss_number_layers ;\n ++ i ) {\n if ( cfg -> ss_enable_auto_alt_ref [ i ] ) ++ alt_ref_sum ;\n }\n if ( alt_ref_sum > REF_FRAMES - cfg -> ss_number_layers * cfg -> ts_number_layers ) ERROR ( \"Not enough ref buffers for svc alt ref frames\" ) ;\n if ( ( cfg -> ss_number_layers > 3 || cfg -> ss_number_layers * cfg -> ts_number_layers > 4 ) && cfg -> g_error_resilient == 0 ) ERROR ( \"Multiple frame context are not supported for more than 3 spatial \" \"layers or more than 4 spatial x temporal layers\" ) ;\n }\n # endif if ( cfg -> kf_mode != VPX_KF_DISABLED && cfg -> kf_min_dist != cfg -> kf_max_dist && cfg -> kf_min_dist > 0 ) ERROR ( \"kf_min_dist not supported in auto mode, use 0 \" \"or kf_max_dist instead.\" ) ;\n RANGE_CHECK_BOOL ( extra_cfg , enable_auto_alt_ref ) ;\n RANGE_CHECK ( extra_cfg , cpu_used , - 16 , 16 ) ;\n RANGE_CHECK_HI ( extra_cfg , noise_sensitivity , 6 ) ;\n RANGE_CHECK ( extra_cfg , tile_columns , 0 , 6 ) ;\n RANGE_CHECK ( extra_cfg , tile_rows , 0 , 2 ) ;\n RANGE_CHECK_HI ( extra_cfg , sharpness , 7 ) ;\n RANGE_CHECK ( extra_cfg , arnr_max_frames , 0 , 15 ) ;\n RANGE_CHECK_HI ( extra_cfg , arnr_strength , 6 ) ;\n RANGE_CHECK ( extra_cfg , cq_level , 0 , 63 ) ;\n RANGE_CHECK ( cfg , g_bit_depth , VPX_BITS_8 , VPX_BITS_12 ) ;\n RANGE_CHECK ( cfg , g_input_bit_depth , 8 , 12 ) ;\n RANGE_CHECK ( extra_cfg , content , VP9E_CONTENT_DEFAULT , VP9E_CONTENT_INVALID - 1 ) ;\n if ( extra_cfg -> tuning == VP8_TUNE_SSIM ) ERROR ( \"Option --tune=ssim is not currently supported in VP9.\" ) ;\n if ( cfg -> g_pass == VPX_RC_LAST_PASS ) {\n const size_t packet_sz = sizeof ( FIRSTPASS_STATS ) ;\n const int n_packets = ( int ) ( cfg -> rc_twopass_stats_in . sz / packet_sz ) ;\n const FIRSTPASS_STATS * stats ;\n if ( cfg -> rc_twopass_stats_in . buf == NULL ) ERROR ( \"rc_twopass_stats_in.buf not set.\" ) ;\n if ( cfg -> rc_twopass_stats_in . sz % packet_sz ) ERROR ( \"rc_twopass_stats_in.sz indicates truncated packet.\" ) ;\n if ( cfg -> ss_number_layers > 1 || cfg -> ts_number_layers > 1 ) {\n int i ;\n unsigned int n_packets_per_layer [ VPX_SS_MAX_LAYERS ] = {\n 0 }\n ;\n stats = cfg -> rc_twopass_stats_in . buf ;\n for ( i = 0 ;\n i < n_packets ;\n ++ i ) {\n const int layer_id = ( int ) stats [ i ] . spatial_layer_id ;\n if ( layer_id >= 0 && layer_id < ( int ) cfg -> ss_number_layers ) {\n ++ n_packets_per_layer [ layer_id ] ;\n }\n }\n for ( i = 0 ;\n i < ( int ) cfg -> ss_number_layers ;\n ++ i ) {\n unsigned int layer_id ;\n if ( n_packets_per_layer [ i ] < 2 ) {\n ERROR ( \"rc_twopass_stats_in requires at least two packets for each \" \"layer.\" ) ;\n }\n stats = ( const FIRSTPASS_STATS * ) cfg -> rc_twopass_stats_in . buf + n_packets - cfg -> ss_number_layers + i ;\n layer_id = ( int ) stats -> spatial_layer_id ;\n if ( layer_id >= cfg -> ss_number_layers || ( unsigned int ) ( stats -> count + 0.5 ) != n_packets_per_layer [ layer_id ] - 1 ) ERROR ( \"rc_twopass_stats_in missing EOS stats packet\" ) ;\n }\n }\n else {\n if ( cfg -> rc_twopass_stats_in . sz < 2 * packet_sz ) ERROR ( \"rc_twopass_stats_in requires at least two packets.\" ) ;\n stats = ( const FIRSTPASS_STATS * ) cfg -> rc_twopass_stats_in . buf + n_packets - 1 ;\n if ( ( int ) ( stats -> count + 0.5 ) != n_packets - 1 ) ERROR ( \"rc_twopass_stats_in missing EOS stats packet\" ) ;\n }\n }\n # if ! CONFIG_VP9_HIGHBITDEPTH if ( cfg -> g_profile > ( unsigned int ) PROFILE_1 ) ERROR ( \"Profile > 1 not supported in this build configuration\" ) ;\n # endif if ( cfg -> g_profile <= ( unsigned int ) PROFILE_1 && extra_cfg -> bit_depth > VPX_BITS_8 ) ERROR ( \"Codec high bit-depth not supported in profile < 2\" ) ;\n if ( cfg -> g_profile > ( unsigned int ) PROFILE_1 && extra_cfg -> bit_depth == VPX_BITS_8 ) ERROR ( \"Codec bit-depth 8 not supported in profile > 1\" ) ;\n return VPX_CODEC_OK ;\n }"}
{"idx": 3213, "target": 0, "func": "static void pfkey_insert ( struct sock * sk ) {\n struct net * net = sock_net ( sk ) ;\n struct netns_pfkey * net_pfkey = net_generic ( net , pfkey_net_id ) ;\n mutex_lock ( & pfkey_mutex ) ;\n sk_add_node_rcu ( sk , & net_pfkey -> table ) ;\n mutex_unlock ( & pfkey_mutex ) ;\n }"}
{"idx": 3214, "target": 0, "func": "SPL_METHOD ( SplDoublyLinkedList , pop ) {\n zval * value ;\n spl_dllist_object * intern ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"\" ) == FAILURE ) {\n return ;\n }\n intern = ( spl_dllist_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n value = ( zval * ) spl_ptr_llist_pop ( intern -> llist TSRMLS_CC ) ;\n if ( value == NULL ) {\n zend_throw_exception ( spl_ce_RuntimeException , \"Can't pop from an empty datastructure\" , 0 TSRMLS_CC ) ;\n return ;\n }\n RETURN_ZVAL ( value , 1 , 1 ) ;\n }"}
{"idx": 3215, "target": 0, "func": "static int dissect_h245_T_videoBackChannelSend ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_videoBackChannelSend , T_videoBackChannelSend_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 3216, "target": 1, "func": "extern int name ( int ) __THROW __exctype ( isalnum ) ;\n __exctype ( isalpha ) ;\n __exctype ( iscntrl ) ;\n __exctype ( isdigit ) ;\n __exctype ( islower ) ;\n __exctype ( isgraph ) ;\n __exctype ( isprint ) ;\n __exctype ( ispunct ) ;\n __exctype ( isspace ) ;\n __exctype ( isupper ) ;\n __exctype ( isxdigit )"}
{"idx": 3217, "target": 0, "func": "static int parse_CInGroupSortAggregSets ( tvbuff_t * tvb , packet_info * pinfo , int offset , proto_tree * parent_tree , proto_tree * pad_tree , const char * fmt , ... ) {\n guint32 cCount , i ;\n proto_item * item ;\n proto_tree * tree ;\n const char * txt ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CInGroupSortAggregSets , & item , txt ) ;\n cCount = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_cingroupsortaggregsets_count , tvb , offset , 4 , cCount ) ;\n offset += 4 ;\n for ( i = 0 ;\n i < cCount ;\n i ++ ) {\n offset = parse_CInGroupSortAggregSet ( tvb , pinfo , offset , tree , pad_tree , \"SortSets[%u]\" , i ) ;\n }\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 3218, "target": 0, "func": "TranslationBlock * tb_gen_code ( CPUArchState * env , target_ulong pc , target_ulong cs_base , int flags , int cflags ) {\n TranslationBlock * tb ;\n uint8_t * tc_ptr ;\n tb_page_addr_t phys_pc , phys_page2 ;\n target_ulong virt_page2 ;\n int code_gen_size ;\n phys_pc = get_page_addr_code ( env , pc ) ;\n tb = tb_alloc ( pc ) ;\n if ( ! tb ) {\n tb_flush ( env ) ;\n tb = tb_alloc ( pc ) ;\n tcg_ctx . tb_ctx . tb_invalidated_flag = 1 ;\n }\n tc_ptr = tcg_ctx . code_gen_ptr ;\n tb -> tc_ptr = tc_ptr ;\n tb -> cs_base = cs_base ;\n tb -> flags = flags ;\n tb -> cflags = cflags ;\n cpu_gen_code ( env , tb , & code_gen_size ) ;\n tcg_ctx . code_gen_ptr = ( void * ) ( ( ( uintptr_t ) tcg_ctx . code_gen_ptr + code_gen_size + CODE_GEN_ALIGN - 1 ) & ~ ( CODE_GEN_ALIGN - 1 ) ) ;\n virt_page2 = ( pc + tb -> size - 1 ) & TARGET_PAGE_MASK ;\n phys_page2 = - 1 ;\n if ( ( pc & TARGET_PAGE_MASK ) != virt_page2 ) {\n phys_page2 = get_page_addr_code ( env , virt_page2 ) ;\n }\n tb_link_page ( tb , phys_pc , phys_page2 ) ;\n return tb ;\n }"}
{"idx": 3219, "target": 0, "func": "static void delayed_superblock_init ( struct super_block * sb , void * unused ) {\n superblock_doinit ( sb , NULL ) ;\n }"}
{"idx": 3220, "target": 0, "func": "static void set_path ( const struct passwd * pw ) {\n int r ;\n if ( pw -> pw_uid ) r = logindefs_setenv ( \"PATH\" , \"ENV_PATH\" , _PATH_DEFPATH ) ;\n else if ( ( r = logindefs_setenv ( \"PATH\" , \"ENV_ROOTPATH\" , NULL ) ) != 0 ) r = logindefs_setenv ( \"PATH\" , \"ENV_SUPATH\" , _PATH_DEFPATH_ROOT ) ;\n if ( r != 0 ) err ( EXIT_FAILURE , _ ( \"failed to set the %s environment variable\" ) , \"PATH\" ) ;\n }"}
{"idx": 3221, "target": 0, "func": "static double calc_correction_factor ( double err_per_mb , double err_divisor , double pt_low , double pt_high , int q , vpx_bit_depth_t bit_depth ) {\n const double error_term = err_per_mb / err_divisor ;\n const double power_term = MIN ( vp9_convert_qindex_to_q ( q , bit_depth ) * 0.0125 + pt_low , pt_high ) ;\n if ( power_term < 1.0 ) assert ( error_term >= 0.0 ) ;\n return fclamp ( pow ( error_term , power_term ) , 0.05 , 5.0 ) ;\n }"}
{"idx": 3222, "target": 0, "func": "REGRESSION_TEST ( SDK_API_TSPortDescriptor ) ( RegressionTest * test , int , int * pstatus ) {\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n TSPortDescriptor port ;\n char desc [ 64 ] ;\n SDK_NetVConn_Params * params = new SDK_NetVConn_Params ( \"TSPortDescriptorAccept\" , test , pstatus ) ;\n TSCont server_cont = TSContCreate ( server_handler , TSMutexCreate ( ) ) ;\n TSCont client_cont = TSContCreate ( client_handler , TSMutexCreate ( ) ) ;\n params -> port = 54321 ;\n TSContDataSet ( server_cont , params ) ;\n TSContDataSet ( client_cont , params ) ;\n port = TSPortDescriptorParse ( nullptr ) ;\n if ( port ) {\n SDK_RPRINT ( test , \"TSPortDescriptorParse\" , \"NULL port descriptor\" , TC_FAIL , \"TSPortDescriptorParse(NULL) returned %s\" , port ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n return ;\n }\n snprintf ( desc , sizeof ( desc ) , \"%u\" , params -> port ) ;\n port = TSPortDescriptorParse ( desc ) ;\n if ( TSPortDescriptorAccept ( port , server_cont ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSPortDescriptorParse\" , \"Basic port descriptor\" , TC_FAIL , \"TSPortDescriptorParse(%s) returned TS_ERROR\" , desc ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n return ;\n }\n IpEndpoint addr ;\n ats_ip4_set ( & addr , htonl ( INADDR_LOOPBACK ) , htons ( params -> port ) ) ;\n TSNetConnect ( client_cont , & addr . sa ) ;\n }"}
{"idx": 3223, "target": 0, "func": "int tm_create_event ( tm_event_t * event ) {\n if ( ! init_done ) return TM_BADINIT ;\n return TM_ENOTIMPLEMENTED ;\n }"}
{"idx": 3224, "target": 0, "func": "static int rtp_xiph_pack_headers ( size_t room , void * p_extra , size_t i_extra , uint8_t * * p_buffer , size_t * i_buffer , uint8_t * theora_pixel_fmt ) {\n unsigned packet_size [ XIPH_MAX_HEADER_COUNT ] ;\n void * packet [ XIPH_MAX_HEADER_COUNT ] ;\n unsigned packet_count ;\n if ( xiph_SplitHeaders ( packet_size , packet , & packet_count , i_extra , p_extra ) ) return VLC_EGENERIC ;\n ;\n if ( packet_count < 3 ) return VLC_EGENERIC ;\n ;\n if ( theora_pixel_fmt != NULL ) {\n if ( packet_size [ 0 ] < 42 ) return VLC_EGENERIC ;\n * theora_pixel_fmt = ( ( ( uint8_t * ) packet [ 0 ] ) [ 41 ] >> 3 ) & 0x03 ;\n }\n unsigned length_size [ 2 ] = {\n 0 , 0 }\n ;\n for ( int i = 0 ;\n i < 2 ;\n i ++ ) {\n unsigned size = packet_size [ i ] ;\n while ( size > 0 ) {\n length_size [ i ] ++ ;\n size >>= 7 ;\n }\n }\n * i_buffer = room + 1 + length_size [ 0 ] + length_size [ 1 ] + packet_size [ 0 ] + packet_size [ 1 ] + packet_size [ 2 ] ;\n * p_buffer = malloc ( * i_buffer ) ;\n if ( * p_buffer == NULL ) return VLC_ENOMEM ;\n uint8_t * p = * p_buffer + room ;\n * p ++ = 2 ;\n for ( int i = 0 ;\n i < 2 ;\n i ++ ) {\n unsigned size = length_size [ i ] ;\n while ( size > 0 ) {\n * p = ( packet_size [ i ] >> ( 7 * ( size - 1 ) ) ) & 0x7f ;\n if ( -- size > 0 ) * p |= 0x80 ;\n p ++ ;\n }\n }\n for ( int i = 0 ;\n i < 3 ;\n i ++ ) {\n memcpy ( p , packet [ i ] , packet_size [ i ] ) ;\n p += packet_size [ i ] ;\n }\n return VLC_SUCCESS ;\n }"}
{"idx": 3225, "target": 0, "func": "inline void umtx_initOnce ( UInitOnce & uio , void ( U_CALLCONV * fp ) ( UErrorCode & ) , UErrorCode & errCode ) {\n if ( U_FAILURE ( errCode ) ) {\n return ;\n }\n if ( umtx_loadAcquire ( uio . fState ) != 2 && umtx_initImplPreInit ( uio ) ) {\n ( * fp ) ( errCode ) ;\n uio . fErrCode = errCode ;\n umtx_initImplPostInit ( uio ) ;\n }\n else {\n if ( U_FAILURE ( uio . fErrCode ) ) {\n errCode = uio . fErrCode ;\n }\n }\n }"}
{"idx": 3226, "target": 0, "func": "static void dumpDatabases ( PGconn * conn ) {\n PGresult * res ;\n int i ;\n if ( server_version >= 70100 ) res = executeQuery ( conn , \"SELECT datname FROM pg_database WHERE datallowconn ORDER BY 1\" ) ;\n else res = executeQuery ( conn , \"SELECT datname FROM pg_database ORDER BY 1\" ) ;\n for ( i = 0 ;\n i < PQntuples ( res ) ;\n i ++ ) {\n int ret ;\n char * dbname = PQgetvalue ( res , i , 0 ) ;\n PQExpBufferData connectbuf ;\n if ( verbose ) fprintf ( stderr , _ ( \"%s: dumping database \\\"%s\\\"...\\n\" ) , progname , dbname ) ;\n initPQExpBuffer ( & connectbuf ) ;\n appendPsqlMetaConnect ( & connectbuf , dbname ) ;\n fprintf ( OPF , \"%s\\n\" , connectbuf . data ) ;\n termPQExpBuffer ( & connectbuf ) ;\n fprintf ( OPF , \"SET default_transaction_read_only = off;\n\\n\\n\" ) ;\n if ( filename ) fclose ( OPF ) ;\n ret = runPgDump ( dbname ) ;\n if ( ret != 0 ) {\n fprintf ( stderr , _ ( \"%s: pg_dump failed on database \\\"%s\\\", exiting\\n\" ) , progname , dbname ) ;\n exit_nicely ( 1 ) ;\n }\n if ( filename ) {\n OPF = fopen ( filename , PG_BINARY_A ) ;\n if ( ! OPF ) {\n fprintf ( stderr , _ ( \"%s: could not re-open the output file \\\"%s\\\": %s\\n\" ) , progname , filename , strerror ( errno ) ) ;\n exit_nicely ( 1 ) ;\n }\n }\n }\n PQclear ( res ) ;\n }"}
{"idx": 3227, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ChooserDialogViewTest , ClickStyledLabelLink ) {\n EXPECT_CALL ( * mock_chooser_controller_ , OpenHelpCenterUrl ( ) ) . Times ( 1 ) ;\n chooser_dialog_view_ -> StyledLabelLinkClicked ( nullptr , gfx : : Range ( ) , 0 ) ;\n }"}
{"idx": 3228, "target": 1, "func": "SPL_METHOD ( SplFileObject , setMaxLineLen ) {\n long max_len ;\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"l\" , & max_len ) == FAILURE ) {\n return ;\n }\n if ( max_len < 0 ) {\n zend_throw_exception_ex ( spl_ce_DomainException , 0 TSRMLS_CC , \"Maximum line length must be greater than or equal zero\" ) ;\n return ;\n }\n intern -> u . file . max_line_len = max_len ;\n }"}
{"idx": 3229, "target": 0, "func": "xmlListPtr xmlListDup ( const xmlListPtr old ) {\n xmlListPtr cur ;\n if ( old == NULL ) return ( NULL ) ;\n if ( NULL == ( cur = xmlListCreate ( NULL , old -> linkCompare ) ) ) return ( NULL ) ;\n if ( 0 != xmlListCopy ( cur , old ) ) return NULL ;\n return cur ;\n }"}
{"idx": 3230, "target": 0, "func": "int qemuMonitorJSONSetBalloon ( qemuMonitorPtr mon , unsigned long newmem ) {\n int ret ;\n virJSONValuePtr cmd = qemuMonitorJSONMakeCommand ( \"balloon\" , \"U:value\" , ( ( unsigned long long ) newmem ) * 1024 , NULL ) ;\n virJSONValuePtr reply = NULL ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) {\n if ( qemuMonitorJSONHasError ( reply , \"DeviceNotActive\" ) || qemuMonitorJSONHasError ( reply , \"KVMMissingCap\" ) ) goto cleanup ;\n ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n if ( ret == 0 ) ret = 1 ;\n }\n cleanup : virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 3231, "target": 0, "func": "static void dissect_zcl_energy_phase ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_energy_phase_id , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_macro_phase_id , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_expect_duration , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_peak_power , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_energy , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_max_active_delay , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n }"}
{"idx": 3232, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( ExtensionPreferenceApiTest , MAYBE_Standard ) {\n PrefService * prefs = profile_ -> GetPrefs ( ) ;\n prefs -> SetBoolean ( prefs : : kAlternateErrorPagesEnabled , false ) ;\n prefs -> SetBoolean ( autofill : : prefs : : kAutofillEnabled , false ) ;\n prefs -> SetBoolean ( autofill : : prefs : : kAutofillCreditCardEnabled , false ) ;\n prefs -> SetBoolean ( autofill : : prefs : : kAutofillProfileEnabled , false ) ;\n prefs -> SetBoolean ( prefs : : kBlockThirdPartyCookies , true ) ;\n prefs -> SetBoolean ( prefs : : kEnableHyperlinkAuditing , false ) ;\n prefs -> SetBoolean ( prefs : : kEnableReferrers , false ) ;\n prefs -> SetBoolean ( prefs : : kOfferTranslateEnabled , false ) ;\n prefs -> SetInteger ( prefs : : kNetworkPredictionOptions , chrome_browser_net : : NETWORK_PREDICTION_NEVER ) ;\n prefs -> SetBoolean ( password_manager : : prefs : : kCredentialsEnableService , false ) ;\n prefs -> SetBoolean ( prefs : : kSafeBrowsingEnabled , false ) ;\n prefs -> SetBoolean ( prefs : : kSearchSuggestEnabled , false ) ;\n prefs -> SetBoolean ( prefs : : kWebRTCMultipleRoutesEnabled , false ) ;\n prefs -> SetBoolean ( prefs : : kWebRTCNonProxiedUdpEnabled , false ) ;\n prefs -> SetString ( prefs : : kWebRTCIPHandlingPolicy , content : : kWebRTCIPHandlingDefaultPublicInterfaceOnly ) ;\n const char kExtensionPath [ ] = \"preference/standard\" ;\n EXPECT_TRUE ( RunExtensionSubtest ( kExtensionPath , \"test.html\" ) ) << message_ ;\n CheckPreferencesSet ( ) ;\n ReloadExtension ( last_loaded_extension_id ( ) ) ;\n CheckPreferencesSet ( ) ;\n extensions : : TestExtensionRegistryObserver observer ( extensions : : ExtensionRegistry : : Get ( profile_ ) , last_loaded_extension_id ( ) ) ;\n UninstallExtension ( last_loaded_extension_id ( ) ) ;\n observer . WaitForExtensionUninstalled ( ) ;\n CheckPreferencesCleared ( ) ;\n LoadExtension ( test_data_dir_ . AppendASCII ( kExtensionPath ) ) ;\n CheckPreferencesCleared ( ) ;\n }"}
{"idx": 3233, "target": 0, "func": "bool sp_revoke_privileges ( THD * thd , const char * sp_db , const char * sp_name , bool is_proc ) {\n uint counter , revoked ;\n int result ;\n TABLE_LIST tables [ GRANT_TABLES ] ;\n HASH * hash = is_proc ? & proc_priv_hash : & func_priv_hash ;\n Silence_routine_definer_errors error_handler ;\n bool save_binlog_row_based ;\n DBUG_ENTER ( \"sp_revoke_privileges\" ) ;\n if ( ( result = open_grant_tables ( thd , tables ) ) ) DBUG_RETURN ( result != 1 ) ;\n thd -> push_internal_handler ( & error_handler ) ;\n rw_wrlock ( & LOCK_grant ) ;\n VOID ( pthread_mutex_lock ( & acl_cache -> lock ) ) ;\n save_binlog_row_based = thd -> current_stmt_binlog_row_based ;\n thd -> clear_current_stmt_binlog_row_based ( ) ;\n do {\n for ( counter = 0 , revoked = 0 ;\n counter < hash -> records ;\n ) {\n GRANT_NAME * grant_proc = ( GRANT_NAME * ) hash_element ( hash , counter ) ;\n if ( ! my_strcasecmp ( & my_charset_utf8_bin , grant_proc -> db , sp_db ) && ! my_strcasecmp ( system_charset_info , grant_proc -> tname , sp_name ) ) {\n LEX_USER lex_user ;\n lex_user . user . str = grant_proc -> user ;\n lex_user . user . length = strlen ( grant_proc -> user ) ;\n lex_user . host . str = grant_proc -> host . hostname ? grant_proc -> host . hostname : ( char * ) \"\" ;\n lex_user . host . length = grant_proc -> host . hostname ? strlen ( grant_proc -> host . hostname ) : 0 ;\n if ( replace_routine_table ( thd , grant_proc , tables [ 4 ] . table , lex_user , grant_proc -> db , grant_proc -> tname , is_proc , ~ ( ulong ) 0 , 1 ) == 0 ) {\n revoked = 1 ;\n continue ;\n }\n }\n counter ++ ;\n }\n }\n while ( revoked ) ;\n VOID ( pthread_mutex_unlock ( & acl_cache -> lock ) ) ;\n rw_unlock ( & LOCK_grant ) ;\n close_thread_tables ( thd ) ;\n thd -> pop_internal_handler ( ) ;\n thd -> current_stmt_binlog_row_based = save_binlog_row_based ;\n DBUG_RETURN ( error_handler . has_errors ( ) ) ;\n }"}
{"idx": 3234, "target": 0, "func": "static int dissect_h225_ScnConnectionAggregation ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_ScnConnectionAggregation , ScnConnectionAggregation_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 3235, "target": 0, "func": "static void mount_state_free ( MountState * state ) {\n g_object_unref ( state -> cancellable ) ;\n g_free ( state ) ;\n }"}
{"idx": 3236, "target": 0, "func": "TEST_F ( BrowsingDataRemoverImplTest , RemoveCookiesDomainBlacklist ) {\n std : : unique_ptr < BrowsingDataFilterBuilder > filter ( BrowsingDataFilterBuilder : : Create ( BrowsingDataFilterBuilder : : BLACKLIST ) ) ;\n filter -> AddRegisterableDomain ( kTestRegisterableDomain1 ) ;\n filter -> AddRegisterableDomain ( kTestRegisterableDomain3 ) ;\n BlockUntilOriginDataRemoved ( AnHourAgo ( ) , base : : Time : : Max ( ) , BrowsingDataRemover : : REMOVE_COOKIES , std : : move ( filter ) ) ;\n EXPECT_EQ ( BrowsingDataRemover : : REMOVE_COOKIES , GetRemovalMask ( ) ) ;\n EXPECT_EQ ( BrowsingDataHelper : : UNPROTECTED_WEB , GetOriginTypeMask ( ) ) ;\n StoragePartitionRemovalData removal_data = GetStoragePartitionRemovalData ( ) ;\n EXPECT_EQ ( removal_data . remove_mask , StoragePartition : : REMOVE_DATA_MASK_COOKIES ) ;\n EXPECT_EQ ( removal_data . quota_storage_remove_mask , ~ StoragePartition : : QUOTA_MANAGED_STORAGE_MASK_PERSISTENT ) ;\n EXPECT_EQ ( removal_data . remove_begin , GetBeginTime ( ) ) ;\n EXPECT_FALSE ( removal_data . origin_matcher . Run ( kOrigin1 , mock_policy ( ) ) ) ;\n EXPECT_TRUE ( removal_data . origin_matcher . Run ( kOrigin2 , mock_policy ( ) ) ) ;\n EXPECT_FALSE ( removal_data . origin_matcher . Run ( kOrigin3 , mock_policy ( ) ) ) ;\n EXPECT_FALSE ( removal_data . origin_matcher . Run ( kOrigin4 , mock_policy ( ) ) ) ;\n EXPECT_FALSE ( removal_data . cookie_matcher . Run ( CreateCookieWithHost ( kOrigin1 ) ) ) ;\n EXPECT_TRUE ( removal_data . cookie_matcher . Run ( CreateCookieWithHost ( kOrigin2 ) ) ) ;\n EXPECT_FALSE ( removal_data . cookie_matcher . Run ( CreateCookieWithHost ( kOrigin3 ) ) ) ;\n EXPECT_FALSE ( removal_data . cookie_matcher . Run ( CreateCookieWithHost ( kOrigin4 ) ) ) ;\n }"}
{"idx": 3237, "target": 0, "func": "static UBool _isNumericString ( const char * s , int32_t len ) {\n int32_t i ;\n for ( i = 0 ;\n i < len ;\n i ++ ) {\n if ( ! ISNUMERIC ( * ( s + i ) ) ) {\n return FALSE ;\n }\n }\n return TRUE ;\n }"}
{"idx": 3238, "target": 0, "func": "static gboolean logcat_binary_dump ( wtap_dumper * wdh , const struct wtap_pkthdr * phdr , const guint8 * pd , int * err ) {\n if ( phdr -> rec_type != REC_TYPE_PACKET ) {\n * err = WTAP_ERR_REC_TYPE_UNSUPPORTED ;\n return FALSE ;\n }\n if ( ! wtap_dump_file_write ( wdh , pd , phdr -> caplen , err ) ) return FALSE ;\n wdh -> bytes_dumped += phdr -> caplen ;\n return TRUE ;\n }"}
{"idx": 3239, "target": 0, "func": "size_t WriteOffset ( ArchiveHandle * AH , pgoff_t o , int wasSet ) {\n int off ;\n ( * AH -> WriteBytePtr ) ( AH , wasSet ) ;\n for ( off = 0 ;\n off < sizeof ( pgoff_t ) ;\n off ++ ) {\n ( * AH -> WriteBytePtr ) ( AH , o & 0xFF ) ;\n o >>= 8 ;\n }\n return sizeof ( pgoff_t ) + 1 ;\n }"}
{"idx": 3240, "target": 0, "func": "static void arm_gic_class_init ( ObjectClass * klass , void * data ) {\n DeviceClass * dc = DEVICE_CLASS ( klass ) ;\n ARMGICClass * agc = ARM_GIC_CLASS ( klass ) ;\n dc -> no_user = 1 ;\n agc -> parent_realize = dc -> realize ;\n dc -> realize = arm_gic_realize ;\n }"}
{"idx": 3241, "target": 0, "func": "int qemuMonitorJSONScreendump ( qemuMonitorPtr mon , const char * file ) {\n int ret ;\n virJSONValuePtr cmd , reply = NULL ;\n cmd = qemuMonitorJSONMakeCommand ( \"screendump\" , \"s:filename\" , file , NULL ) ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 3242, "target": 0, "func": "uint32_t mime_field_value_get_uint ( const MIMEField * field ) {\n int length ;\n const char * str = mime_field_value_get ( field , & length ) ;\n return mime_parse_uint ( str , str + length ) ;\n }"}
{"idx": 3243, "target": 0, "func": "void hmp_hostfwd_add ( Monitor * mon , const QDict * qdict ) {\n const char * redir_str ;\n SlirpState * s ;\n const char * arg1 = qdict_get_str ( qdict , \"arg1\" ) ;\n const char * arg2 = qdict_get_try_str ( qdict , \"arg2\" ) ;\n const char * arg3 = qdict_get_try_str ( qdict , \"arg3\" ) ;\n if ( arg2 ) {\n s = slirp_lookup ( mon , arg1 , arg2 ) ;\n redir_str = arg3 ;\n }\n else {\n s = slirp_lookup ( mon , NULL , NULL ) ;\n redir_str = arg1 ;\n }\n if ( s ) {\n slirp_hostfwd ( s , redir_str , 0 ) ;\n }\n }"}
{"idx": 3244, "target": 0, "func": "static int H225calls_packet ( void * ptr _U_ , packet_info * pinfo , epan_dissect_t * edt _U_ , const void * H225info ) {\n voip_calls_tapinfo_t * tapinfo = & the_tapinfo_struct ;\n voip_calls_info_t * tmp_listinfo ;\n voip_calls_info_t * callsinfo = NULL ;\n h323_calls_info_t * tmp_h323info = NULL ;\n gchar * frame_label ;\n gchar * comment ;\n GList * list ;\n h245_address_t * h245_add = NULL ;\n const h225_packet_info * pi = ( const h225_packet_info * ) H225info ;\n if ( ( memcmp ( & pi -> guid , & guid_allzero , GUID_LEN ) == 0 ) ) if ( ( ( pi -> msg_type == H225_RAS ) && ( ( pi -> msg_tag < 18 ) || ( pi -> msg_tag > 20 ) ) ) || ( pi -> msg_type != H225_RAS ) ) return 0 ;\n if ( ( pi -> msg_type == H225_RAS ) && ( ( pi -> msg_tag == 19 ) || ( pi -> msg_tag == 20 ) ) ) {\n if ( ! pi -> request_available ) return 0 ;\n list = g_list_first ( tapinfo -> callsinfo_list ) ;\n while ( list ) {\n tmp_listinfo = ( voip_calls_info_t * ) list -> data ;\n g_assert ( tmp_listinfo != NULL ) ;\n if ( tmp_listinfo -> protocol == VOIP_H323 ) {\n tmp_h323info = ( h323_calls_info_t * ) tmp_listinfo -> prot_info ;\n if ( tmp_h323info -> requestSeqNum == pi -> requestSeqNum ) {\n callsinfo = ( voip_calls_info_t * ) ( list -> data ) ;\n break ;\n }\n }\n list = g_list_next ( list ) ;\n }\n }\n else {\n list = g_list_first ( tapinfo -> callsinfo_list ) ;\n while ( list ) {\n tmp_listinfo = ( voip_calls_info_t * ) list -> data ;\n if ( tmp_listinfo -> protocol == VOIP_H323 ) {\n tmp_h323info = ( h323_calls_info_t * ) tmp_listinfo -> prot_info ;\n g_assert ( tmp_h323info != NULL ) ;\n if ( ( memcmp ( tmp_h323info -> guid , & guid_allzero , GUID_LEN ) != 0 ) && ( memcmp ( tmp_h323info -> guid , & pi -> guid , GUID_LEN ) == 0 ) ) {\n callsinfo = ( voip_calls_info_t * ) ( list -> data ) ;\n break ;\n }\n }\n list = g_list_next ( list ) ;\n }\n }\n h225_cstype = pi -> cs_type ;\n h225_is_faststart = pi -> is_faststart ;\n if ( callsinfo == NULL ) {\n callsinfo = ( voip_calls_info_t * ) g_malloc0 ( sizeof ( voip_calls_info_t ) ) ;\n callsinfo -> call_active_state = VOIP_ACTIVE ;\n callsinfo -> call_state = VOIP_UNKNOWN ;\n callsinfo -> from_identity = g_strdup ( \"\" ) ;\n callsinfo -> to_identity = g_strdup ( \"\" ) ;\n COPY_ADDRESS ( & ( callsinfo -> initial_speaker ) , & ( pinfo -> src ) ) ;\n callsinfo -> selected = FALSE ;\n callsinfo -> start_fd = pinfo -> fd ;\n callsinfo -> start_rel_ts = pinfo -> rel_ts ;\n callsinfo -> protocol = VOIP_H323 ;\n callsinfo -> prot_info = g_malloc ( sizeof ( h323_calls_info_t ) ) ;\n callsinfo -> free_prot_info = free_h225_info ;\n tmp_h323info = ( h323_calls_info_t * ) callsinfo -> prot_info ;\n g_assert ( tmp_h323info != NULL ) ;\n tmp_h323info -> guid = ( e_guid_t * ) g_memdup ( & pi -> guid , sizeof pi -> guid ) ;\n DUMP_PTR1 ( tmp_h323info -> guid ) ;\n tmp_h323info -> h225SetupAddr . type = AT_NONE ;\n tmp_h323info -> h225SetupAddr . len = 0 ;\n tmp_h323info -> h245_list = NULL ;\n tmp_h323info -> is_faststart_Setup = FALSE ;\n tmp_h323info -> is_faststart_Proc = FALSE ;\n tmp_h323info -> is_h245Tunneling = FALSE ;\n tmp_h323info -> is_h245 = FALSE ;\n tmp_h323info -> q931_crv = - 1 ;\n tmp_h323info -> q931_crv2 = - 1 ;\n tmp_h323info -> requestSeqNum = 0 ;\n callsinfo -> call_num = tapinfo -> ncalls ++ ;\n callsinfo -> npackets = 0 ;\n tapinfo -> callsinfo_list = g_list_prepend ( tapinfo -> callsinfo_list , callsinfo ) ;\n }\n h225_frame_num = pinfo -> fd -> num ;\n h225_call_num = callsinfo -> call_num ;\n callsinfo -> stop_fd = pinfo -> fd ;\n callsinfo -> stop_rel_ts = pinfo -> rel_ts ;\n ++ ( callsinfo -> npackets ) ;\n ++ ( tapinfo -> npackets ) ;\n g_assert ( tmp_h323info != NULL ) ;\n if ( pi -> msg_type == H225_CS ) {\n if ( pi -> is_h245 == TRUE ) {\n h245_add = ( h245_address_t * ) g_malloc ( sizeof ( h245_address_t ) ) ;\n h245_add -> h245_address . type = AT_IPv4 ;\n h245_add -> h245_address . len = 4 ;\n h245_add -> h245_address . data = g_malloc ( sizeof ( pi -> h245_address ) ) ;\n memcpy ( ( void * ) ( h245_add -> h245_address . data ) , & ( pi -> h245_address ) , 4 ) ;\n h245_add -> h245_port = pi -> h245_port ;\n add_h245_Address ( tmp_h323info , h245_add ) ;\n }\n if ( pi -> cs_type != H225_RELEASE_COMPLET ) tmp_h323info -> is_h245Tunneling = pi -> is_h245Tunneling ;\n frame_label = g_strdup ( pi -> frame_label ) ;\n switch ( pi -> cs_type ) {\n case H225_SETUP : tmp_h323info -> is_faststart_Setup = pi -> is_faststart ;\n if ( tmp_h323info -> h225SetupAddr . type == AT_NONE ) COPY_ADDRESS ( & ( tmp_h323info -> h225SetupAddr ) , & ( pinfo -> src ) ) ;\n callsinfo -> call_state = VOIP_CALL_SETUP ;\n comment = g_strdup_printf ( \"H225 TunnH245:%s FS:%s\" , ( tmp_h323info -> is_h245Tunneling == TRUE ? \"on\" : \"off\" ) , ( pi -> is_faststart == TRUE ? \"on\" : \"off\" ) ) ;\n break ;\n case H225_CONNECT : callsinfo -> call_state = VOIP_IN_CALL ;\n if ( pi -> is_faststart == TRUE ) tmp_h323info -> is_faststart_Proc = TRUE ;\n comment = g_strdup_printf ( \"H225 TunnH245:%s FS:%s\" , ( tmp_h323info -> is_h245Tunneling == TRUE ? \"on\" : \"off\" ) , ( pi -> is_faststart == TRUE ? \"on\" : \"off\" ) ) ;\n break ;\n case H225_RELEASE_COMPLET : if ( callsinfo -> call_state == VOIP_CALL_SETUP ) {\n if ( ADDRESSES_EQUAL ( & ( tmp_h323info -> h225SetupAddr ) , & ( pinfo -> src ) ) ) {\n callsinfo -> call_state = VOIP_CANCELLED ;\n }\n else {\n callsinfo -> call_state = VOIP_REJECTED ;\n tapinfo -> rejected_calls ++ ;\n }\n }\n else {\n callsinfo -> call_state = VOIP_COMPLETED ;\n tapinfo -> completed_calls ++ ;\n }\n comment = g_strdup ( \"H225 No Q931 Rel Cause\" ) ;\n break ;\n case H225_PROGRESS : case H225_ALERTING : case H225_CALL_PROCEDING : if ( pi -> is_faststart == TRUE ) tmp_h323info -> is_faststart_Proc = TRUE ;\n comment = g_strdup_printf ( \"H225 TunnH245:%s FS:%s\" , ( tmp_h323info -> is_h245Tunneling == TRUE ? \"on\" : \"off\" ) , ( pi -> is_faststart == TRUE ? \"on\" : \"off\" ) ) ;\n break ;\n default : comment = g_strdup_printf ( \"H225 TunnH245:%s FS:%s\" , ( tmp_h323info -> is_h245Tunneling == TRUE ? \"on\" : \"off\" ) , ( pi -> is_faststart == TRUE ? \"on\" : \"off\" ) ) ;\n }\n }\n else if ( pi -> msg_type == H225_RAS ) {\n switch ( pi -> msg_tag ) {\n case 18 : if ( ! pi -> is_duplicate ) {\n g_free ( callsinfo -> to_identity ) ;\n callsinfo -> to_identity = g_strdup ( pi -> dialedDigits ) ;\n tmp_h323info -> requestSeqNum = pi -> requestSeqNum ;\n }\n case 19 : if ( strlen ( pi -> dialedDigits ) ) comment = g_strdup_printf ( \"H225 RAS dialedDigits: %s\" , pi -> dialedDigits ) ;\n else comment = g_strdup ( \"H225 RAS\" ) ;\n break ;\n default : comment = g_strdup ( \"H225 RAS\" ) ;\n }\n frame_label = g_strdup ( val_to_str_const ( pi -> msg_tag , h225_RasMessage_vals , \"<unknown>\" ) ) ;\n }\n else {\n frame_label = g_strdup ( \"H225: Unknown\" ) ;\n comment = NULL ;\n }\n if ( ! append_to_frame_graph ( tapinfo , pinfo -> fd -> num , pi -> frame_label , comment ) ) {\n add_to_graph ( tapinfo , pinfo , frame_label , comment , callsinfo -> call_num , & ( pinfo -> src ) , & ( pinfo -> dst ) , 1 ) ;\n }\n h245_add_to_graph ( pinfo -> fd -> num ) ;\n g_free ( frame_label ) ;\n g_free ( comment ) ;\n tapinfo -> redraw = TRUE ;\n return 1 ;\n }"}
{"idx": 3245, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize ) ;\n DECL_PIOCTL ( PGetCacheSize ) ;\n DECL_PIOCTL ( PRemoveCallBack ) ;\n DECL_PIOCTL ( PNewCell ) ;\n DECL_PIOCTL ( PNewAlias ) ;\n DECL_PIOCTL ( PListCells ) ;\n DECL_PIOCTL ( PListAliases ) ;\n DECL_PIOCTL ( PRemoveMount ) ;\n DECL_PIOCTL ( PGetCellStatus ) ;\n DECL_PIOCTL ( PSetCellStatus ) ;\n DECL_PIOCTL ( PFlushVolumeData ) ;\n DECL_PIOCTL ( PFlushAllVolumeData ) ;\n DECL_PIOCTL ( PGetVnodeXStatus ) ;\n DECL_PIOCTL ( PGetVnodeXStatus2 )"}
{"idx": 3246, "target": 0, "func": "static int header_contains_non_alphanumdash ( ngx_str_t * key ) {\n unsigned int i ;\n for ( i = 0 ;\n i < key -> len ;\n i ++ ) {\n u_char c = key -> data [ i ] ;\n if ( ! ( c >= 'a' && c <= 'z' ) && ! ( c >= 'A' && c <= 'Z' ) && ! ( c == '-' ) && ! ( c >= '0' && c <= '9' ) ) {\n return 1 ;\n }\n }\n return 0 ;\n }"}
{"idx": 3247, "target": 0, "func": "static void test_bug20023 ( ) {\n MYSQL con ;\n int sql_big_selects_orig = 0 ;\n char max_join_size_orig [ 32 ] ;\n int sql_big_selects_2 = 0 ;\n int sql_big_selects_3 = 0 ;\n int sql_big_selects_4 = 0 ;\n int sql_big_selects_5 = 0 ;\n char query_buffer [ MAX_TEST_QUERY_LENGTH ] ;\n DIE_UNLESS ( mysql_client_init ( & con ) ) ;\n DIE_UNLESS ( mysql_real_connect ( & con , opt_host , opt_user , opt_password , opt_db ? opt_db : \"test\" , opt_port , opt_unix_socket , CLIENT_FOUND_ROWS ) ) ;\n query_int_variable ( & con , \"@@session.sql_big_selects\" , & sql_big_selects_orig ) ;\n query_str_variable ( & con , \"@@global.max_join_size\" , max_join_size_orig , sizeof ( max_join_size_orig ) ) ;\n bug20023_change_user ( & con ) ;\n query_int_variable ( & con , \"@@session.sql_big_selects\" , & sql_big_selects_2 ) ;\n DIE_UNLESS ( sql_big_selects_orig == sql_big_selects_2 ) ;\n DIE_IF ( mysql_query ( & con , \"SET @@global.max_join_size = 10000\" ) ) ;\n DIE_IF ( mysql_query ( & con , \"SET @@session.max_join_size = default\" ) ) ;\n bug20023_change_user ( & con ) ;\n query_int_variable ( & con , \"@@session.sql_big_selects\" , & sql_big_selects_3 ) ;\n DIE_UNLESS ( sql_big_selects_3 == 0 ) ;\n DIE_IF ( mysql_query ( & con , \"SET @@global.max_join_size = cast(-1 as unsigned int)\" ) ) ;\n DIE_IF ( mysql_query ( & con , \"SET @@session.max_join_size = default\" ) ) ;\n bug20023_change_user ( & con ) ;\n query_int_variable ( & con , \"@@session.sql_big_selects\" , & sql_big_selects_4 ) ;\n DIE_UNLESS ( sql_big_selects_4 == 1 ) ;\n my_snprintf ( query_buffer , sizeof ( query_buffer ) , \"SET @@global.max_join_size = %s\" , max_join_size_orig ) ;\n DIE_IF ( mysql_query ( & con , query_buffer ) ) ;\n DIE_IF ( mysql_query ( & con , \"SET @@global.max_join_size = cast(-1 as unsigned int)\" ) ) ;\n DIE_IF ( mysql_query ( & con , \"SET @@session.max_join_size = default\" ) ) ;\n bug20023_change_user ( & con ) ;\n query_int_variable ( & con , \"@@session.sql_big_selects\" , & sql_big_selects_5 ) ;\n DIE_UNLESS ( sql_big_selects_5 == sql_big_selects_orig ) ;\n mysql_close ( & con ) ;\n }"}
{"idx": 3248, "target": 0, "func": "static int dissect_h245_MultiplexEntrySendReject ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MultiplexEntrySendReject , MultiplexEntrySendReject_sequence ) ;\n return offset ;\n }"}
{"idx": 3249, "target": 0, "func": "TSAction TSNetConnect ( TSCont contp , sockaddr const * addr ) {\n sdk_assert ( sdk_sanity_check_continuation ( contp ) == TS_SUCCESS ) ;\n sdk_assert ( ats_is_ip ( addr ) ) ;\n HttpConfigParams * http_config_param = HttpConfig : : acquire ( ) ;\n NetVCOptions opt ;\n if ( http_config_param ) {\n opt . set_sock_param ( http_config_param -> oride . sock_recv_buffer_size_out , http_config_param -> oride . sock_send_buffer_size_out , http_config_param -> oride . sock_option_flag_out , http_config_param -> oride . sock_packet_mark_out , http_config_param -> oride . sock_packet_tos_out ) ;\n HttpConfig : : release ( http_config_param ) ;\n }\n FORCE_PLUGIN_SCOPED_MUTEX ( contp ) ;\n return reinterpret_cast < TSAction > ( netProcessor . connect_re ( reinterpret_cast < INKContInternal * > ( contp ) , addr , & opt ) ) ;\n }"}
{"idx": 3250, "target": 0, "func": "static void swap_block_ptr ( MACROBLOCK * x , PICK_MODE_CONTEXT * ctx , int m , int n , int min_plane , int max_plane ) {\n int i ;\n for ( i = min_plane ;\n i < max_plane ;\n ++ i ) {\n struct macroblock_plane * const p = & x -> plane [ i ] ;\n struct macroblockd_plane * const pd = & x -> e_mbd . plane [ i ] ;\n p -> coeff = ctx -> coeff_pbuf [ i ] [ m ] ;\n p -> qcoeff = ctx -> qcoeff_pbuf [ i ] [ m ] ;\n pd -> dqcoeff = ctx -> dqcoeff_pbuf [ i ] [ m ] ;\n p -> eobs = ctx -> eobs_pbuf [ i ] [ m ] ;\n ctx -> coeff_pbuf [ i ] [ m ] = ctx -> coeff_pbuf [ i ] [ n ] ;\n ctx -> qcoeff_pbuf [ i ] [ m ] = ctx -> qcoeff_pbuf [ i ] [ n ] ;\n ctx -> dqcoeff_pbuf [ i ] [ m ] = ctx -> dqcoeff_pbuf [ i ] [ n ] ;\n ctx -> eobs_pbuf [ i ] [ m ] = ctx -> eobs_pbuf [ i ] [ n ] ;\n ctx -> coeff_pbuf [ i ] [ n ] = p -> coeff ;\n ctx -> qcoeff_pbuf [ i ] [ n ] = p -> qcoeff ;\n ctx -> dqcoeff_pbuf [ i ] [ n ] = pd -> dqcoeff ;\n ctx -> eobs_pbuf [ i ] [ n ] = p -> eobs ;\n }\n }"}
{"idx": 3251, "target": 0, "func": "int ssl3_new ( SSL * s ) {\n SSL3_STATE * s3 ;\n if ( ( s3 = OPENSSL_malloc ( sizeof * s3 ) ) == NULL ) goto err ;\n memset ( s3 , 0 , sizeof * s3 ) ;\n memset ( s3 -> rrec . seq_num , 0 , sizeof ( s3 -> rrec . seq_num ) ) ;\n memset ( s3 -> wrec . seq_num , 0 , sizeof ( s3 -> wrec . seq_num ) ) ;\n s -> s3 = s3 ;\n # ifndef OPENSSL_NO_SRP SSL_SRP_CTX_init ( s ) ;\n # endif s -> method -> ssl_clear ( s ) ;\n return ( 1 ) ;\n err : return ( 0 ) ;\n }"}
{"idx": 3252, "target": 0, "func": "static int dissect_h245_T_adaptationLayerType ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_adaptationLayerType , T_adaptationLayerType_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 3253, "target": 0, "func": "static int main_open_output ( xd3_stream * stream , main_file * ofile ) {\n int ret ;\n if ( option_no_output ) {\n return 0 ;\n }\n if ( ofile -> filename == NULL ) {\n XSTDOUT_XF ( ofile ) ;\n if ( option_verbose > 1 ) {\n XPR ( NT \"using standard output: %s\\n\" , ofile -> filename ) ;\n }\n }\n else {\n if ( option_force == 0 && main_file_exists ( ofile ) ) {\n if ( ! option_quiet ) {\n XPR ( NT \"to overwrite output file specify -f: %s\\n\" , ofile -> filename ) ;\n }\n return EEXIST ;\n }\n if ( ( ret = main_file_open ( ofile , ofile -> filename , XO_WRITE ) ) ) {\n return ret ;\n }\n if ( option_verbose > 1 ) {\n XPR ( NT \"output %s\\n\" , ofile -> filename ) ;\n }\n }\n # if EXTERNAL_COMPRESSION if ( ofile -> compressor != NULL && option_recompress_outputs == 1 ) {\n if ( ! option_quiet ) {\n XPR ( NT \"externally compressed output: %s %s%s > %s\\n\" , ofile -> compressor -> recomp_cmdname , ofile -> compressor -> recomp_options , ( option_force2 ? \" -f\" : \"\" ) , ofile -> filename ) ;\n }\n if ( ( ret = main_recompress_output ( ofile ) ) ) {\n return ret ;\n }\n }\n # endif return 0 ;\n }"}
{"idx": 3254, "target": 0, "func": "TSMLoc TSMimeHdrFieldNext ( TSMBuffer bufp , TSMLoc hdr , TSMLoc field ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( hdr ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( hdr ) == TS_SUCCESS ) ) ;\n sdk_assert ( sdk_sanity_check_field_handle ( field , hdr ) == TS_SUCCESS ) ;\n MIMEFieldSDKHandle * handle = ( MIMEFieldSDKHandle * ) field ;\n if ( handle -> mh == nullptr ) {\n return TS_NULL_MLOC ;\n }\n int slotnum = mime_hdr_field_slotnum ( handle -> mh , handle -> field_ptr ) ;\n if ( slotnum == - 1 ) {\n return TS_NULL_MLOC ;\n }\n while ( true ) {\n ++ slotnum ;\n MIMEField * f = mime_hdr_field_get_slotnum ( handle -> mh , slotnum ) ;\n if ( f == nullptr ) {\n return TS_NULL_MLOC ;\n }\n if ( f -> is_live ( ) ) {\n MIMEFieldSDKHandle * h = sdk_alloc_field_handle ( bufp , handle -> mh ) ;\n h -> field_ptr = f ;\n return reinterpret_cast < TSMLoc > ( h ) ;\n }\n }\n return TS_NULL_MLOC ;\n }"}
{"idx": 3255, "target": 0, "func": "extern int name ( int ) __THROW __exctype ( isalnum ) ;\n __exctype ( isalpha ) ;\n __exctype ( iscntrl ) ;\n __exctype ( isdigit ) ;\n __exctype ( islower ) ;\n __exctype ( isgraph ) ;\n __exctype ( isprint ) ;\n __exctype ( ispunct ) ;\n __exctype ( isspace ) ;\n __exctype ( isupper ) ;\n __exctype ( isxdigit ) ;\n extern int tolower ( int __c ) __THROW ;\n extern int toupper ( int __c ) __THROW ;\n # ifdef __USE_ISOC99 __exctype ( isblank ) ;\n # endif # ifdef __USE_GNU extern int isctype ( int __c , int __mask ) __THROW ;\n # endif # if defined __USE_MISC || defined __USE_XOPEN extern int isascii ( int __c ) __THROW ;\n extern int toascii ( int __c ) __THROW ;\n __exctype ( _toupper ) ;\n __exctype ( _tolower )"}
{"idx": 3256, "target": 0, "func": "void * ufmt_utop ( const UChar * buffer , int32_t * len ) {\n int32_t count , resultIdx , incVal , offset ;\n union {\n void * ptr ;\n uint8_t bytes [ sizeof ( void * ) ] ;\n }\n result ;\n count = 0 ;\n offset = 0 ;\n result . ptr = NULL ;\n while ( buffer [ count ] == DIGIT_0 || u_isspace ( buffer [ count ] ) ) {\n count ++ ;\n offset ++ ;\n }\n while ( ufmt_isdigit ( buffer [ count ] , 16 ) && count < * len ) {\n ++ count ;\n }\n if ( count - offset > ( int32_t ) ( sizeof ( void * ) * NIBBLE_PER_BYTE ) ) {\n offset = count - ( int32_t ) ( sizeof ( void * ) * NIBBLE_PER_BYTE ) ;\n }\n # if U_IS_BIG_ENDIAN incVal = - 1 ;\n resultIdx = ( int32_t ) ( sizeof ( void * ) - 1 ) ;\n # else incVal = 1 ;\n resultIdx = 0 ;\n # endif * len = count ;\n while ( -- count >= offset ) {\n uint8_t byte = ( uint8_t ) ufmt_digitvalue ( buffer [ count ] ) ;\n if ( count > offset ) {\n byte = ( uint8_t ) ( byte + ( ufmt_digitvalue ( buffer [ -- count ] ) << 4 ) ) ;\n }\n result . bytes [ resultIdx ] = byte ;\n resultIdx += incVal ;\n }\n return result . ptr ;\n }"}
{"idx": 3257, "target": 0, "func": "static double patternjoinsel ( PG_FUNCTION_ARGS , Pattern_Type ptype , bool negate ) {\n return negate ? ( 1.0 - DEFAULT_MATCH_SEL ) : DEFAULT_MATCH_SEL ;\n }"}
{"idx": 3258, "target": 0, "func": "static int dissect_h225_OCTET_STRING_SIZE_2_5 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 2 , 5 , FALSE , NULL ) ;\n return offset ;\n }"}
{"idx": 3259, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , UseCounterObserveSVGImagePage ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/page_load_metrics/circle.svg\" ) ) ;\n NavigateToUntrackedUrl ( ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kFeaturesHistogramName , static_cast < int32_t > ( WebFeature : : kPageVisits ) , 1 ) ;\n }"}
{"idx": 3260, "target": 0, "func": "void prplcb_conv_new ( PurpleConversation * conv ) {\n if ( conv -> type == PURPLE_CONV_TYPE_CHAT ) {\n struct im_connection * ic = purple_ic_by_pa ( conv -> account ) ;\n struct groupchat * gc ;\n gc = bee_chat_by_title ( ic -> bee , ic , conv -> name ) ;\n if ( ! gc ) {\n gc = imcb_chat_new ( ic , conv -> name ) ;\n if ( conv -> title != NULL ) {\n imcb_chat_name_hint ( gc , conv -> title ) ;\n }\n }\n if ( conv -> title != NULL && strcmp ( conv -> name , conv -> title ) != 0 ) {\n imcb_chat_topic ( gc , NULL , conv -> title , 0 ) ;\n }\n conv -> ui_data = gc ;\n gc -> data = conv ;\n imcb_chat_add_buddy ( gc , gc -> ic -> acc -> user ) ;\n }\n }"}
{"idx": 3261, "target": 0, "func": "static int ipvideo_decode_block_opcode_0x1 ( IpvideoContext * s , AVFrame * frame ) {\n return copy_from ( s , s -> second_last_frame , frame , 0 , 0 ) ;\n }"}
{"idx": 3262, "target": 0, "func": "static int32_t u_scanf_spellout_handler ( UFILE * input , u_scanf_spec_info * info , ufmt_args * args , const UChar * fmt , int32_t * fmtConsumed , int32_t * argConverted ) {\n ( void ) fmt ;\n ( void ) fmtConsumed ;\n int32_t len ;\n double num ;\n UNumberFormat * format ;\n int32_t parsePos = 0 ;\n int32_t skipped ;\n UErrorCode status = U_ZERO_ERROR ;\n skipped = u_scanf_skip_leading_ws ( input , info -> fPadChar ) ;\n ufile_fill_uchar_buffer ( input ) ;\n len = ( int32_t ) ( input -> str . fLimit - input -> str . fPos ) ;\n if ( info -> fWidth != - 1 ) len = ufmt_min ( len , info -> fWidth ) ;\n format = u_locbund_getNumberFormat ( & input -> str . fBundle , UNUM_SPELLOUT ) ;\n if ( format == 0 ) return 0 ;\n num = unum_parseDouble ( format , input -> str . fPos , len , & parsePos , & status ) ;\n if ( ! info -> fSkipArg ) {\n * ( double * ) ( args [ 0 ] . ptrValue ) = num ;\n }\n input -> str . fPos += parsePos ;\n * argConverted = ! info -> fSkipArg ;\n return parsePos + skipped ;\n }"}
{"idx": 3263, "target": 0, "func": "static gboolean has_trash_files ( GMount * mount ) {\n GList * dirs , * l ;\n GFile * dir ;\n gboolean res ;\n dirs = get_trash_dirs_for_mount ( mount ) ;\n res = FALSE ;\n for ( l = dirs ;\n l != NULL ;\n l = l -> next ) {\n dir = l -> data ;\n if ( dir_has_files ( dir ) ) {\n res = TRUE ;\n break ;\n }\n }\n g_list_free_full ( dirs , g_object_unref ) ;\n return res ;\n }"}
{"idx": 3264, "target": 1, "func": "unsigned long # define BN_BYTES 8 # endif # ifdef SIXTY_FOUR_BIT # define BN_ULONG unsigned long long # define BN_BYTES 8 # endif # ifdef THIRTY_TWO_BIT # define BN_ULONG unsigned int # define BN_BYTES 4 # endif # define BN_BITS2 ( BN_BYTES * 8 ) # define BN_BITS ( BN_BITS2 * 2 ) # define BN_TBIT ( ( BN_ULONG ) 1 << ( BN_BITS2 - 1 ) ) # define BN_FLG_MALLOCED 0x01 # define BN_FLG_STATIC_DATA 0x02 # define BN_FLG_CONSTTIME 0x04 # define BN_FLG_SECURE 0x08 # if OPENSSL_API_COMPAT < 0x00908000L # define BN_FLG_EXP_CONSTTIME BN_FLG_CONSTTIME # define BN_FLG_FREE 0x8000 # endif void BN_set_flags ( BIGNUM * b , int n ) ;\n int BN_get_flags ( const BIGNUM * b , int n ) ;\n # define BN_RAND_TOP_ANY - 1 # define BN_RAND_TOP_ONE 0 # define BN_RAND_TOP_TWO 1 # define BN_RAND_BOTTOM_ANY 0 # define BN_RAND_BOTTOM_ODD 1 void BN_with_flags ( BIGNUM * dest , const BIGNUM * b , int flags ) ;\n int BN_GENCB_call ( BN_GENCB * cb , int a , int b ) ;\n BN_GENCB * BN_GENCB_new ( void ) ;\n void BN_GENCB_free ( BN_GENCB * cb ) ;\n void BN_GENCB_set_old ( BN_GENCB * gencb , void ( * callback ) ( int , int , void * ) , void * cb_arg ) ;\n void BN_GENCB_set ( BN_GENCB * gencb , int ( * callback ) ( int , int , BN_GENCB * ) , void * cb_arg ) ;\n void * BN_GENCB_get_arg ( BN_GENCB * cb ) ;\n # define BN_prime_checks 0 # define BN_prime_checks_for_size ( b ) ( ( b ) >= 3747 ? 3 : ( b ) >= 1345 ? 4 : ( b ) >= 476 ? 5 : ( b ) >= 400 ? 6 : ( b ) >= 347 ? 7 : ( b ) >= 308 ? 8 : ( b ) >= 55 ? 27 : 34 ) # define BN_num_bytes ( a ) ( ( BN_num_bits ( a ) + 7 ) / 8 ) int BN_abs_is_word ( const BIGNUM * a , const BN_ULONG w ) ;\n int BN_is_zero ( const BIGNUM * a ) ;\n int BN_is_one ( const BIGNUM * a ) ;\n int BN_is_word ( const BIGNUM * a , const BN_ULONG w ) ;\n int BN_is_odd ( const BIGNUM * a ) ;\n # define BN_one ( a ) ( BN_set_word ( ( a ) , 1 ) ) void BN_zero_ex ( BIGNUM * a ) ;\n # if OPENSSL_API_COMPAT >= 0x00908000L # define BN_zero ( a ) BN_zero_ex ( a ) # else # define BN_zero ( a ) ( BN_set_word ( ( a ) , 0 ) ) # endif const BIGNUM * BN_value_one ( void ) ;\n char * BN_options ( void ) ;\n BN_CTX * BN_CTX_new ( void ) ;\n BN_CTX * BN_CTX_secure_new ( void ) ;\n void BN_CTX_free ( BN_CTX * c ) ;\n void BN_CTX_start ( BN_CTX * ctx ) ;\n BIGNUM * BN_CTX_get ( BN_CTX * ctx ) ;\n void BN_CTX_end ( BN_CTX * ctx ) ;\n int BN_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_priv_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_priv_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_pseudo_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_pseudo_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_num_bits ( const BIGNUM * a ) ;\n int BN_num_bits_word ( BN_ULONG l ) ;\n int BN_security_bits ( int L , int N ) ;\n BIGNUM * BN_new ( void ) ;\n BIGNUM * BN_secure_new ( void ) ;\n void BN_clear_free ( BIGNUM * a ) ;\n BIGNUM * BN_copy ( BIGNUM * a , const BIGNUM * b ) ;\n void BN_swap ( BIGNUM * a , BIGNUM * b ) ;\n BIGNUM * BN_bin2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2bin ( const BIGNUM * a , unsigned char * to ) ;\n int BN_bn2binpad ( const BIGNUM * a , unsigned char * to , int tolen ) ;\n BIGNUM * BN_lebin2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2lebinpad ( const BIGNUM * a , unsigned char * to , int tolen ) ;\n BIGNUM * BN_mpi2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2mpi ( const BIGNUM * a , unsigned char * to ) ;\n int BN_sub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_usub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_uadd ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n int BN_sqr ( BIGNUM * r , const BIGNUM * a , BN_CTX * ctx ) ;\n void BN_set_negative ( BIGNUM * b , int n ) ;\n int BN_is_negative ( const BIGNUM * b ) ;\n int BN_div ( BIGNUM * dv , BIGNUM * rem , const BIGNUM * m , const BIGNUM * d , BN_CTX * ctx ) ;\n # define BN_mod ( rem , m , d , ctx ) BN_div ( NULL , ( rem ) , ( m ) , ( d ) , ( ctx ) ) int BN_nnmod ( BIGNUM * r , const BIGNUM * m , const BIGNUM * d , BN_CTX * ctx ) ;\n int BN_mod_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_add_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m ) ;\n int BN_mod_sub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_sub_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m ) ;\n int BN_mod_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_sqr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift1 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift1_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m ) ;\n int BN_mod_lshift ( BIGNUM * r , const BIGNUM * a , int n , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift_quick ( BIGNUM * r , const BIGNUM * a , int n , const BIGNUM * m ) ;\n BN_ULONG BN_mod_word ( const BIGNUM * a , BN_ULONG w ) ;\n BN_ULONG BN_div_word ( BIGNUM * a , BN_ULONG w )"}
{"idx": 3265, "target": 0, "func": "void virLogUnlock ( void ) {\n virMutexUnlock ( & virLogMutex ) ;\n }"}
{"idx": 3266, "target": 0, "func": "void ntpd_time_stepped ( void ) {\n u_int saved_mon_enabled ;\n if ( MON_OFF != mon_enabled ) {\n saved_mon_enabled = mon_enabled ;\n mon_stop ( MON_OFF ) ;\n mon_start ( saved_mon_enabled ) ;\n }\n # ifdef SYS_WINNT win_time_stepped ( ) ;\n # endif }"}
{"idx": 3267, "target": 0, "func": "void handle_connection_in_main_thread ( THD * thd ) {\n mysql_mutex_assert_owner ( & LOCK_thread_count ) ;\n thread_cache_size = 0 ;\n threads . append ( thd ) ;\n mysql_mutex_unlock ( & LOCK_thread_count ) ;\n thd -> start_utime = microsecond_interval_timer ( ) ;\n do_handle_one_connection ( thd ) ;\n }"}
{"idx": 3268, "target": 0, "func": "static void signal_cb ( int fd , short event , void * arg ) {\n struct event * signal = arg ;\n printf ( \"%s: got signal %d\\n\" , __func__ , EVENT_SIGNAL ( signal ) ) ;\n if ( called >= 2 ) event_del ( signal ) ;\n called ++ ;\n }"}
{"idx": 3269, "target": 0, "func": "BerElement * ber_alloc ( void ) {\n return ber_alloc_t ( 0 ) ;\n }"}
{"idx": 3270, "target": 1, "func": "static void _LMBCSOpen ## n ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err ) \\ {\n _LMBCSOpenWorker ( _this , pArgs , err , n ) ;\n }\n static void _LMBCSOpenWorker ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err , ulmbcs_byte_t OptGroup ) {\n UConverterDataLMBCS * extraInfo = _this -> extraInfo = ( UConverterDataLMBCS * ) uprv_malloc ( sizeof ( UConverterDataLMBCS ) ) ;\n if ( extraInfo != NULL ) {\n UConverterNamePieces stackPieces ;\n UConverterLoadArgs stackArgs = {\n ( int32_t ) sizeof ( UConverterLoadArgs ) }\n ;\n ulmbcs_byte_t i ;\n uprv_memset ( extraInfo , 0 , sizeof ( UConverterDataLMBCS ) ) ;\n stackArgs . onlyTestIsLoadable = pArgs -> onlyTestIsLoadable ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST && U_SUCCESS ( * err ) ;\n i ++ ) {\n if ( OptGroupByteToCPName [ i ] != NULL ) {\n extraInfo -> OptGrpConverter [ i ] = ucnv_loadSharedData ( OptGroupByteToCPName [ i ] , & stackPieces , & stackArgs , err ) ;\n }\n }\n if ( U_FAILURE ( * err ) || pArgs -> onlyTestIsLoadable ) {\n _LMBCSClose ( _this ) ;\n return ;\n }\n extraInfo -> OptGroup = OptGroup ;\n extraInfo -> localeConverterIndex = FindLMBCSLocale ( pArgs -> locale ) ;\n }\n else {\n * err = U_MEMORY_ALLOCATION_ERROR ;\n }\n }\n static void _LMBCSClose ( UConverter * _this ) {\n if ( _this -> extraInfo != NULL ) {\n ulmbcs_byte_t Ix ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) _this -> extraInfo ;\n for ( Ix = 0 ;\n Ix <= ULMBCS_GRP_LAST ;\n Ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ Ix ] != NULL ) ucnv_unloadSharedDataIfReady ( extraInfo -> OptGrpConverter [ Ix ] ) ;\n }\n if ( ! _this -> isExtraLocal ) {\n uprv_free ( _this -> extraInfo ) ;\n _this -> extraInfo = NULL ;\n }\n }\n }\n typedef struct LMBCSClone {\n UConverter cnv ;\n UConverterDataLMBCS lmbcs ;\n }\n LMBCSClone ;\n static UConverter * _LMBCSSafeClone ( const UConverter * cnv , void * stackBuffer , int32_t * pBufferSize , UErrorCode * status ) {\n LMBCSClone * newLMBCS ;\n UConverterDataLMBCS * extraInfo ;\n int32_t i ;\n if ( * pBufferSize <= 0 ) {\n * pBufferSize = ( int32_t ) sizeof ( LMBCSClone ) ;\n return NULL ;\n }\n extraInfo = ( UConverterDataLMBCS * ) cnv -> extraInfo ;\n newLMBCS = ( LMBCSClone * ) stackBuffer ;\n uprv_memcpy ( & newLMBCS -> lmbcs , extraInfo , sizeof ( UConverterDataLMBCS ) ) ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST ;\n ++ i ) {\n if ( extraInfo -> OptGrpConverter [ i ] != NULL ) {\n ucnv_incrementRefCount ( extraInfo -> OptGrpConverter [ i ] ) ;\n }\n }\n newLMBCS -> cnv . extraInfo = & newLMBCS -> lmbcs ;\n newLMBCS -> cnv . isExtraLocal = TRUE ;\n return & newLMBCS -> cnv ;\n }\n static size_t LMBCSConversionWorker ( UConverterDataLMBCS * extraInfo , ulmbcs_byte_t group , ulmbcs_byte_t * pStartLMBCS , UChar * pUniChar , ulmbcs_byte_t * lastConverterIndex , UBool * groups_tried ) {\n ulmbcs_byte_t * pLMBCS = pStartLMBCS ;\n UConverterSharedData * xcnv = extraInfo -> OptGrpConverter [ group ] ;\n int bytesConverted ;\n uint32_t value ;\n ulmbcs_byte_t firstByte ;\n U_ASSERT ( xcnv ) ;\n U_ASSERT ( group < ULMBCS_GRP_UNICODE ) ;\n bytesConverted = ucnv_MBCSFromUChar32 ( xcnv , * pUniChar , & value , FALSE ) ;\n if ( bytesConverted > 0 ) {\n firstByte = ( ulmbcs_byte_t ) ( value >> ( ( bytesConverted - 1 ) * 8 ) ) ;\n }\n else {\n groups_tried [ group ] = TRUE ;\n return 0 ;\n }\n * lastConverterIndex = group ;\n U_ASSERT ( ( firstByte <= ULMBCS_C0END ) || ( firstByte >= ULMBCS_C1START ) || ( group == ULMBCS_GRP_EXCEPT ) ) ;\n if ( group != ULMBCS_GRP_EXCEPT && extraInfo -> OptGroup != group ) {\n * pLMBCS ++ = group ;\n if ( bytesConverted == 1 && group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n * pLMBCS ++ = group ;\n }\n }\n if ( bytesConverted == 1 && firstByte < 0x20 ) return 0 ;\n switch ( bytesConverted ) {\n case 4 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 24 ) ;\n U_FALLTHROUGH ;\n case 3 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 16 ) ;\n U_FALLTHROUGH ;\n case 2 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 8 ) ;\n U_FALLTHROUGH ;\n case 1 : * pLMBCS ++ = ( ulmbcs_byte_t ) value ;\n U_FALLTHROUGH ;\n default : break ;\n }\n return ( pLMBCS - pStartLMBCS ) ;\n }\n static size_t LMBCSConvertUni ( ulmbcs_byte_t * pLMBCS , UChar uniChar ) {\n uint8_t LowCh = ( uint8_t ) ( uniChar & 0x00FF ) ;\n uint8_t HighCh = ( uint8_t ) ( uniChar >> 8 ) ;\n * pLMBCS ++ = ULMBCS_GRP_UNICODE ;\n if ( LowCh == 0 ) {\n * pLMBCS ++ = ULMBCS_UNICOMPATZERO ;\n * pLMBCS ++ = HighCh ;\n }\n else {\n * pLMBCS ++ = HighCh ;\n * pLMBCS ++ = LowCh ;\n }\n return ULMBCS_UNICODE_SIZE ;\n }\n static void _LMBCSFromUnicode ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n ulmbcs_byte_t lastConverterIndex = 0 ;\n UChar uniChar ;\n ulmbcs_byte_t LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n ulmbcs_byte_t * pLMBCS ;\n int32_t bytes_written ;\n UBool groups_tried [ ULMBCS_GRP_LAST + 1 ] ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n int sourceIndex = 0 ;\n ulmbcs_byte_t OldConverterIndex = 0 ;\n while ( args -> source < args -> sourceLimit && ! U_FAILURE ( * err ) ) {\n OldConverterIndex = extraInfo -> localeConverterIndex ;\n if ( args -> target >= args -> targetLimit ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n uniChar = * ( args -> source ) ;\n bytes_written = 0 ;\n pLMBCS = LMBCS ;\n if ( ( uniChar >= 0x80 ) && ( uniChar <= 0xff ) && ( uniChar != 0xB1 ) && ( uniChar != 0xD7 ) && ( uniChar != 0xF7 ) && ( uniChar != 0xB0 ) && ( uniChar != 0xB4 ) && ( uniChar != 0xB6 ) && ( uniChar != 0xA7 ) && ( uniChar != 0xA8 ) ) {\n extraInfo -> localeConverterIndex = ULMBCS_GRP_L1 ;\n }\n if ( ( ( uniChar > ULMBCS_C0END ) && ( uniChar < ULMBCS_C1START ) ) || uniChar == 0 || uniChar == ULMBCS_HT || uniChar == ULMBCS_CR || uniChar == ULMBCS_LF || uniChar == ULMBCS_123SYSTEMRANGE ) {\n * pLMBCS ++ = ( ulmbcs_byte_t ) uniChar ;\n bytes_written = 1 ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t group = FindLMBCSUniRange ( uniChar ) ;\n if ( group == ULMBCS_GRP_UNICODE ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group == ULMBCS_GRP_CTRL ) {\n if ( uniChar <= ULMBCS_C0END ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( ULMBCS_CTRLOFFSET + uniChar ) ;\n }\n else if ( uniChar >= ULMBCS_C1START && uniChar <= ULMBCS_C1START + ULMBCS_CTRLOFFSET ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( uniChar & 0x00FF ) ;\n }\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group < ULMBCS_GRP_UNICODE ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , group , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n uprv_memset ( groups_tried , 0 , sizeof ( groups_tried ) ) ;\n if ( ( extraInfo -> OptGroup != 1 ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> OptGroup ) ) ) {\n if ( extraInfo -> localeConverterIndex < ULMBCS_DOUBLEOPTGROUP_START ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_L1 , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n else {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && ( extraInfo -> localeConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> localeConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written && ( lastConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , lastConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , lastConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t grp_start ;\n ulmbcs_byte_t grp_end ;\n ulmbcs_byte_t grp_ix ;\n grp_start = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_DOUBLEOPTGROUP_START : ULMBCS_GRP_L1 ) ;\n grp_end = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_GRP_LAST : ULMBCS_GRP_TH ) ;\n if ( group == ULMBCS_AMBIGUOUS_ALL ) {\n grp_start = ULMBCS_GRP_L1 ;\n grp_end = ULMBCS_GRP_LAST ;\n }\n for ( grp_ix = grp_start ;\n grp_ix <= grp_end && ! bytes_written ;\n grp_ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ grp_ix ] && ! groups_tried [ grp_ix ] ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , grp_ix , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && grp_start == ULMBCS_GRP_L1 ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n }\n }\n args -> source ++ ;\n pLMBCS = LMBCS ;\n while ( args -> target < args -> targetLimit && bytes_written -- ) {\n * ( args -> target ) ++ = * pLMBCS ++ ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = sourceIndex ;\n }\n }\n sourceIndex ++ ;\n if ( bytes_written > 0 ) {\n uint8_t * pErrorBuffer = args -> converter -> charErrorBuffer ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n args -> converter -> charErrorBufferLength = ( int8_t ) bytes_written ;\n while ( bytes_written -- ) {\n * pErrorBuffer ++ = * pLMBCS ++ ;\n }\n }\n extraInfo -> localeConverterIndex = OldConverterIndex ;\n }\n }\n static UChar GetUniFromLMBCSUni ( char const * * ppLMBCSin ) {\n uint8_t HighCh = * ( * ppLMBCSin ) ++ ;\n uint8_t LowCh = * ( * ppLMBCSin ) ++ ;\n if ( HighCh == ULMBCS_UNICOMPATZERO ) {\n HighCh = LowCh ;\n LowCh = 0 ;\n }\n return ( UChar ) ( ( HighCh << 8 ) | LowCh ) ;\n }\n # define CHECK_SOURCE_LIMIT ( index ) if ( args -> source + index > args -> sourceLimit ) {\n * err = U_TRUNCATED_CHAR_FOUND ;\n args -> source = args -> sourceLimit ;\n return 0xffff ;\n }\n static UChar32 _LMBCSGetNextUCharWorker ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n UChar32 uniChar = 0 ;\n ulmbcs_byte_t CurByte ;\n if ( args -> source >= args -> sourceLimit ) {\n * err = U_ILLEGAL_ARGUMENT_ERROR ;\n return 0xffff ;\n }\n CurByte = * ( ( ulmbcs_byte_t * ) ( args -> source ++ ) ) ;\n if ( ( ( CurByte > ULMBCS_C0END ) && ( CurByte < ULMBCS_C1START ) ) || ( CurByte == 0 ) || CurByte == ULMBCS_HT || CurByte == ULMBCS_CR || CurByte == ULMBCS_LF || CurByte == ULMBCS_123SYSTEMRANGE ) {\n uniChar = CurByte ;\n }\n else {\n UConverterDataLMBCS * extraInfo ;\n ulmbcs_byte_t group ;\n UConverterSharedData * cnv ;\n if ( CurByte == ULMBCS_GRP_CTRL ) {\n ulmbcs_byte_t C0C1byte ;\n CHECK_SOURCE_LIMIT ( 1 ) ;\n C0C1byte = * ( args -> source ) ++ ;\n uniChar = ( C0C1byte < ULMBCS_C1START ) ? C0C1byte - ULMBCS_CTRLOFFSET : C0C1byte ;\n }\n else if ( CurByte == ULMBCS_GRP_UNICODE ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n return GetUniFromLMBCSUni ( & ( args -> source ) ) ;\n }\n else if ( CurByte <= ULMBCS_CTRLOFFSET ) {\n group = CurByte ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n if ( group > ULMBCS_GRP_LAST || ( cnv = extraInfo -> OptGrpConverter [ group ] ) == NULL ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n if ( * args -> source == group ) {\n ++ args -> source ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 1 , FALSE ) ;\n ++ args -> source ;\n }\n else {\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 2 , FALSE ) ;\n args -> source += 2 ;\n }\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n CurByte = * ( args -> source ) ++ ;\n if ( CurByte >= ULMBCS_C1START ) {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n else {\n char bytes [ 2 ] ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n cnv = extraInfo -> OptGrpConverter [ ULMBCS_GRP_EXCEPT ] ;\n bytes [ 0 ] = group ;\n bytes [ 1 ] = CurByte ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , bytes , 2 , FALSE ) ;\n }\n }\n }\n else if ( CurByte >= ULMBCS_C1START ) {\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n group = extraInfo -> OptGroup ;\n cnv = extraInfo -> OptGrpConverter [ group ] ;\n if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n if ( ! ucnv_MBCSIsLeadByte ( cnv , CurByte ) ) {\n CHECK_SOURCE_LIMIT ( 0 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 1 , FALSE ) ;\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 2 , FALSE ) ;\n ++ args -> source ;\n }\n }\n else {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n }\n }\n return uniChar ;\n }\n static void _LMBCSToUnicodeWithOffsets ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n char LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n UChar uniChar ;\n const char * saveSource ;\n const char * pStartLMBCS = args -> source ;\n const char * errSource = NULL ;\n int8_t savebytes = 0 ;\n while ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit > args -> target ) {\n saveSource = args -> source ;\n if ( args -> converter -> toULength ) {\n const char * saveSourceLimit ;\n size_t size_old = args -> converter -> toULength ;\n size_t size_new_maybe_1 = sizeof ( LMBCS ) - size_old ;\n size_t size_new_maybe_2 = args -> sourceLimit - args -> source ;\n size_t size_new = ( size_new_maybe_1 < size_new_maybe_2 ) ? size_new_maybe_1 : size_new_maybe_2 ;\n uprv_memcpy ( LMBCS , args -> converter -> toUBytes , size_old ) ;\n uprv_memcpy ( LMBCS + size_old , args -> source , size_new ) ;\n saveSourceLimit = args -> sourceLimit ;\n args -> source = errSource = LMBCS ;\n args -> sourceLimit = LMBCS + size_old + size_new ;\n savebytes = ( int8_t ) ( size_old + size_new ) ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n args -> source = saveSource + ( ( args -> source - LMBCS ) - size_old ) ;\n args -> sourceLimit = saveSourceLimit ;\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n args -> converter -> toULength = savebytes ;\n uprv_memcpy ( args -> converter -> toUBytes , LMBCS , savebytes ) ;\n args -> source = args -> sourceLimit ;\n * err = U_ZERO_ERROR ;\n return ;\n }\n else {\n args -> converter -> toULength = 0 ;\n }\n }\n else {\n errSource = saveSource ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n savebytes = ( int8_t ) ( args -> source - saveSource ) ;\n }\n if ( U_SUCCESS ( * err ) ) {\n if ( uniChar < 0xfffe ) {\n * ( args -> target ) ++ = uniChar ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = ( int32_t ) ( saveSource - pStartLMBCS ) ;\n }\n }\n else if ( uniChar == 0xfffe ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n }\n if ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit <= args -> target ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n else if ( U_FAILURE ( * err ) ) {\n args -> converter -> toULength = savebytes ;\n if ( savebytes > 0 ) {\n uprv_memcpy ( args -> converter -> toUBytes , errSource , savebytes ) ;\n }\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n * err = U_ZERO_ERROR ;\n }\n }\n }\n DEFINE_LMBCS_OPEN ( 1 ) DEFINE_LMBCS_OPEN ( 2 ) DEFINE_LMBCS_OPEN ( 3 ) DEFINE_LMBCS_OPEN ( 4 ) DEFINE_LMBCS_OPEN ( 5 ) DEFINE_LMBCS_OPEN ( 6 ) DEFINE_LMBCS_OPEN ( 8 ) DEFINE_LMBCS_OPEN ( 11 ) DEFINE_LMBCS_OPEN ( 16 )"}
{"idx": 3271, "target": 0, "func": "X509_REQ * d2i_X509_REQ_bio ( BIO * bp , X509_REQ * * req ) {\n return ASN1_item_d2i_bio ( ASN1_ITEM_rptr ( X509_REQ ) , bp , req ) ;\n }"}
{"idx": 3272, "target": 0, "func": "int match_pattern ( const char * s , const char * pattern ) {\n for ( ;\n ;\n ) {\n if ( ! * pattern ) return ( ! * s ) ;\n if ( * pattern == '*' ) {\n pattern ++ ;\n if ( ! * pattern ) return ( 1 ) ;\n if ( * pattern != '?' && * pattern != '*' ) {\n for ( ;\n * s ;\n s ++ ) {\n if ( * s == * pattern && match_pattern ( s + 1 , pattern + 1 ) ) return ( 1 ) ;\n }\n return ( 0 ) ;\n }\n for ( ;\n * s ;\n s ++ ) {\n if ( match_pattern ( s , pattern ) ) return ( 1 ) ;\n }\n return ( 0 ) ;\n }\n if ( ! * s ) return ( 0 ) ;\n if ( * pattern != '?' && * pattern != * s ) return ( 0 ) ;\n s ++ ;\n pattern ++ ;\n }\n }"}
{"idx": 3273, "target": 0, "func": "static int check_authkeys_file ( struct ssh * ssh , struct passwd * pw , FILE * f , char * file , struct sshkey * key , struct sshauthopt * * authoptsp ) {\n char * cp , * line = NULL , loc [ 256 ] ;\n size_t linesize = 0 ;\n int found_key = 0 ;\n u_long linenum = 0 ;\n if ( authoptsp != NULL ) * authoptsp = NULL ;\n while ( getline ( & line , & linesize , f ) != - 1 ) {\n linenum ++ ;\n if ( found_key ) continue ;\n cp = line ;\n skip_space ( & cp ) ;\n if ( ! * cp || * cp == '\\n' || * cp == '#' ) continue ;\n snprintf ( loc , sizeof ( loc ) , \"%.200s:%lu\" , file , linenum ) ;\n if ( check_authkey_line ( ssh , pw , key , cp , loc , authoptsp ) == 0 ) found_key = 1 ;\n }\n free ( line ) ;\n return found_key ;\n }"}
{"idx": 3274, "target": 0, "func": "void qemu_cpu_kick_self ( void ) {\n # ifndef _WIN32 assert ( current_cpu ) ;\n if ( ! current_cpu -> thread_kicked ) {\n qemu_cpu_kick_thread ( current_cpu ) ;\n current_cpu -> thread_kicked = true ;\n }\n # else abort ( ) ;\n # endif }"}
{"idx": 3275, "target": 0, "func": "static int test_decode_integer_end_of_input ( xd3_stream * stream , int unused ) {\n return test_read_integer_error ( stream , 1 , \"end-of-input in read_integer\" ) ;\n }"}
{"idx": 3276, "target": 0, "func": "void proto_register_u3v ( void ) {\n static gint * ett [ ] = {\n & ett_u3v , & ett_u3v_cmd , & ett_u3v_flags , & ett_u3v_ack , & ett_u3v_payload_cmd , & ett_u3v_payload_ack , & ett_u3v_payload_ack_subtree , & ett_u3v_payload_cmd_subtree , & ett_u3v_bootstrap_fields , & ett_u3v_stream_leader , & ett_u3v_stream_trailer , & ett_u3v_stream_payload , & ett_u3v_device_info_descriptor , & ett_u3v_device_info_descriptor_speed_support , & ett_u3v_device_info_descriptor_gencp_version , & ett_u3v_device_info_descriptor_u3v_version , }\n ;\n proto_u3v = proto_register_protocol ( \"USB 3 Vision\" , \"U3V\" , \"u3v\" ) ;\n proto_register_field_array ( proto_u3v , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n register_dissector ( \"u3v\" , dissect_u3v , proto_u3v ) ;\n }"}
{"idx": 3277, "target": 0, "func": "static gboolean qio_channel_websock_source_dispatch ( GSource * source , GSourceFunc callback , gpointer user_data ) {\n QIOChannelFunc func = ( QIOChannelFunc ) callback ;\n QIOChannelWebsockSource * wsource = ( QIOChannelWebsockSource * ) source ;\n return ( * func ) ( QIO_CHANNEL ( wsource -> wioc ) , qio_channel_websock_source_check ( source ) , user_data ) ;\n }"}
{"idx": 3278, "target": 0, "func": "int upx_inflate2d ( const char * src , uint32_t ssize , char * dst , uint32_t * dsize , uint32_t upx0 , uint32_t upx1 , uint32_t ep ) {\n int32_t backbytes , unp_offset = - 1 ;\n uint32_t backsize , myebx = 0 , scur = 0 , dcur = 0 , i , magic [ ] = {\n 0x11c , 0x124 , 0 }\n ;\n int oob ;\n while ( 1 ) {\n while ( ( oob = doubleebx ( src , & myebx , & scur , ssize ) ) == 1 ) {\n if ( scur >= ssize || dcur >= * dsize ) return - 1 ;\n dst [ dcur ++ ] = src [ scur ++ ] ;\n }\n if ( oob == - 1 ) return - 1 ;\n backbytes = 1 ;\n while ( 1 ) {\n if ( ( oob = doubleebx ( src , & myebx , & scur , ssize ) ) == - 1 ) return - 1 ;\n backbytes = backbytes * 2 + oob ;\n if ( ( oob = doubleebx ( src , & myebx , & scur , ssize ) ) == - 1 ) return - 1 ;\n if ( oob ) break ;\n backbytes -- ;\n if ( ( oob = doubleebx ( src , & myebx , & scur , ssize ) ) == - 1 ) return - 1 ;\n backbytes = backbytes * 2 + oob ;\n }\n backsize = 0 ;\n backbytes -= 3 ;\n if ( backbytes >= 0 ) {\n if ( scur >= ssize ) return - 1 ;\n backbytes <<= 8 ;\n backbytes += ( unsigned char ) ( src [ scur ++ ] ) ;\n backbytes ^= 0xffffffff ;\n if ( ! backbytes ) break ;\n backsize = backbytes & 1 ;\n CLI_SAR ( backbytes , 1 ) ;\n unp_offset = backbytes ;\n }\n else {\n if ( ( backsize = ( uint32_t ) doubleebx ( src , & myebx , & scur , ssize ) ) == 0xffffffff ) return - 1 ;\n }\n if ( ( oob = doubleebx ( src , & myebx , & scur , ssize ) ) == - 1 ) return - 1 ;\n backsize = backsize * 2 + oob ;\n if ( ! backsize ) {\n backsize ++ ;\n do {\n if ( ( oob = doubleebx ( src , & myebx , & scur , ssize ) ) == - 1 ) return - 1 ;\n backsize = backsize * 2 + oob ;\n }\n while ( ( oob = doubleebx ( src , & myebx , & scur , ssize ) ) == 0 ) ;\n if ( oob == - 1 ) return - 1 ;\n backsize += 2 ;\n }\n if ( ( uint32_t ) unp_offset < 0xfffffb00 ) backsize ++ ;\n backsize ++ ;\n if ( ! CLI_ISCONTAINED ( dst , * dsize , dst + dcur + unp_offset , backsize ) || ! CLI_ISCONTAINED ( dst , * dsize , dst + dcur , backsize ) || unp_offset >= 0 ) return - 1 ;\n for ( i = 0 ;\n i < backsize ;\n i ++ ) dst [ dcur + i ] = dst [ dcur + unp_offset + i ] ;\n dcur += backsize ;\n }\n return pefromupx ( src , ssize , dst , dsize , ep , upx0 , upx1 , magic , dcur ) ;\n }"}
{"idx": 3279, "target": 0, "func": "static void idr_set_num_beutf16 ( unsigned char * p , int num ) {\n static const uint16_t xdig [ ] = {\n 0x0030 , 0x0031 , 0x0032 , 0x0033 , 0x0034 , 0x0035 , 0x0036 , 0x0037 , 0x0038 , 0x0039 , 0x0041 , 0x0042 , 0x0043 , 0x0044 , 0x0045 , 0x0046 , 0x0047 , 0x0048 , 0x0049 , 0x004A , 0x004B , 0x004C , 0x004D , 0x004E , 0x004F , 0x0050 , 0x0051 , 0x0052 , 0x0053 , 0x0054 , 0x0055 , 0x0056 , 0x0057 , 0x0058 , 0x0059 , 0x005A }\n ;\n # define XDIG_CNT ( sizeof ( xdig ) / sizeof ( xdig [ 0 ] ) ) num %= XDIG_CNT * XDIG_CNT * XDIG_CNT ;\n archive_be16enc ( p , xdig [ ( num / ( XDIG_CNT * XDIG_CNT ) ) ] ) ;\n num %= XDIG_CNT * XDIG_CNT ;\n archive_be16enc ( p + 2 , xdig [ ( num / XDIG_CNT ) ] ) ;\n num %= XDIG_CNT ;\n archive_be16enc ( p + 4 , xdig [ num ] ) ;\n }"}
{"idx": 3280, "target": 0, "func": "static int psf_close_fd ( int fd ) {\n int retval ;\n if ( fd < 0 ) return 0 ;\n while ( ( retval = close ( fd ) ) == - 1 && errno == EINTR ) ;\n return retval ;\n }"}
{"idx": 3281, "target": 0, "func": "TEST_F ( TemplateURLTest , RLZ ) {\n base : : string16 rlz_string = search_terms_data_ . GetRlzParameterValue ( false ) ;\n TemplateURLData data ;\n data . SetURL ( \"http://bar/?{\ngoogle:RLZ}\n{\nsearchTerms}\n\" ) ;\n TemplateURL url ( data ) ;\n EXPECT_TRUE ( url . url_ref ( ) . IsValid ( search_terms_data_ ) ) ;\n ASSERT_TRUE ( url . url_ref ( ) . SupportsReplacement ( search_terms_data_ ) ) ;\n GURL result ( url . url_ref ( ) . ReplaceSearchTerms ( TemplateURLRef : : SearchTermsArgs ( ASCIIToUTF16 ( \"x\" ) ) , search_terms_data_ ) ) ;\n ASSERT_TRUE ( result . is_valid ( ) ) ;\n EXPECT_EQ ( \"http://bar/?rlz=\" + base : : UTF16ToUTF8 ( rlz_string ) + \"&x\" , result . spec ( ) ) ;\n }"}
{"idx": 3282, "target": 0, "func": "static void pdf_run_gs_OPM ( fz_context * ctx , pdf_processor * proc , int i ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_gstate * gstate = pdf_flush_text ( ctx , pr ) ;\n gstate -> stroke . color_params . opm = i ;\n gstate -> fill . color_params . opm = i ;\n }"}
{"idx": 3283, "target": 0, "func": "static cmsBool Type_Data_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) {\n cmsICCData * BinData = ( cmsICCData * ) Ptr ;\n if ( ! _cmsWriteUInt32Number ( io , BinData -> flag ) ) return FALSE ;\n return io -> Write ( io , BinData -> len , BinData -> data ) ;\n cmsUNUSED_PARAMETER ( nItems ) ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 3284, "target": 0, "func": "static inline char * http_hdr_version_to_string ( int32_t version , char * buf9 ) {\n ink_assert ( HTTP_MAJOR ( version ) < 10 ) ;\n ink_assert ( HTTP_MINOR ( version ) < 10 ) ;\n buf9 [ 0 ] = 'H' ;\n buf9 [ 1 ] = 'T' ;\n buf9 [ 2 ] = 'T' ;\n buf9 [ 3 ] = 'P' ;\n buf9 [ 4 ] = '/' ;\n buf9 [ 5 ] = '0' + HTTP_MAJOR ( version ) ;\n buf9 [ 6 ] = '.' ;\n buf9 [ 7 ] = '0' + HTTP_MINOR ( version ) ;\n buf9 [ 8 ] = '\\0' ;\n return ( buf9 ) ;\n }"}
{"idx": 3285, "target": 0, "func": "gboolean logcat_text_long_dump_open ( wtap_dumper * wdh , int * err _U_ ) {\n struct dumper_t * dumper ;\n dumper = ( struct dumper_t * ) g_malloc ( sizeof ( struct dumper_t ) ) ;\n dumper -> type = DUMP_LONG ;\n wdh -> priv = dumper ;\n wdh -> subtype_write = logcat_dump_text ;\n wdh -> subtype_close = NULL ;\n return TRUE ;\n }"}
{"idx": 3286, "target": 1, "func": "char * curl_easy_unescape ( struct Curl_easy * data , const char * string , int length , int * olen ) {\n char * str = NULL ;\n if ( length >= 0 ) {\n size_t inputlen = length ;\n size_t outputlen ;\n CURLcode res = Curl_urldecode ( data , string , inputlen , & str , & outputlen , FALSE ) ;\n if ( res ) return NULL ;\n if ( olen ) * olen = curlx_uztosi ( outputlen ) ;\n }\n return str ;\n }"}
{"idx": 3287, "target": 0, "func": "static afs_int32 listEntry ( struct rx_call * call , afs_int32 aid , struct prcheckentry * aentry , afs_int32 * cid ) {\n afs_int32 code ;\n struct ubik_trans * tt ;\n afs_int32 temp ;\n struct prentry tentry ;\n code = Initdb ( ) ;\n if ( code != PRSUCCESS ) return code ;\n code = ubik_BeginTransReadAny ( dbase , UBIK_READTRANS , & tt ) ;\n if ( code ) return code ;\n code = ubik_SetLock ( tt , 1 , 1 , LOCKREAD ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = read_DbHeader ( tt ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = WhoIsThis ( call , tt , cid ) ;\n if ( code ) ABORT_WITH ( tt , PRPERM ) ;\n temp = FindByID ( tt , aid ) ;\n if ( ! temp ) ABORT_WITH ( tt , PRNOENT ) ;\n code = pr_ReadEntry ( tt , 0 , temp , & tentry ) ;\n if ( code != 0 ) ABORT_WITH ( tt , code ) ;\n if ( ! AccessOK ( tt , * cid , & tentry , PRP_STATUS_MEM , PRP_STATUS_ANY ) ) ABORT_WITH ( tt , PRPERM ) ;\n aentry -> flags = tentry . flags >> PRIVATE_SHIFT ;\n if ( aentry -> flags == 0 ) {\n if ( tentry . flags & PRGRP ) aentry -> flags = prp_group_default >> PRIVATE_SHIFT ;\n else aentry -> flags = prp_user_default >> PRIVATE_SHIFT ;\n }\n aentry -> owner = tentry . owner ;\n aentry -> id = tentry . id ;\n strncpy ( aentry -> name , tentry . name , PR_MAXNAMELEN ) ;\n aentry -> creator = tentry . creator ;\n aentry -> ngroups = tentry . ngroups ;\n aentry -> nusers = tentry . nusers ;\n aentry -> count = tentry . count ;\n memset ( aentry -> reserved , 0 , sizeof ( aentry -> reserved ) ) ;\n code = ubik_EndTrans ( tt ) ;\n if ( code ) return code ;\n return PRSUCCESS ;\n }"}
{"idx": 3288, "target": 0, "func": "static void terminate_readcb ( struct bufferevent * bev , void * arg ) {\n evbuffer_drain ( bev -> output , - 1 ) ;\n }"}
{"idx": 3289, "target": 1, "func": "void cpu_stop_current ( void ) {\n if ( cpu_single_env ) {\n CPUState * cpu_single_cpu = ENV_GET_CPU ( cpu_single_env ) ;\n cpu_single_cpu -> stop = false ;\n cpu_single_cpu -> stopped = true ;\n cpu_exit ( cpu_single_cpu ) ;\n qemu_cond_signal ( & qemu_pause_cond ) ;\n }\n }"}
{"idx": 3290, "target": 0, "func": "static header_field_info * hfinfo_same_name_get_prev ( const header_field_info * hfinfo ) {\n header_field_info * dup_hfinfo ;\n if ( hfinfo -> same_name_prev_id == - 1 ) return NULL ;\n PROTO_REGISTRAR_GET_NTH ( hfinfo -> same_name_prev_id , dup_hfinfo ) ;\n return dup_hfinfo ;\n }"}
{"idx": 3291, "target": 1, "func": "static ossl_inline void lh_ ## type ## _node_usage_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_usage_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING )"}
{"idx": 3292, "target": 0, "func": "int64_t TSHttpTxnClientRespBodyBytesGet ( TSHttpTxn txnp ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n return sm -> client_response_body_bytes ;\n }"}
{"idx": 3293, "target": 1, "func": "bool cephx_verify_authorizer ( CephContext * cct , KeyStore * keys , bufferlist : : iterator & indata , CephXServiceTicketInfo & ticket_info , bufferlist & reply_bl ) {\n __u8 authorizer_v ;\n uint32_t service_id ;\n uint64_t global_id ;\n CryptoKey service_secret ;\n CephXTicketBlob ticket ;\n try {\n : : decode ( authorizer_v , indata ) ;\n : : decode ( global_id , indata ) ;\n : : decode ( service_id , indata ) ;\n : : decode ( ticket , indata ) ;\n }\n catch ( buffer : : end_of_buffer & e ) {\n return false ;\n }\n ldout ( cct , 10 ) << \"verify_authorizer decrypted service \" << ceph_entity_type_name ( service_id ) << \" secret_id=\" << ticket . secret_id << dendl ;\n if ( ticket . secret_id == ( uint64_t ) - 1 ) {\n EntityName name ;\n name . set_type ( service_id ) ;\n if ( ! keys -> get_secret ( name , service_secret ) ) {\n ldout ( cct , 0 ) << \"verify_authorizer could not get general service secret for service \" << ceph_entity_type_name ( service_id ) << \" secret_id=\" << ticket . secret_id << dendl ;\n return false ;\n }\n }\n else {\n if ( ! keys -> get_service_secret ( service_id , ticket . secret_id , service_secret ) ) {\n ldout ( cct , 0 ) << \"verify_authorizer could not get service secret for service \" << ceph_entity_type_name ( service_id ) << \" secret_id=\" << ticket . secret_id << dendl ;\n if ( cct -> _conf -> auth_debug && ticket . secret_id == 0 ) assert ( 0 == \"got secret_id=0\" ) ;\n return false ;\n }\n }\n std : : string error ;\n if ( ! service_secret . get_secret ( ) . length ( ) ) error = \"invalid key\" ;\n else decode_decrypt_enc_bl ( cct , ticket_info , service_secret , ticket . blob , error ) ;\n if ( ! error . empty ( ) ) {\n ldout ( cct , 0 ) << \"verify_authorizer could not decrypt ticket info: error: \" << error << dendl ;\n return false ;\n }\n if ( ticket_info . ticket . global_id != global_id ) {\n ldout ( cct , 0 ) << \"verify_authorizer global_id mismatch: declared id=\" << global_id << \" ticket_id=\" << ticket_info . ticket . global_id << dendl ;\n return false ;\n }\n ldout ( cct , 10 ) << \"verify_authorizer global_id=\" << global_id << dendl ;\n CephXAuthorize auth_msg ;\n if ( decode_decrypt ( cct , auth_msg , ticket_info . session_key , indata , error ) ) {\n ldout ( cct , 0 ) << \"verify_authorizercould not decrypt authorize request with error: \" << error << dendl ;\n return false ;\n }\n CephXAuthorizeReply reply ;\n reply . nonce_plus_one = auth_msg . nonce + 1 ;\n if ( encode_encrypt ( cct , reply , ticket_info . session_key , reply_bl , error ) ) {\n ldout ( cct , 10 ) << \"verify_authorizer: encode_encrypt error: \" << error << dendl ;\n return false ;\n }\n ldout ( cct , 10 ) << \"verify_authorizer ok nonce \" << hex << auth_msg . nonce << dec << \" reply_bl.length()=\" << reply_bl . length ( ) << dendl ;\n return true ;\n }"}
{"idx": 3294, "target": 0, "func": "static int guestfwd_can_read ( void * opaque ) {\n struct GuestFwd * fwd = opaque ;\n return slirp_socket_can_recv ( fwd -> slirp , fwd -> server , fwd -> port ) ;\n }"}
{"idx": 3295, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n const uint8_t * buf_end = buf + avpkt -> size ;\n KgvContext * const c = avctx -> priv_data ;\n int offsets [ 8 ] ;\n uint16_t * out , * prev ;\n int outcnt = 0 , maxcnt ;\n int w , h , i , res ;\n if ( avpkt -> size < 2 ) return AVERROR_INVALIDDATA ;\n w = ( buf [ 0 ] + 1 ) * 8 ;\n h = ( buf [ 1 ] + 1 ) * 8 ;\n buf += 2 ;\n if ( ( res = av_image_check_size ( w , h , 0 , avctx ) ) < 0 ) return res ;\n if ( w != avctx -> width || h != avctx -> height ) {\n if ( c -> prev . data [ 0 ] ) avctx -> release_buffer ( avctx , & c -> prev ) ;\n avcodec_set_dimensions ( avctx , w , h ) ;\n }\n maxcnt = w * h ;\n c -> cur . reference = 3 ;\n if ( ( res = ff_get_buffer ( avctx , & c -> cur ) ) < 0 ) return res ;\n out = ( uint16_t * ) c -> cur . data [ 0 ] ;\n if ( c -> prev . data [ 0 ] ) {\n prev = ( uint16_t * ) c -> prev . data [ 0 ] ;\n }\n else {\n prev = NULL ;\n }\n for ( i = 0 ;\n i < 8 ;\n i ++ ) offsets [ i ] = - 1 ;\n while ( outcnt < maxcnt && buf_end - 2 > buf ) {\n int code = AV_RL16 ( buf ) ;\n buf += 2 ;\n if ( ! ( code & 0x8000 ) ) {\n out [ outcnt ++ ] = code ;\n }\n else {\n int count ;\n int inp_off ;\n uint16_t * inp ;\n if ( ( code & 0x6000 ) == 0x6000 ) {\n int oidx = ( code >> 10 ) & 7 ;\n int start ;\n count = ( code & 0x3FF ) + 3 ;\n if ( offsets [ oidx ] < 0 ) {\n if ( buf_end - 3 < buf ) break ;\n offsets [ oidx ] = AV_RL24 ( buf ) ;\n buf += 3 ;\n }\n start = ( outcnt + offsets [ oidx ] ) % maxcnt ;\n if ( maxcnt - start < count ) break ;\n if ( ! prev ) {\n av_log ( avctx , AV_LOG_ERROR , \"Frame reference does not exist\\n\" ) ;\n break ;\n }\n inp = prev ;\n inp_off = start ;\n }\n else {\n int offset = ( code & 0x1FFF ) + 1 ;\n if ( ! ( code & 0x6000 ) ) {\n count = 2 ;\n }\n else if ( ( code & 0x6000 ) == 0x2000 ) {\n count = 3 ;\n }\n else {\n if ( buf_end - 1 < buf ) break ;\n count = 4 + * buf ++ ;\n }\n if ( outcnt < offset ) break ;\n inp = out ;\n inp_off = outcnt - offset ;\n }\n if ( maxcnt - outcnt < count ) break ;\n for ( i = inp_off ;\n i < count + inp_off ;\n i ++ ) {\n out [ outcnt ++ ] = inp [ i ] ;\n }\n }\n }\n if ( outcnt - maxcnt ) av_log ( avctx , AV_LOG_DEBUG , \"frame finished with %d diff\\n\" , outcnt - maxcnt ) ;\n * got_frame = 1 ;\n * ( AVFrame * ) data = c -> cur ;\n if ( c -> prev . data [ 0 ] ) avctx -> release_buffer ( avctx , & c -> prev ) ;\n FFSWAP ( AVFrame , c -> cur , c -> prev ) ;\n return avpkt -> size ;\n }"}
{"idx": 3296, "target": 0, "func": "static int check_k_link ( MI_CHECK * param , register MI_INFO * info , uint nr ) {\n my_off_t next_link ;\n uint block_size = ( nr + 1 ) * MI_MIN_KEY_BLOCK_LENGTH ;\n ha_rows records ;\n char llbuff [ 21 ] , llbuff2 [ 21 ] ;\n uchar * buff ;\n DBUG_ENTER ( \"check_k_link\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"block_size: %u\" , block_size ) ) ;\n if ( param -> testflag & T_VERBOSE ) printf ( \"block_size %4u:\" , block_size ) ;\n next_link = info -> s -> state . key_del [ nr ] ;\n records = ( ha_rows ) ( info -> state -> key_file_length / block_size ) ;\n while ( next_link != HA_OFFSET_ERROR && records > 0 ) {\n if ( * killed_ptr ( param ) ) DBUG_RETURN ( 1 ) ;\n if ( param -> testflag & T_VERBOSE ) printf ( \"%16s\" , llstr ( next_link , llbuff ) ) ;\n if ( next_link + block_size > info -> state -> key_file_length ) {\n mi_check_print_error ( param , \"Invalid key block position: %s \" \"key block size: %u file_length: %s\" , llstr ( next_link , llbuff ) , block_size , llstr ( info -> state -> key_file_length , llbuff2 ) ) ;\n DBUG_RETURN ( 1 ) ;\n }\n if ( next_link & ( MI_MIN_KEY_BLOCK_LENGTH - 1 ) ) {\n mi_check_print_error ( param , \"Mis-aligned key block: %s \" \"minimum key block length: %u\" , llstr ( next_link , llbuff ) , MI_MIN_KEY_BLOCK_LENGTH ) ;\n DBUG_RETURN ( 1 ) ;\n }\n if ( ! ( buff = key_cache_read ( info -> s -> key_cache , info -> s -> kfile , next_link , DFLT_INIT_HITS , ( uchar * ) info -> buff , MI_MIN_KEY_BLOCK_LENGTH , MI_MIN_KEY_BLOCK_LENGTH , 1 ) ) ) {\n mi_check_print_error ( param , \"key cache read error for block: %s\" , llstr ( next_link , llbuff ) ) ;\n DBUG_RETURN ( 1 ) ;\n }\n next_link = mi_sizekorr ( buff ) ;\n records -- ;\n param -> key_file_blocks += block_size ;\n }\n if ( param -> testflag & T_VERBOSE ) {\n if ( next_link != HA_OFFSET_ERROR ) printf ( \"%16s\\n\" , llstr ( next_link , llbuff ) ) ;\n else puts ( \"\" ) ;\n }\n DBUG_RETURN ( next_link != HA_OFFSET_ERROR ) ;\n }"}
{"idx": 3297, "target": 0, "func": "IMPLEMENT_dtls1_meth_func ( DTLSv1_server_method , dtls1_accept , ssl_undefined_function , dtls1_get_server_method ) int dtls1_accept ( SSL * s ) {\n BUF_MEM * buf ;\n unsigned long Time = ( unsigned long ) time ( NULL ) ;\n void ( * cb ) ( const SSL * ssl , int type , int val ) = NULL ;\n unsigned long alg_k ;\n int ret = - 1 ;\n int new_state , state , skip = 0 ;\n int listen ;\n # ifndef OPENSSL_NO_SCTP unsigned char sctpauthkey [ 64 ] ;\n char labelbuffer [ sizeof ( DTLS1_SCTP_AUTH_LABEL ) ] ;\n # endif RAND_add ( & Time , sizeof ( Time ) , 0 ) ;\n ERR_clear_error ( ) ;\n clear_sys_error ( ) ;\n if ( s -> info_callback != NULL ) cb = s -> info_callback ;\n else if ( s -> ctx -> info_callback != NULL ) cb = s -> ctx -> info_callback ;\n listen = s -> d1 -> listen ;\n s -> in_handshake ++ ;\n if ( ! SSL_in_init ( s ) || SSL_in_before ( s ) ) SSL_clear ( s ) ;\n s -> d1 -> listen = listen ;\n # ifndef OPENSSL_NO_SCTP BIO_ctrl ( SSL_get_wbio ( s ) , BIO_CTRL_DGRAM_SCTP_SET_IN_HANDSHAKE , s -> in_handshake , NULL ) ;\n # endif if ( s -> cert == NULL ) {\n SSLerr ( SSL_F_DTLS1_ACCEPT , SSL_R_NO_CERTIFICATE_SET ) ;\n return ( - 1 ) ;\n }\n # ifndef OPENSSL_NO_HEARTBEATS if ( s -> tlsext_hb_pending ) {\n dtls1_stop_timer ( s ) ;\n s -> tlsext_hb_pending = 0 ;\n s -> tlsext_hb_seq ++ ;\n }\n # endif for ( ;\n ;\n ) {\n state = s -> state ;\n switch ( s -> state ) {\n case SSL_ST_RENEGOTIATE : s -> renegotiate = 1 ;\n case SSL_ST_BEFORE : case SSL_ST_ACCEPT : case SSL_ST_BEFORE | SSL_ST_ACCEPT : case SSL_ST_OK | SSL_ST_ACCEPT : s -> server = 1 ;\n if ( cb != NULL ) cb ( s , SSL_CB_HANDSHAKE_START , 1 ) ;\n if ( ( s -> version & 0xff00 ) != ( DTLS1_VERSION & 0xff00 ) ) {\n SSLerr ( SSL_F_DTLS1_ACCEPT , ERR_R_INTERNAL_ERROR ) ;\n return - 1 ;\n }\n s -> type = SSL_ST_ACCEPT ;\n if ( s -> init_buf == NULL ) {\n if ( ( buf = BUF_MEM_new ( ) ) == NULL ) {\n ret = - 1 ;\n goto end ;\n }\n if ( ! BUF_MEM_grow ( buf , SSL3_RT_MAX_PLAIN_LENGTH ) ) {\n BUF_MEM_free ( buf ) ;\n ret = - 1 ;\n goto end ;\n }\n s -> init_buf = buf ;\n }\n if ( ! ssl3_setup_buffers ( s ) ) {\n ret = - 1 ;\n goto end ;\n }\n s -> init_num = 0 ;\n s -> d1 -> change_cipher_spec_ok = 0 ;\n s -> s3 -> change_cipher_spec = 0 ;\n if ( s -> state != SSL_ST_RENEGOTIATE ) {\n # ifndef OPENSSL_NO_SCTP if ( ! BIO_dgram_is_sctp ( SSL_get_wbio ( s ) ) ) # endif if ( ! ssl_init_wbio_buffer ( s , 1 ) ) {\n ret = - 1 ;\n goto end ;\n }\n ssl3_init_finished_mac ( s ) ;\n s -> state = SSL3_ST_SR_CLNT_HELLO_A ;\n s -> ctx -> stats . sess_accept ++ ;\n }\n else {\n s -> ctx -> stats . sess_accept_renegotiate ++ ;\n s -> state = SSL3_ST_SW_HELLO_REQ_A ;\n }\n break ;\n case SSL3_ST_SW_HELLO_REQ_A : case SSL3_ST_SW_HELLO_REQ_B : s -> shutdown = 0 ;\n dtls1_clear_record_buffer ( s ) ;\n dtls1_start_timer ( s ) ;\n ret = dtls1_send_hello_request ( s ) ;\n if ( ret <= 0 ) goto end ;\n s -> s3 -> tmp . next_state = SSL3_ST_SR_CLNT_HELLO_A ;\n s -> state = SSL3_ST_SW_FLUSH ;\n s -> init_num = 0 ;\n ssl3_init_finished_mac ( s ) ;\n break ;\n case SSL3_ST_SW_HELLO_REQ_C : s -> state = SSL_ST_OK ;\n break ;\n case SSL3_ST_SR_CLNT_HELLO_A : case SSL3_ST_SR_CLNT_HELLO_B : case SSL3_ST_SR_CLNT_HELLO_C : s -> shutdown = 0 ;\n ret = ssl3_get_client_hello ( s ) ;\n if ( ret <= 0 ) goto end ;\n dtls1_stop_timer ( s ) ;\n if ( ret == 1 && ( SSL_get_options ( s ) & SSL_OP_COOKIE_EXCHANGE ) ) s -> state = DTLS1_ST_SW_HELLO_VERIFY_REQUEST_A ;\n else s -> state = SSL3_ST_SW_SRVR_HELLO_A ;\n s -> init_num = 0 ;\n if ( listen ) {\n memcpy ( s -> s3 -> write_sequence , s -> s3 -> read_sequence , sizeof ( s -> s3 -> write_sequence ) ) ;\n }\n if ( listen && s -> state == SSL3_ST_SW_SRVR_HELLO_A ) {\n ret = 2 ;\n s -> d1 -> listen = 0 ;\n s -> d1 -> handshake_read_seq = 2 ;\n s -> d1 -> handshake_write_seq = 1 ;\n s -> d1 -> next_handshake_write_seq = 1 ;\n goto end ;\n }\n break ;\n case DTLS1_ST_SW_HELLO_VERIFY_REQUEST_A : case DTLS1_ST_SW_HELLO_VERIFY_REQUEST_B : ret = dtls1_send_hello_verify_request ( s ) ;\n if ( ret <= 0 ) goto end ;\n s -> state = SSL3_ST_SW_FLUSH ;\n s -> s3 -> tmp . next_state = SSL3_ST_SR_CLNT_HELLO_A ;\n if ( s -> version != DTLS1_BAD_VER ) ssl3_init_finished_mac ( s ) ;\n break ;\n # ifndef OPENSSL_NO_SCTP case DTLS1_SCTP_ST_SR_READ_SOCK : if ( BIO_dgram_sctp_msg_waiting ( SSL_get_rbio ( s ) ) ) {\n s -> s3 -> in_read_app_data = 2 ;\n s -> rwstate = SSL_READING ;\n BIO_clear_retry_flags ( SSL_get_rbio ( s ) ) ;\n BIO_set_retry_read ( SSL_get_rbio ( s ) ) ;\n ret = - 1 ;\n goto end ;\n }\n s -> state = SSL3_ST_SR_FINISHED_A ;\n break ;\n case DTLS1_SCTP_ST_SW_WRITE_SOCK : ret = BIO_dgram_sctp_wait_for_dry ( SSL_get_wbio ( s ) ) ;\n if ( ret < 0 ) goto end ;\n if ( ret == 0 ) {\n if ( s -> d1 -> next_state != SSL_ST_OK ) {\n s -> s3 -> in_read_app_data = 2 ;\n s -> rwstate = SSL_READING ;\n BIO_clear_retry_flags ( SSL_get_rbio ( s ) ) ;\n BIO_set_retry_read ( SSL_get_rbio ( s ) ) ;\n ret = - 1 ;\n goto end ;\n }\n }\n s -> state = s -> d1 -> next_state ;\n break ;\n # endif case SSL3_ST_SW_SRVR_HELLO_A : case SSL3_ST_SW_SRVR_HELLO_B : s -> renegotiate = 2 ;\n dtls1_start_timer ( s ) ;\n ret = dtls1_send_server_hello ( s ) ;\n if ( ret <= 0 ) goto end ;\n if ( s -> hit ) {\n # ifndef OPENSSL_NO_SCTP snprintf ( ( char * ) labelbuffer , sizeof ( DTLS1_SCTP_AUTH_LABEL ) , DTLS1_SCTP_AUTH_LABEL ) ;\n SSL_export_keying_material ( s , sctpauthkey , sizeof ( sctpauthkey ) , labelbuffer , sizeof ( labelbuffer ) , NULL , 0 , 0 ) ;\n BIO_ctrl ( SSL_get_wbio ( s ) , BIO_CTRL_DGRAM_SCTP_ADD_AUTH_KEY , sizeof ( sctpauthkey ) , sctpauthkey ) ;\n # endif # ifndef OPENSSL_NO_TLSEXT if ( s -> tlsext_ticket_expected ) s -> state = SSL3_ST_SW_SESSION_TICKET_A ;\n else s -> state = SSL3_ST_SW_CHANGE_A ;\n # else s -> state = SSL3_ST_SW_CHANGE_A ;\n # endif }\n else s -> state = SSL3_ST_SW_CERT_A ;\n s -> init_num = 0 ;\n break ;\n case SSL3_ST_SW_CERT_A : case SSL3_ST_SW_CERT_B : if ( ! ( s -> s3 -> tmp . new_cipher -> algorithm_auth & SSL_aNULL ) && ! ( s -> s3 -> tmp . new_cipher -> algorithm_mkey & SSL_kPSK ) ) {\n dtls1_start_timer ( s ) ;\n ret = dtls1_send_server_certificate ( s ) ;\n if ( ret <= 0 ) goto end ;\n # ifndef OPENSSL_NO_TLSEXT if ( s -> tlsext_status_expected ) s -> state = SSL3_ST_SW_CERT_STATUS_A ;\n else s -> state = SSL3_ST_SW_KEY_EXCH_A ;\n }\n else {\n skip = 1 ;\n s -> state = SSL3_ST_SW_KEY_EXCH_A ;\n }\n # else }\n else skip = 1 ;\n s -> state = SSL3_ST_SW_KEY_EXCH_A ;\n # endif s -> init_num = 0 ;\n break ;\n case SSL3_ST_SW_KEY_EXCH_A : case SSL3_ST_SW_KEY_EXCH_B : alg_k = s -> s3 -> tmp . new_cipher -> algorithm_mkey ;\n s -> s3 -> tmp . use_rsa_tmp = 0 ;\n if ( 0 # ifndef OPENSSL_NO_PSK || ( ( alg_k & SSL_kPSK ) && s -> ctx -> psk_identity_hint ) # endif || ( alg_k & ( SSL_kEDH | SSL_kDHr | SSL_kDHd ) ) || ( alg_k & SSL_kEECDH ) || ( ( alg_k & SSL_kRSA ) && ( s -> cert -> pkeys [ SSL_PKEY_RSA_ENC ] . privatekey == NULL || ( SSL_C_IS_EXPORT ( s -> s3 -> tmp . new_cipher ) && EVP_PKEY_size ( s -> cert -> pkeys [ SSL_PKEY_RSA_ENC ] . privatekey ) * 8 > SSL_C_EXPORT_PKEYLENGTH ( s -> s3 -> tmp . new_cipher ) ) ) ) ) {\n dtls1_start_timer ( s ) ;\n ret = dtls1_send_server_key_exchange ( s ) ;\n if ( ret <= 0 ) goto end ;\n }\n else skip = 1 ;\n s -> state = SSL3_ST_SW_CERT_REQ_A ;\n s -> init_num = 0 ;\n break ;\n case SSL3_ST_SW_CERT_REQ_A : case SSL3_ST_SW_CERT_REQ_B : if ( ! ( s -> verify_mode & SSL_VERIFY_PEER ) || ( ( s -> session -> peer != NULL ) && ( s -> verify_mode & SSL_VERIFY_CLIENT_ONCE ) ) || ( ( s -> s3 -> tmp . new_cipher -> algorithm_auth & SSL_aNULL ) && ! ( s -> verify_mode & SSL_VERIFY_FAIL_IF_NO_PEER_CERT ) ) || ( s -> s3 -> tmp . new_cipher -> algorithm_auth & SSL_aKRB5 ) || ( s -> s3 -> tmp . new_cipher -> algorithm_mkey & SSL_kPSK ) ) {\n skip = 1 ;\n s -> s3 -> tmp . cert_request = 0 ;\n s -> state = SSL3_ST_SW_SRVR_DONE_A ;\n # ifndef OPENSSL_NO_SCTP if ( BIO_dgram_is_sctp ( SSL_get_wbio ( s ) ) ) {\n s -> d1 -> next_state = SSL3_ST_SW_SRVR_DONE_A ;\n s -> state = DTLS1_SCTP_ST_SW_WRITE_SOCK ;\n }\n # endif }\n else {\n s -> s3 -> tmp . cert_request = 1 ;\n dtls1_start_timer ( s ) ;\n ret = dtls1_send_certificate_request ( s ) ;\n if ( ret <= 0 ) goto end ;\n # ifndef NETSCAPE_HANG_BUG s -> state = SSL3_ST_SW_SRVR_DONE_A ;\n # ifndef OPENSSL_NO_SCTP if ( BIO_dgram_is_sctp ( SSL_get_wbio ( s ) ) ) {\n s -> d1 -> next_state = SSL3_ST_SW_SRVR_DONE_A ;\n s -> state = DTLS1_SCTP_ST_SW_WRITE_SOCK ;\n }\n # endif # else s -> state = SSL3_ST_SW_FLUSH ;\n s -> s3 -> tmp . next_state = SSL3_ST_SR_CERT_A ;\n # ifndef OPENSSL_NO_SCTP if ( BIO_dgram_is_sctp ( SSL_get_wbio ( s ) ) ) {\n s -> d1 -> next_state = s -> s3 -> tmp . next_state ;\n s -> s3 -> tmp . next_state = DTLS1_SCTP_ST_SW_WRITE_SOCK ;\n }\n # endif # endif s -> init_num = 0 ;\n }\n break ;\n case SSL3_ST_SW_SRVR_DONE_A : case SSL3_ST_SW_SRVR_DONE_B : dtls1_start_timer ( s ) ;\n ret = dtls1_send_server_done ( s ) ;\n if ( ret <= 0 ) goto end ;\n s -> s3 -> tmp . next_state = SSL3_ST_SR_CERT_A ;\n s -> state = SSL3_ST_SW_FLUSH ;\n s -> init_num = 0 ;\n break ;\n case SSL3_ST_SW_FLUSH : s -> rwstate = SSL_WRITING ;\n if ( BIO_flush ( s -> wbio ) <= 0 ) {\n if ( ! BIO_should_retry ( s -> wbio ) ) {\n s -> rwstate = SSL_NOTHING ;\n s -> state = s -> s3 -> tmp . next_state ;\n }\n ret = - 1 ;\n goto end ;\n }\n s -> rwstate = SSL_NOTHING ;\n s -> state = s -> s3 -> tmp . next_state ;\n break ;\n case SSL3_ST_SR_CERT_A : case SSL3_ST_SR_CERT_B : ret = ssl3_check_client_hello ( s ) ;\n if ( ret <= 0 ) goto end ;\n if ( ret == 2 ) {\n dtls1_stop_timer ( s ) ;\n s -> state = SSL3_ST_SR_CLNT_HELLO_C ;\n }\n else {\n if ( s -> s3 -> tmp . cert_request ) {\n ret = ssl3_get_client_certificate ( s ) ;\n if ( ret <= 0 ) goto end ;\n }\n s -> init_num = 0 ;\n s -> state = SSL3_ST_SR_KEY_EXCH_A ;\n }\n break ;\n case SSL3_ST_SR_KEY_EXCH_A : case SSL3_ST_SR_KEY_EXCH_B : ret = ssl3_get_client_key_exchange ( s ) ;\n if ( ret <= 0 ) goto end ;\n # ifndef OPENSSL_NO_SCTP snprintf ( ( char * ) labelbuffer , sizeof ( DTLS1_SCTP_AUTH_LABEL ) , DTLS1_SCTP_AUTH_LABEL ) ;\n SSL_export_keying_material ( s , sctpauthkey , sizeof ( sctpauthkey ) , labelbuffer , sizeof ( labelbuffer ) , NULL , 0 , 0 ) ;\n BIO_ctrl ( SSL_get_wbio ( s ) , BIO_CTRL_DGRAM_SCTP_ADD_AUTH_KEY , sizeof ( sctpauthkey ) , sctpauthkey ) ;\n # endif s -> state = SSL3_ST_SR_CERT_VRFY_A ;\n s -> init_num = 0 ;\n if ( ret == 2 ) {\n s -> state = SSL3_ST_SR_FINISHED_A ;\n s -> init_num = 0 ;\n }\n else {\n s -> state = SSL3_ST_SR_CERT_VRFY_A ;\n s -> init_num = 0 ;\n s -> method -> ssl3_enc -> cert_verify_mac ( s , NID_md5 , & ( s -> s3 -> tmp . cert_verify_md [ 0 ] ) ) ;\n s -> method -> ssl3_enc -> cert_verify_mac ( s , NID_sha1 , & ( s -> s3 -> tmp . cert_verify_md [ MD5_DIGEST_LENGTH ] ) ) ;\n }\n break ;\n case SSL3_ST_SR_CERT_VRFY_A : case SSL3_ST_SR_CERT_VRFY_B : if ( ! s -> s3 -> change_cipher_spec ) s -> d1 -> change_cipher_spec_ok = 1 ;\n ret = ssl3_get_cert_verify ( s ) ;\n if ( ret <= 0 ) goto end ;\n # ifndef OPENSSL_NO_SCTP if ( BIO_dgram_is_sctp ( SSL_get_wbio ( s ) ) && state == SSL_ST_RENEGOTIATE ) s -> state = DTLS1_SCTP_ST_SR_READ_SOCK ;\n else # endif s -> state = SSL3_ST_SR_FINISHED_A ;\n s -> init_num = 0 ;\n break ;\n case SSL3_ST_SR_FINISHED_A : case SSL3_ST_SR_FINISHED_B : if ( ! s -> s3 -> change_cipher_spec ) s -> d1 -> change_cipher_spec_ok = 1 ;\n ret = ssl3_get_finished ( s , SSL3_ST_SR_FINISHED_A , SSL3_ST_SR_FINISHED_B ) ;\n if ( ret <= 0 ) goto end ;\n dtls1_stop_timer ( s ) ;\n if ( s -> hit ) s -> state = SSL_ST_OK ;\n # ifndef OPENSSL_NO_TLSEXT else if ( s -> tlsext_ticket_expected ) s -> state = SSL3_ST_SW_SESSION_TICKET_A ;\n # endif else s -> state = SSL3_ST_SW_CHANGE_A ;\n s -> init_num = 0 ;\n break ;\n # ifndef OPENSSL_NO_TLSEXT case SSL3_ST_SW_SESSION_TICKET_A : case SSL3_ST_SW_SESSION_TICKET_B : ret = dtls1_send_newsession_ticket ( s ) ;\n if ( ret <= 0 ) goto end ;\n s -> state = SSL3_ST_SW_CHANGE_A ;\n s -> init_num = 0 ;\n break ;\n case SSL3_ST_SW_CERT_STATUS_A : case SSL3_ST_SW_CERT_STATUS_B : ret = ssl3_send_cert_status ( s ) ;\n if ( ret <= 0 ) goto end ;\n s -> state = SSL3_ST_SW_KEY_EXCH_A ;\n s -> init_num = 0 ;\n break ;\n # endif case SSL3_ST_SW_CHANGE_A : case SSL3_ST_SW_CHANGE_B : s -> session -> cipher = s -> s3 -> tmp . new_cipher ;\n if ( ! s -> method -> ssl3_enc -> setup_key_block ( s ) ) {\n ret = - 1 ;\n goto end ;\n }\n ret = dtls1_send_change_cipher_spec ( s , SSL3_ST_SW_CHANGE_A , SSL3_ST_SW_CHANGE_B ) ;\n if ( ret <= 0 ) goto end ;\n # ifndef OPENSSL_NO_SCTP if ( ! s -> hit ) {\n BIO_ctrl ( SSL_get_wbio ( s ) , BIO_CTRL_DGRAM_SCTP_NEXT_AUTH_KEY , 0 , NULL ) ;\n }\n # endif s -> state = SSL3_ST_SW_FINISHED_A ;\n s -> init_num = 0 ;\n if ( ! s -> method -> ssl3_enc -> change_cipher_state ( s , SSL3_CHANGE_CIPHER_SERVER_WRITE ) ) {\n ret = - 1 ;\n goto end ;\n }\n dtls1_reset_seq_numbers ( s , SSL3_CC_WRITE ) ;\n break ;\n case SSL3_ST_SW_FINISHED_A : case SSL3_ST_SW_FINISHED_B : ret = dtls1_send_finished ( s , SSL3_ST_SW_FINISHED_A , SSL3_ST_SW_FINISHED_B , s -> method -> ssl3_enc -> server_finished_label , s -> method -> ssl3_enc -> server_finished_label_len ) ;\n if ( ret <= 0 ) goto end ;\n s -> state = SSL3_ST_SW_FLUSH ;\n if ( s -> hit ) {\n s -> s3 -> tmp . next_state = SSL3_ST_SR_FINISHED_A ;\n # ifndef OPENSSL_NO_SCTP BIO_ctrl ( SSL_get_wbio ( s ) , BIO_CTRL_DGRAM_SCTP_NEXT_AUTH_KEY , 0 , NULL ) ;\n # endif }\n else {\n s -> s3 -> tmp . next_state = SSL_ST_OK ;\n # ifndef OPENSSL_NO_SCTP if ( BIO_dgram_is_sctp ( SSL_get_wbio ( s ) ) ) {\n s -> d1 -> next_state = s -> s3 -> tmp . next_state ;\n s -> s3 -> tmp . next_state = DTLS1_SCTP_ST_SW_WRITE_SOCK ;\n }\n # endif }\n s -> init_num = 0 ;\n break ;\n case SSL_ST_OK : ssl3_cleanup_key_block ( s ) ;\n # if 0 BUF_MEM_free ( s -> init_buf ) ;\n s -> init_buf = NULL ;\n # endif ssl_free_wbio_buffer ( s ) ;\n s -> init_num = 0 ;\n if ( s -> renegotiate == 2 ) {\n s -> renegotiate = 0 ;\n s -> new_session = 0 ;\n ssl_update_cache ( s , SSL_SESS_CACHE_SERVER ) ;\n s -> ctx -> stats . sess_accept_good ++ ;\n s -> handshake_func = dtls1_accept ;\n if ( cb != NULL ) cb ( s , SSL_CB_HANDSHAKE_DONE , 1 ) ;\n }\n ret = 1 ;\n s -> d1 -> handshake_read_seq = 0 ;\n s -> d1 -> handshake_write_seq = 0 ;\n s -> d1 -> next_handshake_write_seq = 0 ;\n goto end ;\n default : SSLerr ( SSL_F_DTLS1_ACCEPT , SSL_R_UNKNOWN_STATE ) ;\n ret = - 1 ;\n goto end ;\n }\n if ( ! s -> s3 -> tmp . reuse_message && ! skip ) {\n if ( s -> debug ) {\n if ( ( ret = BIO_flush ( s -> wbio ) ) <= 0 ) goto end ;\n }\n if ( ( cb != NULL ) && ( s -> state != state ) ) {\n new_state = s -> state ;\n s -> state = state ;\n cb ( s , SSL_CB_ACCEPT_LOOP , 1 ) ;\n s -> state = new_state ;\n }\n }\n skip = 0 ;\n }\n end : s -> in_handshake -- ;\n # ifndef OPENSSL_NO_SCTP BIO_ctrl ( SSL_get_wbio ( s ) , BIO_CTRL_DGRAM_SCTP_SET_IN_HANDSHAKE , s -> in_handshake , NULL ) ;\n # endif if ( cb != NULL ) cb ( s , SSL_CB_ACCEPT_EXIT , ret ) ;\n return ( ret ) ;\n }"}
{"idx": 3298, "target": 0, "func": "void do_mkdir ( struct st_command * command ) {\n int error ;\n static DYNAMIC_STRING ds_dirname ;\n const struct command_arg mkdir_args [ ] = {\n {\n \"dirname\" , ARG_STRING , TRUE , & ds_dirname , \"Directory to create\" }\n }\n ;\n DBUG_ENTER ( \"do_mkdir\" ) ;\n check_command_args ( command , command -> first_argument , mkdir_args , sizeof ( mkdir_args ) / sizeof ( struct command_arg ) , ' ' ) ;\n DBUG_PRINT ( \"info\" , ( \"creating directory: %s\" , ds_dirname . str ) ) ;\n error = my_mkdir ( ds_dirname . str , 0777 , MYF ( MY_WME ) ) != 0 ;\n handle_command_error ( command , error , my_errno ) ;\n dynstr_free ( & ds_dirname ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 3299, "target": 0, "func": "static void get_remote_object_list ( unsigned char parent ) {\n char path [ ] = \"objects/XX/\" ;\n static const char hex [ ] = \"0123456789abcdef\" ;\n unsigned int val = parent ;\n path [ 8 ] = hex [ val >> 4 ] ;\n path [ 9 ] = hex [ val & 0xf ] ;\n remote_dir_exists [ val ] = 0 ;\n remote_ls ( path , ( PROCESS_FILES | PROCESS_DIRS ) , process_ls_object , & val ) ;\n }"}
{"idx": 3300, "target": 1, "func": "SPL_METHOD ( SplFileObject , func_name ) \\ {\n \\ spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n \\ FileFunctionCall ( func_name , ZEND_NUM_ARGS ( ) , NULL ) ;\n \\ }\n SPL_METHOD ( SplFileObject , fgetcsv ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char delimiter = intern -> u . file . delimiter , enclosure = intern -> u . file . enclosure , escape = intern -> u . file . escape ;\n char * delim = NULL , * enclo = NULL , * esc = NULL ;\n int d_len = 0 , e_len = 0 , esc_len = 0 ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"|sss\" , & delim , & d_len , & enclo , & e_len , & esc , & esc_len ) == SUCCESS ) {\n switch ( ZEND_NUM_ARGS ( ) ) {\n case 3 : if ( esc_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"escape must be a character\" ) ;\n RETURN_FALSE ;\n }\n escape = esc [ 0 ] ;\n case 2 : if ( e_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"enclosure must be a character\" ) ;\n RETURN_FALSE ;\n }\n enclosure = enclo [ 0 ] ;\n case 1 : if ( d_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"delimiter must be a character\" ) ;\n RETURN_FALSE ;\n }\n delimiter = delim [ 0 ] ;\n case 0 : break ;\n }\n spl_filesystem_file_read_csv ( intern , delimiter , enclosure , escape , return_value TSRMLS_CC ) ;\n }\n }\n SPL_METHOD ( SplFileObject , fputcsv ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char delimiter = intern -> u . file . delimiter , enclosure = intern -> u . file . enclosure , escape = intern -> u . file . escape ;\n char * delim = NULL , * enclo = NULL , * esc = NULL ;\n int d_len = 0 , e_len = 0 , esc_len = 0 , ret ;\n zval * fields = NULL ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"a|sss\" , & fields , & delim , & d_len , & enclo , & e_len , & esc , & esc_len ) == SUCCESS ) {\n switch ( ZEND_NUM_ARGS ( ) ) {\n case 4 : if ( esc_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"escape must be a character\" ) ;\n RETURN_FALSE ;\n }\n escape = esc [ 0 ] ;\n case 3 : if ( e_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"enclosure must be a character\" ) ;\n RETURN_FALSE ;\n }\n enclosure = enclo [ 0 ] ;\n case 2 : if ( d_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"delimiter must be a character\" ) ;\n RETURN_FALSE ;\n }\n delimiter = delim [ 0 ] ;\n case 1 : case 0 : break ;\n }\n ret = php_fputcsv ( intern -> u . file . stream , fields , delimiter , enclosure , escape TSRMLS_CC ) ;\n RETURN_LONG ( ret ) ;\n }\n }\n SPL_METHOD ( SplFileObject , setCsvControl ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char delimiter = ',' , enclosure = '\"' , escape = '\\\\' ;\n char * delim = NULL , * enclo = NULL , * esc = NULL ;\n int d_len = 0 , e_len = 0 , esc_len = 0 ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"|sss\" , & delim , & d_len , & enclo , & e_len , & esc , & esc_len ) == SUCCESS ) {\n switch ( ZEND_NUM_ARGS ( ) ) {\n case 3 : if ( esc_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"escape must be a character\" ) ;\n RETURN_FALSE ;\n }\n escape = esc [ 0 ] ;\n case 2 : if ( e_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"enclosure must be a character\" ) ;\n RETURN_FALSE ;\n }\n enclosure = enclo [ 0 ] ;\n case 1 : if ( d_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"delimiter must be a character\" ) ;\n RETURN_FALSE ;\n }\n delimiter = delim [ 0 ] ;\n case 0 : break ;\n }\n intern -> u . file . delimiter = delimiter ;\n intern -> u . file . enclosure = enclosure ;\n intern -> u . file . escape = escape ;\n }\n }\n SPL_METHOD ( SplFileObject , getCsvControl ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char delimiter [ 2 ] , enclosure [ 2 ] ;\n array_init ( return_value ) ;\n delimiter [ 0 ] = intern -> u . file . delimiter ;\n delimiter [ 1 ] = '\\0' ;\n enclosure [ 0 ] = intern -> u . file . enclosure ;\n enclosure [ 1 ] = '\\0' ;\n add_next_index_string ( return_value , delimiter , 1 ) ;\n add_next_index_string ( return_value , enclosure , 1 ) ;\n }\n FileFunction ( flock ) SPL_METHOD ( SplFileObject , fflush ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n RETURN_BOOL ( ! php_stream_flush ( intern -> u . file . stream ) ) ;\n }\n SPL_METHOD ( SplFileObject , ftell ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n long ret = php_stream_tell ( intern -> u . file . stream ) ;\n if ( ret == - 1 ) {\n RETURN_FALSE ;\n }\n else {\n RETURN_LONG ( ret ) ;\n }\n }\n SPL_METHOD ( SplFileObject , fseek ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n long pos , whence = SEEK_SET ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"l|l\" , & pos , & whence ) == FAILURE ) {\n return ;\n }\n spl_filesystem_file_free_line ( intern TSRMLS_CC ) ;\n RETURN_LONG ( php_stream_seek ( intern -> u . file . stream , pos , whence ) ) ;\n }\n SPL_METHOD ( SplFileObject , fgetc ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char buf [ 2 ] ;\n int result ;\n spl_filesystem_file_free_line ( intern TSRMLS_CC ) ;\n result = php_stream_getc ( intern -> u . file . stream ) ;\n if ( result == EOF ) {\n RETVAL_FALSE ;\n }\n else {\n if ( result == '\\n' ) {\n intern -> u . file . current_line_num ++ ;\n }\n buf [ 0 ] = result ;\n buf [ 1 ] = '\\0' ;\n RETURN_STRINGL ( buf , 1 , 1 ) ;\n }\n }\n SPL_METHOD ( SplFileObject , fgetss ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n zval * arg2 = NULL ;\n MAKE_STD_ZVAL ( arg2 ) ;\n if ( intern -> u . file . max_line_len > 0 ) {\n ZVAL_LONG ( arg2 , intern -> u . file . max_line_len ) ;\n }\n else {\n ZVAL_LONG ( arg2 , 1024 ) ;\n }\n spl_filesystem_file_free_line ( intern TSRMLS_CC ) ;\n intern -> u . file . current_line_num ++ ;\n FileFunctionCall ( fgetss , ZEND_NUM_ARGS ( ) , arg2 ) ;\n zval_ptr_dtor ( & arg2 ) ;\n }\n SPL_METHOD ( SplFileObject , fpassthru ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n RETURN_LONG ( php_stream_passthru ( intern -> u . file . stream ) ) ;\n }\n SPL_METHOD ( SplFileObject , fscanf ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n spl_filesystem_file_free_line ( intern TSRMLS_CC ) ;\n intern -> u . file . current_line_num ++ ;\n FileFunctionCall ( fscanf , ZEND_NUM_ARGS ( ) , NULL ) ;\n }\n SPL_METHOD ( SplFileObject , fwrite ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char * str ;\n int str_len ;\n long length = 0 ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"s|l\" , & str , & str_len , & length ) == FAILURE ) {\n return ;\n }\n if ( ZEND_NUM_ARGS ( ) > 1 ) {\n str_len = MAX ( 0 , MIN ( length , str_len ) ) ;\n }\n if ( ! str_len ) {\n RETURN_LONG ( 0 ) ;\n }\n RETURN_LONG ( php_stream_write ( intern -> u . file . stream , str , str_len ) ) ;\n }\n SPL_METHOD ( SplFileObject , fread ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n long length = 0 ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"l\" , & length ) == FAILURE ) {\n return ;\n }\n if ( length <= 0 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"Length parameter must be greater than 0\" ) ;\n RETURN_FALSE ;\n }\n Z_STRVAL_P ( return_value ) = emalloc ( length + 1 ) ;\n Z_STRLEN_P ( return_value ) = php_stream_read ( intern -> u . file . stream , Z_STRVAL_P ( return_value ) , length ) ;\n Z_STRVAL_P ( return_value ) [ Z_STRLEN_P ( return_value ) ] = 0 ;\n Z_TYPE_P ( return_value ) = IS_STRING ;\n }\n FileFunction ( fstat )"}
{"idx": 3301, "target": 0, "func": "static FILE * checkdupstoredtable ( SplineFont * sf , uint32 tag , int * len , struct alltabs * all , int me ) {\n int i ;\n struct ttf_table * tab = SFFindTable ( sf , tag ) , * test ;\n if ( tab == NULL ) {\n * len = 0 ;\n return ( NULL ) ;\n }\n for ( i = 0 ;\n i < me ;\n ++ i ) {\n test = SFFindTable ( all [ i ] . sf , tag ) ;\n if ( test != NULL && test -> len == tab -> len && memcmp ( test -> data , tab -> data , tab -> len ) == 0 ) {\n * len = i ;\n return ( ( FILE * ) ( intpt ) - 1 ) ;\n }\n }\n return ( dumpstoredtable ( sf , tag , len ) ) ;\n }"}
{"idx": 3302, "target": 0, "func": "static int pcm_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n const uint8_t * src = avpkt -> data ;\n int buf_size = avpkt -> size ;\n PCMDecode * s = avctx -> priv_data ;\n AVFrame * frame = data ;\n int sample_size , c , n , ret , samples_per_block ;\n uint8_t * samples ;\n int32_t * dst_int32_t ;\n sample_size = av_get_bits_per_sample ( avctx -> codec_id ) / 8 ;\n samples_per_block = 1 ;\n if ( AV_CODEC_ID_PCM_DVD == avctx -> codec_id ) {\n if ( avctx -> bits_per_coded_sample != 20 && avctx -> bits_per_coded_sample != 24 ) {\n av_log ( avctx , AV_LOG_ERROR , \"PCM DVD unsupported sample depth\\n\" ) ;\n return AVERROR ( EINVAL ) ;\n }\n samples_per_block = 2 ;\n sample_size = avctx -> bits_per_coded_sample * 2 / 8 ;\n }\n else if ( avctx -> codec_id == AV_CODEC_ID_PCM_LXF ) {\n samples_per_block = 2 ;\n sample_size = 5 ;\n }\n if ( sample_size == 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid sample_size\\n\" ) ;\n return AVERROR ( EINVAL ) ;\n }\n n = avctx -> channels * sample_size ;\n if ( n && buf_size % n ) {\n if ( buf_size < n ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid PCM packet\\n\" ) ;\n return - 1 ;\n }\n else buf_size -= buf_size % n ;\n }\n n = buf_size / sample_size ;\n frame -> nb_samples = n * samples_per_block / avctx -> channels ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n samples = frame -> data [ 0 ] ;\n switch ( avctx -> codec -> id ) {\n case AV_CODEC_ID_PCM_U32LE : DECODE ( 32 , le32 , src , samples , n , 0 , 0x80000000 ) break ;\n case AV_CODEC_ID_PCM_U32BE : DECODE ( 32 , be32 , src , samples , n , 0 , 0x80000000 ) break ;\n case AV_CODEC_ID_PCM_S24LE : DECODE ( 32 , le24 , src , samples , n , 8 , 0 ) break ;\n case AV_CODEC_ID_PCM_S24BE : DECODE ( 32 , be24 , src , samples , n , 8 , 0 ) break ;\n case AV_CODEC_ID_PCM_U24LE : DECODE ( 32 , le24 , src , samples , n , 8 , 0x800000 ) break ;\n case AV_CODEC_ID_PCM_U24BE : DECODE ( 32 , be24 , src , samples , n , 8 , 0x800000 ) break ;\n case AV_CODEC_ID_PCM_S24DAUD : for ( ;\n n > 0 ;\n n -- ) {\n uint32_t v = bytestream_get_be24 ( & src ) ;\n v >>= 4 ;\n AV_WN16A ( samples , ff_reverse [ ( v >> 8 ) & 0xff ] + ( ff_reverse [ v & 0xff ] << 8 ) ) ;\n samples += 2 ;\n }\n break ;\n case AV_CODEC_ID_PCM_S16LE_PLANAR : {\n int av_unused n2 ;\n n /= avctx -> channels ;\n for ( c = 0 ;\n c < avctx -> channels ;\n c ++ ) {\n samples = frame -> extended_data [ c ] ;\n # if HAVE_BIGENDIAN n2 = n ;\n DECODE ( 16 , le16 , src , samples , n2 , 0 , 0 ) # else memcpy ( samples , src , n * 2 ) ;\n src += n * 2 ;\n # endif }\n break ;\n }\n case AV_CODEC_ID_PCM_U16LE : DECODE ( 16 , le16 , src , samples , n , 0 , 0x8000 ) break ;\n case AV_CODEC_ID_PCM_U16BE : DECODE ( 16 , be16 , src , samples , n , 0 , 0x8000 ) break ;\n case AV_CODEC_ID_PCM_S8 : for ( ;\n n > 0 ;\n n -- ) * samples ++ = * src ++ + 128 ;\n break ;\n # if HAVE_BIGENDIAN case AV_CODEC_ID_PCM_F64LE : DECODE ( 64 , le64 , src , samples , n , 0 , 0 ) break ;\n case AV_CODEC_ID_PCM_S32LE : case AV_CODEC_ID_PCM_F32LE : DECODE ( 32 , le32 , src , samples , n , 0 , 0 ) break ;\n case AV_CODEC_ID_PCM_S16LE : DECODE ( 16 , le16 , src , samples , n , 0 , 0 ) break ;\n case AV_CODEC_ID_PCM_F64BE : case AV_CODEC_ID_PCM_F32BE : case AV_CODEC_ID_PCM_S32BE : case AV_CODEC_ID_PCM_S16BE : # else case AV_CODEC_ID_PCM_F64BE : DECODE ( 64 , be64 , src , samples , n , 0 , 0 ) break ;\n case AV_CODEC_ID_PCM_F32BE : case AV_CODEC_ID_PCM_S32BE : DECODE ( 32 , be32 , src , samples , n , 0 , 0 ) break ;\n case AV_CODEC_ID_PCM_S16BE : DECODE ( 16 , be16 , src , samples , n , 0 , 0 ) break ;\n case AV_CODEC_ID_PCM_F64LE : case AV_CODEC_ID_PCM_F32LE : case AV_CODEC_ID_PCM_S32LE : case AV_CODEC_ID_PCM_S16LE : # endif case AV_CODEC_ID_PCM_U8 : memcpy ( samples , src , n * sample_size ) ;\n break ;\n case AV_CODEC_ID_PCM_ZORK : for ( ;\n n > 0 ;\n n -- ) {\n int v = * src ++ ;\n if ( v < 128 ) v = 128 - v ;\n * samples ++ = v ;\n }\n break ;\n case AV_CODEC_ID_PCM_ALAW : case AV_CODEC_ID_PCM_MULAW : for ( ;\n n > 0 ;\n n -- ) {\n AV_WN16A ( samples , s -> table [ * src ++ ] ) ;\n samples += 2 ;\n }\n break ;\n case AV_CODEC_ID_PCM_DVD : {\n const uint8_t * src8 ;\n dst_int32_t = ( int32_t * ) frame -> data [ 0 ] ;\n n /= avctx -> channels ;\n switch ( avctx -> bits_per_coded_sample ) {\n case 20 : while ( n -- ) {\n c = avctx -> channels ;\n src8 = src + 4 * c ;\n while ( c -- ) {\n * dst_int32_t ++ = ( bytestream_get_be16 ( & src ) << 16 ) + ( ( * src8 & 0xf0 ) << 8 ) ;\n * dst_int32_t ++ = ( bytestream_get_be16 ( & src ) << 16 ) + ( ( * src8 ++ & 0x0f ) << 12 ) ;\n }\n src = src8 ;\n }\n break ;\n case 24 : while ( n -- ) {\n c = avctx -> channels ;\n src8 = src + 4 * c ;\n while ( c -- ) {\n * dst_int32_t ++ = ( bytestream_get_be16 ( & src ) << 16 ) + ( ( * src8 ++ ) << 8 ) ;\n * dst_int32_t ++ = ( bytestream_get_be16 ( & src ) << 16 ) + ( ( * src8 ++ ) << 8 ) ;\n }\n src = src8 ;\n }\n break ;\n }\n break ;\n }\n case AV_CODEC_ID_PCM_LXF : {\n int i ;\n n /= avctx -> channels ;\n for ( c = 0 ;\n c < avctx -> channels ;\n c ++ ) {\n dst_int32_t = ( int32_t * ) frame -> extended_data [ c ] ;\n for ( i = 0 ;\n i < n ;\n i ++ ) {\n * dst_int32_t ++ = ( src [ 2 ] << 28 ) | ( src [ 1 ] << 20 ) | ( src [ 0 ] << 12 ) | ( ( src [ 2 ] & 0x0F ) << 8 ) | src [ 1 ] ;\n * dst_int32_t ++ = ( src [ 4 ] << 24 ) | ( src [ 3 ] << 16 ) | ( ( src [ 2 ] & 0xF0 ) << 8 ) | ( src [ 4 ] << 4 ) | ( src [ 3 ] >> 4 ) ;\n src += 5 ;\n }\n }\n break ;\n }\n default : return - 1 ;\n }\n * got_frame_ptr = 1 ;\n return buf_size ;\n }"}
{"idx": 3303, "target": 0, "func": "static void build_tree_distribution ( VP9_COMP * cpi , TX_SIZE tx_size , vp9_coeff_stats * coef_branch_ct , vp9_coeff_probs_model * coef_probs ) {\n vp9_coeff_count * coef_counts = cpi -> coef_counts [ tx_size ] ;\n unsigned int ( * eob_branch_ct ) [ REF_TYPES ] [ COEF_BANDS ] [ COEFF_CONTEXTS ] = cpi -> common . counts . eob_branch [ tx_size ] ;\n int i , j , k , l , m ;\n for ( i = 0 ;\n i < PLANE_TYPES ;\n ++ i ) {\n for ( j = 0 ;\n j < REF_TYPES ;\n ++ j ) {\n for ( k = 0 ;\n k < COEF_BANDS ;\n ++ k ) {\n for ( l = 0 ;\n l < BAND_COEFF_CONTEXTS ( k ) ;\n ++ l ) {\n vp9_tree_probs_from_distribution ( vp9_coef_tree , coef_branch_ct [ i ] [ j ] [ k ] [ l ] , coef_counts [ i ] [ j ] [ k ] [ l ] ) ;\n coef_branch_ct [ i ] [ j ] [ k ] [ l ] [ 0 ] [ 1 ] = eob_branch_ct [ i ] [ j ] [ k ] [ l ] - coef_branch_ct [ i ] [ j ] [ k ] [ l ] [ 0 ] [ 0 ] ;\n for ( m = 0 ;\n m < UNCONSTRAINED_NODES ;\n ++ m ) coef_probs [ i ] [ j ] [ k ] [ l ] [ m ] = get_binary_prob ( coef_branch_ct [ i ] [ j ] [ k ] [ l ] [ m ] [ 0 ] , coef_branch_ct [ i ] [ j ] [ k ] [ l ] [ m ] [ 1 ] ) ;\n }\n }\n }\n }\n }"}
{"idx": 3304, "target": 0, "func": "static gint get_full_length ( header_field_info * hfinfo , tvbuff_t * tvb , const gint start , gint length , guint item_length , const gint encoding ) {\n guint32 n ;\n switch ( hfinfo -> type ) {\n case FT_NONE : case FT_PROTOCOL : case FT_BYTES : break ;\n case FT_UINT_BYTES : n = get_uint_value ( NULL , tvb , start , length , encoding ? ENC_LITTLE_ENDIAN : ENC_BIG_ENDIAN ) ;\n item_length += n ;\n break ;\n case FT_BOOLEAN : case FT_UINT8 : case FT_UINT16 : case FT_UINT24 : case FT_UINT32 : case FT_UINT40 : case FT_UINT48 : case FT_UINT56 : case FT_UINT64 : case FT_INT8 : case FT_INT16 : case FT_INT24 : case FT_INT32 : case FT_INT40 : case FT_INT48 : case FT_INT56 : case FT_INT64 : case FT_IPv4 : case FT_IPXNET : case FT_IPv6 : case FT_FCWWN : case FT_AX25 : case FT_VINES : case FT_ETHER : case FT_EUI64 : case FT_GUID : case FT_OID : case FT_REL_OID : case FT_SYSTEM_ID : case FT_FLOAT : case FT_DOUBLE : case FT_STRING : break ;\n case FT_STRINGZ : if ( length < - 1 ) {\n report_type_length_mismatch ( NULL , \"a string\" , length , TRUE ) ;\n }\n if ( length == - 1 ) {\n tvb_get_stringz_enc ( wmem_packet_scope ( ) , tvb , start , & length , encoding ) ;\n }\n item_length = length ;\n break ;\n case FT_UINT_STRING : n = get_uint_value ( NULL , tvb , start , length , encoding & ~ ENC_CHARENCODING_MASK ) ;\n item_length += n ;\n break ;\n case FT_STRINGZPAD : case FT_ABSOLUTE_TIME : case FT_RELATIVE_TIME : case FT_IEEE_11073_SFLOAT : case FT_IEEE_11073_FLOAT : break ;\n default : g_error ( \"hfinfo->type %d (%s) not handled\\n\" , hfinfo -> type , ftype_name ( hfinfo -> type ) ) ;\n DISSECTOR_ASSERT_NOT_REACHED ( ) ;\n break ;\n }\n return item_length ;\n }"}
{"idx": 3305, "target": 0, "func": "static inline bool e1000e_rx_l4_cso_enabled ( E1000ECore * core ) {\n return ! ! ( core -> mac [ RXCSUM ] & E1000_RXCSUM_TUOFLD ) ;\n }"}
{"idx": 3306, "target": 0, "func": "static void quant_matrix_rebuild ( uint16_t * matrix , const uint8_t * old_perm , const uint8_t * new_perm ) {\n uint16_t temp_matrix [ 64 ] ;\n int i ;\n memcpy ( temp_matrix , matrix , 64 * sizeof ( uint16_t ) ) ;\n for ( i = 0 ;\n i < 64 ;\n i ++ ) {\n matrix [ new_perm [ i ] ] = temp_matrix [ old_perm [ i ] ] ;\n }\n }"}
{"idx": 3307, "target": 0, "func": "int dissect_ber_external_type ( gboolean implicit_tag , proto_tree * tree , tvbuff_t * tvb , int offset , asn1_ctx_t * actx , gint hf_id , ber_callback func ) {\n actx -> external . u . ber . ber_callback = func ;\n offset = dissect_ber_tagged_type ( implicit_tag , actx , tree , tvb , offset , hf_id , BER_CLASS_UNI , BER_UNI_TAG_EXTERNAL , TRUE , dissect_ber_external_U ) ;\n asn1_ctx_clean_external ( actx ) ;\n return offset ;\n }"}
{"idx": 3308, "target": 0, "func": "static size_t encode_tiles ( VP9_COMP * cpi , uint8_t * data_ptr ) {\n VP9_COMMON * const cm = & cpi -> common ;\n vp9_writer residual_bc ;\n int tile_row , tile_col ;\n TOKENEXTRA * tok [ 4 ] [ 1 << 6 ] , * tok_end ;\n size_t total_size = 0 ;\n const int tile_cols = 1 << cm -> log2_tile_cols ;\n const int tile_rows = 1 << cm -> log2_tile_rows ;\n vpx_memset ( cm -> above_seg_context , 0 , sizeof ( * cm -> above_seg_context ) * mi_cols_aligned_to_sb ( cm -> mi_cols ) ) ;\n tok [ 0 ] [ 0 ] = cpi -> tok ;\n for ( tile_row = 0 ;\n tile_row < tile_rows ;\n tile_row ++ ) {\n if ( tile_row ) tok [ tile_row ] [ 0 ] = tok [ tile_row - 1 ] [ tile_cols - 1 ] + cpi -> tok_count [ tile_row - 1 ] [ tile_cols - 1 ] ;\n for ( tile_col = 1 ;\n tile_col < tile_cols ;\n tile_col ++ ) tok [ tile_row ] [ tile_col ] = tok [ tile_row ] [ tile_col - 1 ] + cpi -> tok_count [ tile_row ] [ tile_col - 1 ] ;\n }\n for ( tile_row = 0 ;\n tile_row < tile_rows ;\n tile_row ++ ) {\n for ( tile_col = 0 ;\n tile_col < tile_cols ;\n tile_col ++ ) {\n TileInfo tile ;\n vp9_tile_init ( & tile , cm , tile_row , tile_col ) ;\n tok_end = tok [ tile_row ] [ tile_col ] + cpi -> tok_count [ tile_row ] [ tile_col ] ;\n if ( tile_col < tile_cols - 1 || tile_row < tile_rows - 1 ) vp9_start_encode ( & residual_bc , data_ptr + total_size + 4 ) ;\n else vp9_start_encode ( & residual_bc , data_ptr + total_size ) ;\n write_modes ( cpi , & tile , & residual_bc , & tok [ tile_row ] [ tile_col ] , tok_end ) ;\n assert ( tok [ tile_row ] [ tile_col ] == tok_end ) ;\n vp9_stop_encode ( & residual_bc ) ;\n if ( tile_col < tile_cols - 1 || tile_row < tile_rows - 1 ) {\n mem_put_be32 ( data_ptr + total_size , residual_bc . pos ) ;\n total_size += 4 ;\n }\n total_size += residual_bc . pos ;\n }\n }\n return total_size ;\n }"}
{"idx": 3309, "target": 0, "func": "static void pack_inter_mode_mvs ( VP9_COMP * cpi , const MODE_INFO * mi , vp9_writer * w ) {\n VP9_COMMON * const cm = & cpi -> common ;\n const nmv_context * nmvc = & cm -> fc . nmvc ;\n const MACROBLOCK * const x = & cpi -> mb ;\n const MACROBLOCKD * const xd = & x -> e_mbd ;\n const struct segmentation * const seg = & cm -> seg ;\n const MB_MODE_INFO * const mbmi = & mi -> mbmi ;\n const PREDICTION_MODE mode = mbmi -> mode ;\n const int segment_id = mbmi -> segment_id ;\n const BLOCK_SIZE bsize = mbmi -> sb_type ;\n const int allow_hp = cm -> allow_high_precision_mv ;\n const int is_inter = is_inter_block ( mbmi ) ;\n const int is_compound = has_second_ref ( mbmi ) ;\n int skip , ref ;\n if ( seg -> update_map ) {\n if ( seg -> temporal_update ) {\n const int pred_flag = mbmi -> seg_id_predicted ;\n vp9_prob pred_prob = vp9_get_pred_prob_seg_id ( seg , xd ) ;\n vp9_write ( w , pred_flag , pred_prob ) ;\n if ( ! pred_flag ) write_segment_id ( w , seg , segment_id ) ;\n }\n else {\n write_segment_id ( w , seg , segment_id ) ;\n }\n }\n skip = write_skip ( cm , xd , segment_id , mi , w ) ;\n if ( ! vp9_segfeature_active ( seg , segment_id , SEG_LVL_REF_FRAME ) ) vp9_write ( w , is_inter , vp9_get_intra_inter_prob ( cm , xd ) ) ;\n if ( bsize >= BLOCK_8X8 && cm -> tx_mode == TX_MODE_SELECT && ! ( is_inter && ( skip || vp9_segfeature_active ( seg , segment_id , SEG_LVL_SKIP ) ) ) ) {\n write_selected_tx_size ( cm , xd , mbmi -> tx_size , bsize , w ) ;\n }\n if ( ! is_inter ) {\n if ( bsize >= BLOCK_8X8 ) {\n write_intra_mode ( w , mode , cm -> fc . y_mode_prob [ size_group_lookup [ bsize ] ] ) ;\n }\n else {\n int idx , idy ;\n const int num_4x4_w = num_4x4_blocks_wide_lookup [ bsize ] ;\n const int num_4x4_h = num_4x4_blocks_high_lookup [ bsize ] ;\n for ( idy = 0 ;\n idy < 2 ;\n idy += num_4x4_h ) {\n for ( idx = 0 ;\n idx < 2 ;\n idx += num_4x4_w ) {\n const PREDICTION_MODE b_mode = mi -> bmi [ idy * 2 + idx ] . as_mode ;\n write_intra_mode ( w , b_mode , cm -> fc . y_mode_prob [ 0 ] ) ;\n }\n }\n }\n write_intra_mode ( w , mbmi -> uv_mode , cm -> fc . uv_mode_prob [ mode ] ) ;\n }\n else {\n const int mode_ctx = mbmi -> mode_context [ mbmi -> ref_frame [ 0 ] ] ;\n const vp9_prob * const inter_probs = cm -> fc . inter_mode_probs [ mode_ctx ] ;\n write_ref_frames ( cm , xd , w ) ;\n if ( ! vp9_segfeature_active ( seg , segment_id , SEG_LVL_SKIP ) ) {\n if ( bsize >= BLOCK_8X8 ) {\n write_inter_mode ( w , mode , inter_probs ) ;\n ++ cm -> counts . inter_mode [ mode_ctx ] [ INTER_OFFSET ( mode ) ] ;\n }\n }\n if ( cm -> interp_filter == SWITCHABLE ) {\n const int ctx = vp9_get_pred_context_switchable_interp ( xd ) ;\n vp9_write_token ( w , vp9_switchable_interp_tree , cm -> fc . switchable_interp_prob [ ctx ] , & switchable_interp_encodings [ mbmi -> interp_filter ] ) ;\n ++ cpi -> interp_filter_selected [ 0 ] [ mbmi -> interp_filter ] ;\n }\n else {\n assert ( mbmi -> interp_filter == cm -> interp_filter ) ;\n }\n if ( bsize < BLOCK_8X8 ) {\n const int num_4x4_w = num_4x4_blocks_wide_lookup [ bsize ] ;\n const int num_4x4_h = num_4x4_blocks_high_lookup [ bsize ] ;\n int idx , idy ;\n for ( idy = 0 ;\n idy < 2 ;\n idy += num_4x4_h ) {\n for ( idx = 0 ;\n idx < 2 ;\n idx += num_4x4_w ) {\n const int j = idy * 2 + idx ;\n const PREDICTION_MODE b_mode = mi -> bmi [ j ] . as_mode ;\n write_inter_mode ( w , b_mode , inter_probs ) ;\n ++ cm -> counts . inter_mode [ mode_ctx ] [ INTER_OFFSET ( b_mode ) ] ;\n if ( b_mode == NEWMV ) {\n for ( ref = 0 ;\n ref < 1 + is_compound ;\n ++ ref ) vp9_encode_mv ( cpi , w , & mi -> bmi [ j ] . as_mv [ ref ] . as_mv , & mbmi -> ref_mvs [ mbmi -> ref_frame [ ref ] ] [ 0 ] . as_mv , nmvc , allow_hp ) ;\n }\n }\n }\n }\n else {\n if ( mode == NEWMV ) {\n for ( ref = 0 ;\n ref < 1 + is_compound ;\n ++ ref ) vp9_encode_mv ( cpi , w , & mbmi -> mv [ ref ] . as_mv , & mbmi -> ref_mvs [ mbmi -> ref_frame [ ref ] ] [ 0 ] . as_mv , nmvc , allow_hp ) ;\n }\n }\n }\n }"}
{"idx": 3310, "target": 0, "func": "static void set_date_time ( unsigned char * p , time_t t ) {\n struct tm tm ;\n get_tmfromtime ( & tm , & t ) ;\n set_digit ( p , 4 , tm . tm_year + 1900 ) ;\n set_digit ( p + 4 , 2 , tm . tm_mon + 1 ) ;\n set_digit ( p + 6 , 2 , tm . tm_mday ) ;\n set_digit ( p + 8 , 2 , tm . tm_hour ) ;\n set_digit ( p + 10 , 2 , tm . tm_min ) ;\n set_digit ( p + 12 , 2 , tm . tm_sec ) ;\n set_digit ( p + 14 , 2 , 0 ) ;\n set_num_712 ( p + 16 , ( char ) ( get_gmoffset ( & tm ) / ( 60 * 15 ) ) ) ;\n }"}
{"idx": 3311, "target": 0, "func": "static int zcurrentfile ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n ref * fp ;\n push ( 1 ) ;\n if ( esfile != 0 ) {\n # ifdef DEBUG ref * efp = zget_current_file ( i_ctx_p ) ;\n if ( esfile != efp ) {\n lprintf2 ( \"currentfile: esfile=0x%lx, efp=0x%lx\\n\" , ( ulong ) esfile , ( ulong ) efp ) ;\n ref_assign ( op , efp ) ;\n }\n else # endif ref_assign ( op , esfile ) ;\n }\n else if ( ( fp = zget_current_file ( i_ctx_p ) ) == 0 ) {\n make_invalid_file ( i_ctx_p , op ) ;\n }\n else {\n ref_assign ( op , fp ) ;\n esfile_set_cache ( fp ) ;\n }\n r_clear_attrs ( op , a_executable ) ;\n return 0 ;\n }"}
{"idx": 3312, "target": 1, "func": "static int ipvideo_decode_block_opcode_0xC_16 ( IpvideoContext * s ) {\n int x , y ;\n uint16_t * pixel_ptr = ( uint16_t * ) s -> pixel_ptr ;\n for ( y = 0 ;\n y < 8 ;\n y += 2 ) {\n for ( x = 0 ;\n x < 8 ;\n x += 2 ) {\n pixel_ptr [ x ] = pixel_ptr [ x + 1 ] = pixel_ptr [ x + s -> stride ] = pixel_ptr [ x + 1 + s -> stride ] = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n }\n pixel_ptr += s -> stride * 2 ;\n }\n return 0 ;\n }"}
{"idx": 3313, "target": 0, "func": "Datum GetAttributeByNum ( HeapTupleHeader tuple , AttrNumber attrno , bool * isNull ) {\n Datum result ;\n Oid tupType ;\n int32 tupTypmod ;\n TupleDesc tupDesc ;\n HeapTupleData tmptup ;\n if ( ! AttributeNumberIsValid ( attrno ) ) elog ( ERROR , \"invalid attribute number %d\" , attrno ) ;\n if ( isNull == NULL ) elog ( ERROR , \"a NULL isNull pointer was passed\" ) ;\n if ( tuple == NULL ) {\n * isNull = true ;\n return ( Datum ) 0 ;\n }\n tupType = HeapTupleHeaderGetTypeId ( tuple ) ;\n tupTypmod = HeapTupleHeaderGetTypMod ( tuple ) ;\n tupDesc = lookup_rowtype_tupdesc ( tupType , tupTypmod ) ;\n tmptup . t_len = HeapTupleHeaderGetDatumLength ( tuple ) ;\n ItemPointerSetInvalid ( & ( tmptup . t_self ) ) ;\n tmptup . t_tableOid = InvalidOid ;\n tmptup . t_data = tuple ;\n result = heap_getattr ( & tmptup , attrno , tupDesc , isNull ) ;\n ReleaseTupleDesc ( tupDesc ) ;\n return result ;\n }"}
{"idx": 3314, "target": 0, "func": "static void ss600mp_init ( QEMUMachineInitArgs * args ) {\n ram_addr_t RAM_size = args -> ram_size ;\n const char * cpu_model = args -> cpu_model ;\n const char * kernel_filename = args -> kernel_filename ;\n const char * kernel_cmdline = args -> kernel_cmdline ;\n const char * initrd_filename = args -> initrd_filename ;\n const char * boot_device = args -> boot_device ;\n sun4m_hw_init ( & sun4m_hwdefs [ 2 ] , RAM_size , boot_device , kernel_filename , kernel_cmdline , initrd_filename , cpu_model ) ;\n }"}
{"idx": 3315, "target": 0, "func": "static int dissect_h225_BMPString_SIZE_1_256 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_BMPString ( tvb , offset , actx , tree , hf_index , 1 , 256 , FALSE ) ;\n return offset ;\n }"}
{"idx": 3316, "target": 0, "func": "static void U_CALLCONV _ASCIIGetUnicodeSet ( const UConverter * cnv , const USetAdder * sa , UConverterUnicodeSet which , UErrorCode * pErrorCode ) {\n ( void ) cnv ;\n ( void ) which ;\n ( void ) pErrorCode ;\n sa -> addRange ( sa -> set , 0 , 0x7f ) ;\n }"}
{"idx": 3317, "target": 0, "func": "void RECORD_LAYER_reset_write_sequence ( RECORD_LAYER * rl ) {\n memset ( rl -> write_sequence , 0 , sizeof ( rl -> write_sequence ) ) ;\n }"}
{"idx": 3318, "target": 0, "func": "static hb_bool_t hb_ucdn_compose ( hb_unicode_funcs_t * ufuncs , hb_codepoint_t a , hb_codepoint_t b , hb_codepoint_t * ab , void * user_data HB_UNUSED ) {\n return ucdn_compose ( ab , a , b ) ;\n }"}
{"idx": 3319, "target": 1, "func": "static void vga_draw_line4d2 ( VGACommonState * s1 , uint8_t * d , const uint8_t * s , int width ) {\n uint32_t plane_mask , data , v , * palette ;\n int x ;\n palette = s1 -> last_palette ;\n plane_mask = mask16 [ s1 -> ar [ VGA_ATC_PLANE_ENABLE ] & 0xf ] ;\n width >>= 3 ;\n for ( x = 0 ;\n x < width ;\n x ++ ) {\n data = ( ( uint32_t * ) s ) [ 0 ] ;\n data &= plane_mask ;\n v = expand4 [ GET_PLANE ( data , 0 ) ] ;\n v |= expand4 [ GET_PLANE ( data , 1 ) ] << 1 ;\n v |= expand4 [ GET_PLANE ( data , 2 ) ] << 2 ;\n v |= expand4 [ GET_PLANE ( data , 3 ) ] << 3 ;\n PUT_PIXEL2 ( d , 0 , palette [ v >> 28 ] ) ;\n PUT_PIXEL2 ( d , 1 , palette [ ( v >> 24 ) & 0xf ] ) ;\n PUT_PIXEL2 ( d , 2 , palette [ ( v >> 20 ) & 0xf ] ) ;\n PUT_PIXEL2 ( d , 3 , palette [ ( v >> 16 ) & 0xf ] ) ;\n PUT_PIXEL2 ( d , 4 , palette [ ( v >> 12 ) & 0xf ] ) ;\n PUT_PIXEL2 ( d , 5 , palette [ ( v >> 8 ) & 0xf ] ) ;\n PUT_PIXEL2 ( d , 6 , palette [ ( v >> 4 ) & 0xf ] ) ;\n PUT_PIXEL2 ( d , 7 , palette [ ( v >> 0 ) & 0xf ] ) ;\n d += 64 ;\n s += 4 ;\n }\n }"}
{"idx": 3320, "target": 0, "func": "static int nsv_read_close ( AVFormatContext * s ) {\n NSVContext * nsv = s -> priv_data ;\n av_freep ( & nsv -> nsvs_file_offset ) ;\n av_freep ( & nsv -> nsvs_timestamps ) ;\n if ( nsv -> ahead [ 0 ] . data ) av_packet_unref ( & nsv -> ahead [ 0 ] ) ;\n if ( nsv -> ahead [ 1 ] . data ) av_packet_unref ( & nsv -> ahead [ 1 ] ) ;\n return 0 ;\n }"}
{"idx": 3321, "target": 0, "func": "static gint handle_message_header_body ( tvbuff_t * tvb , packet_info * pinfo , gint offset , proto_item * message_tree , gboolean is_ardp ) {\n gint remaining_packet_length ;\n guint8 * signature ;\n guint8 signature_length = 0 ;\n proto_tree * header_tree , * flag_tree ;\n proto_item * header_item , * flag_item ;\n guint encoding ;\n gint packet_length_needed ;\n gint header_length = 0 , body_length = 0 ;\n remaining_packet_length = tvb_reported_length_remaining ( tvb , offset ) ;\n encoding = get_message_header_endianness ( tvb , offset ) ;\n if ( ENC_ALLJOYN_BAD_ENCODING == encoding ) {\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"BAD DATA: Endian encoding '0x%0x'. Expected 'l' or 'B'\" , tvb_get_guint8 ( tvb , offset + ENDIANNESS_OFFSET ) ) ;\n return offset + remaining_packet_length ;\n }\n if ( remaining_packet_length < MESSAGE_HEADER_LENGTH ) {\n if ( ! set_pinfo_desegment ( pinfo , offset , MESSAGE_HEADER_LENGTH - remaining_packet_length ) ) {\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"BAD DATA: Remaining packet length is %d. Expected >= %d && <= %d\" , remaining_packet_length , MESSAGE_HEADER_LENGTH , MAX_PACKET_LEN ) ;\n }\n return offset + remaining_packet_length ;\n }\n header_length = get_uint32 ( tvb , offset + HEADER_LENGTH_OFFSET , encoding ) ;\n body_length = get_uint32 ( tvb , offset + BODY_LENGTH_OFFSET , encoding ) ;\n packet_length_needed = ROUND_TO_8BYTE ( header_length ) + body_length + MESSAGE_HEADER_LENGTH ;\n if ( packet_length_needed > remaining_packet_length ) {\n if ( ! set_pinfo_desegment ( pinfo , offset , packet_length_needed - remaining_packet_length ) ) {\n if ( ! is_ardp ) {\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"BAD DATA: Remaining packet length is %d. Expected %d\" , remaining_packet_length , packet_length_needed ) ;\n return offset + remaining_packet_length ;\n }\n if ( remaining_packet_length < header_length ) {\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"Fragmented ARDP message: Remaining packet length is %d. Expected %d\" , remaining_packet_length , packet_length_needed ) ;\n return offset + remaining_packet_length ;\n }\n }\n else {\n return offset + remaining_packet_length ;\n }\n }\n header_item = proto_tree_add_item ( message_tree , hf_alljoyn_mess_header , tvb , offset , MESSAGE_HEADER_LENGTH , ENC_NA ) ;\n header_tree = proto_item_add_subtree ( header_item , ett_alljoyn_header ) ;\n proto_tree_add_item ( header_tree , hf_alljoyn_mess_header_endian , tvb , offset + ENDIANNESS_OFFSET , 1 , ENC_NA ) ;\n proto_tree_add_item ( header_tree , hf_alljoyn_mess_header_type , tvb , offset + TYPE_OFFSET , 1 , ENC_NA ) ;\n flag_item = proto_tree_add_item ( header_tree , hf_alljoyn_mess_header_flags , tvb , offset + FLAGS_OFFSET , 1 , ENC_NA ) ;\n flag_tree = proto_item_add_subtree ( flag_item , ett_alljoyn_header_flags ) ;\n proto_tree_add_item ( flag_tree , hf_alljoyn_mess_header_flags_encrypted , tvb , offset + FLAGS_OFFSET , 1 , ENC_NA ) ;\n proto_tree_add_item ( flag_tree , hf_alljoyn_mess_header_flags_compressed , tvb , offset + FLAGS_OFFSET , 1 , ENC_NA ) ;\n proto_tree_add_item ( flag_tree , hf_alljoyn_mess_header_flags_global_broadcast , tvb , offset + FLAGS_OFFSET , 1 , ENC_NA ) ;\n proto_tree_add_item ( flag_tree , hf_alljoyn_mess_header_flags_sessionless , tvb , offset + FLAGS_OFFSET , 1 , ENC_NA ) ;\n proto_tree_add_item ( flag_tree , hf_alljoyn_mess_header_flags_allow_remote_msg , tvb , offset + FLAGS_OFFSET , 1 , ENC_NA ) ;\n proto_tree_add_item ( flag_tree , hf_alljoyn_mess_header_flags_no_auto_start , tvb , offset + FLAGS_OFFSET , 1 , ENC_NA ) ;\n proto_tree_add_item ( flag_tree , hf_alljoyn_mess_header_flags_no_reply , tvb , offset + FLAGS_OFFSET , 1 , ENC_NA ) ;\n proto_tree_add_item ( header_tree , hf_alljoyn_mess_header_majorversion , tvb , offset + MAJORVERSION_OFFSET , 1 , ENC_NA ) ;\n proto_tree_add_item ( header_tree , hf_alljoyn_mess_header_body_length , tvb , offset + BODY_LENGTH_OFFSET , 4 , encoding ) ;\n proto_tree_add_item ( header_tree , hf_alljoyn_mess_header_serial , tvb , offset + SERIAL_OFFSET , 4 , encoding ) ;\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"Message %010u: '%s'\" , get_uint32 ( tvb , offset + SERIAL_OFFSET , encoding ) , val_to_str_const ( tvb_get_guint8 ( tvb , offset + TYPE_OFFSET ) , message_header_encoding_vals , \"Unexpected message type\" ) ) ;\n proto_tree_add_item ( header_tree , hf_alljoyn_mess_header_header_length , tvb , offset + HEADER_LENGTH_OFFSET , 4 , encoding ) ;\n offset += MESSAGE_HEADER_LENGTH ;\n packet_length_needed -= MESSAGE_HEADER_LENGTH ;\n signature = handle_message_header_fields ( tvb , pinfo , message_tree , encoding , offset , header_length , & signature_length ) ;\n offset += ROUND_TO_8BYTE ( header_length ) ;\n packet_length_needed -= ROUND_TO_8BYTE ( header_length ) ;\n remaining_packet_length = tvb_reported_length_remaining ( tvb , offset ) ;\n if ( packet_length_needed > remaining_packet_length ) {\n col_append_sep_fstr ( pinfo -> cinfo , COL_INFO , NULL , \"Fragmented ARDP message or bad data: Remaining packet length is %d. Expected %d\" , remaining_packet_length , packet_length_needed ) ;\n return offset + remaining_packet_length ;\n }\n if ( body_length > 0 && signature != NULL && signature_length > 0 ) {\n offset = handle_message_body_parameters ( tvb , pinfo , message_tree , encoding , offset , body_length , signature , signature_length ) ;\n }\n return offset ;\n }"}
{"idx": 3322, "target": 0, "func": "static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 3323, "target": 0, "func": "static int userauth_pubkey ( struct ssh * ssh ) {\n Authctxt * authctxt = ssh -> authctxt ;\n struct passwd * pw = authctxt -> pw ;\n struct sshbuf * b = NULL ;\n struct sshkey * key = NULL ;\n char * pkalg = NULL , * userstyle = NULL , * key_s = NULL , * ca_s = NULL ;\n u_char * pkblob = NULL , * sig = NULL , have_sig ;\n size_t blen , slen ;\n int r , pktype ;\n int authenticated = 0 ;\n struct sshauthopt * authopts = NULL ;\n if ( ( r = sshpkt_get_u8 ( ssh , & have_sig ) ) != 0 || ( r = sshpkt_get_cstring ( ssh , & pkalg , NULL ) ) != 0 || ( r = sshpkt_get_string ( ssh , & pkblob , & blen ) ) != 0 ) fatal ( \"%s: parse request failed: %s\" , __func__ , ssh_err ( r ) ) ;\n pktype = sshkey_type_from_name ( pkalg ) ;\n if ( pktype == KEY_UNSPEC ) {\n verbose ( \"%s: unsupported public key algorithm: %s\" , __func__ , pkalg ) ;\n goto done ;\n }\n if ( ( r = sshkey_from_blob ( pkblob , blen , & key ) ) != 0 ) {\n error ( \"%s: could not parse key: %s\" , __func__ , ssh_err ( r ) ) ;\n goto done ;\n }\n if ( key == NULL ) {\n error ( \"%s: cannot decode key: %s\" , __func__ , pkalg ) ;\n goto done ;\n }\n if ( key -> type != pktype ) {\n error ( \"%s: type mismatch for decoded key \" \"(received %d, expected %d)\" , __func__ , key -> type , pktype ) ;\n goto done ;\n }\n if ( sshkey_type_plain ( key -> type ) == KEY_RSA && ( ssh -> compat & SSH_BUG_RSASIGMD5 ) != 0 ) {\n logit ( \"Refusing RSA key because client uses unsafe \" \"signature scheme\" ) ;\n goto done ;\n }\n if ( auth2_key_already_used ( authctxt , key ) ) {\n logit ( \"refusing previously-used %s key\" , sshkey_type ( key ) ) ;\n goto done ;\n }\n if ( match_pattern_list ( pkalg , options . pubkey_key_types , 0 ) != 1 ) {\n logit ( \"%s: key type %s not in PubkeyAcceptedKeyTypes\" , __func__ , sshkey_ssh_name ( key ) ) ;\n goto done ;\n }\n key_s = format_key ( key ) ;\n if ( sshkey_is_cert ( key ) ) ca_s = format_key ( key -> cert -> signature_key ) ;\n if ( have_sig ) {\n debug3 ( \"%s: have %s signature for %s%s%s\" , __func__ , pkalg , key_s , ca_s == NULL ? \"\" : \" CA \" , ca_s == NULL ? \"\" : ca_s ) ;\n if ( ( r = sshpkt_get_string ( ssh , & sig , & slen ) ) != 0 || ( r = sshpkt_get_end ( ssh ) ) != 0 ) fatal ( \"%s: %s\" , __func__ , ssh_err ( r ) ) ;\n if ( ( b = sshbuf_new ( ) ) == NULL ) fatal ( \"%s: sshbuf_new failed\" , __func__ ) ;\n if ( ssh -> compat & SSH_OLD_SESSIONID ) {\n if ( ( r = sshbuf_put ( b , session_id2 , session_id2_len ) ) != 0 ) fatal ( \"%s: sshbuf_put session id: %s\" , __func__ , ssh_err ( r ) ) ;\n }\n else {\n if ( ( r = sshbuf_put_string ( b , session_id2 , session_id2_len ) ) != 0 ) fatal ( \"%s: sshbuf_put_string session id: %s\" , __func__ , ssh_err ( r ) ) ;\n }\n if ( ! authctxt -> valid || authctxt -> user == NULL ) {\n debug2 ( \"%s: disabled because of invalid user\" , __func__ ) ;\n goto done ;\n }\n xasprintf ( & userstyle , \"%s%s%s\" , authctxt -> user , authctxt -> style ? \":\" : \"\" , authctxt -> style ? authctxt -> style : \"\" ) ;\n if ( ( r = sshbuf_put_u8 ( b , SSH2_MSG_USERAUTH_REQUEST ) ) != 0 || ( r = sshbuf_put_cstring ( b , userstyle ) ) != 0 || ( r = sshbuf_put_cstring ( b , authctxt -> service ) ) != 0 || ( r = sshbuf_put_cstring ( b , \"publickey\" ) ) != 0 || ( r = sshbuf_put_u8 ( b , have_sig ) ) != 0 || ( r = sshbuf_put_cstring ( b , pkalg ) != 0 ) || ( r = sshbuf_put_string ( b , pkblob , blen ) ) != 0 ) fatal ( \"%s: build packet failed: %s\" , __func__ , ssh_err ( r ) ) ;\n # ifdef DEBUG_PK sshbuf_dump ( b , stderr ) ;\n # endif authenticated = 0 ;\n if ( PRIVSEP ( user_key_allowed ( ssh , pw , key , 1 , & authopts ) ) && PRIVSEP ( sshkey_verify ( key , sig , slen , sshbuf_ptr ( b ) , sshbuf_len ( b ) , ( ssh -> compat & SSH_BUG_SIGTYPE ) == 0 ? pkalg : NULL , ssh -> compat ) ) == 0 ) {\n authenticated = 1 ;\n }\n sshbuf_free ( b ) ;\n auth2_record_key ( authctxt , authenticated , key ) ;\n }\n else {\n debug ( \"%s: test pkalg %s pkblob %s%s%s\" , __func__ , pkalg , key_s , ca_s == NULL ? \"\" : \" CA \" , ca_s == NULL ? \"\" : ca_s ) ;\n if ( ( r = sshpkt_get_end ( ssh ) ) != 0 ) fatal ( \"%s: %s\" , __func__ , ssh_err ( r ) ) ;\n if ( ! authctxt -> valid || authctxt -> user == NULL ) {\n debug2 ( \"%s: disabled because of invalid user\" , __func__ ) ;\n goto done ;\n }\n if ( PRIVSEP ( user_key_allowed ( ssh , pw , key , 0 , NULL ) ) ) {\n if ( ( r = sshpkt_start ( ssh , SSH2_MSG_USERAUTH_PK_OK ) ) != 0 || ( r = sshpkt_put_cstring ( ssh , pkalg ) ) != 0 || ( r = sshpkt_put_string ( ssh , pkblob , blen ) ) != 0 || ( r = sshpkt_send ( ssh ) ) != 0 || ( r = ssh_packet_write_wait ( ssh ) ) != 0 ) fatal ( \"%s: %s\" , __func__ , ssh_err ( r ) ) ;\n authctxt -> postponed = 1 ;\n }\n }\n done : if ( authenticated == 1 && auth_activate_options ( ssh , authopts ) != 0 ) {\n debug ( \"%s: key options inconsistent with existing\" , __func__ ) ;\n authenticated = 0 ;\n }\n debug2 ( \"%s: authenticated %d pkalg %s\" , __func__ , authenticated , pkalg ) ;\n sshauthopt_free ( authopts ) ;\n sshkey_free ( key ) ;\n free ( userstyle ) ;\n free ( pkalg ) ;\n free ( pkblob ) ;\n free ( key_s ) ;\n free ( ca_s ) ;\n free ( sig ) ;\n return authenticated ;\n }"}
{"idx": 3324, "target": 0, "func": "static int dissect_h245_T_standard ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 757 \"../../asn1/h245/h245.cnf\" guint32 value_int = ( guint32 ) - 1 ;\n gef_ctx_t * gefx ;\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 127U , & value_int , FALSE ) ;\n gefx = gef_ctx_get ( actx -> private_data ) ;\n if ( gefx ) gefx -> id = wmem_strdup_printf ( wmem_packet_scope ( ) , \"%d\" , value_int ) ;\n return offset ;\n }"}
{"idx": 3325, "target": 0, "func": "rfbBool rfbFilenameTranslate2UNIX ( rfbClientPtr cl , char * path , char * unixPath , size_t unixPathMaxLen ) {\n int x ;\n char * home = NULL ;\n FILEXFER_ALLOWED_OR_CLOSE_AND_RETURN ( \"\" , cl , FALSE ) ;\n if ( strlen ( path ) >= unixPathMaxLen ) return FALSE ;\n if ( path [ 0 ] == 'C' && path [ 1 ] == ':' ) strcpy ( unixPath , & path [ 2 ] ) ;\n else {\n home = getenv ( \"HOME\" ) ;\n if ( home != NULL ) {\n if ( ( strlen ( path ) + strlen ( home ) + 1 ) >= unixPathMaxLen ) return FALSE ;\n strcpy ( unixPath , home ) ;\n strcat ( unixPath , \"/\" ) ;\n strcat ( unixPath , path ) ;\n }\n else strcpy ( unixPath , path ) ;\n }\n for ( x = 0 ;\n x < strlen ( unixPath ) ;\n x ++ ) if ( unixPath [ x ] == '\\\\' ) unixPath [ x ] = '/' ;\n return TRUE ;\n }"}
{"idx": 3326, "target": 0, "func": "static void pk_transaction_get_update_detail ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) {\n gboolean ret ;\n GError * error = NULL ;\n guint length ;\n g_autofree gchar * * package_ids = NULL ;\n g_autofree gchar * package_ids_temp = NULL ;\n g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;\n g_return_if_fail ( transaction -> priv -> tid != NULL ) ;\n g_variant_get ( params , \"(^a&s)\" , & package_ids ) ;\n package_ids_temp = pk_package_ids_to_string ( package_ids ) ;\n g_debug ( \"GetUpdateDetail method called: %s\" , package_ids_temp ) ;\n if ( ! pk_backend_is_implemented ( transaction -> priv -> backend , PK_ROLE_ENUM_GET_UPDATE_DETAIL ) ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NOT_SUPPORTED , \"GetUpdateDetail not supported by backend\" ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n length = g_strv_length ( package_ids ) ;\n if ( length > PK_TRANSACTION_MAX_PACKAGES_TO_PROCESS ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NUMBER_OF_PACKAGES_INVALID , \"Too many packages to process (%i/%i)\" , length , PK_TRANSACTION_MAX_PACKAGES_TO_PROCESS ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n ret = pk_package_ids_check ( package_ids ) ;\n if ( ! ret ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_PACKAGE_ID_INVALID , \"The package id's '%s' are not valid\" , package_ids_temp ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n transaction -> priv -> cached_package_ids = g_strdupv ( package_ids ) ;\n pk_transaction_set_role ( transaction , PK_ROLE_ENUM_GET_UPDATE_DETAIL ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_READY ) ;\n out : pk_transaction_dbus_return ( context , error ) ;\n }"}
{"idx": 3327, "target": 0, "func": "filegen_node * create_filegen_node ( int filegen_token , attr_val_fifo * options ) {\n filegen_node * my_node ;\n my_node = emalloc_zero ( sizeof ( * my_node ) ) ;\n my_node -> filegen_token = filegen_token ;\n my_node -> options = options ;\n return my_node ;\n }"}
{"idx": 3328, "target": 0, "func": "void free_re ( void ) {\n my_regfree ( & ps_re ) ;\n my_regfree ( & sp_re ) ;\n my_regfree ( & view_re ) ;\n my_regex_end ( ) ;\n }"}
{"idx": 3329, "target": 0, "func": "static int32_t _appendPrivateuseToLanguageTag ( const char * localeID , char * appendAt , int32_t capacity , UBool strict , UBool hadPosix , UErrorCode * status ) {\n ( void ) hadPosix ;\n char buf [ ULOC_FULLNAME_CAPACITY ] ;\n char tmpAppend [ ULOC_FULLNAME_CAPACITY ] ;\n UErrorCode tmpStatus = U_ZERO_ERROR ;\n int32_t len , i ;\n int32_t reslen = 0 ;\n if ( U_FAILURE ( * status ) ) {\n return 0 ;\n }\n len = uloc_getVariant ( localeID , buf , sizeof ( buf ) , & tmpStatus ) ;\n if ( U_FAILURE ( tmpStatus ) || tmpStatus == U_STRING_NOT_TERMINATED_WARNING ) {\n if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n }\n return 0 ;\n }\n if ( len > 0 ) {\n char * p , * pPriv ;\n UBool bNext = TRUE ;\n UBool firstValue = TRUE ;\n UBool writeValue ;\n pPriv = NULL ;\n p = buf ;\n while ( bNext ) {\n writeValue = FALSE ;\n if ( * p == SEP || * p == LOCALE_SEP || * p == 0 ) {\n if ( * p == 0 ) {\n bNext = FALSE ;\n }\n else {\n * p = 0 ;\n }\n if ( pPriv != NULL ) {\n for ( i = 0 ;\n * ( pPriv + i ) != 0 ;\n i ++ ) {\n * ( pPriv + i ) = uprv_tolower ( * ( pPriv + i ) ) ;\n }\n if ( _isPrivateuseValueSubtag ( pPriv , - 1 ) ) {\n if ( firstValue ) {\n if ( ! _isVariantSubtag ( pPriv , - 1 ) ) {\n writeValue = TRUE ;\n }\n }\n else {\n writeValue = TRUE ;\n }\n }\n else if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n break ;\n }\n else {\n break ;\n }\n if ( writeValue ) {\n if ( reslen < capacity ) {\n tmpAppend [ reslen ++ ] = SEP ;\n }\n if ( firstValue ) {\n if ( reslen < capacity ) {\n tmpAppend [ reslen ++ ] = * PRIVATEUSE_KEY ;\n }\n if ( reslen < capacity ) {\n tmpAppend [ reslen ++ ] = SEP ;\n }\n len = ( int32_t ) uprv_strlen ( PRIVUSE_VARIANT_PREFIX ) ;\n if ( reslen < capacity ) {\n uprv_memcpy ( tmpAppend + reslen , PRIVUSE_VARIANT_PREFIX , uprv_min ( len , capacity - reslen ) ) ;\n }\n reslen += len ;\n if ( reslen < capacity ) {\n tmpAppend [ reslen ++ ] = SEP ;\n }\n firstValue = FALSE ;\n }\n len = ( int32_t ) uprv_strlen ( pPriv ) ;\n if ( reslen < capacity ) {\n uprv_memcpy ( tmpAppend + reslen , pPriv , uprv_min ( len , capacity - reslen ) ) ;\n }\n reslen += len ;\n }\n }\n pPriv = NULL ;\n }\n else if ( pPriv == NULL ) {\n pPriv = p ;\n }\n p ++ ;\n }\n if ( U_FAILURE ( * status ) ) {\n return 0 ;\n }\n }\n if ( U_SUCCESS ( * status ) ) {\n len = reslen ;\n if ( reslen < capacity ) {\n uprv_memcpy ( appendAt , tmpAppend , uprv_min ( len , capacity - reslen ) ) ;\n }\n }\n u_terminateChars ( appendAt , capacity , reslen , status ) ;\n return reslen ;\n }"}
{"idx": 3330, "target": 0, "func": "PHP_FUNCTION ( uwsgi_signal ) {\n long long_signum ;\n uint8_t signum = 0 ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"l\" , & long_signum ) == FAILURE ) {\n RETURN_NULL ( ) ;\n }\n signum = ( uint8_t ) long_signum ;\n uwsgi_signal_send ( uwsgi . signal_socket , signum ) ;\n RETURN_NULL ( ) ;\n }"}
{"idx": 3331, "target": 0, "func": "static int selinux_conn_sid ( u32 sk_sid , u32 skb_sid , u32 * conn_sid ) {\n int err = 0 ;\n if ( skb_sid != SECSID_NULL ) err = security_sid_mls_copy ( sk_sid , skb_sid , conn_sid ) ;\n else * conn_sid = sk_sid ;\n return err ;\n }"}
{"idx": 3332, "target": 0, "func": "void do_block ( enum block_cmd cmd , struct st_command * command ) {\n char * p = command -> first_argument ;\n const char * expr_start , * expr_end ;\n VAR v ;\n const char * cmd_name = ( cmd == cmd_while ? \"while\" : \"if\" ) ;\n my_bool not_expr = FALSE ;\n DBUG_ENTER ( \"do_block\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"%s\" , cmd_name ) ) ;\n if ( cur_block == block_stack_end ) die ( \"Nesting too deeply\" ) ;\n cur_block -> line = parser . current_line ++ ;\n if ( ! cur_block -> ok ) {\n cur_block ++ ;\n cur_block -> cmd = cmd ;\n cur_block -> ok = FALSE ;\n cur_block -> delim [ 0 ] = '\\0' ;\n DBUG_VOID_RETURN ;\n }\n expr_start = strchr ( p , '(' ) ;\n if ( ! expr_start ++ ) die ( \"missing '(' in %s\" , cmd_name ) ;\n while ( my_isspace ( charset_info , * expr_start ) ) expr_start ++ ;\n if ( * expr_start == '!' ) {\n not_expr = TRUE ;\n expr_start ++ ;\n while ( * expr_start && my_isspace ( charset_info , * expr_start ) ) expr_start ++ ;\n }\n expr_end = strrchr ( expr_start , ')' ) ;\n if ( ! expr_end ) die ( \"missing ')' in %s\" , cmd_name ) ;\n p = ( char * ) expr_end + 1 ;\n while ( * p && my_isspace ( charset_info , * p ) ) p ++ ;\n if ( * p && * p != '{\n' ) die ( \"Missing '{\n' after %s. Found \\\"%s\\\"\" , cmd_name , p ) ;\n var_init ( & v , 0 , 0 , 0 , 0 ) ;\n if ( * expr_start == '$' ) {\n const char * curr_ptr = expr_end ;\n eval_expr ( & v , expr_start , & curr_ptr , true ) ;\n while ( my_isspace ( charset_info , * ++ curr_ptr ) ) {\n }\n if ( curr_ptr == expr_end ) goto NO_COMPARE ;\n enum block_op operand = find_operand ( curr_ptr ) ;\n if ( operand == ILLEG_OP ) die ( \"Found junk '%.*s' after $variable in condition\" , ( int ) ( expr_end - curr_ptr ) , curr_ptr ) ;\n if ( not_expr ) die ( \"Negation and comparison should not be combined, please rewrite\" ) ;\n if ( operand == LT_OP || operand == GT_OP ) {\n curr_ptr ++ ;\n }\n else {\n curr_ptr += 2 ;\n }\n while ( my_isspace ( charset_info , * curr_ptr ) ) curr_ptr ++ ;\n if ( curr_ptr == expr_end ) die ( \"Missing right operand in comparison\" ) ;\n while ( my_isspace ( charset_info , expr_end [ - 1 ] ) ) expr_end -- ;\n if ( * curr_ptr == '\\'' || * curr_ptr == '\"' ) {\n if ( expr_end [ - 1 ] != * curr_ptr ) die ( \"Unterminated string value\" ) ;\n curr_ptr ++ ;\n expr_end -- ;\n }\n VAR v2 ;\n var_init ( & v2 , 0 , 0 , 0 , 0 ) ;\n eval_expr ( & v2 , curr_ptr , & expr_end ) ;\n if ( ( operand != EQ_OP && operand != NE_OP ) && ! ( v . is_int && v2 . is_int ) ) die ( \"Only == and != are supported for string values\" ) ;\n switch ( operand ) {\n case EQ_OP : if ( v . is_int ) v . int_val = ( v2 . is_int && v2 . int_val == v . int_val ) ;\n else v . int_val = ! strcmp ( v . str_val , v2 . str_val ) ;\n break ;\n case NE_OP : if ( v . is_int ) v . int_val = ! ( v2 . is_int && v2 . int_val == v . int_val ) ;\n else v . int_val = ( strcmp ( v . str_val , v2 . str_val ) != 0 ) ;\n break ;\n case LT_OP : v . int_val = ( v . int_val < v2 . int_val ) ;\n break ;\n case LE_OP : v . int_val = ( v . int_val <= v2 . int_val ) ;\n break ;\n case GT_OP : v . int_val = ( v . int_val > v2 . int_val ) ;\n break ;\n case GE_OP : v . int_val = ( v . int_val >= v2 . int_val ) ;\n break ;\n case ILLEG_OP : die ( \"Impossible operator, this cannot happen\" ) ;\n }\n v . is_int = TRUE ;\n var_free ( & v2 ) ;\n }\n else {\n if ( * expr_start != '`' && ! my_isdigit ( charset_info , * expr_start ) ) die ( \"Expression in if/while must beging with $, ` or a number\" ) ;\n eval_expr ( & v , expr_start , & expr_end ) ;\n }\n NO_COMPARE : cur_block ++ ;\n cur_block -> cmd = cmd ;\n if ( v . is_int ) {\n cur_block -> ok = ( v . int_val != 0 ) ;\n }\n else {\n p = v . str_val ;\n while ( * p && ( ( my_isspace ( charset_info , * p ) || * p == '-' || * p == '+' ) ) ) p ++ ;\n cur_block -> ok = ( * p && * p != '0' ) ? TRUE : FALSE ;\n }\n if ( not_expr ) cur_block -> ok = ! cur_block -> ok ;\n if ( cur_block -> ok ) {\n cur_block -> delim [ 0 ] = '\\0' ;\n }\n else {\n strcpy ( cur_block -> delim , delimiter ) ;\n }\n DBUG_PRINT ( \"info\" , ( \"OK: %d\" , cur_block -> ok ) ) ;\n var_free ( & v ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 3333, "target": 1, "func": "void ff_mpeg_flush ( AVCodecContext * avctx ) {\n int i ;\n MpegEncContext * s = avctx -> priv_data ;\n if ( s == NULL || s -> picture == NULL ) return ;\n for ( i = 0 ;\n i < s -> picture_count ;\n i ++ ) {\n if ( s -> picture [ i ] . f . data [ 0 ] && ( s -> picture [ i ] . f . type == FF_BUFFER_TYPE_INTERNAL || s -> picture [ i ] . f . type == FF_BUFFER_TYPE_USER ) ) free_frame_buffer ( s , & s -> picture [ i ] ) ;\n }\n s -> current_picture_ptr = s -> last_picture_ptr = s -> next_picture_ptr = NULL ;\n s -> mb_x = s -> mb_y = 0 ;\n s -> parse_context . state = - 1 ;\n s -> parse_context . frame_start_found = 0 ;\n s -> parse_context . overread = 0 ;\n s -> parse_context . overread_index = 0 ;\n s -> parse_context . index = 0 ;\n s -> parse_context . last_index = 0 ;\n s -> bitstream_buffer_size = 0 ;\n s -> pp_time = 0 ;\n }"}
{"idx": 3334, "target": 0, "func": "static Asn1Generic * DecodeAsn1DerGeneric ( const unsigned char * buffer , uint32_t max_size , uint8_t depth , int seq_index , uint32_t * errcode ) {\n const unsigned char * d_ptr = buffer ;\n uint32_t numbytes , el_max_size ;\n Asn1ElementType el ;\n uint8_t c ;\n uint32_t i ;\n Asn1Generic * child ;\n uint8_t el_type ;\n el . cls = ( d_ptr [ 0 ] & 0xc0 ) >> 6 ;\n el . pc = ( d_ptr [ 0 ] & 0x20 ) >> 5 ;\n el . tag = ( d_ptr [ 0 ] & 0x1f ) ;\n el_type = el . tag ;\n if ( el . tag == 0x1f ) return NULL ;\n switch ( el . cls ) {\n case ASN1_CLASS_CONTEXTSPEC : if ( depth == 2 && el . tag == 0 ) {\n el_type = ASN1_SEQUENCE ;\n break ;\n }\n if ( depth == 2 && el . tag == 1 ) {\n el_type = ASN1_BITSTRING ;\n break ;\n }\n if ( depth == 2 && el . tag == 2 ) {\n el_type = ASN1_BITSTRING ;\n break ;\n }\n if ( depth == 2 && el . tag == 3 ) {\n el_type = ASN1_SEQUENCE ;\n break ;\n }\n break ;\n }\n ;\n el_max_size = max_size - ( d_ptr - buffer ) ;\n switch ( el_type ) {\n case ASN1_INTEGER : child = DecodeAsn1DerInteger ( d_ptr , el_max_size , depth + 1 , errcode ) ;\n break ;\n case ASN1_BOOLEAN : child = DecodeAsn1DerBoolean ( d_ptr , el_max_size , depth + 1 , errcode ) ;\n break ;\n case ASN1_NULL : child = DecodeAsn1DerNull ( d_ptr , el_max_size , depth + 1 , errcode ) ;\n break ;\n case ASN1_BITSTRING : child = DecodeAsn1DerBitstring ( d_ptr , el_max_size , depth + 1 , errcode ) ;\n break ;\n case ASN1_OID : child = DecodeAsn1DerOid ( d_ptr , el_max_size , depth + 1 , errcode ) ;\n break ;\n case ASN1_IA5STRING : child = DecodeAsn1DerIA5String ( d_ptr , el_max_size , depth + 1 , errcode ) ;\n break ;\n case ASN1_OCTETSTRING : child = DecodeAsn1DerOctetString ( d_ptr , el_max_size , depth + 1 , errcode ) ;\n break ;\n case ASN1_UTF8STRING : child = DecodeAsn1DerUTF8String ( d_ptr , el_max_size , depth + 1 , errcode ) ;\n break ;\n case ASN1_PRINTSTRING : child = DecodeAsn1DerPrintableString ( d_ptr , el_max_size , depth + 1 , errcode ) ;\n break ;\n case ASN1_SEQUENCE : child = DecodeAsn1DerSequence ( d_ptr , el_max_size , depth + 1 , errcode ) ;\n break ;\n case ASN1_SET : child = DecodeAsn1DerSet ( d_ptr , el_max_size , depth + 1 , errcode ) ;\n break ;\n case ASN1_T61STRING : child = DecodeAsn1DerT61String ( d_ptr , el_max_size , depth + 1 , errcode ) ;\n break ;\n case ASN1_UTCTIME : child = DecodeAsn1DerUTCTime ( d_ptr , el_max_size , depth + 1 , errcode ) ;\n break ;\n default : child = NULL ;\n child = Asn1GenericNew ( ) ;\n if ( child == NULL ) break ;\n child -> type = el . tag ;\n const unsigned char * save_d_ptr = d_ptr ;\n d_ptr ++ ;\n c = d_ptr [ 0 ] ;\n if ( ( c & ( 1 << 7 ) ) >> 7 == 0 ) {\n child -> length = c ;\n d_ptr ++ ;\n }\n else {\n numbytes = c & 0x7f ;\n if ( numbytes > el_max_size ) {\n SCFree ( child ) ;\n if ( errcode ) * errcode = ERR_DER_ELEMENT_SIZE_TOO_BIG ;\n return NULL ;\n }\n child -> length = 0 ;\n d_ptr ++ ;\n for ( i = 0 ;\n i < numbytes ;\n i ++ ) {\n child -> length = child -> length << 8 | d_ptr [ 0 ] ;\n d_ptr ++ ;\n }\n }\n child -> length += ( d_ptr - save_d_ptr ) ;\n break ;\n }\n ;\n if ( child == NULL ) return NULL ;\n child -> header = el ;\n return child ;\n }"}
{"idx": 3335, "target": 0, "func": "static void * pool_alloc ( size_t len ) {\n struct mem_pool * p ;\n void * r ;\n if ( len & ( sizeof ( uintmax_t ) - 1 ) ) len += sizeof ( uintmax_t ) - ( len & ( sizeof ( uintmax_t ) - 1 ) ) ;\n for ( p = mem_pool ;\n p ;\n p = p -> next_pool ) if ( ( p -> end - p -> next_free >= len ) ) break ;\n if ( ! p ) {\n if ( len >= ( mem_pool_alloc / 2 ) ) {\n total_allocd += len ;\n return xmalloc ( len ) ;\n }\n total_allocd += sizeof ( struct mem_pool ) + mem_pool_alloc ;\n p = xmalloc ( sizeof ( struct mem_pool ) + mem_pool_alloc ) ;\n p -> next_pool = mem_pool ;\n p -> next_free = ( char * ) p -> space ;\n p -> end = p -> next_free + mem_pool_alloc ;\n mem_pool = p ;\n }\n r = p -> next_free ;\n p -> next_free += len ;\n return r ;\n }"}
{"idx": 3336, "target": 1, "func": "static int dissect_h225_H221NonStandard ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 790 \"./asn1/h225/h225.cnf\" t35CountryCode = 0 ;\n t35Extension = 0 ;\n manufacturerCode = 0 ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_H221NonStandard , H221NonStandard_sequence ) ;\n # line 794 \"./asn1/h225/h225.cnf\" h221NonStandard = ( ( t35CountryCode * 256 ) + t35Extension ) * 65536 + manufacturerCode ;\n proto_tree_add_uint ( tree , hf_h221Manufacturer , tvb , ( offset >> 3 ) - 4 , 4 , h221NonStandard ) ;\n return offset ;\n }"}
{"idx": 3337, "target": 0, "func": "static int read_dct_coeffs ( GetBitContext * gb , int32_t block [ 64 ] , const uint8_t * scan , const int32_t quant_matrices [ 16 ] [ 64 ] , int q ) {\n int coef_list [ 128 ] ;\n int mode_list [ 128 ] ;\n int i , t , bits , ccoef , mode , sign ;\n int list_start = 64 , list_end = 64 , list_pos ;\n int coef_count = 0 ;\n int coef_idx [ 64 ] ;\n int quant_idx ;\n const int32_t * quant ;\n coef_list [ list_end ] = 4 ;\n mode_list [ list_end ++ ] = 0 ;\n coef_list [ list_end ] = 24 ;\n mode_list [ list_end ++ ] = 0 ;\n coef_list [ list_end ] = 44 ;\n mode_list [ list_end ++ ] = 0 ;\n coef_list [ list_end ] = 1 ;\n mode_list [ list_end ++ ] = 3 ;\n coef_list [ list_end ] = 2 ;\n mode_list [ list_end ++ ] = 3 ;\n coef_list [ list_end ] = 3 ;\n mode_list [ list_end ++ ] = 3 ;\n for ( bits = get_bits ( gb , 4 ) - 1 ;\n bits >= 0 ;\n bits -- ) {\n list_pos = list_start ;\n while ( list_pos < list_end ) {\n if ( ! ( mode_list [ list_pos ] | coef_list [ list_pos ] ) || ! get_bits1 ( gb ) ) {\n list_pos ++ ;\n continue ;\n }\n ccoef = coef_list [ list_pos ] ;\n mode = mode_list [ list_pos ] ;\n switch ( mode ) {\n case 0 : coef_list [ list_pos ] = ccoef + 4 ;\n mode_list [ list_pos ] = 1 ;\n case 2 : if ( mode == 2 ) {\n coef_list [ list_pos ] = 0 ;\n mode_list [ list_pos ++ ] = 0 ;\n }\n for ( i = 0 ;\n i < 4 ;\n i ++ , ccoef ++ ) {\n if ( get_bits1 ( gb ) ) {\n coef_list [ -- list_start ] = ccoef ;\n mode_list [ list_start ] = 3 ;\n }\n else {\n if ( ! bits ) {\n t = 1 - ( get_bits1 ( gb ) << 1 ) ;\n }\n else {\n t = get_bits ( gb , bits ) | 1 << bits ;\n sign = - get_bits1 ( gb ) ;\n t = ( t ^ sign ) - sign ;\n }\n block [ scan [ ccoef ] ] = t ;\n coef_idx [ coef_count ++ ] = ccoef ;\n }\n }\n break ;\n case 1 : mode_list [ list_pos ] = 2 ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n ccoef += 4 ;\n coef_list [ list_end ] = ccoef ;\n mode_list [ list_end ++ ] = 2 ;\n }\n break ;\n case 3 : if ( ! bits ) {\n t = 1 - ( get_bits1 ( gb ) << 1 ) ;\n }\n else {\n t = get_bits ( gb , bits ) | 1 << bits ;\n sign = - get_bits1 ( gb ) ;\n t = ( t ^ sign ) - sign ;\n }\n block [ scan [ ccoef ] ] = t ;\n coef_idx [ coef_count ++ ] = ccoef ;\n coef_list [ list_pos ] = 0 ;\n mode_list [ list_pos ++ ] = 0 ;\n break ;\n }\n }\n }\n if ( q == - 1 ) {\n quant_idx = get_bits ( gb , 4 ) ;\n }\n else {\n quant_idx = q ;\n }\n quant = quant_matrices [ quant_idx ] ;\n block [ 0 ] = ( block [ 0 ] * quant [ 0 ] ) >> 11 ;\n for ( i = 0 ;\n i < coef_count ;\n i ++ ) {\n int idx = coef_idx [ i ] ;\n block [ scan [ idx ] ] = ( block [ scan [ idx ] ] * quant [ idx ] ) >> 11 ;\n }\n return 0 ;\n }"}
{"idx": 3338, "target": 0, "func": "static int tls1_generate_key_block ( SSL * s , unsigned char * km , unsigned char * tmp , int num ) {\n int ret ;\n ret = tls1_PRF ( ssl_get_algorithm2 ( s ) , TLS_MD_KEY_EXPANSION_CONST , TLS_MD_KEY_EXPANSION_CONST_SIZE , s -> s3 -> server_random , SSL3_RANDOM_SIZE , s -> s3 -> client_random , SSL3_RANDOM_SIZE , NULL , 0 , NULL , 0 , s -> session -> master_key , s -> session -> master_key_length , km , tmp , num ) ;\n # ifdef KSSL_DEBUG printf ( \"tls1_generate_key_block() ==> %d byte master_key =\\n\\t\" , s -> session -> master_key_length ) ;\n {\n int i ;\n for ( i = 0 ;\n i < s -> session -> master_key_length ;\n i ++ ) {\n printf ( \"%02X\" , s -> session -> master_key [ i ] ) ;\n }\n printf ( \"\\n\" ) ;\n }\n # endif return ret ;\n }"}
{"idx": 3339, "target": 0, "func": "int TSMimeHdrFieldEqual ( TSMBuffer bufp , TSMLoc hdr_obj , TSMLoc field1_obj , TSMLoc field2_obj ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_field_handle ( field1_obj , hdr_obj ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_field_handle ( field2_obj , hdr_obj ) == TS_SUCCESS ) ;\n MIMEFieldSDKHandle * field1_handle = ( MIMEFieldSDKHandle * ) field1_obj ;\n MIMEFieldSDKHandle * field2_handle = ( MIMEFieldSDKHandle * ) field2_obj ;\n if ( ( field1_handle == nullptr ) || ( field2_handle == nullptr ) ) {\n return ( field1_handle == field2_handle ) ;\n }\n return ( field1_handle -> field_ptr == field2_handle -> field_ptr ) ;\n }"}
{"idx": 3340, "target": 0, "func": "static CURLcode glob_range ( URLGlob * glob , char * * patternp , size_t * posp , unsigned long * amount , int globindex ) {\n URLPattern * pat ;\n int rc ;\n char * pattern = * patternp ;\n char * c ;\n pat = & glob -> pattern [ glob -> size ] ;\n pat -> globindex = globindex ;\n if ( ISALPHA ( * pattern ) ) {\n char min_c ;\n char max_c ;\n int step = 1 ;\n pat -> type = UPTCharRange ;\n rc = sscanf ( pattern , \"%c-%c\" , & min_c , & max_c ) ;\n if ( ( rc == 2 ) && ( pattern [ 3 ] == ':' ) ) {\n char * endp ;\n unsigned long lstep ;\n errno = 0 ;\n lstep = strtoul ( & pattern [ 4 ] , & endp , 10 ) ;\n if ( errno || ( * endp != ']' ) ) step = - 1 ;\n else {\n pattern = endp + 1 ;\n step = ( int ) lstep ;\n if ( step > ( max_c - min_c ) ) step = - 1 ;\n }\n }\n else pattern += 4 ;\n * posp += ( pattern - * patternp ) ;\n if ( ( rc != 2 ) || ( min_c >= max_c ) || ( ( max_c - min_c ) > ( 'z' - 'a' ) ) || ( step <= 0 ) ) return GLOBERROR ( \"bad range\" , * posp , CURLE_URL_MALFORMAT ) ;\n pat -> content . CharRange . step = step ;\n pat -> content . CharRange . ptr_c = pat -> content . CharRange . min_c = min_c ;\n pat -> content . CharRange . max_c = max_c ;\n if ( multiply ( amount , ( pat -> content . CharRange . max_c - pat -> content . CharRange . min_c ) / pat -> content . CharRange . step + 1 ) ) return GLOBERROR ( \"range overflow\" , * posp , CURLE_URL_MALFORMAT ) ;\n }\n else if ( ISDIGIT ( * pattern ) ) {\n unsigned long min_n ;\n unsigned long max_n = 0 ;\n unsigned long step_n = 0 ;\n char * endp ;\n pat -> type = UPTNumRange ;\n pat -> content . NumRange . padlength = 0 ;\n if ( * pattern == '0' ) {\n c = pattern ;\n while ( ISDIGIT ( * c ) ) {\n c ++ ;\n ++ pat -> content . NumRange . padlength ;\n }\n }\n errno = 0 ;\n min_n = strtoul ( pattern , & endp , 10 ) ;\n if ( errno || ( endp == pattern ) ) endp = NULL ;\n else {\n if ( * endp != '-' ) endp = NULL ;\n else {\n pattern = endp + 1 ;\n while ( * pattern && ISBLANK ( * pattern ) ) pattern ++ ;\n if ( ! ISDIGIT ( * pattern ) ) {\n endp = NULL ;\n goto fail ;\n }\n errno = 0 ;\n max_n = strtoul ( pattern , & endp , 10 ) ;\n if ( errno || ( * endp == ':' ) ) {\n pattern = endp + 1 ;\n errno = 0 ;\n step_n = strtoul ( pattern , & endp , 10 ) ;\n if ( errno ) endp = NULL ;\n }\n else step_n = 1 ;\n if ( endp && ( * endp == ']' ) ) {\n pattern = endp + 1 ;\n }\n else endp = NULL ;\n }\n }\n fail : * posp += ( pattern - * patternp ) ;\n if ( ! endp || ( min_n > max_n ) || ( step_n > ( max_n - min_n ) ) || ! step_n ) return GLOBERROR ( \"bad range\" , * posp , CURLE_URL_MALFORMAT ) ;\n pat -> content . NumRange . ptr_n = pat -> content . NumRange . min_n = min_n ;\n pat -> content . NumRange . max_n = max_n ;\n pat -> content . NumRange . step = step_n ;\n if ( multiply ( amount , ( pat -> content . NumRange . max_n - pat -> content . NumRange . min_n ) / pat -> content . NumRange . step + 1 ) ) return GLOBERROR ( \"range overflow\" , * posp , CURLE_URL_MALFORMAT ) ;\n }\n else return GLOBERROR ( \"bad range specification\" , * posp , CURLE_URL_MALFORMAT ) ;\n * patternp = pattern ;\n return CURLE_OK ;\n }"}
{"idx": 3341, "target": 0, "func": "static int DoMatOp ( int tok , int sp , struct psstack * stack ) {\n real temp [ 6 ] , t [ 6 ] ;\n int nsp = sp ;\n if ( stack [ sp - 1 ] . u . dict . cnt == 6 && stack [ sp - 1 ] . u . dict . entries [ 0 ] . type == ps_num ) {\n t [ 5 ] = stack [ sp - 1 ] . u . dict . entries [ 5 ] . u . val ;\n t [ 4 ] = stack [ sp - 1 ] . u . dict . entries [ 4 ] . u . val ;\n t [ 3 ] = stack [ sp - 1 ] . u . dict . entries [ 3 ] . u . val ;\n t [ 2 ] = stack [ sp - 1 ] . u . dict . entries [ 2 ] . u . val ;\n t [ 1 ] = stack [ sp - 1 ] . u . dict . entries [ 1 ] . u . val ;\n t [ 0 ] = stack [ sp - 1 ] . u . dict . entries [ 0 ] . u . val ;\n switch ( tok ) {\n case pt_translate : if ( sp >= 3 ) {\n stack [ sp - 1 ] . u . dict . entries [ 5 ] . u . val += stack [ sp - 3 ] . u . val * t [ 0 ] + stack [ sp - 2 ] . u . val * t [ 2 ] ;\n stack [ sp - 1 ] . u . dict . entries [ 4 ] . u . val += stack [ sp - 3 ] . u . val * t [ 1 ] + stack [ sp - 2 ] . u . val * t [ 3 ] ;\n nsp = sp - 2 ;\n }\n break ;\n case pt_scale : if ( sp >= 2 ) {\n stack [ sp - 1 ] . u . dict . entries [ 0 ] . u . val *= stack [ sp - 3 ] . u . val ;\n stack [ sp - 1 ] . u . dict . entries [ 1 ] . u . val *= stack [ sp - 3 ] . u . val ;\n stack [ sp - 1 ] . u . dict . entries [ 2 ] . u . val *= stack [ sp - 2 ] . u . val ;\n stack [ sp - 1 ] . u . dict . entries [ 3 ] . u . val *= stack [ sp - 2 ] . u . val ;\n nsp = sp - 2 ;\n }\n break ;\n case pt_rotate : if ( sp >= 1 ) {\n -- sp ;\n temp [ 0 ] = temp [ 3 ] = cos ( stack [ sp ] . u . val ) ;\n temp [ 1 ] = sin ( stack [ sp ] . u . val ) ;\n temp [ 2 ] = - temp [ 1 ] ;\n temp [ 4 ] = temp [ 5 ] = 0 ;\n MatMultiply ( temp , t , t ) ;\n stack [ sp - 1 ] . u . dict . entries [ 5 ] . u . val = t [ 5 ] ;\n stack [ sp - 1 ] . u . dict . entries [ 4 ] . u . val = t [ 4 ] ;\n stack [ sp - 1 ] . u . dict . entries [ 3 ] . u . val = t [ 3 ] ;\n stack [ sp - 1 ] . u . dict . entries [ 2 ] . u . val = t [ 2 ] ;\n stack [ sp - 1 ] . u . dict . entries [ 1 ] . u . val = t [ 1 ] ;\n stack [ sp - 1 ] . u . dict . entries [ 0 ] . u . val = t [ 0 ] ;\n nsp = sp - 1 ;\n }\n break ;\n default : break ;\n }\n stack [ nsp - 1 ] = stack [ sp - 1 ] ;\n }\n return ( nsp ) ;\n }"}
{"idx": 3342, "target": 0, "func": "static inline void copy ( LZOContext * c , int cnt ) {\n register const uint8_t * src = c -> in ;\n register uint8_t * dst = c -> out ;\n if ( cnt < 0 ) {\n c -> error |= AV_LZO_ERROR ;\n return ;\n }\n if ( cnt > c -> in_end - src ) {\n cnt = FFMAX ( c -> in_end - src , 0 ) ;\n c -> error |= AV_LZO_INPUT_DEPLETED ;\n }\n if ( cnt > c -> out_end - dst ) {\n cnt = FFMAX ( c -> out_end - dst , 0 ) ;\n c -> error |= AV_LZO_OUTPUT_FULL ;\n }\n # if defined ( INBUF_PADDED ) && defined ( OUTBUF_PADDED ) AV_COPY32U ( dst , src ) ;\n src += 4 ;\n dst += 4 ;\n cnt -= 4 ;\n if ( cnt > 0 ) # endif memcpy ( dst , src , cnt ) ;\n c -> in = src + cnt ;\n c -> out = dst + cnt ;\n }"}
{"idx": 3343, "target": 0, "func": "static gboolean logcat_dump_text ( wtap_dumper * wdh , const struct wtap_pkthdr * phdr , const guint8 * pd , int * err ) {\n gchar * buf ;\n gint length ;\n gchar priority ;\n const struct logger_entry * log_entry = ( struct logger_entry * ) pd ;\n const struct logger_entry_v2 * log_entry_v2 = ( struct logger_entry_v2 * ) pd ;\n gint payload_length ;\n const gchar * tag ;\n gint32 pid ;\n gint32 tid ;\n gint32 seconds ;\n gint32 milliseconds ;\n const gchar * msg_begin ;\n gint msg_pre_skip ;\n gchar * log ;\n gchar * log_part ;\n gchar * log_next ;\n const union wtap_pseudo_header * pseudo_header = & phdr -> pseudo_header ;\n const struct dumper_t * dumper = ( const struct dumper_t * ) wdh -> priv ;\n if ( phdr -> rec_type != REC_TYPE_PACKET ) {\n * err = WTAP_ERR_REC_TYPE_UNSUPPORTED ;\n return FALSE ;\n }\n payload_length = GINT32_FROM_LE ( log_entry -> len ) ;\n pid = GINT32_FROM_LE ( log_entry -> pid ) ;\n tid = GINT32_FROM_LE ( log_entry -> tid ) ;\n seconds = GINT32_FROM_LE ( log_entry -> sec ) ;\n milliseconds = GINT32_FROM_LE ( log_entry -> nsec ) / 1000000 ;\n if ( pseudo_header -> logcat . version == 1 ) {\n priority = get_priority ( log_entry -> msg [ 0 ] ) ;\n tag = log_entry -> msg + 1 ;\n msg_pre_skip = 1 + strlen ( tag ) + 1 ;\n msg_begin = log_entry -> msg + msg_pre_skip ;\n }\n else if ( pseudo_header -> logcat . version == 2 ) {\n priority = get_priority ( log_entry_v2 -> msg [ 0 ] ) ;\n tag = log_entry_v2 -> msg + 1 ;\n msg_pre_skip = 1 + strlen ( tag ) + 1 ;\n msg_begin = log_entry_v2 -> msg + msg_pre_skip ;\n }\n else {\n * err = WTAP_ERR_UNSUPPORTED ;\n return FALSE ;\n }\n log = g_strndup ( msg_begin , payload_length - msg_pre_skip ) ;\n log_next = log ;\n do {\n log_part = log_next ;\n if ( dumper -> type == DUMP_LONG ) {\n log_next = NULL ;\n }\n else {\n log_next = strchr ( log_part , '\\n' ) ;\n if ( log_next != NULL ) {\n * log_next = '\\0' ;\n ++ log_next ;\n if ( * log_next == '\\0' ) {\n log_next = NULL ;\n }\n }\n }\n buf = logcat_log ( dumper , seconds , milliseconds , pid , tid , priority , tag , log_part ) ;\n if ( ! buf ) {\n g_free ( log ) ;\n return FALSE ;\n }\n length = ( guint32 ) strlen ( buf ) ;\n if ( ! wtap_dump_file_write ( wdh , buf , length , err ) ) {\n g_free ( log ) ;\n return FALSE ;\n }\n wdh -> bytes_dumped += length ;\n }\n while ( log_next != NULL ) ;\n g_free ( log ) ;\n return TRUE ;\n }"}
{"idx": 3344, "target": 0, "func": "void ff_vdpau_h264_set_reference_frames ( H264Context * h ) {\n struct vdpau_render_state * render , * render_ref ;\n VdpReferenceFrameH264 * rf , * rf2 ;\n Picture * pic ;\n int i , list , pic_frame_idx ;\n render = ( struct vdpau_render_state * ) h -> cur_pic_ptr -> f . data [ 0 ] ;\n assert ( render ) ;\n rf = & render -> info . h264 . referenceFrames [ 0 ] ;\n # define H264_RF_COUNT FF_ARRAY_ELEMS ( render -> info . h264 . referenceFrames ) for ( list = 0 ;\n list < 2 ;\n ++ list ) {\n Picture * * lp = list ? h -> long_ref : h -> short_ref ;\n int ls = list ? 16 : h -> short_ref_count ;\n for ( i = 0 ;\n i < ls ;\n ++ i ) {\n pic = lp [ i ] ;\n if ( ! pic || ! pic -> reference ) continue ;\n pic_frame_idx = pic -> long_ref ? pic -> pic_id : pic -> frame_num ;\n render_ref = ( struct vdpau_render_state * ) pic -> f . data [ 0 ] ;\n assert ( render_ref ) ;\n rf2 = & render -> info . h264 . referenceFrames [ 0 ] ;\n while ( rf2 != rf ) {\n if ( ( rf2 -> surface == render_ref -> surface ) && ( rf2 -> is_long_term == pic -> long_ref ) && ( rf2 -> frame_idx == pic_frame_idx ) ) break ;\n ++ rf2 ;\n }\n if ( rf2 != rf ) {\n rf2 -> top_is_reference |= ( pic -> reference & PICT_TOP_FIELD ) ? VDP_TRUE : VDP_FALSE ;\n rf2 -> bottom_is_reference |= ( pic -> reference & PICT_BOTTOM_FIELD ) ? VDP_TRUE : VDP_FALSE ;\n continue ;\n }\n if ( rf >= & render -> info . h264 . referenceFrames [ H264_RF_COUNT ] ) continue ;\n rf -> surface = render_ref -> surface ;\n rf -> is_long_term = pic -> long_ref ;\n rf -> top_is_reference = ( pic -> reference & PICT_TOP_FIELD ) ? VDP_TRUE : VDP_FALSE ;\n rf -> bottom_is_reference = ( pic -> reference & PICT_BOTTOM_FIELD ) ? VDP_TRUE : VDP_FALSE ;\n rf -> field_order_cnt [ 0 ] = pic -> field_poc [ 0 ] ;\n rf -> field_order_cnt [ 1 ] = pic -> field_poc [ 1 ] ;\n rf -> frame_idx = pic_frame_idx ;\n ++ rf ;\n }\n }\n for ( ;\n rf < & render -> info . h264 . referenceFrames [ H264_RF_COUNT ] ;\n ++ rf ) {\n rf -> surface = VDP_INVALID_HANDLE ;\n rf -> is_long_term = 0 ;\n rf -> top_is_reference = 0 ;\n rf -> bottom_is_reference = 0 ;\n rf -> field_order_cnt [ 0 ] = 0 ;\n rf -> field_order_cnt [ 1 ] = 0 ;\n rf -> frame_idx = 0 ;\n }\n }"}
{"idx": 3345, "target": 0, "func": "int archive_mstring_copy_mbs ( struct archive_mstring * aes , const char * mbs ) {\n if ( mbs == NULL ) {\n aes -> aes_set = 0 ;\n return ( 0 ) ;\n }\n return ( archive_mstring_copy_mbs_len ( aes , mbs , strlen ( mbs ) ) ) ;\n }"}
{"idx": 3346, "target": 0, "func": "hb_bool_t _hb_graphite2_shape ( hb_shape_plan_t * shape_plan , hb_font_t * font , hb_buffer_t * buffer , const hb_feature_t * features , unsigned int num_features ) {\n hb_face_t * face = font -> face ;\n gr_face * grface = HB_SHAPER_DATA_GET ( face ) -> grface ;\n gr_font * grfont = HB_SHAPER_DATA_GET ( font ) ;\n const char * lang = hb_language_to_string ( hb_buffer_get_language ( buffer ) ) ;\n const char * lang_end = lang ? strchr ( lang , '-' ) : NULL ;\n int lang_len = lang_end ? lang_end - lang : - 1 ;\n gr_feature_val * feats = gr_face_featureval_for_lang ( grface , lang ? hb_tag_from_string ( lang , lang_len ) : 0 ) ;\n for ( unsigned int i = 0 ;\n i < num_features ;\n i ++ ) {\n const gr_feature_ref * fref = gr_face_find_fref ( grface , features [ i ] . tag ) ;\n if ( fref ) gr_fref_set_feature_value ( fref , features [ i ] . value , feats ) ;\n }\n gr_segment * seg = NULL ;\n const gr_slot * is ;\n unsigned int ci = 0 , ic = 0 ;\n float curradvx = 0. , curradvy = 0. ;\n unsigned int scratch_size ;\n hb_buffer_t : : scratch_buffer_t * scratch = buffer -> get_scratch_buffer ( & scratch_size ) ;\n uint32_t * chars = ( uint32_t * ) scratch ;\n for ( unsigned int i = 0 ;\n i < buffer -> len ;\n ++ i ) chars [ i ] = buffer -> info [ i ] . codepoint ;\n hb_tag_t script_tag [ 2 ] ;\n hb_ot_tags_from_script ( hb_buffer_get_script ( buffer ) , & script_tag [ 0 ] , & script_tag [ 1 ] ) ;\n seg = gr_make_seg ( grfont , grface , script_tag [ 1 ] == HB_TAG_NONE ? script_tag [ 0 ] : script_tag [ 1 ] , feats , gr_utf32 , chars , buffer -> len , | ( hb_buffer_get_direction ( buffer ) == HB_DIRECTION_RTL ? 1 : 0 ) ) ;\n if ( unlikely ( ! seg ) ) {\n if ( feats ) gr_featureval_destroy ( feats ) ;\n return false ;\n }\n unsigned int glyph_count = gr_seg_n_slots ( seg ) ;\n if ( unlikely ( ! glyph_count ) ) {\n if ( feats ) gr_featureval_destroy ( feats ) ;\n gr_seg_destroy ( seg ) ;\n buffer -> len = 0 ;\n return true ;\n }\n buffer -> ensure ( glyph_count ) ;\n scratch = buffer -> get_scratch_buffer ( & scratch_size ) ;\n while ( ( DIV_CEIL ( sizeof ( hb_graphite2_cluster_t ) * buffer -> len , sizeof ( * scratch ) ) + DIV_CEIL ( sizeof ( hb_codepoint_t ) * glyph_count , sizeof ( * scratch ) ) ) > scratch_size ) {\n if ( unlikely ( ! buffer -> ensure ( buffer -> allocated * 2 ) ) ) {\n if ( feats ) gr_featureval_destroy ( feats ) ;\n gr_seg_destroy ( seg ) ;\n return false ;\n }\n scratch = buffer -> get_scratch_buffer ( & scratch_size ) ;\n }\n # define ALLOCATE_ARRAY ( Type , name , len ) Type * name = ( Type * ) scratch ;\n {\n unsigned int _consumed = DIV_CEIL ( ( len ) * sizeof ( Type ) , sizeof ( * scratch ) ) ;\n assert ( _consumed <= scratch_size ) ;\n scratch += _consumed ;\n scratch_size -= _consumed ;\n }\n ALLOCATE_ARRAY ( hb_graphite2_cluster_t , clusters , buffer -> len ) ;\n ALLOCATE_ARRAY ( hb_codepoint_t , gids , glyph_count ) ;\n # undef ALLOCATE_ARRAY memset ( clusters , 0 , sizeof ( clusters [ 0 ] ) * buffer -> len ) ;\n hb_codepoint_t * pg = gids ;\n clusters [ 0 ] . cluster = buffer -> info [ 0 ] . cluster ;\n for ( is = gr_seg_first_slot ( seg ) , ic = 0 ;\n is ;\n is = gr_slot_next_in_segment ( is ) , ic ++ ) {\n unsigned int before = gr_slot_before ( is ) ;\n unsigned int after = gr_slot_after ( is ) ;\n * pg = gr_slot_gid ( is ) ;\n pg ++ ;\n while ( clusters [ ci ] . base_char > before && ci ) {\n clusters [ ci - 1 ] . num_chars += clusters [ ci ] . num_chars ;\n clusters [ ci - 1 ] . num_glyphs += clusters [ ci ] . num_glyphs ;\n ci -- ;\n }\n if ( gr_slot_can_insert_before ( is ) && clusters [ ci ] . num_chars && before >= clusters [ ci ] . base_char + clusters [ ci ] . num_chars ) {\n hb_graphite2_cluster_t * c = clusters + ci + 1 ;\n c -> base_char = clusters [ ci ] . base_char + clusters [ ci ] . num_chars ;\n c -> cluster = buffer -> info [ c -> base_char ] . cluster ;\n c -> num_chars = before - c -> base_char ;\n c -> base_glyph = ic ;\n c -> num_glyphs = 0 ;\n ci ++ ;\n }\n clusters [ ci ] . num_glyphs ++ ;\n if ( clusters [ ci ] . base_char + clusters [ ci ] . num_chars < after + 1 ) clusters [ ci ] . num_chars = after + 1 - clusters [ ci ] . base_char ;\n }\n ci ++ ;\n for ( unsigned int i = 0 ;\n i < ci ;\n ++ i ) {\n for ( unsigned int j = 0 ;\n j < clusters [ i ] . num_glyphs ;\n ++ j ) {\n hb_glyph_info_t * info = & buffer -> info [ clusters [ i ] . base_glyph + j ] ;\n info -> codepoint = gids [ clusters [ i ] . base_glyph + j ] ;\n info -> cluster = clusters [ i ] . cluster ;\n }\n }\n buffer -> len = glyph_count ;\n if ( ! HB_DIRECTION_IS_BACKWARD ( buffer -> props . direction ) ) {\n hb_glyph_position_t * pPos ;\n for ( pPos = hb_buffer_get_glyph_positions ( buffer , NULL ) , is = gr_seg_first_slot ( seg ) ;\n is ;\n pPos ++ , is = gr_slot_next_in_segment ( is ) ) {\n pPos -> x_offset = gr_slot_origin_X ( is ) - curradvx ;\n pPos -> y_offset = gr_slot_origin_Y ( is ) - curradvy ;\n pPos -> x_advance = gr_slot_advance_X ( is , grface , grfont ) ;\n pPos -> y_advance = gr_slot_advance_Y ( is , grface , grfont ) ;\n curradvx += pPos -> x_advance ;\n curradvy += pPos -> y_advance ;\n }\n pPos [ - 1 ] . x_advance += gr_seg_advance_X ( seg ) - curradvx ;\n }\n else {\n hb_glyph_position_t * pPos = hb_buffer_get_glyph_positions ( buffer , NULL ) + buffer -> len - 1 ;\n const hb_glyph_info_t * info = buffer -> info + buffer -> len - 1 ;\n const hb_glyph_info_t * tinfo ;\n const gr_slot * tis ;\n int currclus = - 1 ;\n float clusx = 0. , clusy = 0. ;\n for ( is = gr_seg_last_slot ( seg ) ;\n is ;\n pPos -- , info -- , is = gr_slot_prev_in_segment ( is ) ) {\n if ( info -> cluster != currclus ) {\n curradvx += clusx ;\n curradvy += clusy ;\n currclus = info -> cluster ;\n clusx = 0. ;\n clusy = 0. ;\n for ( tis = is , tinfo = info ;\n tis && tinfo -> cluster == currclus ;\n tis = gr_slot_prev_in_segment ( tis ) , tinfo -- ) {\n clusx += gr_slot_advance_X ( tis , grface , grfont ) ;\n clusy += gr_slot_advance_Y ( tis , grface , grfont ) ;\n }\n curradvx += clusx ;\n curradvy += clusy ;\n }\n pPos -> x_advance = gr_slot_advance_X ( is , grface , grfont ) ;\n pPos -> y_advance = gr_slot_advance_Y ( is , grface , grfont ) ;\n curradvx -= pPos -> x_advance ;\n curradvy -= pPos -> y_advance ;\n pPos -> x_offset = gr_slot_origin_X ( is ) - curradvx ;\n pPos -> y_offset = gr_slot_origin_Y ( is ) - curradvy ;\n }\n hb_buffer_reverse_clusters ( buffer ) ;\n }\n if ( feats ) gr_featureval_destroy ( feats ) ;\n gr_seg_destroy ( seg ) ;\n return true ;\n }"}
{"idx": 3347, "target": 0, "func": "static void maybe_exit ( int error ) {\n if ( ! first_error ) first_error = error ;\n if ( ignore_errors ) return ;\n ignore_errors = 1 ;\n if ( opt_slave_data ) do_start_slave_sql ( mysql ) ;\n if ( mysql ) mysql_close ( mysql ) ;\n free_resources ( ) ;\n exit ( error ) ;\n }"}
{"idx": 3348, "target": 0, "func": "static struct subre * parse ( struct vars * v , int stopper , int type , struct state * init , struct state * final ) {\n struct state * left ;\n struct state * right ;\n struct subre * branches ;\n struct subre * branch ;\n struct subre * t ;\n int firstbranch ;\n assert ( stopper == ')' || stopper == EOS ) ;\n branches = subre ( v , '|' , LONGER , init , final ) ;\n NOERRN ( ) ;\n branch = branches ;\n firstbranch = 1 ;\n do {\n if ( ! firstbranch ) {\n branch -> right = subre ( v , '|' , LONGER , init , final ) ;\n NOERRN ( ) ;\n branch = branch -> right ;\n }\n firstbranch = 0 ;\n left = newstate ( v -> nfa ) ;\n right = newstate ( v -> nfa ) ;\n NOERRN ( ) ;\n EMPTYARC ( init , left ) ;\n EMPTYARC ( right , final ) ;\n NOERRN ( ) ;\n branch -> left = parsebranch ( v , stopper , type , left , right , 0 ) ;\n NOERRN ( ) ;\n branch -> flags |= UP ( branch -> flags | branch -> left -> flags ) ;\n if ( ( branch -> flags & ~ branches -> flags ) != 0 ) for ( t = branches ;\n t != branch ;\n t = t -> right ) t -> flags |= branch -> flags ;\n }\n while ( EAT ( '|' ) ) ;\n assert ( SEE ( stopper ) || SEE ( EOS ) ) ;\n if ( ! SEE ( stopper ) ) {\n assert ( stopper == ')' && SEE ( EOS ) ) ;\n ERR ( REG_EPAREN ) ;\n }\n if ( branch == branches ) {\n assert ( branch -> right == NULL ) ;\n t = branch -> left ;\n branch -> left = NULL ;\n freesubre ( v , branches ) ;\n branches = t ;\n }\n else if ( ! MESSY ( branches -> flags ) ) {\n freesubre ( v , branches -> left ) ;\n branches -> left = NULL ;\n freesubre ( v , branches -> right ) ;\n branches -> right = NULL ;\n branches -> op = '=' ;\n }\n return branches ;\n }"}
{"idx": 3349, "target": 0, "func": "err_status_t srtp_create ( srtp_t * session , const srtp_policy_t * policy ) {\n err_status_t stat ;\n srtp_ctx_t * ctx ;\n if ( session == NULL ) return err_status_bad_param ;\n ctx = ( srtp_ctx_t * ) crypto_alloc ( sizeof ( srtp_ctx_t ) ) ;\n if ( ctx == NULL ) return err_status_alloc_fail ;\n * session = ctx ;\n ctx -> stream_template = NULL ;\n ctx -> stream_list = NULL ;\n ctx -> user_data = NULL ;\n while ( policy != NULL ) {\n stat = srtp_add_stream ( ctx , policy ) ;\n if ( stat ) {\n srtp_dealloc ( * session ) ;\n return stat ;\n }\n policy = policy -> next ;\n }\n return err_status_ok ;\n }"}
{"idx": 3350, "target": 0, "func": "int vp9_fast_dia_search ( const MACROBLOCK * x , MV * ref_mv , int search_param , int sad_per_bit , int do_init_search , int * sad_list , const vp9_variance_fn_ptr_t * vfp , int use_mvcost , const MV * center_mv , MV * best_mv ) {\n return vp9_bigdia_search ( x , ref_mv , MAX ( MAX_MVSEARCH_STEPS - 2 , search_param ) , sad_per_bit , do_init_search , sad_list , vfp , use_mvcost , center_mv , best_mv ) ;\n }"}
{"idx": 3351, "target": 0, "func": "void append_metadata ( DYNAMIC_STRING * ds , MYSQL_FIELD * field , uint num_fields ) {\n MYSQL_FIELD * field_end ;\n dynstr_append ( ds , \"Catalog\\tDatabase\\tTable\\tTable_alias\\tColumn\\t\" \"Column_alias\\tType\\tLength\\tMax length\\tIs_null\\t\" \"Flags\\tDecimals\\tCharsetnr\\n\" ) ;\n for ( field_end = field + num_fields ;\n field < field_end ;\n field ++ ) {\n dynstr_append_mem ( ds , field -> catalog , field -> catalog_length ) ;\n dynstr_append_mem ( ds , \"\\t\" , 1 ) ;\n dynstr_append_mem ( ds , field -> db , field -> db_length ) ;\n dynstr_append_mem ( ds , \"\\t\" , 1 ) ;\n dynstr_append_mem ( ds , field -> org_table , field -> org_table_length ) ;\n dynstr_append_mem ( ds , \"\\t\" , 1 ) ;\n dynstr_append_mem ( ds , field -> table , field -> table_length ) ;\n dynstr_append_mem ( ds , \"\\t\" , 1 ) ;\n dynstr_append_mem ( ds , field -> org_name , field -> org_name_length ) ;\n dynstr_append_mem ( ds , \"\\t\" , 1 ) ;\n dynstr_append_mem ( ds , field -> name , field -> name_length ) ;\n dynstr_append_mem ( ds , \"\\t\" , 1 ) ;\n replace_dynstr_append_uint ( ds , field -> type ) ;\n dynstr_append_mem ( ds , \"\\t\" , 1 ) ;\n replace_dynstr_append_uint ( ds , field -> length ) ;\n dynstr_append_mem ( ds , \"\\t\" , 1 ) ;\n replace_dynstr_append_uint ( ds , field -> max_length ) ;\n dynstr_append_mem ( ds , \"\\t\" , 1 ) ;\n dynstr_append_mem ( ds , ( char * ) ( IS_NOT_NULL ( field -> flags ) ? \"N\" : \"Y\" ) , 1 ) ;\n dynstr_append_mem ( ds , \"\\t\" , 1 ) ;\n replace_dynstr_append_uint ( ds , field -> flags ) ;\n dynstr_append_mem ( ds , \"\\t\" , 1 ) ;\n replace_dynstr_append_uint ( ds , field -> decimals ) ;\n dynstr_append_mem ( ds , \"\\t\" , 1 ) ;\n replace_dynstr_append_uint ( ds , field -> charsetnr ) ;\n dynstr_append_mem ( ds , \"\\n\" , 1 ) ;\n }\n }"}
{"idx": 3352, "target": 0, "func": "static void release_request ( struct transfer_request * request ) {\n struct transfer_request * entry = request_queue_head ;\n if ( request == request_queue_head ) {\n request_queue_head = request -> next ;\n }\n else {\n while ( entry -> next != NULL && entry -> next != request ) entry = entry -> next ;\n if ( entry -> next == request ) entry -> next = entry -> next -> next ;\n }\n free ( request -> url ) ;\n free ( request ) ;\n }"}
{"idx": 3353, "target": 0, "func": "int main ( int argc , char * * argv ) {\n FILE * infile = NULL ;\n vpx_codec_ctx_t codec = {\n 0 }\n ;\n vpx_codec_enc_cfg_t cfg = {\n 0 }\n ;\n int frame_count = 0 ;\n vpx_image_t raw ;\n vpx_codec_err_t res ;\n VpxVideoInfo info = {\n 0 }\n ;\n VpxVideoWriter * writer = NULL ;\n const VpxInterface * encoder = NULL ;\n int update_frame_num = 0 ;\n const int fps = 30 ;\n const int bitrate = 200 ;\n exec_name = argv [ 0 ] ;\n if ( argc != 6 ) die ( \"Invalid number of arguments\" ) ;\n encoder = get_vpx_encoder_by_name ( \"vp8\" ) ;\n if ( ! encoder ) die ( \"Unsupported codec.\" ) ;\n update_frame_num = atoi ( argv [ 5 ] ) ;\n if ( ! update_frame_num ) die ( \"Couldn't parse frame number '%s'\\n\" , argv [ 5 ] ) ;\n info . codec_fourcc = encoder -> fourcc ;\n info . frame_width = strtol ( argv [ 1 ] , NULL , 0 ) ;\n info . frame_height = strtol ( argv [ 2 ] , NULL , 0 ) ;\n info . time_base . numerator = 1 ;\n info . time_base . denominator = fps ;\n if ( info . frame_width <= 0 || info . frame_height <= 0 || ( info . frame_width % 2 ) != 0 || ( info . frame_height % 2 ) != 0 ) {\n die ( \"Invalid frame size: %dx%d\" , info . frame_width , info . frame_height ) ;\n }\n if ( ! vpx_img_alloc ( & raw , VPX_IMG_FMT_I420 , info . frame_width , info . frame_height , 1 ) ) {\n die ( \"Failed to allocate image.\" ) ;\n }\n printf ( \"Using %s\\n\" , vpx_codec_iface_name ( encoder -> codec_interface ( ) ) ) ;\n res = vpx_codec_enc_config_default ( encoder -> codec_interface ( ) , & cfg , 0 ) ;\n if ( res ) die_codec ( & codec , \"Failed to get default codec config.\" ) ;\n cfg . g_w = info . frame_width ;\n cfg . g_h = info . frame_height ;\n cfg . g_timebase . num = info . time_base . numerator ;\n cfg . g_timebase . den = info . time_base . denominator ;\n cfg . rc_target_bitrate = bitrate ;\n writer = vpx_video_writer_open ( argv [ 4 ] , kContainerIVF , & info ) ;\n if ( ! writer ) die ( \"Failed to open %s for writing.\" , argv [ 4 ] ) ;\n if ( ! ( infile = fopen ( argv [ 3 ] , \"rb\" ) ) ) die ( \"Failed to open %s for reading.\" , argv [ 3 ] ) ;\n if ( vpx_codec_enc_init ( & codec , encoder -> codec_interface ( ) , & cfg , 0 ) ) die_codec ( & codec , \"Failed to initialize encoder\" ) ;\n while ( vpx_img_read ( & raw , infile ) ) {\n if ( frame_count + 1 == update_frame_num ) {\n vpx_ref_frame_t ref ;\n ref . frame_type = VP8_LAST_FRAME ;\n ref . img = raw ;\n if ( vpx_codec_control ( & codec , VP8_SET_REFERENCE , & ref ) ) die_codec ( & codec , \"Failed to set reference frame\" ) ;\n }\n encode_frame ( & codec , & raw , frame_count ++ , writer ) ;\n }\n while ( encode_frame ( & codec , NULL , - 1 , writer ) ) {\n }\n ;\n printf ( \"\\n\" ) ;\n fclose ( infile ) ;\n printf ( \"Processed %d frames.\\n\" , frame_count ) ;\n vpx_img_free ( & raw ) ;\n if ( vpx_codec_destroy ( & codec ) ) die_codec ( & codec , \"Failed to destroy codec.\" ) ;\n vpx_video_writer_close ( writer ) ;\n return EXIT_SUCCESS ;\n }"}
{"idx": 3354, "target": 0, "func": "int fz_colorspace_is_icc ( fz_context * ctx , const fz_colorspace * cs ) {\n return cs && ( cs -> flags & FZ_COLORSPACE_IS_ICC ) ;\n }"}
{"idx": 3355, "target": 0, "func": "static void decode_pitch_lag_high ( int * lag_int , int * lag_frac , int pitch_index , uint8_t * base_lag_int , int subframe ) {\n if ( subframe == 0 || subframe == 2 ) {\n if ( pitch_index < 376 ) {\n * lag_int = ( pitch_index + 137 ) >> 2 ;\n * lag_frac = pitch_index - ( * lag_int << 2 ) + 136 ;\n }\n else if ( pitch_index < 440 ) {\n * lag_int = ( pitch_index + 257 - 376 ) >> 1 ;\n * lag_frac = ( pitch_index - ( * lag_int << 1 ) + 256 - 376 ) << 1 ;\n }\n else {\n * lag_int = pitch_index - 280 ;\n * lag_frac = 0 ;\n }\n * base_lag_int = av_clip ( * lag_int - 8 - ( * lag_frac < 0 ) , AMRWB_P_DELAY_MIN , AMRWB_P_DELAY_MAX - 15 ) ;\n }\n else {\n * lag_int = ( pitch_index + 1 ) >> 2 ;\n * lag_frac = pitch_index - ( * lag_int << 2 ) ;\n * lag_int += * base_lag_int ;\n }\n }"}
{"idx": 3356, "target": 0, "func": "static int create_cgroup ( struct cgroup_mount_point * mp , const char * path ) {\n return create_or_remove_cgroup ( false , mp , path , false ) ;\n }"}
{"idx": 3357, "target": 0, "func": "static void pxa2xx_fir_reset ( PXA2xxFIrState * s ) {\n s -> control [ 0 ] = 0x00 ;\n s -> control [ 1 ] = 0x00 ;\n s -> control [ 2 ] = 0x00 ;\n s -> status [ 0 ] = 0x00 ;\n s -> status [ 1 ] = 0x00 ;\n s -> enable = 0 ;\n }"}
{"idx": 3358, "target": 0, "func": "static int dissect_NOTIFY_OPTION_DATA ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ;\n guint32 count , i ;\n guint16 type ;\n if ( di -> conformant_run ) return offset ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_notify_option_data_count , & count ) ;\n type = GPOINTER_TO_INT ( dcv -> private_data ) ;\n for ( i = 0 ;\n i < count ;\n i ++ ) offset = dissect_notify_field ( tvb , offset , pinfo , tree , di , drep , type , NULL ) ;\n return offset ;\n }"}
{"idx": 3359, "target": 0, "func": "header_field_info * proto_registrar_get_nth ( guint hfindex ) {\n register header_field_info * hfinfo ;\n PROTO_REGISTRAR_GET_NTH ( hfindex , hfinfo ) ;\n return hfinfo ;\n }"}
{"idx": 3360, "target": 0, "func": "mbfl_buffer_converter * mbfl_buffer_converter_new ( enum mbfl_no_encoding from , enum mbfl_no_encoding to , int buf_initsz ) {\n const mbfl_encoding * _from = mbfl_no2encoding ( from ) ;\n const mbfl_encoding * _to = mbfl_no2encoding ( to ) ;\n return mbfl_buffer_converter_new2 ( _from ? _from : & mbfl_encoding_pass , _to ? _to : & mbfl_encoding_pass , buf_initsz ) ;\n }"}
{"idx": 3361, "target": 0, "func": "gs_malloc_memory_t * gs_malloc_memory_init ( void ) {\n gs_malloc_memory_t * mem = ( gs_malloc_memory_t * ) Memento_label ( malloc ( sizeof ( gs_malloc_memory_t ) ) , \"gs_malloc_memory_t\" ) ;\n if ( mem == NULL ) return NULL ;\n mem -> stable_memory = 0 ;\n mem -> procs = gs_malloc_memory_procs ;\n mem -> allocated = 0 ;\n mem -> limit = max_long ;\n mem -> used = 0 ;\n mem -> max_used = 0 ;\n mem -> gs_lib_ctx = 0 ;\n mem -> non_gc_memory = ( gs_memory_t * ) mem ;\n mem -> thread_safe_memory = ( gs_memory_t * ) mem ;\n mem -> monitor = NULL ;\n mem -> monitor = gx_monitor_alloc ( ( gs_memory_t * ) mem ) ;\n return mem ;\n }"}
{"idx": 3362, "target": 0, "func": "void evhttp_send_error ( struct evhttp_request * req , int error , const char * reason ) {\n # define ERR_FORMAT \"<HTML><HEAD>\\n\" \"<TITLE>%d %s</TITLE>\\n\" \"</HEAD><BODY>\\n\" \"<H1>Method Not Implemented</H1>\\n\" \"Invalid method in request<P>\\n\" \"</BODY></HTML>\\n\" struct evbuffer * buf = evbuffer_new ( ) ;\n evhttp_add_header ( req -> output_headers , \"Connection\" , \"close\" ) ;\n evhttp_response_code ( req , error , reason ) ;\n evbuffer_add_printf ( buf , ERR_FORMAT , error , reason ) ;\n evhttp_send_page ( req , buf ) ;\n evbuffer_free ( buf ) ;\n # undef ERR_FORMAT }"}
{"idx": 3363, "target": 0, "func": "static int lms_predict ( WmallDecodeCtx * s , int ich , int ilms ) {\n int pred = 0 , icoef ;\n int recent = s -> cdlms [ ich ] [ ilms ] . recent ;\n for ( icoef = 0 ;\n icoef < s -> cdlms [ ich ] [ ilms ] . order ;\n icoef ++ ) pred += s -> cdlms [ ich ] [ ilms ] . coefs [ icoef ] * s -> cdlms [ ich ] [ ilms ] . lms_prevvalues [ icoef + recent ] ;\n return pred ;\n }"}
{"idx": 3364, "target": 0, "func": "static int xps_parse_line_cap ( char * attr ) {\n if ( attr ) {\n if ( ! strcmp ( attr , \"Flat\" ) ) return 0 ;\n if ( ! strcmp ( attr , \"Round\" ) ) return 1 ;\n if ( ! strcmp ( attr , \"Square\" ) ) return 2 ;\n if ( ! strcmp ( attr , \"Triangle\" ) ) return 3 ;\n }\n return 0 ;\n }"}
{"idx": 3365, "target": 0, "func": "void proto_enable_all ( void ) {\n protocol_t * protocol ;\n GList * list_item = protocols ;\n if ( protocols == NULL ) return ;\n while ( list_item ) {\n protocol = ( protocol_t * ) list_item -> data ;\n if ( protocol -> can_toggle && protocol -> enabled_by_default ) protocol -> is_enabled = TRUE ;\n list_item = g_list_next ( list_item ) ;\n }\n }"}
{"idx": 3366, "target": 0, "func": "static void flat_print_str ( WriterContext * wctx , const char * key , const char * value ) {\n FlatContext * flat = wctx -> priv ;\n AVBPrint buf ;\n printf ( \"%s\" , wctx -> section_pbuf [ wctx -> level ] . str ) ;\n av_bprint_init ( & buf , 1 , AV_BPRINT_SIZE_UNLIMITED ) ;\n printf ( \"%s=\" , flat_escape_key_str ( & buf , key , flat -> sep ) ) ;\n av_bprint_clear ( & buf ) ;\n printf ( \"\\\"%s\\\"\\n\" , flat_escape_value_str ( & buf , value ) ) ;\n av_bprint_finalize ( & buf , NULL ) ;\n }"}
{"idx": 3367, "target": 0, "func": "static void cluster_all_databases ( bool verbose , const char * maintenance_db , const char * host , const char * port , const char * username , enum trivalue prompt_password , const char * progname , bool echo , bool quiet ) {\n PGconn * conn ;\n PGresult * result ;\n PQExpBufferData connstr ;\n int i ;\n conn = connectMaintenanceDatabase ( maintenance_db , host , port , username , prompt_password , progname ) ;\n result = executeQuery ( conn , \"SELECT datname FROM pg_database WHERE datallowconn ORDER BY 1;\n\" , progname , echo ) ;\n PQfinish ( conn ) ;\n initPQExpBuffer ( & connstr ) ;\n for ( i = 0 ;\n i < PQntuples ( result ) ;\n i ++ ) {\n char * dbname = PQgetvalue ( result , i , 0 ) ;\n if ( ! quiet ) {\n printf ( _ ( \"%s: clustering database \\\"%s\\\"\\n\" ) , progname , dbname ) ;\n fflush ( stdout ) ;\n }\n resetPQExpBuffer ( & connstr ) ;\n appendPQExpBuffer ( & connstr , \"dbname=\" ) ;\n appendConnStrVal ( & connstr , dbname ) ;\n cluster_one_database ( connstr . data , verbose , NULL , host , port , username , prompt_password , progname , echo ) ;\n }\n termPQExpBuffer ( & connstr ) ;\n PQclear ( result ) ;\n }"}
{"idx": 3368, "target": 0, "func": "err_status_t crypto_policy_set_from_profile_for_rtp ( crypto_policy_t * policy , srtp_profile_t profile ) {\n switch ( profile ) {\n case srtp_profile_aes128_cm_sha1_80 : crypto_policy_set_aes_cm_128_hmac_sha1_80 ( policy ) ;\n break ;\n case srtp_profile_aes128_cm_sha1_32 : crypto_policy_set_aes_cm_128_hmac_sha1_32 ( policy ) ;\n break ;\n case srtp_profile_null_sha1_80 : crypto_policy_set_null_cipher_hmac_sha1_80 ( policy ) ;\n break ;\n case srtp_profile_aes256_cm_sha1_80 : crypto_policy_set_aes_cm_256_hmac_sha1_80 ( policy ) ;\n break ;\n case srtp_profile_aes256_cm_sha1_32 : crypto_policy_set_aes_cm_256_hmac_sha1_32 ( policy ) ;\n break ;\n case srtp_profile_null_sha1_32 : default : return err_status_bad_param ;\n }\n return err_status_ok ;\n }"}
{"idx": 3369, "target": 0, "func": "static int replace_db_table ( TABLE * table , const char * db , const LEX_USER & combo , ulong rights , bool revoke_grant ) {\n uint i ;\n ulong priv , store_rights ;\n bool old_row_exists = 0 ;\n int error ;\n char what = ( revoke_grant ) ? 'N' : 'Y' ;\n uchar user_key [ MAX_KEY_LENGTH ] ;\n DBUG_ENTER ( \"replace_db_table\" ) ;\n if ( ! initialized ) {\n my_error ( ER_OPTION_PREVENTS_STATEMENT , MYF ( 0 ) , \"--skip-grant-tables\" ) ;\n DBUG_RETURN ( - 1 ) ;\n }\n if ( ! find_acl_user ( combo . host . str , combo . user . str , FALSE ) ) {\n my_message ( ER_PASSWORD_NO_MATCH , ER ( ER_PASSWORD_NO_MATCH ) , MYF ( 0 ) ) ;\n DBUG_RETURN ( - 1 ) ;\n }\n table -> use_all_columns ( ) ;\n table -> field [ 0 ] -> store ( combo . host . str , combo . host . length , system_charset_info ) ;\n table -> field [ 1 ] -> store ( db , ( uint ) strlen ( db ) , system_charset_info ) ;\n table -> field [ 2 ] -> store ( combo . user . str , combo . user . length , system_charset_info ) ;\n key_copy ( user_key , table -> record [ 0 ] , table -> key_info , table -> key_info -> key_length ) ;\n if ( table -> file -> index_read_idx_map ( table -> record [ 0 ] , 0 , user_key , HA_WHOLE_KEY , HA_READ_KEY_EXACT ) ) {\n if ( what == 'N' ) {\n my_error ( ER_NONEXISTING_GRANT , MYF ( 0 ) , combo . user . str , combo . host . str ) ;\n goto abort ;\n }\n old_row_exists = 0 ;\n restore_record ( table , s -> default_values ) ;\n table -> field [ 0 ] -> store ( combo . host . str , combo . host . length , system_charset_info ) ;\n table -> field [ 1 ] -> store ( db , ( uint ) strlen ( db ) , system_charset_info ) ;\n table -> field [ 2 ] -> store ( combo . user . str , combo . user . length , system_charset_info ) ;\n }\n else {\n old_row_exists = 1 ;\n store_record ( table , record [ 1 ] ) ;\n }\n store_rights = get_rights_for_db ( rights ) ;\n for ( i = 3 , priv = 1 ;\n i < table -> s -> fields ;\n i ++ , priv <<= 1 ) {\n if ( priv & store_rights ) table -> field [ i ] -> store ( & what , 1 , & my_charset_latin1 ) ;\n }\n rights = get_access ( table , 3 ) ;\n rights = fix_rights_for_db ( rights ) ;\n if ( old_row_exists ) {\n if ( rights ) {\n if ( ( error = table -> file -> ha_update_row ( table -> record [ 1 ] , table -> record [ 0 ] ) ) && error != HA_ERR_RECORD_IS_THE_SAME ) goto table_error ;\n }\n else {\n if ( ( error = table -> file -> ha_delete_row ( table -> record [ 1 ] ) ) ) goto table_error ;\n }\n }\n else if ( rights && ( error = table -> file -> ha_write_row ( table -> record [ 0 ] ) ) ) {\n if ( table -> file -> is_fatal_error ( error , HA_CHECK_DUP_KEY ) ) goto table_error ;\n }\n acl_cache -> clear ( 1 ) ;\n if ( old_row_exists ) acl_update_db ( combo . user . str , combo . host . str , db , rights ) ;\n else if ( rights ) acl_insert_db ( combo . user . str , combo . host . str , db , rights ) ;\n DBUG_RETURN ( 0 ) ;\n table_error : table -> file -> print_error ( error , MYF ( 0 ) ) ;\n abort : DBUG_RETURN ( - 1 ) ;\n }"}
{"idx": 3370, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n NuvContext * c = avctx -> priv_data ;\n AVFrame * picture = data ;\n int orig_size = buf_size ;\n int keyframe ;\n int result , init_frame = ! avctx -> frame_number ;\n enum {\n NUV_UNCOMPRESSED = '0' , NUV_RTJPEG = '1' , NUV_RTJPEG_IN_LZO = '2' , NUV_LZO = '3' , NUV_BLACK = 'N' , NUV_COPY_LAST = 'L' }\n comptype ;\n if ( buf_size < 12 ) {\n av_log ( avctx , AV_LOG_ERROR , \"coded frame too small\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( buf [ 0 ] == 'D' && buf [ 1 ] == 'R' ) {\n int ret ;\n buf = & buf [ 12 ] ;\n buf_size -= 12 ;\n ret = get_quant ( avctx , c , buf , buf_size ) ;\n if ( ret < 0 ) return ret ;\n ff_rtjpeg_decode_init ( & c -> rtj , & c -> dsp , c -> width , c -> height , c -> lq , c -> cq ) ;\n return orig_size ;\n }\n if ( buf [ 0 ] != 'V' || buf_size < 12 ) {\n av_log ( avctx , AV_LOG_ERROR , \"not a nuv video frame\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n comptype = buf [ 1 ] ;\n switch ( comptype ) {\n case NUV_RTJPEG_IN_LZO : case NUV_RTJPEG : keyframe = ! buf [ 2 ] ;\n break ;\n case NUV_COPY_LAST : keyframe = 0 ;\n break ;\n default : keyframe = 1 ;\n break ;\n }\n buf = & buf [ 12 ] ;\n buf_size -= 12 ;\n if ( comptype == NUV_RTJPEG_IN_LZO || comptype == NUV_LZO ) {\n int outlen = c -> decomp_size , inlen = buf_size ;\n if ( av_lzo1x_decode ( c -> decomp_buf , & outlen , buf , & inlen ) ) av_log ( avctx , AV_LOG_ERROR , \"error during lzo decompression\\n\" ) ;\n buf = c -> decomp_buf ;\n buf_size = c -> decomp_size ;\n }\n if ( c -> codec_frameheader ) {\n int w , h , q ;\n if ( buf_size < RTJPEG_HEADER_SIZE || buf [ 4 ] != RTJPEG_HEADER_SIZE || buf [ 5 ] != RTJPEG_FILE_VERSION ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid nuv video frame\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n w = AV_RL16 ( & buf [ 6 ] ) ;\n h = AV_RL16 ( & buf [ 8 ] ) ;\n q = buf [ 10 ] ;\n if ( ( result = codec_reinit ( avctx , w , h , q ) ) < 0 ) return result ;\n buf = & buf [ RTJPEG_HEADER_SIZE ] ;\n buf_size -= RTJPEG_HEADER_SIZE ;\n }\n if ( keyframe ) {\n av_frame_unref ( & c -> pic ) ;\n init_frame = 1 ;\n }\n result = ff_reget_buffer ( avctx , & c -> pic ) ;\n if ( result < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return result ;\n }\n if ( init_frame ) {\n memset ( c -> pic . data [ 0 ] , 0 , avctx -> height * c -> pic . linesize [ 0 ] ) ;\n memset ( c -> pic . data [ 1 ] , 0x80 , avctx -> height * c -> pic . linesize [ 1 ] / 2 ) ;\n memset ( c -> pic . data [ 2 ] , 0x80 , avctx -> height * c -> pic . linesize [ 2 ] / 2 ) ;\n }\n c -> pic . pict_type = keyframe ? AV_PICTURE_TYPE_I : AV_PICTURE_TYPE_P ;\n c -> pic . key_frame = keyframe ;\n switch ( comptype ) {\n case NUV_LZO : case NUV_UNCOMPRESSED : {\n int height = c -> height ;\n if ( buf_size < c -> width * height * 3 / 2 ) {\n av_log ( avctx , AV_LOG_ERROR , \"uncompressed frame too short\\n\" ) ;\n height = buf_size / c -> width / 3 * 2 ;\n }\n copy_frame ( & c -> pic , buf , c -> width , height ) ;\n break ;\n }\n case NUV_RTJPEG_IN_LZO : case NUV_RTJPEG : ff_rtjpeg_decode_frame_yuv420 ( & c -> rtj , & c -> pic , buf , buf_size ) ;\n break ;\n case NUV_BLACK : memset ( c -> pic . data [ 0 ] , 0 , c -> width * c -> height ) ;\n memset ( c -> pic . data [ 1 ] , 128 , c -> width * c -> height / 4 ) ;\n memset ( c -> pic . data [ 2 ] , 128 , c -> width * c -> height / 4 ) ;\n break ;\n case NUV_COPY_LAST : break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"unknown compression\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ( result = av_frame_ref ( picture , & c -> pic ) ) < 0 ) return result ;\n * got_frame = 1 ;\n return orig_size ;\n }"}
{"idx": 3371, "target": 0, "func": "unsigned long # define BN_LONG long # define BN_BITS 128 # define BN_BYTES 8 # define BN_BITS2 64 # define BN_BITS4 32 # define BN_MASK ( 0xffffffffffffffffffffffffffffffffLL ) # define BN_MASK2 ( 0xffffffffffffffffL ) # define BN_MASK2l ( 0xffffffffL ) # define BN_MASK2h ( 0xffffffff00000000L ) # define BN_MASK2h1 ( 0xffffffff80000000L ) # define BN_TBIT ( 0x8000000000000000L ) # define BN_DEC_CONV ( 10000000000000000000UL ) # define BN_DEC_FMT1 \"%lu\" # define BN_DEC_FMT2 \"%019lu\" # define BN_DEC_NUM 19 # define BN_HEX_FMT1 \"%lX\" # define BN_HEX_FMT2 \"%016lX\" # endif # ifdef SIXTY_FOUR_BIT # undef BN_LLONG # undef BN_ULLONG # define BN_ULONG unsigned long long # define BN_LONG long long # define BN_BITS 128 # define BN_BYTES 8 # define BN_BITS2 64 # define BN_BITS4 32 # define BN_MASK2 ( 0xffffffffffffffffLL ) # define BN_MASK2l ( 0xffffffffL ) # define BN_MASK2h ( 0xffffffff00000000LL ) # define BN_MASK2h1 ( 0xffffffff80000000LL ) # define BN_TBIT ( 0x8000000000000000LL ) # define BN_DEC_CONV ( 10000000000000000000ULL ) # define BN_DEC_FMT1 \"%llu\" # define BN_DEC_FMT2 \"%019llu\" # define BN_DEC_NUM 19 # define BN_HEX_FMT1 \"%llX\" # define BN_HEX_FMT2 \"%016llX\" # endif # ifdef THIRTY_TWO_BIT # ifdef BN_LLONG # if defined ( _WIN32 ) && ! defined ( __GNUC__ ) # define BN_ULLONG unsigned __int64 # define BN_MASK ( 0xffffffffffffffffI64 ) # else # define BN_ULLONG unsigned long long # define BN_MASK ( 0xffffffffffffffffLL ) # endif # endif # define BN_ULONG unsigned int # define BN_LONG int # define BN_BITS 64 # define BN_BYTES 4 # define BN_BITS2 32 # define BN_BITS4 16 # define BN_MASK2 ( 0xffffffffL ) # define BN_MASK2l ( 0xffff ) # define BN_MASK2h1 ( 0xffff8000L ) # define BN_MASK2h ( 0xffff0000L ) # define BN_TBIT ( 0x80000000L ) # define BN_DEC_CONV ( 1000000000L ) # define BN_DEC_FMT1 \"%u\" # define BN_DEC_FMT2 \"%09u\" # define BN_DEC_NUM 9 # define BN_HEX_FMT1 \"%X\" # define BN_HEX_FMT2 \"%08X\" # endif # define BN_DEFAULT_BITS 1280 # define BN_FLG_MALLOCED 0x01 # define BN_FLG_STATIC_DATA 0x02 # define BN_FLG_CONSTTIME 0x04 # ifndef OPENSSL_NO_DEPRECATED # define BN_FLG_EXP_CONSTTIME BN_FLG_CONSTTIME # endif # ifndef OPENSSL_NO_DEPRECATED # define BN_FLG_FREE 0x8000 # endif # define BN_set_flags ( b , n ) ( ( b ) -> flags |= ( n ) ) # define BN_get_flags ( b , n ) ( ( b ) -> flags & ( n ) ) # define BN_with_flags ( dest , b , n ) ( ( dest ) -> d = ( b ) -> d , \\ ( dest ) -> top = ( b ) -> top , \\ ( dest ) -> dmax = ( b ) -> dmax , \\ ( dest ) -> neg = ( b ) -> neg , \\ ( dest ) -> flags = ( ( ( dest ) -> flags & BN_FLG_MALLOCED ) \\ | ( ( b ) -> flags & ~ BN_FLG_MALLOCED ) \\ | BN_FLG_STATIC_DATA \\ | ( n ) ) ) # if 0 typedef struct bignum_st BIGNUM ;\n typedef struct bignum_ctx BN_CTX ;\n typedef struct bn_blinding_st BN_BLINDING ;\n typedef struct bn_mont_ctx_st BN_MONT_CTX ;\n typedef struct bn_recp_ctx_st BN_RECP_CTX ;\n typedef struct bn_gencb_st BN_GENCB ;\n # endif struct bignum_st {\n BN_ULONG * d ;\n int top ;\n int dmax ;\n int neg ;\n int flags ;\n }\n ;\n struct bn_mont_ctx_st {\n int ri ;\n BIGNUM RR ;\n BIGNUM N ;\n BIGNUM Ni ;\n BN_ULONG n0 [ 2 ] ;\n int flags ;\n }\n ;\n struct bn_recp_ctx_st {\n BIGNUM N ;\n BIGNUM Nr ;\n int num_bits ;\n int shift ;\n int flags ;\n }\n ;\n struct bn_gencb_st {\n unsigned int ver ;\n void * arg ;\n union {\n void ( * cb_1 ) ( int , int , void * ) ;\n int ( * cb_2 ) ( int , int , BN_GENCB * ) ;\n }\n cb ;\n }\n ;\n int BN_GENCB_call ( BN_GENCB * cb , int a , int b ) ;\n # define BN_GENCB_set_old ( gencb , callback , cb_arg ) {\n \\ BN_GENCB * tmp_gencb = ( gencb ) ;\n \\ tmp_gencb -> ver = 1 ;\n \\ tmp_gencb -> arg = ( cb_arg ) ;\n \\ tmp_gencb -> cb . cb_1 = ( callback ) ;\n }\n # define BN_GENCB_set ( gencb , callback , cb_arg ) {\n \\ BN_GENCB * tmp_gencb = ( gencb ) ;\n \\ tmp_gencb -> ver = 2 ;\n \\ tmp_gencb -> arg = ( cb_arg ) ;\n \\ tmp_gencb -> cb . cb_2 = ( callback ) ;\n }\n # define BN_prime_checks 0 # define BN_prime_checks_for_size ( b ) ( ( b ) >= 1300 ? 2 : \\ ( b ) >= 850 ? 3 : \\ ( b ) >= 650 ? 4 : \\ ( b ) >= 550 ? 5 : \\ ( b ) >= 450 ? 6 : \\ ( b ) >= 400 ? 7 : \\ ( b ) >= 350 ? 8 : \\ ( b ) >= 300 ? 9 : \\ ( b ) >= 250 ? 12 : \\ ( b ) >= 200 ? 15 : \\ ( b ) >= 150 ? 18 : \\ 27 ) # define BN_num_bytes ( a ) ( ( BN_num_bits ( a ) + 7 ) / 8 ) # define BN_abs_is_word ( a , w ) ( ( ( ( a ) -> top == 1 ) && ( ( a ) -> d [ 0 ] == ( BN_ULONG ) ( w ) ) ) || \\ ( ( ( w ) == 0 ) && ( ( a ) -> top == 0 ) ) ) # define BN_is_zero ( a ) ( ( a ) -> top == 0 ) # define BN_is_one ( a ) ( BN_abs_is_word ( ( a ) , 1 ) && ! ( a ) -> neg ) # define BN_is_word ( a , w ) ( BN_abs_is_word ( ( a ) , ( w ) ) && ( ! ( w ) || ! ( a ) -> neg ) ) # define BN_is_odd ( a ) ( ( ( a ) -> top > 0 ) && ( ( a ) -> d [ 0 ] & 1 ) ) # define BN_one ( a ) ( BN_set_word ( ( a ) , 1 ) ) # define BN_zero_ex ( a ) \\ do {\n \\ BIGNUM * _tmp_bn = ( a ) ;\n \\ _tmp_bn -> top = 0 ;\n \\ _tmp_bn -> neg = 0 ;\n \\ }\n while ( 0 ) # ifdef OPENSSL_NO_DEPRECATED # define BN_zero ( a ) BN_zero_ex ( a ) # else # define BN_zero ( a ) ( BN_set_word ( ( a ) , 0 ) ) # endif const BIGNUM * BN_value_one ( void ) ;\n char * BN_options ( void ) ;\n BN_CTX * BN_CTX_new ( void ) ;\n # ifndef OPENSSL_NO_DEPRECATED void BN_CTX_init ( BN_CTX * c ) ;\n # endif void BN_CTX_free ( BN_CTX * c ) ;\n void BN_CTX_start ( BN_CTX * ctx ) ;\n BIGNUM * BN_CTX_get ( BN_CTX * ctx ) ;\n void BN_CTX_end ( BN_CTX * ctx ) ;\n int BN_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_pseudo_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_pseudo_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_num_bits ( const BIGNUM * a ) ;\n int BN_num_bits_word ( BN_ULONG l ) ;\n BIGNUM * BN_new ( void ) ;\n void BN_init ( BIGNUM * ) ;\n void BN_clear_free ( BIGNUM * a ) ;\n BIGNUM * BN_copy ( BIGNUM * a , const BIGNUM * b ) ;\n void BN_swap ( BIGNUM * a , BIGNUM * b ) ;\n BIGNUM * BN_bin2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2bin ( const BIGNUM * a , unsigned char * to ) ;\n BIGNUM * BN_mpi2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2mpi ( const BIGNUM * a , unsigned char * to ) ;\n int BN_sub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_usub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_uadd ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n int BN_sqr ( BIGNUM * r , const BIGNUM * a , BN_CTX * ctx ) ;\n void BN_set_negative ( BIGNUM * b , int n ) ;\n # define BN_is_negative ( a ) ( ( a ) -> neg != 0 ) int BN_div ( BIGNUM * dv , BIGNUM * rem , const BIGNUM * m , const BIGNUM * d , BN_CTX * ctx ) ;\n # define BN_mod ( rem , m , d , ctx ) BN_div ( NULL , ( rem ) , ( m ) , ( d ) , ( ctx ) ) int BN_nnmod ( BIGNUM * r , const BIGNUM * m , const BIGNUM * d , BN_CTX * ctx ) ;\n int BN_mod_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_add_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m ) ;\n int BN_mod_sub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_sub_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m ) ;\n int BN_mod_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_sqr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift1 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift1_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m ) ;\n int BN_mod_lshift ( BIGNUM * r , const BIGNUM * a , int n , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift_quick ( BIGNUM * r , const BIGNUM * a , int n , const BIGNUM * m ) ;\n BN_ULONG BN_mod_word ( const BIGNUM * a , BN_ULONG w )"}
{"idx": 3372, "target": 0, "func": "static void _slurm_rpc_job_pack_alloc_info ( slurm_msg_t * msg ) {\n int error_code = SLURM_SUCCESS ;\n slurm_msg_t response_msg ;\n struct job_record * job_ptr , * pack_job ;\n ListIterator iter ;\n void * working_cluster_rec = NULL ;\n List resp ;\n DEF_TIMERS ;\n job_alloc_info_msg_t * job_info_msg = ( job_alloc_info_msg_t * ) msg -> data ;\n resource_allocation_response_msg_t * job_info_resp_msg ;\n slurmctld_lock_t job_read_lock = {\n READ_LOCK , READ_LOCK , READ_LOCK , NO_LOCK , NO_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n START_TIMER ;\n debug2 ( \"Processing RPC: REQUEST_JOB_PACK_ALLOC_INFO from uid=%d\" , uid ) ;\n lock_slurmctld ( job_read_lock ) ;\n error_code = job_alloc_info ( uid , job_info_msg -> job_id , & job_ptr ) ;\n END_TIMER2 ( \"_slurm_rpc_job_pack_alloc_info\" ) ;\n if ( ( error_code == SLURM_SUCCESS ) && job_ptr && ( job_ptr -> pack_job_id && ! job_ptr -> pack_job_list ) ) error_code = ESLURM_NOT_PACK_JOB_LEADER ;\n if ( error_code || ( job_ptr == NULL ) || ( job_ptr -> job_resrcs == NULL ) ) {\n unlock_slurmctld ( job_read_lock ) ;\n debug2 ( \"%s: JobId=%u, uid=%u: %s\" , __func__ , job_info_msg -> job_id , uid , slurm_strerror ( error_code ) ) ;\n slurm_send_rc_msg ( msg , error_code ) ;\n return ;\n }\n debug ( \"%s: JobId=%u NodeList=%s %s\" , __func__ , job_info_msg -> job_id , job_ptr -> nodes , TIME_STR ) ;\n if ( ! job_ptr -> pack_job_list ) {\n resp = list_create ( _pack_alloc_list_del ) ;\n job_info_resp_msg = build_job_info_resp ( job_ptr ) ;\n set_remote_working_response ( job_info_resp_msg , job_ptr , job_info_msg -> req_cluster ) ;\n list_append ( resp , job_info_resp_msg ) ;\n }\n else {\n resp = list_create ( _pack_alloc_list_del ) ;\n iter = list_iterator_create ( job_ptr -> pack_job_list ) ;\n while ( ( pack_job = ( struct job_record * ) list_next ( iter ) ) ) {\n if ( job_ptr -> pack_job_id != pack_job -> pack_job_id ) {\n error ( \"%s: Bad pack_job_list for job %u\" , __func__ , job_ptr -> pack_job_id ) ;\n continue ;\n }\n if ( pack_job -> job_id != job_info_msg -> job_id ) ( void ) job_alloc_info_ptr ( uid , pack_job ) ;\n job_info_resp_msg = build_job_info_resp ( pack_job ) ;\n if ( working_cluster_rec ) {\n job_info_resp_msg -> working_cluster_rec = working_cluster_rec ;\n }\n else {\n set_remote_working_response ( job_info_resp_msg , pack_job , job_info_msg -> req_cluster ) ;\n working_cluster_rec = job_info_resp_msg -> working_cluster_rec ;\n }\n list_append ( resp , job_info_resp_msg ) ;\n }\n list_iterator_destroy ( iter ) ;\n }\n unlock_slurmctld ( job_read_lock ) ;\n slurm_msg_t_init ( & response_msg ) ;\n response_msg . msg_type = RESPONSE_JOB_PACK_ALLOCATION ;\n response_msg . data = resp ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n FREE_NULL_LIST ( resp ) ;\n }"}
{"idx": 3373, "target": 0, "func": "static void selinux_sk_free_security ( struct sock * sk ) {\n struct sk_security_struct * sksec = sk -> sk_security ;\n sk -> sk_security = NULL ;\n selinux_netlbl_sk_security_free ( sksec ) ;\n kfree ( sksec ) ;\n }"}
{"idx": 3374, "target": 0, "func": "static void config_other_modes ( config_tree * ptree ) {\n sockaddr_u addr_sock ;\n address_node * addr_node ;\n if ( ptree -> broadcastclient ) proto_config ( PROTO_BROADCLIENT , ptree -> broadcastclient , 0. , NULL ) ;\n addr_node = HEAD_PFIFO ( ptree -> manycastserver ) ;\n while ( addr_node != NULL ) {\n ZERO_SOCK ( & addr_sock ) ;\n AF ( & addr_sock ) = addr_node -> type ;\n if ( 1 == getnetnum ( addr_node -> address , & addr_sock , 1 , t_UNK ) ) {\n proto_config ( PROTO_MULTICAST_ADD , 0 , 0. , & addr_sock ) ;\n sys_manycastserver = 1 ;\n }\n addr_node = addr_node -> link ;\n }\n addr_node = HEAD_PFIFO ( ptree -> multicastclient ) ;\n if ( addr_node != NULL ) {\n do {\n ZERO_SOCK ( & addr_sock ) ;\n AF ( & addr_sock ) = addr_node -> type ;\n if ( 1 == getnetnum ( addr_node -> address , & addr_sock , 1 , t_UNK ) ) {\n proto_config ( PROTO_MULTICAST_ADD , 0 , 0. , & addr_sock ) ;\n }\n addr_node = addr_node -> link ;\n }\n while ( addr_node != NULL ) ;\n proto_config ( PROTO_MULTICAST_ADD , 1 , 0. , NULL ) ;\n }\n }"}
{"idx": 3375, "target": 0, "func": "static gcry_err_code_t dummy_decrypt ( int algorithm , gcry_mpi_t * result , gcry_mpi_t * data , gcry_mpi_t * skey , int flags ) {\n ( void ) algorithm ;\n ( void ) result ;\n ( void ) data ;\n ( void ) skey ;\n ( void ) flags ;\n fips_signal_error ( \"using dummy public key function\" ) ;\n return GPG_ERR_NOT_IMPLEMENTED ;\n }"}
{"idx": 3376, "target": 0, "func": "static void curses_destroy_conndata ( void ) {\n conntrack_hook_conn_del ( curr_conn , split_print_po ) ;\n conntrack_hook_conn_del ( curr_conn , join_print_po ) ;\n wdg_conndata = NULL ;\n wdg_c1 = NULL ;\n wdg_c2 = NULL ;\n wdg_join = NULL ;\n curr_conn -> flags &= ~ CONN_VIEWING ;\n curr_conn = NULL ;\n }"}
{"idx": 3377, "target": 0, "func": "static int txd_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n GetByteContext gb ;\n AVFrame * const p = data ;\n unsigned int version , w , h , d3d_format , depth , stride , flags ;\n unsigned int y , v ;\n uint8_t * ptr ;\n uint32_t * pal ;\n int ret ;\n bytestream2_init ( & gb , avpkt -> data , avpkt -> size ) ;\n version = bytestream2_get_le32 ( & gb ) ;\n bytestream2_skip ( & gb , 72 ) ;\n d3d_format = bytestream2_get_le32 ( & gb ) ;\n w = bytestream2_get_le16 ( & gb ) ;\n h = bytestream2_get_le16 ( & gb ) ;\n depth = bytestream2_get_byte ( & gb ) ;\n bytestream2_skip ( & gb , 2 ) ;\n flags = bytestream2_get_byte ( & gb ) ;\n if ( version < 8 || version > 9 ) {\n av_log ( avctx , AV_LOG_ERROR , \"texture data version %i is unsupported\\n\" , version ) ;\n return AVERROR_PATCHWELCOME ;\n }\n if ( depth == 8 ) {\n avctx -> pix_fmt = AV_PIX_FMT_PAL8 ;\n }\n else if ( depth == 16 || depth == 32 ) {\n avctx -> pix_fmt = AV_PIX_FMT_RGB32 ;\n }\n else {\n av_log ( avctx , AV_LOG_ERROR , \"depth of %i is unsupported\\n\" , depth ) ;\n return AVERROR_PATCHWELCOME ;\n }\n if ( ( ret = av_image_check_size ( w , h , 0 , avctx ) ) < 0 ) return ret ;\n if ( w != avctx -> width || h != avctx -> height ) avcodec_set_dimensions ( avctx , w , h ) ;\n if ( ( ret = ff_get_buffer ( avctx , p , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n p -> pict_type = AV_PICTURE_TYPE_I ;\n ptr = p -> data [ 0 ] ;\n stride = p -> linesize [ 0 ] ;\n if ( depth == 8 ) {\n pal = ( uint32_t * ) p -> data [ 1 ] ;\n for ( y = 0 ;\n y < 256 ;\n y ++ ) {\n v = bytestream2_get_be32 ( & gb ) ;\n pal [ y ] = ( v >> 8 ) + ( v << 24 ) ;\n }\n bytestream2_skip ( & gb , 4 ) ;\n for ( y = 0 ;\n y < h ;\n y ++ ) {\n bytestream2_get_buffer ( & gb , ptr , w ) ;\n ptr += stride ;\n }\n }\n else if ( depth == 16 ) {\n bytestream2_skip ( & gb , 4 ) ;\n switch ( d3d_format ) {\n case 0 : if ( ! ( flags & 1 ) ) goto unsupported ;\n case FF_S3TC_DXT1 : ff_decode_dxt1 ( & gb , ptr , w , h , stride ) ;\n break ;\n case FF_S3TC_DXT3 : ff_decode_dxt3 ( & gb , ptr , w , h , stride ) ;\n break ;\n default : goto unsupported ;\n }\n }\n else if ( depth == 32 ) {\n switch ( d3d_format ) {\n case 0x15 : case 0x16 : for ( y = 0 ;\n y < h ;\n y ++ ) {\n bytestream2_get_buffer ( & gb , ptr , w * 4 ) ;\n ptr += stride ;\n }\n break ;\n default : goto unsupported ;\n }\n }\n * got_frame = 1 ;\n return avpkt -> size ;\n unsupported : av_log ( avctx , AV_LOG_ERROR , \"unsupported d3d format (%08x)\\n\" , d3d_format ) ;\n return AVERROR_PATCHWELCOME ;\n }"}
{"idx": 3378, "target": 0, "func": "static void test_bug14210 ( ) {\n MYSQL_STMT * stmt ;\n int rc , i ;\n const char * stmt_text ;\n ulong type ;\n myheader ( \"test_bug14210\" ) ;\n mysql_query ( mysql , \"drop table if exists t1\" ) ;\n mysql_query ( mysql , \"create table t1 (a varchar(255)) engine=InnoDB\" ) ;\n rc = mysql_query ( mysql , \"insert into t1 (a) values (repeat('a', 256))\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"set @@session.max_heap_table_size=16384\" ) ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n rc = mysql_query ( mysql , \"insert into t1 (a) select a from t1\" ) ;\n myquery ( rc ) ;\n }\n stmt = mysql_stmt_init ( mysql ) ;\n type = ( ulong ) CURSOR_TYPE_READ_ONLY ;\n mysql_stmt_attr_set ( stmt , STMT_ATTR_CURSOR_TYPE , ( const void * ) & type ) ;\n stmt_text = \"select a from t1\" ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n while ( ( rc = mysql_stmt_fetch ( stmt ) ) == 0 ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n rc = mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"drop table t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"set @@session.max_heap_table_size=default\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 3379, "target": 0, "func": "static void write_footer ( FILE * sql_file ) {\n if ( opt_xml ) {\n fputs ( \"</mysqldump>\\n\" , sql_file ) ;\n check_io ( sql_file ) ;\n }\n else if ( ! opt_compact ) {\n if ( opt_tz_utc ) fprintf ( sql_file , \"/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;\n\\n\" ) ;\n fprintf ( sql_file , \"\\n/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;\n\\n\" ) ;\n if ( ! path ) {\n fprintf ( md_result_file , \"\\ /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;\n\\n\" ) ;\n if ( ! opt_no_create_info ) {\n fprintf ( md_result_file , \"\\ /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;\n\\n\" ) ;\n }\n }\n if ( opt_set_charset ) fprintf ( sql_file , \"/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;\n\\n\" \"/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;\n\\n\" \"/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;\n\\n\" ) ;\n fprintf ( sql_file , \"/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;\n\\n\" ) ;\n fputs ( \"\\n\" , sql_file ) ;\n if ( opt_dump_date ) {\n char time_str [ 20 ] ;\n get_date ( time_str , GETDATE_DATE_TIME , 0 ) ;\n print_comment ( sql_file , 0 , \"-- Dump completed on %s\\n\" , time_str ) ;\n }\n else print_comment ( sql_file , 0 , \"-- Dump completed\\n\" ) ;\n check_io ( sql_file ) ;\n }\n }"}
{"idx": 3380, "target": 0, "func": "static void y4m_convert_null ( y4m_input * _y4m , unsigned char * _dst , unsigned char * _aux ) {\n ( void ) _y4m ;\n ( void ) _dst ;\n ( void ) _aux ;\n }"}
{"idx": 3381, "target": 0, "func": "static char * constructConnStr ( const char * * keywords , const char * * values ) {\n PQExpBuffer buf = createPQExpBuffer ( ) ;\n char * connstr ;\n int i ;\n bool firstkeyword = true ;\n for ( i = 0 ;\n keywords [ i ] != NULL ;\n i ++ ) {\n if ( strcmp ( keywords [ i ] , \"dbname\" ) == 0 || strcmp ( keywords [ i ] , \"password\" ) == 0 || strcmp ( keywords [ i ] , \"fallback_application_name\" ) == 0 ) continue ;\n if ( ! firstkeyword ) appendPQExpBufferChar ( buf , ' ' ) ;\n firstkeyword = false ;\n appendPQExpBuffer ( buf , \"%s=\" , keywords [ i ] ) ;\n appendConnStrVal ( buf , values [ i ] ) ;\n }\n connstr = pg_strdup ( buf -> data ) ;\n destroyPQExpBuffer ( buf ) ;\n return connstr ;\n }"}
{"idx": 3382, "target": 0, "func": "static inline tcg_target_ulong cpu_tb_exec ( CPUState * cpu , uint8_t * tb_ptr ) {\n CPUArchState * env = cpu -> env_ptr ;\n tcg_target_ulong next_tb = tcg_qemu_tb_exec ( env , tb_ptr ) ;\n if ( ( next_tb & TB_EXIT_MASK ) > TB_EXIT_IDX1 ) {\n TranslationBlock * tb = ( TranslationBlock * ) ( next_tb & ~ TB_EXIT_MASK ) ;\n cpu_pc_from_tb ( env , tb ) ;\n }\n if ( ( next_tb & TB_EXIT_MASK ) == TB_EXIT_REQUESTED ) {\n cpu -> tcg_exit_req = 0 ;\n }\n return next_tb ;\n }"}
{"idx": 3383, "target": 1, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING )"}
{"idx": 3384, "target": 0, "func": "bool config_filter_match ( const struct config_filter * mask , const struct config_filter * filter ) {\n if ( ! config_filter_match_service ( mask , filter ) ) return FALSE ;\n return config_filter_match_rest ( mask , filter ) ;\n }"}
{"idx": 3385, "target": 0, "func": "static guint32 amf_get_u29 ( tvbuff_t * tvb , int offset , guint * lenp ) {\n guint len = 0 ;\n guint8 iByte ;\n guint32 iValue ;\n iByte = tvb_get_guint8 ( tvb , offset ) ;\n iValue = ( iByte & 0x7F ) ;\n offset ++ ;\n len ++ ;\n if ( ! ( iByte & 0x80 ) ) {\n * lenp = len ;\n return iValue ;\n }\n iByte = tvb_get_guint8 ( tvb , offset ) ;\n iValue = ( iValue << 7 ) | ( iByte & 0x7F ) ;\n offset ++ ;\n len ++ ;\n if ( ! ( iByte & 0x80 ) ) {\n * lenp = len ;\n return iValue ;\n }\n iByte = tvb_get_guint8 ( tvb , offset ) ;\n iValue = ( iValue << 7 ) | ( iByte & 0x7F ) ;\n offset ++ ;\n len ++ ;\n if ( ! ( iByte & 0x80 ) ) {\n * lenp = len ;\n return iValue ;\n }\n iByte = tvb_get_guint8 ( tvb , offset ) ;\n iValue = ( iValue << 8 ) | iByte ;\n len ++ ;\n * lenp = len ;\n return iValue ;\n }"}
{"idx": 3386, "target": 0, "func": "static void set_frame_distances ( MpegEncContext * s ) {\n assert ( s -> current_picture_ptr -> f . pts != AV_NOPTS_VALUE ) ;\n s -> time = s -> current_picture_ptr -> f . pts * s -> avctx -> time_base . num ;\n if ( s -> pict_type == AV_PICTURE_TYPE_B ) {\n s -> pb_time = s -> pp_time - ( s -> last_non_b_time - s -> time ) ;\n assert ( s -> pb_time > 0 && s -> pb_time < s -> pp_time ) ;\n }\n else {\n s -> pp_time = s -> time - s -> last_non_b_time ;\n s -> last_non_b_time = s -> time ;\n assert ( s -> picture_number == 0 || s -> pp_time > 0 ) ;\n }\n }"}
{"idx": 3387, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FullscreenControllerInteractiveTest , DISABLED_EscapingMouseLockAndFullscreen ) {\n ASSERT_TRUE ( test_server ( ) -> Start ( ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , test_server ( ) -> GetURL ( kFullscreenMouseLockHTML ) ) ;\n ASSERT_FALSE ( IsFullscreenBubbleDisplayed ( ) ) ;\n {\n FullscreenNotificationObserver fullscreen_observer ;\n ASSERT_TRUE ( ui_test_utils : : SendKeyPressAndWait ( browser ( ) , ui : : VKEY_B , false , true , false , false , chrome : : NOTIFICATION_MOUSE_LOCK_CHANGED , content : : NotificationService : : AllSources ( ) ) ) ;\n fullscreen_observer . Wait ( ) ;\n }\n ASSERT_TRUE ( IsFullscreenPermissionRequested ( ) ) ;\n ASSERT_TRUE ( IsMouseLockPermissionRequested ( ) ) ;\n {\n FullscreenNotificationObserver fullscreen_observer ;\n SendEscapeToFullscreenController ( ) ;\n fullscreen_observer . Wait ( ) ;\n }\n ASSERT_FALSE ( IsFullscreenPermissionRequested ( ) ) ;\n ASSERT_FALSE ( IsMouseLockPermissionRequested ( ) ) ;\n {\n FullscreenNotificationObserver fullscreen_observer ;\n ASSERT_TRUE ( ui_test_utils : : SendKeyPressAndWait ( browser ( ) , ui : : VKEY_B , false , true , false , false , chrome : : NOTIFICATION_MOUSE_LOCK_CHANGED , content : : NotificationService : : AllSources ( ) ) ) ;\n fullscreen_observer . Wait ( ) ;\n }\n ASSERT_TRUE ( IsFullscreenPermissionRequested ( ) ) ;\n ASSERT_TRUE ( IsMouseLockPermissionRequested ( ) ) ;\n AcceptCurrentFullscreenOrMouseLockRequest ( ) ;\n ASSERT_TRUE ( IsMouseLocked ( ) ) ;\n ASSERT_TRUE ( IsWindowFullscreenForTabOrPending ( ) ) ;\n ASSERT_FALSE ( IsFullscreenPermissionRequested ( ) ) ;\n ASSERT_FALSE ( IsMouseLockPermissionRequested ( ) ) ;\n {\n FullscreenNotificationObserver fullscreen_observer ;\n SendEscapeToFullscreenController ( ) ;\n fullscreen_observer . Wait ( ) ;\n }\n ASSERT_FALSE ( IsMouseLocked ( ) ) ;\n ASSERT_FALSE ( IsWindowFullscreenForTabOrPending ( ) ) ;\n ASSERT_FALSE ( IsFullscreenPermissionRequested ( ) ) ;\n ASSERT_FALSE ( IsMouseLockPermissionRequested ( ) ) ;\n }"}
{"idx": 3388, "target": 1, "func": "static int parse_CDbPropSet ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree , const char * fmt , ... ) {\n int i , num ;\n e_guid_t guid ;\n struct GuidPropertySet * pset ;\n proto_item * item ;\n proto_tree * tree ;\n const char * txt ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CDbPropSet , & item , txt ) ;\n offset = parse_guid ( tvb , offset , tree , & guid , \"guidPropertySet\" ) ;\n pset = GuidPropertySet_find_guid ( & guid ) ;\n if ( pset ) {\n proto_item_append_text ( item , \" \\\"%s\\\" (%s)\" , pset -> desc , pset -> def ) ;\n }\n else {\n const char * guid_str = guid_to_str ( wmem_packet_scope ( ) , & guid ) ;\n proto_item_append_text ( item , \" {\n%s}\n\" , guid_str ) ;\n }\n offset = parse_padding ( tvb , offset , 4 , pad_tree , \"guidPropertySet\" ) ;\n num = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_cdbpropset_cprops , tvb , offset , 4 , num ) ;\n offset += 4 ;\n proto_item_append_text ( item , \" Num: %d\" , num ) ;\n for ( i = 0 ;\n i < num ;\n i ++ ) {\n offset = parse_padding ( tvb , offset , 4 , pad_tree , \"aProp[%d]\" , i ) ;\n offset = parse_CDbProp ( tvb , offset , tree , pad_tree , pset , \"aProp[%d]\" , i ) ;\n }\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 3389, "target": 0, "func": "static int kex_agree_kex_hostkey ( LIBSSH2_SESSION * session , unsigned char * kex , unsigned long kex_len , unsigned char * hostkey , unsigned long hostkey_len ) {\n const LIBSSH2_KEX_METHOD * * kexp = libssh2_kex_methods ;\n unsigned char * s ;\n if ( session -> kex_prefs ) {\n s = ( unsigned char * ) session -> kex_prefs ;\n while ( s && * s ) {\n unsigned char * q , * p = ( unsigned char * ) strchr ( ( char * ) s , ',' ) ;\n size_t method_len = ( p ? ( size_t ) ( p - s ) : strlen ( ( char * ) s ) ) ;\n if ( ( q = kex_agree_instr ( kex , kex_len , s , method_len ) ) ) {\n const LIBSSH2_KEX_METHOD * method = ( const LIBSSH2_KEX_METHOD * ) kex_get_method_by_name ( ( char * ) s , method_len , ( const LIBSSH2_COMMON_METHOD * * ) kexp ) ;\n if ( ! method ) {\n return - 1 ;\n }\n if ( kex_agree_hostkey ( session , method -> flags , hostkey , hostkey_len ) == 0 ) {\n session -> kex = method ;\n if ( session -> burn_optimistic_kexinit && ( kex == q ) ) {\n session -> burn_optimistic_kexinit = 0 ;\n }\n return 0 ;\n }\n }\n s = p ? p + 1 : NULL ;\n }\n return - 1 ;\n }\n while ( * kexp && ( * kexp ) -> name ) {\n s = kex_agree_instr ( kex , kex_len , ( unsigned char * ) ( * kexp ) -> name , strlen ( ( * kexp ) -> name ) ) ;\n if ( s ) {\n if ( kex_agree_hostkey ( session , ( * kexp ) -> flags , hostkey , hostkey_len ) == 0 ) {\n session -> kex = * kexp ;\n if ( session -> burn_optimistic_kexinit && ( kex == s ) ) {\n session -> burn_optimistic_kexinit = 0 ;\n }\n return 0 ;\n }\n }\n kexp ++ ;\n }\n return - 1 ;\n }"}
{"idx": 3390, "target": 0, "func": "static void U_CALLCONV UConverter_toUnicode_CompoundText_OFFSETS ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n const char * mySource = ( char * ) args -> source ;\n UChar * myTarget = args -> target ;\n const char * mySourceLimit = args -> sourceLimit ;\n const char * tmpSourceLimit = mySourceLimit ;\n uint32_t mySourceChar = 0x0000 ;\n COMPOUND_TEXT_CONVERTERS currentState , tmpState ;\n int32_t sourceOffset = 0 ;\n UConverterDataCompoundText * myConverterData = ( UConverterDataCompoundText * ) args -> converter -> extraInfo ;\n UConverterSharedData * savedSharedData = NULL ;\n UConverterToUnicodeArgs subArgs ;\n int32_t minArgsSize ;\n if ( args -> size < sizeof ( UConverterToUnicodeArgs ) ) {\n minArgsSize = args -> size ;\n }\n else {\n minArgsSize = ( int32_t ) sizeof ( UConverterToUnicodeArgs ) ;\n }\n uprv_memcpy ( & subArgs , args , minArgsSize ) ;\n subArgs . size = ( uint16_t ) minArgsSize ;\n currentState = tmpState = myConverterData -> state ;\n while ( mySource < mySourceLimit ) {\n if ( myTarget < args -> targetLimit ) {\n if ( args -> converter -> toULength > 0 ) {\n mySourceChar = args -> converter -> toUBytes [ 0 ] ;\n }\n else {\n mySourceChar = ( uint8_t ) * mySource ;\n }\n if ( mySourceChar == ESC_START ) {\n tmpState = findStateFromEscSeq ( mySource , mySourceLimit , args -> converter -> toUBytes , args -> converter -> toULength , err ) ;\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n for ( ;\n mySource < mySourceLimit ;\n ) {\n args -> converter -> toUBytes [ args -> converter -> toULength ++ ] = * mySource ++ ;\n }\n * err = U_ZERO_ERROR ;\n break ;\n }\n else if ( tmpState == INVALID ) {\n if ( args -> converter -> toULength == 0 ) {\n mySource ++ ;\n }\n * err = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n if ( tmpState != currentState ) {\n currentState = tmpState ;\n }\n sourceOffset = uprv_strlen ( ( char * ) escSeqCompoundText [ currentState ] ) - args -> converter -> toULength ;\n mySource += sourceOffset ;\n args -> converter -> toULength = 0 ;\n }\n if ( currentState == COMPOUND_TEXT_SINGLE_0 ) {\n while ( mySource < mySourceLimit ) {\n if ( * mySource == ESC_START ) {\n break ;\n }\n if ( myTarget < args -> targetLimit ) {\n * myTarget ++ = 0x00ff & ( * mySource ++ ) ;\n }\n else {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n }\n else if ( mySource < mySourceLimit ) {\n sourceOffset = findNextEsc ( mySource , mySourceLimit ) ;\n tmpSourceLimit = mySource + sourceOffset ;\n subArgs . source = mySource ;\n subArgs . sourceLimit = tmpSourceLimit ;\n subArgs . target = myTarget ;\n savedSharedData = subArgs . converter -> sharedData ;\n subArgs . converter -> sharedData = myConverterData -> myConverterArray [ currentState ] ;\n ucnv_MBCSToUnicodeWithOffsets ( & subArgs , err ) ;\n subArgs . converter -> sharedData = savedSharedData ;\n mySource = subArgs . source ;\n myTarget = subArgs . target ;\n if ( U_FAILURE ( * err ) ) {\n if ( * err == U_BUFFER_OVERFLOW_ERROR ) {\n if ( subArgs . converter -> UCharErrorBufferLength > 0 ) {\n uprv_memcpy ( args -> converter -> UCharErrorBuffer , subArgs . converter -> UCharErrorBuffer , subArgs . converter -> UCharErrorBufferLength ) ;\n }\n args -> converter -> UCharErrorBufferLength = subArgs . converter -> UCharErrorBufferLength ;\n subArgs . converter -> UCharErrorBufferLength = 0 ;\n }\n break ;\n }\n }\n }\n else {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n myConverterData -> state = currentState ;\n args -> target = myTarget ;\n args -> source = mySource ;\n }"}
{"idx": 3391, "target": 0, "func": "static ram_addr_t s390_virtio_device_num_vq ( VirtIOS390Device * dev ) {\n VirtIODevice * vdev = dev -> vdev ;\n int num_vq ;\n for ( num_vq = 0 ;\n num_vq < VIRTIO_PCI_QUEUE_MAX ;\n num_vq ++ ) {\n if ( ! virtio_queue_get_num ( vdev , num_vq ) ) {\n break ;\n }\n }\n return num_vq ;\n }"}
{"idx": 3392, "target": 0, "func": "TEST_F ( HistoryQuickProviderTest , SimpleSingleMatch ) {\n std : : vector < std : : string > expected_urls ;\n expected_urls . push_back ( \"http://slashdot.org/favorite_page.html\" ) ;\n RunTest ( ASCIIToUTF16 ( \"slashdot\" ) , false , expected_urls , true , ASCIIToUTF16 ( \"slashdot.org/favorite_page.html\" ) , ASCIIToUTF16 ( \".org/favorite_page.html\" ) ) ;\n }"}
{"idx": 3393, "target": 1, "func": "rfbBool rfbSendXvp ( rfbClientPtr cl , uint8_t version , uint8_t code ) {\n rfbXvpMsg xvp ;\n xvp . type = rfbXvp ;\n xvp . pad = 0 ;\n xvp . version = version ;\n xvp . code = code ;\n LOCK ( cl -> sendMutex ) ;\n if ( rfbWriteExact ( cl , ( char * ) & xvp , sz_rfbXvpMsg ) < 0 ) {\n rfbLogPerror ( \"rfbSendXvp: write\" ) ;\n rfbCloseClient ( cl ) ;\n }\n UNLOCK ( cl -> sendMutex ) ;\n rfbStatRecordMessageSent ( cl , rfbXvp , sz_rfbXvpMsg , sz_rfbXvpMsg ) ;\n return TRUE ;\n }"}
{"idx": 3394, "target": 0, "func": "static void cert_policy_destroy ( x509_cert_policy_t * this ) {\n free ( this -> oid . ptr ) ;\n free ( this -> cps_uri ) ;\n free ( this -> unotice_text ) ;\n free ( this ) ;\n }"}
{"idx": 3395, "target": 0, "func": "TSReturnCode TSMimeHdrFieldCreate ( TSMBuffer bufp , TSMLoc mh_mloc , TSMLoc * locp ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( mh_mloc ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( mh_mloc ) == TS_SUCCESS ) ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) locp ) == TS_SUCCESS ) ;\n if ( ! isWriteable ( bufp ) ) {\n return TS_ERROR ;\n }\n MIMEHdrImpl * mh = _hdr_mloc_to_mime_hdr_impl ( mh_mloc ) ;\n HdrHeap * heap = ( HdrHeap * ) ( ( ( HdrHeapSDKHandle * ) bufp ) -> m_heap ) ;\n MIMEFieldSDKHandle * h = sdk_alloc_field_handle ( bufp , mh ) ;\n h -> field_ptr = mime_field_create ( heap , mh ) ;\n * locp = reinterpret_cast < TSMLoc > ( h ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 3396, "target": 0, "func": "METHOD ( x509_t , get_subjectKeyIdentifier , chunk_t , private_x509_cert_t * this ) {\n if ( this -> subjectKeyIdentifier . ptr ) {\n return this -> subjectKeyIdentifier ;\n }\n else {\n chunk_t fingerprint ;\n if ( this -> public_key -> get_fingerprint ( this -> public_key , KEYID_PUBKEY_SHA1 , & fingerprint ) ) {\n return fingerprint ;\n }\n else {\n return chunk_empty ;\n }\n }\n }"}
{"idx": 3397, "target": 0, "func": "int qemuMonitorJSONSendFileHandle ( qemuMonitorPtr mon , const char * fdname , int fd ) {\n int ret ;\n virJSONValuePtr cmd = qemuMonitorJSONMakeCommand ( \"getfd\" , \"s:fdname\" , fdname , NULL ) ;\n virJSONValuePtr reply = NULL ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommandWithFd ( mon , cmd , fd , & reply ) ;\n if ( ret == 0 ) ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 3398, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ExtensionPreferenceApiTest , PersistentIncognito ) {\n PrefService * prefs = profile_ -> GetPrefs ( ) ;\n prefs -> SetBoolean ( prefs : : kBlockThirdPartyCookies , false ) ;\n EXPECT_TRUE ( RunExtensionTestIncognito ( \"preference/persistent_incognito\" ) ) << message_ ;\n EXPECT_FALSE ( profile_ -> HasOffTheRecordProfile ( ) ) ;\n PrefService * otr_prefs = profile_ -> GetOffTheRecordProfile ( ) -> GetPrefs ( ) ;\n const PrefService : : Preference * pref = otr_prefs -> FindPreference ( prefs : : kBlockThirdPartyCookies ) ;\n ASSERT_TRUE ( pref ) ;\n EXPECT_TRUE ( pref -> IsExtensionControlled ( ) ) ;\n EXPECT_TRUE ( otr_prefs -> GetBoolean ( prefs : : kBlockThirdPartyCookies ) ) ;\n pref = prefs -> FindPreference ( prefs : : kBlockThirdPartyCookies ) ;\n ASSERT_TRUE ( pref ) ;\n EXPECT_FALSE ( pref -> IsExtensionControlled ( ) ) ;\n EXPECT_FALSE ( prefs -> GetBoolean ( prefs : : kBlockThirdPartyCookies ) ) ;\n }"}
{"idx": 3399, "target": 0, "func": "static void get_object_details ( void ) {\n uint32_t i ;\n struct object_entry * * sorted_by_offset ;\n sorted_by_offset = xcalloc ( to_pack . nr_objects , sizeof ( struct object_entry * ) ) ;\n for ( i = 0 ;\n i < to_pack . nr_objects ;\n i ++ ) sorted_by_offset [ i ] = to_pack . objects + i ;\n qsort ( sorted_by_offset , to_pack . nr_objects , sizeof ( * sorted_by_offset ) , pack_offset_sort ) ;\n for ( i = 0 ;\n i < to_pack . nr_objects ;\n i ++ ) {\n struct object_entry * entry = sorted_by_offset [ i ] ;\n check_object ( entry ) ;\n if ( big_file_threshold < entry -> size ) entry -> no_try_delta = 1 ;\n }\n free ( sorted_by_offset ) ;\n }"}
{"idx": 3400, "target": 0, "func": "void vp9_set_rd_speed_thresholds_sub8x8 ( VP9_COMP * cpi ) {\n const SPEED_FEATURES * const sf = & cpi -> sf ;\n RD_OPT * const rd = & cpi -> rd ;\n int i ;\n for ( i = 0 ;\n i < MAX_REFS ;\n ++ i ) rd -> thresh_mult_sub8x8 [ i ] = cpi -> oxcf . mode == BEST ? - 500 : 0 ;\n rd -> thresh_mult_sub8x8 [ THR_LAST ] += 2500 ;\n rd -> thresh_mult_sub8x8 [ THR_GOLD ] += 2500 ;\n rd -> thresh_mult_sub8x8 [ THR_ALTR ] += 2500 ;\n rd -> thresh_mult_sub8x8 [ THR_INTRA ] += 2500 ;\n rd -> thresh_mult_sub8x8 [ THR_COMP_LA ] += 4500 ;\n rd -> thresh_mult_sub8x8 [ THR_COMP_GA ] += 4500 ;\n for ( i = 0 ;\n i < MAX_REFS ;\n ++ i ) if ( sf -> disable_split_mask & ( 1 << i ) ) rd -> thresh_mult_sub8x8 [ i ] = INT_MAX ;\n }"}
{"idx": 3401, "target": 0, "func": "int wep_decrypt ( u_char * buf , size_t len , u_char * wkey , size_t wlen ) {\n RC4_KEY key ;\n u_char seed [ 32 ] ;\n struct wep_header * wep ;\n u_char * encbuf ;\n u_char decbuf [ len ] ;\n if ( wlen == 0 ) return - E_NOTHANDLED ;\n wep = ( struct wep_header * ) buf ;\n len -= sizeof ( struct wep_header ) ;\n wep -> key >>= 6 ;\n if ( wep -> key * 5 > ( int ) ( MAX_WKEY_LEN - wlen ) ) {\n return - E_NOTHANDLED ;\n }\n encbuf = ( u_char * ) ( wep + 1 ) ;\n memcpy ( seed , wep -> init_vector , WEP_IV_LEN ) ;\n memcpy ( seed + WEP_IV_LEN , & wkey [ wep -> key * 5 ] , wlen ) ;\n RC4_set_key ( & key , WEP_IV_LEN + wlen , seed ) ;\n RC4 ( & key , len + WEP_CRC_LEN , encbuf , decbuf ) ;\n if ( CRC_checksum ( decbuf , len + WEP_CRC_LEN , CRC_INIT ) != CRC_RESULT ) {\n return - E_NOTHANDLED ;\n }\n memcpy ( buf , decbuf , len ) ;\n memset ( buf + len , 0 , WEP_CRC_LEN ) ;\n return E_SUCCESS ;\n }"}
{"idx": 3402, "target": 0, "func": "void proto_disable_by_default ( const int proto_id ) {\n protocol_t * protocol ;\n protocol = find_protocol_by_id ( proto_id ) ;\n DISSECTOR_ASSERT ( protocol -> can_toggle ) ;\n protocol -> is_enabled = FALSE ;\n protocol -> enabled_by_default = FALSE ;\n }"}
{"idx": 3403, "target": 0, "func": "static int xhci_find_epid ( USBEndpoint * ep ) {\n if ( ep -> nr == 0 ) {\n return 1 ;\n }\n if ( ep -> pid == USB_TOKEN_IN ) {\n return ep -> nr * 2 + 1 ;\n }\n else {\n return ep -> nr * 2 ;\n }\n }"}
{"idx": 3404, "target": 0, "func": "void appendStringLiteral ( PQExpBuffer buf , const char * str , int encoding , bool std_strings ) {\n size_t length = strlen ( str ) ;\n const char * source = str ;\n char * target ;\n if ( ! enlargePQExpBuffer ( buf , 2 * length + 2 ) ) return ;\n target = buf -> data + buf -> len ;\n * target ++ = '\\'' ;\n while ( * source != '\\0' ) {\n char c = * source ;\n int len ;\n int i ;\n if ( ! IS_HIGHBIT_SET ( c ) ) {\n if ( SQL_STR_DOUBLE ( c , ! std_strings ) ) * target ++ = c ;\n * target ++ = c ;\n source ++ ;\n continue ;\n }\n len = PQmblen ( source , encoding ) ;\n for ( i = 0 ;\n i < len ;\n i ++ ) {\n if ( * source == '\\0' ) break ;\n * target ++ = * source ++ ;\n }\n if ( i < len ) {\n char * stop = buf -> data + buf -> maxlen - 2 ;\n for ( ;\n i < len ;\n i ++ ) {\n if ( target >= stop ) break ;\n * target ++ = ' ' ;\n }\n break ;\n }\n }\n * target ++ = '\\'' ;\n * target = '\\0' ;\n buf -> len = target - buf -> data ;\n }"}
{"idx": 3405, "target": 0, "func": "static void dumpsid ( FILE * cfff , struct alltabs * at , char * str , int oper ) {\n if ( str == NULL ) return ;\n dumpint ( cfff , storesid ( at , str ) ) ;\n dumpoper ( cfff , oper ) ;\n }"}
{"idx": 3406, "target": 0, "func": "TEST_F ( ProfileInfoCacheTest , DontMigrateLegacyProfileNamesWithoutNewAvatarMenu ) {\n switches : : DisableNewAvatarMenuForTesting ( base : : CommandLine : : ForCurrentProcess ( ) ) ;\n EXPECT_EQ ( 0U , GetCache ( ) -> GetNumberOfProfiles ( ) ) ;\n base : : string16 name_1 = ASCIIToUTF16 ( \"Default Profile\" ) ;\n base : : FilePath path_1 = GetProfilePath ( \"path_1\" ) ;\n GetCache ( ) -> AddProfileToCache ( path_1 , name_1 , base : : string16 ( ) , 0 , std : : string ( ) ) ;\n base : : string16 name_2 = ASCIIToUTF16 ( \"First user\" ) ;\n base : : FilePath path_2 = GetProfilePath ( \"path_2\" ) ;\n GetCache ( ) -> AddProfileToCache ( path_2 , name_2 , base : : string16 ( ) , 1 , std : : string ( ) ) ;\n base : : string16 name_3 = ASCIIToUTF16 ( \"Lemonade\" ) ;\n base : : FilePath path_3 = GetProfilePath ( \"path_3\" ) ;\n GetCache ( ) -> AddProfileToCache ( path_3 , name_3 , base : : string16 ( ) , 2 , std : : string ( ) ) ;\n base : : string16 name_4 = ASCIIToUTF16 ( \"Batman\" ) ;\n base : : FilePath path_4 = GetProfilePath ( \"path_4\" ) ;\n GetCache ( ) -> AddProfileToCache ( path_4 , name_4 , base : : string16 ( ) , 3 , std : : string ( ) ) ;\n EXPECT_EQ ( 4U , GetCache ( ) -> GetNumberOfProfiles ( ) ) ;\n ResetCache ( ) ;\n EXPECT_EQ ( name_1 , GetCache ( ) -> GetNameOfProfileAtIndex ( GetCache ( ) -> GetIndexOfProfileWithPath ( path_1 ) ) ) ;\n EXPECT_EQ ( name_2 , GetCache ( ) -> GetNameOfProfileAtIndex ( GetCache ( ) -> GetIndexOfProfileWithPath ( path_2 ) ) ) ;\n EXPECT_EQ ( name_3 , GetCache ( ) -> GetNameOfProfileAtIndex ( GetCache ( ) -> GetIndexOfProfileWithPath ( path_3 ) ) ) ;\n EXPECT_EQ ( name_4 , GetCache ( ) -> GetNameOfProfileAtIndex ( GetCache ( ) -> GetIndexOfProfileWithPath ( path_4 ) ) ) ;\n }"}
{"idx": 3407, "target": 0, "func": "static void mdb_rtxn_snap ( Operation * op , ww_ctx * ww ) {\n if ( ww -> mcd ) {\n MDB_val key , data ;\n mdb_cursor_get ( ww -> mcd , & key , & data , MDB_GET_CURRENT ) ;\n memcpy ( & ww -> key , key . mv_data , sizeof ( ID ) ) ;\n ww -> data . mv_size = data . mv_size ;\n ww -> data . mv_data = op -> o_tmpalloc ( data . mv_size , op -> o_tmpmemctx ) ;\n memcpy ( ww -> data . mv_data , data . mv_data , data . mv_size ) ;\n }\n mdb_txn_reset ( ww -> txn ) ;\n ww -> flag = 1 ;\n }"}
{"idx": 3408, "target": 0, "func": "int qemuMonitorJSONSetPassword ( qemuMonitorPtr mon , const char * protocol , const char * password , const char * action_if_connected ) {\n int ret ;\n virJSONValuePtr cmd = qemuMonitorJSONMakeCommand ( \"set_password\" , \"s:protocol\" , protocol , \"s:password\" , password , \"s:connected\" , action_if_connected , NULL ) ;\n virJSONValuePtr reply = NULL ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) {\n if ( qemuMonitorJSONHasError ( reply , \"CommandNotFound\" ) ) {\n ret = - 2 ;\n goto cleanup ;\n }\n ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n }\n cleanup : virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 3409, "target": 1, "func": "static void ucnv_Latin1FromUTF8 ( UConverterFromUnicodeArgs * pFromUArgs , UConverterToUnicodeArgs * pToUArgs , UErrorCode * pErrorCode ) {\n UConverter * utf8 ;\n const uint8_t * source , * sourceLimit ;\n uint8_t * target ;\n int32_t targetCapacity ;\n UChar32 c ;\n uint8_t b , t1 ;\n utf8 = pToUArgs -> converter ;\n source = ( uint8_t * ) pToUArgs -> source ;\n sourceLimit = ( uint8_t * ) pToUArgs -> sourceLimit ;\n target = ( uint8_t * ) pFromUArgs -> target ;\n targetCapacity = ( int32_t ) ( pFromUArgs -> targetLimit - pFromUArgs -> target ) ;\n c = ( UChar32 ) utf8 -> toUnicodeStatus ;\n if ( c != 0 && source < sourceLimit ) {\n if ( targetCapacity == 0 ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n return ;\n }\n else if ( c >= 0xc2 && c <= 0xc3 && ( t1 = ( uint8_t ) ( * source - 0x80 ) ) <= 0x3f ) {\n ++ source ;\n * target ++ = ( uint8_t ) ( ( ( c & 3 ) << 6 ) | t1 ) ;\n -- targetCapacity ;\n utf8 -> toUnicodeStatus = 0 ;\n utf8 -> toULength = 0 ;\n }\n else {\n * pErrorCode = U_USING_DEFAULT_WARNING ;\n return ;\n }\n }\n if ( source < sourceLimit && U8_IS_LEAD ( * ( sourceLimit - 1 ) ) ) {\n -- sourceLimit ;\n }\n while ( source < sourceLimit ) {\n if ( targetCapacity > 0 ) {\n b = * source ++ ;\n if ( ( int8_t ) b >= 0 ) {\n * target ++ = ( uint8_t ) b ;\n -- targetCapacity ;\n }\n else if ( b >= 0xc2 && b <= 0xc3 && ( t1 = ( uint8_t ) ( * source - 0x80 ) ) <= 0x3f ) {\n ++ source ;\n * target ++ = ( uint8_t ) ( ( ( b & 3 ) << 6 ) | t1 ) ;\n -- targetCapacity ;\n }\n else {\n pToUArgs -> source = ( char * ) ( source - 1 ) ;\n pFromUArgs -> target = ( char * ) target ;\n * pErrorCode = U_USING_DEFAULT_WARNING ;\n return ;\n }\n }\n else {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n if ( U_SUCCESS ( * pErrorCode ) && source < ( sourceLimit = ( uint8_t * ) pToUArgs -> sourceLimit ) ) {\n utf8 -> toUnicodeStatus = utf8 -> toUBytes [ 0 ] = b = * source ++ ;\n utf8 -> toULength = 1 ;\n utf8 -> mode = U8_COUNT_TRAIL_BYTES ( b ) + 1 ;\n }\n pToUArgs -> source = ( char * ) source ;\n pFromUArgs -> target = ( char * ) target ;\n }"}
{"idx": 3410, "target": 0, "func": "gboolean pk_transaction_set_tid ( PkTransaction * transaction , const gchar * tid ) {\n static const GDBusInterfaceVTable interface_vtable = {\n pk_transaction_method_call , pk_transaction_get_property , NULL }\n ;\n g_return_val_if_fail ( PK_IS_TRANSACTION ( transaction ) , FALSE ) ;\n g_return_val_if_fail ( tid != NULL , FALSE ) ;\n g_return_val_if_fail ( transaction -> priv -> tid == NULL , FALSE ) ;\n transaction -> priv -> tid = g_strdup ( tid ) ;\n transaction -> priv -> connection = g_bus_get_sync ( G_BUS_TYPE_SYSTEM , NULL , NULL ) ;\n g_assert ( transaction -> priv -> connection != NULL ) ;\n transaction -> priv -> registration_id = g_dbus_connection_register_object ( transaction -> priv -> connection , tid , transaction -> priv -> introspection -> interfaces [ 0 ] , & interface_vtable , transaction , NULL , NULL ) ;\n g_assert ( transaction -> priv -> registration_id > 0 ) ;\n return TRUE ;\n }"}
{"idx": 3411, "target": 1, "func": "static UChar32 _Latin1GetNextUChar ( UConverterToUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n const uint8_t * source = ( const uint8_t * ) pArgs -> source ;\n if ( source < ( const uint8_t * ) pArgs -> sourceLimit ) {\n pArgs -> source = ( const char * ) ( source + 1 ) ;\n return * source ;\n }\n * pErrorCode = U_INDEX_OUTOFBOUNDS_ERROR ;\n return 0xffff ;\n }"}
{"idx": 3412, "target": 0, "func": "int qemuMonitorTextStartCPUs ( qemuMonitorPtr mon , virConnectPtr conn ) {\n char * reply ;\n if ( qemuMonitorTextCommandWithHandler ( mon , \"cont\" , qemuMonitorSendDiskPassphrase , conn , - 1 , & reply ) < 0 ) return - 1 ;\n VIR_FREE ( reply ) ;\n return 0 ;\n }"}
{"idx": 3413, "target": 0, "func": "static ha_checksum mi_byte_checksum ( const uchar * buf , uint length ) {\n ha_checksum crc ;\n const uchar * end = buf + length ;\n for ( crc = 0 ;\n buf != end ;\n buf ++ ) crc = ( ( crc << 1 ) + * ( ( uchar * ) buf ) ) + test ( crc & ( ( ( ha_checksum ) 1 ) << ( 8 * sizeof ( ha_checksum ) - 1 ) ) ) ;\n return crc ;\n }"}
{"idx": 3414, "target": 1, "func": "static void set_good_speed_feature ( VP9_COMP * cpi , VP9_COMMON * cm , SPEED_FEATURES * sf , int speed ) {\n const int boosted = frame_is_boosted ( cpi ) ;\n sf -> adaptive_rd_thresh = 1 ;\n sf -> allow_skip_recode = 1 ;\n if ( speed >= 1 ) {\n sf -> use_square_partition_only = ! frame_is_intra_only ( cm ) ;\n sf -> less_rectangular_check = 1 ;\n if ( MIN ( cm -> width , cm -> height ) >= 720 ) sf -> disable_split_mask = cm -> show_frame ? DISABLE_ALL_SPLIT : DISABLE_ALL_INTER_SPLIT ;\n else sf -> disable_split_mask = DISABLE_COMPOUND_SPLIT ;\n sf -> use_rd_breakout = 1 ;\n sf -> adaptive_motion_search = 1 ;\n sf -> mv . auto_mv_step_size = 1 ;\n sf -> adaptive_rd_thresh = 2 ;\n sf -> mv . subpel_iters_per_step = 1 ;\n sf -> mode_skip_start = 10 ;\n sf -> adaptive_pred_interp_filter = 1 ;\n sf -> recode_loop = ALLOW_RECODE_KFARFGF ;\n sf -> intra_y_mode_mask [ TX_32X32 ] = INTRA_DC_H_V ;\n sf -> intra_uv_mode_mask [ TX_32X32 ] = INTRA_DC_H_V ;\n sf -> intra_y_mode_mask [ TX_16X16 ] = INTRA_DC_H_V ;\n sf -> intra_uv_mode_mask [ TX_16X16 ] = INTRA_DC_H_V ;\n sf -> tx_size_search_breakout = 1 ;\n if ( MIN ( cm -> width , cm -> height ) >= 720 ) sf -> partition_search_breakout_dist_thr = ( 1 << 23 ) ;\n else sf -> partition_search_breakout_dist_thr = ( 1 << 21 ) ;\n sf -> partition_search_breakout_rate_thr = 500 ;\n }\n if ( speed >= 2 ) {\n sf -> tx_size_search_method = frame_is_boosted ( cpi ) ? USE_FULL_RD : USE_LARGESTALL ;\n if ( MIN ( cm -> width , cm -> height ) >= 720 ) {\n sf -> lf_motion_threshold = LOW_MOTION_THRESHOLD ;\n sf -> last_partitioning_redo_frequency = 3 ;\n sf -> disable_split_mask = cm -> show_frame ? DISABLE_ALL_SPLIT : DISABLE_ALL_INTER_SPLIT ;\n sf -> adaptive_pred_interp_filter = 0 ;\n }\n else {\n sf -> disable_split_mask = LAST_AND_INTRA_SPLIT_ONLY ;\n sf -> last_partitioning_redo_frequency = 2 ;\n sf -> lf_motion_threshold = NO_MOTION_THRESHOLD ;\n }\n sf -> reference_masking = 1 ;\n sf -> mode_search_skip_flags = FLAG_SKIP_INTRA_DIRMISMATCH | FLAG_SKIP_INTRA_BESTINTER | FLAG_SKIP_COMP_BESTINTRA | FLAG_SKIP_INTRA_LOWVAR ;\n sf -> disable_filter_search_var_thresh = 100 ;\n sf -> comp_inter_joint_search_thresh = BLOCK_SIZES ;\n sf -> auto_min_max_partition_size = CONSTRAIN_NEIGHBORING_MIN_MAX ;\n sf -> use_lastframe_partitioning = LAST_FRAME_PARTITION_LOW_MOTION ;\n sf -> adjust_partitioning_from_last_frame = 1 ;\n if ( MIN ( cm -> width , cm -> height ) >= 720 ) sf -> partition_search_breakout_dist_thr = ( 1 << 24 ) ;\n else sf -> partition_search_breakout_dist_thr = ( 1 << 22 ) ;\n sf -> partition_search_breakout_rate_thr = 700 ;\n }\n if ( speed >= 3 ) {\n sf -> tx_size_search_method = frame_is_intra_only ( cm ) ? USE_FULL_RD : USE_LARGESTALL ;\n if ( MIN ( cm -> width , cm -> height ) >= 720 ) {\n sf -> disable_split_mask = DISABLE_ALL_SPLIT ;\n }\n else {\n sf -> max_intra_bsize = BLOCK_32X32 ;\n sf -> disable_split_mask = DISABLE_ALL_INTER_SPLIT ;\n }\n sf -> adaptive_pred_interp_filter = 0 ;\n sf -> adaptive_mode_search = 1 ;\n sf -> cb_partition_search = ! boosted ;\n sf -> cb_pred_filter_search = 1 ;\n sf -> alt_ref_search_fp = 1 ;\n sf -> motion_field_mode_search = ! boosted ;\n sf -> lf_motion_threshold = LOW_MOTION_THRESHOLD ;\n sf -> last_partitioning_redo_frequency = 2 ;\n sf -> recode_loop = ALLOW_RECODE_KFMAXBW ;\n sf -> adaptive_rd_thresh = 3 ;\n sf -> mode_skip_start = 6 ;\n sf -> intra_y_mode_mask [ TX_32X32 ] = INTRA_DC ;\n sf -> intra_uv_mode_mask [ TX_32X32 ] = INTRA_DC ;\n sf -> adaptive_interp_filter_search = 1 ;\n if ( MIN ( cm -> width , cm -> height ) >= 720 ) sf -> partition_search_breakout_dist_thr = ( 1 << 25 ) ;\n else sf -> partition_search_breakout_dist_thr = ( 1 << 23 ) ;\n sf -> partition_search_breakout_rate_thr = 1000 ;\n }\n if ( speed >= 4 ) {\n sf -> use_square_partition_only = 1 ;\n sf -> tx_size_search_method = USE_LARGESTALL ;\n sf -> disable_split_mask = DISABLE_ALL_SPLIT ;\n sf -> adaptive_rd_thresh = 4 ;\n sf -> mode_search_skip_flags |= FLAG_SKIP_COMP_REFMISMATCH | FLAG_EARLY_TERMINATE ;\n sf -> disable_filter_search_var_thresh = 200 ;\n sf -> use_lastframe_partitioning = LAST_FRAME_PARTITION_ALL ;\n sf -> use_lp32x32fdct = 1 ;\n sf -> use_fast_coef_updates = ONE_LOOP_REDUCED ;\n sf -> use_fast_coef_costing = 1 ;\n if ( MIN ( cm -> width , cm -> height ) >= 720 ) sf -> partition_search_breakout_dist_thr = ( 1 << 26 ) ;\n else sf -> partition_search_breakout_dist_thr = ( 1 << 24 ) ;\n sf -> partition_search_breakout_rate_thr = 1500 ;\n }\n if ( speed >= 5 ) {\n int i ;\n sf -> partition_search_type = FIXED_PARTITION ;\n sf -> optimize_coefficients = 0 ;\n sf -> mv . search_method = HEX ;\n sf -> disable_filter_search_var_thresh = 500 ;\n for ( i = 0 ;\n i < TX_SIZES ;\n ++ i ) {\n sf -> intra_y_mode_mask [ i ] = INTRA_DC ;\n sf -> intra_uv_mode_mask [ i ] = INTRA_DC ;\n }\n cpi -> allow_encode_breakout = ENCODE_BREAKOUT_ENABLED ;\n }\n if ( speed >= 6 ) {\n sf -> mv . reduce_first_step_size = 1 ;\n }\n }"}
{"idx": 3415, "target": 0, "func": "static int loop_filter_row_worker ( TileWorkerData * const tile_data , void * unused ) {\n LFWorkerData * const lf_data = & tile_data -> lfdata ;\n ( void ) unused ;\n loop_filter_rows_mt ( lf_data -> frame_buffer , lf_data -> cm , lf_data -> planes , lf_data -> start , lf_data -> stop , lf_data -> y_only , lf_data -> lf_sync , lf_data -> num_lf_workers ) ;\n return 1 ;\n }"}
{"idx": 3416, "target": 0, "func": "static int dissect_nlm_unlock ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , int version , rpc_call_info_value * rpc_call ) {\n if ( nlm_match_msgres ) {\n if ( rpc_call -> proc == 9 ) {\n if ( ( ! pinfo -> fd -> flags . visited ) ) {\n nlm_register_unmatched_msg ( pinfo , tvb , offset ) ;\n }\n else {\n nlm_print_msgres_request ( pinfo , tree , tvb ) ;\n }\n if ( nfs_fhandle_reqrep_matching ) {\n nlm_match_fhandle_request ( pinfo , tree ) ;\n }\n }\n }\n offset = dissect_rpc_data ( tvb , tree , hf_nlm_cookie , offset ) ;\n offset = dissect_lock ( tvb , pinfo , tree , version , offset , rpc_call ) ;\n return offset ;\n }"}
{"idx": 3417, "target": 1, "func": "double vp9_convert_qindex_to_q ( int qindex ) {\n return vp9_ac_quant ( qindex , 0 ) / 4.0 ;\n }"}
{"idx": 3418, "target": 0, "func": "static int dissect_h225_SEQUENCE_OF_ExtendedAliasAddress ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_SEQUENCE_OF_ExtendedAliasAddress , SEQUENCE_OF_ExtendedAliasAddress_sequence_of ) ;\n return offset ;\n }"}
{"idx": 3419, "target": 0, "func": "static void test_bug4231 ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND my_bind [ 2 ] ;\n MYSQL_TIME tm [ 2 ] ;\n const char * stmt_text ;\n int rc ;\n myheader ( \"test_bug4231\" ) ;\n stmt_text = \"DROP TABLE IF EXISTS t1\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt_text = \"CREATE TABLE t1 (a int)\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt_text = \"INSERT INTO t1 VALUES (1)\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n stmt_text = \"SELECT a FROM t1 WHERE ? = ?\" ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt , rc ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n memset ( tm , 0 , sizeof ( tm ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_DATE ;\n my_bind [ 0 ] . buffer = & tm [ 0 ] ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_DATE ;\n my_bind [ 1 ] . buffer = & tm [ 1 ] ;\n mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n tm [ 0 ] . time_type = MYSQL_TIMESTAMP_DATE ;\n tm [ 0 ] . year = 2000 ;\n tm [ 0 ] . month = 1 ;\n tm [ 0 ] . day = 1 ;\n tm [ 1 ] = tm [ 0 ] ;\n -- tm [ 1 ] . year ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n tm [ 0 ] . year = tm [ 0 ] . month = tm [ 0 ] . day = 0 ;\n tm [ 1 ] = tm [ 0 ] ;\n mysql_stmt_execute ( stmt ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == 0 ) ;\n mysql_stmt_close ( stmt ) ;\n stmt_text = \"DROP TABLE t1\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n }"}
{"idx": 3420, "target": 0, "func": "struct config_connection * config_connection_create ( int fd ) {\n struct config_connection * conn ;\n conn = i_new ( struct config_connection , 1 ) ;\n conn -> fd = fd ;\n conn -> input = i_stream_create_fd ( fd , MAX_INBUF_SIZE , FALSE ) ;\n conn -> output = o_stream_create_fd ( fd , ( size_t ) - 1 , FALSE ) ;\n o_stream_set_no_error_handling ( conn -> output , TRUE ) ;\n conn -> io = io_add ( fd , IO_READ , config_connection_input , conn ) ;\n DLLIST_PREPEND ( & config_connections , conn ) ;\n return conn ;\n }"}
{"idx": 3421, "target": 0, "func": "static void do_result_format_version ( struct st_command * command ) {\n long version ;\n static DYNAMIC_STRING ds_version ;\n const struct command_arg result_format_args [ ] = {\n {\n \"version\" , ARG_STRING , TRUE , & ds_version , \"Version to use\" }\n }\n ;\n DBUG_ENTER ( \"do_result_format_version\" ) ;\n check_command_args ( command , command -> first_argument , result_format_args , sizeof ( result_format_args ) / sizeof ( struct command_arg ) , ',' ) ;\n if ( ! str2int ( ds_version . str , 10 , ( long ) 0 , ( long ) INT_MAX , & version ) ) die ( \"Invalid version number: '%s'\" , ds_version . str ) ;\n set_result_format_version ( version ) ;\n dynstr_append ( & ds_res , \"result_format: \" ) ;\n dynstr_append_mem ( & ds_res , ds_version . str , ds_version . length ) ;\n dynstr_append ( & ds_res , \"\\n\" ) ;\n dynstr_free ( & ds_version ) ;\n }"}
{"idx": 3422, "target": 0, "func": "static int dissect_h245_RedundancyEncodingDTModeElement ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_RedundancyEncodingDTModeElement , RedundancyEncodingDTModeElement_sequence ) ;\n return offset ;\n }"}
{"idx": 3423, "target": 0, "func": "WRITE_CLASS_ENCODER ( CephXResponseHeader ) struct CephXTicketBlob {\n uint64_t secret_id ;\n bufferlist blob ;\n CephXTicketBlob ( ) : secret_id ( 0 ) {\n }\n void encode ( bufferlist & bl ) const {\n __u8 struct_v = 1 ;\n : : encode ( struct_v , bl ) ;\n : : encode ( secret_id , bl ) ;\n : : encode ( blob , bl ) ;\n }\n void decode ( bufferlist : : iterator & bl ) {\n __u8 struct_v ;\n : : decode ( struct_v , bl ) ;\n : : decode ( secret_id , bl ) ;\n : : decode ( blob , bl ) ;\n }\n }\n ;\n WRITE_CLASS_ENCODER ( CephXTicketBlob ) struct CephXAuthenticate {\n uint64_t client_challenge ;\n uint64_t key ;\n CephXTicketBlob old_ticket ;\n void encode ( bufferlist & bl ) const {\n __u8 struct_v = 1 ;\n : : encode ( struct_v , bl ) ;\n : : encode ( client_challenge , bl ) ;\n : : encode ( key , bl ) ;\n : : encode ( old_ticket , bl ) ;\n }\n void decode ( bufferlist : : iterator & bl ) {\n __u8 struct_v ;\n : : decode ( struct_v , bl ) ;\n : : decode ( client_challenge , bl ) ;\n : : decode ( key , bl ) ;\n : : decode ( old_ticket , bl ) ;\n }\n }"}
{"idx": 3424, "target": 0, "func": "static int string_to_crypto_cipher_type ( const char * crypto_cipher_type ) {\n if ( strcmp ( crypto_cipher_type , \"none\" ) == 0 ) {\n return CRYPTO_CIPHER_TYPE_NONE ;\n }\n else if ( strcmp ( crypto_cipher_type , \"aes256\" ) == 0 ) {\n return CRYPTO_CIPHER_TYPE_AES256 ;\n }\n else if ( strcmp ( crypto_cipher_type , \"aes192\" ) == 0 ) {\n return CRYPTO_CIPHER_TYPE_AES192 ;\n }\n else if ( strcmp ( crypto_cipher_type , \"aes128\" ) == 0 ) {\n return CRYPTO_CIPHER_TYPE_AES128 ;\n }\n else if ( strcmp ( crypto_cipher_type , \"3des\" ) == 0 ) {\n return CRYPTO_CIPHER_TYPE_3DES ;\n }\n return CRYPTO_CIPHER_TYPE_AES256 ;\n }"}
{"idx": 3425, "target": 0, "func": "static int dissect_h245_OLC_ack_fw_lcn ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_h245_LogicalChannelNumber ( tvb , offset , actx , tree , hf_index ) ;\n # line 274 \"../../asn1/h245/h245.cnf\" if ( upcoming_olc ) upcoming_olc -> fwd_lc_num = h245_lc_temp ;\n h223_fw_lc_num = h245_lc_temp ;\n return offset ;\n }"}
{"idx": 3426, "target": 0, "func": "static void test_bug6046 ( ) {\n MYSQL_STMT * stmt ;\n const char * stmt_text ;\n int rc ;\n short b = 1 ;\n MYSQL_BIND my_bind [ 1 ] ;\n myheader ( \"test_bug6046\" ) ;\n stmt_text = \"DROP TABLE IF EXISTS t1\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt_text = \"CREATE TABLE t1 (a int, b int)\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt_text = \"INSERT INTO t1 VALUES (1,1),(2,2),(3,1),(4,2)\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n stmt_text = \"SELECT t1.a FROM t1 NATURAL JOIN t1 as X1 \" \"WHERE t1.b > ? ORDER BY t1.a\" ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt , rc ) ;\n b = 1 ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer = & b ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_SHORT ;\n mysql_stmt_bind_param ( stmt , my_bind ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n mysql_stmt_store_result ( stmt ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 3427, "target": 0, "func": "void TSHttpTxnServerRequestBodySet ( TSHttpTxn txnp , char * buf , int64_t buflength ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n HttpTransact : : State * s = & ( sm -> t_state ) ;\n s -> free_internal_msg_buffer ( ) ;\n if ( buf ) {\n s -> api_server_request_body_set = true ;\n s -> internal_msg_buffer = buf ;\n s -> internal_msg_buffer_size = buflength ;\n }\n else {\n s -> api_server_request_body_set = false ;\n s -> internal_msg_buffer = nullptr ;\n s -> internal_msg_buffer_size = 0 ;\n }\n s -> internal_msg_buffer_fast_allocator_size = - 1 ;\n }"}
{"idx": 3428, "target": 1, "func": "static void setup_buffer_inter ( VP9_COMP * cpi , MACROBLOCK * x , const TileInfo * const tile , MV_REFERENCE_FRAME ref_frame , BLOCK_SIZE block_size , int mi_row , int mi_col , int_mv frame_nearest_mv [ MAX_REF_FRAMES ] , int_mv frame_near_mv [ MAX_REF_FRAMES ] , struct buf_2d yv12_mb [ 4 ] [ MAX_MB_PLANE ] ) {\n const VP9_COMMON * cm = & cpi -> common ;\n const YV12_BUFFER_CONFIG * yv12 = get_ref_frame_buffer ( cpi , ref_frame ) ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n MODE_INFO * const mi = xd -> mi [ 0 ] ;\n int_mv * const candidates = mi -> mbmi . ref_mvs [ ref_frame ] ;\n const struct scale_factors * const sf = & cm -> frame_refs [ ref_frame - 1 ] . sf ;\n vp9_setup_pred_block ( xd , yv12_mb [ ref_frame ] , yv12 , mi_row , mi_col , sf , sf ) ;\n vp9_find_mv_refs ( cm , xd , tile , mi , ref_frame , candidates , mi_row , mi_col ) ;\n vp9_find_best_ref_mvs ( xd , cm -> allow_high_precision_mv , candidates , & frame_nearest_mv [ ref_frame ] , & frame_near_mv [ ref_frame ] ) ;\n if ( ! vp9_is_scaled ( sf ) && block_size >= BLOCK_8X8 ) vp9_mv_pred ( cpi , x , yv12_mb [ ref_frame ] [ 0 ] . buf , yv12 -> y_stride , ref_frame , block_size ) ;\n }"}
{"idx": 3429, "target": 0, "func": "void evhttp_write ( int fd , short what , void * arg ) {\n struct evhttp_connection * evcon = arg ;\n int n ;\n if ( what == EV_TIMEOUT ) {\n evhttp_connection_fail ( evcon , EVCON_HTTP_TIMEOUT ) ;\n return ;\n }\n n = evbuffer_write ( evcon -> output_buffer , fd ) ;\n if ( n == - 1 ) {\n event_debug ( ( \"%s: evbuffer_write\" , __func__ ) ) ;\n evhttp_connection_fail ( evcon , EVCON_HTTP_EOF ) ;\n return ;\n }\n if ( n == 0 ) {\n event_debug ( ( \"%s: write nothing\" , __func__ ) ) ;\n evhttp_connection_fail ( evcon , EVCON_HTTP_EOF ) ;\n return ;\n }\n if ( EVBUFFER_LENGTH ( evcon -> output_buffer ) != 0 ) {\n evhttp_add_event ( & evcon -> ev , evcon -> timeout , HTTP_WRITE_TIMEOUT ) ;\n return ;\n }\n if ( evcon -> cb != NULL ) ( * evcon -> cb ) ( evcon , evcon -> cb_arg ) ;\n }"}
{"idx": 3430, "target": 0, "func": "TEST_F ( HistoryQuickProviderTest , VisitCountMatches ) {\n std : : vector < std : : string > expected_urls ;\n expected_urls . push_back ( \"http://visitedest.com/y/a\" ) ;\n expected_urls . push_back ( \"http://visitedest.com/y/b\" ) ;\n expected_urls . push_back ( \"http://visitedest.com/x/c\" ) ;\n RunTest ( ASCIIToUTF16 ( \"visitedest\" ) , false , expected_urls , true , ASCIIToUTF16 ( \"visitedest.com/y/a\" ) , ASCIIToUTF16 ( \".com/y/a\" ) ) ;\n }"}
{"idx": 3431, "target": 0, "func": "static void print_xml_tag ( FILE * xml_file , const char * sbeg , const char * line_end , const char * tag_name , const char * first_attribute_name , ... ) {\n va_list arg_list ;\n const char * attribute_name , * attribute_value ;\n fputs ( sbeg , xml_file ) ;\n fputc ( '<' , xml_file ) ;\n fputs ( tag_name , xml_file ) ;\n va_start ( arg_list , first_attribute_name ) ;\n attribute_name = first_attribute_name ;\n while ( attribute_name != NullS ) {\n attribute_value = va_arg ( arg_list , char * ) ;\n DBUG_ASSERT ( attribute_value != NullS ) ;\n fputc ( ' ' , xml_file ) ;\n fputs ( attribute_name , xml_file ) ;\n fputc ( '\\\"' , xml_file ) ;\n print_quoted_xml ( xml_file , attribute_value , strlen ( attribute_value ) , 0 ) ;\n fputc ( '\\\"' , xml_file ) ;\n attribute_name = va_arg ( arg_list , char * ) ;\n }\n va_end ( arg_list ) ;\n fputc ( '>' , xml_file ) ;\n fputs ( line_end , xml_file ) ;\n check_io ( xml_file ) ;\n }"}
{"idx": 3432, "target": 0, "func": "static int dissect_t38_Type_of_msg ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_t38_Type_of_msg , Type_of_msg_choice , & Type_of_msg_value ) ;\n # line 22 \"../../asn1/t38/t38.cnf\" if ( primary_part ) t38_info -> type_msg = Type_of_msg_value ;\n return offset ;\n }"}
{"idx": 3433, "target": 0, "func": "static void ImportBGRQuantum ( const Image * image , QuantumInfo * quantum_info , const MagickSizeType number_pixels , const unsigned char * magick_restrict p , Quantum * magick_restrict q , ExceptionInfo * exception ) {\n QuantumAny range ;\n register ssize_t x ;\n ssize_t bit ;\n unsigned int pixel ;\n assert ( image != ( Image * ) NULL ) ;\n assert ( image -> signature == MagickCoreSignature ) ;\n switch ( quantum_info -> depth ) {\n case 8 : {\n unsigned char pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelBlue ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelGreen ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelRed ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n SetPixelAlpha ( image , OpaqueAlpha , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 10 : {\n range = GetQuantumRange ( quantum_info -> depth ) ;\n if ( quantum_info -> pack == MagickFalse ) {\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelRed ( image , ScaleAnyToQuantum ( ( pixel >> 22 ) & 0x3ff , range ) , q ) ;\n SetPixelGreen ( image , ScaleAnyToQuantum ( ( pixel >> 12 ) & 0x3ff , range ) , q ) ;\n SetPixelBlue ( image , ScaleAnyToQuantum ( ( pixel >> 2 ) & 0x3ff , range ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n if ( quantum_info -> quantum == 32U ) {\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumLongPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumLongPixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumLongPixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 12 : {\n range = GetQuantumRange ( quantum_info -> depth ) ;\n if ( quantum_info -> pack == MagickFalse ) {\n unsigned short pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) ( 3 * number_pixels - 1 ) ;\n x += 2 ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n switch ( x % 3 ) {\n default : case 0 : {\n SetPixelRed ( image , ScaleAnyToQuantum ( ( QuantumAny ) ( pixel >> 4 ) , range ) , q ) ;\n break ;\n }\n case 1 : {\n SetPixelGreen ( image , ScaleAnyToQuantum ( ( QuantumAny ) ( pixel >> 4 ) , range ) , q ) ;\n break ;\n }\n case 2 : {\n SetPixelBlue ( image , ScaleAnyToQuantum ( ( QuantumAny ) ( pixel >> 4 ) , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n break ;\n }\n }\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n switch ( ( x + 1 ) % 3 ) {\n default : case 0 : {\n SetPixelRed ( image , ScaleAnyToQuantum ( ( QuantumAny ) ( pixel >> 4 ) , range ) , q ) ;\n break ;\n }\n case 1 : {\n SetPixelGreen ( image , ScaleAnyToQuantum ( ( QuantumAny ) ( pixel >> 4 ) , range ) , q ) ;\n break ;\n }\n case 2 : {\n SetPixelBlue ( image , ScaleAnyToQuantum ( ( QuantumAny ) ( pixel >> 4 ) , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n break ;\n }\n }\n p += quantum_info -> pad ;\n }\n for ( bit = 0 ;\n bit < ( ssize_t ) ( 3 * number_pixels % 2 ) ;\n bit ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n switch ( ( x + bit ) % 3 ) {\n default : case 0 : {\n SetPixelRed ( image , ScaleAnyToQuantum ( ( QuantumAny ) ( pixel >> 4 ) , range ) , q ) ;\n break ;\n }\n case 1 : {\n SetPixelGreen ( image , ScaleAnyToQuantum ( ( QuantumAny ) ( pixel >> 4 ) , range ) , q ) ;\n break ;\n }\n case 2 : {\n SetPixelBlue ( image , ScaleAnyToQuantum ( ( QuantumAny ) ( pixel >> 4 ) , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n break ;\n }\n }\n p += quantum_info -> pad ;\n }\n if ( bit != 0 ) p ++ ;\n break ;\n }\n if ( quantum_info -> quantum == 32U ) {\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumLongPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumLongPixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumLongPixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 16 : {\n unsigned short pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelRed ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGreen ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlue ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlue ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGreen ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelRed ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 32 : {\n unsigned int pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n float pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ClampToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlue ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGreen ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelRed ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 64 : {\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n double pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ClampToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n default : {\n range = GetQuantumRange ( quantum_info -> depth ) ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n }"}
{"idx": 3434, "target": 0, "func": "void ssl3_cbc_copy_mac ( unsigned char * out , const SSL3_RECORD * rec , unsigned md_size ) {\n # if defined ( CBC_MAC_ROTATE_IN_PLACE ) unsigned char rotated_mac_buf [ 64 + EVP_MAX_MD_SIZE ] ;\n unsigned char * rotated_mac ;\n # else unsigned char rotated_mac [ EVP_MAX_MD_SIZE ] ;\n # endif unsigned mac_end = rec -> length ;\n unsigned mac_start = mac_end - md_size ;\n unsigned scan_start = 0 ;\n unsigned i , j ;\n unsigned div_spoiler ;\n unsigned rotate_offset ;\n OPENSSL_assert ( rec -> orig_len >= md_size ) ;\n OPENSSL_assert ( md_size <= EVP_MAX_MD_SIZE ) ;\n # if defined ( CBC_MAC_ROTATE_IN_PLACE ) rotated_mac = rotated_mac_buf + ( ( 0 - ( size_t ) rotated_mac_buf ) & 63 ) ;\n # endif if ( rec -> orig_len > md_size + 255 + 1 ) scan_start = rec -> orig_len - ( md_size + 255 + 1 ) ;\n div_spoiler = md_size >> 1 ;\n div_spoiler <<= ( sizeof ( div_spoiler ) - 1 ) * 8 ;\n rotate_offset = ( div_spoiler + mac_start - scan_start ) % md_size ;\n memset ( rotated_mac , 0 , md_size ) ;\n for ( i = scan_start , j = 0 ;\n i < rec -> orig_len ;\n i ++ ) {\n unsigned char mac_started = constant_time_ge_8 ( i , mac_start ) ;\n unsigned char mac_ended = constant_time_ge_8 ( i , mac_end ) ;\n unsigned char b = rec -> data [ i ] ;\n rotated_mac [ j ++ ] |= b & mac_started & ~ mac_ended ;\n j &= constant_time_lt ( j , md_size ) ;\n }\n # if defined ( CBC_MAC_ROTATE_IN_PLACE ) j = 0 ;\n for ( i = 0 ;\n i < md_size ;\n i ++ ) {\n ( ( volatile unsigned char * ) rotated_mac ) [ rotate_offset ^ 32 ] ;\n out [ j ++ ] = rotated_mac [ rotate_offset ++ ] ;\n rotate_offset &= constant_time_lt ( rotate_offset , md_size ) ;\n }\n # else memset ( out , 0 , md_size ) ;\n rotate_offset = md_size - rotate_offset ;\n rotate_offset &= constant_time_lt ( rotate_offset , md_size ) ;\n for ( i = 0 ;\n i < md_size ;\n i ++ ) {\n for ( j = 0 ;\n j < md_size ;\n j ++ ) out [ j ] |= rotated_mac [ i ] & constant_time_eq_8 ( j , rotate_offset ) ;\n rotate_offset ++ ;\n rotate_offset &= constant_time_lt ( rotate_offset , md_size ) ;\n }\n # endif }"}
{"idx": 3435, "target": 0, "func": "static void _slurm_rpc_comp_msg_list ( composite_msg_t * comp_msg , bool * run_scheduler , List msg_list_in , struct timeval * start_tv , int timeout ) {\n ListIterator itr ;\n slurm_msg_t * next_msg ;\n composite_msg_t * ncomp_msg ;\n composite_msg_t * comp_resp_msg ;\n slurmctld_lock_t job_write_lock = {\n READ_LOCK , WRITE_LOCK , WRITE_LOCK , NO_LOCK , READ_LOCK }\n ;\n DEF_TIMERS ;\n START_TIMER ;\n itr = list_iterator_create ( comp_msg -> msg_list ) ;\n while ( ( next_msg = list_next ( itr ) ) ) {\n if ( slurm_delta_tv ( start_tv ) >= timeout ) {\n END_TIMER ;\n if ( slurmctld_conf . debug_flags & DEBUG_FLAG_ROUTE ) info ( \"composite message processing \" \"yielding locks after running for %s\" , TIME_STR ) ;\n unlock_slurmctld ( job_write_lock ) ;\n usleep ( 10 ) ;\n lock_slurmctld ( job_write_lock ) ;\n gettimeofday ( start_tv , NULL ) ;\n START_TIMER ;\n }\n FREE_NULL_LIST ( next_msg -> ret_list ) ;\n next_msg -> ret_list = msg_list_in ;\n switch ( next_msg -> msg_type ) {\n case MESSAGE_COMPOSITE : comp_resp_msg = xmalloc ( sizeof ( composite_msg_t ) ) ;\n comp_resp_msg -> msg_list = list_create ( _slurmctld_free_comp_msg_list ) ;\n ncomp_msg = ( composite_msg_t * ) next_msg -> data ;\n if ( slurmctld_conf . debug_flags & DEBUG_FLAG_ROUTE ) info ( \"Processing embedded MESSAGE_COMPOSITE \" \"msg with %d direct \" \"messages\" , ncomp_msg -> msg_list ? list_count ( ncomp_msg -> msg_list ) : 0 ) ;\n _slurm_rpc_comp_msg_list ( ncomp_msg , run_scheduler , comp_resp_msg -> msg_list , start_tv , timeout ) ;\n if ( list_count ( comp_resp_msg -> msg_list ) ) {\n slurm_msg_t * resp_msg = xmalloc_nz ( sizeof ( slurm_msg_t ) ) ;\n slurm_msg_t_init ( resp_msg ) ;\n resp_msg -> msg_index = next_msg -> msg_index ;\n resp_msg -> flags = next_msg -> flags ;\n resp_msg -> protocol_version = next_msg -> protocol_version ;\n resp_msg -> msg_type = RESPONSE_MESSAGE_COMPOSITE ;\n memcpy ( & comp_resp_msg -> sender , & ncomp_msg -> sender , sizeof ( slurm_addr_t ) ) ;\n resp_msg -> data = comp_resp_msg ;\n list_append ( msg_list_in , resp_msg ) ;\n }\n else slurm_free_composite_msg ( comp_resp_msg ) ;\n break ;\n case REQUEST_COMPLETE_BATCH_SCRIPT : case REQUEST_COMPLETE_BATCH_JOB : _slurm_rpc_complete_batch_script ( next_msg , run_scheduler , 1 ) ;\n break ;\n case REQUEST_STEP_COMPLETE : _slurm_rpc_step_complete ( next_msg , 1 ) ;\n break ;\n case MESSAGE_EPILOG_COMPLETE : _slurm_rpc_epilog_complete ( next_msg , run_scheduler , 1 ) ;\n break ;\n case MESSAGE_NODE_REGISTRATION_STATUS : _slurm_rpc_node_registration ( next_msg , 1 ) ;\n break ;\n default : error ( \"_slurm_rpc_comp_msg_list: invalid msg type\" ) ;\n break ;\n }\n next_msg -> ret_list = NULL ;\n }\n list_iterator_destroy ( itr ) ;\n END_TIMER ;\n }"}
{"idx": 3436, "target": 0, "func": "void ff_h263_update_motion_val ( MpegEncContext * s ) {\n const int mb_xy = s -> mb_y * s -> mb_stride + s -> mb_x ;\n const int wrap = s -> b8_stride ;\n const int xy = s -> block_index [ 0 ] ;\n s -> current_picture . mbskip_table [ mb_xy ] = s -> mb_skipped ;\n if ( s -> mv_type != MV_TYPE_8X8 ) {\n int motion_x , motion_y ;\n if ( s -> mb_intra ) {\n motion_x = 0 ;\n motion_y = 0 ;\n }\n else if ( s -> mv_type == MV_TYPE_16X16 ) {\n motion_x = s -> mv [ 0 ] [ 0 ] [ 0 ] ;\n motion_y = s -> mv [ 0 ] [ 0 ] [ 1 ] ;\n }\n else {\n int i ;\n motion_x = s -> mv [ 0 ] [ 0 ] [ 0 ] + s -> mv [ 0 ] [ 1 ] [ 0 ] ;\n motion_y = s -> mv [ 0 ] [ 0 ] [ 1 ] + s -> mv [ 0 ] [ 1 ] [ 1 ] ;\n motion_x = ( motion_x >> 1 ) | ( motion_x & 1 ) ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n s -> p_field_mv_table [ i ] [ 0 ] [ mb_xy ] [ 0 ] = s -> mv [ 0 ] [ i ] [ 0 ] ;\n s -> p_field_mv_table [ i ] [ 0 ] [ mb_xy ] [ 1 ] = s -> mv [ 0 ] [ i ] [ 1 ] ;\n }\n s -> current_picture . ref_index [ 0 ] [ 4 * mb_xy ] = s -> current_picture . ref_index [ 0 ] [ 4 * mb_xy + 1 ] = s -> field_select [ 0 ] [ 0 ] ;\n s -> current_picture . ref_index [ 0 ] [ 4 * mb_xy + 2 ] = s -> current_picture . ref_index [ 0 ] [ 4 * mb_xy + 3 ] = s -> field_select [ 0 ] [ 1 ] ;\n }\n s -> current_picture . motion_val [ 0 ] [ xy ] [ 0 ] = motion_x ;\n s -> current_picture . motion_val [ 0 ] [ xy ] [ 1 ] = motion_y ;\n s -> current_picture . motion_val [ 0 ] [ xy + 1 ] [ 0 ] = motion_x ;\n s -> current_picture . motion_val [ 0 ] [ xy + 1 ] [ 1 ] = motion_y ;\n s -> current_picture . motion_val [ 0 ] [ xy + wrap ] [ 0 ] = motion_x ;\n s -> current_picture . motion_val [ 0 ] [ xy + wrap ] [ 1 ] = motion_y ;\n s -> current_picture . motion_val [ 0 ] [ xy + 1 + wrap ] [ 0 ] = motion_x ;\n s -> current_picture . motion_val [ 0 ] [ xy + 1 + wrap ] [ 1 ] = motion_y ;\n }\n if ( s -> encoding ) {\n if ( s -> mv_type == MV_TYPE_8X8 ) s -> current_picture . mb_type [ mb_xy ] = MB_TYPE_L0 | MB_TYPE_8x8 ;\n else if ( s -> mb_intra ) s -> current_picture . mb_type [ mb_xy ] = MB_TYPE_INTRA ;\n else s -> current_picture . mb_type [ mb_xy ] = MB_TYPE_L0 | MB_TYPE_16x16 ;\n }\n }"}
{"idx": 3437, "target": 0, "func": "void vp9_idct8x8_12_add_c ( const tran_low_t * input , uint8_t * dest , int stride ) {\n tran_low_t out [ 8 * 8 ] = {\n 0 }\n ;\n tran_low_t * outptr = out ;\n int i , j ;\n tran_low_t temp_in [ 8 ] , temp_out [ 8 ] ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) {\n idct8 ( input , outptr ) ;\n input += 8 ;\n outptr += 8 ;\n }\n for ( i = 0 ;\n i < 8 ;\n ++ i ) {\n for ( j = 0 ;\n j < 8 ;\n ++ j ) temp_in [ j ] = out [ j * 8 + i ] ;\n idct8 ( temp_in , temp_out ) ;\n for ( j = 0 ;\n j < 8 ;\n ++ j ) dest [ j * stride + i ] = clip_pixel ( ROUND_POWER_OF_TWO ( temp_out [ j ] , 5 ) + dest [ j * stride + i ] ) ;\n }\n }"}
{"idx": 3438, "target": 1, "func": "static int zerocodec_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n ZeroCodecContext * zc = avctx -> priv_data ;\n AVFrame * pic = avctx -> coded_frame ;\n AVFrame * prev_pic = & zc -> previous_frame ;\n z_stream * zstream = & zc -> zstream ;\n uint8_t * prev = prev_pic -> data [ 0 ] ;\n uint8_t * dst ;\n int i , j , zret ;\n pic -> reference = 3 ;\n if ( avpkt -> flags & AV_PKT_FLAG_KEY ) {\n pic -> key_frame = 1 ;\n pic -> pict_type = AV_PICTURE_TYPE_I ;\n }\n else {\n if ( ! prev ) {\n av_log ( avctx , AV_LOG_ERROR , \"Missing reference frame.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n prev += ( avctx -> height - 1 ) * prev_pic -> linesize [ 0 ] ;\n pic -> key_frame = 0 ;\n pic -> pict_type = AV_PICTURE_TYPE_P ;\n }\n zret = inflateReset ( zstream ) ;\n if ( zret != Z_OK ) {\n av_log ( avctx , AV_LOG_ERROR , \"Could not reset inflate: %d.\\n\" , zret ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ff_get_buffer ( avctx , pic ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Could not allocate buffer.\\n\" ) ;\n return AVERROR ( ENOMEM ) ;\n }\n zstream -> next_in = avpkt -> data ;\n zstream -> avail_in = avpkt -> size ;\n dst = pic -> data [ 0 ] + ( avctx -> height - 1 ) * pic -> linesize [ 0 ] ;\n for ( i = 0 ;\n i < avctx -> height ;\n i ++ ) {\n zstream -> next_out = dst ;\n zstream -> avail_out = avctx -> width << 1 ;\n zret = inflate ( zstream , Z_SYNC_FLUSH ) ;\n if ( zret != Z_OK && zret != Z_STREAM_END ) {\n avctx -> release_buffer ( avctx , pic ) ;\n av_log ( avctx , AV_LOG_ERROR , \"Inflate failed with return code: %d.\\n\" , zret ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ! ( avpkt -> flags & AV_PKT_FLAG_KEY ) ) for ( j = 0 ;\n j < avctx -> width << 1 ;\n j ++ ) dst [ j ] += prev [ j ] & - ! dst [ j ] ;\n prev -= prev_pic -> linesize [ 0 ] ;\n dst -= pic -> linesize [ 0 ] ;\n }\n if ( prev_pic -> data [ 0 ] ) avctx -> release_buffer ( avctx , prev_pic ) ;\n * got_frame = 1 ;\n * ( AVFrame * ) data = * pic ;\n FFSWAP ( AVFrame , * pic , * prev_pic ) ;\n return avpkt -> size ;\n }"}
{"idx": 3439, "target": 0, "func": "vpx_codec_err_t vpx_codec_enc_config_set ( vpx_codec_ctx_t * ctx , const vpx_codec_enc_cfg_t * cfg ) {\n vpx_codec_err_t res ;\n if ( ! ctx || ! ctx -> iface || ! ctx -> priv || ! cfg ) res = VPX_CODEC_INVALID_PARAM ;\n else if ( ! ( ctx -> iface -> caps & VPX_CODEC_CAP_ENCODER ) ) res = VPX_CODEC_INCAPABLE ;\n else res = ctx -> iface -> enc . cfg_set ( get_alg_priv ( ctx ) , cfg ) ;\n return SAVE_STATUS ( ctx , res ) ;\n }"}
{"idx": 3440, "target": 0, "func": "static int selinux_bprm_secureexec ( struct linux_binprm * bprm ) {\n const struct task_security_struct * tsec = current_security ( ) ;\n u32 sid , osid ;\n int atsecure = 0 ;\n sid = tsec -> sid ;\n osid = tsec -> osid ;\n if ( osid != sid ) {\n atsecure = avc_has_perm ( osid , sid , SECCLASS_PROCESS , PROCESS__NOATSECURE , NULL ) ;\n }\n return ! ! atsecure ;\n }"}
{"idx": 3441, "target": 0, "func": "static int32_t u_printf_uchar_handler ( const u_printf_stream_handler * handler , void * context , ULocaleBundle * formatBundle , const u_printf_spec_info * info , const ufmt_args * args ) {\n ( void ) formatBundle ;\n int32_t written = 0 ;\n UChar arg = ( UChar ) ( args [ 0 ] . int64Value ) ;\n written = handler -> pad_and_justify ( context , info , & arg , 1 ) ;\n return written ;\n }"}
{"idx": 3442, "target": 0, "func": "static int SpoolssEnumJobs_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ;\n gint16 level = GPOINTER_TO_UINT ( dcv -> se_data ) ;\n BUFFER buffer ;\n guint32 num_jobs , i ;\n int buffer_offset ;\n offset = dissect_spoolss_buffer ( tvb , offset , pinfo , tree , di , drep , & buffer ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_needed , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_enumjobs_numjobs , & num_jobs ) ;\n buffer_offset = 0 ;\n for ( i = 0 ;\n i < num_jobs ;\n i ++ ) {\n switch ( level ) {\n case 1 : buffer_offset = dissect_spoolss_JOB_INFO_1 ( buffer . tvb , buffer_offset , pinfo , buffer . tree , di , drep ) ;\n break ;\n case 2 : buffer_offset = dissect_spoolss_JOB_INFO_2 ( buffer . tvb , buffer_offset , pinfo , buffer . tree , di , drep ) ;\n break ;\n default : proto_tree_add_expert_format ( buffer . tree , pinfo , & ei_job_info_level , buffer . tvb , 0 , - 1 , \"Unknown job info level %d\" , level ) ;\n break ;\n }\n }\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 3443, "target": 0, "func": "static uint32_t nvic_readl ( nvic_state * s , uint32_t offset ) {\n ARMCPU * cpu ;\n uint32_t val ;\n int irq ;\n switch ( offset ) {\n case 4 : return ( s -> num_irq / 32 ) - 1 ;\n case 0x10 : val = s -> systick . control ;\n s -> systick . control &= ~ SYSTICK_COUNTFLAG ;\n return val ;\n case 0x14 : return s -> systick . reload ;\n case 0x18 : {\n int64_t t ;\n if ( ( s -> systick . control & SYSTICK_ENABLE ) == 0 ) return 0 ;\n t = qemu_get_clock_ns ( vm_clock ) ;\n if ( t >= s -> systick . tick ) return 0 ;\n val = ( ( s -> systick . tick - ( t + 1 ) ) / systick_scale ( s ) ) + 1 ;\n if ( val > s -> systick . reload ) val = 0 ;\n return val ;\n }\n case 0x1c : return 10000 ;\n case 0xd00 : cpu = ARM_CPU ( current_cpu ) ;\n return cpu -> env . cp15 . c0_cpuid ;\n case 0xd04 : val = s -> gic . running_irq [ 0 ] ;\n if ( val == 1023 ) {\n val = 0 ;\n }\n else if ( val >= 32 ) {\n val -= 16 ;\n }\n if ( s -> gic . running_irq [ 0 ] == 1023 || s -> gic . last_active [ s -> gic . running_irq [ 0 ] ] [ 0 ] == 1023 ) {\n val |= ( 1 << 11 ) ;\n }\n if ( s -> gic . current_pending [ 0 ] != 1023 ) val |= ( s -> gic . current_pending [ 0 ] << 12 ) ;\n for ( irq = 32 ;\n irq < s -> num_irq ;\n irq ++ ) {\n if ( s -> gic . irq_state [ irq ] . pending ) {\n val |= ( 1 << 22 ) ;\n break ;\n }\n }\n if ( s -> gic . irq_state [ ARMV7M_EXCP_SYSTICK ] . pending ) val |= ( 1 << 26 ) ;\n if ( s -> gic . irq_state [ ARMV7M_EXCP_PENDSV ] . pending ) val |= ( 1 << 28 ) ;\n if ( s -> gic . irq_state [ ARMV7M_EXCP_NMI ] . pending ) val |= ( 1 << 31 ) ;\n return val ;\n case 0xd08 : cpu = ARM_CPU ( current_cpu ) ;\n return cpu -> env . v7m . vecbase ;\n case 0xd0c : return 0xfa05000 ;\n case 0xd10 : return 0 ;\n case 0xd14 : return 0 ;\n case 0xd24 : val = 0 ;\n if ( s -> gic . irq_state [ ARMV7M_EXCP_MEM ] . active ) val |= ( 1 << 0 ) ;\n if ( s -> gic . irq_state [ ARMV7M_EXCP_BUS ] . active ) val |= ( 1 << 1 ) ;\n if ( s -> gic . irq_state [ ARMV7M_EXCP_USAGE ] . active ) val |= ( 1 << 3 ) ;\n if ( s -> gic . irq_state [ ARMV7M_EXCP_SVC ] . active ) val |= ( 1 << 7 ) ;\n if ( s -> gic . irq_state [ ARMV7M_EXCP_DEBUG ] . active ) val |= ( 1 << 8 ) ;\n if ( s -> gic . irq_state [ ARMV7M_EXCP_PENDSV ] . active ) val |= ( 1 << 10 ) ;\n if ( s -> gic . irq_state [ ARMV7M_EXCP_SYSTICK ] . active ) val |= ( 1 << 11 ) ;\n if ( s -> gic . irq_state [ ARMV7M_EXCP_USAGE ] . pending ) val |= ( 1 << 12 ) ;\n if ( s -> gic . irq_state [ ARMV7M_EXCP_MEM ] . pending ) val |= ( 1 << 13 ) ;\n if ( s -> gic . irq_state [ ARMV7M_EXCP_BUS ] . pending ) val |= ( 1 << 14 ) ;\n if ( s -> gic . irq_state [ ARMV7M_EXCP_SVC ] . pending ) val |= ( 1 << 15 ) ;\n if ( s -> gic . irq_state [ ARMV7M_EXCP_MEM ] . enabled ) val |= ( 1 << 16 ) ;\n if ( s -> gic . irq_state [ ARMV7M_EXCP_BUS ] . enabled ) val |= ( 1 << 17 ) ;\n if ( s -> gic . irq_state [ ARMV7M_EXCP_USAGE ] . enabled ) val |= ( 1 << 18 ) ;\n return val ;\n case 0xd28 : qemu_log_mask ( LOG_UNIMP , \"Configurable Fault Status unimplemented\\n\" ) ;\n return 0 ;\n case 0xd2c : case 0xd30 : case 0xd34 : case 0xd38 : case 0xd3c : qemu_log_mask ( LOG_UNIMP , \"Fault status registers unimplemented\\n\" ) ;\n return 0 ;\n case 0xd40 : return 0x00000030 ;\n case 0xd44 : return 0x00000200 ;\n case 0xd48 : return 0x00100000 ;\n case 0xd4c : return 0x00000000 ;\n case 0xd50 : return 0x00000030 ;\n case 0xd54 : return 0x00000000 ;\n case 0xd58 : return 0x00000000 ;\n case 0xd5c : return 0x00000000 ;\n case 0xd60 : return 0x01141110 ;\n case 0xd64 : return 0x02111000 ;\n case 0xd68 : return 0x21112231 ;\n case 0xd6c : return 0x01111110 ;\n case 0xd70 : return 0x01310102 ;\n default : qemu_log_mask ( LOG_GUEST_ERROR , \"NVIC: Bad read offset 0x%x\\n\" , offset ) ;\n return 0 ;\n }\n }"}
{"idx": 3444, "target": 0, "func": "static gcry_mpi_t hex2mpi ( const char * string ) {\n gpg_error_t err ;\n gcry_mpi_t val ;\n err = gcry_mpi_scan ( & val , GCRYMPI_FMT_HEX , string , 0 , NULL ) ;\n if ( err ) die ( \"hex2mpi '%s' failed: %s\\n\" , gpg_strerror ( err ) ) ;\n return val ;\n }"}
{"idx": 3445, "target": 0, "func": "static struct isoent * isoent_find_entry ( struct isoent * rootent , const char * fn ) {\n # if defined ( _WIN32 ) && ! defined ( __CYGWIN__ ) char name [ _MAX_FNAME ] ;\n # elif defined ( NAME_MAX ) && NAME_MAX >= 255 char name [ NAME_MAX + 1 ] ;\n # else char name [ 256 ] ;\n # endif struct isoent * isoent , * np ;\n int l ;\n isoent = rootent ;\n np = NULL ;\n for ( ;\n ;\n ) {\n l = get_path_component ( name , sizeof ( name ) , fn ) ;\n if ( l == 0 ) break ;\n fn += l ;\n if ( fn [ 0 ] == '/' ) fn ++ ;\n np = isoent_find_child ( isoent , name ) ;\n if ( np == NULL ) break ;\n if ( fn [ 0 ] == '\\0' ) break ;\n isoent = np ;\n np = NULL ;\n if ( ! isoent -> dir ) break ;\n }\n return ( np ) ;\n }"}
{"idx": 3446, "target": 0, "func": "int qemuMonitorJSONMigrate ( qemuMonitorPtr mon , unsigned int flags , const char * uri ) {\n int ret ;\n virJSONValuePtr cmd = qemuMonitorJSONMakeCommand ( \"migrate\" , \"b:detach\" , flags & QEMU_MONITOR_MIGRATE_BACKGROUND ? 1 : 0 , \"b:blk\" , flags & QEMU_MONITOR_MIGRATE_NON_SHARED_DISK ? 1 : 0 , \"b:inc\" , flags & QEMU_MONITOR_MIGRATE_NON_SHARED_INC ? 1 : 0 , \"s:uri\" , uri , NULL ) ;\n virJSONValuePtr reply = NULL ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 3447, "target": 0, "func": "static int yop_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n YopDecContext * s = avctx -> priv_data ;\n AVFrame * frame = data ;\n int tag , firstcolor , is_odd_frame ;\n int ret , i , x , y ;\n uint32_t * palette ;\n if ( avpkt -> size < 4 + 3 * s -> num_pal_colors ) {\n av_log ( avctx , AV_LOG_ERROR , \"Packet too small.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n ret = ff_get_buffer ( avctx , frame , 0 ) ;\n if ( ret < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( ! avctx -> frame_number ) memset ( frame -> data [ 1 ] , 0 , AVPALETTE_SIZE ) ;\n s -> dstbuf = frame -> data [ 0 ] ;\n s -> dstptr = frame -> data [ 0 ] ;\n s -> srcptr = avpkt -> data + 4 ;\n s -> src_end = avpkt -> data + avpkt -> size ;\n s -> low_nibble = NULL ;\n is_odd_frame = avpkt -> data [ 0 ] ;\n firstcolor = s -> first_color [ is_odd_frame ] ;\n palette = ( uint32_t * ) frame -> data [ 1 ] ;\n for ( i = 0 ;\n i < s -> num_pal_colors ;\n i ++ , s -> srcptr += 3 ) palette [ i + firstcolor ] = ( s -> srcptr [ 0 ] << 18 ) | ( s -> srcptr [ 1 ] << 10 ) | ( s -> srcptr [ 2 ] << 2 ) ;\n frame -> palette_has_changed = 1 ;\n for ( y = 0 ;\n y < avctx -> height ;\n y += 2 ) {\n for ( x = 0 ;\n x < avctx -> width ;\n x += 2 ) {\n if ( s -> srcptr - avpkt -> data >= avpkt -> size ) {\n av_log ( avctx , AV_LOG_ERROR , \"Packet too small.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n tag = yop_get_next_nibble ( s ) ;\n if ( tag != 0xf ) {\n ret = yop_paint_block ( s , frame -> linesize [ 0 ] , tag ) ;\n if ( ret < 0 ) return ret ;\n }\n else {\n tag = yop_get_next_nibble ( s ) ;\n ret = yop_copy_previous_block ( s , frame -> linesize [ 0 ] , tag ) ;\n if ( ret < 0 ) return ret ;\n }\n s -> dstptr += 2 ;\n }\n s -> dstptr += 2 * frame -> linesize [ 0 ] - x ;\n }\n * got_frame = 1 ;\n return avpkt -> size ;\n }"}
{"idx": 3448, "target": 0, "func": "static void cirrus_update_bank_ptr ( CirrusVGAState * s , unsigned bank_index ) {\n unsigned offset ;\n unsigned limit ;\n if ( ( s -> vga . gr [ 0x0b ] & 0x01 ) != 0 ) offset = s -> vga . gr [ 0x09 + bank_index ] ;\n else offset = s -> vga . gr [ 0x09 ] ;\n if ( ( s -> vga . gr [ 0x0b ] & 0x20 ) != 0 ) offset <<= 14 ;\n else offset <<= 12 ;\n if ( s -> real_vram_size <= offset ) limit = 0 ;\n else limit = s -> real_vram_size - offset ;\n if ( ( ( s -> vga . gr [ 0x0b ] & 0x01 ) == 0 ) && ( bank_index != 0 ) ) {\n if ( limit > 0x8000 ) {\n offset += 0x8000 ;\n limit -= 0x8000 ;\n }\n else {\n limit = 0 ;\n }\n }\n if ( limit > 0 ) {\n s -> cirrus_bank_base [ bank_index ] = offset ;\n s -> cirrus_bank_limit [ bank_index ] = limit ;\n }\n else {\n s -> cirrus_bank_base [ bank_index ] = 0 ;\n s -> cirrus_bank_limit [ bank_index ] = 0 ;\n }\n }"}
{"idx": 3449, "target": 0, "func": "static void decode_haar_block ( RangeCoder * c , HaarBlockCoder * hc , uint8_t * dst , int stride , int block_size , int * block ) {\n const int hsize = block_size >> 1 ;\n int A , B , C , D , t1 , t2 , t3 , t4 ;\n int i , j ;\n for ( j = 0 ;\n j < block_size ;\n j ++ ) {\n for ( i = 0 ;\n i < block_size ;\n i ++ ) {\n if ( i < hsize && j < hsize ) block [ i ] = rac_get_model256_sym ( c , & hc -> coef_model ) ;\n else block [ i ] = decode_coeff ( c , & hc -> coef_hi_model ) ;\n block [ i ] *= hc -> scale ;\n }\n block += block_size ;\n }\n block -= block_size * block_size ;\n for ( j = 0 ;\n j < hsize ;\n j ++ ) {\n for ( i = 0 ;\n i < hsize ;\n i ++ ) {\n A = block [ i ] ;\n B = block [ i + hsize ] ;\n C = block [ i + hsize * block_size ] ;\n D = block [ i + hsize * block_size + hsize ] ;\n t1 = A - B ;\n t2 = C - D ;\n t3 = A + B ;\n t4 = C + D ;\n dst [ i * 2 ] = av_clip_uint8 ( t1 - t2 ) ;\n dst [ i * 2 + stride ] = av_clip_uint8 ( t1 + t2 ) ;\n dst [ i * 2 + 1 ] = av_clip_uint8 ( t3 - t4 ) ;\n dst [ i * 2 + 1 + stride ] = av_clip_uint8 ( t3 + t4 ) ;\n }\n block += block_size ;\n dst += stride * 2 ;\n }\n }"}
{"idx": 3450, "target": 0, "func": "static int SpoolssFCPN_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , NULL , NULL , FALSE , FALSE ) ;\n return offset ;\n }"}
{"idx": 3451, "target": 0, "func": "static void fill_slice_long ( AVCodecContext * avctx , DXVA_Slice_H264_Long * slice , unsigned position , unsigned size ) {\n const H264Context * h = avctx -> priv_data ;\n struct dxva_context * ctx = avctx -> hwaccel_context ;\n unsigned list ;\n memset ( slice , 0 , sizeof ( * slice ) ) ;\n slice -> BSNALunitDataLocation = position ;\n slice -> SliceBytesInBuffer = size ;\n slice -> wBadSliceChopping = 0 ;\n slice -> first_mb_in_slice = ( h -> mb_y >> FIELD_OR_MBAFF_PICTURE ) * h -> mb_width + h -> mb_x ;\n slice -> NumMbsForSlice = 0 ;\n slice -> BitOffsetToSliceData = get_bits_count ( & h -> gb ) ;\n slice -> slice_type = ff_h264_get_slice_type ( h ) ;\n if ( h -> slice_type_fixed ) slice -> slice_type += 5 ;\n slice -> luma_log2_weight_denom = h -> luma_log2_weight_denom ;\n slice -> chroma_log2_weight_denom = h -> chroma_log2_weight_denom ;\n if ( h -> list_count > 0 ) slice -> num_ref_idx_l0_active_minus1 = h -> ref_count [ 0 ] - 1 ;\n if ( h -> list_count > 1 ) slice -> num_ref_idx_l1_active_minus1 = h -> ref_count [ 1 ] - 1 ;\n slice -> slice_alpha_c0_offset_div2 = h -> slice_alpha_c0_offset / 2 - 26 ;\n slice -> slice_beta_offset_div2 = h -> slice_beta_offset / 2 - 26 ;\n slice -> Reserved8Bits = 0 ;\n for ( list = 0 ;\n list < 2 ;\n list ++ ) {\n unsigned i ;\n for ( i = 0 ;\n i < FF_ARRAY_ELEMS ( slice -> RefPicList [ list ] ) ;\n i ++ ) {\n if ( list < h -> list_count && i < h -> ref_count [ list ] ) {\n const Picture * r = & h -> ref_list [ list ] [ i ] ;\n unsigned plane ;\n fill_picture_entry ( & slice -> RefPicList [ list ] [ i ] , ff_dxva2_get_surface_index ( ctx , r ) , r -> reference == PICT_BOTTOM_FIELD ) ;\n for ( plane = 0 ;\n plane < 3 ;\n plane ++ ) {\n int w , o ;\n if ( plane == 0 && h -> luma_weight_flag [ list ] ) {\n w = h -> luma_weight [ i ] [ list ] [ 0 ] ;\n o = h -> luma_weight [ i ] [ list ] [ 1 ] ;\n }\n else if ( plane >= 1 && h -> chroma_weight_flag [ list ] ) {\n w = h -> chroma_weight [ i ] [ list ] [ plane - 1 ] [ 0 ] ;\n o = h -> chroma_weight [ i ] [ list ] [ plane - 1 ] [ 1 ] ;\n }\n else {\n w = 1 << ( plane == 0 ? h -> luma_log2_weight_denom : h -> chroma_log2_weight_denom ) ;\n o = 0 ;\n }\n slice -> Weights [ list ] [ i ] [ plane ] [ 0 ] = w ;\n slice -> Weights [ list ] [ i ] [ plane ] [ 1 ] = o ;\n }\n }\n else {\n unsigned plane ;\n slice -> RefPicList [ list ] [ i ] . bPicEntry = 0xff ;\n for ( plane = 0 ;\n plane < 3 ;\n plane ++ ) {\n slice -> Weights [ list ] [ i ] [ plane ] [ 0 ] = 0 ;\n slice -> Weights [ list ] [ i ] [ plane ] [ 1 ] = 0 ;\n }\n }\n }\n }\n slice -> slice_qs_delta = 0 ;\n slice -> slice_qp_delta = h -> qscale - h -> pps . init_qp ;\n slice -> redundant_pic_cnt = h -> redundant_pic_count ;\n if ( h -> slice_type == AV_PICTURE_TYPE_B ) slice -> direct_spatial_mv_pred_flag = h -> direct_spatial_mv_pred ;\n slice -> cabac_init_idc = h -> pps . cabac ? h -> cabac_init_idc : 0 ;\n if ( h -> deblocking_filter < 2 ) slice -> disable_deblocking_filter_idc = 1 - h -> deblocking_filter ;\n else slice -> disable_deblocking_filter_idc = h -> deblocking_filter ;\n slice -> slice_id = h -> current_slice - 1 ;\n }"}
{"idx": 3452, "target": 0, "func": "static const char * hfinfo_number_value_format_display ( const header_field_info * hfinfo , int display , char buf [ 32 ] , guint32 value ) {\n char * ptr = & buf [ 31 ] ;\n gboolean isint = IS_FT_INT ( hfinfo -> type ) ;\n * ptr = '\\0' ;\n switch ( display & FIELD_DISPLAY_E_MASK ) {\n case BASE_DEC : return isint ? int_to_str_back ( ptr , ( gint32 ) value ) : uint_to_str_back ( ptr , value ) ;\n case BASE_DEC_HEX : * ( -- ptr ) = ')' ;\n ptr = hex_to_str_back ( ptr , hfinfo_hex_digits ( hfinfo ) , value ) ;\n * ( -- ptr ) = '(' ;\n * ( -- ptr ) = ' ' ;\n ptr = isint ? int_to_str_back ( ptr , ( gint32 ) value ) : uint_to_str_back ( ptr , value ) ;\n return ptr ;\n case BASE_OCT : return oct_to_str_back ( ptr , value ) ;\n case BASE_HEX : return hex_to_str_back ( ptr , hfinfo_hex_digits ( hfinfo ) , value ) ;\n case BASE_HEX_DEC : * ( -- ptr ) = ')' ;\n ptr = isint ? int_to_str_back ( ptr , ( gint32 ) value ) : uint_to_str_back ( ptr , value ) ;\n * ( -- ptr ) = '(' ;\n * ( -- ptr ) = ' ' ;\n ptr = hex_to_str_back ( ptr , hfinfo_hex_digits ( hfinfo ) , value ) ;\n return ptr ;\n case BASE_PT_UDP : case BASE_PT_TCP : case BASE_PT_DCCP : case BASE_PT_SCTP : port_with_resolution_to_str_buf ( buf , 32 , display_to_port_type ( ( field_display_e ) display ) , value ) ;\n return buf ;\n default : g_assert_not_reached ( ) ;\n }\n return ptr ;\n }"}
{"idx": 3453, "target": 0, "func": "void kadmin_setstring ( int argc , char * argv [ ] ) {\n kadm5_ret_t retval ;\n char * pname , * canon = NULL , * key , * value ;\n krb5_principal princ = NULL ;\n if ( argc != 4 ) {\n fprintf ( stderr , _ ( \"usage: set_string principal key value\\n\" ) ) ;\n return ;\n }\n pname = argv [ 1 ] ;\n key = argv [ 2 ] ;\n value = argv [ 3 ] ;\n retval = kadmin_parse_name ( pname , & princ ) ;\n if ( retval ) {\n com_err ( \"set_string\" , retval , _ ( \"while parsing principal\" ) ) ;\n return ;\n }\n retval = krb5_unparse_name ( context , princ , & canon ) ;\n if ( retval ) {\n com_err ( \"set_string\" , retval , _ ( \"while canonicalizing principal\" ) ) ;\n goto cleanup ;\n }\n retval = kadm5_set_string ( handle , princ , key , value ) ;\n if ( retval ) {\n com_err ( \"set_string\" , retval , _ ( \"while setting attribute on principal \\\"%s\\\"\" ) , canon ) ;\n goto cleanup ;\n }\n printf ( _ ( \"Attribute set for principal \\\"%s\\\".\\n\" ) , canon ) ;\n cleanup : krb5_free_principal ( context , princ ) ;\n free ( canon ) ;\n return ;\n }"}
{"idx": 3454, "target": 0, "func": "static void curses_connection_kill_wrapper ( void ) {\n struct conn_tail c ;\n DEBUG_MSG ( \"curses_connection_kill_wrapper\" ) ;\n c . co = curr_conn ;\n curses_connection_kill ( & c ) ;\n }"}
{"idx": 3455, "target": 0, "func": "static MIMEFieldSDKHandle * sdk_alloc_field_handle ( TSMBuffer , MIMEHdrImpl * mh ) {\n MIMEFieldSDKHandle * handle = mHandleAllocator . alloc ( ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) handle ) == TS_SUCCESS ) ;\n obj_init_header ( handle , HDR_HEAP_OBJ_FIELD_SDK_HANDLE , sizeof ( MIMEFieldSDKHandle ) , 0 ) ;\n handle -> mh = mh ;\n return handle ;\n }"}
{"idx": 3456, "target": 0, "func": "MIMEField * mime_field_create ( HdrHeap * heap , MIMEHdrImpl * mh ) {\n MIMEField * field ;\n MIMEFieldBlockImpl * tail_fblock , * new_fblock ;\n tail_fblock = mh -> m_fblock_list_tail ;\n if ( tail_fblock -> m_freetop >= MIME_FIELD_BLOCK_SLOTS ) {\n new_fblock = ( MIMEFieldBlockImpl * ) heap -> allocate_obj ( sizeof ( MIMEFieldBlockImpl ) , HDR_HEAP_OBJ_FIELD_BLOCK ) ;\n _mime_hdr_field_block_init ( new_fblock ) ;\n tail_fblock -> m_next = new_fblock ;\n tail_fblock = new_fblock ;\n mh -> m_fblock_list_tail = new_fblock ;\n }\n field = & ( tail_fblock -> m_field_slots [ tail_fblock -> m_freetop ] ) ;\n ++ tail_fblock -> m_freetop ;\n mime_field_init ( field ) ;\n return field ;\n }"}
{"idx": 3457, "target": 0, "func": "static void icc_base_conv_pixmap ( fz_context * ctx , fz_pixmap * dst , fz_pixmap * src , fz_colorspace * prf , const fz_default_colorspaces * default_cs , const fz_color_params * color_params , int copy_spots ) {\n fz_colorspace * srcs = src -> colorspace ;\n fz_colorspace * base_cs = get_base_icc_space ( ctx , srcs ) ;\n int i , j ;\n unsigned char * inputpos , * outputpos ;\n fz_pixmap * base ;\n fz_irect bbox ;\n int h , len ;\n float src_f [ FZ_MAX_COLORS ] , des_f [ FZ_MAX_COLORS ] ;\n int sn = src -> n ;\n int sc = sn - src -> alpha - src -> s ;\n int stride_src = src -> stride - src -> w * sn ;\n int stride_base ;\n int bn , bc ;\n base = fz_new_pixmap_with_bbox ( ctx , base_cs , fz_pixmap_bbox ( ctx , src , & bbox ) , src -> seps , src -> alpha ) ;\n bn = base -> n ;\n bc = base -> n - base -> alpha - base -> s ;\n stride_base = base -> stride - base -> w * bn ;\n inputpos = src -> samples ;\n outputpos = base -> samples ;\n h = src -> h ;\n while ( h -- ) {\n len = src -> w ;\n while ( len -- ) {\n for ( i = 0 ;\n i < sc ;\n i ++ ) src_f [ i ] = ( float ) inputpos [ i ] / 255.0f ;\n convert_to_icc_base ( ctx , srcs , src_f , des_f ) ;\n base_cs -> clamp ( base_cs , des_f , des_f ) ;\n for ( j = 0 ;\n j < bc ;\n j ++ ) outputpos [ j ] = des_f [ j ] * 255.0f ;\n for ( ;\n i < sn ;\n i ++ , j ++ ) outputpos [ j ] = inputpos [ i ] ;\n outputpos += bn ;\n inputpos += sn ;\n }\n outputpos += stride_base ;\n inputpos += stride_src ;\n }\n fz_try ( ctx ) icc_conv_pixmap ( ctx , dst , base , prf , default_cs , color_params , copy_spots ) ;\n fz_always ( ctx ) fz_drop_pixmap ( ctx , base ) ;\n fz_catch ( ctx ) fz_rethrow ( ctx ) ;\n }"}
{"idx": 3458, "target": 0, "func": "static int make_rfs ( i_ctx_t * i_ctx_p , os_ptr op , stream * fs , long offset , long length ) {\n uint save_space = icurrent_space ;\n uint stream_space = imemory_space ( ( const gs_ref_memory_t * ) fs -> memory ) ;\n gs_const_string fname ;\n gs_parsed_file_name_t pname ;\n stream * s ;\n int code ;\n if ( sfilename ( fs , & fname ) < 0 ) return_error ( gs_error_ioerror ) ;\n code = gs_parse_file_name ( & pname , ( const char * ) fname . data , fname . size , imemory ) ;\n if ( code < 0 ) return code ;\n if ( pname . len == 0 ) return_error ( gs_error_invalidfileaccess ) ;\n if ( pname . iodev == NULL ) pname . iodev = iodev_default ( imemory ) ;\n ialloc_set_space ( idmemory , stream_space ) ;\n code = zopen_file ( i_ctx_p , & pname , \"r\" , & s , imemory ) ;\n ialloc_set_space ( idmemory , save_space ) ;\n if ( code < 0 ) return code ;\n if ( sread_subfile ( s , offset , length ) < 0 ) {\n sclose ( s ) ;\n return_error ( gs_error_ioerror ) ;\n }\n s -> close_at_eod = false ;\n make_stream_file ( op , s , \"r\" ) ;\n return 0 ;\n }"}
{"idx": 3459, "target": 1, "func": "void vp8_de_noise ( VP8_COMMON * cm , YV12_BUFFER_CONFIG * source , YV12_BUFFER_CONFIG * post , int q , int low_var_thresh , int flag ) {\n int mbr ;\n double level = 6.0e-05 * q * q * q - .0067 * q * q + .306 * q + .0065 ;\n int ppl = ( int ) ( level + .5 ) ;\n int mb_rows = cm -> mb_rows ;\n int mb_cols = cm -> mb_cols ;\n unsigned char * limits = cm -> pp_limits_buffer ;\n ;\n ( void ) post ;\n ( void ) low_var_thresh ;\n ( void ) flag ;\n vpx_memset ( limits , ( unsigned char ) ppl , 16 * mb_cols ) ;\n for ( mbr = 0 ;\n mbr < mb_rows ;\n mbr ++ ) {\n vp8_post_proc_down_and_across_mb_row ( source -> y_buffer + 16 * mbr * source -> y_stride , source -> y_buffer + 16 * mbr * source -> y_stride , source -> y_stride , source -> y_stride , source -> y_width , limits , 16 ) ;\n vp8_post_proc_down_and_across_mb_row ( source -> u_buffer + 8 * mbr * source -> uv_stride , source -> u_buffer + 8 * mbr * source -> uv_stride , source -> uv_stride , source -> uv_stride , source -> uv_width , limits , 8 ) ;\n vp8_post_proc_down_and_across_mb_row ( source -> v_buffer + 8 * mbr * source -> uv_stride , source -> v_buffer + 8 * mbr * source -> uv_stride , source -> uv_stride , source -> uv_stride , source -> uv_width , limits , 8 ) ;\n }\n }"}
{"idx": 3460, "target": 1, "func": "static void steamdiscover_dissect_body_authrequest ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , gint offset , gint bytes_left ) {\n guint len ;\n gint64 value ;\n protobuf_desc_t pb = {\n tvb , offset , bytes_left }\n ;\n protobuf_tag_t tag = {\n 0 , 0 , 0 }\n ;\n wmem_allocator_t * strpool ;\n strpool = wmem_allocator_new ( WMEM_ALLOCATOR_SIMPLE ) ;\n guint8 * devicename ;\n while ( protobuf_iter_next ( & pb , & tag ) ) {\n switch ( tag . field_number ) {\n case STEAMDISCOVER_FN_AUTHREQUEST_DEVICETOKEN : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_LENGTHDELIMITED ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_item ( tree , hf_steam_ihs_discovery_body_authrequest_devicetoken , pb . tvb , pb . offset + len , ( gint ) value , ENC_NA ) ;\n len += ( gint ) value ;\n break ;\n case STEAMDISCOVER_FN_AUTHREQUEST_DEVICENAME : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_LENGTHDELIMITED ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_item ( tree , hf_steam_ihs_discovery_body_authrequest_devicename , pb . tvb , pb . offset + len , ( gint ) value , ENC_UTF_8 | ENC_NA ) ;\n devicename = tvb_get_string_enc ( strpool , pb . tvb , pb . offset + len , ( gint ) value , ENC_UTF_8 ) ;\n if ( devicename && strlen ( devicename ) ) {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" from %s\" , devicename ) ;\n }\n len += ( gint ) value ;\n break ;\n case STEAMDISCOVER_FN_AUTHREQUEST_ENCRYPTEDREQUEST : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_LENGTHDELIMITED ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_item ( tree , hf_steam_ihs_discovery_body_authrequest_encryptedrequest , pb . tvb , pb . offset + len , ( gint ) value , ENC_NA ) ;\n len += ( gint ) value ;\n break ;\n default : len = protobuf_dissect_unknown_field ( & pb , & tag , pinfo , tree , NULL ) ;\n break ;\n }\n protobuf_seek_forward ( & pb , len ) ;\n }\n wmem_destroy_allocator ( strpool ) ;\n }"}
{"idx": 3461, "target": 0, "func": "static int avi_read_tag ( AVFormatContext * s , AVStream * st , uint32_t tag , uint32_t size ) {\n AVIOContext * pb = s -> pb ;\n char key [ 5 ] = {\n 0 }\n ;\n char * value ;\n size += ( size & 1 ) ;\n if ( size == UINT_MAX ) return AVERROR ( EINVAL ) ;\n value = av_malloc ( size + 1 ) ;\n if ( ! value ) return AVERROR ( ENOMEM ) ;\n if ( avio_read ( pb , value , size ) != size ) return AVERROR_INVALIDDATA ;\n value [ size ] = 0 ;\n AV_WL32 ( key , tag ) ;\n return av_dict_set ( st ? & st -> metadata : & s -> metadata , key , value , AV_DICT_DONT_STRDUP_VAL ) ;\n }"}
{"idx": 3462, "target": 0, "func": "fz_colorspace * fz_new_cal_colorspace ( fz_context * ctx , const char * name , float * wp , float * bp , float * gamma , float * matrix ) {\n fz_colorspace * cs = NULL ;\n enum fz_colorspace_type type ;\n int num ;\n fz_cal_colorspace * cal_data ;\n if ( matrix ) {\n type = FZ_COLORSPACE_RGB ;\n num = 3 ;\n }\n else {\n type = FZ_COLORSPACE_GRAY ;\n num = 1 ;\n }\n cal_data = fz_malloc_struct ( ctx , fz_cal_colorspace ) ;\n memcpy ( & cal_data -> bp , bp , sizeof ( float ) * 3 ) ;\n memcpy ( & cal_data -> wp , wp , sizeof ( float ) * 3 ) ;\n memcpy ( & cal_data -> gamma , gamma , sizeof ( float ) * num ) ;\n if ( matrix != NULL ) memcpy ( & cal_data -> matrix , matrix , sizeof ( float ) * 9 ) ;\n cal_data -> n = num ;\n fz_try ( ctx ) cs = fz_new_colorspace ( ctx , name , type , FZ_COLORSPACE_IS_CAL , num , NULL , NULL , NULL , NULL , free_cal , cal_data , sizeof ( cal_data ) ) ;\n fz_catch ( ctx ) {\n fz_free ( ctx , cal_data ) ;\n fz_rethrow ( ctx ) ;\n }\n return cs ;\n }"}
{"idx": 3463, "target": 0, "func": "struct evhttp_connection * evhttp_request_get_connection ( struct evhttp_request * req ) {\n return req -> evcon ;\n }"}
{"idx": 3464, "target": 0, "func": "int TSHttpCurrentIdleClientConnectionsGet ( void ) {\n int64_t total = 0 ;\n int64_t active = 0 ;\n HTTP_READ_DYN_SUM ( http_current_client_connections_stat , total ) ;\n HTTP_READ_DYN_SUM ( http_current_active_client_connections_stat , active ) ;\n if ( total >= active ) {\n return ( int ) ( total - active ) ;\n }\n return 0 ;\n }"}
{"idx": 3465, "target": 0, "func": "static cmsFloat64Number ParseFloatNumber ( const char * Buffer ) {\n cmsFloat64Number dnum = 0.0 ;\n int sign = 1 ;\n if ( Buffer == NULL ) return 0.0 ;\n if ( * Buffer == '-' || * Buffer == '+' ) {\n sign = ( * Buffer == '-' ) ? - 1 : 1 ;\n Buffer ++ ;\n }\n while ( * Buffer && isdigit ( ( int ) * Buffer ) ) {\n dnum = dnum * 10.0 + ( * Buffer - '0' ) ;\n if ( * Buffer ) Buffer ++ ;\n }\n if ( * Buffer == '.' ) {\n cmsFloat64Number frac = 0.0 ;\n int prec = 0 ;\n if ( * Buffer ) Buffer ++ ;\n while ( * Buffer && isdigit ( ( int ) * Buffer ) ) {\n frac = frac * 10.0 + ( * Buffer - '0' ) ;\n prec ++ ;\n if ( * Buffer ) Buffer ++ ;\n }\n dnum = dnum + ( frac / xpow10 ( prec ) ) ;\n }\n if ( * Buffer && toupper ( * Buffer ) == 'E' ) {\n int e ;\n int sgn ;\n if ( * Buffer ) Buffer ++ ;\n sgn = 1 ;\n if ( * Buffer == '-' ) {\n sgn = - 1 ;\n if ( * Buffer ) Buffer ++ ;\n }\n else if ( * Buffer == '+' ) {\n sgn = + 1 ;\n if ( * Buffer ) Buffer ++ ;\n }\n e = 0 ;\n while ( * Buffer && isdigit ( ( int ) * Buffer ) ) {\n cmsInt32Number digit = ( * Buffer - '0' ) ;\n if ( ( cmsFloat64Number ) e * 10.0 + digit < ( cmsFloat64Number ) + 2147483647.0 ) e = e * 10 + digit ;\n if ( * Buffer ) Buffer ++ ;\n }\n e = sgn * e ;\n dnum = dnum * xpow10 ( e ) ;\n }\n return sign * dnum ;\n }"}
{"idx": 3466, "target": 0, "func": "static guint16 de_aux_states ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n curr_offset = offset ;\n proto_tree_add_item ( tree , hf_gsm_a_extension , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( curr_offset << 3 ) + 1 , 3 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_hold_auxiliary_state , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_multi_party_auxiliary_state , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n EXTRANEOUS_DATA_CHECK ( len , curr_offset - offset , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 3467, "target": 0, "func": "static int hextoint ( int c ) {\n if ( ! isascii ( ( int ) c ) ) return ( - 1 ) ;\n if ( isdigit ( ( int ) c ) ) return ( c - '0' ) ;\n if ( ( c >= 'a' ) && ( c <= 'f' ) ) return ( c + 10 - 'a' ) ;\n if ( ( c >= 'A' ) && ( c <= 'F' ) ) return ( c + 10 - 'A' ) ;\n return ( - 1 ) ;\n }"}
{"idx": 3468, "target": 1, "func": "static VALUE ossl_cipher_init ( int argc , VALUE * argv , VALUE self , int mode ) {\n EVP_CIPHER_CTX * ctx ;\n unsigned char key [ EVP_MAX_KEY_LENGTH ] , * p_key = NULL ;\n unsigned char iv [ EVP_MAX_IV_LENGTH ] , * p_iv = NULL ;\n VALUE pass , init_v ;\n if ( rb_scan_args ( argc , argv , \"02\" , & pass , & init_v ) > 0 ) {\n VALUE cname = rb_class_path ( rb_obj_class ( self ) ) ;\n rb_warn ( \"arguments for %\" PRIsVALUE \"#encrypt and %\" PRIsVALUE \"#decrypt were deprecated;\n \" \"use %\" PRIsVALUE \"#pkcs5_keyivgen to derive key and IV\" , cname , cname , cname ) ;\n StringValue ( pass ) ;\n GetCipher ( self , ctx ) ;\n if ( NIL_P ( init_v ) ) memcpy ( iv , \"OpenSSL for Ruby rulez!\" , sizeof ( iv ) ) ;\n else {\n StringValue ( init_v ) ;\n if ( EVP_MAX_IV_LENGTH > RSTRING_LEN ( init_v ) ) {\n memset ( iv , 0 , EVP_MAX_IV_LENGTH ) ;\n memcpy ( iv , RSTRING_PTR ( init_v ) , RSTRING_LEN ( init_v ) ) ;\n }\n else memcpy ( iv , RSTRING_PTR ( init_v ) , sizeof ( iv ) ) ;\n }\n EVP_BytesToKey ( EVP_CIPHER_CTX_cipher ( ctx ) , EVP_md5 ( ) , iv , ( unsigned char * ) RSTRING_PTR ( pass ) , RSTRING_LENINT ( pass ) , 1 , key , NULL ) ;\n p_key = key ;\n p_iv = iv ;\n }\n else {\n GetCipher ( self , ctx ) ;\n }\n if ( EVP_CipherInit_ex ( ctx , NULL , NULL , p_key , p_iv , mode ) != 1 ) {\n ossl_raise ( eCipherError , NULL ) ;\n }\n return self ;\n }"}
{"idx": 3469, "target": 0, "func": "static int dissect_h245_IndicationMessage ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 434 \"../../asn1/h245/h245.cnf\" gint32 value ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_IndicationMessage , IndicationMessage_choice , & value ) ;\n if ( h245_shorttypes == TRUE ) {\n col_prepend_fstr ( actx -> pinfo -> cinfo , COL_INFO , \"%s \" , val_to_str ( value , h245_IndicationMessage_short_vals , \"<unknown>\" ) ) ;\n }\n else {\n col_prepend_fstr ( actx -> pinfo -> cinfo , COL_INFO , \"%s \" , val_to_str ( value , h245_IndicationMessage_vals , \"<unknown>\" ) ) ;\n }\n col_set_fence ( actx -> pinfo -> cinfo , COL_INFO ) ;\n if ( h245_pi != NULL ) {\n if ( strlen ( h245_pi -> frame_label ) == 0 ) {\n g_snprintf ( h245_pi -> frame_label , 50 , \"%s\" , val_to_str ( value , h245_IndicationMessage_short_vals , \"UKN\" ) ) ;\n }\n g_strlcat ( h245_pi -> comment , val_to_str ( value , h245_IndicationMessage_vals , \"<unknown>\" ) , 50 ) ;\n }\n return offset ;\n }"}
{"idx": 3470, "target": 0, "func": "static inline void tb_jmp_remove ( TranslationBlock * tb , int n ) {\n TranslationBlock * tb1 , * * ptb ;\n unsigned int n1 ;\n ptb = & tb -> jmp_next [ n ] ;\n tb1 = * ptb ;\n if ( tb1 ) {\n for ( ;\n ;\n ) {\n tb1 = * ptb ;\n n1 = ( uintptr_t ) tb1 & 3 ;\n tb1 = ( TranslationBlock * ) ( ( uintptr_t ) tb1 & ~ 3 ) ;\n if ( n1 == n && tb1 == tb ) {\n break ;\n }\n if ( n1 == 2 ) {\n ptb = & tb1 -> jmp_first ;\n }\n else {\n ptb = & tb1 -> jmp_next [ n1 ] ;\n }\n }\n * ptb = tb -> jmp_next [ n ] ;\n tb -> jmp_next [ n ] = NULL ;\n }\n }"}
{"idx": 3471, "target": 1, "func": "GType hb_gobject_ ## name ## _get_type ( void ) \\ {\n static gsize type_id = 0 ;\n if ( g_once_init_enter ( & type_id ) ) {\n GType id = g_boxed_type_register_static ( g_intern_static_string ( \"hb_\" # name \"_t\" ) , ( GBoxedCopyFunc ) copy_func , ( GBoxedFreeFunc ) free_func ) ;\n g_once_init_leave ( & type_id , id ) ;\n }\n return type_id ;\n \\ }\n # define HB_DEFINE_OBJECT_TYPE ( name ) HB_DEFINE_BOXED_TYPE ( name , hb_ ## name ## _reference , hb_ ## name ## _destroy ) ;\n HB_DEFINE_OBJECT_TYPE ( buffer ) HB_DEFINE_OBJECT_TYPE ( blob ) HB_DEFINE_OBJECT_TYPE ( face ) HB_DEFINE_OBJECT_TYPE ( font ) HB_DEFINE_OBJECT_TYPE ( font_funcs ) HB_DEFINE_OBJECT_TYPE ( set ) HB_DEFINE_OBJECT_TYPE ( shape_plan ) HB_DEFINE_OBJECT_TYPE ( unicode_funcs ) static hb_feature_t * feature_reference ( hb_feature_t * g ) {\n hb_feature_t * c = ( hb_feature_t * ) calloc ( 1 , sizeof ( hb_feature_t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * g ;\n return c ;\n }\n static void feature_destroy ( hb_feature_t * g ) {\n free ( g ) ;\n }\n HB_DEFINE_BOXED_TYPE ( feature , feature_reference , feature_destroy ) static hb_glyph_info_t * glyph_info_reference ( hb_glyph_info_t * g ) {\n hb_glyph_info_t * c = ( hb_glyph_info_t * ) calloc ( 1 , sizeof ( hb_glyph_info_t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * g ;\n return c ;\n }\n static void glyph_info_destroy ( hb_glyph_info_t * g ) {\n free ( g ) ;\n }\n HB_DEFINE_BOXED_TYPE ( glyph_info , glyph_info_reference , glyph_info_destroy ) static hb_glyph_position_t * glyph_position_reference ( hb_glyph_position_t * g ) {\n hb_glyph_position_t * c = ( hb_glyph_position_t * ) calloc ( 1 , sizeof ( hb_glyph_position_t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * g ;\n return c ;\n }\n static void glyph_position_destroy ( hb_glyph_position_t * g ) {\n free ( g ) ;\n }\n HB_DEFINE_BOXED_TYPE ( glyph_position , glyph_position_reference , glyph_position_destroy ) static hb_segment_properties_t * segment_properties_reference ( hb_segment_properties_t * g ) {\n hb_segment_properties_t * c = ( hb_segment_properties_t * ) calloc ( 1 , sizeof ( hb_segment_properties_t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * g ;\n return c ;\n }\n static void segment_properties_destroy ( hb_segment_properties_t * g ) {\n free ( g ) ;\n }\n HB_DEFINE_BOXED_TYPE ( segment_properties , segment_properties_reference , segment_properties_destroy )"}
{"idx": 3472, "target": 0, "func": "void proto_register_zbee_zcl_appl_stats ( void ) {\n guint i , j ;\n static hf_register_info hf [ ] = {\n {\n & hf_zbee_zcl_appl_stats_attr_id , {\n \"Attribute\" , \"zbee_zcl_ha.applstats.attr_id\" , FT_UINT16 , BASE_HEX , VALS ( zbee_zcl_appl_stats_attr_names ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_stats_srv_tx_cmd_id , {\n \"Command\" , \"zbee_zcl_ha.applstats.cmd.srv_tx.id\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_appl_stats_srv_tx_cmd_names ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_stats_srv_rx_cmd_id , {\n \"Command\" , \"zbee_zcl_ha.applstats.cmd.srv_rx.id\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_appl_stats_srv_rx_cmd_names ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_stats_utc_time , {\n \"UTC Time\" , \"zbee_zcl_ha.applstats.utc_time\" , FT_UINT32 , BASE_CUSTOM , CF_FUNC ( decode_zcl_appl_stats_utc_time ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_stats_log_length , {\n \"Log Length\" , \"zbee_zcl_ha.applstats.log.length\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_stats_log_id , {\n \"Log ID\" , \"zbee_zcl_ha.applstats.log.id\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_stats_log_queue_size , {\n \"Log Queue Size\" , \"zbee_zcl_ha.applstats.log_queue_size\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_stats_log_payload , {\n \"Log Payload\" , \"zbee_zcl_ha.applstats.log.payload\" , FT_BYTES , SEP_COLON , NULL , 0x00 , NULL , HFILL }\n }\n , }\n ;\n static gint * ett [ ZBEE_ZCL_APPL_STATS_NUM_ETT ] ;\n ett [ 0 ] = & ett_zbee_zcl_appl_stats ;\n for ( i = 0 , j = ZBEE_ZCL_APPL_STATS_NUM_GENERIC_ETT ;\n i < ZBEE_ZCL_APPL_STATS_NUM_LOGS_ETT ;\n i ++ , j ++ ) {\n ett_zbee_zcl_appl_stats_logs [ i ] = - 1 ;\n ett [ j ] = & ett_zbee_zcl_appl_stats_logs [ i ] ;\n }\n proto_zbee_zcl_appl_stats = proto_register_protocol ( \"ZigBee ZCL Appliance Statistics\" , \"ZCL Appliance Statistics\" , ZBEE_PROTOABBREV_ZCL_APPLSTATS ) ;\n proto_register_field_array ( proto_zbee_zcl_appl_stats , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n register_dissector ( ZBEE_PROTOABBREV_ZCL_APPLSTATS , dissect_zbee_zcl_appl_stats , proto_zbee_zcl_appl_stats ) ;\n }"}
{"idx": 3473, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , TestReentrantNotifications ) {\n QueryProtocolHandlerOnChange queryer ( profile ( ) , registry ( ) ) ;\n ProtocolHandler ph1 = CreateProtocolHandler ( \"test\" , \"test1\" ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ;\n ASSERT_TRUE ( queryer . called_ ) ;\n }"}
{"idx": 3474, "target": 0, "func": "int vp9_refining_search_8p_c ( const MACROBLOCK * x , MV * ref_mv , int error_per_bit , int search_range , const vp9_variance_fn_ptr_t * fn_ptr , const MV * center_mv , const uint8_t * second_pred ) {\n const MV neighbors [ 8 ] = {\n {\n - 1 , 0 }\n , {\n 0 , - 1 }\n , {\n 0 , 1 }\n , {\n 1 , 0 }\n , {\n - 1 , - 1 }\n , {\n 1 , - 1 }\n , {\n - 1 , 1 }\n , {\n 1 , 1 }\n }\n ;\n const MACROBLOCKD * const xd = & x -> e_mbd ;\n const struct buf_2d * const what = & x -> plane [ 0 ] . src ;\n const struct buf_2d * const in_what = & xd -> plane [ 0 ] . pre [ 0 ] ;\n const MV fcenter_mv = {\n center_mv -> row >> 3 , center_mv -> col >> 3 }\n ;\n unsigned int best_sad = fn_ptr -> sdaf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , ref_mv ) , in_what -> stride , second_pred ) + mvsad_err_cost ( x , ref_mv , & fcenter_mv , error_per_bit ) ;\n int i , j ;\n for ( i = 0 ;\n i < search_range ;\n ++ i ) {\n int best_site = - 1 ;\n for ( j = 0 ;\n j < 8 ;\n ++ j ) {\n const MV mv = {\n ref_mv -> row + neighbors [ j ] . row , ref_mv -> col + neighbors [ j ] . col }\n ;\n if ( is_mv_in ( x , & mv ) ) {\n unsigned int sad = fn_ptr -> sdaf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , & mv ) , in_what -> stride , second_pred ) ;\n if ( sad < best_sad ) {\n sad += mvsad_err_cost ( x , & mv , & fcenter_mv , error_per_bit ) ;\n if ( sad < best_sad ) {\n best_sad = sad ;\n best_site = j ;\n }\n }\n }\n }\n if ( best_site == - 1 ) {\n break ;\n }\n else {\n ref_mv -> row += neighbors [ best_site ] . row ;\n ref_mv -> col += neighbors [ best_site ] . col ;\n }\n }\n return best_sad ;\n }"}
{"idx": 3475, "target": 0, "func": "static cmsBool Type_MPEmatrix_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) {\n cmsUInt32Number i , nElems ;\n cmsStage * mpe = ( cmsStage * ) Ptr ;\n _cmsStageMatrixData * Matrix = ( _cmsStageMatrixData * ) mpe -> Data ;\n if ( ! _cmsWriteUInt16Number ( io , ( cmsUInt16Number ) mpe -> InputChannels ) ) return FALSE ;\n if ( ! _cmsWriteUInt16Number ( io , ( cmsUInt16Number ) mpe -> OutputChannels ) ) return FALSE ;\n nElems = mpe -> InputChannels * mpe -> OutputChannels ;\n for ( i = 0 ;\n i < nElems ;\n i ++ ) {\n if ( ! _cmsWriteFloat32Number ( io , ( cmsFloat32Number ) Matrix -> Double [ i ] ) ) return FALSE ;\n }\n for ( i = 0 ;\n i < mpe -> OutputChannels ;\n i ++ ) {\n if ( Matrix -> Offset == NULL ) {\n if ( ! _cmsWriteFloat32Number ( io , 0 ) ) return FALSE ;\n }\n else {\n if ( ! _cmsWriteFloat32Number ( io , ( cmsFloat32Number ) Matrix -> Offset [ i ] ) ) return FALSE ;\n }\n }\n return TRUE ;\n cmsUNUSED_PARAMETER ( nItems ) ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 3476, "target": 0, "func": "static TRBCCode xhci_disable_slot ( XHCIState * xhci , unsigned int slotid ) {\n int i ;\n trace_usb_xhci_slot_disable ( slotid ) ;\n assert ( slotid >= 1 && slotid <= xhci -> numslots ) ;\n for ( i = 1 ;\n i <= 31 ;\n i ++ ) {\n if ( xhci -> slots [ slotid - 1 ] . eps [ i - 1 ] ) {\n xhci_disable_ep ( xhci , slotid , i ) ;\n }\n }\n xhci -> slots [ slotid - 1 ] . enabled = 0 ;\n xhci -> slots [ slotid - 1 ] . addressed = 0 ;\n xhci -> slots [ slotid - 1 ] . uport = NULL ;\n return CC_SUCCESS ;\n }"}
{"idx": 3477, "target": 0, "func": "static int dissect_h225_T38FaxAnnexbOnlyCaps ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_T38FaxAnnexbOnlyCaps , T38FaxAnnexbOnlyCaps_sequence ) ;\n return offset ;\n }"}
{"idx": 3478, "target": 0, "func": "static int dissect_USER_LEVEL_CTR ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n proto_tree * subtree ;\n proto_item * item ;\n guint32 level ;\n if ( di -> conformant_run ) return offset ;\n subtree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_USER_LEVEL_CTR , & item , \"User level container\" ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_level , & level ) ;\n switch ( level ) {\n case 1 : offset = dissect_ndr_pointer ( tvb , offset , pinfo , subtree , di , drep , dissect_USER_LEVEL_1 , NDR_POINTER_UNIQUE , \"User level 1\" , - 1 ) ;\n break ;\n default : expert_add_info_format ( pinfo , item , & ei_level , \"Info level %d not decoded\" , level ) ;\n break ;\n }\n return offset ;\n }"}
{"idx": 3479, "target": 0, "func": "int luaD_pcall ( lua_State * L , Pfunc func , void * u , ptrdiff_t old_top , ptrdiff_t ef ) {\n int status ;\n unsigned short oldnCcalls = L -> nCcalls ;\n ptrdiff_t old_ci = saveci ( L , L -> ci ) ;\n lu_byte old_allowhooks = L -> allowhook ;\n ptrdiff_t old_errfunc = L -> errfunc ;\n L -> errfunc = ef ;\n status = luaD_rawrunprotected ( L , func , u ) ;\n if ( status != 0 ) {\n StkId oldtop = restorestack ( L , old_top ) ;\n luaF_close ( L , oldtop ) ;\n luaD_seterrorobj ( L , status , oldtop ) ;\n L -> nCcalls = oldnCcalls ;\n L -> ci = restoreci ( L , old_ci ) ;\n L -> base = L -> ci -> base ;\n L -> savedpc = L -> ci -> savedpc ;\n L -> allowhook = old_allowhooks ;\n restore_stack_limit ( L ) ;\n }\n L -> errfunc = old_errfunc ;\n return status ;\n }"}
{"idx": 3480, "target": 0, "func": "static gboolean gsm_a_stat_packet ( void * tapdata , const void * gatr_ptr , guint8 pdu_type , int protocol_disc ) {\n new_stat_data_t * stat_data = ( new_stat_data_t * ) tapdata ;\n const gsm_a_tap_rec_t * gatr = ( const gsm_a_tap_rec_t * ) gatr_ptr ;\n new_stat_tap_table * table ;\n stat_tap_table_item_type * msg_data ;\n guint i = 0 ;\n if ( gatr -> pdu_type != pdu_type ) return FALSE ;\n if ( pdu_type == BSSAP_PDU_TYPE_DTAP && ( int ) gatr -> protocol_disc != protocol_disc ) return FALSE ;\n if ( pdu_type == GSM_A_PDU_TYPE_SACCH && gatr -> protocol_disc != 0 ) return FALSE ;\n table = g_array_index ( stat_data -> new_stat_tap_data -> tables , new_stat_tap_table * , i ) ;\n msg_data = new_stat_tap_get_field_data ( table , gatr -> message_type , COUNT_COLUMN ) ;\n msg_data -> value . uint_value ++ ;\n new_stat_tap_set_field_data ( table , gatr -> message_type , COUNT_COLUMN , msg_data ) ;\n return TRUE ;\n }"}
{"idx": 3481, "target": 0, "func": "const char * TSUrlHttpFragmentGet ( TSMBuffer bufp , TSMLoc obj , int * length ) {\n return URLPartGet ( bufp , obj , length , & URL : : fragment_get ) ;\n }"}
{"idx": 3482, "target": 0, "func": "static int compare_name ( int mode , const char * name , const char * uid , size_t uidlen ) {\n int i ;\n const char * s , * se ;\n if ( mode == KEYDB_SEARCH_MODE_EXACT ) {\n for ( i = 0 ;\n name [ i ] && uidlen ;\n i ++ , uidlen -- ) if ( uid [ i ] != name [ i ] ) break ;\n if ( ! uidlen && ! name [ i ] ) return 0 ;\n }\n else if ( mode == KEYDB_SEARCH_MODE_SUBSTR ) {\n if ( ascii_memistr ( uid , uidlen , name ) ) return 0 ;\n }\n else if ( mode == KEYDB_SEARCH_MODE_MAIL || mode == KEYDB_SEARCH_MODE_MAILSUB || mode == KEYDB_SEARCH_MODE_MAILEND ) {\n for ( i = 0 , s = uid ;\n i < uidlen && * s != '<' ;\n s ++ , i ++ ) ;\n if ( i < uidlen ) {\n s ++ ;\n i ++ ;\n for ( se = s + 1 , i ++ ;\n i < uidlen && * se != '>' ;\n se ++ , i ++ ) ;\n if ( i < uidlen ) {\n i = se - s ;\n if ( mode == KEYDB_SEARCH_MODE_MAIL ) {\n if ( strlen ( name ) - 2 == i && ! ascii_memcasecmp ( s , name + 1 , i ) ) return 0 ;\n }\n else if ( mode == KEYDB_SEARCH_MODE_MAILSUB ) {\n if ( ascii_memistr ( s , i , name ) ) return 0 ;\n }\n else {\n }\n }\n }\n }\n else if ( mode == KEYDB_SEARCH_MODE_WORDS ) return word_match ( uid , uidlen , name ) ;\n else BUG ( ) ;\n return - 1 ;\n }"}
{"idx": 3483, "target": 0, "func": "int PEM_write_ ## name ( FILE * fp , type * x ) ;\n # define DECLARE_PEM_write_fp_const ( name , type ) int PEM_write_ ## name ( FILE * fp , const type * x ) ;\n # define DECLARE_PEM_write_cb_fp ( name , type ) int PEM_write_ ## name ( FILE * fp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # endif # define DECLARE_PEM_read_bio ( name , type ) type * PEM_read_bio_ ## name ( BIO * bp , type * * x , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL ) DECLARE_PEM_rw ( PKCS7 , PKCS7 ) DECLARE_PEM_rw ( NETSCAPE_CERT_SEQUENCE , NETSCAPE_CERT_SEQUENCE )"}
{"idx": 3484, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n EightBpsContext * const c = avctx -> priv_data ;\n const unsigned char * encoded = buf ;\n unsigned char * pixptr , * pixptr_end ;\n unsigned int height = avctx -> height ;\n unsigned int dlen , p , row ;\n const unsigned char * lp , * dp ;\n unsigned char count ;\n unsigned int px_inc ;\n unsigned int planes = c -> planes ;\n unsigned char * planemap = c -> planemap ;\n int ret ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n dp = encoded + planes * ( height << 1 ) ;\n if ( planes == 4 ) planes -- ;\n px_inc = planes + ( avctx -> pix_fmt == AV_PIX_FMT_RGB32 ) ;\n for ( p = 0 ;\n p < planes ;\n p ++ ) {\n lp = encoded + p * ( height << 1 ) ;\n for ( row = 0 ;\n row < height ;\n row ++ ) {\n pixptr = frame -> data [ 0 ] + row * frame -> linesize [ 0 ] + planemap [ p ] ;\n pixptr_end = pixptr + frame -> linesize [ 0 ] ;\n dlen = av_be2ne16 ( * ( const unsigned short * ) ( lp + row * 2 ) ) ;\n while ( dlen > 0 ) {\n if ( dp + 1 >= buf + buf_size ) return AVERROR_INVALIDDATA ;\n if ( ( count = * dp ++ ) <= 127 ) {\n count ++ ;\n dlen -= count + 1 ;\n if ( pixptr + count * px_inc > pixptr_end ) break ;\n if ( dp + count > buf + buf_size ) return AVERROR_INVALIDDATA ;\n while ( count -- ) {\n * pixptr = * dp ++ ;\n pixptr += px_inc ;\n }\n }\n else {\n count = 257 - count ;\n if ( pixptr + count * px_inc > pixptr_end ) break ;\n while ( count -- ) {\n * pixptr = * dp ;\n pixptr += px_inc ;\n }\n dp ++ ;\n dlen -= 2 ;\n }\n }\n }\n }\n if ( avctx -> bits_per_coded_sample <= 8 ) {\n const uint8_t * pal = av_packet_get_side_data ( avpkt , AV_PKT_DATA_PALETTE , NULL ) ;\n if ( pal ) {\n frame -> palette_has_changed = 1 ;\n memcpy ( c -> pal , pal , AVPALETTE_SIZE ) ;\n }\n memcpy ( frame -> data [ 1 ] , c -> pal , AVPALETTE_SIZE ) ;\n }\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 3485, "target": 0, "func": "static ASN1_GENERALIZEDTIME * obj_to_asn1gtime ( VALUE time ) {\n time_t sec ;\n ASN1_GENERALIZEDTIME * t ;\n # if defined ( HAVE_ASN1_TIME_ADJ ) int off_days ;\n ossl_time_split ( time , & sec , & off_days ) ;\n if ( ! ( t = ASN1_GENERALIZEDTIME_adj ( NULL , sec , off_days , 0 ) ) ) # else sec = time_to_time_t ( time ) ;\n if ( ! ( t = ASN1_GENERALIZEDTIME_set ( NULL , sec ) ) ) # endif ossl_raise ( eASN1Error , NULL ) ;\n return t ;\n }"}
{"idx": 3486, "target": 0, "func": "static inline void qemu_put_be64s ( QEMUFile * f , const uint64_t * pv ) {\n qemu_put_be64 ( f , * pv ) ;\n }"}
{"idx": 3487, "target": 1, "func": "void proto_register_AllJoyn ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_alljoyn_ns_header , {\n \"Header\" , \"alljoyn.header\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_sender_version , {\n \"Sender Version\" , \"alljoyn.header.sendversion\" , FT_UINT8 , BASE_DEC , NULL , 0xF0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_message_version , {\n \"Message Version\" , \"alljoyn.header.messageversion\" , FT_UINT8 , BASE_DEC , NULL , 0x0F , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_questions , {\n \"Questions\" , \"alljoyn.header.questions\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_answers , {\n \"Answers\" , \"alljoyn.header.answers\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_timer , {\n \"Timer\" , \"alljoyn.header.timer\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_whohas , {\n \"Who-Has Message\" , \"alljoyn.whohas\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_whohas_t_flag , {\n \"TCP\" , \"alljoyn.whohas.T\" , FT_BOOLEAN , 8 , NULL , WHOHAS_T , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_whohas_u_flag , {\n \"UDP\" , \"alljoyn.whohas.U\" , FT_BOOLEAN , 8 , NULL , WHOHAS_U , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_whohas_s_flag , {\n \"IPv6\" , \"alljoyn.whohas.S\" , FT_BOOLEAN , 8 , NULL , WHOHAS_S , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_whohas_f_flag , {\n \"IPv4\" , \"alljoyn.whohas.F\" , FT_BOOLEAN , 8 , NULL , WHOHAS_F , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_whohas_count , {\n \"Count\" , \"alljoyn.whohas.count\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_answer , {\n \"Is-At Message\" , \"alljoyn.isat\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_isat_entry , {\n \"Advertisement Entry\" , \"alljoyn.isat_entry\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_isat_guid_string , {\n \"GUID String\" , \"alljoyn.isat_guid_string\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_g_flag , {\n \"GUID\" , \"alljoyn.isat.G\" , FT_BOOLEAN , 8 , NULL , ISAT_G , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_c_flag , {\n \"Complete\" , \"alljoyn.isat.C\" , FT_BOOLEAN , 8 , NULL , ISAT_C , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_count , {\n \"Count\" , \"alljoyn.isat.count\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_ipv6 , {\n \"IPv6 Address\" , \"alljoyn.isat.ipv6\" , FT_IPv6 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_ipv4 , {\n \"IPv4 Address\" , \"alljoyn.isat.ipv4\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_t_flag , {\n \"TCP\" , \"alljoyn.isat.T\" , FT_BOOLEAN , 8 , NULL , ISAT_T , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_u_flag , {\n \"UDP\" , \"alljoyn.isat.U\" , FT_BOOLEAN , 8 , NULL , ISAT_U , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_s_flag , {\n \"IPv6\" , \"alljoyn.isat.S\" , FT_BOOLEAN , 8 , NULL , ISAT_S , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_f_flag , {\n \"IPv4\" , \"alljoyn.isat.F\" , FT_BOOLEAN , 8 , NULL , ISAT_F , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_port , {\n \"Port\" , \"alljoyn.isat.port\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_u6_flag , {\n \"IPv6 UDP\" , \"alljoyn.isat.U6\" , FT_BOOLEAN , 8 , NULL , ISAT_U6 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_r6_flag , {\n \"IPv6 TCP\" , \"alljoyn.isat.R6\" , FT_BOOLEAN , 8 , NULL , ISAT_R6 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_u4_flag , {\n \"IPv4 UDP\" , \"alljoyn.isat.U4\" , FT_BOOLEAN , 8 , NULL , ISAT_U4 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_r4_flag , {\n \"IPv4 TCP\" , \"alljoyn.isat.R4\" , FT_BOOLEAN , 8 , NULL , ISAT_R4 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_transport_mask , {\n \"Transport Mask\" , \"alljoyn.isat.TransportMask\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_transport_mask_local , {\n \"Local Transport\" , \"alljoyn.isat.TransportMask.Local\" , FT_BOOLEAN , 16 , NULL , TRANSPORT_LOCAL , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_transport_mask_bluetooth , {\n \"Bluetooth Transport\" , \"alljoyn.isat.TransportMask.Bluetooth\" , FT_BOOLEAN , 16 , NULL , TRANSPORT_BLUETOOTH , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_transport_mask_tcp , {\n \"TCP Transport\" , \"alljoyn.isat.TransportMask.TCP\" , FT_BOOLEAN , 16 , NULL , TRANSPORT_TCP , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_transport_mask_wwan , {\n \"Wirelesss WAN Transport\" , \"alljoyn.isat.TransportMask.WWAN\" , FT_BOOLEAN , 16 , NULL , TRANSPORT_WWAN , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_transport_mask_lan , {\n \"Wired LAN Transport\" , \"alljoyn.isat.TransportMask.LAN\" , FT_BOOLEAN , 16 , NULL , TRANSPORT_LAN , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_transport_mask_ice , {\n \"ICE protocol Transport\" , \"alljoyn.isat.TransportMask.ICE\" , FT_BOOLEAN , 16 , NULL , TRANSPORT_ICE , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_transport_mask_wfd , {\n \"Wi-Fi Direct Transport\" , \"alljoyn.isat.TransportMask.WFD\" , FT_BOOLEAN , 16 , NULL , TRANSPORT_WFD , NULL , HFILL }\n }\n , {\n & hf_alljoyn_connect_byte_value , {\n \"Connect Initial Byte\" , \"alljoyn.InitialByte\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_sasl_command , {\n \"SASL command\" , \"alljoyn.SASL.command\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_sasl_parameter , {\n \"SASL parameter\" , \"alljoyn.SASL.parameter\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header , {\n \"Message Header\" , \"alljoyn.mess_header\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header_endian , {\n \"Endianness\" , \"alljoyn.mess_header.endianess\" , FT_UINT8 , BASE_DEC , VALS ( endian_encoding_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header_type , {\n \"Message type\" , \"alljoyn.mess_header.type\" , FT_UINT8 , BASE_DEC , VALS ( message_header_encoding_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header_flags , {\n \"Flags\" , \"alljoyn.mess_header.flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header_flags_no_reply , {\n \"No reply expected\" , \"alljoyn.mess_header.flags.noreply\" , FT_BOOLEAN , 8 , NULL , MESSAGE_HEADER_FLAG_NO_REPLY_EXPECTED , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header_flags_no_auto_start , {\n \"No auto start\" , \"alljoyn.mess_header.flags.noautostart\" , FT_BOOLEAN , 8 , NULL , MESSAGE_HEADER_FLAG_NO_AUTO_START , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header_flags_allow_remote_msg , {\n \"Allow remote messages\" , \"alljoyn.mess_header.flags.allowremotemessages\" , FT_BOOLEAN , 8 , NULL , MESSAGE_HEADER_FLAG_ALLOW_REMOTE_MSG , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header_flags_sessionless , {\n \"Sessionless\" , \"alljoyn.mess_header.flags.sessionless\" , FT_BOOLEAN , 8 , NULL , MESSAGE_HEADER_FLAG_SESSIONLESS , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header_flags_global_broadcast , {\n \"Allow global broadcast\" , \"alljoyn.mess_header.flags.globalbroadcast\" , FT_BOOLEAN , 8 , NULL , MESSAGE_HEADER_FLAG_GLOBAL_BROADCAST , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header_flags_compressed , {\n \"Compressed\" , \"alljoyn.mess_header.flags.compressed\" , FT_BOOLEAN , 8 , NULL , MESSAGE_HEADER_FLAG_COMPRESSED , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header_flags_encrypted , {\n \"Encrypted\" , \"alljoyn.mess_header.flags.encrypted\" , FT_BOOLEAN , 8 , NULL , MESSAGE_HEADER_FLAG_ENCRYPTED , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header_majorversion , {\n \"Major version\" , \"alljoyn.mess_header.majorversion\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header_body_length , {\n \"Body length\" , \"alljoyn.mess_header.bodylength\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header_serial , {\n \"Serial number\" , \"alljoyn.mess_header.serial\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header_header_length , {\n \"Header length\" , \"alljoyn.mess_header.headerlength\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header_fields , {\n \"Header fields\" , \"alljoyn.mess_header.fields\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header_field , {\n \"Header field\" , \"alljoyn.mess_header.field\" , FT_UINT8 , BASE_HEX , VALS ( mess_header_field_encoding_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_body_header_fieldcode , {\n \"Field code\" , \"alljoyn.message.fieldcode\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_body_header_typeid , {\n \"Type ID\" , \"alljoyn.message.typeid\" , FT_UINT8 , BASE_CUSTOM , CF_FUNC ( alljoyn_typeid ) , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_body_parameters , {\n \"Parameters\" , \"alljoyn.parameters\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_body_array , {\n \"Array\" , \"alljoyn.array\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_body_structure , {\n \"struct\" , \"alljoyn.structure\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_body_dictionary_entry , {\n \"dictionary entry\" , \"alljoyn.dictionary_entry\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_body_variant , {\n \"Variant '\" , \"alljoyn.variant\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_body_signature_length , {\n \"Signature length\" , \"alljoyn.parameter.signature_length\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_body_signature , {\n \"Signature\" , \"alljoyn.parameter.signature\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_boolean , {\n \"Boolean\" , \"alljoyn.boolean\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_uint8 , {\n \"Unsigned byte\" , \"alljoyn.uint8\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_int16 , {\n \"Signed int16\" , \"alljoyn.int16\" , FT_INT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_uint16 , {\n \"Unsigned int16\" , \"alljoyn.uint16\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_handle , {\n \"Handle\" , \"alljoyn.handle\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_int32 , {\n \"Signed int32\" , \"alljoyn.int32\" , FT_INT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_uint32 , {\n \"Unsigned int32\" , \"alljoyn.uint32\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_int64 , {\n \"Signed int64\" , \"alljoyn.int64\" , FT_INT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_uint64 , {\n \"Unsigned int64\" , \"alljoyn.uint64\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_double , {\n \"Double\" , \"alljoyn.double\" , FT_DOUBLE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_padding , {\n \"Padding\" , \"alljoyn.padding\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_string , {\n \"Bus Name\" , \"alljoyn.string\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_string_size_8bit , {\n \"String Size 8-bit\" , \"alljoyn.string.size8bit\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_string_size_32bit , {\n \"String Size 32-bit\" , \"alljoyn.string.size32bit\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_string_data , {\n \"String Data\" , \"alljoyn.string.data\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ardp_syn_flag , {\n \"SYN\" , \"ardp.hdr.SYN\" , FT_BOOLEAN , 8 , NULL , ARDP_SYN , NULL , HFILL }\n }\n , {\n & hf_ardp_ack_flag , {\n \"ACK\" , \"ardp.hdr.ACK\" , FT_BOOLEAN , 8 , NULL , ARDP_ACK , NULL , HFILL }\n }\n , {\n & hf_ardp_eak_flag , {\n \"EAK\" , \"ardp.hdr.EAK\" , FT_BOOLEAN , 8 , NULL , ARDP_EAK , NULL , HFILL }\n }\n , {\n & hf_ardp_rst_flag , {\n \"RST\" , \"ardp.hdr.RST\" , FT_BOOLEAN , 8 , NULL , ARDP_RST , NULL , HFILL }\n }\n , {\n & hf_ardp_nul_flag , {\n \"NUL\" , \"ardp.hdr.NUL\" , FT_BOOLEAN , 8 , NULL , ARDP_NUL , NULL , HFILL }\n }\n , {\n & hf_ardp_unused_flag , {\n \"UNUSED\" , \"ardp.hdr.UNUSED\" , FT_BOOLEAN , 8 , NULL , ARDP_UNUSED , NULL , HFILL }\n }\n , {\n & hf_ardp_version_field , {\n \"VER\" , \"ardp.hdr.ver\" , FT_UINT8 , BASE_HEX , NULL , ARDP_VER , NULL , HFILL }\n }\n , {\n & hf_ardp_hlen , {\n \"Header Length\" , \"ardp.hdr.hlen\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ardp_src , {\n \"Source Port\" , \"ardp.hdr.src\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ardp_dst , {\n \"Destination Port\" , \"ardp.hdr.dst\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ardp_dlen , {\n \"Data Length\" , \"ardp.hdr.dlen\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ardp_seq , {\n \"Sequence\" , \"ardp.hdr.seq\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ardp_ack , {\n \"Acknowledge\" , \"ardp.hdr.ack\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ardp_ttl , {\n \"Time to Live\" , \"ardp.hdr.ttl\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ardp_lcs , {\n \"Last Consumed Sequence\" , \"ardp.hdr.lcs\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ardp_nsa , {\n \"Next Sequence to ACK\" , \"ardp.hdr.nsa\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ardp_fss , {\n \"Fragment Starting Sequence\" , \"ardp.hdr.fss\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ardp_fcnt , {\n \"Fragment Count\" , \"ardp.hdr.fcnt\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ardp_bmp , {\n \"EACK Bitmap\" , \"ardp.hdr.bmp\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ardp_segmax , {\n \"Segment Max\" , \"ardp.hdr.segmentmax\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ardp_segbmax , {\n \"Segment Buffer Max\" , \"ardp.hdr.segmentbmax\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ardp_dackt , {\n \"Receiver's delayed ACK timeout\" , \"ardp.hdr.dackt\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ardp_options , {\n \"Options\" , \"ardp.hdr.options\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , }\n ;\n static gint * ett [ ] = {\n & ett_alljoyn_ns , & ett_alljoyn_ns_header , & ett_alljoyn_ns_answers , & ett_alljoyn_ns_guid_string , & ett_alljoyn_ns_isat_entry , & ett_alljoyn_ns_string , & ett_alljoyn_whohas , & ett_alljoyn_string , & ett_alljoyn_isat_entry , & ett_alljoyn_mess , & ett_alljoyn_header , & ett_alljoyn_header_flags , & ett_alljoyn_mess_header_field , & ett_alljoyn_mess_header , & ett_alljoyn_mess_body_parameters , & ett_alljoyn_ardp }\n ;\n proto_AllJoyn_ns = proto_register_protocol ( \"AllJoyn Name Service Protocol\" , \"AllJoyn NS\" , \"ajns\" ) ;\n proto_AllJoyn_mess = proto_register_protocol ( \"AllJoyn Message Protocol\" , \"AllJoyn\" , \"aj\" ) ;\n proto_register_field_array ( proto_AllJoyn_ns , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n proto_AllJoyn_ardp = proto_register_protocol ( \"AllJoyn Reliable Datagram Protocol\" , \"AllJoyn ARDP\" , \"ardp\" ) ;\n }"}
{"idx": 3488, "target": 0, "func": "TIFF * TIFFFdOpen ( int fd , const char * name , const char * mode ) {\n TIFF * tif ;\n tif = TIFFClientOpen ( name , mode , ddd ( thandle_t ) fd , _tiffReadProc , _tiffWriteProc , _tiffSeekProc , _tiffCloseProc , _tiffSizeProc , _tiffMapProc , _tiffUnmapProc ) ;\n if ( tif ) tif -> tif_fd = fd ;\n return ( tif ) ;\n }"}
{"idx": 3489, "target": 0, "func": "time_t mime_parse_date ( const char * buf , const char * end ) {\n static const int DAYS_OFFSET = 25508 ;\n static const int days [ 12 ] = {\n 305 , 336 , - 1 , 30 , 60 , 91 , 121 , 152 , 183 , 213 , 244 , 274 }\n ;\n struct tm tp ;\n time_t t ;\n int year ;\n int month ;\n int mday ;\n if ( ! buf ) {\n return ( time_t ) 0 ;\n }\n while ( ( buf != end ) && is_ws ( * buf ) ) {\n buf += 1 ;\n }\n if ( ( buf != end ) && is_digit ( * buf ) ) {\n if ( ! mime_parse_mday ( buf , end , & tp . tm_mday ) ) {\n return ( time_t ) 0 ;\n }\n if ( ! mime_parse_month ( buf , end , & tp . tm_mon ) ) {\n return ( time_t ) 0 ;\n }\n if ( ! mime_parse_year ( buf , end , & tp . tm_year ) ) {\n return ( time_t ) 0 ;\n }\n if ( ! mime_parse_time ( buf , end , & tp . tm_hour , & tp . tm_min , & tp . tm_sec ) ) {\n return ( time_t ) 0 ;\n }\n }\n else if ( end && ( end - buf >= 29 ) && ( buf [ 3 ] == ',' ) ) {\n if ( ! mime_parse_rfc822_date_fastcase ( buf , end - buf , & tp ) ) {\n return ( time_t ) 0 ;\n }\n }\n else {\n if ( ! mime_parse_day ( buf , end , & tp . tm_wday ) ) {\n return ( time_t ) 0 ;\n }\n while ( ( buf != end ) && is_ws ( * buf ) ) {\n buf += 1 ;\n }\n if ( ( buf != end ) && ( ( * buf == ',' ) || is_digit ( * buf ) ) ) {\n if ( ! mime_parse_mday ( buf , end , & tp . tm_mday ) ) {\n return ( time_t ) 0 ;\n }\n if ( ! mime_parse_month ( buf , end , & tp . tm_mon ) ) {\n return ( time_t ) 0 ;\n }\n if ( ! mime_parse_year ( buf , end , & tp . tm_year ) ) {\n return ( time_t ) 0 ;\n }\n if ( ! mime_parse_time ( buf , end , & tp . tm_hour , & tp . tm_min , & tp . tm_sec ) ) {\n return ( time_t ) 0 ;\n }\n }\n else {\n if ( ! mime_parse_month ( buf , end , & tp . tm_mon ) ) {\n return ( time_t ) 0 ;\n }\n if ( ! mime_parse_mday ( buf , end , & tp . tm_mday ) ) {\n return ( time_t ) 0 ;\n }\n if ( ! mime_parse_time ( buf , end , & tp . tm_hour , & tp . tm_min , & tp . tm_sec ) ) {\n return ( time_t ) 0 ;\n }\n if ( ! mime_parse_year ( buf , end , & tp . tm_year ) ) {\n return ( time_t ) 0 ;\n }\n }\n }\n year = tp . tm_year ;\n month = tp . tm_mon ;\n mday = tp . tm_mday ;\n if ( year > 137 ) {\n return ( time_t ) INT_MAX ;\n }\n if ( year < 70 ) {\n return ( time_t ) 0 ;\n }\n mday += days [ month ] ;\n if ( month < 2 ) {\n year -= 1 ;\n }\n mday += ( year * 365 ) + ( year / 4 ) - ( year / 100 ) + ( year / 100 + 3 ) / 4 ;\n mday -= DAYS_OFFSET ;\n t = ( ( mday * 24 + tp . tm_hour ) * 60 + tp . tm_min ) * 60 + tp . tm_sec ;\n return t ;\n }"}
{"idx": 3490, "target": 0, "func": "static inline void tqi_idct_put ( TqiContext * t , AVFrame * frame , int16_t ( * block ) [ 64 ] ) {\n MpegEncContext * s = & t -> s ;\n int linesize = frame -> linesize [ 0 ] ;\n uint8_t * dest_y = frame -> data [ 0 ] + ( s -> mb_y * 16 * linesize ) + s -> mb_x * 16 ;\n uint8_t * dest_cb = frame -> data [ 1 ] + ( s -> mb_y * 8 * frame -> linesize [ 1 ] ) + s -> mb_x * 8 ;\n uint8_t * dest_cr = frame -> data [ 2 ] + ( s -> mb_y * 8 * frame -> linesize [ 2 ] ) + s -> mb_x * 8 ;\n ff_ea_idct_put_c ( dest_y , linesize , block [ 0 ] ) ;\n ff_ea_idct_put_c ( dest_y + 8 , linesize , block [ 1 ] ) ;\n ff_ea_idct_put_c ( dest_y + 8 * linesize , linesize , block [ 2 ] ) ;\n ff_ea_idct_put_c ( dest_y + 8 * linesize + 8 , linesize , block [ 3 ] ) ;\n if ( ! ( s -> avctx -> flags & CODEC_FLAG_GRAY ) ) {\n ff_ea_idct_put_c ( dest_cb , frame -> linesize [ 1 ] , block [ 4 ] ) ;\n ff_ea_idct_put_c ( dest_cr , frame -> linesize [ 2 ] , block [ 5 ] ) ;\n }\n }"}
{"idx": 3491, "target": 0, "func": "static void save_layer_context ( VP8_COMP * cpi ) {\n LAYER_CONTEXT * lc = & cpi -> layer_context [ cpi -> current_layer ] ;\n lc -> target_bandwidth = cpi -> target_bandwidth ;\n lc -> starting_buffer_level = cpi -> oxcf . starting_buffer_level ;\n lc -> optimal_buffer_level = cpi -> oxcf . optimal_buffer_level ;\n lc -> maximum_buffer_size = cpi -> oxcf . maximum_buffer_size ;\n lc -> starting_buffer_level_in_ms = cpi -> oxcf . starting_buffer_level_in_ms ;\n lc -> optimal_buffer_level_in_ms = cpi -> oxcf . optimal_buffer_level_in_ms ;\n lc -> maximum_buffer_size_in_ms = cpi -> oxcf . maximum_buffer_size_in_ms ;\n lc -> buffer_level = cpi -> buffer_level ;\n lc -> bits_off_target = cpi -> bits_off_target ;\n lc -> total_actual_bits = cpi -> total_actual_bits ;\n lc -> worst_quality = cpi -> worst_quality ;\n lc -> active_worst_quality = cpi -> active_worst_quality ;\n lc -> best_quality = cpi -> best_quality ;\n lc -> active_best_quality = cpi -> active_best_quality ;\n lc -> ni_av_qi = cpi -> ni_av_qi ;\n lc -> ni_tot_qi = cpi -> ni_tot_qi ;\n lc -> ni_frames = cpi -> ni_frames ;\n lc -> avg_frame_qindex = cpi -> avg_frame_qindex ;\n lc -> rate_correction_factor = cpi -> rate_correction_factor ;\n lc -> key_frame_rate_correction_factor = cpi -> key_frame_rate_correction_factor ;\n lc -> gf_rate_correction_factor = cpi -> gf_rate_correction_factor ;\n lc -> zbin_over_quant = cpi -> mb . zbin_over_quant ;\n lc -> inter_frame_target = cpi -> inter_frame_target ;\n lc -> total_byte_count = cpi -> total_byte_count ;\n lc -> filter_level = cpi -> common . filter_level ;\n lc -> last_frame_percent_intra = cpi -> last_frame_percent_intra ;\n memcpy ( lc -> count_mb_ref_frame_usage , cpi -> mb . count_mb_ref_frame_usage , sizeof ( cpi -> mb . count_mb_ref_frame_usage ) ) ;\n }"}
{"idx": 3492, "target": 0, "func": "static void create_object_entry ( const unsigned char * sha1 , enum object_type type , uint32_t hash , int exclude , int no_try_delta , uint32_t index_pos , struct packed_git * found_pack , off_t found_offset ) {\n struct object_entry * entry ;\n entry = packlist_alloc ( & to_pack , sha1 , index_pos ) ;\n entry -> hash = hash ;\n if ( type ) entry -> type = type ;\n if ( exclude ) entry -> preferred_base = 1 ;\n else nr_result ++ ;\n if ( found_pack ) {\n entry -> in_pack = found_pack ;\n entry -> in_pack_offset = found_offset ;\n }\n entry -> no_try_delta = no_try_delta ;\n }"}
{"idx": 3493, "target": 0, "func": "int evutil_snprintf ( char * buf , size_t buflen , const char * format , ... ) {\n int r ;\n va_list ap ;\n va_start ( ap , format ) ;\n r = evutil_vsnprintf ( buf , buflen , format , ap ) ;\n va_end ( ap ) ;\n return r ;\n }"}
{"idx": 3494, "target": 0, "func": "static int spl_dllist_object_count_elements ( zval * object , long * count TSRMLS_DC ) {\n spl_dllist_object * intern = ( spl_dllist_object * ) zend_object_store_get_object ( object TSRMLS_CC ) ;\n if ( intern -> fptr_count ) {\n zval * rv ;\n zend_call_method_with_0_params ( & object , intern -> std . ce , & intern -> fptr_count , \"count\" , & rv ) ;\n if ( rv ) {\n zval_ptr_dtor ( & intern -> retval ) ;\n MAKE_STD_ZVAL ( intern -> retval ) ;\n ZVAL_ZVAL ( intern -> retval , rv , 1 , 1 ) ;\n convert_to_long ( intern -> retval ) ;\n * count = ( long ) Z_LVAL_P ( intern -> retval ) ;\n return SUCCESS ;\n }\n * count = 0 ;\n return FAILURE ;\n }\n * count = spl_ptr_llist_count ( intern -> llist ) ;\n return SUCCESS ;\n }"}
{"idx": 3495, "target": 1, "func": "static void fd_free_list ( struct FrameData * list ) {\n struct FrameData * p = list ;\n while ( p ) {\n list = list -> next ;\n fd_free ( p ) ;\n p = list ;\n }\n }"}
{"idx": 3496, "target": 0, "func": "static void pk_transaction_get_packages ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) {\n PkBitfield filter ;\n g_autoptr ( GError ) error = NULL ;\n g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;\n g_return_if_fail ( transaction -> priv -> tid != NULL ) ;\n g_variant_get ( params , \"(t)\" , & filter ) ;\n g_debug ( \"GetPackages method called: %\" G_GUINT64_FORMAT , filter ) ;\n if ( ! pk_backend_is_implemented ( transaction -> priv -> backend , PK_ROLE_ENUM_GET_PACKAGES ) ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NOT_SUPPORTED , \"GetPackages not supported by backend\" ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n transaction -> priv -> cached_filters = filter ;\n pk_transaction_set_role ( transaction , PK_ROLE_ENUM_GET_PACKAGES ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_READY ) ;\n out : pk_transaction_dbus_return ( context , error ) ;\n }"}
{"idx": 3497, "target": 0, "func": "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 ) {\n return dissect_ber_any_oid ( implicit_tag , actx , tree , tvb , offset , hf_id , value_tvb , FALSE ) ;\n }"}
{"idx": 3498, "target": 0, "func": "static void register_type_length_mismatch ( void ) {\n static ei_register_info ei [ ] = {\n {\n & ei_type_length_mismatch_error , {\n \"_ws.type_length.mismatch\" , PI_MALFORMED , PI_ERROR , \"Trying to fetch X with length Y\" , EXPFILL }\n }\n , {\n & ei_type_length_mismatch_warn , {\n \"_ws.type_length.mismatch\" , PI_MALFORMED , PI_WARN , \"Trying to fetch X with length Y\" , EXPFILL }\n }\n , }\n ;\n expert_module_t * expert_type_length_mismatch ;\n proto_type_length_mismatch = proto_register_protocol ( \"Type Length Mismatch\" , \"Type length mismatch\" , \"_ws.type_length\" ) ;\n expert_type_length_mismatch = expert_register_protocol ( proto_type_length_mismatch ) ;\n expert_register_field_array ( expert_type_length_mismatch , ei , array_length ( ei ) ) ;\n proto_set_cant_toggle ( proto_type_length_mismatch ) ;\n }"}
{"idx": 3499, "target": 0, "func": "unsigned int hb_blob_get_length ( hb_blob_t * blob ) {\n return blob -> length ;\n }"}
{"idx": 3500, "target": 0, "func": "static void ExecuteSimpleCommands ( ArchiveHandle * AH , const char * buf , size_t bufLen ) {\n const char * qry = buf ;\n const char * eos = buf + bufLen ;\n if ( AH -> sqlparse . curCmd == NULL ) AH -> sqlparse . curCmd = createPQExpBuffer ( ) ;\n for ( ;\n qry < eos ;\n qry ++ ) {\n char ch = * qry ;\n if ( ! ( ch == '\\n' && AH -> sqlparse . curCmd -> len == 0 ) ) appendPQExpBufferChar ( AH -> sqlparse . curCmd , ch ) ;\n switch ( AH -> sqlparse . state ) {\n case SQL_SCAN : if ( ch == ';\n' ) {\n ExecuteSqlCommand ( AH , AH -> sqlparse . curCmd -> data , \"could not execute query\" ) ;\n resetPQExpBuffer ( AH -> sqlparse . curCmd ) ;\n }\n else if ( ch == '\\'' ) {\n AH -> sqlparse . state = SQL_IN_SINGLE_QUOTE ;\n AH -> sqlparse . backSlash = false ;\n }\n else if ( ch == '\"' ) {\n AH -> sqlparse . state = SQL_IN_DOUBLE_QUOTE ;\n }\n break ;\n case SQL_IN_SINGLE_QUOTE : if ( ch == '\\'' && ! AH -> sqlparse . backSlash ) AH -> sqlparse . state = SQL_SCAN ;\n else if ( ch == '\\\\' && ! AH -> public . std_strings ) AH -> sqlparse . backSlash = ! AH -> sqlparse . backSlash ;\n else AH -> sqlparse . backSlash = false ;\n break ;\n case SQL_IN_DOUBLE_QUOTE : if ( ch == '\"' ) AH -> sqlparse . state = SQL_SCAN ;\n break ;\n }\n }\n }"}
{"idx": 3501, "target": 0, "func": "static void flush ( AVCodecContext * avctx ) {\n WmallDecodeCtx * s = avctx -> priv_data ;\n s -> packet_loss = 1 ;\n s -> packet_done = 0 ;\n s -> num_saved_bits = 0 ;\n s -> frame_offset = 0 ;\n s -> next_packet_start = 0 ;\n s -> cdlms [ 0 ] [ 0 ] . order = 0 ;\n s -> frame . nb_samples = 0 ;\n init_put_bits ( & s -> pb , s -> frame_data , MAX_FRAMESIZE ) ;\n }"}
{"idx": 3502, "target": 0, "func": "static int zsuperexec ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n es_ptr ep ;\n check_op ( 1 ) ;\n if ( ! r_has_attr ( op , a_executable ) ) return 0 ;\n check_estack ( 2 ) ;\n ep = esp += 3 ;\n make_mark_estack ( ep - 2 , es_other , end_superexec ) ;\n make_op_estack ( ep - 1 , end_superexec ) ;\n ref_assign ( ep , op ) ;\n esfile_check_cache ( ) ;\n pop ( 1 ) ;\n i_ctx_p -> in_superexec ++ ;\n return o_push_estack ;\n }"}
{"idx": 3503, "target": 0, "func": "void luaD_throw ( lua_State * L , int errcode ) {\n if ( L -> errorJmp ) {\n L -> errorJmp -> status = errcode ;\n LUAI_THROW ( L , L -> errorJmp ) ;\n }\n else {\n L -> status = cast_byte ( errcode ) ;\n if ( G ( L ) -> panic ) {\n resetstack ( L , errcode ) ;\n lua_unlock ( L ) ;\n G ( L ) -> panic ( L ) ;\n }\n exit ( EXIT_FAILURE ) ;\n }\n }"}
{"idx": 3504, "target": 0, "func": "static void dropDBs ( PGconn * conn ) {\n PGresult * res ;\n int i ;\n if ( server_version >= 70100 ) res = executeQuery ( conn , \"SELECT datname \" \"FROM pg_database d \" \"WHERE datallowconn ORDER BY 1\" ) ;\n else res = executeQuery ( conn , \"SELECT datname \" \"FROM pg_database d \" \"ORDER BY 1\" ) ;\n if ( PQntuples ( res ) > 0 ) fprintf ( OPF , \"--\\n-- Drop databases\\n--\\n\\n\" ) ;\n for ( i = 0 ;\n i < PQntuples ( res ) ;\n i ++ ) {\n char * dbname = PQgetvalue ( res , i , 0 ) ;\n if ( strcmp ( dbname , \"template1\" ) != 0 && strcmp ( dbname , \"postgres\" ) != 0 ) {\n fprintf ( OPF , \"DROP DATABASE %s%s;\n\\n\" , if_exists ? \"IF EXISTS \" : \"\" , fmtId ( dbname ) ) ;\n }\n }\n PQclear ( res ) ;\n fprintf ( OPF , \"\\n\\n\" ) ;\n }"}
{"idx": 3505, "target": 0, "func": "int vp9_alloc_context_buffers ( VP9_COMMON * cm , int width , int height ) {\n vp9_free_context_buffers ( cm ) ;\n vp9_set_mb_mi ( cm , width , height ) ;\n if ( alloc_mi ( cm , cm -> mi_stride * calc_mi_size ( cm -> mi_rows ) ) ) goto fail ;\n cm -> last_frame_seg_map = ( uint8_t * ) vpx_calloc ( cm -> mi_rows * cm -> mi_cols , 1 ) ;\n if ( ! cm -> last_frame_seg_map ) goto fail ;\n cm -> above_context = ( ENTROPY_CONTEXT * ) vpx_calloc ( * mi_cols_aligned_to_sb ( cm -> mi_cols ) * MAX_MB_PLANE , sizeof ( * cm -> above_context ) ) ;\n if ( ! cm -> above_context ) goto fail ;\n cm -> above_seg_context = ( PARTITION_CONTEXT * ) vpx_calloc ( mi_cols_aligned_to_sb ( cm -> mi_cols ) , sizeof ( * cm -> above_seg_context ) ) ;\n if ( ! cm -> above_seg_context ) goto fail ;\n return 0 ;\n fail : vp9_free_context_buffers ( cm ) ;\n return 1 ;\n }"}
{"idx": 3506, "target": 0, "func": "Datum icregexnesel ( PG_FUNCTION_ARGS ) {\n PG_RETURN_FLOAT8 ( patternsel ( fcinfo , Pattern_Type_Regex_IC , true ) ) ;\n }"}
{"idx": 3507, "target": 0, "func": "static gint dissect_rtmpt_body_command ( tvbuff_t * tvb , gint offset , proto_tree * rtmpt_tree , gboolean amf3 ) {\n gboolean amf3_encoding = FALSE ;\n if ( amf3 ) {\n offset ++ ;\n }\n while ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n if ( amf3_encoding ) offset = dissect_amf3_value_type ( tvb , offset , rtmpt_tree , NULL ) ;\n else offset = dissect_amf0_value_type ( tvb , offset , rtmpt_tree , & amf3_encoding , NULL ) ;\n }\n return offset ;\n }"}
{"idx": 3508, "target": 0, "func": "static void append_extra_bits ( int32_t * buffer [ 2 ] , int32_t * extra_bits_buffer [ 2 ] , int extra_bits , int channels , int nb_samples ) {\n int i , ch ;\n for ( ch = 0 ;\n ch < channels ;\n ch ++ ) for ( i = 0 ;\n i < nb_samples ;\n i ++ ) buffer [ ch ] [ i ] = ( buffer [ ch ] [ i ] << extra_bits ) | extra_bits_buffer [ ch ] [ i ] ;\n }"}
{"idx": 3509, "target": 0, "func": "static void lxc_cgroup_mount_point_free ( struct cgroup_mount_point * mp ) {\n if ( ! mp ) return ;\n free ( mp -> mount_point ) ;\n free ( mp -> mount_prefix ) ;\n free ( mp ) ;\n }"}
{"idx": 3510, "target": 0, "func": "static void cirrus_cursor_draw_line ( VGACommonState * s1 , uint8_t * d1 , int scr_y ) {\n CirrusVGAState * s = container_of ( s1 , CirrusVGAState , vga ) ;\n int w , h , x1 , x2 , poffset ;\n unsigned int color0 , color1 ;\n const uint8_t * palette , * src ;\n uint32_t content ;\n if ( ! ( s -> vga . sr [ 0x12 ] & CIRRUS_CURSOR_SHOW ) ) return ;\n if ( s -> vga . sr [ 0x12 ] & CIRRUS_CURSOR_LARGE ) {\n h = 64 ;\n }\n else {\n h = 32 ;\n }\n if ( scr_y < s -> vga . hw_cursor_y || scr_y >= ( s -> vga . hw_cursor_y + h ) ) {\n return ;\n }\n src = s -> vga . vram_ptr + s -> real_vram_size - 16 * 1024 ;\n if ( s -> vga . sr [ 0x12 ] & CIRRUS_CURSOR_LARGE ) {\n src += ( s -> vga . sr [ 0x13 ] & 0x3c ) * 256 ;\n src += ( scr_y - s -> vga . hw_cursor_y ) * 16 ;\n poffset = 8 ;\n content = ( ( uint32_t * ) src ) [ 0 ] | ( ( uint32_t * ) src ) [ 1 ] | ( ( uint32_t * ) src ) [ 2 ] | ( ( uint32_t * ) src ) [ 3 ] ;\n }\n else {\n src += ( s -> vga . sr [ 0x13 ] & 0x3f ) * 256 ;\n src += ( scr_y - s -> vga . hw_cursor_y ) * 4 ;\n poffset = 128 ;\n content = ( ( uint32_t * ) src ) [ 0 ] | ( ( uint32_t * ) ( src + 128 ) ) [ 0 ] ;\n }\n if ( ! content ) return ;\n w = h ;\n x1 = s -> vga . hw_cursor_x ;\n if ( x1 >= s -> vga . last_scr_width ) return ;\n x2 = s -> vga . hw_cursor_x + w ;\n if ( x2 > s -> vga . last_scr_width ) x2 = s -> vga . last_scr_width ;\n w = x2 - x1 ;\n palette = s -> cirrus_hidden_palette ;\n color0 = rgb_to_pixel32 ( c6_to_8 ( palette [ 0x0 * 3 ] ) , c6_to_8 ( palette [ 0x0 * 3 + 1 ] ) , c6_to_8 ( palette [ 0x0 * 3 + 2 ] ) ) ;\n color1 = rgb_to_pixel32 ( c6_to_8 ( palette [ 0xf * 3 ] ) , c6_to_8 ( palette [ 0xf * 3 + 1 ] ) , c6_to_8 ( palette [ 0xf * 3 + 2 ] ) ) ;\n d1 += x1 * 4 ;\n vga_draw_cursor_line ( d1 , src , poffset , w , color0 , color1 , 0xffffff ) ;\n }"}
{"idx": 3511, "target": 0, "func": "MIMEField * mime_hdr_field_get ( MIMEHdrImpl * mh , int idx ) {\n unsigned int index ;\n MIMEFieldBlockImpl * fblock ;\n MIMEField * field ;\n int got_idx ;\n got_idx = - 1 ;\n for ( fblock = & ( mh -> m_first_fblock ) ;\n fblock != nullptr ;\n fblock = fblock -> m_next ) {\n for ( index = 0 ;\n index < fblock -> m_freetop ;\n index ++ ) {\n field = & ( fblock -> m_field_slots [ index ] ) ;\n if ( field -> is_live ( ) ) {\n ++ got_idx ;\n }\n if ( got_idx == idx ) {\n return field ;\n }\n }\n }\n return nullptr ;\n }"}
{"idx": 3512, "target": 0, "func": "static int lang_compare_first_component ( const char * a , const char * b ) {\n unsigned int da , db ;\n const char * p ;\n p = strchr ( a , '-' ) ;\n da = p ? ( unsigned int ) ( p - a ) : strlen ( a ) ;\n p = strchr ( b , '-' ) ;\n db = p ? ( unsigned int ) ( p - b ) : strlen ( b ) ;\n return strncmp ( a , b , MAX ( da , db ) ) ;\n }"}
{"idx": 3513, "target": 0, "func": "void mime_field_destroy ( MIMEHdrImpl * , MIMEField * field ) {\n ink_assert ( field -> m_readiness == MIME_FIELD_SLOT_READINESS_DETACHED ) ;\n field -> m_readiness = MIME_FIELD_SLOT_READINESS_DELETED ;\n }"}
{"idx": 3514, "target": 0, "func": "static void ohci_async_complete_packet ( USBPort * port , USBPacket * packet ) {\n OHCIState * ohci = container_of ( packet , OHCIState , usb_packet ) ;\n trace_usb_ohci_async_complete ( ) ;\n ohci -> async_complete = true ;\n ohci_process_lists ( ohci , 1 ) ;\n }"}
{"idx": 3515, "target": 0, "func": "static int try_filter_frame ( const YV12_BUFFER_CONFIG * sd , VP9_COMP * const cpi , int filt_level , int partial_frame ) {\n VP9_COMMON * const cm = & cpi -> common ;\n int filt_err ;\n vp9_loop_filter_frame ( cm -> frame_to_show , cm , & cpi -> mb . e_mbd , filt_level , 1 , partial_frame ) ;\n filt_err = vp9_get_y_sse ( sd , cm -> frame_to_show ) ;\n vpx_yv12_copy_y ( & cpi -> last_frame_uf , cm -> frame_to_show ) ;\n return filt_err ;\n }"}
{"idx": 3516, "target": 0, "func": "static int qemuAgentOpenPty ( const char * monitor ) {\n int monfd ;\n if ( ( monfd = open ( monitor , O_RDWR | O_NONBLOCK ) ) < 0 ) {\n virReportSystemError ( errno , _ ( \"Unable to open monitor path %s\" ) , monitor ) ;\n return - 1 ;\n }\n if ( virSetCloseExec ( monfd ) < 0 ) {\n virReportSystemError ( errno , \"%s\" , _ ( \"Unable to set monitor close-on-exec flag\" ) ) ;\n goto error ;\n }\n return monfd ;\n error : VIR_FORCE_CLOSE ( monfd ) ;\n return - 1 ;\n }"}
{"idx": 3517, "target": 0, "func": "CURLcode glob_url ( URLGlob * * glob , char * url , unsigned long * urlnum , FILE * error ) {\n URLGlob * glob_expand ;\n unsigned long amount = 0 ;\n char * glob_buffer ;\n CURLcode res ;\n * glob = NULL ;\n glob_buffer = malloc ( strlen ( url ) + 1 ) ;\n if ( ! glob_buffer ) return CURLE_OUT_OF_MEMORY ;\n glob_expand = calloc ( 1 , sizeof ( URLGlob ) ) ;\n if ( ! glob_expand ) {\n Curl_safefree ( glob_buffer ) ;\n return CURLE_OUT_OF_MEMORY ;\n }\n glob_expand -> urllen = strlen ( url ) ;\n glob_expand -> glob_buffer = glob_buffer ;\n res = glob_parse ( glob_expand , url , 1 , & amount ) ;\n if ( ! res ) * urlnum = amount ;\n else {\n if ( error && glob_expand -> error ) {\n char text [ 128 ] ;\n const char * t ;\n if ( glob_expand -> pos ) {\n snprintf ( text , sizeof ( text ) , \"%s in column %zu\" , glob_expand -> error , glob_expand -> pos ) ;\n t = text ;\n }\n else t = glob_expand -> error ;\n fprintf ( error , \"curl: (%d) [globbing] %s\\n\" , res , t ) ;\n }\n glob_cleanup ( glob_expand ) ;\n * urlnum = 1 ;\n return res ;\n }\n * glob = glob_expand ;\n return CURLE_OK ;\n }"}
{"idx": 3518, "target": 0, "func": "static bool test_if_create_new_users ( THD * thd ) {\n Security_context * sctx = thd -> security_ctx ;\n bool create_new_users = test ( sctx -> master_access & INSERT_ACL ) || ( ! opt_safe_user_create && test ( sctx -> master_access & CREATE_USER_ACL ) ) ;\n if ( ! create_new_users ) {\n TABLE_LIST tl ;\n ulong db_access ;\n bzero ( ( char * ) & tl , sizeof ( tl ) ) ;\n tl . db = ( char * ) \"mysql\" ;\n tl . table_name = ( char * ) \"user\" ;\n create_new_users = 1 ;\n db_access = acl_get ( sctx -> host , sctx -> ip , sctx -> priv_user , tl . db , 0 ) ;\n if ( ! ( db_access & INSERT_ACL ) ) {\n if ( check_grant ( thd , INSERT_ACL , & tl , 0 , UINT_MAX , 1 ) ) create_new_users = 0 ;\n }\n }\n return create_new_users ;\n }"}
{"idx": 3519, "target": 0, "func": "static void calc_segtree_probs ( int * segcounts , vp9_prob * segment_tree_probs ) {\n const int c01 = segcounts [ 0 ] + segcounts [ 1 ] ;\n const int c23 = segcounts [ 2 ] + segcounts [ 3 ] ;\n const int c45 = segcounts [ 4 ] + segcounts [ 5 ] ;\n const int c67 = segcounts [ 6 ] + segcounts [ 7 ] ;\n segment_tree_probs [ 0 ] = get_binary_prob ( c01 + c23 , c45 + c67 ) ;\n segment_tree_probs [ 1 ] = get_binary_prob ( c01 , c23 ) ;\n segment_tree_probs [ 2 ] = get_binary_prob ( c45 , c67 ) ;\n segment_tree_probs [ 3 ] = get_binary_prob ( segcounts [ 0 ] , segcounts [ 1 ] ) ;\n segment_tree_probs [ 4 ] = get_binary_prob ( segcounts [ 2 ] , segcounts [ 3 ] ) ;\n segment_tree_probs [ 5 ] = get_binary_prob ( segcounts [ 4 ] , segcounts [ 5 ] ) ;\n segment_tree_probs [ 6 ] = get_binary_prob ( segcounts [ 6 ] , segcounts [ 7 ] ) ;\n }"}
{"idx": 3520, "target": 0, "func": "static void pcnet_start ( PCNetState * s ) {\n # ifdef PCNET_DEBUG printf ( \"pcnet_start\\n\" ) ;\n # endif if ( ! CSR_DTX ( s ) ) {\n s -> csr [ 0 ] |= 0x0010 ;\n }\n if ( ! CSR_DRX ( s ) ) {\n s -> csr [ 0 ] |= 0x0020 ;\n }\n s -> csr [ 0 ] &= ~ 0x0004 ;\n s -> csr [ 0 ] |= 0x0002 ;\n pcnet_poll_timer ( s ) ;\n qemu_flush_queued_packets ( qemu_get_queue ( s -> nic ) ) ;\n }"}
{"idx": 3521, "target": 0, "func": "static void * Type_Dictionary_Read ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number * nItems , cmsUInt32Number SizeOfTag ) {\n cmsHANDLE hDict ;\n cmsUInt32Number i , Count , Length ;\n cmsUInt32Number BaseOffset ;\n _cmsDICarray a ;\n wchar_t * NameWCS = NULL , * ValueWCS = NULL ;\n cmsMLU * DisplayNameMLU = NULL , * DisplayValueMLU = NULL ;\n cmsBool rc ;\n * nItems = 0 ;\n BaseOffset = io -> Tell ( io ) - sizeof ( _cmsTagBase ) ;\n if ( ! _cmsReadUInt32Number ( io , & Count ) ) return NULL ;\n SizeOfTag -= sizeof ( cmsUInt32Number ) ;\n if ( ! _cmsReadUInt32Number ( io , & Length ) ) return NULL ;\n SizeOfTag -= sizeof ( cmsUInt32Number ) ;\n if ( Length != 16 && Length != 24 && Length != 32 ) {\n cmsSignalError ( self -> ContextID , cmsERROR_UNKNOWN_EXTENSION , \"Unknown record length in dictionary '%d'\" , Length ) ;\n return NULL ;\n }\n hDict = cmsDictAlloc ( self -> ContextID ) ;\n if ( hDict == NULL ) return NULL ;\n if ( ! AllocArray ( self -> ContextID , & a , Count , Length ) ) goto Error ;\n if ( ! ReadOffsetArray ( io , & a , Count , Length , BaseOffset ) ) goto Error ;\n for ( i = 0 ;\n i < Count ;\n i ++ ) {\n if ( ! ReadOneWChar ( io , & a . Name , i , & NameWCS ) ) goto Error ;\n if ( ! ReadOneWChar ( io , & a . Value , i , & ValueWCS ) ) goto Error ;\n if ( Length > 16 ) {\n if ( ! ReadOneMLUC ( self , io , & a . DisplayName , i , & DisplayNameMLU ) ) goto Error ;\n }\n if ( Length > 24 ) {\n if ( ! ReadOneMLUC ( self , io , & a . DisplayValue , i , & DisplayValueMLU ) ) goto Error ;\n }\n if ( NameWCS == NULL || ValueWCS == NULL ) {\n cmsSignalError ( self -> ContextID , cmsERROR_CORRUPTION_DETECTED , \"Bad dictionary Name/Value\" ) ;\n rc = FALSE ;\n }\n else {\n rc = cmsDictAddEntry ( hDict , NameWCS , ValueWCS , DisplayNameMLU , DisplayValueMLU ) ;\n }\n if ( NameWCS != NULL ) _cmsFree ( self -> ContextID , NameWCS ) ;\n if ( ValueWCS != NULL ) _cmsFree ( self -> ContextID , ValueWCS ) ;\n if ( DisplayNameMLU != NULL ) cmsMLUfree ( DisplayNameMLU ) ;\n if ( DisplayValueMLU != NULL ) cmsMLUfree ( DisplayValueMLU ) ;\n if ( ! rc ) goto Error ;\n }\n FreeArray ( & a ) ;\n * nItems = 1 ;\n return ( void * ) hDict ;\n Error : FreeArray ( & a ) ;\n cmsDictFree ( hDict ) ;\n return NULL ;\n }"}
{"idx": 3522, "target": 0, "func": "TSReturnCode TSHttpTxnParentSelectionUrlGet ( TSHttpTxn txnp , TSMBuffer bufp , TSMLoc obj ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_url_handle ( obj ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n URL u , * l_url ;\n u . m_heap = ( ( HdrHeapSDKHandle * ) bufp ) -> m_heap ;\n u . m_url_impl = ( URLImpl * ) obj ;\n if ( ! u . valid ( ) ) return TS_ERROR ;\n l_url = sm -> t_state . cache_info . parent_selection_url ;\n if ( l_url && l_url -> valid ( ) ) {\n u . copy ( l_url ) ;\n return TS_SUCCESS ;\n }\n return TS_ERROR ;\n }"}
{"idx": 3523, "target": 0, "func": "static int8_t highBit ( int32_t value ) {\n int8_t bit = 0 ;\n if ( value <= 0 ) {\n return - 32 ;\n }\n if ( value >= 1 << 16 ) {\n value >>= 16 ;\n bit += 16 ;\n }\n if ( value >= 1 << 8 ) {\n value >>= 8 ;\n bit += 8 ;\n }\n if ( value >= 1 << 4 ) {\n value >>= 4 ;\n bit += 4 ;\n }\n if ( value >= 1 << 2 ) {\n value >>= 2 ;\n bit += 2 ;\n }\n if ( value >= 1 << 1 ) {\n bit += 1 ;\n }\n return bit ;\n }"}
{"idx": 3524, "target": 0, "func": "static int checkmonth ( const char * check ) {\n int i ;\n const char * const * what ;\n bool found = FALSE ;\n what = & Curl_month [ 0 ] ;\n for ( i = 0 ;\n i < 12 ;\n i ++ ) {\n if ( Curl_raw_equal ( check , what [ 0 ] ) ) {\n found = TRUE ;\n break ;\n }\n what ++ ;\n }\n return found ? i : - 1 ;\n }"}
{"idx": 3525, "target": 0, "func": "relpRetVal relpTcpSetDHBits ( relpTcp_t * pThis , int bits ) {\n ENTER_RELPFUNC ;\n RELPOBJ_assert ( pThis , Tcp ) ;\n pThis -> dhBits = bits ;\n LEAVE_RELPFUNC ;\n }"}
{"idx": 3526, "target": 0, "func": "static int virtio_net_handle_vlan_table ( VirtIONet * n , uint8_t cmd , VirtQueueElement * elem ) {\n uint16_t vid ;\n if ( elem -> out_num != 2 || elem -> out_sg [ 1 ] . iov_len != sizeof ( vid ) ) {\n error_report ( \"virtio-net ctrl invalid vlan command\" ) ;\n return VIRTIO_NET_ERR ;\n }\n vid = lduw_p ( elem -> out_sg [ 1 ] . iov_base ) ;\n if ( vid >= MAX_VLAN ) return VIRTIO_NET_ERR ;\n if ( cmd == VIRTIO_NET_CTRL_VLAN_ADD ) n -> vlans [ vid >> 5 ] |= ( 1U << ( vid & 0x1f ) ) ;\n else if ( cmd == VIRTIO_NET_CTRL_VLAN_DEL ) n -> vlans [ vid >> 5 ] &= ~ ( 1U << ( vid & 0x1f ) ) ;\n else return VIRTIO_NET_ERR ;\n return VIRTIO_NET_OK ;\n }"}
{"idx": 3527, "target": 0, "func": "static void dump_ah_combs ( struct sk_buff * skb , const struct xfrm_tmpl * t ) {\n struct sadb_prop * p ;\n int i ;\n p = ( struct sadb_prop * ) skb_put ( skb , sizeof ( struct sadb_prop ) ) ;\n p -> sadb_prop_len = sizeof ( struct sadb_prop ) / 8 ;\n p -> sadb_prop_exttype = SADB_EXT_PROPOSAL ;\n p -> sadb_prop_replay = 32 ;\n memset ( p -> sadb_prop_reserved , 0 , sizeof ( p -> sadb_prop_reserved ) ) ;\n for ( i = 0 ;\n ;\n i ++ ) {\n const struct xfrm_algo_desc * aalg = xfrm_aalg_get_byidx ( i ) ;\n if ( ! aalg ) break ;\n if ( ! aalg -> pfkey_supported ) continue ;\n if ( aalg_tmpl_set ( t , aalg ) && aalg -> available ) {\n struct sadb_comb * c ;\n c = ( struct sadb_comb * ) skb_put ( skb , sizeof ( struct sadb_comb ) ) ;\n memset ( c , 0 , sizeof ( * c ) ) ;\n p -> sadb_prop_len += sizeof ( struct sadb_comb ) / 8 ;\n c -> sadb_comb_auth = aalg -> desc . sadb_alg_id ;\n c -> sadb_comb_auth_minbits = aalg -> desc . sadb_alg_minbits ;\n c -> sadb_comb_auth_maxbits = aalg -> desc . sadb_alg_maxbits ;\n c -> sadb_comb_hard_addtime = 24 * 60 * 60 ;\n c -> sadb_comb_soft_addtime = 20 * 60 * 60 ;\n c -> sadb_comb_hard_usetime = 8 * 60 * 60 ;\n c -> sadb_comb_soft_usetime = 7 * 60 * 60 ;\n }\n }\n }"}
{"idx": 3528, "target": 0, "func": "static int dissect_pvfs_pdu ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n dissect_pvfs_common ( tvb , pinfo , tree , FALSE ) ;\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 3529, "target": 0, "func": "TEST ( AutocompleteMatchTest , SupportsDeletion ) {\n AutocompleteMatch m ( NULL , 0 , false , AutocompleteMatchType : : URL_WHAT_YOU_TYPED ) ;\n EXPECT_FALSE ( m . SupportsDeletion ( ) ) ;\n AutocompleteMatch m1 ( NULL , 0 , true , AutocompleteMatchType : : URL_WHAT_YOU_TYPED ) ;\n EXPECT_TRUE ( m1 . SupportsDeletion ( ) ) ;\n m . duplicate_matches . push_back ( AutocompleteMatch ( NULL , 0 , false , AutocompleteMatchType : : URL_WHAT_YOU_TYPED ) ) ;\n m . duplicate_matches . push_back ( AutocompleteMatch ( NULL , 0 , false , AutocompleteMatchType : : URL_WHAT_YOU_TYPED ) ) ;\n EXPECT_FALSE ( m . SupportsDeletion ( ) ) ;\n m . duplicate_matches . push_back ( AutocompleteMatch ( NULL , 0 , true , AutocompleteMatchType : : URL_WHAT_YOU_TYPED ) ) ;\n EXPECT_TRUE ( m . SupportsDeletion ( ) ) ;\n }"}
{"idx": 3530, "target": 1, "func": "static int ra288_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n float * out ;\n int i , ret ;\n RA288Context * ractx = avctx -> priv_data ;\n GetBitContext gb ;\n if ( buf_size < avctx -> block_align ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error! Input buffer is too small [%d<%d]\\n\" , buf_size , avctx -> block_align ) ;\n return AVERROR_INVALIDDATA ;\n }\n frame -> nb_samples = RA288_BLOCK_SIZE * RA288_BLOCKS_PER_FRAME ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n out = ( float * ) frame -> data [ 0 ] ;\n init_get_bits ( & gb , buf , avctx -> block_align * 8 ) ;\n for ( i = 0 ;\n i < RA288_BLOCKS_PER_FRAME ;\n i ++ ) {\n float gain = amptable [ get_bits ( & gb , 3 ) ] ;\n int cb_coef = get_bits ( & gb , 6 + ( i & 1 ) ) ;\n decode ( ractx , gain , cb_coef ) ;\n memcpy ( out , & ractx -> sp_hist [ 70 + 36 ] , RA288_BLOCK_SIZE * sizeof ( * out ) ) ;\n out += RA288_BLOCK_SIZE ;\n if ( ( i & 7 ) == 3 ) {\n backward_filter ( ractx , ractx -> sp_hist , ractx -> sp_rec , syn_window , ractx -> sp_lpc , syn_bw_tab , 36 , 40 , 35 , 70 ) ;\n backward_filter ( ractx , ractx -> gain_hist , ractx -> gain_rec , gain_window , ractx -> gain_lpc , gain_bw_tab , 10 , 8 , 20 , 28 ) ;\n }\n }\n * got_frame_ptr = 1 ;\n return avctx -> block_align ;\n }"}
{"idx": 3531, "target": 0, "func": "static int pfkey_recvmsg ( struct kiocb * kiocb , struct socket * sock , struct msghdr * msg , size_t len , int flags ) {\n struct sock * sk = sock -> sk ;\n struct pfkey_sock * pfk = pfkey_sk ( sk ) ;\n struct sk_buff * skb ;\n int copied , err ;\n err = - EINVAL ;\n if ( flags & ~ ( MSG_PEEK | MSG_DONTWAIT | MSG_TRUNC | MSG_CMSG_COMPAT ) ) goto out ;\n msg -> msg_namelen = 0 ;\n skb = skb_recv_datagram ( sk , flags , flags & MSG_DONTWAIT , & err ) ;\n if ( skb == NULL ) goto out ;\n copied = skb -> len ;\n if ( copied > len ) {\n msg -> msg_flags |= MSG_TRUNC ;\n copied = len ;\n }\n skb_reset_transport_header ( skb ) ;\n err = skb_copy_datagram_iovec ( skb , 0 , msg -> msg_iov , copied ) ;\n if ( err ) goto out_free ;\n sock_recv_ts_and_drops ( msg , sk , skb ) ;\n err = ( flags & MSG_TRUNC ) ? skb -> len : copied ;\n if ( pfk -> dump . dump != NULL && * atomic_read ( & sk -> sk_rmem_alloc ) <= sk -> sk_rcvbuf ) pfkey_do_dump ( pfk ) ;\n out_free : skb_free_datagram ( sk , skb ) ;\n out : return err ;\n }"}
{"idx": 3532, "target": 0, "func": "static void raw ( struct parse * pcmd , FILE * fp ) {\n rawmode = 1 ;\n ( void ) fprintf ( fp , \"Output set to raw\\n\" ) ;\n }"}
{"idx": 3533, "target": 0, "func": "static void test_bug11909 ( ) {\n MYSQL_STMT * stmt1 , * stmt2 ;\n MYSQL_BIND my_bind [ 7 ] ;\n int rc ;\n char firstname [ 20 ] , midinit [ 20 ] , lastname [ 20 ] , workdept [ 20 ] ;\n ulong firstname_len , midinit_len , lastname_len , workdept_len ;\n uint32 empno ;\n double salary ;\n float bonus ;\n const char * stmt_text ;\n myheader ( \"test_bug11909\" ) ;\n stmt_text = \"drop table if exists t1\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt_text = \"create table t1 (\" \" empno int(11) not null, firstname varchar(20) not null,\" \" midinit varchar(20) not null, lastname varchar(20) not null,\" \" workdept varchar(6) not null, salary double not null,\" \" bonus float not null, primary key (empno)\" \") default charset=latin1 collate=latin1_bin\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt_text = \"insert into t1 values \" \"(10, 'CHRISTINE', 'I', 'HAAS', 'A00', 52750, 1000), \" \"(20, 'MICHAEL', 'L', 'THOMPSON', 'B01', 41250, 800),\" \"(30, 'SALLY', 'A', 'KWAN', 'C01', 38250, 800),\" \"(50, 'JOHN', 'B', 'GEYER', 'E01', 40175, 800), \" \"(60, 'IRVING', 'F', 'STERN', 'D11', 32250, 500)\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt1 = open_cursor ( \"SELECT empno, firstname, midinit, lastname,\" \"workdept, salary, bonus FROM t1\" ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 0 ] . buffer = ( void * ) & empno ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_VAR_STRING ;\n my_bind [ 1 ] . buffer = ( void * ) firstname ;\n my_bind [ 1 ] . buffer_length = sizeof ( firstname ) ;\n my_bind [ 1 ] . length = & firstname_len ;\n my_bind [ 2 ] . buffer_type = MYSQL_TYPE_VAR_STRING ;\n my_bind [ 2 ] . buffer = ( void * ) midinit ;\n my_bind [ 2 ] . buffer_length = sizeof ( midinit ) ;\n my_bind [ 2 ] . length = & midinit_len ;\n my_bind [ 3 ] . buffer_type = MYSQL_TYPE_VAR_STRING ;\n my_bind [ 3 ] . buffer = ( void * ) lastname ;\n my_bind [ 3 ] . buffer_length = sizeof ( lastname ) ;\n my_bind [ 3 ] . length = & lastname_len ;\n my_bind [ 4 ] . buffer_type = MYSQL_TYPE_VAR_STRING ;\n my_bind [ 4 ] . buffer = ( void * ) workdept ;\n my_bind [ 4 ] . buffer_length = sizeof ( workdept ) ;\n my_bind [ 4 ] . length = & workdept_len ;\n my_bind [ 5 ] . buffer_type = MYSQL_TYPE_DOUBLE ;\n my_bind [ 5 ] . buffer = ( void * ) & salary ;\n my_bind [ 6 ] . buffer_type = MYSQL_TYPE_FLOAT ;\n my_bind [ 6 ] . buffer = ( void * ) & bonus ;\n rc = mysql_stmt_bind_result ( stmt1 , my_bind ) ;\n check_execute ( stmt1 , rc ) ;\n rc = mysql_stmt_execute ( stmt1 ) ;\n check_execute ( stmt1 , rc ) ;\n rc = mysql_stmt_fetch ( stmt1 ) ;\n DIE_UNLESS ( rc == 0 ) ;\n DIE_UNLESS ( empno == 10 ) ;\n DIE_UNLESS ( strcmp ( firstname , \"CHRISTINE\" ) == 0 ) ;\n DIE_UNLESS ( strcmp ( midinit , \"I\" ) == 0 ) ;\n DIE_UNLESS ( strcmp ( lastname , \"HAAS\" ) == 0 ) ;\n DIE_UNLESS ( strcmp ( workdept , \"A00\" ) == 0 ) ;\n DIE_UNLESS ( salary == ( double ) 52750.0 ) ;\n DIE_UNLESS ( bonus == ( float ) 1000.0 ) ;\n stmt2 = open_cursor ( \"SELECT empno, firstname FROM t1\" ) ;\n rc = mysql_stmt_bind_result ( stmt2 , my_bind ) ;\n check_execute ( stmt2 , rc ) ;\n rc = mysql_stmt_execute ( stmt2 ) ;\n check_execute ( stmt2 , rc ) ;\n rc = mysql_stmt_fetch ( stmt2 ) ;\n DIE_UNLESS ( rc == 0 ) ;\n DIE_UNLESS ( empno == 10 ) ;\n DIE_UNLESS ( strcmp ( firstname , \"CHRISTINE\" ) == 0 ) ;\n rc = mysql_stmt_reset ( stmt2 ) ;\n check_execute ( stmt2 , rc ) ;\n rc = mysql_stmt_fetch ( stmt1 ) ;\n DIE_UNLESS ( rc == 0 ) ;\n mysql_stmt_close ( stmt1 ) ;\n mysql_stmt_close ( stmt2 ) ;\n rc = mysql_rollback ( mysql ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"drop table t1\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 3534, "target": 0, "func": "static int dissect_h225_IA5String_SIZE_1_64 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_IA5String ( tvb , offset , actx , tree , hf_index , 1 , 64 , FALSE ) ;\n return offset ;\n }"}
{"idx": 3535, "target": 0, "func": "int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) {\n int w , v , iv ;\n unsigned char * c ;\n w = n / 8 ;\n v = 1 << ( 7 - ( n & 0x07 ) ) ;\n iv = ~ v ;\n if ( ! value ) v = 0 ;\n if ( a == NULL ) return 0 ;\n a -> flags &= ~ ( ASN1_STRING_FLAG_BITS_LEFT | 0x07 ) ;\n if ( ( a -> length < ( w + 1 ) ) || ( a -> data == NULL ) ) {\n if ( ! value ) return ( 1 ) ;\n if ( a -> data == NULL ) c = ( unsigned char * ) OPENSSL_malloc ( w + 1 ) ;\n else c = ( unsigned char * ) OPENSSL_realloc_clean ( a -> data , a -> length , w + 1 ) ;\n if ( c == NULL ) {\n ASN1err ( ASN1_F_ASN1_BIT_STRING_SET_BIT , ERR_R_MALLOC_FAILURE ) ;\n return 0 ;\n }\n if ( w + 1 - a -> length > 0 ) memset ( c + a -> length , 0 , w + 1 - a -> length ) ;\n a -> data = c ;\n a -> length = w + 1 ;\n }\n a -> data [ w ] = ( ( a -> data [ w ] ) & iv ) | v ;\n while ( ( a -> length > 0 ) && ( a -> data [ a -> length - 1 ] == 0 ) ) a -> length -- ;\n return ( 1 ) ;\n }"}
{"idx": 3536, "target": 0, "func": "void config_filter_add_all ( struct config_filter_context * ctx , struct config_filter_parser * const * parsers ) {\n ctx -> parsers = parsers ;\n }"}
{"idx": 3537, "target": 0, "func": "static void start_monitoring_file_list ( NautilusDirectory * directory ) {\n DirectoryLoadState * state ;\n if ( ! directory -> details -> file_list_monitored ) {\n g_assert ( ! directory -> details -> directory_load_in_progress ) ;\n directory -> details -> file_list_monitored = TRUE ;\n nautilus_file_list_ref ( directory -> details -> file_list ) ;\n }\n if ( directory -> details -> directory_loaded || directory -> details -> directory_load_in_progress != NULL ) {\n return ;\n }\n if ( ! async_job_start ( directory , \"file list\" ) ) {\n return ;\n }\n mark_all_files_unconfirmed ( directory ) ;\n state = g_new0 ( DirectoryLoadState , 1 ) ;\n state -> directory = directory ;\n state -> cancellable = g_cancellable_new ( ) ;\n state -> load_mime_list_hash = istr_set_new ( ) ;\n state -> load_file_count = 0 ;\n g_assert ( directory -> details -> location != NULL ) ;\n state -> load_directory_file = nautilus_directory_get_corresponding_file ( directory ) ;\n state -> load_directory_file -> details -> loading_directory = TRUE ;\n # ifdef DEBUG_LOAD_DIRECTORY g_message ( \"load_directory called to monitor file list of %p\" , directory -> details -> location ) ;\n # endif directory -> details -> directory_load_in_progress = state ;\n g_file_enumerate_children_async ( directory -> details -> location , NAUTILUS_FILE_DEFAULT_ATTRIBUTES , 0 , G_PRIORITY_DEFAULT , state -> cancellable , enumerate_children_callback , state ) ;\n }"}
{"idx": 3538, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( DownloadNotificationTest , DownloadFile ) {\n CreateDownload ( ) ;\n EXPECT_EQ ( l10n_util : : GetStringFUTF16 ( IDS_DOWNLOAD_STATUS_IN_PROGRESS_TITLE , download_item ( ) -> GetFileNameToReportUser ( ) . LossyDisplayName ( ) ) , notification ( ) -> title ( ) ) ;\n EXPECT_EQ ( message_center : : NOTIFICATION_TYPE_PROGRESS , notification ( ) -> type ( ) ) ;\n EXPECT_TRUE ( notification ( ) ) ;\n VerifyUpdatePropagatesToNotification ( download_item ( ) ) ;\n CompleteTheDownload ( ) ;\n ASSERT_TRUE ( notification ( ) ) ;\n EXPECT_EQ ( l10n_util : : GetStringUTF16 ( IDS_DOWNLOAD_STATUS_COMPLETE_TITLE ) , notification ( ) -> title ( ) ) ;\n EXPECT_EQ ( download_item ( ) -> GetFileNameToReportUser ( ) . LossyDisplayName ( ) , notification ( ) -> message ( ) ) ;\n EXPECT_EQ ( message_center : : NOTIFICATION_TYPE_BASE_FORMAT , notification ( ) -> type ( ) ) ;\n ASSERT_EQ ( 1u , GetDownloadNotifications ( ) . size ( ) ) ;\n EXPECT_FALSE ( GetDownloadManagerDelegate ( ) -> opened ( ) ) ;\n display_service_ -> SimulateClick ( NotificationHandler : : Type : : TRANSIENT , notification_id ( ) , base : : nullopt , base : : nullopt ) ;\n EXPECT_TRUE ( GetDownloadManagerDelegate ( ) -> opened ( ) ) ;\n EXPECT_FALSE ( GetNotification ( notification_id ( ) ) ) ;\n }"}
{"idx": 3539, "target": 0, "func": "static proto_item * proto_tree_new_item ( field_info * new_fi , proto_tree * tree , tvbuff_t * tvb , gint start , gint length , guint encoding ) {\n proto_item * pi ;\n guint32 value , n ;\n float floatval ;\n double doubleval ;\n const char * stringval ;\n nstime_t time_stamp ;\n gboolean length_error ;\n switch ( new_fi -> hfinfo -> type ) {\n case FT_NONE : break ;\n case FT_PROTOCOL : proto_tree_set_protocol_tvb ( new_fi , tvb , new_fi -> hfinfo -> name ) ;\n break ;\n case FT_BYTES : proto_tree_set_bytes_tvb ( new_fi , tvb , start , length ) ;\n break ;\n case FT_UINT_BYTES : if ( encoding ) encoding = ENC_LITTLE_ENDIAN ;\n n = get_uint_value ( tree , tvb , start , length , encoding ) ;\n proto_tree_set_bytes_tvb ( new_fi , tvb , start + length , n ) ;\n new_fi -> length = n + length ;\n break ;\n case FT_BOOLEAN : if ( encoding ) encoding = ENC_LITTLE_ENDIAN ;\n proto_tree_set_boolean ( new_fi , get_uint64_value ( tree , tvb , start , length , encoding ) ) ;\n break ;\n case FT_UINT8 : case FT_UINT16 : case FT_UINT24 : case FT_UINT32 : if ( encoding ) encoding = ENC_LITTLE_ENDIAN ;\n proto_tree_set_uint ( new_fi , get_uint_value ( tree , tvb , start , length , encoding ) ) ;\n break ;\n case FT_UINT40 : case FT_UINT48 : case FT_UINT56 : case FT_UINT64 : if ( encoding ) encoding = ENC_LITTLE_ENDIAN ;\n proto_tree_set_uint64 ( new_fi , get_uint64_value ( tree , tvb , start , length , encoding ) ) ;\n break ;\n case FT_INT8 : case FT_INT16 : case FT_INT24 : case FT_INT32 : if ( encoding ) encoding = ENC_LITTLE_ENDIAN ;\n proto_tree_set_int ( new_fi , get_int_value ( tree , tvb , start , length , encoding ) ) ;\n break ;\n case FT_INT40 : case FT_INT48 : case FT_INT56 : case FT_INT64 : if ( encoding ) encoding = ENC_LITTLE_ENDIAN ;\n proto_tree_set_int64 ( new_fi , get_int64_value ( tree , tvb , start , length , encoding ) ) ;\n break ;\n case FT_IPv4 : if ( encoding ) encoding = ENC_LITTLE_ENDIAN ;\n if ( length != FT_IPv4_LEN ) {\n length_error = length < FT_IPv4_LEN ? TRUE : FALSE ;\n report_type_length_mismatch ( tree , \"an IPv4 address\" , length , length_error ) ;\n }\n value = tvb_get_ipv4 ( tvb , start ) ;\n proto_tree_set_ipv4 ( new_fi , encoding ? GUINT32_SWAP_LE_BE ( value ) : value ) ;\n break ;\n case FT_IPXNET : if ( length != FT_IPXNET_LEN ) {\n length_error = length < FT_IPXNET_LEN ? TRUE : FALSE ;\n report_type_length_mismatch ( tree , \"an IPXNET address\" , length , length_error ) ;\n }\n proto_tree_set_ipxnet ( new_fi , get_uint_value ( tree , tvb , start , FT_IPXNET_LEN , ENC_BIG_ENDIAN ) ) ;\n break ;\n case FT_IPv6 : if ( length != FT_IPv6_LEN ) {\n length_error = length < FT_IPv6_LEN ? TRUE : FALSE ;\n report_type_length_mismatch ( tree , \"an IPv6 address\" , length , length_error ) ;\n }\n proto_tree_set_ipv6_tvb ( new_fi , tvb , start , length ) ;\n break ;\n case FT_FCWWN : if ( length != FT_FCWWN_LEN ) {\n length_error = length < FT_FCWWN_LEN ? TRUE : FALSE ;\n report_type_length_mismatch ( tree , \"an FCWWN address\" , length , length_error ) ;\n }\n proto_tree_set_fcwwn_tvb ( new_fi , tvb , start , length ) ;\n break ;\n case FT_AX25 : if ( length != 7 ) {\n length_error = length < 7 ? TRUE : FALSE ;\n report_type_length_mismatch ( tree , \"an AX.25 address\" , length , length_error ) ;\n }\n proto_tree_set_ax25_tvb ( new_fi , tvb , start ) ;\n break ;\n case FT_VINES : if ( length != VINES_ADDR_LEN ) {\n length_error = length < VINES_ADDR_LEN ? TRUE : FALSE ;\n report_type_length_mismatch ( tree , \"a Vines address\" , length , length_error ) ;\n }\n proto_tree_set_vines_tvb ( new_fi , tvb , start ) ;\n break ;\n case FT_ETHER : if ( length != FT_ETHER_LEN ) {\n length_error = length < FT_ETHER_LEN ? TRUE : FALSE ;\n report_type_length_mismatch ( tree , \"a MAC address\" , length , length_error ) ;\n }\n proto_tree_set_ether_tvb ( new_fi , tvb , start ) ;\n break ;\n case FT_EUI64 : if ( encoding ) encoding = ENC_LITTLE_ENDIAN ;\n if ( length != FT_EUI64_LEN ) {\n length_error = length < FT_EUI64_LEN ? TRUE : FALSE ;\n report_type_length_mismatch ( tree , \"an EUI-64 address\" , length , length_error ) ;\n }\n proto_tree_set_eui64_tvb ( new_fi , tvb , start , encoding ) ;\n break ;\n case FT_GUID : if ( encoding ) encoding = ENC_LITTLE_ENDIAN ;\n if ( length != FT_GUID_LEN ) {\n length_error = length < FT_GUID_LEN ? TRUE : FALSE ;\n report_type_length_mismatch ( tree , \"a GUID\" , length , length_error ) ;\n }\n proto_tree_set_guid_tvb ( new_fi , tvb , start , encoding ) ;\n break ;\n case FT_OID : case FT_REL_OID : proto_tree_set_oid_tvb ( new_fi , tvb , start , length ) ;\n break ;\n case FT_SYSTEM_ID : proto_tree_set_system_id_tvb ( new_fi , tvb , start , length ) ;\n break ;\n case FT_FLOAT : if ( encoding ) encoding = ENC_LITTLE_ENDIAN ;\n if ( length != 4 ) {\n length_error = length < 4 ? TRUE : FALSE ;\n report_type_length_mismatch ( tree , \"a single-precision floating point number\" , length , length_error ) ;\n }\n if ( encoding ) floatval = tvb_get_letohieee_float ( tvb , start ) ;\n else floatval = tvb_get_ntohieee_float ( tvb , start ) ;\n proto_tree_set_float ( new_fi , floatval ) ;\n break ;\n case FT_DOUBLE : if ( encoding == TRUE ) encoding = ENC_LITTLE_ENDIAN ;\n if ( length != 8 ) {\n length_error = length < 8 ? TRUE : FALSE ;\n report_type_length_mismatch ( tree , \"a double-precision floating point number\" , length , length_error ) ;\n }\n if ( encoding ) doubleval = tvb_get_letohieee_double ( tvb , start ) ;\n else doubleval = tvb_get_ntohieee_double ( tvb , start ) ;\n proto_tree_set_double ( new_fi , doubleval ) ;\n break ;\n case FT_STRING : stringval = get_string_value ( wmem_packet_scope ( ) , tvb , start , length , & length , encoding ) ;\n proto_tree_set_string ( new_fi , stringval ) ;\n new_fi -> length = length ;\n break ;\n case FT_STRINGZ : stringval = get_stringz_value ( wmem_packet_scope ( ) , tree , tvb , start , length , & length , encoding ) ;\n proto_tree_set_string ( new_fi , stringval ) ;\n new_fi -> length = length ;\n break ;\n case FT_UINT_STRING : if ( encoding == TRUE ) encoding = ENC_ASCII | ENC_LITTLE_ENDIAN ;\n stringval = get_uint_string_value ( wmem_packet_scope ( ) , tree , tvb , start , length , & length , encoding ) ;\n proto_tree_set_string ( new_fi , stringval ) ;\n new_fi -> length = length ;\n break ;\n case FT_STRINGZPAD : stringval = get_stringzpad_value ( wmem_packet_scope ( ) , tvb , start , length , & length , encoding ) ;\n proto_tree_set_string ( new_fi , stringval ) ;\n new_fi -> length = length ;\n break ;\n case FT_ABSOLUTE_TIME : if ( encoding == TRUE ) encoding = ENC_TIME_TIMESPEC | ENC_LITTLE_ENDIAN ;\n if ( length != 8 && length != 4 ) {\n length_error = length < 4 ? TRUE : FALSE ;\n report_type_length_mismatch ( tree , \"an absolute time value\" , length , length_error ) ;\n }\n get_time_value ( tvb , start , length , encoding , & time_stamp , FALSE ) ;\n proto_tree_set_time ( new_fi , & time_stamp ) ;\n break ;\n case FT_RELATIVE_TIME : if ( encoding == TRUE ) encoding = ENC_TIME_TIMESPEC | ENC_LITTLE_ENDIAN ;\n if ( length != 8 && length != 4 ) {\n length_error = length < 4 ? TRUE : FALSE ;\n report_type_length_mismatch ( tree , \"a relative time value\" , length , length_error ) ;\n }\n get_time_value ( tvb , start , length , encoding , & time_stamp , TRUE ) ;\n proto_tree_set_time ( new_fi , & time_stamp ) ;\n break ;\n case FT_IEEE_11073_SFLOAT : if ( encoding ) encoding = ENC_LITTLE_ENDIAN ;\n if ( length != 2 ) {\n length_error = length < 2 ? TRUE : FALSE ;\n report_type_length_mismatch ( tree , \"a IEEE 11073 SFLOAT\" , length , length_error ) ;\n }\n fvalue_set_uinteger ( & new_fi -> value , tvb_get_guint16 ( tvb , start , encoding ) ) ;\n break ;\n case FT_IEEE_11073_FLOAT : if ( encoding ) encoding = ENC_LITTLE_ENDIAN ;\n if ( length != 4 ) {\n length_error = length < 4 ? TRUE : FALSE ;\n report_type_length_mismatch ( tree , \"a IEEE 11073 FLOAT\" , length , length_error ) ;\n }\n break ;\n default : g_error ( \"new_fi->hfinfo->type %d (%s) not handled\\n\" , new_fi -> hfinfo -> type , ftype_name ( new_fi -> hfinfo -> type ) ) ;\n DISSECTOR_ASSERT_NOT_REACHED ( ) ;\n break ;\n }\n FI_SET_FLAG ( new_fi , ( encoding & ENC_LITTLE_ENDIAN ) ? FI_LITTLE_ENDIAN : FI_BIG_ENDIAN ) ;\n pi = proto_tree_add_node ( tree , new_fi ) ;\n return pi ;\n }"}
{"idx": 3540, "target": 0, "func": "static enum fetch_step vbf_stp_startfetch ( struct worker * wrk , struct busyobj * bo ) {\n int i ;\n double now ;\n CHECK_OBJ_NOTNULL ( wrk , WORKER_MAGIC ) ;\n CHECK_OBJ_NOTNULL ( bo , BUSYOBJ_MAGIC ) ;\n AZ ( bo -> storage ) ;\n AZ ( bo -> storage_hint ) ;\n bo -> storage = STV_next ( ) ;\n if ( bo -> retries > 0 ) http_Unset ( bo -> bereq , \"\\012X-Varnish:\" ) ;\n http_PrintfHeader ( bo -> bereq , \"X-Varnish: %u\" , VXID ( bo -> vsl -> wid ) ) ;\n VCL_backend_fetch_method ( bo -> vcl , wrk , NULL , bo , NULL ) ;\n bo -> uncacheable = bo -> do_pass ;\n if ( wrk -> handling == VCL_RET_ABANDON || wrk -> handling == VCL_RET_FAIL ) return ( F_STP_FAIL ) ;\n assert ( wrk -> handling == VCL_RET_FETCH ) ;\n HTTP_Setup ( bo -> beresp , bo -> ws , bo -> vsl , SLT_BerespMethod ) ;\n assert ( bo -> fetch_objcore -> boc -> state <= BOS_REQ_DONE ) ;\n AZ ( bo -> htc ) ;\n i = VDI_GetHdr ( wrk , bo ) ;\n now = W_TIM_real ( wrk ) ;\n VSLb_ts_busyobj ( bo , \"Beresp\" , now ) ;\n if ( i ) {\n assert ( bo -> director_state == DIR_S_NULL ) ;\n return ( F_STP_ERROR ) ;\n }\n http_VSL_log ( bo -> beresp ) ;\n if ( ! http_GetHdr ( bo -> beresp , H_Date , NULL ) ) {\n http_TimeHeader ( bo -> beresp , \"Date: \" , now ) ;\n }\n http_CollectHdr ( bo -> beresp , H_Cache_Control ) ;\n http_CollectHdr ( bo -> beresp , H_Vary ) ;\n if ( ! strcasecmp ( http_GetMethod ( bo -> bereq ) , \"head\" ) ) {\n wrk -> stats -> fetch_head ++ ;\n bo -> htc -> body_status = BS_NONE ;\n }\n else if ( http_GetStatus ( bo -> beresp ) <= 199 ) {\n wrk -> stats -> fetch_1xx ++ ;\n bo -> htc -> body_status = BS_ERROR ;\n }\n else if ( http_IsStatus ( bo -> beresp , 204 ) ) {\n wrk -> stats -> fetch_204 ++ ;\n if ( ( http_GetHdr ( bo -> beresp , H_Content_Length , NULL ) && bo -> htc -> content_length != 0 ) || http_GetHdr ( bo -> beresp , H_Transfer_Encoding , NULL ) ) bo -> htc -> body_status = BS_ERROR ;\n else bo -> htc -> body_status = BS_NONE ;\n }\n else if ( http_IsStatus ( bo -> beresp , 304 ) ) {\n wrk -> stats -> fetch_304 ++ ;\n bo -> htc -> body_status = BS_NONE ;\n }\n else if ( bo -> htc -> body_status == BS_CHUNKED ) {\n wrk -> stats -> fetch_chunked ++ ;\n }\n else if ( bo -> htc -> body_status == BS_LENGTH ) {\n assert ( bo -> htc -> content_length > 0 ) ;\n wrk -> stats -> fetch_length ++ ;\n }\n else if ( bo -> htc -> body_status == BS_EOF ) {\n wrk -> stats -> fetch_eof ++ ;\n }\n else if ( bo -> htc -> body_status == BS_ERROR ) {\n wrk -> stats -> fetch_bad ++ ;\n }\n else if ( bo -> htc -> body_status == BS_NONE ) {\n wrk -> stats -> fetch_none ++ ;\n }\n else {\n WRONG ( \"wrong bodystatus\" ) ;\n }\n if ( bo -> htc -> body_status == BS_ERROR ) {\n bo -> htc -> doclose = SC_RX_BODY ;\n VDI_Finish ( bo -> wrk , bo ) ;\n VSLb ( bo -> vsl , SLT_Error , \"Body cannot be fetched\" ) ;\n assert ( bo -> director_state == DIR_S_NULL ) ;\n return ( F_STP_ERROR ) ;\n }\n if ( bo -> fetch_objcore -> flags & OC_F_PRIVATE ) {\n bo -> fetch_objcore -> t_origin = now ;\n bo -> fetch_objcore -> ttl = - 1. ;\n bo -> fetch_objcore -> grace = 0 ;\n bo -> fetch_objcore -> keep = 0 ;\n }\n else {\n RFC2616_Ttl ( bo , now , & bo -> fetch_objcore -> t_origin , & bo -> fetch_objcore -> ttl , & bo -> fetch_objcore -> grace , & bo -> fetch_objcore -> keep ) ;\n }\n AZ ( bo -> do_esi ) ;\n AZ ( bo -> was_304 ) ;\n if ( http_IsStatus ( bo -> beresp , 304 ) ) {\n if ( bo -> stale_oc != NULL && ObjCheckFlag ( bo -> wrk , bo -> stale_oc , OF_IMSCAND ) ) {\n if ( ObjCheckFlag ( bo -> wrk , bo -> stale_oc , OF_CHGGZIP ) ) {\n http_Unset ( bo -> beresp , H_Content_Encoding ) ;\n RFC2616_Weaken_Etag ( bo -> beresp ) ;\n }\n http_Unset ( bo -> beresp , H_Content_Length ) ;\n HTTP_Merge ( bo -> wrk , bo -> stale_oc , bo -> beresp ) ;\n assert ( http_IsStatus ( bo -> beresp , 200 ) ) ;\n bo -> was_304 = 1 ;\n }\n else if ( ! bo -> do_pass ) {\n VSLb ( bo -> vsl , SLT_Error , \"304 response but not conditional fetch\" ) ;\n bo -> htc -> doclose = SC_RX_BAD ;\n VDI_Finish ( bo -> wrk , bo ) ;\n return ( F_STP_ERROR ) ;\n }\n }\n bo -> vfc -> bo = bo ;\n bo -> vfc -> oc = bo -> fetch_objcore ;\n bo -> vfc -> wrk = bo -> wrk ;\n bo -> vfc -> http = bo -> beresp ;\n bo -> vfc -> esi_req = bo -> bereq ;\n VCL_backend_response_method ( bo -> vcl , wrk , NULL , bo , NULL ) ;\n if ( wrk -> handling == VCL_RET_ABANDON || wrk -> handling == VCL_RET_FAIL ) {\n bo -> htc -> doclose = SC_RESP_CLOSE ;\n VDI_Finish ( bo -> wrk , bo ) ;\n return ( F_STP_FAIL ) ;\n }\n if ( wrk -> handling == VCL_RET_RETRY ) {\n if ( bo -> htc -> body_status != BS_NONE ) bo -> htc -> doclose = SC_RESP_CLOSE ;\n if ( bo -> director_state != DIR_S_NULL ) VDI_Finish ( bo -> wrk , bo ) ;\n if ( bo -> retries ++ < cache_param -> max_retries ) return ( F_STP_RETRY ) ;\n VSLb ( bo -> vsl , SLT_VCL_Error , \"Too many retries, delivering 503\" ) ;\n assert ( bo -> director_state == DIR_S_NULL ) ;\n return ( F_STP_ERROR ) ;\n }\n assert ( bo -> fetch_objcore -> boc -> state <= BOS_REQ_DONE ) ;\n if ( bo -> fetch_objcore -> boc -> state != BOS_REQ_DONE ) {\n bo -> req = NULL ;\n ObjSetState ( wrk , bo -> fetch_objcore , BOS_REQ_DONE ) ;\n }\n if ( bo -> do_esi ) bo -> do_stream = 0 ;\n if ( wrk -> handling == VCL_RET_PASS ) {\n bo -> fetch_objcore -> flags |= OC_F_HFP ;\n bo -> uncacheable = 1 ;\n wrk -> handling = VCL_RET_DELIVER ;\n }\n if ( bo -> do_pass || bo -> uncacheable ) bo -> fetch_objcore -> flags |= OC_F_PASS ;\n assert ( wrk -> handling == VCL_RET_DELIVER ) ;\n return ( bo -> was_304 ? F_STP_CONDFETCH : F_STP_FETCH ) ;\n }"}
{"idx": 3541, "target": 0, "func": "inline static HTTPHdr * find_appropriate_cached_resp ( HttpTransact : : State * s ) {\n HTTPHdr * c_resp = nullptr ;\n if ( s -> cache_info . object_store . valid ( ) ) {\n c_resp = s -> cache_info . object_store . response_get ( ) ;\n if ( c_resp != nullptr && c_resp -> valid ( ) ) {\n return c_resp ;\n }\n }\n ink_assert ( s -> cache_info . object_read != nullptr ) ;\n return s -> cache_info . object_read -> response_get ( ) ;\n }"}
{"idx": 3542, "target": 0, "func": "static struct sk_buff * compose_sadb_supported ( const struct sadb_msg * orig , gfp_t allocation ) {\n struct sk_buff * skb ;\n struct sadb_msg * hdr ;\n int len , auth_len , enc_len , i ;\n auth_len = xfrm_count_pfkey_auth_supported ( ) ;\n if ( auth_len ) {\n auth_len *= sizeof ( struct sadb_alg ) ;\n auth_len += sizeof ( struct sadb_supported ) ;\n }\n enc_len = xfrm_count_pfkey_enc_supported ( ) ;\n if ( enc_len ) {\n enc_len *= sizeof ( struct sadb_alg ) ;\n enc_len += sizeof ( struct sadb_supported ) ;\n }\n len = enc_len + auth_len + sizeof ( struct sadb_msg ) ;\n skb = alloc_skb ( len + 16 , allocation ) ;\n if ( ! skb ) goto out_put_algs ;\n hdr = ( struct sadb_msg * ) skb_put ( skb , sizeof ( * hdr ) ) ;\n pfkey_hdr_dup ( hdr , orig ) ;\n hdr -> sadb_msg_errno = 0 ;\n hdr -> sadb_msg_len = len / sizeof ( uint64_t ) ;\n if ( auth_len ) {\n struct sadb_supported * sp ;\n struct sadb_alg * ap ;\n sp = ( struct sadb_supported * ) skb_put ( skb , auth_len ) ;\n ap = ( struct sadb_alg * ) ( sp + 1 ) ;\n sp -> sadb_supported_len = auth_len / sizeof ( uint64_t ) ;\n sp -> sadb_supported_exttype = SADB_EXT_SUPPORTED_AUTH ;\n for ( i = 0 ;\n ;\n i ++ ) {\n struct xfrm_algo_desc * aalg = xfrm_aalg_get_byidx ( i ) ;\n if ( ! aalg ) break ;\n if ( ! aalg -> pfkey_supported ) continue ;\n if ( aalg -> available ) * ap ++ = aalg -> desc ;\n }\n }\n if ( enc_len ) {\n struct sadb_supported * sp ;\n struct sadb_alg * ap ;\n sp = ( struct sadb_supported * ) skb_put ( skb , enc_len ) ;\n ap = ( struct sadb_alg * ) ( sp + 1 ) ;\n sp -> sadb_supported_len = enc_len / sizeof ( uint64_t ) ;\n sp -> sadb_supported_exttype = SADB_EXT_SUPPORTED_ENCRYPT ;\n for ( i = 0 ;\n ;\n i ++ ) {\n struct xfrm_algo_desc * ealg = xfrm_ealg_get_byidx ( i ) ;\n if ( ! ealg ) break ;\n if ( ! ealg -> pfkey_supported ) continue ;\n if ( ealg -> available ) * ap ++ = ealg -> desc ;\n }\n }\n out_put_algs : return skb ;\n }"}
{"idx": 3543, "target": 0, "func": "void gx_device_set_width_height ( gx_device * dev , int width , int height ) {\n dev -> width = width ;\n dev -> height = height ;\n gx_device_set_media_from_hwsize ( dev ) ;\n }"}
{"idx": 3544, "target": 0, "func": "int cpu_signal_handler ( int host_signum , void * pinfo , void * puc ) {\n siginfo_t * info = pinfo ;\n unsigned long pc ;\n # if defined ( __NetBSD__ ) || defined ( __FreeBSD__ ) || defined ( __DragonFly__ ) ucontext_t * uc = puc ;\n # elif defined ( __OpenBSD__ ) struct sigcontext * uc = puc ;\n # else struct ucontext * uc = puc ;\n # endif pc = PC_sig ( uc ) ;\n return handle_cpu_signal ( pc , ( unsigned long ) info -> si_addr , TRAP_sig ( uc ) == 0xe ? ( ERROR_sig ( uc ) >> 1 ) & 1 : 0 , & MASK_sig ( uc ) , puc ) ;\n }"}
{"idx": 3545, "target": 0, "func": "static off_t dnsname_to_labels ( u8 * const buf , size_t buf_len , off_t j , const char * name , const int name_len , struct dnslabel_table * table ) {\n const char * end = name + name_len ;\n int ref = 0 ;\n u16 _t ;\n # define APPEND16 ( x ) do {\n if ( j + 2 > ( off_t ) buf_len ) goto overflow ;\n _t = htons ( x ) ;\n memcpy ( buf + j , & _t , 2 ) ;\n j += 2 ;\n }\n while ( 0 ) # define APPEND32 ( x ) do {\n if ( j + 4 > ( off_t ) buf_len ) goto overflow ;\n _t32 = htonl ( x ) ;\n memcpy ( buf + j , & _t32 , 4 ) ;\n j += 4 ;\n }\n while ( 0 ) if ( name_len > 255 ) return - 2 ;\n for ( ;\n ;\n ) {\n const char * const start = name ;\n if ( table && ( ref = dnslabel_table_get_pos ( table , name ) ) >= 0 ) {\n APPEND16 ( ref | 0xc000 ) ;\n return j ;\n }\n name = strchr ( name , '.' ) ;\n if ( ! name ) {\n const unsigned int label_len = end - start ;\n if ( label_len > 63 ) return - 1 ;\n if ( ( size_t ) ( j + label_len + 1 ) > buf_len ) return - 2 ;\n if ( table ) dnslabel_table_add ( table , start , j ) ;\n buf [ j ++ ] = label_len ;\n memcpy ( buf + j , start , end - start ) ;\n j += end - start ;\n break ;\n }\n else {\n const unsigned int label_len = name - start ;\n if ( label_len > 63 ) return - 1 ;\n if ( ( size_t ) ( j + label_len + 1 ) > buf_len ) return - 2 ;\n if ( table ) dnslabel_table_add ( table , start , j ) ;\n buf [ j ++ ] = label_len ;\n memcpy ( buf + j , start , name - start ) ;\n j += name - start ;\n name ++ ;\n }\n }\n if ( ! j || buf [ j - 1 ] ) buf [ j ++ ] = 0 ;\n return j ;\n overflow : return ( - 2 ) ;\n }"}
{"idx": 3546, "target": 0, "func": "static void weighted_vector_sumd ( double * out , const double * in_a , const double * in_b , double weight_coeff_a , double weight_coeff_b , int length ) {\n int i ;\n for ( i = 0 ;\n i < length ;\n i ++ ) out [ i ] = weight_coeff_a * in_a [ i ] + weight_coeff_b * in_b [ i ] ;\n }"}
{"idx": 3547, "target": 0, "func": "void hb_set_del_range ( hb_set_t * set , hb_codepoint_t first , hb_codepoint_t last ) {\n set -> del_range ( first , last ) ;\n }"}
{"idx": 3548, "target": 0, "func": "inline static void _slurm_rpc_top_job ( slurm_msg_t * msg ) {\n int error_code = SLURM_SUCCESS ;\n DEF_TIMERS ;\n top_job_msg_t * top_ptr = ( top_job_msg_t * ) msg -> data ;\n slurmctld_lock_t job_write_lock = {\n NO_LOCK , WRITE_LOCK , NO_LOCK , NO_LOCK , NO_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n debug ( \"Processing RPC: REQUEST_TOP_JOB from uid=%u\" , ( unsigned int ) uid ) ;\n START_TIMER ;\n lock_slurmctld ( job_write_lock ) ;\n error_code = job_set_top ( top_ptr , uid , msg -> conn_fd , msg -> protocol_version ) ;\n unlock_slurmctld ( job_write_lock ) ;\n END_TIMER2 ( \"_slurm_rpc_top\" ) ;\n if ( error_code ) {\n info ( \"%s for %s %s\" , __func__ , top_ptr -> job_id_str , slurm_strerror ( error_code ) ) ;\n }\n else {\n info ( \"%s for %s %s\" , __func__ , top_ptr -> job_id_str , TIME_STR ) ;\n }\n }"}
{"idx": 3549, "target": 0, "func": "static int decode ( MimicContext * ctx , int quality , int num_coeffs , int is_iframe ) {\n int ret , y , x , plane , cur_row = 0 ;\n for ( plane = 0 ;\n plane < 3 ;\n plane ++ ) {\n const int is_chroma = ! ! plane ;\n const int qscale = av_clip ( 10000 - quality , is_chroma ? 1000 : 2000 , 10000 ) << 2 ;\n const int stride = ctx -> flipped_ptrs [ ctx -> cur_index ] . linesize [ plane ] ;\n const uint8_t * src = ctx -> flipped_ptrs [ ctx -> prev_index ] . data [ plane ] ;\n uint8_t * dst = ctx -> flipped_ptrs [ ctx -> cur_index ] . data [ plane ] ;\n for ( y = 0 ;\n y < ctx -> num_vblocks [ plane ] ;\n y ++ ) {\n for ( x = 0 ;\n x < ctx -> num_hblocks [ plane ] ;\n x ++ ) {\n if ( is_iframe || get_bits1 ( & ctx -> gb ) == is_chroma ) {\n if ( is_chroma || is_iframe || ! get_bits1 ( & ctx -> gb ) ) {\n if ( ( ret = vlc_decode_block ( ctx , num_coeffs , qscale ) ) < 0 ) {\n av_log ( ctx -> avctx , AV_LOG_ERROR , \"Error decoding \" \"block.\\n\" ) ;\n return ret ;\n }\n ctx -> dsp . idct_put ( dst , stride , ctx -> dct_block ) ;\n }\n else {\n unsigned int backref = get_bits ( & ctx -> gb , 4 ) ;\n int index = ( ctx -> cur_index + backref ) & 15 ;\n uint8_t * p = ctx -> flipped_ptrs [ index ] . data [ 0 ] ;\n if ( index != ctx -> cur_index && p ) {\n ff_thread_await_progress ( & ctx -> frames [ index ] , cur_row , 0 ) ;\n p += src - ctx -> flipped_ptrs [ ctx -> prev_index ] . data [ plane ] ;\n ctx -> dsp . put_pixels_tab [ 1 ] [ 0 ] ( dst , p , stride , 8 ) ;\n }\n else {\n av_log ( ctx -> avctx , AV_LOG_ERROR , \"No such backreference! Buggy sample.\\n\" ) ;\n }\n }\n }\n else {\n ff_thread_await_progress ( & ctx -> frames [ ctx -> prev_index ] , cur_row , 0 ) ;\n ctx -> dsp . put_pixels_tab [ 1 ] [ 0 ] ( dst , src , stride , 8 ) ;\n }\n src += 8 ;\n dst += 8 ;\n }\n src += ( stride - ctx -> num_hblocks [ plane ] ) << 3 ;\n dst += ( stride - ctx -> num_hblocks [ plane ] ) << 3 ;\n ff_thread_report_progress ( & ctx -> frames [ ctx -> cur_index ] , cur_row ++ , 0 ) ;\n }\n }\n return 0 ;\n }"}
{"idx": 3550, "target": 0, "func": "static int vorbis_parse_setup_hdr_residues ( vorbis_context * vc ) {\n GetBitContext * gb = & vc -> gb ;\n unsigned i , j , k ;\n vc -> residue_count = get_bits ( gb , 6 ) + 1 ;\n vc -> residues = av_mallocz ( vc -> residue_count * sizeof ( * vc -> residues ) ) ;\n if ( ! vc -> residues ) return AVERROR ( ENOMEM ) ;\n av_dlog ( NULL , \" There are %d residues. \\n\" , vc -> residue_count ) ;\n for ( i = 0 ;\n i < vc -> residue_count ;\n ++ i ) {\n vorbis_residue * res_setup = & vc -> residues [ i ] ;\n uint8_t cascade [ 64 ] ;\n unsigned high_bits , low_bits ;\n res_setup -> type = get_bits ( gb , 16 ) ;\n av_dlog ( NULL , \" %u. residue type %d\\n\" , i , res_setup -> type ) ;\n res_setup -> begin = get_bits ( gb , 24 ) ;\n res_setup -> end = get_bits ( gb , 24 ) ;\n res_setup -> partition_size = get_bits ( gb , 24 ) + 1 ;\n if ( res_setup -> begin > res_setup -> end || res_setup -> end > ( res_setup -> type == 2 ? vc -> avctx -> channels : 1 ) * vc -> blocksize [ 1 ] / 2 || ( res_setup -> end - res_setup -> begin ) / res_setup -> partition_size > V_MAX_PARTITIONS ) {\n av_log ( vc -> avctx , AV_LOG_ERROR , \"partition out of bounds: type, begin, end, size, blocksize: %\" PRIu16 \", %\" PRIu32 \", %\" PRIu32 \", %u, %\" PRIu32 \"\\n\" , res_setup -> type , res_setup -> begin , res_setup -> end , res_setup -> partition_size , vc -> blocksize [ 1 ] / 2 ) ;\n return AVERROR_INVALIDDATA ;\n }\n res_setup -> classifications = get_bits ( gb , 6 ) + 1 ;\n GET_VALIDATED_INDEX ( res_setup -> classbook , 8 , vc -> codebook_count ) res_setup -> ptns_to_read = ( res_setup -> end - res_setup -> begin ) / res_setup -> partition_size ;\n res_setup -> classifs = av_malloc ( res_setup -> ptns_to_read * vc -> audio_channels * sizeof ( * res_setup -> classifs ) ) ;\n if ( ! res_setup -> classifs ) return AVERROR ( ENOMEM ) ;\n av_dlog ( NULL , \" begin %d end %d part.size %d classif.s %d classbook %d \\n\" , res_setup -> begin , res_setup -> end , res_setup -> partition_size , res_setup -> classifications , res_setup -> classbook ) ;\n for ( j = 0 ;\n j < res_setup -> classifications ;\n ++ j ) {\n high_bits = 0 ;\n low_bits = get_bits ( gb , 3 ) ;\n if ( get_bits1 ( gb ) ) high_bits = get_bits ( gb , 5 ) ;\n cascade [ j ] = ( high_bits << 3 ) + low_bits ;\n av_dlog ( NULL , \" %u class cascade depth: %d\\n\" , j , ilog ( cascade [ j ] ) ) ;\n }\n res_setup -> maxpass = 0 ;\n for ( j = 0 ;\n j < res_setup -> classifications ;\n ++ j ) {\n for ( k = 0 ;\n k < 8 ;\n ++ k ) {\n if ( cascade [ j ] & ( 1 << k ) ) {\n GET_VALIDATED_INDEX ( res_setup -> books [ j ] [ k ] , 8 , vc -> codebook_count ) av_dlog ( NULL , \" %u class cascade depth %u book: %d\\n\" , j , k , res_setup -> books [ j ] [ k ] ) ;\n if ( k > res_setup -> maxpass ) res_setup -> maxpass = k ;\n }\n else {\n res_setup -> books [ j ] [ k ] = - 1 ;\n }\n }\n }\n }\n return 0 ;\n }"}
{"idx": 3551, "target": 0, "func": "static UBool _isRegionSubtag ( const char * s , int32_t len ) {\n if ( len < 0 ) {\n len = ( int32_t ) uprv_strlen ( s ) ;\n }\n if ( len == 2 && _isAlphaString ( s , len ) ) {\n return TRUE ;\n }\n if ( len == 3 && _isNumericString ( s , len ) ) {\n return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 3552, "target": 0, "func": "ParseResult mime_parser_parse ( MIMEParser * parser , HdrHeap * heap , MIMEHdrImpl * mh , const char * * real_s , const char * real_e , bool must_copy_strings , bool eof ) {\n ParseResult err ;\n bool line_is_real ;\n const char * colon ;\n const char * line_c ;\n const char * line_s = nullptr ;\n const char * line_e = nullptr ;\n const char * field_name_first ;\n const char * field_name_last ;\n const char * field_value_first ;\n const char * field_value_last ;\n const char * field_line_first ;\n const char * field_line_last ;\n int field_name_length , field_value_length ;\n MIMEScanner * scanner = & parser -> m_scanner ;\n while ( true ) {\n err = mime_scanner_get ( scanner , real_s , real_e , & line_s , & line_e , & line_is_real , eof , MIME_SCANNER_TYPE_FIELD ) ;\n if ( err != PARSE_RESULT_OK ) {\n return err ;\n }\n line_c = line_s ;\n if ( ( line_e - line_c >= 2 ) && ( line_c [ 0 ] == ParseRules : : CHAR_CR ) && ( line_c [ 1 ] == ParseRules : : CHAR_LF ) ) {\n return PARSE_RESULT_DONE ;\n }\n if ( ( line_e - line_c >= 1 ) && ( line_c [ 0 ] == ParseRules : : CHAR_LF ) ) {\n return PARSE_RESULT_DONE ;\n }\n field_line_first = line_c ;\n field_line_last = line_e - 1 ;\n field_name_first = line_c ;\n if ( ( ! ParseRules : : is_token ( * field_name_first ) ) && ( * field_name_first != '@' ) ) {\n continue ;\n }\n colon = ( char * ) memchr ( line_c , ':' , ( line_e - line_c ) ) ;\n if ( ! colon ) {\n continue ;\n }\n field_name_last = colon - 1 ;\n if ( ( field_name_last >= field_name_first ) && is_ws ( * field_name_last ) ) {\n return PARSE_RESULT_ERROR ;\n }\n field_value_first = colon + 1 ;\n while ( ( field_value_first < line_e ) && is_ws ( * field_value_first ) ) {\n ++ field_value_first ;\n }\n field_value_last = line_e - 1 ;\n while ( ( field_value_last >= field_value_first ) && ParseRules : : is_wslfcr ( * field_value_last ) ) {\n -- field_value_last ;\n }\n field_name_length = ( int ) ( field_name_last - field_name_first + 1 ) ;\n field_value_length = ( int ) ( field_value_last - field_value_first + 1 ) ;\n if ( field_name_length >= UINT16_MAX || field_value_length >= UINT16_MAX ) {\n return PARSE_RESULT_ERROR ;\n }\n int total_line_length = ( int ) ( field_line_last - field_line_first + 1 ) ;\n if ( must_copy_strings || ( ! line_is_real ) ) {\n int length = total_line_length ;\n char * dup = heap -> duplicate_str ( field_name_first , length ) ;\n intptr_t delta = dup - field_name_first ;\n field_name_first += delta ;\n field_value_first += delta ;\n }\n int field_name_wks_idx = hdrtoken_tokenize ( field_name_first , field_name_length ) ;\n MIMEField * field = mime_field_create ( heap , mh ) ;\n mime_field_name_value_set ( heap , mh , field , field_name_wks_idx , field_name_first , field_name_length , field_value_first , field_value_length , true , total_line_length , false ) ;\n mime_hdr_field_attach ( mh , field , 1 , nullptr ) ;\n }\n }"}
{"idx": 3553, "target": 0, "func": "static ActivationAction get_executable_text_file_action ( GtkWindow * parent_window , NautilusFile * file ) {\n GtkDialog * dialog ;\n char * file_name ;\n char * prompt ;\n char * detail ;\n int preferences_value ;\n int response ;\n g_assert ( nautilus_file_contains_text ( file ) ) ;\n preferences_value = g_settings_get_enum ( nautilus_preferences , NAUTILUS_PREFERENCES_EXECUTABLE_TEXT_ACTIVATION ) ;\n switch ( preferences_value ) {\n case NAUTILUS_EXECUTABLE_TEXT_LAUNCH : {\n return ACTIVATION_ACTION_LAUNCH ;\n }\n case NAUTILUS_EXECUTABLE_TEXT_DISPLAY : {\n return ACTIVATION_ACTION_OPEN_IN_APPLICATION ;\n }\n case NAUTILUS_EXECUTABLE_TEXT_ASK : {\n }\n break ;\n default : g_warning ( \"Unknown value %d for NAUTILUS_PREFERENCES_EXECUTABLE_TEXT_ACTIVATION\" , preferences_value ) ;\n }\n file_name = nautilus_file_get_display_name ( file ) ;\n prompt = g_strdup_printf ( _ ( \"Do you want to run \u201c%s\u201d, or display its contents?\" ) , file_name ) ;\n detail = g_strdup_printf ( _ ( \"\u201c%s\u201d is an executable text file.\" ) , file_name ) ;\n g_free ( file_name ) ;\n dialog = eel_create_question_dialog ( prompt , detail , _ ( \"Run in _Terminal\" ) , RESPONSE_RUN_IN_TERMINAL , _ ( \"_Display\" ) , RESPONSE_DISPLAY , parent_window ) ;\n gtk_dialog_add_button ( dialog , _ ( \"_Cancel\" ) , GTK_RESPONSE_CANCEL ) ;\n gtk_dialog_add_button ( dialog , _ ( \"_Run\" ) , RESPONSE_RUN ) ;\n gtk_dialog_set_default_response ( dialog , GTK_RESPONSE_CANCEL ) ;\n gtk_widget_show ( GTK_WIDGET ( dialog ) ) ;\n g_free ( prompt ) ;\n g_free ( detail ) ;\n response = gtk_dialog_run ( dialog ) ;\n gtk_widget_destroy ( GTK_WIDGET ( dialog ) ) ;\n switch ( response ) {\n case RESPONSE_RUN : {\n return ACTIVATION_ACTION_LAUNCH ;\n }\n case RESPONSE_RUN_IN_TERMINAL : {\n return ACTIVATION_ACTION_LAUNCH_IN_TERMINAL ;\n }\n case RESPONSE_DISPLAY : {\n return ACTIVATION_ACTION_OPEN_IN_APPLICATION ;\n }\n default : return ACTIVATION_ACTION_DO_NOTHING ;\n }\n }"}
{"idx": 3554, "target": 0, "func": "static float eval_lpc_spectrum ( const float * lsp , float cos_val , int order ) {\n int j ;\n float p = 0.5f ;\n float q = 0.5f ;\n float two_cos_w = 2.0f * cos_val ;\n for ( j = 0 ;\n j + 1 < order ;\n j += 2 * 2 ) {\n q *= lsp [ j ] - two_cos_w ;\n p *= lsp [ j + 1 ] - two_cos_w ;\n q *= lsp [ j + 2 ] - two_cos_w ;\n p *= lsp [ j + 3 ] - two_cos_w ;\n }\n p *= p * ( 2.0f - two_cos_w ) ;\n q *= q * ( 2.0f + two_cos_w ) ;\n return 0.5 / ( p + q ) ;\n }"}
{"idx": 3555, "target": 0, "func": "TEST_F ( BrowsingDataRemoverImplTest , RemoveUnprotectedLocalStorageForever ) {\n # if BUILDFLAG ( ENABLE_EXTENSIONS ) MockExtensionSpecialStoragePolicy * policy = CreateMockPolicy ( ) ;\n policy -> AddProtected ( kOrigin1 . GetOrigin ( ) ) ;\n # endif BlockUntilBrowsingDataRemoved ( base : : Time ( ) , base : : Time : : Max ( ) , BrowsingDataRemover : : REMOVE_LOCAL_STORAGE , false ) ;\n EXPECT_EQ ( BrowsingDataRemover : : REMOVE_LOCAL_STORAGE , GetRemovalMask ( ) ) ;\n EXPECT_EQ ( BrowsingDataHelper : : UNPROTECTED_WEB , GetOriginTypeMask ( ) ) ;\n StoragePartitionRemovalData removal_data = GetStoragePartitionRemovalData ( ) ;\n EXPECT_EQ ( removal_data . remove_mask , StoragePartition : : REMOVE_DATA_MASK_LOCAL_STORAGE ) ;\n EXPECT_EQ ( removal_data . quota_storage_remove_mask , StoragePartition : : QUOTA_MANAGED_STORAGE_MASK_ALL ) ;\n EXPECT_EQ ( removal_data . remove_begin , GetBeginTime ( ) ) ;\n EXPECT_EQ ( ShouldRemoveForProtectedOriginOne ( ) , removal_data . origin_matcher . Run ( kOrigin1 , mock_policy ( ) ) ) ;\n EXPECT_TRUE ( removal_data . origin_matcher . Run ( kOrigin2 , mock_policy ( ) ) ) ;\n EXPECT_TRUE ( removal_data . origin_matcher . Run ( kOrigin3 , mock_policy ( ) ) ) ;\n EXPECT_FALSE ( removal_data . origin_matcher . Run ( kOriginExt , mock_policy ( ) ) ) ;\n }"}
{"idx": 3556, "target": 0, "func": "static int archive_read_format_cpio_cleanup ( struct archive_read * a ) {\n struct cpio * cpio ;\n cpio = ( struct cpio * ) ( a -> format -> data ) ;\n while ( cpio -> links_head != NULL ) {\n struct links_entry * lp = cpio -> links_head -> next ;\n if ( cpio -> links_head -> name ) free ( cpio -> links_head -> name ) ;\n free ( cpio -> links_head ) ;\n cpio -> links_head = lp ;\n }\n free ( cpio ) ;\n ( a -> format -> data ) = NULL ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 3557, "target": 0, "func": "static int selinux_socket_connect ( struct socket * sock , struct sockaddr * address , int addrlen ) {\n struct sock * sk = sock -> sk ;\n struct sk_security_struct * sksec = sk -> sk_security ;\n int err ;\n err = sock_has_perm ( current , sk , SOCKET__CONNECT ) ;\n if ( err ) return err ;\n if ( sksec -> sclass == SECCLASS_TCP_SOCKET || sksec -> sclass == SECCLASS_DCCP_SOCKET ) {\n struct common_audit_data ad ;\n struct lsm_network_audit net = {\n 0 , }\n ;\n struct sockaddr_in * addr4 = NULL ;\n struct sockaddr_in6 * addr6 = NULL ;\n unsigned short snum ;\n u32 sid , perm ;\n if ( sk -> sk_family == PF_INET ) {\n addr4 = ( struct sockaddr_in * ) address ;\n if ( addrlen < sizeof ( struct sockaddr_in ) ) return - EINVAL ;\n snum = ntohs ( addr4 -> sin_port ) ;\n }\n else {\n addr6 = ( struct sockaddr_in6 * ) address ;\n if ( addrlen < SIN6_LEN_RFC2133 ) return - EINVAL ;\n snum = ntohs ( addr6 -> sin6_port ) ;\n }\n err = sel_netport_sid ( sk -> sk_protocol , snum , & sid ) ;\n if ( err ) goto out ;\n perm = ( sksec -> sclass == SECCLASS_TCP_SOCKET ) ? TCP_SOCKET__NAME_CONNECT : DCCP_SOCKET__NAME_CONNECT ;\n ad . type = LSM_AUDIT_DATA_NET ;\n ad . u . net = & net ;\n ad . u . net -> dport = htons ( snum ) ;\n ad . u . net -> family = sk -> sk_family ;\n err = avc_has_perm ( sksec -> sid , sid , sksec -> sclass , perm , & ad ) ;\n if ( err ) goto out ;\n }\n err = selinux_netlbl_socket_connect ( sk , address ) ;\n out : return err ;\n }"}
{"idx": 3558, "target": 0, "func": "bool check_grant_all_columns ( THD * thd , ulong want_access_arg , Field_iterator_table_ref * fields ) {\n Security_context * sctx = thd -> security_ctx ;\n ulong want_access = want_access_arg ;\n const char * table_name = NULL ;\n const char * db_name ;\n GRANT_INFO * grant ;\n GRANT_TABLE * grant_table = NULL ;\n bool using_column_privileges = FALSE ;\n rw_rdlock ( & LOCK_grant ) ;\n for ( ;\n ! fields -> end_of_fields ( ) ;\n fields -> next ( ) ) {\n const char * field_name = fields -> name ( ) ;\n if ( table_name != fields -> get_table_name ( ) ) {\n table_name = fields -> get_table_name ( ) ;\n db_name = fields -> get_db_name ( ) ;\n grant = fields -> grant ( ) ;\n want_access = want_access_arg & ~ grant -> privilege ;\n if ( want_access ) {\n if ( grant -> version != grant_version ) {\n grant -> grant_table = table_hash_search ( sctx -> host , sctx -> ip , db_name , sctx -> priv_user , table_name , 0 ) ;\n grant -> version = grant_version ;\n }\n grant_table = grant -> grant_table ;\n DBUG_ASSERT ( grant_table ) ;\n }\n }\n if ( want_access ) {\n GRANT_COLUMN * grant_column = column_hash_search ( grant_table , field_name , ( uint ) strlen ( field_name ) ) ;\n if ( grant_column ) using_column_privileges = TRUE ;\n if ( ! grant_column || ( ~ grant_column -> rights & want_access ) ) goto err ;\n }\n }\n rw_unlock ( & LOCK_grant ) ;\n return 0 ;\n err : rw_unlock ( & LOCK_grant ) ;\n char command [ 128 ] ;\n get_privilege_desc ( command , sizeof ( command ) , want_access ) ;\n if ( using_column_privileges ) my_error ( ER_TABLEACCESS_DENIED_ERROR , MYF ( 0 ) , command , sctx -> priv_user , sctx -> host_or_ip , table_name ) ;\n else my_error ( ER_COLUMNACCESS_DENIED_ERROR , MYF ( 0 ) , command , sctx -> priv_user , sctx -> host_or_ip , fields -> name ( ) , table_name ) ;\n return 1 ;\n }"}
{"idx": 3559, "target": 0, "func": "static int cgroup_read_from_file ( const char * fn , char buf [ ] , size_t bufsize ) {\n int ret = lxc_read_from_file ( fn , buf , bufsize ) ;\n if ( ret < 0 ) {\n SYSERROR ( \"failed to read %s\" , fn ) ;\n return ret ;\n }\n if ( ret == bufsize ) {\n if ( bufsize > 0 ) {\n buf [ bufsize - 1 ] = '\\0' ;\n return ret ;\n }\n ERROR ( \"%s: was not expecting 0 bufsize\" , __func__ ) ;\n return - 1 ;\n }\n buf [ ret ] = '\\0' ;\n return ret ;\n }"}
{"idx": 3560, "target": 0, "func": "static int dissect_h245_RedundancyEncodingElement ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_RedundancyEncodingElement , RedundancyEncodingElement_sequence ) ;\n return offset ;\n }"}
{"idx": 3561, "target": 0, "func": "static void * Type_Data_Dup ( struct _cms_typehandler_struct * self , const void * Ptr , cmsUInt32Number n ) {\n cmsICCData * BinData = ( cmsICCData * ) Ptr ;\n return _cmsDupMem ( self -> ContextID , Ptr , sizeof ( cmsICCData ) + BinData -> len - 1 ) ;\n cmsUNUSED_PARAMETER ( n ) ;\n }"}
{"idx": 3562, "target": 0, "func": "static void ns_parse_answers_v0 ( tvbuff_t * tvb , gint * offset , proto_tree * alljoyn_tree , guint8 answers ) {\n while ( answers -- ) {\n proto_item * alljoyn_answers_ti ;\n proto_tree * alljoyn_answers_tree ;\n gint flags ;\n gint count ;\n alljoyn_answers_ti = proto_tree_add_item ( alljoyn_tree , hf_alljoyn_answer , tvb , * offset , 2 , ENC_NA ) ;\n alljoyn_answers_tree = proto_item_add_subtree ( alljoyn_answers_ti , ett_alljoyn_ns_answers ) ;\n proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_g_flag , tvb , * offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_c_flag , tvb , * offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_t_flag , tvb , * offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_u_flag , tvb , * offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_s_flag , tvb , * offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_f_flag , tvb , * offset , 1 , ENC_NA ) ;\n flags = tvb_get_guint8 ( tvb , * offset ) ;\n ( * offset ) += 1 ;\n proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_count , tvb , * offset , 1 , ENC_NA ) ;\n count = tvb_get_guint8 ( tvb , * offset ) ;\n ( * offset ) += 1 ;\n proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_port , tvb , * offset , 2 , ENC_BIG_ENDIAN ) ;\n ( * offset ) += 2 ;\n if ( flags & ISAT_S ) {\n proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_ipv6 , tvb , * offset , 16 , ENC_NA ) ;\n ( * offset ) += 16 ;\n }\n if ( flags & ISAT_F ) {\n proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_ipv4 , tvb , * offset , 4 , ENC_BIG_ENDIAN ) ;\n ( * offset ) += 4 ;\n }\n if ( flags & ISAT_G ) {\n proto_item * alljoyn_string_ti ;\n proto_tree * alljoyn_string_tree ;\n gint guid_size = 0 ;\n guid_size = tvb_get_guint8 ( tvb , * offset ) ;\n alljoyn_string_ti = proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_isat_guid_string , tvb , * offset , 1 + guid_size , ENC_NA ) ;\n alljoyn_string_tree = proto_item_add_subtree ( alljoyn_string_ti , ett_alljoyn_ns_guid_string ) ;\n proto_tree_add_item ( alljoyn_string_tree , hf_alljoyn_string_size_8bit , tvb , * offset , 1 , ENC_NA ) ;\n ( * offset ) += 1 ;\n proto_tree_add_item ( alljoyn_string_tree , hf_alljoyn_string_data , tvb , * offset , guid_size , ENC_ASCII | ENC_NA ) ;\n ( * offset ) += guid_size ;\n }\n while ( count -- ) {\n proto_item * alljoyn_entry_ti ;\n proto_tree * alljoyn_entry_tree ;\n proto_item * alljoyn_bus_name_ti ;\n proto_tree * alljoyn_bus_name_tree ;\n gint bus_name_size = tvb_get_guint8 ( tvb , * offset ) ;\n alljoyn_entry_ti = proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_isat_entry , tvb , * offset , 1 + bus_name_size , ENC_NA ) ;\n alljoyn_entry_tree = proto_item_add_subtree ( alljoyn_entry_ti , ett_alljoyn_ns_isat_entry ) ;\n alljoyn_bus_name_ti = proto_tree_add_item ( alljoyn_entry_tree , hf_alljoyn_string , tvb , * offset , 1 + bus_name_size , ENC_NA ) ;\n alljoyn_bus_name_tree = proto_item_add_subtree ( alljoyn_bus_name_ti , ett_alljoyn_string ) ;\n proto_tree_add_item ( alljoyn_bus_name_tree , hf_alljoyn_string_size_8bit , tvb , * offset , 1 , ENC_NA ) ;\n ( * offset ) += 1 ;\n proto_tree_add_item ( alljoyn_bus_name_tree , hf_alljoyn_string_data , tvb , * offset , bus_name_size , ENC_ASCII | ENC_NA ) ;\n ( * offset ) += bus_name_size ;\n }\n }\n }"}
{"idx": 3563, "target": 0, "func": "static void prplcb_request_action_free ( void * data ) {\n struct prplcb_request_action_data * pqad = data ;\n pqad -> bee_data = NULL ;\n purple_request_close ( PURPLE_REQUEST_ACTION , pqad ) ;\n }"}
{"idx": 3564, "target": 0, "func": "Oid get_rel_type_id ( Oid relid ) {\n HeapTuple tp ;\n tp = SearchSysCache1 ( RELOID , ObjectIdGetDatum ( relid ) ) ;\n if ( HeapTupleIsValid ( tp ) ) {\n Form_pg_class reltup = ( Form_pg_class ) GETSTRUCT ( tp ) ;\n Oid result ;\n result = reltup -> reltype ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }\n else return InvalidOid ;\n }"}
{"idx": 3565, "target": 0, "func": "void pimv1_print ( netdissect_options * ndo , register const u_char * bp , register u_int len ) {\n register const u_char * ep ;\n register u_char type ;\n ep = ( const u_char * ) ndo -> ndo_snapend ;\n if ( bp >= ep ) return ;\n ND_TCHECK ( bp [ 1 ] ) ;\n type = bp [ 1 ] ;\n ND_PRINT ( ( ndo , \" %s\" , tok2str ( pimv1_type_str , \"[type %u]\" , type ) ) ) ;\n switch ( type ) {\n case PIMV1_TYPE_QUERY : if ( ND_TTEST ( bp [ 8 ] ) ) {\n switch ( bp [ 8 ] >> 4 ) {\n case 0 : ND_PRINT ( ( ndo , \" Dense-mode\" ) ) ;\n break ;\n case 1 : ND_PRINT ( ( ndo , \" Sparse-mode\" ) ) ;\n break ;\n case 2 : ND_PRINT ( ( ndo , \" Sparse-Dense-mode\" ) ) ;\n break ;\n default : ND_PRINT ( ( ndo , \" mode-%d\" , bp [ 8 ] >> 4 ) ) ;\n break ;\n }\n }\n if ( ndo -> ndo_vflag ) {\n ND_TCHECK2 ( bp [ 10 ] , 2 ) ;\n ND_PRINT ( ( ndo , \" (Hold-time \" ) ) ;\n unsigned_relts_print ( ndo , EXTRACT_16BITS ( & bp [ 10 ] ) ) ;\n ND_PRINT ( ( ndo , \")\" ) ) ;\n }\n break ;\n case PIMV1_TYPE_REGISTER : ND_TCHECK2 ( bp [ 8 ] , 20 ) ;\n ND_PRINT ( ( ndo , \" for %s > %s\" , ipaddr_string ( ndo , & bp [ 20 ] ) , ipaddr_string ( ndo , & bp [ 24 ] ) ) ) ;\n break ;\n case PIMV1_TYPE_REGISTER_STOP : ND_TCHECK2 ( bp [ 12 ] , sizeof ( struct in_addr ) ) ;\n ND_PRINT ( ( ndo , \" for %s > %s\" , ipaddr_string ( ndo , & bp [ 8 ] ) , ipaddr_string ( ndo , & bp [ 12 ] ) ) ) ;\n break ;\n case PIMV1_TYPE_RP_REACHABILITY : if ( ndo -> ndo_vflag ) {\n ND_TCHECK2 ( bp [ 22 ] , 2 ) ;\n ND_PRINT ( ( ndo , \" group %s\" , ipaddr_string ( ndo , & bp [ 8 ] ) ) ) ;\n if ( EXTRACT_32BITS ( & bp [ 12 ] ) != 0xffffffff ) ND_PRINT ( ( ndo , \"/%s\" , ipaddr_string ( ndo , & bp [ 12 ] ) ) ) ;\n ND_PRINT ( ( ndo , \" RP %s hold \" , ipaddr_string ( ndo , & bp [ 16 ] ) ) ) ;\n unsigned_relts_print ( ndo , EXTRACT_16BITS ( & bp [ 22 ] ) ) ;\n }\n break ;\n case PIMV1_TYPE_ASSERT : ND_TCHECK2 ( bp [ 16 ] , sizeof ( struct in_addr ) ) ;\n ND_PRINT ( ( ndo , \" for %s > %s\" , ipaddr_string ( ndo , & bp [ 16 ] ) , ipaddr_string ( ndo , & bp [ 8 ] ) ) ) ;\n if ( EXTRACT_32BITS ( & bp [ 12 ] ) != 0xffffffff ) ND_PRINT ( ( ndo , \"/%s\" , ipaddr_string ( ndo , & bp [ 12 ] ) ) ) ;\n ND_TCHECK2 ( bp [ 24 ] , 4 ) ;\n ND_PRINT ( ( ndo , \" %s pref %d metric %d\" , ( bp [ 20 ] & 0x80 ) ? \"RP-tree\" : \"SPT\" , EXTRACT_32BITS ( & bp [ 20 ] ) & 0x7fffffff , EXTRACT_32BITS ( & bp [ 24 ] ) ) ) ;\n break ;\n case PIMV1_TYPE_JOIN_PRUNE : case PIMV1_TYPE_GRAFT : case PIMV1_TYPE_GRAFT_ACK : if ( ndo -> ndo_vflag ) pimv1_join_prune_print ( ndo , & bp [ 8 ] , len - 8 ) ;\n break ;\n }\n ND_TCHECK ( bp [ 4 ] ) ;\n if ( ( bp [ 4 ] >> 4 ) != 1 ) ND_PRINT ( ( ndo , \" [v%d]\" , bp [ 4 ] >> 4 ) ) ;\n return ;\n trunc : ND_PRINT ( ( ndo , \"[|pim]\" ) ) ;\n return ;\n }"}
{"idx": 3566, "target": 0, "func": "static void cirrus_bitblt_reset ( CirrusVGAState * s ) {\n int need_update ;\n s -> vga . gr [ 0x31 ] &= ~ ( CIRRUS_BLT_START | CIRRUS_BLT_BUSY | CIRRUS_BLT_FIFOUSED ) ;\n need_update = s -> cirrus_srcptr != & s -> cirrus_bltbuf [ 0 ] || s -> cirrus_srcptr_end != & s -> cirrus_bltbuf [ 0 ] ;\n s -> cirrus_srcptr = & s -> cirrus_bltbuf [ 0 ] ;\n s -> cirrus_srcptr_end = & s -> cirrus_bltbuf [ 0 ] ;\n s -> cirrus_srccounter = 0 ;\n if ( ! need_update ) return ;\n cirrus_update_memory_access ( s ) ;\n }"}
{"idx": 3567, "target": 0, "func": "static void vvalue_strbuf_append_ui1 ( wmem_strbuf_t * strbuf , void * ptr ) {\n guint8 ui1 = * ( guint8 * ) ptr ;\n wmem_strbuf_append_printf ( strbuf , \"%u\" , ( unsigned ) ui1 ) ;\n }"}
{"idx": 3568, "target": 0, "func": "attr_val * create_attr_ival ( int attr , int value ) {\n attr_val * my_val ;\n my_val = emalloc_zero ( sizeof ( * my_val ) ) ;\n my_val -> attr = attr ;\n my_val -> value . i = value ;\n my_val -> type = T_Integer ;\n return my_val ;\n }"}
{"idx": 3569, "target": 0, "func": "static int eval_motion_dist ( RoqContext * enc , int x , int y , motion_vect vect , int size ) {\n int mx = vect . d [ 0 ] ;\n int my = vect . d [ 1 ] ;\n if ( mx < - 7 || mx > 7 ) return INT_MAX ;\n if ( my < - 7 || my > 7 ) return INT_MAX ;\n mx += x ;\n my += y ;\n if ( ( unsigned ) mx > enc -> width - size || ( unsigned ) my > enc -> height - size ) return INT_MAX ;\n return block_sse ( enc -> frame_to_enc -> data , enc -> last_frame -> data , x , y , mx , my , enc -> frame_to_enc -> linesize , enc -> last_frame -> linesize , size ) ;\n }"}
{"idx": 3570, "target": 0, "func": "unsigned char clamp_u8 ( float v ) {\n if ( v > 255. ) return 255 ;\n else if ( v < 0 ) return 0 ;\n else return floor ( v + .5 ) ;\n }"}
{"idx": 3571, "target": 0, "func": "static void isofile_free_all_entries ( struct iso9660 * iso9660 ) {\n struct isofile * file , * file_next ;\n file = iso9660 -> all_file_list . first ;\n while ( file != NULL ) {\n file_next = file -> allnext ;\n isofile_free ( file ) ;\n file = file_next ;\n }\n }"}
{"idx": 3572, "target": 0, "func": "static int dissect_pvfs_pint_request ( tvbuff_t * tvb , proto_tree * tree , int offset ) {\n proto_tree_add_item ( tree , hf_pvfs_offset , tvb , offset , 8 , ENC_LITTLE_ENDIAN ) ;\n offset += 8 ;\n proto_tree_add_item ( tree , hf_pvfs_num_eregs , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_pvfs_num_blocks , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_pvfs_stride , tvb , offset , 8 , ENC_LITTLE_ENDIAN ) ;\n offset += 8 ;\n proto_tree_add_item ( tree , hf_pvfs_ub , tvb , offset , 8 , ENC_LITTLE_ENDIAN ) ;\n offset += 8 ;\n proto_tree_add_item ( tree , hf_pvfs_lb , tvb , offset , 8 , ENC_LITTLE_ENDIAN ) ;\n offset += 8 ;\n proto_tree_add_item ( tree , hf_pvfs_aggregate_size , tvb , offset , 8 , ENC_LITTLE_ENDIAN ) ;\n offset += 8 ;\n proto_tree_add_item ( tree , hf_pvfs_num_contig_chunks , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_pvfs_depth , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_pvfs_num_nested_req , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_pvfs_committed , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_pvfs_refcount , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_pvfs_ereg , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_pvfs_sreg , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n return offset ;\n }"}
{"idx": 3573, "target": 0, "func": "void do_source ( struct st_command * command ) {\n static DYNAMIC_STRING ds_filename ;\n const struct command_arg source_args [ ] = {\n {\n \"filename\" , ARG_STRING , TRUE , & ds_filename , \"File to source\" }\n }\n ;\n DBUG_ENTER ( \"do_source\" ) ;\n check_command_args ( command , command -> first_argument , source_args , sizeof ( source_args ) / sizeof ( struct command_arg ) , ' ' ) ;\n if ( parser . current_line < ( parser . read_lines - 1 ) ) ;\n else {\n DBUG_PRINT ( \"info\" , ( \"sourcing file: %s\" , ds_filename . str ) ) ;\n open_file ( ds_filename . str ) ;\n }\n dynstr_free ( & ds_filename ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 3574, "target": 0, "func": "static int dissect_h225_OCTET_STRING_SIZE_3_4 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 3 , 4 , FALSE , NULL ) ;\n return offset ;\n }"}
{"idx": 3575, "target": 0, "func": "TEST_F ( ExtensionWelcomeNotificationTest , FirstRunChromeNowNotification ) {\n StartPreferenceSyncing ( ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissed ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissedLocal ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationPreviouslyPoppedUp ) ) ;\n ShowChromeNowNotification ( ) ;\n EXPECT_EQ ( message_center ( ) -> add_notification_calls ( ) , 1 ) ;\n EXPECT_EQ ( message_center ( ) -> remove_notification_calls ( ) , 0 ) ;\n EXPECT_EQ ( message_center ( ) -> notifications_with_shown_as_popup ( ) , 0 ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissed ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissedLocal ) ) ;\n EXPECT_TRUE ( GetBooleanPref ( prefs : : kWelcomeNotificationPreviouslyPoppedUp ) ) ;\n }"}
{"idx": 3576, "target": 0, "func": "int test_kron ( BIO * bp , BN_CTX * ctx ) {\n BN_GENCB cb ;\n BIGNUM * a , * b , * r , * t ;\n int i ;\n int legendre , kronecker ;\n int ret = 0 ;\n a = BN_new ( ) ;\n b = BN_new ( ) ;\n r = BN_new ( ) ;\n t = BN_new ( ) ;\n if ( a == NULL || b == NULL || r == NULL || t == NULL ) goto err ;\n BN_GENCB_set ( & cb , genprime_cb , NULL ) ;\n if ( ! BN_generate_prime_ex ( b , 512 , 0 , NULL , NULL , & cb ) ) goto err ;\n b -> neg = rand_neg ( ) ;\n putc ( '\\n' , stderr ) ;\n for ( i = 0 ;\n i < num0 ;\n i ++ ) {\n if ( ! BN_bntest_rand ( a , 512 , 0 , 0 ) ) goto err ;\n a -> neg = rand_neg ( ) ;\n if ( ! BN_copy ( t , b ) ) goto err ;\n t -> neg = 0 ;\n if ( ! BN_sub_word ( t , 1 ) ) goto err ;\n if ( ! BN_rshift1 ( t , t ) ) goto err ;\n b -> neg = 0 ;\n if ( ! BN_mod_exp_recp ( r , a , t , b , ctx ) ) goto err ;\n b -> neg = 1 ;\n if ( BN_is_word ( r , 1 ) ) legendre = 1 ;\n else if ( BN_is_zero ( r ) ) legendre = 0 ;\n else {\n if ( ! BN_add_word ( r , 1 ) ) goto err ;\n if ( 0 != BN_ucmp ( r , b ) ) {\n fprintf ( stderr , \"Legendre symbol computation failed\\n\" ) ;\n goto err ;\n }\n legendre = - 1 ;\n }\n kronecker = BN_kronecker ( a , b , ctx ) ;\n if ( kronecker < - 1 ) goto err ;\n if ( a -> neg && b -> neg ) kronecker = - kronecker ;\n if ( legendre != kronecker ) {\n fprintf ( stderr , \"legendre != kronecker;\n a = \" ) ;\n BN_print_fp ( stderr , a ) ;\n fprintf ( stderr , \", b = \" ) ;\n BN_print_fp ( stderr , b ) ;\n fprintf ( stderr , \"\\n\" ) ;\n goto err ;\n }\n putc ( '.' , stderr ) ;\n fflush ( stderr ) ;\n }\n putc ( '\\n' , stderr ) ;\n fflush ( stderr ) ;\n ret = 1 ;\n err : if ( a != NULL ) BN_free ( a ) ;\n if ( b != NULL ) BN_free ( b ) ;\n if ( r != NULL ) BN_free ( r ) ;\n if ( t != NULL ) BN_free ( t ) ;\n return ret ;\n }"}
{"idx": 3577, "target": 0, "func": "int s_aes_set_key ( stream_aes_state * state , const unsigned char * key , int keylength ) {\n int code = 0 ;\n if ( ( keylength < 1 ) || ( keylength > SAES_MAX_KEYLENGTH ) ) return_error ( gs_error_rangecheck ) ;\n if ( key == NULL ) return_error ( gs_error_invalidaccess ) ;\n memcpy ( state -> key , key , keylength ) ;\n state -> keylength = keylength ;\n if ( code ) {\n return gs_throw ( gs_error_rangecheck , \"could not set AES key\" ) ;\n }\n return 0 ;\n }"}
{"idx": 3578, "target": 0, "func": "static void msvideo1_decode_8bit ( Msvideo1Context * s ) {\n int block_ptr , pixel_ptr ;\n int total_blocks ;\n int pixel_x , pixel_y ;\n int block_x , block_y ;\n int blocks_wide , blocks_high ;\n int block_inc ;\n int row_dec ;\n int stream_ptr ;\n unsigned char byte_a , byte_b ;\n unsigned short flags ;\n int skip_blocks ;\n unsigned char colors [ 8 ] ;\n unsigned char * pixels = s -> frame . data [ 0 ] ;\n int stride = s -> frame . linesize [ 0 ] ;\n stream_ptr = 0 ;\n skip_blocks = 0 ;\n blocks_wide = s -> avctx -> width / 4 ;\n blocks_high = s -> avctx -> height / 4 ;\n total_blocks = blocks_wide * blocks_high ;\n block_inc = 4 ;\n row_dec = stride + 4 ;\n for ( block_y = blocks_high ;\n block_y > 0 ;\n block_y -- ) {\n block_ptr = ( ( block_y * 4 ) - 1 ) * stride ;\n for ( block_x = blocks_wide ;\n block_x > 0 ;\n block_x -- ) {\n if ( skip_blocks ) {\n block_ptr += block_inc ;\n skip_blocks -- ;\n total_blocks -- ;\n continue ;\n }\n pixel_ptr = block_ptr ;\n CHECK_STREAM_PTR ( 2 ) ;\n byte_a = s -> buf [ stream_ptr ++ ] ;\n byte_b = s -> buf [ stream_ptr ++ ] ;\n if ( ( byte_a == 0 ) && ( byte_b == 0 ) && ( total_blocks == 0 ) ) return ;\n else if ( ( byte_b & 0xFC ) == 0x84 ) {\n skip_blocks = ( ( byte_b - 0x84 ) << 8 ) + byte_a - 1 ;\n }\n else if ( byte_b < 0x80 ) {\n flags = ( byte_b << 8 ) | byte_a ;\n CHECK_STREAM_PTR ( 2 ) ;\n colors [ 0 ] = s -> buf [ stream_ptr ++ ] ;\n colors [ 1 ] = s -> buf [ stream_ptr ++ ] ;\n for ( pixel_y = 0 ;\n pixel_y < 4 ;\n pixel_y ++ ) {\n for ( pixel_x = 0 ;\n pixel_x < 4 ;\n pixel_x ++ , flags >>= 1 ) pixels [ pixel_ptr ++ ] = colors [ ( flags & 0x1 ) ^ 1 ] ;\n pixel_ptr -= row_dec ;\n }\n }\n else if ( byte_b >= 0x90 ) {\n flags = ( byte_b << 8 ) | byte_a ;\n CHECK_STREAM_PTR ( 8 ) ;\n memcpy ( colors , & s -> buf [ stream_ptr ] , 8 ) ;\n stream_ptr += 8 ;\n for ( pixel_y = 0 ;\n pixel_y < 4 ;\n pixel_y ++ ) {\n for ( pixel_x = 0 ;\n pixel_x < 4 ;\n pixel_x ++ , flags >>= 1 ) pixels [ pixel_ptr ++ ] = colors [ ( ( pixel_y & 0x2 ) << 1 ) + ( pixel_x & 0x2 ) + ( ( flags & 0x1 ) ^ 1 ) ] ;\n pixel_ptr -= row_dec ;\n }\n }\n else {\n colors [ 0 ] = byte_a ;\n for ( pixel_y = 0 ;\n pixel_y < 4 ;\n pixel_y ++ ) {\n for ( pixel_x = 0 ;\n pixel_x < 4 ;\n pixel_x ++ ) pixels [ pixel_ptr ++ ] = colors [ 0 ] ;\n pixel_ptr -= row_dec ;\n }\n }\n block_ptr += block_inc ;\n total_blocks -- ;\n }\n }\n if ( s -> avctx -> pix_fmt == AV_PIX_FMT_PAL8 ) memcpy ( s -> frame . data [ 1 ] , s -> pal , AVPALETTE_SIZE ) ;\n }"}
{"idx": 3579, "target": 1, "func": "static void _slurm_rpc_submit_batch_job ( slurm_msg_t * msg ) {\n static int active_rpc_cnt = 0 ;\n int error_code = SLURM_SUCCESS ;\n DEF_TIMERS ;\n uint32_t job_id = 0 , priority = 0 ;\n struct job_record * job_ptr = NULL ;\n slurm_msg_t response_msg ;\n submit_response_msg_t submit_msg ;\n job_desc_msg_t * job_desc_msg = ( job_desc_msg_t * ) msg -> data ;\n slurmctld_lock_t job_read_lock = {\n READ_LOCK , READ_LOCK , READ_LOCK , READ_LOCK , READ_LOCK }\n ;\n slurmctld_lock_t job_write_lock = {\n READ_LOCK , WRITE_LOCK , WRITE_LOCK , READ_LOCK , READ_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n char * err_msg = NULL , * job_submit_user_msg = NULL ;\n bool reject_job = false ;\n START_TIMER ;\n debug2 ( \"Processing RPC: REQUEST_SUBMIT_BATCH_JOB from uid=%d\" , uid ) ;\n if ( slurmctld_config . submissions_disabled ) {\n info ( \"Submissions disabled on system\" ) ;\n error_code = ESLURM_SUBMISSIONS_DISABLED ;\n reject_job = true ;\n goto send_msg ;\n }\n if ( ( uid != job_desc_msg -> user_id ) && ( ! validate_super_user ( uid ) ) ) {\n error_code = ESLURM_USER_ID_MISSING ;\n error ( \"Security violation, REQUEST_SUBMIT_BATCH_JOB from uid=%d\" , uid ) ;\n }\n if ( ( job_desc_msg -> alloc_node == NULL ) || ( job_desc_msg -> alloc_node [ 0 ] == '\\0' ) ) {\n error_code = ESLURM_INVALID_NODE_NAME ;\n error ( \"REQUEST_SUBMIT_BATCH_JOB lacks alloc_node from uid=%d\" , uid ) ;\n }\n dump_job_desc ( job_desc_msg ) ;\n if ( error_code == SLURM_SUCCESS ) {\n lock_slurmctld ( job_read_lock ) ;\n job_desc_msg -> pack_job_offset = NO_VAL ;\n error_code = validate_job_create_req ( job_desc_msg , uid , & err_msg ) ;\n unlock_slurmctld ( job_read_lock ) ;\n }\n if ( err_msg ) job_submit_user_msg = xstrdup ( err_msg ) ;\n if ( error_code ) {\n reject_job = true ;\n goto send_msg ;\n }\n _throttle_start ( & active_rpc_cnt ) ;\n lock_slurmctld ( job_write_lock ) ;\n START_TIMER ;\n if ( fed_mgr_fed_rec ) {\n if ( fed_mgr_job_allocate ( msg , job_desc_msg , false , uid , msg -> protocol_version , & job_id , & error_code , & err_msg ) ) reject_job = true ;\n }\n else {\n job_desc_msg -> pack_job_offset = NO_VAL ;\n error_code = job_allocate ( job_desc_msg , job_desc_msg -> immediate , false , NULL , 0 , uid , & job_ptr , & err_msg , msg -> protocol_version ) ;\n if ( ! job_ptr || ( error_code && job_ptr -> job_state == JOB_FAILED ) ) reject_job = true ;\n else {\n job_id = job_ptr -> job_id ;\n priority = job_ptr -> priority ;\n }\n if ( job_desc_msg -> immediate && ( error_code != SLURM_SUCCESS ) ) {\n error_code = ESLURM_CAN_NOT_START_IMMEDIATELY ;\n reject_job = true ;\n }\n }\n unlock_slurmctld ( job_write_lock ) ;\n _throttle_fini ( & active_rpc_cnt ) ;\n send_msg : END_TIMER2 ( \"_slurm_rpc_submit_batch_job\" ) ;\n if ( reject_job ) {\n info ( \"%s: %s\" , __func__ , slurm_strerror ( error_code ) ) ;\n if ( err_msg ) slurm_send_rc_err_msg ( msg , error_code , err_msg ) ;\n else slurm_send_rc_msg ( msg , error_code ) ;\n }\n else {\n info ( \"%s: JobId=%u InitPrio=%u %s\" , __func__ , job_id , priority , TIME_STR ) ;\n submit_msg . job_id = job_id ;\n submit_msg . step_id = SLURM_BATCH_SCRIPT ;\n submit_msg . error_code = error_code ;\n submit_msg . job_submit_user_msg = job_submit_user_msg ;\n slurm_msg_t_init ( & response_msg ) ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . conn = msg -> conn ;\n response_msg . msg_type = RESPONSE_SUBMIT_BATCH_JOB ;\n response_msg . data = & submit_msg ;\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n schedule_job_save ( ) ;\n schedule_node_save ( ) ;\n queue_job_scheduler ( ) ;\n }\n xfree ( err_msg ) ;\n xfree ( job_submit_user_msg ) ;\n }"}
{"idx": 3580, "target": 0, "func": "static int write_skip ( const VP9_COMMON * cm , const MACROBLOCKD * xd , int segment_id , const MODE_INFO * mi , vp9_writer * w ) {\n if ( vp9_segfeature_active ( & cm -> seg , segment_id , SEG_LVL_SKIP ) ) {\n return 1 ;\n }\n else {\n const int skip = mi -> mbmi . skip ;\n vp9_write ( w , skip , vp9_get_skip_prob ( cm , xd ) ) ;\n return skip ;\n }\n }"}
{"idx": 3581, "target": 0, "func": "static void server_port_read ( struct evdns_server_port * s ) {\n u8 packet [ 1500 ] ;\n struct sockaddr_storage addr ;\n socklen_t addrlen ;\n int r ;\n for ( ;\n ;\n ) {\n addrlen = sizeof ( struct sockaddr_storage ) ;\n r = recvfrom ( s -> socket , packet , sizeof ( packet ) , 0 , ( struct sockaddr * ) & addr , & addrlen ) ;\n if ( r < 0 ) {\n int err = last_error ( s -> socket ) ;\n if ( error_is_eagain ( err ) ) return ;\n log ( EVDNS_LOG_WARN , \"Error %s (%d) while reading request.\" , strerror ( err ) , err ) ;\n return ;\n }\n request_parse ( packet , r , s , ( struct sockaddr * ) & addr , addrlen ) ;\n }\n }"}
{"idx": 3582, "target": 0, "func": "static void encode_frame ( struct stream_state * stream , struct VpxEncoderConfig * global , struct vpx_image * img , unsigned int frames_in ) {\n vpx_codec_pts_t frame_start , next_frame_start ;\n struct vpx_codec_enc_cfg * cfg = & stream -> config . cfg ;\n struct vpx_usec_timer timer ;\n frame_start = ( cfg -> g_timebase . den * ( int64_t ) ( frames_in - 1 ) * global -> framerate . den ) / cfg -> g_timebase . num / global -> framerate . num ;\n next_frame_start = ( cfg -> g_timebase . den * ( int64_t ) ( frames_in ) * global -> framerate . den ) / cfg -> g_timebase . num / global -> framerate . num ;\n # if CONFIG_VP9 && CONFIG_VP9_HIGHBITDEPTH if ( img ) {\n if ( ( img -> fmt & VPX_IMG_FMT_HIGHBITDEPTH ) && ( img -> d_w != cfg -> g_w || img -> d_h != cfg -> g_h ) ) {\n if ( img -> fmt != VPX_IMG_FMT_I42016 ) {\n fprintf ( stderr , \"%s can only scale 4:2:0 inputs\\n\" , exec_name ) ;\n exit ( EXIT_FAILURE ) ;\n }\n # if CONFIG_LIBYUV if ( ! stream -> img ) {\n stream -> img = vpx_img_alloc ( NULL , VPX_IMG_FMT_I42016 , cfg -> g_w , cfg -> g_h , 16 ) ;\n }\n I420Scale_16 ( ( uint16 * ) img -> planes [ VPX_PLANE_Y ] , img -> stride [ VPX_PLANE_Y ] / 2 , ( uint16 * ) img -> planes [ VPX_PLANE_U ] , img -> stride [ VPX_PLANE_U ] / 2 , ( uint16 * ) img -> planes [ VPX_PLANE_V ] , img -> stride [ VPX_PLANE_V ] / 2 , img -> d_w , img -> d_h , ( uint16 * ) stream -> img -> planes [ VPX_PLANE_Y ] , stream -> img -> stride [ VPX_PLANE_Y ] / 2 , ( uint16 * ) stream -> img -> planes [ VPX_PLANE_U ] , stream -> img -> stride [ VPX_PLANE_U ] / 2 , ( uint16 * ) stream -> img -> planes [ VPX_PLANE_V ] , stream -> img -> stride [ VPX_PLANE_V ] / 2 , stream -> img -> d_w , stream -> img -> d_h , kFilterBox ) ;\n img = stream -> img ;\n # else stream -> encoder . err = 1 ;\n ctx_exit_on_error ( & stream -> encoder , \"Stream %d: Failed to encode frame.\\n\" \"Scaling disabled in this configuration. \\n\" \"To enable, configure with --enable-libyuv\\n\" , stream -> index ) ;\n # endif }\n }\n # endif if ( img && ( img -> d_w != cfg -> g_w || img -> d_h != cfg -> g_h ) ) {\n if ( img -> fmt != VPX_IMG_FMT_I420 && img -> fmt != VPX_IMG_FMT_YV12 ) {\n fprintf ( stderr , \"%s can only scale 4:2:0 8bpp inputs\\n\" , exec_name ) ;\n exit ( EXIT_FAILURE ) ;\n }\n # if CONFIG_LIBYUV if ( ! stream -> img ) stream -> img = vpx_img_alloc ( NULL , VPX_IMG_FMT_I420 , cfg -> g_w , cfg -> g_h , 16 ) ;\n I420Scale ( img -> planes [ VPX_PLANE_Y ] , img -> stride [ VPX_PLANE_Y ] , img -> planes [ VPX_PLANE_U ] , img -> stride [ VPX_PLANE_U ] , img -> planes [ VPX_PLANE_V ] , img -> stride [ VPX_PLANE_V ] , img -> d_w , img -> d_h , stream -> img -> planes [ VPX_PLANE_Y ] , stream -> img -> stride [ VPX_PLANE_Y ] , stream -> img -> planes [ VPX_PLANE_U ] , stream -> img -> stride [ VPX_PLANE_U ] , stream -> img -> planes [ VPX_PLANE_V ] , stream -> img -> stride [ VPX_PLANE_V ] , stream -> img -> d_w , stream -> img -> d_h , kFilterBox ) ;\n img = stream -> img ;\n # else stream -> encoder . err = 1 ;\n ctx_exit_on_error ( & stream -> encoder , \"Stream %d: Failed to encode frame.\\n\" \"Scaling disabled in this configuration. \\n\" \"To enable, configure with --enable-libyuv\\n\" , stream -> index ) ;\n # endif }\n vpx_usec_timer_start ( & timer ) ;\n vpx_codec_encode ( & stream -> encoder , img , frame_start , ( unsigned long ) ( next_frame_start - frame_start ) , 0 , global -> deadline ) ;\n vpx_usec_timer_mark ( & timer ) ;\n stream -> cx_time += vpx_usec_timer_elapsed ( & timer ) ;\n ctx_exit_on_error ( & stream -> encoder , \"Stream %d: Failed to encode frame\" , stream -> index ) ;\n }"}
{"idx": 3583, "target": 0, "func": "static int SpoolssSetPrinterDataEx_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n proto_item * hidden_item ;\n hidden_item = proto_tree_add_uint ( tree , hf_printerdata , tvb , offset , 0 , 1 ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 3584, "target": 0, "func": "static int rv34_decode_intra_mb_header ( RV34DecContext * r , int8_t * intra_types ) {\n MpegEncContext * s = & r -> s ;\n GetBitContext * gb = & s -> gb ;\n int mb_pos = s -> mb_x + s -> mb_y * s -> mb_stride ;\n int t ;\n r -> is16 = get_bits1 ( gb ) ;\n if ( r -> is16 ) {\n s -> current_picture_ptr -> mb_type [ mb_pos ] = MB_TYPE_INTRA16x16 ;\n r -> block_type = RV34_MB_TYPE_INTRA16x16 ;\n t = get_bits ( gb , 2 ) ;\n fill_rectangle ( intra_types , 4 , 4 , r -> intra_types_stride , t , sizeof ( intra_types [ 0 ] ) ) ;\n r -> luma_vlc = 2 ;\n }\n else {\n if ( ! r -> rv30 ) {\n if ( ! get_bits1 ( gb ) ) av_log ( s -> avctx , AV_LOG_ERROR , \"Need DQUANT\\n\" ) ;\n }\n s -> current_picture_ptr -> mb_type [ mb_pos ] = MB_TYPE_INTRA ;\n r -> block_type = RV34_MB_TYPE_INTRA ;\n if ( r -> decode_intra_types ( r , gb , intra_types ) < 0 ) return - 1 ;\n r -> luma_vlc = 1 ;\n }\n r -> chroma_vlc = 0 ;\n r -> cur_vlcs = choose_vlc_set ( r -> si . quant , r -> si . vlc_set , 0 ) ;\n return rv34_decode_cbp ( gb , r -> cur_vlcs , r -> is16 ) ;\n }"}
{"idx": 3585, "target": 0, "func": "static my_bool dump_all_views_in_db ( char * database ) {\n char * table ;\n uint numrows ;\n char table_buff [ NAME_LEN * 2 + 3 ] ;\n char hash_key [ 2 * NAME_LEN + 2 ] ;\n char * afterdot ;\n afterdot = strmov ( hash_key , database ) ;\n * afterdot ++ = '.' ;\n if ( init_dumping ( database , init_dumping_views ) ) return 1 ;\n if ( opt_xml ) print_xml_tag ( md_result_file , \"\" , \"\\n\" , \"database\" , \"name=\" , database , NullS ) ;\n if ( lock_tables ) {\n DYNAMIC_STRING query ;\n init_dynamic_string_checked ( & query , \"LOCK TABLES \" , 256 , 1024 ) ;\n for ( numrows = 0 ;\n ( table = getTableName ( 1 ) ) ;\n ) {\n char * end = strmov ( afterdot , table ) ;\n if ( include_table ( ( uchar * ) hash_key , end - hash_key ) ) {\n numrows ++ ;\n dynstr_append_checked ( & query , quote_name ( table , table_buff , 1 ) ) ;\n dynstr_append_checked ( & query , \" READ /*!32311 LOCAL */,\" ) ;\n }\n }\n if ( numrows && mysql_real_query ( mysql , query . str , query . length - 1 ) ) DB_error ( mysql , \"when using LOCK TABLES\" ) ;\n dynstr_free ( & query ) ;\n }\n if ( flush_logs ) {\n if ( mysql_refresh ( mysql , REFRESH_LOG ) ) DB_error ( mysql , \"when doing refresh\" ) ;\n else verbose_msg ( \"-- dump_all_views_in_db : logs flushed successfully!\\n\" ) ;\n }\n while ( ( table = getTableName ( 0 ) ) ) {\n char * end = strmov ( afterdot , table ) ;\n if ( include_table ( ( uchar * ) hash_key , end - hash_key ) ) get_view_structure ( table , database ) ;\n }\n if ( opt_xml ) {\n fputs ( \"</database>\\n\" , md_result_file ) ;\n check_io ( md_result_file ) ;\n }\n if ( lock_tables ) ( void ) mysql_query_with_error_report ( mysql , 0 , \"UNLOCK TABLES\" ) ;\n return 0 ;\n }"}
{"idx": 3586, "target": 0, "func": "inline static void _slurm_rpc_checkpoint_task_comp ( slurm_msg_t * msg ) {\n int error_code = SLURM_SUCCESS ;\n DEF_TIMERS ;\n checkpoint_task_comp_msg_t * ckpt_ptr ;\n slurmctld_lock_t job_read_lock = {\n NO_LOCK , READ_LOCK , NO_LOCK , NO_LOCK , NO_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n ckpt_ptr = ( checkpoint_task_comp_msg_t * ) msg -> data ;\n START_TIMER ;\n debug2 ( \"Processing RPC: REQUEST_CHECKPOINT_TASK_COMP from uid=%d\" , uid ) ;\n lock_slurmctld ( job_read_lock ) ;\n error_code = job_step_checkpoint_task_comp ( ckpt_ptr , uid , msg -> conn_fd , msg -> protocol_version ) ;\n unlock_slurmctld ( job_read_lock ) ;\n END_TIMER2 ( \"_slurm_rpc_checkpoint_task_comp\" ) ;\n if ( error_code ) {\n info ( \"_slurm_rpc_checkpoint_task_comp %u.%u: %s\" , ckpt_ptr -> job_id , ckpt_ptr -> step_id , slurm_strerror ( error_code ) ) ;\n }\n else {\n info ( \"_slurm_rpc_checkpoint_task_comp %u.%u %s\" , ckpt_ptr -> job_id , ckpt_ptr -> step_id , TIME_STR ) ;\n }\n }"}
{"idx": 3587, "target": 0, "func": "static __inline__ void TLV_SET_LEN ( struct tlv_desc * tlv , __u16 len ) {\n tlv -> tlv_len = htons ( len ) ;\n }"}
{"idx": 3588, "target": 0, "func": "void vp9_decode_frame ( VP9Decoder * pbi , const uint8_t * data , const uint8_t * data_end , const uint8_t * * p_data_end ) {\n VP9_COMMON * const cm = & pbi -> common ;\n MACROBLOCKD * const xd = & pbi -> mb ;\n struct vp9_read_bit_buffer rb = {\n NULL , NULL , 0 , NULL , 0 }\n ;\n uint8_t clear_data [ MAX_VP9_HEADER_SIZE ] ;\n const size_t first_partition_size = read_uncompressed_header ( pbi , init_read_bit_buffer ( pbi , & rb , data , data_end , clear_data ) ) ;\n const int tile_rows = 1 << cm -> log2_tile_rows ;\n const int tile_cols = 1 << cm -> log2_tile_cols ;\n YV12_BUFFER_CONFIG * const new_fb = get_frame_new_buffer ( cm ) ;\n xd -> cur_buf = new_fb ;\n if ( ! first_partition_size ) {\n * p_data_end = data + 1 ;\n return ;\n }\n data += vp9_rb_bytes_read ( & rb ) ;\n if ( ! read_is_valid ( data , first_partition_size , data_end ) ) vpx_internal_error ( & cm -> error , VPX_CODEC_CORRUPT_FRAME , \"Truncated packet or corrupt header length\" ) ;\n init_macroblockd ( cm , & pbi -> mb ) ;\n if ( cm -> coding_use_prev_mi ) set_prev_mi ( cm ) ;\n else cm -> prev_mi = NULL ;\n setup_plane_dequants ( cm , xd , cm -> base_qindex ) ;\n vp9_setup_block_planes ( xd , cm -> subsampling_x , cm -> subsampling_y ) ;\n cm -> fc = cm -> frame_contexts [ cm -> frame_context_idx ] ;\n vp9_zero ( cm -> counts ) ;\n vp9_zero ( xd -> dqcoeff ) ;\n xd -> corrupted = 0 ;\n new_fb -> corrupted = read_compressed_header ( pbi , data , first_partition_size ) ;\n if ( pbi -> max_threads > 1 && tile_rows == 1 && tile_cols > 1 && cm -> frame_parallel_decoding_mode ) {\n * p_data_end = decode_tiles_mt ( pbi , data + first_partition_size , data_end ) ;\n vp9_loop_filter_frame_mt ( new_fb , pbi , cm , cm -> lf . filter_level , 0 ) ;\n }\n else {\n * p_data_end = decode_tiles ( pbi , data + first_partition_size , data_end ) ;\n }\n new_fb -> corrupted |= xd -> corrupted ;\n if ( ! new_fb -> corrupted ) {\n if ( ! cm -> error_resilient_mode && ! cm -> frame_parallel_decoding_mode ) {\n vp9_adapt_coef_probs ( cm ) ;\n if ( ! frame_is_intra_only ( cm ) ) {\n vp9_adapt_mode_probs ( cm ) ;\n vp9_adapt_mv_probs ( cm , cm -> allow_high_precision_mv ) ;\n }\n }\n else {\n debug_check_frame_counts ( cm ) ;\n }\n }\n else {\n vpx_internal_error ( & cm -> error , VPX_CODEC_CORRUPT_FRAME , \"Decode failed. Frame data is corrupted.\" ) ;\n }\n if ( cm -> refresh_frame_context ) cm -> frame_contexts [ cm -> frame_context_idx ] = cm -> fc ;\n }"}
{"idx": 3589, "target": 0, "func": "static void * evport_init ( struct event_base * base ) {\n struct evport_data * evpd ;\n int i ;\n if ( evutil_getenv ( \"EVENT_NOEVPORT\" ) ) return ( NULL ) ;\n if ( ! ( evpd = calloc ( 1 , sizeof ( struct evport_data ) ) ) ) return ( NULL ) ;\n if ( ( evpd -> ed_port = port_create ( ) ) == - 1 ) {\n free ( evpd ) ;\n return ( NULL ) ;\n }\n evpd -> ed_fds = calloc ( DEFAULT_NFDS , sizeof ( struct fd_info ) ) ;\n if ( evpd -> ed_fds == NULL ) {\n close ( evpd -> ed_port ) ;\n free ( evpd ) ;\n return ( NULL ) ;\n }\n evpd -> ed_nevents = DEFAULT_NFDS ;\n for ( i = 0 ;\n i < EVENTS_PER_GETN ;\n i ++ ) evpd -> ed_pending [ i ] = - 1 ;\n evsignal_init ( base ) ;\n return ( evpd ) ;\n }"}
{"idx": 3590, "target": 0, "func": "void inc_thread_created ( void ) {\n thread_created ++ ;\n }"}
{"idx": 3591, "target": 0, "func": "static VALUE ossl_asn1_ ## klass ( int argc , VALUE * argv , VALUE self ) \\ {\n return rb_funcall3 ( cASN1 ## klass , rb_intern ( \"new\" ) , argc , argv ) ;\n }\n OSSL_ASN1_IMPL_FACTORY_METHOD ( Boolean ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Integer ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Enumerated ) OSSL_ASN1_IMPL_FACTORY_METHOD ( BitString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( OctetString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( UTF8String )"}
{"idx": 3592, "target": 0, "func": "static void terminate_chunked_cb ( struct evhttp_request * req , void * arg ) {\n struct terminate_state * state = arg ;\n struct timeval tv ;\n state -> req = req ;\n evhttp_send_reply_start ( req , HTTP_OK , \"OK\" ) ;\n tv . tv_sec = 0 ;\n tv . tv_usec = 3000 ;\n event_once ( - 1 , EV_TIMEOUT , terminate_chunked_trickle_cb , arg , & tv ) ;\n }"}
{"idx": 3593, "target": 0, "func": "static int vble_unpack ( VBLEContext * ctx , GetBitContext * gb ) {\n int i ;\n for ( i = 0 ;\n i < ctx -> size ;\n i ++ ) {\n ctx -> val [ i ] = vble_read_reverse_unary ( gb ) ;\n if ( ctx -> val [ i ] == UINT8_MAX ) return - 1 ;\n }\n for ( i = 0 ;\n i < ctx -> size ;\n i ++ ) {\n if ( get_bits_left ( gb ) < ctx -> val [ i ] ) return - 1 ;\n if ( ctx -> val [ i ] ) ctx -> val [ i ] = ( 1 << ctx -> val [ i ] ) + get_bits ( gb , ctx -> val [ i ] ) - 1 ;\n }\n return 0 ;\n }"}
{"idx": 3594, "target": 0, "func": "static int x_set_buffer ( gx_device_X * xdev ) {\n gs_memory_t * mem = gs_memory_stable ( xdev -> memory ) ;\n bool buffered = xdev -> space_params . MaxBitmap > 0 ;\n const gx_device_procs * procs ;\n setup : if ( buffered ) {\n gx_device_memory * mdev = ( gx_device_memory * ) xdev -> target ;\n if ( mdev == 0 || mdev -> color_info . depth != xdev -> orig_color_info . depth ) {\n const gx_device_memory * mdproto = gdev_mem_device_for_bits ( xdev -> orig_color_info . depth ) ;\n if ( ! mdproto ) {\n buffered = false ;\n goto setup ;\n }\n if ( mdev ) {\n gx_device_set_target ( ( gx_device_forward * ) mdev , NULL ) ;\n }\n else {\n mdev = gs_alloc_struct ( mem , gx_device_memory , & st_device_memory , \"memory device\" ) ;\n if ( mdev == 0 ) {\n buffered = false ;\n goto setup ;\n }\n }\n gs_make_mem_device ( mdev , mdproto , mem , 0 , ( gx_device * ) xdev ) ;\n gx_device_set_target ( ( gx_device_forward * ) xdev , ( gx_device * ) mdev ) ;\n xdev -> is_buffered = true ;\n }\n if ( mdev -> width != xdev -> width || mdev -> height != xdev -> height ) {\n byte * buffer ;\n ulong space ;\n if ( gdev_mem_data_size ( mdev , xdev -> width , xdev -> height , & space ) < 0 || space > xdev -> space_params . MaxBitmap ) {\n buffered = false ;\n goto setup ;\n }\n buffer = ( xdev -> buffer ? ( byte * ) gs_resize_object ( mem , xdev -> buffer , space , \"buffer\" ) : gs_alloc_bytes ( mem , space , \"buffer\" ) ) ;\n if ( ! buffer ) {\n buffered = false ;\n goto setup ;\n }\n xdev -> buffer_size = space ;\n xdev -> buffer = buffer ;\n mdev -> width = xdev -> width ;\n mdev -> height = xdev -> height ;\n mdev -> icc_struct = xdev -> icc_struct ;\n rc_increment ( xdev -> icc_struct ) ;\n mdev -> color_info = xdev -> orig_color_info ;\n mdev -> base = xdev -> buffer ;\n gdev_mem_open_scan_lines ( mdev , xdev -> height ) ;\n }\n xdev -> white = gx_device_white ( ( gx_device * ) xdev ) ;\n xdev -> black = gx_device_black ( ( gx_device * ) xdev ) ;\n procs = & gs_bbox_device . procs ;\n }\n else {\n gs_free_object ( mem , xdev -> buffer , \"buffer\" ) ;\n xdev -> buffer = 0 ;\n xdev -> buffer_size = 0 ;\n if ( ! xdev -> is_buffered ) return 0 ;\n gx_device_set_target ( ( gx_device_forward * ) xdev -> target , NULL ) ;\n gx_device_set_target ( ( gx_device_forward * ) xdev , NULL ) ;\n xdev -> is_buffered = false ;\n procs = & gs_x11_device . procs ;\n }\n if ( dev_proc ( xdev , fill_rectangle ) != procs -> fill_rectangle ) {\n # define COPY_PROC ( p ) set_dev_proc ( xdev , p , procs -> p ) COPY_PROC ( fill_rectangle ) ;\n COPY_PROC ( copy_mono ) ;\n COPY_PROC ( copy_color ) ;\n COPY_PROC ( copy_alpha ) ;\n COPY_PROC ( fill_path ) ;\n COPY_PROC ( stroke_path ) ;\n COPY_PROC ( fill_mask ) ;\n COPY_PROC ( fill_trapezoid ) ;\n COPY_PROC ( fill_parallelogram ) ;\n COPY_PROC ( fill_triangle ) ;\n COPY_PROC ( draw_thin_line ) ;\n COPY_PROC ( strip_tile_rectangle ) ;\n COPY_PROC ( strip_copy_rop ) ;\n COPY_PROC ( begin_typed_image ) ;\n COPY_PROC ( text_begin ) ;\n # undef COPY_PROC if ( xdev -> is_buffered ) {\n check_device_separable ( ( gx_device * ) xdev ) ;\n gx_device_forward_fill_in_procs ( ( gx_device_forward * ) xdev ) ;\n xdev -> box_procs = gdev_x_box_procs ;\n xdev -> box_proc_data = xdev ;\n }\n else {\n check_device_separable ( ( gx_device * ) xdev ) ;\n gx_device_fill_in_procs ( ( gx_device * ) xdev ) ;\n }\n }\n return 0 ;\n }"}
{"idx": 3595, "target": 0, "func": "static gint protobuf_dissect_unknown_field ( protobuf_desc_t * pb , protobuf_tag_t * tag , packet_info * pinfo , proto_tree * tree , proto_item * * tiptr ) {\n gint len ;\n gint64 value ;\n proto_item * ti ;\n switch ( tag -> wire_type ) {\n case PROTOBUF_WIRETYPE_VARINT : value = get_varint64 ( pb -> tvb , pb -> offset , pb -> bytes_left , & len ) ;\n ti = proto_tree_add_uint64 ( tree , hf_steam_ihs_discovery_unknown_number , pb -> tvb , pb -> offset , len , ( guint64 ) value ) ;\n expert_add_info_format ( pinfo , ti , & ei_steam_ihs_discovery_unknown_number , \"Unknown numeric protobuf field (wire type %d = %s)\" , tag -> wire_type , protobuf_get_wiretype_name ( tag -> wire_type ) ) ;\n break ;\n case PROTOBUF_WIRETYPE_64BIT : len = 8 ;\n ti = proto_tree_add_item ( tree , hf_steam_ihs_discovery_unknown_number , pb -> tvb , pb -> offset + len , len , ENC_LITTLE_ENDIAN ) ;\n expert_add_info_format ( pinfo , ti , & ei_steam_ihs_discovery_unknown_number , \"Unknown numeric protobuf field (wire type %d = %s)\" , tag -> wire_type , protobuf_get_wiretype_name ( tag -> wire_type ) ) ;\n break ;\n case PROTOBUF_WIRETYPE_LENGTHDELIMITED : value = get_varint64 ( pb -> tvb , pb -> offset , pb -> bytes_left , & len ) ;\n if ( ( guint64 ) value > ( guint64 ) ( pb -> bytes_left - len ) ) {\n ti = proto_tree_add_item ( tree , hf_steam_ihs_discovery_unknown_data , pb -> tvb , pb -> offset + len , pb -> bytes_left - len , ENC_NA ) ;\n expert_add_info_format ( pinfo , ti , & ei_steam_ihs_discovery_invalid_length , \"Length-delimited field %\" G_GUINT64_FORMAT \" has length prefix %\" G_GUINT64_FORMAT \", but buffer is only %d bytes long.\" , tag -> field_number , ( guint64 ) value , ( pb -> bytes_left - len ) ) ;\n len = pb -> bytes_left ;\n }\n else {\n ti = proto_tree_add_item ( tree , hf_steam_ihs_discovery_unknown_data , pb -> tvb , pb -> offset + len , ( gint ) value , ENC_NA ) ;\n len += ( gint ) value ;\n }\n expert_add_info ( pinfo , ti , & ei_steam_ihs_discovery_unknown_lengthdelimited ) ;\n break ;\n case PROTOBUF_WIRETYPE_32BIT : len = 4 ;\n ti = proto_tree_add_item ( tree , hf_steam_ihs_discovery_unknown_number , pb -> tvb , pb -> offset + len , len , ENC_LITTLE_ENDIAN ) ;\n expert_add_info_format ( pinfo , ti , & ei_steam_ihs_discovery_unknown_number , \"Unknown numeric protobuf field (wire type %d = %s)\" , tag -> wire_type , protobuf_get_wiretype_name ( tag -> wire_type ) ) ;\n break ;\n default : len = pb -> bytes_left ;\n ti = proto_tree_add_item ( tree , hf_steam_ihs_discovery_unknown_data , pb -> tvb , pb -> offset , len , ENC_NA ) ;\n expert_add_info ( pinfo , ti , & ei_steam_ihs_discovery_unknown_data ) ;\n break ;\n }\n if ( tiptr != NULL ) {\n * tiptr = ti ;\n }\n return len ;\n }"}
{"idx": 3596, "target": 0, "func": "static inline uint32_t e1000e_rx_wb_interrupt_cause ( E1000ECore * core , int queue_idx , bool min_threshold_hit ) {\n if ( ! msix_enabled ( core -> owner ) ) {\n return E1000_ICS_RXT0 | ( min_threshold_hit ? E1000_ICS_RXDMT0 : 0 ) ;\n }\n return ( queue_idx == 0 ) ? E1000_ICR_RXQ0 : E1000_ICR_RXQ1 ;\n }"}
{"idx": 3597, "target": 0, "func": "TEST_F ( ProfileInfoCacheTest , CreateSupervisedTestingProfile ) {\n testing_profile_manager_ . CreateTestingProfile ( \"default\" ) ;\n base : : string16 supervised_user_name = ASCIIToUTF16 ( \"Supervised User\" ) ;\n testing_profile_manager_ . CreateTestingProfile ( \"test1\" , scoped_ptr < PrefServiceSyncable > ( ) , supervised_user_name , 0 , \"TEST_ID\" , TestingProfile : : TestingFactories ( ) ) ;\n for ( size_t i = 0 ;\n i < GetCache ( ) -> GetNumberOfProfiles ( ) ;\n i ++ ) {\n bool is_supervised = GetCache ( ) -> GetNameOfProfileAtIndex ( i ) == supervised_user_name ;\n EXPECT_EQ ( is_supervised , GetCache ( ) -> ProfileIsSupervisedAtIndex ( i ) ) ;\n std : : string supervised_user_id = is_supervised ? \"TEST_ID\" : \"\" ;\n EXPECT_EQ ( supervised_user_id , GetCache ( ) -> GetSupervisedUserIdOfProfileAtIndex ( i ) ) ;\n }\n TestingBrowserProcess : : GetGlobal ( ) -> SetProfileManager ( NULL ) ;\n }"}
{"idx": 3598, "target": 0, "func": "static int best_effort_strncat_from_utf16be ( struct archive_string * as , const void * _p , size_t bytes , struct archive_string_conv * sc ) {\n return ( best_effort_strncat_from_utf16 ( as , _p , bytes , sc , 1 ) ) ;\n }"}
{"idx": 3599, "target": 0, "func": "static int zcvn ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n check_read_type ( * op , t_string ) ;\n return name_from_string ( imemory , op , op ) ;\n }"}
{"idx": 3600, "target": 1, "func": "static int http_RecvPostMessage ( http_parser_t * parser , SOCKINFO * info , char * filename , struct SendInstruction * Instr ) {\n size_t Data_Buf_Size = 1024 ;\n char Buf [ 1024 ] ;\n int Timeout = - 1 ;\n FILE * Fp ;\n parse_status_t status = PARSE_OK ;\n int ok_on_close = FALSE ;\n size_t entity_offset = 0 ;\n int num_read = 0 ;\n int ret_code = HTTP_OK ;\n if ( Instr && Instr -> IsVirtualFile ) {\n Fp = ( virtualDirCallback . open ) ( filename , UPNP_WRITE ) ;\n if ( Fp == NULL ) return HTTP_INTERNAL_SERVER_ERROR ;\n }\n else {\n Fp = fopen ( filename , \"wb\" ) ;\n if ( Fp == NULL ) return HTTP_UNAUTHORIZED ;\n }\n parser -> position = POS_ENTITY ;\n do {\n if ( parser -> position != POS_COMPLETE ) status = parser_parse_entity ( parser ) ;\n if ( status == PARSE_INCOMPLETE_ENTITY ) {\n ok_on_close = TRUE ;\n }\n else if ( ( status != PARSE_SUCCESS ) && ( status != PARSE_CONTINUE_1 ) && ( status != PARSE_INCOMPLETE ) ) {\n ret_code = HTTP_BAD_REQUEST ;\n goto ExitFunction ;\n }\n while ( entity_offset + Data_Buf_Size > parser -> msg . entity . length && parser -> position != POS_COMPLETE ) {\n num_read = sock_read ( info , Buf , sizeof ( Buf ) , & Timeout ) ;\n if ( num_read > 0 ) {\n if ( membuffer_append ( & parser -> msg . msg , Buf , ( size_t ) num_read ) != 0 ) {\n parser -> http_error_code = HTTP_INTERNAL_SERVER_ERROR ;\n ret_code = HTTP_INTERNAL_SERVER_ERROR ;\n goto ExitFunction ;\n }\n status = parser_parse_entity ( parser ) ;\n if ( status == PARSE_INCOMPLETE_ENTITY ) {\n ok_on_close = TRUE ;\n }\n else if ( ( status != PARSE_SUCCESS ) && ( status != PARSE_CONTINUE_1 ) && ( status != PARSE_INCOMPLETE ) ) {\n ret_code = HTTP_BAD_REQUEST ;\n goto ExitFunction ;\n }\n }\n else if ( num_read == 0 ) {\n if ( ok_on_close ) {\n UpnpPrintf ( UPNP_INFO , HTTP , __FILE__ , __LINE__ , \"<<< (RECVD) <<<\\n%s\\n-----------------\\n\" , parser -> msg . msg . buf ) ;\n print_http_headers ( & parser -> msg ) ;\n parser -> position = POS_COMPLETE ;\n }\n else {\n parser -> http_error_code = HTTP_BAD_REQUEST ;\n ret_code = HTTP_BAD_REQUEST ;\n goto ExitFunction ;\n }\n }\n else {\n ret_code = HTTP_SERVICE_UNAVAILABLE ;\n goto ExitFunction ;\n }\n }\n if ( ( entity_offset + Data_Buf_Size ) > parser -> msg . entity . length ) {\n Data_Buf_Size = parser -> msg . entity . length - entity_offset ;\n }\n memcpy ( Buf , & parser -> msg . msg . buf [ parser -> entity_start_position + entity_offset ] , Data_Buf_Size ) ;\n entity_offset += Data_Buf_Size ;\n if ( Instr && Instr -> IsVirtualFile ) {\n int n = virtualDirCallback . write ( Fp , Buf , Data_Buf_Size ) ;\n if ( n < 0 ) {\n ret_code = HTTP_INTERNAL_SERVER_ERROR ;\n goto ExitFunction ;\n }\n }\n else {\n size_t n = fwrite ( Buf , 1 , Data_Buf_Size , Fp ) ;\n if ( n != Data_Buf_Size ) {\n ret_code = HTTP_INTERNAL_SERVER_ERROR ;\n goto ExitFunction ;\n }\n }\n }\n while ( parser -> position != POS_COMPLETE || entity_offset != parser -> msg . entity . length ) ;\n ExitFunction : if ( Instr && Instr -> IsVirtualFile ) {\n virtualDirCallback . close ( Fp ) ;\n }\n else {\n fclose ( Fp ) ;\n }\n return ret_code ;\n }"}
{"idx": 3601, "target": 0, "func": "static int rv34_decoder_alloc ( RV34DecContext * r ) {\n r -> intra_types_stride = r -> s . mb_width * 4 + 4 ;\n r -> cbp_chroma = av_malloc ( r -> s . mb_stride * r -> s . mb_height * sizeof ( * r -> cbp_chroma ) ) ;\n r -> cbp_luma = av_malloc ( r -> s . mb_stride * r -> s . mb_height * sizeof ( * r -> cbp_luma ) ) ;\n r -> deblock_coefs = av_malloc ( r -> s . mb_stride * r -> s . mb_height * sizeof ( * r -> deblock_coefs ) ) ;\n r -> intra_types_hist = av_malloc ( r -> intra_types_stride * 4 * 2 * sizeof ( * r -> intra_types_hist ) ) ;\n r -> mb_type = av_mallocz ( r -> s . mb_stride * r -> s . mb_height * sizeof ( * r -> mb_type ) ) ;\n if ( ! ( r -> cbp_chroma && r -> cbp_luma && r -> deblock_coefs && r -> intra_types_hist && r -> mb_type ) ) {\n rv34_decoder_free ( r ) ;\n return AVERROR ( ENOMEM ) ;\n }\n r -> intra_types = r -> intra_types_hist + r -> intra_types_stride * 4 ;\n return 0 ;\n }"}
{"idx": 3602, "target": 0, "func": "int qemuMonitorTextDelDevice ( qemuMonitorPtr mon , const char * devalias ) {\n char * cmd = NULL ;\n char * reply = NULL ;\n char * safedev ;\n int ret = - 1 ;\n if ( ! ( safedev = qemuMonitorEscapeArg ( devalias ) ) ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n if ( virAsprintf ( & cmd , \"device_del %s\" , safedev ) < 0 ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n VIR_DEBUG ( \"TextDelDevice devalias=%s\" , devalias ) ;\n if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"cannot detach %s device\" ) , devalias ) ;\n goto cleanup ;\n }\n if ( STRNEQ ( reply , \"\" ) ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"detaching %s device failed: %s\" ) , devalias , reply ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( cmd ) ;\n VIR_FREE ( reply ) ;\n VIR_FREE ( safedev ) ;\n return ret ;\n }"}
{"idx": 3603, "target": 0, "func": "int i2d_PKCS8_PRIV_KEY_INFO_bio ( BIO * bp , PKCS8_PRIV_KEY_INFO * p8inf ) {\n return ASN1_i2d_bio_of ( PKCS8_PRIV_KEY_INFO , i2d_PKCS8_PRIV_KEY_INFO , bp , p8inf ) ;\n }"}
{"idx": 3604, "target": 0, "func": "static inline void loco_update_rice_param ( RICEContext * r , int val ) {\n r -> sum += val ;\n r -> count ++ ;\n if ( r -> count == 16 ) {\n r -> sum >>= 1 ;\n r -> count >>= 1 ;\n }\n }"}
{"idx": 3605, "target": 0, "func": "void vp8_quantize_mby_c ( MACROBLOCK * x ) {\n int i ;\n int has_2nd_order = ( x -> e_mbd . mode_info_context -> mbmi . mode != B_PRED && x -> e_mbd . mode_info_context -> mbmi . mode != SPLITMV ) ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) x -> quantize_b ( & x -> block [ i ] , & x -> e_mbd . block [ i ] ) ;\n if ( has_2nd_order ) x -> quantize_b ( & x -> block [ 24 ] , & x -> e_mbd . block [ 24 ] ) ;\n }"}
{"idx": 3606, "target": 0, "func": "static int authenticate_nss_2_3 ( struct crypto_instance * instance , unsigned char * buf , int * buf_len ) {\n if ( hash_to_nss [ instance -> crypto_hash_type ] ) {\n unsigned char tmp_hash [ hash_len [ instance -> crypto_hash_type ] ] ;\n int datalen = * buf_len - hash_len [ instance -> crypto_hash_type ] ;\n if ( * buf_len <= hash_len [ instance -> crypto_hash_type ] ) {\n log_printf ( instance -> log_level_security , \"Received message is too short... ignoring\" ) ;\n return - 1 ;\n }\n if ( calculate_nss_hash ( instance , buf , datalen , tmp_hash ) < 0 ) {\n return - 1 ;\n }\n if ( memcmp ( tmp_hash , buf + datalen , hash_len [ instance -> crypto_hash_type ] ) != 0 ) {\n log_printf ( instance -> log_level_error , \"Digest does not match\" ) ;\n return - 1 ;\n }\n * buf_len = datalen ;\n }\n return 0 ;\n }"}
{"idx": 3607, "target": 0, "func": "proto_item * proto_tree_add_ipv4 ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , guint32 value ) {\n proto_item * pi ;\n header_field_info * hfinfo ;\n CHECK_FOR_NULL_TREE ( tree ) ;\n TRY_TO_FAKE_THIS_ITEM ( tree , hfindex , hfinfo ) ;\n DISSECTOR_ASSERT_FIELD_TYPE ( hfinfo , FT_IPv4 ) ;\n pi = proto_tree_add_pi ( tree , hfinfo , tvb , start , & length ) ;\n proto_tree_set_ipv4 ( PNODE_FINFO ( pi ) , value ) ;\n return pi ;\n }"}
{"idx": 3608, "target": 0, "func": "static int pfkey_flush ( struct sock * sk , struct sk_buff * skb , const struct sadb_msg * hdr , void * const * ext_hdrs ) {\n struct net * net = sock_net ( sk ) ;\n unsigned int proto ;\n struct km_event c ;\n struct xfrm_audit audit_info ;\n int err , err2 ;\n proto = pfkey_satype2proto ( hdr -> sadb_msg_satype ) ;\n if ( proto == 0 ) return - EINVAL ;\n audit_info . loginuid = audit_get_loginuid ( current ) ;\n audit_info . sessionid = audit_get_sessionid ( current ) ;\n audit_info . secid = 0 ;\n err = xfrm_state_flush ( net , proto , & audit_info ) ;\n err2 = unicast_flush_resp ( sk , hdr ) ;\n if ( err || err2 ) {\n if ( err == - ESRCH ) err = 0 ;\n return err ? err : err2 ;\n }\n c . data . proto = proto ;\n c . seq = hdr -> sadb_msg_seq ;\n c . portid = hdr -> sadb_msg_pid ;\n c . event = XFRM_MSG_FLUSHSA ;\n c . net = net ;\n km_state_notify ( NULL , & c ) ;\n return 0 ;\n }"}
{"idx": 3609, "target": 1, "func": "static void parse_content_type ( struct attachment_istream * astream , const struct message_header_line * hdr ) {\n struct rfc822_parser_context parser ;\n string_t * content_type ;\n if ( astream -> part . content_type != NULL ) return ;\n rfc822_parser_init ( & parser , hdr -> full_value , hdr -> full_value_len , NULL ) ;\n rfc822_skip_lwsp ( & parser ) ;\n T_BEGIN {\n content_type = t_str_new ( 64 ) ;\n ( void ) rfc822_parse_content_type ( & parser , content_type ) ;\n astream -> part . content_type = i_strdup ( str_c ( content_type ) ) ;\n }\n T_END ;\n }"}
{"idx": 3610, "target": 0, "func": "static guint32 parse_wbxml_tag_defined ( proto_tree * tree , tvbuff_t * tvb , guint32 offset , guint32 str_tbl , guint8 * level , guint8 * codepage_stag , guint8 * codepage_attr , const wbxml_decoding * map ) {\n guint32 tvb_len = tvb_reported_length ( tvb ) ;\n guint32 off = offset , last_off ;\n guint32 len ;\n guint str_len ;\n guint32 ent ;\n guint32 idx ;\n guint8 peek ;\n guint32 tag_len ;\n guint8 tag_save_known = 0 ;\n guint8 tag_new_known = 0 ;\n const char * tag_save_literal ;\n const char * tag_new_literal ;\n guint8 parsing_tag_content = FALSE ;\n tag_save_literal = NULL ;\n DebugLog ( ( \"parse_wbxml_tag_defined (level = %u, offset = %u)\\n\" , * level , offset ) ) ;\n last_off = off ;\n while ( off < tvb_len ) {\n peek = tvb_get_guint8 ( tvb , off ) ;\n DebugLog ( ( \"STAG: (top of while) level = %3u, peek = 0x%02X, off = %u, tvb_len = %u\\n\" , * level , peek , off , tvb_len ) ) ;\n if ( ( peek & 0x3F ) < 4 ) switch ( peek ) {\n case 0x00 : * codepage_stag = tvb_get_guint8 ( tvb , off + 1 ) ;\n proto_tree_add_text ( tree , tvb , off , 2 , \" | Tag | T -->%3d \" \"| SWITCH_PAGE (Tag code page) \" \"|\" , * codepage_stag ) ;\n off += 2 ;\n break ;\n case 0x01 : if ( tag_save_known ) {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| END (Known Tag 0x%02X) \" \"| %s</%s>\" , * level , * codepage_stag , tag_save_known , Indent ( * level ) , tag_save_literal ) ;\n }\n else {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| END (Literal Tag) \" \"| %s</%s>\" , * level , * codepage_stag , Indent ( * level ) , tag_save_literal ? tag_save_literal : \"\" ) ;\n }\n ( * level ) -- ;\n off ++ ;\n DebugLog ( ( \"STAG: level = %u, Return: len = %u\\n\" , * level , off - offset ) ) ;\n return ( off - offset ) ;\n case 0x02 : ent = tvb_get_guintvar ( tvb , off + 1 , & len ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Tag | T %3d \" \"| ENTITY \" \"| %s'&#%u;\n'\" , * level , * codepage_stag , Indent ( * level ) , ent ) ;\n off += 1 + len ;\n break ;\n case 0x03 : len = tvb_strsize ( tvb , off + 1 ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Tag | T %3d \" \"| STR_I (Inline string) \" \"| %s\\'%s\\'\" , * level , * codepage_stag , Indent ( * level ) , tvb_format_text ( tvb , off + 1 , len - 1 ) ) ;\n off += 1 + len ;\n break ;\n case 0x40 : case 0x41 : case 0x42 : len = tvb_strsize ( tvb , off + 1 ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Tag | T %3d \" \"| EXT_I_%1x (Extension Token) \" \"| %s(%s: \\'%s\\')\" , * level , * codepage_stag , peek & 0x0f , Indent ( * level ) , map_token ( map -> global , 0 , peek ) , tvb_format_text ( tvb , off + 1 , len - 1 ) ) ;\n off += 1 + len ;\n break ;\n case 0x43 : proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| PI (XML Processing Instruction) \" \"| %s<?xml\" , * level , * codepage_stag , Indent ( * level ) ) ;\n len = parse_wbxml_attribute_list_defined ( tree , tvb , off , str_tbl , * level , codepage_attr , map ) ;\n off += len ;\n if ( off >= tvb_len ) {\n DebugLog ( ( \"STAG: level = %u, ThrowException: len = %u (short frame)\\n\" , * level , off - offset ) ) ;\n THROW ( ReportedBoundsError ) ;\n }\n proto_tree_add_text ( tree , tvb , off - 1 , 1 , \" %3d | Tag | T %3d \" \"| END (PI) \" \"| %s?>\" , * level , * codepage_stag , Indent ( * level ) ) ;\n break ;\n case 0x80 : case 0x81 : case 0x82 : idx = tvb_get_guintvar ( tvb , off + 1 , & len ) ;\n {\n char * s ;\n if ( map -> ext_t [ peek & 0x03 ] ) s = ( map -> ext_t [ peek & 0x03 ] ) ( tvb , idx , str_tbl ) ;\n else s = wmem_strdup_printf ( wmem_packet_scope ( ) , \"EXT_T_%1x (%s)\" , peek & 0x03 , map_token ( map -> global , 0 , peek ) ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Tag | T %3d \" \"| EXT_T_%1x (Extension Token) \" \"| %s%s\" , * level , * codepage_stag , peek & 0x0f , Indent ( * level ) , s ) ;\n }\n off += 1 + len ;\n break ;\n case 0x83 : idx = tvb_get_guintvar ( tvb , off + 1 , & len ) ;\n str_len = tvb_strsize ( tvb , str_tbl + idx ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Tag | T %3d \" \"| STR_T (Tableref string) \" \"| %s\\'%s\\'\" , * level , * codepage_stag , Indent ( * level ) , tvb_format_text ( tvb , str_tbl + idx , str_len - 1 ) ) ;\n off += 1 + len ;\n break ;\n case 0xC0 : case 0xC1 : case 0xC2 : proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| EXT_%1x (Extension Token) \" \"| %s(%s)\" , * level , * codepage_stag , peek & 0x0f , Indent ( * level ) , map_token ( map -> global , 0 , peek ) ) ;\n off ++ ;\n break ;\n case 0xC3 : if ( tvb_get_guint8 ( tvb , 0 ) ) {\n char * str ;\n if ( tag_save_known ) {\n if ( map -> opaque_binary_tag ) {\n str = map -> opaque_binary_tag ( tvb , off + 1 , tag_save_known , * codepage_stag , & len ) ;\n }\n else {\n str = default_opaque_binary_tag ( tvb , off + 1 , tag_save_known , * codepage_stag , & len ) ;\n }\n }\n else {\n if ( map -> opaque_literal_tag ) {\n str = map -> opaque_literal_tag ( tvb , off + 1 , tag_save_literal , * codepage_stag , & len ) ;\n }\n else {\n str = default_opaque_literal_tag ( tvb , off + 1 , tag_save_literal , * codepage_stag , & len ) ;\n }\n }\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Tag | T %3d \" \"| OPAQUE (Opaque data) \" \"| %s%s\" , * level , * codepage_stag , Indent ( * level ) , str ) ;\n off += 1 + len ;\n }\n else {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| RESERVED_2 (Invalid Token!) \" \"| WBXML 1.0 parsing stops here.\" , * level , * codepage_stag ) ;\n off = tvb_len ;\n DebugLog ( ( \"STAG: level = %u, Return: len = %u\\n\" , * level , off - offset ) ) ;\n return ( off - offset ) ;\n }\n break ;\n }\n else {\n tag_len = 0 ;\n if ( ( peek & 0x3F ) == 4 ) {\n DebugLog ( ( \"STAG: LITERAL tag (peek = 0x%02X, off = %u) - TableRef follows!\\n\" , peek , off ) ) ;\n idx = tvb_get_guintvar ( tvb , off + 1 , & tag_len ) ;\n str_len = tvb_strsize ( tvb , str_tbl + idx ) ;\n tag_new_literal = ( const gchar * ) tvb_get_ptr ( tvb , str_tbl + idx , str_len ) ;\n tag_new_known = 0 ;\n }\n else {\n tag_new_known = peek & 0x3F ;\n tag_new_literal = map_token ( map -> tags , * codepage_stag , tag_new_known ) ;\n }\n if ( peek & 0x40 ) {\n if ( parsing_tag_content ) {\n DebugLog ( ( \"STAG: Tag in Tag - RECURSE! (off = %u)\\n\" , off ) ) ;\n ( * level ) ++ ;\n len = parse_wbxml_tag_defined ( tree , tvb , off , str_tbl , level , codepage_stag , codepage_attr , map ) ;\n off += len ;\n }\n else {\n if ( ( peek & 0x3F ) == 4 ) {\n tag_save_literal = tag_new_literal ;\n tag_save_known = 0 ;\n }\n else {\n tag_save_known = tag_new_known ;\n tag_save_literal = tag_new_literal ;\n }\n if ( peek & 0x80 ) {\n if ( tag_new_known ) {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| Known Tag 0x%02X (AC) \" \"| %s<%s\" , * level , * codepage_stag , tag_new_known , Indent ( * level ) , tag_new_literal ) ;\n off ++ ;\n }\n else {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| LITERAL_AC (Literal tag) (AC) \" \"| %s<%s\" , * level , * codepage_stag , Indent ( * level ) , tag_new_literal ) ;\n off += 1 + tag_len ;\n }\n len = parse_wbxml_attribute_list_defined ( tree , tvb , off , str_tbl , * level , codepage_attr , map ) ;\n off += len ;\n if ( off >= tvb_len ) {\n DebugLog ( ( \"STAG: level = %u, ThrowException: len = %u (short frame)\\n\" , * level , off - offset ) ) ;\n THROW ( ReportedBoundsError ) ;\n }\n proto_tree_add_text ( tree , tvb , off - 1 , 1 , \" %3d | Tag | T %3d \" \"| END (attribute list) \" \"| %s>\" , * level , * codepage_stag , Indent ( * level ) ) ;\n }\n else {\n if ( tag_new_known ) {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| Known Tag 0x%02X (.C) \" \"| %s<%s>\" , * level , * codepage_stag , tag_new_known , Indent ( * level ) , tag_new_literal ) ;\n off ++ ;\n }\n else {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| LITERAL_C (Literal Tag) (.C) \" \"| %s<%s>\" , * level , * codepage_stag , Indent ( * level ) , tag_new_literal ) ;\n off += 1 + tag_len ;\n }\n }\n parsing_tag_content = TRUE ;\n DebugLog ( ( \"Tag in Tag - No recursion this time! (off = %u)\\n\" , off ) ) ;\n }\n }\n else {\n DebugLog ( ( \"<Tag/> in Tag - No recursion! (off = %u)\\n\" , off ) ) ;\n ( * level ) ++ ;\n if ( peek & 0x80 ) {\n if ( tag_new_known ) {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| Known Tag 0x%02X (A.) \" \"| %s<%s\" , * level , * codepage_stag , tag_new_known , Indent ( * level ) , tag_new_literal ) ;\n off ++ ;\n len = parse_wbxml_attribute_list_defined ( tree , tvb , off , str_tbl , * level , codepage_attr , map ) ;\n off += len ;\n if ( off > tvb_len ) {\n DebugLog ( ( \"STAG: level = %u, ThrowException: len = %u (short frame)\\n\" , * level , off - offset ) ) ;\n THROW ( ReportedBoundsError ) ;\n }\n proto_tree_add_text ( tree , tvb , off - 1 , 1 , \" %3d | Tag | T %3d \" \"| END (Known Tag) \" \"| %s/>\" , * level , * codepage_stag , Indent ( * level ) ) ;\n }\n else {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| LITERAL_A (Literal Tag) (A.) \" \"| %s<%s\" , * level , * codepage_stag , Indent ( * level ) , tag_new_literal ) ;\n off += 1 + tag_len ;\n len = parse_wbxml_attribute_list_defined ( tree , tvb , off , str_tbl , * level , codepage_attr , map ) ;\n off += len ;\n if ( off >= tvb_len ) {\n DebugLog ( ( \"STAG: level = %u, ThrowException: len = %u (short frame)\\n\" , * level , off - offset ) ) ;\n THROW ( ReportedBoundsError ) ;\n }\n proto_tree_add_text ( tree , tvb , off - 1 , 1 , \" %3d | Tag | T %3d \" \"| END (Literal Tag) \" \"| %s/>\" , * level , * codepage_stag , Indent ( * level ) ) ;\n }\n }\n else {\n if ( tag_new_known ) {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| Known Tag 0x%02x (..) \" \"| %s<%s />\" , * level , * codepage_stag , tag_new_known , Indent ( * level ) , tag_new_literal ) ;\n off ++ ;\n }\n else {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| LITERAL (Literal Tag) (..) \" \"| %s<%s />\" , * level , * codepage_stag , Indent ( * level ) , tag_new_literal ) ;\n off += 1 + tag_len ;\n }\n }\n ( * level ) -- ;\n }\n }\n if ( off < last_off ) {\n THROW ( ReportedBoundsError ) ;\n }\n last_off = off ;\n }\n DebugLog ( ( \"STAG: level = %u, Return: len = %u (end of function body)\\n\" , * level , off - offset ) ) ;\n return ( off - offset ) ;\n }"}
{"idx": 3611, "target": 0, "func": "void http_postrequest_done ( struct evhttp_request * req , void * arg ) {\n const char * what = \"This is funny\" ;\n if ( req == NULL ) {\n fprintf ( stderr , \"FAILED (timeout)\\n\" ) ;\n exit ( 1 ) ;\n }\n if ( req -> response_code != HTTP_OK ) {\n fprintf ( stderr , \"FAILED (response code)\\n\" ) ;\n exit ( 1 ) ;\n }\n if ( evhttp_find_header ( req -> input_headers , \"Content-Type\" ) == NULL ) {\n fprintf ( stderr , \"FAILED (content type)\\n\" ) ;\n exit ( 1 ) ;\n }\n if ( EVBUFFER_LENGTH ( req -> input_buffer ) != strlen ( what ) ) {\n fprintf ( stderr , \"FAILED (length %zu vs %zu)\\n\" , EVBUFFER_LENGTH ( req -> input_buffer ) , strlen ( what ) ) ;\n exit ( 1 ) ;\n }\n if ( memcmp ( EVBUFFER_DATA ( req -> input_buffer ) , what , strlen ( what ) ) != 0 ) {\n fprintf ( stderr , \"FAILED (data)\\n\" ) ;\n exit ( 1 ) ;\n }\n test_ok = 1 ;\n event_loopexit ( NULL ) ;\n }"}
{"idx": 3612, "target": 1, "func": "xmlLinkPtr xmlListFront ( xmlListPtr l ) {\n if ( l == NULL ) return ( NULL ) ;\n return ( l -> sentinel -> next ) ;\n }"}
{"idx": 3613, "target": 0, "func": "static void mode_list ( struct cpio * cpio ) {\n struct archive * a ;\n struct archive_entry * entry ;\n int r ;\n a = archive_read_new ( ) ;\n if ( a == NULL ) lafe_errc ( 1 , 0 , \"Couldn't allocate archive object\" ) ;\n archive_read_support_filter_all ( a ) ;\n archive_read_support_format_all ( a ) ;\n if ( cpio -> passphrase != NULL ) r = archive_read_add_passphrase ( a , cpio -> passphrase ) ;\n else r = archive_read_set_passphrase_callback ( a , cpio , & passphrase_callback ) ;\n if ( r != ARCHIVE_OK ) lafe_errc ( 1 , 0 , \"%s\" , archive_error_string ( a ) ) ;\n if ( archive_read_open_filename ( a , cpio -> filename , cpio -> bytes_per_block ) ) lafe_errc ( 1 , archive_errno ( a ) , \"%s\" , archive_error_string ( a ) ) ;\n for ( ;\n ;\n ) {\n r = archive_read_next_header ( a , & entry ) ;\n if ( r == ARCHIVE_EOF ) break ;\n if ( r != ARCHIVE_OK ) {\n lafe_errc ( 1 , archive_errno ( a ) , \"%s\" , archive_error_string ( a ) ) ;\n }\n if ( archive_match_path_excluded ( cpio -> matching , entry ) ) continue ;\n if ( cpio -> verbose ) list_item_verbose ( cpio , entry ) ;\n else fprintf ( stdout , \"%s\\n\" , archive_entry_pathname ( entry ) ) ;\n }\n r = archive_read_close ( a ) ;\n if ( r != ARCHIVE_OK ) lafe_errc ( 1 , 0 , \"%s\" , archive_error_string ( a ) ) ;\n if ( ! cpio -> quiet ) {\n int64_t blocks = ( archive_filter_bytes ( a , 0 ) + 511 ) / 512 ;\n fprintf ( stderr , \"%lu %s\\n\" , ( unsigned long ) blocks , blocks == 1 ? \"block\" : \"blocks\" ) ;\n }\n archive_read_free ( a ) ;\n exit ( 0 ) ;\n }"}
{"idx": 3614, "target": 1, "func": "static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 3615, "target": 0, "func": "static void idreg_init ( hwaddr addr ) {\n DeviceState * dev ;\n SysBusDevice * s ;\n dev = qdev_create ( NULL , \"macio_idreg\" ) ;\n qdev_init_nofail ( dev ) ;\n s = SYS_BUS_DEVICE ( dev ) ;\n sysbus_mmio_map ( s , 0 , addr ) ;\n cpu_physical_memory_write_rom ( addr , idreg_data , sizeof ( idreg_data ) ) ;\n }"}
{"idx": 3616, "target": 0, "func": "static int dissect_h245_CapabilityIdentifier ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 714 \"../../asn1/h245/h245.cnf\" gef_ctx_t * gefx ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_CapabilityIdentifier , CapabilityIdentifier_choice , NULL ) ;\n # line 716 \"../../asn1/h245/h245.cnf\" gef_ctx_update_key ( gef_ctx_get ( actx -> private_data ) ) ;\n gefx = gef_ctx_get ( actx -> private_data ) ;\n if ( gefx ) {\n dissector_try_string ( gef_name_dissector_table , gefx -> key , tvb_new_subset ( tvb , offset >> 3 , 0 , 0 ) , actx -> pinfo , tree , actx ) ;\n }\n actx -> private_data = gefx ;\n return offset ;\n }"}
{"idx": 3617, "target": 0, "func": "static int dissect_h245_MasterSlaveDeterminationRejectCause ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_MasterSlaveDeterminationRejectCause , MasterSlaveDeterminationRejectCause_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 3618, "target": 0, "func": "const EVP_CIPHER * EVP_aes_ ## keylen ## _ ## mode ( void ) \\ {\n return & aes_ ## keylen ## _ ## mode ;\n }\n # 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_CAPABLE ( OPENSSL_armcap_P & ARMV7_NEON ) # endif # if defined ( VPAES_ASM ) # define VPAES_CAPABLE ( OPENSSL_armcap_P & ARMV7_NEON ) # endif # define HWAES_CAPABLE ( OPENSSL_armcap_P & ARMV8_AES ) # define HWAES_set_encrypt_key aes_v8_set_encrypt_key # define HWAES_set_decrypt_key aes_v8_set_decrypt_key # define HWAES_encrypt aes_v8_encrypt # define HWAES_decrypt aes_v8_decrypt # define HWAES_cbc_encrypt aes_v8_cbc_encrypt # define HWAES_ctr32_encrypt_blocks aes_v8_ctr32_encrypt_blocks # endif # endif # if defined ( HWAES_CAPABLE ) int HWAES_set_encrypt_key ( const unsigned char * userKey , const int bits , AES_KEY * key ) ;\n int HWAES_set_decrypt_key ( const unsigned char * userKey , const int bits , AES_KEY * key ) ;\n void HWAES_encrypt ( const unsigned char * in , unsigned char * out , const AES_KEY * key ) ;\n void HWAES_decrypt ( const unsigned char * in , unsigned char * out , const AES_KEY * key ) ;\n void HWAES_cbc_encrypt ( const unsigned char * in , unsigned char * out , size_t length , const AES_KEY * key , unsigned char * ivec , const int enc ) ;\n void HWAES_ctr32_encrypt_blocks ( const unsigned char * in , unsigned char * out , size_t len , const AES_KEY * key , const unsigned char ivec [ 16 ] ) ;\n void HWAES_xts_encrypt ( const unsigned char * inp , unsigned char * out , size_t len , const AES_KEY * key1 , const AES_KEY * key2 , const unsigned char iv [ 16 ] ) ;\n void HWAES_xts_decrypt ( const unsigned char * inp , unsigned char * out , size_t len , const AES_KEY * key1 , const AES_KEY * key2 , const unsigned char iv [ 16 ] ) ;\n # endif # define BLOCK_CIPHER_generic_pack ( nid , keylen , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 16 , 16 , cbc , cbc , CBC , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 16 , 0 , ecb , ecb , ECB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , ofb128 , ofb , OFB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb128 , cfb , CFB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb1 , cfb1 , CFB , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb8 , cfb8 , CFB , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , ctr , ctr , CTR , flags ) static int aes_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n int ret , mode ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n mode = EVP_CIPHER_CTX_mode ( ctx ) ;\n if ( ( mode == EVP_CIPH_ECB_MODE || mode == EVP_CIPH_CBC_MODE ) && ! enc ) {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_decrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n # endif }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CBC_MODE ) {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = ( cbc128_f ) bsaes_cbc_encrypt ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n }\n }\n else # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_encrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n else # endif # ifdef HWAES_ctr32_encrypt_blocks if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) HWAES_ctr32_encrypt_blocks ;\n else # endif ( void ) 0 ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CTR_MODE ) {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . ctr = ( ctr128_f ) bsaes_ctr32_encrypt_blocks ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n # ifdef AES_CTR_ASM if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) AES_ctr32_encrypt ;\n # endif }\n if ( ret < 0 ) {\n EVPerr ( EVP_F_AES_INIT_KEY , EVP_R_AES_KEY_SETUP_FAILED ) ;\n return 0 ;\n }\n return 1 ;\n }\n static int aes_cbc_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( dat -> stream . cbc ) ( * dat -> stream . cbc ) ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_encrypting ( ctx ) ) ;\n else if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) CRYPTO_cbc128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , dat -> block ) ;\n else CRYPTO_cbc128_decrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , dat -> block ) ;\n return 1 ;\n }\n static int aes_ecb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n size_t bl = EVP_CIPHER_CTX_block_size ( ctx ) ;\n size_t i ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( len < bl ) return 1 ;\n for ( i = 0 , len -= bl ;\n i <= len ;\n i += bl ) ( * dat -> block ) ( in + i , out + i , & dat -> ks ) ;\n return 1 ;\n }\n static int aes_ofb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_ofb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb8_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_8_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb1_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( EVP_CIPHER_CTX_test_flags ( ctx , EVP_CIPH_FLAG_LENGTH_BITS ) ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n while ( len >= MAXBITCHUNK ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , MAXBITCHUNK * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n len -= MAXBITCHUNK ;\n }\n if ( len ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n }\n return 1 ;\n }\n static int aes_ctr_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n unsigned int num = EVP_CIPHER_CTX_num ( ctx ) ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( dat -> stream . ctr ) CRYPTO_ctr128_encrypt_ctr32 ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> stream . ctr ) ;\n else CRYPTO_ctr128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n BLOCK_CIPHER_generic_pack ( NID_aes , 128 , 0 ) BLOCK_CIPHER_generic_pack ( NID_aes , 192 , 0 ) BLOCK_CIPHER_generic_pack ( NID_aes , 256 , 0 ) static int aes_gcm_cleanup ( EVP_CIPHER_CTX * c ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , c ) ;\n OPENSSL_cleanse ( & gctx -> gcm , sizeof ( gctx -> gcm ) ) ;\n if ( gctx -> iv != EVP_CIPHER_CTX_iv_noconst ( c ) ) OPENSSL_free ( gctx -> iv ) ;\n return 1 ;\n }\n static void ctr64_inc ( unsigned char * counter ) {\n int n = 8 ;\n unsigned char c ;\n do {\n -- n ;\n c = counter [ n ] ;\n ++ c ;\n counter [ n ] = c ;\n if ( c ) return ;\n }\n while ( n ) ;\n }\n static int aes_gcm_ctrl ( EVP_CIPHER_CTX * c , int type , int arg , void * ptr ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , c ) ;\n switch ( type ) {\n case EVP_CTRL_INIT : gctx -> key_set = 0 ;\n gctx -> iv_set = 0 ;\n gctx -> ivlen = EVP_CIPHER_CTX_iv_length ( c ) ;\n gctx -> iv = EVP_CIPHER_CTX_iv_noconst ( c ) ;\n gctx -> taglen = - 1 ;\n gctx -> iv_gen = 0 ;\n gctx -> tls_aad_len = - 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_IVLEN : if ( arg <= 0 ) return 0 ;\n if ( ( arg > EVP_MAX_IV_LENGTH ) && ( arg > gctx -> ivlen ) ) {\n if ( gctx -> iv != EVP_CIPHER_CTX_iv_noconst ( c ) ) OPENSSL_free ( gctx -> iv ) ;\n gctx -> iv = OPENSSL_malloc ( arg ) ;\n if ( gctx -> iv == NULL ) return 0 ;\n }\n gctx -> ivlen = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_TAG : if ( arg <= 0 || arg > 16 || EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n gctx -> taglen = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_GET_TAG : if ( arg <= 0 || arg > 16 || ! EVP_CIPHER_CTX_encrypting ( c ) || gctx -> taglen < 0 ) return 0 ;\n memcpy ( ptr , EVP_CIPHER_CTX_buf_noconst ( c ) , arg ) ;\n return 1 ;\n case EVP_CTRL_GCM_SET_IV_FIXED : if ( arg == - 1 ) {\n memcpy ( gctx -> iv , ptr , gctx -> ivlen ) ;\n gctx -> iv_gen = 1 ;\n return 1 ;\n }\n if ( ( arg < 4 ) || ( gctx -> ivlen - arg ) < 8 ) return 0 ;\n if ( arg ) memcpy ( gctx -> iv , ptr , arg ) ;\n if ( EVP_CIPHER_CTX_encrypting ( c ) && RAND_bytes ( gctx -> iv + arg , gctx -> ivlen - arg ) <= 0 ) return 0 ;\n gctx -> iv_gen = 1 ;\n return 1 ;\n case EVP_CTRL_GCM_IV_GEN : if ( gctx -> iv_gen == 0 || gctx -> key_set == 0 ) return 0 ;\n CRYPTO_gcm128_setiv ( & gctx -> gcm , gctx -> iv , gctx -> ivlen ) ;\n if ( arg <= 0 || arg > gctx -> ivlen ) arg = gctx -> ivlen ;\n memcpy ( ptr , gctx -> iv + gctx -> ivlen - arg , arg ) ;\n ctr64_inc ( gctx -> iv + gctx -> ivlen - 8 ) ;\n gctx -> iv_set = 1 ;\n return 1 ;\n case EVP_CTRL_GCM_SET_IV_INV : if ( gctx -> iv_gen == 0 || gctx -> key_set == 0 || EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( gctx -> iv + gctx -> ivlen - arg , ptr , arg ) ;\n CRYPTO_gcm128_setiv ( & gctx -> gcm , gctx -> iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_TLS1_AAD : if ( arg != EVP_AEAD_TLS1_AAD_LEN ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n gctx -> tls_aad_len = arg ;\n {\n unsigned int len = EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] << 8 | EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] ;\n if ( len < EVP_GCM_TLS_EXPLICIT_IV_LEN ) return 0 ;\n len -= EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n if ( ! EVP_CIPHER_CTX_encrypting ( c ) ) {\n if ( len < EVP_GCM_TLS_TAG_LEN ) return 0 ;\n len -= EVP_GCM_TLS_TAG_LEN ;\n }\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] = len >> 8 ;\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] = len & 0xff ;\n }\n return EVP_GCM_TLS_TAG_LEN ;\n case EVP_CTRL_COPY : {\n EVP_CIPHER_CTX * out = ptr ;\n EVP_AES_GCM_CTX * gctx_out = EVP_C_DATA ( EVP_AES_GCM_CTX , out ) ;\n if ( gctx -> gcm . key ) {\n if ( gctx -> gcm . key != & gctx -> ks ) return 0 ;\n gctx_out -> gcm . key = & gctx_out -> ks ;\n }\n if ( gctx -> iv == EVP_CIPHER_CTX_iv_noconst ( c ) ) gctx_out -> iv = EVP_CIPHER_CTX_iv_noconst ( out ) ;\n else {\n gctx_out -> iv = OPENSSL_malloc ( gctx -> ivlen ) ;\n if ( gctx_out -> iv == NULL ) return 0 ;\n memcpy ( gctx_out -> iv , gctx -> iv , gctx -> ivlen ) ;\n }\n return 1 ;\n }\n default : return - 1 ;\n }\n }\n static int aes_gcm_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n if ( ! iv && ! key ) return 1 ;\n if ( key ) {\n do {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) HWAES_encrypt ) ;\n # ifdef HWAES_ctr32_encrypt_blocks gctx -> ctr = ( ctr128_f ) HWAES_ctr32_encrypt_blocks ;\n # else gctx -> ctr = NULL ;\n # endif break ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE ) {\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) AES_encrypt ) ;\n gctx -> ctr = ( ctr128_f ) bsaes_ctr32_encrypt_blocks ;\n break ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) vpaes_encrypt ) ;\n gctx -> ctr = NULL ;\n break ;\n }\n else # endif ( void ) 0 ;\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) AES_encrypt ) ;\n # ifdef AES_CTR_ASM gctx -> ctr = ( ctr128_f ) AES_ctr32_encrypt ;\n # else gctx -> ctr = NULL ;\n # endif }\n while ( 0 ) ;\n if ( iv == NULL && gctx -> iv_set ) iv = gctx -> iv ;\n if ( iv ) {\n CRYPTO_gcm128_setiv ( & gctx -> gcm , iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n }\n gctx -> key_set = 1 ;\n }\n else {\n if ( gctx -> key_set ) CRYPTO_gcm128_setiv ( & gctx -> gcm , iv , gctx -> ivlen ) ;\n else memcpy ( gctx -> iv , iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n gctx -> iv_gen = 0 ;\n }\n return 1 ;\n }\n static int aes_gcm_tls_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n int rv = - 1 ;\n if ( out != in || len < ( EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ) ) return - 1 ;\n if ( EVP_CIPHER_CTX_ctrl ( ctx , EVP_CIPHER_CTX_encrypting ( ctx ) ? EVP_CTRL_GCM_IV_GEN : EVP_CTRL_GCM_SET_IV_INV , EVP_GCM_TLS_EXPLICIT_IV_LEN , out ) <= 0 ) goto err ;\n if ( CRYPTO_gcm128_aad ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , gctx -> tls_aad_len ) ) goto err ;\n in += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n out += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n len -= EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ;\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 32 && AES_GCM_ASM ( gctx ) ) {\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_encrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) goto err ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 32 && AES_GCM_ASM2 ( gctx ) ) {\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) goto err ;\n }\n out += len ;\n CRYPTO_gcm128_tag ( & gctx -> gcm , out , EVP_GCM_TLS_TAG_LEN ) ;\n rv = len + EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ;\n }\n else {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 16 && AES_GCM_ASM ( gctx ) ) {\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_decrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) goto err ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 16 && AES_GCM_ASM2 ( gctx ) ) {\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) goto err ;\n }\n CRYPTO_gcm128_tag ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , EVP_GCM_TLS_TAG_LEN ) ;\n if ( CRYPTO_memcmp ( EVP_CIPHER_CTX_buf_noconst ( ctx ) , in + len , EVP_GCM_TLS_TAG_LEN ) ) {\n OPENSSL_cleanse ( out , len ) ;\n goto err ;\n }\n rv = len ;\n }\n err : gctx -> iv_set = 0 ;\n gctx -> tls_aad_len = - 1 ;\n return rv ;\n }\n static int aes_gcm_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n if ( ! gctx -> key_set ) return - 1 ;\n if ( gctx -> tls_aad_len >= 0 ) return aes_gcm_tls_cipher ( ctx , out , in , len ) ;\n if ( ! gctx -> iv_set ) return - 1 ;\n if ( in ) {\n if ( out == NULL ) {\n if ( CRYPTO_gcm128_aad ( & gctx -> gcm , in , len ) ) return - 1 ;\n }\n else if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 32 && AES_GCM_ASM ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_encrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) return - 1 ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 32 && AES_GCM_ASM2 ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) return - 1 ;\n }\n }\n else {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 16 && AES_GCM_ASM ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_decrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) return - 1 ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 16 && AES_GCM_ASM2 ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) return - 1 ;\n }\n }\n return len ;\n }\n else {\n if ( ! EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> taglen < 0 ) return - 1 ;\n if ( CRYPTO_gcm128_finish ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , gctx -> taglen ) != 0 ) return - 1 ;\n gctx -> iv_set = 0 ;\n return 0 ;\n }\n CRYPTO_gcm128_tag ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , 16 ) ;\n gctx -> taglen = 16 ;\n gctx -> iv_set = 0 ;\n return 0 ;\n }\n }\n # define CUSTOM_FLAGS ( EVP_CIPH_FLAG_DEFAULT_ASN1 \\ | EVP_CIPH_CUSTOM_IV | EVP_CIPH_FLAG_CUSTOM_CIPHER \\ | EVP_CIPH_ALWAYS_CALL_INIT | EVP_CIPH_CTRL_INIT \\ | EVP_CIPH_CUSTOM_COPY ) BLOCK_CIPHER_custom ( NID_aes , 128 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 192 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 256 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) static int aes_xts_ctrl ( EVP_CIPHER_CTX * c , int type , int arg , void * ptr ) {\n EVP_AES_XTS_CTX * xctx = EVP_C_DATA ( EVP_AES_XTS_CTX , c ) ;\n if ( type == EVP_CTRL_COPY ) {\n EVP_CIPHER_CTX * out = ptr ;\n EVP_AES_XTS_CTX * xctx_out = EVP_C_DATA ( EVP_AES_XTS_CTX , out ) ;\n if ( xctx -> xts . key1 ) {\n if ( xctx -> xts . key1 != & xctx -> ks1 ) return 0 ;\n xctx_out -> xts . key1 = & xctx_out -> ks1 ;\n }\n if ( xctx -> xts . key2 ) {\n if ( xctx -> xts . key2 != & xctx -> ks2 ) return 0 ;\n xctx_out -> xts . key2 = & xctx_out -> ks2 ;\n }\n return 1 ;\n }\n else if ( type != EVP_CTRL_INIT ) return - 1 ;\n xctx -> xts . key1 = NULL ;\n xctx -> xts . key2 = NULL ;\n return 1 ;\n }\n static int aes_xts_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n EVP_AES_XTS_CTX * xctx = EVP_C_DATA ( EVP_AES_XTS_CTX , ctx ) ;\n if ( ! iv && ! key ) return 1 ;\n if ( key ) do {\n # ifdef AES_XTS_ASM xctx -> stream = enc ? AES_xts_encrypt : AES_xts_decrypt ;\n # else xctx -> stream = NULL ;\n # endif # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n if ( enc ) {\n HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) HWAES_encrypt ;\n # ifdef HWAES_xts_encrypt xctx -> stream = HWAES_xts_encrypt ;\n # endif }\n else {\n HWAES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) HWAES_decrypt ;\n # ifdef HWAES_xts_decrypt xctx -> stream = HWAES_xts_decrypt ;\n # endif }\n HWAES_set_encrypt_key ( key + EVP_CIPHER_CTX_key_length ( ctx ) / 2 , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks2 . ks ) ;\n xctx -> xts . block2 = ( block128_f ) HWAES_encrypt ;\n xctx -> xts . key1 = & xctx -> ks1 ;\n break ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE ) xctx -> stream = enc ? bsaes_xts_encrypt : bsaes_xts_decrypt ;\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n if ( enc ) {\n vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) vpaes_encrypt ;\n }\n else {\n vpaes_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) vpaes_decrypt ;\n }\n vpaes_set_encrypt_key ( key + EVP_CIPHER_CTX_key_length ( ctx ) / 2 , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks2 . ks ) ;\n xctx -> xts . block2 = ( block128_f ) vpaes_encrypt ;\n xctx -> xts . key1 = & xctx -> ks1 ;\n break ;\n }\n else # endif ( void ) 0 ;\n if ( enc ) {\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) AES_encrypt ;\n }\n else {\n AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) AES_decrypt ;\n }\n AES_set_encrypt_key ( key + EVP_CIPHER_CTX_key_length ( ctx ) / 2 , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks2 . ks ) ;\n xctx -> xts . block2 = ( block128_f ) AES_encrypt ;\n xctx -> xts . key1 = & xctx -> ks1 ;\n }\n while ( 0 ) ;\n if ( iv ) {\n xctx -> xts . key2 = & xctx -> ks2 ;\n memcpy ( EVP_CIPHER_CTX_iv_noconst ( ctx ) , iv , 16 ) ;\n }\n return 1 ;\n }\n static int aes_xts_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_XTS_CTX * xctx = EVP_C_DATA ( EVP_AES_XTS_CTX , ctx ) ;\n if ( ! xctx -> xts . key1 || ! xctx -> xts . key2 ) return 0 ;\n if ( ! out || ! in || len < AES_BLOCK_SIZE ) return 0 ;\n if ( xctx -> stream ) ( * xctx -> stream ) ( in , out , len , xctx -> xts . key1 , xctx -> xts . key2 , EVP_CIPHER_CTX_iv_noconst ( ctx ) ) ;\n else if ( CRYPTO_xts128_encrypt ( & xctx -> xts , EVP_CIPHER_CTX_iv_noconst ( ctx ) , in , out , len , EVP_CIPHER_CTX_encrypting ( ctx ) ) ) return 0 ;\n return 1 ;\n }\n # define aes_xts_cleanup NULL # define XTS_FLAGS ( EVP_CIPH_FLAG_DEFAULT_ASN1 | EVP_CIPH_CUSTOM_IV \\ | EVP_CIPH_ALWAYS_CALL_INIT | EVP_CIPH_CTRL_INIT \\ | EVP_CIPH_CUSTOM_COPY ) BLOCK_CIPHER_custom ( NID_aes , 128 , 1 , 16 , xts , XTS , XTS_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 256 , 1 , 16 , xts , XTS , XTS_FLAGS ) static int aes_ccm_ctrl ( EVP_CIPHER_CTX * c , int type , int arg , void * ptr ) {\n EVP_AES_CCM_CTX * cctx = EVP_C_DATA ( EVP_AES_CCM_CTX , c ) ;\n switch ( type ) {\n case EVP_CTRL_INIT : cctx -> key_set = 0 ;\n cctx -> iv_set = 0 ;\n cctx -> L = 8 ;\n cctx -> M = 12 ;\n cctx -> tag_set = 0 ;\n cctx -> len_set = 0 ;\n cctx -> tls_aad_len = - 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_TLS1_AAD : if ( arg != EVP_AEAD_TLS1_AAD_LEN ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n cctx -> tls_aad_len = arg ;\n {\n uint16_t len = EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] << 8 | EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] ;\n if ( len < EVP_CCM_TLS_EXPLICIT_IV_LEN ) return 0 ;\n len -= EVP_CCM_TLS_EXPLICIT_IV_LEN ;\n if ( ! EVP_CIPHER_CTX_encrypting ( c ) ) {\n if ( len < cctx -> M ) return 0 ;\n len -= cctx -> M ;\n }\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] = len >> 8 ;\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] = len & 0xff ;\n }\n return cctx -> M ;\n case EVP_CTRL_CCM_SET_IV_FIXED : if ( arg != EVP_CCM_TLS_FIXED_IV_LEN ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_iv_noconst ( c ) , ptr , arg ) ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_IVLEN : arg = 15 - arg ;\n case EVP_CTRL_CCM_SET_L : if ( arg < 2 || arg > 8 ) return 0 ;\n cctx -> L = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_TAG : if ( ( arg & 1 ) || arg < 4 || arg > 16 ) return 0 ;\n if ( EVP_CIPHER_CTX_encrypting ( c ) && ptr ) return 0 ;\n if ( ptr ) {\n cctx -> tag_set = 1 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n }\n cctx -> M = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_GET_TAG : if ( ! EVP_CIPHER_CTX_encrypting ( c ) || ! cctx -> tag_set ) return 0 ;\n if ( ! CRYPTO_ccm128_tag ( & cctx -> ccm , ptr , ( size_t ) arg ) ) return 0 ;\n cctx -> tag_set = 0 ;\n cctx -> iv_set = 0 ;\n cctx -> len_set = 0 ;\n return 1 ;\n case EVP_CTRL_COPY : {\n EVP_CIPHER_CTX * out = ptr ;\n EVP_AES_CCM_CTX * cctx_out = EVP_C_DATA ( EVP_AES_CCM_CTX , out ) ;\n if ( cctx -> ccm . key ) {\n if ( cctx -> ccm . key != & cctx -> ks ) return 0 ;\n cctx_out -> ccm . key = & cctx_out -> ks ;\n }\n return 1 ;\n }\n default : return - 1 ;\n }\n }\n static int aes_ccm_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n EVP_AES_CCM_CTX * cctx = EVP_C_DATA ( EVP_AES_CCM_CTX , ctx ) ;\n if ( ! iv && ! key ) return 1 ;\n if ( key ) do {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & cctx -> ks . ks ) ;\n CRYPTO_ccm128_init ( & cctx -> ccm , cctx -> M , cctx -> L , & cctx -> ks , ( block128_f ) HWAES_encrypt ) ;\n cctx -> str = NULL ;\n cctx -> key_set = 1 ;\n break ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & cctx -> ks . ks ) ;\n CRYPTO_ccm128_init ( & cctx -> ccm , cctx -> M , cctx -> L , & cctx -> ks , ( block128_f ) vpaes_encrypt ) ;\n cctx -> str = NULL ;\n cctx -> key_set = 1 ;\n break ;\n }\n # endif AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & cctx -> ks . ks ) ;\n CRYPTO_ccm128_init ( & cctx -> ccm , cctx -> M , cctx -> L , & cctx -> ks , ( block128_f ) AES_encrypt ) ;\n cctx -> str = NULL ;\n cctx -> key_set = 1 ;\n }\n while ( 0 ) ;\n if ( iv ) {\n memcpy ( EVP_CIPHER_CTX_iv_noconst ( ctx ) , iv , 15 - cctx -> L ) ;\n cctx -> iv_set = 1 ;\n }\n return 1 ;\n }\n static int aes_ccm_tls_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_CCM_CTX * cctx = EVP_C_DATA ( EVP_AES_CCM_CTX , ctx ) ;\n CCM128_CONTEXT * ccm = & cctx -> ccm ;\n if ( out != in || len < ( EVP_CCM_TLS_EXPLICIT_IV_LEN + ( size_t ) cctx -> M ) ) return - 1 ;\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) memcpy ( out , EVP_CIPHER_CTX_buf_noconst ( ctx ) , EVP_CCM_TLS_EXPLICIT_IV_LEN ) ;\n memcpy ( EVP_CIPHER_CTX_iv_noconst ( ctx ) + EVP_CCM_TLS_FIXED_IV_LEN , in , EVP_CCM_TLS_EXPLICIT_IV_LEN ) ;\n len -= EVP_CCM_TLS_EXPLICIT_IV_LEN + cctx -> M ;\n if ( CRYPTO_ccm128_setiv ( ccm , EVP_CIPHER_CTX_iv_noconst ( ctx ) , 15 - cctx -> L , len ) ) return - 1 ;\n CRYPTO_ccm128_aad ( ccm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , cctx -> tls_aad_len ) ;\n in += EVP_CCM_TLS_EXPLICIT_IV_LEN ;\n out += EVP_CCM_TLS_EXPLICIT_IV_LEN ;\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( cctx -> str ? CRYPTO_ccm128_encrypt_ccm64 ( ccm , in , out , len , cctx -> str ) : CRYPTO_ccm128_encrypt ( ccm , in , out , len ) ) return - 1 ;\n if ( ! CRYPTO_ccm128_tag ( ccm , out + len , cctx -> M ) ) return - 1 ;\n return len + EVP_CCM_TLS_EXPLICIT_IV_LEN + cctx -> M ;\n }\n else {\n if ( cctx -> str ? ! CRYPTO_ccm128_decrypt_ccm64 ( ccm , in , out , len , cctx -> str ) : ! CRYPTO_ccm128_decrypt ( ccm , in , out , len ) ) {\n unsigned char tag [ 16 ] ;\n if ( CRYPTO_ccm128_tag ( ccm , tag , cctx -> M ) ) {\n if ( ! CRYPTO_memcmp ( tag , in + len , cctx -> M ) ) return len ;\n }\n }\n OPENSSL_cleanse ( out , len ) ;\n return - 1 ;\n }\n }\n static int aes_ccm_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_CCM_CTX * cctx = EVP_C_DATA ( EVP_AES_CCM_CTX , ctx ) ;\n CCM128_CONTEXT * ccm = & cctx -> ccm ;\n if ( ! cctx -> key_set ) return - 1 ;\n if ( cctx -> tls_aad_len >= 0 ) return aes_ccm_tls_cipher ( ctx , out , in , len ) ;\n if ( ! cctx -> iv_set ) return - 1 ;\n if ( ! EVP_CIPHER_CTX_encrypting ( ctx ) && ! cctx -> tag_set ) return - 1 ;\n if ( ! out ) {\n if ( ! in ) {\n if ( CRYPTO_ccm128_setiv ( ccm , EVP_CIPHER_CTX_iv_noconst ( ctx ) , 15 - cctx -> L , len ) ) return - 1 ;\n cctx -> len_set = 1 ;\n return len ;\n }\n if ( ! cctx -> len_set && len ) return - 1 ;\n CRYPTO_ccm128_aad ( ccm , in , len ) ;\n return len ;\n }\n if ( ! in ) return 0 ;\n if ( ! cctx -> len_set ) {\n if ( CRYPTO_ccm128_setiv ( ccm , EVP_CIPHER_CTX_iv_noconst ( ctx ) , 15 - cctx -> L , len ) ) return - 1 ;\n cctx -> len_set = 1 ;\n }\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( cctx -> str ? CRYPTO_ccm128_encrypt_ccm64 ( ccm , in , out , len , cctx -> str ) : CRYPTO_ccm128_encrypt ( ccm , in , out , len ) ) return - 1 ;\n cctx -> tag_set = 1 ;\n return len ;\n }\n else {\n int rv = - 1 ;\n if ( cctx -> str ? ! CRYPTO_ccm128_decrypt_ccm64 ( ccm , in , out , len , cctx -> str ) : ! CRYPTO_ccm128_decrypt ( ccm , in , out , len ) ) {\n unsigned char tag [ 16 ] ;\n if ( CRYPTO_ccm128_tag ( ccm , tag , cctx -> M ) ) {\n if ( ! CRYPTO_memcmp ( tag , EVP_CIPHER_CTX_buf_noconst ( ctx ) , cctx -> M ) ) rv = len ;\n }\n }\n if ( rv == - 1 ) OPENSSL_cleanse ( out , len ) ;\n cctx -> iv_set = 0 ;\n cctx -> tag_set = 0 ;\n cctx -> len_set = 0 ;\n return rv ;\n }\n }\n # define aes_ccm_cleanup NULL BLOCK_CIPHER_custom ( NID_aes , 128 , 1 , 12 , ccm , CCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS )"}
{"idx": 3619, "target": 0, "func": "TEST_F ( BrowsingDataRemoverImplTest , RemoveChannelIDsForServerIdentifiers ) {\n RemoveChannelIDTester tester ( GetBrowserContext ( ) ) ;\n tester . AddChannelID ( kTestRegisterableDomain1 ) ;\n tester . AddChannelID ( kTestRegisterableDomain3 ) ;\n EXPECT_EQ ( 2 , tester . ChannelIDCount ( ) ) ;\n std : : unique_ptr < BrowsingDataFilterBuilder > filter_builder ( BrowsingDataFilterBuilder : : Create ( BrowsingDataFilterBuilder : : WHITELIST ) ) ;\n filter_builder -> AddRegisterableDomain ( kTestRegisterableDomain1 ) ;\n BlockUntilOriginDataRemoved ( base : : Time ( ) , base : : Time : : Max ( ) , BrowsingDataRemover : : REMOVE_CHANNEL_IDS , std : : move ( filter_builder ) ) ;\n EXPECT_EQ ( 1 , tester . ChannelIDCount ( ) ) ;\n net : : ChannelIDStore : : ChannelIDList channel_ids ;\n tester . GetChannelIDList ( & channel_ids ) ;\n EXPECT_EQ ( kTestRegisterableDomain3 , channel_ids . front ( ) . server_identifier ( ) ) ;\n }"}
{"idx": 3620, "target": 0, "func": "static int ebml_read_num ( MatroskaDemuxContext * matroska , AVIOContext * pb , int max_size , uint64_t * number ) {\n int read = 1 , n = 1 ;\n uint64_t total = 0 ;\n if ( ! ( total = avio_r8 ( pb ) ) ) {\n if ( ! pb -> eof_reached ) {\n int64_t pos = avio_tell ( pb ) ;\n av_log ( matroska -> ctx , AV_LOG_ERROR , \"Read error at pos. %\" PRIu64 \" (0x%\" PRIx64 \")\\n\" , pos , pos ) ;\n return pb -> error ? pb -> error : AVERROR ( EIO ) ;\n }\n return AVERROR_EOF ;\n }\n read = 8 - ff_log2_tab [ total ] ;\n if ( read > max_size ) {\n int64_t pos = avio_tell ( pb ) - 1 ;\n av_log ( matroska -> ctx , AV_LOG_ERROR , \"Invalid EBML number size tag 0x%02x at pos %\" PRIu64 \" (0x%\" PRIx64 \")\\n\" , ( uint8_t ) total , pos , pos ) ;\n return AVERROR_INVALIDDATA ;\n }\n total ^= 1 << ff_log2_tab [ total ] ;\n while ( n ++ < read ) total = ( total << 8 ) | avio_r8 ( pb ) ;\n * number = total ;\n return read ;\n }"}
{"idx": 3621, "target": 0, "func": "static xmlDocPtr xsltDocDefaultLoaderFunc ( const xmlChar * URI , xmlDictPtr dict , int options , void * ctxt ATTRIBUTE_UNUSED , xsltLoadType type ATTRIBUTE_UNUSED ) {\n xmlParserCtxtPtr pctxt ;\n xmlParserInputPtr inputStream ;\n xmlDocPtr doc ;\n pctxt = xmlNewParserCtxt ( ) ;\n if ( pctxt == NULL ) return ( NULL ) ;\n if ( ( dict != NULL ) && ( pctxt -> dict != NULL ) ) {\n xmlDictFree ( pctxt -> dict ) ;\n pctxt -> dict = NULL ;\n }\n if ( dict != NULL ) {\n pctxt -> dict = dict ;\n xmlDictReference ( pctxt -> dict ) ;\n # ifdef WITH_XSLT_DEBUG xsltGenericDebug ( xsltGenericDebugContext , \"Reusing dictionary for document\\n\" ) ;\n # endif }\n xmlCtxtUseOptions ( pctxt , options ) ;\n inputStream = xmlLoadExternalEntity ( ( const char * ) URI , NULL , pctxt ) ;\n if ( inputStream == NULL ) {\n xmlFreeParserCtxt ( pctxt ) ;\n return ( NULL ) ;\n }\n inputPush ( pctxt , inputStream ) ;\n if ( pctxt -> directory == NULL ) pctxt -> directory = xmlParserGetDirectory ( ( const char * ) URI ) ;\n xmlParseDocument ( pctxt ) ;\n if ( pctxt -> wellFormed ) {\n doc = pctxt -> myDoc ;\n }\n else {\n doc = NULL ;\n xmlFreeDoc ( pctxt -> myDoc ) ;\n pctxt -> myDoc = NULL ;\n }\n xmlFreeParserCtxt ( pctxt ) ;\n return ( doc ) ;\n }"}
{"idx": 3622, "target": 0, "func": "static int dissect_h225_DisengageRequest ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_DisengageRequest , DisengageRequest_sequence ) ;\n return offset ;\n }"}
{"idx": 3623, "target": 1, "func": "static inline void vc1_pred_mv_intfr ( VC1Context * v , int n , int dmv_x , int dmv_y , int mvn , int r_x , int r_y , uint8_t * is_intra ) {\n MpegEncContext * s = & v -> s ;\n int xy , wrap , off = 0 ;\n int A [ 2 ] , B [ 2 ] , C [ 2 ] ;\n int px , py ;\n int a_valid = 0 , b_valid = 0 , c_valid = 0 ;\n int field_a , field_b , field_c ;\n int total_valid , num_samefield , num_oppfield ;\n int pos_c , pos_b , n_adj ;\n wrap = s -> b8_stride ;\n xy = s -> block_index [ n ] ;\n if ( s -> mb_intra ) {\n s -> mv [ 0 ] [ n ] [ 0 ] = s -> current_picture . f . motion_val [ 0 ] [ xy ] [ 0 ] = 0 ;\n s -> mv [ 0 ] [ n ] [ 1 ] = s -> current_picture . f . motion_val [ 0 ] [ xy ] [ 1 ] = 0 ;\n s -> current_picture . f . motion_val [ 1 ] [ xy ] [ 0 ] = 0 ;\n s -> current_picture . f . motion_val [ 1 ] [ xy ] [ 1 ] = 0 ;\n if ( mvn == 1 ) {\n s -> current_picture . f . motion_val [ 0 ] [ xy + 1 ] [ 0 ] = 0 ;\n s -> current_picture . f . motion_val [ 0 ] [ xy + 1 ] [ 1 ] = 0 ;\n s -> current_picture . f . motion_val [ 0 ] [ xy + wrap ] [ 0 ] = 0 ;\n s -> current_picture . f . motion_val [ 0 ] [ xy + wrap ] [ 1 ] = 0 ;\n s -> current_picture . f . motion_val [ 0 ] [ xy + wrap + 1 ] [ 0 ] = 0 ;\n s -> current_picture . f . motion_val [ 0 ] [ xy + wrap + 1 ] [ 1 ] = 0 ;\n v -> luma_mv [ s -> mb_x ] [ 0 ] = v -> luma_mv [ s -> mb_x ] [ 1 ] = 0 ;\n s -> current_picture . f . motion_val [ 1 ] [ xy + 1 ] [ 0 ] = 0 ;\n s -> current_picture . f . motion_val [ 1 ] [ xy + 1 ] [ 1 ] = 0 ;\n s -> current_picture . f . motion_val [ 1 ] [ xy + wrap ] [ 0 ] = 0 ;\n s -> current_picture . f . motion_val [ 1 ] [ xy + wrap ] [ 1 ] = 0 ;\n s -> current_picture . f . motion_val [ 1 ] [ xy + wrap + 1 ] [ 0 ] = 0 ;\n s -> current_picture . f . motion_val [ 1 ] [ xy + wrap + 1 ] [ 1 ] = 0 ;\n }\n return ;\n }\n off = ( ( n == 0 ) || ( n == 1 ) ) ? 1 : - 1 ;\n if ( s -> mb_x || ( n == 1 ) || ( n == 3 ) ) {\n if ( ( v -> blk_mv_type [ xy ] ) || ( ! v -> blk_mv_type [ xy ] && ! v -> blk_mv_type [ xy - 1 ] ) ) {\n A [ 0 ] = s -> current_picture . f . motion_val [ 0 ] [ xy - 1 ] [ 0 ] ;\n A [ 1 ] = s -> current_picture . f . motion_val [ 0 ] [ xy - 1 ] [ 1 ] ;\n a_valid = 1 ;\n }\n else {\n A [ 0 ] = ( s -> current_picture . f . motion_val [ 0 ] [ xy - 1 ] [ 0 ] + s -> current_picture . f . motion_val [ 0 ] [ xy - 1 + off * wrap ] [ 0 ] + 1 ) >> 1 ;\n A [ 1 ] = ( s -> current_picture . f . motion_val [ 0 ] [ xy - 1 ] [ 1 ] + s -> current_picture . f . motion_val [ 0 ] [ xy - 1 + off * wrap ] [ 1 ] + 1 ) >> 1 ;\n a_valid = 1 ;\n }\n if ( ! ( n & 1 ) && v -> is_intra [ s -> mb_x - 1 ] ) {\n a_valid = 0 ;\n A [ 0 ] = A [ 1 ] = 0 ;\n }\n }\n else A [ 0 ] = A [ 1 ] = 0 ;\n B [ 0 ] = B [ 1 ] = C [ 0 ] = C [ 1 ] = 0 ;\n if ( n == 0 || n == 1 || v -> blk_mv_type [ xy ] ) {\n if ( ! s -> first_slice_line ) {\n if ( ! v -> is_intra [ s -> mb_x - s -> mb_stride ] ) {\n b_valid = 1 ;\n n_adj = n | 2 ;\n pos_b = s -> block_index [ n_adj ] - 2 * wrap ;\n if ( v -> blk_mv_type [ pos_b ] && v -> blk_mv_type [ xy ] ) {\n n_adj = ( n & 2 ) | ( n & 1 ) ;\n }\n B [ 0 ] = s -> current_picture . f . motion_val [ 0 ] [ s -> block_index [ n_adj ] - 2 * wrap ] [ 0 ] ;\n B [ 1 ] = s -> current_picture . f . motion_val [ 0 ] [ s -> block_index [ n_adj ] - 2 * wrap ] [ 1 ] ;\n if ( v -> blk_mv_type [ pos_b ] && ! v -> blk_mv_type [ xy ] ) {\n B [ 0 ] = ( B [ 0 ] + s -> current_picture . f . motion_val [ 0 ] [ s -> block_index [ n_adj ^ 2 ] - 2 * wrap ] [ 0 ] + 1 ) >> 1 ;\n B [ 1 ] = ( B [ 1 ] + s -> current_picture . f . motion_val [ 0 ] [ s -> block_index [ n_adj ^ 2 ] - 2 * wrap ] [ 1 ] + 1 ) >> 1 ;\n }\n }\n if ( s -> mb_width > 1 ) {\n if ( ! v -> is_intra [ s -> mb_x - s -> mb_stride + 1 ] ) {\n c_valid = 1 ;\n n_adj = 2 ;\n pos_c = s -> block_index [ 2 ] - 2 * wrap + 2 ;\n if ( v -> blk_mv_type [ pos_c ] && v -> blk_mv_type [ xy ] ) {\n n_adj = n & 2 ;\n }\n C [ 0 ] = s -> current_picture . f . motion_val [ 0 ] [ s -> block_index [ n_adj ] - 2 * wrap + 2 ] [ 0 ] ;\n C [ 1 ] = s -> current_picture . f . motion_val [ 0 ] [ s -> block_index [ n_adj ] - 2 * wrap + 2 ] [ 1 ] ;\n if ( v -> blk_mv_type [ pos_c ] && ! v -> blk_mv_type [ xy ] ) {\n C [ 0 ] = ( 1 + C [ 0 ] + ( s -> current_picture . f . motion_val [ 0 ] [ s -> block_index [ n_adj ^ 2 ] - 2 * wrap + 2 ] [ 0 ] ) ) >> 1 ;\n C [ 1 ] = ( 1 + C [ 1 ] + ( s -> current_picture . f . motion_val [ 0 ] [ s -> block_index [ n_adj ^ 2 ] - 2 * wrap + 2 ] [ 1 ] ) ) >> 1 ;\n }\n if ( s -> mb_x == s -> mb_width - 1 ) {\n if ( ! v -> is_intra [ s -> mb_x - s -> mb_stride - 1 ] ) {\n c_valid = 1 ;\n n_adj = 3 ;\n pos_c = s -> block_index [ 3 ] - 2 * wrap - 2 ;\n if ( v -> blk_mv_type [ pos_c ] && v -> blk_mv_type [ xy ] ) {\n n_adj = n | 1 ;\n }\n C [ 0 ] = s -> current_picture . f . motion_val [ 0 ] [ s -> block_index [ n_adj ] - 2 * wrap - 2 ] [ 0 ] ;\n C [ 1 ] = s -> current_picture . f . motion_val [ 0 ] [ s -> block_index [ n_adj ] - 2 * wrap - 2 ] [ 1 ] ;\n if ( v -> blk_mv_type [ pos_c ] && ! v -> blk_mv_type [ xy ] ) {\n C [ 0 ] = ( 1 + C [ 0 ] + s -> current_picture . f . motion_val [ 0 ] [ s -> block_index [ 1 ] - 2 * wrap - 2 ] [ 0 ] ) >> 1 ;\n C [ 1 ] = ( 1 + C [ 1 ] + s -> current_picture . f . motion_val [ 0 ] [ s -> block_index [ 1 ] - 2 * wrap - 2 ] [ 1 ] ) >> 1 ;\n }\n }\n else c_valid = 0 ;\n }\n }\n }\n }\n }\n else {\n pos_b = s -> block_index [ 1 ] ;\n b_valid = 1 ;\n B [ 0 ] = s -> current_picture . f . motion_val [ 0 ] [ pos_b ] [ 0 ] ;\n B [ 1 ] = s -> current_picture . f . motion_val [ 0 ] [ pos_b ] [ 1 ] ;\n pos_c = s -> block_index [ 0 ] ;\n c_valid = 1 ;\n C [ 0 ] = s -> current_picture . f . motion_val [ 0 ] [ pos_c ] [ 0 ] ;\n C [ 1 ] = s -> current_picture . f . motion_val [ 0 ] [ pos_c ] [ 1 ] ;\n }\n total_valid = a_valid + b_valid + c_valid ;\n if ( ! s -> mb_x && ! ( n == 1 || n == 3 ) ) {\n A [ 0 ] = A [ 1 ] = 0 ;\n }\n if ( ( s -> first_slice_line && v -> blk_mv_type [ xy ] ) || ( s -> first_slice_line && ! ( n & 2 ) ) ) {\n B [ 0 ] = B [ 1 ] = C [ 0 ] = C [ 1 ] = 0 ;\n }\n if ( ! v -> blk_mv_type [ xy ] ) {\n if ( s -> mb_width == 1 ) {\n px = B [ 0 ] ;\n py = B [ 1 ] ;\n }\n else {\n if ( total_valid >= 2 ) {\n px = mid_pred ( A [ 0 ] , B [ 0 ] , C [ 0 ] ) ;\n py = mid_pred ( A [ 1 ] , B [ 1 ] , C [ 1 ] ) ;\n }\n else if ( total_valid ) {\n if ( a_valid ) {\n px = A [ 0 ] ;\n py = A [ 1 ] ;\n }\n if ( b_valid ) {\n px = B [ 0 ] ;\n py = B [ 1 ] ;\n }\n if ( c_valid ) {\n px = C [ 0 ] ;\n py = C [ 1 ] ;\n }\n }\n else px = py = 0 ;\n }\n }\n else {\n if ( a_valid ) field_a = ( A [ 1 ] & 4 ) ? 1 : 0 ;\n else field_a = 0 ;\n if ( b_valid ) field_b = ( B [ 1 ] & 4 ) ? 1 : 0 ;\n else field_b = 0 ;\n if ( c_valid ) field_c = ( C [ 1 ] & 4 ) ? 1 : 0 ;\n else field_c = 0 ;\n num_oppfield = field_a + field_b + field_c ;\n num_samefield = total_valid - num_oppfield ;\n if ( total_valid == 3 ) {\n if ( ( num_samefield == 3 ) || ( num_oppfield == 3 ) ) {\n px = mid_pred ( A [ 0 ] , B [ 0 ] , C [ 0 ] ) ;\n py = mid_pred ( A [ 1 ] , B [ 1 ] , C [ 1 ] ) ;\n }\n else if ( num_samefield >= num_oppfield ) {\n px = ! field_a ? A [ 0 ] : B [ 0 ] ;\n py = ! field_a ? A [ 1 ] : B [ 1 ] ;\n }\n else {\n px = field_a ? A [ 0 ] : B [ 0 ] ;\n py = field_a ? A [ 1 ] : B [ 1 ] ;\n }\n }\n else if ( total_valid == 2 ) {\n if ( num_samefield >= num_oppfield ) {\n if ( ! field_a && a_valid ) {\n px = A [ 0 ] ;\n py = A [ 1 ] ;\n }\n else if ( ! field_b && b_valid ) {\n px = B [ 0 ] ;\n py = B [ 1 ] ;\n }\n else if ( c_valid ) {\n px = C [ 0 ] ;\n py = C [ 1 ] ;\n }\n else px = py = 0 ;\n }\n else {\n if ( field_a && a_valid ) {\n px = A [ 0 ] ;\n py = A [ 1 ] ;\n }\n else if ( field_b && b_valid ) {\n px = B [ 0 ] ;\n py = B [ 1 ] ;\n }\n else if ( c_valid ) {\n px = C [ 0 ] ;\n py = C [ 1 ] ;\n }\n }\n }\n else if ( total_valid == 1 ) {\n px = ( a_valid ) ? A [ 0 ] : ( ( b_valid ) ? B [ 0 ] : C [ 0 ] ) ;\n py = ( a_valid ) ? A [ 1 ] : ( ( b_valid ) ? B [ 1 ] : C [ 1 ] ) ;\n }\n else px = py = 0 ;\n }\n s -> mv [ 0 ] [ n ] [ 0 ] = s -> current_picture . f . motion_val [ 0 ] [ xy ] [ 0 ] = ( ( px + dmv_x + r_x ) & ( ( r_x << 1 ) - 1 ) ) - r_x ;\n s -> mv [ 0 ] [ n ] [ 1 ] = s -> current_picture . f . motion_val [ 0 ] [ xy ] [ 1 ] = ( ( py + dmv_y + r_y ) & ( ( r_y << 1 ) - 1 ) ) - r_y ;\n if ( mvn == 1 ) {\n s -> current_picture . f . motion_val [ 0 ] [ xy + 1 ] [ 0 ] = s -> current_picture . f . motion_val [ 0 ] [ xy ] [ 0 ] ;\n s -> current_picture . f . motion_val [ 0 ] [ xy + 1 ] [ 1 ] = s -> current_picture . f . motion_val [ 0 ] [ xy ] [ 1 ] ;\n s -> current_picture . f . motion_val [ 0 ] [ xy + wrap ] [ 0 ] = s -> current_picture . f . motion_val [ 0 ] [ xy ] [ 0 ] ;\n s -> current_picture . f . motion_val [ 0 ] [ xy + wrap ] [ 1 ] = s -> current_picture . f . motion_val [ 0 ] [ xy ] [ 1 ] ;\n s -> current_picture . f . motion_val [ 0 ] [ xy + wrap + 1 ] [ 0 ] = s -> current_picture . f . motion_val [ 0 ] [ xy ] [ 0 ] ;\n s -> current_picture . f . motion_val [ 0 ] [ xy + wrap + 1 ] [ 1 ] = s -> current_picture . f . motion_val [ 0 ] [ xy ] [ 1 ] ;\n }\n else if ( mvn == 2 ) {\n s -> current_picture . f . motion_val [ 0 ] [ xy + 1 ] [ 0 ] = s -> current_picture . f . motion_val [ 0 ] [ xy ] [ 0 ] ;\n s -> current_picture . f . motion_val [ 0 ] [ xy + 1 ] [ 1 ] = s -> current_picture . f . motion_val [ 0 ] [ xy ] [ 1 ] ;\n s -> mv [ 0 ] [ n + 1 ] [ 0 ] = s -> mv [ 0 ] [ n ] [ 0 ] ;\n s -> mv [ 0 ] [ n + 1 ] [ 1 ] = s -> mv [ 0 ] [ n ] [ 1 ] ;\n }\n }"}
{"idx": 3624, "target": 0, "func": "static void icmpmsg_put_line ( struct seq_file * seq , unsigned long * vals , unsigned short * type , int count ) {\n int j ;\n if ( count ) {\n seq_printf ( seq , \"\\nIcmpMsg:\" ) ;\n for ( j = 0 ;\n j < count ;\n ++ j ) seq_printf ( seq , \" %sType%u\" , type [ j ] & 0x100 ? \"Out\" : \"In\" , type [ j ] & 0xff ) ;\n seq_printf ( seq , \"\\nIcmpMsg:\" ) ;\n for ( j = 0 ;\n j < count ;\n ++ j ) seq_printf ( seq , \" %lu\" , vals [ j ] ) ;\n }\n }"}
{"idx": 3625, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n uint8_t ctable [ 128 ] ;\n QpegContext * const a = avctx -> priv_data ;\n AVFrame * const p = & a -> pic ;\n uint8_t * outdata ;\n int delta , ret ;\n const uint8_t * pal = av_packet_get_side_data ( avpkt , AV_PKT_DATA_PALETTE , NULL ) ;\n if ( avpkt -> size < 0x86 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Packet is too small\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n bytestream2_init ( & a -> buffer , avpkt -> data , avpkt -> size ) ;\n if ( ( ret = ff_reget_buffer ( avctx , p ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n outdata = a -> pic . data [ 0 ] ;\n bytestream2_skip ( & a -> buffer , 4 ) ;\n bytestream2_get_buffer ( & a -> buffer , ctable , 128 ) ;\n bytestream2_skip ( & a -> buffer , 1 ) ;\n delta = bytestream2_get_byte ( & a -> buffer ) ;\n if ( delta == 0x10 ) {\n qpeg_decode_intra ( a , outdata , a -> pic . linesize [ 0 ] , avctx -> width , avctx -> height ) ;\n }\n else {\n qpeg_decode_inter ( a , outdata , a -> pic . linesize [ 0 ] , avctx -> width , avctx -> height , delta , ctable , a -> refdata ) ;\n }\n if ( pal ) {\n a -> pic . palette_has_changed = 1 ;\n memcpy ( a -> pal , pal , AVPALETTE_SIZE ) ;\n }\n memcpy ( a -> pic . data [ 1 ] , a -> pal , AVPALETTE_SIZE ) ;\n if ( ( ret = av_frame_ref ( data , & a -> pic ) ) < 0 ) return ret ;\n * got_frame = 1 ;\n return avpkt -> size ;\n }"}
{"idx": 3626, "target": 0, "func": "void TSMimeHdrPrint ( TSMBuffer bufp , TSMLoc obj , TSIOBuffer iobufp ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( obj ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( obj ) == TS_SUCCESS ) ) ;\n sdk_assert ( sdk_sanity_check_iocore_structure ( iobufp ) == TS_SUCCESS ) ;\n HdrHeap * heap = ( ( HdrHeapSDKHandle * ) bufp ) -> m_heap ;\n MIMEHdrImpl * mh = _hdr_mloc_to_mime_hdr_impl ( obj ) ;\n MIOBuffer * b = ( MIOBuffer * ) iobufp ;\n IOBufferBlock * blk ;\n int bufindex ;\n int tmp , dumpoffset = 0 ;\n int done ;\n do {\n blk = b -> get_current_block ( ) ;\n if ( ! blk || blk -> write_avail ( ) == 0 ) {\n b -> add_block ( ) ;\n blk = b -> get_current_block ( ) ;\n }\n bufindex = 0 ;\n tmp = dumpoffset ;\n done = mime_hdr_print ( heap , mh , blk -> end ( ) , blk -> write_avail ( ) , & bufindex , & tmp ) ;\n dumpoffset += bufindex ;\n b -> fill ( bufindex ) ;\n }\n while ( ! done ) ;\n }"}
{"idx": 3627, "target": 0, "func": "int vp9_receive_raw_frame ( VP9_COMP * cpi , unsigned int frame_flags , YV12_BUFFER_CONFIG * sd , int64_t time_stamp , int64_t end_time ) {\n VP9_COMMON * cm = & cpi -> common ;\n struct vpx_usec_timer timer ;\n int res = 0 ;\n const int subsampling_x = sd -> uv_width < sd -> y_width ;\n const int subsampling_y = sd -> uv_height < sd -> y_height ;\n check_initial_width ( cpi , subsampling_x , subsampling_y ) ;\n vpx_usec_timer_start ( & timer ) ;\n if ( vp9_lookahead_push ( cpi -> lookahead , sd , time_stamp , end_time , frame_flags ) ) res = - 1 ;\n vpx_usec_timer_mark ( & timer ) ;\n cpi -> time_receive_data += vpx_usec_timer_elapsed ( & timer ) ;\n if ( ( cm -> profile == PROFILE_0 || cm -> profile == PROFILE_2 ) && ( subsampling_x != 1 || subsampling_y != 1 ) ) {\n vpx_internal_error ( & cm -> error , VPX_CODEC_INVALID_PARAM , \"Non-4:2:0 color space requires profile 1 or 3\" ) ;\n res = - 1 ;\n }\n if ( ( cm -> profile == PROFILE_1 || cm -> profile == PROFILE_3 ) && ( subsampling_x == 1 && subsampling_y == 1 ) ) {\n vpx_internal_error ( & cm -> error , VPX_CODEC_INVALID_PARAM , \"4:2:0 color space requires profile 0 or 2\" ) ;\n res = - 1 ;\n }\n return res ;\n }"}
{"idx": 3628, "target": 0, "func": "time_t time_to_time_t ( VALUE time ) {\n return ( time_t ) NUM2TIMET ( rb_Integer ( time ) ) ;\n }"}
{"idx": 3629, "target": 0, "func": "TSReturnCode TSPortDescriptorAccept ( TSPortDescriptor descp , TSCont contp ) {\n Action * action = nullptr ;\n HttpProxyPort * port = ( HttpProxyPort * ) descp ;\n NetProcessor : : AcceptOptions net ( make_net_accept_options ( port , - 1 ) ) ;\n if ( port -> isSSL ( ) ) {\n action = sslNetProcessor . main_accept ( ( INKContInternal * ) contp , port -> m_fd , net ) ;\n }\n else {\n action = netProcessor . main_accept ( ( INKContInternal * ) contp , port -> m_fd , net ) ;\n }\n return action ? TS_SUCCESS : TS_ERROR ;\n }"}
{"idx": 3630, "target": 0, "func": "static int dissect_s_supervisor_target_unid ( packet_info * pinfo , proto_tree * tree _U_ , proto_item * item , tvbuff_t * tvb , int offset , int total_len ) {\n if ( total_len < 10 ) {\n expert_add_info ( pinfo , item , & ei_mal_ssupervisor_target_unid ) ;\n return total_len ;\n }\n dissect_unid ( tvb , pinfo , offset , item , \"TUNID SSN\" , hf_cip_ssupervisor_target_unid_ssn_timestamp , hf_cip_ssupervisor_target_unid_ssn_date , hf_cip_ssupervisor_target_unid_ssn_time , hf_cip_ssupervisor_target_unid_macid , ett_ssupervisor_target_unid , ett_ssupervisor_target_unid_ssn ) ;\n return 10 ;\n }"}
{"idx": 3631, "target": 1, "func": "TEST_F ( SyncBookmarkDataTypeControllerTest , StartBookmarkModelNotReady ) {\n CreateBookmarkModel ( DONT_LOAD_MODEL ) ;\n SetStartExpectations ( ) ;\n SetAssociateExpectations ( ) ;\n EXPECT_CALL ( start_callback_ , Run ( DataTypeController : : OK , _ , _ ) ) ;\n bookmark_dtc_ -> LoadModels ( base : : Bind ( & ModelLoadCallbackMock : : Run , base : : Unretained ( & model_load_callback_ ) ) ) ;\n EXPECT_EQ ( DataTypeController : : MODEL_STARTING , bookmark_dtc_ -> state ( ) ) ;\n TestingPrefServiceSimple prefs ;\n bookmark_model_ -> Load ( & prefs , std : : string ( ) , base : : FilePath ( ) , base : : ThreadTaskRunnerHandle : : Get ( ) , base : : ThreadTaskRunnerHandle : : Get ( ) ) ;\n bookmarks : : test : : WaitForBookmarkModelToLoad ( bookmark_model_ . get ( ) ) ;\n EXPECT_EQ ( DataTypeController : : MODEL_LOADED , bookmark_dtc_ -> state ( ) ) ;\n bookmark_dtc_ -> StartAssociating ( base : : Bind ( & StartCallbackMock : : Run , base : : Unretained ( & start_callback_ ) ) ) ;\n base : : MessageLoop : : current ( ) -> RunUntilIdle ( ) ;\n EXPECT_EQ ( DataTypeController : : RUNNING , bookmark_dtc_ -> state ( ) ) ;\n }"}
{"idx": 3632, "target": 0, "func": "static int dissect_h245_LogicalChannelRateReject ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_LogicalChannelRateReject , LogicalChannelRateReject_sequence ) ;\n return offset ;\n }"}
{"idx": 3633, "target": 0, "func": "static int matroska_deliver_packet ( MatroskaDemuxContext * matroska , AVPacket * pkt ) {\n if ( matroska -> num_packets > 0 ) {\n memcpy ( pkt , matroska -> packets [ 0 ] , sizeof ( AVPacket ) ) ;\n av_free ( matroska -> packets [ 0 ] ) ;\n if ( matroska -> num_packets > 1 ) {\n void * newpackets ;\n memmove ( & matroska -> packets [ 0 ] , & matroska -> packets [ 1 ] , ( matroska -> num_packets - 1 ) * sizeof ( AVPacket * ) ) ;\n newpackets = av_realloc ( matroska -> packets , ( matroska -> num_packets - 1 ) * sizeof ( AVPacket * ) ) ;\n if ( newpackets ) matroska -> packets = newpackets ;\n }\n else {\n av_freep ( & matroska -> packets ) ;\n matroska -> prev_pkt = NULL ;\n }\n matroska -> num_packets -- ;\n return 0 ;\n }\n return - 1 ;\n }"}
{"idx": 3634, "target": 0, "func": "static void pdf_show_text ( fz_context * ctx , pdf_run_processor * pr , pdf_obj * text ) {\n pdf_gstate * gstate = pr -> gstate + pr -> gtop ;\n pdf_font_desc * fontdesc = gstate -> text . font ;\n int i ;\n if ( ! fontdesc ) {\n fz_warn ( ctx , \"cannot draw text since font and size not set\" ) ;\n return ;\n }\n if ( pdf_is_array ( ctx , text ) ) {\n int n = pdf_array_len ( ctx , text ) ;\n for ( i = 0 ;\n i < n ;\n i ++ ) {\n pdf_obj * item = pdf_array_get ( ctx , text , i ) ;\n if ( pdf_is_string ( ctx , item ) ) show_string ( ctx , pr , ( unsigned char * ) pdf_to_str_buf ( ctx , item ) , pdf_to_str_len ( ctx , item ) ) ;\n else pdf_show_space ( ctx , pr , - pdf_to_real ( ctx , item ) * gstate -> text . size * 0.001f ) ;\n }\n }\n else if ( pdf_is_string ( ctx , text ) ) {\n pdf_show_string ( ctx , pr , ( unsigned char * ) pdf_to_str_buf ( ctx , text ) , pdf_to_str_len ( ctx , text ) ) ;\n }\n }"}
{"idx": 3635, "target": 0, "func": "static void gtkui_data_print ( int buffer , char * data , int color ) {\n GtkTextIter iter ;\n GtkTextBuffer * textbuf = NULL ;\n GtkWidget * textview = NULL ;\n GtkTextMark * endmark = NULL ;\n char * unicode = NULL ;\n switch ( buffer ) {\n case 1 : textbuf = splitbuf1 ;\n textview = textview1 ;\n endmark = endmark1 ;\n break ;\n case 2 : textbuf = splitbuf2 ;\n textview = textview2 ;\n endmark = endmark2 ;\n break ;\n case 3 : textbuf = joinedbuf ;\n textview = textview3 ;\n endmark = endmark3 ;\n break ;\n default : return ;\n }\n unicode = gtkui_utf8_validate ( data ) ;\n if ( ! data_window || ! textbuf || ! textview || ! endmark || ! unicode ) return ;\n gtk_text_buffer_get_end_iter ( textbuf , & iter ) ;\n if ( color == 2 ) gtk_text_buffer_insert_with_tags_by_name ( textbuf , & iter , unicode , - 1 , \"blue_fg\" , \"monospace\" , NULL ) ;\n else gtk_text_buffer_insert_with_tags_by_name ( textbuf , & iter , unicode , - 1 , \"monospace\" , NULL ) ;\n gtk_text_view_scroll_to_mark ( GTK_TEXT_VIEW ( textview ) , endmark , 0 , FALSE , 0 , 0 ) ;\n }"}
{"idx": 3636, "target": 0, "func": "static void * i_resize_object ( gs_memory_t * mem , void * obj , uint new_num_elements , client_name_t cname ) {\n gs_ref_memory_t * const imem = ( gs_ref_memory_t * ) mem ;\n obj_header_t * pp = ( obj_header_t * ) obj - 1 ;\n gs_memory_type_ptr_t pstype = pp -> o_type ;\n ulong old_size = pre_obj_contents_size ( pp ) ;\n ulong new_size = ( ulong ) pstype -> ssize * new_num_elements ;\n ulong old_size_rounded = obj_align_round ( old_size ) ;\n ulong new_size_rounded = obj_align_round ( new_size ) ;\n void * new_obj = NULL ;\n # ifdef MEMENTO if ( Memento_failThisEvent ( ) ) return NULL ;\n # endif if ( old_size_rounded == new_size_rounded ) {\n pp -> o_size = new_size ;\n new_obj = obj ;\n }\n else if ( imem -> cc && ( byte * ) obj + old_size_rounded == imem -> cc -> cbot && imem -> cc -> ctop - ( byte * ) obj >= new_size_rounded ) {\n imem -> cc -> cbot = ( byte * ) obj + new_size_rounded ;\n pp -> o_size = new_size ;\n new_obj = obj ;\n }\n else if ( new_size_rounded + sizeof ( obj_header_t ) <= old_size_rounded ) {\n trim_obj ( imem , obj , new_size , ( clump_t * ) 0 ) ;\n new_obj = obj ;\n }\n if ( new_obj ) {\n if_debug8m ( 'A' , mem , \"[a%d:%c%c ]%s %s(%lu=>%lu) 0x%lx\\n\" , alloc_trace_space ( imem ) , ( new_size > old_size ? '>' : '<' ) , ( pstype == & st_bytes ? 'b' : '<' ) , client_name_string ( cname ) , struct_type_name_string ( pstype ) , old_size , new_size , ( ulong ) obj ) ;\n return new_obj ;\n }\n new_obj = gs_alloc_struct_array ( mem , new_num_elements , void , pstype , cname ) ;\n if ( new_obj == 0 ) return 0 ;\n memcpy ( new_obj , obj , min ( old_size , new_size ) ) ;\n gs_free_object ( mem , obj , cname ) ;\n return new_obj ;\n }"}
{"idx": 3637, "target": 0, "func": "void dissect_zcl_scenes_attr_data ( proto_tree * tree , tvbuff_t * tvb , guint * offset , guint16 attr_id , guint data_type ) {\n switch ( attr_id ) {\n case ZBEE_ZCL_ATTR_ID_SCENES_SCENE_VALID : proto_tree_add_item ( tree , hf_zbee_zcl_scenes_attr_id_scene_valid , tvb , * offset , 1 , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_SCENES_NAME_SUPPORT : proto_tree_add_item ( tree , hf_zbee_zcl_scenes_attr_id_name_support , tvb , * offset , 1 , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_SCENES_SCENE_COUNT : case ZBEE_ZCL_ATTR_ID_SCENES_CURRENT_SCENE : case ZBEE_ZCL_ATTR_ID_SCENES_CURRENT_GROUP : case ZBEE_ZCL_ATTR_ID_SCENES_LAST_CONFIGURED_BY : default : dissect_zcl_attr_data ( tvb , tree , offset , data_type ) ;\n break ;\n }\n }"}
{"idx": 3638, "target": 0, "func": "static void cmv_decode_inter ( CmvContext * s , AVFrame * frame , const uint8_t * buf , const uint8_t * buf_end ) {\n const uint8_t * raw = buf + ( s -> avctx -> width * s -> avctx -> height / 16 ) ;\n int x , y , i ;\n i = 0 ;\n for ( y = 0 ;\n y < s -> avctx -> height / 4 ;\n y ++ ) for ( x = 0 ;\n x < s -> avctx -> width / 4 && buf_end - buf > i ;\n x ++ ) {\n if ( buf [ i ] == 0xFF ) {\n unsigned char * dst = frame -> data [ 0 ] + ( y * 4 ) * frame -> linesize [ 0 ] + x * 4 ;\n if ( raw + 16 < buf_end && * raw == 0xFF ) {\n raw ++ ;\n memcpy ( dst , raw , 4 ) ;\n memcpy ( dst + frame -> linesize [ 0 ] , raw + 4 , 4 ) ;\n memcpy ( dst + 2 * frame -> linesize [ 0 ] , raw + 8 , 4 ) ;\n memcpy ( dst + 3 * frame -> linesize [ 0 ] , raw + 12 , 4 ) ;\n raw += 16 ;\n }\n else if ( raw < buf_end ) {\n int xoffset = ( * raw & 0xF ) - 7 ;\n int yoffset = ( ( * raw >> 4 ) ) - 7 ;\n if ( s -> last2_frame -> data [ 0 ] ) cmv_motcomp ( frame -> data [ 0 ] , frame -> linesize [ 0 ] , s -> last2_frame -> data [ 0 ] , s -> last2_frame -> linesize [ 0 ] , x * 4 , y * 4 , xoffset , yoffset , s -> avctx -> width , s -> avctx -> height ) ;\n raw ++ ;\n }\n }\n else {\n int xoffset = ( buf [ i ] & 0xF ) - 7 ;\n int yoffset = ( ( buf [ i ] >> 4 ) ) - 7 ;\n cmv_motcomp ( frame -> data [ 0 ] , frame -> linesize [ 0 ] , s -> last_frame -> data [ 0 ] , s -> last_frame -> linesize [ 0 ] , x * 4 , y * 4 , xoffset , yoffset , s -> avctx -> width , s -> avctx -> height ) ;\n }\n i ++ ;\n }\n }"}
{"idx": 3639, "target": 0, "func": "int main ( void ) {\n fprintf ( stderr , \"libxml was not compiled with thread or catalog support\\n\" ) ;\n return ( 0 ) ;\n }"}
{"idx": 3640, "target": 0, "func": "u_short varfmt ( const char * varname ) {\n u_int n ;\n for ( n = 0 ;\n n < COUNTOF ( cookedvars ) ;\n n ++ ) if ( ! strcmp ( varname , cookedvars [ n ] . varname ) ) return cookedvars [ n ] . fmt ;\n return PADDING ;\n }"}
{"idx": 3641, "target": 0, "func": "static void spoolss_printserver_specific_rights ( tvbuff_t * tvb , gint offset , proto_tree * tree , guint32 access ) {\n proto_tree_add_boolean ( tree , hf_server_access_enum , tvb , offset , 4 , access ) ;\n proto_tree_add_boolean ( tree , hf_server_access_admin , tvb , offset , 4 , access ) ;\n }"}
{"idx": 3642, "target": 0, "func": "static void VGA_init ( void ) {\n printf ( \"Init VGA...\\n\" ) ;\n # if 1 PPC_io_writeb ( PPC_IO_BASE + 0x3C2 , 0xC3 ) ;\n PPC_io_writeb ( PPC_IO_BASE + 0x3C4 , 0x04 ) ;\n PPC_io_writeb ( PPC_IO_BASE + 0x3C5 , 0x02 ) ;\n # endif VGA_printf ( \"PPC VGA BIOS...\\n\" ) ;\n }"}
{"idx": 3643, "target": 1, "func": "const EVP_CIPHER * EVP_aes_ ## keylen ## _ ## mode ( void ) \\ {\n return & aes_ ## keylen ## _ ## mode ;\n }\n # 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_CAPABLE ( OPENSSL_armcap_P & ARMV7_NEON ) # endif # if defined ( VPAES_ASM ) # define VPAES_CAPABLE ( OPENSSL_armcap_P & ARMV7_NEON ) # endif # define HWAES_CAPABLE ( OPENSSL_armcap_P & ARMV8_AES ) # define HWAES_set_encrypt_key aes_v8_set_encrypt_key # define HWAES_set_decrypt_key aes_v8_set_decrypt_key # define HWAES_encrypt aes_v8_encrypt # define HWAES_decrypt aes_v8_decrypt # define HWAES_cbc_encrypt aes_v8_cbc_encrypt # define HWAES_ctr32_encrypt_blocks aes_v8_ctr32_encrypt_blocks # endif # endif # if defined ( HWAES_CAPABLE ) int HWAES_set_encrypt_key ( const unsigned char * userKey , const int bits , AES_KEY * key ) ;\n int HWAES_set_decrypt_key ( const unsigned char * userKey , const int bits , AES_KEY * key ) ;\n void HWAES_encrypt ( const unsigned char * in , unsigned char * out , const AES_KEY * key ) ;\n void HWAES_decrypt ( const unsigned char * in , unsigned char * out , const AES_KEY * key ) ;\n void HWAES_cbc_encrypt ( const unsigned char * in , unsigned char * out , size_t length , const AES_KEY * key , unsigned char * ivec , const int enc ) ;\n void HWAES_ctr32_encrypt_blocks ( const unsigned char * in , unsigned char * out , size_t len , const AES_KEY * key , const unsigned char ivec [ 16 ] ) ;\n void HWAES_xts_encrypt ( const unsigned char * inp , unsigned char * out , size_t len , const AES_KEY * key1 , const AES_KEY * key2 , const unsigned char iv [ 16 ] ) ;\n void HWAES_xts_decrypt ( const unsigned char * inp , unsigned char * out , size_t len , const AES_KEY * key1 , const AES_KEY * key2 , const unsigned char iv [ 16 ] ) ;\n # endif # define BLOCK_CIPHER_generic_pack ( nid , keylen , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 16 , 16 , cbc , cbc , CBC , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 16 , 0 , ecb , ecb , ECB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , ofb128 , ofb , OFB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb128 , cfb , CFB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb1 , cfb1 , CFB , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb8 , cfb8 , CFB , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , ctr , ctr , CTR , flags ) static int aes_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n int ret , mode ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n mode = EVP_CIPHER_CTX_mode ( ctx ) ;\n if ( ( mode == EVP_CIPH_ECB_MODE || mode == EVP_CIPH_CBC_MODE ) && ! enc ) {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_decrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n # endif }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CBC_MODE ) {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = ( cbc128_f ) bsaes_cbc_encrypt ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n }\n }\n else # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_encrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n else # endif # ifdef HWAES_ctr32_encrypt_blocks if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) HWAES_ctr32_encrypt_blocks ;\n else # endif ( void ) 0 ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CTR_MODE ) {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . ctr = ( ctr128_f ) bsaes_ctr32_encrypt_blocks ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n # ifdef AES_CTR_ASM if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) AES_ctr32_encrypt ;\n # endif }\n if ( ret < 0 ) {\n EVPerr ( EVP_F_AES_INIT_KEY , EVP_R_AES_KEY_SETUP_FAILED ) ;\n return 0 ;\n }\n return 1 ;\n }\n static int aes_cbc_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( dat -> stream . cbc ) ( * dat -> stream . cbc ) ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_encrypting ( ctx ) ) ;\n else if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) CRYPTO_cbc128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , dat -> block ) ;\n else CRYPTO_cbc128_decrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , dat -> block ) ;\n return 1 ;\n }\n static int aes_ecb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n size_t bl = EVP_CIPHER_CTX_block_size ( ctx ) ;\n size_t i ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( len < bl ) return 1 ;\n for ( i = 0 , len -= bl ;\n i <= len ;\n i += bl ) ( * dat -> block ) ( in + i , out + i , & dat -> ks ) ;\n return 1 ;\n }\n static int aes_ofb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_ofb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb8_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_8_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb1_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( EVP_CIPHER_CTX_test_flags ( ctx , EVP_CIPH_FLAG_LENGTH_BITS ) ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n while ( len >= MAXBITCHUNK ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , MAXBITCHUNK * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n len -= MAXBITCHUNK ;\n }\n if ( len ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n }\n return 1 ;\n }\n static int aes_ctr_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n unsigned int num = EVP_CIPHER_CTX_num ( ctx ) ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( dat -> stream . ctr ) CRYPTO_ctr128_encrypt_ctr32 ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> stream . ctr ) ;\n else CRYPTO_ctr128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n BLOCK_CIPHER_generic_pack ( NID_aes , 128 , 0 ) BLOCK_CIPHER_generic_pack ( NID_aes , 192 , 0 ) BLOCK_CIPHER_generic_pack ( NID_aes , 256 , 0 ) static int aes_gcm_cleanup ( EVP_CIPHER_CTX * c ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , c ) ;\n OPENSSL_cleanse ( & gctx -> gcm , sizeof ( gctx -> gcm ) ) ;\n if ( gctx -> iv != EVP_CIPHER_CTX_iv_noconst ( c ) ) OPENSSL_free ( gctx -> iv ) ;\n return 1 ;\n }\n static void ctr64_inc ( unsigned char * counter ) {\n int n = 8 ;\n unsigned char c ;\n do {\n -- n ;\n c = counter [ n ] ;\n ++ c ;\n counter [ n ] = c ;\n if ( c ) return ;\n }\n while ( n ) ;\n }\n static int aes_gcm_ctrl ( EVP_CIPHER_CTX * c , int type , int arg , void * ptr ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , c ) ;\n switch ( type ) {\n case EVP_CTRL_INIT : gctx -> key_set = 0 ;\n gctx -> iv_set = 0 ;\n gctx -> ivlen = EVP_CIPHER_CTX_iv_length ( c ) ;\n gctx -> iv = EVP_CIPHER_CTX_iv_noconst ( c ) ;\n gctx -> taglen = - 1 ;\n gctx -> iv_gen = 0 ;\n gctx -> tls_aad_len = - 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_IVLEN : if ( arg <= 0 ) return 0 ;\n if ( ( arg > EVP_MAX_IV_LENGTH ) && ( arg > gctx -> ivlen ) ) {\n if ( gctx -> iv != EVP_CIPHER_CTX_iv_noconst ( c ) ) OPENSSL_free ( gctx -> iv ) ;\n gctx -> iv = OPENSSL_malloc ( arg ) ;\n if ( gctx -> iv == NULL ) return 0 ;\n }\n gctx -> ivlen = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_TAG : if ( arg <= 0 || arg > 16 || EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n gctx -> taglen = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_GET_TAG : if ( arg <= 0 || arg > 16 || ! EVP_CIPHER_CTX_encrypting ( c ) || gctx -> taglen < 0 ) return 0 ;\n memcpy ( ptr , EVP_CIPHER_CTX_buf_noconst ( c ) , arg ) ;\n return 1 ;\n case EVP_CTRL_GCM_SET_IV_FIXED : if ( arg == - 1 ) {\n memcpy ( gctx -> iv , ptr , gctx -> ivlen ) ;\n gctx -> iv_gen = 1 ;\n return 1 ;\n }\n if ( ( arg < 4 ) || ( gctx -> ivlen - arg ) < 8 ) return 0 ;\n if ( arg ) memcpy ( gctx -> iv , ptr , arg ) ;\n if ( EVP_CIPHER_CTX_encrypting ( c ) && RAND_bytes ( gctx -> iv + arg , gctx -> ivlen - arg ) <= 0 ) return 0 ;\n gctx -> iv_gen = 1 ;\n return 1 ;\n case EVP_CTRL_GCM_IV_GEN : if ( gctx -> iv_gen == 0 || gctx -> key_set == 0 ) return 0 ;\n CRYPTO_gcm128_setiv ( & gctx -> gcm , gctx -> iv , gctx -> ivlen ) ;\n if ( arg <= 0 || arg > gctx -> ivlen ) arg = gctx -> ivlen ;\n memcpy ( ptr , gctx -> iv + gctx -> ivlen - arg , arg ) ;\n ctr64_inc ( gctx -> iv + gctx -> ivlen - 8 ) ;\n gctx -> iv_set = 1 ;\n return 1 ;\n case EVP_CTRL_GCM_SET_IV_INV : if ( gctx -> iv_gen == 0 || gctx -> key_set == 0 || EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( gctx -> iv + gctx -> ivlen - arg , ptr , arg ) ;\n CRYPTO_gcm128_setiv ( & gctx -> gcm , gctx -> iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_TLS1_AAD : if ( arg != EVP_AEAD_TLS1_AAD_LEN ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n gctx -> tls_aad_len = arg ;\n {\n unsigned int len = EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] << 8 | EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] ;\n len -= EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n if ( ! EVP_CIPHER_CTX_encrypting ( c ) ) len -= EVP_GCM_TLS_TAG_LEN ;\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] = len >> 8 ;\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] = len & 0xff ;\n }\n return EVP_GCM_TLS_TAG_LEN ;\n case EVP_CTRL_COPY : {\n EVP_CIPHER_CTX * out = ptr ;\n EVP_AES_GCM_CTX * gctx_out = EVP_C_DATA ( EVP_AES_GCM_CTX , out ) ;\n if ( gctx -> gcm . key ) {\n if ( gctx -> gcm . key != & gctx -> ks ) return 0 ;\n gctx_out -> gcm . key = & gctx_out -> ks ;\n }\n if ( gctx -> iv == EVP_CIPHER_CTX_iv_noconst ( c ) ) gctx_out -> iv = EVP_CIPHER_CTX_iv_noconst ( out ) ;\n else {\n gctx_out -> iv = OPENSSL_malloc ( gctx -> ivlen ) ;\n if ( gctx_out -> iv == NULL ) return 0 ;\n memcpy ( gctx_out -> iv , gctx -> iv , gctx -> ivlen ) ;\n }\n return 1 ;\n }\n default : return - 1 ;\n }\n }\n static int aes_gcm_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n if ( ! iv && ! key ) return 1 ;\n if ( key ) {\n do {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) HWAES_encrypt ) ;\n # ifdef HWAES_ctr32_encrypt_blocks gctx -> ctr = ( ctr128_f ) HWAES_ctr32_encrypt_blocks ;\n # else gctx -> ctr = NULL ;\n # endif break ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE ) {\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) AES_encrypt ) ;\n gctx -> ctr = ( ctr128_f ) bsaes_ctr32_encrypt_blocks ;\n break ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) vpaes_encrypt ) ;\n gctx -> ctr = NULL ;\n break ;\n }\n else # endif ( void ) 0 ;\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) AES_encrypt ) ;\n # ifdef AES_CTR_ASM gctx -> ctr = ( ctr128_f ) AES_ctr32_encrypt ;\n # else gctx -> ctr = NULL ;\n # endif }\n while ( 0 ) ;\n if ( iv == NULL && gctx -> iv_set ) iv = gctx -> iv ;\n if ( iv ) {\n CRYPTO_gcm128_setiv ( & gctx -> gcm , iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n }\n gctx -> key_set = 1 ;\n }\n else {\n if ( gctx -> key_set ) CRYPTO_gcm128_setiv ( & gctx -> gcm , iv , gctx -> ivlen ) ;\n else memcpy ( gctx -> iv , iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n gctx -> iv_gen = 0 ;\n }\n return 1 ;\n }\n static int aes_gcm_tls_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n int rv = - 1 ;\n if ( out != in || len < ( EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ) ) return - 1 ;\n if ( EVP_CIPHER_CTX_ctrl ( ctx , EVP_CIPHER_CTX_encrypting ( ctx ) ? EVP_CTRL_GCM_IV_GEN : EVP_CTRL_GCM_SET_IV_INV , EVP_GCM_TLS_EXPLICIT_IV_LEN , out ) <= 0 ) goto err ;\n if ( CRYPTO_gcm128_aad ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , gctx -> tls_aad_len ) ) goto err ;\n in += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n out += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n len -= EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ;\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 32 && AES_GCM_ASM ( gctx ) ) {\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_encrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) goto err ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 32 && AES_GCM_ASM2 ( gctx ) ) {\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) goto err ;\n }\n out += len ;\n CRYPTO_gcm128_tag ( & gctx -> gcm , out , EVP_GCM_TLS_TAG_LEN ) ;\n rv = len + EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ;\n }\n else {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 16 && AES_GCM_ASM ( gctx ) ) {\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_decrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) goto err ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 16 && AES_GCM_ASM2 ( gctx ) ) {\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) goto err ;\n }\n CRYPTO_gcm128_tag ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , EVP_GCM_TLS_TAG_LEN ) ;\n if ( CRYPTO_memcmp ( EVP_CIPHER_CTX_buf_noconst ( ctx ) , in + len , EVP_GCM_TLS_TAG_LEN ) ) {\n OPENSSL_cleanse ( out , len ) ;\n goto err ;\n }\n rv = len ;\n }\n err : gctx -> iv_set = 0 ;\n gctx -> tls_aad_len = - 1 ;\n return rv ;\n }\n static int aes_gcm_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n if ( ! gctx -> key_set ) return - 1 ;\n if ( gctx -> tls_aad_len >= 0 ) return aes_gcm_tls_cipher ( ctx , out , in , len ) ;\n if ( ! gctx -> iv_set ) return - 1 ;\n if ( in ) {\n if ( out == NULL ) {\n if ( CRYPTO_gcm128_aad ( & gctx -> gcm , in , len ) ) return - 1 ;\n }\n else if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 32 && AES_GCM_ASM ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_encrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) return - 1 ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 32 && AES_GCM_ASM2 ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) return - 1 ;\n }\n }\n else {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 16 && AES_GCM_ASM ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_decrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) return - 1 ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 16 && AES_GCM_ASM2 ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) return - 1 ;\n }\n }\n return len ;\n }\n else {\n if ( ! EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> taglen < 0 ) return - 1 ;\n if ( CRYPTO_gcm128_finish ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , gctx -> taglen ) != 0 ) return - 1 ;\n gctx -> iv_set = 0 ;\n return 0 ;\n }\n CRYPTO_gcm128_tag ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , 16 ) ;\n gctx -> taglen = 16 ;\n gctx -> iv_set = 0 ;\n return 0 ;\n }\n }\n # define CUSTOM_FLAGS ( EVP_CIPH_FLAG_DEFAULT_ASN1 \\ | EVP_CIPH_CUSTOM_IV | EVP_CIPH_FLAG_CUSTOM_CIPHER \\ | EVP_CIPH_ALWAYS_CALL_INIT | EVP_CIPH_CTRL_INIT \\ | EVP_CIPH_CUSTOM_COPY ) BLOCK_CIPHER_custom ( NID_aes , 128 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 192 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 256 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) static int aes_xts_ctrl ( EVP_CIPHER_CTX * c , int type , int arg , void * ptr ) {\n EVP_AES_XTS_CTX * xctx = EVP_C_DATA ( EVP_AES_XTS_CTX , c ) ;\n if ( type == EVP_CTRL_COPY ) {\n EVP_CIPHER_CTX * out = ptr ;\n EVP_AES_XTS_CTX * xctx_out = EVP_C_DATA ( EVP_AES_XTS_CTX , out ) ;\n if ( xctx -> xts . key1 ) {\n if ( xctx -> xts . key1 != & xctx -> ks1 ) return 0 ;\n xctx_out -> xts . key1 = & xctx_out -> ks1 ;\n }\n if ( xctx -> xts . key2 ) {\n if ( xctx -> xts . key2 != & xctx -> ks2 ) return 0 ;\n xctx_out -> xts . key2 = & xctx_out -> ks2 ;\n }\n return 1 ;\n }\n else if ( type != EVP_CTRL_INIT ) return - 1 ;\n xctx -> xts . key1 = NULL ;\n xctx -> xts . key2 = NULL ;\n return 1 ;\n }\n static int aes_xts_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n EVP_AES_XTS_CTX * xctx = EVP_C_DATA ( EVP_AES_XTS_CTX , ctx ) ;\n if ( ! iv && ! key ) return 1 ;\n if ( key ) do {\n # ifdef AES_XTS_ASM xctx -> stream = enc ? AES_xts_encrypt : AES_xts_decrypt ;\n # else xctx -> stream = NULL ;\n # endif # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n if ( enc ) {\n HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) HWAES_encrypt ;\n # ifdef HWAES_xts_encrypt xctx -> stream = HWAES_xts_encrypt ;\n # endif }\n else {\n HWAES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) HWAES_decrypt ;\n # ifdef HWAES_xts_decrypt xctx -> stream = HWAES_xts_decrypt ;\n # endif }\n HWAES_set_encrypt_key ( key + EVP_CIPHER_CTX_key_length ( ctx ) / 2 , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks2 . ks ) ;\n xctx -> xts . block2 = ( block128_f ) HWAES_encrypt ;\n xctx -> xts . key1 = & xctx -> ks1 ;\n break ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE ) xctx -> stream = enc ? bsaes_xts_encrypt : bsaes_xts_decrypt ;\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n if ( enc ) {\n vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) vpaes_encrypt ;\n }\n else {\n vpaes_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) vpaes_decrypt ;\n }\n vpaes_set_encrypt_key ( key + EVP_CIPHER_CTX_key_length ( ctx ) / 2 , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks2 . ks ) ;\n xctx -> xts . block2 = ( block128_f ) vpaes_encrypt ;\n xctx -> xts . key1 = & xctx -> ks1 ;\n break ;\n }\n else # endif ( void ) 0 ;\n if ( enc ) {\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) AES_encrypt ;\n }\n else {\n AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) AES_decrypt ;\n }\n AES_set_encrypt_key ( key + EVP_CIPHER_CTX_key_length ( ctx ) / 2 , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks2 . ks ) ;\n xctx -> xts . block2 = ( block128_f ) AES_encrypt ;\n xctx -> xts . key1 = & xctx -> ks1 ;\n }\n while ( 0 ) ;\n if ( iv ) {\n xctx -> xts . key2 = & xctx -> ks2 ;\n memcpy ( EVP_CIPHER_CTX_iv_noconst ( ctx ) , iv , 16 ) ;\n }\n return 1 ;\n }\n static int aes_xts_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_XTS_CTX * xctx = EVP_C_DATA ( EVP_AES_XTS_CTX , ctx ) ;\n if ( ! xctx -> xts . key1 || ! xctx -> xts . key2 ) return 0 ;\n if ( ! out || ! in || len < AES_BLOCK_SIZE ) return 0 ;\n if ( xctx -> stream ) ( * xctx -> stream ) ( in , out , len , xctx -> xts . key1 , xctx -> xts . key2 , EVP_CIPHER_CTX_iv_noconst ( ctx ) ) ;\n else if ( CRYPTO_xts128_encrypt ( & xctx -> xts , EVP_CIPHER_CTX_iv_noconst ( ctx ) , in , out , len , EVP_CIPHER_CTX_encrypting ( ctx ) ) ) return 0 ;\n return 1 ;\n }\n # define aes_xts_cleanup NULL # define XTS_FLAGS ( EVP_CIPH_FLAG_DEFAULT_ASN1 | EVP_CIPH_CUSTOM_IV \\ | EVP_CIPH_ALWAYS_CALL_INIT | EVP_CIPH_CTRL_INIT \\ | EVP_CIPH_CUSTOM_COPY ) BLOCK_CIPHER_custom ( NID_aes , 128 , 1 , 16 , xts , XTS , XTS_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 256 , 1 , 16 , xts , XTS , XTS_FLAGS ) static int aes_ccm_ctrl ( EVP_CIPHER_CTX * c , int type , int arg , void * ptr ) {\n EVP_AES_CCM_CTX * cctx = EVP_C_DATA ( EVP_AES_CCM_CTX , c ) ;\n switch ( type ) {\n case EVP_CTRL_INIT : cctx -> key_set = 0 ;\n cctx -> iv_set = 0 ;\n cctx -> L = 8 ;\n cctx -> M = 12 ;\n cctx -> tag_set = 0 ;\n cctx -> len_set = 0 ;\n cctx -> tls_aad_len = - 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_TLS1_AAD : if ( arg != EVP_AEAD_TLS1_AAD_LEN ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n cctx -> tls_aad_len = arg ;\n {\n uint16_t len = EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] << 8 | EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] ;\n len -= EVP_CCM_TLS_EXPLICIT_IV_LEN ;\n if ( ! EVP_CIPHER_CTX_encrypting ( c ) ) len -= cctx -> M ;\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] = len >> 8 ;\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] = len & 0xff ;\n }\n return cctx -> M ;\n case EVP_CTRL_CCM_SET_IV_FIXED : if ( arg != EVP_CCM_TLS_FIXED_IV_LEN ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_iv_noconst ( c ) , ptr , arg ) ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_IVLEN : arg = 15 - arg ;\n case EVP_CTRL_CCM_SET_L : if ( arg < 2 || arg > 8 ) return 0 ;\n cctx -> L = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_TAG : if ( ( arg & 1 ) || arg < 4 || arg > 16 ) return 0 ;\n if ( EVP_CIPHER_CTX_encrypting ( c ) && ptr ) return 0 ;\n if ( ptr ) {\n cctx -> tag_set = 1 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n }\n cctx -> M = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_GET_TAG : if ( ! EVP_CIPHER_CTX_encrypting ( c ) || ! cctx -> tag_set ) return 0 ;\n if ( ! CRYPTO_ccm128_tag ( & cctx -> ccm , ptr , ( size_t ) arg ) ) return 0 ;\n cctx -> tag_set = 0 ;\n cctx -> iv_set = 0 ;\n cctx -> len_set = 0 ;\n return 1 ;\n case EVP_CTRL_COPY : {\n EVP_CIPHER_CTX * out = ptr ;\n EVP_AES_CCM_CTX * cctx_out = EVP_C_DATA ( EVP_AES_CCM_CTX , out ) ;\n if ( cctx -> ccm . key ) {\n if ( cctx -> ccm . key != & cctx -> ks ) return 0 ;\n cctx_out -> ccm . key = & cctx_out -> ks ;\n }\n return 1 ;\n }\n default : return - 1 ;\n }\n }\n static int aes_ccm_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n EVP_AES_CCM_CTX * cctx = EVP_C_DATA ( EVP_AES_CCM_CTX , ctx ) ;\n if ( ! iv && ! key ) return 1 ;\n if ( key ) do {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & cctx -> ks . ks ) ;\n CRYPTO_ccm128_init ( & cctx -> ccm , cctx -> M , cctx -> L , & cctx -> ks , ( block128_f ) HWAES_encrypt ) ;\n cctx -> str = NULL ;\n cctx -> key_set = 1 ;\n break ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & cctx -> ks . ks ) ;\n CRYPTO_ccm128_init ( & cctx -> ccm , cctx -> M , cctx -> L , & cctx -> ks , ( block128_f ) vpaes_encrypt ) ;\n cctx -> str = NULL ;\n cctx -> key_set = 1 ;\n break ;\n }\n # endif AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & cctx -> ks . ks ) ;\n CRYPTO_ccm128_init ( & cctx -> ccm , cctx -> M , cctx -> L , & cctx -> ks , ( block128_f ) AES_encrypt ) ;\n cctx -> str = NULL ;\n cctx -> key_set = 1 ;\n }\n while ( 0 ) ;\n if ( iv ) {\n memcpy ( EVP_CIPHER_CTX_iv_noconst ( ctx ) , iv , 15 - cctx -> L ) ;\n cctx -> iv_set = 1 ;\n }\n return 1 ;\n }\n static int aes_ccm_tls_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_CCM_CTX * cctx = EVP_C_DATA ( EVP_AES_CCM_CTX , ctx ) ;\n CCM128_CONTEXT * ccm = & cctx -> ccm ;\n if ( out != in || len < ( EVP_CCM_TLS_EXPLICIT_IV_LEN + ( size_t ) cctx -> M ) ) return - 1 ;\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) memcpy ( out , EVP_CIPHER_CTX_buf_noconst ( ctx ) , EVP_CCM_TLS_EXPLICIT_IV_LEN ) ;\n memcpy ( EVP_CIPHER_CTX_iv_noconst ( ctx ) + EVP_CCM_TLS_FIXED_IV_LEN , in , EVP_CCM_TLS_EXPLICIT_IV_LEN ) ;\n len -= EVP_CCM_TLS_EXPLICIT_IV_LEN + cctx -> M ;\n if ( CRYPTO_ccm128_setiv ( ccm , EVP_CIPHER_CTX_iv_noconst ( ctx ) , 15 - cctx -> L , len ) ) return - 1 ;\n CRYPTO_ccm128_aad ( ccm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , cctx -> tls_aad_len ) ;\n in += EVP_CCM_TLS_EXPLICIT_IV_LEN ;\n out += EVP_CCM_TLS_EXPLICIT_IV_LEN ;\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( cctx -> str ? CRYPTO_ccm128_encrypt_ccm64 ( ccm , in , out , len , cctx -> str ) : CRYPTO_ccm128_encrypt ( ccm , in , out , len ) ) return - 1 ;\n if ( ! CRYPTO_ccm128_tag ( ccm , out + len , cctx -> M ) ) return - 1 ;\n return len + EVP_CCM_TLS_EXPLICIT_IV_LEN + cctx -> M ;\n }\n else {\n if ( cctx -> str ? ! CRYPTO_ccm128_decrypt_ccm64 ( ccm , in , out , len , cctx -> str ) : ! CRYPTO_ccm128_decrypt ( ccm , in , out , len ) ) {\n unsigned char tag [ 16 ] ;\n if ( CRYPTO_ccm128_tag ( ccm , tag , cctx -> M ) ) {\n if ( ! CRYPTO_memcmp ( tag , in + len , cctx -> M ) ) return len ;\n }\n }\n OPENSSL_cleanse ( out , len ) ;\n return - 1 ;\n }\n }\n static int aes_ccm_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_CCM_CTX * cctx = EVP_C_DATA ( EVP_AES_CCM_CTX , ctx ) ;\n CCM128_CONTEXT * ccm = & cctx -> ccm ;\n if ( ! cctx -> key_set ) return - 1 ;\n if ( cctx -> tls_aad_len >= 0 ) return aes_ccm_tls_cipher ( ctx , out , in , len ) ;\n if ( ! cctx -> iv_set ) return - 1 ;\n if ( ! EVP_CIPHER_CTX_encrypting ( ctx ) && ! cctx -> tag_set ) return - 1 ;\n if ( ! out ) {\n if ( ! in ) {\n if ( CRYPTO_ccm128_setiv ( ccm , EVP_CIPHER_CTX_iv_noconst ( ctx ) , 15 - cctx -> L , len ) ) return - 1 ;\n cctx -> len_set = 1 ;\n return len ;\n }\n if ( ! cctx -> len_set && len ) return - 1 ;\n CRYPTO_ccm128_aad ( ccm , in , len ) ;\n return len ;\n }\n if ( ! in ) return 0 ;\n if ( ! cctx -> len_set ) {\n if ( CRYPTO_ccm128_setiv ( ccm , EVP_CIPHER_CTX_iv_noconst ( ctx ) , 15 - cctx -> L , len ) ) return - 1 ;\n cctx -> len_set = 1 ;\n }\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( cctx -> str ? CRYPTO_ccm128_encrypt_ccm64 ( ccm , in , out , len , cctx -> str ) : CRYPTO_ccm128_encrypt ( ccm , in , out , len ) ) return - 1 ;\n cctx -> tag_set = 1 ;\n return len ;\n }\n else {\n int rv = - 1 ;\n if ( cctx -> str ? ! CRYPTO_ccm128_decrypt_ccm64 ( ccm , in , out , len , cctx -> str ) : ! CRYPTO_ccm128_decrypt ( ccm , in , out , len ) ) {\n unsigned char tag [ 16 ] ;\n if ( CRYPTO_ccm128_tag ( ccm , tag , cctx -> M ) ) {\n if ( ! CRYPTO_memcmp ( tag , EVP_CIPHER_CTX_buf_noconst ( ctx ) , cctx -> M ) ) rv = len ;\n }\n }\n if ( rv == - 1 ) OPENSSL_cleanse ( out , len ) ;\n cctx -> iv_set = 0 ;\n cctx -> tag_set = 0 ;\n cctx -> len_set = 0 ;\n return rv ;\n }\n }\n # define aes_ccm_cleanup NULL BLOCK_CIPHER_custom ( NID_aes , 128 , 1 , 12 , ccm , CCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS )"}
{"idx": 3644, "target": 0, "func": "void vp9_subtract_block_c ( int rows , int cols , int16_t * diff , ptrdiff_t diff_stride , const uint8_t * src , ptrdiff_t src_stride , const uint8_t * pred , ptrdiff_t pred_stride ) {\n int r , c ;\n for ( r = 0 ;\n r < rows ;\n r ++ ) {\n for ( c = 0 ;\n c < cols ;\n c ++ ) diff [ c ] = src [ c ] - pred [ c ] ;\n diff += diff_stride ;\n pred += pred_stride ;\n src += src_stride ;\n }\n }"}
{"idx": 3645, "target": 0, "func": "static void write_frame_size ( const VP9_COMMON * cm , struct vp9_write_bit_buffer * wb ) {\n vp9_wb_write_literal ( wb , cm -> width - 1 , 16 ) ;\n vp9_wb_write_literal ( wb , cm -> height - 1 , 16 ) ;\n write_display_size ( cm , wb ) ;\n }"}
{"idx": 3646, "target": 0, "func": "static bool _try_writable_inplace ( hb_blob_t * blob ) {\n DEBUG_MSG_FUNC ( BLOB , blob , \"making writable inplace\\n\" ) ;\n if ( _try_make_writable_inplace_unix ( blob ) ) return true ;\n DEBUG_MSG_FUNC ( BLOB , blob , \"making writable -> FAILED\\n\" ) ;\n blob -> mode = HB_MEMORY_MODE_READONLY ;\n return false ;\n }"}
{"idx": 3647, "target": 0, "func": "int ReadOffset ( ArchiveHandle * AH , pgoff_t * o ) {\n int i ;\n int off ;\n int offsetFlg ;\n * o = 0 ;\n if ( AH -> version < K_VERS_1_7 ) {\n i = ReadInt ( AH ) ;\n if ( i < 0 ) return K_OFFSET_POS_NOT_SET ;\n else if ( i == 0 ) return K_OFFSET_NO_DATA ;\n * o = ( pgoff_t ) i ;\n return K_OFFSET_POS_SET ;\n }\n offsetFlg = ( * AH -> ReadBytePtr ) ( AH ) & 0xFF ;\n switch ( offsetFlg ) {\n case K_OFFSET_POS_NOT_SET : case K_OFFSET_NO_DATA : case K_OFFSET_POS_SET : break ;\n default : exit_horribly ( modulename , \"unexpected data offset flag %d\\n\" , offsetFlg ) ;\n }\n for ( off = 0 ;\n off < AH -> offSize ;\n off ++ ) {\n if ( off < sizeof ( pgoff_t ) ) * o |= ( ( pgoff_t ) ( ( * AH -> ReadBytePtr ) ( AH ) ) ) << ( off * 8 ) ;\n else {\n if ( ( * AH -> ReadBytePtr ) ( AH ) != 0 ) exit_horribly ( modulename , \"file offset in dump file is too large\\n\" ) ;\n }\n }\n return offsetFlg ;\n }"}
{"idx": 3648, "target": 0, "func": "static int tls_process_cke_ecdhe ( SSL * s , PACKET * pkt , int * al ) {\n # ifndef OPENSSL_NO_EC EVP_PKEY * skey = s -> s3 -> tmp . pkey ;\n EVP_PKEY * ckey = NULL ;\n int ret = 0 ;\n if ( PACKET_remaining ( pkt ) == 0L ) {\n * al = SSL_AD_HANDSHAKE_FAILURE ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_ECDHE , SSL_R_MISSING_TMP_ECDH_KEY ) ;\n goto err ;\n }\n else {\n unsigned int i ;\n const unsigned char * data ;\n if ( ! PACKET_get_1 ( pkt , & i ) || ! PACKET_get_bytes ( pkt , & data , i ) || PACKET_remaining ( pkt ) != 0 ) {\n * al = SSL_AD_DECODE_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_ECDHE , SSL_R_LENGTH_MISMATCH ) ;\n goto err ;\n }\n ckey = EVP_PKEY_new ( ) ;\n if ( ckey == NULL || EVP_PKEY_copy_parameters ( ckey , skey ) <= 0 ) {\n SSLerr ( SSL_F_TLS_PROCESS_CKE_ECDHE , ERR_R_EVP_LIB ) ;\n goto err ;\n }\n if ( EVP_PKEY_set1_tls_encodedpoint ( ckey , data , i ) == 0 ) {\n * al = SSL_AD_HANDSHAKE_FAILURE ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_ECDHE , ERR_R_EC_LIB ) ;\n goto err ;\n }\n }\n if ( ssl_derive ( s , skey , ckey ) == 0 ) {\n * al = SSL_AD_INTERNAL_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_ECDHE , ERR_R_INTERNAL_ERROR ) ;\n goto err ;\n }\n ret = 1 ;\n EVP_PKEY_free ( s -> s3 -> tmp . pkey ) ;\n s -> s3 -> tmp . pkey = NULL ;\n err : EVP_PKEY_free ( ckey ) ;\n return ret ;\n # else * al = SSL_AD_INTERNAL_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_ECDHE , ERR_R_INTERNAL_ERROR ) ;\n return 0 ;\n # endif }"}
{"idx": 3649, "target": 0, "func": "static int load_bitmap_header ( struct bitmap_index * index ) {\n struct bitmap_disk_header * header = ( void * ) index -> map ;\n if ( index -> map_size < sizeof ( * header ) + 20 ) return error ( \"Corrupted bitmap index (missing header data)\" ) ;\n if ( memcmp ( header -> magic , BITMAP_IDX_SIGNATURE , sizeof ( BITMAP_IDX_SIGNATURE ) ) != 0 ) return error ( \"Corrupted bitmap index file (wrong header)\" ) ;\n index -> version = ntohs ( header -> version ) ;\n if ( index -> version != 1 ) return error ( \"Unsupported version for bitmap index file (%d)\" , index -> version ) ;\n {\n uint32_t flags = ntohs ( header -> options ) ;\n if ( ( flags & BITMAP_OPT_FULL_DAG ) == 0 ) return error ( \"Unsupported options for bitmap index file \" \"(Git requires BITMAP_OPT_FULL_DAG)\" ) ;\n if ( flags & BITMAP_OPT_HASH_CACHE ) {\n unsigned char * end = index -> map + index -> map_size - 20 ;\n index -> hashes = ( ( uint32_t * ) end ) - index -> pack -> num_objects ;\n }\n }\n index -> entry_count = ntohl ( header -> entry_count ) ;\n index -> map_pos += sizeof ( * header ) ;\n return 0 ;\n }"}
{"idx": 3650, "target": 0, "func": "MULTIPROCESS_TEST_MAIN ( KilledChildProcess ) {\n WaitToDie ( ProcessUtilTest : : GetSignalFilePath ( kSignalFileKill ) . c_str ( ) ) ;\n # if defined ( OS_WIN ) HANDLE handle = : : OpenProcess ( PROCESS_ALL_ACCESS , 0 , : : GetCurrentProcessId ( ) ) ;\n : : TerminateProcess ( handle , kExpectedKilledExitCode ) ;\n # elif defined ( OS_POSIX ) : : kill ( getpid ( ) , SIGKILL ) ;\n # endif return 1 ;\n }"}
{"idx": 3651, "target": 0, "func": "int ieee80211_radiotap_iterator_next ( struct ieee80211_radiotap_iterator * iterator ) {\n while ( 1 ) {\n int hit = 0 ;\n int pad , align , size , subns ;\n guint32 oui ;\n if ( ( iterator -> _arg_index % 32 ) == IEEE80211_RADIOTAP_EXT && ! ( iterator -> _bitmap_shifter & 1 ) ) return - ENOENT ;\n if ( ! ( iterator -> _bitmap_shifter & 1 ) ) goto next_entry ;\n switch ( iterator -> _arg_index % 32 ) {\n case IEEE80211_RADIOTAP_RADIOTAP_NAMESPACE : case IEEE80211_RADIOTAP_EXT : align = 1 ;\n size = 0 ;\n break ;\n case IEEE80211_RADIOTAP_VENDOR_NAMESPACE : align = 2 ;\n size = 6 ;\n break ;\n default : # ifdef RADIOTAP_SUPPORT_OVERRIDES if ( find_override ( iterator , & align , & size ) ) {\n }\n else # endif if ( ! iterator -> current_namespace || iterator -> _arg_index >= iterator -> current_namespace -> n_bits ) {\n if ( iterator -> current_namespace == & radiotap_ns ) return - ENOENT ;\n align = 0 ;\n }\n else {\n align = iterator -> current_namespace -> align_size [ iterator -> _arg_index ] . align ;\n size = iterator -> current_namespace -> align_size [ iterator -> _arg_index ] . size ;\n }\n if ( ! align ) {\n if ( ! iterator -> _next_ns_data ) return - EINVAL ;\n iterator -> _arg = iterator -> _next_ns_data ;\n iterator -> current_namespace = NULL ;\n iterator -> _next_ns_data = NULL ;\n if ( ! ITERATOR_VALID ( iterator , 0 ) ) return - EINVAL ;\n goto next_entry ;\n }\n break ;\n }\n pad = ( int ) ( ( iterator -> _arg - ( unsigned char * ) iterator -> _rtheader ) & ( align - 1 ) ) ;\n if ( pad ) iterator -> _arg += align - pad ;\n if ( iterator -> _arg_index % 32 == IEEE80211_RADIOTAP_VENDOR_NAMESPACE ) {\n int vnslen ;\n if ( ! ITERATOR_VALID ( iterator , size ) ) return - EINVAL ;\n oui = ( * iterator -> _arg << 16 ) | ( * ( iterator -> _arg + 1 ) << 8 ) | * ( iterator -> _arg + 2 ) ;\n subns = * ( iterator -> _arg + 3 ) ;\n find_ns ( iterator , oui , subns ) ;\n vnslen = get_unaligned_le16 ( iterator -> _arg + 4 ) ;\n iterator -> _next_ns_data = iterator -> _arg + size + vnslen ;\n if ( ! iterator -> current_namespace ) size += vnslen ;\n }\n iterator -> this_arg_index = iterator -> _arg_index ;\n iterator -> this_arg = iterator -> _arg ;\n iterator -> this_arg_size = size ;\n iterator -> _arg += size ;\n if ( ! ITERATOR_VALID ( iterator , 0 ) ) return - EINVAL ;\n switch ( iterator -> _arg_index % 32 ) {\n case IEEE80211_RADIOTAP_VENDOR_NAMESPACE : iterator -> _reset_on_ext = 1 ;\n iterator -> is_radiotap_ns = 0 ;\n iterator -> this_arg_index = IEEE80211_RADIOTAP_VENDOR_NAMESPACE ;\n if ( ! iterator -> current_namespace ) hit = 1 ;\n goto next_entry ;\n case IEEE80211_RADIOTAP_RADIOTAP_NAMESPACE : iterator -> _reset_on_ext = 1 ;\n iterator -> current_namespace = & radiotap_ns ;\n iterator -> is_radiotap_ns = 1 ;\n goto next_entry ;\n case IEEE80211_RADIOTAP_EXT : iterator -> _bitmap_shifter = get_unaligned_le32 ( iterator -> _next_bitmap ) ;\n iterator -> _next_bitmap ++ ;\n if ( iterator -> _reset_on_ext ) iterator -> _arg_index = 0 ;\n else iterator -> _arg_index ++ ;\n iterator -> _reset_on_ext = 0 ;\n break ;\n default : hit = 1 ;\n next_entry : iterator -> _bitmap_shifter >>= 1 ;\n iterator -> _arg_index ++ ;\n }\n if ( hit ) return 0 ;\n }\n }"}
{"idx": 3652, "target": 1, "func": "static void temporal_filter_iterate_c ( VP9_COMP * cpi , YV12_BUFFER_CONFIG * * frames , int frame_count , int alt_ref_index , int strength , struct scale_factors * scale ) {\n int byte ;\n int frame ;\n int mb_col , mb_row ;\n unsigned int filter_weight ;\n int mb_cols = cpi -> common . mb_cols ;\n int mb_rows = cpi -> common . mb_rows ;\n int mb_y_offset = 0 ;\n int mb_uv_offset = 0 ;\n DECLARE_ALIGNED_ARRAY ( 16 , unsigned int , accumulator , 16 * 16 * 3 ) ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint16_t , count , 16 * 16 * 3 ) ;\n MACROBLOCKD * mbd = & cpi -> mb . e_mbd ;\n YV12_BUFFER_CONFIG * f = frames [ alt_ref_index ] ;\n uint8_t * dst1 , * dst2 ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , predictor , 16 * 16 * 3 ) ;\n const int mb_uv_height = 16 >> mbd -> plane [ 1 ] . subsampling_y ;\n const int mb_uv_width = 16 >> mbd -> plane [ 1 ] . subsampling_x ;\n uint8_t * input_buffer [ MAX_MB_PLANE ] ;\n int i ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n i ++ ) input_buffer [ i ] = mbd -> plane [ i ] . pre [ 0 ] . buf ;\n for ( mb_row = 0 ;\n mb_row < mb_rows ;\n mb_row ++ ) {\n cpi -> mb . mv_row_min = - ( ( mb_row * 16 ) + ( 17 - 2 * VP9_INTERP_EXTEND ) ) ;\n cpi -> mb . mv_row_max = ( ( cpi -> common . mb_rows - 1 - mb_row ) * 16 ) + ( 17 - 2 * VP9_INTERP_EXTEND ) ;\n for ( mb_col = 0 ;\n mb_col < mb_cols ;\n mb_col ++ ) {\n int i , j , k ;\n int stride ;\n vpx_memset ( accumulator , 0 , 16 * 16 * 3 * sizeof ( accumulator [ 0 ] ) ) ;\n vpx_memset ( count , 0 , 16 * 16 * 3 * sizeof ( count [ 0 ] ) ) ;\n cpi -> mb . mv_col_min = - ( ( mb_col * 16 ) + ( 17 - 2 * VP9_INTERP_EXTEND ) ) ;\n cpi -> mb . mv_col_max = ( ( cpi -> common . mb_cols - 1 - mb_col ) * 16 ) + ( 17 - 2 * VP9_INTERP_EXTEND ) ;\n for ( frame = 0 ;\n frame < frame_count ;\n frame ++ ) {\n const int thresh_low = 10000 ;\n const int thresh_high = 20000 ;\n if ( frames [ frame ] == NULL ) continue ;\n mbd -> mi [ 0 ] -> bmi [ 0 ] . as_mv [ 0 ] . as_mv . row = 0 ;\n mbd -> mi [ 0 ] -> bmi [ 0 ] . as_mv [ 0 ] . as_mv . col = 0 ;\n if ( frame == alt_ref_index ) {\n filter_weight = 2 ;\n }\n else {\n int err = temporal_filter_find_matching_mb_c ( cpi , frames [ alt_ref_index ] -> y_buffer + mb_y_offset , frames [ frame ] -> y_buffer + mb_y_offset , frames [ frame ] -> y_stride ) ;\n filter_weight = err < thresh_low ? 2 : err < thresh_high ? 1 : 0 ;\n }\n if ( filter_weight != 0 ) {\n temporal_filter_predictors_mb_c ( mbd , frames [ frame ] -> y_buffer + mb_y_offset , frames [ frame ] -> u_buffer + mb_uv_offset , frames [ frame ] -> v_buffer + mb_uv_offset , frames [ frame ] -> y_stride , mb_uv_width , mb_uv_height , mbd -> mi [ 0 ] -> bmi [ 0 ] . as_mv [ 0 ] . as_mv . row , mbd -> mi [ 0 ] -> bmi [ 0 ] . as_mv [ 0 ] . as_mv . col , predictor , scale , mb_col * 16 , mb_row * 16 ) ;\n vp9_temporal_filter_apply ( f -> y_buffer + mb_y_offset , f -> y_stride , predictor , 16 , 16 , strength , filter_weight , accumulator , count ) ;\n vp9_temporal_filter_apply ( f -> u_buffer + mb_uv_offset , f -> uv_stride , predictor + 256 , mb_uv_width , mb_uv_height , strength , filter_weight , accumulator + 256 , count + 256 ) ;\n vp9_temporal_filter_apply ( f -> v_buffer + mb_uv_offset , f -> uv_stride , predictor + 512 , mb_uv_width , mb_uv_height , strength , filter_weight , accumulator + 512 , count + 512 ) ;\n }\n }\n dst1 = cpi -> alt_ref_buffer . y_buffer ;\n stride = cpi -> alt_ref_buffer . y_stride ;\n byte = mb_y_offset ;\n for ( i = 0 , k = 0 ;\n i < 16 ;\n i ++ ) {\n for ( j = 0 ;\n j < 16 ;\n j ++ , k ++ ) {\n unsigned int pval = accumulator [ k ] + ( count [ k ] >> 1 ) ;\n pval *= fixed_divide [ count [ k ] ] ;\n pval >>= 19 ;\n dst1 [ byte ] = ( uint8_t ) pval ;\n byte ++ ;\n }\n byte += stride - 16 ;\n }\n dst1 = cpi -> alt_ref_buffer . u_buffer ;\n dst2 = cpi -> alt_ref_buffer . v_buffer ;\n stride = cpi -> alt_ref_buffer . uv_stride ;\n byte = mb_uv_offset ;\n for ( i = 0 , k = 256 ;\n i < mb_uv_height ;\n i ++ ) {\n for ( j = 0 ;\n j < mb_uv_width ;\n j ++ , k ++ ) {\n int m = k + 256 ;\n unsigned int pval = accumulator [ k ] + ( count [ k ] >> 1 ) ;\n pval *= fixed_divide [ count [ k ] ] ;\n pval >>= 19 ;\n dst1 [ byte ] = ( uint8_t ) pval ;\n pval = accumulator [ m ] + ( count [ m ] >> 1 ) ;\n pval *= fixed_divide [ count [ m ] ] ;\n pval >>= 19 ;\n dst2 [ byte ] = ( uint8_t ) pval ;\n byte ++ ;\n }\n byte += stride - mb_uv_width ;\n }\n mb_y_offset += 16 ;\n mb_uv_offset += mb_uv_width ;\n }\n mb_y_offset += 16 * ( f -> y_stride - mb_cols ) ;\n mb_uv_offset += mb_uv_height * f -> uv_stride - mb_uv_width * mb_cols ;\n }\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n i ++ ) mbd -> plane [ i ] . pre [ 0 ] . buf = input_buffer [ i ] ;\n }"}
{"idx": 3653, "target": 0, "func": "void input_DecoderWait ( decoder_t * p_dec ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n vlc_mutex_lock ( & p_owner -> lock ) ;\n while ( p_owner -> b_waiting && ! p_owner -> b_has_data ) {\n block_FifoWake ( p_owner -> p_fifo ) ;\n vlc_cond_wait ( & p_owner -> wait_acknowledge , & p_owner -> lock ) ;\n }\n vlc_mutex_unlock ( & p_owner -> lock ) ;\n }"}
{"idx": 3654, "target": 0, "func": "static void e1000e_update_interrupt_state ( E1000ECore * core ) {\n bool interrupts_pending ;\n bool is_msix = msix_enabled ( core -> owner ) ;\n if ( is_msix ) {\n if ( core -> mac [ ICR ] & E1000_ICR_OTHER_CAUSES ) {\n core -> mac [ ICR ] |= E1000_ICR_OTHER ;\n trace_e1000e_irq_add_msi_other ( core -> mac [ ICR ] ) ;\n }\n }\n e1000e_fix_icr_asserted ( core ) ;\n core -> mac [ ICS ] = core -> mac [ ICR ] ;\n interrupts_pending = ( core -> mac [ IMS ] & core -> mac [ ICR ] ) ? true : false ;\n trace_e1000e_irq_pending_interrupts ( core -> mac [ ICR ] & core -> mac [ IMS ] , core -> mac [ ICR ] , core -> mac [ IMS ] ) ;\n if ( is_msix || msi_enabled ( core -> owner ) ) {\n if ( interrupts_pending ) {\n e1000e_send_msi ( core , is_msix ) ;\n }\n }\n else {\n if ( interrupts_pending ) {\n if ( ! e1000e_itr_should_postpone ( core ) ) {\n e1000e_raise_legacy_irq ( core ) ;\n }\n }\n else {\n e1000e_lower_legacy_irq ( core ) ;\n }\n }\n }"}
{"idx": 3655, "target": 0, "func": "uint replace_len ( char * str ) {\n uint len = 0 ;\n while ( * str ) {\n str ++ ;\n len ++ ;\n }\n return len ;\n }"}
{"idx": 3656, "target": 0, "func": "static int ipc_alloc_security ( struct task_struct * task , struct kern_ipc_perm * perm , u16 sclass ) {\n struct ipc_security_struct * isec ;\n u32 sid ;\n isec = kzalloc ( sizeof ( struct ipc_security_struct ) , GFP_KERNEL ) ;\n if ( ! isec ) return - ENOMEM ;\n sid = task_sid ( task ) ;\n isec -> sclass = sclass ;\n isec -> sid = sid ;\n perm -> security = isec ;\n return 0 ;\n }"}
{"idx": 3657, "target": 0, "func": "static Entry * deref_base ( Operation * op , SlapReply * rs , Entry * e , Entry * * matched , MDB_txn * txn , ID * tmp , ID * visited ) {\n struct berval ndn ;\n rs -> sr_err = LDAP_ALIAS_DEREF_PROBLEM ;\n rs -> sr_text = \"maximum deref depth exceeded\" ;\n for ( ;\n ;\n ) {\n * matched = e ;\n if ( MDB_IDL_N ( tmp ) >= op -> o_bd -> be_max_deref_depth ) {\n e = NULL ;\n break ;\n }\n if ( visited && mdb_idl_insert ( visited , e -> e_id ) ) {\n e = NULL ;\n break ;\n }\n if ( mdb_idl_insert ( tmp , e -> e_id ) ) {\n rs -> sr_err = LDAP_ALIAS_PROBLEM ;\n rs -> sr_text = \"circular alias\" ;\n e = NULL ;\n break ;\n }\n if ( get_alias_dn ( e , & ndn , & rs -> sr_err , & rs -> sr_text ) ) {\n e = NULL ;\n break ;\n }\n rs -> sr_err = mdb_dn2entry ( op , txn , NULL , & ndn , & e , NULL , 0 ) ;\n if ( rs -> sr_err ) {\n rs -> sr_err = LDAP_ALIAS_PROBLEM ;\n rs -> sr_text = \"aliasedObject not found\" ;\n break ;\n }\n mdb_entry_return ( op , * matched ) ;\n if ( ! is_entry_alias ( e ) ) {\n rs -> sr_err = LDAP_SUCCESS ;\n rs -> sr_text = NULL ;\n break ;\n }\n }\n return e ;\n }"}
{"idx": 3658, "target": 0, "func": "int decoder_GetDisplayRate ( decoder_t * p_dec ) {\n if ( ! p_dec -> pf_get_display_rate ) return INPUT_RATE_DEFAULT ;\n return p_dec -> pf_get_display_rate ( p_dec ) ;\n }"}
{"idx": 3659, "target": 0, "func": "static int get_options ( int argc , char * * argv ) {\n char * tmp , * pagpoint ;\n int ho_error ;\n MYSQL_PARAMETERS * mysql_params = mysql_get_parameters ( ) ;\n tmp = ( char * ) getenv ( \"MYSQL_HOST\" ) ;\n if ( tmp ) current_host = my_strdup ( tmp , MYF ( MY_WME ) ) ;\n pagpoint = getenv ( \"PAGER\" ) ;\n if ( ! ( ( char * ) ( pagpoint ) ) ) {\n strmov ( pager , \"stdout\" ) ;\n opt_nopager = 1 ;\n }\n else strmov ( pager , pagpoint ) ;\n strmov ( default_pager , pager ) ;\n opt_max_allowed_packet = * mysql_params -> p_max_allowed_packet ;\n opt_net_buffer_length = * mysql_params -> p_net_buffer_length ;\n if ( ( ho_error = handle_options ( & argc , & argv , my_long_options , get_one_option ) ) ) exit ( ho_error ) ;\n * mysql_params -> p_max_allowed_packet = opt_max_allowed_packet ;\n * mysql_params -> p_net_buffer_length = opt_net_buffer_length ;\n if ( status . batch ) {\n strmov ( default_pager , \"stdout\" ) ;\n strmov ( pager , \"stdout\" ) ;\n opt_nopager = 1 ;\n default_pager_set = 0 ;\n opt_outfile = 0 ;\n opt_reconnect = 0 ;\n connect_flag = 0 ;\n opt_progress_reports = 0 ;\n }\n if ( argc > 1 ) {\n usage ( 0 ) ;\n exit ( 1 ) ;\n }\n if ( argc == 1 ) {\n skip_updates = 0 ;\n my_free ( current_db ) ;\n current_db = my_strdup ( * argv , MYF ( MY_WME ) ) ;\n }\n if ( tty_password ) opt_password = get_tty_password ( NullS ) ;\n if ( debug_info_flag ) my_end_arg = MY_CHECK_ERROR | MY_GIVE_INFO ;\n if ( debug_check_flag ) my_end_arg = MY_CHECK_ERROR ;\n if ( ignore_spaces ) connect_flag |= CLIENT_IGNORE_SPACE ;\n if ( opt_progress_reports ) connect_flag |= CLIENT_PROGRESS ;\n return ( 0 ) ;\n }"}
{"idx": 3660, "target": 0, "func": "Oid get_relname_relid ( const char * relname , Oid relnamespace ) {\n return GetSysCacheOid2 ( RELNAMENSP , PointerGetDatum ( relname ) , ObjectIdGetDatum ( relnamespace ) ) ;\n }"}
{"idx": 3661, "target": 0, "func": "static int32_t prepareFromUMappings ( UCMTable * table ) {\n UCMapping * mappings , * m ;\n int32_t * map ;\n int32_t i , j , count ;\n int8_t flag ;\n mappings = table -> mappings ;\n map = table -> reverseMap ;\n count = table -> mappingsLength ;\n m = mappings ;\n for ( i = j = 0 ;\n i < count ;\n ++ m , ++ i ) {\n flag = m -> f ;\n if ( flag >= 0 ) {\n flag &= MBCS_FROM_U_EXT_MASK ;\n m -> f = flag ;\n }\n if ( flag == 0 || flag == 1 || ( flag == 2 && m -> bLen == 1 ) || flag == 4 ) {\n map [ j ++ ] = i ;\n if ( m -> uLen > 1 ) {\n UChar32 * u32 ;\n UChar * u ;\n UChar32 c ;\n int32_t q , r ;\n u32 = UCM_GET_CODE_POINTS ( table , m ) ;\n u = ( UChar * ) u32 ;\n for ( r = 2 , q = 1 ;\n q < m -> uLen ;\n ++ q ) {\n c = u32 [ q ] ;\n U16_APPEND_UNSAFE ( u , r , c ) ;\n }\n m -> uLen = ( int8_t ) r ;\n }\n }\n }\n return j ;\n }"}
{"idx": 3662, "target": 0, "func": "static void pdf_run_d0 ( fz_context * ctx , pdf_processor * proc , float wx , float wy ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n if ( pr -> nested_depth > 1 ) return ;\n pr -> dev -> flags |= FZ_DEVFLAG_COLOR ;\n }"}
{"idx": 3663, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , SaveAndLoad ) {\n ProtocolHandler stuff_protocol_handler ( CreateProtocolHandler ( \"stuff\" , \"stuff\" ) ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( test_protocol_handler ( ) ) ;\n registry ( ) -> OnIgnoreRegisterProtocolHandler ( stuff_protocol_handler ) ;\n ASSERT_TRUE ( registry ( ) -> IsHandledProtocol ( \"test\" ) ) ;\n ASSERT_TRUE ( registry ( ) -> IsIgnored ( stuff_protocol_handler ) ) ;\n delegate ( ) -> Reset ( ) ;\n RecreateRegistry ( true ) ;\n ASSERT_TRUE ( registry ( ) -> IsHandledProtocol ( \"test\" ) ) ;\n ASSERT_TRUE ( registry ( ) -> IsIgnored ( stuff_protocol_handler ) ) ;\n }"}
{"idx": 3664, "target": 0, "func": "static int dissect_btgatt_microbit_microbit_event ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , void * data ) {\n btatt_data_t * att_data = ( btatt_data_t * ) data ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) return - 1 ;\n proto_tree_add_item ( tree , hf_gatt_microbit_microbit_event , tvb , 0 , tvb_captured_length ( tvb ) , ENC_NA ) ;\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 3665, "target": 0, "func": "void tmx_pretran_link_safe ( int slotid ) {\n if ( _tmx_proc_ptran == NULL ) return ;\n if ( _tmx_ptran_table [ slotid ] . plist == NULL ) {\n _tmx_ptran_table [ slotid ] . plist = _tmx_proc_ptran ;\n _tmx_proc_ptran -> linked = 1 ;\n return ;\n }\n _tmx_proc_ptran -> next = _tmx_ptran_table [ slotid ] . plist ;\n _tmx_ptran_table [ slotid ] . plist -> prev = _tmx_proc_ptran ;\n _tmx_ptran_table [ slotid ] . plist = _tmx_proc_ptran ;\n _tmx_proc_ptran -> linked = 1 ;\n return ;\n }"}
{"idx": 3666, "target": 0, "func": "static int row_compare ( zval * object1 , zval * object2 TSRMLS_DC ) {\n return - 1 ;\n }"}
{"idx": 3667, "target": 0, "func": "void proto_tree_move_item ( proto_tree * tree , proto_item * fixed_item , proto_item * item_to_move ) {\n if ( ! tree || ! PTREE_DATA ( tree ) -> visible ) return ;\n DISSECTOR_ASSERT ( item_to_move -> parent == tree ) ;\n DISSECTOR_ASSERT ( fixed_item -> parent == tree ) ;\n if ( tree -> first_child == item_to_move ) {\n tree -> first_child = item_to_move -> next ;\n DISSECTOR_ASSERT ( tree -> last_child != item_to_move ) ;\n }\n else {\n proto_item * curr_item ;\n for ( curr_item = tree -> first_child ;\n curr_item != NULL ;\n curr_item = curr_item -> next ) {\n if ( curr_item -> next == item_to_move ) {\n break ;\n }\n }\n DISSECTOR_ASSERT ( curr_item ) ;\n curr_item -> next = item_to_move -> next ;\n if ( tree -> last_child == item_to_move ) {\n tree -> last_child = curr_item ;\n }\n }\n item_to_move -> next = fixed_item -> next ;\n fixed_item -> next = item_to_move ;\n if ( tree -> last_child == fixed_item ) {\n tree -> last_child = item_to_move ;\n }\n }"}
{"idx": 3668, "target": 0, "func": "bool virLogProbablyLogMessage ( const char * str ) {\n bool ret = false ;\n if ( ! virLogRegex ) return false ;\n if ( regexec ( virLogRegex , str , 0 , NULL , 0 ) == 0 ) ret = true ;\n return ret ;\n }"}
{"idx": 3669, "target": 0, "func": "PyObject * PyString_FromFormat ( const char * format , ... ) {\n PyObject * ret ;\n va_list vargs ;\n # ifdef HAVE_STDARG_PROTOTYPES va_start ( vargs , format ) ;\n # else va_start ( vargs ) ;\n # endif ret = PyString_FromFormatV ( format , vargs ) ;\n va_end ( vargs ) ;\n return ret ;\n }"}
{"idx": 3670, "target": 0, "func": "static void list_to_parameters_foreach ( GAppInfo * application , GList * uris , GList * * ret ) {\n ApplicationLaunchParameters * parameters ;\n uris = g_list_reverse ( uris ) ;\n parameters = application_launch_parameters_new ( application , uris ) ;\n * ret = g_list_prepend ( * ret , parameters ) ;\n }"}
{"idx": 3671, "target": 0, "func": "static int vlc_decode_block ( MimicContext * ctx , int num_coeffs , int qscale ) {\n int16_t * block = ctx -> dct_block ;\n unsigned int pos ;\n ctx -> dsp . clear_block ( block ) ;\n block [ 0 ] = get_bits ( & ctx -> gb , 8 ) << 3 ;\n for ( pos = 1 ;\n pos < num_coeffs ;\n pos ++ ) {\n uint32_t vlc , num_bits ;\n int value ;\n int coeff ;\n vlc = get_vlc2 ( & ctx -> gb , ctx -> vlc . table , ctx -> vlc . bits , 3 ) ;\n if ( ! vlc ) return 0 ;\n if ( vlc == - 1 ) return AVERROR_INVALIDDATA ;\n pos += vlc & 15 ;\n num_bits = vlc >> 4 ;\n if ( pos >= 64 ) return AVERROR_INVALIDDATA ;\n value = get_bits ( & ctx -> gb , num_bits ) ;\n coeff = vlcdec_lookup [ num_bits ] [ value ] ;\n if ( pos < 3 ) coeff <<= 4 ;\n else coeff = ( coeff * qscale ) / 1001 ;\n block [ ctx -> scantable . permutated [ pos ] ] = coeff ;\n }\n return 0 ;\n }"}
{"idx": 3672, "target": 0, "func": "bool Curl_compareheader ( const char * headerline , const char * header , const char * content ) {\n size_t hlen = strlen ( header ) ;\n size_t clen ;\n size_t len ;\n const char * start ;\n const char * end ;\n if ( ! Curl_raw_nequal ( headerline , header , hlen ) ) return FALSE ;\n start = & headerline [ hlen ] ;\n while ( * start && ISSPACE ( * start ) ) start ++ ;\n end = strchr ( start , '\\r' ) ;\n if ( ! end ) {\n end = strchr ( start , '\\n' ) ;\n if ( ! end ) end = strchr ( start , '\\0' ) ;\n }\n len = end - start ;\n clen = strlen ( content ) ;\n for ( ;\n len >= clen ;\n len -- , start ++ ) {\n if ( Curl_raw_nequal ( start , content , clen ) ) return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 3673, "target": 0, "func": "static void U_CALLCONV _HZClose ( UConverter * cnv ) {\n if ( cnv -> extraInfo != NULL ) {\n ucnv_close ( ( ( UConverterDataHZ * ) ( cnv -> extraInfo ) ) -> gbConverter ) ;\n if ( ! cnv -> isExtraLocal ) {\n uprv_free ( cnv -> extraInfo ) ;\n }\n cnv -> extraInfo = NULL ;\n }\n }"}
{"idx": 3674, "target": 0, "func": "void getTypeInputInfo ( Oid type , Oid * typInput , Oid * typIOParam ) {\n HeapTuple typeTuple ;\n Form_pg_type pt ;\n typeTuple = SearchSysCache1 ( TYPEOID , ObjectIdGetDatum ( type ) ) ;\n if ( ! HeapTupleIsValid ( typeTuple ) ) elog ( ERROR , \"cache lookup failed for type %u\" , type ) ;\n pt = ( Form_pg_type ) GETSTRUCT ( typeTuple ) ;\n if ( ! pt -> typisdefined ) ereport ( ERROR , ( errcode ( ERRCODE_UNDEFINED_OBJECT ) , errmsg ( \"type %s is only a shell\" , format_type_be ( type ) ) ) ) ;\n if ( ! OidIsValid ( pt -> typinput ) ) ereport ( ERROR , ( errcode ( ERRCODE_UNDEFINED_FUNCTION ) , errmsg ( \"no input function available for type %s\" , format_type_be ( type ) ) ) ) ;\n * typInput = pt -> typinput ;\n * typIOParam = getTypeIOParam ( typeTuple ) ;\n ReleaseSysCache ( typeTuple ) ;\n }"}
{"idx": 3675, "target": 0, "func": "static inline uint32_t e1000e_ring_free_descr_num ( E1000ECore * core , const E1000E_RingInfo * r ) {\n trace_e1000e_ring_free_space ( r -> idx , core -> mac [ r -> dlen ] , core -> mac [ r -> dh ] , core -> mac [ r -> dt ] ) ;\n if ( core -> mac [ r -> dh ] <= core -> mac [ r -> dt ] ) {\n return core -> mac [ r -> dt ] - core -> mac [ r -> dh ] ;\n }\n if ( core -> mac [ r -> dh ] > core -> mac [ r -> dt ] ) {\n return core -> mac [ r -> dlen ] / E1000_RING_DESC_LEN + core -> mac [ r -> dt ] - core -> mac [ r -> dh ] ;\n }\n g_assert_not_reached ( ) ;\n return 0 ;\n }"}
{"idx": 3676, "target": 0, "func": "static int dissect_h245_H263VideoMode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_H263VideoMode , H263VideoMode_sequence ) ;\n return offset ;\n }"}
{"idx": 3677, "target": 0, "func": "static void dumphex ( struct hexout * hexout , FILE * temp , int length ) {\n int i , ch , ch1 ;\n if ( length & 1 ) LogError ( _ ( \"Table length should not be odd\\n\" ) ) ;\n while ( length > 65534 ) {\n dumphex ( hexout , temp , 65534 ) ;\n length -= 65534 ;\n }\n fprintf ( hexout -> type42 , \" <\\n \" ) ;\n hexout -> bytesout = 0 ;\n for ( i = 0 ;\n i < length ;\n ++ i ) {\n ch = getc ( temp ) ;\n if ( ch == EOF ) break ;\n if ( hexout -> bytesout >= 31 ) {\n fprintf ( hexout -> type42 , \"\\n \" ) ;\n hexout -> bytesout = 0 ;\n }\n ch1 = ch >> 4 ;\n if ( ch1 >= 10 ) ch1 += 'A' - 10 ;\n else ch1 += '0' ;\n putc ( ch1 , hexout -> type42 ) ;\n ch1 = ch & 0xf ;\n if ( ch1 >= 10 ) ch1 += 'A' - 10 ;\n else ch1 += '0' ;\n putc ( ch1 , hexout -> type42 ) ;\n ++ hexout -> bytesout ;\n }\n fprintf ( hexout -> type42 , \"\\n 00\\n >\\n\" ) ;\n }"}
{"idx": 3678, "target": 0, "func": "static inline int ohci_put_iso_td ( OHCIState * ohci , dma_addr_t addr , struct ohci_iso_td * td ) {\n return put_dwords ( ohci , addr , ( uint32_t * ) td , 4 ) || put_words ( ohci , addr + 16 , td -> offset , 8 ) ;\n }"}
{"idx": 3679, "target": 0, "func": "static void test_keys ( ELG_secret_key * sk , unsigned int nbits ) {\n ELG_public_key pk ;\n MPI test = mpi_alloc ( 0 ) ;\n MPI out1_a = mpi_alloc ( mpi_nlimb_hint_from_nbits ( nbits ) ) ;\n MPI out1_b = mpi_alloc ( mpi_nlimb_hint_from_nbits ( nbits ) ) ;\n MPI out2 = mpi_alloc ( mpi_nlimb_hint_from_nbits ( nbits ) ) ;\n pk . p = sk -> p ;\n pk . g = sk -> g ;\n pk . y = sk -> y ;\n {\n char * p = get_random_bits ( nbits , 0 , 0 ) ;\n mpi_set_buffer ( test , p , ( nbits + 7 ) / 8 , 0 ) ;\n xfree ( p ) ;\n }\n do_encrypt ( out1_a , out1_b , test , & pk ) ;\n decrypt ( out2 , out1_a , out1_b , sk ) ;\n if ( mpi_cmp ( test , out2 ) ) log_fatal ( \"Elgamal operation: encrypt, decrypt failed\\n\" ) ;\n mpi_free ( test ) ;\n mpi_free ( out1_a ) ;\n mpi_free ( out1_b ) ;\n mpi_free ( out2 ) ;\n }"}
{"idx": 3680, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , TestDisablePreventsHandling ) {\n ProtocolHandler ph1 = CreateProtocolHandler ( \"test\" , \"test1\" ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ;\n ASSERT_TRUE ( registry ( ) -> IsHandledProtocol ( \"test\" ) ) ;\n registry ( ) -> Disable ( ) ;\n ASSERT_FALSE ( registry ( ) -> IsHandledProtocol ( \"test\" ) ) ;\n }"}
{"idx": 3681, "target": 0, "func": "static void DecoderProcess ( decoder_t * p_dec , block_t * p_block ) {\n decoder_owner_sys_t * p_owner = ( decoder_owner_sys_t * ) p_dec -> p_owner ;\n const bool b_flush_request = p_block && ( p_block -> i_flags & BLOCK_FLAG_CORE_FLUSH ) ;\n if ( p_dec -> b_error ) {\n if ( p_block ) block_Release ( p_block ) ;\n goto flush ;\n }\n if ( p_block && p_block -> i_buffer <= 0 ) {\n assert ( ! b_flush_request ) ;\n block_Release ( p_block ) ;\n return ;\n }\n # ifdef ENABLE_SOUT if ( p_owner -> b_packetizer ) {\n if ( p_block ) p_block -> i_flags &= ~ BLOCK_FLAG_CORE_PRIVATE_MASK ;\n DecoderProcessSout ( p_dec , p_block ) ;\n }\n else # endif {\n bool b_flush = false ;\n if ( p_block ) {\n const bool b_flushing = p_owner -> i_preroll_end == INT64_MAX ;\n DecoderUpdatePreroll ( & p_owner -> i_preroll_end , p_block ) ;\n b_flush = ! b_flushing && b_flush_request ;\n p_block -> i_flags &= ~ BLOCK_FLAG_CORE_PRIVATE_MASK ;\n }\n if ( p_dec -> fmt_out . i_cat == AUDIO_ES ) {\n DecoderProcessAudio ( p_dec , p_block , b_flush ) ;\n }\n else if ( p_dec -> fmt_out . i_cat == VIDEO_ES ) {\n DecoderProcessVideo ( p_dec , p_block , b_flush ) ;\n }\n else if ( p_dec -> fmt_out . i_cat == SPU_ES ) {\n DecoderProcessSpu ( p_dec , p_block , b_flush ) ;\n }\n else {\n msg_Err ( p_dec , \"unknown ES format\" ) ;\n p_dec -> b_error = true ;\n }\n }\n flush : if ( b_flush_request ) DecoderProcessOnFlush ( p_dec ) ;\n }"}
{"idx": 3682, "target": 0, "func": "static double var_eq_const ( VariableStatData * vardata , Oid operator , Datum constval , bool constisnull , bool varonleft ) {\n double selec ;\n bool isdefault ;\n Oid opfuncoid ;\n if ( constisnull ) return 0.0 ;\n if ( vardata -> isunique && vardata -> rel && vardata -> rel -> tuples >= 1.0 ) return 1.0 / vardata -> rel -> tuples ;\n if ( HeapTupleIsValid ( vardata -> statsTuple ) && statistic_proc_security_check ( vardata , ( opfuncoid = get_opcode ( operator ) ) ) ) {\n Form_pg_statistic stats ;\n Datum * values ;\n int nvalues ;\n float4 * numbers ;\n int nnumbers ;\n bool match = false ;\n int i ;\n stats = ( Form_pg_statistic ) GETSTRUCT ( vardata -> statsTuple ) ;\n if ( get_attstatsslot ( vardata -> statsTuple , vardata -> atttype , vardata -> atttypmod , STATISTIC_KIND_MCV , InvalidOid , NULL , & values , & nvalues , & numbers , & nnumbers ) ) {\n FmgrInfo eqproc ;\n fmgr_info ( opfuncoid , & eqproc ) ;\n for ( i = 0 ;\n i < nvalues ;\n i ++ ) {\n if ( varonleft ) match = DatumGetBool ( FunctionCall2Coll ( & eqproc , DEFAULT_COLLATION_OID , values [ i ] , constval ) ) ;\n else match = DatumGetBool ( FunctionCall2Coll ( & eqproc , DEFAULT_COLLATION_OID , constval , values [ i ] ) ) ;\n if ( match ) break ;\n }\n }\n else {\n values = NULL ;\n numbers = NULL ;\n i = nvalues = nnumbers = 0 ;\n }\n if ( match ) {\n selec = numbers [ i ] ;\n }\n else {\n double sumcommon = 0.0 ;\n double otherdistinct ;\n for ( i = 0 ;\n i < nnumbers ;\n i ++ ) sumcommon += numbers [ i ] ;\n selec = 1.0 - sumcommon - stats -> stanullfrac ;\n CLAMP_PROBABILITY ( selec ) ;\n otherdistinct = get_variable_numdistinct ( vardata , & isdefault ) - nnumbers ;\n if ( otherdistinct > 1 ) selec /= otherdistinct ;\n if ( nnumbers > 0 && selec > numbers [ nnumbers - 1 ] ) selec = numbers [ nnumbers - 1 ] ;\n }\n free_attstatsslot ( vardata -> atttype , values , nvalues , numbers , nnumbers ) ;\n }\n else {\n selec = 1.0 / get_variable_numdistinct ( vardata , & isdefault ) ;\n }\n CLAMP_PROBABILITY ( selec ) ;\n return selec ;\n }"}
{"idx": 3683, "target": 0, "func": "static void test_bug21635 ( ) {\n const char * expr [ ] = {\n \"MIN(i)\" , \"MIN(i)\" , \"MIN(i) AS A1\" , \"A1\" , \"MAX(i)\" , \"MAX(i)\" , \"MAX(i) AS A2\" , \"A2\" , \"COUNT(i)\" , \"COUNT(i)\" , \"COUNT(i) AS A3\" , \"A3\" , }\n ;\n char query [ MAX_TEST_QUERY_LENGTH ] ;\n char * query_end ;\n MYSQL_RES * result ;\n MYSQL_FIELD * field ;\n unsigned int field_count , i , j ;\n int rc ;\n DBUG_ENTER ( \"test_bug21635\" ) ;\n myheader ( \"test_bug21635\" ) ;\n query_end = strxmov ( query , \"SELECT \" , NullS ) ;\n for ( i = 0 ;\n i < sizeof ( expr ) / sizeof ( * expr ) / 2 ;\n ++ i ) query_end = strxmov ( query_end , expr [ i * 2 ] , \", \" , NullS ) ;\n query_end = strxmov ( query_end - 2 , \" FROM t1 GROUP BY i\" , NullS ) ;\n DIE_UNLESS ( query_end - query < MAX_TEST_QUERY_LENGTH ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE t1 (i INT)\" ) ;\n myquery ( rc ) ;\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n rc = mysql_query ( mysql , \"INSERT INTO t1 VALUES (1)\" ) ;\n myquery ( rc ) ;\n rc = mysql_real_query ( mysql , query , query_end - query ) ;\n myquery ( rc ) ;\n result = mysql_use_result ( mysql ) ;\n DIE_UNLESS ( result ) ;\n field_count = mysql_field_count ( mysql ) ;\n for ( i = 0 ;\n i < field_count ;\n ++ i ) {\n field = mysql_fetch_field_direct ( result , i ) ;\n if ( ! opt_silent ) if ( ! opt_silent ) printf ( \"%s -> %s ... \" , expr [ i * 2 ] , field -> name ) ;\n fflush ( stdout ) ;\n DIE_UNLESS ( field -> db [ 0 ] == 0 && field -> org_table [ 0 ] == 0 && field -> table [ 0 ] == 0 && field -> org_name [ 0 ] == 0 ) ;\n DIE_UNLESS ( strcmp ( field -> name , expr [ i * 2 + 1 ] ) == 0 ) ;\n if ( ! opt_silent ) if ( ! opt_silent ) puts ( \"OK\" ) ;\n }\n mysql_free_result ( result ) ;\n }\n rc = mysql_query ( mysql , \"DROP TABLE t1\" ) ;\n myquery ( rc ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 3684, "target": 0, "func": "static krb5_error_code asn1_encode_sequence_of_keys ( krb5_key_data * key_data , krb5_int16 n_key_data , krb5_int32 mkvno , krb5_data * * code ) {\n krb5_error_code err ;\n ldap_seqof_key_data val ;\n err = kldap_ensure_initialized ( ) ;\n if ( err ) return err ;\n val . key_data = key_data ;\n val . n_key_data = n_key_data ;\n val . mkvno = mkvno ;\n val . kvno = key_data [ 0 ] . key_data_kvno ;\n return accessor . asn1_ldap_encode_sequence_of_keys ( & val , code ) ;\n }"}
{"idx": 3685, "target": 0, "func": "static inline const unsigned char * PushQuantumLongPixel ( QuantumInfo * quantum_info , const unsigned char * magick_restrict pixels , unsigned int * quantum ) {\n register ssize_t i ;\n register size_t quantum_bits ;\n * quantum = 0UL ;\n for ( i = ( ssize_t ) quantum_info -> depth ;\n i > 0 ;\n ) {\n if ( quantum_info -> state . bits == 0 ) {\n pixels = PushLongPixel ( quantum_info -> endian , pixels , & quantum_info -> state . pixel ) ;\n quantum_info -> state . bits = 32U ;\n }\n quantum_bits = ( size_t ) i ;\n if ( quantum_bits > quantum_info -> state . bits ) quantum_bits = quantum_info -> state . bits ;\n * quantum |= ( ( ( quantum_info -> state . pixel >> ( 32U - quantum_info -> state . bits ) ) & quantum_info -> state . mask [ quantum_bits ] ) << ( quantum_info -> depth - i ) ) ;\n i -= ( ssize_t ) quantum_bits ;\n quantum_info -> state . bits -= quantum_bits ;\n }\n return ( pixels ) ;\n }"}
{"idx": 3686, "target": 0, "func": "static mac_is_sdu * get_sdu ( guint frame_num , guint16 tsn , guint8 type , mac_is_channel * ch ) {\n mac_is_sdu * sdu = NULL ;\n GHashTable * sdus = NULL ;\n mac_is_fragment frag_lookup_key ;\n sdus = ( GHashTable * ) g_hash_table_lookup ( mac_is_sdus , ch ) ;\n if ( sdus ) {\n frag_lookup_key . frame_num = frame_num ;\n frag_lookup_key . tsn = tsn ;\n frag_lookup_key . type = type ;\n sdu = ( mac_is_sdu * ) g_hash_table_lookup ( sdus , & frag_lookup_key ) ;\n return sdu ;\n }\n return NULL ;\n }"}
{"idx": 3687, "target": 0, "func": "static int dissect_h225_H323_UU_PDU ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_H323_UU_PDU , H323_UU_PDU_sequence ) ;\n return offset ;\n }"}
{"idx": 3688, "target": 0, "func": "static struct qcms_modular_transform * qcms_modular_transform_alloc ( ) {\n return calloc ( 1 , sizeof ( struct qcms_modular_transform ) ) ;\n }"}
{"idx": 3689, "target": 0, "func": "int evhttp_hostportfile ( char * url , char * * phost , u_short * pport , char * * pfile ) {\n static char host [ 1024 ] ;\n static char file [ 1024 ] ;\n char * p ;\n const char * p2 ;\n int len ;\n u_short port ;\n len = strlen ( HTTP_PREFIX ) ;\n if ( strncasecmp ( url , HTTP_PREFIX , len ) ) return ( - 1 ) ;\n url += len ;\n if ( strlcpy ( host , url , sizeof ( host ) ) >= sizeof ( host ) ) return ( - 1 ) ;\n p = strchr ( host , '/' ) ;\n if ( p != NULL ) {\n * p = '\\0' ;\n p2 = p + 1 ;\n }\n else p2 = NULL ;\n if ( pfile != NULL ) {\n if ( p2 == NULL ) p2 = \"\" ;\n evutil_snprintf ( file , sizeof ( file ) , \"/%s\" , p2 ) ;\n }\n p = strchr ( host , ':' ) ;\n if ( p != NULL ) {\n * p = '\\0' ;\n port = atoi ( p + 1 ) ;\n if ( port == 0 ) return ( - 1 ) ;\n }\n else port = HTTP_DEFAULTPORT ;\n if ( phost != NULL ) * phost = host ;\n if ( pport != NULL ) * pport = port ;\n if ( pfile != NULL ) * pfile = file ;\n return ( 0 ) ;\n }"}
{"idx": 3690, "target": 0, "func": "static int copy_urb_data_to_user ( u8 __user * userbuffer , struct urb * urb ) {\n unsigned i , len , size ;\n if ( urb -> number_of_packets > 0 ) len = urb -> transfer_buffer_length ;\n else len = urb -> actual_length ;\n if ( urb -> num_sgs == 0 ) {\n if ( copy_to_user ( userbuffer , urb -> transfer_buffer , len ) ) return - EFAULT ;\n return 0 ;\n }\n for ( i = 0 ;\n i < urb -> num_sgs && len ;\n i ++ ) {\n size = ( len > USB_SG_SIZE ) ? USB_SG_SIZE : len ;\n if ( copy_to_user ( userbuffer , sg_virt ( & urb -> sg [ i ] ) , size ) ) return - EFAULT ;\n userbuffer += size ;\n len -= size ;\n }\n return 0 ;\n }"}
{"idx": 3691, "target": 0, "func": "enum nss_status CONCAT ( _nss_files_get , ENTNAME_r ) ( struct STRUCTURE * result , char * buffer , size_t buflen , int * errnop H_ERRNO_PROTO ) {\n enum nss_status status = NSS_STATUS_SUCCESS ;\n __libc_lock_lock ( lock ) ;\n if ( stream == NULL ) {\n int save_errno = errno ;\n status = internal_setent ( 0 ) ;\n __set_errno ( save_errno ) ;\n if ( status == NSS_STATUS_SUCCESS && fgetpos ( stream , & position ) < 0 ) {\n fclose ( stream ) ;\n stream = NULL ;\n status = NSS_STATUS_UNAVAIL ;\n }\n }\n if ( status == NSS_STATUS_SUCCESS ) {\n if ( last_use != getent ) {\n if ( fsetpos ( stream , & position ) < 0 ) status = NSS_STATUS_UNAVAIL ;\n else last_use = getent ;\n }\n if ( status == NSS_STATUS_SUCCESS ) {\n status = internal_getent ( result , buffer , buflen , errnop H_ERRNO_ARG EXTRA_ARGS_VALUE ) ;\n if ( status == NSS_STATUS_SUCCESS ) fgetpos ( stream , & position ) ;\n else last_use = nouse ;\n }\n }\n __libc_lock_unlock ( lock ) ;\n return status ;\n }"}
{"idx": 3692, "target": 0, "func": "TEST_F ( ExtensionWelcomeNotificationTest , WelcomeNotificationPreviouslyDismissedLocal ) {\n StartPreferenceSyncing ( ) ;\n SetBooleanPref ( prefs : : kWelcomeNotificationDismissedLocal , true ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissed ) ) ;\n EXPECT_TRUE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissedLocal ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationPreviouslyPoppedUp ) ) ;\n ShowChromeNowNotification ( ) ;\n EXPECT_EQ ( message_center ( ) -> add_notification_calls ( ) , 0 ) ;\n EXPECT_EQ ( message_center ( ) -> remove_notification_calls ( ) , 0 ) ;\n EXPECT_EQ ( message_center ( ) -> notifications_with_shown_as_popup ( ) , 0 ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissed ) ) ;\n EXPECT_TRUE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissedLocal ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationPreviouslyPoppedUp ) ) ;\n }"}
{"idx": 3693, "target": 0, "func": "static proto_tree * ptvcursor_add_subtree_item ( ptvcursor_t * ptvc , proto_item * it , gint ett_subtree , gint length ) {\n ptvcursor_push_subtree ( ptvc , it , ett_subtree ) ;\n if ( length == SUBTREE_UNDEFINED_LENGTH ) ptvcursor_subtree_set_item ( ptvc , it ) ;\n return ptvcursor_tree ( ptvc ) ;\n }"}
{"idx": 3694, "target": 0, "func": "static void PREP_io_800_writeb ( void * opaque , uint32_t addr , uint32_t val ) {\n PPC_IO_DPRINTF ( \"0x%08x => 0x%08x\\n\" , addr - PPC_IO_BASE , val ) ;\n switch ( addr ) {\n case 0x0092 : if ( val & 0x80 ) {\n printf ( \"Soft reset asked... Stop emulation\\n\" ) ;\n abort ( ) ;\n }\n if ( val & 0x40 ) {\n printf ( \"Little Endian mode isn't supported (yet ?)\\n\" ) ;\n abort ( ) ;\n }\n break ;\n case 0x0808 : break ;\n case 0x0810 : NVRAM_lock ^= 0x01 ;\n break ;\n case 0x0812 : NVRAM_lock ^= 0x02 ;\n break ;\n case 0x0814 : break ;\n case 0x081C : syscontrol = val ;\n break ;\n case 0x0850 : if ( val & 0x80 ) {\n printf ( \"No support for non-continuous I/O map mode\\n\" ) ;\n abort ( ) ;\n }\n break ;\n default : break ;\n }\n }"}
{"idx": 3695, "target": 0, "func": "static void decode_finish_row ( H264Context * h ) {\n int top = 16 * ( h -> mb_y >> FIELD_PICTURE ( h ) ) ;\n int pic_height = 16 * h -> mb_height >> FIELD_PICTURE ( h ) ;\n int height = 16 << FRAME_MBAFF ( h ) ;\n int deblock_border = ( 16 + 4 ) << FRAME_MBAFF ( h ) ;\n if ( h -> deblocking_filter ) {\n if ( ( top + height ) >= pic_height ) height += deblock_border ;\n top -= deblock_border ;\n }\n if ( top >= pic_height || ( top + height ) < 0 ) return ;\n height = FFMIN ( height , pic_height - top ) ;\n if ( top < 0 ) {\n height = top + height ;\n top = 0 ;\n }\n ff_h264_draw_horiz_band ( h , top , height ) ;\n if ( h -> droppable || h -> er . error_occurred ) return ;\n ff_thread_report_progress ( & h -> cur_pic_ptr -> tf , top + height - 1 , h -> picture_structure == PICT_BOTTOM_FIELD ) ;\n }"}
{"idx": 3696, "target": 0, "func": "static void pdf_run_Tw ( fz_context * ctx , pdf_processor * proc , float wordspace ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_gstate * gstate = pr -> gstate + pr -> gtop ;\n gstate -> text . word_space = wordspace ;\n }"}
{"idx": 3697, "target": 0, "func": "static inline uint8_t NVRAM_get_byte ( m48t59_t * nvram , uint32_t addr ) {\n m48t59_set_addr ( nvram , addr ) ;\n return m48t59_read ( nvram ) ;\n }"}
{"idx": 3698, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ContentFaviconDriverTest , AssociateIconWithInitialPageDespiteLocationOverrideWithinPage ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n GURL url = embedded_test_server ( ) -> GetURL ( \"/favicon/page_with_location_override_within_page.html\" ) ;\n GURL landing_url = embedded_test_server ( ) -> GetURL ( \"/favicon/page_with_location_override_within_page.html#foo\" ) ;\n PendingTaskWaiter waiter ( web_contents ( ) ) ;\n waiter . AlsoRequireUrl ( landing_url ) ;\n ui_test_utils : : NavigateToURLWithDisposition ( browser ( ) , url , WindowOpenDisposition : : CURRENT_TAB , ui_test_utils : : BROWSER_TEST_NONE ) ;\n waiter . Wait ( ) ;\n EXPECT_NE ( nullptr , GetFaviconForPageURL ( url , favicon_base : : IconType : : kFavicon ) . bitmap_data ) ;\n EXPECT_NE ( nullptr , GetFaviconForPageURL ( landing_url , favicon_base : : IconType : : kFavicon ) . bitmap_data ) ;\n }"}
{"idx": 3699, "target": 0, "func": "static int dissect_pvfs2_truncate_request ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"handle\" , NULL ) ;\n offset = dissect_pvfs_fs_id ( tvb , tree , offset ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_pvfs_size , tvb , offset , 8 , ENC_LITTLE_ENDIAN ) ;\n offset += 8 ;\n proto_tree_add_item ( tree , hf_pvfs_truncate_request_flags , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n return offset ;\n }"}
{"idx": 3700, "target": 0, "func": "static int make_cdt24_entry ( int p1 , int p2 , int16_t * cdt ) {\n int r , b ;\n b = cdt [ p2 ] ;\n r = cdt [ p1 ] << 16 ;\n return ( b + r ) << 1 ;\n }"}
{"idx": 3701, "target": 1, "func": "static VP9_DENOISER_DECISION perform_motion_compensation ( VP9_DENOISER * denoiser , MACROBLOCK * mb , BLOCK_SIZE bs , int increase_denoising , int mi_row , int mi_col , PICK_MODE_CONTEXT * ctx , int * motion_magnitude ) {\n int mv_col , mv_row ;\n int sse_diff = ctx -> zeromv_sse - ctx -> newmv_sse ;\n MV_REFERENCE_FRAME frame ;\n MACROBLOCKD * filter_mbd = & mb -> e_mbd ;\n MB_MODE_INFO * mbmi = & filter_mbd -> mi [ 0 ] -> mbmi ;\n MB_MODE_INFO saved_mbmi ;\n int i , j ;\n struct buf_2d saved_dst [ MAX_MB_PLANE ] ;\n struct buf_2d saved_pre [ MAX_MB_PLANE ] [ 2 ] ;\n saved_mbmi = * mbmi ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n ++ i ) {\n for ( j = 0 ;\n j < 2 ;\n ++ j ) {\n saved_pre [ i ] [ j ] = filter_mbd -> plane [ i ] . pre [ j ] ;\n }\n saved_dst [ i ] = filter_mbd -> plane [ i ] . dst ;\n }\n mv_col = ctx -> best_sse_mv . as_mv . col ;\n mv_row = ctx -> best_sse_mv . as_mv . row ;\n * motion_magnitude = mv_row * mv_row + mv_col * mv_col ;\n frame = ctx -> best_reference_frame ;\n if ( frame != INTRA_FRAME && sse_diff > sse_diff_thresh ( bs , increase_denoising , mv_row , mv_col ) ) {\n mbmi -> ref_frame [ 0 ] = ctx -> best_reference_frame ;\n mbmi -> mode = ctx -> best_sse_inter_mode ;\n mbmi -> mv [ 0 ] = ctx -> best_sse_mv ;\n }\n else {\n frame = ctx -> best_zeromv_reference_frame ;\n mbmi -> ref_frame [ 0 ] = ctx -> best_zeromv_reference_frame ;\n mbmi -> mode = ZEROMV ;\n mbmi -> mv [ 0 ] . as_int = 0 ;\n ctx -> best_sse_inter_mode = ZEROMV ;\n ctx -> best_sse_mv . as_int = 0 ;\n ctx -> newmv_sse = ctx -> zeromv_sse ;\n }\n for ( j = 0 ;\n j < 2 ;\n ++ j ) {\n filter_mbd -> plane [ 0 ] . pre [ j ] . buf = block_start ( denoiser -> running_avg_y [ frame ] . y_buffer , denoiser -> running_avg_y [ frame ] . y_stride , mi_row , mi_col ) ;\n filter_mbd -> plane [ 0 ] . pre [ j ] . stride = denoiser -> running_avg_y [ frame ] . y_stride ;\n filter_mbd -> plane [ 1 ] . pre [ j ] . buf = block_start ( denoiser -> running_avg_y [ frame ] . u_buffer , denoiser -> running_avg_y [ frame ] . uv_stride , mi_row , mi_col ) ;\n filter_mbd -> plane [ 1 ] . pre [ j ] . stride = denoiser -> running_avg_y [ frame ] . uv_stride ;\n filter_mbd -> plane [ 2 ] . pre [ j ] . buf = block_start ( denoiser -> running_avg_y [ frame ] . v_buffer , denoiser -> running_avg_y [ frame ] . uv_stride , mi_row , mi_col ) ;\n filter_mbd -> plane [ 2 ] . pre [ j ] . stride = denoiser -> running_avg_y [ frame ] . uv_stride ;\n }\n filter_mbd -> plane [ 0 ] . dst . buf = block_start ( denoiser -> mc_running_avg_y . y_buffer , denoiser -> mc_running_avg_y . y_stride , mi_row , mi_col ) ;\n filter_mbd -> plane [ 0 ] . dst . stride = denoiser -> mc_running_avg_y . y_stride ;\n filter_mbd -> plane [ 1 ] . dst . buf = block_start ( denoiser -> mc_running_avg_y . u_buffer , denoiser -> mc_running_avg_y . uv_stride , mi_row , mi_col ) ;\n filter_mbd -> plane [ 1 ] . dst . stride = denoiser -> mc_running_avg_y . uv_stride ;\n filter_mbd -> plane [ 2 ] . dst . buf = block_start ( denoiser -> mc_running_avg_y . v_buffer , denoiser -> mc_running_avg_y . uv_stride , mi_row , mi_col ) ;\n filter_mbd -> plane [ 2 ] . dst . stride = denoiser -> mc_running_avg_y . uv_stride ;\n vp9_build_inter_predictors_sby ( filter_mbd , mv_row , mv_col , bs ) ;\n * mbmi = saved_mbmi ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n ++ i ) {\n for ( j = 0 ;\n j < 2 ;\n ++ j ) {\n filter_mbd -> plane [ i ] . pre [ j ] = saved_pre [ i ] [ j ] ;\n }\n filter_mbd -> plane [ i ] . dst = saved_dst [ i ] ;\n }\n mv_row = ctx -> best_sse_mv . as_mv . row ;\n mv_col = ctx -> best_sse_mv . as_mv . col ;\n if ( ctx -> newmv_sse > sse_thresh ( bs , increase_denoising ) ) {\n return COPY_BLOCK ;\n }\n if ( mv_row * mv_row + mv_col * mv_col > * noise_motion_thresh ( bs , increase_denoising ) ) {\n return COPY_BLOCK ;\n }\n return FILTER_BLOCK ;\n }"}
{"idx": 3702, "target": 0, "func": "static int decode_nal_units ( H264Context * h , const uint8_t * buf , int buf_size , int parse_extradata ) {\n AVCodecContext * const avctx = h -> avctx ;\n H264Context * hx ;\n int buf_index ;\n int context_count ;\n int next_avc ;\n int pass = ! ( avctx -> active_thread_type & FF_THREAD_FRAME ) ;\n int nals_needed = 0 ;\n int nal_index ;\n int idr_cleared = 0 ;\n int first_slice = 0 ;\n int ret = 0 ;\n h -> nal_unit_type = 0 ;\n if ( ! h -> slice_context_count ) h -> slice_context_count = 1 ;\n h -> max_contexts = h -> slice_context_count ;\n if ( ! ( avctx -> flags2 & CODEC_FLAG2_CHUNKS ) ) {\n h -> current_slice = 0 ;\n if ( ! h -> first_field ) h -> cur_pic_ptr = NULL ;\n ff_h264_reset_sei ( h ) ;\n }\n if ( h -> nal_length_size == 4 ) {\n if ( buf_size > 8 && AV_RB32 ( buf ) == 1 && AV_RB32 ( buf + 5 ) > ( unsigned ) buf_size ) {\n h -> is_avc = 0 ;\n }\n else if ( buf_size > 3 && AV_RB32 ( buf ) > 1 && AV_RB32 ( buf ) <= ( unsigned ) buf_size ) h -> is_avc = 1 ;\n }\n for ( ;\n pass <= 1 ;\n pass ++ ) {\n buf_index = 0 ;\n context_count = 0 ;\n next_avc = h -> is_avc ? 0 : buf_size ;\n nal_index = 0 ;\n for ( ;\n ;\n ) {\n int consumed ;\n int dst_length ;\n int bit_length ;\n const uint8_t * ptr ;\n int i , nalsize = 0 ;\n int err ;\n if ( buf_index >= next_avc ) {\n if ( buf_index >= buf_size - h -> nal_length_size ) break ;\n nalsize = 0 ;\n for ( i = 0 ;\n i < h -> nal_length_size ;\n i ++ ) nalsize = ( nalsize << 8 ) | buf [ buf_index ++ ] ;\n if ( nalsize <= 0 || nalsize > buf_size - buf_index ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"AVC: nal size %d\\n\" , nalsize ) ;\n break ;\n }\n next_avc = buf_index + nalsize ;\n }\n else {\n for ( ;\n buf_index + 3 < next_avc ;\n buf_index ++ ) if ( buf [ buf_index ] == 0 && buf [ buf_index + 1 ] == 0 && buf [ buf_index + 2 ] == 1 ) break ;\n if ( buf_index + 3 >= buf_size ) {\n buf_index = buf_size ;\n break ;\n }\n buf_index += 3 ;\n if ( buf_index >= next_avc ) continue ;\n }\n hx = h -> thread_context [ context_count ] ;\n ptr = ff_h264_decode_nal ( hx , buf + buf_index , & dst_length , & consumed , next_avc - buf_index ) ;\n if ( ptr == NULL || dst_length < 0 ) {\n ret = - 1 ;\n goto end ;\n }\n i = buf_index + consumed ;\n if ( ( h -> workaround_bugs & FF_BUG_AUTODETECT ) && i + 3 < next_avc && buf [ i ] == 0x00 && buf [ i + 1 ] == 0x00 && buf [ i + 2 ] == 0x01 && buf [ i + 3 ] == 0xE0 ) h -> workaround_bugs |= FF_BUG_TRUNCATED ;\n if ( ! ( h -> workaround_bugs & FF_BUG_TRUNCATED ) ) while ( dst_length > 0 && ptr [ dst_length - 1 ] == 0 ) dst_length -- ;\n bit_length = ! dst_length ? 0 : ( 8 * dst_length - decode_rbsp_trailing ( h , ptr + dst_length - 1 ) ) ;\n if ( h -> avctx -> debug & FF_DEBUG_STARTCODE ) av_log ( h -> avctx , AV_LOG_DEBUG , \"NAL %d/%d at %d/%d length %d pass %d\\n\" , hx -> nal_unit_type , hx -> nal_ref_idc , buf_index , buf_size , dst_length , pass ) ;\n if ( h -> is_avc && ( nalsize != consumed ) && nalsize ) av_log ( h -> avctx , AV_LOG_DEBUG , \"AVC: Consumed only %d bytes instead of %d\\n\" , consumed , nalsize ) ;\n buf_index += consumed ;\n nal_index ++ ;\n if ( pass == 0 ) {\n switch ( hx -> nal_unit_type ) {\n case NAL_SPS : case NAL_PPS : nals_needed = nal_index ;\n break ;\n case NAL_DPA : case NAL_IDR_SLICE : case NAL_SLICE : init_get_bits ( & hx -> gb , ptr , bit_length ) ;\n if ( ! get_ue_golomb ( & hx -> gb ) || ! first_slice ) nals_needed = nal_index ;\n if ( ! first_slice ) first_slice = hx -> nal_unit_type ;\n }\n continue ;\n }\n if ( ! first_slice ) switch ( hx -> nal_unit_type ) {\n case NAL_DPA : case NAL_IDR_SLICE : case NAL_SLICE : first_slice = hx -> nal_unit_type ;\n }\n if ( avctx -> skip_frame >= AVDISCARD_NONREF && h -> nal_ref_idc == 0 && h -> nal_unit_type != NAL_SEI ) continue ;\n again : if ( parse_extradata ) {\n switch ( hx -> nal_unit_type ) {\n case NAL_IDR_SLICE : case NAL_SLICE : case NAL_DPA : case NAL_DPB : case NAL_DPC : av_log ( h -> avctx , AV_LOG_WARNING , \"Ignoring NAL %d in global header/extradata\\n\" , hx -> nal_unit_type ) ;\n case NAL_AUXILIARY_SLICE : hx -> nal_unit_type = NAL_FF_IGNORE ;\n }\n }\n err = 0 ;\n switch ( hx -> nal_unit_type ) {\n case NAL_IDR_SLICE : if ( first_slice != NAL_IDR_SLICE ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"Invalid mix of idr and non-idr slices\\n\" ) ;\n ret = - 1 ;\n goto end ;\n }\n if ( ! idr_cleared ) idr ( h ) ;\n idr_cleared = 1 ;\n case NAL_SLICE : init_get_bits ( & hx -> gb , ptr , bit_length ) ;\n hx -> intra_gb_ptr = hx -> inter_gb_ptr = & hx -> gb ;\n hx -> data_partitioning = 0 ;\n if ( ( err = decode_slice_header ( hx , h ) ) ) break ;\n if ( h -> sei_recovery_frame_cnt >= 0 ) {\n if ( h -> frame_num != h -> sei_recovery_frame_cnt || hx -> slice_type_nos != AV_PICTURE_TYPE_I ) h -> valid_recovery_point = 1 ;\n if ( h -> recovery_frame < 0 || ( ( h -> recovery_frame - h -> frame_num ) & ( ( 1 << h -> sps . log2_max_frame_num ) - 1 ) ) > h -> sei_recovery_frame_cnt ) {\n h -> recovery_frame = ( h -> frame_num + h -> sei_recovery_frame_cnt ) & ( ( 1 << h -> sps . log2_max_frame_num ) - 1 ) ;\n if ( ! h -> valid_recovery_point ) h -> recovery_frame = h -> frame_num ;\n }\n }\n h -> cur_pic_ptr -> f . key_frame |= ( hx -> nal_unit_type == NAL_IDR_SLICE ) ;\n if ( hx -> nal_unit_type == NAL_IDR_SLICE || h -> recovery_frame == h -> frame_num ) {\n h -> recovery_frame = - 1 ;\n h -> cur_pic_ptr -> recovered = 1 ;\n }\n if ( hx -> nal_unit_type == NAL_IDR_SLICE ) h -> frame_recovered |= FRAME_RECOVERED_IDR ;\n h -> frame_recovered |= 3 * ! ! ( avctx -> flags2 & CODEC_FLAG2_SHOW_ALL ) ;\n h -> frame_recovered |= 3 * ! ! ( avctx -> flags & CODEC_FLAG_OUTPUT_CORRUPT ) ;\n # if 1 h -> cur_pic_ptr -> recovered |= h -> frame_recovered ;\n # else h -> cur_pic_ptr -> recovered |= ! ! ( h -> frame_recovered & FRAME_RECOVERED_IDR ) ;\n # endif if ( h -> current_slice == 1 ) {\n if ( ! ( avctx -> flags2 & CODEC_FLAG2_CHUNKS ) ) decode_postinit ( h , nal_index >= nals_needed ) ;\n if ( h -> avctx -> hwaccel && ( ret = h -> avctx -> hwaccel -> start_frame ( h -> avctx , NULL , 0 ) ) < 0 ) return ret ;\n if ( CONFIG_H264_VDPAU_DECODER && h -> avctx -> codec -> capabilities & CODEC_CAP_HWACCEL_VDPAU ) ff_vdpau_h264_picture_start ( h ) ;\n }\n if ( hx -> redundant_pic_count == 0 && ( avctx -> skip_frame < AVDISCARD_NONREF || hx -> nal_ref_idc ) && ( avctx -> skip_frame < AVDISCARD_BIDIR || hx -> slice_type_nos != AV_PICTURE_TYPE_B ) && ( avctx -> skip_frame < AVDISCARD_NONKEY || hx -> slice_type_nos == AV_PICTURE_TYPE_I ) && avctx -> skip_frame < AVDISCARD_ALL ) {\n if ( avctx -> hwaccel ) {\n ret = avctx -> hwaccel -> decode_slice ( avctx , & buf [ buf_index - consumed ] , consumed ) ;\n if ( ret < 0 ) return ret ;\n }\n else if ( CONFIG_H264_VDPAU_DECODER && h -> avctx -> codec -> capabilities & CODEC_CAP_HWACCEL_VDPAU ) {\n ff_vdpau_add_data_chunk ( h -> cur_pic_ptr -> f . data [ 0 ] , start_code , sizeof ( start_code ) ) ;\n ff_vdpau_add_data_chunk ( h -> cur_pic_ptr -> f . data [ 0 ] , & buf [ buf_index - consumed ] , consumed ) ;\n }\n else context_count ++ ;\n }\n break ;\n case NAL_DPA : init_get_bits ( & hx -> gb , ptr , bit_length ) ;\n hx -> intra_gb_ptr = hx -> inter_gb_ptr = NULL ;\n if ( ( err = decode_slice_header ( hx , h ) ) < 0 ) break ;\n hx -> data_partitioning = 1 ;\n break ;\n case NAL_DPB : init_get_bits ( & hx -> intra_gb , ptr , bit_length ) ;\n hx -> intra_gb_ptr = & hx -> intra_gb ;\n break ;\n case NAL_DPC : init_get_bits ( & hx -> inter_gb , ptr , bit_length ) ;\n hx -> inter_gb_ptr = & hx -> inter_gb ;\n av_log ( h -> avctx , AV_LOG_ERROR , \"Partitioned H.264 support is incomplete\\n\" ) ;\n break ;\n if ( hx -> redundant_pic_count == 0 && hx -> intra_gb_ptr && hx -> data_partitioning && h -> cur_pic_ptr && h -> context_initialized && ( avctx -> skip_frame < AVDISCARD_NONREF || hx -> nal_ref_idc ) && ( avctx -> skip_frame < AVDISCARD_BIDIR || hx -> slice_type_nos != AV_PICTURE_TYPE_B ) && ( avctx -> skip_frame < AVDISCARD_NONKEY || hx -> slice_type_nos == AV_PICTURE_TYPE_I ) && avctx -> skip_frame < AVDISCARD_ALL ) context_count ++ ;\n break ;\n case NAL_SEI : init_get_bits ( & h -> gb , ptr , bit_length ) ;\n ff_h264_decode_sei ( h ) ;\n break ;\n case NAL_SPS : init_get_bits ( & h -> gb , ptr , bit_length ) ;\n if ( ff_h264_decode_seq_parameter_set ( h ) < 0 && ( h -> is_avc ? nalsize : 1 ) ) {\n av_log ( h -> avctx , AV_LOG_DEBUG , \"SPS decoding failure, trying again with the complete NAL\\n\" ) ;\n if ( h -> is_avc ) av_assert0 ( next_avc - buf_index + consumed == nalsize ) ;\n if ( ( next_avc - buf_index + consumed - 1 ) >= INT_MAX / 8 ) break ;\n init_get_bits ( & h -> gb , & buf [ buf_index + 1 - consumed ] , 8 * ( next_avc - buf_index + consumed - 1 ) ) ;\n ff_h264_decode_seq_parameter_set ( h ) ;\n }\n break ;\n case NAL_PPS : init_get_bits ( & h -> gb , ptr , bit_length ) ;\n ff_h264_decode_picture_parameter_set ( h , bit_length ) ;\n break ;\n case NAL_AUD : case NAL_END_SEQUENCE : case NAL_END_STREAM : case NAL_FILLER_DATA : case NAL_SPS_EXT : case NAL_AUXILIARY_SLICE : break ;\n case NAL_FF_IGNORE : break ;\n default : av_log ( avctx , AV_LOG_DEBUG , \"Unknown NAL code: %d (%d bits)\\n\" , hx -> nal_unit_type , bit_length ) ;\n }\n if ( context_count == h -> max_contexts ) {\n execute_decode_slices ( h , context_count ) ;\n context_count = 0 ;\n }\n if ( err < 0 ) av_log ( h -> avctx , AV_LOG_ERROR , \"decode_slice_header error\\n\" ) ;\n else if ( err == 1 ) {\n h -> nal_unit_type = hx -> nal_unit_type ;\n h -> nal_ref_idc = hx -> nal_ref_idc ;\n hx = h ;\n goto again ;\n }\n }\n }\n if ( context_count ) execute_decode_slices ( h , context_count ) ;\n end : if ( h -> cur_pic_ptr && ! h -> droppable ) {\n ff_thread_report_progress ( & h -> cur_pic_ptr -> tf , INT_MAX , h -> picture_structure == PICT_BOTTOM_FIELD ) ;\n }\n return ( ret < 0 ) ? ret : buf_index ;\n }"}
{"idx": 3703, "target": 0, "func": "static int dissect_handle ( proto_tree * tree , packet_info * pinfo , gint hf , tvbuff_t * tvb , gint offset , bluetooth_data_t * bluetooth_data , bluetooth_uuid_t * uuid , gint32 handle ) {\n proto_item * handle_item ;\n proto_item * sub_item ;\n proto_tree * sub_tree ;\n bluetooth_uuid_t service_uuid ;\n bluetooth_uuid_t characteristic_uuid ;\n bluetooth_uuid_t attribute_uuid ;\n if ( handle == HANDLE_TVB ) {\n handle_item = proto_tree_add_item ( tree , hf , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n handle = tvb_get_guint16 ( tvb , offset , ENC_LITTLE_ENDIAN ) ;\n }\n else if ( handle >= 0 && handle <= G_MAXUINT16 ) {\n handle_item = proto_tree_add_uint ( tree , hf , tvb , 0 , 0 , handle ) ;\n PROTO_ITEM_SET_GENERATED ( handle_item ) ;\n }\n else {\n DISSECTOR_ASSERT_NOT_REACHED ( ) ;\n }\n service_uuid = get_service_uuid_from_handle ( pinfo , ( guint16 ) handle , bluetooth_data ) ;\n characteristic_uuid = get_characteristic_uuid_from_handle ( pinfo , ( guint16 ) handle , bluetooth_data ) ;\n attribute_uuid = get_uuid_from_handle ( pinfo , ( guint16 ) handle , bluetooth_data ) ;\n proto_item_append_text ( handle_item , \" (\" ) ;\n if ( memcmp ( & service_uuid , & attribute_uuid , sizeof ( attribute_uuid ) ) ) {\n if ( service_uuid . size == 2 || service_uuid . size == 16 ) {\n proto_item_append_text ( handle_item , \"%s: \" , print_uuid ( & service_uuid ) ) ;\n sub_tree = proto_item_add_subtree ( handle_item , ett_btatt_handle ) ;\n if ( service_uuid . size == 2 ) sub_item = proto_tree_add_uint ( sub_tree , hf_btatt_service_uuid16 , tvb , 0 , 0 , service_uuid . bt_uuid ) ;\n else sub_item = proto_tree_add_bytes_with_length ( sub_tree , hf_btatt_service_uuid128 , tvb , 0 , 0 , service_uuid . data , 16 ) ;\n PROTO_ITEM_SET_GENERATED ( sub_item ) ;\n }\n }\n if ( memcmp ( & characteristic_uuid , & attribute_uuid , sizeof ( attribute_uuid ) ) ) {\n if ( characteristic_uuid . size == 2 || characteristic_uuid . size == 16 ) {\n proto_item_append_text ( handle_item , \"%s: \" , print_uuid ( & characteristic_uuid ) ) ;\n sub_tree = proto_item_add_subtree ( handle_item , ett_btatt_handle ) ;\n if ( characteristic_uuid . size == 2 ) sub_item = proto_tree_add_uint ( sub_tree , hf_btatt_characteristic_uuid16 , tvb , 0 , 0 , characteristic_uuid . bt_uuid ) ;\n else sub_item = proto_tree_add_bytes_with_length ( sub_tree , hf_btatt_characteristic_uuid128 , tvb , 0 , 0 , characteristic_uuid . data , 16 ) ;\n PROTO_ITEM_SET_GENERATED ( sub_item ) ;\n }\n }\n proto_item_append_text ( handle_item , \"%s)\" , print_uuid ( & attribute_uuid ) ) ;\n if ( attribute_uuid . size == 2 || attribute_uuid . size == 16 ) {\n sub_tree = proto_item_add_subtree ( handle_item , ett_btatt_handle ) ;\n if ( attribute_uuid . size == 2 ) sub_item = proto_tree_add_uint ( sub_tree , hf_btatt_uuid16 , tvb , 0 , 0 , attribute_uuid . bt_uuid ) ;\n else sub_item = proto_tree_add_bytes_with_length ( sub_tree , hf_btatt_uuid128 , tvb , 0 , 0 , attribute_uuid . data , 16 ) ;\n PROTO_ITEM_SET_GENERATED ( sub_item ) ;\n }\n if ( uuid ) * uuid = attribute_uuid ;\n return offset + 2 ;\n }"}
{"idx": 3704, "target": 0, "func": "static int com_shell ( String * buffer __attribute__ ( ( unused ) ) , char * line __attribute__ ( ( unused ) ) ) {\n char * shell_cmd ;\n while ( my_isspace ( charset_info , * line ) ) line ++ ;\n if ( ! ( shell_cmd = strchr ( line , ' ' ) ) ) {\n put_info ( \"Usage: \\\\! shell-command\" , INFO_ERROR ) ;\n return - 1 ;\n }\n if ( system ( shell_cmd ) == - 1 ) {\n put_info ( strerror ( errno ) , INFO_ERROR , errno ) ;\n return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 3705, "target": 0, "func": "static void http_badreq_cb ( struct evhttp_request * req , void * arg ) {\n struct evbuffer * buf = evbuffer_new ( ) ;\n evhttp_add_header ( req -> output_headers , \"Content-Type\" , \"text/xml;\n charset=UTF-8\" ) ;\n evbuffer_add_printf ( buf , \"Hello, %s!\" , \"127.0.0.1\" ) ;\n evhttp_send_reply ( req , HTTP_OK , \"OK\" , buf ) ;\n evbuffer_free ( buf ) ;\n }"}
{"idx": 3706, "target": 0, "func": "static void test_bug11037 ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n const char * stmt_text ;\n myheader ( \"test_bug11037\" ) ;\n mysql_query ( mysql , \"drop table if exists t1\" ) ;\n rc = mysql_query ( mysql , \"create table t1 (id int not null)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t1 values (1)\" ) ;\n myquery ( rc ) ;\n stmt_text = \"select id FROM t1\" ;\n stmt = mysql_stmt_init ( mysql ) ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == 1 ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"Got error, as expected:\\n [%d] %s\\n\" , mysql_stmt_errno ( stmt ) , mysql_stmt_error ( stmt ) ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == 0 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"drop table t1\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 3707, "target": 0, "func": "static int dtls1_retrieve_buffered_fragment ( SSL * s , int * ok ) {\n pitem * item ;\n hm_fragment * frag ;\n int al ;\n * ok = 0 ;\n do {\n item = pqueue_peek ( s -> d1 -> buffered_messages ) ;\n if ( item == NULL ) return 0 ;\n frag = ( hm_fragment * ) item -> data ;\n if ( frag -> msg_header . seq < s -> d1 -> handshake_read_seq ) {\n pqueue_pop ( s -> d1 -> buffered_messages ) ;\n dtls1_hm_fragment_free ( frag ) ;\n pitem_free ( item ) ;\n item = NULL ;\n frag = NULL ;\n }\n }\n while ( item == NULL ) ;\n if ( frag -> reassembly != NULL ) return 0 ;\n if ( s -> d1 -> handshake_read_seq == frag -> msg_header . seq ) {\n unsigned long frag_len = frag -> msg_header . frag_len ;\n pqueue_pop ( s -> d1 -> buffered_messages ) ;\n al = dtls1_preprocess_fragment ( s , & frag -> msg_header ) ;\n if ( al == 0 ) {\n unsigned char * p = ( unsigned char * ) s -> init_buf -> data + DTLS1_HM_HEADER_LENGTH ;\n memcpy ( & p [ frag -> msg_header . frag_off ] , frag -> fragment , frag -> msg_header . frag_len ) ;\n }\n dtls1_hm_fragment_free ( frag ) ;\n pitem_free ( item ) ;\n if ( al == 0 ) {\n * ok = 1 ;\n return frag_len ;\n }\n ssl3_send_alert ( s , SSL3_AL_FATAL , al ) ;\n s -> init_num = 0 ;\n * ok = 0 ;\n return - 1 ;\n }\n else return 0 ;\n }"}
{"idx": 3708, "target": 0, "func": "static int arm_cpu_env_mask ( void ) {\n char * env ;\n env = getenv ( \"VPX_SIMD_CAPS_MASK\" ) ;\n return env && * env ? ( int ) strtol ( env , NULL , 0 ) : ~ 0 ;\n }"}
{"idx": 3709, "target": 0, "func": "int input_DecoderSetCcState ( decoder_t * p_dec , bool b_decode , int i_channel ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n if ( i_channel < 0 || i_channel >= 4 || ! p_owner -> cc . pb_present [ i_channel ] ) return VLC_EGENERIC ;\n if ( b_decode ) {\n static const vlc_fourcc_t fcc [ 4 ] = {\n VLC_FOURCC ( 'c' , 'c' , '1' , ' ' ) , VLC_FOURCC ( 'c' , 'c' , '2' , ' ' ) , VLC_FOURCC ( 'c' , 'c' , '3' , ' ' ) , VLC_FOURCC ( 'c' , 'c' , '4' , ' ' ) , }\n ;\n decoder_t * p_cc ;\n es_format_t fmt ;\n es_format_Init ( & fmt , SPU_ES , fcc [ i_channel ] ) ;\n p_cc = input_DecoderNew ( p_owner -> p_input , & fmt , p_dec -> p_owner -> p_clock , p_owner -> p_sout ) ;\n if ( ! p_cc ) {\n msg_Err ( p_dec , \"could not create decoder\" ) ;\n dialog_Fatal ( p_dec , _ ( \"Streaming / Transcoding failed\" ) , \"%s\" , _ ( \"VLC could not open the decoder module.\" ) ) ;\n return VLC_EGENERIC ;\n }\n else if ( ! p_cc -> p_module ) {\n DecoderUnsupportedCodec ( p_dec , fcc [ i_channel ] ) ;\n input_DecoderDelete ( p_cc ) ;\n return VLC_EGENERIC ;\n }\n p_cc -> p_owner -> p_clock = p_owner -> p_clock ;\n vlc_mutex_lock ( & p_owner -> lock ) ;\n p_owner -> cc . pp_decoder [ i_channel ] = p_cc ;\n vlc_mutex_unlock ( & p_owner -> lock ) ;\n }\n else {\n decoder_t * p_cc ;\n vlc_mutex_lock ( & p_owner -> lock ) ;\n p_cc = p_owner -> cc . pp_decoder [ i_channel ] ;\n p_owner -> cc . pp_decoder [ i_channel ] = NULL ;\n vlc_mutex_unlock ( & p_owner -> lock ) ;\n if ( p_cc ) input_DecoderDelete ( p_cc ) ;\n }\n return VLC_SUCCESS ;\n }"}
{"idx": 3710, "target": 0, "func": "static int zinstopped ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n uint count ;\n check_type ( * op , t_integer ) ;\n count = count_to_stopped ( i_ctx_p , op -> value . intval ) ;\n if ( count ) {\n push ( 1 ) ;\n op [ - 1 ] = * ref_stack_index ( & e_stack , count - 2 ) ;\n make_true ( op ) ;\n }\n else make_false ( op ) ;\n return 0 ;\n }"}
{"idx": 3711, "target": 0, "func": "void get_type_category_preferred ( Oid typid , char * typcategory , bool * typispreferred ) {\n HeapTuple tp ;\n Form_pg_type typtup ;\n tp = SearchSysCache1 ( TYPEOID , ObjectIdGetDatum ( typid ) ) ;\n if ( ! HeapTupleIsValid ( tp ) ) elog ( ERROR , \"cache lookup failed for type %u\" , typid ) ;\n typtup = ( Form_pg_type ) GETSTRUCT ( tp ) ;\n * typcategory = typtup -> typcategory ;\n * typispreferred = typtup -> typispreferred ;\n ReleaseSysCache ( tp ) ;\n }"}
{"idx": 3712, "target": 0, "func": "static void dtap_tp_open_loop_cmd ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_len = len ;\n curr_offset = offset ;\n if ( curr_len ) ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_TP_ACK , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 3713, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize ) ;\n DECL_PIOCTL ( PGetCacheSize ) ;\n DECL_PIOCTL ( PRemoveCallBack ) ;\n DECL_PIOCTL ( PNewCell ) ;\n DECL_PIOCTL ( PNewAlias ) ;\n DECL_PIOCTL ( PListCells ) ;\n DECL_PIOCTL ( PListAliases ) ;\n DECL_PIOCTL ( PRemoveMount ) ;\n DECL_PIOCTL ( PGetCellStatus ) ;\n DECL_PIOCTL ( PSetCellStatus ) ;\n DECL_PIOCTL ( PFlushVolumeData ) ;\n DECL_PIOCTL ( PFlushAllVolumeData ) ;\n DECL_PIOCTL ( PGetVnodeXStatus ) ;\n DECL_PIOCTL ( PGetVnodeXStatus2 ) ;\n DECL_PIOCTL ( PSetSysName ) ;\n DECL_PIOCTL ( PSetSPrefs ) ;\n DECL_PIOCTL ( PSetSPrefs33 ) ;\n DECL_PIOCTL ( PGetSPrefs ) ;\n DECL_PIOCTL ( PExportAfs ) ;\n DECL_PIOCTL ( PGag ) ;\n DECL_PIOCTL ( PTwiddleRx ) ;\n DECL_PIOCTL ( PGetInitParams ) ;\n DECL_PIOCTL ( PGetRxkcrypt ) ;\n DECL_PIOCTL ( PSetRxkcrypt ) ;\n DECL_PIOCTL ( PGetCPrefs ) ;\n DECL_PIOCTL ( PSetCPrefs ) ;\n DECL_PIOCTL ( PFlushMount ) ;\n DECL_PIOCTL ( PRxStatProc ) ;\n DECL_PIOCTL ( PRxStatPeer ) ;\n DECL_PIOCTL ( PPrefetchFromTape ) ;\n DECL_PIOCTL ( PFsCmd ) ;\n DECL_PIOCTL ( PCallBackAddr ) ;\n DECL_PIOCTL ( PDiscon ) ;\n DECL_PIOCTL ( PNFSNukeCreds ) ;\n DECL_PIOCTL ( PNewUuid ) ;\n DECL_PIOCTL ( PPrecache ) ;\n DECL_PIOCTL ( PGetPAG )"}
{"idx": 3714, "target": 0, "func": "static int dissect_h245_OpenLogicalChannelReject ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_OpenLogicalChannelReject , OpenLogicalChannelReject_sequence ) ;\n # line 542 \"../../asn1/h245/h245.cnf\" if ( h245_pi != NULL ) h245_pi -> msg_type = H245_OpenLogChnRjc ;\n return offset ;\n }"}
{"idx": 3715, "target": 0, "func": "static int dissect_nlm_share ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , int version _U_ , rpc_call_info_value * civ ) {\n proto_item * lock_item = NULL ;\n proto_tree * lock_tree = NULL ;\n guint32 fh_hash ;\n offset = dissect_rpc_data ( tvb , tree , hf_nlm_cookie , offset ) ;\n if ( tree ) {\n lock_item = proto_tree_add_item ( tree , hf_nlm_share , tvb , offset , - 1 , ENC_NA ) ;\n if ( lock_item ) lock_tree = proto_item_add_subtree ( lock_item , ett_nlm_lock ) ;\n }\n offset = dissect_rpc_string ( tvb , lock_tree , hf_nlm_lock_caller_name , offset , NULL ) ;\n offset = dissect_nfs3_fh ( tvb , offset , pinfo , lock_tree , \"fh\" , & fh_hash , civ ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" FH:0x%08x\" , fh_hash ) ;\n offset = dissect_rpc_data ( tvb , lock_tree , hf_nlm_lock_owner , offset ) ;\n offset = dissect_rpc_uint32 ( tvb , lock_tree , hf_nlm_share_mode , offset ) ;\n offset = dissect_rpc_uint32 ( tvb , lock_tree , hf_nlm_share_access , offset ) ;\n offset = dissect_rpc_bool ( tvb , tree , hf_nlm_reclaim , offset ) ;\n return offset ;\n }"}
{"idx": 3716, "target": 0, "func": "void init_control ( void ) {\n size_t i ;\n # ifdef HAVE_UNAME uname ( & utsnamebuf ) ;\n # endif ctl_clr_stats ( ) ;\n ctl_auth_keyid = 0 ;\n ctl_sys_last_event = EVNT_UNSPEC ;\n ctl_sys_num_events = 0 ;\n num_ctl_traps = 0 ;\n for ( i = 0 ;\n i < COUNTOF ( ctl_traps ) ;\n i ++ ) ctl_traps [ i ] . tr_flags = 0 ;\n }"}
{"idx": 3717, "target": 1, "func": "END_TEST START_TEST ( test_find_user_by_ip ) {\n in_addr_t ip ;\n unsigned int testip ;\n ip = inet_addr ( \"127.0.0.1\" ) ;\n init_users ( ip , 27 ) ;\n users [ 0 ] . conn = CONN_DNS_NULL ;\n testip = ( unsigned int ) inet_addr ( \"10.0.0.1\" ) ;\n fail_unless ( find_user_by_ip ( testip ) == - 1 ) ;\n testip = ( unsigned int ) inet_addr ( \"127.0.0.2\" ) ;\n fail_unless ( find_user_by_ip ( testip ) == - 1 ) ;\n users [ 0 ] . active = 1 ;\n testip = ( unsigned int ) inet_addr ( \"127.0.0.2\" ) ;\n fail_unless ( find_user_by_ip ( testip ) == - 1 ) ;\n users [ 0 ] . last_pkt = time ( NULL ) ;\n testip = ( unsigned int ) inet_addr ( \"127.0.0.2\" ) ;\n fail_unless ( find_user_by_ip ( testip ) == 0 ) ;\n }"}
{"idx": 3718, "target": 0, "func": "static void cmd_window_move_up ( void ) {\n MAIN_WINDOW_REC * rec ;\n rec = mainwindows_find_upper_left ( active_mainwin ) ;\n if ( rec != NULL ) window_reparent ( active_win , rec ) ;\n }"}
{"idx": 3719, "target": 0, "func": "static void mac_is_sdus_hash_destroy ( gpointer data ) {\n g_hash_table_destroy ( ( GHashTable * ) data ) ;\n }"}
{"idx": 3720, "target": 0, "func": "static void config_auth ( config_tree * ptree ) {\n attr_val * my_val ;\n int first ;\n int last ;\n int i ;\n # ifdef AUTOKEY int item ;\n # endif # ifdef AUTOKEY item = - 1 ;\n my_val = HEAD_PFIFO ( ptree -> auth . crypto_cmd_list ) ;\n for ( ;\n my_val != NULL ;\n my_val = my_val -> link ) {\n switch ( my_val -> attr ) {\n default : NTP_INSIST ( 0 ) ;\n break ;\n case T_Host : item = CRYPTO_CONF_PRIV ;\n break ;\n case T_Ident : item = CRYPTO_CONF_IDENT ;\n break ;\n case T_Pw : item = CRYPTO_CONF_PW ;\n break ;\n case T_Randfile : item = CRYPTO_CONF_RAND ;\n break ;\n case T_Digest : item = CRYPTO_CONF_NID ;\n break ;\n }\n crypto_config ( item , my_val -> value . s ) ;\n }\n # endif if ( ptree -> auth . keysdir ) {\n if ( keysdir != default_keysdir ) free ( keysdir ) ;\n keysdir = estrdup ( ptree -> auth . keysdir ) ;\n }\n if ( ptree -> auth . ntp_signd_socket ) {\n if ( ntp_signd_socket != default_ntp_signd_socket ) free ( ntp_signd_socket ) ;\n ntp_signd_socket = estrdup ( ptree -> auth . ntp_signd_socket ) ;\n }\n # ifdef AUTOKEY if ( ptree -> auth . cryptosw && ! cryptosw ) {\n crypto_setup ( ) ;\n cryptosw = 1 ;\n }\n # endif if ( ptree -> auth . keys ) getauthkeys ( ptree -> auth . keys ) ;\n if ( ptree -> auth . control_key ) ctl_auth_keyid = ( keyid_t ) ptree -> auth . control_key ;\n if ( ptree -> auth . request_key ) {\n DPRINTF ( 4 , ( \"set info_auth_keyid to %08lx\\n\" , ( u_long ) ptree -> auth . request_key ) ) ;\n info_auth_keyid = ( keyid_t ) ptree -> auth . request_key ;\n }\n my_val = HEAD_PFIFO ( ptree -> auth . trusted_key_list ) ;\n for ( ;\n my_val != NULL ;\n my_val = my_val -> link ) {\n if ( T_Integer == my_val -> type ) authtrust ( my_val -> value . i , 1 ) ;\n else if ( T_Intrange == my_val -> type ) {\n first = my_val -> value . r . first ;\n last = my_val -> value . r . last ;\n if ( first > last || first < 1 || last > 65534 ) msyslog ( LOG_NOTICE , \"Ignoring invalid trustedkey range %d ... %d, min 1 max 65534.\" , first , last ) ;\n else for ( i = first ;\n i <= last ;\n i ++ ) authtrust ( ( keyid_t ) i , 1 ) ;\n }\n }\n # ifdef AUTOKEY if ( ptree -> auth . revoke ) sys_revoke = 1 << ptree -> auth . revoke ;\n # endif }"}
{"idx": 3721, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( HttpsEngagementPageLoadMetricsBrowserTest , Navigate_Http ) {\n StartHttpServer ( ) ;\n NavigateTwiceInTabAndClose ( http_test_server_ -> GetURL ( \"/simple.html\" ) , GURL ( chrome : : kChromeUIVersionURL ) ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpEngagementHistogram , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementHistogram , 0 ) ;\n FakeUserMetricsUpload ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementSessionPercentage , 1 ) ;\n int32_t ratio_bucket = histogram_tester_ . GetAllSamples ( internal : : kHttpsEngagementSessionPercentage ) [ 0 ] . min ;\n EXPECT_EQ ( 0 , ratio_bucket ) ;\n }"}
{"idx": 3722, "target": 1, "func": "void bn_mul_comba4 ( BN_ULONG * r , BN_ULONG * a , BN_ULONG * b ) {\n BN_ULONG t1 , t2 ;\n BN_ULONG c1 , c2 , c3 ;\n c1 = 0 ;\n c2 = 0 ;\n c3 = 0 ;\n mul_add_c ( a [ 0 ] , b [ 0 ] , c1 , c2 , c3 ) ;\n r [ 0 ] = c1 ;\n c1 = 0 ;\n mul_add_c ( a [ 0 ] , b [ 1 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 1 ] , b [ 0 ] , c2 , c3 , c1 ) ;\n r [ 1 ] = c2 ;\n c2 = 0 ;\n mul_add_c ( a [ 2 ] , b [ 0 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 1 ] , b [ 1 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 0 ] , b [ 2 ] , c3 , c1 , c2 ) ;\n r [ 2 ] = c3 ;\n c3 = 0 ;\n mul_add_c ( a [ 0 ] , b [ 3 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 1 ] , b [ 2 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 2 ] , b [ 1 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 3 ] , b [ 0 ] , c1 , c2 , c3 ) ;\n r [ 3 ] = c1 ;\n c1 = 0 ;\n mul_add_c ( a [ 3 ] , b [ 1 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 2 ] , b [ 2 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 1 ] , b [ 3 ] , c2 , c3 , c1 ) ;\n r [ 4 ] = c2 ;\n c2 = 0 ;\n mul_add_c ( a [ 2 ] , b [ 3 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 3 ] , b [ 2 ] , c3 , c1 , c2 ) ;\n r [ 5 ] = c3 ;\n c3 = 0 ;\n mul_add_c ( a [ 3 ] , b [ 3 ] , c1 , c2 , c3 ) ;\n r [ 6 ] = c1 ;\n r [ 7 ] = c2 ;\n }"}
{"idx": 3723, "target": 0, "func": "TSVConn TSHttpConnect ( sockaddr const * addr ) {\n return TSHttpConnectWithPluginId ( addr , \"plugin\" , 0 ) ;\n }"}
{"idx": 3724, "target": 0, "func": "static void write_profile ( BITSTREAM_PROFILE profile , struct vp9_write_bit_buffer * wb ) {\n switch ( profile ) {\n case PROFILE_0 : vp9_wb_write_literal ( wb , 0 , 2 ) ;\n break ;\n case PROFILE_1 : vp9_wb_write_literal ( wb , 2 , 2 ) ;\n break ;\n case PROFILE_2 : vp9_wb_write_literal ( wb , 1 , 2 ) ;\n break ;\n case PROFILE_3 : vp9_wb_write_literal ( wb , 6 , 3 ) ;\n break ;\n default : assert ( 0 ) ;\n }\n }"}
{"idx": 3725, "target": 0, "func": "static void generate_fsm ( void ) {\n char rprefix [ MAX_TOK_LEN + 1 ] ;\n char prefix [ MAX_TOK_LEN + 1 ] ;\n char token_id_comment [ 16 + MAX_TOK_LEN + 1 ] ;\n size_t prefix_len ;\n char * p ;\n char * r ;\n u_short initial_state ;\n u_short this_state ;\n u_short state ;\n u_short i ;\n u_short token ;\n qsort ( ntp_keywords , COUNTOF ( ntp_keywords ) , sizeof ( ntp_keywords [ 0 ] ) , compare_key_tok_text ) ;\n for ( i = 0 ;\n i < COUNTOF ( ntp_keywords ) ;\n i ++ ) {\n token = ntp_keywords [ i ] . token ;\n if ( 1 > token || token >= COUNTOF ( sst ) ) {\n fprintf ( stderr , \"keyword-gen sst[%u] too small \" \"for keyword '%s' id %d\\n\" , ( int ) COUNTOF ( sst ) , ntp_keywords [ i ] . key , token ) ;\n exit ( 4 ) ;\n }\n sst [ token ] . finishes_token = token ;\n }\n initial_state = create_keyword_scanner ( ) ;\n fprintf ( stderr , \"%d keywords consumed %d states of %d max.\\n\" , ( int ) COUNTOF ( ntp_keywords ) , sst_highwater - 1 , ( int ) COUNTOF ( sst ) - 1 ) ;\n printf ( \"#define SCANNER_INIT_S %d\\n\\n\" , initial_state ) ;\n printf ( \"const scan_state sst[%d] = {\n\\n\" \"/*SS_T( ch,\\tf-by, match, other ),\\t\\t\\t\\t */\\n\" \" 0,\\t\\t\\t\\t /* %5d %-17s */\\n\" , sst_highwater , 0 , \"\" ) ;\n for ( i = 1 ;\n i < sst_highwater ;\n i ++ ) {\n if ( sst [ i ] . followedby & ~ 0x3 ) {\n fprintf ( stderr , \"keyword-gen internal error \" \"sst[%d].followedby %d too big\\n\" , i , sst [ i ] . followedby ) ;\n exit ( 7 ) ;\n }\n if ( sst_highwater <= sst [ i ] . match_next_s || sst [ i ] . match_next_s & ~ 0x7ff ) {\n fprintf ( stderr , \"keyword-gen internal error \" \"sst[%d].match_next_s %d too big\\n\" , i , sst [ i ] . match_next_s ) ;\n exit ( 8 ) ;\n }\n if ( sst_highwater <= sst [ i ] . other_next_s || sst [ i ] . other_next_s & ~ 0x7ff ) {\n fprintf ( stderr , \"keyword-gen internal error \" \"sst[%d].other_next_s %d too big\\n\" , i , sst [ i ] . other_next_s ) ;\n exit ( 9 ) ;\n }\n if ( sst [ i ] . finishes_token ) {\n snprintf ( token_id_comment , sizeof ( token_id_comment ) , \"%5d %-17s\" , i , symbname ( sst [ i ] . finishes_token ) ) ;\n if ( i != sst [ i ] . finishes_token ) {\n fprintf ( stderr , \"keyword-gen internal error \" \"entry %d finishes token %d\\n\" , i , sst [ i ] . finishes_token ) ;\n exit ( 5 ) ;\n }\n }\n else {\n prefix_len = 0 ;\n this_state = i ;\n do {\n for ( state = 1 ;\n state < sst_highwater ;\n state ++ ) if ( sst [ state ] . other_next_s == this_state ) {\n this_state = state ;\n break ;\n }\n else if ( sst [ state ] . match_next_s == this_state ) {\n this_state = state ;\n rprefix [ prefix_len ] = sst [ state ] . ch ;\n prefix_len ++ ;\n break ;\n }\n }\n while ( this_state != initial_state ) ;\n if ( prefix_len ) {\n p = prefix + prefix_len ;\n r = rprefix ;\n while ( r < rprefix + prefix_len ) * -- p = * r ++ ;\n }\n prefix [ prefix_len ] = '\\0' ;\n snprintf ( token_id_comment , sizeof ( token_id_comment ) , \"%5d %-17s\" , i , ( initial_state == i ) ? \"[initial state]\" : prefix ) ;\n }\n printf ( \" S_ST( '%c',\\t%d, %5u, %5u )%s /* %s */\\n\" , sst [ i ] . ch , sst [ i ] . followedby , sst [ i ] . match_next_s , sst [ i ] . other_next_s , ( i + 1 < sst_highwater ) ? \",\" : \" \" , token_id_comment ) ;\n }\n printf ( \"}\n;\n\\n\\n\" ) ;\n }"}
{"idx": 3726, "target": 0, "func": "PKCS7 * d2i_PKCS7_bio ( BIO * bp , PKCS7 * * p7 ) {\n return ASN1_item_d2i_bio ( ASN1_ITEM_rptr ( PKCS7 ) , bp , p7 ) ;\n }"}
{"idx": 3727, "target": 0, "func": "static void ctl_putfs ( const char * tag , tstamp_t uval ) {\n register char * cp ;\n register const char * cq ;\n char buffer [ 200 ] ;\n struct tm * tm = NULL ;\n time_t fstamp ;\n cp = buffer ;\n cq = tag ;\n while ( * cq != '\\0' ) * cp ++ = * cq ++ ;\n * cp ++ = '=' ;\n fstamp = uval - JAN_1970 ;\n tm = gmtime ( & fstamp ) ;\n if ( NULL == tm ) return ;\n INSIST ( ( cp - buffer ) < ( int ) sizeof ( buffer ) ) ;\n snprintf ( cp , sizeof ( buffer ) - ( cp - buffer ) , \"%04d%02d%02d%02d%02d\" , tm -> tm_year + 1900 , tm -> tm_mon + 1 , tm -> tm_mday , tm -> tm_hour , tm -> tm_min ) ;\n cp += strlen ( cp ) ;\n ctl_putdata ( buffer , ( unsigned ) ( cp - buffer ) , 0 ) ;\n }"}
{"idx": 3728, "target": 0, "func": "static void ohci_stop_endpoints ( OHCIState * ohci ) {\n USBDevice * dev ;\n int i , j ;\n for ( i = 0 ;\n i < ohci -> num_ports ;\n i ++ ) {\n dev = ohci -> rhport [ i ] . port . dev ;\n if ( dev && dev -> attached ) {\n usb_device_ep_stopped ( dev , & dev -> ep_ctl ) ;\n for ( j = 0 ;\n j < USB_MAX_ENDPOINTS ;\n j ++ ) {\n usb_device_ep_stopped ( dev , & dev -> ep_in [ j ] ) ;\n usb_device_ep_stopped ( dev , & dev -> ep_out [ j ] ) ;\n }\n }\n }\n }"}
{"idx": 3729, "target": 0, "func": "mbfl_string * mbfl_strimwidth ( mbfl_string * string , mbfl_string * marker , mbfl_string * result , int from , int width ) {\n struct collector_strimwidth_data pc ;\n mbfl_convert_filter * encoder ;\n int n , mkwidth ;\n unsigned char * p ;\n if ( string == NULL || result == NULL ) {\n return NULL ;\n }\n mbfl_string_init ( result ) ;\n result -> no_language = string -> no_language ;\n result -> no_encoding = string -> no_encoding ;\n mbfl_memory_device_init ( & pc . device , width , 0 ) ;\n pc . decoder = mbfl_convert_filter_new ( mbfl_no_encoding_wchar , string -> no_encoding , mbfl_memory_device_output , 0 , & pc . device ) ;\n pc . decoder_backup = mbfl_convert_filter_new ( mbfl_no_encoding_wchar , string -> no_encoding , mbfl_memory_device_output , 0 , & pc . device ) ;\n encoder = mbfl_convert_filter_new ( string -> no_encoding , mbfl_no_encoding_wchar , collector_strimwidth , 0 , & pc ) ;\n if ( pc . decoder == NULL || pc . decoder_backup == NULL || encoder == NULL ) {\n mbfl_convert_filter_delete ( encoder ) ;\n mbfl_convert_filter_delete ( pc . decoder ) ;\n mbfl_convert_filter_delete ( pc . decoder_backup ) ;\n return NULL ;\n }\n mkwidth = 0 ;\n if ( marker ) {\n mkwidth = mbfl_strwidth ( marker ) ;\n }\n pc . from = from ;\n pc . width = width - mkwidth ;\n pc . outwidth = 0 ;\n pc . outchar = 0 ;\n pc . status = 0 ;\n pc . endpos = 0 ;\n p = string -> val ;\n n = string -> len ;\n if ( p != NULL ) {\n while ( n > 0 ) {\n n -- ;\n if ( ( * encoder -> filter_function ) ( * p ++ , encoder ) < 0 ) {\n break ;\n }\n }\n mbfl_convert_filter_flush ( encoder ) ;\n if ( pc . status != 0 && mkwidth > 0 ) {\n pc . width += mkwidth ;\n while ( n > 0 ) {\n if ( ( * encoder -> filter_function ) ( * p ++ , encoder ) < 0 ) {\n break ;\n }\n n -- ;\n }\n mbfl_convert_filter_flush ( encoder ) ;\n if ( pc . status != 1 ) {\n pc . status = 10 ;\n pc . device . pos = pc . endpos ;\n mbfl_convert_filter_copy ( pc . decoder_backup , pc . decoder ) ;\n mbfl_convert_filter_reset ( encoder , marker -> no_encoding , mbfl_no_encoding_wchar ) ;\n p = marker -> val ;\n n = marker -> len ;\n while ( n > 0 ) {\n if ( ( * encoder -> filter_function ) ( * p ++ , encoder ) < 0 ) {\n break ;\n }\n n -- ;\n }\n mbfl_convert_filter_flush ( encoder ) ;\n }\n }\n else if ( pc . status != 0 ) {\n pc . device . pos = pc . endpos ;\n mbfl_convert_filter_copy ( pc . decoder_backup , pc . decoder ) ;\n }\n mbfl_convert_filter_flush ( pc . decoder ) ;\n }\n result = mbfl_memory_device_result ( & pc . device , result ) ;\n mbfl_convert_filter_delete ( encoder ) ;\n mbfl_convert_filter_delete ( pc . decoder ) ;\n mbfl_convert_filter_delete ( pc . decoder_backup ) ;\n return result ;\n }"}
{"idx": 3730, "target": 1, "func": "static int rv34_decode_slice ( RV34DecContext * r , int end , const uint8_t * buf , int buf_size ) {\n MpegEncContext * s = & r -> s ;\n GetBitContext * gb = & s -> gb ;\n int mb_pos , slice_type ;\n int res ;\n init_get_bits ( & r -> s . gb , buf , buf_size * 8 ) ;\n res = r -> parse_slice_header ( r , gb , & r -> si ) ;\n if ( res < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Incorrect or unknown slice header\\n\" ) ;\n return - 1 ;\n }\n slice_type = r -> si . type ? r -> si . type : AV_PICTURE_TYPE_I ;\n if ( slice_type != s -> pict_type ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Slice type mismatch\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n r -> si . end = end ;\n s -> qscale = r -> si . quant ;\n s -> mb_num_left = r -> si . end - r -> si . start ;\n r -> s . mb_skip_run = 0 ;\n mb_pos = s -> mb_x + s -> mb_y * s -> mb_width ;\n if ( r -> si . start != mb_pos ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Slice indicates MB offset %d, got %d\\n\" , r -> si . start , mb_pos ) ;\n s -> mb_x = r -> si . start % s -> mb_width ;\n s -> mb_y = r -> si . start / s -> mb_width ;\n }\n memset ( r -> intra_types_hist , - 1 , r -> intra_types_stride * 4 * 2 * sizeof ( * r -> intra_types_hist ) ) ;\n s -> first_slice_line = 1 ;\n s -> resync_mb_x = s -> mb_x ;\n s -> resync_mb_y = s -> mb_y ;\n ff_init_block_index ( s ) ;\n while ( ! check_slice_end ( r , s ) ) {\n ff_update_block_index ( s ) ;\n if ( r -> si . type ) res = rv34_decode_inter_macroblock ( r , r -> intra_types + s -> mb_x * 4 + 4 ) ;\n else res = rv34_decode_intra_macroblock ( r , r -> intra_types + s -> mb_x * 4 + 4 ) ;\n if ( res < 0 ) {\n ff_er_add_slice ( & s -> er , s -> resync_mb_x , s -> resync_mb_y , s -> mb_x - 1 , s -> mb_y , ER_MB_ERROR ) ;\n return - 1 ;\n }\n if ( ++ s -> mb_x == s -> mb_width ) {\n s -> mb_x = 0 ;\n s -> mb_y ++ ;\n ff_init_block_index ( s ) ;\n memmove ( r -> intra_types_hist , r -> intra_types , r -> intra_types_stride * 4 * sizeof ( * r -> intra_types_hist ) ) ;\n memset ( r -> intra_types , - 1 , r -> intra_types_stride * 4 * sizeof ( * r -> intra_types_hist ) ) ;\n if ( r -> loop_filter && s -> mb_y >= 2 ) r -> loop_filter ( r , s -> mb_y - 2 ) ;\n if ( HAVE_THREADS && ( s -> avctx -> active_thread_type & FF_THREAD_FRAME ) ) ff_thread_report_progress ( & s -> current_picture_ptr -> f , s -> mb_y - 2 , 0 ) ;\n }\n if ( s -> mb_x == s -> resync_mb_x ) s -> first_slice_line = 0 ;\n s -> mb_num_left -- ;\n }\n ff_er_add_slice ( & s -> er , s -> resync_mb_x , s -> resync_mb_y , s -> mb_x - 1 , s -> mb_y , ER_MB_END ) ;\n return s -> mb_y == s -> mb_height ;\n }"}
{"idx": 3731, "target": 0, "func": "static void dissect_q931_information_rate_ie ( tvbuff_t * tvb , packet_info * pinfo , int offset , int len , proto_tree * tree , proto_item * item ) {\n if ( len != 4 ) {\n expert_add_info_format ( pinfo , item , & ei_q931_invalid_length , \"Information rate: length is %d, should be 4\" , len ) ;\n return ;\n }\n proto_tree_add_item ( tree , hf_q931_information_rate_incoming , tvb , offset + 0 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_q931_information_rate_outgoing , tvb , offset + 1 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_q931_information_rate_minimum_incoming , tvb , offset + 2 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_q931_information_rate_minimum_outgoing , tvb , offset + 3 , 1 , ENC_BIG_ENDIAN ) ;\n }"}
{"idx": 3732, "target": 0, "func": "GType hb_gobject_ ## name ## _get_type ( void ) \\ {\n static gsize type_id = 0 ;\n if ( g_once_init_enter ( & type_id ) ) {\n GType id = g_boxed_type_register_static ( g_intern_static_string ( \"hb_\" # name \"_t\" ) , ( GBoxedCopyFunc ) copy_func , ( GBoxedFreeFunc ) free_func ) ;\n g_once_init_leave ( & type_id , id ) ;\n }\n return type_id ;\n \\ }\n # define HB_DEFINE_OBJECT_TYPE ( name ) HB_DEFINE_BOXED_TYPE ( name , hb_ ## name ## _reference , hb_ ## name ## _destroy ) ;\n # define HB_DEFINE_VALUE_TYPE ( name ) static hb_ ## name ## _t * _hb_ ## name ## _reference ( const hb_ ## name ## _t * l ) {\n hb_ ## name ## _t * c = ( hb_ ## name ## _t * ) calloc ( 1 , sizeof ( hb_ ## name ## _t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * l ;\n return c ;\n }\n static void _hb_ ## name ## _destroy ( hb_ ## name ## _t * l ) {\n free ( l ) ;\n }\n HB_DEFINE_BOXED_TYPE ( name , _hb_ ## name ## _reference , _hb_ ## name ## _destroy ) ;\n HB_DEFINE_OBJECT_TYPE ( buffer ) HB_DEFINE_OBJECT_TYPE ( blob ) HB_DEFINE_OBJECT_TYPE ( face ) HB_DEFINE_OBJECT_TYPE ( font ) HB_DEFINE_OBJECT_TYPE ( font_funcs ) HB_DEFINE_OBJECT_TYPE ( set ) HB_DEFINE_OBJECT_TYPE ( shape_plan )"}
{"idx": 3733, "target": 0, "func": "static int selinux_inode_init_security ( struct inode * inode , struct inode * dir , const struct qstr * qstr , const char * * name , void * * value , size_t * len ) {\n const struct task_security_struct * tsec = current_security ( ) ;\n struct superblock_security_struct * sbsec ;\n u32 sid , newsid , clen ;\n int rc ;\n char * context ;\n sbsec = dir -> i_sb -> s_security ;\n sid = tsec -> sid ;\n newsid = tsec -> create_sid ;\n rc = selinux_determine_inode_label ( current_security ( ) , dir , qstr , inode_mode_to_security_class ( inode -> i_mode ) , & newsid ) ;\n if ( rc ) return rc ;\n if ( sbsec -> flags & SE_SBINITIALIZED ) {\n struct inode_security_struct * isec = inode -> i_security ;\n isec -> sclass = inode_mode_to_security_class ( inode -> i_mode ) ;\n isec -> sid = newsid ;\n isec -> initialized = LABEL_INITIALIZED ;\n }\n if ( ! ss_initialized || ! ( sbsec -> flags & SBLABEL_MNT ) ) return - EOPNOTSUPP ;\n if ( name ) * name = XATTR_SELINUX_SUFFIX ;\n if ( value && len ) {\n rc = security_sid_to_context_force ( newsid , & context , & clen ) ;\n if ( rc ) return rc ;\n * value = context ;\n * len = clen ;\n }\n return 0 ;\n }"}
{"idx": 3734, "target": 0, "func": "void xps_parse_matrix_transform ( xps_document * doc , fz_xml * root , fz_matrix * matrix ) {\n char * transform ;\n * matrix = fz_identity ;\n if ( ! strcmp ( fz_xml_tag ( root ) , \"MatrixTransform\" ) ) {\n transform = fz_xml_att ( root , \"Matrix\" ) ;\n if ( transform ) xps_parse_render_transform ( doc , transform , matrix ) ;\n }\n }"}
{"idx": 3735, "target": 0, "func": "static void work_around_broken_dhclient ( struct virtio_net_hdr * hdr , const uint8_t * buf , size_t size ) {\n if ( ( hdr -> flags & VIRTIO_NET_HDR_F_NEEDS_CSUM ) && ( size > 27 && size < 1500 ) && ( buf [ 12 ] == 0x08 && buf [ 13 ] == 0x00 ) && ( buf [ 23 ] == 17 ) && ( buf [ 34 ] == 0 && buf [ 35 ] == 67 ) ) {\n net_checksum_calculate ( ( uint8_t * ) buf , size ) ;\n hdr -> flags &= ~ VIRTIO_NET_HDR_F_NEEDS_CSUM ;\n }\n }"}
{"idx": 3736, "target": 0, "func": "static void dissect_diameter_other_vendor_exp_res ( tvbuff_t * tvb , proto_tree * tree , diam_sub_dis_t * diam_sub_dis ) {\n proto_item * pi ;\n if ( tree ) {\n pi = proto_tree_add_item ( tree , hf_diameter_other_vendor_exp_res , tvb , 0 , 4 , ENC_BIG_ENDIAN ) ;\n diam_sub_dis -> avp_str = ( char * ) wmem_alloc ( wmem_packet_scope ( ) , ITEM_LABEL_LENGTH + 1 ) ;\n proto_item_fill_label ( PITEM_FINFO ( pi ) , diam_sub_dis -> avp_str ) ;\n diam_sub_dis -> avp_str = strstr ( diam_sub_dis -> avp_str , \": \" ) + 2 ;\n }\n }"}
{"idx": 3737, "target": 0, "func": "TSReturnCode TSHttpTxnTransformRespGet ( TSHttpTxn txnp , TSMBuffer * bufp , TSMLoc * obj ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n HTTPHdr * hptr = & ( sm -> t_state . hdr_info . transform_response ) ;\n if ( hptr -> valid ( ) ) {\n * ( reinterpret_cast < HTTPHdr * * > ( bufp ) ) = hptr ;\n * obj = reinterpret_cast < TSMLoc > ( hptr -> m_http ) ;\n return sdk_sanity_check_mbuffer ( * bufp ) ;\n }\n return TS_ERROR ;\n }"}
{"idx": 3738, "target": 0, "func": "static cmsBool SaveDescription ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsMLU * Text ) {\n if ( self -> ICCVersion < 0x4000000 ) {\n if ( ! _cmsWriteTypeBase ( io , cmsSigTextDescriptionType ) ) return FALSE ;\n return Type_Text_Description_Write ( self , io , Text , 1 ) ;\n }\n else {\n if ( ! _cmsWriteTypeBase ( io , cmsSigMultiLocalizedUnicodeType ) ) return FALSE ;\n return Type_MLU_Write ( self , io , Text , 1 ) ;\n }\n }"}
{"idx": 3739, "target": 0, "func": "int compare_key_tok_text ( const void * a1 , const void * a2 ) {\n const struct key_tok * p1 = a1 ;\n const struct key_tok * p2 = a2 ;\n return strcmp ( p1 -> key , p2 -> key ) ;\n }"}
{"idx": 3740, "target": 0, "func": "static void dissect_rsvp_time_values ( proto_item * ti , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int type ) {\n int offset2 = offset + 4 ;\n switch ( type ) {\n case 1 : proto_tree_add_uint ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type ) ;\n proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_refresh_interval , tvb , offset2 , 4 , tvb_get_ntohl ( tvb , offset2 ) , \"%u ms (%u seconds)\" , tvb_get_ntohl ( tvb , offset2 ) , tvb_get_ntohl ( tvb , offset2 ) / 1000 ) ;\n proto_item_set_text ( ti , \"TIME VALUES: %d ms\" , tvb_get_ntohl ( tvb , offset2 ) ) ;\n break ;\n default : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"Unknown (%u)\" , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_time_values_data , tvb , offset2 , obj_length - 4 , ENC_NA ) ;\n break ;\n }\n }"}
{"idx": 3741, "target": 0, "func": "err_status_t srtp_unprotect ( srtp_ctx_t * ctx , void * srtp_hdr , int * pkt_octet_len ) {\n srtp_hdr_t * hdr = ( srtp_hdr_t * ) srtp_hdr ;\n uint32_t * enc_start ;\n uint32_t * auth_start ;\n unsigned int enc_octet_len = 0 ;\n uint8_t * auth_tag = NULL ;\n xtd_seq_num_t est ;\n int delta ;\n v128_t iv ;\n err_status_t status ;\n srtp_stream_ctx_t * stream ;\n uint8_t tmp_tag [ SRTP_MAX_TAG_LEN ] ;\n int tag_len , prefix_len ;\n debug_print ( mod_srtp , \"function srtp_unprotect\" , NULL ) ;\n status = srtp_validate_rtp_header ( srtp_hdr , pkt_octet_len ) ;\n if ( status ) return status ;\n if ( * pkt_octet_len < octets_in_rtp_header ) return err_status_bad_param ;\n stream = srtp_get_stream ( ctx , hdr -> ssrc ) ;\n if ( stream == NULL ) {\n if ( ctx -> stream_template != NULL ) {\n stream = ctx -> stream_template ;\n debug_print ( mod_srtp , \"using provisional stream (SSRC: 0x%08x)\" , hdr -> ssrc ) ;\n # ifdef NO_64BIT_MATH est = ( xtd_seq_num_t ) make64 ( 0 , ntohs ( hdr -> seq ) ) ;\n delta = low32 ( est ) ;\n # else est = ( xtd_seq_num_t ) ntohs ( hdr -> seq ) ;\n delta = ( int ) est ;\n # endif }\n else {\n return err_status_no_ctx ;\n }\n }\n else {\n delta = rdbx_estimate_index ( & stream -> rtp_rdbx , & est , ntohs ( hdr -> seq ) ) ;\n status = rdbx_check ( & stream -> rtp_rdbx , delta ) ;\n if ( status ) return status ;\n }\n # ifdef NO_64BIT_MATH debug_print2 ( mod_srtp , \"estimated u_packet index: %08x%08x\" , high32 ( est ) , low32 ( est ) ) ;\n # else debug_print ( mod_srtp , \"estimated u_packet index: %016llx\" , est ) ;\n # endif if ( stream -> rtp_cipher -> algorithm == AES_128_GCM || stream -> rtp_cipher -> algorithm == AES_256_GCM ) {\n return srtp_unprotect_aead ( ctx , stream , delta , est , srtp_hdr , ( unsigned int * ) pkt_octet_len ) ;\n }\n tag_len = auth_get_tag_length ( stream -> rtp_auth ) ;\n if ( stream -> rtp_cipher -> type -> id == AES_ICM || stream -> rtp_cipher -> type -> id == AES_256_ICM ) {\n iv . v32 [ 0 ] = 0 ;\n iv . v32 [ 1 ] = hdr -> ssrc ;\n # ifdef NO_64BIT_MATH iv . v64 [ 1 ] = be64_to_cpu ( make64 ( ( high32 ( est ) << 16 ) | ( low32 ( est ) >> 16 ) , low32 ( est ) << 16 ) ) ;\n # else iv . v64 [ 1 ] = be64_to_cpu ( est << 16 ) ;\n # endif status = cipher_set_iv ( stream -> rtp_cipher , & iv , direction_decrypt ) ;\n }\n else {\n # ifdef NO_64BIT_MATH iv . v32 [ 0 ] = 0 ;\n iv . v32 [ 1 ] = 0 ;\n # else iv . v64 [ 0 ] = 0 ;\n # endif iv . v64 [ 1 ] = be64_to_cpu ( est ) ;\n status = cipher_set_iv ( stream -> rtp_cipher , & iv , direction_decrypt ) ;\n }\n if ( status ) return err_status_cipher_fail ;\n # ifdef NO_64BIT_MATH est = be64_to_cpu ( make64 ( ( high32 ( est ) << 16 ) | ( low32 ( est ) >> 16 ) , low32 ( est ) << 16 ) ) ;\n # else est = be64_to_cpu ( est << 16 ) ;\n # endif if ( stream -> rtp_services & sec_serv_conf ) {\n enc_start = ( uint32_t * ) hdr + uint32s_in_rtp_header + hdr -> cc ;\n if ( hdr -> x == 1 ) {\n srtp_hdr_xtnd_t * xtn_hdr = ( srtp_hdr_xtnd_t * ) enc_start ;\n enc_start += ( ntohs ( xtn_hdr -> length ) + 1 ) ;\n }\n if ( ! ( ( uint8_t * ) enc_start < ( uint8_t * ) hdr + ( * pkt_octet_len - tag_len ) ) ) return err_status_parse_err ;\n enc_octet_len = ( uint32_t ) ( * pkt_octet_len - tag_len - ( ( uint8_t * ) enc_start - ( uint8_t * ) hdr ) ) ;\n }\n else {\n enc_start = NULL ;\n }\n if ( stream -> rtp_services & sec_serv_auth ) {\n auth_start = ( uint32_t * ) hdr ;\n auth_tag = ( uint8_t * ) hdr + * pkt_octet_len - tag_len ;\n }\n else {\n auth_start = NULL ;\n auth_tag = NULL ;\n }\n if ( auth_start ) {\n if ( stream -> rtp_auth -> prefix_len != 0 ) {\n prefix_len = auth_get_prefix_length ( stream -> rtp_auth ) ;\n status = cipher_output ( stream -> rtp_cipher , tmp_tag , prefix_len ) ;\n debug_print ( mod_srtp , \"keystream prefix: %s\" , octet_string_hex_string ( tmp_tag , prefix_len ) ) ;\n if ( status ) return err_status_cipher_fail ;\n }\n status = auth_start ( stream -> rtp_auth ) ;\n if ( status ) return status ;\n status = auth_update ( stream -> rtp_auth , ( uint8_t * ) auth_start , * pkt_octet_len - tag_len ) ;\n status = auth_compute ( stream -> rtp_auth , ( uint8_t * ) & est , 4 , tmp_tag ) ;\n debug_print ( mod_srtp , \"computed auth tag: %s\" , octet_string_hex_string ( tmp_tag , tag_len ) ) ;\n debug_print ( mod_srtp , \"packet auth tag: %s\" , octet_string_hex_string ( auth_tag , tag_len ) ) ;\n if ( status ) return err_status_auth_fail ;\n if ( octet_string_is_eq ( tmp_tag , auth_tag , tag_len ) ) return err_status_auth_fail ;\n }\n switch ( key_limit_update ( stream -> limit ) ) {\n case key_event_normal : break ;\n case key_event_soft_limit : srtp_handle_event ( ctx , stream , event_key_soft_limit ) ;\n break ;\n case key_event_hard_limit : srtp_handle_event ( ctx , stream , event_key_hard_limit ) ;\n return err_status_key_expired ;\n default : break ;\n }\n if ( enc_start ) {\n status = cipher_decrypt ( stream -> rtp_cipher , ( uint8_t * ) enc_start , & enc_octet_len ) ;\n if ( status ) return err_status_cipher_fail ;\n }\n if ( stream -> direction != dir_srtp_receiver ) {\n if ( stream -> direction == dir_unknown ) {\n stream -> direction = dir_srtp_receiver ;\n }\n else {\n srtp_handle_event ( ctx , stream , event_ssrc_collision ) ;\n }\n }\n if ( stream == ctx -> stream_template ) {\n srtp_stream_ctx_t * new_stream ;\n status = srtp_stream_clone ( ctx -> stream_template , hdr -> ssrc , & new_stream ) ;\n if ( status ) return status ;\n new_stream -> next = ctx -> stream_list ;\n ctx -> stream_list = new_stream ;\n stream = new_stream ;\n }\n rdbx_add_index ( & stream -> rtp_rdbx , delta ) ;\n * pkt_octet_len -= tag_len ;\n return err_status_ok ;\n }"}
{"idx": 3742, "target": 0, "func": "int write_dict ( PyObject * self , buffer_t buffer , PyObject * dict , unsigned char check_keys , unsigned char uuid_subtype , unsigned char top_level ) {\n PyObject * key ;\n PyObject * iter ;\n char zero = 0 ;\n int length ;\n int length_location ;\n if ( ! PyDict_Check ( dict ) ) {\n PyObject * repr = PyObject_Repr ( dict ) ;\n # if PY_MAJOR_VERSION >= 3 PyObject * errmsg = PyUnicode_FromString ( \"encoder expected a mapping type but got: \" ) ;\n PyObject * error = PyUnicode_Concat ( errmsg , repr ) ;\n PyErr_SetObject ( PyExc_TypeError , error ) ;\n Py_DECREF ( error ) ;\n Py_DECREF ( repr ) ;\n # else PyObject * errmsg = PyString_FromString ( \"encoder expected a mapping type but got: \" ) ;\n PyString_ConcatAndDel ( & errmsg , repr ) ;\n PyErr_SetString ( PyExc_TypeError , PyString_AsString ( errmsg ) ) ;\n # endif Py_DECREF ( errmsg ) ;\n return 0 ;\n }\n length_location = buffer_save_space ( buffer , 4 ) ;\n if ( length_location == - 1 ) {\n PyErr_NoMemory ( ) ;\n return 0 ;\n }\n if ( top_level ) {\n PyObject * _id = PyDict_GetItemString ( dict , \"_id\" ) ;\n if ( _id ) {\n if ( ! write_pair ( self , buffer , \"_id\" , 3 , _id , 0 , uuid_subtype , 1 ) ) {\n return 0 ;\n }\n }\n }\n iter = PyObject_GetIter ( dict ) ;\n if ( iter == NULL ) {\n return 0 ;\n }\n while ( ( key = PyIter_Next ( iter ) ) != NULL ) {\n PyObject * value = PyDict_GetItem ( dict , key ) ;\n if ( ! value ) {\n PyErr_SetObject ( PyExc_KeyError , key ) ;\n Py_DECREF ( key ) ;\n Py_DECREF ( iter ) ;\n return 0 ;\n }\n if ( ! decode_and_write_pair ( self , buffer , key , value , check_keys , uuid_subtype , top_level ) ) {\n Py_DECREF ( key ) ;\n Py_DECREF ( iter ) ;\n return 0 ;\n }\n Py_DECREF ( key ) ;\n }\n Py_DECREF ( iter ) ;\n if ( ! buffer_write_bytes ( buffer , & zero , 1 ) ) {\n return 0 ;\n }\n length = buffer_get_position ( buffer ) - length_location ;\n memcpy ( buffer_get_buffer ( buffer ) + length_location , & length , 4 ) ;\n return 1 ;\n }"}
{"idx": 3743, "target": 0, "func": "static void vmsvga_reset ( DeviceState * dev ) {\n struct pci_vmsvga_state_s * pci = VMWARE_SVGA ( dev ) ;\n struct vmsvga_state_s * s = & pci -> chip ;\n s -> index = 0 ;\n s -> enable = 0 ;\n s -> config = 0 ;\n s -> svgaid = SVGA_ID ;\n s -> cursor . on = 0 ;\n s -> redraw_fifo_first = 0 ;\n s -> redraw_fifo_last = 0 ;\n s -> syncing = 0 ;\n vga_dirty_log_start ( & s -> vga ) ;\n }"}
{"idx": 3744, "target": 0, "func": "int psf_is_pipe ( SF_PRIVATE * psf ) {\n struct stat statbuf ;\n if ( psf -> virtual_io ) return SF_FALSE ;\n if ( fstat ( psf -> file . filedes , & statbuf ) == - 1 ) {\n psf_log_syserr ( psf , errno ) ;\n return SF_TRUE ;\n }\n ;\n if ( S_ISFIFO ( statbuf . st_mode ) || S_ISSOCK ( statbuf . st_mode ) ) return SF_TRUE ;\n return SF_FALSE ;\n }"}
{"idx": 3745, "target": 0, "func": "static inline void qemu_get_be32s ( QEMUFile * f , uint32_t * pv ) {\n * pv = qemu_get_be32 ( f ) ;\n }"}
{"idx": 3746, "target": 0, "func": "static int zeqproc ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n ref2_t stack [ MAX_DEPTH + 1 ] ;\n ref2_t * top = stack ;\n if ( ref_stack_count ( & o_stack ) < 2 ) return_error ( gs_error_stackunderflow ) ;\n if ( ! r_is_array ( op - 1 ) || ! r_is_array ( op ) ) {\n return_error ( gs_error_typecheck ) ;\n }\n make_array ( & stack [ 0 ] . proc1 , 0 , 1 , op - 1 ) ;\n make_array ( & stack [ 0 ] . proc2 , 0 , 1 , op ) ;\n for ( ;\n ;\n ) {\n long i ;\n if ( r_size ( & top -> proc1 ) == 0 ) {\n if ( top == stack ) {\n make_true ( op - 1 ) ;\n pop ( 1 ) ;\n return 0 ;\n }\n -- top ;\n continue ;\n }\n i = r_size ( & top -> proc1 ) - 1 ;\n array_get ( imemory , & top -> proc1 , i , & top [ 1 ] . proc1 ) ;\n array_get ( imemory , & top -> proc2 , i , & top [ 1 ] . proc2 ) ;\n r_dec_size ( & top -> proc1 , 1 ) ;\n ++ top ;\n # if 0 if ( r_has_attr ( & top -> proc1 , a_executable ) != r_has_attr ( & top -> proc2 , a_executable ) ) break ;\n # endif if ( obj_eq ( imemory , & top -> proc1 , & top -> proc2 ) ) {\n if ( r_type ( & top -> proc1 ) != r_type ( & top -> proc2 ) && ( r_type ( & top -> proc1 ) == t_name || r_type ( & top -> proc2 ) == t_name ) ) break ;\n -- top ;\n continue ;\n }\n if ( r_is_array ( & top -> proc1 ) && r_is_array ( & top -> proc2 ) && r_size ( & top -> proc1 ) == r_size ( & top -> proc2 ) && top < stack + ( MAX_DEPTH - 1 ) ) {\n continue ;\n }\n break ;\n }\n make_false ( op - 1 ) ;\n pop ( 1 ) ;\n return 0 ;\n }"}
{"idx": 3747, "target": 0, "func": "void vp9_update_mbgraph_stats ( VP9_COMP * cpi ) {\n VP9_COMMON * const cm = & cpi -> common ;\n int i , n_frames = vp9_lookahead_depth ( cpi -> lookahead ) ;\n YV12_BUFFER_CONFIG * golden_ref = get_ref_frame_buffer ( cpi , GOLDEN_FRAME ) ;\n if ( n_frames <= cpi -> rc . frames_till_gf_update_due ) return ;\n if ( n_frames > MAX_LAG_BUFFERS ) n_frames = MAX_LAG_BUFFERS ;\n cpi -> mbgraph_n_frames = n_frames ;\n for ( i = 0 ;\n i < n_frames ;\n i ++ ) {\n MBGRAPH_FRAME_STATS * frame_stats = & cpi -> mbgraph_stats [ i ] ;\n vpx_memset ( frame_stats -> mb_stats , 0 , cm -> mb_rows * cm -> mb_cols * sizeof ( * cpi -> mbgraph_stats [ i ] . mb_stats ) ) ;\n }\n for ( i = 0 ;\n i < n_frames ;\n i ++ ) {\n MBGRAPH_FRAME_STATS * frame_stats = & cpi -> mbgraph_stats [ i ] ;\n struct lookahead_entry * q_cur = vp9_lookahead_peek ( cpi -> lookahead , i ) ;\n assert ( q_cur != NULL ) ;\n update_mbgraph_frame_stats ( cpi , frame_stats , & q_cur -> img , golden_ref , cpi -> Source ) ;\n }\n vp9_clear_system_state ( ) ;\n separate_arf_mbs ( cpi ) ;\n }"}
{"idx": 3748, "target": 0, "func": "extern int name ( int , locale_t ) __THROW __exctype_l ( isalnum_l ) ;\n __exctype_l ( isalpha_l ) ;\n __exctype_l ( iscntrl_l ) ;\n __exctype_l ( isdigit_l ) ;\n __exctype_l ( islower_l )"}
{"idx": 3749, "target": 0, "func": "void PPC_init_hw ( uint32_t mem_size , uint32_t kernel_addr , uint32_t kernel_size , uint32_t stack_addr , int boot_device , const unsigned char * initrd_file ) {\n CPUPPCState * env = global_env ;\n uint8_t * p ;\n # if ! defined ( USE_OPEN_FIRMWARE ) char * tmp ;\n uint32_t tmpi [ 2 ] ;\n # endif printf ( \"RAM size: %u 0x%08x (%u)\\n\" , mem_size , mem_size , mem_size >> 20 ) ;\n # if defined ( USE_OPEN_FIRMWARE ) setup_memory ( env , mem_size ) ;\n # endif {\n # if 1 uint32_t offset = get_le32 ( phys_ram_base + kernel_addr ) ;\n # else uint32_t offset = 12 ;\n # endif env -> nip = kernel_addr + offset ;\n printf ( \"Start address: 0x%08x\\n\" , env -> nip ) ;\n }\n msr_ee = 0 ;\n msr_fp = 1 ;\n msr_pr = 0 ;\n msr_me = 1 ;\n msr_fe0 = msr_fe1 = 0 ;\n msr_ip = 0 ;\n msr_ir = msr_dr = 1 ;\n msr_le = msr_ile = 0 ;\n env -> gpr [ 1 ] = stack_addr ;\n env -> gpr [ 2 ] = 0 ;\n env -> gpr [ 8 ] = kernel_addr ;\n env -> decr = 0xFFFFFFFF ;\n p = phys_ram_base + kernel_addr ;\n # if ! defined ( USE_OPEN_FIRMWARE ) setup_BAT ( env , 0 , 0x00000000 , 0x00000000 , mem_size , 1 , 0 , 2 ) ;\n put_long ( p , 0xdeadc0de ) ;\n p = phys_ram_base + stack_addr ;\n put_long ( p , stack_addr ) ;\n p -= 32 ;\n env -> gpr [ 1 ] -= 32 ;\n env -> gpr [ 3 ] = 0 ;\n if ( initrd_file != NULL ) {\n int size ;\n env -> gpr [ 4 ] = ( kernel_addr + kernel_size + 4095 ) & ~ 4095 ;\n size = load_initrd ( initrd_file , phys_ram_base + env -> gpr [ 4 ] ) ;\n if ( size < 0 ) {\n env -> gpr [ 4 ] = env -> gpr [ 5 ] = 0 ;\n }\n else {\n env -> gpr [ 5 ] = size ;\n boot_device = 'e' ;\n }\n printf ( \"Initrd loaded at 0x%08x (%d) (0x%08x 0x%08x)\\n\" , env -> gpr [ 4 ] , env -> gpr [ 5 ] , kernel_addr , kernel_size ) ;\n }\n else {\n env -> gpr [ 4 ] = env -> gpr [ 5 ] = 0 ;\n }\n # if 0 p = phys_ram_base + kernel_addr + kernel_size + ( 1 << 20 ) - 1 ) & ~ ( ( 1 << 20 ) - 1 ) ;\n # else p = phys_ram_base + kernel_addr + 0x400000 ;\n # endif if ( loglevel > 0 ) {\n fprintf ( logfile , \"bootinfos: %p 0x%08x\\n\" , p , ( int ) ( p - phys_ram_base ) ) ;\n }\n else {\n printf ( \"bootinfos: %p 0x%08x\\n\" , p , ( int ) ( p - phys_ram_base ) ) ;\n }\n # if 0 sprintf ( p + 0x1000 , \"console=ttyS0,9600 root=%02x%02x mem=%dM\" , boot_devs [ boot_device - 'a' ] . major , boot_devs [ boot_device - 'a' ] . minor , mem_size >> 20 ) ;\n # else sprintf ( p + 0x1000 , \"console=ttyS0,9600 console=tty0 root=%s mem=%dM\" , boot_devs [ boot_device - 'a' ] . name , mem_size >> 20 ) ;\n # endif env -> gpr [ 6 ] = p + 0x1000 - phys_ram_base ;\n env -> gpr [ 7 ] = env -> gpr [ 6 ] + strlen ( p + 0x1000 ) ;\n if ( loglevel > 0 ) {\n fprintf ( logfile , \"cmdline: %p 0x%08x [%s]\\n\" , p + 0x1000 , env -> gpr [ 6 ] , p + 0x1000 ) ;\n }\n else {\n printf ( \"cmdline: %p 0x%08x [%s]\\n\" , p + 0x1000 , env -> gpr [ 6 ] , p + 0x1000 ) ;\n }\n p = set_bootinfo_tag ( p , 0x1010 , 0 , 0 ) ;\n p = set_bootinfo_tag ( p , 0x1012 , env -> gpr [ 7 ] - env -> gpr [ 6 ] , env -> gpr [ 6 ] + phys_ram_base ) ;\n tmp = ( void * ) tmpi ;\n tmp [ 0 ] = ( mem_size >> 24 ) & 0xFF ;\n tmp [ 1 ] = ( mem_size >> 16 ) & 0xFF ;\n tmp [ 2 ] = ( mem_size >> 8 ) & 0xFF ;\n tmp [ 3 ] = mem_size & 0xFF ;\n p = set_bootinfo_tag ( p , 0x1017 , 4 , tmpi ) ;\n tmp [ 0 ] = ( env -> gpr [ 4 ] >> 24 ) & 0xFF ;\n tmp [ 1 ] = ( env -> gpr [ 4 ] >> 16 ) & 0xFF ;\n tmp [ 2 ] = ( env -> gpr [ 4 ] >> 8 ) & 0xFF ;\n tmp [ 3 ] = env -> gpr [ 4 ] & 0xFF ;\n tmp [ 4 ] = ( env -> gpr [ 5 ] >> 24 ) & 0xFF ;\n tmp [ 5 ] = ( env -> gpr [ 5 ] >> 16 ) & 0xFF ;\n tmp [ 6 ] = ( env -> gpr [ 5 ] >> 8 ) & 0xFF ;\n tmp [ 7 ] = env -> gpr [ 5 ] & 0xFF ;\n p = set_bootinfo_tag ( p , 0x1014 , 8 , tmpi ) ;\n env -> gpr [ 4 ] = env -> gpr [ 5 ] = 0 ;\n p = set_bootinfo_tag ( p , 0x1011 , 0 , 0 ) ;\n # else setup_BAT ( env , 0 , 0x01000000 , kernel_addr , 0x00400000 , 1 , 0 , 2 ) ;\n {\n # if 0 uint32_t offset = get_le32 ( phys_ram_base + kernel_addr ) ;\n # else uint32_t offset = 12 ;\n # endif env -> nip = 0x01000000 | ( kernel_addr + offset ) ;\n printf ( \"Start address: 0x%08x\\n\" , env -> nip ) ;\n }\n env -> gpr [ 1 ] = env -> nip + ( 1 << 22 ) ;\n p = phys_ram_base + stack_addr ;\n put_long ( p - 32 , stack_addr ) ;\n env -> gpr [ 1 ] -= 32 ;\n printf ( \"Kernel starts at 0x%08x stack 0x%08x\\n\" , env -> nip , env -> gpr [ 1 ] ) ;\n setup_BAT ( env , 1 , 0x00000000 , 0x00000000 , 0x010000000 , 1 , 1 , 2 ) ;\n setup_BAT ( env , 2 , 0xFFFE0000 , mem_size - 131072 , 131072 , 1 , 0 , 1 ) ;\n {\n char * p ;\n p = ( char * ) phys_ram_base + mem_size - 131072 ;\n * p ++ = 0x18 ;\n * p ++ = 0x00 ;\n * p ++ = 0x00 ;\n * p ++ = 0x02 ;\n * p ++ = 0x4E ;\n * p ++ = 0x80 ;\n * p ++ = 0x00 ;\n * p ++ = 0x20 ;\n }\n env -> gpr [ 5 ] = 0xFFFE0000 ;\n {\n OF_transl_t translations [ 3 ] = {\n {\n 0x01000000 , 0x00400000 , kernel_addr , 0x00000002 , }\n , {\n 0x00000000 , 0x01000000 , 0x00000000 , 0x00000002 , }\n , {\n 0xFFFE0000 , 0x00020000 , mem_size - ( 128 * 1024 ) , 0x00000001 , }\n , }\n ;\n OF_register_translations ( 3 , translations ) ;\n }\n OF_register_bus ( \"isa\" , \"isa\" ) ;\n OF_register_serial ( \"isa\" , \"serial\" , 4 , 0x3f8 ) ;\n OF_register_stdio ( \"serial\" , \"serial\" ) ;\n RTAS_init ( ) ;\n # if 0 # if 0 p = phys_ram_base + kernel_addr + kernel_size + ( 1 << 20 ) - 1 ) & ~ ( ( 1 << 20 ) - 1 ) ;\n # else p = phys_ram_base + kernel_addr + 0x400000 ;\n # endif # if 1 sprintf ( p , \"console=ttyS0,9600 root=%02x%02x mem=%dM\" , boot_devs [ boot_device - 'a' ] . major , boot_devs [ boot_device - 'a' ] . minor , mem_size >> 20 ) ;\n # else sprintf ( p , \"console=ttyS0,9600 root=%s mem=%dM ne2000=0x300,9\" , boot_devs [ boot_device - 'a' ] . name , mem_size >> 20 ) ;\n # endif OF_register_bootargs ( p ) ;\n # endif # endif }"}
{"idx": 3750, "target": 0, "func": "int archive_read_support_compression_compress ( struct archive * a ) {\n return archive_read_support_filter_compress ( a ) ;\n }"}
{"idx": 3751, "target": 0, "func": "static int check_ctrlrecip ( struct usb_dev_state * ps , unsigned int requesttype , unsigned int request , unsigned int index ) {\n int ret = 0 ;\n struct usb_host_interface * alt_setting ;\n if ( ps -> dev -> state != USB_STATE_UNAUTHENTICATED && ps -> dev -> state != USB_STATE_ADDRESS && ps -> dev -> state != USB_STATE_CONFIGURED ) return - EHOSTUNREACH ;\n if ( USB_TYPE_VENDOR == ( USB_TYPE_MASK & requesttype ) ) return 0 ;\n if ( requesttype == 0xa1 && request == 0 ) {\n alt_setting = usb_find_alt_setting ( ps -> dev -> actconfig , index >> 8 , index & 0xff ) ;\n if ( alt_setting && alt_setting -> desc . bInterfaceClass == USB_CLASS_PRINTER ) return 0 ;\n }\n index &= 0xff ;\n switch ( requesttype & USB_RECIP_MASK ) {\n case USB_RECIP_ENDPOINT : if ( ( index & ~ USB_DIR_IN ) == 0 ) return 0 ;\n ret = findintfep ( ps -> dev , index ) ;\n if ( ret < 0 ) {\n ret = findintfep ( ps -> dev , index ^ 0x80 ) ;\n if ( ret >= 0 ) dev_info ( & ps -> dev -> dev , \"%s: process %i (%s) requesting ep %02x but needs %02x\\n\" , __func__ , task_pid_nr ( current ) , current -> comm , index , index ^ 0x80 ) ;\n }\n if ( ret >= 0 ) ret = checkintf ( ps , ret ) ;\n break ;\n case USB_RECIP_INTERFACE : ret = checkintf ( ps , index ) ;\n break ;\n }\n return ret ;\n }"}
{"idx": 3752, "target": 0, "func": "TEST_F ( AutocompleteResultTest , SortAndCullWithDemotionsByType ) {\n ACMatches matches ;\n const AutocompleteMatchTestData data [ ] = {\n {\n \"http://history-url/\" , AutocompleteMatchType : : HISTORY_URL }\n , {\n \"http://search-what-you-typed/\" , AutocompleteMatchType : : SEARCH_WHAT_YOU_TYPED }\n , {\n \"http://history-title/\" , AutocompleteMatchType : : HISTORY_TITLE }\n , {\n \"http://search-history/\" , AutocompleteMatchType : : SEARCH_HISTORY }\n , }\n ;\n PopulateAutocompleteMatchesFromTestData ( data , arraysize ( data ) , & matches ) ;\n matches . back ( ) . relevance = 500 ;\n {\n std : : map < std : : string , std : : string > params ;\n params [ std : : string ( OmniboxFieldTrial : : kDemoteByTypeRule ) + \":3:*\" ] = \"1:50,7:100,2:0\" ;\n ASSERT_TRUE ( variations : : AssociateVariationParams ( OmniboxFieldTrial : : kBundledExperimentFieldTrialName , \"A\" , params ) ) ;\n }\n base : : FieldTrialList : : CreateFieldTrial ( OmniboxFieldTrial : : kBundledExperimentFieldTrialName , \"A\" ) ;\n AutocompleteInput input ( base : : string16 ( ) , base : : string16 : : npos , std : : string ( ) , GURL ( ) , OmniboxEventProto : : HOME_PAGE , false , false , false , true , false , TestSchemeClassifier ( ) ) ;\n AutocompleteResult result ;\n result . AppendMatches ( input , matches ) ;\n result . SortAndCull ( input , template_url_service_ . get ( ) ) ;\n ASSERT_EQ ( 3u , result . size ( ) ) ;\n EXPECT_EQ ( \"http://search-what-you-typed/\" , result . match_at ( 0 ) -> destination_url . spec ( ) ) ;\n EXPECT_EQ ( \"http://history-url/\" , result . match_at ( 1 ) -> destination_url . spec ( ) ) ;\n EXPECT_EQ ( \"http://search-history/\" , result . match_at ( 2 ) -> destination_url . spec ( ) ) ;\n }"}
{"idx": 3753, "target": 0, "func": "static int read_inter_segment_id ( VP9_COMMON * const cm , MACROBLOCKD * const xd , int mi_row , int mi_col , vp9_reader * r ) {\n struct segmentation * const seg = & cm -> seg ;\n MB_MODE_INFO * const mbmi = & xd -> mi [ 0 ] . src_mi -> mbmi ;\n const BLOCK_SIZE bsize = mbmi -> sb_type ;\n int predicted_segment_id , segment_id ;\n if ( ! seg -> enabled ) return 0 ;\n predicted_segment_id = vp9_get_segment_id ( cm , cm -> last_frame_seg_map , bsize , mi_row , mi_col ) ;\n if ( ! seg -> update_map ) return predicted_segment_id ;\n if ( seg -> temporal_update ) {\n const vp9_prob pred_prob = vp9_get_pred_prob_seg_id ( seg , xd ) ;\n mbmi -> seg_id_predicted = vp9_read ( r , pred_prob ) ;\n segment_id = mbmi -> seg_id_predicted ? predicted_segment_id : read_segment_id ( r , seg ) ;\n }\n else {\n segment_id = read_segment_id ( r , seg ) ;\n }\n set_segment_id ( cm , bsize , mi_row , mi_col , segment_id ) ;\n return segment_id ;\n }"}
{"idx": 3754, "target": 0, "func": "REGRESSION_TEST ( SDK_API_TSContCreate ) ( RegressionTest * test , int , int * pstatus ) {\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n SDK_ContCreate_test = test ;\n SDK_ContCreate_pstatus = pstatus ;\n TSMutex mutexp = TSMutexCreate ( ) ;\n TSCont contp = TSContCreate ( cont_handler , mutexp ) ;\n if ( TS_SUCCESS == TSMutexLockTry ( mutexp ) ) {\n TSContCall ( contp , ( TSEvent ) 0 , nullptr ) ;\n TSMutexUnlock ( mutexp ) ;\n }\n else {\n SDK_RPRINT ( SDK_ContCreate_test , \"TSContCreate\" , \"TestCase1\" , TC_FAIL , \"continuation creation has problems\" ) ;\n SDK_RPRINT ( SDK_ContCreate_test , \"TSContCall\" , \"TestCase1\" , TC_FAIL , \"continuation has problems\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n }\n TSContDestroy ( contp ) ;\n }"}
{"idx": 3755, "target": 1, "func": "static void update_reference_segmentation_map ( VP9_COMP * cpi ) {\n VP9_COMMON * const cm = & cpi -> common ;\n MODE_INFO * * mi_8x8_ptr = cm -> mi_grid_visible ;\n uint8_t * cache_ptr = cm -> last_frame_seg_map ;\n int row , col ;\n for ( row = 0 ;\n row < cm -> mi_rows ;\n row ++ ) {\n MODE_INFO * * mi_8x8 = mi_8x8_ptr ;\n uint8_t * cache = cache_ptr ;\n for ( col = 0 ;\n col < cm -> mi_cols ;\n col ++ , mi_8x8 ++ , cache ++ ) cache [ 0 ] = mi_8x8 [ 0 ] -> mbmi . segment_id ;\n mi_8x8_ptr += cm -> mi_stride ;\n cache_ptr += cm -> mi_cols ;\n }\n }"}
{"idx": 3756, "target": 0, "func": "void hw_error ( const char * fmt , ... ) {\n va_list ap ;\n CPUArchState * env ;\n CPUState * cpu ;\n va_start ( ap , fmt ) ;\n fprintf ( stderr , \"qemu: hardware error: \" ) ;\n vfprintf ( stderr , fmt , ap ) ;\n fprintf ( stderr , \"\\n\" ) ;\n for ( env = first_cpu ;\n env != NULL ;\n env = env -> next_cpu ) {\n cpu = ENV_GET_CPU ( env ) ;\n fprintf ( stderr , \"CPU #%d:\\n\" , cpu -> cpu_index ) ;\n cpu_dump_state ( cpu , stderr , fprintf , CPU_DUMP_FPU ) ;\n }\n va_end ( ap ) ;\n abort ( ) ;\n }"}
{"idx": 3757, "target": 0, "func": "static const char * html_replace ( char ch , char * buf ) {\n switch ( ch ) {\n case '<' : return \"&lt;\n\" ;\n case '>' : return \"&gt;\n\" ;\n case '\"' : return \"&quot;\n\" ;\n case '\\'' : return \"&#039;\n\" ;\n case '&' : return \"&amp;\n\" ;\n default : break ;\n }\n buf [ 0 ] = ch ;\n buf [ 1 ] = '\\0' ;\n return buf ;\n }"}
{"idx": 3758, "target": 0, "func": "const uint8_t * avpriv_mpv_find_start_code ( const uint8_t * restrict p , const uint8_t * end , uint32_t * restrict state ) {\n int i ;\n assert ( p <= end ) ;\n if ( p >= end ) return end ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n uint32_t tmp = * state << 8 ;\n * state = tmp + * ( p ++ ) ;\n if ( tmp == 0x100 || p == end ) return p ;\n }\n while ( p < end ) {\n if ( p [ - 1 ] > 1 ) p += 3 ;\n else if ( p [ - 2 ] ) p += 2 ;\n else if ( p [ - 3 ] | ( p [ - 1 ] - 1 ) ) p ++ ;\n else {\n p ++ ;\n break ;\n }\n }\n p = FFMIN ( p , end ) - 4 ;\n * state = AV_RB32 ( p ) ;\n return p + 4 ;\n }"}
{"idx": 3759, "target": 0, "func": "static int pfkey_can_dump ( const struct sock * sk ) {\n if ( 3 * atomic_read ( & sk -> sk_rmem_alloc ) <= 2 * sk -> sk_rcvbuf ) return 1 ;\n return 0 ;\n }"}
{"idx": 3760, "target": 1, "func": "void vp9_iwht4x4_16_add_c ( const int16_t * input , uint8_t * dest , int stride ) {\n int i ;\n int16_t output [ 16 ] ;\n int a1 , b1 , c1 , d1 , e1 ;\n const int16_t * ip = input ;\n int16_t * op = output ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n a1 = ip [ 0 ] >> UNIT_QUANT_SHIFT ;\n c1 = ip [ 1 ] >> UNIT_QUANT_SHIFT ;\n d1 = ip [ 2 ] >> UNIT_QUANT_SHIFT ;\n b1 = ip [ 3 ] >> UNIT_QUANT_SHIFT ;\n a1 += c1 ;\n d1 -= b1 ;\n e1 = ( a1 - d1 ) >> 1 ;\n b1 = e1 - b1 ;\n c1 = e1 - c1 ;\n a1 -= b1 ;\n d1 += c1 ;\n op [ 0 ] = a1 ;\n op [ 1 ] = b1 ;\n op [ 2 ] = c1 ;\n op [ 3 ] = d1 ;\n ip += 4 ;\n op += 4 ;\n }\n ip = output ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n a1 = ip [ 4 * 0 ] ;\n c1 = ip [ 4 * 1 ] ;\n d1 = ip [ 4 * 2 ] ;\n b1 = ip [ 4 * 3 ] ;\n a1 += c1 ;\n d1 -= b1 ;\n e1 = ( a1 - d1 ) >> 1 ;\n b1 = e1 - b1 ;\n c1 = e1 - c1 ;\n a1 -= b1 ;\n d1 += c1 ;\n dest [ stride * 0 ] = clip_pixel ( dest [ stride * 0 ] + a1 ) ;\n dest [ stride * 1 ] = clip_pixel ( dest [ stride * 1 ] + b1 ) ;\n dest [ stride * 2 ] = clip_pixel ( dest [ stride * 2 ] + c1 ) ;\n dest [ stride * 3 ] = clip_pixel ( dest [ stride * 3 ] + d1 ) ;\n ip ++ ;\n dest ++ ;\n }\n }"}
{"idx": 3761, "target": 1, "func": "static uint8_t checkBaseExtUnicode ( UCMStates * baseStates , UCMTable * base , UCMTable * ext , UBool moveToExt , UBool intersectBase ) {\n UCMapping * mb , * me , * mbLimit , * meLimit ;\n int32_t cmp ;\n uint8_t result ;\n mb = base -> mappings ;\n mbLimit = mb + base -> mappingsLength ;\n me = ext -> mappings ;\n meLimit = me + ext -> mappingsLength ;\n result = 0 ;\n for ( ;\n ;\n ) {\n for ( ;\n ;\n ) {\n if ( mb == mbLimit ) {\n return result ;\n }\n if ( ( 0 <= mb -> f && mb -> f <= 2 ) || mb -> f == 4 ) {\n break ;\n }\n ++ mb ;\n }\n for ( ;\n ;\n ) {\n if ( me == meLimit ) {\n return result ;\n }\n if ( ( 0 <= me -> f && me -> f <= 2 ) || me -> f == 4 ) {\n break ;\n }\n ++ me ;\n }\n cmp = compareUnicode ( base , mb , ext , me ) ;\n if ( cmp < 0 ) {\n if ( intersectBase && ( intersectBase != 2 || mb -> bLen > 1 ) ) {\n mb -> moveFlag |= UCM_MOVE_TO_EXT ;\n result |= NEEDS_MOVE ;\n }\n else if ( mb -> uLen < me -> uLen && 0 == uprv_memcmp ( UCM_GET_CODE_POINTS ( base , mb ) , UCM_GET_CODE_POINTS ( ext , me ) , 4 * mb -> uLen ) ) {\n if ( moveToExt ) {\n mb -> moveFlag |= UCM_MOVE_TO_EXT ;\n result |= NEEDS_MOVE ;\n }\n else {\n fprintf ( stderr , \"ucm error: the base table contains a mapping whose input sequence\\n\" \" is a prefix of the input sequence of an extension mapping\\n\" ) ;\n ucm_printMapping ( base , mb , stderr ) ;\n ucm_printMapping ( ext , me , stderr ) ;\n result |= HAS_ERRORS ;\n }\n }\n ++ mb ;\n }\n else if ( cmp == 0 ) {\n if ( mb -> f == me -> f && mb -> bLen == me -> bLen && 0 == uprv_memcmp ( UCM_GET_BYTES ( base , mb ) , UCM_GET_BYTES ( ext , me ) , mb -> bLen ) ) {\n me -> moveFlag |= UCM_REMOVE_MAPPING ;\n result |= NEEDS_MOVE ;\n }\n else if ( intersectBase ) {\n mb -> moveFlag |= UCM_MOVE_TO_EXT ;\n result |= NEEDS_MOVE ;\n }\n else {\n fprintf ( stderr , \"ucm error: the base table contains a mapping whose input sequence\\n\" \" is the same as the input sequence of an extension mapping\\n\" \" but it maps differently\\n\" ) ;\n ucm_printMapping ( base , mb , stderr ) ;\n ucm_printMapping ( ext , me , stderr ) ;\n result |= HAS_ERRORS ;\n }\n ++ mb ;\n }\n else {\n ++ me ;\n }\n }\n }"}
{"idx": 3762, "target": 0, "func": "static void link_info_stop ( NautilusDirectory * directory ) {\n NautilusFile * file ;\n if ( directory -> details -> link_info_read_state != NULL ) {\n file = directory -> details -> link_info_read_state -> file ;\n if ( file != NULL ) {\n g_assert ( NAUTILUS_IS_FILE ( file ) ) ;\n g_assert ( file -> details -> directory == directory ) ;\n if ( is_needy ( file , lacks_link_info , REQUEST_LINK_INFO ) ) {\n return ;\n }\n }\n link_info_cancel ( directory ) ;\n }\n }"}
{"idx": 3763, "target": 0, "func": "guchar proto_check_field_name ( const gchar * field_name ) {\n return wrs_check_charset ( fld_abbrev_chars , field_name ) ;\n }"}
{"idx": 3764, "target": 0, "func": "static int parse_CDbProp ( tvbuff_t * tvb , packet_info * pinfo , int offset , proto_tree * parent_tree , proto_tree * pad_tree , struct GuidPropertySet * propset , const char * fmt , ... ) {\n static const value_string EMPTY_VS [ ] = {\n {\n 0 , NULL }\n }\n ;\n const value_string * vs = ( propset && propset -> id_map ) ? propset -> id_map : EMPTY_VS ;\n guint32 id , opt , status ;\n struct CBaseStorageVariant value ;\n proto_item * item ;\n proto_tree * tree ;\n const char * str , * txt ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CDbProp , & item , txt ) ;\n id = tvb_get_letohl ( tvb , offset ) ;\n str = val_to_str ( id , vs , \"0x%08x\" ) ;\n proto_tree_add_string_format_value ( tree , hf_mswsp_cdbprop_id , tvb , offset , 4 , str , \"%s (0x%08x)\" , ( str [ 0 ] == '0' ? \"\" : str ) , id ) ;\n offset += 4 ;\n proto_item_append_text ( item , \" Id: %s\" , str ) ;\n opt = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_cdbprop_options , tvb , offset , 4 , opt ) ;\n offset += 4 ;\n status = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_cdbprop_status , tvb , offset , 4 , status ) ;\n offset += 4 ;\n offset = parse_CDbColId ( tvb , offset , tree , pad_tree , \"colid\" ) ;\n offset = parse_CBaseStorageVariant ( tvb , pinfo , offset , tree , pad_tree , & value , \"vValue\" ) ;\n str = str_CBaseStorageVariant ( & value , TRUE ) ;\n proto_item_append_text ( item , \" %s\" , str ) ;\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 3765, "target": 0, "func": "static void fix_history ( String * final_command ) {\n int total_lines = 1 ;\n char * ptr = final_command -> c_ptr ( ) ;\n String fixed_buffer ;\n char str_char = '\\0' ;\n while ( * ptr != '\\0' ) {\n switch ( * ptr ) {\n case '\"' : case '\\'' : case '`' : if ( str_char == '\\0' ) str_char = * ptr ;\n else if ( str_char == * ptr ) str_char = '\\0' ;\n fixed_buffer . append ( ptr , 1 ) ;\n break ;\n case '\\n' : fixed_buffer . append ( str_char == '\\0' ? \" \" : \"\\n\" ) ;\n total_lines ++ ;\n break ;\n case '\\\\' : fixed_buffer . append ( '\\\\' ) ;\n if ( str_char ) {\n ptr ++ ;\n if ( * ptr == '\\'' || * ptr == '\"' || * ptr == '\\\\' ) fixed_buffer . append ( ptr , 1 ) ;\n else ptr -- ;\n }\n break ;\n default : fixed_buffer . append ( ptr , 1 ) ;\n }\n ptr ++ ;\n }\n if ( total_lines > 1 ) add_history ( fixed_buffer . ptr ( ) ) ;\n }"}
{"idx": 3766, "target": 0, "func": "static void pxa2xx_mm_write ( void * opaque , hwaddr addr , uint64_t value , unsigned size ) {\n PXA2xxState * s = ( PXA2xxState * ) opaque ;\n switch ( addr ) {\n case MDCNFG ... SA1110 : if ( ( addr & 3 ) == 0 ) {\n s -> mm_regs [ addr >> 2 ] = value ;\n break ;\n }\n default : printf ( \"%s: Bad register \" REG_FMT \"\\n\" , __FUNCTION__ , addr ) ;\n break ;\n }\n }"}
{"idx": 3767, "target": 0, "func": "static int glyphmatches ( SplineChar * sc , SplineChar * sc2 , int layer ) {\n RefChar * r , * r2 ;\n SplineSet * ss , * ss2 ;\n SplinePoint * sp , * sp2 ;\n if ( sc -> width != sc2 -> width ) return ( false ) ;\n if ( sc -> ttf_instrs_len != sc2 -> ttf_instrs_len ) return ( false ) ;\n if ( sc -> ttf_instrs_len != 0 && memcmp ( sc -> ttf_instrs , sc2 -> ttf_instrs , sc -> ttf_instrs_len ) != 0 ) return ( false ) ;\n for ( r = sc -> layers [ layer ] . refs , r2 = sc2 -> layers [ layer ] . refs ;\n r != NULL && r2 != NULL ;\n r = r -> next , r2 = r2 -> next ) {\n if ( r -> transform [ 0 ] != r2 -> transform [ 0 ] || r -> transform [ 1 ] != r2 -> transform [ 1 ] || r -> transform [ 2 ] != r2 -> transform [ 2 ] || r -> transform [ 3 ] != r2 -> transform [ 3 ] || r -> transform [ 4 ] != r2 -> transform [ 4 ] || r -> transform [ 5 ] != r2 -> transform [ 5 ] ) return ( false ) ;\n if ( r -> sc -> unicodeenc != r2 -> sc -> unicodeenc ) return ( false ) ;\n if ( r -> sc -> unicodeenc == - 1 && strcmp ( r -> sc -> name , r2 -> sc -> name ) != 0 ) return ( false ) ;\n }\n if ( r != NULL || r2 != NULL ) return ( false ) ;\n for ( ss = sc -> layers [ layer ] . splines , ss2 = sc2 -> layers [ layer ] . splines ;\n ss != NULL && ss2 != NULL ;\n ss = ss -> next , ss2 = ss2 -> next ) {\n for ( sp = ss -> first , sp2 = ss2 -> first ;\n sp != NULL && sp2 != NULL ;\n ) {\n if ( sp -> me . x != sp2 -> me . x || sp -> me . y != sp2 -> me . y || sp -> nextcp . x != sp2 -> nextcp . x || sp -> nextcp . y != sp2 -> nextcp . y || sp -> prevcp . x != sp2 -> prevcp . x || sp -> prevcp . y != sp2 -> prevcp . y ) return ( false ) ;\n sp = ( sp -> next ? sp -> next -> to : NULL ) ;\n sp2 = ( sp2 -> next ? sp2 -> next -> to : NULL ) ;\n if ( sp == ss -> first ) {\n if ( sp2 == ss2 -> first ) break ;\n return ( false ) ;\n }\n else if ( sp2 == ss2 -> first ) return ( false ) ;\n }\n if ( ( sp == NULL && sp2 != NULL ) || ( sp != NULL && sp2 == NULL ) ) return ( false ) ;\n }\n if ( ss == NULL && ss2 == NULL ) return ( true ) ;\n return ( false ) ;\n }"}
{"idx": 3768, "target": 0, "func": "static void proto_tree_set_protocol_tvb ( field_info * fi , tvbuff_t * tvb , const char * field_data ) {\n fvalue_set_protocol ( & fi -> value , tvb , field_data ) ;\n }"}
{"idx": 3769, "target": 0, "func": "static int fix_paths ( void ) {\n char buff [ FN_REFLEN ] , * pos ;\n DBUG_ENTER ( \"fix_paths\" ) ;\n convert_dirname ( mysql_home , mysql_home , NullS ) ;\n my_realpath ( mysql_home , mysql_home , MYF ( 0 ) ) ;\n pos = strend ( mysql_home ) ;\n if ( pos [ - 1 ] != FN_LIBCHAR ) {\n pos [ 0 ] = FN_LIBCHAR ;\n pos [ 1 ] = 0 ;\n }\n convert_dirname ( lc_messages_dir , lc_messages_dir , NullS ) ;\n convert_dirname ( mysql_real_data_home , mysql_real_data_home , NullS ) ;\n ( void ) my_load_path ( mysql_home , mysql_home , \"\" ) ;\n ( void ) my_load_path ( mysql_real_data_home , mysql_real_data_home , mysql_home ) ;\n ( void ) my_load_path ( pidfile_name , pidfile_name_ptr , mysql_real_data_home ) ;\n convert_dirname ( opt_plugin_dir , opt_plugin_dir_ptr ? opt_plugin_dir_ptr : get_relative_path ( PLUGINDIR ) , NullS ) ;\n ( void ) my_load_path ( opt_plugin_dir , opt_plugin_dir , mysql_home ) ;\n opt_plugin_dir_ptr = opt_plugin_dir ;\n pidfile_name_ptr = pidfile_name ;\n my_realpath ( mysql_unpacked_real_data_home , mysql_real_data_home , MYF ( 0 ) ) ;\n mysql_unpacked_real_data_home_len = ( int ) strlen ( mysql_unpacked_real_data_home ) ;\n if ( mysql_unpacked_real_data_home [ mysql_unpacked_real_data_home_len - 1 ] == FN_LIBCHAR ) -- mysql_unpacked_real_data_home_len ;\n char * sharedir = get_relative_path ( SHAREDIR ) ;\n if ( test_if_hard_path ( sharedir ) ) strmake_buf ( buff , sharedir ) ;\n else strxnmov ( buff , sizeof ( buff ) - 1 , mysql_home , sharedir , NullS ) ;\n convert_dirname ( buff , buff , NullS ) ;\n ( void ) my_load_path ( lc_messages_dir , lc_messages_dir , buff ) ;\n if ( charsets_dir ) strmake_buf ( mysql_charsets_dir , charsets_dir ) ;\n else strxnmov ( mysql_charsets_dir , sizeof ( mysql_charsets_dir ) - 1 , buff , CHARSET_DIR , NullS ) ;\n ( void ) my_load_path ( mysql_charsets_dir , mysql_charsets_dir , buff ) ;\n convert_dirname ( mysql_charsets_dir , mysql_charsets_dir , NullS ) ;\n charsets_dir = mysql_charsets_dir ;\n if ( init_tmpdir ( & mysql_tmpdir_list , opt_mysql_tmpdir ) ) DBUG_RETURN ( 1 ) ;\n if ( ! opt_mysql_tmpdir ) opt_mysql_tmpdir = mysql_tmpdir ;\n # ifdef HAVE_REPLICATION if ( ! slave_load_tmpdir ) slave_load_tmpdir = mysql_tmpdir ;\n # endif if ( opt_secure_file_priv ) {\n if ( * opt_secure_file_priv == 0 ) {\n my_free ( opt_secure_file_priv ) ;\n opt_secure_file_priv = 0 ;\n }\n else {\n if ( strlen ( opt_secure_file_priv ) >= FN_REFLEN ) opt_secure_file_priv [ FN_REFLEN - 1 ] = '\\0' ;\n if ( my_realpath ( buff , opt_secure_file_priv , 0 ) ) {\n sql_print_warning ( \"Failed to normalize the argument for --secure-file-priv.\" ) ;\n DBUG_RETURN ( 1 ) ;\n }\n char * secure_file_real_path = ( char * ) my_malloc ( FN_REFLEN , MYF ( MY_FAE ) ) ;\n convert_dirname ( secure_file_real_path , buff , NullS ) ;\n my_free ( opt_secure_file_priv ) ;\n opt_secure_file_priv = secure_file_real_path ;\n }\n }\n DBUG_RETURN ( 0 ) ;\n }"}
{"idx": 3770, "target": 0, "func": "static void print_mpi_2 ( const char * text , const char * text2 , gcry_mpi_t a ) {\n gcry_error_t err ;\n char * buf ;\n void * bufaddr = & buf ;\n err = gcry_mpi_aprint ( GCRYMPI_FMT_HEX , bufaddr , NULL , a ) ;\n if ( err ) fprintf ( stderr , \"%s%s: [error printing number: %s]\\n\" , text , text2 ? text2 : \"\" , gpg_strerror ( err ) ) ;\n else {\n fprintf ( stderr , \"%s%s: %s\\n\" , text , text2 ? text2 : \"\" , buf ) ;\n gcry_free ( buf ) ;\n }\n }"}
{"idx": 3771, "target": 1, "func": "static int rc_pick_q_and_bounds_two_pass ( const VP9_COMP * cpi , int * bottom_index , int * top_index ) {\n const VP9_COMMON * const cm = & cpi -> common ;\n const RATE_CONTROL * const rc = & cpi -> rc ;\n const VP9EncoderConfig * const oxcf = & cpi -> oxcf ;\n const int cq_level = get_active_cq_level ( rc , oxcf ) ;\n int active_best_quality ;\n int active_worst_quality = cpi -> twopass . active_worst_quality ;\n int q ;\n if ( frame_is_intra_only ( cm ) || vp9_is_upper_layer_key_frame ( cpi ) ) {\n if ( rc -> this_key_frame_forced ) {\n int qindex = rc -> last_boosted_qindex ;\n double last_boosted_q = vp9_convert_qindex_to_q ( qindex ) ;\n int delta_qindex = vp9_compute_qdelta ( rc , last_boosted_q , last_boosted_q * 0.75 ) ;\n active_best_quality = MAX ( qindex + delta_qindex , rc -> best_quality ) ;\n }\n else {\n double q_adj_factor = 1.0 ;\n double q_val ;\n active_best_quality = get_kf_active_quality ( rc , active_worst_quality ) ;\n if ( ( cm -> width * cm -> height ) <= ( 352 * 288 ) ) {\n q_adj_factor -= 0.25 ;\n }\n q_adj_factor += 0.05 - ( 0.001 * ( double ) cpi -> twopass . kf_zeromotion_pct ) ;\n q_val = vp9_convert_qindex_to_q ( active_best_quality ) ;\n active_best_quality += vp9_compute_qdelta ( rc , q_val , q_val * q_adj_factor ) ;\n }\n }\n else if ( ! rc -> is_src_frame_alt_ref && ( cpi -> refresh_golden_frame || cpi -> refresh_alt_ref_frame ) ) {\n if ( rc -> frames_since_key > 1 && rc -> avg_frame_qindex [ INTER_FRAME ] < active_worst_quality ) {\n q = rc -> avg_frame_qindex [ INTER_FRAME ] ;\n }\n else {\n q = active_worst_quality ;\n }\n if ( oxcf -> rc_mode == VPX_CQ ) {\n if ( q < cq_level ) q = cq_level ;\n active_best_quality = get_gf_active_quality ( rc , q ) ;\n active_best_quality = active_best_quality * 15 / 16 ;\n }\n else if ( oxcf -> rc_mode == VPX_Q ) {\n if ( ! cpi -> refresh_alt_ref_frame ) {\n active_best_quality = cq_level ;\n }\n else {\n active_best_quality = get_gf_active_quality ( rc , q ) ;\n }\n }\n else {\n active_best_quality = get_gf_active_quality ( rc , q ) ;\n }\n }\n else {\n if ( oxcf -> rc_mode == VPX_Q ) {\n active_best_quality = cq_level ;\n }\n else {\n active_best_quality = inter_minq [ active_worst_quality ] ;\n if ( ( oxcf -> rc_mode == VPX_CQ ) && ( active_best_quality < cq_level ) ) {\n active_best_quality = cq_level ;\n }\n }\n }\n active_best_quality = clamp ( active_best_quality , rc -> best_quality , rc -> worst_quality ) ;\n active_worst_quality = clamp ( active_worst_quality , active_best_quality , rc -> worst_quality ) ;\n * top_index = active_worst_quality ;\n * bottom_index = active_best_quality ;\n # if LIMIT_QRANGE_FOR_ALTREF_AND_KEY vp9_clear_system_state ( ) ;\n {\n const GF_GROUP * const gf_group = & cpi -> twopass . gf_group ;\n const double rate_factor_deltas [ RATE_FACTOR_LEVELS ] = {\n 1.00 , 1.00 , 1.50 , 1.75 , 2.00 , }\n ;\n const double rate_factor = rate_factor_deltas [ gf_group -> rf_level [ gf_group -> index ] ] ;\n int qdelta = vp9_compute_qdelta_by_rate ( & cpi -> rc , cm -> frame_type , active_worst_quality , rate_factor ) ;\n * top_index = active_worst_quality + qdelta ;\n * top_index = ( * top_index > * bottom_index ) ? * top_index : * bottom_index ;\n }\n # endif if ( oxcf -> rc_mode == VPX_Q ) {\n q = active_best_quality ;\n }\n else if ( ( cm -> frame_type == KEY_FRAME ) && rc -> this_key_frame_forced ) {\n q = rc -> last_boosted_qindex ;\n }\n else {\n q = vp9_rc_regulate_q ( cpi , rc -> this_frame_target , active_best_quality , active_worst_quality ) ;\n if ( q > * top_index ) {\n if ( rc -> this_frame_target >= rc -> max_frame_bandwidth ) * top_index = q ;\n else q = * top_index ;\n }\n }\n assert ( * top_index <= rc -> worst_quality && * top_index >= rc -> best_quality ) ;\n assert ( * bottom_index <= rc -> worst_quality && * bottom_index >= rc -> best_quality ) ;\n assert ( q <= rc -> worst_quality && q >= rc -> best_quality ) ;\n return q ;\n }"}
{"idx": 3772, "target": 1, "func": "enum ImapAuthRes imap_auth_login ( struct ImapData * idata , const char * method ) {\n char q_user [ SHORT_STRING ] , q_pass [ SHORT_STRING ] ;\n char buf [ STRING ] ;\n int rc ;\n if ( mutt_bit_isset ( idata -> capabilities , LOGINDISABLED ) ) {\n mutt_message ( _ ( \"LOGIN disabled on this server.\" ) ) ;\n return IMAP_AUTH_UNAVAIL ;\n }\n if ( mutt_account_getuser ( & idata -> conn -> account ) < 0 ) return IMAP_AUTH_FAILURE ;\n if ( mutt_account_getpass ( & idata -> conn -> account ) < 0 ) return IMAP_AUTH_FAILURE ;\n mutt_message ( _ ( \"Logging in...\" ) ) ;\n imap_quote_string ( q_user , sizeof ( q_user ) , idata -> conn -> account . user ) ;\n imap_quote_string ( q_pass , sizeof ( q_pass ) , idata -> conn -> account . pass ) ;\n if ( DebugLevel < IMAP_LOG_PASS ) mutt_debug ( 2 , \"Sending LOGIN command for %s...\\n\" , idata -> conn -> account . user ) ;\n snprintf ( buf , sizeof ( buf ) , \"LOGIN %s %s\" , q_user , q_pass ) ;\n rc = imap_exec ( idata , buf , IMAP_CMD_FAIL_OK | IMAP_CMD_PASS ) ;\n if ( ! rc ) {\n mutt_clear_error ( ) ;\n return IMAP_AUTH_SUCCESS ;\n }\n mutt_error ( _ ( \"Login failed.\" ) ) ;\n return IMAP_AUTH_FAILURE ;\n }"}
{"idx": 3773, "target": 0, "func": "static void ps2_common_post_load ( PS2State * s ) {\n PS2Queue * q = & s -> queue ;\n uint8_t i , size ;\n uint8_t tmp_data [ PS2_QUEUE_SIZE ] ;\n size = ( q -> count < 0 || q -> count > PS2_QUEUE_SIZE ) ? 0 : q -> count ;\n for ( i = 0 ;\n i < size ;\n i ++ ) {\n if ( q -> rptr < 0 || q -> rptr >= sizeof ( q -> data ) ) {\n q -> rptr = 0 ;\n }\n tmp_data [ i ] = q -> data [ q -> rptr ++ ] ;\n }\n memcpy ( q -> data , tmp_data , size ) ;\n q -> rptr = 0 ;\n q -> wptr = size ;\n q -> count = size ;\n s -> update_irq ( s -> update_arg , q -> count != 0 ) ;\n }"}
{"idx": 3774, "target": 0, "func": "TEST_F ( SyncBookmarkDataTypeControllerTest , StartAssociationFailed ) {\n CreateBookmarkModel ( LOAD_MODEL ) ;\n SetStartExpectations ( ) ;\n EXPECT_CALL ( * profile_sync_factory_ , CreateBookmarkSyncComponents ( _ , _ ) ) ;\n EXPECT_CALL ( * model_associator_ , CryptoReadyIfNecessary ( ) ) . WillRepeatedly ( Return ( true ) ) ;\n EXPECT_CALL ( * model_associator_ , SyncModelHasUserCreatedNodes ( _ ) ) . WillRepeatedly ( DoAll ( SetArgumentPointee < 0 > ( true ) , Return ( true ) ) ) ;\n EXPECT_CALL ( * model_associator_ , AssociateModels ( _ , _ ) ) . WillRepeatedly ( Return ( syncer : : SyncError ( FROM_HERE , syncer : : SyncError : : DATATYPE_ERROR , \"error\" , syncer : : BOOKMARKS ) ) ) ;\n EXPECT_CALL ( start_callback_ , Run ( DataTypeController : : ASSOCIATION_FAILED , _ , _ ) ) ;\n Start ( ) ;\n EXPECT_EQ ( DataTypeController : : DISABLED , bookmark_dtc_ -> state ( ) ) ;\n }"}
{"idx": 3775, "target": 0, "func": "static void dumpcffdictindex ( SplineFont * sf , struct alltabs * at ) {\n int i ;\n int pos ;\n putshort ( at -> fdarray , sf -> subfontcnt ) ;\n putc ( '\\2' , at -> fdarray ) ;\n putshort ( at -> fdarray , 1 ) ;\n for ( i = 0 ;\n i < sf -> subfontcnt ;\n ++ i ) putshort ( at -> fdarray , 0 ) ;\n pos = ftell ( at -> fdarray ) - 1 ;\n for ( i = 0 ;\n i < sf -> subfontcnt ;\n ++ i ) {\n at -> fds [ i ] . fillindictmark = dumpcffdict ( sf -> subfonts [ i ] , at ) ;\n at -> fds [ i ] . eodictmark = ftell ( at -> fdarray ) ;\n if ( at -> fds [ i ] . eodictmark > 65536 ) IError ( \"The DICT INDEX got too big, result won't work\" ) ;\n }\n fseek ( at -> fdarray , 2 * sizeof ( short ) + sizeof ( char ) , SEEK_SET ) ;\n for ( i = 0 ;\n i < sf -> subfontcnt ;\n ++ i ) putshort ( at -> fdarray , at -> fds [ i ] . eodictmark - pos ) ;\n fseek ( at -> fdarray , 0 , SEEK_END ) ;\n }"}
{"idx": 3776, "target": 0, "func": "Expr * make_ands_explicit ( List * andclauses ) {\n if ( andclauses == NIL ) return ( Expr * ) makeBoolConst ( true , false ) ;\n else if ( list_length ( andclauses ) == 1 ) return ( Expr * ) linitial ( andclauses ) ;\n else return make_andclause ( andclauses ) ;\n }"}
{"idx": 3777, "target": 0, "func": "static void RemapHintMask ( HintMask * hm , int mapping [ 96 ] , int max ) {\n HintMask rpl ;\n int i , mb ;\n if ( hm == NULL ) return ;\n if ( max > 96 ) max = 96 ;\n mb = ( max + 7 ) >> 3 ;\n memset ( & rpl , 0 , mb ) ;\n for ( i = 0 ;\n i < max ;\n ++ i ) if ( ( * hm ) [ i >> 3 ] & ( 0x80 >> ( i & 0x7 ) ) ) rpl [ mapping [ i ] >> 3 ] |= ( 0x80 >> ( mapping [ i ] & 0x7 ) ) ;\n memcpy ( hm , & rpl , mb ) ;\n }"}
{"idx": 3778, "target": 0, "func": "int parse_args ( int argc , char * * argv ) {\n if ( load_defaults ( \"my\" , load_default_groups , & argc , & argv ) ) exit ( 1 ) ;\n default_argv = argv ;\n if ( ( handle_options ( & argc , & argv , my_long_options , get_one_option ) ) ) exit ( 1 ) ;\n if ( argc > 1 ) {\n usage ( ) ;\n exit ( 1 ) ;\n }\n if ( argc == 1 ) opt_db = * argv ;\n if ( tty_password ) opt_pass = get_tty_password ( NullS ) ;\n if ( debug_info_flag ) my_end_arg = MY_CHECK_ERROR | MY_GIVE_INFO ;\n if ( debug_check_flag ) my_end_arg |= MY_CHECK_ERROR ;\n if ( global_subst != NULL ) {\n char * comma = strstr ( global_subst , \",\" ) ;\n if ( comma == NULL ) die ( \"wrong --global-subst, must be X,Y\" ) ;\n memcpy ( global_subst_from , global_subst , ( comma - global_subst ) ) ;\n global_subst_from [ comma - global_subst ] = 0 ;\n memcpy ( global_subst_to , comma + 1 , strlen ( comma ) ) ;\n }\n if ( ! opt_suite_dir ) opt_suite_dir = \"./\" ;\n suite_dir_len = strlen ( opt_suite_dir ) ;\n overlay_dir_len = opt_overlay_dir ? strlen ( opt_overlay_dir ) : 0 ;\n if ( ! record ) {\n if ( result_file_name && access ( result_file_name , F_OK ) != 0 ) die ( \"The specified result file '%s' does not exist\" , result_file_name ) ;\n }\n return 0 ;\n }"}
{"idx": 3779, "target": 0, "func": "static const char * notify_plural ( int count ) {\n if ( count == 1 ) return \"notification\" ;\n return \"notifies\" ;\n }"}
{"idx": 3780, "target": 1, "func": "static Expr * inline_function ( Oid funcid , Oid result_type , Oid result_collid , Oid input_collid , List * args , bool funcvariadic , HeapTuple func_tuple , eval_const_expressions_context * context ) {\n Form_pg_proc funcform = ( Form_pg_proc ) GETSTRUCT ( func_tuple ) ;\n char * src ;\n Datum tmp ;\n bool isNull ;\n bool modifyTargetList ;\n MemoryContext oldcxt ;\n MemoryContext mycxt ;\n inline_error_callback_arg callback_arg ;\n ErrorContextCallback sqlerrcontext ;\n FuncExpr * fexpr ;\n SQLFunctionParseInfoPtr pinfo ;\n ParseState * pstate ;\n List * raw_parsetree_list ;\n Query * querytree ;\n Node * newexpr ;\n int * usecounts ;\n ListCell * arg ;\n int i ;\n if ( funcform -> prolang != SQLlanguageId || funcform -> prosecdef || funcform -> proretset || funcform -> prorettype == RECORDOID || ! heap_attisnull ( func_tuple , Anum_pg_proc_proconfig ) || funcform -> pronargs != list_length ( args ) ) return NULL ;\n if ( list_member_oid ( context -> active_fns , funcid ) ) return NULL ;\n if ( pg_proc_aclcheck ( funcid , GetUserId ( ) , ACL_EXECUTE ) != ACLCHECK_OK ) return NULL ;\n if ( FmgrHookIsNeeded ( funcid ) ) return NULL ;\n mycxt = AllocSetContextCreate ( CurrentMemoryContext , \"inline_function\" , ALLOCSET_DEFAULT_MINSIZE , ALLOCSET_DEFAULT_INITSIZE , ALLOCSET_DEFAULT_MAXSIZE ) ;\n oldcxt = MemoryContextSwitchTo ( mycxt ) ;\n tmp = SysCacheGetAttr ( PROCOID , func_tuple , Anum_pg_proc_prosrc , & isNull ) ;\n if ( isNull ) elog ( ERROR , \"null prosrc for function %u\" , funcid ) ;\n src = TextDatumGetCString ( tmp ) ;\n callback_arg . proname = NameStr ( funcform -> proname ) ;\n callback_arg . prosrc = src ;\n sqlerrcontext . callback = sql_inline_error_callback ;\n sqlerrcontext . arg = ( void * ) & callback_arg ;\n sqlerrcontext . previous = error_context_stack ;\n error_context_stack = & sqlerrcontext ;\n fexpr = makeNode ( FuncExpr ) ;\n fexpr -> funcid = funcid ;\n fexpr -> funcresulttype = result_type ;\n fexpr -> funcretset = false ;\n fexpr -> funcvariadic = funcvariadic ;\n fexpr -> funcformat = COERCE_EXPLICIT_CALL ;\n fexpr -> funccollid = result_collid ;\n fexpr -> inputcollid = input_collid ;\n fexpr -> args = args ;\n fexpr -> location = - 1 ;\n pinfo = prepare_sql_fn_parse_info ( func_tuple , ( Node * ) fexpr , input_collid ) ;\n raw_parsetree_list = pg_parse_query ( src ) ;\n if ( list_length ( raw_parsetree_list ) != 1 ) goto fail ;\n pstate = make_parsestate ( NULL ) ;\n pstate -> p_sourcetext = src ;\n sql_fn_parser_setup ( pstate , pinfo ) ;\n querytree = transformTopLevelStmt ( pstate , linitial ( raw_parsetree_list ) ) ;\n free_parsestate ( pstate ) ;\n if ( ! IsA ( querytree , Query ) || querytree -> commandType != CMD_SELECT || querytree -> utilityStmt || querytree -> hasAggs || querytree -> hasWindowFuncs || querytree -> hasSubLinks || querytree -> cteList || querytree -> rtable || querytree -> jointree -> fromlist || querytree -> jointree -> quals || querytree -> groupClause || querytree -> groupingSets || querytree -> havingQual || querytree -> windowClause || querytree -> distinctClause || querytree -> sortClause || querytree -> limitOffset || querytree -> limitCount || querytree -> setOperations || list_length ( querytree -> targetList ) != 1 ) goto fail ;\n if ( check_sql_fn_retval ( funcid , result_type , list_make1 ( querytree ) , & modifyTargetList , NULL ) ) goto fail ;\n newexpr = ( Node * ) ( ( TargetEntry * ) linitial ( querytree -> targetList ) ) -> expr ;\n Assert ( exprType ( newexpr ) == result_type ) ;\n Assert ( ! modifyTargetList ) ;\n if ( expression_returns_set ( newexpr ) ) goto fail ;\n if ( funcform -> provolatile == PROVOLATILE_IMMUTABLE && contain_mutable_functions ( newexpr ) ) goto fail ;\n else if ( funcform -> provolatile == PROVOLATILE_STABLE && contain_volatile_functions ( newexpr ) ) goto fail ;\n if ( funcform -> proisstrict && contain_nonstrict_functions ( newexpr ) ) goto fail ;\n usecounts = ( int * ) palloc0 ( funcform -> pronargs * sizeof ( int ) ) ;\n newexpr = substitute_actual_parameters ( newexpr , funcform -> pronargs , args , usecounts ) ;\n i = 0 ;\n foreach ( arg , args ) {\n Node * param = lfirst ( arg ) ;\n if ( usecounts [ i ] == 0 ) {\n if ( funcform -> proisstrict ) goto fail ;\n }\n else if ( usecounts [ i ] != 1 ) {\n QualCost eval_cost ;\n if ( contain_subplans ( param ) ) goto fail ;\n cost_qual_eval ( & eval_cost , list_make1 ( param ) , NULL ) ;\n if ( eval_cost . startup + eval_cost . per_tuple > 10 * cpu_operator_cost ) goto fail ;\n if ( contain_volatile_functions ( param ) ) goto fail ;\n }\n i ++ ;\n }\n MemoryContextSwitchTo ( oldcxt ) ;\n newexpr = copyObject ( newexpr ) ;\n MemoryContextDelete ( mycxt ) ;\n if ( OidIsValid ( result_collid ) ) {\n Oid exprcoll = exprCollation ( newexpr ) ;\n if ( OidIsValid ( exprcoll ) && exprcoll != result_collid ) {\n CollateExpr * newnode = makeNode ( CollateExpr ) ;\n newnode -> arg = ( Expr * ) newexpr ;\n newnode -> collOid = result_collid ;\n newnode -> location = - 1 ;\n newexpr = ( Node * ) newnode ;\n }\n }\n if ( context -> root ) record_plan_function_dependency ( context -> root , funcid ) ;\n context -> active_fns = lcons_oid ( funcid , context -> active_fns ) ;\n newexpr = eval_const_expressions_mutator ( newexpr , context ) ;\n context -> active_fns = list_delete_first ( context -> active_fns ) ;\n error_context_stack = sqlerrcontext . previous ;\n return ( Expr * ) newexpr ;\n fail : MemoryContextSwitchTo ( oldcxt ) ;\n MemoryContextDelete ( mycxt ) ;\n error_context_stack = sqlerrcontext . previous ;\n return NULL ;\n }"}
{"idx": 3781, "target": 0, "func": "static char * query_fs_type ( GFile * file , GCancellable * cancellable ) {\n GFileInfo * fsinfo ;\n char * ret ;\n ret = NULL ;\n fsinfo = g_file_query_filesystem_info ( file , G_FILE_ATTRIBUTE_FILESYSTEM_TYPE , cancellable , NULL ) ;\n if ( fsinfo != NULL ) {\n ret = g_strdup ( g_file_info_get_attribute_string ( fsinfo , G_FILE_ATTRIBUTE_FILESYSTEM_TYPE ) ) ;\n g_object_unref ( fsinfo ) ;\n }\n if ( ret == NULL ) {\n ret = g_strdup ( \"\" ) ;\n }\n return ret ;\n }"}
{"idx": 3782, "target": 0, "func": "static const char * cmd_audit_log_type ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = _dcfg ;\n if ( strcasecmp ( p1 , \"Serial\" ) == 0 ) dcfg -> auditlog_type = AUDITLOG_SERIAL ;\n else if ( strcasecmp ( p1 , \"Concurrent\" ) == 0 ) dcfg -> auditlog_type = AUDITLOG_CONCURRENT ;\n else return ( const char * ) apr_psprintf ( cmd -> pool , \"ModSecurity: Unrecognised parameter value for SecAuditLogType: %s\" , p1 ) ;\n return NULL ;\n }"}
{"idx": 3783, "target": 0, "func": "SPL_METHOD ( RecursiveDirectoryIterator , getSubPathname ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char * sub_name ;\n int len ;\n char slash = SPL_HAS_FLAG ( intern -> flags , SPL_FILE_DIR_UNIXPATHS ) ? '/' : DEFAULT_SLASH ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n if ( intern -> u . dir . sub_path ) {\n len = spprintf ( & sub_name , 0 , \"%s%c%s\" , intern -> u . dir . sub_path , slash , intern -> u . dir . entry . d_name ) ;\n RETURN_STRINGL ( sub_name , len , 0 ) ;\n }\n else {\n RETURN_STRING ( intern -> u . dir . entry . d_name , 1 ) ;\n }\n }"}
{"idx": 3784, "target": 0, "func": "int qemuMonitorJSONHumanCommandWithFd ( qemuMonitorPtr mon , const char * cmd_str , int scm_fd , char * * reply_str ) {\n virJSONValuePtr cmd = NULL ;\n virJSONValuePtr reply = NULL ;\n virJSONValuePtr obj ;\n int ret = - 1 ;\n cmd = qemuMonitorJSONMakeCommand ( \"human-monitor-command\" , \"s:command-line\" , cmd_str , NULL ) ;\n if ( ! cmd || qemuMonitorJSONCommandWithFd ( mon , cmd , scm_fd , & reply ) < 0 ) goto cleanup ;\n if ( qemuMonitorJSONCheckError ( cmd , reply ) ) goto cleanup ;\n if ( ! ( obj = virJSONValueObjectGet ( reply , \"return\" ) ) ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"human monitor command was missing return data\" ) ) ;\n goto cleanup ;\n }\n if ( reply_str ) {\n const char * data ;\n if ( ( data = virJSONValueGetString ( obj ) ) ) * reply_str = strdup ( data ) ;\n else * reply_str = strdup ( \"\" ) ;\n if ( ! * reply_str ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n }\n ret = 0 ;\n cleanup : virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 3785, "target": 0, "func": "static int selinux_mmap_addr ( unsigned long addr ) {\n int rc = 0 ;\n if ( addr < CONFIG_LSM_MMAP_MIN_ADDR ) {\n u32 sid = current_sid ( ) ;\n rc = avc_has_perm ( sid , sid , SECCLASS_MEMPROTECT , MEMPROTECT__MMAP_ZERO , NULL ) ;\n }\n return rc ;\n }"}
{"idx": 3786, "target": 0, "func": "strong_alias ( _nss_nis_setaliasent , _nss_nis_endaliasent ) static enum nss_status internal_nis_getaliasent_r ( struct aliasent * alias , char * buffer , size_t buflen , int * errnop ) {\n char * domain ;\n if ( __builtin_expect ( yp_get_default_domain ( & domain ) , 0 ) ) return NSS_STATUS_UNAVAIL ;\n alias -> alias_local = 0 ;\n int parse_res ;\n do {\n char * result ;\n int len ;\n char * outkey ;\n int keylen ;\n int yperr ;\n if ( new_start ) yperr = yp_first ( domain , \"mail.aliases\" , & outkey , & keylen , & result , & len ) ;\n else yperr = yp_next ( domain , \"mail.aliases\" , oldkey , oldkeylen , & outkey , & keylen , & result , & len ) ;\n if ( __builtin_expect ( yperr != YPERR_SUCCESS , 0 ) ) {\n enum nss_status retval = yperr2nss ( yperr ) ;\n if ( retval == NSS_STATUS_TRYAGAIN ) * errnop = errno ;\n return retval ;\n }\n if ( __builtin_expect ( ( size_t ) ( len + 1 ) > buflen , 0 ) ) {\n free ( result ) ;\n * errnop = ERANGE ;\n return NSS_STATUS_TRYAGAIN ;\n }\n char * p = strncpy ( buffer , result , len ) ;\n buffer [ len ] = '\\0' ;\n while ( isspace ( * p ) ) ++ p ;\n free ( result ) ;\n parse_res = _nss_nis_parse_aliasent ( outkey , p , alias , buffer , buflen , errnop ) ;\n if ( __builtin_expect ( parse_res == - 1 , 0 ) ) {\n free ( outkey ) ;\n * errnop = ERANGE ;\n return NSS_STATUS_TRYAGAIN ;\n }\n free ( oldkey ) ;\n oldkey = outkey ;\n oldkeylen = keylen ;\n new_start = 0 ;\n }\n while ( ! parse_res ) ;\n return NSS_STATUS_SUCCESS ;\n }"}
{"idx": 3787, "target": 0, "func": "FILE * my_popen ( DYNAMIC_STRING * ds_cmd , const char * mode ) {\n # if defined __WIN__ && defined USE_CYGWIN str_to_file ( tmp_sh_name , ds_cmd -> str , ds_cmd -> length ) ;\n return popen ( tmp_sh_cmd , mode ) ;\n # else return popen ( ds_cmd -> str , mode ) ;\n # endif }"}
{"idx": 3788, "target": 0, "func": "static inline int __ipv6_addr_diff ( const void * token1 , const void * token2 , int addrlen ) {\n const __be32 * a1 = token1 , * a2 = token2 ;\n int i ;\n addrlen >>= 2 ;\n for ( i = 0 ;\n i < addrlen ;\n i ++ ) {\n __be32 xb = a1 [ i ] ^ a2 [ i ] ;\n if ( xb ) return i * 32 + 31 - __fls ( ntohl ( xb ) ) ;\n }\n return addrlen << 5 ;\n }"}
{"idx": 3789, "target": 0, "func": "static void test_bug5399 ( ) {\n # define NUM_OF_USED_STMT 97 MYSQL_STMT * stmt_list [ NUM_OF_USED_STMT ] ;\n MYSQL_STMT * * stmt ;\n MYSQL_BIND my_bind [ 1 ] ;\n char buff [ 600 ] ;\n int rc ;\n int32 no ;\n myheader ( \"test_bug5399\" ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 0 ] . buffer = & no ;\n for ( stmt = stmt_list ;\n stmt != stmt_list + NUM_OF_USED_STMT ;\n ++ stmt ) {\n sprintf ( buff , \"select %d\" , ( int ) ( stmt - stmt_list ) ) ;\n * stmt = mysql_stmt_init ( mysql ) ;\n rc = mysql_stmt_prepare ( * stmt , buff , strlen ( buff ) ) ;\n check_execute ( * stmt , rc ) ;\n mysql_stmt_bind_result ( * stmt , my_bind ) ;\n }\n if ( ! opt_silent ) printf ( \"%d statements prepared.\\n\" , NUM_OF_USED_STMT ) ;\n for ( stmt = stmt_list ;\n stmt != stmt_list + NUM_OF_USED_STMT ;\n ++ stmt ) {\n rc = mysql_stmt_execute ( * stmt ) ;\n check_execute ( * stmt , rc ) ;\n rc = mysql_stmt_store_result ( * stmt ) ;\n check_execute ( * stmt , rc ) ;\n rc = mysql_stmt_fetch ( * stmt ) ;\n DIE_UNLESS ( rc == 0 ) ;\n DIE_UNLESS ( ( int32 ) ( stmt - stmt_list ) == no ) ;\n }\n for ( stmt = stmt_list ;\n stmt != stmt_list + NUM_OF_USED_STMT ;\n ++ stmt ) mysql_stmt_close ( * stmt ) ;\n # undef NUM_OF_USED_STMT }"}
{"idx": 3790, "target": 0, "func": "static int dissect_zbee_zcl_on_off ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n zbee_zcl_packet * zcl ;\n guint offset = 0 ;\n guint8 cmd_id ;\n if ( data == NULL ) return 0 ;\n zcl = ( zbee_zcl_packet * ) data ;\n cmd_id = zcl -> cmd_id ;\n if ( zcl -> direction == ZBEE_ZCL_FCF_TO_SERVER ) {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"%s, Seq: %u\" , val_to_str_const ( cmd_id , zbee_zcl_on_off_srv_rx_cmd_names , \"Unknown Command\" ) , zcl -> tran_seqno ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_on_off_srv_rx_cmd_id , tvb , offset , 1 , cmd_id ) ;\n }\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 3791, "target": 0, "func": "int vp9_rc_regulate_q ( const VP9_COMP * cpi , int target_bits_per_frame , int active_best_quality , int active_worst_quality ) {\n const VP9_COMMON * const cm = & cpi -> common ;\n int q = active_worst_quality ;\n int last_error = INT_MAX ;\n int i , target_bits_per_mb ;\n const double correction_factor = get_rate_correction_factor ( cpi ) ;\n target_bits_per_mb = ( ( uint64_t ) target_bits_per_frame << BPER_MB_NORMBITS ) / cm -> MBs ;\n i = active_best_quality ;\n do {\n const int bits_per_mb_at_this_q = ( int ) vp9_rc_bits_per_mb ( cm -> frame_type , i , correction_factor , cm -> bit_depth ) ;\n if ( bits_per_mb_at_this_q <= target_bits_per_mb ) {\n if ( ( target_bits_per_mb - bits_per_mb_at_this_q ) <= last_error ) q = i ;\n else q = i - 1 ;\n break ;\n }\n else {\n last_error = bits_per_mb_at_this_q - target_bits_per_mb ;\n }\n }\n while ( ++ i <= active_worst_quality ) ;\n return q ;\n }"}
{"idx": 3792, "target": 0, "func": "static tmsize_t _tiffReadProc ( thandle_t fd , void * buf , tmsize_t size ) {\n fd_as_handle_union_t fdh ;\n const size_t bytes_total = ( size_t ) size ;\n size_t bytes_read ;\n tmsize_t count = - 1 ;\n if ( ( tmsize_t ) bytes_total != size ) {\n errno = EINVAL ;\n return ( tmsize_t ) - 1 ;\n }\n fdh . h = fd ;\n for ( bytes_read = 0 ;\n bytes_read < bytes_total ;\n bytes_read += count ) {\n char * buf_offset = ( char * ) buf + bytes_read ;\n size_t io_size = bytes_total - bytes_read ;\n if ( io_size > TIFF_IO_MAX ) io_size = TIFF_IO_MAX ;\n count = read ( fdh . fd , buf_offset , ( TIFFIOSize_t ) io_size ) ;\n if ( count <= 0 ) break ;\n }\n if ( count < 0 ) return ( tmsize_t ) - 1 ;\n return ( tmsize_t ) bytes_read ;\n }"}
{"idx": 3793, "target": 0, "func": "static inline uint32_t be32_to_cpu ( uint32_t v ) {\n return bswap32 ( v ) ;\n }"}
{"idx": 3794, "target": 0, "func": "static char * replace_line_endings ( const char * str ) {\n char * result ;\n char * s ;\n result = pg_strdup ( str ) ;\n for ( s = result ;\n * s != '\\0' ;\n s ++ ) {\n if ( * s == '\\n' || * s == '\\r' ) * s = ' ' ;\n }\n return result ;\n }"}
{"idx": 3795, "target": 0, "func": "static int dissect_pvfs2_mkdir_response ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"handle\" , NULL ) ;\n return offset ;\n }"}
{"idx": 3796, "target": 0, "func": "static PyObject * string_endswith ( PyStringObject * self , PyObject * args ) {\n Py_ssize_t start = 0 ;\n Py_ssize_t end = PY_SSIZE_T_MAX ;\n PyObject * subobj ;\n int result ;\n if ( ! stringlib_parse_args_finds ( \"endswith\" , args , & subobj , & start , & end ) ) return NULL ;\n if ( PyTuple_Check ( subobj ) ) {\n Py_ssize_t i ;\n for ( i = 0 ;\n i < PyTuple_GET_SIZE ( subobj ) ;\n i ++ ) {\n result = _string_tailmatch ( self , PyTuple_GET_ITEM ( subobj , i ) , start , end , + 1 ) ;\n if ( result == - 1 ) return NULL ;\n else if ( result ) {\n Py_RETURN_TRUE ;\n }\n }\n Py_RETURN_FALSE ;\n }\n result = _string_tailmatch ( self , subobj , start , end , + 1 ) ;\n if ( result == - 1 ) {\n if ( PyErr_ExceptionMatches ( PyExc_TypeError ) ) PyErr_Format ( PyExc_TypeError , \"endswith first arg must be str, \" \"unicode, or tuple, not %s\" , Py_TYPE ( subobj ) -> tp_name ) ;\n return NULL ;\n }\n else return PyBool_FromLong ( result ) ;\n }"}
{"idx": 3797, "target": 0, "func": "static ApplicationLaunchParameters * application_launch_parameters_new ( GAppInfo * application , GList * uris ) {\n ApplicationLaunchParameters * result ;\n result = g_new0 ( ApplicationLaunchParameters , 1 ) ;\n result -> application = g_object_ref ( application ) ;\n result -> uris = g_list_copy_deep ( uris , ( GCopyFunc ) g_strdup , NULL ) ;\n return result ;\n }"}
{"idx": 3798, "target": 0, "func": "static void dtap_cc_setup ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_TRUE ;\n ELEM_OPT_TV_SHORT ( 0xd0 , GSM_A_PDU_TYPE_DTAP , DE_REPEAT_IND , \" BC repeat indicator\" ) ;\n ELEM_OPT_TLV ( 0x04 , GSM_A_PDU_TYPE_DTAP , DE_BEARER_CAP , \" 1\" ) ;\n ELEM_OPT_TLV ( 0x04 , GSM_A_PDU_TYPE_DTAP , DE_BEARER_CAP , \" 2\" ) ;\n ELEM_OPT_TLV ( 0x1c , GSM_A_PDU_TYPE_DTAP , DE_FACILITY , NULL ) ;\n ELEM_OPT_TLV ( 0x1e , GSM_A_PDU_TYPE_DTAP , DE_PROG_IND , NULL ) ;\n ELEM_OPT_TV ( 0x34 , GSM_A_PDU_TYPE_DTAP , DE_SIGNAL , NULL ) ;\n ELEM_OPT_TLV ( 0x5c , GSM_A_PDU_TYPE_DTAP , DE_CLG_PARTY_BCD_NUM , NULL ) ;\n ELEM_OPT_TLV ( 0x5d , GSM_A_PDU_TYPE_DTAP , DE_CLG_PARTY_SUB_ADDR , NULL ) ;\n ELEM_OPT_TLV ( 0x5e , GSM_A_PDU_TYPE_DTAP , DE_CLD_PARTY_BCD_NUM , NULL ) ;\n ELEM_OPT_TLV ( 0x6d , GSM_A_PDU_TYPE_DTAP , DE_CLD_PARTY_SUB_ADDR , NULL ) ;\n ELEM_OPT_TLV ( 0x74 , GSM_A_PDU_TYPE_DTAP , DE_RED_PARTY_BCD_NUM , NULL ) ;\n ELEM_OPT_TLV ( 0x75 , GSM_A_PDU_TYPE_DTAP , DE_RED_PARTY_SUB_ADDR , NULL ) ;\n ELEM_OPT_TV_SHORT ( 0xd0 , GSM_A_PDU_TYPE_DTAP , DE_REPEAT_IND , \" LLC repeat indicator\" ) ;\n ELEM_OPT_TLV ( 0x7c , GSM_A_PDU_TYPE_DTAP , DE_LLC , \" 1\" ) ;\n ELEM_OPT_TLV ( 0x7c , GSM_A_PDU_TYPE_DTAP , DE_LLC , \" 2\" ) ;\n ELEM_OPT_TV_SHORT ( 0xd0 , GSM_A_PDU_TYPE_DTAP , DE_REPEAT_IND , \" HLC repeat indicator\" ) ;\n ELEM_OPT_TLV ( 0x7d , GSM_A_PDU_TYPE_DTAP , DE_HLC , \" 1\" ) ;\n ELEM_OPT_TLV ( 0x7d , GSM_A_PDU_TYPE_DTAP , DE_HLC , \" 2\" ) ;\n ELEM_OPT_TLV ( 0x7e , GSM_A_PDU_TYPE_DTAP , DE_USER_USER , NULL ) ;\n ELEM_OPT_TV_SHORT ( 0x80 , GSM_A_PDU_TYPE_COMMON , DE_PRIO , NULL ) ;\n ELEM_OPT_TLV ( 0x19 , GSM_A_PDU_TYPE_DTAP , DE_ALERT_PATTERN , NULL ) ;\n ELEM_OPT_TLV ( 0x2f , GSM_A_PDU_TYPE_DTAP , DE_NET_CC_CAP , NULL ) ;\n ELEM_OPT_TLV ( 0x3a , GSM_A_PDU_TYPE_DTAP , DE_CAUSE_NO_CLI , NULL ) ;\n ELEM_OPT_TLV ( 0x41 , GSM_A_PDU_TYPE_DTAP , DE_BEARER_CAP , NULL ) ;\n ELEM_OPT_TLV ( 0x7f , GSM_A_PDU_TYPE_DTAP , DE_SS_VER_IND , NULL ) ;\n ELEM_OPT_T ( 0xa1 , GSM_A_PDU_TYPE_DTAP , DE_CLIR_SUP , NULL ) ;\n ELEM_OPT_T ( 0xa2 , GSM_A_PDU_TYPE_DTAP , DE_CLIR_INV , NULL ) ;\n ELEM_OPT_TLV ( 0x15 , GSM_A_PDU_TYPE_DTAP , DE_CC_CAP , NULL ) ;\n ELEM_OPT_TLV ( 0x1d , GSM_A_PDU_TYPE_DTAP , DE_FACILITY , \" $(CCBS)$ (advanced recall alignment)\" ) ;\n ELEM_OPT_TLV ( 0x1b , GSM_A_PDU_TYPE_DTAP , DE_FACILITY , \" (recall alignment Not essential) $(CCBS)$\" ) ;\n ELEM_OPT_TLV ( 0x2d , GSM_A_PDU_TYPE_DTAP , DE_SI , NULL ) ;\n ELEM_OPT_TLV ( 0x40 , GSM_A_PDU_TYPE_DTAP , DE_SUP_CODEC_LIST , NULL ) ;\n ELEM_OPT_T ( 0xA3 , GSM_A_PDU_TYPE_DTAP , DE_REDIAL , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 3799, "target": 0, "func": "static GList * completion_channel_nicks ( CHANNEL_REC * channel , const char * nick , const char * suffix ) {\n GSList * nicks , * tmp ;\n GList * list ;\n char * str ;\n int len , match_case ;\n g_return_val_if_fail ( channel != NULL , NULL ) ;\n g_return_val_if_fail ( nick != NULL , NULL ) ;\n if ( * nick == '\\0' ) return NULL ;\n if ( suffix != NULL && * suffix == '\\0' ) suffix = NULL ;\n match_case = completion_match_case == COMPLETE_MCASE_ALWAYS || ( completion_match_case == COMPLETE_MCASE_AUTO && contains_uppercase ( nick ) ) ;\n list = NULL ;\n complete_from_nicklist ( & list , channel , nick , suffix , match_case ) ;\n len = strlen ( nick ) ;\n nicks = nicklist_getnicks ( channel ) ;\n for ( tmp = nicks ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n NICK_REC * rec = tmp -> data ;\n if ( ( match_case ? strncmp ( rec -> nick , nick , len ) : g_ascii_strncasecmp ( rec -> nick , nick , len ) ) == 0 && rec != channel -> ownnick ) {\n str = g_strconcat ( rec -> nick , suffix , NULL ) ;\n if ( completion_lowercase ) ascii_strdown ( str ) ;\n if ( glist_find_icase_string ( list , str ) == NULL ) list = g_list_append ( list , str ) ;\n else g_free ( str ) ;\n }\n }\n g_slist_free ( nicks ) ;\n if ( ! completion_strict ) list = g_list_concat ( list , completion_nicks_nonstrict ( channel , nick , suffix , match_case ) ) ;\n return list ;\n }"}
{"idx": 3800, "target": 0, "func": "static int pfkey_get ( struct sock * sk , struct sk_buff * skb , const struct sadb_msg * hdr , void * const * ext_hdrs ) {\n struct net * net = sock_net ( sk ) ;\n __u8 proto ;\n struct sk_buff * out_skb ;\n struct sadb_msg * out_hdr ;\n struct xfrm_state * x ;\n if ( ! ext_hdrs [ SADB_EXT_SA - 1 ] || ! present_and_same_family ( ext_hdrs [ SADB_EXT_ADDRESS_SRC - 1 ] , ext_hdrs [ SADB_EXT_ADDRESS_DST - 1 ] ) ) return - EINVAL ;\n x = pfkey_xfrm_state_lookup ( net , hdr , ext_hdrs ) ;\n if ( x == NULL ) return - ESRCH ;\n out_skb = pfkey_xfrm_state2msg ( x ) ;\n proto = x -> id . proto ;\n xfrm_state_put ( x ) ;\n if ( IS_ERR ( out_skb ) ) return PTR_ERR ( out_skb ) ;\n out_hdr = ( struct sadb_msg * ) out_skb -> data ;\n out_hdr -> sadb_msg_version = hdr -> sadb_msg_version ;\n out_hdr -> sadb_msg_type = SADB_GET ;\n out_hdr -> sadb_msg_satype = pfkey_proto2satype ( proto ) ;\n out_hdr -> sadb_msg_errno = 0 ;\n out_hdr -> sadb_msg_reserved = 0 ;\n out_hdr -> sadb_msg_seq = hdr -> sadb_msg_seq ;\n out_hdr -> sadb_msg_pid = hdr -> sadb_msg_pid ;\n pfkey_broadcast ( out_skb , GFP_ATOMIC , BROADCAST_ONE , sk , sock_net ( sk ) ) ;\n return 0 ;\n }"}
{"idx": 3801, "target": 0, "func": "static int dissect_SYSTEM_TIME_ptr ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ;\n char * str ;\n offset = dissect_SYSTEM_TIME ( tvb , offset , pinfo , tree , di , drep , NULL , FALSE , & str ) ;\n dcv -> private_data = str ;\n return offset ;\n }"}
{"idx": 3802, "target": 0, "func": "static int show_object_fast ( const unsigned char * sha1 , enum object_type type , int exclude , uint32_t name_hash , struct packed_git * found_pack , off_t found_offset ) {\n fprintf ( stdout , \"%s\\n\" , sha1_to_hex ( sha1 ) ) ;\n return 1 ;\n }"}
{"idx": 3803, "target": 0, "func": "void * hb_font_funcs_get_user_data ( hb_font_funcs_t * ffuncs , hb_user_data_key_t * key ) {\n return hb_object_get_user_data ( ffuncs , key ) ;\n }"}
{"idx": 3804, "target": 0, "func": "static int matroska_parse_flac ( AVFormatContext * s , MatroskaTrack * track , int * offset ) {\n AVStream * st = track -> stream ;\n uint8_t * p = track -> codec_priv . data ;\n int size = track -> codec_priv . size ;\n if ( size < 8 + FLAC_STREAMINFO_SIZE || p [ 4 ] & 0x7f ) {\n av_log ( s , AV_LOG_WARNING , \"Invalid FLAC private data\\n\" ) ;\n track -> codec_priv . size = 0 ;\n return 0 ;\n }\n * offset = 8 ;\n track -> codec_priv . size = 8 + FLAC_STREAMINFO_SIZE ;\n p += track -> codec_priv . size ;\n size -= track -> codec_priv . size ;\n while ( size >= 4 ) {\n int block_last , block_type , block_size ;\n flac_parse_block_header ( p , & block_last , & block_type , & block_size ) ;\n p += 4 ;\n size -= 4 ;\n if ( block_size > size ) return 0 ;\n if ( block_type == FLAC_METADATA_TYPE_VORBIS_COMMENT ) {\n AVDictionary * dict = NULL ;\n AVDictionaryEntry * chmask ;\n ff_vorbis_comment ( s , & dict , p , block_size , 0 ) ;\n chmask = av_dict_get ( dict , \"WAVEFORMATEXTENSIBLE_CHANNEL_MASK\" , NULL , 0 ) ;\n if ( chmask ) {\n uint64_t mask = strtol ( chmask -> value , NULL , 0 ) ;\n if ( ! mask || mask & ~ 0x3ffffULL ) {\n av_log ( s , AV_LOG_WARNING , \"Invalid value of WAVEFORMATEXTENSIBLE_CHANNEL_MASK\\n\" ) ;\n }\n else st -> codec -> channel_layout = mask ;\n }\n av_dict_free ( & dict ) ;\n }\n p += block_size ;\n size -= block_size ;\n }\n return 0 ;\n }"}
{"idx": 3805, "target": 0, "func": "int dissect_h225_RasMessage ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 294 \"./asn1/h225/h225.cnf\" gint32 rasmessage_value ;\n h225_packet_info * h225_pi ;\n call_id_guid = NULL ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_RasMessage , RasMessage_choice , & rasmessage_value ) ;\n col_add_fstr ( actx -> pinfo -> cinfo , COL_INFO , \"RAS: %s \" , val_to_str ( rasmessage_value , h225_RasMessage_vals , \"<unknown>\" ) ) ;\n h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> msg_tag = rasmessage_value ;\n if ( call_id_guid ) {\n h225_pi -> guid = * call_id_guid ;\n }\n }\n return offset ;\n }"}
{"idx": 3806, "target": 0, "func": "static int avi_read_idx1 ( AVFormatContext * s , int size ) {\n AVIContext * avi = s -> priv_data ;\n AVIOContext * pb = s -> pb ;\n int nb_index_entries , i ;\n AVStream * st ;\n AVIStream * ast ;\n int64_t pos ;\n unsigned int index , tag , flags , len , first_packet = 1 ;\n int64_t last_pos = - 1 ;\n unsigned last_idx = - 1 ;\n int64_t idx1_pos , first_packet_pos = 0 , data_offset = 0 ;\n int anykey = 0 ;\n nb_index_entries = size / 16 ;\n if ( nb_index_entries <= 0 ) return AVERROR_INVALIDDATA ;\n idx1_pos = avio_tell ( pb ) ;\n avio_seek ( pb , avi -> movi_list + 4 , SEEK_SET ) ;\n if ( avi_sync ( s , 1 ) == 0 ) first_packet_pos = avio_tell ( pb ) - 8 ;\n avi -> stream_index = - 1 ;\n avio_seek ( pb , idx1_pos , SEEK_SET ) ;\n if ( s -> nb_streams == 1 && s -> streams [ 0 ] -> codecpar -> codec_tag == AV_RL32 ( \"MMES\" ) ) {\n first_packet_pos = 0 ;\n data_offset = avi -> movi_list ;\n }\n for ( i = 0 ;\n i < nb_index_entries ;\n i ++ ) {\n if ( avio_feof ( pb ) ) return - 1 ;\n tag = avio_rl32 ( pb ) ;\n flags = avio_rl32 ( pb ) ;\n pos = avio_rl32 ( pb ) ;\n len = avio_rl32 ( pb ) ;\n av_log ( s , AV_LOG_TRACE , \"%d: tag=0x%x flags=0x%x pos=0x%\" PRIx64 \" len=%d/\" , i , tag , flags , pos , len ) ;\n index = ( ( tag & 0xff ) - '0' ) * 10 ;\n index += ( tag >> 8 & 0xff ) - '0' ;\n if ( index >= s -> nb_streams ) continue ;\n st = s -> streams [ index ] ;\n ast = st -> priv_data ;\n if ( ( tag >> 16 & 0xff ) == 'p' && ( tag >> 24 & 0xff ) == 'c' ) continue ;\n if ( first_packet && first_packet_pos ) {\n if ( avi -> movi_list + 4 != pos || pos + 500 > first_packet_pos ) data_offset = first_packet_pos - pos ;\n first_packet = 0 ;\n }\n pos += data_offset ;\n av_log ( s , AV_LOG_TRACE , \"%d cum_len=%\" PRId64 \"\\n\" , len , ast -> cum_len ) ;\n if ( last_pos == pos ) avi -> non_interleaved = 1 ;\n if ( last_idx != pos && len ) {\n av_add_index_entry ( st , pos , ast -> cum_len , len , 0 , ( flags & AVIIF_INDEX ) ? AVINDEX_KEYFRAME : 0 ) ;\n last_idx = pos ;\n }\n ast -> cum_len += get_duration ( ast , len ) ;\n last_pos = pos ;\n anykey |= flags & AVIIF_INDEX ;\n }\n if ( ! anykey ) {\n for ( index = 0 ;\n index < s -> nb_streams ;\n index ++ ) {\n st = s -> streams [ index ] ;\n if ( st -> nb_index_entries ) st -> index_entries [ 0 ] . flags |= AVINDEX_KEYFRAME ;\n }\n }\n return 0 ;\n }"}
{"idx": 3807, "target": 0, "func": "static void test_date_frac ( ) {\n int rc ;\n myheader ( \"test_date\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_date\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_date(c1 TIMESTAMP(6), \\ c2 TIME(6), \\ c3 DATETIME(6), \\ c4 DATE)\" ) ;\n myquery ( rc ) ;\n bind_date_conv ( 5 , TRUE ) ;\n }"}
{"idx": 3808, "target": 0, "func": "const vpx_codec_cx_pkt_t * vpx_codec_pkt_list_get ( struct vpx_codec_pkt_list * list , vpx_codec_iter_t * iter ) {\n const vpx_codec_cx_pkt_t * pkt ;\n if ( ! ( * iter ) ) {\n * iter = list -> pkts ;\n }\n pkt = ( const vpx_codec_cx_pkt_t * ) * iter ;\n if ( ( size_t ) ( pkt - list -> pkts ) < list -> cnt ) * iter = pkt + 1 ;\n else pkt = NULL ;\n return pkt ;\n }"}
{"idx": 3809, "target": 1, "func": "static void _UTF16LEFromUnicodeWithOffsets ( UConverterFromUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n UConverter * cnv ;\n const UChar * source ;\n char * target ;\n int32_t * offsets ;\n uint32_t targetCapacity , length , sourceIndex ;\n UChar c , trail ;\n char overflow [ 4 ] ;\n source = pArgs -> source ;\n length = ( int32_t ) ( pArgs -> sourceLimit - source ) ;\n if ( length <= 0 ) {\n return ;\n }\n cnv = pArgs -> converter ;\n if ( cnv -> fromUnicodeStatus == UCNV_NEED_TO_WRITE_BOM ) {\n static const char bom [ ] = {\n ( char ) 0xff , ( char ) 0xfe }\n ;\n ucnv_fromUWriteBytes ( cnv , bom , 2 , & pArgs -> target , pArgs -> targetLimit , & pArgs -> offsets , - 1 , pErrorCode ) ;\n cnv -> fromUnicodeStatus = 0 ;\n }\n target = pArgs -> target ;\n if ( target >= pArgs -> targetLimit ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n return ;\n }\n targetCapacity = ( uint32_t ) ( pArgs -> targetLimit - pArgs -> target ) ;\n offsets = pArgs -> offsets ;\n sourceIndex = 0 ;\n if ( ( c = ( UChar ) cnv -> fromUChar32 ) != 0 && U16_IS_TRAIL ( trail = * source ) && targetCapacity >= 4 ) {\n ++ source ;\n -- length ;\n target [ 0 ] = ( uint8_t ) c ;\n target [ 1 ] = ( uint8_t ) ( c >> 8 ) ;\n target [ 2 ] = ( uint8_t ) trail ;\n target [ 3 ] = ( uint8_t ) ( trail >> 8 ) ;\n target += 4 ;\n targetCapacity -= 4 ;\n if ( offsets != NULL ) {\n * offsets ++ = - 1 ;\n * offsets ++ = - 1 ;\n * offsets ++ = - 1 ;\n * offsets ++ = - 1 ;\n }\n sourceIndex = 1 ;\n cnv -> fromUChar32 = c = 0 ;\n }\n if ( c == 0 ) {\n uint32_t count = 2 * length ;\n if ( count > targetCapacity ) {\n count = targetCapacity & ~ 1 ;\n }\n targetCapacity -= count ;\n count >>= 1 ;\n length -= count ;\n if ( offsets == NULL ) {\n while ( count > 0 ) {\n c = * source ++ ;\n if ( U16_IS_SINGLE ( c ) ) {\n target [ 0 ] = ( uint8_t ) c ;\n target [ 1 ] = ( uint8_t ) ( c >> 8 ) ;\n target += 2 ;\n }\n else if ( U16_IS_SURROGATE_LEAD ( c ) && count >= 2 && U16_IS_TRAIL ( trail = * source ) ) {\n ++ source ;\n -- count ;\n target [ 0 ] = ( uint8_t ) c ;\n target [ 1 ] = ( uint8_t ) ( c >> 8 ) ;\n target [ 2 ] = ( uint8_t ) trail ;\n target [ 3 ] = ( uint8_t ) ( trail >> 8 ) ;\n target += 4 ;\n }\n else {\n break ;\n }\n -- count ;\n }\n }\n else {\n while ( count > 0 ) {\n c = * source ++ ;\n if ( U16_IS_SINGLE ( c ) ) {\n target [ 0 ] = ( uint8_t ) c ;\n target [ 1 ] = ( uint8_t ) ( c >> 8 ) ;\n target += 2 ;\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ++ ;\n }\n else if ( U16_IS_SURROGATE_LEAD ( c ) && count >= 2 && U16_IS_TRAIL ( trail = * source ) ) {\n ++ source ;\n -- count ;\n target [ 0 ] = ( uint8_t ) c ;\n target [ 1 ] = ( uint8_t ) ( c >> 8 ) ;\n target [ 2 ] = ( uint8_t ) trail ;\n target [ 3 ] = ( uint8_t ) ( trail >> 8 ) ;\n target += 4 ;\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ;\n sourceIndex += 2 ;\n }\n else {\n break ;\n }\n -- count ;\n }\n }\n if ( count == 0 ) {\n if ( length > 0 && targetCapacity > 0 ) {\n if ( U16_IS_SINGLE ( c = * source ++ ) ) {\n overflow [ 0 ] = ( char ) c ;\n overflow [ 1 ] = ( char ) ( c >> 8 ) ;\n length = 2 ;\n c = 0 ;\n }\n }\n else {\n length = 0 ;\n c = 0 ;\n }\n }\n else {\n targetCapacity += 2 * count ;\n }\n }\n else {\n length = 0 ;\n }\n if ( c != 0 ) {\n length = 0 ;\n if ( U16_IS_SURROGATE_LEAD ( c ) ) {\n if ( source < pArgs -> sourceLimit ) {\n if ( U16_IS_TRAIL ( trail = * source ) ) {\n ++ source ;\n overflow [ 0 ] = ( char ) c ;\n overflow [ 1 ] = ( char ) ( c >> 8 ) ;\n overflow [ 2 ] = ( char ) trail ;\n overflow [ 3 ] = ( char ) ( trail >> 8 ) ;\n length = 4 ;\n c = 0 ;\n }\n else {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n else {\n }\n }\n else {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n }\n cnv -> fromUChar32 = c ;\n }\n if ( length > 0 ) {\n ucnv_fromUWriteBytes ( cnv , overflow , length , & target , pArgs -> targetLimit , & offsets , sourceIndex , pErrorCode ) ;\n targetCapacity = ( uint32_t ) ( pArgs -> targetLimit - ( char * ) target ) ;\n }\n if ( U_SUCCESS ( * pErrorCode ) && source < pArgs -> sourceLimit && targetCapacity == 0 ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n pArgs -> source = source ;\n pArgs -> target = target ;\n pArgs -> offsets = offsets ;\n }"}
{"idx": 3810, "target": 0, "func": "static int dissect_h225_H310Caps ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_H310Caps , H310Caps_sequence ) ;\n return offset ;\n }"}
{"idx": 3811, "target": 0, "func": "static int dissect_h225_BMPString ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_BMPString ( tvb , offset , actx , tree , hf_index , NO_BOUND , NO_BOUND , FALSE ) ;\n return offset ;\n }"}
{"idx": 3812, "target": 0, "func": "void vp9_rc_compute_frame_size_bounds ( const VP9_COMP * cpi , int frame_target , int * frame_under_shoot_limit , int * frame_over_shoot_limit ) {\n if ( cpi -> oxcf . rc_mode == VPX_Q ) {\n * frame_under_shoot_limit = 0 ;\n * frame_over_shoot_limit = INT_MAX ;\n }\n else {\n const int tolerance = ( cpi -> sf . recode_tolerance * frame_target ) / 100 ;\n * frame_under_shoot_limit = MAX ( frame_target - tolerance - 200 , 0 ) ;\n * frame_over_shoot_limit = MIN ( frame_target + tolerance + 200 , cpi -> rc . max_frame_bandwidth ) ;\n }\n }"}
{"idx": 3813, "target": 0, "func": "void proto_register_gsm_a_dtap ( void ) {\n guint i ;\n guint last_offset ;\n static hf_register_info hf [ ] = {\n {\n & hf_gsm_a_seq_no , {\n \"Sequence number\" , \"gsm_a.dtap.seq_no\" , FT_UINT8 , BASE_DEC , NULL , 0xc0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_msg_gcc_type , {\n \"DTAP Group Call Control Message Type\" , \"gsm_a.dtap.msg_gcc_type\" , FT_UINT8 , BASE_HEX , VALS ( gsm_a_dtap_msg_gcc_strings ) , 0x3f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_msg_bcc_type , {\n \"DTAP Broadcast Call Control Message Type\" , \"gsm_a.dtap.msg_bcc_type\" , FT_UINT8 , BASE_HEX , VALS ( gsm_a_dtap_msg_bcc_strings ) , 0x3f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_msg_mm_type , {\n \"DTAP Mobility Management Message Type\" , \"gsm_a.dtap.msg_mm_type\" , FT_UINT8 , BASE_HEX , VALS ( gsm_a_dtap_msg_mm_strings ) , 0x3f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_msg_cc_type , {\n \"DTAP Call Control Message Type\" , \"gsm_a.dtap.msg_cc_type\" , FT_UINT8 , BASE_HEX , VALS ( gsm_a_dtap_msg_cc_strings ) , 0x3f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_msg_sms_type , {\n \"DTAP Short Message Service Message Type\" , \"gsm_a.dtap.msg_sms_type\" , FT_UINT8 , BASE_HEX , VALS ( gsm_a_dtap_msg_sms_strings ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_msg_ss_type , {\n \"DTAP Non call Supplementary Service Message Type\" , \"gsm_a.dtap.msg_ss_type\" , FT_UINT8 , BASE_HEX , VALS ( gsm_a_dtap_msg_ss_strings ) , 0x3f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_msg_tp_type , {\n \"DTAP Tests Procedures Message Type\" , \"gsm_a.dtap.msg_tp_type\" , FT_UINT8 , BASE_HEX , VALS ( gsm_a_dtap_msg_tp_strings ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_elem_id , {\n \"Element ID\" , \"gsm_a.dtap.elem_id\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_cld_party_bcd_num , {\n \"Called Party BCD Number\" , \"gsm_a.dtap.cld_party_bcd_num\" , FT_STRING , BASE_NONE , 0 , 0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_clg_party_bcd_num , {\n \"Calling Party BCD Number\" , \"gsm_a.dtap.clg_party_bcd_num\" , FT_STRING , BASE_NONE , 0 , 0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_conn_num , {\n \"Connected Number\" , \"gsm_a.dtap.conn_num\" , FT_STRING , BASE_NONE , 0 , 0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_red_party_bcd_num , {\n \"Redirecting Party BCD Number\" , \"gsm_a.dtap.red_party_bcd_num\" , FT_STRING , BASE_NONE , 0 , 0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_cause , {\n \"DTAP Cause\" , \"gsm_a.dtap.cause\" , FT_UINT8 , BASE_HEX , 0 , 0x7f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_type_of_number , {\n \"Type of number\" , \"gsm_a.dtap.type_of_number\" , FT_UINT8 , BASE_HEX , VALS ( gsm_a_dtap_type_of_number_values ) , 0x70 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_numbering_plan_id , {\n \"Numbering plan identification\" , \"gsm_a.dtap.numbering_plan_id\" , FT_UINT8 , BASE_HEX , VALS ( gsm_a_dtap_numbering_plan_id_values ) , 0x0f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_present_ind , {\n \"Presentation indicator\" , \"gsm_a.dtap.present_ind\" , FT_UINT8 , BASE_HEX , VALS ( gsm_a_dtap_present_ind_values ) , 0x60 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_screening_ind , {\n \"Screening indicator\" , \"gsm_a.dtap.screening_ind\" , FT_UINT8 , BASE_HEX , VALS ( gsm_a_dtap_screening_ind_values ) , 0x03 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_type_of_sub_addr , {\n \"Type of subaddress\" , \"gsm_a.dtap.type_of_sub_addr\" , FT_UINT8 , BASE_HEX , VALS ( gsm_a_dtap_type_of_sub_addr_values ) , 0x70 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_odd_even_ind , {\n \"Odd/even indicator\" , \"gsm_a.dtap.odd_even_ind\" , FT_UINT8 , BASE_HEX , VALS ( gsm_a_dtap_odd_even_ind_values ) , 0x08 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_lsa_id , {\n \"LSA Identifier\" , \"gsm_a.dtap.lsa_id\" , FT_UINT24 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_speech_vers_ind , {\n \"Speech version indication\" , \"gsm_a.dtap.speech_vers_ind\" , FT_UINT8 , BASE_HEX , VALS ( gsm_a_dtap_speech_vers_ind_values ) , 0x0f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_itc , {\n \"Information transfer capability\" , \"gsm_a.dtap.itc\" , FT_UINT8 , BASE_HEX , VALS ( gsm_a_dtap_itc_values ) , 0x07 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_sysid , {\n \"System Identification (SysID)\" , \"gsm_a.dtap.sysid\" , FT_UINT8 , BASE_HEX , VALS ( gsm_a_dtap_sysid_values ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_bitmap_length , {\n \"Bitmap Length\" , \"gsm_a.dtap.bitmap_length\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_serv_cat_b7 , {\n \"Automatically initiated eCall\" , \"gsm_a.dtap.serv_cat_b7\" , FT_BOOLEAN , 8 , NULL , 0x40 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_serv_cat_b6 , {\n \"Manually initiated eCall\" , \"gsm_a.dtap.serv_cat_b6\" , FT_BOOLEAN , 8 , NULL , 0x20 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_serv_cat_b5 , {\n \"Mountain Rescue\" , \"gsm_a.dtap.serv_cat_b5\" , FT_BOOLEAN , 8 , NULL , 0x10 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_serv_cat_b4 , {\n \"Marine Guard\" , \"gsm_a.dtap.serv_cat_b4\" , FT_BOOLEAN , 8 , NULL , 0x08 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_serv_cat_b3 , {\n \"Fire Brigade\" , \"gsm_a.dtap.serv_cat_b3\" , FT_BOOLEAN , 8 , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_serv_cat_b2 , {\n \"Ambulance\" , \"gsm_a.dtap.serv_cat_b2\" , FT_BOOLEAN , 8 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_serv_cat_b1 , {\n \"Police\" , \"gsm_a.dtap.serv_cat_b1\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_csmo , {\n \"CSMO\" , \"gsm_a.dtap.csmo\" , FT_BOOLEAN , BASE_NONE , TFS ( & gsm_a_dtap_csmo_value ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_csmt , {\n \"CSMT\" , \"gsm_a.dtap.csmt\" , FT_BOOLEAN , BASE_NONE , TFS ( & gsm_a_dtap_csmt_value ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_mm_timer_unit , {\n \"Unit\" , \"gsm_a.dtap.mm_timer_unit\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_dtap_mm_timer_unit_vals ) , 0xe0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_mm_timer_value , {\n \"Timer value\" , \"gsm_a.dtap.mm_timer_value\" , FT_UINT8 , BASE_DEC , NULL , 0x1f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_alerting_pattern , {\n \"Alerting Pattern\" , \"gsm_a.dtap.alerting_pattern\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_alerting_pattern_vals ) , 0x0f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_ccbs_activation , {\n \"CCBS Activation\" , \"gsm_a.dtap.ccbs_activation\" , FT_BOOLEAN , 8 , TFS ( & gsm_a_ccbs_activation_value ) , 0x80 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_stream_identifier , {\n \"Stream Identifier\" , \"gsm_a.dtap.stream_identifier\" , FT_UINT8 , BASE_HEX , 0 , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_mcs , {\n \"MCS\" , \"gsm_a.dtap.mcs\" , FT_BOOLEAN , 8 , TFS ( & gsm_a_mcs_value ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_cause_of_no_cli , {\n \"Cause of no CLI\" , \"gsm_a.dtap.cause_of_no_cli\" , FT_UINT8 , BASE_HEX , 0 , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_cause_ss_diagnostics , {\n \"Supplementary Services Diagnostics\" , \"gsm_a.dtap.cause_ss_diagnostics\" , FT_UINT8 , BASE_HEX , VALS ( gsm_a_dtap_cause_ss_diagnostics_vals ) , 0x7f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_codec_tdma_efr , {\n \"TDMA EFR\" , \"gsm_a.dtap.codec.tdma_efr\" , FT_BOOLEAN , 8 , NULL , 0x80 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_codec_umts_amr_2 , {\n \"UMTS AMR 2\" , \"gsm_a.dtap.codec.umts_amr_2\" , FT_BOOLEAN , 8 , NULL , 0x40 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_codec_umts_amr , {\n \"UMTS AMR\" , \"gsm_a.dtap.codec.umts_amr\" , FT_BOOLEAN , 8 , NULL , 0x20 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_codec_hr_amr , {\n \"HR AMR\" , \"gsm_a.dtap.codec.hr_amr\" , FT_BOOLEAN , 8 , NULL , 0x10 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_codec_fr_amr , {\n \"FR AMR\" , \"gsm_a.dtap.codec.fr_amr\" , FT_BOOLEAN , 8 , NULL , 0x08 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_codec_gsm_efr , {\n \"GSM EFR\" , \"gsm_a.dtap.codec.gsm_efr\" , FT_BOOLEAN , 8 , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_codec_gsm_hr , {\n \"GSM HR\" , \"gsm_a.dtap.codec.gsm_hr\" , FT_BOOLEAN , 8 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_codec_gsm_fr , {\n \"GSM FR\" , \"gsm_a.dtap.codec.gsm_fr\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_codec_ohr_amr_wb , {\n \"OHR AMR-WB\" , \"gsm_a.dtap.codec.ohr_amr_wb\" , FT_BOOLEAN , 8 , NULL , 0x20 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_codec_ofr_amr_wb , {\n \"OFR AMR-WB\" , \"gsm_a.dtap.codec.ofr_amr_wb\" , FT_BOOLEAN , 8 , NULL , 0x10 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_codec_ohr_amr , {\n \"OHR AMR\" , \"gsm_a.dtap.codec.ohr_amr\" , FT_BOOLEAN , 8 , NULL , 0x08 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_codec_umts_amr_wb , {\n \"UMTS AMR-WB\" , \"gsm_a.dtap.codec.umts_amr_wb\" , FT_BOOLEAN , 8 , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_codec_fr_amr_wb , {\n \"FR AMR-WB\" , \"gsm_a.dtap.codec.fr_amr_wb\" , FT_BOOLEAN , 8 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_codec_pdc_efr , {\n \"PDC EFR\" , \"gsm_a.dtap.codec.pdc_efr\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_notification_description , {\n \"Notification description\" , \"gsm_a.dtap.notif_descr\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_dtap_notification_description_vals ) , 0x7f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_emerg_num_info_length , {\n \"Emergency Number Info length\" , \"gsm_a.dtap.emerg_num_info_length\" , FT_UINT8 , BASE_DEC , 0 , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_emergency_bcd_num , {\n \"Emergency BCD Number\" , \"gsm_a.dtap.emergency_bcd_num\" , FT_STRING , BASE_NONE , 0 , 0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_signal_value , {\n \"Signal value\" , \"gsm_a.dtap.signal_value\" , FT_UINT8 , BASE_HEX , VALS ( gsm_a_dtap_signal_value_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_recall_type , {\n \"Recall type\" , \"gsm_a.dtap.recall_type\" , FT_UINT8 , BASE_HEX | BASE_RANGE_STRING , RVALS ( gsm_a_dtap_recall_type_vals ) , 0x07 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_coding_standard , {\n \"Coding standard\" , \"gsm_a.dtap.coding_standard\" , FT_UINT8 , BASE_HEX , VALS ( gsm_a_dtap_coding_standard_vals ) , 0xc0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_call_state , {\n \"Call state\" , \"gsm_a.dtap.call_state\" , FT_UINT8 , BASE_DEC , NULL , 0x3f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_prog_coding_standard , {\n \"Coding standard\" , \"gsm_a.dtap.coding_standard\" , FT_UINT8 , BASE_HEX , VALS ( gsm_a_dtap_coding_standard_vals ) , 0x60 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_location , {\n \"Location\" , \"gsm_a.dtap.location\" , FT_UINT8 , BASE_HEX , VALS ( gsm_a_dtap_location_vals ) , 0x0f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_progress_description , {\n \"Progress description\" , \"gsm_a.dtap.progress_description\" , FT_UINT8 , BASE_DEC , NULL , 0x7f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_afi , {\n \"Authority and Format Identifier\" , \"gsm_a.dtap.afi\" , FT_UINT8 , BASE_HEX | BASE_EXT_STRING , & x213_afi_value_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_rej_cause , {\n \"Reject cause\" , \"gsm_a.dtap.rej_cause\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_timezone , {\n \"Timezone\" , \"gsm_a.dtap.timezone\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_u2u_prot_discr , {\n \"User-user protocol discriminator\" , \"gsm_a.dtap.u2u_prot_discr\" , FT_UINT8 , BASE_HEX | BASE_RANGE_STRING , RVALS ( gsm_a_dtap_u2u_prot_discr_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_mcat , {\n \"MCAT\" , \"gsm_a.dtap.mcat\" , FT_BOOLEAN , 8 , TFS ( & gsm_a_dtap_mcat_value ) , 0x08 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_enicm , {\n \"ENICM\" , \"gsm_a.dtap.mcat\" , FT_BOOLEAN , 8 , TFS ( & gsm_a_dtap_enicm_value ) , 0x04 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_rand , {\n \"RAND value\" , \"gsm_a.dtap.rand\" , FT_BYTES , FT_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_autn , {\n \"AUTN value\" , \"gsm_a.dtap.autn\" , FT_BYTES , FT_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_sres , {\n \"SRES value\" , \"gsm_a.dtap.sres\" , FT_BYTES , FT_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_xres , {\n \"XRES value\" , \"gsm_a.dtap.xres\" , FT_BYTES , FT_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_auts , {\n \"AUTS value\" , \"gsm_a.dtap.auts\" , FT_BYTES , FT_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_autn_sqn_xor_ak , {\n \"SQN xor AK\" , \"gsm_a.dtap.autn.sqn_xor_ak\" , FT_BYTES , FT_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_autn_amf , {\n \"AMF\" , \"gsm_a.dtap.autn.amf\" , FT_BYTES , FT_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_autn_mac , {\n \"MAC\" , \"gsm_a.dtap.autn.mac\" , FT_BYTES , FT_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_auts_sqn_ms_xor_ak , {\n \"SQN_MS xor AK\" , \"gsm_a.dtap.auts.sqn_ms_xor_ak\" , FT_BYTES , FT_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_auts_mac_s , {\n \"MAC-S\" , \"gsm_a.dtap.auts.mac_s\" , FT_BYTES , FT_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_epc_ue_tl_mode , {\n \"UE test loop mode\" , \"gsm_a.dtap.epc.ue_tl_mode\" , FT_UINT8 , BASE_DEC , VALS ( epc_ue_test_loop_mode_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_epc_ue_tl_a_ul_sdu_size , {\n \"Uplink PDCP SDU size in bits\" , \"gsm_a.dtap.epc.ue_tl_a_ul_sdu_size\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_epc_ue_tl_a_drb , {\n \"Data Radio Bearer identity number\" , \"gsm_a.dtap.epc.ue_tl_a_drb\" , FT_UINT8 , BASE_DEC , NULL , 0x1f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_epc_ue_tl_b_ip_pdu_delay , {\n \"IP PDU delay in seconds\" , \"gsm_a.dtap.epc.ue_tl_b_ip_pdu_delay\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_epc_ue_tl_c_mbsfn_area_id , {\n \"MBSFN area identity\" , \"gsm_a.dtap.epc.ue_tl_c_mbsfn_area_id\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_epc_ue_tl_c_mch_id , {\n \"MCH identity\" , \"gsm_a.dtap.epc.ue_tl_c_mch_id\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_epc_ue_tl_c_lcid , {\n \"Logical channel identity\" , \"gsm_a.dtap.epc.ue_tl_c_lcid\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_epc_ue_positioning_technology , {\n \"UE positioning technology\" , \"gsm_a.dtap.epc.ue_positioning_technology\" , FT_UINT8 , BASE_DEC , VALS ( epc_ue_positioning_technology_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_epc_mbms_packet_counter_value , {\n \"MBMS packet counter value\" , \"gsm_a.dtap.epc.mbms_packet_counter_value\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_epc_latitude_sign , {\n \"Latitude Sign\" , \"gsm_a.dtap.epc.latitude_sign\" , FT_BOOLEAN , BASE_NONE , TFS ( & epc_latitude_sign_value ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_epc_degrees_latitude , {\n \"Degrees Latitude\" , \"gsm_a.dtap.epc.degrees_latitude\" , FT_UINT24 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_epc_degrees_longitude , {\n \"Degrees Longitude\" , \"gsm_a.dtap.epc.degrees_longitude\" , FT_INT24 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_epc_altitude_dir , {\n \"Altitude Direction\" , \"gsm_a.dtap.epc.altitude_direction\" , FT_BOOLEAN , BASE_NONE , TFS ( & epc_altitude_dir_value ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_epc_altitude , {\n \"Altitude\" , \"gsm_a.dtap.epc.altitude\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_epc_bearing , {\n \"Bearing\" , \"gsm_a.dtap.epc.bearing\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_epc_horizontal_speed , {\n \"Horizontal Speed\" , \"gsm_a.dtap.epc.horizontal_speed\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_epc_gnss_tod_msec , {\n \"GNSS-TOD-msec\" , \"gsm_a.dtap.epc.gnss_tod_msec\" , FT_UINT24 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_gcc_call_ref , {\n \"Call Reference\" , \"gsm_a.dtap.gcc.call_ref\" , FT_UINT32 , BASE_DEC , NULL , 0xffffffe0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_gcc_call_ref_has_priority , {\n \"Call Reference includes priority\" , \"gsm_a.dtap.gcc.call_ref_has_priority\" , FT_BOOLEAN , 32 , NULL , 0x00000010 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_gcc_call_priority , {\n \"Call Priority\" , \"gsm_a.dtap.gcc.call_priority\" , FT_UINT32 , BASE_DEC , VALS ( gcc_call_ref_priority ) , 0x0000000e , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_gcc_call_state , {\n \"Call state\" , \"gsm_a.dtap.gcc.call_state\" , FT_UINT24 , BASE_DEC , VALS ( gcc_call_state_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_gcc_cause_structure , {\n \"Cause structure\" , \"gsm_a.dtap.gcc.cause_structure\" , FT_BOOLEAN , 8 , TFS ( & gcc_cause_structure_val ) , 0x80 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_gcc_cause , {\n \"Cause\" , \"gsm_a.dtap.gcc.cause\" , FT_UINT8 , BASE_DEC | BASE_RANGE_STRING , RVALS ( gcc_cause_vals ) , 0x7f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_gcc_orig_ind , {\n \"Originator indication\" , \"gsm_a.dtap.gcc.orig_ind\" , FT_BOOLEAN , 8 , TFS ( & gcc_orig_ind_vals ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_gcc_state_attr , {\n \"State attributes\" , \"gsm_a.dtap.gcc.state_attr\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_gcc_state_attr_da , {\n \"DA\" , \"gsm_a.dtap.gcc.state_attr_da\" , FT_BOOLEAN , 8 , TFS ( & gcc_state_attr_da ) , 0x08 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_gcc_state_attr_ua , {\n \"UA\" , \"gsm_a.dtap.gcc.state_attr_ua\" , FT_BOOLEAN , 8 , TFS ( & gcc_state_attr_ua ) , 0x04 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_gcc_state_attr_comm , {\n \"COMM\" , \"gsm_a.dtap.gcc.state_attr_comm\" , FT_BOOLEAN , 8 , TFS ( & gcc_state_attr_comm ) , 0x02 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_gcc_state_attr_oi , {\n \"OI\" , \"gsm_a.dtap.gcc.state_attr_oi\" , FT_BOOLEAN , 8 , TFS ( & gcc_state_attr_oi ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_gcc_spare_1 , {\n \"Spare_1 (This field shall be ignored)\" , \"gsm_a.dtap.gcc.spare_1\" , FT_UINT32 , BASE_DEC , NULL , 0x00000001 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_gcc_spare_3 , {\n \"Spare_3 (This field shall be ignored)\" , \"gsm_a.dtap.gcc.spare_3\" , FT_UINT8 , BASE_DEC , NULL , 0x0e , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_gcc_spare_4 , {\n \"Spare_4 (This field shall be ignored)\" , \"gsm_a.dtap.gcc.spare_4\" , FT_UINT32 , BASE_DEC , NULL , 0x00000010 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_bcc_call_ref , {\n \"Call Reference\" , \"gsm_a.dtap.bcc.call_ref\" , FT_UINT32 , BASE_DEC , NULL , 0xffffffe0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_bcc_call_ref_has_priority , {\n \"Call Reference includes priority\" , \"gsm_a.dtap.bcc.call_ref_has_priority\" , FT_BOOLEAN , 32 , NULL , 0x00000010 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_bcc_call_priority , {\n \"Call Priority\" , \"gsm_a.dtap.bcc.call_priority\" , FT_UINT32 , BASE_DEC , VALS ( bcc_call_ref_priority ) , 0x0000000e , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_bcc_call_state , {\n \"Call state\" , \"gsm_a.dtap.bcc.call_state\" , FT_UINT24 , BASE_DEC | BASE_RANGE_STRING , RVALS ( bcc_call_state_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_bcc_cause_structure , {\n \"Cause structure\" , \"gsm_a.dtap.bcc.cause_structure\" , FT_BOOLEAN , 8 , TFS ( & bcc_cause_structure_val ) , 0x80 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_bcc_cause , {\n \"Cause\" , \"gsm_a.dtap.bcc.cause\" , FT_UINT8 , BASE_DEC | BASE_RANGE_STRING , RVALS ( bcc_cause_vals ) , 0x7f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_bcc_orig_ind , {\n \"Originator indication\" , \"gsm_a.dtap.bcc.orig_ind\" , FT_BOOLEAN , 8 , TFS ( & bcc_orig_ind_vals ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_bcc_state_attr , {\n \"State attributes\" , \"gsm_a.dtap.bcc.state_attr\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_bcc_state_attr_da , {\n \"DA\" , \"gsm_a.dtap.bcc.state_attr_da\" , FT_BOOLEAN , 8 , TFS ( & bcc_state_attr_da ) , 0x08 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_bcc_state_attr_ua , {\n \"UA\" , \"gsm_a.dtap.bcc.state_attr_ua\" , FT_BOOLEAN , 8 , TFS ( & bcc_state_attr_ua ) , 0x04 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_bcc_state_attr_comm , {\n \"COMM\" , \"gsm_a.dtap.bcc.state_attr_comm\" , FT_BOOLEAN , 8 , TFS ( & bcc_state_attr_comm ) , 0x02 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_bcc_state_attr_oi , {\n \"OI\" , \"gsm_a.dtap.bcc.state_attr_oi\" , FT_BOOLEAN , 8 , TFS ( & bcc_state_attr_oi ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_bcc_compr_otdi , {\n \"Compressed otdi\" , \"gsm_a.dtap.bcc.compr_otdi\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_bcc_spare_1 , {\n \"Spare_1 (This field shall be ignored)\" , \"gsm_a.dtap.bcc.spare_1\" , FT_UINT32 , BASE_DEC , NULL , 0x00000001 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_bcc_spare_3 , {\n \"Spare_3 (This field shall be ignored)\" , \"gsm_a.dtap.bcc.spare_3\" , FT_UINT8 , BASE_DEC , NULL , 0x0e , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_bcc_spare_4 , {\n \"Spare_4 (This field shall be ignored)\" , \"gsm_a.dtap.bcc.spare_4\" , FT_UINT32 , BASE_DEC , NULL , 0x00000010 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_coding_scheme , {\n \"Coding Scheme\" , \"gsm_a.dtap.coding_scheme\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_dtap_coding_scheme_vals ) , 0x70 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_add_ci , {\n \"Add CI\" , \"gsm_a.dtap.add_ci\" , FT_BOOLEAN , 8 , TFS ( & tfs_add_ci ) , 0x08 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_number_of_spare_bits , {\n \"Number of spare bits in last octet\" , \"gsm_a.dtap.number_of_spare_bits\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_dtap_number_of_spare_bits_vals ) , 0x07 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_text_string , {\n \"Text String\" , \"gsm_a.dtap.text_string\" , FT_STRING , STR_UNICODE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_time_zone_time , {\n \"Time\" , \"gsm_a.dtap.time_zone_time\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_UTC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_dst_adjustment , {\n \"DST Adjustment\" , \"gsm_a.dtap.dst_adjustment\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_dtap_dst_adjustment_vals ) , 0x03 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_emergency_number_information , {\n \"Emergency Number Information\" , \"gsm_a.dtap.emergency_number_information\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_mm_timer , {\n \"MM Timer\" , \"gsm_a.dtap.mm_timer\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_hold_auxiliary_state , {\n \"Hold auxiliary state\" , \"gsm_a.dtap.hold_auxiliary_state\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_dtap_hold_auxilary_state_vals ) , 0x0C , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_multi_party_auxiliary_state , {\n \"Multi party auxiliary state\" , \"gsm_a.dtap.multi_party_auxiliary_state\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_dtap_multi_party_auxilary_state_vals ) , 0x03 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_radio_channel_requirement , {\n \"Radio channel requirement\" , \"gsm_a.dtap.radio_channel_requirement\" , FT_UINT8 , BASE_DEC , NULL , 0x60 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_bearer_cap_coding_standard , {\n \"Coding standard\" , \"gsm_a.dtap.cap_coding_standard\" , FT_BOOLEAN , 8 , TFS ( & tfs_bearer_cap_coding_standard ) , 0x10 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_transfer_mode , {\n \"Transfer mode\" , \"gsm_a.dtap.transfer_mode\" , FT_BOOLEAN , 8 , TFS ( & tfs_bearer_cap_transfer_mode ) , 0x08 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_coding , {\n \"Coding\" , \"gsm_a.dtap.coding\" , FT_BOOLEAN , 8 , TFS ( & tfs_bearer_cap_coding ) , 0x40 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_compression , {\n \"Compression\" , \"gsm_a.dtap.compression\" , FT_BOOLEAN , 8 , TFS ( & tfs_possible_not_possible ) , 0x40 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_compression_up , {\n \"Compression\" , \"gsm_a.dtap.compression\" , FT_BOOLEAN , 8 , TFS ( & tfs_allowed_not_allowed ) , 0x40 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_structure , {\n \"Structure\" , \"gsm_a.dtap.structure\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_dtap_structure_vals ) , 0x30 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_duplex_mode , {\n \"Duplex mode\" , \"gsm_a.dtap.duplex_mode\" , FT_BOOLEAN , 8 , TFS ( & tfs_full_half ) , 0x08 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_subaddress , {\n \"Subaddress\" , \"gsm_a.dtap.subaddress\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_subaddress_information , {\n \"Subaddress information\" , \"gsm_a.dtap.subaddress_information\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_message_elements , {\n \"Message Elements\" , \"gsm_a.dtap.message_elements\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_rpdu , {\n \"RPDU\" , \"gsm_a.dtap.rpdu\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_configuration , {\n \"Configuration\" , \"gsm_a.dtap.configuration\" , FT_BOOLEAN , 8 , TFS ( & tfs_bearer_cap_configuration ) , 0x04 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_nirr , {\n \"NIRR\" , \"gsm_a.dtap.nirr\" , FT_BOOLEAN , 8 , TFS ( & tfs_nirr ) , 0x02 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_establishment , {\n \"Establishment\" , \"gsm_a.dtap.establishment\" , FT_BOOLEAN , 8 , TFS ( & tfs_bearer_cap_establishment ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_access_identity , {\n \"Access Identity\" , \"gsm_a.dtap.access_identity\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_dtap_access_identity_vals ) , 0x60 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_rate_adaption , {\n \"Rate Adaption\" , \"gsm_a.dtap.rate_adaption\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_dtap_rate_adaption_vals ) , 0x18 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_signalling_access_protocol , {\n \"Signalling Access Protocol\" , \"gsm_a.dtap.signalling_access_protocol\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_dtap_signal_access_protocol_vals ) , 0x07 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_other_itc , {\n \"Other ITC\" , \"gsm_a.dtap.other_itc\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_dtap_other_itc_vals ) , 0x60 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_other_rate_adaption , {\n \"Other Rate Adaption\" , \"gsm_a.dtap.other_rate_adaption\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_dtap_other_rate_adaption_vals ) , 0x18 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_rate_adaption_header , {\n \"Rate Adaption Header\" , \"gsm_a.dtap.rate_adaption_header\" , FT_BOOLEAN , 8 , TFS ( & tfs_included_not_included ) , 0x40 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_multiple_frame_establishment_support , {\n \"Multiple frame establishment support in data link\" , \"gsm_a.dtap.multiple_frame_establishment_support\" , FT_BOOLEAN , 8 , TFS ( & tfs_frame_est_supported_not_supported ) , 0x20 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_mode_of_operation , {\n \"Mode of operation\" , \"gsm_a.dtap.mode_of_operation\" , FT_BOOLEAN , 8 , TFS ( & tfs_protocol_sensative_bit_transparent ) , 0x10 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_logical_link_identifier_negotiation , {\n \"Logical link identifier negotiation\" , \"gsm_a.dtap.logical_link_identifier_negotiation\" , FT_BOOLEAN , 8 , TFS ( & tfs_log_link_neg ) , 0x08 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_assignor_assignee , {\n \"Assignor/Assignee\" , \"gsm_a.dtap.assignor_assignee\" , FT_BOOLEAN , 8 , TFS ( & tfs_assignor_assignee ) , 0x04 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_in_out_band , {\n \"In band/Out of band negotiation\" , \"gsm_a.dtap.in_out_band\" , FT_BOOLEAN , 8 , TFS ( & tfs_in_out_band ) , 0x02 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_layer_1_identity , {\n \"Layer 1 Identity\" , \"gsm_a.dtap.layer_1_identity\" , FT_UINT8 , BASE_DEC , NULL , 0x60 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_user_information_layer_1_protocol , {\n \"User information layer 1 protocol\" , \"gsm_a.dtap.user_information_layer_1_protocol\" , FT_UINT8 , BASE_DEC , NULL , 0x1e , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_synchronous , {\n \"Synchronous/asynchronous\" , \"gsm_a.dtap.synchronous\" , FT_BOOLEAN , 8 , TFS ( & tfs_asynchronous_synchronous ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_number_of_stop_bits , {\n \"Number of Stop Bits\" , \"gsm_a.dtap.number_of_stop_bits\" , FT_BOOLEAN , 8 , TFS ( & tfs_stop_bits ) , 0x40 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_negotiation , {\n \"Negotiation\" , \"gsm_a.dtap.negotiation\" , FT_BOOLEAN , 8 , TFS ( & tfs_negotiation ) , 0x20 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_number_of_data_bits , {\n \"Number of data bits excluding parity bit if present\" , \"gsm_a.dtap.number_of_data_bits\" , FT_BOOLEAN , 8 , TFS ( & tfs_parity_bits ) , 0x10 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_user_rate , {\n \"User rate\" , \"gsm_a.dtap.user_rate\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_dtap_user_rate_vals ) , 0x0F , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_v110_x30_rate_adaptation , {\n \"V.110/X.30 rate adaptation Intermediate rate\" , \"gsm_a.dtap.v110_x30_rate_adaptation\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_dtap_v110_x30_rate_adaptation_vals ) , 0x60 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_nic_on_tx , {\n \"Network independent clock (NIC) on transmission (Tx)\" , \"gsm_a.dtap.nic_on_tx\" , FT_BOOLEAN , 8 , TFS ( & tfs_nic_on_tx ) , 0x10 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_nic_on_rx , {\n \"Network independent clock (NIC) on reception (Rx)\" , \"gsm_a.dtap.nic_on_rx\" , FT_BOOLEAN , 8 , TFS ( & tfs_nic_on_rx ) , 0x08 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_parity_information , {\n \"Parity information\" , \"gsm_a.dtap.parity_information\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_dtap_parity_info_vals ) , 0x07 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_connection_element , {\n \"Connection element\" , \"gsm_a.dtap.connection_element\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_dtap_connection_element_vals ) , 0x60 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_modem_type , {\n \"Modem type\" , \"gsm_a.dtap.modem_type\" , FT_UINT8 , BASE_DEC , NULL , 0x1f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_other_modem_type , {\n \"Other modem type\" , \"gsm_a.dtap.other_modem_type\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_dtap_other_modem_type_vals ) , 0x60 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_fixed_network_user_rate , {\n \"Fixed network user rate\" , \"gsm_a.dtap.fixed_network_user_rate\" , FT_UINT8 , BASE_DEC , NULL , 0x1f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_acceptable_channel_codings_TCH_F14_4 , {\n \"Acceptable channel codings (TCH/F14.4)\" , \"gsm_a.dtap.acceptable_channel_codings.TCH_F14_4\" , FT_BOOLEAN , 8 , TFS ( & tfs_acceptable_not_acceptable ) , 0x40 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_acceptable_channel_codings_spare20 , {\n \"Acceptable channel codings (Spare)\" , \"gsm_a.dtap.acceptable_channel_codings.spare\" , FT_BOOLEAN , 8 , NULL , 0x20 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_acceptable_channel_codings_TCH_F9_6 , {\n \"Acceptable channel codings (TCH/F9.6)\" , \"gsm_a.dtap.acceptable_channel_codings.TCH_F9_6\" , FT_BOOLEAN , 8 , TFS ( & tfs_acceptable_not_acceptable ) , 0x10 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_acceptable_channel_codings_TCH_F4_8 , {\n \"Acceptable channel codings (TCH/F4.8)\" , \"gsm_a.dtap.acceptable_channel_codings.TCH_F4_8\" , FT_BOOLEAN , 8 , TFS ( & tfs_acceptable_not_acceptable ) , 0x08 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_maximum_number_of_traffic_channels , {\n \"Maximum number of traffic channels\" , \"gsm_a.dtap.maximum_number_of_traffic_channels\" , FT_UINT8 , BASE_DEC , NULL , 0x07 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_acceptable_channel_codings_spare78 , {\n \"Acceptable channel codings\" , \"gsm_a.dtap.acceptable_channel_codings\" , FT_UINT8 , BASE_DEC , NULL , 0x78 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_uimi , {\n \"UIMI, User initiated modification indication\" , \"gsm_a.dtap.uimi\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_dtap_uimi_vals ) , 0x70 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_wanted_air_interface_user_rate , {\n \"Wanted air interface user rate\" , \"gsm_a.dtap.wanted_air_interface_user_rate\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_dtap_wanted_air_rate_vals ) , 0x0F , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_acceptable_channel_codings_ext_TCH_F28_8 , {\n \"Acceptable channel codings extended (TCH/F28.8)\" , \"gsm_a.dtap.acceptable_channel_codings_ext.TCH_F28_8\" , FT_BOOLEAN , 8 , TFS ( & tfs_acceptable_not_acceptable ) , 0x40 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_acceptable_channel_codings_ext_TCH_F32_0 , {\n \"Acceptable channel codings extended (TCH/F32.0)\" , \"gsm_a.dtap.acceptable_channel_codings_ext.TCH_F32_0\" , FT_BOOLEAN , 8 , TFS ( & tfs_acceptable_not_acceptable ) , 0x20 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_acceptable_channel_codings_ext_TCH_F43_2 , {\n \"Acceptable channel codings extended (TCH/F43.2)\" , \"gsm_a.dtap.acceptable_channel_codings_ext.TCH_F43_2\" , FT_BOOLEAN , 8 , TFS ( & tfs_acceptable_not_acceptable ) , 0x10 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_channel_coding_asymmetry_indication , {\n \"Channel Coding Asymmetry Indication\" , \"gsm_a.dtap.channel_coding_asymmetry_indication\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_dtap_channel_coding_asymmetry_ind_vals ) , 0x0c , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_edge_channel_codings , {\n \"EDGE Channel Codings\" , \"gsm_a.dtap.edge_channel_codings\" , FT_UINT8 , BASE_DEC , NULL , 0x7c , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_layer_2_identity , {\n \"Layer 2 Identity\" , \"gsm_a.dtap.layer_2_identity\" , FT_UINT8 , BASE_DEC , NULL , 0x60 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_user_information_layer_2_protocol , {\n \"User information layer 2 protocol\" , \"gsm_a.dtap.user_information_layer_2_protocol\" , FT_UINT8 , BASE_DEC , NULL , 0x1f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_maximum_number_of_supported_bearers , {\n \"Maximum number of supported bearers\" , \"gsm_a.dtap.maximum_number_of_supported_bearers\" , FT_UINT8 , BASE_DEC , NULL , 0xf0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_pcp , {\n \"Prolonged Clearing Procedure\" , \"gsm_a.dtap.pcp\" , FT_BOOLEAN , 8 , TFS ( & tfs_supported_not_supported ) , 0x02 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_dtmf , {\n \"DTMF\" , \"gsm_a.dtap.dtmf\" , FT_BOOLEAN , 8 , TFS ( & gsm_a_dtap_dtmf_value ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_max_num_of_speech_bearers , {\n \"Maximum number of speech bearers\" , \"gsm_a.dtap.max_num_of_speech_bearers\" , FT_UINT8 , BASE_DEC , NULL , 0x0f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_de_cause_coding_standard , {\n \"Coding standard\" , \"gsm_a.dtap.coding_standard\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_dtap_de_cause_coding_standard_vals ) , 0x60 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_recommendation , {\n \"Recommendation\" , \"gsm_a.dtap.recommendation\" , FT_UINT8 , BASE_DEC , NULL , 0x7f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_data , {\n \"Data\" , \"gsm_a.dtap.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_keypad_information , {\n \"Keypad information\" , \"gsm_a.dtap.keypad_information\" , FT_UINT8 , BASE_DEC , NULL , 0x7f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_repeat_indicator , {\n \"Repeat Indicator\" , \"gsm_a.dtap.repeat_indicator\" , FT_UINT8 , BASE_DEC , NULL , 0x0f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_ss_version_indicator , {\n \"SS Version Indicator\" , \"gsm_a.dtap.ss_version_indicator\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_cp_cause , {\n \"Cause\" , \"gsm_a.dtap.cp_cause\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_test_loop , {\n \"Test Loop\" , \"gsm_a.dtap.test_loop\" , FT_UINT8 , BASE_DEC , NULL , 0x3f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_subchannel , {\n \"Subchannel\" , \"gsm_a.dtap.subchannel\" , FT_BOOLEAN , 8 , TFS ( & tfs_gsm_a_dtap_subchannel ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_ack_element , {\n \"Acknowledgment element\" , \"gsm_a.dtap.ack_element\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_channel_coding03 , {\n \"Channel coding\" , \"gsm_a.dtap.channel_coding\" , FT_UINT8 , BASE_DEC , VALS ( gsm_channel_coding_vals ) , 0x03 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_channel_coding30 , {\n \"Channel coding\" , \"gsm_a.dtap.channel_coding\" , FT_UINT8 , BASE_DEC , VALS ( gsm_channel_coding_vals ) , 0x30 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_loop_mechanism0E , {\n \"Loop mechanism\" , \"gsm_a.dtap.loop_mechanism\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_dtap_loop_mech_vals ) , 0x0e , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_loop_mechanism1C , {\n \"Loop mechanism\" , \"gsm_a.dtap.loop_mechanism\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_dtap_loop_mech_vals ) , 0x1c , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_multislot_tch , {\n \"Multi-slot TCH loop\" , \"gsm_a.dtap.multislot_tch\" , FT_BOOLEAN , 8 , TFS ( & tfs_multislot_tch ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_tp_tested_device , {\n \"Tested device\" , \"gsm_a.dtap.tp_tested_device\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_tp_pdu_description , {\n \"PDUs transmitted\" , \"gsm_a.dtap.tp_pdu_description\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_mode_flag , {\n \"Mode flag\" , \"gsm_a.dtap.mode_flag\" , FT_BOOLEAN , 8 , TFS ( & tfs_gsm_a_dtap_mode_flag ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_egprs_mode_flag , {\n \"EGPRS Mode flag\" , \"gsm_a.dtap.egprs_mode_flag\" , FT_BOOLEAN , 8 , TFS ( & tfs_gsm_a_dtap_egprs_mode_flag ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_downlink_timeslot_offset , {\n \"Downlink Timeslot Offset\" , \"gsm_a.dtap.downlink_timeslot_offset\" , FT_UINT8 , BASE_DEC , NULL , 0x0E , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_ms_positioning_technology , {\n \"MS positioning technology\" , \"gsm_a.dtap.ms_positioning_technology\" , FT_UINT8 , BASE_DEC , VALS ( gsm_positioning_technology_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_ue_test_loop_mode , {\n \"UE test loop mode\" , \"gsm_a.dtap.ue_test_loop_mode\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_dtap_ue_test_loop_mode_vals ) , 0x03 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_ue_positioning_technology , {\n \"UE positioning technology\" , \"gsm_a.dtap.ue_positioning_technology\" , FT_UINT8 , BASE_DEC , VALS ( gsm_positioning_technology_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_ciphering_key_sequence_number , {\n \"Ciphering Key Sequence Number\" , \"gsm_a.dtap.ciphering_key_sequence_number\" , FT_UINT8 , BASE_DEC , NULL , 0x07 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_ciphering_key_sequence_number70 , {\n \"Ciphering Key Sequence Number\" , \"gsm_a.dtap.ciphering_key_sequence_number\" , FT_UINT8 , BASE_DEC , NULL , 0x70 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_service_type , {\n \"Service Type\" , \"gsm_a.dtap.service_type\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_dtap_service_type_vals ) , 0x0F , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_type_of_identity , {\n \"Type of identity\" , \"gsm_a.dtap.type_of_identity\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_dtap_type_of_identity_vals ) , 0x07 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_follow_on_request , {\n \"Follow-On Request (FOR)\" , \"gsm_a.dtap.follow_on_request\" , FT_BOOLEAN , 8 , TFS ( & tfs_follow_on_request_value ) , 0x08 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_updating_type , {\n \"Updating Type\" , \"gsm_a.dtap.updating_type\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_dtap_updating_type_vals ) , 0x03 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_congestion_level , {\n \"Congestion level\" , \"gsm_a.dtap.congestion_level\" , FT_UINT8 , BASE_DEC , NULL , 0x0F , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_protocol_discriminator , {\n \"Protocol Discriminator\" , \"gsm_a.dtap.protocol_discriminator\" , FT_UINT8 , BASE_DEC , VALS ( protocol_discriminator_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_ti_flag , {\n \"TI flag\" , \"gsm_a.dtap.ti_flag\" , FT_BOOLEAN , 8 , TFS ( & tfs_allocated_by_receiver_sender ) , 0x80 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_tio , {\n \"TIO\" , \"gsm_a.dtap.tio\" , FT_UINT8 , BASE_DEC , NULL , 0x70 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_tie , {\n \"TIE\" , \"gsm_a.dtap.tie\" , FT_UINT8 , BASE_DEC , NULL , DTAP_TIE_MASK , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_timeslot_number , {\n \"Timeslot number\" , \"gsm_a_dtap.timeslot_number\" , FT_UINT8 , BASE_DEC , NULL , 0xe0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_uplink_rlc_sdu_size , {\n \"Uplink RLC SDU size\" , \"gsm_a_dtap.uplink_rlc_sdu_size\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_radio_bearer , {\n \"Radio Bearer\" , \"gsm_a_dtap.radio_bearer\" , FT_UINT8 , BASE_DEC , NULL , 0x1F , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_mbms_short_transmission_identity , {\n \"MBMS short transmission identity\" , \"gsm_a_dtap.mbms_short_transmission_identity\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_ue_received_rlc_sdu_counter_value , {\n \"UE received RLC SDU counter value\" , \"gsm_a_dtap.ue_received_rlc_sdu_counter_value\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtap_num_lb_entities , {\n \"Number of LB entities\" , \"gsm_a_dtap.num_lb_entities\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , }\n ;\n # define NUM_INDIVIDUAL_ELEMS 22 gint * ett [ NUM_INDIVIDUAL_ELEMS + NUM_GSM_DTAP_MSG_MM + NUM_GSM_DTAP_MSG_CC + NUM_GSM_DTAP_MSG_SMS + NUM_GSM_DTAP_MSG_SS + NUM_GSM_DTAP_MSG_TP + NUM_GSM_DTAP_ELEM ] ;\n static ei_register_info ei [ ] = {\n {\n & ei_gsm_a_dtap_autn , {\n \"gsm_a.dtap.autn.invalid\" , PI_MALFORMED , PI_WARN , \"AUTN length not equal to 16\" , EXPFILL }\n }\n , {\n & ei_gsm_a_dtap_auts , {\n \"gsm_a.dtap.auts.invalid\" , PI_MALFORMED , PI_WARN , \"AUTS length not equal to 14\" , EXPFILL }\n }\n , {\n & ei_gsm_a_dtap_text_string_not_multiple_of_7 , {\n \"gsm_a.dtap.text_string_not_multiple_of_7\" , PI_MALFORMED , PI_WARN , \"Value leads to a Text String whose length is not a multiple of 7 bits\" , EXPFILL }\n }\n , {\n & ei_gsm_a_dtap_not_digit , {\n \"gsm_a.dtap.not_digit\" , PI_MALFORMED , PI_WARN , \"BCD number contains a value that is not a digit\" , EXPFILL }\n }\n , {\n & ei_gsm_a_dtap_end_mark_unexpected , {\n \"gsm_a.dtap.end_mark_unexpected\" , PI_MALFORMED , PI_WARN , \"\\'f\\' end mark present in unexpected position\" , EXPFILL }\n }\n , {\n & ei_gsm_a_dtap_invalid_ia5_character , {\n \"gsm_a.dtap.invalid_ia5_character\" , PI_MALFORMED , PI_WARN , \"Invalid IA5 character(s) in string (value > 127)\" , EXPFILL }\n }\n , {\n & ei_gsm_a_dtap_keypad_info_not_dtmf_digit , {\n \"gsm_a.dtap.keypad_info_not_dtmf_digit\" , PI_MALFORMED , PI_WARN , \"Keypad information contains character that is not a DTMF digit\" , EXPFILL }\n }\n , {\n & ei_gsm_a_dtap_extraneous_data , {\n \"gsm_a.dtap.extraneous_data\" , PI_PROTOCOL , PI_NOTE , \"Extraneous Data, dissector bug or later version spec(report to wireshark.org)\" , EXPFILL }\n }\n , {\n & ei_gsm_a_dtap_missing_mandatory_element , {\n \"gsm_a.dtap.missing_mandatory_element\" , PI_PROTOCOL , PI_WARN , \"Missing Mandatory element, rest of dissection is suspect\" , EXPFILL }\n }\n , {\n & ei_gsm_a_dtap_coding_scheme , {\n \"gsm_a.dtap.coding_scheme.unknown\" , PI_PROTOCOL , PI_WARN , \"Text string encoded according to an unknown Coding Scheme\" , EXPFILL }\n }\n , }\n ;\n expert_module_t * expert_a_dtap ;\n ett [ 0 ] = & ett_dtap_msg ;\n ett [ 1 ] = & ett_dtap_oct_1 ;\n ett [ 2 ] = & ett_cm_srvc_type ;\n ett [ 3 ] = & ett_gsm_enc_info ;\n ett [ 4 ] = & ett_bc_oct_3 ;\n ett [ 5 ] = & ett_bc_oct_3a ;\n ett [ 6 ] = & ett_bc_oct_4 ;\n ett [ 7 ] = & ett_bc_oct_5 ;\n ett [ 8 ] = & ett_bc_oct_5a ;\n ett [ 9 ] = & ett_bc_oct_5b ;\n ett [ 10 ] = & ett_bc_oct_6 ;\n ett [ 11 ] = & ett_bc_oct_6a ;\n ett [ 12 ] = & ett_bc_oct_6b ;\n ett [ 13 ] = & ett_bc_oct_6c ;\n ett [ 14 ] = & ett_bc_oct_6d ;\n ett [ 15 ] = & ett_bc_oct_6e ;\n ett [ 16 ] = & ett_bc_oct_6f ;\n ett [ 17 ] = & ett_bc_oct_6g ;\n ett [ 18 ] = & ett_bc_oct_7 ;\n ett [ 19 ] = & ett_epc_ue_tl_a_lb_setup ;\n ett [ 20 ] = & ett_mm_timer ;\n ett [ 21 ] = & ett_ue_test_loop_mode ;\n last_offset = NUM_INDIVIDUAL_ELEMS ;\n for ( i = 0 ;\n i < NUM_GSM_DTAP_MSG_MM ;\n i ++ , last_offset ++ ) {\n ett_gsm_dtap_msg_mm [ i ] = - 1 ;\n ett [ last_offset ] = & ett_gsm_dtap_msg_mm [ i ] ;\n }\n for ( i = 0 ;\n i < NUM_GSM_DTAP_MSG_CC ;\n i ++ , last_offset ++ ) {\n ett_gsm_dtap_msg_cc [ i ] = - 1 ;\n ett [ last_offset ] = & ett_gsm_dtap_msg_cc [ i ] ;\n }\n for ( i = 0 ;\n i < NUM_GSM_DTAP_MSG_SMS ;\n i ++ , last_offset ++ ) {\n ett_gsm_dtap_msg_sms [ i ] = - 1 ;\n ett [ last_offset ] = & ett_gsm_dtap_msg_sms [ i ] ;\n }\n for ( i = 0 ;\n i < NUM_GSM_DTAP_MSG_SS ;\n i ++ , last_offset ++ ) {\n ett_gsm_dtap_msg_ss [ i ] = - 1 ;\n ett [ last_offset ] = & ett_gsm_dtap_msg_ss [ i ] ;\n }\n for ( i = 0 ;\n i < NUM_GSM_DTAP_MSG_TP ;\n i ++ , last_offset ++ ) {\n ett_gsm_dtap_msg_tp [ i ] = - 1 ;\n ett [ last_offset ] = & ett_gsm_dtap_msg_tp [ i ] ;\n }\n for ( i = 0 ;\n i < NUM_GSM_DTAP_ELEM ;\n i ++ , last_offset ++ ) {\n ett_gsm_dtap_elem [ i ] = - 1 ;\n ett [ last_offset ] = & ett_gsm_dtap_elem [ i ] ;\n }\n proto_a_dtap = proto_register_protocol ( \"GSM A-I/F DTAP\" , \"GSM DTAP\" , \"gsm_a.dtap\" ) ;\n proto_register_field_array ( proto_a_dtap , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n expert_a_dtap = expert_register_protocol ( proto_a_dtap ) ;\n expert_register_field_array ( expert_a_dtap , ei , array_length ( ei ) ) ;\n register_dissector ( \"gsm_a_dtap\" , dissect_dtap , proto_a_dtap ) ;\n u2u_dissector_table = register_dissector_table ( \"gsm_a.dtap.u2u_prot_discr\" , \"GSM User to User Signalling\" , proto_a_dtap , FT_UINT8 , BASE_DEC ) ;\n }"}
{"idx": 3814, "target": 0, "func": "static inline Quantum GetPixelGreen ( const Image * restrict image , const Quantum * restrict pixel ) {\n return ( pixel [ image -> channel_map [ GreenPixelChannel ] . offset ] ) ;\n }"}
{"idx": 3815, "target": 0, "func": "static int restore_check_stack ( const i_ctx_t * i_ctx_p , const ref_stack_t * pstack , const alloc_save_t * asave , bool is_estack ) {\n ref_stack_enum_t rsenum ;\n ref_stack_enum_begin ( & rsenum , pstack ) ;\n do {\n const ref * stkp = rsenum . ptr ;\n uint size = rsenum . size ;\n for ( ;\n size ;\n stkp ++ , size -- ) {\n const void * ptr ;\n switch ( r_type ( stkp ) ) {\n case t_array : if ( r_size ( stkp ) == 0 ) {\n continue ;\n }\n ptr = stkp -> value . refs ;\n break ;\n case t_dictionary : ptr = stkp -> value . pdict ;\n break ;\n case t_file : {\n stream * s ;\n if ( is_estack && ( r_has_attr ( stkp , a_executable ) || file_is_invalid ( s , stkp ) ) ) continue ;\n }\n ptr = stkp -> value . pfile ;\n break ;\n case t_name : if ( alloc_name_is_since_save ( ( const gs_memory_t * ) pstack -> memory , stkp , asave ) ) return_error ( gs_error_invalidrestore ) ;\n continue ;\n case t_string : if ( r_size ( stkp ) == 0 && r_has_attr ( stkp , a_executable ) && is_estack ) continue ;\n ptr = stkp -> value . bytes ;\n break ;\n case t_mixedarray : case t_shortarray : if ( r_size ( stkp ) == 0 ) {\n continue ;\n }\n ptr = stkp -> value . packed ;\n break ;\n case t_device : ptr = stkp -> value . pdevice ;\n break ;\n case t_fontID : case t_struct : case t_astruct : ptr = stkp -> value . pstruct ;\n break ;\n case t_save : if ( i_ctx_p -> language_level <= 2 ) continue ;\n ptr = alloc_find_save ( & gs_imemory , stkp -> value . saveid ) ;\n if ( ptr == 0 ) return_error ( gs_error_invalidrestore ) ;\n if ( ptr == asave ) continue ;\n break ;\n default : continue ;\n }\n if ( alloc_is_since_save ( ptr , asave ) ) return_error ( gs_error_invalidrestore ) ;\n }\n }\n while ( ref_stack_enum_next ( & rsenum ) ) ;\n return 0 ;\n }"}
{"idx": 3816, "target": 0, "func": "void IGDstartelt ( void * d , const char * name , int l ) {\n struct IGDdatas * datas = ( struct IGDdatas * ) d ;\n if ( l >= MINIUPNPC_URL_MAXSIZE ) l = MINIUPNPC_URL_MAXSIZE - 1 ;\n memcpy ( datas -> cureltname , name , l ) ;\n datas -> cureltname [ l ] = '\\0' ;\n datas -> level ++ ;\n if ( ( l == 7 ) && ! memcmp ( name , \"service\" , l ) ) {\n datas -> tmp . controlurl [ 0 ] = '\\0' ;\n datas -> tmp . eventsuburl [ 0 ] = '\\0' ;\n datas -> tmp . scpdurl [ 0 ] = '\\0' ;\n datas -> tmp . servicetype [ 0 ] = '\\0' ;\n }\n }"}
{"idx": 3817, "target": 1, "func": "void vp9_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint8_t * dst , ptrdiff_t stride , const uint8_t * above , const uint8_t * left ) {\n type ## _predictor ( dst , stride , size , above , left ) ;\n }\n # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) static INLINE void d207_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n intra_pred_allsizes ( d207 ) static INLINE void d63_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d63 ) static INLINE void d45_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r + c + 2 < bs * 2 ? ROUND_POWER_OF_TWO ( above [ r + c ] + above [ r + c + 1 ] * 2 + above [ r + c + 2 ] , 2 ) : above [ bs * 2 - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d45 )"}
{"idx": 3818, "target": 0, "func": "void timelib_strtointerval ( char * s , int len , timelib_time * * begin , timelib_time * * end , timelib_rel_time * * period , int * recurrences , struct timelib_error_container * * errors ) {\n Scanner in ;\n int t ;\n char * e = s + len - 1 ;\n memset ( & in , 0 , sizeof ( in ) ) ;\n in . errors = malloc ( sizeof ( struct timelib_error_container ) ) ;\n in . errors -> warning_count = 0 ;\n in . errors -> warning_messages = NULL ;\n in . errors -> error_count = 0 ;\n in . errors -> error_messages = NULL ;\n if ( len > 0 ) {\n while ( isspace ( * s ) && s < e ) {\n s ++ ;\n }\n while ( isspace ( * e ) && e > s ) {\n e -- ;\n }\n }\n if ( e - s < 0 ) {\n add_error ( & in , \"Empty string\" ) ;\n if ( errors ) {\n * errors = in . errors ;\n }\n else {\n timelib_error_container_dtor ( in . errors ) ;\n }\n return ;\n }\n e ++ ;\n in . str = malloc ( ( e - s ) + YYMAXFILL ) ;\n memset ( in . str , 0 , ( e - s ) + YYMAXFILL ) ;\n memcpy ( in . str , s , ( e - s ) ) ;\n in . lim = in . str + ( e - s ) + YYMAXFILL ;\n in . cur = in . str ;\n in . begin = timelib_time_ctor ( ) ;\n in . begin -> y = TIMELIB_UNSET ;\n in . begin -> d = TIMELIB_UNSET ;\n in . begin -> m = TIMELIB_UNSET ;\n in . begin -> h = TIMELIB_UNSET ;\n in . begin -> i = TIMELIB_UNSET ;\n in . begin -> s = TIMELIB_UNSET ;\n in . begin -> f = 0 ;\n in . begin -> z = 0 ;\n in . begin -> dst = 0 ;\n in . begin -> is_localtime = 0 ;\n in . begin -> zone_type = TIMELIB_ZONETYPE_OFFSET ;\n in . end = timelib_time_ctor ( ) ;\n in . end -> y = TIMELIB_UNSET ;\n in . end -> d = TIMELIB_UNSET ;\n in . end -> m = TIMELIB_UNSET ;\n in . end -> h = TIMELIB_UNSET ;\n in . end -> i = TIMELIB_UNSET ;\n in . end -> s = TIMELIB_UNSET ;\n in . end -> f = 0 ;\n in . end -> z = 0 ;\n in . end -> dst = 0 ;\n in . end -> is_localtime = 0 ;\n in . end -> zone_type = TIMELIB_ZONETYPE_OFFSET ;\n in . period = timelib_rel_time_ctor ( ) ;\n in . period -> y = 0 ;\n in . period -> d = 0 ;\n in . period -> m = 0 ;\n in . period -> h = 0 ;\n in . period -> i = 0 ;\n in . period -> s = 0 ;\n in . period -> weekday = 0 ;\n in . period -> weekday_behavior = 0 ;\n in . period -> first_last_day_of = 0 ;\n in . period -> days = TIMELIB_UNSET ;\n in . recurrences = 1 ;\n do {\n t = scan ( & in ) ;\n # ifdef DEBUG_PARSER printf ( \"%d\\n\" , t ) ;\n # endif }\n while ( t != EOI ) ;\n free ( in . str ) ;\n if ( errors ) {\n * errors = in . errors ;\n }\n else {\n timelib_error_container_dtor ( in . errors ) ;\n }\n if ( in . have_begin_date ) {\n * begin = in . begin ;\n }\n else {\n timelib_time_dtor ( in . begin ) ;\n }\n if ( in . have_end_date ) {\n * end = in . end ;\n }\n else {\n timelib_time_dtor ( in . end ) ;\n }\n if ( in . have_period ) {\n * period = in . period ;\n }\n else {\n timelib_rel_time_dtor ( in . period ) ;\n }\n if ( in . have_recurrences ) {\n * recurrences = in . recurrences ;\n }\n }"}
{"idx": 3819, "target": 0, "func": "static void test_bug9643 ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND my_bind [ 1 ] ;\n int32 a ;\n int rc ;\n const char * stmt_text ;\n int num_rows = 0 ;\n ulong type ;\n ulong prefetch_rows = 5 ;\n myheader ( \"test_bug9643\" ) ;\n mysql_query ( mysql , \"drop table if exists t1\" ) ;\n mysql_query ( mysql , \"create table t1 (id integer not null primary key)\" ) ;\n rc = mysql_query ( mysql , \"insert into t1 (id) values \" \" (1), (2), (3), (4), (5), (6), (7), (8), (9)\" ) ;\n myquery ( rc ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n type = ( ulong ) CURSOR_TYPE_SCROLLABLE ;\n rc = mysql_stmt_attr_set ( stmt , STMT_ATTR_CURSOR_TYPE , ( void * ) & type ) ;\n DIE_UNLESS ( rc ) ;\n if ( ! opt_silent ) printf ( \"Got error (as expected): %s\\n\" , mysql_stmt_error ( stmt ) ) ;\n type = ( ulong ) CURSOR_TYPE_READ_ONLY ;\n rc = mysql_stmt_attr_set ( stmt , STMT_ATTR_CURSOR_TYPE , ( void * ) & type ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_attr_set ( stmt , STMT_ATTR_PREFETCH_ROWS , ( void * ) & prefetch_rows ) ;\n check_execute ( stmt , rc ) ;\n stmt_text = \"select * from t1\" ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt , rc ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 0 ] . buffer = ( void * ) & a ;\n my_bind [ 0 ] . buffer_length = sizeof ( a ) ;\n mysql_stmt_bind_result ( stmt , my_bind ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n while ( ( rc = mysql_stmt_fetch ( stmt ) ) == 0 ) ++ num_rows ;\n DIE_UNLESS ( num_rows == 9 ) ;\n rc = mysql_stmt_close ( stmt ) ;\n DIE_UNLESS ( rc == 0 ) ;\n rc = mysql_query ( mysql , \"drop table t1\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 3820, "target": 0, "func": "bool type_is_range ( Oid typid ) {\n return ( get_typtype ( typid ) == TYPTYPE_RANGE ) ;\n }"}
{"idx": 3821, "target": 0, "func": "static VALUE mObject_to_json ( int argc , VALUE * argv , VALUE self ) {\n VALUE state ;\n VALUE string = rb_funcall ( self , i_to_s , 0 ) ;\n rb_scan_args ( argc , argv , \"01\" , & state ) ;\n Check_Type ( string , T_STRING ) ;\n state = cState_from_state_s ( cState , state ) ;\n return cState_partial_generate ( state , string ) ;\n }"}
{"idx": 3822, "target": 0, "func": "static void config_unpeers ( config_tree * ptree ) {\n sockaddr_u peeraddr ;\n struct addrinfo hints ;\n unpeer_node * curr_unpeer ;\n struct peer * p ;\n const char * name ;\n int rc ;\n curr_unpeer = HEAD_PFIFO ( ptree -> unpeers ) ;\n for ( ;\n curr_unpeer != NULL ;\n curr_unpeer = curr_unpeer -> link ) {\n if ( curr_unpeer -> assocID ) {\n p = findpeerbyassoc ( curr_unpeer -> assocID ) ;\n if ( p != NULL ) {\n msyslog ( LOG_NOTICE , \"unpeered %s\" , stoa ( & p -> srcadr ) ) ;\n peer_clear ( p , \"GONE\" ) ;\n unpeer ( p ) ;\n }\n continue ;\n }\n memset ( & peeraddr , 0 , sizeof ( peeraddr ) ) ;\n AF ( & peeraddr ) = curr_unpeer -> addr -> type ;\n name = curr_unpeer -> addr -> address ;\n rc = getnetnum ( name , & peeraddr , 0 , t_UNK ) ;\n if ( rc > 0 ) {\n DPRINTF ( 1 , ( \"unpeer: searching for %s\\n\" , stoa ( & peeraddr ) ) ) ;\n p = findexistingpeer ( & peeraddr , NULL , NULL , - 1 ) ;\n if ( p != NULL ) {\n msyslog ( LOG_NOTICE , \"unpeered %s\" , stoa ( & peeraddr ) ) ;\n peer_clear ( p , \"GONE\" ) ;\n unpeer ( p ) ;\n }\n continue ;\n }\n for ( p = peer_list ;\n p != NULL ;\n p = p -> p_link ) if ( p -> hostname != NULL ) if ( ! strcasecmp ( p -> hostname , name ) ) break ;\n if ( p != NULL ) {\n msyslog ( LOG_NOTICE , \"unpeered %s\" , name ) ;\n peer_clear ( p , \"GONE\" ) ;\n unpeer ( p ) ;\n }\n # ifdef WORKER memset ( & hints , 0 , sizeof ( hints ) ) ;\n hints . ai_family = curr_unpeer -> addr -> type ;\n hints . ai_socktype = SOCK_DGRAM ;\n hints . ai_protocol = IPPROTO_UDP ;\n getaddrinfo_sometime ( name , \"ntp\" , & hints , INITIAL_DNS_RETRY , & unpeer_name_resolved , NULL ) ;\n # else msyslog ( LOG_ERR , \"hostname %s can not be used, please use IP address instead.\\n\" , name ) ;\n # endif }\n }"}
{"idx": 3823, "target": 0, "func": "static cmsBool Type_Chromaticity_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) {\n cmsCIExyYTRIPLE * chrm = ( cmsCIExyYTRIPLE * ) Ptr ;\n if ( ! _cmsWriteUInt16Number ( io , 3 ) ) return FALSE ;\n if ( ! _cmsWriteUInt16Number ( io , 0 ) ) return FALSE ;\n if ( ! SaveOneChromaticity ( chrm -> Red . x , chrm -> Red . y , io ) ) return FALSE ;\n if ( ! SaveOneChromaticity ( chrm -> Green . x , chrm -> Green . y , io ) ) return FALSE ;\n if ( ! SaveOneChromaticity ( chrm -> Blue . x , chrm -> Blue . y , io ) ) return FALSE ;\n return TRUE ;\n cmsUNUSED_PARAMETER ( nItems ) ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 3824, "target": 0, "func": "static char * var_read_string ( AVIOContext * pb , int size ) {\n int n ;\n char * str ;\n if ( size < 0 || size == INT_MAX ) return NULL ;\n str = av_malloc ( size + 1 ) ;\n if ( ! str ) return NULL ;\n n = avio_get_str ( pb , size , str , size + 1 ) ;\n if ( n < size ) avio_skip ( pb , size - n ) ;\n return str ;\n }"}
{"idx": 3825, "target": 0, "func": "static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 3826, "target": 0, "func": "static void pcnet_update_irq ( PCNetState * s ) {\n int isr = 0 ;\n s -> csr [ 0 ] &= ~ 0x0080 ;\n # if 1 if ( ( ( s -> csr [ 0 ] & ~ s -> csr [ 3 ] ) & 0x5f00 ) || ( ( ( s -> csr [ 4 ] >> 1 ) & ~ s -> csr [ 4 ] ) & 0x0115 ) || ( ( ( s -> csr [ 5 ] >> 1 ) & s -> csr [ 5 ] ) & 0x0048 ) ) # else if ( ( ! ( s -> csr [ 3 ] & 0x4000 ) && ! ! ( s -> csr [ 0 ] & 0x4000 ) ) || ( ! ( s -> csr [ 3 ] & 0x1000 ) && ! ! ( s -> csr [ 0 ] & 0x1000 ) ) || ( ! ( s -> csr [ 3 ] & 0x0100 ) && ! ! ( s -> csr [ 0 ] & 0x0100 ) ) || ( ! ( s -> csr [ 3 ] & 0x0200 ) && ! ! ( s -> csr [ 0 ] & 0x0200 ) ) || ( ! ( s -> csr [ 3 ] & 0x0400 ) && ! ! ( s -> csr [ 0 ] & 0x0400 ) ) || ( ! ( s -> csr [ 3 ] & 0x0800 ) && ! ! ( s -> csr [ 0 ] & 0x0800 ) ) || ( ! ( s -> csr [ 4 ] & 0x0001 ) && ! ! ( s -> csr [ 4 ] & 0x0002 ) ) || ( ! ( s -> csr [ 4 ] & 0x0004 ) && ! ! ( s -> csr [ 4 ] & 0x0008 ) ) || ( ! ( s -> csr [ 4 ] & 0x0010 ) && ! ! ( s -> csr [ 4 ] & 0x0020 ) ) || ( ! ( s -> csr [ 4 ] & 0x0100 ) && ! ! ( s -> csr [ 4 ] & 0x0200 ) ) || ( ! ! ( s -> csr [ 5 ] & 0x0040 ) && ! ! ( s -> csr [ 5 ] & 0x0080 ) ) || ( ! ! ( s -> csr [ 5 ] & 0x0008 ) && ! ! ( s -> csr [ 5 ] & 0x0010 ) ) ) # endif {\n isr = CSR_INEA ( s ) ;\n s -> csr [ 0 ] |= 0x0080 ;\n }\n if ( ! ! ( s -> csr [ 4 ] & 0x0080 ) && CSR_INEA ( s ) ) {\n s -> csr [ 4 ] &= ~ 0x0080 ;\n s -> csr [ 4 ] |= 0x0040 ;\n s -> csr [ 0 ] |= 0x0080 ;\n isr = 1 ;\n trace_pcnet_user_int ( s ) ;\n }\n # if 1 if ( ( ( s -> csr [ 5 ] >> 1 ) & s -> csr [ 5 ] ) & 0x0500 ) # else if ( ( ! ! ( s -> csr [ 5 ] & 0x0400 ) && ! ! ( s -> csr [ 5 ] & 0x0800 ) ) || ( ! ! ( s -> csr [ 5 ] & 0x0100 ) && ! ! ( s -> csr [ 5 ] & 0x0200 ) ) ) # endif {\n isr = 1 ;\n s -> csr [ 0 ] |= 0x0080 ;\n }\n if ( isr != s -> isr ) {\n trace_pcnet_isr_change ( s , isr , s -> isr ) ;\n }\n qemu_set_irq ( s -> irq , isr ) ;\n s -> isr = isr ;\n }"}
{"idx": 3827, "target": 0, "func": "static void spl_filesystem_tree_it_move_forward ( zend_object_iterator * iter TSRMLS_DC ) {\n spl_filesystem_iterator * iterator = ( spl_filesystem_iterator * ) iter ;\n spl_filesystem_object * object = spl_filesystem_iterator_to_object ( iterator ) ;\n object -> u . dir . index ++ ;\n do {\n spl_filesystem_dir_read ( object TSRMLS_CC ) ;\n }\n while ( spl_filesystem_is_dot ( object -> u . dir . entry . d_name ) ) ;\n if ( object -> file_name ) {\n efree ( object -> file_name ) ;\n object -> file_name = NULL ;\n }\n if ( iterator -> current ) {\n zval_ptr_dtor ( & iterator -> current ) ;\n iterator -> current = NULL ;\n }\n }"}
{"idx": 3828, "target": 0, "func": "static void xml_cdata ( void * userData , const XML_Char * s , int len ) {\n struct xml_ctx * ctx = ( struct xml_ctx * ) userData ;\n free ( ctx -> cdata ) ;\n ctx -> cdata = xmemdupz ( s , len ) ;\n }"}
{"idx": 3829, "target": 0, "func": "void proto_reg_handoff_rtmpt ( void ) {\n dissector_handle_t amf_handle ;\n heur_dissector_add ( \"tcp\" , dissect_rtmpt_heur , \"RTMPT over TCP\" , \"rtmpt_tcp\" , proto_rtmpt , HEURISTIC_DISABLE ) ;\n rtmpt_tcp_handle = create_dissector_handle ( dissect_rtmpt_tcp , proto_rtmpt ) ;\n dissector_add_uint ( \"tcp.port\" , RTMP_PORT , rtmpt_tcp_handle ) ;\n rtmpt_http_handle = create_dissector_handle ( dissect_rtmpt_http , proto_rtmpt ) ;\n dissector_add_string ( \"media_type\" , \"application/x-fcs\" , rtmpt_http_handle ) ;\n amf_handle = create_dissector_handle ( dissect_amf , proto_amf ) ;\n dissector_add_string ( \"media_type\" , \"application/x-amf\" , amf_handle ) ;\n }"}
{"idx": 3830, "target": 0, "func": "static gboolean gst_asf_demux_check_activate_streams ( GstASFDemux * demux , gboolean force ) {\n guint i , actual_streams = 0 ;\n if ( demux -> activated_streams ) return TRUE ;\n if ( G_UNLIKELY ( ! gst_asf_demux_check_first_ts ( demux , force ) ) ) return FALSE ;\n if ( ! all_streams_prerolled ( demux ) && ! force ) {\n GST_DEBUG_OBJECT ( demux , \"not all streams with data beyond preroll yet\" ) ;\n return FALSE ;\n }\n for ( i = 0 ;\n i < demux -> num_streams ;\n ++ i ) {\n AsfStream * stream = & demux -> stream [ i ] ;\n if ( stream -> payloads -> len > 0 ) {\n if ( stream -> inspect_payload && ! stream -> active && ! gst_asf_demux_update_caps_from_payload ( demux , stream ) && stream -> payloads -> len < 20 ) {\n return FALSE ;\n }\n GST_LOG_OBJECT ( stream -> pad , \"is prerolled - activate!\" ) ;\n gst_asf_demux_activate_stream ( demux , stream ) ;\n actual_streams += 1 ;\n }\n else {\n GST_LOG_OBJECT ( stream -> pad , \"no data, ignoring stream\" ) ;\n }\n }\n if ( actual_streams == 0 ) {\n GST_ERROR_OBJECT ( demux , \"No streams activated!\" ) ;\n return FALSE ;\n }\n gst_asf_demux_release_old_pads ( demux ) ;\n demux -> activated_streams = TRUE ;\n GST_LOG_OBJECT ( demux , \"signalling no more pads\" ) ;\n gst_element_no_more_pads ( GST_ELEMENT ( demux ) ) ;\n return TRUE ;\n }"}
{"idx": 3831, "target": 0, "func": "static int kq_insert ( struct kqop * kqop , struct kevent * kev ) {\n int nevents = kqop -> nevents ;\n if ( kqop -> nchanges == nevents ) {\n struct kevent * newchange ;\n struct kevent * newresult ;\n nevents *= 2 ;\n newchange = realloc ( kqop -> changes , nevents * sizeof ( struct kevent ) ) ;\n if ( newchange == NULL ) {\n event_warn ( \"%s: malloc\" , __func__ ) ;\n return ( - 1 ) ;\n }\n kqop -> changes = newchange ;\n newresult = realloc ( kqop -> events , nevents * sizeof ( struct kevent ) ) ;\n if ( newresult == NULL ) {\n event_warn ( \"%s: malloc\" , __func__ ) ;\n return ( - 1 ) ;\n }\n kqop -> events = newresult ;\n kqop -> nevents = nevents ;\n }\n memcpy ( & kqop -> changes [ kqop -> nchanges ++ ] , kev , sizeof ( struct kevent ) ) ;\n event_debug ( ( \"%s: fd %d %s%s\" , __func__ , ( int ) kev -> ident , kev -> filter == EVFILT_READ ? \"EVFILT_READ\" : \"EVFILT_WRITE\" , kev -> flags == EV_DELETE ? \" (del)\" : \"\" ) ) ;\n return ( 0 ) ;\n }"}
{"idx": 3832, "target": 0, "func": "static void proto_tree_set_boolean ( field_info * fi , guint64 value ) {\n proto_tree_set_uint64 ( fi , value ) ;\n }"}
{"idx": 3833, "target": 0, "func": "static void selinux_cred_transfer ( struct cred * new , const struct cred * old ) {\n const struct task_security_struct * old_tsec = old -> security ;\n struct task_security_struct * tsec = new -> security ;\n * tsec = * old_tsec ;\n }"}
{"idx": 3834, "target": 0, "func": "static int dumpnoglyphs ( struct glyphinfo * gi ) {\n gi -> glyphs = tmpfile ( ) ;\n gi -> glyph_len = 0 ;\n return ( true ) ;\n }"}
{"idx": 3835, "target": 0, "func": "static int zcountexecstack ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n push ( 1 ) ;\n make_int ( op , count_exec_stack ( i_ctx_p , false ) ) ;\n return 0 ;\n }"}
{"idx": 3836, "target": 0, "func": "static VALUE ossl_s_ciphers ( VALUE self ) {\n VALUE ary ;\n ary = rb_ary_new ( ) ;\n OBJ_NAME_do_all_sorted ( OBJ_NAME_TYPE_CIPHER_METH , ( void ( * ) ( const OBJ_NAME * , void * ) ) add_cipher_name_to_ary , ( void * ) ary ) ;\n return ary ;\n }"}
{"idx": 3837, "target": 0, "func": "void do_write_file ( struct st_command * command ) {\n do_write_file_command ( command , FALSE ) ;\n }"}
{"idx": 3838, "target": 0, "func": "static uint8_t checkBaseExtUnicode ( UCMStates * baseStates , UCMTable * base , UCMTable * ext , UBool moveToExt , UBool intersectBase ) {\n ( void ) baseStates ;\n UCMapping * mb , * me , * mbLimit , * meLimit ;\n int32_t cmp ;\n uint8_t result ;\n mb = base -> mappings ;\n mbLimit = mb + base -> mappingsLength ;\n me = ext -> mappings ;\n meLimit = me + ext -> mappingsLength ;\n result = 0 ;\n for ( ;\n ;\n ) {\n for ( ;\n ;\n ) {\n if ( mb == mbLimit ) {\n return result ;\n }\n if ( ( 0 <= mb -> f && mb -> f <= 2 ) || mb -> f == 4 ) {\n break ;\n }\n ++ mb ;\n }\n for ( ;\n ;\n ) {\n if ( me == meLimit ) {\n return result ;\n }\n if ( ( 0 <= me -> f && me -> f <= 2 ) || me -> f == 4 ) {\n break ;\n }\n ++ me ;\n }\n cmp = compareUnicode ( base , mb , ext , me ) ;\n if ( cmp < 0 ) {\n if ( intersectBase && ( intersectBase != 2 || mb -> bLen > 1 ) ) {\n mb -> moveFlag |= UCM_MOVE_TO_EXT ;\n result |= NEEDS_MOVE ;\n }\n else if ( mb -> uLen < me -> uLen && 0 == uprv_memcmp ( UCM_GET_CODE_POINTS ( base , mb ) , UCM_GET_CODE_POINTS ( ext , me ) , 4 * mb -> uLen ) ) {\n if ( moveToExt ) {\n mb -> moveFlag |= UCM_MOVE_TO_EXT ;\n result |= NEEDS_MOVE ;\n }\n else {\n fprintf ( stderr , \"ucm error: the base table contains a mapping whose input sequence\\n\" \" is a prefix of the input sequence of an extension mapping\\n\" ) ;\n ucm_printMapping ( base , mb , stderr ) ;\n ucm_printMapping ( ext , me , stderr ) ;\n result |= HAS_ERRORS ;\n }\n }\n ++ mb ;\n }\n else if ( cmp == 0 ) {\n if ( mb -> f == me -> f && mb -> bLen == me -> bLen && 0 == uprv_memcmp ( UCM_GET_BYTES ( base , mb ) , UCM_GET_BYTES ( ext , me ) , mb -> bLen ) ) {\n me -> moveFlag |= UCM_REMOVE_MAPPING ;\n result |= NEEDS_MOVE ;\n }\n else if ( intersectBase ) {\n mb -> moveFlag |= UCM_MOVE_TO_EXT ;\n result |= NEEDS_MOVE ;\n }\n else {\n fprintf ( stderr , \"ucm error: the base table contains a mapping whose input sequence\\n\" \" is the same as the input sequence of an extension mapping\\n\" \" but it maps differently\\n\" ) ;\n ucm_printMapping ( base , mb , stderr ) ;\n ucm_printMapping ( ext , me , stderr ) ;\n result |= HAS_ERRORS ;\n }\n ++ mb ;\n }\n else {\n ++ me ;\n }\n }\n }"}
{"idx": 3839, "target": 0, "func": "static void choose_largest_tx_size ( VP9_COMP * cpi , MACROBLOCK * x , int * rate , int64_t * distortion , int * skip , int64_t * sse , int64_t ref_best_rd , BLOCK_SIZE bs ) {\n const TX_SIZE max_tx_size = max_txsize_lookup [ bs ] ;\n VP9_COMMON * const cm = & cpi -> common ;\n const TX_SIZE largest_tx_size = tx_mode_to_biggest_tx_size [ cm -> tx_mode ] ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n MB_MODE_INFO * const mbmi = & xd -> mi [ 0 ] . src_mi -> mbmi ;\n mbmi -> tx_size = MIN ( max_tx_size , largest_tx_size ) ;\n txfm_rd_in_plane ( x , rate , distortion , skip , sse , ref_best_rd , 0 , bs , mbmi -> tx_size , cpi -> sf . use_fast_coef_costing ) ;\n }"}
{"idx": 3840, "target": 0, "func": "static void dissect_zcl_ota_attr_data ( proto_tree * tree , tvbuff_t * tvb , guint * offset , guint16 attr_id , guint data_type ) {\n switch ( attr_id ) {\n case ZBEE_ZCL_ATTR_ID_OTA_CURRENT_FILE_VERSION : case ZBEE_ZCL_ATTR_ID_OTA_DOWNLOADED_FILE_VERSION : dissect_zcl_ota_file_version_field ( tvb , tree , offset ) ;\n break ;\n case ZBEE_ZCL_ATTR_ID_OTA_CURRENT_ZB_STACK_VERSION : case ZBEE_ZCL_ATTR_ID_OTA_DOWNLOADED_ZB_STACK_VERSION : proto_tree_add_item ( tree , hf_zbee_zcl_ota_zb_stack_ver , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_OTA_IMAGE_UPGRADE_STATUS : proto_tree_add_item ( tree , hf_zbee_zcl_ota_image_upgrade_status , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_OTA_MANUFACTURER_ID : proto_tree_add_item ( tree , hf_zbee_zcl_ota_manufacturer_code , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_OTA_IMAGE_TYPE_ID : proto_tree_add_item ( tree , hf_zbee_zcl_ota_image_type , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_OTA_MIN_BLOCK_REQ_DELAY : default : dissect_zcl_attr_data ( tvb , tree , offset , data_type ) ;\n break ;\n }\n }"}
{"idx": 3841, "target": 0, "func": "static int64_t timebase_units_to_ticks ( const vpx_rational_t * timebase , int64_t n ) {\n return n * TICKS_PER_SEC * timebase -> num / timebase -> den ;\n }"}
{"idx": 3842, "target": 0, "func": "static gint dissect_ac_if_input_terminal ( tvbuff_t * tvb , gint offset , packet_info * pinfo _U_ , proto_tree * tree , usb_conv_info_t * usb_conv_info _U_ ) {\n gint offset_start ;\n offset_start = offset ;\n proto_tree_add_item ( tree , hf_ac_if_input_terminalid , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_ac_if_input_terminaltype , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_ac_if_input_assocterminal , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_ac_if_input_nrchannels , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_ac_if_input_channelconfig , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_ac_if_input_channelnames , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_ac_if_input_terminal , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 1 ;\n return offset - offset_start ;\n }"}
{"idx": 3843, "target": 0, "func": "static void virtio_map ( PCIDevice * pci_dev , int region_num , pcibus_t addr , pcibus_t size , int type ) {\n VirtIOPCIProxy * proxy = container_of ( pci_dev , VirtIOPCIProxy , pci_dev ) ;\n VirtIODevice * vdev = proxy -> vdev ;\n unsigned config_len = VIRTIO_PCI_REGION_SIZE ( pci_dev ) + vdev -> config_len ;\n proxy -> addr = addr ;\n register_ioport_write ( addr , config_len , 1 , virtio_pci_config_writeb , proxy ) ;\n register_ioport_write ( addr , config_len , 2 , virtio_pci_config_writew , proxy ) ;\n register_ioport_write ( addr , config_len , 4 , virtio_pci_config_writel , proxy ) ;\n register_ioport_read ( addr , config_len , 1 , virtio_pci_config_readb , proxy ) ;\n register_ioport_read ( addr , config_len , 2 , virtio_pci_config_readw , proxy ) ;\n register_ioport_read ( addr , config_len , 4 , virtio_pci_config_readl , proxy ) ;\n if ( vdev -> config_len ) vdev -> get_config ( vdev , vdev -> config ) ;\n }"}
{"idx": 3844, "target": 0, "func": "int ber_flush ( Sockbuf * sb , BerElement * ber , int freeit ) {\n return ber_flush2 ( sb , ber , freeit ? LBER_FLUSH_FREE_ON_SUCCESS : LBER_FLUSH_FREE_NEVER ) ;\n }"}
{"idx": 3845, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( ClientHintsBrowserTest , ClientHintsLifetimeNotAttachedCookiesBlocked ) {\n base : : HistogramTester histogram_tester ;\n ContentSettingsForOneType host_settings ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> GetSettingsForOneType ( CONTENT_SETTINGS_TYPE_CLIENT_HINTS , std : : string ( ) , & host_settings ) ;\n EXPECT_EQ ( 0u , host_settings . size ( ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , accept_ch_with_lifetime_url ( ) ) ;\n histogram_tester . ExpectUniqueSample ( \"ClientHints.UpdateEventCount\" , 1 , 1 ) ;\n content : : FetchHistogramsFromChildProcesses ( ) ;\n SubprocessMetricsProvider : : MergeHistogramDeltasForTesting ( ) ;\n histogram_tester . ExpectUniqueSample ( \"ClientHints.UpdateSize\" , 3 , 1 ) ;\n histogram_tester . ExpectUniqueSample ( \"ClientHints.PersistDuration\" , * 1000 , 1 ) ;\n base : : RunLoop ( ) . RunUntilIdle ( ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> GetSettingsForOneType ( CONTENT_SETTINGS_TYPE_CLIENT_HINTS , std : : string ( ) , & host_settings ) ;\n EXPECT_EQ ( 1u , host_settings . size ( ) ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> SetContentSettingDefaultScope ( accept_ch_without_lifetime_url ( ) , GURL ( ) , CONTENT_SETTINGS_TYPE_COOKIES , std : : string ( ) , CONTENT_SETTING_BLOCK ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , without_accept_ch_without_lifetime_url ( ) ) ;\n EXPECT_EQ ( 0u , count_client_hints_headers_seen ( ) ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> SetContentSettingDefaultScope ( accept_ch_without_lifetime_url ( ) , GURL ( ) , CONTENT_SETTINGS_TYPE_COOKIES , std : : string ( ) , CONTENT_SETTING_ALLOW ) ;\n SetClientHintExpectationsOnMainFrame ( true ) ;\n SetClientHintExpectationsOnSubresources ( true ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , without_accept_ch_without_lifetime_url ( ) ) ;\n # if defined ( OS_ANDROID ) EXPECT_EQ ( 4u , count_client_hints_headers_seen ( ) ) ;\n # else EXPECT_EQ ( 6u , count_client_hints_headers_seen ( ) ) ;\n # endif HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> ClearSettingsForOneType ( CONTENT_SETTINGS_TYPE_COOKIES ) ;\n }"}
{"idx": 3846, "target": 0, "func": "static err_status_t srtp_unprotect_rtcp_aead ( srtp_t ctx , srtp_stream_ctx_t * stream , void * srtcp_hdr , unsigned int * pkt_octet_len ) {\n srtcp_hdr_t * hdr = ( srtcp_hdr_t * ) srtcp_hdr ;\n uint32_t * enc_start ;\n uint32_t * trailer ;\n unsigned int enc_octet_len = 0 ;\n uint8_t * auth_tag = NULL ;\n err_status_t status ;\n int tag_len ;\n unsigned int tmp_len ;\n uint32_t seq_num ;\n v128_t iv ;\n uint32_t tseq ;\n tag_len = auth_get_tag_length ( stream -> rtcp_auth ) ;\n trailer = ( uint32_t * ) ( ( char * ) hdr + * pkt_octet_len - sizeof ( srtcp_trailer_t ) ) ;\n enc_octet_len = * pkt_octet_len - ( octets_in_rtcp_header + sizeof ( srtcp_trailer_t ) ) ;\n auth_tag = ( uint8_t * ) hdr + * pkt_octet_len - tag_len - sizeof ( srtcp_trailer_t ) ;\n if ( * ( ( unsigned char * ) trailer ) & SRTCP_E_BYTE_BIT ) {\n enc_start = ( uint32_t * ) hdr + uint32s_in_rtcp_header ;\n }\n else {\n enc_octet_len = 0 ;\n enc_start = NULL ;\n }\n seq_num = ntohl ( * trailer ) & SRTCP_INDEX_MASK ;\n debug_print ( mod_srtp , \"srtcp index: %x\" , seq_num ) ;\n status = rdb_check ( & stream -> rtcp_rdb , seq_num ) ;\n if ( status ) {\n return status ;\n }\n srtp_calc_aead_iv_srtcp ( stream , & iv , seq_num , hdr ) ;\n status = cipher_set_iv ( stream -> rtcp_cipher , & iv , direction_decrypt ) ;\n if ( status ) {\n return err_status_cipher_fail ;\n }\n if ( enc_start ) {\n status = cipher_set_aad ( stream -> rtcp_cipher , ( uint8_t * ) hdr , octets_in_rtcp_header ) ;\n if ( status ) {\n return ( err_status_cipher_fail ) ;\n }\n }\n else {\n status = cipher_set_aad ( stream -> rtcp_cipher , ( uint8_t * ) hdr , ( * pkt_octet_len - tag_len - sizeof ( srtcp_trailer_t ) ) ) ;\n if ( status ) {\n return ( err_status_cipher_fail ) ;\n }\n }\n tseq = htonl ( * trailer ) ;\n status = cipher_set_aad ( stream -> rtcp_cipher , ( uint8_t * ) & tseq , sizeof ( srtcp_trailer_t ) ) ;\n if ( status ) {\n return ( err_status_cipher_fail ) ;\n }\n if ( enc_start ) {\n status = cipher_decrypt ( stream -> rtcp_cipher , ( uint8_t * ) enc_start , & enc_octet_len ) ;\n if ( status ) {\n return status ;\n }\n }\n else {\n tmp_len = tag_len ;\n status = cipher_decrypt ( stream -> rtcp_cipher , ( uint8_t * ) auth_tag , & tmp_len ) ;\n if ( status ) {\n return status ;\n }\n }\n * pkt_octet_len -= ( tag_len + sizeof ( srtcp_trailer_t ) ) ;\n if ( stream -> direction != dir_srtp_receiver ) {\n if ( stream -> direction == dir_unknown ) {\n stream -> direction = dir_srtp_receiver ;\n }\n else {\n srtp_handle_event ( ctx , stream , event_ssrc_collision ) ;\n }\n }\n if ( stream == ctx -> stream_template ) {\n srtp_stream_ctx_t * new_stream ;\n status = srtp_stream_clone ( ctx -> stream_template , hdr -> ssrc , & new_stream ) ;\n if ( status ) {\n return status ;\n }\n new_stream -> next = ctx -> stream_list ;\n ctx -> stream_list = new_stream ;\n stream = new_stream ;\n }\n rdb_add_index ( & stream -> rtcp_rdb , seq_num ) ;\n return err_status_ok ;\n }"}
{"idx": 3847, "target": 0, "func": "TEST_F ( AutocompleteResultTest , CopyOldMatches ) {\n TestData last [ ] = {\n {\n 0 , 1 , 1000 , true }\n , {\n 1 , 1 , 500 , true }\n , }\n ;\n TestData current [ ] = {\n {\n 2 , 1 , 400 , true }\n , }\n ;\n TestData result [ ] = {\n {\n 2 , 1 , 400 , true }\n , {\n 1 , 1 , 399 , true }\n , }\n ;\n ASSERT_NO_FATAL_FAILURE ( RunCopyOldMatchesTest ( last , arraysize ( last ) , current , arraysize ( current ) , result , arraysize ( result ) ) ) ;\n }"}
{"idx": 3848, "target": 0, "func": "static void build_inter_predictors ( MACROBLOCKD * xd , int plane , int block , int bw , int bh , int x , int y , int w , int h , int mi_x , int mi_y ) {\n struct macroblockd_plane * const pd = & xd -> plane [ plane ] ;\n const MODE_INFO * mi = xd -> mi [ 0 ] . src_mi ;\n const int is_compound = has_second_ref ( & mi -> mbmi ) ;\n const InterpKernel * kernel = vp9_get_interp_kernel ( mi -> mbmi . interp_filter ) ;\n int ref ;\n for ( ref = 0 ;\n ref < 1 + is_compound ;\n ++ ref ) {\n const struct scale_factors * const sf = & xd -> block_refs [ ref ] -> sf ;\n struct buf_2d * const pre_buf = & pd -> pre [ ref ] ;\n struct buf_2d * const dst_buf = & pd -> dst ;\n uint8_t * const dst = dst_buf -> buf + dst_buf -> stride * y + x ;\n const MV mv = mi -> mbmi . sb_type < BLOCK_8X8 ? average_split_mvs ( pd , mi , ref , block ) : mi -> mbmi . mv [ ref ] . as_mv ;\n const MV mv_q4 = clamp_mv_to_umv_border_sb ( xd , & mv , bw , bh , pd -> subsampling_x , pd -> subsampling_y ) ;\n uint8_t * pre ;\n MV32 scaled_mv ;\n int xs , ys , subpel_x , subpel_y ;\n if ( vp9_is_scaled ( sf ) ) {\n pre = pre_buf -> buf + scaled_buffer_offset ( x , y , pre_buf -> stride , sf ) ;\n scaled_mv = vp9_scale_mv ( & mv_q4 , mi_x + x , mi_y + y , sf ) ;\n xs = sf -> x_step_q4 ;\n ys = sf -> y_step_q4 ;\n }\n else {\n pre = pre_buf -> buf + ( y * pre_buf -> stride + x ) ;\n scaled_mv . row = mv_q4 . row ;\n scaled_mv . col = mv_q4 . col ;\n xs = ys = 16 ;\n }\n subpel_x = scaled_mv . col & SUBPEL_MASK ;\n subpel_y = scaled_mv . row & SUBPEL_MASK ;\n pre += ( scaled_mv . row >> SUBPEL_BITS ) * pre_buf -> stride + ( scaled_mv . col >> SUBPEL_BITS ) ;\n # if CONFIG_VP9_HIGHBITDEPTH if ( xd -> cur_buf -> flags & YV12_FLAG_HIGHBITDEPTH ) {\n high_inter_predictor ( pre , pre_buf -> stride , dst , dst_buf -> stride , subpel_x , subpel_y , sf , w , h , ref , kernel , xs , ys , xd -> bd ) ;\n }\n else {\n inter_predictor ( pre , pre_buf -> stride , dst , dst_buf -> stride , subpel_x , subpel_y , sf , w , h , ref , kernel , xs , ys ) ;\n }\n # else inter_predictor ( pre , pre_buf -> stride , dst , dst_buf -> stride , subpel_x , subpel_y , sf , w , h , ref , kernel , xs , ys ) ;\n # endif }\n }"}
{"idx": 3849, "target": 0, "func": "int Gif_FullUncompressImage ( Gif_Stream * gfs , Gif_Image * gfi , Gif_ReadErrorHandler h ) {\n Gif_Context gfc ;\n Gif_Reader grr ;\n int ok = 0 ;\n if ( gfi -> img ) return 2 ;\n if ( gfi -> image_data ) return 0 ;\n gfc . stream = gfs ;\n gfc . gfi = gfi ;\n gfc . prefix = Gif_NewArray ( Gif_Code , GIF_MAX_CODE ) ;\n gfc . suffix = Gif_NewArray ( uint8_t , GIF_MAX_CODE ) ;\n gfc . length = Gif_NewArray ( uint16_t , GIF_MAX_CODE ) ;\n gfc . handler = h ;\n gfc . errors [ 0 ] = gfc . errors [ 1 ] = 0 ;\n if ( gfc . prefix && gfc . suffix && gfc . length && gfi -> compressed ) {\n make_data_reader ( & grr , gfi -> compressed , gfi -> compressed_len ) ;\n ok = uncompress_image ( & gfc , gfi , & grr ) ;\n }\n Gif_DeleteArray ( gfc . prefix ) ;\n Gif_DeleteArray ( gfc . suffix ) ;\n Gif_DeleteArray ( gfc . length ) ;\n if ( gfc . errors [ 0 ] || gfc . errors [ 1 ] ) gif_read_error ( & gfc , - 1 , 0 ) ;\n return ok && ! gfc . errors [ 1 ] ;\n }"}
{"idx": 3850, "target": 0, "func": "int MBS_ReadHeader ( int fd , MBSPatchHeader * header ) {\n int s = read ( fd , header , sizeof ( MBSPatchHeader ) ) ;\n if ( s != sizeof ( MBSPatchHeader ) ) return READ_ERROR ;\n header -> slen = ntohl ( header -> slen ) ;\n header -> scrc32 = ntohl ( header -> scrc32 ) ;\n header -> dlen = ntohl ( header -> dlen ) ;\n header -> cblen = ntohl ( header -> cblen ) ;\n header -> difflen = ntohl ( header -> difflen ) ;\n header -> extralen = ntohl ( header -> extralen ) ;\n struct stat hs ;\n s = fstat ( fd , & hs ) ;\n if ( s != 0 ) return READ_ERROR ;\n if ( memcmp ( header -> tag , \"MBDIFF10\" , 8 ) != 0 ) return UNEXPECTED_ERROR ;\n if ( hs . st_size > INT_MAX ) return UNEXPECTED_ERROR ;\n size_t size = static_cast < size_t > ( hs . st_size ) ;\n if ( size < sizeof ( MBSPatchHeader ) ) return UNEXPECTED_ERROR ;\n size -= sizeof ( MBSPatchHeader ) ;\n if ( size < header -> cblen ) return UNEXPECTED_ERROR ;\n size -= header -> cblen ;\n if ( size < header -> difflen ) return UNEXPECTED_ERROR ;\n size -= header -> difflen ;\n if ( size < header -> extralen ) return UNEXPECTED_ERROR ;\n size -= header -> extralen ;\n if ( size != 0 ) return UNEXPECTED_ERROR ;\n return OK ;\n }"}
{"idx": 3851, "target": 0, "func": "void show_error_msg ( int m6resp , associd_t associd ) {\n if ( numhosts > 1 ) fprintf ( stderr , \"server=%s \" , currenthost ) ;\n switch ( m6resp ) {\n case CERR_BADFMT : fprintf ( stderr , \"***Server reports a bad format request packet\\n\" ) ;\n break ;\n case CERR_PERMISSION : fprintf ( stderr , \"***Server disallowed request (authentication?)\\n\" ) ;\n break ;\n case CERR_BADOP : fprintf ( stderr , \"***Server reports a bad opcode in request\\n\" ) ;\n break ;\n case CERR_BADASSOC : fprintf ( stderr , \"***Association ID %d unknown to server\\n\" , associd ) ;\n break ;\n case CERR_UNKNOWNVAR : fprintf ( stderr , \"***A request variable unknown to the server\\n\" ) ;\n break ;\n case CERR_BADVALUE : fprintf ( stderr , \"***Server indicates a request variable was bad\\n\" ) ;\n break ;\n case ERR_UNSPEC : fprintf ( stderr , \"***Server returned an unspecified error\\n\" ) ;\n break ;\n case ERR_TIMEOUT : fprintf ( stderr , \"***Request timed out\\n\" ) ;\n break ;\n case ERR_INCOMPLETE : fprintf ( stderr , \"***Response from server was incomplete\\n\" ) ;\n break ;\n case ERR_TOOMUCH : fprintf ( stderr , \"***Buffer size exceeded for returned data\\n\" ) ;\n break ;\n default : fprintf ( stderr , \"***Server returns unknown error code %d\\n\" , m6resp ) ;\n }\n }"}
{"idx": 3852, "target": 0, "func": "static const char * cmd_tmp_dir ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n if ( dcfg == NULL ) return NULL ;\n if ( strcasecmp ( p1 , \"none\" ) == 0 ) dcfg -> tmp_dir = NULL ;\n else dcfg -> tmp_dir = ap_server_root_relative ( cmd -> pool , p1 ) ;\n return NULL ;\n }"}
{"idx": 3853, "target": 0, "func": "struct condition * compiler_create_condition ( struct filter_op * fop ) {\n struct condition * cnd ;\n SAFE_CALLOC ( cnd , 1 , sizeof ( struct condition ) ) ;\n memcpy ( & cnd -> fop , fop , sizeof ( struct filter_op ) ) ;\n return cnd ;\n }"}
{"idx": 3854, "target": 0, "func": "proto_item * proto_tree_add_checksum ( proto_tree * tree , tvbuff_t * tvb , const guint offset , const int hf_checksum , const int hf_checksum_status , struct expert_field * bad_checksum_expert , packet_info * pinfo , guint32 computed_checksum , const guint encoding , const guint flags ) {\n header_field_info * hfinfo = proto_registrar_get_nth ( hf_checksum ) ;\n guint32 checksum ;\n guint32 len ;\n proto_item * ti = NULL ;\n proto_item * ti2 ;\n gboolean incorrect_checksum = TRUE ;\n DISSECTOR_ASSERT_HINT ( hfinfo != NULL , \"Not passed hfi!\" ) ;\n if ( flags & PROTO_CHECKSUM_NOT_PRESENT ) {\n ti = proto_tree_add_uint_format_value ( tree , hf_checksum , tvb , offset , 0 , 0 , \"[missing]\" ) ;\n PROTO_ITEM_SET_GENERATED ( ti ) ;\n if ( hf_checksum_status != - 1 ) {\n ti2 = proto_tree_add_uint ( tree , hf_checksum_status , tvb , offset , 0 , PROTO_CHECKSUM_E_NOT_PRESENT ) ;\n PROTO_ITEM_SET_GENERATED ( ti2 ) ;\n }\n return ti ;\n }\n switch ( hfinfo -> type ) {\n case FT_UINT8 : len = 1 ;\n break ;\n case FT_UINT16 : len = 2 ;\n break ;\n case FT_UINT24 : len = 3 ;\n break ;\n case FT_UINT32 : len = 4 ;\n break ;\n default : DISSECTOR_ASSERT_NOT_REACHED ( ) ;\n }\n if ( flags & PROTO_CHECKSUM_GENERATED ) {\n ti = proto_tree_add_uint ( tree , hf_checksum , tvb , offset , 0 , computed_checksum ) ;\n PROTO_ITEM_SET_GENERATED ( ti ) ;\n }\n else {\n ti = proto_tree_add_item_ret_uint ( tree , hf_checksum , tvb , offset , len , encoding , & checksum ) ;\n if ( flags & PROTO_CHECKSUM_VERIFY ) {\n if ( flags & ( PROTO_CHECKSUM_IN_CKSUM | PROTO_CHECKSUM_ZERO ) ) {\n if ( computed_checksum == 0 ) {\n proto_item_append_text ( ti , \" [correct]\" ) ;\n if ( hf_checksum_status != - 1 ) {\n ti2 = proto_tree_add_uint ( tree , hf_checksum_status , tvb , offset , 0 , PROTO_CHECKSUM_E_GOOD ) ;\n PROTO_ITEM_SET_GENERATED ( ti2 ) ;\n }\n incorrect_checksum = FALSE ;\n }\n else if ( flags & PROTO_CHECKSUM_IN_CKSUM ) {\n computed_checksum = in_cksum_shouldbe ( checksum , computed_checksum ) ;\n }\n }\n else {\n if ( checksum == computed_checksum ) {\n proto_item_append_text ( ti , \" [correct]\" ) ;\n if ( hf_checksum_status != - 1 ) {\n ti2 = proto_tree_add_uint ( tree , hf_checksum_status , tvb , offset , 0 , PROTO_CHECKSUM_E_GOOD ) ;\n PROTO_ITEM_SET_GENERATED ( ti2 ) ;\n }\n incorrect_checksum = FALSE ;\n }\n }\n if ( incorrect_checksum ) {\n if ( hf_checksum_status != - 1 ) {\n ti2 = proto_tree_add_uint ( tree , hf_checksum_status , tvb , offset , 0 , PROTO_CHECKSUM_E_BAD ) ;\n PROTO_ITEM_SET_GENERATED ( ti2 ) ;\n }\n if ( flags & PROTO_CHECKSUM_ZERO ) {\n proto_item_append_text ( ti , \" [incorrect]\" ) ;\n if ( bad_checksum_expert != NULL ) expert_add_info_format ( pinfo , ti , bad_checksum_expert , \"Bad checksum\" ) ;\n }\n else {\n switch ( hfinfo -> type ) {\n case FT_UINT8 : proto_item_append_text ( ti , \" [incorrect, should be 0x%02x]\" , computed_checksum ) ;\n if ( bad_checksum_expert != NULL ) expert_add_info_format ( pinfo , ti , bad_checksum_expert , \"Bad checksum [should be 0x%02x]\" , computed_checksum ) ;\n break ;\n case FT_UINT16 : proto_item_append_text ( ti , \" [incorrect, should be 0x%04x]\" , computed_checksum ) ;\n if ( bad_checksum_expert != NULL ) expert_add_info_format ( pinfo , ti , bad_checksum_expert , \"Bad checksum [should be 0x%04x]\" , computed_checksum ) ;\n break ;\n case FT_UINT24 : proto_item_append_text ( ti , \" [incorrect, should be 0x%06x]\" , computed_checksum ) ;\n if ( bad_checksum_expert != NULL ) expert_add_info_format ( pinfo , ti , bad_checksum_expert , \"Bad checksum [should be 0x%06x]\" , computed_checksum ) ;\n break ;\n case FT_UINT32 : proto_item_append_text ( ti , \" [incorrect, should be 0x%08x]\" , computed_checksum ) ;\n if ( bad_checksum_expert != NULL ) expert_add_info_format ( pinfo , ti , bad_checksum_expert , \"Bad checksum [should be 0x%08x]\" , computed_checksum ) ;\n break ;\n default : DISSECTOR_ASSERT_NOT_REACHED ( ) ;\n }\n }\n }\n }\n else {\n if ( hf_checksum_status != - 1 ) {\n proto_item_append_text ( ti , \" [unverified]\" ) ;\n ti2 = proto_tree_add_uint ( tree , hf_checksum_status , tvb , offset , 0 , PROTO_CHECKSUM_E_UNVERIFIED ) ;\n PROTO_ITEM_SET_GENERATED ( ti2 ) ;\n }\n }\n }\n return ti ;\n }"}
{"idx": 3855, "target": 0, "func": "static void dissect_rsvp_notify_request ( proto_item * ti , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int type ) {\n int offset2 = offset + 4 ;\n switch ( type ) {\n case 1 : {\n proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"1 - IPv4\" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_notify_request_notify_node_address_ipv4 , tvb , offset2 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \": Notify node: %s\" , tvb_ip_to_str ( tvb , offset2 ) ) ;\n break ;\n }\n case 2 : {\n proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"2 - IPv6\" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_notify_request_notify_node_address_ipv6 , tvb , offset2 , 16 , ENC_NA ) ;\n proto_item_append_text ( ti , \": Notify node: %s\" , tvb_ip6_to_str ( tvb , offset2 ) ) ;\n break ;\n }\n default : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"Unknown (%u)\" , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_notify_request_data , tvb , offset2 , obj_length - 4 , ENC_NA ) ;\n break ;\n }\n }"}
{"idx": 3856, "target": 0, "func": "static const char * cmd_debug_log_level ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n dcfg -> debuglog_level = atoi ( p1 ) ;\n if ( ( dcfg -> debuglog_level >= 0 ) && ( dcfg -> debuglog_level <= 9 ) ) return NULL ;\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid value for SecDebugLogLevel: %s\" , p1 ) ;\n }"}
{"idx": 3857, "target": 0, "func": "static void get_frame_mb ( const AVFrame * frame , int x , int y , uint8_t mb [ ] , int dim ) {\n int i , j , cp ;\n for ( cp = 0 ;\n cp < 3 ;\n cp ++ ) {\n int stride = frame -> linesize [ cp ] ;\n for ( i = 0 ;\n i < dim ;\n i ++ ) for ( j = 0 ;\n j < dim ;\n j ++ ) * mb ++ = frame -> data [ cp ] [ ( y + i ) * stride + x + j ] ;\n }\n }"}
{"idx": 3858, "target": 0, "func": "static int vcr2_init_sequence ( AVCodecContext * avctx ) {\n Mpeg1Context * s1 = avctx -> priv_data ;\n MpegEncContext * s = & s1 -> mpeg_enc_ctx ;\n int i , v ;\n s -> out_format = FMT_MPEG1 ;\n if ( s1 -> mpeg_enc_ctx_allocated ) {\n ff_MPV_common_end ( s ) ;\n }\n s -> width = avctx -> coded_width ;\n s -> height = avctx -> coded_height ;\n avctx -> has_b_frames = 0 ;\n s -> low_delay = 1 ;\n avctx -> pix_fmt = mpeg_get_pixelformat ( avctx ) ;\n avctx -> hwaccel = ff_find_hwaccel ( avctx -> codec -> id , avctx -> pix_fmt ) ;\n if ( avctx -> pix_fmt == AV_PIX_FMT_XVMC_MPEG2_IDCT || avctx -> hwaccel || s -> avctx -> codec -> capabilities & CODEC_CAP_HWACCEL_VDPAU ) if ( avctx -> idct_algo == FF_IDCT_AUTO ) avctx -> idct_algo = FF_IDCT_SIMPLE ;\n if ( ff_MPV_common_init ( s ) < 0 ) return - 1 ;\n exchange_uv ( s ) ;\n s -> swap_uv = 1 ;\n s1 -> mpeg_enc_ctx_allocated = 1 ;\n for ( i = 0 ;\n i < 64 ;\n i ++ ) {\n int j = s -> dsp . idct_permutation [ i ] ;\n v = ff_mpeg1_default_intra_matrix [ i ] ;\n s -> intra_matrix [ j ] = v ;\n s -> chroma_intra_matrix [ j ] = v ;\n v = ff_mpeg1_default_non_intra_matrix [ i ] ;\n s -> inter_matrix [ j ] = v ;\n s -> chroma_inter_matrix [ j ] = v ;\n }\n s -> progressive_sequence = 1 ;\n s -> progressive_frame = 1 ;\n s -> picture_structure = PICT_FRAME ;\n s -> frame_pred_frame_dct = 1 ;\n s -> chroma_format = 1 ;\n s -> codec_id = s -> avctx -> codec_id = AV_CODEC_ID_MPEG2VIDEO ;\n s1 -> save_width = s -> width ;\n s1 -> save_height = s -> height ;\n s1 -> save_progressive_seq = s -> progressive_sequence ;\n return 0 ;\n }"}
{"idx": 3859, "target": 0, "func": "static void pfkey_dump_sa_done ( struct pfkey_sock * pfk ) {\n xfrm_state_walk_done ( & pfk -> dump . u . state ) ;\n }"}
{"idx": 3860, "target": 0, "func": "static void proto_tree_set_fcwwn ( field_info * fi , const guint8 * value_ptr ) {\n DISSECTOR_ASSERT ( value_ptr != NULL ) ;\n fvalue_set_bytes ( & fi -> value , value_ptr ) ;\n }"}
{"idx": 3861, "target": 0, "func": "static void run_shell ( char const * shell , char const * command , char * * additional_args , size_t n_additional_args ) {\n size_t n_args = 1 + fast_startup + 2 * ! ! command + n_additional_args + 1 ;\n char const * * args = xcalloc ( n_args , sizeof * args ) ;\n size_t argno = 1 ;\n if ( simulate_login ) {\n char * arg0 ;\n char * shell_basename ;\n shell_basename = basename ( shell ) ;\n arg0 = xmalloc ( strlen ( shell_basename ) + 2 ) ;\n arg0 [ 0 ] = '-' ;\n strcpy ( arg0 + 1 , shell_basename ) ;\n args [ 0 ] = arg0 ;\n }\n else args [ 0 ] = basename ( shell ) ;\n if ( fast_startup ) args [ argno ++ ] = \"-f\" ;\n if ( command ) {\n args [ argno ++ ] = \"-c\" ;\n args [ argno ++ ] = command ;\n }\n memcpy ( args + argno , additional_args , n_additional_args * sizeof * args ) ;\n args [ argno + n_additional_args ] = NULL ;\n execv ( shell , ( char * * ) args ) ;\n {\n int exit_status = ( errno == ENOENT ? EXIT_ENOENT : EXIT_CANNOT_INVOKE ) ;\n warn ( _ ( \"failed to execute %s\" ) , shell ) ;\n exit ( exit_status ) ;\n }\n }"}
{"idx": 3862, "target": 0, "func": "static void http_complete_write ( int fd , short what , void * arg ) {\n struct bufferevent * bev = arg ;\n const char * http_request = \"host\\r\\n\" \"Connection: close\\r\\n\" \"\\r\\n\" ;\n bufferevent_write ( bev , http_request , strlen ( http_request ) ) ;\n }"}
{"idx": 3863, "target": 0, "func": "int xmlListAppend ( xmlListPtr l , void * data ) {\n xmlLinkPtr lkPlace , lkNew ;\n if ( l == NULL ) return ( 1 ) ;\n lkPlace = xmlListHigherSearch ( l , data ) ;\n lkNew = ( xmlLinkPtr ) xmlMalloc ( sizeof ( xmlLink ) ) ;\n if ( lkNew == NULL ) {\n xmlGenericError ( xmlGenericErrorContext , \"Cannot initialize memory for new link\" ) ;\n return ( 1 ) ;\n }\n lkNew -> data = data ;\n lkNew -> next = lkPlace -> next ;\n ( lkPlace -> next ) -> prev = lkNew ;\n lkPlace -> next = lkNew ;\n lkNew -> prev = lkPlace ;\n return 0 ;\n }"}
{"idx": 3864, "target": 0, "func": "static int usbdev_open ( struct inode * inode , struct file * file ) {\n struct usb_device * dev = NULL ;\n struct usb_dev_state * ps ;\n int ret ;\n ret = - ENOMEM ;\n ps = kzalloc ( sizeof ( struct usb_dev_state ) , GFP_KERNEL ) ;\n if ( ! ps ) goto out_free_ps ;\n ret = - ENODEV ;\n mutex_lock ( & usbfs_mutex ) ;\n if ( imajor ( inode ) == USB_DEVICE_MAJOR ) dev = usbdev_lookup_by_devt ( inode -> i_rdev ) ;\n mutex_unlock ( & usbfs_mutex ) ;\n if ( ! dev ) goto out_free_ps ;\n usb_lock_device ( dev ) ;\n if ( dev -> state == USB_STATE_NOTATTACHED ) goto out_unlock_device ;\n ret = usb_autoresume_device ( dev ) ;\n if ( ret ) goto out_unlock_device ;\n ps -> dev = dev ;\n ps -> file = file ;\n ps -> interface_allowed_mask = 0xFFFFFFFF ;\n spin_lock_init ( & ps -> lock ) ;\n INIT_LIST_HEAD ( & ps -> list ) ;\n INIT_LIST_HEAD ( & ps -> async_pending ) ;\n INIT_LIST_HEAD ( & ps -> async_completed ) ;\n INIT_LIST_HEAD ( & ps -> memory_list ) ;\n init_waitqueue_head ( & ps -> wait ) ;\n ps -> disc_pid = get_pid ( task_pid ( current ) ) ;\n ps -> cred = get_current_cred ( ) ;\n security_task_getsecid ( current , & ps -> secid ) ;\n smp_wmb ( ) ;\n list_add_tail ( & ps -> list , & dev -> filelist ) ;\n file -> private_data = ps ;\n usb_unlock_device ( dev ) ;\n snoop ( & dev -> dev , \"opened by process %d: %s\\n\" , task_pid_nr ( current ) , current -> comm ) ;\n return ret ;\n out_unlock_device : usb_unlock_device ( dev ) ;\n usb_put_dev ( dev ) ;\n out_free_ps : kfree ( ps ) ;\n return ret ;\n }"}
{"idx": 3865, "target": 0, "func": "Datum neqsel ( PG_FUNCTION_ARGS ) {\n PlannerInfo * root = ( PlannerInfo * ) PG_GETARG_POINTER ( 0 ) ;\n Oid operator = PG_GETARG_OID ( 1 ) ;\n List * args = ( List * ) PG_GETARG_POINTER ( 2 ) ;\n int varRelid = PG_GETARG_INT32 ( 3 ) ;\n Oid eqop ;\n float8 result ;\n eqop = get_negator ( operator ) ;\n if ( eqop ) {\n result = DatumGetFloat8 ( DirectFunctionCall4 ( eqsel , PointerGetDatum ( root ) , ObjectIdGetDatum ( eqop ) , PointerGetDatum ( args ) , Int32GetDatum ( varRelid ) ) ) ;\n }\n else {\n result = DEFAULT_EQ_SEL ;\n }\n result = 1.0 - result ;\n PG_RETURN_FLOAT8 ( result ) ;\n }"}
{"idx": 3866, "target": 0, "func": "static ASN1_UTCTIME * obj_to_asn1utime ( VALUE time ) {\n time_t sec ;\n ASN1_UTCTIME * t ;\n # if defined ( HAVE_ASN1_TIME_ADJ ) int off_days ;\n ossl_time_split ( time , & sec , & off_days ) ;\n if ( ! ( t = ASN1_UTCTIME_adj ( NULL , sec , off_days , 0 ) ) ) # else sec = time_to_time_t ( time ) ;\n if ( ! ( t = ASN1_UTCTIME_set ( NULL , sec ) ) ) # endif ossl_raise ( eASN1Error , NULL ) ;\n return t ;\n }"}
{"idx": 3867, "target": 0, "func": "static int dissect_h245_SEQUENCE_SIZE_1_256_OF_QOSCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h245_SEQUENCE_SIZE_1_256_OF_QOSCapability , SEQUENCE_SIZE_1_256_OF_QOSCapability_sequence_of , 1 , 256 , FALSE ) ;\n return offset ;\n }"}
{"idx": 3868, "target": 0, "func": "static void rpza_decode_stream ( RpzaContext * s ) {\n int width = s -> avctx -> width ;\n int stride = s -> frame . linesize [ 0 ] / 2 ;\n int row_inc = stride - 4 ;\n int stream_ptr = 0 ;\n int chunk_size ;\n unsigned char opcode ;\n int n_blocks ;\n unsigned short colorA = 0 , colorB ;\n unsigned short color4 [ 4 ] ;\n unsigned char index , idx ;\n unsigned short ta , tb ;\n unsigned short * pixels = ( unsigned short * ) s -> frame . data [ 0 ] ;\n int row_ptr = 0 ;\n int pixel_ptr = 0 ;\n int block_ptr ;\n int pixel_x , pixel_y ;\n int total_blocks ;\n if ( s -> buf [ stream_ptr ] != 0xe1 ) av_log ( s -> avctx , AV_LOG_ERROR , \"First chunk byte is 0x%02x instead of 0xe1\\n\" , s -> buf [ stream_ptr ] ) ;\n chunk_size = AV_RB32 ( & s -> buf [ stream_ptr ] ) & 0x00FFFFFF ;\n stream_ptr += 4 ;\n if ( chunk_size != s -> size ) av_log ( s -> avctx , AV_LOG_ERROR , \"MOV chunk size != encoded chunk size;\n using MOV chunk size\\n\" ) ;\n chunk_size = s -> size ;\n total_blocks = ( ( s -> avctx -> width + 3 ) / 4 ) * ( ( s -> avctx -> height + 3 ) / 4 ) ;\n while ( stream_ptr < chunk_size ) {\n opcode = s -> buf [ stream_ptr ++ ] ;\n n_blocks = ( opcode & 0x1f ) + 1 ;\n if ( ( opcode & 0x80 ) == 0 ) {\n colorA = ( opcode << 8 ) | ( s -> buf [ stream_ptr ++ ] ) ;\n opcode = 0 ;\n if ( ( s -> buf [ stream_ptr ] & 0x80 ) != 0 ) {\n opcode = 0x20 ;\n n_blocks = 1 ;\n }\n }\n switch ( opcode & 0xe0 ) {\n case 0x80 : while ( n_blocks -- ) {\n ADVANCE_BLOCK ( ) ;\n }\n break ;\n case 0xa0 : colorA = AV_RB16 ( & s -> buf [ stream_ptr ] ) ;\n stream_ptr += 2 ;\n while ( n_blocks -- ) {\n block_ptr = row_ptr + pixel_ptr ;\n for ( pixel_y = 0 ;\n pixel_y < 4 ;\n pixel_y ++ ) {\n for ( pixel_x = 0 ;\n pixel_x < 4 ;\n pixel_x ++ ) {\n pixels [ block_ptr ] = colorA ;\n block_ptr ++ ;\n }\n block_ptr += row_inc ;\n }\n ADVANCE_BLOCK ( ) ;\n }\n break ;\n case 0xc0 : colorA = AV_RB16 ( & s -> buf [ stream_ptr ] ) ;\n stream_ptr += 2 ;\n case 0x20 : colorB = AV_RB16 ( & s -> buf [ stream_ptr ] ) ;\n stream_ptr += 2 ;\n color4 [ 0 ] = colorB ;\n color4 [ 1 ] = 0 ;\n color4 [ 2 ] = 0 ;\n color4 [ 3 ] = colorA ;\n ta = ( colorA >> 10 ) & 0x1F ;\n tb = ( colorB >> 10 ) & 0x1F ;\n color4 [ 1 ] |= ( ( 11 * ta + 21 * tb ) >> 5 ) << 10 ;\n color4 [ 2 ] |= ( ( 21 * ta + 11 * tb ) >> 5 ) << 10 ;\n ta = ( colorA >> 5 ) & 0x1F ;\n tb = ( colorB >> 5 ) & 0x1F ;\n color4 [ 1 ] |= ( ( 11 * ta + 21 * tb ) >> 5 ) << 5 ;\n color4 [ 2 ] |= ( ( 21 * ta + 11 * tb ) >> 5 ) << 5 ;\n ta = colorA & 0x1F ;\n tb = colorB & 0x1F ;\n color4 [ 1 ] |= ( ( 11 * ta + 21 * tb ) >> 5 ) ;\n color4 [ 2 ] |= ( ( 21 * ta + 11 * tb ) >> 5 ) ;\n if ( s -> size - stream_ptr < n_blocks * 4 ) return ;\n while ( n_blocks -- ) {\n block_ptr = row_ptr + pixel_ptr ;\n for ( pixel_y = 0 ;\n pixel_y < 4 ;\n pixel_y ++ ) {\n index = s -> buf [ stream_ptr ++ ] ;\n for ( pixel_x = 0 ;\n pixel_x < 4 ;\n pixel_x ++ ) {\n idx = ( index >> ( 2 * ( 3 - pixel_x ) ) ) & 0x03 ;\n pixels [ block_ptr ] = color4 [ idx ] ;\n block_ptr ++ ;\n }\n block_ptr += row_inc ;\n }\n ADVANCE_BLOCK ( ) ;\n }\n break ;\n case 0x00 : if ( s -> size - stream_ptr < 16 ) return ;\n block_ptr = row_ptr + pixel_ptr ;\n for ( pixel_y = 0 ;\n pixel_y < 4 ;\n pixel_y ++ ) {\n for ( pixel_x = 0 ;\n pixel_x < 4 ;\n pixel_x ++ ) {\n if ( ( pixel_y != 0 ) || ( pixel_x != 0 ) ) {\n colorA = AV_RB16 ( & s -> buf [ stream_ptr ] ) ;\n stream_ptr += 2 ;\n }\n pixels [ block_ptr ] = colorA ;\n block_ptr ++ ;\n }\n block_ptr += row_inc ;\n }\n ADVANCE_BLOCK ( ) ;\n break ;\n default : av_log ( s -> avctx , AV_LOG_ERROR , \"Unknown opcode %d in rpza chunk.\" \" Skip remaining %d bytes of chunk data.\\n\" , opcode , chunk_size - stream_ptr ) ;\n return ;\n }\n }\n }"}
{"idx": 3869, "target": 0, "func": "int V1F_Setup_Fetch ( struct vfp_ctx * vfc , struct http_conn * htc ) {\n struct vfp_entry * vfe ;\n CHECK_OBJ_NOTNULL ( vfc , VFP_CTX_MAGIC ) ;\n CHECK_OBJ_NOTNULL ( htc , HTTP_CONN_MAGIC ) ;\n switch ( htc -> body_status ) {\n case BS_EOF : assert ( htc -> content_length == - 1 ) ;\n vfe = VFP_Push ( vfc , & v1f_eof , 0 ) ;\n if ( vfe == NULL ) return ( ENOSPC ) ;\n vfe -> priv2 = 0 ;\n break ;\n case BS_LENGTH : assert ( htc -> content_length > 0 ) ;\n vfe = VFP_Push ( vfc , & v1f_straight , 0 ) ;\n if ( vfe == NULL ) return ( ENOSPC ) ;\n vfe -> priv2 = htc -> content_length ;\n break ;\n case BS_CHUNKED : assert ( htc -> content_length == - 1 ) ;\n vfe = VFP_Push ( vfc , & v1f_chunked , 0 ) ;\n if ( vfe == NULL ) return ( ENOSPC ) ;\n vfe -> priv2 = - 1 ;\n break ;\n default : WRONG ( \"Wrong body_status\" ) ;\n break ;\n }\n vfe -> priv1 = htc ;\n return 0 ;\n }"}
{"idx": 3870, "target": 0, "func": "void show_setup_info ( tvbuff_t * tvb , proto_tree * tree , t38_conv * p_t38_conversation ) {\n proto_tree * t38_setup_tree ;\n proto_item * ti ;\n if ( ! p_t38_conversation || p_t38_conversation -> setup_frame_number == 0 ) {\n return ;\n }\n ti = proto_tree_add_string_format ( tree , hf_t38_setup , tvb , 0 , 0 , \"\" , \"Stream setup by %s (frame %u)\" , p_t38_conversation -> setup_method , p_t38_conversation -> setup_frame_number ) ;\n PROTO_ITEM_SET_GENERATED ( ti ) ;\n t38_setup_tree = proto_item_add_subtree ( ti , ett_t38_setup ) ;\n if ( t38_setup_tree ) {\n proto_item * item = proto_tree_add_uint ( t38_setup_tree , hf_t38_setup_frame , tvb , 0 , 0 , p_t38_conversation -> setup_frame_number ) ;\n PROTO_ITEM_SET_GENERATED ( item ) ;\n item = proto_tree_add_string ( t38_setup_tree , hf_t38_setup_method , tvb , 0 , 0 , p_t38_conversation -> setup_method ) ;\n PROTO_ITEM_SET_GENERATED ( item ) ;\n }\n }"}
{"idx": 3871, "target": 0, "func": "void msyslog ( int level , const char * fmt , ... ) {\n char buf [ 1024 ] ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n mvsnprintf ( buf , sizeof ( buf ) , fmt , ap ) ;\n va_end ( ap ) ;\n addto_syslog ( level , buf ) ;\n }"}
{"idx": 3872, "target": 0, "func": "void mainwindow_destroy ( MAIN_WINDOW_REC * window ) {\n g_return_if_fail ( window != NULL ) ;\n mainwindows = g_slist_remove ( mainwindows , window ) ;\n signal_emit ( \"mainwindow destroyed\" , 1 , window ) ;\n term_window_destroy ( window -> screen_win ) ;\n if ( mainwindows != NULL ) {\n gui_windows_remove_parent ( window ) ;\n if ( ! quitting ) {\n mainwindows_add_space ( window ) ;\n mainwindows_redraw ( ) ;\n }\n }\n g_free ( window ) ;\n if ( active_mainwin == window ) active_mainwin = NULL ;\n }"}
{"idx": 3873, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( UnloadTest , DISABLED_BrowserCloseInfiniteBeforeUnload ) {\n if ( base : : CommandLine : : ForCurrentProcess ( ) -> HasSwitch ( switches : : kSingleProcess ) ) return ;\n LoadUrlAndQuitBrowser ( INFINITE_BEFORE_UNLOAD_HTML , \"infinitebeforeunload\" ) ;\n }"}
{"idx": 3874, "target": 1, "func": "unsigned long # define BN_LONG long # define BN_BITS 128 # define BN_BYTES 8 # define BN_BITS2 64 # define BN_BITS4 32 # define BN_MASK ( 0xffffffffffffffffffffffffffffffffLL ) # define BN_MASK2 ( 0xffffffffffffffffL ) # define BN_MASK2l ( 0xffffffffL ) # define BN_MASK2h ( 0xffffffff00000000L ) # define BN_MASK2h1 ( 0xffffffff80000000L ) # define BN_TBIT ( 0x8000000000000000L ) # define BN_DEC_CONV ( 10000000000000000000UL ) # define BN_DEC_FMT1 \"%lu\" # define BN_DEC_FMT2 \"%019lu\" # define BN_DEC_NUM 19 # define BN_HEX_FMT1 \"%lX\" # define BN_HEX_FMT2 \"%016lX\" # endif # ifdef SIXTY_FOUR_BIT # undef BN_LLONG # undef BN_ULLONG # define BN_ULONG unsigned long long # define BN_LONG long long # define BN_BITS 128 # define BN_BYTES 8 # define BN_BITS2 64 # define BN_BITS4 32 # define BN_MASK2 ( 0xffffffffffffffffLL ) # define BN_MASK2l ( 0xffffffffL ) # define BN_MASK2h ( 0xffffffff00000000LL ) # define BN_MASK2h1 ( 0xffffffff80000000LL ) # define BN_TBIT ( 0x8000000000000000LL ) # define BN_DEC_CONV ( 10000000000000000000ULL ) # define BN_DEC_FMT1 \"%llu\" # define BN_DEC_FMT2 \"%019llu\" # define BN_DEC_NUM 19 # define BN_HEX_FMT1 \"%llX\" # define BN_HEX_FMT2 \"%016llX\" # endif # ifdef THIRTY_TWO_BIT # ifdef BN_LLONG # if defined ( _WIN32 ) && ! defined ( __GNUC__ ) # define BN_ULLONG unsigned __int64 # define BN_MASK ( 0xffffffffffffffffI64 ) # else # define BN_ULLONG unsigned long long # define BN_MASK ( 0xffffffffffffffffLL ) # endif # endif # define BN_ULONG unsigned int # define BN_LONG int # define BN_BITS 64 # define BN_BYTES 4 # define BN_BITS2 32 # define BN_BITS4 16 # define BN_MASK2 ( 0xffffffffL ) # define BN_MASK2l ( 0xffff ) # define BN_MASK2h1 ( 0xffff8000L ) # define BN_MASK2h ( 0xffff0000L ) # define BN_TBIT ( 0x80000000L ) # define BN_DEC_CONV ( 1000000000L ) # define BN_DEC_FMT1 \"%u\" # define BN_DEC_FMT2 \"%09u\" # define BN_DEC_NUM 9 # define BN_HEX_FMT1 \"%X\" # define BN_HEX_FMT2 \"%08X\" # endif # define BN_DEFAULT_BITS 1280 # define BN_FLG_MALLOCED 0x01 # define BN_FLG_STATIC_DATA 0x02 # define BN_FLG_CONSTTIME 0x04 # ifndef OPENSSL_NO_DEPRECATED # define BN_FLG_EXP_CONSTTIME BN_FLG_CONSTTIME # endif # ifndef OPENSSL_NO_DEPRECATED # define BN_FLG_FREE 0x8000 # endif # define BN_set_flags ( b , n ) ( ( b ) -> flags |= ( n ) ) # define BN_get_flags ( b , n ) ( ( b ) -> flags & ( n ) ) # define BN_with_flags ( dest , b , n ) ( ( dest ) -> d = ( b ) -> d , \\ ( dest ) -> top = ( b ) -> top , \\ ( dest ) -> dmax = ( b ) -> dmax , \\ ( dest ) -> neg = ( b ) -> neg , \\ ( dest ) -> flags = ( ( ( dest ) -> flags & BN_FLG_MALLOCED ) \\ | ( ( b ) -> flags & ~ BN_FLG_MALLOCED ) \\ | BN_FLG_STATIC_DATA \\ | ( n ) ) ) # if 0 typedef struct bignum_st BIGNUM ;\n typedef struct bignum_ctx BN_CTX ;\n typedef struct bn_blinding_st BN_BLINDING ;\n typedef struct bn_mont_ctx_st BN_MONT_CTX ;\n typedef struct bn_recp_ctx_st BN_RECP_CTX ;\n typedef struct bn_gencb_st BN_GENCB ;\n # endif struct bignum_st {\n BN_ULONG * d ;\n int top ;\n int dmax ;\n int neg ;\n int flags ;\n }\n ;\n struct bn_mont_ctx_st {\n int ri ;\n BIGNUM RR ;\n BIGNUM N ;\n BIGNUM Ni ;\n BN_ULONG n0 [ 2 ] ;\n int flags ;\n }\n ;\n struct bn_recp_ctx_st {\n BIGNUM N ;\n BIGNUM Nr ;\n int num_bits ;\n int shift ;\n int flags ;\n }\n ;\n struct bn_gencb_st {\n unsigned int ver ;\n void * arg ;\n union {\n void ( * cb_1 ) ( int , int , void * ) ;\n int ( * cb_2 ) ( int , int , BN_GENCB * ) ;\n }\n cb ;\n }\n ;\n int BN_GENCB_call ( BN_GENCB * cb , int a , int b ) ;\n # define BN_GENCB_set_old ( gencb , callback , cb_arg ) {\n \\ BN_GENCB * tmp_gencb = ( gencb ) ;\n \\ tmp_gencb -> ver = 1 ;\n \\ tmp_gencb -> arg = ( cb_arg ) ;\n \\ tmp_gencb -> cb . cb_1 = ( callback ) ;\n }\n # define BN_GENCB_set ( gencb , callback , cb_arg ) {\n \\ BN_GENCB * tmp_gencb = ( gencb ) ;\n \\ tmp_gencb -> ver = 2 ;\n \\ tmp_gencb -> arg = ( cb_arg ) ;\n \\ tmp_gencb -> cb . cb_2 = ( callback ) ;\n }\n # define BN_prime_checks 0 # define BN_prime_checks_for_size ( b ) ( ( b ) >= 1300 ? 2 : \\ ( b ) >= 850 ? 3 : \\ ( b ) >= 650 ? 4 : \\ ( b ) >= 550 ? 5 : \\ ( b ) >= 450 ? 6 : \\ ( b ) >= 400 ? 7 : \\ ( b ) >= 350 ? 8 : \\ ( b ) >= 300 ? 9 : \\ ( b ) >= 250 ? 12 : \\ ( b ) >= 200 ? 15 : \\ ( b ) >= 150 ? 18 : \\ 27 ) # define BN_num_bytes ( a ) ( ( BN_num_bits ( a ) + 7 ) / 8 ) # define BN_abs_is_word ( a , w ) ( ( ( ( a ) -> top == 1 ) && ( ( a ) -> d [ 0 ] == ( BN_ULONG ) ( w ) ) ) || \\ ( ( ( w ) == 0 ) && ( ( a ) -> top == 0 ) ) ) # define BN_is_zero ( a ) ( ( a ) -> top == 0 ) # define BN_is_one ( a ) ( BN_abs_is_word ( ( a ) , 1 ) && ! ( a ) -> neg ) # define BN_is_word ( a , w ) ( BN_abs_is_word ( ( a ) , ( w ) ) && ( ! ( w ) || ! ( a ) -> neg ) ) # define BN_is_odd ( a ) ( ( ( a ) -> top > 0 ) && ( ( a ) -> d [ 0 ] & 1 ) ) # define BN_one ( a ) ( BN_set_word ( ( a ) , 1 ) ) # define BN_zero_ex ( a ) \\ do {\n \\ BIGNUM * _tmp_bn = ( a ) ;\n \\ _tmp_bn -> top = 0 ;\n \\ _tmp_bn -> neg = 0 ;\n \\ }\n while ( 0 ) # ifdef OPENSSL_NO_DEPRECATED # define BN_zero ( a ) BN_zero_ex ( a ) # else # define BN_zero ( a ) ( BN_set_word ( ( a ) , 0 ) ) # endif const BIGNUM * BN_value_one ( void ) ;\n char * BN_options ( void ) ;\n BN_CTX * BN_CTX_new ( void ) ;\n # ifndef OPENSSL_NO_DEPRECATED void BN_CTX_init ( BN_CTX * c ) ;\n # endif void BN_CTX_free ( BN_CTX * c ) ;\n void BN_CTX_start ( BN_CTX * ctx ) ;\n BIGNUM * BN_CTX_get ( BN_CTX * ctx ) ;\n void BN_CTX_end ( BN_CTX * ctx ) ;\n int BN_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_pseudo_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_pseudo_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_num_bits ( const BIGNUM * a ) ;\n int BN_num_bits_word ( BN_ULONG l ) ;\n BIGNUM * BN_new ( void ) ;\n void BN_init ( BIGNUM * ) ;\n void BN_clear_free ( BIGNUM * a ) ;\n BIGNUM * BN_copy ( BIGNUM * a , const BIGNUM * b ) ;\n void BN_swap ( BIGNUM * a , BIGNUM * b ) ;\n BIGNUM * BN_bin2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2bin ( const BIGNUM * a , unsigned char * to ) ;\n BIGNUM * BN_mpi2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2mpi ( const BIGNUM * a , unsigned char * to ) ;\n int BN_sub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_usub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_uadd ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n int BN_sqr ( BIGNUM * r , const BIGNUM * a , BN_CTX * ctx ) ;\n void BN_set_negative ( BIGNUM * b , int n ) ;\n # define BN_is_negative ( a ) ( ( a ) -> neg != 0 ) int BN_div ( BIGNUM * dv , BIGNUM * rem , const BIGNUM * m , const BIGNUM * d , BN_CTX * ctx ) ;\n # define BN_mod ( rem , m , d , ctx ) BN_div ( NULL , ( rem ) , ( m ) , ( d ) , ( ctx ) ) int BN_nnmod ( BIGNUM * r , const BIGNUM * m , const BIGNUM * d , BN_CTX * ctx ) ;\n int BN_mod_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_add_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m ) ;\n int BN_mod_sub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_sub_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m ) ;\n int BN_mod_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_sqr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift1 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift1_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m ) ;\n int BN_mod_lshift ( BIGNUM * r , const BIGNUM * a , int n , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift_quick ( BIGNUM * r , const BIGNUM * a , int n , const BIGNUM * m ) ;\n BN_ULONG BN_mod_word ( const BIGNUM * a , BN_ULONG w ) ;\n BN_ULONG BN_div_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_mul_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_add_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_sub_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_set_word ( BIGNUM * a , BN_ULONG w ) ;\n BN_ULONG BN_get_word ( const BIGNUM * a ) ;\n int BN_cmp ( const BIGNUM * a , const BIGNUM * b ) ;\n void BN_free ( BIGNUM * a ) ;\n int BN_is_bit_set ( const BIGNUM * a , int n ) ;\n int BN_lshift ( BIGNUM * r , const BIGNUM * a , int n ) ;\n int BN_lshift1 ( BIGNUM * r , const BIGNUM * a ) ;\n int BN_exp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_mod_exp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_exp_mont ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) ;\n int BN_mod_exp_mont_consttime ( BIGNUM * rr , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * in_mont ) ;\n int BN_mod_exp_mont_word ( BIGNUM * r , BN_ULONG a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) ;\n int BN_mod_exp2_mont ( BIGNUM * r , const BIGNUM * a1 , const BIGNUM * p1 , const BIGNUM * a2 , const BIGNUM * p2 , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) ;\n int BN_mod_exp_simple ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mask_bits ( BIGNUM * a , int n ) ;\n # ifndef OPENSSL_NO_FP_API int BN_print_fp ( FILE * fp , const BIGNUM * a ) ;\n # endif # ifdef HEADER_BIO_H int BN_print ( BIO * fp , const BIGNUM * a ) ;\n # else int BN_print ( void * fp , const BIGNUM * a ) ;\n # endif int BN_reciprocal ( BIGNUM * r , const BIGNUM * m , int len , BN_CTX * ctx ) ;\n int BN_rshift ( BIGNUM * r , const BIGNUM * a , int n ) ;\n int BN_rshift1 ( BIGNUM * r , const BIGNUM * a ) ;\n void BN_clear ( BIGNUM * a ) ;\n BIGNUM * BN_dup ( const BIGNUM * a ) ;\n int BN_ucmp ( const BIGNUM * a , const BIGNUM * b ) ;\n int BN_set_bit ( BIGNUM * a , int n ) ;\n int BN_clear_bit ( BIGNUM * a , int n ) ;\n char * BN_bn2hex ( const BIGNUM * a ) ;\n char * BN_bn2dec ( const BIGNUM * a ) ;\n int BN_hex2bn ( BIGNUM * * a , const char * str ) ;\n int BN_dec2bn ( BIGNUM * * a , const char * str ) ;\n int BN_asc2bn ( BIGNUM * * a , const char * str ) ;\n int BN_gcd ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n int BN_kronecker ( const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n BIGNUM * BN_mod_inverse ( BIGNUM * ret , const BIGNUM * a , const BIGNUM * n , BN_CTX * ctx ) ;\n BIGNUM * BN_mod_sqrt ( BIGNUM * ret , const BIGNUM * a , const BIGNUM * n , BN_CTX * ctx ) ;\n # ifndef OPENSSL_NO_DEPRECATED BIGNUM * BN_generate_prime ( BIGNUM * ret , int bits , int safe , const BIGNUM * add , const BIGNUM * rem , void ( * callback ) ( int , int , void * ) , void * cb_arg ) ;\n int BN_is_prime ( const BIGNUM * p , int nchecks , void ( * callback ) ( int , int , void * ) , BN_CTX * ctx , void * cb_arg ) ;\n int BN_is_prime_fasttest ( const BIGNUM * p , int nchecks , void ( * callback ) ( int , int , void * ) , BN_CTX * ctx , void * cb_arg , int do_trial_division ) ;\n # endif int BN_generate_prime_ex ( BIGNUM * ret , int bits , int safe , const BIGNUM * add , const BIGNUM * rem , BN_GENCB * cb ) ;\n int BN_is_prime_ex ( const BIGNUM * p , int nchecks , BN_CTX * ctx , BN_GENCB * cb ) ;\n int BN_is_prime_fasttest_ex ( const BIGNUM * p , int nchecks , BN_CTX * ctx , int do_trial_division , BN_GENCB * cb ) ;\n int BN_X931_generate_Xpq ( BIGNUM * Xp , BIGNUM * Xq , int nbits , BN_CTX * ctx ) ;\n int BN_X931_derive_prime_ex ( BIGNUM * p , BIGNUM * p1 , BIGNUM * p2 , const BIGNUM * Xp , const BIGNUM * Xp1 , const BIGNUM * Xp2 , const BIGNUM * e , BN_CTX * ctx , BN_GENCB * cb ) ;\n int BN_X931_generate_prime_ex ( BIGNUM * p , BIGNUM * p1 , BIGNUM * p2 , BIGNUM * Xp1 , BIGNUM * Xp2 , const BIGNUM * Xp , const BIGNUM * e , BN_CTX * ctx , BN_GENCB * cb ) ;\n BN_MONT_CTX * BN_MONT_CTX_new ( void ) ;\n void BN_MONT_CTX_init ( BN_MONT_CTX * ctx ) ;\n int BN_mod_mul_montgomery ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_MONT_CTX * mont , BN_CTX * ctx ) ;\n # define BN_to_montgomery ( r , a , mont , ctx ) BN_mod_mul_montgomery ( \\ ( r ) , ( a ) , & ( ( mont ) -> RR ) , ( mont ) , ( ctx ) ) int BN_from_montgomery ( BIGNUM * r , const BIGNUM * a , BN_MONT_CTX * mont , BN_CTX * ctx ) ;\n void BN_MONT_CTX_free ( BN_MONT_CTX * mont ) ;\n int BN_MONT_CTX_set ( BN_MONT_CTX * mont , const BIGNUM * mod , BN_CTX * ctx ) ;\n BN_MONT_CTX * BN_MONT_CTX_copy ( BN_MONT_CTX * to , BN_MONT_CTX * from ) ;\n BN_MONT_CTX * BN_MONT_CTX_set_locked ( BN_MONT_CTX * * pmont , int lock , const BIGNUM * mod , BN_CTX * ctx ) ;\n # define BN_BLINDING_NO_UPDATE 0x00000001 # define BN_BLINDING_NO_RECREATE 0x00000002 BN_BLINDING * BN_BLINDING_new ( const BIGNUM * A , const BIGNUM * Ai , BIGNUM * mod ) ;\n void BN_BLINDING_free ( BN_BLINDING * b ) ;\n int BN_BLINDING_update ( BN_BLINDING * b , BN_CTX * ctx ) ;\n int BN_BLINDING_convert ( BIGNUM * n , BN_BLINDING * b , BN_CTX * ctx ) ;\n int BN_BLINDING_invert ( BIGNUM * n , BN_BLINDING * b , BN_CTX * ctx ) ;\n int BN_BLINDING_convert_ex ( BIGNUM * n , BIGNUM * r , BN_BLINDING * b , BN_CTX * ) ;\n int BN_BLINDING_invert_ex ( BIGNUM * n , const BIGNUM * r , BN_BLINDING * b , BN_CTX * ) ;\n # ifndef OPENSSL_NO_DEPRECATED unsigned long BN_BLINDING_get_thread_id ( const BN_BLINDING * ) ;\n void BN_BLINDING_set_thread_id ( BN_BLINDING * , unsigned long ) ;\n # endif CRYPTO_THREADID * BN_BLINDING_thread_id ( BN_BLINDING * ) ;\n unsigned long BN_BLINDING_get_flags ( const BN_BLINDING * ) ;\n void BN_BLINDING_set_flags ( BN_BLINDING * , unsigned long ) ;\n BN_BLINDING * BN_BLINDING_create_param ( BN_BLINDING * b , const BIGNUM * e , BIGNUM * m , BN_CTX * ctx , int ( * bn_mod_exp ) ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) , BN_MONT_CTX * m_ctx ) ;\n # ifndef OPENSSL_NO_DEPRECATED void BN_set_params ( int mul , int high , int low , int mont ) ;\n int BN_get_params ( int which ) ;\n # endif void BN_RECP_CTX_init ( BN_RECP_CTX * recp ) ;\n BN_RECP_CTX * BN_RECP_CTX_new ( void ) ;\n void BN_RECP_CTX_free ( BN_RECP_CTX * recp ) ;\n int BN_RECP_CTX_set ( BN_RECP_CTX * recp , const BIGNUM * rdiv , BN_CTX * ctx ) ;\n int BN_mod_mul_reciprocal ( BIGNUM * r , const BIGNUM * x , const BIGNUM * y , BN_RECP_CTX * recp , BN_CTX * ctx ) ;\n int BN_mod_exp_recp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_div_recp ( BIGNUM * dv , BIGNUM * rem , const BIGNUM * m , BN_RECP_CTX * recp , BN_CTX * ctx ) ;\n # ifndef OPENSSL_NO_EC2M int BN_GF2m_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n # define BN_GF2m_sub ( r , a , b ) BN_GF2m_add ( r , a , b ) int BN_GF2m_mod ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p ) ;\n int BN_GF2m_mod_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_inv ( BIGNUM * r , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_div ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_exp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqrt ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_solve_quad ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n # define BN_GF2m_cmp ( a , b ) BN_ucmp ( ( a ) , ( b ) ) int BN_GF2m_mod_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] ) ;\n int BN_GF2m_mod_mul_arr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqr_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_inv_arr ( BIGNUM * r , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_div_arr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_exp_arr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqrt_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_solve_quad_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_poly2arr ( const BIGNUM * a , int p [ ] , int max ) ;\n int BN_GF2m_arr2poly ( const int p [ ] , BIGNUM * a ) ;\n # endif int BN_nist_mod_192 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_224 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_256 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_384 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_521 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n const BIGNUM * BN_get0_nist_prime_192 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_224 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_256 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_384 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_521 ( void ) ;\n int ( * BN_nist_mod_func ( const BIGNUM * p ) ) ( BIGNUM * r , const BIGNUM * a , const BIGNUM * field , BN_CTX * ctx ) ;\n int BN_generate_dsa_nonce ( BIGNUM * out , const BIGNUM * range , const BIGNUM * priv , const unsigned char * message , size_t message_len , BN_CTX * ctx ) ;\n # define bn_expand ( a , bits ) ( ( ( ( ( ( bits + BN_BITS2 - 1 ) ) / BN_BITS2 ) ) <= ( a ) -> dmax ) ? \\ ( a ) : bn_expand2 ( ( a ) , ( bits + BN_BITS2 - 1 ) / BN_BITS2 ) ) # define bn_wexpand ( a , words ) ( ( ( words ) <= ( a ) -> dmax ) ? ( a ) : bn_expand2 ( ( a ) , ( words ) ) ) BIGNUM * bn_expand2 ( BIGNUM * a , int words ) ;\n # ifndef OPENSSL_NO_DEPRECATED BIGNUM * bn_dup_expand ( const BIGNUM * a , int words ) ;\n # endif # ifdef BN_DEBUG # include < assert . h > # ifdef BN_DEBUG_RAND # ifndef RAND_pseudo_bytes int RAND_pseudo_bytes ( unsigned char * buf , int num ) ;\n # define BN_DEBUG_TRIX # endif # define bn_pollute ( a ) \\ do {\n \\ const BIGNUM * _bnum1 = ( a ) ;\n \\ if ( _bnum1 -> top < _bnum1 -> dmax ) {\n \\ unsigned char _tmp_char ;\n \\ \\ BN_ULONG * _not_const ;\n \\ memcpy ( & _not_const , & _bnum1 -> d , sizeof ( BN_ULONG * ) ) ;\n \\ RAND_pseudo_bytes ( & _tmp_char , 1 ) ;\n \\ memset ( ( unsigned char * ) ( _not_const + _bnum1 -> top ) , _tmp_char , \\ ( _bnum1 -> dmax - _bnum1 -> top ) * sizeof ( BN_ULONG ) ) ;\n \\ }\n \\ }\n while ( 0 ) # ifdef BN_DEBUG_TRIX # undef RAND_pseudo_bytes # endif # else # define bn_pollute ( a ) # endif # define bn_check_top ( a ) \\ do {\n \\ const BIGNUM * _bnum2 = ( a ) ;\n \\ if ( _bnum2 != NULL ) {\n \\ assert ( ( _bnum2 -> top == 0 ) || \\ ( _bnum2 -> d [ _bnum2 -> top - 1 ] != 0 ) ) ;\n \\ bn_pollute ( _bnum2 ) ;\n \\ }\n \\ }\n while ( 0 ) # define bn_fix_top ( a ) bn_check_top ( a ) # else # define bn_pollute ( a ) # define bn_check_top ( a ) # define bn_fix_top ( a ) bn_correct_top ( a ) # endif # define bn_correct_top ( a ) \\ {\n \\ BN_ULONG * ftl ;\n \\ int tmp_top = ( a ) -> top ;\n \\ if ( tmp_top > 0 ) \\ {\n \\ for ( ftl = & ( ( a ) -> d [ tmp_top - 1 ] ) ;\n tmp_top > 0 ;\n tmp_top -- ) \\ if ( * ( ftl -- ) ) break ;\n \\ ( a ) -> top = tmp_top ;\n \\ }\n \\ bn_pollute ( a ) ;\n \\ }\n BN_ULONG bn_mul_add_words ( BN_ULONG * rp , const BN_ULONG * ap , int num , BN_ULONG w ) ;\n BN_ULONG bn_mul_words ( BN_ULONG * rp , const BN_ULONG * ap , int num , BN_ULONG w ) ;\n void bn_sqr_words ( BN_ULONG * rp , const BN_ULONG * ap , int num ) ;\n BN_ULONG bn_div_words ( BN_ULONG h , BN_ULONG l , BN_ULONG d )"}
{"idx": 3875, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( UsbChooserBrowserTest , InvokeDialog_NoDevicesBubble ) {\n RunDialog ( ) ;\n }"}
{"idx": 3876, "target": 0, "func": "static int dissect_h225_CallLinkage ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_CallLinkage , CallLinkage_sequence ) ;\n return offset ;\n }"}
{"idx": 3877, "target": 0, "func": "Gif_Stream * Gif_ReadRecord ( const Gif_Record * gifrec ) {\n return Gif_FullReadRecord ( gifrec , GIF_READ_UNCOMPRESSED , 0 , 0 ) ;\n }"}
{"idx": 3878, "target": 0, "func": "static gboolean ng_file_skip_seq ( wtap * wth , gint64 delta , int * err , gchar * * err_info ) {\n ngsniffer_t * ngsniffer ;\n char * buf ;\n unsigned int amount_to_read ;\n ngsniffer = ( ngsniffer_t * ) wth -> priv ;\n if ( wth -> file_type_subtype == WTAP_FILE_TYPE_SUBTYPE_NGSNIFFER_UNCOMPRESSED ) {\n ngsniffer -> seq . uncomp_offset += delta ;\n return file_skip ( wth -> fh , delta , err ) ;\n }\n g_assert ( delta >= 0 ) ;\n buf = ( char * ) g_malloc ( INBUF_SIZE ) ;\n while ( delta != 0 ) {\n if ( delta > INBUF_SIZE ) amount_to_read = INBUF_SIZE ;\n else amount_to_read = ( unsigned int ) delta ;\n if ( ! ng_read_bytes ( wth , buf , amount_to_read , FALSE , err , err_info ) ) {\n g_free ( buf ) ;\n return FALSE ;\n }\n delta -= amount_to_read ;\n }\n g_free ( buf ) ;\n return TRUE ;\n }"}
{"idx": 3879, "target": 0, "func": "TSReturnCode TSHttpHdrCopy ( TSMBuffer dest_bufp , TSMLoc dest_obj , TSMBuffer src_bufp , TSMLoc src_obj ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( src_bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_mbuffer ( dest_bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_http_hdr_handle ( dest_obj ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_http_hdr_handle ( src_obj ) == TS_SUCCESS ) ;\n if ( ! isWriteable ( dest_bufp ) ) {\n return TS_ERROR ;\n }\n bool inherit_strs ;\n HdrHeap * s_heap , * d_heap ;\n HTTPHdrImpl * s_hh , * d_hh ;\n s_heap = ( ( HdrHeapSDKHandle * ) src_bufp ) -> m_heap ;\n d_heap = ( ( HdrHeapSDKHandle * ) dest_bufp ) -> m_heap ;\n s_hh = ( HTTPHdrImpl * ) src_obj ;\n d_hh = ( HTTPHdrImpl * ) dest_obj ;\n if ( ( s_hh -> m_type != HDR_HEAP_OBJ_HTTP_HEADER ) || ( d_hh -> m_type != HDR_HEAP_OBJ_HTTP_HEADER ) ) {\n return TS_ERROR ;\n }\n inherit_strs = ( s_heap != d_heap ? true : false ) ;\n TSHttpHdrTypeSet ( dest_bufp , dest_obj , ( TSHttpType ) ( s_hh -> m_polarity ) ) ;\n http_hdr_copy_onto ( s_hh , s_heap , d_hh , d_heap , inherit_strs ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 3880, "target": 0, "func": "static int vvalue_tvb_vector ( tvbuff_t * tvb , int offset , struct vt_vector * val , struct vtype_data * type ) {\n const guint num = tvb_get_letohl ( tvb , offset ) ;\n return 4 + vvalue_tvb_vector_internal ( tvb , offset + 4 , val , type , num ) ;\n }"}
{"idx": 3881, "target": 0, "func": "void PNGAPI png_set_sPLT ( png_structp png_ptr , png_infop info_ptr , png_sPLT_tp entries , int nentries ) {\n png_sPLT_tp np ;\n int i ;\n if ( png_ptr == NULL || info_ptr == NULL ) return ;\n np = ( png_sPLT_tp ) png_malloc_warn ( png_ptr , ( info_ptr -> splt_palettes_num + nentries ) * ( png_uint_32 ) png_sizeof ( png_sPLT_t ) ) ;\n if ( np == NULL ) {\n png_warning ( png_ptr , \"No memory for sPLT palettes.\" ) ;\n return ;\n }\n png_memcpy ( np , info_ptr -> splt_palettes , info_ptr -> splt_palettes_num * png_sizeof ( png_sPLT_t ) ) ;\n png_free ( png_ptr , info_ptr -> splt_palettes ) ;\n info_ptr -> splt_palettes = NULL ;\n for ( i = 0 ;\n i < nentries ;\n i ++ ) {\n png_sPLT_tp to = np + info_ptr -> splt_palettes_num + i ;\n png_sPLT_tp from = entries + i ;\n png_uint_32 length ;\n length = png_strlen ( from -> name ) + 1 ;\n to -> name = ( png_charp ) png_malloc_warn ( png_ptr , length ) ;\n if ( to -> name == NULL ) {\n png_warning ( png_ptr , \"Out of memory while processing sPLT chunk\" ) ;\n continue ;\n }\n png_memcpy ( to -> name , from -> name , length ) ;\n to -> entries = ( png_sPLT_entryp ) png_malloc_warn ( png_ptr , ( png_uint_32 ) ( from -> nentries * png_sizeof ( png_sPLT_entry ) ) ) ;\n if ( to -> entries == NULL ) {\n png_warning ( png_ptr , \"Out of memory while processing sPLT chunk\" ) ;\n png_free ( png_ptr , to -> name ) ;\n to -> name = NULL ;\n continue ;\n }\n png_memcpy ( to -> entries , from -> entries , from -> nentries * png_sizeof ( png_sPLT_entry ) ) ;\n to -> nentries = from -> nentries ;\n to -> depth = from -> depth ;\n }\n info_ptr -> splt_palettes = np ;\n info_ptr -> splt_palettes_num += nentries ;\n info_ptr -> valid |= PNG_INFO_sPLT ;\n # ifdef PNG_FREE_ME_SUPPORTED info_ptr -> free_me |= PNG_FREE_SPLT ;\n # endif }"}
{"idx": 3882, "target": 0, "func": "static int qemuMonitorTextParseBlockJobOne ( const char * text , const char * device , virDomainBlockJobInfoPtr info , const char * * next ) {\n virDomainBlockJobInfo tmp ;\n char * p ;\n unsigned long long speed_bytes ;\n int mismatch = 0 ;\n if ( next == NULL ) return - 1 ;\n * next = NULL ;\n if ( ( text = STRSKIP ( text , \"Streaming device \" ) ) == NULL ) return - EINVAL ;\n if ( ! STREQLEN ( text , device , strlen ( device ) ) ) mismatch = 1 ;\n if ( ( text = strstr ( text , \": Completed \" ) ) == NULL ) return - EINVAL ;\n text += 11 ;\n if ( virStrToLong_ull ( text , & p , 10 , & tmp . cur ) ) return - EINVAL ;\n text = p ;\n if ( ! STRPREFIX ( text , \" of \" ) ) return - EINVAL ;\n text += 4 ;\n if ( virStrToLong_ull ( text , & p , 10 , & tmp . end ) ) return - EINVAL ;\n text = p ;\n if ( ! STRPREFIX ( text , \" bytes, speed limit \" ) ) return - EINVAL ;\n text += 20 ;\n if ( virStrToLong_ull ( text , & p , 10 , & speed_bytes ) ) return - EINVAL ;\n text = p ;\n if ( ! STRPREFIX ( text , \" bytes/s\" ) ) return - EINVAL ;\n if ( mismatch ) {\n * next = STRSKIP ( text , \"\\n\" ) ;\n return - EAGAIN ;\n }\n if ( info ) {\n info -> cur = tmp . cur ;\n info -> end = tmp . end ;\n info -> bandwidth = speed_bytes / 1024ULL / 1024ULL ;\n info -> type = VIR_DOMAIN_BLOCK_JOB_TYPE_PULL ;\n }\n return 1 ;\n }"}
{"idx": 3883, "target": 0, "func": "int # ifdef DEBUG _TSAssert ( const char * text , const char * file , int line ) {\n _ink_assert ( text , file , line ) ;\n return 0 ;\n }\n # else _TSAssert ( const char * , const char * , int ) {\n return 0 ;\n }"}
{"idx": 3884, "target": 1, "func": "static int cine_read_header ( AVFormatContext * avctx ) {\n AVIOContext * pb = avctx -> pb ;\n AVStream * st ;\n unsigned int version , compression , offImageHeader , offSetup , offImageOffsets , biBitCount , length , CFA ;\n int vflip ;\n char * description ;\n uint64_t i ;\n st = avformat_new_stream ( avctx , NULL ) ;\n if ( ! st ) return AVERROR ( ENOMEM ) ;\n st -> codecpar -> codec_type = AVMEDIA_TYPE_VIDEO ;\n st -> codecpar -> codec_id = AV_CODEC_ID_RAWVIDEO ;\n st -> codecpar -> codec_tag = 0 ;\n avio_skip ( pb , 4 ) ;\n compression = avio_rl16 ( pb ) ;\n version = avio_rl16 ( pb ) ;\n if ( version != 1 ) {\n avpriv_request_sample ( avctx , \"unknown version %i\" , version ) ;\n return AVERROR_INVALIDDATA ;\n }\n avio_skip ( pb , 12 ) ;\n st -> duration = avio_rl32 ( pb ) ;\n offImageHeader = avio_rl32 ( pb ) ;\n offSetup = avio_rl32 ( pb ) ;\n offImageOffsets = avio_rl32 ( pb ) ;\n avio_skip ( pb , 8 ) ;\n avio_seek ( pb , offImageHeader , SEEK_SET ) ;\n avio_skip ( pb , 4 ) ;\n st -> codecpar -> width = avio_rl32 ( pb ) ;\n st -> codecpar -> height = avio_rl32 ( pb ) ;\n if ( avio_rl16 ( pb ) != 1 ) return AVERROR_INVALIDDATA ;\n biBitCount = avio_rl16 ( pb ) ;\n if ( biBitCount != 8 && biBitCount != 16 && biBitCount != 24 && biBitCount != 48 ) {\n avpriv_request_sample ( avctx , \"unsupported biBitCount %i\" , biBitCount ) ;\n return AVERROR_INVALIDDATA ;\n }\n switch ( avio_rl32 ( pb ) ) {\n case BMP_RGB : vflip = 0 ;\n break ;\n case 0x100 : st -> codecpar -> codec_tag = MKTAG ( 'B' , 'I' , 'T' , 0 ) ;\n vflip = 1 ;\n break ;\n default : avpriv_request_sample ( avctx , \"unknown bitmap compression\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n avio_skip ( pb , 4 ) ;\n avio_seek ( pb , offSetup , SEEK_SET ) ;\n avio_skip ( pb , 140 ) ;\n if ( avio_rl16 ( pb ) != 0x5453 ) return AVERROR_INVALIDDATA ;\n length = avio_rl16 ( pb ) ;\n if ( length < 0x163C ) {\n avpriv_request_sample ( avctx , \"short SETUP header\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n avio_skip ( pb , 616 ) ;\n if ( ! avio_rl32 ( pb ) ^ vflip ) {\n st -> codecpar -> extradata = av_strdup ( \"BottomUp\" ) ;\n st -> codecpar -> extradata_size = 9 ;\n }\n avio_skip ( pb , 4 ) ;\n avpriv_set_pts_info ( st , 64 , 1 , avio_rl32 ( pb ) ) ;\n avio_skip ( pb , 20 ) ;\n set_metadata_int ( & st -> metadata , \"camera_version\" , avio_rl32 ( pb ) , 0 ) ;\n set_metadata_int ( & st -> metadata , \"firmware_version\" , avio_rl32 ( pb ) , 0 ) ;\n set_metadata_int ( & st -> metadata , \"software_version\" , avio_rl32 ( pb ) , 0 ) ;\n set_metadata_int ( & st -> metadata , \"recording_timezone\" , avio_rl32 ( pb ) , 0 ) ;\n CFA = avio_rl32 ( pb ) ;\n set_metadata_int ( & st -> metadata , \"brightness\" , avio_rl32 ( pb ) , 1 ) ;\n set_metadata_int ( & st -> metadata , \"contrast\" , avio_rl32 ( pb ) , 1 ) ;\n set_metadata_int ( & st -> metadata , \"gamma\" , avio_rl32 ( pb ) , 1 ) ;\n avio_skip ( pb , 12 + 16 ) ;\n set_metadata_float ( & st -> metadata , \"wbgain[0].r\" , av_int2float ( avio_rl32 ( pb ) ) , 1 ) ;\n set_metadata_float ( & st -> metadata , \"wbgain[0].b\" , av_int2float ( avio_rl32 ( pb ) ) , 1 ) ;\n avio_skip ( pb , 36 ) ;\n st -> codecpar -> bits_per_coded_sample = avio_rl32 ( pb ) ;\n if ( compression == CC_RGB ) {\n if ( biBitCount == 8 ) {\n st -> codecpar -> format = AV_PIX_FMT_GRAY8 ;\n }\n else if ( biBitCount == 16 ) {\n st -> codecpar -> format = AV_PIX_FMT_GRAY16LE ;\n }\n else if ( biBitCount == 24 ) {\n st -> codecpar -> format = AV_PIX_FMT_BGR24 ;\n }\n else if ( biBitCount == 48 ) {\n st -> codecpar -> format = AV_PIX_FMT_BGR48LE ;\n }\n else {\n avpriv_request_sample ( avctx , \"unsupported biBitCount %i\" , biBitCount ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n else if ( compression == CC_UNINT ) {\n switch ( CFA & 0xFFFFFF ) {\n case CFA_BAYER : if ( biBitCount == 8 ) {\n st -> codecpar -> format = AV_PIX_FMT_BAYER_GBRG8 ;\n }\n else if ( biBitCount == 16 ) {\n st -> codecpar -> format = AV_PIX_FMT_BAYER_GBRG16LE ;\n }\n else {\n avpriv_request_sample ( avctx , \"unsupported biBitCount %i\" , biBitCount ) ;\n return AVERROR_INVALIDDATA ;\n }\n break ;\n case CFA_BAYERFLIP : if ( biBitCount == 8 ) {\n st -> codecpar -> format = AV_PIX_FMT_BAYER_RGGB8 ;\n }\n else if ( biBitCount == 16 ) {\n st -> codecpar -> format = AV_PIX_FMT_BAYER_RGGB16LE ;\n }\n else {\n avpriv_request_sample ( avctx , \"unsupported biBitCount %i\" , biBitCount ) ;\n return AVERROR_INVALIDDATA ;\n }\n break ;\n default : avpriv_request_sample ( avctx , \"unsupported Color Field Array (CFA) %i\" , CFA & 0xFFFFFF ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n else {\n avpriv_request_sample ( avctx , \"unsupported compression %i\" , compression ) ;\n return AVERROR_INVALIDDATA ;\n }\n avio_skip ( pb , 668 ) ;\n set_metadata_int ( & st -> metadata , \"shutter_ns\" , avio_rl32 ( pb ) , 0 ) ;\n avio_skip ( pb , 24 ) ;\n # define DESCRIPTION_SIZE 4096 description = av_malloc ( DESCRIPTION_SIZE + 1 ) ;\n if ( ! description ) return AVERROR ( ENOMEM ) ;\n i = avio_get_str ( pb , DESCRIPTION_SIZE , description , DESCRIPTION_SIZE + 1 ) ;\n if ( i < DESCRIPTION_SIZE ) avio_skip ( pb , DESCRIPTION_SIZE - i ) ;\n if ( description [ 0 ] ) av_dict_set ( & st -> metadata , \"description\" , description , AV_DICT_DONT_STRDUP_VAL ) ;\n else av_free ( description ) ;\n avio_skip ( pb , 1176 ) ;\n set_metadata_int ( & st -> metadata , \"enable_crop\" , avio_rl32 ( pb ) , 1 ) ;\n set_metadata_int ( & st -> metadata , \"crop_left\" , avio_rl32 ( pb ) , 1 ) ;\n set_metadata_int ( & st -> metadata , \"crop_top\" , avio_rl32 ( pb ) , 1 ) ;\n set_metadata_int ( & st -> metadata , \"crop_right\" , avio_rl32 ( pb ) , 1 ) ;\n set_metadata_int ( & st -> metadata , \"crop_bottom\" , avio_rl32 ( pb ) , 1 ) ;\n avio_seek ( pb , offImageOffsets , SEEK_SET ) ;\n for ( i = 0 ;\n i < st -> duration ;\n i ++ ) av_add_index_entry ( st , avio_rl64 ( pb ) , i , 0 , 0 , AVINDEX_KEYFRAME ) ;\n return 0 ;\n }"}
{"idx": 3885, "target": 0, "func": "static int64_t ticks_to_timebase_units ( const vpx_rational_t * timebase , int64_t n ) {\n const int64_t round = TICKS_PER_SEC * timebase -> num / 2 - 1 ;\n return ( n * timebase -> den + round ) / timebase -> num / TICKS_PER_SEC ;\n }"}
{"idx": 3886, "target": 0, "func": "int i2d_ ## name ( type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;\n int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DIRECTORYSTRING ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DISPLAYTEXT ) DECLARE_ASN1_FUNCTIONS ( ASN1_PRINTABLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_T61STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_IA5STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_GENERALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTCTIME )"}
{"idx": 3887, "target": 0, "func": "static int rtp_packetize_simple ( sout_stream_id_sys_t * id , block_t * block ) {\n bool marker = ( block -> i_flags & BLOCK_FLAG_DISCONTINUITY ) != 0 ;\n block = block_Realloc ( block , 12 , block -> i_buffer ) ;\n if ( unlikely ( block == NULL ) ) return VLC_ENOMEM ;\n rtp_packetize_common ( id , block , marker , block -> i_pts ) ;\n rtp_packetize_send ( id , block ) ;\n return VLC_SUCCESS ;\n }"}
{"idx": 3888, "target": 0, "func": "static int dissect_h245_RequestMode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_RequestMode , RequestMode_sequence ) ;\n return offset ;\n }"}
{"idx": 3889, "target": 0, "func": "static int SpoolssEnumPrinterData_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n guint32 value_len , type ;\n char * value ;\n proto_item * value_item ;\n proto_tree * value_subtree ;\n proto_item * hidden_item ;\n hidden_item = proto_tree_add_uint ( tree , hf_printerdata , tvb , offset , 0 , 1 ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n value_subtree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_printerdata_value , & value_item , \"Value\" ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , value_subtree , di , drep , hf_enumprinterdata_value_len , & value_len ) ;\n if ( value_len ) {\n dissect_spoolss_uint16uni ( tvb , offset , pinfo , value_subtree , drep , & value , hf_value_name ) ;\n offset += value_len * 2 ;\n if ( value && value [ 0 ] ) col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , value ) ;\n proto_item_append_text ( value_item , \": %s\" , value ) ;\n hidden_item = proto_tree_add_string ( tree , hf_printerdata_value , tvb , offset , 0 , value ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n g_free ( value ) ;\n }\n proto_item_set_len ( value_item , value_len * 2 + 4 ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , value_subtree , di , drep , hf_enumprinterdata_value_needed , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_printerdata_type , & type ) ;\n offset = dissect_printerdata_data ( tvb , offset , pinfo , tree , di , drep , type ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_enumprinterdata_data_needed , NULL ) ;\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 3890, "target": 1, "func": "static void free_mi ( VP9_COMMON * cm ) {\n int i ;\n for ( i = 0 ;\n i < 2 ;\n ++ i ) {\n vpx_free ( cm -> mip_array [ i ] ) ;\n cm -> mip_array [ i ] = NULL ;\n vpx_free ( cm -> mi_grid_base_array [ i ] ) ;\n cm -> mi_grid_base_array [ i ] = NULL ;\n }\n cm -> mip = NULL ;\n cm -> prev_mip = NULL ;\n cm -> mi_grid_base = NULL ;\n cm -> prev_mi_grid_base = NULL ;\n }"}
{"idx": 3891, "target": 1, "func": "void save_config ( struct recvbuf * rbufp , int restrict_mask ) {\n char reply [ 128 ] ;\n # ifdef SAVECONFIG char filespec [ 128 ] ;\n char filename [ 128 ] ;\n char fullpath [ 512 ] ;\n const char savedconfig_eq [ ] = \"savedconfig=\" ;\n char savedconfig [ sizeof ( savedconfig_eq ) + sizeof ( filename ) ] ;\n time_t now ;\n int fd ;\n FILE * fptr ;\n # endif if ( RES_NOMODIFY & restrict_mask ) {\n snprintf ( reply , sizeof ( reply ) , \"saveconfig prohibited by restrict ... nomodify\" ) ;\n ctl_putdata ( reply , strlen ( reply ) , 0 ) ;\n ctl_flushpkt ( 0 ) ;\n NLOG ( NLOG_SYSINFO ) msyslog ( LOG_NOTICE , \"saveconfig from %s rejected due to nomodify restriction\" , stoa ( & rbufp -> recv_srcadr ) ) ;\n sys_restricted ++ ;\n return ;\n }\n # ifdef SAVECONFIG if ( NULL == saveconfigdir ) {\n snprintf ( reply , sizeof ( reply ) , \"saveconfig prohibited, no saveconfigdir configured\" ) ;\n ctl_putdata ( reply , strlen ( reply ) , 0 ) ;\n ctl_flushpkt ( 0 ) ;\n NLOG ( NLOG_SYSINFO ) msyslog ( LOG_NOTICE , \"saveconfig from %s rejected, no saveconfigdir\" , stoa ( & rbufp -> recv_srcadr ) ) ;\n return ;\n }\n if ( 0 == reqend - reqpt ) return ;\n strlcpy ( filespec , reqpt , sizeof ( filespec ) ) ;\n time ( & now ) ;\n if ( 0 == strftime ( filename , sizeof ( filename ) , filespec , localtime ( & now ) ) ) strlcpy ( filename , filespec , sizeof ( filename ) ) ;\n if ( strchr ( filename , '\\\\' ) || strchr ( filename , '/' ) ) {\n snprintf ( reply , sizeof ( reply ) , \"saveconfig does not allow directory in filename\" ) ;\n ctl_putdata ( reply , strlen ( reply ) , 0 ) ;\n ctl_flushpkt ( 0 ) ;\n msyslog ( LOG_NOTICE , \"saveconfig with path from %s rejected\" , stoa ( & rbufp -> recv_srcadr ) ) ;\n return ;\n }\n snprintf ( fullpath , sizeof ( fullpath ) , \"%s%s\" , saveconfigdir , filename ) ;\n fd = open ( fullpath , O_CREAT | O_TRUNC | O_WRONLY , S_IRUSR | S_IWUSR ) ;\n if ( - 1 == fd ) fptr = NULL ;\n else fptr = fdopen ( fd , \"w\" ) ;\n if ( NULL == fptr || - 1 == dump_all_config_trees ( fptr , 1 ) ) {\n snprintf ( reply , sizeof ( reply ) , \"Unable to save configuration to file %s\" , filename ) ;\n msyslog ( LOG_ERR , \"saveconfig %s from %s failed\" , filename , stoa ( & rbufp -> recv_srcadr ) ) ;\n }\n else {\n snprintf ( reply , sizeof ( reply ) , \"Configuration saved to %s\" , filename ) ;\n msyslog ( LOG_NOTICE , \"Configuration saved to %s (requested by %s)\" , fullpath , stoa ( & rbufp -> recv_srcadr ) ) ;\n snprintf ( savedconfig , sizeof ( savedconfig ) , \"%s%s\" , savedconfig_eq , filename ) ;\n set_sys_var ( savedconfig , strlen ( savedconfig ) + 1 , RO ) ;\n }\n if ( NULL != fptr ) fclose ( fptr ) ;\n # else snprintf ( reply , sizeof ( reply ) , \"saveconfig unavailable, configured with --disable-saveconfig\" ) ;\n # endif ctl_putdata ( reply , strlen ( reply ) , 0 ) ;\n ctl_flushpkt ( 0 ) ;\n }"}
{"idx": 3892, "target": 0, "func": "static void pdf_run_Tc ( fz_context * ctx , pdf_processor * proc , float charspace ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_gstate * gstate = pr -> gstate + pr -> gtop ;\n gstate -> text . char_space = charspace ;\n }"}
{"idx": 3893, "target": 0, "func": "static int nsv_read_seek ( AVFormatContext * s , int stream_index , int64_t timestamp , int flags ) {\n NSVContext * nsv = s -> priv_data ;\n AVStream * st = s -> streams [ stream_index ] ;\n NSVStream * nst = st -> priv_data ;\n int index ;\n index = av_index_search_timestamp ( st , timestamp , flags ) ;\n if ( index < 0 ) return - 1 ;\n if ( avio_seek ( s -> pb , st -> index_entries [ index ] . pos , SEEK_SET ) < 0 ) return - 1 ;\n nst -> frame_offset = st -> index_entries [ index ] . timestamp ;\n nsv -> state = NSV_UNSYNC ;\n return 0 ;\n }"}
{"idx": 3894, "target": 0, "func": "void mainwindows_redraw_dirty ( void ) {\n GSList * tmp ;\n for ( tmp = mainwindows ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n MAIN_WINDOW_REC * rec = tmp -> data ;\n if ( rec -> size_dirty ) {\n rec -> size_dirty = FALSE ;\n mainwindow_resize_windows ( rec ) ;\n }\n if ( rec -> dirty ) {\n rec -> dirty = FALSE ;\n gui_window_redraw ( rec -> active ) ;\n }\n else if ( WINDOW_GUI ( rec -> active ) -> view -> dirty ) {\n gui_window_redraw ( rec -> active ) ;\n }\n }\n }"}
{"idx": 3895, "target": 0, "func": "static int is_sane_resolved_address ( sockaddr_u * peeraddr , int hmode ) {\n if ( ! ISREFCLOCKADR ( peeraddr ) && ISBADADR ( peeraddr ) ) {\n msyslog ( LOG_ERR , \"attempt to configure invalid address %s\" , stoa ( peeraddr ) ) ;\n return 0 ;\n }\n if ( ( T_Server == hmode || T_Peer == hmode || T_Pool == hmode ) && IS_MCAST ( peeraddr ) ) {\n msyslog ( LOG_ERR , \"attempt to configure invalid address %s\" , stoa ( peeraddr ) ) ;\n return 0 ;\n }\n if ( T_Manycastclient == hmode && ! IS_MCAST ( peeraddr ) ) {\n msyslog ( LOG_ERR , \"attempt to configure invalid address %s\" , stoa ( peeraddr ) ) ;\n return 0 ;\n }\n if ( IS_IPV6 ( peeraddr ) && ! ipv6_works ) return 0 ;\n return 1 ;\n }"}
{"idx": 3896, "target": 0, "func": "static const char * unsigned32_avp ( diam_ctx_t * c , diam_avp_t * a , tvbuff_t * tvb , diam_sub_dis_t * diam_sub_dis_inf _U_ ) {\n char * label = NULL ;\n proto_item * pi ;\n gint length = tvb_reported_length ( tvb ) ;\n if ( length == 4 ) {\n if ( c -> tree ) {\n pi = proto_tree_add_item ( c -> tree , a -> hf_value , tvb , 0 , length , ENC_BIG_ENDIAN ) ;\n label = ( char * ) wmem_alloc ( wmem_packet_scope ( ) , ITEM_LABEL_LENGTH + 1 ) ;\n proto_item_fill_label ( PITEM_FINFO ( pi ) , label ) ;\n label = strstr ( label , \": \" ) + 2 ;\n }\n }\n else {\n pi = proto_tree_add_bytes_format ( c -> tree , hf_diameter_avp_data_wrong_length , tvb , 0 , length , NULL , \"Error! Bad Unsigned32 Length\" ) ;\n expert_add_info_format ( c -> pinfo , pi , & ei_diameter_avp_len , \"Bad Unsigned32 Length (%u)\" , length ) ;\n PROTO_ITEM_SET_GENERATED ( pi ) ;\n }\n return label ;\n }"}
{"idx": 3897, "target": 0, "func": "TEST_F ( SSLErrorAssistantTest , DynamicInterstitialListComplexRegexMatch ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n EXPECT_EQ ( 1u , ssl_info ( ) . public_key_hashes . size ( ) ) ;\n auto config_proto = std : : make_unique < chrome_browser_ssl : : SSLErrorAssistantConfig > ( ) ;\n config_proto -> set_version_id ( kLargeVersionId ) ;\n chrome_browser_ssl : : DynamicInterstitial * filter = config_proto -> add_dynamic_interstitial ( ) ;\n filter -> set_interstitial_type ( chrome_browser_ssl : : DynamicInterstitial : : INTERSTITIAL_PAGE_CAPTIVE_PORTAL ) ;\n filter -> set_cert_error ( chrome_browser_ssl : : DynamicInterstitial : : UNKNOWN_CERT_ERROR ) ;\n filter -> add_sha256_hash ( \"sha256ightjar\" ) ;\n filter -> add_sha256_hash ( \"sha256/frogmouth\" ) ;\n filter -> add_sha256_hash ( \"sha256/poorwill\" ) ;\n filter -> set_mitm_software_name ( \"UwS\" ) ;\n filter -> set_issuer_common_name_regex ( \"whippoorwill\" ) ;\n filter = config_proto -> add_dynamic_interstitial ( ) ;\n filter -> set_interstitial_type ( chrome_browser_ssl : : DynamicInterstitial : : INTERSTITIAL_PAGE_SSL ) ;\n filter -> set_cert_error ( chrome_browser_ssl : : DynamicInterstitial : : ERR_CERT_COMMON_NAME_INVALID ) ;\n filter -> add_sha256_hash ( \"sha256uthatch\" ) ;\n filter -> add_sha256_hash ( ssl_info ( ) . public_key_hashes [ 0 ] . ToString ( ) ) ;\n filter -> add_sha256_hash ( \"sha256/treecreeper\" ) ;\n filter -> set_mitm_software_name ( \"UwS\" ) ;\n filter -> set_issuer_common_name_regex ( \"[0-9]+.0.[0-9]+.1\" ) ;\n filter -> set_issuer_organization_regex ( \"T[a-z]+t CA\" ) ;\n error_assistant ( ) -> SetErrorAssistantProto ( std : : move ( config_proto ) ) ;\n base : : Optional < DynamicInterstitialInfo > dynamic_interstitial = error_assistant ( ) -> MatchDynamicInterstitial ( ssl_info ( ) ) ;\n ASSERT_TRUE ( dynamic_interstitial ) ;\n EXPECT_EQ ( chrome_browser_ssl : : DynamicInterstitial : : INTERSTITIAL_PAGE_SSL , dynamic_interstitial -> interstitial_type ) ;\n }"}
{"idx": 3898, "target": 0, "func": "static void dissect_zcl_appl_stats_log_queue_rsp ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n gint list_len ;\n proto_tree_add_item ( tree , hf_zbee_zcl_appl_stats_log_queue_size , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n list_len = tvb_reported_length_remaining ( tvb , * offset ) ;\n if ( list_len > 0 ) {\n while ( * offset < ( guint ) list_len ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_appl_stats_log_id , tvb , * offset , 4 , ENC_LITTLE_ENDIAN ) ;\n * offset += 4 ;\n }\n }\n }"}
{"idx": 3899, "target": 0, "func": "static char * keep_pack ( const char * curr_index_name ) {\n static char name [ PATH_MAX ] ;\n static const char * keep_msg = \"fast-import\" ;\n int keep_fd ;\n keep_fd = odb_pack_keep ( name , sizeof ( name ) , pack_data -> sha1 ) ;\n if ( keep_fd < 0 ) die_errno ( \"cannot create keep file\" ) ;\n write_or_die ( keep_fd , keep_msg , strlen ( keep_msg ) ) ;\n if ( close ( keep_fd ) ) die_errno ( \"failed to write keep file\" ) ;\n snprintf ( name , sizeof ( name ) , \"%s/pack/pack-%s.pack\" , get_object_directory ( ) , sha1_to_hex ( pack_data -> sha1 ) ) ;\n if ( finalize_object_file ( pack_data -> pack_name , name ) ) die ( \"cannot store pack file\" ) ;\n snprintf ( name , sizeof ( name ) , \"%s/pack/pack-%s.idx\" , get_object_directory ( ) , sha1_to_hex ( pack_data -> sha1 ) ) ;\n if ( finalize_object_file ( curr_index_name , name ) ) die ( \"cannot store index file\" ) ;\n free ( ( void * ) curr_index_name ) ;\n return name ;\n }"}
{"idx": 3900, "target": 0, "func": "void ialloc_reset ( gs_ref_memory_t * mem ) {\n mem -> root = 0 ;\n mem -> cc = NULL ;\n mem -> allocated = 0 ;\n mem -> changes = 0 ;\n mem -> scan_limit = 0 ;\n mem -> total_scanned = 0 ;\n mem -> total_scanned_after_compacting = 0 ;\n ialloc_reset_free ( mem ) ;\n }"}
{"idx": 3901, "target": 0, "func": "TEST_F ( ShortcutsProviderTest , MultiMatch ) {\n base : : string16 text ( ASCIIToUTF16 ( \"NEWS\" ) ) ;\n ExpectedURLs expected_urls ;\n expected_urls . push_back ( ExpectedURLAndAllowedToBeDefault ( \"http://slashdot.org/\" , false ) ) ;\n expected_urls . push_back ( ExpectedURLAndAllowedToBeDefault ( \"http://sports.yahoo.com/\" , false ) ) ;\n expected_urls . push_back ( ExpectedURLAndAllowedToBeDefault ( \"http://www.cnn.com/index.html\" , false ) ) ;\n RunShortcutsProviderTest ( provider_ , text , false , expected_urls , \"http://slashdot.org/\" , base : : string16 ( ) ) ;\n }"}
{"idx": 3902, "target": 0, "func": "fz_colorspace_context * fz_keep_colorspace_context ( fz_context * ctx ) {\n if ( ! ctx ) return NULL ;\n return fz_keep_imp ( ctx , ctx -> colorspace , & ctx -> colorspace -> ctx_refs ) ;\n }"}
{"idx": 3903, "target": 0, "func": "xmlRegisterNodeFunc * __xmlRegisterNodeDefaultValue ( void ) {\n if ( IS_MAIN_THREAD ) return ( & xmlRegisterNodeDefaultValue ) ;\n else return ( & xmlGetGlobalState ( ) -> xmlRegisterNodeDefaultValue ) ;\n }"}
{"idx": 3904, "target": 0, "func": "static void sigint ( int sig ) {\n running = 0 ;\n }"}
{"idx": 3905, "target": 0, "func": "static gpgme_error_t gpgsm_set_colon_line_handler ( void * engine , engine_colon_line_handler_t fnc , void * fnc_value ) {\n engine_gpgsm_t gpgsm = engine ;\n gpgsm -> colon . fnc = fnc ;\n gpgsm -> colon . fnc_value = fnc_value ;\n gpgsm -> colon . any = 0 ;\n return 0 ;\n }"}
{"idx": 3906, "target": 0, "func": "static void dma_dummy_write ( void * opaque , hwaddr addr , uint64_t val , unsigned size ) {\n }"}
{"idx": 3907, "target": 0, "func": "static CURLcode glob_set ( URLGlob * glob , char * * patternp , size_t * posp , unsigned long * amount , int globindex ) {\n URLPattern * pat ;\n bool done = FALSE ;\n char * buf = glob -> glob_buffer ;\n char * pattern = * patternp ;\n char * opattern = pattern ;\n size_t opos = * posp - 1 ;\n pat = & glob -> pattern [ glob -> size ] ;\n pat -> type = UPTSet ;\n pat -> content . Set . size = 0 ;\n pat -> content . Set . ptr_s = 0 ;\n pat -> content . Set . elements = NULL ;\n pat -> globindex = globindex ;\n while ( ! done ) {\n switch ( * pattern ) {\n case '\\0' : return GLOBERROR ( \"unmatched brace\" , opos , CURLE_URL_MALFORMAT ) ;\n case '{\n' : case '[' : return GLOBERROR ( \"nested brace\" , * posp , CURLE_URL_MALFORMAT ) ;\n case '}\n' : if ( opattern == pattern ) return GLOBERROR ( \"empty string within braces\" , * posp , CURLE_URL_MALFORMAT ) ;\n if ( multiply ( amount , pat -> content . Set . size + 1 ) ) return GLOBERROR ( \"range overflow\" , 0 , CURLE_URL_MALFORMAT ) ;\n case ',' : * buf = '\\0' ;\n if ( pat -> content . Set . elements ) {\n char * * new_arr = realloc ( pat -> content . Set . elements , ( pat -> content . Set . size + 1 ) * sizeof ( char * ) ) ;\n if ( ! new_arr ) return GLOBERROR ( \"out of memory\" , 0 , CURLE_OUT_OF_MEMORY ) ;\n pat -> content . Set . elements = new_arr ;\n }\n else pat -> content . Set . elements = malloc ( sizeof ( char * ) ) ;\n if ( ! pat -> content . Set . elements ) return GLOBERROR ( \"out of memory\" , 0 , CURLE_OUT_OF_MEMORY ) ;\n pat -> content . Set . elements [ pat -> content . Set . size ] = strdup ( glob -> glob_buffer ) ;\n if ( ! pat -> content . Set . elements [ pat -> content . Set . size ] ) return GLOBERROR ( \"out of memory\" , 0 , CURLE_OUT_OF_MEMORY ) ;\n ++ pat -> content . Set . size ;\n if ( * pattern == '}\n' ) {\n pattern ++ ;\n done = TRUE ;\n continue ;\n }\n buf = glob -> glob_buffer ;\n ++ pattern ;\n ++ ( * posp ) ;\n break ;\n case ']' : return GLOBERROR ( \"unexpected close bracket\" , * posp , CURLE_URL_MALFORMAT ) ;\n case '\\\\' : if ( pattern [ 1 ] ) {\n ++ pattern ;\n ++ ( * posp ) ;\n }\n default : * buf ++ = * pattern ++ ;\n ++ ( * posp ) ;\n }\n }\n * patternp = pattern ;\n return CURLE_OK ;\n }"}
{"idx": 3908, "target": 0, "func": "static void dtap_mm_id_resp ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_TRUE ;\n ELEM_MAND_LV ( GSM_A_PDU_TYPE_COMMON , DE_MID , NULL ) ;\n ELEM_OPT_TV_SHORT ( 0xE0 , GSM_A_PDU_TYPE_GM , DE_PTMSI_TYPE , NULL ) ;\n ELEM_OPT_TLV ( 0x1B , GSM_A_PDU_TYPE_GM , DE_RAI_2 , \" - Routing area identification\" ) ;\n ELEM_OPT_TLV ( 0x19 , GSM_A_PDU_TYPE_GM , DE_P_TMSI_SIG_2 , \" - P-TMSI signature\" ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 3909, "target": 1, "func": "static int ipvideo_decode_block_opcode_0x5 ( IpvideoContext * s ) {\n signed char x , y ;\n x = bytestream2_get_byte ( & s -> stream_ptr ) ;\n y = bytestream2_get_byte ( & s -> stream_ptr ) ;\n av_dlog ( NULL , \" motion bytes = %d, %d\\n\" , x , y ) ;\n return copy_from ( s , & s -> last_frame , x , y ) ;\n }"}
{"idx": 3910, "target": 0, "func": "static void start_new_outpacket ( int userid , char * data , int datalen ) {\n datalen = MIN ( datalen , sizeof ( users [ userid ] . outpacket . data ) ) ;\n memcpy ( users [ userid ] . outpacket . data , data , datalen ) ;\n users [ userid ] . outpacket . len = datalen ;\n users [ userid ] . outpacket . offset = 0 ;\n users [ userid ] . outpacket . sentlen = 0 ;\n users [ userid ] . outpacket . seqno = ( users [ userid ] . outpacket . seqno + 1 ) & 7 ;\n users [ userid ] . outpacket . fragment = 0 ;\n users [ userid ] . outfragresent = 0 ;\n }"}
{"idx": 3911, "target": 0, "func": "static int key_notify_sa_expire ( struct xfrm_state * x , const struct km_event * c ) {\n struct sk_buff * out_skb ;\n struct sadb_msg * out_hdr ;\n int hard ;\n int hsc ;\n hard = c -> data . hard ;\n if ( hard ) hsc = 2 ;\n else hsc = 1 ;\n out_skb = pfkey_xfrm_state2msg_expire ( x , hsc ) ;\n if ( IS_ERR ( out_skb ) ) return PTR_ERR ( out_skb ) ;\n out_hdr = ( struct sadb_msg * ) out_skb -> data ;\n out_hdr -> sadb_msg_version = PF_KEY_V2 ;\n out_hdr -> sadb_msg_type = SADB_EXPIRE ;\n out_hdr -> sadb_msg_satype = pfkey_proto2satype ( x -> id . proto ) ;\n out_hdr -> sadb_msg_errno = 0 ;\n out_hdr -> sadb_msg_reserved = 0 ;\n out_hdr -> sadb_msg_seq = 0 ;\n out_hdr -> sadb_msg_pid = 0 ;\n pfkey_broadcast ( out_skb , GFP_ATOMIC , BROADCAST_REGISTERED , NULL , xs_net ( x ) ) ;\n return 0 ;\n }"}
{"idx": 3912, "target": 0, "func": "static void cirrus_linear_bitblt_write ( void * opaque , hwaddr addr , uint64_t val , unsigned size ) {\n CirrusVGAState * s = opaque ;\n if ( s -> cirrus_srcptr != s -> cirrus_srcptr_end ) {\n * s -> cirrus_srcptr ++ = ( uint8_t ) val ;\n if ( s -> cirrus_srcptr >= s -> cirrus_srcptr_end ) {\n cirrus_bitblt_cputovideo_next ( s ) ;\n }\n }\n }"}
{"idx": 3913, "target": 0, "func": "void kadmin_delprinc ( int argc , char * argv [ ] ) {\n kadm5_ret_t retval ;\n krb5_principal princ = NULL ;\n char * canon = NULL ;\n char reply [ 5 ] ;\n if ( ! ( argc == 2 || ( argc == 3 && ! strcmp ( \"-force\" , argv [ 1 ] ) ) ) ) {\n fprintf ( stderr , _ ( \"usage: delete_principal [-force] principal\\n\" ) ) ;\n return ;\n }\n retval = kadmin_parse_name ( argv [ argc - 1 ] , & princ ) ;\n if ( retval ) {\n com_err ( \"delete_principal\" , retval , _ ( \"while parsing principal name\" ) ) ;\n return ;\n }\n retval = krb5_unparse_name ( context , princ , & canon ) ;\n if ( retval ) {\n com_err ( \"delete_principal\" , retval , _ ( \"while canonicalizing principal\" ) ) ;\n goto cleanup ;\n }\n if ( argc == 2 ) {\n printf ( _ ( \"Are you sure you want to delete the principal \\\"%s\\\"? \" \"(yeso): \" ) , canon ) ;\n fgets ( reply , sizeof ( reply ) , stdin ) ;\n if ( strcmp ( \"yes\\n\" , reply ) ) {\n fprintf ( stderr , _ ( \"Principal \\\"%s\\\" not deleted\\n\" ) , canon ) ;\n goto cleanup ;\n }\n }\n retval = kadm5_delete_principal ( handle , princ ) ;\n if ( retval ) {\n com_err ( \"delete_principal\" , retval , _ ( \"while deleting principal \\\"%s\\\"\" ) , canon ) ;\n goto cleanup ;\n }\n printf ( _ ( \"Principal \\\"%s\\\" deleted.\\n\" ) , canon ) ;\n printf ( _ ( \"Make sure that you have removed this principal from all ACLs \" \"before reusing.\\n\" ) ) ;\n cleanup : krb5_free_principal ( context , princ ) ;\n free ( canon ) ;\n }"}
{"idx": 3914, "target": 0, "func": "TEST_F ( TemplateURLTest , GetURLOnlyOneURL ) {\n TemplateURLData data ;\n data . SetURL ( \"http://www.google.co.uk/\" ) ;\n TemplateURL url ( data ) ;\n const std : : vector < TemplateURLRef > & url_refs = url . url_refs ( ) ;\n ASSERT_EQ ( 1U , url_refs . size ( ) ) ;\n EXPECT_EQ ( \"http://www.google.co.uk/\" , url_refs [ 0 ] . GetURL ( ) ) ;\n }"}
{"idx": 3915, "target": 0, "func": "static void icount_adjust_rt ( void * opaque ) {\n qemu_mod_timer ( icount_rt_timer , qemu_get_clock_ms ( rt_clock ) + 1000 ) ;\n icount_adjust ( ) ;\n }"}
{"idx": 3916, "target": 0, "func": "static void apply_ir_filter ( float * out , const AMRFixed * in , const float * filter ) {\n float filter1 [ AMR_SUBFRAME_SIZE ] , filter2 [ AMR_SUBFRAME_SIZE ] ;\n int lag = in -> pitch_lag ;\n float fac = in -> pitch_fac ;\n int i ;\n if ( lag < AMR_SUBFRAME_SIZE ) {\n ff_celp_circ_addf ( filter1 , filter , filter , lag , fac , AMR_SUBFRAME_SIZE ) ;\n if ( lag < AMR_SUBFRAME_SIZE >> 1 ) ff_celp_circ_addf ( filter2 , filter , filter1 , lag , fac , AMR_SUBFRAME_SIZE ) ;\n }\n memset ( out , 0 , sizeof ( float ) * AMR_SUBFRAME_SIZE ) ;\n for ( i = 0 ;\n i < in -> n ;\n i ++ ) {\n int x = in -> x [ i ] ;\n float y = in -> y [ i ] ;\n const float * filterp ;\n if ( x >= AMR_SUBFRAME_SIZE - lag ) {\n filterp = filter ;\n }\n else if ( x >= AMR_SUBFRAME_SIZE - ( lag << 1 ) ) {\n filterp = filter1 ;\n }\n else filterp = filter2 ;\n ff_celp_circ_addf ( out , out , filterp , x , y , AMR_SUBFRAME_SIZE ) ;\n }\n }"}
{"idx": 3917, "target": 0, "func": "static int ztypenames ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n static const char * const tnames [ ] = {\n REF_TYPE_NAME_STRINGS }\n ;\n int i ;\n check_ostack ( t_next_index ) ;\n for ( i = 0 ;\n i < t_next_index ;\n i ++ ) {\n ref * const rtnp = op + 1 + i ;\n if ( i >= countof ( tnames ) || tnames [ i ] == 0 ) make_null ( rtnp ) ;\n else {\n int code = name_enter_string ( imemory , tnames [ i ] , rtnp ) ;\n if ( code < 0 ) return code ;\n r_set_attrs ( rtnp , a_executable ) ;\n }\n }\n osp += t_next_index ;\n return 0 ;\n }"}
{"idx": 3918, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FullscreenControllerInteractiveTest , DISABLED_TestFullscreenFromTabWhenAlreadyInBrowserFullscreenWorks ) {\n ASSERT_TRUE ( test_server ( ) -> Start ( ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , GURL ( \"about:blank\" ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , GURL ( \"chrome:/ewtab\" ) ) ;\n ASSERT_NO_FATAL_FAILURE ( ToggleBrowserFullscreen ( true ) ) ;\n ASSERT_NO_FATAL_FAILURE ( ToggleTabFullscreen ( true ) ) ;\n GoBack ( ) ;\n ASSERT_TRUE ( IsFullscreenForBrowser ( ) ) ;\n ASSERT_FALSE ( IsWindowFullscreenForTabOrPending ( ) ) ;\n }"}
{"idx": 3919, "target": 0, "func": "END_TEST START_TEST ( test_find_available_user ) {\n in_addr_t ip ;\n int i ;\n ip = inet_addr ( \"127.0.0.1\" ) ;\n init_users ( ip , 27 ) ;\n for ( i = 0 ;\n i < USERS ;\n i ++ ) {\n users [ i ] . authenticated = 1 ;\n users [ i ] . authenticated_raw = 1 ;\n fail_unless ( find_available_user ( ) == i ) ;\n fail_if ( users [ i ] . authenticated ) ;\n fail_if ( users [ i ] . authenticated_raw ) ;\n }\n for ( i = 0 ;\n i < USERS ;\n i ++ ) {\n fail_unless ( find_available_user ( ) == - 1 ) ;\n }\n users [ 3 ] . active = 0 ;\n fail_unless ( find_available_user ( ) == 3 ) ;\n fail_unless ( find_available_user ( ) == - 1 ) ;\n users [ 3 ] . last_pkt = 55 ;\n fail_unless ( find_available_user ( ) == 3 ) ;\n fail_unless ( find_available_user ( ) == - 1 ) ;\n }"}
{"idx": 3920, "target": 0, "func": "TEST_F ( ProfileInfoCacheTest , GAIAPicture ) {\n const int kDefaultAvatarIndex = 0 ;\n const int kOtherAvatarIndex = 1 ;\n const int kGaiaPictureSize = 256 ;\n GetCache ( ) -> AddProfileToCache ( GetProfilePath ( \"path_1\" ) , ASCIIToUTF16 ( \"name_1\" ) , base : : string16 ( ) , kDefaultAvatarIndex , std : : string ( ) ) ;\n GetCache ( ) -> AddProfileToCache ( GetProfilePath ( \"path_2\" ) , ASCIIToUTF16 ( \"name_2\" ) , base : : string16 ( ) , kDefaultAvatarIndex , std : : string ( ) ) ;\n EXPECT_EQ ( NULL , GetCache ( ) -> GetGAIAPictureOfProfileAtIndex ( 0 ) ) ;\n EXPECT_EQ ( NULL , GetCache ( ) -> GetGAIAPictureOfProfileAtIndex ( 1 ) ) ;\n EXPECT_FALSE ( GetCache ( ) -> IsUsingGAIAPictureOfProfileAtIndex ( 0 ) ) ;\n EXPECT_FALSE ( GetCache ( ) -> IsUsingGAIAPictureOfProfileAtIndex ( 1 ) ) ;\n EXPECT_TRUE ( GetCache ( ) -> ProfileIsUsingDefaultAvatarAtIndex ( 0 ) ) ;\n EXPECT_TRUE ( GetCache ( ) -> ProfileIsUsingDefaultAvatarAtIndex ( 1 ) ) ;\n int default_avatar_id = profiles : : GetDefaultAvatarIconResourceIDAtIndex ( kDefaultAvatarIndex ) ;\n const gfx : : Image & default_avatar_image ( ResourceBundle : : GetSharedInstance ( ) . GetImageNamed ( default_avatar_id ) ) ;\n EXPECT_TRUE ( gfx : : test : : IsEqual ( default_avatar_image , GetCache ( ) -> GetAvatarIconOfProfileAtIndex ( 1 ) ) ) ;\n gfx : : Image gaia_image ( gfx : : test : : CreateImage ( kGaiaPictureSize , kGaiaPictureSize ) ) ;\n GetCache ( ) -> SetGAIAPictureOfProfileAtIndex ( 1 , & gaia_image ) ;\n EXPECT_EQ ( NULL , GetCache ( ) -> GetGAIAPictureOfProfileAtIndex ( 0 ) ) ;\n EXPECT_TRUE ( gfx : : test : : IsEqual ( gaia_image , * GetCache ( ) -> GetGAIAPictureOfProfileAtIndex ( 1 ) ) ) ;\n EXPECT_TRUE ( GetCache ( ) -> ProfileIsUsingDefaultAvatarAtIndex ( 1 ) ) ;\n EXPECT_TRUE ( GetCache ( ) -> IsUsingGAIAPictureOfProfileAtIndex ( 1 ) ) ;\n EXPECT_TRUE ( gfx : : test : : IsEqual ( gaia_image , GetCache ( ) -> GetAvatarIconOfProfileAtIndex ( 1 ) ) ) ;\n GetCache ( ) -> SetAvatarIconOfProfileAtIndex ( 1 , kOtherAvatarIndex ) ;\n GetCache ( ) -> SetProfileIsUsingDefaultAvatarAtIndex ( 1 , false ) ;\n EXPECT_FALSE ( GetCache ( ) -> ProfileIsUsingDefaultAvatarAtIndex ( 1 ) ) ;\n EXPECT_FALSE ( GetCache ( ) -> IsUsingGAIAPictureOfProfileAtIndex ( 1 ) ) ;\n int other_avatar_id = profiles : : GetDefaultAvatarIconResourceIDAtIndex ( kOtherAvatarIndex ) ;\n const gfx : : Image & other_avatar_image ( ResourceBundle : : GetSharedInstance ( ) . GetImageNamed ( other_avatar_id ) ) ;\n EXPECT_TRUE ( gfx : : test : : IsEqual ( other_avatar_image , GetCache ( ) -> GetAvatarIconOfProfileAtIndex ( 1 ) ) ) ;\n GetCache ( ) -> SetIsUsingGAIAPictureOfProfileAtIndex ( 1 , true ) ;\n EXPECT_TRUE ( GetCache ( ) -> IsUsingGAIAPictureOfProfileAtIndex ( 1 ) ) ;\n EXPECT_TRUE ( gfx : : test : : IsEqual ( gaia_image , * GetCache ( ) -> GetGAIAPictureOfProfileAtIndex ( 1 ) ) ) ;\n EXPECT_TRUE ( gfx : : test : : IsEqual ( gaia_image , GetCache ( ) -> GetAvatarIconOfProfileAtIndex ( 1 ) ) ) ;\n GetCache ( ) -> SetIsUsingGAIAPictureOfProfileAtIndex ( 1 , false ) ;\n EXPECT_FALSE ( GetCache ( ) -> IsUsingGAIAPictureOfProfileAtIndex ( 1 ) ) ;\n EXPECT_TRUE ( gfx : : test : : IsEqual ( gaia_image , * GetCache ( ) -> GetGAIAPictureOfProfileAtIndex ( 1 ) ) ) ;\n EXPECT_TRUE ( gfx : : test : : IsEqual ( other_avatar_image , GetCache ( ) -> GetAvatarIconOfProfileAtIndex ( 1 ) ) ) ;\n }"}
{"idx": 3921, "target": 0, "func": "void fz_cmm_drop_instance ( fz_context * ctx ) {\n if ( ctx && ctx -> colorspace && ctx -> colorspace -> cmm && ctx -> cmm_instance ) ctx -> colorspace -> cmm -> drop_instance ( ctx -> cmm_instance ) ;\n }"}
{"idx": 3922, "target": 0, "func": "static int net_slirp_init ( NetClientState * peer , const char * model , const char * name , int restricted , const char * vnetwork , const char * vhost , const char * vhostname , const char * tftp_export , const char * bootfile , const char * vdhcp_start , const char * vnameserver , const char * smb_export , const char * vsmbserver , const char * * dnssearch ) {\n struct in_addr net = {\n . s_addr = htonl ( 0x0a000200 ) }\n ;\n struct in_addr mask = {\n . s_addr = htonl ( 0xffffff00 ) }\n ;\n struct in_addr host = {\n . s_addr = htonl ( 0x0a000202 ) }\n ;\n struct in_addr dhcp = {\n . s_addr = htonl ( 0x0a00020f ) }\n ;\n struct in_addr dns = {\n . s_addr = htonl ( 0x0a000203 ) }\n ;\n # ifndef _WIN32 struct in_addr smbsrv = {\n . s_addr = 0 }\n ;\n # endif NetClientState * nc ;\n SlirpState * s ;\n char buf [ 20 ] ;\n uint32_t addr ;\n int shift ;\n char * end ;\n struct slirp_config_str * config ;\n if ( ! tftp_export ) {\n tftp_export = legacy_tftp_prefix ;\n }\n if ( ! bootfile ) {\n bootfile = legacy_bootp_filename ;\n }\n if ( vnetwork ) {\n if ( get_str_sep ( buf , sizeof ( buf ) , & vnetwork , '/' ) < 0 ) {\n if ( ! inet_aton ( vnetwork , & net ) ) {\n return - 1 ;\n }\n addr = ntohl ( net . s_addr ) ;\n if ( ! ( addr & 0x80000000 ) ) {\n mask . s_addr = htonl ( 0xff000000 ) ;\n }\n else if ( ( addr & 0xfff00000 ) == 0xac100000 ) {\n mask . s_addr = htonl ( 0xfff00000 ) ;\n }\n else if ( ( addr & 0xc0000000 ) == 0x80000000 ) {\n mask . s_addr = htonl ( 0xffff0000 ) ;\n }\n else if ( ( addr & 0xffff0000 ) == 0xc0a80000 ) {\n mask . s_addr = htonl ( 0xffff0000 ) ;\n }\n else if ( ( addr & 0xffff0000 ) == 0xc6120000 ) {\n mask . s_addr = htonl ( 0xfffe0000 ) ;\n }\n else if ( ( addr & 0xe0000000 ) == 0xe0000000 ) {\n mask . s_addr = htonl ( 0xffffff00 ) ;\n }\n else {\n mask . s_addr = htonl ( 0xfffffff0 ) ;\n }\n }\n else {\n if ( ! inet_aton ( buf , & net ) ) {\n return - 1 ;\n }\n shift = strtol ( vnetwork , & end , 10 ) ;\n if ( * end != '\\0' ) {\n if ( ! inet_aton ( vnetwork , & mask ) ) {\n return - 1 ;\n }\n }\n else if ( shift < 4 || shift > 32 ) {\n return - 1 ;\n }\n else {\n mask . s_addr = htonl ( 0xffffffff << ( 32 - shift ) ) ;\n }\n }\n net . s_addr &= mask . s_addr ;\n host . s_addr = net . s_addr | ( htonl ( 0x0202 ) & ~ mask . s_addr ) ;\n dhcp . s_addr = net . s_addr | ( htonl ( 0x020f ) & ~ mask . s_addr ) ;\n dns . s_addr = net . s_addr | ( htonl ( 0x0203 ) & ~ mask . s_addr ) ;\n }\n if ( vhost && ! inet_aton ( vhost , & host ) ) {\n return - 1 ;\n }\n if ( ( host . s_addr & mask . s_addr ) != net . s_addr ) {\n return - 1 ;\n }\n if ( vnameserver && ! inet_aton ( vnameserver , & dns ) ) {\n return - 1 ;\n }\n if ( ( dns . s_addr & mask . s_addr ) != net . s_addr || dns . s_addr == host . s_addr ) {\n return - 1 ;\n }\n if ( vdhcp_start && ! inet_aton ( vdhcp_start , & dhcp ) ) {\n return - 1 ;\n }\n if ( ( dhcp . s_addr & mask . s_addr ) != net . s_addr || dhcp . s_addr == host . s_addr || dhcp . s_addr == dns . s_addr ) {\n return - 1 ;\n }\n # ifndef _WIN32 if ( vsmbserver && ! inet_aton ( vsmbserver , & smbsrv ) ) {\n return - 1 ;\n }\n # endif nc = qemu_new_net_client ( & net_slirp_info , peer , model , name ) ;\n snprintf ( nc -> info_str , sizeof ( nc -> info_str ) , \"net=%s,restrict=%s\" , inet_ntoa ( net ) , restricted ? \"on\" : \"off\" ) ;\n s = DO_UPCAST ( SlirpState , nc , nc ) ;\n s -> slirp = slirp_init ( restricted , net , mask , host , vhostname , tftp_export , bootfile , dhcp , dns , dnssearch , s ) ;\n QTAILQ_INSERT_TAIL ( & slirp_stacks , s , entry ) ;\n for ( config = slirp_configs ;\n config ;\n config = config -> next ) {\n if ( config -> flags & SLIRP_CFG_HOSTFWD ) {\n if ( slirp_hostfwd ( s , config -> str , config -> flags & SLIRP_CFG_LEGACY ) < 0 ) goto error ;\n }\n else {\n if ( slirp_guestfwd ( s , config -> str , config -> flags & SLIRP_CFG_LEGACY ) < 0 ) goto error ;\n }\n }\n # ifndef _WIN32 if ( ! smb_export ) {\n smb_export = legacy_smb_export ;\n }\n if ( smb_export ) {\n if ( slirp_smb ( s , smb_export , smbsrv ) < 0 ) goto error ;\n }\n # endif return 0 ;\n error : qemu_del_net_client ( nc ) ;\n return - 1 ;\n }"}
{"idx": 3923, "target": 0, "func": "static long nfatree ( struct vars * v , struct subre * t , FILE * f ) {\n assert ( t != NULL && t -> begin != NULL ) ;\n if ( t -> left != NULL ) ( DISCARD ) nfatree ( v , t -> left , f ) ;\n if ( t -> right != NULL ) ( DISCARD ) nfatree ( v , t -> right , f ) ;\n return nfanode ( v , t , 0 , f ) ;\n }"}
{"idx": 3924, "target": 0, "func": "static void got_filesystem_info ( FilesystemInfoState * state , GFileInfo * info ) {\n NautilusDirectory * directory ;\n NautilusFile * file ;\n const char * filesystem_type ;\n directory = nautilus_directory_ref ( state -> directory ) ;\n state -> directory -> details -> filesystem_info_state = NULL ;\n async_job_end ( state -> directory , \"filesystem info\" ) ;\n file = nautilus_file_ref ( state -> file ) ;\n file -> details -> filesystem_info_is_up_to_date = TRUE ;\n if ( info != NULL ) {\n file -> details -> filesystem_use_preview = g_file_info_get_attribute_uint32 ( info , G_FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW ) ;\n file -> details -> filesystem_readonly = g_file_info_get_attribute_boolean ( info , G_FILE_ATTRIBUTE_FILESYSTEM_READONLY ) ;\n filesystem_type = g_file_info_get_attribute_string ( info , G_FILE_ATTRIBUTE_FILESYSTEM_TYPE ) ;\n if ( g_strcmp0 ( eel_ref_str_peek ( file -> details -> filesystem_type ) , filesystem_type ) != 0 ) {\n eel_ref_str_unref ( file -> details -> filesystem_type ) ;\n file -> details -> filesystem_type = eel_ref_str_get_unique ( filesystem_type ) ;\n }\n }\n nautilus_directory_async_state_changed ( directory ) ;\n nautilus_file_changed ( file ) ;\n nautilus_file_unref ( file ) ;\n nautilus_directory_unref ( directory ) ;\n filesystem_info_state_free ( state ) ;\n }"}
{"idx": 3925, "target": 0, "func": "void do_file_exist ( struct st_command * command ) {\n int error ;\n static DYNAMIC_STRING ds_filename ;\n const struct command_arg file_exist_args [ ] = {\n {\n \"filename\" , ARG_STRING , TRUE , & ds_filename , \"File to check if it exist\" }\n }\n ;\n DBUG_ENTER ( \"do_file_exist\" ) ;\n check_command_args ( command , command -> first_argument , file_exist_args , sizeof ( file_exist_args ) / sizeof ( struct command_arg ) , ' ' ) ;\n DBUG_PRINT ( \"info\" , ( \"Checking for existence of file: %s\" , ds_filename . str ) ) ;\n error = ( access ( ds_filename . str , F_OK ) != 0 ) ;\n handle_command_error ( command , error , errno ) ;\n dynstr_free ( & ds_filename ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 3926, "target": 0, "func": "void var_copy ( VAR * dest , VAR * src ) {\n dest -> int_val = src -> int_val ;\n dest -> is_int = src -> is_int ;\n dest -> int_dirty = src -> int_dirty ;\n if ( dest -> alloced_len < src -> alloced_len && ! ( dest -> str_val = dest -> str_val ? ( char * ) my_realloc ( dest -> str_val , src -> alloced_len , MYF ( MY_WME ) ) : ( char * ) my_malloc ( src -> alloced_len , MYF ( MY_WME ) ) ) ) die ( \"Out of memory\" ) ;\n else dest -> alloced_len = src -> alloced_len ;\n dest -> str_val_len = src -> str_val_len ;\n if ( src -> str_val_len ) memcpy ( dest -> str_val , src -> str_val , src -> str_val_len ) ;\n }"}
{"idx": 3927, "target": 0, "func": "char * irc_ctcp_dcc_filename_without_quotes ( const char * filename ) {\n int length ;\n length = strlen ( filename ) ;\n if ( length > 1 ) {\n if ( ( filename [ 0 ] == '\\\"' ) && ( filename [ length - 1 ] == '\\\"' ) ) return weechat_strndup ( filename + 1 , length - 2 ) ;\n }\n return strdup ( filename ) ;\n }"}
{"idx": 3928, "target": 0, "func": "static int checkday ( const char * check , size_t len ) {\n int i ;\n const char * const * what ;\n bool found = FALSE ;\n if ( len > 3 ) what = & weekday [ 0 ] ;\n else what = & Curl_wkday [ 0 ] ;\n for ( i = 0 ;\n i < 7 ;\n i ++ ) {\n if ( Curl_raw_equal ( check , what [ 0 ] ) ) {\n found = TRUE ;\n break ;\n }\n what ++ ;\n }\n return found ? i : - 1 ;\n }"}
{"idx": 3929, "target": 0, "func": "static inline int get_coeff ( GetBitContext * gb , VLC * vlc ) {\n int val = get_vlc2 ( gb , vlc -> table , vlc -> bits , 2 ) ;\n return get_coeff_bits ( gb , val ) ;\n }"}
{"idx": 3930, "target": 0, "func": "static bool data_has_8bit ( const unsigned char * data , size_t size ) {\n size_t i ;\n for ( i = 0 ;\n i < size ;\n i ++ ) {\n if ( ( data [ i ] & 0x80 ) != 0 ) return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 3931, "target": 0, "func": "static gboolean copy_move_directory ( CopyMoveJob * copy_job , GFile * src , GFile * * dest , gboolean same_fs , gboolean create_dest , char * * parent_dest_fs_type , SourceInfo * source_info , TransferInfo * transfer_info , GHashTable * debuting_files , gboolean * skipped_file , gboolean readonly_source_fs ) {\n GFileInfo * info ;\n GError * error ;\n GFile * src_file ;\n GFileEnumerator * enumerator ;\n char * primary , * secondary , * details ;\n char * dest_fs_type ;\n int response ;\n gboolean skip_error ;\n gboolean local_skipped_file ;\n CommonJob * job ;\n GFileCopyFlags flags ;\n job = ( CommonJob * ) copy_job ;\n if ( create_dest ) {\n switch ( create_dest_dir ( job , src , dest , same_fs , parent_dest_fs_type ) ) {\n case CREATE_DEST_DIR_RETRY : {\n return FALSE ;\n }\n case CREATE_DEST_DIR_FAILED : {\n * skipped_file = TRUE ;\n return TRUE ;\n }\n case CREATE_DEST_DIR_SUCCESS : default : {\n }\n break ;\n }\n if ( debuting_files ) {\n g_hash_table_replace ( debuting_files , g_object_ref ( * dest ) , GINT_TO_POINTER ( TRUE ) ) ;\n }\n }\n local_skipped_file = FALSE ;\n dest_fs_type = NULL ;\n skip_error = should_skip_readdir_error ( job , src ) ;\n retry : error = NULL ;\n enumerator = g_file_enumerate_children ( src , G_FILE_ATTRIBUTE_STANDARD_NAME , G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS , job -> cancellable , & error ) ;\n if ( enumerator ) {\n error = NULL ;\n while ( ! job_aborted ( job ) && ( info = g_file_enumerator_next_file ( enumerator , job -> cancellable , skip_error ? NULL : & error ) ) != NULL ) {\n src_file = g_file_get_child ( src , g_file_info_get_name ( info ) ) ;\n copy_move_file ( copy_job , src_file , * dest , same_fs , FALSE , & dest_fs_type , source_info , transfer_info , NULL , NULL , FALSE , & local_skipped_file , readonly_source_fs ) ;\n if ( local_skipped_file ) {\n transfer_add_file_to_count ( src_file , job , transfer_info ) ;\n report_copy_progress ( copy_job , source_info , transfer_info ) ;\n }\n g_object_unref ( src_file ) ;\n g_object_unref ( info ) ;\n }\n g_file_enumerator_close ( enumerator , job -> cancellable , NULL ) ;\n g_object_unref ( enumerator ) ;\n if ( error && IS_IO_ERROR ( error , CANCELLED ) ) {\n g_error_free ( error ) ;\n }\n else if ( error ) {\n if ( copy_job -> is_move ) {\n primary = f ( _ ( \"Error while moving.\" ) ) ;\n }\n else {\n primary = f ( _ ( \"Error while copying.\" ) ) ;\n }\n details = NULL ;\n if ( IS_IO_ERROR ( error , PERMISSION_DENIED ) ) {\n secondary = f ( _ ( \"Files in the folder \u201c%B\u201d cannot be copied because you do \" \"not have permissions to see them.\" ) , src ) ;\n }\n else {\n secondary = f ( _ ( \"There was an error getting information about the files in the folder \u201c%B\u201d.\" ) , src ) ;\n details = error -> message ;\n }\n response = run_warning ( job , primary , secondary , details , FALSE , CANCEL , _ ( \"_Skip files\" ) , NULL ) ;\n g_error_free ( error ) ;\n if ( response == 0 || response == GTK_RESPONSE_DELETE_EVENT ) {\n abort_job ( job ) ;\n }\n else if ( response == 1 ) {\n local_skipped_file = TRUE ;\n }\n else {\n g_assert_not_reached ( ) ;\n }\n }\n transfer_info -> num_files ++ ;\n report_copy_progress ( copy_job , source_info , transfer_info ) ;\n if ( debuting_files ) {\n g_hash_table_replace ( debuting_files , g_object_ref ( * dest ) , GINT_TO_POINTER ( create_dest ) ) ;\n }\n }\n else if ( IS_IO_ERROR ( error , CANCELLED ) ) {\n g_error_free ( error ) ;\n }\n else {\n if ( copy_job -> is_move ) {\n primary = f ( _ ( \"Error while moving.\" ) ) ;\n }\n else {\n primary = f ( _ ( \"Error while copying.\" ) ) ;\n }\n details = NULL ;\n if ( IS_IO_ERROR ( error , PERMISSION_DENIED ) ) {\n secondary = f ( _ ( \"The folder \u201c%B\u201d cannot be copied because you do not have \" \"permissions to read it.\" ) , src ) ;\n }\n else {\n secondary = f ( _ ( \"There was an error reading the folder \u201c%B\u201d.\" ) , src ) ;\n details = error -> message ;\n }\n response = run_warning ( job , primary , secondary , details , FALSE , CANCEL , SKIP , RETRY , NULL ) ;\n g_error_free ( error ) ;\n if ( response == 0 || response == GTK_RESPONSE_DELETE_EVENT ) {\n abort_job ( job ) ;\n }\n else if ( response == 1 ) {\n local_skipped_file = TRUE ;\n }\n else if ( response == 2 ) {\n goto retry ;\n }\n else {\n g_assert_not_reached ( ) ;\n }\n }\n if ( create_dest ) {\n flags = ( readonly_source_fs ) ? G_FILE_COPY_NOFOLLOW_SYMLINKS | G_FILE_COPY_TARGET_DEFAULT_PERMS : G_FILE_COPY_NOFOLLOW_SYMLINKS ;\n g_file_copy_attributes ( src , * dest , flags , job -> cancellable , NULL ) ;\n }\n if ( ! job_aborted ( job ) && copy_job -> is_move && ! local_skipped_file ) {\n if ( ! g_file_delete ( src , job -> cancellable , & error ) ) {\n if ( job -> skip_all_error ) {\n goto skip ;\n }\n primary = f ( _ ( \"Error while moving \u201c%B\u201d.\" ) , src ) ;\n secondary = f ( _ ( \"Could not remove the source folder.\" ) ) ;\n details = error -> message ;\n response = run_cancel_or_skip_warning ( job , primary , secondary , details , source_info -> num_files , source_info -> num_files - transfer_info -> num_files ) ;\n if ( response == 0 || response == GTK_RESPONSE_DELETE_EVENT ) {\n abort_job ( job ) ;\n }\n else if ( response == 1 ) {\n job -> skip_all_error = TRUE ;\n local_skipped_file = TRUE ;\n }\n else if ( response == 2 ) {\n local_skipped_file = TRUE ;\n }\n else {\n g_assert_not_reached ( ) ;\n }\n skip : g_error_free ( error ) ;\n }\n }\n if ( local_skipped_file ) {\n * skipped_file = TRUE ;\n }\n g_free ( dest_fs_type ) ;\n return TRUE ;\n }"}
{"idx": 3932, "target": 0, "func": "guint16 de_lai ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint8 octs [ 3 ] ;\n guint16 value ;\n guint32 curr_offset ;\n proto_tree * subtree ;\n proto_item * item ;\n gchar mcc [ 4 ] ;\n gchar mnc [ 4 ] ;\n curr_offset = offset ;\n subtree = proto_tree_add_subtree ( tree , tvb , curr_offset , 5 , ett_gsm_common_elem [ DE_LAI ] , & item , val_to_str_ext_const ( DE_LAI , & gsm_common_elem_strings_ext , \"\" ) ) ;\n octs [ 0 ] = tvb_get_guint8 ( tvb , curr_offset ) ;\n octs [ 1 ] = tvb_get_guint8 ( tvb , curr_offset + 1 ) ;\n octs [ 2 ] = tvb_get_guint8 ( tvb , curr_offset + 2 ) ;\n mcc_mnc_aux ( octs , mcc , mnc ) ;\n curr_offset = dissect_e212_mcc_mnc ( tvb , pinfo , subtree , curr_offset , E212_LAI , TRUE ) ;\n value = tvb_get_ntohs ( tvb , curr_offset ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_lac , tvb , curr_offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( item , \" - %s/%s/%u\" , mcc , mnc , value ) ;\n curr_offset += 2 ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 3933, "target": 1, "func": "int encode_msg ( struct sip_msg * msg , char * payload , int len ) {\n int i , j , k , u , request ;\n unsigned short int h ;\n struct hdr_field * hf ;\n struct msg_start * ms ;\n struct sip_uri miuri ;\n char * myerror = NULL ;\n ptrdiff_t diff ;\n if ( len < MAX_ENCODED_MSG + MAX_MESSAGE_LEN ) return - 1 ;\n if ( parse_headers ( msg , HDR_EOH_F , 0 ) < 0 ) {\n myerror = \"in parse_headers\" ;\n goto error ;\n }\n memset ( payload , 0 , len ) ;\n ms = & msg -> first_line ;\n if ( ms -> type == SIP_REQUEST ) request = 1 ;\n else if ( ms -> type == SIP_REPLY ) request = 0 ;\n else {\n myerror = \"message is neither request nor response\" ;\n goto error ;\n }\n if ( request ) {\n for ( h = 0 ;\n h < 32 ;\n j = ( 0x01 << h ) , h ++ ) if ( j & ms -> u . request . method_value ) break ;\n }\n else {\n h = ( unsigned short ) ( ms -> u . reply . statuscode ) ;\n }\n if ( h == 32 ) {\n myerror = \"unknown message type\\n\" ;\n goto error ;\n }\n h = htons ( h ) ;\n memcpy ( payload , & h , 2 ) ;\n h = htons ( ( unsigned short int ) msg -> len ) ;\n memcpy ( & payload [ MSG_LEN_IDX ] , & h , 2 ) ;\n if ( 0 > ( diff = ( get_body ( msg ) - ( msg -> buf ) ) ) ) {\n myerror = \"body starts before the message (uh ?)\" ;\n goto error ;\n }\n else h = htons ( ( unsigned short int ) diff ) ;\n memcpy ( payload + CONTENT_IDX , & h , 2 ) ;\n payload [ METHOD_CODE_IDX ] = ( unsigned char ) ( request ? ( ms -> u . request . method . s - msg -> buf ) : ( ms -> u . reply . status . s - msg -> buf ) ) ;\n payload [ METHOD_CODE_IDX + 1 ] = ( unsigned char ) ( request ? ( ms -> u . request . method . len ) : ( ms -> u . reply . status . len ) ) ;\n payload [ URI_REASON_IDX ] = ( unsigned char ) ( request ? ( ms -> u . request . uri . s - msg -> buf ) : ( ms -> u . reply . reason . s - msg -> buf ) ) ;\n payload [ URI_REASON_IDX + 1 ] = ( unsigned char ) ( request ? ( ms -> u . request . uri . len ) : ( ms -> u . reply . reason . len ) ) ;\n payload [ VERSION_IDX ] = ( unsigned char ) ( request ? ( ms -> u . request . version . s - msg -> buf ) : ( ms -> u . reply . version . s - msg -> buf ) ) ;\n if ( request ) {\n if ( parse_uri ( ms -> u . request . uri . s , ms -> u . request . uri . len , & miuri ) < 0 ) {\n LM_ERR ( \"<%.*s>\\n\" , ms -> u . request . uri . len , ms -> u . request . uri . s ) ;\n myerror = \"while parsing the R-URI\" ;\n goto error ;\n }\n if ( 0 > ( j = encode_uri2 ( msg -> buf , ms -> u . request . method . s - msg -> buf + ms -> len , ms -> u . request . uri , & miuri , ( unsigned char * ) & payload [ REQUEST_URI_IDX + 1 ] ) ) ) {\n myerror = \"ENCODE_MSG: ERROR while encoding the R-URI\" ;\n goto error ;\n }\n payload [ REQUEST_URI_IDX ] = ( unsigned char ) j ;\n k = REQUEST_URI_IDX + 1 + j ;\n }\n else k = REQUEST_URI_IDX ;\n u = k ;\n k ++ ;\n for ( i = 0 , hf = msg -> headers ;\n hf ;\n hf = hf -> next , i ++ ) ;\n i ++ ;\n j = k + 3 * i ;\n for ( i = 0 , hf = msg -> headers ;\n hf ;\n hf = hf -> next , k += 3 ) {\n payload [ k ] = ( unsigned char ) ( hf -> type & 0xFF ) ;\n h = htons ( j ) ;\n memcpy ( & payload [ k + 1 ] , & h , 2 ) ;\n if ( 0 > ( i = encode_header ( msg , hf , ( unsigned char * ) ( payload + j ) , MAX_ENCODED_MSG + MAX_MESSAGE_LEN - j ) ) ) {\n LM_ERR ( \"encoding header %.*s\\n\" , hf -> name . len , hf -> name . s ) ;\n goto error ;\n k -= 3 ;\n continue ;\n }\n j += ( unsigned short int ) i ;\n }\n payload [ u ] = ( unsigned char ) ( ( k - u - 1 ) / 3 ) ;\n j = htons ( j ) ;\n memcpy ( & payload [ k + 1 ] , & j , 2 ) ;\n k += 3 ;\n j = ntohs ( j ) ;\n memcpy ( & payload [ j ] , msg -> buf , msg -> len ) ;\n LM_DBG ( \"msglen = %d,msg starts at %d\\n\" , msg -> len , j ) ;\n j = htons ( j ) ;\n memcpy ( & payload [ MSG_START_IDX ] , & j , 2 ) ;\n return GET_PAY_SIZE ( payload ) ;\n error : LM_ERR ( \"%s\\n\" , myerror ) ;\n return - 1 ;\n }"}
{"idx": 3934, "target": 0, "func": "static int ipvideo_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n IpvideoContext * s = avctx -> priv_data ;\n AVFrame * frame = data ;\n int ret ;\n s -> decoding_map_size = avctx -> width * avctx -> height / ( 8 * 8 * 2 ) ;\n if ( buf_size < s -> decoding_map_size ) return buf_size ;\n s -> decoding_map = buf ;\n bytestream2_init ( & s -> stream_ptr , buf + s -> decoding_map_size , buf_size - s -> decoding_map_size ) ;\n if ( ( ret = ff_get_buffer ( avctx , frame , AV_GET_BUFFER_FLAG_REF ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \" Interplay Video: get_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( ! s -> is_16bpp ) {\n const uint8_t * pal = av_packet_get_side_data ( avpkt , AV_PKT_DATA_PALETTE , NULL ) ;\n if ( pal ) {\n frame -> palette_has_changed = 1 ;\n memcpy ( s -> pal , pal , AVPALETTE_SIZE ) ;\n }\n }\n ipvideo_decode_opcodes ( s , frame ) ;\n * got_frame = 1 ;\n av_frame_unref ( s -> second_last_frame ) ;\n FFSWAP ( AVFrame * , s -> second_last_frame , s -> last_frame ) ;\n if ( ( ret = av_frame_ref ( s -> last_frame , frame ) ) < 0 ) return ret ;\n return buf_size ;\n }"}
{"idx": 3935, "target": 0, "func": "static gboolean dissect_class_svalidator_heur ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n unsigned char service , service_code , ioilen , segment ;\n cip_req_info_t * preq_info ;\n guint32 classid = 0 ;\n int offset = 0 ;\n service = tvb_get_guint8 ( tvb , offset ) ;\n service_code = service & 0x7F ;\n if ( service_code == SC_GET_ATT_ALL ) {\n if ( service & 0x80 ) {\n preq_info = ( cip_req_info_t * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_cip , 0 ) ;\n if ( ( preq_info != NULL ) && ( preq_info -> dissector == dissector_get_uint_handle ( subdissector_class_table , CI_CLS_SAFETY_VALIDATOR ) ) ) {\n call_dissector ( preq_info -> dissector , tvb , pinfo , tree ) ;\n return TRUE ;\n }\n }\n else {\n ioilen = tvb_get_guint8 ( tvb , offset + 1 ) ;\n if ( ioilen > 1 ) {\n segment = tvb_get_guint8 ( tvb , offset + 2 ) ;\n if ( ( ( segment & CI_SEGMENT_TYPE_MASK ) == CI_LOGICAL_SEGMENT ) && ( ( segment & CI_LOGICAL_SEG_TYPE_MASK ) == CI_LOGICAL_SEG_CLASS_ID ) ) {\n switch ( segment & CI_LOGICAL_SEG_FORMAT_MASK ) {\n case CI_LOGICAL_SEG_8_BIT : classid = tvb_get_guint8 ( tvb , offset + 3 ) ;\n break ;\n case CI_LOGICAL_SEG_16_BIT : if ( ioilen >= 2 ) classid = tvb_get_letohs ( tvb , offset + 4 ) ;\n break ;\n case CI_LOGICAL_SEG_32_BIT : if ( ioilen >= 3 ) classid = tvb_get_letohl ( tvb , offset + 4 ) ;\n break ;\n }\n }\n }\n if ( classid == CI_CLS_SAFETY_VALIDATOR ) {\n call_dissector ( cip_class_s_validator_handle , tvb , pinfo , tree ) ;\n return TRUE ;\n }\n }\n }\n return FALSE ;\n }"}
{"idx": 3936, "target": 0, "func": "static void restore_fix_stack ( i_ctx_t * i_ctx_p , ref_stack_t * pstack , const alloc_save_t * asave , bool is_estack ) {\n ref_stack_enum_t rsenum ;\n ref_stack_enum_begin ( & rsenum , pstack ) ;\n do {\n ref * stkp = rsenum . ptr ;\n uint size = rsenum . size ;\n for ( ;\n size ;\n stkp ++ , size -- ) {\n r_clear_attrs ( stkp , l_new ) ;\n if ( is_estack ) {\n ref ofile ;\n ref_assign ( & ofile , stkp ) ;\n switch ( r_type ( stkp ) ) {\n case t_string : if ( r_size ( stkp ) == 0 && alloc_is_since_save ( stkp -> value . bytes , asave ) ) {\n make_empty_const_string ( stkp , avm_foreign ) ;\n break ;\n }\n continue ;\n case t_file : if ( alloc_is_since_save ( stkp -> value . pfile , asave ) ) {\n make_invalid_file ( i_ctx_p , stkp ) ;\n break ;\n }\n continue ;\n default : continue ;\n }\n r_copy_attrs ( stkp , a_all | a_executable , & ofile ) ;\n }\n }\n }\n while ( ref_stack_enum_next ( & rsenum ) ) ;\n }"}
{"idx": 3937, "target": 0, "func": "static void get_image_md5 ( const vpx_image_t * img , unsigned char digest [ 16 ] ) {\n int plane , y ;\n MD5Context md5 ;\n MD5Init ( & md5 ) ;\n for ( plane = 0 ;\n plane < 3 ;\n ++ plane ) {\n const unsigned char * buf = img -> planes [ plane ] ;\n const int stride = img -> stride [ plane ] ;\n const int w = plane ? ( img -> d_w + 1 ) >> 1 : img -> d_w ;\n const int h = plane ? ( img -> d_h + 1 ) >> 1 : img -> d_h ;\n for ( y = 0 ;\n y < h ;\n ++ y ) {\n MD5Update ( & md5 , buf , w ) ;\n buf += stride ;\n }\n }\n MD5Final ( digest , & md5 ) ;\n }"}
{"idx": 3938, "target": 0, "func": "WORK_STATE ossl_statem_server_post_process_message ( SSL * s , WORK_STATE wst ) {\n OSSL_STATEM * st = & s -> statem ;\n switch ( st -> hand_state ) {\n case TLS_ST_SR_CLNT_HELLO : return tls_post_process_client_hello ( s , wst ) ;\n case TLS_ST_SR_KEY_EXCH : return tls_post_process_client_key_exchange ( s , wst ) ;\n case TLS_ST_SR_CERT_VRFY : # ifndef OPENSSL_NO_SCTP if ( BIO_dgram_is_sctp ( SSL_get_wbio ( s ) ) && s -> renegotiate && BIO_dgram_sctp_msg_waiting ( SSL_get_rbio ( s ) ) ) {\n s -> s3 -> in_read_app_data = 2 ;\n s -> rwstate = SSL_READING ;\n BIO_clear_retry_flags ( SSL_get_rbio ( s ) ) ;\n BIO_set_retry_read ( SSL_get_rbio ( s ) ) ;\n ossl_statem_set_sctp_read_sock ( s , 1 ) ;\n return WORK_MORE_A ;\n }\n else {\n ossl_statem_set_sctp_read_sock ( s , 0 ) ;\n }\n # endif return WORK_FINISHED_CONTINUE ;\n default : break ;\n }\n return WORK_ERROR ;\n }"}
{"idx": 3939, "target": 0, "func": "static void dissect_rsvp_message_id_list ( proto_tree * ti , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int type ) {\n int offset2 = offset + 4 ;\n int mylen ;\n switch ( type ) {\n case 1 : proto_tree_add_uint ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_message_id_list_flags , tvb , offset + 4 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_message_id_list_epoch , tvb , offset + 5 , 3 , ENC_BIG_ENDIAN ) ;\n for ( mylen = 8 ;\n mylen < obj_length ;\n mylen += 4 ) proto_tree_add_item ( rsvp_object_tree , hf_rsvp_message_id_list_message_id , tvb , offset + mylen , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_set_text ( ti , \"MESSAGE-ID LIST: %d IDs\" , ( obj_length - 8 ) / 4 ) ;\n break ;\n default : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"Unknown (%u)\" , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_message_id_list_data , tvb , offset2 , obj_length - 4 , ENC_NA ) ;\n break ;\n }\n }"}
{"idx": 3940, "target": 0, "func": "void push_compress_filter ( IOBUF out , compress_filter_context_t * zfx , int algo ) {\n push_compress_filter2 ( out , zfx , algo , 0 ) ;\n }"}
{"idx": 3941, "target": 0, "func": "static int dissect_h245_T_customPCF ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_set_of ( tvb , offset , actx , tree , hf_index , ett_h245_T_customPCF , T_customPCF_set_of , 1 , 16 , FALSE ) ;\n return offset ;\n }"}
{"idx": 3942, "target": 0, "func": "int libevt_record_values_read_event ( libevt_record_values_t * record_values , uint8_t * record_data , size_t record_data_size , uint8_t strict_mode , libcerror_error_t * * error ) {\n static char * function = \"libevt_record_values_read_event\" ;\n size_t record_data_offset = 0 ;\n size_t strings_data_offset = 0 ;\n ssize_t value_data_size = 0 ;\n uint32_t data_offset = 0 ;\n uint32_t data_size = 0 ;\n uint32_t members_data_size = 0 ;\n uint32_t size = 0 ;\n uint32_t size_copy = 0 ;\n uint32_t strings_offset = 0 ;\n uint32_t strings_size = 0 ;\n uint32_t user_sid_offset = 0 ;\n uint32_t user_sid_size = 0 ;\n # if defined ( HAVE_DEBUG_OUTPUT ) uint32_t value_32bit = 0 ;\n uint16_t value_16bit = 0 ;\n # endif if ( record_values == NULL ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_ARGUMENTS , LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE , \"%s: invalid record values.\" , function ) ;\n return ( - 1 ) ;\n }\n if ( record_data == NULL ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_ARGUMENTS , LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE , \"%s: invalid record data.\" , function ) ;\n return ( - 1 ) ;\n }\n if ( record_data_size > ( size_t ) SSIZE_MAX ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_ARGUMENTS , LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM , \"%s: invalid record data size value exceeds maximum.\" , function ) ;\n return ( - 1 ) ;\n }\n if ( record_data_size < ( sizeof ( evt_record_event_header_t ) + 4 ) ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS , \"%s: record data size value out of bounds.\" , function ) ;\n return ( - 1 ) ;\n }\n byte_stream_copy_to_uint32_little_endian ( ( ( evt_record_event_header_t * ) record_data ) -> size , size ) ;\n byte_stream_copy_to_uint32_little_endian ( ( ( evt_record_event_header_t * ) record_data ) -> record_number , record_values -> number ) ;\n byte_stream_copy_to_uint32_little_endian ( ( ( evt_record_event_header_t * ) record_data ) -> creation_time , record_values -> creation_time ) ;\n byte_stream_copy_to_uint32_little_endian ( ( ( evt_record_event_header_t * ) record_data ) -> written_time , record_values -> written_time ) ;\n byte_stream_copy_to_uint32_little_endian ( ( ( evt_record_event_header_t * ) record_data ) -> event_identifier , record_values -> event_identifier ) ;\n byte_stream_copy_to_uint16_little_endian ( ( ( evt_record_event_header_t * ) record_data ) -> event_type , record_values -> event_type ) ;\n byte_stream_copy_to_uint16_little_endian ( ( ( evt_record_event_header_t * ) record_data ) -> event_category , record_values -> event_category ) ;\n byte_stream_copy_to_uint32_little_endian ( ( ( evt_record_event_header_t * ) record_data ) -> strings_offset , strings_offset ) ;\n byte_stream_copy_to_uint32_little_endian ( ( ( evt_record_event_header_t * ) record_data ) -> user_sid_size , user_sid_size ) ;\n byte_stream_copy_to_uint32_little_endian ( ( ( evt_record_event_header_t * ) record_data ) -> user_sid_offset , user_sid_offset ) ;\n byte_stream_copy_to_uint32_little_endian ( ( ( evt_record_event_header_t * ) record_data ) -> data_size , data_size ) ;\n byte_stream_copy_to_uint32_little_endian ( ( ( evt_record_event_header_t * ) record_data ) -> data_offset , data_offset ) ;\n byte_stream_copy_to_uint32_little_endian ( & ( record_data [ record_data_size - 4 ] ) , size_copy ) ;\n # if defined ( HAVE_DEBUG_OUTPUT ) if ( libcnotify_verbose != 0 ) {\n libcnotify_printf ( \"%s: size\\t\\t\\t\\t\\t: %\" PRIu32 \"\\n\" , function , size ) ;\n libcnotify_printf ( \"%s: signature\\t\\t\\t\\t: %c%c%c%c\\n\" , function , ( ( evt_record_event_header_t * ) record_data ) -> signature [ 0 ] , ( ( evt_record_event_header_t * ) record_data ) -> signature [ 1 ] , ( ( evt_record_event_header_t * ) record_data ) -> signature [ 2 ] , ( ( evt_record_event_header_t * ) record_data ) -> signature [ 3 ] ) ;\n libcnotify_printf ( \"%s: record number\\t\\t\\t\\t: %\" PRIu32 \"\\n\" , function , record_values -> number ) ;\n if ( libevt_debug_print_posix_time_value ( function , \"creation time\\t\\t\\t\\t\" , ( ( evt_record_event_header_t * ) record_data ) -> creation_time , 4 , LIBFDATETIME_ENDIAN_LITTLE , LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_SIGNED , LIBFDATETIME_STRING_FORMAT_TYPE_CTIME | LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME , error ) != 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_PRINT_FAILED , \"%s: unable to print POSIX time value.\" , function ) ;\n goto on_error ;\n }\n if ( libevt_debug_print_posix_time_value ( function , \"written time\\t\\t\\t\\t\" , ( ( evt_record_event_header_t * ) record_data ) -> written_time , 4 , LIBFDATETIME_ENDIAN_LITTLE , LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_SIGNED , LIBFDATETIME_STRING_FORMAT_TYPE_CTIME | LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME , error ) != 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_PRINT_FAILED , \"%s: unable to print POSIX time value.\" , function ) ;\n goto on_error ;\n }\n libcnotify_printf ( \"%s: event identifier\\t\\t\\t: 0x%08\" PRIx32 \"\\n\" , function , record_values -> event_identifier ) ;\n libcnotify_printf ( \"%s: event identifier: code\\t\\t\\t: %\" PRIu32 \"\\n\" , function , record_values -> event_identifier & 0x0000ffffUL ) ;\n libcnotify_printf ( \"%s: event identifier: facility\\t\\t: %\" PRIu32 \"\\n\" , function , ( record_values -> event_identifier & 0x0fff0000UL ) >> 16 ) ;\n libcnotify_printf ( \"%s: event identifier: reserved\\t\\t: %\" PRIu32 \"\\n\" , function , ( record_values -> event_identifier & 0x10000000UL ) >> 28 ) ;\n libcnotify_printf ( \"%s: event identifier: customer flags\\t: %\" PRIu32 \"\\n\" , function , ( record_values -> event_identifier & 0x20000000UL ) >> 29 ) ;\n libcnotify_printf ( \"%s: event identifier: severity\\t\\t: %\" PRIu32 \" (\" , function , ( record_values -> event_identifier & 0xc0000000UL ) >> 30 ) ;\n libevt_debug_print_event_identifier_severity ( record_values -> event_identifier ) ;\n libcnotify_printf ( \")\\n\" ) ;\n libcnotify_printf ( \"%s: event type\\t\\t\\t\\t: %\" PRIu16 \" (\" , function , record_values -> event_type ) ;\n libevt_debug_print_event_type ( record_values -> event_type ) ;\n libcnotify_printf ( \")\\n\" ) ;\n byte_stream_copy_to_uint16_little_endian ( ( ( evt_record_event_header_t * ) record_data ) -> number_of_strings , value_16bit ) ;\n libcnotify_printf ( \"%s: number of strings\\t\\t\\t: %\" PRIu16 \"\\n\" , function , value_16bit ) ;\n libcnotify_printf ( \"%s: event category\\t\\t\\t\\t: %\" PRIu16 \"\\n\" , function , record_values -> event_category ) ;\n byte_stream_copy_to_uint16_little_endian ( ( ( evt_record_event_header_t * ) record_data ) -> event_flags , value_16bit ) ;\n libcnotify_printf ( \"%s: event flags\\t\\t\\t\\t: 0x%04\" PRIx16 \"\\n\" , function , value_16bit ) ;\n byte_stream_copy_to_uint32_little_endian ( ( ( evt_record_event_header_t * ) record_data ) -> closing_record_number , value_32bit ) ;\n libcnotify_printf ( \"%s: closing record values number\\t\\t: %\" PRIu32 \"\\n\" , function , value_32bit ) ;\n libcnotify_printf ( \"%s: strings offset\\t\\t\\t\\t: %\" PRIu32 \"\\n\" , function , strings_offset ) ;\n libcnotify_printf ( \"%s: user security identifier (SID) size\\t: %\" PRIu32 \"\\n\" , function , user_sid_size ) ;\n libcnotify_printf ( \"%s: user security identifier (SID) offset\\t: %\" PRIu32 \"\\n\" , function , user_sid_offset ) ;\n libcnotify_printf ( \"%s: data size\\t\\t\\t\\t: %\" PRIu32 \"\\n\" , function , data_size ) ;\n libcnotify_printf ( \"%s: data offset\\t\\t\\t\\t: %\" PRIu32 \"\\n\" , function , data_offset ) ;\n }\n # endif record_data_offset = sizeof ( evt_record_event_header_t ) ;\n if ( ( user_sid_offset == 0 ) && ( user_sid_size != 0 ) ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS , \"%s: user SID offset or size value out of bounds.\" , function ) ;\n goto on_error ;\n }\n if ( user_sid_offset != 0 ) {\n if ( ( ( size_t ) user_sid_offset < record_data_offset ) || ( ( size_t ) user_sid_offset >= ( record_data_size - 4 ) ) ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS , \"%s: user SID offset value out of bounds.\" , function ) ;\n goto on_error ;\n }\n if ( user_sid_size != 0 ) {\n if ( ( size_t ) ( user_sid_offset + user_sid_size ) > ( record_data_size - 4 ) ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS , \"%s: user SID size value out of bounds.\" , function ) ;\n goto on_error ;\n }\n }\n }\n if ( ( ( size_t ) strings_offset < user_sid_offset ) || ( ( size_t ) strings_offset >= ( record_data_size - 4 ) ) ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS , \"%s: strings offset value out of bounds.\" , function ) ;\n goto on_error ;\n }\n if ( ( ( size_t ) data_offset < strings_offset ) || ( ( size_t ) data_offset >= ( record_data_size - 4 ) ) ) {\n if ( data_size != 0 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS , \"%s: data offset value out of bounds.\" , function ) ;\n goto on_error ;\n }\n data_offset = ( uint32_t ) record_data_size - 4 ;\n }\n if ( ( ( size_t ) strings_offset >= ( record_data_size - 4 ) ) && ( strings_offset != data_offset ) ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS , \"%s: strings offset value out of bounds.\" , function ) ;\n goto on_error ;\n }\n if ( strings_offset != 0 ) {\n if ( strings_offset < record_data_offset ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS , \"%s: strings offset value out of bounds.\" , function ) ;\n goto on_error ;\n }\n }\n if ( user_sid_offset != 0 ) {\n members_data_size = user_sid_offset - ( uint32_t ) record_data_offset ;\n }\n else if ( strings_offset != 0 ) {\n members_data_size = strings_offset - ( uint32_t ) record_data_offset ;\n }\n if ( strings_offset != 0 ) {\n strings_size = data_offset - strings_offset ;\n }\n if ( data_size != 0 ) {\n if ( ( size_t ) ( data_offset + data_size ) > ( record_data_size - 4 ) ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS , \"%s: data size value out of bounds.\" , function ) ;\n goto on_error ;\n }\n }\n if ( members_data_size != 0 ) {\n # if defined ( HAVE_DEBUG_OUTPUT ) if ( libcnotify_verbose != 0 ) {\n libcnotify_printf ( \"%s: members data:\\n\" , function ) ;\n libcnotify_print_data ( & ( record_data [ record_data_offset ] ) , members_data_size , LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ) ;\n }\n # endif if ( libfvalue_value_type_initialize ( & ( record_values -> source_name ) , LIBFVALUE_VALUE_TYPE_STRING_UTF16 , error ) != 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED , \"%s: unable to create source name value.\" , function ) ;\n goto on_error ;\n }\n value_data_size = libfvalue_value_type_set_data_string ( record_values -> source_name , & ( record_data [ record_data_offset ] ) , members_data_size , LIBFVALUE_CODEPAGE_UTF16_LITTLE_ENDIAN , LIBFVALUE_VALUE_DATA_FLAG_MANAGED , error ) ;\n if ( value_data_size == - 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_SET_FAILED , \"%s: unable to set data of source name value.\" , function ) ;\n goto on_error ;\n }\n # if defined ( HAVE_DEBUG_OUTPUT ) if ( libcnotify_verbose != 0 ) {\n libcnotify_printf ( \"%s: source name\\t\\t\\t\\t: \" , function ) ;\n if ( libfvalue_value_print ( record_values -> source_name , 0 , 0 , error ) != 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_PRINT_FAILED , \"%s: unable to print source name value.\" , function ) ;\n goto on_error ;\n }\n libcnotify_printf ( \"\\n\" ) ;\n }\n # endif record_data_offset += value_data_size ;\n members_data_size -= ( uint32_t ) value_data_size ;\n if ( libfvalue_value_type_initialize ( & ( record_values -> computer_name ) , LIBFVALUE_VALUE_TYPE_STRING_UTF16 , error ) != 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED , \"%s: unable to create computer name value.\" , function ) ;\n goto on_error ;\n }\n value_data_size = libfvalue_value_type_set_data_string ( record_values -> computer_name , & ( record_data [ record_data_offset ] ) , members_data_size , LIBFVALUE_CODEPAGE_UTF16_LITTLE_ENDIAN , LIBFVALUE_VALUE_DATA_FLAG_MANAGED , error ) ;\n if ( value_data_size == - 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_SET_FAILED , \"%s: unable to set data of computer name value.\" , function ) ;\n goto on_error ;\n }\n # if defined ( HAVE_DEBUG_OUTPUT ) if ( libcnotify_verbose != 0 ) {\n libcnotify_printf ( \"%s: computer name\\t\\t\\t\\t: \" , function ) ;\n if ( libfvalue_value_print ( record_values -> computer_name , 0 , 0 , error ) != 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_PRINT_FAILED , \"%s: unable to print computer name value.\" , function ) ;\n goto on_error ;\n }\n libcnotify_printf ( \"\\n\" ) ;\n }\n # endif record_data_offset += value_data_size ;\n members_data_size -= ( uint32_t ) value_data_size ;\n if ( members_data_size > 0 ) {\n # if defined ( HAVE_DEBUG_OUTPUT ) if ( libcnotify_verbose != 0 ) {\n libcnotify_printf ( \"%s: members trailing data:\\n\" , function ) ;\n libcnotify_print_data ( & ( record_data [ record_data_offset ] ) , members_data_size , LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ) ;\n }\n # endif record_data_offset += members_data_size ;\n }\n }\n if ( user_sid_size != 0 ) {\n if ( user_sid_size > ( ( record_data_size - 4 ) - user_sid_offset ) ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS , \"%s: user SID data size value out of bounds.\" , function ) ;\n goto on_error ;\n }\n if ( libfvalue_value_type_initialize ( & ( record_values -> user_security_identifier ) , LIBFVALUE_VALUE_TYPE_NT_SECURITY_IDENTIFIER , error ) != 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED , \"%s: unable to create user security identifier (SID) value.\" , function ) ;\n goto on_error ;\n }\n if ( libfvalue_value_set_data ( record_values -> user_security_identifier , & ( record_data [ user_sid_offset ] ) , ( size_t ) user_sid_size , LIBFVALUE_ENDIAN_LITTLE , LIBFVALUE_VALUE_DATA_FLAG_MANAGED , error ) != 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_SET_FAILED , \"%s: unable to set data of user security identifier (SID) value.\" , function ) ;\n goto on_error ;\n }\n # if defined ( HAVE_DEBUG_OUTPUT ) if ( libcnotify_verbose != 0 ) {\n libcnotify_printf ( \"%s: user security identifier (SID)\\t\\t: \" , function ) ;\n if ( libfvalue_value_print ( record_values -> user_security_identifier , 0 , 0 , error ) != 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_PRINT_FAILED , \"%s: unable to print user security identifier (SID) value.\" , function ) ;\n goto on_error ;\n }\n libcnotify_printf ( \"\\n\" ) ;\n }\n # endif record_data_offset += user_sid_size ;\n }\n if ( strings_size != 0 ) {\n if ( strings_size > ( ( record_data_size - 4 ) - strings_offset ) ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS , \"%s: strings size value out of bounds.\" , function ) ;\n goto on_error ;\n }\n # if defined ( HAVE_DEBUG_OUTPUT ) if ( libcnotify_verbose != 0 ) {\n libcnotify_printf ( \"%s: strings data:\\n\" , function ) ;\n libcnotify_print_data ( & ( record_data [ strings_offset ] ) , strings_size , LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ) ;\n }\n # endif if ( size_copy == 0 ) {\n strings_data_offset = strings_offset + strings_size - 2 ;\n while ( strings_data_offset > strings_offset ) {\n if ( ( record_data [ strings_data_offset ] != 0 ) || ( record_data [ strings_data_offset + 1 ] != 0 ) ) {\n strings_size += 2 ;\n break ;\n }\n strings_data_offset -= 2 ;\n strings_size -= 2 ;\n }\n }\n if ( libfvalue_value_type_initialize ( & ( record_values -> strings ) , LIBFVALUE_VALUE_TYPE_STRING_UTF16 , error ) != 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED , \"%s: unable to create strings value.\" , function ) ;\n goto on_error ;\n }\n value_data_size = libfvalue_value_type_set_data_strings_array ( record_values -> strings , & ( record_data [ strings_offset ] ) , strings_size , LIBFVALUE_CODEPAGE_UTF16_LITTLE_ENDIAN , error ) ;\n if ( value_data_size == - 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_SET_FAILED , \"%s: unable to set data of strings value.\" , function ) ;\n goto on_error ;\n }\n record_data_offset += strings_size ;\n }\n if ( data_size != 0 ) {\n if ( data_size > ( ( record_data_size - 4 ) - data_offset ) ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS , \"%s: data size value out of bounds.\" , function ) ;\n goto on_error ;\n }\n # if defined ( HAVE_DEBUG_OUTPUT ) if ( libcnotify_verbose != 0 ) {\n libcnotify_printf ( \"%s: data:\\n\" , function ) ;\n libcnotify_print_data ( & ( record_data [ record_data_offset ] ) , ( size_t ) data_size , LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ) ;\n }\n # endif if ( libfvalue_value_type_initialize ( & ( record_values -> data ) , LIBFVALUE_VALUE_TYPE_BINARY_DATA , error ) != 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED , \"%s: unable to create data value.\" , function ) ;\n goto on_error ;\n }\n if ( libfvalue_value_set_data ( record_values -> data , & ( record_data [ record_data_offset ] ) , ( size_t ) data_size , LIBFVALUE_ENDIAN_LITTLE , LIBFVALUE_VALUE_DATA_FLAG_MANAGED , error ) != 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_SET_FAILED , \"%s: unable to set data of data value.\" , function ) ;\n goto on_error ;\n }\n # if defined ( HAVE_DEBUG_OUTPUT ) record_data_offset += data_size ;\n # endif }\n # if defined ( HAVE_DEBUG_OUTPUT ) if ( libcnotify_verbose != 0 ) {\n if ( record_data_offset < ( record_data_size - 4 ) ) {\n libcnotify_printf ( \"%s: padding:\\n\" , function ) ;\n libcnotify_print_data ( & ( record_data [ record_data_offset ] ) , ( size_t ) record_data_size - record_data_offset - 4 , LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ) ;\n }\n libcnotify_printf ( \"%s: size copy\\t\\t\\t\\t: %\" PRIu32 \"\\n\" , function , size_copy ) ;\n libcnotify_printf ( \"\\n\" ) ;\n }\n # endif if ( ( strict_mode == 0 ) && ( size_copy == 0 ) ) {\n size_copy = size ;\n }\n if ( size != size_copy ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_INPUT , LIBCERROR_INPUT_ERROR_VALUE_MISMATCH , \"%s: value mismatch for size and size copy.\" , function ) ;\n goto on_error ;\n }\n if ( record_data_size != ( size_t ) size ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_INPUT , LIBCERROR_INPUT_ERROR_VALUE_MISMATCH , \"%s: value mismatch for record_values data size and size.\" , function ) ;\n goto on_error ;\n }\n return ( 1 ) ;\n on_error : if ( record_values -> data != NULL ) {\n libfvalue_value_free ( & ( record_values -> data ) , NULL ) ;\n }\n if ( record_values -> strings != NULL ) {\n libfvalue_value_free ( & ( record_values -> strings ) , NULL ) ;\n }\n if ( record_values -> user_security_identifier != NULL ) {\n libfvalue_value_free ( & ( record_values -> user_security_identifier ) , NULL ) ;\n }\n if ( record_values -> computer_name != NULL ) {\n libfvalue_value_free ( & ( record_values -> computer_name ) , NULL ) ;\n }\n if ( record_values -> source_name != NULL ) {\n libfvalue_value_free ( & ( record_values -> source_name ) , NULL ) ;\n }\n return ( - 1 ) ;\n }"}
{"idx": 3943, "target": 0, "func": "static inline Quantum GetPixelY ( const Image * restrict image , const Quantum * restrict pixel ) {\n return ( pixel [ image -> channel_map [ YPixelChannel ] . offset ] ) ;\n }"}
{"idx": 3944, "target": 0, "func": "static void cirrus_init_common ( CirrusVGAState * s , Object * owner , int device_id , int is_pci , MemoryRegion * system_memory , MemoryRegion * system_io ) {\n int i ;\n static int inited ;\n if ( ! inited ) {\n inited = 1 ;\n for ( i = 0 ;\n i < 256 ;\n i ++ ) rop_to_index [ i ] = CIRRUS_ROP_NOP_INDEX ;\n rop_to_index [ CIRRUS_ROP_0 ] = 0 ;\n rop_to_index [ CIRRUS_ROP_SRC_AND_DST ] = 1 ;\n rop_to_index [ CIRRUS_ROP_NOP ] = 2 ;\n rop_to_index [ CIRRUS_ROP_SRC_AND_NOTDST ] = 3 ;\n rop_to_index [ CIRRUS_ROP_NOTDST ] = 4 ;\n rop_to_index [ CIRRUS_ROP_SRC ] = 5 ;\n rop_to_index [ CIRRUS_ROP_1 ] = 6 ;\n rop_to_index [ CIRRUS_ROP_NOTSRC_AND_DST ] = 7 ;\n rop_to_index [ CIRRUS_ROP_SRC_XOR_DST ] = 8 ;\n rop_to_index [ CIRRUS_ROP_SRC_OR_DST ] = 9 ;\n rop_to_index [ CIRRUS_ROP_NOTSRC_OR_NOTDST ] = 10 ;\n rop_to_index [ CIRRUS_ROP_SRC_NOTXOR_DST ] = 11 ;\n rop_to_index [ CIRRUS_ROP_SRC_OR_NOTDST ] = 12 ;\n rop_to_index [ CIRRUS_ROP_NOTSRC ] = 13 ;\n rop_to_index [ CIRRUS_ROP_NOTSRC_OR_DST ] = 14 ;\n rop_to_index [ CIRRUS_ROP_NOTSRC_AND_NOTDST ] = 15 ;\n s -> device_id = device_id ;\n if ( is_pci ) s -> bustype = CIRRUS_BUSTYPE_PCI ;\n else s -> bustype = CIRRUS_BUSTYPE_ISA ;\n }\n memory_region_init_io ( & s -> cirrus_vga_io , owner , & cirrus_vga_io_ops , s , \"cirrus-io\" , 0x30 ) ;\n memory_region_set_flush_coalesced ( & s -> cirrus_vga_io ) ;\n memory_region_add_subregion ( system_io , 0x3b0 , & s -> cirrus_vga_io ) ;\n memory_region_init ( & s -> low_mem_container , owner , \"cirrus-lowmem-container\" , 0x20000 ) ;\n memory_region_init_io ( & s -> low_mem , owner , & cirrus_vga_mem_ops , s , \"cirrus-low-memory\" , 0x20000 ) ;\n memory_region_add_subregion ( & s -> low_mem_container , 0 , & s -> low_mem ) ;\n for ( i = 0 ;\n i < 2 ;\n ++ i ) {\n static const char * names [ ] = {\n \"vga.bank0\" , \"vga.bank1\" }\n ;\n MemoryRegion * bank = & s -> cirrus_bank [ i ] ;\n memory_region_init_alias ( bank , owner , names [ i ] , & s -> vga . vram , 0 , 0x8000 ) ;\n memory_region_set_enabled ( bank , false ) ;\n memory_region_add_subregion_overlap ( & s -> low_mem_container , i * 0x8000 , bank , 1 ) ;\n }\n memory_region_add_subregion_overlap ( system_memory , 0x000a0000 , & s -> low_mem_container , 1 ) ;\n memory_region_set_coalescing ( & s -> low_mem ) ;\n memory_region_init_io ( & s -> cirrus_linear_io , owner , & cirrus_linear_io_ops , s , \"cirrus-linear-io\" , s -> vga . vram_size_mb * 1024 * 1024 ) ;\n memory_region_set_flush_coalesced ( & s -> cirrus_linear_io ) ;\n memory_region_init_io ( & s -> cirrus_linear_bitblt_io , owner , & cirrus_linear_bitblt_io_ops , s , \"cirrus-bitblt-mmio\" , 0x400000 ) ;\n memory_region_set_flush_coalesced ( & s -> cirrus_linear_bitblt_io ) ;\n memory_region_init_io ( & s -> cirrus_mmio_io , owner , & cirrus_mmio_io_ops , s , \"cirrus-mmio\" , CIRRUS_PNPMMIO_SIZE ) ;\n memory_region_set_flush_coalesced ( & s -> cirrus_mmio_io ) ;\n s -> real_vram_size = ( s -> device_id == CIRRUS_ID_CLGD5446 ) ? 4096 * 1024 : 2048 * 1024 ;\n s -> cirrus_addr_mask = s -> real_vram_size - 1 ;\n s -> linear_mmio_mask = s -> real_vram_size - 256 ;\n s -> vga . get_bpp = cirrus_get_bpp ;\n s -> vga . get_offsets = cirrus_get_offsets ;\n s -> vga . get_resolution = cirrus_get_resolution ;\n s -> vga . cursor_invalidate = cirrus_cursor_invalidate ;\n s -> vga . cursor_draw_line = cirrus_cursor_draw_line ;\n qemu_register_reset ( cirrus_reset , s ) ;\n }"}
{"idx": 3945, "target": 0, "func": "static int decode_residual_block ( AVSContext * h , GetBitContext * gb , const struct dec_2dvlc * r , int esc_golomb_order , int qp , uint8_t * dst , int stride ) {\n int i , level_code , esc_code , level , run , mask ;\n int16_t level_buf [ 65 ] ;\n uint8_t run_buf [ 65 ] ;\n int16_t * block = h -> block ;\n for ( i = 0 ;\n i < 65 ;\n i ++ ) {\n level_code = get_ue_code ( gb , r -> golomb_order ) ;\n if ( level_code >= ESCAPE_CODE ) {\n run = ( ( level_code - ESCAPE_CODE ) >> 1 ) + 1 ;\n esc_code = get_ue_code ( gb , esc_golomb_order ) ;\n level = esc_code + ( run > r -> max_run ? 1 : r -> level_add [ run ] ) ;\n while ( level > r -> inc_limit ) r ++ ;\n mask = - ( level_code & 1 ) ;\n level = ( level ^ mask ) - mask ;\n }\n else if ( level_code >= 0 ) {\n level = r -> rltab [ level_code ] [ 0 ] ;\n if ( ! level ) break ;\n run = r -> rltab [ level_code ] [ 1 ] ;\n r += r -> rltab [ level_code ] [ 2 ] ;\n }\n else {\n break ;\n }\n level_buf [ i ] = level ;\n run_buf [ i ] = run ;\n }\n if ( dequant ( h , level_buf , run_buf , block , dequant_mul [ qp ] , dequant_shift [ qp ] , i ) ) return - 1 ;\n h -> cdsp . cavs_idct8_add ( dst , block , stride ) ;\n h -> dsp . clear_block ( block ) ;\n return 0 ;\n }"}
{"idx": 3946, "target": 1, "func": "static int s390_virtio_console_init ( VirtIOS390Device * dev ) {\n VirtIOS390Bus * bus ;\n VirtIODevice * vdev ;\n int r ;\n bus = DO_UPCAST ( VirtIOS390Bus , bus , dev -> qdev . parent_bus ) ;\n vdev = virtio_console_init ( ( DeviceState * ) dev ) ;\n if ( ! vdev ) {\n return - 1 ;\n }\n r = s390_virtio_device_init ( dev , vdev ) ;\n if ( ! r ) {\n bus -> console = dev ;\n }\n return r ;\n }"}
{"idx": 3947, "target": 0, "func": "static int tipc_nl_compat_link_dump ( struct tipc_nl_compat_msg * msg , struct nlattr * * attrs ) {\n struct nlattr * link [ TIPC_NLA_LINK_MAX + 1 ] ;\n struct tipc_link_info link_info ;\n int err ;\n if ( ! attrs [ TIPC_NLA_LINK ] ) return - EINVAL ;\n err = nla_parse_nested ( link , TIPC_NLA_LINK_MAX , attrs [ TIPC_NLA_LINK ] , NULL ) ;\n if ( err ) return err ;\n link_info . dest = nla_get_flag ( link [ TIPC_NLA_LINK_DEST ] ) ;\n link_info . up = htonl ( nla_get_flag ( link [ TIPC_NLA_LINK_UP ] ) ) ;\n nla_strlcpy ( link_info . str , nla_data ( link [ TIPC_NLA_LINK_NAME ] ) , TIPC_MAX_LINK_NAME ) ;\n return tipc_add_tlv ( msg -> rep , TIPC_TLV_LINK_INFO , & link_info , sizeof ( link_info ) ) ;\n }"}
{"idx": 3948, "target": 0, "func": "void vp9_quantize_fp_c ( const tran_low_t * coeff_ptr , intptr_t n_coeffs , int skip_block , const int16_t * zbin_ptr , const int16_t * round_ptr , const int16_t * quant_ptr , const int16_t * quant_shift_ptr , tran_low_t * qcoeff_ptr , tran_low_t * dqcoeff_ptr , const int16_t * dequant_ptr , int zbin_oq_value , uint16_t * eob_ptr , const int16_t * scan , const int16_t * iscan ) {\n int i , eob = - 1 ;\n ( void ) zbin_ptr ;\n ( void ) quant_shift_ptr ;\n ( void ) zbin_oq_value ;\n ( void ) iscan ;\n vpx_memset ( qcoeff_ptr , 0 , n_coeffs * sizeof ( * qcoeff_ptr ) ) ;\n vpx_memset ( dqcoeff_ptr , 0 , n_coeffs * sizeof ( * dqcoeff_ptr ) ) ;\n if ( ! skip_block ) {\n for ( i = 0 ;\n i < n_coeffs ;\n i ++ ) {\n const int rc = scan [ i ] ;\n const int coeff = coeff_ptr [ rc ] ;\n const int coeff_sign = ( coeff >> 31 ) ;\n const int abs_coeff = ( coeff ^ coeff_sign ) - coeff_sign ;\n int tmp = clamp ( abs_coeff + round_ptr [ rc != 0 ] , INT16_MIN , INT16_MAX ) ;\n tmp = ( tmp * quant_ptr [ rc != 0 ] ) >> 16 ;\n qcoeff_ptr [ rc ] = ( tmp ^ coeff_sign ) - coeff_sign ;\n dqcoeff_ptr [ rc ] = qcoeff_ptr [ rc ] * dequant_ptr [ rc != 0 ] ;\n if ( tmp ) eob = i ;\n }\n }\n * eob_ptr = eob + 1 ;\n }"}
{"idx": 3949, "target": 0, "func": "op_array_table * get_global_op_array ( const gs_memory_t * mem ) {\n gs_main_instance * minst = get_minst_from_memory ( mem ) ;\n return & minst -> i_ctx_p -> op_array_table_global ;\n }"}
{"idx": 3950, "target": 0, "func": "static int mem_read ( jas_stream_obj_t * obj , char * buf , int cnt ) {\n int n ;\n assert ( cnt >= 0 ) ;\n assert ( buf ) ;\n jas_stream_memobj_t * m = ( jas_stream_memobj_t * ) obj ;\n n = m -> len_ - m -> pos_ ;\n cnt = JAS_MIN ( n , cnt ) ;\n memcpy ( buf , & m -> buf_ [ m -> pos_ ] , cnt ) ;\n m -> pos_ += cnt ;\n return cnt ;\n }"}
{"idx": 3951, "target": 0, "func": "static void dtls1_fix_message_header ( SSL * s , unsigned long frag_off , unsigned long frag_len ) {\n struct hm_header_st * msg_hdr = & s -> d1 -> w_msg_hdr ;\n msg_hdr -> frag_off = frag_off ;\n msg_hdr -> frag_len = frag_len ;\n }"}
{"idx": 3952, "target": 0, "func": "PHP_FUNCTION ( uwsgi_worker_id ) {\n RETURN_LONG ( uwsgi . mywid ) ;\n }"}
{"idx": 3953, "target": 0, "func": "static guint16 de_lsa_id ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n curr_offset = offset ;\n if ( len == 0 ) {\n proto_tree_add_uint_format_value ( tree , hf_gsm_a_dtap_lsa_id , tvb , curr_offset , len , 0 , \"not included\" ) ;\n }\n else {\n proto_tree_add_item ( tree , hf_gsm_a_dtap_lsa_id , tvb , curr_offset , 3 , ENC_BIG_ENDIAN ) ;\n }\n curr_offset += len ;\n EXTRANEOUS_DATA_CHECK ( len , curr_offset - offset , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 3954, "target": 0, "func": "static int dissect_h245_H263Version3Options ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_H263Version3Options , H263Version3Options_sequence ) ;\n return offset ;\n }"}
{"idx": 3955, "target": 0, "func": "static int decode_envelope ( COOKContext * q , COOKSubpacket * p , int * quant_index_table ) {\n int i , j , vlc_index ;\n quant_index_table [ 0 ] = get_bits ( & q -> gb , 6 ) - 6 ;\n for ( i = 1 ;\n i < p -> total_subbands ;\n i ++ ) {\n vlc_index = i ;\n if ( i >= p -> js_subband_start * 2 ) {\n vlc_index -= p -> js_subband_start ;\n }\n else {\n vlc_index /= 2 ;\n if ( vlc_index < 1 ) vlc_index = 1 ;\n }\n if ( vlc_index > 13 ) vlc_index = 13 ;\n j = get_vlc2 ( & q -> gb , q -> envelope_quant_index [ vlc_index - 1 ] . table , q -> envelope_quant_index [ vlc_index - 1 ] . bits , 2 ) ;\n quant_index_table [ i ] = quant_index_table [ i - 1 ] + j - 12 ;\n if ( quant_index_table [ i ] > 63 || quant_index_table [ i ] < - 63 ) {\n av_log ( q -> avctx , AV_LOG_ERROR , \"Invalid quantizer %d at position %d, outside [-63, 63] range\\n\" , quant_index_table [ i ] , i ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n return 0 ;\n }"}
{"idx": 3956, "target": 1, "func": "static int qcow2_open ( BlockDriverState * bs , QDict * options , int flags , Error * * errp ) {\n BDRVQcowState * s = bs -> opaque ;\n unsigned int len , i ;\n int ret = 0 ;\n QCowHeader header ;\n QemuOpts * opts ;\n Error * local_err = NULL ;\n uint64_t ext_end ;\n uint64_t l1_vm_state_index ;\n const char * opt_overlap_check ;\n int overlap_check_template = 0 ;\n ret = bdrv_pread ( bs -> file , 0 , & header , sizeof ( header ) ) ;\n if ( ret < 0 ) {\n error_setg_errno ( errp , - ret , \"Could not read qcow2 header\" ) ;\n goto fail ;\n }\n be32_to_cpus ( & header . magic ) ;\n be32_to_cpus ( & header . version ) ;\n be64_to_cpus ( & header . backing_file_offset ) ;\n be32_to_cpus ( & header . backing_file_size ) ;\n be64_to_cpus ( & header . size ) ;\n be32_to_cpus ( & header . cluster_bits ) ;\n be32_to_cpus ( & header . crypt_method ) ;\n be64_to_cpus ( & header . l1_table_offset ) ;\n be32_to_cpus ( & header . l1_size ) ;\n be64_to_cpus ( & header . refcount_table_offset ) ;\n be32_to_cpus ( & header . refcount_table_clusters ) ;\n be64_to_cpus ( & header . snapshots_offset ) ;\n be32_to_cpus ( & header . nb_snapshots ) ;\n if ( header . magic != QCOW_MAGIC ) {\n error_setg ( errp , \"Image is not in qcow2 format\" ) ;\n ret = - EINVAL ;\n goto fail ;\n }\n if ( header . version < 2 || header . version > 3 ) {\n report_unsupported ( bs , errp , \"QCOW version %d\" , header . version ) ;\n ret = - ENOTSUP ;\n goto fail ;\n }\n s -> qcow_version = header . version ;\n if ( header . cluster_bits < MIN_CLUSTER_BITS || header . cluster_bits > MAX_CLUSTER_BITS ) {\n error_setg ( errp , \"Unsupported cluster size: 2^%i\" , header . cluster_bits ) ;\n ret = - EINVAL ;\n goto fail ;\n }\n s -> cluster_bits = header . cluster_bits ;\n s -> cluster_size = 1 << s -> cluster_bits ;\n s -> cluster_sectors = 1 << ( s -> cluster_bits - 9 ) ;\n if ( header . version == 2 ) {\n header . incompatible_features = 0 ;\n header . compatible_features = 0 ;\n header . autoclear_features = 0 ;\n header . refcount_order = 4 ;\n header . header_length = 72 ;\n }\n else {\n be64_to_cpus ( & header . incompatible_features ) ;\n be64_to_cpus ( & header . compatible_features ) ;\n be64_to_cpus ( & header . autoclear_features ) ;\n be32_to_cpus ( & header . refcount_order ) ;\n be32_to_cpus ( & header . header_length ) ;\n if ( header . header_length < 104 ) {\n error_setg ( errp , \"qcow2 header too short\" ) ;\n ret = - EINVAL ;\n goto fail ;\n }\n }\n if ( header . header_length > s -> cluster_size ) {\n error_setg ( errp , \"qcow2 header exceeds cluster size\" ) ;\n ret = - EINVAL ;\n goto fail ;\n }\n if ( header . header_length > sizeof ( header ) ) {\n s -> unknown_header_fields_size = header . header_length - sizeof ( header ) ;\n s -> unknown_header_fields = g_malloc ( s -> unknown_header_fields_size ) ;\n ret = bdrv_pread ( bs -> file , sizeof ( header ) , s -> unknown_header_fields , s -> unknown_header_fields_size ) ;\n if ( ret < 0 ) {\n error_setg_errno ( errp , - ret , \"Could not read unknown qcow2 header \" \"fields\" ) ;\n goto fail ;\n }\n }\n if ( header . backing_file_offset > s -> cluster_size ) {\n error_setg ( errp , \"Invalid backing file offset\" ) ;\n ret = - EINVAL ;\n goto fail ;\n }\n if ( header . backing_file_offset ) {\n ext_end = header . backing_file_offset ;\n }\n else {\n ext_end = 1 << header . cluster_bits ;\n }\n s -> incompatible_features = header . incompatible_features ;\n s -> compatible_features = header . compatible_features ;\n s -> autoclear_features = header . autoclear_features ;\n if ( s -> incompatible_features & ~ QCOW2_INCOMPAT_MASK ) {\n void * feature_table = NULL ;\n qcow2_read_extensions ( bs , header . header_length , ext_end , & feature_table , NULL ) ;\n report_unsupported_feature ( bs , errp , feature_table , s -> incompatible_features & ~ QCOW2_INCOMPAT_MASK ) ;\n ret = - ENOTSUP ;\n g_free ( feature_table ) ;\n goto fail ;\n }\n if ( s -> incompatible_features & QCOW2_INCOMPAT_CORRUPT ) {\n if ( ( flags & BDRV_O_RDWR ) && ! ( flags & BDRV_O_CHECK ) ) {\n error_setg ( errp , \"qcow2: Image is corrupt;\n cannot be opened \" \"read/write\" ) ;\n ret = - EACCES ;\n goto fail ;\n }\n }\n if ( header . refcount_order != 4 ) {\n report_unsupported ( bs , errp , \"%d bit reference counts\" , 1 << header . refcount_order ) ;\n ret = - ENOTSUP ;\n goto fail ;\n }\n s -> refcount_order = header . refcount_order ;\n if ( header . crypt_method > QCOW_CRYPT_AES ) {\n error_setg ( errp , \"Unsupported encryption method: %i\" , header . crypt_method ) ;\n ret = - EINVAL ;\n goto fail ;\n }\n s -> crypt_method_header = header . crypt_method ;\n if ( s -> crypt_method_header ) {\n bs -> encrypted = 1 ;\n }\n s -> l2_bits = s -> cluster_bits - 3 ;\n s -> l2_size = 1 << s -> l2_bits ;\n bs -> total_sectors = header . size / 512 ;\n s -> csize_shift = ( 62 - ( s -> cluster_bits - 8 ) ) ;\n s -> csize_mask = ( 1 << ( s -> cluster_bits - 8 ) ) - 1 ;\n s -> cluster_offset_mask = ( 1LL << s -> csize_shift ) - 1 ;\n s -> refcount_table_offset = header . refcount_table_offset ;\n s -> refcount_table_size = header . refcount_table_clusters << ( s -> cluster_bits - 3 ) ;\n if ( header . refcount_table_clusters > qcow2_max_refcount_clusters ( s ) ) {\n error_setg ( errp , \"Reference count table too large\" ) ;\n ret = - EINVAL ;\n goto fail ;\n }\n ret = validate_table_offset ( bs , s -> refcount_table_offset , s -> refcount_table_size , sizeof ( uint64_t ) ) ;\n if ( ret < 0 ) {\n error_setg ( errp , \"Invalid reference count table offset\" ) ;\n goto fail ;\n }\n if ( header . nb_snapshots > QCOW_MAX_SNAPSHOTS ) {\n error_setg ( errp , \"Too many snapshots\" ) ;\n ret = - EINVAL ;\n goto fail ;\n }\n ret = validate_table_offset ( bs , header . snapshots_offset , header . nb_snapshots , sizeof ( QCowSnapshotHeader ) ) ;\n if ( ret < 0 ) {\n error_setg ( errp , \"Invalid snapshot table offset\" ) ;\n goto fail ;\n }\n s -> snapshots_offset = header . snapshots_offset ;\n s -> nb_snapshots = header . nb_snapshots ;\n if ( header . l1_size > 0x2000000 ) {\n error_setg ( errp , \"Active L1 table too large\" ) ;\n ret = - EFBIG ;\n goto fail ;\n }\n s -> l1_size = header . l1_size ;\n l1_vm_state_index = size_to_l1 ( s , header . size ) ;\n if ( l1_vm_state_index > INT_MAX ) {\n error_setg ( errp , \"Image is too big\" ) ;\n ret = - EFBIG ;\n goto fail ;\n }\n s -> l1_vm_state_index = l1_vm_state_index ;\n if ( s -> l1_size < s -> l1_vm_state_index ) {\n error_setg ( errp , \"L1 table is too small\" ) ;\n ret = - EINVAL ;\n goto fail ;\n }\n ret = validate_table_offset ( bs , header . l1_table_offset , header . l1_size , sizeof ( uint64_t ) ) ;\n if ( ret < 0 ) {\n error_setg ( errp , \"Invalid L1 table offset\" ) ;\n goto fail ;\n }\n s -> l1_table_offset = header . l1_table_offset ;\n if ( s -> l1_size > 0 ) {\n s -> l1_table = g_malloc0 ( align_offset ( s -> l1_size * sizeof ( uint64_t ) , 512 ) ) ;\n ret = bdrv_pread ( bs -> file , s -> l1_table_offset , s -> l1_table , s -> l1_size * sizeof ( uint64_t ) ) ;\n if ( ret < 0 ) {\n error_setg_errno ( errp , - ret , \"Could not read L1 table\" ) ;\n goto fail ;\n }\n for ( i = 0 ;\n i < s -> l1_size ;\n i ++ ) {\n be64_to_cpus ( & s -> l1_table [ i ] ) ;\n }\n }\n s -> l2_table_cache = qcow2_cache_create ( bs , L2_CACHE_SIZE ) ;\n s -> refcount_block_cache = qcow2_cache_create ( bs , REFCOUNT_CACHE_SIZE ) ;\n s -> cluster_cache = g_malloc ( s -> cluster_size ) ;\n s -> cluster_data = qemu_blockalign ( bs , QCOW_MAX_CRYPT_CLUSTERS * s -> cluster_size + 512 ) ;\n s -> cluster_cache_offset = - 1 ;\n s -> flags = flags ;\n ret = qcow2_refcount_init ( bs ) ;\n if ( ret != 0 ) {\n error_setg_errno ( errp , - ret , \"Could not initialize refcount handling\" ) ;\n goto fail ;\n }\n QLIST_INIT ( & s -> cluster_allocs ) ;\n QTAILQ_INIT ( & s -> discards ) ;\n if ( qcow2_read_extensions ( bs , header . header_length , ext_end , NULL , & local_err ) ) {\n error_propagate ( errp , local_err ) ;\n ret = - EINVAL ;\n goto fail ;\n }\n if ( header . backing_file_offset != 0 ) {\n len = header . backing_file_size ;\n if ( len > MIN ( 1023 , s -> cluster_size - header . backing_file_offset ) ) {\n error_setg ( errp , \"Backing file name too long\" ) ;\n ret = - EINVAL ;\n goto fail ;\n }\n ret = bdrv_pread ( bs -> file , header . backing_file_offset , bs -> backing_file , len ) ;\n if ( ret < 0 ) {\n error_setg_errno ( errp , - ret , \"Could not read backing file name\" ) ;\n goto fail ;\n }\n bs -> backing_file [ len ] = '\\0' ;\n }\n ret = qcow2_read_snapshots ( bs ) ;\n if ( ret < 0 ) {\n error_setg_errno ( errp , - ret , \"Could not read snapshots\" ) ;\n goto fail ;\n }\n if ( ! bs -> read_only && ! ( flags & BDRV_O_INCOMING ) && s -> autoclear_features ) {\n s -> autoclear_features = 0 ;\n ret = qcow2_update_header ( bs ) ;\n if ( ret < 0 ) {\n error_setg_errno ( errp , - ret , \"Could not update qcow2 header\" ) ;\n goto fail ;\n }\n }\n qemu_co_mutex_init ( & s -> lock ) ;\n if ( ! ( flags & ( BDRV_O_CHECK | BDRV_O_INCOMING ) ) && ! bs -> read_only && ( s -> incompatible_features & QCOW2_INCOMPAT_DIRTY ) ) {\n BdrvCheckResult result = {\n 0 }\n ;\n ret = qcow2_check ( bs , & result , BDRV_FIX_ERRORS ) ;\n if ( ret < 0 ) {\n error_setg_errno ( errp , - ret , \"Could not repair dirty image\" ) ;\n goto fail ;\n }\n }\n opts = qemu_opts_create ( & qcow2_runtime_opts , NULL , 0 , & error_abort ) ;\n qemu_opts_absorb_qdict ( opts , options , & local_err ) ;\n if ( local_err ) {\n error_propagate ( errp , local_err ) ;\n ret = - EINVAL ;\n goto fail ;\n }\n s -> use_lazy_refcounts = qemu_opt_get_bool ( opts , QCOW2_OPT_LAZY_REFCOUNTS , ( s -> compatible_features & QCOW2_COMPAT_LAZY_REFCOUNTS ) ) ;\n s -> discard_passthrough [ QCOW2_DISCARD_NEVER ] = false ;\n s -> discard_passthrough [ QCOW2_DISCARD_ALWAYS ] = true ;\n s -> discard_passthrough [ QCOW2_DISCARD_REQUEST ] = qemu_opt_get_bool ( opts , QCOW2_OPT_DISCARD_REQUEST , flags & BDRV_O_UNMAP ) ;\n s -> discard_passthrough [ QCOW2_DISCARD_SNAPSHOT ] = qemu_opt_get_bool ( opts , QCOW2_OPT_DISCARD_SNAPSHOT , true ) ;\n s -> discard_passthrough [ QCOW2_DISCARD_OTHER ] = qemu_opt_get_bool ( opts , QCOW2_OPT_DISCARD_OTHER , false ) ;\n opt_overlap_check = qemu_opt_get ( opts , \"overlap-check\" ) ? : \"cached\" ;\n if ( ! strcmp ( opt_overlap_check , \"none\" ) ) {\n overlap_check_template = 0 ;\n }\n else if ( ! strcmp ( opt_overlap_check , \"constant\" ) ) {\n overlap_check_template = QCOW2_OL_CONSTANT ;\n }\n else if ( ! strcmp ( opt_overlap_check , \"cached\" ) ) {\n overlap_check_template = QCOW2_OL_CACHED ;\n }\n else if ( ! strcmp ( opt_overlap_check , \"all\" ) ) {\n overlap_check_template = QCOW2_OL_ALL ;\n }\n else {\n error_setg ( errp , \"Unsupported value '%s' for qcow2 option \" \"'overlap-check'. Allowed are either of the following: \" \"none, constant, cached, all\" , opt_overlap_check ) ;\n qemu_opts_del ( opts ) ;\n ret = - EINVAL ;\n goto fail ;\n }\n s -> overlap_check = 0 ;\n for ( i = 0 ;\n i < QCOW2_OL_MAX_BITNR ;\n i ++ ) {\n s -> overlap_check |= qemu_opt_get_bool ( opts , overlap_bool_option_names [ i ] , overlap_check_template & ( 1 << i ) ) << i ;\n }\n qemu_opts_del ( opts ) ;\n if ( s -> use_lazy_refcounts && s -> qcow_version < 3 ) {\n error_setg ( errp , \"Lazy refcounts require a qcow2 image with at least \" \"qemu 1.1 compatibility level\" ) ;\n ret = - EINVAL ;\n goto fail ;\n }\n # ifdef DEBUG_ALLOC {\n BdrvCheckResult result = {\n 0 }\n ;\n qcow2_check_refcounts ( bs , & result , 0 ) ;\n }\n # endif return ret ;\n fail : g_free ( s -> unknown_header_fields ) ;\n cleanup_unknown_header_ext ( bs ) ;\n qcow2_free_snapshots ( bs ) ;\n qcow2_refcount_close ( bs ) ;\n g_free ( s -> l1_table ) ;\n s -> l1_table = NULL ;\n if ( s -> l2_table_cache ) {\n qcow2_cache_destroy ( bs , s -> l2_table_cache ) ;\n }\n if ( s -> refcount_block_cache ) {\n qcow2_cache_destroy ( bs , s -> refcount_block_cache ) ;\n }\n g_free ( s -> cluster_cache ) ;\n qemu_vfree ( s -> cluster_data ) ;\n return ret ;\n }"}
{"idx": 3957, "target": 0, "func": "static SERVER_REC * line_get_server ( const char * line ) {\n SERVER_REC * server ;\n char * tag , * ptr ;\n g_return_val_if_fail ( line != NULL , NULL ) ;\n if ( * line != '-' ) return NULL ;\n tag = g_strdup ( line + 1 ) ;\n ptr = strchr ( tag , ' ' ) ;\n if ( ptr != NULL ) * ptr = '\\0' ;\n server = server_find_tag ( tag ) ;\n g_free ( tag ) ;\n return server ;\n }"}
{"idx": 3958, "target": 0, "func": "static inline void pxa2xx_rtc_swal2_tick ( void * opaque ) {\n PXA2xxRTCState * s = ( PXA2xxRTCState * ) opaque ;\n s -> rtsr |= ( 1 << 10 ) ;\n pxa2xx_rtc_alarm_update ( s , s -> rtsr ) ;\n pxa2xx_rtc_int_update ( s ) ;\n }"}
{"idx": 3959, "target": 0, "func": "void ff_estimate_b_frame_motion ( MpegEncContext * s , int mb_x , int mb_y ) {\n MotionEstContext * const c = & s -> me ;\n const int penalty_factor = c -> mb_penalty_factor ;\n int fmin , bmin , dmin , fbmin , bimin , fimin ;\n int type = 0 ;\n const int xy = mb_y * s -> mb_stride + mb_x ;\n init_ref ( c , s -> new_picture . f . data , s -> last_picture . f . data , s -> next_picture . f . data , 16 * mb_x , 16 * mb_y , 2 ) ;\n get_limits ( s , 16 * mb_x , 16 * mb_y ) ;\n c -> skip = 0 ;\n if ( s -> codec_id == AV_CODEC_ID_MPEG4 && s -> next_picture . mbskip_table [ xy ] ) {\n int score = direct_search ( s , mb_x , mb_y ) ;\n score = ( ( unsigned ) ( score * score + 128 * 256 ) ) >> 16 ;\n c -> mc_mb_var_sum_temp += score ;\n s -> current_picture . mc_mb_var [ mb_y * s -> mb_stride + mb_x ] = score ;\n s -> mb_type [ mb_y * s -> mb_stride + mb_x ] = CANDIDATE_MB_TYPE_DIRECT0 ;\n return ;\n }\n if ( s -> codec_id == AV_CODEC_ID_MPEG4 ) dmin = direct_search ( s , mb_x , mb_y ) ;\n else dmin = INT_MAX ;\n c -> skip = 0 ;\n fmin = ff_estimate_motion_b ( s , mb_x , mb_y , s -> b_forw_mv_table , 0 , s -> f_code ) + 3 * penalty_factor ;\n c -> skip = 0 ;\n bmin = ff_estimate_motion_b ( s , mb_x , mb_y , s -> b_back_mv_table , 2 , s -> b_code ) + 2 * penalty_factor ;\n av_dlog ( s , \" %d %d \" , s -> b_forw_mv_table [ xy ] [ 0 ] , s -> b_forw_mv_table [ xy ] [ 1 ] ) ;\n c -> skip = 0 ;\n fbmin = bidir_refine ( s , mb_x , mb_y ) + penalty_factor ;\n av_dlog ( s , \"%d %d %d %d\\n\" , dmin , fmin , bmin , fbmin ) ;\n if ( s -> flags & CODEC_FLAG_INTERLACED_ME ) {\n c -> skip = 0 ;\n c -> current_mv_penalty = c -> mv_penalty [ s -> f_code ] + MAX_MV ;\n fimin = interlaced_search ( s , 0 , s -> b_field_mv_table [ 0 ] , s -> b_field_select_table [ 0 ] , s -> b_forw_mv_table [ xy ] [ 0 ] , s -> b_forw_mv_table [ xy ] [ 1 ] , 0 ) ;\n c -> current_mv_penalty = c -> mv_penalty [ s -> b_code ] + MAX_MV ;\n bimin = interlaced_search ( s , 2 , s -> b_field_mv_table [ 1 ] , s -> b_field_select_table [ 1 ] , s -> b_back_mv_table [ xy ] [ 0 ] , s -> b_back_mv_table [ xy ] [ 1 ] , 0 ) ;\n }\n else fimin = bimin = INT_MAX ;\n {\n int score = fmin ;\n type = CANDIDATE_MB_TYPE_FORWARD ;\n if ( dmin <= score ) {\n score = dmin ;\n type = CANDIDATE_MB_TYPE_DIRECT ;\n }\n if ( bmin < score ) {\n score = bmin ;\n type = CANDIDATE_MB_TYPE_BACKWARD ;\n }\n if ( fbmin < score ) {\n score = fbmin ;\n type = CANDIDATE_MB_TYPE_BIDIR ;\n }\n if ( fimin < score ) {\n score = fimin ;\n type = CANDIDATE_MB_TYPE_FORWARD_I ;\n }\n if ( bimin < score ) {\n score = bimin ;\n type = CANDIDATE_MB_TYPE_BACKWARD_I ;\n }\n score = ( ( unsigned ) ( score * score + 128 * 256 ) ) >> 16 ;\n c -> mc_mb_var_sum_temp += score ;\n s -> current_picture . mc_mb_var [ mb_y * s -> mb_stride + mb_x ] = score ;\n }\n if ( c -> avctx -> mb_decision > FF_MB_DECISION_SIMPLE ) {\n type = CANDIDATE_MB_TYPE_FORWARD | CANDIDATE_MB_TYPE_BACKWARD | CANDIDATE_MB_TYPE_BIDIR | CANDIDATE_MB_TYPE_DIRECT ;\n if ( fimin < INT_MAX ) type |= CANDIDATE_MB_TYPE_FORWARD_I ;\n if ( bimin < INT_MAX ) type |= CANDIDATE_MB_TYPE_BACKWARD_I ;\n if ( fimin < INT_MAX && bimin < INT_MAX ) {\n type |= CANDIDATE_MB_TYPE_BIDIR_I ;\n }\n if ( dmin > 256 * 256 * 16 ) type &= ~ CANDIDATE_MB_TYPE_DIRECT ;\n if ( s -> codec_id == AV_CODEC_ID_MPEG4 && type & CANDIDATE_MB_TYPE_DIRECT && s -> flags & CODEC_FLAG_MV0 && * ( uint32_t * ) s -> b_direct_mv_table [ xy ] ) type |= CANDIDATE_MB_TYPE_DIRECT0 ;\n }\n s -> mb_type [ mb_y * s -> mb_stride + mb_x ] = type ;\n }"}
{"idx": 3960, "target": 0, "func": "int qemuMonitorJSONSendKey ( qemuMonitorPtr mon , unsigned int holdtime , unsigned int * keycodes , unsigned int nkeycodes ) {\n if ( qemuMonitorCheckHMP ( mon , \"sendkey\" ) ) {\n return qemuMonitorTextSendKey ( mon , holdtime , keycodes , nkeycodes ) ;\n }\n else return - 1 ;\n }"}
{"idx": 3961, "target": 0, "func": "static int dissect_rsl_ie_uplik_meas ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_item * ti ;\n proto_tree * ie_tree ;\n guint length ;\n int ie_offset ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_UPLINK_MEAS ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_ie_uplink_meas , & ti , \"Uplink Measurements IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n length = tvb_get_guint8 ( tvb , offset ) ;\n proto_item_set_len ( ti , length + 2 ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_length , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n ie_offset = offset ;\n proto_tree_add_item ( ie_tree , hf_rsl_dtxd , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_rxlev_full_up , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_rxlev_sub_up , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_rxqual_full_up , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_rxqual_sub_up , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n return ie_offset + length ;\n }"}
{"idx": 3962, "target": 0, "func": "static char * * new_mysql_completion ( const char * text , int start __attribute__ ( ( unused ) ) , int end __attribute__ ( ( unused ) ) ) {\n if ( ! status . batch && ! quick ) # if defined ( USE_NEW_READLINE_INTERFACE ) return rl_completion_matches ( text , new_command_generator ) ;\n # else return completion_matches ( ( char * ) text , ( CPFunction * ) new_command_generator ) ;\n # endif else return ( char * * ) 0 ;\n }"}
{"idx": 3963, "target": 0, "func": "static inline void e1000e_autoneg_pause ( E1000ECore * core ) {\n timer_del ( core -> autoneg_timer ) ;\n }"}
{"idx": 3964, "target": 0, "func": "static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING ) ;\n # ifdef _MSC_VER # pragma warning ( push ) # pragma warning ( disable : 4090 ) # endif DEFINE_LHASH_OF ( OPENSSL_CSTRING )"}
{"idx": 3965, "target": 0, "func": "static MAIN_WINDOW_REC * mainwindows_find_left_upper ( MAIN_WINDOW_REC * window ) {\n MAIN_WINDOW_REC * best ;\n best = mainwindows_find_left ( window , FALSE ) ;\n if ( best == NULL ) best = mainwindows_find_left ( mainwindows_find_upper ( window ) , TRUE ) ;\n return best ;\n }"}
{"idx": 3966, "target": 0, "func": "void issue_warnings ( void ) {\n if ( GET_MAJOR_VERSION ( old_cluster . major_version ) <= 804 ) {\n start_postmaster ( & new_cluster , true ) ;\n new_9_0_populate_pg_largeobject_metadata ( & new_cluster , false ) ;\n stop_postmaster ( false ) ;\n }\n }"}
{"idx": 3967, "target": 0, "func": "void TSActionCancel ( TSAction actionp ) {\n Action * a ;\n INKContInternal * i ;\n if ( ( uintptr_t ) actionp & 0x1 ) {\n a = ( Action * ) ( ( uintptr_t ) actionp - 1 ) ;\n i = ( INKContInternal * ) a -> continuation ;\n i -> handle_event_count ( EVENT_IMMEDIATE ) ;\n }\n else {\n a = ( Action * ) actionp ;\n }\n a -> cancel ( ) ;\n }"}
{"idx": 3968, "target": 1, "func": "static int dissect_segment_ofstable ( tvbuff_t * tvb , int offset , packet_info * pinfo _U_ , proto_tree * tree , lbmpdm_offset_table_t * * offset_table , int encoding ) {\n proto_item * subtree_item = NULL ;\n proto_tree * subtree = NULL ;\n int datalen = 0 ;\n int seglen = 0 ;\n int datalen_remaining = 0 ;\n int ofs = 0 ;\n int field_count = 0 ;\n int idx ;\n gint32 * id_list = NULL ;\n gint32 * ofs_list = NULL ;\n gint32 max_index = - 1 ;\n gint32 min_offset = G_MAXINT32 ;\n lbmpdm_offset_table_t * ofs_table = NULL ;\n seglen = lbmpdm_get_segment_length ( tvb , offset , encoding , & datalen ) ;\n subtree_item = proto_tree_add_none_format ( tree , hf_lbmpdm_segment , tvb , offset , seglen , \"Offset Table Segment\" ) ;\n subtree = proto_item_add_subtree ( subtree_item , ett_lbmpdm_segment ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_segment_next_hdr , tvb , offset + O_LBMPDM_SEG_HDR_T_NEXT_HDR , L_LBMPDM_SEG_HDR_T_NEXT_HDR , encoding ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_segment_flags , tvb , offset + O_LBMPDM_SEG_HDR_T_FLAGS , L_LBMPDM_SEG_HDR_T_FLAGS , encoding ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_segment_res , tvb , offset + O_LBMPDM_SEG_HDR_T_RES , L_LBMPDM_SEG_HDR_T_RES , encoding ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_segment_len , tvb , offset + O_LBMPDM_SEG_HDR_T_LEN , L_LBMPDM_SEG_HDR_T_LEN , encoding ) ;\n field_count = datalen / L_LBMPDM_OFFSET_ENTRY_T ;\n id_list = wmem_alloc_array ( wmem_packet_scope ( ) , gint32 , field_count ) ;\n ofs_list = wmem_alloc_array ( wmem_packet_scope ( ) , gint32 , field_count ) ;\n for ( idx = 0 ;\n idx < field_count ;\n ++ idx ) {\n id_list [ idx ] = - 1 ;\n ofs_list [ idx ] = - 1 ;\n }\n datalen_remaining = datalen ;\n ofs = offset + L_LBMPDM_SEG_HDR_T ;\n for ( idx = 0 ;\n ( idx < field_count ) && ( datalen_remaining >= L_LBMPDM_OFFSET_ENTRY_T ) ;\n idx ++ , ofs += L_LBMPDM_OFFSET_ENTRY_T ) {\n proto_item * offset_item = NULL ;\n proto_tree * offset_tree = NULL ;\n offset_item = proto_tree_add_item ( subtree , hf_lbmpdm_offset_entry , tvb , ofs , L_LBMPDM_OFFSET_ENTRY_T , ENC_NA ) ;\n offset_tree = proto_item_add_subtree ( offset_item , ett_lbmpdm_offset_entry ) ;\n proto_tree_add_item ( offset_tree , hf_lbmpdm_offset_entry_id , tvb , ofs + O_LBMPDM_OFFSET_ENTRY_T_ID , L_LBMPDM_OFFSET_ENTRY_T_ID , encoding ) ;\n id_list [ idx ] = ( gint32 ) lbmpdm_fetch_uint32_encoded ( tvb , ofs + O_LBMPDM_OFFSET_ENTRY_T_ID , encoding ) ;\n proto_tree_add_item ( offset_tree , hf_lbmpdm_offset_entry_offset , tvb , ofs + O_LBMPDM_OFFSET_ENTRY_T_OFFSET , L_LBMPDM_OFFSET_ENTRY_T_OFFSET , encoding ) ;\n ofs_list [ idx ] = ( gint32 ) lbmpdm_fetch_uint32_encoded ( tvb , ofs + O_LBMPDM_OFFSET_ENTRY_T_OFFSET , encoding ) ;\n if ( id_list [ idx ] > max_index ) {\n max_index = id_list [ idx ] ;\n }\n if ( ofs_list [ idx ] < min_offset ) {\n min_offset = ofs_list [ idx ] ;\n }\n }\n ofs_table = wmem_new ( wmem_packet_scope ( ) , lbmpdm_offset_table_t ) ;\n ofs_table -> num_flds = max_index + 1 ;\n ofs_table -> min_set_offset = NULL ;\n ofs_table -> offset_list = wmem_alloc_array ( wmem_packet_scope ( ) , gint32 , ofs_table -> num_flds ) ;\n for ( idx = 0 ;\n idx < ( int ) ofs_table -> num_flds ;\n ++ idx ) {\n ofs_table -> offset_list [ idx ] = - 1 ;\n }\n for ( idx = 0 ;\n idx < field_count ;\n ++ idx ) {\n ofs_table -> offset_list [ id_list [ idx ] ] = ofs_list [ idx ] ;\n if ( ofs_list [ idx ] == min_offset ) {\n ofs_table -> min_set_offset = & ( ofs_table -> offset_list [ id_list [ idx ] ] ) ;\n }\n }\n if ( offset_table != NULL ) {\n * offset_table = ofs_table ;\n }\n return ( seglen ) ;\n }"}
{"idx": 3969, "target": 0, "func": "static inline void SetPixelL ( const Image * restrict image , const Quantum L , Quantum * restrict pixel ) {\n if ( image -> channel_map [ LPixelChannel ] . traits != UndefinedPixelTrait ) pixel [ image -> channel_map [ LPixelChannel ] . offset ] = L ;\n }"}
{"idx": 3970, "target": 0, "func": "static void qemuAgentUpdateWatch ( qemuAgentPtr mon ) {\n int events = VIR_EVENT_HANDLE_HANGUP | VIR_EVENT_HANDLE_ERROR ;\n if ( mon -> lastError . code == VIR_ERR_OK ) {\n events |= VIR_EVENT_HANDLE_READABLE ;\n if ( mon -> msg && mon -> msg -> txOffset < mon -> msg -> txLength ) events |= VIR_EVENT_HANDLE_WRITABLE ;\n }\n virEventUpdateHandle ( mon -> watch , events ) ;\n }"}
{"idx": 3971, "target": 0, "func": "static void zero_hpel ( uint8_t * a , const uint8_t * b , ptrdiff_t stride , int h ) {\n }"}
{"idx": 3972, "target": 0, "func": "static const struct ctl_var * ctl_getitem ( const struct ctl_var * var_list , char * * data ) {\n static const struct ctl_var eol = {\n 0 , EOV , NULL }\n ;\n static char buf [ 128 ] ;\n static u_long quiet_until ;\n const struct ctl_var * v ;\n const char * pch ;\n char * cp ;\n char * tp ;\n while ( reqpt < reqend && ( * reqpt == ',' || isspace ( ( unsigned char ) * reqpt ) ) ) reqpt ++ ;\n if ( reqpt >= reqend ) return NULL ;\n if ( NULL == var_list ) return & eol ;\n cp = reqpt ;\n for ( v = var_list ;\n ! ( EOV & v -> flags ) ;\n v ++ ) {\n if ( ! ( PADDING & v -> flags ) && * cp == * ( v -> text ) ) {\n pch = v -> text ;\n while ( '\\0' != * pch && '=' != * pch && cp < reqend && * cp == * pch ) {\n cp ++ ;\n pch ++ ;\n }\n if ( '\\0' == * pch || '=' == * pch ) {\n while ( cp < reqend && isspace ( ( u_char ) * cp ) ) cp ++ ;\n if ( cp == reqend || ',' == * cp ) {\n buf [ 0 ] = '\\0' ;\n * data = buf ;\n if ( cp < reqend ) cp ++ ;\n reqpt = cp ;\n return v ;\n }\n if ( '=' == * cp ) {\n cp ++ ;\n tp = buf ;\n while ( cp < reqend && isspace ( ( u_char ) * cp ) ) cp ++ ;\n while ( cp < reqend && * cp != ',' ) {\n * tp ++ = * cp ++ ;\n if ( ( size_t ) ( tp - buf ) >= sizeof ( buf ) ) {\n ctl_error ( CERR_BADFMT ) ;\n numctlbadpkts ++ ;\n NLOG ( NLOG_SYSEVENT ) if ( quiet_until <= current_time ) {\n quiet_until = current_time + 300 ;\n msyslog ( LOG_WARNING , \"Possible 'ntpdx' exploit from %s#%u (possibly spoofed)\" , stoa ( rmt_addr ) , SRCPORT ( rmt_addr ) ) ;\n }\n return NULL ;\n }\n }\n if ( cp < reqend ) cp ++ ;\n * tp -- = '\\0' ;\n while ( tp >= buf && isspace ( ( u_char ) * tp ) ) * tp -- = '\\0' ;\n reqpt = cp ;\n * data = buf ;\n return v ;\n }\n }\n cp = reqpt ;\n }\n }\n return v ;\n }"}
{"idx": 3973, "target": 0, "func": "static int dissect_h245_T_userInputSupportIndication ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_userInputSupportIndication , T_userInputSupportIndication_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 3974, "target": 0, "func": "static lbmpdm_definition_field_t * lbmpdm_definition_field_add ( lbmpdm_definition_t * definition , guint32 id ) {\n lbmpdm_definition_field_t * entry = NULL ;\n entry = lbmpdm_definition_field_find ( definition , id ) ;\n if ( entry != NULL ) {\n return ( entry ) ;\n }\n entry = wmem_new0 ( wmem_file_scope ( ) , lbmpdm_definition_field_t ) ;\n entry -> id = id ;\n entry -> definition = definition ;\n wmem_tree_insert32 ( definition -> field_list , id , ( void * ) entry ) ;\n return ( entry ) ;\n }"}
{"idx": 3975, "target": 0, "func": "int qemuMonitorJSONSaveVirtualMemory ( qemuMonitorPtr mon , unsigned long long offset , size_t length , const char * path ) {\n return qemuMonitorJSONSaveMemory ( mon , \"memsave\" , offset , length , path ) ;\n }"}
{"idx": 3976, "target": 0, "func": "static void inverse_channel_transform ( WMAProDecodeCtx * s ) {\n int i ;\n for ( i = 0 ;\n i < s -> num_chgroups ;\n i ++ ) {\n if ( s -> chgroup [ i ] . transform ) {\n float data [ WMAPRO_MAX_CHANNELS ] ;\n const int num_channels = s -> chgroup [ i ] . num_channels ;\n float * * ch_data = s -> chgroup [ i ] . channel_data ;\n float * * ch_end = ch_data + num_channels ;\n const int8_t * tb = s -> chgroup [ i ] . transform_band ;\n int16_t * sfb ;\n for ( sfb = s -> cur_sfb_offsets ;\n sfb < s -> cur_sfb_offsets + s -> num_bands ;\n sfb ++ ) {\n int y ;\n if ( * tb ++ == 1 ) {\n for ( y = sfb [ 0 ] ;\n y < FFMIN ( sfb [ 1 ] , s -> subframe_len ) ;\n y ++ ) {\n const float * mat = s -> chgroup [ i ] . decorrelation_matrix ;\n const float * data_end = data + num_channels ;\n float * data_ptr = data ;\n float * * ch ;\n for ( ch = ch_data ;\n ch < ch_end ;\n ch ++ ) * data_ptr ++ = ( * ch ) [ y ] ;\n for ( ch = ch_data ;\n ch < ch_end ;\n ch ++ ) {\n float sum = 0 ;\n data_ptr = data ;\n while ( data_ptr < data_end ) sum += * data_ptr ++ * * mat ++ ;\n ( * ch ) [ y ] = sum ;\n }\n }\n }\n else if ( s -> avctx -> channels == 2 ) {\n int len = FFMIN ( sfb [ 1 ] , s -> subframe_len ) - sfb [ 0 ] ;\n s -> fdsp . vector_fmul_scalar ( ch_data [ 0 ] + sfb [ 0 ] , ch_data [ 0 ] + sfb [ 0 ] , 181.0 / 128 , len ) ;\n s -> fdsp . vector_fmul_scalar ( ch_data [ 1 ] + sfb [ 0 ] , ch_data [ 1 ] + sfb [ 0 ] , 181.0 / 128 , len ) ;\n }\n }\n }\n }\n }"}
{"idx": 3977, "target": 0, "func": "static char * safeGetICUDataDirectory ( ) {\n const char * dataDir = u_getDataDirectory ( ) ;\n char * retStr = NULL ;\n if ( dataDir != NULL ) {\n retStr = ( char * ) malloc ( strlen ( dataDir ) + 1 ) ;\n strcpy ( retStr , dataDir ) ;\n }\n return retStr ;\n }"}
{"idx": 3978, "target": 0, "func": "static void read_peervars ( void ) {\n const struct ctl_var * v ;\n struct peer * peer ;\n const u_char * cp ;\n size_t i ;\n char * valuep ;\n u_char wants [ CP_MAXCODE + 1 ] ;\n u_int gotvar ;\n peer = findpeerbyassoc ( res_associd ) ;\n if ( NULL == peer ) {\n ctl_error ( CERR_BADASSOC ) ;\n return ;\n }\n rpkt . status = htons ( ctlpeerstatus ( peer ) ) ;\n if ( res_authokay ) peer -> num_events = 0 ;\n ZERO ( wants ) ;\n gotvar = 0 ;\n while ( NULL != ( v = ctl_getitem ( peer_var , & valuep ) ) ) {\n if ( v -> flags & EOV ) {\n ctl_error ( CERR_UNKNOWNVAR ) ;\n return ;\n }\n INSIST ( v -> code < COUNTOF ( wants ) ) ;\n wants [ v -> code ] = 1 ;\n gotvar = 1 ;\n }\n if ( gotvar ) {\n for ( i = 1 ;\n i < COUNTOF ( wants ) ;\n i ++ ) if ( wants [ i ] ) ctl_putpeer ( i , peer ) ;\n }\n else for ( cp = def_peer_var ;\n * cp != 0 ;\n cp ++ ) ctl_putpeer ( ( int ) * cp , peer ) ;\n ctl_flushpkt ( 0 ) ;\n }"}
{"idx": 3979, "target": 0, "func": "static UBool _addVariantToList ( VariantListEntry * * first , VariantListEntry * var ) {\n UBool bAdded = TRUE ;\n if ( * first == NULL ) {\n var -> next = NULL ;\n * first = var ;\n }\n else {\n VariantListEntry * prev , * cur ;\n int32_t cmp ;\n prev = NULL ;\n cur = * first ;\n while ( TRUE ) {\n if ( cur == NULL ) {\n prev -> next = var ;\n var -> next = NULL ;\n break ;\n }\n cmp = uprv_compareInvCharsAsAscii ( var -> variant , cur -> variant ) ;\n if ( cmp == 0 ) {\n bAdded = FALSE ;\n break ;\n }\n prev = cur ;\n cur = cur -> next ;\n }\n }\n return bAdded ;\n }"}
{"idx": 3980, "target": 0, "func": "static inline int ipv6_addr_src_scope ( const struct in6_addr * addr ) {\n return __ipv6_addr_src_scope ( __ipv6_addr_type ( addr ) ) ;\n }"}
{"idx": 3981, "target": 0, "func": "static vpx_codec_err_t ctrl_set_noise_sensitivity ( vpx_codec_alg_priv_t * ctx , va_list args ) {\n struct vp9_extracfg extra_cfg = ctx -> extra_cfg ;\n extra_cfg . noise_sensitivity = CAST ( VP9E_SET_NOISE_SENSITIVITY , args ) ;\n return update_extra_cfg ( ctx , & extra_cfg ) ;\n }"}
{"idx": 3982, "target": 0, "func": "static void test_view_star ( ) {\n MYSQL_STMT * stmt ;\n int rc , i ;\n MYSQL_BIND my_bind [ 8 ] ;\n char parms [ 8 ] [ 100 ] ;\n ulong length [ 8 ] ;\n const char * query = \"SELECT * FROM vt1 WHERE a IN (?,?)\" ;\n myheader ( \"test_view_star\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS t1, vt1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP VIEW IF EXISTS t1, vt1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE t1 (a int)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE VIEW vt1 AS SELECT a FROM t1\" ) ;\n myquery ( rc ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n sprintf ( ( char * ) & parms [ i ] , \"%d\" , i ) ;\n my_bind [ i ] . buffer_type = MYSQL_TYPE_VAR_STRING ;\n my_bind [ i ] . buffer = ( char * ) & parms [ i ] ;\n my_bind [ i ] . buffer_length = 100 ;\n my_bind [ i ] . is_null = 0 ;\n my_bind [ i ] . length = & length [ i ] ;\n length [ i ] = 1 ;\n }\n stmt = mysql_stmt_init ( mysql ) ;\n rc = mysql_stmt_prepare ( stmt , query , strlen ( query ) ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( 0 == rc ) ;\n }\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"DROP TABLE t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP VIEW vt1\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 3983, "target": 0, "func": "static void sig_nick_removed ( CHANNEL_REC * channel , NICK_REC * nick ) {\n MODULE_CHANNEL_REC * mchannel ;\n LAST_MSG_REC * rec ;\n mchannel = MODULE_DATA ( channel ) ;\n rec = last_msg_find ( mchannel -> lastmsgs , nick -> nick ) ;\n if ( rec != NULL ) last_msg_destroy ( & mchannel -> lastmsgs , rec ) ;\n }"}
{"idx": 3984, "target": 0, "func": "struct event * min_heap_pop ( min_heap_t * s ) {\n if ( s -> n ) {\n struct event * e = * s -> p ;\n min_heap_shift_down_ ( s , 0u , s -> p [ -- s -> n ] ) ;\n e -> min_heap_idx = - 1 ;\n return e ;\n }\n return 0 ;\n }"}
{"idx": 3985, "target": 0, "func": "static int selinux_secmark_enabled ( void ) {\n return ( selinux_policycap_alwaysnetwork || atomic_read ( & selinux_secmark_refcount ) ) ;\n }"}
{"idx": 3986, "target": 1, "func": "static int decode_coefs ( VP9_COMMON * cm , const MACROBLOCKD * xd , PLANE_TYPE type , int16_t * dqcoeff , TX_SIZE tx_size , const int16_t * dq , int ctx , const int16_t * scan , const int16_t * nb , vp9_reader * r ) {\n const int max_eob = 16 << ( tx_size << 1 ) ;\n const FRAME_CONTEXT * const fc = & cm -> fc ;\n FRAME_COUNTS * const counts = & cm -> counts ;\n const int ref = is_inter_block ( & xd -> mi [ 0 ] -> mbmi ) ;\n int band , c = 0 ;\n const vp9_prob ( * coef_probs ) [ COEFF_CONTEXTS ] [ UNCONSTRAINED_NODES ] = fc -> coef_probs [ tx_size ] [ type ] [ ref ] ;\n const vp9_prob * prob ;\n unsigned int ( * coef_counts ) [ COEFF_CONTEXTS ] [ UNCONSTRAINED_NODES + 1 ] = counts -> coef [ tx_size ] [ type ] [ ref ] ;\n unsigned int ( * eob_branch_count ) [ COEFF_CONTEXTS ] = counts -> eob_branch [ tx_size ] [ type ] [ ref ] ;\n uint8_t token_cache [ 32 * 32 ] ;\n const uint8_t * band_translate = get_band_translate ( tx_size ) ;\n const int dq_shift = ( tx_size == TX_32X32 ) ;\n int v ;\n int16_t dqv = dq [ 0 ] ;\n while ( c < max_eob ) {\n int val ;\n band = * band_translate ++ ;\n prob = coef_probs [ band ] [ ctx ] ;\n if ( ! cm -> frame_parallel_decoding_mode ) ++ eob_branch_count [ band ] [ ctx ] ;\n if ( ! vp9_read ( r , prob [ EOB_CONTEXT_NODE ] ) ) {\n INCREMENT_COUNT ( EOB_MODEL_TOKEN ) ;\n break ;\n }\n while ( ! vp9_read ( r , prob [ ZERO_CONTEXT_NODE ] ) ) {\n INCREMENT_COUNT ( ZERO_TOKEN ) ;\n dqv = dq [ 1 ] ;\n token_cache [ scan [ c ] ] = 0 ;\n ++ c ;\n if ( c >= max_eob ) return c ;\n ctx = get_coef_context ( nb , token_cache , c ) ;\n band = * band_translate ++ ;\n prob = coef_probs [ band ] [ ctx ] ;\n }\n if ( ! vp9_read ( r , prob [ ONE_CONTEXT_NODE ] ) ) {\n INCREMENT_COUNT ( ONE_TOKEN ) ;\n WRITE_COEF_CONTINUE ( 1 , ONE_TOKEN ) ;\n }\n INCREMENT_COUNT ( TWO_TOKEN ) ;\n prob = vp9_pareto8_full [ prob [ PIVOT_NODE ] - 1 ] ;\n if ( ! vp9_read ( r , prob [ LOW_VAL_CONTEXT_NODE ] ) ) {\n if ( ! vp9_read ( r , prob [ TWO_CONTEXT_NODE ] ) ) {\n WRITE_COEF_CONTINUE ( 2 , TWO_TOKEN ) ;\n }\n if ( ! vp9_read ( r , prob [ THREE_CONTEXT_NODE ] ) ) {\n WRITE_COEF_CONTINUE ( 3 , THREE_TOKEN ) ;\n }\n WRITE_COEF_CONTINUE ( 4 , FOUR_TOKEN ) ;\n }\n if ( ! vp9_read ( r , prob [ HIGH_LOW_CONTEXT_NODE ] ) ) {\n if ( ! vp9_read ( r , prob [ CAT_ONE_CONTEXT_NODE ] ) ) {\n val = CAT1_MIN_VAL ;\n ADJUST_COEF ( vp9_cat1_prob [ 0 ] , 0 ) ;\n WRITE_COEF_CONTINUE ( val , CATEGORY1_TOKEN ) ;\n }\n val = CAT2_MIN_VAL ;\n ADJUST_COEF ( vp9_cat2_prob [ 0 ] , 1 ) ;\n ADJUST_COEF ( vp9_cat2_prob [ 1 ] , 0 ) ;\n WRITE_COEF_CONTINUE ( val , CATEGORY2_TOKEN ) ;\n }\n if ( ! vp9_read ( r , prob [ CAT_THREEFOUR_CONTEXT_NODE ] ) ) {\n if ( ! vp9_read ( r , prob [ CAT_THREE_CONTEXT_NODE ] ) ) {\n val = CAT3_MIN_VAL ;\n ADJUST_COEF ( vp9_cat3_prob [ 0 ] , 2 ) ;\n ADJUST_COEF ( vp9_cat3_prob [ 1 ] , 1 ) ;\n ADJUST_COEF ( vp9_cat3_prob [ 2 ] , 0 ) ;\n WRITE_COEF_CONTINUE ( val , CATEGORY3_TOKEN ) ;\n }\n val = CAT4_MIN_VAL ;\n ADJUST_COEF ( vp9_cat4_prob [ 0 ] , 3 ) ;\n ADJUST_COEF ( vp9_cat4_prob [ 1 ] , 2 ) ;\n ADJUST_COEF ( vp9_cat4_prob [ 2 ] , 1 ) ;\n ADJUST_COEF ( vp9_cat4_prob [ 3 ] , 0 ) ;\n WRITE_COEF_CONTINUE ( val , CATEGORY4_TOKEN ) ;\n }\n if ( ! vp9_read ( r , prob [ CAT_FIVE_CONTEXT_NODE ] ) ) {\n val = CAT5_MIN_VAL ;\n ADJUST_COEF ( vp9_cat5_prob [ 0 ] , 4 ) ;\n ADJUST_COEF ( vp9_cat5_prob [ 1 ] , 3 ) ;\n ADJUST_COEF ( vp9_cat5_prob [ 2 ] , 2 ) ;\n ADJUST_COEF ( vp9_cat5_prob [ 3 ] , 1 ) ;\n ADJUST_COEF ( vp9_cat5_prob [ 4 ] , 0 ) ;\n WRITE_COEF_CONTINUE ( val , CATEGORY5_TOKEN ) ;\n }\n val = 0 ;\n val = ( val << 1 ) | vp9_read ( r , vp9_cat6_prob [ 0 ] ) ;\n val = ( val << 1 ) | vp9_read ( r , vp9_cat6_prob [ 1 ] ) ;\n val = ( val << 1 ) | vp9_read ( r , vp9_cat6_prob [ 2 ] ) ;\n val = ( val << 1 ) | vp9_read ( r , vp9_cat6_prob [ 3 ] ) ;\n val = ( val << 1 ) | vp9_read ( r , vp9_cat6_prob [ 4 ] ) ;\n val = ( val << 1 ) | vp9_read ( r , vp9_cat6_prob [ 5 ] ) ;\n val = ( val << 1 ) | vp9_read ( r , vp9_cat6_prob [ 6 ] ) ;\n val = ( val << 1 ) | vp9_read ( r , vp9_cat6_prob [ 7 ] ) ;\n val = ( val << 1 ) | vp9_read ( r , vp9_cat6_prob [ 8 ] ) ;\n val = ( val << 1 ) | vp9_read ( r , vp9_cat6_prob [ 9 ] ) ;\n val = ( val << 1 ) | vp9_read ( r , vp9_cat6_prob [ 10 ] ) ;\n val = ( val << 1 ) | vp9_read ( r , vp9_cat6_prob [ 11 ] ) ;\n val = ( val << 1 ) | vp9_read ( r , vp9_cat6_prob [ 12 ] ) ;\n val = ( val << 1 ) | vp9_read ( r , vp9_cat6_prob [ 13 ] ) ;\n val += CAT6_MIN_VAL ;\n WRITE_COEF_CONTINUE ( val , CATEGORY6_TOKEN ) ;\n }\n return c ;\n }"}
{"idx": 3987, "target": 0, "func": "static void dissect_fhandle_data ( tvbuff_t * tvb , int offset , packet_info * pinfo _U_ , proto_tree * tree , guint32 * hash ) {\n guint32 fhhash ;\n guint32 i ;\n if ( ! tvb_bytes_exist ( tvb , offset , PVFS2_FH_LENGTH ) ) goto type_ready ;\n for ( fhhash = 0 , i = 0 ;\n i < ( PVFS2_FH_LENGTH - 3 ) ;\n i += 4 ) {\n guint32 val ;\n val = tvb_get_ntohl ( tvb , offset + i ) ;\n fhhash ^= val ;\n fhhash += val ;\n }\n proto_tree_add_uint ( tree , hf_pvfs_fh_hash , tvb , offset , PVFS2_FH_LENGTH , fhhash ) ;\n if ( hash ) * hash = fhhash ;\n type_ready : dissect_fhandle_data_unknown ( tvb , offset , tree ) ;\n }"}
{"idx": 3988, "target": 0, "func": "static int aes_ccm_ctrl ( EVP_CIPHER_CTX * c , int type , int arg , void * ptr ) {\n EVP_AES_CCM_CTX * cctx = EVP_C_DATA ( EVP_AES_CCM_CTX , c ) ;\n switch ( type ) {\n case EVP_CTRL_INIT : cctx -> key_set = 0 ;\n cctx -> iv_set = 0 ;\n cctx -> L = 8 ;\n cctx -> M = 12 ;\n cctx -> tag_set = 0 ;\n cctx -> len_set = 0 ;\n cctx -> tls_aad_len = - 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_TLS1_AAD : if ( arg != EVP_AEAD_TLS1_AAD_LEN ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n cctx -> tls_aad_len = arg ;\n {\n uint16_t len = EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] << 8 | EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] ;\n if ( len < EVP_CCM_TLS_EXPLICIT_IV_LEN ) return 0 ;\n len -= EVP_CCM_TLS_EXPLICIT_IV_LEN ;\n if ( ! EVP_CIPHER_CTX_encrypting ( c ) ) {\n if ( len < cctx -> M ) return 0 ;\n len -= cctx -> M ;\n }\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] = len >> 8 ;\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] = len & 0xff ;\n }\n return cctx -> M ;\n case EVP_CTRL_CCM_SET_IV_FIXED : if ( arg != EVP_CCM_TLS_FIXED_IV_LEN ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_iv_noconst ( c ) , ptr , arg ) ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_IVLEN : arg = 15 - arg ;\n case EVP_CTRL_CCM_SET_L : if ( arg < 2 || arg > 8 ) return 0 ;\n cctx -> L = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_TAG : if ( ( arg & 1 ) || arg < 4 || arg > 16 ) return 0 ;\n if ( EVP_CIPHER_CTX_encrypting ( c ) && ptr ) return 0 ;\n if ( ptr ) {\n cctx -> tag_set = 1 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n }\n cctx -> M = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_GET_TAG : if ( ! EVP_CIPHER_CTX_encrypting ( c ) || ! cctx -> tag_set ) return 0 ;\n if ( ! CRYPTO_ccm128_tag ( & cctx -> ccm , ptr , ( size_t ) arg ) ) return 0 ;\n cctx -> tag_set = 0 ;\n cctx -> iv_set = 0 ;\n cctx -> len_set = 0 ;\n return 1 ;\n case EVP_CTRL_COPY : {\n EVP_CIPHER_CTX * out = ptr ;\n EVP_AES_CCM_CTX * cctx_out = EVP_C_DATA ( EVP_AES_CCM_CTX , out ) ;\n if ( cctx -> ccm . key ) {\n if ( cctx -> ccm . key != & cctx -> ks ) return 0 ;\n cctx_out -> ccm . key = & cctx_out -> ks ;\n }\n return 1 ;\n }\n default : return - 1 ;\n }\n }"}
{"idx": 3989, "target": 0, "func": "static uint32_t rotl ( uint32_t v , unsigned count ) {\n count &= 31 ;\n return ( v << count ) | ( v >> ( 32 - count ) ) ;\n }"}
{"idx": 3990, "target": 0, "func": "int net_slirp_smb ( const char * exported_dir ) {\n struct in_addr vserver_addr = {\n . s_addr = 0 }\n ;\n if ( legacy_smb_export ) {\n fprintf ( stderr , \"-smb given twice\\n\" ) ;\n return - 1 ;\n }\n legacy_smb_export = exported_dir ;\n if ( ! QTAILQ_EMPTY ( & slirp_stacks ) ) {\n return slirp_smb ( QTAILQ_FIRST ( & slirp_stacks ) , exported_dir , vserver_addr ) ;\n }\n return 0 ;\n }"}
{"idx": 3991, "target": 0, "func": "int evdns_server_request_drop ( struct evdns_server_request * _req ) {\n struct server_request * req = TO_SERVER_REQUEST ( _req ) ;\n server_request_free ( req ) ;\n return 0 ;\n }"}
{"idx": 3992, "target": 0, "func": "static gboolean is_forward_circuit ( guint circuit_id , const iax_call_data * iax_call ) {\n guint i ;\n for ( i = 0 ;\n i < iax_call -> n_forward_circuit_ids ;\n i ++ ) {\n if ( circuit_id == iax_call -> forward_circuit_ids [ i ] ) return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 3993, "target": 0, "func": "static void * composite_memcpy ( tvbuff_t * tvb , void * _target , guint abs_offset , guint abs_length ) {\n struct tvb_composite * composite_tvb = ( struct tvb_composite * ) tvb ;\n guint8 * target = ( guint8 * ) _target ;\n guint i , num_members ;\n tvb_comp_t * composite ;\n tvbuff_t * member_tvb = NULL ;\n guint member_offset , member_length ;\n GSList * slist ;\n composite = & composite_tvb -> composite ;\n num_members = g_slist_length ( composite -> tvbs ) ;\n for ( i = 0 ;\n i < num_members ;\n i ++ ) {\n if ( abs_offset <= composite -> end_offsets [ i ] ) {\n slist = g_slist_nth ( composite -> tvbs , i ) ;\n member_tvb = ( tvbuff_t * ) slist -> data ;\n break ;\n }\n }\n if ( ! member_tvb ) {\n DISSECTOR_ASSERT ( abs_offset == tvb -> length && abs_length == 0 ) ;\n return target ;\n }\n member_offset = abs_offset - composite -> start_offsets [ i ] ;\n if ( tvb_bytes_exist ( member_tvb , member_offset , abs_length ) ) {\n DISSECTOR_ASSERT ( ! tvb -> real_data ) ;\n return tvb_memcpy ( member_tvb , target , member_offset , abs_length ) ;\n }\n else {\n member_length = tvb_captured_length_remaining ( member_tvb , member_offset ) ;\n DISSECTOR_ASSERT ( member_length > 0 ) ;\n tvb_memcpy ( member_tvb , target , member_offset , member_length ) ;\n abs_offset += member_length ;\n abs_length -= member_length ;\n if ( abs_length > 0 ) {\n composite_memcpy ( tvb , target + member_length , abs_offset , abs_length ) ;\n }\n return target ;\n }\n DISSECTOR_ASSERT_NOT_REACHED ( ) ;\n }"}
{"idx": 3994, "target": 0, "func": "gboolean proto_name_already_registered ( const gchar * name ) {\n gint key ;\n DISSECTOR_ASSERT_HINT ( name , \"No name present\" ) ;\n key = wrs_str_hash ( name ) ;\n if ( g_hash_table_lookup ( proto_names , & key ) != NULL ) return TRUE ;\n return FALSE ;\n }"}
{"idx": 3995, "target": 0, "func": "proto_item * proto_tree_add_item_ret_length ( proto_tree * tree , int hfindex , tvbuff_t * tvb , const gint start , gint length , const guint encoding , gint * lenretval ) {\n register header_field_info * hfinfo ;\n PROTO_REGISTRAR_GET_NTH ( hfindex , hfinfo ) ;\n return proto_tree_add_item_new_ret_length ( tree , hfinfo , tvb , start , length , encoding , lenretval ) ;\n }"}
{"idx": 3996, "target": 0, "func": "static int dissect_btgatt_microbit_accelerometer_period ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , void * data ) {\n btatt_data_t * att_data = ( btatt_data_t * ) data ;\n gint offset = 0 ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) return - 1 ;\n proto_tree_add_item ( tree , hf_gatt_microbit_accelerometer_period , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n return offset ;\n }"}
{"idx": 3997, "target": 0, "func": "static void add_converter ( struct archive_string_conv * sc , int ( * converter ) ( struct archive_string * , const void * , size_t , struct archive_string_conv * ) ) {\n if ( sc == NULL || sc -> nconverter >= 2 ) __archive_errx ( 1 , \"Programing error\" ) ;\n sc -> converter [ sc -> nconverter ++ ] = converter ;\n }"}
{"idx": 3998, "target": 0, "func": "static void ImportIndexQuantum ( const Image * image , QuantumInfo * quantum_info , const MagickSizeType number_pixels , const unsigned char * magick_restrict p , Quantum * magick_restrict q , ExceptionInfo * exception ) {\n MagickBooleanType range_exception ;\n register ssize_t x ;\n ssize_t bit ;\n unsigned int pixel ;\n if ( image -> storage_class != PseudoClass ) {\n ( void ) ThrowMagickException ( exception , GetMagickModule ( ) , ImageError , \"ColormappedImageRequired\" , \"`%s'\" , image -> filename ) ;\n return ;\n }\n range_exception = MagickFalse ;\n switch ( quantum_info -> depth ) {\n case 1 : {\n register unsigned char pixel ;\n for ( x = 0 ;\n x < ( ( ssize_t ) number_pixels - 7 ) ;\n x += 8 ) {\n for ( bit = 0 ;\n bit < 8 ;\n bit ++ ) {\n if ( quantum_info -> min_is_white == MagickFalse ) pixel = ( unsigned char ) ( ( ( * p ) & ( 1 << ( 7 - bit ) ) ) == 0 ? 0x00 : 0x01 ) ;\n else pixel = ( unsigned char ) ( ( ( * p ) & ( 1 << ( 7 - bit ) ) ) != 0 ? 0x00 : 0x01 ) ;\n SetPixelIndex ( image , PushColormapIndex ( image , pixel , & range_exception ) , q ) ;\n SetPixelViaPixelInfo ( image , image -> colormap + ( ssize_t ) GetPixelIndex ( image , q ) , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n p ++ ;\n }\n for ( bit = 0 ;\n bit < ( ssize_t ) ( number_pixels % 8 ) ;\n bit ++ ) {\n if ( quantum_info -> min_is_white == MagickFalse ) pixel = ( unsigned char ) ( ( ( * p ) & ( 1 << ( 7 - bit ) ) ) == 0 ? 0x00 : 0x01 ) ;\n else pixel = ( unsigned char ) ( ( ( * p ) & ( 1 << ( 7 - bit ) ) ) != 0 ? 0x00 : 0x01 ) ;\n SetPixelIndex ( image , PushColormapIndex ( image , pixel , & range_exception ) , q ) ;\n SetPixelViaPixelInfo ( image , image -> colormap + ( ssize_t ) GetPixelIndex ( image , q ) , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 4 : {\n register unsigned char pixel ;\n for ( x = 0 ;\n x < ( ( ssize_t ) number_pixels - 1 ) ;\n x += 2 ) {\n pixel = ( unsigned char ) ( ( * p >> 4 ) & 0xf ) ;\n SetPixelIndex ( image , PushColormapIndex ( image , pixel , & range_exception ) , q ) ;\n SetPixelViaPixelInfo ( image , image -> colormap + ( ssize_t ) GetPixelIndex ( image , q ) , q ) ;\n q += GetPixelChannels ( image ) ;\n pixel = ( unsigned char ) ( ( * p ) & 0xf ) ;\n SetPixelIndex ( image , PushColormapIndex ( image , pixel , & range_exception ) , q ) ;\n SetPixelViaPixelInfo ( image , image -> colormap + ( ssize_t ) GetPixelIndex ( image , q ) , q ) ;\n p ++ ;\n q += GetPixelChannels ( image ) ;\n }\n for ( bit = 0 ;\n bit < ( ssize_t ) ( number_pixels % 2 ) ;\n bit ++ ) {\n pixel = ( unsigned char ) ( ( * p ++ >> 4 ) & 0xf ) ;\n SetPixelIndex ( image , PushColormapIndex ( image , pixel , & range_exception ) , q ) ;\n SetPixelViaPixelInfo ( image , image -> colormap + ( ssize_t ) GetPixelIndex ( image , q ) , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 8 : {\n unsigned char pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelIndex ( image , PushColormapIndex ( image , pixel , & range_exception ) , q ) ;\n SetPixelViaPixelInfo ( image , image -> colormap + ( ssize_t ) GetPixelIndex ( image , q ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 16 : {\n unsigned short pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelIndex ( image , PushColormapIndex ( image , ClampToQuantum ( ( double ) QuantumRange * HalfToSinglePrecision ( pixel ) ) , & range_exception ) , q ) ;\n SetPixelViaPixelInfo ( image , image -> colormap + ( ssize_t ) GetPixelIndex ( image , q ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelIndex ( image , PushColormapIndex ( image , pixel , & range_exception ) , q ) ;\n SetPixelViaPixelInfo ( image , image -> colormap + ( ssize_t ) GetPixelIndex ( image , q ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 32 : {\n unsigned int pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n float pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelIndex ( image , PushColormapIndex ( image , ClampToQuantum ( pixel ) , & range_exception ) , q ) ;\n SetPixelViaPixelInfo ( image , image -> colormap + ( ssize_t ) GetPixelIndex ( image , q ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelIndex ( image , PushColormapIndex ( image , pixel , & range_exception ) , q ) ;\n SetPixelViaPixelInfo ( image , image -> colormap + ( ssize_t ) GetPixelIndex ( image , q ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 64 : {\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n double pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelIndex ( image , PushColormapIndex ( image , ClampToQuantum ( pixel ) , & range_exception ) , q ) ;\n SetPixelViaPixelInfo ( image , image -> colormap + ( ssize_t ) GetPixelIndex ( image , q ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n default : {\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelIndex ( image , PushColormapIndex ( image , pixel , & range_exception ) , q ) ;\n SetPixelViaPixelInfo ( image , image -> colormap + ( ssize_t ) GetPixelIndex ( image , q ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n if ( range_exception != MagickFalse ) ( void ) ThrowMagickException ( exception , GetMagickModule ( ) , CorruptImageError , \"InvalidColormapIndex\" , \"`%s'\" , image -> filename ) ;\n }"}
{"idx": 3999, "target": 0, "func": "static void decode_isf_indices_46b ( uint16_t * ind , float * isf_q ) {\n int i ;\n for ( i = 0 ;\n i < 9 ;\n i ++ ) isf_q [ i ] = dico1_isf [ ind [ 0 ] ] [ i ] * ( 1.0f / ( 1 << 15 ) ) ;\n for ( i = 0 ;\n i < 7 ;\n i ++ ) isf_q [ i + 9 ] = dico2_isf [ ind [ 1 ] ] [ i ] * ( 1.0f / ( 1 << 15 ) ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) isf_q [ i ] += dico21_isf [ ind [ 2 ] ] [ i ] * ( 1.0f / ( 1 << 15 ) ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) isf_q [ i + 3 ] += dico22_isf [ ind [ 3 ] ] [ i ] * ( 1.0f / ( 1 << 15 ) ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) isf_q [ i + 6 ] += dico23_isf [ ind [ 4 ] ] [ i ] * ( 1.0f / ( 1 << 15 ) ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) isf_q [ i + 9 ] += dico24_isf [ ind [ 5 ] ] [ i ] * ( 1.0f / ( 1 << 15 ) ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) isf_q [ i + 12 ] += dico25_isf [ ind [ 6 ] ] [ i ] * ( 1.0f / ( 1 << 15 ) ) ;\n }"}
{"idx": 4000, "target": 0, "func": "static int msmpeg4v12_decode_mb ( MpegEncContext * s , int16_t block [ 6 ] [ 64 ] ) {\n int cbp , code , i ;\n if ( s -> pict_type == AV_PICTURE_TYPE_P ) {\n if ( s -> use_skip_mb_code ) {\n if ( get_bits1 ( & s -> gb ) ) {\n s -> mb_intra = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) s -> block_last_index [ i ] = - 1 ;\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = 0 ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = 0 ;\n s -> mb_skipped = 1 ;\n return 0 ;\n }\n }\n if ( s -> msmpeg4_version == 2 ) code = get_vlc2 ( & s -> gb , v2_mb_type_vlc . table , V2_MB_TYPE_VLC_BITS , 1 ) ;\n else code = get_vlc2 ( & s -> gb , ff_h263_inter_MCBPC_vlc . table , INTER_MCBPC_VLC_BITS , 2 ) ;\n if ( code < 0 || code > 7 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"cbpc %d invalid at %d %d\\n\" , code , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n s -> mb_intra = code >> 2 ;\n cbp = code & 0x3 ;\n }\n else {\n s -> mb_intra = 1 ;\n if ( s -> msmpeg4_version == 2 ) cbp = get_vlc2 ( & s -> gb , v2_intra_cbpc_vlc . table , V2_INTRA_CBPC_VLC_BITS , 1 ) ;\n else cbp = get_vlc2 ( & s -> gb , ff_h263_intra_MCBPC_vlc . table , INTRA_MCBPC_VLC_BITS , 1 ) ;\n if ( cbp < 0 || cbp > 3 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"cbpc %d invalid at %d %d\\n\" , cbp , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n }\n if ( ! s -> mb_intra ) {\n int mx , my , cbpy ;\n cbpy = get_vlc2 ( & s -> gb , ff_h263_cbpy_vlc . table , CBPY_VLC_BITS , 1 ) ;\n if ( cbpy < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"cbpy %d invalid at %d %d\\n\" , cbp , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n cbp |= cbpy << 2 ;\n if ( s -> msmpeg4_version == 1 || ( cbp & 3 ) != 3 ) cbp ^= 0x3C ;\n ff_h263_pred_motion ( s , 0 , 0 , & mx , & my ) ;\n mx = msmpeg4v2_decode_motion ( s , mx , 1 ) ;\n my = msmpeg4v2_decode_motion ( s , my , 1 ) ;\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = mx ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = my ;\n }\n else {\n if ( s -> msmpeg4_version == 2 ) {\n s -> ac_pred = get_bits1 ( & s -> gb ) ;\n cbp |= get_vlc2 ( & s -> gb , ff_h263_cbpy_vlc . table , CBPY_VLC_BITS , 1 ) << 2 ;\n }\n else {\n s -> ac_pred = 0 ;\n cbp |= get_vlc2 ( & s -> gb , ff_h263_cbpy_vlc . table , CBPY_VLC_BITS , 1 ) << 2 ;\n if ( s -> pict_type == AV_PICTURE_TYPE_P ) cbp ^= 0x3C ;\n }\n }\n s -> dsp . clear_blocks ( s -> block [ 0 ] ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( ff_msmpeg4_decode_block ( s , block [ i ] , i , ( cbp >> ( 5 - i ) ) & 1 , NULL ) < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"\\nerror while decoding block: %d x %d (%d)\\n\" , s -> mb_x , s -> mb_y , i ) ;\n return - 1 ;\n }\n }\n return 0 ;\n }"}
{"idx": 4001, "target": 0, "func": "void check_comment_sanity ( int * e ) {\n if ( ! strcmp ( comment_author , \"\" ) ) error [ ( * e ) ++ ] . message = strdup ( \"Author name was not entered\" ) ;\n if ( ! strcmp ( comment_data , \"\" ) ) error [ ( * e ) ++ ] . message = strdup ( \"Comment data was not entered\" ) ;\n return ;\n }"}
{"idx": 4002, "target": 0, "func": "TSReturnCode TSHttpTxnConfigFloatSet ( TSHttpTxn txnp , TSOverridableConfigKey conf , TSMgmtFloat value ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * s = reinterpret_cast < HttpSM * > ( txnp ) ;\n OverridableDataType type ;\n s -> t_state . setup_per_txn_configs ( ) ;\n TSMgmtFloat * dest = static_cast < TSMgmtFloat * > ( _conf_to_memberp ( conf , s -> t_state . txn_conf , & type ) ) ;\n if ( type != OVERRIDABLE_TYPE_FLOAT ) {\n return TS_ERROR ;\n }\n if ( dest ) {\n * dest = value ;\n return TS_SUCCESS ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 4003, "target": 0, "func": "static inline void e1000e_write_rx_descr ( E1000ECore * core , uint8_t * desc , struct NetRxPkt * pkt , const E1000E_RSSInfo * rss_info , size_t ps_hdr_len , uint16_t ( * written ) [ MAX_PS_BUFFERS ] ) {\n if ( e1000e_rx_use_legacy_descriptor ( core ) ) {\n assert ( ps_hdr_len == 0 ) ;\n e1000e_write_lgcy_rx_descr ( core , desc , pkt , rss_info , ( * written ) [ 0 ] ) ;\n }\n else {\n if ( core -> mac [ RCTL ] & E1000_RCTL_DTYP_PS ) {\n e1000e_write_ps_rx_descr ( core , desc , pkt , rss_info , ps_hdr_len , written ) ;\n }\n else {\n assert ( ps_hdr_len == 0 ) ;\n e1000e_write_ext_rx_descr ( core , desc , pkt , rss_info , ( * written ) [ 0 ] ) ;\n }\n }\n }"}
{"idx": 4004, "target": 0, "func": "zend_object_iterator * pdo_stmt_iter_get ( zend_class_entry * ce , zval * object , int by_ref TSRMLS_DC ) {\n pdo_stmt_t * stmt = ( pdo_stmt_t * ) zend_object_store_get_object ( object TSRMLS_CC ) ;\n struct php_pdo_iterator * I ;\n if ( by_ref ) {\n zend_error ( E_ERROR , \"An iterator cannot be used with foreach by reference\" ) ;\n }\n I = ecalloc ( 1 , sizeof ( * I ) ) ;\n I -> iter . funcs = & pdo_stmt_iter_funcs ;\n I -> iter . data = I ;\n I -> stmt = stmt ;\n stmt -> refcount ++ ;\n MAKE_STD_ZVAL ( I -> fetch_ahead ) ;\n if ( ! do_fetch ( I -> stmt , TRUE , I -> fetch_ahead , PDO_FETCH_USE_DEFAULT , PDO_FETCH_ORI_NEXT , 0 , 0 TSRMLS_CC ) ) {\n PDO_HANDLE_STMT_ERR ( ) ;\n I -> key = ( ulong ) - 1 ;\n FREE_ZVAL ( I -> fetch_ahead ) ;\n I -> fetch_ahead = NULL ;\n }\n return & I -> iter ;\n }"}
{"idx": 4005, "target": 1, "func": "static ossl_inline type * lh_ ## type ## _delete ( LHASH_OF ( type ) * lh , const type * d ) {\n return ( type * ) OPENSSL_LH_delete ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline type * lh_ ## type ## _retrieve ( LHASH_OF ( type ) * lh , const type * d ) {\n return ( type * ) OPENSSL_LH_retrieve ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline int lh_ ## type ## _error ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_error ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _num_items ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_num_items ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _node_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _node_usage_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_usage_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING )"}
{"idx": 4006, "target": 0, "func": "static void acl_update_db ( const char * user , const char * host , const char * db , ulong privileges ) {\n safe_mutex_assert_owner ( & acl_cache -> lock ) ;\n for ( uint i = 0 ;\n i < acl_dbs . elements ;\n i ++ ) {\n ACL_DB * acl_db = dynamic_element ( & acl_dbs , i , ACL_DB * ) ;\n if ( ( ! acl_db -> user && ! user [ 0 ] ) || ( acl_db -> user && ! strcmp ( user , acl_db -> user ) ) ) {\n if ( ( ! acl_db -> host . hostname && ! host [ 0 ] ) || ( acl_db -> host . hostname && ! strcmp ( host , acl_db -> host . hostname ) ) ) {\n if ( ( ! acl_db -> db && ! db [ 0 ] ) || ( acl_db -> db && ! strcmp ( db , acl_db -> db ) ) ) {\n if ( privileges ) acl_db -> access = privileges ;\n else delete_dynamic_element ( & acl_dbs , i ) ;\n }\n }\n }\n }\n }"}
{"idx": 4007, "target": 0, "func": "int gs_pop_integer ( gs_main_instance * minst , long * result ) {\n i_ctx_t * i_ctx_p = minst -> i_ctx_p ;\n ref vref ;\n int code = pop_value ( i_ctx_p , & vref ) ;\n if ( code < 0 ) return code ;\n check_type_only ( vref , t_integer ) ;\n * result = vref . value . intval ;\n ref_stack_pop ( & o_stack , 1 ) ;\n return 0 ;\n }"}
{"idx": 4008, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( ClientHintsBrowserTest , ClientHintsLifetimeNotPersistedJavaScriptBlocked ) {\n ContentSettingsForOneType host_settings ;\n ui_test_utils : : NavigateToURL ( browser ( ) , without_accept_ch_without_lifetime_url ( ) ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> SetContentSettingDefaultScope ( accept_ch_with_lifetime_url ( ) , GURL ( ) , CONTENT_SETTINGS_TYPE_JAVASCRIPT , std : : string ( ) , CONTENT_SETTING_BLOCK ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , accept_ch_with_lifetime_url ( ) ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> GetSettingsForOneType ( CONTENT_SETTINGS_TYPE_CLIENT_HINTS , std : : string ( ) , & host_settings ) ;\n EXPECT_EQ ( 0u , host_settings . size ( ) ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> SetContentSettingDefaultScope ( accept_ch_with_lifetime_url ( ) , GURL ( ) , CONTENT_SETTINGS_TYPE_JAVASCRIPT , std : : string ( ) , CONTENT_SETTING_ALLOW ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , accept_ch_with_lifetime_url ( ) ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> GetSettingsForOneType ( CONTENT_SETTINGS_TYPE_CLIENT_HINTS , std : : string ( ) , & host_settings ) ;\n EXPECT_EQ ( 1u , host_settings . size ( ) ) ;\n }"}
{"idx": 4009, "target": 0, "func": "static Asn1Generic * DecodeAsn1DerUTF8String ( const unsigned char * buffer , uint32_t max_size , uint8_t depth , uint32_t * errcode ) {\n Asn1Generic * a = DecodeAsn1DerOctetString ( buffer , max_size , depth , errcode ) ;\n if ( a != NULL ) a -> type = ASN1_UTF8STRING ;\n return a ;\n }"}
{"idx": 4010, "target": 1, "func": "int _evsignal_set_handler ( struct event_base * base , int evsignal , void ( * handler ) ( int ) ) {\n # ifdef HAVE_SIGACTION struct sigaction sa ;\n # else ev_sighandler_t sh ;\n # endif struct evsignal_info * sig = & base -> sig ;\n void * p ;\n if ( evsignal >= sig -> sh_old_max ) {\n int new_max = evsignal + 1 ;\n event_debug ( ( \"%s: evsignal (%d) >= sh_old_max (%d), resizing\" , __func__ , evsignal , sig -> sh_old_max ) ) ;\n p = realloc ( sig -> sh_old , new_max * sizeof ( * sig -> sh_old ) ) ;\n if ( p == NULL ) {\n event_warn ( \"realloc\" ) ;\n return ( - 1 ) ;\n }\n memset ( ( char * ) p + sig -> sh_old_max * sizeof ( * sig -> sh_old ) , 0 , ( new_max - sig -> sh_old_max ) * sizeof ( * sig -> sh_old ) ) ;\n sig -> sh_old_max = new_max ;\n sig -> sh_old = p ;\n }\n sig -> sh_old [ evsignal ] = malloc ( sizeof * sig -> sh_old [ evsignal ] ) ;\n if ( sig -> sh_old [ evsignal ] == NULL ) {\n event_warn ( \"malloc\" ) ;\n return ( - 1 ) ;\n }\n # ifdef HAVE_SIGACTION memset ( & sa , 0 , sizeof ( sa ) ) ;\n sa . sa_handler = handler ;\n sa . sa_flags |= SA_RESTART ;\n sigfillset ( & sa . sa_mask ) ;\n if ( sigaction ( evsignal , & sa , sig -> sh_old [ evsignal ] ) == - 1 ) {\n event_warn ( \"sigaction\" ) ;\n free ( sig -> sh_old [ evsignal ] ) ;\n return ( - 1 ) ;\n }\n # else if ( ( sh = signal ( evsignal , handler ) ) == SIG_ERR ) {\n event_warn ( \"signal\" ) ;\n free ( sig -> sh_old [ evsignal ] ) ;\n return ( - 1 ) ;\n }\n * sig -> sh_old [ evsignal ] = sh ;\n # endif return ( 0 ) ;\n }"}
{"idx": 4011, "target": 0, "func": "static void generate_token_text ( void ) {\n u_short lowest_id ;\n u_short highest_id ;\n u_short id_count ;\n u_short id ;\n u_short i ;\n qsort ( ntp_keywords , COUNTOF ( ntp_keywords ) , sizeof ( ntp_keywords [ 0 ] ) , compare_key_tok_id ) ;\n lowest_id = ntp_keywords [ 0 ] . token ;\n highest_id = ntp_keywords [ COUNTOF ( ntp_keywords ) - 1 ] . token ;\n id_count = highest_id - lowest_id + 1 ;\n printf ( \"#define LOWEST_KEYWORD_ID %d\\n\\n\" , lowest_id ) ;\n printf ( \"const char * const keyword_text[%d] = {\n\" , id_count ) ;\n id = lowest_id ;\n i = 0 ;\n while ( i < COUNTOF ( ntp_keywords ) ) {\n while ( id < ntp_keywords [ i ] . token ) {\n printf ( \",\\n\\t/* %-5d %5d %20s */\\tNULL\" , id - lowest_id , id , symbname ( id ) ) ;\n id ++ ;\n }\n if ( i > 0 ) printf ( \",\" ) ;\n printf ( \"\\n\\t/* %-5d %5d %20s */\\t\\\"%s\\\"\" , id - lowest_id , id , symbname ( id ) , ntp_keywords [ i ] . key ) ;\n i ++ ;\n id ++ ;\n }\n printf ( \"\\n}\n;\n\\n\\n\" ) ;\n }"}
{"idx": 4012, "target": 0, "func": "static guint32 pad_offset ( struct tcpinfo * tcpinfo , guint32 fpdu_total_len , guint8 pad_len ) {\n if ( ( tcpinfo -> nxtseq - MPA_CRC_LEN - MPA_MARKER_LEN ) % MPA_MARKER_INTERVAL == 0 ) {\n return fpdu_total_len - MPA_CRC_LEN - MPA_MARKER_LEN - pad_len ;\n }\n else {\n return fpdu_total_len - MPA_CRC_LEN - pad_len ;\n }\n }"}
{"idx": 4013, "target": 0, "func": "void vp9_init_dsmotion_compensation ( search_site_config * cfg , int stride ) {\n int len , ss_count = 1 ;\n cfg -> ss [ 0 ] . mv . col = cfg -> ss [ 0 ] . mv . row = 0 ;\n cfg -> ss [ 0 ] . offset = 0 ;\n for ( len = MAX_FIRST_STEP ;\n len > 0 ;\n len /= 2 ) {\n const MV ss_mvs [ ] = {\n {\n - len , 0 }\n , {\n len , 0 }\n , {\n 0 , - len }\n , {\n 0 , len }\n }\n ;\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) {\n search_site * const ss = & cfg -> ss [ ss_count ++ ] ;\n ss -> mv = ss_mvs [ i ] ;\n ss -> offset = ss -> mv . row * stride + ss -> mv . col ;\n }\n }\n cfg -> ss_count = ss_count ;\n cfg -> searches_per_step = 4 ;\n }"}
{"idx": 4014, "target": 0, "func": "static TX_SIZE read_selected_tx_size ( VP9_COMMON * cm , MACROBLOCKD * xd , TX_SIZE max_tx_size , vp9_reader * r ) {\n const int ctx = vp9_get_tx_size_context ( xd ) ;\n const vp9_prob * tx_probs = get_tx_probs ( max_tx_size , ctx , & cm -> fc . tx_probs ) ;\n int tx_size = vp9_read ( r , tx_probs [ 0 ] ) ;\n if ( tx_size != TX_4X4 && max_tx_size >= TX_16X16 ) {\n tx_size += vp9_read ( r , tx_probs [ 1 ] ) ;\n if ( tx_size != TX_8X8 && max_tx_size >= TX_32X32 ) tx_size += vp9_read ( r , tx_probs [ 2 ] ) ;\n }\n if ( ! cm -> frame_parallel_decoding_mode ) ++ get_tx_counts ( max_tx_size , ctx , & cm -> counts . tx ) [ tx_size ] ;\n return ( TX_SIZE ) tx_size ;\n }"}
{"idx": 4015, "target": 1, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED )"}
{"idx": 4016, "target": 1, "func": "static int libspeex_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n LibSpeexContext * s = avctx -> priv_data ;\n AVFrame * frame = data ;\n int16_t * output ;\n int ret , consumed = 0 ;\n frame -> nb_samples = s -> frame_size ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n output = ( int16_t * ) frame -> data [ 0 ] ;\n if ( speex_bits_remaining ( & s -> bits ) < 5 || speex_bits_peek_unsigned ( & s -> bits , 5 ) == 0x1F ) {\n if ( ! buf || ! buf_size ) {\n * got_frame_ptr = 0 ;\n return buf_size ;\n }\n speex_bits_read_from ( & s -> bits , buf , buf_size ) ;\n consumed = buf_size ;\n }\n ret = speex_decode_int ( s -> dec_state , & s -> bits , output ) ;\n if ( ret <= - 2 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error decoding Speex frame.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( avctx -> channels == 2 ) speex_decode_stereo_int ( output , s -> frame_size , & s -> stereo ) ;\n * got_frame_ptr = 1 ;\n return consumed ;\n }"}
{"idx": 4017, "target": 0, "func": "void proto_registrar_dump_fields ( void ) {\n header_field_info * hfinfo , * parent_hfinfo ;\n int i , len ;\n const char * enum_name ;\n const char * base_name ;\n const char * blurb ;\n char width [ 5 ] ;\n len = gpa_hfinfo . len ;\n for ( i = 0 ;\n i < len ;\n i ++ ) {\n if ( gpa_hfinfo . hfi [ i ] == NULL ) continue ;\n PROTO_REGISTRAR_GET_NTH ( i , hfinfo ) ;\n if ( hfinfo -> id == hf_text_only ) continue ;\n if ( proto_registrar_is_protocol ( i ) ) {\n ws_debug_printf ( \"P\\t%s\\t%s\\n\" , hfinfo -> name , hfinfo -> abbrev ) ;\n }\n else {\n if ( hfinfo -> same_name_prev_id != - 1 ) continue ;\n PROTO_REGISTRAR_GET_NTH ( hfinfo -> parent , parent_hfinfo ) ;\n enum_name = ftype_name ( hfinfo -> type ) ;\n base_name = \"\" ;\n if ( hfinfo -> type == FT_UINT8 || hfinfo -> type == FT_UINT16 || hfinfo -> type == FT_UINT24 || hfinfo -> type == FT_UINT32 || hfinfo -> type == FT_UINT40 || hfinfo -> type == FT_UINT48 || hfinfo -> type == FT_UINT56 || hfinfo -> type == FT_UINT64 || hfinfo -> type == FT_INT8 || hfinfo -> type == FT_INT16 || hfinfo -> type == FT_INT24 || hfinfo -> type == FT_INT32 || hfinfo -> type == FT_INT40 || hfinfo -> type == FT_INT48 || hfinfo -> type == FT_INT56 || hfinfo -> type == FT_INT64 ) {\n switch ( FIELD_DISPLAY ( hfinfo -> display ) ) {\n case BASE_NONE : case BASE_DEC : case BASE_HEX : case BASE_OCT : case BASE_DEC_HEX : case BASE_HEX_DEC : case BASE_CUSTOM : case BASE_PT_UDP : case BASE_PT_TCP : case BASE_PT_DCCP : case BASE_PT_SCTP : base_name = val_to_str_const ( FIELD_DISPLAY ( hfinfo -> display ) , hf_display , \"????\" ) ;\n break ;\n default : base_name = \"????\" ;\n break ;\n }\n }\n else if ( hfinfo -> type == FT_BOOLEAN ) {\n g_snprintf ( width , sizeof ( width ) , \"%d\" , hfinfo -> display ) ;\n base_name = width ;\n }\n blurb = hfinfo -> blurb ;\n if ( blurb == NULL ) blurb = \"\" ;\n else if ( strlen ( blurb ) == 0 ) blurb = \"\\\"\\\"\" ;\n ws_debug_printf ( \"F\\t%s\\t%s\\t%s\\t%s\\t%s\\t0x%\" G_GINT64_MODIFIER \"x\\t%s\\n\" , hfinfo -> name , hfinfo -> abbrev , enum_name , parent_hfinfo -> abbrev , base_name , hfinfo -> bitmask , blurb ) ;\n }\n }\n }"}
{"idx": 4018, "target": 0, "func": "static void fast_bgr_to_cmyk ( fz_context * ctx , fz_pixmap * dst , fz_pixmap * src , fz_colorspace * prf , const fz_default_colorspaces * default_cs , const fz_color_params * color_params , int copy_spots ) {\n unsigned char * s = src -> samples ;\n unsigned char * d = dst -> samples ;\n size_t w = src -> w ;\n int h = src -> h ;\n int sn = src -> n ;\n int ss = src -> s ;\n int sa = src -> alpha ;\n int dn = dst -> n ;\n int ds = dst -> s ;\n int da = dst -> alpha ;\n ptrdiff_t d_line_inc = dst -> stride - w * dn ;\n ptrdiff_t s_line_inc = src -> stride - w * sn ;\n if ( ( copy_spots && ss != ds ) || ( ! da && sa ) ) {\n assert ( \"This should never happen\" == NULL ) ;\n fz_throw ( ctx , FZ_ERROR_GENERIC , \"Cannot convert between incompatible pixmaps\" ) ;\n }\n if ( ( int ) w < 0 || h < 0 ) return ;\n if ( d_line_inc == 0 && s_line_inc == 0 ) {\n w *= h ;\n h = 1 ;\n }\n if ( ss == 0 && ds == 0 ) {\n if ( da ) {\n if ( sa ) {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n unsigned char c = s [ 2 ] ;\n unsigned char m = s [ 1 ] ;\n unsigned char y = s [ 0 ] ;\n unsigned char k = ( unsigned char ) fz_mini ( c , fz_mini ( m , y ) ) ;\n d [ 0 ] = c - k ;\n d [ 1 ] = m - k ;\n d [ 2 ] = y - k ;\n d [ 3 ] = k ;\n d [ 4 ] = s [ 3 ] ;\n s += 4 ;\n d += 5 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n else {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n unsigned char c = s [ 2 ] ;\n unsigned char m = s [ 1 ] ;\n unsigned char y = s [ 0 ] ;\n unsigned char k = ( unsigned char ) fz_mini ( c , fz_mini ( m , y ) ) ;\n d [ 0 ] = c - k ;\n d [ 1 ] = m - k ;\n d [ 2 ] = y - k ;\n d [ 3 ] = k ;\n d [ 4 ] = 255 ;\n s += 3 ;\n d += 5 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n }\n else {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n unsigned char c = s [ 2 ] ;\n unsigned char m = s [ 1 ] ;\n unsigned char y = s [ 0 ] ;\n unsigned char k = ( unsigned char ) fz_mini ( c , fz_mini ( m , y ) ) ;\n d [ 0 ] = c - k ;\n d [ 1 ] = m - k ;\n d [ 2 ] = y - k ;\n d [ 3 ] = k ;\n s += 3 ;\n d += 4 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n }\n else if ( copy_spots ) {\n while ( h -- ) {\n int i ;\n size_t ww = w ;\n while ( ww -- ) {\n unsigned char c = s [ 2 ] ;\n unsigned char m = s [ 1 ] ;\n unsigned char y = s [ 0 ] ;\n unsigned char k = ( unsigned char ) fz_mini ( c , fz_mini ( m , y ) ) ;\n d [ 0 ] = c - k ;\n d [ 1 ] = m - k ;\n d [ 2 ] = y - k ;\n d [ 3 ] = k ;\n s += 3 ;\n d += 4 ;\n for ( i = ss ;\n i > 0 ;\n i -- ) * d ++ = * s ++ ;\n if ( da ) * d ++ = sa ? * s ++ : 255 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n else {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n unsigned char c = s [ 2 ] ;\n unsigned char m = s [ 1 ] ;\n unsigned char y = s [ 0 ] ;\n unsigned char k = ( unsigned char ) ( 255 - fz_maxi ( c , fz_maxi ( m , y ) ) ) ;\n d [ 0 ] = c + k ;\n d [ 1 ] = m + k ;\n d [ 2 ] = y + k ;\n d [ 3 ] = 255 - k ;\n s += sn ;\n d += dn ;\n if ( da ) d [ - 1 ] = sa ? s [ - 1 ] : 255 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n }"}
{"idx": 4019, "target": 0, "func": "static void encode_parse_params ( VC2EncContext * s ) {\n put_vc2_ue_uint ( & s -> pb , s -> ver . major ) ;\n put_vc2_ue_uint ( & s -> pb , s -> ver . minor ) ;\n put_vc2_ue_uint ( & s -> pb , s -> profile ) ;\n put_vc2_ue_uint ( & s -> pb , s -> level ) ;\n }"}
{"idx": 4020, "target": 0, "func": "static ossl_inline int sk_ ## t1 ## _num ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_num ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _value ( const STACK_OF ( t1 ) * sk , int idx ) {\n return ( t2 * ) OPENSSL_sk_value ( ( const OPENSSL_STACK * ) sk , idx ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new ( sk_ ## t1 ## _compfunc compare ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new ( ( OPENSSL_sk_compfunc ) compare ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_null ( void ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_null ( ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_reserve ( sk_ ## t1 ## _compfunc compare , int n ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_reserve ( ( OPENSSL_sk_compfunc ) compare , n ) ;\n }\n static ossl_inline int sk_ ## t1 ## _reserve ( STACK_OF ( t1 ) * sk , int n ) {\n return OPENSSL_sk_reserve ( ( OPENSSL_STACK * ) sk , n ) ;\n }\n static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 4021, "target": 0, "func": "static struct cgroup_mount_point * lxc_cgroup_find_mount_point ( struct cgroup_hierarchy * hierarchy , const char * group , bool should_be_writable ) {\n struct cgroup_mount_point * * mps ;\n struct cgroup_mount_point * current_result = NULL ;\n ssize_t quality = - 1 ;\n if ( hierarchy -> rw_absolute_mount_point ) return hierarchy -> rw_absolute_mount_point ;\n if ( ! should_be_writable && hierarchy -> ro_absolute_mount_point ) return hierarchy -> ro_absolute_mount_point ;\n for ( mps = hierarchy -> all_mount_points ;\n mps && * mps ;\n mps ++ ) {\n struct cgroup_mount_point * mp = * mps ;\n size_t prefix_len = mp -> mount_prefix ? strlen ( mp -> mount_prefix ) : 0 ;\n if ( prefix_len == 1 && mp -> mount_prefix [ 0 ] == '/' ) prefix_len = 0 ;\n if ( should_be_writable && mp -> read_only ) continue ;\n if ( ! prefix_len || ( strncmp ( group , mp -> mount_prefix , prefix_len ) == 0 && ( group [ prefix_len ] == '\\0' || group [ prefix_len ] == '/' ) ) ) {\n if ( quality == - 1 || prefix_len < quality ) {\n current_result = mp ;\n quality = prefix_len ;\n }\n }\n }\n if ( ! current_result ) errno = ENOENT ;\n return current_result ;\n }"}
{"idx": 4022, "target": 0, "func": "static int asf_write_markers ( AVFormatContext * s ) {\n ASFContext * asf = s -> priv_data ;\n AVIOContext * pb = s -> pb ;\n int i ;\n AVRational scale = {\n 1 , 10000000 }\n ;\n int64_t hpos = put_header ( pb , & ff_asf_marker_header ) ;\n ff_put_guid ( pb , & ff_asf_reserved_4 ) ;\n avio_wl32 ( pb , s -> nb_chapters ) ;\n avio_wl16 ( pb , 0 ) ;\n avio_wl16 ( pb , 0 ) ;\n for ( i = 0 ;\n i < s -> nb_chapters ;\n i ++ ) {\n AVChapter * c = s -> chapters [ i ] ;\n AVDictionaryEntry * t = av_dict_get ( c -> metadata , \"title\" , NULL , 0 ) ;\n int64_t pres_time = av_rescale_q ( c -> start , c -> time_base , scale ) ;\n uint64_t offset ;\n int32_t send_time = get_send_time ( asf , pres_time , & offset ) ;\n int len = 0 ;\n uint8_t * buf ;\n AVIOContext * dyn_buf ;\n if ( t ) {\n if ( avio_open_dyn_buf ( & dyn_buf ) < 0 ) return AVERROR ( ENOMEM ) ;\n avio_put_str16le ( dyn_buf , t -> value ) ;\n len = avio_close_dyn_buf ( dyn_buf , & buf ) ;\n }\n avio_wl64 ( pb , offset ) ;\n avio_wl64 ( pb , pres_time + PREROLL_TIME * 10000 ) ;\n avio_wl16 ( pb , 12 + len ) ;\n avio_wl32 ( pb , send_time ) ;\n avio_wl32 ( pb , 0 ) ;\n avio_wl32 ( pb , len / 2 ) ;\n if ( t ) {\n avio_write ( pb , buf , len ) ;\n av_freep ( & buf ) ;\n }\n }\n end_header ( pb , hpos ) ;\n return 0 ;\n }"}
{"idx": 4023, "target": 0, "func": "static int capture_android_bluetooth_btsnoop_net ( char * interface , char * fifo , const char * adb_server_ip , unsigned short * adb_server_tcp_port ) {\n struct extcap_dumper extcap_dumper ;\n static char packet [ PACKET_LENGTH ] ;\n gssize length ;\n gssize used_buffer_length = 0 ;\n socket_handle_t sock ;\n const char * adb_transport = \"0012\" \"host:transport-any\" ;\n const char * adb_transport_serial_templace = \"%04x\" \"host:transport:%s\" ;\n const char * adb_tcp_btsnoop_net = \"0008\" \"tcp:8872\" ;\n int result ;\n char * serial_number = NULL ;\n size_t serial_number_length ;\n uint64_t ts ;\n static const uint64_t BTSNOOP_TIMESTAMP_BASE = G_GUINT64_CONSTANT ( 0x00dcddb30f2f8000 ) ;\n uint32_t * reported_length ;\n uint32_t * captured_length ;\n uint32_t * flags ;\n uint64_t * timestamp ;\n char * payload = packet + sizeof ( own_pcap_bluetooth_h4_header ) + 24 ;\n own_pcap_bluetooth_h4_header * h4_header ;\n SET_DATA ( reported_length , value_u32 , packet + sizeof ( own_pcap_bluetooth_h4_header ) + 0 ) ;\n SET_DATA ( captured_length , value_u32 , packet + sizeof ( own_pcap_bluetooth_h4_header ) + 4 ) ;\n SET_DATA ( flags , value_u32 , packet + sizeof ( own_pcap_bluetooth_h4_header ) + 8 ) ;\n SET_DATA ( timestamp , value_u64 , packet + sizeof ( own_pcap_bluetooth_h4_header ) + 16 ) ;\n SET_DATA ( h4_header , value_own_pcap_bluetooth_h4_header , payload - sizeof ( own_pcap_bluetooth_h4_header ) ) ;\n extcap_dumper = extcap_dumper_open ( fifo , EXTCAP_ENCAP_BLUETOOTH_H4_WITH_PHDR ) ;\n sock = adb_connect ( adb_server_ip , adb_server_tcp_port ) ;\n if ( sock == INVALID_SOCKET ) return EXIT_CODE_INVALID_SOCKET_7 ;\n if ( is_specified_interface ( interface , INTERFACE_ANDROID_BLUETOOTH_BTSNOOP_NET ) && strlen ( interface ) > strlen ( INTERFACE_ANDROID_BLUETOOTH_BTSNOOP_NET ) + 1 ) {\n serial_number = interface + strlen ( INTERFACE_ANDROID_BLUETOOTH_BTSNOOP_NET ) + 1 ;\n serial_number_length = strlen ( serial_number ) ;\n }\n if ( ! serial_number ) {\n result = adb_send ( sock , adb_transport ) ;\n if ( result ) {\n errmsg_print ( \"ERROR: Error while setting adb transport for <%s>\" , adb_transport ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n }\n else {\n result = g_snprintf ( ( char * ) packet , PACKET_LENGTH , adb_transport_serial_templace , 15 + serial_number_length , serial_number ) ;\n if ( result <= 0 || result > PACKET_LENGTH ) {\n errmsg_print ( \"ERROR: Error while completing adb packet\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_BAD_SIZE_OF_ASSEMBLED_ADB_PACKET_15 ;\n }\n result = adb_send ( sock , packet ) ;\n if ( result ) {\n errmsg_print ( \"ERROR: Error while setting adb transport for <%s>\" , packet ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n }\n result = adb_send ( sock , adb_tcp_btsnoop_net ) ;\n if ( result ) {\n errmsg_print ( \"ERROR: Error while sending command <%s>\" , adb_tcp_btsnoop_net ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_ERROR_WHILE_SENDING_ADB_PACKET_2 ;\n }\n while ( used_buffer_length < 16 ) {\n length = recv ( sock , packet + used_buffer_length , ( int ) ( PACKET_LENGTH - used_buffer_length ) , 0 ) ;\n if ( length <= 0 ) {\n errmsg_print ( \"ERROR: Broken socket connection.\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n used_buffer_length += length ;\n }\n if ( used_buffer_length > 16 ) memmove ( packet , packet + 16 , used_buffer_length - 16 ) ;\n used_buffer_length = 0 ;\n while ( endless_loop ) {\n errno = 0 ;\n length = recv ( sock , packet + used_buffer_length + sizeof ( own_pcap_bluetooth_h4_header ) , ( int ) ( PACKET_LENGTH - sizeof ( own_pcap_bluetooth_h4_header ) - used_buffer_length ) , 0 ) ;\n if ( errno == EAGAIN # if EWOULDBLOCK != EAGAIN || errno == EWOULDBLOCK # endif ) {\n continue ;\n }\n else if ( errno != 0 ) {\n errmsg_print ( \"ERROR capture: %s\" , strerror ( errno ) ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n if ( length <= 0 ) {\n errmsg_print ( \"ERROR: Broken socket connection.\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n used_buffer_length += length ;\n while ( used_buffer_length >= 24 && used_buffer_length >= ( int ) ( 24 + GINT32_FROM_BE ( * captured_length ) ) ) {\n gint32 direction ;\n ts = GINT64_FROM_BE ( * timestamp ) ;\n ts -= BTSNOOP_TIMESTAMP_BASE ;\n direction = GINT32_FROM_BE ( * flags ) & 0x01 ;\n h4_header -> direction = GINT32_TO_BE ( direction ) ;\n endless_loop = extcap_dumper_dump ( extcap_dumper , payload - sizeof ( own_pcap_bluetooth_h4_header ) , GINT32_FROM_BE ( * captured_length ) + sizeof ( own_pcap_bluetooth_h4_header ) , GINT32_FROM_BE ( * reported_length ) + sizeof ( own_pcap_bluetooth_h4_header ) , ( uint32_t ) ( ts / 1000000 ) , ( ( uint32_t ) ( ts % 1000000 ) ) * 1000 ) ;\n used_buffer_length -= 24 + GINT32_FROM_BE ( * captured_length ) ;\n if ( used_buffer_length < 0 ) {\n errmsg_print ( \"ERROR: Internal error: Negative used buffer length.\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n if ( used_buffer_length > 0 ) memmove ( packet + sizeof ( own_pcap_bluetooth_h4_header ) , payload + GINT32_FROM_BE ( * captured_length ) , used_buffer_length ) ;\n }\n }\n closesocket ( sock ) ;\n return EXIT_CODE_SUCCESS ;\n }"}
{"idx": 4024, "target": 1, "func": "VP9_COMP * vp9_create_compressor ( VP9EncoderConfig * oxcf ) {\n unsigned int i , j ;\n VP9_COMP * const cpi = vpx_memalign ( 32 , sizeof ( VP9_COMP ) ) ;\n VP9_COMMON * const cm = cpi != NULL ? & cpi -> common : NULL ;\n if ( ! cm ) return NULL ;\n vp9_zero ( * cpi ) ;\n if ( setjmp ( cm -> error . jmp ) ) {\n cm -> error . setjmp = 0 ;\n vp9_remove_compressor ( cpi ) ;\n return 0 ;\n }\n cm -> error . setjmp = 1 ;\n cpi -> use_svc = 0 ;\n init_config ( cpi , oxcf ) ;\n vp9_rc_init ( & cpi -> oxcf , oxcf -> pass , & cpi -> rc ) ;\n cm -> current_video_frame = 0 ;\n cpi -> skippable_frame = 0 ;\n CHECK_MEM_ERROR ( cm , cpi -> segmentation_map , vpx_calloc ( cm -> mi_rows * cm -> mi_cols , 1 ) ) ;\n CHECK_MEM_ERROR ( cm , cpi -> complexity_map , vpx_calloc ( cm -> mi_rows * cm -> mi_cols , 1 ) ) ;\n CHECK_MEM_ERROR ( cm , cpi -> cyclic_refresh , vp9_cyclic_refresh_alloc ( cm -> mi_rows , cm -> mi_cols ) ) ;\n CHECK_MEM_ERROR ( cm , cpi -> coding_context . last_frame_seg_map_copy , vpx_calloc ( cm -> mi_rows * cm -> mi_cols , 1 ) ) ;\n CHECK_MEM_ERROR ( cm , cpi -> nmvcosts [ 0 ] , vpx_calloc ( MV_VALS , sizeof ( * cpi -> nmvcosts [ 0 ] ) ) ) ;\n CHECK_MEM_ERROR ( cm , cpi -> nmvcosts [ 1 ] , vpx_calloc ( MV_VALS , sizeof ( * cpi -> nmvcosts [ 1 ] ) ) ) ;\n CHECK_MEM_ERROR ( cm , cpi -> nmvcosts_hp [ 0 ] , vpx_calloc ( MV_VALS , sizeof ( * cpi -> nmvcosts_hp [ 0 ] ) ) ) ;\n CHECK_MEM_ERROR ( cm , cpi -> nmvcosts_hp [ 1 ] , vpx_calloc ( MV_VALS , sizeof ( * cpi -> nmvcosts_hp [ 1 ] ) ) ) ;\n CHECK_MEM_ERROR ( cm , cpi -> nmvsadcosts [ 0 ] , vpx_calloc ( MV_VALS , sizeof ( * cpi -> nmvsadcosts [ 0 ] ) ) ) ;\n CHECK_MEM_ERROR ( cm , cpi -> nmvsadcosts [ 1 ] , vpx_calloc ( MV_VALS , sizeof ( * cpi -> nmvsadcosts [ 1 ] ) ) ) ;\n CHECK_MEM_ERROR ( cm , cpi -> nmvsadcosts_hp [ 0 ] , vpx_calloc ( MV_VALS , sizeof ( * cpi -> nmvsadcosts_hp [ 0 ] ) ) ) ;\n CHECK_MEM_ERROR ( cm , cpi -> nmvsadcosts_hp [ 1 ] , vpx_calloc ( MV_VALS , sizeof ( * cpi -> nmvsadcosts_hp [ 1 ] ) ) ) ;\n for ( i = 0 ;\n i < ( sizeof ( cpi -> mbgraph_stats ) / sizeof ( cpi -> mbgraph_stats [ 0 ] ) ) ;\n i ++ ) {\n CHECK_MEM_ERROR ( cm , cpi -> mbgraph_stats [ i ] . mb_stats , vpx_calloc ( cm -> MBs * sizeof ( * cpi -> mbgraph_stats [ i ] . mb_stats ) , 1 ) ) ;\n }\n # if CONFIG_FP_MB_STATS cpi -> use_fp_mb_stats = 0 ;\n if ( cpi -> use_fp_mb_stats ) {\n CHECK_MEM_ERROR ( cm , cpi -> twopass . frame_mb_stats_buf , vpx_calloc ( cm -> MBs * sizeof ( uint8_t ) , 1 ) ) ;\n }\n else {\n cpi -> twopass . frame_mb_stats_buf = NULL ;\n }\n # endif cpi -> refresh_alt_ref_frame = 0 ;\n cpi -> multi_arf_last_grp_enabled = 0 ;\n if ( oxcf -> pass == 2 ) {\n if ( cpi -> use_svc ) {\n cpi -> multi_arf_allowed = 0 ;\n cpi -> multi_arf_enabled = 0 ;\n }\n else {\n cpi -> multi_arf_allowed = 0 ;\n cpi -> multi_arf_enabled = 0 ;\n }\n }\n else {\n cpi -> multi_arf_allowed = 0 ;\n cpi -> multi_arf_enabled = 0 ;\n }\n cpi -> b_calculate_psnr = CONFIG_INTERNAL_STATS ;\n # if CONFIG_INTERNAL_STATS cpi -> b_calculate_ssimg = 0 ;\n cpi -> count = 0 ;\n cpi -> bytes = 0 ;\n if ( cpi -> b_calculate_psnr ) {\n cpi -> total_y = 0.0 ;\n cpi -> total_u = 0.0 ;\n cpi -> total_v = 0.0 ;\n cpi -> total = 0.0 ;\n cpi -> total_sq_error = 0 ;\n cpi -> total_samples = 0 ;\n cpi -> totalp_y = 0.0 ;\n cpi -> totalp_u = 0.0 ;\n cpi -> totalp_v = 0.0 ;\n cpi -> totalp = 0.0 ;\n cpi -> totalp_sq_error = 0 ;\n cpi -> totalp_samples = 0 ;\n cpi -> tot_recode_hits = 0 ;\n cpi -> summed_quality = 0 ;\n cpi -> summed_weights = 0 ;\n cpi -> summedp_quality = 0 ;\n cpi -> summedp_weights = 0 ;\n }\n if ( cpi -> b_calculate_ssimg ) {\n cpi -> total_ssimg_y = 0 ;\n cpi -> total_ssimg_u = 0 ;\n cpi -> total_ssimg_v = 0 ;\n cpi -> total_ssimg_all = 0 ;\n }\n # endif cpi -> first_time_stamp_ever = INT64_MAX ;\n cal_nmvjointsadcost ( cpi -> mb . nmvjointsadcost ) ;\n cpi -> mb . nmvcost [ 0 ] = & cpi -> nmvcosts [ 0 ] [ MV_MAX ] ;\n cpi -> mb . nmvcost [ 1 ] = & cpi -> nmvcosts [ 1 ] [ MV_MAX ] ;\n cpi -> mb . nmvsadcost [ 0 ] = & cpi -> nmvsadcosts [ 0 ] [ MV_MAX ] ;\n cpi -> mb . nmvsadcost [ 1 ] = & cpi -> nmvsadcosts [ 1 ] [ MV_MAX ] ;\n cal_nmvsadcosts ( cpi -> mb . nmvsadcost ) ;\n cpi -> mb . nmvcost_hp [ 0 ] = & cpi -> nmvcosts_hp [ 0 ] [ MV_MAX ] ;\n cpi -> mb . nmvcost_hp [ 1 ] = & cpi -> nmvcosts_hp [ 1 ] [ MV_MAX ] ;\n cpi -> mb . nmvsadcost_hp [ 0 ] = & cpi -> nmvsadcosts_hp [ 0 ] [ MV_MAX ] ;\n cpi -> mb . nmvsadcost_hp [ 1 ] = & cpi -> nmvsadcosts_hp [ 1 ] [ MV_MAX ] ;\n cal_nmvsadcosts_hp ( cpi -> mb . nmvsadcost_hp ) ;\n # if CONFIG_VP9_TEMPORAL_DENOISING # ifdef OUTPUT_YUV_DENOISED yuv_denoised_file = fopen ( \"denoised.yuv\" , \"ab\" ) ;\n # endif # endif # ifdef OUTPUT_YUV_REC yuv_rec_file = fopen ( \"rec.yuv\" , \"wb\" ) ;\n # endif # if 0 framepsnr = fopen ( \"framepsnr.stt\" , \"a\" ) ;\n kf_list = fopen ( \"kf_list.stt\" , \"w\" ) ;\n # endif cpi -> allow_encode_breakout = ENCODE_BREAKOUT_ENABLED ;\n if ( oxcf -> pass == 1 ) {\n vp9_init_first_pass ( cpi ) ;\n }\n else if ( oxcf -> pass == 2 ) {\n const size_t packet_sz = sizeof ( FIRSTPASS_STATS ) ;\n const int packets = ( int ) ( oxcf -> two_pass_stats_in . sz / packet_sz ) ;\n if ( cpi -> svc . number_spatial_layers > 1 || cpi -> svc . number_temporal_layers > 1 ) {\n FIRSTPASS_STATS * const stats = oxcf -> two_pass_stats_in . buf ;\n FIRSTPASS_STATS * stats_copy [ VPX_SS_MAX_LAYERS ] = {\n 0 }\n ;\n int i ;\n for ( i = 0 ;\n i < oxcf -> ss_number_layers ;\n ++ i ) {\n FIRSTPASS_STATS * const last_packet_for_layer = & stats [ packets - oxcf -> ss_number_layers + i ] ;\n const int layer_id = ( int ) last_packet_for_layer -> spatial_layer_id ;\n const int packets_in_layer = ( int ) last_packet_for_layer -> count + 1 ;\n if ( layer_id >= 0 && layer_id < oxcf -> ss_number_layers ) {\n LAYER_CONTEXT * const lc = & cpi -> svc . layer_context [ layer_id ] ;\n vpx_free ( lc -> rc_twopass_stats_in . buf ) ;\n lc -> rc_twopass_stats_in . sz = packets_in_layer * packet_sz ;\n CHECK_MEM_ERROR ( cm , lc -> rc_twopass_stats_in . buf , vpx_malloc ( lc -> rc_twopass_stats_in . sz ) ) ;\n lc -> twopass . stats_in_start = lc -> rc_twopass_stats_in . buf ;\n lc -> twopass . stats_in = lc -> twopass . stats_in_start ;\n lc -> twopass . stats_in_end = lc -> twopass . stats_in_start + packets_in_layer - 1 ;\n stats_copy [ layer_id ] = lc -> rc_twopass_stats_in . buf ;\n }\n }\n for ( i = 0 ;\n i < packets ;\n ++ i ) {\n const int layer_id = ( int ) stats [ i ] . spatial_layer_id ;\n if ( layer_id >= 0 && layer_id < oxcf -> ss_number_layers && stats_copy [ layer_id ] != NULL ) {\n * stats_copy [ layer_id ] = stats [ i ] ;\n ++ stats_copy [ layer_id ] ;\n }\n }\n vp9_init_second_pass_spatial_svc ( cpi ) ;\n }\n else {\n # if CONFIG_FP_MB_STATS if ( cpi -> use_fp_mb_stats ) {\n const size_t psz = cpi -> common . MBs * sizeof ( uint8_t ) ;\n const int ps = ( int ) ( oxcf -> firstpass_mb_stats_in . sz / psz ) ;\n cpi -> twopass . firstpass_mb_stats . mb_stats_start = oxcf -> firstpass_mb_stats_in . buf ;\n cpi -> twopass . firstpass_mb_stats . mb_stats_end = cpi -> twopass . firstpass_mb_stats . mb_stats_start + ( ps - 1 ) * cpi -> common . MBs * sizeof ( uint8_t ) ;\n }\n # endif cpi -> twopass . stats_in_start = oxcf -> two_pass_stats_in . buf ;\n cpi -> twopass . stats_in = cpi -> twopass . stats_in_start ;\n cpi -> twopass . stats_in_end = & cpi -> twopass . stats_in [ packets - 1 ] ;\n vp9_init_second_pass ( cpi ) ;\n }\n }\n vp9_set_speed_features ( cpi ) ;\n CHECK_MEM_ERROR ( cm , cpi -> source_diff_var , vpx_calloc ( cm -> MBs , sizeof ( diff ) ) ) ;\n cpi -> source_var_thresh = 0 ;\n cpi -> frames_till_next_var_check = 0 ;\n for ( i = 0 ;\n i < BLOCK_SIZES ;\n ++ i ) {\n for ( j = 0 ;\n j < MAX_MODES ;\n ++ j ) cpi -> rd . thresh_freq_fact [ i ] [ j ] = 32 ;\n }\n # define BFP ( BT , SDF , SDAF , VF , SVF , SVAF , SDX3F , SDX8F , SDX4DF ) cpi -> fn_ptr [ BT ] . sdf = SDF ;\n cpi -> fn_ptr [ BT ] . sdaf = SDAF ;\n cpi -> fn_ptr [ BT ] . vf = VF ;\n cpi -> fn_ptr [ BT ] . svf = SVF ;\n cpi -> fn_ptr [ BT ] . svaf = SVAF ;\n cpi -> fn_ptr [ BT ] . sdx3f = SDX3F ;\n cpi -> fn_ptr [ BT ] . sdx8f = SDX8F ;\n cpi -> fn_ptr [ BT ] . sdx4df = SDX4DF ;\n BFP ( BLOCK_32X16 , vp9_sad32x16 , vp9_sad32x16_avg , vp9_variance32x16 , vp9_sub_pixel_variance32x16 , vp9_sub_pixel_avg_variance32x16 , NULL , NULL , vp9_sad32x16x4d ) BFP ( BLOCK_16X32 , vp9_sad16x32 , vp9_sad16x32_avg , vp9_variance16x32 , vp9_sub_pixel_variance16x32 , vp9_sub_pixel_avg_variance16x32 , NULL , NULL , vp9_sad16x32x4d ) BFP ( BLOCK_64X32 , vp9_sad64x32 , vp9_sad64x32_avg , vp9_variance64x32 , vp9_sub_pixel_variance64x32 , vp9_sub_pixel_avg_variance64x32 , NULL , NULL , vp9_sad64x32x4d ) BFP ( BLOCK_32X64 , vp9_sad32x64 , vp9_sad32x64_avg , vp9_variance32x64 , vp9_sub_pixel_variance32x64 , vp9_sub_pixel_avg_variance32x64 , NULL , NULL , vp9_sad32x64x4d ) BFP ( BLOCK_32X32 , vp9_sad32x32 , vp9_sad32x32_avg , vp9_variance32x32 , vp9_sub_pixel_variance32x32 , vp9_sub_pixel_avg_variance32x32 , vp9_sad32x32x3 , vp9_sad32x32x8 , vp9_sad32x32x4d ) BFP ( BLOCK_64X64 , vp9_sad64x64 , vp9_sad64x64_avg , vp9_variance64x64 , vp9_sub_pixel_variance64x64 , vp9_sub_pixel_avg_variance64x64 , vp9_sad64x64x3 , vp9_sad64x64x8 , vp9_sad64x64x4d ) BFP ( BLOCK_16X16 , vp9_sad16x16 , vp9_sad16x16_avg , vp9_variance16x16 , vp9_sub_pixel_variance16x16 , vp9_sub_pixel_avg_variance16x16 , vp9_sad16x16x3 , vp9_sad16x16x8 , vp9_sad16x16x4d ) BFP ( BLOCK_16X8 , vp9_sad16x8 , vp9_sad16x8_avg , vp9_variance16x8 , vp9_sub_pixel_variance16x8 , vp9_sub_pixel_avg_variance16x8 , vp9_sad16x8x3 , vp9_sad16x8x8 , vp9_sad16x8x4d ) BFP ( BLOCK_8X16 , vp9_sad8x16 , vp9_sad8x16_avg , vp9_variance8x16 , vp9_sub_pixel_variance8x16 , vp9_sub_pixel_avg_variance8x16 , vp9_sad8x16x3 , vp9_sad8x16x8 , vp9_sad8x16x4d ) BFP ( BLOCK_8X8 , vp9_sad8x8 , vp9_sad8x8_avg , vp9_variance8x8 , vp9_sub_pixel_variance8x8 , vp9_sub_pixel_avg_variance8x8 , vp9_sad8x8x3 , vp9_sad8x8x8 , vp9_sad8x8x4d ) BFP ( BLOCK_8X4 , vp9_sad8x4 , vp9_sad8x4_avg , vp9_variance8x4 , vp9_sub_pixel_variance8x4 , vp9_sub_pixel_avg_variance8x4 , NULL , vp9_sad8x4x8 , vp9_sad8x4x4d ) BFP ( BLOCK_4X8 , vp9_sad4x8 , vp9_sad4x8_avg , vp9_variance4x8 , vp9_sub_pixel_variance4x8 , vp9_sub_pixel_avg_variance4x8 , NULL , vp9_sad4x8x8 , vp9_sad4x8x4d ) BFP ( BLOCK_4X4 , vp9_sad4x4 , vp9_sad4x4_avg , vp9_variance4x4 , vp9_sub_pixel_variance4x4 , vp9_sub_pixel_avg_variance4x4 , vp9_sad4x4x3 , vp9_sad4x4x8 , vp9_sad4x4x4d ) vp9_init_quantizer ( cpi ) ;\n vp9_loop_filter_init ( cm ) ;\n cm -> error . setjmp = 0 ;\n return cpi ;\n }"}
{"idx": 4025, "target": 0, "func": "static void inc_mvs ( const MB_MODE_INFO * mbmi , const int_mv mvs [ 2 ] , nmv_context_counts * counts ) {\n int i ;\n for ( i = 0 ;\n i < 1 + has_second_ref ( mbmi ) ;\n ++ i ) {\n const MV * ref = & mbmi -> ref_mvs [ mbmi -> ref_frame [ i ] ] [ 0 ] . as_mv ;\n const MV diff = {\n mvs [ i ] . as_mv . row - ref -> row , mvs [ i ] . as_mv . col - ref -> col }\n ;\n vp9_inc_mv ( & diff , counts ) ;\n }\n }"}
{"idx": 4026, "target": 0, "func": "IN_PROC_BROWSER_TEST_P ( BrowserCloseManagerBrowserTest , TestHangInBeforeUnloadMultipleWindows ) {\n browsers_ . push_back ( CreateBrowser ( browser ( ) -> profile ( ) ) ) ;\n browsers_ . push_back ( CreateBrowser ( browser ( ) -> profile ( ) ) ) ;\n ASSERT_NO_FATAL_FAILURE ( ui_test_utils : : NavigateToURL ( browsers_ [ 0 ] , embedded_test_server ( ) -> GetURL ( \"/beforeunload_hang.html\" ) ) ) ;\n ASSERT_NO_FATAL_FAILURE ( ui_test_utils : : NavigateToURL ( browsers_ [ 1 ] , embedded_test_server ( ) -> GetURL ( \"/beforeunload.html\" ) ) ) ;\n ASSERT_NO_FATAL_FAILURE ( ui_test_utils : : NavigateToURL ( browsers_ [ 2 ] , embedded_test_server ( ) -> GetURL ( \"/beforeunload_hang.html\" ) ) ) ;\n PrepareForDialog ( browsers_ [ 1 ] ) ;\n RepeatedNotificationObserver cancel_observer ( chrome : : NOTIFICATION_BROWSER_CLOSE_CANCELLED , 2 ) ;\n chrome : : CloseAllBrowsersAndQuit ( ) ;\n ASSERT_NO_FATAL_FAILURE ( CancelClose ( ) ) ;\n cancel_observer . Wait ( ) ;\n EXPECT_FALSE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_EQ ( 1 , browsers_ [ 0 ] -> tab_strip_model ( ) -> count ( ) ) ;\n EXPECT_EQ ( 1 , browsers_ [ 1 ] -> tab_strip_model ( ) -> count ( ) ) ;\n EXPECT_EQ ( 1 , browsers_ [ 2 ] -> tab_strip_model ( ) -> count ( ) ) ;\n RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , 3 ) ;\n chrome : : CloseAllBrowsersAndQuit ( ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n close_observer . Wait ( ) ;\n EXPECT_TRUE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_TRUE ( BrowserList : : GetInstance ( ) -> empty ( ) ) ;\n }"}
{"idx": 4027, "target": 0, "func": "static void test_bug15518 ( ) {\n MYSQL_STMT * stmt ;\n MYSQL * mysql1 ;\n int rc ;\n myheader ( \"test_bug15518\" ) ;\n mysql1 = mysql_client_init ( NULL ) ;\n if ( ! mysql_real_connect ( mysql1 , opt_host , opt_user , opt_password , opt_db ? opt_db : \"test\" , opt_port , opt_unix_socket , CLIENT_MULTI_STATEMENTS ) ) {\n fprintf ( stderr , \"Failed to connect to the database\\n\" ) ;\n DIE_UNLESS ( 0 ) ;\n }\n stmt = mysql_stmt_init ( mysql1 ) ;\n rc = mysql_stmt_prepare ( stmt , \"foo\" , 3 ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"rc: %d, mysql_stmt_errno: %d, mysql_errno: %d\\n\" , rc , mysql_stmt_errno ( stmt ) , mysql_errno ( mysql1 ) ) ;\n DIE_UNLESS ( rc && mysql_stmt_errno ( stmt ) && mysql_errno ( mysql1 ) ) ;\n rc = mysql_stmt_prepare ( stmt , \"SHOW STATUS\" , 12 ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"rc: %d, mysql_stmt_errno: %d, mysql_errno: %d\\n\" , rc , mysql_stmt_errno ( stmt ) , mysql_errno ( mysql1 ) ) ;\n DIE_UNLESS ( ! rc || mysql_stmt_errno ( stmt ) || mysql_errno ( mysql1 ) ) ;\n mysql_stmt_close ( stmt ) ;\n DIE_UNLESS ( ! mysql_errno ( mysql1 ) ) ;\n stmt = mysql_stmt_init ( mysql1 ) ;\n rc = mysql_stmt_prepare ( stmt , \"foo\" , 3 ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"rc: %d, mysql_stmt_errno: %d, mysql_errno: %d\\n\" , rc , mysql_stmt_errno ( stmt ) , mysql_errno ( mysql1 ) ) ;\n DIE_UNLESS ( rc && mysql_stmt_errno ( stmt ) && mysql_errno ( mysql1 ) ) ;\n mysql_close ( mysql1 ) ;\n rc = mysql_stmt_prepare ( stmt , \"SHOW STATUS\" , 12 ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"rc: %d, mysql_stmt_errno: %d\\n\" , rc , mysql_stmt_errno ( stmt ) ) ;\n DIE_UNLESS ( rc && mysql_stmt_errno ( stmt ) ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 4028, "target": 0, "func": "TEST_F ( TemplateURLTest , URLRefTestImageURLWithPOST ) {\n const char kInvalidPostParamsString [ ] = \"unknown_template={\nUnknownTemplate}\n,bad_value=bad{\nvalue}\n,\" \"{\ngoogle:sbiSource}\n\" ;\n const char kValidPostParamsString [ ] = \"image_content={\ngoogle:imageThumbnail}\n,image_url={\ngoogle:imageURL}\n,\" \"sbisrc={\ngoogle:imageSearchSource}\n,language={\nlanguage}\n,empty_param=,\" \"constant_param=constant,width={\ngoogle:imageOriginalWidth}\n\" ;\n const char KImageSearchURL [ ] = \"http://foo.com/sbi\" ;\n TemplateURLData data ;\n data . image_url = KImageSearchURL ;\n data . image_url_post_params = kInvalidPostParamsString ;\n TemplateURL url_bad ( data ) ;\n ASSERT_FALSE ( url_bad . image_url_ref ( ) . IsValid ( search_terms_data_ ) ) ;\n const TemplateURLRef : : PostParams & bad_post_params = url_bad . image_url_ref ( ) . post_params_ ;\n ASSERT_EQ ( 2U , bad_post_params . size ( ) ) ;\n ExpectPostParamIs ( bad_post_params [ 0 ] , \"unknown_template\" , \"{\nUnknownTemplate}\n\" ) ;\n ExpectPostParamIs ( bad_post_params [ 1 ] , \"bad_value\" , \"bad{\nvalue}\n\" ) ;\n data . image_url_post_params = kValidPostParamsString ;\n TemplateURL url ( data ) ;\n ASSERT_TRUE ( url . image_url_ref ( ) . IsValid ( search_terms_data_ ) ) ;\n ASSERT_FALSE ( url . image_url_ref ( ) . SupportsReplacement ( search_terms_data_ ) ) ;\n TemplateURLRef : : SearchTermsArgs search_args ( ASCIIToUTF16 ( \"X\" ) ) ;\n search_args . image_thumbnail_content = \"dummy-image-thumbnail\" ;\n search_args . image_url = GURL ( \"http://dummyimage.com/dummy.jpg\" ) ;\n search_args . image_original_size = gfx : : Size ( 10 , 10 ) ;\n TestingSearchTermsData search_terms_data ( \"http://X\" ) ;\n GURL result ( url . image_url_ref ( ) . ReplaceSearchTerms ( search_args , search_terms_data ) ) ;\n ASSERT_TRUE ( result . is_valid ( ) ) ;\n EXPECT_EQ ( KImageSearchURL , result . spec ( ) ) ;\n TemplateURLRef : : PostContent post_content ;\n result = GURL ( url . image_url_ref ( ) . ReplaceSearchTerms ( search_args , search_terms_data , & post_content ) ) ;\n ASSERT_TRUE ( result . is_valid ( ) ) ;\n EXPECT_EQ ( KImageSearchURL , result . spec ( ) ) ;\n ASSERT_FALSE ( post_content . first . empty ( ) ) ;\n ASSERT_FALSE ( post_content . second . empty ( ) ) ;\n const TemplateURLRef : : Replacements & replacements = url . image_url_ref ( ) . replacements_ ;\n const TemplateURLRef : : PostParams & post_params = url . image_url_ref ( ) . post_params_ ;\n EXPECT_EQ ( 7U , post_params . size ( ) ) ;\n for ( TemplateURLRef : : PostParams : : const_iterator i = post_params . begin ( ) ;\n i != post_params . end ( ) ;\n ++ i ) {\n TemplateURLRef : : Replacements : : const_iterator j = replacements . begin ( ) ;\n for ( ;\n j != replacements . end ( ) ;\n ++ j ) {\n if ( j -> is_post_param && j -> index == static_cast < size_t > ( i - post_params . begin ( ) ) ) {\n switch ( j -> type ) {\n case TemplateURLRef : : GOOGLE_IMAGE_ORIGINAL_WIDTH : ExpectPostParamIs ( * i , \"width\" , base : : IntToString ( search_args . image_original_size . width ( ) ) ) ;\n break ;\n case TemplateURLRef : : GOOGLE_IMAGE_SEARCH_SOURCE : ExpectPostParamIs ( * i , \"sbisrc\" , search_terms_data . GoogleImageSearchSource ( ) ) ;\n break ;\n case TemplateURLRef : : GOOGLE_IMAGE_THUMBNAIL : ExpectPostParamIs ( * i , \"image_content\" , search_args . image_thumbnail_content , \"image/jpeg\" ) ;\n break ;\n case TemplateURLRef : : GOOGLE_IMAGE_URL : ExpectPostParamIs ( * i , \"image_url\" , search_args . image_url . spec ( ) ) ;\n break ;\n case TemplateURLRef : : LANGUAGE : ExpectPostParamIs ( * i , \"language\" , \"en\" ) ;\n break ;\n default : ADD_FAILURE ( ) ;\n }\n break ;\n }\n }\n if ( j != replacements . end ( ) ) continue ;\n if ( i -> name == \"empty_param\" ) ExpectPostParamIs ( * i , \"empty_param\" , std : : string ( ) ) ;\n else ExpectPostParamIs ( * i , \"constant_param\" , \"constant\" ) ;\n }\n }"}
{"idx": 4029, "target": 0, "func": "static void test_datetime_ranges ( ) {\n const char * stmt_text ;\n int rc , i ;\n MYSQL_STMT * stmt ;\n MYSQL_BIND my_bind [ 6 ] ;\n MYSQL_TIME tm [ 6 ] ;\n myheader ( \"test_datetime_ranges\" ) ;\n stmt_text = \"drop table if exists t1\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt_text = \"create table t1 (year datetime, month datetime, day datetime, \" \"hour datetime, min datetime, sec datetime)\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"INSERT INTO t1 VALUES (?, ?, ?, ?, ?, ?)\" ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 6 ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n my_bind [ i ] . buffer_type = MYSQL_TYPE_DATETIME ;\n my_bind [ i ] . buffer = & tm [ i ] ;\n }\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n tm [ 0 ] . year = 2004 ;\n tm [ 0 ] . month = 11 ;\n tm [ 0 ] . day = 10 ;\n tm [ 0 ] . hour = 12 ;\n tm [ 0 ] . minute = 30 ;\n tm [ 0 ] . second = 30 ;\n tm [ 0 ] . second_part = 0 ;\n tm [ 0 ] . neg = 0 ;\n tm [ 5 ] = tm [ 4 ] = tm [ 3 ] = tm [ 2 ] = tm [ 1 ] = tm [ 0 ] ;\n tm [ 0 ] . year = 10000 ;\n tm [ 1 ] . month = 13 ;\n tm [ 2 ] . day = 32 ;\n tm [ 3 ] . hour = 24 ;\n tm [ 4 ] . minute = 60 ;\n tm [ 5 ] . second = 60 ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n my_process_warnings ( mysql , 12 ) ;\n verify_col_data ( \"t1\" , \"year\" , \"0000-00-00 00:00:00\" ) ;\n verify_col_data ( \"t1\" , \"month\" , \"0000-00-00 00:00:00\" ) ;\n verify_col_data ( \"t1\" , \"day\" , \"0000-00-00 00:00:00\" ) ;\n verify_col_data ( \"t1\" , \"hour\" , \"0000-00-00 00:00:00\" ) ;\n verify_col_data ( \"t1\" , \"min\" , \"0000-00-00 00:00:00\" ) ;\n verify_col_data ( \"t1\" , \"sec\" , \"0000-00-00 00:00:00\" ) ;\n mysql_stmt_close ( stmt ) ;\n stmt_text = \"delete from t1\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"INSERT INTO t1 (year, month, day) \" \"VALUES (?, ?, ?)\" ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 3 ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) my_bind [ i ] . buffer_type = MYSQL_TYPE_DATE ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n my_process_warnings ( mysql , 6 ) ;\n verify_col_data ( \"t1\" , \"year\" , \"0000-00-00 00:00:00\" ) ;\n verify_col_data ( \"t1\" , \"month\" , \"0000-00-00 00:00:00\" ) ;\n verify_col_data ( \"t1\" , \"day\" , \"0000-00-00 00:00:00\" ) ;\n mysql_stmt_close ( stmt ) ;\n stmt_text = \"drop table t1\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt_text = \"create table t1 (day_ovfl time, day time, hour time, min time, sec time)\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"INSERT INTO t1 VALUES (?, ?, ?, ?, ?)\" ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 5 ) ;\n for ( i = 0 ;\n i < 5 ;\n i ++ ) my_bind [ i ] . buffer_type = MYSQL_TYPE_TIME ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n tm [ 0 ] . year = 0 ;\n tm [ 0 ] . month = 0 ;\n tm [ 0 ] . day = 10 ;\n tm [ 0 ] . hour = 12 ;\n tm [ 0 ] . minute = 30 ;\n tm [ 0 ] . second = 30 ;\n tm [ 0 ] . second_part = 0 ;\n tm [ 0 ] . neg = 0 ;\n tm [ 4 ] = tm [ 3 ] = tm [ 2 ] = tm [ 1 ] = tm [ 0 ] ;\n tm [ 0 ] . day = 35 ;\n tm [ 1 ] . day = 34 ;\n tm [ 2 ] . hour = 30 ;\n tm [ 3 ] . minute = 60 ;\n tm [ 4 ] . second = 60 ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n my_process_warnings ( mysql , 2 ) ;\n verify_col_data ( \"t1\" , \"day_ovfl\" , \"838:59:59\" ) ;\n verify_col_data ( \"t1\" , \"day\" , \"828:30:30\" ) ;\n verify_col_data ( \"t1\" , \"hour\" , \"270:30:30\" ) ;\n verify_col_data ( \"t1\" , \"min\" , \"00:00:00\" ) ;\n verify_col_data ( \"t1\" , \"sec\" , \"00:00:00\" ) ;\n mysql_stmt_close ( stmt ) ;\n stmt_text = \"drop table t1\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n }"}
{"idx": 4030, "target": 0, "func": "static inline int aalg_tmpl_set ( const struct xfrm_tmpl * t , const struct xfrm_algo_desc * d ) {\n unsigned int id = d -> desc . sadb_alg_id ;\n if ( id >= sizeof ( t -> aalgos ) * 8 ) return 0 ;\n return ( t -> aalgos >> id ) & 1 ;\n }"}
{"idx": 4031, "target": 0, "func": "int stored_field_cmp_to_item ( THD * thd , Field * field , Item * item ) {\n Item_result res_type = item_cmp_type ( field -> result_type ( ) , item -> result_type ( ) ) ;\n if ( res_type == STRING_RESULT ) {\n char item_buff [ MAX_FIELD_WIDTH ] ;\n char field_buff [ MAX_FIELD_WIDTH ] ;\n String item_tmp ( item_buff , sizeof ( item_buff ) , & my_charset_bin ) ;\n String field_tmp ( field_buff , sizeof ( field_buff ) , & my_charset_bin ) ;\n String * item_result = item -> val_str ( & item_tmp ) ;\n if ( item -> null_value ) return 0 ;\n String * field_result = field -> val_str ( & field_tmp ) ;\n enum_field_types field_type = field -> type ( ) ;\n if ( field_type == MYSQL_TYPE_DATE || field_type == MYSQL_TYPE_DATETIME || field_type == MYSQL_TYPE_TIMESTAMP ) {\n enum_mysql_timestamp_type type = MYSQL_TIMESTAMP_ERROR ;\n if ( field_type == MYSQL_TYPE_DATE ) type = MYSQL_TIMESTAMP_DATE ;\n else type = MYSQL_TIMESTAMP_DATETIME ;\n const char * field_name = field -> field_name ;\n MYSQL_TIME field_time , item_time ;\n get_mysql_time_from_str ( thd , field_result , type , field_name , & field_time ) ;\n get_mysql_time_from_str ( thd , item_result , type , field_name , & item_time ) ;\n return my_time_compare ( & field_time , & item_time ) ;\n }\n return sortcmp ( field_result , item_result , field -> charset ( ) ) ;\n }\n if ( res_type == INT_RESULT ) return 0 ;\n if ( res_type == DECIMAL_RESULT ) {\n my_decimal item_buf , * item_val , field_buf , * field_val ;\n item_val = item -> val_decimal ( & item_buf ) ;\n if ( item -> null_value ) return 0 ;\n field_val = field -> val_decimal ( & field_buf ) ;\n return my_decimal_cmp ( field_val , item_val ) ;\n }\n if ( field -> cmp_type ( ) == TIME_RESULT ) {\n MYSQL_TIME field_time , item_time ;\n if ( field -> type ( ) == MYSQL_TYPE_TIME ) {\n field -> get_time ( & field_time ) ;\n item -> get_time ( & item_time ) ;\n }\n else {\n field -> get_date ( & field_time , TIME_INVALID_DATES ) ;\n item -> get_date ( & item_time , TIME_INVALID_DATES ) ;\n }\n return my_time_compare ( & field_time , & item_time ) ;\n }\n volatile double result = item -> val_real ( ) ;\n if ( item -> null_value ) return 0 ;\n volatile double field_result = field -> val_real ( ) ;\n if ( field_result < result ) return - 1 ;\n else if ( field_result > result ) return 1 ;\n return 0 ;\n }"}
{"idx": 4032, "target": 0, "func": "int add_unseen_recent_objects_to_traversal ( struct rev_info * revs , unsigned long timestamp ) {\n struct recent_data data ;\n int r ;\n data . revs = revs ;\n data . timestamp = timestamp ;\n r = for_each_loose_object ( add_recent_loose , & data , FOR_EACH_OBJECT_LOCAL_ONLY ) ;\n if ( r ) return r ;\n return for_each_packed_object ( add_recent_packed , & data , FOR_EACH_OBJECT_LOCAL_ONLY ) ;\n }"}
{"idx": 4033, "target": 0, "func": "static int com_tee ( String * buffer __attribute__ ( ( unused ) ) , char * line __attribute__ ( ( unused ) ) ) {\n char file_name [ FN_REFLEN ] , * end , * param ;\n if ( status . batch ) return 0 ;\n while ( my_isspace ( charset_info , * line ) ) line ++ ;\n if ( ! ( param = strchr ( line , ' ' ) ) ) {\n if ( ! strlen ( outfile ) ) {\n printf ( \"No previous outfile available, you must give a filename!\\n\" ) ;\n return 0 ;\n }\n else if ( opt_outfile ) {\n tee_fprintf ( stdout , \"Currently logging to file '%s'\\n\" , outfile ) ;\n return 0 ;\n }\n else param = outfile ;\n }\n while ( my_isspace ( charset_info , * param ) ) param ++ ;\n end = strmake_buf ( file_name , param ) ;\n while ( end > file_name && ( my_isspace ( charset_info , end [ - 1 ] ) || my_iscntrl ( charset_info , end [ - 1 ] ) ) ) end -- ;\n end [ 0 ] = 0 ;\n if ( end == file_name ) {\n printf ( \"No outfile specified!\\n\" ) ;\n return 0 ;\n }\n init_tee ( file_name ) ;\n return 0 ;\n }"}
{"idx": 4034, "target": 0, "func": "int RECORD_LAYER_is_sslv2_record ( RECORD_LAYER * rl ) {\n return SSL3_RECORD_is_sslv2_record ( & rl -> rrec [ 0 ] ) ;\n }"}
{"idx": 4035, "target": 0, "func": "static int dissect_h225_INTEGER_1_31 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 31U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 4036, "target": 0, "func": "static void dumpcffcharset ( SplineFont * sf , struct alltabs * at ) {\n int i ;\n at -> gn_sid = calloc ( at -> gi . gcnt , sizeof ( uint32 ) ) ;\n putc ( 0 , at -> charset ) ;\n for ( i = 1 ;\n i < at -> gi . gcnt ;\n ++ i ) if ( at -> gi . bygid [ i ] != - 1 && SCWorthOutputting ( sf -> glyphs [ at -> gi . bygid [ i ] ] ) ) {\n at -> gn_sid [ i ] = storesid ( at , sf -> glyphs [ at -> gi . bygid [ i ] ] -> name ) ;\n putshort ( at -> charset , at -> gn_sid [ i ] ) ;\n }\n }"}
{"idx": 4037, "target": 0, "func": "static int dissect_h245_DataApplicationCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_DataApplicationCapability , DataApplicationCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 4038, "target": 0, "func": "static int strtoi_lim ( const char * str , const char * * ep , int llim , int ulim ) {\n int res = 0 ;\n const char * sp ;\n int rulim ;\n for ( sp = str , rulim = ulim > 10 ? ulim : 10 ;\n res * 10 <= ulim && rulim && * sp >= '0' && * sp <= '9' ;\n sp ++ , rulim /= 10 ) {\n res *= 10 ;\n res += * sp - '0' ;\n }\n if ( sp == str ) {\n res = - 1 ;\n }\n else if ( res < llim || res > ulim ) {\n res = - 2 ;\n }\n * ep = ( const char * ) sp ;\n return res ;\n }"}
{"idx": 4039, "target": 0, "func": "static void display_switch ( DisplayChangeListener * dcl , struct DisplaySurface * surface ) {\n SimpleSpiceDisplay * ssd = container_of ( dcl , SimpleSpiceDisplay , dcl ) ;\n qemu_spice_display_switch ( ssd , surface ) ;\n }"}
{"idx": 4040, "target": 0, "func": "int main ( int argc , char * * argv ) {\n int option_idx = 0 ;\n int result ;\n const char * adb_server_ip = NULL ;\n unsigned short * adb_server_tcp_port = NULL ;\n unsigned int logcat_text = 0 ;\n const char * default_adb_server_ip = \"127.0.0.1\" ;\n unsigned short default_adb_server_tcp_port = 5037 ;\n unsigned short local_adb_server_tcp_port ;\n unsigned short local_bt_server_tcp_port ;\n unsigned short local_bt_local_tcp_port ;\n unsigned short * bt_server_tcp_port = NULL ;\n unsigned int bt_forward_socket = 0 ;\n const char * bt_local_ip = NULL ;\n unsigned short * bt_local_tcp_port = NULL ;\n unsigned short default_bt_server_tcp_port = 4330 ;\n const char * default_bt_local_ip = \"127.0.0.1\" ;\n unsigned short default_bt_local_tcp_port = 4330 ;\n extcap_parameters * extcap_conf = NULL ;\n # ifdef _WIN32 WSADATA wsaData ;\n attach_parent_console ( ) ;\n # endif opterr = 0 ;\n optind = 0 ;\n if ( argc == 1 ) {\n help ( ) ;\n return EXIT_CODE_SUCCESS ;\n }\n extcap_conf = g_new0 ( extcap_parameters , 1 ) ;\n extcap_base_set_util_info ( extcap_conf , ANDROIDDUMP_VERSION_MAJOR , ANDROIDDUMP_VERSION_MINOR , ANDROIDDUMP_VERSION_RELEASE , NULL ) ;\n while ( ( result = getopt_long ( argc , argv , \"\" , longopts , & option_idx ) ) != - 1 ) {\n switch ( result ) {\n case OPT_VERSION : printf ( \"%s.%s.%s\\n\" , ANDROIDDUMP_VERSION_MAJOR , ANDROIDDUMP_VERSION_MINOR , ANDROIDDUMP_VERSION_RELEASE ) ;\n return EXIT_CODE_SUCCESS ;\n case OPT_VERBOSE : if ( optarg ) verbose = ( g_ascii_strncasecmp ( optarg , \"TRUE\" , 4 ) == 0 ) ;\n else verbose = 1 ;\n {\n int j = 0 ;\n verbose_print ( \"VERBOSE: Command line: \" ) ;\n while ( j < argc ) {\n verbose_print ( \"%s \" , argv [ j ] ) ;\n j += 1 ;\n }\n verbose_print ( \"\\n\" ) ;\n }\n break ;\n case OPT_HELP : help ( ) ;\n return EXIT_CODE_SUCCESS ;\n case OPT_CONFIG_ADB_SERVER_IP : adb_server_ip = optarg ;\n break ;\n case OPT_CONFIG_ADB_SERVER_TCP_PORT : adb_server_tcp_port = & local_adb_server_tcp_port ;\n if ( ! optarg ) {\n errmsg_print ( \"ERROR: Impossible exception. Parameter required argument, but there is no it right now.\" ) ;\n return EXIT_CODE_GENERIC ;\n }\n * adb_server_tcp_port = ( unsigned short ) g_ascii_strtoull ( optarg , NULL , 10 ) ;\n break ;\n case OPT_CONFIG_LOGCAT_TEXT : logcat_text = ( g_ascii_strncasecmp ( optarg , \"TRUE\" , 4 ) == 0 ) ;\n break ;\n case OPT_CONFIG_BT_SERVER_TCP_PORT : bt_server_tcp_port = & local_bt_server_tcp_port ;\n if ( ! optarg ) {\n errmsg_print ( \"ERROR: Impossible exception. Parameter required argument, but there is no it right now.\" ) ;\n return EXIT_CODE_GENERIC ;\n }\n * bt_server_tcp_port = ( unsigned short ) g_ascii_strtoull ( optarg , NULL , 10 ) ;\n break ;\n case OPT_CONFIG_BT_FORWARD_SOCKET : bt_forward_socket = ( g_ascii_strncasecmp ( optarg , \"TRUE\" , 4 ) == 0 ) ;\n break ;\n case OPT_CONFIG_BT_LOCAL_IP : bt_local_ip = optarg ;\n break ;\n case OPT_CONFIG_BT_LOCAL_TCP_PORT : bt_local_tcp_port = & local_bt_local_tcp_port ;\n if ( ! optarg ) {\n errmsg_print ( \"ERROR: Impossible exception. Parameter required argument, but there is no it right now.\" ) ;\n return EXIT_CODE_GENERIC ;\n }\n * bt_local_tcp_port = ( unsigned short ) g_ascii_strtoull ( optarg , NULL , 10 ) ;\n break ;\n default : if ( ! extcap_base_parse_options ( extcap_conf , result - EXTCAP_OPT_LIST_INTERFACES , optarg ) ) {\n printf ( \"Invalid argument <%s>. Try --help.\\n\" , argv [ optind - 1 ] ) ;\n return EXIT_CODE_GENERIC ;\n }\n }\n }\n if ( ! adb_server_ip ) adb_server_ip = default_adb_server_ip ;\n if ( ! adb_server_tcp_port ) adb_server_tcp_port = & default_adb_server_tcp_port ;\n if ( ! bt_server_tcp_port ) bt_server_tcp_port = & default_bt_server_tcp_port ;\n if ( ! bt_local_ip ) bt_local_ip = default_bt_local_ip ;\n if ( ! bt_local_tcp_port ) bt_local_tcp_port = & default_bt_local_tcp_port ;\n # ifdef _WIN32 result = WSAStartup ( MAKEWORD ( 1 , 1 ) , & wsaData ) ;\n if ( result != 0 ) {\n errmsg_print ( \"ERROR: WSAStartup failed with error: %d\" , result ) ;\n return EXIT_CODE_GENERIC ;\n }\n # endif if ( extcap_conf -> do_list_interfaces ) register_interfaces ( extcap_conf , adb_server_ip , adb_server_tcp_port ) ;\n if ( extcap_base_handle_interface ( extcap_conf ) ) return EXIT_CODE_SUCCESS ;\n if ( extcap_conf -> show_config ) return list_config ( extcap_conf -> interface ) ;\n if ( extcap_conf -> capture ) {\n if ( extcap_conf -> interface && ( is_specified_interface ( extcap_conf -> interface , INTERFACE_ANDROID_LOGCAT_MAIN ) || is_specified_interface ( extcap_conf -> interface , INTERFACE_ANDROID_LOGCAT_SYSTEM ) || is_specified_interface ( extcap_conf -> interface , INTERFACE_ANDROID_LOGCAT_RADIO ) || is_specified_interface ( extcap_conf -> interface , INTERFACE_ANDROID_LOGCAT_EVENTS ) ) ) if ( logcat_text ) return capture_android_logcat_text ( extcap_conf -> interface , extcap_conf -> fifo , adb_server_ip , adb_server_tcp_port ) ;\n else return capture_android_logcat ( extcap_conf -> interface , extcap_conf -> fifo , adb_server_ip , adb_server_tcp_port ) ;\n else if ( extcap_conf -> interface && ( is_specified_interface ( extcap_conf -> interface , INTERFACE_ANDROID_LOGCAT_TEXT_MAIN ) || is_specified_interface ( extcap_conf -> interface , INTERFACE_ANDROID_LOGCAT_TEXT_SYSTEM ) || is_specified_interface ( extcap_conf -> interface , INTERFACE_ANDROID_LOGCAT_TEXT_RADIO ) || is_specified_interface ( extcap_conf -> interface , INTERFACE_ANDROID_LOGCAT_TEXT_EVENTS ) || ( is_specified_interface ( extcap_conf -> interface , INTERFACE_ANDROID_LOGCAT_TEXT_CRASH ) ) ) ) return capture_android_logcat_text ( extcap_conf -> interface , extcap_conf -> fifo , adb_server_ip , adb_server_tcp_port ) ;\n else if ( extcap_conf -> interface && is_specified_interface ( extcap_conf -> interface , INTERFACE_ANDROID_BLUETOOTH_HCIDUMP ) ) return capture_android_bluetooth_hcidump ( extcap_conf -> interface , extcap_conf -> fifo , adb_server_ip , adb_server_tcp_port ) ;\n else if ( extcap_conf -> interface && is_specified_interface ( extcap_conf -> interface , INTERFACE_ANDROID_BLUETOOTH_EXTERNAL_PARSER ) ) return capture_android_bluetooth_external_parser ( extcap_conf -> interface , extcap_conf -> fifo , adb_server_ip , adb_server_tcp_port , bt_server_tcp_port , bt_forward_socket , bt_local_ip , bt_local_tcp_port ) ;\n else if ( extcap_conf -> interface && ( is_specified_interface ( extcap_conf -> interface , INTERFACE_ANDROID_BLUETOOTH_BTSNOOP_NET ) ) ) return capture_android_bluetooth_btsnoop_net ( extcap_conf -> interface , extcap_conf -> fifo , adb_server_ip , adb_server_tcp_port ) ;\n else if ( extcap_conf -> interface && ( is_specified_interface ( extcap_conf -> interface , INTERFACE_ANDROID_WIFI_TCPDUMP ) ) ) return capture_android_wifi_tcpdump ( extcap_conf -> interface , extcap_conf -> fifo , adb_server_ip , adb_server_tcp_port ) ;\n else return EXIT_CODE_GENERIC ;\n }\n extcap_base_cleanup ( & extcap_conf ) ;\n return EXIT_CODE_SUCCESS ;\n }"}
{"idx": 4041, "target": 0, "func": "static gboolean dissect_pvfs_common ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * parent_tree , gboolean dissect_other_as_continuation _U_ ) {\n guint32 mode = 0 ;\n proto_item * item ;\n proto_tree * pvfs_tree = NULL , * pvfs_htree = NULL ;\n int offset = 0 ;\n guint64 tag ;\n guint32 server_op ;\n pvfs2_io_tracking_value_t * val = NULL ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"PVFS\" ) ;\n col_clear ( pinfo -> cinfo , COL_INFO ) ;\n item = proto_tree_add_item ( parent_tree , proto_pvfs , tvb , 0 , - 1 , ENC_NA ) ;\n pvfs_tree = proto_item_add_subtree ( item , ett_pvfs ) ;\n proto_tree_add_item ( pvfs_tree , hf_pvfs_version2 , tvb , 0 , - 1 , ENC_NA ) ;\n pvfs_htree = proto_tree_add_subtree ( pvfs_tree , tvb , 0 , BMI_HEADER_SIZE , ett_pvfs_hdr , NULL , \"BMI Header\" ) ;\n proto_tree_add_item ( pvfs_htree , hf_pvfs_magic_nr , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n mode = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( pvfs_htree , hf_pvfs_mode , tvb , offset , 4 , mode ) ;\n offset += 4 ;\n offset = dissect_pvfs_uint64 ( tvb , pvfs_htree , offset , hf_pvfs_tag , & tag ) ;\n offset = dissect_pvfs_uint64 ( tvb , pvfs_htree , offset , hf_pvfs_size , NULL ) ;\n server_op = tvb_get_letohl ( tvb , offset + 8 ) ;\n if ( mode == TCP_MODE_UNEXP ) {\n if ( ( server_op == PVFS_SERV_IO ) && ! pinfo -> fd -> flags . visited ) val = pvfs2_io_tracking_new_with_tag ( tag , pinfo -> num ) ;\n }\n else {\n pvfs2_io_tracking_key_t key ;\n memset ( & key , 0 , sizeof ( key ) ) ;\n key . tag = tag ;\n val = ( pvfs2_io_tracking_value_t * ) wmem_map_lookup ( pvfs2_io_tracking_value_table , & key ) ;\n if ( val && ! pinfo -> fd -> flags . visited ) {\n if ( val -> response_frame_num == 0 ) val -> response_frame_num = pinfo -> num ;\n else {\n if ( val -> flow_frame_num == 0 ) val -> flow_frame_num = pinfo -> num ;\n }\n }\n }\n if ( val && ( val -> flow_frame_num == pinfo -> num ) ) {\n col_set_str ( pinfo -> cinfo , COL_INFO , \"PVFS flow data\" ) ;\n proto_tree_add_item ( pvfs_tree , hf_pvfs_flow_data , tvb , offset , - 1 , ENC_NA ) ;\n return TRUE ;\n }\n offset = dissect_pvfs2_common_header ( tvb , pvfs_htree , offset ) ;\n col_add_str ( pinfo -> cinfo , COL_INFO , val_to_str ( server_op , names_pvfs_server_op , \"%u (unknown)\" ) ) ;\n col_append_str ( pinfo -> cinfo , COL_INFO , ( mode == TCP_MODE_UNEXP ) ? \" (request)\" : \" (response)\" ) ;\n if ( mode == TCP_MODE_UNEXP ) {\n dissect_pvfs2_request ( tvb , pvfs_tree , offset , pinfo , server_op ) ;\n }\n else {\n # if 0 if ( mode == TCP_MODE_REND ) {\n col_set_str ( pinfo -> cinfo , COL_INFO , \"PVFS2 DATA (request)\" ) ;\n }\n else # endif {\n dissect_pvfs2_response ( tvb , pvfs_tree , offset , pinfo , server_op ) ;\n }\n }\n return TRUE ;\n }"}
{"idx": 4042, "target": 0, "func": "static int read_dns ( int fd , int tun_fd , struct query * q ) {\n struct sockaddr_in from ;\n socklen_t addrlen ;\n char packet [ 64 * 1024 ] ;\n int r ;\n # ifndef WINDOWS32 char address [ 96 ] ;\n struct msghdr msg ;\n struct iovec iov ;\n struct cmsghdr * cmsg ;\n addrlen = sizeof ( struct sockaddr ) ;\n iov . iov_base = packet ;\n iov . iov_len = sizeof ( packet ) ;\n msg . msg_name = ( caddr_t ) & from ;\n msg . msg_namelen = ( unsigned ) addrlen ;\n msg . msg_iov = & iov ;\n msg . msg_iovlen = 1 ;\n msg . msg_control = address ;\n msg . msg_controllen = sizeof ( address ) ;\n msg . msg_flags = 0 ;\n r = recvmsg ( fd , & msg , 0 ) ;\n # else addrlen = sizeof ( struct sockaddr ) ;\n r = recvfrom ( fd , packet , sizeof ( packet ) , 0 , ( struct sockaddr * ) & from , & addrlen ) ;\n # endif if ( r > 0 ) {\n memcpy ( ( struct sockaddr * ) & q -> from , ( struct sockaddr * ) & from , addrlen ) ;\n q -> fromlen = addrlen ;\n if ( raw_decode ( packet , r , q , fd , tun_fd ) ) {\n return 0 ;\n }\n if ( dns_decode ( NULL , 0 , q , QR_QUERY , packet , r ) < 0 ) {\n return 0 ;\n }\n # ifndef WINDOWS32 for ( cmsg = CMSG_FIRSTHDR ( & msg ) ;\n cmsg != NULL ;\n cmsg = CMSG_NXTHDR ( & msg , cmsg ) ) {\n if ( cmsg -> cmsg_level == IPPROTO_IP && cmsg -> cmsg_type == DSTADDR_SOCKOPT ) {\n q -> destination = * dstaddr ( cmsg ) ;\n break ;\n }\n }\n # endif return strlen ( q -> name ) ;\n }\n else if ( r < 0 ) {\n warn ( \"read dns\" ) ;\n }\n return 0 ;\n }"}
{"idx": 4043, "target": 0, "func": "static GPtrArray * pk_transaction_role_to_actions ( PkRoleEnum role , guint64 transaction_flags ) {\n const gchar * policy = NULL ;\n GPtrArray * result = NULL ;\n gboolean check_install_untrusted = FALSE ;\n result = g_ptr_array_new_with_free_func ( g_free ) ;\n if ( result == NULL ) return result ;\n if ( ( role == PK_ROLE_ENUM_INSTALL_PACKAGES || role == PK_ROLE_ENUM_INSTALL_FILES || role == PK_ROLE_ENUM_UPDATE_PACKAGES ) && ! pk_bitfield_contain ( transaction_flags , PK_TRANSACTION_FLAG_ENUM_ONLY_TRUSTED ) ) {\n g_ptr_array_add ( result , g_strdup ( \"org.freedesktop.packagekit.package-install-untrusted\" ) ) ;\n check_install_untrusted = TRUE ;\n }\n if ( role == PK_ROLE_ENUM_INSTALL_PACKAGES && pk_bitfield_contain ( transaction_flags , PK_TRANSACTION_FLAG_ENUM_ALLOW_REINSTALL ) ) {\n g_ptr_array_add ( result , g_strdup ( \"org.freedesktop.packagekit.package-reinstall\" ) ) ;\n }\n if ( ( role == PK_ROLE_ENUM_INSTALL_PACKAGES || role == PK_ROLE_ENUM_UPDATE_PACKAGES ) && pk_bitfield_contain ( transaction_flags , PK_TRANSACTION_FLAG_ENUM_ALLOW_DOWNGRADE ) ) {\n g_ptr_array_add ( result , g_strdup ( \"org.freedesktop.packagekit.package-downgrade\" ) ) ;\n }\n else if ( ! check_install_untrusted ) {\n switch ( role ) {\n case PK_ROLE_ENUM_UPDATE_PACKAGES : policy = \"org.freedesktop.packagekit.system-update\" ;\n break ;\n case PK_ROLE_ENUM_INSTALL_SIGNATURE : policy = \"org.freedesktop.packagekit.system-trust-signing-key\" ;\n break ;\n case PK_ROLE_ENUM_REPO_ENABLE : case PK_ROLE_ENUM_REPO_SET_DATA : case PK_ROLE_ENUM_REPO_REMOVE : policy = \"org.freedesktop.packagekit.system-sources-configure\" ;\n break ;\n case PK_ROLE_ENUM_REFRESH_CACHE : policy = \"org.freedesktop.packagekit.system-sources-refresh\" ;\n break ;\n case PK_ROLE_ENUM_REMOVE_PACKAGES : policy = \"org.freedesktop.packagekit.package-remove\" ;\n break ;\n case PK_ROLE_ENUM_INSTALL_PACKAGES : case PK_ROLE_ENUM_INSTALL_FILES : policy = \"org.freedesktop.packagekit.package-install\" ;\n break ;\n case PK_ROLE_ENUM_ACCEPT_EULA : policy = \"org.freedesktop.packagekit.package-eula-accept\" ;\n break ;\n case PK_ROLE_ENUM_CANCEL : policy = \"org.freedesktop.packagekit.cancel-foreign\" ;\n break ;\n case PK_ROLE_ENUM_UPGRADE_SYSTEM : policy = \"org.freedesktop.packagekit.upgrade-system\" ;\n break ;\n case PK_ROLE_ENUM_REPAIR_SYSTEM : policy = \"org.freedesktop.packagekit.repair-system\" ;\n break ;\n default : break ;\n }\n if ( policy != NULL ) g_ptr_array_add ( result , g_strdup ( policy ) ) ;\n }\n return result ;\n }"}
{"idx": 4044, "target": 0, "func": "static void x8_get_ac_rlf ( IntraX8Context * const w , const int mode , int * const run , int * const level , int * const final ) {\n MpegEncContext * const s = w -> s ;\n int i , e ;\n i = get_vlc2 ( & s -> gb , w -> j_ac_vlc [ mode ] -> table , AC_VLC_BITS , AC_VLC_MTD ) ;\n if ( i < 46 ) {\n int t , l ;\n if ( i < 0 ) {\n ( * level ) = ( * final ) = ( * run ) = 64 ;\n return ;\n }\n ( * final ) = t = ( i > 22 ) ;\n i -= 23 * t ;\n l = ( 0xE50000 >> ( i & ( 0x1E ) ) ) & 3 ;\n t = ( 0x01030F >> ( l << 3 ) ) ;\n ( * run ) = i & t ;\n ( * level ) = l ;\n }\n else if ( i < 73 ) {\n uint32_t sm ;\n uint32_t mask ;\n i -= 46 ;\n sm = ac_decode_table [ i ] ;\n e = get_bits ( & s -> gb , sm & 0xF ) ;\n sm >>= 8 ;\n mask = sm & 0xff ;\n sm >>= 8 ;\n ( * run ) = ( sm & 0xff ) + ( e & ( mask ) ) ;\n ( * level ) = ( sm >> 8 ) + ( e & ( ~ mask ) ) ;\n ( * final ) = i > ( 58 - 46 ) ;\n }\n else if ( i < 75 ) {\n static const uint8_t crazy_mix_runlevel [ 32 ] = {\n 0x22 , 0x32 , 0x33 , 0x53 , 0x23 , 0x42 , 0x43 , 0x63 , 0x24 , 0x52 , 0x34 , 0x73 , 0x25 , 0x62 , 0x44 , 0x83 , 0x26 , 0x72 , 0x35 , 0x54 , 0x27 , 0x82 , 0x45 , 0x64 , 0x28 , 0x92 , 0x36 , 0x74 , 0x29 , 0xa2 , 0x46 , 0x84 }\n ;\n ( * final ) = ! ( i & 1 ) ;\n e = get_bits ( & s -> gb , 5 ) ;\n ( * run ) = crazy_mix_runlevel [ e ] >> 4 ;\n ( * level ) = crazy_mix_runlevel [ e ] & 0x0F ;\n }\n else {\n ( * level ) = get_bits ( & s -> gb , 7 - 3 * ( i & 1 ) ) ;\n ( * run ) = get_bits ( & s -> gb , 6 ) ;\n ( * final ) = get_bits1 ( & s -> gb ) ;\n }\n return ;\n }"}
{"idx": 4045, "target": 0, "func": "static int SpoolssRouterReplyPrinter_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , NULL , NULL , FALSE , FALSE ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_routerreplyprinter_condition , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_routerreplyprinter_unknown1 , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_routerreplyprinter_changeid , NULL ) ;\n return offset ;\n }"}
{"idx": 4046, "target": 0, "func": "int do_save_master_pos ( ) {\n MYSQL_RES * res ;\n MYSQL_ROW row ;\n MYSQL * mysql = cur_con -> mysql ;\n const char * query ;\n DBUG_ENTER ( \"do_save_master_pos\" ) ;\n # ifdef HAVE_NDB_BINLOG {\n ulong have_ndbcluster ;\n if ( mysql_query ( mysql , query = \"show variables like 'have_ndbcluster'\" ) ) die ( \"'%s' failed: %d %s\" , query , mysql_errno ( mysql ) , mysql_error ( mysql ) ) ;\n if ( ! ( res = mysql_store_result ( mysql ) ) ) die ( \"mysql_store_result() returned NULL for '%s'\" , query ) ;\n if ( ! ( row = mysql_fetch_row ( res ) ) ) die ( \"Query '%s' returned empty result\" , query ) ;\n have_ndbcluster = strcmp ( \"YES\" , row [ 1 ] ) == 0 ;\n mysql_free_result ( res ) ;\n if ( have_ndbcluster ) {\n ulonglong start_epoch = 0 , handled_epoch = 0 , latest_epoch = 0 , latest_trans_epoch = 0 , latest_handled_binlog_epoch = 0 , latest_received_binlog_epoch = 0 , latest_applied_binlog_epoch = 0 ;\n int count = 0 ;\n int do_continue = 1 ;\n while ( do_continue ) {\n const char binlog [ ] = \"binlog\" ;\n const char latest_epoch_str [ ] = \"latest_epoch=\" ;\n const char latest_trans_epoch_str [ ] = \"latest_trans_epoch=\" ;\n const char latest_received_binlog_epoch_str [ ] = \"latest_received_binlog_epoch\" ;\n const char latest_handled_binlog_epoch_str [ ] = \"latest_handled_binlog_epoch=\" ;\n const char latest_applied_binlog_epoch_str [ ] = \"latest_applied_binlog_epoch=\" ;\n if ( count ) my_sleep ( 100 * 1000 ) ;\n if ( mysql_query ( mysql , query = \"show engine ndb status\" ) ) die ( \"failed in '%s': %d %s\" , query , mysql_errno ( mysql ) , mysql_error ( mysql ) ) ;\n if ( ! ( res = mysql_store_result ( mysql ) ) ) die ( \"mysql_store_result() returned NULL for '%s'\" , query ) ;\n while ( ( row = mysql_fetch_row ( res ) ) ) {\n if ( strcmp ( row [ 1 ] , binlog ) == 0 ) {\n const char * status = row [ 2 ] ;\n while ( * status && strncmp ( status , latest_epoch_str , sizeof ( latest_epoch_str ) - 1 ) ) status ++ ;\n if ( * status ) {\n status += sizeof ( latest_epoch_str ) - 1 ;\n latest_epoch = strtoull ( status , ( char * * ) 0 , 10 ) ;\n }\n else die ( \"result does not contain '%s' in '%s'\" , latest_epoch_str , query ) ;\n while ( * status && strncmp ( status , latest_trans_epoch_str , sizeof ( latest_trans_epoch_str ) - 1 ) ) status ++ ;\n if ( * status ) {\n status += sizeof ( latest_trans_epoch_str ) - 1 ;\n latest_trans_epoch = strtoull ( status , ( char * * ) 0 , 10 ) ;\n }\n else die ( \"result does not contain '%s' in '%s'\" , latest_trans_epoch_str , query ) ;\n while ( * status && strncmp ( status , latest_received_binlog_epoch_str , sizeof ( latest_received_binlog_epoch_str ) - 1 ) ) status ++ ;\n if ( * status ) {\n status += sizeof ( latest_received_binlog_epoch_str ) - 1 ;\n latest_received_binlog_epoch = strtoull ( status , ( char * * ) 0 , 10 ) ;\n }\n else die ( \"result does not contain '%s' in '%s'\" , latest_received_binlog_epoch_str , query ) ;\n while ( * status && strncmp ( status , latest_handled_binlog_epoch_str , sizeof ( latest_handled_binlog_epoch_str ) - 1 ) ) status ++ ;\n if ( * status ) {\n status += sizeof ( latest_handled_binlog_epoch_str ) - 1 ;\n latest_handled_binlog_epoch = strtoull ( status , ( char * * ) 0 , 10 ) ;\n }\n else die ( \"result does not contain '%s' in '%s'\" , latest_handled_binlog_epoch_str , query ) ;\n while ( * status && strncmp ( status , latest_applied_binlog_epoch_str , sizeof ( latest_applied_binlog_epoch_str ) - 1 ) ) status ++ ;\n if ( * status ) {\n status += sizeof ( latest_applied_binlog_epoch_str ) - 1 ;\n latest_applied_binlog_epoch = strtoull ( status , ( char * * ) 0 , 10 ) ;\n }\n else die ( \"result does not contain '%s' in '%s'\" , latest_applied_binlog_epoch_str , query ) ;\n if ( count == 0 ) start_epoch = latest_trans_epoch ;\n break ;\n }\n }\n if ( ! row ) die ( \"result does not contain '%s' in '%s'\" , binlog , query ) ;\n if ( latest_handled_binlog_epoch > handled_epoch ) count = 0 ;\n handled_epoch = latest_handled_binlog_epoch ;\n count ++ ;\n if ( latest_handled_binlog_epoch >= start_epoch ) do_continue = 0 ;\n else if ( count > 300 ) {\n break ;\n }\n mysql_free_result ( res ) ;\n }\n }\n }\n # endif if ( mysql_query ( mysql , query = \"show master status\" ) ) die ( \"failed in 'show master status': %d %s\" , mysql_errno ( mysql ) , mysql_error ( mysql ) ) ;\n if ( ! ( res = mysql_store_result ( mysql ) ) ) die ( \"mysql_store_result() retuned NULL for '%s'\" , query ) ;\n if ( ! ( row = mysql_fetch_row ( res ) ) ) die ( \"empty result in show master status\" ) ;\n strnmov ( master_pos . file , row [ 0 ] , sizeof ( master_pos . file ) - 1 ) ;\n master_pos . pos = strtoul ( row [ 1 ] , ( char * * ) 0 , 10 ) ;\n mysql_free_result ( res ) ;\n DBUG_RETURN ( 0 ) ;\n }"}
{"idx": 4047, "target": 0, "func": "static int vdpau_h264_start_frame ( AVCodecContext * avctx , const uint8_t * buffer , uint32_t size ) {\n H264Context * const h = avctx -> priv_data ;\n AVVDPAUContext * hwctx = avctx -> hwaccel_context ;\n VdpPictureInfoH264 * info = & hwctx -> info . h264 ;\n Picture * pic = h -> cur_pic_ptr ;\n info -> slice_count = 0 ;\n info -> field_order_cnt [ 0 ] = h264_foc ( pic -> field_poc [ 0 ] ) ;\n info -> field_order_cnt [ 1 ] = h264_foc ( pic -> field_poc [ 1 ] ) ;\n info -> is_reference = h -> nal_ref_idc != 0 ;\n info -> frame_num = h -> frame_num ;\n info -> field_pic_flag = h -> picture_structure != PICT_FRAME ;\n info -> bottom_field_flag = h -> picture_structure == PICT_BOTTOM_FIELD ;\n info -> num_ref_frames = h -> sps . ref_frame_count ;\n info -> mb_adaptive_frame_field_flag = h -> sps . mb_aff && ! info -> field_pic_flag ;\n info -> constrained_intra_pred_flag = h -> pps . constrained_intra_pred ;\n info -> weighted_pred_flag = h -> pps . weighted_pred ;\n info -> weighted_bipred_idc = h -> pps . weighted_bipred_idc ;\n info -> frame_mbs_only_flag = h -> sps . frame_mbs_only_flag ;\n info -> transform_8x8_mode_flag = h -> pps . transform_8x8_mode ;\n info -> chroma_qp_index_offset = h -> pps . chroma_qp_index_offset [ 0 ] ;\n info -> second_chroma_qp_index_offset = h -> pps . chroma_qp_index_offset [ 1 ] ;\n info -> pic_init_qp_minus26 = h -> pps . init_qp - 26 ;\n info -> num_ref_idx_l0_active_minus1 = h -> pps . ref_count [ 0 ] - 1 ;\n info -> num_ref_idx_l1_active_minus1 = h -> pps . ref_count [ 1 ] - 1 ;\n info -> log2_max_frame_num_minus4 = h -> sps . log2_max_frame_num - 4 ;\n info -> pic_order_cnt_type = h -> sps . poc_type ;\n info -> log2_max_pic_order_cnt_lsb_minus4 = h -> sps . poc_type ? 0 : h -> sps . log2_max_poc_lsb - 4 ;\n info -> delta_pic_order_always_zero_flag = h -> sps . delta_pic_order_always_zero_flag ;\n info -> direct_8x8_inference_flag = h -> sps . direct_8x8_inference_flag ;\n info -> entropy_coding_mode_flag = h -> pps . cabac ;\n info -> pic_order_present_flag = h -> pps . pic_order_present ;\n info -> deblocking_filter_control_present_flag = h -> pps . deblocking_filter_parameters_present ;\n info -> redundant_pic_cnt_present_flag = h -> pps . redundant_pic_cnt_present ;\n memcpy ( info -> scaling_lists_4x4 , h -> pps . scaling_matrix4 , sizeof ( info -> scaling_lists_4x4 ) ) ;\n memcpy ( info -> scaling_lists_8x8 [ 0 ] , h -> pps . scaling_matrix8 [ 0 ] , sizeof ( info -> scaling_lists_8x8 [ 0 ] ) ) ;\n memcpy ( info -> scaling_lists_8x8 [ 1 ] , h -> pps . scaling_matrix8 [ 3 ] , sizeof ( info -> scaling_lists_8x8 [ 1 ] ) ) ;\n vdpau_h264_set_reference_frames ( avctx ) ;\n return ff_vdpau_common_start_frame ( avctx , buffer , size ) ;\n }"}
{"idx": 4048, "target": 0, "func": "TSReturnCode TSMimeHdrFieldValueStringInsert ( TSMBuffer bufp , TSMLoc hdr , TSMLoc field , int idx , const char * value , int length ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( hdr ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( hdr ) == TS_SUCCESS ) ) ;\n sdk_assert ( sdk_sanity_check_field_handle ( field , hdr ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) value ) == TS_SUCCESS ) ;\n if ( ! isWriteable ( bufp ) ) {\n return TS_ERROR ;\n }\n if ( length == - 1 ) {\n length = strlen ( value ) ;\n }\n TSMimeFieldValueInsert ( bufp , field , value , length , idx ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 4049, "target": 0, "func": "int vp9_alloc_ref_frame_buffers ( VP9_COMMON * cm , int width , int height ) {\n int i ;\n const int ss_x = cm -> subsampling_x ;\n const int ss_y = cm -> subsampling_y ;\n vp9_free_ref_frame_buffers ( cm ) ;\n for ( i = 0 ;\n i < FRAME_BUFFERS ;\n ++ i ) {\n cm -> frame_bufs [ i ] . ref_count = 0 ;\n if ( vp9_alloc_frame_buffer ( & cm -> frame_bufs [ i ] . buf , width , height , ss_x , ss_y , # if CONFIG_VP9_HIGHBITDEPTH cm -> use_highbitdepth , # endif VP9_ENC_BORDER_IN_PIXELS ) < 0 ) goto fail ;\n }\n init_frame_bufs ( cm ) ;\n # if CONFIG_INTERNAL_STATS || CONFIG_VP9_POSTPROC if ( vp9_alloc_frame_buffer ( & cm -> post_proc_buffer , width , height , ss_x , ss_y , # if CONFIG_VP9_HIGHBITDEPTH cm -> use_highbitdepth , # endif VP9_ENC_BORDER_IN_PIXELS ) < 0 ) goto fail ;\n # endif return 0 ;\n fail : vp9_free_ref_frame_buffers ( cm ) ;\n return 1 ;\n }"}
{"idx": 4050, "target": 0, "func": "static Cost orderby_operands_eval_cost ( PlannerInfo * root , IndexPath * path ) {\n Cost qual_arg_cost = 0 ;\n ListCell * lc ;\n foreach ( lc , path -> indexorderbys ) {\n Expr * clause = ( Expr * ) lfirst ( lc ) ;\n Node * other_operand ;\n QualCost index_qual_cost ;\n if ( IsA ( clause , OpExpr ) ) {\n other_operand = get_rightop ( clause ) ;\n }\n else {\n elog ( ERROR , \"unsupported indexorderby type: %d\" , ( int ) nodeTag ( clause ) ) ;\n other_operand = NULL ;\n }\n cost_qual_eval_node ( & index_qual_cost , other_operand , root ) ;\n qual_arg_cost += index_qual_cost . startup + index_qual_cost . per_tuple ;\n }\n return qual_arg_cost ;\n }"}
{"idx": 4051, "target": 0, "func": "static void test_fetch_long ( ) {\n int rc ;\n myheader ( \"test_fetch_long\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_bind_fetch\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_bind_fetch(c1 int unsigned, \\ c2 int unsigned, \\ c3 int, \\ c4 int, \\ c5 int, \\ c6 int unsigned, \\ c7 int)\" ) ;\n myquery ( rc ) ;\n bind_fetch ( 4 ) ;\n }"}
{"idx": 4052, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , MAYBE_TestClearDefaultGetsPropagatedToIO ) {\n std : : string scheme ( \"mailto\" ) ;\n ProtocolHandler ph1 = CreateProtocolHandler ( scheme , \"test1\" ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ;\n registry ( ) -> ClearDefault ( scheme ) ;\n scoped_ptr < ProtocolHandlerRegistry : : JobInterceptorFactory > interceptor ( registry ( ) -> CreateJobInterceptorFactory ( ) ) ;\n AssertWillHandle ( scheme , false , interceptor . get ( ) ) ;\n }"}
{"idx": 4053, "target": 0, "func": "static void collect_features_arabic ( hb_ot_shape_planner_t * plan ) {\n hb_ot_map_builder_t * map = & plan -> map ;\n map -> add_gsub_pause ( nuke_joiners ) ;\n map -> add_global_bool_feature ( HB_TAG ( 'c' , 'c' , 'm' , 'p' ) ) ;\n map -> add_global_bool_feature ( HB_TAG ( 'l' , 'o' , 'c' , 'l' ) ) ;\n map -> add_gsub_pause ( NULL ) ;\n for ( unsigned int i = 0 ;\n i < ARABIC_NUM_FEATURES ;\n i ++ ) {\n bool has_fallback = plan -> props . script == HB_SCRIPT_ARABIC && ! FEATURE_IS_SYRIAC ( arabic_features [ i ] ) ;\n map -> add_feature ( arabic_features [ i ] , 1 , has_fallback ? F_HAS_FALLBACK : F_NONE ) ;\n map -> add_gsub_pause ( NULL ) ;\n }\n map -> add_feature ( HB_TAG ( 'r' , 'l' , 'i' , 'g' ) , 1 , F_GLOBAL | F_HAS_FALLBACK ) ;\n if ( plan -> props . script == HB_SCRIPT_ARABIC ) map -> add_gsub_pause ( arabic_fallback_shape ) ;\n map -> add_global_bool_feature ( HB_TAG ( 'c' , 'a' , 'l' , 't' ) ) ;\n map -> add_gsub_pause ( NULL ) ;\n map -> add_global_bool_feature ( HB_TAG ( 'm' , 's' , 'e' , 't' ) ) ;\n }"}
{"idx": 4054, "target": 0, "func": "static struct object_entry * insert_object ( unsigned char * sha1 ) {\n unsigned int h = sha1 [ 0 ] << 8 | sha1 [ 1 ] ;\n struct object_entry * e = object_table [ h ] ;\n while ( e ) {\n if ( ! hashcmp ( sha1 , e -> idx . sha1 ) ) return e ;\n e = e -> next ;\n }\n e = new_object ( sha1 ) ;\n e -> next = object_table [ h ] ;\n e -> idx . offset = 0 ;\n object_table [ h ] = e ;\n return e ;\n }"}
{"idx": 4055, "target": 0, "func": "Datum eqjoinsel ( PG_FUNCTION_ARGS ) {\n PlannerInfo * root = ( PlannerInfo * ) PG_GETARG_POINTER ( 0 ) ;\n Oid operator = PG_GETARG_OID ( 1 ) ;\n List * args = ( List * ) PG_GETARG_POINTER ( 2 ) ;\n # ifdef NOT_USED JoinType jointype = ( JoinType ) PG_GETARG_INT16 ( 3 ) ;\n # endif SpecialJoinInfo * sjinfo = ( SpecialJoinInfo * ) PG_GETARG_POINTER ( 4 ) ;\n double selec ;\n VariableStatData vardata1 ;\n VariableStatData vardata2 ;\n bool join_is_reversed ;\n RelOptInfo * inner_rel ;\n get_join_variables ( root , args , sjinfo , & vardata1 , & vardata2 , & join_is_reversed ) ;\n switch ( sjinfo -> jointype ) {\n case JOIN_INNER : case JOIN_LEFT : case JOIN_FULL : selec = eqjoinsel_inner ( operator , & vardata1 , & vardata2 ) ;\n break ;\n case JOIN_SEMI : case JOIN_ANTI : inner_rel = find_join_input_rel ( root , sjinfo -> min_righthand ) ;\n if ( ! join_is_reversed ) selec = eqjoinsel_semi ( operator , & vardata1 , & vardata2 , inner_rel ) ;\n else selec = eqjoinsel_semi ( get_commutator ( operator ) , & vardata2 , & vardata1 , inner_rel ) ;\n break ;\n default : elog ( ERROR , \"unrecognized join type: %d\" , ( int ) sjinfo -> jointype ) ;\n selec = 0 ;\n break ;\n }\n ReleaseVariableStats ( vardata1 ) ;\n ReleaseVariableStats ( vardata2 ) ;\n CLAMP_PROBABILITY ( selec ) ;\n PG_RETURN_FLOAT8 ( ( float8 ) selec ) ;\n }"}
{"idx": 4056, "target": 0, "func": "static inline void xan_wc3_copy_pixel_run ( XanContext * s , AVFrame * frame , int x , int y , int pixel_count , int motion_x , int motion_y ) {\n int stride ;\n int line_inc ;\n int curframe_index , prevframe_index ;\n int curframe_x , prevframe_x ;\n int width = s -> avctx -> width ;\n unsigned char * palette_plane , * prev_palette_plane ;\n if ( y + motion_y < 0 || y + motion_y >= s -> avctx -> height || x + motion_x < 0 || x + motion_x >= s -> avctx -> width ) return ;\n palette_plane = frame -> data [ 0 ] ;\n prev_palette_plane = s -> last_frame . data [ 0 ] ;\n if ( ! prev_palette_plane ) prev_palette_plane = palette_plane ;\n stride = frame -> linesize [ 0 ] ;\n line_inc = stride - width ;\n curframe_index = y * stride + x ;\n curframe_x = x ;\n prevframe_index = ( y + motion_y ) * stride + x + motion_x ;\n prevframe_x = x + motion_x ;\n while ( pixel_count && curframe_index < s -> frame_size && prevframe_index < s -> frame_size ) {\n int count = FFMIN3 ( pixel_count , width - curframe_x , width - prevframe_x ) ;\n memcpy ( palette_plane + curframe_index , prev_palette_plane + prevframe_index , count ) ;\n pixel_count -= count ;\n curframe_index += count ;\n prevframe_index += count ;\n curframe_x += count ;\n prevframe_x += count ;\n if ( curframe_x >= width ) {\n curframe_index += line_inc ;\n curframe_x = 0 ;\n }\n if ( prevframe_x >= width ) {\n prevframe_index += line_inc ;\n prevframe_x = 0 ;\n }\n }\n }"}
{"idx": 4057, "target": 0, "func": "static void prplcb_close_request ( PurpleRequestType type , void * data ) {\n struct prplcb_request_action_data * pqad ;\n struct request_input_data * ri ;\n struct purple_data * pd ;\n if ( ! data ) {\n return ;\n }\n switch ( type ) {\n case PURPLE_REQUEST_ACTION : pqad = data ;\n if ( pqad -> bee_data ) {\n query_del ( local_bee -> ui_data , pqad -> bee_data ) ;\n }\n g_free ( pqad ) ;\n break ;\n case PURPLE_REQUEST_INPUT : ri = data ;\n pd = ri -> ic -> proto_data ;\n imcb_remove_buddy ( ri -> ic , ri -> buddy , NULL ) ;\n g_free ( ri -> buddy ) ;\n g_hash_table_remove ( pd -> input_requests , GUINT_TO_POINTER ( ri -> id ) ) ;\n break ;\n default : g_free ( data ) ;\n break ;\n }\n }"}
{"idx": 4058, "target": 0, "func": "err_status_t srtp_dealloc ( srtp_t session ) {\n srtp_stream_ctx_t * stream ;\n err_status_t status ;\n stream = session -> stream_list ;\n while ( stream != NULL ) {\n srtp_stream_t next = stream -> next ;\n status = srtp_stream_dealloc ( session , stream ) ;\n if ( status ) return status ;\n stream = next ;\n }\n if ( session -> stream_template != NULL ) {\n status = auth_dealloc ( session -> stream_template -> rtcp_auth ) ;\n if ( status ) return status ;\n status = cipher_dealloc ( session -> stream_template -> rtcp_cipher ) ;\n if ( status ) return status ;\n crypto_free ( session -> stream_template -> limit ) ;\n status = cipher_dealloc ( session -> stream_template -> rtp_cipher ) ;\n if ( status ) return status ;\n status = auth_dealloc ( session -> stream_template -> rtp_auth ) ;\n if ( status ) return status ;\n status = rdbx_dealloc ( & session -> stream_template -> rtp_rdbx ) ;\n if ( status ) return status ;\n crypto_free ( session -> stream_template ) ;\n }\n crypto_free ( session ) ;\n return err_status_ok ;\n }"}
{"idx": 4059, "target": 0, "func": "void qmp_inject_nmi ( Error * * errp ) {\n # if defined ( TARGET_I386 ) CPUArchState * env ;\n for ( env = first_cpu ;\n env != NULL ;\n env = env -> next_cpu ) {\n if ( ! env -> apic_state ) {\n cpu_interrupt ( CPU ( x86_env_get_cpu ( env ) ) , CPU_INTERRUPT_NMI ) ;\n }\n else {\n apic_deliver_nmi ( env -> apic_state ) ;\n }\n }\n # else error_set ( errp , QERR_UNSUPPORTED ) ;\n # endif }"}
{"idx": 4060, "target": 0, "func": "static void close_input_file ( InputFile * ifile ) {\n int i ;\n for ( i = 0 ;\n i < ifile -> nb_streams ;\n i ++ ) if ( ifile -> streams [ i ] . st -> codecpar -> codec_id != AV_CODEC_ID_NONE ) avcodec_free_context ( & ifile -> streams [ i ] . dec_ctx ) ;\n av_freep ( & ifile -> streams ) ;\n ifile -> nb_streams = 0 ;\n avformat_close_input ( & ifile -> fmt_ctx ) ;\n }"}
{"idx": 4061, "target": 0, "func": "static void free_resources ( ) {\n if ( md_result_file && md_result_file != stdout ) my_fclose ( md_result_file , MYF ( 0 ) ) ;\n my_free ( opt_password ) ;\n my_free ( current_host ) ;\n if ( my_hash_inited ( & ignore_table ) ) my_hash_free ( & ignore_table ) ;\n if ( extended_insert ) dynstr_free ( & extended_row ) ;\n if ( insert_pat_inited ) dynstr_free ( & insert_pat ) ;\n if ( defaults_argv ) free_defaults ( defaults_argv ) ;\n mysql_library_end ( ) ;\n my_end ( my_end_arg ) ;\n }"}
{"idx": 4062, "target": 0, "func": "static time_t _warc_rdrtm ( const char * buf , size_t bsz ) {\n static const char _key [ ] = \"\\r\\nWARC-Date:\" ;\n const char * val , * eol ;\n char * on = NULL ;\n time_t res ;\n if ( ( val = xmemmem ( buf , bsz , _key , sizeof ( _key ) - 1U ) ) == NULL ) {\n return ( time_t ) - 1 ;\n }\n val += sizeof ( _key ) - 1U ;\n if ( ( eol = _warc_find_eol ( val , buf + bsz - val ) ) == NULL ) {\n return - 1 ;\n }\n res = xstrpisotime ( val , & on ) ;\n if ( on != eol ) {\n return - 1 ;\n }\n return res ;\n }"}
{"idx": 4063, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( DownloadNotificationTest , CancelDownload ) {\n CreateDownload ( ) ;\n display_service_ -> SimulateClick ( NotificationHandler : : Type : : TRANSIENT , notification_id ( ) , 1 , base : : nullopt ) ;\n EXPECT_FALSE ( notification ( ) ) ;\n EXPECT_EQ ( 0u , GetDownloadNotifications ( ) . size ( ) ) ;\n std : : vector < download : : DownloadItem * > downloads ;\n GetDownloadManager ( browser ( ) ) -> GetAllDownloads ( & downloads ) ;\n ASSERT_EQ ( 1u , downloads . size ( ) ) ;\n EXPECT_EQ ( download : : DownloadItem : : CANCELLED , downloads [ 0 ] -> GetState ( ) ) ;\n }"}
{"idx": 4064, "target": 0, "func": "static UBool _isVariantSubtag ( const char * s , int32_t len ) {\n if ( len < 0 ) {\n len = ( int32_t ) uprv_strlen ( s ) ;\n }\n if ( len >= 5 && len <= 8 && _isAlphaNumericString ( s , len ) ) {\n return TRUE ;\n }\n if ( len == 4 && ISNUMERIC ( * s ) && _isAlphaNumericString ( s + 1 , 3 ) ) {\n return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 4065, "target": 0, "func": "proto_tree * proto_tree_create_root ( packet_info * pinfo ) {\n proto_node * pnode ;\n pnode = g_slice_new ( proto_tree ) ;\n PROTO_NODE_INIT ( pnode ) ;\n pnode -> parent = NULL ;\n PNODE_FINFO ( pnode ) = NULL ;\n pnode -> tree_data = g_slice_new ( tree_data_t ) ;\n pnode -> tree_data -> pinfo = pinfo ;\n pnode -> tree_data -> interesting_hfids = NULL ;\n pnode -> tree_data -> visible = FALSE ;\n pnode -> tree_data -> fake_protocols = TRUE ;\n pnode -> tree_data -> count = 0 ;\n return ( proto_tree * ) pnode ;\n }"}
{"idx": 4066, "target": 0, "func": "static void adaptive_gain_control ( float * out , const float * in , const float * speech_synth , int size , float alpha , float * gain_mem ) {\n int i ;\n float speech_energy = 0.0 , postfilter_energy = 0.0 , gain_scale_factor ;\n float mem = * gain_mem ;\n for ( i = 0 ;\n i < size ;\n i ++ ) {\n speech_energy += fabsf ( speech_synth [ i ] ) ;\n postfilter_energy += fabsf ( in [ i ] ) ;\n }\n gain_scale_factor = ( 1.0 - alpha ) * speech_energy / postfilter_energy ;\n for ( i = 0 ;\n i < size ;\n i ++ ) {\n mem = alpha * mem + gain_scale_factor ;\n out [ i ] = in [ i ] * mem ;\n }\n * gain_mem = mem ;\n }"}
{"idx": 4067, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n VideoXLContext * const a = avctx -> priv_data ;\n AVFrame * const p = & a -> pic ;\n uint8_t * Y , * U , * V ;\n int i , j , ret ;\n int stride ;\n uint32_t val ;\n int y0 , y1 , y2 , y3 = 0 , c0 = 0 , c1 = 0 ;\n if ( p -> data [ 0 ] ) avctx -> release_buffer ( avctx , p ) ;\n p -> reference = 0 ;\n if ( ( ret = ff_get_buffer ( avctx , p ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n p -> pict_type = AV_PICTURE_TYPE_I ;\n p -> key_frame = 1 ;\n Y = a -> pic . data [ 0 ] ;\n U = a -> pic . data [ 1 ] ;\n V = a -> pic . data [ 2 ] ;\n stride = avctx -> width - 4 ;\n if ( buf_size < avctx -> width * avctx -> height ) {\n av_log ( avctx , AV_LOG_ERROR , \"Packet is too small\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( i = 0 ;\n i < avctx -> height ;\n i ++ ) {\n buf += stride ;\n for ( j = 0 ;\n j < avctx -> width ;\n j += 4 ) {\n val = AV_RL32 ( buf ) ;\n buf -= 4 ;\n val = ( ( val >> 16 ) & 0xFFFF ) | ( ( val & 0xFFFF ) << 16 ) ;\n if ( ! j ) y0 = ( val & 0x1F ) << 2 ;\n else y0 = y3 + xl_table [ val & 0x1F ] ;\n val >>= 5 ;\n y1 = y0 + xl_table [ val & 0x1F ] ;\n val >>= 5 ;\n y2 = y1 + xl_table [ val & 0x1F ] ;\n val >>= 6 ;\n y3 = y2 + xl_table [ val & 0x1F ] ;\n val >>= 5 ;\n if ( ! j ) c0 = ( val & 0x1F ) << 2 ;\n else c0 += xl_table [ val & 0x1F ] ;\n val >>= 5 ;\n if ( ! j ) c1 = ( val & 0x1F ) << 2 ;\n else c1 += xl_table [ val & 0x1F ] ;\n Y [ j + 0 ] = y0 << 1 ;\n Y [ j + 1 ] = y1 << 1 ;\n Y [ j + 2 ] = y2 << 1 ;\n Y [ j + 3 ] = y3 << 1 ;\n U [ j >> 2 ] = c0 << 1 ;\n V [ j >> 2 ] = c1 << 1 ;\n }\n buf += avctx -> width + 4 ;\n Y += a -> pic . linesize [ 0 ] ;\n U += a -> pic . linesize [ 1 ] ;\n V += a -> pic . linesize [ 2 ] ;\n }\n * got_frame = 1 ;\n * ( AVFrame * ) data = a -> pic ;\n return buf_size ;\n }"}
{"idx": 4068, "target": 1, "func": "void vp9_rc_get_second_pass_params ( VP9_COMP * cpi ) {\n VP9_COMMON * const cm = & cpi -> common ;\n RATE_CONTROL * const rc = & cpi -> rc ;\n TWO_PASS * const twopass = & cpi -> twopass ;\n GF_GROUP * const gf_group = & twopass -> gf_group ;\n int frames_left ;\n FIRSTPASS_STATS this_frame ;\n FIRSTPASS_STATS this_frame_copy ;\n int target_rate ;\n LAYER_CONTEXT * const lc = is_two_pass_svc ( cpi ) ? & cpi -> svc . layer_context [ cpi -> svc . spatial_layer_id ] : 0 ;\n if ( lc != NULL ) {\n frames_left = ( int ) ( twopass -> total_stats . count - lc -> current_video_frame_in_layer ) ;\n }\n else {\n frames_left = ( int ) ( twopass -> total_stats . count - cm -> current_video_frame ) ;\n }\n if ( ! twopass -> stats_in ) return ;\n if ( gf_group -> update_type [ gf_group -> index ] == ARF_UPDATE ) {\n int target_rate ;\n configure_buffer_updates ( cpi ) ;\n target_rate = gf_group -> bit_allocation [ gf_group -> index ] ;\n target_rate = vp9_rc_clamp_pframe_target_size ( cpi , target_rate ) ;\n rc -> base_frame_target = target_rate ;\n if ( cpi -> oxcf . rc_mode == VPX_VBR ) vbr_rate_correction ( & target_rate , rc -> vbr_bits_off_target ) ;\n vp9_rc_set_frame_target ( cpi , target_rate ) ;\n cm -> frame_type = INTER_FRAME ;\n if ( lc != NULL ) {\n if ( cpi -> svc . spatial_layer_id == 0 ) {\n lc -> is_key_frame = 0 ;\n }\n else {\n lc -> is_key_frame = cpi -> svc . layer_context [ 0 ] . is_key_frame ;\n if ( lc -> is_key_frame ) cpi -> ref_frame_flags &= ( ~ VP9_LAST_FLAG ) ;\n }\n }\n return ;\n }\n vp9_clear_system_state ( ) ;\n if ( lc != NULL && twopass -> kf_intra_err_min == 0 ) {\n twopass -> kf_intra_err_min = KF_MB_INTRA_MIN * cpi -> common . MBs ;\n twopass -> gf_intra_err_min = GF_MB_INTRA_MIN * cpi -> common . MBs ;\n }\n if ( cpi -> oxcf . rc_mode == VPX_Q ) {\n twopass -> active_worst_quality = cpi -> oxcf . cq_level ;\n }\n else if ( cm -> current_video_frame == 0 || ( lc != NULL && lc -> current_video_frame_in_layer == 0 ) ) {\n const int section_target_bandwidth = ( int ) ( twopass -> bits_left / frames_left ) ;\n const int tmp_q = get_twopass_worst_quality ( cpi , & twopass -> total_left_stats , section_target_bandwidth ) ;\n twopass -> active_worst_quality = tmp_q ;\n rc -> ni_av_qi = tmp_q ;\n rc -> avg_q = vp9_convert_qindex_to_q ( tmp_q ) ;\n }\n vp9_zero ( this_frame ) ;\n if ( EOF == input_stats ( twopass , & this_frame ) ) return ;\n this_frame_copy = this_frame ;\n if ( rc -> frames_to_key == 0 || ( cpi -> frame_flags & FRAMEFLAGS_KEY ) ) {\n find_next_key_frame ( cpi , & this_frame_copy ) ;\n }\n else {\n cm -> frame_type = INTER_FRAME ;\n }\n if ( lc != NULL ) {\n if ( cpi -> svc . spatial_layer_id == 0 ) {\n lc -> is_key_frame = ( cm -> frame_type == KEY_FRAME ) ;\n if ( lc -> is_key_frame ) {\n cpi -> ref_frame_flags &= ( ~ VP9_LAST_FLAG & ~ VP9_GOLD_FLAG & ~ VP9_ALT_FLAG ) ;\n lc -> frames_from_key_frame = 0 ;\n }\n }\n else {\n cm -> frame_type = INTER_FRAME ;\n lc -> is_key_frame = cpi -> svc . layer_context [ 0 ] . is_key_frame ;\n if ( lc -> is_key_frame ) {\n cpi -> ref_frame_flags &= ( ~ VP9_LAST_FLAG ) ;\n lc -> frames_from_key_frame = 0 ;\n }\n }\n }\n if ( rc -> frames_till_gf_update_due == 0 ) {\n define_gf_group ( cpi , & this_frame_copy ) ;\n if ( twopass -> gf_zeromotion_pct > 995 ) {\n if ( ! cm -> show_frame ) cpi -> allow_encode_breakout = ENCODE_BREAKOUT_DISABLED ;\n else cpi -> allow_encode_breakout = ENCODE_BREAKOUT_LIMITED ;\n }\n rc -> frames_till_gf_update_due = rc -> baseline_gf_interval ;\n if ( lc != NULL ) cpi -> refresh_golden_frame = 1 ;\n }\n configure_buffer_updates ( cpi ) ;\n target_rate = gf_group -> bit_allocation [ gf_group -> index ] ;\n if ( cpi -> common . frame_type == KEY_FRAME ) target_rate = vp9_rc_clamp_iframe_target_size ( cpi , target_rate ) ;\n else target_rate = vp9_rc_clamp_pframe_target_size ( cpi , target_rate ) ;\n rc -> base_frame_target = target_rate ;\n if ( cpi -> oxcf . rc_mode == VPX_VBR ) vbr_rate_correction ( & target_rate , rc -> vbr_bits_off_target ) ;\n vp9_rc_set_frame_target ( cpi , target_rate ) ;\n subtract_stats ( & twopass -> total_left_stats , & this_frame ) ;\n }"}
{"idx": 4069, "target": 0, "func": "static int rds_notify_cong ( struct rds_sock * rs , struct msghdr * msghdr ) {\n uint64_t notify = rs -> rs_cong_notify ;\n unsigned long flags ;\n int err ;\n err = put_cmsg ( msghdr , SOL_RDS , RDS_CMSG_CONG_UPDATE , sizeof ( notify ) , & notify ) ;\n if ( err ) return err ;\n spin_lock_irqsave ( & rs -> rs_lock , flags ) ;\n rs -> rs_cong_notify &= ~ notify ;\n spin_unlock_irqrestore ( & rs -> rs_lock , flags ) ;\n return 0 ;\n }"}
{"idx": 4070, "target": 0, "func": "static void pdf_run_gs_CA ( fz_context * ctx , pdf_processor * proc , float alpha ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_gstate * gstate = pdf_flush_text ( ctx , pr ) ;\n gstate -> stroke . alpha = fz_clamp ( alpha , 0 , 1 ) ;\n }"}
{"idx": 4071, "target": 0, "func": "static inline void copy_context_after_encode ( MpegEncContext * d , MpegEncContext * s , int type ) {\n int i ;\n memcpy ( d -> mv , s -> mv , 2 * 4 * 2 * sizeof ( int ) ) ;\n memcpy ( d -> last_mv , s -> last_mv , 2 * 2 * 2 * sizeof ( int ) ) ;\n d -> mb_skip_run = s -> mb_skip_run ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) d -> last_dc [ i ] = s -> last_dc [ i ] ;\n d -> mv_bits = s -> mv_bits ;\n d -> i_tex_bits = s -> i_tex_bits ;\n d -> p_tex_bits = s -> p_tex_bits ;\n d -> i_count = s -> i_count ;\n d -> f_count = s -> f_count ;\n d -> b_count = s -> b_count ;\n d -> skip_count = s -> skip_count ;\n d -> misc_bits = s -> misc_bits ;\n d -> mb_intra = s -> mb_intra ;\n d -> mb_skipped = s -> mb_skipped ;\n d -> mv_type = s -> mv_type ;\n d -> mv_dir = s -> mv_dir ;\n d -> pb = s -> pb ;\n if ( s -> data_partitioning ) {\n d -> pb2 = s -> pb2 ;\n d -> tex_pb = s -> tex_pb ;\n }\n d -> block = s -> block ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) d -> block_last_index [ i ] = s -> block_last_index [ i ] ;\n d -> interlaced_dct = s -> interlaced_dct ;\n d -> qscale = s -> qscale ;\n d -> esc3_level_length = s -> esc3_level_length ;\n }"}
{"idx": 4072, "target": 0, "func": "static void ffprobe_cleanup ( int ret ) {\n int i ;\n for ( i = 0 ;\n i < FF_ARRAY_ELEMS ( sections ) ;\n i ++ ) av_dict_free ( & ( sections [ i ] . entries_to_show ) ) ;\n # if HAVE_THREADS pthread_mutex_destroy ( & log_mutex ) ;\n # endif }"}
{"idx": 4073, "target": 0, "func": "static void cmd_cycle ( const char * data , SERVER_REC * server , WI_ITEM_REC * item ) {\n CHANNEL_REC * chanrec ;\n char * channame , * msg , * joindata ;\n void * free_arg ;\n g_return_if_fail ( data != NULL ) ;\n if ( ! IS_SERVER ( server ) || ! server -> connected ) cmd_return_error ( CMDERR_NOT_CONNECTED ) ;\n if ( ! cmd_get_params ( data , & free_arg , 2 | PARAM_FLAG_OPTCHAN , item , & channame , & msg ) ) return ;\n if ( * channame == '\\0' ) cmd_param_error ( CMDERR_NOT_ENOUGH_PARAMS ) ;\n chanrec = channel_find ( server , channame ) ;\n if ( chanrec == NULL ) cmd_param_error ( CMDERR_CHAN_NOT_FOUND ) ;\n joindata = chanrec -> get_join_data ( chanrec ) ;\n window_bind_add ( window_item_window ( chanrec ) , chanrec -> server -> tag , chanrec -> name ) ;\n signal_emit ( \"command part\" , 3 , data , server , item ) ;\n if ( g_slist_find ( channels , chanrec ) != NULL ) {\n chanrec -> left = TRUE ;\n channel_destroy ( chanrec ) ;\n }\n server -> channels_join ( server , joindata , FALSE ) ;\n g_free ( joindata ) ;\n cmd_params_free ( free_arg ) ;\n }"}
{"idx": 4074, "target": 0, "func": "void ff_vdpau_h264_picture_start ( H264Context * h ) {\n struct vdpau_render_state * render ;\n int i ;\n render = ( struct vdpau_render_state * ) h -> cur_pic_ptr -> f . data [ 0 ] ;\n assert ( render ) ;\n for ( i = 0 ;\n i < 2 ;\n ++ i ) {\n int foc = h -> cur_pic_ptr -> field_poc [ i ] ;\n if ( foc == INT_MAX ) foc = 0 ;\n render -> info . h264 . field_order_cnt [ i ] = foc ;\n }\n render -> info . h264 . frame_num = h -> frame_num ;\n }"}
{"idx": 4075, "target": 0, "func": "static uint32_t e1000e_mac_itr_read ( E1000ECore * core , int index ) {\n return core -> itr_guest_value ;\n }"}
{"idx": 4076, "target": 0, "func": "static void restore_coding_context ( VP9_COMP * cpi ) {\n CODING_CONTEXT * const cc = & cpi -> coding_context ;\n VP9_COMMON * cm = & cpi -> common ;\n vp9_copy ( cpi -> mb . nmvjointcost , cc -> nmvjointcost ) ;\n vpx_memcpy ( cpi -> nmvcosts [ 0 ] , cc -> nmvcosts [ 0 ] , MV_VALS * sizeof ( * cc -> nmvcosts [ 0 ] ) ) ;\n vpx_memcpy ( cpi -> nmvcosts [ 1 ] , cc -> nmvcosts [ 1 ] , MV_VALS * sizeof ( * cc -> nmvcosts [ 1 ] ) ) ;\n vpx_memcpy ( cpi -> nmvcosts_hp [ 0 ] , cc -> nmvcosts_hp [ 0 ] , MV_VALS * sizeof ( * cc -> nmvcosts_hp [ 0 ] ) ) ;\n vpx_memcpy ( cpi -> nmvcosts_hp [ 1 ] , cc -> nmvcosts_hp [ 1 ] , MV_VALS * sizeof ( * cc -> nmvcosts_hp [ 1 ] ) ) ;\n vp9_copy ( cm -> seg . pred_probs , cc -> segment_pred_probs ) ;\n vpx_memcpy ( cm -> last_frame_seg_map , cpi -> coding_context . last_frame_seg_map_copy , ( cm -> mi_rows * cm -> mi_cols ) ) ;\n vp9_copy ( cm -> lf . last_ref_deltas , cc -> last_ref_lf_deltas ) ;\n vp9_copy ( cm -> lf . last_mode_deltas , cc -> last_mode_lf_deltas ) ;\n cm -> fc = cc -> fc ;\n }"}
{"idx": 4077, "target": 0, "func": "static void e1000e_set_ctrlext ( E1000ECore * core , int index , uint32_t val ) {\n trace_e1000e_link_set_ext_params ( ! ! ( val & E1000_CTRL_EXT_ASDCHK ) , ! ! ( val & E1000_CTRL_EXT_SPD_BYPS ) ) ;\n val &= ~ ( E1000_CTRL_EXT_ASDCHK | E1000_CTRL_EXT_EE_RST ) ;\n core -> mac [ CTRL_EXT ] = val ;\n }"}
{"idx": 4078, "target": 0, "func": "static void directory_load_state_free ( DirectoryLoadState * state ) {\n if ( state -> enumerator ) {\n if ( ! g_file_enumerator_is_closed ( state -> enumerator ) ) {\n g_file_enumerator_close_async ( state -> enumerator , 0 , NULL , NULL , NULL ) ;\n }\n g_object_unref ( state -> enumerator ) ;\n }\n if ( state -> load_mime_list_hash != NULL ) {\n istr_set_destroy ( state -> load_mime_list_hash ) ;\n }\n nautilus_file_unref ( state -> load_directory_file ) ;\n g_object_unref ( state -> cancellable ) ;\n g_free ( state ) ;\n }"}
{"idx": 4079, "target": 0, "func": "int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL )"}
{"idx": 4080, "target": 0, "func": "static __inline__ __u64 ethtool_get_flow_spec_ring ( __u64 ring_cookie ) {\n return ETHTOOL_RX_FLOW_SPEC_RING & ring_cookie ;\n }"}
{"idx": 4081, "target": 0, "func": "VALUE rb_dlhandle_enable_close ( VALUE self ) {\n struct dl_handle * dlhandle ;\n Data_Get_Struct ( self , struct dl_handle , dlhandle ) ;\n dlhandle -> enable_close = 1 ;\n return Qnil ;\n }"}
{"idx": 4082, "target": 0, "func": "void PyString_ConcatAndDel ( register PyObject * * pv , register PyObject * w ) {\n PyString_Concat ( pv , w ) ;\n Py_XDECREF ( w ) ;\n }"}
{"idx": 4083, "target": 0, "func": "SPL_METHOD ( SplFileObject , key ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n RETURN_LONG ( intern -> u . file . current_line_num ) ;\n }"}
{"idx": 4084, "target": 0, "func": "END_TEST START_TEST ( test_find_available_user_small_net ) {\n in_addr_t ip ;\n int i ;\n ip = inet_addr ( \"127.0.0.1\" ) ;\n init_users ( ip , 29 ) ;\n for ( i = 0 ;\n i < 5 ;\n i ++ ) {\n fail_unless ( find_available_user ( ) == i ) ;\n }\n for ( i = 0 ;\n i < USERS ;\n i ++ ) {\n fail_unless ( find_available_user ( ) == - 1 ) ;\n }\n users [ 3 ] . active = 0 ;\n fail_unless ( find_available_user ( ) == 3 ) ;\n fail_unless ( find_available_user ( ) == - 1 ) ;\n users [ 3 ] . last_pkt = 55 ;\n fail_unless ( find_available_user ( ) == 3 ) ;\n fail_unless ( find_available_user ( ) == - 1 ) ;\n }"}
{"idx": 4085, "target": 0, "func": "int write_data_suffix ( SORT_INFO * sort_info , my_bool fix_datafile ) {\n MI_INFO * info = sort_info -> info ;\n if ( info -> s -> options & HA_OPTION_COMPRESS_RECORD && fix_datafile ) {\n uchar buff [ MEMMAP_EXTRA_MARGIN ] ;\n bzero ( buff , sizeof ( buff ) ) ;\n if ( my_b_write ( & info -> rec_cache , buff , sizeof ( buff ) ) ) {\n mi_check_print_error ( sort_info -> param , \"%d when writing to datafile\" , my_errno ) ;\n return 1 ;\n }\n sort_info -> param -> read_cache . end_of_file += sizeof ( buff ) ;\n }\n return 0 ;\n }"}
{"idx": 4086, "target": 0, "func": "static inline int direct_search ( MpegEncContext * s , int mb_x , int mb_y ) {\n MotionEstContext * const c = & s -> me ;\n int P [ 10 ] [ 2 ] ;\n const int mot_stride = s -> mb_stride ;\n const int mot_xy = mb_y * mot_stride + mb_x ;\n const int shift = 1 + s -> quarter_sample ;\n int dmin , i ;\n const int time_pp = s -> pp_time ;\n const int time_pb = s -> pb_time ;\n int mx , my , xmin , xmax , ymin , ymax ;\n int16_t ( * mv_table ) [ 2 ] = s -> b_direct_mv_table ;\n c -> current_mv_penalty = c -> mv_penalty [ 1 ] + MAX_MV ;\n ymin = xmin = ( - 32 ) >> shift ;\n ymax = xmax = 31 >> shift ;\n if ( IS_8X8 ( s -> next_picture . mb_type [ mot_xy ] ) ) {\n s -> mv_type = MV_TYPE_8X8 ;\n }\n else {\n s -> mv_type = MV_TYPE_16X16 ;\n }\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n int index = s -> block_index [ i ] ;\n int min , max ;\n c -> co_located_mv [ i ] [ 0 ] = s -> next_picture . motion_val [ 0 ] [ index ] [ 0 ] ;\n c -> co_located_mv [ i ] [ 1 ] = s -> next_picture . motion_val [ 0 ] [ index ] [ 1 ] ;\n c -> direct_basis_mv [ i ] [ 0 ] = c -> co_located_mv [ i ] [ 0 ] * time_pb / time_pp + ( ( i & 1 ) << ( shift + 3 ) ) ;\n c -> direct_basis_mv [ i ] [ 1 ] = c -> co_located_mv [ i ] [ 1 ] * time_pb / time_pp + ( ( i >> 1 ) << ( shift + 3 ) ) ;\n max = FFMAX ( c -> direct_basis_mv [ i ] [ 0 ] , c -> direct_basis_mv [ i ] [ 0 ] - c -> co_located_mv [ i ] [ 0 ] ) >> shift ;\n min = FFMIN ( c -> direct_basis_mv [ i ] [ 0 ] , c -> direct_basis_mv [ i ] [ 0 ] - c -> co_located_mv [ i ] [ 0 ] ) >> shift ;\n max += 16 * mb_x + 1 ;\n min += 16 * mb_x - 1 ;\n xmax = FFMIN ( xmax , s -> width - max ) ;\n xmin = FFMAX ( xmin , - 16 - min ) ;\n max = FFMAX ( c -> direct_basis_mv [ i ] [ 1 ] , c -> direct_basis_mv [ i ] [ 1 ] - c -> co_located_mv [ i ] [ 1 ] ) >> shift ;\n min = FFMIN ( c -> direct_basis_mv [ i ] [ 1 ] , c -> direct_basis_mv [ i ] [ 1 ] - c -> co_located_mv [ i ] [ 1 ] ) >> shift ;\n max += 16 * mb_y + 1 ;\n min += 16 * mb_y - 1 ;\n ymax = FFMIN ( ymax , s -> height - max ) ;\n ymin = FFMAX ( ymin , - 16 - min ) ;\n if ( s -> mv_type == MV_TYPE_16X16 ) break ;\n }\n assert ( xmax <= 15 && ymax <= 15 && xmin >= - 16 && ymin >= - 16 ) ;\n if ( xmax < 0 || xmin > 0 || ymax < 0 || ymin > 0 ) {\n s -> b_direct_mv_table [ mot_xy ] [ 0 ] = 0 ;\n s -> b_direct_mv_table [ mot_xy ] [ 1 ] = 0 ;\n return 256 * 256 * 256 * 64 ;\n }\n c -> xmin = xmin ;\n c -> ymin = ymin ;\n c -> xmax = xmax ;\n c -> ymax = ymax ;\n c -> flags |= FLAG_DIRECT ;\n c -> sub_flags |= FLAG_DIRECT ;\n c -> pred_x = 0 ;\n c -> pred_y = 0 ;\n P_LEFT [ 0 ] = av_clip ( mv_table [ mot_xy - 1 ] [ 0 ] , xmin << shift , xmax << shift ) ;\n P_LEFT [ 1 ] = av_clip ( mv_table [ mot_xy - 1 ] [ 1 ] , ymin << shift , ymax << shift ) ;\n if ( ! s -> first_slice_line ) {\n P_TOP [ 0 ] = av_clip ( mv_table [ mot_xy - mot_stride ] [ 0 ] , xmin << shift , xmax << shift ) ;\n P_TOP [ 1 ] = av_clip ( mv_table [ mot_xy - mot_stride ] [ 1 ] , ymin << shift , ymax << shift ) ;\n P_TOPRIGHT [ 0 ] = av_clip ( mv_table [ mot_xy - mot_stride + 1 ] [ 0 ] , xmin << shift , xmax << shift ) ;\n P_TOPRIGHT [ 1 ] = av_clip ( mv_table [ mot_xy - mot_stride + 1 ] [ 1 ] , ymin << shift , ymax << shift ) ;\n P_MEDIAN [ 0 ] = mid_pred ( P_LEFT [ 0 ] , P_TOP [ 0 ] , P_TOPRIGHT [ 0 ] ) ;\n P_MEDIAN [ 1 ] = mid_pred ( P_LEFT [ 1 ] , P_TOP [ 1 ] , P_TOPRIGHT [ 1 ] ) ;\n }\n dmin = ff_epzs_motion_search ( s , & mx , & my , P , 0 , 0 , mv_table , 1 << ( 16 - shift ) , 0 , 16 ) ;\n if ( c -> sub_flags & FLAG_QPEL ) dmin = qpel_motion_search ( s , & mx , & my , dmin , 0 , 0 , 0 , 16 ) ;\n else dmin = hpel_motion_search ( s , & mx , & my , dmin , 0 , 0 , 0 , 16 ) ;\n if ( c -> avctx -> me_sub_cmp != c -> avctx -> mb_cmp && ! c -> skip ) dmin = get_mb_score ( s , mx , my , 0 , 0 , 0 , 16 , 1 ) ;\n get_limits ( s , 16 * mb_x , 16 * mb_y ) ;\n mv_table [ mot_xy ] [ 0 ] = mx ;\n mv_table [ mot_xy ] [ 1 ] = my ;\n c -> flags &= ~ FLAG_DIRECT ;\n c -> sub_flags &= ~ FLAG_DIRECT ;\n return dmin ;\n }"}
{"idx": 4087, "target": 0, "func": "static inline uint64_t e1000e_ring_head_descr ( E1000ECore * core , const E1000E_RingInfo * r ) {\n return e1000e_ring_base ( core , r ) + E1000_RING_DESC_LEN * core -> mac [ r -> dh ] ;\n }"}
{"idx": 4088, "target": 0, "func": "pdf_obj * pdf_new_xobject ( fz_context * ctx , pdf_document * doc , const fz_rect * bbox , const fz_matrix * mat ) {\n int idict_num ;\n pdf_obj * idict = NULL ;\n pdf_obj * dict = NULL ;\n pdf_xobject * form = NULL ;\n pdf_obj * res = NULL ;\n pdf_obj * procset ;\n fz_var ( idict ) ;\n fz_var ( dict ) ;\n fz_var ( form ) ;\n fz_var ( res ) ;\n fz_try ( ctx ) {\n dict = pdf_new_dict ( ctx , doc , 0 ) ;\n pdf_dict_put_drop ( ctx , dict , PDF_NAME_BBox , pdf_new_rect ( ctx , doc , bbox ) ) ;\n pdf_dict_put_drop ( ctx , dict , PDF_NAME_FormType , pdf_new_int ( ctx , doc , 1 ) ) ;\n pdf_dict_put_drop ( ctx , dict , PDF_NAME_Length , pdf_new_int ( ctx , doc , 0 ) ) ;\n pdf_dict_put_drop ( ctx , dict , PDF_NAME_Matrix , pdf_new_matrix ( ctx , doc , mat ) ) ;\n res = pdf_new_dict ( ctx , doc , 0 ) ;\n pdf_dict_put ( ctx , dict , PDF_NAME_Resources , res ) ;\n procset = pdf_new_array ( ctx , doc , 2 ) ;\n pdf_dict_put_drop ( ctx , res , PDF_NAME_ProcSet , procset ) ;\n pdf_array_push ( ctx , procset , PDF_NAME_PDF ) ;\n pdf_array_push ( ctx , procset , PDF_NAME_Text ) ;\n pdf_dict_put ( ctx , dict , PDF_NAME_Subtype , PDF_NAME_Form ) ;\n pdf_dict_put ( ctx , dict , PDF_NAME_Type , PDF_NAME_XObject ) ;\n form = fz_malloc_struct ( ctx , pdf_xobject ) ;\n FZ_INIT_STORABLE ( form , 1 , pdf_drop_xobject_imp ) ;\n form -> obj = NULL ;\n form -> iteration = 0 ;\n idict_num = pdf_create_object ( ctx , doc ) ;\n pdf_update_object ( ctx , doc , idict_num , dict ) ;\n idict = pdf_new_indirect ( ctx , doc , idict_num , 0 ) ;\n pdf_store_item ( ctx , idict , form , pdf_xobject_size ( form ) ) ;\n form -> obj = pdf_keep_obj ( ctx , idict ) ;\n }\n fz_always ( ctx ) {\n pdf_drop_obj ( ctx , dict ) ;\n pdf_drop_obj ( ctx , res ) ;\n pdf_drop_xobject ( ctx , form ) ;\n }\n fz_catch ( ctx ) {\n pdf_drop_obj ( ctx , idict ) ;\n fz_rethrow ( ctx ) ;\n }\n return idict ;\n }"}
{"idx": 4089, "target": 1, "func": "static void _SCSUFromUnicodeWithOffsets ( UConverterFromUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n UConverter * cnv ;\n SCSUData * scsu ;\n const UChar * source , * sourceLimit ;\n uint8_t * target ;\n int32_t targetCapacity ;\n int32_t * offsets ;\n UBool isSingleByteMode ;\n uint8_t dynamicWindow ;\n uint32_t currentOffset ;\n uint32_t c , delta ;\n int32_t sourceIndex , nextSourceIndex ;\n int32_t length ;\n uint32_t offset ;\n UChar lead , trail ;\n int code ;\n int8_t window ;\n cnv = pArgs -> converter ;\n scsu = ( SCSUData * ) cnv -> extraInfo ;\n source = pArgs -> source ;\n sourceLimit = pArgs -> sourceLimit ;\n target = ( uint8_t * ) pArgs -> target ;\n targetCapacity = ( int32_t ) ( pArgs -> targetLimit - pArgs -> target ) ;\n offsets = pArgs -> offsets ;\n isSingleByteMode = scsu -> fromUIsSingleByteMode ;\n dynamicWindow = scsu -> fromUDynamicWindow ;\n currentOffset = scsu -> fromUDynamicOffsets [ dynamicWindow ] ;\n c = cnv -> fromUChar32 ;\n sourceIndex = c == 0 ? 0 : - 1 ;\n nextSourceIndex = 0 ;\n loop : if ( isSingleByteMode ) {\n if ( c != 0 && targetCapacity > 0 ) {\n goto getTrailSingle ;\n }\n while ( source < sourceLimit ) {\n if ( targetCapacity <= 0 ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n c = * source ++ ;\n ++ nextSourceIndex ;\n if ( ( c - 0x20 ) <= 0x5f ) {\n * target ++ = ( uint8_t ) c ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n -- targetCapacity ;\n }\n else if ( c < 0x20 ) {\n if ( ( 1UL << c ) & 0x2601 ) {\n * target ++ = ( uint8_t ) c ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n -- targetCapacity ;\n }\n else {\n c |= SQ0 << 8 ;\n length = 2 ;\n goto outputBytes ;\n }\n }\n else if ( ( delta = c - currentOffset ) <= 0x7f ) {\n * target ++ = ( uint8_t ) ( delta | 0x80 ) ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n -- targetCapacity ;\n }\n else if ( U16_IS_SURROGATE ( c ) ) {\n if ( U16_IS_SURROGATE_LEAD ( c ) ) {\n getTrailSingle : lead = ( UChar ) c ;\n if ( source < sourceLimit ) {\n trail = * source ;\n if ( U16_IS_TRAIL ( trail ) ) {\n ++ source ;\n ++ nextSourceIndex ;\n c = U16_GET_SUPPLEMENTARY ( c , trail ) ;\n }\n else {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n goto endloop ;\n }\n }\n else {\n break ;\n }\n }\n else {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n goto endloop ;\n }\n if ( ( delta = c - currentOffset ) <= 0x7f ) {\n * target ++ = ( uint8_t ) ( delta | 0x80 ) ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n -- targetCapacity ;\n }\n else if ( ( window = getWindow ( scsu -> fromUDynamicOffsets , c ) ) >= 0 ) {\n dynamicWindow = window ;\n currentOffset = scsu -> fromUDynamicOffsets [ dynamicWindow ] ;\n useDynamicWindow ( scsu , dynamicWindow ) ;\n c = ( ( uint32_t ) ( SC0 + dynamicWindow ) << 8 ) | ( c - currentOffset ) | 0x80 ;\n length = 2 ;\n goto outputBytes ;\n }\n else if ( ( code = getDynamicOffset ( c , & offset ) ) >= 0 ) {\n code -= 0x200 ;\n dynamicWindow = getNextDynamicWindow ( scsu ) ;\n currentOffset = scsu -> fromUDynamicOffsets [ dynamicWindow ] = offset ;\n useDynamicWindow ( scsu , dynamicWindow ) ;\n c = ( ( uint32_t ) SDX << 24 ) | ( ( uint32_t ) dynamicWindow << 21 ) | ( ( uint32_t ) code << 8 ) | ( c - currentOffset ) | 0x80 ;\n length = 4 ;\n goto outputBytes ;\n }\n else {\n isSingleByteMode = FALSE ;\n * target ++ = ( uint8_t ) SCU ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n -- targetCapacity ;\n c = ( ( uint32_t ) lead << 16 ) | trail ;\n length = 4 ;\n goto outputBytes ;\n }\n }\n else if ( c < 0xa0 ) {\n c = ( c & 0x7f ) | ( SQ0 + 1 ) << 8 ;\n length = 2 ;\n goto outputBytes ;\n }\n else if ( c == 0xfeff || c >= 0xfff0 ) {\n c |= SQU << 16 ;\n length = 3 ;\n goto outputBytes ;\n }\n else {\n if ( ( window = getWindow ( scsu -> fromUDynamicOffsets , c ) ) >= 0 ) {\n if ( source >= sourceLimit || isInOffsetWindowOrDirect ( scsu -> fromUDynamicOffsets [ window ] , * source ) ) {\n dynamicWindow = window ;\n currentOffset = scsu -> fromUDynamicOffsets [ dynamicWindow ] ;\n useDynamicWindow ( scsu , dynamicWindow ) ;\n c = ( ( uint32_t ) ( SC0 + dynamicWindow ) << 8 ) | ( c - currentOffset ) | 0x80 ;\n length = 2 ;\n goto outputBytes ;\n }\n else {\n c = ( ( uint32_t ) ( SQ0 + window ) << 8 ) | ( c - scsu -> fromUDynamicOffsets [ window ] ) | 0x80 ;\n length = 2 ;\n goto outputBytes ;\n }\n }\n else if ( ( window = getWindow ( staticOffsets , c ) ) >= 0 ) {\n c = ( ( uint32_t ) ( SQ0 + window ) << 8 ) | ( c - staticOffsets [ window ] ) ;\n length = 2 ;\n goto outputBytes ;\n }\n else if ( ( code = getDynamicOffset ( c , & offset ) ) >= 0 ) {\n dynamicWindow = getNextDynamicWindow ( scsu ) ;\n currentOffset = scsu -> fromUDynamicOffsets [ dynamicWindow ] = offset ;\n useDynamicWindow ( scsu , dynamicWindow ) ;\n c = ( ( uint32_t ) ( SD0 + dynamicWindow ) << 16 ) | ( ( uint32_t ) code << 8 ) | ( c - currentOffset ) | 0x80 ;\n length = 3 ;\n goto outputBytes ;\n }\n else if ( ( uint32_t ) ( c - 0x3400 ) < ( 0xd800 - 0x3400 ) && ( source >= sourceLimit || ( uint32_t ) ( * source - 0x3400 ) < ( 0xd800 - 0x3400 ) ) ) {\n isSingleByteMode = FALSE ;\n c |= SCU << 16 ;\n length = 3 ;\n goto outputBytes ;\n }\n else {\n c |= SQU << 16 ;\n length = 3 ;\n goto outputBytes ;\n }\n }\n c = 0 ;\n sourceIndex = nextSourceIndex ;\n }\n }\n else {\n if ( c != 0 && targetCapacity > 0 ) {\n goto getTrailUnicode ;\n }\n while ( source < sourceLimit ) {\n if ( targetCapacity <= 0 ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n c = * source ++ ;\n ++ nextSourceIndex ;\n if ( ( uint32_t ) ( c - 0x3400 ) < ( 0xd800 - 0x3400 ) ) {\n if ( targetCapacity >= 2 ) {\n * target ++ = ( uint8_t ) ( c >> 8 ) ;\n * target ++ = ( uint8_t ) c ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ;\n }\n targetCapacity -= 2 ;\n }\n else {\n length = 2 ;\n goto outputBytes ;\n }\n }\n else if ( ( uint32_t ) ( c - 0x3400 ) >= ( 0xf300 - 0x3400 ) ) {\n if ( ! ( source < sourceLimit && ( uint32_t ) ( * source - 0x3400 ) < ( 0xd800 - 0x3400 ) ) ) {\n if ( ( ( uint32_t ) ( c - 0x30 ) < 10 || ( uint32_t ) ( c - 0x61 ) < 26 || ( uint32_t ) ( c - 0x41 ) < 26 ) ) {\n isSingleByteMode = TRUE ;\n c |= ( ( uint32_t ) ( UC0 + dynamicWindow ) << 8 ) | c ;\n length = 2 ;\n goto outputBytes ;\n }\n else if ( ( window = getWindow ( scsu -> fromUDynamicOffsets , c ) ) >= 0 ) {\n isSingleByteMode = TRUE ;\n dynamicWindow = window ;\n currentOffset = scsu -> fromUDynamicOffsets [ dynamicWindow ] ;\n useDynamicWindow ( scsu , dynamicWindow ) ;\n c = ( ( uint32_t ) ( UC0 + dynamicWindow ) << 8 ) | ( c - currentOffset ) | 0x80 ;\n length = 2 ;\n goto outputBytes ;\n }\n else if ( ( code = getDynamicOffset ( c , & offset ) ) >= 0 ) {\n isSingleByteMode = TRUE ;\n dynamicWindow = getNextDynamicWindow ( scsu ) ;\n currentOffset = scsu -> fromUDynamicOffsets [ dynamicWindow ] = offset ;\n useDynamicWindow ( scsu , dynamicWindow ) ;\n c = ( ( uint32_t ) ( UD0 + dynamicWindow ) << 16 ) | ( ( uint32_t ) code << 8 ) | ( c - currentOffset ) | 0x80 ;\n length = 3 ;\n goto outputBytes ;\n }\n }\n length = 2 ;\n goto outputBytes ;\n }\n else if ( c < 0xe000 ) {\n if ( U16_IS_SURROGATE_LEAD ( c ) ) {\n getTrailUnicode : lead = ( UChar ) c ;\n if ( source < sourceLimit ) {\n trail = * source ;\n if ( U16_IS_TRAIL ( trail ) ) {\n ++ source ;\n ++ nextSourceIndex ;\n c = U16_GET_SUPPLEMENTARY ( c , trail ) ;\n }\n else {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n goto endloop ;\n }\n }\n else {\n break ;\n }\n }\n else {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n goto endloop ;\n }\n if ( ( window = getWindow ( scsu -> fromUDynamicOffsets , c ) ) >= 0 && ! ( source < sourceLimit && ( uint32_t ) ( * source - 0x3400 ) < ( 0xd800 - 0x3400 ) ) ) {\n isSingleByteMode = TRUE ;\n dynamicWindow = window ;\n currentOffset = scsu -> fromUDynamicOffsets [ dynamicWindow ] ;\n useDynamicWindow ( scsu , dynamicWindow ) ;\n c = ( ( uint32_t ) ( UC0 + dynamicWindow ) << 8 ) | ( c - currentOffset ) | 0x80 ;\n length = 2 ;\n goto outputBytes ;\n }\n else if ( source < sourceLimit && lead == * source && ( code = getDynamicOffset ( c , & offset ) ) >= 0 ) {\n isSingleByteMode = TRUE ;\n code -= 0x200 ;\n dynamicWindow = getNextDynamicWindow ( scsu ) ;\n currentOffset = scsu -> fromUDynamicOffsets [ dynamicWindow ] = offset ;\n useDynamicWindow ( scsu , dynamicWindow ) ;\n c = ( ( uint32_t ) UDX << 24 ) | ( ( uint32_t ) dynamicWindow << 21 ) | ( ( uint32_t ) code << 8 ) | ( c - currentOffset ) | 0x80 ;\n length = 4 ;\n goto outputBytes ;\n }\n else {\n c = ( ( uint32_t ) lead << 16 ) | trail ;\n length = 4 ;\n goto outputBytes ;\n }\n }\n else {\n c |= UQU << 16 ;\n length = 3 ;\n goto outputBytes ;\n }\n c = 0 ;\n sourceIndex = nextSourceIndex ;\n }\n }\n endloop : scsu -> fromUIsSingleByteMode = isSingleByteMode ;\n scsu -> fromUDynamicWindow = dynamicWindow ;\n cnv -> fromUChar32 = c ;\n pArgs -> source = source ;\n pArgs -> target = ( char * ) target ;\n pArgs -> offsets = offsets ;\n return ;\n outputBytes : if ( length <= targetCapacity ) {\n if ( offsets == NULL ) {\n switch ( length ) {\n case 4 : * target ++ = ( uint8_t ) ( c >> 24 ) ;\n U_FALLTHROUGH ;\n case 3 : * target ++ = ( uint8_t ) ( c >> 16 ) ;\n U_FALLTHROUGH ;\n case 2 : * target ++ = ( uint8_t ) ( c >> 8 ) ;\n U_FALLTHROUGH ;\n case 1 : * target ++ = ( uint8_t ) c ;\n U_FALLTHROUGH ;\n default : break ;\n }\n }\n else {\n switch ( length ) {\n case 4 : * target ++ = ( uint8_t ) ( c >> 24 ) ;\n * offsets ++ = sourceIndex ;\n U_FALLTHROUGH ;\n case 3 : * target ++ = ( uint8_t ) ( c >> 16 ) ;\n * offsets ++ = sourceIndex ;\n U_FALLTHROUGH ;\n case 2 : * target ++ = ( uint8_t ) ( c >> 8 ) ;\n * offsets ++ = sourceIndex ;\n U_FALLTHROUGH ;\n case 1 : * target ++ = ( uint8_t ) c ;\n * offsets ++ = sourceIndex ;\n U_FALLTHROUGH ;\n default : break ;\n }\n }\n targetCapacity -= length ;\n c = 0 ;\n sourceIndex = nextSourceIndex ;\n goto loop ;\n }\n else {\n uint8_t * p ;\n length -= targetCapacity ;\n p = ( uint8_t * ) cnv -> charErrorBuffer ;\n switch ( length ) {\n case 4 : * p ++ = ( uint8_t ) ( c >> 24 ) ;\n U_FALLTHROUGH ;\n case 3 : * p ++ = ( uint8_t ) ( c >> 16 ) ;\n U_FALLTHROUGH ;\n case 2 : * p ++ = ( uint8_t ) ( c >> 8 ) ;\n U_FALLTHROUGH ;\n case 1 : * p = ( uint8_t ) c ;\n U_FALLTHROUGH ;\n default : break ;\n }\n cnv -> charErrorBufferLength = ( int8_t ) length ;\n c >>= 8 * length ;\n switch ( targetCapacity ) {\n case 3 : * target ++ = ( uint8_t ) ( c >> 16 ) ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n U_FALLTHROUGH ;\n case 2 : * target ++ = ( uint8_t ) ( c >> 8 ) ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n U_FALLTHROUGH ;\n case 1 : * target ++ = ( uint8_t ) c ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n U_FALLTHROUGH ;\n default : break ;\n }\n targetCapacity = 0 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n c = 0 ;\n goto endloop ;\n }\n }"}
{"idx": 4090, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( SessionRestorePageLoadMetricsBrowserTest , MultipleSessionRestores ) {\n ui_test_utils : : NavigateToURL ( browser ( ) , GetTestURL ( ) ) ;\n Browser * current_browser = browser ( ) ;\n const int num_session_restores = 3 ;\n for ( int i = 1 ;\n i <= num_session_restores ;\n ++ i ) {\n SessionRestorePaintWaiter session_restore_paint_waiter ;\n current_browser = QuitBrowserAndRestore ( current_browser ) ;\n session_restore_paint_waiter . WaitForForegroundTabs ( 1 ) ;\n ExpectFirstPaintMetricsTotalCount ( i ) ;\n }\n }"}
{"idx": 4091, "target": 0, "func": "static int dissect_h225_EncryptIntAlg ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_EncryptIntAlg , EncryptIntAlg_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 4092, "target": 0, "func": "static void subtract_stats ( FIRSTPASS_STATS * section , const FIRSTPASS_STATS * frame ) {\n section -> frame -= frame -> frame ;\n section -> intra_error -= frame -> intra_error ;\n section -> coded_error -= frame -> coded_error ;\n section -> sr_coded_error -= frame -> sr_coded_error ;\n section -> pcnt_inter -= frame -> pcnt_inter ;\n section -> pcnt_motion -= frame -> pcnt_motion ;\n section -> pcnt_second_ref -= frame -> pcnt_second_ref ;\n section -> pcnt_neutral -= frame -> pcnt_neutral ;\n section -> MVr -= frame -> MVr ;\n section -> mvr_abs -= frame -> mvr_abs ;\n section -> MVc -= frame -> MVc ;\n section -> mvc_abs -= frame -> mvc_abs ;\n section -> MVrv -= frame -> MVrv ;\n section -> MVcv -= frame -> MVcv ;\n section -> mv_in_out_count -= frame -> mv_in_out_count ;\n section -> new_mv_count -= frame -> new_mv_count ;\n section -> count -= frame -> count ;\n section -> duration -= frame -> duration ;\n }"}
{"idx": 4093, "target": 0, "func": "int EVP_DecryptFinal_ex ( EVP_CIPHER_CTX * ctx , unsigned char * out , int * outl ) {\n int i , n ;\n unsigned int b ;\n * outl = 0 ;\n if ( ctx -> cipher -> flags & EVP_CIPH_FLAG_CUSTOM_CIPHER ) {\n i = ctx -> cipher -> do_cipher ( ctx , out , NULL , 0 ) ;\n if ( i < 0 ) return 0 ;\n else * outl = i ;\n return 1 ;\n }\n b = ctx -> cipher -> block_size ;\n if ( ctx -> flags & EVP_CIPH_NO_PADDING ) {\n if ( ctx -> buf_len ) {\n EVPerr ( EVP_F_EVP_DECRYPTFINAL_EX , EVP_R_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH ) ;\n return 0 ;\n }\n * outl = 0 ;\n return 1 ;\n }\n if ( b > 1 ) {\n if ( ctx -> buf_len || ! ctx -> final_used ) {\n EVPerr ( EVP_F_EVP_DECRYPTFINAL_EX , EVP_R_WRONG_FINAL_BLOCK_LENGTH ) ;\n return ( 0 ) ;\n }\n OPENSSL_assert ( b <= sizeof ctx -> final ) ;\n n = ctx -> final [ b - 1 ] ;\n if ( n == 0 || n > ( int ) b ) {\n EVPerr ( EVP_F_EVP_DECRYPTFINAL_EX , EVP_R_BAD_DECRYPT ) ;\n return ( 0 ) ;\n }\n for ( i = 0 ;\n i < n ;\n i ++ ) {\n if ( ctx -> final [ -- b ] != n ) {\n EVPerr ( EVP_F_EVP_DECRYPTFINAL_EX , EVP_R_BAD_DECRYPT ) ;\n return ( 0 ) ;\n }\n }\n n = ctx -> cipher -> block_size - n ;\n for ( i = 0 ;\n i < n ;\n i ++ ) out [ i ] = ctx -> final [ i ] ;\n * outl = n ;\n }\n else * outl = 0 ;\n return ( 1 ) ;\n }"}
{"idx": 4094, "target": 0, "func": "static GList * get_files_from_fallbacks ( GList * fallbacks ) {\n MoveFileCopyFallback * fallback ;\n GList * res , * l ;\n res = NULL ;\n for ( l = fallbacks ;\n l != NULL ;\n l = l -> next ) {\n fallback = l -> data ;\n res = g_list_prepend ( res , fallback -> file ) ;\n }\n return g_list_reverse ( res ) ;\n }"}
{"idx": 4095, "target": 0, "func": "static int rv34_decode_slice ( RV34DecContext * r , int end , const uint8_t * buf , int buf_size ) {\n MpegEncContext * s = & r -> s ;\n GetBitContext * gb = & s -> gb ;\n int mb_pos , slice_type ;\n int res ;\n init_get_bits ( & r -> s . gb , buf , buf_size * 8 ) ;\n res = r -> parse_slice_header ( r , gb , & r -> si ) ;\n if ( res < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Incorrect or unknown slice header\\n\" ) ;\n return - 1 ;\n }\n slice_type = r -> si . type ? r -> si . type : AV_PICTURE_TYPE_I ;\n if ( slice_type != s -> pict_type ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Slice type mismatch\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n r -> si . end = end ;\n s -> qscale = r -> si . quant ;\n s -> mb_num_left = r -> si . end - r -> si . start ;\n r -> s . mb_skip_run = 0 ;\n mb_pos = s -> mb_x + s -> mb_y * s -> mb_width ;\n if ( r -> si . start != mb_pos ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Slice indicates MB offset %d, got %d\\n\" , r -> si . start , mb_pos ) ;\n s -> mb_x = r -> si . start % s -> mb_width ;\n s -> mb_y = r -> si . start / s -> mb_width ;\n }\n memset ( r -> intra_types_hist , - 1 , r -> intra_types_stride * 4 * 2 * sizeof ( * r -> intra_types_hist ) ) ;\n s -> first_slice_line = 1 ;\n s -> resync_mb_x = s -> mb_x ;\n s -> resync_mb_y = s -> mb_y ;\n ff_init_block_index ( s ) ;\n while ( ! check_slice_end ( r , s ) ) {\n ff_update_block_index ( s ) ;\n if ( r -> si . type ) res = rv34_decode_inter_macroblock ( r , r -> intra_types + s -> mb_x * 4 + 4 ) ;\n else res = rv34_decode_intra_macroblock ( r , r -> intra_types + s -> mb_x * 4 + 4 ) ;\n if ( res < 0 ) {\n ff_er_add_slice ( & s -> er , s -> resync_mb_x , s -> resync_mb_y , s -> mb_x - 1 , s -> mb_y , ER_MB_ERROR ) ;\n return - 1 ;\n }\n if ( ++ s -> mb_x == s -> mb_width ) {\n s -> mb_x = 0 ;\n s -> mb_y ++ ;\n ff_init_block_index ( s ) ;\n memmove ( r -> intra_types_hist , r -> intra_types , r -> intra_types_stride * 4 * sizeof ( * r -> intra_types_hist ) ) ;\n memset ( r -> intra_types , - 1 , r -> intra_types_stride * 4 * sizeof ( * r -> intra_types_hist ) ) ;\n if ( r -> loop_filter && s -> mb_y >= 2 ) r -> loop_filter ( r , s -> mb_y - 2 ) ;\n if ( HAVE_THREADS && ( s -> avctx -> active_thread_type & FF_THREAD_FRAME ) ) ff_thread_report_progress ( & s -> current_picture_ptr -> tf , s -> mb_y - 2 , 0 ) ;\n }\n if ( s -> mb_x == s -> resync_mb_x ) s -> first_slice_line = 0 ;\n s -> mb_num_left -- ;\n }\n ff_er_add_slice ( & s -> er , s -> resync_mb_x , s -> resync_mb_y , s -> mb_x - 1 , s -> mb_y , ER_MB_END ) ;\n return s -> mb_y == s -> mb_height ;\n }"}
{"idx": 4096, "target": 1, "func": "static void vga_draw_line24_le ( VGACommonState * s1 , uint8_t * d , const uint8_t * s , int width ) {\n int w ;\n uint32_t r , g , b ;\n w = width ;\n do {\n b = s [ 0 ] ;\n g = s [ 1 ] ;\n r = s [ 2 ] ;\n ( ( uint32_t * ) d ) [ 0 ] = rgb_to_pixel32 ( r , g , b ) ;\n s += 3 ;\n d += 4 ;\n }\n while ( -- w != 0 ) ;\n }"}
{"idx": 4097, "target": 1, "func": "static void dec_build_inter_predictors ( MACROBLOCKD * xd , int plane , int block , int bw , int bh , int x , int y , int w , int h , int mi_x , int mi_y ) {\n struct macroblockd_plane * const pd = & xd -> plane [ plane ] ;\n const MODE_INFO * mi = xd -> mi [ 0 ] ;\n const int is_compound = has_second_ref ( & mi -> mbmi ) ;\n const InterpKernel * kernel = vp9_get_interp_kernel ( mi -> mbmi . interp_filter ) ;\n int ref ;\n for ( ref = 0 ;\n ref < 1 + is_compound ;\n ++ ref ) {\n const struct scale_factors * const sf = & xd -> block_refs [ ref ] -> sf ;\n struct buf_2d * const pre_buf = & pd -> pre [ ref ] ;\n struct buf_2d * const dst_buf = & pd -> dst ;\n uint8_t * const dst = dst_buf -> buf + dst_buf -> stride * y + x ;\n const MV mv = mi -> mbmi . sb_type < BLOCK_8X8 ? average_split_mvs ( pd , mi , ref , block ) : mi -> mbmi . mv [ ref ] . as_mv ;\n const MV mv_q4 = clamp_mv_to_umv_border_sb ( xd , & mv , bw , bh , pd -> subsampling_x , pd -> subsampling_y ) ;\n MV32 scaled_mv ;\n int xs , ys , x0 , y0 , x0_16 , y0_16 , frame_width , frame_height , buf_stride , subpel_x , subpel_y ;\n uint8_t * ref_frame , * buf_ptr ;\n const YV12_BUFFER_CONFIG * ref_buf = xd -> block_refs [ ref ] -> buf ;\n if ( plane == 0 ) {\n frame_width = ref_buf -> y_crop_width ;\n frame_height = ref_buf -> y_crop_height ;\n ref_frame = ref_buf -> y_buffer ;\n }\n else {\n frame_width = ref_buf -> uv_crop_width ;\n frame_height = ref_buf -> uv_crop_height ;\n ref_frame = plane == 1 ? ref_buf -> u_buffer : ref_buf -> v_buffer ;\n }\n if ( vp9_is_scaled ( sf ) ) {\n int x_start = ( - xd -> mb_to_left_edge >> ( 3 + pd -> subsampling_x ) ) ;\n int y_start = ( - xd -> mb_to_top_edge >> ( 3 + pd -> subsampling_y ) ) ;\n x0_16 = ( x_start + x ) << SUBPEL_BITS ;\n y0_16 = ( y_start + y ) << SUBPEL_BITS ;\n x0_16 = sf -> scale_value_x ( x0_16 , sf ) ;\n y0_16 = sf -> scale_value_y ( y0_16 , sf ) ;\n x0 = sf -> scale_value_x ( x_start + x , sf ) ;\n y0 = sf -> scale_value_y ( y_start + y , sf ) ;\n scaled_mv = vp9_scale_mv ( & mv_q4 , mi_x + x , mi_y + y , sf ) ;\n xs = sf -> x_step_q4 ;\n ys = sf -> y_step_q4 ;\n }\n else {\n x0 = ( - xd -> mb_to_left_edge >> ( 3 + pd -> subsampling_x ) ) + x ;\n y0 = ( - xd -> mb_to_top_edge >> ( 3 + pd -> subsampling_y ) ) + y ;\n x0_16 = x0 << SUBPEL_BITS ;\n y0_16 = y0 << SUBPEL_BITS ;\n scaled_mv . row = mv_q4 . row ;\n scaled_mv . col = mv_q4 . col ;\n xs = ys = 16 ;\n }\n subpel_x = scaled_mv . col & SUBPEL_MASK ;\n subpel_y = scaled_mv . row & SUBPEL_MASK ;\n x0 += scaled_mv . col >> SUBPEL_BITS ;\n y0 += scaled_mv . row >> SUBPEL_BITS ;\n x0_16 += scaled_mv . col ;\n y0_16 += scaled_mv . row ;\n buf_ptr = ref_frame + y0 * pre_buf -> stride + x0 ;\n buf_stride = pre_buf -> stride ;\n if ( scaled_mv . col || scaled_mv . row || ( frame_width & 0x7 ) || ( frame_height & 0x7 ) ) {\n int x1 = ( ( x0_16 + ( w - 1 ) * xs ) >> SUBPEL_BITS ) + 1 ;\n int y1 = ( ( y0_16 + ( h - 1 ) * ys ) >> SUBPEL_BITS ) + 1 ;\n int x_pad = 0 , y_pad = 0 ;\n if ( subpel_x || ( sf -> x_step_q4 & SUBPEL_MASK ) ) {\n x0 -= VP9_INTERP_EXTEND - 1 ;\n x1 += VP9_INTERP_EXTEND ;\n x_pad = 1 ;\n }\n if ( subpel_y || ( sf -> y_step_q4 & SUBPEL_MASK ) ) {\n y0 -= VP9_INTERP_EXTEND - 1 ;\n y1 += VP9_INTERP_EXTEND ;\n y_pad = 1 ;\n }\n if ( x0 < 0 || x0 > frame_width - 1 || x1 < 0 || x1 > frame_width - 1 || y0 < 0 || y0 > frame_height - 1 || y1 < 0 || y1 > frame_height - 1 ) {\n uint8_t * buf_ptr1 = ref_frame + y0 * pre_buf -> stride + x0 ;\n build_mc_border ( buf_ptr1 , pre_buf -> stride , xd -> mc_buf , x1 - x0 + 1 , x0 , y0 , x1 - x0 + 1 , y1 - y0 + 1 , frame_width , frame_height ) ;\n buf_stride = x1 - x0 + 1 ;\n buf_ptr = xd -> mc_buf + y_pad * 3 * buf_stride + x_pad * 3 ;\n }\n }\n inter_predictor ( buf_ptr , buf_stride , dst , dst_buf -> stride , subpel_x , subpel_y , sf , w , h , ref , kernel , xs , ys ) ;\n }\n }"}
{"idx": 4098, "target": 0, "func": "static cmsBool ReadCountAndSting ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsMLU * mlu , cmsUInt32Number * SizeOfTag , const char * Section ) {\n cmsUInt32Number Count ;\n char * Text ;\n if ( * SizeOfTag < sizeof ( cmsUInt32Number ) ) return FALSE ;\n if ( ! _cmsReadUInt32Number ( io , & Count ) ) return FALSE ;\n if ( Count > UINT_MAX - sizeof ( cmsUInt32Number ) ) return FALSE ;\n if ( * SizeOfTag < Count + sizeof ( cmsUInt32Number ) ) return FALSE ;\n Text = ( char * ) _cmsMalloc ( self -> ContextID , Count + 1 ) ;\n if ( Text == NULL ) return FALSE ;\n if ( io -> Read ( io , Text , sizeof ( cmsUInt8Number ) , Count ) != Count ) {\n _cmsFree ( self -> ContextID , Text ) ;\n return FALSE ;\n }\n Text [ Count ] = 0 ;\n cmsMLUsetASCII ( mlu , \"PS\" , Section , Text ) ;\n _cmsFree ( self -> ContextID , Text ) ;\n * SizeOfTag -= ( Count + sizeof ( cmsUInt32Number ) ) ;\n return TRUE ;\n }"}
{"idx": 4099, "target": 0, "func": "static void gen_fcb_excitation ( int16_t * vector , G723_1_Subframe * subfrm , enum Rate cur_rate , int pitch_lag , int index ) {\n int temp , i , j ;\n memset ( vector , 0 , SUBFRAME_LEN * sizeof ( * vector ) ) ;\n if ( cur_rate == RATE_6300 ) {\n if ( subfrm -> pulse_pos >= max_pos [ index ] ) return ;\n j = PULSE_MAX - pulses [ index ] ;\n temp = subfrm -> pulse_pos ;\n for ( i = 0 ;\n i < SUBFRAME_LEN / GRID_SIZE ;\n i ++ ) {\n temp -= combinatorial_table [ j ] [ i ] ;\n if ( temp >= 0 ) continue ;\n temp += combinatorial_table [ j ++ ] [ i ] ;\n if ( subfrm -> pulse_sign & ( 1 << ( PULSE_MAX - j ) ) ) {\n vector [ subfrm -> grid_index + GRID_SIZE * i ] = - fixed_cb_gain [ subfrm -> amp_index ] ;\n }\n else {\n vector [ subfrm -> grid_index + GRID_SIZE * i ] = fixed_cb_gain [ subfrm -> amp_index ] ;\n }\n if ( j == PULSE_MAX ) break ;\n }\n if ( subfrm -> dirac_train == 1 ) gen_dirac_train ( vector , pitch_lag ) ;\n }\n else {\n int cb_gain = fixed_cb_gain [ subfrm -> amp_index ] ;\n int cb_shift = subfrm -> grid_index ;\n int cb_sign = subfrm -> pulse_sign ;\n int cb_pos = subfrm -> pulse_pos ;\n int offset , beta , lag ;\n for ( i = 0 ;\n i < 8 ;\n i += 2 ) {\n offset = ( ( cb_pos & 7 ) << 3 ) + cb_shift + i ;\n vector [ offset ] = ( cb_sign & 1 ) ? cb_gain : - cb_gain ;\n cb_pos >>= 3 ;\n cb_sign >>= 1 ;\n }\n lag = pitch_contrib [ subfrm -> ad_cb_gain << 1 ] + pitch_lag + subfrm -> ad_cb_lag - 1 ;\n beta = pitch_contrib [ ( subfrm -> ad_cb_gain << 1 ) + 1 ] ;\n if ( lag < SUBFRAME_LEN - 2 ) {\n for ( i = lag ;\n i < SUBFRAME_LEN ;\n i ++ ) vector [ i ] += beta * vector [ i - lag ] >> 15 ;\n }\n }\n }"}
{"idx": 4100, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( PrefsFunctionalTest , TestDownloadDirPref ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n base : : ScopedAllowBlockingForTesting allow_blocking ;\n base : : ScopedTempDir new_download_dir ;\n ASSERT_TRUE ( new_download_dir . CreateUniqueTempDir ( ) ) ;\n base : : FilePath downloaded_pkg = new_download_dir . GetPath ( ) . AppendASCII ( \"a_zip_file.zip\" ) ;\n browser ( ) -> profile ( ) -> GetPrefs ( ) -> SetFilePath ( prefs : : kDownloadDefaultDirectory , new_download_dir . GetPath ( ) ) ;\n std : : unique_ptr < content : : DownloadTestObserver > downloads_observer ( CreateWaiter ( browser ( ) , 1 ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/downloads/a_zip_file.zip\" ) ) ;\n downloads_observer -> WaitForFinished ( ) ;\n EXPECT_TRUE ( base : : PathExists ( downloaded_pkg ) ) ;\n }"}
{"idx": 4101, "target": 0, "func": "extern int name ( int , locale_t ) __THROW __exctype_l ( isalnum_l ) ;\n __exctype_l ( isalpha_l ) ;\n __exctype_l ( iscntrl_l ) ;\n __exctype_l ( isdigit_l ) ;\n __exctype_l ( islower_l ) ;\n __exctype_l ( isgraph_l ) ;\n __exctype_l ( isprint_l )"}
{"idx": 4102, "target": 0, "func": "int gs_flushpage ( gs_gstate * pgs ) {\n gx_device * dev = gs_currentdevice ( pgs ) ;\n return ( * dev_proc ( dev , sync_output ) ) ( dev ) ;\n }"}
{"idx": 4103, "target": 0, "func": "static int udev_device_info ( struct libusb_context * ctx , int detached , struct udev_device * udev_dev , uint8_t * busnum , uint8_t * devaddr , const char * * sys_name ) {\n const char * dev_node ;\n dev_node = device : : udev_device_get_devnode ( udev_dev ) ;\n if ( ! dev_node ) {\n return LIBUSB_ERROR_OTHER ;\n }\n * sys_name = device : : udev_device_get_sysname ( udev_dev ) ;\n if ( ! * sys_name ) {\n return LIBUSB_ERROR_OTHER ;\n }\n return linux_get_device_address ( ctx , detached , busnum , devaddr , dev_node , * sys_name ) ;\n }"}
{"idx": 4104, "target": 0, "func": "int _PyString_Resize ( PyObject * * pv , Py_ssize_t newsize ) {\n register PyObject * v ;\n register PyStringObject * sv ;\n v = * pv ;\n if ( ! PyString_Check ( v ) || Py_REFCNT ( v ) != 1 || newsize < 0 || PyString_CHECK_INTERNED ( v ) ) {\n * pv = 0 ;\n Py_DECREF ( v ) ;\n PyErr_BadInternalCall ( ) ;\n return - 1 ;\n }\n _Py_DEC_REFTOTAL ;\n _Py_ForgetReference ( v ) ;\n * pv = ( PyObject * ) PyObject_REALLOC ( ( char * ) v , PyStringObject_SIZE + newsize ) ;\n if ( * pv == NULL ) {\n PyObject_Del ( v ) ;\n PyErr_NoMemory ( ) ;\n return - 1 ;\n }\n _Py_NewReference ( * pv ) ;\n sv = ( PyStringObject * ) * pv ;\n Py_SIZE ( sv ) = newsize ;\n sv -> ob_sval [ newsize ] = '\\0' ;\n sv -> ob_shash = - 1 ;\n return 0 ;\n }"}
{"idx": 4105, "target": 0, "func": "static int save_field_in_field ( Field * from , bool * null_value , Field * to , bool no_conversions ) {\n int res ;\n DBUG_ENTER ( \"save_field_in_field\" ) ;\n if ( from -> is_null ( ) ) {\n ( * null_value ) = 1 ;\n DBUG_RETURN ( set_field_to_null_with_conversions ( to , no_conversions ) ) ;\n }\n to -> set_notnull ( ) ;\n if ( to == from ) {\n ( * null_value ) = 0 ;\n DBUG_RETURN ( 0 ) ;\n }\n res = field_conv ( to , from ) ;\n ( * null_value ) = 0 ;\n DBUG_RETURN ( res ) ;\n }"}
{"idx": 4106, "target": 0, "func": "static void update_noise_reduction ( MpegEncContext * s ) {\n int intra , i ;\n for ( intra = 0 ;\n intra < 2 ;\n intra ++ ) {\n if ( s -> dct_count [ intra ] > ( 1 << 16 ) ) {\n for ( i = 0 ;\n i < 64 ;\n i ++ ) {\n s -> dct_error_sum [ intra ] [ i ] >>= 1 ;\n }\n s -> dct_count [ intra ] >>= 1 ;\n }\n for ( i = 0 ;\n i < 64 ;\n i ++ ) {\n s -> dct_offset [ intra ] [ i ] = ( s -> avctx -> noise_reduction * s -> dct_count [ intra ] + s -> dct_error_sum [ intra ] [ i ] / 2 ) / ( s -> dct_error_sum [ intra ] [ i ] + 1 ) ;\n }\n }\n }"}
{"idx": 4107, "target": 0, "func": "static void e1000e_set_icr ( E1000ECore * core , int index , uint32_t val ) {\n if ( ( core -> mac [ ICR ] & E1000_ICR_ASSERTED ) && ( core -> mac [ CTRL_EXT ] & E1000_CTRL_EXT_IAME ) ) {\n trace_e1000e_irq_icr_process_iame ( ) ;\n e1000e_clear_ims_bits ( core , core -> mac [ IAM ] ) ;\n }\n trace_e1000e_irq_icr_write ( val , core -> mac [ ICR ] , core -> mac [ ICR ] & ~ val ) ;\n core -> mac [ ICR ] &= ~ val ;\n e1000e_update_interrupt_state ( core ) ;\n }"}
{"idx": 4108, "target": 0, "func": "static void stabilize_lsps ( double * lsps , int num ) {\n int n , m , l ;\n lsps [ 0 ] = FFMAX ( lsps [ 0 ] , 0.0015 * M_PI ) ;\n for ( n = 1 ;\n n < num ;\n n ++ ) lsps [ n ] = FFMAX ( lsps [ n ] , lsps [ n - 1 ] + 0.0125 * M_PI ) ;\n lsps [ num - 1 ] = FFMIN ( lsps [ num - 1 ] , 0.9985 * M_PI ) ;\n for ( n = 1 ;\n n < num ;\n n ++ ) {\n if ( lsps [ n ] < lsps [ n - 1 ] ) {\n for ( m = 1 ;\n m < num ;\n m ++ ) {\n double tmp = lsps [ m ] ;\n for ( l = m - 1 ;\n l >= 0 ;\n l -- ) {\n if ( lsps [ l ] <= tmp ) break ;\n lsps [ l + 1 ] = lsps [ l ] ;\n }\n lsps [ l + 1 ] = tmp ;\n }\n break ;\n }\n }\n }"}
{"idx": 4109, "target": 0, "func": "char * virLogGetFilters ( void ) {\n size_t i ;\n virBuffer filterbuf = VIR_BUFFER_INITIALIZER ;\n virLogLock ( ) ;\n for ( i = 0 ;\n i < virLogNbFilters ;\n i ++ ) {\n const char * sep = \":\" ;\n if ( virLogFilters [ i ] -> flags & VIR_LOG_STACK_TRACE ) sep = \":+\" ;\n virBufferAsprintf ( & filterbuf , \"%d%s%s \" , virLogFilters [ i ] -> priority , sep , virLogFilters [ i ] -> match ) ;\n }\n virLogUnlock ( ) ;\n if ( virBufferError ( & filterbuf ) ) {\n virBufferFreeAndReset ( & filterbuf ) ;\n return NULL ;\n }\n return virBufferContentAndReset ( & filterbuf ) ;\n }"}
{"idx": 4110, "target": 0, "func": "int main ( int argc , const char * * argv_ ) {\n int pass ;\n vpx_image_t raw ;\n # if CONFIG_VP9 && CONFIG_VP9_HIGHBITDEPTH vpx_image_t raw_shift ;\n int allocated_raw_shift = 0 ;\n int use_16bit_internal = 0 ;\n int input_shift = 0 ;\n # endif int frame_avail , got_data ;\n struct VpxInputContext input ;\n struct VpxEncoderConfig global ;\n struct stream_state * streams = NULL ;\n char * * argv , * * argi ;\n uint64_t cx_time = 0 ;\n int stream_cnt = 0 ;\n int res = 0 ;\n memset ( & input , 0 , sizeof ( input ) ) ;\n exec_name = argv_ [ 0 ] ;\n if ( argc < 3 ) usage_exit ( ) ;\n input . framerate . numerator = 30 ;\n input . framerate . denominator = 1 ;\n input . only_i420 = 1 ;\n input . bit_depth = 0 ;\n argv = argv_dup ( argc - 1 , argv_ + 1 ) ;\n parse_global_config ( & global , argv ) ;\n switch ( global . color_type ) {\n case I420 : input . fmt = VPX_IMG_FMT_I420 ;\n break ;\n case I422 : input . fmt = VPX_IMG_FMT_I422 ;\n break ;\n case I444 : input . fmt = VPX_IMG_FMT_I444 ;\n break ;\n case YV12 : input . fmt = VPX_IMG_FMT_YV12 ;\n break ;\n }\n {\n struct stream_state * stream = NULL ;\n do {\n stream = new_stream ( & global , stream ) ;\n stream_cnt ++ ;\n if ( ! streams ) streams = stream ;\n }\n while ( parse_stream_params ( & global , stream , argv ) ) ;\n }\n for ( argi = argv ;\n * argi ;\n argi ++ ) if ( argi [ 0 ] [ 0 ] == '-' && argi [ 0 ] [ 1 ] ) die ( \"Error: Unrecognized option %s\\n\" , * argi ) ;\n FOREACH_STREAM ( check_encoder_config ( global . disable_warning_prompt , & global , & stream -> config . cfg ) ;\n ) ;\n input . filename = argv [ 0 ] ;\n if ( ! input . filename ) usage_exit ( ) ;\n if ( global . codec -> fourcc == VP9_FOURCC ) input . only_i420 = 0 ;\n for ( pass = global . pass ? global . pass - 1 : 0 ;\n pass < global . passes ;\n pass ++ ) {\n int frames_in = 0 , seen_frames = 0 ;\n int64_t estimated_time_left = - 1 ;\n int64_t average_rate = - 1 ;\n int64_t lagged_count = 0 ;\n open_input_file ( & input ) ;\n if ( ! input . width || ! input . height ) FOREACH_STREAM ( {\n if ( stream -> config . cfg . g_w && stream -> config . cfg . g_h ) {\n input . width = stream -> config . cfg . g_w ;\n input . height = stream -> config . cfg . g_h ;\n break ;\n }\n }\n ) ;\n if ( ! input . width || ! input . height ) fatal ( \"Specify stream dimensions with --width (-w) \" \" and --height (-h)\" ) ;\n if ( ! input . bit_depth ) {\n FOREACH_STREAM ( {\n if ( stream -> config . cfg . g_input_bit_depth ) input . bit_depth = stream -> config . cfg . g_input_bit_depth ;\n else input . bit_depth = stream -> config . cfg . g_input_bit_depth = ( int ) stream -> config . cfg . g_bit_depth ;\n }\n ) ;\n if ( input . bit_depth > 8 ) input . fmt |= VPX_IMG_FMT_HIGHBITDEPTH ;\n }\n else {\n FOREACH_STREAM ( {\n stream -> config . cfg . g_input_bit_depth = input . bit_depth ;\n }\n ) ;\n }\n FOREACH_STREAM ( set_stream_dimensions ( stream , input . width , input . height ) ) ;\n FOREACH_STREAM ( validate_stream_config ( stream , & global ) ) ;\n if ( global . pass && global . passes == 2 ) FOREACH_STREAM ( {\n if ( ! stream -> config . stats_fn ) die ( \"Stream %d: Must specify --fpf when --pass=%d\" \" and --passes=2\\n\" , stream -> index , global . pass ) ;\n }\n ) ;\n # if ! CONFIG_WEBM_IO FOREACH_STREAM ( {\n stream -> config . write_webm = 0 ;\n warn ( \"vpxenc was compiled without WebM container support.\" \"Producing IVF output\" ) ;\n }\n ) ;\n # endif if ( ! global . have_framerate ) {\n global . framerate . num = input . framerate . numerator ;\n global . framerate . den = input . framerate . denominator ;\n }\n FOREACH_STREAM ( set_default_kf_interval ( stream , & global ) ) ;\n if ( global . verbose && pass == 0 ) FOREACH_STREAM ( show_stream_config ( stream , & global , & input ) ) ;\n if ( pass == ( global . pass ? global . pass - 1 : 0 ) ) {\n if ( input . file_type == FILE_TYPE_Y4M ) memset ( & raw , 0 , sizeof ( raw ) ) ;\n else vpx_img_alloc ( & raw , input . fmt , input . width , input . height , 32 ) ;\n FOREACH_STREAM ( stream -> rate_hist = init_rate_histogram ( & stream -> config . cfg , & global . framerate ) ) ;\n }\n FOREACH_STREAM ( setup_pass ( stream , & global , pass ) ) ;\n FOREACH_STREAM ( open_output_file ( stream , & global ) ) ;\n FOREACH_STREAM ( initialize_encoder ( stream , & global ) ) ;\n # if CONFIG_VP9 && CONFIG_VP9_HIGHBITDEPTH if ( strcmp ( global . codec -> name , \"vp9\" ) == 0 ) {\n FOREACH_STREAM ( {\n if ( stream -> config . use_16bit_internal ) {\n use_16bit_internal = 1 ;\n }\n if ( stream -> config . cfg . g_profile == 0 ) {\n input_shift = 0 ;\n }\n else {\n input_shift = ( int ) stream -> config . cfg . g_bit_depth - stream -> config . cfg . g_input_bit_depth ;\n }\n }\n ) ;\n }\n # endif frame_avail = 1 ;\n got_data = 0 ;\n while ( frame_avail || got_data ) {\n struct vpx_usec_timer timer ;\n if ( ! global . limit || frames_in < global . limit ) {\n frame_avail = read_frame ( & input , & raw ) ;\n if ( frame_avail ) frames_in ++ ;\n seen_frames = frames_in > global . skip_frames ? frames_in - global . skip_frames : 0 ;\n if ( ! global . quiet ) {\n float fps = usec_to_fps ( cx_time , seen_frames ) ;\n fprintf ( stderr , \"\\rPass %d/%d \" , pass + 1 , global . passes ) ;\n if ( stream_cnt == 1 ) fprintf ( stderr , \"frame %4d/%-4d %7\" PRId64 \"B \" , frames_in , streams -> frames_out , ( int64_t ) streams -> nbytes ) ;\n else fprintf ( stderr , \"frame %4d \" , frames_in ) ;\n fprintf ( stderr , \"%7\" PRId64 \" %s %.2f %s \" , cx_time > 9999999 ? cx_time / 1000 : cx_time , cx_time > 9999999 ? \"ms\" : \"us\" , fps >= 1.0 ? fps : fps * 60 , fps >= 1.0 ? \"fps\" : \"fpm\" ) ;\n print_time ( \"ETA\" , estimated_time_left ) ;\n }\n }\n else frame_avail = 0 ;\n if ( frames_in > global . skip_frames ) {\n # if CONFIG_VP9 && CONFIG_VP9_HIGHBITDEPTH vpx_image_t * frame_to_encode ;\n if ( input_shift || ( use_16bit_internal && input . bit_depth == 8 ) ) {\n assert ( use_16bit_internal ) ;\n if ( ! allocated_raw_shift ) {\n vpx_img_alloc ( & raw_shift , raw . fmt | VPX_IMG_FMT_HIGHBITDEPTH , input . width , input . height , 32 ) ;\n allocated_raw_shift = 1 ;\n }\n img_upshift ( & raw_shift , & raw , input_shift ) ;\n frame_to_encode = & raw_shift ;\n }\n else {\n frame_to_encode = & raw ;\n }\n vpx_usec_timer_start ( & timer ) ;\n if ( use_16bit_internal ) {\n assert ( frame_to_encode -> fmt & VPX_IMG_FMT_HIGHBITDEPTH ) ;\n FOREACH_STREAM ( {\n if ( stream -> config . use_16bit_internal ) encode_frame ( stream , & global , frame_avail ? frame_to_encode : NULL , frames_in ) ;\n else assert ( 0 ) ;\n }\n ) ;\n }\n else {\n assert ( ( frame_to_encode -> fmt & VPX_IMG_FMT_HIGHBITDEPTH ) == 0 ) ;\n FOREACH_STREAM ( encode_frame ( stream , & global , frame_avail ? frame_to_encode : NULL , frames_in ) ) ;\n }\n # else vpx_usec_timer_start ( & timer ) ;\n FOREACH_STREAM ( encode_frame ( stream , & global , frame_avail ? & raw : NULL , frames_in ) ) ;\n # endif vpx_usec_timer_mark ( & timer ) ;\n cx_time += vpx_usec_timer_elapsed ( & timer ) ;\n FOREACH_STREAM ( update_quantizer_histogram ( stream ) ) ;\n got_data = 0 ;\n FOREACH_STREAM ( get_cx_data ( stream , & global , & got_data ) ) ;\n if ( ! got_data && input . length && streams != NULL && ! streams -> frames_out ) {\n lagged_count = global . limit ? seen_frames : ftello ( input . file ) ;\n }\n else if ( input . length ) {\n int64_t remaining ;\n int64_t rate ;\n if ( global . limit ) {\n const int64_t frame_in_lagged = ( seen_frames - lagged_count ) * 1000 ;\n rate = cx_time ? frame_in_lagged * ( int64_t ) 1000000 / cx_time : 0 ;\n remaining = 1000 * ( global . limit - global . skip_frames - seen_frames + lagged_count ) ;\n }\n else {\n const int64_t input_pos = ftello ( input . file ) ;\n const int64_t input_pos_lagged = input_pos - lagged_count ;\n const int64_t limit = input . length ;\n rate = cx_time ? input_pos_lagged * ( int64_t ) 1000000 / cx_time : 0 ;\n remaining = limit - input_pos + lagged_count ;\n }\n average_rate = ( average_rate <= 0 ) ? rate : ( average_rate * 7 + rate ) / 8 ;\n estimated_time_left = average_rate ? remaining / average_rate : - 1 ;\n }\n if ( got_data && global . test_decode != TEST_DECODE_OFF ) FOREACH_STREAM ( test_decode ( stream , global . test_decode , global . codec ) ) ;\n }\n fflush ( stdout ) ;\n if ( ! global . quiet ) fprintf ( stderr , \"\\033[K\" ) ;\n }\n if ( stream_cnt > 1 ) fprintf ( stderr , \"\\n\" ) ;\n if ( ! global . quiet ) FOREACH_STREAM ( fprintf ( stderr , \"\\rPass %d/%d frame %4d/%-4d %7\" PRId64 \"B %7lub/f %7\" PRId64 \"b/s\" \" %7\" PRId64 \" %s (%.2f fps)\\033[K\\n\" , pass + 1 , global . passes , frames_in , stream -> frames_out , ( int64_t ) stream -> nbytes , seen_frames ? ( unsigned long ) ( stream -> nbytes * 8 / seen_frames ) : 0 , seen_frames ? ( int64_t ) stream -> nbytes * 8 * ( int64_t ) global . framerate . num / global . framerate . den / seen_frames : 0 , stream -> cx_time > 9999999 ? stream -> cx_time / 1000 : stream -> cx_time , stream -> cx_time > 9999999 ? \"ms\" : \"us\" , usec_to_fps ( stream -> cx_time , seen_frames ) ) ;\n ) ;\n if ( global . show_psnr ) FOREACH_STREAM ( show_psnr ( stream ) ) ;\n FOREACH_STREAM ( vpx_codec_destroy ( & stream -> encoder ) ) ;\n if ( global . test_decode != TEST_DECODE_OFF ) {\n FOREACH_STREAM ( vpx_codec_destroy ( & stream -> decoder ) ) ;\n }\n close_input_file ( & input ) ;\n if ( global . test_decode == TEST_DECODE_FATAL ) {\n FOREACH_STREAM ( res |= stream -> mismatch_seen ) ;\n }\n FOREACH_STREAM ( close_output_file ( stream , global . codec -> fourcc ) ) ;\n FOREACH_STREAM ( stats_close ( & stream -> stats , global . passes - 1 ) ) ;\n # if CONFIG_FP_MB_STATS FOREACH_STREAM ( stats_close ( & stream -> fpmb_stats , global . passes - 1 ) ) ;\n # endif if ( global . pass ) break ;\n }\n if ( global . show_q_hist_buckets ) FOREACH_STREAM ( show_q_histogram ( stream -> counts , global . show_q_hist_buckets ) ) ;\n if ( global . show_rate_hist_buckets ) FOREACH_STREAM ( show_rate_histogram ( stream -> rate_hist , & stream -> config . cfg , global . show_rate_hist_buckets ) ) ;\n FOREACH_STREAM ( destroy_rate_histogram ( stream -> rate_hist ) ) ;\n # if CONFIG_INTERNAL_STATS if ( ! ( global . pass == 1 && global . passes == 2 ) ) FOREACH_STREAM ( {\n FILE * f = fopen ( \"opsnr.stt\" , \"a\" ) ;\n if ( stream -> mismatch_seen ) {\n fprintf ( f , \"First mismatch occurred in frame %d\\n\" , stream -> mismatch_seen ) ;\n }\n else {\n fprintf ( f , \"No mismatch detected in recon buffers\\n\" ) ;\n }\n fclose ( f ) ;\n }\n ) ;\n # endif # if CONFIG_VP9 && CONFIG_VP9_HIGHBITDEPTH if ( allocated_raw_shift ) vpx_img_free ( & raw_shift ) ;\n # endif vpx_img_free ( & raw ) ;\n free ( argv ) ;\n free ( streams ) ;\n return res ? EXIT_FAILURE : EXIT_SUCCESS ;\n }"}
{"idx": 4111, "target": 0, "func": "static void spl_filesystem_file_rewind ( zval * this_ptr , spl_filesystem_object * intern TSRMLS_DC ) {\n if ( - 1 == php_stream_rewind ( intern -> u . file . stream ) ) {\n zend_throw_exception_ex ( spl_ce_RuntimeException , 0 TSRMLS_CC , \"Cannot rewind file %s\" , intern -> file_name ) ;\n }\n else {\n spl_filesystem_file_free_line ( intern TSRMLS_CC ) ;\n intern -> u . file . current_line_num = 0 ;\n }\n if ( SPL_HAS_FLAG ( intern -> flags , SPL_FILE_OBJECT_READ_AHEAD ) ) {\n spl_filesystem_file_read_line ( this_ptr , intern , 1 TSRMLS_CC ) ;\n }\n }"}
{"idx": 4112, "target": 0, "func": "static VALUE cState_array_nl ( VALUE self ) {\n GET_STATE ( self ) ;\n return state -> array_nl ? rb_str_new ( state -> array_nl , state -> array_nl_len ) : rb_str_new2 ( \"\" ) ;\n }"}
{"idx": 4113, "target": 0, "func": "int jas_stream_putc_func ( jas_stream_t * stream , int c ) {\n assert ( stream -> ptr_ - stream -> bufstart_ <= stream -> bufsize_ ) ;\n return jas_stream_putc_macro ( stream , c ) ;\n }"}
{"idx": 4114, "target": 0, "func": "static int dissect_usb_vid_control ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n gboolean is_request = ( pinfo -> srcport == NO_ENDPOINT ) ;\n usb_conv_info_t * usb_conv_info ;\n usb_trans_info_t * usb_trans_info ;\n int offset = 0 ;\n usb_setup_dissector dissector = NULL ;\n const usb_setup_dissector_table_t * tmp ;\n if ( data == NULL || ( ( usb_conv_info_t * ) data ) -> usb_trans_info == NULL ) return 0 ;\n usb_conv_info = ( usb_conv_info_t * ) data ;\n usb_trans_info = usb_conv_info -> usb_trans_info ;\n for ( tmp = setup_dissectors ;\n tmp -> dissector ;\n tmp ++ ) {\n if ( tmp -> request == usb_trans_info -> setup . request ) {\n dissector = tmp -> dissector ;\n break ;\n }\n }\n if ( ! dissector ) return 0 ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"USBVIDEO\" ) ;\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"%s %s\" , val_to_str ( usb_trans_info -> setup . request , setup_request_names_vals , \"Unknown type %x\" ) , is_request ? \"Request \" : \"Response\" ) ;\n if ( is_request ) {\n proto_tree_add_item ( tree , hf_usb_vid_request , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 1 ;\n }\n offset = dissector ( pinfo , tree , tvb , offset , is_request , usb_trans_info , usb_conv_info ) ;\n return offset ;\n }"}
{"idx": 4115, "target": 0, "func": "int qemuMonitorJSONGetPtyPaths ( qemuMonitorPtr mon , virHashTablePtr paths ) {\n int ret ;\n virJSONValuePtr cmd = qemuMonitorJSONMakeCommand ( \"query-chardev\" , NULL ) ;\n virJSONValuePtr reply = NULL ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n if ( ret == 0 ) ret = qemuMonitorJSONExtractPtyPaths ( reply , paths ) ;\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 4116, "target": 0, "func": "int evsignal_del ( struct event * ev ) {\n struct event_base * base = ev -> ev_base ;\n struct evsignal_info * sig = & base -> sig ;\n int evsignal = EVENT_SIGNAL ( ev ) ;\n assert ( evsignal >= 0 && evsignal < NSIG ) ;\n TAILQ_REMOVE ( & sig -> evsigevents [ evsignal ] , ev , ev_signal_next ) ;\n if ( ! TAILQ_EMPTY ( & sig -> evsigevents [ evsignal ] ) ) return ( 0 ) ;\n event_debug ( ( \"%s: %p: restoring signal handler\" , __func__ , ev ) ) ;\n return ( _evsignal_restore_handler ( ev -> ev_base , EVENT_SIGNAL ( ev ) ) ) ;\n }"}
{"idx": 4117, "target": 0, "func": "static int dissect_pvfs_credentials ( tvbuff_t * tvb , proto_tree * parent_tree , int offset ) {\n proto_tree * hcred_tree ;\n guint32 uid , gid ;\n uid = tvb_get_letohl ( tvb , offset ) ;\n gid = tvb_get_letohl ( tvb , offset + 4 ) ;\n hcred_tree = proto_tree_add_subtree_format ( parent_tree , tvb , offset , 8 , ett_pvfs_credentials , NULL , \"Credentials (UID: %d, GID: %d)\" , uid , gid ) ;\n proto_tree_add_item ( hcred_tree , hf_pvfs_uid , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( hcred_tree , hf_pvfs_gid , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n return offset ;\n }"}
{"idx": 4118, "target": 0, "func": "static int _warc_rdhdr ( struct archive_read * a , struct archive_entry * entry ) {\n # define HDR_PROBE_LEN ( 12U ) struct warc_s * w = a -> format -> data ;\n unsigned int ver ;\n const char * buf ;\n ssize_t nrd ;\n const char * eoh ;\n warc_string_t fnam ;\n warc_type_t ftyp ;\n ssize_t cntlen ;\n time_t rtime ;\n time_t mtime ;\n start_over : buf = __archive_read_ahead ( a , HDR_PROBE_LEN , & nrd ) ;\n if ( nrd < 0 ) {\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"Bad record header\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n else if ( buf == NULL ) {\n return ( ARCHIVE_EOF ) ;\n }\n eoh = _warc_find_eoh ( buf , nrd ) ;\n if ( eoh == NULL ) {\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"Bad record header\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n ver = _warc_rdver ( buf , eoh - buf ) ;\n if ( ver == 0U ) {\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"Invalid record version\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n else if ( ver < 1200U || ver > 10000U ) {\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"Unsupported record version: %u.%u\" , ver / 10000 , ( ver % 10000 ) / 100 ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n cntlen = _warc_rdlen ( buf , eoh - buf ) ;\n if ( cntlen < 0 ) {\n archive_set_error ( & a -> archive , EINVAL , \"Bad content length\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n rtime = _warc_rdrtm ( buf , eoh - buf ) ;\n if ( rtime == ( time_t ) - 1 ) {\n archive_set_error ( & a -> archive , EINVAL , \"Bad record time\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n a -> archive . archive_format = ARCHIVE_FORMAT_WARC ;\n if ( ver != w -> pver ) {\n archive_string_sprintf ( & w -> sver , \"WARC/%u.%u\" , ver / 10000 , ( ver % 10000 ) / 100 ) ;\n w -> pver = ver ;\n }\n ftyp = _warc_rdtyp ( buf , eoh - buf ) ;\n w -> cntlen = cntlen ;\n w -> cntoff = 0U ;\n mtime = 0 ;\n switch ( ftyp ) {\n case WT_RSRC : case WT_RSP : fnam = _warc_rduri ( buf , eoh - buf ) ;\n if ( fnam . len == 0 || fnam . str [ fnam . len - 1 ] == '/' ) {\n fnam . len = 0U ;\n fnam . str = NULL ;\n break ;\n }\n if ( fnam . len + 1U > w -> pool . len ) {\n w -> pool . len = ( ( fnam . len + 64U ) / 64U ) * 64U ;\n w -> pool . str = realloc ( w -> pool . str , w -> pool . len ) ;\n }\n memcpy ( w -> pool . str , fnam . str , fnam . len ) ;\n w -> pool . str [ fnam . len ] = '\\0' ;\n fnam . str = w -> pool . str ;\n if ( ( mtime = _warc_rdmtm ( buf , eoh - buf ) ) == ( time_t ) - 1 ) {\n mtime = rtime ;\n }\n break ;\n default : fnam . len = 0U ;\n fnam . str = NULL ;\n break ;\n }\n __archive_read_consume ( a , eoh - buf ) ;\n switch ( ftyp ) {\n case WT_RSRC : case WT_RSP : if ( fnam . len > 0U ) {\n archive_entry_set_filetype ( entry , AE_IFREG ) ;\n archive_entry_copy_pathname ( entry , fnam . str ) ;\n archive_entry_set_size ( entry , cntlen ) ;\n archive_entry_set_perm ( entry , 0644 ) ;\n archive_entry_set_ctime ( entry , rtime , 0L ) ;\n archive_entry_set_mtime ( entry , mtime , 0L ) ;\n break ;\n }\n default : _warc_skip ( a ) ;\n goto start_over ;\n }\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 4119, "target": 0, "func": "Jbig2GlobalCtx * jbig2_make_global_ctx ( Jbig2Ctx * ctx ) {\n return ( Jbig2GlobalCtx * ) ctx ;\n }"}
{"idx": 4120, "target": 0, "func": "static int task_has_system ( struct task_struct * tsk , u32 perms ) {\n u32 sid = task_sid ( tsk ) ;\n return avc_has_perm ( sid , SECINITSID_KERNEL , SECCLASS_SYSTEM , perms , NULL ) ;\n }"}
{"idx": 4121, "target": 0, "func": "static inline u32 task_sid ( const struct task_struct * task ) {\n u32 sid ;\n rcu_read_lock ( ) ;\n sid = cred_sid ( __task_cred ( task ) ) ;\n rcu_read_unlock ( ) ;\n return sid ;\n }"}
{"idx": 4122, "target": 0, "func": "static int purple_buddy_msg ( struct im_connection * ic , char * who , char * message , int flags ) {\n PurpleConversation * conv ;\n struct purple_data * pd = ic -> proto_data ;\n if ( ! strncmp ( who , PURPLE_REQUEST_HANDLE , sizeof ( PURPLE_REQUEST_HANDLE ) - 1 ) ) {\n guint request_id = atoi ( who + sizeof ( PURPLE_REQUEST_HANDLE ) ) ;\n purple_request_input_callback ( request_id , ic , message , who ) ;\n return 1 ;\n }\n if ( ( conv = purple_find_conversation_with_account ( PURPLE_CONV_TYPE_IM , who , pd -> account ) ) == NULL ) {\n conv = purple_conversation_new ( PURPLE_CONV_TYPE_IM , pd -> account , who ) ;\n }\n purple_conv_im_send ( purple_conversation_get_im_data ( conv ) , message ) ;\n return 1 ;\n }"}
{"idx": 4123, "target": 0, "func": "static cmsBool RegisterTypesPlugin ( cmsContext id , cmsPluginBase * Data , _cmsMemoryClient pos ) {\n cmsPluginTagType * Plugin = ( cmsPluginTagType * ) Data ;\n _cmsTagTypePluginChunkType * ctx = ( _cmsTagTypePluginChunkType * ) _cmsContextGetClientChunk ( id , pos ) ;\n _cmsTagTypeLinkedList * pt ;\n if ( Data == NULL ) {\n ctx -> TagTypes = NULL ;\n return TRUE ;\n }\n pt = ( _cmsTagTypeLinkedList * ) _cmsPluginMalloc ( id , sizeof ( _cmsTagTypeLinkedList ) ) ;\n if ( pt == NULL ) return FALSE ;\n pt -> Handler = Plugin -> Handler ;\n pt -> Next = ctx -> TagTypes ;\n ctx -> TagTypes = pt ;\n return TRUE ;\n }"}
{"idx": 4124, "target": 0, "func": "int qemuMonitorTextRemoveNetdev ( qemuMonitorPtr mon , const char * alias ) {\n char * cmd ;\n char * reply = NULL ;\n int ret = - 1 ;\n if ( virAsprintf ( & cmd , \"netdev_del %s\" , alias ) < 0 ) {\n virReportOOMError ( ) ;\n return - 1 ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"failed to remove netdev in qemu with '%s'\" ) , cmd ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( cmd ) ;\n VIR_FREE ( reply ) ;\n return ret ;\n }"}
{"idx": 4125, "target": 0, "func": "static void authenticate ( struct parse * pcmd , FILE * fp ) {\n if ( pcmd -> nargs == 0 ) {\n if ( always_auth ) {\n ( void ) fprintf ( fp , \"authenticated requests being sent\\n\" ) ;\n }\n else ( void ) fprintf ( fp , \"unauthenticated requests being sent\\n\" ) ;\n }\n else {\n if ( STREQ ( pcmd -> argval [ 0 ] . string , \"yes\" ) ) {\n always_auth = 1 ;\n }\n else if ( STREQ ( pcmd -> argval [ 0 ] . string , \"no\" ) ) {\n always_auth = 0 ;\n }\n else ( void ) fprintf ( stderr , \"What?\\n\" ) ;\n }\n }"}
{"idx": 4126, "target": 0, "func": "static int parse_CFullPropSpec ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree , struct CFullPropSpec * v , const char * fmt , ... ) {\n struct GuidPropertySet * pset ;\n const char * id_str , * guid_str , * txt ;\n proto_item * item ;\n proto_tree * tree ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CFullPropSpec , & item , txt ) ;\n offset = parse_padding ( tvb , offset , 8 , pad_tree , \"paddingPropSet\" ) ;\n offset = parse_guid ( tvb , offset , tree , & v -> guid , \"GUID\" ) ;\n pset = GuidPropertySet_find_guid ( & v -> guid ) ;\n offset = parse_PRSPEC_Kind ( tvb , offset , tree , & v -> kind ) ;\n v -> u . propid = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_cfullpropspec_propid , tvb , offset , 4 , v -> u . propid ) ;\n offset += 4 ;\n if ( v -> kind == PRSPEC_LPWSTR ) {\n int len = 2 * v -> u . propid ;\n proto_tree_add_item_ret_string ( tree , hf_mswsp_cfullpropspec_propname , tvb , offset , len , ENC_LITTLE_ENDIAN | ENC_UCS_2 , wmem_packet_scope ( ) , & v -> u . name ) ;\n offset += len ;\n }\n id_str = pset ? try_val_to_str ( v -> u . propid , pset -> id_map ) : NULL ;\n if ( id_str ) {\n proto_item_append_text ( item , \": %s\" , id_str ) ;\n }\n else {\n guid_str = guids_get_guid_name ( & v -> guid ) ;\n if ( guid_str ) {\n proto_item_append_text ( item , \": \\\"%s\\\"\" , guid_str ) ;\n }\n else {\n guid_str = guid_to_str ( wmem_packet_scope ( ) , & v -> guid ) ;\n proto_item_append_text ( item , \": {\n%s}\n\" , guid_str ) ;\n }\n if ( v -> kind == PRSPEC_LPWSTR ) {\n proto_item_append_text ( item , \" \\\"%s\\\"\" , v -> u . name ) ;\n }\n else if ( v -> kind == PRSPEC_PROPID ) {\n proto_item_append_text ( item , \" 0x%08x\" , v -> u . propid ) ;\n }\n else {\n proto_item_append_text ( item , \" <INVALID>\" ) ;\n }\n }\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 4127, "target": 1, "func": "static void _LMBCSOpen ## n ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err ) \\ {\n _LMBCSOpenWorker ( _this , pArgs , err , n ) ;\n }\n static void _LMBCSOpenWorker ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err , ulmbcs_byte_t OptGroup ) {\n UConverterDataLMBCS * extraInfo = _this -> extraInfo = ( UConverterDataLMBCS * ) uprv_malloc ( sizeof ( UConverterDataLMBCS ) ) ;\n if ( extraInfo != NULL ) {\n UConverterNamePieces stackPieces ;\n UConverterLoadArgs stackArgs = {\n ( int32_t ) sizeof ( UConverterLoadArgs ) }\n ;\n ulmbcs_byte_t i ;\n uprv_memset ( extraInfo , 0 , sizeof ( UConverterDataLMBCS ) ) ;\n stackArgs . onlyTestIsLoadable = pArgs -> onlyTestIsLoadable ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST && U_SUCCESS ( * err ) ;\n i ++ ) {\n if ( OptGroupByteToCPName [ i ] != NULL ) {\n extraInfo -> OptGrpConverter [ i ] = ucnv_loadSharedData ( OptGroupByteToCPName [ i ] , & stackPieces , & stackArgs , err ) ;\n }\n }\n if ( U_FAILURE ( * err ) || pArgs -> onlyTestIsLoadable ) {\n _LMBCSClose ( _this ) ;\n return ;\n }\n extraInfo -> OptGroup = OptGroup ;\n extraInfo -> localeConverterIndex = FindLMBCSLocale ( pArgs -> locale ) ;\n }\n else {\n * err = U_MEMORY_ALLOCATION_ERROR ;\n }\n }\n static void _LMBCSClose ( UConverter * _this ) {\n if ( _this -> extraInfo != NULL ) {\n ulmbcs_byte_t Ix ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) _this -> extraInfo ;\n for ( Ix = 0 ;\n Ix <= ULMBCS_GRP_LAST ;\n Ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ Ix ] != NULL ) ucnv_unloadSharedDataIfReady ( extraInfo -> OptGrpConverter [ Ix ] ) ;\n }\n if ( ! _this -> isExtraLocal ) {\n uprv_free ( _this -> extraInfo ) ;\n _this -> extraInfo = NULL ;\n }\n }\n }\n typedef struct LMBCSClone {\n UConverter cnv ;\n UConverterDataLMBCS lmbcs ;\n }\n LMBCSClone ;\n static UConverter * _LMBCSSafeClone ( const UConverter * cnv , void * stackBuffer , int32_t * pBufferSize , UErrorCode * status ) {\n LMBCSClone * newLMBCS ;\n UConverterDataLMBCS * extraInfo ;\n int32_t i ;\n if ( * pBufferSize <= 0 ) {\n * pBufferSize = ( int32_t ) sizeof ( LMBCSClone ) ;\n return NULL ;\n }\n extraInfo = ( UConverterDataLMBCS * ) cnv -> extraInfo ;\n newLMBCS = ( LMBCSClone * ) stackBuffer ;\n uprv_memcpy ( & newLMBCS -> lmbcs , extraInfo , sizeof ( UConverterDataLMBCS ) ) ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST ;\n ++ i ) {\n if ( extraInfo -> OptGrpConverter [ i ] != NULL ) {\n ucnv_incrementRefCount ( extraInfo -> OptGrpConverter [ i ] ) ;\n }\n }\n newLMBCS -> cnv . extraInfo = & newLMBCS -> lmbcs ;\n newLMBCS -> cnv . isExtraLocal = TRUE ;\n return & newLMBCS -> cnv ;\n }\n static size_t LMBCSConversionWorker ( UConverterDataLMBCS * extraInfo , ulmbcs_byte_t group , ulmbcs_byte_t * pStartLMBCS , UChar * pUniChar , ulmbcs_byte_t * lastConverterIndex , UBool * groups_tried ) {\n ulmbcs_byte_t * pLMBCS = pStartLMBCS ;\n UConverterSharedData * xcnv = extraInfo -> OptGrpConverter [ group ] ;\n int bytesConverted ;\n uint32_t value ;\n ulmbcs_byte_t firstByte ;\n U_ASSERT ( xcnv ) ;\n U_ASSERT ( group < ULMBCS_GRP_UNICODE ) ;\n bytesConverted = ucnv_MBCSFromUChar32 ( xcnv , * pUniChar , & value , FALSE ) ;\n if ( bytesConverted > 0 ) {\n firstByte = ( ulmbcs_byte_t ) ( value >> ( ( bytesConverted - 1 ) * 8 ) ) ;\n }\n else {\n groups_tried [ group ] = TRUE ;\n return 0 ;\n }\n * lastConverterIndex = group ;\n U_ASSERT ( ( firstByte <= ULMBCS_C0END ) || ( firstByte >= ULMBCS_C1START ) || ( group == ULMBCS_GRP_EXCEPT ) ) ;\n if ( group != ULMBCS_GRP_EXCEPT && extraInfo -> OptGroup != group ) {\n * pLMBCS ++ = group ;\n if ( bytesConverted == 1 && group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n * pLMBCS ++ = group ;\n }\n }\n if ( bytesConverted == 1 && firstByte < 0x20 ) return 0 ;\n switch ( bytesConverted ) {\n case 4 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 24 ) ;\n U_FALLTHROUGH ;\n case 3 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 16 ) ;\n U_FALLTHROUGH ;\n case 2 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 8 ) ;\n U_FALLTHROUGH ;\n case 1 : * pLMBCS ++ = ( ulmbcs_byte_t ) value ;\n U_FALLTHROUGH ;\n default : break ;\n }\n return ( pLMBCS - pStartLMBCS ) ;\n }\n static size_t LMBCSConvertUni ( ulmbcs_byte_t * pLMBCS , UChar uniChar ) {\n uint8_t LowCh = ( uint8_t ) ( uniChar & 0x00FF ) ;\n uint8_t HighCh = ( uint8_t ) ( uniChar >> 8 ) ;\n * pLMBCS ++ = ULMBCS_GRP_UNICODE ;\n if ( LowCh == 0 ) {\n * pLMBCS ++ = ULMBCS_UNICOMPATZERO ;\n * pLMBCS ++ = HighCh ;\n }\n else {\n * pLMBCS ++ = HighCh ;\n * pLMBCS ++ = LowCh ;\n }\n return ULMBCS_UNICODE_SIZE ;\n }\n static void _LMBCSFromUnicode ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n ulmbcs_byte_t lastConverterIndex = 0 ;\n UChar uniChar ;\n ulmbcs_byte_t LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n ulmbcs_byte_t * pLMBCS ;\n int32_t bytes_written ;\n UBool groups_tried [ ULMBCS_GRP_LAST + 1 ] ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n int sourceIndex = 0 ;\n ulmbcs_byte_t OldConverterIndex = 0 ;\n while ( args -> source < args -> sourceLimit && ! U_FAILURE ( * err ) ) {\n OldConverterIndex = extraInfo -> localeConverterIndex ;\n if ( args -> target >= args -> targetLimit ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n uniChar = * ( args -> source ) ;\n bytes_written = 0 ;\n pLMBCS = LMBCS ;\n if ( ( uniChar >= 0x80 ) && ( uniChar <= 0xff ) && ( uniChar != 0xB1 ) && ( uniChar != 0xD7 ) && ( uniChar != 0xF7 ) && ( uniChar != 0xB0 ) && ( uniChar != 0xB4 ) && ( uniChar != 0xB6 ) && ( uniChar != 0xA7 ) && ( uniChar != 0xA8 ) ) {\n extraInfo -> localeConverterIndex = ULMBCS_GRP_L1 ;\n }\n if ( ( ( uniChar > ULMBCS_C0END ) && ( uniChar < ULMBCS_C1START ) ) || uniChar == 0 || uniChar == ULMBCS_HT || uniChar == ULMBCS_CR || uniChar == ULMBCS_LF || uniChar == ULMBCS_123SYSTEMRANGE ) {\n * pLMBCS ++ = ( ulmbcs_byte_t ) uniChar ;\n bytes_written = 1 ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t group = FindLMBCSUniRange ( uniChar ) ;\n if ( group == ULMBCS_GRP_UNICODE ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group == ULMBCS_GRP_CTRL ) {\n if ( uniChar <= ULMBCS_C0END ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( ULMBCS_CTRLOFFSET + uniChar ) ;\n }\n else if ( uniChar >= ULMBCS_C1START && uniChar <= ULMBCS_C1START + ULMBCS_CTRLOFFSET ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( uniChar & 0x00FF ) ;\n }\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group < ULMBCS_GRP_UNICODE ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , group , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n uprv_memset ( groups_tried , 0 , sizeof ( groups_tried ) ) ;\n if ( ( extraInfo -> OptGroup != 1 ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> OptGroup ) ) ) {\n if ( extraInfo -> localeConverterIndex < ULMBCS_DOUBLEOPTGROUP_START ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_L1 , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n else {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && ( extraInfo -> localeConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> localeConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written && ( lastConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , lastConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , lastConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t grp_start ;\n ulmbcs_byte_t grp_end ;\n ulmbcs_byte_t grp_ix ;\n grp_start = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_DOUBLEOPTGROUP_START : ULMBCS_GRP_L1 ) ;\n grp_end = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_GRP_LAST : ULMBCS_GRP_TH ) ;\n if ( group == ULMBCS_AMBIGUOUS_ALL ) {\n grp_start = ULMBCS_GRP_L1 ;\n grp_end = ULMBCS_GRP_LAST ;\n }\n for ( grp_ix = grp_start ;\n grp_ix <= grp_end && ! bytes_written ;\n grp_ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ grp_ix ] && ! groups_tried [ grp_ix ] ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , grp_ix , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && grp_start == ULMBCS_GRP_L1 ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n }\n }\n args -> source ++ ;\n pLMBCS = LMBCS ;\n while ( args -> target < args -> targetLimit && bytes_written -- ) {\n * ( args -> target ) ++ = * pLMBCS ++ ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = sourceIndex ;\n }\n }\n sourceIndex ++ ;\n if ( bytes_written > 0 ) {\n uint8_t * pErrorBuffer = args -> converter -> charErrorBuffer ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n args -> converter -> charErrorBufferLength = ( int8_t ) bytes_written ;\n while ( bytes_written -- ) {\n * pErrorBuffer ++ = * pLMBCS ++ ;\n }\n }\n extraInfo -> localeConverterIndex = OldConverterIndex ;\n }\n }\n static UChar GetUniFromLMBCSUni ( char const * * ppLMBCSin ) {\n uint8_t HighCh = * ( * ppLMBCSin ) ++ ;\n uint8_t LowCh = * ( * ppLMBCSin ) ++ ;\n if ( HighCh == ULMBCS_UNICOMPATZERO ) {\n HighCh = LowCh ;\n LowCh = 0 ;\n }\n return ( UChar ) ( ( HighCh << 8 ) | LowCh ) ;\n }\n # define CHECK_SOURCE_LIMIT ( index ) if ( args -> source + index > args -> sourceLimit ) {\n * err = U_TRUNCATED_CHAR_FOUND ;\n args -> source = args -> sourceLimit ;\n return 0xffff ;\n }\n static UChar32 _LMBCSGetNextUCharWorker ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n UChar32 uniChar = 0 ;\n ulmbcs_byte_t CurByte ;\n if ( args -> source >= args -> sourceLimit ) {\n * err = U_ILLEGAL_ARGUMENT_ERROR ;\n return 0xffff ;\n }\n CurByte = * ( ( ulmbcs_byte_t * ) ( args -> source ++ ) ) ;\n if ( ( ( CurByte > ULMBCS_C0END ) && ( CurByte < ULMBCS_C1START ) ) || ( CurByte == 0 ) || CurByte == ULMBCS_HT || CurByte == ULMBCS_CR || CurByte == ULMBCS_LF || CurByte == ULMBCS_123SYSTEMRANGE ) {\n uniChar = CurByte ;\n }\n else {\n UConverterDataLMBCS * extraInfo ;\n ulmbcs_byte_t group ;\n UConverterSharedData * cnv ;\n if ( CurByte == ULMBCS_GRP_CTRL ) {\n ulmbcs_byte_t C0C1byte ;\n CHECK_SOURCE_LIMIT ( 1 ) ;\n C0C1byte = * ( args -> source ) ++ ;\n uniChar = ( C0C1byte < ULMBCS_C1START ) ? C0C1byte - ULMBCS_CTRLOFFSET : C0C1byte ;\n }\n else if ( CurByte == ULMBCS_GRP_UNICODE ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n return GetUniFromLMBCSUni ( & ( args -> source ) ) ;\n }\n else if ( CurByte <= ULMBCS_CTRLOFFSET ) {\n group = CurByte ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n if ( group > ULMBCS_GRP_LAST || ( cnv = extraInfo -> OptGrpConverter [ group ] ) == NULL ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n if ( * args -> source == group ) {\n ++ args -> source ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 1 , FALSE ) ;\n ++ args -> source ;\n }\n else {\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 2 , FALSE ) ;\n args -> source += 2 ;\n }\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n CurByte = * ( args -> source ) ++ ;\n if ( CurByte >= ULMBCS_C1START ) {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n else {\n char bytes [ 2 ] ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n cnv = extraInfo -> OptGrpConverter [ ULMBCS_GRP_EXCEPT ] ;\n bytes [ 0 ] = group ;\n bytes [ 1 ] = CurByte ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , bytes , 2 , FALSE ) ;\n }\n }\n }\n else if ( CurByte >= ULMBCS_C1START ) {\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n group = extraInfo -> OptGroup ;\n cnv = extraInfo -> OptGrpConverter [ group ] ;\n if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n if ( ! ucnv_MBCSIsLeadByte ( cnv , CurByte ) ) {\n CHECK_SOURCE_LIMIT ( 0 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 1 , FALSE ) ;\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 2 , FALSE ) ;\n ++ args -> source ;\n }\n }\n else {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n }\n }\n return uniChar ;\n }\n static void _LMBCSToUnicodeWithOffsets ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n char LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n UChar uniChar ;\n const char * saveSource ;\n const char * pStartLMBCS = args -> source ;\n const char * errSource = NULL ;\n int8_t savebytes = 0 ;\n while ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit > args -> target ) {\n saveSource = args -> source ;\n if ( args -> converter -> toULength ) {\n const char * saveSourceLimit ;\n size_t size_old = args -> converter -> toULength ;\n size_t size_new_maybe_1 = sizeof ( LMBCS ) - size_old ;\n size_t size_new_maybe_2 = args -> sourceLimit - args -> source ;\n size_t size_new = ( size_new_maybe_1 < size_new_maybe_2 ) ? size_new_maybe_1 : size_new_maybe_2 ;\n uprv_memcpy ( LMBCS , args -> converter -> toUBytes , size_old ) ;\n uprv_memcpy ( LMBCS + size_old , args -> source , size_new ) ;\n saveSourceLimit = args -> sourceLimit ;\n args -> source = errSource = LMBCS ;\n args -> sourceLimit = LMBCS + size_old + size_new ;\n savebytes = ( int8_t ) ( size_old + size_new ) ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n args -> source = saveSource + ( ( args -> source - LMBCS ) - size_old ) ;\n args -> sourceLimit = saveSourceLimit ;\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n args -> converter -> toULength = savebytes ;\n uprv_memcpy ( args -> converter -> toUBytes , LMBCS , savebytes ) ;\n args -> source = args -> sourceLimit ;\n * err = U_ZERO_ERROR ;\n return ;\n }\n else {\n args -> converter -> toULength = 0 ;\n }\n }\n else {\n errSource = saveSource ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n savebytes = ( int8_t ) ( args -> source - saveSource ) ;\n }\n if ( U_SUCCESS ( * err ) ) {\n if ( uniChar < 0xfffe ) {\n * ( args -> target ) ++ = uniChar ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = ( int32_t ) ( saveSource - pStartLMBCS ) ;\n }\n }\n else if ( uniChar == 0xfffe ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n }\n if ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit <= args -> target ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n else if ( U_FAILURE ( * err ) ) {\n args -> converter -> toULength = savebytes ;\n if ( savebytes > 0 ) {\n uprv_memcpy ( args -> converter -> toUBytes , errSource , savebytes ) ;\n }\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n * err = U_ZERO_ERROR ;\n }\n }\n }\n DEFINE_LMBCS_OPEN ( 1 ) DEFINE_LMBCS_OPEN ( 2 ) DEFINE_LMBCS_OPEN ( 3 ) DEFINE_LMBCS_OPEN ( 4 )"}
{"idx": 4128, "target": 0, "func": "void hb_blob_destroy ( hb_blob_t * blob ) {\n if ( ! hb_object_destroy ( blob ) ) return ;\n _hb_blob_destroy_user_data ( blob ) ;\n free ( blob ) ;\n }"}
{"idx": 4129, "target": 0, "func": "static int dissect_h225_SEQUENCE_OF_CallReferenceValue ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_SEQUENCE_OF_CallReferenceValue , SEQUENCE_OF_CallReferenceValue_sequence_of ) ;\n return offset ;\n }"}
{"idx": 4130, "target": 0, "func": "static fragment_head * force_reassemble_seq ( reassembly_table * table , packet_info * pinfo , guint32 id ) {\n fragment_head * fd_head ;\n fragment_item * fd_i ;\n fragment_item * last_fd ;\n guint32 dfpos , size , packet_lost , burst_lost , seq_num ;\n guint8 * data ;\n fd_head = fragment_get ( table , pinfo , id , NULL ) ;\n if ( pinfo -> fd -> flags . visited ) {\n if ( fd_head != NULL && fd_head -> flags & FD_DEFRAGMENTED ) {\n return fd_head ;\n }\n else {\n return NULL ;\n }\n }\n if ( fd_head == NULL ) {\n return NULL ;\n }\n packet_lost = 0 ;\n burst_lost = 0 ;\n seq_num = 0 ;\n for ( fd_i = fd_head -> next ;\n fd_i ;\n fd_i = fd_i -> next ) {\n if ( seq_num != fd_i -> offset ) {\n packet_lost += fd_i -> offset - seq_num ;\n if ( ( fd_i -> offset - seq_num ) > burst_lost ) {\n burst_lost = fd_i -> offset - seq_num ;\n }\n }\n seq_num = fd_i -> offset + 1 ;\n }\n size = 0 ;\n last_fd = NULL ;\n for ( fd_i = fd_head -> next ;\n fd_i ;\n fd_i = fd_i -> next ) {\n if ( ! last_fd || last_fd -> offset != fd_i -> offset ) {\n size += fd_i -> len ;\n }\n last_fd = fd_i ;\n }\n data = ( guint8 * ) g_malloc ( size ) ;\n fd_head -> tvb_data = tvb_new_real_data ( data , size , size ) ;\n fd_head -> len = size ;\n dfpos = 0 ;\n last_fd = NULL ;\n for ( fd_i = fd_head -> next ;\n fd_i && fd_i -> len + dfpos <= size ;\n fd_i = fd_i -> next ) {\n if ( fd_i -> len ) {\n if ( ! last_fd || last_fd -> offset != fd_i -> offset ) {\n tvb_memcpy ( fd_i -> tvb_data , data + dfpos , 0 , fd_i -> len ) ;\n dfpos += fd_i -> len ;\n }\n else {\n fd_i -> flags |= FD_OVERLAP ;\n fd_head -> flags |= FD_OVERLAP ;\n if ( ( last_fd -> len != fd_i -> len ) || tvb_memeql ( last_fd -> tvb_data , 0 , tvb_get_ptr ( fd_i -> tvb_data , 0 , last_fd -> len ) , last_fd -> len ) ) {\n fd_i -> flags |= FD_OVERLAPCONFLICT ;\n fd_head -> flags |= FD_OVERLAPCONFLICT ;\n }\n }\n }\n last_fd = fd_i ;\n }\n for ( fd_i = fd_head -> next ;\n fd_i ;\n fd_i = fd_i -> next ) {\n if ( fd_i -> tvb_data ) {\n tvb_free ( fd_i -> tvb_data ) ;\n fd_i -> tvb_data = NULL ;\n }\n }\n fd_head -> flags |= FD_DEFRAGMENTED ;\n fd_head -> reassembled_in = pinfo -> fd -> num ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" (t4-data Reassembled: %d pack lost, %d pack burst lost)\" , packet_lost , burst_lost ) ;\n p_t38_packet_conv_info -> packet_lost = packet_lost ;\n p_t38_packet_conv_info -> burst_lost = burst_lost ;\n return fd_head ;\n }"}
{"idx": 4131, "target": 0, "func": "Node * estimate_expression_value ( PlannerInfo * root , Node * node ) {\n eval_const_expressions_context context ;\n context . boundParams = root -> glob -> boundParams ;\n context . root = NULL ;\n context . active_fns = NIL ;\n context . case_val = NULL ;\n context . estimate = true ;\n return eval_const_expressions_mutator ( node , & context ) ;\n }"}
{"idx": 4132, "target": 0, "func": "void try_outgoing_connections ( void ) {\n static config_t * cfg = NULL ;\n char * name ;\n outgoing_t * outgoing ;\n outgoing_list = list_alloc ( ( list_action_t ) free_outgoing ) ;\n for ( cfg = lookup_config ( config_tree , \"ConnectTo\" ) ;\n cfg ;\n cfg = lookup_config_next ( config_tree , cfg ) ) {\n get_config_string ( cfg , & name ) ;\n if ( ! check_id ( name ) ) {\n logger ( LOG_ERR , \"Invalid name for outgoing connection in %s line %d\" , cfg -> file , cfg -> line ) ;\n free ( name ) ;\n continue ;\n }\n outgoing = xmalloc_and_zero ( sizeof ( * outgoing ) ) ;\n outgoing -> name = name ;\n list_insert_tail ( outgoing_list , outgoing ) ;\n setup_outgoing_connection ( outgoing ) ;\n }\n }"}
{"idx": 4133, "target": 1, "func": "int ParseCaffHeaderConfig ( FILE * infile , char * infilename , char * fourcc , WavpackContext * wpc , WavpackConfig * config ) {\n uint32_t chan_chunk = 0 , channel_layout = 0 , bcount ;\n unsigned char * channel_identities = NULL ;\n unsigned char * channel_reorder = NULL ;\n int64_t total_samples = 0 , infilesize ;\n CAFFileHeader caf_file_header ;\n CAFChunkHeader caf_chunk_header ;\n CAFAudioFormat caf_audio_format ;\n int i ;\n infilesize = DoGetFileSize ( infile ) ;\n memcpy ( & caf_file_header , fourcc , 4 ) ;\n if ( ( ! DoReadFile ( infile , ( ( char * ) & caf_file_header ) + 4 , sizeof ( CAFFileHeader ) - 4 , & bcount ) || bcount != sizeof ( CAFFileHeader ) - 4 ) ) {\n error_line ( \"%s is not a valid .CAF file!\" , infilename ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n else if ( ! ( config -> qmode & QMODE_NO_STORE_WRAPPER ) && ! WavpackAddWrapper ( wpc , & caf_file_header , sizeof ( CAFFileHeader ) ) ) {\n error_line ( \"%s\" , WavpackGetErrorMessage ( wpc ) ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n WavpackBigEndianToNative ( & caf_file_header , CAFFileHeaderFormat ) ;\n if ( caf_file_header . mFileVersion != 1 ) {\n error_line ( \"%s: can't handle version %d .CAF files!\" , infilename , caf_file_header . mFileVersion ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n while ( 1 ) {\n if ( ! DoReadFile ( infile , & caf_chunk_header , sizeof ( CAFChunkHeader ) , & bcount ) || bcount != sizeof ( CAFChunkHeader ) ) {\n error_line ( \"%s is not a valid .CAF file!\" , infilename ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n else if ( ! ( config -> qmode & QMODE_NO_STORE_WRAPPER ) && ! WavpackAddWrapper ( wpc , & caf_chunk_header , sizeof ( CAFChunkHeader ) ) ) {\n error_line ( \"%s\" , WavpackGetErrorMessage ( wpc ) ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n WavpackBigEndianToNative ( & caf_chunk_header , CAFChunkHeaderFormat ) ;\n if ( ! strncmp ( caf_chunk_header . mChunkType , \"desc\" , 4 ) ) {\n int supported = TRUE ;\n if ( caf_chunk_header . mChunkSize != sizeof ( CAFAudioFormat ) || ! DoReadFile ( infile , & caf_audio_format , ( uint32_t ) caf_chunk_header . mChunkSize , & bcount ) || bcount != caf_chunk_header . mChunkSize ) {\n error_line ( \"%s is not a valid .CAF file!\" , infilename ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n else if ( ! ( config -> qmode & QMODE_NO_STORE_WRAPPER ) && ! WavpackAddWrapper ( wpc , & caf_audio_format , ( uint32_t ) caf_chunk_header . mChunkSize ) ) {\n error_line ( \"%s\" , WavpackGetErrorMessage ( wpc ) ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n WavpackBigEndianToNative ( & caf_audio_format , CAFAudioFormatFormat ) ;\n if ( debug_logging_mode ) {\n char formatstr [ 5 ] ;\n memcpy ( formatstr , caf_audio_format . mFormatID , 4 ) ;\n formatstr [ 4 ] = 0 ;\n error_line ( \"format = %s, flags = %x, sampling rate = %g\" , formatstr , caf_audio_format . mFormatFlags , caf_audio_format . mSampleRate ) ;\n error_line ( \"packet = %d bytes and %d frames\" , caf_audio_format . mBytesPerPacket , caf_audio_format . mFramesPerPacket ) ;\n error_line ( \"channels per frame = %d, bits per channel = %d\" , caf_audio_format . mChannelsPerFrame , caf_audio_format . mBitsPerChannel ) ;\n }\n if ( strncmp ( caf_audio_format . mFormatID , \"lpcm\" , 4 ) || ( caf_audio_format . mFormatFlags & ~ 3 ) ) supported = FALSE ;\n else if ( caf_audio_format . mSampleRate < 1.0 || caf_audio_format . mSampleRate > 16777215.0 || caf_audio_format . mSampleRate != floor ( caf_audio_format . mSampleRate ) ) supported = FALSE ;\n else if ( ! caf_audio_format . mChannelsPerFrame || caf_audio_format . mChannelsPerFrame > 256 ) supported = FALSE ;\n else if ( caf_audio_format . mBitsPerChannel < 1 || caf_audio_format . mBitsPerChannel > 32 || ( ( caf_audio_format . mFormatFlags & CAF_FORMAT_FLOAT ) && caf_audio_format . mBitsPerChannel != 32 ) ) supported = FALSE ;\n else if ( caf_audio_format . mFramesPerPacket != 1 || caf_audio_format . mBytesPerPacket / caf_audio_format . mChannelsPerFrame < ( caf_audio_format . mBitsPerChannel + 7 ) / 8 || caf_audio_format . mBytesPerPacket / caf_audio_format . mChannelsPerFrame > 4 || caf_audio_format . mBytesPerPacket % caf_audio_format . mChannelsPerFrame ) supported = FALSE ;\n if ( ! supported ) {\n error_line ( \"%s is an unsupported .CAF format!\" , infilename ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n config -> bytes_per_sample = caf_audio_format . mBytesPerPacket / caf_audio_format . mChannelsPerFrame ;\n config -> float_norm_exp = ( caf_audio_format . mFormatFlags & CAF_FORMAT_FLOAT ) ? 127 : 0 ;\n config -> bits_per_sample = caf_audio_format . mBitsPerChannel ;\n config -> num_channels = caf_audio_format . mChannelsPerFrame ;\n config -> sample_rate = ( int ) caf_audio_format . mSampleRate ;\n if ( ! ( caf_audio_format . mFormatFlags & CAF_FORMAT_LITTLE_ENDIAN ) && config -> bytes_per_sample > 1 ) config -> qmode |= QMODE_BIG_ENDIAN ;\n if ( config -> bytes_per_sample == 1 ) config -> qmode |= QMODE_SIGNED_BYTES ;\n if ( debug_logging_mode ) {\n if ( config -> float_norm_exp == 127 ) error_line ( \"data format: 32-bit %s-endian floating point\" , ( config -> qmode & QMODE_BIG_ENDIAN ) ? \"big\" : \"little\" ) ;\n else error_line ( \"data format: %d-bit %s-endian integers stored in %d byte(s)\" , config -> bits_per_sample , ( config -> qmode & QMODE_BIG_ENDIAN ) ? \"big\" : \"little\" , config -> bytes_per_sample ) ;\n }\n }\n else if ( ! strncmp ( caf_chunk_header . mChunkType , \"chan\" , 4 ) ) {\n CAFChannelLayout * caf_channel_layout = malloc ( ( size_t ) caf_chunk_header . mChunkSize ) ;\n if ( caf_chunk_header . mChunkSize < sizeof ( CAFChannelLayout ) || ! DoReadFile ( infile , caf_channel_layout , ( uint32_t ) caf_chunk_header . mChunkSize , & bcount ) || bcount != caf_chunk_header . mChunkSize ) {\n error_line ( \"%s is not a valid .CAF file!\" , infilename ) ;\n free ( caf_channel_layout ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n else if ( ! ( config -> qmode & QMODE_NO_STORE_WRAPPER ) && ! WavpackAddWrapper ( wpc , caf_channel_layout , ( uint32_t ) caf_chunk_header . mChunkSize ) ) {\n error_line ( \"%s\" , WavpackGetErrorMessage ( wpc ) ) ;\n free ( caf_channel_layout ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n WavpackBigEndianToNative ( caf_channel_layout , CAFChannelLayoutFormat ) ;\n chan_chunk = 1 ;\n if ( config -> channel_mask || ( config -> qmode & QMODE_CHANS_UNASSIGNED ) ) {\n error_line ( \"this CAF file already has channel order information!\" ) ;\n free ( caf_channel_layout ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n switch ( caf_channel_layout -> mChannelLayoutTag ) {\n case kCAFChannelLayoutTag_UseChannelDescriptions : {\n CAFChannelDescription * descriptions = ( CAFChannelDescription * ) ( caf_channel_layout + 1 ) ;\n int num_descriptions = caf_channel_layout -> mNumberChannelDescriptions ;\n int label , cindex = 0 , idents = 0 ;\n if ( caf_chunk_header . mChunkSize != sizeof ( CAFChannelLayout ) + sizeof ( CAFChannelDescription ) * num_descriptions || num_descriptions != config -> num_channels ) {\n error_line ( \"channel descriptions in 'chan' chunk are the wrong size!\" ) ;\n free ( caf_channel_layout ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n if ( num_descriptions >= 256 ) {\n error_line ( \"%d channel descriptions is more than we can handle...ignoring!\" ) ;\n break ;\n }\n channel_reorder = malloc ( num_descriptions ) ;\n memset ( channel_reorder , - 1 , num_descriptions ) ;\n channel_identities = malloc ( num_descriptions + 1 ) ;\n for ( i = 0 ;\n i < num_descriptions ;\n ++ i ) {\n WavpackBigEndianToNative ( descriptions + i , CAFChannelDescriptionFormat ) ;\n if ( debug_logging_mode ) error_line ( \"chan %d --> %d\" , i + 1 , descriptions [ i ] . mChannelLabel ) ;\n }\n for ( label = 1 ;\n label <= 18 ;\n ++ label ) for ( i = 0 ;\n i < num_descriptions ;\n ++ i ) if ( descriptions [ i ] . mChannelLabel == label ) {\n config -> channel_mask |= 1 << ( label - 1 ) ;\n channel_reorder [ i ] = cindex ++ ;\n break ;\n }\n for ( i = 0 ;\n i < num_descriptions ;\n ++ i ) if ( channel_reorder [ i ] == ( unsigned char ) - 1 ) {\n uint32_t clabel = descriptions [ i ] . mChannelLabel ;\n if ( clabel == 0 || clabel == 0xffffffff || clabel == 100 ) channel_identities [ idents ++ ] = 0xff ;\n else if ( ( clabel >= 33 && clabel <= 44 ) || ( clabel >= 200 && clabel <= 207 ) || ( clabel >= 301 && clabel <= 305 ) ) channel_identities [ idents ++ ] = clabel >= 301 ? clabel - 80 : clabel ;\n else {\n error_line ( \"warning: unknown channel descriptions label: %d\" , clabel ) ;\n channel_identities [ idents ++ ] = 0xff ;\n }\n channel_reorder [ i ] = cindex ++ ;\n }\n for ( i = 0 ;\n i < num_descriptions ;\n ++ i ) if ( channel_reorder [ i ] != i ) break ;\n if ( i == num_descriptions ) {\n free ( channel_reorder ) ;\n channel_reorder = NULL ;\n }\n else {\n config -> qmode |= QMODE_REORDERED_CHANS ;\n channel_layout = num_descriptions ;\n }\n if ( ! idents ) {\n free ( channel_identities ) ;\n channel_identities = NULL ;\n }\n else channel_identities [ idents ] = 0 ;\n if ( debug_logging_mode ) {\n error_line ( \"layout_tag = 0x%08x, so generated bitmap of 0x%08x from %d descriptions, %d non-MS\" , caf_channel_layout -> mChannelLayoutTag , config -> channel_mask , caf_channel_layout -> mNumberChannelDescriptions , idents ) ;\n if ( channel_reorder && num_descriptions <= 8 ) {\n char reorder_string [ ] = \"12345678\" ;\n for ( i = 0 ;\n i < num_descriptions ;\n ++ i ) reorder_string [ i ] = channel_reorder [ i ] + '1' ;\n reorder_string [ i ] = 0 ;\n error_line ( \"reordering string = \\\"%s\\\"\\n\" , reorder_string ) ;\n }\n }\n }\n break ;\n case kCAFChannelLayoutTag_UseChannelBitmap : config -> channel_mask = caf_channel_layout -> mChannelBitmap ;\n if ( debug_logging_mode ) error_line ( \"layout_tag = 0x%08x, so using supplied bitmap of 0x%08x\" , caf_channel_layout -> mChannelLayoutTag , caf_channel_layout -> mChannelBitmap ) ;\n break ;\n default : for ( i = 0 ;\n i < NUM_LAYOUTS ;\n ++ i ) if ( caf_channel_layout -> mChannelLayoutTag == layouts [ i ] . mChannelLayoutTag ) {\n config -> channel_mask = layouts [ i ] . mChannelBitmap ;\n channel_layout = layouts [ i ] . mChannelLayoutTag ;\n if ( layouts [ i ] . mChannelReorder ) {\n channel_reorder = ( unsigned char * ) strdup ( layouts [ i ] . mChannelReorder ) ;\n config -> qmode |= QMODE_REORDERED_CHANS ;\n }\n if ( layouts [ i ] . mChannelIdentities ) channel_identities = ( unsigned char * ) strdup ( layouts [ i ] . mChannelIdentities ) ;\n if ( debug_logging_mode ) error_line ( \"layout_tag 0x%08x found in table, bitmap = 0x%08x, reorder = %s, identities = %s\" , channel_layout , config -> channel_mask , channel_reorder ? \"yes\" : \"no\" , channel_identities ? \"yes\" : \"no\" ) ;\n break ;\n }\n if ( i == NUM_LAYOUTS && debug_logging_mode ) error_line ( \"layout_tag 0x%08x not found in table...all channels unassigned\" , caf_channel_layout -> mChannelLayoutTag ) ;\n break ;\n }\n free ( caf_channel_layout ) ;\n }\n else if ( ! strncmp ( caf_chunk_header . mChunkType , \"data\" , 4 ) ) {\n uint32_t mEditCount ;\n if ( ! DoReadFile ( infile , & mEditCount , sizeof ( mEditCount ) , & bcount ) || bcount != sizeof ( mEditCount ) ) {\n error_line ( \"%s is not a valid .CAF file!\" , infilename ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n else if ( ! ( config -> qmode & QMODE_NO_STORE_WRAPPER ) && ! WavpackAddWrapper ( wpc , & mEditCount , sizeof ( mEditCount ) ) ) {\n error_line ( \"%s\" , WavpackGetErrorMessage ( wpc ) ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n if ( ( config -> qmode & QMODE_IGNORE_LENGTH ) || caf_chunk_header . mChunkSize == - 1 ) {\n config -> qmode |= QMODE_IGNORE_LENGTH ;\n if ( infilesize && DoGetFilePosition ( infile ) != - 1 ) total_samples = ( infilesize - DoGetFilePosition ( infile ) ) / caf_audio_format . mBytesPerPacket ;\n else total_samples = - 1 ;\n }\n else {\n if ( infilesize && infilesize - caf_chunk_header . mChunkSize > 16777216 ) {\n error_line ( \".CAF file %s has over 16 MB of extra CAFF data, probably is corrupt!\" , infilename ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n if ( ( caf_chunk_header . mChunkSize - 4 ) % caf_audio_format . mBytesPerPacket ) {\n error_line ( \".CAF file %s has an invalid data chunk size, probably is corrupt!\" , infilename ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n total_samples = ( caf_chunk_header . mChunkSize - 4 ) / caf_audio_format . mBytesPerPacket ;\n if ( ! total_samples ) {\n error_line ( \"this .CAF file has no audio samples, probably is corrupt!\" ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n if ( total_samples > MAX_WAVPACK_SAMPLES ) {\n error_line ( \"%s has too many samples for WavPack!\" , infilename ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n }\n break ;\n }\n else {\n int bytes_to_copy = ( uint32_t ) caf_chunk_header . mChunkSize ;\n char * buff = malloc ( bytes_to_copy ) ;\n if ( debug_logging_mode ) error_line ( \"extra unknown chunk \\\"%c%c%c%c\\\" of %d bytes\" , caf_chunk_header . mChunkType [ 0 ] , caf_chunk_header . mChunkType [ 1 ] , caf_chunk_header . mChunkType [ 2 ] , caf_chunk_header . mChunkType [ 3 ] , caf_chunk_header . mChunkSize ) ;\n if ( ! DoReadFile ( infile , buff , bytes_to_copy , & bcount ) || bcount != bytes_to_copy || ( ! ( config -> qmode & QMODE_NO_STORE_WRAPPER ) && ! WavpackAddWrapper ( wpc , buff , bytes_to_copy ) ) ) {\n error_line ( \"%s\" , WavpackGetErrorMessage ( wpc ) ) ;\n free ( buff ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n free ( buff ) ;\n }\n }\n if ( ! chan_chunk && ! config -> channel_mask && config -> num_channels <= 2 && ! ( config -> qmode & QMODE_CHANS_UNASSIGNED ) ) config -> channel_mask = 0x5 - config -> num_channels ;\n if ( ! WavpackSetConfiguration64 ( wpc , config , total_samples , channel_identities ) ) {\n error_line ( \"%s\" , WavpackGetErrorMessage ( wpc ) ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n if ( channel_identities ) free ( channel_identities ) ;\n if ( channel_layout || channel_reorder ) {\n if ( ! WavpackSetChannelLayout ( wpc , channel_layout , channel_reorder ) ) {\n error_line ( \"problem with setting channel layout (should not happen)\" ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n if ( channel_reorder ) free ( channel_reorder ) ;\n }\n return WAVPACK_NO_ERROR ;\n }"}
{"idx": 4134, "target": 0, "func": "static int chacha20_poly1305_ctrl ( EVP_CIPHER_CTX * ctx , int type , int arg , void * ptr ) {\n EVP_CHACHA_AEAD_CTX * actx = aead_data ( ctx ) ;\n switch ( type ) {\n case EVP_CTRL_INIT : if ( actx == NULL ) actx = ctx -> cipher_data = OPENSSL_zalloc ( sizeof ( * actx ) + Poly1305_ctx_size ( ) ) ;\n if ( actx == NULL ) {\n EVPerr ( EVP_F_CHACHA20_POLY1305_CTRL , EVP_R_INITIALIZATION_ERROR ) ;\n return 0 ;\n }\n actx -> len . aad = 0 ;\n actx -> len . text = 0 ;\n actx -> aad = 0 ;\n actx -> mac_inited = 0 ;\n actx -> tag_len = 0 ;\n actx -> nonce_len = 12 ;\n actx -> tls_payload_length = NO_TLS_PAYLOAD_LENGTH ;\n return 1 ;\n case EVP_CTRL_COPY : if ( actx ) {\n EVP_CIPHER_CTX * dst = ( EVP_CIPHER_CTX * ) ptr ;\n dst -> cipher_data = OPENSSL_memdup ( actx , sizeof ( * actx ) + Poly1305_ctx_size ( ) ) ;\n if ( dst -> cipher_data == NULL ) {\n EVPerr ( EVP_F_CHACHA20_POLY1305_CTRL , EVP_R_COPY_ERROR ) ;\n return 0 ;\n }\n }\n return 1 ;\n case EVP_CTRL_AEAD_SET_IVLEN : if ( arg <= 0 || arg > CHACHA_CTR_SIZE ) return 0 ;\n actx -> nonce_len = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_IV_FIXED : if ( arg != 12 ) return 0 ;\n actx -> nonce [ 0 ] = actx -> key . counter [ 1 ] = CHACHA_U8TOU32 ( ( unsigned char * ) ptr ) ;\n actx -> nonce [ 1 ] = actx -> key . counter [ 2 ] = CHACHA_U8TOU32 ( ( unsigned char * ) ptr + 4 ) ;\n actx -> nonce [ 2 ] = actx -> key . counter [ 3 ] = CHACHA_U8TOU32 ( ( unsigned char * ) ptr + 8 ) ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_TAG : if ( arg <= 0 || arg > POLY1305_BLOCK_SIZE ) return 0 ;\n if ( ptr != NULL ) {\n memcpy ( actx -> tag , ptr , arg ) ;\n actx -> tag_len = arg ;\n }\n return 1 ;\n case EVP_CTRL_AEAD_GET_TAG : if ( arg <= 0 || arg > POLY1305_BLOCK_SIZE || ! ctx -> encrypt ) return 0 ;\n memcpy ( ptr , actx -> tag , arg ) ;\n return 1 ;\n case EVP_CTRL_AEAD_TLS1_AAD : if ( arg != EVP_AEAD_TLS1_AAD_LEN ) return 0 ;\n {\n unsigned int len ;\n unsigned char * aad = ptr , temp [ POLY1305_BLOCK_SIZE ] ;\n len = aad [ EVP_AEAD_TLS1_AAD_LEN - 2 ] << 8 | aad [ EVP_AEAD_TLS1_AAD_LEN - 1 ] ;\n if ( ! ctx -> encrypt ) {\n if ( len < POLY1305_BLOCK_SIZE ) return 0 ;\n len -= POLY1305_BLOCK_SIZE ;\n memcpy ( temp , aad , EVP_AEAD_TLS1_AAD_LEN - 2 ) ;\n aad = temp ;\n temp [ EVP_AEAD_TLS1_AAD_LEN - 2 ] = ( unsigned char ) ( len >> 8 ) ;\n temp [ EVP_AEAD_TLS1_AAD_LEN - 1 ] = ( unsigned char ) len ;\n }\n actx -> tls_payload_length = len ;\n actx -> key . counter [ 1 ] = actx -> nonce [ 0 ] ;\n actx -> key . counter [ 2 ] = actx -> nonce [ 1 ] ^ CHACHA_U8TOU32 ( aad ) ;\n actx -> key . counter [ 3 ] = actx -> nonce [ 2 ] ^ CHACHA_U8TOU32 ( aad + 4 ) ;\n actx -> mac_inited = 0 ;\n chacha20_poly1305_cipher ( ctx , NULL , aad , EVP_AEAD_TLS1_AAD_LEN ) ;\n return POLY1305_BLOCK_SIZE ;\n }\n case EVP_CTRL_AEAD_SET_MAC_KEY : return 1 ;\n default : return - 1 ;\n }\n }"}
{"idx": 4135, "target": 1, "func": "int authreadkeys ( const char * file ) {\n FILE * fp ;\n char * line ;\n char * token ;\n keyid_t keyno ;\n int keytype ;\n char buf [ 512 ] ;\n u_char keystr [ 32 ] ;\n size_t len ;\n size_t j ;\n fp = fopen ( file , \"r\" ) ;\n if ( fp == NULL ) {\n msyslog ( LOG_ERR , \"authreadkeys: file %s: %m\" , file ) ;\n return ( 0 ) ;\n }\n INIT_SSL ( ) ;\n auth_delkeys ( ) ;\n while ( ( line = fgets ( buf , sizeof buf , fp ) ) != NULL ) {\n token = nexttok ( & line ) ;\n if ( token == NULL ) continue ;\n keyno = atoi ( token ) ;\n if ( keyno == 0 ) {\n msyslog ( LOG_ERR , \"authreadkeys: cannot change key %s\" , token ) ;\n continue ;\n }\n if ( keyno > NTP_MAXKEY ) {\n msyslog ( LOG_ERR , \"authreadkeys: key %s > %d reserved for Autokey\" , token , NTP_MAXKEY ) ;\n continue ;\n }\n token = nexttok ( & line ) ;\n if ( token == NULL ) {\n msyslog ( LOG_ERR , \"authreadkeys: no key type for key %d\" , keyno ) ;\n continue ;\n }\n # ifdef OPENSSL keytype = keytype_from_text ( token , NULL ) ;\n if ( keytype == 0 ) {\n msyslog ( LOG_ERR , \"authreadkeys: invalid type for key %d\" , keyno ) ;\n continue ;\n }\n if ( EVP_get_digestbynid ( keytype ) == NULL ) {\n msyslog ( LOG_ERR , \"authreadkeys: no algorithm for key %d\" , keyno ) ;\n continue ;\n }\n # else if ( ! ( * token == 'M' || * token == 'm' ) ) {\n msyslog ( LOG_ERR , \"authreadkeys: invalid type for key %d\" , keyno ) ;\n continue ;\n }\n keytype = KEY_TYPE_MD5 ;\n # endif token = nexttok ( & line ) ;\n if ( token == NULL ) {\n msyslog ( LOG_ERR , \"authreadkeys: no key for key %d\" , keyno ) ;\n continue ;\n }\n len = strlen ( token ) ;\n if ( len <= 20 ) {\n MD5auth_setkey ( keyno , keytype , ( u_char * ) token , len ) ;\n }\n else {\n char hex [ ] = \"0123456789abcdef\" ;\n u_char temp ;\n char * ptr ;\n size_t jlim ;\n jlim = min ( len , 2 * sizeof ( keystr ) ) ;\n for ( j = 0 ;\n j < jlim ;\n j ++ ) {\n ptr = strchr ( hex , tolower ( ( unsigned char ) token [ j ] ) ) ;\n if ( ptr == NULL ) break ;\n temp = ( u_char ) ( ptr - hex ) ;\n if ( j & 1 ) keystr [ j / 2 ] |= temp ;\n else keystr [ j / 2 ] = temp << 4 ;\n }\n if ( j < jlim ) {\n msyslog ( LOG_ERR , \"authreadkeys: invalid hex digit for key %d\" , keyno ) ;\n continue ;\n }\n MD5auth_setkey ( keyno , keytype , keystr , jlim / 2 ) ;\n }\n }\n fclose ( fp ) ;\n return ( 1 ) ;\n }"}
{"idx": 4136, "target": 0, "func": "static char * cover_definer_clause ( const char * stmt_str , size_t stmt_length , const char * definer_version_str , uint definer_version_length , const char * stmt_version_str , uint stmt_version_length , const char * keyword_str , uint keyword_length ) {\n char * definer_begin = my_case_str ( stmt_str , stmt_length , C_STRING_WITH_LEN ( \" DEFINER\" ) ) ;\n char * definer_end = NULL ;\n char * query_str = NULL ;\n char * query_ptr ;\n if ( ! definer_begin ) return NULL ;\n definer_end = my_case_str ( definer_begin , strlen ( definer_begin ) , keyword_str , keyword_length ) ;\n if ( ! definer_end ) return NULL ;\n query_str = alloc_query_str ( stmt_length + 23 ) ;\n query_ptr = strnmov ( query_str , stmt_str , definer_begin - stmt_str ) ;\n query_ptr = strnmov ( query_ptr , C_STRING_WITH_LEN ( \"*/ /*!\" ) ) ;\n query_ptr = strnmov ( query_ptr , definer_version_str , definer_version_length ) ;\n query_ptr = strnmov ( query_ptr , definer_begin , definer_end - definer_begin ) ;\n query_ptr = strnmov ( query_ptr , C_STRING_WITH_LEN ( \"*/ /*!\" ) ) ;\n query_ptr = strnmov ( query_ptr , stmt_version_str , stmt_version_length ) ;\n query_ptr = strxmov ( query_ptr , definer_end , NullS ) ;\n return query_str ;\n }"}
{"idx": 4137, "target": 0, "func": "static void unpause_activation_timed_cancel ( ActivateParameters * parameters ) {\n if ( ! parameters -> timed_wait_active ) {\n activation_start_timed_cancel ( parameters ) ;\n }\n }"}
{"idx": 4138, "target": 0, "func": "static int getfoghex ( _IO * io ) {\n int ch , val ;\n while ( isspace ( ch = getc ( io -> fog ) ) ) ;\n if ( isdigit ( ch ) ) val = ch - '0' ;\n else if ( ch >= 'A' && ch <= 'F' ) val = ch - 'A' + 10 ;\n else if ( ch >= 'a' && ch <= 'f' ) val = ch - 'a' + 10 ;\n else return ( EOF ) ;\n val <<= 4 ;\n while ( isspace ( ch = getc ( io -> fog ) ) ) ;\n if ( isdigit ( ch ) ) val |= ch - '0' ;\n else if ( ch >= 'A' && ch <= 'F' ) val |= ch - 'A' + 10 ;\n else if ( ch >= 'a' && ch <= 'f' ) val |= ch - 'a' + 10 ;\n else return ( EOF ) ;\n return ( val ) ;\n }"}
{"idx": 4139, "target": 0, "func": "static int ts_lua_http_config_int_get ( lua_State * L ) {\n int conf ;\n int64_t value ;\n ts_lua_http_ctx * http_ctx ;\n GET_HTTP_CONTEXT ( http_ctx , L ) ;\n conf = luaL_checkinteger ( L , 1 ) ;\n TSHttpTxnConfigIntGet ( http_ctx -> txnp , conf , & value ) ;\n lua_pushnumber ( L , value ) ;\n return 1 ;\n }"}
{"idx": 4140, "target": 0, "func": "static uint64_t arm_thistimer_read ( void * opaque , hwaddr addr , unsigned size ) {\n ARMMPTimerState * s = ( ARMMPTimerState * ) opaque ;\n int id = get_current_cpu ( s ) ;\n return timerblock_read ( & s -> timerblock [ id ] , addr , size ) ;\n }"}
{"idx": 4141, "target": 0, "func": "static void dissect_rsvp_common ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , gboolean e2ei ) {\n guint8 message_type ;\n int session_off , tempfilt_off ;\n rsvp_conversation_info * rsvph ;\n conversation_t * conversation ;\n struct rsvp_request_key request_key , * new_request_key ;\n struct rsvp_request_val * request_val ;\n col_clear ( pinfo -> cinfo , COL_INFO ) ;\n message_type = tvb_get_guint8 ( tvb , 1 ) ;\n rsvph = wmem_new0 ( wmem_packet_scope ( ) , rsvp_conversation_info ) ;\n set_address ( & rsvph -> source , pinfo -> src . type , pinfo -> src . len , pinfo -> src . data ) ;\n set_address ( & rsvph -> destination , pinfo -> dst . type , pinfo -> dst . len , pinfo -> dst . data ) ;\n col_add_str ( pinfo -> cinfo , COL_INFO , val_to_str_ext ( message_type , & message_type_vals_ext , \"Unknown (%u). \" ) ) ;\n if ( message_type == RSVP_MSG_BUNDLE ) {\n col_set_str ( pinfo -> cinfo , COL_INFO , rsvp_bundle_dissect ? \"Component Messages Dissected\" : \"Component Messages Not Dissected\" ) ;\n }\n else {\n find_rsvp_session_tempfilt ( tvb , 0 , & session_off , & tempfilt_off ) ;\n if ( session_off ) col_append_str ( pinfo -> cinfo , COL_INFO , summary_session ( tvb , session_off ) ) ;\n if ( tempfilt_off ) col_append_str ( pinfo -> cinfo , COL_INFO , summary_template ( tvb , tempfilt_off ) ) ;\n }\n dissect_rsvp_msg_tree ( tvb , pinfo , tree , TREE ( TT_RSVP ) , rsvph , e2ei ) ;\n if ( ( message_type == RSVP_MSG_ACK ) || ( message_type == RSVP_MSG_SREFRESH ) || ( message_type == RSVP_MSG_HELLO ) ) return ;\n conversation = find_or_create_conversation ( pinfo ) ;\n memset ( & request_key , 0 , sizeof ( request_key ) ) ;\n request_key . conversation = conversation -> index ;\n request_key . session_type = rsvph -> session_type ;\n switch ( request_key . session_type ) {\n case RSVP_SESSION_TYPE_IPV4 : set_address ( & request_key . u . session_ipv4 . destination , rsvph -> destination . type , rsvph -> destination . len , rsvph -> destination . data ) ;\n request_key . u . session_ipv4 . protocol = rsvph -> protocol ;\n request_key . u . session_ipv4 . udp_dest_port = rsvph -> udp_dest_port ;\n break ;\n case RSVP_SESSION_TYPE_IPV6 : break ;\n case RSVP_SESSION_TYPE_IPV4_LSP : set_address ( & request_key . u . session_ipv4_lsp . destination , rsvph -> destination . type , rsvph -> destination . len , rsvph -> destination . data ) ;\n request_key . u . session_ipv4_lsp . udp_dest_port = rsvph -> udp_dest_port ;\n request_key . u . session_ipv4_lsp . ext_tunnel_id = rsvph -> ext_tunnel_id ;\n break ;\n case RSVP_SESSION_TYPE_AGGREGATE_IPV4 : set_address ( & request_key . u . session_agg_ipv4 . destination , rsvph -> destination . type , rsvph -> destination . len , rsvph -> destination . data ) ;\n request_key . u . session_agg_ipv4 . dscp = rsvph -> dscp ;\n break ;\n case RSVP_SESSION_TYPE_IPV4_UNI : set_address ( & request_key . u . session_ipv4_uni . destination , rsvph -> destination . type , rsvph -> destination . len , rsvph -> destination . data ) ;\n request_key . u . session_ipv4_uni . udp_dest_port = rsvph -> udp_dest_port ;\n request_key . u . session_ipv4_uni . ext_tunnel_id = rsvph -> ext_tunnel_id ;\n break ;\n case RSVP_SESSION_TYPE_IPV4_E_NNI : set_address ( & request_key . u . session_ipv4_enni . destination , rsvph -> destination . type , rsvph -> destination . len , rsvph -> destination . data ) ;\n request_key . u . session_ipv4_enni . udp_dest_port = rsvph -> udp_dest_port ;\n request_key . u . session_ipv4_enni . ext_tunnel_id = rsvph -> ext_tunnel_id ;\n break ;\n default : proto_tree_add_expert ( tree , pinfo , & ei_rsvp_session_type , tvb , 0 , 0 ) ;\n break ;\n }\n copy_address_shallow ( & request_key . source_info . source , & rsvph -> source ) ;\n request_key . source_info . udp_source_port = rsvph -> udp_source_port ;\n request_val = ( struct rsvp_request_val * ) g_hash_table_lookup ( rsvp_request_hash , & request_key ) ;\n if ( ! request_val ) {\n new_request_key = ( struct rsvp_request_key * ) wmem_memdup ( wmem_file_scope ( ) , & request_key , sizeof ( struct rsvp_request_key ) ) ;\n switch ( request_key . session_type ) {\n case RSVP_SESSION_TYPE_IPV4 : copy_address_wmem ( wmem_file_scope ( ) , & new_request_key -> u . session_ipv4 . destination , & request_key . u . session_ipv4 . destination ) ;\n break ;\n case RSVP_SESSION_TYPE_IPV4_LSP : copy_address_wmem ( wmem_file_scope ( ) , & new_request_key -> u . session_ipv4_lsp . destination , & request_key . u . session_ipv4_lsp . destination ) ;\n break ;\n case RSVP_SESSION_TYPE_AGGREGATE_IPV4 : copy_address_wmem ( wmem_file_scope ( ) , & new_request_key -> u . session_agg_ipv4 . destination , & request_key . u . session_agg_ipv4 . destination ) ;\n break ;\n case RSVP_SESSION_TYPE_IPV4_UNI : copy_address_wmem ( wmem_file_scope ( ) , & new_request_key -> u . session_ipv4_uni . destination , & request_key . u . session_ipv4_uni . destination ) ;\n break ;\n case RSVP_SESSION_TYPE_IPV4_E_NNI : copy_address_wmem ( wmem_file_scope ( ) , & new_request_key -> u . session_ipv4_enni . destination , & request_key . u . session_ipv4_enni . destination ) ;\n break ;\n default : break ;\n }\n copy_address_wmem ( wmem_file_scope ( ) , & new_request_key -> source_info . source , & rsvph -> source ) ;\n request_val = wmem_new ( wmem_file_scope ( ) , struct rsvp_request_val ) ;\n request_val -> value = conversation -> index ;\n g_hash_table_insert ( rsvp_request_hash , new_request_key , request_val ) ;\n }\n tap_queue_packet ( rsvp_tap , pinfo , rsvph ) ;\n }"}
{"idx": 4142, "target": 0, "func": "static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 4143, "target": 0, "func": "static my_bool get_view_structure ( char * table , char * db ) {\n MYSQL_RES * table_res ;\n MYSQL_ROW row ;\n MYSQL_FIELD * field ;\n char * result_table , * opt_quoted_table ;\n char table_buff [ NAME_LEN * 2 + 3 ] ;\n char table_buff2 [ NAME_LEN * 2 + 3 ] ;\n char query [ QUERY_LENGTH ] ;\n FILE * sql_file = md_result_file ;\n DBUG_ENTER ( \"get_view_structure\" ) ;\n if ( opt_no_create_info ) DBUG_RETURN ( 0 ) ;\n verbose_msg ( \"-- Retrieving view structure for table %s...\\n\" , table ) ;\n # ifdef NOT_REALLY_USED_YET dynstr_append_checked ( & insert_pat , \"SET SQL_QUOTE_SHOW_CREATE=\" ) ;\n dynstr_append_checked ( & insert_pat , ( opt_quoted || opt_keywords ) ? \"1\" : \"0\" ) ;\n # endif result_table = quote_name ( table , table_buff , 1 ) ;\n opt_quoted_table = quote_name ( table , table_buff2 , 0 ) ;\n if ( switch_character_set_results ( mysql , \"binary\" ) ) DBUG_RETURN ( 1 ) ;\n my_snprintf ( query , sizeof ( query ) , \"SHOW CREATE TABLE %s\" , result_table ) ;\n if ( mysql_query_with_error_report ( mysql , & table_res , query ) ) {\n switch_character_set_results ( mysql , default_charset ) ;\n DBUG_RETURN ( 0 ) ;\n }\n field = mysql_fetch_field_direct ( table_res , 0 ) ;\n if ( strcmp ( field -> name , \"View\" ) != 0 ) {\n mysql_free_result ( table_res ) ;\n switch_character_set_results ( mysql , default_charset ) ;\n verbose_msg ( \"-- It's base table, skipped\\n\" ) ;\n DBUG_RETURN ( 0 ) ;\n }\n if ( path ) {\n if ( ! ( sql_file = open_sql_file_for_table ( table , O_WRONLY ) ) ) {\n mysql_free_result ( table_res ) ;\n DBUG_RETURN ( 1 ) ;\n }\n write_header ( sql_file , db ) ;\n }\n print_comment ( sql_file , 0 , \"\\n--\\n-- Final view structure for view %s\\n--\\n\\n\" , fix_for_comment ( result_table ) ) ;\n fprintf ( sql_file , \"/*!50001 DROP TABLE IF EXISTS %s*/;\n\\n\" , opt_quoted_table ) ;\n if ( opt_drop ) {\n fprintf ( sql_file , \"/*!50001 DROP VIEW IF EXISTS %s*/;\n\\n\" , opt_quoted_table ) ;\n check_io ( sql_file ) ;\n }\n my_snprintf ( query , sizeof ( query ) , \"SELECT CHECK_OPTION, DEFINER, SECURITY_TYPE, \" \" CHARACTER_SET_CLIENT, COLLATION_CONNECTION \" \"FROM information_schema.views \" \"WHERE table_name=\\\"%s\\\" AND table_schema=\\\"%s\\\"\" , table , db ) ;\n if ( mysql_query ( mysql , query ) ) {\n row = mysql_fetch_row ( table_res ) ;\n fprintf ( sql_file , \"/*!50001 %s */;\n\\n\" , row [ 1 ] ) ;\n check_io ( sql_file ) ;\n mysql_free_result ( table_res ) ;\n }\n else {\n char * ptr ;\n ulong * lengths ;\n char search_buf [ 256 ] , replace_buf [ 256 ] ;\n ulong search_len , replace_len ;\n DYNAMIC_STRING ds_view ;\n row = mysql_fetch_row ( table_res ) ;\n lengths = mysql_fetch_lengths ( table_res ) ;\n init_dynamic_string_checked ( & ds_view , row [ 1 ] , lengths [ 1 ] + 1 , 1024 ) ;\n mysql_free_result ( table_res ) ;\n if ( ! ( table_res = mysql_store_result ( mysql ) ) || ! ( row = mysql_fetch_row ( table_res ) ) ) {\n if ( table_res ) mysql_free_result ( table_res ) ;\n dynstr_free ( & ds_view ) ;\n DB_error ( mysql , \"when trying to save the result of SHOW CREATE TABLE in ds_view.\" ) ;\n DBUG_RETURN ( 1 ) ;\n }\n lengths = mysql_fetch_lengths ( table_res ) ;\n if ( strcmp ( row [ 0 ] , \"NONE\" ) ) {\n ptr = search_buf ;\n search_len = ( ulong ) ( strxmov ( ptr , \"WITH \" , row [ 0 ] , \" CHECK OPTION\" , NullS ) - ptr ) ;\n ptr = replace_buf ;\n replace_len = ( ulong ) ( strxmov ( ptr , \"*/\\n/*!50002 WITH \" , row [ 0 ] , \" CHECK OPTION\" , NullS ) - ptr ) ;\n replace ( & ds_view , search_buf , search_len , replace_buf , replace_len ) ;\n }\n {\n size_t user_name_len ;\n char user_name_str [ USERNAME_LENGTH + 1 ] ;\n char quoted_user_name_str [ USERNAME_LENGTH * 2 + 3 ] ;\n size_t host_name_len ;\n char host_name_str [ HOSTNAME_LENGTH + 1 ] ;\n char quoted_host_name_str [ HOSTNAME_LENGTH * 2 + 3 ] ;\n parse_user ( row [ 1 ] , lengths [ 1 ] , user_name_str , & user_name_len , host_name_str , & host_name_len ) ;\n ptr = search_buf ;\n search_len = ( ulong ) ( strxmov ( ptr , \"DEFINER=\" , quote_name ( user_name_str , quoted_user_name_str , FALSE ) , \"@\" , quote_name ( host_name_str , quoted_host_name_str , FALSE ) , \" SQL SECURITY \" , row [ 2 ] , NullS ) - ptr ) ;\n ptr = replace_buf ;\n replace_len = ( ulong ) ( strxmov ( ptr , \"*/\\n/*!50013 DEFINER=\" , quote_name ( user_name_str , quoted_user_name_str , FALSE ) , \"@\" , quote_name ( host_name_str , quoted_host_name_str , FALSE ) , \" SQL SECURITY \" , row [ 2 ] , \" */\\n/*!50001\" , NullS ) - ptr ) ;\n replace ( & ds_view , search_buf , search_len , replace_buf , replace_len ) ;\n }\n fprintf ( sql_file , \"/*!50001 SET @saved_cs_client = @@character_set_client */;\n\\n\" \"/*!50001 SET @saved_cs_results = @@character_set_results */;\n\\n\" \"/*!50001 SET @saved_col_connection = @@collation_connection */;\n\\n\" \"/*!50001 SET character_set_client = %s */;\n\\n\" \"/*!50001 SET character_set_results = %s */;\n\\n\" \"/*!50001 SET collation_connection = %s */;\n\\n\" \"/*!50001 %s */;\n\\n\" \"/*!50001 SET character_set_client = @saved_cs_client */;\n\\n\" \"/*!50001 SET character_set_results = @saved_cs_results */;\n\\n\" \"/*!50001 SET collation_connection = @saved_col_connection */;\n\\n\" , ( const char * ) row [ 3 ] , ( const char * ) row [ 3 ] , ( const char * ) row [ 4 ] , ( const char * ) ds_view . str ) ;\n check_io ( sql_file ) ;\n mysql_free_result ( table_res ) ;\n dynstr_free ( & ds_view ) ;\n }\n if ( switch_character_set_results ( mysql , default_charset ) ) DBUG_RETURN ( 1 ) ;\n if ( sql_file != md_result_file ) {\n fputs ( \"\\n\" , sql_file ) ;\n write_footer ( sql_file ) ;\n my_fclose ( sql_file , MYF ( MY_WME ) ) ;\n }\n DBUG_RETURN ( 0 ) ;\n }"}
{"idx": 4144, "target": 0, "func": "static void gif_read_error ( Gif_Context * gfc , int is_error , const char * text ) {\n Gif_ReadErrorHandler handler = gfc -> handler ? gfc -> handler : default_error_handler ;\n if ( is_error >= 0 ) gfc -> errors [ is_error > 0 ] += 1 ;\n if ( handler ) handler ( gfc -> stream , gfc -> gfi , is_error , text ) ;\n }"}
{"idx": 4145, "target": 0, "func": "static void decouple_info ( COOKContext * q , COOKSubpacket * p , int * decouple_tab ) {\n int i ;\n int vlc = get_bits1 ( & q -> gb ) ;\n int start = cplband [ p -> js_subband_start ] ;\n int end = cplband [ p -> subbands - 1 ] ;\n int length = end - start + 1 ;\n if ( start > end ) return ;\n if ( vlc ) for ( i = 0 ;\n i < length ;\n i ++ ) decouple_tab [ start + i ] = get_vlc2 ( & q -> gb , p -> channel_coupling . table , p -> channel_coupling . bits , 2 ) ;\n else for ( i = 0 ;\n i < length ;\n i ++ ) decouple_tab [ start + i ] = get_bits ( & q -> gb , p -> js_vlc_bits ) ;\n }"}
{"idx": 4146, "target": 0, "func": "void del_event ( event_info * ep ) {\n if ( ep -> e_prev ) ep -> e_prev -> e_next = ep -> e_next ;\n else event_hash [ ep -> e_event % EVENT_HASH ] = ep -> e_next ;\n if ( ep -> e_next ) ep -> e_next -> e_prev = ep -> e_prev ;\n switch ( ep -> e_mtype ) {\n case TM_INIT : case TM_SPAWN : case TM_SIGNAL : case TM_OBIT : case TM_POSTINFO : break ;\n case TM_TASKS : case TM_GETINFO : case TM_RESOURCES : free ( ep -> e_info ) ;\n break ;\n default : TM_DBPRT ( ( \"del_event: unknown event command %d\\n\" , ep -> e_mtype ) ) break ;\n }\n free ( ep ) ;\n if ( -- event_count == 0 ) {\n close ( local_conn ) ;\n local_conn = - 1 ;\n }\n return ;\n }"}
{"idx": 4147, "target": 0, "func": "static void idr_cleanup ( struct idr * idr ) {\n free ( idr -> idrent_pool ) ;\n }"}
{"idx": 4148, "target": 1, "func": "static void vdpau_h264_set_rf ( VdpReferenceFrameH264 * rf , Picture * pic , int pic_structure ) {\n VdpVideoSurface surface = ff_vdpau_get_surface_id ( pic ) ;\n if ( pic_structure == 0 ) pic_structure = pic -> f . reference ;\n rf -> surface = surface ;\n rf -> is_long_term = pic -> f . reference && pic -> long_ref ;\n rf -> top_is_reference = ( pic_structure & PICT_TOP_FIELD ) != 0 ;\n rf -> bottom_is_reference = ( pic_structure & PICT_BOTTOM_FIELD ) != 0 ;\n rf -> field_order_cnt [ 0 ] = h264_foc ( pic -> field_poc [ 0 ] ) ;\n rf -> field_order_cnt [ 1 ] = h264_foc ( pic -> field_poc [ 1 ] ) ;\n rf -> frame_idx = pic -> long_ref ? pic -> pic_id : pic -> frame_num ;\n }"}
{"idx": 4149, "target": 0, "func": "int xmlIsBlank ( unsigned int ch ) {\n return ( xmlIsBlankQ ( ch ) ) ;\n }"}
{"idx": 4150, "target": 0, "func": "void vp8_change_config ( VP8_COMP * cpi , VP8_CONFIG * oxcf ) {\n VP8_COMMON * cm = & cpi -> common ;\n int last_w , last_h , prev_number_of_layers ;\n if ( ! cpi ) return ;\n if ( ! oxcf ) return ;\n # if CONFIG_MULTITHREAD if ( cpi -> b_lpf_running ) {\n sem_wait ( & cpi -> h_event_end_lpf ) ;\n cpi -> b_lpf_running = 0 ;\n }\n # endif if ( cm -> version != oxcf -> Version ) {\n cm -> version = oxcf -> Version ;\n vp8_setup_version ( cm ) ;\n }\n last_w = cpi -> oxcf . Width ;\n last_h = cpi -> oxcf . Height ;\n prev_number_of_layers = cpi -> oxcf . number_of_layers ;\n cpi -> oxcf = * oxcf ;\n switch ( cpi -> oxcf . Mode ) {\n case MODE_REALTIME : cpi -> pass = 0 ;\n cpi -> compressor_speed = 2 ;\n if ( cpi -> oxcf . cpu_used < - 16 ) {\n cpi -> oxcf . cpu_used = - 16 ;\n }\n if ( cpi -> oxcf . cpu_used > 16 ) cpi -> oxcf . cpu_used = 16 ;\n break ;\n case MODE_GOODQUALITY : cpi -> pass = 0 ;\n cpi -> compressor_speed = 1 ;\n if ( cpi -> oxcf . cpu_used < - 5 ) {\n cpi -> oxcf . cpu_used = - 5 ;\n }\n if ( cpi -> oxcf . cpu_used > 5 ) cpi -> oxcf . cpu_used = 5 ;\n break ;\n case MODE_BESTQUALITY : cpi -> pass = 0 ;\n cpi -> compressor_speed = 0 ;\n break ;\n case MODE_FIRSTPASS : cpi -> pass = 1 ;\n cpi -> compressor_speed = 1 ;\n break ;\n case MODE_SECONDPASS : cpi -> pass = 2 ;\n cpi -> compressor_speed = 1 ;\n if ( cpi -> oxcf . cpu_used < - 5 ) {\n cpi -> oxcf . cpu_used = - 5 ;\n }\n if ( cpi -> oxcf . cpu_used > 5 ) cpi -> oxcf . cpu_used = 5 ;\n break ;\n case MODE_SECONDPASS_BEST : cpi -> pass = 2 ;\n cpi -> compressor_speed = 0 ;\n break ;\n }\n if ( cpi -> pass == 0 ) cpi -> auto_worst_q = 1 ;\n cpi -> oxcf . worst_allowed_q = q_trans [ oxcf -> worst_allowed_q ] ;\n cpi -> oxcf . best_allowed_q = q_trans [ oxcf -> best_allowed_q ] ;\n cpi -> oxcf . cq_level = q_trans [ cpi -> oxcf . cq_level ] ;\n if ( oxcf -> fixed_q >= 0 ) {\n if ( oxcf -> worst_allowed_q < 0 ) cpi -> oxcf . fixed_q = q_trans [ 0 ] ;\n else cpi -> oxcf . fixed_q = q_trans [ oxcf -> worst_allowed_q ] ;\n if ( oxcf -> alt_q < 0 ) cpi -> oxcf . alt_q = q_trans [ 0 ] ;\n else cpi -> oxcf . alt_q = q_trans [ oxcf -> alt_q ] ;\n if ( oxcf -> key_q < 0 ) cpi -> oxcf . key_q = q_trans [ 0 ] ;\n else cpi -> oxcf . key_q = q_trans [ oxcf -> key_q ] ;\n if ( oxcf -> gold_q < 0 ) cpi -> oxcf . gold_q = q_trans [ 0 ] ;\n else cpi -> oxcf . gold_q = q_trans [ oxcf -> gold_q ] ;\n }\n cpi -> baseline_gf_interval = cpi -> oxcf . alt_freq ? cpi -> oxcf . alt_freq : DEFAULT_GF_INTERVAL ;\n cpi -> ref_frame_flags = VP8_ALTR_FRAME | VP8_GOLD_FRAME | VP8_LAST_FRAME ;\n cm -> refresh_golden_frame = 0 ;\n cm -> refresh_last_frame = 1 ;\n cm -> refresh_entropy_probs = 1 ;\n # if ( CONFIG_REALTIME_ONLY & CONFIG_ONTHEFLY_BITPACKING ) cpi -> oxcf . token_partitions = 3 ;\n # endif if ( cpi -> oxcf . token_partitions >= 0 && cpi -> oxcf . token_partitions <= 3 ) cm -> multi_token_partition = ( TOKEN_PARTITION ) cpi -> oxcf . token_partitions ;\n setup_features ( cpi ) ;\n {\n int i ;\n for ( i = 0 ;\n i < MAX_MB_SEGMENTS ;\n i ++ ) cpi -> segment_encode_breakout [ i ] = cpi -> oxcf . encode_breakout ;\n }\n if ( cpi -> oxcf . fixed_q > MAXQ ) cpi -> oxcf . fixed_q = MAXQ ;\n if ( cpi -> oxcf . end_usage == USAGE_LOCAL_FILE_PLAYBACK ) {\n cpi -> oxcf . starting_buffer_level = 60000 ;\n cpi -> oxcf . optimal_buffer_level = 60000 ;\n cpi -> oxcf . maximum_buffer_size = 240000 ;\n cpi -> oxcf . starting_buffer_level_in_ms = 60000 ;\n cpi -> oxcf . optimal_buffer_level_in_ms = 60000 ;\n cpi -> oxcf . maximum_buffer_size_in_ms = 240000 ;\n }\n cpi -> oxcf . target_bandwidth *= 1000 ;\n cpi -> oxcf . starting_buffer_level = rescale ( ( int ) cpi -> oxcf . starting_buffer_level , cpi -> oxcf . target_bandwidth , 1000 ) ;\n if ( cpi -> oxcf . optimal_buffer_level == 0 ) cpi -> oxcf . optimal_buffer_level = cpi -> oxcf . target_bandwidth / 8 ;\n else cpi -> oxcf . optimal_buffer_level = rescale ( ( int ) cpi -> oxcf . optimal_buffer_level , cpi -> oxcf . target_bandwidth , 1000 ) ;\n if ( cpi -> oxcf . maximum_buffer_size == 0 ) cpi -> oxcf . maximum_buffer_size = cpi -> oxcf . target_bandwidth / 8 ;\n else cpi -> oxcf . maximum_buffer_size = rescale ( ( int ) cpi -> oxcf . maximum_buffer_size , cpi -> oxcf . target_bandwidth , 1000 ) ;\n if ( cpi -> bits_off_target > cpi -> oxcf . maximum_buffer_size ) {\n cpi -> bits_off_target = cpi -> oxcf . maximum_buffer_size ;\n cpi -> buffer_level = cpi -> bits_off_target ;\n }\n vp8_new_framerate ( cpi , cpi -> framerate ) ;\n cpi -> worst_quality = cpi -> oxcf . worst_allowed_q ;\n cpi -> best_quality = cpi -> oxcf . best_allowed_q ;\n if ( cpi -> active_worst_quality > cpi -> oxcf . worst_allowed_q ) {\n cpi -> active_worst_quality = cpi -> oxcf . worst_allowed_q ;\n }\n else if ( cpi -> active_worst_quality < cpi -> oxcf . best_allowed_q ) {\n cpi -> active_worst_quality = cpi -> oxcf . best_allowed_q ;\n }\n if ( cpi -> active_best_quality < cpi -> oxcf . best_allowed_q ) {\n cpi -> active_best_quality = cpi -> oxcf . best_allowed_q ;\n }\n else if ( cpi -> active_best_quality > cpi -> oxcf . worst_allowed_q ) {\n cpi -> active_best_quality = cpi -> oxcf . worst_allowed_q ;\n }\n cpi -> buffered_mode = cpi -> oxcf . optimal_buffer_level > 0 ;\n cpi -> cq_target_quality = cpi -> oxcf . cq_level ;\n cpi -> drop_frames_allowed = cpi -> oxcf . allow_df && cpi -> buffered_mode ;\n cpi -> target_bandwidth = cpi -> oxcf . target_bandwidth ;\n if ( cpi -> oxcf . number_of_layers != prev_number_of_layers ) {\n cpi -> temporal_pattern_counter = 0 ;\n reset_temporal_layer_change ( cpi , oxcf , prev_number_of_layers ) ;\n }\n cm -> Width = cpi -> oxcf . Width ;\n cm -> Height = cpi -> oxcf . Height ;\n if ( cpi -> oxcf . Sharpness > 7 ) cpi -> oxcf . Sharpness = 7 ;\n cm -> sharpness_level = cpi -> oxcf . Sharpness ;\n if ( cm -> horiz_scale != NORMAL || cm -> vert_scale != NORMAL ) {\n int UNINITIALIZED_IS_SAFE ( hr ) , UNINITIALIZED_IS_SAFE ( hs ) ;\n int UNINITIALIZED_IS_SAFE ( vr ) , UNINITIALIZED_IS_SAFE ( vs ) ;\n Scale2Ratio ( cm -> horiz_scale , & hr , & hs ) ;\n Scale2Ratio ( cm -> vert_scale , & vr , & vs ) ;\n cm -> Width = ( hs - 1 + cpi -> oxcf . Width * hr ) / hs ;\n cm -> Height = ( vs - 1 + cpi -> oxcf . Height * vr ) / vs ;\n }\n if ( last_w != cpi -> oxcf . Width || last_h != cpi -> oxcf . Height ) cpi -> force_next_frame_intra = 1 ;\n if ( ( ( cm -> Width + 15 ) & 0xfffffff0 ) != cm -> yv12_fb [ cm -> lst_fb_idx ] . y_width || ( ( cm -> Height + 15 ) & 0xfffffff0 ) != cm -> yv12_fb [ cm -> lst_fb_idx ] . y_height || cm -> yv12_fb [ cm -> lst_fb_idx ] . y_width == 0 ) {\n dealloc_raw_frame_buffers ( cpi ) ;\n alloc_raw_frame_buffers ( cpi ) ;\n vp8_alloc_compressor_data ( cpi ) ;\n }\n if ( cpi -> oxcf . fixed_q >= 0 ) {\n cpi -> last_q [ 0 ] = cpi -> oxcf . fixed_q ;\n cpi -> last_q [ 1 ] = cpi -> oxcf . fixed_q ;\n }\n cpi -> Speed = cpi -> oxcf . cpu_used ;\n if ( cpi -> oxcf . lag_in_frames == 0 ) {\n cpi -> oxcf . allow_lag = 0 ;\n }\n else if ( cpi -> oxcf . lag_in_frames > MAX_LAG_BUFFERS ) cpi -> oxcf . lag_in_frames = MAX_LAG_BUFFERS ;\n cpi -> alt_ref_source = NULL ;\n cpi -> is_src_frame_alt_ref = 0 ;\n # if CONFIG_TEMPORAL_DENOISING if ( cpi -> oxcf . noise_sensitivity ) {\n if ( ! cpi -> denoiser . yv12_mc_running_avg . buffer_alloc ) {\n int width = ( cpi -> oxcf . Width + 15 ) & ~ 15 ;\n int height = ( cpi -> oxcf . Height + 15 ) & ~ 15 ;\n vp8_denoiser_allocate ( & cpi -> denoiser , width , height , cm -> mb_rows , cm -> mb_cols , cpi -> oxcf . noise_sensitivity ) ;\n }\n }\n # endif # if 0 cpi -> frame_distortion = 0 ;\n cpi -> last_frame_distortion = 0 ;\n # endif }"}
{"idx": 4151, "target": 0, "func": "int main ( int argc , char * * argv ) {\n const Writer * w ;\n WriterContext * wctx ;\n char * buf ;\n char * w_name = NULL , * w_args = NULL ;\n int ret , i ;\n init_dynload ( ) ;\n # if HAVE_THREADS ret = pthread_mutex_init ( & log_mutex , NULL ) ;\n if ( ret != 0 ) {\n goto end ;\n }\n # endif av_log_set_flags ( AV_LOG_SKIP_REPEATED ) ;\n register_exit ( ffprobe_cleanup ) ;\n options = real_options ;\n parse_loglevel ( argc , argv , options ) ;\n av_register_all ( ) ;\n avformat_network_init ( ) ;\n init_opts ( ) ;\n # if CONFIG_AVDEVICE avdevice_register_all ( ) ;\n # endif show_banner ( argc , argv , options ) ;\n parse_options ( NULL , argc , argv , options , opt_input_file ) ;\n if ( do_show_log ) av_log_set_callback ( log_callback ) ;\n SET_DO_SHOW ( CHAPTERS , chapters ) ;\n SET_DO_SHOW ( ERROR , error ) ;\n SET_DO_SHOW ( FORMAT , format ) ;\n SET_DO_SHOW ( FRAMES , frames ) ;\n SET_DO_SHOW ( LIBRARY_VERSIONS , library_versions ) ;\n SET_DO_SHOW ( PACKETS , packets ) ;\n SET_DO_SHOW ( PIXEL_FORMATS , pixel_formats ) ;\n SET_DO_SHOW ( PIXEL_FORMAT_FLAGS , pixel_format_flags ) ;\n SET_DO_SHOW ( PIXEL_FORMAT_COMPONENTS , pixel_format_components ) ;\n SET_DO_SHOW ( PROGRAM_VERSION , program_version ) ;\n SET_DO_SHOW ( PROGRAMS , programs ) ;\n SET_DO_SHOW ( STREAMS , streams ) ;\n SET_DO_SHOW ( STREAM_DISPOSITION , stream_disposition ) ;\n SET_DO_SHOW ( PROGRAM_STREAM_DISPOSITION , stream_disposition ) ;\n SET_DO_SHOW ( CHAPTER_TAGS , chapter_tags ) ;\n SET_DO_SHOW ( FORMAT_TAGS , format_tags ) ;\n SET_DO_SHOW ( FRAME_TAGS , frame_tags ) ;\n SET_DO_SHOW ( PROGRAM_TAGS , program_tags ) ;\n SET_DO_SHOW ( STREAM_TAGS , stream_tags ) ;\n SET_DO_SHOW ( PROGRAM_STREAM_TAGS , stream_tags ) ;\n SET_DO_SHOW ( PACKET_TAGS , packet_tags ) ;\n if ( do_bitexact && ( do_show_program_version || do_show_library_versions ) ) {\n av_log ( NULL , AV_LOG_ERROR , \"-bitexact and -show_program_version or -show_library_versions \" \"options are incompatible\\n\" ) ;\n ret = AVERROR ( EINVAL ) ;\n goto end ;\n }\n writer_register_all ( ) ;\n if ( ! print_format ) print_format = av_strdup ( \"default\" ) ;\n if ( ! print_format ) {\n ret = AVERROR ( ENOMEM ) ;\n goto end ;\n }\n w_name = av_strtok ( print_format , \"=\" , & buf ) ;\n if ( ! w_name ) {\n av_log ( NULL , AV_LOG_ERROR , \"No name specified for the output format\\n\" ) ;\n ret = AVERROR ( EINVAL ) ;\n goto end ;\n }\n w_args = buf ;\n if ( show_data_hash ) {\n if ( ( ret = av_hash_alloc ( & hash , show_data_hash ) ) < 0 ) {\n if ( ret == AVERROR ( EINVAL ) ) {\n const char * n ;\n av_log ( NULL , AV_LOG_ERROR , \"Unknown hash algorithm '%s'\\nKnown algorithms:\" , show_data_hash ) ;\n for ( i = 0 ;\n ( n = av_hash_names ( i ) ) ;\n i ++ ) av_log ( NULL , AV_LOG_ERROR , \" %s\" , n ) ;\n av_log ( NULL , AV_LOG_ERROR , \"\\n\" ) ;\n }\n goto end ;\n }\n }\n w = writer_get_by_name ( w_name ) ;\n if ( ! w ) {\n av_log ( NULL , AV_LOG_ERROR , \"Unknown output format with name '%s'\\n\" , w_name ) ;\n ret = AVERROR ( EINVAL ) ;\n goto end ;\n }\n if ( ( ret = writer_open ( & wctx , w , w_args , sections , FF_ARRAY_ELEMS ( sections ) ) ) >= 0 ) {\n if ( w == & xml_writer ) wctx -> string_validation_utf8_flags |= AV_UTF8_FLAG_EXCLUDE_XML_INVALID_CONTROL_CODES ;\n writer_print_section_header ( wctx , SECTION_ID_ROOT ) ;\n if ( do_show_program_version ) ffprobe_show_program_version ( wctx ) ;\n if ( do_show_library_versions ) ffprobe_show_library_versions ( wctx ) ;\n if ( do_show_pixel_formats ) ffprobe_show_pixel_formats ( wctx ) ;\n if ( ! input_filename && ( ( do_show_format || do_show_programs || do_show_streams || do_show_chapters || do_show_packets || do_show_error ) || ( ! do_show_program_version && ! do_show_library_versions && ! do_show_pixel_formats ) ) ) {\n show_usage ( ) ;\n av_log ( NULL , AV_LOG_ERROR , \"You have to specify one input file.\\n\" ) ;\n av_log ( NULL , AV_LOG_ERROR , \"Use -h to get full help or, even better, run 'man %s'.\\n\" , program_name ) ;\n ret = AVERROR ( EINVAL ) ;\n }\n else if ( input_filename ) {\n ret = probe_file ( wctx , input_filename ) ;\n if ( ret < 0 && do_show_error ) show_error ( wctx , ret ) ;\n }\n writer_print_section_footer ( wctx ) ;\n writer_close ( & wctx ) ;\n }\n end : av_freep ( & print_format ) ;\n av_freep ( & read_intervals ) ;\n av_hash_freep ( & hash ) ;\n uninit_opts ( ) ;\n for ( i = 0 ;\n i < FF_ARRAY_ELEMS ( sections ) ;\n i ++ ) av_dict_free ( & ( sections [ i ] . entries_to_show ) ) ;\n avformat_network_deinit ( ) ;\n return ret < 0 ;\n }"}
{"idx": 4152, "target": 0, "func": "static int isofile_register_hardlink ( struct archive_write * a , struct isofile * file ) {\n struct iso9660 * iso9660 = a -> format_data ;\n struct hardlink * hl ;\n const char * pathname ;\n archive_entry_set_nlink ( file -> entry , 1 ) ;\n pathname = archive_entry_hardlink ( file -> entry ) ;\n if ( pathname == NULL ) {\n hl = malloc ( sizeof ( * hl ) ) ;\n if ( hl == NULL ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate memory\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n hl -> nlink = 1 ;\n file -> hlnext = NULL ;\n hl -> file_list . first = file ;\n hl -> file_list . last = & ( file -> hlnext ) ;\n __archive_rb_tree_insert_node ( & ( iso9660 -> hardlink_rbtree ) , ( struct archive_rb_node * ) hl ) ;\n }\n else {\n hl = ( struct hardlink * ) __archive_rb_tree_find_node ( & ( iso9660 -> hardlink_rbtree ) , pathname ) ;\n if ( hl != NULL ) {\n file -> hlnext = NULL ;\n * hl -> file_list . last = file ;\n hl -> file_list . last = & ( file -> hlnext ) ;\n hl -> nlink ++ ;\n }\n archive_entry_unset_size ( file -> entry ) ;\n }\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 4153, "target": 0, "func": "static const wbxml_decoding * get_wbxml_decoding_from_public_id ( guint32 public_id ) {\n const wbxml_decoding * map = NULL ;\n DebugLog ( ( \"get_wbxml_decoding_from_public_id: public_id = %u\\n\" , public_id ) ) ;\n if ( public_id >= 2 ) {\n const wbxml_integer_list * item = well_known_public_id_list ;\n while ( item && item -> public_id && item -> map ) {\n if ( item -> public_id == public_id ) {\n map = item -> map ;\n break ;\n }\n item ++ ;\n }\n }\n return map ;\n }"}
{"idx": 4154, "target": 0, "func": "static int pxa2xx_cpccnt_read ( CPUARMState * env , const ARMCPRegInfo * ri , uint64_t * value ) {\n PXA2xxState * s = ( PXA2xxState * ) ri -> opaque ;\n if ( s -> pmnc & 1 ) {\n * value = qemu_get_clock_ns ( vm_clock ) ;\n }\n else {\n * value = 0 ;\n }\n return 0 ;\n }"}
{"idx": 4155, "target": 0, "func": "static int cpu_pre_save ( void * opaque ) {\n X86CPU * cpu = opaque ;\n CPUX86State * env = & cpu -> env ;\n int i ;\n env -> fpus_vmstate = ( env -> fpus & ~ 0x3800 ) | ( env -> fpstt & 0x7 ) << 11 ;\n env -> fptag_vmstate = 0 ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n env -> fptag_vmstate |= ( ( ! env -> fptags [ i ] ) << i ) ;\n }\n env -> fpregs_format_vmstate = 0 ;\n if ( ! ( env -> cr [ 0 ] & CR0_PE_MASK ) && ( env -> segs [ R_CS ] . flags >> DESC_DPL_SHIFT & 3 ) != 0 ) {\n env -> segs [ R_CS ] . flags &= ~ ( env -> segs [ R_CS ] . flags & DESC_DPL_MASK ) ;\n env -> segs [ R_DS ] . flags &= ~ ( env -> segs [ R_DS ] . flags & DESC_DPL_MASK ) ;\n env -> segs [ R_ES ] . flags &= ~ ( env -> segs [ R_ES ] . flags & DESC_DPL_MASK ) ;\n env -> segs [ R_FS ] . flags &= ~ ( env -> segs [ R_FS ] . flags & DESC_DPL_MASK ) ;\n env -> segs [ R_GS ] . flags &= ~ ( env -> segs [ R_GS ] . flags & DESC_DPL_MASK ) ;\n env -> segs [ R_SS ] . flags &= ~ ( env -> segs [ R_SS ] . flags & DESC_DPL_MASK ) ;\n }\n return 0 ;\n }"}
{"idx": 4156, "target": 0, "func": "static int dissect_h225_TBCD_STRING_SIZE_16 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_size_constrained_type ( tvb , offset , actx , tree , hf_index , dissect_h225_TBCD_STRING , \"TBCD_STRING\" , 16 , 16 , FALSE ) ;\n return offset ;\n }"}
{"idx": 4157, "target": 0, "func": "static inline int ir2_get_code ( GetBitContext * gb ) {\n return get_vlc2 ( gb , ir2_vlc . table , CODE_VLC_BITS , 1 ) + 1 ;\n }"}
{"idx": 4158, "target": 0, "func": "TEST_F ( HistoryQuickProviderTest , Spans ) {\n TermMatches matches_a ;\n matches_a . push_back ( TermMatch ( 1 , 1 , 2 ) ) ;\n matches_a . push_back ( TermMatch ( 2 , 4 , 3 ) ) ;\n matches_a . push_back ( TermMatch ( 3 , 9 , 1 ) ) ;\n matches_a . push_back ( TermMatch ( 3 , 10 , 1 ) ) ;\n matches_a . push_back ( TermMatch ( 4 , 14 , 5 ) ) ;\n ACMatchClassifications spans_a = HistoryQuickProvider : : SpansFromTermMatch ( matches_a , 20 , false ) ;\n ASSERT_EQ ( 9U , spans_a . size ( ) ) ;\n EXPECT_EQ ( 0U , spans_a [ 0 ] . offset ) ;\n EXPECT_EQ ( ACMatchClassification : : NONE , spans_a [ 0 ] . style ) ;\n EXPECT_EQ ( 1U , spans_a [ 1 ] . offset ) ;\n EXPECT_EQ ( ACMatchClassification : : MATCH , spans_a [ 1 ] . style ) ;\n EXPECT_EQ ( 3U , spans_a [ 2 ] . offset ) ;\n EXPECT_EQ ( ACMatchClassification : : NONE , spans_a [ 2 ] . style ) ;\n EXPECT_EQ ( 4U , spans_a [ 3 ] . offset ) ;\n EXPECT_EQ ( ACMatchClassification : : MATCH , spans_a [ 3 ] . style ) ;\n EXPECT_EQ ( 7U , spans_a [ 4 ] . offset ) ;\n EXPECT_EQ ( ACMatchClassification : : NONE , spans_a [ 4 ] . style ) ;\n EXPECT_EQ ( 9U , spans_a [ 5 ] . offset ) ;\n EXPECT_EQ ( ACMatchClassification : : MATCH , spans_a [ 5 ] . style ) ;\n EXPECT_EQ ( 11U , spans_a [ 6 ] . offset ) ;\n EXPECT_EQ ( ACMatchClassification : : NONE , spans_a [ 6 ] . style ) ;\n EXPECT_EQ ( 14U , spans_a [ 7 ] . offset ) ;\n EXPECT_EQ ( ACMatchClassification : : MATCH , spans_a [ 7 ] . style ) ;\n EXPECT_EQ ( 19U , spans_a [ 8 ] . offset ) ;\n EXPECT_EQ ( ACMatchClassification : : NONE , spans_a [ 8 ] . style ) ;\n TermMatches matches_b ;\n matches_b . push_back ( TermMatch ( 1 , 0 , 2 ) ) ;\n matches_b . push_back ( TermMatch ( 2 , 3 , 2 ) ) ;\n ACMatchClassifications spans_b = HistoryQuickProvider : : SpansFromTermMatch ( matches_b , 5 , true ) ;\n ASSERT_EQ ( 3U , spans_b . size ( ) ) ;\n EXPECT_EQ ( 0U , spans_b [ 0 ] . offset ) ;\n EXPECT_EQ ( ACMatchClassification : : MATCH | ACMatchClassification : : URL , spans_b [ 0 ] . style ) ;\n EXPECT_EQ ( 2U , spans_b [ 1 ] . offset ) ;\n EXPECT_EQ ( ACMatchClassification : : URL , spans_b [ 1 ] . style ) ;\n EXPECT_EQ ( 3U , spans_b [ 2 ] . offset ) ;\n EXPECT_EQ ( ACMatchClassification : : MATCH | ACMatchClassification : : URL , spans_b [ 2 ] . style ) ;\n }"}
{"idx": 4159, "target": 0, "func": "void proto_register_steam_ihs_discovery ( void ) {\n module_t * steam_ihs_discovery_module ;\n expert_module_t * expert_steam_ihs_discovery ;\n static hf_register_info hf [ ] = {\n {\n & hf_steam_ihs_discovery_signature , {\n \"Signature\" , \"steam_ihs_discovery.signature\" , FT_UINT64 , BASE_HEX , NULL , 0 , \"Every packet of the Steam In-Home Streaming Discovery Protocol begins with this signature.\" , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_header_length , {\n \"Header Length\" , \"steam_ihs_discovery.header_length\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_length , {\n \"Body Length\" , \"steam_ihs_discovery.body_length\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_unknown_data , {\n \"Unknown Data\" , \"steam_ihs_discovery.unknown_data\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_unknown_number , {\n \"Unknown Number\" , \"steam_ihs_discovery.unknown_number\" , FT_UINT64 , BASE_DEC_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_header_clientid , {\n \"Client ID\" , \"steam_ihs_discovery.header_client_id\" , FT_UINT64 , BASE_DEC_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_header_msgtype , {\n \"Message Type\" , \"steam_ihs_discovery.header_msg_type\" , FT_UINT64 , BASE_DEC | BASE_VAL64_STRING , VALS64 ( hf_steam_ihs_discovery_header_msgtype_strings ) , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_header_instanceid , {\n \"Instance ID\" , \"steam_ihs_discovery.header_instance_id\" , FT_UINT64 , BASE_DEC_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_discovery_seqnum , {\n \"Sequence Number\" , \"steam_ihs_discovery.body_discovery_seqnum\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_discovery_clientids , {\n \"Client IDs\" , \"steam_ihs_discovery.body_discovery_clientids\" , FT_UINT64 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_status_version , {\n \"Version\" , \"steam_ihs_discovery.body_status_version\" , FT_INT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_status_minversion , {\n \"Minimum Version\" , \"steam_ihs_discovery.body_status_minversion\" , FT_INT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_status_connectport , {\n \"Connect Port\" , \"steam_ihs_discovery.body_status_connectport\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_status_hostname , {\n \"Hostname\" , \"steam_ihs_discovery.body_status_hostname\" , FT_STRING , STR_UNICODE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_status_enabledservices , {\n \"Enabled Services\" , \"steam_ihs_discovery.body_status_enabledservices\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_status_ostype , {\n \"OS Type\" , \"steam_ihs_discovery.body_status_ostype\" , FT_INT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_status_is64bit , {\n \"Is 64 Bit\" , \"steam_ihs_discovery.body_status_is64bit\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_status_euniverse , {\n \"EUniverse\" , \"steam_ihs_discovery.body_status_euniverse\" , FT_INT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_status_timestamp , {\n \"Timestamp\" , \"steam_ihs_discovery.body_status_timestamp\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_LOCAL , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_status_screenlocked , {\n \"Screen Locked\" , \"steam_ihs_discovery.body_status_screenlocked\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_status_gamesrunning , {\n \"Games Running\" , \"steam_ihs_discovery.body_status_gamesrunning\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_status_macaddresses , {\n \"MAC Addresses\" , \"steam_ihs_discovery.body_status_macaddresses\" , FT_STRING , STR_ASCII , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_status_user_steamid , {\n \"Steam ID\" , \"steam_ihs_discovery.body_status_user_steamid\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_status_user_authkeyid , {\n \"Auth Key ID\" , \"steam_ihs_discovery.body_status_user_authkeyid\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_authrequest_devicetoken , {\n \"Device Token\" , \"steam_ihs_discovery.body_authrequest_devicetoken\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_authrequest_devicename , {\n \"Device Name\" , \"steam_ihs_discovery.body_authrequest_devicename\" , FT_STRING , STR_UNICODE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_authrequest_encryptedrequest , {\n \"Encrypted Request\" , \"steam_ihs_discovery.body_authrequest_encryptedrequest\" , FT_BYTES , BASE_NO_DISPLAY_VALUE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_authresponse_authresult , {\n \"Result\" , \"steam_ihs_discovery.body_authresponse_authresult\" , FT_UINT64 , BASE_DEC | BASE_VAL64_STRING , VALS64 ( hf_steam_ihs_discovery_body_authresponse_authresult_strings ) , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_streamingrequest_requestid , {\n \"Request ID\" , \"steam_ihs_discovery.body_streamingrequest_requestid\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_streamingrequest_maximumresolutionx , {\n \"Maximum Resolution X\" , \"steam_ihs_discovery.body_streamingrequest_maximumresolutionx\" , FT_INT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_streamingrequest_maximumresolutiony , {\n \"Maximum Resolution Y\" , \"steam_ihs_discovery.body_streamingrequest_maximumresolutiony\" , FT_INT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_streamingrequest_audiochannelcount , {\n \"Audio Channel Count\" , \"steam_ihs_discovery.body_streamingrequest_audiochannelcount\" , FT_INT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_streamingrequest_deviceversion , {\n \"Device Version\" , \"steam_ihs_discovery.body_streamingrequest_deviceversion\" , FT_STRING , STR_UNICODE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_streamingrequest_streamdesktop , {\n \"Stream Desktop\" , \"steam_ihs_discovery.body_streamingrequest_streamdesktop\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_streamingrequest_devicetoken , {\n \"Device Token\" , \"steam_ihs_discovery.body_streamingrequest_devicetoken\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_streamingrequest_pin , {\n \"PIN\" , \"steam_ihs_discovery.body_streamingrequest_pin\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_streamingrequest_enablevideostreaming , {\n \"Enable Video Streaming\" , \"steam_ihs_discovery.body_streamingrequest_enablevideostreaming\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_streamingrequest_enableaudiostreaming , {\n \"Enable Audio Streaming\" , \"steam_ihs_discovery.body_streamingrequest_enableaudiostreaming\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_streamingrequest_enableinputstreaming , {\n \"Enable Input Streaming\" , \"steam_ihs_discovery.body_streamingrequest_enableinputstreaming\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_streamingcancelrequest_requestid , {\n \"Request ID\" , \"steam_ihs_discovery.body_streamingcancelrequest_requestid\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_streamingresponse_requestid , {\n \"Request ID\" , \"steam_ihs_discovery.body_streamingresponse_requestid\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_streamingresponse_result , {\n \"Result\" , \"steam_ihs_discovery.body_streamingresponse_result\" , FT_UINT64 , BASE_DEC | BASE_VAL64_STRING , VALS64 ( hf_steam_ihs_discovery_body_streamingresponse_result_strings ) , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_streamingresponse_port , {\n \"Port\" , \"steam_ihs_discovery.body_streamingresponse_port\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_streamingresponse_encryptedsessionkey , {\n \"Encrypted Session Key\" , \"steam_ihs_discovery.body_streamingresponse_encryptedsessionkey\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_streamingresponse_virtualherelicenseddevicecount , {\n \"VirtualHere Licensed Device Count\" , \"steam_ihs_discovery.body_streamingresponse_virtualherelicenseddevicecount\" , FT_INT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_proofrequest_challenge , {\n \"Challenge\" , \"steam_ihs_discovery.body_proofrequest_challenge\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_steam_ihs_discovery_body_proofresponse_response , {\n \"Response\" , \"steam_ihs_discovery.body_proofresponse_response\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n }\n ;\n static gint * ett [ ] = {\n & ett_steam_ihs_discovery , & ett_steam_ihs_discovery_body_status_user }\n ;\n static ei_register_info ei [ ] = {\n {\n & ei_steam_ihs_discovery_unknown_data , {\n \"steam_ihs_discovery.unknowndata\" , PI_UNDECODED , PI_WARN , \"Unknown data section\" , EXPFILL }\n }\n , {\n & ei_steam_ihs_discovery_unknown_number , {\n \"steam_ihs_discovery.unknownnumber\" , PI_UNDECODED , PI_WARN , \"Unknown numeric protobuf field\" , EXPFILL }\n }\n , {\n & ei_steam_ihs_discovery_unknown_lengthdelimited , {\n \"steam_ihs_discovery.unknownlengthdelimited\" , PI_UNDECODED , PI_WARN , \"Unknown length-delimited protobuf field\" , EXPFILL }\n }\n , {\n & ei_steam_ihs_discovery_invalid_wiretype , {\n \"steam_ihs_discovery.invalid_wiretype\" , PI_MALFORMED , PI_ERROR , \"Unexpected wire type\" , EXPFILL }\n }\n , {\n & ei_steam_ihs_discovery_invalid_length , {\n \"steam_ihs_discovery.invalid_length\" , PI_MALFORMED , PI_ERROR , \"Length-delimited field has invalid length\" , EXPFILL }\n }\n }\n ;\n proto_steam_ihs_discovery = proto_register_protocol ( \"Steam In-Home Streaming Discovery Protocol\" , \"Steam IHS Discovery\" , \"steam_ihs_discovery\" ) ;\n proto_register_field_array ( proto_steam_ihs_discovery , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n expert_steam_ihs_discovery = expert_register_protocol ( proto_steam_ihs_discovery ) ;\n expert_register_field_array ( expert_steam_ihs_discovery , ei , array_length ( ei ) ) ;\n steam_ihs_discovery_module = prefs_register_protocol ( proto_steam_ihs_discovery , proto_reg_handoff_steam_ihs_discovery ) ;\n prefs_register_uint_preference ( steam_ihs_discovery_module , \"udp.port\" , \"steam_ihs_discovery UDP Port\" , \" Steam IHS Discovery UDP port if other than the default\" , 10 , & udp_port_pref ) ;\n }"}
{"idx": 4160, "target": 0, "func": "int gdev_pdf_put_params ( gx_device * dev , gs_param_list * plist ) {\n int code ;\n gx_device_pdf * pdev = ( gx_device_pdf * ) dev ;\n gs_memory_t * mem = gs_memory_stable ( pdev -> memory ) ;\n gx_device_pdf * save_dev = gs_malloc ( mem , sizeof ( gx_device_pdf ) , 1 , \"saved gx_device_pdf\" ) ;\n if ( ! save_dev ) return_error ( gs_error_VMerror ) ;\n memcpy ( save_dev , pdev , sizeof ( gx_device_pdf ) ) ;\n code = gdev_pdf_put_params_impl ( dev , save_dev , plist ) ;\n gs_free ( mem , save_dev , sizeof ( gx_device_pdf ) , 1 , \"saved gx_device_pdf\" ) ;\n return code ;\n }"}
{"idx": 4161, "target": 0, "func": "static Datum ExecEvalParamExtern ( ExprState * exprstate , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n Param * expression = ( Param * ) exprstate -> expr ;\n int thisParamId = expression -> paramid ;\n ParamListInfo paramInfo = econtext -> ecxt_param_list_info ;\n if ( isDone ) * isDone = ExprSingleResult ;\n if ( paramInfo && thisParamId > 0 && thisParamId <= paramInfo -> numParams ) {\n ParamExternData * prm = & paramInfo -> params [ thisParamId - 1 ] ;\n if ( ! OidIsValid ( prm -> ptype ) && paramInfo -> paramFetch != NULL ) ( * paramInfo -> paramFetch ) ( paramInfo , thisParamId ) ;\n if ( OidIsValid ( prm -> ptype ) ) {\n if ( prm -> ptype != expression -> paramtype ) ereport ( ERROR , ( errcode ( ERRCODE_DATATYPE_MISMATCH ) , errmsg ( \"type of parameter %d (%s) does not match that when preparing the plan (%s)\" , thisParamId , format_type_be ( prm -> ptype ) , format_type_be ( expression -> paramtype ) ) ) ) ;\n * isNull = prm -> isnull ;\n return prm -> value ;\n }\n }\n ereport ( ERROR , ( errcode ( ERRCODE_UNDEFINED_OBJECT ) , errmsg ( \"no value found for parameter %d\" , thisParamId ) ) ) ;\n return ( Datum ) 0 ;\n }"}
{"idx": 4162, "target": 0, "func": "static guint32 parse_wbxml_attribute_list ( proto_tree * tree , tvbuff_t * tvb , guint32 offset , guint32 str_tbl , guint8 level , guint8 * codepage_attr ) {\n guint32 tvb_len = tvb_reported_length ( tvb ) ;\n guint32 off = offset , last_off ;\n guint32 len ;\n guint str_len ;\n guint32 ent ;\n guint32 idx ;\n guint8 peek ;\n DebugLog ( ( \"parse_wbxml_attr (level = %u, offset = %u)\\n\" , level , offset ) ) ;\n last_off = off ;\n while ( off < tvb_len ) {\n peek = tvb_get_guint8 ( tvb , off ) ;\n DebugLog ( ( \"ATTR: (top of while) level = %3u, peek = 0x%02X, \" \"off = %u, tvb_len = %u\\n\" , level , peek , off , tvb_len ) ) ;\n if ( ( peek & 0x3F ) < 5 ) switch ( peek ) {\n case 0x00 : * codepage_attr = tvb_get_guint8 ( tvb , off + 1 ) ;\n proto_tree_add_text ( tree , tvb , off , 2 , \" | Attr | A -->%3d \" \"| SWITCH_PAGE (Attr code page) |\" , * codepage_attr ) ;\n off += 2 ;\n break ;\n case 0x01 : off ++ ;\n DebugLog ( ( \"ATTR: level = %u, Return: len = %u\\n\" , level , off - offset ) ) ;\n return ( off - offset ) ;\n case 0x02 : ent = tvb_get_guintvar ( tvb , off + 1 , & len ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Attr | A %3d \" \"| ENTITY \" \"| %s'&#%u;\n'\" , level , * codepage_attr , Indent ( level ) , ent ) ;\n off += 1 + len ;\n break ;\n case 0x03 : len = tvb_strsize ( tvb , off + 1 ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Attr | A %3d \" \"| STR_I (Inline string) \" \"| %s\\'%s\\'\" , level , * codepage_attr , Indent ( level ) , tvb_format_text ( tvb , off + 1 , len - 1 ) ) ;\n off += 1 + len ;\n break ;\n case 0x04 : idx = tvb_get_guintvar ( tvb , off + 1 , & len ) ;\n str_len = tvb_strsize ( tvb , str_tbl + idx ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Attr | A %3d \" \"| LITERAL (Literal Attribute) \" \"| %s<%s />\" , level , * codepage_attr , Indent ( level ) , tvb_format_text ( tvb , str_tbl + idx , str_len - 1 ) ) ;\n off += 1 + len ;\n break ;\n case 0x40 : case 0x41 : case 0x42 : len = tvb_strsize ( tvb , off + 1 ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Attr | A %3d \" \"| EXT_I_%1x (Extension Token) \" \"| %s(Inline string extension: \\'%s\\')\" , level , * codepage_attr , peek & 0x0f , Indent ( level ) , tvb_format_text ( tvb , off + 1 , len - 1 ) ) ;\n off += 1 + len ;\n break ;\n case 0x80 : case 0x81 : case 0x82 : idx = tvb_get_guintvar ( tvb , off + 1 , & len ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Attr | A %3d \" \"| EXT_T_%1x (Extension Token) \" \"| %s(Extension Token, integer value: %u)\" , level , * codepage_attr , peek & 0x0f , Indent ( level ) , idx ) ;\n off += 1 + len ;\n break ;\n case 0x83 : idx = tvb_get_guintvar ( tvb , off + 1 , & len ) ;\n str_len = tvb_strsize ( tvb , str_tbl + idx ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Attr | A %3d \" \"| STR_T (Tableref string) \" \"| %s\\'%s\\'\" , level , * codepage_attr , Indent ( level ) , tvb_format_text ( tvb , str_tbl + idx , str_len - 1 ) ) ;\n off += 1 + len ;\n break ;\n case 0xC0 : case 0xC1 : case 0xC2 : proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Attr | A %3d \" \"| EXT_%1x (Extension Token) \" \"| %s(Single-byte extension)\" , level , * codepage_attr , peek & 0x0f , Indent ( level ) ) ;\n off ++ ;\n break ;\n case 0xC3 : if ( tvb_get_guint8 ( tvb , 0 ) ) {\n idx = tvb_get_guintvar ( tvb , off + 1 , & len ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len + idx , \" %3d | Attr | A %3d \" \"| OPAQUE (Opaque data) \" \"| %s(%d bytes of opaque data)\" , level , * codepage_attr , Indent ( level ) , idx ) ;\n off += 1 + len + idx ;\n }\n else {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Attr | A %3d \" \"| RESERVED_2 (Invalid Token!) \" \"| WBXML 1.0 parsing stops here.\" , level , * codepage_attr ) ;\n off = tvb_len ;\n DebugLog ( ( \"ATTR: level = %u, Return: len = %u\\n\" , level , off - offset ) ) ;\n return ( off - offset ) ;\n }\n break ;\n default : proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Attr | A %3d \" \"| %-10s (Invalid Token!) \" \"| WBXML parsing stops here.\" , level , * codepage_attr , val_to_str_ext ( peek , & vals_wbxml1x_global_tokens_ext , \"(unknown 0x%x)\" ) ) ;\n off = tvb_len ;\n break ;\n }\n else {\n if ( peek & 0x80 ) {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Attr | A %3d \" \"| Known attrValue 0x%02X \" \"| %sattrValue_0x%02X\" , level , * codepage_attr , peek & 0x7f , Indent ( level ) , peek ) ;\n off ++ ;\n }\n else {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Attr | A %3d \" \"| Known attrStart 0x%02X \" \"| %sattrStart_0x%02X\" , level , * codepage_attr , peek & 0x7f , Indent ( level ) , peek ) ;\n off ++ ;\n }\n }\n if ( off < last_off ) {\n THROW ( ReportedBoundsError ) ;\n }\n last_off = off ;\n }\n DebugLog ( ( \"ATTR: level = %u, Return: len = %u (end of function body)\\n\" , level , off - offset ) ) ;\n return ( off - offset ) ;\n }"}
{"idx": 4163, "target": 0, "func": "static char * wv_csp12_opaque_binary_tag ( tvbuff_t * tvb , guint32 offset , guint8 token , guint8 codepage , guint32 * length ) {\n guint32 data_len = tvb_get_guintvar ( tvb , offset , length ) ;\n char * str = NULL ;\n switch ( codepage ) {\n case 0 : switch ( token ) {\n case 0x0B : case 0x0F : case 0x1A : case 0x3C : str = wv_integer_from_opaque ( tvb , offset + * length , data_len ) ;\n break ;\n case 0x11 : str = wv_datetime_from_opaque ( tvb , offset + * length , data_len ) ;\n break ;\n default : break ;\n }\n break ;\n case 1 : switch ( token ) {\n case 0x1C : case 0x32 : str = wv_integer_from_opaque ( tvb , offset + * length , data_len ) ;\n break ;\n default : break ;\n }\n break ;\n case 3 : switch ( token ) {\n case 0x06 : case 0x0C : case 0x0D : case 0x0E : case 0x12 : case 0x13 : str = wv_integer_from_opaque ( tvb , offset + * length , data_len ) ;\n break ;\n default : break ;\n }\n break ;\n case 6 : switch ( token ) {\n case 0x1A : str = wv_datetime_from_opaque ( tvb , offset + * length , data_len ) ;\n break ;\n default : break ;\n }\n break ;\n case 9 : switch ( token ) {\n case 0x08 : case 0x0A : str = wv_integer_from_opaque ( tvb , offset + * length , data_len ) ;\n break ;\n default : break ;\n }\n break ;\n default : break ;\n }\n if ( str == NULL ) {\n str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"(%d bytes of unparsed opaque data)\" , data_len ) ;\n }\n * length += data_len ;\n return str ;\n }"}
{"idx": 4164, "target": 0, "func": "void handle_error ( struct st_command * command , unsigned int err_errno , const char * err_error , const char * err_sqlstate , DYNAMIC_STRING * ds ) {\n int i ;\n DBUG_ENTER ( \"handle_error\" ) ;\n command -> used_replace = 1 ;\n if ( command -> require_file ) {\n if ( err_errno == CR_SERVER_LOST || err_errno == CR_SERVER_GONE_ERROR ) die ( \"require query '%s' failed: %d: %s\" , command -> query , err_errno , err_error ) ;\n abort_not_supported_test ( \"Query '%s' failed, required functionality \" \"not supported\" , command -> query ) ;\n }\n if ( command -> abort_on_error ) {\n report_or_die ( \"query '%s' failed: %d: %s\" , command -> query , err_errno , err_error ) ;\n DBUG_VOID_RETURN ;\n }\n DBUG_PRINT ( \"info\" , ( \"expected_errors.count: %d\" , command -> expected_errors . count ) ) ;\n i = match_expected_error ( command , err_errno , err_sqlstate ) ;\n if ( i >= 0 ) {\n if ( ! disable_result_log ) {\n if ( command -> expected_errors . count == 1 ) {\n dynstr_append_mem ( ds , \"ERROR \" , 6 ) ;\n replace_dynstr_append ( ds , err_sqlstate ) ;\n dynstr_append_mem ( ds , \": \" , 2 ) ;\n replace_dynstr_append ( ds , err_error ) ;\n dynstr_append_mem ( ds , \"\\n\" , 1 ) ;\n }\n else if ( command -> expected_errors . err [ 0 ] . type == ERR_SQLSTATE || ( command -> expected_errors . err [ 0 ] . type == ERR_ERRNO && command -> expected_errors . err [ 0 ] . code . errnum != 0 ) ) dynstr_append ( ds , \"Got one of the listed errors\\n\" ) ;\n }\n revert_properties ( ) ;\n DBUG_VOID_RETURN ;\n }\n DBUG_PRINT ( \"info\" , ( \"i: %d expected_errors: %d\" , i , command -> expected_errors . count ) ) ;\n if ( ! disable_result_log ) {\n dynstr_append_mem ( ds , \"ERROR \" , 6 ) ;\n replace_dynstr_append ( ds , err_sqlstate ) ;\n dynstr_append_mem ( ds , \": \" , 2 ) ;\n replace_dynstr_append ( ds , err_error ) ;\n dynstr_append_mem ( ds , \"\\n\" , 1 ) ;\n }\n if ( command -> expected_errors . count > 0 ) {\n if ( command -> expected_errors . err [ 0 ] . type == ERR_ERRNO ) report_or_die ( \"query '%s' failed with wrong errno %d: '%s', instead of \" \"%d...\" , command -> query , err_errno , err_error , command -> expected_errors . err [ 0 ] . code . errnum ) ;\n else report_or_die ( \"query '%s' failed with wrong sqlstate %s: '%s', \" \"instead of %s...\" , command -> query , err_sqlstate , err_error , command -> expected_errors . err [ 0 ] . code . sqlstate ) ;\n }\n revert_properties ( ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 4165, "target": 0, "func": "static void pk_transaction_get_repo_list ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) {\n PkBitfield filter ;\n g_autoptr ( GError ) error = NULL ;\n g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;\n g_return_if_fail ( transaction -> priv -> tid != NULL ) ;\n g_variant_get ( params , \"(t)\" , & filter ) ;\n g_debug ( \"GetRepoList method called\" ) ;\n if ( ! pk_backend_is_implemented ( transaction -> priv -> backend , PK_ROLE_ENUM_GET_REPO_LIST ) ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NOT_SUPPORTED , \"GetRepoList not supported by backend\" ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n transaction -> priv -> cached_filters = filter ;\n pk_transaction_set_role ( transaction , PK_ROLE_ENUM_GET_REPO_LIST ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_READY ) ;\n out : pk_transaction_dbus_return ( context , error ) ;\n }"}
{"idx": 4166, "target": 0, "func": "static int zclipsave ( i_ctx_t * i_ctx_p ) {\n return gs_clipsave ( igs ) ;\n }"}
{"idx": 4167, "target": 0, "func": "static void passwd ( struct parse * pcmd , FILE * fp ) {\n const char * pass ;\n if ( info_auth_keyid == 0 ) {\n info_auth_keyid = getkeyid ( \"Keyid: \" ) ;\n if ( info_auth_keyid == 0 ) {\n ( void ) fprintf ( fp , \"Keyid must be defined\\n\" ) ;\n return ;\n }\n }\n if ( pcmd -> nargs >= 1 ) pass = pcmd -> argval [ 0 ] . string ;\n else {\n pass = getpass_keytype ( info_auth_keytype ) ;\n if ( '\\0' == pass [ 0 ] ) {\n fprintf ( fp , \"Password unchanged\\n\" ) ;\n return ;\n }\n }\n authusekey ( info_auth_keyid , info_auth_keytype , ( const u_char * ) pass ) ;\n authtrust ( info_auth_keyid , 1 ) ;\n }"}
{"idx": 4168, "target": 0, "func": "static int dissect_h245_T_collapsing ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h245_T_collapsing , T_collapsing_sequence_of ) ;\n return offset ;\n }"}
{"idx": 4169, "target": 0, "func": "static int pfkey_spddelete ( struct sock * sk , struct sk_buff * skb , const struct sadb_msg * hdr , void * const * ext_hdrs ) {\n struct net * net = sock_net ( sk ) ;\n int err ;\n struct sadb_address * sa ;\n struct sadb_x_policy * pol ;\n struct xfrm_policy * xp ;\n struct xfrm_selector sel ;\n struct km_event c ;\n struct sadb_x_sec_ctx * sec_ctx ;\n struct xfrm_sec_ctx * pol_ctx = NULL ;\n if ( ! present_and_same_family ( ext_hdrs [ SADB_EXT_ADDRESS_SRC - 1 ] , ext_hdrs [ SADB_EXT_ADDRESS_DST - 1 ] ) || ! ext_hdrs [ SADB_X_EXT_POLICY - 1 ] ) return - EINVAL ;\n pol = ext_hdrs [ SADB_X_EXT_POLICY - 1 ] ;\n if ( ! pol -> sadb_x_policy_dir || pol -> sadb_x_policy_dir >= IPSEC_DIR_MAX ) return - EINVAL ;\n memset ( & sel , 0 , sizeof ( sel ) ) ;\n sa = ext_hdrs [ SADB_EXT_ADDRESS_SRC - 1 ] , sel . family = pfkey_sadb_addr2xfrm_addr ( sa , & sel . saddr ) ;\n sel . prefixlen_s = sa -> sadb_address_prefixlen ;\n sel . proto = pfkey_proto_to_xfrm ( sa -> sadb_address_proto ) ;\n sel . sport = ( ( struct sockaddr_in * ) ( sa + 1 ) ) -> sin_port ;\n if ( sel . sport ) sel . sport_mask = htons ( 0xffff ) ;\n sa = ext_hdrs [ SADB_EXT_ADDRESS_DST - 1 ] , pfkey_sadb_addr2xfrm_addr ( sa , & sel . daddr ) ;\n sel . prefixlen_d = sa -> sadb_address_prefixlen ;\n sel . proto = pfkey_proto_to_xfrm ( sa -> sadb_address_proto ) ;\n sel . dport = ( ( struct sockaddr_in * ) ( sa + 1 ) ) -> sin_port ;\n if ( sel . dport ) sel . dport_mask = htons ( 0xffff ) ;\n sec_ctx = ext_hdrs [ SADB_X_EXT_SEC_CTX - 1 ] ;\n if ( sec_ctx != NULL ) {\n struct xfrm_user_sec_ctx * uctx = pfkey_sadb2xfrm_user_sec_ctx ( sec_ctx ) ;\n if ( ! uctx ) return - ENOMEM ;\n err = security_xfrm_policy_alloc ( & pol_ctx , uctx ) ;\n kfree ( uctx ) ;\n if ( err ) return err ;\n }\n xp = xfrm_policy_bysel_ctx ( net , DUMMY_MARK , XFRM_POLICY_TYPE_MAIN , pol -> sadb_x_policy_dir - 1 , & sel , pol_ctx , 1 , & err ) ;\n security_xfrm_policy_free ( pol_ctx ) ;\n if ( xp == NULL ) return - ENOENT ;\n xfrm_audit_policy_delete ( xp , err ? 0 : 1 , audit_get_loginuid ( current ) , audit_get_sessionid ( current ) , 0 ) ;\n if ( err ) goto out ;\n c . seq = hdr -> sadb_msg_seq ;\n c . portid = hdr -> sadb_msg_pid ;\n c . data . byid = 0 ;\n c . event = XFRM_MSG_DELPOLICY ;\n km_policy_notify ( xp , pol -> sadb_x_policy_dir - 1 , & c ) ;\n out : xfrm_pol_put ( xp ) ;\n return err ;\n }"}
{"idx": 4170, "target": 0, "func": "TSReturnCode TSHttpTxnParentSelectionUrlSet ( TSHttpTxn txnp , TSMBuffer bufp , TSMLoc obj ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_url_handle ( obj ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n URL u , * l_url ;\n u . m_heap = ( ( HdrHeapSDKHandle * ) bufp ) -> m_heap ;\n u . m_url_impl = ( URLImpl * ) obj ;\n if ( ! u . valid ( ) ) {\n return TS_ERROR ;\n }\n l_url = sm -> t_state . cache_info . parent_selection_url ;\n if ( ! l_url ) {\n sm -> t_state . cache_info . parent_selection_url_storage . create ( nullptr ) ;\n sm -> t_state . cache_info . parent_selection_url = & ( sm -> t_state . cache_info . parent_selection_url_storage ) ;\n l_url = sm -> t_state . cache_info . parent_selection_url ;\n }\n if ( ! l_url || ! l_url -> valid ( ) ) {\n return TS_ERROR ;\n }\n else {\n l_url -> copy ( & u ) ;\n }\n Debug ( \"parent_select\" , \"TSHttpTxnParentSelectionUrlSet() parent_selection_url : addr = %p val = %p\" , & ( sm -> t_state . cache_info . parent_selection_url ) , sm -> t_state . cache_info . parent_selection_url ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 4171, "target": 0, "func": "static Selectivity mcelem_array_contain_overlap_selec ( Datum * mcelem , int nmcelem , float4 * numbers , int nnumbers , Datum * array_data , int nitems , Oid operator , FmgrInfo * cmpfunc ) {\n Selectivity selec , elem_selec ;\n int mcelem_index , i ;\n bool use_bsearch ;\n float4 minfreq ;\n if ( nnumbers != nmcelem + 3 ) {\n numbers = NULL ;\n nnumbers = 0 ;\n }\n if ( numbers ) {\n minfreq = numbers [ nmcelem ] ;\n }\n else {\n minfreq = 2 * ( float4 ) DEFAULT_CONTAIN_SEL ;\n }\n if ( nitems * floor_log2 ( ( uint32 ) nmcelem ) < nmcelem + nitems ) use_bsearch = true ;\n else use_bsearch = false ;\n if ( operator == OID_ARRAY_CONTAINS_OP ) {\n selec = 1.0 ;\n }\n else {\n selec = 0.0 ;\n }\n mcelem_index = 0 ;\n for ( i = 0 ;\n i < nitems ;\n i ++ ) {\n bool match = false ;\n if ( i > 0 && element_compare ( & array_data [ i - 1 ] , & array_data [ i ] , cmpfunc ) == 0 ) continue ;\n if ( use_bsearch ) {\n match = find_next_mcelem ( mcelem , nmcelem , array_data [ i ] , & mcelem_index , cmpfunc ) ;\n }\n else {\n while ( mcelem_index < nmcelem ) {\n int cmp = element_compare ( & mcelem [ mcelem_index ] , & array_data [ i ] , cmpfunc ) ;\n if ( cmp < 0 ) mcelem_index ++ ;\n else {\n if ( cmp == 0 ) match = true ;\n break ;\n }\n }\n }\n if ( match && numbers ) {\n elem_selec = numbers [ mcelem_index ] ;\n mcelem_index ++ ;\n }\n else {\n elem_selec = Min ( DEFAULT_CONTAIN_SEL , minfreq / 2 ) ;\n }\n if ( operator == OID_ARRAY_CONTAINS_OP ) selec *= elem_selec ;\n else selec = selec + elem_selec - selec * elem_selec ;\n CLAMP_PROBABILITY ( selec ) ;\n }\n return selec ;\n }"}
{"idx": 4172, "target": 1, "func": "static void cdxl_decode_ham6 ( CDXLVideoContext * c ) {\n AVCodecContext * avctx = c -> avctx ;\n uint32_t new_palette [ 16 ] , r , g , b ;\n uint8_t * ptr , * out , index , op ;\n int x , y ;\n ptr = c -> new_video ;\n out = c -> frame . data [ 0 ] ;\n import_palette ( c , new_palette ) ;\n import_format ( c , avctx -> width , c -> new_video ) ;\n for ( y = 0 ;\n y < avctx -> height ;\n y ++ ) {\n r = new_palette [ 0 ] & 0xFF0000 ;\n g = new_palette [ 0 ] & 0xFF00 ;\n b = new_palette [ 0 ] & 0xFF ;\n for ( x = 0 ;\n x < avctx -> width ;\n x ++ ) {\n index = * ptr ++ ;\n op = index >> 4 ;\n index &= 15 ;\n switch ( op ) {\n case 0 : r = new_palette [ index ] & 0xFF0000 ;\n g = new_palette [ index ] & 0xFF00 ;\n b = new_palette [ index ] & 0xFF ;\n break ;\n case 1 : b = index * 0x11 ;\n break ;\n case 2 : r = index * 0x11 << 16 ;\n break ;\n case 3 : g = index * 0x11 << 8 ;\n break ;\n }\n AV_WL24 ( out + x * 3 , r | g | b ) ;\n }\n out += c -> frame . linesize [ 0 ] ;\n }\n }"}
{"idx": 4173, "target": 0, "func": "int xsltLocaleStrcmp ( xsltLocale locale , const xsltLocaleChar * str1 , const xsltLocaleChar * str2 ) {\n ( void ) locale ;\n # ifdef XSLT_LOCALE_WINAPI {\n int ret ;\n if ( str1 == str2 ) return ( 0 ) ;\n if ( str1 == NULL ) return ( - 1 ) ;\n if ( str2 == NULL ) return ( 1 ) ;\n ret = CompareStringW ( locale , 0 , str1 , - 1 , str2 , - 1 ) ;\n if ( ret == 0 ) {\n xsltTransformError ( NULL , NULL , NULL , \"xsltLocaleStrcmp : CompareStringW fail\\n\" ) ;\n return ( 0 ) ;\n }\n return ( ret - 2 ) ;\n }\n # else return ( xmlStrcmp ( str1 , str2 ) ) ;\n # endif }"}
{"idx": 4174, "target": 0, "func": "gpg_error_t _ksba_oid_from_buf ( const void * buffer , size_t buflen , unsigned char * * rbuf , size_t * rlength ) {\n gpg_error_t err ;\n char * string ;\n string = xtrymalloc ( buflen + 1 ) ;\n if ( ! string ) {\n * rbuf = NULL ;\n * rlength = 0 ;\n return gpg_error_from_syserror ( ) ;\n }\n memcpy ( string , buffer , buflen ) ;\n string [ buflen ] = 0 ;\n err = ksba_oid_from_str ( string , rbuf , rlength ) ;\n xfree ( string ) ;\n return err ;\n }"}
{"idx": 4175, "target": 0, "func": "int curl_mvsprintf ( char * buffer , const char * format , va_list ap_save ) {\n int retcode ;\n retcode = dprintf_formatf ( & buffer , storebuffer , format , ap_save ) ;\n * buffer = 0 ;\n return retcode ;\n }"}
{"idx": 4176, "target": 0, "func": "static BLOCK_SIZE get_nonrd_var_based_fixed_partition ( VP9_COMP * cpi , int mi_row , int mi_col ) {\n unsigned int var = get_sby_perpixel_diff_variance ( cpi , & cpi -> mb . plane [ 0 ] . src , mi_row , mi_col , BLOCK_64X64 ) ;\n if ( var < 4 ) return BLOCK_64X64 ;\n else if ( var < 10 ) return BLOCK_32X32 ;\n else return BLOCK_16X16 ;\n }"}
{"idx": 4177, "target": 0, "func": "static void purple_sync_settings ( account_t * acc , PurpleAccount * pa ) {\n PurplePlugin * prpl = purple_plugins_find_with_id ( pa -> protocol_id ) ;\n PurplePluginProtocolInfo * pi = prpl -> info -> extra_info ;\n GList * i ;\n for ( i = pi -> protocol_options ;\n i ;\n i = i -> next ) {\n PurpleAccountOption * o = i -> data ;\n const char * name ;\n set_t * s ;\n name = purple_account_option_get_setting ( o ) ;\n s = set_find ( & acc -> set , name ) ;\n if ( s -> value == NULL ) {\n continue ;\n }\n switch ( purple_account_option_get_type ( o ) ) {\n case PURPLE_PREF_STRING : case PURPLE_PREF_STRING_LIST : purple_account_set_string ( pa , name , set_getstr ( & acc -> set , name ) ) ;\n break ;\n case PURPLE_PREF_INT : purple_account_set_int ( pa , name , set_getint ( & acc -> set , name ) ) ;\n break ;\n case PURPLE_PREF_BOOLEAN : purple_account_set_bool ( pa , name , set_getbool ( & acc -> set , name ) ) ;\n break ;\n default : break ;\n }\n }\n if ( pi -> options & OPT_PROTO_MAIL_CHECK ) {\n purple_account_set_check_mail ( pa , set_getbool ( & acc -> set , \"mail_notifications\" ) ) ;\n }\n }"}
{"idx": 4178, "target": 0, "func": "static int dissect_h245_Cmd_errorCorrection ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_Cmd_errorCorrection , Cmd_errorCorrection_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 4179, "target": 0, "func": "static size_t read_uncompressed_header ( VP9Decoder * pbi , struct vp9_read_bit_buffer * rb ) {\n VP9_COMMON * const cm = & pbi -> common ;\n size_t sz ;\n int i ;\n cm -> last_frame_type = cm -> frame_type ;\n if ( vp9_rb_read_literal ( rb , 2 ) != VP9_FRAME_MARKER ) vpx_internal_error ( & cm -> error , VPX_CODEC_UNSUP_BITSTREAM , \"Invalid frame marker\" ) ;\n cm -> profile = read_profile ( rb ) ;\n if ( cm -> profile >= MAX_PROFILES ) vpx_internal_error ( & cm -> error , VPX_CODEC_UNSUP_BITSTREAM , \"Unsupported bitstream profile\" ) ;\n cm -> show_existing_frame = vp9_rb_read_bit ( rb ) ;\n if ( cm -> show_existing_frame ) {\n const int frame_to_show = cm -> ref_frame_map [ vp9_rb_read_literal ( rb , 3 ) ] ;\n if ( frame_to_show < 0 || cm -> frame_bufs [ frame_to_show ] . ref_count < 1 ) vpx_internal_error ( & cm -> error , VPX_CODEC_UNSUP_BITSTREAM , \"Buffer %d does not contain a decoded frame\" , frame_to_show ) ;\n ref_cnt_fb ( cm -> frame_bufs , & cm -> new_fb_idx , frame_to_show ) ;\n pbi -> refresh_frame_flags = 0 ;\n cm -> lf . filter_level = 0 ;\n cm -> show_frame = 1 ;\n return 0 ;\n }\n cm -> frame_type = ( FRAME_TYPE ) vp9_rb_read_bit ( rb ) ;\n cm -> show_frame = vp9_rb_read_bit ( rb ) ;\n cm -> error_resilient_mode = vp9_rb_read_bit ( rb ) ;\n if ( cm -> frame_type == KEY_FRAME ) {\n if ( ! vp9_read_sync_code ( rb ) ) vpx_internal_error ( & cm -> error , VPX_CODEC_UNSUP_BITSTREAM , \"Invalid frame sync code\" ) ;\n if ( cm -> profile > PROFILE_1 ) cm -> bit_depth = vp9_rb_read_bit ( rb ) ? BITS_12 : BITS_10 ;\n cm -> color_space = ( COLOR_SPACE ) vp9_rb_read_literal ( rb , 3 ) ;\n if ( cm -> color_space != SRGB ) {\n vp9_rb_read_bit ( rb ) ;\n if ( cm -> profile >= PROFILE_1 ) {\n cm -> subsampling_x = vp9_rb_read_bit ( rb ) ;\n cm -> subsampling_y = vp9_rb_read_bit ( rb ) ;\n vp9_rb_read_bit ( rb ) ;\n }\n else {\n cm -> subsampling_y = cm -> subsampling_x = 1 ;\n }\n }\n else {\n if ( cm -> profile >= PROFILE_1 ) {\n cm -> subsampling_y = cm -> subsampling_x = 0 ;\n vp9_rb_read_bit ( rb ) ;\n }\n else {\n vpx_internal_error ( & cm -> error , VPX_CODEC_UNSUP_BITSTREAM , \"RGB not supported in profile 0\" ) ;\n }\n }\n pbi -> refresh_frame_flags = ( 1 << REF_FRAMES ) - 1 ;\n for ( i = 0 ;\n i < REFS_PER_FRAME ;\n ++ i ) {\n cm -> frame_refs [ i ] . idx = cm -> new_fb_idx ;\n cm -> frame_refs [ i ] . buf = get_frame_new_buffer ( cm ) ;\n }\n setup_frame_size ( cm , rb ) ;\n }\n else {\n cm -> intra_only = cm -> show_frame ? 0 : vp9_rb_read_bit ( rb ) ;\n cm -> reset_frame_context = cm -> error_resilient_mode ? : vp9_rb_read_literal ( rb , 2 ) ;\n if ( cm -> intra_only ) {\n if ( ! vp9_read_sync_code ( rb ) ) vpx_internal_error ( & cm -> error , VPX_CODEC_UNSUP_BITSTREAM , \"Invalid frame sync code\" ) ;\n pbi -> refresh_frame_flags = vp9_rb_read_literal ( rb , REF_FRAMES ) ;\n cm -> color_space = BT_601 ;\n cm -> subsampling_y = cm -> subsampling_x = 1 ;\n setup_frame_size ( cm , rb ) ;\n }\n else {\n pbi -> refresh_frame_flags = vp9_rb_read_literal ( rb , REF_FRAMES ) ;\n for ( i = 0 ;\n i < REFS_PER_FRAME ;\n ++ i ) {\n const int ref = vp9_rb_read_literal ( rb , REF_FRAMES_LOG2 ) ;\n const int idx = cm -> ref_frame_map [ ref ] ;\n RefBuffer * const ref_frame = & cm -> frame_refs [ i ] ;\n ref_frame -> idx = idx ;\n ref_frame -> buf = & cm -> frame_bufs [ idx ] . buf ;\n cm -> ref_frame_sign_bias [ LAST_FRAME + i ] = vp9_rb_read_bit ( rb ) ;\n }\n setup_frame_size_with_refs ( cm , rb ) ;\n cm -> allow_high_precision_mv = vp9_rb_read_bit ( rb ) ;\n cm -> interp_filter = read_interp_filter ( rb ) ;\n for ( i = 0 ;\n i < REFS_PER_FRAME ;\n ++ i ) {\n RefBuffer * const ref_buf = & cm -> frame_refs [ i ] ;\n vp9_setup_scale_factors_for_frame ( & ref_buf -> sf , ref_buf -> buf -> y_crop_width , ref_buf -> buf -> y_crop_height , cm -> width , cm -> height ) ;\n if ( vp9_is_scaled ( & ref_buf -> sf ) ) vp9_extend_frame_borders ( ref_buf -> buf ) ;\n }\n }\n }\n if ( ! cm -> error_resilient_mode ) {\n cm -> coding_use_prev_mi = 1 ;\n cm -> refresh_frame_context = vp9_rb_read_bit ( rb ) ;\n cm -> frame_parallel_decoding_mode = vp9_rb_read_bit ( rb ) ;\n }\n else {\n cm -> coding_use_prev_mi = 0 ;\n cm -> refresh_frame_context = 0 ;\n cm -> frame_parallel_decoding_mode = 1 ;\n }\n cm -> frame_context_idx = vp9_rb_read_literal ( rb , FRAME_CONTEXTS_LOG2 ) ;\n if ( frame_is_intra_only ( cm ) || cm -> error_resilient_mode ) vp9_setup_past_independence ( cm ) ;\n setup_loopfilter ( & cm -> lf , rb ) ;\n setup_quantization ( cm , & pbi -> mb , rb ) ;\n setup_segmentation ( & cm -> seg , rb ) ;\n setup_tile_info ( cm , rb ) ;\n sz = vp9_rb_read_literal ( rb , 16 ) ;\n if ( sz == 0 ) vpx_internal_error ( & cm -> error , VPX_CODEC_CORRUPT_FRAME , \"Invalid header size\" ) ;\n return sz ;\n }"}
{"idx": 4180, "target": 0, "func": "static void remove_locks ( void ) {\n struct remote_lock * lock = repo -> locks ;\n fprintf ( stderr , \"Removing remote locks...\\n\" ) ;\n while ( lock ) {\n struct remote_lock * next = lock -> next ;\n unlock_remote ( lock ) ;\n lock = next ;\n }\n }"}
{"idx": 4181, "target": 0, "func": "void ff_h263_encode_init ( MpegEncContext * s ) {\n static int done = 0 ;\n if ( ! done ) {\n done = 1 ;\n ff_init_rl ( & ff_h263_rl_inter , ff_h263_static_rl_table_store [ 0 ] ) ;\n ff_init_rl ( & ff_rl_intra_aic , ff_h263_static_rl_table_store [ 1 ] ) ;\n init_uni_h263_rl_tab ( & ff_rl_intra_aic , NULL , uni_h263_intra_aic_rl_len ) ;\n init_uni_h263_rl_tab ( & ff_h263_rl_inter , NULL , uni_h263_inter_rl_len ) ;\n init_mv_penalty_and_fcode ( s ) ;\n }\n s -> me . mv_penalty = mv_penalty ;\n s -> intra_ac_vlc_length = s -> inter_ac_vlc_length = uni_h263_inter_rl_len ;\n s -> intra_ac_vlc_last_length = s -> inter_ac_vlc_last_length = uni_h263_inter_rl_len + 128 * 64 ;\n if ( s -> h263_aic ) {\n s -> intra_ac_vlc_length = uni_h263_intra_aic_rl_len ;\n s -> intra_ac_vlc_last_length = uni_h263_intra_aic_rl_len + 128 * 64 ;\n }\n s -> ac_esc_length = 7 + 1 + 6 + 8 ;\n switch ( s -> codec_id ) {\n case AV_CODEC_ID_MPEG4 : s -> fcode_tab = fcode_tab ;\n break ;\n case AV_CODEC_ID_H263P : if ( s -> umvplus ) s -> fcode_tab = umv_fcode_tab ;\n if ( s -> modified_quant ) {\n s -> min_qcoeff = - 2047 ;\n s -> max_qcoeff = 2047 ;\n }\n else {\n s -> min_qcoeff = - 127 ;\n s -> max_qcoeff = 127 ;\n }\n break ;\n case AV_CODEC_ID_FLV1 : if ( s -> h263_flv > 1 ) {\n s -> min_qcoeff = - 1023 ;\n s -> max_qcoeff = 1023 ;\n }\n else {\n s -> min_qcoeff = - 127 ;\n s -> max_qcoeff = 127 ;\n }\n s -> y_dc_scale_table = s -> c_dc_scale_table = ff_mpeg1_dc_scale_table ;\n break ;\n default : / othing needed - default table already set in mpegvideo . c s -> min_qcoeff = - 127 ;\n s -> max_qcoeff = 127 ;\n s -> y_dc_scale_table = s -> c_dc_scale_table = ff_mpeg1_dc_scale_table ;\n }\n }"}
{"idx": 4182, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize )"}
{"idx": 4183, "target": 0, "func": "int TSHttpTxnPushedRespHdrBytesGet ( TSHttpTxn txnp ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n return sm -> pushed_response_hdr_bytes ;\n }"}
{"idx": 4184, "target": 0, "func": "static int append_multiple_key_values ( smart_str * loc_name , HashTable * hash_arr , char * key_name TSRMLS_DC ) {\n zval * * ele_value = NULL ;\n int i = 0 ;\n int isFirstSubtag = 0 ;\n int max_value = 0 ;\n if ( zend_hash_find ( hash_arr , key_name , strlen ( key_name ) + 1 , ( void * * ) & ele_value ) == SUCCESS ) {\n if ( Z_TYPE_PP ( ele_value ) == IS_STRING ) {\n add_prefix ( loc_name , key_name ) ;\n smart_str_appendl ( loc_name , SEPARATOR , sizeof ( SEPARATOR ) - 1 ) ;\n smart_str_appendl ( loc_name , Z_STRVAL_PP ( ele_value ) , Z_STRLEN_PP ( ele_value ) ) ;\n return SUCCESS ;\n }\n else if ( Z_TYPE_PP ( ele_value ) == IS_ARRAY ) {\n HashPosition pos ;\n HashTable * arr = HASH_OF ( * ele_value ) ;\n zval * * data = NULL ;\n zend_hash_internal_pointer_reset_ex ( arr , & pos ) ;\n while ( zend_hash_get_current_data_ex ( arr , ( void * * ) & data , & pos ) != FAILURE ) {\n if ( Z_TYPE_PP ( data ) != IS_STRING ) {\n return FAILURE ;\n }\n if ( isFirstSubtag ++ == 0 ) {\n add_prefix ( loc_name , key_name ) ;\n }\n smart_str_appendl ( loc_name , SEPARATOR , sizeof ( SEPARATOR ) - 1 ) ;\n smart_str_appendl ( loc_name , Z_STRVAL_PP ( data ) , Z_STRLEN_PP ( data ) ) ;\n zend_hash_move_forward_ex ( arr , & pos ) ;\n }\n return SUCCESS ;\n }\n else {\n return FAILURE ;\n }\n }\n else {\n char cur_key_name [ 31 ] ;\n if ( strcmp ( key_name , LOC_VARIANT_TAG ) == 0 ) {\n max_value = MAX_NO_VARIANT ;\n }\n if ( strcmp ( key_name , LOC_EXTLANG_TAG ) == 0 ) {\n max_value = MAX_NO_EXTLANG ;\n }\n if ( strcmp ( key_name , LOC_PRIVATE_TAG ) == 0 ) {\n max_value = MAX_NO_PRIVATE ;\n }\n isFirstSubtag = 0 ;\n for ( i = 0 ;\n i < max_value ;\n i ++ ) {\n snprintf ( cur_key_name , 30 , \"%s%d\" , key_name , i ) ;\n if ( zend_hash_find ( hash_arr , cur_key_name , strlen ( cur_key_name ) + 1 , ( void * * ) & ele_value ) == SUCCESS ) {\n if ( Z_TYPE_PP ( ele_value ) != IS_STRING ) {\n return FAILURE ;\n }\n if ( isFirstSubtag ++ == 0 ) {\n add_prefix ( loc_name , cur_key_name ) ;\n }\n smart_str_appendl ( loc_name , SEPARATOR , sizeof ( SEPARATOR ) - 1 ) ;\n smart_str_appendl ( loc_name , Z_STRVAL_PP ( ele_value ) , Z_STRLEN_PP ( ele_value ) ) ;\n }\n }\n }\n return SUCCESS ;\n }"}
{"idx": 4185, "target": 0, "func": "static void test_bug11766854 ( ) {\n struct st_mysql_client_plugin * plugin ;\n DBUG_ENTER ( \"test_bug11766854\" ) ;\n myheader ( \"test_bug11766854\" ) ;\n plugin = mysql_load_plugin ( mysql , \"foo\" , - 1 , 0 ) ;\n DIE_UNLESS ( plugin == 0 ) ;\n plugin = mysql_load_plugin ( mysql , \"qa_auth_client\" , - 1 , 0 ) ;\n DIE_UNLESS ( plugin != 0 ) ;\n DIE_IF ( mysql_errno ( mysql ) ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 4186, "target": 0, "func": "static int dissect_rsl_ie_tfo_status ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_tree * ie_tree ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_TFO_STATUS ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_ie_tfo_status , NULL , \"TFO Status IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_tfo , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n return offset ;\n }"}
{"idx": 4187, "target": 0, "func": "kadm5_ret_t kadm5_decrypt_key ( void * server_handle , kadm5_principal_ent_t entry , krb5_int32 ktype , krb5_int32 stype , krb5_int32 kvno , krb5_keyblock * keyblock , krb5_keysalt * keysalt , int * kvnop ) {\n kadm5_server_handle_t handle = server_handle ;\n krb5_db_entry dbent ;\n krb5_key_data * key_data ;\n krb5_keyblock * mkey_ptr ;\n int ret ;\n CHECK_HANDLE ( server_handle ) ;\n if ( entry -> n_key_data == 0 || entry -> key_data == NULL ) return EINVAL ;\n dbent . n_key_data = entry -> n_key_data ;\n dbent . key_data = entry -> key_data ;\n if ( ( ret = krb5_dbe_find_enctype ( handle -> context , & dbent , ktype , stype , kvno , & key_data ) ) ) return ret ;\n dbent . tl_data = entry -> tl_data ;\n if ( ( ret = krb5_dbe_find_mkey ( handle -> context , & dbent , & mkey_ptr ) ) ) {\n if ( krb5_db_fetch_mkey_list ( handle -> context , master_princ , & master_keyblock ) == 0 ) {\n if ( ( ret = krb5_dbe_find_mkey ( handle -> context , & dbent , & mkey_ptr ) ) ) {\n return ret ;\n }\n }\n else {\n return ret ;\n }\n }\n if ( ( ret = krb5_dbe_decrypt_key_data ( handle -> context , NULL , key_data , keyblock , keysalt ) ) ) return ret ;\n if ( ktype != - 1 ) keyblock -> enctype = ktype ;\n if ( kvnop ) * kvnop = key_data -> key_data_kvno ;\n return KADM5_OK ;\n }"}
{"idx": 4188, "target": 0, "func": "static void prepare_avpic ( MimicContext * ctx , AVPicture * dst , AVFrame * src ) {\n int i ;\n dst -> data [ 0 ] = src -> data [ 0 ] + ( ctx -> avctx -> height - 1 ) * src -> linesize [ 0 ] ;\n dst -> data [ 1 ] = src -> data [ 2 ] + ( ( ctx -> avctx -> height >> 1 ) - 1 ) * src -> linesize [ 2 ] ;\n dst -> data [ 2 ] = src -> data [ 1 ] + ( ( ctx -> avctx -> height >> 1 ) - 1 ) * src -> linesize [ 1 ] ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) dst -> linesize [ i ] = - src -> linesize [ i ] ;\n }"}
{"idx": 4189, "target": 0, "func": "static void sig_window_print_info ( WINDOW_REC * win ) {\n GUI_WINDOW_REC * gui ;\n gui = WINDOW_GUI ( win ) ;\n if ( gui -> use_scroll ) {\n printformat_window ( win , MSGLEVEL_CLIENTCRAP , TXT_WINDOW_INFO_SCROLL , gui -> scroll ? \"yes\" : \"no\" ) ;\n }\n if ( WINDOW_MAIN ( win ) -> sticky_windows ) windows_print_sticky ( win ) ;\n }"}
{"idx": 4190, "target": 0, "func": "static void dissect_applemidi ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree ) {\n guint16 command ;\n if ( test_applemidi ( tvb , & command , TRUE ) ) dissect_applemidi_common ( tvb , pinfo , tree , command ) ;\n else call_dissector ( rtp_handle , tvb , pinfo , tree ) ;\n }"}
{"idx": 4191, "target": 0, "func": "void bn_mul_comba8 ( BN_ULONG * r , BN_ULONG * a , BN_ULONG * b ) {\n BN_ULONG c1 , c2 , c3 ;\n c1 = 0 ;\n c2 = 0 ;\n c3 = 0 ;\n mul_add_c ( a [ 0 ] , b [ 0 ] , c1 , c2 , c3 ) ;\n r [ 0 ] = c1 ;\n c1 = 0 ;\n mul_add_c ( a [ 0 ] , b [ 1 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 1 ] , b [ 0 ] , c2 , c3 , c1 ) ;\n r [ 1 ] = c2 ;\n c2 = 0 ;\n mul_add_c ( a [ 2 ] , b [ 0 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 1 ] , b [ 1 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 0 ] , b [ 2 ] , c3 , c1 , c2 ) ;\n r [ 2 ] = c3 ;\n c3 = 0 ;\n mul_add_c ( a [ 0 ] , b [ 3 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 1 ] , b [ 2 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 2 ] , b [ 1 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 3 ] , b [ 0 ] , c1 , c2 , c3 ) ;\n r [ 3 ] = c1 ;\n c1 = 0 ;\n mul_add_c ( a [ 4 ] , b [ 0 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 3 ] , b [ 1 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 2 ] , b [ 2 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 1 ] , b [ 3 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 0 ] , b [ 4 ] , c2 , c3 , c1 ) ;\n r [ 4 ] = c2 ;\n c2 = 0 ;\n mul_add_c ( a [ 0 ] , b [ 5 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 1 ] , b [ 4 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 2 ] , b [ 3 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 3 ] , b [ 2 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 4 ] , b [ 1 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 5 ] , b [ 0 ] , c3 , c1 , c2 ) ;\n r [ 5 ] = c3 ;\n c3 = 0 ;\n mul_add_c ( a [ 6 ] , b [ 0 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 5 ] , b [ 1 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 4 ] , b [ 2 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 3 ] , b [ 3 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 2 ] , b [ 4 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 1 ] , b [ 5 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 0 ] , b [ 6 ] , c1 , c2 , c3 ) ;\n r [ 6 ] = c1 ;\n c1 = 0 ;\n mul_add_c ( a [ 0 ] , b [ 7 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 1 ] , b [ 6 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 2 ] , b [ 5 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 3 ] , b [ 4 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 4 ] , b [ 3 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 5 ] , b [ 2 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 6 ] , b [ 1 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 7 ] , b [ 0 ] , c2 , c3 , c1 ) ;\n r [ 7 ] = c2 ;\n c2 = 0 ;\n mul_add_c ( a [ 7 ] , b [ 1 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 6 ] , b [ 2 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 5 ] , b [ 3 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 4 ] , b [ 4 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 3 ] , b [ 5 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 2 ] , b [ 6 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 1 ] , b [ 7 ] , c3 , c1 , c2 ) ;\n r [ 8 ] = c3 ;\n c3 = 0 ;\n mul_add_c ( a [ 2 ] , b [ 7 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 3 ] , b [ 6 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 4 ] , b [ 5 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 5 ] , b [ 4 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 6 ] , b [ 3 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 7 ] , b [ 2 ] , c1 , c2 , c3 ) ;\n r [ 9 ] = c1 ;\n c1 = 0 ;\n mul_add_c ( a [ 7 ] , b [ 3 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 6 ] , b [ 4 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 5 ] , b [ 5 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 4 ] , b [ 6 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 3 ] , b [ 7 ] , c2 , c3 , c1 ) ;\n r [ 10 ] = c2 ;\n c2 = 0 ;\n mul_add_c ( a [ 4 ] , b [ 7 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 5 ] , b [ 6 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 6 ] , b [ 5 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 7 ] , b [ 4 ] , c3 , c1 , c2 ) ;\n r [ 11 ] = c3 ;\n c3 = 0 ;\n mul_add_c ( a [ 7 ] , b [ 5 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 6 ] , b [ 6 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 5 ] , b [ 7 ] , c1 , c2 , c3 ) ;\n r [ 12 ] = c1 ;\n c1 = 0 ;\n mul_add_c ( a [ 6 ] , b [ 7 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 7 ] , b [ 6 ] , c2 , c3 , c1 ) ;\n r [ 13 ] = c2 ;\n c2 = 0 ;\n mul_add_c ( a [ 7 ] , b [ 7 ] , c3 , c1 , c2 ) ;\n r [ 14 ] = c3 ;\n r [ 15 ] = c1 ;\n }"}
{"idx": 4192, "target": 0, "func": "static void handle_transform ( TSCont contp ) {\n TSVConn output_conn ;\n TSVIO write_vio ;\n int64_t towrite ;\n int64_t avail ;\n output_conn = TSTransformOutputVConnGet ( contp ) ;\n write_vio = TSVConnWriteVIOGet ( contp ) ;\n auto * data = static_cast < AppendTransformTestData * > ( TSContDataGet ( contp ) ) ;\n if ( ! data -> output_buffer ) {\n towrite = TSVIONBytesGet ( write_vio ) ;\n if ( towrite != INT64_MAX ) {\n towrite += append_buffer_length ;\n }\n data -> output_buffer = TSIOBufferCreate ( ) ;\n data -> output_reader = TSIOBufferReaderAlloc ( data -> output_buffer ) ;\n data -> output_vio = TSVConnWrite ( output_conn , contp , data -> output_reader , towrite ) ;\n }\n ink_assert ( data -> output_vio ) ;\n if ( ! TSVIOBufferGet ( write_vio ) ) {\n if ( data -> append_needed ) {\n data -> append_needed = 0 ;\n TSIOBufferCopy ( TSVIOBufferGet ( data -> output_vio ) , append_buffer_reader , append_buffer_length , 0 ) ;\n }\n TSVIONBytesSet ( data -> output_vio , TSVIONDoneGet ( write_vio ) + append_buffer_length ) ;\n TSVIOReenable ( data -> output_vio ) ;\n return ;\n }\n towrite = TSVIONTodoGet ( write_vio ) ;\n if ( towrite > 0 ) {\n avail = TSIOBufferReaderAvail ( TSVIOReaderGet ( write_vio ) ) ;\n if ( towrite > avail ) {\n towrite = avail ;\n }\n if ( towrite > 0 ) {\n TSIOBufferCopy ( TSVIOBufferGet ( data -> output_vio ) , TSVIOReaderGet ( write_vio ) , towrite , 0 ) ;\n TSIOBufferReaderConsume ( TSVIOReaderGet ( write_vio ) , towrite ) ;\n TSVIONDoneSet ( write_vio , TSVIONDoneGet ( write_vio ) + towrite ) ;\n }\n }\n if ( TSVIONTodoGet ( write_vio ) > 0 ) {\n if ( towrite > 0 ) {\n TSVIOReenable ( data -> output_vio ) ;\n TSContCall ( TSVIOContGet ( write_vio ) , TS_EVENT_VCONN_WRITE_READY , write_vio ) ;\n }\n }\n else {\n if ( data -> append_needed ) {\n data -> append_needed = 0 ;\n TSIOBufferCopy ( TSVIOBufferGet ( data -> output_vio ) , append_buffer_reader , append_buffer_length , 0 ) ;\n }\n TSVIONBytesSet ( data -> output_vio , TSVIONDoneGet ( write_vio ) + append_buffer_length ) ;\n TSVIOReenable ( data -> output_vio ) ;\n TSContCall ( TSVIOContGet ( write_vio ) , TS_EVENT_VCONN_WRITE_COMPLETE , write_vio ) ;\n }\n }"}
{"idx": 4193, "target": 0, "func": "static __inline__ __u32 __fswab32 ( __u32 val ) {\n # if defined ( __arch_swab32 ) return __arch_swab32 ( val ) ;\n # else return ___constant_swab32 ( val ) ;\n # endif }"}
{"idx": 4194, "target": 1, "func": "static int compress_bidder_bid ( struct archive_read_filter_bidder * self , struct archive_read_filter * filter ) {\n const unsigned char * buffer ;\n ssize_t avail ;\n int bits_checked ;\n ( void ) self ;\n buffer = __archive_read_filter_ahead ( filter , 2 , & avail ) ;\n if ( buffer == NULL ) return ( 0 ) ;\n bits_checked = 0 ;\n if ( buffer [ 0 ] != 0x1F || buffer [ 1 ] != 0x9D ) return ( 0 ) ;\n bits_checked += 16 ;\n return ( bits_checked ) ;\n }"}
{"idx": 4195, "target": 0, "func": "static int selinux_task_getpgid ( struct task_struct * p ) {\n return current_has_perm ( p , PROCESS__GETPGID ) ;\n }"}
{"idx": 4196, "target": 0, "func": "static void lab_to_rgb ( fz_context * ctx , const fz_colorspace * cs , const float * lab , float * rgb ) {\n float lstar , astar , bstar , l , m , n , x , y , z , r , g , b ;\n lstar = lab [ 0 ] ;\n astar = lab [ 1 ] ;\n bstar = lab [ 2 ] ;\n m = ( lstar + 16 ) / 116 ;\n l = m + astar / 500 ;\n n = m - bstar / 200 ;\n x = fung ( l ) ;\n y = fung ( m ) ;\n z = fung ( n ) ;\n r = ( 3.240449f * x + - 1.537136f * y + - 0.498531f * z ) * 0.830026f ;\n g = ( - 0.969265f * x + 1.876011f * y + 0.041556f * z ) * 1.05452f ;\n b = ( 0.055643f * x + - 0.204026f * y + 1.057229f * z ) * 1.1003f ;\n rgb [ 0 ] = sqrtf ( fz_clamp ( r , 0 , 1 ) ) ;\n rgb [ 1 ] = sqrtf ( fz_clamp ( g , 0 , 1 ) ) ;\n rgb [ 2 ] = sqrtf ( fz_clamp ( b , 0 , 1 ) ) ;\n }"}
{"idx": 4197, "target": 0, "func": "static uchar * check_get_key ( ACL_USER * buff , size_t * length , my_bool not_used __attribute__ ( ( unused ) ) ) {\n * length = buff -> hostname_length ;\n return ( uchar * ) buff -> host . hostname ;\n }"}
{"idx": 4198, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( HttpsEngagementPageLoadMetricsBrowserTest , Simple_Http ) {\n StartHttpServer ( ) ;\n base : : TimeDelta upper_bound = NavigateInForegroundAndCloseWithTiming ( http_test_server_ -> GetURL ( \"/simple.html\" ) ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpEngagementHistogram , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementHistogram , 0 ) ;\n int32_t bucket_min = histogram_tester_ . GetAllSamples ( internal : : kHttpEngagementHistogram ) [ 0 ] . min ;\n EXPECT_GE ( upper_bound . InMilliseconds ( ) , bucket_min ) ;\n EXPECT_LT ( 0 , bucket_min ) ;\n FakeUserMetricsUpload ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementSessionPercentage , 1 ) ;\n int32_t ratio_bucket = histogram_tester_ . GetAllSamples ( internal : : kHttpsEngagementSessionPercentage ) [ 0 ] . min ;\n EXPECT_EQ ( 0 , ratio_bucket ) ;\n }"}
{"idx": 4199, "target": 0, "func": "static void processStdStringsEntry ( ArchiveHandle * AH , TocEntry * te ) {\n char * ptr1 ;\n ptr1 = strchr ( te -> defn , '\\'' ) ;\n if ( ptr1 && strncmp ( ptr1 , \"'on'\" , 4 ) == 0 ) AH -> public . std_strings = true ;\n else if ( ptr1 && strncmp ( ptr1 , \"'off'\" , 5 ) == 0 ) AH -> public . std_strings = false ;\n else exit_horribly ( modulename , \"invalid STDSTRINGS item: %s\\n\" , te -> defn ) ;\n }"}
{"idx": 4200, "target": 0, "func": "afs_int32 SPR_ListMax ( struct rx_call * call , afs_int32 * uid , afs_int32 * gid ) {\n afs_int32 code ;\n code = listMax ( call , uid , gid ) ;\n osi_auditU ( call , PTS_LstMaxEvent , code , AUD_END ) ;\n ViceLog ( 125 , ( \"PTS_ListMax: code %d\\n\" , code ) ) ;\n return code ;\n }"}
{"idx": 4201, "target": 0, "func": "static int save_int_value_in_field ( Field * field , longlong nr , bool null_value , bool unsigned_flag ) {\n if ( null_value ) return set_field_to_null ( field ) ;\n field -> set_notnull ( ) ;\n return field -> store ( nr , unsigned_flag ) ;\n }"}
{"idx": 4202, "target": 0, "func": "int mime_mem_print ( const char * src_d , int src_l , char * buf_start , int buf_length , int * buf_index_inout , int * buf_chars_to_skip_inout ) {\n int copy_l ;\n if ( buf_start == nullptr ) {\n ink_release_assert ( buf_index_inout == nullptr ) ;\n ink_release_assert ( buf_chars_to_skip_inout == nullptr ) ;\n while ( src_l -- ) {\n putchar ( * src_d ++ ) ;\n }\n return 1 ;\n }\n ink_assert ( buf_start != nullptr ) ;\n ink_assert ( src_d != nullptr ) ;\n if ( * buf_chars_to_skip_inout > 0 ) {\n if ( * buf_chars_to_skip_inout >= src_l ) {\n * buf_chars_to_skip_inout -= src_l ;\n return 1 ;\n }\n else {\n src_l -= * buf_chars_to_skip_inout ;\n src_d += * buf_chars_to_skip_inout ;\n * buf_chars_to_skip_inout = 0 ;\n }\n }\n copy_l = std : : min ( buf_length - * buf_index_inout , src_l ) ;\n if ( copy_l > 0 ) {\n memcpy ( buf_start + * buf_index_inout , src_d , copy_l ) ;\n * buf_index_inout += copy_l ;\n }\n return ( src_l == copy_l ) ;\n }"}
{"idx": 4203, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( DownloadExtensionTest , MAYBE_DownloadExtensionTest_AcceptDanger ) {\n LoadExtension ( \"downloads_split\" ) ;\n std : : unique_ptr < base : : Value > result ( RunFunctionAndReturnResult ( new DownloadsDownloadFunction ( ) , \"[{\n\\\"url\\\": \\\"data:,\\\", \\\"filename\\\": \\\"dangerous.swf\\\"}\n]\" ) ) ;\n ASSERT_TRUE ( result . get ( ) ) ;\n int result_id = - 1 ;\n ASSERT_TRUE ( result -> GetAsInteger ( & result_id ) ) ;\n DownloadItem * item = GetCurrentManager ( ) -> GetDownload ( result_id ) ;\n ASSERT_TRUE ( item ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnChanged : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d, \" \" \\\"danger\\\": {\n\" \" \\\"previous\\\": \\\"safe\\\",\" \" \\\"current\\\": \\\"file\\\"}\n}\n]\" , result_id ) ) ) ;\n ASSERT_TRUE ( item -> IsDangerous ( ) ) ;\n ScopedCancellingItem canceller ( item ) ;\n std : : unique_ptr < content : : DownloadTestObserver > observer ( new content : : DownloadTestObserverTerminal ( GetCurrentManager ( ) , 1 , content : : DownloadTestObserver : : ON_DANGEROUS_DOWNLOAD_IGNORE ) ) ;\n DownloadsAcceptDangerFunction : : OnPromptCreatedCallback callback = base : : Bind ( & OnDangerPromptCreated ) ;\n DownloadsAcceptDangerFunction : : OnPromptCreatedForTesting ( & callback ) ;\n BrowserActionTestUtil : : Create ( browser ( ) ) -> Press ( 0 ) ;\n observer -> WaitForFinished ( ) ;\n }"}
{"idx": 4204, "target": 0, "func": "int mvfprintf ( FILE * fp , const char * fmt , va_list ap ) {\n # ifndef VSNPRINTF_PERCENT_M char nfmt [ 256 ] ;\n # else const char * nfmt = fmt ;\n # endif int errval ;\n # ifdef SYS_WINNT errval = GetLastError ( ) ;\n if ( NO_ERROR == errval ) # endif errval = errno ;\n # ifndef VSNPRINTF_PERCENT_M format_errmsg ( nfmt , sizeof ( nfmt ) , fmt , errval ) ;\n # else errno = errval ;\n # endif return vfprintf ( fp , nfmt , ap ) ;\n }"}
{"idx": 4205, "target": 0, "func": "static struct berval * * krb5_encode_krbsecretkey ( krb5_key_data * key_data_in , int n_key_data , krb5_kvno mkvno ) {\n struct berval * * ret = NULL ;\n int currkvno ;\n int num_versions = 1 ;\n int i , j , last ;\n krb5_error_code err = 0 ;\n krb5_key_data * key_data ;\n if ( n_key_data <= 0 ) return NULL ;\n key_data = k5calloc ( n_key_data , sizeof ( * key_data ) , & err ) ;\n if ( key_data_in == NULL ) goto cleanup ;\n memcpy ( key_data , key_data_in , n_key_data * sizeof ( * key_data ) ) ;\n for ( i = 0 ;\n i < n_key_data ;\n i ++ ) {\n if ( key_data [ i ] . key_data_ver == 1 ) {\n key_data [ i ] . key_data_ver = 2 ;\n key_data [ i ] . key_data_type [ 1 ] = KRB5_KDB_SALTTYPE_NORMAL ;\n key_data [ i ] . key_data_length [ 1 ] = 0 ;\n key_data [ i ] . key_data_contents [ 1 ] = NULL ;\n }\n }\n for ( i = 0 ;\n i < n_key_data - 1 ;\n i ++ ) if ( key_data [ i ] . key_data_kvno != key_data [ i + 1 ] . key_data_kvno ) num_versions ++ ;\n ret = ( struct berval * * ) calloc ( num_versions + 1 , sizeof ( struct berval * ) ) ;\n if ( ret == NULL ) {\n err = ENOMEM ;\n goto cleanup ;\n }\n for ( i = 0 , last = 0 , j = 0 , currkvno = key_data [ 0 ] . key_data_kvno ;\n i < n_key_data ;\n i ++ ) {\n krb5_data * code ;\n if ( i == n_key_data - 1 || key_data [ i + 1 ] . key_data_kvno != currkvno ) {\n ret [ j ] = k5alloc ( sizeof ( struct berval ) , & err ) ;\n if ( ret [ j ] == NULL ) goto cleanup ;\n err = asn1_encode_sequence_of_keys ( key_data + last , ( krb5_int16 ) i - last + 1 , mkvno , & code ) ;\n if ( err ) goto cleanup ;\n ret [ j ] -> bv_len = code -> length ;\n ret [ j ] -> bv_val = code -> data ;\n free ( code ) ;\n j ++ ;\n last = i + 1 ;\n if ( i < n_key_data - 1 ) currkvno = key_data [ i + 1 ] . key_data_kvno ;\n }\n }\n ret [ num_versions ] = NULL ;\n cleanup : free ( key_data ) ;\n if ( err != 0 ) {\n if ( ret != NULL ) {\n for ( i = 0 ;\n i <= num_versions ;\n i ++ ) if ( ret [ i ] != NULL ) free ( ret [ i ] ) ;\n free ( ret ) ;\n ret = NULL ;\n }\n }\n return ret ;\n }"}
{"idx": 4206, "target": 0, "func": "static int dissect_h245_MediaTransportType ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_MediaTransportType , MediaTransportType_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 4207, "target": 0, "func": "static gcry_err_code_t pubkey_generate ( int algorithm , unsigned int nbits , unsigned long use_e , gcry_sexp_t genparms , gcry_mpi_t * skey , gcry_mpi_t * * retfactors , gcry_sexp_t * r_extrainfo ) {\n gcry_err_code_t ec = GPG_ERR_PUBKEY_ALGO ;\n gcry_module_t pubkey ;\n REGISTER_DEFAULT_PUBKEYS ;\n ath_mutex_lock ( & pubkeys_registered_lock ) ;\n pubkey = _gcry_module_lookup_id ( pubkeys_registered , algorithm ) ;\n if ( pubkey ) {\n pk_extra_spec_t * extraspec = pubkey -> extraspec ;\n if ( extraspec && extraspec -> ext_generate ) {\n ec = extraspec -> ext_generate ( algorithm , nbits , use_e , genparms , skey , retfactors , r_extrainfo ) ;\n }\n else {\n ec = ( ( gcry_pk_spec_t * ) pubkey -> spec ) -> generate ( algorithm , nbits , use_e , skey , retfactors ) ;\n }\n _gcry_module_release ( pubkey ) ;\n }\n ath_mutex_unlock ( & pubkeys_registered_lock ) ;\n return ec ;\n }"}
{"idx": 4208, "target": 1, "func": "static int kvm_put_msrs ( X86CPU * cpu , int level ) {\n CPUX86State * env = & cpu -> env ;\n int i ;\n int ret ;\n kvm_msr_buf_reset ( cpu ) ;\n kvm_msr_entry_add ( cpu , MSR_IA32_SYSENTER_CS , env -> sysenter_cs ) ;\n kvm_msr_entry_add ( cpu , MSR_IA32_SYSENTER_ESP , env -> sysenter_esp ) ;\n kvm_msr_entry_add ( cpu , MSR_IA32_SYSENTER_EIP , env -> sysenter_eip ) ;\n kvm_msr_entry_add ( cpu , MSR_PAT , env -> pat ) ;\n if ( has_msr_star ) {\n kvm_msr_entry_add ( cpu , MSR_STAR , env -> star ) ;\n }\n if ( has_msr_hsave_pa ) {\n kvm_msr_entry_add ( cpu , MSR_VM_HSAVE_PA , env -> vm_hsave ) ;\n }\n if ( has_msr_tsc_aux ) {\n kvm_msr_entry_add ( cpu , MSR_TSC_AUX , env -> tsc_aux ) ;\n }\n if ( has_msr_tsc_adjust ) {\n kvm_msr_entry_add ( cpu , MSR_TSC_ADJUST , env -> tsc_adjust ) ;\n }\n if ( has_msr_misc_enable ) {\n kvm_msr_entry_add ( cpu , MSR_IA32_MISC_ENABLE , env -> msr_ia32_misc_enable ) ;\n }\n if ( has_msr_smbase ) {\n kvm_msr_entry_add ( cpu , MSR_IA32_SMBASE , env -> smbase ) ;\n }\n if ( has_msr_smi_count ) {\n kvm_msr_entry_add ( cpu , MSR_SMI_COUNT , env -> msr_smi_count ) ;\n }\n if ( has_msr_bndcfgs ) {\n kvm_msr_entry_add ( cpu , MSR_IA32_BNDCFGS , env -> msr_bndcfgs ) ;\n }\n if ( has_msr_xss ) {\n kvm_msr_entry_add ( cpu , MSR_IA32_XSS , env -> xss ) ;\n }\n if ( has_msr_spec_ctrl ) {\n kvm_msr_entry_add ( cpu , MSR_IA32_SPEC_CTRL , env -> spec_ctrl ) ;\n }\n # ifdef TARGET_X86_64 if ( lm_capable_kernel ) {\n kvm_msr_entry_add ( cpu , MSR_CSTAR , env -> cstar ) ;\n kvm_msr_entry_add ( cpu , MSR_KERNELGSBASE , env -> kernelgsbase ) ;\n kvm_msr_entry_add ( cpu , MSR_FMASK , env -> fmask ) ;\n kvm_msr_entry_add ( cpu , MSR_LSTAR , env -> lstar ) ;\n }\n # endif if ( level >= KVM_PUT_RESET_STATE ) {\n kvm_msr_entry_add ( cpu , MSR_IA32_TSC , env -> tsc ) ;\n kvm_msr_entry_add ( cpu , MSR_KVM_SYSTEM_TIME , env -> system_time_msr ) ;\n kvm_msr_entry_add ( cpu , MSR_KVM_WALL_CLOCK , env -> wall_clock_msr ) ;\n if ( env -> features [ FEAT_KVM ] & ( 1 << KVM_FEATURE_ASYNC_PF ) ) {\n kvm_msr_entry_add ( cpu , MSR_KVM_ASYNC_PF_EN , env -> async_pf_en_msr ) ;\n }\n if ( env -> features [ FEAT_KVM ] & ( 1 << KVM_FEATURE_PV_EOI ) ) {\n kvm_msr_entry_add ( cpu , MSR_KVM_PV_EOI_EN , env -> pv_eoi_en_msr ) ;\n }\n if ( env -> features [ FEAT_KVM ] & ( 1 << KVM_FEATURE_STEAL_TIME ) ) {\n kvm_msr_entry_add ( cpu , MSR_KVM_STEAL_TIME , env -> steal_time_msr ) ;\n }\n if ( has_architectural_pmu_version > 0 ) {\n if ( has_architectural_pmu_version > 1 ) {\n kvm_msr_entry_add ( cpu , MSR_CORE_PERF_FIXED_CTR_CTRL , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_CORE_PERF_GLOBAL_CTRL , 0 ) ;\n }\n for ( i = 0 ;\n i < num_architectural_pmu_fixed_counters ;\n i ++ ) {\n kvm_msr_entry_add ( cpu , MSR_CORE_PERF_FIXED_CTR0 + i , env -> msr_fixed_counters [ i ] ) ;\n }\n for ( i = 0 ;\n i < num_architectural_pmu_gp_counters ;\n i ++ ) {\n kvm_msr_entry_add ( cpu , MSR_P6_PERFCTR0 + i , env -> msr_gp_counters [ i ] ) ;\n kvm_msr_entry_add ( cpu , MSR_P6_EVNTSEL0 + i , env -> msr_gp_evtsel [ i ] ) ;\n }\n if ( has_architectural_pmu_version > 1 ) {\n kvm_msr_entry_add ( cpu , MSR_CORE_PERF_GLOBAL_STATUS , env -> msr_global_status ) ;\n kvm_msr_entry_add ( cpu , MSR_CORE_PERF_GLOBAL_OVF_CTRL , env -> msr_global_ovf_ctrl ) ;\n kvm_msr_entry_add ( cpu , MSR_CORE_PERF_FIXED_CTR_CTRL , env -> msr_fixed_ctr_ctrl ) ;\n kvm_msr_entry_add ( cpu , MSR_CORE_PERF_GLOBAL_CTRL , env -> msr_global_ctrl ) ;\n }\n }\n if ( current_cpu == first_cpu ) {\n if ( has_msr_hv_hypercall ) {\n kvm_msr_entry_add ( cpu , HV_X64_MSR_GUEST_OS_ID , env -> msr_hv_guest_os_id ) ;\n kvm_msr_entry_add ( cpu , HV_X64_MSR_HYPERCALL , env -> msr_hv_hypercall ) ;\n }\n if ( cpu -> hyperv_time ) {\n kvm_msr_entry_add ( cpu , HV_X64_MSR_REFERENCE_TSC , env -> msr_hv_tsc ) ;\n }\n if ( cpu -> hyperv_reenlightenment ) {\n kvm_msr_entry_add ( cpu , HV_X64_MSR_REENLIGHTENMENT_CONTROL , env -> msr_hv_reenlightenment_control ) ;\n kvm_msr_entry_add ( cpu , HV_X64_MSR_TSC_EMULATION_CONTROL , env -> msr_hv_tsc_emulation_control ) ;\n kvm_msr_entry_add ( cpu , HV_X64_MSR_TSC_EMULATION_STATUS , env -> msr_hv_tsc_emulation_status ) ;\n }\n }\n if ( cpu -> hyperv_vapic ) {\n kvm_msr_entry_add ( cpu , HV_X64_MSR_APIC_ASSIST_PAGE , env -> msr_hv_vapic ) ;\n }\n if ( has_msr_hv_crash ) {\n int j ;\n for ( j = 0 ;\n j < HV_CRASH_PARAMS ;\n j ++ ) kvm_msr_entry_add ( cpu , HV_X64_MSR_CRASH_P0 + j , env -> msr_hv_crash_params [ j ] ) ;\n kvm_msr_entry_add ( cpu , HV_X64_MSR_CRASH_CTL , HV_CRASH_CTL_NOTIFY ) ;\n }\n if ( has_msr_hv_runtime ) {\n kvm_msr_entry_add ( cpu , HV_X64_MSR_VP_RUNTIME , env -> msr_hv_runtime ) ;\n }\n if ( cpu -> hyperv_synic ) {\n int j ;\n kvm_msr_entry_add ( cpu , HV_X64_MSR_SVERSION , HV_SYNIC_VERSION ) ;\n kvm_msr_entry_add ( cpu , HV_X64_MSR_SCONTROL , env -> msr_hv_synic_control ) ;\n kvm_msr_entry_add ( cpu , HV_X64_MSR_SIEFP , env -> msr_hv_synic_evt_page ) ;\n kvm_msr_entry_add ( cpu , HV_X64_MSR_SIMP , env -> msr_hv_synic_msg_page ) ;\n for ( j = 0 ;\n j < ARRAY_SIZE ( env -> msr_hv_synic_sint ) ;\n j ++ ) {\n kvm_msr_entry_add ( cpu , HV_X64_MSR_SINT0 + j , env -> msr_hv_synic_sint [ j ] ) ;\n }\n }\n if ( has_msr_hv_stimer ) {\n int j ;\n for ( j = 0 ;\n j < ARRAY_SIZE ( env -> msr_hv_stimer_config ) ;\n j ++ ) {\n kvm_msr_entry_add ( cpu , HV_X64_MSR_STIMER0_CONFIG + j * 2 , env -> msr_hv_stimer_config [ j ] ) ;\n }\n for ( j = 0 ;\n j < ARRAY_SIZE ( env -> msr_hv_stimer_count ) ;\n j ++ ) {\n kvm_msr_entry_add ( cpu , HV_X64_MSR_STIMER0_COUNT + j * 2 , env -> msr_hv_stimer_count [ j ] ) ;\n }\n }\n if ( env -> features [ FEAT_1_EDX ] & CPUID_MTRR ) {\n uint64_t phys_mask = MAKE_64BIT_MASK ( 0 , cpu -> phys_bits ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRdefType , env -> mtrr_deftype ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRfix64K_00000 , env -> mtrr_fixed [ 0 ] ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRfix16K_80000 , env -> mtrr_fixed [ 1 ] ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRfix16K_A0000 , env -> mtrr_fixed [ 2 ] ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRfix4K_C0000 , env -> mtrr_fixed [ 3 ] ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRfix4K_C8000 , env -> mtrr_fixed [ 4 ] ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRfix4K_D0000 , env -> mtrr_fixed [ 5 ] ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRfix4K_D8000 , env -> mtrr_fixed [ 6 ] ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRfix4K_E0000 , env -> mtrr_fixed [ 7 ] ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRfix4K_E8000 , env -> mtrr_fixed [ 8 ] ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRfix4K_F0000 , env -> mtrr_fixed [ 9 ] ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRfix4K_F8000 , env -> mtrr_fixed [ 10 ] ) ;\n for ( i = 0 ;\n i < MSR_MTRRcap_VCNT ;\n i ++ ) {\n uint64_t mask = env -> mtrr_var [ i ] . mask ;\n mask &= phys_mask ;\n kvm_msr_entry_add ( cpu , MSR_MTRRphysBase ( i ) , env -> mtrr_var [ i ] . base ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRphysMask ( i ) , mask ) ;\n }\n }\n if ( env -> features [ FEAT_7_0_EBX ] & CPUID_7_0_EBX_INTEL_PT ) {\n int addr_num = kvm_arch_get_supported_cpuid ( kvm_state , 0x14 , 1 , R_EAX ) & 0x7 ;\n kvm_msr_entry_add ( cpu , MSR_IA32_RTIT_CTL , env -> msr_rtit_ctrl ) ;\n kvm_msr_entry_add ( cpu , MSR_IA32_RTIT_STATUS , env -> msr_rtit_status ) ;\n kvm_msr_entry_add ( cpu , MSR_IA32_RTIT_OUTPUT_BASE , env -> msr_rtit_output_base ) ;\n kvm_msr_entry_add ( cpu , MSR_IA32_RTIT_OUTPUT_MASK , env -> msr_rtit_output_mask ) ;\n kvm_msr_entry_add ( cpu , MSR_IA32_RTIT_CR3_MATCH , env -> msr_rtit_cr3_match ) ;\n for ( i = 0 ;\n i < addr_num ;\n i ++ ) {\n kvm_msr_entry_add ( cpu , MSR_IA32_RTIT_ADDR0_A + i , env -> msr_rtit_addrs [ i ] ) ;\n }\n }\n }\n if ( env -> mcg_cap ) {\n int i ;\n kvm_msr_entry_add ( cpu , MSR_MCG_STATUS , env -> mcg_status ) ;\n kvm_msr_entry_add ( cpu , MSR_MCG_CTL , env -> mcg_ctl ) ;\n if ( has_msr_mcg_ext_ctl ) {\n kvm_msr_entry_add ( cpu , MSR_MCG_EXT_CTL , env -> mcg_ext_ctl ) ;\n }\n for ( i = 0 ;\n i < ( env -> mcg_cap & 0xff ) * 4 ;\n i ++ ) {\n kvm_msr_entry_add ( cpu , MSR_MC0_CTL + i , env -> mce_banks [ i ] ) ;\n }\n }\n ret = kvm_vcpu_ioctl ( CPU ( cpu ) , KVM_SET_MSRS , cpu -> kvm_msr_buf ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n if ( ret < cpu -> kvm_msr_buf -> nmsrs ) {\n struct kvm_msr_entry * e = & cpu -> kvm_msr_buf -> entries [ ret ] ;\n error_report ( \"error: failed to set MSR 0x%\" PRIx32 \" to 0x%\" PRIx64 , ( uint32_t ) e -> index , ( uint64_t ) e -> data ) ;\n }\n assert ( ret == cpu -> kvm_msr_buf -> nmsrs ) ;\n return 0 ;\n }"}
{"idx": 4209, "target": 0, "func": "uint16_t lut_interp_linear16 ( uint16_t input_value , uint16_t * table , size_t length ) {\n uintptr_t value = ( input_value * ( length - 1 ) ) ;\n uint32_t upper = ( value + 65534 ) / 65535 ;\n uint32_t lower = value / 65535 ;\n uint32_t interp = value % 65535 ;\n value = ( table [ upper ] * ( interp ) + table [ lower ] * ( 65535 - interp ) ) / 65535 ;\n return value ;\n }"}
{"idx": 4210, "target": 0, "func": "static int32_t get_send_time ( ASFContext * asf , int64_t pres_time , uint64_t * offset ) {\n int i ;\n int32_t send_time = 0 ;\n * offset = asf -> data_offset + DATA_HEADER_SIZE ;\n for ( i = 0 ;\n i < asf -> next_start_sec ;\n i ++ ) {\n if ( pres_time <= asf -> index_ptr [ i ] . send_time ) break ;\n send_time = asf -> index_ptr [ i ] . send_time ;\n * offset = asf -> index_ptr [ i ] . offset ;\n }\n return send_time / 10000 ;\n }"}
{"idx": 4211, "target": 0, "func": "static int dissect_h245_T_octetString ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 851 \"../../asn1/h245/h245.cnf\" tvbuff_t * value_tvb ;\n gef_ctx_t * gefx ;\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , NO_BOUND , NO_BOUND , FALSE , & value_tvb ) ;\n gefx = gef_ctx_get ( actx -> private_data ) ;\n if ( gefx ) {\n dissector_try_string ( gef_content_dissector_table , gefx -> key , value_tvb , actx -> pinfo , tree , actx ) ;\n }\n return offset ;\n }"}
{"idx": 4212, "target": 1, "func": "SPL_METHOD ( DirectoryIterator , key ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n if ( intern -> u . dir . dirp ) {\n RETURN_LONG ( intern -> u . dir . index ) ;\n }\n else {\n RETURN_FALSE ;\n }\n }"}
{"idx": 4213, "target": 0, "func": "TEST_F ( TemplateURLTest , ExtraQueryParams ) {\n TemplateURLData data ;\n data . SetURL ( \"{\ngoogle:baseURL}\nsearch?q={\nsearchTerms}\n\" \"#{\ngoogle:originalQueryForSuggestion}\nx\" ) ;\n TemplateURL url ( data ) ;\n TemplateURLRef : : SearchTermsArgs search_terms ( ASCIIToUTF16 ( \"abc\" ) ) ;\n search_terms . original_query = ASCIIToUTF16 ( \"def\" ) ;\n search_terms . accepted_suggestion = 0 ;\n EXPECT_EQ ( \"http://www.google.com/search?q=abc#oq=def&x\" , url . url_ref ( ) . ReplaceSearchTerms ( search_terms , search_terms_data_ ) ) ;\n search_terms . append_extra_query_params = true ;\n EXPECT_EQ ( \"http://www.google.com/search?q=abc#oq=def&x\" , url . url_ref ( ) . ReplaceSearchTerms ( search_terms , search_terms_data_ ) ) ;\n base : : CommandLine : : ForCurrentProcess ( ) -> AppendSwitchASCII ( switches : : kExtraSearchQueryParams , \"a=b\" ) ;\n EXPECT_EQ ( \"http://www.google.com/search?a=b&q=abc#oq=def&x\" , url . url_ref ( ) . ReplaceSearchTerms ( search_terms , search_terms_data_ ) ) ;\n search_terms . append_extra_query_params = false ;\n EXPECT_EQ ( \"http://www.google.com/search?q=abc#oq=def&x\" , url . url_ref ( ) . ReplaceSearchTerms ( search_terms , search_terms_data_ ) ) ;\n }"}
{"idx": 4214, "target": 0, "func": "SplinePointList * SplinePointListInterpretPS ( FILE * ps , int flags , int is_stroked , int * width ) {\n EntityChar ec ;\n SplineChar sc ;\n memset ( & ec , '\\0' , sizeof ( ec ) ) ;\n ec . width = ec . vwidth = UNDEFINED_WIDTH ;\n memset ( & sc , 0 , sizeof ( sc ) ) ;\n sc . name = \"<No particular character>\" ;\n ec . sc = & sc ;\n InterpretPS ( ps , NULL , & ec , NULL ) ;\n if ( width != NULL ) * width = ec . width ;\n return ( SplinesFromEntityChar ( & ec , & flags , is_stroked ) ) ;\n }"}
{"idx": 4215, "target": 0, "func": "static void add_user_option ( String * grant , ulong value , const char * name ) {\n if ( value ) {\n char buff [ 22 ] , * p ;\n grant -> append ( ' ' ) ;\n grant -> append ( name , strlen ( name ) ) ;\n grant -> append ( ' ' ) ;\n p = int10_to_str ( value , buff , 10 ) ;\n grant -> append ( buff , p - buff ) ;\n }\n }"}
{"idx": 4216, "target": 0, "func": "int dtls1_send_server_hello ( SSL * s ) {\n unsigned char * buf ;\n unsigned char * p , * d ;\n int i ;\n unsigned int sl ;\n unsigned long l ;\n if ( s -> state == SSL3_ST_SW_SRVR_HELLO_A ) {\n buf = ( unsigned char * ) s -> init_buf -> data ;\n p = s -> s3 -> server_random ;\n ssl_fill_hello_random ( s , 1 , p , SSL3_RANDOM_SIZE ) ;\n d = p = & ( buf [ DTLS1_HM_HEADER_LENGTH ] ) ;\n * ( p ++ ) = s -> version >> 8 ;\n * ( p ++ ) = s -> version & 0xff ;\n memcpy ( p , s -> s3 -> server_random , SSL3_RANDOM_SIZE ) ;\n p += SSL3_RANDOM_SIZE ;\n if ( ! ( s -> ctx -> session_cache_mode & SSL_SESS_CACHE_SERVER ) ) s -> session -> session_id_length = 0 ;\n sl = s -> session -> session_id_length ;\n if ( sl > sizeof s -> session -> session_id ) {\n SSLerr ( SSL_F_DTLS1_SEND_SERVER_HELLO , ERR_R_INTERNAL_ERROR ) ;\n return - 1 ;\n }\n * ( p ++ ) = sl ;\n memcpy ( p , s -> session -> session_id , sl ) ;\n p += sl ;\n if ( s -> s3 -> tmp . new_cipher == NULL ) return - 1 ;\n i = ssl3_put_cipher_by_char ( s -> s3 -> tmp . new_cipher , p ) ;\n p += i ;\n # ifdef OPENSSL_NO_COMP * ( p ++ ) = 0 ;\n # else if ( s -> s3 -> tmp . new_compression == NULL ) * ( p ++ ) = 0 ;\n else * ( p ++ ) = s -> s3 -> tmp . new_compression -> id ;\n # endif # ifndef OPENSSL_NO_TLSEXT if ( ssl_prepare_serverhello_tlsext ( s ) <= 0 ) {\n SSLerr ( SSL_F_DTLS1_SEND_SERVER_HELLO , SSL_R_SERVERHELLO_TLSEXT ) ;\n return - 1 ;\n }\n if ( ( p = ssl_add_serverhello_tlsext ( s , p , buf + SSL3_RT_MAX_PLAIN_LENGTH ) ) == NULL ) {\n SSLerr ( SSL_F_DTLS1_SEND_SERVER_HELLO , ERR_R_INTERNAL_ERROR ) ;\n return - 1 ;\n }\n # endif l = ( p - d ) ;\n d = buf ;\n d = dtls1_set_message_header ( s , d , SSL3_MT_SERVER_HELLO , l , 0 , l ) ;\n s -> state = SSL3_ST_SW_SRVR_HELLO_B ;\n s -> init_num = p - buf ;\n s -> init_off = 0 ;\n dtls1_buffer_message ( s , 0 ) ;\n }\n return ( dtls1_do_write ( s , SSL3_RT_HANDSHAKE ) ) ;\n }"}
{"idx": 4217, "target": 0, "func": "void armv7m_nvic_set_pending ( void * opaque , int irq ) {\n nvic_state * s = ( nvic_state * ) opaque ;\n if ( irq >= 16 ) irq += 16 ;\n gic_set_pending_private ( & s -> gic , 0 , irq ) ;\n }"}
{"idx": 4218, "target": 0, "func": "TSReturnCode TSMgmtSourceGet ( const char * var_name , TSMgmtSource * source ) {\n return REC_ERR_OKAY == RecGetRecordSource ( var_name , reinterpret_cast < RecSourceT * > ( source ) ) ? TS_SUCCESS : TS_ERROR ;\n }"}
{"idx": 4219, "target": 0, "func": "static void calc_transform_coeffs_cpl ( AC3DecodeContext * s ) {\n int bin , band , ch ;\n bin = s -> start_freq [ CPL_CH ] ;\n for ( band = 0 ;\n band < s -> num_cpl_bands ;\n band ++ ) {\n int band_start = bin ;\n int band_end = bin + s -> cpl_band_sizes [ band ] ;\n for ( ch = 1 ;\n ch <= s -> fbw_channels ;\n ch ++ ) {\n if ( s -> channel_in_cpl [ ch ] ) {\n int cpl_coord = s -> cpl_coords [ ch ] [ band ] << 5 ;\n for ( bin = band_start ;\n bin < band_end ;\n bin ++ ) {\n s -> fixed_coeffs [ ch ] [ bin ] = MULH ( s -> fixed_coeffs [ CPL_CH ] [ bin ] << 4 , cpl_coord ) ;\n }\n if ( ch == 2 && s -> phase_flags [ band ] ) {\n for ( bin = band_start ;\n bin < band_end ;\n bin ++ ) s -> fixed_coeffs [ 2 ] [ bin ] = - s -> fixed_coeffs [ 2 ] [ bin ] ;\n }\n }\n }\n bin = band_end ;\n }\n }"}
{"idx": 4220, "target": 0, "func": "static void lag_pred_line ( LagarithContext * l , uint8_t * buf , int width , int stride , int line ) {\n int L , TL ;\n if ( ! line ) {\n L = l -> dsp . add_hfyu_left_prediction ( buf + 1 , buf + 1 , width - 1 , buf [ 0 ] ) ;\n }\n else {\n L = buf [ width - stride - 1 ] ;\n if ( line == 1 ) {\n TL = l -> avctx -> pix_fmt == AV_PIX_FMT_YUV420P ? buf [ - stride ] : L ;\n }\n else {\n TL = buf [ width - ( 2 * stride ) - 1 ] ;\n }\n add_lag_median_prediction ( buf , buf - stride , buf , width , & L , & TL ) ;\n }\n }"}
{"idx": 4221, "target": 0, "func": "static int libspeex_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n LibSpeexContext * s = avctx -> priv_data ;\n AVFrame * frame = data ;\n int16_t * output ;\n int ret , consumed = 0 ;\n frame -> nb_samples = s -> frame_size ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n output = ( int16_t * ) frame -> data [ 0 ] ;\n if ( speex_bits_remaining ( & s -> bits ) < 5 || speex_bits_peek_unsigned ( & s -> bits , 5 ) == 0x1F ) {\n if ( ! buf || ! buf_size ) {\n * got_frame_ptr = 0 ;\n return buf_size ;\n }\n speex_bits_read_from ( & s -> bits , buf , buf_size ) ;\n consumed = buf_size ;\n }\n ret = speex_decode_int ( s -> dec_state , & s -> bits , output ) ;\n if ( ret <= - 2 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error decoding Speex frame.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( avctx -> channels == 2 ) speex_decode_stereo_int ( output , s -> frame_size , & s -> stereo ) ;\n * got_frame_ptr = 1 ;\n return consumed ;\n }"}
{"idx": 4222, "target": 0, "func": "static void test_fetch_offset ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND my_bind [ 1 ] ;\n char data [ 11 ] ;\n ulong length ;\n int rc ;\n my_bool is_null ;\n myheader ( \"test_fetch_offset\" ) ;\n rc = mysql_query ( mysql , \"drop table if exists t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t1(a char(10))\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t1 values('abcdefghij'), (null)\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"select * from t1\" ) ;\n check_stmt ( stmt ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 0 ] . buffer = ( void * ) data ;\n my_bind [ 0 ] . buffer_length = 11 ;\n my_bind [ 0 ] . is_null = & is_null ;\n my_bind [ 0 ] . length = & length ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch_column ( stmt , my_bind , 0 , 0 ) ;\n check_execute_r ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_store_result ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n data [ 0 ] = '\\0' ;\n rc = mysql_stmt_fetch_column ( stmt , my_bind , 0 , 0 ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n col 1: %s (%ld)\" , data , length ) ;\n DIE_UNLESS ( strncmp ( data , \"abcd\" , 4 ) == 0 && length == 10 ) ;\n rc = mysql_stmt_fetch_column ( stmt , my_bind , 0 , 5 ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n col 1: %s (%ld)\" , data , length ) ;\n DIE_UNLESS ( strncmp ( data , \"fg\" , 2 ) == 0 && length == 10 ) ;\n rc = mysql_stmt_fetch_column ( stmt , my_bind , 0 , 9 ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n col 0: %s (%ld)\" , data , length ) ;\n DIE_UNLESS ( strncmp ( data , \"j\" , 1 ) == 0 && length == 10 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n is_null = 0 ;\n rc = mysql_stmt_fetch_column ( stmt , my_bind , 0 , 0 ) ;\n check_execute ( stmt , rc ) ;\n DIE_UNLESS ( is_null == 1 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n rc = mysql_stmt_fetch_column ( stmt , my_bind , 1 , 0 ) ;\n check_execute_r ( stmt , rc ) ;\n mysql_stmt_close ( stmt ) ;\n myquery ( mysql_query ( mysql , \"drop table t1\" ) ) ;\n }"}
{"idx": 4223, "target": 0, "func": "void vp9_idct8x8_64_add_c ( const tran_low_t * input , uint8_t * dest , int stride ) {\n tran_low_t out [ 8 * 8 ] ;\n tran_low_t * outptr = out ;\n int i , j ;\n tran_low_t temp_in [ 8 ] , temp_out [ 8 ] ;\n for ( i = 0 ;\n i < 8 ;\n ++ i ) {\n idct8 ( input , outptr ) ;\n input += 8 ;\n outptr += 8 ;\n }\n for ( i = 0 ;\n i < 8 ;\n ++ i ) {\n for ( j = 0 ;\n j < 8 ;\n ++ j ) temp_in [ j ] = out [ j * 8 + i ] ;\n idct8 ( temp_in , temp_out ) ;\n for ( j = 0 ;\n j < 8 ;\n ++ j ) dest [ j * stride + i ] = clip_pixel ( ROUND_POWER_OF_TWO ( temp_out [ j ] , 5 ) + dest [ j * stride + i ] ) ;\n }\n }"}
{"idx": 4224, "target": 0, "func": "static void log_maybe ( size_t * pnerr , const char * fmt , ... ) {\n va_list ap ;\n if ( ++ ( * pnerr ) <= nerr_loglimit ) {\n va_start ( ap , fmt ) ;\n mvsyslog ( LOG_ERR , fmt , ap ) ;\n va_end ( ap ) ;\n }\n }"}
{"idx": 4225, "target": 0, "func": "static int aes_gcm_tls_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n int rv = - 1 ;\n if ( out != in || len < ( EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ) ) return - 1 ;\n if ( EVP_CIPHER_CTX_ctrl ( ctx , EVP_CIPHER_CTX_encrypting ( ctx ) ? EVP_CTRL_GCM_IV_GEN : EVP_CTRL_GCM_SET_IV_INV , EVP_GCM_TLS_EXPLICIT_IV_LEN , out ) <= 0 ) goto err ;\n if ( CRYPTO_gcm128_aad ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , gctx -> tls_aad_len ) ) goto err ;\n in += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n out += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n len -= EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ;\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 32 && AES_GCM_ASM ( gctx ) ) {\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_encrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) goto err ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 32 && AES_GCM_ASM2 ( gctx ) ) {\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) goto err ;\n }\n out += len ;\n CRYPTO_gcm128_tag ( & gctx -> gcm , out , EVP_GCM_TLS_TAG_LEN ) ;\n rv = len + EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ;\n }\n else {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 16 && AES_GCM_ASM ( gctx ) ) {\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_decrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) goto err ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 16 && AES_GCM_ASM2 ( gctx ) ) {\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) goto err ;\n }\n CRYPTO_gcm128_tag ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , EVP_GCM_TLS_TAG_LEN ) ;\n if ( CRYPTO_memcmp ( EVP_CIPHER_CTX_buf_noconst ( ctx ) , in + len , EVP_GCM_TLS_TAG_LEN ) ) {\n OPENSSL_cleanse ( out , len ) ;\n goto err ;\n }\n rv = len ;\n }\n err : gctx -> iv_set = 0 ;\n gctx -> tls_aad_len = - 1 ;\n return rv ;\n }"}
{"idx": 4226, "target": 0, "func": "void gs_abort ( const gs_memory_t * mem ) {\n gp_do_exit ( 1 ) ;\n }"}
{"idx": 4227, "target": 0, "func": "static int selinux_shm_shmat ( struct shmid_kernel * shp , char __user * shmaddr , int shmflg ) {\n u32 perms ;\n if ( shmflg & SHM_RDONLY ) perms = SHM__READ ;\n else perms = SHM__READ | SHM__WRITE ;\n return ipc_has_perm ( & shp -> shm_perm , perms ) ;\n }"}
{"idx": 4228, "target": 0, "func": "int i2d_ ## name ( type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;\n int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING )"}
{"idx": 4229, "target": 0, "func": "int gs_nulldevice ( gs_gstate * pgs ) {\n int code = 0 ;\n bool saveLockSafety = false ;\n if ( pgs -> device == 0 || ! gx_device_is_null ( pgs -> device ) ) {\n gx_device * ndev ;\n code = gs_copydevice ( & ndev , ( const gx_device * ) & gs_null_device , pgs -> memory ) ;\n if ( code < 0 ) return code ;\n if ( gs_currentdevice_inline ( pgs ) != NULL ) saveLockSafety = gs_currentdevice_inline ( pgs ) -> LockSafetyParams ;\n rc_init ( ndev , pgs -> memory , 0 ) ;\n if ( pgs -> device != NULL ) {\n if ( ( code = dev_proc ( pgs -> device , get_profile ) ( pgs -> device , & ( ndev -> icc_struct ) ) ) < 0 ) return code ;\n rc_increment ( ndev -> icc_struct ) ;\n set_dev_proc ( ndev , get_profile , gx_default_get_profile ) ;\n }\n if ( ( code = gs_setdevice_no_erase ( pgs , ndev ) ) < 0 ) gs_free_object ( pgs -> memory , ndev , \"gs_copydevice(device)\" ) ;\n gs_currentdevice_inline ( pgs ) -> LockSafetyParams = saveLockSafety ;\n }\n return code ;\n }"}
{"idx": 4230, "target": 1, "func": "byte * _gcry_mpi_get_secure_buffer ( gcry_mpi_t a , unsigned * nbytes , int * sign ) {\n return do_get_buffer ( a , nbytes , sign , 1 ) ;\n }"}
{"idx": 4231, "target": 0, "func": "void mime_field_value_append ( HdrHeap * heap , MIMEHdrImpl * mh , MIMEField * field , const char * value , int length , bool prepend_comma , const char separator ) {\n int new_length = field -> m_len_value + length ;\n if ( prepend_comma && field -> m_len_value ) {\n new_length += 2 ;\n }\n char * new_str = heap -> expand_str ( field -> m_ptr_value , field -> m_len_value , new_length ) ;\n if ( new_str == nullptr ) {\n new_str = heap -> allocate_str ( new_length ) ;\n memcpy ( new_str , field -> m_ptr_value , field -> m_len_value ) ;\n }\n char * ptr = new_str + field -> m_len_value ;\n if ( prepend_comma && field -> m_len_value ) {\n * ptr ++ = separator ;\n * ptr ++ = ' ' ;\n }\n memcpy ( ptr , value , length ) ;\n field -> m_ptr_value = new_str ;\n field -> m_len_value = new_length ;\n field -> m_n_v_raw_printable = 0 ;\n if ( field -> is_live ( ) && field -> is_cooked ( ) ) {\n mh -> recompute_cooked_stuff ( field ) ;\n }\n }"}
{"idx": 4232, "target": 0, "func": "static void virtio_pci_register_devices ( void ) {\n pci_qdev_register_many ( virtio_info ) ;\n }"}
{"idx": 4233, "target": 0, "func": "static int32_t doWriteForward ( const UChar * src , int32_t srcLength , UChar * dest , int32_t destSize , uint16_t options , UErrorCode * pErrorCode ) {\n switch ( options & ( UBIDI_REMOVE_BIDI_CONTROLS | UBIDI_DO_MIRRORING ) ) {\n case 0 : {\n int32_t length = srcLength ;\n if ( destSize < length ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n return srcLength ;\n }\n do {\n * dest ++ = * src ++ ;\n }\n while ( -- length > 0 ) ;\n return srcLength ;\n }\n case UBIDI_DO_MIRRORING : {\n int32_t i = 0 , j = 0 ;\n UChar32 c ;\n if ( destSize < srcLength ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n return srcLength ;\n }\n do {\n U16_NEXT ( src , i , srcLength , c ) ;\n c = u_charMirror ( c ) ;\n U16_APPEND_UNSAFE ( dest , j , c ) ;\n }\n while ( i < srcLength ) ;\n return srcLength ;\n }\n case UBIDI_REMOVE_BIDI_CONTROLS : {\n int32_t remaining = destSize ;\n UChar c ;\n do {\n c = * src ++ ;\n if ( ! IS_BIDI_CONTROL_CHAR ( c ) ) {\n if ( -- remaining < 0 ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n while ( -- srcLength > 0 ) {\n c = * src ++ ;\n if ( ! IS_BIDI_CONTROL_CHAR ( c ) ) {\n -- remaining ;\n }\n }\n return destSize - remaining ;\n }\n * dest ++ = c ;\n }\n }\n while ( -- srcLength > 0 ) ;\n return destSize - remaining ;\n }\n default : {\n int32_t remaining = destSize ;\n int32_t i , j = 0 ;\n UChar32 c ;\n do {\n i = 0 ;\n U16_NEXT ( src , i , srcLength , c ) ;\n src += i ;\n srcLength -= i ;\n if ( ! IS_BIDI_CONTROL_CHAR ( c ) ) {\n remaining -= i ;\n if ( remaining < 0 ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n while ( srcLength > 0 ) {\n c = * src ++ ;\n if ( ! IS_BIDI_CONTROL_CHAR ( c ) ) {\n -- remaining ;\n }\n -- srcLength ;\n }\n return destSize - remaining ;\n }\n c = u_charMirror ( c ) ;\n U16_APPEND_UNSAFE ( dest , j , c ) ;\n }\n }\n while ( srcLength > 0 ) ;\n return j ;\n }\n }\n }"}
{"idx": 4234, "target": 0, "func": "unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }"}
{"idx": 4235, "target": 0, "func": "static void buildtablestructures ( struct alltabs * at , SplineFont * sf , enum fontformat format ) {\n int i ;\n int ebdtpos , eblcpos ;\n struct ttf_table * tab ;\n if ( format == ff_otf || format == ff_otfcid ) {\n at -> tabdir . version = CHR ( 'O' , 'T' , 'T' , 'O' ) ;\n # ifdef FONTFORGE_CONFIG_APPLE_ONLY_TTF }\n else if ( at -> applemode && ! at -> opentypemode ) {\n at -> tabdir . version = CHR ( 't' , 'r' , 'u' , 'e' ) ;\n # endif }\n else {\n at -> tabdir . version = 0x00010000 ;\n }\n i = 0 ;\n if ( at -> base != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'B' , 'A' , 'S' , 'E' ) ;\n at -> tabdir . tabs [ i ] . data = at -> base ;\n at -> tabdir . tabs [ i ++ ] . length = at -> baselen ;\n }\n if ( at -> bsln != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'b' , 's' , 'l' , 'n' ) ;\n at -> tabdir . tabs [ i ] . data = at -> bsln ;\n at -> tabdir . tabs [ i ++ ] . length = at -> bslnlen ;\n }\n if ( at -> bdf != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'B' , 'D' , 'F' , ' ' ) ;\n at -> tabdir . tabs [ i ] . data = at -> bdf ;\n at -> tabdir . tabs [ i ++ ] . length = at -> bdflen ;\n }\n if ( format == ff_otf || format == ff_otfcid ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'C' , 'F' , 'F' , ' ' ) ;\n at -> tabdir . tabs [ i ] . length = at -> cfflen ;\n at -> tabdir . tabs [ i ++ ] . data = at -> cfff ;\n }\n if ( at -> dsigf != NULL ) {\n ebdtpos = i ;\n at -> tabdir . tabs [ i ] . tag = CHR ( 'D' , 'S' , 'I' , 'G' ) ;\n at -> tabdir . tabs [ i ] . length = at -> dsiglen ;\n at -> tabdir . tabs [ i ++ ] . data = at -> dsigf ;\n }\n if ( at -> bdat != NULL && ( at -> msbitmaps || at -> otbbitmaps ) ) {\n ebdtpos = i ;\n at -> tabdir . tabs [ i ] . tag = CHR ( 'E' , 'B' , 'D' , 'T' ) ;\n at -> tabdir . tabs [ i ] . length = at -> bdatlen ;\n at -> tabdir . tabs [ i ++ ] . data = at -> bdat ;\n }\n if ( at -> bloc != NULL && ( at -> msbitmaps || at -> otbbitmaps ) ) {\n eblcpos = i ;\n at -> tabdir . tabs [ i ] . tag = CHR ( 'E' , 'B' , 'L' , 'C' ) ;\n at -> tabdir . tabs [ i ] . data = at -> bloc ;\n at -> tabdir . tabs [ i ++ ] . length = at -> bloclen ;\n }\n if ( at -> ebsc != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'E' , 'B' , 'S' , 'C' ) ;\n at -> tabdir . tabs [ i ] . data = at -> ebsc ;\n at -> tabdir . tabs [ i ++ ] . length = at -> ebsclen ;\n }\n if ( at -> fftmf != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'F' , 'F' , 'T' , 'M' ) ;\n at -> tabdir . tabs [ i ] . data = at -> fftmf ;\n at -> tabdir . tabs [ i ++ ] . length = at -> fftmlen ;\n }\n if ( at -> gdef != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'G' , 'D' , 'E' , 'F' ) ;\n at -> tabdir . tabs [ i ] . data = at -> gdef ;\n at -> tabdir . tabs [ i ++ ] . length = at -> gdeflen ;\n }\n if ( at -> gpos != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'G' , 'P' , 'O' , 'S' ) ;\n at -> tabdir . tabs [ i ] . data = at -> gpos ;\n at -> tabdir . tabs [ i ++ ] . length = at -> gposlen ;\n }\n if ( at -> gsub != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'G' , 'S' , 'U' , 'B' ) ;\n at -> tabdir . tabs [ i ] . data = at -> gsub ;\n at -> tabdir . tabs [ i ++ ] . length = at -> gsublen ;\n }\n if ( at -> jstf != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'J' , 'S' , 'T' , 'F' ) ;\n at -> tabdir . tabs [ i ] . data = at -> jstf ;\n at -> tabdir . tabs [ i ++ ] . length = at -> jstflen ;\n }\n if ( at -> os2f != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'O' , 'S' , '/' , '2' ) ;\n at -> tabdir . tabs [ i ] . data = at -> os2f ;\n at -> tabdir . tabs [ i ++ ] . length = at -> os2len ;\n }\n if ( at -> pfed != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'P' , 'f' , 'E' , 'd' ) ;\n at -> tabdir . tabs [ i ] . data = at -> pfed ;\n at -> tabdir . tabs [ i ++ ] . length = at -> pfedlen ;\n }\n if ( at -> tex != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'T' , 'e' , 'X' , ' ' ) ;\n at -> tabdir . tabs [ i ] . data = at -> tex ;\n at -> tabdir . tabs [ i ++ ] . length = at -> texlen ;\n }\n if ( at -> math != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'M' , 'A' , 'T' , 'H' ) ;\n at -> tabdir . tabs [ i ] . data = at -> math ;\n at -> tabdir . tabs [ i ++ ] . length = at -> mathlen ;\n }\n if ( at -> vorgf != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'V' , 'O' , 'R' , 'G' ) ;\n at -> tabdir . tabs [ i ] . data = at -> vorgf ;\n at -> tabdir . tabs [ i ++ ] . length = at -> vorglen ;\n }\n if ( at -> acnt != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'a' , 'c' , 'n' , 't' ) ;\n at -> tabdir . tabs [ i ] . data = at -> acnt ;\n at -> tabdir . tabs [ i ++ ] . length = at -> acntlen ;\n }\n if ( at -> bdat != NULL && at -> applebitmaps ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'b' , 'd' , 'a' , 't' ) ;\n if ( ! at -> msbitmaps ) {\n at -> tabdir . tabs [ i ] . data = at -> bdat ;\n at -> tabdir . tabs [ i ++ ] . length = at -> bdatlen ;\n }\n else {\n at -> tabdir . tabs [ i ] . data = NULL ;\n at -> tabdir . tabs [ i ] . dup_of = ebdtpos ;\n at -> tabdir . tabs [ i ++ ] . length = at -> tabdir . tabs [ ebdtpos ] . length ;\n }\n }\n if ( format == ff_none && at -> applebitmaps ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'b' , 'h' , 'e' , 'd' ) ;\n at -> tabdir . tabs [ i ] . data = at -> headf ;\n at -> tabdir . tabs [ i ++ ] . length = at -> headlen ;\n }\n if ( at -> bloc != NULL && at -> applebitmaps ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'b' , 'l' , 'o' , 'c' ) ;\n if ( ! at -> msbitmaps ) {\n at -> tabdir . tabs [ i ] . data = at -> bloc ;\n at -> tabdir . tabs [ i ++ ] . length = at -> bloclen ;\n }\n else {\n at -> tabdir . tabs [ i ] . data = NULL ;\n at -> tabdir . tabs [ i ] . dup_of = eblcpos ;\n at -> tabdir . tabs [ i ++ ] . length = at -> tabdir . tabs [ eblcpos ] . length ;\n }\n }\n if ( at -> cmap != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'c' , 'm' , 'a' , 'p' ) ;\n at -> tabdir . tabs [ i ] . data = at -> cmap ;\n at -> tabdir . tabs [ i ++ ] . length = at -> cmaplen ;\n }\n if ( format != ff_otf && format != ff_otfcid && format != ff_none ) {\n if ( at -> cvtf != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'c' , 'v' , 't' , ' ' ) ;\n at -> tabdir . tabs [ i ] . data = at -> cvtf ;\n at -> tabdir . tabs [ i ++ ] . length = at -> cvtlen ;\n }\n }\n if ( at -> feat != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'f' , 'e' , 'a' , 't' ) ;\n at -> tabdir . tabs [ i ] . data = at -> feat ;\n at -> tabdir . tabs [ i ++ ] . length = at -> featlen ;\n }\n if ( at -> fpgmf != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'f' , 'p' , 'g' , 'm' ) ;\n at -> tabdir . tabs [ i ] . data = at -> fpgmf ;\n at -> tabdir . tabs [ i ++ ] . length = at -> fpgmlen ;\n }\n if ( at -> gaspf != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'g' , 'a' , 's' , 'p' ) ;\n at -> tabdir . tabs [ i ] . data = at -> gaspf ;\n at -> tabdir . tabs [ i ++ ] . length = at -> gasplen ;\n }\n if ( at -> gi . glyphs != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'g' , 'l' , 'y' , 'f' ) ;\n at -> tabdir . tabs [ i ] . data = at -> gi . glyphs ;\n at -> tabdir . tabs [ i ++ ] . length = at -> gi . glyph_len ;\n }\n if ( at -> hdmxf != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'h' , 'd' , 'm' , 'x' ) ;\n at -> tabdir . tabs [ i ] . data = at -> hdmxf ;\n at -> tabdir . tabs [ i ++ ] . length = at -> hdmxlen ;\n }\n if ( format != ff_none || ! at -> applebitmaps ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'h' , 'e' , 'a' , 'd' ) ;\n at -> tabdir . tabs [ i ] . data = at -> headf ;\n at -> tabdir . tabs [ i ++ ] . length = at -> headlen ;\n }\n if ( format != ff_none || ! at -> applemode ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'h' , 'h' , 'e' , 'a' ) ;\n at -> tabdir . tabs [ i ] . data = at -> hheadf ;\n at -> tabdir . tabs [ i ++ ] . length = at -> hheadlen ;\n }\n else if ( at -> hheadf != NULL ) {\n fclose ( at -> hheadf ) ;\n at -> hheadf = NULL ;\n }\n if ( format != ff_none || ! at -> applemode ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'h' , 'm' , 't' , 'x' ) ;\n at -> tabdir . tabs [ i ] . data = at -> gi . hmtx ;\n at -> tabdir . tabs [ i ++ ] . length = at -> gi . hmtxlen ;\n }\n if ( at -> kern != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'k' , 'e' , 'r' , 'n' ) ;\n at -> tabdir . tabs [ i ] . data = at -> kern ;\n at -> tabdir . tabs [ i ++ ] . length = at -> kernlen ;\n }\n if ( at -> lcar != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'l' , 'c' , 'a' , 'r' ) ;\n at -> tabdir . tabs [ i ] . data = at -> lcar ;\n at -> tabdir . tabs [ i ++ ] . length = at -> lcarlen ;\n }\n if ( at -> loca != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'l' , 'o' , 'c' , 'a' ) ;\n at -> tabdir . tabs [ i ] . data = at -> loca ;\n at -> tabdir . tabs [ i ++ ] . length = at -> localen ;\n }\n at -> tabdir . tabs [ i ] . tag = CHR ( 'm' , 'a' , 'x' , 'p' ) ;\n at -> tabdir . tabs [ i ] . data = at -> maxpf ;\n at -> tabdir . tabs [ i ++ ] . length = at -> maxplen ;\n if ( at -> morx != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'm' , 'o' , 'r' , 'x' ) ;\n at -> tabdir . tabs [ i ] . data = at -> morx ;\n at -> tabdir . tabs [ i ++ ] . length = at -> morxlen ;\n }\n if ( at -> name != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'n' , 'a' , 'm' , 'e' ) ;\n at -> tabdir . tabs [ i ] . data = at -> name ;\n at -> tabdir . tabs [ i ++ ] . length = at -> namelen ;\n }\n if ( at -> opbd != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'o' , 'p' , 'b' , 'd' ) ;\n at -> tabdir . tabs [ i ] . data = at -> opbd ;\n at -> tabdir . tabs [ i ++ ] . length = at -> opbdlen ;\n }\n if ( at -> post != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'p' , 'o' , 's' , 't' ) ;\n at -> tabdir . tabs [ i ] . data = at -> post ;\n at -> tabdir . tabs [ i ++ ] . length = at -> postlen ;\n }\n if ( format != ff_otf && format != ff_otfcid && format != ff_none ) {\n if ( at -> prepf != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'p' , 'r' , 'e' , 'p' ) ;\n at -> tabdir . tabs [ i ] . data = at -> prepf ;\n at -> tabdir . tabs [ i ++ ] . length = at -> preplen ;\n }\n }\n if ( at -> prop != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'p' , 'r' , 'o' , 'p' ) ;\n at -> tabdir . tabs [ i ] . data = at -> prop ;\n at -> tabdir . tabs [ i ++ ] . length = at -> proplen ;\n }\n if ( at -> vheadf != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'v' , 'h' , 'e' , 'a' ) ;\n at -> tabdir . tabs [ i ] . data = at -> vheadf ;\n at -> tabdir . tabs [ i ++ ] . length = at -> vheadlen ;\n at -> tabdir . tabs [ i ] . tag = CHR ( 'v' , 'm' , 't' , 'x' ) ;\n at -> tabdir . tabs [ i ] . data = at -> gi . vmtx ;\n at -> tabdir . tabs [ i ++ ] . length = at -> gi . vmtxlen ;\n }\n if ( at -> fvar != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'f' , 'v' , 'a' , 'r' ) ;\n at -> tabdir . tabs [ i ] . data = at -> fvar ;\n at -> tabdir . tabs [ i ++ ] . length = at -> fvarlen ;\n }\n if ( at -> gvar != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'g' , 'v' , 'a' , 'r' ) ;\n at -> tabdir . tabs [ i ] . data = at -> gvar ;\n at -> tabdir . tabs [ i ++ ] . length = at -> gvarlen ;\n }\n if ( at -> cvar != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'c' , 'v' , 'a' , 'r' ) ;\n at -> tabdir . tabs [ i ] . data = at -> cvar ;\n at -> tabdir . tabs [ i ++ ] . length = at -> cvarlen ;\n }\n if ( at -> avar != NULL ) {\n at -> tabdir . tabs [ i ] . tag = CHR ( 'a' , 'v' , 'a' , 'r' ) ;\n at -> tabdir . tabs [ i ] . data = at -> avar ;\n at -> tabdir . tabs [ i ++ ] . length = at -> avarlen ;\n }\n if ( i >= MAX_TAB ) IError ( \"Miscalculation of number of tables needed. Up sizeof tabs array in struct tabdir in ttf.h\" ) ;\n for ( tab = sf -> ttf_tab_saved ;\n tab != NULL && i < MAX_TAB ;\n tab = tab -> next ) {\n at -> tabdir . tabs [ i ] . tag = tab -> tag ;\n at -> tabdir . tabs [ i ] . data = tab -> temp ;\n at -> tabdir . tabs [ i ++ ] . length = tab -> len ;\n }\n if ( tab != NULL ) IError ( \"Some user supplied tables omitted. Up sizeof tabs array in struct tabdir in ttf.h\" ) ;\n at -> tabdir . numtab = i ;\n at -> tabdir . searchRange = ( i < 16 ? 8 : i < 32 ? 16 : i < 64 ? 32 : 64 ) * 16 ;\n at -> tabdir . entrySel = ( i < 16 ? 3 : i < 32 ? 4 : i < 64 ? 5 : 6 ) ;\n at -> tabdir . rangeShift = at -> tabdir . numtab * 16 - at -> tabdir . searchRange ;\n }"}
{"idx": 4236, "target": 0, "func": "static int copy_from ( IpvideoContext * s , AVFrame * src , AVFrame * dst , int delta_x , int delta_y ) {\n int current_offset = s -> pixel_ptr - dst -> data [ 0 ] ;\n int motion_offset = current_offset + delta_y * dst -> linesize [ 0 ] + delta_x * ( 1 + s -> is_16bpp ) ;\n if ( motion_offset < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \" Interplay video: motion offset < 0 (%d)\\n\" , motion_offset ) ;\n return AVERROR_INVALIDDATA ;\n }\n else if ( motion_offset > s -> upper_motion_limit_offset ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \" Interplay video: motion offset above limit (%d >= %d)\\n\" , motion_offset , s -> upper_motion_limit_offset ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( src -> data [ 0 ] == NULL ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Invalid decode type, corrupted header?\\n\" ) ;\n return AVERROR ( EINVAL ) ;\n }\n s -> dsp . put_pixels_tab [ ! s -> is_16bpp ] [ 0 ] ( s -> pixel_ptr , src -> data [ 0 ] + motion_offset , dst -> linesize [ 0 ] , 8 ) ;\n return 0 ;\n }"}
{"idx": 4237, "target": 1, "func": "static int mem_resize ( jas_stream_memobj_t * m , int bufsize ) {\n unsigned char * buf ;\n assert ( m -> buf_ ) ;\n assert ( bufsize >= 0 ) ;\n if ( ! ( buf = jas_realloc2 ( m -> buf_ , bufsize , sizeof ( unsigned char ) ) ) ) {\n return - 1 ;\n }\n m -> buf_ = buf ;\n m -> bufsize_ = bufsize ;\n return 0 ;\n }"}
{"idx": 4238, "target": 0, "func": "static void set_mv_search_params ( VP9_COMP * cpi ) {\n const VP9_COMMON * const cm = & cpi -> common ;\n const unsigned int max_mv_def = MIN ( cm -> width , cm -> height ) ;\n cpi -> mv_step_param = vp9_init_search_range ( max_mv_def ) ;\n if ( cpi -> sf . mv . auto_mv_step_size ) {\n if ( frame_is_intra_only ( cm ) ) {\n cpi -> max_mv_magnitude = max_mv_def ;\n }\n else {\n if ( cm -> show_frame ) cpi -> mv_step_param = vp9_init_search_range ( MIN ( max_mv_def , 2 * cpi -> max_mv_magnitude ) ) ;\n cpi -> max_mv_magnitude = 0 ;\n }\n }\n }"}
{"idx": 4239, "target": 0, "func": "static Jbig2PatternDict * jbig2_decode_pattern_dict ( Jbig2Ctx * ctx , Jbig2Segment * segment , const Jbig2PatternDictParams * params , const byte * data , const size_t size , Jbig2ArithCx * GB_stats ) {\n Jbig2PatternDict * hd = NULL ;\n Jbig2Image * image = NULL ;\n Jbig2GenericRegionParams rparams ;\n int code = 0 ;\n image = jbig2_image_new ( ctx , params -> HDPW * ( params -> GRAYMAX + 1 ) , params -> HDPH ) ;\n if ( image == NULL ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"failed to allocate collective bitmap for halftone dict!\" ) ;\n return NULL ;\n }\n rparams . MMR = params -> HDMMR ;\n rparams . GBTEMPLATE = params -> HDTEMPLATE ;\n rparams . TPGDON = 0 ;\n rparams . USESKIP = 0 ;\n rparams . gbat [ 0 ] = - ( int8_t ) params -> HDPW ;\n rparams . gbat [ 1 ] = 0 ;\n rparams . gbat [ 2 ] = - 3 ;\n rparams . gbat [ 3 ] = - 1 ;\n rparams . gbat [ 4 ] = 2 ;\n rparams . gbat [ 5 ] = - 2 ;\n rparams . gbat [ 6 ] = - 2 ;\n rparams . gbat [ 7 ] = - 2 ;\n if ( params -> HDMMR ) {\n code = jbig2_decode_generic_mmr ( ctx , segment , & rparams , data , size , image ) ;\n }\n else {\n Jbig2WordStream * ws = jbig2_word_stream_buf_new ( ctx , data , size ) ;\n if ( ws != NULL ) {\n Jbig2ArithState * as = jbig2_arith_new ( ctx , ws ) ;\n if ( as != NULL ) {\n code = jbig2_decode_generic_region ( ctx , segment , & rparams , as , image , GB_stats ) ;\n }\n else {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"failed to allocate storage for as in halftone dict!\" ) ;\n }\n jbig2_free ( ctx -> allocator , as ) ;\n jbig2_word_stream_buf_free ( ctx , ws ) ;\n }\n else {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"failed to allocate storage for ws in halftone dict!\" ) ;\n }\n }\n if ( code == 0 ) hd = jbig2_hd_new ( ctx , params , image ) ;\n jbig2_image_release ( ctx , image ) ;\n return hd ;\n }"}
{"idx": 4240, "target": 0, "func": "static void proto_tree_set_bytes ( field_info * fi , const guint8 * start_ptr , gint length ) {\n GByteArray * bytes ;\n DISSECTOR_ASSERT ( start_ptr != NULL || length == 0 ) ;\n bytes = g_byte_array_new ( ) ;\n if ( length > 0 ) {\n g_byte_array_append ( bytes , start_ptr , length ) ;\n }\n fvalue_set_byte_array ( & fi -> value , bytes ) ;\n }"}
{"idx": 4241, "target": 0, "func": "static void usbdev_vm_open ( struct vm_area_struct * vma ) {\n struct usb_memory * usbm = vma -> vm_private_data ;\n unsigned long flags ;\n spin_lock_irqsave ( & usbm -> ps -> lock , flags ) ;\n ++ usbm -> vma_use_count ;\n spin_unlock_irqrestore ( & usbm -> ps -> lock , flags ) ;\n }"}
{"idx": 4242, "target": 0, "func": "int BIO_printf ( BIO * bio , const char * format , ... ) {\n va_list args ;\n int ret ;\n va_start ( args , format ) ;\n ret = BIO_vprintf ( bio , format , args ) ;\n va_end ( args ) ;\n return ( ret ) ;\n }"}
{"idx": 4243, "target": 0, "func": "static inline uint32_t vmsvga_fifo_read ( struct vmsvga_state_s * s ) {\n return le32_to_cpu ( vmsvga_fifo_read_raw ( s ) ) ;\n }"}
{"idx": 4244, "target": 0, "func": "static int show_prepared_stmt_count ( THD * thd , SHOW_VAR * var , char * buff ) {\n var -> type = SHOW_LONG ;\n var -> value = buff ;\n mysql_mutex_lock ( & LOCK_prepared_stmt_count ) ;\n * ( ( long * ) buff ) = ( long ) prepared_stmt_count ;\n mysql_mutex_unlock ( & LOCK_prepared_stmt_count ) ;\n return 0 ;\n }"}
{"idx": 4245, "target": 1, "func": "inline UChar * toUCharPtr ( char16_t * p ) {\n # ifdef U_ALIASING_BARRIER U_ALIASING_BARRIER ( p ) ;\n # endif return reinterpret_cast < UChar * > ( p ) ;\n }"}
{"idx": 4246, "target": 0, "func": "void do_write_file_command ( struct st_command * command , my_bool append ) {\n static DYNAMIC_STRING ds_content ;\n static DYNAMIC_STRING ds_filename ;\n static DYNAMIC_STRING ds_delimiter ;\n const struct command_arg write_file_args [ ] = {\n {\n \"filename\" , ARG_STRING , TRUE , & ds_filename , \"File to write to\" }\n , {\n \"delimiter\" , ARG_STRING , FALSE , & ds_delimiter , \"Delimiter to read until\" }\n }\n ;\n DBUG_ENTER ( \"do_write_file\" ) ;\n check_command_args ( command , command -> first_argument , write_file_args , sizeof ( write_file_args ) / sizeof ( struct command_arg ) , ' ' ) ;\n if ( ! append && access ( ds_filename . str , F_OK ) == 0 ) {\n die ( \"File already exist: '%s'\" , ds_filename . str ) ;\n }\n ds_content = command -> content ;\n if ( ! ds_content . str ) {\n if ( ds_delimiter . length == 0 ) dynstr_set ( & ds_delimiter , \"EOF\" ) ;\n init_dynamic_string ( & ds_content , \"\" , 1024 , 1024 ) ;\n read_until_delimiter ( & ds_content , & ds_delimiter ) ;\n command -> content = ds_content ;\n }\n if ( cur_block -> ok ) {\n DBUG_PRINT ( \"info\" , ( \"Writing to file: %s\" , ds_filename . str ) ) ;\n str_to_file2 ( ds_filename . str , ds_content . str , ds_content . length , append ) ;\n }\n dynstr_free ( & ds_filename ) ;\n dynstr_free ( & ds_delimiter ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 4247, "target": 0, "func": "static void output ( FILE * fp , const char * name , const char * value ) {\n size_t len ;\n len = strlen ( name ) + 1 + strlen ( value ) ;\n if ( out_chars != 0 ) {\n out_chars += 2 ;\n if ( ( out_linecount + len + 2 ) > MAXOUTLINE ) {\n fputs ( \",\\n\" , fp ) ;\n out_linecount = 0 ;\n }\n else {\n fputs ( \", \" , fp ) ;\n out_linecount += 2 ;\n }\n }\n fputs ( name , fp ) ;\n putc ( '=' , fp ) ;\n fputs ( value , fp ) ;\n out_chars += len ;\n out_linecount += len ;\n }"}
{"idx": 4248, "target": 0, "func": "static gboolean gst_asf_demux_handle_src_event ( GstPad * pad , GstObject * parent , GstEvent * event ) {\n GstASFDemux * demux ;\n gboolean ret ;\n demux = GST_ASF_DEMUX ( parent ) ;\n switch ( GST_EVENT_TYPE ( event ) ) {\n case GST_EVENT_SEEK : GST_LOG_OBJECT ( pad , \"seek event\" ) ;\n ret = gst_asf_demux_handle_seek_event ( demux , event ) ;\n gst_event_unref ( event ) ;\n break ;\n case GST_EVENT_QOS : case GST_EVENT_NAVIGATION : gst_event_unref ( event ) ;\n ret = FALSE ;\n break ;\n default : GST_LOG_OBJECT ( pad , \"%s event\" , GST_EVENT_TYPE_NAME ( event ) ) ;\n ret = gst_pad_event_default ( pad , parent , event ) ;\n break ;\n }\n return ret ;\n }"}
{"idx": 4249, "target": 0, "func": "static int repeat_continue ( i_ctx_t * i_ctx_p ) {\n es_ptr ep = esp ;\n if ( -- ( ep [ - 1 ] . value . intval ) >= 0 ) {\n esp += 2 ;\n ref_assign ( esp , ep ) ;\n return o_push_estack ;\n }\n else {\n esp -= 3 ;\n return o_pop_estack ;\n }\n }"}
{"idx": 4250, "target": 0, "func": "static void var_read_metadata ( AVFormatContext * avctx , const char * tag , int size ) {\n char * value = var_read_string ( avctx -> pb , size ) ;\n if ( value ) av_dict_set ( & avctx -> metadata , tag , value , AV_DICT_DONT_STRDUP_VAL ) ;\n }"}
{"idx": 4251, "target": 0, "func": "void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 ) sadMxN ( 16 , 32 ) sadMxNx4D ( 16 , 32 ) sadMxN ( 16 , 16 ) sadMxNxK ( 16 , 16 , 3 ) sadMxNxK ( 16 , 16 , 8 ) sadMxNx4D ( 16 , 16 ) sadMxN ( 16 , 8 ) sadMxNxK ( 16 , 8 , 3 ) sadMxNxK ( 16 , 8 , 8 ) sadMxNx4D ( 16 , 8 ) sadMxN ( 8 , 16 ) sadMxNxK ( 8 , 16 , 3 ) sadMxNxK ( 8 , 16 , 8 ) sadMxNx4D ( 8 , 16 ) sadMxN ( 8 , 8 ) sadMxNxK ( 8 , 8 , 3 )"}
{"idx": 4252, "target": 1, "func": "static int testit ( struct test_case_struct * tc ) {\n int retval ;\n wordexp_t we , sav_we ;\n char * dummy ;\n int bzzzt = 0 ;\n int start_offs = 0 ;\n int i ;\n if ( tc -> env ) setenv ( \"var\" , tc -> env , 1 ) ;\n else unsetenv ( \"var\" ) ;\n if ( tc -> ifs ) setenv ( \"IFS\" , tc -> ifs , 1 ) ;\n else unsetenv ( \"IFS\" ) ;\n sav_we . we_wordc = 99 ;\n sav_we . we_wordv = & dummy ;\n sav_we . we_offs = 3 ;\n we = sav_we ;\n printf ( \"Test %d (%s): \" , ++ tests , tc -> words ) ;\n if ( tc -> flags & WRDE_APPEND ) {\n if ( wordexp ( \"pre1 pre2\" , & we , tc -> flags & ~ WRDE_APPEND ) != 0 ) {\n printf ( \"FAILED setup\\n\" ) ;\n return 1 ;\n }\n }\n retval = wordexp ( tc -> words , & we , tc -> flags ) ;\n if ( tc -> flags & WRDE_DOOFFS ) start_offs = sav_we . we_offs ;\n if ( retval != tc -> retval || ( retval == 0 && we . we_wordc != tc -> wordc ) ) bzzzt = 1 ;\n else if ( retval == 0 ) {\n for ( i = 0 ;\n i < start_offs ;\n ++ i ) if ( we . we_wordv [ i ] != NULL ) {\n bzzzt = 1 ;\n break ;\n }\n for ( i = 0 ;\n i < we . we_wordc ;\n ++ i ) if ( we . we_wordv [ i + start_offs ] == NULL || strcmp ( tc -> wordv [ i ] , we . we_wordv [ i + start_offs ] ) != 0 ) {\n bzzzt = 1 ;\n break ;\n }\n }\n if ( bzzzt ) {\n printf ( \"FAILED\\n\" ) ;\n printf ( \"Test words: <%s>, need retval %d, wordc %Zd\\n\" , tc -> words , tc -> retval , tc -> wordc ) ;\n if ( start_offs != 0 ) printf ( \"(preceded by %d NULLs)\\n\" , start_offs ) ;\n printf ( \"Got retval %d, wordc %Zd: \" , retval , we . we_wordc ) ;\n if ( retval == 0 || retval == WRDE_NOSPACE ) {\n for ( i = 0 ;\n i < we . we_wordc + start_offs ;\n ++ i ) if ( we . we_wordv [ i ] == NULL ) printf ( \"NULL \" ) ;\n else printf ( \"<%s> \" , we . we_wordv [ i ] ) ;\n }\n printf ( \"\\n\" ) ;\n }\n else if ( retval != 0 && retval != WRDE_NOSPACE && ( we . we_wordc != sav_we . we_wordc || we . we_wordv != sav_we . we_wordv || we . we_offs != sav_we . we_offs ) ) {\n bzzzt = 1 ;\n printf ( \"FAILED to restore wordexp_t members\\n\" ) ;\n }\n else printf ( \"OK\\n\" ) ;\n if ( retval == 0 || retval == WRDE_NOSPACE ) wordfree ( & we ) ;\n return bzzzt ;\n }"}
{"idx": 4253, "target": 0, "func": "static bool get_actual_variable_range ( PlannerInfo * root , VariableStatData * vardata , Oid sortop , Datum * min , Datum * max ) {\n bool have_data = false ;\n RelOptInfo * rel = vardata -> rel ;\n RangeTblEntry * rte ;\n ListCell * lc ;\n if ( rel == NULL || rel -> indexlist == NIL ) return false ;\n rte = root -> simple_rte_array [ rel -> relid ] ;\n Assert ( rte -> rtekind == RTE_RELATION ) ;\n foreach ( lc , rel -> indexlist ) {\n IndexOptInfo * index = ( IndexOptInfo * ) lfirst ( lc ) ;\n ScanDirection indexscandir ;\n if ( index -> relam != BTREE_AM_OID ) continue ;\n if ( index -> indpred != NIL ) continue ;\n if ( index -> hypothetical ) continue ;\n if ( ! match_index_to_operand ( vardata -> var , 0 , index ) ) continue ;\n switch ( get_op_opfamily_strategy ( sortop , index -> sortopfamily [ 0 ] ) ) {\n case BTLessStrategyNumber : if ( index -> reverse_sort [ 0 ] ) indexscandir = BackwardScanDirection ;\n else indexscandir = ForwardScanDirection ;\n break ;\n case BTGreaterStrategyNumber : if ( index -> reverse_sort [ 0 ] ) indexscandir = ForwardScanDirection ;\n else indexscandir = BackwardScanDirection ;\n break ;\n default : continue ;\n }\n {\n EState * estate ;\n ExprContext * econtext ;\n MemoryContext tmpcontext ;\n MemoryContext oldcontext ;\n Relation heapRel ;\n Relation indexRel ;\n IndexInfo * indexInfo ;\n TupleTableSlot * slot ;\n int16 typLen ;\n bool typByVal ;\n ScanKeyData scankeys [ 1 ] ;\n IndexScanDesc index_scan ;\n HeapTuple tup ;\n Datum values [ INDEX_MAX_KEYS ] ;\n bool isnull [ INDEX_MAX_KEYS ] ;\n SnapshotData SnapshotDirty ;\n estate = CreateExecutorState ( ) ;\n econtext = GetPerTupleExprContext ( estate ) ;\n tmpcontext = econtext -> ecxt_per_tuple_memory ;\n oldcontext = MemoryContextSwitchTo ( tmpcontext ) ;\n heapRel = heap_open ( rte -> relid , NoLock ) ;\n indexRel = index_open ( index -> indexoid , AccessShareLock ) ;\n indexInfo = BuildIndexInfo ( indexRel ) ;\n slot = MakeSingleTupleTableSlot ( RelationGetDescr ( heapRel ) ) ;\n econtext -> ecxt_scantuple = slot ;\n get_typlenbyval ( vardata -> atttype , & typLen , & typByVal ) ;\n InitDirtySnapshot ( SnapshotDirty ) ;\n ScanKeyEntryInitialize ( & scankeys [ 0 ] , SK_ISNULL | SK_SEARCHNOTNULL , 1 , InvalidStrategy , InvalidOid , InvalidOid , InvalidOid , ( Datum ) 0 ) ;\n have_data = true ;\n if ( min ) {\n index_scan = index_beginscan ( heapRel , indexRel , & SnapshotDirty , 1 , 0 ) ;\n index_rescan ( index_scan , scankeys , 1 , NULL , 0 ) ;\n if ( ( tup = index_getnext ( index_scan , indexscandir ) ) != NULL ) {\n ExecStoreTuple ( tup , slot , InvalidBuffer , false ) ;\n FormIndexDatum ( indexInfo , slot , estate , values , isnull ) ;\n if ( isnull [ 0 ] ) elog ( ERROR , \"found unexpected null value in index \\\"%s\\\"\" , RelationGetRelationName ( indexRel ) ) ;\n MemoryContextSwitchTo ( oldcontext ) ;\n * min = datumCopy ( values [ 0 ] , typByVal , typLen ) ;\n MemoryContextSwitchTo ( tmpcontext ) ;\n }\n else have_data = false ;\n index_endscan ( index_scan ) ;\n }\n if ( max && have_data ) {\n index_scan = index_beginscan ( heapRel , indexRel , & SnapshotDirty , 1 , 0 ) ;\n index_rescan ( index_scan , scankeys , 1 , NULL , 0 ) ;\n if ( ( tup = index_getnext ( index_scan , - indexscandir ) ) != NULL ) {\n ExecStoreTuple ( tup , slot , InvalidBuffer , false ) ;\n FormIndexDatum ( indexInfo , slot , estate , values , isnull ) ;\n if ( isnull [ 0 ] ) elog ( ERROR , \"found unexpected null value in index \\\"%s\\\"\" , RelationGetRelationName ( indexRel ) ) ;\n MemoryContextSwitchTo ( oldcontext ) ;\n * max = datumCopy ( values [ 0 ] , typByVal , typLen ) ;\n MemoryContextSwitchTo ( tmpcontext ) ;\n }\n else have_data = false ;\n index_endscan ( index_scan ) ;\n }\n ExecDropSingleTupleTableSlot ( slot ) ;\n index_close ( indexRel , AccessShareLock ) ;\n heap_close ( heapRel , NoLock ) ;\n MemoryContextSwitchTo ( oldcontext ) ;\n FreeExecutorState ( estate ) ;\n break ;\n }\n }\n return have_data ;\n }"}
{"idx": 4254, "target": 0, "func": "static char * get_pid_environ_val ( pid_t pid , char * val ) {\n int temp_size = 500 ;\n char * temp = malloc ( temp_size ) ;\n int i = 0 ;\n int foundit = 0 ;\n FILE * fp ;\n sprintf ( temp , \"/proc/%d/environ\" , pid ) ;\n fp = fopen ( temp , \"r\" ) ;\n if ( fp == NULL ) return NULL ;\n for ( ;\n ;\n ) {\n if ( i >= temp_size ) {\n temp_size *= 2 ;\n temp = realloc ( temp , temp_size ) ;\n }\n temp [ i ] = fgetc ( fp ) ;\n if ( foundit == 1 && ( temp [ i ] == 0 || temp [ i ] == '\\0' || temp [ i ] == EOF ) ) {\n char * ret ;\n temp [ i ] = 0 ;\n ret = malloc ( strlen ( temp ) + 10 ) ;\n sprintf ( ret , \"%s\" , temp ) ;\n fclose ( fp ) ;\n return ret ;\n }\n switch ( temp [ i ] ) {\n case EOF : fclose ( fp ) ;\n return NULL ;\n case '=' : temp [ i ] = 0 ;\n if ( ! strcmp ( temp , val ) ) {\n foundit = 1 ;\n }\n i = 0 ;\n break ;\n case '\\0' : i = 0 ;\n break ;\n default : i ++ ;\n }\n }\n }"}
{"idx": 4255, "target": 0, "func": "int dtls1_retransmit_buffered_messages ( SSL * s ) {\n pqueue * sent = s -> d1 -> sent_messages ;\n piterator iter ;\n pitem * item ;\n hm_fragment * frag ;\n int found = 0 ;\n iter = pqueue_iterator ( sent ) ;\n for ( item = pqueue_next ( & iter ) ;\n item != NULL ;\n item = pqueue_next ( & iter ) ) {\n frag = ( hm_fragment * ) item -> data ;\n if ( dtls1_retransmit_message ( s , ( unsigned short ) dtls1_get_queue_priority ( frag -> msg_header . seq , frag -> msg_header . is_ccs ) , & found ) <= 0 ) return - 1 ;\n }\n return 1 ;\n }"}
{"idx": 4256, "target": 0, "func": "static int dissect_rsl_ie_req_ref ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_tree * ie_tree ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_REQ_REF ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 4 , ett_ie_req_ref , NULL , \"Request Reference IE \" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_req_ref_ra , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_req_ref_T1prim , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_req_ref_T3 , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_req_ref_T2 , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n return offset ;\n }"}
{"idx": 4257, "target": 0, "func": "static void mpeg_decode_picture_display_extension ( Mpeg1Context * s1 ) {\n MpegEncContext * s = & s1 -> mpeg_enc_ctx ;\n int i , nofco ;\n nofco = 1 ;\n if ( s -> progressive_sequence ) {\n if ( s -> repeat_first_field ) {\n nofco ++ ;\n if ( s -> top_field_first ) nofco ++ ;\n }\n }\n else {\n if ( s -> picture_structure == PICT_FRAME ) {\n nofco ++ ;\n if ( s -> repeat_first_field ) nofco ++ ;\n }\n }\n for ( i = 0 ;\n i < nofco ;\n i ++ ) {\n s1 -> pan_scan . position [ i ] [ 0 ] = get_sbits ( & s -> gb , 16 ) ;\n skip_bits ( & s -> gb , 1 ) ;\n s1 -> pan_scan . position [ i ] [ 1 ] = get_sbits ( & s -> gb , 16 ) ;\n skip_bits ( & s -> gb , 1 ) ;\n }\n if ( s -> avctx -> debug & FF_DEBUG_PICT_INFO ) av_log ( s -> avctx , AV_LOG_DEBUG , \"pde (%d,%d) (%d,%d) (%d,%d)\\n\" , s1 -> pan_scan . position [ 0 ] [ 0 ] , s1 -> pan_scan . position [ 0 ] [ 1 ] , s1 -> pan_scan . position [ 1 ] [ 0 ] , s1 -> pan_scan . position [ 1 ] [ 1 ] , s1 -> pan_scan . position [ 2 ] [ 0 ] , s1 -> pan_scan . position [ 2 ] [ 1 ] ) ;\n }"}
{"idx": 4258, "target": 0, "func": "int main ( int argc , char * * argv ) {\n FILE * infile = NULL ;\n int w , h ;\n vpx_codec_ctx_t codec ;\n vpx_codec_enc_cfg_t cfg ;\n vpx_image_t raw ;\n vpx_codec_err_t res ;\n vpx_fixed_buf_t stats ;\n const VpxInterface * encoder = NULL ;\n const int fps = 30 ;\n const int bitrate = 200 ;\n const char * const codec_arg = argv [ 1 ] ;\n const char * const width_arg = argv [ 2 ] ;\n const char * const height_arg = argv [ 3 ] ;\n const char * const infile_arg = argv [ 4 ] ;\n const char * const outfile_arg = argv [ 5 ] ;\n exec_name = argv [ 0 ] ;\n if ( argc != 6 ) die ( \"Invalid number of arguments.\" ) ;\n encoder = get_vpx_encoder_by_name ( codec_arg ) ;\n if ( ! encoder ) die ( \"Unsupported codec.\" ) ;\n w = strtol ( width_arg , NULL , 0 ) ;\n h = strtol ( height_arg , NULL , 0 ) ;\n if ( w <= 0 || h <= 0 || ( w % 2 ) != 0 || ( h % 2 ) != 0 ) die ( \"Invalid frame size: %dx%d\" , w , h ) ;\n if ( ! vpx_img_alloc ( & raw , VPX_IMG_FMT_I420 , w , h , 1 ) ) die ( \"Failed to allocate image\" , w , h ) ;\n printf ( \"Using %s\\n\" , vpx_codec_iface_name ( encoder -> codec_interface ( ) ) ) ;\n res = vpx_codec_enc_config_default ( encoder -> codec_interface ( ) , & cfg , 0 ) ;\n if ( res ) die_codec ( & codec , \"Failed to get default codec config.\" ) ;\n cfg . g_w = w ;\n cfg . g_h = h ;\n cfg . g_timebase . num = 1 ;\n cfg . g_timebase . den = fps ;\n cfg . rc_target_bitrate = bitrate ;\n if ( ! ( infile = fopen ( infile_arg , \"rb\" ) ) ) die ( \"Failed to open %s for reading\" , infile_arg ) ;\n cfg . g_pass = VPX_RC_FIRST_PASS ;\n stats = pass0 ( & raw , infile , encoder , & cfg ) ;\n rewind ( infile ) ;\n cfg . g_pass = VPX_RC_LAST_PASS ;\n cfg . rc_twopass_stats_in = stats ;\n pass1 ( & raw , infile , outfile_arg , encoder , & cfg ) ;\n free ( stats . buf ) ;\n vpx_img_free ( & raw ) ;\n fclose ( infile ) ;\n return EXIT_SUCCESS ;\n }"}
{"idx": 4259, "target": 0, "func": "static PHP_NAMED_FUNCTION ( zif_zip_read ) {\n zval * zip_dp ;\n zip_read_rsrc * zr_rsrc ;\n int ret ;\n zip_rsrc * rsrc_int ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"r\" , & zip_dp ) == FAILURE ) {\n return ;\n }\n ZEND_FETCH_RESOURCE ( rsrc_int , zip_rsrc * , & zip_dp , - 1 , le_zip_dir_name , le_zip_dir ) ;\n if ( rsrc_int && rsrc_int -> za ) {\n if ( rsrc_int -> index_current >= rsrc_int -> num_files ) {\n RETURN_FALSE ;\n }\n zr_rsrc = emalloc ( sizeof ( zip_read_rsrc ) ) ;\n ret = zip_stat_index ( rsrc_int -> za , rsrc_int -> index_current , 0 , & zr_rsrc -> sb ) ;\n if ( ret != 0 ) {\n efree ( zr_rsrc ) ;\n RETURN_FALSE ;\n }\n zr_rsrc -> zf = zip_fopen_index ( rsrc_int -> za , rsrc_int -> index_current , 0 ) ;\n if ( zr_rsrc -> zf ) {\n rsrc_int -> index_current ++ ;\n ZEND_REGISTER_RESOURCE ( return_value , zr_rsrc , le_zip_entry ) ;\n }\n else {\n efree ( zr_rsrc ) ;\n RETURN_FALSE ;\n }\n }\n else {\n RETURN_FALSE ;\n }\n }"}
{"idx": 4260, "target": 1, "func": "int parse_CCategSpec ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree , const char * fmt , ... ) {\n proto_item * item ;\n proto_tree * tree ;\n va_list ap ;\n guint32 type ;\n const char * txt ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CCategSpec , & item , txt ) ;\n type = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_ccategspec_type , tvb , offset , 4 , type ) ;\n proto_item_append_text ( item , \" Type %u\" , type ) ;\n offset += 4 ;\n offset = parse_CSort ( tvb , offset , tree , pad_tree , \"CSort\" ) ;\n offset = parse_CRangeCategSpec ( tvb , offset , tree , pad_tree , \"CRangeCategSpec\" ) ;\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 4261, "target": 0, "func": "static uint64 _tiffSeekProc ( thandle_t fd , uint64 off , int whence ) {\n fd_as_handle_union_t fdh ;\n _TIFF_off_t off_io = ( _TIFF_off_t ) off ;\n if ( ( uint64 ) off_io != off ) {\n errno = EINVAL ;\n return ( uint64 ) - 1 ;\n }\n fdh . h = fd ;\n return ( ( uint64 ) _TIFF_lseek_f ( fdh . fd , off_io , whence ) ) ;\n }"}
{"idx": 4262, "target": 0, "func": "static void * Type_ProfileSequenceDesc_Dup ( struct _cms_typehandler_struct * self , const void * Ptr , cmsUInt32Number n ) {\n return ( void * ) cmsDupProfileSequenceDescription ( ( cmsSEQ * ) Ptr ) ;\n cmsUNUSED_PARAMETER ( n ) ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 4263, "target": 0, "func": "static Int decGetInt ( const decNumber * dn ) {\n Int theInt ;\n const Unit * up ;\n Int got ;\n Int ilength = dn -> digits + dn -> exponent ;\n Flag neg = decNumberIsNegative ( dn ) ;\n # if DEC_MAX_EMAX > 999999999 # error GetInt may need updating [ for Emax ] # endif # if DEC_MIN_EMIN < - 999999999 # error GetInt may need updating [ for Emin ] # endif if ( ISZERO ( dn ) ) return 0 ;\n up = dn -> lsu ;\n theInt = 0 ;\n if ( dn -> exponent >= 0 ) {\n got = dn -> exponent ;\n }\n else {\n Int count = - dn -> exponent ;\n for ( ;\n count >= DECDPUN ;\n up ++ ) {\n if ( * up != 0 ) return BADINT ;\n count -= DECDPUN ;\n }\n if ( count == 0 ) got = 0 ;\n else {\n Int rem ;\n # if DECDPUN <= 4 theInt = QUOT10 ( * up , count ) ;\n rem = * up - theInt * powers [ count ] ;\n # else rem = * up % powers [ count ] ;\n theInt = * up / powers [ count ] ;\n # endif if ( rem != 0 ) return BADINT ;\n got = DECDPUN - count ;\n up ++ ;\n }\n }\n if ( got == 0 ) {\n theInt = * up ;\n got += DECDPUN ;\n up ++ ;\n }\n if ( ilength < 11 ) {\n Int save = theInt ;\n for ( ;\n got < ilength ;\n up ++ ) {\n theInt += * up * powers [ got ] ;\n got += DECDPUN ;\n }\n if ( ilength == 10 ) {\n if ( theInt / ( Int ) powers [ got - DECDPUN ] != ( Int ) * ( up - 1 ) ) ilength = 11 ;\n else if ( neg && theInt > 1999999997 ) ilength = 11 ;\n else if ( ! neg && theInt > 999999999 ) ilength = 11 ;\n if ( ilength == 11 ) theInt = save ;\n }\n }\n if ( ilength > 10 ) {\n if ( theInt & 1 ) return BIGODD ;\n return BIGEVEN ;\n }\n if ( neg ) theInt = - theInt ;\n return theInt ;\n }"}
{"idx": 4264, "target": 0, "func": "static void setup_masks_arabic ( const hb_ot_shape_plan_t * plan , hb_buffer_t * buffer , hb_font_t * font HB_UNUSED ) {\n const arabic_shape_plan_t * arabic_plan = ( const arabic_shape_plan_t * ) plan -> data ;\n setup_masks_arabic_plan ( arabic_plan , buffer , plan -> props . script ) ;\n }"}
{"idx": 4265, "target": 0, "func": "TSReturnCode TSMimeHdrDestroy ( TSMBuffer bufp , TSMLoc obj ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( obj ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( obj ) == TS_SUCCESS ) ) ;\n if ( ! isWriteable ( bufp ) ) {\n return TS_ERROR ;\n }\n MIMEHdrImpl * mh = _hdr_mloc_to_mime_hdr_impl ( obj ) ;\n mime_hdr_destroy ( ( ( HdrHeapSDKHandle * ) bufp ) -> m_heap , mh ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 4266, "target": 0, "func": "void ff_estimate_p_frame_motion ( MpegEncContext * s , int mb_x , int mb_y ) {\n MotionEstContext * const c = & s -> me ;\n uint8_t * pix , * ppix ;\n int sum , mx , my , dmin ;\n int varc ;\n int vard ;\n int P [ 10 ] [ 2 ] ;\n const int shift = 1 + s -> quarter_sample ;\n int mb_type = 0 ;\n Picture * const pic = & s -> current_picture ;\n init_ref ( c , s -> new_picture . f . data , s -> last_picture . f . data , NULL , 16 * mb_x , 16 * mb_y , 0 ) ;\n assert ( s -> quarter_sample == 0 || s -> quarter_sample == 1 ) ;\n assert ( s -> linesize == c -> stride ) ;\n assert ( s -> uvlinesize == c -> uvstride ) ;\n c -> penalty_factor = get_penalty_factor ( s -> lambda , s -> lambda2 , c -> avctx -> me_cmp ) ;\n c -> sub_penalty_factor = get_penalty_factor ( s -> lambda , s -> lambda2 , c -> avctx -> me_sub_cmp ) ;\n c -> mb_penalty_factor = get_penalty_factor ( s -> lambda , s -> lambda2 , c -> avctx -> mb_cmp ) ;\n c -> current_mv_penalty = c -> mv_penalty [ s -> f_code ] + MAX_MV ;\n get_limits ( s , 16 * mb_x , 16 * mb_y ) ;\n c -> skip = 0 ;\n pix = c -> src [ 0 ] [ 0 ] ;\n sum = s -> dsp . pix_sum ( pix , s -> linesize ) ;\n varc = s -> dsp . pix_norm1 ( pix , s -> linesize ) - ( ( ( unsigned ) sum * sum ) >> 8 ) + 500 ;\n pic -> mb_mean [ s -> mb_stride * mb_y + mb_x ] = ( sum + 128 ) >> 8 ;\n pic -> mb_var [ s -> mb_stride * mb_y + mb_x ] = ( varc + 128 ) >> 8 ;\n c -> mb_var_sum_temp += ( varc + 128 ) >> 8 ;\n switch ( s -> me_method ) {\n case ME_ZERO : default : mx = 0 ;\n my = 0 ;\n dmin = 0 ;\n break ;\n case ME_X1 : case ME_EPZS : {\n const int mot_stride = s -> b8_stride ;\n const int mot_xy = s -> block_index [ 0 ] ;\n P_LEFT [ 0 ] = s -> current_picture . motion_val [ 0 ] [ mot_xy - 1 ] [ 0 ] ;\n P_LEFT [ 1 ] = s -> current_picture . motion_val [ 0 ] [ mot_xy - 1 ] [ 1 ] ;\n if ( P_LEFT [ 0 ] > ( c -> xmax << shift ) ) P_LEFT [ 0 ] = ( c -> xmax << shift ) ;\n if ( ! s -> first_slice_line ) {\n P_TOP [ 0 ] = s -> current_picture . motion_val [ 0 ] [ mot_xy - mot_stride ] [ 0 ] ;\n P_TOP [ 1 ] = s -> current_picture . motion_val [ 0 ] [ mot_xy - mot_stride ] [ 1 ] ;\n P_TOPRIGHT [ 0 ] = s -> current_picture . motion_val [ 0 ] [ mot_xy - mot_stride + 2 ] [ 0 ] ;\n P_TOPRIGHT [ 1 ] = s -> current_picture . motion_val [ 0 ] [ mot_xy - mot_stride + 2 ] [ 1 ] ;\n if ( P_TOP [ 1 ] > ( c -> ymax << shift ) ) P_TOP [ 1 ] = ( c -> ymax << shift ) ;\n if ( P_TOPRIGHT [ 0 ] < ( c -> xmin << shift ) ) P_TOPRIGHT [ 0 ] = ( c -> xmin << shift ) ;\n if ( P_TOPRIGHT [ 1 ] > ( c -> ymax << shift ) ) P_TOPRIGHT [ 1 ] = ( c -> ymax << shift ) ;\n P_MEDIAN [ 0 ] = mid_pred ( P_LEFT [ 0 ] , P_TOP [ 0 ] , P_TOPRIGHT [ 0 ] ) ;\n P_MEDIAN [ 1 ] = mid_pred ( P_LEFT [ 1 ] , P_TOP [ 1 ] , P_TOPRIGHT [ 1 ] ) ;\n if ( s -> out_format == FMT_H263 ) {\n c -> pred_x = P_MEDIAN [ 0 ] ;\n c -> pred_y = P_MEDIAN [ 1 ] ;\n }\n else {\n c -> pred_x = P_LEFT [ 0 ] ;\n c -> pred_y = P_LEFT [ 1 ] ;\n }\n }\n else {\n c -> pred_x = P_LEFT [ 0 ] ;\n c -> pred_y = P_LEFT [ 1 ] ;\n }\n }\n dmin = ff_epzs_motion_search ( s , & mx , & my , P , 0 , 0 , s -> p_mv_table , ( 1 << 16 ) >> shift , 0 , 16 ) ;\n break ;\n }\n ppix = c -> ref [ 0 ] [ 0 ] + ( my * s -> linesize ) + mx ;\n vard = s -> dsp . sse [ 0 ] ( NULL , pix , ppix , s -> linesize , 16 ) ;\n pic -> mc_mb_var [ s -> mb_stride * mb_y + mb_x ] = ( vard + 128 ) >> 8 ;\n c -> mc_mb_var_sum_temp += ( vard + 128 ) >> 8 ;\n if ( mb_type ) {\n int p_score = FFMIN ( vard , varc - 500 + ( s -> lambda2 >> FF_LAMBDA_SHIFT ) * 100 ) ;\n int i_score = varc - 500 + ( s -> lambda2 >> FF_LAMBDA_SHIFT ) * 20 ;\n c -> scene_change_score += ff_sqrt ( p_score ) - ff_sqrt ( i_score ) ;\n if ( mb_type == CANDIDATE_MB_TYPE_INTER ) {\n c -> sub_motion_search ( s , & mx , & my , dmin , 0 , 0 , 0 , 16 ) ;\n set_p_mv_tables ( s , mx , my , 1 ) ;\n }\n else {\n mx <<= shift ;\n my <<= shift ;\n }\n if ( mb_type == CANDIDATE_MB_TYPE_INTER4V ) {\n h263_mv4_search ( s , mx , my , shift ) ;\n set_p_mv_tables ( s , mx , my , 0 ) ;\n }\n if ( mb_type == CANDIDATE_MB_TYPE_INTER_I ) {\n interlaced_search ( s , 0 , s -> p_field_mv_table , s -> p_field_select_table , mx , my , 1 ) ;\n }\n }\n else if ( c -> avctx -> mb_decision > FF_MB_DECISION_SIMPLE ) {\n int p_score = FFMIN ( vard , varc - 500 + ( s -> lambda2 >> FF_LAMBDA_SHIFT ) * 100 ) ;\n int i_score = varc - 500 + ( s -> lambda2 >> FF_LAMBDA_SHIFT ) * 20 ;\n c -> scene_change_score += ff_sqrt ( p_score ) - ff_sqrt ( i_score ) ;\n if ( vard * 2 + 200 * 256 > varc ) mb_type |= CANDIDATE_MB_TYPE_INTRA ;\n if ( varc * 2 + 200 * 256 > vard || s -> qscale > 24 ) {\n mb_type |= CANDIDATE_MB_TYPE_INTER ;\n c -> sub_motion_search ( s , & mx , & my , dmin , 0 , 0 , 0 , 16 ) ;\n if ( s -> flags & CODEC_FLAG_MV0 ) if ( mx || my ) mb_type |= CANDIDATE_MB_TYPE_SKIPPED ;\n }\n else {\n mx <<= shift ;\n my <<= shift ;\n }\n if ( ( s -> flags & CODEC_FLAG_4MV ) && ! c -> skip && varc > 50 << 8 && vard > 10 << 8 ) {\n if ( h263_mv4_search ( s , mx , my , shift ) < INT_MAX ) mb_type |= CANDIDATE_MB_TYPE_INTER4V ;\n set_p_mv_tables ( s , mx , my , 0 ) ;\n }\n else set_p_mv_tables ( s , mx , my , 1 ) ;\n if ( ( s -> flags & CODEC_FLAG_INTERLACED_ME ) && ! c -> skip ) {\n if ( interlaced_search ( s , 0 , s -> p_field_mv_table , s -> p_field_select_table , mx , my , 0 ) < INT_MAX ) mb_type |= CANDIDATE_MB_TYPE_INTER_I ;\n }\n }\n else {\n int intra_score , i ;\n mb_type = CANDIDATE_MB_TYPE_INTER ;\n dmin = c -> sub_motion_search ( s , & mx , & my , dmin , 0 , 0 , 0 , 16 ) ;\n if ( c -> avctx -> me_sub_cmp != c -> avctx -> mb_cmp && ! c -> skip ) dmin = get_mb_score ( s , mx , my , 0 , 0 , 0 , 16 , 1 ) ;\n if ( ( s -> flags & CODEC_FLAG_4MV ) && ! c -> skip && varc > 50 << 8 && vard > 10 << 8 ) {\n int dmin4 = h263_mv4_search ( s , mx , my , shift ) ;\n if ( dmin4 < dmin ) {\n mb_type = CANDIDATE_MB_TYPE_INTER4V ;\n dmin = dmin4 ;\n }\n }\n if ( ( s -> flags & CODEC_FLAG_INTERLACED_ME ) && ! c -> skip ) {\n int dmin_i = interlaced_search ( s , 0 , s -> p_field_mv_table , s -> p_field_select_table , mx , my , 0 ) ;\n if ( dmin_i < dmin ) {\n mb_type = CANDIDATE_MB_TYPE_INTER_I ;\n dmin = dmin_i ;\n }\n }\n set_p_mv_tables ( s , mx , my , mb_type != CANDIDATE_MB_TYPE_INTER4V ) ;\n if ( ( c -> avctx -> mb_cmp & 0xFF ) == FF_CMP_SSE ) {\n intra_score = varc - 500 ;\n }\n else {\n unsigned mean = ( sum + 128 ) >> 8 ;\n mean *= 0x01010101 ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n * ( uint32_t * ) ( & c -> scratchpad [ i * s -> linesize + 0 ] ) = mean ;\n * ( uint32_t * ) ( & c -> scratchpad [ i * s -> linesize + 4 ] ) = mean ;\n * ( uint32_t * ) ( & c -> scratchpad [ i * s -> linesize + 8 ] ) = mean ;\n * ( uint32_t * ) ( & c -> scratchpad [ i * s -> linesize + 12 ] ) = mean ;\n }\n intra_score = s -> dsp . mb_cmp [ 0 ] ( s , c -> scratchpad , pix , s -> linesize , 16 ) ;\n }\n intra_score += c -> mb_penalty_factor * 16 ;\n if ( intra_score < dmin ) {\n mb_type = CANDIDATE_MB_TYPE_INTRA ;\n s -> current_picture . mb_type [ mb_y * s -> mb_stride + mb_x ] = CANDIDATE_MB_TYPE_INTRA ;\n }\n else s -> current_picture . mb_type [ mb_y * s -> mb_stride + mb_x ] = 0 ;\n {\n int p_score = FFMIN ( vard , varc - 500 + ( s -> lambda2 >> FF_LAMBDA_SHIFT ) * 100 ) ;\n int i_score = varc - 500 + ( s -> lambda2 >> FF_LAMBDA_SHIFT ) * 20 ;\n c -> scene_change_score += ff_sqrt ( p_score ) - ff_sqrt ( i_score ) ;\n }\n }\n s -> mb_type [ mb_y * s -> mb_stride + mb_x ] = mb_type ;\n }"}
{"idx": 4267, "target": 0, "func": "void RECORD_LAYER_clear ( RECORD_LAYER * rl ) {\n unsigned int pipes ;\n rl -> rstate = SSL_ST_READ_HEADER ;\n rl -> packet = NULL ;\n rl -> packet_length = 0 ;\n rl -> wnum = 0 ;\n memset ( rl -> alert_fragment , 0 , sizeof ( rl -> alert_fragment ) ) ;\n rl -> alert_fragment_len = 0 ;\n memset ( rl -> handshake_fragment , 0 , sizeof ( rl -> handshake_fragment ) ) ;\n rl -> handshake_fragment_len = 0 ;\n rl -> wpend_tot = 0 ;\n rl -> wpend_type = 0 ;\n rl -> wpend_ret = 0 ;\n rl -> wpend_buf = NULL ;\n SSL3_BUFFER_clear ( & rl -> rbuf ) ;\n for ( pipes = 0 ;\n pipes < rl -> numwpipes ;\n pipes ++ ) SSL3_BUFFER_clear ( & rl -> wbuf [ pipes ] ) ;\n rl -> numwpipes = 0 ;\n rl -> numrpipes = 0 ;\n SSL3_RECORD_clear ( rl -> rrec , SSL_MAX_PIPELINES ) ;\n RECORD_LAYER_reset_read_sequence ( rl ) ;\n RECORD_LAYER_reset_write_sequence ( rl ) ;\n if ( rl -> d ) DTLS_RECORD_LAYER_clear ( rl ) ;\n }"}
{"idx": 4268, "target": 0, "func": "static VALUE ossl_asn1_ ## klass ( int argc , VALUE * argv , VALUE self ) \\ {\n return rb_funcall3 ( cASN1 ## klass , rb_intern ( \"new\" ) , argc , argv ) ;\n }\n OSSL_ASN1_IMPL_FACTORY_METHOD ( Boolean ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Integer ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Enumerated ) OSSL_ASN1_IMPL_FACTORY_METHOD ( BitString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( OctetString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( UTF8String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( NumericString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( PrintableString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( T61String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( VideotexString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( IA5String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( GraphicString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( ISO64String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( GeneralString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( UniversalString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( BMPString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Null ) OSSL_ASN1_IMPL_FACTORY_METHOD ( ObjectId ) OSSL_ASN1_IMPL_FACTORY_METHOD ( UTCTime ) OSSL_ASN1_IMPL_FACTORY_METHOD ( GeneralizedTime ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Sequence ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Set ) OSSL_ASN1_IMPL_FACTORY_METHOD ( EndOfContent )"}
{"idx": 4269, "target": 0, "func": "void evdns_search_clear ( void ) {\n search_postfix_clear ( ) ;\n }"}
{"idx": 4270, "target": 0, "func": "static void set_digit ( unsigned char * p , size_t s , int value ) {\n while ( s -- ) {\n p [ s ] = '0' + ( value % 10 ) ;\n value /= 10 ;\n }\n }"}
{"idx": 4271, "target": 0, "func": "static void dumpUserConfig ( PGconn * conn , const char * username ) {\n PQExpBuffer buf = createPQExpBuffer ( ) ;\n int count = 1 ;\n for ( ;\n ;\n ) {\n PGresult * res ;\n if ( server_version >= 90000 ) printfPQExpBuffer ( buf , \"SELECT setconfig[%d] FROM pg_db_role_setting WHERE \" \"setdatabase = 0 AND setrole = \" \"(SELECT oid FROM pg_authid WHERE rolname = \" , count ) ;\n else if ( server_version >= 80100 ) printfPQExpBuffer ( buf , \"SELECT rolconfig[%d] FROM pg_authid WHERE rolname = \" , count ) ;\n else printfPQExpBuffer ( buf , \"SELECT useconfig[%d] FROM pg_shadow WHERE usename = \" , count ) ;\n appendStringLiteralConn ( buf , username , conn ) ;\n if ( server_version >= 90000 ) appendPQExpBufferChar ( buf , ')' ) ;\n res = executeQuery ( conn , buf -> data ) ;\n if ( PQntuples ( res ) == 1 && ! PQgetisnull ( res , 0 , 0 ) ) {\n makeAlterConfigCommand ( conn , PQgetvalue ( res , 0 , 0 ) , \"ROLE\" , username , NULL , NULL ) ;\n PQclear ( res ) ;\n count ++ ;\n }\n else {\n PQclear ( res ) ;\n break ;\n }\n }\n destroyPQExpBuffer ( buf ) ;\n }"}
{"idx": 4272, "target": 0, "func": "static uint64_t gic_do_cpu_read ( void * opaque , hwaddr addr , unsigned size ) {\n GICState * * backref = ( GICState * * ) opaque ;\n GICState * s = * backref ;\n int id = ( backref - s -> backref ) ;\n return gic_cpu_read ( s , id , addr ) ;\n }"}
{"idx": 4273, "target": 0, "func": "void TSCacheHttpInfoReqGet ( TSCacheHttpInfo infop , TSMBuffer * bufp , TSMLoc * obj ) {\n CacheHTTPInfo * info = ( CacheHTTPInfo * ) infop ;\n * ( reinterpret_cast < HTTPHdr * * > ( bufp ) ) = info -> request_get ( ) ;\n * obj = reinterpret_cast < TSMLoc > ( info -> request_get ( ) -> m_http ) ;\n sdk_assert ( sdk_sanity_check_mbuffer ( * bufp ) == TS_SUCCESS ) ;\n }"}
{"idx": 4274, "target": 0, "func": "static void create_task_thread_func ( GTask * task , gpointer source_object , gpointer task_data , GCancellable * cancellable ) {\n CreateJob * job ;\n CommonJob * common ;\n int count ;\n GFile * dest ;\n g_autofree gchar * dest_uri = NULL ;\n char * basename ;\n char * filename , * filename2 , * new_filename ;\n char * filename_base , * suffix ;\n char * dest_fs_type ;\n GError * error ;\n gboolean res ;\n gboolean filename_is_utf8 ;\n char * primary , * secondary , * details ;\n int response ;\n char * data ;\n int length ;\n GFileOutputStream * out ;\n gboolean handled_invalid_filename ;\n int max_length , offset ;\n job = task_data ;\n common = & job -> common ;\n nautilus_progress_info_start ( job -> common . progress ) ;\n handled_invalid_filename = FALSE ;\n dest_fs_type = NULL ;\n filename = NULL ;\n dest = NULL ;\n max_length = get_max_name_length ( job -> dest_dir ) ;\n verify_destination ( common , job -> dest_dir , NULL , - 1 ) ;\n if ( job_aborted ( common ) ) {\n goto aborted ;\n }\n filename = g_strdup ( job -> filename ) ;\n filename_is_utf8 = FALSE ;\n if ( filename ) {\n filename_is_utf8 = g_utf8_validate ( filename , - 1 , NULL ) ;\n }\n if ( filename == NULL ) {\n if ( job -> make_dir ) {\n filename = g_strdup ( _ ( \"Untitled Folder\" ) ) ;\n filename_is_utf8 = TRUE ;\n }\n else {\n if ( job -> src != NULL ) {\n basename = g_file_get_basename ( job -> src ) ;\n filename = g_strdup_printf ( \"%s\" , basename ) ;\n g_free ( basename ) ;\n }\n if ( filename == NULL ) {\n filename = g_strdup ( _ ( \"Untitled Document\" ) ) ;\n filename_is_utf8 = TRUE ;\n }\n }\n }\n make_file_name_valid_for_dest_fs ( filename , dest_fs_type ) ;\n if ( filename_is_utf8 ) {\n dest = g_file_get_child_for_display_name ( job -> dest_dir , filename , NULL ) ;\n }\n if ( dest == NULL ) {\n dest = g_file_get_child ( job -> dest_dir , filename ) ;\n }\n count = 1 ;\n retry : error = NULL ;\n if ( job -> make_dir ) {\n res = g_file_make_directory ( dest , common -> cancellable , & error ) ;\n if ( res ) {\n GFile * real ;\n real = map_possibly_volatile_file_to_real ( dest , common -> cancellable , & error ) ;\n if ( real == NULL ) {\n res = FALSE ;\n }\n else {\n g_object_unref ( dest ) ;\n dest = real ;\n }\n }\n if ( res && common -> undo_info != NULL ) {\n nautilus_file_undo_info_create_set_data ( NAUTILUS_FILE_UNDO_INFO_CREATE ( common -> undo_info ) , dest , NULL , 0 ) ;\n }\n }\n else {\n if ( job -> src ) {\n res = g_file_copy ( job -> src , dest , G_FILE_COPY_NONE , common -> cancellable , NULL , NULL , & error ) ;\n if ( res ) {\n GFile * real ;\n real = map_possibly_volatile_file_to_real ( dest , common -> cancellable , & error ) ;\n if ( real == NULL ) {\n res = FALSE ;\n }\n else {\n g_object_unref ( dest ) ;\n dest = real ;\n }\n }\n if ( res && common -> undo_info != NULL ) {\n gchar * uri ;\n uri = g_file_get_uri ( job -> src ) ;\n nautilus_file_undo_info_create_set_data ( NAUTILUS_FILE_UNDO_INFO_CREATE ( common -> undo_info ) , dest , uri , 0 ) ;\n g_free ( uri ) ;\n }\n }\n else {\n data = \"\" ;\n length = 0 ;\n if ( job -> src_data ) {\n data = job -> src_data ;\n length = job -> length ;\n }\n out = g_file_create ( dest , G_FILE_CREATE_NONE , common -> cancellable , & error ) ;\n if ( out ) {\n GFile * real ;\n real = map_possibly_volatile_file_to_real_on_write ( dest , out , common -> cancellable , & error ) ;\n if ( real == NULL ) {\n res = FALSE ;\n g_object_unref ( out ) ;\n }\n else {\n g_object_unref ( dest ) ;\n dest = real ;\n res = g_output_stream_write_all ( G_OUTPUT_STREAM ( out ) , data , length , NULL , common -> cancellable , & error ) ;\n if ( res ) {\n res = g_output_stream_close ( G_OUTPUT_STREAM ( out ) , common -> cancellable , & error ) ;\n if ( res && common -> undo_info != NULL ) {\n nautilus_file_undo_info_create_set_data ( NAUTILUS_FILE_UNDO_INFO_CREATE ( common -> undo_info ) , dest , data , length ) ;\n }\n }\n g_object_unref ( out ) ;\n }\n }\n else {\n res = FALSE ;\n }\n }\n }\n if ( res ) {\n job -> created_file = g_object_ref ( dest ) ;\n nautilus_file_changes_queue_file_added ( dest ) ;\n dest_uri = g_file_get_uri ( dest ) ;\n if ( job -> has_position ) {\n nautilus_file_changes_queue_schedule_position_set ( dest , job -> position , common -> screen_num ) ;\n }\n else if ( eel_uri_is_desktop ( dest_uri ) ) {\n nautilus_file_changes_queue_schedule_position_remove ( dest ) ;\n }\n }\n else {\n g_assert ( error != NULL ) ;\n if ( IS_IO_ERROR ( error , INVALID_FILENAME ) && ! handled_invalid_filename ) {\n handled_invalid_filename = TRUE ;\n g_assert ( dest_fs_type == NULL ) ;\n dest_fs_type = query_fs_type ( job -> dest_dir , common -> cancellable ) ;\n if ( count == 1 ) {\n new_filename = g_strdup ( filename ) ;\n }\n else {\n filename_base = eel_filename_strip_extension ( filename ) ;\n offset = strlen ( filename_base ) ;\n suffix = g_strdup ( filename + offset ) ;\n filename2 = g_strdup_printf ( \"%s %d%s\" , filename_base , count , suffix ) ;\n new_filename = NULL ;\n if ( max_length > 0 && strlen ( filename2 ) > max_length ) {\n new_filename = shorten_utf8_string ( filename2 , strlen ( filename2 ) - max_length ) ;\n }\n if ( new_filename == NULL ) {\n new_filename = g_strdup ( filename2 ) ;\n }\n g_free ( filename2 ) ;\n g_free ( suffix ) ;\n }\n if ( make_file_name_valid_for_dest_fs ( new_filename , dest_fs_type ) ) {\n g_object_unref ( dest ) ;\n if ( filename_is_utf8 ) {\n dest = g_file_get_child_for_display_name ( job -> dest_dir , new_filename , NULL ) ;\n }\n if ( dest == NULL ) {\n dest = g_file_get_child ( job -> dest_dir , new_filename ) ;\n }\n g_free ( new_filename ) ;\n g_error_free ( error ) ;\n goto retry ;\n }\n g_free ( new_filename ) ;\n }\n if ( IS_IO_ERROR ( error , EXISTS ) ) {\n g_object_unref ( dest ) ;\n dest = NULL ;\n filename_base = eel_filename_strip_extension ( filename ) ;\n offset = strlen ( filename_base ) ;\n suffix = g_strdup ( filename + offset ) ;\n filename2 = g_strdup_printf ( \"%s %d%s\" , filename_base , ++ count , suffix ) ;\n if ( max_length > 0 && strlen ( filename2 ) > max_length ) {\n new_filename = shorten_utf8_string ( filename2 , strlen ( filename2 ) - max_length ) ;\n if ( new_filename != NULL ) {\n g_free ( filename2 ) ;\n filename2 = new_filename ;\n }\n }\n make_file_name_valid_for_dest_fs ( filename2 , dest_fs_type ) ;\n if ( filename_is_utf8 ) {\n dest = g_file_get_child_for_display_name ( job -> dest_dir , filename2 , NULL ) ;\n }\n if ( dest == NULL ) {\n dest = g_file_get_child ( job -> dest_dir , filename2 ) ;\n }\n g_free ( filename2 ) ;\n g_free ( suffix ) ;\n g_error_free ( error ) ;\n goto retry ;\n }\n else if ( IS_IO_ERROR ( error , CANCELLED ) ) {\n g_error_free ( error ) ;\n }\n else {\n if ( job -> make_dir ) {\n primary = f ( _ ( \"Error while creating directory %B.\" ) , dest ) ;\n }\n else {\n primary = f ( _ ( \"Error while creating file %B.\" ) , dest ) ;\n }\n secondary = f ( _ ( \"There was an error creating the directory in %F.\" ) , job -> dest_dir ) ;\n details = error -> message ;\n response = run_warning ( common , primary , secondary , details , FALSE , CANCEL , SKIP , NULL ) ;\n g_error_free ( error ) ;\n if ( response == 0 || response == GTK_RESPONSE_DELETE_EVENT ) {\n abort_job ( common ) ;\n }\n else if ( response == 1 ) {\n }\n else {\n g_assert_not_reached ( ) ;\n }\n }\n }\n aborted : if ( dest ) {\n g_object_unref ( dest ) ;\n }\n g_free ( filename ) ;\n g_free ( dest_fs_type ) ;\n }"}
{"idx": 4275, "target": 0, "func": "static void dissect_wbxml_common ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , const wbxml_decoding * override_content_map ) {\n proto_item * ti ;\n proto_tree * wbxml_tree ;\n proto_tree * wbxml_str_tbl_tree ;\n proto_tree * wbxml_content_tree ;\n guint8 version ;\n guint offset = 0 ;\n guint32 len ;\n guint32 charset = 0 ;\n guint32 charset_len = 0 ;\n guint32 publicid ;\n guint32 publicid_index = 0 ;\n guint32 publicid_len ;\n guint32 str_tbl ;\n guint32 str_tbl_len ;\n guint32 str_tbl_len_len = 0 ;\n guint8 level = 0 ;\n const wbxml_decoding * content_map = NULL ;\n gchar * summary = NULL ;\n guint8 codepage_stag = 0 ;\n guint8 codepage_attr = 0 ;\n DebugLog ( ( \"dissect_wbxml: Dissecting packet %u\\n\" , pinfo -> fd -> num ) ) ;\n switch ( version = tvb_get_guint8 ( tvb , 0 ) ) {\n case 0x00 : break ;\n case 0x01 : case 0x02 : case 0x03 : break ;\n default : col_append_fstr ( pinfo -> cinfo , COL_INFO , \" (Unknown WBXML version 0x%02x)\" , version ) ;\n ti = proto_tree_add_item ( tree , proto_wbxml , tvb , 0 , - 1 , ENC_NA ) ;\n proto_item_append_text ( ti , \", Unknown version 0x%02x\" , version ) ;\n return ;\n }\n publicid = tvb_get_guintvar ( tvb , 1 , & publicid_len ) ;\n if ( ! publicid ) {\n publicid_index = tvb_get_guintvar ( tvb , 1 + publicid_len , & len ) ;\n publicid_len += len ;\n }\n offset = 1 + publicid_len ;\n switch ( version ) {\n case 0x00 : break ;\n case 0x01 : case 0x02 : case 0x03 : charset = tvb_get_guintvar ( tvb , offset , & charset_len ) ;\n offset += charset_len ;\n break ;\n default : DISSECTOR_ASSERT_NOT_REACHED ( ) ;\n break ;\n }\n tvb_get_guintvar ( tvb , offset , & str_tbl_len_len ) ;\n str_tbl = offset + str_tbl_len_len ;\n if ( publicid ) {\n summary = wmem_strdup_printf ( wmem_packet_scope ( ) , \"%s, Public ID: \\\"%s\\\"\" , val_to_str_ext ( version , & vals_wbxml_versions_ext , \"(unknown 0x%x)\" ) , val_to_str_ext ( publicid , & vals_wbxml_public_ids_ext , \"(unknown 0x%x)\" ) ) ;\n }\n else {\n len = tvb_strsize ( tvb , str_tbl + publicid_index ) ;\n summary = wmem_strdup_printf ( wmem_packet_scope ( ) , \"%s, Public ID: \\\"%s\\\"\" , val_to_str_ext ( version , & vals_wbxml_versions_ext , \"(unknown 0x%x)\" ) , tvb_format_text ( tvb , str_tbl + publicid_index , len - 1 ) ) ;\n }\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" (WBXML %s)\" , summary ) ;\n ti = proto_tree_add_item ( tree , proto_wbxml , tvb , 0 , - 1 , ENC_NA ) ;\n proto_item_append_text ( ti , \", Version: %s\" , summary ) ;\n if ( tree ) {\n wbxml_tree = proto_item_add_subtree ( ti , ett_wbxml ) ;\n proto_tree_add_uint ( wbxml_tree , hf_wbxml_version , tvb , 0 , 1 , version ) ;\n if ( publicid ) {\n proto_tree_add_uint ( wbxml_tree , hf_wbxml_public_id_known , tvb , 1 , publicid_len , publicid ) ;\n }\n else {\n proto_tree_add_item ( wbxml_tree , hf_wbxml_public_id_literal , tvb , 1 , publicid_len , ENC_ASCII | ENC_NA ) ;\n }\n offset = 1 + publicid_len ;\n if ( version ) {\n proto_tree_add_uint ( wbxml_tree , hf_wbxml_charset , tvb , 1 + publicid_len , charset_len , charset ) ;\n offset += charset_len ;\n }\n str_tbl_len = tvb_get_guintvar ( tvb , offset , & len ) ;\n str_tbl = offset + len ;\n ti = proto_tree_add_text ( wbxml_tree , tvb , offset , len + str_tbl_len , \"String table: %u bytes\" , str_tbl_len ) ;\n if ( wbxml_tree && str_tbl_len ) {\n wbxml_str_tbl_tree = proto_item_add_subtree ( ti , ett_wbxml_str_tbl ) ;\n show_wbxml_string_table ( wbxml_str_tbl_tree , tvb , str_tbl , str_tbl_len ) ;\n }\n offset += len + str_tbl_len ;\n if ( disable_wbxml_token_parsing ) {\n proto_tree_add_text ( wbxml_tree , tvb , offset , - 1 , \"Data representation not shown \" \"(edit WBXML preferences to show)\" ) ;\n return ;\n }\n ti = proto_tree_add_text ( wbxml_tree , tvb , offset , - 1 , \"Data representation\" ) ;\n wbxml_content_tree = proto_item_add_subtree ( ti , ett_wbxml_content ) ;\n if ( wbxml_tree ) {\n if ( override_content_map != NULL ) {\n content_map = override_content_map ;\n proto_item_append_text ( ti , \" is based on: %s\" , content_map -> name ) ;\n }\n else {\n content_map = get_wbxml_decoding_from_public_id ( publicid ) ;\n if ( ! content_map ) {\n content_map = get_wbxml_decoding_from_content_type ( pinfo -> match_string , tvb , offset ) ;\n if ( ! content_map ) {\n proto_tree_add_text ( wbxml_content_tree , tvb , offset , - 1 , \"[Rendering of this content type\" \" not (yet) supported]\" ) ;\n }\n else {\n proto_item_append_text ( ti , \" is based on Content-Type: %s \" \"(chosen decoding: %s)\" , pinfo -> match_string , content_map -> name ) ;\n }\n }\n }\n if ( content_map && skip_wbxml_token_mapping ) {\n proto_tree_add_text ( wbxml_content_tree , tvb , offset , - 1 , \"[Rendering of this content type\" \" has been disabled \" \"(edit WBXML preferences to enable)]\" ) ;\n content_map = NULL ;\n }\n proto_tree_add_text ( wbxml_content_tree , tvb , offset , - 1 , \"Level | State | Codepage \" \"| WBXML Token Description \" \"| Rendering\" ) ;\n if ( content_map ) {\n len = parse_wbxml_tag_defined ( wbxml_content_tree , tvb , offset , str_tbl , & level , & codepage_stag , & codepage_attr , content_map ) ;\n }\n else {\n len = parse_wbxml_tag ( wbxml_content_tree , tvb , offset , str_tbl , & level , & codepage_stag , & codepage_attr ) ;\n }\n }\n return ;\n }\n }"}
{"idx": 4276, "target": 0, "func": "static GURL ToAndFromOriginIdentifier ( const GURL origin_url ) {\n std : : string id = webkit_database : : GetIdentifierFromOrigin ( origin_url ) ;\n return webkit_database : : GetOriginFromIdentifier ( id ) ;\n }"}
{"idx": 4277, "target": 0, "func": "static int dissect_h245_RequestMultiplexEntryReject ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_RequestMultiplexEntryReject , RequestMultiplexEntryReject_sequence ) ;\n return offset ;\n }"}
{"idx": 4278, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n CamtasiaContext * const c = avctx -> priv_data ;\n const unsigned char * encoded = buf ;\n AVFrame * frame = data ;\n int zret ;\n int ret , len = buf_size ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n zret = inflateReset ( & c -> zstream ) ;\n if ( zret != Z_OK ) {\n av_log ( avctx , AV_LOG_ERROR , \"Inflate reset error: %d\\n\" , zret ) ;\n return AVERROR_UNKNOWN ;\n }\n c -> zstream . next_in = encoded ;\n c -> zstream . avail_in = len ;\n c -> zstream . next_out = c -> decomp_buf ;\n c -> zstream . avail_out = c -> decomp_size ;\n zret = inflate ( & c -> zstream , Z_FINISH ) ;\n if ( ( zret != Z_OK ) && ( zret != Z_STREAM_END ) && ( zret != Z_DATA_ERROR ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Inflate error: %d\\n\" , zret ) ;\n return AVERROR_UNKNOWN ;\n }\n if ( zret != Z_DATA_ERROR ) {\n bytestream2_init ( & c -> gb , c -> decomp_buf , c -> decomp_size - c -> zstream . avail_out ) ;\n ff_msrle_decode ( avctx , ( AVPicture * ) frame , c -> bpp , & c -> gb ) ;\n }\n if ( c -> avctx -> pix_fmt == AV_PIX_FMT_PAL8 ) {\n const uint8_t * pal = av_packet_get_side_data ( avpkt , AV_PKT_DATA_PALETTE , NULL ) ;\n if ( pal ) {\n frame -> palette_has_changed = 1 ;\n memcpy ( c -> pal , pal , AVPALETTE_SIZE ) ;\n }\n memcpy ( frame -> data [ 1 ] , c -> pal , AVPALETTE_SIZE ) ;\n }\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 4279, "target": 0, "func": "static void usb_xhci_exit ( PCIDevice * dev ) {\n int i ;\n XHCIState * xhci = XHCI ( dev ) ;\n trace_usb_xhci_exit ( ) ;\n for ( i = 0 ;\n i < xhci -> numslots ;\n i ++ ) {\n xhci_disable_slot ( xhci , i + 1 ) ;\n }\n if ( xhci -> mfwrap_timer ) {\n timer_del ( xhci -> mfwrap_timer ) ;\n timer_free ( xhci -> mfwrap_timer ) ;\n xhci -> mfwrap_timer = NULL ;\n }\n memory_region_del_subregion ( & xhci -> mem , & xhci -> mem_cap ) ;\n memory_region_del_subregion ( & xhci -> mem , & xhci -> mem_oper ) ;\n memory_region_del_subregion ( & xhci -> mem , & xhci -> mem_runtime ) ;\n memory_region_del_subregion ( & xhci -> mem , & xhci -> mem_doorbell ) ;\n for ( i = 0 ;\n i < xhci -> numports ;\n i ++ ) {\n XHCIPort * port = & xhci -> ports [ i ] ;\n memory_region_del_subregion ( & xhci -> mem , & port -> mem ) ;\n }\n if ( dev -> msix_table && dev -> msix_pba && dev -> msix_entry_used ) {\n msix_uninit ( dev , & xhci -> mem , & xhci -> mem ) ;\n }\n usb_bus_release ( & xhci -> bus ) ;\n }"}
{"idx": 4280, "target": 0, "func": "double tlist_returns_set_rows ( List * tlist ) {\n double result = 1 ;\n ListCell * lc ;\n foreach ( lc , tlist ) {\n TargetEntry * tle = ( TargetEntry * ) lfirst ( lc ) ;\n double colresult ;\n colresult = expression_returns_set_rows ( ( Node * ) tle -> expr ) ;\n if ( result < colresult ) result = colresult ;\n }\n return result ;\n }"}
{"idx": 4281, "target": 0, "func": "static cmsTagTypeSignature DecideCurveType ( cmsFloat64Number ICCVersion , const void * Data ) {\n cmsToneCurve * Curve = ( cmsToneCurve * ) Data ;\n if ( ICCVersion < 4.0 ) return cmsSigCurveType ;\n if ( Curve -> nSegments != 1 ) return cmsSigCurveType ;\n if ( Curve -> Segments [ 0 ] . Type < 0 ) return cmsSigCurveType ;\n if ( Curve -> Segments [ 0 ] . Type > 5 ) return cmsSigCurveType ;\n return cmsSigParametricCurveType ;\n }"}
{"idx": 4282, "target": 0, "func": "static void convolve_avg_horiz ( const uint8_t * src , ptrdiff_t src_stride , uint8_t * dst , ptrdiff_t dst_stride , const InterpKernel * x_filters , int x0_q4 , int x_step_q4 , int w , int h ) {\n int x , y ;\n src -= SUBPEL_TAPS / 2 - 1 ;\n for ( y = 0 ;\n y < h ;\n ++ y ) {\n int x_q4 = x0_q4 ;\n for ( x = 0 ;\n x < w ;\n ++ x ) {\n const uint8_t * const src_x = & src [ x_q4 >> SUBPEL_BITS ] ;\n const int16_t * const x_filter = x_filters [ x_q4 & SUBPEL_MASK ] ;\n int k , sum = 0 ;\n for ( k = 0 ;\n k < SUBPEL_TAPS ;\n ++ k ) sum += src_x [ k ] * x_filter [ k ] ;\n dst [ x ] = ROUND_POWER_OF_TWO ( dst [ x ] + clip_pixel ( ROUND_POWER_OF_TWO ( sum , FILTER_BITS ) ) , 1 ) ;\n x_q4 += x_step_q4 ;\n }\n src += src_stride ;\n dst += dst_stride ;\n }\n }"}
{"idx": 4283, "target": 0, "func": "int PEM_write_ ## name ( FILE * fp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # endif # define DECLARE_PEM_read_bio ( name , type ) type * PEM_read_bio_ ## name ( BIO * bp , type * * x , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL ) DECLARE_PEM_rw ( PKCS7 , PKCS7 ) DECLARE_PEM_rw ( NETSCAPE_CERT_SEQUENCE , NETSCAPE_CERT_SEQUENCE ) DECLARE_PEM_rw ( PKCS8 , X509_SIG ) DECLARE_PEM_rw ( PKCS8_PRIV_KEY_INFO , PKCS8_PRIV_KEY_INFO ) # ifndef OPENSSL_NO_RSA DECLARE_PEM_rw_cb ( RSAPrivateKey , RSA ) DECLARE_PEM_rw_const ( RSAPublicKey , RSA ) DECLARE_PEM_rw ( RSA_PUBKEY , RSA ) # endif # ifndef OPENSSL_NO_DSA DECLARE_PEM_rw_cb ( DSAPrivateKey , DSA ) DECLARE_PEM_rw ( DSA_PUBKEY , DSA ) DECLARE_PEM_rw_const ( DSAparams , DSA ) # endif # ifndef OPENSSL_NO_EC DECLARE_PEM_rw_const ( ECPKParameters , EC_GROUP ) DECLARE_PEM_rw_cb ( ECPrivateKey , EC_KEY ) DECLARE_PEM_rw ( EC_PUBKEY , EC_KEY ) # endif # ifndef OPENSSL_NO_DH DECLARE_PEM_rw_const ( DHparams , DH ) DECLARE_PEM_write_const ( DHxparams , DH ) # endif DECLARE_PEM_rw_cb ( PrivateKey , EVP_PKEY )"}
{"idx": 4284, "target": 0, "func": "static void netbios_no_receive_flags ( tvbuff_t * tvb , proto_tree * tree , int offset ) {\n proto_tree * field_tree ;\n proto_item * tf ;\n tf = proto_tree_add_item ( tree , hf_netbios_no_receive_flags , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n field_tree = proto_item_add_subtree ( tf , ett_netb_flags ) ;\n proto_tree_add_item ( field_tree , hf_netbios_no_receive_flags_send_no_ack , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n }"}
{"idx": 4285, "target": 0, "func": "static void write_modes_b ( VP9_COMP * cpi , const TileInfo * const tile , vp9_writer * w , TOKENEXTRA * * tok , const TOKENEXTRA * const tok_end , int mi_row , int mi_col ) {\n const VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCKD * const xd = & cpi -> mb . e_mbd ;\n MODE_INFO * m ;\n xd -> mi = cm -> mi + ( mi_row * cm -> mi_stride + mi_col ) ;\n m = xd -> mi ;\n set_mi_row_col ( xd , tile , mi_row , num_8x8_blocks_high_lookup [ m -> mbmi . sb_type ] , mi_col , num_8x8_blocks_wide_lookup [ m -> mbmi . sb_type ] , cm -> mi_rows , cm -> mi_cols ) ;\n if ( frame_is_intra_only ( cm ) ) {\n write_mb_modes_kf ( cm , xd , xd -> mi , w ) ;\n }\n else {\n pack_inter_mode_mvs ( cpi , m , w ) ;\n }\n assert ( * tok < tok_end ) ;\n pack_mb_tokens ( w , tok , tok_end ) ;\n }"}
{"idx": 4286, "target": 0, "func": "static guint32 dissect_netb_session_alive ( tvbuff_t * tvb , packet_info * pinfo _U_ , int offset , proto_tree * tree ) {\n nb_remote_session ( tvb , offset , tree ) ;\n nb_local_session ( tvb , offset , tree ) ;\n return 0 ;\n }"}
{"idx": 4287, "target": 0, "func": "static int dissect_h245_INTEGER_0_15 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 15U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 4288, "target": 0, "func": "static ActivationAction get_default_executable_text_file_action ( void ) {\n int preferences_value ;\n preferences_value = g_settings_get_enum ( nautilus_preferences , NAUTILUS_PREFERENCES_EXECUTABLE_TEXT_ACTIVATION ) ;\n switch ( preferences_value ) {\n case NAUTILUS_EXECUTABLE_TEXT_LAUNCH : {\n return ACTIVATION_ACTION_LAUNCH ;\n }\n case NAUTILUS_EXECUTABLE_TEXT_DISPLAY : {\n return ACTIVATION_ACTION_OPEN_IN_APPLICATION ;\n }\n case NAUTILUS_EXECUTABLE_TEXT_ASK : default : return ACTIVATION_ACTION_ASK ;\n }\n }"}
{"idx": 4289, "target": 0, "func": "int ff_rm_parse_packet ( AVFormatContext * s , AVIOContext * pb , AVStream * st , RMStream * ast , int len , AVPacket * pkt , int * seq , int flags , int64_t timestamp ) {\n RMDemuxContext * rm = s -> priv_data ;\n int ret ;\n if ( st -> codecpar -> codec_type == AVMEDIA_TYPE_VIDEO ) {\n rm -> current_stream = st -> id ;\n ret = rm_assemble_video_frame ( s , pb , rm , ast , pkt , len , seq , & timestamp ) ;\n if ( ret ) return ret < 0 ? ret : - 1 ;\n }\n else if ( st -> codecpar -> codec_type == AVMEDIA_TYPE_AUDIO ) {\n if ( ( ast -> deint_id == DEINT_ID_GENR ) || ( ast -> deint_id == DEINT_ID_INT4 ) || ( ast -> deint_id == DEINT_ID_SIPR ) ) {\n int x ;\n int sps = ast -> sub_packet_size ;\n int cfs = ast -> coded_framesize ;\n int h = ast -> sub_packet_h ;\n int y = ast -> sub_packet_cnt ;\n int w = ast -> audio_framesize ;\n if ( flags & 2 ) y = ast -> sub_packet_cnt = 0 ;\n if ( ! y ) ast -> audiotimestamp = timestamp ;\n switch ( ast -> deint_id ) {\n case DEINT_ID_INT4 : for ( x = 0 ;\n x < h / 2 ;\n x ++ ) readfull ( s , pb , ast -> pkt . data + x * 2 * w + y * cfs , cfs ) ;\n break ;\n case DEINT_ID_GENR : for ( x = 0 ;\n x < w / sps ;\n x ++ ) readfull ( s , pb , ast -> pkt . data + sps * ( h * x + ( ( h + 1 ) / 2 ) * ( y & 1 ) + ( y >> 1 ) ) , sps ) ;\n break ;\n case DEINT_ID_SIPR : readfull ( s , pb , ast -> pkt . data + y * w , w ) ;\n break ;\n }\n if ( ++ ( ast -> sub_packet_cnt ) < h ) return - 1 ;\n if ( ast -> deint_id == DEINT_ID_SIPR ) ff_rm_reorder_sipr_data ( ast -> pkt . data , h , w ) ;\n ast -> sub_packet_cnt = 0 ;\n rm -> audio_stream_num = st -> index ;\n if ( st -> codecpar -> block_align <= 0 ) {\n av_log ( s , AV_LOG_ERROR , \"Invalid block alignment %d\\n\" , st -> codecpar -> block_align ) ;\n return AVERROR_INVALIDDATA ;\n }\n rm -> audio_pkt_cnt = h * w / st -> codecpar -> block_align ;\n }\n else if ( ( ast -> deint_id == DEINT_ID_VBRF ) || ( ast -> deint_id == DEINT_ID_VBRS ) ) {\n int x ;\n rm -> audio_stream_num = st -> index ;\n ast -> sub_packet_cnt = ( avio_rb16 ( pb ) & 0xf0 ) >> 4 ;\n if ( ast -> sub_packet_cnt ) {\n for ( x = 0 ;\n x < ast -> sub_packet_cnt ;\n x ++ ) ast -> sub_packet_lengths [ x ] = avio_rb16 ( pb ) ;\n rm -> audio_pkt_cnt = ast -> sub_packet_cnt ;\n ast -> audiotimestamp = timestamp ;\n }\n else return - 1 ;\n }\n else {\n if ( ( ret = av_get_packet ( pb , pkt , len ) ) < 0 ) return ret ;\n rm_ac3_swap_bytes ( st , pkt ) ;\n }\n }\n else {\n if ( ( ret = av_get_packet ( pb , pkt , len ) ) < 0 ) return ret ;\n }\n pkt -> stream_index = st -> index ;\n pkt -> pts = timestamp ;\n if ( flags & 2 ) pkt -> flags |= AV_PKT_FLAG_KEY ;\n return st -> codecpar -> codec_type == AVMEDIA_TYPE_AUDIO ? rm -> audio_pkt_cnt : 0 ;\n }"}
{"idx": 4290, "target": 0, "func": "void my_message_sql ( uint error , const char * str , myf MyFlags ) {\n THD * thd = current_thd ;\n MYSQL_ERROR : : enum_warning_level level ;\n sql_print_message_func func ;\n DBUG_ENTER ( \"my_message_sql\" ) ;\n DBUG_PRINT ( \"error\" , ( \"error: %u message: '%s' Flag: %d\" , error , str , MyFlags ) ) ;\n DBUG_ASSERT ( str != NULL ) ;\n DBUG_ASSERT ( error != 0 ) ;\n if ( MyFlags & ME_JUST_INFO ) {\n level = MYSQL_ERROR : : WARN_LEVEL_NOTE ;\n func = sql_print_information ;\n }\n else if ( MyFlags & ME_JUST_WARNING ) {\n level = MYSQL_ERROR : : WARN_LEVEL_WARN ;\n func = sql_print_warning ;\n }\n else {\n level = MYSQL_ERROR : : WARN_LEVEL_ERROR ;\n func = sql_print_error ;\n }\n if ( thd ) {\n if ( MyFlags & ME_FATALERROR ) thd -> is_fatal_error = 1 ;\n ( void ) thd -> raise_condition ( error , NULL , level , str ) ;\n }\n else mysql_audit_general ( 0 , MYSQL_AUDIT_GENERAL_ERROR , error , str ) ;\n DBUG_EXECUTE_IF ( \"simulate_out_of_memory\" , DBUG_VOID_RETURN ;\n ) ;\n if ( ! thd || thd -> log_all_errors || ( MyFlags & ME_NOREFRESH ) ) ( * func ) ( \"%s: %s\" , my_progname_short , str ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 4291, "target": 0, "func": "static int dissect_h225_CallProceeding_UUIE ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 489 \"./asn1/h225/h225.cnf\" h225_packet_info * h225_pi ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_CallProceeding_UUIE , CallProceeding_UUIE_sequence ) ;\n # line 493 \"./asn1/h225/h225.cnf\" h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> cs_type = H225_CALL_PROCEDING ;\n if ( contains_faststart ) {\n char temp [ 50 ] ;\n g_snprintf ( temp , 50 , \"%s OLC (%s)\" , val_to_str ( h225_pi -> cs_type , T_h323_message_body_vals , \"<unknown>\" ) , h225_pi -> frame_label ) ;\n g_strlcpy ( h225_pi -> frame_label , temp , 50 ) ;\n }\n else g_snprintf ( h225_pi -> frame_label , 50 , \"%s\" , val_to_str ( h225_pi -> cs_type , T_h323_message_body_vals , \"<unknown>\" ) ) ;\n }\n return offset ;\n }"}
{"idx": 4292, "target": 0, "func": "static gboolean ng_file_seek_rand ( wtap * wth , gint64 offset , int * err , gchar * * err_info ) {\n ngsniffer_t * ngsniffer ;\n gint64 delta ;\n GList * new_list , * next_list ;\n blob_info_t * next_blob , * new_blob ;\n ngsniffer = ( ngsniffer_t * ) wth -> priv ;\n if ( wth -> file_type_subtype == WTAP_FILE_TYPE_SUBTYPE_NGSNIFFER_UNCOMPRESSED ) {\n if ( file_seek ( wth -> random_fh , offset , SEEK_SET , err ) == - 1 ) return FALSE ;\n return TRUE ;\n }\n delta = offset - ngsniffer -> rand . uncomp_offset ;\n new_list = NULL ;\n if ( delta > 0 ) {\n if ( ( size_t ) ( ngsniffer -> rand . nextout + delta ) >= ngsniffer -> rand . nbytes ) {\n if ( ngsniffer -> current_blob == NULL ) {\n new_list = ngsniffer -> first_blob ;\n }\n else {\n new_list = g_list_next ( ngsniffer -> current_blob ) ;\n }\n while ( new_list ) {\n next_list = g_list_next ( new_list ) ;\n if ( next_list == NULL ) {\n break ;\n }\n next_blob = ( blob_info_t * ) next_list -> data ;\n if ( next_blob -> blob_uncomp_offset > offset ) break ;\n new_list = next_list ;\n }\n if ( new_list == NULL ) {\n * err = WTAP_ERR_CANT_SEEK ;\n return FALSE ;\n }\n }\n }\n else if ( delta < 0 ) {\n if ( ngsniffer -> rand . nextout + delta < 0 ) {\n if ( ngsniffer -> current_blob == NULL ) {\n new_list = ngsniffer -> last_blob ;\n }\n else {\n new_list = g_list_previous ( ngsniffer -> current_blob ) ;\n }\n while ( new_list ) {\n new_blob = ( blob_info_t * ) new_list -> data ;\n if ( new_blob -> blob_uncomp_offset <= offset ) break ;\n new_list = g_list_previous ( new_list ) ;\n }\n if ( new_list == NULL ) {\n * err = WTAP_ERR_CANT_SEEK ;\n return FALSE ;\n }\n }\n }\n if ( new_list != NULL ) {\n new_blob = ( blob_info_t * ) new_list -> data ;\n if ( file_seek ( wth -> random_fh , new_blob -> blob_comp_offset , SEEK_SET , err ) == - 1 ) return FALSE ;\n if ( ngsniffer -> rand . buf == NULL ) {\n ngsniffer -> rand . buf = ( unsigned char * ) g_malloc ( OUTBUF_SIZE ) ;\n }\n ngsniffer -> current_blob = new_list ;\n ngsniffer -> rand . uncomp_offset = new_blob -> blob_uncomp_offset ;\n ngsniffer -> rand . comp_offset = new_blob -> blob_comp_offset ;\n if ( ! read_blob ( wth -> random_fh , & ngsniffer -> rand , err , err_info ) ) return FALSE ;\n delta = offset - ngsniffer -> rand . uncomp_offset ;\n g_assert ( delta >= 0 && ( unsigned long ) delta < ngsniffer -> rand . nbytes ) ;\n }\n ngsniffer -> rand . nextout += ( int ) delta ;\n ngsniffer -> rand . uncomp_offset += delta ;\n return TRUE ;\n }"}
{"idx": 4293, "target": 0, "func": "static int selinux_file_send_sigiotask ( struct task_struct * tsk , struct fown_struct * fown , int signum ) {\n struct file * file ;\n u32 sid = task_sid ( tsk ) ;\n u32 perm ;\n struct file_security_struct * fsec ;\n file = container_of ( fown , struct file , f_owner ) ;\n fsec = file -> f_security ;\n if ( ! signum ) perm = signal_to_av ( SIGIO ) ;\n else perm = signal_to_av ( signum ) ;\n return avc_has_perm ( fsec -> fown_sid , sid , SECCLASS_PROCESS , perm , NULL ) ;\n }"}
{"idx": 4294, "target": 0, "func": "static int wb_write_out ( struct archive_write * a ) {\n struct iso9660 * iso9660 = ( struct iso9660 * ) a -> format_data ;\n size_t wsize , nw ;\n int r ;\n wsize = sizeof ( iso9660 -> wbuff ) - iso9660 -> wbuff_remaining ;\n nw = wsize % LOGICAL_BLOCK_SIZE ;\n if ( iso9660 -> wbuff_type == WB_TO_STREAM ) r = __archive_write_output ( a , iso9660 -> wbuff , wsize - nw ) ;\n else r = write_to_temp ( a , iso9660 -> wbuff , wsize - nw ) ;\n iso9660 -> wbuff_offset += wsize - nw ;\n if ( iso9660 -> wbuff_offset > iso9660 -> wbuff_written ) iso9660 -> wbuff_written = iso9660 -> wbuff_offset ;\n iso9660 -> wbuff_remaining = sizeof ( iso9660 -> wbuff ) ;\n if ( nw ) {\n iso9660 -> wbuff_remaining -= nw ;\n memmove ( iso9660 -> wbuff , iso9660 -> wbuff + wsize - nw , nw ) ;\n }\n return ( r ) ;\n }"}
{"idx": 4295, "target": 0, "func": "void set_reconnect ( MYSQL * mysql , my_bool val ) {\n my_bool reconnect = val ;\n DBUG_ENTER ( \"set_reconnect\" ) ;\n DBUG_PRINT ( \"info\" , ( \"val: %d\" , ( int ) val ) ) ;\n # if MYSQL_VERSION_ID < 50000 mysql -> reconnect = reconnect ;\n # else mysql_options ( mysql , MYSQL_OPT_RECONNECT , ( char * ) & reconnect ) ;\n # endif DBUG_VOID_RETURN ;\n }"}
{"idx": 4296, "target": 0, "func": "static void get_months ( const UDateFormat * fmt , UChar * months [ ] , UBool useLongNames , UErrorCode * status ) {\n UDateFormatSymbolType monthType = ( useLongNames ? UDAT_MONTHS : UDAT_SHORT_MONTHS ) ;\n if ( U_FAILURE ( * status ) ) return ;\n get_symbols ( fmt , monthType , months , MONTH_COUNT - 1 , 0 , 0 , status ) ;\n }"}
{"idx": 4297, "target": 0, "func": "static void U_CALLCONV _HZOpen ( UConverter * cnv , UConverterLoadArgs * pArgs , UErrorCode * errorCode ) {\n UConverter * gbConverter ;\n if ( pArgs -> onlyTestIsLoadable ) {\n ucnv_canCreateConverter ( \"GBK\" , errorCode ) ;\n return ;\n }\n gbConverter = ucnv_open ( \"GBK\" , errorCode ) ;\n if ( U_FAILURE ( * errorCode ) ) {\n return ;\n }\n cnv -> toUnicodeStatus = 0 ;\n cnv -> fromUnicodeStatus = 0 ;\n cnv -> mode = 0 ;\n cnv -> fromUChar32 = 0x0000 ;\n cnv -> extraInfo = uprv_calloc ( 1 , sizeof ( UConverterDataHZ ) ) ;\n if ( cnv -> extraInfo != NULL ) {\n ( ( UConverterDataHZ * ) cnv -> extraInfo ) -> gbConverter = gbConverter ;\n }\n else {\n ucnv_close ( gbConverter ) ;\n * errorCode = U_MEMORY_ALLOCATION_ERROR ;\n return ;\n }\n }"}
{"idx": 4298, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n MPADecodeContext * s = avctx -> priv_data ;\n uint32_t header ;\n int ret ;\n if ( buf_size < HEADER_SIZE ) return AVERROR_INVALIDDATA ;\n header = AV_RB32 ( buf ) ;\n if ( ff_mpa_check_header ( header ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Header missing\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( avpriv_mpegaudio_decode_header ( ( MPADecodeHeader * ) s , header ) == 1 ) {\n s -> frame_size = - 1 ;\n return AVERROR_INVALIDDATA ;\n }\n avctx -> channels = s -> nb_channels ;\n avctx -> channel_layout = s -> nb_channels == 1 ? AV_CH_LAYOUT_MONO : AV_CH_LAYOUT_STEREO ;\n if ( ! avctx -> bit_rate ) avctx -> bit_rate = s -> bit_rate ;\n if ( s -> frame_size <= 0 || s -> frame_size > buf_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"incomplete frame\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n else if ( s -> frame_size < buf_size ) {\n buf_size = s -> frame_size ;\n }\n s -> frame = data ;\n ret = mp_decode_frame ( s , NULL , buf , buf_size ) ;\n if ( ret >= 0 ) {\n s -> frame -> nb_samples = avctx -> frame_size ;\n * got_frame_ptr = 1 ;\n avctx -> sample_rate = s -> sample_rate ;\n }\n else {\n av_log ( avctx , AV_LOG_ERROR , \"Error while decoding MPEG audio frame.\\n\" ) ;\n * got_frame_ptr = 0 ;\n if ( buf_size == avpkt -> size || ret != AVERROR_INVALIDDATA ) return ret ;\n }\n s -> frame_size = 0 ;\n return buf_size ;\n }"}
{"idx": 4299, "target": 0, "func": "static int compute_rd_thresh_factor ( int qindex , vpx_bit_depth_t bit_depth ) {\n double q ;\n # if CONFIG_VP9_HIGHBITDEPTH switch ( bit_depth ) {\n case VPX_BITS_8 : q = vp9_dc_quant ( qindex , 0 , VPX_BITS_8 ) / 4.0 ;\n break ;\n case VPX_BITS_10 : q = vp9_dc_quant ( qindex , 0 , VPX_BITS_10 ) / 16.0 ;\n break ;\n case VPX_BITS_12 : q = vp9_dc_quant ( qindex , 0 , VPX_BITS_12 ) / 64.0 ;\n break ;\n default : assert ( 0 && \"bit_depth should be VPX_BITS_8, VPX_BITS_10 or VPX_BITS_12\" ) ;\n return - 1 ;\n }\n # else ( void ) bit_depth ;\n q = vp9_dc_quant ( qindex , 0 , VPX_BITS_8 ) / 4.0 ;\n # endif return MAX ( ( int ) ( pow ( q , RD_THRESH_POW ) * 5.12 ) , 8 ) ;\n }"}
{"idx": 4300, "target": 0, "func": "int main ( int argc , char * * argv ) {\n BlinkMediaTestSuite test_suite ( argc , argv ) ;\n return base : : LaunchUnitTests ( argc , argv , base : : Bind ( & BlinkMediaTestSuite : : Run , base : : Unretained ( & test_suite ) ) ) ;\n }"}
{"idx": 4301, "target": 1, "func": "static picture_t * vout_new_buffer ( decoder_t * p_dec ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n if ( p_owner -> p_vout == NULL || p_dec -> fmt_out . video . i_width != p_owner -> video . i_width || p_dec -> fmt_out . video . i_height != p_owner -> video . i_height || p_dec -> fmt_out . video . i_visible_width != p_owner -> video . i_visible_width || p_dec -> fmt_out . video . i_visible_height != p_owner -> video . i_visible_height || p_dec -> fmt_out . video . i_x_offset != p_owner -> video . i_x_offset || p_dec -> fmt_out . video . i_y_offset != p_owner -> video . i_y_offset || p_dec -> fmt_out . i_codec != p_owner -> video . i_chroma || ( int64_t ) p_dec -> fmt_out . video . i_sar_num * p_owner -> video . i_sar_den != ( int64_t ) p_dec -> fmt_out . video . i_sar_den * p_owner -> video . i_sar_num || p_dec -> fmt_out . video . orientation != p_owner -> video . orientation ) {\n vout_thread_t * p_vout ;\n if ( ! p_dec -> fmt_out . video . i_width || ! p_dec -> fmt_out . video . i_height ) {\n return NULL ;\n }\n video_format_t fmt = p_dec -> fmt_out . video ;\n fmt . i_chroma = p_dec -> fmt_out . i_codec ;\n p_owner -> video = fmt ;\n if ( vlc_fourcc_IsYUV ( fmt . i_chroma ) ) {\n const vlc_chroma_description_t * dsc = vlc_fourcc_GetChromaDescription ( fmt . i_chroma ) ;\n for ( unsigned int i = 0 ;\n dsc && i < dsc -> plane_count ;\n i ++ ) {\n while ( fmt . i_width % dsc -> p [ i ] . w . den ) fmt . i_width ++ ;\n while ( fmt . i_height % dsc -> p [ i ] . h . den ) fmt . i_height ++ ;\n }\n }\n if ( ! fmt . i_visible_width || ! fmt . i_visible_height ) {\n if ( p_dec -> fmt_in . video . i_visible_width && p_dec -> fmt_in . video . i_visible_height ) {\n fmt . i_visible_width = p_dec -> fmt_in . video . i_visible_width ;\n fmt . i_visible_height = p_dec -> fmt_in . video . i_visible_height ;\n fmt . i_x_offset = p_dec -> fmt_in . video . i_x_offset ;\n fmt . i_y_offset = p_dec -> fmt_in . video . i_y_offset ;\n }\n else {\n fmt . i_visible_width = fmt . i_width ;\n fmt . i_visible_height = fmt . i_height ;\n fmt . i_x_offset = 0 ;\n fmt . i_y_offset = 0 ;\n }\n }\n if ( fmt . i_visible_height == 1088 && var_CreateGetBool ( p_dec , \"hdtv-fix\" ) ) {\n fmt . i_visible_height = 1080 ;\n if ( ! ( fmt . i_sar_num % 136 ) ) {\n fmt . i_sar_num *= 135 ;\n fmt . i_sar_den *= 136 ;\n }\n msg_Warn ( p_dec , \"Fixing broken HDTV stream (display_height=1088)\" ) ;\n }\n if ( ! fmt . i_sar_num || ! fmt . i_sar_den ) {\n fmt . i_sar_num = 1 ;\n fmt . i_sar_den = 1 ;\n }\n vlc_ureduce ( & fmt . i_sar_num , & fmt . i_sar_den , fmt . i_sar_num , fmt . i_sar_den , 50000 ) ;\n vlc_mutex_lock ( & p_owner -> lock ) ;\n p_vout = p_owner -> p_vout ;\n p_owner -> p_vout = NULL ;\n vlc_mutex_unlock ( & p_owner -> lock ) ;\n unsigned dpb_size ;\n switch ( p_dec -> fmt_in . i_codec ) {\n case VLC_CODEC_HEVC : case VLC_CODEC_H264 : case VLC_CODEC_DIRAC : dpb_size = 18 ;\n break ;\n case VLC_CODEC_VP5 : case VLC_CODEC_VP6 : case VLC_CODEC_VP6F : case VLC_CODEC_VP8 : dpb_size = 3 ;\n break ;\n default : dpb_size = 2 ;\n break ;\n }\n p_vout = input_resource_RequestVout ( p_owner -> p_resource , p_vout , & fmt , dpb_size + p_dec -> i_extra_picture_buffers + 1 , true ) ;\n vlc_mutex_lock ( & p_owner -> lock ) ;\n p_owner -> p_vout = p_vout ;\n DecoderUpdateFormatLocked ( p_dec ) ;\n vlc_mutex_unlock ( & p_owner -> lock ) ;\n if ( p_owner -> p_input != NULL ) input_SendEventVout ( p_owner -> p_input ) ;\n if ( p_vout == NULL ) {\n msg_Err ( p_dec , \"failed to create video output\" ) ;\n p_dec -> b_error = true ;\n return NULL ;\n }\n }\n for ( ;\n ;\n ) {\n if ( DecoderIsExitRequested ( p_dec ) || p_dec -> b_error ) return NULL ;\n picture_t * p_picture = vout_GetPicture ( p_owner -> p_vout ) ;\n if ( p_picture ) return p_picture ;\n if ( DecoderIsFlushing ( p_dec ) ) return NULL ;\n DecoderSignalWait ( p_dec , true ) ;\n vout_FixLeaks ( p_owner -> p_vout ) ;\n msleep ( VOUT_OUTMEM_SLEEP ) ;\n }\n }"}
{"idx": 4302, "target": 0, "func": "static void qio_channel_websock_flush_free ( gpointer user_data ) {\n QIOChannelWebsock * wioc = QIO_CHANNEL_WEBSOCK ( user_data ) ;\n object_unref ( OBJECT ( wioc ) ) ;\n }"}
{"idx": 4303, "target": 0, "func": "static void http_multi_line_header_test ( void ) {\n struct bufferevent * bev ;\n int fd ;\n const char * http_start_request ;\n short port = - 1 ;\n test_ok = 0 ;\n fprintf ( stdout , \"Testing HTTP Server with multi line: \" ) ;\n http = http_setup ( & port , NULL ) ;\n fd = http_connect ( \"127.0.0.1\" , port ) ;\n bev = bufferevent_new ( fd , http_readcb , http_writecb , http_errorcb , NULL ) ;\n http_start_request = \"GET /test HTTP/1.1\\r\\n\" \"Host: somehost\\r\\n\" \"Connection: close\\r\\n\" \"X-Multi: aaaaaaaa\\r\\n\" \" a\\r\\n\" \"\\tEND\\r\\n\" \"X-Last: last\\r\\n\" \"\\r\\n\" ;\n bufferevent_write ( bev , http_start_request , strlen ( http_start_request ) ) ;\n event_dispatch ( ) ;\n bufferevent_free ( bev ) ;\n EVUTIL_CLOSESOCKET ( fd ) ;\n evhttp_free ( http ) ;\n if ( test_ok != 4 ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n fprintf ( stdout , \"OK\\n\" ) ;\n }"}
{"idx": 4304, "target": 0, "func": "void append_result ( DYNAMIC_STRING * ds , MYSQL_RES * res ) {\n MYSQL_ROW row ;\n uint num_fields = mysql_num_fields ( res ) ;\n MYSQL_FIELD * fields = mysql_fetch_fields ( res ) ;\n ulong * lengths ;\n while ( ( row = mysql_fetch_row ( res ) ) ) {\n uint i ;\n lengths = mysql_fetch_lengths ( res ) ;\n for ( i = 0 ;\n i < num_fields ;\n i ++ ) append_field ( ds , i , & fields [ i ] , row [ i ] , lengths [ i ] , ! row [ i ] ) ;\n if ( ! display_result_vertically ) dynstr_append_mem ( ds , \"\\n\" , 1 ) ;\n }\n }"}
{"idx": 4305, "target": 0, "func": "int i2d_RSAPublicKey_fp ( FILE * fp , RSA * rsa ) {\n return ASN1_item_i2d_fp ( ASN1_ITEM_rptr ( RSAPublicKey ) , fp , rsa ) ;\n }"}
{"idx": 4306, "target": 0, "func": "void compute_curve_gamma_table_type0 ( float gamma_table [ 256 ] ) {\n unsigned int i ;\n for ( i = 0 ;\n i < 256 ;\n i ++ ) {\n gamma_table [ i ] = i / 255. ;\n }\n }"}
{"idx": 4307, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( MessageCenterNotificationsTest , UpdateProgressNotificationWhenCenterVisible ) {\n # if defined ( OS_WIN ) && defined ( USE_ASH ) if ( base : : CommandLine : : ForCurrentProcess ( ) -> HasSwitch ( switches : : kAshBrowserTests ) ) return ;\n # endif TestAddObserver observer ( message_center ( ) ) ;\n TestDelegate * delegate ;\n Notification notification = CreateTestNotification ( \"n\" , & delegate ) ;\n notification . set_type ( message_center : : NOTIFICATION_TYPE_PROGRESS ) ;\n manager ( ) -> Add ( notification , profile ( ) ) ;\n const std : : string notification_id = manager ( ) -> GetMessageCenterNotificationIdForTest ( \"n\" , profile ( ) ) ;\n message_center ( ) -> ClickOnNotification ( notification_id ) ;\n message_center ( ) -> SetVisibility ( message_center : : VISIBILITY_MESSAGE_CENTER ) ;\n observer . reset_logs ( ) ;\n notification . set_progress ( 50 ) ;\n manager ( ) -> Update ( notification , profile ( ) ) ;\n EXPECT_EQ ( base : : StringPrintf ( \"update-%s\" , notification_id . c_str ( ) ) , observer . log ( notification_id ) ) ;\n delegate -> Release ( ) ;\n }"}
{"idx": 4308, "target": 0, "func": "static void alias_grab ( struct xml_alias_t * alias ) {\n ithread_mutex_lock ( & gWebMutex ) ;\n assert ( is_valid_alias ( & gAliasDoc ) ) ;\n memcpy ( alias , & gAliasDoc , sizeof ( struct xml_alias_t ) ) ;\n * alias -> ct = * alias -> ct + 1 ;\n ithread_mutex_unlock ( & gWebMutex ) ;\n }"}
{"idx": 4309, "target": 0, "func": "int mem_word_get_bits_rectangle ( gx_device * dev , const gs_int_rect * prect , gs_get_bits_params_t * params , gs_int_rect * * unread ) {\n gx_device_memory * const mdev = ( gx_device_memory * ) dev ;\n byte * src ;\n uint dev_raster = gx_device_raster ( dev , 1 ) ;\n int x = prect -> p . x ;\n int w = prect -> q . x - x ;\n int y = prect -> p . y ;\n int h = prect -> q . y - y ;\n int bit_x , bit_w ;\n int code ;\n fit_fill_xywh ( dev , x , y , w , h ) ;\n if ( w <= 0 || h <= 0 ) {\n x = y = w = h = 0 ;\n }\n bit_x = x * dev -> color_info . depth ;\n bit_w = w * dev -> color_info . depth ;\n src = scan_line_base ( mdev , y ) ;\n mem_swap_byte_rect ( src , dev_raster , bit_x , bit_w , h , false ) ;\n code = mem_get_bits_rectangle ( dev , prect , params , unread ) ;\n mem_swap_byte_rect ( src , dev_raster , bit_x , bit_w , h , false ) ;\n return code ;\n }"}
{"idx": 4310, "target": 0, "func": "static void init_error_log_mutex ( ) {\n mysql_mutex_init ( key_LOCK_error_log , & LOCK_error_log , MY_MUTEX_INIT_FAST ) ;\n }"}
{"idx": 4311, "target": 0, "func": "static u16 default_transaction_id_fn ( void ) {\n u16 trans_id ;\n # ifdef DNS_USE_CPU_CLOCK_FOR_ID struct timespec ts ;\n static int clkid = - 1 ;\n if ( clkid == - 1 ) {\n clkid = CLOCK_REALTIME ;\n # ifdef CLOCK_MONOTONIC if ( clock_gettime ( CLOCK_MONOTONIC , & ts ) != - 1 ) clkid = CLOCK_MONOTONIC ;\n # endif }\n if ( clock_gettime ( clkid , & ts ) == - 1 ) event_err ( 1 , \"clock_gettime\" ) ;\n trans_id = ts . tv_nsec & 0xffff ;\n # endif # ifdef DNS_USE_FTIME_FOR_ID struct _timeb tb ;\n _ftime ( & tb ) ;\n trans_id = tb . millitm & 0xffff ;\n # endif # ifdef DNS_USE_GETTIMEOFDAY_FOR_ID struct timeval tv ;\n evutil_gettimeofday ( & tv , NULL ) ;\n trans_id = tv . tv_usec & 0xffff ;\n # endif # ifdef DNS_USE_OPENSSL_FOR_ID if ( RAND_pseudo_bytes ( ( u8 * ) & trans_id , 2 ) == - 1 ) {\n abort ( ) ;\n }\n # endif return trans_id ;\n }"}
{"idx": 4312, "target": 0, "func": "gboolean nautilus_mime_file_extracts ( NautilusFile * file ) {\n return get_activation_action ( file ) == ACTIVATION_ACTION_EXTRACT ;\n }"}
{"idx": 4313, "target": 0, "func": "static char * StrTok ( char * * Src , const char * Del ) {\n char * TmpPtr ;\n char * RetPtr ;\n if ( * Src != NULL ) {\n RetPtr = * Src ;\n TmpPtr = strstr ( * Src , Del ) ;\n if ( TmpPtr != NULL ) {\n * TmpPtr = '\\0' ;\n * Src = TmpPtr + strlen ( Del ) ;\n }\n else * Src = NULL ;\n return RetPtr ;\n }\n return NULL ;\n }"}
{"idx": 4314, "target": 0, "func": "void evhttp_read ( int fd , short what , void * arg ) {\n struct evhttp_connection * evcon = arg ;\n struct evhttp_request * req = TAILQ_FIRST ( & evcon -> requests ) ;\n struct evbuffer * buf = evcon -> input_buffer ;\n int n , len ;\n if ( what == EV_TIMEOUT ) {\n evhttp_connection_fail ( evcon , EVCON_HTTP_TIMEOUT ) ;\n return ;\n }\n n = evbuffer_read ( buf , fd , - 1 ) ;\n len = EVBUFFER_LENGTH ( buf ) ;\n event_debug ( ( \"%s: got %d on %d\\n\" , __func__ , n , fd ) ) ;\n if ( n == - 1 ) {\n if ( errno != EINTR && errno != EAGAIN ) {\n event_debug ( ( \"%s: evbuffer_read\" , __func__ ) ) ;\n evhttp_connection_fail ( evcon , EVCON_HTTP_EOF ) ;\n }\n else {\n evhttp_add_event ( & evcon -> ev , evcon -> timeout , HTTP_READ_TIMEOUT ) ;\n }\n return ;\n }\n else if ( n == 0 ) {\n evcon -> state = EVCON_DISCONNECTED ;\n evhttp_connection_done ( evcon ) ;\n return ;\n }\n switch ( evcon -> state ) {\n case EVCON_READING_FIRSTLINE : evhttp_read_firstline ( evcon , req ) ;\n break ;\n case EVCON_READING_HEADERS : evhttp_read_header ( evcon , req ) ;\n break ;\n case EVCON_READING_BODY : evhttp_read_body ( evcon , req ) ;\n break ;\n case EVCON_READING_TRAILER : evhttp_read_trailer ( evcon , req ) ;\n break ;\n case EVCON_DISCONNECTED : case EVCON_CONNECTING : case EVCON_IDLE : case EVCON_WRITING : default : event_errx ( 1 , \"%s: illegal connection state %d\" , __func__ , evcon -> state ) ;\n }\n }"}
{"idx": 4315, "target": 0, "func": "static inline void qemu_get_be64s ( QEMUFile * f , uint64_t * pv ) {\n * pv = qemu_get_be64 ( f ) ;\n }"}
{"idx": 4316, "target": 0, "func": "static void link_info_done ( NautilusDirectory * directory , NautilusFile * file , const char * uri , const char * name , GIcon * icon , gboolean is_launcher , gboolean is_foreign ) {\n gboolean is_trusted ;\n file -> details -> link_info_is_up_to_date = TRUE ;\n is_trusted = is_link_trusted ( file , is_launcher ) ;\n if ( is_trusted ) {\n nautilus_file_set_display_name ( file , name , name , TRUE ) ;\n }\n else {\n nautilus_file_set_display_name ( file , NULL , NULL , TRUE ) ;\n }\n file -> details -> got_link_info = TRUE ;\n g_clear_object ( & file -> details -> custom_icon ) ;\n if ( uri ) {\n g_free ( file -> details -> activation_uri ) ;\n file -> details -> activation_uri = NULL ;\n file -> details -> got_custom_activation_uri = TRUE ;\n file -> details -> activation_uri = g_strdup ( uri ) ;\n }\n if ( is_trusted && ( icon != NULL ) ) {\n file -> details -> custom_icon = g_object_ref ( icon ) ;\n }\n file -> details -> is_launcher = is_launcher ;\n file -> details -> is_foreign_link = is_foreign ;\n file -> details -> is_trusted_link = is_trusted ;\n nautilus_directory_async_state_changed ( directory ) ;\n }"}
{"idx": 4317, "target": 0, "func": "static int SpoolssOpenPrinterEx_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ;\n char * name ;\n dcv -> private_data = NULL ;\n offset = dissect_ndr_pointer_cb ( tvb , offset , pinfo , tree , di , drep , dissect_ndr_wchar_cvstring , NDR_POINTER_UNIQUE , \"Printer name\" , hf_printername , cb_wstr_postprocess , GINT_TO_POINTER ( CB_STR_COL_INFO | CB_STR_SAVE | 1 ) ) ;\n name = ( char * ) dcv -> private_data ;\n if ( ! pinfo -> fd -> flags . visited ) {\n if ( ! dcv -> se_data ) {\n dcv -> se_data = wmem_strdup_printf ( wmem_file_scope ( ) , \"%s\" , name ? name : \"\" ) ;\n }\n }\n offset = dissect_ndr_pointer ( tvb , offset , pinfo , tree , di , drep , dissect_PRINTER_DATATYPE , NDR_POINTER_UNIQUE , \"Printer datatype\" , - 1 ) ;\n offset = dissect_DEVMODE_CTR ( tvb , offset , pinfo , tree , di , drep ) ;\n name = ( char * ) dcv -> se_data ;\n if ( name ) {\n if ( name [ 0 ] == '\\\\' && name [ 1 ] == '\\\\' ) name += 2 ;\n if ( strchr ( name , '\\\\' ) ) offset = dissect_nt_access_mask ( tvb , offset , pinfo , tree , di , drep , hf_access_required , & spoolss_printer_access_mask_info , NULL ) ;\n else offset = dissect_nt_access_mask ( tvb , offset , pinfo , tree , di , drep , hf_access_required , & spoolss_printserver_access_mask_info , NULL ) ;\n }\n else {\n offset = dissect_nt_access_mask ( tvb , offset , pinfo , tree , di , drep , hf_access_required , NULL , NULL ) ;\n }\n offset = dissect_USER_LEVEL_CTR ( tvb , offset , pinfo , tree , di , drep ) ;\n return offset ;\n }"}
{"idx": 4318, "target": 0, "func": "static guint strcase_hash ( gconstpointer key ) {\n const char * p = ( const char * ) key ;\n guint h = * p ;\n char c ;\n if ( h ) {\n if ( h >= 'A' && h <= 'Z' ) h = h - 'A' + 'a' ;\n for ( p += 1 ;\n * p != '\\0' ;\n p ++ ) {\n c = * p ;\n if ( c >= 'A' && c <= 'Z' ) c = c - 'A' + 'a' ;\n h = ( h << 5 ) - h + c ;\n }\n }\n return h ;\n }"}
{"idx": 4319, "target": 0, "func": "static int entry_to_archive ( struct cpio * cpio , struct archive_entry * entry ) {\n const char * destpath = archive_entry_pathname ( entry ) ;\n const char * srcpath = archive_entry_sourcepath ( entry ) ;\n int fd = - 1 ;\n ssize_t bytes_read ;\n int r ;\n if ( cpio -> verbose ) fprintf ( stderr , \"%s\" , destpath ) ;\n if ( cpio -> dot ) fprintf ( stderr , \".\" ) ;\n if ( cpio -> option_link && archive_entry_filetype ( entry ) == AE_IFREG ) {\n struct archive_entry * t ;\n t = archive_entry_clone ( entry ) ;\n if ( t == NULL ) lafe_errc ( 1 , ENOMEM , \"Can't create link\" ) ;\n archive_entry_set_hardlink ( t , srcpath ) ;\n archive_entry_set_size ( t , 0 ) ;\n r = archive_write_header ( cpio -> archive , t ) ;\n archive_entry_free ( t ) ;\n if ( r != ARCHIVE_OK ) lafe_warnc ( archive_errno ( cpio -> archive ) , \"%s\" , archive_error_string ( cpio -> archive ) ) ;\n if ( r == ARCHIVE_FATAL ) exit ( 1 ) ;\n # ifdef EXDEV if ( r != ARCHIVE_OK && archive_errno ( cpio -> archive ) == EXDEV ) {\n lafe_warnc ( 0 , \"Copying file instead\" ) ;\n }\n else # endif return ( 0 ) ;\n }\n if ( archive_entry_filetype ( entry ) == AE_IFREG ) {\n if ( archive_entry_size ( entry ) > 0 ) {\n fd = open ( srcpath , O_RDONLY | O_BINARY ) ;\n if ( fd < 0 ) {\n lafe_warnc ( errno , \"%s: could not open file\" , srcpath ) ;\n goto cleanup ;\n }\n }\n }\n else {\n archive_entry_set_size ( entry , 0 ) ;\n }\n r = archive_write_header ( cpio -> archive , entry ) ;\n if ( r != ARCHIVE_OK ) lafe_warnc ( archive_errno ( cpio -> archive ) , \"%s: %s\" , srcpath , archive_error_string ( cpio -> archive ) ) ;\n if ( r == ARCHIVE_FATAL ) exit ( 1 ) ;\n if ( r >= ARCHIVE_WARN && archive_entry_size ( entry ) > 0 && fd >= 0 ) {\n bytes_read = read ( fd , cpio -> buff , ( unsigned ) cpio -> buff_size ) ;\n while ( bytes_read > 0 ) {\n ssize_t bytes_write ;\n bytes_write = archive_write_data ( cpio -> archive , cpio -> buff , bytes_read ) ;\n if ( bytes_write < 0 ) lafe_errc ( 1 , archive_errno ( cpio -> archive ) , \"%s\" , archive_error_string ( cpio -> archive ) ) ;\n if ( bytes_write < bytes_read ) {\n lafe_warnc ( 0 , \"Truncated write;\n file may have \" \"grown while being archived.\" ) ;\n }\n bytes_read = read ( fd , cpio -> buff , ( unsigned ) cpio -> buff_size ) ;\n }\n }\n fd = restore_time ( cpio , entry , srcpath , fd ) ;\n cleanup : if ( cpio -> verbose ) fprintf ( stderr , \"\\n\" ) ;\n if ( fd >= 0 ) close ( fd ) ;\n return ( 0 ) ;\n }"}
{"idx": 4320, "target": 0, "func": "static double eqjoinsel_inner ( Oid operator , VariableStatData * vardata1 , VariableStatData * vardata2 ) {\n double selec ;\n double nd1 ;\n double nd2 ;\n bool isdefault1 ;\n bool isdefault2 ;\n Oid opfuncoid ;\n Form_pg_statistic stats1 = NULL ;\n Form_pg_statistic stats2 = NULL ;\n bool have_mcvs1 = false ;\n Datum * values1 = NULL ;\n int nvalues1 = 0 ;\n float4 * numbers1 = NULL ;\n int nnumbers1 = 0 ;\n bool have_mcvs2 = false ;\n Datum * values2 = NULL ;\n int nvalues2 = 0 ;\n float4 * numbers2 = NULL ;\n int nnumbers2 = 0 ;\n nd1 = get_variable_numdistinct ( vardata1 , & isdefault1 ) ;\n nd2 = get_variable_numdistinct ( vardata2 , & isdefault2 ) ;\n opfuncoid = get_opcode ( operator ) ;\n if ( HeapTupleIsValid ( vardata1 -> statsTuple ) ) {\n stats1 = ( Form_pg_statistic ) GETSTRUCT ( vardata1 -> statsTuple ) ;\n if ( statistic_proc_security_check ( vardata1 , opfuncoid ) ) have_mcvs1 = get_attstatsslot ( vardata1 -> statsTuple , vardata1 -> atttype , vardata1 -> atttypmod , STATISTIC_KIND_MCV , InvalidOid , NULL , & values1 , & nvalues1 , & numbers1 , & nnumbers1 ) ;\n }\n if ( HeapTupleIsValid ( vardata2 -> statsTuple ) ) {\n stats2 = ( Form_pg_statistic ) GETSTRUCT ( vardata2 -> statsTuple ) ;\n if ( statistic_proc_security_check ( vardata2 , opfuncoid ) ) have_mcvs2 = get_attstatsslot ( vardata2 -> statsTuple , vardata2 -> atttype , vardata2 -> atttypmod , STATISTIC_KIND_MCV , InvalidOid , NULL , & values2 , & nvalues2 , & numbers2 , & nnumbers2 ) ;\n }\n if ( have_mcvs1 && have_mcvs2 ) {\n FmgrInfo eqproc ;\n bool * hasmatch1 ;\n bool * hasmatch2 ;\n double nullfrac1 = stats1 -> stanullfrac ;\n double nullfrac2 = stats2 -> stanullfrac ;\n double matchprodfreq , matchfreq1 , matchfreq2 , unmatchfreq1 , unmatchfreq2 , otherfreq1 , otherfreq2 , totalsel1 , totalsel2 ;\n int i , nmatches ;\n fmgr_info ( opfuncoid , & eqproc ) ;\n hasmatch1 = ( bool * ) palloc0 ( nvalues1 * sizeof ( bool ) ) ;\n hasmatch2 = ( bool * ) palloc0 ( nvalues2 * sizeof ( bool ) ) ;\n matchprodfreq = 0.0 ;\n nmatches = 0 ;\n for ( i = 0 ;\n i < nvalues1 ;\n i ++ ) {\n int j ;\n for ( j = 0 ;\n j < nvalues2 ;\n j ++ ) {\n if ( hasmatch2 [ j ] ) continue ;\n if ( DatumGetBool ( FunctionCall2Coll ( & eqproc , DEFAULT_COLLATION_OID , values1 [ i ] , values2 [ j ] ) ) ) {\n hasmatch1 [ i ] = hasmatch2 [ j ] = true ;\n matchprodfreq += numbers1 [ i ] * numbers2 [ j ] ;\n nmatches ++ ;\n break ;\n }\n }\n }\n CLAMP_PROBABILITY ( matchprodfreq ) ;\n matchfreq1 = unmatchfreq1 = 0.0 ;\n for ( i = 0 ;\n i < nvalues1 ;\n i ++ ) {\n if ( hasmatch1 [ i ] ) matchfreq1 += numbers1 [ i ] ;\n else unmatchfreq1 += numbers1 [ i ] ;\n }\n CLAMP_PROBABILITY ( matchfreq1 ) ;\n CLAMP_PROBABILITY ( unmatchfreq1 ) ;\n matchfreq2 = unmatchfreq2 = 0.0 ;\n for ( i = 0 ;\n i < nvalues2 ;\n i ++ ) {\n if ( hasmatch2 [ i ] ) matchfreq2 += numbers2 [ i ] ;\n else unmatchfreq2 += numbers2 [ i ] ;\n }\n CLAMP_PROBABILITY ( matchfreq2 ) ;\n CLAMP_PROBABILITY ( unmatchfreq2 ) ;\n pfree ( hasmatch1 ) ;\n pfree ( hasmatch2 ) ;\n otherfreq1 = 1.0 - nullfrac1 - matchfreq1 - unmatchfreq1 ;\n otherfreq2 = 1.0 - nullfrac2 - matchfreq2 - unmatchfreq2 ;\n CLAMP_PROBABILITY ( otherfreq1 ) ;\n CLAMP_PROBABILITY ( otherfreq2 ) ;\n totalsel1 = matchprodfreq ;\n if ( nd2 > nvalues2 ) totalsel1 += unmatchfreq1 * otherfreq2 / ( nd2 - nvalues2 ) ;\n if ( nd2 > nmatches ) totalsel1 += otherfreq1 * ( otherfreq2 + unmatchfreq2 ) / ( nd2 - nmatches ) ;\n totalsel2 = matchprodfreq ;\n if ( nd1 > nvalues1 ) totalsel2 += unmatchfreq2 * otherfreq1 / ( nd1 - nvalues1 ) ;\n if ( nd1 > nmatches ) totalsel2 += otherfreq2 * ( otherfreq1 + unmatchfreq1 ) / ( nd1 - nmatches ) ;\n selec = ( totalsel1 < totalsel2 ) ? totalsel1 : totalsel2 ;\n }\n else {\n double nullfrac1 = stats1 ? stats1 -> stanullfrac : 0.0 ;\n double nullfrac2 = stats2 ? stats2 -> stanullfrac : 0.0 ;\n selec = ( 1.0 - nullfrac1 ) * ( 1.0 - nullfrac2 ) ;\n if ( nd1 > nd2 ) selec /= nd1 ;\n else selec /= nd2 ;\n }\n if ( have_mcvs1 ) free_attstatsslot ( vardata1 -> atttype , values1 , nvalues1 , numbers1 , nnumbers1 ) ;\n if ( have_mcvs2 ) free_attstatsslot ( vardata2 -> atttype , values2 , nvalues2 , numbers2 , nnumbers2 ) ;\n return selec ;\n }"}
{"idx": 4321, "target": 0, "func": "static proto_item * proto_tree_add_pi ( proto_tree * tree , header_field_info * hfinfo , tvbuff_t * tvb , gint start , gint * length ) {\n proto_item * pi ;\n field_info * fi ;\n gint item_length ;\n get_hfi_length ( hfinfo , tvb , start , length , & item_length ) ;\n fi = new_field_info ( tree , hfinfo , tvb , start , item_length ) ;\n pi = proto_tree_add_node ( tree , fi ) ;\n return pi ;\n }"}
{"idx": 4322, "target": 0, "func": "void proto_register_diameter ( void ) {\n dictionary_load ( ) ;\n real_proto_register_diameter ( ) ;\n }"}
{"idx": 4323, "target": 0, "func": "static SchroFrame * CreateSchroFrameFromPic ( decoder_t * p_dec ) {\n decoder_sys_t * p_sys = p_dec -> p_sys ;\n SchroFrame * p_schroframe = schro_frame_new ( ) ;\n picture_t * p_pic = NULL ;\n struct picture_free_t * p_free ;\n if ( ! p_schroframe ) return NULL ;\n p_pic = decoder_NewPicture ( p_dec ) ;\n if ( ! p_pic ) return NULL ;\n p_schroframe -> format = SCHRO_FRAME_FORMAT_U8_420 ;\n if ( p_sys -> p_format -> chroma_format == SCHRO_CHROMA_422 ) {\n p_schroframe -> format = SCHRO_FRAME_FORMAT_U8_422 ;\n }\n else if ( p_sys -> p_format -> chroma_format == SCHRO_CHROMA_444 ) {\n p_schroframe -> format = SCHRO_FRAME_FORMAT_U8_444 ;\n }\n p_schroframe -> width = p_sys -> p_format -> width ;\n p_schroframe -> height = p_sys -> p_format -> height ;\n p_free = malloc ( sizeof ( * p_free ) ) ;\n p_free -> p_pic = p_pic ;\n p_free -> p_dec = p_dec ;\n schro_frame_set_free_callback ( p_schroframe , SchroFrameFree , p_free ) ;\n for ( int i = 0 ;\n i < 3 ;\n i ++ ) {\n p_schroframe -> components [ i ] . width = p_pic -> p [ i ] . i_visible_pitch ;\n p_schroframe -> components [ i ] . stride = p_pic -> p [ i ] . i_pitch ;\n p_schroframe -> components [ i ] . height = p_pic -> p [ i ] . i_visible_lines ;\n p_schroframe -> components [ i ] . length = p_pic -> p [ i ] . i_pitch * p_pic -> p [ i ] . i_lines ;\n p_schroframe -> components [ i ] . data = p_pic -> p [ i ] . p_pixels ;\n if ( i != 0 ) {\n p_schroframe -> components [ i ] . v_shift = SCHRO_FRAME_FORMAT_V_SHIFT ( p_schroframe -> format ) ;\n p_schroframe -> components [ i ] . h_shift = SCHRO_FRAME_FORMAT_H_SHIFT ( p_schroframe -> format ) ;\n }\n }\n p_pic -> b_progressive = ! p_sys -> p_format -> interlaced ;\n p_pic -> b_top_field_first = p_sys -> p_format -> top_field_first ;\n p_pic -> i_nb_fields = 2 ;\n return p_schroframe ;\n }"}
{"idx": 4324, "target": 0, "func": "static const char * cmd_rule_remove_by_tag ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n rule_exception * re = apr_pcalloc ( cmd -> pool , sizeof ( rule_exception ) ) ;\n if ( dcfg == NULL ) return NULL ;\n re -> type = RULE_EXCEPTION_REMOVE_TAG ;\n re -> param = p1 ;\n re -> param_data = msc_pregcomp ( cmd -> pool , p1 , 0 , NULL , NULL ) ;\n if ( re -> param_data == NULL ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid regular expression: %s\" , p1 ) ;\n }\n * ( rule_exception * * ) apr_array_push ( dcfg -> rule_exceptions ) = re ;\n msre_ruleset_rule_remove_with_exception ( dcfg -> ruleset , re ) ;\n # ifdef DEBUG_CONF ap_log_perror ( APLOG_MARK , APLOG_STARTUP | APLOG_NOERRNO , 0 , cmd -> pool , \"Added exception %pp (%d %s) to dcfg %pp.\" , re , re -> type , re -> param , dcfg ) ;\n # endif return NULL ;\n }"}
{"idx": 4325, "target": 1, "func": "void PNGAPI png_set_PLTE ( png_structp png_ptr , png_infop info_ptr , png_colorp palette , int num_palette ) {\n png_uint_32 max_palette_length ;\n png_debug1 ( 1 , \"in %s storage function\" , \"PLTE\" ) ;\n if ( png_ptr == NULL || info_ptr == NULL ) return ;\n max_palette_length = ( png_ptr -> color_type == PNG_COLOR_TYPE_PALETTE ) ? ( 1 << png_ptr -> bit_depth ) : PNG_MAX_PALETTE_LENGTH ;\n if ( num_palette < 0 || num_palette > ( int ) max_palette_length ) {\n if ( info_ptr -> color_type == PNG_COLOR_TYPE_PALETTE ) png_error ( png_ptr , \"Invalid palette length\" ) ;\n else {\n png_warning ( png_ptr , \"Invalid palette length\" ) ;\n return ;\n }\n }\n # ifdef PNG_FREE_ME_SUPPORTED png_free_data ( png_ptr , info_ptr , PNG_FREE_PLTE , 0 ) ;\n # endif png_ptr -> palette = ( png_colorp ) png_calloc ( png_ptr , PNG_MAX_PALETTE_LENGTH * png_sizeof ( png_color ) ) ;\n png_memcpy ( png_ptr -> palette , palette , num_palette * png_sizeof ( png_color ) ) ;\n info_ptr -> palette = png_ptr -> palette ;\n info_ptr -> num_palette = png_ptr -> num_palette = ( png_uint_16 ) num_palette ;\n # ifdef PNG_FREE_ME_SUPPORTED info_ptr -> free_me |= PNG_FREE_PLTE ;\n # else png_ptr -> flags |= PNG_FLAG_FREE_PLTE ;\n # endif info_ptr -> valid |= PNG_INFO_PLTE ;\n }"}
{"idx": 4326, "target": 0, "func": "static void record_recent_object ( struct object * obj , const char * name , void * data ) {\n sha1_array_append ( & recent_objects , obj -> oid . hash ) ;\n }"}
{"idx": 4327, "target": 0, "func": "TEST_F ( ExternalProtocolHandlerTest , TestLaunchSchemeUnBlockedChromeUnknown ) {\n DoTest ( ExternalProtocolHandler : : DONT_BLOCK , shell_integration : : UNKNOWN_DEFAULT , Action : : LAUNCH ) ;\n }"}
{"idx": 4328, "target": 0, "func": "static int dissect_rsl_ie_rel_mode ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_tree * ie_tree ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_REL_MODE ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 4 , ett_ie_rel_mode , NULL , \"Release Mode IE \" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_rel_mode , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n return offset ;\n }"}
{"idx": 4329, "target": 0, "func": "static gcry_err_code_t sexp_elements_extract ( gcry_sexp_t key_sexp , const char * element_names , gcry_mpi_t * elements , const char * algo_name , int opaque ) {\n gcry_err_code_t err = 0 ;\n int i , idx ;\n const char * name ;\n gcry_sexp_t list ;\n for ( name = element_names , idx = 0 ;\n * name && ! err ;\n name ++ , idx ++ ) {\n list = gcry_sexp_find_token ( key_sexp , name , 1 ) ;\n if ( ! list ) elements [ idx ] = NULL ;\n else if ( opaque ) {\n elements [ idx ] = _gcry_sexp_nth_opaque_mpi ( list , 1 ) ;\n gcry_sexp_release ( list ) ;\n if ( ! elements [ idx ] ) err = GPG_ERR_INV_OBJ ;\n }\n else {\n elements [ idx ] = gcry_sexp_nth_mpi ( list , 1 , GCRYMPI_FMT_USG ) ;\n gcry_sexp_release ( list ) ;\n if ( ! elements [ idx ] ) err = GPG_ERR_INV_OBJ ;\n }\n }\n if ( ! err ) {\n for ( name = element_names , i = 0 ;\n * name ;\n name ++ , i ++ ) if ( ! elements [ i ] ) break ;\n if ( * name ) {\n err = GPG_ERR_NO_OBJ ;\n if ( algo_name && ! strcmp ( algo_name , \"RSA\" ) && ! strcmp ( element_names , \"nedpqu\" ) ) {\n if ( elements [ 0 ] && elements [ 1 ] && elements [ 2 ] && ! elements [ 3 ] && ! elements [ 4 ] && ! elements [ 5 ] ) err = 0 ;\n }\n }\n }\n if ( err ) {\n for ( i = 0 ;\n i < idx ;\n i ++ ) if ( elements [ i ] ) mpi_free ( elements [ i ] ) ;\n }\n return err ;\n }"}
{"idx": 4330, "target": 0, "func": "gchar * proto_find_undecoded_data ( proto_tree * tree , guint length ) {\n gchar * decoded = ( gchar * ) wmem_alloc0 ( wmem_packet_scope ( ) , length / 8 + 1 ) ;\n proto_tree_traverse_pre_order ( tree , check_for_undecoded , decoded ) ;\n return decoded ;\n }"}
{"idx": 4331, "target": 0, "func": "static void setdebug ( struct parse * pcmd , FILE * fp ) {\n if ( pcmd -> nargs == 0 ) {\n ( void ) fprintf ( fp , \"debug level is %d\\n\" , debug ) ;\n return ;\n }\n else if ( STREQ ( pcmd -> argval [ 0 ] . string , \"no\" ) ) {\n debug = 0 ;\n }\n else if ( STREQ ( pcmd -> argval [ 0 ] . string , \"more\" ) ) {\n debug ++ ;\n }\n else if ( STREQ ( pcmd -> argval [ 0 ] . string , \"less\" ) ) {\n debug -- ;\n }\n else {\n ( void ) fprintf ( fp , \"What?\\n\" ) ;\n return ;\n }\n ( void ) fprintf ( fp , \"debug level set to %d\\n\" , debug ) ;\n }"}
{"idx": 4332, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , LoadingMetricsFailed ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : LOAD_TIMING_INFO ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/page_load_metrics/404.html\" ) ) ;\n waiter -> Wait ( ) ;\n }"}
{"idx": 4333, "target": 0, "func": "static int32_t u_printf_uinteger_handler ( const u_printf_stream_handler * handler , void * context , ULocaleBundle * formatBundle , const u_printf_spec_info * info , const ufmt_args * args ) {\n int64_t num = args [ 0 ] . int64Value ;\n UNumberFormat * format ;\n UChar result [ UPRINTF_BUFFER_SIZE ] ;\n int32_t minDigits = - 1 ;\n int32_t resultLen ;\n UErrorCode status = U_ZERO_ERROR ;\n if ( info -> fIsShort ) num &= UINT16_MAX ;\n else if ( ! info -> fIsLongLong ) num &= UINT32_MAX ;\n format = u_locbund_getNumberFormat ( formatBundle , UNUM_DECIMAL ) ;\n if ( format == 0 ) return 0 ;\n if ( info -> fPrecision != - 1 ) {\n minDigits = unum_getAttribute ( format , UNUM_MIN_INTEGER_DIGITS ) ;\n unum_setAttribute ( format , UNUM_MIN_INTEGER_DIGITS , info -> fPrecision ) ;\n }\n resultLen = unum_formatInt64 ( format , num , result , UPRINTF_BUFFER_SIZE , 0 , & status ) ;\n if ( U_FAILURE ( status ) ) {\n resultLen = 0 ;\n }\n if ( minDigits != - 1 ) {\n unum_setAttribute ( format , UNUM_MIN_INTEGER_DIGITS , minDigits ) ;\n }\n return handler -> pad_and_justify ( context , info , result , resultLen ) ;\n }"}
{"idx": 4334, "target": 0, "func": "REGRESSION_TEST ( SDK_API_TSMutexCreate ) ( RegressionTest * test , int , int * pstatus ) {\n bool test_passed = false ;\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n TSMutex mutexp = TSMutexCreate ( ) ;\n TSMutexLock ( mutexp ) ;\n TSReturnCode lock = TS_ERROR ;\n TSMutexLockTry ( mutexp ) ;\n lock = TSMutexLockTry ( mutexp ) ;\n if ( TS_SUCCESS == lock ) {\n SDK_RPRINT ( test , \"TSMutexCreate\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( test , \"TSMutexLock\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( test , \"TSMutexLockTry\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSMutexCreate\" , \"TestCase1\" , TC_FAIL , \"mutex can't be grabbed twice from the same thread\" ) ;\n SDK_RPRINT ( test , \"TSMutexLock\" , \"TestCase1\" , TC_FAIL , \"mutex can't be grabbed twice from the same thread\" ) ;\n SDK_RPRINT ( test , \"TSMutexLockTry\" , \"TestCase1\" , TC_FAIL , \"mutex can't be grabbed twice from the same thread\" ) ;\n }\n TSMutexUnlock ( mutexp ) ;\n SDK_RPRINT ( test , \"TSMutexUnLock\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n if ( test_passed ) {\n * pstatus = REGRESSION_TEST_PASSED ;\n }\n else {\n * pstatus = REGRESSION_TEST_FAILED ;\n }\n }"}
{"idx": 4335, "target": 0, "func": "static void deep_count_stop ( NautilusDirectory * directory ) {\n NautilusFile * file ;\n if ( directory -> details -> deep_count_in_progress != NULL ) {\n file = directory -> details -> deep_count_file ;\n if ( file != NULL ) {\n g_assert ( NAUTILUS_IS_FILE ( file ) ) ;\n g_assert ( file -> details -> directory == directory ) ;\n if ( is_needy ( file , lacks_deep_count , REQUEST_DEEP_COUNT ) ) {\n return ;\n }\n }\n deep_count_cancel ( directory ) ;\n }\n }"}
{"idx": 4336, "target": 0, "func": "static void _slurm_rpc_node_registration ( slurm_msg_t * msg , bool running_composite ) {\n DEF_TIMERS ;\n int error_code = SLURM_SUCCESS ;\n bool newly_up = false ;\n slurm_node_registration_status_msg_t * node_reg_stat_msg = ( slurm_node_registration_status_msg_t * ) msg -> data ;\n slurmctld_lock_t job_write_lock = {\n READ_LOCK , WRITE_LOCK , WRITE_LOCK , NO_LOCK , READ_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n START_TIMER ;\n debug2 ( \"Processing RPC: MESSAGE_NODE_REGISTRATION_STATUS from uid=%d\" , uid ) ;\n if ( ! validate_slurm_user ( uid ) ) {\n error_code = ESLURM_USER_ID_MISSING ;\n error ( \"Security violation, NODE_REGISTER RPC from uid=%d\" , uid ) ;\n }\n if ( msg -> protocol_version != SLURM_PROTOCOL_VERSION ) info ( \"Node %s appears to have a different version \" \"of Slurm than ours. Please update at your earliest \" \"convenience.\" , node_reg_stat_msg -> node_name ) ;\n if ( error_code == SLURM_SUCCESS ) {\n if ( ! ( slurmctld_conf . debug_flags & DEBUG_FLAG_NO_CONF_HASH ) && ( node_reg_stat_msg -> hash_val != NO_VAL ) && ( node_reg_stat_msg -> hash_val != slurm_get_hash_val ( ) ) ) {\n error ( \"Node %s appears to have a different slurm.conf \" \"than the slurmctld. This could cause issues \" \"with communication and functionality. \" \"Please review both files and make sure they \" \"are the same. If this is expected ignore, and \" \"set DebugFlags=NO_CONF_HASH in your slurm.conf.\" , node_reg_stat_msg -> node_name ) ;\n }\n if ( ! running_composite ) lock_slurmctld ( job_write_lock ) ;\n # ifdef HAVE_FRONT_END error_code = validate_nodes_via_front_end ( node_reg_stat_msg , msg -> protocol_version , & newly_up ) ;\n # else validate_jobs_on_node ( node_reg_stat_msg ) ;\n error_code = validate_node_specs ( node_reg_stat_msg , msg -> protocol_version , & newly_up ) ;\n # endif if ( ! running_composite ) unlock_slurmctld ( job_write_lock ) ;\n END_TIMER2 ( \"_slurm_rpc_node_registration\" ) ;\n if ( newly_up ) {\n queue_job_scheduler ( ) ;\n }\n }\n if ( error_code ) {\n error ( \"_slurm_rpc_node_registration node=%s: %s\" , node_reg_stat_msg -> node_name , slurm_strerror ( error_code ) ) ;\n slurm_send_rc_msg ( msg , error_code ) ;\n }\n else {\n debug2 ( \"_slurm_rpc_node_registration complete for %s %s\" , node_reg_stat_msg -> node_name , TIME_STR ) ;\n slurm_send_rc_msg ( msg , SLURM_SUCCESS ) ;\n }\n }"}
{"idx": 4337, "target": 1, "func": "static int twin_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n TwinContext * tctx = avctx -> priv_data ;\n GetBitContext gb ;\n const ModeTab * mtab = tctx -> mtab ;\n float * * out = NULL ;\n enum FrameType ftype ;\n int window_type , ret ;\n static const enum FrameType wtype_to_ftype_table [ ] = {\n FT_LONG , FT_LONG , FT_SHORT , FT_LONG , FT_MEDIUM , FT_LONG , FT_LONG , FT_MEDIUM , FT_MEDIUM }\n ;\n if ( buf_size * 8 < avctx -> bit_rate * mtab -> size / avctx -> sample_rate + 8 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Frame too small (%d bytes). Truncated file?\\n\" , buf_size ) ;\n return AVERROR ( EINVAL ) ;\n }\n if ( tctx -> discarded_packets >= 2 ) {\n frame -> nb_samples = mtab -> size ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n out = ( float * * ) frame -> extended_data ;\n }\n init_get_bits ( & gb , buf , buf_size * 8 ) ;\n skip_bits ( & gb , get_bits ( & gb , 8 ) ) ;\n window_type = get_bits ( & gb , WINDOW_TYPE_BITS ) ;\n if ( window_type > 8 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid window type, broken sample?\\n\" ) ;\n return - 1 ;\n }\n ftype = wtype_to_ftype_table [ window_type ] ;\n read_and_decode_spectrum ( tctx , & gb , tctx -> spectrum , ftype ) ;\n imdct_output ( tctx , ftype , window_type , out ) ;\n FFSWAP ( float * , tctx -> curr_frame , tctx -> prev_frame ) ;\n if ( tctx -> discarded_packets < 2 ) {\n tctx -> discarded_packets ++ ;\n * got_frame_ptr = 0 ;\n return buf_size ;\n }\n * got_frame_ptr = 1 ;\n return buf_size ;\n }"}
{"idx": 4338, "target": 0, "func": "static void test_date_dt ( ) {\n int rc ;\n myheader ( \"test_date_dt\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_date\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_date(c1 datetime, \" \" c2 datetime, c3 datetime, c4 date)\" ) ;\n myquery ( rc ) ;\n bind_date_conv ( 2 , FALSE ) ;\n }"}
{"idx": 4339, "target": 0, "func": "static int dissect_h245_OCTET_STRING_SIZE_6 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 6 , 6 , FALSE , NULL ) ;\n return offset ;\n }"}
{"idx": 4340, "target": 0, "func": "static void readcb ( struct bufferevent * bev , void * arg ) {\n if ( EVBUFFER_LENGTH ( bev -> input ) == 8333 ) {\n bufferevent_disable ( bev , EV_READ ) ;\n test_ok ++ ;\n }\n }"}
{"idx": 4341, "target": 0, "func": "static int dissect_h245_T_reject ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_reject , T_reject_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 4342, "target": 0, "func": "void select_connection_name ( const char * name ) {\n DBUG_ENTER ( \"select_connection_name\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"name: '%s'\" , name ) ) ;\n st_connection * con = find_connection_by_name ( name ) ;\n if ( ! con ) die ( \"connection '%s' not found in connection pool\" , name ) ;\n set_current_connection ( con ) ;\n if ( ! disable_connect_log && ! disable_query_log ) {\n DYNAMIC_STRING * ds = & ds_res ;\n dynstr_append_mem ( ds , \"connection \" , 11 ) ;\n replace_dynstr_append ( ds , name ) ;\n dynstr_append_mem ( ds , \";\n\\n\" , 2 ) ;\n }\n DBUG_VOID_RETURN ;\n }"}
{"idx": 4343, "target": 0, "func": "static void cirrus_bitblt_fill_nop ( CirrusVGAState * s , uint32_t dstaddr , int dstpitch , int bltwidth , int bltheight ) {\n }"}
{"idx": 4344, "target": 0, "func": "static int flic_decode_frame_24BPP ( AVCodecContext * avctx , void * data , int * got_frame , const uint8_t * buf , int buf_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"24Bpp FLC Unsupported due to lack of test files.\\n\" ) ;\n return AVERROR_PATCHWELCOME ;\n }"}
{"idx": 4345, "target": 1, "func": "static int sbr_hf_gen ( AACContext * ac , SpectralBandReplication * sbr , float X_high [ 64 ] [ 40 ] [ 2 ] , const float X_low [ 32 ] [ 40 ] [ 2 ] , const float ( * alpha0 ) [ 2 ] , const float ( * alpha1 ) [ 2 ] , const float bw_array [ 5 ] , const uint8_t * t_env , int bs_num_env ) {\n int j , x ;\n int g = 0 ;\n int k = sbr -> kx [ 1 ] ;\n for ( j = 0 ;\n j < sbr -> num_patches ;\n j ++ ) {\n for ( x = 0 ;\n x < sbr -> patch_num_subbands [ j ] ;\n x ++ , k ++ ) {\n const int p = sbr -> patch_start_subband [ j ] + x ;\n while ( g <= sbr -> n_q && k >= sbr -> f_tablenoise [ g ] ) g ++ ;\n g -- ;\n if ( g < 0 ) {\n av_log ( ac -> avctx , AV_LOG_ERROR , \"ERROR : no subband found for frequency %d\\n\" , k ) ;\n return - 1 ;\n }\n sbr -> dsp . hf_gen ( X_high [ k ] + ENVELOPE_ADJUSTMENT_OFFSET , X_low [ p ] + ENVELOPE_ADJUSTMENT_OFFSET , alpha0 [ p ] , alpha1 [ p ] , bw_array [ g ] , * t_env [ 0 ] , 2 * t_env [ bs_num_env ] ) ;\n }\n }\n if ( k < sbr -> m [ 1 ] + sbr -> kx [ 1 ] ) memset ( X_high + k , 0 , ( sbr -> m [ 1 ] + sbr -> kx [ 1 ] - k ) * sizeof ( * X_high ) ) ;\n return 0 ;\n }"}
{"idx": 4346, "target": 0, "func": "static int spl_filesystem_file_call ( spl_filesystem_object * intern , zend_function * func_ptr , int pass_num_args , zval * return_value , zval * arg2 TSRMLS_DC ) {\n zend_fcall_info fci ;\n zend_fcall_info_cache fcic ;\n zval z_fname ;\n zval * zresource_ptr = & intern -> u . file . zresource , * retval ;\n int result ;\n int num_args = pass_num_args + ( arg2 ? 2 : 1 ) ;\n zval * * * params = ( zval * * * ) safe_emalloc ( num_args , sizeof ( zval * * ) , 0 ) ;\n params [ 0 ] = & zresource_ptr ;\n if ( arg2 ) {\n params [ 1 ] = & arg2 ;\n }\n zend_get_parameters_array_ex ( pass_num_args , params + ( arg2 ? 2 : 1 ) ) ;\n ZVAL_STRING ( & z_fname , func_ptr -> common . function_name , 0 ) ;\n fci . size = sizeof ( fci ) ;\n fci . function_table = EG ( function_table ) ;\n fci . object_ptr = NULL ;\n fci . function_name = & z_fname ;\n fci . retval_ptr_ptr = & retval ;\n fci . param_count = num_args ;\n fci . params = params ;\n fci . no_separation = 1 ;\n fci . symbol_table = NULL ;\n fcic . initialized = 1 ;\n fcic . function_handler = func_ptr ;\n fcic . calling_scope = NULL ;\n fcic . called_scope = NULL ;\n fcic . object_ptr = NULL ;\n result = zend_call_function ( & fci , & fcic TSRMLS_CC ) ;\n if ( result == FAILURE ) {\n RETVAL_FALSE ;\n }\n else {\n ZVAL_ZVAL ( return_value , retval , 1 , 1 ) ;\n }\n efree ( params ) ;\n return result ;\n }"}
{"idx": 4347, "target": 0, "func": "static void vdpau_h264_clear_rf ( VdpReferenceFrameH264 * rf ) {\n rf -> surface = VDP_INVALID_HANDLE ;\n rf -> is_long_term = VDP_FALSE ;\n rf -> top_is_reference = VDP_FALSE ;\n rf -> bottom_is_reference = VDP_FALSE ;\n rf -> field_order_cnt [ 0 ] = 0 ;\n rf -> field_order_cnt [ 1 ] = 0 ;\n rf -> frame_idx = 0 ;\n }"}
{"idx": 4348, "target": 0, "func": "int PEM_write_ ## name ( FILE * fp , type * x ) ;\n # define DECLARE_PEM_write_fp_const ( name , type ) int PEM_write_ ## name ( FILE * fp , const type * x ) ;\n # define DECLARE_PEM_write_cb_fp ( name , type ) int PEM_write_ ## name ( FILE * fp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # endif # define DECLARE_PEM_read_bio ( name , type ) type * PEM_read_bio_ ## name ( BIO * bp , type * * x , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL )"}
{"idx": 4349, "target": 0, "func": "static void dns_stats_tree_init ( stats_tree * st ) {\n st_node_packets = stats_tree_create_node ( st , st_str_packets , 0 , TRUE ) ;\n st_node_packet_qr = stats_tree_create_pivot ( st , st_str_packet_qr , st_node_packets ) ;\n st_node_packet_qtypes = stats_tree_create_pivot ( st , st_str_packet_qtypes , st_node_packets ) ;\n st_node_packet_qclasses = stats_tree_create_pivot ( st , st_str_packet_qclasses , st_node_packets ) ;\n st_node_packet_rcodes = stats_tree_create_pivot ( st , st_str_packet_rcodes , st_node_packets ) ;\n st_node_packet_opcodes = stats_tree_create_pivot ( st , st_str_packet_opcodes , st_node_packets ) ;\n st_node_packets_avg_size = stats_tree_create_node ( st , st_str_packets_avg_size , 0 , FALSE ) ;\n st_node_query_stats = stats_tree_create_node ( st , st_str_query_stats , 0 , TRUE ) ;\n st_node_query_qname_len = stats_tree_create_node ( st , st_str_query_qname_len , st_node_query_stats , FALSE ) ;\n st_node_query_domains = stats_tree_create_node ( st , st_str_query_domains , st_node_query_stats , TRUE ) ;\n st_node_query_domains_l1 = stats_tree_create_node ( st , st_str_query_domains_l1 , st_node_query_domains , FALSE ) ;\n st_node_query_domains_l2 = stats_tree_create_node ( st , st_str_query_domains_l2 , st_node_query_domains , FALSE ) ;\n st_node_query_domains_l3 = stats_tree_create_node ( st , st_str_query_domains_l3 , st_node_query_domains , FALSE ) ;\n st_node_query_domains_lmore = stats_tree_create_node ( st , st_str_query_domains_lmore , st_node_query_domains , FALSE ) ;\n st_node_response_stats = stats_tree_create_node ( st , st_str_response_stats , 0 , TRUE ) ;\n st_node_response_nquestions = stats_tree_create_node ( st , st_str_response_nquestions , st_node_response_stats , FALSE ) ;\n st_node_response_nanswers = stats_tree_create_node ( st , st_str_response_nanswers , st_node_response_stats , FALSE ) ;\n st_node_response_nauthorities = stats_tree_create_node ( st , st_str_response_nauthorities , st_node_response_stats , FALSE ) ;\n st_node_response_nadditionals = stats_tree_create_node ( st , st_str_response_nadditionals , st_node_response_stats , FALSE ) ;\n }"}
{"idx": 4350, "target": 0, "func": "rfbBool rfbSendTextChatMessage ( rfbClientPtr cl , uint32_t length , char * buffer ) {\n rfbTextChatMsg tc ;\n int bytesToSend = 0 ;\n memset ( ( char * ) & tc , 0 , sizeof ( tc ) ) ;\n tc . type = rfbTextChat ;\n tc . length = Swap32IfLE ( length ) ;\n switch ( length ) {\n case rfbTextChatOpen : case rfbTextChatClose : case rfbTextChatFinished : bytesToSend = 0 ;\n break ;\n default : bytesToSend = length ;\n if ( bytesToSend > rfbTextMaxSize ) bytesToSend = rfbTextMaxSize ;\n }\n if ( cl -> ublen + sz_rfbTextChatMsg + bytesToSend > UPDATE_BUF_SIZE ) {\n if ( ! rfbSendUpdateBuf ( cl ) ) return FALSE ;\n }\n memcpy ( & cl -> updateBuf [ cl -> ublen ] , ( char * ) & tc , sz_rfbTextChatMsg ) ;\n cl -> ublen += sz_rfbTextChatMsg ;\n if ( bytesToSend > 0 ) {\n memcpy ( & cl -> updateBuf [ cl -> ublen ] , buffer , bytesToSend ) ;\n cl -> ublen += bytesToSend ;\n }\n rfbStatRecordMessageSent ( cl , rfbTextChat , sz_rfbTextChatMsg + bytesToSend , sz_rfbTextChatMsg + bytesToSend ) ;\n if ( ! rfbSendUpdateBuf ( cl ) ) return FALSE ;\n return TRUE ;\n }"}
{"idx": 4351, "target": 1, "func": "void create_script_for_cluster_analyze ( char * * analyze_script_file_name ) {\n FILE * script = NULL ;\n char * user_specification = \"\" ;\n prep_status ( \"Creating script to analyze new cluster\" ) ;\n if ( os_info . user_specified ) user_specification = psprintf ( \"-U \\\"%s\\\" \" , os_info . user ) ;\n * analyze_script_file_name = psprintf ( \"%sanalyze_new_cluster.%s\" , SCRIPT_PREFIX , SCRIPT_EXT ) ;\n if ( ( script = fopen_priv ( * analyze_script_file_name , \"w\" ) ) == NULL ) pg_fatal ( \"Could not open file \\\"%s\\\": %s\\n\" , * analyze_script_file_name , getErrorText ( ) ) ;\n # ifndef WIN32 fprintf ( script , \"#!/bin/sh\\n\\n\" ) ;\n # else fprintf ( script , \"@echo off\\n\" ) ;\n # endif fprintf ( script , \"echo %sThis script will generate minimal optimizer statistics rapidly%s\\n\" , ECHO_QUOTE , ECHO_QUOTE ) ;\n fprintf ( script , \"echo %sso your system is usable, and then gather statistics twice more%s\\n\" , ECHO_QUOTE , ECHO_QUOTE ) ;\n fprintf ( script , \"echo %swith increasing accuracy. When it is done, your system will%s\\n\" , ECHO_QUOTE , ECHO_QUOTE ) ;\n fprintf ( script , \"echo %shave the default level of optimizer statistics.%s\\n\" , ECHO_QUOTE , ECHO_QUOTE ) ;\n fprintf ( script , \"echo%s\\n\\n\" , ECHO_BLANK ) ;\n fprintf ( script , \"echo %sIf you have used ALTER TABLE to modify the statistics target for%s\\n\" , ECHO_QUOTE , ECHO_QUOTE ) ;\n fprintf ( script , \"echo %sany tables, you might want to remove them and restore them after%s\\n\" , ECHO_QUOTE , ECHO_QUOTE ) ;\n fprintf ( script , \"echo %srunning this script because they will delay fast statistics generation.%s\\n\" , ECHO_QUOTE , ECHO_QUOTE ) ;\n fprintf ( script , \"echo%s\\n\\n\" , ECHO_BLANK ) ;\n fprintf ( script , \"echo %sIf you would like default statistics as quickly as possible, cancel%s\\n\" , ECHO_QUOTE , ECHO_QUOTE ) ;\n fprintf ( script , \"echo %sthis script and run:%s\\n\" , ECHO_QUOTE , ECHO_QUOTE ) ;\n fprintf ( script , \"echo %s \\\"%s/vacuumdb\\\" %s--all %s%s\\n\" , ECHO_QUOTE , new_cluster . bindir , user_specification , ( GET_MAJOR_VERSION ( old_cluster . major_version ) >= 804 ) ? \"--analyze-only\" : \"--analyze\" , ECHO_QUOTE ) ;\n fprintf ( script , \"echo%s\\n\\n\" , ECHO_BLANK ) ;\n fprintf ( script , \"\\\"%s/vacuumdb\\\" %s--all --analyze-in-stages\\n\" , new_cluster . bindir , user_specification ) ;\n if ( GET_MAJOR_VERSION ( old_cluster . major_version ) < 804 ) fprintf ( script , \"\\\"%s/vacuumdb\\\" %s--all\\n\" , new_cluster . bindir , user_specification ) ;\n fprintf ( script , \"echo%s\\n\\n\" , ECHO_BLANK ) ;\n fprintf ( script , \"echo %sDone%s\\n\" , ECHO_QUOTE , ECHO_QUOTE ) ;\n fclose ( script ) ;\n # ifndef WIN32 if ( chmod ( * analyze_script_file_name , S_IRWXU ) != 0 ) pg_fatal ( \"Could not add execute permission to file \\\"%s\\\": %s\\n\" , * analyze_script_file_name , getErrorText ( ) ) ;\n # endif if ( os_info . user_specified ) pg_free ( user_specification ) ;\n check_ok ( ) ;\n }"}
{"idx": 4352, "target": 0, "func": "static void swap_yv12 ( YV12_BUFFER_CONFIG * a , YV12_BUFFER_CONFIG * b ) {\n YV12_BUFFER_CONFIG temp = * a ;\n * a = * b ;\n * b = temp ;\n }"}
{"idx": 4353, "target": 1, "func": "static void pass1 ( vpx_image_t * raw , FILE * infile , const char * outfile_name , const VpxInterface * encoder , const vpx_codec_enc_cfg_t * cfg ) {\n VpxVideoInfo info = {\n encoder -> fourcc , cfg -> g_w , cfg -> g_h , {\n cfg -> g_timebase . num , cfg -> g_timebase . den }\n }\n ;\n VpxVideoWriter * writer = NULL ;\n vpx_codec_ctx_t codec ;\n int frame_count = 0 ;\n writer = vpx_video_writer_open ( outfile_name , kContainerIVF , & info ) ;\n if ( ! writer ) die ( \"Failed to open %s for writing\" , outfile_name ) ;\n if ( vpx_codec_enc_init ( & codec , encoder -> codec_interface ( ) , cfg , 0 ) ) die_codec ( & codec , \"Failed to initialize encoder\" ) ;\n while ( vpx_img_read ( raw , infile ) ) {\n ++ frame_count ;\n encode_frame ( & codec , raw , frame_count , 1 , 0 , VPX_DL_BEST_QUALITY , writer ) ;\n }\n while ( encode_frame ( & codec , NULL , - 1 , 1 , 0 , VPX_DL_BEST_QUALITY , writer ) ) {\n }\n printf ( \"\\n\" ) ;\n if ( vpx_codec_destroy ( & codec ) ) die_codec ( & codec , \"Failed to destroy codec.\" ) ;\n vpx_video_writer_close ( writer ) ;\n printf ( \"Pass 1 complete. Processed %d frames.\\n\" , frame_count ) ;\n }"}
{"idx": 4354, "target": 0, "func": "static int dissect_rsl_ie_main_ch_ref ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_tree * ie_tree ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_MAIN_CH_REF ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_ie_main_ch_ref , NULL , \"Main channel reference IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_ch_no_TN , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n return offset ;\n }"}
{"idx": 4355, "target": 0, "func": "static void auth_server_reconnect_timeout ( struct auth_server_connection * conn ) {\n ( void ) auth_server_connection_connect ( conn ) ;\n }"}
{"idx": 4356, "target": 0, "func": "int ff_msmpeg4_decode_block ( MpegEncContext * s , int16_t * block , int n , int coded , const uint8_t * scan_table ) {\n int level , i , last , run , run_diff ;\n int av_uninit ( dc_pred_dir ) ;\n RLTable * rl ;\n RL_VLC_ELEM * rl_vlc ;\n int qmul , qadd ;\n if ( s -> mb_intra ) {\n qmul = 1 ;\n qadd = 0 ;\n level = msmpeg4_decode_dc ( s , n , & dc_pred_dir ) ;\n if ( level < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"dc overflow- block: %d qscale: %d//\\n\" , n , s -> qscale ) ;\n if ( s -> inter_intra_pred ) level = 0 ;\n else return - 1 ;\n }\n if ( n < 4 ) {\n rl = & ff_rl_table [ s -> rl_table_index ] ;\n if ( level > 256 * s -> y_dc_scale ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"dc overflow+ L qscale: %d//\\n\" , s -> qscale ) ;\n if ( ! s -> inter_intra_pred ) return - 1 ;\n }\n }\n else {\n rl = & ff_rl_table [ 3 + s -> rl_chroma_table_index ] ;\n if ( level > 256 * s -> c_dc_scale ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"dc overflow+ C qscale: %d//\\n\" , s -> qscale ) ;\n if ( ! s -> inter_intra_pred ) return - 1 ;\n }\n }\n block [ 0 ] = level ;\n run_diff = s -> msmpeg4_version >= 4 ;\n i = 0 ;\n if ( ! coded ) {\n goto not_coded ;\n }\n if ( s -> ac_pred ) {\n if ( dc_pred_dir == 0 ) scan_table = s -> intra_v_scantable . permutated ;\n else scan_table = s -> intra_h_scantable . permutated ;\n }\n else {\n scan_table = s -> intra_scantable . permutated ;\n }\n rl_vlc = rl -> rl_vlc [ 0 ] ;\n }\n else {\n qmul = s -> qscale << 1 ;\n qadd = ( s -> qscale - 1 ) | 1 ;\n i = - 1 ;\n rl = & ff_rl_table [ 3 + s -> rl_table_index ] ;\n if ( s -> msmpeg4_version == 2 ) run_diff = 0 ;\n else run_diff = 1 ;\n if ( ! coded ) {\n s -> block_last_index [ n ] = i ;\n return 0 ;\n }\n if ( ! scan_table ) scan_table = s -> inter_scantable . permutated ;\n rl_vlc = rl -> rl_vlc [ s -> qscale ] ;\n }\n {\n OPEN_READER ( re , & s -> gb ) ;\n for ( ;\n ;\n ) {\n UPDATE_CACHE ( re , & s -> gb ) ;\n GET_RL_VLC ( level , run , re , & s -> gb , rl_vlc , TEX_VLC_BITS , 2 , 0 ) ;\n if ( level == 0 ) {\n int cache ;\n cache = GET_CACHE ( re , & s -> gb ) ;\n if ( s -> msmpeg4_version == 1 || ( cache & 0x80000000 ) == 0 ) {\n if ( s -> msmpeg4_version == 1 || ( cache & 0x40000000 ) == 0 ) {\n if ( s -> msmpeg4_version != 1 ) LAST_SKIP_BITS ( re , & s -> gb , 2 ) ;\n UPDATE_CACHE ( re , & s -> gb ) ;\n if ( s -> msmpeg4_version <= 3 ) {\n last = SHOW_UBITS ( re , & s -> gb , 1 ) ;\n SKIP_CACHE ( re , & s -> gb , 1 ) ;\n run = SHOW_UBITS ( re , & s -> gb , 6 ) ;\n SKIP_CACHE ( re , & s -> gb , 6 ) ;\n level = SHOW_SBITS ( re , & s -> gb , 8 ) ;\n SKIP_COUNTER ( re , & s -> gb , 1 + 6 + 8 ) ;\n }\n else {\n int sign ;\n last = SHOW_UBITS ( re , & s -> gb , 1 ) ;\n SKIP_BITS ( re , & s -> gb , 1 ) ;\n if ( ! s -> esc3_level_length ) {\n int ll ;\n av_dlog ( s -> avctx , \"ESC-3 %X at %d %d\\n\" , show_bits ( & s -> gb , 24 ) , s -> mb_x , s -> mb_y ) ;\n if ( s -> qscale < 8 ) {\n ll = SHOW_UBITS ( re , & s -> gb , 3 ) ;\n SKIP_BITS ( re , & s -> gb , 3 ) ;\n if ( ll == 0 ) {\n ll = 8 + SHOW_UBITS ( re , & s -> gb , 1 ) ;\n SKIP_BITS ( re , & s -> gb , 1 ) ;\n }\n }\n else {\n ll = 2 ;\n while ( ll < 8 && SHOW_UBITS ( re , & s -> gb , 1 ) == 0 ) {\n ll ++ ;\n SKIP_BITS ( re , & s -> gb , 1 ) ;\n }\n if ( ll < 8 ) SKIP_BITS ( re , & s -> gb , 1 ) ;\n }\n s -> esc3_level_length = ll ;\n s -> esc3_run_length = SHOW_UBITS ( re , & s -> gb , 2 ) + 3 ;\n SKIP_BITS ( re , & s -> gb , 2 ) ;\n UPDATE_CACHE ( re , & s -> gb ) ;\n }\n run = SHOW_UBITS ( re , & s -> gb , s -> esc3_run_length ) ;\n SKIP_BITS ( re , & s -> gb , s -> esc3_run_length ) ;\n sign = SHOW_UBITS ( re , & s -> gb , 1 ) ;\n SKIP_BITS ( re , & s -> gb , 1 ) ;\n level = SHOW_UBITS ( re , & s -> gb , s -> esc3_level_length ) ;\n SKIP_BITS ( re , & s -> gb , s -> esc3_level_length ) ;\n if ( sign ) level = - level ;\n }\n # if 0 {\n const int abs_level = FFABS ( level ) ;\n const int run1 = run - rl -> max_run [ last ] [ abs_level ] - run_diff ;\n if ( abs_level <= MAX_LEVEL && run <= MAX_RUN ) {\n if ( abs_level <= rl -> max_level [ last ] [ run ] ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"illegal 3. esc, vlc encoding possible\\n\" ) ;\n return DECODING_AC_LOST ;\n }\n if ( abs_level <= rl -> max_level [ last ] [ run ] * 2 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"illegal 3. esc, esc 1 encoding possible\\n\" ) ;\n return DECODING_AC_LOST ;\n }\n if ( run1 >= 0 && abs_level <= rl -> max_level [ last ] [ run1 ] ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"illegal 3. esc, esc 2 encoding possible\\n\" ) ;\n return DECODING_AC_LOST ;\n }\n }\n }\n # endif if ( level > 0 ) level = level * qmul + qadd ;\n else level = level * qmul - qadd ;\n # if 0 if ( level > 2048 || level < - 2048 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"|level| overflow in 3. esc\\n\" ) ;\n return DECODING_AC_LOST ;\n }\n # endif i += run + 1 ;\n if ( last ) i += 192 ;\n # ifdef ERROR_DETAILS if ( run == 66 ) av_log ( s -> avctx , AV_LOG_ERROR , \"illegal vlc code in ESC3 level=%d\\n\" , level ) ;\n else if ( ( i > 62 && i < 192 ) || i > 192 + 63 ) av_log ( s -> avctx , AV_LOG_ERROR , \"run overflow in ESC3 i=%d run=%d level=%d\\n\" , i , run , level ) ;\n # endif }\n else {\n SKIP_BITS ( re , & s -> gb , 2 ) ;\n GET_RL_VLC ( level , run , re , & s -> gb , rl_vlc , TEX_VLC_BITS , 2 , 1 ) ;\n i += run + rl -> max_run [ run >> 7 ] [ level / qmul ] + run_diff ;\n level = ( level ^ SHOW_SBITS ( re , & s -> gb , 1 ) ) - SHOW_SBITS ( re , & s -> gb , 1 ) ;\n LAST_SKIP_BITS ( re , & s -> gb , 1 ) ;\n # ifdef ERROR_DETAILS if ( run == 66 ) av_log ( s -> avctx , AV_LOG_ERROR , \"illegal vlc code in ESC2 level=%d\\n\" , level ) ;\n else if ( ( i > 62 && i < 192 ) || i > 192 + 63 ) av_log ( s -> avctx , AV_LOG_ERROR , \"run overflow in ESC2 i=%d run=%d level=%d\\n\" , i , run , level ) ;\n # endif }\n }\n else {\n SKIP_BITS ( re , & s -> gb , 1 ) ;\n GET_RL_VLC ( level , run , re , & s -> gb , rl_vlc , TEX_VLC_BITS , 2 , 1 ) ;\n i += run ;\n level = level + rl -> max_level [ run >> 7 ] [ ( run - 1 ) & 63 ] * qmul ;\n level = ( level ^ SHOW_SBITS ( re , & s -> gb , 1 ) ) - SHOW_SBITS ( re , & s -> gb , 1 ) ;\n LAST_SKIP_BITS ( re , & s -> gb , 1 ) ;\n # ifdef ERROR_DETAILS if ( run == 66 ) av_log ( s -> avctx , AV_LOG_ERROR , \"illegal vlc code in ESC1 level=%d\\n\" , level ) ;\n else if ( ( i > 62 && i < 192 ) || i > 192 + 63 ) av_log ( s -> avctx , AV_LOG_ERROR , \"run overflow in ESC1 i=%d run=%d level=%d\\n\" , i , run , level ) ;\n # endif }\n }\n else {\n i += run ;\n level = ( level ^ SHOW_SBITS ( re , & s -> gb , 1 ) ) - SHOW_SBITS ( re , & s -> gb , 1 ) ;\n LAST_SKIP_BITS ( re , & s -> gb , 1 ) ;\n # ifdef ERROR_DETAILS if ( run == 66 ) av_log ( s -> avctx , AV_LOG_ERROR , \"illegal vlc code level=%d\\n\" , level ) ;\n else if ( ( i > 62 && i < 192 ) || i > 192 + 63 ) av_log ( s -> avctx , AV_LOG_ERROR , \"run overflow i=%d run=%d level=%d\\n\" , i , run , level ) ;\n # endif }\n if ( i > 62 ) {\n i -= 192 ;\n if ( i & ( ~ 63 ) ) {\n const int left = get_bits_left ( & s -> gb ) ;\n if ( ( ( i + 192 == 64 && level / qmul == - 1 ) || ! ( s -> err_recognition & AV_EF_BITSTREAM ) ) && left >= 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"ignoring overflow at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n break ;\n }\n else {\n av_log ( s -> avctx , AV_LOG_ERROR , \"ac-tex damaged at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n }\n block [ scan_table [ i ] ] = level ;\n break ;\n }\n block [ scan_table [ i ] ] = level ;\n }\n CLOSE_READER ( re , & s -> gb ) ;\n }\n not_coded : if ( s -> mb_intra ) {\n ff_mpeg4_pred_ac ( s , block , n , dc_pred_dir ) ;\n if ( s -> ac_pred ) {\n i = 63 ;\n }\n }\n if ( s -> msmpeg4_version >= 4 && i > 0 ) i = 63 ;\n s -> block_last_index [ n ] = i ;\n return 0 ;\n }"}
{"idx": 4357, "target": 0, "func": "gboolean oid_has_dissector ( const char * oid ) {\n return ( dissector_get_string_handle ( ber_oid_dissector_table , oid ) != NULL ) ;\n }"}
{"idx": 4358, "target": 0, "func": "static void write_display_size ( const VP9_COMMON * cm , struct vp9_write_bit_buffer * wb ) {\n const int scaling_active = cm -> width != cm -> display_width || cm -> height != cm -> display_height ;\n vp9_wb_write_bit ( wb , scaling_active ) ;\n if ( scaling_active ) {\n vp9_wb_write_literal ( wb , cm -> display_width - 1 , 16 ) ;\n vp9_wb_write_literal ( wb , cm -> display_height - 1 , 16 ) ;\n }\n }"}
{"idx": 4359, "target": 0, "func": "static void * sparc32_dma_init ( hwaddr daddr , qemu_irq parent_irq , void * iommu , qemu_irq * dev_irq , int is_ledma ) {\n DeviceState * dev ;\n SysBusDevice * s ;\n dev = qdev_create ( NULL , \"sparc32_dma\" ) ;\n qdev_prop_set_ptr ( dev , \"iommu_opaque\" , iommu ) ;\n qdev_prop_set_uint32 ( dev , \"is_ledma\" , is_ledma ) ;\n qdev_init_nofail ( dev ) ;\n s = SYS_BUS_DEVICE ( dev ) ;\n sysbus_connect_irq ( s , 0 , parent_irq ) ;\n * dev_irq = qdev_get_gpio_in ( dev , 0 ) ;\n sysbus_mmio_map ( s , 0 , daddr ) ;\n return s ;\n }"}
{"idx": 4360, "target": 0, "func": "static void gs_heap_status ( gs_memory_t * mem , gs_memory_status_t * pstat ) {\n gs_malloc_memory_t * mmem = ( gs_malloc_memory_t * ) mem ;\n pstat -> allocated = mmem -> used + heap_available ( ) ;\n pstat -> used = mmem -> used ;\n pstat -> is_thread_safe = true ;\n }"}
{"idx": 4361, "target": 0, "func": "static void async_job_end ( NautilusDirectory * directory , const char * job ) {\n # ifdef DEBUG_ASYNC_JOBS char * key ;\n gpointer table_key , value ;\n # endif # ifdef DEBUG_START_STOP g_message ( \"stopping %s in %p\" , job , directory -> details -> location ) ;\n # endif g_assert ( async_job_count > 0 ) ;\n # ifdef DEBUG_ASYNC_JOBS {\n char * uri ;\n uri = nautilus_directory_get_uri ( directory ) ;\n g_assert ( async_jobs != NULL ) ;\n key = g_strconcat ( uri , \": \" , job , NULL ) ;\n if ( ! g_hash_table_lookup_extended ( async_jobs , key , & table_key , & value ) ) {\n g_warning ( \"ending job we didn't start: %s in %s\" , job , uri ) ;\n }\n else {\n g_hash_table_remove ( async_jobs , key ) ;\n g_free ( table_key ) ;\n }\n g_free ( uri ) ;\n g_free ( key ) ;\n }\n # endif async_job_count -= 1 ;\n }"}
{"idx": 4362, "target": 0, "func": "void pdf_drop_cmap_imp ( fz_context * ctx , fz_storable * cmap_ ) {\n pdf_cmap * cmap = ( pdf_cmap * ) cmap_ ;\n pdf_drop_cmap ( ctx , cmap -> usecmap ) ;\n fz_free ( ctx , cmap -> ranges ) ;\n fz_free ( ctx , cmap -> xranges ) ;\n fz_free ( ctx , cmap -> mranges ) ;\n fz_free ( ctx , cmap -> dict ) ;\n fz_free ( ctx , cmap -> tree ) ;\n fz_free ( ctx , cmap ) ;\n }"}
{"idx": 4363, "target": 0, "func": "int test_mod_exp_mont5 ( BIO * bp , BN_CTX * ctx ) {\n BIGNUM * a , * p , * m , * d , * e ;\n BN_MONT_CTX * mont ;\n a = BN_new ( ) ;\n p = BN_new ( ) ;\n m = BN_new ( ) ;\n d = BN_new ( ) ;\n e = BN_new ( ) ;\n mont = BN_MONT_CTX_new ( ) ;\n BN_bntest_rand ( m , 1024 , 0 , 1 ) ;\n BN_bntest_rand ( a , 1024 , 0 , 0 ) ;\n BN_zero ( p ) ;\n if ( ! BN_mod_exp_mont_consttime ( d , a , p , m , ctx , NULL ) ) return 0 ;\n if ( ! BN_is_one ( d ) ) {\n fprintf ( stderr , \"Modular exponentiation test failed!\\n\" ) ;\n return 0 ;\n }\n BN_bntest_rand ( p , 1024 , 0 , 0 ) ;\n BN_zero ( a ) ;\n if ( ! BN_mod_exp_mont_consttime ( d , a , p , m , ctx , NULL ) ) return 0 ;\n if ( ! BN_is_zero ( d ) ) {\n fprintf ( stderr , \"Modular exponentiation test failed!\\n\" ) ;\n return 0 ;\n }\n BN_one ( a ) ;\n BN_MONT_CTX_set ( mont , m , ctx ) ;\n if ( ! BN_from_montgomery ( e , a , mont , ctx ) ) return 0 ;\n if ( ! BN_mod_exp_mont_consttime ( d , e , p , m , ctx , NULL ) ) return 0 ;\n if ( ! BN_mod_exp_simple ( a , e , p , m , ctx ) ) return 0 ;\n if ( BN_cmp ( a , d ) != 0 ) {\n fprintf ( stderr , \"Modular exponentiation test failed!\\n\" ) ;\n return 0 ;\n }\n BN_bntest_rand ( e , 1024 , 0 , 0 ) ;\n if ( ! BN_mod_exp_mont_consttime ( d , e , p , m , ctx , NULL ) ) return 0 ;\n if ( ! BN_mod_exp_simple ( a , e , p , m , ctx ) ) return 0 ;\n if ( BN_cmp ( a , d ) != 0 ) {\n fprintf ( stderr , \"Modular exponentiation test failed!\\n\" ) ;\n return 0 ;\n }\n BN_free ( a ) ;\n BN_free ( p ) ;\n BN_free ( m ) ;\n BN_free ( d ) ;\n BN_free ( e ) ;\n return ( 1 ) ;\n }"}
{"idx": 4364, "target": 0, "func": "static void nbd_update_server_watch ( void ) {\n if ( nbd_can_accept ( ) ) {\n if ( server_watch == - 1 ) {\n server_watch = qio_channel_add_watch ( QIO_CHANNEL ( server_ioc ) , G_IO_IN , nbd_accept , NULL , NULL ) ;\n }\n }\n else {\n if ( server_watch != - 1 ) {\n g_source_remove ( server_watch ) ;\n server_watch = - 1 ;\n }\n }\n }"}
{"idx": 4365, "target": 0, "func": "void TSUrlPrint ( TSMBuffer bufp , TSMLoc obj , TSIOBuffer iobufp ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_url_handle ( obj ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_iocore_structure ( iobufp ) == TS_SUCCESS ) ;\n MIOBuffer * b = ( MIOBuffer * ) iobufp ;\n IOBufferBlock * blk ;\n int bufindex ;\n int tmp , dumpoffset ;\n int done ;\n URL u ;\n u . m_heap = ( ( HdrHeapSDKHandle * ) bufp ) -> m_heap ;\n u . m_url_impl = ( URLImpl * ) obj ;\n dumpoffset = 0 ;\n do {\n blk = b -> get_current_block ( ) ;\n if ( ! blk || blk -> write_avail ( ) == 0 ) {\n b -> add_block ( ) ;\n blk = b -> get_current_block ( ) ;\n }\n bufindex = 0 ;\n tmp = dumpoffset ;\n done = u . print ( blk -> end ( ) , blk -> write_avail ( ) , & bufindex , & tmp ) ;\n dumpoffset += bufindex ;\n b -> fill ( bufindex ) ;\n }\n while ( ! done ) ;\n }"}
{"idx": 4366, "target": 0, "func": "static int dissect_h245_SEQUENCE_OF_PictureReference ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h245_SEQUENCE_OF_PictureReference , SEQUENCE_OF_PictureReference_sequence_of ) ;\n return offset ;\n }"}
{"idx": 4367, "target": 0, "func": "static float tilt_factor ( const float * lpcs , int n_lpcs ) {\n float rh0 , rh1 ;\n rh0 = 1.0 + avpriv_scalarproduct_float_c ( lpcs , lpcs , n_lpcs ) ;\n rh1 = lpcs [ 0 ] + avpriv_scalarproduct_float_c ( lpcs , & lpcs [ 1 ] , n_lpcs - 1 ) ;\n return rh1 / rh0 ;\n }"}
{"idx": 4368, "target": 0, "func": "int arm_cpu_caps ( void ) {\n int flags ;\n int mask ;\n if ( ! arm_cpu_env_flags ( & flags ) ) {\n return flags ;\n }\n mask = arm_cpu_env_mask ( ) ;\n # if HAVE_EDSP flags |= HAS_EDSP ;\n # endif # if HAVE_MEDIA flags |= HAS_MEDIA ;\n # endif # if HAVE_NEON || HAVE_NEON_ASM flags |= HAS_NEON ;\n # endif return flags & mask ;\n }"}
{"idx": 4369, "target": 0, "func": "static void file_deleted_callback ( GFile * file , GError * error , gpointer callback_data ) {\n DeleteData * data = callback_data ;\n CommonJob * job ;\n SourceInfo * source_info ;\n TransferInfo * transfer_info ;\n GFileType file_type ;\n char * primary ;\n char * secondary ;\n char * details = NULL ;\n int response ;\n job = data -> job ;\n source_info = data -> source_info ;\n transfer_info = data -> transfer_info ;\n data -> transfer_info -> num_files ++ ;\n if ( error == NULL ) {\n nautilus_file_changes_queue_file_removed ( file ) ;\n report_delete_progress ( data -> job , data -> source_info , data -> transfer_info ) ;\n return ;\n }\n if ( job_aborted ( job ) || job -> skip_all_error || should_skip_file ( job , file ) || should_skip_readdir_error ( job , file ) ) {\n return ;\n }\n primary = f ( _ ( \"Error while deleting.\" ) ) ;\n file_type = g_file_query_file_type ( file , G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS , job -> cancellable ) ;\n if ( file_type == G_FILE_TYPE_DIRECTORY ) {\n secondary = IS_IO_ERROR ( error , PERMISSION_DENIED ) ? f ( _ ( \"There was an error deleting the folder \u201c%B\u201d.\" ) , file ) : f ( _ ( \"You do not have sufficient permissions to delete the folder \u201c%B\u201d.\" ) , file ) ;\n }\n else {\n secondary = IS_IO_ERROR ( error , PERMISSION_DENIED ) ? f ( _ ( \"There was an error deleting the file \u201c%B\u201d.\" ) , file ) : f ( _ ( \"You do not have sufficient permissions to delete the file \u201c%B\u201d.\" ) , file ) ;\n }\n details = error -> message ;\n response = run_cancel_or_skip_warning ( job , primary , secondary , details , source_info -> num_files , source_info -> num_files - transfer_info -> num_files ) ;\n if ( response == 0 || response == GTK_RESPONSE_DELETE_EVENT ) {\n abort_job ( job ) ;\n }\n else if ( response == 1 ) {\n job -> skip_all_error = TRUE ;\n }\n }"}
{"idx": 4370, "target": 0, "func": "static void RestoreOutput ( ArchiveHandle * AH , OutputContext savedContext ) {\n int res ;\n if ( AH -> gzOut ) res = GZCLOSE ( AH -> OF ) ;\n else res = fclose ( AH -> OF ) ;\n if ( res != 0 ) exit_horribly ( modulename , \"could not close output file: %s\\n\" , strerror ( errno ) ) ;\n AH -> gzOut = savedContext . gzOut ;\n AH -> OF = savedContext . OF ;\n }"}
{"idx": 4371, "target": 1, "func": "int main ( int argc , char * argv [ ] ) {\n const char * globfile [ ] = {\n \"one\" , \"two\" , \"three\" , NULL }\n ;\n char tmpdir [ 32 ] ;\n struct passwd * pw ;\n const char * cwd ;\n int test ;\n int fail = 0 ;\n int i ;\n struct test_case_struct ts ;\n if ( argc > 1 ) {\n command_line_test ( argv [ 1 ] ) ;\n return 0 ;\n }\n cwd = getcwd ( NULL , 0 ) ;\n tmpnam ( tmpdir ) ;\n if ( mkdir ( tmpdir , S_IRWXU ) || chdir ( tmpdir ) ) return - 1 ;\n else {\n int fd ;\n for ( i = 0 ;\n globfile [ i ] ;\n ++ i ) if ( ( fd = creat ( globfile [ i ] , S_IRUSR | S_IWUSR ) ) == - 1 || close ( fd ) ) return - 1 ;\n }\n for ( test = 0 ;\n test_case [ test ] . retval != - 1 ;\n test ++ ) if ( testit ( & test_case [ test ] ) ) ++ fail ;\n pw = getpwnam ( \"root\" ) ;\n if ( pw != NULL ) {\n ts . retval = 0 ;\n ts . env = NULL ;\n ts . words = \"~root \" ;\n ts . flags = 0 ;\n ts . wordc = 1 ;\n ts . wordv [ 0 ] = pw -> pw_dir ;\n ts . ifs = IFS ;\n if ( testit ( & ts ) ) ++ fail ;\n ts . retval = 0 ;\n ts . env = pw -> pw_dir ;\n ts . words = \"${\nvar#~root}\nx\" ;\n ts . flags = 0 ;\n ts . wordc = 1 ;\n ts . wordv [ 0 ] = \"x\" ;\n ts . ifs = IFS ;\n if ( testit ( & ts ) ) ++ fail ;\n }\n setenv ( \"HOME\" , \"/dummy/home\" , 1 ) ;\n ts . retval = 0 ;\n ts . env = NULL ;\n ts . words = \"~ ~/foo\" ;\n ts . flags = 0 ;\n ts . wordc = 2 ;\n ts . wordv [ 0 ] = \"/dummy/home\" ;\n ts . wordv [ 1 ] = \"/dummy/home/foo\" ;\n ts . ifs = IFS ;\n if ( testit ( & ts ) ) ++ fail ;\n pw = getpwuid ( getuid ( ) ) ;\n if ( pw != NULL ) {\n unsetenv ( \"HOME\" ) ;\n ts . retval = 0 ;\n ts . env = NULL ;\n ts . words = \"~\" ;\n ts . flags = 0 ;\n ts . wordc = 1 ;\n ts . wordv [ 0 ] = pw -> pw_dir ;\n ts . ifs = IFS ;\n if ( testit ( & ts ) ) ++ fail ;\n }\n puts ( \"tests completed, now cleaning up\" ) ;\n for ( i = 0 ;\n globfile [ i ] ;\n ++ i ) remove ( globfile [ i ] ) ;\n if ( cwd == NULL ) cwd = \"..\" ;\n chdir ( cwd ) ;\n rmdir ( tmpdir ) ;\n printf ( \"tests failed: %d\\n\" , fail ) ;\n return fail != 0 ;\n }"}
{"idx": 4372, "target": 0, "func": "int qemuMonitorJSONDelDevice ( qemuMonitorPtr mon , const char * devalias ) {\n int ret ;\n virJSONValuePtr cmd ;\n virJSONValuePtr reply = NULL ;\n cmd = qemuMonitorJSONMakeCommand ( \"device_del\" , \"s:id\" , devalias , NULL ) ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 4373, "target": 0, "func": "char * curlx_strdup ( const char * str ) {\n size_t len ;\n char * newstr ;\n if ( ! str ) return ( char * ) NULL ;\n len = strlen ( str ) ;\n if ( len >= ( ( size_t ) - 1 ) / sizeof ( char ) ) return ( char * ) NULL ;\n newstr = malloc ( ( len + 1 ) * sizeof ( char ) ) ;\n if ( ! newstr ) return ( char * ) NULL ;\n memcpy ( newstr , str , ( len + 1 ) * sizeof ( char ) ) ;\n return newstr ;\n }"}
{"idx": 4374, "target": 0, "func": "static void e1000e_set_rxdctl ( E1000ECore * core , int index , uint32_t val ) {\n core -> mac [ RXDCTL ] = core -> mac [ RXDCTL1 ] = val ;\n }"}
{"idx": 4375, "target": 0, "func": "static int dprintf_Pass1 ( const char * format , va_stack_t * vto , char * * endpos , va_list arglist ) {\n char * fmt = ( char * ) format ;\n int param_num = 0 ;\n long this_param ;\n long width ;\n long precision ;\n int flags ;\n long max_param = 0 ;\n long i ;\n while ( * fmt ) {\n if ( * fmt ++ == '%' ) {\n if ( * fmt == '%' ) {\n fmt ++ ;\n continue ;\n }\n flags = FLAGS_NEW ;\n param_num ++ ;\n this_param = dprintf_DollarString ( fmt , & fmt ) ;\n if ( 0 == this_param ) this_param = param_num ;\n if ( this_param > max_param ) max_param = this_param ;\n width = 0 ;\n precision = 0 ;\n while ( dprintf_IsQualifierNoDollar ( fmt ) ) {\n # if defined ( MP_HAVE_INT_EXTENSIONS ) if ( ! strncmp ( fmt , \"I32\" , 3 ) ) {\n flags |= FLAGS_LONG ;\n fmt += 3 ;\n }\n else if ( ! strncmp ( fmt , \"I64\" , 3 ) ) {\n flags |= FLAGS_LONGLONG ;\n fmt += 3 ;\n }\n else # endif switch ( * fmt ++ ) {\n case ' ' : flags |= FLAGS_SPACE ;\n break ;\n case '+' : flags |= FLAGS_SHOWSIGN ;\n break ;\n case '-' : flags |= FLAGS_LEFT ;\n flags &= ~ FLAGS_PAD_NIL ;\n break ;\n case '#' : flags |= FLAGS_ALT ;\n break ;\n case '.' : flags |= FLAGS_PREC ;\n if ( '*' == * fmt ) {\n flags |= FLAGS_PRECPARAM ;\n fmt ++ ;\n param_num ++ ;\n i = dprintf_DollarString ( fmt , & fmt ) ;\n if ( i ) precision = i ;\n else precision = param_num ;\n if ( precision > max_param ) max_param = precision ;\n }\n else {\n flags |= FLAGS_PREC ;\n precision = strtol ( fmt , & fmt , 10 ) ;\n }\n break ;\n case 'h' : flags |= FLAGS_SHORT ;\n break ;\n # if defined ( MP_HAVE_INT_EXTENSIONS ) case 'I' : # if ( CURL_SIZEOF_CURL_OFF_T > CURL_SIZEOF_LONG ) flags |= FLAGS_LONGLONG ;\n # else flags |= FLAGS_LONG ;\n # endif break ;\n # endif case 'l' : if ( flags & FLAGS_LONG ) flags |= FLAGS_LONGLONG ;\n else flags |= FLAGS_LONG ;\n break ;\n case 'L' : flags |= FLAGS_LONGDOUBLE ;\n break ;\n case 'q' : flags |= FLAGS_LONGLONG ;\n break ;\n case 'z' : # if ( SIZEOF_SIZE_T > CURL_SIZEOF_LONG ) flags |= FLAGS_LONGLONG ;\n # else flags |= FLAGS_LONG ;\n # endif break ;\n case 'O' : # if ( CURL_SIZEOF_CURL_OFF_T > CURL_SIZEOF_LONG ) flags |= FLAGS_LONGLONG ;\n # else flags |= FLAGS_LONG ;\n # endif break ;\n case '0' : if ( ! ( flags & FLAGS_LEFT ) ) flags |= FLAGS_PAD_NIL ;\n case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : flags |= FLAGS_WIDTH ;\n width = strtol ( fmt - 1 , & fmt , 10 ) ;\n break ;\n case '*' : flags |= FLAGS_WIDTHPARAM ;\n param_num ++ ;\n i = dprintf_DollarString ( fmt , & fmt ) ;\n if ( i ) width = i ;\n else width = param_num ;\n if ( width > max_param ) max_param = width ;\n break ;\n default : break ;\n }\n }\n i = this_param - 1 ;\n if ( ( i < 0 ) || ( i >= MAX_PARAMETERS ) ) return 1 ;\n switch ( * fmt ) {\n case 'S' : flags |= FLAGS_ALT ;\n case 's' : vto [ i ] . type = FORMAT_STRING ;\n break ;\n case 'n' : vto [ i ] . type = FORMAT_INTPTR ;\n break ;\n case 'p' : vto [ i ] . type = FORMAT_PTR ;\n break ;\n case 'd' : case 'i' : vto [ i ] . type = FORMAT_INT ;\n break ;\n case 'u' : vto [ i ] . type = FORMAT_INT ;\n flags |= FLAGS_UNSIGNED ;\n break ;\n case 'o' : vto [ i ] . type = FORMAT_INT ;\n flags |= FLAGS_OCTAL ;\n break ;\n case 'x' : vto [ i ] . type = FORMAT_INT ;\n flags |= FLAGS_HEX | FLAGS_UNSIGNED ;\n break ;\n case 'X' : vto [ i ] . type = FORMAT_INT ;\n flags |= FLAGS_HEX | FLAGS_UPPER | FLAGS_UNSIGNED ;\n break ;\n case 'c' : vto [ i ] . type = FORMAT_INT ;\n flags |= FLAGS_CHAR ;\n break ;\n case 'f' : vto [ i ] . type = FORMAT_DOUBLE ;\n break ;\n case 'e' : vto [ i ] . type = FORMAT_DOUBLE ;\n flags |= FLAGS_FLOATE ;\n break ;\n case 'E' : vto [ i ] . type = FORMAT_DOUBLE ;\n flags |= FLAGS_FLOATE | FLAGS_UPPER ;\n break ;\n case 'g' : vto [ i ] . type = FORMAT_DOUBLE ;\n flags |= FLAGS_FLOATG ;\n break ;\n case 'G' : vto [ i ] . type = FORMAT_DOUBLE ;\n flags |= FLAGS_FLOATG | FLAGS_UPPER ;\n break ;\n default : vto [ i ] . type = FORMAT_UNKNOWN ;\n break ;\n }\n vto [ i ] . flags = flags ;\n vto [ i ] . width = width ;\n vto [ i ] . precision = precision ;\n if ( flags & FLAGS_WIDTHPARAM ) {\n long k = width - 1 ;\n vto [ i ] . width = k ;\n vto [ k ] . type = FORMAT_WIDTH ;\n vto [ k ] . flags = FLAGS_NEW ;\n vto [ k ] . width = 0 ;\n vto [ k ] . precision = 0 ;\n }\n if ( flags & FLAGS_PRECPARAM ) {\n long k = precision - 1 ;\n vto [ i ] . precision = k ;\n vto [ k ] . type = FORMAT_WIDTH ;\n vto [ k ] . flags = FLAGS_NEW ;\n vto [ k ] . width = 0 ;\n vto [ k ] . precision = 0 ;\n }\n * endpos ++ = fmt + 1 ;\n }\n }\n for ( i = 0 ;\n i < max_param ;\n i ++ ) {\n if ( vto [ i ] . flags & FLAGS_WIDTHPARAM ) {\n vto [ vto [ i ] . width ] . data . num . as_signed = ( mp_intmax_t ) va_arg ( arglist , int ) ;\n }\n if ( vto [ i ] . flags & FLAGS_PRECPARAM ) {\n vto [ vto [ i ] . precision ] . data . num . as_signed = ( mp_intmax_t ) va_arg ( arglist , int ) ;\n }\n switch ( vto [ i ] . type ) {\n case FORMAT_STRING : vto [ i ] . data . str = va_arg ( arglist , char * ) ;\n break ;\n case FORMAT_INTPTR : case FORMAT_UNKNOWN : case FORMAT_PTR : vto [ i ] . data . ptr = va_arg ( arglist , void * ) ;\n break ;\n case FORMAT_INT : # ifdef HAVE_LONG_LONG_TYPE if ( ( vto [ i ] . flags & FLAGS_LONGLONG ) && ( vto [ i ] . flags & FLAGS_UNSIGNED ) ) vto [ i ] . data . num . as_unsigned = ( mp_uintmax_t ) va_arg ( arglist , mp_uintmax_t ) ;\n else if ( vto [ i ] . flags & FLAGS_LONGLONG ) vto [ i ] . data . num . as_signed = ( mp_intmax_t ) va_arg ( arglist , mp_intmax_t ) ;\n else # endif {\n if ( ( vto [ i ] . flags & FLAGS_LONG ) && ( vto [ i ] . flags & FLAGS_UNSIGNED ) ) vto [ i ] . data . num . as_unsigned = ( mp_uintmax_t ) va_arg ( arglist , unsigned long ) ;\n else if ( vto [ i ] . flags & FLAGS_LONG ) vto [ i ] . data . num . as_signed = ( mp_intmax_t ) va_arg ( arglist , long ) ;\n else if ( vto [ i ] . flags & FLAGS_UNSIGNED ) vto [ i ] . data . num . as_unsigned = ( mp_uintmax_t ) va_arg ( arglist , unsigned int ) ;\n else vto [ i ] . data . num . as_signed = ( mp_intmax_t ) va_arg ( arglist , int ) ;\n }\n break ;\n case FORMAT_DOUBLE : vto [ i ] . data . dnum = va_arg ( arglist , double ) ;\n break ;\n case FORMAT_WIDTH : vto [ i ] . type = FORMAT_INT ;\n break ;\n default : break ;\n }\n }\n return 0 ;\n }"}
{"idx": 4376, "target": 0, "func": "static afs_int32 removeFromGroup ( struct rx_call * call , afs_int32 aid , afs_int32 gid , afs_int32 * cid ) {\n afs_int32 code ;\n struct ubik_trans * tt ;\n afs_int32 tempu ;\n afs_int32 tempg ;\n struct prentry uentry ;\n struct prentry gentry ;\n code = Initdb ( ) ;\n if ( code != PRSUCCESS ) return code ;\n code = ubik_BeginTrans ( dbase , UBIK_WRITETRANS , & tt ) ;\n if ( code ) return code ;\n code = ubik_SetLock ( tt , 1 , 1 , LOCKWRITE ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = read_DbHeader ( tt ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = WhoIsThis ( call , tt , cid ) ;\n if ( code ) ABORT_WITH ( tt , PRPERM ) ;\n tempu = FindByID ( tt , aid ) ;\n if ( ! tempu ) ABORT_WITH ( tt , PRNOENT ) ;\n tempg = FindByID ( tt , gid ) ;\n if ( ! tempg ) ABORT_WITH ( tt , PRNOENT ) ;\n memset ( & uentry , 0 , sizeof ( uentry ) ) ;\n memset ( & gentry , 0 , sizeof ( gentry ) ) ;\n code = pr_ReadEntry ( tt , 0 , tempu , & uentry ) ;\n if ( code != 0 ) ABORT_WITH ( tt , code ) ;\n code = pr_ReadEntry ( tt , 0 , tempg , & gentry ) ;\n if ( code != 0 ) ABORT_WITH ( tt , code ) ;\n if ( ! ( gentry . flags & PRGRP ) ) ABORT_WITH ( tt , PRNOTGROUP ) ;\n # if ! defined ( SUPERGROUPS ) if ( uentry . flags & PRGRP ) ABORT_WITH ( tt , PRNOTUSER ) ;\n # endif if ( ! AccessOK ( tt , * cid , & gentry , PRP_REMOVE_MEM , 0 ) ) ABORT_WITH ( tt , PRPERM ) ;\n code = RemoveFromEntry ( tt , aid , gid ) ;\n if ( code != PRSUCCESS ) ABORT_WITH ( tt , code ) ;\n # if defined ( SUPERGROUPS ) if ( ! ( uentry . flags & PRGRP ) ) # endif code = RemoveFromEntry ( tt , gid , aid ) ;\n # if defined ( SUPERGROUPS ) else code = RemoveFromSGEntry ( tt , gid , aid ) ;\n # endif if ( code != PRSUCCESS ) ABORT_WITH ( tt , code ) ;\n code = ubik_EndTrans ( tt ) ;\n if ( code ) return code ;\n return PRSUCCESS ;\n }"}
{"idx": 4377, "target": 0, "func": "static guint16 de_keypad_facility ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len _U_ , gchar * add_string , int string_len ) {\n guint8 keypad_char ;\n guint32 curr_offset ;\n proto_item * item ;\n curr_offset = offset ;\n keypad_char = tvb_get_guint8 ( tvb , curr_offset ) & 0x7f ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , curr_offset << 3 , 1 , ENC_BIG_ENDIAN ) ;\n item = proto_tree_add_uint_format_value ( tree , hf_gsm_a_dtap_keypad_information , tvb , curr_offset , 1 , keypad_char , \"%c\" , keypad_char ) ;\n if ( ( ( keypad_char < '0' ) || ( keypad_char > '9' ) ) && ( ( keypad_char < 'A' ) || ( keypad_char > 'D' ) ) && ( keypad_char != '*' ) && ( keypad_char != '#' ) ) expert_add_info ( pinfo , item , & ei_gsm_a_dtap_keypad_info_not_dtmf_digit ) ;\n curr_offset ++ ;\n if ( add_string ) g_snprintf ( add_string , string_len , \" - %c\" , keypad_char ) ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 4378, "target": 0, "func": "static bool str_array_contains ( ARRAY_TYPE ( const_string ) * arr , const char * str ) {\n const char * const * p ;\n array_foreach ( arr , p ) {\n if ( strcmp ( * p , str ) == 0 ) return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 4379, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( UnloadTest , CrossSiteInfiniteUnloadAsync ) {\n if ( base : : CommandLine : : ForCurrentProcess ( ) -> HasSwitch ( switches : : kSingleProcess ) ) return ;\n NavigateToDataURL ( INFINITE_UNLOAD_HTML , \"infiniteunload\" ) ;\n NavigateToNolistenersFileTwiceAsync ( ) ;\n }"}
{"idx": 4380, "target": 0, "func": "static int dissect_nlm_test ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , int version , rpc_call_info_value * rpc_call ) {\n if ( nlm_match_msgres ) {\n if ( rpc_call -> proc == 6 ) {\n if ( ( ! pinfo -> fd -> flags . visited ) ) {\n nlm_register_unmatched_msg ( pinfo , tvb , offset ) ;\n }\n else {\n nlm_print_msgres_request ( pinfo , tree , tvb ) ;\n }\n if ( nfs_fhandle_reqrep_matching ) {\n nlm_match_fhandle_request ( pinfo , tree ) ;\n }\n }\n }\n offset = dissect_rpc_data ( tvb , tree , hf_nlm_cookie , offset ) ;\n dissect_rpc_bool ( tvb , tree , hf_nlm_exclusive , offset ) ;\n offset += 4 ;\n offset = dissect_lock ( tvb , pinfo , tree , version , offset , rpc_call ) ;\n return offset ;\n }"}
{"idx": 4381, "target": 1, "func": "static void e1000e_write_packet_to_guest ( E1000ECore * core , struct NetRxPkt * pkt , const E1000E_RxRing * rxr , const E1000E_RSSInfo * rss_info ) {\n PCIDevice * d = core -> owner ;\n dma_addr_t base ;\n uint8_t desc [ E1000_MAX_RX_DESC_LEN ] ;\n size_t desc_size ;\n size_t desc_offset = 0 ;\n size_t iov_ofs = 0 ;\n struct iovec * iov = net_rx_pkt_get_iovec ( pkt ) ;\n size_t size = net_rx_pkt_get_total_len ( pkt ) ;\n size_t total_size = size + e1000x_fcs_len ( core -> mac ) ;\n const E1000E_RingInfo * rxi ;\n size_t ps_hdr_len = 0 ;\n bool do_ps = e1000e_do_ps ( core , pkt , & ps_hdr_len ) ;\n bool is_first = true ;\n rxi = rxr -> i ;\n do {\n hwaddr ba [ MAX_PS_BUFFERS ] ;\n e1000e_ba_state bastate = {\n {\n 0 }\n }\n ;\n bool is_last = false ;\n desc_size = total_size - desc_offset ;\n if ( desc_size > core -> rx_desc_buf_size ) {\n desc_size = core -> rx_desc_buf_size ;\n }\n base = e1000e_ring_head_descr ( core , rxi ) ;\n pci_dma_read ( d , base , & desc , core -> rx_desc_len ) ;\n trace_e1000e_rx_descr ( rxi -> idx , base , core -> rx_desc_len ) ;\n e1000e_read_rx_descr ( core , desc , & ba ) ;\n if ( ba [ 0 ] ) {\n if ( desc_offset < size ) {\n static const uint32_t fcs_pad ;\n size_t iov_copy ;\n size_t copy_size = size - desc_offset ;\n if ( copy_size > core -> rx_desc_buf_size ) {\n copy_size = core -> rx_desc_buf_size ;\n }\n if ( do_ps ) {\n if ( is_first ) {\n size_t ps_hdr_copied = 0 ;\n do {\n iov_copy = MIN ( ps_hdr_len - ps_hdr_copied , iov -> iov_len - iov_ofs ) ;\n e1000e_write_hdr_to_rx_buffers ( core , & ba , & bastate , iov -> iov_base , iov_copy ) ;\n copy_size -= iov_copy ;\n ps_hdr_copied += iov_copy ;\n iov_ofs += iov_copy ;\n if ( iov_ofs == iov -> iov_len ) {\n iov ++ ;\n iov_ofs = 0 ;\n }\n }\n while ( ps_hdr_copied < ps_hdr_len ) ;\n is_first = false ;\n }\n else {\n e1000e_write_hdr_to_rx_buffers ( core , & ba , & bastate , NULL , 0 ) ;\n }\n }\n while ( copy_size ) {\n iov_copy = MIN ( copy_size , iov -> iov_len - iov_ofs ) ;\n e1000e_write_to_rx_buffers ( core , & ba , & bastate , iov -> iov_base + iov_ofs , iov_copy ) ;\n copy_size -= iov_copy ;\n iov_ofs += iov_copy ;\n if ( iov_ofs == iov -> iov_len ) {\n iov ++ ;\n iov_ofs = 0 ;\n }\n }\n if ( desc_offset + desc_size >= total_size ) {\n e1000e_write_to_rx_buffers ( core , & ba , & bastate , ( const char * ) & fcs_pad , e1000x_fcs_len ( core -> mac ) ) ;\n }\n }\n desc_offset += desc_size ;\n if ( desc_offset >= total_size ) {\n is_last = true ;\n }\n }\n else {\n trace_e1000e_rx_null_descriptor ( ) ;\n }\n e1000e_write_rx_descr ( core , desc , is_last ? core -> rx_pkt : NULL , rss_info , do_ps ? ps_hdr_len : 0 , & bastate . written ) ;\n pci_dma_write ( d , base , & desc , core -> rx_desc_len ) ;\n e1000e_ring_advance ( core , rxi , core -> rx_desc_len / E1000_MIN_RX_DESC_LEN ) ;\n }\n while ( desc_offset < total_size ) ;\n e1000e_update_rx_stats ( core , size , total_size ) ;\n }"}
{"idx": 4382, "target": 0, "func": "static Dwarf_Unsigned dwarf_elf_object_access_get_section_count ( void * obj_in ) {\n dwarf_elf_object_access_internals_t * obj = ( dwarf_elf_object_access_internals_t * ) obj_in ;\n return obj -> section_count ;\n }"}
{"idx": 4383, "target": 0, "func": "static void restore_stack_limit ( lua_State * L ) {\n lua_assert ( L -> stack_last - L -> stack == L -> stacksize - EXTRA_STACK - 1 ) ;\n if ( L -> size_ci > LUAI_MAXCALLS ) {\n int inuse = cast_int ( L -> ci - L -> base_ci ) ;\n if ( inuse + 1 < LUAI_MAXCALLS ) luaD_reallocCI ( L , LUAI_MAXCALLS ) ;\n }\n }"}
{"idx": 4384, "target": 0, "func": "IN_PROC_BROWSER_TEST_P ( BrowserCloseManagerBrowserTest , TestAddWindowWithBeforeUnloadDuringShutdown ) {\n ASSERT_NO_FATAL_FAILURE ( ui_test_utils : : NavigateToURL ( browsers_ [ 0 ] , embedded_test_server ( ) -> GetURL ( \"/beforeunload.html\" ) ) ) ;\n PrepareForDialog ( browsers_ [ 0 ] ) ;\n RepeatedNotificationObserver cancel_observer ( chrome : : NOTIFICATION_BROWSER_CLOSE_CANCELLED , 2 ) ;\n chrome : : CloseAllBrowsersAndQuit ( ) ;\n browsers_ . push_back ( CreateBrowser ( browser ( ) -> profile ( ) ) ) ;\n ASSERT_NO_FATAL_FAILURE ( ui_test_utils : : NavigateToURL ( browsers_ [ 1 ] , embedded_test_server ( ) -> GetURL ( \"/beforeunload.html\" ) ) ) ;\n PrepareForDialog ( browsers_ [ 1 ] ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n ASSERT_NO_FATAL_FAILURE ( CancelClose ( ) ) ;\n cancel_observer . Wait ( ) ;\n EXPECT_FALSE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_EQ ( 1 , browsers_ [ 0 ] -> tab_strip_model ( ) -> count ( ) ) ;\n EXPECT_EQ ( 1 , browsers_ [ 1 ] -> tab_strip_model ( ) -> count ( ) ) ;\n RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , 2 ) ;\n chrome : : CloseAllBrowsersAndQuit ( ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n close_observer . Wait ( ) ;\n EXPECT_TRUE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_TRUE ( BrowserList : : GetInstance ( ) -> empty ( ) ) ;\n }"}
{"idx": 4385, "target": 0, "func": "void get_typlenbyvalalign ( Oid typid , int16 * typlen , bool * typbyval , char * typalign ) {\n HeapTuple tp ;\n Form_pg_type typtup ;\n tp = SearchSysCache1 ( TYPEOID , ObjectIdGetDatum ( typid ) ) ;\n if ( ! HeapTupleIsValid ( tp ) ) elog ( ERROR , \"cache lookup failed for type %u\" , typid ) ;\n typtup = ( Form_pg_type ) GETSTRUCT ( tp ) ;\n * typlen = typtup -> typlen ;\n * typbyval = typtup -> typbyval ;\n * typalign = typtup -> typalign ;\n ReleaseSysCache ( tp ) ;\n }"}
{"idx": 4386, "target": 0, "func": "static const char * lookup_gname ( struct cpio * cpio , gid_t gid ) {\n return ( lookup_name ( cpio , & cpio -> gname_cache , & lookup_gname_helper , ( id_t ) gid ) ) ;\n }"}
{"idx": 4387, "target": 0, "func": "static inline void uprv_arrayCopy ( const icu : : UnicodeString * src , int32_t srcStart , icu : : UnicodeString * dst , int32_t dstStart , int32_t count ) {\n uprv_arrayCopy ( src + srcStart , dst + dstStart , count ) ;\n }"}
{"idx": 4388, "target": 0, "func": "static int ohci_copy_td ( OHCIState * ohci , struct ohci_td * td , uint8_t * buf , int len , DMADirection dir ) {\n dma_addr_t ptr , n ;\n ptr = td -> cbp ;\n n = 0x1000 - ( ptr & 0xfff ) ;\n if ( n > len ) n = len ;\n if ( dma_memory_rw ( ohci -> as , ptr + ohci -> localmem_base , buf , n , dir ) ) {\n return - 1 ;\n }\n if ( n == len ) {\n return 0 ;\n }\n ptr = td -> be & ~ 0xfffu ;\n buf += n ;\n if ( dma_memory_rw ( ohci -> as , ptr + ohci -> localmem_base , buf , len - n , dir ) ) {\n return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 4389, "target": 0, "func": "static BLOCK_SIZE get_bsize ( const VP9_COMMON * cm , int mb_row , int mb_col ) {\n if ( 2 * mb_col + 1 < cm -> mi_cols ) {\n return 2 * mb_row + 1 < cm -> mi_rows ? BLOCK_16X16 : BLOCK_16X8 ;\n }\n else {\n return 2 * mb_row + 1 < cm -> mi_rows ? BLOCK_8X16 : BLOCK_8X8 ;\n }\n }"}
{"idx": 4390, "target": 0, "func": "static void generate ( ELG_secret_key * sk , unsigned int nbits , MPI * * ret_factors ) {\n MPI p ;\n MPI p_min1 ;\n MPI g ;\n MPI x ;\n MPI y ;\n MPI temp ;\n unsigned int qbits ;\n unsigned int xbits ;\n byte * rndbuf ;\n p_min1 = mpi_alloc ( mpi_nlimb_hint_from_nbits ( nbits ) ) ;\n temp = mpi_alloc ( mpi_nlimb_hint_from_nbits ( nbits ) ) ;\n qbits = wiener_map ( nbits ) ;\n if ( qbits & 1 ) qbits ++ ;\n g = mpi_alloc ( 1 ) ;\n p = generate_elg_prime ( 0 , nbits , qbits , g , ret_factors ) ;\n mpi_sub_ui ( p_min1 , p , 1 ) ;\n xbits = qbits * 3 / 2 ;\n if ( xbits >= nbits ) BUG ( ) ;\n x = mpi_alloc_secure ( mpi_nlimb_hint_from_nbits ( xbits ) ) ;\n if ( DBG_CIPHER ) log_debug ( \"choosing a random x of size %u\" , xbits ) ;\n rndbuf = NULL ;\n do {\n if ( DBG_CIPHER ) progress ( '.' ) ;\n if ( rndbuf ) {\n if ( xbits < 16 ) {\n xfree ( rndbuf ) ;\n rndbuf = get_random_bits ( xbits , 2 , 1 ) ;\n }\n else {\n char * r = get_random_bits ( 16 , 2 , 1 ) ;\n memcpy ( rndbuf , r , 16 / 8 ) ;\n xfree ( r ) ;\n }\n }\n else rndbuf = get_random_bits ( xbits , 2 , 1 ) ;\n mpi_set_buffer ( x , rndbuf , ( xbits + 7 ) / 8 , 0 ) ;\n mpi_clear_highbit ( x , xbits + 1 ) ;\n }\n while ( ! ( mpi_cmp_ui ( x , 0 ) > 0 && mpi_cmp ( x , p_min1 ) < 0 ) ) ;\n xfree ( rndbuf ) ;\n y = mpi_alloc ( mpi_nlimb_hint_from_nbits ( nbits ) ) ;\n mpi_powm ( y , g , x , p ) ;\n if ( DBG_CIPHER ) {\n progress ( '\\n' ) ;\n log_mpidump ( \"elg p= \" , p ) ;\n log_mpidump ( \"elg g= \" , g ) ;\n log_mpidump ( \"elg y= \" , y ) ;\n log_mpidump ( \"elg x= \" , x ) ;\n }\n sk -> p = p ;\n sk -> g = g ;\n sk -> y = y ;\n sk -> x = x ;\n test_keys ( sk , nbits - 64 ) ;\n mpi_free ( p_min1 ) ;\n mpi_free ( temp ) ;\n }"}
{"idx": 4391, "target": 0, "func": "static const char * cmd_rule_remove_by_msg ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n rule_exception * re = apr_pcalloc ( cmd -> pool , sizeof ( rule_exception ) ) ;\n if ( dcfg == NULL ) return NULL ;\n re -> type = RULE_EXCEPTION_REMOVE_MSG ;\n re -> param = p1 ;\n re -> param_data = msc_pregcomp ( cmd -> pool , p1 , 0 , NULL , NULL ) ;\n if ( re -> param_data == NULL ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid regular expression: %s\" , p1 ) ;\n }\n * ( rule_exception * * ) apr_array_push ( dcfg -> rule_exceptions ) = re ;\n msre_ruleset_rule_remove_with_exception ( dcfg -> ruleset , re ) ;\n # ifdef DEBUG_CONF ap_log_perror ( APLOG_MARK , APLOG_STARTUP | APLOG_NOERRNO , 0 , cmd -> pool , \"Added exception %pp (%d %s) to dcfg %pp.\" , re , re -> type , re -> param , dcfg ) ;\n # endif return NULL ;\n }"}
{"idx": 4392, "target": 0, "func": "static int mpeg_decode_motion ( MpegEncContext * s , int fcode , int pred ) {\n int code , sign , val , shift ;\n code = get_vlc2 ( & s -> gb , mv_vlc . table , MV_VLC_BITS , 2 ) ;\n if ( code == 0 ) {\n return pred ;\n }\n if ( code < 0 ) {\n return 0xffff ;\n }\n sign = get_bits1 ( & s -> gb ) ;\n shift = fcode - 1 ;\n val = code ;\n if ( shift ) {\n val = ( val - 1 ) << shift ;\n val |= get_bits ( & s -> gb , shift ) ;\n val ++ ;\n }\n if ( sign ) val = - val ;\n val += pred ;\n return sign_extend ( val , 5 + shift ) ;\n }"}
{"idx": 4393, "target": 0, "func": "int setup_listen_socket ( const sockaddr_t * sa ) {\n int nfd ;\n char * addrstr ;\n int option ;\n char * iface ;\n nfd = socket ( sa -> sa . sa_family , SOCK_STREAM , IPPROTO_TCP ) ;\n if ( nfd < 0 ) {\n ifdebug ( STATUS ) logger ( LOG_ERR , \"Creating metasocket failed: %s\" , sockstrerror ( sockerrno ) ) ;\n return - 1 ;\n }\n # ifdef FD_CLOEXEC fcntl ( nfd , F_SETFD , FD_CLOEXEC ) ;\n # endif option = 1 ;\n setsockopt ( nfd , SOL_SOCKET , SO_REUSEADDR , ( void * ) & option , sizeof ( option ) ) ;\n # if defined ( IPV6_V6ONLY ) if ( sa -> sa . sa_family == AF_INET6 ) {\n setsockopt ( nfd , IPPROTO_IPV6 , IPV6_V6ONLY , ( void * ) & option , sizeof ( option ) ) ;\n }\n # else # warning IPV6_V6ONLY not defined # endif if ( get_config_string ( lookup_config ( config_tree , \"BindToInterface\" ) , & iface ) ) {\n # if defined ( SOL_SOCKET ) && defined ( SO_BINDTODEVICE ) struct ifreq ifr ;\n memset ( & ifr , 0 , sizeof ( ifr ) ) ;\n strncpy ( ifr . ifr_ifrn . ifrn_name , iface , IFNAMSIZ ) ;\n ifr . ifr_ifrn . ifrn_name [ IFNAMSIZ - 1 ] = 0 ;\n free ( iface ) ;\n if ( setsockopt ( nfd , SOL_SOCKET , SO_BINDTODEVICE , ( void * ) & ifr , sizeof ( ifr ) ) ) {\n closesocket ( nfd ) ;\n logger ( LOG_ERR , \"Can't bind to interface %s: %s\" , ifr . ifr_ifrn . ifrn_name , strerror ( sockerrno ) ) ;\n return - 1 ;\n }\n # else logger ( LOG_WARNING , \"%s not supported on this platform\" , \"BindToInterface\" ) ;\n # endif }\n if ( bind ( nfd , & sa -> sa , SALEN ( sa -> sa ) ) ) {\n closesocket ( nfd ) ;\n addrstr = sockaddr2hostname ( sa ) ;\n logger ( LOG_ERR , \"Can't bind to %s/tcp: %s\" , addrstr , sockstrerror ( sockerrno ) ) ;\n free ( addrstr ) ;\n return - 1 ;\n }\n if ( listen ( nfd , 3 ) ) {\n closesocket ( nfd ) ;\n logger ( LOG_ERR , \"System call `%s' failed: %s\" , \"listen\" , sockstrerror ( sockerrno ) ) ;\n return - 1 ;\n }\n return nfd ;\n }"}
{"idx": 4394, "target": 0, "func": "TEST_F ( ExtensionServiceSyncTest , DisableExtensionFromSync ) {\n base : : FilePath source_install_dir = data_dir ( ) . AppendASCII ( \"good\" ) . AppendASCII ( \"Extensions\" ) ;\n base : : FilePath pref_path = source_install_dir . DirName ( ) . Append ( chrome : : kPreferencesFilename ) ;\n InitializeInstalledExtensionService ( pref_path , source_install_dir ) ;\n browser_sync : : ProfileSyncService * sync_service = ProfileSyncServiceFactory : : GetForProfile ( profile ( ) ) ;\n sync_service -> SetFirstSetupComplete ( ) ;\n service ( ) -> Init ( ) ;\n ASSERT_TRUE ( service ( ) -> is_ready ( ) ) ;\n ASSERT_EQ ( 3u , loaded_ . size ( ) ) ;\n const Extension * extension = service ( ) -> GetExtensionById ( good0 , true ) ;\n ASSERT_TRUE ( extension ) ;\n ASSERT_TRUE ( service ( ) -> IsExtensionEnabled ( good0 ) ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , syncer : : SyncDataList ( ) , base : : MakeUnique < syncer : : FakeSyncChangeProcessor > ( ) , base : : MakeUnique < syncer : : SyncErrorFactoryMock > ( ) ) ;\n ExtensionSyncData disable_good_crx ( * extension , false , extensions : : disable_reason : : DISABLE_USER_ACTION , false , false , ExtensionSyncData : : BOOLEAN_UNSET , false ) ;\n SyncChangeList list ( 1 , disable_good_crx . GetSyncChange ( SyncChange : : ACTION_UPDATE ) ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n ASSERT_FALSE ( service ( ) -> IsExtensionEnabled ( good0 ) ) ;\n }"}
{"idx": 4395, "target": 0, "func": "gboolean proto_tracking_interesting_fields ( const proto_tree * tree ) {\n GHashTable * interesting_hfids ;\n if ( ! tree ) return FALSE ;\n interesting_hfids = PTREE_DATA ( tree ) -> interesting_hfids ;\n return ( interesting_hfids != NULL ) && g_hash_table_size ( interesting_hfids ) ;\n }"}
{"idx": 4396, "target": 1, "func": "static void finish_object ( struct object * obj , const struct name_path * path , const char * name , void * cb_data ) {\n struct rev_list_info * info = cb_data ;\n if ( obj -> type == OBJ_BLOB && ! has_object_file ( & obj -> oid ) ) die ( \"missing blob object '%s'\" , oid_to_hex ( & obj -> oid ) ) ;\n if ( info -> revs -> verify_objects && ! obj -> parsed && obj -> type != OBJ_COMMIT ) parse_object ( obj -> oid . hash ) ;\n }"}
{"idx": 4397, "target": 0, "func": "void TSRedirectUrlSet ( TSHttpTxn txnp , const char * url , const int url_len ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) url ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n if ( sm -> redirect_url != nullptr ) {\n ats_free ( sm -> redirect_url ) ;\n sm -> redirect_url = nullptr ;\n sm -> redirect_url_len = 0 ;\n }\n sm -> redirect_url = ( char * ) ats_malloc ( url_len + 1 ) ;\n ink_strlcpy ( sm -> redirect_url , url , url_len + 1 ) ;\n sm -> redirect_url_len = url_len ;\n if ( sm -> enable_redirection == false ) {\n sm -> enable_redirection = true ;\n sm -> redirection_tries = sm -> t_state . txn_conf -> number_of_redirections ;\n }\n }"}
{"idx": 4398, "target": 0, "func": "static int dissect_h225_InfoRequestAck ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_InfoRequestAck , InfoRequestAck_sequence ) ;\n return offset ;\n }"}
{"idx": 4399, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , AbortReload ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n GURL url ( embedded_test_server ( ) -> GetURL ( \"/title1.html\" ) ) ;\n NavigateParams params ( browser ( ) , url , ui : : PAGE_TRANSITION_LINK ) ;\n content : : TestNavigationManager manager ( browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) , url ) ;\n Navigate ( & params ) ;\n EXPECT_TRUE ( manager . WaitForRequestStart ( ) ) ;\n NavigateParams params2 ( browser ( ) , url , ui : : PAGE_TRANSITION_RELOAD ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : LOAD_EVENT ) ;\n Navigate ( & params2 ) ;\n waiter -> Wait ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramAbortReloadBeforeCommit , 1 ) ;\n }"}
{"idx": 4400, "target": 0, "func": "static void write_partition ( const VP9_COMMON * const cm , const MACROBLOCKD * const xd , int hbs , int mi_row , int mi_col , PARTITION_TYPE p , BLOCK_SIZE bsize , vp9_writer * w ) {\n const int ctx = partition_plane_context ( xd , mi_row , mi_col , bsize ) ;\n const vp9_prob * const probs = get_partition_probs ( cm , ctx ) ;\n const int has_rows = ( mi_row + hbs ) < cm -> mi_rows ;\n const int has_cols = ( mi_col + hbs ) < cm -> mi_cols ;\n if ( has_rows && has_cols ) {\n vp9_write_token ( w , vp9_partition_tree , probs , & partition_encodings [ p ] ) ;\n }\n else if ( ! has_rows && has_cols ) {\n assert ( p == PARTITION_SPLIT || p == PARTITION_HORZ ) ;\n vp9_write ( w , p == PARTITION_SPLIT , probs [ 1 ] ) ;\n }\n else if ( has_rows && ! has_cols ) {\n assert ( p == PARTITION_SPLIT || p == PARTITION_VERT ) ;\n vp9_write ( w , p == PARTITION_SPLIT , probs [ 2 ] ) ;\n }\n else {\n assert ( p == PARTITION_SPLIT ) ;\n }\n }"}
{"idx": 4401, "target": 1, "func": "TEST_F ( PrintPreviewUIUnitTest , PrintPreviewDraftPages ) {\n WebContents * initiator = browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) ;\n ASSERT_TRUE ( initiator ) ;\n printing : : PrintPreviewDialogController * controller = printing : : PrintPreviewDialogController : : GetInstance ( ) ;\n ASSERT_TRUE ( controller ) ;\n printing : : PrintViewManager * print_view_manager = printing : : PrintViewManager : : FromWebContents ( initiator ) ;\n print_view_manager -> PrintPreviewNow ( false ) ;\n WebContents * preview_dialog = controller -> GetOrCreatePreviewDialog ( initiator ) ;\n EXPECT_NE ( initiator , preview_dialog ) ;\n EXPECT_EQ ( 1 , browser ( ) -> tab_strip_model ( ) -> count ( ) ) ;\n EXPECT_TRUE ( IsShowingWebContentsModalDialog ( initiator ) ) ;\n PrintPreviewUI * preview_ui = static_cast < PrintPreviewUI * > ( preview_dialog -> GetWebUI ( ) -> GetController ( ) ) ;\n ASSERT_TRUE ( preview_ui != NULL ) ;\n scoped_refptr < base : : RefCountedBytes > data ;\n preview_ui -> GetPrintPreviewDataForIndex ( printing : : FIRST_PAGE_INDEX , & data ) ;\n EXPECT_EQ ( NULL , data . get ( ) ) ;\n scoped_refptr < base : : RefCountedBytes > dummy_data = CreateTestData ( ) ;\n preview_ui -> SetPrintPreviewDataForIndex ( printing : : FIRST_PAGE_INDEX , dummy_data . get ( ) ) ;\n preview_ui -> GetPrintPreviewDataForIndex ( printing : : FIRST_PAGE_INDEX , & data ) ;\n EXPECT_EQ ( dummy_data -> size ( ) , data -> size ( ) ) ;\n EXPECT_EQ ( dummy_data . get ( ) , data . get ( ) ) ;\n preview_ui -> SetPrintPreviewDataForIndex ( printing : : FIRST_PAGE_INDEX + 2 , dummy_data . get ( ) ) ;\n preview_ui -> GetPrintPreviewDataForIndex ( printing : : FIRST_PAGE_INDEX + 2 , & data ) ;\n EXPECT_EQ ( dummy_data -> size ( ) , data -> size ( ) ) ;\n EXPECT_EQ ( dummy_data . get ( ) , data . get ( ) ) ;\n preview_ui -> GetPrintPreviewDataForIndex ( printing : : FIRST_PAGE_INDEX + 1 , & data ) ;\n EXPECT_EQ ( NULL , data . get ( ) ) ;\n preview_ui -> SetPrintPreviewDataForIndex ( printing : : FIRST_PAGE_INDEX + 1 , dummy_data . get ( ) ) ;\n preview_ui -> GetPrintPreviewDataForIndex ( printing : : FIRST_PAGE_INDEX + 1 , & data ) ;\n EXPECT_EQ ( dummy_data -> size ( ) , data -> size ( ) ) ;\n EXPECT_EQ ( dummy_data . get ( ) , data . get ( ) ) ;\n preview_ui -> ClearAllPreviewData ( ) ;\n preview_ui -> GetPrintPreviewDataForIndex ( printing : : FIRST_PAGE_INDEX , & data ) ;\n EXPECT_EQ ( NULL , data . get ( ) ) ;\n }"}
{"idx": 4402, "target": 0, "func": "static inline PixelTrait GetPixelTraits ( const Image * restrict image , const PixelChannel channel ) {\n return ( image -> channel_map [ channel ] . traits ) ;\n }"}
{"idx": 4403, "target": 0, "func": "static int SpoolssReplyClosePrinter_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , NULL , NULL , FALSE , FALSE ) ;\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 4404, "target": 0, "func": "int64_t TSHttpTxnPushedRespBodyBytesGet ( TSHttpTxn txnp ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n return sm -> pushed_response_body_bytes ;\n }"}
{"idx": 4405, "target": 0, "func": "static int decode_cabac_mb_ref ( H264Context * h , int list , int n ) {\n int refa = h -> ref_cache [ list ] [ scan8 [ n ] - 1 ] ;\n int refb = h -> ref_cache [ list ] [ scan8 [ n ] - 8 ] ;\n int ref = 0 ;\n int ctx = 0 ;\n if ( h -> slice_type_nos == AV_PICTURE_TYPE_B ) {\n if ( refa > 0 && ! ( h -> direct_cache [ scan8 [ n ] - 1 ] & ( MB_TYPE_DIRECT2 >> 1 ) ) ) ctx ++ ;\n if ( refb > 0 && ! ( h -> direct_cache [ scan8 [ n ] - 8 ] & ( MB_TYPE_DIRECT2 >> 1 ) ) ) ctx += 2 ;\n }\n else {\n if ( refa > 0 ) ctx ++ ;\n if ( refb > 0 ) ctx += 2 ;\n }\n while ( get_cabac ( & h -> cabac , & h -> cabac_state [ 54 + ctx ] ) ) {\n ref ++ ;\n ctx = ( ctx >> 2 ) + 4 ;\n if ( ref >= 32 ) {\n return - 1 ;\n }\n }\n return ref ;\n }"}
{"idx": 4406, "target": 0, "func": "static void unset_trap ( struct recvbuf * rbufp , int restrict_mask ) {\n int traptype ;\n traptype = TRAP_TYPE_PRIO ;\n if ( restrict_mask & RES_LPTRAP ) traptype = TRAP_TYPE_NONPRIO ;\n if ( ! ctlclrtrap ( & rbufp -> recv_srcadr , rbufp -> dstadr , traptype ) ) ctl_error ( CERR_BADASSOC ) ;\n ctl_flushpkt ( 0 ) ;\n }"}
{"idx": 4407, "target": 0, "func": "MAIN_WINDOW_REC * mainwindow_create ( int right ) {\n MAIN_WINDOW_REC * rec , * parent ;\n int space ;\n rec = g_new0 ( MAIN_WINDOW_REC , 1 ) ;\n rec -> dirty = TRUE ;\n if ( mainwindows == NULL ) {\n active_mainwin = rec ;\n rec -> first_line = screen_reserved_top ;\n rec -> last_line = term_height - 1 - screen_reserved_bottom ;\n rec -> height = rec -> last_line - rec -> first_line + 1 ;\n rec -> first_column = screen_reserved_left ;\n rec -> last_column = screen_width - 1 - screen_reserved_right ;\n rec -> width = rec -> last_column - rec -> first_column + 1 ;\n }\n else {\n parent = WINDOW_MAIN ( active_win ) ;\n if ( ! right ) {\n GSList * tmp , * line ;\n if ( MAIN_WINDOW_TEXT_HEIGHT ( parent ) < WINDOW_MIN_SIZE + NEW_WINDOW_SIZE ) parent = find_window_with_room ( ) ;\n if ( parent == NULL ) return NULL ;\n space = parent -> height / 2 ;\n rec -> first_line = parent -> first_line ;\n rec -> last_line = rec -> first_line + space ;\n rec -> height = rec -> last_line - rec -> first_line + 1 ;\n rec -> first_column = screen_reserved_left ;\n rec -> last_column = screen_width - 1 - screen_reserved_right ;\n rec -> width = rec -> last_column - rec -> first_column + 1 ;\n line = mainwindows_get_line ( parent ) ;\n for ( tmp = line ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n MAIN_WINDOW_REC * rec = tmp -> data ;\n rec -> first_line += space + 1 ;\n mainwindow_resize ( rec , 0 , - space - 1 ) ;\n }\n g_slist_free ( line ) ;\n }\n else {\n if ( MAIN_WINDOW_TEXT_WIDTH ( parent ) < 2 * NEW_WINDOW_WIDTH ) parent = find_window_with_room_right ( ) ;\n if ( parent == NULL ) return NULL ;\n space = parent -> width / 2 ;\n rec -> first_line = parent -> first_line ;\n rec -> last_line = parent -> last_line ;\n rec -> height = parent -> height ;\n rec -> first_column = parent -> last_column - space + 1 ;\n rec -> last_column = parent -> last_column ;\n rec -> width = rec -> last_column - rec -> first_column + 1 ;\n parent -> last_column -= space + 1 ;\n mainwindow_resize ( parent , - space - 1 , 0 ) ;\n }\n }\n rec -> screen_win = mainwindow_create_screen ( rec ) ;\n term_refresh ( NULL ) ;\n mainwindows = g_slist_append ( mainwindows , rec ) ;\n signal_emit ( \"mainwindow created\" , 1 , rec ) ;\n return rec ;\n }"}
{"idx": 4408, "target": 0, "func": "void pk_transaction_search_names ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) {\n gboolean ret ;\n PkBitfield filter ;\n g_autofree gchar * * values = NULL ;\n g_autoptr ( GError ) error = NULL ;\n g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;\n g_return_if_fail ( transaction -> priv -> tid != NULL ) ;\n g_variant_get ( params , \"(t^a&s)\" , & filter , & values ) ;\n g_debug ( \"SearchNames method called: %\" G_GUINT64_FORMAT \", %s\" , filter , values [ 0 ] ) ;\n if ( ! pk_backend_is_implemented ( transaction -> priv -> backend , PK_ROLE_ENUM_SEARCH_NAME ) ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NOT_SUPPORTED , \"SearchNames not supported by backend\" ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n ret = pk_transaction_search_check ( values , & error ) ;\n if ( ! ret ) {\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n transaction -> priv -> cached_filters = filter ;\n transaction -> priv -> cached_values = g_strdupv ( values ) ;\n pk_transaction_set_role ( transaction , PK_ROLE_ENUM_SEARCH_NAME ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_READY ) ;\n out : pk_transaction_dbus_return ( context , error ) ;\n }"}
{"idx": 4409, "target": 1, "func": "static void ps2_common_post_load ( PS2State * s ) {\n PS2Queue * q = & s -> queue ;\n int size ;\n int i ;\n int tmp_data [ PS2_QUEUE_SIZE ] ;\n size = q -> count > PS2_QUEUE_SIZE ? 0 : q -> count ;\n if ( size > 0 ) {\n for ( i = 0 ;\n i < size ;\n i ++ ) {\n tmp_data [ i ] = q -> data [ q -> rptr ] ;\n if ( ++ q -> rptr == 256 ) {\n q -> rptr = 0 ;\n }\n }\n memcpy ( q -> data , tmp_data , size ) ;\n }\n q -> rptr = 0 ;\n q -> wptr = size ;\n q -> count = size ;\n s -> update_irq ( s -> update_arg , q -> count != 0 ) ;\n }"}
{"idx": 4410, "target": 0, "func": "static int dissect_h245_PictureReference ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_PictureReference , PictureReference_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 4411, "target": 0, "func": "void getTypeBinaryOutputInfo ( Oid type , Oid * typSend , bool * typIsVarlena ) {\n HeapTuple typeTuple ;\n Form_pg_type pt ;\n typeTuple = SearchSysCache1 ( TYPEOID , ObjectIdGetDatum ( type ) ) ;\n if ( ! HeapTupleIsValid ( typeTuple ) ) elog ( ERROR , \"cache lookup failed for type %u\" , type ) ;\n pt = ( Form_pg_type ) GETSTRUCT ( typeTuple ) ;\n if ( ! pt -> typisdefined ) ereport ( ERROR , ( errcode ( ERRCODE_UNDEFINED_OBJECT ) , errmsg ( \"type %s is only a shell\" , format_type_be ( type ) ) ) ) ;\n if ( ! OidIsValid ( pt -> typsend ) ) ereport ( ERROR , ( errcode ( ERRCODE_UNDEFINED_FUNCTION ) , errmsg ( \"no binary output function available for type %s\" , format_type_be ( type ) ) ) ) ;\n * typSend = pt -> typsend ;\n * typIsVarlena = ( ! pt -> typbyval ) && ( pt -> typlen == - 1 ) ;\n ReleaseSysCache ( typeTuple ) ;\n }"}
{"idx": 4412, "target": 0, "func": "static inline hwaddr pcnet_rdra_addr ( PCNetState * s , int idx ) {\n while ( idx < 1 ) {\n idx += CSR_RCVRL ( s ) ;\n }\n return s -> rdra + ( ( CSR_RCVRL ( s ) - idx ) * ( BCR_SWSTYLE ( s ) ? 16 : 8 ) ) ;\n }"}
{"idx": 4413, "target": 0, "func": "static int protoo_strlcpy ( gchar * dest , const gchar * src , gsize dest_size ) {\n gsize res = g_strlcpy ( dest , src , dest_size ) ;\n if ( res > dest_size ) res = dest_size ;\n return ( int ) res ;\n }"}
{"idx": 4414, "target": 0, "func": "static void RefigureCompositeMaxPts ( SplineFont * sf , struct glyphinfo * gi ) {\n int i ;\n for ( i = 0 ;\n i < gi -> gcnt ;\n ++ i ) if ( gi -> bygid [ i ] != - 1 && sf -> glyphs [ gi -> bygid [ i ] ] -> ttf_glyph != - 1 ) {\n if ( sf -> glyphs [ gi -> bygid [ i ] ] -> layers [ gi -> layer ] . splines == NULL && sf -> glyphs [ gi -> bygid [ i ] ] -> layers [ gi -> layer ] . refs != NULL && gi -> pointcounts [ i ] == - 1 ) CountCompositeMaxPts ( sf -> glyphs [ gi -> bygid [ i ] ] , gi ) ;\n }\n }"}
{"idx": 4415, "target": 0, "func": "static void destroy_int_fifo ( int_fifo * fifo ) {\n int_node * i_n ;\n if ( fifo != NULL ) {\n do {\n UNLINK_FIFO ( i_n , * fifo , link ) ;\n if ( i_n != NULL ) free ( i_n ) ;\n }\n while ( i_n != NULL ) ;\n free ( fifo ) ;\n }\n }"}
{"idx": 4416, "target": 0, "func": "static void init_quant_matrix ( VC2EncContext * s ) {\n int level , orientation ;\n if ( s -> wavelet_depth <= 4 && s -> quant_matrix == VC2_QM_DEF ) {\n s -> custom_quant_matrix = 0 ;\n for ( level = 0 ;\n level < s -> wavelet_depth ;\n level ++ ) {\n s -> quant [ level ] [ 0 ] = ff_dirac_default_qmat [ s -> wavelet_idx ] [ level ] [ 0 ] ;\n s -> quant [ level ] [ 1 ] = ff_dirac_default_qmat [ s -> wavelet_idx ] [ level ] [ 1 ] ;\n s -> quant [ level ] [ 2 ] = ff_dirac_default_qmat [ s -> wavelet_idx ] [ level ] [ 2 ] ;\n s -> quant [ level ] [ 3 ] = ff_dirac_default_qmat [ s -> wavelet_idx ] [ level ] [ 3 ] ;\n }\n return ;\n }\n s -> custom_quant_matrix = 1 ;\n if ( s -> quant_matrix == VC2_QM_DEF ) {\n for ( level = 0 ;\n level < s -> wavelet_depth ;\n level ++ ) {\n for ( orientation = 0 ;\n orientation < 4 ;\n orientation ++ ) {\n if ( level <= 3 ) s -> quant [ level ] [ orientation ] = ff_dirac_default_qmat [ s -> wavelet_idx ] [ level ] [ orientation ] ;\n else s -> quant [ level ] [ orientation ] = vc2_qm_col_tab [ level ] [ orientation ] ;\n }\n }\n }\n else if ( s -> quant_matrix == VC2_QM_COL ) {\n for ( level = 0 ;\n level < s -> wavelet_depth ;\n level ++ ) {\n for ( orientation = 0 ;\n orientation < 4 ;\n orientation ++ ) {\n s -> quant [ level ] [ orientation ] = vc2_qm_col_tab [ level ] [ orientation ] ;\n }\n }\n }\n else {\n for ( level = 0 ;\n level < s -> wavelet_depth ;\n level ++ ) {\n for ( orientation = 0 ;\n orientation < 4 ;\n orientation ++ ) {\n s -> quant [ level ] [ orientation ] = vc2_qm_flat_tab [ level ] [ orientation ] ;\n }\n }\n }\n }"}
{"idx": 4417, "target": 0, "func": "int mfprintf ( FILE * fp , const char * fmt , ... ) {\n va_list ap ;\n int rc ;\n va_start ( ap , fmt ) ;\n rc = mvfprintf ( fp , fmt , ap ) ;\n va_end ( ap ) ;\n return rc ;\n }"}
{"idx": 4418, "target": 0, "func": "static void read_variables ( struct recvbuf * rbufp , int restrict_mask ) {\n if ( res_associd ) read_peervars ( ) ;\n else read_sysvars ( ) ;\n }"}
{"idx": 4419, "target": 0, "func": "static int ohci_port_set_if_connected ( OHCIState * ohci , int i , uint32_t val ) {\n int ret = 1 ;\n if ( val == 0 ) return 0 ;\n if ( ! ( ohci -> rhport [ i ] . ctrl & OHCI_PORT_CCS ) ) {\n ohci -> rhport [ i ] . ctrl |= OHCI_PORT_CSC ;\n if ( ohci -> rhstatus & OHCI_RHS_DRWE ) {\n }\n return 0 ;\n }\n if ( ohci -> rhport [ i ] . ctrl & val ) ret = 0 ;\n ohci -> rhport [ i ] . ctrl |= val ;\n return ret ;\n }"}
{"idx": 4420, "target": 0, "func": "static void decode_color_xy ( gchar * s , guint16 value ) {\n g_snprintf ( s , ITEM_LABEL_LENGTH , \"%.4lf\" , value / 65535.0 ) ;\n return ;\n }"}
{"idx": 4421, "target": 0, "func": "static int xhci_epmask_to_eps_with_streams ( XHCIState * xhci , unsigned int slotid , uint32_t epmask , XHCIEPContext * * epctxs , USBEndpoint * * eps ) {\n XHCISlot * slot ;\n XHCIEPContext * epctx ;\n USBEndpoint * ep ;\n int i , j ;\n assert ( slotid >= 1 && slotid <= xhci -> numslots ) ;\n slot = & xhci -> slots [ slotid - 1 ] ;\n for ( i = 2 , j = 0 ;\n i <= 31 ;\n i ++ ) {\n if ( ! ( epmask & ( 1u << i ) ) ) {\n continue ;\n }\n epctx = slot -> eps [ i - 1 ] ;\n ep = xhci_epid_to_usbep ( epctx ) ;\n if ( ! epctx || ! epctx -> nr_pstreams || ! ep ) {\n continue ;\n }\n if ( epctxs ) {\n epctxs [ j ] = epctx ;\n }\n eps [ j ++ ] = ep ;\n }\n return j ;\n }"}
{"idx": 4422, "target": 0, "func": "static int proc_release_port ( struct usb_dev_state * ps , void __user * arg ) {\n unsigned portnum ;\n if ( get_user ( portnum , ( unsigned __user * ) arg ) ) return - EFAULT ;\n return usb_hub_release_port ( ps -> dev , portnum , ps ) ;\n }"}
{"idx": 4423, "target": 0, "func": "Oid get_opclass_input_type ( Oid opclass ) {\n HeapTuple tp ;\n Form_pg_opclass cla_tup ;\n Oid result ;\n tp = SearchSysCache1 ( CLAOID , ObjectIdGetDatum ( opclass ) ) ;\n if ( ! HeapTupleIsValid ( tp ) ) elog ( ERROR , \"cache lookup failed for opclass %u\" , opclass ) ;\n cla_tup = ( Form_pg_opclass ) GETSTRUCT ( tp ) ;\n result = cla_tup -> opcintype ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }"}
{"idx": 4424, "target": 0, "func": "static void parse_and_store_blob ( struct last_object * last , unsigned char * sha1out , uintmax_t mark ) {\n static struct strbuf buf = STRBUF_INIT ;\n uintmax_t len ;\n if ( parse_data ( & buf , big_file_threshold , & len ) ) store_object ( OBJ_BLOB , & buf , last , sha1out , mark ) ;\n else {\n if ( last ) {\n strbuf_release ( & last -> data ) ;\n last -> offset = 0 ;\n last -> depth = 0 ;\n }\n stream_blob ( len , sha1out , mark ) ;\n skip_optional_lf ( ) ;\n }\n }"}
{"idx": 4425, "target": 0, "func": "int mime_format_int64 ( char * buf , int64_t val , size_t buf_len ) {\n return ink_fast_ltoa ( val , buf , buf_len ) ;\n }"}
{"idx": 4426, "target": 1, "func": "kadm5_ret_t kadm5_create_policy_internal ( void * server_handle , kadm5_policy_ent_t entry , long mask ) {\n kadm5_server_handle_t handle = server_handle ;\n osa_policy_ent_rec pent ;\n int ret ;\n char * p ;\n CHECK_HANDLE ( server_handle ) ;\n if ( ( entry == ( kadm5_policy_ent_t ) NULL ) || ( entry -> policy == NULL ) ) return EINVAL ;\n if ( strlen ( entry -> policy ) == 0 ) return KADM5_BAD_POLICY ;\n if ( ! ( mask & KADM5_POLICY ) ) return KADM5_BAD_MASK ;\n if ( ( mask & KADM5_POLICY_ALLOWED_KEYSALTS ) && entry -> allowed_keysalts != NULL ) {\n ret = validate_allowed_keysalts ( entry -> allowed_keysalts ) ;\n if ( ret ) return ret ;\n }\n memset ( & pent , 0 , sizeof ( pent ) ) ;\n pent . name = entry -> policy ;\n p = entry -> policy ;\n while ( * p != '\\0' ) {\n if ( * p < ' ' || * p > '~' ) return KADM5_BAD_POLICY ;\n else p ++ ;\n }\n if ( ! ( mask & KADM5_PW_MAX_LIFE ) ) pent . pw_max_life = 0 ;\n else pent . pw_max_life = entry -> pw_max_life ;\n if ( ! ( mask & KADM5_PW_MIN_LIFE ) ) pent . pw_min_life = 0 ;\n else {\n if ( ( mask & KADM5_PW_MAX_LIFE ) ) {\n if ( entry -> pw_min_life > entry -> pw_max_life && entry -> pw_max_life != 0 ) return KADM5_BAD_MIN_PASS_LIFE ;\n }\n pent . pw_min_life = entry -> pw_min_life ;\n }\n if ( ! ( mask & KADM5_PW_MIN_LENGTH ) ) pent . pw_min_length = MIN_PW_LENGTH ;\n else {\n if ( entry -> pw_min_length < MIN_PW_LENGTH ) return KADM5_BAD_LENGTH ;\n pent . pw_min_length = entry -> pw_min_length ;\n }\n if ( ! ( mask & KADM5_PW_MIN_CLASSES ) ) pent . pw_min_classes = MIN_PW_CLASSES ;\n else {\n if ( entry -> pw_min_classes > MAX_PW_CLASSES || entry -> pw_min_classes < MIN_PW_CLASSES ) return KADM5_BAD_CLASS ;\n pent . pw_min_classes = entry -> pw_min_classes ;\n }\n if ( ! ( mask & KADM5_PW_HISTORY_NUM ) ) pent . pw_history_num = MIN_PW_HISTORY ;\n else {\n if ( entry -> pw_history_num < MIN_PW_HISTORY ) return KADM5_BAD_HISTORY ;\n else pent . pw_history_num = entry -> pw_history_num ;\n }\n if ( ! ( mask & KADM5_REF_COUNT ) ) pent . policy_refcnt = 0 ;\n else pent . policy_refcnt = entry -> policy_refcnt ;\n if ( handle -> api_version >= KADM5_API_VERSION_4 ) {\n if ( ! ( mask & KADM5_POLICY_ATTRIBUTES ) ) pent . attributes = 0 ;\n else pent . attributes = entry -> attributes ;\n if ( ! ( mask & KADM5_POLICY_MAX_LIFE ) ) pent . max_life = 0 ;\n else pent . max_life = entry -> max_life ;\n if ( ! ( mask & KADM5_POLICY_MAX_RLIFE ) ) pent . max_renewable_life = 0 ;\n else pent . max_renewable_life = entry -> max_renewable_life ;\n if ( ! ( mask & KADM5_POLICY_ALLOWED_KEYSALTS ) ) pent . allowed_keysalts = 0 ;\n else pent . allowed_keysalts = entry -> allowed_keysalts ;\n if ( ! ( mask & KADM5_POLICY_TL_DATA ) ) {\n pent . n_tl_data = 0 ;\n pent . tl_data = NULL ;\n }\n else {\n pent . n_tl_data = entry -> n_tl_data ;\n pent . tl_data = entry -> tl_data ;\n }\n }\n if ( handle -> api_version >= KADM5_API_VERSION_3 ) {\n if ( ! ( mask & KADM5_PW_MAX_FAILURE ) ) pent . pw_max_fail = 0 ;\n else pent . pw_max_fail = entry -> pw_max_fail ;\n if ( ! ( mask & KADM5_PW_FAILURE_COUNT_INTERVAL ) ) pent . pw_failcnt_interval = 0 ;\n else pent . pw_failcnt_interval = entry -> pw_failcnt_interval ;\n if ( ! ( mask & KADM5_PW_LOCKOUT_DURATION ) ) pent . pw_lockout_duration = 0 ;\n else pent . pw_lockout_duration = entry -> pw_lockout_duration ;\n }\n if ( ( ret = krb5_db_create_policy ( handle -> context , & pent ) ) ) return ret ;\n else return KADM5_OK ;\n }"}
{"idx": 4427, "target": 0, "func": "static struct usb_host_endpoint * ep_to_host_endpoint ( struct usb_device * dev , unsigned char ep ) {\n if ( ep & USB_ENDPOINT_DIR_MASK ) return dev -> ep_in [ ep & USB_ENDPOINT_NUMBER_MASK ] ;\n else return dev -> ep_out [ ep & USB_ENDPOINT_NUMBER_MASK ] ;\n }"}
{"idx": 4428, "target": 0, "func": "static void test_long_data_bin ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n char data [ 255 ] ;\n long length ;\n MYSQL_RES * result ;\n MYSQL_BIND my_bind [ 2 ] ;\n char query [ MAX_TEST_QUERY_LENGTH ] ;\n myheader ( \"test_long_data_bin\" ) ;\n rc = mysql_autocommit ( mysql , TRUE ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_long_data_bin\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_long_data_bin(id int, longbin long varbinary)\" ) ;\n myquery ( rc ) ;\n strmov ( query , \"INSERT INTO test_long_data_bin VALUES(?, ?)\" ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 2 ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer = ( void * ) & length ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n length = 0 ;\n my_bind [ 1 ] . buffer = data ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_LONG_BLOB ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n length = 10 ;\n strmov ( data , \"MySQL AB\" ) ;\n {\n int i ;\n for ( i = 0 ;\n i < 100 ;\n i ++ ) {\n rc = mysql_stmt_send_long_data ( stmt , 1 , ( char * ) data , 4 ) ;\n check_execute ( stmt , rc ) ;\n }\n }\n rc = mysql_stmt_execute ( stmt ) ;\n if ( ! opt_silent ) fprintf ( stdout , \" mysql_stmt_execute() returned %d\\n\" , rc ) ;\n check_execute ( stmt , rc ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"SELECT LENGTH(longbin), longbin FROM test_long_data_bin\" ) ;\n myquery ( rc ) ;\n result = mysql_store_result ( mysql ) ;\n mytest ( result ) ;\n rc = my_process_result_set ( result ) ;\n DIE_UNLESS ( rc == 1 ) ;\n mysql_free_result ( result ) ;\n }"}
{"idx": 4429, "target": 0, "func": "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 ) {\n uint8_t comp_pred [ m * n ] ;\n vp9_comp_avg_pred ( comp_pred , second_pred , m , n , ref , ref_stride ) ;\n return sad ( src , src_stride , comp_pred , m , m , n ) ;\n \\ }\n # define sadMxNxK ( m , n , k ) void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 ) sadMxN ( 16 , 32 ) sadMxNx4D ( 16 , 32 ) sadMxN ( 16 , 16 ) sadMxNxK ( 16 , 16 , 3 ) sadMxNxK ( 16 , 16 , 8 ) sadMxNx4D ( 16 , 16 ) sadMxN ( 16 , 8 ) sadMxNxK ( 16 , 8 , 3 ) sadMxNxK ( 16 , 8 , 8 ) sadMxNx4D ( 16 , 8 ) sadMxN ( 8 , 16 )"}
{"idx": 4430, "target": 0, "func": "afs_int32 SPR_UpdateEntry ( struct rx_call * call , afs_int32 aid , char * name , struct PrUpdateEntry * uentry ) {\n afs_int32 code ;\n afs_int32 cid = ANONYMOUSID ;\n code = UpdateEntry ( call , aid , name , uentry , & cid ) ;\n osi_auditU ( call , PTS_UpdEntEvent , code , AUD_ID , aid , AUD_STR , name , AUD_END ) ;\n ViceLog ( 5 , ( \"PTS_UpdateEntry: code %d cid %d aid %d name %s\\n\" , code , cid , aid , name ) ) ;\n return code ;\n }"}
{"idx": 4431, "target": 1, "func": "static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 4432, "target": 0, "func": "static int encrypt_nss ( struct crypto_instance * instance , const unsigned char * buf_in , const size_t buf_in_len , unsigned char * buf_out , size_t * buf_out_len ) {\n PK11Context * crypt_context = NULL ;\n SECItem crypt_param ;\n SECItem * nss_sec_param = NULL ;\n int tmp1_outlen = 0 ;\n unsigned int tmp2_outlen = 0 ;\n unsigned char * salt = buf_out ;\n unsigned char * data = buf_out + SALT_SIZE ;\n int err = - 1 ;\n if ( ! cipher_to_nss [ instance -> crypto_cipher_type ] ) {\n memcpy ( buf_out , buf_in , buf_in_len ) ;\n * buf_out_len = buf_in_len ;\n return 0 ;\n }\n if ( PK11_GenerateRandom ( salt , SALT_SIZE ) != SECSuccess ) {\n log_printf ( instance -> log_level_security , \"Failure to generate a random number %d\" , PR_GetError ( ) ) ;\n goto out ;\n }\n crypt_param . type = siBuffer ;\n crypt_param . data = salt ;\n crypt_param . len = SALT_SIZE ;\n nss_sec_param = PK11_ParamFromIV ( cipher_to_nss [ instance -> crypto_cipher_type ] , & crypt_param ) ;\n if ( nss_sec_param == NULL ) {\n log_printf ( instance -> log_level_security , \"Failure to set up PKCS11 param (err %d)\" , PR_GetError ( ) ) ;\n goto out ;\n }\n crypt_context = PK11_CreateContextBySymKey ( cipher_to_nss [ instance -> crypto_cipher_type ] , CKA_ENCRYPT , instance -> nss_sym_key , nss_sec_param ) ;\n if ( ! crypt_context ) {\n log_printf ( instance -> log_level_security , \"PK11_CreateContext failed (encrypt) crypt_type=%d (%d): %s\" , ( int ) cipher_to_nss [ instance -> crypto_cipher_type ] , PR_GetError ( ) , PR_ErrorToString ( PR_GetError ( ) , PR_LANGUAGE_I_DEFAULT ) ) ;\n goto out ;\n }\n if ( PK11_CipherOp ( crypt_context , data , & tmp1_outlen , FRAME_SIZE_MAX - instance -> crypto_header_size , ( unsigned char * ) buf_in , buf_in_len ) != SECSuccess ) {\n log_printf ( instance -> log_level_security , \"PK11_CipherOp failed (encrypt) crypt_type=%d (err %d)\" , ( int ) cipher_to_nss [ instance -> crypto_cipher_type ] , PR_GetError ( ) ) ;\n goto out ;\n }\n if ( PK11_DigestFinal ( crypt_context , data + tmp1_outlen , & tmp2_outlen , FRAME_SIZE_MAX - tmp1_outlen ) != SECSuccess ) {\n log_printf ( instance -> log_level_security , \"PK11_DigestFinal failed (encrypt) crypt_type=%d (err %d)\" , ( int ) cipher_to_nss [ instance -> crypto_cipher_type ] , PR_GetError ( ) ) ;\n goto out ;\n }\n * buf_out_len = tmp1_outlen + tmp2_outlen + SALT_SIZE ;\n err = 0 ;\n out : if ( crypt_context ) {\n PK11_DestroyContext ( crypt_context , PR_TRUE ) ;\n }\n if ( nss_sec_param ) {\n SECITEM_FreeItem ( nss_sec_param , PR_TRUE ) ;\n }\n return err ;\n }"}
{"idx": 4433, "target": 0, "func": "TSAction TSCacheRemove ( TSCont contp , TSCacheKey key ) {\n sdk_assert ( sdk_sanity_check_iocore_structure ( contp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_cachekey ( key ) == TS_SUCCESS ) ;\n FORCE_PLUGIN_SCOPED_MUTEX ( contp ) ;\n CacheInfo * info = ( CacheInfo * ) key ;\n INKContInternal * i = ( INKContInternal * ) contp ;\n return ( TSAction ) cacheProcessor . remove ( i , & info -> cache_key , true , info -> frag_type , info -> hostname , info -> len ) ;\n }"}
{"idx": 4434, "target": 0, "func": "TSReturnCode TSHttpTxnServerFdGet ( TSHttpTxn txnp , int * fdp ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) fdp ) == TS_SUCCESS ) ;\n HttpSM * sm = reinterpret_cast < HttpSM * > ( txnp ) ;\n * fdp = - 1 ;\n HttpServerSession * ss = sm -> get_server_session ( ) ;\n if ( ss == nullptr ) {\n return TS_ERROR ;\n }\n NetVConnection * vc = ss -> get_netvc ( ) ;\n if ( vc == nullptr ) {\n return TS_ERROR ;\n }\n * fdp = vc -> get_socket ( ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 4435, "target": 0, "func": "static void seek_subtitle ( AVStream * st , AVStream * st2 , int64_t timestamp ) {\n AVIStream * ast2 = st2 -> priv_data ;\n int64_t ts2 = av_rescale_q ( timestamp , st -> time_base , st2 -> time_base ) ;\n av_packet_unref ( & ast2 -> sub_pkt ) ;\n if ( avformat_seek_file ( ast2 -> sub_ctx , 0 , INT64_MIN , ts2 , ts2 , 0 ) >= 0 || avformat_seek_file ( ast2 -> sub_ctx , 0 , ts2 , ts2 , INT64_MAX , 0 ) >= 0 ) ff_read_packet ( ast2 -> sub_ctx , & ast2 -> sub_pkt ) ;\n }"}
{"idx": 4436, "target": 0, "func": "void * append_gen_fifo ( void * fifo , void * entry ) {\n gen_fifo * pf ;\n gen_node * pe ;\n pf = fifo ;\n pe = entry ;\n if ( NULL == pf ) pf = emalloc_zero ( sizeof ( * pf ) ) ;\n if ( pe != NULL ) LINK_FIFO ( * pf , pe , link ) ;\n return pf ;\n }"}
{"idx": 4437, "target": 0, "func": "static guint32 dissect_netb_add_group_name ( tvbuff_t * tvb , packet_info * pinfo _U_ , int offset , proto_tree * tree ) {\n nb_resp_corrl ( tvb , offset , tree ) ;\n netbios_add_name ( \"Group name to add\" , tvb , offset + NB_SENDER_NAME , tree ) ;\n return 0 ;\n }"}
{"idx": 4438, "target": 0, "func": "TEST_F ( NativeBackendLibsecretTest , ReadDuplicateForms ) {\n NativeBackendLibsecret backend ( 42 ) ;\n const char unique_string [ ] = \"unique_unique_string\" ;\n const char unique_string_replacement [ ] = \"uniKue_unique_string\" ;\n form_google_ . origin = GURL ( std : : string ( \"http://www.google.com/\" ) + unique_string ) ;\n VerifiedAdd ( & backend , form_google_ ) ;\n form_google_ . origin = GURL ( std : : string ( \"http://www.google.com/\" ) + unique_string_replacement ) ;\n VerifiedAdd ( & backend , form_google_ ) ;\n ASSERT_EQ ( 2u , global_mock_libsecret_items -> size ( ) ) ;\n gpointer item_value = g_hash_table_lookup ( global_mock_libsecret_items -> front ( ) -> attributes , \"origin_url\" ) ;\n ASSERT_TRUE ( item_value ) ;\n char * substr = strstr ( static_cast < char * > ( item_value ) , unique_string ) ;\n ASSERT_TRUE ( substr ) ;\n ASSERT_EQ ( strlen ( unique_string ) , strlen ( unique_string_replacement ) ) ;\n strncpy ( substr , unique_string_replacement , strlen ( unique_string ) ) ;\n ScopedVector < autofill : : PasswordForm > form_list ;\n EXPECT_TRUE ( backend . GetAutofillableLogins ( & form_list ) ) ;\n EXPECT_EQ ( 1u , form_list . size ( ) ) ;\n EXPECT_EQ ( form_google_ , * form_list [ 0 ] ) ;\n EXPECT_EQ ( 1u , global_mock_libsecret_items -> size ( ) ) ;\n if ( ! global_mock_libsecret_items -> empty ( ) ) {\n CheckMockSecretItem ( ( * global_mock_libsecret_items ) [ 0 ] , form_google_ , \"chrome-42\" ) ;\n }\n }"}
{"idx": 4439, "target": 0, "func": "static void pk_transaction_set_hints ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) {\n gboolean ret ;\n guint i ;\n g_autofree gchar * * hints = NULL ;\n g_autoptr ( GError ) error = NULL ;\n g_autofree gchar * dbg = NULL ;\n g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;\n g_return_if_fail ( transaction -> priv -> tid != NULL ) ;\n g_variant_get ( params , \"(^a&s)\" , & hints ) ;\n dbg = g_strjoinv ( \", \" , ( gchar * * ) hints ) ;\n g_debug ( \"SetHints method called: %s\" , dbg ) ;\n for ( i = 0 ;\n hints [ i ] != NULL ;\n i ++ ) {\n g_auto ( GStrv ) sections = NULL ;\n sections = g_strsplit ( hints [ i ] , \"=\" , 2 ) ;\n if ( g_strv_length ( sections ) == 2 ) {\n ret = pk_transaction_set_hint ( transaction , sections [ 0 ] , sections [ 1 ] , & error ) ;\n if ( ! ret ) goto out ;\n }\n else {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NOT_SUPPORTED , \"Could not parse hint '%s'\" , hints [ i ] ) ;\n goto out ;\n }\n }\n out : pk_transaction_dbus_return ( context , error ) ;\n }"}
{"idx": 4440, "target": 0, "func": "static int get_num ( AVIOContext * pb , int * len ) {\n int n , n1 ;\n n = avio_rb16 ( pb ) ;\n ( * len ) -= 2 ;\n n &= 0x7FFF ;\n if ( n >= 0x4000 ) {\n return n - 0x4000 ;\n }\n else {\n n1 = avio_rb16 ( pb ) ;\n ( * len ) -= 2 ;\n return ( n << 16 ) | n1 ;\n }\n }"}
{"idx": 4441, "target": 0, "func": "static int sipr_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n SiprContext * ctx = avctx -> priv_data ;\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n SiprParameters parm ;\n const SiprModeParam * mode_par = & modes [ ctx -> mode ] ;\n GetBitContext gb ;\n float * samples ;\n int subframe_size = ctx -> mode == MODE_16k ? L_SUBFR_16k : SUBFR_SIZE ;\n int i , ret ;\n ctx -> avctx = avctx ;\n if ( avpkt -> size < ( mode_par -> bits_per_frame >> 3 ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error processing packet: packet size (%d) too small\\n\" , avpkt -> size ) ;\n return - 1 ;\n }\n frame -> nb_samples = mode_par -> frames_per_packet * subframe_size * mode_par -> subframe_count ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n samples = ( float * ) frame -> data [ 0 ] ;\n init_get_bits ( & gb , buf , mode_par -> bits_per_frame ) ;\n for ( i = 0 ;\n i < mode_par -> frames_per_packet ;\n i ++ ) {\n decode_parameters ( & parm , & gb , mode_par ) ;\n ctx -> decode_frame ( ctx , & parm , samples ) ;\n samples += subframe_size * mode_par -> subframe_count ;\n }\n * got_frame_ptr = 1 ;\n return mode_par -> bits_per_frame >> 3 ;\n }"}
{"idx": 4442, "target": 0, "func": "static int decode_block_type ( RangeCoder * c , BlockTypeContext * bt ) {\n bt -> last_type = rac_get_model_sym ( c , & bt -> bt_model [ bt -> last_type ] ) ;\n return bt -> last_type ;\n }"}
{"idx": 4443, "target": 0, "func": "static gpg_error_t ec_p_new ( gcry_ctx_t * r_ctx , gcry_mpi_t p , gcry_mpi_t a ) {\n gpg_error_t err ;\n gcry_sexp_t sexp ;\n if ( p && a ) err = gcry_sexp_build ( & sexp , NULL , \"(ecdsa (p %m)(a %m))\" , p , a ) ;\n else if ( p ) err = gcry_sexp_build ( & sexp , NULL , \"(ecdsa (p %m))\" , p ) ;\n else if ( a ) err = gcry_sexp_build ( & sexp , NULL , \"(ecdsa (a %m))\" , a ) ;\n else err = gcry_sexp_build ( & sexp , NULL , \"(ecdsa)\" ) ;\n if ( err ) return err ;\n err = gcry_mpi_ec_new ( r_ctx , sexp , NULL ) ;\n gcry_sexp_release ( sexp ) ;\n return err ;\n }"}
{"idx": 4444, "target": 0, "func": "static void mount_stop ( NautilusDirectory * directory ) {\n NautilusFile * file ;\n if ( directory -> details -> mount_state != NULL ) {\n file = directory -> details -> mount_state -> file ;\n if ( file != NULL ) {\n g_assert ( NAUTILUS_IS_FILE ( file ) ) ;\n g_assert ( file -> details -> directory == directory ) ;\n if ( is_needy ( file , lacks_mount , REQUEST_MOUNT ) ) {\n return ;\n }\n }\n mount_cancel ( directory ) ;\n }\n }"}
{"idx": 4445, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( AppApiTest , MAYBE_AppProcessInstances ) {\n TestAppInstancesHelper ( \"app_process_instances\" ) ;\n }"}
{"idx": 4446, "target": 0, "func": "static int do_16x16_zerozero_search ( VP9_COMP * cpi , int_mv * dst_mv ) {\n MACROBLOCK * const x = & cpi -> mb ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n unsigned int err ;\n err = vp9_sad16x16 ( x -> plane [ 0 ] . src . buf , x -> plane [ 0 ] . src . stride , xd -> plane [ 0 ] . pre [ 0 ] . buf , xd -> plane [ 0 ] . pre [ 0 ] . stride ) ;\n dst_mv -> as_int = 0 ;\n return err ;\n }"}
{"idx": 4447, "target": 0, "func": "static int dissect_h245_SET_SIZE_1_255_OF_DialingInformationNetworkType ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_set_of ( tvb , offset , actx , tree , hf_index , ett_h245_SET_SIZE_1_255_OF_DialingInformationNetworkType , SET_SIZE_1_255_OF_DialingInformationNetworkType_set_of , 1 , 255 , FALSE ) ;\n return offset ;\n }"}
{"idx": 4448, "target": 0, "func": "static bool e1000e_phy_reg_check_cap ( E1000ECore * core , uint32_t addr , char cap , uint8_t * page ) {\n * page = ( e1000e_phy_regcap [ 0 ] [ addr ] & PHY_ANYPAGE ) ? 0 : core -> phy [ 0 ] [ PHY_PAGE ] ;\n if ( * page >= E1000E_PHY_PAGES ) {\n return false ;\n }\n return e1000e_phy_regcap [ * page ] [ addr ] & cap ;\n }"}
{"idx": 4449, "target": 0, "func": "static inline void tb_alloc_page ( TranslationBlock * tb , unsigned int n , tb_page_addr_t page_addr ) {\n PageDesc * p ;\n # ifndef CONFIG_USER_ONLY bool page_already_protected ;\n # endif tb -> page_addr [ n ] = page_addr ;\n p = page_find_alloc ( page_addr >> TARGET_PAGE_BITS , 1 ) ;\n tb -> page_next [ n ] = p -> first_tb ;\n # ifndef CONFIG_USER_ONLY page_already_protected = p -> first_tb != NULL ;\n # endif p -> first_tb = ( TranslationBlock * ) ( ( uintptr_t ) tb | n ) ;\n invalidate_page_bitmap ( p ) ;\n # if defined ( TARGET_HAS_SMC ) || 1 # if defined ( CONFIG_USER_ONLY ) if ( p -> flags & PAGE_WRITE ) {\n target_ulong addr ;\n PageDesc * p2 ;\n int prot ;\n page_addr &= qemu_host_page_mask ;\n prot = 0 ;\n for ( addr = page_addr ;\n addr < page_addr + qemu_host_page_size ;\n addr += TARGET_PAGE_SIZE ) {\n p2 = page_find ( addr >> TARGET_PAGE_BITS ) ;\n if ( ! p2 ) {\n continue ;\n }\n prot |= p2 -> flags ;\n p2 -> flags &= ~ PAGE_WRITE ;\n }\n mprotect ( g2h ( page_addr ) , qemu_host_page_size , ( prot & PAGE_BITS ) & ~ PAGE_WRITE ) ;\n # ifdef DEBUG_TB_INVALIDATE printf ( \"protecting code page: 0x\" TARGET_FMT_lx \"\\n\" , page_addr ) ;\n # endif }\n # else if ( ! page_already_protected ) {\n tlb_protect_code ( page_addr ) ;\n }\n # endif # endif }"}
{"idx": 4450, "target": 0, "func": "static int isoent_create_boot_catalog ( struct archive_write * a , struct isoent * rootent ) {\n struct iso9660 * iso9660 = a -> format_data ;\n struct isofile * file ;\n struct isoent * isoent ;\n struct archive_entry * entry ;\n ( void ) rootent ;\n file = isofile_new ( a , NULL ) ;\n if ( file == NULL ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate memory\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n archive_entry_set_pathname ( file -> entry , iso9660 -> el_torito . catalog_filename . s ) ;\n archive_entry_set_size ( file -> entry , LOGICAL_BLOCK_SIZE ) ;\n archive_entry_set_mtime ( file -> entry , iso9660 -> birth_time , 0 ) ;\n archive_entry_set_atime ( file -> entry , iso9660 -> birth_time , 0 ) ;\n archive_entry_set_ctime ( file -> entry , iso9660 -> birth_time , 0 ) ;\n archive_entry_set_uid ( file -> entry , getuid ( ) ) ;\n archive_entry_set_gid ( file -> entry , getgid ( ) ) ;\n archive_entry_set_mode ( file -> entry , AE_IFREG | 0444 ) ;\n archive_entry_set_nlink ( file -> entry , 1 ) ;\n if ( isofile_gen_utility_names ( a , file ) < ARCHIVE_WARN ) {\n isofile_free ( file ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n file -> boot = BOOT_CATALOG ;\n file -> content . size = LOGICAL_BLOCK_SIZE ;\n isofile_add_entry ( iso9660 , file ) ;\n isoent = isoent_new ( file ) ;\n if ( isoent == NULL ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate memory\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n isoent -> virtual = 1 ;\n if ( isoent_tree ( a , & isoent ) != ARCHIVE_OK ) return ( ARCHIVE_FATAL ) ;\n iso9660 -> el_torito . catalog = isoent ;\n switch ( iso9660 -> opt . boot_type ) {\n default : case OPT_BOOT_TYPE_AUTO : entry = iso9660 -> el_torito . boot -> file -> entry ;\n if ( archive_entry_size ( entry ) == FD_1_2M_SIZE ) iso9660 -> el_torito . media_type = BOOT_MEDIA_1_2M_DISKETTE ;\n else if ( archive_entry_size ( entry ) == FD_1_44M_SIZE ) iso9660 -> el_torito . media_type = BOOT_MEDIA_1_44M_DISKETTE ;\n else if ( archive_entry_size ( entry ) == FD_2_88M_SIZE ) iso9660 -> el_torito . media_type = BOOT_MEDIA_2_88M_DISKETTE ;\n else iso9660 -> el_torito . media_type = BOOT_MEDIA_NO_EMULATION ;\n break ;\n case OPT_BOOT_TYPE_NO_EMU : iso9660 -> el_torito . media_type = BOOT_MEDIA_NO_EMULATION ;\n break ;\n case OPT_BOOT_TYPE_HARD_DISK : iso9660 -> el_torito . media_type = BOOT_MEDIA_HARD_DISK ;\n break ;\n case OPT_BOOT_TYPE_FD : entry = iso9660 -> el_torito . boot -> file -> entry ;\n if ( archive_entry_size ( entry ) <= FD_1_2M_SIZE ) iso9660 -> el_torito . media_type = BOOT_MEDIA_1_2M_DISKETTE ;\n else if ( archive_entry_size ( entry ) <= FD_1_44M_SIZE ) iso9660 -> el_torito . media_type = BOOT_MEDIA_1_44M_DISKETTE ;\n else if ( archive_entry_size ( entry ) <= FD_2_88M_SIZE ) iso9660 -> el_torito . media_type = BOOT_MEDIA_2_88M_DISKETTE ;\n else {\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"Boot image file(``%s'') size is too big \" \"for fd type.\" , iso9660 -> el_torito . boot_filename . s ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n break ;\n }\n iso9660 -> el_torito . system_type = 0 ;\n if ( iso9660 -> opt . publisher ) archive_string_copy ( & ( iso9660 -> el_torito . id ) , & ( iso9660 -> publisher_identifier ) ) ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 4451, "target": 0, "func": "void vp9_denoiser_denoise ( VP9_DENOISER * denoiser , MACROBLOCK * mb , int mi_row , int mi_col , BLOCK_SIZE bs , PICK_MODE_CONTEXT * ctx ) {\n int motion_magnitude = 0 ;\n VP9_DENOISER_DECISION decision = FILTER_BLOCK ;\n YV12_BUFFER_CONFIG avg = denoiser -> running_avg_y [ INTRA_FRAME ] ;\n YV12_BUFFER_CONFIG mc_avg = denoiser -> mc_running_avg_y ;\n uint8_t * avg_start = block_start ( avg . y_buffer , avg . y_stride , mi_row , mi_col ) ;\n uint8_t * mc_avg_start = block_start ( mc_avg . y_buffer , mc_avg . y_stride , mi_row , mi_col ) ;\n struct buf_2d src = mb -> plane [ 0 ] . src ;\n decision = perform_motion_compensation ( denoiser , mb , bs , denoiser -> increase_denoising , mi_row , mi_col , ctx , & motion_magnitude ) ;\n if ( decision == FILTER_BLOCK ) {\n decision = denoiser_filter ( src . buf , src . stride , mc_avg_start , mc_avg . y_stride , avg_start , avg . y_stride , 0 , bs , motion_magnitude ) ;\n }\n if ( decision == FILTER_BLOCK ) {\n copy_block ( src . buf , src . stride , avg_start , avg . y_stride , bs ) ;\n }\n else {\n copy_block ( avg_start , avg . y_stride , src . buf , src . stride , bs ) ;\n }\n }"}
{"idx": 4452, "target": 1, "func": "static char * construct_command_line ( struct manager_ctx * manager , struct server * server ) {\n static char cmd [ BUF_SIZE ] ;\n char * method = manager -> method ;\n int i ;\n build_config ( working_dir , server ) ;\n if ( server -> method ) method = server -> method ;\n memset ( cmd , 0 , BUF_SIZE ) ;\n snprintf ( cmd , BUF_SIZE , \"%s -m %s --manager-address %s -f %s/.shadowsocks_%s.pid -c %s/.shadowsocks_%s.conf\" , executable , method , manager -> manager_address , working_dir , server -> port , working_dir , server -> port ) ;\n if ( manager -> acl != NULL ) {\n int len = strlen ( cmd ) ;\n snprintf ( cmd + len , BUF_SIZE - len , \" --acl %s\" , manager -> acl ) ;\n }\n if ( manager -> timeout != NULL ) {\n int len = strlen ( cmd ) ;\n snprintf ( cmd + len , BUF_SIZE - len , \" -t %s\" , manager -> timeout ) ;\n }\n # ifdef HAVE_SETRLIMIT if ( manager -> nofile ) {\n int len = strlen ( cmd ) ;\n snprintf ( cmd + len , BUF_SIZE - len , \" -n %d\" , manager -> nofile ) ;\n }\n # endif if ( manager -> user != NULL ) {\n int len = strlen ( cmd ) ;\n snprintf ( cmd + len , BUF_SIZE - len , \" -a %s\" , manager -> user ) ;\n }\n if ( manager -> verbose ) {\n int len = strlen ( cmd ) ;\n snprintf ( cmd + len , BUF_SIZE - len , \" -v\" ) ;\n }\n if ( server -> mode == NULL && manager -> mode == UDP_ONLY ) {\n int len = strlen ( cmd ) ;\n snprintf ( cmd + len , BUF_SIZE - len , \" -U\" ) ;\n }\n if ( server -> mode == NULL && manager -> mode == TCP_AND_UDP ) {\n int len = strlen ( cmd ) ;\n snprintf ( cmd + len , BUF_SIZE - len , \" -u\" ) ;\n }\n if ( server -> fast_open [ 0 ] == 0 && manager -> fast_open ) {\n int len = strlen ( cmd ) ;\n snprintf ( cmd + len , BUF_SIZE - len , \" --fast-open\" ) ;\n }\n if ( manager -> ipv6first ) {\n int len = strlen ( cmd ) ;\n snprintf ( cmd + len , BUF_SIZE - len , \" -6\" ) ;\n }\n if ( manager -> mtu ) {\n int len = strlen ( cmd ) ;\n snprintf ( cmd + len , BUF_SIZE - len , \" --mtu %d\" , manager -> mtu ) ;\n }\n if ( server -> plugin == NULL && manager -> plugin ) {\n int len = strlen ( cmd ) ;\n snprintf ( cmd + len , BUF_SIZE - len , \" --plugin \\\"%s\\\"\" , manager -> plugin ) ;\n }\n if ( server -> plugin_opts == NULL && manager -> plugin_opts ) {\n int len = strlen ( cmd ) ;\n snprintf ( cmd + len , BUF_SIZE - len , \" --plugin-opts \\\"%s\\\"\" , manager -> plugin_opts ) ;\n }\n for ( i = 0 ;\n i < manager -> nameserver_num ;\n i ++ ) {\n int len = strlen ( cmd ) ;\n snprintf ( cmd + len , BUF_SIZE - len , \" -d %s\" , manager -> nameservers [ i ] ) ;\n }\n for ( i = 0 ;\n i < manager -> host_num ;\n i ++ ) {\n int len = strlen ( cmd ) ;\n snprintf ( cmd + len , BUF_SIZE - len , \" -s %s\" , manager -> hosts [ i ] ) ;\n }\n {\n int len = strlen ( cmd ) ;\n snprintf ( cmd + len , BUF_SIZE - len , \" --reuse-port\" ) ;\n }\n if ( verbose ) {\n LOGI ( \"cmd: %s\" , cmd ) ;\n }\n return cmd ;\n }"}
{"idx": 4453, "target": 1, "func": "static inline void copy_backptr ( LZOContext * c , int back , int cnt ) {\n register uint8_t * dst = c -> out ;\n if ( dst - c -> out_start < back ) {\n c -> error |= AV_LZO_INVALID_BACKPTR ;\n return ;\n }\n if ( cnt > c -> out_end - dst ) {\n cnt = FFMAX ( c -> out_end - dst , 0 ) ;\n c -> error |= AV_LZO_OUTPUT_FULL ;\n }\n av_memcpy_backptr ( dst , back , cnt ) ;\n c -> out = dst + cnt ;\n }"}
{"idx": 4454, "target": 0, "func": "int evdns_resolve_ipv4 ( const char * name , int flags , evdns_callback_type callback , void * ptr ) {\n log ( EVDNS_LOG_DEBUG , \"Resolve requested for %s\" , name ) ;\n if ( flags & DNS_QUERY_NO_SEARCH ) {\n struct request * const req = request_new ( TYPE_A , name , flags , callback , ptr ) ;\n if ( req == NULL ) return ( 1 ) ;\n request_submit ( req ) ;\n return ( 0 ) ;\n }\n else {\n return ( search_request_new ( TYPE_A , name , flags , callback , ptr ) ) ;\n }\n }"}
{"idx": 4455, "target": 0, "func": "static void cpTags ( TIFF * in , TIFF * out ) {\n struct cpTag * p ;\n for ( p = tags ;\n p < & tags [ NTAGS ] ;\n p ++ ) cpTag ( in , out , p -> tag , p -> count , p -> type ) ;\n }"}
{"idx": 4456, "target": 0, "func": "static inline void spl_filesystem_object_get_file_name ( spl_filesystem_object * intern TSRMLS_DC ) {\n char slash = SPL_HAS_FLAG ( intern -> flags , SPL_FILE_DIR_UNIXPATHS ) ? '/' : DEFAULT_SLASH ;\n switch ( intern -> type ) {\n case SPL_FS_INFO : case SPL_FS_FILE : if ( ! intern -> file_name ) {\n php_error_docref ( NULL TSRMLS_CC , E_ERROR , \"Object not initialized\" ) ;\n }\n break ;\n case SPL_FS_DIR : if ( intern -> file_name ) {\n efree ( intern -> file_name ) ;\n }\n intern -> file_name_len = spprintf ( & intern -> file_name , 0 , \"%s%c%s\" , spl_filesystem_object_get_path ( intern , NULL TSRMLS_CC ) , slash , intern -> u . dir . entry . d_name ) ;\n break ;\n }\n }"}
{"idx": 4457, "target": 0, "func": "int dorestore ( i_ctx_t * i_ctx_p , alloc_save_t * asave ) {\n os_ptr op = osp ;\n bool last ;\n vm_save_t * vmsave ;\n int code ;\n osp -- ;\n restore_fix_stack ( i_ctx_p , & o_stack , asave , false ) ;\n restore_fix_stack ( i_ctx_p , & e_stack , asave , true ) ;\n restore_fix_stack ( i_ctx_p , & d_stack , asave , false ) ;\n do {\n vmsave = alloc_save_client_data ( alloc_save_current ( idmemory ) ) ;\n gs_grestoreall_for_restore ( igs , vmsave -> gsave ) ;\n vmsave -> gsave = 0 ;\n code = alloc_restore_step_in ( idmemory , asave ) ;\n if ( code < 0 ) return code ;\n last = code ;\n }\n while ( ! last ) ;\n {\n uint space = icurrent_space ;\n ialloc_set_space ( idmemory , avm_local ) ;\n ifree_object ( vmsave , \"zrestore\" ) ;\n ialloc_set_space ( idmemory , space ) ;\n }\n dict_set_top ( ) ;\n if ( I_VALIDATE_AFTER_RESTORE ) ivalidate_clean_spaces ( i_ctx_p ) ;\n i_ctx_p -> LockFilePermissions = false ;\n return 0 ;\n }"}
{"idx": 4458, "target": 0, "func": "static uint32_t find_object_pos ( const unsigned char * sha1 ) {\n struct object_entry * entry = packlist_find ( writer . to_pack , sha1 , NULL ) ;\n if ( ! entry ) {\n die ( \"Failed to write bitmap index. Packfile doesn't have full closure \" \"(object %s is missing)\" , sha1_to_hex ( sha1 ) ) ;\n }\n return entry -> in_pack_pos ;\n }"}
{"idx": 4459, "target": 0, "func": "static void dissect_zcl_color_control_step_color_temp ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_step_mode , tvb , * offset , 1 , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_enhanced_step_size , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_transit_time , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_color_temp_min , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_color_temp_max , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n }"}
{"idx": 4460, "target": 0, "func": "int64_t TSHttpTxnClientReqBodyBytesGet ( TSHttpTxn txnp ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n return sm -> client_request_body_bytes ;\n }"}
{"idx": 4461, "target": 0, "func": "static void print_mpi ( const char * text , gcry_mpi_t a ) {\n print_mpi_2 ( text , NULL , a ) ;\n }"}
{"idx": 4462, "target": 0, "func": "int remoteAddClientStream ( struct qemud_client * client , struct qemud_client_stream * stream , int transmit ) {\n struct qemud_client_stream * tmp = client -> streams ;\n VIR_DEBUG ( \"client=%p proc=%d serial=%d\" , client , stream -> procedure , stream -> serial ) ;\n if ( virStreamEventAddCallback ( stream -> st , 0 , remoteStreamEvent , client , NULL ) < 0 ) return - 1 ;\n if ( tmp ) {\n while ( tmp -> next ) tmp = tmp -> next ;\n tmp -> next = stream ;\n }\n else {\n client -> streams = stream ;\n }\n stream -> filter . next = client -> filters ;\n client -> filters = & stream -> filter ;\n if ( transmit ) stream -> tx = 1 ;\n remoteStreamUpdateEvents ( stream ) ;\n return 0 ;\n }"}
{"idx": 4463, "target": 0, "func": "void InitializeSchemeWhitelist ( SchemeSet * whitelist , const SchemeSet & client_schemes_to_whitelist ) {\n DCHECK ( whitelist ) ;\n if ( ! whitelist -> empty ( ) ) return ;\n whitelist -> insert ( client_schemes_to_whitelist . begin ( ) , client_schemes_to_whitelist . end ( ) ) ;\n whitelist -> insert ( std : : string ( url : : kAboutScheme ) ) ;\n whitelist -> insert ( std : : string ( url : : kFileScheme ) ) ;\n whitelist -> insert ( std : : string ( url : : kFtpScheme ) ) ;\n whitelist -> insert ( std : : string ( url : : kHttpScheme ) ) ;\n whitelist -> insert ( std : : string ( url : : kHttpsScheme ) ) ;\n whitelist -> insert ( std : : string ( url : : kMailToScheme ) ) ;\n }"}
{"idx": 4464, "target": 0, "func": "static VALUE ossl_asn1_ ## klass ( int argc , VALUE * argv , VALUE self ) \\ {\n return rb_funcall3 ( cASN1 ## klass , rb_intern ( \"new\" ) , argc , argv ) ;\n }\n OSSL_ASN1_IMPL_FACTORY_METHOD ( Boolean ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Integer ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Enumerated ) OSSL_ASN1_IMPL_FACTORY_METHOD ( BitString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( OctetString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( UTF8String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( NumericString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( PrintableString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( T61String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( VideotexString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( IA5String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( GraphicString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( ISO64String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( GeneralString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( UniversalString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( BMPString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Null ) OSSL_ASN1_IMPL_FACTORY_METHOD ( ObjectId ) OSSL_ASN1_IMPL_FACTORY_METHOD ( UTCTime ) OSSL_ASN1_IMPL_FACTORY_METHOD ( GeneralizedTime ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Sequence ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Set )"}
{"idx": 4465, "target": 0, "func": "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 ) {\n gcry_err_code_t err = 0 ;\n gcry_sexp_t list , l2 ;\n char * name ;\n const char * elems ;\n gcry_mpi_t * array ;\n gcry_module_t module ;\n gcry_pk_spec_t * pubkey ;\n pk_extra_spec_t * extraspec ;\n int is_ecc ;\n list = gcry_sexp_find_token ( sexp , want_private ? \"private-key\" : \"public-key\" , 0 ) ;\n if ( ! list && ! want_private ) list = gcry_sexp_find_token ( sexp , \"private-key\" , 0 ) ;\n if ( ! list ) return GPG_ERR_INV_OBJ ;\n l2 = gcry_sexp_cadr ( list ) ;\n gcry_sexp_release ( list ) ;\n list = l2 ;\n name = _gcry_sexp_nth_string ( list , 0 ) ;\n if ( ! name ) {\n gcry_sexp_release ( list ) ;\n return GPG_ERR_INV_OBJ ;\n }\n if ( ! strcmp ( name , \"ecc\" ) ) is_ecc = 2 ;\n else if ( ! strcmp ( name , \"ecdsa\" ) || ! strcmp ( name , \"ecdh\" ) ) is_ecc = 1 ;\n else is_ecc = 0 ;\n ath_mutex_lock ( & pubkeys_registered_lock ) ;\n if ( is_ecc == 2 && ( use & GCRY_PK_USAGE_SIGN ) ) module = gcry_pk_lookup_name ( \"ecdsa\" ) ;\n else if ( is_ecc == 2 && ( use & GCRY_PK_USAGE_ENCR ) ) module = gcry_pk_lookup_name ( \"ecdh\" ) ;\n else module = gcry_pk_lookup_name ( name ) ;\n ath_mutex_unlock ( & pubkeys_registered_lock ) ;\n gcry_free ( name ) ;\n if ( ! module ) {\n gcry_sexp_release ( list ) ;\n return GPG_ERR_PUBKEY_ALGO ;\n }\n else {\n pubkey = ( gcry_pk_spec_t * ) module -> spec ;\n extraspec = module -> extraspec ;\n }\n if ( override_elems ) elems = override_elems ;\n else if ( want_private ) elems = pubkey -> elements_skey ;\n else elems = pubkey -> elements_pkey ;\n array = gcry_calloc ( strlen ( elems ) + 1 , sizeof ( * array ) ) ;\n if ( ! array ) err = gpg_err_code_from_syserror ( ) ;\n if ( ! err ) {\n if ( is_ecc ) err = sexp_elements_extract_ecc ( list , elems , array , extraspec , want_private ) ;\n else err = sexp_elements_extract ( list , elems , array , pubkey -> name , 0 ) ;\n }\n gcry_sexp_release ( list ) ;\n if ( err ) {\n gcry_free ( array ) ;\n ath_mutex_lock ( & pubkeys_registered_lock ) ;\n _gcry_module_release ( module ) ;\n ath_mutex_unlock ( & pubkeys_registered_lock ) ;\n }\n else {\n * retarray = array ;\n * retalgo = module ;\n if ( r_is_ecc ) * r_is_ecc = is_ecc ;\n }\n return err ;\n }"}
{"idx": 4466, "target": 0, "func": "TEST_F ( TemplateURLTest , InputEncodingBeforeSearchTerm ) {\n TemplateURLData data ;\n data . SetURL ( \"http://foox{\ninputEncoding?}\na{\nsearchTerms}\ny{\noutputEncoding?}\nb\" ) ;\n TemplateURL url ( data ) ;\n EXPECT_TRUE ( url . url_ref ( ) . IsValid ( search_terms_data_ ) ) ;\n ASSERT_TRUE ( url . url_ref ( ) . SupportsReplacement ( search_terms_data_ ) ) ;\n GURL result ( url . url_ref ( ) . ReplaceSearchTerms ( TemplateURLRef : : SearchTermsArgs ( ASCIIToUTF16 ( \"X\" ) ) , search_terms_data_ ) ) ;\n ASSERT_TRUE ( result . is_valid ( ) ) ;\n EXPECT_EQ ( \"http://fooxutf-8axyb/\" , result . spec ( ) ) ;\n }"}
{"idx": 4467, "target": 1, "func": "static int dissect_pcp_message ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n proto_item * root_pcp_item ;\n proto_tree * pcp_tree ;\n conversation_t * conversation ;\n pcp_conv_info_t * pcp_conv_info ;\n guint32 packet_type ;\n gint32 err_bytes ;\n int offset = 0 ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"PCP\" ) ;\n col_clear ( pinfo -> cinfo , COL_INFO ) ;\n conversation = find_or_create_conversation ( pinfo ) ;\n pcp_conv_info = ( pcp_conv_info_t * ) conversation_get_proto_data ( conversation , proto_pcp ) ;\n if ( pcp_conv_info == NULL ) {\n pcp_conv_info = ( pcp_conv_info_t * ) g_malloc ( sizeof ( pcp_conv_info_t ) ) ;\n conversation_add_proto_data ( conversation , proto_pcp , pcp_conv_info ) ;\n pcp_conv_info -> pmid_name_candidates = wmem_array_new ( wmem_file_scope ( ) , sizeof ( guint8 * ) ) ;\n pcp_conv_info -> pmid_to_name = wmem_map_new ( wmem_file_scope ( ) , g_direct_hash , g_direct_equal ) ;\n pcp_conv_info -> last_pmns_names_frame = 0 ;\n pcp_conv_info -> last_processed_pmns_names_frame = 0 ;\n }\n root_pcp_item = proto_tree_add_item ( tree , proto_pcp , tvb , 0 , - 1 , ENC_NA ) ;\n pcp_tree = proto_item_add_subtree ( root_pcp_item , ett_pcp ) ;\n packet_type = tvb_get_ntohl ( tvb , 4 ) ;\n if ( pinfo -> srcport == PCP_PORT || pinfo -> srcport == PMPROXY_PORT ) {\n col_set_str ( pinfo -> cinfo , COL_INFO , \"Server > Client \" ) ;\n }\n else {\n col_set_str ( pinfo -> cinfo , COL_INFO , \"Client > Server \" ) ;\n }\n proto_tree_add_item ( pcp_tree , hf_pcp_pdu_length , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( pcp_tree , hf_pcp_pdu_type , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( pcp_tree , hf_pcp_pdu_pid , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n switch ( packet_type ) {\n case PCP_PDU_CREDS : dissect_pcp_message_creds ( tvb , pinfo , pcp_tree , offset ) ;\n break ;\n case PCP_PDU_START_OR_ERROR : err_bytes = tvb_get_ntohl ( tvb , offset ) ;\n if ( err_bytes < 0 ) {\n dissect_pcp_message_error ( tvb , pinfo , pcp_tree , offset ) ;\n }\n else {\n dissect_pcp_message_start ( tvb , pinfo , pcp_tree , offset ) ;\n }\n break ;\n case PCP_PDU_PMNS_TRAVERSE : dissect_pcp_message_pmns_traverse ( tvb , pinfo , pcp_tree , offset ) ;\n break ;\n case PCP_PDU_PMNS_NAMES : dissect_pcp_message_pmns_names ( tvb , pinfo , pcp_tree , offset ) ;\n break ;\n case PCP_PDU_PMNS_CHILD : dissect_pcp_message_pmns_child ( tvb , pinfo , pcp_tree , offset ) ;\n break ;\n case PCP_PDU_PMNS_IDS : dissect_pcp_message_pmns_ids ( tvb , pinfo , pcp_tree , offset ) ;\n break ;\n case PCP_PDU_PROFILE : dissect_pcp_message_profile ( tvb , pinfo , pcp_tree , offset ) ;\n break ;\n case PCP_PDU_FETCH : dissect_pcp_message_fetch ( tvb , pinfo , pcp_tree , offset ) ;\n break ;\n case PCP_PDU_RESULT : dissect_pcp_message_result ( tvb , pinfo , pcp_tree , offset ) ;\n break ;\n case PCP_PDU_DESC_REQ : dissect_pcp_message_desc_req ( tvb , pinfo , pcp_tree , offset ) ;\n break ;\n case PCP_PDU_DESC : dissect_pcp_message_desc ( tvb , pinfo , pcp_tree , offset ) ;\n break ;\n case PCP_PDU_INSTANCE_REQ : dissect_pcp_message_instance_req ( tvb , pinfo , pcp_tree , offset ) ;\n break ;\n case PCP_PDU_INSTANCE : dissect_pcp_message_instance ( tvb , pinfo , pcp_tree , offset ) ;\n break ;\n case PCP_PDU_TEXT_REQ : dissect_pcp_message_text_req ( tvb , pinfo , pcp_tree , offset ) ;\n break ;\n case PCP_PDU_TEXT : dissect_pcp_message_text ( tvb , pinfo , pcp_tree , offset ) ;\n break ;\n case PCP_PDU_USER_AUTH : dissect_pcp_message_user_auth ( tvb , pinfo , pcp_tree , offset ) ;\n break ;\n default : col_append_str ( pinfo -> cinfo , COL_INFO , \"[UNIMPLEMENTED TYPE]\" ) ;\n expert_add_info ( pinfo , pcp_tree , & ei_pcp_unimplemented_packet_type ) ;\n break ;\n }\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 4468, "target": 0, "func": "static int make_cdt15_entry ( int p1 , int p2 , int16_t * cdt ) {\n int r , b , lo ;\n b = cdt [ p2 ] ;\n r = cdt [ p1 ] << 10 ;\n lo = b + r ;\n return ( lo + ( lo << 16 ) ) << 1 ;\n }"}
{"idx": 4469, "target": 0, "func": "static void free_mi ( VP9_COMMON * cm ) {\n int i ;\n for ( i = 0 ;\n i < 2 ;\n ++ i ) {\n vpx_free ( cm -> mip_array [ i ] ) ;\n cm -> mip_array [ i ] = NULL ;\n }\n cm -> mip = NULL ;\n cm -> prev_mip = NULL ;\n }"}
{"idx": 4470, "target": 0, "func": "void udpv6_destroy_sock ( struct sock * sk ) {\n lock_sock ( sk ) ;\n udp_v6_flush_pending_frames ( sk ) ;\n release_sock ( sk ) ;\n inet6_destroy_sock ( sk ) ;\n }"}
{"idx": 4471, "target": 0, "func": "static Image * ReadHDRImage ( const ImageInfo * image_info , ExceptionInfo * exception ) {\n char format [ MagickPathExtent ] , keyword [ MagickPathExtent ] , tag [ MagickPathExtent ] , value [ MagickPathExtent ] ;\n double gamma ;\n Image * image ;\n int c ;\n MagickBooleanType status , value_expected ;\n register Quantum * q ;\n register ssize_t i , x ;\n register unsigned char * p ;\n ssize_t count , y ;\n unsigned char * end , pixel [ 4 ] , * pixels ;\n assert ( image_info != ( const ImageInfo * ) NULL ) ;\n assert ( image_info -> signature == MagickCoreSignature ) ;\n if ( image_info -> debug != MagickFalse ) ( void ) LogMagickEvent ( TraceEvent , GetMagickModule ( ) , \"%s\" , image_info -> filename ) ;\n assert ( exception != ( ExceptionInfo * ) NULL ) ;\n assert ( exception -> signature == MagickCoreSignature ) ;\n image = AcquireImage ( image_info , exception ) ;\n status = OpenBlob ( image_info , image , ReadBinaryBlobMode , exception ) ;\n if ( status == MagickFalse ) {\n image = DestroyImageList ( image ) ;\n return ( ( Image * ) NULL ) ;\n }\n image -> columns = 0 ;\n image -> rows = 0 ;\n * format = '\\0' ;\n c = ReadBlobByte ( image ) ;\n if ( c == EOF ) {\n image = DestroyImage ( image ) ;\n return ( ( Image * ) NULL ) ;\n }\n while ( isgraph ( c ) && ( image -> columns == 0 ) && ( image -> rows == 0 ) ) {\n if ( c == ( int ) '#' ) {\n char * comment ;\n register char * p ;\n size_t length ;\n length = MagickPathExtent ;\n comment = AcquireString ( ( char * ) NULL ) ;\n for ( p = comment ;\n comment != ( char * ) NULL ;\n p ++ ) {\n c = ReadBlobByte ( image ) ;\n if ( ( c == EOF ) || ( c == ( int ) '\\n' ) ) break ;\n if ( ( size_t ) ( p - comment + 1 ) >= length ) {\n * p = '\\0' ;\n length <<= 1 ;\n comment = ( char * ) ResizeQuantumMemory ( comment , length + MagickPathExtent , sizeof ( * comment ) ) ;\n if ( comment == ( char * ) NULL ) break ;\n p = comment + strlen ( comment ) ;\n }\n * p = ( char ) c ;\n }\n if ( comment == ( char * ) NULL ) ThrowReaderException ( ResourceLimitError , \"MemoryAllocationFailed\" ) ;\n * p = '\\0' ;\n ( void ) SetImageProperty ( image , \"comment\" , comment , exception ) ;\n comment = DestroyString ( comment ) ;\n c = ReadBlobByte ( image ) ;\n }\n else if ( isalnum ( c ) == MagickFalse ) c = ReadBlobByte ( image ) ;\n else {\n register char * p ;\n p = keyword ;\n do {\n if ( ( size_t ) ( p - keyword ) < ( MagickPathExtent - 1 ) ) * p ++ = c ;\n c = ReadBlobByte ( image ) ;\n }\n while ( isalnum ( c ) || ( c == '_' ) ) ;\n * p = '\\0' ;\n value_expected = MagickFalse ;\n while ( ( isspace ( ( int ) ( ( unsigned char ) c ) ) != 0 ) || ( c == '=' ) ) {\n if ( c == '=' ) value_expected = MagickTrue ;\n c = ReadBlobByte ( image ) ;\n }\n if ( LocaleCompare ( keyword , \"Y\" ) == 0 ) value_expected = MagickTrue ;\n if ( value_expected == MagickFalse ) continue ;\n p = value ;\n while ( ( c != '\\n' ) && ( c != '\\0' ) && ( c != EOF ) ) {\n if ( ( size_t ) ( p - value ) < ( MagickPathExtent - 1 ) ) * p ++ = c ;\n c = ReadBlobByte ( image ) ;\n }\n * p = '\\0' ;\n switch ( * keyword ) {\n case 'F' : case 'f' : {\n if ( LocaleCompare ( keyword , \"format\" ) == 0 ) {\n ( void ) CopyMagickString ( format , value , MagickPathExtent ) ;\n break ;\n }\n ( void ) FormatLocaleString ( tag , MagickPathExtent , \"hdr:%s\" , keyword ) ;\n ( void ) SetImageProperty ( image , tag , value , exception ) ;\n break ;\n }\n case 'G' : case 'g' : {\n if ( LocaleCompare ( keyword , \"gamma\" ) == 0 ) {\n image -> gamma = StringToDouble ( value , ( char * * ) NULL ) ;\n break ;\n }\n ( void ) FormatLocaleString ( tag , MagickPathExtent , \"hdr:%s\" , keyword ) ;\n ( void ) SetImageProperty ( image , tag , value , exception ) ;\n break ;\n }\n case 'P' : case 'p' : {\n if ( LocaleCompare ( keyword , \"primaries\" ) == 0 ) {\n float chromaticity [ 6 ] , white_point [ 2 ] ;\n int count ;\n count = sscanf ( value , \"%g %g %g %g %g %g %g %g\" , & chromaticity [ 0 ] , & chromaticity [ 1 ] , & chromaticity [ 2 ] , & chromaticity [ 3 ] , & chromaticity [ 4 ] , & chromaticity [ 5 ] , & white_point [ 0 ] , & white_point [ 1 ] ) ;\n if ( count == 8 ) {\n image -> chromaticity . red_primary . x = chromaticity [ 0 ] ;\n image -> chromaticity . red_primary . y = chromaticity [ 1 ] ;\n image -> chromaticity . green_primary . x = chromaticity [ 2 ] ;\n image -> chromaticity . green_primary . y = chromaticity [ 3 ] ;\n image -> chromaticity . blue_primary . x = chromaticity [ 4 ] ;\n image -> chromaticity . blue_primary . y = chromaticity [ 5 ] ;\n image -> chromaticity . white_point . x = white_point [ 0 ] , image -> chromaticity . white_point . y = white_point [ 1 ] ;\n }\n break ;\n }\n ( void ) FormatLocaleString ( tag , MagickPathExtent , \"hdr:%s\" , keyword ) ;\n ( void ) SetImageProperty ( image , tag , value , exception ) ;\n break ;\n }\n case 'Y' : case 'y' : {\n char target [ ] = \"Y\" ;\n if ( strcmp ( keyword , target ) == 0 ) {\n int height , width ;\n if ( sscanf ( value , \"%d +X %d\" , & height , & width ) == 2 ) {\n image -> columns = ( size_t ) width ;\n image -> rows = ( size_t ) height ;\n }\n break ;\n }\n ( void ) FormatLocaleString ( tag , MagickPathExtent , \"hdr:%s\" , keyword ) ;\n ( void ) SetImageProperty ( image , tag , value , exception ) ;\n break ;\n }\n default : {\n ( void ) FormatLocaleString ( tag , MagickPathExtent , \"hdr:%s\" , keyword ) ;\n ( void ) SetImageProperty ( image , tag , value , exception ) ;\n break ;\n }\n }\n }\n if ( ( image -> columns == 0 ) && ( image -> rows == 0 ) ) while ( isspace ( ( int ) ( ( unsigned char ) c ) ) != 0 ) c = ReadBlobByte ( image ) ;\n }\n if ( ( LocaleCompare ( format , \"32-bit_rle_rgbe\" ) != 0 ) && ( LocaleCompare ( format , \"32-bit_rle_xyze\" ) != 0 ) ) ThrowReaderException ( CorruptImageError , \"ImproperImageHeader\" ) ;\n if ( ( image -> columns == 0 ) || ( image -> rows == 0 ) ) ThrowReaderException ( CorruptImageError , \"NegativeOrZeroImageSize\" ) ;\n ( void ) SetImageColorspace ( image , RGBColorspace , exception ) ;\n if ( LocaleCompare ( format , \"32-bit_rle_xyze\" ) == 0 ) ( void ) SetImageColorspace ( image , XYZColorspace , exception ) ;\n image -> compression = ( image -> columns < 8 ) || ( image -> columns > 0x7ffff ) ? NoCompression : RLECompression ;\n if ( image_info -> ping != MagickFalse ) {\n ( void ) CloseBlob ( image ) ;\n return ( GetFirstImageInList ( image ) ) ;\n }\n status = SetImageExtent ( image , image -> columns , image -> rows , exception ) ;\n if ( status == MagickFalse ) return ( DestroyImageList ( image ) ) ;\n pixels = ( unsigned char * ) AcquireQuantumMemory ( image -> columns , 4 * sizeof ( * pixels ) ) ;\n if ( pixels == ( unsigned char * ) NULL ) ThrowReaderException ( ResourceLimitError , \"MemoryAllocationFailed\" ) ;\n for ( y = 0 ;\n y < ( ssize_t ) image -> rows ;\n y ++ ) {\n if ( image -> compression != RLECompression ) {\n count = ReadBlob ( image , 4 * image -> columns * sizeof ( * pixels ) , pixels ) ;\n if ( count != ( ssize_t ) ( 4 * image -> columns * sizeof ( * pixels ) ) ) break ;\n }\n else {\n count = ReadBlob ( image , 4 * sizeof ( * pixel ) , pixel ) ;\n if ( count != 4 ) break ;\n if ( ( size_t ) ( ( ( ( size_t ) pixel [ 2 ] ) << 8 ) | pixel [ 3 ] ) != image -> columns ) {\n ( void ) memcpy ( pixels , pixel , 4 * sizeof ( * pixel ) ) ;\n count = ReadBlob ( image , 4 * ( image -> columns - 1 ) * sizeof ( * pixels ) , pixels + 4 ) ;\n image -> compression = NoCompression ;\n }\n else {\n p = pixels ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n end = & pixels [ ( i + 1 ) * image -> columns ] ;\n while ( p < end ) {\n count = ReadBlob ( image , 2 * sizeof ( * pixel ) , pixel ) ;\n if ( count < 1 ) break ;\n if ( pixel [ 0 ] > 128 ) {\n count = ( ssize_t ) pixel [ 0 ] - 128 ;\n if ( ( count == 0 ) || ( count > ( ssize_t ) ( end - p ) ) ) break ;\n while ( count -- > 0 ) * p ++ = pixel [ 1 ] ;\n }\n else {\n count = ( ssize_t ) pixel [ 0 ] ;\n if ( ( count == 0 ) || ( count > ( ssize_t ) ( end - p ) ) ) break ;\n * p ++ = pixel [ 1 ] ;\n if ( -- count > 0 ) {\n count = ReadBlob ( image , ( size_t ) count * sizeof ( * p ) , p ) ;\n if ( count < 1 ) break ;\n p += count ;\n }\n }\n }\n }\n }\n }\n q = QueueAuthenticPixels ( image , 0 , y , image -> columns , 1 , exception ) ;\n if ( q == ( Quantum * ) NULL ) break ;\n i = 0 ;\n for ( x = 0 ;\n x < ( ssize_t ) image -> columns ;\n x ++ ) {\n if ( image -> compression == RLECompression ) {\n pixel [ 0 ] = pixels [ x ] ;\n pixel [ 1 ] = pixels [ x + image -> columns ] ;\n pixel [ 2 ] = pixels [ x + 2 * image -> columns ] ;\n pixel [ 3 ] = pixels [ x + 3 * image -> columns ] ;\n }\n else {\n pixel [ 0 ] = pixels [ i ++ ] ;\n pixel [ 1 ] = pixels [ i ++ ] ;\n pixel [ 2 ] = pixels [ i ++ ] ;\n pixel [ 3 ] = pixels [ i ++ ] ;\n }\n SetPixelRed ( image , 0 , q ) ;\n SetPixelGreen ( image , 0 , q ) ;\n SetPixelBlue ( image , 0 , q ) ;\n if ( pixel [ 3 ] != 0 ) {\n gamma = pow ( 2.0 , pixel [ 3 ] - ( 128.0 + 8.0 ) ) ;\n SetPixelRed ( image , ClampToQuantum ( QuantumRange * gamma * pixel [ 0 ] ) , q ) ;\n SetPixelGreen ( image , ClampToQuantum ( QuantumRange * gamma * pixel [ 1 ] ) , q ) ;\n SetPixelBlue ( image , ClampToQuantum ( QuantumRange * gamma * pixel [ 2 ] ) , q ) ;\n }\n q += GetPixelChannels ( image ) ;\n }\n if ( SyncAuthenticPixels ( image , exception ) == MagickFalse ) break ;\n status = SetImageProgress ( image , LoadImageTag , ( MagickOffsetType ) y , image -> rows ) ;\n if ( status == MagickFalse ) break ;\n }\n pixels = ( unsigned char * ) RelinquishMagickMemory ( pixels ) ;\n if ( EOFBlob ( image ) != MagickFalse ) ThrowFileException ( exception , CorruptImageError , \"UnexpectedEndOfFile\" , image -> filename ) ;\n ( void ) CloseBlob ( image ) ;\n return ( GetFirstImageInList ( image ) ) ;\n }"}
{"idx": 4472, "target": 0, "func": "size_t qcms_profile_get_parametric_curve ( qcms_profile * profile , qcms_trc_channel channel , float data [ 7 ] ) {\n static const uint32_t COUNT_TO_LENGTH [ 5 ] = {\n 1 , 3 , 4 , 5 , 7 }\n ;\n struct curveType * curve = NULL ;\n size_t size ;\n if ( profile -> color_space != RGB_SIGNATURE ) return 0 ;\n switch ( channel ) {\n case QCMS_TRC_RED : curve = profile -> redTRC ;\n break ;\n case QCMS_TRC_GREEN : curve = profile -> greenTRC ;\n break ;\n case QCMS_TRC_BLUE : curve = profile -> blueTRC ;\n break ;\n default : return 0 ;\n }\n if ( ! curve || curve -> type != PARAMETRIC_CURVE_TYPE ) return 0 ;\n size = COUNT_TO_LENGTH [ curve -> count ] ;\n if ( data ) memcpy ( data , curve -> parameter , size * sizeof ( float ) ) ;\n return size ;\n }"}
{"idx": 4473, "target": 0, "func": "static void * Type_XYZ_Read ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number * nItems , cmsUInt32Number SizeOfTag ) {\n cmsCIEXYZ * xyz ;\n * nItems = 0 ;\n xyz = ( cmsCIEXYZ * ) _cmsMallocZero ( self -> ContextID , sizeof ( cmsCIEXYZ ) ) ;\n if ( xyz == NULL ) return NULL ;\n if ( ! _cmsReadXYZNumber ( io , xyz ) ) {\n _cmsFree ( self -> ContextID , xyz ) ;\n return NULL ;\n }\n * nItems = 1 ;\n return ( void * ) xyz ;\n cmsUNUSED_PARAMETER ( SizeOfTag ) ;\n }"}
{"idx": 4474, "target": 0, "func": "void vp9_set_mb_mi ( VP9_COMMON * cm , int width , int height ) {\n const int aligned_width = ALIGN_POWER_OF_TWO ( width , MI_SIZE_LOG2 ) ;\n const int aligned_height = ALIGN_POWER_OF_TWO ( height , MI_SIZE_LOG2 ) ;\n cm -> mi_cols = aligned_width >> MI_SIZE_LOG2 ;\n cm -> mi_rows = aligned_height >> MI_SIZE_LOG2 ;\n cm -> mi_stride = calc_mi_size ( cm -> mi_cols ) ;\n cm -> mb_cols = ( cm -> mi_cols + 1 ) >> 1 ;\n cm -> mb_rows = ( cm -> mi_rows + 1 ) >> 1 ;\n cm -> MBs = cm -> mb_rows * cm -> mb_cols ;\n }"}
{"idx": 4475, "target": 0, "func": "void ff_clean_h263_qscales ( MpegEncContext * s ) {\n int i ;\n int8_t * const qscale_table = s -> current_picture . qscale_table ;\n ff_init_qscale_tab ( s ) ;\n for ( i = 1 ;\n i < s -> mb_num ;\n i ++ ) {\n if ( qscale_table [ s -> mb_index2xy [ i ] ] - qscale_table [ s -> mb_index2xy [ i - 1 ] ] > 2 ) qscale_table [ s -> mb_index2xy [ i ] ] = qscale_table [ s -> mb_index2xy [ i - 1 ] ] + 2 ;\n }\n for ( i = s -> mb_num - 2 ;\n i >= 0 ;\n i -- ) {\n if ( qscale_table [ s -> mb_index2xy [ i ] ] - qscale_table [ s -> mb_index2xy [ i + 1 ] ] > 2 ) qscale_table [ s -> mb_index2xy [ i ] ] = qscale_table [ s -> mb_index2xy [ i + 1 ] ] + 2 ;\n }\n if ( s -> codec_id != AV_CODEC_ID_H263P ) {\n for ( i = 1 ;\n i < s -> mb_num ;\n i ++ ) {\n int mb_xy = s -> mb_index2xy [ i ] ;\n if ( qscale_table [ mb_xy ] != qscale_table [ s -> mb_index2xy [ i - 1 ] ] && ( s -> mb_type [ mb_xy ] & CANDIDATE_MB_TYPE_INTER4V ) ) {\n s -> mb_type [ mb_xy ] |= CANDIDATE_MB_TYPE_INTER ;\n }\n }\n }\n }"}
{"idx": 4476, "target": 0, "func": "static inline int check_for_slice ( AVSContext * h ) {\n GetBitContext * gb = & h -> gb ;\n int align ;\n if ( h -> mbx ) return 0 ;\n align = ( - get_bits_count ( gb ) ) & 7 ;\n if ( ! align && ( show_bits ( gb , 8 ) == 0x80 ) ) align = 8 ;\n if ( ( show_bits_long ( gb , 24 + align ) & 0xFFFFFF ) == 0x000001 ) {\n skip_bits_long ( gb , 24 + align ) ;\n h -> stc = get_bits ( gb , 8 ) ;\n if ( h -> stc >= h -> mb_height ) return 0 ;\n decode_slice_header ( h , gb ) ;\n return 1 ;\n }\n return 0 ;\n }"}
{"idx": 4477, "target": 0, "func": "static void encode_frame_size ( VC2EncContext * s ) {\n put_bits ( & s -> pb , 1 , ! s -> strict_compliance ) ;\n if ( ! s -> strict_compliance ) {\n AVCodecContext * avctx = s -> avctx ;\n put_vc2_ue_uint ( & s -> pb , avctx -> width ) ;\n put_vc2_ue_uint ( & s -> pb , avctx -> height ) ;\n }\n }"}
{"idx": 4478, "target": 0, "func": "static void dissect_usb_ms_get_max_lun ( packet_info * pinfo _U_ , proto_tree * tree , tvbuff_t * tvb , int offset , gboolean is_request , usb_trans_info_t * usb_trans_info _U_ , usb_conv_info_t * usb_conv_info _U_ ) {\n if ( is_request ) {\n proto_tree_add_item ( tree , hf_usb_ms_value , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_usb_ms_index , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_usb_ms_length , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n }\n else {\n proto_tree_add_item ( tree , hf_usb_ms_maxlun , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n }\n }"}
{"idx": 4479, "target": 0, "func": "gpg_err_code_t _gcry_ecc_fill_in_curve ( unsigned int nbits , const char * name , elliptic_curve_t * curve , unsigned int * r_nbits ) {\n int idx , aliasno ;\n const char * resname = NULL ;\n if ( name ) {\n for ( idx = 0 ;\n domain_parms [ idx ] . desc ;\n idx ++ ) if ( ! strcmp ( name , domain_parms [ idx ] . desc ) ) {\n resname = domain_parms [ idx ] . desc ;\n break ;\n }\n if ( ! domain_parms [ idx ] . desc ) {\n for ( aliasno = 0 ;\n curve_aliases [ aliasno ] . name ;\n aliasno ++ ) if ( ! strcmp ( name , curve_aliases [ aliasno ] . other ) ) break ;\n if ( curve_aliases [ aliasno ] . name ) {\n for ( idx = 0 ;\n domain_parms [ idx ] . desc ;\n idx ++ ) if ( ! strcmp ( curve_aliases [ aliasno ] . name , domain_parms [ idx ] . desc ) ) {\n resname = domain_parms [ idx ] . desc ;\n break ;\n }\n }\n }\n }\n else {\n for ( idx = 0 ;\n domain_parms [ idx ] . desc ;\n idx ++ ) if ( nbits == domain_parms [ idx ] . nbits && domain_parms [ idx ] . model == MPI_EC_WEIERSTRASS ) break ;\n }\n if ( ! domain_parms [ idx ] . desc ) return GPG_ERR_UNKNOWN_CURVE ;\n if ( fips_mode ( ) && ! domain_parms [ idx ] . fips ) return GPG_ERR_NOT_SUPPORTED ;\n switch ( domain_parms [ idx ] . model ) {\n case MPI_EC_WEIERSTRASS : case MPI_EC_TWISTEDEDWARDS : break ;\n case MPI_EC_MONTGOMERY : return GPG_ERR_NOT_SUPPORTED ;\n default : return GPG_ERR_BUG ;\n }\n if ( r_nbits ) * r_nbits = domain_parms [ idx ] . nbits ;\n curve -> model = domain_parms [ idx ] . model ;\n curve -> p = scanval ( domain_parms [ idx ] . p ) ;\n curve -> a = scanval ( domain_parms [ idx ] . a ) ;\n curve -> b = scanval ( domain_parms [ idx ] . b ) ;\n curve -> n = scanval ( domain_parms [ idx ] . n ) ;\n curve -> G . x = scanval ( domain_parms [ idx ] . g_x ) ;\n curve -> G . y = scanval ( domain_parms [ idx ] . g_y ) ;\n curve -> G . z = mpi_alloc_set_ui ( 1 ) ;\n curve -> name = resname ;\n return 0 ;\n }"}
{"idx": 4480, "target": 0, "func": "static void checkpoint ( void ) {\n checkpoint_requested = 0 ;\n if ( object_count ) {\n cycle_packfile ( ) ;\n dump_branches ( ) ;\n dump_tags ( ) ;\n dump_marks ( ) ;\n }\n }"}
{"idx": 4481, "target": 0, "func": "static void config_tos ( config_tree * ptree ) {\n attr_val * tos ;\n int item ;\n item = - 1 ;\n tos = HEAD_PFIFO ( ptree -> orphan_cmds ) ;\n for ( ;\n tos != NULL ;\n tos = tos -> link ) {\n switch ( tos -> attr ) {\n default : NTP_INSIST ( 0 ) ;\n break ;\n case T_Ceiling : item = PROTO_CEILING ;\n break ;\n case T_Floor : item = PROTO_FLOOR ;\n break ;\n case T_Cohort : item = PROTO_COHORT ;\n break ;\n case T_Orphan : item = PROTO_ORPHAN ;\n break ;\n case T_Orphanwait : item = PROTO_ORPHWAIT ;\n break ;\n case T_Mindist : item = PROTO_MINDISP ;\n break ;\n case T_Maxdist : item = PROTO_MAXDIST ;\n break ;\n case T_Minclock : item = PROTO_MINCLOCK ;\n break ;\n case T_Maxclock : item = PROTO_MAXCLOCK ;\n break ;\n case T_Minsane : item = PROTO_MINSANE ;\n break ;\n case T_Beacon : item = PROTO_BEACON ;\n break ;\n }\n proto_config ( item , 0 , tos -> value . d , NULL ) ;\n }\n }"}
{"idx": 4482, "target": 0, "func": "static ssize_t virtio_net_receive ( VLANClientState * nc , const uint8_t * buf , size_t size ) {\n VirtIONet * n = DO_UPCAST ( NICState , nc , nc ) -> opaque ;\n struct virtio_net_hdr_mrg_rxbuf * mhdr = NULL ;\n size_t guest_hdr_len , offset , i , host_hdr_len ;\n if ( ! virtio_net_can_receive ( & n -> nic -> nc ) ) return - 1 ;\n guest_hdr_len = n -> mergeable_rx_bufs ? sizeof ( struct virtio_net_hdr_mrg_rxbuf ) : sizeof ( struct virtio_net_hdr ) ;\n host_hdr_len = n -> has_vnet_hdr ? sizeof ( struct virtio_net_hdr ) : 0 ;\n if ( ! virtio_net_has_buffers ( n , size + guest_hdr_len - host_hdr_len ) ) return 0 ;\n if ( ! receive_filter ( n , buf , size ) ) return size ;\n offset = i = 0 ;\n while ( offset < size ) {\n VirtQueueElement elem ;\n int len , total ;\n struct iovec sg [ VIRTQUEUE_MAX_SIZE ] ;\n total = 0 ;\n if ( virtqueue_pop ( n -> rx_vq , & elem ) == 0 ) {\n if ( i == 0 ) return - 1 ;\n error_report ( \"virtio-net unexpected empty queue: \" \"i %zd mergeable %d offset %zd, size %zd, \" \"guest hdr len %zd, host hdr len %zd guest features 0x%x\" , i , n -> mergeable_rx_bufs , offset , size , guest_hdr_len , host_hdr_len , n -> vdev . guest_features ) ;\n exit ( 1 ) ;\n }\n if ( elem . in_num < 1 ) {\n error_report ( \"virtio-net receive queue contains no in buffers\" ) ;\n exit ( 1 ) ;\n }\n if ( ! n -> mergeable_rx_bufs && elem . in_sg [ 0 ] . iov_len != guest_hdr_len ) {\n error_report ( \"virtio-net header not in first element\" ) ;\n exit ( 1 ) ;\n }\n memcpy ( & sg , & elem . in_sg [ 0 ] , sizeof ( sg [ 0 ] ) * elem . in_num ) ;\n if ( i == 0 ) {\n if ( n -> mergeable_rx_bufs ) mhdr = ( struct virtio_net_hdr_mrg_rxbuf * ) sg [ 0 ] . iov_base ;\n offset += receive_header ( n , sg , elem . in_num , buf + offset , size - offset , guest_hdr_len ) ;\n total += guest_hdr_len ;\n }\n len = iov_from_buf ( sg , elem . in_num , 0 , buf + offset , size - offset ) ;\n total += len ;\n offset += len ;\n if ( ! n -> mergeable_rx_bufs && offset < size ) {\n # if 0 error_report ( \"virtio-net truncated non-mergeable packet: \" \"i %zd mergeable %d offset %zd, size %zd, \" \"guest hdr len %zd, host hdr len %zd\" , i , n -> mergeable_rx_bufs , offset , size , guest_hdr_len , host_hdr_len ) ;\n # endif return size ;\n }\n virtqueue_fill ( n -> rx_vq , & elem , total , i ++ ) ;\n }\n if ( mhdr ) {\n stw_p ( & mhdr -> num_buffers , i ) ;\n }\n virtqueue_flush ( n -> rx_vq , i ) ;\n virtio_notify ( & n -> vdev , n -> rx_vq ) ;\n return size ;\n }"}
{"idx": 4483, "target": 0, "func": "static void dtap_tp_gprs_test_mode_cmd ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_len = len ;\n curr_offset = offset ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_TP_PDU_DESCRIPTION , NULL ) ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_TP_MODE_FLAG , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 4484, "target": 0, "func": "static uint32_t debugCB_nextSerial ( ) {\n static uint32_t n = 1 ;\n return ( n ++ ) ;\n }"}
{"idx": 4485, "target": 0, "func": "void mime_hdr_fields_clear ( HdrHeap * heap , MIMEHdrImpl * mh ) {\n mime_hdr_destroy_field_block_list ( heap , mh -> m_first_fblock . m_next ) ;\n mime_hdr_init ( mh ) ;\n }"}
{"idx": 4486, "target": 0, "func": "static int AssignTTFBitGlyph ( struct glyphinfo * gi , SplineFont * sf , EncMap * map , int32 * bsizes ) {\n int i , j ;\n BDFFont * bdf ;\n int * bygid = malloc ( ( sf -> glyphcnt + 3 ) * sizeof ( int ) ) ;\n memset ( bygid , 0xff , ( sf -> glyphcnt + 3 ) * sizeof ( int ) ) ;\n AssignNotdefNull ( sf , bygid , false ) ;\n for ( bdf = sf -> bitmaps ;\n bdf != NULL ;\n bdf = bdf -> next ) {\n for ( j = 0 ;\n bsizes [ j ] != 0 && ( ( bsizes [ j ] & 0xffff ) != bdf -> pixelsize || ( bsizes [ j ] >> 16 ) != BDFDepth ( bdf ) ) ;\n ++ j ) ;\n if ( bsizes [ j ] == 0 ) continue ;\n for ( i = 0 ;\n i < bdf -> glyphcnt ;\n ++ i ) if ( ! IsntBDFChar ( bdf -> glyphs [ i ] ) ) sf -> glyphs [ i ] -> ttf_glyph = - 2 ;\n }\n j = 3 ;\n for ( i = 0 ;\n i < map -> enccount ;\n ++ i ) if ( map -> map [ i ] != - 1 ) {\n SplineChar * sc = sf -> glyphs [ map -> map [ i ] ] ;\n if ( sc -> ttf_glyph == - 2 ) {\n sc -> ttf_glyph = j ;\n bygid [ j ++ ] = sc -> orig_pos ;\n }\n }\n for ( i = 0 ;\n i < sf -> glyphcnt ;\n ++ i ) if ( sf -> glyphs [ i ] != NULL ) {\n SplineChar * sc = sf -> glyphs [ i ] ;\n if ( sc -> ttf_glyph == - 2 ) {\n sc -> ttf_glyph = j ;\n bygid [ j ++ ] = i ;\n }\n }\n gi -> bygid = bygid ;\n gi -> gcnt = j ;\n return j ;\n }"}
{"idx": 4487, "target": 0, "func": "char * qemuAliasTLSObjFromChardevAlias ( const char * chardev_alias ) {\n char * ret ;\n ignore_value ( virAsprintf ( & ret , \"obj%s_tls0\" , chardev_alias ) ) ;\n return ret ;\n }"}
{"idx": 4488, "target": 0, "func": "void vp9_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint8_t * dst , ptrdiff_t stride , const uint8_t * above , const uint8_t * left ) {\n type ## _predictor ( dst , stride , size , above , left ) ;\n }\n # if CONFIG_VP9_HIGHBITDEPTH # define intra_pred_high_sized ( type , size ) void vp9_high_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint16_t * dst , ptrdiff_t stride , const uint16_t * above , const uint16_t * left , int bd ) {\n high_ ## type ## _predictor ( dst , stride , size , above , left , bd ) ;\n }\n # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) intra_pred_high_sized ( type , 4 ) intra_pred_high_sized ( type , 8 ) intra_pred_high_sized ( type , 16 ) intra_pred_high_sized ( type , 32 ) # else # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) # endif # if CONFIG_VP9_HIGHBITDEPTH static INLINE void high_d207_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) above ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) {\n dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n }\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) {\n dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n }\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n }\n static INLINE void high_d63_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) {\n dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n }\n dst += stride ;\n }\n }\n static INLINE void high_d45_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) {\n dst [ c ] = r + c + 2 < bs * 2 ? ROUND_POWER_OF_TWO ( above [ r + c ] + above [ r + c + 1 ] * 2 + above [ r + c + 2 ] , 2 ) : above [ bs * 2 - 1 ] ;\n }\n dst += stride ;\n }\n }\n static INLINE void high_d117_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] , 1 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 3 ;\n r < bs ;\n ++ r ) dst [ ( r - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ r - 3 ] + left [ r - 2 ] * 2 + left [ r - 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - 2 * stride + c - 1 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_d135_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - stride + c - 1 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_d153_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] , 1 ) ;\n for ( r = 1 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 1 ] + left [ r ] , 1 ) ;\n dst ++ ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] * 2 + above [ c + 1 ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = dst [ - stride + c - 2 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_v_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memcpy ( dst , above , bs * sizeof ( uint16_t ) ) ;\n dst += stride ;\n }\n }\n static INLINE void high_h_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) above ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , left [ r ] , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_tm_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n int ytop_left = above [ - 1 ] ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = clip_pixel_high ( left [ r ] + above [ c ] - ytop_left , bd ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_128_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) above ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , 128 << ( bd - 8 ) , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_left_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) above ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += left [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_top_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) left ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += above [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n const int count = 2 * bs ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) {\n sum += above [ i ] ;\n sum += left [ i ] ;\n }\n expected_dc = ( sum + ( count >> 1 ) ) / count ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n # endif static INLINE void d207_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n intra_pred_allsizes ( d207 ) static INLINE void d63_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d63 )"}
{"idx": 4489, "target": 0, "func": "IN_PROC_BROWSER_TEST_P ( BrowserCloseManagerBrowserTest , TestWithDownloadsFromDifferentProfiles ) {\n ProfileManager * profile_manager = g_browser_process -> profile_manager ( ) ;\n Profile * other_profile = nullptr ;\n {\n base : : FilePath path = profile_manager -> user_data_dir ( ) . AppendASCII ( \"test_profile\" ) ;\n base : : ScopedAllowBlockingForTesting allow_blocking ;\n if ( ! base : : PathExists ( path ) ) ASSERT_TRUE ( base : : CreateDirectory ( path ) ) ;\n other_profile = Profile : : CreateProfile ( path , NULL , Profile : : CREATE_MODE_SYNCHRONOUS ) ;\n }\n profile_manager -> RegisterTestingProfile ( other_profile , true , false ) ;\n Browser * other_profile_browser = CreateBrowser ( other_profile ) ;\n ASSERT_NO_FATAL_FAILURE ( CreateStalledDownload ( browser ( ) ) ) ;\n {\n RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , 1 ) ;\n browser ( ) -> window ( ) -> Close ( ) ;\n close_observer . Wait ( ) ;\n }\n ui_test_utils : : BrowserAddedObserver new_browser_observer ;\n TestBrowserCloseManager : : AttemptClose ( TestBrowserCloseManager : : USER_CHOICE_USER_CANCELS_CLOSE ) ;\n EXPECT_FALSE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n Browser * opened_browser = new_browser_observer . WaitForSingleNewBrowser ( ) ;\n EXPECT_EQ ( GURL ( chrome : : kChromeUIDownloadsURL ) , opened_browser -> tab_strip_model ( ) -> GetActiveWebContents ( ) -> GetURL ( ) ) ;\n EXPECT_EQ ( GURL ( \"about:blank\" ) , other_profile_browser -> tab_strip_model ( ) -> GetActiveWebContents ( ) -> GetURL ( ) ) ;\n RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , 2 ) ;\n TestBrowserCloseManager : : AttemptClose ( TestBrowserCloseManager : : USER_CHOICE_USER_ALLOWS_CLOSE ) ;\n close_observer . Wait ( ) ;\n EXPECT_TRUE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_TRUE ( BrowserList : : GetInstance ( ) -> empty ( ) ) ;\n if ( browser_defaults : : kBrowserAliveWithNoWindows ) EXPECT_EQ ( 1 , DownloadCoreService : : NonMaliciousDownloadCountAllProfiles ( ) ) ;\n else EXPECT_EQ ( 0 , DownloadCoreService : : NonMaliciousDownloadCountAllProfiles ( ) ) ;\n }"}
{"idx": 4490, "target": 0, "func": "static void ohci_set_ctl ( OHCIState * ohci , uint32_t val ) {\n uint32_t old_state ;\n uint32_t new_state ;\n old_state = ohci -> ctl & OHCI_CTL_HCFS ;\n ohci -> ctl = val ;\n new_state = ohci -> ctl & OHCI_CTL_HCFS ;\n if ( old_state == new_state ) return ;\n trace_usb_ohci_set_ctl ( ohci -> name , new_state ) ;\n switch ( new_state ) {\n case OHCI_USB_OPERATIONAL : ohci_bus_start ( ohci ) ;\n break ;\n case OHCI_USB_SUSPEND : ohci_bus_stop ( ohci ) ;\n ohci -> intr_status &= ~ OHCI_INTR_SF ;\n ohci_intr_update ( ohci ) ;\n break ;\n case OHCI_USB_RESUME : trace_usb_ohci_resume ( ohci -> name ) ;\n break ;\n case OHCI_USB_RESET : ohci_roothub_reset ( ohci ) ;\n break ;\n }\n }"}
{"idx": 4491, "target": 0, "func": "static const uint8_t * decode_tiles_mt ( VP9Decoder * pbi , const uint8_t * data , const uint8_t * data_end ) {\n VP9_COMMON * const cm = & pbi -> common ;\n const VP9WorkerInterface * const winterface = vp9_get_worker_interface ( ) ;\n const uint8_t * bit_reader_end = NULL ;\n const int aligned_mi_cols = mi_cols_aligned_to_sb ( cm -> mi_cols ) ;\n const int tile_cols = 1 << cm -> log2_tile_cols ;\n const int tile_rows = 1 << cm -> log2_tile_rows ;\n const int num_workers = MIN ( pbi -> max_threads & ~ 1 , tile_cols ) ;\n TileBuffer tile_buffers [ 1 ] [ 1 << 6 ] ;\n int n ;\n int final_worker = - 1 ;\n assert ( tile_cols <= ( 1 << 6 ) ) ;\n assert ( tile_rows == 1 ) ;\n ( void ) tile_rows ;\n if ( pbi -> num_tile_workers == 0 ) {\n const int num_threads = pbi -> max_threads & ~ 1 ;\n int i ;\n CHECK_MEM_ERROR ( cm , pbi -> tile_workers , vpx_malloc ( num_threads * sizeof ( * pbi -> tile_workers ) ) ) ;\n for ( i = 0 ;\n i < num_threads ;\n ++ i ) {\n VP9Worker * const worker = & pbi -> tile_workers [ i ] ;\n ++ pbi -> num_tile_workers ;\n winterface -> init ( worker ) ;\n CHECK_MEM_ERROR ( cm , worker -> data1 , vpx_memalign ( 32 , sizeof ( TileWorkerData ) ) ) ;\n CHECK_MEM_ERROR ( cm , worker -> data2 , vpx_malloc ( sizeof ( TileInfo ) ) ) ;\n if ( i < num_threads - 1 && ! winterface -> reset ( worker ) ) {\n vpx_internal_error ( & cm -> error , VPX_CODEC_ERROR , \"Tile decoder thread creation failed\" ) ;\n }\n }\n }\n for ( n = 0 ;\n n < num_workers ;\n ++ n ) {\n winterface -> sync ( & pbi -> tile_workers [ n ] ) ;\n pbi -> tile_workers [ n ] . hook = ( VP9WorkerHook ) tile_worker_hook ;\n }\n vpx_memset ( cm -> above_context , 0 , sizeof ( * cm -> above_context ) * MAX_MB_PLANE * 2 * aligned_mi_cols ) ;\n vpx_memset ( cm -> above_seg_context , 0 , sizeof ( * cm -> above_seg_context ) * aligned_mi_cols ) ;\n get_tile_buffers ( pbi , data , data_end , tile_cols , tile_rows , tile_buffers ) ;\n qsort ( tile_buffers [ 0 ] , tile_cols , sizeof ( tile_buffers [ 0 ] [ 0 ] ) , compare_tile_buffers ) ;\n {\n int group_start = 0 ;\n while ( group_start < tile_cols ) {\n const TileBuffer largest = tile_buffers [ 0 ] [ group_start ] ;\n const int group_end = MIN ( group_start + num_workers , tile_cols ) - 1 ;\n memmove ( tile_buffers [ 0 ] + group_start , tile_buffers [ 0 ] + group_start + 1 , ( group_end - group_start ) * sizeof ( tile_buffers [ 0 ] [ 0 ] ) ) ;\n tile_buffers [ 0 ] [ group_end ] = largest ;\n group_start = group_end + 1 ;\n }\n }\n n = 0 ;\n while ( n < tile_cols ) {\n int i ;\n for ( i = 0 ;\n i < num_workers && n < tile_cols ;\n ++ i ) {\n VP9Worker * const worker = & pbi -> tile_workers [ i ] ;\n TileWorkerData * const tile_data = ( TileWorkerData * ) worker -> data1 ;\n TileInfo * const tile = ( TileInfo * ) worker -> data2 ;\n TileBuffer * const buf = & tile_buffers [ 0 ] [ n ] ;\n tile_data -> cm = cm ;\n tile_data -> xd = pbi -> mb ;\n tile_data -> xd . corrupted = 0 ;\n vp9_tile_init ( tile , tile_data -> cm , 0 , buf -> col ) ;\n setup_token_decoder ( buf -> data , data_end , buf -> size , & cm -> error , & tile_data -> bit_reader , pbi -> decrypt_cb , pbi -> decrypt_state ) ;\n init_macroblockd ( cm , & tile_data -> xd ) ;\n vp9_zero ( tile_data -> xd . dqcoeff ) ;\n worker -> had_error = 0 ;\n if ( i == num_workers - 1 || n == tile_cols - 1 ) {\n winterface -> execute ( worker ) ;\n }\n else {\n winterface -> launch ( worker ) ;\n }\n if ( buf -> col == tile_cols - 1 ) {\n final_worker = i ;\n }\n ++ n ;\n }\n for ( ;\n i > 0 ;\n -- i ) {\n VP9Worker * const worker = & pbi -> tile_workers [ i - 1 ] ;\n pbi -> mb . corrupted |= ! winterface -> sync ( worker ) ;\n }\n if ( final_worker > - 1 ) {\n TileWorkerData * const tile_data = ( TileWorkerData * ) pbi -> tile_workers [ final_worker ] . data1 ;\n bit_reader_end = vp9_reader_find_end ( & tile_data -> bit_reader ) ;\n final_worker = - 1 ;\n }\n }\n return bit_reader_end ;\n }"}
{"idx": 4492, "target": 0, "func": "static __inline__ int icmpv6_filter ( struct sock * sk , struct sk_buff * skb ) {\n struct icmp6hdr * icmph ;\n struct raw6_sock * rp = raw6_sk ( sk ) ;\n if ( pskb_may_pull ( skb , sizeof ( struct icmp6hdr ) ) ) {\n __u32 * data = & rp -> filter . data [ 0 ] ;\n int bit_nr ;\n icmph = ( struct icmp6hdr * ) skb -> data ;\n bit_nr = icmph -> icmp6_type ;\n return ( data [ bit_nr >> 5 ] & ( 1 << ( bit_nr & 31 ) ) ) != 0 ;\n }\n return 0 ;\n }"}
{"idx": 4493, "target": 0, "func": "static int dissect_h245_TerminalCapabilitySetAck ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_TerminalCapabilitySetAck , TerminalCapabilitySetAck_sequence ) ;\n # line 566 \"../../asn1/h245/h245.cnf\" if ( h245_pi != NULL ) h245_pi -> msg_type = H245_TermCapSetAck ;\n return offset ;\n }"}
{"idx": 4494, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( VirtualKeyboardBrowserTest , IsKeyboardLoaded ) {\n content : : RenderViewHost * keyboard_rvh = GetKeyboardRenderViewHost ( ) ;\n ASSERT_TRUE ( keyboard_rvh ) ;\n bool loaded = false ;\n std : : string script = \"!!chrome.virtualKeyboardPrivate\" ;\n EXPECT_TRUE ( content : : ExecuteScriptAndExtractBool ( keyboard_rvh , \"window.domAutomationController.send(\" + script + \");\n\" , & loaded ) ) ;\n ASSERT_TRUE ( loaded ) ;\n }"}
{"idx": 4495, "target": 0, "func": "TSReturnCode TSFetchPageRespGet ( TSHttpTxn txnp , TSMBuffer * bufp , TSMLoc * obj ) {\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) obj ) == TS_SUCCESS ) ;\n HTTPHdr * hptr = ( HTTPHdr * ) txnp ;\n if ( hptr -> valid ( ) ) {\n * ( reinterpret_cast < HTTPHdr * * > ( bufp ) ) = hptr ;\n * obj = reinterpret_cast < TSMLoc > ( hptr -> m_http ) ;\n return sdk_sanity_check_mbuffer ( * bufp ) ;\n }\n return TS_ERROR ;\n }"}
{"idx": 4496, "target": 0, "func": "static void decode_block ( VP9_COMMON * const cm , MACROBLOCKD * const xd , const TileInfo * const tile , int mi_row , int mi_col , vp9_reader * r , BLOCK_SIZE bsize ) {\n const int less8x8 = bsize < BLOCK_8X8 ;\n MB_MODE_INFO * mbmi = set_offsets ( cm , xd , tile , bsize , mi_row , mi_col ) ;\n vp9_read_mode_info ( cm , xd , tile , mi_row , mi_col , r ) ;\n if ( less8x8 ) bsize = BLOCK_8X8 ;\n if ( mbmi -> skip ) {\n reset_skip_context ( xd , bsize ) ;\n }\n else {\n if ( cm -> seg . enabled ) setup_plane_dequants ( cm , xd , vp9_get_qindex ( & cm -> seg , mbmi -> segment_id , cm -> base_qindex ) ) ;\n }\n if ( ! is_inter_block ( mbmi ) ) {\n struct intra_args arg = {\n cm , xd , r }\n ;\n vp9_foreach_transformed_block ( xd , bsize , predict_and_reconstruct_intra_block , & arg ) ;\n }\n else {\n set_ref ( cm , xd , 0 , mi_row , mi_col ) ;\n if ( has_second_ref ( mbmi ) ) set_ref ( cm , xd , 1 , mi_row , mi_col ) ;\n vp9_dec_build_inter_predictors_sb ( xd , mi_row , mi_col , bsize ) ;\n if ( ! mbmi -> skip ) {\n int eobtotal = 0 ;\n struct inter_args arg = {\n cm , xd , r , & eobtotal }\n ;\n vp9_foreach_transformed_block ( xd , bsize , reconstruct_inter_block , & arg ) ;\n if ( ! less8x8 && eobtotal == 0 ) mbmi -> skip = 1 ;\n }\n }\n xd -> corrupted |= vp9_reader_has_error ( r ) ;\n }"}
{"idx": 4497, "target": 1, "func": "static int ws_snd_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n int in_size , out_size , ret ;\n int sample = 128 ;\n uint8_t * samples ;\n uint8_t * samples_end ;\n if ( ! buf_size ) return 0 ;\n if ( buf_size < 4 ) {\n av_log ( avctx , AV_LOG_ERROR , \"packet is too small\\n\" ) ;\n return AVERROR ( EINVAL ) ;\n }\n out_size = AV_RL16 ( & buf [ 0 ] ) ;\n in_size = AV_RL16 ( & buf [ 2 ] ) ;\n buf += 4 ;\n if ( in_size > buf_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"Frame data is larger than input buffer\\n\" ) ;\n return - 1 ;\n }\n frame -> nb_samples = out_size ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n samples = frame -> data [ 0 ] ;\n samples_end = samples + out_size ;\n if ( in_size == out_size ) {\n memcpy ( samples , buf , out_size ) ;\n * got_frame_ptr = 1 ;\n return buf_size ;\n }\n while ( samples < samples_end && buf - avpkt -> data < buf_size ) {\n int code , smp , size ;\n uint8_t count ;\n code = * buf >> 6 ;\n count = * buf & 0x3F ;\n buf ++ ;\n switch ( code ) {\n case 0 : smp = 4 * ( count + 1 ) ;\n break ;\n case 1 : smp = 2 * ( count + 1 ) ;\n break ;\n case 2 : smp = ( count & 0x20 ) ? 1 : count + 1 ;\n break ;\n default : smp = count + 1 ;\n break ;\n }\n if ( samples_end - samples < smp ) break ;\n size = ( ( code == 2 && ( count & 0x20 ) ) || code == 3 ) ? 0 : count + 1 ;\n if ( ( buf - avpkt -> data ) + size > buf_size ) break ;\n switch ( code ) {\n case 0 : for ( count ++ ;\n count > 0 ;\n count -- ) {\n code = * buf ++ ;\n sample += ( code & 0x3 ) - 2 ;\n sample = av_clip_uint8 ( sample ) ;\n * samples ++ = sample ;\n sample += ( ( code >> 2 ) & 0x3 ) - 2 ;\n sample = av_clip_uint8 ( sample ) ;\n * samples ++ = sample ;\n sample += ( ( code >> 4 ) & 0x3 ) - 2 ;\n sample = av_clip_uint8 ( sample ) ;\n * samples ++ = sample ;\n sample += ( code >> 6 ) - 2 ;\n sample = av_clip_uint8 ( sample ) ;\n * samples ++ = sample ;\n }\n break ;\n case 1 : for ( count ++ ;\n count > 0 ;\n count -- ) {\n code = * buf ++ ;\n sample += ws_adpcm_4bit [ code & 0xF ] ;\n sample = av_clip_uint8 ( sample ) ;\n * samples ++ = sample ;\n sample += ws_adpcm_4bit [ code >> 4 ] ;\n sample = av_clip_uint8 ( sample ) ;\n * samples ++ = sample ;\n }\n break ;\n case 2 : if ( count & 0x20 ) {\n int8_t t ;\n t = count ;\n t <<= 3 ;\n sample += t >> 3 ;\n sample = av_clip_uint8 ( sample ) ;\n * samples ++ = sample ;\n }\n else {\n memcpy ( samples , buf , smp ) ;\n samples += smp ;\n buf += smp ;\n sample = buf [ - 1 ] ;\n }\n break ;\n default : memset ( samples , sample , smp ) ;\n samples += smp ;\n }\n }\n frame -> nb_samples = samples - frame -> data [ 0 ] ;\n * got_frame_ptr = 1 ;\n return buf_size ;\n }"}
{"idx": 4498, "target": 0, "func": "int evdns_count_nameservers ( void ) {\n const struct nameserver * server = server_head ;\n int n = 0 ;\n if ( ! server ) return 0 ;\n do {\n ++ n ;\n server = server -> next ;\n }\n while ( server != server_head ) ;\n return n ;\n }"}
{"idx": 4499, "target": 0, "func": "static pdf_material * pdf_keep_material ( fz_context * ctx , pdf_material * mat ) {\n if ( mat -> colorspace ) fz_keep_colorspace ( ctx , mat -> colorspace ) ;\n if ( mat -> pattern ) pdf_keep_pattern ( ctx , mat -> pattern ) ;\n if ( mat -> shade ) fz_keep_shade ( ctx , mat -> shade ) ;\n return mat ;\n }"}
{"idx": 4500, "target": 0, "func": "void fz_drop_color_converter ( fz_context * ctx , fz_color_converter * cc ) {\n fz_icclink * link = ( fz_icclink * ) cc -> link ;\n if ( link ) fz_drop_icclink ( ctx , link ) ;\n cc -> link = NULL ;\n }"}
{"idx": 4501, "target": 0, "func": "static int s_aos_process ( stream_state * st , stream_cursor_read * ignore_pr , stream_cursor_write * pw , bool last ) {\n int blk_i , blk_off , blk_cnt , status = 1 ;\n uint count ;\n aos_state_t * ss = ( aos_state_t * ) st ;\n uint max_count = pw -> limit - pw -> ptr ;\n uint pos = stell ( ss -> s ) ;\n unsigned const char * data ;\n ref * blk_ref ;\n pos += sbufavailable ( ss -> s ) ;\n if ( pos >= ss -> file_sz ) return EOFC ;\n blk_i = pos / ss -> blk_sz ;\n blk_off = pos % ss -> blk_sz ;\n blk_cnt = r_size ( & ss -> blocks ) ;\n count = blk_i < blk_cnt - 1 ? ss -> blk_sz : ss -> blk_sz_last ;\n blk_ref = ss -> blocks . value . refs ;\n data = blk_ref [ blk_i ] . value . bytes ;\n if ( max_count > count - blk_off ) {\n max_count = count - blk_off ;\n if ( blk_i == blk_cnt - 1 ) status = EOFC ;\n }\n memcpy ( pw -> ptr + 1 , data + blk_off , max_count ) ;\n pw -> ptr += max_count ;\n return status ;\n }"}
{"idx": 4502, "target": 0, "func": "static int address_is_correct ( struct nameserver * ns , struct sockaddr * sa , socklen_t slen ) {\n struct sockaddr_in * sin = ( struct sockaddr_in * ) sa ;\n if ( sa -> sa_family != AF_INET || slen != sizeof ( struct sockaddr_in ) ) return 0 ;\n if ( sin -> sin_addr . s_addr != ns -> address ) return 0 ;\n return 1 ;\n }"}
{"idx": 4503, "target": 0, "func": "static void cpTag ( TIFF * in , TIFF * out , uint16 tag , uint16 count , TIFFDataType type ) {\n switch ( type ) {\n case TIFF_SHORT : if ( count == 1 ) {\n uint16 shortv ;\n CopyField ( tag , shortv ) ;\n }\n else if ( count == 2 ) {\n uint16 shortv1 , shortv2 ;\n CopyField2 ( tag , shortv1 , shortv2 ) ;\n }\n else if ( count == 4 ) {\n uint16 * tr , * tg , * tb , * ta ;\n CopyField4 ( tag , tr , tg , tb , ta ) ;\n }\n else if ( count == ( uint16 ) - 1 ) {\n uint16 shortv1 ;\n uint16 * shortav ;\n CopyField2 ( tag , shortv1 , shortav ) ;\n }\n break ;\n case TIFF_LONG : {\n uint32 longv ;\n CopyField ( tag , longv ) ;\n }\n break ;\n case TIFF_RATIONAL : if ( count == 1 ) {\n float floatv ;\n CopyField ( tag , floatv ) ;\n }\n else if ( count == ( uint16 ) - 1 ) {\n float * floatav ;\n CopyField ( tag , floatav ) ;\n }\n break ;\n case TIFF_ASCII : {\n char * stringv ;\n CopyField ( tag , stringv ) ;\n }\n break ;\n case TIFF_DOUBLE : if ( count == 1 ) {\n double doublev ;\n CopyField ( tag , doublev ) ;\n }\n else if ( count == ( uint16 ) - 1 ) {\n double * doubleav ;\n CopyField ( tag , doubleav ) ;\n }\n break ;\n default : TIFFError ( TIFFFileName ( in ) , \"Data type %d is not supported, tag %d skipped.\" , tag , type ) ;\n }\n }"}
{"idx": 4504, "target": 0, "func": "static void parse_ls ( const char * p , struct branch * b ) {\n struct tree_entry * root = NULL ;\n struct tree_entry leaf = {\n NULL }\n ;\n if ( * p == '\"' ) {\n if ( ! b ) die ( \"Not in a commit: %s\" , command_buf . buf ) ;\n root = & b -> branch_tree ;\n }\n else {\n struct object_entry * e = parse_treeish_dataref ( & p ) ;\n root = new_tree_entry ( ) ;\n hashcpy ( root -> versions [ 1 ] . sha1 , e -> idx . sha1 ) ;\n if ( ! is_null_sha1 ( root -> versions [ 1 ] . sha1 ) ) root -> versions [ 1 ] . mode = S_IFDIR ;\n load_tree ( root ) ;\n }\n if ( * p == '\"' ) {\n static struct strbuf uq = STRBUF_INIT ;\n const char * endp ;\n strbuf_reset ( & uq ) ;\n if ( unquote_c_style ( & uq , p , & endp ) ) die ( \"Invalid path: %s\" , command_buf . buf ) ;\n if ( * endp ) die ( \"Garbage after path in: %s\" , command_buf . buf ) ;\n p = uq . buf ;\n }\n tree_content_get ( root , p , & leaf , 1 ) ;\n if ( S_ISDIR ( leaf . versions [ 1 ] . mode ) ) store_tree ( & leaf ) ;\n print_ls ( leaf . versions [ 1 ] . mode , leaf . versions [ 1 ] . sha1 , p ) ;\n if ( leaf . tree ) release_tree_content_recursive ( leaf . tree ) ;\n if ( ! b || root != & b -> branch_tree ) release_tree_entry ( root ) ;\n }"}
{"idx": 4505, "target": 0, "func": "REGRESSION_TEST ( SDK_API_TSContMutexGet ) ( RegressionTest * test , int , int * pstatus ) {\n bool test_passed = false ;\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n TSMutex mutexp_input ;\n TSMutex mutexp_output ;\n TSCont contp ;\n mutexp_input = TSMutexCreate ( ) ;\n contp = TSContCreate ( cont_handler , mutexp_input ) ;\n mutexp_output = TSContMutexGet ( contp ) ;\n if ( mutexp_input == mutexp_output ) {\n SDK_RPRINT ( test , \"TSContMutexGet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSContMutexGet\" , \"TestCase1\" , TC_FAIL , \"Continutation's mutex corrupted\" ) ;\n }\n * pstatus = ( ( test_passed == true ) ? REGRESSION_TEST_PASSED : REGRESSION_TEST_FAILED ) ;\n TSContDestroy ( contp ) ;\n }"}
{"idx": 4506, "target": 0, "func": "int PyString_AsStringAndSize ( register PyObject * obj , register char * * s , register Py_ssize_t * len ) {\n if ( s == NULL ) {\n PyErr_BadInternalCall ( ) ;\n return - 1 ;\n }\n if ( ! PyString_Check ( obj ) ) {\n # ifdef Py_USING_UNICODE if ( PyUnicode_Check ( obj ) ) {\n obj = _PyUnicode_AsDefaultEncodedString ( obj , NULL ) ;\n if ( obj == NULL ) return - 1 ;\n }\n else # endif {\n PyErr_Format ( PyExc_TypeError , \"expected string or Unicode object, \" \"%.200s found\" , Py_TYPE ( obj ) -> tp_name ) ;\n return - 1 ;\n }\n }\n * s = PyString_AS_STRING ( obj ) ;\n if ( len != NULL ) * len = PyString_GET_SIZE ( obj ) ;\n else if ( strlen ( * s ) != ( size_t ) PyString_GET_SIZE ( obj ) ) {\n PyErr_SetString ( PyExc_TypeError , \"expected string without null bytes\" ) ;\n return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 4507, "target": 0, "func": "static void ppp_hdlc ( netdissect_options * ndo , const u_char * p , int length ) {\n u_char * b , * t , c ;\n const u_char * s ;\n int i , proto ;\n const void * se ;\n if ( length <= 0 ) return ;\n b = ( u_char * ) malloc ( length ) ;\n if ( b == NULL ) return ;\n for ( s = p , t = b , i = length ;\n i > 0 && ND_TTEST ( * s ) ;\n i -- ) {\n c = * s ++ ;\n if ( c == 0x7d ) {\n if ( i <= 1 || ! ND_TTEST ( * s ) ) break ;\n i -- ;\n c = * s ++ ^ 0x20 ;\n }\n * t ++ = c ;\n }\n se = ndo -> ndo_snapend ;\n ndo -> ndo_snapend = t ;\n length = t - b ;\n if ( length < 1 ) goto trunc ;\n proto = * b ;\n switch ( proto ) {\n case PPP_IP : ip_print ( ndo , b + 1 , length - 1 ) ;\n goto cleanup ;\n case PPP_IPV6 : ip6_print ( ndo , b + 1 , length - 1 ) ;\n goto cleanup ;\n default : break ;\n }\n if ( length < 2 ) goto trunc ;\n proto = EXTRACT_16BITS ( b ) ;\n switch ( proto ) {\n case ( PPP_ADDRESS << 8 | PPP_CONTROL ) : if ( length < 4 ) goto trunc ;\n proto = EXTRACT_16BITS ( b + 2 ) ;\n handle_ppp ( ndo , proto , b + 4 , length - 4 ) ;\n break ;\n default : handle_ppp ( ndo , proto , b + 2 , length - 2 ) ;\n break ;\n }\n cleanup : ndo -> ndo_snapend = se ;\n free ( b ) ;\n return ;\n trunc : ndo -> ndo_snapend = se ;\n free ( b ) ;\n ND_PRINT ( ( ndo , \"[|ppp]\" ) ) ;\n }"}
{"idx": 4508, "target": 0, "func": "static void main_get_appheader ( xd3_stream * stream , main_file * ifile , main_file * output , main_file * sfile ) {\n uint8_t * apphead ;\n usize_t appheadsz ;\n int ret ;\n if ( ! option_use_appheader ) {\n return ;\n }\n ret = xd3_get_appheader ( stream , & apphead , & appheadsz ) ;\n if ( ret != 0 ) {\n return ;\n }\n if ( appheadsz > 0 ) {\n const int kMaxArgs = 4 ;\n char * start = ( char * ) apphead ;\n char * slash ;\n int place = 0 ;\n char * parsed [ kMaxArgs ] ;\n memset ( parsed , 0 , sizeof ( parsed ) ) ;\n while ( ( slash = strchr ( start , '/' ) ) != NULL && place < ( kMaxArgs - 1 ) ) {\n * slash = 0 ;\n parsed [ place ++ ] = start ;\n start = slash + 1 ;\n }\n parsed [ place ++ ] = start ;\n if ( place == 2 || place == 4 ) {\n main_get_appheader_params ( output , parsed , 1 , \"output\" , ifile ) ;\n }\n if ( place == 4 ) {\n main_get_appheader_params ( sfile , parsed + 2 , 0 , \"source\" , ifile ) ;\n }\n }\n option_use_appheader = 0 ;\n return ;\n }"}
{"idx": 4509, "target": 0, "func": "static vpx_codec_err_t ctrl_set_static_thresh ( vpx_codec_alg_priv_t * ctx , va_list args ) {\n struct vp9_extracfg extra_cfg = ctx -> extra_cfg ;\n extra_cfg . static_thresh = CAST ( VP8E_SET_STATIC_THRESHOLD , args ) ;\n return update_extra_cfg ( ctx , & extra_cfg ) ;\n }"}
{"idx": 4510, "target": 0, "func": "int jbig2_decode_generic_mmr ( Jbig2Ctx * ctx , Jbig2Segment * segment , const Jbig2GenericRegionParams * params , const byte * data , size_t size , Jbig2Image * image ) {\n Jbig2MmrCtx mmr ;\n const uint32_t rowstride = image -> stride ;\n byte * dst = image -> data ;\n byte * ref = NULL ;\n uint32_t y ;\n int code = 0 ;\n jbig2_decode_mmr_init ( & mmr , image -> width , image -> height , data , size ) ;\n for ( y = 0 ;\n y < image -> height ;\n y ++ ) {\n memset ( dst , 0 , rowstride ) ;\n code = jbig2_decode_mmr_line ( & mmr , ref , dst ) ;\n if ( code < 0 ) return code ;\n ref = dst ;\n dst += rowstride ;\n }\n return code ;\n }"}
{"idx": 4511, "target": 0, "func": "proto_item * proto_tree_add_float_format ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , float value , const char * format , ... ) {\n proto_item * pi ;\n va_list ap ;\n pi = proto_tree_add_float ( tree , hfindex , tvb , start , length , value ) ;\n if ( pi != tree ) {\n TRY_TO_FAKE_THIS_REPR ( pi ) ;\n va_start ( ap , format ) ;\n proto_tree_set_representation ( pi , format , ap ) ;\n va_end ( ap ) ;\n }\n return pi ;\n }"}
{"idx": 4512, "target": 0, "func": "void _TIFFmemcpy ( tdata_t d , const tdata_t s , tsize_t c ) {\n memcpy ( d , s , ( size_t ) c ) ;\n }"}
{"idx": 4513, "target": 0, "func": "static cmsToneCurve * ReadSegmentedCurve ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io ) {\n cmsCurveSegSignature ElementSig ;\n cmsUInt32Number i , j ;\n cmsUInt16Number nSegments ;\n cmsCurveSegment * Segments ;\n cmsToneCurve * Curve ;\n cmsFloat32Number PrevBreak = - 1E22F ;\n if ( ! _cmsReadUInt32Number ( io , ( cmsUInt32Number * ) & ElementSig ) ) return NULL ;\n if ( ElementSig != cmsSigSegmentedCurve ) return NULL ;\n if ( ! _cmsReadUInt32Number ( io , NULL ) ) return NULL ;\n if ( ! _cmsReadUInt16Number ( io , & nSegments ) ) return NULL ;\n if ( ! _cmsReadUInt16Number ( io , NULL ) ) return NULL ;\n if ( nSegments < 1 ) return NULL ;\n Segments = ( cmsCurveSegment * ) _cmsCalloc ( self -> ContextID , nSegments , sizeof ( cmsCurveSegment ) ) ;\n if ( Segments == NULL ) return NULL ;\n for ( i = 0 ;\n i < ( cmsUInt32Number ) nSegments - 1 ;\n i ++ ) {\n Segments [ i ] . x0 = PrevBreak ;\n if ( ! _cmsReadFloat32Number ( io , & Segments [ i ] . x1 ) ) goto Error ;\n PrevBreak = Segments [ i ] . x1 ;\n }\n Segments [ nSegments - 1 ] . x0 = PrevBreak ;\n Segments [ nSegments - 1 ] . x1 = 1E22F ;\n for ( i = 0 ;\n i < nSegments ;\n i ++ ) {\n if ( ! _cmsReadUInt32Number ( io , ( cmsUInt32Number * ) & ElementSig ) ) goto Error ;\n if ( ! _cmsReadUInt32Number ( io , NULL ) ) goto Error ;\n switch ( ElementSig ) {\n case cmsSigFormulaCurveSeg : {\n cmsUInt16Number Type ;\n cmsUInt32Number ParamsByType [ ] = {\n 4 , 5 , 5 }\n ;\n if ( ! _cmsReadUInt16Number ( io , & Type ) ) goto Error ;\n if ( ! _cmsReadUInt16Number ( io , NULL ) ) goto Error ;\n Segments [ i ] . Type = Type + 6 ;\n if ( Type > 2 ) goto Error ;\n for ( j = 0 ;\n j < ParamsByType [ Type ] ;\n j ++ ) {\n cmsFloat32Number f ;\n if ( ! _cmsReadFloat32Number ( io , & f ) ) goto Error ;\n Segments [ i ] . Params [ j ] = f ;\n }\n }\n break ;\n case cmsSigSampledCurveSeg : {\n cmsUInt32Number Count ;\n if ( ! _cmsReadUInt32Number ( io , & Count ) ) return NULL ;\n Segments [ i ] . nGridPoints = Count ;\n Segments [ i ] . SampledPoints = ( cmsFloat32Number * ) _cmsCalloc ( self -> ContextID , Count , sizeof ( cmsFloat32Number ) ) ;\n if ( Segments [ i ] . SampledPoints == NULL ) goto Error ;\n for ( j = 0 ;\n j < Count ;\n j ++ ) {\n if ( ! _cmsReadFloat32Number ( io , & Segments [ i ] . SampledPoints [ j ] ) ) goto Error ;\n }\n }\n break ;\n default : {\n char String [ 5 ] ;\n _cmsTagSignature2String ( String , ( cmsTagSignature ) ElementSig ) ;\n cmsSignalError ( self -> ContextID , cmsERROR_UNKNOWN_EXTENSION , \"Unknown curve element type '%s' found.\" , String ) ;\n }\n return NULL ;\n }\n }\n Curve = cmsBuildSegmentedToneCurve ( self -> ContextID , nSegments , Segments ) ;\n for ( i = 0 ;\n i < nSegments ;\n i ++ ) {\n if ( Segments [ i ] . SampledPoints ) _cmsFree ( self -> ContextID , Segments [ i ] . SampledPoints ) ;\n }\n _cmsFree ( self -> ContextID , Segments ) ;\n return Curve ;\n Error : if ( Segments ) _cmsFree ( self -> ContextID , Segments ) ;\n return NULL ;\n }"}
{"idx": 4514, "target": 0, "func": "Oid get_op_opfamily_sortfamily ( Oid opno , Oid opfamily ) {\n HeapTuple tp ;\n Form_pg_amop amop_tup ;\n Oid result ;\n tp = SearchSysCache3 ( AMOPOPID , ObjectIdGetDatum ( opno ) , CharGetDatum ( AMOP_ORDER ) , ObjectIdGetDatum ( opfamily ) ) ;\n if ( ! HeapTupleIsValid ( tp ) ) return InvalidOid ;\n amop_tup = ( Form_pg_amop ) GETSTRUCT ( tp ) ;\n result = amop_tup -> amopsortfamily ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }"}
{"idx": 4515, "target": 0, "func": "TEST_F ( ProfileInfoCacheTest , ProfileActiveTime ) {\n GetCache ( ) -> AddProfileToCache ( GetProfilePath ( \"path_1\" ) , ASCIIToUTF16 ( \"name_1\" ) , base : : string16 ( ) , 0 , std : : string ( ) ) ;\n EXPECT_EQ ( base : : Time ( ) , GetCache ( ) -> GetProfileActiveTimeAtIndex ( 0 ) ) ;\n base : : Time before = base : : Time : : Now ( ) ;\n before -= base : : TimeDelta : : FromSeconds ( 1 ) ;\n GetCache ( ) -> SetProfileActiveTimeAtIndex ( 0 ) ;\n base : : Time after = base : : Time : : Now ( ) ;\n after += base : : TimeDelta : : FromSeconds ( 1 ) ;\n EXPECT_LE ( before , GetCache ( ) -> GetProfileActiveTimeAtIndex ( 0 ) ) ;\n EXPECT_GE ( after , GetCache ( ) -> GetProfileActiveTimeAtIndex ( 0 ) ) ;\n }"}
{"idx": 4516, "target": 0, "func": "static guint32 dissect_netb_unknown ( tvbuff_t * tvb , packet_info * pinfo , int offset , proto_tree * tree ) {\n proto_tree_add_expert ( tree , pinfo , & ei_netb_unknown_command_data , tvb , offset + NB_COMMAND + 1 , - 1 ) ;\n return 0 ;\n }"}
{"idx": 4517, "target": 0, "func": "int ff_rv34_decode_frame ( AVCodecContext * avctx , void * data , int * got_picture_ptr , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n RV34DecContext * r = avctx -> priv_data ;\n MpegEncContext * s = & r -> s ;\n AVFrame * pict = data ;\n SliceInfo si ;\n int i , ret ;\n int slice_count ;\n const uint8_t * slices_hdr = NULL ;\n int last = 0 ;\n if ( buf_size == 0 ) {\n if ( s -> low_delay == 0 && s -> next_picture_ptr ) {\n if ( ( ret = av_frame_ref ( pict , & s -> next_picture_ptr -> f ) ) < 0 ) return ret ;\n s -> next_picture_ptr = NULL ;\n * got_picture_ptr = 1 ;\n }\n return 0 ;\n }\n if ( ! avctx -> slice_count ) {\n slice_count = ( * buf ++ ) + 1 ;\n slices_hdr = buf + 4 ;\n buf += 8 * slice_count ;\n buf_size -= 1 + 8 * slice_count ;\n }\n else slice_count = avctx -> slice_count ;\n if ( get_slice_offset ( avctx , slices_hdr , 0 ) < 0 || get_slice_offset ( avctx , slices_hdr , 0 ) > buf_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"Slice offset is invalid\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n init_get_bits ( & s -> gb , buf + get_slice_offset ( avctx , slices_hdr , 0 ) , ( buf_size - get_slice_offset ( avctx , slices_hdr , 0 ) ) * 8 ) ;\n if ( r -> parse_slice_header ( r , & r -> s . gb , & si ) < 0 || si . start ) {\n av_log ( avctx , AV_LOG_ERROR , \"First slice header is incorrect\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ( ! s -> last_picture_ptr || ! s -> last_picture_ptr -> f . data [ 0 ] ) && si . type == AV_PICTURE_TYPE_B ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid decoder state: B-frame without \" \"reference data.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ( avctx -> skip_frame >= AVDISCARD_NONREF && si . type == AV_PICTURE_TYPE_B ) || ( avctx -> skip_frame >= AVDISCARD_NONKEY && si . type != AV_PICTURE_TYPE_I ) || avctx -> skip_frame >= AVDISCARD_ALL ) return avpkt -> size ;\n if ( si . start == 0 ) {\n if ( s -> mb_num_left > 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"New frame but still %d MB left.\" , s -> mb_num_left ) ;\n ff_er_frame_end ( & s -> er ) ;\n ff_MPV_frame_end ( s ) ;\n }\n if ( s -> width != si . width || s -> height != si . height ) {\n int err ;\n av_log ( s -> avctx , AV_LOG_WARNING , \"Changing dimensions to %dx%d\\n\" , si . width , si . height ) ;\n s -> width = si . width ;\n s -> height = si . height ;\n avcodec_set_dimensions ( s -> avctx , s -> width , s -> height ) ;\n if ( ( err = ff_MPV_common_frame_size_change ( s ) ) < 0 ) return err ;\n if ( ( err = rv34_decoder_realloc ( r ) ) < 0 ) return err ;\n }\n s -> pict_type = si . type ? si . type : AV_PICTURE_TYPE_I ;\n if ( ff_MPV_frame_start ( s , s -> avctx ) < 0 ) return - 1 ;\n ff_mpeg_er_frame_start ( s ) ;\n if ( ! r -> tmp_b_block_base ) {\n int i ;\n r -> tmp_b_block_base = av_malloc ( s -> linesize * 48 ) ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) r -> tmp_b_block_y [ i ] = r -> tmp_b_block_base + i * 16 * s -> linesize ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) r -> tmp_b_block_uv [ i ] = r -> tmp_b_block_base + 32 * s -> linesize + ( i >> 1 ) * 8 * s -> uvlinesize + ( i & 1 ) * 16 ;\n }\n r -> cur_pts = si . pts ;\n if ( s -> pict_type != AV_PICTURE_TYPE_B ) {\n r -> last_pts = r -> next_pts ;\n r -> next_pts = r -> cur_pts ;\n }\n else {\n int refdist = GET_PTS_DIFF ( r -> next_pts , r -> last_pts ) ;\n int dist0 = GET_PTS_DIFF ( r -> cur_pts , r -> last_pts ) ;\n int dist1 = GET_PTS_DIFF ( r -> next_pts , r -> cur_pts ) ;\n if ( ! refdist ) {\n r -> mv_weight1 = r -> mv_weight2 = r -> weight1 = r -> weight2 = 8192 ;\n r -> scaled_weight = 0 ;\n }\n else {\n r -> mv_weight1 = ( dist0 << 14 ) / refdist ;\n r -> mv_weight2 = ( dist1 << 14 ) / refdist ;\n if ( ( r -> mv_weight1 | r -> mv_weight2 ) & 511 ) {\n r -> weight1 = r -> mv_weight1 ;\n r -> weight2 = r -> mv_weight2 ;\n r -> scaled_weight = 0 ;\n }\n else {\n r -> weight1 = r -> mv_weight1 >> 9 ;\n r -> weight2 = r -> mv_weight2 >> 9 ;\n r -> scaled_weight = 1 ;\n }\n }\n }\n s -> mb_x = s -> mb_y = 0 ;\n ff_thread_finish_setup ( s -> avctx ) ;\n }\n else if ( HAVE_THREADS && ( s -> avctx -> active_thread_type & FF_THREAD_FRAME ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Decoder needs full frames in frame \" \"multithreading mode (start MB is %d).\\n\" , si . start ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( i = 0 ;\n i < slice_count ;\n i ++ ) {\n int offset = get_slice_offset ( avctx , slices_hdr , i ) ;\n int size ;\n if ( i + 1 == slice_count ) size = buf_size - offset ;\n else size = get_slice_offset ( avctx , slices_hdr , i + 1 ) - offset ;\n if ( offset < 0 || offset > buf_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"Slice offset is invalid\\n\" ) ;\n break ;\n }\n r -> si . end = s -> mb_width * s -> mb_height ;\n s -> mb_num_left = r -> s . mb_x + r -> s . mb_y * r -> s . mb_width - r -> si . start ;\n if ( i + 1 < slice_count ) {\n if ( get_slice_offset ( avctx , slices_hdr , i + 1 ) < 0 || get_slice_offset ( avctx , slices_hdr , i + 1 ) > buf_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"Slice offset is invalid\\n\" ) ;\n break ;\n }\n init_get_bits ( & s -> gb , buf + get_slice_offset ( avctx , slices_hdr , i + 1 ) , ( buf_size - get_slice_offset ( avctx , slices_hdr , i + 1 ) ) * 8 ) ;\n if ( r -> parse_slice_header ( r , & r -> s . gb , & si ) < 0 ) {\n if ( i + 2 < slice_count ) size = get_slice_offset ( avctx , slices_hdr , i + 2 ) - offset ;\n else size = buf_size - offset ;\n }\n else r -> si . end = si . start ;\n }\n if ( size < 0 || size > buf_size - offset ) {\n av_log ( avctx , AV_LOG_ERROR , \"Slice size is invalid\\n\" ) ;\n break ;\n }\n last = rv34_decode_slice ( r , r -> si . end , buf + offset , size ) ;\n if ( last ) break ;\n }\n if ( s -> current_picture_ptr ) {\n if ( last ) {\n if ( r -> loop_filter ) r -> loop_filter ( r , s -> mb_height - 1 ) ;\n ret = finish_frame ( avctx , pict ) ;\n if ( ret < 0 ) return ret ;\n * got_picture_ptr = ret ;\n }\n else if ( HAVE_THREADS && ( s -> avctx -> active_thread_type & FF_THREAD_FRAME ) ) {\n av_log ( avctx , AV_LOG_INFO , \"marking unfished frame as finished\\n\" ) ;\n ff_er_frame_end ( & s -> er ) ;\n ff_MPV_frame_end ( s ) ;\n s -> mb_num_left = 0 ;\n ff_thread_report_progress ( & s -> current_picture_ptr -> tf , INT_MAX , 0 ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n return avpkt -> size ;\n }"}
{"idx": 4518, "target": 0, "func": "static void dissect_rtp_hdr_ext_ed137 ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree ) {\n unsigned int offset = 0 ;\n unsigned int hdr_extension_len = 0 ;\n proto_item * ti = NULL ;\n proto_item * ti2 = NULL ;\n proto_tree * rtp_hext_tree = NULL ;\n proto_tree * rtp_hext_tree2 = NULL ;\n unsigned int i ;\n guint32 ext_value ;\n unsigned int ft_type = 0 ;\n unsigned int bss_qidx = 0 ;\n unsigned int bss_qidx_ml = 0 ;\n hdr_extension_len = tvb_reported_length ( tvb ) / 4 ;\n if ( hdr_extension_len > 0 ) {\n unsigned int hdrext_offset = 0 ;\n if ( tree ) {\n ti = proto_tree_add_item ( tree , hf_rtp_hdr_ed137s , tvb , offset , hdr_extension_len * 4 , ENC_NA ) ;\n rtp_hext_tree = proto_item_add_subtree ( ti , ett_hdr_ext_ed137s ) ;\n }\n for ( i = 0 ;\n i < hdr_extension_len ;\n i ++ ) {\n if ( tree ) {\n ti2 = proto_tree_add_item ( rtp_hext_tree , hf_rtp_hdr_ed137 , tvb , hdrext_offset , 4 , ENC_NA ) ;\n rtp_hext_tree2 = proto_item_add_subtree ( ti2 , ett_hdr_ext_ed137 ) ;\n ext_value = tvb_get_ntohl ( tvb , hdrext_offset ) ;\n if ( RTP_ED137_ptt_mask ( ext_value ) ) {\n col_append_str ( pinfo -> cinfo , COL_INFO , \", PTT\" ) ;\n }\n if ( RTP_ED137_squ_mask ( ext_value ) ) {\n col_append_str ( pinfo -> cinfo , COL_INFO , \", SQU\" ) ;\n }\n proto_tree_add_item ( rtp_hext_tree2 , hf_rtp_hdr_ed137_ptt_type , tvb , hdrext_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rtp_hext_tree2 , hf_rtp_hdr_ed137_squ , tvb , hdrext_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rtp_hext_tree2 , hf_rtp_hdr_ed137_ptt_id , tvb , hdrext_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rtp_hext_tree2 , hf_rtp_hdr_ed137_sct , tvb , hdrext_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rtp_hext_tree2 , hf_rtp_hdr_ed137_x , tvb , hdrext_offset , 4 , ENC_BIG_ENDIAN ) ;\n if ( RTP_ED137_extended_information ( ext_value ) ) {\n proto_tree_add_item ( rtp_hext_tree2 , hf_rtp_hdr_ed137_ft_type , tvb , hdrext_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rtp_hext_tree2 , hf_rtp_hdr_ed137_ft_len , tvb , hdrext_offset , 4 , ENC_BIG_ENDIAN ) ;\n ft_type = RTP_ED137_feature_type ( ext_value ) ;\n switch ( ft_type ) {\n case RTP_ED137_feature_bss_type : bss_qidx = RTP_ED137_feature_bss_qidx ( ext_value ) ;\n bss_qidx_ml = RTP_ED137_feature_bss_qidx_ml ( ext_value ) ;\n if ( 0 == bss_qidx_ml ) {\n if ( bss_qidx <= 15 ) {\n proto_tree_add_item ( rtp_hext_tree2 , hf_rtp_hdr_ed137_ft_bss_rssi_qidx , tvb , hdrext_offset , 4 , ENC_BIG_ENDIAN ) ;\n }\n else {\n proto_tree_add_item ( rtp_hext_tree2 , hf_rtp_hdr_ed137_ft_bss_qidx , tvb , hdrext_offset , 4 , ENC_BIG_ENDIAN ) ;\n }\n }\n else {\n proto_tree_add_item ( rtp_hext_tree2 , hf_rtp_hdr_ed137_ft_bss_qidx , tvb , hdrext_offset , 4 , ENC_BIG_ENDIAN ) ;\n }\n proto_tree_add_item ( rtp_hext_tree2 , hf_rtp_hdr_ed137_ft_bss_qidx_ml , tvb , hdrext_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rtp_hext_tree2 , hf_rtp_hdr_ed137_ft_bss_nu , tvb , hdrext_offset , 4 , ENC_BIG_ENDIAN ) ;\n break ;\n default : proto_tree_add_item ( rtp_hext_tree2 , hf_rtp_hdr_ed137_ft_value , tvb , hdrext_offset , 4 , ENC_BIG_ENDIAN ) ;\n break ;\n }\n }\n else {\n proto_tree_add_item ( rtp_hext_tree2 , hf_rtp_hdr_ed137_x_nu , tvb , hdrext_offset , 4 , ENC_BIG_ENDIAN ) ;\n }\n proto_tree_add_item ( rtp_hext_tree2 , hf_rtp_hdr_ed137_vf , tvb , hdrext_offset , 4 , ENC_BIG_ENDIAN ) ;\n }\n hdrext_offset += 4 ;\n }\n }\n }"}
{"idx": 4519, "target": 0, "func": "static void switch_time_zone ( FILE * sql_file , const char * delimiter , const char * time_zone ) {\n fprintf ( sql_file , \"/*!50003 SET @saved_time_zone = @@time_zone */ %s\\n\" \"/*!50003 SET time_zone = '%s' */ %s\\n\" , ( const char * ) delimiter , ( const char * ) time_zone , ( const char * ) delimiter ) ;\n }"}
{"idx": 4520, "target": 0, "func": "static int rawv6_probe_proto_opt ( struct flowi * fl , struct msghdr * msg ) {\n struct iovec * iov ;\n u8 __user * type = NULL ;\n u8 __user * code = NULL ;\n u8 len = 0 ;\n int probed = 0 ;\n int i ;\n if ( ! msg -> msg_iov ) return 0 ;\n for ( i = 0 ;\n i < msg -> msg_iovlen ;\n i ++ ) {\n iov = & msg -> msg_iov [ i ] ;\n if ( ! iov ) continue ;\n switch ( fl -> proto ) {\n case IPPROTO_ICMPV6 : if ( iov -> iov_base && iov -> iov_len < 1 ) break ;\n if ( ! type ) {\n type = iov -> iov_base ;\n if ( iov -> iov_len > 1 ) code = type + 1 ;\n }\n else if ( ! code ) code = iov -> iov_base ;\n if ( type && code ) {\n if ( get_user ( fl -> fl_icmp_type , type ) || get_user ( fl -> fl_icmp_code , code ) ) return - EFAULT ;\n probed = 1 ;\n }\n break ;\n case IPPROTO_MH : if ( iov -> iov_base && iov -> iov_len < 1 ) break ;\n if ( iov -> iov_len > 2 - len ) {\n u8 __user * p = iov -> iov_base ;\n if ( get_user ( fl -> fl_mh_type , & p [ 2 - len ] ) ) return - EFAULT ;\n probed = 1 ;\n }\n else len += iov -> iov_len ;\n break ;\n default : probed = 1 ;\n break ;\n }\n if ( probed ) break ;\n }\n return 0 ;\n }"}
{"idx": 4521, "target": 0, "func": "static void test_read_format_mtree3 ( void ) {\n static char archive [ ] = \"#mtree\\n\" \"a type=file contents=file\\n\" \"b type=link link=a\\n\" \"c type=file contents=file\\n\" ;\n struct archive_entry * ae ;\n struct archive * a ;\n assertMakeDir ( \"mtree3\" , 0777 ) ;\n assertChdir ( \"mtree3\" ) ;\n assertMakeFile ( \"file\" , 0644 , \"file contents\" ) ;\n assert ( ( a = archive_read_new ( ) ) != NULL ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_support_filter_all ( a ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_support_format_all ( a ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_set_options ( a , \"mtree:checkfs\" ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_open_memory ( a , archive , sizeof ( archive ) ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"a\" ) ;\n assertEqualInt ( archive_entry_filetype ( ae ) , AE_IFREG ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"b\" ) ;\n assertEqualInt ( archive_entry_filetype ( ae ) , AE_IFLNK ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"c\" ) ;\n assertEqualInt ( archive_entry_filetype ( ae ) , AE_IFREG ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_EOF , archive_read_next_header ( a , & ae ) ) ;\n assertEqualInt ( 3 , archive_file_count ( a ) ) ;\n assertEqualInt ( ARCHIVE_OK , archive_read_close ( a ) ) ;\n assertEqualInt ( ARCHIVE_OK , archive_read_free ( a ) ) ;\n assertChdir ( \"..\" ) ;\n }"}
{"idx": 4522, "target": 1, "func": "static void init_mv ( FourXContext * f ) {\n int i ;\n for ( i = 0 ;\n i < 256 ;\n i ++ ) {\n if ( f -> version > 1 ) f -> mv [ i ] = mv [ i ] [ 0 ] + mv [ i ] [ 1 ] * f -> current_picture -> linesize [ 0 ] / 2 ;\n else f -> mv [ i ] = ( i & 15 ) - 8 + ( ( i >> 4 ) - 8 ) * f -> current_picture -> linesize [ 0 ] / 2 ;\n }\n }"}
{"idx": 4523, "target": 0, "func": "int _evsignal_set_handler ( struct event_base * base , int evsignal , void ( * handler ) ( int ) ) {\n # ifdef HAVE_SIGACTION struct sigaction sa ;\n # else ev_sighandler_t sh ;\n # endif struct evsignal_info * sig = & base -> sig ;\n void * p ;\n if ( evsignal >= sig -> sh_old_max ) {\n int new_max = evsignal + 1 ;\n event_debug ( ( \"%s: evsignal (%d) >= sh_old_max (%d), resizing\" , __func__ , evsignal , sig -> sh_old_max ) ) ;\n p = realloc ( sig -> sh_old , new_max * sizeof ( * sig -> sh_old ) ) ;\n if ( p == NULL ) {\n event_warn ( \"realloc\" ) ;\n return ( - 1 ) ;\n }\n memset ( ( char * ) p + sig -> sh_old_max * sizeof ( * sig -> sh_old ) , 0 , ( new_max - sig -> sh_old_max ) * sizeof ( * sig -> sh_old ) ) ;\n sig -> sh_old_max = new_max ;\n sig -> sh_old = p ;\n }\n sig -> sh_old [ evsignal ] = malloc ( sizeof * sig -> sh_old [ evsignal ] ) ;\n if ( sig -> sh_old [ evsignal ] == NULL ) {\n event_warn ( \"malloc\" ) ;\n return ( - 1 ) ;\n }\n # ifdef HAVE_SIGACTION memset ( & sa , 0 , sizeof ( sa ) ) ;\n sa . sa_handler = handler ;\n sa . sa_flags |= SA_RESTART ;\n sigfillset ( & sa . sa_mask ) ;\n if ( sigaction ( evsignal , & sa , sig -> sh_old [ evsignal ] ) == - 1 ) {\n event_warn ( \"sigaction\" ) ;\n free ( sig -> sh_old [ evsignal ] ) ;\n sig -> sh_old [ evsignal ] = NULL ;\n return ( - 1 ) ;\n }\n # else if ( ( sh = signal ( evsignal , handler ) ) == SIG_ERR ) {\n event_warn ( \"signal\" ) ;\n free ( sig -> sh_old [ evsignal ] ) ;\n sig -> sh_old [ evsignal ] = NULL ;\n return ( - 1 ) ;\n }\n * sig -> sh_old [ evsignal ] = sh ;\n # endif return ( 0 ) ;\n }"}
{"idx": 4524, "target": 0, "func": "static void update_duplicate_context_after_me ( MpegEncContext * dst , MpegEncContext * src ) {\n # define COPY ( a ) dst -> a = src -> a COPY ( pict_type ) ;\n COPY ( current_picture ) ;\n COPY ( f_code ) ;\n COPY ( b_code ) ;\n COPY ( qscale ) ;\n COPY ( lambda ) ;\n COPY ( lambda2 ) ;\n COPY ( picture_in_gop_number ) ;\n COPY ( gop_picture_number ) ;\n COPY ( frame_pred_frame_dct ) ;\n COPY ( progressive_frame ) ;\n COPY ( partitioned_frame ) ;\n # undef COPY }"}
{"idx": 4525, "target": 0, "func": "static void read_object_list_from_stdin ( void ) {\n char line [ 40 + 1 + PATH_MAX + 2 ] ;\n unsigned char sha1 [ 20 ] ;\n for ( ;\n ;\n ) {\n if ( ! fgets ( line , sizeof ( line ) , stdin ) ) {\n if ( feof ( stdin ) ) break ;\n if ( ! ferror ( stdin ) ) die ( \"fgets returned NULL, not EOF, not error!\" ) ;\n if ( errno != EINTR ) die_errno ( \"fgets\" ) ;\n clearerr ( stdin ) ;\n continue ;\n }\n if ( line [ 0 ] == '-' ) {\n if ( get_sha1_hex ( line + 1 , sha1 ) ) die ( \"expected edge sha1, got garbage:\\n %s\" , line ) ;\n add_preferred_base ( sha1 ) ;\n continue ;\n }\n if ( get_sha1_hex ( line , sha1 ) ) die ( \"expected sha1, got garbage:\\n %s\" , line ) ;\n add_preferred_base_object ( line + 41 ) ;\n add_object_entry ( sha1 , 0 , line + 41 , 0 ) ;\n }\n }"}
{"idx": 4526, "target": 0, "func": "static void mime_list_cancel ( NautilusDirectory * directory ) {\n if ( directory -> details -> mime_list_in_progress != NULL ) {\n g_cancellable_cancel ( directory -> details -> mime_list_in_progress -> cancellable ) ;\n }\n }"}
{"idx": 4527, "target": 0, "func": "static guint16 de_ca_of_no_cli ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string , int string_len ) {\n guint32 curr_offset ;\n guint8 oct ;\n curr_offset = offset ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n proto_tree_add_uint_format_value ( tree , hf_gsm_a_dtap_cause_of_no_cli , tvb , curr_offset , 1 , oct , \"%s (%u)\" , val_to_str_const ( oct , gsm_a_cause_of_no_cli_values , \"Unavailable\" ) , oct ) ;\n curr_offset ++ ;\n if ( add_string ) g_snprintf ( add_string , string_len , \" - (%s)\" , val_to_str_const ( oct , gsm_a_cause_of_no_cli_values , \"Unavailable\" ) ) ;\n EXTRANEOUS_DATA_CHECK ( len , curr_offset - offset , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n return ( len ) ;\n }"}
{"idx": 4528, "target": 0, "func": "static inline int get_value ( BinkContext * c , int bundle ) {\n int ret ;\n if ( bundle < BINK_SRC_X_OFF || bundle == BINK_SRC_RUN ) return * c -> bundle [ bundle ] . cur_ptr ++ ;\n if ( bundle == BINK_SRC_X_OFF || bundle == BINK_SRC_Y_OFF ) return ( int8_t ) * c -> bundle [ bundle ] . cur_ptr ++ ;\n ret = * ( int16_t * ) c -> bundle [ bundle ] . cur_ptr ;\n c -> bundle [ bundle ] . cur_ptr += 2 ;\n return ret ;\n }"}
{"idx": 4529, "target": 0, "func": "static double get_zero_motion_factor ( const VP9_COMMON * cm , const FIRSTPASS_STATS * frame ) {\n const double zero_motion_pct = frame -> pcnt_inter - frame -> pcnt_motion ;\n double sr_decay = get_sr_decay_rate ( cm , frame ) ;\n return MIN ( sr_decay , zero_motion_pct ) ;\n }"}
{"idx": 4530, "target": 0, "func": "void key_type_put ( struct key_type * ktype ) {\n up_read ( & key_types_sem ) ;\n }"}
{"idx": 4531, "target": 1, "func": "void proto_register_iax2 ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_iax2_packet_type , {\n \"Packet type\" , \"iax2.packet_type\" , FT_UINT8 , BASE_DEC , VALS ( iax_packet_types ) , 0 , \"Full/minivoice/minivideo/trunk packet\" , HFILL }\n }\n , {\n & hf_iax2_callno , {\n \"Call identifier\" , \"iax2.call\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"This is the identifier Wireshark assigns to identify this call.\" \" It does not correspond to any real field in the protocol\" , HFILL }\n }\n , {\n & hf_iax2_scallno , {\n \"Source call\" , \"iax2.src_call\" , FT_UINT16 , BASE_DEC , NULL , 0x7FFF , \"src_call holds the number of this call at the packet source pbx\" , HFILL }\n }\n , {\n & hf_iax2_dcallno , {\n \"Destination call\" , \"iax2.dst_call\" , FT_UINT16 , BASE_DEC , NULL , 0x7FFF , \"dst_call holds the number of this call at the packet destination\" , HFILL }\n }\n , {\n & hf_iax2_retransmission , {\n \"Retransmission\" , \"iax2.retransmission\" , FT_BOOLEAN , 16 , NULL , 0x8000 , \"retransmission is set if this packet is a retransmission of an earlier failed packet\" , HFILL }\n }\n , {\n & hf_iax2_ts , {\n \"Timestamp\" , \"iax2.timestamp\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"timestamp is the time, in ms after the start of this call, at which this packet was transmitted\" , HFILL }\n }\n , {\n & hf_iax2_minits , {\n \"Timestamp\" , \"iax2.timestamp\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"timestamp is the time, in ms after the start of this call, at which this packet was transmitted\" , HFILL }\n }\n , {\n & hf_iax2_minividts , {\n \"Timestamp\" , \"iax2.timestamp\" , FT_UINT16 , BASE_DEC , NULL , 0x7FFF , \"timestamp is the time, in ms after the start of this call, at which this packet was transmitted\" , HFILL }\n }\n , {\n & hf_iax2_absts , {\n \"Absolute Time\" , \"iax2.abstime\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_LOCAL , NULL , 0x0 , \"The absolute time of this packet (calculated by adding the IAX timestamp to the start time of this call)\" , HFILL }\n }\n , {\n & hf_iax2_lateness , {\n \"Lateness\" , \"iax2.lateness\" , FT_RELATIVE_TIME , BASE_NONE , NULL , 0x0 , \"The lateness of this packet compared to its timestamp\" , HFILL }\n }\n , {\n & hf_iax2_minividmarker , {\n \"Marker\" , \"iax2.video.marker\" , FT_UINT16 , BASE_DEC , NULL , 0x8000 , \"RTP end-of-frame marker\" , HFILL }\n }\n , {\n & hf_iax2_oseqno , {\n \"Outbound seq.no.\" , \"iax2.oseqno\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"oseqno is the sequence no of this packet. The first packet has oseqno==0,\" \" and subsequent packets increment the oseqno by 1\" , HFILL }\n }\n , {\n & hf_iax2_iseqno , {\n \"Inbound seq.no.\" , \"iax2.iseqno\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"iseqno is the sequence no of the last successfully received packet\" , HFILL }\n }\n , {\n & hf_iax2_type , {\n \"Type\" , \"iax2.type\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & iax_frame_types_ext , 0x0 , \"For full IAX2 frames, type is the type of frame\" , HFILL }\n }\n , {\n & hf_iax2_csub , {\n \"Unknown subclass\" , \"iax2.subclass\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , \"Subclass of unknown type of full IAX2 frame\" , HFILL }\n }\n , {\n & hf_iax2_dtmf_csub , {\n \"DTMF subclass (digit)\" , \"iax2.dtmf.subclass\" , FT_STRINGZ , BASE_NONE , NULL , 0x0 , \"DTMF subclass gives the DTMF digit\" , HFILL }\n }\n , {\n & hf_iax2_cmd_csub , {\n \"Control subclass\" , \"iax2.control.subclass\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & iax_cmd_subclasses_ext , 0x0 , \"This gives the command number for a Control packet.\" , HFILL }\n }\n , {\n & hf_iax2_iax_csub , {\n \"IAX subclass\" , \"iax2.iax.subclass\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & iax_iax_subclasses_ext , 0x0 , \"IAX subclass gives the command number for IAX signaling packets\" , HFILL }\n }\n , {\n & hf_iax2_voice_csub , {\n \"Voice Subclass (compressed codec no)\" , \"iax2.voice.subclass\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_voice_codec , {\n \"CODEC\" , \"iax2.voice.codec\" , FT_UINT32 , BASE_HEX | BASE_EXT_STRING , & codec_types_ext , 0x0 , \"CODEC gives the codec used to encode audio data\" , HFILL }\n }\n , {\n & hf_iax2_video_csub , {\n \"Video Subclass (compressed codec no)\" , \"iax2.video.subclass\" , FT_UINT8 , BASE_DEC , NULL , 0xBF , NULL , HFILL }\n }\n , {\n & hf_iax2_marker , {\n \"Marker\" , \"iax2.video.marker\" , FT_BOOLEAN , 8 , NULL , 0x40 , \"RTP end-of-frame marker\" , HFILL }\n }\n , {\n & hf_iax2_video_codec , {\n \"CODEC\" , \"iax2.video.codec\" , FT_UINT32 , BASE_HEX | BASE_EXT_STRING , & codec_types_ext , 0 , \"The codec used to encode video data\" , HFILL }\n }\n , {\n & hf_iax2_modem_csub , {\n \"Modem subclass\" , \"iax2.modem.subclass\" , FT_UINT8 , BASE_DEC , VALS ( iax_modem_subclasses ) , 0x0 , \"Modem subclass gives the type of modem\" , HFILL }\n }\n , {\n & hf_iax2_text_csub , {\n \"Text subclass\" , \"iax2.text.subclass\" , FT_UINT8 , BASE_DEC , VALS ( iax_text_subclasses ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_text_text , {\n \"Text\" , \"iax2.text.text\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_html_csub , {\n \"HTML subclass\" , \"iax2.html.subclass\" , FT_UINT8 , BASE_DEC , VALS ( iax_html_subclasses ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_html_url , {\n \"HTML URL\" , \"iax2.html.url\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_trunk_ts , {\n \"Timestamp\" , \"iax2.timestamp\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"timestamp is the time, in ms after the start of Command data this call,\" \" at which this trunk packet was transmitted\" , HFILL }\n }\n , {\n & hf_iax2_trunk_metacmd , {\n \"Meta command\" , \"iax2.trunk.metacmd\" , FT_UINT8 , BASE_DEC , NULL , 0x7F , \"Meta command indicates whether or not the Meta Frame is a trunk.\" , HFILL }\n }\n , {\n & hf_iax2_trunk_cmddata , {\n \"Command data\" , \"iax2.trunk.cmddata\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , \"Flags for options that apply to a trunked call\" , HFILL }\n }\n , {\n & hf_iax2_trunk_cmddata_ts , {\n \"Trunk timestamps\" , \"iax2.trunk.cmddata.ts\" , FT_BOOLEAN , 8 , NULL , IAX2_TRUNK_TS , \"True: calls do each include their own timestamp\" , HFILL }\n }\n , {\n & hf_iax2_trunk_call_len , {\n \"Data length\" , \"iax2.trunk.call.len\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Trunk call data length in octets\" , HFILL }\n }\n , {\n & hf_iax2_trunk_call_scallno , {\n \"Source call number\" , \"iax2.trunk.call.scallno\" , FT_UINT16 , BASE_DEC , NULL , 0x7FFF , \"Trunk call source call number\" , HFILL }\n }\n , {\n & hf_iax2_trunk_call_ts , {\n \"Timestamp\" , \"iax2.trunk.call.ts\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"timestamp is the time, in ms after the start of this call, at which this packet was transmitted\" , HFILL }\n }\n , {\n & hf_iax2_trunk_call_data , {\n \"Data\" , \"iax2.trunk.call.payload\" , FT_BYTES , BASE_NONE , NULL , 0x0 , \"Payload carried by this trunked packet.\" , HFILL }\n }\n , {\n & hf_iax2_trunk_ncalls , {\n \"Number of calls\" , \"iax2.trunk.ncalls\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Number of calls in this trunk packet\" , HFILL }\n }\n , {\n & hf_IAX_IE_APPARENTADDR_SINFAMILY , {\n \"Family\" , \"iax2.iax.app_addr.sinfamily\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_IAX_IE_APPARENTADDR_SINPORT , {\n \"Port\" , \"iax2.iax.app_addr.sinport\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_IAX_IE_APPARENTADDR_SINADDR , {\n \"Address\" , \"iax2.iax.app_addr.sinaddr\" , FT_IPv4 , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_CALLED_NUMBER ] , {\n \"Number/extension being called\" , \"iax2.iax.called_number\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_CALLING_NUMBER ] , {\n \"Calling number\" , \"iax2.iax.calling_number\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_CALLING_ANI ] , {\n \"Calling number ANI for billing\" , \"iax2.iax.calling_ani\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_CALLING_NAME ] , {\n \"Name of caller\" , \"iax2.iax.calling_name\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_CALLED_CONTEXT ] , {\n \"Context for number\" , \"iax2.iax.called_context\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_USERNAME ] , {\n \"Username (peer or user) for authentication\" , \"iax2.iax.username\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_PASSWORD ] , {\n \"Password for authentication\" , \"iax2.iax.password\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_CAPABILITY ] , {\n \"Actual codec capability\" , \"iax2.iax.capability\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_FORMAT ] , {\n \"Desired codec format\" , \"iax2.iax.format\" , FT_UINT32 , BASE_HEX | BASE_EXT_STRING , & codec_types_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_LANGUAGE ] , {\n \"Desired language\" , \"iax2.iax.language\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_VERSION ] , {\n \"Protocol version\" , \"iax2.iax.version\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_ADSICPE ] , {\n \"CPE ADSI capability\" , \"iax2.iax.cpe_adsi\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_DNID ] , {\n \"Originally dialed DNID\" , \"iax2.iax.dnid\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_AUTHMETHODS ] , {\n \"Authentication method(s)\" , \"iax2.iax.auth.methods\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_CHALLENGE ] , {\n \"Challenge data for MD5/RSA\" , \"iax2.iax.auth.challenge\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_MD5_RESULT ] , {\n \"MD5 challenge result\" , \"iax2.iax.auth.md5\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_RSA_RESULT ] , {\n \"RSA challenge result\" , \"iax2.iax.auth.rsa\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_REFRESH ] , {\n \"When to refresh registration\" , \"iax2.iax.refresh\" , FT_INT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_DPSTATUS ] , {\n \"Dialplan status\" , \"iax2.iax.dialplan_status\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_CALLNO ] , {\n \"Call number of peer\" , \"iax2.iax.call_no\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_CAUSE ] , {\n \"Cause\" , \"iax2.iax.cause\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_IAX_UNKNOWN ] , {\n \"Unknown IAX command\" , \"iax2.iax.iax_unknown\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_MSGCOUNT ] , {\n \"How many messages waiting\" , \"iax2.iax.msg_count\" , FT_INT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_AUTOANSWER ] , {\n \"Request auto-answering\" , \"iax2.iax.autoanswer\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_MUSICONHOLD ] , {\n \"Request musiconhold with QUELCH\" , \"iax2.iax.moh\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_TRANSFERID ] , {\n \"Transfer Request Identifier\" , \"iax2.iax.transferid\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_RDNIS ] , {\n \"Referring DNIS\" , \"iax2.iax.rdnis\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_PROVISIONING ] , {\n \"Provisioning info\" , \"iax2.iax.provisioning\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_AESPROVISIONING ] , {\n \"AES Provisioning info\" , \"iax2.iax.aesprovisioning\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_DATETIME ] , {\n \"Date/Time\" , \"iax2.iax.datetime.raw\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ie_datetime , {\n \"Date/Time\" , \"iax2.iax.datetime\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_LOCAL , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_DEVICETYPE ] , {\n \"Device type\" , \"iax2.iax.devicetype\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_SERVICEIDENT ] , {\n \"Service identifier\" , \"iax2.iax.serviceident\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_FIRMWAREVER ] , {\n \"Firmware version\" , \"iax2.iax.firmwarever\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_FWBLOCKDESC ] , {\n \"Firmware block description\" , \"iax2.iax.fwblockdesc\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_FWBLOCKDATA ] , {\n \"Firmware block of data\" , \"iax2.iax.fwblockdata\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_PROVVER ] , {\n \"Provisioning version\" , \"iax2.iax.provver\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_CALLINGPRES ] , {\n \"Calling presentation\" , \"iax2.iax.callingpres\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_CALLINGTON ] , {\n \"Calling type of number\" , \"iax2.iax.callington\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_CALLINGTNS ] , {\n \"Calling transit network select\" , \"iax2.iax.callingtns\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_SAMPLINGRATE ] , {\n \"Supported sampling rates\" , \"iax2.iax.samplingrate\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_CAUSECODE ] , {\n \"Hangup cause\" , \"iax2.iax.causecode\" , FT_UINT8 , BASE_HEX | BASE_EXT_STRING , & iax_causecodes_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_ENCRYPTION ] , {\n \"Encryption format\" , \"iax2.iax.encryption\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_ENCKEY ] , {\n \"Encryption key\" , \"iax2.iax.enckey\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_CODEC_PREFS ] , {\n \"Codec negotiation\" , \"iax2.iax.codecprefs\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_RR_JITTER ] , {\n \"Received jitter (as in RFC1889)\" , \"iax2.iax.rrjitter\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_RR_LOSS ] , {\n \"Received loss (high byte loss pct, low 24 bits loss count, as in rfc1889)\" , \"iax2.iax.rrloss\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_RR_PKTS ] , {\n \"Total frames received\" , \"iax2.iax.rrpkts\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_RR_DELAY ] , {\n \"Max playout delay in ms for received frames\" , \"iax2.iax.rrdelay\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_RR_DROPPED ] , {\n \"Dropped frames (presumably by jitterbuffer)\" , \"iax2.iax.rrdropped\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_RR_OOO ] , {\n \"Frame received out of order\" , \"iax2.iax.rrooo\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_DATAFORMAT ] , {\n \"Data call format\" , \"iax2.iax.dataformat\" , FT_UINT32 , BASE_HEX , VALS ( iax_dataformats ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_IAX_IE_UNKNOWN_BYTE , {\n \"Unknown\" , \"iax2.iax.unknownbyte\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , \"Raw data for unknown IEs\" , HFILL }\n }\n , {\n & hf_IAX_IE_UNKNOWN_I16 , {\n \"Unknown\" , \"iax2.iax.unknownshort\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , \"Raw data for unknown IEs\" , HFILL }\n }\n , {\n & hf_IAX_IE_UNKNOWN_I32 , {\n \"Unknown\" , \"iax2.iax.unknownlong\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , \"Raw data for unknown IEs\" , HFILL }\n }\n , {\n & hf_IAX_IE_UNKNOWN_BYTES , {\n \"Unknown\" , \"iax2.iax.unknownstring\" , FT_STRING , BASE_NONE , NULL , 0x0 , \"Raw data for unknown IEs\" , HFILL }\n }\n , {\n & hf_iax2_ie_id , {\n \"IE id\" , \"iax2.ie_id\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & iax_ies_type_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_length , {\n \"Length\" , \"iax2.length\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_g723_1 , {\n \"G.723.1 compression\" , \"iax2.cap.g723_1\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_G723_1 , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_gsm , {\n \"GSM compression\" , \"iax2.cap.gsm\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_GSM , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_ulaw , {\n \"Raw mu-law data (G.711)\" , \"iax2.cap.ulaw\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_ULAW , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_alaw , {\n \"Raw A-law data (G.711)\" , \"iax2.cap.alaw\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_ALAW , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_g726_aal2 , {\n \"G.726 compression (AAL2 packing)\" , \"iax2.cap.g726_aal2\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_G726_AAL2 , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_adpcm , {\n \"ADPCM\" , \"iax2.cap.adpcm\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_ADPCM , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_slinear , {\n \"Raw 16-bit Signed Linear (8000 Hz) PCM\" , \"iax2.cap.slinear\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_SLINEAR , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_lpc10 , {\n \"LPC10, 180 samples/frame\" , \"iax2.cap.lpc10\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_LPC10 , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_g729a , {\n \"G.729a Audio\" , \"iax2.cap.g729a\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_G729A , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_speex , {\n \"SPEEX Audio\" , \"iax2.cap.speex\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_SPEEX , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_ilbc , {\n \"iLBC Free compressed Audio\" , \"iax2.cap.ilbc\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_ILBC , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_g726 , {\n \"ADPCM (G.726, 32kbps, RFC3551 codeword packing)\" , \"iax2.cap.g726\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_G726 , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_g722 , {\n \"G.722 wideband audio\" , \"iax2.cap.g722\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_G722 , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_siren7 , {\n \"G.722.1 (also known as Siren7, 32kbps assumed)\" , \"iax2.cap.siren7\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_SIREN7 , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_siren14 , {\n \"G.722.1 Annex C (also known as Siren14, 48kbps assumed)\" , \"iax2.cap.siren14\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_SIREN14 , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_slinear16 , {\n \"Raw 16-bit Signed Linear (16000 Hz) PCM\" , \"iax2.cap.slinear16\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_SLINEAR16 , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_jpeg , {\n \"JPEG images\" , \"iax2.cap.jpeg\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_JPEG , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_png , {\n \"PNG images\" , \"iax2.cap.png\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_PNG , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_h261 , {\n \"H.261 video\" , \"iax2.cap.h261\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_H261 , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_h263 , {\n \"H.263 video\" , \"iax2.cap.h263\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_H263 , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_h263_plus , {\n \"H.263+ video\" , \"iax2.cap.h263_plus\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_H263_PLUS , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_h264 , {\n \"H.264 video\" , \"iax2.cap.h264\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_H264 , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_mpeg4 , {\n \"MPEG4 video\" , \"iax2.cap.mpeg4\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_MP4_VIDEO , NULL , HFILL }\n }\n , {\n & hf_iax2_fragment_unfinished , {\n \"IAX2 fragment, unfinished\" , \"iax2.fragment_unfinished\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_payload_data , {\n \"IAX2 payload\" , \"iax2.payload_data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_fragments , {\n \"IAX2 Fragments\" , \"iax2.fragments\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_fragment , {\n \"IAX2 Fragment data\" , \"iax2.fragment\" , FT_FRAMENUM , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_fragment_overlap , {\n \"Fragment overlap\" , \"iax2.fragment.overlap\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , \"Fragment overlaps with other fragments\" , HFILL }\n }\n , {\n & hf_iax2_fragment_overlap_conflict , {\n \"Conflicting data in fragment overlap\" , \"iax2.fragment.overlap.conflict\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , \"Overlapping fragments contained conflicting data\" , HFILL }\n }\n , {\n & hf_iax2_fragment_multiple_tails , {\n \"Multiple tail fragments found\" , \"iax2.fragment.multipletails\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , \"Several tails were found when defragmenting the packet\" , HFILL }\n }\n , {\n & hf_iax2_fragment_too_long_fragment , {\n \"Fragment too long\" , \"iax2.fragment.toolongfragment\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , \"Fragment contained data past end of packet\" , HFILL }\n }\n , {\n & hf_iax2_fragment_error , {\n \"Defragmentation error\" , \"iax2.fragment.error\" , FT_FRAMENUM , BASE_NONE , NULL , 0x0 , \"Defragmentation error due to illegal fragments\" , HFILL }\n }\n , {\n & hf_iax2_fragment_count , {\n \"Fragment count\" , \"iax2.fragment.count\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_reassembled_in , {\n \"IAX2 fragment, reassembled in frame\" , \"iax2.reassembled_in\" , FT_FRAMENUM , BASE_NONE , NULL , 0x0 , \"This IAX2 packet is reassembled in this frame\" , HFILL }\n }\n , {\n & hf_iax2_reassembled_length , {\n \"Reassembled IAX2 length\" , \"iax2.reassembled.length\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"The total length of the reassembled payload\" , HFILL }\n }\n }\n ;\n static gint * ett [ ] = {\n & ett_iax2 , & ett_iax2_full_mini_subtree , & ett_iax2_type , & ett_iax2_ie , & ett_iax2_codecs , & ett_iax2_ies_apparent_addr , & ett_iax2_fragment , & ett_iax2_fragments , & ett_iax2_trunk_cmddata , & ett_iax2_trunk_call }\n ;\n static ei_register_info ei [ ] = {\n {\n & ei_iax_too_many_transfers , {\n \"iax2.too_many_transfers\" , PI_PROTOCOL , PI_WARN , \"Too many transfers for iax_call\" , EXPFILL }\n }\n , {\n & ei_iax_circuit_id_conflict , {\n \"iax2.circuit_id_conflict\" , PI_PROTOCOL , PI_WARN , \"Circuit ID conflict\" , EXPFILL }\n }\n , {\n & ei_iax_peer_address_unsupported , {\n \"iax2.peer_address_unsupported\" , PI_PROTOCOL , PI_WARN , \"Peer address unsupported\" , EXPFILL }\n }\n , {\n & ei_iax_invalid_len , {\n \"iax2.invalid_len\" , PI_PROTOCOL , PI_WARN , \"Invalid length\" , EXPFILL }\n }\n }\n ;\n expert_module_t * expert_iax ;\n memset ( hf_iax2_ies , 0xff , sizeof ( hf_iax2_ies ) ) ;\n proto_iax2 = proto_register_protocol ( \"Inter-Asterisk eXchange v2\" , \"IAX2\" , \"iax2\" ) ;\n proto_register_field_array ( proto_iax2 , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n expert_iax = expert_register_protocol ( proto_iax2 ) ;\n expert_register_field_array ( expert_iax , ei , array_length ( ei ) ) ;\n register_dissector ( \"iax2\" , dissect_iax2 , proto_iax2 ) ;\n iax2_codec_dissector_table = register_dissector_table ( \"iax2.codec\" , \"IAX codec number\" , FT_UINT32 , BASE_HEX ) ;\n iax2_dataformat_dissector_table = register_dissector_table ( \"iax2.dataformat\" , \"IAX dataformat number\" , FT_UINT32 , BASE_HEX ) ;\n register_init_routine ( & iax_init_protocol ) ;\n register_cleanup_routine ( & iax_cleanup_protocol ) ;\n iax2_tap = register_tap ( \"IAX2\" ) ;\n }"}
{"idx": 4532, "target": 0, "func": "uint gx_device_raster_chunky ( const gx_device * dev , bool pad ) {\n ulong bits = ( ulong ) dev -> width * dev -> color_info . depth ;\n ulong raster ;\n int l2align ;\n raster = ( uint ) ( ( bits + 7 ) >> 3 ) ;\n if ( ! pad ) return raster ;\n l2align = dev -> log2_align_mod ;\n if ( l2align < log2_align_bitmap_mod ) l2align = log2_align_bitmap_mod ;\n return ( uint ) ( ( ( bits + ( 8 << l2align ) - 1 ) >> ( l2align + 3 ) ) << l2align ) ;\n }"}
{"idx": 4533, "target": 0, "func": "static inline void int8x8_fmul_int32 ( float * dst , const int8_t * src , int scale ) {\n float fscale = scale / 16.0 ;\n int i ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) dst [ i ] = src [ i ] * fscale ;\n }"}
{"idx": 4534, "target": 0, "func": "static int pfkey_register ( struct sock * sk , struct sk_buff * skb , const struct sadb_msg * hdr , void * const * ext_hdrs ) {\n struct pfkey_sock * pfk = pfkey_sk ( sk ) ;\n struct sk_buff * supp_skb ;\n if ( hdr -> sadb_msg_satype > SADB_SATYPE_MAX ) return - EINVAL ;\n if ( hdr -> sadb_msg_satype != SADB_SATYPE_UNSPEC ) {\n if ( pfk -> registered & ( 1 << hdr -> sadb_msg_satype ) ) return - EEXIST ;\n pfk -> registered |= ( 1 << hdr -> sadb_msg_satype ) ;\n }\n xfrm_probe_algs ( ) ;\n supp_skb = compose_sadb_supported ( hdr , GFP_KERNEL ) ;\n if ( ! supp_skb ) {\n if ( hdr -> sadb_msg_satype != SADB_SATYPE_UNSPEC ) pfk -> registered &= ~ ( 1 << hdr -> sadb_msg_satype ) ;\n return - ENOBUFS ;\n }\n pfkey_broadcast ( supp_skb , GFP_KERNEL , BROADCAST_REGISTERED , sk , sock_net ( sk ) ) ;\n return 0 ;\n }"}
{"idx": 4535, "target": 0, "func": "static AsfStream * gst_asf_demux_find_stream_with_complete_payload ( GstASFDemux * demux ) {\n AsfPayload * best_payload = NULL ;\n AsfStream * best_stream = NULL ;\n guint i ;\n for ( i = 0 ;\n i < demux -> num_streams ;\n ++ i ) {\n AsfStream * stream ;\n int j ;\n stream = & demux -> stream [ i ] ;\n if ( stream -> payloads -> len > 0 ) {\n AsfPayload * payload = NULL ;\n gint last_idx ;\n if ( GST_ASF_DEMUX_IS_REVERSE_PLAYBACK ( demux -> segment ) ) {\n if ( stream -> is_video ) {\n if ( stream -> reverse_kf_ready ) {\n payload = & g_array_index ( stream -> payloads , AsfPayload , stream -> kf_pos ) ;\n if ( G_UNLIKELY ( ! GST_CLOCK_TIME_IS_VALID ( payload -> ts ) ) ) {\n continue ;\n }\n }\n else {\n continue ;\n }\n }\n else {\n for ( j = stream -> payloads -> len - 1 ;\n j >= 0 && ( payload == NULL || ! GST_CLOCK_TIME_IS_VALID ( payload -> ts ) ) ;\n -- j ) {\n payload = & g_array_index ( stream -> payloads , AsfPayload , j ) ;\n }\n if ( ! gst_asf_payload_is_complete ( payload ) ) continue ;\n }\n }\n else {\n for ( last_idx = stream -> payloads -> len - 1 ;\n last_idx >= 0 && ( payload == NULL || ! GST_CLOCK_TIME_IS_VALID ( payload -> ts ) ) ;\n -- last_idx ) {\n payload = & g_array_index ( stream -> payloads , AsfPayload , last_idx ) ;\n }\n if ( GST_CLOCK_TIME_IS_VALID ( payload -> ts ) ) gst_asf_demux_check_segment_ts ( demux , payload -> ts ) ;\n if ( G_UNLIKELY ( GST_CLOCK_TIME_IS_VALID ( payload -> ts ) && ( payload -> ts < demux -> segment . start ) ) ) {\n if ( G_UNLIKELY ( ( ! demux -> keyunit_sync ) && ( ! demux -> accurate ) && payload -> keyframe ) ) {\n GST_DEBUG_OBJECT ( stream -> pad , \"Found keyframe, updating segment start to %\" GST_TIME_FORMAT , GST_TIME_ARGS ( payload -> ts ) ) ;\n demux -> segment . start = payload -> ts ;\n demux -> segment . time = payload -> ts ;\n }\n else {\n GST_DEBUG_OBJECT ( stream -> pad , \"Last queued payload has timestamp %\" GST_TIME_FORMAT \" which is before our segment start %\" GST_TIME_FORMAT \", not pushing yet\" , GST_TIME_ARGS ( payload -> ts ) , GST_TIME_ARGS ( demux -> segment . start ) ) ;\n continue ;\n }\n }\n payload = NULL ;\n for ( j = 0 ;\n j < stream -> payloads -> len && ( payload == NULL || ! GST_CLOCK_TIME_IS_VALID ( payload -> ts ) ) ;\n ++ j ) {\n payload = & g_array_index ( stream -> payloads , AsfPayload , j ) ;\n }\n if ( ! gst_asf_payload_is_complete ( payload ) ) continue ;\n }\n if ( best_stream == NULL || best_payload -> ts > payload -> ts ) {\n best_stream = stream ;\n best_payload = payload ;\n }\n }\n }\n return best_stream ;\n }"}
{"idx": 4536, "target": 0, "func": "SPL_METHOD ( RecursiveDirectoryIterator , __construct ) {\n spl_filesystem_object_construct ( INTERNAL_FUNCTION_PARAM_PASSTHRU , DIT_CTOR_FLAGS ) ;\n }"}
{"idx": 4537, "target": 0, "func": "static void help ( const char * progname ) {\n printf ( _ ( \"%s clusters all previously clustered tables in a database.\\n\\n\" ) , progname ) ;\n printf ( _ ( \"Usage:\\n\" ) ) ;\n printf ( _ ( \" %s [OPTION]... [DBNAME]\\n\" ) , progname ) ;\n printf ( _ ( \"\\nOptions:\\n\" ) ) ;\n printf ( _ ( \" -a, --all cluster all databases\\n\" ) ) ;\n printf ( _ ( \" -d, --dbname=DBNAME database to cluster\\n\" ) ) ;\n printf ( _ ( \" -e, --echo show the commands being sent to the server\\n\" ) ) ;\n printf ( _ ( \" -q, --quiet don't write any messages\\n\" ) ) ;\n printf ( _ ( \" -t, --table=TABLE cluster specific table(s) only\\n\" ) ) ;\n printf ( _ ( \" -v, --verbose write a lot of output\\n\" ) ) ;\n printf ( _ ( \" -V, --version output version information, then exit\\n\" ) ) ;\n printf ( _ ( \" -?, --help show this help, then exit\\n\" ) ) ;\n printf ( _ ( \"\\nConnection options:\\n\" ) ) ;\n printf ( _ ( \" -h, --host=HOSTNAME database server host or socket directory\\n\" ) ) ;\n printf ( _ ( \" -p, --port=PORT database server port\\n\" ) ) ;\n printf ( _ ( \" -U, --username=USERNAME user name to connect as\\n\" ) ) ;\n printf ( _ ( \" -w, --no-password never prompt for password\\n\" ) ) ;\n printf ( _ ( \" -W, --password force password prompt\\n\" ) ) ;\n printf ( _ ( \" --maintenance-db=DBNAME alternate maintenance database\\n\" ) ) ;\n printf ( _ ( \"\\nRead the description of the SQL command CLUSTER for details.\\n\" ) ) ;\n printf ( _ ( \"\\nReport bugs to <pgsql-bugs@postgresql.org>.\\n\" ) ) ;\n }"}
{"idx": 4538, "target": 0, "func": "static void vga_draw_line8 ( VGACommonState * vga , uint8_t * d , uint32_t addr , int width ) {\n uint32_t * palette ;\n int x ;\n palette = vga -> last_palette ;\n width >>= 3 ;\n for ( x = 0 ;\n x < width ;\n x ++ ) {\n ( ( uint32_t * ) d ) [ 0 ] = palette [ vga_read_byte ( vga , addr + 0 ) ] ;\n ( ( uint32_t * ) d ) [ 1 ] = palette [ vga_read_byte ( vga , addr + 1 ) ] ;\n ( ( uint32_t * ) d ) [ 2 ] = palette [ vga_read_byte ( vga , addr + 2 ) ] ;\n ( ( uint32_t * ) d ) [ 3 ] = palette [ vga_read_byte ( vga , addr + 3 ) ] ;\n ( ( uint32_t * ) d ) [ 4 ] = palette [ vga_read_byte ( vga , addr + 4 ) ] ;\n ( ( uint32_t * ) d ) [ 5 ] = palette [ vga_read_byte ( vga , addr + 5 ) ] ;\n ( ( uint32_t * ) d ) [ 6 ] = palette [ vga_read_byte ( vga , addr + 6 ) ] ;\n ( ( uint32_t * ) d ) [ 7 ] = palette [ vga_read_byte ( vga , addr + 7 ) ] ;\n d += 32 ;\n addr += 8 ;\n }\n }"}
{"idx": 4539, "target": 0, "func": "static int dissect_rsl_ie_resource_inf ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_item * ti ;\n proto_tree * ie_tree ;\n guint8 ie_id ;\n guint length ;\n int ie_offset ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_RESOURCE_INF ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_ie_resource_inf , & ti , \"Resource Information IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n length = tvb_get_guint8 ( tvb , offset ) ;\n proto_item_set_len ( ti , length + 2 ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_length , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n ie_offset = offset ;\n while ( length > 0 ) {\n proto_tree_add_item ( ie_tree , hf_rsl_ch_no_Cbits , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ch_no_TN , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_interf_band , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_interf_band_reserved , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n length = length - 2 ;\n }\n return ie_offset + length ;\n }"}
{"idx": 4540, "target": 1, "func": "void vp9_quantize_b_c ( const int16_t * coeff_ptr , intptr_t count , int skip_block , const int16_t * zbin_ptr , const int16_t * round_ptr , const int16_t * quant_ptr , const int16_t * quant_shift_ptr , int16_t * qcoeff_ptr , int16_t * dqcoeff_ptr , const int16_t * dequant_ptr , int zbin_oq_value , uint16_t * eob_ptr , const int16_t * scan , const int16_t * iscan ) {\n int i , non_zero_count = ( int ) count , eob = - 1 ;\n const int zbins [ 2 ] = {\n zbin_ptr [ 0 ] + zbin_oq_value , zbin_ptr [ 1 ] + zbin_oq_value }\n ;\n const int nzbins [ 2 ] = {\n zbins [ 0 ] * - 1 , zbins [ 1 ] * - 1 }\n ;\n ( void ) iscan ;\n vpx_memset ( qcoeff_ptr , 0 , count * sizeof ( int16_t ) ) ;\n vpx_memset ( dqcoeff_ptr , 0 , count * sizeof ( int16_t ) ) ;\n if ( ! skip_block ) {\n for ( i = ( int ) count - 1 ;\n i >= 0 ;\n i -- ) {\n const int rc = scan [ i ] ;\n const int coeff = coeff_ptr [ rc ] ;\n if ( coeff < zbins [ rc != 0 ] && coeff > nzbins [ rc != 0 ] ) non_zero_count -- ;\n else break ;\n }\n for ( i = 0 ;\n i < non_zero_count ;\n i ++ ) {\n const int rc = scan [ i ] ;\n const int coeff = coeff_ptr [ rc ] ;\n const int coeff_sign = ( coeff >> 31 ) ;\n const int abs_coeff = ( coeff ^ coeff_sign ) - coeff_sign ;\n if ( abs_coeff >= zbins [ rc != 0 ] ) {\n int tmp = clamp ( abs_coeff + round_ptr [ rc != 0 ] , INT16_MIN , INT16_MAX ) ;\n tmp = ( ( ( ( tmp * quant_ptr [ rc != 0 ] ) >> 16 ) + tmp ) * quant_shift_ptr [ rc != 0 ] ) >> 16 ;\n qcoeff_ptr [ rc ] = ( tmp ^ coeff_sign ) - coeff_sign ;\n dqcoeff_ptr [ rc ] = qcoeff_ptr [ rc ] * dequant_ptr [ rc != 0 ] ;\n if ( tmp ) eob = i ;\n }\n }\n }\n * eob_ptr = eob + 1 ;\n }"}
{"idx": 4541, "target": 0, "func": "static void mips_malta_machine_init ( void ) {\n qemu_register_machine ( & mips_malta_machine ) ;\n }"}
{"idx": 4542, "target": 0, "func": "TEST_F ( WebFrameTest , ExecuteCommandProducesUserGesture ) {\n FrameTestHelpers : : WebViewHelper web_view_helper ;\n web_view_helper . InitializeAndLoad ( \"about:blank\" ) ;\n WebLocalFrameImpl * frame = web_view_helper . LocalMainFrame ( ) ;\n EXPECT_FALSE ( frame -> GetFrame ( ) -> HasBeenActivated ( ) ) ;\n frame -> ExecuteScript ( WebScriptSource ( WebString ( \"document.execCommand('copy');\n\" ) ) ) ;\n EXPECT_FALSE ( frame -> GetFrame ( ) -> HasBeenActivated ( ) ) ;\n frame -> ExecuteCommand ( WebString : : FromUTF8 ( \"Paste\" ) ) ;\n EXPECT_TRUE ( frame -> GetFrame ( ) -> HasBeenActivated ( ) ) ;\n }"}
{"idx": 4543, "target": 0, "func": "static int dissect_h245_Mlr_type ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_Mlr_type , Mlr_type_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 4544, "target": 0, "func": "void bitmap_writer_build_type_index ( struct pack_idx_entry * * index , uint32_t index_nr ) {\n uint32_t i ;\n writer . commits = ewah_new ( ) ;\n writer . trees = ewah_new ( ) ;\n writer . blobs = ewah_new ( ) ;\n writer . tags = ewah_new ( ) ;\n for ( i = 0 ;\n i < index_nr ;\n ++ i ) {\n struct object_entry * entry = ( struct object_entry * ) index [ i ] ;\n enum object_type real_type ;\n entry -> in_pack_pos = i ;\n switch ( entry -> type ) {\n case OBJ_COMMIT : case OBJ_TREE : case OBJ_BLOB : case OBJ_TAG : real_type = entry -> type ;\n break ;\n default : real_type = sha1_object_info ( entry -> idx . sha1 , NULL ) ;\n break ;\n }\n switch ( real_type ) {\n case OBJ_COMMIT : ewah_set ( writer . commits , i ) ;\n break ;\n case OBJ_TREE : ewah_set ( writer . trees , i ) ;\n break ;\n case OBJ_BLOB : ewah_set ( writer . blobs , i ) ;\n break ;\n case OBJ_TAG : ewah_set ( writer . tags , i ) ;\n break ;\n default : die ( \"Missing type information for %s (%d/%d)\" , sha1_to_hex ( entry -> idx . sha1 ) , real_type , entry -> type ) ;\n }\n }\n }"}
{"idx": 4545, "target": 0, "func": "static int pxa2xx_fir_is_empty ( void * opaque ) {\n PXA2xxFIrState * s = ( PXA2xxFIrState * ) opaque ;\n return ( s -> rx_len < 64 ) ;\n }"}
{"idx": 4546, "target": 0, "func": "int file_is_y4m ( const char detect [ 4 ] ) {\n if ( memcmp ( detect , \"YUV4\" , 4 ) == 0 ) {\n return 1 ;\n }\n return 0 ;\n }"}
{"idx": 4547, "target": 0, "func": "void mime_field_init ( MIMEField * field ) {\n memset ( field , 0 , sizeof ( MIMEField ) ) ;\n field -> m_readiness = MIME_FIELD_SLOT_READINESS_DETACHED ;\n field -> m_wks_idx = - 1 ;\n }"}
{"idx": 4548, "target": 0, "func": "static int ossl_asn1_tag ( VALUE obj ) {\n VALUE tag ;\n tag = ossl_asn1_get_tag ( obj ) ;\n if ( NIL_P ( tag ) ) ossl_raise ( eASN1Error , \"tag number not specified\" ) ;\n return NUM2INT ( tag ) ;\n }"}
{"idx": 4549, "target": 0, "func": "static void build_masks ( const loop_filter_info_n * const lfi_n , const MODE_INFO * mi , const int shift_y , const int shift_uv , LOOP_FILTER_MASK * lfm ) {\n const MB_MODE_INFO * mbmi = & mi -> mbmi ;\n const BLOCK_SIZE block_size = mbmi -> sb_type ;\n const TX_SIZE tx_size_y = mbmi -> tx_size ;\n const TX_SIZE tx_size_uv = get_uv_tx_size_impl ( tx_size_y , block_size , 1 , 1 ) ;\n const int filter_level = get_filter_level ( lfi_n , mbmi ) ;\n uint64_t * const left_y = & lfm -> left_y [ tx_size_y ] ;\n uint64_t * const above_y = & lfm -> above_y [ tx_size_y ] ;\n uint64_t * const int_4x4_y = & lfm -> int_4x4_y ;\n uint16_t * const left_uv = & lfm -> left_uv [ tx_size_uv ] ;\n uint16_t * const above_uv = & lfm -> above_uv [ tx_size_uv ] ;\n uint16_t * const int_4x4_uv = & lfm -> int_4x4_uv ;\n int i ;\n if ( ! filter_level ) {\n return ;\n }\n else {\n const int w = num_8x8_blocks_wide_lookup [ block_size ] ;\n const int h = num_8x8_blocks_high_lookup [ block_size ] ;\n int index = shift_y ;\n for ( i = 0 ;\n i < h ;\n i ++ ) {\n vpx_memset ( & lfm -> lfl_y [ index ] , filter_level , w ) ;\n index += 8 ;\n }\n }\n * above_y |= above_prediction_mask [ block_size ] << shift_y ;\n * above_uv |= above_prediction_mask_uv [ block_size ] << shift_uv ;\n * left_y |= left_prediction_mask [ block_size ] << shift_y ;\n * left_uv |= left_prediction_mask_uv [ block_size ] << shift_uv ;\n if ( mbmi -> skip && is_inter_block ( mbmi ) ) return ;\n * above_y |= ( size_mask [ block_size ] & above_64x64_txform_mask [ tx_size_y ] ) << shift_y ;\n * above_uv |= ( size_mask_uv [ block_size ] & above_64x64_txform_mask_uv [ tx_size_uv ] ) << shift_uv ;\n * left_y |= ( size_mask [ block_size ] & left_64x64_txform_mask [ tx_size_y ] ) << shift_y ;\n * left_uv |= ( size_mask_uv [ block_size ] & left_64x64_txform_mask_uv [ tx_size_uv ] ) << shift_uv ;\n if ( tx_size_y == TX_4X4 ) * int_4x4_y |= ( size_mask [ block_size ] & 0xffffffffffffffff ) << shift_y ;\n if ( tx_size_uv == TX_4X4 ) * int_4x4_uv |= ( size_mask_uv [ block_size ] & 0xffff ) << shift_uv ;\n }"}
{"idx": 4550, "target": 0, "func": "int fn_printn ( netdissect_options * ndo , register const u_char * s , register u_int n , register const u_char * ep ) {\n register u_char c ;\n while ( n > 0 && ( ep == NULL || s < ep ) ) {\n n -- ;\n c = * s ++ ;\n if ( ! ND_ISASCII ( c ) ) {\n c = ND_TOASCII ( c ) ;\n ND_PRINT ( ( ndo , \"M-\" ) ) ;\n }\n if ( ! ND_ISPRINT ( c ) ) {\n c ^= 0x40 ;\n ND_PRINT ( ( ndo , \"^\" ) ) ;\n }\n ND_PRINT ( ( ndo , \"%c\" , c ) ) ;\n }\n return ( n == 0 ) ? 0 : 1 ;\n }"}
{"idx": 4551, "target": 0, "func": "static void cancel_mime_list_for_file ( NautilusDirectory * directory , NautilusFile * file ) {\n if ( directory -> details -> mime_list_in_progress != NULL && directory -> details -> mime_list_in_progress -> mime_list_file == file ) {\n mime_list_cancel ( directory ) ;\n }\n }"}
{"idx": 4552, "target": 1, "func": "static void _LMBCSOpen ## n ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err ) \\ {\n _LMBCSOpenWorker ( _this , pArgs , err , n ) ;\n }\n static void _LMBCSOpenWorker ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err , ulmbcs_byte_t OptGroup ) {\n UConverterDataLMBCS * extraInfo = _this -> extraInfo = ( UConverterDataLMBCS * ) uprv_malloc ( sizeof ( UConverterDataLMBCS ) ) ;\n if ( extraInfo != NULL ) {\n UConverterNamePieces stackPieces ;\n UConverterLoadArgs stackArgs = {\n ( int32_t ) sizeof ( UConverterLoadArgs ) }\n ;\n ulmbcs_byte_t i ;\n uprv_memset ( extraInfo , 0 , sizeof ( UConverterDataLMBCS ) ) ;\n stackArgs . onlyTestIsLoadable = pArgs -> onlyTestIsLoadable ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST && U_SUCCESS ( * err ) ;\n i ++ ) {\n if ( OptGroupByteToCPName [ i ] != NULL ) {\n extraInfo -> OptGrpConverter [ i ] = ucnv_loadSharedData ( OptGroupByteToCPName [ i ] , & stackPieces , & stackArgs , err ) ;\n }\n }\n if ( U_FAILURE ( * err ) || pArgs -> onlyTestIsLoadable ) {\n _LMBCSClose ( _this ) ;\n return ;\n }\n extraInfo -> OptGroup = OptGroup ;\n extraInfo -> localeConverterIndex = FindLMBCSLocale ( pArgs -> locale ) ;\n }\n else {\n * err = U_MEMORY_ALLOCATION_ERROR ;\n }\n }\n static void _LMBCSClose ( UConverter * _this ) {\n if ( _this -> extraInfo != NULL ) {\n ulmbcs_byte_t Ix ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) _this -> extraInfo ;\n for ( Ix = 0 ;\n Ix <= ULMBCS_GRP_LAST ;\n Ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ Ix ] != NULL ) ucnv_unloadSharedDataIfReady ( extraInfo -> OptGrpConverter [ Ix ] ) ;\n }\n if ( ! _this -> isExtraLocal ) {\n uprv_free ( _this -> extraInfo ) ;\n _this -> extraInfo = NULL ;\n }\n }\n }\n typedef struct LMBCSClone {\n UConverter cnv ;\n UConverterDataLMBCS lmbcs ;\n }\n LMBCSClone ;\n static UConverter * _LMBCSSafeClone ( const UConverter * cnv , void * stackBuffer , int32_t * pBufferSize , UErrorCode * status ) {\n LMBCSClone * newLMBCS ;\n UConverterDataLMBCS * extraInfo ;\n int32_t i ;\n if ( * pBufferSize <= 0 ) {\n * pBufferSize = ( int32_t ) sizeof ( LMBCSClone ) ;\n return NULL ;\n }\n extraInfo = ( UConverterDataLMBCS * ) cnv -> extraInfo ;\n newLMBCS = ( LMBCSClone * ) stackBuffer ;\n uprv_memcpy ( & newLMBCS -> lmbcs , extraInfo , sizeof ( UConverterDataLMBCS ) ) ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST ;\n ++ i ) {\n if ( extraInfo -> OptGrpConverter [ i ] != NULL ) {\n ucnv_incrementRefCount ( extraInfo -> OptGrpConverter [ i ] ) ;\n }\n }\n newLMBCS -> cnv . extraInfo = & newLMBCS -> lmbcs ;\n newLMBCS -> cnv . isExtraLocal = TRUE ;\n return & newLMBCS -> cnv ;\n }\n static size_t LMBCSConversionWorker ( UConverterDataLMBCS * extraInfo , ulmbcs_byte_t group , ulmbcs_byte_t * pStartLMBCS , UChar * pUniChar , ulmbcs_byte_t * lastConverterIndex , UBool * groups_tried ) {\n ulmbcs_byte_t * pLMBCS = pStartLMBCS ;\n UConverterSharedData * xcnv = extraInfo -> OptGrpConverter [ group ] ;\n int bytesConverted ;\n uint32_t value ;\n ulmbcs_byte_t firstByte ;\n U_ASSERT ( xcnv ) ;\n U_ASSERT ( group < ULMBCS_GRP_UNICODE ) ;\n bytesConverted = ucnv_MBCSFromUChar32 ( xcnv , * pUniChar , & value , FALSE ) ;\n if ( bytesConverted > 0 ) {\n firstByte = ( ulmbcs_byte_t ) ( value >> ( ( bytesConverted - 1 ) * 8 ) ) ;\n }\n else {\n groups_tried [ group ] = TRUE ;\n return 0 ;\n }\n * lastConverterIndex = group ;\n U_ASSERT ( ( firstByte <= ULMBCS_C0END ) || ( firstByte >= ULMBCS_C1START ) || ( group == ULMBCS_GRP_EXCEPT ) ) ;\n if ( group != ULMBCS_GRP_EXCEPT && extraInfo -> OptGroup != group ) {\n * pLMBCS ++ = group ;\n if ( bytesConverted == 1 && group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n * pLMBCS ++ = group ;\n }\n }\n if ( bytesConverted == 1 && firstByte < 0x20 ) return 0 ;\n switch ( bytesConverted ) {\n case 4 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 24 ) ;\n U_FALLTHROUGH ;\n case 3 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 16 ) ;\n U_FALLTHROUGH ;\n case 2 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 8 ) ;\n U_FALLTHROUGH ;\n case 1 : * pLMBCS ++ = ( ulmbcs_byte_t ) value ;\n U_FALLTHROUGH ;\n default : break ;\n }\n return ( pLMBCS - pStartLMBCS ) ;\n }\n static size_t LMBCSConvertUni ( ulmbcs_byte_t * pLMBCS , UChar uniChar ) {\n uint8_t LowCh = ( uint8_t ) ( uniChar & 0x00FF ) ;\n uint8_t HighCh = ( uint8_t ) ( uniChar >> 8 ) ;\n * pLMBCS ++ = ULMBCS_GRP_UNICODE ;\n if ( LowCh == 0 ) {\n * pLMBCS ++ = ULMBCS_UNICOMPATZERO ;\n * pLMBCS ++ = HighCh ;\n }\n else {\n * pLMBCS ++ = HighCh ;\n * pLMBCS ++ = LowCh ;\n }\n return ULMBCS_UNICODE_SIZE ;\n }\n static void _LMBCSFromUnicode ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n ulmbcs_byte_t lastConverterIndex = 0 ;\n UChar uniChar ;\n ulmbcs_byte_t LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n ulmbcs_byte_t * pLMBCS ;\n int32_t bytes_written ;\n UBool groups_tried [ ULMBCS_GRP_LAST + 1 ] ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n int sourceIndex = 0 ;\n ulmbcs_byte_t OldConverterIndex = 0 ;\n while ( args -> source < args -> sourceLimit && ! U_FAILURE ( * err ) ) {\n OldConverterIndex = extraInfo -> localeConverterIndex ;\n if ( args -> target >= args -> targetLimit ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n uniChar = * ( args -> source ) ;\n bytes_written = 0 ;\n pLMBCS = LMBCS ;\n if ( ( uniChar >= 0x80 ) && ( uniChar <= 0xff ) && ( uniChar != 0xB1 ) && ( uniChar != 0xD7 ) && ( uniChar != 0xF7 ) && ( uniChar != 0xB0 ) && ( uniChar != 0xB4 ) && ( uniChar != 0xB6 ) && ( uniChar != 0xA7 ) && ( uniChar != 0xA8 ) ) {\n extraInfo -> localeConverterIndex = ULMBCS_GRP_L1 ;\n }\n if ( ( ( uniChar > ULMBCS_C0END ) && ( uniChar < ULMBCS_C1START ) ) || uniChar == 0 || uniChar == ULMBCS_HT || uniChar == ULMBCS_CR || uniChar == ULMBCS_LF || uniChar == ULMBCS_123SYSTEMRANGE ) {\n * pLMBCS ++ = ( ulmbcs_byte_t ) uniChar ;\n bytes_written = 1 ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t group = FindLMBCSUniRange ( uniChar ) ;\n if ( group == ULMBCS_GRP_UNICODE ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group == ULMBCS_GRP_CTRL ) {\n if ( uniChar <= ULMBCS_C0END ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( ULMBCS_CTRLOFFSET + uniChar ) ;\n }\n else if ( uniChar >= ULMBCS_C1START && uniChar <= ULMBCS_C1START + ULMBCS_CTRLOFFSET ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( uniChar & 0x00FF ) ;\n }\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group < ULMBCS_GRP_UNICODE ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , group , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n uprv_memset ( groups_tried , 0 , sizeof ( groups_tried ) ) ;\n if ( ( extraInfo -> OptGroup != 1 ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> OptGroup ) ) ) {\n if ( extraInfo -> localeConverterIndex < ULMBCS_DOUBLEOPTGROUP_START ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_L1 , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n else {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && ( extraInfo -> localeConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> localeConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written && ( lastConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , lastConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , lastConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t grp_start ;\n ulmbcs_byte_t grp_end ;\n ulmbcs_byte_t grp_ix ;\n grp_start = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_DOUBLEOPTGROUP_START : ULMBCS_GRP_L1 ) ;\n grp_end = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_GRP_LAST : ULMBCS_GRP_TH ) ;\n if ( group == ULMBCS_AMBIGUOUS_ALL ) {\n grp_start = ULMBCS_GRP_L1 ;\n grp_end = ULMBCS_GRP_LAST ;\n }\n for ( grp_ix = grp_start ;\n grp_ix <= grp_end && ! bytes_written ;\n grp_ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ grp_ix ] && ! groups_tried [ grp_ix ] ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , grp_ix , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && grp_start == ULMBCS_GRP_L1 ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n }\n }\n args -> source ++ ;\n pLMBCS = LMBCS ;\n while ( args -> target < args -> targetLimit && bytes_written -- ) {\n * ( args -> target ) ++ = * pLMBCS ++ ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = sourceIndex ;\n }\n }\n sourceIndex ++ ;\n if ( bytes_written > 0 ) {\n uint8_t * pErrorBuffer = args -> converter -> charErrorBuffer ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n args -> converter -> charErrorBufferLength = ( int8_t ) bytes_written ;\n while ( bytes_written -- ) {\n * pErrorBuffer ++ = * pLMBCS ++ ;\n }\n }\n extraInfo -> localeConverterIndex = OldConverterIndex ;\n }\n }\n static UChar GetUniFromLMBCSUni ( char const * * ppLMBCSin ) {\n uint8_t HighCh = * ( * ppLMBCSin ) ++ ;\n uint8_t LowCh = * ( * ppLMBCSin ) ++ ;\n if ( HighCh == ULMBCS_UNICOMPATZERO ) {\n HighCh = LowCh ;\n LowCh = 0 ;\n }\n return ( UChar ) ( ( HighCh << 8 ) | LowCh ) ;\n }\n # define CHECK_SOURCE_LIMIT ( index ) if ( args -> source + index > args -> sourceLimit ) {\n * err = U_TRUNCATED_CHAR_FOUND ;\n args -> source = args -> sourceLimit ;\n return 0xffff ;\n }\n static UChar32 _LMBCSGetNextUCharWorker ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n UChar32 uniChar = 0 ;\n ulmbcs_byte_t CurByte ;\n if ( args -> source >= args -> sourceLimit ) {\n * err = U_ILLEGAL_ARGUMENT_ERROR ;\n return 0xffff ;\n }\n CurByte = * ( ( ulmbcs_byte_t * ) ( args -> source ++ ) ) ;\n if ( ( ( CurByte > ULMBCS_C0END ) && ( CurByte < ULMBCS_C1START ) ) || ( CurByte == 0 ) || CurByte == ULMBCS_HT || CurByte == ULMBCS_CR || CurByte == ULMBCS_LF || CurByte == ULMBCS_123SYSTEMRANGE ) {\n uniChar = CurByte ;\n }\n else {\n UConverterDataLMBCS * extraInfo ;\n ulmbcs_byte_t group ;\n UConverterSharedData * cnv ;\n if ( CurByte == ULMBCS_GRP_CTRL ) {\n ulmbcs_byte_t C0C1byte ;\n CHECK_SOURCE_LIMIT ( 1 ) ;\n C0C1byte = * ( args -> source ) ++ ;\n uniChar = ( C0C1byte < ULMBCS_C1START ) ? C0C1byte - ULMBCS_CTRLOFFSET : C0C1byte ;\n }\n else if ( CurByte == ULMBCS_GRP_UNICODE ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n return GetUniFromLMBCSUni ( & ( args -> source ) ) ;\n }\n else if ( CurByte <= ULMBCS_CTRLOFFSET ) {\n group = CurByte ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n if ( group > ULMBCS_GRP_LAST || ( cnv = extraInfo -> OptGrpConverter [ group ] ) == NULL ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n if ( * args -> source == group ) {\n ++ args -> source ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 1 , FALSE ) ;\n ++ args -> source ;\n }\n else {\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 2 , FALSE ) ;\n args -> source += 2 ;\n }\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n CurByte = * ( args -> source ) ++ ;\n if ( CurByte >= ULMBCS_C1START ) {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n else {\n char bytes [ 2 ] ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n cnv = extraInfo -> OptGrpConverter [ ULMBCS_GRP_EXCEPT ] ;\n bytes [ 0 ] = group ;\n bytes [ 1 ] = CurByte ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , bytes , 2 , FALSE ) ;\n }\n }\n }\n else if ( CurByte >= ULMBCS_C1START ) {\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n group = extraInfo -> OptGroup ;\n cnv = extraInfo -> OptGrpConverter [ group ] ;\n if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n if ( ! ucnv_MBCSIsLeadByte ( cnv , CurByte ) ) {\n CHECK_SOURCE_LIMIT ( 0 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 1 , FALSE ) ;\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 2 , FALSE ) ;\n ++ args -> source ;\n }\n }\n else {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n }\n }\n return uniChar ;\n }\n static void _LMBCSToUnicodeWithOffsets ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n char LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n UChar uniChar ;\n const char * saveSource ;\n const char * pStartLMBCS = args -> source ;\n const char * errSource = NULL ;\n int8_t savebytes = 0 ;\n while ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit > args -> target ) {\n saveSource = args -> source ;\n if ( args -> converter -> toULength ) {\n const char * saveSourceLimit ;\n size_t size_old = args -> converter -> toULength ;\n size_t size_new_maybe_1 = sizeof ( LMBCS ) - size_old ;\n size_t size_new_maybe_2 = args -> sourceLimit - args -> source ;\n size_t size_new = ( size_new_maybe_1 < size_new_maybe_2 ) ? size_new_maybe_1 : size_new_maybe_2 ;\n uprv_memcpy ( LMBCS , args -> converter -> toUBytes , size_old ) ;\n uprv_memcpy ( LMBCS + size_old , args -> source , size_new ) ;\n saveSourceLimit = args -> sourceLimit ;\n args -> source = errSource = LMBCS ;\n args -> sourceLimit = LMBCS + size_old + size_new ;\n savebytes = ( int8_t ) ( size_old + size_new ) ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n args -> source = saveSource + ( ( args -> source - LMBCS ) - size_old ) ;\n args -> sourceLimit = saveSourceLimit ;\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n args -> converter -> toULength = savebytes ;\n uprv_memcpy ( args -> converter -> toUBytes , LMBCS , savebytes ) ;\n args -> source = args -> sourceLimit ;\n * err = U_ZERO_ERROR ;\n return ;\n }\n else {\n args -> converter -> toULength = 0 ;\n }\n }\n else {\n errSource = saveSource ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n savebytes = ( int8_t ) ( args -> source - saveSource ) ;\n }\n if ( U_SUCCESS ( * err ) ) {\n if ( uniChar < 0xfffe ) {\n * ( args -> target ) ++ = uniChar ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = ( int32_t ) ( saveSource - pStartLMBCS ) ;\n }\n }\n else if ( uniChar == 0xfffe ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n }\n if ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit <= args -> target ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n else if ( U_FAILURE ( * err ) ) {\n args -> converter -> toULength = savebytes ;\n if ( savebytes > 0 ) {\n uprv_memcpy ( args -> converter -> toUBytes , errSource , savebytes ) ;\n }\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n * err = U_ZERO_ERROR ;\n }\n }\n }\n DEFINE_LMBCS_OPEN ( 1 ) DEFINE_LMBCS_OPEN ( 2 ) DEFINE_LMBCS_OPEN ( 3 ) DEFINE_LMBCS_OPEN ( 4 ) DEFINE_LMBCS_OPEN ( 5 ) DEFINE_LMBCS_OPEN ( 6 )"}
{"idx": 4553, "target": 0, "func": "kadm5_ret_t kadm5_get_principal_keys ( void * server_handle , krb5_principal principal , krb5_keyblock * * keyblocks , int * n_keys ) {\n krb5_db_entry * kdb ;\n osa_princ_ent_rec adb ;\n kadm5_ret_t ret ;\n kadm5_server_handle_t handle = server_handle ;\n if ( keyblocks ) * keyblocks = NULL ;\n CHECK_HANDLE ( server_handle ) ;\n if ( principal == NULL ) return EINVAL ;\n if ( ( ret = kdb_get_entry ( handle , principal , & kdb , & adb ) ) ) return ( ret ) ;\n if ( keyblocks ) {\n ret = decrypt_key_data ( handle -> context , kdb -> n_key_data , kdb -> key_data , keyblocks , n_keys ) ;\n if ( ret ) goto done ;\n }\n ret = KADM5_OK ;\n done : kdb_free_entry ( handle , kdb , & adb ) ;\n return ret ;\n }"}
{"idx": 4554, "target": 0, "func": "void replace_strings_append ( REPLACE * rep , DYNAMIC_STRING * ds , const char * str , int len __attribute__ ( ( unused ) ) ) {\n reg1 REPLACE * rep_pos ;\n reg2 REPLACE_STRING * rep_str ;\n const char * start , * from ;\n DBUG_ENTER ( \"replace_strings_append\" ) ;\n start = from = str ;\n rep_pos = rep + 1 ;\n for ( ;\n ;\n ) {\n DBUG_PRINT ( \"info\" , ( \"Looping through states\" ) ) ;\n while ( ! rep_pos -> found ) rep_pos = rep_pos -> next [ ( uchar ) * from ++ ] ;\n if ( ! ( rep_str = ( ( REPLACE_STRING * ) rep_pos ) ) -> replace_string ) {\n dynstr_append_mem ( ds , start , from - start - 1 ) ;\n DBUG_PRINT ( \"exit\" , ( \"Found no more string to replace, appended: %s\" , start ) ) ;\n DBUG_VOID_RETURN ;\n }\n DBUG_PRINT ( \"info\" , ( \"found: %d, to_offset: %u, from_offset: %d, string: %s\" , rep_str -> found , rep_str -> to_offset , rep_str -> from_offset , rep_str -> replace_string ) ) ;\n dynstr_append_mem ( ds , start , ( from - rep_str -> to_offset ) - start ) ;\n dynstr_append_mem ( ds , rep_str -> replace_string , strlen ( rep_str -> replace_string ) ) ;\n if ( ! * ( from -= rep_str -> from_offset ) && rep_pos -> found != 2 ) {\n DBUG_PRINT ( \"exit\" , ( \"Found end of from string\" ) ) ;\n DBUG_VOID_RETURN ;\n }\n DBUG_ASSERT ( from <= str + len ) ;\n start = from ;\n rep_pos = rep ;\n }\n }"}
{"idx": 4555, "target": 0, "func": "void proto_reg_handoff_zbee_zcl_color_control ( void ) {\n zbee_zcl_init_cluster ( ZBEE_PROTOABBREV_ZCL_COLOR_CONTROL , proto_zbee_zcl_color_control , ett_zbee_zcl_color_control , ZBEE_ZCL_CID_COLOR_CONTROL , ZBEE_MFG_CODE_NONE , hf_zbee_zcl_color_control_attr_id , hf_zbee_zcl_color_control_srv_rx_cmd_id , - 1 , ( zbee_zcl_fn_attr_data ) dissect_zcl_color_control_attr_data ) ;\n }"}
{"idx": 4556, "target": 0, "func": "static void test_bug28934 ( ) {\n my_bool error = 0 ;\n MYSQL_BIND bind [ 5 ] ;\n MYSQL_STMT * stmt ;\n int cnt ;\n myquery ( mysql_query ( mysql , \"drop table if exists t1\" ) ) ;\n myquery ( mysql_query ( mysql , \"create table t1(id int)\" ) ) ;\n myquery ( mysql_query ( mysql , \"insert into t1 values(1),(2),(3),(4),(5)\" ) ) ;\n stmt = mysql_simple_prepare ( mysql , \"select * from t1 where id in(?,?,?,?,?)\" ) ;\n check_stmt ( stmt ) ;\n memset ( & bind , 0 , sizeof ( bind ) ) ;\n for ( cnt = 0 ;\n cnt < 5 ;\n cnt ++ ) {\n bind [ cnt ] . buffer_type = MYSQL_TYPE_LONG ;\n bind [ cnt ] . buffer = ( char * ) & cnt ;\n bind [ cnt ] . buffer_length = 0 ;\n }\n myquery ( mysql_stmt_bind_param ( stmt , bind ) ) ;\n stmt -> param_count = 2 ;\n error = mysql_stmt_execute ( stmt ) ;\n DIE_UNLESS ( error != 0 ) ;\n myerror ( NULL ) ;\n mysql_stmt_close ( stmt ) ;\n myquery ( mysql_query ( mysql , \"drop table t1\" ) ) ;\n }"}
{"idx": 4557, "target": 0, "func": "static int dissect_h245_MCLocationIndication ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MCLocationIndication , MCLocationIndication_sequence ) ;\n return offset ;\n }"}
{"idx": 4558, "target": 0, "func": "static void vmsvga_fifo_run ( struct vmsvga_state_s * s ) {\n uint32_t cmd , colour ;\n int args , len ;\n int x , y , dx , dy , width , height ;\n struct vmsvga_cursor_definition_s cursor ;\n uint32_t cmd_start ;\n len = vmsvga_fifo_length ( s ) ;\n while ( len > 0 ) {\n cmd_start = s -> cmd -> stop ;\n switch ( cmd = vmsvga_fifo_read ( s ) ) {\n case SVGA_CMD_UPDATE : case SVGA_CMD_UPDATE_VERBOSE : len -= 5 ;\n if ( len < 0 ) {\n goto rewind ;\n }\n x = vmsvga_fifo_read ( s ) ;\n y = vmsvga_fifo_read ( s ) ;\n width = vmsvga_fifo_read ( s ) ;\n height = vmsvga_fifo_read ( s ) ;\n vmsvga_update_rect_delayed ( s , x , y , width , height ) ;\n break ;\n case SVGA_CMD_RECT_FILL : len -= 6 ;\n if ( len < 0 ) {\n goto rewind ;\n }\n colour = vmsvga_fifo_read ( s ) ;\n x = vmsvga_fifo_read ( s ) ;\n y = vmsvga_fifo_read ( s ) ;\n width = vmsvga_fifo_read ( s ) ;\n height = vmsvga_fifo_read ( s ) ;\n # ifdef HW_FILL_ACCEL vmsvga_fill_rect ( s , colour , x , y , width , height ) ;\n break ;\n # else args = 0 ;\n goto badcmd ;\n # endif case SVGA_CMD_RECT_COPY : len -= 7 ;\n if ( len < 0 ) {\n goto rewind ;\n }\n x = vmsvga_fifo_read ( s ) ;\n y = vmsvga_fifo_read ( s ) ;\n dx = vmsvga_fifo_read ( s ) ;\n dy = vmsvga_fifo_read ( s ) ;\n width = vmsvga_fifo_read ( s ) ;\n height = vmsvga_fifo_read ( s ) ;\n # ifdef HW_RECT_ACCEL vmsvga_copy_rect ( s , x , y , dx , dy , width , height ) ;\n break ;\n # else args = 0 ;\n goto badcmd ;\n # endif case SVGA_CMD_DEFINE_CURSOR : len -= 8 ;\n if ( len < 0 ) {\n goto rewind ;\n }\n cursor . id = vmsvga_fifo_read ( s ) ;\n cursor . hot_x = vmsvga_fifo_read ( s ) ;\n cursor . hot_y = vmsvga_fifo_read ( s ) ;\n cursor . width = x = vmsvga_fifo_read ( s ) ;\n cursor . height = y = vmsvga_fifo_read ( s ) ;\n vmsvga_fifo_read ( s ) ;\n cursor . bpp = vmsvga_fifo_read ( s ) ;\n args = SVGA_BITMAP_SIZE ( x , y ) + SVGA_PIXMAP_SIZE ( x , y , cursor . bpp ) ;\n if ( SVGA_BITMAP_SIZE ( x , y ) > sizeof cursor . mask || SVGA_PIXMAP_SIZE ( x , y , cursor . bpp ) > sizeof cursor . image ) {\n goto badcmd ;\n }\n len -= args ;\n if ( len < 0 ) {\n goto rewind ;\n }\n for ( args = 0 ;\n args < SVGA_BITMAP_SIZE ( x , y ) ;\n args ++ ) {\n cursor . mask [ args ] = vmsvga_fifo_read_raw ( s ) ;\n }\n for ( args = 0 ;\n args < SVGA_PIXMAP_SIZE ( x , y , cursor . bpp ) ;\n args ++ ) {\n cursor . image [ args ] = vmsvga_fifo_read_raw ( s ) ;\n }\n # ifdef HW_MOUSE_ACCEL vmsvga_cursor_define ( s , & cursor ) ;\n break ;\n # else args = 0 ;\n goto badcmd ;\n # endif case SVGA_CMD_DEFINE_ALPHA_CURSOR : len -= 6 ;\n if ( len < 0 ) {\n goto rewind ;\n }\n vmsvga_fifo_read ( s ) ;\n vmsvga_fifo_read ( s ) ;\n vmsvga_fifo_read ( s ) ;\n x = vmsvga_fifo_read ( s ) ;\n y = vmsvga_fifo_read ( s ) ;\n args = x * y ;\n goto badcmd ;\n case SVGA_CMD_RECT_ROP_FILL : args = 6 ;\n goto badcmd ;\n case SVGA_CMD_RECT_ROP_COPY : args = 7 ;\n goto badcmd ;\n case SVGA_CMD_DRAW_GLYPH_CLIPPED : len -= 4 ;\n if ( len < 0 ) {\n goto rewind ;\n }\n vmsvga_fifo_read ( s ) ;\n vmsvga_fifo_read ( s ) ;\n args = 7 + ( vmsvga_fifo_read ( s ) >> 2 ) ;\n goto badcmd ;\n case SVGA_CMD_SURFACE_ALPHA_BLEND : args = 12 ;\n goto badcmd ;\n case SVGA_CMD_SURFACE_FILL : case SVGA_CMD_SURFACE_COPY : case SVGA_CMD_FRONT_ROP_FILL : case SVGA_CMD_FENCE : case SVGA_CMD_INVALID_CMD : break ;\n default : args = 0 ;\n badcmd : len -= args ;\n if ( len < 0 ) {\n goto rewind ;\n }\n while ( args -- ) {\n vmsvga_fifo_read ( s ) ;\n }\n printf ( \"%s: Unknown command 0x%02x in SVGA command FIFO\\n\" , __func__ , cmd ) ;\n break ;\n rewind : s -> cmd -> stop = cmd_start ;\n break ;\n }\n }\n s -> syncing = 0 ;\n }"}
{"idx": 4559, "target": 0, "func": "static int fetch_db_collation ( const char * db_name , char * db_cl_name , int db_cl_size ) {\n my_bool err_status = FALSE ;\n MYSQL_RES * db_cl_res ;\n MYSQL_ROW db_cl_row ;\n if ( mysql_select_db ( mysql , db_name ) ) {\n DB_error ( mysql , \"when selecting the database\" ) ;\n return 1 ;\n }\n if ( mysql_query_with_error_report ( mysql , & db_cl_res , \"select @@collation_database\" ) ) return 1 ;\n do {\n if ( mysql_num_rows ( db_cl_res ) != 1 ) {\n err_status = TRUE ;\n break ;\n }\n if ( ! ( db_cl_row = mysql_fetch_row ( db_cl_res ) ) ) {\n err_status = TRUE ;\n break ;\n }\n strncpy ( db_cl_name , db_cl_row [ 0 ] , db_cl_size - 1 ) ;\n db_cl_name [ db_cl_size - 1 ] = 0 ;\n }\n while ( FALSE ) ;\n mysql_free_result ( db_cl_res ) ;\n return err_status ? 1 : 0 ;\n }"}
{"idx": 4560, "target": 0, "func": "static inline void uprv_arrayCopy ( const double * src , int32_t srcStart , double * dst , int32_t dstStart , int32_t count ) {\n uprv_memcpy ( dst + dstStart , src + srcStart , ( size_t ) count * sizeof ( * src ) ) ;\n }"}
{"idx": 4561, "target": 0, "func": "unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 ) VAR ( 8 , 4 ) SUBPIX_VAR ( 8 , 4 ) SUBPIX_AVG_VAR ( 8 , 4 ) VAR ( 8 , 8 ) SUBPIX_VAR ( 8 , 8 ) SUBPIX_AVG_VAR ( 8 , 8 ) VAR ( 8 , 16 ) SUBPIX_VAR ( 8 , 16 ) SUBPIX_AVG_VAR ( 8 , 16 )"}
{"idx": 4562, "target": 0, "func": "static int file_to_archive ( struct cpio * cpio , const char * srcpath ) {\n const char * destpath ;\n struct archive_entry * entry , * spare ;\n size_t len ;\n int r ;\n entry = archive_entry_new ( ) ;\n if ( entry == NULL ) lafe_errc ( 1 , 0 , \"Couldn't allocate entry\" ) ;\n archive_entry_copy_sourcepath ( entry , srcpath ) ;\n r = archive_read_disk_entry_from_file ( cpio -> archive_read_disk , entry , - 1 , NULL ) ;\n if ( r < ARCHIVE_FAILED ) lafe_errc ( 1 , 0 , \"%s\" , archive_error_string ( cpio -> archive_read_disk ) ) ;\n if ( r < ARCHIVE_OK ) lafe_warnc ( 0 , \"%s\" , archive_error_string ( cpio -> archive_read_disk ) ) ;\n if ( r <= ARCHIVE_FAILED ) {\n cpio -> return_value = 1 ;\n return ( r ) ;\n }\n if ( cpio -> uid_override >= 0 ) {\n archive_entry_set_uid ( entry , cpio -> uid_override ) ;\n archive_entry_set_uname ( entry , cpio -> uname_override ) ;\n }\n if ( cpio -> gid_override >= 0 ) {\n archive_entry_set_gid ( entry , cpio -> gid_override ) ;\n archive_entry_set_gname ( entry , cpio -> gname_override ) ;\n }\n destpath = srcpath ;\n if ( cpio -> destdir ) {\n len = strlen ( cpio -> destdir ) + strlen ( srcpath ) + 8 ;\n if ( len >= cpio -> pass_destpath_alloc ) {\n while ( len >= cpio -> pass_destpath_alloc ) {\n cpio -> pass_destpath_alloc += 512 ;\n cpio -> pass_destpath_alloc *= 2 ;\n }\n free ( cpio -> pass_destpath ) ;\n cpio -> pass_destpath = malloc ( cpio -> pass_destpath_alloc ) ;\n if ( cpio -> pass_destpath == NULL ) lafe_errc ( 1 , ENOMEM , \"Can't allocate path buffer\" ) ;\n }\n strcpy ( cpio -> pass_destpath , cpio -> destdir ) ;\n strcat ( cpio -> pass_destpath , remove_leading_slash ( srcpath ) ) ;\n destpath = cpio -> pass_destpath ;\n }\n if ( cpio -> option_rename ) destpath = cpio_rename ( destpath ) ;\n if ( destpath == NULL ) return ( 0 ) ;\n archive_entry_copy_pathname ( entry , destpath ) ;\n spare = NULL ;\n if ( cpio -> linkresolver != NULL && archive_entry_filetype ( entry ) != AE_IFDIR ) {\n archive_entry_linkify ( cpio -> linkresolver , & entry , & spare ) ;\n }\n if ( entry != NULL ) {\n r = entry_to_archive ( cpio , entry ) ;\n archive_entry_free ( entry ) ;\n if ( spare != NULL ) {\n if ( r == 0 ) r = entry_to_archive ( cpio , spare ) ;\n archive_entry_free ( spare ) ;\n }\n }\n return ( r ) ;\n }"}
{"idx": 4563, "target": 0, "func": "void mime_hdr_presence_set ( MIMEHdrImpl * h , int well_known_str_index ) {\n const char * wks = hdrtoken_index_to_wks ( well_known_str_index ) ;\n mime_hdr_presence_set ( h , wks ) ;\n }"}
{"idx": 4564, "target": 0, "func": "REGRESSION_TEST ( SDK_API_TSStatCreate ) ( RegressionTest * test , int level , int * pstatus ) {\n const char name [ ] = \"regression.test.metric\" ;\n int id ;\n TestBox box ( test , pstatus ) ;\n box = REGRESSION_TEST_PASSED ;\n if ( TSStatFindName ( name , & id ) == TS_SUCCESS ) {\n box . check ( id >= 0 , \"TSStatFind(%s) failed with bogus ID %d\" , name , id ) ;\n }\n else {\n id = TSStatCreate ( name , TS_RECORDDATATYPE_COUNTER , TS_STAT_NON_PERSISTENT , TS_STAT_SYNC_SUM ) ;\n box . check ( id != TS_ERROR , \"TSStatCreate(%s) failed with %d\" , name , id ) ;\n }\n TSStatIntSet ( id , getpid ( ) ) ;\n TSStatIntIncrement ( id , 1 ) ;\n TSStatIntIncrement ( id , 1 ) ;\n TSMgmtInt value = TSStatIntGet ( id ) ;\n TSMgmtInt expected = getpid ( ) + 2 ;\n box . check ( expected >= value , \"TSStatIntGet(%s) gave %\" PRId64 \", expected at least %\" PRId64 , name , value , expected ) ;\n }"}
{"idx": 4565, "target": 0, "func": "int kvm_device_msix_assign ( KVMState * s , uint32_t dev_id ) {\n return kvm_assign_irq_internal ( s , dev_id , KVM_DEV_IRQ_HOST_MSIX | KVM_DEV_IRQ_GUEST_MSIX , 0 ) ;\n }"}
{"idx": 4566, "target": 0, "func": "static int zero_cmp ( void * s , uint8_t * a , uint8_t * b , int stride , int h ) {\n return 0 ;\n }"}
{"idx": 4567, "target": 0, "func": "char * PyString_AsString ( register PyObject * op ) {\n if ( ! PyString_Check ( op ) ) return string_getbuffer ( op ) ;\n return ( ( PyStringObject * ) op ) -> ob_sval ;\n }"}
{"idx": 4568, "target": 0, "func": "static guint32 dissect_netb_receive_continue ( tvbuff_t * tvb , packet_info * pinfo _U_ , int offset , proto_tree * tree ) {\n nb_xmit_corrl ( tvb , offset , tree ) ;\n nb_remote_session ( tvb , offset , tree ) ;\n nb_local_session ( tvb , offset , tree ) ;\n return 0 ;\n }"}
{"idx": 4569, "target": 0, "func": "static void arith_normalise ( ArithCoder * c ) {\n for ( ;\n ;\n ) {\n if ( c -> high >= 0x8000 ) {\n if ( c -> low < 0x8000 ) {\n if ( c -> low >= 0x4000 && c -> high < 0xC000 ) {\n c -> value -= 0x4000 ;\n c -> low -= 0x4000 ;\n c -> high -= 0x4000 ;\n }\n else {\n return ;\n }\n }\n else {\n c -> value -= 0x8000 ;\n c -> low -= 0x8000 ;\n c -> high -= 0x8000 ;\n }\n }\n c -> value <<= 1 ;\n c -> low <<= 1 ;\n c -> high <<= 1 ;\n c -> high |= 1 ;\n c -> value |= get_bits1 ( c -> gbc . gb ) ;\n }\n }"}
{"idx": 4570, "target": 0, "func": "int main ( void ) {\n return EXIT_AM_SKIP ;\n }"}
{"idx": 4571, "target": 0, "func": "static int token_continue ( i_ctx_t * i_ctx_p , scanner_state * pstate , bool save ) {\n os_ptr op = osp ;\n int code ;\n ref token ;\n make_null ( osp ) ;\n pop ( 1 ) ;\n again : code = gs_scan_token ( i_ctx_p , & token , pstate ) ;\n op = osp ;\n switch ( code ) {\n default : if ( code > 0 ) code = gs_note_error ( gs_error_syntaxerror ) ;\n gs_scanner_error_object ( i_ctx_p , pstate , & i_ctx_p -> error_object ) ;\n break ;\n case scan_BOS : code = 0 ;\n case 0 : push ( 2 ) ;\n ref_assign ( op - 1 , & token ) ;\n make_true ( op ) ;\n break ;\n case scan_EOF : push ( 1 ) ;\n make_false ( op ) ;\n code = 0 ;\n break ;\n case scan_Refill : code = gs_scan_handle_refill ( i_ctx_p , pstate , save , ztoken_continue ) ;\n switch ( code ) {\n case 0 : goto again ;\n case o_push_estack : return code ;\n }\n break ;\n }\n if ( code <= 0 && ! save ) {\n ifree_object ( pstate , \"token_continue\" ) ;\n }\n return code ;\n }"}
{"idx": 4572, "target": 0, "func": "static guint16 de_day_saving_time ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n curr_offset = offset ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , curr_offset << 3 , 6 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_dst_adjustment , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n EXTRANEOUS_DATA_CHECK ( len , curr_offset - offset , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 4573, "target": 0, "func": "char * TSHttpTxnEffectiveUrlStringGet ( TSHttpTxn txnp , int * length ) {\n sdk_assert ( TS_SUCCESS == sdk_sanity_check_txn ( txnp ) ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) length ) == TS_SUCCESS ) ;\n HttpSM * sm = reinterpret_cast < HttpSM * > ( txnp ) ;\n return sm -> t_state . hdr_info . client_request . url_string_get ( nullptr , length ) ;\n }"}
{"idx": 4574, "target": 0, "func": "static void pitch_enhancer ( float * fixed_vector , float voice_fac ) {\n int i ;\n float cpe = 0.125 * ( 1 + voice_fac ) ;\n float last = fixed_vector [ 0 ] ;\n fixed_vector [ 0 ] -= cpe * fixed_vector [ 1 ] ;\n for ( i = 1 ;\n i < AMRWB_SFR_SIZE - 1 ;\n i ++ ) {\n float cur = fixed_vector [ i ] ;\n fixed_vector [ i ] -= cpe * ( last + fixed_vector [ i + 1 ] ) ;\n last = cur ;\n }\n fixed_vector [ AMRWB_SFR_SIZE - 1 ] -= cpe * last ;\n }"}
{"idx": 4575, "target": 0, "func": "static int dissect_h245_ConferenceResponse ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_ConferenceResponse , ConferenceResponse_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 4576, "target": 0, "func": "static const char * cmd_hash_method_rx ( cmd_parms * cmd , void * _dcfg , const char * p1 , const char * p2 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n rule_exception * re = apr_pcalloc ( cmd -> pool , sizeof ( hash_method ) ) ;\n const char * _p2 = apr_pstrdup ( cmd -> pool , p2 ) ;\n if ( dcfg == NULL ) return NULL ;\n if ( strcasecmp ( p1 , \"HashHref\" ) == 0 ) {\n re -> type = HASH_URL_HREF_HASH_RX ;\n re -> param = _p2 ;\n re -> param_data = msc_pregcomp ( cmd -> pool , p2 , 0 , NULL , NULL ) ;\n if ( re -> param_data == NULL ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid regular expression: %s\" , p2 ) ;\n }\n dcfg -> crypto_hash_href_rx = 1 ;\n }\n else if ( strcasecmp ( p1 , \"HashFormAction\" ) == 0 ) {\n re -> type = HASH_URL_FACTION_HASH_RX ;\n re -> param = _p2 ;\n re -> param_data = msc_pregcomp ( cmd -> pool , p2 , 0 , NULL , NULL ) ;\n if ( re -> param_data == NULL ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid regular expression: %s\" , p2 ) ;\n }\n dcfg -> crypto_hash_faction_rx = 1 ;\n }\n else if ( strcasecmp ( p1 , \"HashLocation\" ) == 0 ) {\n re -> type = HASH_URL_LOCATION_HASH_RX ;\n re -> param = _p2 ;\n re -> param_data = msc_pregcomp ( cmd -> pool , p2 , 0 , NULL , NULL ) ;\n if ( re -> param_data == NULL ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid regular expression: %s\" , p2 ) ;\n }\n dcfg -> crypto_hash_location_rx = 1 ;\n }\n else if ( strcasecmp ( p1 , \"HashIframeSrc\" ) == 0 ) {\n re -> type = HASH_URL_IFRAMESRC_HASH_RX ;\n re -> param = _p2 ;\n re -> param_data = msc_pregcomp ( cmd -> pool , p2 , 0 , NULL , NULL ) ;\n if ( re -> param_data == NULL ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid regular expression: %s\" , p2 ) ;\n }\n dcfg -> crypto_hash_iframesrc_rx = 1 ;\n }\n else if ( strcasecmp ( p1 , \"HashFrameSrc\" ) == 0 ) {\n re -> type = HASH_URL_FRAMESRC_HASH_RX ;\n re -> param = _p2 ;\n re -> param_data = msc_pregcomp ( cmd -> pool , p2 , 0 , NULL , NULL ) ;\n if ( re -> param_data == NULL ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid regular expression: %s\" , p2 ) ;\n }\n dcfg -> crypto_hash_framesrc_rx = 1 ;\n }\n * ( hash_method * * ) apr_array_push ( dcfg -> hash_method ) = re ;\n return NULL ;\n }"}
{"idx": 4577, "target": 0, "func": "static void test_bug27876 ( ) {\n int rc ;\n MYSQL_RES * result ;\n uchar utf8_func [ ] = {\n 0xd1 , 0x84 , 0xd1 , 0x83 , 0xd0 , 0xbd , 0xd0 , 0xba , 0xd1 , 0x86 , 0xd0 , 0xb8 , 0xd0 , 0xb9 , 0xd0 , 0xba , 0xd0 , 0xb0 , 0x00 }\n ;\n uchar utf8_param [ ] = {\n 0xd0 , 0xbf , 0xd0 , 0xb0 , 0xd1 , 0x80 , 0xd0 , 0xb0 , 0xd0 , 0xbc , 0xd0 , 0xb5 , 0xd1 , 0x82 , 0xd1 , 0x8a , 0xd1 , 0x80 , 0x5f , 0xd0 , 0xb2 , 0xd0 , 0xb5 , 0xd1 , 0x80 , 0xd1 , 0x81 , 0xd0 , 0xb8 , 0xd1 , 0x8f , 0x00 }\n ;\n char query [ 500 ] ;\n DBUG_ENTER ( \"test_bug27876\" ) ;\n myheader ( \"test_bug27876\" ) ;\n rc = mysql_query ( mysql , \"set names utf8\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"select version()\" ) ;\n myquery ( rc ) ;\n result = mysql_store_result ( mysql ) ;\n mytest ( result ) ;\n mysql_free_result ( result ) ;\n sprintf ( query , \"DROP FUNCTION IF EXISTS %s\" , ( char * ) utf8_func ) ;\n rc = mysql_query ( mysql , query ) ;\n myquery ( rc ) ;\n sprintf ( query , \"CREATE FUNCTION %s( %s VARCHAR(25))\" \" RETURNS VARCHAR(25) DETERMINISTIC RETURN %s\" , ( char * ) utf8_func , ( char * ) utf8_param , ( char * ) utf8_param ) ;\n rc = mysql_query ( mysql , query ) ;\n myquery ( rc ) ;\n sprintf ( query , \"SELECT %s(VERSION())\" , ( char * ) utf8_func ) ;\n rc = mysql_query ( mysql , query ) ;\n myquery ( rc ) ;\n result = mysql_store_result ( mysql ) ;\n mytest ( result ) ;\n mysql_free_result ( result ) ;\n sprintf ( query , \"DROP FUNCTION %s\" , ( char * ) utf8_func ) ;\n rc = mysql_query ( mysql , query ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"set names default\" ) ;\n myquery ( rc ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 4578, "target": 0, "func": "static void cirrus_reset ( void * opaque ) {\n CirrusVGAState * s = opaque ;\n vga_common_reset ( & s -> vga ) ;\n unmap_linear_vram ( s ) ;\n s -> vga . sr [ 0x06 ] = 0x0f ;\n if ( s -> device_id == CIRRUS_ID_CLGD5446 ) {\n s -> vga . sr [ 0x1F ] = 0x2d ;\n s -> vga . gr [ 0x18 ] = 0x0f ;\n s -> vga . sr [ 0x0f ] = 0x98 ;\n s -> vga . sr [ 0x17 ] = 0x20 ;\n s -> vga . sr [ 0x15 ] = 0x04 ;\n }\n else {\n s -> vga . sr [ 0x1F ] = 0x22 ;\n s -> vga . sr [ 0x0F ] = CIRRUS_MEMSIZE_2M ;\n s -> vga . sr [ 0x17 ] = s -> bustype ;\n s -> vga . sr [ 0x15 ] = 0x03 ;\n }\n s -> vga . cr [ 0x27 ] = s -> device_id ;\n s -> cirrus_hidden_dac_lockindex = 5 ;\n s -> cirrus_hidden_dac_data = 0 ;\n }"}
{"idx": 4579, "target": 0, "func": "void vp9_convolve8_avg_horiz_c ( const uint8_t * src , ptrdiff_t src_stride , uint8_t * dst , ptrdiff_t dst_stride , const int16_t * filter_x , int x_step_q4 , const int16_t * filter_y , int y_step_q4 , int w , int h ) {\n const InterpKernel * const filters_x = get_filter_base ( filter_x ) ;\n const int x0_q4 = get_filter_offset ( filter_x , filters_x ) ;\n ( void ) filter_y ;\n ( void ) y_step_q4 ;\n convolve_avg_horiz ( src , src_stride , dst , dst_stride , filters_x , x0_q4 , x_step_q4 , w , h ) ;\n }"}
{"idx": 4580, "target": 0, "func": "static int decode_cabac_mb_mvd ( H264Context * h , int ctxbase , int amvd , int * mvda ) {\n int mvd ;\n if ( ! get_cabac ( & h -> cabac , & h -> cabac_state [ ctxbase + ( ( amvd - 3 ) >> ( INT_BIT - 1 ) ) + ( ( amvd - 33 ) >> ( INT_BIT - 1 ) ) + 2 ] ) ) {\n * mvda = 0 ;\n return 0 ;\n }\n mvd = 1 ;\n ctxbase += 3 ;\n while ( mvd < 9 && get_cabac ( & h -> cabac , & h -> cabac_state [ ctxbase ] ) ) {\n if ( mvd < 4 ) ctxbase ++ ;\n mvd ++ ;\n }\n if ( mvd >= 9 ) {\n int k = 3 ;\n while ( get_cabac_bypass ( & h -> cabac ) ) {\n mvd += 1 << k ;\n k ++ ;\n if ( k > 24 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"overflow in decode_cabac_mb_mvd\\n\" ) ;\n return INT_MIN ;\n }\n }\n while ( k -- ) {\n mvd += get_cabac_bypass ( & h -> cabac ) << k ;\n }\n * mvda = mvd < 70 ? mvd : 70 ;\n }\n else * mvda = mvd ;\n return get_cabac_bypass_sign ( & h -> cabac , - mvd ) ;\n }"}
{"idx": 4581, "target": 1, "func": "void vp9_iht16x16_add ( TX_TYPE tx_type , const int16_t * input , uint8_t * dest , int stride , int eob ) {\n if ( tx_type == DCT_DCT ) {\n vp9_idct16x16_add ( input , dest , stride , eob ) ;\n }\n else {\n vp9_iht16x16_256_add ( input , dest , stride , tx_type ) ;\n }\n }"}
{"idx": 4582, "target": 0, "func": "int qemuMonitorTextRemoveHostNetwork ( qemuMonitorPtr mon , int vlan , const char * netname ) {\n char * cmd ;\n char * reply = NULL ;\n int ret = - 1 ;\n if ( virAsprintf ( & cmd , \"host_net_remove %d %s\" , vlan , netname ) < 0 ) {\n virReportOOMError ( ) ;\n return - 1 ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"failed to remove host network in qemu with '%s'\" ) , cmd ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( cmd ) ;\n VIR_FREE ( reply ) ;\n return ret ;\n }"}
{"idx": 4583, "target": 0, "func": "static bool e1000e_has_rxbufs ( E1000ECore * core , const E1000E_RingInfo * r , size_t total_size ) {\n uint32_t bufs = e1000e_ring_free_descr_num ( core , r ) ;\n trace_e1000e_rx_has_buffers ( r -> idx , bufs , total_size , core -> rx_desc_buf_size ) ;\n return total_size <= bufs / ( core -> rx_desc_len / E1000_MIN_RX_DESC_LEN ) * core -> rx_desc_buf_size ;\n }"}
{"idx": 4584, "target": 0, "func": "void jbig2_get_region_segment_info ( Jbig2RegionSegmentInfo * info , const uint8_t * segment_data ) {\n info -> width = jbig2_get_int32 ( segment_data ) ;\n info -> height = jbig2_get_int32 ( segment_data + 4 ) ;\n info -> x = jbig2_get_int32 ( segment_data + 8 ) ;\n info -> y = jbig2_get_int32 ( segment_data + 12 ) ;\n info -> flags = segment_data [ 16 ] ;\n info -> op = ( Jbig2ComposeOp ) ( info -> flags & 0x7 ) ;\n }"}
{"idx": 4585, "target": 0, "func": "static inline Quantum GetPixelReadMask ( const Image * restrict image , const Quantum * restrict pixel ) {\n if ( image -> channel_map [ ReadMaskPixelChannel ] . traits == UndefinedPixelTrait ) return ( ( Quantum ) QuantumRange ) ;\n return ( pixel [ image -> channel_map [ ReadMaskPixelChannel ] . offset ] ) ;\n }"}
{"idx": 4586, "target": 0, "func": "void qemuAgentClose ( qemuAgentPtr mon ) {\n if ( ! mon ) return ;\n VIR_DEBUG ( \"mon=%p\" , mon ) ;\n virObjectLock ( mon ) ;\n if ( mon -> fd >= 0 ) {\n if ( mon -> watch ) virEventRemoveHandle ( mon -> watch ) ;\n VIR_FORCE_CLOSE ( mon -> fd ) ;\n }\n qemuAgentNotifyCloseLocked ( mon ) ;\n virObjectUnlock ( mon ) ;\n virObjectUnref ( mon ) ;\n }"}
{"idx": 4587, "target": 0, "func": "static void http_chunked_test ( void ) {\n struct bufferevent * bev ;\n int fd ;\n const char * http_request ;\n short port = - 1 ;\n struct timeval tv_start , tv_end ;\n struct evhttp_connection * evcon = NULL ;\n struct evhttp_request * req = NULL ;\n int i ;\n test_ok = 0 ;\n fprintf ( stdout , \"Testing Chunked HTTP Reply: \" ) ;\n http = http_setup ( & port , NULL ) ;\n fd = http_connect ( \"127.0.0.1\" , port ) ;\n bev = bufferevent_new ( fd , http_chunked_readcb , http_chunked_writecb , http_chunked_errorcb , NULL ) ;\n http_request = \"GET /chunked HTTP/1.1\\r\\n\" \"Host: somehost\\r\\n\" \"Connection: close\\r\\n\" \"\\r\\n\" ;\n bufferevent_write ( bev , http_request , strlen ( http_request ) ) ;\n evutil_gettimeofday ( & tv_start , NULL ) ;\n event_dispatch ( ) ;\n evutil_gettimeofday ( & tv_end , NULL ) ;\n evutil_timersub ( & tv_end , & tv_start , & tv_end ) ;\n if ( tv_end . tv_sec >= 1 ) {\n fprintf ( stdout , \"FAILED (time)\\n\" ) ;\n exit ( 1 ) ;\n }\n if ( test_ok != 2 ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n evcon = evhttp_connection_new ( \"127.0.0.1\" , port ) ;\n if ( evcon == NULL ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n test_ok = 0 ;\n req = evhttp_request_new ( http_chunked_request_done , NULL ) ;\n evhttp_add_header ( req -> output_headers , \"Host\" , \"somehost\" ) ;\n if ( evhttp_make_request ( evcon , req , EVHTTP_REQ_GET , \"/chunked\" ) == - 1 ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n event_dispatch ( ) ;\n if ( test_ok != 1 ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n }\n evhttp_connection_free ( evcon ) ;\n evhttp_free ( http ) ;\n fprintf ( stdout , \"OK\\n\" ) ;\n }"}
{"idx": 4588, "target": 0, "func": "Const * make_greater_string ( const Const * str_const , FmgrInfo * ltproc , Oid collation ) {\n Oid datatype = str_const -> consttype ;\n char * workstr ;\n int len ;\n Datum cmpstr ;\n text * cmptxt = NULL ;\n mbcharacter_incrementer charinc ;\n if ( datatype == NAMEOID ) {\n workstr = DatumGetCString ( DirectFunctionCall1 ( nameout , str_const -> constvalue ) ) ;\n len = strlen ( workstr ) ;\n cmpstr = str_const -> constvalue ;\n }\n else if ( datatype == BYTEAOID ) {\n bytea * bstr = DatumGetByteaP ( str_const -> constvalue ) ;\n len = VARSIZE ( bstr ) - VARHDRSZ ;\n workstr = ( char * ) palloc ( len ) ;\n memcpy ( workstr , VARDATA ( bstr ) , len ) ;\n if ( ( Pointer ) bstr != DatumGetPointer ( str_const -> constvalue ) ) pfree ( bstr ) ;\n cmpstr = str_const -> constvalue ;\n }\n else {\n workstr = TextDatumGetCString ( str_const -> constvalue ) ;\n len = strlen ( workstr ) ;\n if ( lc_collate_is_c ( collation ) || len == 0 ) cmpstr = str_const -> constvalue ;\n else {\n static char suffixchar = 0 ;\n static Oid suffixcollation = 0 ;\n if ( ! suffixchar || suffixcollation != collation ) {\n char * best ;\n best = \"Z\" ;\n if ( varstr_cmp ( best , 1 , \"z\" , 1 , collation ) < 0 ) best = \"z\" ;\n if ( varstr_cmp ( best , 1 , \"y\" , 1 , collation ) < 0 ) best = \"y\" ;\n if ( varstr_cmp ( best , 1 , \"9\" , 1 , collation ) < 0 ) best = \"9\" ;\n suffixchar = * best ;\n suffixcollation = collation ;\n }\n cmptxt = ( text * ) palloc ( VARHDRSZ + len + 1 ) ;\n SET_VARSIZE ( cmptxt , VARHDRSZ + len + 1 ) ;\n memcpy ( VARDATA ( cmptxt ) , workstr , len ) ;\n * ( VARDATA ( cmptxt ) + len ) = suffixchar ;\n cmpstr = PointerGetDatum ( cmptxt ) ;\n }\n }\n if ( datatype == BYTEAOID ) charinc = byte_increment ;\n else charinc = pg_database_encoding_character_incrementer ( ) ;\n while ( len > 0 ) {\n int charlen ;\n unsigned char * lastchar ;\n if ( datatype == BYTEAOID ) charlen = 1 ;\n else charlen = len - pg_mbcliplen ( workstr , len , len - 1 ) ;\n lastchar = ( unsigned char * ) ( workstr + len - charlen ) ;\n while ( charinc ( lastchar , charlen ) ) {\n Const * workstr_const ;\n if ( datatype == BYTEAOID ) workstr_const = string_to_bytea_const ( workstr , len ) ;\n else workstr_const = string_to_const ( workstr , datatype ) ;\n if ( DatumGetBool ( FunctionCall2Coll ( ltproc , collation , cmpstr , workstr_const -> constvalue ) ) ) {\n if ( cmptxt ) pfree ( cmptxt ) ;\n pfree ( workstr ) ;\n return workstr_const ;\n }\n pfree ( DatumGetPointer ( workstr_const -> constvalue ) ) ;\n pfree ( workstr_const ) ;\n }\n len -= charlen ;\n workstr [ len ] = '\\0' ;\n }\n if ( cmptxt ) pfree ( cmptxt ) ;\n pfree ( workstr ) ;\n return NULL ;\n }"}
{"idx": 4589, "target": 0, "func": "static int dissect_DEVMODE_CTR ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n proto_tree * subtree ;\n guint32 size ;\n subtree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_DEVMODE_CTR , NULL , \"Devicemode container\" ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_devmodectr_size , & size ) ;\n offset = dissect_ndr_pointer ( tvb , offset , pinfo , subtree , di , drep , dissect_DEVMODE , NDR_POINTER_UNIQUE , \"Devicemode\" , - 1 ) ;\n return offset ;\n }"}
{"idx": 4590, "target": 0, "func": "static int monitor_key_compare ( gconstpointer a , gconstpointer data ) {\n const Monitor * monitor ;\n const Monitor * compare_monitor ;\n monitor = a ;\n compare_monitor = data ;\n if ( monitor -> client < compare_monitor -> client ) {\n return - 1 ;\n }\n if ( monitor -> client > compare_monitor -> client ) {\n return + 1 ;\n }\n if ( monitor -> file < compare_monitor -> file ) {\n return - 1 ;\n }\n if ( monitor -> file > compare_monitor -> file ) {\n return + 1 ;\n }\n return 0 ;\n }"}
{"idx": 4591, "target": 0, "func": "int ff_mpv_frame_size_alloc ( MpegEncContext * s , int linesize ) {\n int alloc_size = FFALIGN ( FFABS ( linesize ) + 32 , 32 ) ;\n FF_ALLOCZ_OR_GOTO ( s -> avctx , s -> edge_emu_buffer , alloc_size * 2 * 24 , fail ) ;\n FF_ALLOCZ_OR_GOTO ( s -> avctx , s -> me . scratchpad , alloc_size * 2 * 16 * 2 , fail ) s -> me . temp = s -> me . scratchpad ;\n s -> rd_scratchpad = s -> me . scratchpad ;\n s -> b_scratchpad = s -> me . scratchpad ;\n s -> obmc_scratchpad = s -> me . scratchpad + 16 ;\n return 0 ;\n fail : av_freep ( & s -> edge_emu_buffer ) ;\n return AVERROR ( ENOMEM ) ;\n }"}
{"idx": 4592, "target": 0, "func": "static void pdf_show_path ( fz_context * ctx , pdf_run_processor * pr , int doclose , int dofill , int dostroke , int even_odd ) {\n pdf_gstate * gstate = pr -> gstate + pr -> gtop ;\n fz_path * path ;\n fz_rect bbox ;\n softmask_save softmask = {\n NULL }\n ;\n int knockout_group = 0 ;\n if ( dostroke ) {\n if ( pr -> dev -> flags & ( FZ_DEVFLAG_STROKECOLOR_UNDEFINED | FZ_DEVFLAG_LINEJOIN_UNDEFINED | FZ_DEVFLAG_LINEWIDTH_UNDEFINED ) ) pr -> dev -> flags |= FZ_DEVFLAG_UNCACHEABLE ;\n else if ( gstate -> stroke_state -> dash_len != 0 && pr -> dev -> flags & ( FZ_DEVFLAG_STARTCAP_UNDEFINED | FZ_DEVFLAG_DASHCAP_UNDEFINED | FZ_DEVFLAG_ENDCAP_UNDEFINED ) ) pr -> dev -> flags |= FZ_DEVFLAG_UNCACHEABLE ;\n else if ( gstate -> stroke_state -> linejoin == FZ_LINEJOIN_MITER && ( pr -> dev -> flags & FZ_DEVFLAG_MITERLIMIT_UNDEFINED ) ) pr -> dev -> flags |= FZ_DEVFLAG_UNCACHEABLE ;\n }\n if ( dofill ) {\n if ( pr -> dev -> flags & FZ_DEVFLAG_FILLCOLOR_UNDEFINED ) pr -> dev -> flags |= FZ_DEVFLAG_UNCACHEABLE ;\n }\n path = pr -> path ;\n pr -> path = fz_new_path ( ctx ) ;\n fz_try ( ctx ) {\n if ( doclose ) fz_closepath ( ctx , path ) ;\n fz_bound_path ( ctx , path , ( dostroke ? gstate -> stroke_state : NULL ) , & gstate -> ctm , & bbox ) ;\n if ( pr -> clip ) {\n gstate -> clip_depth ++ ;\n fz_clip_path ( ctx , pr -> dev , path , pr -> clip_even_odd , & gstate -> ctm , & bbox ) ;\n pr -> clip = 0 ;\n }\n if ( pr -> super . hidden ) dostroke = dofill = 0 ;\n if ( dofill || dostroke ) gstate = pdf_begin_group ( ctx , pr , & bbox , & softmask ) ;\n if ( dofill && dostroke ) {\n if ( gstate -> stroke . alpha == 0 ) {\n }\n else if ( gstate -> stroke . alpha == 1.0f && gstate -> blendmode == FZ_BLEND_NORMAL ) {\n }\n else {\n knockout_group = 1 ;\n fz_begin_group ( ctx , pr -> dev , & bbox , NULL , 0 , 1 , FZ_BLEND_NORMAL , 1 ) ;\n }\n }\n if ( dofill ) {\n switch ( gstate -> fill . kind ) {\n case PDF_MAT_NONE : break ;\n case PDF_MAT_COLOR : fz_fill_path ( ctx , pr -> dev , path , even_odd , & gstate -> ctm , gstate -> fill . colorspace , gstate -> fill . v , gstate -> fill . alpha , & gstate -> fill . color_params ) ;\n break ;\n case PDF_MAT_PATTERN : if ( gstate -> fill . pattern ) {\n fz_clip_path ( ctx , pr -> dev , path , even_odd , & gstate -> ctm , & bbox ) ;\n pdf_show_pattern ( ctx , pr , gstate -> fill . pattern , & pr -> gstate [ gstate -> fill . gstate_num ] , & bbox , PDF_FILL ) ;\n fz_pop_clip ( ctx , pr -> dev ) ;\n }\n break ;\n case PDF_MAT_SHADE : if ( gstate -> fill . shade ) {\n fz_clip_path ( ctx , pr -> dev , path , even_odd , & gstate -> ctm , & bbox ) ;\n fz_fill_shade ( ctx , pr -> dev , gstate -> fill . shade , & pr -> gstate [ gstate -> fill . gstate_num ] . ctm , gstate -> fill . alpha , & gstate -> fill . color_params ) ;\n fz_pop_clip ( ctx , pr -> dev ) ;\n }\n break ;\n }\n }\n if ( dostroke ) {\n switch ( gstate -> stroke . kind ) {\n case PDF_MAT_NONE : break ;\n case PDF_MAT_COLOR : fz_stroke_path ( ctx , pr -> dev , path , gstate -> stroke_state , & gstate -> ctm , gstate -> stroke . colorspace , gstate -> stroke . v , gstate -> stroke . alpha , & gstate -> stroke . color_params ) ;\n break ;\n case PDF_MAT_PATTERN : if ( gstate -> stroke . pattern ) {\n fz_clip_stroke_path ( ctx , pr -> dev , path , gstate -> stroke_state , & gstate -> ctm , & bbox ) ;\n pdf_show_pattern ( ctx , pr , gstate -> stroke . pattern , & pr -> gstate [ gstate -> stroke . gstate_num ] , & bbox , PDF_STROKE ) ;\n fz_pop_clip ( ctx , pr -> dev ) ;\n }\n break ;\n case PDF_MAT_SHADE : if ( gstate -> stroke . shade ) {\n fz_clip_stroke_path ( ctx , pr -> dev , path , gstate -> stroke_state , & gstate -> ctm , & bbox ) ;\n fz_fill_shade ( ctx , pr -> dev , gstate -> stroke . shade , & pr -> gstate [ gstate -> stroke . gstate_num ] . ctm , gstate -> stroke . alpha , & gstate -> stroke . color_params ) ;\n fz_pop_clip ( ctx , pr -> dev ) ;\n }\n break ;\n }\n }\n if ( knockout_group ) fz_end_group ( ctx , pr -> dev ) ;\n if ( dofill || dostroke ) pdf_end_group ( ctx , pr , & softmask ) ;\n }\n fz_always ( ctx ) {\n fz_drop_path ( ctx , path ) ;\n }\n fz_catch ( ctx ) {\n fz_rethrow ( ctx ) ;\n }\n }"}
{"idx": 4593, "target": 0, "func": "static void option_error_reporter ( enum loglevel level , const char * format , ... ) {\n va_list args ;\n va_start ( args , format ) ;\n if ( level == ERROR_LEVEL || ! opt_bootstrap || global_system_variables . log_warnings ) {\n vprint_msg_to_log ( level , format , args ) ;\n }\n va_end ( args ) ;\n }"}
{"idx": 4594, "target": 0, "func": "static int try_grow_lower ( MAIN_WINDOW_REC * window , int count ) {\n MAIN_WINDOW_REC * grow_win ;\n grow_win = mainwindows_find_lower ( window ) ;\n if ( grow_win != NULL ) {\n MAIN_WINDOW_REC * win ;\n GSList * grow_list , * shrink_list , * tmp ;\n grow_list = mainwindows_get_line ( grow_win ) ;\n shrink_list = mainwindows_get_line ( window ) ;\n for ( tmp = grow_list ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n win = tmp -> data ;\n win -> first_line -= count ;\n }\n for ( tmp = shrink_list ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n win = tmp -> data ;\n win -> last_line -= count ;\n }\n mainwindows_resize_two ( grow_list , shrink_list , count ) ;\n g_slist_free ( shrink_list ) ;\n g_slist_free ( grow_list ) ;\n }\n return grow_win != NULL ;\n }"}
{"idx": 4595, "target": 0, "func": "static void free_tree_contexts ( PC_TREE * tree ) {\n free_mode_context ( & tree -> none ) ;\n free_mode_context ( & tree -> horizontal [ 0 ] ) ;\n free_mode_context ( & tree -> horizontal [ 1 ] ) ;\n free_mode_context ( & tree -> vertical [ 0 ] ) ;\n free_mode_context ( & tree -> vertical [ 1 ] ) ;\n }"}
{"idx": 4596, "target": 0, "func": "static struct subre * parsebranch ( struct vars * v , int stopper , int type , struct state * left , struct state * right , int partial ) {\n struct state * lp ;\n int seencontent ;\n struct subre * t ;\n lp = left ;\n seencontent = 0 ;\n t = subre ( v , '=' , 0 , left , right ) ;\n NOERRN ( ) ;\n while ( ! SEE ( '|' ) && ! SEE ( stopper ) && ! SEE ( EOS ) ) {\n if ( seencontent ) {\n lp = newstate ( v -> nfa ) ;\n NOERRN ( ) ;\n moveins ( v -> nfa , right , lp ) ;\n }\n seencontent = 1 ;\n parseqatom ( v , stopper , type , lp , right , t ) ;\n NOERRN ( ) ;\n }\n if ( ! seencontent ) {\n if ( ! partial ) NOTE ( REG_UUNSPEC ) ;\n assert ( lp == left ) ;\n EMPTYARC ( left , right ) ;\n }\n return t ;\n }"}
{"idx": 4597, "target": 0, "func": "void proto_reg_handoff_zbee_zcl_appl_evtalt ( void ) {\n dissector_handle_t appl_evtalt_handle ;\n appl_evtalt_handle = find_dissector ( ZBEE_PROTOABBREV_ZCL_APPLEVTALT ) ;\n dissector_add_uint ( \"zbee.zcl.cluster\" , ZBEE_ZCL_CID_APPLIANCE_EVENTS_AND_ALERT , appl_evtalt_handle ) ;\n zbee_zcl_init_cluster ( proto_zbee_zcl_appl_evtalt , ett_zbee_zcl_appl_evtalt , ZBEE_ZCL_CID_APPLIANCE_EVENTS_AND_ALERT , - 1 , hf_zbee_zcl_appl_evtalt_srv_rx_cmd_id , hf_zbee_zcl_appl_evtalt_srv_tx_cmd_id , NULL ) ;\n }"}
{"idx": 4598, "target": 0, "func": "static int ref_frames ( Vp3DecodeContext * dst , Vp3DecodeContext * src ) {\n int ret ;\n if ( ( ret = ref_frame ( dst , & dst -> current_frame , & src -> current_frame ) ) < 0 || ( ret = ref_frame ( dst , & dst -> golden_frame , & src -> golden_frame ) ) < 0 || ( ret = ref_frame ( dst , & dst -> last_frame , & src -> last_frame ) ) < 0 ) return ret ;\n return 0 ;\n }"}
{"idx": 4599, "target": 0, "func": "static int unpack_vlcs ( Vp3DecodeContext * s , GetBitContext * gb , VLC * table , int coeff_index , int plane , int eob_run ) {\n int i , j = 0 ;\n int token ;\n int zero_run = 0 ;\n int16_t coeff = 0 ;\n int bits_to_get ;\n int blocks_ended ;\n int coeff_i = 0 ;\n int num_coeffs = s -> num_coded_frags [ plane ] [ coeff_index ] ;\n int16_t * dct_tokens = s -> dct_tokens [ plane ] [ coeff_index ] ;\n int * coded_fragment_list = s -> coded_fragment_list [ plane ] ;\n Vp3Fragment * all_fragments = s -> all_fragments ;\n VLC_TYPE ( * vlc_table ) [ 2 ] = table -> table ;\n if ( num_coeffs < 0 ) av_log ( s -> avctx , AV_LOG_ERROR , \"Invalid number of coefficents at level %d\\n\" , coeff_index ) ;\n if ( eob_run > num_coeffs ) {\n coeff_i = blocks_ended = num_coeffs ;\n eob_run -= num_coeffs ;\n }\n else {\n coeff_i = blocks_ended = eob_run ;\n eob_run = 0 ;\n }\n if ( blocks_ended ) dct_tokens [ j ++ ] = blocks_ended << 2 ;\n while ( coeff_i < num_coeffs && get_bits_left ( gb ) > 0 ) {\n token = get_vlc2 ( gb , vlc_table , 11 , 3 ) ;\n if ( ( unsigned ) token <= 6U ) {\n eob_run = eob_run_base [ token ] ;\n if ( eob_run_get_bits [ token ] ) eob_run += get_bits ( gb , eob_run_get_bits [ token ] ) ;\n if ( eob_run > num_coeffs - coeff_i ) {\n dct_tokens [ j ++ ] = TOKEN_EOB ( num_coeffs - coeff_i ) ;\n blocks_ended += num_coeffs - coeff_i ;\n eob_run -= num_coeffs - coeff_i ;\n coeff_i = num_coeffs ;\n }\n else {\n dct_tokens [ j ++ ] = TOKEN_EOB ( eob_run ) ;\n blocks_ended += eob_run ;\n coeff_i += eob_run ;\n eob_run = 0 ;\n }\n }\n else if ( token >= 0 ) {\n bits_to_get = coeff_get_bits [ token ] ;\n if ( bits_to_get ) bits_to_get = get_bits ( gb , bits_to_get ) ;\n coeff = coeff_tables [ token ] [ bits_to_get ] ;\n zero_run = zero_run_base [ token ] ;\n if ( zero_run_get_bits [ token ] ) zero_run += get_bits ( gb , zero_run_get_bits [ token ] ) ;\n if ( zero_run ) {\n dct_tokens [ j ++ ] = TOKEN_ZERO_RUN ( coeff , zero_run ) ;\n }\n else {\n if ( ! coeff_index ) all_fragments [ coded_fragment_list [ coeff_i ] ] . dc = coeff ;\n dct_tokens [ j ++ ] = TOKEN_COEFF ( coeff ) ;\n }\n if ( coeff_index + zero_run > 64 ) {\n av_log ( s -> avctx , AV_LOG_DEBUG , \"Invalid zero run of %d with\" \" %d coeffs left\\n\" , zero_run , 64 - coeff_index ) ;\n zero_run = 64 - coeff_index ;\n }\n for ( i = coeff_index + 1 ;\n i <= coeff_index + zero_run ;\n i ++ ) s -> num_coded_frags [ plane ] [ i ] -- ;\n coeff_i ++ ;\n }\n else {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Invalid token %d\\n\" , token ) ;\n return - 1 ;\n }\n }\n if ( blocks_ended > s -> num_coded_frags [ plane ] [ coeff_index ] ) av_log ( s -> avctx , AV_LOG_ERROR , \"More blocks ended than coded!\\n\" ) ;\n if ( blocks_ended ) for ( i = coeff_index + 1 ;\n i < 64 ;\n i ++ ) s -> num_coded_frags [ plane ] [ i ] -= blocks_ended ;\n if ( plane < 2 ) s -> dct_tokens [ plane + 1 ] [ coeff_index ] = dct_tokens + j ;\n else if ( coeff_index < 63 ) s -> dct_tokens [ 0 ] [ coeff_index + 1 ] = dct_tokens + j ;\n return eob_run ;\n }"}
{"idx": 4600, "target": 0, "func": "void rfbClientConnectionGone ( rfbClientPtr cl ) {\n # if defined ( LIBVNCSERVER_HAVE_LIBZ ) && defined ( LIBVNCSERVER_HAVE_LIBJPEG ) int i ;\n # endif LOCK ( rfbClientListMutex ) ;\n if ( cl -> prev ) cl -> prev -> next = cl -> next ;\n else cl -> screen -> clientHead = cl -> next ;\n if ( cl -> next ) cl -> next -> prev = cl -> prev ;\n UNLOCK ( rfbClientListMutex ) ;\n # ifdef LIBVNCSERVER_HAVE_LIBPTHREAD if ( cl -> screen -> backgroundLoop != FALSE ) {\n int i ;\n do {\n LOCK ( cl -> refCountMutex ) ;\n i = cl -> refCount ;\n if ( i > 0 ) WAIT ( cl -> deleteCond , cl -> refCountMutex ) ;\n UNLOCK ( cl -> refCountMutex ) ;\n }\n while ( i > 0 ) ;\n }\n # endif if ( cl -> sock >= 0 ) close ( cl -> sock ) ;\n if ( cl -> scaledScreen != NULL ) cl -> scaledScreen -> scaledScreenRefCount -- ;\n # ifdef LIBVNCSERVER_HAVE_LIBZ rfbFreeZrleData ( cl ) ;\n # endif rfbFreeUltraData ( cl ) ;\n free ( cl -> beforeEncBuf ) ;\n free ( cl -> afterEncBuf ) ;\n if ( cl -> sock >= 0 ) FD_CLR ( cl -> sock , & ( cl -> screen -> allFds ) ) ;\n cl -> clientGoneHook ( cl ) ;\n rfbLog ( \"Client %s gone\\n\" , cl -> host ) ;\n free ( cl -> host ) ;\n # ifdef LIBVNCSERVER_HAVE_LIBZ if ( cl -> compStreamInited ) {\n deflateEnd ( & ( cl -> compStream ) ) ;\n }\n # ifdef LIBVNCSERVER_HAVE_LIBJPEG for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n if ( cl -> zsActive [ i ] ) deflateEnd ( & cl -> zsStruct [ i ] ) ;\n }\n # endif # endif if ( cl -> screen -> pointerClient == cl ) cl -> screen -> pointerClient = NULL ;\n sraRgnDestroy ( cl -> modifiedRegion ) ;\n sraRgnDestroy ( cl -> requestedRegion ) ;\n sraRgnDestroy ( cl -> copyRegion ) ;\n if ( cl -> translateLookupTable ) free ( cl -> translateLookupTable ) ;\n TINI_COND ( cl -> updateCond ) ;\n TINI_MUTEX ( cl -> updateMutex ) ;\n LOCK ( cl -> outputMutex ) ;\n UNLOCK ( cl -> outputMutex ) ;\n TINI_MUTEX ( cl -> outputMutex ) ;\n LOCK ( cl -> sendMutex ) ;\n UNLOCK ( cl -> sendMutex ) ;\n TINI_MUTEX ( cl -> sendMutex ) ;\n rfbPrintStats ( cl ) ;\n rfbResetStats ( cl ) ;\n free ( cl ) ;\n }"}
{"idx": 4601, "target": 0, "func": "bool cephx_decode_ticket ( CephContext * cct , KeyStore * keys , uint32_t service_id , CephXTicketBlob & ticket_blob , CephXServiceTicketInfo & ticket_info ) {\n uint64_t secret_id = ticket_blob . secret_id ;\n CryptoKey service_secret ;\n if ( ! ticket_blob . blob . length ( ) ) {\n return false ;\n }\n if ( secret_id == ( uint64_t ) - 1 ) {\n if ( ! keys -> get_secret ( cct -> _conf -> name , service_secret ) ) {\n ldout ( cct , 0 ) << \"ceph_decode_ticket could not get general service secret for service_id=\" << ceph_entity_type_name ( service_id ) << \" secret_id=\" << secret_id << dendl ;\n return false ;\n }\n }\n else {\n if ( ! keys -> get_service_secret ( service_id , secret_id , service_secret ) ) {\n ldout ( cct , 0 ) << \"ceph_decode_ticket could not get service secret for service_id=\" << ceph_entity_type_name ( service_id ) << \" secret_id=\" << secret_id << dendl ;\n return false ;\n }\n }\n std : : string error ;\n decode_decrypt_enc_bl ( cct , ticket_info , service_secret , ticket_blob . blob , error ) ;\n if ( ! error . empty ( ) ) {\n ldout ( cct , 0 ) << \"ceph_decode_ticket could not decrypt ticket info. error:\" << error << dendl ;\n return false ;\n }\n return true ;\n }"}
{"idx": 4602, "target": 0, "func": "static int spl_filesystem_file_read_line_ex ( zval * this_ptr , spl_filesystem_object * intern , int silent TSRMLS_DC ) {\n zval * retval = NULL ;\n if ( SPL_HAS_FLAG ( intern -> flags , SPL_FILE_OBJECT_READ_CSV ) || intern -> u . file . func_getCurr -> common . scope != spl_ce_SplFileObject ) {\n if ( php_stream_eof ( intern -> u . file . stream ) ) {\n if ( ! silent ) {\n zend_throw_exception_ex ( spl_ce_RuntimeException , 0 TSRMLS_CC , \"Cannot read from file %s\" , intern -> file_name ) ;\n }\n return FAILURE ;\n }\n if ( SPL_HAS_FLAG ( intern -> flags , SPL_FILE_OBJECT_READ_CSV ) ) {\n return spl_filesystem_file_read_csv ( intern , intern -> u . file . delimiter , intern -> u . file . enclosure , intern -> u . file . escape , NULL TSRMLS_CC ) ;\n }\n else {\n zend_call_method_with_0_params ( & this_ptr , Z_OBJCE_P ( getThis ( ) ) , & intern -> u . file . func_getCurr , \"getCurrentLine\" , & retval ) ;\n }\n if ( retval ) {\n if ( intern -> u . file . current_line || intern -> u . file . current_zval ) {\n intern -> u . file . current_line_num ++ ;\n }\n spl_filesystem_file_free_line ( intern TSRMLS_CC ) ;\n if ( Z_TYPE_P ( retval ) == IS_STRING ) {\n intern -> u . file . current_line = estrndup ( Z_STRVAL_P ( retval ) , Z_STRLEN_P ( retval ) ) ;\n intern -> u . file . current_line_len = Z_STRLEN_P ( retval ) ;\n }\n else {\n MAKE_STD_ZVAL ( intern -> u . file . current_zval ) ;\n ZVAL_ZVAL ( intern -> u . file . current_zval , retval , 1 , 0 ) ;\n }\n zval_ptr_dtor ( & retval ) ;\n return SUCCESS ;\n }\n else {\n return FAILURE ;\n }\n }\n else {\n return spl_filesystem_file_read ( intern , silent TSRMLS_CC ) ;\n }\n }"}
{"idx": 4603, "target": 0, "func": "void proto_register_field_array ( const int parent , hf_register_info * hf , const int num_records ) {\n hf_register_info * ptr = hf ;\n protocol_t * proto ;\n int i ;\n proto = find_protocol_by_id ( parent ) ;\n for ( i = 0 ;\n i < num_records ;\n i ++ , ptr ++ ) {\n if ( * ptr -> p_id != - 1 && * ptr -> p_id != 0 ) {\n fprintf ( stderr , \"Duplicate field detected in call to proto_register_field_array: %s is already registered\\n\" , ptr -> hfinfo . abbrev ) ;\n return ;\n }\n * ptr -> p_id = proto_register_field_common ( proto , & ptr -> hfinfo , parent ) ;\n }\n }"}
{"idx": 4604, "target": 0, "func": "static void _reset ( UConverter * converter , UConverterResetChoice choice , UBool callCallback ) {\n if ( converter == NULL ) {\n return ;\n }\n if ( callCallback ) {\n UErrorCode errorCode ;\n if ( choice <= UCNV_RESET_TO_UNICODE && converter -> fromCharErrorBehaviour != UCNV_TO_U_DEFAULT_CALLBACK ) {\n UConverterToUnicodeArgs toUArgs = {\n sizeof ( UConverterToUnicodeArgs ) , TRUE , NULL , NULL , NULL , NULL , NULL , NULL }\n ;\n toUArgs . converter = converter ;\n errorCode = U_ZERO_ERROR ;\n converter -> fromCharErrorBehaviour ( converter -> toUContext , & toUArgs , NULL , 0 , UCNV_RESET , & errorCode ) ;\n }\n if ( choice != UCNV_RESET_TO_UNICODE && converter -> fromUCharErrorBehaviour != UCNV_FROM_U_DEFAULT_CALLBACK ) {\n UConverterFromUnicodeArgs fromUArgs = {\n sizeof ( UConverterFromUnicodeArgs ) , TRUE , NULL , NULL , NULL , NULL , NULL , NULL }\n ;\n fromUArgs . converter = converter ;\n errorCode = U_ZERO_ERROR ;\n converter -> fromUCharErrorBehaviour ( converter -> fromUContext , & fromUArgs , NULL , 0 , 0 , UCNV_RESET , & errorCode ) ;\n }\n }\n if ( choice <= UCNV_RESET_TO_UNICODE ) {\n converter -> toUnicodeStatus = converter -> sharedData -> toUnicodeStatus ;\n converter -> mode = 0 ;\n converter -> toULength = 0 ;\n converter -> invalidCharLength = converter -> UCharErrorBufferLength = 0 ;\n converter -> preToULength = 0 ;\n }\n if ( choice != UCNV_RESET_TO_UNICODE ) {\n converter -> fromUnicodeStatus = 0 ;\n converter -> fromUChar32 = 0 ;\n converter -> invalidUCharLength = converter -> charErrorBufferLength = 0 ;\n converter -> preFromUFirstCP = U_SENTINEL ;\n converter -> preFromULength = 0 ;\n }\n if ( converter -> sharedData -> impl -> reset != NULL ) {\n converter -> sharedData -> impl -> reset ( converter , choice ) ;\n }\n }"}
{"idx": 4605, "target": 0, "func": "static inline void fill_64 ( uint8_t * dst , const uint64_t pix , int32_t n , int32_t row_offset ) {\n for ( ;\n n > 0 ;\n dst += row_offset , n -- ) AV_WN64A ( dst , pix ) ;\n }"}
{"idx": 4606, "target": 0, "func": "void cephx_calc_client_server_challenge ( CephContext * cct , CryptoKey & secret , uint64_t server_challenge , uint64_t client_challenge , uint64_t * key , std : : string & error ) {\n CephXChallengeBlob b ;\n b . server_challenge = server_challenge ;\n b . client_challenge = client_challenge ;\n bufferlist enc ;\n if ( encode_encrypt ( cct , b , secret , enc , error ) ) return ;\n uint64_t k = 0 ;\n const uint64_t * p = ( const uint64_t * ) enc . c_str ( ) ;\n for ( int pos = 0 ;\n pos + sizeof ( k ) <= enc . length ( ) ;\n pos += sizeof ( k ) , p ++ ) k ^= mswab ( * p ) ;\n * key = k ;\n }"}
{"idx": 4607, "target": 0, "func": "void config_remotely ( sockaddr_u * remote_addr ) {\n struct FILE_INFO remote_cuckoo ;\n char origin [ 128 ] ;\n snprintf ( origin , sizeof ( origin ) , \"remote config from %s\" , stoa ( remote_addr ) ) ;\n memset ( & remote_cuckoo , 0 , sizeof ( remote_cuckoo ) ) ;\n remote_cuckoo . fname = origin ;\n remote_cuckoo . line_no = 1 ;\n remote_cuckoo . col_no = 1 ;\n ip_file = & remote_cuckoo ;\n input_from_file = 0 ;\n init_syntax_tree ( & cfgt ) ;\n yyparse ( ) ;\n cfgt . source . attr = CONF_SOURCE_NTPQ ;\n cfgt . timestamp = time ( NULL ) ;\n cfgt . source . value . s = estrdup ( stoa ( remote_addr ) ) ;\n DPRINTF ( 1 , ( \"Finished Parsing!!\\n\" ) ) ;\n save_and_apply_config_tree ( ) ;\n input_from_file = 1 ;\n }"}
{"idx": 4608, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n PNGDecContext * const s = avctx -> priv_data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n AVFrame * picture = data ;\n uint8_t * crow_buf_base = NULL ;\n AVFrame * p ;\n uint32_t tag , length ;\n int ret ;\n FFSWAP ( AVFrame * , s -> current_picture , s -> last_picture ) ;\n avctx -> coded_frame = s -> current_picture ;\n p = s -> current_picture ;\n if ( buf_size < 8 || memcmp ( buf , ff_pngsig , 8 ) != 0 && memcmp ( buf , ff_mngsig , 8 ) != 0 ) return - 1 ;\n bytestream2_init ( & s -> gb , buf + 8 , buf_size - 8 ) ;\n s -> y = s -> state = 0 ;\n s -> zstream . zalloc = ff_png_zalloc ;\n s -> zstream . zfree = ff_png_zfree ;\n s -> zstream . opaque = NULL ;\n ret = inflateInit ( & s -> zstream ) ;\n if ( ret != Z_OK ) return - 1 ;\n for ( ;\n ;\n ) {\n if ( bytestream2_get_bytes_left ( & s -> gb ) <= 0 ) goto fail ;\n length = bytestream2_get_be32 ( & s -> gb ) ;\n if ( length > 0x7fffffff ) goto fail ;\n tag = bytestream2_get_le32 ( & s -> gb ) ;\n av_dlog ( avctx , \"png: tag=%c%c%c%c length=%u\\n\" , ( tag & 0xff ) , ( ( tag >> 8 ) & 0xff ) , ( ( tag >> 16 ) & 0xff ) , ( ( tag >> 24 ) & 0xff ) , length ) ;\n switch ( tag ) {\n case MKTAG ( 'I' , 'H' , 'D' , 'R' ) : if ( length != 13 ) goto fail ;\n s -> width = bytestream2_get_be32 ( & s -> gb ) ;\n s -> height = bytestream2_get_be32 ( & s -> gb ) ;\n if ( av_image_check_size ( s -> width , s -> height , 0 , avctx ) ) {\n s -> width = s -> height = 0 ;\n goto fail ;\n }\n s -> bit_depth = bytestream2_get_byte ( & s -> gb ) ;\n s -> color_type = bytestream2_get_byte ( & s -> gb ) ;\n s -> compression_type = bytestream2_get_byte ( & s -> gb ) ;\n s -> filter_type = bytestream2_get_byte ( & s -> gb ) ;\n s -> interlace_type = bytestream2_get_byte ( & s -> gb ) ;\n bytestream2_skip ( & s -> gb , 4 ) ;\n s -> state |= PNG_IHDR ;\n av_dlog ( avctx , \"width=%d height=%d depth=%d color_type=%d \" \"compression_type=%d filter_type=%d interlace_type=%d\\n\" , s -> width , s -> height , s -> bit_depth , s -> color_type , s -> compression_type , s -> filter_type , s -> interlace_type ) ;\n break ;\n case MKTAG ( 'I' , 'D' , 'A' , 'T' ) : if ( ! ( s -> state & PNG_IHDR ) ) goto fail ;\n if ( ! ( s -> state & PNG_IDAT ) ) {\n avctx -> width = s -> width ;\n avctx -> height = s -> height ;\n s -> channels = ff_png_get_nb_channels ( s -> color_type ) ;\n s -> bits_per_pixel = s -> bit_depth * s -> channels ;\n s -> bpp = ( s -> bits_per_pixel + 7 ) >> 3 ;\n s -> row_size = ( avctx -> width * s -> bits_per_pixel + 7 ) >> 3 ;\n if ( s -> bit_depth == 8 && s -> color_type == PNG_COLOR_TYPE_RGB ) {\n avctx -> pix_fmt = AV_PIX_FMT_RGB24 ;\n }\n else if ( s -> bit_depth == 8 && s -> color_type == PNG_COLOR_TYPE_RGB_ALPHA ) {\n avctx -> pix_fmt = AV_PIX_FMT_RGB32 ;\n }\n else if ( s -> bit_depth == 8 && s -> color_type == PNG_COLOR_TYPE_GRAY ) {\n avctx -> pix_fmt = AV_PIX_FMT_GRAY8 ;\n }\n else if ( s -> bit_depth == 16 && s -> color_type == PNG_COLOR_TYPE_GRAY ) {\n avctx -> pix_fmt = AV_PIX_FMT_GRAY16BE ;\n }\n else if ( s -> bit_depth == 16 && s -> color_type == PNG_COLOR_TYPE_RGB ) {\n avctx -> pix_fmt = AV_PIX_FMT_RGB48BE ;\n }\n else if ( s -> bit_depth == 1 && s -> color_type == PNG_COLOR_TYPE_GRAY ) {\n avctx -> pix_fmt = AV_PIX_FMT_MONOBLACK ;\n }\n else if ( s -> bit_depth == 8 && s -> color_type == PNG_COLOR_TYPE_PALETTE ) {\n avctx -> pix_fmt = AV_PIX_FMT_PAL8 ;\n }\n else if ( s -> bit_depth == 8 && s -> color_type == PNG_COLOR_TYPE_GRAY_ALPHA ) {\n avctx -> pix_fmt = AV_PIX_FMT_Y400A ;\n }\n else {\n goto fail ;\n }\n if ( p -> data [ 0 ] ) avctx -> release_buffer ( avctx , p ) ;\n p -> reference = 0 ;\n if ( ff_get_buffer ( avctx , p ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n goto fail ;\n }\n p -> pict_type = AV_PICTURE_TYPE_I ;\n p -> key_frame = 1 ;\n p -> interlaced_frame = ! ! s -> interlace_type ;\n if ( ! s -> interlace_type ) {\n s -> crow_size = s -> row_size + 1 ;\n }\n else {\n s -> pass = 0 ;\n s -> pass_row_size = ff_png_pass_row_size ( s -> pass , s -> bits_per_pixel , s -> width ) ;\n s -> crow_size = s -> pass_row_size + 1 ;\n }\n av_dlog ( avctx , \"row_size=%d crow_size =%d\\n\" , s -> row_size , s -> crow_size ) ;\n s -> image_buf = p -> data [ 0 ] ;\n s -> image_linesize = p -> linesize [ 0 ] ;\n if ( s -> color_type == PNG_COLOR_TYPE_PALETTE ) memcpy ( p -> data [ 1 ] , s -> palette , 256 * sizeof ( uint32_t ) ) ;\n s -> last_row = av_mallocz ( s -> row_size ) ;\n if ( ! s -> last_row ) goto fail ;\n if ( s -> interlace_type || s -> color_type == PNG_COLOR_TYPE_RGB_ALPHA ) {\n s -> tmp_row = av_malloc ( s -> row_size ) ;\n if ( ! s -> tmp_row ) goto fail ;\n }\n crow_buf_base = av_malloc ( s -> row_size + 16 ) ;\n if ( ! crow_buf_base ) goto fail ;\n s -> crow_buf = crow_buf_base + 15 ;\n s -> zstream . avail_out = s -> crow_size ;\n s -> zstream . next_out = s -> crow_buf ;\n }\n s -> state |= PNG_IDAT ;\n if ( png_decode_idat ( s , length ) < 0 ) goto fail ;\n bytestream2_skip ( & s -> gb , 4 ) ;\n break ;\n case MKTAG ( 'P' , 'L' , 'T' , 'E' ) : {\n int n , i , r , g , b ;\n if ( ( length % 3 ) != 0 || length > 256 * 3 ) goto skip_tag ;\n n = length / 3 ;\n for ( i = 0 ;\n i < n ;\n i ++ ) {\n r = bytestream2_get_byte ( & s -> gb ) ;\n g = bytestream2_get_byte ( & s -> gb ) ;\n b = bytestream2_get_byte ( & s -> gb ) ;\n s -> palette [ i ] = ( 0xff << 24 ) | ( r << 16 ) | ( g << 8 ) | b ;\n }\n for ( ;\n i < 256 ;\n i ++ ) {\n s -> palette [ i ] = ( 0xff << 24 ) ;\n }\n s -> state |= PNG_PLTE ;\n bytestream2_skip ( & s -> gb , 4 ) ;\n }\n break ;\n case MKTAG ( 't' , 'R' , 'N' , 'S' ) : {\n int v , i ;\n if ( s -> color_type != PNG_COLOR_TYPE_PALETTE || length > 256 || ! ( s -> state & PNG_PLTE ) ) goto skip_tag ;\n for ( i = 0 ;\n i < length ;\n i ++ ) {\n v = bytestream2_get_byte ( & s -> gb ) ;\n s -> palette [ i ] = ( s -> palette [ i ] & 0x00ffffff ) | ( v << 24 ) ;\n }\n bytestream2_skip ( & s -> gb , 4 ) ;\n }\n break ;\n case MKTAG ( 'I' , 'E' , 'N' , 'D' ) : if ( ! ( s -> state & PNG_ALLIMAGE ) ) goto fail ;\n bytestream2_skip ( & s -> gb , 4 ) ;\n goto exit_loop ;\n default : skip_tag : bytestream2_skip ( & s -> gb , length + 4 ) ;\n break ;\n }\n }\n exit_loop : if ( s -> last_picture -> data [ 0 ] != NULL ) {\n if ( ! ( avpkt -> flags & AV_PKT_FLAG_KEY ) ) {\n int i , j ;\n uint8_t * pd = s -> current_picture -> data [ 0 ] ;\n uint8_t * pd_last = s -> last_picture -> data [ 0 ] ;\n for ( j = 0 ;\n j < s -> height ;\n j ++ ) {\n for ( i = 0 ;\n i < s -> width * s -> bpp ;\n i ++ ) {\n pd [ i ] += pd_last [ i ] ;\n }\n pd += s -> image_linesize ;\n pd_last += s -> image_linesize ;\n }\n }\n }\n * picture = * s -> current_picture ;\n * got_frame = 1 ;\n ret = bytestream2_tell ( & s -> gb ) ;\n the_end : inflateEnd ( & s -> zstream ) ;\n av_free ( crow_buf_base ) ;\n s -> crow_buf = NULL ;\n av_freep ( & s -> last_row ) ;\n av_freep ( & s -> tmp_row ) ;\n return ret ;\n fail : ret = - 1 ;\n goto the_end ;\n }"}
{"idx": 4609, "target": 0, "func": "static void Type_ProfileSequenceId_Free ( struct _cms_typehandler_struct * self , void * Ptr ) {\n cmsFreeProfileSequenceDescription ( ( cmsSEQ * ) Ptr ) ;\n return ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 4610, "target": 0, "func": "static inline uint8_t vga_read_byte ( VGACommonState * vga , uint32_t addr ) {\n return vga -> vram_ptr [ addr & vga -> vbe_size_mask ] ;\n }"}
{"idx": 4611, "target": 1, "func": "static void cpu_request_exit ( void * opaque , int irq , int level ) {\n CPUMIPSState * env = cpu_single_env ;\n if ( env && level ) {\n cpu_exit ( CPU ( mips_env_get_cpu ( env ) ) ) ;\n }\n }"}
{"idx": 4612, "target": 0, "func": "static VALUE decode_int ( unsigned char * der , long length ) {\n ASN1_INTEGER * ai ;\n const unsigned char * p ;\n VALUE ret ;\n int status = 0 ;\n p = der ;\n if ( ! ( ai = d2i_ASN1_INTEGER ( NULL , & p , length ) ) ) ossl_raise ( eASN1Error , NULL ) ;\n ret = rb_protect ( ( VALUE ( * ) ( VALUE ) ) asn1integer_to_num , ( VALUE ) ai , & status ) ;\n ASN1_INTEGER_free ( ai ) ;\n if ( status ) rb_jump_tag ( status ) ;\n return ret ;\n }"}
{"idx": 4613, "target": 0, "func": "subpicture_t * decoder_NewSubpicture ( decoder_t * p_decoder , const subpicture_updater_t * p_dyn ) {\n subpicture_t * p_subpicture = p_decoder -> pf_spu_buffer_new ( p_decoder , p_dyn ) ;\n if ( ! p_subpicture ) msg_Warn ( p_decoder , \"can't get output subpicture\" ) ;\n return p_subpicture ;\n }"}
{"idx": 4614, "target": 0, "func": "static void process_ls_object ( struct remote_ls_ctx * ls ) {\n unsigned int * parent = ( unsigned int * ) ls -> userData ;\n const char * path = ls -> dentry_name ;\n unsigned char sha1 [ 20 ] ;\n if ( ! strcmp ( ls -> path , ls -> dentry_name ) && ( ls -> flags & IS_DIR ) ) {\n remote_dir_exists [ * parent ] = 1 ;\n return ;\n }\n if ( ! skip_prefix ( path , \"objects/\" , & path ) || get_sha1_hex_from_objpath ( path , sha1 ) ) return ;\n one_remote_object ( sha1 ) ;\n }"}
{"idx": 4615, "target": 0, "func": "Datum regexeqsel ( PG_FUNCTION_ARGS ) {\n PG_RETURN_FLOAT8 ( patternsel ( fcinfo , Pattern_Type_Regex , false ) ) ;\n }"}
{"idx": 4616, "target": 0, "func": "static GList * completion_joinlist ( GList * list1 , GList * list2 ) {\n GList * old ;\n old = list2 ;\n while ( list2 != NULL ) {\n if ( ! glist_find_icase_string ( list1 , list2 -> data ) ) list1 = g_list_append ( list1 , list2 -> data ) ;\n else g_free ( list2 -> data ) ;\n list2 = list2 -> next ;\n }\n g_list_free ( old ) ;\n return list1 ;\n }"}
{"idx": 4617, "target": 0, "func": "static void vga_draw_line32_be ( VGACommonState * vga , uint8_t * d , uint32_t addr , int width ) {\n int w ;\n uint32_t r , g , b ;\n w = width ;\n do {\n r = vga_read_byte ( vga , addr + 1 ) ;\n g = vga_read_byte ( vga , addr + 2 ) ;\n b = vga_read_byte ( vga , addr + 3 ) ;\n ( ( uint32_t * ) d ) [ 0 ] = rgb_to_pixel32 ( r , g , b ) ;\n addr += 4 ;\n d += 4 ;\n }\n while ( -- w != 0 ) ;\n }"}
{"idx": 4618, "target": 0, "func": "TEST_F ( IconLabelBubbleViewTest , MouseInkDropState ) {\n AttachInkDrop ( ) ;\n generator ( ) -> PressLeftButton ( ) ;\n EXPECT_EQ ( views : : InkDropState : : ACTION_PENDING , ink_drop ( ) -> GetTargetInkDropState ( ) ) ;\n generator ( ) -> ReleaseLeftButton ( ) ;\n EXPECT_EQ ( views : : InkDropState : : ACTIVATED , ink_drop ( ) -> GetTargetInkDropState ( ) ) ;\n view ( ) -> HideBubble ( ) ;\n EXPECT_EQ ( views : : InkDropState : : HIDDEN , ink_drop ( ) -> GetTargetInkDropState ( ) ) ;\n generator ( ) -> PressLeftButton ( ) ;\n EXPECT_EQ ( views : : InkDropState : : ACTION_PENDING , ink_drop ( ) -> GetTargetInkDropState ( ) ) ;\n generator ( ) -> ReleaseLeftButton ( ) ;\n EXPECT_EQ ( views : : InkDropState : : ACTIVATED , ink_drop ( ) -> GetTargetInkDropState ( ) ) ;\n generator ( ) -> PressLeftButton ( ) ;\n EXPECT_NE ( views : : InkDropState : : ACTION_PENDING , ink_drop ( ) -> GetTargetInkDropState ( ) ) ;\n }"}
{"idx": 4619, "target": 0, "func": "static int file_exists ( const u_char * filename , unsigned int throttle_rate ) {\n return get_file_type ( filename , throttle_rate ) == FT_FILE ;\n }"}
{"idx": 4620, "target": 0, "func": "void mime_hdr_copy_onto ( MIMEHdrImpl * s_mh , HdrHeap * s_heap , MIMEHdrImpl * d_mh , HdrHeap * d_heap , bool inherit_strs ) {\n int block_count ;\n MIMEFieldBlockImpl * s_fblock , * d_fblock , * prev_d_fblock ;\n if ( d_mh -> m_first_fblock . m_next ) {\n mime_hdr_destroy_field_block_list ( d_heap , d_mh -> m_first_fblock . m_next ) ;\n }\n ink_assert ( ( ( char * ) & ( s_mh -> m_first_fblock . m_field_slots [ MIME_FIELD_BLOCK_SLOTS ] ) - ( char * ) s_mh ) == sizeof ( struct MIMEHdrImpl ) ) ;\n int top = s_mh -> m_first_fblock . m_freetop ;\n char * end = ( char * ) & ( s_mh -> m_first_fblock . m_field_slots [ top ] ) ;\n int bytes_below_top = end - ( char * ) s_mh ;\n memcpy ( d_mh , s_mh , bytes_below_top ) ;\n if ( d_mh -> m_first_fblock . m_next == nullptr ) {\n d_mh -> m_fblock_list_tail = & ( d_mh -> m_first_fblock ) ;\n block_count = 1 ;\n }\n else {\n prev_d_fblock = & ( d_mh -> m_first_fblock ) ;\n block_count = 1 ;\n for ( s_fblock = s_mh -> m_first_fblock . m_next ;\n s_fblock != nullptr ;\n s_fblock = s_fblock -> m_next ) {\n ++ block_count ;\n d_fblock = _mime_field_block_copy ( s_fblock , s_heap , d_heap ) ;\n prev_d_fblock -> m_next = d_fblock ;\n prev_d_fblock = d_fblock ;\n }\n d_mh -> m_fblock_list_tail = prev_d_fblock ;\n }\n if ( inherit_strs ) {\n d_heap -> inherit_string_heaps ( s_heap ) ;\n }\n mime_hdr_field_block_list_adjust ( block_count , & ( s_mh -> m_first_fblock ) , & ( d_mh -> m_first_fblock ) ) ;\n MIME_HDR_SANITY_CHECK ( s_mh ) ;\n MIME_HDR_SANITY_CHECK ( d_mh ) ;\n }"}
{"idx": 4621, "target": 0, "func": "static int do_rawv6_setsockopt ( struct sock * sk , int level , int optname , char __user * optval , unsigned int optlen ) {\n struct raw6_sock * rp = raw6_sk ( sk ) ;\n int val ;\n if ( get_user ( val , ( int __user * ) optval ) ) return - EFAULT ;\n switch ( optname ) {\n case IPV6_CHECKSUM : if ( inet_sk ( sk ) -> inet_num == IPPROTO_ICMPV6 && level == IPPROTO_IPV6 ) {\n return - EINVAL ;\n }\n if ( val > 0 && ( val & 1 ) ) return ( - EINVAL ) ;\n if ( val < 0 ) {\n rp -> checksum = 0 ;\n }\n else {\n rp -> checksum = 1 ;\n rp -> offset = val ;\n }\n return 0 ;\n break ;\n default : return ( - ENOPROTOOPT ) ;\n }\n }"}
{"idx": 4622, "target": 0, "func": "static bool message_search_more_decoded2 ( struct message_search_context * ctx , struct message_block * block ) {\n if ( block -> hdr != NULL ) {\n if ( search_header ( ctx , block -> hdr ) ) return TRUE ;\n }\n else {\n if ( str_find_more ( ctx -> str_find_ctx , block -> data , block -> size ) ) return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 4623, "target": 0, "func": "static void vvalue_strbuf_append_ui2 ( wmem_strbuf_t * strbuf , void * ptr ) {\n guint16 ui2 = * ( guint16 * ) ptr ;\n wmem_strbuf_append_printf ( strbuf , \"%u\" , ( unsigned ) ui2 ) ;\n }"}
{"idx": 4624, "target": 0, "func": "static int pfkey_reserved ( struct sock * sk , struct sk_buff * skb , const struct sadb_msg * hdr , void * const * ext_hdrs ) {\n return - EOPNOTSUPP ;\n }"}
{"idx": 4625, "target": 0, "func": "static void init_mv_penalty_and_fcode ( MpegEncContext * s ) {\n int f_code ;\n int mv ;\n for ( f_code = 1 ;\n f_code <= MAX_FCODE ;\n f_code ++ ) {\n for ( mv = - MAX_MV ;\n mv <= MAX_MV ;\n mv ++ ) {\n int len ;\n if ( mv == 0 ) len = ff_mvtab [ 0 ] [ 1 ] ;\n else {\n int val , bit_size , code ;\n bit_size = f_code - 1 ;\n val = mv ;\n if ( val < 0 ) val = - val ;\n val -- ;\n code = ( val >> bit_size ) + 1 ;\n if ( code < 33 ) {\n len = ff_mvtab [ code ] [ 1 ] + 1 + bit_size ;\n }\n else {\n len = ff_mvtab [ 32 ] [ 1 ] + av_log2 ( code >> 5 ) + 2 + bit_size ;\n }\n }\n mv_penalty [ f_code ] [ mv + MAX_MV ] = len ;\n }\n }\n for ( f_code = MAX_FCODE ;\n f_code > 0 ;\n f_code -- ) {\n for ( mv = - ( 16 << f_code ) ;\n mv < ( 16 << f_code ) ;\n mv ++ ) {\n fcode_tab [ mv + MAX_MV ] = f_code ;\n }\n }\n for ( mv = 0 ;\n mv < MAX_MV * 2 + 1 ;\n mv ++ ) {\n umv_fcode_tab [ mv ] = 1 ;\n }\n }"}
{"idx": 4626, "target": 0, "func": "static void dissect_zcl_ota_queryspecfilereq ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_req_node_addr , tvb , * offset , 8 , ENC_LITTLE_ENDIAN ) ;\n * offset += 8 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_manufacturer_code , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_image_type , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n dissect_zcl_ota_file_version_field ( tvb , tree , offset ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_zb_stack_ver , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n }"}
{"idx": 4627, "target": 0, "func": "static int dissect_h245_IA5String_SIZE_1_64 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_IA5String ( tvb , offset , actx , tree , hf_index , 1 , 64 , FALSE ) ;\n return offset ;\n }"}
{"idx": 4628, "target": 0, "func": "static int parse_data ( struct strbuf * sb , uintmax_t limit , uintmax_t * len_res ) {\n const char * data ;\n strbuf_reset ( sb ) ;\n if ( ! skip_prefix ( command_buf . buf , \"data \" , & data ) ) die ( \"Expected 'data n' command, found: %s\" , command_buf . buf ) ;\n if ( skip_prefix ( data , \"<<\" , & data ) ) {\n char * term = xstrdup ( data ) ;\n size_t term_len = command_buf . len - ( data - command_buf . buf ) ;\n strbuf_detach ( & command_buf , NULL ) ;\n for ( ;\n ;\n ) {\n if ( strbuf_getline ( & command_buf , stdin , '\\n' ) == EOF ) die ( \"EOF in data (terminator '%s' not found)\" , term ) ;\n if ( term_len == command_buf . len && ! strcmp ( term , command_buf . buf ) ) break ;\n strbuf_addbuf ( sb , & command_buf ) ;\n strbuf_addch ( sb , '\\n' ) ;\n }\n free ( term ) ;\n }\n else {\n uintmax_t len = strtoumax ( data , NULL , 10 ) ;\n size_t n = 0 , length = ( size_t ) len ;\n if ( limit && limit < len ) {\n * len_res = len ;\n return 0 ;\n }\n if ( length < len ) die ( \"data is too large to use in this context\" ) ;\n while ( n < length ) {\n size_t s = strbuf_fread ( sb , length - n , stdin ) ;\n if ( ! s && feof ( stdin ) ) die ( \"EOF in data (%lu bytes remaining)\" , ( unsigned long ) ( length - n ) ) ;\n n += s ;\n }\n }\n skip_optional_lf ( ) ;\n return 1 ;\n }"}
{"idx": 4629, "target": 1, "func": "void vp9_idct32x32_add ( const int16_t * input , uint8_t * dest , int stride , int eob ) {\n if ( eob == 1 ) vp9_idct32x32_1_add ( input , dest , stride ) ;\n else if ( eob <= 34 ) vp9_idct32x32_34_add ( input , dest , stride ) ;\n else vp9_idct32x32_1024_add ( input , dest , stride ) ;\n }"}
{"idx": 4630, "target": 0, "func": "int dissect_ber_set_of ( gboolean implicit_tag , asn1_ctx_t * actx , proto_tree * parent_tree , tvbuff_t * tvb , int offset , const ber_sequence_t * seq , gint hf_id , gint ett_id ) {\n return dissect_ber_sq_of ( implicit_tag , BER_UNI_TAG_SET , actx , parent_tree , tvb , offset , NO_BOUND , NO_BOUND , seq , hf_id , ett_id ) ;\n }"}
{"idx": 4631, "target": 0, "func": "int dwarf_elf_object_access_init ( dwarf_elf_handle elf , int libdwarf_owns_elf , Dwarf_Obj_Access_Interface * * ret_obj , int * err ) {\n int res = 0 ;\n dwarf_elf_object_access_internals_t * internals = 0 ;\n Dwarf_Obj_Access_Interface * intfc = 0 ;\n internals = malloc ( sizeof ( dwarf_elf_object_access_internals_t ) ) ;\n if ( ! internals ) {\n * err = DW_DLE_ALLOC_FAIL ;\n return DW_DLV_ERROR ;\n }\n memset ( internals , 0 , sizeof ( * internals ) ) ;\n res = dwarf_elf_object_access_internals_init ( internals , elf , err ) ;\n if ( res != DW_DLV_OK ) {\n free ( internals ) ;\n return DW_DLV_ERROR ;\n }\n internals -> libdwarf_owns_elf = libdwarf_owns_elf ;\n intfc = malloc ( sizeof ( Dwarf_Obj_Access_Interface ) ) ;\n if ( ! intfc ) {\n * err = DW_DLE_ALLOC_FAIL ;\n free ( internals ) ;\n return DW_DLV_ERROR ;\n }\n intfc -> object = internals ;\n intfc -> methods = & dwarf_elf_object_access_methods ;\n * ret_obj = intfc ;\n return DW_DLV_OK ;\n }"}
{"idx": 4632, "target": 0, "func": "void mct_log ( const char * format , ... ) {\n va_list args ;\n va_start ( args , format ) ;\n vprintf ( format , args ) ;\n va_end ( args ) ;\n if ( mct_log_file ) {\n va_list args ;\n va_start ( args , format ) ;\n vfprintf ( mct_log_file , format , args ) ;\n va_end ( args ) ;\n }\n }"}
{"idx": 4633, "target": 0, "func": "static void pk_transaction_search_files ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) {\n gboolean ret ;\n guint i ;\n PkBitfield filter ;\n g_autofree gchar * * values = NULL ;\n g_autoptr ( GError ) error = NULL ;\n g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;\n g_return_if_fail ( transaction -> priv -> tid != NULL ) ;\n g_variant_get ( params , \"(t^a&s)\" , & filter , & values ) ;\n g_debug ( \"SearchFiles method called: %\" G_GUINT64_FORMAT \", %s\" , filter , values [ 0 ] ) ;\n if ( ! pk_backend_is_implemented ( transaction -> priv -> backend , PK_ROLE_ENUM_SEARCH_FILE ) ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NOT_SUPPORTED , \"SearchFiles not supported by backend\" ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n ret = pk_transaction_search_check ( values , & error ) ;\n if ( ! ret ) {\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n for ( i = 0 ;\n values [ i ] != NULL ;\n i ++ ) {\n if ( values [ i ] [ 0 ] != '/' && strstr ( values [ i ] , \"/\" ) != NULL ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_SEARCH_PATH_INVALID , \"Invalid search path\" ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n }\n transaction -> priv -> cached_filters = filter ;\n transaction -> priv -> cached_values = g_strdupv ( values ) ;\n pk_transaction_set_role ( transaction , PK_ROLE_ENUM_SEARCH_FILE ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_READY ) ;\n out : pk_transaction_dbus_return ( context , error ) ;\n }"}
{"idx": 4634, "target": 0, "func": "int vp9_get_intra_inter_context ( const MACROBLOCKD * xd ) {\n const MB_MODE_INFO * const above_mbmi = get_mbmi ( get_above_mi ( xd ) ) ;\n const MB_MODE_INFO * const left_mbmi = get_mbmi ( get_left_mi ( xd ) ) ;\n const int has_above = above_mbmi != NULL ;\n const int has_left = left_mbmi != NULL ;\n if ( has_above && has_left ) {\n const int above_intra = ! is_inter_block ( above_mbmi ) ;\n const int left_intra = ! is_inter_block ( left_mbmi ) ;\n return left_intra && above_intra ? 3 : left_intra || above_intra ;\n }\n else if ( has_above || has_left ) {\n return 2 * ! is_inter_block ( has_above ? above_mbmi : left_mbmi ) ;\n }\n else {\n return 0 ;\n }\n }"}
{"idx": 4635, "target": 0, "func": "static gpgme_error_t uiserver_set_fd ( engine_uiserver_t uiserver , fd_type_t fd_type , const char * opt ) {\n gpg_error_t err = 0 ;\n char line [ COMMANDLINELEN ] ;\n char * which ;\n iocb_data_t * iocb_data ;\n int dir ;\n switch ( fd_type ) {\n case INPUT_FD : which = \"INPUT\" ;\n iocb_data = & uiserver -> input_cb ;\n break ;\n case OUTPUT_FD : which = \"OUTPUT\" ;\n iocb_data = & uiserver -> output_cb ;\n break ;\n case MESSAGE_FD : which = \"MESSAGE\" ;\n iocb_data = & uiserver -> message_cb ;\n break ;\n default : return gpg_error ( GPG_ERR_INV_VALUE ) ;\n }\n dir = iocb_data -> dir ;\n iocb_data -> server_fd = _gpgme_data_get_fd ( iocb_data -> data ) ;\n if ( iocb_data -> server_fd < 0 ) {\n int fds [ 2 ] ;\n if ( _gpgme_io_pipe ( fds , 0 ) < 0 ) return gpg_error_from_syserror ( ) ;\n iocb_data -> fd = dir ? fds [ 0 ] : fds [ 1 ] ;\n iocb_data -> server_fd = dir ? fds [ 1 ] : fds [ 0 ] ;\n if ( _gpgme_io_set_close_notify ( iocb_data -> fd , close_notify_handler , uiserver ) ) {\n err = gpg_error ( GPG_ERR_GENERAL ) ;\n goto leave_set_fd ;\n }\n }\n err = assuan_sendfd ( uiserver -> assuan_ctx , iocb_data -> server_fd ) ;\n if ( err ) goto leave_set_fd ;\n _gpgme_io_close ( iocb_data -> server_fd ) ;\n iocb_data -> server_fd = - 1 ;\n if ( opt ) snprintf ( line , COMMANDLINELEN , \"%s FD %s\" , which , opt ) ;\n else snprintf ( line , COMMANDLINELEN , \"%s FD\" , which ) ;\n err = uiserver_assuan_simple_command ( uiserver -> assuan_ctx , line , NULL , NULL ) ;\n leave_set_fd : if ( err ) {\n _gpgme_io_close ( iocb_data -> fd ) ;\n iocb_data -> fd = - 1 ;\n if ( iocb_data -> server_fd != - 1 ) {\n _gpgme_io_close ( iocb_data -> server_fd ) ;\n iocb_data -> server_fd = - 1 ;\n }\n }\n return err ;\n }"}
{"idx": 4636, "target": 0, "func": "int mysql_table_grant ( THD * thd , TABLE_LIST * table_list , List < LEX_USER > & user_list , List < LEX_COLUMN > & columns , ulong rights , bool revoke_grant ) {\n ulong column_priv = 0 ;\n List_iterator < LEX_USER > str_list ( user_list ) ;\n LEX_USER * Str , * tmp_Str ;\n TABLE_LIST tables [ 3 ] ;\n bool create_new_users = 0 ;\n char * db_name , * table_name ;\n bool save_binlog_row_based ;\n DBUG_ENTER ( \"mysql_table_grant\" ) ;\n if ( ! initialized ) {\n my_error ( ER_OPTION_PREVENTS_STATEMENT , MYF ( 0 ) , \"--skip-grant-tables\" ) ;\n DBUG_RETURN ( TRUE ) ;\n }\n if ( rights & ~ TABLE_ACLS ) {\n my_message ( ER_ILLEGAL_GRANT_FOR_TABLE , ER ( ER_ILLEGAL_GRANT_FOR_TABLE ) , MYF ( 0 ) ) ;\n DBUG_RETURN ( TRUE ) ;\n }\n if ( ! revoke_grant ) {\n if ( columns . elements ) {\n class LEX_COLUMN * column ;\n List_iterator < LEX_COLUMN > column_iter ( columns ) ;\n if ( open_and_lock_tables ( thd , table_list ) ) DBUG_RETURN ( TRUE ) ;\n while ( ( column = column_iter ++ ) ) {\n uint unused_field_idx = NO_CACHED_FIELD_INDEX ;\n TABLE_LIST * dummy ;\n Field * f = find_field_in_table_ref ( thd , table_list , column -> column . ptr ( ) , column -> column . length ( ) , column -> column . ptr ( ) , NULL , NULL , NULL , TRUE , FALSE , & unused_field_idx , FALSE , & dummy ) ;\n if ( f == ( Field * ) 0 ) {\n my_error ( ER_BAD_FIELD_ERROR , MYF ( 0 ) , column -> column . c_ptr ( ) , table_list -> alias ) ;\n DBUG_RETURN ( TRUE ) ;\n }\n if ( f == ( Field * ) - 1 ) DBUG_RETURN ( TRUE ) ;\n column_priv |= column -> rights ;\n }\n close_thread_tables ( thd ) ;\n }\n else {\n if ( ! ( rights & CREATE_ACL ) ) {\n char buf [ FN_REFLEN + 1 ] ;\n build_table_filename ( buf , sizeof ( buf ) - 1 , table_list -> db , table_list -> table_name , reg_ext , 0 ) ;\n fn_format ( buf , buf , \"\" , \"\" , MY_UNPACK_FILENAME | MY_RESOLVE_SYMLINKS | MY_RETURN_REAL_PATH | MY_APPEND_EXT ) ;\n if ( access ( buf , F_OK ) ) {\n my_error ( ER_NO_SUCH_TABLE , MYF ( 0 ) , table_list -> db , table_list -> alias ) ;\n DBUG_RETURN ( TRUE ) ;\n }\n }\n if ( table_list -> grant . want_privilege ) {\n char command [ 128 ] ;\n get_privilege_desc ( command , sizeof ( command ) , table_list -> grant . want_privilege ) ;\n my_error ( ER_TABLEACCESS_DENIED_ERROR , MYF ( 0 ) , command , thd -> security_ctx -> priv_user , thd -> security_ctx -> host_or_ip , table_list -> alias ) ;\n DBUG_RETURN ( - 1 ) ;\n }\n }\n }\n bzero ( ( char * ) & tables , sizeof ( tables ) ) ;\n tables [ 0 ] . alias = tables [ 0 ] . table_name = ( char * ) \"user\" ;\n tables [ 1 ] . alias = tables [ 1 ] . table_name = ( char * ) \"tables_priv\" ;\n tables [ 2 ] . alias = tables [ 2 ] . table_name = ( char * ) \"columns_priv\" ;\n tables [ 0 ] . next_local = tables [ 0 ] . next_global = tables + 1 ;\n tables [ 1 ] . next_local = tables [ 1 ] . next_global = ( ( column_priv || ( revoke_grant && ( ( rights & COL_ACLS ) || columns . elements ) ) ) ? tables + 2 : 0 ) ;\n tables [ 0 ] . lock_type = tables [ 1 ] . lock_type = tables [ 2 ] . lock_type = TL_WRITE ;\n tables [ 0 ] . db = tables [ 1 ] . db = tables [ 2 ] . db = ( char * ) \"mysql\" ;\n save_binlog_row_based = thd -> current_stmt_binlog_row_based ;\n thd -> clear_current_stmt_binlog_row_based ( ) ;\n # ifdef HAVE_REPLICATION if ( thd -> slave_thread && rpl_filter -> is_on ( ) ) {\n tables [ 0 ] . updating = tables [ 1 ] . updating = tables [ 2 ] . updating = 1 ;\n if ( ! ( thd -> spcont || rpl_filter -> tables_ok ( 0 , tables ) ) ) {\n thd -> current_stmt_binlog_row_based = save_binlog_row_based ;\n DBUG_RETURN ( FALSE ) ;\n }\n }\n # endif Query_tables_list backup ;\n thd -> lex -> reset_n_backup_query_tables_list ( & backup ) ;\n if ( simple_open_n_lock_tables ( thd , tables ) ) {\n close_thread_tables ( thd ) ;\n thd -> current_stmt_binlog_row_based = save_binlog_row_based ;\n DBUG_RETURN ( TRUE ) ;\n }\n if ( ! revoke_grant ) create_new_users = test_if_create_new_users ( thd ) ;\n bool result = FALSE ;\n rw_wrlock ( & LOCK_grant ) ;\n pthread_mutex_lock ( & acl_cache -> lock ) ;\n MEM_ROOT * old_root = thd -> mem_root ;\n thd -> mem_root = & memex ;\n grant_version ++ ;\n while ( ( tmp_Str = str_list ++ ) ) {\n int error ;\n GRANT_TABLE * grant_table ;\n if ( ! ( Str = get_current_user ( thd , tmp_Str ) ) ) {\n result = TRUE ;\n continue ;\n }\n error = replace_user_table ( thd , tables [ 0 ] . table , * Str , 0 , revoke_grant , create_new_users , test ( thd -> variables . sql_mode & MODE_NO_AUTO_CREATE_USER ) ) ;\n if ( error ) {\n result = TRUE ;\n continue ;\n }\n db_name = table_list -> get_db_name ( ) ;\n table_name = table_list -> get_table_name ( ) ;\n grant_table = table_hash_search ( Str -> host . str , NullS , db_name , Str -> user . str , table_name , 1 ) ;\n if ( ! grant_table ) {\n if ( revoke_grant ) {\n my_error ( ER_NONEXISTING_TABLE_GRANT , MYF ( 0 ) , Str -> user . str , Str -> host . str , table_list -> table_name ) ;\n result = TRUE ;\n continue ;\n }\n grant_table = new GRANT_TABLE ( Str -> host . str , db_name , Str -> user . str , table_name , rights , column_priv ) ;\n if ( ! grant_table || my_hash_insert ( & column_priv_hash , ( uchar * ) grant_table ) ) {\n result = TRUE ;\n continue ;\n }\n }\n if ( revoke_grant ) {\n class LEX_COLUMN * column ;\n List_iterator < LEX_COLUMN > column_iter ( columns ) ;\n GRANT_COLUMN * grant_column ;\n while ( ( column = column_iter ++ ) ) {\n grant_column = column_hash_search ( grant_table , column -> column . ptr ( ) , column -> column . length ( ) ) ;\n if ( grant_column ) grant_column -> rights &= ~ ( column -> rights | rights ) ;\n }\n column_priv = 0 ;\n for ( uint idx = 0 ;\n idx < grant_table -> hash_columns . records ;\n idx ++ ) {\n grant_column = ( GRANT_COLUMN * ) hash_element ( & grant_table -> hash_columns , idx ) ;\n grant_column -> rights &= ~ rights ;\n column_priv |= grant_column -> rights ;\n }\n }\n else {\n column_priv |= grant_table -> cols ;\n }\n if ( replace_table_table ( thd , grant_table , tables [ 1 ] . table , * Str , db_name , table_name , rights , column_priv , revoke_grant ) ) {\n result = TRUE ;\n }\n else if ( tables [ 2 ] . table ) {\n if ( ( replace_column_table ( grant_table , tables [ 2 ] . table , * Str , columns , db_name , table_name , rights , revoke_grant ) ) ) {\n result = TRUE ;\n }\n }\n }\n thd -> mem_root = old_root ;\n pthread_mutex_unlock ( & acl_cache -> lock ) ;\n if ( ! result ) {\n result = write_bin_log ( thd , TRUE , thd -> query ( ) , thd -> query_length ( ) ) ;\n }\n rw_unlock ( & LOCK_grant ) ;\n if ( ! result ) my_ok ( thd ) ;\n thd -> lex -> restore_backup_query_tables_list ( & backup ) ;\n thd -> current_stmt_binlog_row_based = save_binlog_row_based ;\n DBUG_RETURN ( result ) ;\n }"}
{"idx": 4637, "target": 0, "func": "static gboolean monitor_includes_file ( const Monitor * monitor , NautilusFile * file ) {\n if ( monitor -> file == file ) {\n return TRUE ;\n }\n if ( monitor -> file != NULL ) {\n return FALSE ;\n }\n if ( file == file -> details -> directory -> details -> as_file ) {\n return FALSE ;\n }\n return nautilus_file_should_show ( file , monitor -> monitor_hidden_files , TRUE ) ;\n }"}
{"idx": 4638, "target": 0, "func": "static inline void e1000e_set_phy_ctrl ( E1000ECore * core , int index , uint16_t val ) {\n core -> phy [ 0 ] [ PHY_CTRL ] = val & ~ ( 0x3f | MII_CR_RESET | MII_CR_RESTART_AUTO_NEG ) ;\n if ( ( val & MII_CR_RESTART_AUTO_NEG ) && e1000e_have_autoneg ( core ) ) {\n e1000x_restart_autoneg ( core -> mac , core -> phy [ 0 ] , core -> autoneg_timer ) ;\n }\n }"}
{"idx": 4639, "target": 0, "func": "static void prom_class_init ( ObjectClass * klass , void * data ) {\n DeviceClass * dc = DEVICE_CLASS ( klass ) ;\n SysBusDeviceClass * k = SYS_BUS_DEVICE_CLASS ( klass ) ;\n k -> init = prom_init1 ;\n dc -> props = prom_properties ;\n }"}
{"idx": 4640, "target": 0, "func": "static int option_parse_unpack_unreachable ( const struct option * opt , const char * arg , int unset ) {\n if ( unset ) {\n unpack_unreachable = 0 ;\n unpack_unreachable_expiration = 0 ;\n }\n else {\n unpack_unreachable = 1 ;\n if ( arg ) unpack_unreachable_expiration = approxidate ( arg ) ;\n }\n return 0 ;\n }"}
{"idx": 4641, "target": 0, "func": "static int dissect_CPMRestartPosition ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * parent_tree , gboolean in , void * data _U_ ) {\n gint offset = 16 ;\n proto_item * item ;\n proto_tree * tree ;\n col_append_str ( pinfo -> cinfo , COL_INFO , \"CPMRestartPosition\" ) ;\n if ( in ) {\n item = proto_tree_add_item ( parent_tree , hf_mswsp_msg , tvb , offset , - 1 , ENC_NA ) ;\n tree = proto_item_add_subtree ( item , ett_mswsp_msg ) ;\n proto_item_set_text ( item , \"CPMRestartPosition\" ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmrestartposition_hcursor , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmrestartposition_chapt , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n }\n col_append_str ( pinfo -> cinfo , COL_INFO , \"RestartPosition\" ) ;\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 4642, "target": 0, "func": "static MAIN_WINDOW_REC * mainwindows_find_upper_left ( MAIN_WINDOW_REC * window ) {\n MAIN_WINDOW_REC * best ;\n best = mainwindows_find_left ( window , FALSE ) ;\n if ( best == NULL ) best = mainwindows_find_upper ( window ) ;\n return best ;\n }"}
{"idx": 4643, "target": 1, "func": "static void bamboo_init ( ram_addr_t ram_size , const char * boot_device , const char * kernel_filename , const char * kernel_cmdline , const char * initrd_filename , const char * cpu_model ) {\n unsigned int pci_irq_nrs [ 4 ] = {\n 28 , 27 , 26 , 25 }\n ;\n PCIBus * pcibus ;\n CPUState * env ;\n uint64_t elf_entry ;\n uint64_t elf_lowaddr ;\n target_phys_addr_t entry = 0 ;\n target_phys_addr_t loadaddr = 0 ;\n target_long kernel_size = 0 ;\n target_ulong initrd_base = 0 ;\n target_long initrd_size = 0 ;\n target_ulong dt_base = 0 ;\n void * fdt ;\n int i ;\n env = ppc440ep_init ( & ram_size , & pcibus , pci_irq_nrs , 1 , cpu_model ) ;\n if ( pcibus ) {\n for ( i = 0 ;\n i < MAX_VIRTIO_CONSOLES ;\n i ++ ) {\n if ( virtcon_hds [ i ] ) {\n pci_create_simple ( pcibus , - 1 , \"virtio-console-pci\" ) ;\n }\n }\n for ( i = 0 ;\n i < nb_nics ;\n i ++ ) {\n pci_nic_init_nofail ( & nd_table [ i ] , \"e1000\" , NULL ) ;\n }\n }\n if ( kernel_filename ) {\n kernel_size = load_uimage ( kernel_filename , & entry , & loadaddr , NULL ) ;\n if ( kernel_size < 0 ) {\n kernel_size = load_elf ( kernel_filename , 0 , & elf_entry , & elf_lowaddr , NULL , 1 , ELF_MACHINE , 0 ) ;\n entry = elf_entry ;\n loadaddr = elf_lowaddr ;\n }\n if ( kernel_size < 0 ) {\n fprintf ( stderr , \"qemu: could not load kernel '%s'\\n\" , kernel_filename ) ;\n exit ( 1 ) ;\n }\n }\n if ( initrd_filename ) {\n initrd_base = kernel_size + loadaddr ;\n initrd_size = load_image_targphys ( initrd_filename , initrd_base , ram_size - initrd_base ) ;\n if ( initrd_size < 0 ) {\n fprintf ( stderr , \"qemu: could not load initial ram disk '%s'\\n\" , initrd_filename ) ;\n exit ( 1 ) ;\n }\n }\n if ( kernel_filename ) {\n if ( initrd_base ) dt_base = initrd_base + initrd_size ;\n else dt_base = kernel_size + loadaddr ;\n fdt = bamboo_load_device_tree ( dt_base , ram_size , initrd_base , initrd_size , kernel_cmdline ) ;\n if ( fdt == NULL ) {\n fprintf ( stderr , \"couldn't load device tree\\n\" ) ;\n exit ( 1 ) ;\n }\n env -> gpr [ 1 ] = ( 16 << 20 ) - 8 ;\n env -> gpr [ 3 ] = dt_base ;\n env -> nip = entry ;\n }\n if ( kvm_enabled ( ) ) kvmppc_init ( ) ;\n }"}
{"idx": 4644, "target": 0, "func": "int evhttp_connection_connect ( struct evhttp_connection * evcon ) {\n if ( evcon -> state == EVCON_CONNECTING ) return ( 0 ) ;\n evhttp_connection_reset ( evcon ) ;\n assert ( ! ( evcon -> flags & EVHTTP_CON_INCOMING ) ) ;\n evcon -> flags |= EVHTTP_CON_OUTGOING ;\n evcon -> fd = bind_socket ( evcon -> bind_address , evcon -> bind_port , 0 ) ;\n if ( evcon -> fd == - 1 ) {\n event_debug ( ( \"%s: failed to bind to \\\"%s\\\"\" , __func__ , evcon -> bind_address ) ) ;\n return ( - 1 ) ;\n }\n if ( socket_connect ( evcon -> fd , evcon -> address , evcon -> port ) == - 1 ) {\n EVUTIL_CLOSESOCKET ( evcon -> fd ) ;\n evcon -> fd = - 1 ;\n return ( - 1 ) ;\n }\n event_set ( & evcon -> ev , evcon -> fd , EV_WRITE , evhttp_connectioncb , evcon ) ;\n EVHTTP_BASE_SET ( evcon , & evcon -> ev ) ;\n evhttp_add_event ( & evcon -> ev , evcon -> timeout , HTTP_CONNECT_TIMEOUT ) ;\n evcon -> state = EVCON_CONNECTING ;\n return ( 0 ) ;\n }"}
{"idx": 4645, "target": 0, "func": "static void * Type_MLU_Read ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number * nItems , cmsUInt32Number SizeOfTag ) {\n cmsMLU * mlu ;\n cmsUInt32Number Count , RecLen , NumOfWchar ;\n cmsUInt32Number SizeOfHeader ;\n cmsUInt32Number Len , Offset ;\n cmsUInt32Number i ;\n wchar_t * Block ;\n cmsUInt32Number BeginOfThisString , EndOfThisString , LargestPosition ;\n * nItems = 0 ;\n if ( ! _cmsReadUInt32Number ( io , & Count ) ) return NULL ;\n if ( ! _cmsReadUInt32Number ( io , & RecLen ) ) return NULL ;\n if ( RecLen != 12 ) {\n cmsSignalError ( self -> ContextID , cmsERROR_UNKNOWN_EXTENSION , \"multiLocalizedUnicodeType of len != 12 is not supported.\" ) ;\n return NULL ;\n }\n mlu = cmsMLUalloc ( self -> ContextID , Count ) ;\n if ( mlu == NULL ) return NULL ;\n mlu -> UsedEntries = Count ;\n SizeOfHeader = 12 * Count + sizeof ( _cmsTagBase ) ;\n LargestPosition = 0 ;\n for ( i = 0 ;\n i < Count ;\n i ++ ) {\n if ( ! _cmsReadUInt16Number ( io , & mlu -> Entries [ i ] . Language ) ) goto Error ;\n if ( ! _cmsReadUInt16Number ( io , & mlu -> Entries [ i ] . Country ) ) goto Error ;\n if ( ! _cmsReadUInt32Number ( io , & Len ) ) goto Error ;\n if ( ! _cmsReadUInt32Number ( io , & Offset ) ) goto Error ;\n if ( Offset < ( SizeOfHeader + 8 ) ) goto Error ;\n if ( ( Offset + Len ) > SizeOfTag + 8 ) goto Error ;\n BeginOfThisString = Offset - SizeOfHeader - 8 ;\n mlu -> Entries [ i ] . Len = ( Len * sizeof ( wchar_t ) ) / sizeof ( cmsUInt16Number ) ;\n mlu -> Entries [ i ] . StrW = ( BeginOfThisString * sizeof ( wchar_t ) ) / sizeof ( cmsUInt16Number ) ;\n EndOfThisString = BeginOfThisString + Len ;\n if ( EndOfThisString > LargestPosition ) LargestPosition = EndOfThisString ;\n }\n SizeOfTag = ( LargestPosition * sizeof ( wchar_t ) ) / sizeof ( cmsUInt16Number ) ;\n if ( SizeOfTag == 0 ) {\n Block = NULL ;\n NumOfWchar = 0 ;\n }\n else {\n Block = ( wchar_t * ) _cmsMalloc ( self -> ContextID , SizeOfTag ) ;\n if ( Block == NULL ) goto Error ;\n NumOfWchar = SizeOfTag / sizeof ( wchar_t ) ;\n if ( ! _cmsReadWCharArray ( io , NumOfWchar , Block ) ) goto Error ;\n }\n mlu -> MemPool = Block ;\n mlu -> PoolSize = SizeOfTag ;\n mlu -> PoolUsed = SizeOfTag ;\n * nItems = 1 ;\n return ( void * ) mlu ;\n Error : if ( mlu ) cmsMLUfree ( mlu ) ;\n return NULL ;\n }"}
{"idx": 4646, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner )"}
{"idx": 4647, "target": 0, "func": "static void remove_short_at_index ( H264Context * h , int i ) {\n assert ( i >= 0 && i < h -> short_ref_count ) ;\n h -> short_ref [ i ] = NULL ;\n if ( -- h -> short_ref_count ) memmove ( & h -> short_ref [ i ] , & h -> short_ref [ i + 1 ] , ( h -> short_ref_count - i ) * sizeof ( Picture * ) ) ;\n }"}
{"idx": 4648, "target": 0, "func": "void fz_cmm_transform_color ( fz_context * ctx , fz_icclink * link , unsigned short * dst , const unsigned short * src ) {\n if ( ctx && ctx -> colorspace && ctx -> colorspace -> cmm && ctx -> cmm_instance ) ctx -> colorspace -> cmm -> transform_color ( ctx -> cmm_instance , link , dst , src ) ;\n }"}
{"idx": 4649, "target": 0, "func": "static int find_odc_header ( struct archive_read * a ) {\n const void * h ;\n const char * p , * q ;\n size_t skip , skipped = 0 ;\n ssize_t bytes ;\n for ( ;\n ;\n ) {\n h = __archive_read_ahead ( a , odc_header_size , & bytes ) ;\n if ( h == NULL ) return ( ARCHIVE_FATAL ) ;\n p = h ;\n q = p + bytes ;\n if ( memcmp ( \"070707\" , p , 6 ) == 0 && is_octal ( p , odc_header_size ) ) return ( ARCHIVE_OK ) ;\n if ( memcmp ( \"070727\" , p , 6 ) == 0 && is_afio_large ( p , bytes ) ) {\n a -> archive . archive_format = ARCHIVE_FORMAT_CPIO_AFIO_LARGE ;\n return ( ARCHIVE_OK ) ;\n }\n while ( p + odc_header_size <= q ) {\n switch ( p [ 5 ] ) {\n case '7' : if ( ( memcmp ( \"070707\" , p , 6 ) == 0 && is_octal ( p , odc_header_size ) ) || ( memcmp ( \"070727\" , p , 6 ) == 0 && is_afio_large ( p , q - p ) ) ) {\n skip = p - ( const char * ) h ;\n __archive_read_consume ( a , skip ) ;\n skipped += skip ;\n if ( p [ 4 ] == '2' ) a -> archive . archive_format = ARCHIVE_FORMAT_CPIO_AFIO_LARGE ;\n if ( skipped > 0 ) {\n archive_set_error ( & a -> archive , 0 , \"Skipped %d bytes before \" \"finding valid header\" , ( int ) skipped ) ;\n return ( ARCHIVE_WARN ) ;\n }\n return ( ARCHIVE_OK ) ;\n }\n p += 2 ;\n break ;\n case '0' : p ++ ;\n break ;\n default : p += 6 ;\n break ;\n }\n }\n skip = p - ( const char * ) h ;\n __archive_read_consume ( a , skip ) ;\n skipped += skip ;\n }\n }"}
{"idx": 4650, "target": 0, "func": "void TSHttpHdrDestroy ( TSMBuffer bufp , TSMLoc obj ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_http_hdr_handle ( obj ) == TS_SUCCESS ) ;\n }"}
{"idx": 4651, "target": 0, "func": "static const char * name ## _get_name ( void * ctx ) \\ {\n return # name ;\n \\ }\n static const AVClass name ## _class = {\n . class_name = # name , . item_name = name ## _get_name , . option = name ## _options \\ }\n typedef struct DefaultContext {\n const AVClass * class ;\n int nokey ;\n int noprint_wrappers ;\n int nested_section [ SECTION_MAX_NB_LEVELS ] ;\n }\n DefaultContext ;\n # undef OFFSET # define OFFSET ( x ) offsetof ( DefaultContext , x ) static const AVOption default_options [ ] = {\n {\n \"noprint_wrappers\" , \"do not print headers and footers\" , OFFSET ( noprint_wrappers ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n \"nw\" , \"do not print headers and footers\" , OFFSET ( noprint_wrappers ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n \"nokey\" , \"force no key printing\" , OFFSET ( nokey ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n \"nk\" , \"force no key printing\" , OFFSET ( nokey ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n NULL }\n , }\n ;\n DEFINE_WRITER_CLASS ( default ) ;\n static inline char * upcase_string ( char * dst , size_t dst_size , const char * src ) {\n int i ;\n for ( i = 0 ;\n src [ i ] && i < dst_size - 1 ;\n i ++ ) dst [ i ] = av_toupper ( src [ i ] ) ;\n dst [ i ] = 0 ;\n return dst ;\n }\n static void default_print_section_header ( WriterContext * wctx ) {\n DefaultContext * def = wctx -> priv ;\n char buf [ 32 ] ;\n const struct section * section = wctx -> section [ wctx -> level ] ;\n const struct section * parent_section = wctx -> level ? wctx -> section [ wctx -> level - 1 ] : NULL ;\n av_bprint_clear ( & wctx -> section_pbuf [ wctx -> level ] ) ;\n if ( parent_section && ! ( parent_section -> flags & ( SECTION_FLAG_IS_WRAPPER | SECTION_FLAG_IS_ARRAY ) ) ) {\n def -> nested_section [ wctx -> level ] = 1 ;\n av_bprintf ( & wctx -> section_pbuf [ wctx -> level ] , \"%s%s:\" , wctx -> section_pbuf [ wctx -> level - 1 ] . str , upcase_string ( buf , sizeof ( buf ) , av_x_if_null ( section -> element_name , section -> name ) ) ) ;\n }\n if ( def -> noprint_wrappers || def -> nested_section [ wctx -> level ] ) return ;\n if ( ! ( section -> flags & ( SECTION_FLAG_IS_WRAPPER | SECTION_FLAG_IS_ARRAY ) ) ) printf ( \"[%s]\\n\" , upcase_string ( buf , sizeof ( buf ) , section -> name ) ) ;\n }\n static void default_print_section_footer ( WriterContext * wctx ) {\n DefaultContext * def = wctx -> priv ;\n const struct section * section = wctx -> section [ wctx -> level ] ;\n char buf [ 32 ] ;\n if ( def -> noprint_wrappers || def -> nested_section [ wctx -> level ] ) return ;\n if ( ! ( section -> flags & ( SECTION_FLAG_IS_WRAPPER | SECTION_FLAG_IS_ARRAY ) ) ) printf ( \"[/%s]\\n\" , upcase_string ( buf , sizeof ( buf ) , section -> name ) ) ;\n }\n static void default_print_str ( WriterContext * wctx , const char * key , const char * value ) {\n DefaultContext * def = wctx -> priv ;\n if ( ! def -> nokey ) printf ( \"%s%s=\" , wctx -> section_pbuf [ wctx -> level ] . str , key ) ;\n printf ( \"%s\\n\" , value ) ;\n }\n static void default_print_int ( WriterContext * wctx , const char * key , long long int value ) {\n DefaultContext * def = wctx -> priv ;\n if ( ! def -> nokey ) printf ( \"%s%s=\" , wctx -> section_pbuf [ wctx -> level ] . str , key ) ;\n printf ( \"%lld\\n\" , value ) ;\n }\n static const Writer default_writer = {\n . name = \"default\" , . priv_size = sizeof ( DefaultContext ) , . print_section_header = default_print_section_header , . print_section_footer = default_print_section_footer , . print_integer = default_print_int , . print_string = default_print_str , . flags = WRITER_FLAG_DISPLAY_OPTIONAL_FIELDS , . priv_class = & default_class , }\n ;\n static const char * c_escape_str ( AVBPrint * dst , const char * src , const char sep , void * log_ctx ) {\n const char * p ;\n for ( p = src ;\n * p ;\n p ++ ) {\n switch ( * p ) {\n case '\\b' : av_bprintf ( dst , \"%s\" , \"\\\\b\" ) ;\n break ;\n case '\\f' : av_bprintf ( dst , \"%s\" , \"\\\\f\" ) ;\n break ;\n case '\\n' : av_bprintf ( dst , \"%s\" , \"\\\\n\" ) ;\n break ;\n case '\\r' : av_bprintf ( dst , \"%s\" , \"\\\\r\" ) ;\n break ;\n case '\\\\' : av_bprintf ( dst , \"%s\" , \"\\\\\\\\\" ) ;\n break ;\n default : if ( * p == sep ) av_bprint_chars ( dst , '\\\\' , 1 ) ;\n av_bprint_chars ( dst , * p , 1 ) ;\n }\n }\n return dst -> str ;\n }\n static const char * csv_escape_str ( AVBPrint * dst , const char * src , const char sep , void * log_ctx ) {\n char meta_chars [ ] = {\n sep , '\"' , '\\n' , '\\r' , '\\0' }\n ;\n int needs_quoting = ! ! src [ strcspn ( src , meta_chars ) ] ;\n if ( needs_quoting ) av_bprint_chars ( dst , '\"' , 1 ) ;\n for ( ;\n * src ;\n src ++ ) {\n if ( * src == '\"' ) av_bprint_chars ( dst , '\"' , 1 ) ;\n av_bprint_chars ( dst , * src , 1 ) ;\n }\n if ( needs_quoting ) av_bprint_chars ( dst , '\"' , 1 ) ;\n return dst -> str ;\n }\n static const char * none_escape_str ( AVBPrint * dst , const char * src , const char sep , void * log_ctx ) {\n return src ;\n }\n typedef struct CompactContext {\n const AVClass * class ;\n char * item_sep_str ;\n char item_sep ;\n int nokey ;\n int print_section ;\n char * escape_mode_str ;\n const char * ( * escape_str ) ( AVBPrint * dst , const char * src , const char sep , void * log_ctx ) ;\n int nested_section [ SECTION_MAX_NB_LEVELS ] ;\n int has_nested_elems [ SECTION_MAX_NB_LEVELS ] ;\n int terminate_line [ SECTION_MAX_NB_LEVELS ] ;\n }\n CompactContext ;\n # undef OFFSET # define OFFSET ( x ) offsetof ( CompactContext , x ) static const AVOption compact_options [ ] = {\n {\n \"item_sep\" , \"set item separator\" , OFFSET ( item_sep_str ) , AV_OPT_TYPE_STRING , {\n . str = \"|\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"s\" , \"set item separator\" , OFFSET ( item_sep_str ) , AV_OPT_TYPE_STRING , {\n . str = \"|\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"nokey\" , \"force no key printing\" , OFFSET ( nokey ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n \"nk\" , \"force no key printing\" , OFFSET ( nokey ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n \"escape\" , \"set escape mode\" , OFFSET ( escape_mode_str ) , AV_OPT_TYPE_STRING , {\n . str = \"c\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"e\" , \"set escape mode\" , OFFSET ( escape_mode_str ) , AV_OPT_TYPE_STRING , {\n . str = \"c\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"print_section\" , \"print section name\" , OFFSET ( print_section ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n \"p\" , \"print section name\" , OFFSET ( print_section ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n NULL }\n , }\n ;\n DEFINE_WRITER_CLASS ( compact ) ;\n static av_cold int compact_init ( WriterContext * wctx ) {\n CompactContext * compact = wctx -> priv ;\n if ( strlen ( compact -> item_sep_str ) != 1 ) {\n av_log ( wctx , AV_LOG_ERROR , \"Item separator '%s' specified, but must contain a single character\\n\" , compact -> item_sep_str ) ;\n return AVERROR ( EINVAL ) ;\n }\n compact -> item_sep = compact -> item_sep_str [ 0 ] ;\n if ( ! strcmp ( compact -> escape_mode_str , \"none\" ) ) compact -> escape_str = none_escape_str ;\n else if ( ! strcmp ( compact -> escape_mode_str , \"c\" ) ) compact -> escape_str = c_escape_str ;\n else if ( ! strcmp ( compact -> escape_mode_str , \"csv\" ) ) compact -> escape_str = csv_escape_str ;\n else {\n av_log ( wctx , AV_LOG_ERROR , \"Unknown escape mode '%s'\\n\" , compact -> escape_mode_str ) ;\n return AVERROR ( EINVAL ) ;\n }\n return 0 ;\n }\n static void compact_print_section_header ( WriterContext * wctx ) {\n CompactContext * compact = wctx -> priv ;\n const struct section * section = wctx -> section [ wctx -> level ] ;\n const struct section * parent_section = wctx -> level ? wctx -> section [ wctx -> level - 1 ] : NULL ;\n compact -> terminate_line [ wctx -> level ] = 1 ;\n compact -> has_nested_elems [ wctx -> level ] = 0 ;\n av_bprint_clear ( & wctx -> section_pbuf [ wctx -> level ] ) ;\n if ( ! ( section -> flags & SECTION_FLAG_IS_ARRAY ) && parent_section && ! ( parent_section -> flags & ( SECTION_FLAG_IS_WRAPPER | SECTION_FLAG_IS_ARRAY ) ) ) {\n compact -> nested_section [ wctx -> level ] = 1 ;\n compact -> has_nested_elems [ wctx -> level - 1 ] = 1 ;\n av_bprintf ( & wctx -> section_pbuf [ wctx -> level ] , \"%s%s:\" , wctx -> section_pbuf [ wctx -> level - 1 ] . str , ( char * ) av_x_if_null ( section -> element_name , section -> name ) ) ;\n wctx -> nb_item [ wctx -> level ] = wctx -> nb_item [ wctx -> level - 1 ] ;\n }\n else {\n if ( parent_section && compact -> has_nested_elems [ wctx -> level - 1 ] && ( section -> flags & SECTION_FLAG_IS_ARRAY ) ) {\n compact -> terminate_line [ wctx -> level - 1 ] = 0 ;\n printf ( \"\\n\" ) ;\n }\n if ( compact -> print_section && ! ( section -> flags & ( SECTION_FLAG_IS_WRAPPER | SECTION_FLAG_IS_ARRAY ) ) ) printf ( \"%s%c\" , section -> name , compact -> item_sep ) ;\n }\n }\n static void compact_print_section_footer ( WriterContext * wctx ) {\n CompactContext * compact = wctx -> priv ;\n if ( ! compact -> nested_section [ wctx -> level ] && compact -> terminate_line [ wctx -> level ] && ! ( wctx -> section [ wctx -> level ] -> flags & ( SECTION_FLAG_IS_WRAPPER | SECTION_FLAG_IS_ARRAY ) ) ) printf ( \"\\n\" ) ;\n }\n static void compact_print_str ( WriterContext * wctx , const char * key , const char * value ) {\n CompactContext * compact = wctx -> priv ;\n AVBPrint buf ;\n if ( wctx -> nb_item [ wctx -> level ] ) printf ( \"%c\" , compact -> item_sep ) ;\n if ( ! compact -> nokey ) printf ( \"%s%s=\" , wctx -> section_pbuf [ wctx -> level ] . str , key ) ;\n av_bprint_init ( & buf , 1 , AV_BPRINT_SIZE_UNLIMITED ) ;\n printf ( \"%s\" , compact -> escape_str ( & buf , value , compact -> item_sep , wctx ) ) ;\n av_bprint_finalize ( & buf , NULL ) ;\n }\n static void compact_print_int ( WriterContext * wctx , const char * key , long long int value ) {\n CompactContext * compact = wctx -> priv ;\n if ( wctx -> nb_item [ wctx -> level ] ) printf ( \"%c\" , compact -> item_sep ) ;\n if ( ! compact -> nokey ) printf ( \"%s%s=\" , wctx -> section_pbuf [ wctx -> level ] . str , key ) ;\n printf ( \"%lld\" , value ) ;\n }\n static const Writer compact_writer = {\n . name = \"compact\" , . priv_size = sizeof ( CompactContext ) , . init = compact_init , . print_section_header = compact_print_section_header , . print_section_footer = compact_print_section_footer , . print_integer = compact_print_int , . print_string = compact_print_str , . flags = WRITER_FLAG_DISPLAY_OPTIONAL_FIELDS , . priv_class = & compact_class , }\n ;\n # undef OFFSET # define OFFSET ( x ) offsetof ( CompactContext , x ) static const AVOption csv_options [ ] = {\n {\n \"item_sep\" , \"set item separator\" , OFFSET ( item_sep_str ) , AV_OPT_TYPE_STRING , {\n . str = \",\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"s\" , \"set item separator\" , OFFSET ( item_sep_str ) , AV_OPT_TYPE_STRING , {\n . str = \",\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"nokey\" , \"force no key printing\" , OFFSET ( nokey ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n \"nk\" , \"force no key printing\" , OFFSET ( nokey ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n \"escape\" , \"set escape mode\" , OFFSET ( escape_mode_str ) , AV_OPT_TYPE_STRING , {\n . str = \"csv\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"e\" , \"set escape mode\" , OFFSET ( escape_mode_str ) , AV_OPT_TYPE_STRING , {\n . str = \"csv\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"print_section\" , \"print section name\" , OFFSET ( print_section ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n \"p\" , \"print section name\" , OFFSET ( print_section ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n NULL }\n , }\n ;\n DEFINE_WRITER_CLASS ( csv ) ;\n static const Writer csv_writer = {\n . name = \"csv\" , . priv_size = sizeof ( CompactContext ) , . init = compact_init , . print_section_header = compact_print_section_header , . print_section_footer = compact_print_section_footer , . print_integer = compact_print_int , . print_string = compact_print_str , . flags = WRITER_FLAG_DISPLAY_OPTIONAL_FIELDS , . priv_class = & csv_class , }\n ;\n typedef struct FlatContext {\n const AVClass * class ;\n const char * sep_str ;\n char sep ;\n int hierarchical ;\n }\n FlatContext ;\n # undef OFFSET # define OFFSET ( x ) offsetof ( FlatContext , x ) static const AVOption flat_options [ ] = {\n {\n \"sep_char\" , \"set separator\" , OFFSET ( sep_str ) , AV_OPT_TYPE_STRING , {\n . str = \".\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"s\" , \"set separator\" , OFFSET ( sep_str ) , AV_OPT_TYPE_STRING , {\n . str = \".\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"hierarchical\" , \"specify if the section specification should be hierarchical\" , OFFSET ( hierarchical ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n \"h\" , \"specify if the section specification should be hierarchical\" , OFFSET ( hierarchical ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n NULL }\n , }\n ;\n DEFINE_WRITER_CLASS ( flat ) ;\n static av_cold int flat_init ( WriterContext * wctx ) {\n FlatContext * flat = wctx -> priv ;\n if ( strlen ( flat -> sep_str ) != 1 ) {\n av_log ( wctx , AV_LOG_ERROR , \"Item separator '%s' specified, but must contain a single character\\n\" , flat -> sep_str ) ;\n return AVERROR ( EINVAL ) ;\n }\n flat -> sep = flat -> sep_str [ 0 ] ;\n return 0 ;\n }\n static const char * flat_escape_key_str ( AVBPrint * dst , const char * src , const char sep ) {\n const char * p ;\n for ( p = src ;\n * p ;\n p ++ ) {\n if ( ! ( ( * p >= '0' && * p <= '9' ) || ( * p >= 'a' && * p <= 'z' ) || ( * p >= 'A' && * p <= 'Z' ) ) ) av_bprint_chars ( dst , '_' , 1 ) ;\n else av_bprint_chars ( dst , * p , 1 ) ;\n }\n return dst -> str ;\n }\n static const char * flat_escape_value_str ( AVBPrint * dst , const char * src ) {\n const char * p ;\n for ( p = src ;\n * p ;\n p ++ ) {\n switch ( * p ) {\n case '\\n' : av_bprintf ( dst , \"%s\" , \"\\\\n\" ) ;\n break ;\n case '\\r' : av_bprintf ( dst , \"%s\" , \"\\\\r\" ) ;\n break ;\n case '\\\\' : av_bprintf ( dst , \"%s\" , \"\\\\\\\\\" ) ;\n break ;\n case '\"' : av_bprintf ( dst , \"%s\" , \"\\\\\\\"\" ) ;\n break ;\n case '`' : av_bprintf ( dst , \"%s\" , \"\\\\`\" ) ;\n break ;\n case '$' : av_bprintf ( dst , \"%s\" , \"\\\\$\" ) ;\n break ;\n default : av_bprint_chars ( dst , * p , 1 ) ;\n break ;\n }\n }\n return dst -> str ;\n }\n static void flat_print_section_header ( WriterContext * wctx ) {\n FlatContext * flat = wctx -> priv ;\n AVBPrint * buf = & wctx -> section_pbuf [ wctx -> level ] ;\n const struct section * section = wctx -> section [ wctx -> level ] ;\n const struct section * parent_section = wctx -> level ? wctx -> section [ wctx -> level - 1 ] : NULL ;\n av_bprint_clear ( buf ) ;\n if ( ! parent_section ) return ;\n av_bprintf ( buf , \"%s\" , wctx -> section_pbuf [ wctx -> level - 1 ] . str ) ;\n if ( flat -> hierarchical || ! ( section -> flags & ( SECTION_FLAG_IS_ARRAY | SECTION_FLAG_IS_WRAPPER ) ) ) {\n av_bprintf ( buf , \"%s%s\" , wctx -> section [ wctx -> level ] -> name , flat -> sep_str ) ;\n if ( parent_section -> flags & SECTION_FLAG_IS_ARRAY ) {\n int n = parent_section -> id == SECTION_ID_PACKETS_AND_FRAMES ? wctx -> nb_section_packet_frame : wctx -> nb_item [ wctx -> level - 1 ] ;\n av_bprintf ( buf , \"%d%s\" , n , flat -> sep_str ) ;\n }\n }\n }\n static void flat_print_int ( WriterContext * wctx , const char * key , long long int value ) {\n printf ( \"%s%s=%lld\\n\" , wctx -> section_pbuf [ wctx -> level ] . str , key , value ) ;\n }\n static void flat_print_str ( WriterContext * wctx , const char * key , const char * value ) {\n FlatContext * flat = wctx -> priv ;\n AVBPrint buf ;\n printf ( \"%s\" , wctx -> section_pbuf [ wctx -> level ] . str ) ;\n av_bprint_init ( & buf , 1 , AV_BPRINT_SIZE_UNLIMITED ) ;\n printf ( \"%s=\" , flat_escape_key_str ( & buf , key , flat -> sep ) ) ;\n av_bprint_clear ( & buf ) ;\n printf ( \"\\\"%s\\\"\\n\" , flat_escape_value_str ( & buf , value ) ) ;\n av_bprint_finalize ( & buf , NULL ) ;\n }\n static const Writer flat_writer = {\n . name = \"flat\" , . priv_size = sizeof ( FlatContext ) , . init = flat_init , . print_section_header = flat_print_section_header , . print_integer = flat_print_int , . print_string = flat_print_str , . flags = WRITER_FLAG_DISPLAY_OPTIONAL_FIELDS | WRITER_FLAG_PUT_PACKETS_AND_FRAMES_IN_SAME_CHAPTER , . priv_class = & flat_class , }\n ;\n typedef struct INIContext {\n const AVClass * class ;\n int hierarchical ;\n }\n INIContext ;\n # undef OFFSET # define OFFSET ( x ) offsetof ( INIContext , x ) static const AVOption ini_options [ ] = {\n {\n \"hierarchical\" , \"specify if the section specification should be hierarchical\" , OFFSET ( hierarchical ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n \"h\" , \"specify if the section specification should be hierarchical\" , OFFSET ( hierarchical ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n NULL }\n , }\n ;\n DEFINE_WRITER_CLASS ( ini ) ;\n static char * ini_escape_str ( AVBPrint * dst , const char * src ) {\n int i = 0 ;\n char c = 0 ;\n while ( c = src [ i ++ ] ) {\n switch ( c ) {\n case '\\b' : av_bprintf ( dst , \"%s\" , \"\\\\b\" ) ;\n break ;\n case '\\f' : av_bprintf ( dst , \"%s\" , \"\\\\f\" ) ;\n break ;\n case '\\n' : av_bprintf ( dst , \"%s\" , \"\\\\n\" ) ;\n break ;\n case '\\r' : av_bprintf ( dst , \"%s\" , \"\\\\r\" ) ;\n break ;\n case '\\t' : av_bprintf ( dst , \"%s\" , \"\\\\t\" ) ;\n break ;\n case '\\\\' : case '#' : case '=' : case ':' : av_bprint_chars ( dst , '\\\\' , 1 ) ;\n default : if ( ( unsigned char ) c < 32 ) av_bprintf ( dst , \"\\\\x00%02x\" , c & 0xff ) ;\n else av_bprint_chars ( dst , c , 1 ) ;\n break ;\n }\n }\n return dst -> str ;\n }\n static void ini_print_section_header ( WriterContext * wctx ) {\n INIContext * ini = wctx -> priv ;\n AVBPrint * buf = & wctx -> section_pbuf [ wctx -> level ] ;\n const struct section * section = wctx -> section [ wctx -> level ] ;\n const struct section * parent_section = wctx -> level ? wctx -> section [ wctx -> level - 1 ] : NULL ;\n av_bprint_clear ( buf ) ;\n if ( ! parent_section ) {\n printf ( \"# ffprobe output\\n\\n\" ) ;\n return ;\n }\n if ( wctx -> nb_item [ wctx -> level - 1 ] ) printf ( \"\\n\" ) ;\n av_bprintf ( buf , \"%s\" , wctx -> section_pbuf [ wctx -> level - 1 ] . str ) ;\n if ( ini -> hierarchical || ! ( section -> flags & ( SECTION_FLAG_IS_ARRAY | SECTION_FLAG_IS_WRAPPER ) ) ) {\n av_bprintf ( buf , \"%s%s\" , buf -> str [ 0 ] ? \".\" : \"\" , wctx -> section [ wctx -> level ] -> name ) ;\n if ( parent_section -> flags & SECTION_FLAG_IS_ARRAY ) {\n int n = parent_section -> id == SECTION_ID_PACKETS_AND_FRAMES ? wctx -> nb_section_packet_frame : wctx -> nb_item [ wctx -> level - 1 ] ;\n av_bprintf ( buf , \".%d\" , n ) ;\n }\n }\n if ( ! ( section -> flags & ( SECTION_FLAG_IS_ARRAY | SECTION_FLAG_IS_WRAPPER ) ) ) printf ( \"[%s]\\n\" , buf -> str ) ;\n }\n static void ini_print_str ( WriterContext * wctx , const char * key , const char * value ) {\n AVBPrint buf ;\n av_bprint_init ( & buf , 1 , AV_BPRINT_SIZE_UNLIMITED ) ;\n printf ( \"%s=\" , ini_escape_str ( & buf , key ) ) ;\n av_bprint_clear ( & buf ) ;\n printf ( \"%s\\n\" , ini_escape_str ( & buf , value ) ) ;\n av_bprint_finalize ( & buf , NULL ) ;\n }\n static void ini_print_int ( WriterContext * wctx , const char * key , long long int value ) {\n printf ( \"%s=%lld\\n\" , key , value ) ;\n }\n static const Writer ini_writer = {\n . name = \"ini\" , . priv_size = sizeof ( INIContext ) , . print_section_header = ini_print_section_header , . print_integer = ini_print_int , . print_string = ini_print_str , . flags = WRITER_FLAG_DISPLAY_OPTIONAL_FIELDS | WRITER_FLAG_PUT_PACKETS_AND_FRAMES_IN_SAME_CHAPTER , . priv_class = & ini_class , }\n ;\n typedef struct JSONContext {\n const AVClass * class ;\n int indent_level ;\n int compact ;\n const char * item_sep , * item_start_end ;\n }\n JSONContext ;\n # undef OFFSET # define OFFSET ( x ) offsetof ( JSONContext , x ) static const AVOption json_options [ ] = {\n {\n \"compact\" , \"enable compact output\" , OFFSET ( compact ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n \"c\" , \"enable compact output\" , OFFSET ( compact ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n NULL }\n }\n ;\n DEFINE_WRITER_CLASS ( json ) ;\n static av_cold int json_init ( WriterContext * wctx ) {\n JSONContext * json = wctx -> priv ;\n json -> item_sep = json -> compact ? \", \" : \",\\n\" ;\n json -> item_start_end = json -> compact ? \" \" : \"\\n\" ;\n return 0 ;\n }\n static const char * json_escape_str ( AVBPrint * dst , const char * src , void * log_ctx ) {\n static const char json_escape [ ] = {\n '\"' , '\\\\' , '\\b' , '\\f' , '\\n' , '\\r' , '\\t' , 0 }\n ;\n static const char json_subst [ ] = {\n '\"' , '\\\\' , 'b' , 'f' , 'n' , 'r' , 't' , 0 }\n ;\n const char * p ;\n for ( p = src ;\n * p ;\n p ++ ) {\n char * s = strchr ( json_escape , * p ) ;\n if ( s ) {\n av_bprint_chars ( dst , '\\\\' , 1 ) ;\n av_bprint_chars ( dst , json_subst [ s - json_escape ] , 1 ) ;\n }\n else if ( ( unsigned char ) * p < 32 ) {\n av_bprintf ( dst , \"\\\\u00%02x\" , * p & 0xff ) ;\n }\n else {\n av_bprint_chars ( dst , * p , 1 ) ;\n }\n }\n return dst -> str ;\n }\n # define JSON_INDENT ( ) printf ( \"%*c\" , json -> indent_level * 4 , ' ' ) static void json_print_section_header ( WriterContext * wctx ) {\n JSONContext * json = wctx -> priv ;\n AVBPrint buf ;\n const struct section * section = wctx -> section [ wctx -> level ] ;\n const struct section * parent_section = wctx -> level ? wctx -> section [ wctx -> level - 1 ] : NULL ;\n if ( wctx -> level && wctx -> nb_item [ wctx -> level - 1 ] ) printf ( \",\\n\" ) ;\n if ( section -> flags & SECTION_FLAG_IS_WRAPPER ) {\n printf ( \"{\n\\n\" ) ;\n json -> indent_level ++ ;\n }\n else {\n av_bprint_init ( & buf , 1 , AV_BPRINT_SIZE_UNLIMITED ) ;\n json_escape_str ( & buf , section -> name , wctx ) ;\n JSON_INDENT ( ) ;\n json -> indent_level ++ ;\n if ( section -> flags & SECTION_FLAG_IS_ARRAY ) {\n printf ( \"\\\"%s\\\": [\\n\" , buf . str ) ;\n }\n else if ( parent_section && ! ( parent_section -> flags & SECTION_FLAG_IS_ARRAY ) ) {\n printf ( \"\\\"%s\\\": {\n%s\" , buf . str , json -> item_start_end ) ;\n }\n else {\n printf ( \"{\n%s\" , json -> item_start_end ) ;\n if ( parent_section && parent_section -> id == SECTION_ID_PACKETS_AND_FRAMES ) {\n if ( ! json -> compact ) JSON_INDENT ( ) ;\n printf ( \"\\\"type\\\": \\\"%s\\\"%s\" , section -> name , json -> item_sep ) ;\n }\n }\n av_bprint_finalize ( & buf , NULL ) ;\n }\n }\n static void json_print_section_footer ( WriterContext * wctx ) {\n JSONContext * json = wctx -> priv ;\n const struct section * section = wctx -> section [ wctx -> level ] ;\n if ( wctx -> level == 0 ) {\n json -> indent_level -- ;\n printf ( \"\\n}\n\\n\" ) ;\n }\n else if ( section -> flags & SECTION_FLAG_IS_ARRAY ) {\n printf ( \"\\n\" ) ;\n json -> indent_level -- ;\n JSON_INDENT ( ) ;\n printf ( \"]\" ) ;\n }\n else {\n printf ( \"%s\" , json -> item_start_end ) ;\n json -> indent_level -- ;\n if ( ! json -> compact ) JSON_INDENT ( ) ;\n printf ( \"}\n\" ) ;\n }\n }\n static inline void json_print_item_str ( WriterContext * wctx , const char * key , const char * value ) {\n AVBPrint buf ;\n av_bprint_init ( & buf , 1 , AV_BPRINT_SIZE_UNLIMITED ) ;\n printf ( \"\\\"%s\\\":\" , json_escape_str ( & buf , key , wctx ) ) ;\n av_bprint_clear ( & buf ) ;\n printf ( \" \\\"%s\\\"\" , json_escape_str ( & buf , value , wctx ) ) ;\n av_bprint_finalize ( & buf , NULL ) ;\n }\n static void json_print_str ( WriterContext * wctx , const char * key , const char * value ) {\n JSONContext * json = wctx -> priv ;\n if ( wctx -> nb_item [ wctx -> level ] ) printf ( \"%s\" , json -> item_sep ) ;\n if ( ! json -> compact ) JSON_INDENT ( ) ;\n json_print_item_str ( wctx , key , value ) ;\n }\n static void json_print_int ( WriterContext * wctx , const char * key , long long int value ) {\n JSONContext * json = wctx -> priv ;\n AVBPrint buf ;\n if ( wctx -> nb_item [ wctx -> level ] ) printf ( \"%s\" , json -> item_sep ) ;\n if ( ! json -> compact ) JSON_INDENT ( ) ;\n av_bprint_init ( & buf , 1 , AV_BPRINT_SIZE_UNLIMITED ) ;\n printf ( \"\\\"%s\\\": %lld\" , json_escape_str ( & buf , key , wctx ) , value ) ;\n av_bprint_finalize ( & buf , NULL ) ;\n }\n static const Writer json_writer = {\n . name = \"json\" , . priv_size = sizeof ( JSONContext ) , . init = json_init , . print_section_header = json_print_section_header , . print_section_footer = json_print_section_footer , . print_integer = json_print_int , . print_string = json_print_str , . flags = WRITER_FLAG_PUT_PACKETS_AND_FRAMES_IN_SAME_CHAPTER , . priv_class = & json_class , }\n ;\n typedef struct XMLContext {\n const AVClass * class ;\n int within_tag ;\n int indent_level ;\n int fully_qualified ;\n int xsd_strict ;\n }\n XMLContext ;\n # undef OFFSET # define OFFSET ( x ) offsetof ( XMLContext , x ) static const AVOption xml_options [ ] = {\n {\n \"fully_qualified\" , \"specify if the output should be fully qualified\" , OFFSET ( fully_qualified ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n \"q\" , \"specify if the output should be fully qualified\" , OFFSET ( fully_qualified ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n \"xsd_strict\" , \"ensure that the output is XSD compliant\" , OFFSET ( xsd_strict ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n \"x\" , \"ensure that the output is XSD compliant\" , OFFSET ( xsd_strict ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n NULL }\n , }\n ;\n DEFINE_WRITER_CLASS ( xml )"}
{"idx": 4652, "target": 0, "func": "static int vaapi_h264_start_frame ( AVCodecContext * avctx , av_unused const uint8_t * buffer , av_unused uint32_t size ) {\n H264Context * const h = avctx -> priv_data ;\n struct vaapi_context * const vactx = avctx -> hwaccel_context ;\n VAPictureParameterBufferH264 * pic_param ;\n VAIQMatrixBufferH264 * iq_matrix ;\n av_dlog ( avctx , \"vaapi_h264_start_frame()\\n\" ) ;\n vactx -> slice_param_size = sizeof ( VASliceParameterBufferH264 ) ;\n pic_param = ff_vaapi_alloc_pic_param ( vactx , sizeof ( VAPictureParameterBufferH264 ) ) ;\n if ( ! pic_param ) return - 1 ;\n fill_vaapi_pic ( & pic_param -> CurrPic , h -> cur_pic_ptr , h -> picture_structure ) ;\n if ( fill_vaapi_ReferenceFrames ( pic_param , h ) < 0 ) return - 1 ;\n pic_param -> picture_width_in_mbs_minus1 = h -> mb_width - 1 ;\n pic_param -> picture_height_in_mbs_minus1 = h -> mb_height - 1 ;\n pic_param -> bit_depth_luma_minus8 = h -> sps . bit_depth_luma - 8 ;\n pic_param -> bit_depth_chroma_minus8 = h -> sps . bit_depth_chroma - 8 ;\n pic_param -> num_ref_frames = h -> sps . ref_frame_count ;\n pic_param -> seq_fields . value = 0 ;\n pic_param -> seq_fields . bits . chroma_format_idc = h -> sps . chroma_format_idc ;\n pic_param -> seq_fields . bits . residual_colour_transform_flag = h -> sps . residual_color_transform_flag ;\n pic_param -> seq_fields . bits . gaps_in_frame_num_value_allowed_flag = h -> sps . gaps_in_frame_num_allowed_flag ;\n pic_param -> seq_fields . bits . frame_mbs_only_flag = h -> sps . frame_mbs_only_flag ;\n pic_param -> seq_fields . bits . mb_adaptive_frame_field_flag = h -> sps . mb_aff ;\n pic_param -> seq_fields . bits . direct_8x8_inference_flag = h -> sps . direct_8x8_inference_flag ;\n pic_param -> seq_fields . bits . MinLumaBiPredSize8x8 = h -> sps . level_idc >= 31 ;\n pic_param -> seq_fields . bits . log2_max_frame_num_minus4 = h -> sps . log2_max_frame_num - 4 ;\n pic_param -> seq_fields . bits . pic_order_cnt_type = h -> sps . poc_type ;\n pic_param -> seq_fields . bits . log2_max_pic_order_cnt_lsb_minus4 = h -> sps . log2_max_poc_lsb - 4 ;\n pic_param -> seq_fields . bits . delta_pic_order_always_zero_flag = h -> sps . delta_pic_order_always_zero_flag ;\n pic_param -> num_slice_groups_minus1 = h -> pps . slice_group_count - 1 ;\n pic_param -> slice_group_map_type = h -> pps . mb_slice_group_map_type ;\n pic_param -> slice_group_change_rate_minus1 = 0 ;\n pic_param -> pic_init_qp_minus26 = h -> pps . init_qp - 26 ;\n pic_param -> pic_init_qs_minus26 = h -> pps . init_qs - 26 ;\n pic_param -> chroma_qp_index_offset = h -> pps . chroma_qp_index_offset [ 0 ] ;\n pic_param -> second_chroma_qp_index_offset = h -> pps . chroma_qp_index_offset [ 1 ] ;\n pic_param -> pic_fields . value = 0 ;\n pic_param -> pic_fields . bits . entropy_coding_mode_flag = h -> pps . cabac ;\n pic_param -> pic_fields . bits . weighted_pred_flag = h -> pps . weighted_pred ;\n pic_param -> pic_fields . bits . weighted_bipred_idc = h -> pps . weighted_bipred_idc ;\n pic_param -> pic_fields . bits . transform_8x8_mode_flag = h -> pps . transform_8x8_mode ;\n pic_param -> pic_fields . bits . field_pic_flag = h -> picture_structure != PICT_FRAME ;\n pic_param -> pic_fields . bits . constrained_intra_pred_flag = h -> pps . constrained_intra_pred ;\n pic_param -> pic_fields . bits . pic_order_present_flag = h -> pps . pic_order_present ;\n pic_param -> pic_fields . bits . deblocking_filter_control_present_flag = h -> pps . deblocking_filter_parameters_present ;\n pic_param -> pic_fields . bits . redundant_pic_cnt_present_flag = h -> pps . redundant_pic_cnt_present ;\n pic_param -> pic_fields . bits . reference_pic_flag = h -> nal_ref_idc != 0 ;\n pic_param -> frame_num = h -> frame_num ;\n iq_matrix = ff_vaapi_alloc_iq_matrix ( vactx , sizeof ( VAIQMatrixBufferH264 ) ) ;\n if ( ! iq_matrix ) return - 1 ;\n memcpy ( iq_matrix -> ScalingList4x4 , h -> pps . scaling_matrix4 , sizeof ( iq_matrix -> ScalingList4x4 ) ) ;\n memcpy ( iq_matrix -> ScalingList8x8 , h -> pps . scaling_matrix8 , sizeof ( iq_matrix -> ScalingList8x8 ) ) ;\n return 0 ;\n }"}
{"idx": 4653, "target": 0, "func": "CURLFORMcode curl_formadd ( struct curl_httppost * * httppost , struct curl_httppost * * last_post , ... ) {\n va_list arg ;\n CURLFORMcode result ;\n va_start ( arg , last_post ) ;\n result = FormAdd ( httppost , last_post , arg ) ;\n va_end ( arg ) ;\n return result ;\n }"}
{"idx": 4654, "target": 0, "func": "void vp9_loop_filter_init ( VP9_COMMON * cm ) {\n loop_filter_info_n * lfi = & cm -> lf_info ;\n struct loopfilter * lf = & cm -> lf ;\n int lvl ;\n update_sharpness ( lfi , lf -> sharpness_level ) ;\n lf -> last_sharpness_level = lf -> sharpness_level ;\n for ( lvl = 0 ;\n lvl <= MAX_LOOP_FILTER ;\n lvl ++ ) vpx_memset ( lfi -> lfthr [ lvl ] . hev_thr , ( lvl >> 4 ) , SIMD_WIDTH ) ;\n }"}
{"idx": 4655, "target": 0, "func": "static void DupTagTypeList ( struct _cmsContext_struct * ctx , const struct _cmsContext_struct * src , int loc ) {\n _cmsTagTypePluginChunkType newHead = {\n NULL }\n ;\n _cmsTagTypeLinkedList * entry ;\n _cmsTagTypeLinkedList * Anterior = NULL ;\n _cmsTagTypePluginChunkType * head = ( _cmsTagTypePluginChunkType * ) src -> chunks [ loc ] ;\n for ( entry = head -> TagTypes ;\n entry != NULL ;\n entry = entry -> Next ) {\n _cmsTagTypeLinkedList * newEntry = ( _cmsTagTypeLinkedList * ) _cmsSubAllocDup ( ctx -> MemPool , entry , sizeof ( _cmsTagTypeLinkedList ) ) ;\n if ( newEntry == NULL ) return ;\n newEntry -> Next = NULL ;\n if ( Anterior ) Anterior -> Next = newEntry ;\n Anterior = newEntry ;\n if ( newHead . TagTypes == NULL ) newHead . TagTypes = newEntry ;\n }\n ctx -> chunks [ loc ] = _cmsSubAllocDup ( ctx -> MemPool , & newHead , sizeof ( _cmsTagTypePluginChunkType ) ) ;\n }"}
{"idx": 4656, "target": 0, "func": "static inline int copy_block ( AVCodecContext * avctx , uint8_t * to , uint8_t * from , int offset , int height , int stride ) {\n int i ;\n int width = height ;\n int from_x = offset % WIDTH ;\n int from_y = offset / WIDTH ;\n int overflow = from_x + width - WIDTH ;\n if ( ! from ) {\n return 0 ;\n }\n if ( from_y + height > HEIGHT ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid offset %d during C93 decoding\\n\" , offset ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( overflow > 0 ) {\n width -= overflow ;\n for ( i = 0 ;\n i < height ;\n i ++ ) {\n memcpy ( & to [ i * stride + width ] , & from [ ( from_y + i ) * stride ] , overflow ) ;\n }\n }\n for ( i = 0 ;\n i < height ;\n i ++ ) {\n memcpy ( & to [ i * stride ] , & from [ ( from_y + i ) * stride + from_x ] , width ) ;\n }\n return 0 ;\n }"}
{"idx": 4657, "target": 0, "func": "static void cmd_window_rshrink ( const char * data ) {\n int count ;\n count = * data == '\\0' ? 1 : atoi ( data ) ;\n if ( ! mainwindow_rshrink ( WINDOW_MAIN ( active_win ) , count ) ) {\n printformat_window ( active_win , MSGLEVEL_CLIENTNOTICE , TXT_WINDOW_TOO_SMALL ) ;\n }\n }"}
{"idx": 4658, "target": 0, "func": "static decNumber * decTrim ( decNumber * dn , decContext * set , Flag all , Flag noclamp , Int * dropped ) {\n Int d , exp ;\n uInt cut ;\n Unit * up ;\n # if DECCHECK if ( decCheckOperands ( dn , DECUNUSED , DECUNUSED , DECUNCONT ) ) return dn ;\n # endif * dropped = 0 ;\n if ( ( dn -> bits & DECSPECIAL ) || ( * dn -> lsu & 0x01 ) ) return dn ;\n if ( ISZERO ( dn ) ) {\n dn -> exponent = 0 ;\n return dn ;\n }\n exp = dn -> exponent ;\n cut = 1 ;\n up = dn -> lsu ;\n for ( d = 0 ;\n d < dn -> digits - 1 ;\n d ++ ) {\n # if DECDPUN <= 4 uInt quot = QUOT10 ( * up , cut ) ;\n if ( ( * up - quot * powers [ cut ] ) != 0 ) break ;\n # else if ( * up % powers [ cut ] != 0 ) break ;\n # endif if ( ! all ) {\n if ( exp <= 0 ) {\n if ( exp == 0 ) break ;\n exp ++ ;\n }\n }\n cut ++ ;\n if ( cut > DECDPUN ) {\n up ++ ;\n cut = 1 ;\n }\n }\n if ( d == 0 ) return dn ;\n if ( set -> clamp && ! noclamp ) {\n Int maxd = set -> emax - set -> digits + 1 - dn -> exponent ;\n if ( maxd <= 0 ) return dn ;\n if ( d > maxd ) d = maxd ;\n }\n decShiftToLeast ( dn -> lsu , D2U ( dn -> digits ) , d ) ;\n dn -> exponent += d ;\n dn -> digits -= d ;\n * dropped = d ;\n return dn ;\n }"}
{"idx": 4659, "target": 0, "func": "static int dissect_h245_INTEGER_1_19200 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 19200U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 4660, "target": 0, "func": "static void udvm_state_free ( guint8 buff [ ] _U_ , guint16 p_id_start _U_ , guint16 p_id_length _U_ ) {\n }"}
{"idx": 4661, "target": 0, "func": "static int h263_skip_b_part ( MpegEncContext * s , int cbp ) {\n LOCAL_ALIGNED_16 ( int16_t , dblock , [ 64 ] ) ;\n int i , mbi ;\n mbi = s -> mb_intra ;\n s -> mb_intra = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( h263_decode_block ( s , dblock , i , cbp & 32 ) < 0 ) return - 1 ;\n cbp += cbp ;\n }\n s -> mb_intra = mbi ;\n return 0 ;\n }"}
{"idx": 4662, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize ) ;\n DECL_PIOCTL ( PGetCacheSize ) ;\n DECL_PIOCTL ( PRemoveCallBack ) ;\n DECL_PIOCTL ( PNewCell ) ;\n DECL_PIOCTL ( PNewAlias ) ;\n DECL_PIOCTL ( PListCells ) ;\n DECL_PIOCTL ( PListAliases ) ;\n DECL_PIOCTL ( PRemoveMount ) ;\n DECL_PIOCTL ( PGetCellStatus ) ;\n DECL_PIOCTL ( PSetCellStatus ) ;\n DECL_PIOCTL ( PFlushVolumeData )"}
{"idx": 4663, "target": 0, "func": "static void filter_block_plane_non420 ( VP9_COMMON * cm , struct macroblockd_plane * plane , MODE_INFO * mi_8x8 , int mi_row , int mi_col ) {\n const int ss_x = plane -> subsampling_x ;\n const int ss_y = plane -> subsampling_y ;\n const int row_step = 1 << ss_x ;\n const int col_step = 1 << ss_y ;\n const int row_step_stride = cm -> mi_stride * row_step ;\n struct buf_2d * const dst = & plane -> dst ;\n uint8_t * const dst0 = dst -> buf ;\n unsigned int mask_16x16 [ MI_BLOCK_SIZE ] = {\n 0 }\n ;\n unsigned int mask_8x8 [ MI_BLOCK_SIZE ] = {\n 0 }\n ;\n unsigned int mask_4x4 [ MI_BLOCK_SIZE ] = {\n 0 }\n ;\n unsigned int mask_4x4_int [ MI_BLOCK_SIZE ] = {\n 0 }\n ;\n uint8_t lfl [ MI_BLOCK_SIZE * MI_BLOCK_SIZE ] ;\n int r , c ;\n for ( r = 0 ;\n r < MI_BLOCK_SIZE && mi_row + r < cm -> mi_rows ;\n r += row_step ) {\n unsigned int mask_16x16_c = 0 ;\n unsigned int mask_8x8_c = 0 ;\n unsigned int mask_4x4_c = 0 ;\n unsigned int border_mask ;\n for ( c = 0 ;\n c < MI_BLOCK_SIZE && mi_col + c < cm -> mi_cols ;\n c += col_step ) {\n const MODE_INFO * mi = mi_8x8 [ c ] . src_mi ;\n const BLOCK_SIZE sb_type = mi [ 0 ] . mbmi . sb_type ;\n const int skip_this = mi [ 0 ] . mbmi . skip && is_inter_block ( & mi [ 0 ] . mbmi ) ;\n const int block_edge_left = ( num_4x4_blocks_wide_lookup [ sb_type ] > 1 ) ? ! ( c & ( num_8x8_blocks_wide_lookup [ sb_type ] - 1 ) ) : 1 ;\n const int skip_this_c = skip_this && ! block_edge_left ;\n const int block_edge_above = ( num_4x4_blocks_high_lookup [ sb_type ] > 1 ) ? ! ( r & ( num_8x8_blocks_high_lookup [ sb_type ] - 1 ) ) : 1 ;\n const int skip_this_r = skip_this && ! block_edge_above ;\n const TX_SIZE tx_size = ( plane -> plane_type == PLANE_TYPE_UV ) ? get_uv_tx_size ( & mi [ 0 ] . mbmi , plane ) : mi [ 0 ] . mbmi . tx_size ;\n const int skip_border_4x4_c = ss_x && mi_col + c == cm -> mi_cols - 1 ;\n const int skip_border_4x4_r = ss_y && mi_row + r == cm -> mi_rows - 1 ;\n if ( ! ( lfl [ ( r << 3 ) + ( c >> ss_x ) ] = get_filter_level ( & cm -> lf_info , & mi [ 0 ] . mbmi ) ) ) continue ;\n if ( tx_size == TX_32X32 ) {\n if ( ! skip_this_c && ( ( c >> ss_x ) & 3 ) == 0 ) {\n if ( ! skip_border_4x4_c ) mask_16x16_c |= 1 << ( c >> ss_x ) ;\n else mask_8x8_c |= 1 << ( c >> ss_x ) ;\n }\n if ( ! skip_this_r && ( ( r >> ss_y ) & 3 ) == 0 ) {\n if ( ! skip_border_4x4_r ) mask_16x16 [ r ] |= 1 << ( c >> ss_x ) ;\n else mask_8x8 [ r ] |= 1 << ( c >> ss_x ) ;\n }\n }\n else if ( tx_size == TX_16X16 ) {\n if ( ! skip_this_c && ( ( c >> ss_x ) & 1 ) == 0 ) {\n if ( ! skip_border_4x4_c ) mask_16x16_c |= 1 << ( c >> ss_x ) ;\n else mask_8x8_c |= 1 << ( c >> ss_x ) ;\n }\n if ( ! skip_this_r && ( ( r >> ss_y ) & 1 ) == 0 ) {\n if ( ! skip_border_4x4_r ) mask_16x16 [ r ] |= 1 << ( c >> ss_x ) ;\n else mask_8x8 [ r ] |= 1 << ( c >> ss_x ) ;\n }\n }\n else {\n if ( ! skip_this_c ) {\n if ( tx_size == TX_8X8 || ( ( c >> ss_x ) & 3 ) == 0 ) mask_8x8_c |= 1 << ( c >> ss_x ) ;\n else mask_4x4_c |= 1 << ( c >> ss_x ) ;\n }\n if ( ! skip_this_r ) {\n if ( tx_size == TX_8X8 || ( ( r >> ss_y ) & 3 ) == 0 ) mask_8x8 [ r ] |= 1 << ( c >> ss_x ) ;\n else mask_4x4 [ r ] |= 1 << ( c >> ss_x ) ;\n }\n if ( ! skip_this && tx_size < TX_8X8 && ! skip_border_4x4_c ) mask_4x4_int [ r ] |= 1 << ( c >> ss_x ) ;\n }\n }\n border_mask = ~ ( mi_col == 0 ) ;\n filter_selectively_vert ( dst -> buf , dst -> stride , mask_16x16_c & border_mask , mask_8x8_c & border_mask , mask_4x4_c & border_mask , mask_4x4_int [ r ] , & cm -> lf_info , & lfl [ r << 3 ] ) ;\n dst -> buf += 8 * dst -> stride ;\n mi_8x8 += row_step_stride ;\n }\n dst -> buf = dst0 ;\n for ( r = 0 ;\n r < MI_BLOCK_SIZE && mi_row + r < cm -> mi_rows ;\n r += row_step ) {\n const int skip_border_4x4_r = ss_y && mi_row + r == cm -> mi_rows - 1 ;\n const unsigned int mask_4x4_int_r = skip_border_4x4_r ? 0 : mask_4x4_int [ r ] ;\n unsigned int mask_16x16_r ;\n unsigned int mask_8x8_r ;\n unsigned int mask_4x4_r ;\n if ( mi_row + r == 0 ) {\n mask_16x16_r = 0 ;\n mask_8x8_r = 0 ;\n mask_4x4_r = 0 ;\n }\n else {\n mask_16x16_r = mask_16x16 [ r ] ;\n mask_8x8_r = mask_8x8 [ r ] ;\n mask_4x4_r = mask_4x4 [ r ] ;\n }\n filter_selectively_horiz ( dst -> buf , dst -> stride , mask_16x16_r , mask_8x8_r , mask_4x4_r , mask_4x4_int_r , & cm -> lf_info , & lfl [ r << 3 ] ) ;\n dst -> buf += 8 * dst -> stride ;\n }\n }"}
{"idx": 4664, "target": 0, "func": "static guint32 calculate_extended_seqno ( guint32 previous_seqno , guint16 raw_seqno ) {\n guint32 seqno = ( previous_seqno & 0xffff0000 ) | raw_seqno ;\n if ( seqno + 0x8000 < previous_seqno ) {\n seqno += 0x10000 ;\n }\n else if ( previous_seqno + 0x8000 < seqno ) {\n seqno -= 0x10000 ;\n }\n return seqno ;\n }"}
{"idx": 4665, "target": 0, "func": "Node * get_typdefault ( Oid typid ) {\n HeapTuple typeTuple ;\n Form_pg_type type ;\n Datum datum ;\n bool isNull ;\n Node * expr ;\n typeTuple = SearchSysCache1 ( TYPEOID , ObjectIdGetDatum ( typid ) ) ;\n if ( ! HeapTupleIsValid ( typeTuple ) ) elog ( ERROR , \"cache lookup failed for type %u\" , typid ) ;\n type = ( Form_pg_type ) GETSTRUCT ( typeTuple ) ;\n datum = SysCacheGetAttr ( TYPEOID , typeTuple , Anum_pg_type_typdefaultbin , & isNull ) ;\n if ( ! isNull ) {\n expr = stringToNode ( TextDatumGetCString ( datum ) ) ;\n }\n else {\n datum = SysCacheGetAttr ( TYPEOID , typeTuple , Anum_pg_type_typdefault , & isNull ) ;\n if ( ! isNull ) {\n char * strDefaultVal ;\n strDefaultVal = TextDatumGetCString ( datum ) ;\n datum = OidInputFunctionCall ( type -> typinput , strDefaultVal , getTypeIOParam ( typeTuple ) , - 1 ) ;\n expr = ( Node * ) makeConst ( typid , - 1 , type -> typcollation , type -> typlen , datum , false , type -> typbyval ) ;\n pfree ( strDefaultVal ) ;\n }\n else {\n expr = NULL ;\n }\n }\n ReleaseSysCache ( typeTuple ) ;\n return expr ;\n }"}
{"idx": 4666, "target": 0, "func": "static int dissect_h245_MultimediaSystemControlMessage ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_MultimediaSystemControlMessage , MultimediaSystemControlMessage_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 4667, "target": 0, "func": "static struct ewah_bitmap * find_reused_bitmap ( const unsigned char * sha1 ) {\n khiter_t hash_pos ;\n if ( ! writer . reused ) return NULL ;\n hash_pos = kh_get_sha1 ( writer . reused , sha1 ) ;\n if ( hash_pos >= kh_end ( writer . reused ) ) return NULL ;\n return kh_value ( writer . reused , hash_pos ) ;\n }"}
{"idx": 4668, "target": 0, "func": "static int show_bisect_vars ( struct rev_list_info * info , int reaches , int all ) {\n int cnt , flags = info -> flags ;\n char hex [ GIT_SHA1_HEXSZ + 1 ] = \"\" ;\n struct commit_list * tried ;\n struct rev_info * revs = info -> revs ;\n if ( ! revs -> commits ) return 1 ;\n revs -> commits = filter_skipped ( revs -> commits , & tried , flags & BISECT_SHOW_ALL , NULL , NULL ) ;\n cnt = all - reaches ;\n if ( cnt < reaches ) cnt = reaches ;\n if ( revs -> commits ) sha1_to_hex_r ( hex , revs -> commits -> item -> object . oid . hash ) ;\n if ( flags & BISECT_SHOW_ALL ) {\n traverse_commit_list ( revs , show_commit , show_object , info ) ;\n printf ( \"------\\n\" ) ;\n }\n print_var_str ( \"bisect_rev\" , hex ) ;\n print_var_int ( \"bisect_nr\" , cnt - 1 ) ;\n print_var_int ( \"bisect_good\" , all - reaches - 1 ) ;\n print_var_int ( \"bisect_bad\" , reaches - 1 ) ;\n print_var_int ( \"bisect_all\" , all ) ;\n print_var_int ( \"bisect_steps\" , estimate_bisect_steps ( all ) ) ;\n return 0 ;\n }"}
{"idx": 4669, "target": 0, "func": "static gboolean ascend_read ( wtap * wth , int * err , gchar * * err_info , gint64 * data_offset ) {\n ascend_t * ascend = ( ascend_t * ) wth -> priv ;\n gint64 offset ;\n if ( file_seek ( wth -> fh , ascend -> next_packet_seek_start , SEEK_SET , err ) == - 1 ) return FALSE ;\n offset = ascend_seek ( wth , err , err_info ) ;\n if ( offset == - 1 ) return FALSE ;\n if ( parse_ascend ( ascend , wth -> fh , & wth -> phdr , wth -> frame_buffer , wth -> snapshot_length ) != PARSED_RECORD ) {\n * err = WTAP_ERR_BAD_FILE ;\n * err_info = g_strdup ( ( ascend_parse_error != NULL ) ? ascend_parse_error : \"parse error\" ) ;\n return FALSE ;\n }\n * data_offset = offset ;\n return TRUE ;\n }"}
{"idx": 4670, "target": 0, "func": "static void gsm_a_stat_init ( new_stat_tap_ui * new_stat , new_stat_tap_gui_init_cb gui_callback , void * gui_data , const char * table_title , const value_string * msg_strings ) {\n int num_fields = sizeof ( gsm_a_stat_fields ) / sizeof ( stat_tap_table_item ) ;\n new_stat_tap_table * table ;\n guint i ;\n stat_tap_table_item_type items [ sizeof ( gsm_a_stat_fields ) / sizeof ( stat_tap_table_item ) ] ;\n items [ IEI_COLUMN ] . type = TABLE_ITEM_UINT ;\n items [ MSG_NAME_COLUMN ] . type = TABLE_ITEM_STRING ;\n items [ COUNT_COLUMN ] . type = TABLE_ITEM_UINT ;\n items [ COUNT_COLUMN ] . value . uint_value = 0 ;\n table = new_stat_tap_init_table ( table_title , num_fields , 0 , NULL , gui_callback , gui_data ) ;\n new_stat_tap_add_table ( new_stat , table ) ;\n for ( i = 0 ;\n i < 256 ;\n i ++ ) {\n const char * msg_str = try_val_to_str ( i , msg_strings ) ;\n char * col_str ;\n if ( msg_str ) {\n col_str = g_strdup ( msg_str ) ;\n }\n else {\n col_str = g_strdup_printf ( \"Unknown message %d\" , i ) ;\n }\n items [ IEI_COLUMN ] . value . uint_value = i ;\n items [ MSG_NAME_COLUMN ] . value . string_value = col_str ;\n new_stat_tap_init_table_row ( table , i , num_fields , items ) ;\n }\n }"}
{"idx": 4671, "target": 0, "func": "static void U_CALLCONV _UTF7Open ( UConverter * cnv , UConverterLoadArgs * pArgs , UErrorCode * pErrorCode ) {\n ( void ) pArgs ;\n if ( UCNV_GET_VERSION ( cnv ) <= 1 ) {\n cnv -> fromUnicodeStatus = UCNV_GET_VERSION ( cnv ) << 28 ;\n _UTF7Reset ( cnv , UCNV_RESET_BOTH ) ;\n }\n else {\n * pErrorCode = U_ILLEGAL_ARGUMENT_ERROR ;\n }\n }"}
{"idx": 4672, "target": 0, "func": "static void start_signal_handler ( void ) {\n int error ;\n pthread_attr_t thr_attr ;\n DBUG_ENTER ( \"start_signal_handler\" ) ;\n ( void ) pthread_attr_init ( & thr_attr ) ;\n pthread_attr_setscope ( & thr_attr , PTHREAD_SCOPE_SYSTEM ) ;\n ( void ) pthread_attr_setdetachstate ( & thr_attr , PTHREAD_CREATE_DETACHED ) ;\n ( void ) my_setstacksize ( & thr_attr , my_thread_stack_size ) ;\n mysql_mutex_lock ( & LOCK_thread_count ) ;\n if ( ( error = mysql_thread_create ( key_thread_signal_hand , & signal_thread , & thr_attr , signal_hand , 0 ) ) ) {\n sql_print_error ( \"Can't create interrupt-thread (error %d, errno: %d)\" , error , errno ) ;\n exit ( 1 ) ;\n }\n mysql_cond_wait ( & COND_thread_count , & LOCK_thread_count ) ;\n mysql_mutex_unlock ( & LOCK_thread_count ) ;\n ( void ) pthread_attr_destroy ( & thr_attr ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 4673, "target": 0, "func": "void do_rmdir ( struct st_command * command ) {\n int error ;\n static DYNAMIC_STRING ds_dirname ;\n const struct command_arg rmdir_args [ ] = {\n {\n \"dirname\" , ARG_STRING , TRUE , & ds_dirname , \"Directory to remove\" }\n }\n ;\n DBUG_ENTER ( \"do_rmdir\" ) ;\n check_command_args ( command , command -> first_argument , rmdir_args , sizeof ( rmdir_args ) / sizeof ( struct command_arg ) , ' ' ) ;\n DBUG_PRINT ( \"info\" , ( \"removing directory: %s\" , ds_dirname . str ) ) ;\n error = rmdir ( ds_dirname . str ) != 0 ;\n handle_command_error ( command , error , errno ) ;\n dynstr_free ( & ds_dirname ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 4674, "target": 0, "func": "unsigned int elg_get_nbits ( int algo , MPI * pkey ) {\n if ( ! is_ELGAMAL ( algo ) ) return 0 ;\n return mpi_get_nbits ( pkey [ 0 ] ) ;\n }"}
{"idx": 4675, "target": 0, "func": "static void test_bug13488 ( ) {\n MYSQL_BIND my_bind [ 3 ] ;\n MYSQL_STMT * stmt1 ;\n int rc , f1 , f2 , f3 , i ;\n const ulong type = CURSOR_TYPE_READ_ONLY ;\n const char * query = \"select * from t1 left join t2 on f1=f2 where f1=1\" ;\n myheader ( \"test_bug13488\" ) ;\n rc = mysql_query ( mysql , \"drop table if exists t1, t2\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t1 (f1 int not null primary key)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t2 (f2 int not null primary key, \" \"f3 int not null)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t1 values (1), (2)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t2 values (1,2), (2,4)\" ) ;\n myquery ( rc ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n my_bind [ i ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ i ] . buffer_length = 4 ;\n my_bind [ i ] . length = 0 ;\n }\n my_bind [ 0 ] . buffer = & f1 ;\n my_bind [ 1 ] . buffer = & f2 ;\n my_bind [ 2 ] . buffer = & f3 ;\n stmt1 = mysql_stmt_init ( mysql ) ;\n rc = mysql_stmt_attr_set ( stmt1 , STMT_ATTR_CURSOR_TYPE , ( const void * ) & type ) ;\n check_execute ( stmt1 , rc ) ;\n rc = mysql_stmt_prepare ( stmt1 , query , strlen ( query ) ) ;\n check_execute ( stmt1 , rc ) ;\n rc = mysql_stmt_execute ( stmt1 ) ;\n check_execute ( stmt1 , rc ) ;\n rc = mysql_stmt_bind_result ( stmt1 , my_bind ) ;\n check_execute ( stmt1 , rc ) ;\n rc = mysql_stmt_fetch ( stmt1 ) ;\n check_execute ( stmt1 , rc ) ;\n rc = mysql_stmt_free_result ( stmt1 ) ;\n check_execute ( stmt1 , rc ) ;\n rc = mysql_stmt_reset ( stmt1 ) ;\n check_execute ( stmt1 , rc ) ;\n rc = mysql_stmt_close ( stmt1 ) ;\n check_execute ( stmt1 , rc ) ;\n if ( ! opt_silent ) {\n printf ( \"data: f1: %d;\n f2: %d;\n f3: %d\\n\" , f1 , f2 , f3 ) ;\n printf ( \"data is: %s\\n\" , ( f1 == 1 && f2 == 1 && f3 == 2 ) ? \"OK\" : \"wrong\" ) ;\n }\n DIE_UNLESS ( f1 == 1 && f2 == 1 && f3 == 2 ) ;\n rc = mysql_query ( mysql , \"drop table t1, t2\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 4676, "target": 0, "func": "void vp9_idct8x8_1_add_sse2 ( const int16_t * input , uint8_t * dest , int stride ) {\n __m128i dc_value ;\n const __m128i zero = _mm_setzero_si128 ( ) ;\n int a ;\n a = dct_const_round_shift ( input [ 0 ] * cospi_16_64 ) ;\n a = dct_const_round_shift ( a * cospi_16_64 ) ;\n a = ROUND_POWER_OF_TWO ( a , 5 ) ;\n dc_value = _mm_set1_epi16 ( a ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n }"}
{"idx": 4677, "target": 0, "func": "int jpc_pi_addpchg ( jpc_pi_t * pi , jpc_pocpchg_t * pchg ) {\n return jpc_pchglist_insert ( pi -> pchglist , - 1 , pchg ) ;\n }"}
{"idx": 4678, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PrefsFunctionalTest , TestHaveLocalStatePrefs ) {\n EXPECT_TRUE ( g_browser_process -> local_state ( ) -> GetPreferenceValues ( PrefService : : INCLUDE_DEFAULTS ) . get ( ) ) ;\n }"}
{"idx": 4679, "target": 0, "func": "static void ptvcursor_subtree_set_item ( ptvcursor_t * ptvc , proto_item * it ) {\n subtree_lvl * subtree ;\n DISSECTOR_ASSERT ( ptvc -> pushed_tree_index > 0 ) ;\n subtree = ptvc -> pushed_tree + ptvc -> pushed_tree_index - 1 ;\n subtree -> it = it ;\n subtree -> cursor_offset = ptvcursor_current_offset ( ptvc ) ;\n }"}
{"idx": 4680, "target": 0, "func": "static void clean_index ( AVFormatContext * s ) {\n int i ;\n int64_t j ;\n for ( i = 0 ;\n i < s -> nb_streams ;\n i ++ ) {\n AVStream * st = s -> streams [ i ] ;\n AVIStream * ast = st -> priv_data ;\n int n = st -> nb_index_entries ;\n int max = ast -> sample_size ;\n int64_t pos , size , ts ;\n if ( n != 1 || ast -> sample_size == 0 ) continue ;\n while ( max < 1024 ) max += max ;\n pos = st -> index_entries [ 0 ] . pos ;\n size = st -> index_entries [ 0 ] . size ;\n ts = st -> index_entries [ 0 ] . timestamp ;\n for ( j = 0 ;\n j < size ;\n j += max ) av_add_index_entry ( st , pos + j , ts + j , FFMIN ( max , size - j ) , 0 , AVINDEX_KEYFRAME ) ;\n }\n }"}
{"idx": 4681, "target": 0, "func": "static int find_best_16x16_intra ( VP9_COMP * cpi , PREDICTION_MODE * pbest_mode ) {\n MACROBLOCK * const x = & cpi -> mb ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n PREDICTION_MODE best_mode = - 1 , mode ;\n unsigned int best_err = INT_MAX ;\n for ( mode = DC_PRED ;\n mode <= TM_PRED ;\n mode ++ ) {\n unsigned int err ;\n xd -> mi [ 0 ] . src_mi -> mbmi . mode = mode ;\n vp9_predict_intra_block ( xd , 0 , 2 , TX_16X16 , mode , x -> plane [ 0 ] . src . buf , x -> plane [ 0 ] . src . stride , xd -> plane [ 0 ] . dst . buf , xd -> plane [ 0 ] . dst . stride , 0 , 0 , 0 ) ;\n err = vp9_sad16x16 ( x -> plane [ 0 ] . src . buf , x -> plane [ 0 ] . src . stride , xd -> plane [ 0 ] . dst . buf , xd -> plane [ 0 ] . dst . stride ) ;\n if ( err < best_err ) {\n best_err = err ;\n best_mode = mode ;\n }\n }\n if ( pbest_mode ) * pbest_mode = best_mode ;\n return best_err ;\n }"}
{"idx": 4682, "target": 0, "func": "void mime_hdr_presence_unset ( MIMEHdrImpl * h , int well_known_str_index ) {\n const char * wks = hdrtoken_index_to_wks ( well_known_str_index ) ;\n mime_hdr_presence_unset ( h , wks ) ;\n }"}
{"idx": 4683, "target": 0, "func": "static int ec_GF2m_montgomery_point_multiply ( const EC_GROUP * group , EC_POINT * r , const BIGNUM * scalar , const EC_POINT * point , BN_CTX * ctx ) {\n BIGNUM * x1 , * x2 , * z1 , * z2 ;\n int ret = 0 , i ;\n BN_ULONG mask , word ;\n if ( r == point ) {\n ECerr ( EC_F_EC_GF2M_MONTGOMERY_POINT_MULTIPLY , EC_R_INVALID_ARGUMENT ) ;\n return 0 ;\n }\n if ( ( scalar == NULL ) || BN_is_zero ( scalar ) || ( point == NULL ) || EC_POINT_is_at_infinity ( group , point ) ) {\n return EC_POINT_set_to_infinity ( group , r ) ;\n }\n if ( ! point -> Z_is_one ) return 0 ;\n BN_CTX_start ( ctx ) ;\n x1 = BN_CTX_get ( ctx ) ;\n z1 = BN_CTX_get ( ctx ) ;\n if ( z1 == NULL ) goto err ;\n x2 = & r -> X ;\n z2 = & r -> Y ;\n bn_wexpand ( x1 , group -> field . top ) ;\n bn_wexpand ( z1 , group -> field . top ) ;\n bn_wexpand ( x2 , group -> field . top ) ;\n bn_wexpand ( z2 , group -> field . top ) ;\n if ( ! BN_GF2m_mod_arr ( x1 , & point -> X , group -> poly ) ) goto err ;\n if ( ! BN_one ( z1 ) ) goto err ;\n if ( ! group -> meth -> field_sqr ( group , z2 , x1 , ctx ) ) goto err ;\n if ( ! group -> meth -> field_sqr ( group , x2 , z2 , ctx ) ) goto err ;\n if ( ! BN_GF2m_add ( x2 , x2 , & group -> b ) ) goto err ;\n i = scalar -> top - 1 ;\n mask = BN_TBIT ;\n word = scalar -> d [ i ] ;\n while ( ! ( word & mask ) ) mask >>= 1 ;\n mask >>= 1 ;\n if ( ! mask ) {\n i -- ;\n mask = BN_TBIT ;\n }\n for ( ;\n i >= 0 ;\n i -- ) {\n word = scalar -> d [ i ] ;\n while ( mask ) {\n BN_consttime_swap ( word & mask , x1 , x2 , group -> field . top ) ;\n BN_consttime_swap ( word & mask , z1 , z2 , group -> field . top ) ;\n if ( ! gf2m_Madd ( group , & point -> X , x2 , z2 , x1 , z1 , ctx ) ) goto err ;\n if ( ! gf2m_Mdouble ( group , x1 , z1 , ctx ) ) goto err ;\n BN_consttime_swap ( word & mask , x1 , x2 , group -> field . top ) ;\n BN_consttime_swap ( word & mask , z1 , z2 , group -> field . top ) ;\n mask >>= 1 ;\n }\n mask = BN_TBIT ;\n }\n i = gf2m_Mxy ( group , & point -> X , & point -> Y , x1 , z1 , x2 , z2 , ctx ) ;\n if ( i == 0 ) goto err ;\n else if ( i == 1 ) {\n if ( ! EC_POINT_set_to_infinity ( group , r ) ) goto err ;\n }\n else {\n if ( ! BN_one ( & r -> Z ) ) goto err ;\n r -> Z_is_one = 1 ;\n }\n BN_set_negative ( & r -> X , 0 ) ;\n BN_set_negative ( & r -> Y , 0 ) ;\n ret = 1 ;\n err : BN_CTX_end ( ctx ) ;\n return ret ;\n }"}
{"idx": 4684, "target": 1, "func": "void jpc_qmfb_join_colgrp ( jpc_fix_t * a , int numrows , int stride , int parity ) {\n int bufsize = JPC_CEILDIVPOW2 ( numrows , 1 ) ;\n jpc_fix_t joinbuf [ QMFB_JOINBUFSIZE * JPC_QMFB_COLGRPSIZE ] ;\n jpc_fix_t * buf = joinbuf ;\n jpc_fix_t * srcptr ;\n jpc_fix_t * dstptr ;\n register jpc_fix_t * srcptr2 ;\n register jpc_fix_t * dstptr2 ;\n register int n ;\n register int i ;\n int hstartcol ;\n if ( bufsize > QMFB_JOINBUFSIZE ) {\n if ( ! ( buf = jas_alloc3 ( bufsize , JPC_QMFB_COLGRPSIZE , sizeof ( jpc_fix_t ) ) ) ) {\n abort ( ) ;\n }\n }\n hstartcol = ( numrows + 1 - parity ) >> 1 ;\n n = hstartcol ;\n srcptr = & a [ 0 ] ;\n dstptr = buf ;\n while ( n -- > 0 ) {\n dstptr2 = dstptr ;\n srcptr2 = srcptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n * dstptr2 = * srcptr2 ;\n ++ dstptr2 ;\n ++ srcptr2 ;\n }\n srcptr += stride ;\n dstptr += JPC_QMFB_COLGRPSIZE ;\n }\n srcptr = & a [ hstartcol * stride ] ;\n dstptr = & a [ ( 1 - parity ) * stride ] ;\n n = numrows - hstartcol ;\n while ( n -- > 0 ) {\n dstptr2 = dstptr ;\n srcptr2 = srcptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n * dstptr2 = * srcptr2 ;\n ++ dstptr2 ;\n ++ srcptr2 ;\n }\n dstptr += 2 * stride ;\n srcptr += stride ;\n }\n srcptr = buf ;\n dstptr = & a [ parity * stride ] ;\n n = hstartcol ;\n while ( n -- > 0 ) {\n dstptr2 = dstptr ;\n srcptr2 = srcptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n * dstptr2 = * srcptr2 ;\n ++ dstptr2 ;\n ++ srcptr2 ;\n }\n dstptr += 2 * stride ;\n srcptr += JPC_QMFB_COLGRPSIZE ;\n }\n if ( buf != joinbuf ) {\n jas_free ( buf ) ;\n }\n }"}
{"idx": 4685, "target": 0, "func": "int ssl3_write_pending ( SSL * s , int type , const unsigned char * buf , unsigned int len ) {\n int i ;\n SSL3_BUFFER * wb = s -> rlayer . wbuf ;\n unsigned int currbuf = 0 ;\n if ( ( s -> rlayer . wpend_tot > ( int ) len ) || ( ( s -> rlayer . wpend_buf != buf ) && ! ( s -> mode & SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER ) ) || ( s -> rlayer . wpend_type != type ) ) {\n SSLerr ( SSL_F_SSL3_WRITE_PENDING , SSL_R_BAD_WRITE_RETRY ) ;\n return ( - 1 ) ;\n }\n for ( ;\n ;\n ) {\n if ( SSL3_BUFFER_get_left ( & wb [ currbuf ] ) == 0 && currbuf < s -> rlayer . numwpipes - 1 ) {\n currbuf ++ ;\n continue ;\n }\n clear_sys_error ( ) ;\n if ( s -> wbio != NULL ) {\n s -> rwstate = SSL_WRITING ;\n i = BIO_write ( s -> wbio , ( char * ) & ( SSL3_BUFFER_get_buf ( & wb [ currbuf ] ) [ SSL3_BUFFER_get_offset ( & wb [ currbuf ] ) ] ) , ( unsigned int ) SSL3_BUFFER_get_left ( & wb [ currbuf ] ) ) ;\n }\n else {\n SSLerr ( SSL_F_SSL3_WRITE_PENDING , SSL_R_BIO_NOT_SET ) ;\n i = - 1 ;\n }\n if ( i == SSL3_BUFFER_get_left ( & wb [ currbuf ] ) ) {\n SSL3_BUFFER_set_left ( & wb [ currbuf ] , 0 ) ;\n SSL3_BUFFER_add_offset ( & wb [ currbuf ] , i ) ;\n if ( currbuf + 1 < s -> rlayer . numwpipes ) continue ;\n s -> rwstate = SSL_NOTHING ;\n return ( s -> rlayer . wpend_ret ) ;\n }\n else if ( i <= 0 ) {\n if ( SSL_IS_DTLS ( s ) ) {\n SSL3_BUFFER_set_left ( & wb [ currbuf ] , 0 ) ;\n }\n return ( i ) ;\n }\n SSL3_BUFFER_add_offset ( & wb [ currbuf ] , i ) ;\n SSL3_BUFFER_add_left ( & wb [ currbuf ] , - i ) ;\n }\n }"}
{"idx": 4686, "target": 0, "func": "static int check_pbase_path ( unsigned hash ) {\n int pos = ( ! done_pbase_paths ) ? - 1 : done_pbase_path_pos ( hash ) ;\n if ( 0 <= pos ) return 1 ;\n pos = - pos - 1 ;\n ALLOC_GROW ( done_pbase_paths , done_pbase_paths_num + 1 , done_pbase_paths_alloc ) ;\n done_pbase_paths_num ++ ;\n if ( pos < done_pbase_paths_num ) memmove ( done_pbase_paths + pos + 1 , done_pbase_paths + pos , ( done_pbase_paths_num - pos - 1 ) * sizeof ( unsigned ) ) ;\n done_pbase_paths [ pos ] = hash ;\n return 0 ;\n }"}
{"idx": 4687, "target": 0, "func": "static PyObject * str_subtype_new ( PyTypeObject * type , PyObject * args , PyObject * kwds ) {\n PyObject * tmp , * pnew ;\n Py_ssize_t n ;\n assert ( PyType_IsSubtype ( type , & PyString_Type ) ) ;\n tmp = string_new ( & PyString_Type , args , kwds ) ;\n if ( tmp == NULL ) return NULL ;\n assert ( PyString_Check ( tmp ) ) ;\n n = PyString_GET_SIZE ( tmp ) ;\n pnew = type -> tp_alloc ( type , n ) ;\n if ( pnew != NULL ) {\n Py_MEMCPY ( PyString_AS_STRING ( pnew ) , PyString_AS_STRING ( tmp ) , n + 1 ) ;\n ( ( PyStringObject * ) pnew ) -> ob_shash = ( ( PyStringObject * ) tmp ) -> ob_shash ;\n ( ( PyStringObject * ) pnew ) -> ob_sstate = SSTATE_NOT_INTERNED ;\n }\n Py_DECREF ( tmp ) ;\n return pnew ;\n }"}
{"idx": 4688, "target": 1, "func": "static void vp3_draw_horiz_band ( Vp3DecodeContext * s , int y ) {\n int h , cy , i ;\n int offset [ AV_NUM_DATA_POINTERS ] ;\n if ( HAVE_THREADS && s -> avctx -> active_thread_type & FF_THREAD_FRAME ) {\n int y_flipped = s -> flipped_image ? s -> avctx -> height - y : y ;\n ff_thread_report_progress ( & s -> current_frame , y_flipped == s -> avctx -> height ? INT_MAX : y_flipped - 1 , 0 ) ;\n }\n if ( s -> avctx -> draw_horiz_band == NULL ) return ;\n h = y - s -> last_slice_end ;\n s -> last_slice_end = y ;\n y -= h ;\n if ( ! s -> flipped_image ) {\n y = s -> avctx -> height - y - h ;\n }\n cy = y >> s -> chroma_y_shift ;\n offset [ 0 ] = s -> current_frame . linesize [ 0 ] * y ;\n offset [ 1 ] = s -> current_frame . linesize [ 1 ] * cy ;\n offset [ 2 ] = s -> current_frame . linesize [ 2 ] * cy ;\n for ( i = 3 ;\n i < AV_NUM_DATA_POINTERS ;\n i ++ ) offset [ i ] = 0 ;\n emms_c ( ) ;\n s -> avctx -> draw_horiz_band ( s -> avctx , & s -> current_frame , offset , y , 3 , h ) ;\n }"}
{"idx": 4689, "target": 0, "func": "static void xhci_write_event ( XHCIState * xhci , XHCIEvent * event , int v ) {\n PCIDevice * pci_dev = PCI_DEVICE ( xhci ) ;\n XHCIInterrupter * intr = & xhci -> intr [ v ] ;\n XHCITRB ev_trb ;\n dma_addr_t addr ;\n ev_trb . parameter = cpu_to_le64 ( event -> ptr ) ;\n ev_trb . status = cpu_to_le32 ( event -> length | ( event -> ccode << 24 ) ) ;\n ev_trb . control = ( event -> slotid << 24 ) | ( event -> epid << 16 ) | event -> flags | ( event -> type << TRB_TYPE_SHIFT ) ;\n if ( intr -> er_pcs ) {\n ev_trb . control |= TRB_C ;\n }\n ev_trb . control = cpu_to_le32 ( ev_trb . control ) ;\n trace_usb_xhci_queue_event ( v , intr -> er_ep_idx , trb_name ( & ev_trb ) , event_name ( event ) , ev_trb . parameter , ev_trb . status , ev_trb . control ) ;\n addr = intr -> er_start + TRB_SIZE * intr -> er_ep_idx ;\n pci_dma_write ( pci_dev , addr , & ev_trb , TRB_SIZE ) ;\n intr -> er_ep_idx ++ ;\n if ( intr -> er_ep_idx >= intr -> er_size ) {\n intr -> er_ep_idx = 0 ;\n intr -> er_pcs = ! intr -> er_pcs ;\n }\n }"}
{"idx": 4690, "target": 0, "func": "const char * TSHttpServerStateNameLookup ( TSServerState state ) {\n return HttpDebugNames : : get_server_state_name ( static_cast < HttpTransact : : ServerState_t > ( state ) ) ;\n }"}
{"idx": 4691, "target": 0, "func": "static void insert_mb_into_sb ( SuperBlock * sb , MacroBlock mb , unsigned index ) {\n uint32_t * dst = sb -> pixels32 + index + ( index & - 4 ) ;\n dst [ 0 ] = mb . pixels32 [ 0 ] ;\n dst [ 4 ] = mb . pixels32 [ 1 ] ;\n }"}
{"idx": 4692, "target": 0, "func": "int tls_construct_finished ( SSL * s , const char * sender , int slen ) {\n unsigned char * p ;\n int i ;\n unsigned long l ;\n p = ssl_handshake_start ( s ) ;\n i = s -> method -> ssl3_enc -> final_finish_mac ( s , sender , slen , s -> s3 -> tmp . finish_md ) ;\n if ( i <= 0 ) return 0 ;\n s -> s3 -> tmp . finish_md_len = i ;\n memcpy ( p , s -> s3 -> tmp . finish_md , i ) ;\n l = i ;\n if ( ! s -> server ) {\n OPENSSL_assert ( i <= EVP_MAX_MD_SIZE ) ;\n memcpy ( s -> s3 -> previous_client_finished , s -> s3 -> tmp . finish_md , i ) ;\n s -> s3 -> previous_client_finished_len = i ;\n }\n else {\n OPENSSL_assert ( i <= EVP_MAX_MD_SIZE ) ;\n memcpy ( s -> s3 -> previous_server_finished , s -> s3 -> tmp . finish_md , i ) ;\n s -> s3 -> previous_server_finished_len = i ;\n }\n if ( ! ssl_set_handshake_header ( s , SSL3_MT_FINISHED , l ) ) {\n SSLerr ( SSL_F_TLS_CONSTRUCT_FINISHED , ERR_R_INTERNAL_ERROR ) ;\n return 0 ;\n }\n return 1 ;\n }"}
{"idx": 4693, "target": 0, "func": "static uint32_t pcnet_csr_readw ( PCNetState * s , uint32_t rap ) {\n uint32_t val ;\n switch ( rap ) {\n case 0 : pcnet_update_irq ( s ) ;\n val = s -> csr [ 0 ] ;\n val |= ( val & 0x7800 ) ? 0x8000 : 0 ;\n break ;\n case 16 : return pcnet_csr_readw ( s , 1 ) ;\n case 17 : return pcnet_csr_readw ( s , 2 ) ;\n case 58 : return pcnet_bcr_readw ( s , BCR_SWS ) ;\n case 88 : val = s -> csr [ 89 ] ;\n val <<= 16 ;\n val |= s -> csr [ 88 ] ;\n break ;\n default : val = s -> csr [ rap ] ;\n }\n # ifdef PCNET_DEBUG_CSR printf ( \"pcnet_csr_readw rap=%d val=0x%04x\\n\" , rap , val ) ;\n # endif return val ;\n }"}
{"idx": 4694, "target": 0, "func": "static Entity * EntityReverse ( Entity * ent ) {\n Entity * next , * last = NULL ;\n while ( ent != NULL ) {\n next = ent -> next ;\n ent -> next = last ;\n last = ent ;\n ent = next ;\n }\n return ( last ) ;\n }"}
{"idx": 4695, "target": 0, "func": "static void ulti_convert_yuv ( AVFrame * frame , int x , int y , uint8_t * luma , int chroma ) {\n uint8_t * y_plane , * cr_plane , * cb_plane ;\n int i ;\n y_plane = frame -> data [ 0 ] + x + y * frame -> linesize [ 0 ] ;\n cr_plane = frame -> data [ 1 ] + ( x / 4 ) + ( y / 4 ) * frame -> linesize [ 1 ] ;\n cb_plane = frame -> data [ 2 ] + ( x / 4 ) + ( y / 4 ) * frame -> linesize [ 2 ] ;\n cr_plane [ 0 ] = ulti_chromas [ chroma >> 4 ] ;\n cb_plane [ 0 ] = ulti_chromas [ chroma & 0xF ] ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n y_plane [ i & 3 ] = ulti_lumas [ luma [ i ] ] ;\n if ( ( i & 3 ) == 3 ) {\n / ext row y_plane += frame -> linesize [ 0 ] ;\n }\n }\n }"}
{"idx": 4696, "target": 0, "func": "static void update_unicast_addr ( unicast_addr_t * req_addr , unicast_addr_t * ack_addr ) {\n if ( ack_addr -> addr . type != AT_NONE && ack_addr -> port != 0 ) {\n memcpy ( req_addr -> addr_buf , ack_addr -> addr_buf , sizeof ( req_addr -> addr_buf ) ) ;\n SET_ADDRESS ( & req_addr -> addr , ack_addr -> addr . type , ack_addr -> addr . len , req_addr -> addr_buf ) ;\n req_addr -> port = ack_addr -> port ;\n }\n }"}
{"idx": 4697, "target": 1, "func": "static void evhttp_maybe_add_content_length_header ( struct evkeyvalq * headers , long content_length ) {\n if ( evhttp_find_header ( headers , \"Transfer-Encoding\" ) == NULL && evhttp_find_header ( headers , \"Content-Length\" ) == NULL ) {\n char len [ 12 ] ;\n evutil_snprintf ( len , sizeof ( len ) , \"%ld\" , content_length ) ;\n evhttp_add_header ( headers , \"Content-Length\" , len ) ;\n }\n }"}
{"idx": 4698, "target": 1, "func": "static int32_t u_scanf_ustring_handler ( UFILE * input , u_scanf_spec_info * info , ufmt_args * args , const UChar * fmt , int32_t * fmtConsumed , int32_t * argConverted ) {\n UChar * arg = ( UChar * ) ( args [ 0 ] . ptrValue ) ;\n UChar * alias = arg ;\n int32_t count ;\n int32_t skipped = 0 ;\n UChar c ;\n UBool isNotEOF = FALSE ;\n if ( info -> fIsString ) {\n skipped = u_scanf_skip_leading_ws ( input , info -> fPadChar ) ;\n }\n count = 0 ;\n while ( ( info -> fWidth == - 1 || count < info -> fWidth ) && ( isNotEOF = ufile_getch ( input , & c ) ) && ( ! info -> fIsString || ( c != info -> fPadChar && ! u_isWhitespace ( c ) ) ) ) {\n if ( ! info -> fSkipArg ) {\n * alias ++ = c ;\n }\n ++ count ;\n }\n if ( ! info -> fSkipArg ) {\n if ( ( info -> fWidth == - 1 || count < info -> fWidth ) && isNotEOF ) {\n u_fungetc ( c , input ) ;\n }\n if ( info -> fIsString ) {\n * alias = 0x0000 ;\n }\n }\n * argConverted = ! info -> fSkipArg ;\n return count + skipped ;\n }"}
{"idx": 4699, "target": 0, "func": "PHP_FUNCTION ( locale_get_display_variant ) {\n get_icu_disp_value_src_php ( LOC_VARIANT_TAG , INTERNAL_FUNCTION_PARAM_PASSTHRU ) ;\n }"}
{"idx": 4700, "target": 0, "func": "static int comp_lines ( const char * * a , const char * * b ) {\n return ( strcmp ( * a , * b ) ) ;\n }"}
{"idx": 4701, "target": 1, "func": "static void Pass2Encode ( VP9_COMP * cpi , size_t * size , uint8_t * dest , unsigned int * frame_flags ) {\n cpi -> allow_encode_breakout = ENCODE_BREAKOUT_ENABLED ;\n vp9_rc_get_second_pass_params ( cpi ) ;\n encode_frame_to_data_rate ( cpi , size , dest , frame_flags ) ;\n vp9_twopass_postencode_update ( cpi ) ;\n }"}
{"idx": 4702, "target": 0, "func": "int vp9_rc_drop_frame ( VP9_COMP * cpi ) {\n const VP9EncoderConfig * oxcf = & cpi -> oxcf ;\n RATE_CONTROL * const rc = & cpi -> rc ;\n if ( ! oxcf -> drop_frames_water_mark ) {\n return 0 ;\n }\n else {\n if ( rc -> buffer_level < 0 ) {\n return 1 ;\n }\n else {\n int drop_mark = ( int ) ( oxcf -> drop_frames_water_mark * rc -> optimal_buffer_level / 100 ) ;\n if ( ( rc -> buffer_level > drop_mark ) && ( rc -> decimation_factor > 0 ) ) {\n -- rc -> decimation_factor ;\n }\n else if ( rc -> buffer_level <= drop_mark && rc -> decimation_factor == 0 ) {\n rc -> decimation_factor = 1 ;\n }\n if ( rc -> decimation_factor > 0 ) {\n if ( rc -> decimation_count > 0 ) {\n -- rc -> decimation_count ;\n return 1 ;\n }\n else {\n rc -> decimation_count = rc -> decimation_factor ;\n return 0 ;\n }\n }\n else {\n rc -> decimation_count = 0 ;\n return 0 ;\n }\n }\n }\n }"}
{"idx": 4703, "target": 0, "func": "static void bracket ( struct vars * v , struct state * lp , struct state * rp ) {\n assert ( SEE ( '[' ) ) ;\n NEXT ( ) ;\n while ( ! SEE ( ']' ) && ! SEE ( EOS ) ) brackpart ( v , lp , rp ) ;\n assert ( SEE ( ']' ) || ISERR ( ) ) ;\n okcolors ( v -> nfa , v -> cm ) ;\n }"}
{"idx": 4704, "target": 0, "func": "static gpgme_error_t gpgsm_export_ext ( void * engine , const char * pattern [ ] , gpgme_export_mode_t mode , gpgme_data_t keydata , int use_armor ) {\n engine_gpgsm_t gpgsm = engine ;\n gpgme_error_t err = 0 ;\n char * line ;\n int length = 7 + 1 ;\n char * linep ;\n if ( ! gpgsm ) return gpg_error ( GPG_ERR_INV_VALUE ) ;\n if ( mode ) return gpg_error ( GPG_ERR_NOT_SUPPORTED ) ;\n if ( pattern && * pattern ) {\n const char * * pat = pattern ;\n while ( * pat ) {\n const char * patlet = * pat ;\n while ( * patlet ) {\n length ++ ;\n if ( * patlet == '%' || * patlet == ' ' || * patlet == '+' ) length += 2 ;\n patlet ++ ;\n }\n pat ++ ;\n length ++ ;\n }\n }\n line = malloc ( length ) ;\n if ( ! line ) return gpg_error_from_syserror ( ) ;\n strcpy ( line , \"EXPORT \" ) ;\n linep = & line [ 7 ] ;\n if ( pattern && * pattern ) {\n while ( * pattern ) {\n const char * patlet = * pattern ;\n while ( * patlet ) {\n switch ( * patlet ) {\n case '%' : * ( linep ++ ) = '%' ;\n * ( linep ++ ) = '2' ;\n * ( linep ++ ) = '5' ;\n break ;\n case ' ' : * ( linep ++ ) = '%' ;\n * ( linep ++ ) = '2' ;\n * ( linep ++ ) = '0' ;\n break ;\n case '+' : * ( linep ++ ) = '%' ;\n * ( linep ++ ) = '2' ;\n * ( linep ++ ) = 'B' ;\n break ;\n default : * ( linep ++ ) = * patlet ;\n break ;\n }\n patlet ++ ;\n }\n pattern ++ ;\n if ( * pattern ) * linep ++ = ' ' ;\n }\n }\n * linep = '\\0' ;\n gpgsm -> output_cb . data = keydata ;\n err = gpgsm_set_fd ( gpgsm , OUTPUT_FD , use_armor ? \"--armor\" : map_data_enc ( gpgsm -> output_cb . data ) ) ;\n if ( err ) return err ;\n gpgsm_clear_fd ( gpgsm , INPUT_FD ) ;\n gpgsm_clear_fd ( gpgsm , MESSAGE_FD ) ;\n gpgsm -> inline_data = NULL ;\n err = start ( gpgsm , line ) ;\n free ( line ) ;\n return err ;\n }"}
{"idx": 4705, "target": 0, "func": "static void unixErrorHandler ( const char * module , const char * fmt , va_list ap ) {\n if ( module != NULL ) fprintf ( stderr , \"%s: \" , module ) ;\n vfprintf ( stderr , fmt , ap ) ;\n fprintf ( stderr , \".\\n\" ) ;\n }"}
{"idx": 4706, "target": 0, "func": "gcry_sexp_t gcry_sexp_car ( const gcry_sexp_t list ) {\n return gcry_sexp_nth ( list , 0 ) ;\n }"}
{"idx": 4707, "target": 0, "func": "static inline void update_qscale ( MpegEncContext * s ) {\n s -> qscale = ( s -> lambda * 139 + FF_LAMBDA_SCALE * 64 ) >> ( FF_LAMBDA_SHIFT + 7 ) ;\n s -> qscale = av_clip ( s -> qscale , s -> avctx -> qmin , s -> avctx -> qmax ) ;\n s -> lambda2 = ( s -> lambda * s -> lambda + FF_LAMBDA_SCALE / 2 ) >> FF_LAMBDA_SHIFT ;\n }"}
{"idx": 4708, "target": 0, "func": "static int ts_lua_http_config_string_set ( lua_State * L ) {\n int conf ;\n const char * value ;\n size_t value_len ;\n ts_lua_http_ctx * http_ctx ;\n GET_HTTP_CONTEXT ( http_ctx , L ) ;\n conf = luaL_checkinteger ( L , 1 ) ;\n value = luaL_checklstring ( L , 2 , & value_len ) ;\n TSHttpTxnConfigStringSet ( http_ctx -> txnp , conf , value , value_len ) ;\n return 0 ;\n }"}
{"idx": 4709, "target": 0, "func": "static int read_unknown_extension ( Gif_Context * gfc , Gif_Reader * grr , int kind , char * appname , int applength ) {\n uint8_t block_len = gifgetbyte ( grr ) ;\n uint8_t * data = 0 ;\n int data_len = 0 ;\n Gif_Extension * gfex = 0 ;\n while ( block_len > 0 ) {\n Gif_ReArray ( data , uint8_t , data_len + block_len + 2 ) ;\n if ( ! data ) goto done ;\n data [ data_len ] = block_len ;\n gifgetblock ( data + data_len + 1 , block_len , grr ) ;\n data_len += block_len + 1 ;\n block_len = gifgetbyte ( grr ) ;\n }\n if ( data ) gfex = Gif_NewExtension ( kind , appname , applength ) ;\n if ( gfex ) {\n gfex -> data = data ;\n gfex -> free_data = Gif_Free ;\n gfex -> length = data_len ;\n gfex -> packetized = 1 ;\n data [ data_len ] = 0 ;\n Gif_AddExtension ( gfc -> stream , gfc -> gfi , gfex ) ;\n }\n done : if ( ! gfex ) Gif_DeleteArray ( data ) ;\n while ( block_len > 0 ) {\n uint8_t buffer [ GIF_MAX_BLOCK ] ;\n gifgetblock ( buffer , block_len , grr ) ;\n block_len = gifgetbyte ( grr ) ;\n }\n return gfex != 0 ;\n }"}
{"idx": 4710, "target": 0, "func": "relpRetVal relpTcpSetPrivKey ( relpTcp_t * pThis , char * cert ) {\n ENTER_RELPFUNC ;\n RELPOBJ_assert ( pThis , Tcp ) ;\n free ( pThis -> privKeyFile ) ;\n if ( cert == NULL ) {\n pThis -> privKeyFile = NULL ;\n }\n else {\n # ifdef HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION if ( ( pThis -> privKeyFile = strdup ( cert ) ) == NULL ) ABORT_FINALIZE ( RELP_RET_OUT_OF_MEMORY ) ;\n # else ABORT_FINALIZE ( RELP_RET_ERR_NO_TLS_AUTH ) ;\n # endif }\n finalize_it : LEAVE_RELPFUNC ;\n }"}
{"idx": 4711, "target": 0, "func": "rfbBool rfbSendSetColourMapEntries ( rfbClientPtr cl , int firstColour , int nColours ) {\n char buf [ sz_rfbSetColourMapEntriesMsg + 256 * 3 * 2 ] ;\n char * wbuf = buf ;\n rfbSetColourMapEntriesMsg * scme ;\n uint16_t * rgb ;\n rfbColourMap * cm = & cl -> screen -> colourMap ;\n int i , len ;\n if ( nColours > 256 ) {\n wbuf = ( char * ) malloc ( sz_rfbSetColourMapEntriesMsg + nColours * 3 * 2 ) ;\n }\n scme = ( rfbSetColourMapEntriesMsg * ) wbuf ;\n rgb = ( uint16_t * ) ( & wbuf [ sz_rfbSetColourMapEntriesMsg ] ) ;\n scme -> type = rfbSetColourMapEntries ;\n scme -> firstColour = Swap16IfLE ( firstColour ) ;\n scme -> nColours = Swap16IfLE ( nColours ) ;\n len = sz_rfbSetColourMapEntriesMsg ;\n for ( i = 0 ;\n i < nColours ;\n i ++ ) {\n if ( i < ( int ) cm -> count ) {\n if ( cm -> is16 ) {\n rgb [ i * 3 ] = Swap16IfLE ( cm -> data . shorts [ i * 3 ] ) ;\n rgb [ i * 3 + 1 ] = Swap16IfLE ( cm -> data . shorts [ i * 3 + 1 ] ) ;\n rgb [ i * 3 + 2 ] = Swap16IfLE ( cm -> data . shorts [ i * 3 + 2 ] ) ;\n }\n else {\n rgb [ i * 3 ] = Swap16IfLE ( ( unsigned short ) cm -> data . bytes [ i * 3 ] ) ;\n rgb [ i * 3 + 1 ] = Swap16IfLE ( ( unsigned short ) cm -> data . bytes [ i * 3 + 1 ] ) ;\n rgb [ i * 3 + 2 ] = Swap16IfLE ( ( unsigned short ) cm -> data . bytes [ i * 3 + 2 ] ) ;\n }\n }\n }\n len += nColours * 3 * 2 ;\n LOCK ( cl -> sendMutex ) ;\n if ( rfbWriteExact ( cl , wbuf , len ) < 0 ) {\n rfbLogPerror ( \"rfbSendSetColourMapEntries: write\" ) ;\n rfbCloseClient ( cl ) ;\n if ( wbuf != buf ) free ( wbuf ) ;\n UNLOCK ( cl -> sendMutex ) ;\n return FALSE ;\n }\n UNLOCK ( cl -> sendMutex ) ;\n rfbStatRecordMessageSent ( cl , rfbSetColourMapEntries , len , len ) ;\n if ( wbuf != buf ) free ( wbuf ) ;\n return TRUE ;\n }"}
{"idx": 4712, "target": 0, "func": "int make_rss ( i_ctx_t * i_ctx_p , os_ptr op , const byte * data , uint size , uint string_space , long offset , long length , bool is_bytestring ) {\n uint save_space = icurrent_space ;\n stream * s ;\n long left = min ( length , size - offset ) ;\n ialloc_set_space ( idmemory , string_space ) ;\n s = file_alloc_stream ( imemory , \"make_rss\" ) ;\n ialloc_set_space ( idmemory , save_space ) ;\n if ( s == 0 ) return_error ( gs_error_VMerror ) ;\n sread_string_reusable ( s , data + offset , max ( left , 0 ) ) ;\n if ( is_bytestring ) s -> cbuf_string . data = 0 ;\n make_stream_file ( op , s , \"r\" ) ;\n return 0 ;\n }"}
{"idx": 4713, "target": 0, "func": "static inline MagickRealType GetPixelInfoLuminance ( const PixelInfo * restrict pixel ) {\n MagickRealType blue , green , red ;\n if ( pixel -> colorspace == GRAYColorspace ) return ( pixel -> red ) ;\n if ( pixel -> colorspace != sRGBColorspace ) return ( 0.212656f * pixel -> red + 0.715158f * pixel -> green + 0.072186f * pixel -> blue ) ;\n red = DecodePixelGamma ( pixel -> red ) ;\n green = DecodePixelGamma ( pixel -> green ) ;\n blue = DecodePixelGamma ( pixel -> blue ) ;\n return ( 0.212656f * red + 0.715158f * green + 0.072186f * blue ) ;\n }"}
{"idx": 4714, "target": 0, "func": "int qemuAssignDeviceChrAlias ( virDomainDefPtr def , virDomainChrDefPtr chr , ssize_t idx ) {\n const char * prefix = NULL ;\n switch ( ( virDomainChrDeviceType ) chr -> deviceType ) {\n case VIR_DOMAIN_CHR_DEVICE_TYPE_PARALLEL : prefix = \"parallel\" ;\n break ;\n case VIR_DOMAIN_CHR_DEVICE_TYPE_SERIAL : prefix = \"serial\" ;\n break ;\n case VIR_DOMAIN_CHR_DEVICE_TYPE_CONSOLE : prefix = \"console\" ;\n break ;\n case VIR_DOMAIN_CHR_DEVICE_TYPE_CHANNEL : prefix = \"channel\" ;\n break ;\n case VIR_DOMAIN_CHR_DEVICE_TYPE_LAST : return - 1 ;\n }\n if ( idx == - 1 && ( idx = qemuGetNextChrDevIndex ( def , chr , prefix ) ) < 0 ) return - 1 ;\n return virAsprintf ( & chr -> info . alias , \"%s%zd\" , prefix , idx ) ;\n }"}
{"idx": 4715, "target": 0, "func": "static int _setup_resv_limits ( slurmdb_reservation_rec_t * resv , char * * cols , char * * vals , char * * extra ) {\n if ( resv -> assocs ) {\n int start = 0 ;\n int len = strlen ( resv -> assocs ) - 1 ;\n if ( strchr ( resv -> assocs , '-' ) ) {\n int i = 0 , i2 = 0 ;\n char * assocs = xmalloc ( sizeof ( char ) * len ) ;\n while ( i < len ) {\n if ( resv -> assocs [ i ] == ',' && resv -> assocs [ i + 1 ] == '-' ) {\n i += 2 ;\n while ( i < len ) {\n i ++ ;\n if ( resv -> assocs [ i ] == ',' ) break ;\n }\n continue ;\n }\n assocs [ i2 ++ ] = resv -> assocs [ i ++ ] ;\n }\n xfree ( resv -> assocs ) ;\n len = i2 - 1 ;\n resv -> assocs = assocs ;\n assocs = NULL ;\n }\n if ( resv -> assocs [ 0 ] == ',' ) start = 1 ;\n if ( resv -> assocs [ len ] == ',' ) resv -> assocs [ len ] = '\\0' ;\n xstrcat ( * cols , \", assoclist\" ) ;\n xstrfmtcat ( * vals , \", '%s'\" , resv -> assocs + start ) ;\n xstrfmtcat ( * extra , \", assoclist='%s'\" , resv -> assocs + start ) ;\n }\n if ( resv -> flags != NO_VAL ) {\n xstrcat ( * cols , \", flags\" ) ;\n xstrfmtcat ( * vals , \", %u\" , resv -> flags ) ;\n xstrfmtcat ( * extra , \", flags=%u\" , resv -> flags ) ;\n }\n if ( resv -> name ) {\n xstrcat ( * cols , \", resv_name\" ) ;\n xstrfmtcat ( * vals , \", '%s'\" , resv -> name ) ;\n xstrfmtcat ( * extra , \", resv_name='%s'\" , resv -> name ) ;\n }\n if ( resv -> nodes ) {\n xstrcat ( * cols , \", nodelist\" ) ;\n xstrfmtcat ( * vals , \", '%s'\" , resv -> nodes ) ;\n xstrfmtcat ( * extra , \", nodelist='%s'\" , resv -> nodes ) ;\n }\n if ( resv -> node_inx ) {\n xstrcat ( * cols , \", node_inx\" ) ;\n xstrfmtcat ( * vals , \", '%s'\" , resv -> node_inx ) ;\n xstrfmtcat ( * extra , \", node_inx='%s'\" , resv -> node_inx ) ;\n }\n if ( resv -> time_end ) {\n xstrcat ( * cols , \", time_end\" ) ;\n xstrfmtcat ( * vals , \", %ld\" , resv -> time_end ) ;\n xstrfmtcat ( * extra , \", time_end=%ld\" , resv -> time_end ) ;\n }\n if ( resv -> time_start ) {\n xstrcat ( * cols , \", time_start\" ) ;\n xstrfmtcat ( * vals , \", %ld\" , resv -> time_start ) ;\n xstrfmtcat ( * extra , \", time_start=%ld\" , resv -> time_start ) ;\n }\n if ( resv -> tres_str ) {\n xstrcat ( * cols , \", tres\" ) ;\n xstrfmtcat ( * vals , \", '%s'\" , resv -> tres_str ) ;\n xstrfmtcat ( * extra , \", tres='%s'\" , resv -> tres_str ) ;\n }\n return SLURM_SUCCESS ;\n }"}
{"idx": 4716, "target": 0, "func": "static const char * lookup_name ( uint32_t index , const char * * list , uint32_t llen ) {\n if ( index >= llen || list [ index ] == NULL ) {\n return \"???\" ;\n }\n return list [ index ] ;\n }"}
{"idx": 4717, "target": 1, "func": "static int vc1_decode_p_mb_intfr ( VC1Context * v ) {\n MpegEncContext * s = & v -> s ;\n GetBitContext * gb = & s -> gb ;\n int i ;\n int mb_pos = s -> mb_x + s -> mb_y * s -> mb_stride ;\n int cbp = 0 ;\n int mqdiff , mquant ;\n int ttmb = v -> ttfrm ;\n int mb_has_coeffs = 1 ;\n int dmv_x , dmv_y ;\n int val ;\n int first_block = 1 ;\n int dst_idx , off ;\n int skipped , fourmv = 0 , twomv = 0 ;\n int block_cbp = 0 , pat , block_tt = 0 ;\n int idx_mbmode = 0 , mvbp ;\n int stride_y , fieldtx ;\n mquant = v -> pq ;\n if ( v -> skip_is_raw ) skipped = get_bits1 ( gb ) ;\n else skipped = v -> s . mbskip_table [ mb_pos ] ;\n if ( ! skipped ) {\n if ( v -> fourmvswitch ) idx_mbmode = get_vlc2 ( gb , v -> mbmode_vlc -> table , VC1_INTFR_4MV_MBMODE_VLC_BITS , 2 ) ;\n else idx_mbmode = get_vlc2 ( gb , v -> mbmode_vlc -> table , VC1_INTFR_NON4MV_MBMODE_VLC_BITS , 2 ) ;\n switch ( ff_vc1_mbmode_intfrp [ v -> fourmvswitch ] [ idx_mbmode ] [ 0 ] ) {\n case MV_PMODE_INTFR_4MV : fourmv = 1 ;\n v -> blk_mv_type [ s -> block_index [ 0 ] ] = 0 ;\n v -> blk_mv_type [ s -> block_index [ 1 ] ] = 0 ;\n v -> blk_mv_type [ s -> block_index [ 2 ] ] = 0 ;\n v -> blk_mv_type [ s -> block_index [ 3 ] ] = 0 ;\n break ;\n case MV_PMODE_INTFR_4MV_FIELD : fourmv = 1 ;\n v -> blk_mv_type [ s -> block_index [ 0 ] ] = 1 ;\n v -> blk_mv_type [ s -> block_index [ 1 ] ] = 1 ;\n v -> blk_mv_type [ s -> block_index [ 2 ] ] = 1 ;\n v -> blk_mv_type [ s -> block_index [ 3 ] ] = 1 ;\n break ;\n case MV_PMODE_INTFR_2MV_FIELD : twomv = 1 ;\n v -> blk_mv_type [ s -> block_index [ 0 ] ] = 1 ;\n v -> blk_mv_type [ s -> block_index [ 1 ] ] = 1 ;\n v -> blk_mv_type [ s -> block_index [ 2 ] ] = 1 ;\n v -> blk_mv_type [ s -> block_index [ 3 ] ] = 1 ;\n break ;\n case MV_PMODE_INTFR_1MV : v -> blk_mv_type [ s -> block_index [ 0 ] ] = 0 ;\n v -> blk_mv_type [ s -> block_index [ 1 ] ] = 0 ;\n v -> blk_mv_type [ s -> block_index [ 2 ] ] = 0 ;\n v -> blk_mv_type [ s -> block_index [ 3 ] ] = 0 ;\n break ;\n }\n if ( ff_vc1_mbmode_intfrp [ v -> fourmvswitch ] [ idx_mbmode ] [ 0 ] == MV_PMODE_INTFR_INTRA ) {\n s -> current_picture . f . motion_val [ 1 ] [ s -> block_index [ 0 ] ] [ 0 ] = 0 ;\n s -> current_picture . f . motion_val [ 1 ] [ s -> block_index [ 0 ] ] [ 1 ] = 0 ;\n s -> current_picture . f . mb_type [ mb_pos ] = MB_TYPE_INTRA ;\n s -> mb_intra = v -> is_intra [ s -> mb_x ] = 1 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) v -> mb_type [ 0 ] [ s -> block_index [ i ] ] = 1 ;\n fieldtx = v -> fieldtx_plane [ mb_pos ] = get_bits1 ( gb ) ;\n mb_has_coeffs = get_bits1 ( gb ) ;\n if ( mb_has_coeffs ) cbp = 1 + get_vlc2 ( & v -> s . gb , v -> cbpcy_vlc -> table , VC1_CBPCY_P_VLC_BITS , 2 ) ;\n v -> s . ac_pred = v -> acpred_plane [ mb_pos ] = get_bits1 ( gb ) ;\n GET_MQUANT ( ) ;\n s -> current_picture . f . qscale_table [ mb_pos ] = mquant ;\n s -> y_dc_scale = s -> y_dc_scale_table [ mquant ] ;\n s -> c_dc_scale = s -> c_dc_scale_table [ mquant ] ;\n dst_idx = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n s -> dc_val [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n dst_idx += i >> 2 ;\n val = ( ( cbp >> ( 5 - i ) ) & 1 ) ;\n v -> mb_type [ 0 ] [ s -> block_index [ i ] ] = s -> mb_intra ;\n v -> a_avail = v -> c_avail = 0 ;\n if ( i == 2 || i == 3 || ! s -> first_slice_line ) v -> a_avail = v -> mb_type [ 0 ] [ s -> block_index [ i ] - s -> block_wrap [ i ] ] ;\n if ( i == 1 || i == 3 || s -> mb_x ) v -> c_avail = v -> mb_type [ 0 ] [ s -> block_index [ i ] - 1 ] ;\n vc1_decode_intra_block ( v , s -> block [ i ] , i , val , mquant , ( i & 4 ) ? v -> codingset2 : v -> codingset ) ;\n if ( ( i > 3 ) && ( s -> flags & CODEC_FLAG_GRAY ) ) continue ;\n v -> vc1dsp . vc1_inv_trans_8x8 ( s -> block [ i ] ) ;\n if ( i < 4 ) {\n stride_y = s -> linesize << fieldtx ;\n off = ( fieldtx ) ? ( ( i & 1 ) * 8 ) + ( ( i & 2 ) >> 1 ) * s -> linesize : ( i & 1 ) * 8 + 4 * ( i & 2 ) * s -> linesize ;\n }\n else {\n stride_y = s -> uvlinesize ;\n off = 0 ;\n }\n s -> dsp . put_signed_pixels_clamped ( s -> block [ i ] , s -> dest [ dst_idx ] + off , stride_y ) ;\n }\n }\n else {\n mb_has_coeffs = ff_vc1_mbmode_intfrp [ v -> fourmvswitch ] [ idx_mbmode ] [ 3 ] ;\n if ( mb_has_coeffs ) cbp = 1 + get_vlc2 ( & v -> s . gb , v -> cbpcy_vlc -> table , VC1_CBPCY_P_VLC_BITS , 2 ) ;\n if ( ff_vc1_mbmode_intfrp [ v -> fourmvswitch ] [ idx_mbmode ] [ 0 ] == MV_PMODE_INTFR_2MV_FIELD ) {\n v -> twomvbp = get_vlc2 ( gb , v -> twomvbp_vlc -> table , VC1_2MV_BLOCK_PATTERN_VLC_BITS , 1 ) ;\n }\n else {\n if ( ( ff_vc1_mbmode_intfrp [ v -> fourmvswitch ] [ idx_mbmode ] [ 0 ] == MV_PMODE_INTFR_4MV ) || ( ff_vc1_mbmode_intfrp [ v -> fourmvswitch ] [ idx_mbmode ] [ 0 ] == MV_PMODE_INTFR_4MV_FIELD ) ) {\n v -> fourmvbp = get_vlc2 ( gb , v -> fourmvbp_vlc -> table , VC1_4MV_BLOCK_PATTERN_VLC_BITS , 1 ) ;\n }\n }\n s -> mb_intra = v -> is_intra [ s -> mb_x ] = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) v -> mb_type [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n fieldtx = v -> fieldtx_plane [ mb_pos ] = ff_vc1_mbmode_intfrp [ v -> fourmvswitch ] [ idx_mbmode ] [ 1 ] ;\n dst_idx = 0 ;\n if ( fourmv ) {\n mvbp = v -> fourmvbp ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( i < 4 ) {\n dmv_x = dmv_y = 0 ;\n val = ( ( mvbp >> ( 3 - i ) ) & 1 ) ;\n if ( val ) {\n get_mvdata_interlaced ( v , & dmv_x , & dmv_y , 0 ) ;\n }\n vc1_pred_mv_intfr ( v , i , dmv_x , dmv_y , 0 , v -> range_x , v -> range_y , v -> mb_type [ 0 ] ) ;\n vc1_mc_4mv_luma ( v , i , 0 ) ;\n }\n else if ( i == 4 ) {\n vc1_mc_4mv_chroma4 ( v ) ;\n }\n }\n }\n else if ( twomv ) {\n mvbp = v -> twomvbp ;\n dmv_x = dmv_y = 0 ;\n if ( mvbp & 2 ) {\n get_mvdata_interlaced ( v , & dmv_x , & dmv_y , 0 ) ;\n }\n vc1_pred_mv_intfr ( v , 0 , dmv_x , dmv_y , 2 , v -> range_x , v -> range_y , v -> mb_type [ 0 ] ) ;\n vc1_mc_4mv_luma ( v , 0 , 0 ) ;\n vc1_mc_4mv_luma ( v , 1 , 0 ) ;\n dmv_x = dmv_y = 0 ;\n if ( mvbp & 1 ) {\n get_mvdata_interlaced ( v , & dmv_x , & dmv_y , 0 ) ;\n }\n vc1_pred_mv_intfr ( v , 2 , dmv_x , dmv_y , 2 , v -> range_x , v -> range_y , v -> mb_type [ 0 ] ) ;\n vc1_mc_4mv_luma ( v , 2 , 0 ) ;\n vc1_mc_4mv_luma ( v , 3 , 0 ) ;\n vc1_mc_4mv_chroma4 ( v ) ;\n }\n else {\n mvbp = ff_vc1_mbmode_intfrp [ v -> fourmvswitch ] [ idx_mbmode ] [ 2 ] ;\n dmv_x = dmv_y = 0 ;\n if ( mvbp ) {\n get_mvdata_interlaced ( v , & dmv_x , & dmv_y , 0 ) ;\n }\n vc1_pred_mv_intfr ( v , 0 , dmv_x , dmv_y , 1 , v -> range_x , v -> range_y , v -> mb_type [ 0 ] ) ;\n vc1_mc_1mv ( v , 0 ) ;\n }\n if ( cbp ) GET_MQUANT ( ) ;\n s -> current_picture . f . qscale_table [ mb_pos ] = mquant ;\n if ( ! v -> ttmbf && cbp ) ttmb = get_vlc2 ( gb , ff_vc1_ttmb_vlc [ v -> tt_index ] . table , VC1_TTMB_VLC_BITS , 2 ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n s -> dc_val [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n dst_idx += i >> 2 ;\n val = ( ( cbp >> ( 5 - i ) ) & 1 ) ;\n if ( ! fieldtx ) off = ( i & 4 ) ? 0 : ( ( i & 1 ) * 8 + ( i & 2 ) * 4 * s -> linesize ) ;\n else off = ( i & 4 ) ? 0 : ( ( i & 1 ) * 8 + ( ( i > 1 ) * s -> linesize ) ) ;\n if ( val ) {\n pat = vc1_decode_p_block ( v , s -> block [ i ] , i , mquant , ttmb , first_block , s -> dest [ dst_idx ] + off , ( i & 4 ) ? s -> uvlinesize : ( s -> linesize << fieldtx ) , ( i & 4 ) && ( s -> flags & CODEC_FLAG_GRAY ) , & block_tt ) ;\n block_cbp |= pat << ( i << 2 ) ;\n if ( ! v -> ttmbf && ttmb < 8 ) ttmb = - 1 ;\n first_block = 0 ;\n }\n }\n }\n }\n else {\n s -> mb_intra = v -> is_intra [ s -> mb_x ] = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n v -> mb_type [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n s -> dc_val [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n }\n s -> current_picture . f . mb_type [ mb_pos ] = MB_TYPE_SKIP ;\n s -> current_picture . f . qscale_table [ mb_pos ] = 0 ;\n v -> blk_mv_type [ s -> block_index [ 0 ] ] = 0 ;\n v -> blk_mv_type [ s -> block_index [ 1 ] ] = 0 ;\n v -> blk_mv_type [ s -> block_index [ 2 ] ] = 0 ;\n v -> blk_mv_type [ s -> block_index [ 3 ] ] = 0 ;\n vc1_pred_mv_intfr ( v , 0 , 0 , 0 , 1 , v -> range_x , v -> range_y , v -> mb_type [ 0 ] ) ;\n vc1_mc_1mv ( v , 0 ) ;\n }\n if ( s -> mb_x == s -> mb_width - 1 ) memmove ( v -> is_intra_base , v -> is_intra , sizeof ( v -> is_intra_base [ 0 ] ) * s -> mb_stride ) ;\n return 0 ;\n }"}
{"idx": 4718, "target": 0, "func": "static void AddPnaclParm ( const base : : FilePath : : StringType & url , base : : FilePath : : StringType * url_with_parm ) {\n if ( url . find ( FILE_PATH_LITERAL ( \"?\" ) ) == base : : FilePath : : StringType : : npos ) {\n * url_with_parm = url + FILE_PATH_LITERAL ( \"?pnacl=1\" ) ;\n }\n else {\n * url_with_parm = url + FILE_PATH_LITERAL ( \"&pnacl=1\" ) ;\n }\n }"}
{"idx": 4719, "target": 0, "func": "static void e1000e_intrmgr_on_throttling_timer ( void * opaque ) {\n E1000IntrDelayTimer * timer = opaque ;\n assert ( ! msix_enabled ( timer -> core -> owner ) ) ;\n timer -> running = false ;\n if ( ! timer -> core -> itr_intr_pending ) {\n trace_e1000e_irq_throttling_no_pending_interrupts ( ) ;\n return ;\n }\n if ( msi_enabled ( timer -> core -> owner ) ) {\n trace_e1000e_irq_msi_notify_postponed ( ) ;\n e1000e_set_interrupt_cause ( timer -> core , 0 ) ;\n }\n else {\n trace_e1000e_irq_legacy_notify_postponed ( ) ;\n e1000e_set_interrupt_cause ( timer -> core , 0 ) ;\n }\n }"}
{"idx": 4720, "target": 0, "func": "static gint msg_data_find ( struct message_data * a , struct message_data * b ) {\n if ( a -> fid == b -> fid && a -> frame == b -> frame && a -> msg_id == b -> msg_id && a -> smb_level == b -> smb_level && a -> is_request == b -> is_request ) {\n return 0 ;\n }\n return 1 ;\n }"}
{"idx": 4721, "target": 0, "func": "static get_contents_ret get_contents ( char * linebuf , size_t len , FILE * stream ) {\n size_t remaining_len = len ;\n char * curbuf = linebuf ;\n do {\n int curlen = ( ( remaining_len > ( size_t ) INT_MAX ) ? INT_MAX : remaining_len ) ;\n ( ( unsigned char * ) curbuf ) [ curlen - 1 ] = 0xff ;\n char * p = fgets_unlocked ( curbuf , curlen , stream ) ;\n if ( p == NULL ) return gcr_error ;\n if ( ( ( unsigned char * ) curbuf ) [ curlen - 1 ] == 0xff ) return gcr_ok ;\n remaining_len -= curlen - 1 ;\n curbuf += curlen - 1 ;\n }\n while ( remaining_len > 1 ) ;\n return gcr_overflow ;\n }"}
{"idx": 4722, "target": 0, "func": "static void usbdev_vm_close ( struct vm_area_struct * vma ) {\n struct usb_memory * usbm = vma -> vm_private_data ;\n dec_usb_memory_use_count ( usbm , & usbm -> vma_use_count ) ;\n }"}
{"idx": 4723, "target": 0, "func": "static void test_signal_switchbase ( void ) {\n struct event ev1 , ev2 ;\n struct event_base * base1 , * base2 ;\n int is_kqueue ;\n test_ok = 0 ;\n printf ( \"Signal switchbase: \" ) ;\n base1 = event_init ( ) ;\n base2 = event_init ( ) ;\n is_kqueue = ! strcmp ( event_get_method ( ) , \"kqueue\" ) ;\n signal_set ( & ev1 , SIGUSR1 , signal_cb , & ev1 ) ;\n signal_set ( & ev2 , SIGUSR1 , signal_cb , & ev2 ) ;\n if ( event_base_set ( base1 , & ev1 ) || event_base_set ( base2 , & ev2 ) || event_add ( & ev1 , NULL ) || event_add ( & ev2 , NULL ) ) {\n fprintf ( stderr , \"%s: cannot set base, add\\n\" , __func__ ) ;\n exit ( 1 ) ;\n }\n test_ok = 0 ;\n raise ( SIGUSR1 ) ;\n event_base_loop ( base2 , EVLOOP_NONBLOCK ) ;\n if ( is_kqueue ) {\n if ( ! test_ok ) goto done ;\n test_ok = 0 ;\n }\n event_base_loop ( base1 , EVLOOP_NONBLOCK ) ;\n if ( test_ok && ! is_kqueue ) {\n test_ok = 0 ;\n event_base_loop ( base1 , EVLOOP_NONBLOCK ) ;\n raise ( SIGUSR1 ) ;\n event_base_loop ( base1 , EVLOOP_NONBLOCK ) ;\n event_base_loop ( base2 , EVLOOP_NONBLOCK ) ;\n }\n done : event_base_free ( base1 ) ;\n event_base_free ( base2 ) ;\n cleanup_test ( ) ;\n }"}
{"idx": 4724, "target": 0, "func": "static bool xss_needed ( void * opaque ) {\n X86CPU * cpu = opaque ;\n CPUX86State * env = & cpu -> env ;\n return env -> xss != 0 ;\n }"}
{"idx": 4725, "target": 0, "func": "int qemuMonitorTextDeleteSnapshot ( qemuMonitorPtr mon , const char * name ) {\n char * cmd = NULL ;\n char * reply = NULL ;\n int ret = - 1 ;\n char * safename ;\n if ( ! ( safename = qemuMonitorEscapeArg ( name ) ) || virAsprintf ( & cmd , \"delvm \\\"%s\\\"\" , safename ) < 0 ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"failed to delete snapshot using command '%s'\" ) , cmd ) ;\n goto cleanup ;\n }\n if ( strstr ( reply , \"No block device supports snapshots\" ) != NULL ) {\n qemuReportError ( VIR_ERR_OPERATION_INVALID , \"%s\" , _ ( \"this domain does not have a device to delete snapshots\" ) ) ;\n goto cleanup ;\n }\n else if ( strstr ( reply , \"Snapshots not supported on device\" ) != NULL ) {\n qemuReportError ( VIR_ERR_OPERATION_INVALID , \"%s\" , reply ) ;\n goto cleanup ;\n }\n else if ( strstr ( reply , \"Error\" ) != NULL && strstr ( reply , \"while deleting snapshot\" ) != NULL ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , reply ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( safename ) ;\n VIR_FREE ( cmd ) ;\n VIR_FREE ( reply ) ;\n return ret ;\n }"}
{"idx": 4726, "target": 0, "func": "gboolean nautilus_directory_has_active_request_for_file ( NautilusDirectory * directory , NautilusFile * file ) {\n GList * node ;\n ReadyCallback * callback ;\n Monitor * monitor ;\n for ( node = directory -> details -> call_when_ready_list ;\n node != NULL ;\n node = node -> next ) {\n callback = node -> data ;\n if ( callback -> file == file || callback -> file == NULL ) {\n return TRUE ;\n }\n }\n for ( node = directory -> details -> monitor_list ;\n node != NULL ;\n node = node -> next ) {\n monitor = node -> data ;\n if ( monitor -> file == file || monitor -> file == NULL ) {\n return TRUE ;\n }\n }\n return FALSE ;\n }"}
{"idx": 4727, "target": 1, "func": "int i2d_ ## name ( type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;\n int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING )"}
{"idx": 4728, "target": 0, "func": "static void evsignal_handler ( int sig ) {\n int save_errno = errno ;\n if ( evsignal_base == NULL ) {\n event_warn ( \"%s: received signal %d, but have no base configured\" , __func__ , sig ) ;\n return ;\n }\n evsignal_base -> sig . evsigcaught [ sig ] ++ ;\n evsignal_base -> sig . evsignal_caught = 1 ;\n # ifndef HAVE_SIGACTION signal ( sig , evsignal_handler ) ;\n # endif send ( evsignal_base -> sig . ev_signal_pair [ 0 ] , \"a\" , 1 , 0 ) ;\n errno = save_errno ;\n }"}
{"idx": 4729, "target": 0, "func": "void ber_init_w_nullc ( BerElement * ber , int options ) {\n ber_init2 ( ber , NULL , options ) ;\n }"}
{"idx": 4730, "target": 0, "func": "static void read_frame_reference_mode_probs ( VP9_COMMON * cm , vp9_reader * r ) {\n FRAME_CONTEXT * const fc = & cm -> fc ;\n int i ;\n if ( cm -> reference_mode == REFERENCE_MODE_SELECT ) for ( i = 0 ;\n i < COMP_INTER_CONTEXTS ;\n ++ i ) vp9_diff_update_prob ( r , & fc -> comp_inter_prob [ i ] ) ;\n if ( cm -> reference_mode != COMPOUND_REFERENCE ) for ( i = 0 ;\n i < REF_CONTEXTS ;\n ++ i ) {\n vp9_diff_update_prob ( r , & fc -> single_ref_prob [ i ] [ 0 ] ) ;\n vp9_diff_update_prob ( r , & fc -> single_ref_prob [ i ] [ 1 ] ) ;\n }\n if ( cm -> reference_mode != SINGLE_REFERENCE ) for ( i = 0 ;\n i < REF_CONTEXTS ;\n ++ i ) vp9_diff_update_prob ( r , & fc -> comp_ref_prob [ i ] ) ;\n }"}
{"idx": 4731, "target": 0, "func": "static int selinux_msg_queue_alloc_security ( struct msg_queue * msq ) {\n struct ipc_security_struct * isec ;\n struct common_audit_data ad ;\n u32 sid = current_sid ( ) ;\n int rc ;\n rc = ipc_alloc_security ( current , & msq -> q_perm , SECCLASS_MSGQ ) ;\n if ( rc ) return rc ;\n isec = msq -> q_perm . security ;\n ad . type = LSM_AUDIT_DATA_IPC ;\n ad . u . ipc_id = msq -> q_perm . key ;\n rc = avc_has_perm ( sid , isec -> sid , SECCLASS_MSGQ , MSGQ__CREATE , & ad ) ;\n if ( rc ) {\n ipc_free_security ( & msq -> q_perm ) ;\n return rc ;\n }\n return 0 ;\n }"}
{"idx": 4732, "target": 1, "func": "static int decode_frame_header ( ProresContext * ctx , const uint8_t * buf , const int data_size , AVCodecContext * avctx ) {\n int hdr_size , version , width , height , flags ;\n const uint8_t * ptr ;\n hdr_size = AV_RB16 ( buf ) ;\n if ( hdr_size > data_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"frame data too small\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n version = AV_RB16 ( buf + 2 ) ;\n if ( version >= 2 ) {\n av_log ( avctx , AV_LOG_ERROR , \"unsupported header version: %d\\n\" , version ) ;\n return AVERROR_INVALIDDATA ;\n }\n width = AV_RB16 ( buf + 8 ) ;\n height = AV_RB16 ( buf + 10 ) ;\n if ( width != avctx -> width || height != avctx -> height ) {\n av_log ( avctx , AV_LOG_ERROR , \"picture dimension changed: old: %d x %d, new: %d x %d\\n\" , avctx -> width , avctx -> height , width , height ) ;\n return AVERROR_INVALIDDATA ;\n }\n ctx -> frame_type = ( buf [ 12 ] >> 2 ) & 3 ;\n if ( ctx -> frame_type > 2 ) {\n av_log ( avctx , AV_LOG_ERROR , \"unsupported frame type: %d\\n\" , ctx -> frame_type ) ;\n return AVERROR_INVALIDDATA ;\n }\n ctx -> chroma_factor = ( buf [ 12 ] >> 6 ) & 3 ;\n ctx -> mb_chroma_factor = ctx -> chroma_factor + 2 ;\n ctx -> num_chroma_blocks = ( 1 << ctx -> chroma_factor ) >> 1 ;\n switch ( ctx -> chroma_factor ) {\n case 2 : avctx -> pix_fmt = AV_PIX_FMT_YUV422P10 ;\n break ;\n case 3 : avctx -> pix_fmt = AV_PIX_FMT_YUV444P10 ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"unsupported picture format: %d\\n\" , ctx -> pic_format ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ctx -> scantable_type != ctx -> frame_type ) {\n if ( ! ctx -> frame_type ) ff_init_scantable ( ctx -> dsp . idct_permutation , & ctx -> scantable , ff_prores_progressive_scan ) ;\n else ff_init_scantable ( ctx -> dsp . idct_permutation , & ctx -> scantable , ff_prores_interlaced_scan ) ;\n ctx -> scantable_type = ctx -> frame_type ;\n }\n if ( ctx -> frame_type ) {\n ctx -> picture . interlaced_frame = 1 ;\n ctx -> picture . top_field_first = ctx -> frame_type & 1 ;\n }\n else {\n ctx -> picture . interlaced_frame = 0 ;\n }\n avctx -> color_primaries = buf [ 14 ] ;\n avctx -> color_trc = buf [ 15 ] ;\n avctx -> colorspace = buf [ 16 ] ;\n ctx -> alpha_info = buf [ 17 ] & 0xf ;\n if ( ctx -> alpha_info ) av_log_missing_feature ( avctx , \"Alpha channel\" , 0 ) ;\n ctx -> qmat_changed = 0 ;\n ptr = buf + 20 ;\n flags = buf [ 19 ] ;\n if ( flags & 2 ) {\n if ( ptr - buf > hdr_size - 64 ) {\n av_log ( avctx , AV_LOG_ERROR , \"header data too small\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( memcmp ( ctx -> qmat_luma , ptr , 64 ) ) {\n memcpy ( ctx -> qmat_luma , ptr , 64 ) ;\n ctx -> qmat_changed = 1 ;\n }\n ptr += 64 ;\n }\n else {\n memset ( ctx -> qmat_luma , 4 , 64 ) ;\n ctx -> qmat_changed = 1 ;\n }\n if ( flags & 1 ) {\n if ( ptr - buf > hdr_size - 64 ) {\n av_log ( avctx , AV_LOG_ERROR , \"header data too small\\n\" ) ;\n return - 1 ;\n }\n if ( memcmp ( ctx -> qmat_chroma , ptr , 64 ) ) {\n memcpy ( ctx -> qmat_chroma , ptr , 64 ) ;\n ctx -> qmat_changed = 1 ;\n }\n }\n else {\n memset ( ctx -> qmat_chroma , 4 , 64 ) ;\n ctx -> qmat_changed = 1 ;\n }\n return hdr_size ;\n }"}
{"idx": 4733, "target": 0, "func": "static int dissect_type_bitmap_nxt ( proto_tree * rr_tree , tvbuff_t * tvb , int cur_offset , int rr_len ) {\n int mask ;\n int i , initial_offset , rr_type ;\n guint8 bits ;\n initial_offset = cur_offset ;\n rr_type = 0 ;\n while ( rr_len != 0 ) {\n bits = tvb_get_guint8 ( tvb , cur_offset ) ;\n mask = 1 << 7 ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n if ( bits & mask ) {\n proto_tree_add_uint_format ( rr_tree , hf_dns_rr_type , tvb , cur_offset , 1 , rr_type , \"RR type in bit map: %s\" , val_to_str_ext ( rr_type , & dns_types_description_vals_ext , \"Unknown (%d)\" ) ) ;\n }\n mask >>= 1 ;\n rr_type ++ ;\n }\n cur_offset += 1 ;\n rr_len -= 1 ;\n }\n return ( initial_offset - cur_offset ) ;\n }"}
{"idx": 4734, "target": 0, "func": "int find_set ( REP_SETS * sets , REP_SET * find ) {\n uint i ;\n for ( i = 0 ;\n i < sets -> count - 1 ;\n i ++ ) {\n if ( ! cmp_bits ( sets -> set + i , find ) ) {\n free_last_set ( sets ) ;\n return i ;\n }\n }\n return i ;\n }"}
{"idx": 4735, "target": 0, "func": "static int SpoolssGetForm_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ;\n proto_item * hidden_item ;\n guint32 level ;\n char * name ;\n hidden_item = proto_tree_add_uint ( tree , hf_form , tvb , offset , 0 , 1 ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , NULL , NULL , FALSE , FALSE ) ;\n offset = dissect_ndr_cvstring ( tvb , offset , pinfo , tree , di , drep , sizeof ( guint16 ) , hf_form_name , TRUE , & name ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , name ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_form_level , & level ) ;\n if ( ! pinfo -> fd -> flags . visited ) {\n dcv -> se_data = GUINT_TO_POINTER ( ( int ) level ) ;\n }\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", level %d\" , level ) ;\n offset = dissect_spoolss_buffer ( tvb , offset , pinfo , tree , di , drep , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_offered , NULL ) ;\n return offset ;\n }"}
{"idx": 4736, "target": 1, "func": "static void _Latin1ToUnicodeWithOffsets ( UConverterToUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n const uint8_t * source ;\n UChar * target ;\n int32_t targetCapacity , length ;\n int32_t * offsets ;\n int32_t sourceIndex ;\n source = ( const uint8_t * ) pArgs -> source ;\n target = pArgs -> target ;\n targetCapacity = ( int32_t ) ( pArgs -> targetLimit - pArgs -> target ) ;\n offsets = pArgs -> offsets ;\n sourceIndex = 0 ;\n length = ( int32_t ) ( ( const uint8_t * ) pArgs -> sourceLimit - source ) ;\n if ( length <= targetCapacity ) {\n targetCapacity = length ;\n }\n else {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n length = targetCapacity ;\n }\n if ( targetCapacity >= 8 ) {\n int32_t count , loops ;\n loops = count = targetCapacity >> 3 ;\n length = targetCapacity &= 0x7 ;\n do {\n target [ 0 ] = source [ 0 ] ;\n target [ 1 ] = source [ 1 ] ;\n target [ 2 ] = source [ 2 ] ;\n target [ 3 ] = source [ 3 ] ;\n target [ 4 ] = source [ 4 ] ;\n target [ 5 ] = source [ 5 ] ;\n target [ 6 ] = source [ 6 ] ;\n target [ 7 ] = source [ 7 ] ;\n target += 8 ;\n source += 8 ;\n }\n while ( -- count > 0 ) ;\n if ( offsets != NULL ) {\n do {\n offsets [ 0 ] = sourceIndex ++ ;\n offsets [ 1 ] = sourceIndex ++ ;\n offsets [ 2 ] = sourceIndex ++ ;\n offsets [ 3 ] = sourceIndex ++ ;\n offsets [ 4 ] = sourceIndex ++ ;\n offsets [ 5 ] = sourceIndex ++ ;\n offsets [ 6 ] = sourceIndex ++ ;\n offsets [ 7 ] = sourceIndex ++ ;\n offsets += 8 ;\n }\n while ( -- loops > 0 ) ;\n }\n }\n while ( targetCapacity > 0 ) {\n * target ++ = * source ++ ;\n -- targetCapacity ;\n }\n pArgs -> source = ( const char * ) source ;\n pArgs -> target = target ;\n if ( offsets != NULL ) {\n while ( length > 0 ) {\n * offsets ++ = sourceIndex ++ ;\n -- length ;\n }\n pArgs -> offsets = offsets ;\n }\n }"}
{"idx": 4737, "target": 0, "func": "static void inject_user ( void ) {\n size_t len ;\n len = strescape ( ( char * ) injectbuf , ( char * ) injectbuf , strlen ( injectbuf ) + 1 ) ;\n if ( wdg_c1 -> flags & WDG_OBJ_FOCUSED ) {\n user_inject ( injectbuf , len , curr_conn , 1 ) ;\n }\n else if ( wdg_c2 -> flags & WDG_OBJ_FOCUSED ) {\n user_inject ( injectbuf , len , curr_conn , 2 ) ;\n }\n }"}
{"idx": 4738, "target": 0, "func": "static inline void set_bits ( uint8_t * tab , int start , int len ) {\n int end , mask , end1 ;\n end = start + len ;\n tab += start >> 3 ;\n mask = 0xff << ( start & 7 ) ;\n if ( ( start & ~ 7 ) == ( end & ~ 7 ) ) {\n if ( start < end ) {\n mask &= ~ ( 0xff << ( end & 7 ) ) ;\n * tab |= mask ;\n }\n }\n else {\n * tab ++ |= mask ;\n start = ( start + 8 ) & ~ 7 ;\n end1 = end & ~ 7 ;\n while ( start < end1 ) {\n * tab ++ = 0xff ;\n start += 8 ;\n }\n if ( start < end ) {\n mask = ~ ( 0xff << ( end & 7 ) ) ;\n * tab |= mask ;\n }\n }\n }"}
{"idx": 4739, "target": 0, "func": "static int decode_pal_v2 ( MSS12Context * ctx , const uint8_t * buf , int buf_size ) {\n int i , ncol ;\n uint32_t * pal = ctx -> pal + 256 - ctx -> free_colours ;\n if ( ! ctx -> free_colours ) return 0 ;\n ncol = * buf ++ ;\n if ( ncol > ctx -> free_colours || buf_size < 2 + ncol * 3 ) return AVERROR_INVALIDDATA ;\n for ( i = 0 ;\n i < ncol ;\n i ++ ) * pal ++ = AV_RB24 ( buf + 3 * i ) ;\n return 1 + ncol * 3 ;\n }"}
{"idx": 4740, "target": 0, "func": "SPL_METHOD ( FilesystemIterator , key ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n if ( SPL_FILE_DIR_KEY ( intern , SPL_FILE_DIR_KEY_AS_FILENAME ) ) {\n RETURN_STRING ( intern -> u . dir . entry . d_name , 1 ) ;\n }\n else {\n spl_filesystem_object_get_file_name ( intern TSRMLS_CC ) ;\n RETURN_STRINGL ( intern -> file_name , intern -> file_name_len , 1 ) ;\n }\n }"}
{"idx": 4741, "target": 0, "func": "int gs_copypage ( gs_gstate * pgs ) {\n return gs_output_page ( pgs , 1 , 0 ) ;\n }"}
{"idx": 4742, "target": 0, "func": "int gdev_mem_data_size ( const gx_device_memory * dev , int width , int height , ulong * psize ) {\n ulong bits_size ;\n ulong line_ptrs_size = gdev_mem_line_ptrs_size ( dev , width , height ) ;\n if ( gdev_mem_bits_size ( dev , width , height , & bits_size ) < 0 || bits_size > max_ulong - line_ptrs_size ) return_error ( gs_error_VMerror ) ;\n * psize = bits_size + line_ptrs_size ;\n return 0 ;\n }"}
{"idx": 4743, "target": 0, "func": "TEST_F ( TemplateURLTest , ReplaceCurrentPageUrl ) {\n struct TestData {\n const base : : string16 search_term ;\n const std : : string current_page_url ;\n const std : : string url ;\n const std : : string expected_result ;\n }\n test_data [ ] = {\n {\n ASCIIToUTF16 ( \"foo\" ) , \"http://www.google.com/\" , \"{\ngoogle:baseURL}\n?{\nsearchTerms}\n&{\ngoogle:currentPageUrl}\n\" , \"http://www.google.com/?foo&url=http%3A%2F%2Fwww.google.com%2F&\" }\n , {\n ASCIIToUTF16 ( \"foo\" ) , \"\" , \"{\ngoogle:baseURL}\n?{\nsearchTerms}\n&{\ngoogle:currentPageUrl}\n\" , \"http://www.google.com/?foo&\" }\n , {\n ASCIIToUTF16 ( \"foo\" ) , \"http://g.com/+-/*&=\" , \"{\ngoogle:baseURL}\n?{\nsearchTerms}\n&{\ngoogle:currentPageUrl}\n\" , \"http://www.google.com/?foo&url=http%3A%2F%2Fg.com%2F%2B-%2F*%26%3D&\" }\n , }\n ;\n TemplateURLData data ;\n data . input_encodings . push_back ( \"UTF-8\" ) ;\n for ( size_t i = 0 ;\n i < arraysize ( test_data ) ;\n ++ i ) {\n data . SetURL ( test_data [ i ] . url ) ;\n TemplateURL url ( data ) ;\n EXPECT_TRUE ( url . url_ref ( ) . IsValid ( search_terms_data_ ) ) ;\n ASSERT_TRUE ( url . url_ref ( ) . SupportsReplacement ( search_terms_data_ ) ) ;\n TemplateURLRef : : SearchTermsArgs search_terms_args ( test_data [ i ] . search_term ) ;\n search_terms_args . current_page_url = test_data [ i ] . current_page_url ;\n GURL result ( url . url_ref ( ) . ReplaceSearchTerms ( search_terms_args , search_terms_data_ ) ) ;\n ASSERT_TRUE ( result . is_valid ( ) ) ;\n EXPECT_EQ ( test_data [ i ] . expected_result , result . spec ( ) ) ;\n }\n }"}
{"idx": 4744, "target": 0, "func": "static void * Type_Dictionary_Dup ( struct _cms_typehandler_struct * self , const void * Ptr , cmsUInt32Number n ) {\n return ( void * ) cmsDictDup ( ( cmsHANDLE ) Ptr ) ;\n cmsUNUSED_PARAMETER ( n ) ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 4745, "target": 0, "func": "static void ohci_die ( OHCIState * ohci ) {\n OHCIPCIState * dev = container_of ( ohci , OHCIPCIState , state ) ;\n trace_usb_ohci_die ( ) ;\n ohci_set_interrupt ( ohci , OHCI_INTR_UE ) ;\n ohci_bus_stop ( ohci ) ;\n pci_set_word ( dev -> parent_obj . config + PCI_STATUS , PCI_STATUS_DETECTED_PARITY ) ;\n }"}
{"idx": 4746, "target": 1, "func": "static void _UTF7Reset ( UConverter * cnv , UConverterResetChoice choice ) {\n if ( choice <= UCNV_RESET_TO_UNICODE ) {\n cnv -> toUnicodeStatus = 0x1000000 ;\n cnv -> toULength = 0 ;\n }\n if ( choice != UCNV_RESET_TO_UNICODE ) {\n cnv -> fromUnicodeStatus = ( cnv -> fromUnicodeStatus & 0xf0000000 ) | 0x1000000 ;\n }\n }"}
{"idx": 4747, "target": 0, "func": "static zend_object_value spl_dllist_object_new ( zend_class_entry * class_type TSRMLS_DC ) {\n spl_dllist_object * tmp ;\n return spl_dllist_object_new_ex ( class_type , & tmp , NULL , 0 TSRMLS_CC ) ;\n }"}
{"idx": 4748, "target": 0, "func": "int xmlHashAddEntry2 ( xmlHashTablePtr table , const xmlChar * name , const xmlChar * name2 , void * userdata ) {\n return ( xmlHashAddEntry3 ( table , name , name2 , NULL , userdata ) ) ;\n }"}
{"idx": 4749, "target": 0, "func": "TSReturnCode TSHttpTxnConfigIntSet ( TSHttpTxn txnp , TSOverridableConfigKey conf , TSMgmtInt value ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * s = reinterpret_cast < HttpSM * > ( txnp ) ;\n OverridableDataType type ;\n s -> t_state . setup_per_txn_configs ( ) ;\n void * dest = _conf_to_memberp ( conf , s -> t_state . txn_conf , & type ) ;\n if ( ! dest ) {\n return TS_ERROR ;\n }\n switch ( type ) {\n case OVERRIDABLE_TYPE_INT : * ( static_cast < TSMgmtInt * > ( dest ) ) = value ;\n break ;\n case OVERRIDABLE_TYPE_BYTE : * ( static_cast < TSMgmtByte * > ( dest ) ) = static_cast < TSMgmtByte > ( value ) ;\n break ;\n default : return TS_ERROR ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 4750, "target": 0, "func": "static ssize_t net_slirp_receive ( NetClientState * nc , const uint8_t * buf , size_t size ) {\n SlirpState * s = DO_UPCAST ( SlirpState , nc , nc ) ;\n slirp_input ( s -> slirp , buf , size ) ;\n return size ;\n }"}
{"idx": 4751, "target": 0, "func": "static ssize_t _warc_rdlen ( const char * buf , size_t bsz ) {\n static const char _key [ ] = \"\\r\\nContent-Length:\" ;\n const char * val , * eol ;\n char * on = NULL ;\n long int len ;\n if ( ( val = xmemmem ( buf , bsz , _key , sizeof ( _key ) - 1U ) ) == NULL ) {\n return - 1 ;\n }\n val += sizeof ( _key ) - 1U ;\n if ( ( eol = _warc_find_eol ( val , buf + bsz - val ) ) == NULL ) {\n return - 1 ;\n }\n while ( val < eol && ( * val == ' ' || * val == '\\t' ) ) val ++ ;\n if ( ! isdigit ( ( unsigned char ) * val ) ) return - 1 ;\n len = strtol ( val , & on , 10 ) ;\n if ( on != eol ) {\n return - 1 ;\n }\n return ( size_t ) len ;\n }"}
{"idx": 4752, "target": 0, "func": "int dtls1_get_queue_priority ( unsigned short seq , int is_ccs ) {\n return seq * 2 - is_ccs ;\n }"}
{"idx": 4753, "target": 0, "func": "REGRESSION_TEST ( SDK_API_TSSslServerContextCreate ) ( RegressionTest * test , int level , int * pstatus ) {\n TSSslContext ctx ;\n ctx = TSSslServerContextCreate ( ) ;\n * pstatus = ctx ? REGRESSION_TEST_PASSED : REGRESSION_TEST_FAILED ;\n TSSslContextDestroy ( ctx ) ;\n }"}
{"idx": 4754, "target": 0, "func": "static void mpc8544_guts_initfn ( Object * obj ) {\n SysBusDevice * d = SYS_BUS_DEVICE ( obj ) ;\n GutsState * s = MPC8544_GUTS ( obj ) ;\n memory_region_init_io ( & s -> iomem , OBJECT ( s ) , & mpc8544_guts_ops , s , \"mpc8544.guts\" , MPC8544_GUTS_MMIO_SIZE ) ;\n sysbus_init_mmio ( d , & s -> iomem ) ;\n }"}
{"idx": 4755, "target": 0, "func": "static void dissect_usb_midi_event ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * usb_audio_tree , proto_tree * parent_tree , gint offset ) {\n guint8 code ;\n guint8 cable ;\n gboolean save_fragmented ;\n proto_tree * tree = NULL ;\n col_set_str ( pinfo -> cinfo , COL_INFO , \"USB-MIDI Event Packets\" ) ;\n code = tvb_get_guint8 ( tvb , offset ) ;\n cable = ( code & 0xF0 ) >> 4 ;\n code &= 0x0F ;\n if ( parent_tree ) {\n proto_item * ti ;\n ti = proto_tree_add_protocol_format ( usb_audio_tree , proto_usb_audio , tvb , offset , 4 , \"USB Midi Event Packet\" ) ;\n tree = proto_item_add_subtree ( ti , ett_usb_audio ) ;\n proto_tree_add_item ( tree , hf_midi_cable_number , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_midi_code_index , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_midi_event , tvb , offset + 1 , 3 , ENC_BIG_ENDIAN ) ;\n }\n save_fragmented = pinfo -> fragmented ;\n if ( is_sysex_code ( code ) ) {\n tvbuff_t * new_tvb = NULL ;\n fragment_head * frag_sysex_msg = NULL ;\n pinfo -> fragmented = TRUE ;\n if ( code == 0x04 ) {\n frag_sysex_msg = fragment_add_seq_next ( & midi_data_reassembly_table , tvb , offset + 1 , pinfo , cable , NULL , 3 , TRUE ) ;\n }\n else {\n frag_sysex_msg = fragment_add_seq_next ( & midi_data_reassembly_table , tvb , offset + 1 , pinfo , cable , NULL , ( gint ) ( code - 4 ) , FALSE ) ;\n }\n if ( is_last_sysex_packet_in_tvb ( tvb , offset ) ) {\n new_tvb = process_reassembled_data ( tvb , offset + 1 , pinfo , \"Reassembled Message\" , frag_sysex_msg , & sysex_msg_frag_items , NULL , usb_audio_tree ) ;\n if ( code != 0x04 ) {\n col_append_str ( pinfo -> cinfo , COL_INFO , \" (SysEx Reassembled)\" ) ;\n }\n else {\n col_append_str ( pinfo -> cinfo , COL_INFO , \" (SysEx fragment)\" ) ;\n }\n if ( new_tvb ) {\n call_dissector ( sysex_handle , new_tvb , pinfo , parent_tree ) ;\n }\n }\n }\n pinfo -> fragmented = save_fragmented ;\n }"}
{"idx": 4756, "target": 0, "func": "int vp9_rc_bits_per_mb ( FRAME_TYPE frame_type , int qindex , double correction_factor , vpx_bit_depth_t bit_depth ) {\n const double q = vp9_convert_qindex_to_q ( qindex , bit_depth ) ;\n int enumerator = frame_type == KEY_FRAME ? 2700000 : 1800000 ;\n enumerator += ( int ) ( enumerator * q ) >> 12 ;\n return ( int ) ( enumerator * correction_factor / q ) ;\n }"}
{"idx": 4757, "target": 0, "func": "static void version ( ) {\n printf ( \"icucal version %s (ICU version %s), created by Stephen F. Booth.\\n\" , CAL_VERSION , U_ICU_VERSION ) ;\n puts ( U_COPYRIGHT_STRING ) ;\n }"}
{"idx": 4758, "target": 0, "func": "static void report_preparing_count_progress ( CommonJob * job , SourceInfo * source_info ) {\n char * s ;\n switch ( source_info -> op ) {\n default : case OP_KIND_COPY : {\n s = f ( ngettext ( \"Preparing to copy %'d file (%S)\" , \"Preparing to copy %'d files (%S)\" , source_info -> num_files ) , source_info -> num_files , source_info -> num_bytes ) ;\n }\n break ;\n case OP_KIND_MOVE : {\n s = f ( ngettext ( \"Preparing to move %'d file (%S)\" , \"Preparing to move %'d files (%S)\" , source_info -> num_files ) , source_info -> num_files , source_info -> num_bytes ) ;\n }\n break ;\n case OP_KIND_DELETE : {\n s = f ( ngettext ( \"Preparing to delete %'d file (%S)\" , \"Preparing to delete %'d files (%S)\" , source_info -> num_files ) , source_info -> num_files , source_info -> num_bytes ) ;\n }\n break ;\n case OP_KIND_TRASH : {\n s = f ( ngettext ( \"Preparing to trash %'d file\" , \"Preparing to trash %'d files\" , source_info -> num_files ) , source_info -> num_files ) ;\n }\n break ;\n case OP_KIND_COMPRESS : s = f ( ngettext ( \"Preparing to compress %'d file\" , \"Preparing to compress %'d files\" , source_info -> num_files ) , source_info -> num_files ) ;\n }\n nautilus_progress_info_take_details ( job -> progress , s ) ;\n nautilus_progress_info_pulse_progress ( job -> progress ) ;\n }"}
{"idx": 4759, "target": 0, "func": "void TSHttpSsnDebugSet ( TSHttpSsn ssnp , int on ) {\n sdk_assert ( sdk_sanity_check_http_ssn ( ssnp ) == TS_SUCCESS ) ;\n ( reinterpret_cast < ProxyClientSession * > ( ssnp ) ) -> debug_on = on ;\n }"}
{"idx": 4760, "target": 0, "func": "static void IRQ_local_pipe ( OpenPICState * opp , int n_CPU , int n_IRQ , bool active , bool was_active ) {\n IRQDest * dst ;\n IRQSource * src ;\n int priority ;\n dst = & opp -> dst [ n_CPU ] ;\n src = & opp -> src [ n_IRQ ] ;\n DPRINTF ( \"%s: IRQ %d active %d was %d\\n\" , __func__ , n_IRQ , active , was_active ) ;\n if ( src -> output != OPENPIC_OUTPUT_INT ) {\n DPRINTF ( \"%s: output %d irq %d active %d was %d count %d\\n\" , __func__ , src -> output , n_IRQ , active , was_active , dst -> outputs_active [ src -> output ] ) ;\n if ( active ) {\n if ( ! was_active && dst -> outputs_active [ src -> output ] ++ == 0 ) {\n DPRINTF ( \"%s: Raise OpenPIC output %d cpu %d irq %d\\n\" , __func__ , src -> output , n_CPU , n_IRQ ) ;\n qemu_irq_raise ( dst -> irqs [ src -> output ] ) ;\n }\n }\n else {\n if ( was_active && -- dst -> outputs_active [ src -> output ] == 0 ) {\n DPRINTF ( \"%s: Lower OpenPIC output %d cpu %d irq %d\\n\" , __func__ , src -> output , n_CPU , n_IRQ ) ;\n qemu_irq_lower ( dst -> irqs [ src -> output ] ) ;\n }\n }\n return ;\n }\n priority = IVPR_PRIORITY ( src -> ivpr ) ;\n if ( active ) {\n IRQ_setbit ( & dst -> raised , n_IRQ ) ;\n }\n else {\n IRQ_resetbit ( & dst -> raised , n_IRQ ) ;\n }\n IRQ_check ( opp , & dst -> raised ) ;\n if ( active && priority <= dst -> ctpr ) {\n DPRINTF ( \"%s: IRQ %d priority %d too low for ctpr %d on CPU %d\\n\" , __func__ , n_IRQ , priority , dst -> ctpr , n_CPU ) ;\n active = 0 ;\n }\n if ( active ) {\n if ( IRQ_get_next ( opp , & dst -> servicing ) >= 0 && priority <= dst -> servicing . priority ) {\n DPRINTF ( \"%s: IRQ %d is hidden by servicing IRQ %d on CPU %d\\n\" , __func__ , n_IRQ , dst -> servicing . next , n_CPU ) ;\n }\n else {\n DPRINTF ( \"%s: Raise OpenPIC INT output cpu %d irq %d/%d\\n\" , __func__ , n_CPU , n_IRQ , dst -> raised . next ) ;\n qemu_irq_raise ( opp -> dst [ n_CPU ] . irqs [ OPENPIC_OUTPUT_INT ] ) ;\n }\n }\n else {\n IRQ_get_next ( opp , & dst -> servicing ) ;\n if ( dst -> raised . priority > dst -> ctpr && dst -> raised . priority > dst -> servicing . priority ) {\n DPRINTF ( \"%s: IRQ %d inactive, IRQ %d prio %d above %d/%d, CPU %d\\n\" , __func__ , n_IRQ , dst -> raised . next , dst -> raised . priority , dst -> ctpr , dst -> servicing . priority , n_CPU ) ;\n }\n else {\n DPRINTF ( \"%s: IRQ %d inactive, current prio %d/%d, CPU %d\\n\" , __func__ , n_IRQ , dst -> ctpr , dst -> servicing . priority , n_CPU ) ;\n qemu_irq_lower ( opp -> dst [ n_CPU ] . irqs [ OPENPIC_OUTPUT_INT ] ) ;\n }\n }\n }"}
{"idx": 4761, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( HttpsEngagementPageLoadMetricsBrowserTest , Navigate_Both_NonHtmlMainResource ) {\n StartHttpServer ( ) ;\n StartHttpsServer ( false ) ;\n NavigateTwiceInTabAndClose ( http_test_server_ -> GetURL ( \"/circle.svg\" ) , https_test_server_ -> GetURL ( \"/circle.svg\" ) ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpEngagementHistogram , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementHistogram , 1 ) ;\n }"}
{"idx": 4762, "target": 0, "func": "SPL_METHOD ( RecursiveDirectoryIterator , getSubPath ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n if ( intern -> u . dir . sub_path ) {\n RETURN_STRINGL ( intern -> u . dir . sub_path , intern -> u . dir . sub_path_len , 1 ) ;\n }\n else {\n RETURN_STRINGL ( \"\" , 0 , 1 ) ;\n }\n }"}
{"idx": 4763, "target": 0, "func": "static void make_key_64 ( u_char * string , u_char * key ) {\n int i , seed = 0 ;\n for ( i = 0 ;\n string [ i ] ;\n i ++ ) {\n seed ^= ( string [ i ] << ( ( i & 0x03 ) * 8 ) ) ;\n }\n for ( i = 0 ;\n i < 5 * 4 ;\n i ++ ) {\n seed *= 0x000343fd ;\n seed += 0x00269ec3 ;\n key [ i ] = seed >> 16 ;\n }\n }"}
{"idx": 4764, "target": 0, "func": "static inline void SetPixelViaPixelInfo ( const Image * restrict image , const PixelInfo * restrict pixel_info , Quantum * restrict pixel ) {\n pixel [ image -> channel_map [ RedPixelChannel ] . offset ] = ClampToQuantum ( pixel_info -> red ) ;\n pixel [ image -> channel_map [ GreenPixelChannel ] . offset ] = ClampToQuantum ( pixel_info -> green ) ;\n pixel [ image -> channel_map [ BluePixelChannel ] . offset ] = ClampToQuantum ( pixel_info -> blue ) ;\n if ( image -> channel_map [ BlackPixelChannel ] . traits != UndefinedPixelTrait ) pixel [ image -> channel_map [ BlackPixelChannel ] . offset ] = ClampToQuantum ( pixel_info -> black ) ;\n if ( image -> channel_map [ AlphaPixelChannel ] . traits != UndefinedPixelTrait ) pixel [ image -> channel_map [ AlphaPixelChannel ] . offset ] = pixel_info -> alpha_trait == UndefinedPixelTrait ? OpaqueAlpha : ClampToQuantum ( pixel_info -> alpha ) ;\n }"}
{"idx": 4765, "target": 0, "func": "static int decode_residuals ( FLACContext * s , int32_t * decoded , int pred_order ) {\n int i , tmp , partition , method_type , rice_order ;\n int rice_bits , rice_esc ;\n int samples ;\n method_type = get_bits ( & s -> gb , 2 ) ;\n if ( method_type > 1 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"illegal residual coding method %d\\n\" , method_type ) ;\n return - 1 ;\n }\n rice_order = get_bits ( & s -> gb , 4 ) ;\n samples = s -> blocksize >> rice_order ;\n if ( pred_order > samples ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"invalid predictor order: %i > %i\\n\" , pred_order , samples ) ;\n return - 1 ;\n }\n rice_bits = 4 + method_type ;\n rice_esc = ( 1 << rice_bits ) - 1 ;\n decoded += pred_order ;\n i = pred_order ;\n for ( partition = 0 ;\n partition < ( 1 << rice_order ) ;\n partition ++ ) {\n tmp = get_bits ( & s -> gb , rice_bits ) ;\n if ( tmp == rice_esc ) {\n tmp = get_bits ( & s -> gb , 5 ) ;\n for ( ;\n i < samples ;\n i ++ ) * decoded ++ = get_sbits_long ( & s -> gb , tmp ) ;\n }\n else {\n for ( ;\n i < samples ;\n i ++ ) {\n * decoded ++ = get_sr_golomb_flac ( & s -> gb , tmp , INT_MAX , 0 ) ;\n }\n }\n i = 0 ;\n }\n return 0 ;\n }"}
{"idx": 4766, "target": 0, "func": "static int selinux_netcache_avc_callback ( u32 event ) {\n if ( event == AVC_CALLBACK_RESET ) {\n sel_netif_flush ( ) ;\n sel_netnode_flush ( ) ;\n sel_netport_flush ( ) ;\n synchronize_net ( ) ;\n }\n return 0 ;\n }"}
{"idx": 4767, "target": 0, "func": "void proto_reg_handoff_diameter ( void ) {\n static gboolean Initialized = FALSE ;\n static range_t * diameter_tcp_port_range ;\n static range_t * diameter_sctp_port_range ;\n static range_t * diameter_udp_port_range ;\n if ( ! Initialized ) {\n diameter_sctp_handle = find_dissector ( \"diameter\" ) ;\n diameter_tcp_handle = new_create_dissector_handle ( dissect_diameter_tcp , proto_diameter ) ;\n diameter_udp_handle = new_create_dissector_handle ( dissect_diameter , proto_diameter ) ;\n data_handle = find_dissector ( \"data\" ) ;\n eap_handle = find_dissector ( \"eap\" ) ;\n dissector_add_uint ( \"sctp.ppi\" , DIAMETER_PROTOCOL_ID , diameter_sctp_handle ) ;\n dissector_add_uint ( \"diameter.base\" , 1 , new_create_dissector_handle ( dissect_diameter_user_name , proto_diameter ) ) ;\n dissector_add_uint ( \"diameter.base\" , 97 , new_create_dissector_handle ( dissect_diameter_base_framed_ipv6_prefix , proto_diameter ) ) ;\n dissector_add_uint ( \"diameter.base\" , 265 , new_create_dissector_handle ( dissect_diameter_vendor_id , proto_diameter ) ) ;\n dissector_add_uint ( \"diameter.base\" , 266 , new_create_dissector_handle ( dissect_diameter_vendor_id , proto_diameter ) ) ;\n dissector_add_uint ( \"diameter.base\" , 443 , new_create_dissector_handle ( dissect_diameter_subscription_id , proto_diameter ) ) ;\n dissector_add_uint ( \"diameter.base\" , 450 , new_create_dissector_handle ( dissect_diameter_subscription_id_type , proto_diameter ) ) ;\n dissector_add_uint ( \"diameter.base\" , 444 , new_create_dissector_handle ( dissect_diameter_subscription_id_data , proto_diameter ) ) ;\n dissector_add_uint ( \"diameter.base\" , 462 , new_create_dissector_handle ( dissect_diameter_eap_payload , proto_diameter ) ) ;\n dissector_add_uint ( \"diameter.base\" , 463 , new_create_dissector_handle ( dissect_diameter_eap_payload , proto_diameter ) ) ;\n dissector_add_uint ( \"diameter.vnd_exp_res\" , VENDOR_THE3GPP2 , new_create_dissector_handle ( dissect_diameter_3gpp2_exp_res , proto_diameter ) ) ;\n Initialized = TRUE ;\n }\n else {\n dissector_delete_uint_range ( \"tcp.port\" , diameter_tcp_port_range , diameter_tcp_handle ) ;\n dissector_delete_uint_range ( \"sctp.port\" , diameter_sctp_port_range , diameter_sctp_handle ) ;\n dissector_delete_uint_range ( \"udp.port\" , diameter_udp_port_range , diameter_udp_handle ) ;\n g_free ( diameter_tcp_port_range ) ;\n g_free ( diameter_sctp_port_range ) ;\n g_free ( diameter_udp_port_range ) ;\n }\n diameter_tcp_port_range = range_copy ( global_diameter_tcp_port_range ) ;\n diameter_sctp_port_range = range_copy ( global_diameter_sctp_port_range ) ;\n diameter_udp_port_range = range_copy ( global_diameter_udp_port_range ) ;\n dissector_add_uint_range ( \"tcp.port\" , diameter_tcp_port_range , diameter_tcp_handle ) ;\n dissector_add_uint_range ( \"sctp.port\" , diameter_sctp_port_range , diameter_sctp_handle ) ;\n dissector_add_uint_range ( \"udp.port\" , diameter_udp_port_range , diameter_udp_handle ) ;\n exported_pdu_tap = find_tap_id ( EXPORT_PDU_TAP_NAME_LAYER_7 ) ;\n }"}
{"idx": 4768, "target": 0, "func": "static const char * flat_escape_key_str ( AVBPrint * dst , const char * src , const char sep ) {\n const char * p ;\n for ( p = src ;\n * p ;\n p ++ ) {\n if ( ! ( ( * p >= '0' && * p <= '9' ) || ( * p >= 'a' && * p <= 'z' ) || ( * p >= 'A' && * p <= 'Z' ) ) ) av_bprint_chars ( dst , '_' , 1 ) ;\n else av_bprint_chars ( dst , * p , 1 ) ;\n }\n return dst -> str ;\n }"}
{"idx": 4769, "target": 0, "func": "static void ide_nop_restart ( void * opaque , int x , RunState y ) {\n }"}
{"idx": 4770, "target": 0, "func": "my_bool mysqld_get_one_option ( int optid , const struct my_option * opt __attribute__ ( ( unused ) ) , char * argument ) {\n switch ( optid ) {\n case '#' : # ifndef DBUG_OFF if ( ! argument ) argument = ( char * ) default_dbug_option ;\n if ( argument [ 0 ] == '0' && ! argument [ 1 ] ) {\n DEBUGGER_OFF ;\n break ;\n }\n DEBUGGER_ON ;\n if ( argument [ 0 ] == '1' && ! argument [ 1 ] ) break ;\n DBUG_SET_INITIAL ( argument ) ;\n opt_endinfo = 1 ;\n # else sql_print_warning ( \"'%s' is disabled in this build\" , opt -> name ) ;\n # endif break ;\n case OPT_DEPRECATED_OPTION : sql_print_warning ( \"'%s' is deprecated. It does nothing and exists only \" \"for compatiblity with old my.cnf files.\" , opt -> name ) ;\n break ;\n case 'a' : global_system_variables . sql_mode = MODE_ANSI ;\n global_system_variables . tx_isolation = ISO_SERIALIZABLE ;\n break ;\n case 'b' : strmake_buf ( mysql_home , argument ) ;\n break ;\n case 'C' : if ( default_collation_name == compiled_default_collation_name ) default_collation_name = 0 ;\n break ;\n case 'l' : WARN_DEPRECATED ( NULL , 7 , 0 , \"--log\" , \"'--general-log'/'--general-log-file'\" ) ;\n opt_log = 1 ;\n break ;\n case 'h' : strmake_buf ( mysql_real_data_home , argument ) ;\n mysql_real_data_home_ptr = mysql_real_data_home ;\n break ;\n case 'u' : if ( ! mysqld_user || ! strcmp ( mysqld_user , argument ) ) mysqld_user = argument ;\n else sql_print_warning ( \"Ignoring user change to '%s' because the user was set to '%s' earlier on the command line\\n\" , argument , mysqld_user ) ;\n break ;\n case 'L' : strmake_buf ( lc_messages_dir , argument ) ;\n break ;\n case OPT_BINLOG_FORMAT : binlog_format_used = true ;\n break ;\n # include < sslopt - case . h > # ifndef EMBEDDED_LIBRARY case 'V' : print_version ( ) ;\n opt_abort = 1 ;\n break ;\n # endif case 'W' : if ( ! argument ) global_system_variables . log_warnings ++ ;\n else if ( argument == disabled_my_option ) global_system_variables . log_warnings = 0L ;\n else global_system_variables . log_warnings = atoi ( argument ) ;\n break ;\n case 'T' : test_flags = argument ? ( uint ) atoi ( argument ) : 0 ;\n opt_endinfo = 1 ;\n break ;\n case OPT_THREAD_CONCURRENCY : WARN_DEPRECATED_NO_REPLACEMENT ( NULL , \"THREAD_CONCURRENCY\" ) ;\n break ;\n case ( int ) OPT_ISAM_LOG : opt_myisam_log = 1 ;\n break ;\n case ( int ) OPT_BIN_LOG : opt_bin_log = test ( argument != disabled_my_option ) ;\n opt_bin_log_used = 1 ;\n break ;\n case ( int ) OPT_LOG_BASENAME : {\n if ( opt_log_basename [ 0 ] == 0 || strchr ( opt_log_basename , FN_EXTCHAR ) || strchr ( opt_log_basename , FN_LIBCHAR ) ) {\n sql_print_error ( \"Wrong argument for --log-basename. It can't be empty or contain '.' or '\" FN_DIRSEP \"'\" ) ;\n return 1 ;\n }\n if ( log_error_file_ptr != disabled_my_option ) log_error_file_ptr = opt_log_basename ;\n make_default_log_name ( & opt_logname , \".log\" , false ) ;\n make_default_log_name ( & opt_slow_logname , \"-slow.log\" , false ) ;\n make_default_log_name ( & opt_bin_logname , \"-bin\" , true ) ;\n make_default_log_name ( & opt_binlog_index_name , \"-bin.index\" , true ) ;\n make_default_log_name ( & opt_relay_logname , \"-relay-bin\" , true ) ;\n make_default_log_name ( & opt_relaylog_index_name , \"-relay-bin.index\" , true ) ;\n pidfile_name_ptr = pidfile_name ;\n strmake ( pidfile_name , argument , sizeof ( pidfile_name ) - 5 ) ;\n strmov ( fn_ext ( pidfile_name ) , \".pid\" ) ;\n if ( ! opt_bin_logname || ! opt_relaylog_index_name || ! opt_logname || ! opt_slow_logname || ! pidfile_name_ptr ) return 1 ;\n break ;\n }\n # ifdef HAVE_REPLICATION case ( int ) OPT_REPLICATE_IGNORE_DB : {\n rpl_filter -> add_ignore_db ( argument ) ;\n break ;\n }\n case ( int ) OPT_REPLICATE_DO_DB : {\n rpl_filter -> add_do_db ( argument ) ;\n break ;\n }\n case ( int ) OPT_REPLICATE_REWRITE_DB : {\n char * key = argument , * p , * val ;\n if ( ! ( p = strstr ( argument , \"->\" ) ) ) {\n sql_print_error ( \"Bad syntax in replicate-rewrite-db - missing '->'!\\n\" ) ;\n return 1 ;\n }\n val = p -- ;\n while ( my_isspace ( mysqld_charset , * p ) && p > argument ) * p -- = 0 ;\n if ( p == argument ) {\n sql_print_error ( \"Bad syntax in replicate-rewrite-db - empty FROM db!\\n\" ) ;\n return 1 ;\n }\n * val = 0 ;\n val += 2 ;\n while ( * val && my_isspace ( mysqld_charset , * val ) ) val ++ ;\n if ( ! * val ) {\n sql_print_error ( \"Bad syntax in replicate-rewrite-db - empty TO db!\\n\" ) ;\n return 1 ;\n }\n rpl_filter -> add_db_rewrite ( key , val ) ;\n break ;\n }\n case ( int ) OPT_BINLOG_IGNORE_DB : {\n binlog_filter -> add_ignore_db ( argument ) ;\n break ;\n }\n case ( int ) OPT_BINLOG_DO_DB : {\n binlog_filter -> add_do_db ( argument ) ;\n break ;\n }\n case ( int ) OPT_REPLICATE_DO_TABLE : {\n if ( rpl_filter -> add_do_table ( argument ) ) {\n sql_print_error ( \"Could not add do table rule '%s'!\\n\" , argument ) ;\n return 1 ;\n }\n break ;\n }\n case ( int ) OPT_REPLICATE_WILD_DO_TABLE : {\n if ( rpl_filter -> add_wild_do_table ( argument ) ) {\n sql_print_error ( \"Could not add do table rule '%s'!\\n\" , argument ) ;\n return 1 ;\n }\n break ;\n }\n case ( int ) OPT_REPLICATE_WILD_IGNORE_TABLE : {\n if ( rpl_filter -> add_wild_ignore_table ( argument ) ) {\n sql_print_error ( \"Could not add ignore table rule '%s'!\\n\" , argument ) ;\n return 1 ;\n }\n break ;\n }\n case ( int ) OPT_REPLICATE_IGNORE_TABLE : {\n if ( rpl_filter -> add_ignore_table ( argument ) ) {\n sql_print_error ( \"Could not add ignore table rule '%s'!\\n\" , argument ) ;\n return 1 ;\n }\n break ;\n }\n # endif case ( int ) OPT_SLOW_QUERY_LOG : WARN_DEPRECATED ( NULL , 7 , 0 , \"--log-slow-queries\" , \"'--slow-query-log'/'--slow-query-log-file'\" ) ;\n opt_slow_log = 1 ;\n break ;\n case ( int ) OPT_SAFE : opt_specialflag |= SPECIAL_SAFE_MODE | SPECIAL_NO_NEW_FUNC ;\n delay_key_write_options = ( uint ) DELAY_KEY_WRITE_NONE ;\n myisam_recover_options = HA_RECOVER_DEFAULT ;\n ha_open_options &= ~ ( HA_OPEN_DELAY_KEY_WRITE ) ;\n # ifdef HAVE_QUERY_CACHE query_cache_size = 0 ;\n # endif sql_print_warning ( \"The syntax '--safe-mode' is deprecated and will be \" \"removed in a future release.\" ) ;\n break ;\n case ( int ) OPT_SKIP_PRIOR : opt_specialflag |= SPECIAL_NO_PRIOR ;\n sql_print_warning ( \"The --skip-thread-priority startup option is deprecated \" \"and will be removed in MySQL 7.0. This option has no effect \" \"as the implied behavior is already the default.\" ) ;\n break ;\n case ( int ) OPT_SKIP_HOST_CACHE : opt_specialflag |= SPECIAL_NO_HOST_CACHE ;\n break ;\n case ( int ) OPT_SKIP_RESOLVE : opt_skip_name_resolve = 1 ;\n opt_specialflag |= SPECIAL_NO_RESOLVE ;\n break ;\n case ( int ) OPT_WANT_CORE : test_flags |= TEST_CORE_ON_SIGNAL ;\n break ;\n case OPT_CONSOLE : if ( opt_console ) opt_error_log = 0 ;\n break ;\n case OPT_BOOTSTRAP : opt_noacl = opt_bootstrap = 1 ;\n break ;\n case OPT_SERVER_ID : server_id_supplied = 1 ;\n break ;\n case OPT_ONE_THREAD : thread_handling = SCHEDULER_NO_THREADS ;\n break ;\n case OPT_LOWER_CASE_TABLE_NAMES : lower_case_table_names_used = 1 ;\n break ;\n # if defined ( ENABLED_DEBUG_SYNC ) case OPT_DEBUG_SYNC_TIMEOUT : if ( ! argument ) {\n opt_debug_sync_timeout = DEBUG_SYNC_DEFAULT_WAIT_TIMEOUT ;\n }\n break ;\n # endif case OPT_ENGINE_CONDITION_PUSHDOWN : if ( global_system_variables . engine_condition_pushdown ) global_system_variables . optimizer_switch |= OPTIMIZER_SWITCH_ENGINE_CONDITION_PUSHDOWN ;\n else global_system_variables . optimizer_switch &= ~ OPTIMIZER_SWITCH_ENGINE_CONDITION_PUSHDOWN ;\n break ;\n case OPT_LOG_ERROR : if ( argument == NULL ) log_error_file_ptr = const_cast < char * > ( \"\" ) ;\n break ;\n case OPT_MAX_LONG_DATA_SIZE : max_long_data_size_used = true ;\n break ;\n case OPT_IGNORE_DB_DIRECTORY : opt_ignore_db_dirs = NULL ;\n if ( * argument == 0 ) ignore_db_dirs_reset ( ) ;\n else {\n if ( push_ignored_db_dir ( argument ) ) {\n sql_print_error ( \"Can't start server: \" \"cannot process --ignore-db-dir=%.*s\" , FN_REFLEN , argument ) ;\n return 1 ;\n }\n }\n break ;\n }\n return 0 ;\n }"}
{"idx": 4771, "target": 0, "func": "static int ilbc_encode_frame ( AVCodecContext * avctx , AVPacket * avpkt , const AVFrame * frame , int * got_packet_ptr ) {\n ILBCEncContext * s = avctx -> priv_data ;\n int ret ;\n if ( ( ret = ff_alloc_packet ( avpkt , 50 ) ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error getting output packet\\n\" ) ;\n return ret ;\n }\n WebRtcIlbcfix_EncodeImpl ( ( WebRtc_UWord16 * ) avpkt -> data , ( const WebRtc_Word16 * ) frame -> data [ 0 ] , & s -> encoder ) ;\n avpkt -> size = s -> encoder . no_of_bytes ;\n * got_packet_ptr = 1 ;\n return 0 ;\n }"}
{"idx": 4772, "target": 0, "func": "static void idr_set_num ( unsigned char * p , int num ) {\n static const char xdig [ ] = {\n '0' , '1' , '2' , '3' , '4' , '5' , '6' , '7' , '8' , '9' , 'A' , 'B' , 'C' , 'D' , 'E' , 'F' , 'G' , 'H' , 'I' , 'J' , 'K' , 'L' , 'M' , 'N' , 'O' , 'P' , 'Q' , 'R' , 'S' , 'T' , 'U' , 'V' , 'W' , 'X' , 'Y' , 'Z' }\n ;\n num %= sizeof ( xdig ) * sizeof ( xdig ) * sizeof ( xdig ) ;\n p [ 0 ] = xdig [ ( num / ( sizeof ( xdig ) * sizeof ( xdig ) ) ) ] ;\n num %= sizeof ( xdig ) * sizeof ( xdig ) ;\n p [ 1 ] = xdig [ ( num / sizeof ( xdig ) ) ] ;\n num %= sizeof ( xdig ) ;\n p [ 2 ] = xdig [ num ] ;\n }"}
{"idx": 4773, "target": 0, "func": "static void encode_mv_component ( vp9_writer * w , int comp , const nmv_component * mvcomp , int usehp ) {\n int offset ;\n const int sign = comp < 0 ;\n const int mag = sign ? - comp : comp ;\n const int mv_class = vp9_get_mv_class ( mag - 1 , & offset ) ;\n const int d = offset >> 3 ;\n const int fr = ( offset >> 1 ) & 3 ;\n const int hp = offset & 1 ;\n assert ( comp != 0 ) ;\n vp9_write ( w , sign , mvcomp -> sign ) ;\n vp9_write_token ( w , vp9_mv_class_tree , mvcomp -> classes , & mv_class_encodings [ mv_class ] ) ;\n if ( mv_class == MV_CLASS_0 ) {\n vp9_write_token ( w , vp9_mv_class0_tree , mvcomp -> class0 , & mv_class0_encodings [ d ] ) ;\n }\n else {\n int i ;\n const int n = mv_class + CLASS0_BITS - 1 ;\n for ( i = 0 ;\n i < n ;\n ++ i ) vp9_write ( w , ( d >> i ) & 1 , mvcomp -> bits [ i ] ) ;\n }\n vp9_write_token ( w , vp9_mv_fp_tree , mv_class == MV_CLASS_0 ? mvcomp -> class0_fp [ d ] : mvcomp -> fp , & mv_fp_encodings [ fr ] ) ;\n if ( usehp ) vp9_write ( w , hp , mv_class == MV_CLASS_0 ? mvcomp -> class0_hp : mvcomp -> hp ) ;\n }"}
{"idx": 4774, "target": 0, "func": "static int yop_paint_block ( YopDecContext * s , int linesize , int tag ) {\n if ( s -> src_end - s -> srcptr < paint_lut [ tag ] [ 3 ] ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Packet too small.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n s -> dstptr [ 0 ] = s -> srcptr [ 0 ] ;\n s -> dstptr [ 1 ] = s -> srcptr [ paint_lut [ tag ] [ 0 ] ] ;\n s -> dstptr [ linesize ] = s -> srcptr [ paint_lut [ tag ] [ 1 ] ] ;\n s -> dstptr [ linesize + 1 ] = s -> srcptr [ paint_lut [ tag ] [ 2 ] ] ;\n s -> srcptr += paint_lut [ tag ] [ 3 ] ;\n return 0 ;\n }"}
{"idx": 4775, "target": 1, "func": "void ff_clean_h263_qscales ( MpegEncContext * s ) {\n int i ;\n int8_t * const qscale_table = s -> current_picture . f . qscale_table ;\n ff_init_qscale_tab ( s ) ;\n for ( i = 1 ;\n i < s -> mb_num ;\n i ++ ) {\n if ( qscale_table [ s -> mb_index2xy [ i ] ] - qscale_table [ s -> mb_index2xy [ i - 1 ] ] > 2 ) qscale_table [ s -> mb_index2xy [ i ] ] = qscale_table [ s -> mb_index2xy [ i - 1 ] ] + 2 ;\n }\n for ( i = s -> mb_num - 2 ;\n i >= 0 ;\n i -- ) {\n if ( qscale_table [ s -> mb_index2xy [ i ] ] - qscale_table [ s -> mb_index2xy [ i + 1 ] ] > 2 ) qscale_table [ s -> mb_index2xy [ i ] ] = qscale_table [ s -> mb_index2xy [ i + 1 ] ] + 2 ;\n }\n if ( s -> codec_id != AV_CODEC_ID_H263P ) {\n for ( i = 1 ;\n i < s -> mb_num ;\n i ++ ) {\n int mb_xy = s -> mb_index2xy [ i ] ;\n if ( qscale_table [ mb_xy ] != qscale_table [ s -> mb_index2xy [ i - 1 ] ] && ( s -> mb_type [ mb_xy ] & CANDIDATE_MB_TYPE_INTER4V ) ) {\n s -> mb_type [ mb_xy ] |= CANDIDATE_MB_TYPE_INTER ;\n }\n }\n }\n }"}
{"idx": 4776, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FullscreenControllerTest , PendingMouseLockExitsOnTabSwitch ) {\n AddTabAtIndex ( 0 , GURL ( url : : kAboutBlankURL ) , PAGE_TRANSITION_TYPED ) ;\n AddTabAtIndex ( 0 , GURL ( url : : kAboutBlankURL ) , PAGE_TRANSITION_TYPED ) ;\n WebContents * tab1 = browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) ;\n RequestToLockMouse ( true , false ) ;\n ASSERT_TRUE ( IsFullscreenBubbleDisplayed ( ) ) ;\n browser ( ) -> tab_strip_model ( ) -> ActivateTabAt ( 0 , true ) ;\n ASSERT_TRUE ( IsFullscreenBubbleDisplayed ( ) ) ;\n {\n MouseLockNotificationObserver mouse_lock_observer ;\n browser ( ) -> tab_strip_model ( ) -> ActivateTabAt ( 1 , true ) ;\n mouse_lock_observer . Wait ( ) ;\n }\n ASSERT_FALSE ( IsFullscreenBubbleDisplayed ( ) ) ;\n RequestToLockMouse ( true , false ) ;\n ASSERT_TRUE ( IsFullscreenBubbleDisplayed ( ) ) ;\n chrome : : CloseWebContents ( browser ( ) , tab1 , false ) ;\n ASSERT_TRUE ( IsFullscreenBubbleDisplayed ( ) ) ;\n }"}
{"idx": 4777, "target": 0, "func": "static uint64_t xhci_cap_read ( void * ptr , hwaddr reg , unsigned size ) {\n XHCIState * xhci = ptr ;\n uint32_t ret ;\n switch ( reg ) {\n case 0x00 : ret = 0x01000000 | LEN_CAP ;\n break ;\n case 0x04 : ret = ( ( xhci -> numports_2 + xhci -> numports_3 ) << 24 ) | ( xhci -> numintrs << 8 ) | xhci -> numslots ;\n break ;\n case 0x08 : ret = 0x0000000f ;\n break ;\n case 0x0c : ret = 0x00000000 ;\n break ;\n case 0x10 : if ( sizeof ( dma_addr_t ) == 4 ) {\n ret = 0x00080000 | ( xhci -> max_pstreams_mask << 12 ) ;\n }\n else {\n ret = 0x00080001 | ( xhci -> max_pstreams_mask << 12 ) ;\n }\n break ;\n case 0x14 : ret = OFF_DOORBELL ;\n break ;\n case 0x18 : ret = OFF_RUNTIME ;\n break ;\n case 0x20 : ret = 0x02000402 ;\n break ;\n case 0x24 : ret = 0x20425355 ;\n break ;\n case 0x28 : if ( xhci_get_flag ( xhci , XHCI_FLAG_SS_FIRST ) ) {\n ret = ( xhci -> numports_2 << 8 ) | ( xhci -> numports_3 + 1 ) ;\n }\n else {\n ret = ( xhci -> numports_2 << 8 ) | 1 ;\n }\n break ;\n case 0x2c : ret = 0x00000000 ;\n break ;\n case 0x30 : ret = 0x03000002 ;\n break ;\n case 0x34 : ret = 0x20425355 ;\n break ;\n case 0x38 : if ( xhci_get_flag ( xhci , XHCI_FLAG_SS_FIRST ) ) {\n ret = ( xhci -> numports_3 << 8 ) | 1 ;\n }\n else {\n ret = ( xhci -> numports_3 << 8 ) | ( xhci -> numports_2 + 1 ) ;\n }\n break ;\n case 0x3c : ret = 0x00000000 ;\n break ;\n default : trace_usb_xhci_unimplemented ( \"cap read\" , reg ) ;\n ret = 0 ;\n }\n trace_usb_xhci_cap_read ( reg , ret ) ;\n return ret ;\n }"}
{"idx": 4778, "target": 1, "func": "void * checked_xmalloc ( size_t size ) {\n alloc_limit_assert ( \"checked_xmalloc\" , size ) ;\n return xmalloc ( size ) ;\n }"}
{"idx": 4779, "target": 0, "func": "static bool fts_build_body_begin ( struct fts_mail_build_context * ctx , struct message_part * part , bool * binary_body_r ) {\n struct mail_storage * storage ;\n const char * content_type ;\n struct fts_backend_build_key key ;\n i_assert ( ctx -> body_parser == NULL ) ;\n * binary_body_r = FALSE ;\n i_zero ( & key ) ;\n key . uid = ctx -> mail -> uid ;\n key . part = part ;\n content_type = ctx -> content_type != NULL ? ctx -> content_type : \"text/plain\" ;\n if ( strncmp ( content_type , \"multipart/\" , 10 ) == 0 ) {\n return FALSE ;\n }\n storage = mailbox_get_storage ( ctx -> mail -> box ) ;\n if ( fts_parser_init ( mail_storage_get_user ( storage ) , content_type , ctx -> content_disposition , & ctx -> body_parser ) ) {\n * binary_body_r = TRUE ;\n key . type = FTS_BACKEND_BUILD_KEY_BODY_PART ;\n }\n else if ( strncmp ( content_type , \"text/\" , 5 ) == 0 || strncmp ( content_type , \"message/\" , 8 ) == 0 ) {\n key . type = FTS_BACKEND_BUILD_KEY_BODY_PART ;\n ctx -> body_parser = fts_parser_text_init ( ) ;\n }\n else {\n if ( ( ctx -> update_ctx -> backend -> flags & FTS_BACKEND_FLAG_BINARY_MIME_PARTS ) == 0 ) return FALSE ;\n * binary_body_r = TRUE ;\n key . type = FTS_BACKEND_BUILD_KEY_BODY_PART_BINARY ;\n }\n key . body_content_type = content_type ;\n key . body_content_disposition = ctx -> content_disposition ;\n ctx -> cur_user_lang = NULL ;\n if ( ! fts_backend_update_set_build_key ( ctx -> update_ctx , & key ) ) {\n if ( ctx -> body_parser != NULL ) ( void ) fts_parser_deinit ( & ctx -> body_parser ) ;\n return FALSE ;\n }\n return TRUE ;\n }"}
{"idx": 4780, "target": 0, "func": "static void rv34_pred_4x4_block ( RV34DecContext * r , uint8_t * dst , int stride , int itype , int up , int left , int down , int right ) {\n uint8_t * prev = dst - stride + 4 ;\n uint32_t topleft ;\n if ( ! up && ! left ) itype = DC_128_PRED ;\n else if ( ! up ) {\n if ( itype == VERT_PRED ) itype = HOR_PRED ;\n if ( itype == DC_PRED ) itype = LEFT_DC_PRED ;\n }\n else if ( ! left ) {\n if ( itype == HOR_PRED ) itype = VERT_PRED ;\n if ( itype == DC_PRED ) itype = TOP_DC_PRED ;\n if ( itype == DIAG_DOWN_LEFT_PRED ) itype = DIAG_DOWN_LEFT_PRED_RV40_NODOWN ;\n }\n if ( ! down ) {\n if ( itype == DIAG_DOWN_LEFT_PRED ) itype = DIAG_DOWN_LEFT_PRED_RV40_NODOWN ;\n if ( itype == HOR_UP_PRED ) itype = HOR_UP_PRED_RV40_NODOWN ;\n if ( itype == VERT_LEFT_PRED ) itype = VERT_LEFT_PRED_RV40_NODOWN ;\n }\n if ( ! right && up ) {\n topleft = dst [ - stride + 3 ] * 0x01010101u ;\n prev = ( uint8_t * ) & topleft ;\n }\n r -> h . pred4x4 [ itype ] ( dst , prev , stride ) ;\n }"}
{"idx": 4781, "target": 0, "func": "int TS_OBJ_print_bio ( BIO * bio , const ASN1_OBJECT * obj ) {\n char obj_txt [ 128 ] ;\n OBJ_obj2txt ( obj_txt , sizeof ( obj_txt ) , obj , 0 ) ;\n BIO_printf ( bio , \"%s\\n\" , obj_txt ) ;\n return 1 ;\n }"}
{"idx": 4782, "target": 1, "func": "int xsltSetCtxtSecurityPrefs ( xsltSecurityPrefsPtr sec , xsltTransformContextPtr ctxt ) {\n if ( ctxt == NULL ) return ( - 1 ) ;\n ctxt -> sec = ( void * ) sec ;\n return ( 0 ) ;\n }"}
{"idx": 4783, "target": 0, "func": "void _cmsAllocTagTypePluginChunk ( struct _cmsContext_struct * ctx , const struct _cmsContext_struct * src ) {\n if ( src != NULL ) {\n DupTagTypeList ( ctx , src , TagTypePlugin ) ;\n }\n else {\n static _cmsTagTypePluginChunkType TagTypePluginChunk = {\n NULL }\n ;\n ctx -> chunks [ TagTypePlugin ] = _cmsSubAllocDup ( ctx -> MemPool , & TagTypePluginChunk , sizeof ( _cmsTagTypePluginChunkType ) ) ;\n }\n }"}
{"idx": 4784, "target": 0, "func": "int ssl3_setup_write_buffer ( SSL * s ) {\n unsigned char * p ;\n size_t len , align = 0 , headerlen ;\n if ( SSL_version ( s ) == DTLS1_VERSION || SSL_version ( s ) == DTLS1_BAD_VER ) headerlen = DTLS1_RT_HEADER_LENGTH + 1 ;\n else headerlen = SSL3_RT_HEADER_LENGTH ;\n # if defined ( SSL3_ALIGN_PAYLOAD ) && SSL3_ALIGN_PAYLOAD != 0 align = ( - SSL3_RT_HEADER_LENGTH ) & ( SSL3_ALIGN_PAYLOAD - 1 ) ;\n # endif if ( s -> s3 -> wbuf . buf == NULL ) {\n len = s -> max_send_fragment + SSL3_RT_SEND_MAX_ENCRYPTED_OVERHEAD + headerlen + align ;\n # ifndef OPENSSL_NO_COMP if ( ! ( s -> options & SSL_OP_NO_COMPRESSION ) ) len += SSL3_RT_MAX_COMPRESSED_OVERHEAD ;\n # endif if ( ! ( s -> options & SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS ) ) len += headerlen + align + SSL3_RT_SEND_MAX_ENCRYPTED_OVERHEAD ;\n if ( ( p = freelist_extract ( s -> ctx , 0 , len ) ) == NULL ) goto err ;\n s -> s3 -> wbuf . buf = p ;\n s -> s3 -> wbuf . len = len ;\n }\n return 1 ;\n err : SSLerr ( SSL_F_SSL3_SETUP_WRITE_BUFFER , ERR_R_MALLOC_FAILURE ) ;\n return 0 ;\n }"}
{"idx": 4785, "target": 0, "func": "static void mime_list_one ( MimeListState * state , GFileInfo * info ) {\n const char * mime_type ;\n if ( should_skip_file ( NULL , info ) ) {\n g_object_unref ( info ) ;\n return ;\n }\n mime_type = g_file_info_get_content_type ( info ) ;\n if ( mime_type != NULL ) {\n istr_set_insert ( state -> mime_list_hash , mime_type ) ;\n }\n }"}
{"idx": 4786, "target": 1, "func": "void evhttp_connection_fail ( struct evhttp_connection * evcon , enum evhttp_connection_error error ) {\n struct evhttp_request * req = TAILQ_FIRST ( & evcon -> requests ) ;\n void ( * cb ) ( struct evhttp_request * , void * ) ;\n void * cb_arg ;\n assert ( req != NULL ) ;\n if ( evcon -> flags & EVHTTP_CON_INCOMING ) {\n if ( evhttp_connection_incoming_fail ( req , error ) == - 1 ) evhttp_connection_free ( evcon ) ;\n return ;\n }\n cb = req -> cb ;\n cb_arg = req -> cb_arg ;\n TAILQ_REMOVE ( & evcon -> requests , req , next ) ;\n evhttp_request_free ( req ) ;\n evhttp_connection_reset ( evcon ) ;\n if ( TAILQ_FIRST ( & evcon -> requests ) != NULL ) evhttp_connection_connect ( evcon ) ;\n if ( cb != NULL ) ( * cb ) ( NULL , cb_arg ) ;\n }"}
{"idx": 4787, "target": 1, "func": "static ngx_int_t create_request ( ngx_http_request_t * r ) {\n u_char ch ;\n const char * helper_agent_request_socket_password_data ;\n unsigned int helper_agent_request_socket_password_len ;\n u_char buf [ sizeof ( \"4294967296\" ) + 1 ] ;\n size_t len , size , key_len , val_len ;\n const u_char * app_type_string ;\n size_t app_type_string_len ;\n int server_name_len ;\n ngx_str_t escaped_uri ;\n ngx_str_t * union_station_filters = NULL ;\n void * tmp ;\n ngx_uint_t i , n ;\n ngx_buf_t * b ;\n ngx_chain_t * cl , * body ;\n ngx_list_part_t * part ;\n ngx_table_elt_t * header ;\n ngx_http_script_code_pt code ;\n ngx_http_script_engine_t e , le ;\n ngx_http_core_srv_conf_t * cscf ;\n passenger_loc_conf_t * slcf ;\n passenger_context_t * context ;\n ngx_http_script_len_code_pt lcode ;\n cscf = ngx_http_get_module_srv_conf ( r , ngx_http_core_module ) ;\n slcf = ngx_http_get_module_loc_conf ( r , ngx_http_passenger_module ) ;\n context = ngx_http_get_module_ctx ( r , ngx_http_passenger_module ) ;\n if ( context == NULL ) {\n return NGX_HTTP_INTERNAL_SERVER_ERROR ;\n }\n app_type_string = ( const u_char * ) pp_get_app_type_name ( context -> app_type ) ;\n app_type_string_len = strlen ( ( const char * ) app_type_string ) + 1 ;\n escaped_uri . len = * ngx_escape_uri ( NULL , r -> uri . data , r -> uri . len , NGX_ESCAPE_URI ) + r -> uri . len ;\n escaped_uri . data = ngx_pnalloc ( r -> pool , escaped_uri . len + 1 ) ;\n escaped_uri . data [ escaped_uri . len ] = '\\0' ;\n ngx_escape_uri ( escaped_uri . data , r -> uri . data , r -> uri . len , NGX_ESCAPE_URI ) ;\n len = 0 ;\n if ( r -> headers_in . content_length_n >= 0 ) {\n len += sizeof ( \"CONTENT_LENGTH\" ) + uint_to_str ( r -> headers_in . content_length_n , buf , sizeof ( buf ) ) + 1 ;\n }\n len += sizeof ( \"DOCUMENT_ROOT\" ) + context -> public_dir . len + 1 ;\n if ( context -> base_uri . len > 0 ) {\n len += sizeof ( \"SCRIPT_NAME\" ) + context -> base_uri . len + 1 ;\n len += sizeof ( \"RAILS_RELATIVE_URL_ROOT\" ) + context -> base_uri . len + 1 ;\n len += sizeof ( \"PATH_INFO\" ) + escaped_uri . len - context -> base_uri . len + 1 ;\n }\n else {\n len += sizeof ( \"SCRIPT_NAME\" ) + sizeof ( \"\" ) ;\n len += sizeof ( \"PATH_INFO\" ) + escaped_uri . len + 1 ;\n }\n len += sizeof ( \"REQUEST_URI\" ) + escaped_uri . len + 1 ;\n if ( r -> args . len > 0 ) {\n len += 1 + r -> args . len ;\n }\n if ( r -> headers_in . host != NULL ) {\n tmp = memchr ( r -> headers_in . host -> value . data , ':' , r -> headers_in . host -> value . len ) ;\n if ( tmp == NULL ) {\n server_name_len = r -> headers_in . host -> value . len ;\n }\n else {\n server_name_len = ( int ) ( ( const u_char * ) tmp - r -> headers_in . host -> value . data ) ;\n }\n }\n else {\n server_name_len = cscf -> server_name . len ;\n }\n len += sizeof ( \"SERVER_NAME\" ) + server_name_len + 1 ;\n if ( r -> headers_in . content_type != NULL && r -> headers_in . content_type -> value . len > 0 ) {\n len += sizeof ( \"CONTENT_TYPE\" ) + r -> headers_in . content_type -> value . len + 1 ;\n }\n # if ( NGX_HTTP_SSL ) if ( r -> http_connection -> ssl ) {\n len += sizeof ( \"HTTPS\" ) + sizeof ( \"on\" ) ;\n }\n # endif len += slcf -> options_cache . len ;\n len += sizeof ( \"PASSENGER_APP_TYPE\" ) + app_type_string_len ;\n if ( slcf -> union_station_filters != NGX_CONF_UNSET_PTR && slcf -> union_station_filters -> nelts > 0 ) {\n len += sizeof ( \"UNION_STATION_FILTERS\" ) ;\n union_station_filters = ( ngx_str_t * ) slcf -> union_station_filters -> elts ;\n for ( i = 0 ;\n i < slcf -> union_station_filters -> nelts ;\n i ++ ) {\n if ( i != 0 ) {\n len ++ ;\n }\n len += union_station_filters [ i ] . len ;\n }\n len ++ ;\n }\n if ( slcf -> vars_len ) {\n ngx_memzero ( & le , sizeof ( ngx_http_script_engine_t ) ) ;\n ngx_http_script_flush_no_cacheable_variables ( r , slcf -> flushes ) ;\n le . flushed = 1 ;\n le . ip = slcf -> vars_len -> elts ;\n le . request = r ;\n while ( * ( uintptr_t * ) le . ip ) {\n lcode = * ( ngx_http_script_len_code_pt * ) le . ip ;\n key_len = lcode ( & le ) ;\n for ( val_len = 0 ;\n * ( uintptr_t * ) le . ip ;\n val_len += lcode ( & le ) ) {\n lcode = * ( ngx_http_script_len_code_pt * ) le . ip ;\n }\n le . ip += sizeof ( uintptr_t ) ;\n len += key_len + val_len ;\n }\n }\n if ( slcf -> upstream_config . pass_request_headers ) {\n part = & r -> headers_in . headers . part ;\n header = part -> elts ;\n for ( i = 0 ;\n ;\n i ++ ) {\n if ( i >= part -> nelts ) {\n if ( part -> next == NULL ) {\n break ;\n }\n part = part -> next ;\n header = part -> elts ;\n i = 0 ;\n }\n if ( ! header_is_transfer_encoding ( & header [ i ] . key ) ) {\n len += sizeof ( \"HTTP_\" ) - 1 + header [ i ] . key . len + 1 + header [ i ] . value . len + 1 ;\n }\n }\n }\n helper_agent_request_socket_password_data = pp_agents_starter_get_request_socket_password ( pp_agents_starter , & helper_agent_request_socket_password_len ) ;\n size = helper_agent_request_socket_password_len + len + 10 + 1 + 1 ;\n b = ngx_create_temp_buf ( r -> pool , size ) ;\n if ( b == NULL ) {\n return NGX_ERROR ;\n }\n cl = ngx_alloc_chain_link ( r -> pool ) ;\n if ( cl == NULL ) {\n return NGX_ERROR ;\n }\n cl -> buf = b ;\n b -> last = ngx_copy ( b -> last , helper_agent_request_socket_password_data , helper_agent_request_socket_password_len ) ;\n b -> last = ngx_snprintf ( b -> last , 10 , \"%ui\" , len ) ;\n * b -> last ++ = ( u_char ) ':' ;\n if ( r -> headers_in . content_length_n >= 0 ) {\n b -> last = ngx_copy ( b -> last , \"CONTENT_LENGTH\" , sizeof ( \"CONTENT_LENGTH\" ) ) ;\n b -> last = ngx_snprintf ( b -> last , 10 , \"%O\" , r -> headers_in . content_length_n ) ;\n * b -> last ++ = ( u_char ) 0 ;\n }\n b -> last = ngx_copy ( b -> last , \"DOCUMENT_ROOT\" , sizeof ( \"DOCUMENT_ROOT\" ) ) ;\n b -> last = ngx_copy ( b -> last , context -> public_dir . data , context -> public_dir . len + 1 ) ;\n if ( context -> base_uri . len > 0 ) {\n b -> last = ngx_copy ( b -> last , \"SCRIPT_NAME\" , sizeof ( \"SCRIPT_NAME\" ) ) ;\n b -> last = ngx_copy ( b -> last , context -> base_uri . data , context -> base_uri . len + 1 ) ;\n b -> last = ngx_copy ( b -> last , \"RAILS_RELATIVE_URL_ROOT\" , sizeof ( \"RAILS_RELATIVE_URL_ROOT\" ) ) ;\n b -> last = ngx_copy ( b -> last , context -> base_uri . data , context -> base_uri . len + 1 ) ;\n b -> last = ngx_copy ( b -> last , \"PATH_INFO\" , sizeof ( \"PATH_INFO\" ) ) ;\n b -> last = ngx_copy ( b -> last , escaped_uri . data + context -> base_uri . len , escaped_uri . len - context -> base_uri . len ) ;\n b -> last = ngx_copy ( b -> last , \"\" , 1 ) ;\n }\n else {\n b -> last = ngx_copy ( b -> last , \"SCRIPT_NAME\" , sizeof ( \"SCRIPT_NAME\" ) ) ;\n b -> last = ngx_copy ( b -> last , \"\" , sizeof ( \"\" ) ) ;\n b -> last = ngx_copy ( b -> last , \"PATH_INFO\" , sizeof ( \"PATH_INFO\" ) ) ;\n b -> last = ngx_copy ( b -> last , escaped_uri . data , escaped_uri . len ) ;\n b -> last = ngx_copy ( b -> last , \"\" , 1 ) ;\n }\n b -> last = ngx_copy ( b -> last , \"REQUEST_URI\" , sizeof ( \"REQUEST_URI\" ) ) ;\n b -> last = ngx_copy ( b -> last , escaped_uri . data , escaped_uri . len ) ;\n if ( r -> args . len > 0 ) {\n b -> last = ngx_copy ( b -> last , \"?\" , 1 ) ;\n b -> last = ngx_copy ( b -> last , r -> args . data , r -> args . len ) ;\n }\n b -> last = ngx_copy ( b -> last , \"\" , 1 ) ;\n b -> last = ngx_copy ( b -> last , \"SERVER_NAME\" , sizeof ( \"SERVER_NAME\" ) ) ;\n if ( r -> headers_in . host != NULL ) {\n b -> last = ngx_copy ( b -> last , r -> headers_in . host -> value . data , server_name_len ) ;\n }\n else {\n b -> last = ngx_copy ( b -> last , cscf -> server_name . data , server_name_len ) ;\n }\n b -> last = ngx_copy ( b -> last , \"\" , 1 ) ;\n if ( r -> headers_in . content_type != NULL && r -> headers_in . content_type -> value . len > 0 ) {\n b -> last = ngx_copy ( b -> last , \"CONTENT_TYPE\" , sizeof ( \"CONTENT_TYPE\" ) ) ;\n b -> last = ngx_copy ( b -> last , r -> headers_in . content_type -> value . data , r -> headers_in . content_type -> value . len ) ;\n b -> last = ngx_copy ( b -> last , \"\" , 1 ) ;\n }\n # if ( NGX_HTTP_SSL ) if ( r -> http_connection -> ssl ) {\n b -> last = ngx_copy ( b -> last , \"HTTPS\" , sizeof ( \"HTTPS\" ) ) ;\n b -> last = ngx_copy ( b -> last , \"on\" , sizeof ( \"on\" ) ) ;\n }\n # endif b -> last = ngx_copy ( b -> last , slcf -> options_cache . data , slcf -> options_cache . len ) ;\n b -> last = ngx_copy ( b -> last , \"PASSENGER_APP_TYPE\" , sizeof ( \"PASSENGER_APP_TYPE\" ) ) ;\n b -> last = ngx_copy ( b -> last , app_type_string , app_type_string_len ) ;\n if ( slcf -> union_station_filters != NGX_CONF_UNSET_PTR && slcf -> union_station_filters -> nelts > 0 ) {\n b -> last = ngx_copy ( b -> last , \"UNION_STATION_FILTERS\" , sizeof ( \"UNION_STATION_FILTERS\" ) ) ;\n for ( i = 0 ;\n i < slcf -> union_station_filters -> nelts ;\n i ++ ) {\n if ( i != 0 ) {\n b -> last = ngx_copy ( b -> last , \"\\1\" , 1 ) ;\n }\n b -> last = ngx_copy ( b -> last , union_station_filters [ i ] . data , union_station_filters [ i ] . len ) ;\n }\n b -> last = ngx_copy ( b -> last , \"\\0\" , 1 ) ;\n }\n if ( slcf -> vars_len ) {\n ngx_memzero ( & e , sizeof ( ngx_http_script_engine_t ) ) ;\n e . ip = slcf -> vars -> elts ;\n e . pos = b -> last ;\n e . request = r ;\n e . flushed = 1 ;\n le . ip = slcf -> vars_len -> elts ;\n while ( * ( uintptr_t * ) le . ip ) {\n lcode = * ( ngx_http_script_len_code_pt * ) le . ip ;\n ( void ) lcode ( & le ) ;\n for ( val_len = 0 ;\n * ( uintptr_t * ) le . ip ;\n val_len += lcode ( & le ) ) {\n lcode = * ( ngx_http_script_len_code_pt * ) le . ip ;\n }\n le . ip += sizeof ( uintptr_t ) ;\n while ( * ( uintptr_t * ) e . ip ) {\n code = * ( ngx_http_script_code_pt * ) e . ip ;\n code ( ( ngx_http_script_engine_t * ) & e ) ;\n }\n e . ip += sizeof ( uintptr_t ) ;\n }\n b -> last = e . pos ;\n }\n if ( slcf -> upstream_config . pass_request_headers ) {\n part = & r -> headers_in . headers . part ;\n header = part -> elts ;\n for ( i = 0 ;\n ;\n i ++ ) {\n if ( i >= part -> nelts ) {\n if ( part -> next == NULL ) {\n break ;\n }\n part = part -> next ;\n header = part -> elts ;\n i = 0 ;\n }\n if ( header_is_transfer_encoding ( & header [ i ] . key ) ) {\n continue ;\n }\n b -> last = ngx_cpymem ( b -> last , \"HTTP_\" , sizeof ( \"HTTP_\" ) - 1 ) ;\n for ( n = 0 ;\n n < header [ i ] . key . len ;\n n ++ ) {\n ch = header [ i ] . key . data [ n ] ;\n if ( ch >= 'a' && ch <= 'z' ) {\n ch &= ~ 0x20 ;\n }\n else if ( ch == '-' ) {\n ch = '_' ;\n }\n * b -> last ++ = ch ;\n }\n * b -> last ++ = ( u_char ) 0 ;\n b -> last = ngx_copy ( b -> last , header [ i ] . value . data , header [ i ] . value . len ) ;\n * b -> last ++ = ( u_char ) 0 ;\n }\n }\n * b -> last ++ = ( u_char ) ',' ;\n if ( slcf -> upstream_config . pass_request_body ) {\n body = r -> upstream -> request_bufs ;\n r -> upstream -> request_bufs = cl ;\n while ( body ) {\n b = ngx_alloc_buf ( r -> pool ) ;\n if ( b == NULL ) {\n return NGX_ERROR ;\n }\n ngx_memcpy ( b , body -> buf , sizeof ( ngx_buf_t ) ) ;\n cl -> next = ngx_alloc_chain_link ( r -> pool ) ;\n if ( cl -> next == NULL ) {\n return NGX_ERROR ;\n }\n cl = cl -> next ;\n cl -> buf = b ;\n body = body -> next ;\n }\n b -> flush = 1 ;\n }\n else {\n r -> upstream -> request_bufs = cl ;\n }\n cl -> next = NULL ;\n return NGX_OK ;\n }"}
{"idx": 4788, "target": 0, "func": "int ber_flatten ( BerElement * ber , struct berval * * bvPtr ) {\n struct berval * bv ;\n int rc ;\n assert ( bvPtr != NULL ) ;\n if ( bvPtr == NULL ) {\n return - 1 ;\n }\n bv = ber_memalloc_x ( sizeof ( struct berval ) , ber -> ber_memctx ) ;\n if ( bv == NULL ) {\n return - 1 ;\n }\n rc = ber_flatten2 ( ber , bv , 1 ) ;\n if ( rc == - 1 ) {\n ber_memfree_x ( bv , ber -> ber_memctx ) ;\n }\n else {\n * bvPtr = bv ;\n }\n return rc ;\n }"}
{"idx": 4789, "target": 0, "func": "static void u_printf_set_sign ( UNumberFormat * format , const u_printf_spec_info * info , UChar * prefixBuffer , int32_t * prefixBufLen , UErrorCode * status ) {\n if ( info -> fShowSign ) {\n * prefixBufLen = unum_getTextAttribute ( format , UNUM_POSITIVE_PREFIX , prefixBuffer , * prefixBufLen , status ) ;\n if ( info -> fSpace ) {\n unum_setTextAttribute ( format , UNUM_POSITIVE_PREFIX , gSpaceStr , 1 , status ) ;\n }\n else {\n UChar plusSymbol [ UPRINTF_SYMBOL_BUFFER_SIZE ] ;\n int32_t symbolLen ;\n symbolLen = unum_getSymbol ( format , UNUM_PLUS_SIGN_SYMBOL , plusSymbol , UPRV_LENGTHOF ( plusSymbol ) , status ) ;\n unum_setTextAttribute ( format , UNUM_POSITIVE_PREFIX , plusSymbol , symbolLen , status ) ;\n }\n }\n else {\n * prefixBufLen = 0 ;\n }\n }"}
{"idx": 4790, "target": 0, "func": "static int read_code_table ( CLLCContext * ctx , GetBitContext * gb , VLC * vlc ) {\n uint8_t symbols [ 256 ] ;\n uint8_t bits [ 256 ] ;\n uint16_t codes [ 256 ] ;\n int num_lens , num_codes , num_codes_sum , prefix ;\n int i , j , count ;\n prefix = 0 ;\n count = 0 ;\n num_codes_sum = 0 ;\n num_lens = get_bits ( gb , 5 ) ;\n for ( i = 0 ;\n i < num_lens ;\n i ++ ) {\n num_codes = get_bits ( gb , 9 ) ;\n num_codes_sum += num_codes ;\n if ( num_codes_sum > 256 ) {\n vlc -> table = NULL ;\n av_log ( ctx -> avctx , AV_LOG_ERROR , \"Too many VLCs (%d) to be read.\\n\" , num_codes_sum ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( j = 0 ;\n j < num_codes ;\n j ++ ) {\n symbols [ count ] = get_bits ( gb , 8 ) ;\n bits [ count ] = i + 1 ;\n codes [ count ] = prefix ++ ;\n count ++ ;\n }\n prefix <<= 1 ;\n }\n return ff_init_vlc_sparse ( vlc , 7 , count , bits , 1 , 1 , codes , 2 , 2 , symbols , 1 , 1 , 0 ) ;\n }"}
{"idx": 4791, "target": 0, "func": "static void cirrus_vga_class_init ( ObjectClass * klass , void * data ) {\n DeviceClass * dc = DEVICE_CLASS ( klass ) ;\n PCIDeviceClass * k = PCI_DEVICE_CLASS ( klass ) ;\n k -> realize = pci_cirrus_vga_realize ;\n k -> romfile = VGABIOS_CIRRUS_FILENAME ;\n k -> vendor_id = PCI_VENDOR_ID_CIRRUS ;\n k -> device_id = CIRRUS_ID_CLGD5446 ;\n k -> class_id = PCI_CLASS_DISPLAY_VGA ;\n set_bit ( DEVICE_CATEGORY_DISPLAY , dc -> categories ) ;\n dc -> desc = \"Cirrus CLGD 54xx VGA\" ;\n dc -> vmsd = & vmstate_pci_cirrus_vga ;\n dc -> props = pci_vga_cirrus_properties ;\n dc -> hotpluggable = false ;\n }"}
{"idx": 4792, "target": 0, "func": "static inline void SetPixelGrayTraits ( Image * image , const PixelTrait traits ) {\n image -> channel_map [ GrayPixelChannel ] . traits = traits ;\n }"}
{"idx": 4793, "target": 0, "func": "static int read_old_huffman_tables ( HYuvContext * s ) {\n GetBitContext gb ;\n int i ;\n init_get_bits ( & gb , classic_shift_luma , classic_shift_luma_table_size * 8 ) ;\n if ( read_len_table ( s -> len [ 0 ] , & gb ) < 0 ) return - 1 ;\n init_get_bits ( & gb , classic_shift_chroma , classic_shift_chroma_table_size * 8 ) ;\n if ( read_len_table ( s -> len [ 1 ] , & gb ) < 0 ) return - 1 ;\n for ( i = 0 ;\n i < 256 ;\n i ++ ) s -> bits [ 0 ] [ i ] = classic_add_luma [ i ] ;\n for ( i = 0 ;\n i < 256 ;\n i ++ ) s -> bits [ 1 ] [ i ] = classic_add_chroma [ i ] ;\n if ( s -> bitstream_bpp >= 24 ) {\n memcpy ( s -> bits [ 1 ] , s -> bits [ 0 ] , 256 * sizeof ( uint32_t ) ) ;\n memcpy ( s -> len [ 1 ] , s -> len [ 0 ] , 256 * sizeof ( uint8_t ) ) ;\n }\n memcpy ( s -> bits [ 2 ] , s -> bits [ 1 ] , 256 * sizeof ( uint32_t ) ) ;\n memcpy ( s -> len [ 2 ] , s -> len [ 1 ] , 256 * sizeof ( uint8_t ) ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n ff_free_vlc ( & s -> vlc [ i ] ) ;\n init_vlc ( & s -> vlc [ i ] , VLC_BITS , 256 , s -> len [ i ] , 1 , 1 , s -> bits [ i ] , 4 , 4 , 0 ) ;\n }\n generate_joint_tables ( s ) ;\n return 0 ;\n }"}
{"idx": 4794, "target": 1, "func": "void vp9_fdct8x8_1_c ( const int16_t * input , int16_t * output , int stride ) {\n int r , c ;\n int16_t sum = 0 ;\n for ( r = 0 ;\n r < 8 ;\n ++ r ) for ( c = 0 ;\n c < 8 ;\n ++ c ) sum += input [ r * stride + c ] ;\n output [ 0 ] = sum ;\n output [ 1 ] = 0 ;\n }"}
{"idx": 4795, "target": 1, "func": "static void sbr_qmf_deint_bfly_c ( float * v , const float * src0 , const float * src1 ) {\n int i ;\n for ( i = 0 ;\n i < 64 ;\n i ++ ) {\n v [ i ] = src0 [ i ] - src1 [ 63 - i ] ;\n v [ 127 - i ] = src0 [ i ] + src1 [ 63 - i ] ;\n }\n }"}
{"idx": 4796, "target": 0, "func": "static int dissect_h245_T_encryptionUpdateAck ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_encryptionUpdateAck , T_encryptionUpdateAck_sequence ) ;\n return offset ;\n }"}
{"idx": 4797, "target": 0, "func": "static void free_xargs ( xargs_t xargs ) {\n if ( xargs . dn ) free ( xargs . dn ) ;\n if ( xargs . linkdn ) free ( xargs . linkdn ) ;\n if ( xargs . containerdn ) free ( xargs . containerdn ) ;\n if ( xargs . tktpolicydn ) free ( xargs . tktpolicydn ) ;\n }"}
{"idx": 4798, "target": 0, "func": "static int OpenEncoder ( vlc_object_t * p_this ) {\n encoder_t * p_enc = ( encoder_t * ) p_this ;\n encoder_sys_t * p_sys ;\n int i_tmp ;\n float f_tmp ;\n char * psz_tmp ;\n if ( p_enc -> fmt_out . i_codec != VLC_CODEC_DIRAC && ! p_enc -> b_force ) {\n return VLC_EGENERIC ;\n }\n if ( ! p_enc -> fmt_in . video . i_frame_rate || ! p_enc -> fmt_in . video . i_frame_rate_base || ! p_enc -> fmt_in . video . i_visible_height || ! p_enc -> fmt_in . video . i_visible_width ) {\n msg_Err ( p_enc , \"Framerate and picture dimensions must be non-zero\" ) ;\n return VLC_EGENERIC ;\n }\n if ( ( p_sys = calloc ( 1 , sizeof ( * p_sys ) ) ) == NULL ) return VLC_ENOMEM ;\n p_enc -> p_sys = p_sys ;\n p_enc -> pf_encode_video = Encode ;\n p_enc -> fmt_out . i_codec = VLC_CODEC_DIRAC ;\n p_enc -> fmt_out . i_cat = VIDEO_ES ;\n if ( ( p_sys -> p_dts_fifo = block_FifoNew ( ) ) == NULL ) {\n CloseEncoder ( p_this ) ;\n return VLC_ENOMEM ;\n }\n ResetPTStlb ( p_enc ) ;\n int i = 0 ;\n SchroVideoFormatEnum guessed_video_fmt = SCHRO_VIDEO_FORMAT_CUSTOM ;\n do {\n if ( schro_format_guess [ i ] . i_height > p_enc -> fmt_in . video . i_height ) {\n guessed_video_fmt = schro_format_guess [ i - 1 ] . i_vf ;\n break ;\n }\n if ( schro_format_guess [ i ] . i_height != p_enc -> fmt_in . video . i_height ) continue ;\n int src_fps = p_enc -> fmt_in . video . i_frame_rate / p_enc -> fmt_in . video . i_frame_rate_base ;\n int delta_fps = abs ( schro_format_guess [ i ] . i_approx_fps - src_fps ) ;\n if ( delta_fps > 2 ) continue ;\n guessed_video_fmt = schro_format_guess [ i ] . i_vf ;\n break ;\n }\n while ( schro_format_guess [ ++ i ] . i_height ) ;\n schro_init ( ) ;\n p_sys -> p_schro = schro_encoder_new ( ) ;\n if ( ! p_sys -> p_schro ) {\n msg_Err ( p_enc , \"Failed to initialize libschroedinger encoder\" ) ;\n return VLC_EGENERIC ;\n }\n schro_encoder_set_packet_assembly ( p_sys -> p_schro , true ) ;\n if ( ! ( p_sys -> p_format = schro_encoder_get_video_format ( p_sys -> p_schro ) ) ) {\n msg_Err ( p_enc , \"Failed to get Schroedigner video format\" ) ;\n schro_encoder_free ( p_sys -> p_schro ) ;\n return VLC_EGENERIC ;\n }\n schro_video_format_set_std_video_format ( p_sys -> p_format , guessed_video_fmt ) ;\n p_sys -> p_format -> width = p_enc -> fmt_in . video . i_visible_width ;\n p_sys -> p_format -> height = p_enc -> fmt_in . video . i_visible_height ;\n p_sys -> p_format -> frame_rate_numerator = p_enc -> fmt_in . video . i_frame_rate ;\n p_sys -> p_format -> frame_rate_denominator = p_enc -> fmt_in . video . i_frame_rate_base ;\n unsigned u_asr_num , u_asr_den ;\n vlc_ureduce ( & u_asr_num , & u_asr_den , p_enc -> fmt_in . video . i_sar_num , p_enc -> fmt_in . video . i_sar_den , 0 ) ;\n p_sys -> p_format -> aspect_ratio_numerator = u_asr_num ;\n p_sys -> p_format -> aspect_ratio_denominator = u_asr_den ;\n config_ChainParse ( p_enc , ENC_CFG_PREFIX , ppsz_enc_options , p_enc -> p_cfg ) ;\n SCHRO_SET_ENUM ( enc_rate_control_list , ENC_RATE_CONTROL , ENC_RATE_CONTROL_TEXT , \"rate_control\" ) SCHRO_SET_ENUM ( enc_gop_structure_list , ENC_GOP_STRUCTURE , ENC_GOP_STRUCTURE_TEXT , \"gop_structure\" ) psz_tmp = var_GetString ( p_enc , ENC_CFG_PREFIX ENC_CHROMAFMT ) ;\n if ( ! psz_tmp ) goto error ;\n else {\n uint32_t i_codec ;\n if ( ! strcmp ( psz_tmp , \"420\" ) ) {\n i_codec = VLC_CODEC_I420 ;\n }\n else if ( ! strcmp ( psz_tmp , \"422\" ) ) {\n i_codec = VLC_CODEC_I422 ;\n }\n else if ( ! strcmp ( psz_tmp , \"444\" ) ) {\n i_codec = VLC_CODEC_I444 ;\n }\n else {\n msg_Err ( p_enc , \"Invalid chroma format: %s\" , psz_tmp ) ;\n free ( psz_tmp ) ;\n goto error ;\n }\n SetEncChromaFormat ( p_enc , i_codec ) ;\n }\n free ( psz_tmp ) ;\n SCHRO_SET_FLOAT ( ENC_QUALITY , \"quality\" ) SCHRO_SET_FLOAT ( ENC_NOISE_THRESHOLD , \"noise_threshold\" ) i_tmp = var_GetInteger ( p_enc , ENC_CFG_PREFIX ENC_BITRATE ) ;\n if ( i_tmp > - 1 ) schro_encoder_setting_set_double ( p_sys -> p_schro , \"bitrate\" , i_tmp * 1000 ) ;\n else schro_encoder_setting_set_double ( p_sys -> p_schro , \"bitrate\" , p_enc -> fmt_out . i_bitrate ) ;\n p_enc -> fmt_out . i_bitrate = schro_encoder_setting_get_double ( p_sys -> p_schro , \"bitrate\" ) ;\n i_tmp = var_GetInteger ( p_enc , ENC_CFG_PREFIX ENC_MIN_BITRATE ) ;\n if ( i_tmp > - 1 ) schro_encoder_setting_set_double ( p_sys -> p_schro , \"min_bitrate\" , i_tmp * 1000 ) ;\n i_tmp = var_GetInteger ( p_enc , ENC_CFG_PREFIX ENC_MAX_BITRATE ) ;\n if ( i_tmp > - 1 ) schro_encoder_setting_set_double ( p_sys -> p_schro , \"max_bitrate\" , i_tmp * 1000 ) ;\n SCHRO_SET_INTEGER ( ENC_AU_DISTANCE , \"au_distance\" , - 1 ) SCHRO_SET_ENUM ( enc_filtering_list , ENC_PREFILTER , ENC_PREFILTER_TEXT , \"filtering\" ) SCHRO_SET_FLOAT ( ENC_PREFILTER_STRENGTH , \"filter_value\" ) psz_tmp = var_GetString ( p_enc , ENC_CFG_PREFIX ENC_CODINGMODE ) ;\n if ( ! psz_tmp ) goto error ;\n else if ( ! strcmp ( psz_tmp , \"auto\" ) ) {\n p_sys -> b_auto_field_coding = true ;\n }\n else if ( ! strcmp ( psz_tmp , \"progressive\" ) ) {\n p_sys -> b_auto_field_coding = false ;\n schro_encoder_setting_set_double ( p_sys -> p_schro , \"interlaced_coding\" , false ) ;\n }\n else if ( ! strcmp ( psz_tmp , \"field\" ) ) {\n p_sys -> b_auto_field_coding = false ;\n schro_encoder_setting_set_double ( p_sys -> p_schro , \"interlaced_coding\" , true ) ;\n }\n else {\n msg_Err ( p_enc , \"Invalid codingmode: %s\" , psz_tmp ) ;\n free ( psz_tmp ) ;\n goto error ;\n }\n free ( psz_tmp ) ;\n SCHRO_SET_ENUM ( enc_block_size_list , ENC_MCBLK_SIZE , ENC_MCBLK_SIZE_TEXT , \"motion_block_size\" ) SCHRO_SET_ENUM ( enc_block_overlap_list , ENC_MCBLK_OVERLAP , ENC_MCBLK_OVERLAP_TEXT , \"motion_block_overlap\" ) psz_tmp = var_GetString ( p_enc , ENC_CFG_PREFIX ENC_MVPREC ) ;\n if ( ! psz_tmp ) goto error ;\n else if ( * psz_tmp != '\\0' ) {\n if ( ! strcmp ( psz_tmp , \"1\" ) ) {\n schro_encoder_setting_set_double ( p_sys -> p_schro , \"mv_precision\" , 0 ) ;\n }\n else if ( ! strcmp ( psz_tmp , \"1/2\" ) ) {\n schro_encoder_setting_set_double ( p_sys -> p_schro , \"mv_precision\" , 1 ) ;\n }\n else if ( ! strcmp ( psz_tmp , \"1/4\" ) ) {\n schro_encoder_setting_set_double ( p_sys -> p_schro , \"mv_precision\" , 2 ) ;\n }\n else if ( ! strcmp ( psz_tmp , \"1/8\" ) ) {\n schro_encoder_setting_set_double ( p_sys -> p_schro , \"mv_precision\" , 3 ) ;\n }\n else {\n msg_Err ( p_enc , \"Invalid mv_precision: %s\" , psz_tmp ) ;\n free ( psz_tmp ) ;\n goto error ;\n }\n }\n free ( psz_tmp ) ;\n SCHRO_SET_INTEGER ( ENC_ME_COMBINED , \"enable_chroma_me\" , - 1 ) SCHRO_SET_ENUM ( enc_wavelet_list , ENC_DWTINTRA , ENC_DWTINTRA_TEXT , \"intra_wavelet\" ) SCHRO_SET_ENUM ( enc_wavelet_list , ENC_DWTINTER , ENC_DWTINTER_TEXT , \"inter_wavelet\" ) SCHRO_SET_INTEGER ( ENC_DWTDEPTH , \"transform_depth\" , - 1 ) SCHRO_SET_INTEGER ( ENC_MULTIQUANT , \"enable_multiquant\" , - 1 ) SCHRO_SET_INTEGER ( ENC_NOAC , \"enable_noarith\" , - 1 ) SCHRO_SET_ENUM ( enc_perceptual_weighting_list , ENC_PWT , ENC_PWT_TEXT , \"perceptual_weighting\" ) SCHRO_SET_FLOAT ( ENC_PDIST , \"perceptual_distance\" ) SCHRO_SET_INTEGER ( ENC_HSLICES , \"horiz_slices\" , - 1 ) SCHRO_SET_INTEGER ( ENC_VSLICES , \"vert_slices\" , - 1 ) SCHRO_SET_ENUM ( enc_codeblock_size_list , ENC_SCBLK_SIZE , ENC_SCBLK_SIZE_TEXT , \"codeblock_size\" ) SCHRO_SET_INTEGER ( ENC_ME_HIERARCHICAL , \"enable_hierarchical_estimation\" , - 1 ) SCHRO_SET_INTEGER ( ENC_ME_DOWNSAMPLE_LEVELS , \"downsample_levels\" , 1 ) SCHRO_SET_INTEGER ( ENC_ME_GLOBAL_MOTION , \"enable_global_motion\" , - 1 ) SCHRO_SET_INTEGER ( ENC_ME_PHASECORR , \"enable_phasecorr_estimation\" , - 1 ) SCHRO_SET_INTEGER ( ENC_SCD , \"enable_scene_change_detection\" , - 1 ) SCHRO_SET_ENUM ( enc_profile_list , ENC_FORCE_PROFILE , ENC_FORCE_PROFILE_TEXT , \"force_profile\" ) p_sys -> started = 0 ;\n return VLC_SUCCESS ;\n error : CloseEncoder ( p_this ) ;\n return VLC_EGENERIC ;\n }"}
{"idx": 4799, "target": 0, "func": "static int dissect_h225_PublicPartyNumber ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_PublicPartyNumber , PublicPartyNumber_sequence ) ;\n return offset ;\n }"}
{"idx": 4800, "target": 0, "func": "int kvm_arch_init ( MachineState * ms , KVMState * s ) {\n uint64_t identity_base = 0xfffbc000 ;\n uint64_t shadow_mem ;\n int ret ;\n struct utsname utsname ;\n # ifdef KVM_CAP_XSAVE has_xsave = kvm_check_extension ( s , KVM_CAP_XSAVE ) ;\n # endif # ifdef KVM_CAP_XCRS has_xcrs = kvm_check_extension ( s , KVM_CAP_XCRS ) ;\n # endif # ifdef KVM_CAP_PIT_STATE2 has_pit_state2 = kvm_check_extension ( s , KVM_CAP_PIT_STATE2 ) ;\n # endif ret = kvm_get_supported_msrs ( s ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n uname ( & utsname ) ;\n lm_capable_kernel = strcmp ( utsname . machine , \"x86_64\" ) == 0 ;\n if ( kvm_check_extension ( s , KVM_CAP_SET_IDENTITY_MAP_ADDR ) ) {\n identity_base = 0xfeffc000 ;\n ret = kvm_vm_ioctl ( s , KVM_SET_IDENTITY_MAP_ADDR , & identity_base ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n }\n ret = kvm_vm_ioctl ( s , KVM_SET_TSS_ADDR , identity_base + 0x1000 ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n ret = e820_add_entry ( identity_base , 0x4000 , E820_RESERVED ) ;\n if ( ret < 0 ) {\n fprintf ( stderr , \"e820_add_entry() table is full\\n\" ) ;\n return ret ;\n }\n qemu_register_reset ( kvm_unpoison_all , NULL ) ;\n shadow_mem = machine_kvm_shadow_mem ( ms ) ;\n if ( shadow_mem != - 1 ) {\n shadow_mem /= 4096 ;\n ret = kvm_vm_ioctl ( s , KVM_SET_NR_MMU_PAGES , shadow_mem ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n }\n if ( kvm_check_extension ( s , KVM_CAP_X86_SMM ) && object_dynamic_cast ( OBJECT ( ms ) , TYPE_PC_MACHINE ) && pc_machine_is_smm_enabled ( PC_MACHINE ( ms ) ) ) {\n smram_machine_done . notify = register_smram_listener ;\n qemu_add_machine_init_done_notifier ( & smram_machine_done ) ;\n }\n return 0 ;\n }"}
{"idx": 4801, "target": 0, "func": "static unsigned int get_sby_perpixel_variance ( VP9_COMP * cpi , const struct buf_2d * ref , BLOCK_SIZE bs ) {\n unsigned int sse ;\n const unsigned int var = cpi -> fn_ptr [ bs ] . vf ( ref -> buf , ref -> stride , VP9_VAR_OFFS , 0 , & sse ) ;\n return ROUND_POWER_OF_TWO ( var , num_pels_log2_lookup [ bs ] ) ;\n }"}
{"idx": 4802, "target": 0, "func": "static void save_context ( VP9_COMP * cpi , int mi_row , int mi_col , ENTROPY_CONTEXT a [ 16 * MAX_MB_PLANE ] , ENTROPY_CONTEXT l [ 16 * MAX_MB_PLANE ] , PARTITION_CONTEXT sa [ 8 ] , PARTITION_CONTEXT sl [ 8 ] , BLOCK_SIZE bsize ) {\n const MACROBLOCK * const x = & cpi -> mb ;\n const MACROBLOCKD * const xd = & x -> e_mbd ;\n int p ;\n const int num_4x4_blocks_wide = num_4x4_blocks_wide_lookup [ bsize ] ;\n const int num_4x4_blocks_high = num_4x4_blocks_high_lookup [ bsize ] ;\n int mi_width = num_8x8_blocks_wide_lookup [ bsize ] ;\n int mi_height = num_8x8_blocks_high_lookup [ bsize ] ;\n for ( p = 0 ;\n p < MAX_MB_PLANE ;\n ++ p ) {\n vpx_memcpy ( a + num_4x4_blocks_wide * p , xd -> above_context [ p ] + ( mi_col * 2 >> xd -> plane [ p ] . subsampling_x ) , ( sizeof ( ENTROPY_CONTEXT ) * num_4x4_blocks_wide ) >> xd -> plane [ p ] . subsampling_x ) ;\n vpx_memcpy ( l + num_4x4_blocks_high * p , xd -> left_context [ p ] + ( ( mi_row & MI_MASK ) * 2 >> xd -> plane [ p ] . subsampling_y ) , ( sizeof ( ENTROPY_CONTEXT ) * num_4x4_blocks_high ) >> xd -> plane [ p ] . subsampling_y ) ;\n }\n vpx_memcpy ( sa , xd -> above_seg_context + mi_col , sizeof ( * xd -> above_seg_context ) * mi_width ) ;\n vpx_memcpy ( sl , xd -> left_seg_context + ( mi_row & MI_MASK ) , sizeof ( xd -> left_seg_context [ 0 ] ) * mi_height ) ;\n }"}
{"idx": 4803, "target": 0, "func": "static int dict_spot_results ( i_ctx_t * i_ctx_p , ref * pdict , const gs_spot_halftone * psp ) {\n int code ;\n code = dict_real_result ( i_ctx_p , pdict , \"ActualFrequency\" , psp -> screen . actual_frequency ) ;\n if ( code < 0 ) return code ;\n return dict_real_result ( i_ctx_p , pdict , \"ActualAngle\" , psp -> screen . actual_angle ) ;\n }"}
{"idx": 4804, "target": 0, "func": "static UBool _isPrivateuseVariantSubtag ( const char * s , int32_t len ) {\n if ( len < 0 ) {\n len = ( int32_t ) uprv_strlen ( s ) ;\n }\n if ( len >= 1 && len <= 8 && _isAlphaNumericString ( s , len ) ) {\n return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 4805, "target": 0, "func": "static bool e1000e_do_ps ( E1000ECore * core , struct NetRxPkt * pkt , size_t * hdr_len ) {\n bool isip4 , isip6 , isudp , istcp ;\n bool fragment ;\n if ( ! e1000e_rx_use_ps_descriptor ( core ) ) {\n return false ;\n }\n net_rx_pkt_get_protocols ( pkt , & isip4 , & isip6 , & isudp , & istcp ) ;\n if ( isip4 ) {\n fragment = net_rx_pkt_get_ip4_info ( pkt ) -> fragment ;\n }\n else if ( isip6 ) {\n fragment = net_rx_pkt_get_ip6_info ( pkt ) -> fragment ;\n }\n else {\n return false ;\n }\n if ( fragment && ( core -> mac [ RFCTL ] & E1000_RFCTL_IPFRSP_DIS ) ) {\n return false ;\n }\n if ( ! fragment && ( isudp || istcp ) ) {\n * hdr_len = net_rx_pkt_get_l5_hdr_offset ( pkt ) ;\n }\n else {\n * hdr_len = net_rx_pkt_get_l4_hdr_offset ( pkt ) ;\n }\n if ( ( * hdr_len > core -> rxbuf_sizes [ 0 ] ) || ( * hdr_len > net_rx_pkt_get_total_len ( pkt ) ) ) {\n return false ;\n }\n return true ;\n }"}
{"idx": 4806, "target": 0, "func": "void vp9_quantize_fp_32x32_c ( const tran_low_t * coeff_ptr , intptr_t n_coeffs , int skip_block , const int16_t * zbin_ptr , const int16_t * round_ptr , const int16_t * quant_ptr , const int16_t * quant_shift_ptr , tran_low_t * qcoeff_ptr , tran_low_t * dqcoeff_ptr , const int16_t * dequant_ptr , int zbin_oq_value , uint16_t * eob_ptr , const int16_t * scan , const int16_t * iscan ) {\n int i , eob = - 1 ;\n ( void ) zbin_ptr ;\n ( void ) quant_shift_ptr ;\n ( void ) zbin_oq_value ;\n ( void ) iscan ;\n vpx_memset ( qcoeff_ptr , 0 , n_coeffs * sizeof ( * qcoeff_ptr ) ) ;\n vpx_memset ( dqcoeff_ptr , 0 , n_coeffs * sizeof ( * dqcoeff_ptr ) ) ;\n if ( ! skip_block ) {\n for ( i = 0 ;\n i < n_coeffs ;\n i ++ ) {\n const int rc = scan [ i ] ;\n const int coeff = coeff_ptr [ rc ] ;\n const int coeff_sign = ( coeff >> 31 ) ;\n int tmp = 0 ;\n int abs_coeff = ( coeff ^ coeff_sign ) - coeff_sign ;\n if ( abs_coeff >= ( dequant_ptr [ rc != 0 ] >> 2 ) ) {\n abs_coeff += ROUND_POWER_OF_TWO ( round_ptr [ rc != 0 ] , 1 ) ;\n abs_coeff = clamp ( abs_coeff , INT16_MIN , INT16_MAX ) ;\n tmp = ( abs_coeff * quant_ptr [ rc != 0 ] ) >> 15 ;\n qcoeff_ptr [ rc ] = ( tmp ^ coeff_sign ) - coeff_sign ;\n dqcoeff_ptr [ rc ] = qcoeff_ptr [ rc ] * dequant_ptr [ rc != 0 ] / 2 ;\n }\n if ( tmp ) eob = i ;\n }\n }\n * eob_ptr = eob + 1 ;\n }"}
{"idx": 4807, "target": 0, "func": "static inline int ivi_scale_mv ( int mv , int mv_scale ) {\n return ( mv + ( mv > 0 ) + ( mv_scale - 1 ) ) >> mv_scale ;\n }"}
{"idx": 4808, "target": 0, "func": "void vp9_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint8_t * dst , ptrdiff_t stride , const uint8_t * above , const uint8_t * left ) {\n type ## _predictor ( dst , stride , size , above , left ) ;\n }\n # if CONFIG_VP9_HIGHBITDEPTH # define intra_pred_high_sized ( type , size ) void vp9_high_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint16_t * dst , ptrdiff_t stride , const uint16_t * above , const uint16_t * left , int bd ) {\n high_ ## type ## _predictor ( dst , stride , size , above , left , bd ) ;\n }\n # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) intra_pred_high_sized ( type , 4 ) intra_pred_high_sized ( type , 8 ) intra_pred_high_sized ( type , 16 ) intra_pred_high_sized ( type , 32 ) # else # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) # endif # if CONFIG_VP9_HIGHBITDEPTH static INLINE void high_d207_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) above ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) {\n dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n }\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) {\n dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n }\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n }\n static INLINE void high_d63_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) {\n dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n }\n dst += stride ;\n }\n }\n static INLINE void high_d45_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) {\n dst [ c ] = r + c + 2 < bs * 2 ? ROUND_POWER_OF_TWO ( above [ r + c ] + above [ r + c + 1 ] * 2 + above [ r + c + 2 ] , 2 ) : above [ bs * 2 - 1 ] ;\n }\n dst += stride ;\n }\n }\n static INLINE void high_d117_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] , 1 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 3 ;\n r < bs ;\n ++ r ) dst [ ( r - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ r - 3 ] + left [ r - 2 ] * 2 + left [ r - 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - 2 * stride + c - 1 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_d135_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - stride + c - 1 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_d153_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] , 1 ) ;\n for ( r = 1 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 1 ] + left [ r ] , 1 ) ;\n dst ++ ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] * 2 + above [ c + 1 ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = dst [ - stride + c - 2 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_v_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memcpy ( dst , above , bs * sizeof ( uint16_t ) ) ;\n dst += stride ;\n }\n }\n static INLINE void high_h_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) above ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , left [ r ] , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_tm_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n int ytop_left = above [ - 1 ] ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = clip_pixel_high ( left [ r ] + above [ c ] - ytop_left , bd ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_128_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) above ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , 128 << ( bd - 8 ) , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_left_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) above ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += left [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_top_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) left ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += above [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n const int count = 2 * bs ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) {\n sum += above [ i ] ;\n sum += left [ i ] ;\n }\n expected_dc = ( sum + ( count >> 1 ) ) / count ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n # endif static INLINE void d207_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n intra_pred_allsizes ( d207 ) static INLINE void d63_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d63 ) static INLINE void d45_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r + c + 2 < bs * 2 ? ROUND_POWER_OF_TWO ( above [ r + c ] + above [ r + c + 1 ] * 2 + above [ r + c + 2 ] , 2 ) : above [ bs * 2 - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d45 ) static INLINE void d117_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] , 1 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 3 ;\n r < bs ;\n ++ r ) dst [ ( r - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ r - 3 ] + left [ r - 2 ] * 2 + left [ r - 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - 2 * stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d117 ) static INLINE void d135_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d135 ) static INLINE void d153_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] , 1 ) ;\n for ( r = 1 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 1 ] + left [ r ] , 1 ) ;\n dst ++ ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] * 2 + above [ c + 1 ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = dst [ - stride + c - 2 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d153 ) static INLINE void v_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memcpy ( dst , above , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( v )"}
{"idx": 4809, "target": 0, "func": "static void qio_channel_websock_handshake_send_res_ok ( QIOChannelWebsock * ioc , const char * key , Error * * errp ) {\n char combined_key [ QIO_CHANNEL_WEBSOCK_CLIENT_KEY_LEN + QIO_CHANNEL_WEBSOCK_GUID_LEN + 1 ] ;\n char * accept = NULL ;\n char * date = qio_channel_websock_date_str ( ) ;\n g_strlcpy ( combined_key , key , QIO_CHANNEL_WEBSOCK_CLIENT_KEY_LEN + 1 ) ;\n g_strlcat ( combined_key , QIO_CHANNEL_WEBSOCK_GUID , QIO_CHANNEL_WEBSOCK_CLIENT_KEY_LEN + QIO_CHANNEL_WEBSOCK_GUID_LEN + 1 ) ;\n if ( qcrypto_hash_base64 ( QCRYPTO_HASH_ALG_SHA1 , combined_key , QIO_CHANNEL_WEBSOCK_CLIENT_KEY_LEN + QIO_CHANNEL_WEBSOCK_GUID_LEN , & accept , errp ) < 0 ) {\n qio_channel_websock_handshake_send_res_err ( ioc , QIO_CHANNEL_WEBSOCK_HANDSHAKE_RES_SERVER_ERR ) ;\n return ;\n }\n qio_channel_websock_handshake_send_res ( ioc , QIO_CHANNEL_WEBSOCK_HANDSHAKE_RES_OK , date , accept ) ;\n g_free ( date ) ;\n g_free ( accept ) ;\n }"}
{"idx": 4810, "target": 0, "func": "static inline void put_pixels8x8_overlapped ( uint8_t * dst , uint8_t * src , int stride ) {\n uint8_t tmp [ 64 ] ;\n int i ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) memcpy ( tmp + i * 8 , src + i * stride , 8 ) ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) memcpy ( dst + i * stride , tmp + i * 8 , 8 ) ;\n }"}
{"idx": 4811, "target": 0, "func": "bool hostname_requires_resolving ( const char * hostname ) {\n char cur ;\n if ( ! hostname ) return FALSE ;\n size_t namelen = strlen ( hostname ) ;\n size_t lhlen = strlen ( my_localhost ) ;\n if ( ( namelen == lhlen ) && ! my_strnncoll ( system_charset_info , ( const uchar * ) hostname , namelen , ( const uchar * ) my_localhost , strlen ( my_localhost ) ) ) return FALSE ;\n for ( ;\n ( cur = * hostname ) ;\n hostname ++ ) {\n if ( ( cur != '%' ) && ( cur != '_' ) && ( cur != '.' ) && ( cur != '/' ) && ( ( cur < '0' ) || ( cur > '9' ) ) ) return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 4812, "target": 0, "func": "void get_type_io_data ( Oid typid , IOFuncSelector which_func , int16 * typlen , bool * typbyval , char * typalign , char * typdelim , Oid * typioparam , Oid * func ) {\n HeapTuple typeTuple ;\n Form_pg_type typeStruct ;\n if ( IsBootstrapProcessingMode ( ) ) {\n Oid typinput ;\n Oid typoutput ;\n boot_get_type_io_data ( typid , typlen , typbyval , typalign , typdelim , typioparam , & typinput , & typoutput ) ;\n switch ( which_func ) {\n case IOFunc_input : * func = typinput ;\n break ;\n case IOFunc_output : * func = typoutput ;\n break ;\n default : elog ( ERROR , \"binary I/O not supported during bootstrap\" ) ;\n break ;\n }\n return ;\n }\n typeTuple = SearchSysCache1 ( TYPEOID , ObjectIdGetDatum ( typid ) ) ;\n if ( ! HeapTupleIsValid ( typeTuple ) ) elog ( ERROR , \"cache lookup failed for type %u\" , typid ) ;\n typeStruct = ( Form_pg_type ) GETSTRUCT ( typeTuple ) ;\n * typlen = typeStruct -> typlen ;\n * typbyval = typeStruct -> typbyval ;\n * typalign = typeStruct -> typalign ;\n * typdelim = typeStruct -> typdelim ;\n * typioparam = getTypeIOParam ( typeTuple ) ;\n switch ( which_func ) {\n case IOFunc_input : * func = typeStruct -> typinput ;\n break ;\n case IOFunc_output : * func = typeStruct -> typoutput ;\n break ;\n case IOFunc_receive : * func = typeStruct -> typreceive ;\n break ;\n case IOFunc_send : * func = typeStruct -> typsend ;\n break ;\n }\n ReleaseSysCache ( typeTuple ) ;\n }"}
{"idx": 4813, "target": 0, "func": "extern int as_mysql_modify_resv ( mysql_conn_t * mysql_conn , slurmdb_reservation_rec_t * resv ) {\n MYSQL_RES * result = NULL ;\n MYSQL_ROW row ;\n int rc = SLURM_SUCCESS ;\n char * cols = NULL , * vals = NULL , * extra = NULL , * query = NULL ;\n time_t start = 0 , now = time ( NULL ) ;\n int i ;\n int set = 0 ;\n char * resv_req_inx [ ] = {\n \"assoclist\" , \"time_start\" , \"time_end\" , \"resv_name\" , \"nodelist\" , \"node_inx\" , \"flags\" , \"tres\" }\n ;\n enum {\n RESV_ASSOCS , RESV_START , RESV_END , RESV_NAME , RESV_NODES , RESV_NODE_INX , RESV_FLAGS , RESV_TRES , RESV_COUNT }\n ;\n if ( ! resv ) {\n error ( \"No reservation was given to edit\" ) ;\n return SLURM_ERROR ;\n }\n if ( ! resv -> id ) {\n error ( \"We need an id to edit a reservation.\" ) ;\n return SLURM_ERROR ;\n }\n if ( ! resv -> time_start ) {\n error ( \"We need a start time to edit a reservation.\" ) ;\n return SLURM_ERROR ;\n }\n if ( ! resv -> cluster || ! resv -> cluster [ 0 ] ) {\n error ( \"We need a cluster name to edit a reservation.\" ) ;\n return SLURM_ERROR ;\n }\n if ( ! resv -> time_start_prev ) {\n error ( \"We need a time to check for last \" \"start of reservation.\" ) ;\n return SLURM_ERROR ;\n }\n xstrfmtcat ( cols , \"%s\" , resv_req_inx [ 0 ] ) ;\n for ( i = 1 ;\n i < RESV_COUNT ;\n i ++ ) {\n xstrfmtcat ( cols , \", %s\" , resv_req_inx [ i ] ) ;\n }\n query = xstrdup_printf ( \"select %s from \\\"%s_%s\\\" where id_resv=%u \" \"and (time_start=%ld || time_start=%ld) \" \"and deleted=0 order by time_start desc \" \"limit 1 FOR UPDATE;\n\" , cols , resv -> cluster , resv_table , resv -> id , resv -> time_start , resv -> time_start_prev ) ;\n try_again : debug4 ( \"%d(%s:%d) query\\n%s\" , mysql_conn -> conn , THIS_FILE , __LINE__ , query ) ;\n if ( ! ( result = mysql_db_query_ret ( mysql_conn , query , 0 ) ) ) {\n rc = SLURM_ERROR ;\n goto end_it ;\n }\n if ( ! ( row = mysql_fetch_row ( result ) ) ) {\n rc = SLURM_ERROR ;\n mysql_free_result ( result ) ;\n error ( \"There is no reservation by id %u, \" \"time_start %ld, and cluster '%s'\" , resv -> id , resv -> time_start_prev , resv -> cluster ) ;\n if ( ! set && resv -> time_end ) {\n xfree ( query ) ;\n query = xstrdup_printf ( \"select %s from \\\"%s_%s\\\" where id_resv=%u \" \"and time_start <= %ld and deleted=0 \" \"order by time_start desc \" \"limit 1;\n\" , cols , resv -> cluster , resv_table , resv -> id , resv -> time_end ) ;\n set = 1 ;\n goto try_again ;\n }\n goto end_it ;\n }\n start = slurm_atoul ( row [ RESV_START ] ) ;\n xfree ( query ) ;\n xfree ( cols ) ;\n set = 0 ;\n if ( ! resv -> name && row [ RESV_NAME ] && row [ RESV_NAME ] [ 0 ] ) resv -> name = xstrdup ( row [ RESV_NAME ] ) ;\n if ( resv -> assocs ) set = 1 ;\n else if ( row [ RESV_ASSOCS ] && row [ RESV_ASSOCS ] [ 0 ] ) resv -> assocs = xstrdup ( row [ RESV_ASSOCS ] ) ;\n if ( resv -> flags != NO_VAL ) set = 1 ;\n else resv -> flags = slurm_atoul ( row [ RESV_FLAGS ] ) ;\n if ( resv -> nodes ) set = 1 ;\n else if ( row [ RESV_NODES ] && row [ RESV_NODES ] [ 0 ] ) {\n resv -> nodes = xstrdup ( row [ RESV_NODES ] ) ;\n resv -> node_inx = xstrdup ( row [ RESV_NODE_INX ] ) ;\n }\n if ( ! resv -> time_end ) resv -> time_end = slurm_atoul ( row [ RESV_END ] ) ;\n if ( resv -> tres_str ) set = 1 ;\n else if ( row [ RESV_TRES ] && row [ RESV_TRES ] [ 0 ] ) resv -> tres_str = xstrdup ( row [ RESV_TRES ] ) ;\n mysql_free_result ( result ) ;\n _setup_resv_limits ( resv , & cols , & vals , & extra ) ;\n if ( ( start > now ) || ! set ) {\n query = xstrdup_printf ( \"update \\\"%s_%s\\\" set deleted=0%s \" \"where deleted=0 and id_resv=%u \" \"and time_start=%ld;\n\" , resv -> cluster , resv_table , extra , resv -> id , start ) ;\n }\n else {\n query = xstrdup_printf ( \"update \\\"%s_%s\\\" set time_end=%ld \" \"where deleted=0 && id_resv=%u \" \"and time_start=%ld;\n\" , resv -> cluster , resv_table , resv -> time_start - 1 , resv -> id , start ) ;\n xstrfmtcat ( query , \"insert into \\\"%s_%s\\\" (id_resv%s) \" \"values (%u%s) \" \"on duplicate key update deleted=0%s;\n\" , resv -> cluster , resv_table , cols , resv -> id , vals , extra ) ;\n }\n if ( debug_flags & DEBUG_FLAG_DB_RESV ) DB_DEBUG ( mysql_conn -> conn , \"query\\n%s\" , query ) ;\n rc = mysql_db_query ( mysql_conn , query ) ;\n end_it : xfree ( query ) ;\n xfree ( cols ) ;\n xfree ( vals ) ;\n xfree ( extra ) ;\n return rc ;\n }"}
{"idx": 4814, "target": 0, "func": "static void voutf ( struct GlobalConfig * config , const char * prefix , const char * fmt , va_list ap ) {\n size_t width = ( 79 - strlen ( prefix ) ) ;\n if ( ! config -> mute ) {\n size_t len ;\n char * ptr ;\n char * print_buffer ;\n print_buffer = curlx_mvaprintf ( fmt , ap ) ;\n if ( ! print_buffer ) return ;\n len = strlen ( print_buffer ) ;\n ptr = print_buffer ;\n while ( len > 0 ) {\n fputs ( prefix , config -> errors ) ;\n if ( len > width ) {\n size_t cut = width - 1 ;\n while ( ! ISSPACE ( ptr [ cut ] ) && cut ) {\n cut -- ;\n }\n if ( 0 == cut ) cut = width - 1 ;\n ( void ) fwrite ( ptr , cut + 1 , 1 , config -> errors ) ;\n fputs ( \"\\n\" , config -> errors ) ;\n ptr += cut + 1 ;\n len -= cut + 1 ;\n }\n else {\n fputs ( ptr , config -> errors ) ;\n len = 0 ;\n }\n }\n curl_free ( print_buffer ) ;\n }\n }"}
{"idx": 4815, "target": 0, "func": "static gboolean isSignal ( const gchar * signal_str_p , const gchar * signalStr ) {\n gint i ;\n gchar * * resultArray ;\n if ( signalStr == NULL ) return FALSE ;\n if ( ( * signal_str_p == '\\0' ) && ( * signalStr == '\\0' ) ) return TRUE ;\n resultArray = g_strsplit ( signalStr , \",\" , 10 ) ;\n for ( i = 0 ;\n resultArray [ i ] ;\n i ++ ) {\n g_strstrip ( resultArray [ i ] ) ;\n if ( strcmp ( resultArray [ i ] , signal_str_p ) == 0 ) return TRUE ;\n }\n g_strfreev ( resultArray ) ;\n return FALSE ;\n }"}
{"idx": 4816, "target": 0, "func": "static int msmpeg4v34_decode_mb ( MpegEncContext * s , int16_t block [ 6 ] [ 64 ] ) {\n int cbp , code , i ;\n uint8_t * coded_val ;\n uint32_t * const mb_type_ptr = & s -> current_picture . mb_type [ s -> mb_x + s -> mb_y * s -> mb_stride ] ;\n if ( s -> pict_type == AV_PICTURE_TYPE_P ) {\n if ( s -> use_skip_mb_code ) {\n if ( get_bits1 ( & s -> gb ) ) {\n s -> mb_intra = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) s -> block_last_index [ i ] = - 1 ;\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = 0 ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = 0 ;\n s -> mb_skipped = 1 ;\n * mb_type_ptr = MB_TYPE_SKIP | MB_TYPE_L0 | MB_TYPE_16x16 ;\n return 0 ;\n }\n }\n code = get_vlc2 ( & s -> gb , ff_mb_non_intra_vlc [ DEFAULT_INTER_INDEX ] . table , MB_NON_INTRA_VLC_BITS , 3 ) ;\n if ( code < 0 ) return - 1 ;\n s -> mb_intra = ( ~ code & 0x40 ) >> 6 ;\n cbp = code & 0x3f ;\n }\n else {\n s -> mb_intra = 1 ;\n code = get_vlc2 ( & s -> gb , ff_msmp4_mb_i_vlc . table , MB_INTRA_VLC_BITS , 2 ) ;\n if ( code < 0 ) return - 1 ;\n cbp = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n int val = ( ( code >> ( 5 - i ) ) & 1 ) ;\n if ( i < 4 ) {\n int pred = ff_msmpeg4_coded_block_pred ( s , i , & coded_val ) ;\n val = val ^ pred ;\n * coded_val = val ;\n }\n cbp |= val << ( 5 - i ) ;\n }\n }\n if ( ! s -> mb_intra ) {\n int mx , my ;\n if ( s -> per_mb_rl_table && cbp ) {\n s -> rl_table_index = decode012 ( & s -> gb ) ;\n s -> rl_chroma_table_index = s -> rl_table_index ;\n }\n ff_h263_pred_motion ( s , 0 , 0 , & mx , & my ) ;\n if ( ff_msmpeg4_decode_motion ( s , & mx , & my ) < 0 ) return - 1 ;\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = mx ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = my ;\n * mb_type_ptr = MB_TYPE_L0 | MB_TYPE_16x16 ;\n }\n else {\n av_dlog ( s , \"I at %d %d %d %06X\\n\" , s -> mb_x , s -> mb_y , ( ( cbp & 3 ) ? 1 : 0 ) + ( ( cbp & 0x3C ) ? 2 : 0 ) , show_bits ( & s -> gb , 24 ) ) ;\n s -> ac_pred = get_bits1 ( & s -> gb ) ;\n * mb_type_ptr = MB_TYPE_INTRA ;\n if ( s -> inter_intra_pred ) {\n s -> h263_aic_dir = get_vlc2 ( & s -> gb , ff_inter_intra_vlc . table , INTER_INTRA_VLC_BITS , 1 ) ;\n av_dlog ( s , \"%d%d %d %d/\" , s -> ac_pred , s -> h263_aic_dir , s -> mb_x , s -> mb_y ) ;\n }\n if ( s -> per_mb_rl_table && cbp ) {\n s -> rl_table_index = decode012 ( & s -> gb ) ;\n s -> rl_chroma_table_index = s -> rl_table_index ;\n }\n }\n s -> dsp . clear_blocks ( s -> block [ 0 ] ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( ff_msmpeg4_decode_block ( s , block [ i ] , i , ( cbp >> ( 5 - i ) ) & 1 , NULL ) < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"\\nerror while decoding block: %d x %d (%d)\\n\" , s -> mb_x , s -> mb_y , i ) ;\n return - 1 ;\n }\n }\n return 0 ;\n }"}
{"idx": 4817, "target": 0, "func": "static void use_normal_update_speed ( WmallDecodeCtx * s , int ich ) {\n int ilms , recent , icoef ;\n for ( ilms = s -> cdlms_ttl [ ich ] - 1 ;\n ilms >= 0 ;\n ilms -- ) {\n recent = s -> cdlms [ ich ] [ ilms ] . recent ;\n if ( s -> update_speed [ ich ] == 8 ) continue ;\n if ( s -> bV3RTM ) for ( icoef = 0 ;\n icoef < s -> cdlms [ ich ] [ ilms ] . order ;\n icoef ++ ) s -> cdlms [ ich ] [ ilms ] . lms_updates [ icoef + recent ] /= 2 ;\n else for ( icoef = 0 ;\n icoef < s -> cdlms [ ich ] [ ilms ] . order ;\n icoef ++ ) s -> cdlms [ ich ] [ ilms ] . lms_updates [ icoef ] /= 2 ;\n }\n s -> update_speed [ ich ] = 8 ;\n }"}
{"idx": 4818, "target": 1, "func": "static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_reserve ( sk_ ## t1 ## _compfunc compare , int n ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_reserve ( ( OPENSSL_sk_compfunc ) compare , n ) ;\n }\n static ossl_inline int sk_ ## t1 ## _reserve ( STACK_OF ( t1 ) * sk , int n ) {\n return OPENSSL_sk_reserve ( ( OPENSSL_STACK * ) sk , n ) ;\n }\n static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 4819, "target": 1, "func": "void vp9_lpf_vertical_8_dual_sse2 ( uint8_t * s , int p , const uint8_t * blimit0 , const uint8_t * limit0 , const uint8_t * thresh0 , const uint8_t * blimit1 , const uint8_t * limit1 , const uint8_t * thresh1 ) {\n DECLARE_ALIGNED_ARRAY ( 16 , unsigned char , t_dst , 16 * 8 ) ;\n unsigned char * src [ 2 ] ;\n unsigned char * dst [ 2 ] ;\n transpose8x16 ( s - 4 , s - 4 + p * 8 , p , t_dst , 16 ) ;\n vp9_lpf_horizontal_8_dual_sse2 ( t_dst + 4 * 16 , 16 , blimit0 , limit0 , thresh0 , blimit1 , limit1 , thresh1 ) ;\n src [ 0 ] = t_dst ;\n src [ 1 ] = t_dst + 8 ;\n dst [ 0 ] = s - 4 ;\n dst [ 1 ] = s - 4 + p * 8 ;\n transpose ( src , 16 , dst , p , 2 ) ;\n }"}
{"idx": 4820, "target": 0, "func": "void xmlCleanupGlobals ( void ) {\n if ( xmlThrDefMutex != NULL ) {\n xmlFreeMutex ( xmlThrDefMutex ) ;\n xmlThrDefMutex = NULL ;\n }\n __xmlGlobalInitMutexDestroy ( ) ;\n }"}
{"idx": 4821, "target": 0, "func": "void vp8_quantize_mb_c ( MACROBLOCK * x ) {\n int i ;\n int has_2nd_order = ( x -> e_mbd . mode_info_context -> mbmi . mode != B_PRED && x -> e_mbd . mode_info_context -> mbmi . mode != SPLITMV ) ;\n for ( i = 0 ;\n i < 24 + has_2nd_order ;\n i ++ ) x -> quantize_b ( & x -> block [ i ] , & x -> e_mbd . block [ i ] ) ;\n }"}
{"idx": 4822, "target": 1, "func": "bool ans_key_h ( connection_t * c ) {\n char from_name [ MAX_STRING_SIZE ] ;\n char to_name [ MAX_STRING_SIZE ] ;\n char key [ MAX_STRING_SIZE ] ;\n char address [ MAX_STRING_SIZE ] = \"\" ;\n char port [ MAX_STRING_SIZE ] = \"\" ;\n int cipher , digest , maclength , compression ;\n node_t * from , * to ;\n if ( sscanf ( c -> buffer , \"%*d \" MAX_STRING \" \" MAX_STRING \" \" MAX_STRING \" %d %d %d %d \" MAX_STRING \" \" MAX_STRING , from_name , to_name , key , & cipher , & digest , & maclength , & compression , address , port ) < 7 ) {\n logger ( LOG_ERR , \"Got bad %s from %s (%s)\" , \"ANS_KEY\" , c -> name , c -> hostname ) ;\n return false ;\n }\n if ( ! check_id ( from_name ) || ! check_id ( to_name ) ) {\n logger ( LOG_ERR , \"Got bad %s from %s (%s): %s\" , \"ANS_KEY\" , c -> name , c -> hostname , \"invalid name\" ) ;\n return false ;\n }\n from = lookup_node ( from_name ) ;\n if ( ! from ) {\n logger ( LOG_ERR , \"Got %s from %s (%s) origin %s which does not exist in our connection list\" , \"ANS_KEY\" , c -> name , c -> hostname , from_name ) ;\n return true ;\n }\n to = lookup_node ( to_name ) ;\n if ( ! to ) {\n logger ( LOG_ERR , \"Got %s from %s (%s) destination %s which does not exist in our connection list\" , \"ANS_KEY\" , c -> name , c -> hostname , to_name ) ;\n return true ;\n }\n if ( to != myself ) {\n if ( tunnelserver ) {\n return true ;\n }\n if ( ! to -> status . reachable ) {\n logger ( LOG_WARNING , \"Got %s from %s (%s) destination %s which is not reachable\" , \"ANS_KEY\" , c -> name , c -> hostname , to_name ) ;\n return true ;\n }\n if ( ! * address && from -> address . sa . sa_family != AF_UNSPEC && to -> minmtu ) {\n char * address , * port ;\n ifdebug ( PROTOCOL ) logger ( LOG_DEBUG , \"Appending reflexive UDP address to ANS_KEY from %s to %s\" , from -> name , to -> name ) ;\n sockaddr2str ( & from -> address , & address , & port ) ;\n send_request ( to -> nexthop -> connection , \"%s %s %s\" , c -> buffer , address , port ) ;\n free ( address ) ;\n free ( port ) ;\n return true ;\n }\n return send_request ( to -> nexthop -> connection , \"%s\" , c -> buffer ) ;\n }\n from -> status . validkey = false ;\n from -> outkey = xrealloc ( from -> outkey , strlen ( key ) / 2 ) ;\n from -> outkeylength = strlen ( key ) / 2 ;\n if ( ! hex2bin ( key , from -> outkey , from -> outkeylength ) ) {\n logger ( LOG_ERR , \"Got bad %s from %s(%s): %s\" , \"ANS_KEY\" , from -> name , from -> hostname , \"invalid key\" ) ;\n return true ;\n }\n if ( cipher ) {\n from -> outcipher = EVP_get_cipherbynid ( cipher ) ;\n if ( ! from -> outcipher ) {\n logger ( LOG_ERR , \"Node %s (%s) uses unknown cipher!\" , from -> name , from -> hostname ) ;\n return true ;\n }\n if ( from -> outkeylength != EVP_CIPHER_key_length ( from -> outcipher ) + EVP_CIPHER_iv_length ( from -> outcipher ) ) {\n logger ( LOG_ERR , \"Node %s (%s) uses wrong keylength!\" , from -> name , from -> hostname ) ;\n return true ;\n }\n }\n else {\n from -> outcipher = NULL ;\n }\n from -> outmaclength = maclength ;\n if ( digest ) {\n from -> outdigest = EVP_get_digestbynid ( digest ) ;\n if ( ! from -> outdigest ) {\n logger ( LOG_ERR , \"Node %s (%s) uses unknown digest!\" , from -> name , from -> hostname ) ;\n return true ;\n }\n if ( from -> outmaclength > EVP_MD_size ( from -> outdigest ) || from -> outmaclength < 0 ) {\n logger ( LOG_ERR , \"Node %s (%s) uses bogus MAC length!\" , from -> name , from -> hostname ) ;\n return true ;\n }\n }\n else {\n from -> outdigest = NULL ;\n }\n if ( compression < 0 || compression > 11 ) {\n logger ( LOG_ERR , \"Node %s (%s) uses bogus compression level!\" , from -> name , from -> hostname ) ;\n return true ;\n }\n from -> outcompression = compression ;\n if ( from -> outcipher ) if ( ! EVP_EncryptInit_ex ( from -> outctx , from -> outcipher , NULL , ( unsigned char * ) from -> outkey , ( unsigned char * ) from -> outkey + EVP_CIPHER_key_length ( from -> outcipher ) ) ) {\n logger ( LOG_ERR , \"Error during initialisation of key from %s (%s): %s\" , from -> name , from -> hostname , ERR_error_string ( ERR_get_error ( ) , NULL ) ) ;\n return true ;\n }\n from -> status . validkey = true ;\n from -> sent_seqno = 0 ;\n if ( * address && * port ) {\n ifdebug ( PROTOCOL ) logger ( LOG_DEBUG , \"Using reflexive UDP address from %s: %s port %s\" , from -> name , address , port ) ;\n sockaddr_t sa = str2sockaddr ( address , port ) ;\n update_node_udp ( from , & sa ) ;\n }\n if ( from -> options & OPTION_PMTU_DISCOVERY && ! from -> mtuevent ) {\n send_mtu_probe ( from ) ;\n }\n return true ;\n }"}
{"idx": 4823, "target": 0, "func": "static void stroke_terminate ( private_stroke_socket_t * this , stroke_msg_t * msg , FILE * out ) {\n pop_string ( msg , & msg -> terminate . name ) ;\n DBG1 ( DBG_CFG , \"received stroke: terminate '%s'\" , msg -> terminate . name ) ;\n this -> control -> terminate ( this -> control , msg , out ) ;\n }"}
{"idx": 4824, "target": 0, "func": "static inline unsigned int ip_hdrlen ( const struct sk_buff * skb ) {\n return ip_hdr ( skb ) -> ihl * 4 ;\n }"}
{"idx": 4825, "target": 0, "func": "static inline Quantum GetPixelGray ( const Image * restrict image , const Quantum * restrict pixel ) {\n return ( pixel [ image -> channel_map [ GrayPixelChannel ] . offset ] ) ;\n }"}
{"idx": 4826, "target": 0, "func": "char * xmlrpc_normalizeBuffer ( const char * buf ) {\n char * newbuf ;\n int i , len , j = 0 ;\n len = strlen ( buf ) ;\n newbuf = ( char * ) smalloc ( sizeof ( char ) * len + 1 ) ;\n for ( i = 0 ;\n i < len ;\n i ++ ) {\n switch ( buf [ i ] ) {\n case 1 : break ;\n case 2 : break ;\n case 3 : if ( isdigit ( ( unsigned char ) buf [ i + 1 ] ) ) {\n i ++ ;\n if ( isdigit ( ( unsigned char ) buf [ i + 1 ] ) ) {\n i ++ ;\n }\n if ( buf [ i + 1 ] == ',' ) {\n i ++ ;\n if ( isdigit ( ( unsigned char ) buf [ i + 1 ] ) ) {\n i ++ ;\n }\n if ( isdigit ( ( unsigned char ) buf [ i + 1 ] ) ) {\n i ++ ;\n }\n }\n }\n break ;\n case 9 : break ;\n case 10 : break ;\n case 13 : break ;\n case 22 : break ;\n case 31 : break ;\n default : if ( buf [ i ] > 31 ) {\n newbuf [ j ] = buf [ i ] ;\n j ++ ;\n }\n }\n }\n newbuf [ j ] = 0 ;\n return ( newbuf ) ;\n }"}
{"idx": 4827, "target": 0, "func": "static void skip_readdir_error ( CommonJob * common , GFile * dir ) {\n if ( common -> skip_readdir_error == NULL ) {\n common -> skip_readdir_error = g_hash_table_new_full ( g_file_hash , ( GEqualFunc ) g_file_equal , g_object_unref , NULL ) ;\n }\n g_hash_table_insert ( common -> skip_readdir_error , g_object_ref ( dir ) , dir ) ;\n }"}
{"idx": 4828, "target": 0, "func": "static void completion_msg_server ( GSList * * list , SERVER_REC * server , const char * nick , const char * prefix ) {\n LAST_MSG_REC * msg ;\n GSList * tmp ;\n int len ;\n g_return_if_fail ( nick != NULL ) ;\n len = strlen ( nick ) ;\n tmp = server == NULL ? global_lastmsgs : ( ( MODULE_SERVER_REC * ) MODULE_DATA ( server ) ) -> lastmsgs ;\n for ( ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n LAST_MSG_REC * rec = tmp -> data ;\n if ( len != 0 && g_ascii_strncasecmp ( rec -> nick , nick , len ) != 0 ) continue ;\n msg = g_new ( LAST_MSG_REC , 1 ) ;\n msg -> time = rec -> time ;\n msg -> nick = prefix == NULL || * prefix == '\\0' ? g_strdup ( rec -> nick ) : g_strconcat ( prefix , \" \" , rec -> nick , NULL ) ;\n * list = g_slist_insert_sorted ( * list , msg , ( GCompareFunc ) last_msg_cmp ) ;\n }\n }"}
{"idx": 4829, "target": 0, "func": "static int execute_code ( AVCodecContext * avctx , int c ) {\n AnsiContext * s = avctx -> priv_data ;\n int ret , i , width , height ;\n switch ( c ) {\n case 'A' : s -> y = FFMAX ( s -> y - ( s -> nb_args > 0 ? s -> args [ 0 ] * s -> font_height : s -> font_height ) , 0 ) ;\n break ;\n case 'B' : s -> y = FFMIN ( s -> y + ( s -> nb_args > 0 ? s -> args [ 0 ] * s -> font_height : s -> font_height ) , avctx -> height - s -> font_height ) ;\n break ;\n case 'C' : s -> x = FFMIN ( s -> x + ( s -> nb_args > 0 ? s -> args [ 0 ] * FONT_WIDTH : FONT_WIDTH ) , avctx -> width - FONT_WIDTH ) ;\n break ;\n case 'D' : s -> x = FFMAX ( s -> x - ( s -> nb_args > 0 ? s -> args [ 0 ] * FONT_WIDTH : FONT_WIDTH ) , 0 ) ;\n break ;\n case 'H' : case 'f' : s -> y = s -> nb_args > 0 ? av_clip ( ( s -> args [ 0 ] - 1 ) * s -> font_height , 0 , avctx -> height - s -> font_height ) : 0 ;\n s -> x = s -> nb_args > 1 ? av_clip ( ( s -> args [ 1 ] - 1 ) * FONT_WIDTH , 0 , avctx -> width - FONT_WIDTH ) : 0 ;\n break ;\n case 'h' : case 'l' : if ( s -> nb_args < 2 ) s -> args [ 0 ] = DEFAULT_SCREEN_MODE ;\n switch ( s -> args [ 0 ] ) {\n case 0 : case 1 : case 4 : case 5 : case 13 : case 19 : s -> font = ff_cga_font ;\n s -> font_height = 8 ;\n width = 40 << 3 ;\n height = 25 << 3 ;\n break ;\n case 2 : case 3 : s -> font = ff_vga16_font ;\n s -> font_height = 16 ;\n width = 80 << 3 ;\n height = 25 << 4 ;\n break ;\n case 6 : case 14 : s -> font = ff_cga_font ;\n s -> font_height = 8 ;\n width = 80 << 3 ;\n height = 25 << 3 ;\n break ;\n case 7 : break ;\n case 15 : case 16 : s -> font = ff_cga_font ;\n s -> font_height = 8 ;\n width = 80 << 3 ;\n height = 43 << 3 ;\n break ;\n case 17 : case 18 : s -> font = ff_cga_font ;\n s -> font_height = 8 ;\n width = 80 << 3 ;\n height = 60 << 4 ;\n break ;\n default : av_log_ask_for_sample ( avctx , \"unsupported screen mode\\n\" ) ;\n }\n if ( width != avctx -> width || height != avctx -> height ) {\n av_frame_unref ( s -> frame ) ;\n avcodec_set_dimensions ( avctx , width , height ) ;\n ret = ff_get_buffer ( avctx , s -> frame , AV_GET_BUFFER_FLAG_REF ) ;\n if ( ret < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n s -> frame -> pict_type = AV_PICTURE_TYPE_I ;\n s -> frame -> palette_has_changed = 1 ;\n memcpy ( s -> frame -> data [ 1 ] , ff_cga_palette , 16 * 4 ) ;\n erase_screen ( avctx ) ;\n }\n else if ( c == 'l' ) {\n erase_screen ( avctx ) ;\n }\n break ;\n case 'J' : switch ( s -> args [ 0 ] ) {\n case 0 : erase_line ( avctx , s -> x , avctx -> width - s -> x ) ;\n if ( s -> y < avctx -> height - s -> font_height ) memset ( s -> frame -> data [ 0 ] + ( s -> y + s -> font_height ) * s -> frame -> linesize [ 0 ] , DEFAULT_BG_COLOR , ( avctx -> height - s -> y - s -> font_height ) * s -> frame -> linesize [ 0 ] ) ;\n break ;\n case 1 : erase_line ( avctx , 0 , s -> x ) ;\n if ( s -> y > 0 ) memset ( s -> frame -> data [ 0 ] , DEFAULT_BG_COLOR , s -> y * s -> frame -> linesize [ 0 ] ) ;\n break ;\n case 2 : erase_screen ( avctx ) ;\n }\n break ;\n case 'K' : switch ( s -> args [ 0 ] ) {\n case 0 : erase_line ( avctx , s -> x , avctx -> width - s -> x ) ;\n break ;\n case 1 : erase_line ( avctx , 0 , s -> x ) ;\n break ;\n case 2 : erase_line ( avctx , 0 , avctx -> width ) ;\n }\n break ;\n case 'm' : if ( s -> nb_args == 0 ) {\n s -> nb_args = 1 ;\n s -> args [ 0 ] = 0 ;\n }\n for ( i = 0 ;\n i < FFMIN ( s -> nb_args , MAX_NB_ARGS ) ;\n i ++ ) {\n int m = s -> args [ i ] ;\n if ( m == 0 ) {\n s -> attributes = 0 ;\n s -> fg = DEFAULT_FG_COLOR ;\n s -> bg = DEFAULT_BG_COLOR ;\n }\n else if ( m == 1 || m == 2 || m == 4 || m == 5 || m == 7 || m == 8 ) {\n s -> attributes |= 1 << ( m - 1 ) ;\n }\n else if ( m >= 30 && m <= 38 ) {\n s -> fg = ansi_to_cga [ m - 30 ] ;\n }\n else if ( m == 39 ) {\n s -> fg = ansi_to_cga [ DEFAULT_FG_COLOR ] ;\n }\n else if ( m >= 40 && m <= 47 ) {\n s -> bg = ansi_to_cga [ m - 40 ] ;\n }\n else if ( m == 49 ) {\n s -> fg = ansi_to_cga [ DEFAULT_BG_COLOR ] ;\n }\n else {\n av_log_ask_for_sample ( avctx , \"unsupported rendition parameter\\n\" ) ;\n }\n }\n break ;\n case 'n' : case 'R' : break ;\n case 's' : s -> sx = s -> x ;\n s -> sy = s -> y ;\n break ;\n case 'u' : s -> x = av_clip ( s -> sx , 0 , avctx -> width - FONT_WIDTH ) ;\n s -> y = av_clip ( s -> sy , 0 , avctx -> height - s -> font_height ) ;\n break ;\n default : av_log_ask_for_sample ( avctx , \"unsupported escape code\\n\" ) ;\n break ;\n }\n return 0 ;\n }"}
{"idx": 4830, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind )"}
{"idx": 4831, "target": 0, "func": "void hb_set_union ( hb_set_t * set , const hb_set_t * other ) {\n set -> union_ ( other ) ;\n }"}
{"idx": 4832, "target": 0, "func": "static uint64_t _get_db_index ( mysql_conn_t * mysql_conn , time_t submit , uint32_t jobid , uint32_t associd ) {\n MYSQL_RES * result = NULL ;\n MYSQL_ROW row ;\n uint64_t db_index = 0 ;\n char * query = xstrdup_printf ( \"select job_db_inx from \\\"%s_%s\\\" where \" \"time_submit=%d and id_job=%u \" \"and id_assoc=%u\" , mysql_conn -> cluster_name , job_table , ( int ) submit , jobid , associd ) ;\n if ( ! ( result = mysql_db_query_ret ( mysql_conn , query , 0 ) ) ) {\n xfree ( query ) ;\n return 0 ;\n }\n xfree ( query ) ;\n row = mysql_fetch_row ( result ) ;\n if ( ! row ) {\n mysql_free_result ( result ) ;\n debug4 ( \"We can't get a db_index for this combo, \" \"time_submit=%d and id_job=%u and id_assoc=%u. \" \"We must not have heard about the start yet, \" \"no big deal, we will get one right after this.\" , ( int ) submit , jobid , associd ) ;\n return 0 ;\n }\n db_index = slurm_atoull ( row [ 0 ] ) ;\n mysql_free_result ( result ) ;\n return db_index ;\n }"}
{"idx": 4833, "target": 0, "func": "gboolean gst_asf_demux_is_unknown_stream ( GstASFDemux * demux , guint stream_num ) {\n return g_slist_find ( demux -> other_streams , GINT_TO_POINTER ( stream_num ) ) == NULL ;\n }"}
{"idx": 4834, "target": 0, "func": "METHOD ( asn1_parser_t , destroy , void , private_asn1_parser_t * this ) {\n free ( this ) ;\n }"}
{"idx": 4835, "target": 0, "func": "static guint32 dissect_minivideopacket ( tvbuff_t * tvb , guint32 offset , guint16 scallno , packet_info * pinfo , proto_tree * iax2_tree , proto_tree * main_tree ) {\n guint32 ts ;\n iax_packet_data * iax_packet ;\n gboolean rtp_marker ;\n proto_item * item ;\n ts = tvb_get_ntohs ( tvb , offset ) ;\n rtp_marker = ts & 0x8000 ? TRUE : FALSE ;\n ts &= ~ 0x8000 ;\n iax_packet = iax2_get_packet_data_for_minipacket ( pinfo , scallno , TRUE ) ;\n if ( iax2_tree ) {\n if ( iax_packet -> call_data ) {\n item = proto_tree_add_uint ( iax2_tree , hf_iax2_callno , tvb , 0 , 4 , iax_packet -> call_data -> forward_circuit_ids [ 0 ] ) ;\n PROTO_ITEM_SET_GENERATED ( item ) ;\n }\n proto_tree_add_item ( iax2_tree , hf_iax2_minividts , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n iax2_add_ts_fields ( pinfo , iax2_tree , tvb , iax_packet , ( guint16 ) ts ) ;\n proto_tree_add_item ( iax2_tree , hf_iax2_minividmarker , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n }\n else {\n iax2_add_ts_fields ( pinfo , iax2_tree , tvb , iax_packet , ( guint16 ) ts ) ;\n }\n offset += 2 ;\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"Mini video packet, source call# %d, timestamp %ums%s\" , scallno , ts , rtp_marker ? \", Mark\" : \"\" ) ;\n dissect_payload ( tvb , offset , pinfo , iax2_tree , main_tree , ts , TRUE , iax_packet ) ;\n iax_packet -> first_time = FALSE ;\n return offset ;\n }"}
{"idx": 4836, "target": 0, "func": "static int cin_decode_lzss ( const unsigned char * src , int src_size , unsigned char * dst , int dst_size ) {\n uint16_t cmd ;\n int i , sz , offset , code ;\n unsigned char * dst_end = dst + dst_size , * dst_start = dst ;\n const unsigned char * src_end = src + src_size ;\n while ( src < src_end && dst < dst_end ) {\n code = * src ++ ;\n for ( i = 0 ;\n i < 8 && src < src_end && dst < dst_end ;\n ++ i ) {\n if ( code & ( 1 << i ) ) {\n * dst ++ = * src ++ ;\n }\n else {\n cmd = AV_RL16 ( src ) ;\n src += 2 ;\n offset = cmd >> 4 ;\n if ( ( int ) ( dst - dst_start ) < offset + 1 ) return AVERROR_INVALIDDATA ;\n sz = ( cmd & 0xF ) + 2 ;\n sz = FFMIN ( sz , dst_end - dst ) ;\n while ( sz -- ) {\n * dst = * ( dst - offset - 1 ) ;\n ++ dst ;\n }\n }\n }\n }\n return 0 ;\n }"}
{"idx": 4837, "target": 0, "func": "void do_get_file_name ( struct st_command * command , char * dest , uint dest_max_len ) {\n char * p = command -> first_argument , * name ;\n if ( ! * p ) die ( \"Missing file name argument\" ) ;\n name = p ;\n while ( * p && ! my_isspace ( charset_info , * p ) ) p ++ ;\n if ( * p ) * p ++ = 0 ;\n command -> last_argument = p ;\n strmake ( dest , name , dest_max_len - 1 ) ;\n }"}
{"idx": 4838, "target": 0, "func": "static int init_dumping ( char * database , int init_func ( char * ) ) {\n if ( mysql_select_db ( mysql , database ) ) {\n DB_error ( mysql , \"when selecting the database\" ) ;\n return 1 ;\n }\n if ( ! path && ! opt_xml ) {\n if ( opt_databases || opt_alldbs ) {\n char quoted_database_buf [ NAME_LEN * 2 + 3 ] ;\n char * qdatabase = quote_name ( database , quoted_database_buf , opt_quoted ) ;\n print_comment ( md_result_file , 0 , \"\\n--\\n-- Current Database: %s\\n--\\n\" , fix_for_comment ( qdatabase ) ) ;\n init_func ( qdatabase ) ;\n fprintf ( md_result_file , \"\\nUSE %s;\n\\n\" , qdatabase ) ;\n check_io ( md_result_file ) ;\n }\n }\n return 0 ;\n }"}
{"idx": 4839, "target": 0, "func": "static uint64_t openpic_tmr_read ( void * opaque , hwaddr addr , unsigned len ) {\n OpenPICState * opp = opaque ;\n uint32_t retval = - 1 ;\n int idx ;\n DPRINTF ( \"%s: addr %#\" HWADDR_PRIx \"\\n\" , __func__ , addr ) ;\n if ( addr & 0xF ) {\n goto out ;\n }\n idx = ( addr >> 6 ) & 0x3 ;\n if ( addr == 0x0 ) {\n retval = opp -> tfrr ;\n goto out ;\n }\n switch ( addr & 0x30 ) {\n case 0x00 : retval = opp -> timers [ idx ] . tccr ;\n break ;\n case 0x10 : retval = opp -> timers [ idx ] . tbcr ;\n break ;\n case 0x20 : retval = read_IRQreg_ivpr ( opp , opp -> irq_tim0 + idx ) ;\n break ;\n case 0x30 : retval = read_IRQreg_idr ( opp , opp -> irq_tim0 + idx ) ;\n break ;\n }\n out : DPRINTF ( \"%s: => 0x%08x\\n\" , __func__ , retval ) ;\n return retval ;\n }"}
{"idx": 4840, "target": 0, "func": "static inline void take_selinux_option ( char * * to , char * from , int * first , int len ) {\n int current_size = 0 ;\n if ( ! * first ) {\n * * to = '|' ;\n * to += 1 ;\n }\n else * first = 0 ;\n while ( current_size < len ) {\n if ( * from != '\"' ) {\n * * to = * from ;\n * to += 1 ;\n }\n from += 1 ;\n current_size += 1 ;\n }\n }"}
{"idx": 4841, "target": 0, "func": "static double exsltMathConstant ( xmlChar * name , double precision ) {\n xmlChar * str ;\n double ret ;\n if ( ( name == NULL ) || ( xmlXPathIsNaN ( precision ) ) || ( precision < 1.0 ) ) {\n return xmlXPathNAN ;\n }\n if ( xmlStrEqual ( name , BAD_CAST \"PI\" ) ) {\n int len = xmlStrlen ( EXSLT_PI ) ;\n if ( precision <= len ) len = ( int ) precision ;\n str = xmlStrsub ( EXSLT_PI , 0 , len ) ;\n }\n else if ( xmlStrEqual ( name , BAD_CAST \"E\" ) ) {\n int len = xmlStrlen ( EXSLT_E ) ;\n if ( precision <= len ) len = ( int ) precision ;\n str = xmlStrsub ( EXSLT_E , 0 , len ) ;\n }\n else if ( xmlStrEqual ( name , BAD_CAST \"SQRRT2\" ) ) {\n int len = xmlStrlen ( EXSLT_SQRRT2 ) ;\n if ( precision <= len ) len = ( int ) precision ;\n str = xmlStrsub ( EXSLT_SQRRT2 , 0 , len ) ;\n }\n else if ( xmlStrEqual ( name , BAD_CAST \"LN2\" ) ) {\n int len = xmlStrlen ( EXSLT_LN2 ) ;\n if ( precision <= len ) len = ( int ) precision ;\n str = xmlStrsub ( EXSLT_LN2 , 0 , len ) ;\n }\n else if ( xmlStrEqual ( name , BAD_CAST \"LN10\" ) ) {\n int len = xmlStrlen ( EXSLT_LN10 ) ;\n if ( precision <= len ) len = ( int ) precision ;\n str = xmlStrsub ( EXSLT_LN10 , 0 , len ) ;\n }\n else if ( xmlStrEqual ( name , BAD_CAST \"LOG2E\" ) ) {\n int len = xmlStrlen ( EXSLT_LOG2E ) ;\n if ( precision <= len ) len = ( int ) precision ;\n str = xmlStrsub ( EXSLT_LOG2E , 0 , len ) ;\n }\n else if ( xmlStrEqual ( name , BAD_CAST \"SQRT1_2\" ) ) {\n int len = xmlStrlen ( EXSLT_SQRT1_2 ) ;\n if ( precision <= len ) len = ( int ) precision ;\n str = xmlStrsub ( EXSLT_SQRT1_2 , 0 , len ) ;\n }\n else {\n str = NULL ;\n }\n if ( str == NULL ) return xmlXPathNAN ;\n ret = xmlXPathCastStringToNumber ( str ) ;\n xmlFree ( str ) ;\n return ret ;\n }"}
{"idx": 4842, "target": 0, "func": "static int matroska_parse_seekhead_entry ( MatroskaDemuxContext * matroska , int idx ) {\n EbmlList * seekhead_list = & matroska -> seekhead ;\n uint32_t level_up = matroska -> level_up ;\n uint32_t saved_id = matroska -> current_id ;\n MatroskaSeekhead * seekhead = seekhead_list -> elem ;\n int64_t before_pos = avio_tell ( matroska -> ctx -> pb ) ;\n MatroskaLevel level ;\n int64_t offset ;\n int ret = 0 ;\n if ( idx >= seekhead_list -> nb_elem || seekhead [ idx ] . id == MATROSKA_ID_SEEKHEAD || seekhead [ idx ] . id == MATROSKA_ID_CLUSTER ) return 0 ;\n offset = seekhead [ idx ] . pos + matroska -> segment_start ;\n if ( avio_seek ( matroska -> ctx -> pb , offset , SEEK_SET ) == offset ) {\n if ( matroska -> num_levels == EBML_MAX_DEPTH ) {\n av_log ( matroska -> ctx , AV_LOG_INFO , \"Max EBML element depth (%d) reached, \" \"cannot parse further.\\n\" , EBML_MAX_DEPTH ) ;\n ret = AVERROR_INVALIDDATA ;\n }\n else {\n level . start = 0 ;\n level . length = ( uint64_t ) - 1 ;\n matroska -> levels [ matroska -> num_levels ] = level ;\n matroska -> num_levels ++ ;\n matroska -> current_id = 0 ;\n ret = ebml_parse ( matroska , matroska_segment , matroska ) ;\n while ( matroska -> num_levels ) {\n uint64_t length = matroska -> levels [ -- matroska -> num_levels ] . length ;\n if ( length == ( uint64_t ) - 1 ) break ;\n }\n }\n }\n avio_seek ( matroska -> ctx -> pb , before_pos , SEEK_SET ) ;\n matroska -> level_up = level_up ;\n matroska -> current_id = saved_id ;\n return ret ;\n }"}
{"idx": 4843, "target": 0, "func": "const char * TSUrlSchemeGet ( TSMBuffer bufp , TSMLoc obj , int * length ) {\n return URLPartGet ( bufp , obj , length , & URL : : scheme_get ) ;\n }"}
{"idx": 4844, "target": 0, "func": "static int dissect_segment_ofstable ( tvbuff_t * tvb , int offset , packet_info * pinfo _U_ , proto_tree * tree , lbmpdm_offset_table_t * * offset_table , int encoding ) {\n proto_item * subtree_item = NULL ;\n proto_tree * subtree = NULL ;\n int datalen = 0 ;\n int seglen = 0 ;\n int ofs = 0 ;\n int field_count = 0 ;\n int idx ;\n gint32 * id_list = NULL ;\n gint32 * ofs_list = NULL ;\n gint32 max_index = - 1 ;\n gint32 min_offset = G_MAXINT32 ;\n lbmpdm_offset_table_t * ofs_table = NULL ;\n seglen = lbmpdm_get_segment_length ( tvb , offset , encoding , & datalen ) ;\n subtree_item = proto_tree_add_none_format ( tree , hf_lbmpdm_segment , tvb , offset , seglen , \"Offset Table Segment\" ) ;\n subtree = proto_item_add_subtree ( subtree_item , ett_lbmpdm_segment ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_segment_next_hdr , tvb , offset + O_LBMPDM_SEG_HDR_T_NEXT_HDR , L_LBMPDM_SEG_HDR_T_NEXT_HDR , encoding ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_segment_flags , tvb , offset + O_LBMPDM_SEG_HDR_T_FLAGS , L_LBMPDM_SEG_HDR_T_FLAGS , encoding ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_segment_res , tvb , offset + O_LBMPDM_SEG_HDR_T_RES , L_LBMPDM_SEG_HDR_T_RES , encoding ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_segment_len , tvb , offset + O_LBMPDM_SEG_HDR_T_LEN , L_LBMPDM_SEG_HDR_T_LEN , encoding ) ;\n field_count = datalen / L_LBMPDM_OFFSET_ENTRY_T ;\n id_list = wmem_alloc_array ( wmem_packet_scope ( ) , gint32 , field_count ) ;\n ofs_list = wmem_alloc_array ( wmem_packet_scope ( ) , gint32 , field_count ) ;\n for ( idx = 0 ;\n idx < field_count ;\n ++ idx ) {\n id_list [ idx ] = - 1 ;\n ofs_list [ idx ] = - 1 ;\n }\n ofs = offset + L_LBMPDM_SEG_HDR_T ;\n for ( idx = 0 ;\n idx < field_count ;\n idx ++ , ofs += L_LBMPDM_OFFSET_ENTRY_T ) {\n proto_item * offset_item = NULL ;\n proto_tree * offset_tree = NULL ;\n offset_item = proto_tree_add_item ( subtree , hf_lbmpdm_offset_entry , tvb , ofs , L_LBMPDM_OFFSET_ENTRY_T , ENC_NA ) ;\n offset_tree = proto_item_add_subtree ( offset_item , ett_lbmpdm_offset_entry ) ;\n proto_tree_add_item ( offset_tree , hf_lbmpdm_offset_entry_id , tvb , ofs + O_LBMPDM_OFFSET_ENTRY_T_ID , L_LBMPDM_OFFSET_ENTRY_T_ID , encoding ) ;\n id_list [ idx ] = ( gint32 ) lbmpdm_fetch_uint32_encoded ( tvb , ofs + O_LBMPDM_OFFSET_ENTRY_T_ID , encoding ) ;\n proto_tree_add_item ( offset_tree , hf_lbmpdm_offset_entry_offset , tvb , ofs + O_LBMPDM_OFFSET_ENTRY_T_OFFSET , L_LBMPDM_OFFSET_ENTRY_T_OFFSET , encoding ) ;\n ofs_list [ idx ] = ( gint32 ) lbmpdm_fetch_uint32_encoded ( tvb , ofs + O_LBMPDM_OFFSET_ENTRY_T_OFFSET , encoding ) ;\n if ( id_list [ idx ] < 0 || ofs_list [ idx ] < 0 ) {\n THROW ( ReportedBoundsError ) ;\n }\n if ( id_list [ idx ] > max_index ) {\n max_index = id_list [ idx ] ;\n }\n if ( ofs_list [ idx ] < min_offset ) {\n min_offset = ofs_list [ idx ] ;\n }\n }\n ofs_table = wmem_new ( wmem_packet_scope ( ) , lbmpdm_offset_table_t ) ;\n ofs_table -> num_flds = max_index + 1 ;\n ofs_table -> min_set_offset = NULL ;\n ofs_table -> offset_list = wmem_alloc_array ( wmem_packet_scope ( ) , gint32 , ofs_table -> num_flds ) ;\n for ( idx = 0 ;\n idx < ( int ) ofs_table -> num_flds ;\n ++ idx ) {\n ofs_table -> offset_list [ idx ] = - 1 ;\n }\n for ( idx = 0 ;\n idx < field_count ;\n ++ idx ) {\n ofs_table -> offset_list [ id_list [ idx ] ] = ofs_list [ idx ] ;\n if ( ofs_list [ idx ] == min_offset ) {\n ofs_table -> min_set_offset = & ( ofs_table -> offset_list [ id_list [ idx ] ] ) ;\n }\n }\n if ( offset_table != NULL ) {\n * offset_table = ofs_table ;\n }\n return ( seglen ) ;\n }"}
{"idx": 4845, "target": 0, "func": "static int dissect_h245_V75Capability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_V75Capability , V75Capability_sequence ) ;\n return offset ;\n }"}
{"idx": 4846, "target": 0, "func": "float clamp_float ( float a ) {\n if ( a > 1. ) return 1. ;\n else if ( a >= 0 ) return a ;\n else return 0 ;\n }"}
{"idx": 4847, "target": 1, "func": "static void _UTF16BEToUnicodeWithOffsets ( UConverterToUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n UConverter * cnv ;\n const uint8_t * source ;\n UChar * target ;\n int32_t * offsets ;\n uint32_t targetCapacity , length , count , sourceIndex ;\n UChar c , trail ;\n if ( pArgs -> converter -> mode < 8 ) {\n _UTF16ToUnicodeWithOffsets ( pArgs , pErrorCode ) ;\n return ;\n }\n cnv = pArgs -> converter ;\n source = ( const uint8_t * ) pArgs -> source ;\n length = ( int32_t ) ( ( const uint8_t * ) pArgs -> sourceLimit - source ) ;\n if ( length <= 0 && cnv -> toUnicodeStatus == 0 ) {\n return ;\n }\n target = pArgs -> target ;\n if ( target >= pArgs -> targetLimit ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n return ;\n }\n targetCapacity = ( uint32_t ) ( pArgs -> targetLimit - target ) ;\n offsets = pArgs -> offsets ;\n sourceIndex = 0 ;\n c = 0 ;\n if ( cnv -> toUnicodeStatus != 0 ) {\n cnv -> toUBytes [ 0 ] = ( uint8_t ) cnv -> toUnicodeStatus ;\n cnv -> toULength = 1 ;\n cnv -> toUnicodeStatus = 0 ;\n }\n if ( ( count = cnv -> toULength ) != 0 ) {\n uint8_t * p = cnv -> toUBytes ;\n do {\n p [ count ++ ] = * source ++ ;\n ++ sourceIndex ;\n -- length ;\n if ( count == 2 ) {\n c = ( ( UChar ) p [ 0 ] << 8 ) | p [ 1 ] ;\n if ( U16_IS_SINGLE ( c ) ) {\n * target ++ = c ;\n if ( offsets != NULL ) {\n * offsets ++ = - 1 ;\n }\n -- targetCapacity ;\n count = 0 ;\n c = 0 ;\n break ;\n }\n else if ( U16_IS_SURROGATE_LEAD ( c ) ) {\n c = 0 ;\n }\n else {\n break ;\n }\n }\n else if ( count == 4 ) {\n c = ( ( UChar ) p [ 0 ] << 8 ) | p [ 1 ] ;\n trail = ( ( UChar ) p [ 2 ] << 8 ) | p [ 3 ] ;\n if ( U16_IS_TRAIL ( trail ) ) {\n * target ++ = c ;\n if ( targetCapacity >= 2 ) {\n * target ++ = trail ;\n if ( offsets != NULL ) {\n * offsets ++ = - 1 ;\n * offsets ++ = - 1 ;\n }\n targetCapacity -= 2 ;\n }\n else {\n targetCapacity = 0 ;\n cnv -> UCharErrorBuffer [ 0 ] = trail ;\n cnv -> UCharErrorBufferLength = 1 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n count = 0 ;\n c = 0 ;\n break ;\n }\n else {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n if ( ( ( const uint8_t * ) pArgs -> source - source ) >= 2 ) {\n source -= 2 ;\n }\n else {\n cnv -> toUnicodeStatus = 0x100 | p [ 2 ] ;\n -- source ;\n }\n cnv -> toULength = 2 ;\n pArgs -> source = ( const char * ) source ;\n pArgs -> target = target ;\n pArgs -> offsets = offsets ;\n return ;\n }\n }\n }\n while ( length > 0 ) ;\n cnv -> toULength = ( int8_t ) count ;\n }\n count = 2 * targetCapacity ;\n if ( count > length ) {\n count = length & ~ 1 ;\n }\n if ( c == 0 && count > 0 ) {\n length -= count ;\n count >>= 1 ;\n targetCapacity -= count ;\n if ( offsets == NULL ) {\n do {\n c = ( ( UChar ) source [ 0 ] << 8 ) | source [ 1 ] ;\n source += 2 ;\n if ( U16_IS_SINGLE ( c ) ) {\n * target ++ = c ;\n }\n else if ( U16_IS_SURROGATE_LEAD ( c ) && count >= 2 && U16_IS_TRAIL ( trail = ( ( UChar ) source [ 0 ] << 8 ) | source [ 1 ] ) ) {\n source += 2 ;\n -- count ;\n * target ++ = c ;\n * target ++ = trail ;\n }\n else {\n break ;\n }\n }\n while ( -- count > 0 ) ;\n }\n else {\n do {\n c = ( ( UChar ) source [ 0 ] << 8 ) | source [ 1 ] ;\n source += 2 ;\n if ( U16_IS_SINGLE ( c ) ) {\n * target ++ = c ;\n * offsets ++ = sourceIndex ;\n sourceIndex += 2 ;\n }\n else if ( U16_IS_SURROGATE_LEAD ( c ) && count >= 2 && U16_IS_TRAIL ( trail = ( ( UChar ) source [ 0 ] << 8 ) | source [ 1 ] ) ) {\n source += 2 ;\n -- count ;\n * target ++ = c ;\n * target ++ = trail ;\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ;\n sourceIndex += 4 ;\n }\n else {\n break ;\n }\n }\n while ( -- count > 0 ) ;\n }\n if ( count == 0 ) {\n c = 0 ;\n }\n else {\n length += 2 * ( count - 1 ) ;\n targetCapacity += count ;\n }\n }\n if ( c != 0 ) {\n cnv -> toUBytes [ 0 ] = ( uint8_t ) ( c >> 8 ) ;\n cnv -> toUBytes [ 1 ] = ( uint8_t ) c ;\n cnv -> toULength = 2 ;\n if ( U16_IS_SURROGATE_LEAD ( c ) ) {\n if ( length >= 2 ) {\n if ( U16_IS_TRAIL ( trail = ( ( UChar ) source [ 0 ] << 8 ) | source [ 1 ] ) ) {\n source += 2 ;\n length -= 2 ;\n * target ++ = c ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n cnv -> UCharErrorBuffer [ 0 ] = trail ;\n cnv -> UCharErrorBufferLength = 1 ;\n cnv -> toULength = 0 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n else {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n else {\n }\n }\n else {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n if ( U_SUCCESS ( * pErrorCode ) ) {\n if ( length > 0 ) {\n if ( targetCapacity == 0 ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n else {\n cnv -> toUBytes [ cnv -> toULength ++ ] = * source ++ ;\n }\n }\n }\n pArgs -> source = ( const char * ) source ;\n pArgs -> target = target ;\n pArgs -> offsets = offsets ;\n }"}
{"idx": 4848, "target": 0, "func": "void keydb_release ( KEYDB_HANDLE hd ) {\n int i ;\n if ( ! hd ) return ;\n assert ( active_handles > 0 ) ;\n active_handles -- ;\n unlock_all ( hd ) ;\n for ( i = 0 ;\n i < hd -> used ;\n i ++ ) {\n switch ( hd -> active [ i ] . type ) {\n case KEYDB_RESOURCE_TYPE_NONE : break ;\n case KEYDB_RESOURCE_TYPE_KEYRING : keyring_release ( hd -> active [ i ] . u . kr ) ;\n break ;\n case KEYDB_RESOURCE_TYPE_KEYBOX : keybox_release ( hd -> active [ i ] . u . kb ) ;\n break ;\n }\n }\n xfree ( hd ) ;\n }"}
{"idx": 4849, "target": 0, "func": "int vp9_get_tx_size_context ( const MACROBLOCKD * xd ) {\n const int max_tx_size = max_txsize_lookup [ xd -> mi [ 0 ] . src_mi -> mbmi . sb_type ] ;\n const MB_MODE_INFO * const above_mbmi = get_mbmi ( get_above_mi ( xd ) ) ;\n const MB_MODE_INFO * const left_mbmi = get_mbmi ( get_left_mi ( xd ) ) ;\n const int has_above = above_mbmi != NULL ;\n const int has_left = left_mbmi != NULL ;\n int above_ctx = ( has_above && ! above_mbmi -> skip ) ? ( int ) above_mbmi -> tx_size : max_tx_size ;\n int left_ctx = ( has_left && ! left_mbmi -> skip ) ? ( int ) left_mbmi -> tx_size : max_tx_size ;\n if ( ! has_left ) left_ctx = above_ctx ;\n if ( ! has_above ) above_ctx = left_ctx ;\n return ( above_ctx + left_ctx ) > max_tx_size ;\n }"}
{"idx": 4850, "target": 1, "func": "static int rv34_set_deblock_coef ( RV34DecContext * r ) {\n MpegEncContext * s = & r -> s ;\n int hmvmask = 0 , vmvmask = 0 , i , j ;\n int midx = s -> mb_x * 2 + s -> mb_y * 2 * s -> b8_stride ;\n int16_t ( * motion_val ) [ 2 ] = & s -> current_picture_ptr -> f . motion_val [ 0 ] [ midx ] ;\n for ( j = 0 ;\n j < 16 ;\n j += 8 ) {\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n if ( is_mv_diff_gt_3 ( motion_val + i , 1 ) ) vmvmask |= 0x11 << ( j + i * 2 ) ;\n if ( ( j || s -> mb_y ) && is_mv_diff_gt_3 ( motion_val + i , s -> b8_stride ) ) hmvmask |= 0x03 << ( j + i * 2 ) ;\n }\n motion_val += s -> b8_stride ;\n }\n if ( s -> first_slice_line ) hmvmask &= ~ 0x000F ;\n if ( ! s -> mb_x ) vmvmask &= ~ 0x1111 ;\n if ( r -> rv30 ) {\n vmvmask |= ( vmvmask & 0x4444 ) >> 1 ;\n hmvmask |= ( hmvmask & 0x0F00 ) >> 4 ;\n if ( s -> mb_x ) r -> deblock_coefs [ s -> mb_x - 1 + s -> mb_y * s -> mb_stride ] |= ( vmvmask & 0x1111 ) << 3 ;\n if ( ! s -> first_slice_line ) r -> deblock_coefs [ s -> mb_x + ( s -> mb_y - 1 ) * s -> mb_stride ] |= ( hmvmask & 0xF ) << 12 ;\n }\n return hmvmask | vmvmask ;\n }"}
{"idx": 4851, "target": 0, "func": "static void s390_virtio_bus_register_withprop ( VirtIOS390DeviceInfo * info ) {\n info -> qdev . init = s390_virtio_busdev_init ;\n info -> qdev . bus_info = & s390_virtio_bus_info ;\n assert ( info -> qdev . size >= sizeof ( VirtIOS390Device ) ) ;\n qdev_register ( & info -> qdev ) ;\n }"}
{"idx": 4852, "target": 0, "func": "static value_string_ext * get_control_selector_values ( guint8 entity_id , usb_conv_info_t * usb_conv_info ) {\n video_conv_info_t * video_conv_info ;\n video_entity_t * entity = NULL ;\n value_string_ext * selectors = NULL ;\n if ( usb_conv_info == NULL ) return NULL ;\n video_conv_info = ( video_conv_info_t * ) usb_conv_info -> class_data ;\n if ( video_conv_info ) entity = ( video_entity_t * ) wmem_tree_lookup32 ( video_conv_info -> entities , entity_id ) ;\n if ( entity_id == 0 ) {\n switch ( usb_conv_info -> interfaceSubclass ) {\n case SC_VIDEOCONTROL : selectors = & cs_control_interface_ext ;\n break ;\n case SC_VIDEOSTREAMING : selectors = & cs_streaming_interface_ext ;\n break ;\n default : break ;\n }\n }\n else if ( entity ) {\n switch ( entity -> subtype ) {\n case VC_INPUT_TERMINAL : if ( entity -> terminalType == ITT_CAMERA ) {\n selectors = & cs_camera_terminal_ext ;\n }\n break ;\n case VC_PROCESSING_UNIT : selectors = & cs_processing_unit_ext ;\n break ;\n case VC_SELECTOR_UNIT : selectors = & cs_selector_unit_ext ;\n break ;\n default : break ;\n }\n }\n return selectors ;\n }"}
{"idx": 4853, "target": 0, "func": "static void EnableKeepAlive ( const relpTcp_t * __restrict__ const pThis , const relpSrv_t * __restrict__ const pSrv , const int sock ) {\n int ret ;\n int optval ;\n socklen_t optlen ;\n optval = 1 ;\n optlen = sizeof ( optval ) ;\n ret = setsockopt ( sock , SOL_SOCKET , SO_KEEPALIVE , & optval , optlen ) ;\n if ( ret < 0 ) {\n pThis -> pEngine -> dbgprint ( \"librelp: EnableKeepAlive socket call \" \"returns error %d\\n\" , ret ) ;\n goto done ;\n }\n # if defined ( TCP_KEEPCNT ) if ( pSrv -> iKeepAliveProbes > 0 ) {\n optval = pSrv -> iKeepAliveProbes ;\n optlen = sizeof ( optval ) ;\n ret = setsockopt ( sock , SOL_TCP , TCP_KEEPCNT , & optval , optlen ) ;\n }\n else {\n ret = 0 ;\n }\n # else ret = - 1 ;\n # endif if ( ret < 0 ) {\n callOnErr ( pThis , \"librelp cannot set keepalive probes - ignored\" , RELP_RET_WRN_NO_KEEPALIVE ) ;\n }\n # if defined ( TCP_KEEPCNT ) if ( pSrv -> iKeepAliveTime > 0 ) {\n optval = pSrv -> iKeepAliveTime ;\n optlen = sizeof ( optval ) ;\n ret = setsockopt ( sock , SOL_TCP , TCP_KEEPIDLE , & optval , optlen ) ;\n }\n else {\n ret = 0 ;\n }\n # else ret = - 1 ;\n # endif if ( ret < 0 ) {\n callOnErr ( pThis , \"librelp cannot set keepalive time - ignored\" , RELP_RET_WRN_NO_KEEPALIVE ) ;\n }\n # if defined ( TCP_KEEPCNT ) if ( pSrv -> iKeepAliveIntvl > 0 ) {\n optval = pSrv -> iKeepAliveIntvl ;\n optlen = sizeof ( optval ) ;\n ret = setsockopt ( sock , SOL_TCP , TCP_KEEPINTVL , & optval , optlen ) ;\n }\n else {\n ret = 0 ;\n }\n # else ret = - 1 ;\n # endif if ( ret < 0 ) {\n callOnErr ( pThis , \"librelp cannot set keepalive intvl - ignored\" , RELP_RET_WRN_NO_KEEPALIVE ) ;\n }\n done : return ;\n }"}
{"idx": 4854, "target": 0, "func": "void free_attstatsslot ( Oid atttype , Datum * values , int nvalues , float4 * numbers , int nnumbers ) {\n if ( values ) {\n if ( ! get_typbyval ( atttype ) ) {\n int i ;\n for ( i = 0 ;\n i < nvalues ;\n i ++ ) pfree ( DatumGetPointer ( values [ i ] ) ) ;\n }\n pfree ( values ) ;\n }\n if ( numbers ) pfree ( numbers ) ;\n }"}
{"idx": 4855, "target": 0, "func": "static void test_basic_cursors ( ) {\n const char * basic_tables [ ] = {\n \"DROP TABLE IF EXISTS t1, t2\" , \"CREATE TABLE t1 \" \"(id INTEGER NOT NULL PRIMARY KEY, \" \" name VARCHAR(20) NOT NULL)\" , \"INSERT INTO t1 (id, name) VALUES \" \" (2, 'Ja'), (3, 'Ede'), \" \" (4, 'Haag'), (5, 'Kabul'), \" \" (6, 'Almere'), (7, 'Utrecht'), \" \" (8, 'Qandahar'), (9, 'Amsterdam'), \" \" (10, 'Amersfoort'), (11, 'Constantine')\" , \"CREATE TABLE t2 \" \"(id INTEGER NOT NULL PRIMARY KEY, \" \" name VARCHAR(20) NOT NULL)\" , \"INSERT INTO t2 (id, name) VALUES \" \" (4, 'Guam'), (5, 'Aruba'), \" \" (6, 'Angola'), (7, 'Albania'), \" \" (8, 'Anguilla'), (9, 'Argentina'), \" \" (10, 'Azerbaijan'), (11, 'Afghanistan'), \" \" (12, 'Burkina Faso'), (13, 'Faroe Islands')\" }\n ;\n const char * queries [ ] = {\n \"SELECT * FROM t1\" , \"SELECT * FROM t2\" }\n ;\n DBUG_ENTER ( \"test_basic_cursors\" ) ;\n myheader ( \"test_basic_cursors\" ) ;\n fill_tables ( basic_tables , sizeof ( basic_tables ) / sizeof ( * basic_tables ) ) ;\n fetch_n ( queries , sizeof ( queries ) / sizeof ( * queries ) , USE_ROW_BY_ROW_FETCH ) ;\n fetch_n ( queries , sizeof ( queries ) / sizeof ( * queries ) , USE_STORE_RESULT ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 4856, "target": 0, "func": "inline static void simple_or_unavailable_server_retry ( HttpTransact : : State * s ) {\n HTTP_RELEASE_ASSERT ( ! s -> parent_result . parent_is_proxy ( ) ) ;\n HTTPStatus server_response = http_hdr_status_get ( s -> hdr_info . server_response . m_http ) ;\n DebugTxn ( \"http_trans\" , \"[simple_or_unavailabe_server_retry] server_response = %d, simple_retry_attempts: %d, numParents:%d \" , server_response , s -> current . simple_retry_attempts , s -> parent_params -> numParents ( & s -> parent_result ) ) ;\n if ( ( s -> parent_result . retry_type ( ) & PARENT_RETRY_SIMPLE ) && s -> current . simple_retry_attempts < s -> parent_result . max_retries ( PARENT_RETRY_SIMPLE ) && server_response == HTTP_STATUS_NOT_FOUND ) {\n DebugTxn ( \"parent_select\" , \"RECEIVED A SIMPLE RETRY RESPONSE\" ) ;\n if ( s -> current . simple_retry_attempts < s -> parent_params -> numParents ( & s -> parent_result ) ) {\n s -> current . state = HttpTransact : : PARENT_ORIGIN_RETRY ;\n s -> current . retry_type = PARENT_RETRY_SIMPLE ;\n return ;\n }\n else {\n DebugTxn ( \"http_trans\" , \"PARENT_RETRY_SIMPLE: retried all parents, send response to client.\" ) ;\n return ;\n }\n }\n else if ( ( s -> parent_result . retry_type ( ) & PARENT_RETRY_UNAVAILABLE_SERVER ) && s -> current . unavailable_server_retry_attempts < s -> parent_result . max_retries ( PARENT_RETRY_UNAVAILABLE_SERVER ) && s -> parent_result . response_is_retryable ( server_response ) ) {\n DebugTxn ( \"parent_select\" , \"RECEIVED A PARENT_RETRY_UNAVAILABLE_SERVER RESPONSE\" ) ;\n if ( s -> current . unavailable_server_retry_attempts < s -> parent_params -> numParents ( & s -> parent_result ) ) {\n s -> current . state = HttpTransact : : PARENT_ORIGIN_RETRY ;\n s -> current . retry_type = PARENT_RETRY_UNAVAILABLE_SERVER ;\n return ;\n }\n else {\n DebugTxn ( \"http_trans\" , \"PARENT_RETRY_UNAVAILABLE_SERVER: retried all parents, send error to client.\" ) ;\n return ;\n }\n }\n }"}
{"idx": 4857, "target": 0, "func": "static cmsUInt32Number mywcslen ( const wchar_t * s ) {\n const wchar_t * p ;\n p = s ;\n while ( * p ) p ++ ;\n return ( cmsUInt32Number ) ( p - s ) ;\n }"}
{"idx": 4858, "target": 0, "func": "static gboolean gst_asf_demux_handle_src_query ( GstPad * pad , GstObject * parent , GstQuery * query ) {\n GstASFDemux * demux ;\n gboolean res = FALSE ;\n demux = GST_ASF_DEMUX ( parent ) ;\n GST_DEBUG ( \"handling %s query\" , gst_query_type_get_name ( GST_QUERY_TYPE ( query ) ) ) ;\n switch ( GST_QUERY_TYPE ( query ) ) {\n case GST_QUERY_DURATION : {\n GstFormat format ;\n gst_query_parse_duration ( query , & format , NULL ) ;\n if ( format != GST_FORMAT_TIME ) {\n GST_LOG ( \"only support duration queries in TIME format\" ) ;\n break ;\n }\n res = gst_pad_query_default ( pad , parent , query ) ;\n if ( ! res ) {\n GST_OBJECT_LOCK ( demux ) ;\n if ( demux -> segment . duration != GST_CLOCK_TIME_NONE ) {\n GST_LOG ( \"returning duration: %\" GST_TIME_FORMAT , GST_TIME_ARGS ( demux -> segment . duration ) ) ;\n gst_query_set_duration ( query , GST_FORMAT_TIME , demux -> segment . duration ) ;\n res = TRUE ;\n }\n else {\n GST_LOG ( \"duration not known yet\" ) ;\n }\n GST_OBJECT_UNLOCK ( demux ) ;\n }\n break ;\n }\n case GST_QUERY_POSITION : {\n GstFormat format ;\n gst_query_parse_position ( query , & format , NULL ) ;\n if ( format != GST_FORMAT_TIME ) {\n GST_LOG ( \"only support position queries in TIME format\" ) ;\n break ;\n }\n GST_OBJECT_LOCK ( demux ) ;\n if ( demux -> segment . position != GST_CLOCK_TIME_NONE ) {\n GST_LOG ( \"returning position: %\" GST_TIME_FORMAT , GST_TIME_ARGS ( demux -> segment . position ) ) ;\n gst_query_set_position ( query , GST_FORMAT_TIME , demux -> segment . position ) ;\n res = TRUE ;\n }\n else {\n GST_LOG ( \"position not known yet\" ) ;\n }\n GST_OBJECT_UNLOCK ( demux ) ;\n break ;\n }\n case GST_QUERY_SEEKING : {\n GstFormat format ;\n gst_query_parse_seeking ( query , & format , NULL , NULL , NULL ) ;\n if ( format == GST_FORMAT_TIME ) {\n gint64 duration ;\n GST_OBJECT_LOCK ( demux ) ;\n duration = demux -> segment . duration ;\n GST_OBJECT_UNLOCK ( demux ) ;\n if ( ! demux -> streaming || ! demux -> seekable ) {\n gst_query_set_seeking ( query , GST_FORMAT_TIME , demux -> seekable , 0 , duration ) ;\n res = TRUE ;\n }\n else {\n GstFormat fmt ;\n gboolean seekable ;\n res = gst_pad_query_default ( pad , parent , query ) ;\n gst_query_parse_seeking ( query , & fmt , & seekable , NULL , NULL ) ;\n GST_LOG_OBJECT ( demux , \"upstream %s seekable %d\" , GST_STR_NULL ( gst_format_get_name ( fmt ) ) , seekable ) ;\n if ( ! seekable || fmt != GST_FORMAT_TIME ) {\n GstQuery * q ;\n q = gst_query_new_seeking ( GST_FORMAT_BYTES ) ;\n if ( ( res = gst_pad_peer_query ( demux -> sinkpad , q ) ) ) {\n gst_query_parse_seeking ( q , & fmt , & seekable , NULL , NULL ) ;\n GST_LOG_OBJECT ( demux , \"upstream %s seekable %d\" , GST_STR_NULL ( gst_format_get_name ( fmt ) ) , seekable ) ;\n if ( fmt != GST_FORMAT_BYTES ) seekable = FALSE ;\n }\n gst_query_unref ( q ) ;\n gst_query_set_seeking ( query , GST_FORMAT_TIME , seekable , 0 , duration ) ;\n res = TRUE ;\n }\n }\n }\n else GST_LOG_OBJECT ( demux , \"only support seeking in TIME format\" ) ;\n break ;\n }\n case GST_QUERY_LATENCY : {\n gboolean live ;\n GstClockTime min , max ;\n res = gst_pad_query_default ( pad , parent , query ) ;\n if ( ! res ) break ;\n gst_query_parse_latency ( query , & live , & min , & max ) ;\n GST_DEBUG_OBJECT ( demux , \"Peer latency: live %d, min %\" GST_TIME_FORMAT \" max %\" GST_TIME_FORMAT , live , GST_TIME_ARGS ( min ) , GST_TIME_ARGS ( max ) ) ;\n GST_OBJECT_LOCK ( demux ) ;\n min += demux -> latency ;\n if ( max != - 1 ) max += demux -> latency ;\n GST_OBJECT_UNLOCK ( demux ) ;\n gst_query_set_latency ( query , live , min , max ) ;\n break ;\n }\n case GST_QUERY_SEGMENT : {\n GstFormat format ;\n gint64 start , stop ;\n format = demux -> segment . format ;\n start = gst_segment_to_stream_time ( & demux -> segment , format , demux -> segment . start ) ;\n if ( ( stop = demux -> segment . stop ) == - 1 ) stop = demux -> segment . duration ;\n else stop = gst_segment_to_stream_time ( & demux -> segment , format , stop ) ;\n gst_query_set_segment ( query , demux -> segment . rate , format , start , stop ) ;\n res = TRUE ;\n break ;\n }\n default : res = gst_pad_query_default ( pad , parent , query ) ;\n break ;\n }\n return res ;\n }"}
{"idx": 4859, "target": 0, "func": "void nautilus_file_operations_new_folder ( GtkWidget * parent_view , GdkPoint * target_point , const char * parent_dir , const char * folder_name , NautilusCreateCallback done_callback , gpointer done_callback_data ) {\n GTask * task ;\n CreateJob * job ;\n GtkWindow * parent_window ;\n parent_window = NULL ;\n if ( parent_view ) {\n parent_window = ( GtkWindow * ) gtk_widget_get_ancestor ( parent_view , GTK_TYPE_WINDOW ) ;\n }\n job = op_job_new ( CreateJob , parent_window ) ;\n job -> done_callback = done_callback ;\n job -> done_callback_data = done_callback_data ;\n job -> dest_dir = g_file_new_for_uri ( parent_dir ) ;\n job -> filename = g_strdup ( folder_name ) ;\n job -> make_dir = TRUE ;\n if ( target_point != NULL ) {\n job -> position = * target_point ;\n job -> has_position = TRUE ;\n }\n if ( ! nautilus_file_undo_manager_is_operating ( ) ) {\n job -> common . undo_info = nautilus_file_undo_info_create_new ( NAUTILUS_FILE_UNDO_OP_CREATE_FOLDER ) ;\n }\n task = g_task_new ( NULL , job -> common . cancellable , create_task_done , job ) ;\n g_task_set_task_data ( task , job , NULL ) ;\n g_task_run_in_thread ( task , create_task_thread_func ) ;\n g_object_unref ( task ) ;\n }"}
{"idx": 4860, "target": 0, "func": "SPL_METHOD ( SplFileObject , func_name ) \\ {\n \\ spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n \\ FileFunctionCall ( func_name , ZEND_NUM_ARGS ( ) , NULL ) ;\n \\ }\n SPL_METHOD ( SplFileObject , fgetcsv ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char delimiter = intern -> u . file . delimiter , enclosure = intern -> u . file . enclosure , escape = intern -> u . file . escape ;\n char * delim = NULL , * enclo = NULL , * esc = NULL ;\n int d_len = 0 , e_len = 0 , esc_len = 0 ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"|sss\" , & delim , & d_len , & enclo , & e_len , & esc , & esc_len ) == SUCCESS ) {\n switch ( ZEND_NUM_ARGS ( ) ) {\n case 3 : if ( esc_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"escape must be a character\" ) ;\n RETURN_FALSE ;\n }\n escape = esc [ 0 ] ;\n case 2 : if ( e_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"enclosure must be a character\" ) ;\n RETURN_FALSE ;\n }\n enclosure = enclo [ 0 ] ;\n case 1 : if ( d_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"delimiter must be a character\" ) ;\n RETURN_FALSE ;\n }\n delimiter = delim [ 0 ] ;\n case 0 : break ;\n }\n spl_filesystem_file_read_csv ( intern , delimiter , enclosure , escape , return_value TSRMLS_CC ) ;\n }\n }\n SPL_METHOD ( SplFileObject , fputcsv ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char delimiter = intern -> u . file . delimiter , enclosure = intern -> u . file . enclosure , escape = intern -> u . file . escape ;\n char * delim = NULL , * enclo = NULL , * esc = NULL ;\n int d_len = 0 , e_len = 0 , esc_len = 0 , ret ;\n zval * fields = NULL ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"a|sss\" , & fields , & delim , & d_len , & enclo , & e_len , & esc , & esc_len ) == SUCCESS ) {\n switch ( ZEND_NUM_ARGS ( ) ) {\n case 4 : if ( esc_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"escape must be a character\" ) ;\n RETURN_FALSE ;\n }\n escape = esc [ 0 ] ;\n case 3 : if ( e_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"enclosure must be a character\" ) ;\n RETURN_FALSE ;\n }\n enclosure = enclo [ 0 ] ;\n case 2 : if ( d_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"delimiter must be a character\" ) ;\n RETURN_FALSE ;\n }\n delimiter = delim [ 0 ] ;\n case 1 : case 0 : break ;\n }\n ret = php_fputcsv ( intern -> u . file . stream , fields , delimiter , enclosure , escape TSRMLS_CC ) ;\n RETURN_LONG ( ret ) ;\n }\n }\n SPL_METHOD ( SplFileObject , setCsvControl ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char delimiter = ',' , enclosure = '\"' , escape = '\\\\' ;\n char * delim = NULL , * enclo = NULL , * esc = NULL ;\n int d_len = 0 , e_len = 0 , esc_len = 0 ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"|sss\" , & delim , & d_len , & enclo , & e_len , & esc , & esc_len ) == SUCCESS ) {\n switch ( ZEND_NUM_ARGS ( ) ) {\n case 3 : if ( esc_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"escape must be a character\" ) ;\n RETURN_FALSE ;\n }\n escape = esc [ 0 ] ;\n case 2 : if ( e_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"enclosure must be a character\" ) ;\n RETURN_FALSE ;\n }\n enclosure = enclo [ 0 ] ;\n case 1 : if ( d_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"delimiter must be a character\" ) ;\n RETURN_FALSE ;\n }\n delimiter = delim [ 0 ] ;\n case 0 : break ;\n }\n intern -> u . file . delimiter = delimiter ;\n intern -> u . file . enclosure = enclosure ;\n intern -> u . file . escape = escape ;\n }\n }\n SPL_METHOD ( SplFileObject , getCsvControl ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char delimiter [ 2 ] , enclosure [ 2 ] ;\n array_init ( return_value ) ;\n delimiter [ 0 ] = intern -> u . file . delimiter ;\n delimiter [ 1 ] = '\\0' ;\n enclosure [ 0 ] = intern -> u . file . enclosure ;\n enclosure [ 1 ] = '\\0' ;\n add_next_index_string ( return_value , delimiter , 1 ) ;\n add_next_index_string ( return_value , enclosure , 1 ) ;\n }\n FileFunction ( flock )"}
{"idx": 4861, "target": 0, "func": "DSA * DSAparams_dup ( DSA * dsa ) {\n return ASN1_item_dup ( ASN1_ITEM_rptr ( DSAparams ) , dsa ) ;\n }"}
{"idx": 4862, "target": 0, "func": "static int dissect_h225_IA5String_SIZE_1_512 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_IA5String ( tvb , offset , actx , tree , hf_index , 1 , 512 , FALSE ) ;\n return offset ;\n }"}
{"idx": 4863, "target": 0, "func": "static unsigned long free_unpacked ( struct unpacked * n ) {\n unsigned long freed_mem = sizeof_delta_index ( n -> index ) ;\n free_delta_index ( n -> index ) ;\n n -> index = NULL ;\n if ( n -> data ) {\n freed_mem += n -> entry -> size ;\n free ( n -> data ) ;\n n -> data = NULL ;\n }\n n -> entry = NULL ;\n n -> depth = 0 ;\n return freed_mem ;\n }"}
{"idx": 4864, "target": 0, "func": "static gpgme_error_t gpgsm_export ( void * engine , const char * pattern , gpgme_export_mode_t mode , gpgme_data_t keydata , int use_armor ) {\n engine_gpgsm_t gpgsm = engine ;\n gpgme_error_t err = 0 ;\n char * cmd ;\n if ( ! gpgsm ) return gpg_error ( GPG_ERR_INV_VALUE ) ;\n if ( mode ) return gpg_error ( GPG_ERR_NOT_SUPPORTED ) ;\n if ( ! pattern ) pattern = \"\" ;\n cmd = malloc ( 7 + strlen ( pattern ) + 1 ) ;\n if ( ! cmd ) return gpg_error_from_syserror ( ) ;\n strcpy ( cmd , \"EXPORT \" ) ;\n strcpy ( & cmd [ 7 ] , pattern ) ;\n gpgsm -> output_cb . data = keydata ;\n err = gpgsm_set_fd ( gpgsm , OUTPUT_FD , use_armor ? \"--armor\" : map_data_enc ( gpgsm -> output_cb . data ) ) ;\n if ( err ) return err ;\n gpgsm_clear_fd ( gpgsm , INPUT_FD ) ;\n gpgsm_clear_fd ( gpgsm , MESSAGE_FD ) ;\n gpgsm -> inline_data = NULL ;\n err = start ( gpgsm , cmd ) ;\n free ( cmd ) ;\n return err ;\n }"}
{"idx": 4865, "target": 0, "func": "static UBool _isAlphaString ( const char * s , int32_t len ) {\n int32_t i ;\n for ( i = 0 ;\n i < len ;\n i ++ ) {\n if ( ! ISALPHA ( * ( s + i ) ) ) {\n return FALSE ;\n }\n }\n return TRUE ;\n }"}
{"idx": 4866, "target": 0, "func": "xsltSecurityPrefsPtr xsltGetDefaultSecurityPrefs ( void ) {\n return ( xsltDefaultSecurityPrefs ) ;\n }"}
{"idx": 4867, "target": 0, "func": "void vp9_init_layer_context ( VP9_COMP * const cpi ) {\n SVC * const svc = & cpi -> svc ;\n const VP9EncoderConfig * const oxcf = & cpi -> oxcf ;\n int layer ;\n int layer_end ;\n int alt_ref_idx = svc -> number_spatial_layers ;\n svc -> spatial_layer_id = 0 ;\n svc -> temporal_layer_id = 0 ;\n if ( svc -> number_temporal_layers > 1 && cpi -> oxcf . rc_mode == VPX_CBR ) {\n layer_end = svc -> number_temporal_layers ;\n }\n else {\n layer_end = svc -> number_spatial_layers ;\n }\n for ( layer = 0 ;\n layer < layer_end ;\n ++ layer ) {\n LAYER_CONTEXT * const lc = & svc -> layer_context [ layer ] ;\n RATE_CONTROL * const lrc = & lc -> rc ;\n int i ;\n lc -> current_video_frame_in_layer = 0 ;\n lc -> layer_size = 0 ;\n lc -> frames_from_key_frame = 0 ;\n lc -> last_frame_type = FRAME_TYPES ;\n lrc -> ni_av_qi = oxcf -> worst_allowed_q ;\n lrc -> total_actual_bits = 0 ;\n lrc -> total_target_vs_actual = 0 ;\n lrc -> ni_tot_qi = 0 ;\n lrc -> tot_q = 0.0 ;\n lrc -> avg_q = 0.0 ;\n lrc -> ni_frames = 0 ;\n lrc -> decimation_count = 0 ;\n lrc -> decimation_factor = 0 ;\n for ( i = 0 ;\n i < RATE_FACTOR_LEVELS ;\n ++ i ) {\n lrc -> rate_correction_factors [ i ] = 1.0 ;\n }\n if ( svc -> number_temporal_layers > 1 && cpi -> oxcf . rc_mode == VPX_CBR ) {\n lc -> target_bandwidth = oxcf -> ts_target_bitrate [ layer ] ;\n lrc -> last_q [ INTER_FRAME ] = oxcf -> worst_allowed_q ;\n lrc -> avg_frame_qindex [ INTER_FRAME ] = oxcf -> worst_allowed_q ;\n }\n else {\n lc -> target_bandwidth = oxcf -> ss_target_bitrate [ layer ] ;\n lrc -> last_q [ KEY_FRAME ] = oxcf -> best_allowed_q ;\n lrc -> last_q [ INTER_FRAME ] = oxcf -> best_allowed_q ;\n lrc -> avg_frame_qindex [ KEY_FRAME ] = ( oxcf -> worst_allowed_q + oxcf -> best_allowed_q ) / 2 ;\n lrc -> avg_frame_qindex [ INTER_FRAME ] = ( oxcf -> worst_allowed_q + oxcf -> best_allowed_q ) / 2 ;\n if ( oxcf -> ss_play_alternate [ layer ] ) lc -> alt_ref_idx = alt_ref_idx ++ ;\n else lc -> alt_ref_idx = - 1 ;\n lc -> gold_ref_idx = - 1 ;\n }\n lrc -> buffer_level = oxcf -> starting_buffer_level_ms * lc -> target_bandwidth / 1000 ;\n lrc -> bits_off_target = lrc -> buffer_level ;\n }\n if ( ! ( svc -> number_temporal_layers > 1 && cpi -> oxcf . rc_mode == VPX_CBR ) && alt_ref_idx < REF_FRAMES ) svc -> layer_context [ 0 ] . gold_ref_idx = alt_ref_idx ;\n }"}
{"idx": 4868, "target": 0, "func": "static int decode_slice ( AVCodecContext * avctx , void * tdata ) {\n ProresThreadData * td = tdata ;\n ProresContext * ctx = avctx -> priv_data ;\n int mb_x_pos = td -> x_pos ;\n int mb_y_pos = td -> y_pos ;\n int pic_num = ctx -> pic_num ;\n int slice_num = td -> slice_num ;\n int mbs_per_slice = td -> slice_width ;\n const uint8_t * buf ;\n uint8_t * y_data , * u_data , * v_data ;\n AVFrame * pic = ctx -> frame ;\n int i , sf , slice_width_factor ;\n int slice_data_size , hdr_size , y_data_size , u_data_size , v_data_size ;\n int y_linesize , u_linesize , v_linesize ;\n buf = ctx -> slice_data [ slice_num ] . index ;\n slice_data_size = ctx -> slice_data [ slice_num + 1 ] . index - buf ;\n slice_width_factor = av_log2 ( mbs_per_slice ) ;\n y_data = pic -> data [ 0 ] ;\n u_data = pic -> data [ 1 ] ;\n v_data = pic -> data [ 2 ] ;\n y_linesize = pic -> linesize [ 0 ] ;\n u_linesize = pic -> linesize [ 1 ] ;\n v_linesize = pic -> linesize [ 2 ] ;\n if ( pic -> interlaced_frame ) {\n if ( ! ( pic_num ^ pic -> top_field_first ) ) {\n y_data += y_linesize ;\n u_data += u_linesize ;\n v_data += v_linesize ;\n }\n y_linesize <<= 1 ;\n u_linesize <<= 1 ;\n v_linesize <<= 1 ;\n }\n if ( slice_data_size < 6 ) {\n av_log ( avctx , AV_LOG_ERROR , \"slice data too small\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n hdr_size = buf [ 0 ] >> 3 ;\n y_data_size = AV_RB16 ( buf + 2 ) ;\n u_data_size = AV_RB16 ( buf + 4 ) ;\n v_data_size = hdr_size > 7 ? AV_RB16 ( buf + 6 ) : slice_data_size - y_data_size - u_data_size - hdr_size ;\n if ( hdr_size + y_data_size + u_data_size + v_data_size > slice_data_size || v_data_size < 0 || hdr_size < 6 ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid data size\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n sf = av_clip ( buf [ 1 ] , 1 , 224 ) ;\n sf = sf > 128 ? ( sf - 96 ) << 2 : sf ;\n if ( ctx -> qmat_changed || sf != td -> prev_slice_sf ) {\n td -> prev_slice_sf = sf ;\n for ( i = 0 ;\n i < 64 ;\n i ++ ) {\n td -> qmat_luma_scaled [ ctx -> dsp . idct_permutation [ i ] ] = ctx -> qmat_luma [ i ] * sf ;\n td -> qmat_chroma_scaled [ ctx -> dsp . idct_permutation [ i ] ] = ctx -> qmat_chroma [ i ] * sf ;\n }\n }\n decode_slice_plane ( ctx , td , buf + hdr_size , y_data_size , ( uint16_t * ) ( y_data + ( mb_y_pos << 4 ) * y_linesize + ( mb_x_pos << 5 ) ) , y_linesize , mbs_per_slice , 4 , slice_width_factor + 2 , td -> qmat_luma_scaled , 0 ) ;\n decode_slice_plane ( ctx , td , buf + hdr_size + y_data_size , u_data_size , ( uint16_t * ) ( u_data + ( mb_y_pos << 4 ) * u_linesize + ( mb_x_pos << ctx -> mb_chroma_factor ) ) , u_linesize , mbs_per_slice , ctx -> num_chroma_blocks , slice_width_factor + ctx -> chroma_factor - 1 , td -> qmat_chroma_scaled , 1 ) ;\n decode_slice_plane ( ctx , td , buf + hdr_size + y_data_size + u_data_size , v_data_size , ( uint16_t * ) ( v_data + ( mb_y_pos << 4 ) * v_linesize + ( mb_x_pos << ctx -> mb_chroma_factor ) ) , v_linesize , mbs_per_slice , ctx -> num_chroma_blocks , slice_width_factor + ctx -> chroma_factor - 1 , td -> qmat_chroma_scaled , 1 ) ;\n return 0 ;\n }"}
{"idx": 4869, "target": 0, "func": "static void cirrus_write_bitblt ( CirrusVGAState * s , unsigned reg_value ) {\n unsigned old_value ;\n old_value = s -> vga . gr [ 0x31 ] ;\n s -> vga . gr [ 0x31 ] = reg_value ;\n if ( ( ( old_value & CIRRUS_BLT_RESET ) != 0 ) && ( ( reg_value & CIRRUS_BLT_RESET ) == 0 ) ) {\n cirrus_bitblt_reset ( s ) ;\n }\n else if ( ( ( old_value & CIRRUS_BLT_START ) == 0 ) && ( ( reg_value & CIRRUS_BLT_START ) != 0 ) ) {\n cirrus_bitblt_start ( s ) ;\n }\n }"}
{"idx": 4870, "target": 0, "func": "static inline void decompose_current_character ( const hb_ot_shape_normalize_context_t * c , bool shortest ) {\n hb_buffer_t * const buffer = c -> buffer ;\n hb_codepoint_t u = buffer -> cur ( ) . codepoint ;\n hb_codepoint_t glyph ;\n if ( shortest && c -> font -> get_glyph ( u , 0 , & glyph ) ) next_char ( buffer , glyph ) ;\n else if ( decompose ( c , shortest , u ) ) skip_char ( buffer ) ;\n else if ( ! shortest && c -> font -> get_glyph ( u , 0 , & glyph ) ) next_char ( buffer , glyph ) ;\n else if ( decompose_compatibility ( c , u ) ) skip_char ( buffer ) ;\n else next_char ( buffer , glyph ) ;\n }"}
{"idx": 4871, "target": 1, "func": "TEST_F ( MultiBufferTest , ReadAll ) {\n multibuffer_ . SetMaxWriters ( 1 ) ;\n size_t pos = 0 ;\n size_t end = 10000 ;\n multibuffer_ . SetFileSize ( 10000 ) ;\n multibuffer_ . SetMustReadWholeFile ( true ) ;\n media : : MultiBufferReader reader ( & multibuffer_ , pos , end , base : : Callback < void ( int64_t , int64_t ) > ( ) ) ;\n reader . SetMaxBuffer ( 2000 , 5000 ) ;\n reader . SetPreload ( 1000 , 1000 ) ;\n while ( pos < end ) {\n unsigned char buffer [ 27 ] ;\n buffer [ 17 ] = 17 ;\n size_t to_read = std : : min < size_t > ( end - pos , 17 ) ;\n int64_t bytes_read = reader . TryRead ( buffer , to_read ) ;\n if ( bytes_read ) {\n EXPECT_EQ ( buffer [ 17 ] , 17 ) ;\n for ( int64_t i = 0 ;\n i < bytes_read ;\n i ++ ) {\n uint8_t expected = static_cast < uint8_t > ( ( pos * 15485863 ) >> 16 ) ;\n EXPECT_EQ ( expected , buffer [ i ] ) << \" pos = \" << pos ;\n pos ++ ;\n }\n }\n else {\n Advance ( ) ;\n }\n }\n }"}
{"idx": 4872, "target": 0, "func": "static void encode_slice_params ( VC2EncContext * s ) {\n put_vc2_ue_uint ( & s -> pb , s -> num_x ) ;\n put_vc2_ue_uint ( & s -> pb , s -> num_y ) ;\n put_vc2_ue_uint ( & s -> pb , s -> prefix_bytes ) ;\n put_vc2_ue_uint ( & s -> pb , s -> size_scaler ) ;\n }"}
{"idx": 4873, "target": 0, "func": "int xmlHashAddEntry3 ( xmlHashTablePtr table , const xmlChar * name , const xmlChar * name2 , const xmlChar * name3 , void * userdata ) {\n unsigned long key , len = 0 ;\n xmlHashEntryPtr entry ;\n xmlHashEntryPtr insert ;\n if ( ( table == NULL ) || ( name == NULL ) ) return ( - 1 ) ;\n if ( table -> dict ) {\n if ( ! xmlDictOwns ( table -> dict , name ) ) {\n name = xmlDictLookup ( table -> dict , name , - 1 ) ;\n if ( name == NULL ) return ( - 1 ) ;\n }\n if ( ( name2 != NULL ) && ( ! xmlDictOwns ( table -> dict , name2 ) ) ) {\n name2 = xmlDictLookup ( table -> dict , name2 , - 1 ) ;\n if ( name2 == NULL ) return ( - 1 ) ;\n }\n if ( ( name3 != NULL ) && ( ! xmlDictOwns ( table -> dict , name3 ) ) ) {\n name3 = xmlDictLookup ( table -> dict , name3 , - 1 ) ;\n if ( name3 == NULL ) return ( - 1 ) ;\n }\n }\n key = xmlHashComputeKey ( table , name , name2 , name3 ) ;\n if ( table -> table [ key ] . valid == 0 ) {\n insert = NULL ;\n }\n else {\n if ( table -> dict ) {\n for ( insert = & ( table -> table [ key ] ) ;\n insert -> next != NULL ;\n insert = insert -> next ) {\n if ( ( insert -> name == name ) && ( insert -> name2 == name2 ) && ( insert -> name3 == name3 ) ) return ( - 1 ) ;\n len ++ ;\n }\n if ( ( insert -> name == name ) && ( insert -> name2 == name2 ) && ( insert -> name3 == name3 ) ) return ( - 1 ) ;\n }\n else {\n for ( insert = & ( table -> table [ key ] ) ;\n insert -> next != NULL ;\n insert = insert -> next ) {\n if ( ( xmlStrEqual ( insert -> name , name ) ) && ( xmlStrEqual ( insert -> name2 , name2 ) ) && ( xmlStrEqual ( insert -> name3 , name3 ) ) ) return ( - 1 ) ;\n len ++ ;\n }\n if ( ( xmlStrEqual ( insert -> name , name ) ) && ( xmlStrEqual ( insert -> name2 , name2 ) ) && ( xmlStrEqual ( insert -> name3 , name3 ) ) ) return ( - 1 ) ;\n }\n }\n if ( insert == NULL ) {\n entry = & ( table -> table [ key ] ) ;\n }\n else {\n entry = xmlMalloc ( sizeof ( xmlHashEntry ) ) ;\n if ( entry == NULL ) return ( - 1 ) ;\n }\n if ( table -> dict != NULL ) {\n entry -> name = ( xmlChar * ) name ;\n entry -> name2 = ( xmlChar * ) name2 ;\n entry -> name3 = ( xmlChar * ) name3 ;\n }\n else {\n entry -> name = xmlStrdup ( name ) ;\n entry -> name2 = xmlStrdup ( name2 ) ;\n entry -> name3 = xmlStrdup ( name3 ) ;\n }\n entry -> payload = userdata ;\n entry -> next = NULL ;\n entry -> valid = 1 ;\n if ( insert != NULL ) insert -> next = entry ;\n table -> nbElems ++ ;\n if ( len > MAX_HASH_LEN ) xmlHashGrow ( table , MAX_HASH_LEN * table -> size ) ;\n return ( 0 ) ;\n }"}
{"idx": 4874, "target": 0, "func": "int main ( void ) {\n static void ( * test_functions [ ] ) ( void ) = {\n test_rfc2231_parser , NULL }\n ;\n return test_run ( test_functions ) ;\n }"}
{"idx": 4875, "target": 1, "func": "static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 4876, "target": 0, "func": "int tm_spawn ( int argc , char * * argv , char * * envp , tm_node_id where , tm_task_id * tid , tm_event_t * event ) {\n int rc = TM_SUCCESS ;\n char * cp ;\n int i ;\n struct tcp_chan * chan = NULL ;\n if ( ! init_done ) {\n return ( TM_BADINIT ) ;\n }\n if ( ( argc <= 0 ) || ( argv == NULL ) || ( argv [ 0 ] == NULL ) || ( * argv [ 0 ] == '\\0' ) ) {\n return ( TM_ENOTFOUND ) ;\n }\n * event = new_event ( ) ;\n if ( startcom ( TM_SPAWN , * event , & chan ) != DIS_SUCCESS ) {\n return ( TM_ENOTCONNECTED ) ;\n }\n if ( diswsi ( chan , where ) != DIS_SUCCESS ) {\n rc = TM_ENOTCONNECTED ;\n goto tm_spawn_cleanup ;\n }\n if ( diswsi ( chan , argc ) != DIS_SUCCESS ) {\n rc = TM_ENOTCONNECTED ;\n goto tm_spawn_cleanup ;\n }\n for ( i = 0 ;\n i < argc ;\n i ++ ) {\n cp = argv [ i ] ;\n if ( diswcs ( chan , cp , strlen ( cp ) ) != DIS_SUCCESS ) {\n rc = TM_ENOTCONNECTED ;\n goto tm_spawn_cleanup ;\n }\n }\n if ( getenv ( \"PBSDEBUG\" ) != NULL ) {\n if ( diswcs ( chan , \"PBSDEBUG=1\" , strlen ( \"PBSDEBUG=1\" ) ) != DIS_SUCCESS ) {\n rc = TM_ENOTCONNECTED ;\n goto tm_spawn_cleanup ;\n }\n }\n if ( envp != NULL ) {\n for ( i = 0 ;\n ( cp = envp [ i ] ) != NULL ;\n i ++ ) {\n if ( diswcs ( chan , cp , strlen ( cp ) ) != DIS_SUCCESS ) {\n rc = TM_ENOTCONNECTED ;\n goto tm_spawn_cleanup ;\n }\n }\n }\n if ( diswcs ( chan , \"\" , 0 ) != DIS_SUCCESS ) {\n rc = TM_ENOTCONNECTED ;\n goto tm_spawn_cleanup ;\n }\n DIS_tcp_wflush ( chan ) ;\n add_event ( * event , where , TM_SPAWN , ( void * ) tid ) ;\n tm_spawn_cleanup : if ( chan != NULL ) DIS_tcp_cleanup ( chan ) ;\n return ( rc ) ;\n }"}
{"idx": 4877, "target": 0, "func": "static void dump_marks ( void ) {\n static struct lock_file mark_lock ;\n FILE * f ;\n if ( ! export_marks_file ) return ;\n if ( hold_lock_file_for_update ( & mark_lock , export_marks_file , 0 ) < 0 ) {\n failure |= error ( \"Unable to write marks file %s: %s\" , export_marks_file , strerror ( errno ) ) ;\n return ;\n }\n f = fdopen_lock_file ( & mark_lock , \"w\" ) ;\n if ( ! f ) {\n int saved_errno = errno ;\n rollback_lock_file ( & mark_lock ) ;\n failure |= error ( \"Unable to write marks file %s: %s\" , export_marks_file , strerror ( saved_errno ) ) ;\n return ;\n }\n dump_marks_helper ( f , 0 , marks ) ;\n if ( commit_lock_file ( & mark_lock ) ) {\n failure |= error ( \"Unable to commit marks file %s: %s\" , export_marks_file , strerror ( errno ) ) ;\n return ;\n }\n }"}
{"idx": 4878, "target": 0, "func": "void EntityDefaultStrokeFill ( Entity * ent ) {\n while ( ent != NULL ) {\n if ( ent -> type == et_splines && ent -> u . splines . stroke . col == 0xffffffff && ent -> u . splines . fill . col == 0xffffffff ) {\n SplineSet * spl ;\n int all = 1 ;\n for ( spl = ent -> u . splines . splines ;\n spl != NULL ;\n spl = spl -> next ) if ( spl -> first -> prev != NULL ) {\n all = false ;\n break ;\n }\n if ( all && ent -> u . splines . splines != NULL && ( ent -> u . splines . stroke_width == 0 || ent -> u . splines . stroke_width == WIDTH_INHERITED ) ) ent -> u . splines . stroke_width = 40 ;\n if ( ent -> u . splines . stroke_width == 0 || ent -> u . splines . stroke_width == WIDTH_INHERITED ) ent -> u . splines . fill . col = COLOR_INHERITED ;\n else ent -> u . splines . stroke . col = COLOR_INHERITED ;\n }\n ent = ent -> next ;\n }\n }"}
{"idx": 4879, "target": 0, "func": "bool sp_grant_privileges ( THD * thd , const char * sp_db , const char * sp_name , bool is_proc ) {\n Security_context * sctx = thd -> security_ctx ;\n LEX_USER * combo ;\n TABLE_LIST tables [ 1 ] ;\n List < LEX_USER > user_list ;\n bool result ;\n ACL_USER * au ;\n char passwd_buff [ SCRAMBLED_PASSWORD_CHAR_LENGTH + 1 ] ;\n Dummy_error_handler error_handler ;\n DBUG_ENTER ( \"sp_grant_privileges\" ) ;\n if ( ! ( combo = ( LEX_USER * ) thd -> alloc ( sizeof ( st_lex_user ) ) ) ) DBUG_RETURN ( TRUE ) ;\n combo -> user . str = sctx -> user ;\n VOID ( pthread_mutex_lock ( & acl_cache -> lock ) ) ;\n if ( ( au = find_acl_user ( combo -> host . str = ( char * ) sctx -> host_or_ip , combo -> user . str , FALSE ) ) ) goto found_acl ;\n if ( ( au = find_acl_user ( combo -> host . str = ( char * ) sctx -> host , combo -> user . str , FALSE ) ) ) goto found_acl ;\n if ( ( au = find_acl_user ( combo -> host . str = ( char * ) sctx -> ip , combo -> user . str , FALSE ) ) ) goto found_acl ;\n if ( ( au = find_acl_user ( combo -> host . str = ( char * ) \"%\" , combo -> user . str , FALSE ) ) ) goto found_acl ;\n VOID ( pthread_mutex_unlock ( & acl_cache -> lock ) ) ;\n DBUG_RETURN ( TRUE ) ;\n found_acl : VOID ( pthread_mutex_unlock ( & acl_cache -> lock ) ) ;\n bzero ( ( char * ) tables , sizeof ( TABLE_LIST ) ) ;\n user_list . empty ( ) ;\n tables -> db = ( char * ) sp_db ;\n tables -> table_name = tables -> alias = ( char * ) sp_name ;\n combo -> host . length = strlen ( combo -> host . str ) ;\n combo -> user . length = strlen ( combo -> user . str ) ;\n combo -> host . str = thd -> strmake ( combo -> host . str , combo -> host . length ) ;\n combo -> user . str = thd -> strmake ( combo -> user . str , combo -> user . length ) ;\n if ( au && au -> salt_len ) {\n if ( au -> salt_len == SCRAMBLE_LENGTH ) {\n make_password_from_salt ( passwd_buff , au -> salt ) ;\n combo -> password . length = SCRAMBLED_PASSWORD_CHAR_LENGTH ;\n }\n else if ( au -> salt_len == SCRAMBLE_LENGTH_323 ) {\n make_password_from_salt_323 ( passwd_buff , ( ulong * ) au -> salt ) ;\n combo -> password . length = SCRAMBLED_PASSWORD_CHAR_LENGTH_323 ;\n }\n else {\n push_warning_printf ( thd , MYSQL_ERROR : : WARN_LEVEL_WARN , ER_PASSWD_LENGTH , ER ( ER_PASSWD_LENGTH ) , SCRAMBLED_PASSWORD_CHAR_LENGTH ) ;\n return TRUE ;\n }\n combo -> password . str = passwd_buff ;\n }\n else {\n combo -> password . str = ( char * ) \"\" ;\n combo -> password . length = 0 ;\n }\n if ( user_list . push_back ( combo ) ) DBUG_RETURN ( TRUE ) ;\n thd -> lex -> ssl_type = SSL_TYPE_NOT_SPECIFIED ;\n thd -> lex -> ssl_cipher = thd -> lex -> x509_subject = thd -> lex -> x509_issuer = 0 ;\n bzero ( ( char * ) & thd -> lex -> mqh , sizeof ( thd -> lex -> mqh ) ) ;\n thd -> push_internal_handler ( & error_handler ) ;\n result = mysql_routine_grant ( thd , tables , is_proc , user_list , DEFAULT_CREATE_PROC_ACLS , FALSE , FALSE ) ;\n thd -> pop_internal_handler ( ) ;\n DBUG_RETURN ( result ) ;\n }"}
{"idx": 4880, "target": 0, "func": "static void rawprint ( int datatype , int length , const char * data , int status , int quiet , FILE * fp ) {\n const char * cp ;\n const char * cpend ;\n cp = data ;\n cpend = data + length ;\n if ( ! quiet ) ( void ) fprintf ( fp , \"status=0x%04x,\\n\" , status ) ;\n while ( cp < cpend ) {\n if ( * cp == '\\r' ) {\n if ( cp == ( cpend - 1 ) || * ( cp + 1 ) != '\\n' ) makeascii ( 1 , cp , fp ) ;\n }\n else if ( isspace ( ( unsigned char ) * cp ) || isprint ( ( unsigned char ) * cp ) ) putc ( * cp , fp ) ;\n else makeascii ( 1 , cp , fp ) ;\n cp ++ ;\n }\n }"}
{"idx": 4881, "target": 0, "func": "static double htond ( double val ) {\n static int config = 0 ;\n union {\n uint8_t byte [ 8 ] ;\n double floating ;\n }\n in ;\n union {\n uint8_t byte [ 8 ] ;\n double floating ;\n }\n out ;\n if ( config == 0 ) {\n double d = 8.642135e130 ;\n uint8_t c [ 8 ] ;\n memcpy ( c , & d , 8 ) ;\n if ( ( c [ 0 ] == 0x2f ) && ( c [ 1 ] == 0x25 ) && ( c [ 2 ] == 0xc0 ) && ( c [ 3 ] == 0xc7 ) && ( c [ 4 ] == 0x43 ) && ( c [ 5 ] == 0x2b ) && ( c [ 6 ] == 0x1f ) && ( c [ 7 ] == 0x5b ) ) config = 1 ;\n else if ( ( c [ 7 ] == 0x2f ) && ( c [ 6 ] == 0x25 ) && ( c [ 5 ] == 0xc0 ) && ( c [ 4 ] == 0xc7 ) && ( c [ 3 ] == 0x43 ) && ( c [ 2 ] == 0x2b ) && ( c [ 1 ] == 0x1f ) && ( c [ 0 ] == 0x5b ) ) config = 2 ;\n else if ( ( c [ 4 ] == 0x2f ) && ( c [ 5 ] == 0x25 ) && ( c [ 6 ] == 0xc0 ) && ( c [ 7 ] == 0xc7 ) && ( c [ 0 ] == 0x43 ) && ( c [ 1 ] == 0x2b ) && ( c [ 2 ] == 0x1f ) && ( c [ 3 ] == 0x5b ) ) config = 3 ;\n else config = 4 ;\n }\n if ( isnan ( val ) ) {\n out . byte [ 0 ] = out . byte [ 1 ] = out . byte [ 2 ] = out . byte [ 3 ] = 0x00 ;\n out . byte [ 4 ] = out . byte [ 5 ] = 0x00 ;\n out . byte [ 6 ] = 0xf8 ;\n out . byte [ 7 ] = 0x7f ;\n return ( out . floating ) ;\n }\n else if ( config == 1 ) return ( val ) ;\n else if ( config == 2 ) {\n in . floating = val ;\n out . byte [ 0 ] = in . byte [ 7 ] ;\n out . byte [ 1 ] = in . byte [ 6 ] ;\n out . byte [ 2 ] = in . byte [ 5 ] ;\n out . byte [ 3 ] = in . byte [ 4 ] ;\n out . byte [ 4 ] = in . byte [ 3 ] ;\n out . byte [ 5 ] = in . byte [ 2 ] ;\n out . byte [ 6 ] = in . byte [ 1 ] ;\n out . byte [ 7 ] = in . byte [ 0 ] ;\n return ( out . floating ) ;\n }\n else if ( config == 3 ) {\n in . floating = val ;\n out . byte [ 0 ] = in . byte [ 4 ] ;\n out . byte [ 1 ] = in . byte [ 5 ] ;\n out . byte [ 2 ] = in . byte [ 6 ] ;\n out . byte [ 3 ] = in . byte [ 7 ] ;\n out . byte [ 4 ] = in . byte [ 0 ] ;\n out . byte [ 5 ] = in . byte [ 1 ] ;\n out . byte [ 6 ] = in . byte [ 2 ] ;\n out . byte [ 7 ] = in . byte [ 3 ] ;\n return ( out . floating ) ;\n }\n else {\n return ( val ) ;\n }\n }"}
{"idx": 4882, "target": 0, "func": "static void decode_zcl_appl_stats_utc_time ( gchar * s , guint32 value ) {\n if ( value == ZBEE_ZCL_APPL_STATS_INVALID_TIME ) g_snprintf ( s , ITEM_LABEL_LENGTH , \"Invalid UTC Time\" ) ;\n else {\n gchar * utc_time ;\n value += ZBEE_ZCL_NSTIME_UTC_OFFSET ;\n utc_time = abs_time_secs_to_str ( NULL , value , ABSOLUTE_TIME_LOCAL , TRUE ) ;\n g_snprintf ( s , ITEM_LABEL_LENGTH , \"%s\" , utc_time ) ;\n wmem_free ( NULL , utc_time ) ;\n }\n }"}
{"idx": 4883, "target": 0, "func": "static void U_CALLCONV _SCSUOpen ( UConverter * cnv , UConverterLoadArgs * pArgs , UErrorCode * pErrorCode ) {\n const char * locale = pArgs -> locale ;\n if ( pArgs -> onlyTestIsLoadable ) {\n return ;\n }\n cnv -> extraInfo = uprv_malloc ( sizeof ( SCSUData ) ) ;\n if ( cnv -> extraInfo != NULL ) {\n if ( locale != NULL && locale [ 0 ] == 'j' && locale [ 1 ] == 'a' && ( locale [ 2 ] == 0 || locale [ 2 ] == '_' ) ) {\n ( ( SCSUData * ) cnv -> extraInfo ) -> locale = l_ja ;\n }\n else {\n ( ( SCSUData * ) cnv -> extraInfo ) -> locale = lGeneric ;\n }\n _SCSUReset ( cnv , UCNV_RESET_BOTH ) ;\n }\n else {\n * pErrorCode = U_MEMORY_ALLOCATION_ERROR ;\n }\n cnv -> subUChars [ 0 ] = 0xfffd ;\n cnv -> subCharLen = - 1 ;\n }"}
{"idx": 4884, "target": 0, "func": "static void h225_cleanup_routine ( void ) {\n int i ;\n for ( i = 0 ;\n i < 7 ;\n i ++ ) {\n g_hash_table_destroy ( ras_calls [ i ] ) ;\n }\n }"}
{"idx": 4885, "target": 0, "func": "void xsltFreeSecurityPrefs ( xsltSecurityPrefsPtr sec ) {\n if ( sec == NULL ) return ;\n xmlFree ( sec ) ;\n }"}
{"idx": 4886, "target": 0, "func": "void ppc_prep_init ( int ram_size , int vga_ram_size , int boot_device , DisplayState * ds , const char * * fd_filename , int snapshot , const char * kernel_filename , const char * kernel_cmdline , const char * initrd_filename ) {\n char buf [ 1024 ] ;\n int PPC_io_memory ;\n int ret , linux_boot , initrd_size , i , nb_nics1 , fd ;\n linux_boot = ( kernel_filename != NULL ) ;\n cpu_register_physical_memory ( 0 , ram_size , 0 ) ;\n isa_mem_base = 0xc0000000 ;\n if ( linux_boot ) {\n ret = load_image ( kernel_filename , phys_ram_base + KERNEL_LOAD_ADDR ) ;\n if ( ret < 0 ) {\n fprintf ( stderr , \"qemu: could not load kernel '%s'\\n\" , kernel_filename ) ;\n exit ( 1 ) ;\n }\n initrd_size = 0 ;\n # if 0 if ( initrd_filename ) {\n initrd_size = load_image ( initrd_filename , phys_ram_base + INITRD_LOAD_ADDR ) ;\n if ( initrd_size < 0 ) {\n fprintf ( stderr , \"qemu: could not load initial ram disk '%s'\\n\" , initrd_filename ) ;\n exit ( 1 ) ;\n }\n }\n # endif PPC_init_hw ( ram_size , KERNEL_LOAD_ADDR , ret , KERNEL_STACK_ADDR , boot_device , initrd_filename ) ;\n }\n else {\n snprintf ( buf , sizeof ( buf ) , \"%s\" , BIOS_FILENAME ) ;\n printf ( \"load BIOS at %p\\n\" , phys_ram_base + 0x000f0000 ) ;\n ret = load_image ( buf , phys_ram_base + 0x000f0000 ) ;\n if ( ret != 0x10000 ) {\n fprintf ( stderr , \"qemu: could not load PPC bios '%s' (%d)\\n%m\\n\" , buf , ret ) ;\n exit ( 1 ) ;\n }\n }\n vga_initialize ( ds , phys_ram_base + ram_size , ram_size , vga_ram_size ) ;\n rtc_init ( 0x70 , 8 ) ;\n pic_init ( ) ;\n fd = serial_open_device ( ) ;\n serial_init ( 0x3f8 , 4 , fd ) ;\n # if 1 nb_nics1 = nb_nics ;\n if ( nb_nics1 > NE2000_NB_MAX ) nb_nics1 = NE2000_NB_MAX ;\n for ( i = 0 ;\n i < nb_nics1 ;\n i ++ ) {\n isa_ne2000_init ( ne2000_io [ i ] , ne2000_irq [ i ] , & nd_table [ i ] ) ;\n }\n # endif for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n isa_ide_init ( ide_iobase [ i ] , ide_iobase2 [ i ] , ide_irq [ i ] , bs_table [ 2 * i ] , bs_table [ 2 * i + 1 ] ) ;\n }\n kbd_init ( ) ;\n AUD_init ( ) ;\n DMA_init ( ) ;\n fdctrl_init ( 6 , 2 , 0 , 0x3f0 , fd_table ) ;\n PPC_io_memory = cpu_register_io_memory ( 0 , PPC_io_read , PPC_io_write ) ;\n cpu_register_physical_memory ( 0x80000000 , 0x10000 , PPC_io_memory ) ;\n register_ioport_read ( 0x398 , 2 , 1 , & PREP_io_read , NULL ) ;\n register_ioport_write ( 0x398 , 2 , 1 , & PREP_io_write , NULL ) ;\n register_ioport_write ( 0x0092 , 0x1 , 1 , & PREP_io_800_writeb , NULL ) ;\n register_ioport_read ( 0x0800 , 0x52 , 1 , & PREP_io_800_readb , NULL ) ;\n register_ioport_write ( 0x0800 , 0x52 , 1 , & PREP_io_800_writeb , NULL ) ;\n PPC_io_memory = cpu_register_io_memory ( 0 , PPC_ioB_read , PPC_ioB_write ) ;\n cpu_register_physical_memory ( 0xBFFFFFF0 , 0x4 , PPC_io_memory ) ;\n prep_NVRAM_init ( ) ;\n PPC_end_init ( ) ;\n }"}
{"idx": 4887, "target": 0, "func": "void jbig2_free ( Jbig2Allocator * allocator , void * p ) {\n allocator -> free ( allocator , p ) ;\n }"}
{"idx": 4888, "target": 0, "func": "static int get_riff ( AVFormatContext * s , AVIOContext * pb ) {\n AVIContext * avi = s -> priv_data ;\n char header [ 8 ] = {\n 0 }\n ;\n int i ;\n avio_read ( pb , header , 4 ) ;\n avi -> riff_end = avio_rl32 ( pb ) ;\n avi -> riff_end += avio_tell ( pb ) ;\n avio_read ( pb , header + 4 , 4 ) ;\n for ( i = 0 ;\n avi_headers [ i ] [ 0 ] ;\n i ++ ) if ( ! memcmp ( header , avi_headers [ i ] , 8 ) ) break ;\n if ( ! avi_headers [ i ] [ 0 ] ) return AVERROR_INVALIDDATA ;\n if ( header [ 7 ] == 0x19 ) av_log ( s , AV_LOG_INFO , \"This file has been generated by a totally broken muxer.\\n\" ) ;\n return 0 ;\n }"}
{"idx": 4889, "target": 0, "func": "void mime_hdr_destroy ( HdrHeap * heap , MIMEHdrImpl * mh ) {\n mime_hdr_destroy_field_block_list ( heap , mh -> m_first_fblock . m_next ) ;\n }"}
{"idx": 4890, "target": 0, "func": "static int parse_one_feature ( const char * feature , int from_stream ) {\n const char * arg ;\n if ( skip_prefix ( feature , \"date-format=\" , & arg ) ) {\n option_date_format ( arg ) ;\n }\n else if ( skip_prefix ( feature , \"import-marks=\" , & arg ) ) {\n option_import_marks ( arg , from_stream , 0 ) ;\n }\n else if ( skip_prefix ( feature , \"import-marks-if-exists=\" , & arg ) ) {\n option_import_marks ( arg , from_stream , 1 ) ;\n }\n else if ( skip_prefix ( feature , \"export-marks=\" , & arg ) ) {\n option_export_marks ( arg ) ;\n }\n else if ( ! strcmp ( feature , \"get-mark\" ) ) {\n ;\n }\n else if ( ! strcmp ( feature , \"cat-blob\" ) ) {\n ;\n }\n else if ( ! strcmp ( feature , \"relative-marks\" ) ) {\n relative_marks_paths = 1 ;\n }\n else if ( ! strcmp ( feature , \"no-relative-marks\" ) ) {\n relative_marks_paths = 0 ;\n }\n else if ( ! strcmp ( feature , \"done\" ) ) {\n require_explicit_termination = 1 ;\n }\n else if ( ! strcmp ( feature , \"force\" ) ) {\n force_update = 1 ;\n }\n else if ( ! strcmp ( feature , \"notes\" ) || ! strcmp ( feature , \"ls\" ) ) {\n ;\n }\n else {\n return 0 ;\n }\n return 1 ;\n }"}
{"idx": 4891, "target": 0, "func": "static void parse_argv ( void ) {\n unsigned int i ;\n for ( i = 1 ;\n i < global_argc ;\n i ++ ) {\n const char * a = global_argv [ i ] ;\n if ( * a != '-' || ! strcmp ( a , \"--\" ) ) break ;\n if ( ! skip_prefix ( a , \"--\" , & a ) ) die ( \"unknown option %s\" , a ) ;\n if ( parse_one_option ( a ) ) continue ;\n if ( parse_one_feature ( a , 0 ) ) continue ;\n if ( skip_prefix ( a , \"cat-blob-fd=\" , & a ) ) {\n option_cat_blob_fd ( a ) ;\n continue ;\n }\n die ( \"unknown option --%s\" , a ) ;\n }\n if ( i != global_argc ) usage ( fast_import_usage ) ;\n seen_data_command = 1 ;\n if ( import_marks_file ) read_marks ( ) ;\n }"}
{"idx": 4892, "target": 0, "func": "static int vc1_decode_i_block_adv ( VC1Context * v , int16_t block [ 64 ] , int n , int coded , int codingset , int mquant ) {\n GetBitContext * gb = & v -> s . gb ;\n MpegEncContext * s = & v -> s ;\n int dc_pred_dir = 0 ;\n int i ;\n int16_t * dc_val ;\n int16_t * ac_val , * ac_val2 ;\n int dcdiff ;\n int a_avail = v -> a_avail , c_avail = v -> c_avail ;\n int use_pred = s -> ac_pred ;\n int scale ;\n int q1 , q2 = 0 ;\n int mb_pos = s -> mb_x + s -> mb_y * s -> mb_stride ;\n if ( n < 4 ) {\n dcdiff = get_vlc2 ( & s -> gb , ff_msmp4_dc_luma_vlc [ s -> dc_table_index ] . table , DC_VLC_BITS , 3 ) ;\n }\n else {\n dcdiff = get_vlc2 ( & s -> gb , ff_msmp4_dc_chroma_vlc [ s -> dc_table_index ] . table , DC_VLC_BITS , 3 ) ;\n }\n if ( dcdiff < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Illegal DC VLC\\n\" ) ;\n return - 1 ;\n }\n if ( dcdiff ) {\n if ( dcdiff == 119 ) {\n if ( mquant == 1 ) dcdiff = get_bits ( gb , 10 ) ;\n else if ( mquant == 2 ) dcdiff = get_bits ( gb , 9 ) ;\n else dcdiff = get_bits ( gb , 8 ) ;\n }\n else {\n if ( mquant == 1 ) dcdiff = ( dcdiff << 2 ) + get_bits ( gb , 2 ) - 3 ;\n else if ( mquant == 2 ) dcdiff = ( dcdiff << 1 ) + get_bits1 ( gb ) - 1 ;\n }\n if ( get_bits1 ( gb ) ) dcdiff = - dcdiff ;\n }\n dcdiff += vc1_pred_dc ( & v -> s , v -> overlap , mquant , n , v -> a_avail , v -> c_avail , & dc_val , & dc_pred_dir ) ;\n * dc_val = dcdiff ;\n if ( n < 4 ) {\n block [ 0 ] = dcdiff * s -> y_dc_scale ;\n }\n else {\n block [ 0 ] = dcdiff * s -> c_dc_scale ;\n }\n i = 1 ;\n if ( ! a_avail && ! c_avail ) use_pred = 0 ;\n ac_val = s -> ac_val [ 0 ] [ 0 ] + s -> block_index [ n ] * 16 ;\n ac_val2 = ac_val ;\n scale = mquant * 2 + ( ( mquant == v -> pq ) ? v -> halfpq : 0 ) ;\n if ( dc_pred_dir ) ac_val -= 16 ;\n else ac_val -= 16 * s -> block_wrap [ n ] ;\n q1 = s -> current_picture . qscale_table [ mb_pos ] ;\n if ( dc_pred_dir && c_avail && mb_pos ) q2 = s -> current_picture . qscale_table [ mb_pos - 1 ] ;\n if ( ! dc_pred_dir && a_avail && mb_pos >= s -> mb_stride ) q2 = s -> current_picture . qscale_table [ mb_pos - s -> mb_stride ] ;\n if ( dc_pred_dir && n == 1 ) q2 = q1 ;\n if ( ! dc_pred_dir && n == 2 ) q2 = q1 ;\n if ( n == 3 ) q2 = q1 ;\n if ( coded ) {\n int last = 0 , skip , value ;\n const uint8_t * zz_table ;\n int k ;\n if ( v -> s . ac_pred ) {\n if ( ! use_pred && v -> fcm == ILACE_FRAME ) {\n zz_table = v -> zzi_8x8 ;\n }\n else {\n if ( ! dc_pred_dir ) zz_table = v -> zz_8x8 [ 2 ] ;\n else zz_table = v -> zz_8x8 [ 3 ] ;\n }\n }\n else {\n if ( v -> fcm != ILACE_FRAME ) zz_table = v -> zz_8x8 [ 1 ] ;\n else zz_table = v -> zzi_8x8 ;\n }\n while ( ! last ) {\n vc1_decode_ac_coeff ( v , & last , & skip , & value , codingset ) ;\n i += skip ;\n if ( i > 63 ) break ;\n block [ zz_table [ i ++ ] ] = value ;\n }\n if ( use_pred ) {\n if ( q2 && q1 != q2 ) {\n q1 = q1 * 2 + ( ( q1 == v -> pq ) ? v -> halfpq : 0 ) - 1 ;\n q2 = q2 * 2 + ( ( q2 == v -> pq ) ? v -> halfpq : 0 ) - 1 ;\n if ( q1 < 1 ) return AVERROR_INVALIDDATA ;\n if ( dc_pred_dir ) {\n for ( k = 1 ;\n k < 8 ;\n k ++ ) block [ k << v -> left_blk_sh ] += ( ac_val [ k ] * q2 * ff_vc1_dqscale [ q1 - 1 ] + 0x20000 ) >> 18 ;\n }\n else {\n for ( k = 1 ;\n k < 8 ;\n k ++ ) block [ k << v -> top_blk_sh ] += ( ac_val [ k + 8 ] * q2 * ff_vc1_dqscale [ q1 - 1 ] + 0x20000 ) >> 18 ;\n }\n }\n else {\n if ( dc_pred_dir ) {\n for ( k = 1 ;\n k < 8 ;\n k ++ ) block [ k << v -> left_blk_sh ] += ac_val [ k ] ;\n }\n else {\n for ( k = 1 ;\n k < 8 ;\n k ++ ) block [ k << v -> top_blk_sh ] += ac_val [ k + 8 ] ;\n }\n }\n }\n for ( k = 1 ;\n k < 8 ;\n k ++ ) {\n ac_val2 [ k ] = block [ k << v -> left_blk_sh ] ;\n ac_val2 [ k + 8 ] = block [ k << v -> top_blk_sh ] ;\n }\n for ( k = 1 ;\n k < 64 ;\n k ++ ) if ( block [ k ] ) {\n block [ k ] *= scale ;\n if ( ! v -> pquantizer ) block [ k ] += ( block [ k ] < 0 ) ? - mquant : mquant ;\n }\n if ( use_pred ) i = 63 ;\n }\n else {\n int k ;\n memset ( ac_val2 , 0 , 16 * 2 ) ;\n if ( dc_pred_dir ) {\n if ( use_pred ) {\n memcpy ( ac_val2 , ac_val , 8 * 2 ) ;\n if ( q2 && q1 != q2 ) {\n q1 = q1 * 2 + ( ( q1 == v -> pq ) ? v -> halfpq : 0 ) - 1 ;\n q2 = q2 * 2 + ( ( q2 == v -> pq ) ? v -> halfpq : 0 ) - 1 ;\n if ( q1 < 1 ) return AVERROR_INVALIDDATA ;\n for ( k = 1 ;\n k < 8 ;\n k ++ ) ac_val2 [ k ] = ( ac_val2 [ k ] * q2 * ff_vc1_dqscale [ q1 - 1 ] + 0x20000 ) >> 18 ;\n }\n }\n }\n else {\n if ( use_pred ) {\n memcpy ( ac_val2 + 8 , ac_val + 8 , 8 * 2 ) ;\n if ( q2 && q1 != q2 ) {\n q1 = q1 * 2 + ( ( q1 == v -> pq ) ? v -> halfpq : 0 ) - 1 ;\n q2 = q2 * 2 + ( ( q2 == v -> pq ) ? v -> halfpq : 0 ) - 1 ;\n if ( q1 < 1 ) return AVERROR_INVALIDDATA ;\n for ( k = 1 ;\n k < 8 ;\n k ++ ) ac_val2 [ k + 8 ] = ( ac_val2 [ k + 8 ] * q2 * ff_vc1_dqscale [ q1 - 1 ] + 0x20000 ) >> 18 ;\n }\n }\n }\n if ( use_pred ) {\n if ( dc_pred_dir ) {\n for ( k = 1 ;\n k < 8 ;\n k ++ ) {\n block [ k << v -> left_blk_sh ] = ac_val2 [ k ] * scale ;\n if ( ! v -> pquantizer && block [ k << v -> left_blk_sh ] ) block [ k << v -> left_blk_sh ] += ( block [ k << v -> left_blk_sh ] < 0 ) ? - mquant : mquant ;\n }\n }\n else {\n for ( k = 1 ;\n k < 8 ;\n k ++ ) {\n block [ k << v -> top_blk_sh ] = ac_val2 [ k + 8 ] * scale ;\n if ( ! v -> pquantizer && block [ k << v -> top_blk_sh ] ) block [ k << v -> top_blk_sh ] += ( block [ k << v -> top_blk_sh ] < 0 ) ? - mquant : mquant ;\n }\n }\n i = 63 ;\n }\n }\n s -> block_last_index [ n ] = i ;\n return 0 ;\n }"}
{"idx": 4893, "target": 0, "func": "void printFirst ( UBreakIterator * boundary , UChar * str ) {\n int32_t end ;\n int32_t start = ubrk_first ( boundary ) ;\n end = ubrk_next ( boundary ) ;\n printTextRange ( str , start , end ) ;\n }"}
{"idx": 4894, "target": 0, "func": "static void aw_pulse_set2 ( WMAVoiceContext * s , GetBitContext * gb , int block_idx , AMRFixed * fcb ) {\n uint16_t use_mask_mem [ 9 ] ;\n uint16_t * use_mask = use_mask_mem + 2 ;\n int pulse_off = s -> aw_first_pulse_off [ block_idx ] , pulse_start , n , idx , range , aidx , start_off = 0 ;\n if ( s -> aw_n_pulses [ block_idx ] > 0 ) while ( pulse_off + s -> aw_pulse_range < 1 ) pulse_off += fcb -> pitch_lag ;\n if ( s -> aw_n_pulses [ 0 ] > 0 ) {\n if ( block_idx == 0 ) {\n range = 32 ;\n }\n else {\n range = 8 ;\n if ( s -> aw_n_pulses [ block_idx ] > 0 ) pulse_off = s -> aw_next_pulse_off_cache ;\n }\n }\n else range = 16 ;\n pulse_start = s -> aw_n_pulses [ block_idx ] > 0 ? pulse_off - range / 2 : 0 ;\n memset ( & use_mask [ - 2 ] , 0 , 2 * sizeof ( use_mask [ 0 ] ) ) ;\n memset ( use_mask , - 1 , 5 * sizeof ( use_mask [ 0 ] ) ) ;\n memset ( & use_mask [ 5 ] , 0 , 2 * sizeof ( use_mask [ 0 ] ) ) ;\n if ( s -> aw_n_pulses [ block_idx ] > 0 ) for ( idx = pulse_off ;\n idx < MAX_FRAMESIZE / 2 ;\n idx += fcb -> pitch_lag ) {\n int excl_range = s -> aw_pulse_range ;\n uint16_t * use_mask_ptr = & use_mask [ idx >> 4 ] ;\n int first_sh = 16 - ( idx & 15 ) ;\n * use_mask_ptr ++ &= 0xFFFFu << first_sh ;\n excl_range -= first_sh ;\n if ( excl_range >= 16 ) {\n * use_mask_ptr ++ = 0 ;\n * use_mask_ptr &= 0xFFFF >> ( excl_range - 16 ) ;\n }\n else * use_mask_ptr &= 0xFFFF >> excl_range ;\n }\n aidx = get_bits ( gb , s -> aw_n_pulses [ 0 ] > 0 ? 5 - 2 * block_idx : 4 ) ;\n for ( n = 0 ;\n n <= aidx ;\n pulse_start ++ ) {\n for ( idx = pulse_start ;\n idx < 0 ;\n idx += fcb -> pitch_lag ) ;\n if ( idx >= MAX_FRAMESIZE / 2 ) {\n if ( use_mask [ 0 ] ) idx = 0x0F ;\n else if ( use_mask [ 1 ] ) idx = 0x1F ;\n else if ( use_mask [ 2 ] ) idx = 0x2F ;\n else if ( use_mask [ 3 ] ) idx = 0x3F ;\n else if ( use_mask [ 4 ] ) idx = 0x4F ;\n else return ;\n idx -= av_log2_16bit ( use_mask [ idx >> 4 ] ) ;\n }\n if ( use_mask [ idx >> 4 ] & ( 0x8000 >> ( idx & 15 ) ) ) {\n use_mask [ idx >> 4 ] &= ~ ( 0x8000 >> ( idx & 15 ) ) ;\n n ++ ;\n start_off = idx ;\n }\n }\n fcb -> x [ fcb -> n ] = start_off ;\n fcb -> y [ fcb -> n ] = get_bits1 ( gb ) ? - 1.0 : 1.0 ;\n fcb -> n ++ ;\n n = ( MAX_FRAMESIZE / 2 - start_off ) % fcb -> pitch_lag ;\n s -> aw_next_pulse_off_cache = n ? fcb -> pitch_lag - n : 0 ;\n }"}
{"idx": 4895, "target": 0, "func": "static cmsTagTypeSignature DecideLUTtypeA2B ( cmsFloat64Number ICCVersion , const void * Data ) {\n cmsPipeline * Lut = ( cmsPipeline * ) Data ;\n if ( ICCVersion < 4.0 ) {\n if ( Lut -> SaveAs8Bits ) return cmsSigLut8Type ;\n return cmsSigLut16Type ;\n }\n else {\n return cmsSigLutAtoBType ;\n }\n }"}
{"idx": 4896, "target": 0, "func": "int mime_format_date ( char * buffer , time_t value ) {\n static const char * daystrs [ ] = {\n \"Sun\" , \"Mon\" , \"Tue\" , \"Wed\" , \"Thu\" , \"Fri\" , \"Sat\" }\n ;\n static const char * monthstrs [ ] = {\n \"Jan\" , \"Feb\" , \"Mar\" , \"Apr\" , \"May\" , \"Jun\" , \"Jul\" , \"Aug\" , \"Sep\" , \"Oct\" , \"Nov\" , \"Dec\" }\n ;\n static const char * digitstrs [ ] = {\n \"00\" , \"01\" , \"02\" , \"03\" , \"04\" , \"05\" , \"06\" , \"07\" , \"08\" , \"09\" , \"10\" , \"11\" , \"12\" , \"13\" , \"14\" , \"15\" , \"16\" , \"17\" , \"18\" , \"19\" , \"20\" , \"21\" , \"22\" , \"23\" , \"24\" , \"25\" , \"26\" , \"27\" , \"28\" , \"29\" , \"30\" , \"31\" , \"32\" , \"33\" , \"34\" , \"35\" , \"36\" , \"37\" , \"38\" , \"39\" , \"40\" , \"41\" , \"42\" , \"43\" , \"44\" , \"45\" , \"46\" , \"47\" , \"48\" , \"49\" , \"50\" , \"51\" , \"52\" , \"53\" , \"54\" , \"55\" , \"56\" , \"57\" , \"58\" , \"59\" , \"60\" , \"61\" , \"62\" , \"63\" , \"64\" , \"65\" , \"66\" , \"67\" , \"68\" , \"69\" , \"70\" , \"71\" , \"72\" , \"73\" , \"74\" , \"75\" , \"76\" , \"77\" , \"78\" , \"79\" , \"80\" , \"81\" , \"82\" , \"83\" , \"84\" , \"85\" , \"86\" , \"87\" , \"88\" , \"89\" , \"90\" , \"91\" , \"92\" , \"93\" , \"94\" , \"95\" , \"96\" , \"97\" , \"98\" , \"99\" , }\n ;\n char * buf ;\n int sec , min , hour , wday , mday = 0 , year = 0 , month = 0 ;\n buf = buffer ;\n sec = ( int ) ( value % 60 ) ;\n value /= 60 ;\n min = ( int ) ( value % 60 ) ;\n value /= 60 ;\n hour = ( int ) ( value % 24 ) ;\n value /= 24 ;\n wday = ( int ) ( ( 4 + value ) % 7 ) ;\n # if MIME_FORMAT_DATE_USE_LOOKUP_TABLE mime_days_since_epoch_to_mdy ( value , & month , & mday , & year ) ;\n # else mime_days_since_epoch_to_mdy_slowcase ( value , & month , & mday , & year ) ;\n # endif ink_assert ( ( mday >= 0 ) && ( mday <= 99 ) ) ;\n ink_assert ( ( hour >= 0 ) && ( hour <= 99 ) ) ;\n ink_assert ( ( min >= 0 ) && ( min <= 99 ) ) ;\n ink_assert ( ( sec >= 0 ) && ( sec <= 99 ) ) ;\n const char * three_char_day = daystrs [ wday ] ;\n buf [ 0 ] = three_char_day [ 0 ] ;\n buf [ 1 ] = three_char_day [ 1 ] ;\n buf [ 2 ] = three_char_day [ 2 ] ;\n buf += 3 ;\n buf [ 0 ] = ',' ;\n buf [ 1 ] = ' ' ;\n buf += 2 ;\n buf [ 0 ] = digitstrs [ mday ] [ 0 ] ;\n buf [ 1 ] = digitstrs [ mday ] [ 1 ] ;\n buf [ 2 ] = ' ' ;\n buf += 3 ;\n const char * three_char_month = monthstrs [ month ] ;\n buf [ 0 ] = three_char_month [ 0 ] ;\n buf [ 1 ] = three_char_month [ 1 ] ;\n buf [ 2 ] = three_char_month [ 2 ] ;\n buf += 3 ;\n buf [ 0 ] = ' ' ;\n if ( ( year >= 2000 ) && ( year <= 2009 ) ) {\n buf [ 1 ] = '2' ;\n buf [ 2 ] = '0' ;\n buf [ 3 ] = '0' ;\n buf [ 4 ] = ( year - 2000 ) + '0' ;\n }\n else if ( ( year >= 1990 ) && ( year <= 1999 ) ) {\n buf [ 1 ] = '1' ;\n buf [ 2 ] = '9' ;\n buf [ 3 ] = '9' ;\n buf [ 4 ] = ( year - 1990 ) + '0' ;\n }\n else {\n buf [ 4 ] = ( year % 10 ) + '0' ;\n year /= 10 ;\n buf [ 3 ] = ( year % 10 ) + '0' ;\n year /= 10 ;\n buf [ 2 ] = ( year % 10 ) + '0' ;\n year /= 10 ;\n buf [ 1 ] = ( year % 10 ) + '0' ;\n }\n buf [ 5 ] = ' ' ;\n buf += 6 ;\n buf [ 0 ] = digitstrs [ hour ] [ 0 ] ;\n buf [ 1 ] = digitstrs [ hour ] [ 1 ] ;\n buf [ 2 ] = ':' ;\n buf += 3 ;\n buf [ 0 ] = digitstrs [ min ] [ 0 ] ;\n buf [ 1 ] = digitstrs [ min ] [ 1 ] ;\n buf [ 2 ] = ':' ;\n buf += 3 ;\n buf [ 0 ] = digitstrs [ sec ] [ 0 ] ;\n buf [ 1 ] = digitstrs [ sec ] [ 1 ] ;\n buf [ 2 ] = ' ' ;\n buf += 3 ;\n buf [ 0 ] = 'G' ;\n buf [ 1 ] = 'M' ;\n buf [ 2 ] = 'T' ;\n buf [ 3 ] = '\\0' ;\n buf += 3 ;\n return buf - buffer ;\n }"}
{"idx": 4897, "target": 0, "func": "static const char * _warc_find_eol ( const char * buf , size_t bsz ) {\n static const char _marker [ ] = \"\\r\\n\" ;\n const char * hit = xmemmem ( buf , bsz , _marker , sizeof ( _marker ) - 1U ) ;\n return hit ;\n }"}
{"idx": 4898, "target": 0, "func": "TSReturnCode TSMimeHdrFieldCreateNamed ( TSMBuffer bufp , TSMLoc mh_mloc , const char * name , int name_len , TSMLoc * locp ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( mh_mloc ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( mh_mloc ) == TS_SUCCESS ) ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) name ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) locp ) == TS_SUCCESS ) ;\n if ( ! isWriteable ( bufp ) ) {\n return TS_ERROR ;\n }\n if ( name_len == - 1 ) {\n name_len = strlen ( name ) ;\n }\n MIMEHdrImpl * mh = _hdr_mloc_to_mime_hdr_impl ( mh_mloc ) ;\n HdrHeap * heap = ( HdrHeap * ) ( ( ( HdrHeapSDKHandle * ) bufp ) -> m_heap ) ;\n MIMEFieldSDKHandle * h = sdk_alloc_field_handle ( bufp , mh ) ;\n h -> field_ptr = mime_field_create_named ( heap , mh , name , name_len ) ;\n * locp = reinterpret_cast < TSMLoc > ( h ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 4899, "target": 0, "func": "static inline int ishex ( int a ) {\n return ( a >= 'A' && a <= 'F' ) || ( a >= 'a' && a <= 'f' ) || ( a >= '0' && a <= '9' ) ;\n }"}
{"idx": 4900, "target": 0, "func": "void bn_mul_comba8 ( BN_ULONG * r , BN_ULONG * a , BN_ULONG * b ) {\n r [ 8 ] = bn_mul_words ( & ( r [ 0 ] ) , a , 8 , b [ 0 ] ) ;\n r [ 9 ] = bn_mul_add_words ( & ( r [ 1 ] ) , a , 8 , b [ 1 ] ) ;\n r [ 10 ] = bn_mul_add_words ( & ( r [ 2 ] ) , a , 8 , b [ 2 ] ) ;\n r [ 11 ] = bn_mul_add_words ( & ( r [ 3 ] ) , a , 8 , b [ 3 ] ) ;\n r [ 12 ] = bn_mul_add_words ( & ( r [ 4 ] ) , a , 8 , b [ 4 ] ) ;\n r [ 13 ] = bn_mul_add_words ( & ( r [ 5 ] ) , a , 8 , b [ 5 ] ) ;\n r [ 14 ] = bn_mul_add_words ( & ( r [ 6 ] ) , a , 8 , b [ 6 ] ) ;\n r [ 15 ] = bn_mul_add_words ( & ( r [ 7 ] ) , a , 8 , b [ 7 ] ) ;\n }"}
{"idx": 4901, "target": 0, "func": "static int rac_get_bit ( RangeCoder * c ) {\n int bit ;\n c -> range >>= 1 ;\n bit = ( c -> range <= c -> low ) ;\n if ( bit ) c -> low -= c -> range ;\n if ( c -> range < RAC_BOTTOM ) rac_normalise ( c ) ;\n return bit ;\n }"}
{"idx": 4902, "target": 0, "func": "static void cgfs_destroy ( void * hdata ) {\n struct cgfs_data * d = hdata ;\n if ( ! d ) return ;\n free ( d -> name ) ;\n lxc_cgroup_process_info_free_and_remove ( d -> info ) ;\n lxc_cgroup_put_meta ( d -> meta ) ;\n free ( d ) ;\n }"}
{"idx": 4903, "target": 0, "func": "static int lzh_decompress ( struct kwajd_stream * lzh ) {\n register unsigned int bit_buffer ;\n register int bits_left , i ;\n register unsigned short sym ;\n unsigned char * i_ptr , * i_end , lit_run = 0 ;\n int j , pos = 0 , len , offset , err ;\n unsigned int types [ 6 ] ;\n INIT_BITS ;\n RESTORE_BITS ;\n memset ( & lzh -> window [ 0 ] , LZSS_WINDOW_FILL , ( size_t ) LZSS_WINDOW_SIZE ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) READ_BITS_SAFE ( types [ i ] , 4 ) ;\n BUILD_TREE ( MATCHLEN1 , types [ 0 ] ) ;\n BUILD_TREE ( MATCHLEN2 , types [ 1 ] ) ;\n BUILD_TREE ( LITLEN , types [ 2 ] ) ;\n BUILD_TREE ( OFFSET , types [ 3 ] ) ;\n BUILD_TREE ( LITERAL , types [ 4 ] ) ;\n while ( ! lzh -> input_end ) {\n if ( lit_run ) READ_HUFFSYM_SAFE ( MATCHLEN2 , len ) ;\n else READ_HUFFSYM_SAFE ( MATCHLEN1 , len ) ;\n if ( len > 0 ) {\n len += 2 ;\n lit_run = 0 ;\n READ_HUFFSYM_SAFE ( OFFSET , j ) ;\n offset = j << 6 ;\n READ_BITS_SAFE ( j , 6 ) ;\n offset |= j ;\n while ( len -- > 0 ) {\n lzh -> window [ pos ] = lzh -> window [ ( pos + 4096 - offset ) & 4095 ] ;\n WRITE_BYTE ;\n pos ++ ;\n pos &= 4095 ;\n }\n }\n else {\n READ_HUFFSYM_SAFE ( LITLEN , len ) ;\n len ++ ;\n lit_run = ( len == 32 ) ? 0 : 1 ;\n while ( len -- > 0 ) {\n READ_HUFFSYM_SAFE ( LITERAL , j ) ;\n lzh -> window [ pos ] = j ;\n WRITE_BYTE ;\n pos ++ ;\n pos &= 4095 ;\n }\n }\n }\n return MSPACK_ERR_OK ;\n }"}
{"idx": 4904, "target": 0, "func": "static int dissect_h245_MaximumHeaderIntervalReq ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MaximumHeaderIntervalReq , MaximumHeaderIntervalReq_sequence ) ;\n return offset ;\n }"}
{"idx": 4905, "target": 0, "func": "static inline int l3_unscale ( int value , int exponent ) {\n unsigned int m ;\n int e ;\n e = table_4_3_exp [ 4 * value + ( exponent & 3 ) ] ;\n m = table_4_3_value [ 4 * value + ( exponent & 3 ) ] ;\n e -= exponent >> 2 ;\n assert ( e >= 1 ) ;\n if ( e > 31 ) return 0 ;\n m = ( m + ( 1 << ( e - 1 ) ) ) >> e ;\n return m ;\n }"}
{"idx": 4906, "target": 0, "func": "int tmx_init_pretran_table ( void ) {\n int n ;\n int pn ;\n pn = get_max_procs ( ) ;\n if ( pn <= 0 ) return - 1 ;\n if ( _tmx_ptran_table != NULL ) return - 1 ;\n n = - 1 ;\n while ( pn >> ++ n > 0 ) ;\n n -- ;\n if ( n <= 1 ) n = 2 ;\n if ( n > 8 ) n = 8 ;\n _tmx_ptran_size = 1 << n ;\n _tmx_ptran_table = ( pretran_slot_t * ) shm_malloc ( _tmx_ptran_size * sizeof ( pretran_slot_t ) ) ;\n if ( _tmx_ptran_table == NULL ) {\n LM_ERR ( \"not enough shared memory\\n\" ) ;\n return - 1 ;\n }\n memset ( _tmx_ptran_table , 0 , _tmx_ptran_size * sizeof ( pretran_slot_t ) ) ;\n for ( n = 0 ;\n n < _tmx_ptran_size ;\n n ++ ) {\n if ( lock_init ( & _tmx_ptran_table [ n ] . lock ) == NULL ) {\n LM_ERR ( \"cannot init the lock %d\\n\" , n ) ;\n n -- ;\n while ( n >= 0 ) {\n lock_destroy ( & _tmx_ptran_table [ n ] . lock ) ;\n n -- ;\n }\n shm_free ( _tmx_ptran_table ) ;\n _tmx_ptran_table = 0 ;\n _tmx_ptran_size = 0 ;\n return - 1 ;\n }\n }\n return 0 ;\n }"}
{"idx": 4907, "target": 0, "func": "static void LaunchPermissionUpdateInfoBar ( JNIEnv * env , const JavaParamRef < jclass > & clazz , const JavaParamRef < jobject > & tab , const JavaParamRef < jstring > & jpermission , jlong callback_id ) {\n TabAndroid * tab_android = TabAndroid : : GetNativeTab ( env , tab ) ;\n std : : string permission = base : : android : : ConvertJavaStringToUTF8 ( env , jpermission ) ;\n scoped_ptr < DownloadControllerAndroid : : AcquireFileAccessPermissionCallback > cb ( reinterpret_cast < DownloadControllerAndroid : : AcquireFileAccessPermissionCallback * > ( callback_id ) ) ;\n std : : vector < std : : string > permissions ;\n permissions . push_back ( permission ) ;\n PermissionUpdateInfoBarDelegate : : Create ( tab_android -> web_contents ( ) , permissions , IDS_MISSING_STORAGE_PERMISSION_DOWNLOAD_EDUCATION_TEXT , * cb ) ;\n }"}
{"idx": 4908, "target": 0, "func": "void PNGAPI png_set_hIST ( png_structp png_ptr , png_infop info_ptr , png_uint_16p hist ) {\n int i ;\n png_debug1 ( 1 , \"in %s storage function\" , \"hIST\" ) ;\n if ( png_ptr == NULL || info_ptr == NULL ) return ;\n if ( info_ptr -> num_palette == 0 || info_ptr -> num_palette > PNG_MAX_PALETTE_LENGTH ) {\n png_warning ( png_ptr , \"Invalid palette size, hIST allocation skipped.\" ) ;\n return ;\n }\n # ifdef PNG_FREE_ME_SUPPORTED png_free_data ( png_ptr , info_ptr , PNG_FREE_HIST , 0 ) ;\n # endif png_ptr -> hist = ( png_uint_16p ) png_malloc_warn ( png_ptr , ( png_uint_32 ) ( PNG_MAX_PALETTE_LENGTH * png_sizeof ( png_uint_16 ) ) ) ;\n if ( png_ptr -> hist == NULL ) {\n png_warning ( png_ptr , \"Insufficient memory for hIST chunk data.\" ) ;\n return ;\n }\n for ( i = 0 ;\n i < info_ptr -> num_palette ;\n i ++ ) png_ptr -> hist [ i ] = hist [ i ] ;\n info_ptr -> hist = png_ptr -> hist ;\n info_ptr -> valid |= PNG_INFO_hIST ;\n # ifdef PNG_FREE_ME_SUPPORTED info_ptr -> free_me |= PNG_FREE_HIST ;\n # else png_ptr -> flags |= PNG_FLAG_FREE_HIST ;\n # endif }"}
{"idx": 4909, "target": 0, "func": "static void move_files_prepare ( CopyMoveJob * job , const char * dest_fs_id , char * * dest_fs_type , GList * * fallbacks ) {\n CommonJob * common ;\n GList * l ;\n GFile * src ;\n gboolean same_fs ;\n int i ;\n GdkPoint * point ;\n int total , left ;\n common = & job -> common ;\n total = left = g_list_length ( job -> files ) ;\n report_preparing_move_progress ( job , total , left ) ;\n i = 0 ;\n for ( l = job -> files ;\n l != NULL && ! job_aborted ( common ) ;\n l = l -> next ) {\n src = l -> data ;\n if ( i < job -> n_icon_positions ) {\n point = & job -> icon_positions [ i ] ;\n }\n else {\n point = NULL ;\n }\n same_fs = FALSE ;\n if ( dest_fs_id ) {\n same_fs = has_fs_id ( src , dest_fs_id ) ;\n }\n move_file_prepare ( job , src , job -> destination , same_fs , dest_fs_type , job -> debuting_files , point , fallbacks , left ) ;\n report_preparing_move_progress ( job , total , -- left ) ;\n i ++ ;\n }\n * fallbacks = g_list_reverse ( * fallbacks ) ;\n }"}
{"idx": 4910, "target": 0, "func": "static PyObject * string_ljust ( PyStringObject * self , PyObject * args ) {\n Py_ssize_t width ;\n char fillchar = ' ' ;\n if ( ! PyArg_ParseTuple ( args , \"n|c:ljust\" , & width , & fillchar ) ) return NULL ;\n if ( PyString_GET_SIZE ( self ) >= width && PyString_CheckExact ( self ) ) {\n Py_INCREF ( self ) ;\n return ( PyObject * ) self ;\n }\n return pad ( self , 0 , width - PyString_GET_SIZE ( self ) , fillchar ) ;\n }"}
{"idx": 4911, "target": 0, "func": "static void test_bug4172 ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND my_bind [ 3 ] ;\n const char * stmt_text ;\n MYSQL_RES * res ;\n MYSQL_ROW row ;\n int rc ;\n char f [ 100 ] , d [ 100 ] , e [ 100 ] ;\n ulong f_len , d_len , e_len ;\n myheader ( \"test_bug4172\" ) ;\n mysql_query ( mysql , \"DROP TABLE IF EXISTS t1\" ) ;\n mysql_query ( mysql , \"CREATE TABLE t1 (f float, d double, e decimal(10,4))\" ) ;\n mysql_query ( mysql , \"INSERT INTO t1 VALUES (12345.1234, 123456.123456, \" \"123456.1234)\" ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n stmt_text = \"SELECT f, d, e FROM t1\" ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 0 ] . buffer = f ;\n my_bind [ 0 ] . buffer_length = sizeof ( f ) ;\n my_bind [ 0 ] . length = & f_len ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 1 ] . buffer = d ;\n my_bind [ 1 ] . buffer_length = sizeof ( d ) ;\n my_bind [ 1 ] . length = & d_len ;\n my_bind [ 2 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 2 ] . buffer = e ;\n my_bind [ 2 ] . buffer_length = sizeof ( e ) ;\n my_bind [ 2 ] . length = & e_len ;\n mysql_stmt_bind_result ( stmt , my_bind ) ;\n mysql_stmt_store_result ( stmt ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n res = mysql_store_result ( mysql ) ;\n row = mysql_fetch_row ( res ) ;\n if ( ! opt_silent ) {\n printf ( \"Binary protocol: float=%s, double=%s, decimal(10,4)=%s\\n\" , f , d , e ) ;\n printf ( \"Text protocol: float=%s, double=%s, decimal(10,4)=%s\\n\" , row [ 0 ] , row [ 1 ] , row [ 2 ] ) ;\n }\n DIE_UNLESS ( ! strcmp ( f , row [ 0 ] ) && ! strcmp ( d , row [ 1 ] ) && ! strcmp ( e , row [ 2 ] ) ) ;\n mysql_free_result ( res ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 4912, "target": 0, "func": "static char * fix_path_separator ( char * path ) {\n # ifdef WIN32 char * result ;\n char * c ;\n result = pg_strdup ( path ) ;\n for ( c = result ;\n * c != '\\0' ;\n c ++ ) if ( * c == '/' ) * c = '\\\\' ;\n return result ;\n # else return path ;\n # endif }"}
{"idx": 4913, "target": 0, "func": "relpRetVal relpTcpConstruct ( relpTcp_t * * ppThis , relpEngine_t * pEngine , int connType , void * pParent ) {\n relpTcp_t * pThis ;\n ENTER_RELPFUNC ;\n assert ( ppThis != NULL ) ;\n if ( ( pThis = calloc ( 1 , sizeof ( relpTcp_t ) ) ) == NULL ) {\n ABORT_FINALIZE ( RELP_RET_OUT_OF_MEMORY ) ;\n }\n RELP_CORE_CONSTRUCTOR ( pThis , Tcp ) ;\n if ( connType == RELP_SRV_CONN ) {\n pThis -> pSrv = ( relpSrv_t * ) pParent ;\n }\n else {\n pThis -> pClt = ( relpClt_t * ) pParent ;\n }\n pThis -> sock = - 1 ;\n pThis -> pEngine = pEngine ;\n pThis -> iSessMax = 500 ;\n pThis -> bTLSActive = 0 ;\n pThis -> dhBits = DEFAULT_DH_BITS ;\n pThis -> pristring = NULL ;\n pThis -> authmode = eRelpAuthMode_None ;\n pThis -> caCertFile = NULL ;\n pThis -> ownCertFile = NULL ;\n pThis -> privKeyFile = NULL ;\n pThis -> pUsr = NULL ;\n pThis -> permittedPeers . nmemb = 0 ;\n * ppThis = pThis ;\n finalize_it : LEAVE_RELPFUNC ;\n }"}
{"idx": 4914, "target": 1, "func": "static int truemotion1_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int ret , buf_size = avpkt -> size ;\n TrueMotion1Context * s = avctx -> priv_data ;\n s -> buf = buf ;\n s -> size = buf_size ;\n if ( ( ret = truemotion1_decode_header ( s ) ) < 0 ) return ret ;\n s -> frame . reference = 1 ;\n s -> frame . buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE ;\n if ( ( ret = avctx -> reget_buffer ( avctx , & s -> frame ) ) < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( compression_types [ s -> compression ] . algorithm == ALGO_RGB24H ) {\n truemotion1_decode_24bit ( s ) ;\n }\n else if ( compression_types [ s -> compression ] . algorithm != ALGO_NOP ) {\n truemotion1_decode_16bit ( s ) ;\n }\n * got_frame = 1 ;\n * ( AVFrame * ) data = s -> frame ;\n return buf_size ;\n }"}
{"idx": 4915, "target": 0, "func": "static void dissect_zcl_color_control_move_to_color_temp ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_color_temp , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_transit_time , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n }"}
{"idx": 4916, "target": 0, "func": "unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }"}
{"idx": 4917, "target": 0, "func": "static guint16 de_llc ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n curr_offset = offset ;\n dissect_q931_bearer_capability_ie ( tvb , offset , len , tree ) ;\n curr_offset = curr_offset + len ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 4918, "target": 0, "func": "void vp9_quantize_dc ( const tran_low_t * coeff_ptr , int skip_block , const int16_t * round_ptr , const int16_t quant , tran_low_t * qcoeff_ptr , tran_low_t * dqcoeff_ptr , const int16_t dequant_ptr , uint16_t * eob_ptr ) {\n const int rc = 0 ;\n const int coeff = coeff_ptr [ rc ] ;\n const int coeff_sign = ( coeff >> 31 ) ;\n const int abs_coeff = ( coeff ^ coeff_sign ) - coeff_sign ;\n int tmp , eob = - 1 ;\n if ( ! skip_block ) {\n tmp = clamp ( abs_coeff + round_ptr [ rc != 0 ] , INT16_MIN , INT16_MAX ) ;\n tmp = ( tmp * quant ) >> 16 ;\n qcoeff_ptr [ rc ] = ( tmp ^ coeff_sign ) - coeff_sign ;\n dqcoeff_ptr [ rc ] = qcoeff_ptr [ rc ] * dequant_ptr ;\n if ( tmp ) eob = 0 ;\n }\n * eob_ptr = eob + 1 ;\n }"}
{"idx": 4919, "target": 0, "func": "static int have_duplicate_entry ( const unsigned char * sha1 , int exclude , uint32_t * index_pos ) {\n struct object_entry * entry ;\n entry = packlist_find ( & to_pack , sha1 , index_pos ) ;\n if ( ! entry ) return 0 ;\n if ( exclude ) {\n if ( ! entry -> preferred_base ) nr_result -- ;\n entry -> preferred_base = 1 ;\n }\n return 1 ;\n }"}
{"idx": 4920, "target": 0, "func": "OM_uint32 kg_caller_provided_ccache_name ( OM_uint32 * minor_status , int * out_caller_provided_name ) {\n if ( out_caller_provided_name ) {\n * out_caller_provided_name = ( k5_getspecific ( K5_KEY_GSS_KRB5_CCACHE_NAME ) != NULL ) ;\n }\n * minor_status = 0 ;\n return GSS_S_COMPLETE ;\n }"}
{"idx": 4921, "target": 0, "func": "static BITSTREAM_PROFILE read_profile ( struct vp9_read_bit_buffer * rb ) {\n int profile = vp9_rb_read_bit ( rb ) ;\n profile |= vp9_rb_read_bit ( rb ) << 1 ;\n return ( BITSTREAM_PROFILE ) profile ;\n }"}
{"idx": 4922, "target": 0, "func": "static spl_ptr_llist * spl_ptr_llist_init ( spl_ptr_llist_ctor_func ctor , spl_ptr_llist_dtor_func dtor ) {\n spl_ptr_llist * llist = emalloc ( sizeof ( spl_ptr_llist ) ) ;\n llist -> head = NULL ;\n llist -> tail = NULL ;\n llist -> count = 0 ;\n llist -> dtor = dtor ;\n llist -> ctor = ctor ;\n return llist ;\n }"}
{"idx": 4923, "target": 1, "func": "TEST_F ( WebUsbDetectorTest , UsbDeviceAddedAndRemoved ) {\n base : : string16 product_name = base : : UTF8ToUTF16 ( kProductName_1 ) ;\n GURL landing_page ( kLandingPage_1 ) ;\n scoped_refptr < device : : MockUsbDevice > device ( new device : : MockUsbDevice ( 0 , 1 , \"Google\" , kProductName_1 , \"002\" , landing_page ) ) ;\n std : : string guid = device -> guid ( ) ;\n Initialize ( ) ;\n device_client_ . usb_service ( ) -> AddDevice ( device ) ;\n message_center : : Notification * notification = message_center_ -> FindVisibleNotificationById ( guid ) ;\n ASSERT_TRUE ( notification != nullptr ) ;\n base : : string16 expected_title = base : : ASCIIToUTF16 ( \"Google Product A detected\" ) ;\n EXPECT_EQ ( expected_title , notification -> title ( ) ) ;\n base : : string16 expected_message = base : : ASCIIToUTF16 ( \"Go to www.google.com/A to connect.\" ) ;\n EXPECT_EQ ( expected_message , notification -> message ( ) ) ;\n EXPECT_TRUE ( notification -> delegate ( ) != nullptr ) ;\n device_client_ . usb_service ( ) -> RemoveDevice ( device ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid ) == nullptr ) ;\n }"}
{"idx": 4924, "target": 0, "func": "static void U_CALLCONV _LMBCSOpen ## n ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err ) \\ {\n _LMBCSOpenWorker ( _this , pArgs , err , n ) ;\n }\n static void _LMBCSOpenWorker ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err , ulmbcs_byte_t OptGroup ) {\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) uprv_malloc ( sizeof ( UConverterDataLMBCS ) ) ;\n _this -> extraInfo = extraInfo ;\n if ( extraInfo != NULL ) {\n UConverterNamePieces stackPieces ;\n UConverterLoadArgs stackArgs = UCNV_LOAD_ARGS_INITIALIZER ;\n ulmbcs_byte_t i ;\n uprv_memset ( extraInfo , 0 , sizeof ( UConverterDataLMBCS ) ) ;\n stackArgs . onlyTestIsLoadable = pArgs -> onlyTestIsLoadable ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST && U_SUCCESS ( * err ) ;\n i ++ ) {\n if ( OptGroupByteToCPName [ i ] != NULL ) {\n extraInfo -> OptGrpConverter [ i ] = ucnv_loadSharedData ( OptGroupByteToCPName [ i ] , & stackPieces , & stackArgs , err ) ;\n }\n }\n if ( U_FAILURE ( * err ) || pArgs -> onlyTestIsLoadable ) {\n _LMBCSClose ( _this ) ;\n return ;\n }\n extraInfo -> OptGroup = OptGroup ;\n extraInfo -> localeConverterIndex = FindLMBCSLocale ( pArgs -> locale ) ;\n }\n else {\n * err = U_MEMORY_ALLOCATION_ERROR ;\n }\n }\n U_CDECL_BEGIN static void U_CALLCONV _LMBCSClose ( UConverter * _this ) {\n if ( _this -> extraInfo != NULL ) {\n ulmbcs_byte_t Ix ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) _this -> extraInfo ;\n for ( Ix = 0 ;\n Ix <= ULMBCS_GRP_LAST ;\n Ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ Ix ] != NULL ) ucnv_unloadSharedDataIfReady ( extraInfo -> OptGrpConverter [ Ix ] ) ;\n }\n if ( ! _this -> isExtraLocal ) {\n uprv_free ( _this -> extraInfo ) ;\n _this -> extraInfo = NULL ;\n }\n }\n }\n typedef struct LMBCSClone {\n UConverter cnv ;\n UConverterDataLMBCS lmbcs ;\n }\n LMBCSClone ;\n static UConverter * U_CALLCONV _LMBCSSafeClone ( const UConverter * cnv , void * stackBuffer , int32_t * pBufferSize , UErrorCode * status ) {\n ( void ) status ;\n LMBCSClone * newLMBCS ;\n UConverterDataLMBCS * extraInfo ;\n int32_t i ;\n if ( * pBufferSize <= 0 ) {\n * pBufferSize = ( int32_t ) sizeof ( LMBCSClone ) ;\n return NULL ;\n }\n extraInfo = ( UConverterDataLMBCS * ) cnv -> extraInfo ;\n newLMBCS = ( LMBCSClone * ) stackBuffer ;\n uprv_memcpy ( & newLMBCS -> lmbcs , extraInfo , sizeof ( UConverterDataLMBCS ) ) ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST ;\n ++ i ) {\n if ( extraInfo -> OptGrpConverter [ i ] != NULL ) {\n ucnv_incrementRefCount ( extraInfo -> OptGrpConverter [ i ] ) ;\n }\n }\n newLMBCS -> cnv . extraInfo = & newLMBCS -> lmbcs ;\n newLMBCS -> cnv . isExtraLocal = TRUE ;\n return & newLMBCS -> cnv ;\n }\n static size_t LMBCSConversionWorker ( UConverterDataLMBCS * extraInfo , ulmbcs_byte_t group , ulmbcs_byte_t * pStartLMBCS , UChar * pUniChar , ulmbcs_byte_t * lastConverterIndex , UBool * groups_tried ) {\n ulmbcs_byte_t * pLMBCS = pStartLMBCS ;\n UConverterSharedData * xcnv = extraInfo -> OptGrpConverter [ group ] ;\n int bytesConverted ;\n uint32_t value ;\n ulmbcs_byte_t firstByte ;\n U_ASSERT ( xcnv ) ;\n U_ASSERT ( group < ULMBCS_GRP_UNICODE ) ;\n bytesConverted = ucnv_MBCSFromUChar32 ( xcnv , * pUniChar , & value , FALSE ) ;\n if ( bytesConverted > 0 ) {\n firstByte = ( ulmbcs_byte_t ) ( value >> ( ( bytesConverted - 1 ) * 8 ) ) ;\n }\n else {\n groups_tried [ group ] = TRUE ;\n return 0 ;\n }\n * lastConverterIndex = group ;\n U_ASSERT ( ( firstByte <= ULMBCS_C0END ) || ( firstByte >= ULMBCS_C1START ) || ( group == ULMBCS_GRP_EXCEPT ) ) ;\n if ( group != ULMBCS_GRP_EXCEPT && extraInfo -> OptGroup != group ) {\n * pLMBCS ++ = group ;\n if ( bytesConverted == 1 && group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n * pLMBCS ++ = group ;\n }\n }\n if ( bytesConverted == 1 && firstByte < 0x20 ) return 0 ;\n switch ( bytesConverted ) {\n case 4 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 24 ) ;\n U_FALLTHROUGH ;\n case 3 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 16 ) ;\n U_FALLTHROUGH ;\n case 2 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 8 ) ;\n U_FALLTHROUGH ;\n case 1 : * pLMBCS ++ = ( ulmbcs_byte_t ) value ;\n U_FALLTHROUGH ;\n default : break ;\n }\n return ( pLMBCS - pStartLMBCS ) ;\n }\n static size_t LMBCSConvertUni ( ulmbcs_byte_t * pLMBCS , UChar uniChar ) {\n uint8_t LowCh = ( uint8_t ) ( uniChar & 0x00FF ) ;\n uint8_t HighCh = ( uint8_t ) ( uniChar >> 8 ) ;\n * pLMBCS ++ = ULMBCS_GRP_UNICODE ;\n if ( LowCh == 0 ) {\n * pLMBCS ++ = ULMBCS_UNICOMPATZERO ;\n * pLMBCS ++ = HighCh ;\n }\n else {\n * pLMBCS ++ = HighCh ;\n * pLMBCS ++ = LowCh ;\n }\n return ULMBCS_UNICODE_SIZE ;\n }\n static void U_CALLCONV _LMBCSFromUnicode ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n ulmbcs_byte_t lastConverterIndex = 0 ;\n UChar uniChar ;\n ulmbcs_byte_t LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n ulmbcs_byte_t * pLMBCS ;\n int32_t bytes_written ;\n UBool groups_tried [ ULMBCS_GRP_LAST + 1 ] ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n int sourceIndex = 0 ;\n ulmbcs_byte_t OldConverterIndex = 0 ;\n while ( args -> source < args -> sourceLimit && ! U_FAILURE ( * err ) ) {\n OldConverterIndex = extraInfo -> localeConverterIndex ;\n if ( args -> target >= args -> targetLimit ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n uniChar = * ( args -> source ) ;\n bytes_written = 0 ;\n pLMBCS = LMBCS ;\n if ( ( uniChar >= 0x80 ) && ( uniChar <= 0xff ) && ( uniChar != 0xB1 ) && ( uniChar != 0xD7 ) && ( uniChar != 0xF7 ) && ( uniChar != 0xB0 ) && ( uniChar != 0xB4 ) && ( uniChar != 0xB6 ) && ( uniChar != 0xA7 ) && ( uniChar != 0xA8 ) ) {\n extraInfo -> localeConverterIndex = ULMBCS_GRP_L1 ;\n }\n if ( ( ( uniChar > ULMBCS_C0END ) && ( uniChar < ULMBCS_C1START ) ) || uniChar == 0 || uniChar == ULMBCS_HT || uniChar == ULMBCS_CR || uniChar == ULMBCS_LF || uniChar == ULMBCS_123SYSTEMRANGE ) {\n * pLMBCS ++ = ( ulmbcs_byte_t ) uniChar ;\n bytes_written = 1 ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t group = FindLMBCSUniRange ( uniChar ) ;\n if ( group == ULMBCS_GRP_UNICODE ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group == ULMBCS_GRP_CTRL ) {\n if ( uniChar <= ULMBCS_C0END ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( ULMBCS_CTRLOFFSET + uniChar ) ;\n }\n else if ( uniChar >= ULMBCS_C1START && uniChar <= ULMBCS_C1START + ULMBCS_CTRLOFFSET ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( uniChar & 0x00FF ) ;\n }\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group < ULMBCS_GRP_UNICODE ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , group , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n uprv_memset ( groups_tried , 0 , sizeof ( groups_tried ) ) ;\n if ( ( extraInfo -> OptGroup != 1 ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> OptGroup ) ) ) {\n if ( extraInfo -> localeConverterIndex < ULMBCS_DOUBLEOPTGROUP_START ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_L1 , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n else {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && ( extraInfo -> localeConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> localeConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written && ( lastConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , lastConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , lastConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t grp_start ;\n ulmbcs_byte_t grp_end ;\n ulmbcs_byte_t grp_ix ;\n grp_start = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_DOUBLEOPTGROUP_START : ULMBCS_GRP_L1 ) ;\n grp_end = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_GRP_LAST : ULMBCS_GRP_TH ) ;\n if ( group == ULMBCS_AMBIGUOUS_ALL ) {\n grp_start = ULMBCS_GRP_L1 ;\n grp_end = ULMBCS_GRP_LAST ;\n }\n for ( grp_ix = grp_start ;\n grp_ix <= grp_end && ! bytes_written ;\n grp_ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ grp_ix ] && ! groups_tried [ grp_ix ] ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , grp_ix , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && grp_start == ULMBCS_GRP_L1 ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n }\n }\n args -> source ++ ;\n pLMBCS = LMBCS ;\n while ( args -> target < args -> targetLimit && bytes_written -- ) {\n * ( args -> target ) ++ = * pLMBCS ++ ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = sourceIndex ;\n }\n }\n sourceIndex ++ ;\n if ( bytes_written > 0 ) {\n uint8_t * pErrorBuffer = args -> converter -> charErrorBuffer ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n args -> converter -> charErrorBufferLength = ( int8_t ) bytes_written ;\n while ( bytes_written -- ) {\n * pErrorBuffer ++ = * pLMBCS ++ ;\n }\n }\n extraInfo -> localeConverterIndex = OldConverterIndex ;\n }\n }\n static UChar GetUniFromLMBCSUni ( char const * * ppLMBCSin ) {\n uint8_t HighCh = * ( * ppLMBCSin ) ++ ;\n uint8_t LowCh = * ( * ppLMBCSin ) ++ ;\n if ( HighCh == ULMBCS_UNICOMPATZERO ) {\n HighCh = LowCh ;\n LowCh = 0 ;\n }\n return ( UChar ) ( ( HighCh << 8 ) | LowCh ) ;\n }\n # define CHECK_SOURCE_LIMIT ( index ) if ( args -> source + index > args -> sourceLimit ) {\n * err = U_TRUNCATED_CHAR_FOUND ;\n args -> source = args -> sourceLimit ;\n return 0xffff ;\n }\n static UChar32 U_CALLCONV _LMBCSGetNextUCharWorker ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n UChar32 uniChar = 0 ;\n ulmbcs_byte_t CurByte ;\n if ( args -> source >= args -> sourceLimit ) {\n * err = U_ILLEGAL_ARGUMENT_ERROR ;\n return 0xffff ;\n }\n CurByte = * ( ( ulmbcs_byte_t * ) ( args -> source ++ ) ) ;\n if ( ( ( CurByte > ULMBCS_C0END ) && ( CurByte < ULMBCS_C1START ) ) || ( CurByte == 0 ) || CurByte == ULMBCS_HT || CurByte == ULMBCS_CR || CurByte == ULMBCS_LF || CurByte == ULMBCS_123SYSTEMRANGE ) {\n uniChar = CurByte ;\n }\n else {\n UConverterDataLMBCS * extraInfo ;\n ulmbcs_byte_t group ;\n UConverterSharedData * cnv ;\n if ( CurByte == ULMBCS_GRP_CTRL ) {\n ulmbcs_byte_t C0C1byte ;\n CHECK_SOURCE_LIMIT ( 1 ) ;\n C0C1byte = * ( args -> source ) ++ ;\n uniChar = ( C0C1byte < ULMBCS_C1START ) ? C0C1byte - ULMBCS_CTRLOFFSET : C0C1byte ;\n }\n else if ( CurByte == ULMBCS_GRP_UNICODE ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n return GetUniFromLMBCSUni ( & ( args -> source ) ) ;\n }\n else if ( CurByte <= ULMBCS_CTRLOFFSET ) {\n group = CurByte ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n if ( group > ULMBCS_GRP_LAST || ( cnv = extraInfo -> OptGrpConverter [ group ] ) == NULL ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n if ( * args -> source == group ) {\n ++ args -> source ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 1 , FALSE ) ;\n ++ args -> source ;\n }\n else {\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 2 , FALSE ) ;\n args -> source += 2 ;\n }\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n CurByte = * ( args -> source ) ++ ;\n if ( CurByte >= ULMBCS_C1START ) {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n else {\n char bytes [ 2 ] ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n cnv = extraInfo -> OptGrpConverter [ ULMBCS_GRP_EXCEPT ] ;\n bytes [ 0 ] = group ;\n bytes [ 1 ] = CurByte ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , bytes , 2 , FALSE ) ;\n }\n }\n }\n else if ( CurByte >= ULMBCS_C1START ) {\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n group = extraInfo -> OptGroup ;\n cnv = extraInfo -> OptGrpConverter [ group ] ;\n if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n if ( ! ucnv_MBCSIsLeadByte ( cnv , CurByte ) ) {\n CHECK_SOURCE_LIMIT ( 0 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 1 , FALSE ) ;\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 2 , FALSE ) ;\n ++ args -> source ;\n }\n }\n else {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n }\n }\n return uniChar ;\n }\n static void U_CALLCONV _LMBCSToUnicodeWithOffsets ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n char LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n UChar uniChar ;\n const char * saveSource ;\n const char * pStartLMBCS = args -> source ;\n const char * errSource = NULL ;\n int8_t savebytes = 0 ;\n while ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit > args -> target ) {\n saveSource = args -> source ;\n if ( args -> converter -> toULength ) {\n const char * saveSourceLimit ;\n size_t size_old = args -> converter -> toULength ;\n size_t size_new_maybe_1 = sizeof ( LMBCS ) - size_old ;\n size_t size_new_maybe_2 = args -> sourceLimit - args -> source ;\n size_t size_new = ( size_new_maybe_1 < size_new_maybe_2 ) ? size_new_maybe_1 : size_new_maybe_2 ;\n uprv_memcpy ( LMBCS , args -> converter -> toUBytes , size_old ) ;\n uprv_memcpy ( LMBCS + size_old , args -> source , size_new ) ;\n saveSourceLimit = args -> sourceLimit ;\n args -> source = errSource = LMBCS ;\n args -> sourceLimit = LMBCS + size_old + size_new ;\n savebytes = ( int8_t ) ( size_old + size_new ) ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n args -> source = saveSource + ( ( args -> source - LMBCS ) - size_old ) ;\n args -> sourceLimit = saveSourceLimit ;\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n args -> converter -> toULength = savebytes ;\n uprv_memcpy ( args -> converter -> toUBytes , LMBCS , savebytes ) ;\n args -> source = args -> sourceLimit ;\n * err = U_ZERO_ERROR ;\n return ;\n }\n else {\n args -> converter -> toULength = 0 ;\n }\n }\n else {\n errSource = saveSource ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n savebytes = ( int8_t ) ( args -> source - saveSource ) ;\n }\n if ( U_SUCCESS ( * err ) ) {\n if ( uniChar < 0xfffe ) {\n * ( args -> target ) ++ = uniChar ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = ( int32_t ) ( saveSource - pStartLMBCS ) ;\n }\n }\n else if ( uniChar == 0xfffe ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n }\n if ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit <= args -> target ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n else if ( U_FAILURE ( * err ) ) {\n args -> converter -> toULength = savebytes ;\n if ( savebytes > 0 ) {\n uprv_memcpy ( args -> converter -> toUBytes , errSource , savebytes ) ;\n }\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n * err = U_ZERO_ERROR ;\n }\n }\n }\n DEFINE_LMBCS_OPEN ( 1 ) DEFINE_LMBCS_OPEN ( 2 ) DEFINE_LMBCS_OPEN ( 3 ) DEFINE_LMBCS_OPEN ( 4 ) DEFINE_LMBCS_OPEN ( 5 ) DEFINE_LMBCS_OPEN ( 6 )"}
{"idx": 4925, "target": 0, "func": "SPL_METHOD ( SplFileInfo , func_name ) \\ {\n \\ spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n \\ zend_error_handling error_handling ;\n \\ if ( zend_parse_parameters_none ( ) == FAILURE ) {\n \\ return ;\n \\ }\n \\ \\ zend_replace_error_handling ( EH_THROW , spl_ce_RuntimeException , & error_handling TSRMLS_CC ) ;\n \\ spl_filesystem_object_get_file_name ( intern TSRMLS_CC ) ;\n \\ php_stat ( intern -> file_name , intern -> file_name_len , func_num , return_value TSRMLS_CC ) ;\n \\ zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n \\ }\n FileInfoFunction ( getPerms , FS_PERMS ) FileInfoFunction ( getInode , FS_INODE ) FileInfoFunction ( getSize , FS_SIZE )"}
{"idx": 4926, "target": 0, "func": "static inline indic_position_t matra_position ( hb_codepoint_t u , indic_position_t side ) {\n switch ( ( int ) side ) {\n case POS_PRE_C : return MATRA_POS_LEFT ( u ) ;\n case POS_POST_C : return MATRA_POS_RIGHT ( u ) ;\n case POS_ABOVE_C : return MATRA_POS_TOP ( u ) ;\n case POS_BELOW_C : return MATRA_POS_BOTTOM ( u ) ;\n }\n ;\n return side ;\n }"}
{"idx": 4927, "target": 0, "func": "static void stop_postmaster_atexit ( void ) {\n stop_postmaster ( true ) ;\n }"}
{"idx": 4928, "target": 0, "func": "void vp9_encode_mv ( VP9_COMP * cpi , vp9_writer * w , const MV * mv , const MV * ref , const nmv_context * mvctx , int usehp ) {\n const MV diff = {\n mv -> row - ref -> row , mv -> col - ref -> col }\n ;\n const MV_JOINT_TYPE j = vp9_get_mv_joint ( & diff ) ;\n usehp = usehp && vp9_use_mv_hp ( ref ) ;\n vp9_write_token ( w , vp9_mv_joint_tree , mvctx -> joints , & mv_joint_encodings [ j ] ) ;\n if ( mv_joint_vertical ( j ) ) encode_mv_component ( w , diff . row , & mvctx -> comps [ 0 ] , usehp ) ;\n if ( mv_joint_horizontal ( j ) ) encode_mv_component ( w , diff . col , & mvctx -> comps [ 1 ] , usehp ) ;\n if ( cpi -> sf . mv . auto_mv_step_size ) {\n unsigned int maxv = MAX ( abs ( mv -> row ) , abs ( mv -> col ) ) >> 3 ;\n cpi -> max_mv_magnitude = MAX ( maxv , cpi -> max_mv_magnitude ) ;\n }\n }"}
{"idx": 4929, "target": 0, "func": "static vpx_codec_err_t ctrl_update_reference ( vpx_codec_alg_priv_t * ctx , va_list args ) {\n const int ref_frame_flags = va_arg ( args , int ) ;\n vp9_update_reference ( ctx -> cpi , ref_frame_flags ) ;\n return VPX_CODEC_OK ;\n }"}
{"idx": 4930, "target": 0, "func": "static guint32 dissect_netb_name_query ( tvbuff_t * tvb , packet_info * pinfo _U_ , int offset , proto_tree * tree ) {\n guint8 local_session_number = tvb_get_guint8 ( tvb , offset + NB_DATA2 ) ;\n if ( local_session_number == 0 ) {\n proto_tree_add_uint_format_value ( tree , hf_netb_local_session_no , tvb , offset + NB_DATA2 , 1 , local_session_number , \"0 (FIND.NAME request)\" ) ;\n }\n else {\n proto_tree_add_item ( tree , hf_netb_local_session_no , tvb , offset + NB_DATA2 , 1 , ENC_LITTLE_ENDIAN ) ;\n }\n nb_call_name_type ( tvb , offset , tree ) ;\n nb_resp_corrl ( tvb , offset , tree ) ;\n netbios_add_name ( \"Query Name\" , tvb , offset + NB_RECVER_NAME , tree ) ;\n if ( local_session_number != 0 ) {\n netbios_add_name ( \"Sender's Name\" , tvb , offset + NB_SENDER_NAME , tree ) ;\n }\n return 0 ;\n }"}
{"idx": 4931, "target": 0, "func": "static void sig_complete_server ( GList * * list , WINDOW_REC * window , const char * word , const char * line , int * want_space ) {\n g_return_if_fail ( list != NULL ) ;\n g_return_if_fail ( word != NULL ) ;\n * list = completion_get_servers ( word ) ;\n if ( * list != NULL ) signal_stop ( ) ;\n }"}
{"idx": 4932, "target": 0, "func": "void gic_complete_irq ( GICState * s , int cpu , int irq ) {\n int update = 0 ;\n int cm = 1 << cpu ;\n DPRINTF ( \"EOI %d\\n\" , irq ) ;\n if ( irq >= s -> num_irq ) {\n return ;\n }\n if ( s -> running_irq [ cpu ] == 1023 ) return ;\n if ( ! GIC_TEST_TRIGGER ( irq ) && GIC_TEST_ENABLED ( irq , cm ) && GIC_TEST_LEVEL ( irq , cm ) && ( GIC_TARGET ( irq ) & cm ) != 0 ) {\n DPRINTF ( \"Set %d pending mask %x\\n\" , irq , cm ) ;\n GIC_SET_PENDING ( irq , cm ) ;\n update = 1 ;\n }\n if ( irq != s -> running_irq [ cpu ] ) {\n int tmp = s -> running_irq [ cpu ] ;\n while ( s -> last_active [ tmp ] [ cpu ] != 1023 ) {\n if ( s -> last_active [ tmp ] [ cpu ] == irq ) {\n s -> last_active [ tmp ] [ cpu ] = s -> last_active [ irq ] [ cpu ] ;\n break ;\n }\n tmp = s -> last_active [ tmp ] [ cpu ] ;\n }\n if ( update ) {\n gic_update ( s ) ;\n }\n }\n else {\n gic_set_running_irq ( s , cpu , s -> last_active [ s -> running_irq [ cpu ] ] [ cpu ] ) ;\n }\n }"}
{"idx": 4933, "target": 1, "func": "int main ( int argc , char * argv [ ] ) {\n static char buff [ 16384 ] ;\n struct cpio _cpio ;\n struct cpio * cpio ;\n const char * errmsg ;\n int uid , gid ;\n int opt ;\n cpio = & _cpio ;\n memset ( cpio , 0 , sizeof ( * cpio ) ) ;\n cpio -> buff = buff ;\n cpio -> buff_size = sizeof ( buff ) ;\n # if defined ( HAVE_SIGACTION ) && defined ( SIGPIPE ) {\n struct sigaction sa ;\n sigemptyset ( & sa . sa_mask ) ;\n sa . sa_flags = 0 ;\n sa . sa_handler = SIG_IGN ;\n sigaction ( SIGPIPE , & sa , NULL ) ;\n }\n # endif lafe_setprogname ( * argv , \"bsdcpio\" ) ;\n # if HAVE_SETLOCALE if ( setlocale ( LC_ALL , \"\" ) == NULL ) lafe_warnc ( 0 , \"Failed to set default locale\" ) ;\n # endif cpio -> uid_override = - 1 ;\n cpio -> gid_override = - 1 ;\n cpio -> argv = argv ;\n cpio -> argc = argc ;\n cpio -> mode = '\\0' ;\n cpio -> verbose = 0 ;\n cpio -> compress = '\\0' ;\n cpio -> extract_flags = ARCHIVE_EXTRACT_NO_AUTODIR ;\n cpio -> extract_flags |= ARCHIVE_EXTRACT_NO_OVERWRITE_NEWER ;\n cpio -> extract_flags |= ARCHIVE_EXTRACT_SECURE_SYMLINKS ;\n cpio -> extract_flags |= ARCHIVE_EXTRACT_SECURE_NODOTDOT ;\n cpio -> extract_flags |= ARCHIVE_EXTRACT_PERM ;\n cpio -> extract_flags |= ARCHIVE_EXTRACT_FFLAGS ;\n cpio -> extract_flags |= ARCHIVE_EXTRACT_ACL ;\n # if ! defined ( _WIN32 ) && ! defined ( __CYGWIN__ ) if ( geteuid ( ) == 0 ) cpio -> extract_flags |= ARCHIVE_EXTRACT_OWNER ;\n # endif cpio -> bytes_per_block = 512 ;\n cpio -> filename = NULL ;\n cpio -> matching = archive_match_new ( ) ;\n if ( cpio -> matching == NULL ) lafe_errc ( 1 , 0 , \"Out of memory\" ) ;\n while ( ( opt = cpio_getopt ( cpio ) ) != - 1 ) {\n switch ( opt ) {\n case '0' : cpio -> option_null = 1 ;\n break ;\n case 'A' : cpio -> option_append = 1 ;\n break ;\n case 'a' : cpio -> option_atime_restore = 1 ;\n break ;\n case 'B' : cpio -> bytes_per_block = 5120 ;\n break ;\n case OPTION_B64ENCODE : cpio -> add_filter = opt ;\n break ;\n case 'C' : cpio -> bytes_per_block = atoi ( cpio -> argument ) ;\n if ( cpio -> bytes_per_block <= 0 ) lafe_errc ( 1 , 0 , \"Invalid blocksize %s\" , cpio -> argument ) ;\n break ;\n case 'c' : cpio -> format = \"odc\" ;\n break ;\n case 'd' : cpio -> extract_flags &= ~ ARCHIVE_EXTRACT_NO_AUTODIR ;\n break ;\n case 'E' : if ( archive_match_include_pattern_from_file ( cpio -> matching , cpio -> argument , cpio -> option_null ) != ARCHIVE_OK ) lafe_errc ( 1 , 0 , \"Error : %s\" , archive_error_string ( cpio -> matching ) ) ;\n break ;\n case 'F' : cpio -> filename = cpio -> argument ;\n break ;\n case 'f' : if ( archive_match_exclude_pattern ( cpio -> matching , cpio -> argument ) != ARCHIVE_OK ) lafe_errc ( 1 , 0 , \"Error : %s\" , archive_error_string ( cpio -> matching ) ) ;\n break ;\n case OPTION_GRZIP : cpio -> compress = opt ;\n break ;\n case 'H' : cpio -> format = cpio -> argument ;\n break ;\n case 'h' : long_help ( ) ;\n break ;\n case 'I' : cpio -> filename = cpio -> argument ;\n break ;\n case 'i' : if ( cpio -> mode != '\\0' ) lafe_errc ( 1 , 0 , \"Cannot use both -i and -%c\" , cpio -> mode ) ;\n cpio -> mode = opt ;\n break ;\n case 'J' : cpio -> compress = opt ;\n break ;\n case 'j' : cpio -> compress = opt ;\n break ;\n case OPTION_INSECURE : cpio -> extract_flags &= ~ ARCHIVE_EXTRACT_SECURE_SYMLINKS ;\n cpio -> extract_flags &= ~ ARCHIVE_EXTRACT_SECURE_NODOTDOT ;\n break ;\n case 'L' : cpio -> option_follow_links = 1 ;\n break ;\n case 'l' : cpio -> option_link = 1 ;\n break ;\n case OPTION_LRZIP : case OPTION_LZ4 : case OPTION_LZMA : case OPTION_LZOP : cpio -> compress = opt ;\n break ;\n case 'm' : cpio -> extract_flags |= ARCHIVE_EXTRACT_TIME ;\n break ;\n case 'n' : cpio -> option_numeric_uid_gid = 1 ;\n break ;\n case OPTION_NO_PRESERVE_OWNER : cpio -> extract_flags &= ~ ARCHIVE_EXTRACT_OWNER ;\n break ;\n case 'O' : cpio -> filename = cpio -> argument ;\n break ;\n case 'o' : if ( cpio -> mode != '\\0' ) lafe_errc ( 1 , 0 , \"Cannot use both -o and -%c\" , cpio -> mode ) ;\n cpio -> mode = opt ;\n break ;\n case 'p' : if ( cpio -> mode != '\\0' ) lafe_errc ( 1 , 0 , \"Cannot use both -p and -%c\" , cpio -> mode ) ;\n cpio -> mode = opt ;\n cpio -> extract_flags &= ~ ARCHIVE_EXTRACT_SECURE_NODOTDOT ;\n break ;\n case OPTION_PASSPHRASE : cpio -> passphrase = cpio -> argument ;\n break ;\n case OPTION_PRESERVE_OWNER : cpio -> extract_flags |= ARCHIVE_EXTRACT_OWNER ;\n break ;\n case OPTION_QUIET : cpio -> quiet = 1 ;\n break ;\n case 'R' : errmsg = owner_parse ( cpio -> argument , & uid , & gid ) ;\n if ( errmsg ) {\n lafe_warnc ( - 1 , \"%s\" , errmsg ) ;\n usage ( ) ;\n }\n if ( uid != - 1 ) {\n cpio -> uid_override = uid ;\n cpio -> uname_override = NULL ;\n }\n if ( gid != - 1 ) {\n cpio -> gid_override = gid ;\n cpio -> gname_override = NULL ;\n }\n break ;\n case 'r' : cpio -> option_rename = 1 ;\n break ;\n case 't' : cpio -> option_list = 1 ;\n break ;\n case 'u' : cpio -> extract_flags &= ~ ARCHIVE_EXTRACT_NO_OVERWRITE_NEWER ;\n break ;\n case OPTION_UUENCODE : cpio -> add_filter = opt ;\n break ;\n case 'v' : cpio -> verbose ++ ;\n break ;\n case 'V' : cpio -> dot ++ ;\n break ;\n case OPTION_VERSION : version ( ) ;\n break ;\n # if 0 case 'W' : break ;\n # endif case 'y' : cpio -> compress = opt ;\n break ;\n case 'Z' : cpio -> compress = opt ;\n break ;\n case 'z' : cpio -> compress = opt ;\n break ;\n default : usage ( ) ;\n }\n }\n if ( cpio -> option_list && cpio -> mode == '\\0' ) cpio -> mode = 'i' ;\n if ( cpio -> option_list && cpio -> mode != 'i' ) lafe_errc ( 1 , 0 , \"Option -t requires -i\" ) ;\n if ( cpio -> option_numeric_uid_gid && ! cpio -> option_list ) lafe_errc ( 1 , 0 , \"Option -n requires -it\" ) ;\n if ( cpio -> format != NULL && cpio -> mode != 'o' ) lafe_errc ( 1 , 0 , \"Option --format requires -o\" ) ;\n if ( cpio -> option_link && cpio -> mode != 'p' ) lafe_errc ( 1 , 0 , \"Option -l requires -p\" ) ;\n if ( cpio -> dot && cpio -> verbose ) cpio -> dot = 0 ;\n switch ( cpio -> mode ) {\n case 'o' : if ( cpio -> format == NULL ) cpio -> format = \"odc\" ;\n mode_out ( cpio ) ;\n break ;\n case 'i' : while ( * cpio -> argv != NULL ) {\n if ( archive_match_include_pattern ( cpio -> matching , * cpio -> argv ) != ARCHIVE_OK ) lafe_errc ( 1 , 0 , \"Error : %s\" , archive_error_string ( cpio -> matching ) ) ;\n -- cpio -> argc ;\n ++ cpio -> argv ;\n }\n if ( cpio -> option_list ) mode_list ( cpio ) ;\n else mode_in ( cpio ) ;\n break ;\n case 'p' : if ( * cpio -> argv == NULL || * * cpio -> argv == '\\0' ) lafe_errc ( 1 , 0 , \"-p mode requires a target directory\" ) ;\n mode_pass ( cpio , * cpio -> argv ) ;\n break ;\n default : lafe_errc ( 1 , 0 , \"Must specify at least one of -i, -o, or -p\" ) ;\n }\n archive_match_free ( cpio -> matching ) ;\n free_cache ( cpio -> gname_cache ) ;\n free_cache ( cpio -> uname_cache ) ;\n free ( cpio -> destdir ) ;\n passphrase_free ( cpio -> ppbuff ) ;\n return ( cpio -> return_value ) ;\n }"}
{"idx": 4934, "target": 0, "func": "static int SpoolssGetJob_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ;\n gint32 level = GPOINTER_TO_UINT ( dcv -> se_data ) ;\n BUFFER buffer ;\n offset = dissect_spoolss_buffer ( tvb , offset , pinfo , tree , di , drep , & buffer ) ;\n if ( buffer . tvb ) {\n int buffer_offset = 0 ;\n switch ( level ) {\n case 1 : dissect_spoolss_JOB_INFO_1 ( buffer . tvb , buffer_offset , pinfo , buffer . tree , di , drep ) ;\n break ;\n case 2 : default : proto_tree_add_expert_format ( buffer . tree , pinfo , & ei_job_info_level , buffer . tvb , buffer_offset , - 1 , \"Unknown job info level %d\" , level ) ;\n break ;\n }\n }\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_needed , NULL ) ;\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 4935, "target": 0, "func": "enum nss_status CONCAT ( _nss_files_set , ENTNAME ) ( int stayopen ) {\n enum nss_status status ;\n __libc_lock_lock ( lock ) ;\n status = internal_setent ( 1 ) ;\n if ( status == NSS_STATUS_SUCCESS && fgetpos ( stream , & position ) < 0 ) {\n fclose ( stream ) ;\n stream = NULL ;\n status = NSS_STATUS_UNAVAIL ;\n }\n last_use = getent ;\n __libc_lock_unlock ( lock ) ;\n return status ;\n }"}
{"idx": 4936, "target": 0, "func": "static gboolean pk_transaction_obtain_authorization ( PkTransaction * transaction , PkRoleEnum role , GError * * error ) {\n g_autoptr ( GPtrArray ) actions = NULL ;\n PkTransactionPrivate * priv = transaction -> priv ;\n g_autofree gchar * package_ids = NULL ;\n g_autoptr ( PolkitDetails ) details = NULL ;\n g_autoptr ( GString ) string = NULL ;\n g_return_val_if_fail ( priv -> sender != NULL , FALSE ) ;\n if ( pk_bitfield_contain ( transaction -> priv -> cached_transaction_flags , PK_TRANSACTION_FLAG_ENUM_ONLY_DOWNLOAD ) || pk_bitfield_contain ( transaction -> priv -> cached_transaction_flags , PK_TRANSACTION_FLAG_ENUM_SIMULATE ) || priv -> skip_auth_check == TRUE ) {\n g_debug ( \"No authentication required\" ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_READY ) ;\n return TRUE ;\n }\n if ( priv -> subject == NULL ) {\n g_set_error ( error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_REFUSED_BY_POLICY , \"subject %s not found\" , priv -> sender ) ;\n return FALSE ;\n }\n actions = pk_transaction_role_to_actions ( role , priv -> cached_transaction_flags ) ;\n if ( actions == NULL ) return FALSE ;\n return pk_transaction_authorize_actions ( transaction , role , actions ) ;\n }"}
{"idx": 4937, "target": 0, "func": "int xmlIsDigit ( unsigned int ch ) {\n return ( xmlIsDigitQ ( ch ) ) ;\n }"}
{"idx": 4938, "target": 0, "func": "static const main_extcomp * main_ident_compressor ( const char * ident ) {\n usize_t i ;\n for ( i = 0 ;\n i < SIZEOF_ARRAY ( extcomp_types ) ;\n i += 1 ) {\n if ( strcmp ( extcomp_types [ i ] . ident , ident ) == 0 ) {\n return & extcomp_types [ i ] ;\n }\n }\n return NULL ;\n }"}
{"idx": 4939, "target": 0, "func": "static int dissect_h245_IS13818AudioCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_IS13818AudioCapability , IS13818AudioCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 4940, "target": 0, "func": "static void dissect_zcl_ota_imageblockreq ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n guint8 field_ctrl ;\n field_ctrl = dissect_zcl_ota_field_ctrl_field ( tvb , tree , offset ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_manufacturer_code , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_image_type , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n dissect_zcl_ota_file_version_field ( tvb , tree , offset ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_file_offset , tvb , * offset , 4 , ENC_LITTLE_ENDIAN ) ;\n * offset += 4 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_max_data_size , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n if ( field_ctrl & ZBEE_ZCL_OTA_FIELD_CTRL_IEEE_ADDR_PRESENT ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_req_node_addr , tvb , * offset , 8 , ENC_LITTLE_ENDIAN ) ;\n * offset += 8 ;\n }\n }"}
{"idx": 4941, "target": 1, "func": "vpx_codec_err_t vpx_svc_set_scale_factors ( SvcContext * svc_ctx , const char * scale_factors ) {\n SvcInternal * const si = get_svc_internal ( svc_ctx ) ;\n if ( svc_ctx == NULL || scale_factors == NULL || si == NULL ) {\n return VPX_CODEC_INVALID_PARAM ;\n }\n strncpy ( si -> scale_factors , scale_factors , sizeof ( si -> scale_factors ) ) ;\n si -> scale_factors [ sizeof ( si -> scale_factors ) - 1 ] = '\\0' ;\n return VPX_CODEC_OK ;\n }"}
{"idx": 4942, "target": 0, "func": "static void eval_lpcenv_2parts ( TwinContext * tctx , enum FrameType ftype , const float * buf , float * lpc , int size , int step ) {\n eval_lpcenv_or_interp ( tctx , ftype , lpc , buf , size / 2 , step , 0 ) ;\n eval_lpcenv_or_interp ( tctx , ftype , lpc + size / 2 , buf , size / 2 , 2 * step , 1 ) ;\n interpolate ( lpc + size / 2 - step + 1 , lpc [ size / 2 ] , lpc [ size / 2 - step ] , step ) ;\n memset_float ( lpc + size - 2 * step + 1 , lpc [ size - 2 * step ] , 2 * step - 1 ) ;\n }"}
{"idx": 4943, "target": 0, "func": "static void spl_filesystem_dir_it_current_key ( zend_object_iterator * iter , zval * key TSRMLS_DC ) {\n spl_filesystem_object * object = spl_filesystem_iterator_to_object ( ( spl_filesystem_iterator * ) iter ) ;\n ZVAL_LONG ( key , object -> u . dir . index ) ;\n }"}
{"idx": 4944, "target": 1, "func": "static void spl_filesystem_dir_it_move_forward ( zend_object_iterator * iter TSRMLS_DC ) {\n spl_filesystem_object * object = spl_filesystem_iterator_to_object ( ( spl_filesystem_iterator * ) iter ) ;\n object -> u . dir . index ++ ;\n spl_filesystem_dir_read ( object TSRMLS_CC ) ;\n if ( object -> file_name ) {\n efree ( object -> file_name ) ;\n object -> file_name = NULL ;\n }\n }"}
{"idx": 4945, "target": 1, "func": "static gchar * logcat_log ( const struct dumper_t * dumper , guint32 seconds , gint microseconds , gint pid , gint tid , gchar priority , const gchar * tag , const gchar * log ) {\n gchar time_buffer [ 15 ] ;\n time_t datetime ;\n datetime = ( time_t ) seconds ;\n switch ( dumper -> type ) {\n case DUMP_BRIEF : return g_strdup_printf ( \"%c/%-8s(%5i): %s\\n\" , priority , tag , pid , log ) ;\n case DUMP_PROCESS : return g_strdup_printf ( \"%c(%5i) %s (%s)\\n\" , priority , pid , log , \"\" ) ;\n case DUMP_TAG : return g_strdup_printf ( \"%c/%-8s: %s\\n\" , priority , tag , log ) ;\n case DUMP_THREAD : return g_strdup_printf ( \"%c(%5i:0x%02x) %s\\n\" , priority , pid , tid , log ) ;\n case DUMP_TIME : strftime ( time_buffer , sizeof ( time_buffer ) , \"%m-%d %H:%M:%S\" , gmtime ( & datetime ) ) ;\n return g_strdup_printf ( \"%s.%03i %c/%-8s(%5i): %s\\n\" , time_buffer , microseconds , priority , tag , pid , log ) ;\n case DUMP_THREADTIME : strftime ( time_buffer , sizeof ( time_buffer ) , \"%m-%d %H:%M:%S\" , gmtime ( & datetime ) ) ;\n return g_strdup_printf ( \"%s.%03i %5i %5i %c %-8s: %s\\n\" , time_buffer , microseconds , pid , tid , priority , tag , log ) ;\n case DUMP_LONG : strftime ( time_buffer , sizeof ( time_buffer ) , \"%m-%d %H:%M:%S\" , gmtime ( & datetime ) ) ;\n return g_strdup_printf ( \"[ %s.%03i %5i:0x%02x %c/%s ]\\n%s\\n\\n\" , time_buffer , microseconds , pid , tid , priority , tag , log ) ;\n default : return NULL ;\n }\n }"}
{"idx": 4946, "target": 0, "func": "EXCLUSIVE_REGRESSION_TEST ( SDK_API_HttpTxnCache ) ( RegressionTest * test , int , int * pstatus ) {\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n TSCont cont = TSContCreate ( cache_hook_handler , TSMutexCreate ( ) ) ;\n if ( cont == nullptr ) {\n SDK_RPRINT ( test , \"TSHttpSsn\" , \"TestCase1\" , TC_FAIL , \"Unable to create Continuation.\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n return ;\n }\n CacheTestData * socktest = ( CacheTestData * ) TSmalloc ( sizeof ( CacheTestData ) ) ;\n socktest -> test = test ;\n socktest -> pstatus = pstatus ;\n socktest -> test_passed_txn_cached_req_get = false ;\n socktest -> test_passed_txn_cached_resp_get = false ;\n socktest -> first_time = true ;\n socktest -> magic = MAGIC_ALIVE ;\n TSContDataSet ( cont , socktest ) ;\n TSHttpHookAdd ( TS_HTTP_READ_REQUEST_HDR_HOOK , cont ) ;\n TSHttpHookAdd ( TS_HTTP_READ_CACHE_HDR_HOOK , cont ) ;\n TSHttpHookAdd ( TS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK , cont ) ;\n socktest -> os = synserver_create ( SYNSERVER_LISTEN_PORT ) ;\n synserver_start ( socktest -> os ) ;\n socktest -> browser1 = synclient_txn_create ( ) ;\n socktest -> browser2 = synclient_txn_create ( ) ;\n socktest -> request = generate_request ( 2 ) ;\n synclient_txn_send_request ( socktest -> browser1 , socktest -> request ) ;\n TSContSchedule ( cont , 25 , TS_THREAD_POOL_DEFAULT ) ;\n return ;\n }"}
{"idx": 4947, "target": 0, "func": "static int rawv6_init_sk ( struct sock * sk ) {\n struct raw6_sock * rp = raw6_sk ( sk ) ;\n switch ( inet_sk ( sk ) -> inet_num ) {\n case IPPROTO_ICMPV6 : rp -> checksum = 1 ;\n rp -> offset = 2 ;\n break ;\n case IPPROTO_MH : rp -> checksum = 1 ;\n rp -> offset = 4 ;\n break ;\n default : break ;\n }\n return ( 0 ) ;\n }"}
{"idx": 4948, "target": 0, "func": "static int dissect_h245_T_h223_lc_segmentableFlag ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 356 \"../../asn1/h245/h245.cnf\" gboolean value ;\n offset = dissect_per_boolean ( tvb , offset , actx , tree , hf_index , & value ) ;\n if ( h223_lc_params_temp ) h223_lc_params_temp -> segmentable = value ;\n return offset ;\n }"}
{"idx": 4949, "target": 0, "func": "static int32_t idCmp ( const char * id1 , const char * id2 ) {\n int32_t diffIdx = 0 ;\n while ( * id1 == * id2 && * id1 != 0 ) {\n diffIdx ++ ;\n id1 ++ ;\n id2 ++ ;\n }\n return diffIdx ;\n }"}
{"idx": 4950, "target": 0, "func": "SPL_METHOD ( SplFileInfo , func_name ) \\ {\n \\ spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n \\ zend_error_handling error_handling ;\n \\ if ( zend_parse_parameters_none ( ) == FAILURE ) {\n \\ return ;\n \\ }\n \\ \\ zend_replace_error_handling ( EH_THROW , spl_ce_RuntimeException , & error_handling TSRMLS_CC ) ;\n \\ spl_filesystem_object_get_file_name ( intern TSRMLS_CC ) ;\n \\ php_stat ( intern -> file_name , intern -> file_name_len , func_num , return_value TSRMLS_CC ) ;\n \\ zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n \\ }\n FileInfoFunction ( getPerms , FS_PERMS ) FileInfoFunction ( getInode , FS_INODE ) FileInfoFunction ( getSize , FS_SIZE ) FileInfoFunction ( getOwner , FS_OWNER ) FileInfoFunction ( getGroup , FS_GROUP ) FileInfoFunction ( getATime , FS_ATIME ) FileInfoFunction ( getMTime , FS_MTIME )"}
{"idx": 4951, "target": 0, "func": "static int libgsm_encode_frame ( AVCodecContext * avctx , AVPacket * avpkt , const AVFrame * frame , int * got_packet_ptr ) {\n int ret ;\n gsm_signal * samples = ( gsm_signal * ) frame -> data [ 0 ] ;\n struct gsm_state * state = avctx -> priv_data ;\n if ( ( ret = ff_alloc_packet ( avpkt , avctx -> block_align ) ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error getting output packet\\n\" ) ;\n return ret ;\n }\n switch ( avctx -> codec_id ) {\n case AV_CODEC_ID_GSM : gsm_encode ( state , samples , avpkt -> data ) ;\n break ;\n case AV_CODEC_ID_GSM_MS : gsm_encode ( state , samples , avpkt -> data ) ;\n gsm_encode ( state , samples + GSM_FRAME_SIZE , avpkt -> data + 32 ) ;\n }\n * got_packet_ptr = 1 ;\n return 0 ;\n }"}
{"idx": 4952, "target": 0, "func": "static uintmax_t parse_mark_ref_space ( const char * * p ) {\n uintmax_t mark ;\n char * end ;\n mark = parse_mark_ref ( * p , & end ) ;\n if ( * end ++ != ' ' ) die ( \"Missing space after mark: %s\" , command_buf . buf ) ;\n * p = end ;\n return mark ;\n }"}
{"idx": 4953, "target": 0, "func": "int fz_colorspace_is_gray ( fz_context * ctx , const fz_colorspace * cs ) {\n return cs && cs -> type == FZ_COLORSPACE_GRAY ;\n }"}
{"idx": 4954, "target": 0, "func": "static int dissect_h245_T_isdnOptions ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_isdnOptions , T_isdnOptions_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 4955, "target": 1, "func": "TEST_F ( ProtocolHandlerRegistryTest , TestSilentlyRegisterHandler ) {\n ProtocolHandler ph1 = CreateProtocolHandler ( \"test\" , GURL ( \"http://test/%s\" ) , \"test1\" ) ;\n ProtocolHandler ph2 = CreateProtocolHandler ( \"test\" , GURL ( \"http://test/%s\" ) , \"test2\" ) ;\n ProtocolHandler ph3 = CreateProtocolHandler ( \"ignore\" , GURL ( \"http://test/%s\" ) , \"ignore1\" ) ;\n ProtocolHandler ph4 = CreateProtocolHandler ( \"ignore\" , GURL ( \"http://test/%s\" ) , \"ignore2\" ) ;\n ASSERT_FALSE ( registry ( ) -> SilentlyHandleRegisterHandlerRequest ( ph1 ) ) ;\n ASSERT_FALSE ( registry ( ) -> IsRegistered ( ph1 ) ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ;\n ASSERT_TRUE ( registry ( ) -> IsRegistered ( ph1 ) ) ;\n ASSERT_TRUE ( registry ( ) -> SilentlyHandleRegisterHandlerRequest ( ph2 ) ) ;\n ASSERT_FALSE ( registry ( ) -> IsRegistered ( ph1 ) ) ;\n ASSERT_TRUE ( registry ( ) -> IsRegistered ( ph2 ) ) ;\n ASSERT_FALSE ( registry ( ) -> SilentlyHandleRegisterHandlerRequest ( ph3 ) ) ;\n ASSERT_FALSE ( registry ( ) -> IsRegistered ( ph3 ) ) ;\n registry ( ) -> OnIgnoreRegisterProtocolHandler ( ph3 ) ;\n ASSERT_FALSE ( registry ( ) -> IsRegistered ( ph3 ) ) ;\n ASSERT_TRUE ( registry ( ) -> IsIgnored ( ph3 ) ) ;\n ASSERT_TRUE ( registry ( ) -> SilentlyHandleRegisterHandlerRequest ( ph4 ) ) ;\n ASSERT_FALSE ( registry ( ) -> IsRegistered ( ph4 ) ) ;\n ASSERT_TRUE ( registry ( ) -> HasIgnoredEquivalent ( ph4 ) ) ;\n }"}
{"idx": 4956, "target": 0, "func": "int jas_stream_close ( jas_stream_t * stream ) {\n jas_stream_flush ( stream ) ;\n ( * stream -> ops_ -> close_ ) ( stream -> obj_ ) ;\n jas_stream_destroy ( stream ) ;\n return 0 ;\n }"}
{"idx": 4957, "target": 0, "func": "CURLcode Curl_gmtime ( time_t intime , struct tm * store ) {\n const struct tm * tm ;\n # ifdef HAVE_GMTIME_R tm = ( struct tm * ) gmtime_r ( & intime , store ) ;\n # else tm = gmtime ( & intime ) ;\n if ( tm ) * store = * tm ;\n # endif if ( ! tm ) return CURLE_BAD_FUNCTION_ARGUMENT ;\n return CURLE_OK ;\n }"}
{"idx": 4958, "target": 0, "func": "int web_server_set_root_dir ( const char * root_dir ) {\n size_t index ;\n int ret ;\n ret = membuffer_assign_str ( & gDocumentRootDir , root_dir ) ;\n if ( ret != 0 ) return ret ;\n if ( gDocumentRootDir . length > 0 ) {\n index = gDocumentRootDir . length - 1 ;\n if ( gDocumentRootDir . buf [ index ] == '/' ) membuffer_delete ( & gDocumentRootDir , index , 1 ) ;\n }\n return 0 ;\n }"}
{"idx": 4959, "target": 0, "func": "static void _slurm_rpc_ping ( slurm_msg_t * msg ) {\n slurm_send_rc_msg ( msg , SLURM_SUCCESS ) ;\n }"}
{"idx": 4960, "target": 0, "func": "int mime_field_presence_get ( MIMEHdrImpl * h , int well_known_str_index ) {\n const char * wks = hdrtoken_index_to_wks ( well_known_str_index ) ;\n return mime_field_presence_get ( h , wks ) ;\n }"}
{"idx": 4961, "target": 0, "func": "static err_status_t srtp_unprotect_aead ( srtp_ctx_t * ctx , srtp_stream_ctx_t * stream , int delta , xtd_seq_num_t est , void * srtp_hdr , unsigned int * pkt_octet_len ) {\n srtp_hdr_t * hdr = ( srtp_hdr_t * ) srtp_hdr ;\n uint32_t * enc_start ;\n unsigned int enc_octet_len = 0 ;\n v128_t iv ;\n err_status_t status ;\n int tag_len ;\n unsigned int aad_len ;\n debug_print ( mod_srtp , \"function srtp_unprotect_aead\" , NULL ) ;\n # ifdef NO_64BIT_MATH debug_print2 ( mod_srtp , \"estimated u_packet index: %08x%08x\" , high32 ( est ) , low32 ( est ) ) ;\n # else debug_print ( mod_srtp , \"estimated u_packet index: %016llx\" , est ) ;\n # endif tag_len = auth_get_tag_length ( stream -> rtp_auth ) ;\n srtp_calc_aead_iv ( stream , & iv , & est , hdr ) ;\n status = cipher_set_iv ( stream -> rtp_cipher , & iv , direction_decrypt ) ;\n if ( status ) {\n return err_status_cipher_fail ;\n }\n enc_start = ( uint32_t * ) hdr + uint32s_in_rtp_header + hdr -> cc ;\n if ( hdr -> x == 1 ) {\n srtp_hdr_xtnd_t * xtn_hdr = ( srtp_hdr_xtnd_t * ) enc_start ;\n enc_start += ( ntohs ( xtn_hdr -> length ) + 1 ) ;\n }\n if ( ! ( ( uint8_t * ) enc_start < ( uint8_t * ) hdr + ( * pkt_octet_len - tag_len ) ) ) return err_status_parse_err ;\n enc_octet_len = ( unsigned int ) ( * pkt_octet_len - ( ( uint8_t * ) enc_start - ( uint8_t * ) hdr ) ) ;\n if ( enc_octet_len < ( unsigned int ) tag_len ) {\n return err_status_cipher_fail ;\n }\n switch ( key_limit_update ( stream -> limit ) ) {\n case key_event_normal : break ;\n case key_event_soft_limit : srtp_handle_event ( ctx , stream , event_key_soft_limit ) ;\n break ;\n case key_event_hard_limit : srtp_handle_event ( ctx , stream , event_key_hard_limit ) ;\n return err_status_key_expired ;\n default : break ;\n }\n aad_len = ( uint8_t * ) enc_start - ( uint8_t * ) hdr ;\n status = cipher_set_aad ( stream -> rtp_cipher , ( uint8_t * ) hdr , aad_len ) ;\n if ( status ) {\n return ( err_status_cipher_fail ) ;\n }\n status = cipher_decrypt ( stream -> rtp_cipher , ( uint8_t * ) enc_start , & enc_octet_len ) ;\n if ( status ) {\n return status ;\n }\n if ( stream -> direction != dir_srtp_receiver ) {\n if ( stream -> direction == dir_unknown ) {\n stream -> direction = dir_srtp_receiver ;\n }\n else {\n srtp_handle_event ( ctx , stream , event_ssrc_collision ) ;\n }\n }\n if ( stream == ctx -> stream_template ) {\n srtp_stream_ctx_t * new_stream ;\n status = srtp_stream_clone ( ctx -> stream_template , hdr -> ssrc , & new_stream ) ;\n if ( status ) {\n return status ;\n }\n new_stream -> next = ctx -> stream_list ;\n ctx -> stream_list = new_stream ;\n stream = new_stream ;\n }\n rdbx_add_index ( & stream -> rtp_rdbx , delta ) ;\n * pkt_octet_len -= tag_len ;\n return err_status_ok ;\n }"}
{"idx": 4962, "target": 0, "func": "static void thumbnail_done ( NautilusDirectory * directory , NautilusFile * file , GdkPixbuf * pixbuf , gboolean tried_original ) {\n const char * thumb_mtime_str ;\n time_t thumb_mtime = 0 ;\n file -> details -> thumbnail_is_up_to_date = TRUE ;\n file -> details -> thumbnail_tried_original = tried_original ;\n if ( file -> details -> thumbnail ) {\n g_object_unref ( file -> details -> thumbnail ) ;\n file -> details -> thumbnail = NULL ;\n }\n if ( file -> details -> scaled_thumbnail ) {\n g_object_unref ( file -> details -> scaled_thumbnail ) ;\n file -> details -> scaled_thumbnail = NULL ;\n }\n if ( pixbuf ) {\n if ( tried_original ) {\n thumb_mtime = file -> details -> mtime ;\n }\n else {\n thumb_mtime_str = gdk_pixbuf_get_option ( pixbuf , \"tEXt::Thumb::MTime\" ) ;\n if ( thumb_mtime_str ) {\n thumb_mtime = atol ( thumb_mtime_str ) ;\n }\n }\n if ( thumb_mtime == 0 || thumb_mtime == file -> details -> mtime ) {\n file -> details -> thumbnail = g_object_ref ( pixbuf ) ;\n file -> details -> thumbnail_mtime = thumb_mtime ;\n }\n else {\n g_free ( file -> details -> thumbnail_path ) ;\n file -> details -> thumbnail_path = NULL ;\n }\n }\n nautilus_directory_async_state_changed ( directory ) ;\n }"}
{"idx": 4963, "target": 0, "func": "static int compare_tile_buffers ( const void * a , const void * b ) {\n const TileBuffer * const buf1 = ( const TileBuffer * ) a ;\n const TileBuffer * const buf2 = ( const TileBuffer * ) b ;\n if ( buf1 -> size < buf2 -> size ) {\n return 1 ;\n }\n else if ( buf1 -> size == buf2 -> size ) {\n return 0 ;\n }\n else {\n return - 1 ;\n }\n }"}
{"idx": 4964, "target": 0, "func": "static int dissect_h225_ParallelH245Control_item ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 363 \"./asn1/h225/h225.cnf\" tvbuff_t * h245_tvb = NULL ;\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , NO_BOUND , NO_BOUND , FALSE , & h245_tvb ) ;\n next_tvb_add_handle ( & h245_list , h245_tvb , ( h225_h245_in_tree ) ? tree : NULL , h245dg_handle ) ;\n return offset ;\n }"}
{"idx": 4965, "target": 0, "func": "static void last_msg_dec_owns ( GSList * list ) {\n LAST_MSG_REC * rec ;\n while ( list != NULL ) {\n rec = list -> data ;\n if ( rec -> own ) rec -> own -- ;\n list = list -> next ;\n }\n }"}
{"idx": 4966, "target": 0, "func": "static int dissect_h245_RequestAllTerminalIDsResponse ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_RequestAllTerminalIDsResponse , RequestAllTerminalIDsResponse_sequence ) ;\n return offset ;\n }"}
{"idx": 4967, "target": 0, "func": "static UChar32 U_CALLCONV _LMBCSGetNextUCharWorker ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n UChar32 uniChar = 0 ;\n ulmbcs_byte_t CurByte ;\n if ( args -> source >= args -> sourceLimit ) {\n * err = U_ILLEGAL_ARGUMENT_ERROR ;\n return 0xffff ;\n }\n CurByte = * ( ( ulmbcs_byte_t * ) ( args -> source ++ ) ) ;\n if ( ( ( CurByte > ULMBCS_C0END ) && ( CurByte < ULMBCS_C1START ) ) || ( CurByte == 0 ) || CurByte == ULMBCS_HT || CurByte == ULMBCS_CR || CurByte == ULMBCS_LF || CurByte == ULMBCS_123SYSTEMRANGE ) {\n uniChar = CurByte ;\n }\n else {\n UConverterDataLMBCS * extraInfo ;\n ulmbcs_byte_t group ;\n UConverterSharedData * cnv ;\n if ( CurByte == ULMBCS_GRP_CTRL ) {\n ulmbcs_byte_t C0C1byte ;\n CHECK_SOURCE_LIMIT ( 1 ) ;\n C0C1byte = * ( args -> source ) ++ ;\n uniChar = ( C0C1byte < ULMBCS_C1START ) ? C0C1byte - ULMBCS_CTRLOFFSET : C0C1byte ;\n }\n else if ( CurByte == ULMBCS_GRP_UNICODE ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n return GetUniFromLMBCSUni ( & ( args -> source ) ) ;\n }\n else if ( CurByte <= ULMBCS_CTRLOFFSET ) {\n group = CurByte ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n if ( group > ULMBCS_GRP_LAST || ( cnv = extraInfo -> OptGrpConverter [ group ] ) == NULL ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n if ( * args -> source == group ) {\n ++ args -> source ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 1 , FALSE ) ;\n ++ args -> source ;\n }\n else {\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 2 , FALSE ) ;\n args -> source += 2 ;\n }\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n CurByte = * ( args -> source ) ++ ;\n if ( CurByte >= ULMBCS_C1START ) {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n else {\n char bytes [ 2 ] ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n cnv = extraInfo -> OptGrpConverter [ ULMBCS_GRP_EXCEPT ] ;\n bytes [ 0 ] = group ;\n bytes [ 1 ] = CurByte ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , bytes , 2 , FALSE ) ;\n }\n }\n }\n else if ( CurByte >= ULMBCS_C1START ) {\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n group = extraInfo -> OptGroup ;\n cnv = extraInfo -> OptGrpConverter [ group ] ;\n if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n if ( ! ucnv_MBCSIsLeadByte ( cnv , CurByte ) ) {\n CHECK_SOURCE_LIMIT ( 0 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 1 , FALSE ) ;\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 2 , FALSE ) ;\n ++ args -> source ;\n }\n }\n else {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n }\n }\n return uniChar ;\n }"}
{"idx": 4968, "target": 0, "func": "static void dissect_q931_notification_indicator_ie ( tvbuff_t * tvb , int offset , int len , proto_tree * tree ) {\n if ( len == 0 ) return ;\n proto_tree_add_item ( tree , hf_q931_notification_description , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n }"}
{"idx": 4969, "target": 0, "func": "static void xhci_ep_kick_timer ( void * opaque ) {\n XHCIEPContext * epctx = opaque ;\n xhci_kick_epctx ( epctx , 0 ) ;\n }"}
{"idx": 4970, "target": 1, "func": "static void choose_tx_size_from_rd ( VP9_COMP * cpi , MACROBLOCK * x , int * rate , int64_t * distortion , int * skip , int64_t * psse , int64_t tx_cache [ TX_MODES ] , int64_t ref_best_rd , BLOCK_SIZE bs ) {\n const TX_SIZE max_tx_size = max_txsize_lookup [ bs ] ;\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n MB_MODE_INFO * const mbmi = & xd -> mi [ 0 ] -> mbmi ;\n vp9_prob skip_prob = vp9_get_skip_prob ( cm , xd ) ;\n int r [ TX_SIZES ] [ 2 ] , s [ TX_SIZES ] ;\n int64_t d [ TX_SIZES ] , sse [ TX_SIZES ] ;\n int64_t rd [ TX_SIZES ] [ 2 ] = {\n {\n INT64_MAX , INT64_MAX }\n , {\n INT64_MAX , INT64_MAX }\n , {\n INT64_MAX , INT64_MAX }\n , {\n INT64_MAX , INT64_MAX }\n }\n ;\n int n , m ;\n int s0 , s1 ;\n const TX_SIZE max_mode_tx_size = tx_mode_to_biggest_tx_size [ cm -> tx_mode ] ;\n int64_t best_rd = INT64_MAX ;\n TX_SIZE best_tx = max_tx_size ;\n const vp9_prob * tx_probs = get_tx_probs2 ( max_tx_size , xd , & cm -> fc . tx_probs ) ;\n assert ( skip_prob > 0 ) ;\n s0 = vp9_cost_bit ( skip_prob , 0 ) ;\n s1 = vp9_cost_bit ( skip_prob , 1 ) ;\n for ( n = max_tx_size ;\n n >= 0 ;\n n -- ) {\n txfm_rd_in_plane ( x , & r [ n ] [ 0 ] , & d [ n ] , & s [ n ] , & sse [ n ] , ref_best_rd , 0 , bs , n , cpi -> sf . use_fast_coef_costing ) ;\n r [ n ] [ 1 ] = r [ n ] [ 0 ] ;\n if ( r [ n ] [ 0 ] < INT_MAX ) {\n for ( m = 0 ;\n m <= n - ( n == ( int ) max_tx_size ) ;\n m ++ ) {\n if ( m == n ) r [ n ] [ 1 ] += vp9_cost_zero ( tx_probs [ m ] ) ;\n else r [ n ] [ 1 ] += vp9_cost_one ( tx_probs [ m ] ) ;\n }\n }\n if ( d [ n ] == INT64_MAX ) {\n rd [ n ] [ 0 ] = rd [ n ] [ 1 ] = INT64_MAX ;\n }\n else if ( s [ n ] ) {\n rd [ n ] [ 0 ] = rd [ n ] [ 1 ] = RDCOST ( x -> rdmult , x -> rddiv , s1 , d [ n ] ) ;\n }\n else {\n rd [ n ] [ 0 ] = RDCOST ( x -> rdmult , x -> rddiv , r [ n ] [ 0 ] + s0 , d [ n ] ) ;\n rd [ n ] [ 1 ] = RDCOST ( x -> rdmult , x -> rddiv , r [ n ] [ 1 ] + s0 , d [ n ] ) ;\n }\n if ( cpi -> sf . tx_size_search_breakout && ( rd [ n ] [ 1 ] == INT64_MAX || ( n < ( int ) max_tx_size && rd [ n ] [ 1 ] > rd [ n + 1 ] [ 1 ] ) || s [ n ] == 1 ) ) break ;\n if ( rd [ n ] [ 1 ] < best_rd ) {\n best_tx = n ;\n best_rd = rd [ n ] [ 1 ] ;\n }\n }\n mbmi -> tx_size = cm -> tx_mode == TX_MODE_SELECT ? best_tx : MIN ( max_tx_size , max_mode_tx_size ) ;\n * distortion = d [ mbmi -> tx_size ] ;\n * rate = r [ mbmi -> tx_size ] [ cm -> tx_mode == TX_MODE_SELECT ] ;\n * skip = s [ mbmi -> tx_size ] ;\n * psse = sse [ mbmi -> tx_size ] ;\n tx_cache [ ONLY_4X4 ] = rd [ TX_4X4 ] [ 0 ] ;\n tx_cache [ ALLOW_8X8 ] = rd [ TX_8X8 ] [ 0 ] ;\n tx_cache [ ALLOW_16X16 ] = rd [ MIN ( max_tx_size , TX_16X16 ) ] [ 0 ] ;\n tx_cache [ ALLOW_32X32 ] = rd [ MIN ( max_tx_size , TX_32X32 ) ] [ 0 ] ;\n if ( max_tx_size == TX_32X32 && best_tx == TX_32X32 ) {\n tx_cache [ TX_MODE_SELECT ] = rd [ TX_32X32 ] [ 1 ] ;\n }\n else if ( max_tx_size >= TX_16X16 && best_tx == TX_16X16 ) {\n tx_cache [ TX_MODE_SELECT ] = rd [ TX_16X16 ] [ 1 ] ;\n }\n else if ( rd [ TX_8X8 ] [ 1 ] < rd [ TX_4X4 ] [ 1 ] ) {\n tx_cache [ TX_MODE_SELECT ] = rd [ TX_8X8 ] [ 1 ] ;\n }\n else {\n tx_cache [ TX_MODE_SELECT ] = rd [ TX_4X4 ] [ 1 ] ;\n }\n }"}
{"idx": 4971, "target": 0, "func": "inline uint32_t mime_hdr_get_accelerator_slotnum ( MIMEHdrImpl * mh , int32_t slot_id ) {\n ink_assert ( ( slot_id != MIME_SLOTID_NONE ) && ( slot_id < 32 ) ) ;\n uint32_t word_index = slot_id / 8 ;\n uint32_t word = mh -> m_slot_accelerators [ word_index ] ;\n uint32_t nybble = slot_id % 8 ;\n uint32_t slot = ( ( word >> ( nybble * 4 ) ) & 15 ) ;\n return slot ;\n }"}
{"idx": 4972, "target": 0, "func": "static int decode_cell ( Indeo3DecodeContext * ctx , AVCodecContext * avctx , Plane * plane , Cell * cell , const uint8_t * data_ptr , const uint8_t * last_ptr ) {\n int x , mv_x , mv_y , mode , vq_index , prim_indx , second_indx ;\n int zoom_fac ;\n int offset , error = 0 , swap_quads [ 2 ] ;\n uint8_t code , * block , * ref_block = 0 ;\n const vqEntry * delta [ 2 ] ;\n const uint8_t * data_start = data_ptr ;\n code = * data_ptr ++ ;\n mode = code >> 4 ;\n vq_index = code & 0xF ;\n offset = ( cell -> ypos << 2 ) * plane -> pitch + ( cell -> xpos << 2 ) ;\n block = plane -> pixels [ ctx -> buf_sel ] + offset ;\n if ( ! cell -> mv_ptr ) {\n ref_block = block - plane -> pitch ;\n }\n else if ( mode >= 10 ) {\n copy_cell ( ctx , plane , cell ) ;\n }\n else {\n mv_y = cell -> mv_ptr [ 0 ] ;\n mv_x = cell -> mv_ptr [ 1 ] ;\n offset += mv_y * plane -> pitch + mv_x ;\n ref_block = plane -> pixels [ ctx -> buf_sel ^ 1 ] + offset ;\n }\n if ( mode == 1 || mode == 4 ) {\n code = ctx -> alt_quant [ vq_index ] ;\n prim_indx = ( code >> 4 ) + ctx -> cb_offset ;\n second_indx = ( code & 0xF ) + ctx -> cb_offset ;\n }\n else {\n vq_index += ctx -> cb_offset ;\n prim_indx = second_indx = vq_index ;\n }\n if ( prim_indx >= 24 || second_indx >= 24 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid VQ table indexes! Primary: %d, secondary: %d!\\n\" , prim_indx , second_indx ) ;\n return AVERROR_INVALIDDATA ;\n }\n delta [ 0 ] = & vq_tab [ second_indx ] ;\n delta [ 1 ] = & vq_tab [ prim_indx ] ;\n swap_quads [ 0 ] = second_indx >= 16 ;\n swap_quads [ 1 ] = prim_indx >= 16 ;\n if ( vq_index >= 8 && ref_block ) {\n for ( x = 0 ;\n x < cell -> width << 2 ;\n x ++ ) ref_block [ x ] = requant_tab [ vq_index & 7 ] [ ref_block [ x ] ] ;\n }\n error = IV3_NOERR ;\n switch ( mode ) {\n case 0 : case 1 : case 3 : case 4 : if ( mode >= 3 && cell -> mv_ptr ) {\n av_log ( avctx , AV_LOG_ERROR , \"Attempt to apply Mode 3/4 to an INTER cell!\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n zoom_fac = mode >= 3 ;\n error = decode_cell_data ( ctx , cell , block , ref_block , plane -> pitch , 0 , zoom_fac , mode , delta , swap_quads , & data_ptr , last_ptr ) ;\n break ;\n case 10 : case 11 : if ( mode == 10 && ! cell -> mv_ptr ) {\n error = decode_cell_data ( ctx , cell , block , ref_block , plane -> pitch , 1 , 1 , mode , delta , swap_quads , & data_ptr , last_ptr ) ;\n }\n else {\n if ( mode == 11 && ! cell -> mv_ptr ) {\n av_log ( avctx , AV_LOG_ERROR , \"Attempt to use Mode 11 for an INTRA cell!\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n zoom_fac = mode == 10 ;\n error = decode_cell_data ( ctx , cell , block , ref_block , plane -> pitch , zoom_fac , 1 , mode , delta , swap_quads , & data_ptr , last_ptr ) ;\n }\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"Unsupported coding mode: %d\\n\" , mode ) ;\n return AVERROR_INVALIDDATA ;\n }\n switch ( error ) {\n case IV3_BAD_RLE : av_log ( avctx , AV_LOG_ERROR , \"Mode %d: RLE code %X is not allowed at the current line\\n\" , mode , data_ptr [ - 1 ] ) ;\n return AVERROR_INVALIDDATA ;\n case IV3_BAD_DATA : av_log ( avctx , AV_LOG_ERROR , \"Mode %d: invalid VQ data\\n\" , mode ) ;\n return AVERROR_INVALIDDATA ;\n case IV3_BAD_COUNTER : av_log ( avctx , AV_LOG_ERROR , \"Mode %d: RLE-FB invalid counter: %d\\n\" , mode , code ) ;\n return AVERROR_INVALIDDATA ;\n case IV3_UNSUPPORTED : av_log ( avctx , AV_LOG_ERROR , \"Mode %d: unsupported RLE code: %X\\n\" , mode , data_ptr [ - 1 ] ) ;\n return AVERROR_INVALIDDATA ;\n case IV3_OUT_OF_DATA : av_log ( avctx , AV_LOG_ERROR , \"Mode %d: attempt to read past end of buffer\\n\" , mode ) ;\n return AVERROR_INVALIDDATA ;\n }\n return data_ptr - data_start ;\n }"}
{"idx": 4973, "target": 0, "func": "static const char * name ## _get_name ( void * ctx ) \\ {\n return # name ;\n \\ }\n static const AVClass name ## _class = {\n . class_name = # name , . item_name = name ## _get_name , . option = name ## _options \\ }\n typedef struct DefaultContext {\n const AVClass * class ;\n int nokey ;\n int noprint_wrappers ;\n int nested_section [ SECTION_MAX_NB_LEVELS ] ;\n }\n DefaultContext ;\n # undef OFFSET # define OFFSET ( x ) offsetof ( DefaultContext , x ) static const AVOption default_options [ ] = {\n {\n \"noprint_wrappers\" , \"do not print headers and footers\" , OFFSET ( noprint_wrappers ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n \"nw\" , \"do not print headers and footers\" , OFFSET ( noprint_wrappers ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n \"nokey\" , \"force no key printing\" , OFFSET ( nokey ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n \"nk\" , \"force no key printing\" , OFFSET ( nokey ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n NULL }\n , }\n ;\n DEFINE_WRITER_CLASS ( default ) ;\n static inline char * upcase_string ( char * dst , size_t dst_size , const char * src ) {\n int i ;\n for ( i = 0 ;\n src [ i ] && i < dst_size - 1 ;\n i ++ ) dst [ i ] = av_toupper ( src [ i ] ) ;\n dst [ i ] = 0 ;\n return dst ;\n }\n static void default_print_section_header ( WriterContext * wctx ) {\n DefaultContext * def = wctx -> priv ;\n char buf [ 32 ] ;\n const struct section * section = wctx -> section [ wctx -> level ] ;\n const struct section * parent_section = wctx -> level ? wctx -> section [ wctx -> level - 1 ] : NULL ;\n av_bprint_clear ( & wctx -> section_pbuf [ wctx -> level ] ) ;\n if ( parent_section && ! ( parent_section -> flags & ( SECTION_FLAG_IS_WRAPPER | SECTION_FLAG_IS_ARRAY ) ) ) {\n def -> nested_section [ wctx -> level ] = 1 ;\n av_bprintf ( & wctx -> section_pbuf [ wctx -> level ] , \"%s%s:\" , wctx -> section_pbuf [ wctx -> level - 1 ] . str , upcase_string ( buf , sizeof ( buf ) , av_x_if_null ( section -> element_name , section -> name ) ) ) ;\n }\n if ( def -> noprint_wrappers || def -> nested_section [ wctx -> level ] ) return ;\n if ( ! ( section -> flags & ( SECTION_FLAG_IS_WRAPPER | SECTION_FLAG_IS_ARRAY ) ) ) printf ( \"[%s]\\n\" , upcase_string ( buf , sizeof ( buf ) , section -> name ) ) ;\n }\n static void default_print_section_footer ( WriterContext * wctx ) {\n DefaultContext * def = wctx -> priv ;\n const struct section * section = wctx -> section [ wctx -> level ] ;\n char buf [ 32 ] ;\n if ( def -> noprint_wrappers || def -> nested_section [ wctx -> level ] ) return ;\n if ( ! ( section -> flags & ( SECTION_FLAG_IS_WRAPPER | SECTION_FLAG_IS_ARRAY ) ) ) printf ( \"[/%s]\\n\" , upcase_string ( buf , sizeof ( buf ) , section -> name ) ) ;\n }\n static void default_print_str ( WriterContext * wctx , const char * key , const char * value ) {\n DefaultContext * def = wctx -> priv ;\n if ( ! def -> nokey ) printf ( \"%s%s=\" , wctx -> section_pbuf [ wctx -> level ] . str , key ) ;\n printf ( \"%s\\n\" , value ) ;\n }\n static void default_print_int ( WriterContext * wctx , const char * key , long long int value ) {\n DefaultContext * def = wctx -> priv ;\n if ( ! def -> nokey ) printf ( \"%s%s=\" , wctx -> section_pbuf [ wctx -> level ] . str , key ) ;\n printf ( \"%lld\\n\" , value ) ;\n }\n static const Writer default_writer = {\n . name = \"default\" , . priv_size = sizeof ( DefaultContext ) , . print_section_header = default_print_section_header , . print_section_footer = default_print_section_footer , . print_integer = default_print_int , . print_string = default_print_str , . flags = WRITER_FLAG_DISPLAY_OPTIONAL_FIELDS , . priv_class = & default_class , }\n ;\n static const char * c_escape_str ( AVBPrint * dst , const char * src , const char sep , void * log_ctx ) {\n const char * p ;\n for ( p = src ;\n * p ;\n p ++ ) {\n switch ( * p ) {\n case '\\b' : av_bprintf ( dst , \"%s\" , \"\\\\b\" ) ;\n break ;\n case '\\f' : av_bprintf ( dst , \"%s\" , \"\\\\f\" ) ;\n break ;\n case '\\n' : av_bprintf ( dst , \"%s\" , \"\\\\n\" ) ;\n break ;\n case '\\r' : av_bprintf ( dst , \"%s\" , \"\\\\r\" ) ;\n break ;\n case '\\\\' : av_bprintf ( dst , \"%s\" , \"\\\\\\\\\" ) ;\n break ;\n default : if ( * p == sep ) av_bprint_chars ( dst , '\\\\' , 1 ) ;\n av_bprint_chars ( dst , * p , 1 ) ;\n }\n }\n return dst -> str ;\n }\n static const char * csv_escape_str ( AVBPrint * dst , const char * src , const char sep , void * log_ctx ) {\n char meta_chars [ ] = {\n sep , '\"' , '\\n' , '\\r' , '\\0' }\n ;\n int needs_quoting = ! ! src [ strcspn ( src , meta_chars ) ] ;\n if ( needs_quoting ) av_bprint_chars ( dst , '\"' , 1 ) ;\n for ( ;\n * src ;\n src ++ ) {\n if ( * src == '\"' ) av_bprint_chars ( dst , '\"' , 1 ) ;\n av_bprint_chars ( dst , * src , 1 ) ;\n }\n if ( needs_quoting ) av_bprint_chars ( dst , '\"' , 1 ) ;\n return dst -> str ;\n }\n static const char * none_escape_str ( AVBPrint * dst , const char * src , const char sep , void * log_ctx ) {\n return src ;\n }\n typedef struct CompactContext {\n const AVClass * class ;\n char * item_sep_str ;\n char item_sep ;\n int nokey ;\n int print_section ;\n char * escape_mode_str ;\n const char * ( * escape_str ) ( AVBPrint * dst , const char * src , const char sep , void * log_ctx ) ;\n int nested_section [ SECTION_MAX_NB_LEVELS ] ;\n int has_nested_elems [ SECTION_MAX_NB_LEVELS ] ;\n int terminate_line [ SECTION_MAX_NB_LEVELS ] ;\n }\n CompactContext ;\n # undef OFFSET # define OFFSET ( x ) offsetof ( CompactContext , x ) static const AVOption compact_options [ ] = {\n {\n \"item_sep\" , \"set item separator\" , OFFSET ( item_sep_str ) , AV_OPT_TYPE_STRING , {\n . str = \"|\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"s\" , \"set item separator\" , OFFSET ( item_sep_str ) , AV_OPT_TYPE_STRING , {\n . str = \"|\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"nokey\" , \"force no key printing\" , OFFSET ( nokey ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n \"nk\" , \"force no key printing\" , OFFSET ( nokey ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n \"escape\" , \"set escape mode\" , OFFSET ( escape_mode_str ) , AV_OPT_TYPE_STRING , {\n . str = \"c\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"e\" , \"set escape mode\" , OFFSET ( escape_mode_str ) , AV_OPT_TYPE_STRING , {\n . str = \"c\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"print_section\" , \"print section name\" , OFFSET ( print_section ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n \"p\" , \"print section name\" , OFFSET ( print_section ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n NULL }\n , }\n ;\n DEFINE_WRITER_CLASS ( compact )"}
{"idx": 4974, "target": 0, "func": "static inline void map_exec ( void * addr , long size ) {\n unsigned long start , end , page_size ;\n page_size = getpagesize ( ) ;\n start = ( unsigned long ) addr ;\n start &= ~ ( page_size - 1 ) ;\n end = ( unsigned long ) addr + size ;\n end += page_size - 1 ;\n end &= ~ ( page_size - 1 ) ;\n mprotect ( ( void * ) start , end - start , PROT_READ | PROT_WRITE | PROT_EXEC ) ;\n }"}
{"idx": 4975, "target": 0, "func": "static inline __u8 ip_reply_arg_flowi_flags ( const struct ip_reply_arg * arg ) {\n return ( arg -> flags & IP_REPLY_ARG_NOSRCCHECK ) ? FLOWI_FLAG_ANYSRC : 0 ;\n }"}
{"idx": 4976, "target": 0, "func": "int fz_colorspace_is_device_cmyk ( fz_context * ctx , const fz_colorspace * cs ) {\n return fz_colorspace_is_device ( ctx , cs ) && fz_colorspace_is_cmyk ( ctx , cs ) ;\n }"}
{"idx": 4977, "target": 0, "func": "void bluetooth_add_address ( packet_info * pinfo , address * addr , const gchar * setup_method , guint32 setup_frame_number , gboolean is_video , void * data ) {\n address null_addr ;\n conversation_t * p_conv ;\n struct _rtp_conversation_info * p_conv_data = NULL ;\n if ( ( pinfo -> fd -> flags . visited ) || ( rtp_handle == NULL ) ) {\n return ;\n }\n SET_ADDRESS ( & null_addr , AT_NONE , 0 , NULL ) ;\n p_conv = find_conversation ( setup_frame_number , addr , & null_addr , PT_BLUETOOTH , 0 , 0 , NO_ADDR_B | NO_PORT_B ) ;\n if ( ! p_conv || p_conv -> setup_frame != setup_frame_number ) {\n p_conv = conversation_new ( setup_frame_number , addr , & null_addr , PT_BLUETOOTH , 0 , 0 , NO_ADDR2 | NO_PORT2 ) ;\n }\n conversation_set_dissector ( p_conv , rtp_handle ) ;\n p_conv_data = ( struct _rtp_conversation_info * ) conversation_get_proto_data ( p_conv , proto_rtp ) ;\n if ( ! p_conv_data ) {\n p_conv_data = wmem_new ( wmem_file_scope ( ) , struct _rtp_conversation_info ) ;\n p_conv_data -> rtp_dyn_payload = NULL ;\n p_conv_data -> extended_seqno = 0x10000 ;\n p_conv_data -> rtp_conv_info = wmem_new ( wmem_file_scope ( ) , rtp_private_conv_info ) ;\n p_conv_data -> rtp_conv_info -> multisegment_pdus = wmem_tree_new ( wmem_file_scope ( ) ) ;\n conversation_add_proto_data ( p_conv , proto_rtp , p_conv_data ) ;\n if ( is_video ) {\n p_conv_data -> bta2dp_info = NULL ;\n p_conv_data -> btvdp_info = ( btvdp_codec_info_t * ) wmem_memdup ( wmem_file_scope ( ) , data , sizeof ( btvdp_codec_info_t ) ) ;\n }\n else {\n p_conv_data -> bta2dp_info = ( bta2dp_codec_info_t * ) wmem_memdup ( wmem_file_scope ( ) , data , sizeof ( bta2dp_codec_info_t ) ) ;\n p_conv_data -> btvdp_info = NULL ;\n }\n }\n rtp_dyn_payload_free ( p_conv_data -> rtp_dyn_payload ) ;\n g_strlcpy ( p_conv_data -> method , setup_method , MAX_RTP_SETUP_METHOD_SIZE + 1 ) ;\n p_conv_data -> frame_number = setup_frame_number ;\n p_conv_data -> is_video = is_video ;\n p_conv_data -> rtp_dyn_payload = NULL ;\n p_conv_data -> srtp_info = NULL ;\n }"}
{"idx": 4978, "target": 0, "func": "TSReturnCode TSMimeHdrFieldValueStringSet ( TSMBuffer bufp , TSMLoc hdr , TSMLoc field , int idx , const char * value , int length ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( hdr ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( hdr ) == TS_SUCCESS ) ) ;\n sdk_assert ( sdk_sanity_check_field_handle ( field , hdr ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) value ) == TS_SUCCESS ) ;\n if ( ! isWriteable ( bufp ) ) {\n return TS_ERROR ;\n }\n if ( length == - 1 ) {\n length = strlen ( value ) ;\n }\n TSMimeFieldValueSet ( bufp , field , idx , value , length ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 4979, "target": 0, "func": "static void parse_content_type ( struct message_decoder_context * ctx , struct message_header_line * hdr ) {\n struct rfc822_parser_context parser ;\n const char * const * results ;\n string_t * str ;\n int ret ;\n if ( ctx -> content_type != NULL ) return ;\n rfc822_parser_init ( & parser , hdr -> full_value , hdr -> full_value_len , NULL ) ;\n rfc822_skip_lwsp ( & parser ) ;\n str = t_str_new ( 64 ) ;\n ret = rfc822_parse_content_type ( & parser , str ) ;\n ctx -> content_type = i_strdup ( str_c ( str ) ) ;\n if ( ret < 0 ) {\n rfc822_parser_deinit ( & parser ) ;\n return ;\n }\n rfc2231_parse ( & parser , & results ) ;\n for ( ;\n * results != NULL ;\n results += 2 ) {\n if ( strcasecmp ( results [ 0 ] , \"charset\" ) == 0 ) {\n ctx -> content_charset = i_strdup ( results [ 1 ] ) ;\n break ;\n }\n }\n rfc822_parser_deinit ( & parser ) ;\n }"}
{"idx": 4980, "target": 0, "func": "static int __tipc_nl_compat_doit ( struct tipc_nl_compat_cmd_doit * cmd , struct tipc_nl_compat_msg * msg ) {\n int err ;\n struct sk_buff * doit_buf ;\n struct sk_buff * trans_buf ;\n struct nlattr * * attrbuf ;\n struct genl_info info ;\n trans_buf = alloc_skb ( NLMSG_GOODSIZE , GFP_KERNEL ) ;\n if ( ! trans_buf ) return - ENOMEM ;\n err = ( * cmd -> transcode ) ( cmd , trans_buf , msg ) ;\n if ( err ) goto trans_out ;\n attrbuf = kmalloc ( ( tipc_genl_family . maxattr + 1 ) * sizeof ( struct nlattr * ) , GFP_KERNEL ) ;\n if ( ! attrbuf ) {\n err = - ENOMEM ;\n goto trans_out ;\n }\n err = nla_parse ( attrbuf , tipc_genl_family . maxattr , ( const struct nlattr * ) trans_buf -> data , trans_buf -> len , NULL ) ;\n if ( err ) goto parse_out ;\n doit_buf = alloc_skb ( NLMSG_GOODSIZE , GFP_KERNEL ) ;\n if ( ! doit_buf ) {\n err = - ENOMEM ;\n goto parse_out ;\n }\n doit_buf -> sk = msg -> dst_sk ;\n memset ( & info , 0 , sizeof ( info ) ) ;\n info . attrs = attrbuf ;\n err = ( * cmd -> doit ) ( doit_buf , & info ) ;\n kfree_skb ( doit_buf ) ;\n parse_out : kfree ( attrbuf ) ;\n trans_out : kfree_skb ( trans_buf ) ;\n return err ;\n }"}
{"idx": 4981, "target": 1, "func": "size_t vpx_svc_get_rc_stats_buffer_size ( const SvcContext * svc_ctx ) {\n const SvcInternal * const si = get_const_svc_internal ( svc_ctx ) ;\n if ( svc_ctx == NULL || si == NULL ) return 0 ;\n return si -> rc_stats_buf_used ;\n }"}
{"idx": 4982, "target": 0, "func": "static int ogg_new_buf ( struct ogg * ogg , int idx ) {\n struct ogg_stream * os = ogg -> streams + idx ;\n uint8_t * nb = av_malloc ( os -> bufsize + AV_INPUT_BUFFER_PADDING_SIZE ) ;\n int size = os -> bufpos - os -> pstart ;\n if ( ! nb ) return AVERROR ( ENOMEM ) ;\n if ( os -> buf ) {\n memcpy ( nb , os -> buf + os -> pstart , size ) ;\n av_free ( os -> buf ) ;\n }\n os -> buf = nb ;\n os -> bufpos = size ;\n os -> pstart = 0 ;\n return 0 ;\n }"}
{"idx": 4983, "target": 0, "func": "static int encode_frame ( AVCodecContext * c , AVFrame * frame ) {\n AVPacket pkt = {\n 0 }\n ;\n int ret , got_output ;\n av_init_packet ( & pkt ) ;\n ret = avcodec_encode_video2 ( c , & pkt , frame , & got_output ) ;\n if ( ret < 0 ) return ret ;\n ret = pkt . size ;\n av_free_packet ( & pkt ) ;\n return ret ;\n }"}
{"idx": 4984, "target": 0, "func": "static void ohci_detach ( USBPort * port1 ) {\n OHCIState * s = port1 -> opaque ;\n OHCIPort * port = & s -> rhport [ port1 -> index ] ;\n uint32_t old_state = port -> ctrl ;\n ohci_async_cancel_device ( s , port1 -> dev ) ;\n if ( port -> ctrl & OHCI_PORT_CCS ) {\n port -> ctrl &= ~ OHCI_PORT_CCS ;\n port -> ctrl |= OHCI_PORT_CSC ;\n }\n if ( port -> ctrl & OHCI_PORT_PES ) {\n port -> ctrl &= ~ OHCI_PORT_PES ;\n port -> ctrl |= OHCI_PORT_PESC ;\n }\n trace_usb_ohci_port_detach ( port1 -> index ) ;\n if ( old_state != port -> ctrl ) {\n ohci_set_interrupt ( s , OHCI_INTR_RHSC ) ;\n }\n }"}
{"idx": 4985, "target": 0, "func": "const char * TSUrlUserGet ( TSMBuffer bufp , TSMLoc obj , int * length ) {\n return URLPartGet ( bufp , obj , length , & URL : : user_get ) ;\n }"}
{"idx": 4986, "target": 0, "func": "TEST_F ( SSLErrorAssistantTest , DynamicInterstitialListOverridable ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n EXPECT_EQ ( 1u , ssl_info ( ) . public_key_hashes . size ( ) ) ;\n auto config_proto = std : : make_unique < chrome_browser_ssl : : SSLErrorAssistantConfig > ( ) ;\n config_proto -> set_version_id ( kLargeVersionId ) ;\n chrome_browser_ssl : : DynamicInterstitial * filter = config_proto -> add_dynamic_interstitial ( ) ;\n filter -> set_interstitial_type ( chrome_browser_ssl : : DynamicInterstitial : : INTERSTITIAL_PAGE_SSL ) ;\n filter -> set_cert_error ( chrome_browser_ssl : : DynamicInterstitial : : ERR_CERT_COMMON_NAME_INVALID ) ;\n filter -> add_sha256_hash ( \"sha256uthatch\" ) ;\n filter -> add_sha256_hash ( ssl_info ( ) . public_key_hashes [ 0 ] . ToString ( ) ) ;\n filter -> add_sha256_hash ( \"sha256/treecreeper\" ) ;\n filter -> set_mitm_software_name ( \"UwS\" ) ;\n filter -> set_issuer_common_name_regex ( \"[0-9]+.0.[0-9]+.1\" ) ;\n filter -> set_issuer_organization_regex ( \"T[a-z]+t CA\" ) ;\n filter -> set_show_only_for_nonoverridable_errors ( true ) ;\n error_assistant ( ) -> SetErrorAssistantProto ( std : : move ( config_proto ) ) ;\n EXPECT_FALSE ( error_assistant ( ) -> MatchDynamicInterstitial ( ssl_info ( ) , true ) ) ;\n }"}
{"idx": 4987, "target": 0, "func": "static void _slurm_rpc_allocate_resources ( slurm_msg_t * msg ) {\n static int active_rpc_cnt = 0 ;\n int error_code = SLURM_SUCCESS ;\n slurm_msg_t response_msg ;\n DEF_TIMERS ;\n job_desc_msg_t * job_desc_msg = ( job_desc_msg_t * ) msg -> data ;\n resource_allocation_response_msg_t alloc_msg ;\n slurmctld_lock_t job_read_lock = {\n READ_LOCK , READ_LOCK , READ_LOCK , READ_LOCK , READ_LOCK }\n ;\n slurmctld_lock_t job_write_lock = {\n READ_LOCK , WRITE_LOCK , WRITE_LOCK , READ_LOCK , READ_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n gid_t gid = g_slurm_auth_get_gid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n int immediate = job_desc_msg -> immediate ;\n bool do_unlock = false ;\n bool reject_job = false ;\n struct job_record * job_ptr = NULL ;\n uint16_t port ;\n slurm_addr_t resp_addr ;\n char * err_msg = NULL , * job_submit_user_msg = NULL ;\n START_TIMER ;\n if ( slurmctld_config . submissions_disabled ) {\n info ( \"Submissions disabled on system\" ) ;\n error_code = ESLURM_SUBMISSIONS_DISABLED ;\n reject_job = true ;\n goto send_msg ;\n }\n if ( ( error_code = _valid_id ( \"REQUEST_RESOURCE_ALLOCATION\" , job_desc_msg , uid , gid ) ) ) {\n reject_job = true ;\n goto send_msg ;\n }\n debug2 ( \"sched: Processing RPC: REQUEST_RESOURCE_ALLOCATION from uid=%d\" , uid ) ;\n if ( ( job_desc_msg -> alloc_node == NULL ) || ( job_desc_msg -> alloc_node [ 0 ] == '\\0' ) ) {\n error_code = ESLURM_INVALID_NODE_NAME ;\n error ( \"REQUEST_RESOURCE_ALLOCATE lacks alloc_node from uid=%d\" , uid ) ;\n }\n if ( error_code == SLURM_SUCCESS ) {\n lock_slurmctld ( job_read_lock ) ;\n job_desc_msg -> pack_job_offset = NO_VAL ;\n error_code = validate_job_create_req ( job_desc_msg , uid , & err_msg ) ;\n unlock_slurmctld ( job_read_lock ) ;\n }\n if ( err_msg ) job_submit_user_msg = xstrdup ( err_msg ) ;\n # if HAVE_ALPS_CRAY if ( allocated_session_in_use ( job_desc_msg ) ) {\n error_code = ESLURM_RESERVATION_BUSY ;\n error ( \"attempt to nest ALPS allocation on %s:%d by uid=%d\" , job_desc_msg -> alloc_node , job_desc_msg -> alloc_sid , uid ) ;\n }\n # endif if ( error_code ) {\n reject_job = true ;\n }\n else if ( ! slurm_get_peer_addr ( msg -> conn_fd , & resp_addr ) ) {\n if ( ! job_desc_msg -> resp_host ) {\n job_desc_msg -> resp_host = xmalloc ( 16 ) ;\n slurm_get_ip_str ( & resp_addr , & port , job_desc_msg -> resp_host , 16 ) ;\n }\n dump_job_desc ( job_desc_msg ) ;\n do_unlock = true ;\n _throttle_start ( & active_rpc_cnt ) ;\n lock_slurmctld ( job_write_lock ) ;\n if ( fed_mgr_fed_rec ) {\n uint32_t job_id ;\n if ( fed_mgr_job_allocate ( msg , job_desc_msg , true , uid , msg -> protocol_version , & job_id , & error_code , & err_msg ) ) {\n reject_job = true ;\n }\n else if ( ! ( job_ptr = find_job_record ( job_id ) ) ) {\n error ( \"%s: can't find fed job that was just created. this should never happen\" , __func__ ) ;\n reject_job = true ;\n error_code = SLURM_ERROR ;\n }\n }\n else {\n job_desc_msg -> pack_job_offset = NO_VAL ;\n error_code = job_allocate ( job_desc_msg , immediate , false , NULL , true , uid , & job_ptr , & err_msg , msg -> protocol_version ) ;\n if ( ! job_ptr || ( error_code && job_ptr -> job_state == JOB_FAILED ) ) reject_job = true ;\n }\n END_TIMER2 ( \"_slurm_rpc_allocate_resources\" ) ;\n }\n else {\n reject_job = true ;\n if ( errno ) error_code = errno ;\n else error_code = SLURM_ERROR ;\n }\n send_msg : if ( ! reject_job ) {\n xassert ( job_ptr ) ;\n info ( \"sched: %s JobId=%u NodeList=%s %s\" , __func__ , job_ptr -> job_id , job_ptr -> nodes , TIME_STR ) ;\n _build_alloc_msg ( job_ptr , & alloc_msg , error_code , job_submit_user_msg ) ;\n if ( do_unlock ) {\n unlock_slurmctld ( job_write_lock ) ;\n _throttle_fini ( & active_rpc_cnt ) ;\n }\n slurm_msg_t_init ( & response_msg ) ;\n response_msg . conn = msg -> conn ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . msg_type = RESPONSE_RESOURCE_ALLOCATION ;\n response_msg . data = & alloc_msg ;\n if ( slurm_send_node_msg ( msg -> conn_fd , & response_msg ) < 0 ) _kill_job_on_msg_fail ( job_ptr -> job_id ) ;\n schedule_job_save ( ) ;\n schedule_node_save ( ) ;\n if ( ! alloc_msg . node_cnt ) queue_job_scheduler ( ) ;\n alloc_msg . working_cluster_rec = NULL ;\n slurm_free_resource_allocation_response_msg_members ( & alloc_msg ) ;\n }\n else {\n if ( do_unlock ) {\n unlock_slurmctld ( job_write_lock ) ;\n _throttle_fini ( & active_rpc_cnt ) ;\n }\n info ( \"%s: %s \" , __func__ , slurm_strerror ( error_code ) ) ;\n if ( err_msg ) slurm_send_rc_err_msg ( msg , error_code , err_msg ) ;\n else slurm_send_rc_msg ( msg , error_code ) ;\n }\n xfree ( err_msg ) ;\n xfree ( job_submit_user_msg ) ;\n }"}
{"idx": 4988, "target": 0, "func": "static COMMANDS * find_command ( char * name ) {\n uint len ;\n char * end ;\n DBUG_ENTER ( \"find_command\" ) ;\n DBUG_ASSERT ( name != NULL ) ;\n DBUG_PRINT ( \"enter\" , ( \"name: '%s'\" , name ) ) ;\n while ( my_isspace ( charset_info , * name ) ) name ++ ;\n if ( ( ! real_binary_mode && strstr ( name , \"\\\\g\" ) ) || ( strstr ( name , delimiter ) && ! is_delimiter_command ( name , DELIMITER_NAME_LEN ) ) ) DBUG_RETURN ( ( COMMANDS * ) 0 ) ;\n if ( ( end = strcont ( name , \" \\t\" ) ) ) {\n len = ( uint ) ( end - name ) ;\n while ( my_isspace ( charset_info , * end ) ) end ++ ;\n if ( ! * end ) end = 0 ;\n }\n else len = ( uint ) strlen ( name ) ;\n int index = - 1 ;\n if ( real_binary_mode ) {\n if ( is_delimiter_command ( name , len ) ) index = delimiter_index ;\n }\n else {\n for ( uint i = 0 ;\n commands [ i ] . func ;\n i ++ ) {\n if ( ! my_strnncoll ( & my_charset_latin1 , ( uchar * ) name , len , ( uchar * ) commands [ i ] . name , len ) && ( commands [ i ] . name [ len ] == '\\0' ) && ( ! end || ( commands [ i ] . takes_params && get_arg ( name , CHECK ) ) ) ) {\n index = i ;\n break ;\n }\n }\n }\n if ( index >= 0 ) {\n DBUG_PRINT ( \"exit\" , ( \"found command: %s\" , commands [ index ] . name ) ) ;\n DBUG_RETURN ( & commands [ index ] ) ;\n }\n DBUG_RETURN ( ( COMMANDS * ) 0 ) ;\n }"}
{"idx": 4989, "target": 0, "func": "static const char * cmd_audit_log_storage_dir ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = _dcfg ;\n dcfg -> auditlog_storage_dir = ap_server_root_relative ( cmd -> pool , p1 ) ;\n return NULL ;\n }"}
{"idx": 4990, "target": 0, "func": "static void _tiffUnmapProc ( thandle_t fd , void * base , toff_t size ) {\n ( void ) fd ;\n ( void ) size ;\n UnmapViewOfFile ( base ) ;\n }"}
{"idx": 4991, "target": 0, "func": "static int selinux_file_fcntl ( struct file * file , unsigned int cmd , unsigned long arg ) {\n const struct cred * cred = current_cred ( ) ;\n int err = 0 ;\n switch ( cmd ) {\n case F_SETFL : if ( ( file -> f_flags & O_APPEND ) && ! ( arg & O_APPEND ) ) {\n err = file_has_perm ( cred , file , FILE__WRITE ) ;\n break ;\n }\n case F_SETOWN : case F_SETSIG : case F_GETFL : case F_GETOWN : case F_GETSIG : case F_GETOWNER_UIDS : err = file_has_perm ( cred , file , 0 ) ;\n break ;\n case F_GETLK : case F_SETLK : case F_SETLKW : case F_OFD_GETLK : case F_OFD_SETLK : case F_OFD_SETLKW : # if BITS_PER_LONG == 32 case F_GETLK64 : case F_SETLK64 : case F_SETLKW64 : # endif err = file_has_perm ( cred , file , FILE__LOCK ) ;\n break ;\n }\n return err ;\n }"}
{"idx": 4992, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( MimeHandlerViewTest , Embedded ) {\n RunTest ( \"test_embedded.html\" ) ;\n }"}
{"idx": 4993, "target": 0, "func": "static void purple_rem_deny ( struct im_connection * ic , char * who ) {\n struct purple_data * pd = ic -> proto_data ;\n purple_privacy_deny_remove ( pd -> account , who , FALSE ) ;\n }"}
{"idx": 4994, "target": 0, "func": "TSReturnCode TSCacheDataTypeReady ( TSCacheDataType type , int * is_ready ) {\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) is_ready ) == TS_SUCCESS ) ;\n CacheFragType frag_type ;\n switch ( type ) {\n case TS_CACHE_DATA_TYPE_NONE : frag_type = CACHE_FRAG_TYPE_NONE ;\n break ;\n case TS_CACHE_DATA_TYPE_OTHER : case TS_CACHE_DATA_TYPE_HTTP : frag_type = CACHE_FRAG_TYPE_HTTP ;\n break ;\n default : * is_ready = 0 ;\n return TS_ERROR ;\n }\n * is_ready = cacheProcessor . IsCacheReady ( frag_type ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 4995, "target": 0, "func": "static void rd_encode_breakout_test ( VP9_COMP * cpi , MACROBLOCK * x , BLOCK_SIZE bsize , int * rate2 , int64_t * distortion , int64_t * distortion_uv , int * disable_skip ) {\n VP9_COMMON * cm = & cpi -> common ;\n MACROBLOCKD * xd = & x -> e_mbd ;\n const BLOCK_SIZE y_size = get_plane_block_size ( bsize , & xd -> plane [ 0 ] ) ;\n const BLOCK_SIZE uv_size = get_plane_block_size ( bsize , & xd -> plane [ 1 ] ) ;\n unsigned int var , sse ;\n unsigned int thresh_ac ;\n unsigned int thresh_dc ;\n var = cpi -> fn_ptr [ y_size ] . vf ( x -> plane [ 0 ] . src . buf , x -> plane [ 0 ] . src . stride , xd -> plane [ 0 ] . dst . buf , xd -> plane [ 0 ] . dst . stride , & sse ) ;\n if ( x -> encode_breakout > 0 ) {\n const unsigned int max_thresh = ( cpi -> allow_encode_breakout == ENCODE_BREAKOUT_LIMITED ) ? 128 : 36000 ;\n const unsigned int min_thresh = MIN ( ( ( unsigned int ) x -> encode_breakout << 4 ) , max_thresh ) ;\n thresh_ac = ( xd -> plane [ 0 ] . dequant [ 1 ] * xd -> plane [ 0 ] . dequant [ 1 ] ) / 9 ;\n thresh_ac = clamp ( thresh_ac , min_thresh , max_thresh ) ;\n thresh_ac >>= 8 - ( b_width_log2 ( bsize ) + b_height_log2 ( bsize ) ) ;\n thresh_dc = ( xd -> plane [ 0 ] . dequant [ 0 ] * xd -> plane [ 0 ] . dequant [ 0 ] >> 6 ) ;\n }\n else {\n thresh_ac = 0 ;\n thresh_dc = 0 ;\n }\n if ( sse < thresh_ac || sse == 0 ) {\n if ( ( sse - var ) < thresh_dc || sse == var ) {\n unsigned int sse_u , sse_v ;\n unsigned int var_u , var_v ;\n var_u = cpi -> fn_ptr [ uv_size ] . vf ( x -> plane [ 1 ] . src . buf , x -> plane [ 1 ] . src . stride , xd -> plane [ 1 ] . dst . buf , xd -> plane [ 1 ] . dst . stride , & sse_u ) ;\n if ( ( sse_u * 4 < thresh_ac || sse_u == 0 ) && ( sse_u - var_u < thresh_dc || sse_u == var_u ) ) {\n var_v = cpi -> fn_ptr [ uv_size ] . vf ( x -> plane [ 2 ] . src . buf , x -> plane [ 2 ] . src . stride , xd -> plane [ 2 ] . dst . buf , xd -> plane [ 2 ] . dst . stride , & sse_v ) ;\n if ( ( sse_v * 4 < thresh_ac || sse_v == 0 ) && ( sse_v - var_v < thresh_dc || sse_v == var_v ) ) {\n x -> skip = 1 ;\n * rate2 += vp9_cost_bit ( vp9_get_skip_prob ( cm , xd ) , 1 ) ;\n * distortion_uv = ( sse_u + sse_v ) << 4 ;\n * distortion = ( sse << 4 ) + * distortion_uv ;\n * disable_skip = 1 ;\n }\n }\n }\n }\n }"}
{"idx": 4996, "target": 0, "func": "h225ras_call_t * new_h225ras_call ( h225ras_call_info_key * h225ras_call_key , packet_info * pinfo , e_guid_t * guid , int category ) {\n h225ras_call_info_key * new_h225ras_call_key ;\n h225ras_call_t * h225ras_call = NULL ;\n new_h225ras_call_key = wmem_new ( wmem_file_scope ( ) , h225ras_call_info_key ) ;\n new_h225ras_call_key -> reqSeqNum = h225ras_call_key -> reqSeqNum ;\n new_h225ras_call_key -> conversation = h225ras_call_key -> conversation ;\n h225ras_call = wmem_new ( wmem_file_scope ( ) , h225ras_call_t ) ;\n h225ras_call -> req_num = pinfo -> num ;\n h225ras_call -> rsp_num = 0 ;\n h225ras_call -> requestSeqNum = h225ras_call_key -> reqSeqNum ;\n h225ras_call -> responded = FALSE ;\n h225ras_call -> next_call = NULL ;\n h225ras_call -> req_time = pinfo -> abs_ts ;\n h225ras_call -> guid = * guid ;\n g_hash_table_insert ( ras_calls [ category ] , new_h225ras_call_key , h225ras_call ) ;\n return h225ras_call ;\n }"}
{"idx": 4997, "target": 0, "func": "void * jbig2_alloc ( Jbig2Allocator * allocator , size_t size , size_t num ) {\n if ( num > 0 && size >= ( size_t ) - 0x100 / num ) return NULL ;\n return allocator -> alloc ( allocator , size * num ) ;\n }"}
{"idx": 4998, "target": 0, "func": "static PyObject * authGSSServerInit ( PyObject * self , PyObject * args ) {\n const char * service = NULL ;\n gss_server_state * state ;\n PyObject * pystate ;\n int result = 0 ;\n if ( ! PyArg_ParseTuple ( args , \"s\" , & service ) ) return NULL ;\n state = ( gss_server_state * ) malloc ( sizeof ( gss_server_state ) ) ;\n # if PY_MAJOR_VERSION >= 3 pystate = PyCapsule_New ( state , NULL , NULL ) ;\n # else pystate = PyCObject_FromVoidPtr ( state , NULL ) ;\n # endif result = authenticate_gss_server_init ( service , state ) ;\n if ( result == AUTH_GSS_ERROR ) return NULL ;\n return Py_BuildValue ( \"(iO)\" , result , pystate ) ;\n }"}
{"idx": 4999, "target": 0, "func": "static const char * _warc_find_eoh ( const char * buf , size_t bsz ) {\n static const char _marker [ ] = \"\\r\\n\\r\\n\" ;\n const char * hit = xmemmem ( buf , bsz , _marker , sizeof ( _marker ) - 1U ) ;\n if ( hit != NULL ) {\n hit += sizeof ( _marker ) - 1U ;\n }\n return hit ;\n }"}
{"idx": 5000, "target": 0, "func": "TEST_F ( WebFrameSimTest , ScrollFocusedEditableIntoViewNoLayoutObject ) {\n WebView ( ) . Resize ( WebSize ( 500 , 600 ) ) ;\n WebView ( ) . GetPage ( ) -> GetSettings ( ) . SetTextAutosizingEnabled ( false ) ;\n SimRequest r ( \"https://example.com/test.html\" , \"text/html\" ) ;\n LoadURL ( \"https://example.com/test.html\" ) ;\n r . Complete ( R \"HTML( < ! DOCTYPE html > < style > input {\n position : absolute ;\n top : 1000px ;\n left : 800px ;\n }\n @ media ( max - height : 500px ) {\n input {\n display : none ;\n }\n }\n < / style > < input id = \"target\" type = \"text\" > < / input > ) HTML \");\n Compositor ( ) . BeginFrame ( ) ;\n Element * input = GetDocument ( ) . getElementById ( \"target\" ) ;\n input -> focus ( ) ;\n ScrollableArea * area = GetDocument ( ) . View ( ) -> LayoutViewport ( ) ;\n area -> SetScrollOffset ( ScrollOffset ( 0 , 0 ) , kProgrammaticScroll ) ;\n ASSERT_TRUE ( input -> GetLayoutObject ( ) ) ;\n ASSERT_EQ ( input , WebView ( ) . FocusedElement ( ) ) ;\n ASSERT_EQ ( ScrollOffset ( 0 , 0 ) , area -> GetScrollOffset ( ) ) ;\n WebView ( ) . Resize ( WebSize ( 500 , 300 ) ) ;\n ASSERT_FALSE ( input -> GetLayoutObject ( ) ) ;\n ASSERT_EQ ( input , WebView ( ) . FocusedElement ( ) ) ;\n WebFrameWidget * widget = WebView ( ) . MainFrameImpl ( ) -> FrameWidgetImpl ( ) ;\n widget -> ScrollFocusedEditableElementIntoView ( ) ;\n Compositor ( ) . BeginFrame ( ) ;\n EXPECT_EQ ( ScrollOffset ( 0 , 0 ) , area -> GetScrollOffset ( ) ) ;\n }"}
{"idx": 5001, "target": 0, "func": "static uint64_t thd_channel_layout_extract_channel ( uint64_t channel_layout , int index ) {\n int i ;\n if ( av_get_channel_layout_nb_channels ( channel_layout ) <= index ) return 0 ;\n for ( i = 0 ;\n i < FF_ARRAY_ELEMS ( thd_channel_order ) ;\n i ++ ) if ( channel_layout & thd_channel_order [ i ] && ! index -- ) return thd_channel_order [ i ] ;\n return 0 ;\n }"}
{"idx": 5002, "target": 0, "func": "static void dtap_mm_cm_srvc_prompt ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_FALSE ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_COMMON , DE_PD_SAPI , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 5003, "target": 0, "func": "static void make_bands ( int16_t * bands , int start , int stop , int num_bands ) {\n int k , previous , present ;\n float base , prod ;\n base = powf ( ( float ) stop / start , 1.0f / num_bands ) ;\n prod = start ;\n previous = start ;\n for ( k = 0 ;\n k < num_bands - 1 ;\n k ++ ) {\n prod *= base ;\n present = lrintf ( prod ) ;\n bands [ k ] = present - previous ;\n previous = present ;\n }\n bands [ num_bands - 1 ] = stop - previous ;\n }"}
{"idx": 5004, "target": 0, "func": "u_short ctlsysstatus ( void ) {\n register u_char this_clock ;\n this_clock = CTL_SST_TS_UNSPEC ;\n # ifdef REFCLOCK if ( sys_peer != NULL ) {\n if ( CTL_SST_TS_UNSPEC != sys_peer -> sstclktype ) this_clock = sys_peer -> sstclktype ;\n else if ( sys_peer -> refclktype < COUNTOF ( clocktypes ) ) this_clock = clocktypes [ sys_peer -> refclktype ] ;\n }\n # else if ( sys_peer != 0 ) this_clock = CTL_SST_TS_NTP ;\n # endif return CTL_SYS_STATUS ( sys_leap , this_clock , ctl_sys_num_events , ctl_sys_last_event ) ;\n }"}
{"idx": 5005, "target": 0, "func": "static size_t unicode_to_utf16be ( char * p , size_t remaining , uint32_t uc ) {\n char * utf16 = p ;\n if ( uc > 0xffff ) {\n if ( remaining < 4 ) return ( 0 ) ;\n uc -= 0x10000 ;\n archive_be16enc ( utf16 , ( ( uc >> 10 ) & 0x3ff ) + 0xD800 ) ;\n archive_be16enc ( utf16 + 2 , ( uc & 0x3ff ) + 0xDC00 ) ;\n return ( 4 ) ;\n }\n else {\n if ( remaining < 2 ) return ( 0 ) ;\n archive_be16enc ( utf16 , uc ) ;\n return ( 2 ) ;\n }\n }"}
{"idx": 5006, "target": 0, "func": "static void astream_try_base64_decode ( struct attachment_istream_part * part , const unsigned char * data , size_t size ) {\n size_t i ;\n int ret ;\n if ( part -> base64_failed || part -> base64_state == BASE64_STATE_EOM ) return ;\n for ( i = 0 ;\n i < size ;\n i ++ ) {\n ret = astream_try_base64_decode_char ( part , i , ( char ) data [ i ] ) ;\n if ( ret <= 0 ) {\n if ( ret < 0 ) part -> base64_failed = TRUE ;\n break ;\n }\n }\n }"}
{"idx": 5007, "target": 0, "func": "static int dissect_h245_EncryptionCommand ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_EncryptionCommand , EncryptionCommand_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 5008, "target": 0, "func": "static int dissect_h245_T_payloadDescriptor ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_payloadDescriptor , T_payloadDescriptor_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 5009, "target": 1, "func": "int i2d_ ## name ( type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;\n int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DIRECTORYSTRING ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DISPLAYTEXT ) DECLARE_ASN1_FUNCTIONS ( ASN1_PRINTABLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_T61STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_IA5STRING )"}
{"idx": 5010, "target": 0, "func": "static UBool ucnv_outputOverflowToUnicode ( UConverter * cnv , UChar * * target , const UChar * targetLimit , int32_t * * pOffsets , UErrorCode * err ) {\n int32_t * offsets ;\n UChar * overflow , * t ;\n int32_t i , length ;\n t = * target ;\n if ( pOffsets != NULL ) {\n offsets = * pOffsets ;\n }\n else {\n offsets = NULL ;\n }\n overflow = cnv -> UCharErrorBuffer ;\n length = cnv -> UCharErrorBufferLength ;\n i = 0 ;\n while ( i < length ) {\n if ( t == targetLimit ) {\n int32_t j = 0 ;\n do {\n overflow [ j ++ ] = overflow [ i ++ ] ;\n }\n while ( i < length ) ;\n cnv -> UCharErrorBufferLength = ( int8_t ) j ;\n * target = t ;\n if ( offsets != NULL ) {\n * pOffsets = offsets ;\n }\n * err = U_BUFFER_OVERFLOW_ERROR ;\n return TRUE ;\n }\n * t ++ = overflow [ i ++ ] ;\n if ( offsets != NULL ) {\n * offsets ++ = - 1 ;\n }\n }\n cnv -> UCharErrorBufferLength = 0 ;\n * target = t ;\n if ( offsets != NULL ) {\n * pOffsets = offsets ;\n }\n return FALSE ;\n }"}
{"idx": 5011, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize ) ;\n DECL_PIOCTL ( PGetCacheSize ) ;\n DECL_PIOCTL ( PRemoveCallBack ) ;\n DECL_PIOCTL ( PNewCell ) ;\n DECL_PIOCTL ( PNewAlias ) ;\n DECL_PIOCTL ( PListCells ) ;\n DECL_PIOCTL ( PListAliases ) ;\n DECL_PIOCTL ( PRemoveMount ) ;\n DECL_PIOCTL ( PGetCellStatus ) ;\n DECL_PIOCTL ( PSetCellStatus ) ;\n DECL_PIOCTL ( PFlushVolumeData ) ;\n DECL_PIOCTL ( PFlushAllVolumeData ) ;\n DECL_PIOCTL ( PGetVnodeXStatus ) ;\n DECL_PIOCTL ( PGetVnodeXStatus2 ) ;\n DECL_PIOCTL ( PSetSysName ) ;\n DECL_PIOCTL ( PSetSPrefs )"}
{"idx": 5012, "target": 0, "func": "bool start_postmaster ( ClusterInfo * cluster , bool throw_error ) {\n char cmd [ MAXPGPATH * 4 + 1000 ] ;\n PGconn * conn ;\n bool pg_ctl_return = false ;\n char socket_string [ MAXPGPATH + 200 ] ;\n static bool exit_hook_registered = false ;\n if ( ! exit_hook_registered ) {\n atexit ( stop_postmaster_atexit ) ;\n exit_hook_registered = true ;\n }\n socket_string [ 0 ] = '\\0' ;\n # ifdef HAVE_UNIX_SOCKETS strcat ( socket_string , \" -c listen_addresses='' -c unix_socket_permissions=0700\" ) ;\n if ( cluster -> sockdir ) snprintf ( socket_string + strlen ( socket_string ) , sizeof ( socket_string ) - strlen ( socket_string ) , \" -c %s='%s'\" , ( GET_MAJOR_VERSION ( cluster -> major_version ) < 903 ) ? \"unix_socket_directory\" : \"unix_socket_directories\" , cluster -> sockdir ) ;\n # endif snprintf ( cmd , sizeof ( cmd ) , \"\\\"%s/pg_ctl\\\" -w -l \\\"%s\\\" -D \\\"%s\\\" -o \\\"-p %d%s%s %s%s\\\" start\" , cluster -> bindir , SERVER_LOG_FILE , cluster -> pgconfig , cluster -> port , ( cluster -> controldata . cat_ver >= BINARY_UPGRADE_SERVER_FLAG_CAT_VER ) ? \" -b\" : \" -c autovacuum=off -c autovacuum_freeze_max_age=2000000000\" , ( cluster == & new_cluster ) ? \" -c synchronous_commit=off -c fsync=off -c full_page_writes=off\" : \"\" , cluster -> pgopts ? cluster -> pgopts : \"\" , socket_string ) ;\n pg_ctl_return = exec_prog ( SERVER_START_LOG_FILE , ( strcmp ( SERVER_LOG_FILE , SERVER_START_LOG_FILE ) != 0 ) ? SERVER_LOG_FILE : NULL , false , \"%s\" , cmd ) ;\n if ( ! pg_ctl_return && ! throw_error ) return false ;\n if ( pg_ctl_return ) os_info . running_cluster = cluster ;\n if ( ( conn = get_db_conn ( cluster , \"template1\" ) ) == NULL || PQstatus ( conn ) != CONNECTION_OK ) {\n pg_log ( PG_REPORT , \"\\nconnection to database failed: %s\\n\" , PQerrorMessage ( conn ) ) ;\n if ( conn ) PQfinish ( conn ) ;\n pg_fatal ( \"could not connect to %s postmaster started with the command:\\n\" \"%s\\n\" , CLUSTER_NAME ( cluster ) , cmd ) ;\n }\n PQfinish ( conn ) ;\n if ( ! pg_ctl_return ) pg_fatal ( \"pg_ctl failed to start the %s server, or connection failed\\n\" , CLUSTER_NAME ( cluster ) ) ;\n return true ;\n }"}
{"idx": 5013, "target": 0, "func": "GList * completion_get_channels ( SERVER_REC * server , const char * word ) {\n GList * list ;\n GSList * tmp ;\n int len ;\n g_return_val_if_fail ( word != NULL , NULL ) ;\n len = strlen ( word ) ;\n list = NULL ;\n tmp = server == NULL ? NULL : server -> channels ;\n for ( ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n CHANNEL_REC * rec = tmp -> data ;\n if ( g_ascii_strncasecmp ( rec -> visible_name , word , len ) == 0 ) list = g_list_append ( list , g_strdup ( rec -> visible_name ) ) ;\n else if ( g_ascii_strncasecmp ( rec -> name , word , len ) == 0 ) list = g_list_append ( list , g_strdup ( rec -> name ) ) ;\n }\n for ( tmp = setupchannels ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n CHANNEL_SETUP_REC * rec = tmp -> data ;\n if ( g_ascii_strncasecmp ( rec -> name , word , len ) == 0 && glist_find_icase_string ( list , rec -> name ) == NULL ) list = g_list_append ( list , g_strdup ( rec -> name ) ) ;\n }\n return list ;\n }"}
{"idx": 5014, "target": 0, "func": "static void purple_gg_buddylist_import ( PurpleConnection * gc ) {\n struct im_connection * ic = purple_ic_by_gc ( gc ) ;\n if ( set_getstr ( & ic -> acc -> set , \"gg_sync_contacts\" ) ) {\n GList * actions = gc -> prpl -> info -> actions ( gc -> prpl , gc ) ;\n GList * p ;\n for ( p = g_list_first ( actions ) ;\n p ;\n p = p -> next ) {\n if ( ( ( PurplePluginAction * ) p -> data ) && purple_menu_cmp ( ( ( PurplePluginAction * ) p -> data ) -> label , \"Download buddylist from Server\" ) == 0 ) {\n PurplePluginAction action ;\n action . plugin = gc -> prpl ;\n action . context = gc ;\n action . user_data = NULL ;\n ( ( PurplePluginAction * ) p -> data ) -> callback ( & action ) ;\n break ;\n }\n }\n g_list_free ( actions ) ;\n }\n }"}
{"idx": 5015, "target": 0, "func": "static spl_filesystem_object * spl_filesystem_object_create_info ( spl_filesystem_object * source , char * file_path , int file_path_len , int use_copy , zend_class_entry * ce , zval * return_value TSRMLS_DC ) {\n spl_filesystem_object * intern ;\n zval * arg1 ;\n zend_error_handling error_handling ;\n if ( ! file_path || ! file_path_len ) {\n # if defined ( PHP_WIN32 ) zend_throw_exception_ex ( spl_ce_RuntimeException , 0 TSRMLS_CC , \"Cannot create SplFileInfo for empty path\" ) ;\n if ( file_path && ! use_copy ) {\n efree ( file_path ) ;\n }\n # else if ( file_path && ! use_copy ) {\n efree ( file_path ) ;\n }\n file_path_len = 1 ;\n file_path = \"/\" ;\n # endif return NULL ;\n }\n zend_replace_error_handling ( EH_THROW , spl_ce_RuntimeException , & error_handling TSRMLS_CC ) ;\n ce = ce ? ce : source -> info_class ;\n zend_update_class_constants ( ce TSRMLS_CC ) ;\n return_value -> value . obj = spl_filesystem_object_new_ex ( ce , & intern TSRMLS_CC ) ;\n Z_TYPE_P ( return_value ) = IS_OBJECT ;\n if ( ce -> constructor -> common . scope != spl_ce_SplFileInfo ) {\n MAKE_STD_ZVAL ( arg1 ) ;\n ZVAL_STRINGL ( arg1 , file_path , file_path_len , use_copy ) ;\n zend_call_method_with_1_params ( & return_value , ce , & ce -> constructor , \"__construct\" , NULL , arg1 ) ;\n zval_ptr_dtor ( & arg1 ) ;\n }\n else {\n spl_filesystem_info_set_filename ( intern , file_path , file_path_len , use_copy TSRMLS_CC ) ;\n }\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n return intern ;\n }"}
{"idx": 5016, "target": 1, "func": "int BIO_vprintf ( BIO * bio , const char * format , va_list args ) {\n int ret ;\n size_t retlen ;\n char hugebuf [ 1024 * 2 ] ;\n char * hugebufp = hugebuf ;\n size_t hugebufsize = sizeof ( hugebuf ) ;\n char * dynbuf = NULL ;\n int ignored ;\n dynbuf = NULL ;\n CRYPTO_push_info ( \"doapr()\" ) ;\n _dopr ( & hugebufp , & dynbuf , & hugebufsize , & retlen , & ignored , format , args ) ;\n if ( dynbuf ) {\n ret = BIO_write ( bio , dynbuf , ( int ) retlen ) ;\n OPENSSL_free ( dynbuf ) ;\n }\n else {\n ret = BIO_write ( bio , hugebuf , ( int ) retlen ) ;\n }\n CRYPTO_pop_info ( ) ;\n return ( ret ) ;\n }"}
{"idx": 5017, "target": 0, "func": "TEST_F ( NativeBackendLibsecretTest , UpdateNonexistentLogin ) {\n NativeBackendLibsecret backend ( 42 ) ;\n VerifiedAdd ( & backend , form_google_ ) ;\n EXPECT_EQ ( 1u , global_mock_libsecret_items -> size ( ) ) ;\n if ( ! global_mock_libsecret_items -> empty ( ) ) {\n CheckMockSecretItem ( ( * global_mock_libsecret_items ) [ 0 ] , form_google_ , \"chrome-42\" ) ;\n }\n PasswordStoreChangeList changes ;\n EXPECT_TRUE ( backend . UpdateLogin ( form_isc_ , & changes ) ) ;\n CheckPasswordChanges ( PasswordStoreChangeList ( ) , changes ) ;\n EXPECT_EQ ( 1u , global_mock_libsecret_items -> size ( ) ) ;\n if ( ! global_mock_libsecret_items -> empty ( ) ) CheckMockSecretItem ( ( * global_mock_libsecret_items ) [ 0 ] , form_google_ , \"chrome-42\" ) ;\n }"}
{"idx": 5018, "target": 1, "func": "static void sbr_hf_apply_noise_3 ( float ( * Y ) [ 2 ] , const float * s_m , const float * q_filt , int noise , int kx , int m_max ) {\n float phi_sign = 1 - 2 * ( kx & 1 ) ;\n sbr_hf_apply_noise ( Y , s_m , q_filt , noise , 0.0 , - phi_sign , m_max ) ;\n }"}
{"idx": 5019, "target": 0, "func": "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 ) {\n uint8_t comp_pred [ m * n ] ;\n vp9_comp_avg_pred ( comp_pred , second_pred , m , n , ref , ref_stride ) ;\n return sad ( src , src_stride , comp_pred , m , m , n ) ;\n \\ }\n # define sadMxNxK ( m , n , k ) void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 )"}
{"idx": 5020, "target": 1, "func": "static int spl_filesystem_file_is_empty_line ( spl_filesystem_object * intern TSRMLS_DC ) {\n if ( intern -> u . file . current_line ) {\n return intern -> u . file . current_line_len == 0 ;\n }\n else if ( intern -> u . file . current_zval ) {\n switch ( Z_TYPE_P ( intern -> u . file . current_zval ) ) {\n case IS_STRING : return Z_STRLEN_P ( intern -> u . file . current_zval ) == 0 ;\n case IS_ARRAY : if ( SPL_HAS_FLAG ( intern -> flags , SPL_FILE_OBJECT_READ_CSV ) && zend_hash_num_elements ( Z_ARRVAL_P ( intern -> u . file . current_zval ) ) == 1 ) {\n zval * * first = Z_ARRVAL_P ( intern -> u . file . current_zval ) -> pListHead -> pData ;\n return Z_TYPE_PP ( first ) == IS_STRING && Z_STRLEN_PP ( first ) == 0 ;\n }\n return zend_hash_num_elements ( Z_ARRVAL_P ( intern -> u . file . current_zval ) ) == 0 ;\n case IS_NULL : return 1 ;\n default : return 0 ;\n }\n }\n else {\n return 1 ;\n }\n }"}
{"idx": 5021, "target": 0, "func": "void WriteHead ( ArchiveHandle * AH ) {\n struct tm crtm ;\n ( * AH -> WriteBufPtr ) ( AH , \"PGDMP\" , 5 ) ;\n ( * AH -> WriteBytePtr ) ( AH , AH -> vmaj ) ;\n ( * AH -> WriteBytePtr ) ( AH , AH -> vmin ) ;\n ( * AH -> WriteBytePtr ) ( AH , AH -> vrev ) ;\n ( * AH -> WriteBytePtr ) ( AH , AH -> intSize ) ;\n ( * AH -> WriteBytePtr ) ( AH , AH -> offSize ) ;\n ( * AH -> WriteBytePtr ) ( AH , AH -> format ) ;\n WriteInt ( AH , AH -> compression ) ;\n crtm = * localtime ( & AH -> createDate ) ;\n WriteInt ( AH , crtm . tm_sec ) ;\n WriteInt ( AH , crtm . tm_min ) ;\n WriteInt ( AH , crtm . tm_hour ) ;\n WriteInt ( AH , crtm . tm_mday ) ;\n WriteInt ( AH , crtm . tm_mon ) ;\n WriteInt ( AH , crtm . tm_year ) ;\n WriteInt ( AH , crtm . tm_isdst ) ;\n WriteStr ( AH , PQdb ( AH -> connection ) ) ;\n WriteStr ( AH , AH -> public . remoteVersionStr ) ;\n WriteStr ( AH , PG_VERSION ) ;\n }"}
{"idx": 5022, "target": 0, "func": "static inline void get_grantor ( THD * thd , char * grantor ) {\n const char * user = thd -> security_ctx -> user ;\n const char * host = thd -> security_ctx -> host_or_ip ;\n # if defined ( HAVE_REPLICATION ) if ( thd -> slave_thread && thd -> has_invoker ( ) ) {\n user = thd -> get_invoker_user ( ) . str ;\n host = thd -> get_invoker_host ( ) . str ;\n }\n # endif strxmov ( grantor , user , \"@\" , host , NullS ) ;\n }"}
{"idx": 5023, "target": 0, "func": "static void nlm_msg_res_unmatched_value_destroy ( gpointer value ) {\n nlm_msg_res_unmatched_data * umd = ( nlm_msg_res_unmatched_data * ) value ;\n wmem_free ( NULL , ( gpointer ) umd -> cookie ) ;\n g_free ( umd ) ;\n }"}
{"idx": 5024, "target": 0, "func": "unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 ) VAR ( 8 , 4 ) SUBPIX_VAR ( 8 , 4 ) SUBPIX_AVG_VAR ( 8 , 4 ) VAR ( 8 , 8 ) SUBPIX_VAR ( 8 , 8 ) SUBPIX_AVG_VAR ( 8 , 8 ) VAR ( 8 , 16 ) SUBPIX_VAR ( 8 , 16 ) SUBPIX_AVG_VAR ( 8 , 16 ) VAR ( 16 , 8 ) SUBPIX_VAR ( 16 , 8 ) SUBPIX_AVG_VAR ( 16 , 8 ) VAR ( 16 , 16 ) SUBPIX_VAR ( 16 , 16 ) SUBPIX_AVG_VAR ( 16 , 16 ) VAR ( 16 , 32 ) SUBPIX_VAR ( 16 , 32 ) SUBPIX_AVG_VAR ( 16 , 32 ) VAR ( 32 , 16 ) SUBPIX_VAR ( 32 , 16 ) SUBPIX_AVG_VAR ( 32 , 16 ) VAR ( 32 , 32 ) SUBPIX_VAR ( 32 , 32 ) SUBPIX_AVG_VAR ( 32 , 32 ) VAR ( 32 , 64 ) SUBPIX_VAR ( 32 , 64 ) SUBPIX_AVG_VAR ( 32 , 64 ) VAR ( 64 , 32 ) SUBPIX_VAR ( 64 , 32 ) SUBPIX_AVG_VAR ( 64 , 32 ) VAR ( 64 , 64 ) SUBPIX_VAR ( 64 , 64 ) SUBPIX_AVG_VAR ( 64 , 64 )"}
{"idx": 5025, "target": 1, "func": "static int shorten_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n ShortenContext * s = avctx -> priv_data ;\n int i , input_buf_size = 0 ;\n int ret ;\n if ( s -> max_framesize == 0 ) {\n void * tmp_ptr ;\n s -> max_framesize = 1024 ;\n tmp_ptr = av_fast_realloc ( s -> bitstream , & s -> allocated_bitstream_size , s -> max_framesize ) ;\n if ( ! tmp_ptr ) {\n av_log ( avctx , AV_LOG_ERROR , \"error allocating bitstream buffer\\n\" ) ;\n return AVERROR ( ENOMEM ) ;\n }\n s -> bitstream = tmp_ptr ;\n }\n if ( 1 && s -> max_framesize ) {\n buf_size = FFMIN ( buf_size , s -> max_framesize - s -> bitstream_size ) ;\n input_buf_size = buf_size ;\n if ( s -> bitstream_index + s -> bitstream_size + buf_size > s -> allocated_bitstream_size ) {\n memmove ( s -> bitstream , & s -> bitstream [ s -> bitstream_index ] , s -> bitstream_size ) ;\n s -> bitstream_index = 0 ;\n }\n if ( buf ) memcpy ( & s -> bitstream [ s -> bitstream_index + s -> bitstream_size ] , buf , buf_size ) ;\n buf = & s -> bitstream [ s -> bitstream_index ] ;\n buf_size += s -> bitstream_size ;\n s -> bitstream_size = buf_size ;\n if ( buf_size < s -> max_framesize && avpkt -> data ) {\n * got_frame_ptr = 0 ;\n return input_buf_size ;\n }\n }\n init_get_bits ( & s -> gb , buf , buf_size * 8 ) ;\n skip_bits ( & s -> gb , s -> bitindex ) ;\n if ( ! s -> got_header ) {\n if ( ( ret = read_header ( s ) ) < 0 ) return ret ;\n * got_frame_ptr = 0 ;\n goto finish_frame ;\n }\n if ( s -> got_quit_command ) {\n * got_frame_ptr = 0 ;\n return avpkt -> size ;\n }\n s -> cur_chan = 0 ;\n while ( s -> cur_chan < s -> channels ) {\n unsigned cmd ;\n int len ;\n if ( get_bits_left ( & s -> gb ) < 3 + FNSIZE ) {\n * got_frame_ptr = 0 ;\n break ;\n }\n cmd = get_ur_golomb_shorten ( & s -> gb , FNSIZE ) ;\n if ( cmd > FN_VERBATIM ) {\n av_log ( avctx , AV_LOG_ERROR , \"unknown shorten function %d\\n\" , cmd ) ;\n * got_frame_ptr = 0 ;\n break ;\n }\n if ( ! is_audio_command [ cmd ] ) {\n switch ( cmd ) {\n case FN_VERBATIM : len = get_ur_golomb_shorten ( & s -> gb , VERBATIM_CKSIZE_SIZE ) ;\n while ( len -- ) get_ur_golomb_shorten ( & s -> gb , VERBATIM_BYTE_SIZE ) ;\n break ;\n case FN_BITSHIFT : s -> bitshift = get_ur_golomb_shorten ( & s -> gb , BITSHIFTSIZE ) ;\n break ;\n case FN_BLOCKSIZE : {\n unsigned blocksize = get_uint ( s , av_log2 ( s -> blocksize ) ) ;\n if ( blocksize > s -> blocksize ) {\n av_log ( avctx , AV_LOG_ERROR , \"Increasing block size is not supported\\n\" ) ;\n return AVERROR_PATCHWELCOME ;\n }\n if ( ! blocksize || blocksize > MAX_BLOCKSIZE ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid or unsupported \" \"block size: %d\\n\" , blocksize ) ;\n return AVERROR ( EINVAL ) ;\n }\n s -> blocksize = blocksize ;\n break ;\n }\n case FN_QUIT : s -> got_quit_command = 1 ;\n break ;\n }\n if ( cmd == FN_BLOCKSIZE || cmd == FN_QUIT ) {\n * got_frame_ptr = 0 ;\n break ;\n }\n }\n else {\n int residual_size = 0 ;\n int channel = s -> cur_chan ;\n int32_t coffset ;\n if ( cmd != FN_ZERO ) {\n residual_size = get_ur_golomb_shorten ( & s -> gb , ENERGYSIZE ) ;\n if ( s -> version == 0 ) residual_size -- ;\n }\n if ( s -> nmean == 0 ) coffset = s -> offset [ channel ] [ 0 ] ;\n else {\n int32_t sum = ( s -> version < 2 ) ? 0 : s -> nmean / 2 ;\n for ( i = 0 ;\n i < s -> nmean ;\n i ++ ) sum += s -> offset [ channel ] [ i ] ;\n coffset = sum / s -> nmean ;\n if ( s -> version >= 2 ) coffset >>= FFMIN ( 1 , s -> bitshift ) ;\n }\n if ( cmd == FN_ZERO ) {\n for ( i = 0 ;\n i < s -> blocksize ;\n i ++ ) s -> decoded [ channel ] [ i ] = 0 ;\n }\n else {\n if ( ( ret = decode_subframe_lpc ( s , cmd , channel , residual_size , coffset ) ) < 0 ) return ret ;\n }\n if ( s -> nmean > 0 ) {\n int32_t sum = ( s -> version < 2 ) ? 0 : s -> blocksize / 2 ;\n for ( i = 0 ;\n i < s -> blocksize ;\n i ++ ) sum += s -> decoded [ channel ] [ i ] ;\n for ( i = 1 ;\n i < s -> nmean ;\n i ++ ) s -> offset [ channel ] [ i - 1 ] = s -> offset [ channel ] [ i ] ;\n if ( s -> version < 2 ) s -> offset [ channel ] [ s -> nmean - 1 ] = sum / s -> blocksize ;\n else s -> offset [ channel ] [ s -> nmean - 1 ] = ( sum / s -> blocksize ) << s -> bitshift ;\n }\n for ( i = - s -> nwrap ;\n i < 0 ;\n i ++ ) s -> decoded [ channel ] [ i ] = s -> decoded [ channel ] [ i + s -> blocksize ] ;\n fix_bitshift ( s , s -> decoded [ channel ] ) ;\n s -> cur_chan ++ ;\n if ( s -> cur_chan == s -> channels ) {\n frame -> nb_samples = s -> blocksize ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n output_buffer ( ( int16_t * * ) frame -> extended_data , s -> channels , s -> blocksize , s -> decoded ) ;\n * got_frame_ptr = 1 ;\n }\n }\n }\n if ( s -> cur_chan < s -> channels ) * got_frame_ptr = 0 ;\n finish_frame : s -> bitindex = get_bits_count ( & s -> gb ) - 8 * ( get_bits_count ( & s -> gb ) / 8 ) ;\n i = get_bits_count ( & s -> gb ) / 8 ;\n if ( i > buf_size ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"overread: %d\\n\" , i - buf_size ) ;\n s -> bitstream_size = 0 ;\n s -> bitstream_index = 0 ;\n return AVERROR_INVALIDDATA ;\n }\n if ( s -> bitstream_size ) {\n s -> bitstream_index += i ;\n s -> bitstream_size -= i ;\n return input_buf_size ;\n }\n else return i ;\n }"}
{"idx": 5026, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( DownloadNotificationTest , SimultaneousIncognitoAndNormalDownloads ) {\n PrepareIncognitoBrowser ( ) ;\n GURL url_incognito ( net : : URLRequestSlowDownloadJob : : kUnknownSizeUrl ) ;\n GURL url_normal ( net : : URLRequestSlowDownloadJob : : kKnownSizeUrl ) ;\n ui_test_utils : : NavigateToURL ( incognito_browser ( ) , url_incognito ) ;\n WaitForDownloadNotification ( incognito_browser ( ) ) ;\n auto incognito_notifications = incognito_display_service_ -> GetDisplayedNotificationsForType ( NotificationHandler : : Type : : TRANSIENT ) ;\n ASSERT_EQ ( 1u , incognito_notifications . size ( ) ) ;\n std : : string notification_id1 = incognito_notifications [ 0 ] . id ( ) ;\n EXPECT_FALSE ( notification_id1 . empty ( ) ) ;\n std : : vector < download : : DownloadItem * > downloads ;\n GetDownloadManager ( browser ( ) ) -> GetAllDownloads ( & downloads ) ;\n EXPECT_EQ ( 0u , downloads . size ( ) ) ;\n downloads . clear ( ) ;\n GetDownloadManager ( incognito_browser ( ) ) -> GetAllDownloads ( & downloads ) ;\n EXPECT_EQ ( 1u , downloads . size ( ) ) ;\n download : : DownloadItem * download_incognito = downloads [ 0 ] ;\n ui_test_utils : : NavigateToURL ( browser ( ) , url_normal ) ;\n WaitForDownloadNotification ( ) ;\n auto normal_notifications = GetDownloadNotifications ( ) ;\n ASSERT_EQ ( 1u , normal_notifications . size ( ) ) ;\n std : : string notification_id2 = normal_notifications [ 0 ] . id ( ) ;\n EXPECT_FALSE ( notification_id2 . empty ( ) ) ;\n downloads . clear ( ) ;\n GetDownloadManager ( browser ( ) ) -> GetAllDownloads ( & downloads ) ;\n download : : DownloadItem * download_normal = downloads [ 0 ] ;\n EXPECT_EQ ( 1u , downloads . size ( ) ) ;\n EXPECT_NE ( download_normal , download_incognito ) ;\n downloads . clear ( ) ;\n GetDownloadManager ( incognito_browser ( ) ) -> GetAllDownloads ( & downloads ) ;\n EXPECT_EQ ( 1u , downloads . size ( ) ) ;\n EXPECT_EQ ( download_incognito , downloads [ 0 ] ) ;\n auto incognito_notification = incognito_display_service_ -> GetNotification ( notification_id1 ) ;\n ASSERT_TRUE ( incognito_notification ) ;\n EXPECT_EQ ( message_center : : NOTIFICATION_TYPE_PROGRESS , incognito_notification -> type ( ) ) ;\n EXPECT_EQ ( - 1 , incognito_notification -> progress ( ) ) ;\n auto normal_notification = display_service_ -> GetNotification ( notification_id2 ) ;\n ASSERT_TRUE ( normal_notification ) ;\n EXPECT_EQ ( message_center : : NOTIFICATION_TYPE_PROGRESS , normal_notification -> type ( ) ) ;\n EXPECT_LE ( 0 , normal_notification -> progress ( ) ) ;\n EXPECT_TRUE ( content : : DownloadItemUtils : : GetBrowserContext ( download_incognito ) -> IsOffTheRecord ( ) ) ;\n EXPECT_FALSE ( content : : DownloadItemUtils : : GetBrowserContext ( download_normal ) -> IsOffTheRecord ( ) ) ;\n CompleteTheDownload ( ) ;\n incognito_notification = incognito_display_service_ -> GetNotification ( notification_id1 ) ;\n EXPECT_EQ ( message_center : : NOTIFICATION_TYPE_BASE_FORMAT , incognito_notification -> type ( ) ) ;\n normal_notification = display_service_ -> GetNotification ( notification_id2 ) ;\n EXPECT_EQ ( message_center : : NOTIFICATION_TYPE_BASE_FORMAT , normal_notification -> type ( ) ) ;\n chrome : : CloseWindow ( incognito_browser ( ) ) ;\n }"}
{"idx": 5027, "target": 0, "func": "static const SSL_METHOD * dtls1_get_server_method ( int ver ) {\n if ( ver == DTLS1_VERSION ) return ( DTLSv1_server_method ( ) ) ;\n else return ( NULL ) ;\n }"}
{"idx": 5028, "target": 0, "func": "void TSHttpTxnParentProxySet ( TSHttpTxn txnp , const char * hostname , int port ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) hostname ) == TS_SUCCESS ) ;\n sdk_assert ( port > 0 ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n sm -> t_state . api_info . parent_proxy_name = sm -> t_state . arena . str_store ( hostname , strlen ( hostname ) ) ;\n sm -> t_state . api_info . parent_proxy_port = port ;\n }"}
{"idx": 5029, "target": 0, "func": "bool contain_window_function ( Node * clause ) {\n return contain_windowfuncs ( clause ) ;\n }"}
{"idx": 5030, "target": 0, "func": "static teReqs _tocEntryRequired ( TocEntry * te , teSection curSection , RestoreOptions * ropt ) {\n teReqs res = REQ_SCHEMA | REQ_DATA ;\n if ( strcmp ( te -> desc , \"ENCODING\" ) == 0 || strcmp ( te -> desc , \"STDSTRINGS\" ) == 0 ) return REQ_SPECIAL ;\n if ( ropt -> aclsSkip && _tocEntryIsACL ( te ) ) return 0 ;\n if ( ropt -> no_security_labels && strcmp ( te -> desc , \"SECURITY LABEL\" ) == 0 ) return 0 ;\n switch ( curSection ) {\n case SECTION_PRE_DATA : if ( ! ( ropt -> dumpSections & DUMP_PRE_DATA ) ) return 0 ;\n break ;\n case SECTION_DATA : if ( ! ( ropt -> dumpSections & DUMP_DATA ) ) return 0 ;\n break ;\n case SECTION_POST_DATA : if ( ! ( ropt -> dumpSections & DUMP_POST_DATA ) ) return 0 ;\n break ;\n default : return 0 ;\n }\n if ( ropt -> schemaNames . head != NULL ) {\n if ( ! te -> namespace ) return 0 ;\n if ( ! ( simple_string_list_member ( & ropt -> schemaNames , te -> namespace ) ) ) return 0 ;\n }\n if ( ropt -> selTypes ) {\n if ( strcmp ( te -> desc , \"TABLE\" ) == 0 || strcmp ( te -> desc , \"TABLE DATA\" ) == 0 || strcmp ( te -> desc , \"VIEW\" ) == 0 || strcmp ( te -> desc , \"FOREIGN TABLE\" ) == 0 || strcmp ( te -> desc , \"MATERIALIZED VIEW\" ) == 0 || strcmp ( te -> desc , \"MATERIALIZED VIEW DATA\" ) == 0 || strcmp ( te -> desc , \"SEQUENCE\" ) == 0 || strcmp ( te -> desc , \"SEQUENCE SET\" ) == 0 ) {\n if ( ! ropt -> selTable ) return 0 ;\n if ( ropt -> tableNames . head != NULL && ( ! ( simple_string_list_member ( & ropt -> tableNames , te -> tag ) ) ) ) return 0 ;\n }\n else if ( strcmp ( te -> desc , \"INDEX\" ) == 0 ) {\n if ( ! ropt -> selIndex ) return 0 ;\n if ( ropt -> indexNames . head != NULL && ( ! ( simple_string_list_member ( & ropt -> indexNames , te -> tag ) ) ) ) return 0 ;\n }\n else if ( strcmp ( te -> desc , \"FUNCTION\" ) == 0 ) {\n if ( ! ropt -> selFunction ) return 0 ;\n if ( ropt -> functionNames . head != NULL && ( ! ( simple_string_list_member ( & ropt -> functionNames , te -> tag ) ) ) ) return 0 ;\n }\n else if ( strcmp ( te -> desc , \"TRIGGER\" ) == 0 ) {\n if ( ! ropt -> selTrigger ) return 0 ;\n if ( ropt -> triggerNames . head != NULL && ( ! ( simple_string_list_member ( & ropt -> triggerNames , te -> tag ) ) ) ) return 0 ;\n }\n else return 0 ;\n }\n if ( ! te -> hadDumper ) {\n if ( strcmp ( te -> desc , \"SEQUENCE SET\" ) == 0 || strcmp ( te -> desc , \"BLOB\" ) == 0 || ( strcmp ( te -> desc , \"ACL\" ) == 0 && strncmp ( te -> tag , \"LARGE OBJECT \" , 13 ) == 0 ) || ( strcmp ( te -> desc , \"COMMENT\" ) == 0 && strncmp ( te -> tag , \"LARGE OBJECT \" , 13 ) == 0 ) || ( strcmp ( te -> desc , \"SECURITY LABEL\" ) == 0 && strncmp ( te -> tag , \"LARGE OBJECT \" , 13 ) == 0 ) ) res = res & REQ_DATA ;\n else res = res & ~ REQ_DATA ;\n }\n if ( ( strcmp ( te -> desc , \"<Init>\" ) == 0 ) && ( strcmp ( te -> tag , \"Max OID\" ) == 0 ) ) return 0 ;\n if ( ropt -> schemaOnly ) res = res & REQ_SCHEMA ;\n if ( ropt -> dataOnly ) res = res & REQ_DATA ;\n if ( ! te -> defn || strlen ( te -> defn ) == 0 ) res = res & ~ REQ_SCHEMA ;\n if ( ropt -> idWanted && ! ropt -> idWanted [ te -> dumpId - 1 ] ) return 0 ;\n return res ;\n }"}
{"idx": 5031, "target": 0, "func": "static void sbr_hf_gen_c ( float ( * X_high ) [ 2 ] , const float ( * X_low ) [ 2 ] , const float alpha0 [ 2 ] , const float alpha1 [ 2 ] , float bw , int start , int end ) {\n float alpha [ 4 ] ;\n int i ;\n alpha [ 0 ] = alpha1 [ 0 ] * bw * bw ;\n alpha [ 1 ] = alpha1 [ 1 ] * bw * bw ;\n alpha [ 2 ] = alpha0 [ 0 ] * bw ;\n alpha [ 3 ] = alpha0 [ 1 ] * bw ;\n for ( i = start ;\n i < end ;\n i ++ ) {\n X_high [ i ] [ 0 ] = X_low [ i - 2 ] [ 0 ] * alpha [ 0 ] - X_low [ i - 2 ] [ 1 ] * alpha [ 1 ] + X_low [ i - 1 ] [ 0 ] * alpha [ 2 ] - X_low [ i - 1 ] [ 1 ] * alpha [ 3 ] + X_low [ i ] [ 0 ] ;\n X_high [ i ] [ 1 ] = X_low [ i - 2 ] [ 1 ] * alpha [ 0 ] + X_low [ i - 2 ] [ 0 ] * alpha [ 1 ] + X_low [ i - 1 ] [ 1 ] * alpha [ 2 ] + X_low [ i - 1 ] [ 0 ] * alpha [ 3 ] + X_low [ i ] [ 1 ] ;\n }\n }"}
{"idx": 5032, "target": 0, "func": "static int push_execstack ( i_ctx_t * i_ctx_p , os_ptr op1 , bool include_marks , op_proc_t cont ) {\n uint size ;\n uint depth ;\n if ( ! r_is_array ( op1 ) ) return_op_typecheck ( op1 ) ;\n size = r_size ( op1 ) ;\n depth = count_exec_stack ( i_ctx_p , include_marks ) ;\n if ( depth > size ) return_error ( gs_error_rangecheck ) ;\n check_write ( * op1 ) ;\n {\n int code = ref_stack_store_check ( & e_stack , op1 , size , 0 ) ;\n if ( code < 0 ) return code ;\n }\n check_estack ( 1 ) ;\n r_set_size ( op1 , depth ) ;\n push_op_estack ( cont ) ;\n return o_push_estack ;\n }"}
{"idx": 5033, "target": 0, "func": "static void openpic_summary_write ( void * opaque , hwaddr addr , uint64_t val , unsigned size ) {\n DPRINTF ( \"%s: addr %#\" HWADDR_PRIx \" <= 0x%08\" PRIx64 \"\\n\" , __func__ , addr , val ) ;\n }"}
{"idx": 5034, "target": 0, "func": "static Relids find_nonnullable_rels_walker ( Node * node , bool top_level ) {\n Relids result = NULL ;\n ListCell * l ;\n if ( node == NULL ) return NULL ;\n if ( IsA ( node , Var ) ) {\n Var * var = ( Var * ) node ;\n if ( var -> varlevelsup == 0 ) result = bms_make_singleton ( var -> varno ) ;\n }\n else if ( IsA ( node , List ) ) {\n foreach ( l , ( List * ) node ) {\n result = bms_join ( result , find_nonnullable_rels_walker ( lfirst ( l ) , top_level ) ) ;\n }\n }\n else if ( IsA ( node , FuncExpr ) ) {\n FuncExpr * expr = ( FuncExpr * ) node ;\n if ( func_strict ( expr -> funcid ) ) result = find_nonnullable_rels_walker ( ( Node * ) expr -> args , false ) ;\n }\n else if ( IsA ( node , OpExpr ) ) {\n OpExpr * expr = ( OpExpr * ) node ;\n set_opfuncid ( expr ) ;\n if ( func_strict ( expr -> opfuncid ) ) result = find_nonnullable_rels_walker ( ( Node * ) expr -> args , false ) ;\n }\n else if ( IsA ( node , ScalarArrayOpExpr ) ) {\n ScalarArrayOpExpr * expr = ( ScalarArrayOpExpr * ) node ;\n if ( is_strict_saop ( expr , true ) ) result = find_nonnullable_rels_walker ( ( Node * ) expr -> args , false ) ;\n }\n else if ( IsA ( node , BoolExpr ) ) {\n BoolExpr * expr = ( BoolExpr * ) node ;\n switch ( expr -> boolop ) {\n case AND_EXPR : if ( top_level ) {\n result = find_nonnullable_rels_walker ( ( Node * ) expr -> args , top_level ) ;\n break ;\n }\n case OR_EXPR : foreach ( l , expr -> args ) {\n Relids subresult ;\n subresult = find_nonnullable_rels_walker ( lfirst ( l ) , top_level ) ;\n if ( result == NULL ) result = subresult ;\n else result = bms_int_members ( result , subresult ) ;\n if ( bms_is_empty ( result ) ) break ;\n }\n break ;\n case NOT_EXPR : result = find_nonnullable_rels_walker ( ( Node * ) expr -> args , false ) ;\n break ;\n default : elog ( ERROR , \"unrecognized boolop: %d\" , ( int ) expr -> boolop ) ;\n break ;\n }\n }\n else if ( IsA ( node , RelabelType ) ) {\n RelabelType * expr = ( RelabelType * ) node ;\n result = find_nonnullable_rels_walker ( ( Node * ) expr -> arg , top_level ) ;\n }\n else if ( IsA ( node , CoerceViaIO ) ) {\n CoerceViaIO * expr = ( CoerceViaIO * ) node ;\n result = find_nonnullable_rels_walker ( ( Node * ) expr -> arg , top_level ) ;\n }\n else if ( IsA ( node , ArrayCoerceExpr ) ) {\n ArrayCoerceExpr * expr = ( ArrayCoerceExpr * ) node ;\n result = find_nonnullable_rels_walker ( ( Node * ) expr -> arg , top_level ) ;\n }\n else if ( IsA ( node , ConvertRowtypeExpr ) ) {\n ConvertRowtypeExpr * expr = ( ConvertRowtypeExpr * ) node ;\n result = find_nonnullable_rels_walker ( ( Node * ) expr -> arg , top_level ) ;\n }\n else if ( IsA ( node , CollateExpr ) ) {\n CollateExpr * expr = ( CollateExpr * ) node ;\n result = find_nonnullable_rels_walker ( ( Node * ) expr -> arg , top_level ) ;\n }\n else if ( IsA ( node , NullTest ) ) {\n NullTest * expr = ( NullTest * ) node ;\n if ( top_level && expr -> nulltesttype == IS_NOT_NULL && ! expr -> argisrow ) result = find_nonnullable_rels_walker ( ( Node * ) expr -> arg , false ) ;\n }\n else if ( IsA ( node , BooleanTest ) ) {\n BooleanTest * expr = ( BooleanTest * ) node ;\n if ( top_level && ( expr -> booltesttype == IS_TRUE || expr -> booltesttype == IS_FALSE || expr -> booltesttype == IS_NOT_UNKNOWN ) ) result = find_nonnullable_rels_walker ( ( Node * ) expr -> arg , false ) ;\n }\n else if ( IsA ( node , PlaceHolderVar ) ) {\n PlaceHolderVar * phv = ( PlaceHolderVar * ) node ;\n result = find_nonnullable_rels_walker ( ( Node * ) phv -> phexpr , top_level ) ;\n }\n return result ;\n }"}
{"idx": 5035, "target": 0, "func": "int mime_parse_integer ( const char * & buf , const char * end , int * integer ) {\n int val ;\n bool negative ;\n negative = false ;\n while ( ( buf != end ) && * buf && ! is_digit ( * buf ) && ( * buf != '-' ) ) {\n buf += 1 ;\n }\n if ( ( buf == end ) || ( * buf == '\\0' ) ) {\n return 0 ;\n }\n if ( * buf == '-' ) {\n negative = true ;\n buf += 1 ;\n }\n val = 0 ;\n while ( ( buf != end ) && is_digit ( * buf ) ) {\n val = ( val * 10 ) + ( * buf ++ - '0' ) ;\n }\n if ( negative ) {\n * integer = - val ;\n }\n else {\n * integer = val ;\n }\n return 1 ;\n }"}
{"idx": 5036, "target": 0, "func": "static __inline__ int TLV_CHECK ( const void * tlv , __u16 space , __u16 exp_type ) {\n return TLV_OK ( tlv , space ) && ( ntohs ( ( ( struct tlv_desc * ) tlv ) -> tlv_type ) == exp_type ) ;\n }"}
{"idx": 5037, "target": 0, "func": "static const char * hf_try_val_to_str ( guint32 value , const header_field_info * hfinfo ) {\n if ( hfinfo -> display & BASE_RANGE_STRING ) return try_rval_to_str ( value , ( const range_string * ) hfinfo -> strings ) ;\n if ( hfinfo -> display & BASE_EXT_STRING ) return try_val_to_str_ext ( value , ( value_string_ext * ) hfinfo -> strings ) ;\n if ( hfinfo -> display & BASE_VAL64_STRING ) return try_val64_to_str ( value , ( const val64_string * ) hfinfo -> strings ) ;\n return try_val_to_str ( value , ( const value_string * ) hfinfo -> strings ) ;\n }"}
{"idx": 5038, "target": 0, "func": "int crypto_encrypt_and_sign ( struct crypto_instance * instance , const unsigned char * buf_in , const size_t buf_in_len , unsigned char * buf_out , size_t * buf_out_len ) {\n struct crypto_config_header * cch = ( struct crypto_config_header * ) buf_out ;\n int err ;\n cch -> crypto_cipher_type = CRYPTO_CIPHER_TYPE_2_3 ;\n cch -> crypto_hash_type = CRYPTO_HASH_TYPE_2_3 ;\n cch -> __pad0 = 0 ;\n cch -> __pad1 = 0 ;\n err = encrypt_and_sign_nss_2_3 ( instance , buf_in , buf_in_len , buf_out , buf_out_len ) ;\n return err ;\n }"}
{"idx": 5039, "target": 0, "func": "int i2d_ ## name ( type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;\n int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DIRECTORYSTRING ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DISPLAYTEXT )"}
{"idx": 5040, "target": 1, "func": "void proto_register_umts_mac ( void ) {\n module_t * mac_module ;\n static gint * ett [ ] = {\n & 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 }\n ;\n static hf_register_info hf [ ] = {\n {\n & hf_mac_rach_fdd_tctf , {\n \"Target Channel Type Field\" , \"mac.tctf\" , FT_UINT8 , BASE_HEX , VALS ( rach_fdd_tctf_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_mac_fach_fdd_tctf , {\n \"Target Channel Type Field\" , \"mac.tctf\" , FT_UINT8 , BASE_HEX , VALS ( fach_fdd_tctf_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_mac_ct , {\n \"C/T\" , \"mac.ct\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mac_ueid_type , {\n \"UEID Type\" , \"mac.ueid_type\" , FT_UINT8 , BASE_DEC , VALS ( ueid_type_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_mac_crnti , {\n \"C-RNTI (UEID)\" , \"mac.ueid\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_mac_urnti , {\n \"U-RNTI (UEID)\" , \"mac.ueid\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_mac_channel , {\n \"Logical Channel Type\" , \"mac.logical_channel\" , FT_UINT16 , BASE_DEC , VALS ( mac_logical_channel_vals ) , 0 , NULL , HFILL }\n }\n , # if 0 {\n & hf_mac_channel_str , {\n \"Logical Channel\" , \"mac.logical_channel\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , # endif # if 0 {\n & hf_mac_channel_hsdsch , {\n \"MACd-FlowID\" , \"mac.macd_flowid\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , # endif {\n & hf_mac_macdflowd_id , {\n \"MACd-FlowID\" , \"mac.macd_flowid\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_mac_lch_id , {\n \"Logical Channel ID\" , \"mac.logical_channel_id\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_mac_trch_id , {\n \"Transport Channel ID\" , \"mac.transport_channel_id\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , # if 0 {\n & hf_mac_edch_type2_descriptors , {\n \"MAC-is Descriptors\" , \"mac.edch.type2.descriptors\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , # endif # if 0 {\n & hf_mac_edch_type2_lchid , {\n \"LCH-ID\" , \"mac.logical_channel_id\" , FT_UINT8 , BASE_HEX , NULL , 0xf0 , NULL , HFILL }\n }\n , # endif # if 0 {\n & hf_mac_edch_type2_length , {\n \"Length\" , \"mac.edch.type2.length\" , FT_UINT16 , BASE_DEC , NULL , 0x0ffe , NULL , HFILL }\n }\n , # endif # if 0 {\n & hf_mac_edch_type2_flag , {\n \"Flag\" , \"mac.edch.type2.lchid\" , FT_UINT8 , BASE_HEX , NULL , 0x01 , \"Indicates if another entry follows\" , HFILL }\n }\n , # endif {\n & hf_mac_edch_type2_ss , {\n \"SS\" , \"mac.edch.type2.ss\" , FT_UINT8 , BASE_HEX , NULL , 0xc0 , \"Segmentation Status\" , HFILL }\n }\n , {\n & hf_mac_edch_type2_ss_interpretation , {\n \"SS interpretation\" , \"mac.edch.type2.ss_interpretation\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_mac_edch_type2_tsn , {\n \"TSN\" , \"mac.edch.type2.tsn\" , FT_UINT16 , BASE_DEC , NULL , 0 , \"Transmission Sequence Number\" , HFILL }\n }\n , {\n & hf_mac_edch_type2_sdu , {\n \"MAC-is SDU\" , \"mac.edch.type2.sdu\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_mac_edch_type2_sdu_data , {\n \"Data\" , \"mac.edch.type2.sdu.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , # if 0 {\n & hf_mac_edch_type2_subframe_header , {\n \"Subframe header\" , \"mac.edch.type2.subframeheader\" , FT_STRING , BASE_NONE , NULL , 0x0 , \"EDCH Subframe header\" , HFILL }\n }\n , # endif {\n & hf_mac_is_reasmin , {\n \"Reassembled in frame\" , \"mac.is.reasmin\" , FT_FRAMENUM , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mac_is_fraglink , {\n \"Frame\" , \"mac.is.fraglink\" , FT_FRAMENUM , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n }\n ;\n static ei_register_info ei [ ] = {\n {\n & ei_mac_per_frame_info_missing , {\n \"mac.per_frame_info_missing\" , PI_MALFORMED , PI_ERROR , \"Cannot dissect MAC frame because per-frame info is missing\" , EXPFILL }\n }\n , {\n & ei_mac_unknown_content , {\n \"mac.unknown_content\" , PI_MALFORMED , PI_ERROR , \"Unknown RACH DCCH/DTCH Content\" , EXPFILL }\n }\n , {\n & ei_mac_rach_tctf_unknown , {\n \"mac.rach_tctf.unknown\" , PI_MALFORMED , PI_ERROR , \"Unknown RACH TCTF\" , EXPFILL }\n }\n , {\n & ei_mac_cs_dtch_not_implemented , {\n \"mac.cs_dtch.not_implemented\" , PI_DEBUG , PI_ERROR , \"CS DTCH Is not implemented\" , EXPFILL }\n }\n , {\n & ei_mac_fach_content_type_unknown , {\n \"mac.fach_content_type.unknown\" , PI_UNDECODED , PI_WARN , \" Unimplemented FACH Content type!\" , EXPFILL }\n }\n , {\n & ei_mac_no_logical_channel , {\n \"mac.no_logical_channel\" , PI_PROTOCOL , PI_WARN , \"Frame is missing logical channel\" , EXPFILL }\n }\n , {\n & ei_mac_faked_logical_channel_id , {\n \"mac.faked_logical_channel_id\" , PI_PROTOCOL , PI_WARN , \"This is a faked logical channel id!\" , EXPFILL }\n }\n , {\n & ei_mac_macis_sdu_reassembled , {\n \"mac.macis_sdu.reassembled\" , PI_REASSEMBLE , PI_CHAT , \"Reassembled MAC-is SDU\" , EXPFILL }\n }\n , {\n & ei_mac_macis_sdu_first , {\n \"mac.macis_sdu.first\" , PI_REASSEMBLE , PI_CHAT , \"This MAC-is SDU is the first segment of a MAC-d PDU or MAC-c PDU\" , EXPFILL }\n }\n , {\n & ei_mac_macis_sdu_middle , {\n \"mac.macis_sdu.middle\" , PI_REASSEMBLE , PI_CHAT , \"This MAC-is SDU is a middle segment of a MAC-d PDU or MAC-c PDU\" , EXPFILL }\n }\n , {\n & ei_mac_macis_sdu_last , {\n \"mac.macis_sdu.last\" , PI_REASSEMBLE , PI_CHAT , \"This MAC-is SDU is the last segment of a MAC-d PDU or MAC-c PDU\" , EXPFILL }\n }\n , {\n & ei_mac_macis_sdu_complete , {\n \"mac.macis_sdu.complete\" , PI_REASSEMBLE , PI_CHAT , \"This MAC-is SDU is a complete MAC-d PDU or MAC-c PDU\" , EXPFILL }\n }\n , }\n ;\n expert_module_t * expert_umts_mac ;\n proto_umts_mac = proto_register_protocol ( \"MAC\" , \"MAC\" , \"mac\" ) ;\n proto_register_field_array ( proto_umts_mac , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n expert_umts_mac = expert_register_protocol ( proto_umts_mac ) ;\n expert_register_field_array ( expert_umts_mac , ei , array_length ( ei ) ) ;\n register_dissector ( \"mac.fdd.rach\" , dissect_mac_fdd_rach , proto_umts_mac ) ;\n register_dissector ( \"mac.fdd.fach\" , dissect_mac_fdd_fach , proto_umts_mac ) ;\n register_dissector ( \"mac.fdd.pch\" , dissect_mac_fdd_pch , proto_umts_mac ) ;\n register_dissector ( \"mac.fdd.dch\" , dissect_mac_fdd_dch , proto_umts_mac ) ;\n register_dissector ( \"mac.fdd.edch\" , dissect_mac_fdd_edch , proto_umts_mac ) ;\n register_dissector ( \"mac.fdd.edch.type2\" , dissect_mac_fdd_edch_type2 , proto_umts_mac ) ;\n register_dissector ( \"mac.fdd.hsdsch\" , dissect_mac_fdd_hsdsch , proto_umts_mac ) ;\n register_init_routine ( mac_init ) ;\n register_cleanup_routine ( mac_cleanup ) ;\n mac_module = prefs_register_protocol ( proto_umts_mac , NULL ) ;\n prefs_register_enum_preference ( mac_module , \"tsn_size\" , \"TSN size\" , \"TSN size in bits, either 6 or 14 bit\" , & global_mac_tsn_size , tsn_size_enumvals , FALSE ) ;\n }"}
{"idx": 5041, "target": 0, "func": "int cont_data_handler ( TSCont contp , TSEvent , void * ) {\n MyData * my_data = ( MyData * ) TSContDataGet ( contp ) ;\n if ( my_data -> data1 == 1 && my_data -> data2 == 2 ) {\n SDK_RPRINT ( SDK_ContData_test , \"TSContDataSet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( SDK_ContData_test , \"TSContDataGet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n * SDK_ContData_pstatus = REGRESSION_TEST_PASSED ;\n }\n else {\n SDK_RPRINT ( SDK_ContData_test , \"TSContDataSet\" , \"TestCase1\" , TC_FAIL , \"bad data\" ) ;\n SDK_RPRINT ( SDK_ContData_test , \"TSContDataGet\" , \"TestCase1\" , TC_FAIL , \"bad data\" ) ;\n * SDK_ContData_pstatus = REGRESSION_TEST_FAILED ;\n }\n TSfree ( my_data ) ;\n TSContDestroy ( contp ) ;\n return 0 ;\n }"}
{"idx": 5042, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ClientHintsBrowserTest , ClientHintsLifetimeNotAttachedJavaScriptBlocked ) {\n base : : HistogramTester histogram_tester ;\n ContentSettingsForOneType host_settings ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> GetSettingsForOneType ( CONTENT_SETTINGS_TYPE_CLIENT_HINTS , std : : string ( ) , & host_settings ) ;\n EXPECT_EQ ( 0u , host_settings . size ( ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , accept_ch_with_lifetime_url ( ) ) ;\n histogram_tester . ExpectUniqueSample ( \"ClientHints.UpdateEventCount\" , 1 , 1 ) ;\n content : : FetchHistogramsFromChildProcesses ( ) ;\n SubprocessMetricsProvider : : MergeHistogramDeltasForTesting ( ) ;\n histogram_tester . ExpectUniqueSample ( \"ClientHints.UpdateSize\" , 3 , 1 ) ;\n histogram_tester . ExpectUniqueSample ( \"ClientHints.PersistDuration\" , * 1000 , 1 ) ;\n base : : RunLoop ( ) . RunUntilIdle ( ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> GetSettingsForOneType ( CONTENT_SETTINGS_TYPE_CLIENT_HINTS , std : : string ( ) , & host_settings ) ;\n EXPECT_EQ ( 1u , host_settings . size ( ) ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> SetContentSettingDefaultScope ( without_accept_ch_without_lifetime_url ( ) , GURL ( ) , CONTENT_SETTINGS_TYPE_JAVASCRIPT , std : : string ( ) , CONTENT_SETTING_BLOCK ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , without_accept_ch_without_lifetime_url ( ) ) ;\n EXPECT_EQ ( 0u , count_client_hints_headers_seen ( ) ) ;\n VerifyContentSettingsNotNotified ( ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> SetContentSettingDefaultScope ( without_accept_ch_without_lifetime_url ( ) , GURL ( ) , CONTENT_SETTINGS_TYPE_JAVASCRIPT , std : : string ( ) , CONTENT_SETTING_ALLOW ) ;\n SetClientHintExpectationsOnMainFrame ( true ) ;\n SetClientHintExpectationsOnSubresources ( true ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , without_accept_ch_without_lifetime_url ( ) ) ;\n # if defined ( OS_ANDROID ) EXPECT_EQ ( 4u , count_client_hints_headers_seen ( ) ) ;\n # else EXPECT_EQ ( 6u , count_client_hints_headers_seen ( ) ) ;\n # endif HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> ClearSettingsForOneType ( CONTENT_SETTINGS_TYPE_JAVASCRIPT ) ;\n }"}
{"idx": 5043, "target": 1, "func": "static int h261_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n H261Context * h = avctx -> priv_data ;\n MpegEncContext * s = & h -> s ;\n int ret ;\n AVFrame * pict = data ;\n av_dlog ( avctx , \"*****frame %d size=%d\\n\" , avctx -> frame_number , buf_size ) ;\n av_dlog ( avctx , \"bytes=%x %x %x %x\\n\" , buf [ 0 ] , buf [ 1 ] , buf [ 2 ] , buf [ 3 ] ) ;\n s -> flags = avctx -> flags ;\n s -> flags2 = avctx -> flags2 ;\n h -> gob_start_code_skipped = 0 ;\n retry : init_get_bits ( & s -> gb , buf , buf_size * 8 ) ;\n if ( ! s -> context_initialized ) {\n if ( ff_MPV_common_init ( s ) < 0 ) return - 1 ;\n }\n if ( s -> current_picture_ptr == NULL || s -> current_picture_ptr -> f . data [ 0 ] ) {\n int i = ff_find_unused_picture ( s , 0 ) ;\n if ( i < 0 ) return i ;\n s -> current_picture_ptr = & s -> picture [ i ] ;\n }\n ret = h261_decode_picture_header ( h ) ;\n if ( ret < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"header damaged\\n\" ) ;\n return - 1 ;\n }\n if ( s -> width != avctx -> coded_width || s -> height != avctx -> coded_height ) {\n ParseContext pc = s -> parse_context ;\n s -> parse_context . buffer = 0 ;\n ff_MPV_common_end ( s ) ;\n s -> parse_context = pc ;\n }\n if ( ! s -> context_initialized ) {\n avcodec_set_dimensions ( avctx , s -> width , s -> height ) ;\n goto retry ;\n }\n s -> current_picture . f . pict_type = s -> pict_type ;\n s -> current_picture . f . key_frame = s -> pict_type == AV_PICTURE_TYPE_I ;\n if ( ( avctx -> skip_frame >= AVDISCARD_NONREF && s -> pict_type == AV_PICTURE_TYPE_B ) || ( avctx -> skip_frame >= AVDISCARD_NONKEY && s -> pict_type != AV_PICTURE_TYPE_I ) || avctx -> skip_frame >= AVDISCARD_ALL ) return get_consumed_bytes ( s , buf_size ) ;\n if ( ff_MPV_frame_start ( s , avctx ) < 0 ) return - 1 ;\n ff_mpeg_er_frame_start ( s ) ;\n s -> mb_x = 0 ;\n s -> mb_y = 0 ;\n while ( h -> gob_number < ( s -> mb_height == 18 ? 12 : 5 ) ) {\n if ( ff_h261_resync ( h ) < 0 ) break ;\n h261_decode_gob ( h ) ;\n }\n ff_MPV_frame_end ( s ) ;\n assert ( s -> current_picture . f . pict_type == s -> current_picture_ptr -> f . pict_type ) ;\n assert ( s -> current_picture . f . pict_type == s -> pict_type ) ;\n * pict = s -> current_picture_ptr -> f ;\n ff_print_debug_info ( s , pict ) ;\n * got_frame = 1 ;\n return get_consumed_bytes ( s , buf_size ) ;\n }"}
{"idx": 5044, "target": 0, "func": "static int ssl3_add_cert_to_buf ( BUF_MEM * buf , unsigned long * l , X509 * x ) {\n int n ;\n unsigned char * p ;\n n = i2d_X509 ( x , NULL ) ;\n if ( ! BUF_MEM_grow_clean ( buf , ( int ) ( n + ( * l ) + 3 ) ) ) {\n SSLerr ( SSL_F_SSL3_ADD_CERT_TO_BUF , ERR_R_BUF_LIB ) ;\n return ( - 1 ) ;\n }\n p = ( unsigned char * ) & ( buf -> data [ * l ] ) ;\n l2n3 ( n , p ) ;\n i2d_X509 ( x , & p ) ;\n * l += n + 3 ;\n return ( 0 ) ;\n }"}
{"idx": 5045, "target": 0, "func": "proto_item * proto_tree_add_string ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , const char * value ) {\n proto_item * pi ;\n header_field_info * hfinfo ;\n CHECK_FOR_NULL_TREE ( tree ) ;\n TRY_TO_FAKE_THIS_ITEM ( tree , hfindex , hfinfo ) ;\n DISSECTOR_ASSERT_FIELD_TYPE_IS_STRING ( hfinfo ) ;\n if ( hfinfo -> display == STR_UNICODE ) {\n DISSECTOR_ASSERT ( g_utf8_validate ( value , - 1 , NULL ) ) ;\n }\n pi = proto_tree_add_pi ( tree , hfinfo , tvb , start , & length ) ;\n DISSECTOR_ASSERT ( length >= 0 ) ;\n proto_tree_set_string ( PNODE_FINFO ( pi ) , value ) ;\n return pi ;\n }"}
{"idx": 5046, "target": 0, "func": "static void Transform ( BasePoint * to , DBasePoint * from , real trans [ 6 ] ) {\n to -> x = trans [ 0 ] * from -> x + trans [ 2 ] * from -> y + trans [ 4 ] ;\n to -> y = trans [ 1 ] * from -> x + trans [ 3 ] * from -> y + trans [ 5 ] ;\n }"}
{"idx": 5047, "target": 0, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DIRECTORYSTRING ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DISPLAYTEXT ) DECLARE_ASN1_FUNCTIONS ( ASN1_PRINTABLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_T61STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_IA5STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_GENERALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTCTIME ) DECLARE_ASN1_FUNCTIONS ( ASN1_GENERALIZEDTIME )"}
{"idx": 5048, "target": 0, "func": "static int DecoderGetDisplayRate ( decoder_t * p_dec ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n if ( ! p_owner -> p_clock ) return INPUT_RATE_DEFAULT ;\n return input_clock_GetRate ( p_owner -> p_clock ) ;\n }"}
{"idx": 5049, "target": 0, "func": "static int frame_is_reference ( const VP8_COMP * cpi ) {\n const VP8_COMMON * cm = & cpi -> common ;\n const MACROBLOCKD * xd = & cpi -> mb . e_mbd ;\n return cm -> frame_type == KEY_FRAME || cm -> refresh_last_frame || cm -> refresh_golden_frame || cm -> refresh_alt_ref_frame || cm -> copy_buffer_to_gf || cm -> copy_buffer_to_arf || cm -> refresh_entropy_probs || xd -> mode_ref_lf_delta_update || xd -> update_mb_segmentation_map || xd -> update_mb_segmentation_data ;\n }"}
{"idx": 5050, "target": 0, "func": "static int base_candidate ( BackendDB * be , Entry * e , ID * ids ) {\n Debug ( LDAP_DEBUG_ARGS , \"base_candidates: base: \\\"%s\\\" (0x%08lx)\\n\" , e -> e_nname . bv_val , ( long ) e -> e_id , 0 ) ;\n ids [ 0 ] = 1 ;\n ids [ 1 ] = e -> e_id ;\n return 0 ;\n }"}
{"idx": 5051, "target": 0, "func": "void decoder_DeleteSubpicture ( decoder_t * p_decoder , subpicture_t * p_subpicture ) {\n p_decoder -> pf_spu_buffer_del ( p_decoder , p_subpicture ) ;\n }"}
{"idx": 5052, "target": 1, "func": "SPL_METHOD ( SplFileInfo , getFileInfo ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n zend_class_entry * ce = intern -> info_class ;\n zend_error_handling error_handling ;\n zend_replace_error_handling ( EH_THROW , spl_ce_UnexpectedValueException , & error_handling TSRMLS_CC ) ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"|C\" , & ce ) == SUCCESS ) {\n spl_filesystem_object_create_type ( ht , intern , SPL_FS_INFO , ce , return_value TSRMLS_CC ) ;\n }\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n }"}
{"idx": 5053, "target": 0, "func": "void mime_field_value_set ( HdrHeap * heap , MIMEHdrImpl * mh , MIMEField * field , const char * value , int length , bool must_copy_string ) {\n heap -> free_string ( field -> m_ptr_value , field -> m_len_value ) ;\n if ( must_copy_string && value ) {\n field -> m_ptr_value = heap -> duplicate_str ( value , length ) ;\n }\n else {\n field -> m_ptr_value = value ;\n }\n field -> m_len_value = length ;\n field -> m_n_v_raw_printable = 0 ;\n if ( field -> is_live ( ) && field -> is_cooked ( ) ) {\n mh -> recompute_cooked_stuff ( field ) ;\n }\n }"}
{"idx": 5054, "target": 0, "func": "static afs_int32 addToGroup ( struct rx_call * call , afs_int32 aid , afs_int32 gid , afs_int32 * cid ) {\n afs_int32 code ;\n struct ubik_trans * tt ;\n afs_int32 tempu ;\n afs_int32 tempg ;\n struct prentry tentry ;\n struct prentry uentry ;\n code = Initdb ( ) ;\n if ( code != PRSUCCESS ) return code ;\n if ( gid == ANYUSERID || gid == AUTHUSERID ) return PRPERM ;\n if ( aid == ANONYMOUSID ) return PRPERM ;\n code = ubik_BeginTrans ( dbase , UBIK_WRITETRANS , & tt ) ;\n if ( code ) return code ;\n code = ubik_SetLock ( tt , 1 , 1 , LOCKWRITE ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = read_DbHeader ( tt ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = WhoIsThis ( call , tt , cid ) ;\n if ( code ) ABORT_WITH ( tt , PRPERM ) ;\n tempu = FindByID ( tt , aid ) ;\n if ( ! tempu ) ABORT_WITH ( tt , PRNOENT ) ;\n memset ( & uentry , 0 , sizeof ( uentry ) ) ;\n code = pr_ReadEntry ( tt , 0 , tempu , & uentry ) ;\n if ( code != 0 ) ABORT_WITH ( tt , code ) ;\n # if ! defined ( SUPERGROUPS ) if ( uentry . flags & PRGRP ) ABORT_WITH ( tt , PRNOTUSER ) ;\n # endif tempg = FindByID ( tt , gid ) ;\n if ( ! tempg ) ABORT_WITH ( tt , PRNOENT ) ;\n code = pr_ReadEntry ( tt , 0 , tempg , & tentry ) ;\n if ( code != 0 ) ABORT_WITH ( tt , code ) ;\n if ( ! ( tentry . flags & PRGRP ) ) ABORT_WITH ( tt , PRNOTGROUP ) ;\n if ( ! AccessOK ( tt , * cid , & tentry , PRP_ADD_MEM , PRP_ADD_ANY ) ) ABORT_WITH ( tt , PRPERM ) ;\n code = AddToEntry ( tt , & tentry , tempg , aid ) ;\n if ( code != PRSUCCESS ) ABORT_WITH ( tt , code ) ;\n # if defined ( SUPERGROUPS ) if ( uentry . flags & PRGRP ) code = AddToSGEntry ( tt , & uentry , tempu , gid ) ;\n else # endif code = AddToEntry ( tt , & uentry , tempu , gid ) ;\n if ( code != PRSUCCESS ) ABORT_WITH ( tt , code ) ;\n code = ubik_EndTrans ( tt ) ;\n if ( code ) return code ;\n return PRSUCCESS ;\n }"}
{"idx": 5055, "target": 0, "func": "void prplcb_conv_add_users ( PurpleConversation * conv , GList * cbuddies , gboolean new_arrivals ) {\n struct groupchat * gc = conv -> ui_data ;\n GList * b ;\n for ( b = cbuddies ;\n b ;\n b = b -> next ) {\n PurpleConvChatBuddy * pcb = b -> data ;\n imcb_chat_add_buddy ( gc , pcb -> name ) ;\n }\n }"}
{"idx": 5056, "target": 0, "func": "static int mpeg1_decode_picture ( AVCodecContext * avctx , const uint8_t * buf , int buf_size ) {\n Mpeg1Context * s1 = avctx -> priv_data ;\n MpegEncContext * s = & s1 -> mpeg_enc_ctx ;\n int ref , f_code , vbv_delay ;\n init_get_bits ( & s -> gb , buf , buf_size * 8 ) ;\n ref = get_bits ( & s -> gb , 10 ) ;\n s -> pict_type = get_bits ( & s -> gb , 3 ) ;\n if ( s -> pict_type == 0 || s -> pict_type > 3 ) return - 1 ;\n vbv_delay = get_bits ( & s -> gb , 16 ) ;\n if ( s -> pict_type == AV_PICTURE_TYPE_P || s -> pict_type == AV_PICTURE_TYPE_B ) {\n s -> full_pel [ 0 ] = get_bits1 ( & s -> gb ) ;\n f_code = get_bits ( & s -> gb , 3 ) ;\n if ( f_code == 0 && ( avctx -> err_recognition & AV_EF_BITSTREAM ) ) return - 1 ;\n s -> mpeg_f_code [ 0 ] [ 0 ] = f_code ;\n s -> mpeg_f_code [ 0 ] [ 1 ] = f_code ;\n }\n if ( s -> pict_type == AV_PICTURE_TYPE_B ) {\n s -> full_pel [ 1 ] = get_bits1 ( & s -> gb ) ;\n f_code = get_bits ( & s -> gb , 3 ) ;\n if ( f_code == 0 && ( avctx -> err_recognition & AV_EF_BITSTREAM ) ) return - 1 ;\n s -> mpeg_f_code [ 1 ] [ 0 ] = f_code ;\n s -> mpeg_f_code [ 1 ] [ 1 ] = f_code ;\n }\n s -> current_picture . f . pict_type = s -> pict_type ;\n s -> current_picture . f . key_frame = s -> pict_type == AV_PICTURE_TYPE_I ;\n if ( avctx -> debug & FF_DEBUG_PICT_INFO ) av_log ( avctx , AV_LOG_DEBUG , \"vbv_delay %d, ref %d type:%d\\n\" , vbv_delay , ref , s -> pict_type ) ;\n s -> y_dc_scale = 8 ;\n s -> c_dc_scale = 8 ;\n return 0 ;\n }"}
{"idx": 5057, "target": 0, "func": "static int tipc_nl_compat_publ_dump ( struct tipc_nl_compat_msg * msg , u32 sock ) {\n int err ;\n void * hdr ;\n struct nlattr * nest ;\n struct sk_buff * args ;\n struct tipc_nl_compat_cmd_dump dump ;\n args = nlmsg_new ( NLMSG_GOODSIZE , GFP_KERNEL ) ;\n if ( ! args ) return - ENOMEM ;\n hdr = genlmsg_put ( args , 0 , 0 , & tipc_genl_family , NLM_F_MULTI , TIPC_NL_PUBL_GET ) ;\n nest = nla_nest_start ( args , TIPC_NLA_SOCK ) ;\n if ( ! nest ) {\n kfree_skb ( args ) ;\n return - EMSGSIZE ;\n }\n if ( nla_put_u32 ( args , TIPC_NLA_SOCK_REF , sock ) ) {\n kfree_skb ( args ) ;\n return - EMSGSIZE ;\n }\n nla_nest_end ( args , nest ) ;\n genlmsg_end ( args , hdr ) ;\n dump . dumpit = tipc_nl_publ_dump ;\n dump . format = __tipc_nl_compat_publ_dump ;\n err = __tipc_nl_compat_dumpit ( & dump , msg , args ) ;\n kfree_skb ( args ) ;\n return err ;\n }"}
{"idx": 5058, "target": 0, "func": "static void h264_er_decode_mb ( void * opaque , int ref , int mv_dir , int mv_type , int ( * mv ) [ 2 ] [ 4 ] [ 2 ] , int mb_x , int mb_y , int mb_intra , int mb_skipped ) {\n H264Context * h = opaque ;\n h -> mb_x = mb_x ;\n h -> mb_y = mb_y ;\n h -> mb_xy = mb_x + mb_y * h -> mb_stride ;\n memset ( h -> non_zero_count_cache , 0 , sizeof ( h -> non_zero_count_cache ) ) ;\n av_assert1 ( ref >= 0 ) ;\n if ( ref >= h -> ref_count [ 0 ] ) ref = 0 ;\n if ( ! h -> ref_list [ 0 ] [ ref ] . f . data [ 0 ] ) {\n av_log ( h -> avctx , AV_LOG_DEBUG , \"Reference not available for error concealing\\n\" ) ;\n ref = 0 ;\n }\n if ( ( h -> ref_list [ 0 ] [ ref ] . reference & 3 ) != 3 ) {\n av_log ( h -> avctx , AV_LOG_DEBUG , \"Reference invalid\\n\" ) ;\n return ;\n }\n fill_rectangle ( & h -> cur_pic . ref_index [ 0 ] [ 4 * h -> mb_xy ] , 2 , 2 , 2 , ref , 1 ) ;\n fill_rectangle ( & h -> ref_cache [ 0 ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , ref , 1 ) ;\n fill_rectangle ( h -> mv_cache [ 0 ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , pack16to32 ( ( * mv ) [ 0 ] [ 0 ] [ 0 ] , ( * mv ) [ 0 ] [ 0 ] [ 1 ] ) , 4 ) ;\n h -> mb_mbaff = h -> mb_field_decoding_flag = 0 ;\n ff_h264_hl_decode_mb ( h ) ;\n }"}
{"idx": 5059, "target": 0, "func": "static void directory_count_state_free ( DirectoryCountState * state ) {\n if ( state -> enumerator ) {\n if ( ! g_file_enumerator_is_closed ( state -> enumerator ) ) {\n g_file_enumerator_close_async ( state -> enumerator , 0 , NULL , NULL , NULL ) ;\n }\n g_object_unref ( state -> enumerator ) ;\n }\n g_object_unref ( state -> cancellable ) ;\n nautilus_directory_unref ( state -> directory ) ;\n g_free ( state ) ;\n }"}
{"idx": 5060, "target": 1, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DIRECTORYSTRING ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DISPLAYTEXT ) DECLARE_ASN1_FUNCTIONS ( ASN1_PRINTABLESTRING )"}
{"idx": 5061, "target": 0, "func": "int qemuMonitorTextGetBlockIoThrottle ( qemuMonitorPtr mon , const char * device , virDomainBlockIoTuneInfoPtr reply ) {\n char * result = NULL ;\n int ret = 0 ;\n const char * cmd_name = \"info block\" ;\n if ( qemuMonitorHMPCommand ( mon , cmd_name , & result ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"cannot run monitor command\" ) ) ;\n ret = - 1 ;\n goto cleanup ;\n }\n if ( qemuMonitorTextCommandNotFound ( cmd_name , result ) ) {\n qemuReportError ( VIR_ERR_OPERATION_INVALID , _ ( \"Command '%s' is not found\" ) , cmd_name ) ;\n ret = - 1 ;\n goto cleanup ;\n }\n ret = qemuMonitorTextParseBlockIoThrottle ( result , device , reply ) ;\n cleanup : VIR_FREE ( result ) ;\n return ret ;\n }"}
{"idx": 5062, "target": 0, "func": "static int dca_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n int lfe_samples ;\n int num_core_channels = 0 ;\n int i , ret ;\n float * * samples_flt ;\n DCAContext * s = avctx -> priv_data ;\n int channels , full_channels ;\n int core_ss_end ;\n s -> xch_present = 0 ;\n s -> dca_buffer_size = ff_dca_convert_bitstream ( buf , buf_size , s -> dca_buffer , DCA_MAX_FRAME_SIZE + DCA_MAX_EXSS_HEADER_SIZE ) ;\n if ( s -> dca_buffer_size == AVERROR_INVALIDDATA ) {\n av_log ( avctx , AV_LOG_ERROR , \"Not a valid DCA frame\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n init_get_bits ( & s -> gb , s -> dca_buffer , s -> dca_buffer_size * 8 ) ;\n if ( ( ret = dca_parse_frame_header ( s ) ) < 0 ) {\n return ret ;\n }\n avctx -> sample_rate = s -> sample_rate ;\n avctx -> bit_rate = s -> bit_rate ;\n s -> profile = FF_PROFILE_DTS ;\n for ( i = 0 ;\n i < ( s -> sample_blocks / 8 ) ;\n i ++ ) {\n if ( ( ret = dca_decode_block ( s , 0 , i ) ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"error decoding block\\n\" ) ;\n return ret ;\n }\n }\n num_core_channels = s -> prim_channels ;\n if ( s -> ext_coding ) s -> core_ext_mask = dca_ext_audio_descr_mask [ s -> ext_descr ] ;\n else s -> core_ext_mask = 0 ;\n core_ss_end = FFMIN ( s -> frame_size , s -> dca_buffer_size ) * 8 ;\n if ( s -> core_ext_mask < 0 || s -> core_ext_mask & DCA_EXT_XCH ) {\n s -> core_ext_mask = FFMAX ( s -> core_ext_mask , 0 ) ;\n skip_bits_long ( & s -> gb , ( - get_bits_count ( & s -> gb ) ) & 31 ) ;\n while ( core_ss_end - get_bits_count ( & s -> gb ) >= 32 ) {\n uint32_t bits = get_bits_long ( & s -> gb , 32 ) ;\n switch ( bits ) {\n case 0x5a5a5a5a : {\n int ext_amode , xch_fsize ;\n s -> xch_base_channel = s -> prim_channels ;\n xch_fsize = show_bits ( & s -> gb , 10 ) ;\n if ( ( s -> frame_size != ( get_bits_count ( & s -> gb ) >> 3 ) - 4 + xch_fsize ) && ( s -> frame_size != ( get_bits_count ( & s -> gb ) >> 3 ) - 4 + xch_fsize + 1 ) ) continue ;\n skip_bits ( & s -> gb , 10 ) ;\n s -> core_ext_mask |= DCA_EXT_XCH ;\n if ( ( ext_amode = get_bits ( & s -> gb , 4 ) ) != 1 ) {\n av_log ( avctx , AV_LOG_ERROR , \"XCh extension amode %d not\" \" supported!\\n\" , ext_amode ) ;\n continue ;\n }\n dca_parse_audio_coding_header ( s , s -> xch_base_channel ) ;\n for ( i = 0 ;\n i < ( s -> sample_blocks / 8 ) ;\n i ++ ) if ( ( ret = dca_decode_block ( s , s -> xch_base_channel , i ) ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"error decoding XCh extension\\n\" ) ;\n continue ;\n }\n s -> xch_present = 1 ;\n break ;\n }\n case 0x47004a03 : s -> core_ext_mask |= DCA_EXT_XXCH ;\n break ;\n case 0x1d95f262 : {\n int fsize96 = show_bits ( & s -> gb , 12 ) + 1 ;\n if ( s -> frame_size != ( get_bits_count ( & s -> gb ) >> 3 ) - 4 + fsize96 ) continue ;\n av_log ( avctx , AV_LOG_DEBUG , \"X96 extension found at %d bits\\n\" , get_bits_count ( & s -> gb ) ) ;\n skip_bits ( & s -> gb , 12 ) ;\n av_log ( avctx , AV_LOG_DEBUG , \"FSIZE96 = %d bytes\\n\" , fsize96 ) ;\n av_log ( avctx , AV_LOG_DEBUG , \"REVNO = %d\\n\" , get_bits ( & s -> gb , 4 ) ) ;\n s -> core_ext_mask |= DCA_EXT_X96 ;\n break ;\n }\n }\n skip_bits_long ( & s -> gb , ( - get_bits_count ( & s -> gb ) ) & 31 ) ;\n }\n }\n else {\n skip_bits_long ( & s -> gb , core_ss_end - get_bits_count ( & s -> gb ) ) ;\n }\n if ( s -> core_ext_mask & DCA_EXT_X96 ) s -> profile = FF_PROFILE_DTS_96_24 ;\n else if ( s -> core_ext_mask & ( DCA_EXT_XCH | DCA_EXT_XXCH ) ) s -> profile = FF_PROFILE_DTS_ES ;\n if ( s -> dca_buffer_size - s -> frame_size > 32 && get_bits_long ( & s -> gb , 32 ) == DCA_HD_MARKER ) dca_exss_parse_header ( s ) ;\n avctx -> profile = s -> profile ;\n full_channels = channels = s -> prim_channels + ! ! s -> lfe ;\n if ( s -> amode < 16 ) {\n avctx -> channel_layout = dca_core_channel_layout [ s -> amode ] ;\n if ( s -> xch_present && ( ! avctx -> request_channels || avctx -> request_channels > num_core_channels + ! ! s -> lfe ) ) {\n avctx -> channel_layout |= AV_CH_BACK_CENTER ;\n if ( s -> lfe ) {\n avctx -> channel_layout |= AV_CH_LOW_FREQUENCY ;\n s -> channel_order_tab = dca_channel_reorder_lfe_xch [ s -> amode ] ;\n }\n else {\n s -> channel_order_tab = dca_channel_reorder_nolfe_xch [ s -> amode ] ;\n }\n }\n else {\n channels = num_core_channels + ! ! s -> lfe ;\n s -> xch_present = 0 ;\n if ( s -> lfe ) {\n avctx -> channel_layout |= AV_CH_LOW_FREQUENCY ;\n s -> channel_order_tab = dca_channel_reorder_lfe [ s -> amode ] ;\n }\n else s -> channel_order_tab = dca_channel_reorder_nolfe [ s -> amode ] ;\n }\n if ( channels > ! ! s -> lfe && s -> channel_order_tab [ channels - 1 - ! ! s -> lfe ] < 0 ) return AVERROR_INVALIDDATA ;\n if ( avctx -> request_channels == 2 && s -> prim_channels > 2 ) {\n channels = 2 ;\n s -> output = DCA_STEREO ;\n avctx -> channel_layout = AV_CH_LAYOUT_STEREO ;\n }\n }\n else {\n av_log ( avctx , AV_LOG_ERROR , \"Non standard configuration %d !\\n\" , s -> amode ) ;\n return AVERROR_INVALIDDATA ;\n }\n avctx -> channels = channels ;\n frame -> nb_samples = 256 * ( s -> sample_blocks / 8 ) ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n samples_flt = ( float * * ) frame -> extended_data ;\n if ( avctx -> channels < full_channels ) {\n ret = av_samples_get_buffer_size ( NULL , full_channels - channels , frame -> nb_samples , avctx -> sample_fmt , 0 ) ;\n if ( ret < 0 ) return ret ;\n av_fast_malloc ( & s -> extra_channels_buffer , & s -> extra_channels_buffer_size , ret ) ;\n if ( ! s -> extra_channels_buffer ) return AVERROR ( ENOMEM ) ;\n ret = av_samples_fill_arrays ( ( uint8_t * * ) s -> extra_channels , NULL , s -> extra_channels_buffer , full_channels - channels , frame -> nb_samples , avctx -> sample_fmt , 0 ) ;\n if ( ret < 0 ) return ret ;\n }\n for ( i = 0 ;\n i < ( s -> sample_blocks / 8 ) ;\n i ++ ) {\n int ch ;\n for ( ch = 0 ;\n ch < channels ;\n ch ++ ) s -> samples_chanptr [ ch ] = samples_flt [ ch ] + i * 256 ;\n for ( ;\n ch < full_channels ;\n ch ++ ) s -> samples_chanptr [ ch ] = s -> extra_channels [ ch - channels ] + i * 256 ;\n dca_filter_channels ( s , i ) ;\n if ( ( s -> source_pcm_res & 1 ) && s -> xch_present ) {\n float * back_chan = s -> samples_chanptr [ s -> channel_order_tab [ s -> xch_base_channel ] ] ;\n float * lt_chan = s -> samples_chanptr [ s -> channel_order_tab [ s -> xch_base_channel - 2 ] ] ;\n float * rt_chan = s -> samples_chanptr [ s -> channel_order_tab [ s -> xch_base_channel - 1 ] ] ;\n s -> fdsp . vector_fmac_scalar ( lt_chan , back_chan , - M_SQRT1_2 , 256 ) ;\n s -> fdsp . vector_fmac_scalar ( rt_chan , back_chan , - M_SQRT1_2 , 256 ) ;\n }\n }\n lfe_samples = 2 * s -> lfe * ( s -> sample_blocks / 8 ) ;\n for ( i = 0 ;\n i < 2 * s -> lfe * 4 ;\n i ++ ) s -> lfe_data [ i ] = s -> lfe_data [ i + lfe_samples ] ;\n * got_frame_ptr = 1 ;\n return buf_size ;\n }"}
{"idx": 5063, "target": 0, "func": "int i2d_ECParameters ( EC_KEY * a , unsigned char * * out ) {\n if ( a == NULL ) {\n ECerr ( EC_F_I2D_ECPARAMETERS , ERR_R_PASSED_NULL_PARAMETER ) ;\n return 0 ;\n }\n return i2d_ECPKParameters ( a -> group , out ) ;\n }"}
{"idx": 5064, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize ) ;\n DECL_PIOCTL ( PGetCacheSize ) ;\n DECL_PIOCTL ( PRemoveCallBack ) ;\n DECL_PIOCTL ( PNewCell ) ;\n DECL_PIOCTL ( PNewAlias ) ;\n DECL_PIOCTL ( PListCells ) ;\n DECL_PIOCTL ( PListAliases )"}
{"idx": 5065, "target": 0, "func": "static int rv10_decode_picture_header ( MpegEncContext * s ) {\n int mb_count , pb_frame , marker , mb_xy ;\n marker = get_bits1 ( & s -> gb ) ;\n if ( get_bits1 ( & s -> gb ) ) s -> pict_type = AV_PICTURE_TYPE_P ;\n else s -> pict_type = AV_PICTURE_TYPE_I ;\n if ( ! marker ) av_log ( s -> avctx , AV_LOG_ERROR , \"marker missing\\n\" ) ;\n pb_frame = get_bits1 ( & s -> gb ) ;\n av_dlog ( s -> avctx , \"pict_type=%d pb_frame=%d\\n\" , s -> pict_type , pb_frame ) ;\n if ( pb_frame ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"pb frame not supported\\n\" ) ;\n return - 1 ;\n }\n s -> qscale = get_bits ( & s -> gb , 5 ) ;\n if ( s -> qscale == 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"error, qscale:0\\n\" ) ;\n return - 1 ;\n }\n if ( s -> pict_type == AV_PICTURE_TYPE_I ) {\n if ( s -> rv10_version == 3 ) {\n s -> last_dc [ 0 ] = get_bits ( & s -> gb , 8 ) ;\n s -> last_dc [ 1 ] = get_bits ( & s -> gb , 8 ) ;\n s -> last_dc [ 2 ] = get_bits ( & s -> gb , 8 ) ;\n av_dlog ( s -> avctx , \"DC:%d %d %d\\n\" , s -> last_dc [ 0 ] , s -> last_dc [ 1 ] , s -> last_dc [ 2 ] ) ;\n }\n }\n mb_xy = s -> mb_x + s -> mb_y * s -> mb_width ;\n if ( show_bits ( & s -> gb , 12 ) == 0 || ( mb_xy && mb_xy < s -> mb_num ) ) {\n s -> mb_x = get_bits ( & s -> gb , 6 ) ;\n s -> mb_y = get_bits ( & s -> gb , 6 ) ;\n mb_count = get_bits ( & s -> gb , 12 ) ;\n }\n else {\n s -> mb_x = 0 ;\n s -> mb_y = 0 ;\n mb_count = s -> mb_width * s -> mb_height ;\n }\n skip_bits ( & s -> gb , 3 ) ;\n s -> f_code = 1 ;\n s -> unrestricted_mv = 1 ;\n return mb_count ;\n }"}
{"idx": 5066, "target": 0, "func": "static void test_bug30472 ( ) {\n MYSQL con ;\n char character_set_name_1 [ MY_CS_NAME_SIZE ] ;\n char character_set_client_1 [ MY_CS_NAME_SIZE ] ;\n char character_set_results_1 [ MY_CS_NAME_SIZE ] ;\n char collation_connnection_1 [ MY_CS_NAME_SIZE ] ;\n char character_set_name_2 [ MY_CS_NAME_SIZE ] ;\n char character_set_client_2 [ MY_CS_NAME_SIZE ] ;\n char character_set_results_2 [ MY_CS_NAME_SIZE ] ;\n char collation_connnection_2 [ MY_CS_NAME_SIZE ] ;\n char character_set_name_3 [ MY_CS_NAME_SIZE ] ;\n char character_set_client_3 [ MY_CS_NAME_SIZE ] ;\n char character_set_results_3 [ MY_CS_NAME_SIZE ] ;\n char collation_connnection_3 [ MY_CS_NAME_SIZE ] ;\n char character_set_name_4 [ MY_CS_NAME_SIZE ] ;\n char character_set_client_4 [ MY_CS_NAME_SIZE ] ;\n char character_set_results_4 [ MY_CS_NAME_SIZE ] ;\n char collation_connnection_4 [ MY_CS_NAME_SIZE ] ;\n DIE_UNLESS ( mysql_client_init ( & con ) ) ;\n DIE_UNLESS ( mysql_real_connect ( & con , opt_host , opt_user , opt_password , opt_db ? opt_db : \"test\" , opt_port , opt_unix_socket , CLIENT_FOUND_ROWS ) ) ;\n bug30472_retrieve_charset_info ( & con , character_set_name_1 , character_set_client_1 , character_set_results_1 , collation_connnection_1 ) ;\n DIE_IF ( mysql_set_character_set ( & con , \"utf8\" ) ) ;\n bug30472_retrieve_charset_info ( & con , character_set_name_2 , character_set_client_2 , character_set_results_2 , collation_connnection_2 ) ;\n DIE_UNLESS ( strcmp ( character_set_name_2 , \"utf8\" ) == 0 ) ;\n DIE_UNLESS ( strcmp ( character_set_client_2 , \"utf8\" ) == 0 ) ;\n DIE_UNLESS ( strcmp ( character_set_results_2 , \"utf8\" ) == 0 ) ;\n DIE_UNLESS ( strcmp ( collation_connnection_2 , \"utf8_general_ci\" ) == 0 ) ;\n DIE_UNLESS ( strcmp ( character_set_name_1 , character_set_name_2 ) != 0 ) ;\n DIE_UNLESS ( strcmp ( character_set_client_1 , character_set_client_2 ) != 0 ) ;\n DIE_UNLESS ( strcmp ( character_set_results_1 , character_set_results_2 ) != 0 ) ;\n DIE_UNLESS ( strcmp ( collation_connnection_1 , collation_connnection_2 ) != 0 ) ;\n DIE_IF ( mysql_change_user ( & con , opt_user , opt_password , opt_db ? opt_db : \"test\" ) ) ;\n bug30472_retrieve_charset_info ( & con , character_set_name_3 , character_set_client_3 , character_set_results_3 , collation_connnection_3 ) ;\n DIE_UNLESS ( strcmp ( character_set_name_1 , character_set_name_3 ) == 0 ) ;\n DIE_UNLESS ( strcmp ( character_set_client_1 , character_set_client_3 ) == 0 ) ;\n DIE_UNLESS ( strcmp ( character_set_results_1 , character_set_results_3 ) == 0 ) ;\n DIE_UNLESS ( strcmp ( collation_connnection_1 , collation_connnection_3 ) == 0 ) ;\n mysql_options ( & con , MYSQL_SET_CHARSET_NAME , \"utf8\" ) ;\n DIE_IF ( mysql_change_user ( & con , opt_user , opt_password , opt_db ? opt_db : \"test\" ) ) ;\n bug30472_retrieve_charset_info ( & con , character_set_name_4 , character_set_client_4 , character_set_results_4 , collation_connnection_4 ) ;\n DIE_UNLESS ( strcmp ( character_set_name_4 , \"utf8\" ) == 0 ) ;\n DIE_UNLESS ( strcmp ( character_set_client_4 , \"utf8\" ) == 0 ) ;\n DIE_UNLESS ( strcmp ( character_set_results_4 , \"utf8\" ) == 0 ) ;\n DIE_UNLESS ( strcmp ( collation_connnection_4 , \"utf8_general_ci\" ) == 0 ) ;\n mysql_close ( & con ) ;\n }"}
{"idx": 5067, "target": 0, "func": "static gpgme_error_t gpgsm_assuan_simple_command ( assuan_context_t ctx , char * cmd , engine_status_handler_t status_fnc , void * status_fnc_value ) {\n gpg_error_t err ;\n char * line ;\n size_t linelen ;\n err = assuan_write_line ( ctx , cmd ) ;\n if ( err ) return err ;\n do {\n err = assuan_read_line ( ctx , & line , & linelen ) ;\n if ( err ) return err ;\n if ( * line == '#' || ! linelen ) continue ;\n if ( linelen >= 2 && line [ 0 ] == 'O' && line [ 1 ] == 'K' && ( line [ 2 ] == '\\0' || line [ 2 ] == ' ' ) ) return 0 ;\n else if ( linelen >= 4 && line [ 0 ] == 'E' && line [ 1 ] == 'R' && line [ 2 ] == 'R' && line [ 3 ] == ' ' ) err = atoi ( & line [ 4 ] ) ;\n else if ( linelen >= 2 && line [ 0 ] == 'S' && line [ 1 ] == ' ' ) {\n char * rest ;\n gpgme_status_code_t r ;\n rest = strchr ( line + 2 , ' ' ) ;\n if ( ! rest ) rest = line + linelen ;\n else * ( rest ++ ) = 0 ;\n r = _gpgme_parse_status ( line + 2 ) ;\n if ( r >= 0 && status_fnc ) err = status_fnc ( status_fnc_value , r , rest ) ;\n else err = gpg_error ( GPG_ERR_GENERAL ) ;\n }\n else err = gpg_error ( GPG_ERR_GENERAL ) ;\n }\n while ( ! err ) ;\n return err ;\n }"}
{"idx": 5068, "target": 0, "func": "static size_t get_internal_buffer ( const gcry_sexp_t list , size_t * r_off ) {\n const unsigned char * p ;\n DATALEN n ;\n int type ;\n int level = 0 ;\n * r_off = 0 ;\n if ( list ) {\n p = list -> d ;\n while ( ( type = * p ) != ST_STOP ) {\n p ++ ;\n if ( type == ST_DATA ) {\n memcpy ( & n , p , sizeof n ) ;\n p += sizeof n + n ;\n }\n else if ( type == ST_OPEN ) {\n if ( ! level ) * r_off = ( p - 1 ) - list -> d ;\n level ++ ;\n }\n else if ( type == ST_CLOSE ) {\n level -- ;\n if ( ! level ) return p - list -> d ;\n }\n }\n }\n return 0 ;\n }"}
{"idx": 5069, "target": 1, "func": "hb_shape_plan_t * hb_shape_plan_create ( hb_face_t * face , const hb_segment_properties_t * props , const hb_feature_t * user_features , unsigned int num_user_features , const char * const * shaper_list ) {\n DEBUG_MSG_FUNC ( SHAPE_PLAN , NULL , \"face=%p num_features=%d shaper_list=%p\" , face , num_user_features , shaper_list ) ;\n hb_shape_plan_t * shape_plan ;\n hb_feature_t * features = NULL ;\n if ( unlikely ( ! face ) ) face = hb_face_get_empty ( ) ;\n if ( unlikely ( ! props || hb_object_is_inert ( face ) ) ) return hb_shape_plan_get_empty ( ) ;\n if ( num_user_features && ! ( features = ( hb_feature_t * ) malloc ( num_user_features * sizeof ( hb_feature_t ) ) ) ) return hb_shape_plan_get_empty ( ) ;\n if ( ! ( shape_plan = hb_object_create < hb_shape_plan_t > ( ) ) ) {\n free ( features ) ;\n return hb_shape_plan_get_empty ( ) ;\n }\n assert ( props -> direction != HB_DIRECTION_INVALID ) ;\n hb_face_make_immutable ( face ) ;\n shape_plan -> default_shaper_list = shaper_list == NULL ;\n shape_plan -> face_unsafe = face ;\n shape_plan -> props = * props ;\n shape_plan -> num_user_features = num_user_features ;\n shape_plan -> user_features = features ;\n if ( num_user_features ) memcpy ( features , user_features , num_user_features * sizeof ( hb_feature_t ) ) ;\n hb_shape_plan_plan ( shape_plan , user_features , num_user_features , shaper_list ) ;\n return shape_plan ;\n }"}
{"idx": 5070, "target": 0, "func": "static int pcnet_tdte_poll ( PCNetState * s ) {\n s -> csr [ 34 ] = s -> csr [ 35 ] = 0 ;\n if ( s -> tdra ) {\n hwaddr cxda = s -> tdra + ( CSR_XMTRL ( s ) - CSR_XMTRC ( s ) ) * ( BCR_SWSTYLE ( s ) ? 16 : 8 ) ;\n int bad = 0 ;\n CHECK_TMD ( cxda , bad ) ;\n if ( ! bad ) {\n if ( CSR_CXDA ( s ) != cxda ) {\n s -> csr [ 60 ] = s -> csr [ 34 ] ;\n s -> csr [ 61 ] = s -> csr [ 35 ] ;\n s -> csr [ 62 ] = CSR_CXBC ( s ) ;\n s -> csr [ 63 ] = CSR_CXST ( s ) ;\n }\n s -> csr [ 34 ] = cxda & 0xffff ;\n s -> csr [ 35 ] = cxda >> 16 ;\n # ifdef PCNET_DEBUG_X printf ( \"pcnet: BAD TMD XDA=0x%08x\\n\" , cxda ) ;\n # endif }\n }\n if ( CSR_CXDA ( s ) ) {\n struct pcnet_TMD tmd ;\n TMDLOAD ( & tmd , PHYSADDR ( s , CSR_CXDA ( s ) ) ) ;\n CSR_CXBC ( s ) = GET_FIELD ( tmd . length , TMDL , BCNT ) ;\n CSR_CXST ( s ) = tmd . status ;\n }\n else {\n CSR_CXBC ( s ) = CSR_CXST ( s ) = 0 ;\n }\n return ! ! ( CSR_CXST ( s ) & 0x8000 ) ;\n }"}
{"idx": 5071, "target": 0, "func": "static void xps_parse_poly_quadratic_bezier_segment ( fz_context * doc , fz_path * path , fz_xml * root , int stroking , int * skipped_stroke ) {\n char * points_att = fz_xml_att ( root , \"Points\" ) ;\n char * is_stroked_att = fz_xml_att ( root , \"IsStroked\" ) ;\n float x [ 2 ] , y [ 2 ] ;\n int is_stroked ;\n fz_point pt ;\n char * s ;\n int n ;\n if ( ! points_att ) {\n fz_warn ( doc , \"PolyQuadraticBezierSegment element has no points\" ) ;\n return ;\n }\n is_stroked = 1 ;\n if ( is_stroked_att && ! strcmp ( is_stroked_att , \"false\" ) ) is_stroked = 0 ;\n if ( ! is_stroked ) * skipped_stroke = 1 ;\n s = points_att ;\n n = 0 ;\n while ( * s != 0 ) {\n while ( * s == ' ' ) s ++ ;\n s = xps_parse_point ( s , & x [ n ] , & y [ n ] ) ;\n n ++ ;\n if ( n == 2 ) {\n if ( stroking && ! is_stroked ) {\n fz_moveto ( doc , path , x [ 1 ] , y [ 1 ] ) ;\n }\n else {\n pt = fz_currentpoint ( doc , path ) ;\n fz_curveto ( doc , path , ( pt . x + 2 * x [ 0 ] ) / 3 , ( pt . y + 2 * y [ 0 ] ) / 3 , ( x [ 1 ] + 2 * x [ 0 ] ) / 3 , ( y [ 1 ] + 2 * y [ 0 ] ) / 3 , x [ 1 ] , y [ 1 ] ) ;\n }\n n = 0 ;\n }\n }\n }"}
{"idx": 5072, "target": 0, "func": "void event_base_free ( struct event_base * base ) {\n int i , n_deleted = 0 ;\n struct event * ev ;\n if ( base == NULL && current_base ) base = current_base ;\n if ( base == current_base ) current_base = NULL ;\n assert ( base ) ;\n for ( ev = TAILQ_FIRST ( & base -> eventqueue ) ;\n ev ;\n ) {\n struct event * next = TAILQ_NEXT ( ev , ev_next ) ;\n if ( ! ( ev -> ev_flags & EVLIST_INTERNAL ) ) {\n event_del ( ev ) ;\n ++ n_deleted ;\n }\n ev = next ;\n }\n while ( ( ev = min_heap_top ( & base -> timeheap ) ) != NULL ) {\n event_del ( ev ) ;\n ++ n_deleted ;\n }\n for ( i = 0 ;\n i < base -> nactivequeues ;\n ++ i ) {\n for ( ev = TAILQ_FIRST ( base -> activequeues [ i ] ) ;\n ev ;\n ) {\n struct event * next = TAILQ_NEXT ( ev , ev_active_next ) ;\n if ( ! ( ev -> ev_flags & EVLIST_INTERNAL ) ) {\n event_del ( ev ) ;\n ++ n_deleted ;\n }\n ev = next ;\n }\n }\n if ( n_deleted ) event_debug ( ( \"%s: %d events were still set in base\" , __func__ , n_deleted ) ) ;\n if ( base -> evsel -> dealloc != NULL ) base -> evsel -> dealloc ( base , base -> evbase ) ;\n for ( i = 0 ;\n i < base -> nactivequeues ;\n ++ i ) assert ( TAILQ_EMPTY ( base -> activequeues [ i ] ) ) ;\n assert ( min_heap_empty ( & base -> timeheap ) ) ;\n min_heap_dtor ( & base -> timeheap ) ;\n for ( i = 0 ;\n i < base -> nactivequeues ;\n ++ i ) free ( base -> activequeues [ i ] ) ;\n free ( base -> activequeues ) ;\n assert ( TAILQ_EMPTY ( & base -> eventqueue ) ) ;\n free ( base ) ;\n }"}
{"idx": 5073, "target": 0, "func": "static void EmitBuffer ( scoped_refptr < media : : StreamParserBuffer > buffer ) {\n }"}
{"idx": 5074, "target": 0, "func": "static gcry_err_code_t dummy_encrypt ( int algorithm , gcry_mpi_t * resarr , gcry_mpi_t data , gcry_mpi_t * pkey , int flags ) {\n ( void ) algorithm ;\n ( void ) resarr ;\n ( void ) data ;\n ( void ) pkey ;\n ( void ) flags ;\n fips_signal_error ( \"using dummy public key function\" ) ;\n return GPG_ERR_NOT_IMPLEMENTED ;\n }"}
{"idx": 5075, "target": 0, "func": "static int dissect_h245_Application ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 502 \"../../asn1/h245/h245.cnf\" gint32 value ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_Application , Application_choice , & value ) ;\n codec_type = val_to_str ( value , h245_Application_vals , \"<unknown>\" ) ;\n return offset ;\n }"}
{"idx": 5076, "target": 0, "func": "static void initialize_dec ( ) {\n static int init_done = 0 ;\n if ( ! init_done ) {\n vp9_rtcd ( ) ;\n vp9_init_neighbors ( ) ;\n vp9_init_intra_predictors ( ) ;\n init_done = 1 ;\n }\n }"}
{"idx": 5077, "target": 0, "func": "static int make_boot_catalog ( struct archive_write * a ) {\n struct iso9660 * iso9660 = a -> format_data ;\n unsigned char * block ;\n unsigned char * p ;\n uint16_t sum , * wp ;\n block = wb_buffptr ( a ) ;\n memset ( block , 0 , LOGICAL_BLOCK_SIZE ) ;\n p = block ;\n p [ 0 ] = 1 ;\n p [ 1 ] = iso9660 -> el_torito . platform_id ;\n p [ 2 ] = p [ 3 ] = 0 ;\n if ( archive_strlen ( & ( iso9660 -> el_torito . id ) ) > 0 ) strncpy ( ( char * ) p + 4 , iso9660 -> el_torito . id . s , 23 ) ;\n p [ 27 ] = 0 ;\n p [ 28 ] = p [ 29 ] = 0 ;\n p [ 30 ] = 0x55 ;\n p [ 31 ] = 0xAA ;\n sum = 0 ;\n wp = ( uint16_t * ) block ;\n while ( wp < ( uint16_t * ) & block [ 32 ] ) sum += archive_le16dec ( wp ++ ) ;\n set_num_721 ( & block [ 28 ] , ( ~ sum ) + 1 ) ;\n p = & block [ 32 ] ;\n p [ 0 ] = 0x88 ;\n p [ 1 ] = iso9660 -> el_torito . media_type ;\n if ( iso9660 -> el_torito . media_type == BOOT_MEDIA_NO_EMULATION ) set_num_721 ( & p [ 2 ] , iso9660 -> el_torito . boot_load_seg ) ;\n else set_num_721 ( & p [ 2 ] , 0 ) ;\n p [ 4 ] = iso9660 -> el_torito . system_type ;\n p [ 5 ] = 0 ;\n if ( iso9660 -> el_torito . media_type == BOOT_MEDIA_NO_EMULATION ) set_num_721 ( & p [ 6 ] , iso9660 -> el_torito . boot_load_size ) ;\n else set_num_721 ( & p [ 6 ] , 1 ) ;\n set_num_731 ( & p [ 8 ] , iso9660 -> el_torito . boot -> file -> content . location ) ;\n memset ( & p [ 12 ] , 0 , 20 ) ;\n return ( wb_consume ( a , LOGICAL_BLOCK_SIZE ) ) ;\n }"}
{"idx": 5078, "target": 0, "func": "int luaD_protectedparser ( lua_State * L , ZIO * z , const char * name ) {\n struct SParser p ;\n int status ;\n p . z = z ;\n p . name = name ;\n luaZ_initbuffer ( L , & p . buff ) ;\n status = luaD_pcall ( L , f_parser , & p , savestack ( L , L -> top ) , L -> errfunc ) ;\n luaZ_freebuffer ( L , & p . buff ) ;\n return status ;\n }"}
{"idx": 5079, "target": 0, "func": "void luaD_call ( lua_State * L , StkId func , int nResults ) {\n if ( ++ L -> nCcalls >= LUAI_MAXCCALLS ) {\n if ( L -> nCcalls == LUAI_MAXCCALLS ) luaG_runerror ( L , \"C stack overflow\" ) ;\n else if ( L -> nCcalls >= ( LUAI_MAXCCALLS + ( LUAI_MAXCCALLS >> 3 ) ) ) luaD_throw ( L , LUA_ERRERR ) ;\n }\n if ( luaD_precall ( L , func , nResults ) == PCRLUA ) luaV_execute ( L , 1 ) ;\n L -> nCcalls -- ;\n luaC_checkGC ( L ) ;\n }"}
{"idx": 5080, "target": 0, "func": "static void qio_channel_websock_source_finalize ( GSource * source ) {\n QIOChannelWebsockSource * ssource = ( QIOChannelWebsockSource * ) source ;\n object_unref ( OBJECT ( ssource -> wioc ) ) ;\n }"}
{"idx": 5081, "target": 0, "func": "unsigned long # define BN_LONG long # define BN_BITS 128 # define BN_BYTES 8 # define BN_BITS2 64 # define BN_BITS4 32 # define BN_MASK ( 0xffffffffffffffffffffffffffffffffLL ) # define BN_MASK2 ( 0xffffffffffffffffL ) # define BN_MASK2l ( 0xffffffffL ) # define BN_MASK2h ( 0xffffffff00000000L ) # define BN_MASK2h1 ( 0xffffffff80000000L ) # define BN_TBIT ( 0x8000000000000000L ) # define BN_DEC_CONV ( 10000000000000000000UL ) # define BN_DEC_FMT1 \"%lu\" # define BN_DEC_FMT2 \"%019lu\" # define BN_DEC_NUM 19 # define BN_HEX_FMT1 \"%lX\" # define BN_HEX_FMT2 \"%016lX\" # endif # ifdef SIXTY_FOUR_BIT # undef BN_LLONG # undef BN_ULLONG # define BN_ULONG unsigned long long # define BN_LONG long long # define BN_BITS 128 # define BN_BYTES 8 # define BN_BITS2 64 # define BN_BITS4 32 # define BN_MASK2 ( 0xffffffffffffffffLL ) # define BN_MASK2l ( 0xffffffffL ) # define BN_MASK2h ( 0xffffffff00000000LL ) # define BN_MASK2h1 ( 0xffffffff80000000LL ) # define BN_TBIT ( 0x8000000000000000LL ) # define BN_DEC_CONV ( 10000000000000000000ULL ) # define BN_DEC_FMT1 \"%llu\" # define BN_DEC_FMT2 \"%019llu\" # define BN_DEC_NUM 19 # define BN_HEX_FMT1 \"%llX\" # define BN_HEX_FMT2 \"%016llX\" # endif # ifdef THIRTY_TWO_BIT # ifdef BN_LLONG # if defined ( _WIN32 ) && ! defined ( __GNUC__ ) # define BN_ULLONG unsigned __int64 # define BN_MASK ( 0xffffffffffffffffI64 ) # else # define BN_ULLONG unsigned long long # define BN_MASK ( 0xffffffffffffffffLL ) # endif # endif # define BN_ULONG unsigned int # define BN_LONG int # define BN_BITS 64 # define BN_BYTES 4 # define BN_BITS2 32 # define BN_BITS4 16 # define BN_MASK2 ( 0xffffffffL ) # define BN_MASK2l ( 0xffff ) # define BN_MASK2h1 ( 0xffff8000L ) # define BN_MASK2h ( 0xffff0000L ) # define BN_TBIT ( 0x80000000L ) # define BN_DEC_CONV ( 1000000000L ) # define BN_DEC_FMT1 \"%u\" # define BN_DEC_FMT2 \"%09u\" # define BN_DEC_NUM 9 # define BN_HEX_FMT1 \"%X\" # define BN_HEX_FMT2 \"%08X\" # endif # define BN_DEFAULT_BITS 1280 # define BN_FLG_MALLOCED 0x01 # define BN_FLG_STATIC_DATA 0x02 # define BN_FLG_CONSTTIME 0x04 # ifndef OPENSSL_NO_DEPRECATED # define BN_FLG_EXP_CONSTTIME BN_FLG_CONSTTIME # endif # ifndef OPENSSL_NO_DEPRECATED # define BN_FLG_FREE 0x8000 # endif # define BN_set_flags ( b , n ) ( ( b ) -> flags |= ( n ) ) # define BN_get_flags ( b , n ) ( ( b ) -> flags & ( n ) ) # define BN_with_flags ( dest , b , n ) ( ( dest ) -> d = ( b ) -> d , \\ ( dest ) -> top = ( b ) -> top , \\ ( dest ) -> dmax = ( b ) -> dmax , \\ ( dest ) -> neg = ( b ) -> neg , \\ ( dest ) -> flags = ( ( ( dest ) -> flags & BN_FLG_MALLOCED ) \\ | ( ( b ) -> flags & ~ BN_FLG_MALLOCED ) \\ | BN_FLG_STATIC_DATA \\ | ( n ) ) ) # if 0 typedef struct bignum_st BIGNUM ;\n typedef struct bignum_ctx BN_CTX ;\n typedef struct bn_blinding_st BN_BLINDING ;\n typedef struct bn_mont_ctx_st BN_MONT_CTX ;\n typedef struct bn_recp_ctx_st BN_RECP_CTX ;\n typedef struct bn_gencb_st BN_GENCB ;\n # endif struct bignum_st {\n BN_ULONG * d ;\n int top ;\n int dmax ;\n int neg ;\n int flags ;\n }\n ;\n struct bn_mont_ctx_st {\n int ri ;\n BIGNUM RR ;\n BIGNUM N ;\n BIGNUM Ni ;\n BN_ULONG n0 [ 2 ] ;\n int flags ;\n }\n ;\n struct bn_recp_ctx_st {\n BIGNUM N ;\n BIGNUM Nr ;\n int num_bits ;\n int shift ;\n int flags ;\n }\n ;\n struct bn_gencb_st {\n unsigned int ver ;\n void * arg ;\n union {\n void ( * cb_1 ) ( int , int , void * ) ;\n int ( * cb_2 ) ( int , int , BN_GENCB * ) ;\n }\n cb ;\n }\n ;\n int BN_GENCB_call ( BN_GENCB * cb , int a , int b ) ;\n # define BN_GENCB_set_old ( gencb , callback , cb_arg ) {\n \\ BN_GENCB * tmp_gencb = ( gencb ) ;\n \\ tmp_gencb -> ver = 1 ;\n \\ tmp_gencb -> arg = ( cb_arg ) ;\n \\ tmp_gencb -> cb . cb_1 = ( callback ) ;\n }\n # define BN_GENCB_set ( gencb , callback , cb_arg ) {\n \\ BN_GENCB * tmp_gencb = ( gencb ) ;\n \\ tmp_gencb -> ver = 2 ;\n \\ tmp_gencb -> arg = ( cb_arg ) ;\n \\ tmp_gencb -> cb . cb_2 = ( callback ) ;\n }\n # define BN_prime_checks 0 # define BN_prime_checks_for_size ( b ) ( ( b ) >= 1300 ? 2 : \\ ( b ) >= 850 ? 3 : \\ ( b ) >= 650 ? 4 : \\ ( b ) >= 550 ? 5 : \\ ( b ) >= 450 ? 6 : \\ ( b ) >= 400 ? 7 : \\ ( b ) >= 350 ? 8 : \\ ( b ) >= 300 ? 9 : \\ ( b ) >= 250 ? 12 : \\ ( b ) >= 200 ? 15 : \\ ( b ) >= 150 ? 18 : \\ 27 ) # define BN_num_bytes ( a ) ( ( BN_num_bits ( a ) + 7 ) / 8 ) # define BN_abs_is_word ( a , w ) ( ( ( ( a ) -> top == 1 ) && ( ( a ) -> d [ 0 ] == ( BN_ULONG ) ( w ) ) ) || \\ ( ( ( w ) == 0 ) && ( ( a ) -> top == 0 ) ) ) # define BN_is_zero ( a ) ( ( a ) -> top == 0 ) # define BN_is_one ( a ) ( BN_abs_is_word ( ( a ) , 1 ) && ! ( a ) -> neg ) # define BN_is_word ( a , w ) ( BN_abs_is_word ( ( a ) , ( w ) ) && ( ! ( w ) || ! ( a ) -> neg ) ) # define BN_is_odd ( a ) ( ( ( a ) -> top > 0 ) && ( ( a ) -> d [ 0 ] & 1 ) ) # define BN_one ( a ) ( BN_set_word ( ( a ) , 1 ) ) # define BN_zero_ex ( a ) \\ do {\n \\ BIGNUM * _tmp_bn = ( a ) ;\n \\ _tmp_bn -> top = 0 ;\n \\ _tmp_bn -> neg = 0 ;\n \\ }\n while ( 0 ) # ifdef OPENSSL_NO_DEPRECATED # define BN_zero ( a ) BN_zero_ex ( a ) # else # define BN_zero ( a ) ( BN_set_word ( ( a ) , 0 ) ) # endif const BIGNUM * BN_value_one ( void ) ;\n char * BN_options ( void ) ;\n BN_CTX * BN_CTX_new ( void ) ;\n # ifndef OPENSSL_NO_DEPRECATED void BN_CTX_init ( BN_CTX * c ) ;\n # endif void BN_CTX_free ( BN_CTX * c ) ;\n void BN_CTX_start ( BN_CTX * ctx ) ;\n BIGNUM * BN_CTX_get ( BN_CTX * ctx ) ;\n void BN_CTX_end ( BN_CTX * ctx ) ;\n int BN_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_pseudo_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_pseudo_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_num_bits ( const BIGNUM * a ) ;\n int BN_num_bits_word ( BN_ULONG l ) ;\n BIGNUM * BN_new ( void ) ;\n void BN_init ( BIGNUM * ) ;\n void BN_clear_free ( BIGNUM * a ) ;\n BIGNUM * BN_copy ( BIGNUM * a , const BIGNUM * b ) ;\n void BN_swap ( BIGNUM * a , BIGNUM * b ) ;\n BIGNUM * BN_bin2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2bin ( const BIGNUM * a , unsigned char * to ) ;\n BIGNUM * BN_mpi2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2mpi ( const BIGNUM * a , unsigned char * to ) ;\n int BN_sub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_usub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_uadd ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n int BN_sqr ( BIGNUM * r , const BIGNUM * a , BN_CTX * ctx ) ;\n void BN_set_negative ( BIGNUM * b , int n ) ;\n # define BN_is_negative ( a ) ( ( a ) -> neg != 0 ) int BN_div ( BIGNUM * dv , BIGNUM * rem , const BIGNUM * m , const BIGNUM * d , BN_CTX * ctx ) ;\n # define BN_mod ( rem , m , d , ctx ) BN_div ( NULL , ( rem ) , ( m ) , ( d ) , ( ctx ) ) int BN_nnmod ( BIGNUM * r , const BIGNUM * m , const BIGNUM * d , BN_CTX * ctx ) ;\n int BN_mod_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_add_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m ) ;\n int BN_mod_sub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_sub_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m ) ;\n int BN_mod_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_sqr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift1 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift1_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m ) ;\n int BN_mod_lshift ( BIGNUM * r , const BIGNUM * a , int n , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift_quick ( BIGNUM * r , const BIGNUM * a , int n , const BIGNUM * m ) ;\n BN_ULONG BN_mod_word ( const BIGNUM * a , BN_ULONG w ) ;\n BN_ULONG BN_div_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_mul_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_add_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_sub_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_set_word ( BIGNUM * a , BN_ULONG w ) ;\n BN_ULONG BN_get_word ( const BIGNUM * a ) ;\n int BN_cmp ( const BIGNUM * a , const BIGNUM * b ) ;\n void BN_free ( BIGNUM * a ) ;\n int BN_is_bit_set ( const BIGNUM * a , int n ) ;\n int BN_lshift ( BIGNUM * r , const BIGNUM * a , int n ) ;\n int BN_lshift1 ( BIGNUM * r , const BIGNUM * a ) ;\n int BN_exp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_mod_exp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_exp_mont ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) ;\n int BN_mod_exp_mont_consttime ( BIGNUM * rr , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * in_mont ) ;\n int BN_mod_exp_mont_word ( BIGNUM * r , BN_ULONG a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) ;\n int BN_mod_exp2_mont ( BIGNUM * r , const BIGNUM * a1 , const BIGNUM * p1 , const BIGNUM * a2 , const BIGNUM * p2 , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) ;\n int BN_mod_exp_simple ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mask_bits ( BIGNUM * a , int n ) ;\n # ifndef OPENSSL_NO_FP_API int BN_print_fp ( FILE * fp , const BIGNUM * a ) ;\n # endif # ifdef HEADER_BIO_H int BN_print ( BIO * fp , const BIGNUM * a ) ;\n # else int BN_print ( void * fp , const BIGNUM * a ) ;\n # endif int BN_reciprocal ( BIGNUM * r , const BIGNUM * m , int len , BN_CTX * ctx ) ;\n int BN_rshift ( BIGNUM * r , const BIGNUM * a , int n ) ;\n int BN_rshift1 ( BIGNUM * r , const BIGNUM * a ) ;\n void BN_clear ( BIGNUM * a ) ;\n BIGNUM * BN_dup ( const BIGNUM * a ) ;\n int BN_ucmp ( const BIGNUM * a , const BIGNUM * b ) ;\n int BN_set_bit ( BIGNUM * a , int n ) ;\n int BN_clear_bit ( BIGNUM * a , int n ) ;\n char * BN_bn2hex ( const BIGNUM * a ) ;\n char * BN_bn2dec ( const BIGNUM * a ) ;\n int BN_hex2bn ( BIGNUM * * a , const char * str ) ;\n int BN_dec2bn ( BIGNUM * * a , const char * str ) ;\n int BN_asc2bn ( BIGNUM * * a , const char * str ) ;\n int BN_gcd ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n int BN_kronecker ( const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n BIGNUM * BN_mod_inverse ( BIGNUM * ret , const BIGNUM * a , const BIGNUM * n , BN_CTX * ctx ) ;\n BIGNUM * BN_mod_sqrt ( BIGNUM * ret , const BIGNUM * a , const BIGNUM * n , BN_CTX * ctx ) ;\n void BN_consttime_swap ( BN_ULONG swap , BIGNUM * a , BIGNUM * b , int nwords ) ;\n # ifndef OPENSSL_NO_DEPRECATED BIGNUM * BN_generate_prime ( BIGNUM * ret , int bits , int safe , const BIGNUM * add , const BIGNUM * rem , void ( * callback ) ( int , int , void * ) , void * cb_arg ) ;\n int BN_is_prime ( const BIGNUM * p , int nchecks , void ( * callback ) ( int , int , void * ) , BN_CTX * ctx , void * cb_arg ) ;\n int BN_is_prime_fasttest ( const BIGNUM * p , int nchecks , void ( * callback ) ( int , int , void * ) , BN_CTX * ctx , void * cb_arg , int do_trial_division ) ;\n # endif int BN_generate_prime_ex ( BIGNUM * ret , int bits , int safe , const BIGNUM * add , const BIGNUM * rem , BN_GENCB * cb ) ;\n int BN_is_prime_ex ( const BIGNUM * p , int nchecks , BN_CTX * ctx , BN_GENCB * cb ) ;\n int BN_is_prime_fasttest_ex ( const BIGNUM * p , int nchecks , BN_CTX * ctx , int do_trial_division , BN_GENCB * cb ) ;\n int BN_X931_generate_Xpq ( BIGNUM * Xp , BIGNUM * Xq , int nbits , BN_CTX * ctx ) ;\n int BN_X931_derive_prime_ex ( BIGNUM * p , BIGNUM * p1 , BIGNUM * p2 , const BIGNUM * Xp , const BIGNUM * Xp1 , const BIGNUM * Xp2 , const BIGNUM * e , BN_CTX * ctx , BN_GENCB * cb ) ;\n int BN_X931_generate_prime_ex ( BIGNUM * p , BIGNUM * p1 , BIGNUM * p2 , BIGNUM * Xp1 , BIGNUM * Xp2 , const BIGNUM * Xp , const BIGNUM * e , BN_CTX * ctx , BN_GENCB * cb ) ;\n BN_MONT_CTX * BN_MONT_CTX_new ( void ) ;\n void BN_MONT_CTX_init ( BN_MONT_CTX * ctx ) ;\n int BN_mod_mul_montgomery ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_MONT_CTX * mont , BN_CTX * ctx ) ;\n # define BN_to_montgomery ( r , a , mont , ctx ) BN_mod_mul_montgomery ( \\ ( r ) , ( a ) , & ( ( mont ) -> RR ) , ( mont ) , ( ctx ) ) int BN_from_montgomery ( BIGNUM * r , const BIGNUM * a , BN_MONT_CTX * mont , BN_CTX * ctx ) ;\n void BN_MONT_CTX_free ( BN_MONT_CTX * mont ) ;\n int BN_MONT_CTX_set ( BN_MONT_CTX * mont , const BIGNUM * mod , BN_CTX * ctx ) ;\n BN_MONT_CTX * BN_MONT_CTX_copy ( BN_MONT_CTX * to , BN_MONT_CTX * from ) ;\n BN_MONT_CTX * BN_MONT_CTX_set_locked ( BN_MONT_CTX * * pmont , int lock , const BIGNUM * mod , BN_CTX * ctx ) ;\n # define BN_BLINDING_NO_UPDATE 0x00000001 # define BN_BLINDING_NO_RECREATE 0x00000002 BN_BLINDING * BN_BLINDING_new ( const BIGNUM * A , const BIGNUM * Ai , BIGNUM * mod ) ;\n void BN_BLINDING_free ( BN_BLINDING * b ) ;\n int BN_BLINDING_update ( BN_BLINDING * b , BN_CTX * ctx ) ;\n int BN_BLINDING_convert ( BIGNUM * n , BN_BLINDING * b , BN_CTX * ctx ) ;\n int BN_BLINDING_invert ( BIGNUM * n , BN_BLINDING * b , BN_CTX * ctx ) ;\n int BN_BLINDING_convert_ex ( BIGNUM * n , BIGNUM * r , BN_BLINDING * b , BN_CTX * ) ;\n int BN_BLINDING_invert_ex ( BIGNUM * n , const BIGNUM * r , BN_BLINDING * b , BN_CTX * ) ;\n # ifndef OPENSSL_NO_DEPRECATED unsigned long BN_BLINDING_get_thread_id ( const BN_BLINDING * ) ;\n void BN_BLINDING_set_thread_id ( BN_BLINDING * , unsigned long ) ;\n # endif CRYPTO_THREADID * BN_BLINDING_thread_id ( BN_BLINDING * ) ;\n unsigned long BN_BLINDING_get_flags ( const BN_BLINDING * ) ;\n void BN_BLINDING_set_flags ( BN_BLINDING * , unsigned long ) ;\n BN_BLINDING * BN_BLINDING_create_param ( BN_BLINDING * b , const BIGNUM * e , BIGNUM * m , BN_CTX * ctx , int ( * bn_mod_exp ) ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) , BN_MONT_CTX * m_ctx ) ;\n # ifndef OPENSSL_NO_DEPRECATED void BN_set_params ( int mul , int high , int low , int mont ) ;\n int BN_get_params ( int which ) ;\n # endif void BN_RECP_CTX_init ( BN_RECP_CTX * recp ) ;\n BN_RECP_CTX * BN_RECP_CTX_new ( void ) ;\n void BN_RECP_CTX_free ( BN_RECP_CTX * recp ) ;\n int BN_RECP_CTX_set ( BN_RECP_CTX * recp , const BIGNUM * rdiv , BN_CTX * ctx ) ;\n int BN_mod_mul_reciprocal ( BIGNUM * r , const BIGNUM * x , const BIGNUM * y , BN_RECP_CTX * recp , BN_CTX * ctx ) ;\n int BN_mod_exp_recp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_div_recp ( BIGNUM * dv , BIGNUM * rem , const BIGNUM * m , BN_RECP_CTX * recp , BN_CTX * ctx ) ;\n # ifndef OPENSSL_NO_EC2M int BN_GF2m_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n # define BN_GF2m_sub ( r , a , b ) BN_GF2m_add ( r , a , b ) int BN_GF2m_mod ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p ) ;\n int BN_GF2m_mod_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_inv ( BIGNUM * r , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_div ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_exp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqrt ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_solve_quad ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n # define BN_GF2m_cmp ( a , b ) BN_ucmp ( ( a ) , ( b ) ) int BN_GF2m_mod_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] ) ;\n int BN_GF2m_mod_mul_arr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqr_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_inv_arr ( BIGNUM * r , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_div_arr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_exp_arr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqrt_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_solve_quad_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_poly2arr ( const BIGNUM * a , int p [ ] , int max ) ;\n int BN_GF2m_arr2poly ( const int p [ ] , BIGNUM * a ) ;\n # endif int BN_nist_mod_192 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_224 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_256 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_384 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_521 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n const BIGNUM * BN_get0_nist_prime_192 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_224 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_256 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_384 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_521 ( void ) ;\n int ( * BN_nist_mod_func ( const BIGNUM * p ) ) ( BIGNUM * r , const BIGNUM * a , const BIGNUM * field , BN_CTX * ctx ) ;\n int BN_generate_dsa_nonce ( BIGNUM * out , const BIGNUM * range , const BIGNUM * priv , const unsigned char * message , size_t message_len , BN_CTX * ctx ) ;\n # define bn_expand ( a , bits ) ( ( ( ( ( ( bits + BN_BITS2 - 1 ) ) / BN_BITS2 ) ) <= ( a ) -> dmax ) ? \\ ( a ) : bn_expand2 ( ( a ) , ( bits + BN_BITS2 - 1 ) / BN_BITS2 ) ) # define bn_wexpand ( a , words ) ( ( ( words ) <= ( a ) -> dmax ) ? ( a ) : bn_expand2 ( ( a ) , ( words ) ) ) BIGNUM * bn_expand2 ( BIGNUM * a , int words ) ;\n # ifndef OPENSSL_NO_DEPRECATED BIGNUM * bn_dup_expand ( const BIGNUM * a , int words ) ;\n # endif # ifdef BN_DEBUG # include < assert . h > # ifdef BN_DEBUG_RAND # ifndef RAND_pseudo_bytes int RAND_pseudo_bytes ( unsigned char * buf , int num ) ;\n # define BN_DEBUG_TRIX # endif # define bn_pollute ( a ) \\ do {\n \\ const BIGNUM * _bnum1 = ( a ) ;\n \\ if ( _bnum1 -> top < _bnum1 -> dmax ) {\n \\ unsigned char _tmp_char ;\n \\ \\ BN_ULONG * _not_const ;\n \\ memcpy ( & _not_const , & _bnum1 -> d , sizeof ( BN_ULONG * ) ) ;\n \\ RAND_pseudo_bytes ( & _tmp_char , 1 ) ;\n \\ memset ( ( unsigned char * ) ( _not_const + _bnum1 -> top ) , _tmp_char , \\ ( _bnum1 -> dmax - _bnum1 -> top ) * sizeof ( BN_ULONG ) ) ;\n \\ }\n \\ }\n while ( 0 ) # ifdef BN_DEBUG_TRIX # undef RAND_pseudo_bytes # endif # else # define bn_pollute ( a ) # endif # define bn_check_top ( a ) \\ do {\n \\ const BIGNUM * _bnum2 = ( a ) ;\n \\ if ( _bnum2 != NULL ) {\n \\ assert ( ( _bnum2 -> top == 0 ) || \\ ( _bnum2 -> d [ _bnum2 -> top - 1 ] != 0 ) ) ;\n \\ bn_pollute ( _bnum2 ) ;\n \\ }\n \\ }\n while ( 0 ) # define bn_fix_top ( a ) bn_check_top ( a ) # define bn_check_size ( bn , bits ) bn_wcheck_size ( bn , ( ( bits + BN_BITS2 - 1 ) ) / BN_BITS2 ) # define bn_wcheck_size ( bn , words ) \\ do {\n \\ const BIGNUM * _bnum2 = ( bn ) ;\n \\ assert ( words <= ( _bnum2 ) -> dmax && words >= ( _bnum2 ) -> top ) ;\n \\ }\n while ( 0 ) # else # define bn_pollute ( a ) # define bn_check_top ( a ) # define bn_fix_top ( a ) bn_correct_top ( a ) # define bn_check_size ( bn , bits ) # define bn_wcheck_size ( bn , words ) # endif # define bn_correct_top ( a ) \\ {\n \\ BN_ULONG * ftl ;\n \\ int tmp_top = ( a ) -> top ;\n \\ if ( tmp_top > 0 ) \\ {\n \\ for ( ftl = & ( ( a ) -> d [ tmp_top - 1 ] ) ;\n tmp_top > 0 ;\n tmp_top -- ) \\ if ( * ( ftl -- ) ) break ;\n \\ ( a ) -> top = tmp_top ;\n \\ }\n \\ bn_pollute ( a ) ;\n \\ }\n BN_ULONG bn_mul_add_words ( BN_ULONG * rp , const BN_ULONG * ap , int num , BN_ULONG w ) ;\n BN_ULONG bn_mul_words ( BN_ULONG * rp , const BN_ULONG * ap , int num , BN_ULONG w ) ;\n void bn_sqr_words ( BN_ULONG * rp , const BN_ULONG * ap , int num ) ;\n BN_ULONG bn_div_words ( BN_ULONG h , BN_ULONG l , BN_ULONG d ) ;\n BN_ULONG bn_add_words ( BN_ULONG * rp , const BN_ULONG * ap , const BN_ULONG * bp , int num ) ;\n BN_ULONG bn_sub_words ( BN_ULONG * rp , const BN_ULONG * ap , const BN_ULONG * bp , int num )"}
{"idx": 5082, "target": 0, "func": "static void hb_fir_filter ( float * out , const float fir_coef [ HB_FIR_SIZE + 1 ] , float mem [ HB_FIR_SIZE ] , const float * in ) {\n int i , j ;\n float data [ AMRWB_SFR_SIZE_16k + HB_FIR_SIZE ] ;\n memcpy ( data , mem , HB_FIR_SIZE * sizeof ( float ) ) ;\n memcpy ( data + HB_FIR_SIZE , in , AMRWB_SFR_SIZE_16k * sizeof ( float ) ) ;\n for ( i = 0 ;\n i < AMRWB_SFR_SIZE_16k ;\n i ++ ) {\n out [ i ] = 0.0 ;\n for ( j = 0 ;\n j <= HB_FIR_SIZE ;\n j ++ ) out [ i ] += data [ i + j ] * fir_coef [ j ] ;\n }\n memcpy ( mem , data + AMRWB_SFR_SIZE_16k , HB_FIR_SIZE * sizeof ( float ) ) ;\n }"}
{"idx": 5083, "target": 0, "func": "static int is_slice_short ( struct dxva_context * ctx ) {\n assert ( ctx -> cfg -> ConfigBitstreamRaw == 1 || ctx -> cfg -> ConfigBitstreamRaw == 2 ) ;\n return ctx -> cfg -> ConfigBitstreamRaw == 2 ;\n }"}
{"idx": 5084, "target": 0, "func": "static gchar * rtmpt_get_packet_desc ( tvbuff_t * tvb , guint32 offset , guint32 remain , rtmpt_conv_t * rconv , int cdir , rtmpt_packet_t * tp , gint * deschasopcode ) {\n if ( tp -> cmd == RTMPT_TYPE_CHUNK_SIZE || tp -> cmd == RTMPT_TYPE_ABORT_MESSAGE || tp -> cmd == RTMPT_TYPE_ACKNOWLEDGEMENT || tp -> cmd == RTMPT_TYPE_WINDOW ) {\n if ( tp -> len >= 4 && remain >= 4 ) {\n * deschasopcode = TRUE ;\n return wmem_strdup_printf ( wmem_packet_scope ( ) , \"%s %d\" , val_to_str ( tp -> cmd , rtmpt_opcode_vals , \"Unknown (0x%01x)\" ) , tvb_get_ntohl ( tvb , offset ) ) ;\n }\n }\n else if ( tp -> cmd == RTMPT_TYPE_PEER_BANDWIDTH ) {\n if ( tp -> len >= 5 && remain >= 5 ) {\n * deschasopcode = TRUE ;\n return wmem_strdup_printf ( wmem_packet_scope ( ) , \"%s %d,%s\" , val_to_str ( tp -> cmd , rtmpt_opcode_vals , \"Unknown (0x%01x)\" ) , tvb_get_ntohl ( tvb , offset ) , val_to_str ( tvb_get_guint8 ( tvb , offset + 4 ) , rtmpt_limit_vals , \"Unknown (%d)\" ) ) ;\n }\n }\n else if ( tp -> cmd == RTMPT_TYPE_UCM ) {\n guint16 iUCM = - 1 ;\n const gchar * sFunc ;\n const gchar * sParam = \"\" ;\n if ( tp -> len < 2 || remain < 2 ) return NULL ;\n iUCM = tvb_get_ntohs ( tvb , offset ) ;\n sFunc = try_val_to_str ( iUCM , rtmpt_ucm_vals ) ;\n if ( sFunc == NULL ) {\n * deschasopcode = TRUE ;\n sFunc = wmem_strdup_printf ( wmem_packet_scope ( ) , \"User Control Message 0x%01x\" , iUCM ) ;\n }\n if ( iUCM == RTMPT_UCM_STREAM_BEGIN || iUCM == RTMPT_UCM_STREAM_EOF || iUCM == RTMPT_UCM_STREAM_DRY || iUCM == RTMPT_UCM_STREAM_ISRECORDED ) {\n if ( tp -> len >= 6 && remain >= 6 ) {\n sParam = wmem_strdup_printf ( wmem_packet_scope ( ) , \" %d\" , tvb_get_ntohl ( tvb , offset + 2 ) ) ;\n }\n }\n else if ( iUCM == RTMPT_UCM_SET_BUFFER ) {\n if ( tp -> len >= 10 && remain >= 10 ) {\n sParam = wmem_strdup_printf ( wmem_packet_scope ( ) , \" %d,%dms\" , tvb_get_ntohl ( tvb , offset + 2 ) , tvb_get_ntohl ( tvb , offset + 6 ) ) ;\n }\n }\n return wmem_strdup_printf ( wmem_packet_scope ( ) , \"%s%s\" , sFunc , sParam ) ;\n }\n else if ( tp -> cmd == RTMPT_TYPE_COMMAND_AMF0 || tp -> cmd == RTMPT_TYPE_COMMAND_AMF3 || tp -> cmd == RTMPT_TYPE_DATA_AMF0 || tp -> cmd == RTMPT_TYPE_DATA_AMF3 ) {\n guint32 slen = 0 ;\n guint32 soff = 0 ;\n gchar * sFunc = NULL ;\n gchar * sParam = NULL ;\n if ( tp -> cmd == RTMPT_TYPE_COMMAND_AMF3 || tp -> cmd == RTMPT_TYPE_DATA_AMF3 ) {\n soff = 1 ;\n }\n if ( tp -> len >= 3 + soff && remain >= 3 + soff ) {\n slen = tvb_get_ntohs ( tvb , offset + 1 + soff ) ;\n }\n if ( slen > 0 ) {\n sFunc = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset + 3 + soff , slen , ENC_ASCII ) ;\n RTMPT_DEBUG ( \"got function call '%s'\\n\" , sFunc ) ;\n if ( strcmp ( sFunc , \"connect\" ) == 0 ) {\n sParam = rtmpt_get_amf_param ( tvb , offset + soff , 2 , \"app\" ) ;\n }\n else if ( strcmp ( sFunc , \"play\" ) == 0 ) {\n sParam = rtmpt_get_amf_param ( tvb , offset + soff , 3 , NULL ) ;\n }\n else if ( strcmp ( sFunc , \"play2\" ) == 0 ) {\n sParam = rtmpt_get_amf_param ( tvb , offset + soff , 3 , \"streamName\" ) ;\n }\n else if ( strcmp ( sFunc , \"releaseStream\" ) == 0 ) {\n sParam = rtmpt_get_amf_param ( tvb , offset + soff , 3 , NULL ) ;\n }\n else if ( strcmp ( sFunc , \"FCPublish\" ) == 0 ) {\n sParam = rtmpt_get_amf_param ( tvb , offset + soff , 3 , NULL ) ;\n }\n else if ( strcmp ( sFunc , \"publish\" ) == 0 ) {\n sParam = rtmpt_get_amf_param ( tvb , offset + soff , 3 , NULL ) ;\n }\n else if ( strcmp ( sFunc , \"onStatus\" ) == 0 ) {\n if ( tp -> cmd == RTMPT_TYPE_COMMAND_AMF0 || tp -> cmd == RTMPT_TYPE_COMMAND_AMF3 ) {\n sParam = rtmpt_get_amf_param ( tvb , offset + soff , 3 , \"code\" ) ;\n }\n else {\n sParam = rtmpt_get_amf_param ( tvb , offset + soff , 1 , \"code\" ) ;\n }\n }\n else if ( strcmp ( sFunc , \"onPlayStatus\" ) == 0 ) {\n sParam = rtmpt_get_amf_param ( tvb , offset + soff , 1 , \"code\" ) ;\n }\n else if ( strcmp ( sFunc , \"_result\" ) == 0 ) {\n sParam = rtmpt_get_amf_param ( tvb , offset + soff , 3 , \"code\" ) ;\n tp -> isresponse = TRUE ;\n }\n else if ( strcmp ( sFunc , \"_error\" ) == 0 ) {\n sParam = rtmpt_get_amf_param ( tvb , offset + soff , 3 , \"code\" ) ;\n tp -> isresponse = TRUE ;\n }\n if ( tp -> txid != 0 && tp -> otherframe == 0 ) {\n tp -> otherframe = GPOINTER_TO_INT ( wmem_tree_lookup32 ( rconv -> txids [ cdir ^ 1 ] , tp -> txid ) ) ;\n if ( tp -> otherframe ) {\n RTMPT_DEBUG ( \"got otherframe=%d\\n\" , tp -> otherframe ) ;\n }\n }\n }\n if ( sFunc ) {\n if ( sParam ) {\n return wmem_strdup_printf ( wmem_packet_scope ( ) , \"%s('%s')\" , sFunc , sParam ) ;\n }\n else {\n return wmem_strdup_printf ( wmem_packet_scope ( ) , \"%s()\" , sFunc ) ;\n }\n }\n }\n return NULL ;\n }"}
{"idx": 5085, "target": 0, "func": "static PyObject * checkPassword ( PyObject * self , PyObject * args ) {\n const char * user = NULL ;\n const char * pswd = NULL ;\n const char * service = NULL ;\n const char * default_realm = NULL ;\n const int verify = 1 ;\n int result = 0 ;\n if ( ! PyArg_ParseTuple ( args , \"ssssb\" , & user , & pswd , & service , & default_realm , & verify ) ) return NULL ;\n result = authenticate_user_krb5pwd ( user , pswd , service , default_realm , verify ) ;\n if ( result ) return Py_INCREF ( Py_True ) , Py_True ;\n else return NULL ;\n }"}
{"idx": 5086, "target": 0, "func": "void xsltFreeAVTList ( void * avt ) {\n xsltAttrVTPtr cur = ( xsltAttrVTPtr ) avt , next ;\n while ( cur != NULL ) {\n next = cur -> next ;\n xsltFreeAttrVT ( cur ) ;\n cur = next ;\n }\n }"}
{"idx": 5087, "target": 0, "func": "static gs_memory_t * gs_heap_stable ( gs_memory_t * mem ) {\n return mem ;\n }"}
{"idx": 5088, "target": 0, "func": "int lcc_network_buffer_initialize ( lcc_network_buffer_t * nb ) {\n if ( nb == NULL ) return ( EINVAL ) ;\n memset ( nb -> buffer , 0 , nb -> size ) ;\n memset ( & nb -> state , 0 , sizeof ( nb -> state ) ) ;\n nb -> ptr = nb -> buffer ;\n nb -> free = nb -> size ;\n # if HAVE_LIBGCRYPT if ( nb -> seclevel == SIGN ) {\n size_t username_len ;\n uint16_t pkg_type = htons ( TYPE_SIGN_SHA256 ) ;\n uint16_t pkg_length = PART_SIGNATURE_SHA256_SIZE ;\n assert ( nb -> username != NULL ) ;\n username_len = strlen ( nb -> username ) ;\n pkg_length = htons ( pkg_length + ( ( uint16_t ) username_len ) ) ;\n memcpy ( nb -> ptr , & pkg_type , sizeof ( pkg_type ) ) ;\n memcpy ( nb -> ptr + sizeof ( pkg_type ) , & pkg_length , sizeof ( pkg_length ) ) ;\n nb -> ptr += PART_SIGNATURE_SHA256_SIZE ;\n nb -> free -= PART_SIGNATURE_SHA256_SIZE ;\n memcpy ( nb -> ptr , nb -> username , username_len ) ;\n nb -> ptr += username_len ;\n nb -> free -= username_len ;\n }\n else if ( nb -> seclevel == ENCRYPT ) {\n size_t username_length = strlen ( nb -> username ) ;\n uint16_t pkg_type = htons ( TYPE_ENCR_AES256 ) ;\n uint16_t pkg_length = 0 ;\n uint16_t pkg_user_len = htons ( ( uint16_t ) username_length ) ;\n char hash [ 20 ] ;\n nb -> encr_header_len = username_length ;\n nb -> encr_header_len += PART_ENCRYPTION_AES256_SIZE ;\n gcry_randomize ( ( void * ) & nb -> encr_iv , sizeof ( nb -> encr_iv ) , GCRY_STRONG_RANDOM ) ;\n memset ( hash , 0 , sizeof ( hash ) ) ;\n ADD_STATIC ( nb , pkg_type ) ;\n ADD_STATIC ( nb , pkg_length ) ;\n ADD_STATIC ( nb , pkg_user_len ) ;\n ADD_GENERIC ( nb , nb -> username , username_length ) ;\n ADD_GENERIC ( nb , nb -> encr_iv , sizeof ( nb -> encr_iv ) ) ;\n ADD_GENERIC ( nb , hash , sizeof ( hash ) ) ;\n assert ( ( nb -> encr_header_len + nb -> free ) == nb -> size ) ;\n }\n # endif return ( 0 ) ;\n }"}
{"idx": 5089, "target": 0, "func": "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 ) {\n uint8_t comp_pred [ m * n ] ;\n vp9_comp_avg_pred ( comp_pred , second_pred , m , n , ref , ref_stride ) ;\n return sad ( src , src_stride , comp_pred , m , m , n ) ;\n \\ }\n # define sadMxNxK ( m , n , k ) void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 )"}
{"idx": 5090, "target": 0, "func": "void proto_register_zbee_zcl_on_off ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_zbee_zcl_on_off_attr_id , {\n \"Attribute\" , \"zbee_zcl_general.onoff.attr_id\" , FT_UINT16 , BASE_HEX , VALS ( zbee_zcl_on_off_attr_names ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_on_off_attr_onoff , {\n \"Data Value\" , \"zbee_zcl_general.onoff.attr.onoff\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_on_off_onoff_names ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_on_off_srv_rx_cmd_id , {\n \"Command\" , \"zbee_zcl_general.onoff.cmd.srv_rx.id\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_on_off_srv_rx_cmd_names ) , 0x00 , NULL , HFILL }\n }\n }\n ;\n proto_zbee_zcl_on_off = proto_register_protocol ( \"ZigBee ZCL OnOff\" , \"ZCL OnOff\" , ZBEE_PROTOABBREV_ZCL_ONOFF ) ;\n proto_register_field_array ( proto_zbee_zcl_on_off , hf , array_length ( hf ) ) ;\n register_dissector ( ZBEE_PROTOABBREV_ZCL_ONOFF , dissect_zbee_zcl_on_off , proto_zbee_zcl_on_off ) ;\n }"}
{"idx": 5091, "target": 0, "func": "static int field_end ( H264Context * h , int in_setup ) {\n AVCodecContext * const avctx = h -> avctx ;\n int err = 0 ;\n h -> mb_y = 0 ;\n if ( CONFIG_H264_VDPAU_DECODER && h -> avctx -> codec -> capabilities & CODEC_CAP_HWACCEL_VDPAU ) ff_vdpau_h264_set_reference_frames ( h ) ;\n if ( in_setup || ! ( avctx -> active_thread_type & FF_THREAD_FRAME ) ) {\n if ( ! h -> droppable ) {\n err = ff_h264_execute_ref_pic_marking ( h , h -> mmco , h -> mmco_index ) ;\n h -> prev_poc_msb = h -> poc_msb ;\n h -> prev_poc_lsb = h -> poc_lsb ;\n }\n h -> prev_frame_num_offset = h -> frame_num_offset ;\n h -> prev_frame_num = h -> frame_num ;\n h -> outputed_poc = h -> next_outputed_poc ;\n }\n if ( avctx -> hwaccel ) {\n if ( avctx -> hwaccel -> end_frame ( avctx ) < 0 ) av_log ( avctx , AV_LOG_ERROR , \"hardware accelerator failed to decode picture\\n\" ) ;\n }\n if ( CONFIG_H264_VDPAU_DECODER && h -> avctx -> codec -> capabilities & CODEC_CAP_HWACCEL_VDPAU ) ff_vdpau_h264_picture_complete ( h ) ;\n if ( CONFIG_ERROR_RESILIENCE && ! FIELD_PICTURE ( h ) && h -> current_slice && ! h -> sps . new ) {\n h -> er . cur_pic = h -> cur_pic_ptr ;\n ff_er_frame_end ( & h -> er ) ;\n }\n if ( ! in_setup && ! h -> droppable ) ff_thread_report_progress ( & h -> cur_pic_ptr -> tf , INT_MAX , h -> picture_structure == PICT_BOTTOM_FIELD ) ;\n emms_c ( ) ;\n h -> current_slice = 0 ;\n return err ;\n }"}
{"idx": 5092, "target": 0, "func": "static void estimate_ref_frame_costs ( const VP9_COMMON * cm , const MACROBLOCKD * xd , int segment_id , unsigned int * ref_costs_single , unsigned int * ref_costs_comp , vp9_prob * comp_mode_p ) {\n int seg_ref_active = vp9_segfeature_active ( & cm -> seg , segment_id , SEG_LVL_REF_FRAME ) ;\n if ( seg_ref_active ) {\n vpx_memset ( ref_costs_single , 0 , MAX_REF_FRAMES * sizeof ( * ref_costs_single ) ) ;\n vpx_memset ( ref_costs_comp , 0 , MAX_REF_FRAMES * sizeof ( * ref_costs_comp ) ) ;\n * comp_mode_p = 128 ;\n }\n else {\n vp9_prob intra_inter_p = vp9_get_intra_inter_prob ( cm , xd ) ;\n vp9_prob comp_inter_p = 128 ;\n if ( cm -> reference_mode == REFERENCE_MODE_SELECT ) {\n comp_inter_p = vp9_get_reference_mode_prob ( cm , xd ) ;\n * comp_mode_p = comp_inter_p ;\n }\n else {\n * comp_mode_p = 128 ;\n }\n ref_costs_single [ INTRA_FRAME ] = vp9_cost_bit ( intra_inter_p , 0 ) ;\n if ( cm -> reference_mode != COMPOUND_REFERENCE ) {\n vp9_prob ref_single_p1 = vp9_get_pred_prob_single_ref_p1 ( cm , xd ) ;\n vp9_prob ref_single_p2 = vp9_get_pred_prob_single_ref_p2 ( cm , xd ) ;\n unsigned int base_cost = vp9_cost_bit ( intra_inter_p , 1 ) ;\n if ( cm -> reference_mode == REFERENCE_MODE_SELECT ) base_cost += vp9_cost_bit ( comp_inter_p , 0 ) ;\n ref_costs_single [ LAST_FRAME ] = ref_costs_single [ GOLDEN_FRAME ] = ref_costs_single [ ALTREF_FRAME ] = base_cost ;\n ref_costs_single [ LAST_FRAME ] += vp9_cost_bit ( ref_single_p1 , 0 ) ;\n ref_costs_single [ GOLDEN_FRAME ] += vp9_cost_bit ( ref_single_p1 , 1 ) ;\n ref_costs_single [ ALTREF_FRAME ] += vp9_cost_bit ( ref_single_p1 , 1 ) ;\n ref_costs_single [ GOLDEN_FRAME ] += vp9_cost_bit ( ref_single_p2 , 0 ) ;\n ref_costs_single [ ALTREF_FRAME ] += vp9_cost_bit ( ref_single_p2 , 1 ) ;\n }\n else {\n ref_costs_single [ LAST_FRAME ] = 512 ;\n ref_costs_single [ GOLDEN_FRAME ] = 512 ;\n ref_costs_single [ ALTREF_FRAME ] = 512 ;\n }\n if ( cm -> reference_mode != SINGLE_REFERENCE ) {\n vp9_prob ref_comp_p = vp9_get_pred_prob_comp_ref_p ( cm , xd ) ;\n unsigned int base_cost = vp9_cost_bit ( intra_inter_p , 1 ) ;\n if ( cm -> reference_mode == REFERENCE_MODE_SELECT ) base_cost += vp9_cost_bit ( comp_inter_p , 1 ) ;\n ref_costs_comp [ LAST_FRAME ] = base_cost + vp9_cost_bit ( ref_comp_p , 0 ) ;\n ref_costs_comp [ GOLDEN_FRAME ] = base_cost + vp9_cost_bit ( ref_comp_p , 1 ) ;\n }\n else {\n ref_costs_comp [ LAST_FRAME ] = 512 ;\n ref_costs_comp [ GOLDEN_FRAME ] = 512 ;\n }\n }\n }"}
{"idx": 5093, "target": 0, "func": "static const char * hfinfo_number_vals_format64 ( const header_field_info * hfinfo , char buf [ 64 ] , guint64 value ) {\n int display = hfinfo -> display & FIELD_DISPLAY_E_MASK ;\n if ( display == BASE_NONE ) return NULL ;\n if ( display == BASE_DEC_HEX ) display = BASE_DEC ;\n if ( display == BASE_HEX_DEC ) display = BASE_HEX ;\n return hfinfo_number_value_format_display64 ( hfinfo , display , buf , value ) ;\n }"}
{"idx": 5094, "target": 1, "func": "static int dissect_mac_fdd_rach ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n guint8 tctf ;\n guint8 chan ;\n guint16 bitoffs = 0 ;\n tvbuff_t * next_tvb ;\n proto_tree * rach_tree = NULL ;\n proto_item * channel_type ;\n umts_mac_info * macinf ;\n fp_info * fpinf ;\n rlc_info * rlcinf ;\n proto_item * ti = NULL ;\n guint8 c_t ;\n tctf = tvb_get_bits8 ( tvb , 0 , 2 ) ;\n bitoffs += 2 ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"MAC\" ) ;\n col_set_str ( pinfo -> cinfo , COL_INFO , val_to_str_const ( tctf , rach_fdd_tctf_vals , \"Unknown TCTF\" ) ) ;\n ti = proto_tree_add_item ( tree , proto_umts_mac , tvb , 0 , - 1 , ENC_NA ) ;\n rach_tree = proto_item_add_subtree ( ti , ett_mac_rach ) ;\n macinf = ( umts_mac_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_umts_mac , 0 ) ;\n fpinf = ( fp_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_fp , 0 ) ;\n rlcinf = ( rlc_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_rlc , 0 ) ;\n if ( ! macinf || ! fpinf ) {\n proto_tree_add_expert ( rach_tree , pinfo , & ei_mac_per_frame_info_missing , tvb , 0 , - 1 ) ;\n return 1 ;\n }\n proto_tree_add_bits_item ( rach_tree , hf_mac_rach_fdd_tctf , tvb , 0 , 2 , ENC_BIG_ENDIAN ) ;\n if ( tctf == TCTF_DCCH_DTCH_RACH_FDD ) {\n macinf -> ctmux [ fpinf -> cur_tb ] = 1 ;\n bitoffs = tree_add_common_dcch_dtch_fields ( tvb , pinfo , rach_tree , bitoffs , fpinf , macinf , rlcinf ) ;\n }\n chan = fpinf -> cur_chan ;\n switch ( tctf ) {\n case TCTF_CCCH_RACH_FDD : proto_item_append_text ( ti , \" (CCCH)\" ) ;\n channel_type = proto_tree_add_uint ( rach_tree , hf_mac_channel , tvb , 0 , 0 , MAC_CCCH ) ;\n PROTO_ITEM_SET_GENERATED ( channel_type ) ;\n next_tvb = tvb_new_octet_aligned ( tvb , bitoffs , fpinf -> chan_tf_size [ chan ] - bitoffs ) ;\n add_new_data_source ( pinfo , next_tvb , \"Octet-Aligned CCCH Data\" ) ;\n call_dissector_with_data ( rlc_ccch_handle , next_tvb , pinfo , tree , data ) ;\n break ;\n case TCTF_DCCH_DTCH_RACH_FDD : c_t = tvb_get_bits8 ( tvb , bitoffs - 4 , 4 ) ;\n rlcinf -> mode [ chan ] = lchId_rlc_map [ c_t + 1 ] ;\n macinf -> content [ chan ] = lchId_type_table [ c_t + 1 ] ;\n rlcinf -> rbid [ chan ] = c_t + 1 ;\n switch ( macinf -> content [ chan ] ) {\n case MAC_CONTENT_DCCH : proto_item_append_text ( ti , \" (DCCH)\" ) ;\n channel_type = proto_tree_add_uint ( rach_tree , hf_mac_channel , tvb , 0 , 0 , MAC_DCCH ) ;\n PROTO_ITEM_SET_GENERATED ( channel_type ) ;\n next_tvb = tvb_new_octet_aligned ( tvb , bitoffs , fpinf -> chan_tf_size [ chan ] - bitoffs ) ;\n add_new_data_source ( pinfo , next_tvb , \"Octet-Aligned DCCH Data\" ) ;\n call_dissector_with_data ( rlc_dcch_handle , next_tvb , pinfo , tree , data ) ;\n break ;\n case MAC_CONTENT_PS_DTCH : proto_item_append_text ( ti , \" (PS DTCH)\" ) ;\n channel_type = proto_tree_add_uint ( rach_tree , hf_mac_channel , tvb , 0 , 0 , MAC_DTCH ) ;\n PROTO_ITEM_SET_GENERATED ( channel_type ) ;\n next_tvb = tvb_new_octet_aligned ( tvb , bitoffs , fpinf -> chan_tf_size [ chan ] - bitoffs ) ;\n add_new_data_source ( pinfo , next_tvb , \"Octet-Aligned DTCH Data\" ) ;\n call_dissector_with_data ( rlc_ps_dtch_handle , next_tvb , pinfo , tree , data ) ;\n break ;\n case MAC_CONTENT_CS_DTCH : proto_item_append_text ( ti , \" (CS DTCH)\" ) ;\n break ;\n default : proto_item_append_text ( ti , \" (Unknown RACH DCCH/DTCH Content)\" ) ;\n expert_add_info_format ( pinfo , NULL , & ei_mac_unknown_content , \"Unknown RACH DCCH/DTCH Content\" ) ;\n }\n break ;\n default : proto_item_append_text ( ti , \" (Unknown RACH TCTF)\" ) ;\n expert_add_info_format ( pinfo , NULL , & ei_mac_rach_tctf_unknown , \"Unknown RACH TCTF\" ) ;\n }\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 5095, "target": 0, "func": "static int32_t u_printf_count_handler ( const u_printf_stream_handler * handler , void * context , ULocaleBundle * formatBundle , const u_printf_spec_info * info , const ufmt_args * args ) {\n ( void ) handler ;\n ( void ) context ;\n ( void ) formatBundle ;\n int32_t * count = ( int32_t * ) ( args [ 0 ] . ptrValue ) ;\n * count = info -> fWidth ;\n return 0 ;\n }"}
{"idx": 5096, "target": 0, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING )"}
{"idx": 5097, "target": 1, "func": "static int msmpeg4v34_decode_mb ( MpegEncContext * s , int16_t block [ 6 ] [ 64 ] ) {\n int cbp , code , i ;\n uint8_t * coded_val ;\n uint32_t * const mb_type_ptr = & s -> current_picture . f . mb_type [ s -> mb_x + s -> mb_y * s -> mb_stride ] ;\n if ( s -> pict_type == AV_PICTURE_TYPE_P ) {\n if ( s -> use_skip_mb_code ) {\n if ( get_bits1 ( & s -> gb ) ) {\n s -> mb_intra = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) s -> block_last_index [ i ] = - 1 ;\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = 0 ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = 0 ;\n s -> mb_skipped = 1 ;\n * mb_type_ptr = MB_TYPE_SKIP | MB_TYPE_L0 | MB_TYPE_16x16 ;\n return 0 ;\n }\n }\n code = get_vlc2 ( & s -> gb , ff_mb_non_intra_vlc [ DEFAULT_INTER_INDEX ] . table , MB_NON_INTRA_VLC_BITS , 3 ) ;\n if ( code < 0 ) return - 1 ;\n s -> mb_intra = ( ~ code & 0x40 ) >> 6 ;\n cbp = code & 0x3f ;\n }\n else {\n s -> mb_intra = 1 ;\n code = get_vlc2 ( & s -> gb , ff_msmp4_mb_i_vlc . table , MB_INTRA_VLC_BITS , 2 ) ;\n if ( code < 0 ) return - 1 ;\n cbp = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n int val = ( ( code >> ( 5 - i ) ) & 1 ) ;\n if ( i < 4 ) {\n int pred = ff_msmpeg4_coded_block_pred ( s , i , & coded_val ) ;\n val = val ^ pred ;\n * coded_val = val ;\n }\n cbp |= val << ( 5 - i ) ;\n }\n }\n if ( ! s -> mb_intra ) {\n int mx , my ;\n if ( s -> per_mb_rl_table && cbp ) {\n s -> rl_table_index = decode012 ( & s -> gb ) ;\n s -> rl_chroma_table_index = s -> rl_table_index ;\n }\n ff_h263_pred_motion ( s , 0 , 0 , & mx , & my ) ;\n if ( ff_msmpeg4_decode_motion ( s , & mx , & my ) < 0 ) return - 1 ;\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = mx ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = my ;\n * mb_type_ptr = MB_TYPE_L0 | MB_TYPE_16x16 ;\n }\n else {\n av_dlog ( s , \"I at %d %d %d %06X\\n\" , s -> mb_x , s -> mb_y , ( ( cbp & 3 ) ? 1 : 0 ) + ( ( cbp & 0x3C ) ? 2 : 0 ) , show_bits ( & s -> gb , 24 ) ) ;\n s -> ac_pred = get_bits1 ( & s -> gb ) ;\n * mb_type_ptr = MB_TYPE_INTRA ;\n if ( s -> inter_intra_pred ) {\n s -> h263_aic_dir = get_vlc2 ( & s -> gb , ff_inter_intra_vlc . table , INTER_INTRA_VLC_BITS , 1 ) ;\n av_dlog ( s , \"%d%d %d %d/\" , s -> ac_pred , s -> h263_aic_dir , s -> mb_x , s -> mb_y ) ;\n }\n if ( s -> per_mb_rl_table && cbp ) {\n s -> rl_table_index = decode012 ( & s -> gb ) ;\n s -> rl_chroma_table_index = s -> rl_table_index ;\n }\n }\n s -> dsp . clear_blocks ( s -> block [ 0 ] ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( ff_msmpeg4_decode_block ( s , block [ i ] , i , ( cbp >> ( 5 - i ) ) & 1 , NULL ) < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"\\nerror while decoding block: %d x %d (%d)\\n\" , s -> mb_x , s -> mb_y , i ) ;\n return - 1 ;\n }\n }\n return 0 ;\n }"}
{"idx": 5098, "target": 0, "func": "jas_image_t * jas_image_copy ( jas_image_t * image ) {\n jas_image_t * newimage ;\n int cmptno ;\n newimage = jas_image_create0 ( ) ;\n if ( jas_image_growcmpts ( newimage , image -> numcmpts_ ) ) {\n goto error ;\n }\n for ( cmptno = 0 ;\n cmptno < image -> numcmpts_ ;\n ++ cmptno ) {\n if ( ! ( newimage -> cmpts_ [ cmptno ] = jas_image_cmpt_copy ( image -> cmpts_ [ cmptno ] ) ) ) {\n goto error ;\n }\n ++ newimage -> numcmpts_ ;\n }\n jas_image_setbbox ( newimage ) ;\n if ( image -> cmprof_ ) {\n if ( ! ( newimage -> cmprof_ = jas_cmprof_copy ( image -> cmprof_ ) ) ) goto error ;\n }\n return newimage ;\n error : if ( newimage ) {\n jas_image_destroy ( newimage ) ;\n }\n return 0 ;\n }"}
{"idx": 5099, "target": 0, "func": "proto_item * proto_tree_add_ipv4_format_value ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , guint32 value , const char * format , ... ) {\n proto_item * pi ;\n va_list ap ;\n pi = proto_tree_add_ipv4 ( tree , hfindex , tvb , start , length , value ) ;\n if ( pi != tree ) {\n va_start ( ap , format ) ;\n proto_tree_set_representation_value ( pi , format , ap ) ;\n va_end ( ap ) ;\n }\n return pi ;\n }"}
{"idx": 5100, "target": 0, "func": "static void flac_set_bps ( FLACContext * s ) {\n enum AVSampleFormat req = s -> avctx -> request_sample_fmt ;\n int need32 = s -> bps > 16 ;\n int want32 = av_get_bytes_per_sample ( req ) > 2 ;\n int planar = av_sample_fmt_is_planar ( req ) ;\n if ( need32 || want32 ) {\n if ( planar ) s -> avctx -> sample_fmt = AV_SAMPLE_FMT_S32P ;\n else s -> avctx -> sample_fmt = AV_SAMPLE_FMT_S32 ;\n s -> sample_shift = 32 - s -> bps ;\n }\n else {\n if ( planar ) s -> avctx -> sample_fmt = AV_SAMPLE_FMT_S16P ;\n else s -> avctx -> sample_fmt = AV_SAMPLE_FMT_S16 ;\n s -> sample_shift = 16 - s -> bps ;\n }\n }"}
{"idx": 5101, "target": 0, "func": "static void close_server_sock ( ) {\n # ifdef HAVE_CLOSE_SERVER_SOCK DBUG_ENTER ( \"close_server_sock\" ) ;\n close_socket ( base_ip_sock , \"TCP/IP\" ) ;\n close_socket ( extra_ip_sock , \"TCP/IP\" ) ;\n close_socket ( unix_sock , \"unix/IP\" ) ;\n if ( unix_sock != INVALID_SOCKET ) ( void ) unlink ( mysqld_unix_port ) ;\n base_ip_sock = extra_ip_sock = unix_sock = INVALID_SOCKET ;\n DBUG_VOID_RETURN ;\n # endif }"}
{"idx": 5102, "target": 0, "func": "static int dissect_h245_T_nonCollapsing ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h245_T_nonCollapsing , T_nonCollapsing_sequence_of ) ;\n return offset ;\n }"}
{"idx": 5103, "target": 0, "func": "static PyObject * string_split ( PyStringObject * self , PyObject * args ) {\n Py_ssize_t len = PyString_GET_SIZE ( self ) , n ;\n Py_ssize_t maxsplit = - 1 ;\n const char * s = PyString_AS_STRING ( self ) , * sub ;\n PyObject * subobj = Py_None ;\n if ( ! PyArg_ParseTuple ( args , \"|On:split\" , & subobj , & maxsplit ) ) return NULL ;\n if ( maxsplit < 0 ) maxsplit = PY_SSIZE_T_MAX ;\n if ( subobj == Py_None ) return stringlib_split_whitespace ( ( PyObject * ) self , s , len , maxsplit ) ;\n if ( PyString_Check ( subobj ) ) {\n sub = PyString_AS_STRING ( subobj ) ;\n n = PyString_GET_SIZE ( subobj ) ;\n }\n # ifdef Py_USING_UNICODE else if ( PyUnicode_Check ( subobj ) ) return PyUnicode_Split ( ( PyObject * ) self , subobj , maxsplit ) ;\n # endif else if ( PyObject_AsCharBuffer ( subobj , & sub , & n ) ) return NULL ;\n return stringlib_split ( ( PyObject * ) self , s , len , sub , n , maxsplit ) ;\n }"}
{"idx": 5104, "target": 0, "func": "static int dissect_h245_T_extendedPAR ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_set_of ( tvb , offset , actx , tree , hf_index , ett_h245_T_extendedPAR , T_extendedPAR_set_of , 1 , 256 , FALSE ) ;\n return offset ;\n }"}
{"idx": 5105, "target": 0, "func": "static void cmd_window_move_right ( void ) {\n int refnum ;\n refnum = window_refnum_right ( active_win -> refnum , TRUE ) ;\n if ( refnum != - 1 ) window_set_refnum ( active_win , refnum ) ;\n }"}
{"idx": 5106, "target": 0, "func": "inline static int is_digit ( char c ) {\n return ( ( c <= '9' ) && ( c >= '0' ) ) ;\n }"}
{"idx": 5107, "target": 0, "func": "err_status_t srtp_stream_clone ( const srtp_stream_ctx_t * stream_template , uint32_t ssrc , srtp_stream_ctx_t * * str_ptr ) {\n err_status_t status ;\n srtp_stream_ctx_t * str ;\n debug_print ( mod_srtp , \"cloning stream (SSRC: 0x%08x)\" , ssrc ) ;\n str = ( srtp_stream_ctx_t * ) crypto_alloc ( sizeof ( srtp_stream_ctx_t ) ) ;\n if ( str == NULL ) return err_status_alloc_fail ;\n * str_ptr = str ;\n str -> rtp_cipher = stream_template -> rtp_cipher ;\n str -> rtp_auth = stream_template -> rtp_auth ;\n str -> rtcp_cipher = stream_template -> rtcp_cipher ;\n str -> rtcp_auth = stream_template -> rtcp_auth ;\n status = key_limit_clone ( stream_template -> limit , & str -> limit ) ;\n if ( status ) {\n crypto_free ( * str_ptr ) ;\n * str_ptr = NULL ;\n return status ;\n }\n status = rdbx_init ( & str -> rtp_rdbx , rdbx_get_window_size ( & stream_template -> rtp_rdbx ) ) ;\n if ( status ) {\n crypto_free ( * str_ptr ) ;\n * str_ptr = NULL ;\n return status ;\n }\n rdb_init ( & str -> rtcp_rdb ) ;\n str -> allow_repeat_tx = stream_template -> allow_repeat_tx ;\n str -> ssrc = ssrc ;\n str -> direction = stream_template -> direction ;\n str -> rtp_services = stream_template -> rtp_services ;\n str -> rtcp_services = stream_template -> rtcp_services ;\n str -> ekt = stream_template -> ekt ;\n memcpy ( str -> salt , stream_template -> salt , SRTP_AEAD_SALT_LEN ) ;\n memcpy ( str -> c_salt , stream_template -> c_salt , SRTP_AEAD_SALT_LEN ) ;\n str -> next = NULL ;\n return err_status_ok ;\n }"}
{"idx": 5108, "target": 0, "func": "static int dissect_CPMGetScopeStatistics ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * parent_tree , gboolean in , void * data _U_ ) {\n gint offset = 16 ;\n proto_item * item ;\n proto_tree * tree ;\n item = proto_tree_add_item ( parent_tree , hf_mswsp_msg , tvb , offset , in ? 0 : - 1 , ENC_NA ) ;\n tree = proto_item_add_subtree ( item , ett_mswsp_msg ) ;\n proto_item_set_text ( item , \"GetScopeStatistics%s\" , in ? \"In\" : \"Out\" ) ;\n col_append_str ( pinfo -> cinfo , COL_INFO , \"GetScopeStatistics\" ) ;\n if ( in ) {\n }\n else {\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmsetscopestatisics_dwindexitems , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmsetscopestatisics_dwoutstandingadds , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmsetscopestatisics_dwoutstandingmodifies , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n }\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 5109, "target": 0, "func": "static int dissect_h245_T_profileAndLevel ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_profileAndLevel , T_profileAndLevel_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 5110, "target": 0, "func": "static void get_icu_disp_value_src_php ( char * tag_name , INTERNAL_FUNCTION_PARAMETERS ) {\n const char * loc_name = NULL ;\n int loc_name_len = 0 ;\n const char * disp_loc_name = NULL ;\n int disp_loc_name_len = 0 ;\n int free_loc_name = 0 ;\n UChar * disp_name = NULL ;\n int32_t disp_name_len = 0 ;\n char * mod_loc_name = NULL ;\n int32_t buflen = 512 ;\n UErrorCode status = U_ZERO_ERROR ;\n char * utf8value = NULL ;\n int utf8value_len = 0 ;\n char * msg = NULL ;\n int grOffset = 0 ;\n intl_error_reset ( NULL TSRMLS_CC ) ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"s|s\" , & loc_name , & loc_name_len , & disp_loc_name , & disp_loc_name_len ) == FAILURE ) {\n spprintf ( & msg , 0 , \"locale_get_display_%s : unable to parse input params\" , tag_name ) ;\n intl_error_set ( NULL , U_ILLEGAL_ARGUMENT_ERROR , msg , 1 TSRMLS_CC ) ;\n efree ( msg ) ;\n RETURN_FALSE ;\n }\n if ( loc_name_len > ULOC_FULLNAME_CAPACITY ) {\n spprintf ( & msg , 0 , \"locale_get_display_%s : name too long\" , tag_name ) ;\n intl_error_set ( NULL , U_ILLEGAL_ARGUMENT_ERROR , msg , 1 TSRMLS_CC ) ;\n efree ( msg ) ;\n RETURN_FALSE ;\n }\n if ( loc_name_len == 0 ) {\n loc_name = intl_locale_get_default ( TSRMLS_C ) ;\n }\n if ( strcmp ( tag_name , DISP_NAME ) != 0 ) {\n grOffset = findOffset ( LOC_GRANDFATHERED , loc_name ) ;\n if ( grOffset >= 0 ) {\n if ( strcmp ( tag_name , LOC_LANG_TAG ) == 0 ) {\n mod_loc_name = getPreferredTag ( loc_name ) ;\n }\n else {\n RETURN_FALSE ;\n }\n }\n }\n if ( mod_loc_name == NULL ) {\n mod_loc_name = estrdup ( loc_name ) ;\n }\n if ( ! disp_loc_name ) {\n disp_loc_name = estrdup ( intl_locale_get_default ( TSRMLS_C ) ) ;\n free_loc_name = 1 ;\n }\n do {\n disp_name = erealloc ( disp_name , buflen * sizeof ( UChar ) ) ;\n disp_name_len = buflen ;\n if ( strcmp ( tag_name , LOC_LANG_TAG ) == 0 ) {\n buflen = uloc_getDisplayLanguage ( mod_loc_name , disp_loc_name , disp_name , disp_name_len , & status ) ;\n }\n else if ( strcmp ( tag_name , LOC_SCRIPT_TAG ) == 0 ) {\n buflen = uloc_getDisplayScript ( mod_loc_name , disp_loc_name , disp_name , disp_name_len , & status ) ;\n }\n else if ( strcmp ( tag_name , LOC_REGION_TAG ) == 0 ) {\n buflen = uloc_getDisplayCountry ( mod_loc_name , disp_loc_name , disp_name , disp_name_len , & status ) ;\n }\n else if ( strcmp ( tag_name , LOC_VARIANT_TAG ) == 0 ) {\n buflen = uloc_getDisplayVariant ( mod_loc_name , disp_loc_name , disp_name , disp_name_len , & status ) ;\n }\n else if ( strcmp ( tag_name , DISP_NAME ) == 0 ) {\n buflen = uloc_getDisplayName ( mod_loc_name , disp_loc_name , disp_name , disp_name_len , & status ) ;\n }\n if ( U_FAILURE ( status ) ) {\n if ( status == U_BUFFER_OVERFLOW_ERROR ) {\n status = U_ZERO_ERROR ;\n continue ;\n }\n spprintf ( & msg , 0 , \"locale_get_display_%s : unable to get locale %s\" , tag_name , tag_name ) ;\n intl_error_set ( NULL , status , msg , 1 TSRMLS_CC ) ;\n efree ( msg ) ;\n if ( disp_name ) {\n efree ( disp_name ) ;\n }\n if ( mod_loc_name ) {\n efree ( mod_loc_name ) ;\n }\n if ( free_loc_name ) {\n efree ( ( void * ) disp_loc_name ) ;\n disp_loc_name = NULL ;\n }\n RETURN_FALSE ;\n }\n }\n while ( buflen > disp_name_len ) ;\n if ( mod_loc_name ) {\n efree ( mod_loc_name ) ;\n }\n if ( free_loc_name ) {\n efree ( ( void * ) disp_loc_name ) ;\n disp_loc_name = NULL ;\n }\n intl_convert_utf16_to_utf8 ( & utf8value , & utf8value_len , disp_name , buflen , & status ) ;\n efree ( disp_name ) ;\n if ( U_FAILURE ( status ) ) {\n spprintf ( & msg , 0 , \"locale_get_display_%s :error converting display name for %s to UTF-8\" , tag_name , tag_name ) ;\n intl_error_set ( NULL , status , msg , 1 TSRMLS_CC ) ;\n efree ( msg ) ;\n RETURN_FALSE ;\n }\n RETVAL_STRINGL ( utf8value , utf8value_len , FALSE ) ;\n }"}
{"idx": 5111, "target": 0, "func": "static void init_lengths ( BinkContext * c , int width , int bw ) {\n width = FFALIGN ( width , 8 ) ;\n c -> bundle [ BINK_SRC_BLOCK_TYPES ] . len = av_log2 ( ( width >> 3 ) + 511 ) + 1 ;\n c -> bundle [ BINK_SRC_SUB_BLOCK_TYPES ] . len = av_log2 ( ( width >> 4 ) + 511 ) + 1 ;\n c -> bundle [ BINK_SRC_COLORS ] . len = av_log2 ( bw * 64 + 511 ) + 1 ;\n c -> bundle [ BINK_SRC_INTRA_DC ] . len = c -> bundle [ BINK_SRC_INTER_DC ] . len = c -> bundle [ BINK_SRC_X_OFF ] . len = c -> bundle [ BINK_SRC_Y_OFF ] . len = av_log2 ( ( width >> 3 ) + 511 ) + 1 ;\n c -> bundle [ BINK_SRC_PATTERN ] . len = av_log2 ( ( bw << 3 ) + 511 ) + 1 ;\n c -> bundle [ BINK_SRC_RUN ] . len = av_log2 ( bw * 48 + 511 ) + 1 ;\n }"}
{"idx": 5112, "target": 0, "func": "int ff_pre_estimate_p_frame_motion ( MpegEncContext * s , int mb_x , int mb_y ) {\n MotionEstContext * const c = & s -> me ;\n int mx , my , dmin ;\n int P [ 10 ] [ 2 ] ;\n const int shift = 1 + s -> quarter_sample ;\n const int xy = mb_x + mb_y * s -> mb_stride ;\n init_ref ( c , s -> new_picture . f . data , s -> last_picture . f . data , NULL , 16 * mb_x , 16 * mb_y , 0 ) ;\n assert ( s -> quarter_sample == 0 || s -> quarter_sample == 1 ) ;\n c -> pre_penalty_factor = get_penalty_factor ( s -> lambda , s -> lambda2 , c -> avctx -> me_pre_cmp ) ;\n c -> current_mv_penalty = c -> mv_penalty [ s -> f_code ] + MAX_MV ;\n get_limits ( s , 16 * mb_x , 16 * mb_y ) ;\n c -> skip = 0 ;\n P_LEFT [ 0 ] = s -> p_mv_table [ xy + 1 ] [ 0 ] ;\n P_LEFT [ 1 ] = s -> p_mv_table [ xy + 1 ] [ 1 ] ;\n if ( P_LEFT [ 0 ] < ( c -> xmin << shift ) ) P_LEFT [ 0 ] = ( c -> xmin << shift ) ;\n if ( s -> first_slice_line ) {\n c -> pred_x = P_LEFT [ 0 ] ;\n c -> pred_y = P_LEFT [ 1 ] ;\n P_TOP [ 0 ] = P_TOPRIGHT [ 0 ] = P_MEDIAN [ 0 ] = P_TOP [ 1 ] = P_TOPRIGHT [ 1 ] = P_MEDIAN [ 1 ] = 0 ;\n }\n else {\n P_TOP [ 0 ] = s -> p_mv_table [ xy + s -> mb_stride ] [ 0 ] ;\n P_TOP [ 1 ] = s -> p_mv_table [ xy + s -> mb_stride ] [ 1 ] ;\n P_TOPRIGHT [ 0 ] = s -> p_mv_table [ xy + s -> mb_stride - 1 ] [ 0 ] ;\n P_TOPRIGHT [ 1 ] = s -> p_mv_table [ xy + s -> mb_stride - 1 ] [ 1 ] ;\n if ( P_TOP [ 1 ] < ( c -> ymin << shift ) ) P_TOP [ 1 ] = ( c -> ymin << shift ) ;\n if ( P_TOPRIGHT [ 0 ] > ( c -> xmax << shift ) ) P_TOPRIGHT [ 0 ] = ( c -> xmax << shift ) ;\n if ( P_TOPRIGHT [ 1 ] < ( c -> ymin << shift ) ) P_TOPRIGHT [ 1 ] = ( c -> ymin << shift ) ;\n P_MEDIAN [ 0 ] = mid_pred ( P_LEFT [ 0 ] , P_TOP [ 0 ] , P_TOPRIGHT [ 0 ] ) ;\n P_MEDIAN [ 1 ] = mid_pred ( P_LEFT [ 1 ] , P_TOP [ 1 ] , P_TOPRIGHT [ 1 ] ) ;\n c -> pred_x = P_MEDIAN [ 0 ] ;\n c -> pred_y = P_MEDIAN [ 1 ] ;\n }\n dmin = ff_epzs_motion_search ( s , & mx , & my , P , 0 , 0 , s -> p_mv_table , ( 1 << 16 ) >> shift , 0 , 16 ) ;\n s -> p_mv_table [ xy ] [ 0 ] = mx << shift ;\n s -> p_mv_table [ xy ] [ 1 ] = my << shift ;\n return dmin ;\n }"}
{"idx": 5113, "target": 0, "func": "static int dissect_nlm4_lock ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n return dissect_nlm_lock ( tvb , 0 , pinfo , tree , 4 , ( rpc_call_info_value * ) data ) ;\n }"}
{"idx": 5114, "target": 0, "func": "static void selinux_req_classify_flow ( const struct request_sock * req , struct flowi * fl ) {\n fl -> flowi_secid = req -> secid ;\n }"}
{"idx": 5115, "target": 0, "func": "static void dissect_zcl_groups_add_group_or_if_identifying ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n guint attr_uint ;\n guint8 * attr_string ;\n proto_tree_add_item ( tree , hf_zbee_zcl_groups_group_id , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n attr_uint = tvb_get_guint8 ( tvb , * offset ) ;\n if ( attr_uint == 0xff ) attr_uint = 0 ;\n proto_tree_add_uint ( tree , hf_zbee_zcl_groups_attr_str_len , tvb , * offset , 1 , attr_uint ) ;\n * offset += 1 ;\n attr_string = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , * offset , attr_uint , ENC_ASCII ) ;\n proto_item_append_text ( tree , \", String: %s\" , attr_string ) ;\n proto_tree_add_string ( tree , hf_zbee_zcl_groups_attr_str , tvb , * offset , attr_uint , attr_string ) ;\n * offset += attr_uint ;\n }"}
{"idx": 5116, "target": 0, "func": "static gboolean h225_stat_packet ( void * tapdata , packet_info * pinfo _U_ , epan_dissect_t * edt _U_ , const void * hpi_ptr ) {\n new_stat_data_t * stat_data = ( new_stat_data_t * ) tapdata ;\n const h225_packet_info * hpi = ( const h225_packet_info * ) hpi_ptr ;\n int tag_idx = - 1 ;\n int reason_idx = - 1 ;\n if ( hpi -> msg_tag < 0 ) {\n return FALSE ;\n }\n switch ( hpi -> msg_type ) {\n case H225_RAS : tag_idx = ras_msg_idx [ MIN ( hpi -> msg_tag , ( int ) RAS_MSG_TYPES - 1 ) ] ;\n if ( hpi -> reason < 0 ) {\n break ;\n }\n switch ( hpi -> msg_tag ) {\n case 2 : reason_idx = grj_reason_idx [ MIN ( hpi -> reason , ( int ) GRJ_REASONS - 1 ) ] ;\n break ;\n case 5 : reason_idx = rrj_reason_idx [ MIN ( hpi -> reason , ( int ) RRJ_REASONS - 1 ) ] ;\n break ;\n case 6 : reason_idx = urq_reason_idx [ MIN ( hpi -> reason , ( int ) URQ_REASONS - 1 ) ] ;\n break ;\n case 8 : reason_idx = urj_reason_idx [ MIN ( hpi -> reason , ( int ) URJ_REASONS - 1 ) ] ;\n break ;\n case 11 : reason_idx = arj_reason_idx [ MIN ( hpi -> reason , ( int ) ARJ_REASONS - 1 ) ] ;\n break ;\n case 14 : reason_idx = brj_reason_idx [ MIN ( hpi -> reason , ( int ) BRJ_REASONS - 1 ) ] ;\n break ;\n case 15 : reason_idx = drq_reason_idx [ MIN ( hpi -> reason , ( int ) DRQ_REASONS - 1 ) ] ;\n break ;\n case 17 : reason_idx = drj_reason_idx [ MIN ( hpi -> reason , ( int ) DRJ_REASONS - 1 ) ] ;\n break ;\n case 20 : reason_idx = lrj_reason_idx [ MIN ( hpi -> reason , ( int ) LRJ_REASONS - 1 ) ] ;\n break ;\n case 29 : reason_idx = irqnak_reason_idx [ MIN ( hpi -> reason , ( int ) IRQNAK_REASONS - 1 ) ] ;\n break ;\n default : break ;\n }\n break ;\n case H225_CS : tag_idx = cs_msg_idx [ MIN ( hpi -> msg_tag , ( int ) CS_MSG_TYPES - 1 ) ] ;\n if ( hpi -> reason < 0 ) {\n break ;\n }\n switch ( hpi -> msg_tag ) {\n case 5 : reason_idx = rel_cmp_reason_idx [ MIN ( hpi -> reason , ( int ) REL_CMP_REASONS - 1 ) ] ;\n break ;\n case 6 : reason_idx = facility_reason_idx [ MIN ( hpi -> reason , ( int ) FACILITY_REASONS - 1 ) ] ;\n break ;\n default : break ;\n }\n break ;\n case H225_OTHERS : default : tag_idx = other_idx ;\n }\n if ( tag_idx >= 0 ) {\n stat_tap_table * table = g_array_index ( stat_data -> stat_tap_data -> tables , stat_tap_table * , 0 ) ;\n stat_tap_table_item_type * msg_data = new_stat_tap_get_field_data ( table , tag_idx , COUNT_COLUMN ) ;\n ;\n msg_data -> value . uint_value ++ ;\n new_stat_tap_set_field_data ( table , tag_idx , COUNT_COLUMN , msg_data ) ;\n if ( reason_idx >= 0 ) {\n msg_data = new_stat_tap_get_field_data ( table , reason_idx , COUNT_COLUMN ) ;\n ;\n msg_data -> value . uint_value ++ ;\n new_stat_tap_set_field_data ( table , reason_idx , COUNT_COLUMN , msg_data ) ;\n }\n return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 5117, "target": 1, "func": "TEST_F ( MultiBufferTest , ReadAllAdvanceFirst ) {\n multibuffer_ . SetMaxWriters ( 1 ) ;\n size_t pos = 0 ;\n size_t end = 10000 ;\n multibuffer_ . SetFileSize ( 10000 ) ;\n multibuffer_ . SetMustReadWholeFile ( true ) ;\n media : : MultiBufferReader reader ( & multibuffer_ , pos , end , base : : Callback < void ( int64_t , int64_t ) > ( ) ) ;\n reader . SetMaxBuffer ( 2000 , 5000 ) ;\n reader . SetPreload ( 1000 , 1000 ) ;\n while ( pos < end ) {\n unsigned char buffer [ 27 ] ;\n buffer [ 17 ] = 17 ;\n size_t to_read = std : : min < size_t > ( end - pos , 17 ) ;\n while ( AdvanceAll ( ) ) ;\n int64_t bytes = reader . TryRead ( buffer , to_read ) ;\n EXPECT_GT ( bytes , 0 ) ;\n EXPECT_EQ ( buffer [ 17 ] , 17 ) ;\n for ( int64_t i = 0 ;\n i < bytes ;\n i ++ ) {\n uint8_t expected = static_cast < uint8_t > ( ( pos * 15485863 ) >> 16 ) ;\n EXPECT_EQ ( expected , buffer [ i ] ) << \" pos = \" << pos ;\n pos ++ ;\n }\n }\n }"}
{"idx": 5118, "target": 0, "func": "void proto_register_zbee_zcl_groups ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_zbee_zcl_groups_attr_id , {\n \"Attribute\" , \"zbee_zcl_general.groups.attr_id\" , FT_UINT16 , BASE_HEX , VALS ( zbee_zcl_groups_attr_names ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_groups_group_name_support , {\n \"Group Name Support\" , \"zbee_zcl_general.groups.attr.group_name_support\" , FT_BOOLEAN , 8 , TFS ( & tfs_true_false ) , ZBEE_ZCL_CMD_ID_GROUPS_NAME_SUPPORT_MASK , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_groups_group_id , {\n \"Group ID\" , \"zbee_zcl_general.groups.group_id\" , FT_UINT16 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_groups_group_list , {\n \"Group List\" , \"zbee_zcl_general.groups.group_list\" , FT_NONE , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_groups_group_count , {\n \"Group Count\" , \"zbee_zcl_general.groups.group_count\" , FT_UINT8 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_groups_group_capacity , {\n \"Group Capacity\" , \"zbee_zcl_general.groups.group_capacity\" , FT_UINT8 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_groups_status , {\n \"Group Status\" , \"zbee_zcl_general.groups.group_status\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_status_names ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_groups_attr_str_len , {\n \"Length\" , \"zbee_zcl_general.groups.attr_str_len\" , FT_UINT8 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_groups_attr_str , {\n \"String\" , \"zbee_zcl_general.groups_attr_str\" , FT_STRING , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_groups_srv_rx_cmd_id , {\n \"Command\" , \"zbee_zcl_general.groups.cmd_srv_rx.id\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_groups_srv_rx_cmd_names ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_groups_srv_tx_cmd_id , {\n \"Command\" , \"zbee_zcl_general.groups.cmd.srv_tx.id\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_groups_srv_tx_cmd_names ) , 0x00 , NULL , HFILL }\n }\n }\n ;\n static gint * ett [ ZBEE_ZCL_GROUPS_NUM_ETT ] ;\n ett [ 0 ] = & ett_zbee_zcl_groups ;\n ett [ 1 ] = & ett_zbee_zcl_groups_grp_ctrl ;\n proto_zbee_zcl_groups = proto_register_protocol ( \"ZigBee ZCL Groups\" , \"ZCL Groups\" , ZBEE_PROTOABBREV_ZCL_GROUPS ) ;\n proto_register_field_array ( proto_zbee_zcl_groups , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n register_dissector ( ZBEE_PROTOABBREV_ZCL_GROUPS , dissect_zbee_zcl_groups , proto_zbee_zcl_groups ) ;\n }"}
{"idx": 5119, "target": 0, "func": "static int dissect_h245_T_signalUpdate ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_signalUpdate , T_signalUpdate_sequence ) ;\n return offset ;\n }"}
{"idx": 5120, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ContentFaviconDriverTest , MixedContentSecureFaviconAllowed ) {\n net : : EmbeddedTestServer ssl_server ( net : : EmbeddedTestServer : : TYPE_HTTPS ) ;\n ssl_server . AddDefaultHandlers ( base : : FilePath ( kDocRoot ) ) ;\n ASSERT_TRUE ( ssl_server . Start ( ) ) ;\n const GURL favicon_url = ssl_server . GetURL ( \"example.test\" , \"/favicon/icon.png\" ) ;\n const GURL favicon_page = ssl_server . GetURL ( \"example.test\" , \"/favicon/page_with_favicon_by_url.html?url=\" + favicon_url . spec ( ) ) ;\n std : : unique_ptr < TestResourceDispatcherHostDelegate > delegate ( new TestResourceDispatcherHostDelegate ( favicon_url ) ) ;\n content : : ResourceDispatcherHost : : Get ( ) -> SetDelegate ( delegate . get ( ) ) ;\n PendingTaskWaiter waiter ( web_contents ( ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , favicon_page ) ;\n waiter . Wait ( ) ;\n EXPECT_TRUE ( delegate -> was_requested ( ) ) ;\n }"}
{"idx": 5121, "target": 0, "func": "TEST_F ( ExternalProtocolHandlerTest , TestLaunchSchemeBlockedChromeDefault ) {\n DoTest ( ExternalProtocolHandler : : BLOCK , shell_integration : : IS_DEFAULT , Action : : BLOCK ) ;\n }"}
{"idx": 5122, "target": 0, "func": "void uwsgi_php_after_request ( struct wsgi_request * wsgi_req ) {\n log_request ( wsgi_req ) ;\n }"}
{"idx": 5123, "target": 0, "func": "int evutil_make_socket_nonblocking ( int fd ) {\n # ifdef WIN32 {\n unsigned long nonblocking = 1 ;\n ioctlsocket ( fd , FIONBIO , ( unsigned long * ) & nonblocking ) ;\n }\n # else {\n int flags ;\n if ( ( flags = fcntl ( fd , F_GETFL , NULL ) ) < 0 ) {\n event_warn ( \"fcntl(%d, F_GETFL)\" , fd ) ;\n return - 1 ;\n }\n if ( fcntl ( fd , F_SETFL , flags | O_NONBLOCK ) == - 1 ) {\n event_warn ( \"fcntl(%d, F_SETFL)\" , fd ) ;\n return - 1 ;\n }\n }\n # endif return 0 ;\n }"}
{"idx": 5124, "target": 0, "func": "int gs_push_string ( gs_main_instance * minst , byte * chars , uint length , bool read_only ) {\n ref vref ;\n make_string ( & vref , avm_foreign | ( read_only ? a_readonly : a_all ) , length , ( byte * ) chars ) ;\n return push_value ( minst , & vref ) ;\n }"}
{"idx": 5125, "target": 0, "func": "static gboolean has_problem ( NautilusDirectory * directory , NautilusFile * file , FileCheck problem ) {\n GList * node ;\n if ( file != NULL ) {\n return ( * problem ) ( file ) ;\n }\n for ( node = directory -> details -> file_list ;\n node != NULL ;\n node = node -> next ) {\n if ( ( * problem ) ( node -> data ) ) {\n return TRUE ;\n }\n }\n return FALSE ;\n }"}
{"idx": 5126, "target": 0, "func": "void * xmlHashLookup ( xmlHashTablePtr table , const xmlChar * name ) {\n return ( xmlHashLookup3 ( table , name , NULL , NULL ) ) ;\n }"}
{"idx": 5127, "target": 0, "func": "int ECDSA_do_verify ( const unsigned char * dgst , int dgst_len , const ECDSA_SIG * sig , EC_KEY * eckey ) {\n ECDSA_DATA * ecdsa = ecdsa_check ( eckey ) ;\n if ( ecdsa == NULL ) return 0 ;\n return ecdsa -> meth -> ecdsa_do_verify ( dgst , dgst_len , sig , eckey ) ;\n }"}
{"idx": 5128, "target": 0, "func": "static void change_identity ( const struct passwd * pw ) {\n if ( setgid ( pw -> pw_gid ) ) err ( EXIT_FAILURE , _ ( \"cannot set group id\" ) ) ;\n if ( setuid ( pw -> pw_uid ) ) err ( EXIT_FAILURE , _ ( \"cannot set user id\" ) ) ;\n }"}
{"idx": 5129, "target": 0, "func": "int virLogParseFilters ( const char * src , virLogFilterPtr * * filters ) {\n int ret = - 1 ;\n size_t nfilters = 0 ;\n size_t i , count ;\n char * * strings = NULL ;\n virLogFilterPtr filter = NULL ;\n virLogFilterPtr * list = NULL ;\n VIR_DEBUG ( \"filters=%s\" , src ) ;\n if ( ! ( strings = virStringSplitCount ( src , \" \" , 0 , & count ) ) ) goto cleanup ;\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n if ( STREQ ( strings [ i ] , \"\" ) ) continue ;\n if ( ! ( filter = virLogParseFilter ( strings [ i ] ) ) ) goto cleanup ;\n if ( VIR_APPEND_ELEMENT ( list , nfilters , filter ) ) {\n virLogFilterFree ( filter ) ;\n goto cleanup ;\n }\n }\n ret = nfilters ;\n * filters = list ;\n list = NULL ;\n cleanup : virStringListFree ( strings ) ;\n return ret ;\n }"}
{"idx": 5130, "target": 1, "func": "int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY )"}
{"idx": 5131, "target": 0, "func": "void SSL_set_default_read_buffer_len ( SSL * s , size_t len ) {\n SSL3_BUFFER_set_default_len ( RECORD_LAYER_get_rbuf ( & s -> rlayer ) , len ) ;\n }"}
{"idx": 5132, "target": 0, "func": "static void modify_environment ( const struct passwd * pw , const char * shell ) {\n if ( simulate_login ) {\n char * term = getenv ( \"TERM\" ) ;\n if ( term ) term = xstrdup ( term ) ;\n environ = xmalloc ( ( 6 + ! ! term ) * sizeof ( char * ) ) ;\n environ [ 0 ] = NULL ;\n if ( term ) {\n xsetenv ( \"TERM\" , term , 1 ) ;\n free ( term ) ;\n }\n xsetenv ( \"HOME\" , pw -> pw_dir , 1 ) ;\n if ( shell ) xsetenv ( \"SHELL\" , shell , 1 ) ;\n xsetenv ( \"USER\" , pw -> pw_name , 1 ) ;\n xsetenv ( \"LOGNAME\" , pw -> pw_name , 1 ) ;\n set_path ( pw ) ;\n }\n else {\n if ( change_environment ) {\n xsetenv ( \"HOME\" , pw -> pw_dir , 1 ) ;\n if ( shell ) xsetenv ( \"SHELL\" , shell , 1 ) ;\n if ( getlogindefs_bool ( \"ALWAYS_SET_PATH\" , 0 ) ) set_path ( pw ) ;\n if ( pw -> pw_uid ) {\n xsetenv ( \"USER\" , pw -> pw_name , 1 ) ;\n xsetenv ( \"LOGNAME\" , pw -> pw_name , 1 ) ;\n }\n }\n }\n export_pamenv ( ) ;\n }"}
{"idx": 5133, "target": 0, "func": "clump_t * clump_splay_app ( clump_t * root , gs_ref_memory_t * imem , splay_app_result_t ( * fn ) ( clump_t * , void * ) , void * arg ) {\n clump_t * step_to ;\n clump_t * cp = root ;\n int from = SPLAY_FROM_ABOVE ;\n splay_app_result_t res ;\n SANITY_CHECK ( cp ) ;\n while ( cp ) {\n if ( from == SPLAY_FROM_ABOVE ) {\n step_to = cp -> left ;\n if ( step_to ) {\n from = SPLAY_FROM_ABOVE ;\n cp = step_to ;\n }\n else {\n from = SPLAY_FROM_LEFT ;\n }\n }\n if ( from == SPLAY_FROM_LEFT ) {\n step_to = cp -> right ;\n if ( step_to ) {\n from = SPLAY_FROM_ABOVE ;\n cp = step_to ;\n }\n else {\n from = SPLAY_FROM_RIGHT ;\n }\n }\n if ( from == SPLAY_FROM_RIGHT ) {\n step_to = cp -> parent ;\n if ( step_to ) {\n from = ( step_to -> left == cp ? SPLAY_FROM_LEFT : SPLAY_FROM_RIGHT ) ;\n }\n res = fn ( cp , arg ) ;\n if ( res & SPLAY_APP_STOP ) return cp ;\n cp = step_to ;\n }\n }\n return cp ;\n }"}
{"idx": 5134, "target": 0, "func": "static void update_coef_probs ( VP9_COMP * cpi , vp9_writer * w ) {\n const TX_MODE tx_mode = cpi -> common . tx_mode ;\n const TX_SIZE max_tx_size = tx_mode_to_biggest_tx_size [ tx_mode ] ;\n TX_SIZE tx_size ;\n vp9_coeff_stats frame_branch_ct [ TX_SIZES ] [ PLANE_TYPES ] ;\n vp9_coeff_probs_model frame_coef_probs [ TX_SIZES ] [ PLANE_TYPES ] ;\n for ( tx_size = TX_4X4 ;\n tx_size <= TX_32X32 ;\n ++ tx_size ) build_tree_distribution ( cpi , tx_size , frame_branch_ct [ tx_size ] , frame_coef_probs [ tx_size ] ) ;\n for ( tx_size = TX_4X4 ;\n tx_size <= max_tx_size ;\n ++ tx_size ) update_coef_probs_common ( w , cpi , tx_size , frame_branch_ct [ tx_size ] , frame_coef_probs [ tx_size ] ) ;\n }"}
{"idx": 5135, "target": 0, "func": "static cmsBool Type_ColorantOrderType_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) {\n cmsUInt8Number * ColorantOrder = ( cmsUInt8Number * ) Ptr ;\n cmsUInt32Number i , sz , Count ;\n for ( Count = i = 0 ;\n i < cmsMAXCHANNELS ;\n i ++ ) {\n if ( ColorantOrder [ i ] != 0xFF ) Count ++ ;\n }\n if ( ! _cmsWriteUInt32Number ( io , Count ) ) return FALSE ;\n sz = Count * sizeof ( cmsUInt8Number ) ;\n if ( ! io -> Write ( io , sz , ColorantOrder ) ) return FALSE ;\n return TRUE ;\n cmsUNUSED_PARAMETER ( nItems ) ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 5136, "target": 1, "func": "int ff_MPV_common_frame_size_change ( MpegEncContext * s ) {\n int i , err = 0 ;\n if ( s -> slice_context_count > 1 ) {\n for ( i = 0 ;\n i < s -> slice_context_count ;\n i ++ ) {\n free_duplicate_context ( s -> thread_context [ i ] ) ;\n }\n for ( i = 1 ;\n i < s -> slice_context_count ;\n i ++ ) {\n av_freep ( & s -> thread_context [ i ] ) ;\n }\n }\n else free_duplicate_context ( s ) ;\n free_context_frame ( s ) ;\n if ( s -> picture ) for ( i = 0 ;\n i < s -> picture_count ;\n i ++ ) {\n s -> picture [ i ] . needs_realloc = 1 ;\n }\n s -> last_picture_ptr = s -> next_picture_ptr = s -> current_picture_ptr = NULL ;\n if ( s -> codec_id == AV_CODEC_ID_MPEG2VIDEO && ! s -> progressive_sequence ) s -> mb_height = ( s -> height + 31 ) / 32 * 2 ;\n else if ( s -> codec_id != AV_CODEC_ID_H264 ) s -> mb_height = ( s -> height + 15 ) / 16 ;\n if ( ( s -> width || s -> height ) && av_image_check_size ( s -> width , s -> height , 0 , s -> avctx ) ) return AVERROR_INVALIDDATA ;\n if ( ( err = init_context_frame ( s ) ) ) goto fail ;\n s -> thread_context [ 0 ] = s ;\n if ( s -> width && s -> height ) {\n int nb_slices = s -> slice_context_count ;\n if ( nb_slices > 1 ) {\n for ( i = 1 ;\n i < nb_slices ;\n i ++ ) {\n s -> thread_context [ i ] = av_malloc ( sizeof ( MpegEncContext ) ) ;\n memcpy ( s -> thread_context [ i ] , s , sizeof ( MpegEncContext ) ) ;\n }\n for ( i = 0 ;\n i < nb_slices ;\n i ++ ) {\n if ( init_duplicate_context ( s -> thread_context [ i ] ) < 0 ) goto fail ;\n s -> thread_context [ i ] -> start_mb_y = ( s -> mb_height * ( i ) + nb_slices / 2 ) / nb_slices ;\n s -> thread_context [ i ] -> end_mb_y = ( s -> mb_height * ( i + 1 ) + nb_slices / 2 ) / nb_slices ;\n }\n }\n else {\n if ( init_duplicate_context ( s ) < 0 ) goto fail ;\n s -> start_mb_y = 0 ;\n s -> end_mb_y = s -> mb_height ;\n }\n s -> slice_context_count = nb_slices ;\n }\n return 0 ;\n fail : ff_MPV_common_end ( s ) ;\n return err ;\n }"}
{"idx": 5137, "target": 0, "func": "SPL_METHOD ( DirectoryIterator , __construct ) {\n spl_filesystem_object_construct ( INTERNAL_FUNCTION_PARAM_PASSTHRU , 0 ) ;\n }"}
{"idx": 5138, "target": 1, "func": "int64_t vp9_block_error_c ( const int16_t * coeff , const int16_t * dqcoeff , intptr_t block_size , int64_t * ssz ) {\n int i ;\n int64_t error = 0 , sqcoeff = 0 ;\n for ( i = 0 ;\n i < block_size ;\n i ++ ) {\n const int diff = coeff [ i ] - dqcoeff [ i ] ;\n error += diff * diff ;\n sqcoeff += coeff [ i ] * coeff [ i ] ;\n }\n * ssz = sqcoeff ;\n return error ;\n }"}
{"idx": 5139, "target": 0, "func": "size_t input_DecoderGetFifoSize ( decoder_t * p_dec ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n return block_FifoSize ( p_owner -> p_fifo ) ;\n }"}
{"idx": 5140, "target": 0, "func": "static int nntp_group_poll ( struct NntpData * nntp_data , int update_stat ) {\n char buf [ LONG_STRING ] = \"\" ;\n anum_t count , first , last ;\n if ( nntp_query ( nntp_data , buf , sizeof ( buf ) ) < 0 ) return - 1 ;\n if ( sscanf ( buf , \"211 \" ANUM \" \" ANUM \" \" ANUM , & count , & first , & last ) != 3 ) return 0 ;\n if ( first == nntp_data -> first_message && last == nntp_data -> last_message ) return 0 ;\n if ( last < nntp_data -> last_message ) {\n nntp_data -> last_cached = 0 ;\n if ( nntp_data -> newsrc_len ) {\n mutt_mem_realloc ( & nntp_data -> newsrc_ent , sizeof ( struct NewsrcEntry ) ) ;\n nntp_data -> newsrc_len = 1 ;\n nntp_data -> newsrc_ent [ 0 ] . first = 1 ;\n nntp_data -> newsrc_ent [ 0 ] . last = 0 ;\n }\n }\n nntp_data -> first_message = first ;\n nntp_data -> last_message = last ;\n if ( ! update_stat ) return 1 ;\n else if ( ! last || ( ! nntp_data -> newsrc_ent && ! nntp_data -> last_cached ) ) nntp_data -> unread = count ;\n else nntp_group_unread_stat ( nntp_data ) ;\n return 1 ;\n }"}
{"idx": 5141, "target": 0, "func": "static void row_prop_delete ( zval * object , zval * offset , const zend_literal * key TSRMLS_DC ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"Cannot delete properties from a PDORow\" ) ;\n }"}
{"idx": 5142, "target": 0, "func": "static void cancel_loading_attributes ( NautilusDirectory * directory , NautilusFileAttributes file_attributes ) {\n Request request ;\n request = nautilus_directory_set_up_request ( file_attributes ) ;\n if ( REQUEST_WANTS_TYPE ( request , REQUEST_DIRECTORY_COUNT ) ) {\n directory_count_cancel ( directory ) ;\n }\n if ( REQUEST_WANTS_TYPE ( request , REQUEST_DEEP_COUNT ) ) {\n deep_count_cancel ( directory ) ;\n }\n if ( REQUEST_WANTS_TYPE ( request , REQUEST_MIME_LIST ) ) {\n mime_list_cancel ( directory ) ;\n }\n if ( REQUEST_WANTS_TYPE ( request , REQUEST_FILE_INFO ) ) {\n file_info_cancel ( directory ) ;\n }\n if ( REQUEST_WANTS_TYPE ( request , REQUEST_FILESYSTEM_INFO ) ) {\n filesystem_info_cancel ( directory ) ;\n }\n if ( REQUEST_WANTS_TYPE ( request , REQUEST_LINK_INFO ) ) {\n link_info_cancel ( directory ) ;\n }\n if ( REQUEST_WANTS_TYPE ( request , REQUEST_EXTENSION_INFO ) ) {\n extension_info_cancel ( directory ) ;\n }\n if ( REQUEST_WANTS_TYPE ( request , REQUEST_THUMBNAIL ) ) {\n thumbnail_cancel ( directory ) ;\n }\n if ( REQUEST_WANTS_TYPE ( request , REQUEST_MOUNT ) ) {\n mount_cancel ( directory ) ;\n }\n nautilus_directory_async_state_changed ( directory ) ;\n }"}
{"idx": 5143, "target": 0, "func": "static void balloon_page ( void * addr , int deflate ) {\n # if defined ( __linux__ ) if ( ! kvm_enabled ( ) || kvm_has_sync_mmu ( ) ) qemu_madvise ( addr , TARGET_PAGE_SIZE , deflate ? QEMU_MADV_WILLNEED : QEMU_MADV_DONTNEED ) ;\n # endif }"}
{"idx": 5144, "target": 0, "func": "void ber_decode_as_foreach ( GHFunc func , gpointer user_data ) {\n da_data decode_as_data ;\n decode_as_data . func = func ;\n decode_as_data . user_data = user_data ;\n dissector_table_foreach ( \"ber.syntax\" , ber_decode_as_dt , & decode_as_data ) ;\n }"}
{"idx": 5145, "target": 0, "func": "static int CheckCodePointsComment ( IO * wrapper ) {\n char commentbuffer [ 128 ] , * pt ;\n int ch ;\n while ( isspace ( ch = nextch ( wrapper ) ) ) ;\n if ( ch != '%' ) {\n unnextch ( ch , wrapper ) ;\n return ( false ) ;\n }\n pt = commentbuffer ;\n while ( ( ch = nextch ( wrapper ) ) != EOF && ch != '\\r' && ch != '\\n' && ch != '\\f' ) {\n if ( pt - commentbuffer < ( ptrdiff_t ) sizeof ( commentbuffer ) - 1 ) * pt ++ = ch ;\n }\n * pt = '\\0' ;\n if ( strcmp ( commentbuffer , \" Use codepoints.\" ) == 0 ) return ( true ) ;\n return ( false ) ;\n }"}
{"idx": 5146, "target": 0, "func": "static UHashElement * _uhash_find ( const UHashtable * hash , UHashTok key , int32_t hashcode ) {\n int32_t firstDeleted = - 1 ;\n int32_t theIndex , startIndex ;\n int32_t jump = 0 ;\n int32_t tableHash ;\n UHashElement * elements = hash -> elements ;\n hashcode &= 0x7FFFFFFF ;\n startIndex = theIndex = ( hashcode ^ 0x4000000 ) % hash -> length ;\n do {\n tableHash = elements [ theIndex ] . hashcode ;\n if ( tableHash == hashcode ) {\n if ( ( * hash -> keyComparator ) ( key , elements [ theIndex ] . key ) ) {\n return & ( elements [ theIndex ] ) ;\n }\n }\n else if ( ! IS_EMPTY_OR_DELETED ( tableHash ) ) {\n }\n else if ( tableHash == HASH_EMPTY ) {\n break ;\n }\n else if ( firstDeleted < 0 ) {\n firstDeleted = theIndex ;\n }\n if ( jump == 0 ) {\n jump = ( hashcode % ( hash -> length - 1 ) ) + 1 ;\n }\n theIndex = ( theIndex + jump ) % hash -> length ;\n }\n while ( theIndex != startIndex ) ;\n if ( firstDeleted >= 0 ) {\n theIndex = firstDeleted ;\n }\n else if ( tableHash != HASH_EMPTY ) {\n U_ASSERT ( FALSE ) ;\n return NULL ;\n }\n return & ( elements [ theIndex ] ) ;\n }"}
{"idx": 5147, "target": 0, "func": "static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 5148, "target": 0, "func": "static void test_temporal_param ( ) {\n # define N_PARAMS 3 MYSQL_STMT * stmt = 0 ;\n uint rc ;\n ulong length [ N_PARAMS ] , length2 [ N_PARAMS ] ;\n MYSQL_BIND my_bind [ N_PARAMS ] , my_bind2 [ N_PARAMS ] ;\n my_bool is_null [ N_PARAMS ] , is_null2 [ N_PARAMS ] ;\n MYSQL_TIME tm ;\n longlong bigint = 123 ;\n double real = 123 ;\n char dec [ 40 ] ;\n memset ( & my_bind , 0 , sizeof ( my_bind ) ) ;\n memset ( & my_bind2 , 0 , sizeof ( my_bind2 ) ) ;\n memset ( & length , 0 , sizeof ( length ) ) ;\n memset ( & length2 , 0 , sizeof ( length2 ) ) ;\n memset ( & is_null , 0 , sizeof ( is_null ) ) ;\n memset ( & is_null2 , 0 , sizeof ( is_null2 ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_TIMESTAMP ;\n my_bind [ 0 ] . buffer = ( void * ) & tm ;\n my_bind [ 0 ] . is_null = & is_null [ 0 ] ;\n my_bind [ 0 ] . length = & length [ 0 ] ;\n my_bind [ 0 ] . buffer_length = sizeof ( tm ) ;\n my_bind [ 2 ] = my_bind [ 1 ] = my_bind [ 0 ] ;\n my_bind2 [ 0 ] . buffer_type = MYSQL_TYPE_LONGLONG ;\n my_bind2 [ 0 ] . length = & length2 [ 0 ] ;\n my_bind2 [ 0 ] . is_null = & is_null2 [ 0 ] ;\n my_bind2 [ 0 ] . buffer_length = sizeof ( bigint ) ;\n my_bind2 [ 0 ] . buffer = ( void * ) & bigint ;\n my_bind2 [ 1 ] . buffer_type = MYSQL_TYPE_DOUBLE ;\n my_bind2 [ 1 ] . length = & length2 [ 1 ] ;\n my_bind2 [ 1 ] . is_null = & is_null2 [ 1 ] ;\n my_bind2 [ 1 ] . buffer_length = sizeof ( real ) ;\n my_bind2 [ 1 ] . buffer = ( void * ) & real ;\n my_bind2 [ 2 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind2 [ 2 ] . length = & length2 [ 2 ] ;\n my_bind2 [ 2 ] . is_null = & is_null2 [ 2 ] ;\n my_bind2 [ 2 ] . buffer_length = sizeof ( dec ) ;\n my_bind2 [ 2 ] . buffer = ( void * ) & dec ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT CAST(? AS SIGNED), ?+0e0, ?+0.0\" ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , N_PARAMS ) ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_bind_result ( stmt , my_bind2 ) ;\n check_execute ( stmt , rc ) ;\n tm . neg = 0 ;\n tm . time_type = MYSQL_TIMESTAMP_DATETIME ;\n tm . year = 2001 ;\n tm . month = 10 ;\n tm . day = 20 ;\n tm . hour = 10 ;\n tm . minute = 10 ;\n tm . second = 59 ;\n tm . second_part = 500000 ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_store_result ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) printf ( \"\\n%lld %f '%s'\\n\" , bigint , real , dec ) ;\n DIE_UNLESS ( bigint == 20011020101100LL ) ;\n DIE_UNLESS ( real == 20011020101059.5 ) ;\n DIE_UNLESS ( ! strcmp ( dec , \"20011020101059.5\" ) ) ;\n mysql_stmt_close ( stmt ) ;\n my_bind [ 0 ] . buffer_type = my_bind [ 1 ] . buffer_type = my_bind [ 2 ] . buffer_type = MYSQL_TYPE_TIME ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT CAST(? AS SIGNED), ?+0e0, ?+0.0\" ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , N_PARAMS ) ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_bind_result ( stmt , my_bind2 ) ;\n check_execute ( stmt , rc ) ;\n tm . neg = 0 ;\n tm . time_type = MYSQL_TIMESTAMP_TIME ;\n tm . year = tm . month = tm . day = 0 ;\n tm . hour = 10 ;\n tm . minute = 10 ;\n tm . second = 59 ;\n tm . second_part = 500000 ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_store_result ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) printf ( \"\\n%lld %f '%s'\\n\" , bigint , real , dec ) ;\n DIE_UNLESS ( bigint == 101100 ) ;\n DIE_UNLESS ( real == 101059.5 ) ;\n DIE_UNLESS ( ! strcmp ( dec , \"101059.5\" ) ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 5149, "target": 0, "func": "static void get_rela_elf64 ( Dwarf_Small * data , unsigned int i , int endianness , int machine , struct Dwarf_Elf_Rela * relap ) {\n # ifdef HAVE_ELF64_RELA Elf64_Rela * relp = ( Elf64_Rela * ) ( data + ( i * sizeof ( Elf64_Rela ) ) ) ;\n relap -> r_offset = relp -> r_offset ;\n # define ELF64MIPS_REL_SYM ( i ) ( ( i ) & 0xffffffff ) # define ELF64MIPS_REL_TYPE ( i ) ( ( i >> 56 ) & 0xff ) if ( machine == EM_MIPS && endianness == DW_OBJECT_LSB ) {\n relap -> r_type = ELF64MIPS_REL_TYPE ( relp -> r_info ) ;\n relap -> r_symidx = ELF64MIPS_REL_SYM ( relp -> r_info ) ;\n # undef MIPS64SYM # undef MIPS64TYPE }\n else {\n relap -> r_type = ELF64_R_TYPE ( relp -> r_info ) ;\n relap -> r_symidx = ELF64_R_SYM ( relp -> r_info ) ;\n }\n relap -> r_addend = relp -> r_addend ;\n # endif }"}
{"idx": 5150, "target": 0, "func": "static void spl_filesystem_tree_it_current_data ( zend_object_iterator * iter , zval * * * data TSRMLS_DC ) {\n spl_filesystem_iterator * iterator = ( spl_filesystem_iterator * ) iter ;\n spl_filesystem_object * object = spl_filesystem_iterator_to_object ( iterator ) ;\n if ( SPL_FILE_DIR_CURRENT ( object , SPL_FILE_DIR_CURRENT_AS_PATHNAME ) ) {\n if ( ! iterator -> current ) {\n ALLOC_INIT_ZVAL ( iterator -> current ) ;\n spl_filesystem_object_get_file_name ( object TSRMLS_CC ) ;\n ZVAL_STRINGL ( iterator -> current , object -> file_name , object -> file_name_len , 1 ) ;\n }\n * data = & iterator -> current ;\n }\n else if ( SPL_FILE_DIR_CURRENT ( object , SPL_FILE_DIR_CURRENT_AS_FILEINFO ) ) {\n if ( ! iterator -> current ) {\n ALLOC_INIT_ZVAL ( iterator -> current ) ;\n spl_filesystem_object_get_file_name ( object TSRMLS_CC ) ;\n spl_filesystem_object_create_type ( 0 , object , SPL_FS_INFO , NULL , iterator -> current TSRMLS_CC ) ;\n }\n * data = & iterator -> current ;\n }\n else {\n * data = ( zval * * ) & iterator -> intern . data ;\n }\n }"}
{"idx": 5151, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( SessionRestorePageLoadMetricsBrowserTest , LoadingAfterSessionRestore ) {\n ui_test_utils : : NavigateToURL ( browser ( ) , GetTestURL ( ) ) ;\n Browser * new_browser = nullptr ;\n {\n SessionRestorePaintWaiter session_restore_paint_waiter ;\n new_browser = QuitBrowserAndRestore ( browser ( ) ) ;\n session_restore_paint_waiter . WaitForForegroundTabs ( 1 ) ;\n ExpectFirstPaintMetricsTotalCount ( 1 ) ;\n }\n auto waiter = std : : make_unique < PageLoadMetricsWaiter > ( new_browser -> tab_strip_model ( ) -> GetActiveWebContents ( ) ) ;\n waiter -> AddPageExpectation ( TimingField : : FIRST_MEANINGFUL_PAINT ) ;\n ui_test_utils : : NavigateToURL ( new_browser , GetTestURL ( ) ) ;\n waiter -> Wait ( ) ;\n ExpectFirstPaintMetricsTotalCount ( 1 ) ;\n }"}
{"idx": 5152, "target": 0, "func": "int write_pair ( PyObject * self , buffer_t buffer , const char * name , Py_ssize_t name_length , PyObject * value , unsigned char check_keys , unsigned char uuid_subtype , unsigned char allow_id ) {\n int type_byte ;\n if ( ! allow_id && strcmp ( name , \"_id\" ) == 0 ) {\n return 1 ;\n }\n type_byte = buffer_save_space ( buffer , 1 ) ;\n if ( type_byte == - 1 ) {\n PyErr_NoMemory ( ) ;\n return 0 ;\n }\n if ( check_keys && ! check_key_name ( name , name_length ) ) {\n return 0 ;\n }\n if ( ! buffer_write_bytes ( buffer , name , name_length + 1 ) ) {\n return 0 ;\n }\n if ( ! write_element_to_buffer ( self , buffer , type_byte , value , check_keys , uuid_subtype , 1 ) ) {\n return 0 ;\n }\n return 1 ;\n }"}
{"idx": 5153, "target": 0, "func": "char * cluster_conn_opts ( ClusterInfo * cluster ) {\n static PQExpBuffer buf ;\n if ( buf == NULL ) buf = createPQExpBuffer ( ) ;\n else resetPQExpBuffer ( buf ) ;\n if ( cluster -> sockdir ) {\n appendPQExpBufferStr ( buf , \"--host \" ) ;\n appendShellString ( buf , cluster -> sockdir ) ;\n appendPQExpBufferChar ( buf , ' ' ) ;\n }\n appendPQExpBuffer ( buf , \"--port %d --username \" , cluster -> port ) ;\n appendShellString ( buf , os_info . user ) ;\n return buf -> data ;\n }"}
{"idx": 5154, "target": 0, "func": "static void mark_commit ( struct commit * c , void * data ) {\n mark_object ( & c -> object , NULL , data ) ;\n }"}
{"idx": 5155, "target": 0, "func": "static int dissect_PRINTER_INFO_1 ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_printer_flags , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , tree , di , drep , hf_printerdesc , 0 , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , tree , di , drep , hf_printername , 0 , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , tree , di , drep , hf_printercomment , 0 , NULL ) ;\n return offset ;\n }"}
{"idx": 5156, "target": 0, "func": "int qemuMonitorTextDiskSnapshot ( qemuMonitorPtr mon , const char * device , const char * file ) {\n char * cmd = NULL ;\n char * reply = NULL ;\n int ret = - 1 ;\n char * safename ;\n if ( ! ( safename = qemuMonitorEscapeArg ( file ) ) || virAsprintf ( & cmd , \"snapshot_blkdev %s \\\"%s\\\"\" , device , safename ) < 0 ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"failed to take snapshot using command '%s'\" ) , cmd ) ;\n goto cleanup ;\n }\n if ( strstr ( reply , \"error while creating qcow2\" ) != NULL || strstr ( reply , \"unknown command:\" ) != NULL ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"Failed to take snapshot: %s\" ) , reply ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( safename ) ;\n VIR_FREE ( cmd ) ;\n VIR_FREE ( reply ) ;\n return ret ;\n }"}
{"idx": 5157, "target": 0, "func": "static int dissect_pvfs_string ( tvbuff_t * tvb , proto_tree * tree , int hfindex , int offset , const char * * string_buffer_ret ) {\n return dissect_pvfs_opaque_data ( tvb , offset , tree , NULL , hfindex , FALSE , 0 , TRUE , string_buffer_ret ) ;\n }"}
{"idx": 5158, "target": 0, "func": "int handle_compressed ( void * procctx , PKT_compressed * cd , int ( * callback ) ( IOBUF , void * ) , void * passthru ) {\n compress_filter_context_t * cfx ;\n int rc ;\n if ( check_compress_algo ( cd -> algorithm ) ) return G10ERR_COMPR_ALGO ;\n cfx = xmalloc_clear ( sizeof * cfx ) ;\n cfx -> release = release_context ;\n cfx -> algo = cd -> algorithm ;\n push_compress_filter ( cd -> buf , cfx , cd -> algorithm ) ;\n if ( callback ) rc = callback ( cd -> buf , passthru ) ;\n else rc = proc_packets ( procctx , cd -> buf ) ;\n cd -> buf = NULL ;\n return rc ;\n }"}
{"idx": 5159, "target": 0, "func": "static inline int may_rename ( struct inode * old_dir , struct dentry * old_dentry , struct inode * new_dir , struct dentry * new_dentry ) {\n struct inode_security_struct * old_dsec , * new_dsec , * old_isec , * new_isec ;\n struct common_audit_data ad ;\n u32 sid = current_sid ( ) ;\n u32 av ;\n int old_is_dir , new_is_dir ;\n int rc ;\n old_dsec = inode_security ( old_dir ) ;\n old_isec = backing_inode_security ( old_dentry ) ;\n old_is_dir = d_is_dir ( old_dentry ) ;\n new_dsec = inode_security ( new_dir ) ;\n ad . type = LSM_AUDIT_DATA_DENTRY ;\n ad . u . dentry = old_dentry ;\n rc = avc_has_perm ( sid , old_dsec -> sid , SECCLASS_DIR , DIR__REMOVE_NAME | DIR__SEARCH , & ad ) ;\n if ( rc ) return rc ;\n rc = avc_has_perm ( sid , old_isec -> sid , old_isec -> sclass , FILE__RENAME , & ad ) ;\n if ( rc ) return rc ;\n if ( old_is_dir && new_dir != old_dir ) {\n rc = avc_has_perm ( sid , old_isec -> sid , old_isec -> sclass , DIR__REPARENT , & ad ) ;\n if ( rc ) return rc ;\n }\n ad . u . dentry = new_dentry ;\n av = DIR__ADD_NAME | DIR__SEARCH ;\n if ( d_is_positive ( new_dentry ) ) av |= DIR__REMOVE_NAME ;\n rc = avc_has_perm ( sid , new_dsec -> sid , SECCLASS_DIR , av , & ad ) ;\n if ( rc ) return rc ;\n if ( d_is_positive ( new_dentry ) ) {\n new_isec = backing_inode_security ( new_dentry ) ;\n new_is_dir = d_is_dir ( new_dentry ) ;\n rc = avc_has_perm ( sid , new_isec -> sid , new_isec -> sclass , ( new_is_dir ? DIR__RMDIR : FILE__UNLINK ) , & ad ) ;\n if ( rc ) return rc ;\n }\n return 0 ;\n }"}
{"idx": 5160, "target": 0, "func": "static int mb_var_thread ( AVCodecContext * c , void * arg ) {\n MpegEncContext * s = * ( void * * ) arg ;\n int mb_x , mb_y ;\n ff_check_alignment ( ) ;\n for ( mb_y = s -> start_mb_y ;\n mb_y < s -> end_mb_y ;\n mb_y ++ ) {\n for ( mb_x = 0 ;\n mb_x < s -> mb_width ;\n mb_x ++ ) {\n int xx = mb_x * 16 ;\n int yy = mb_y * 16 ;\n uint8_t * pix = s -> new_picture . f . data [ 0 ] + ( yy * s -> linesize ) + xx ;\n int varc ;\n int sum = s -> dsp . pix_sum ( pix , s -> linesize ) ;\n varc = ( s -> dsp . pix_norm1 ( pix , s -> linesize ) - ( ( ( unsigned ) sum * sum ) >> 8 ) + 500 + 128 ) >> 8 ;\n s -> current_picture . mb_var [ s -> mb_stride * mb_y + mb_x ] = varc ;\n s -> current_picture . mb_mean [ s -> mb_stride * mb_y + mb_x ] = ( sum + 128 ) >> 8 ;\n s -> me . mb_var_sum_temp += varc ;\n }\n }\n return 0 ;\n }"}
{"idx": 5161, "target": 0, "func": "static void i_free_object ( gs_memory_t * mem , void * ptr , client_name_t cname ) {\n gs_ref_memory_t * const imem = ( gs_ref_memory_t * ) mem ;\n obj_header_t * pp ;\n gs_memory_type_ptr_t pstype ;\n gs_memory_struct_type_t saved_stype ;\n struct_proc_finalize ( ( * finalize ) ) ;\n uint size , rounded_size ;\n if ( ptr == 0 ) return ;\n pp = ( obj_header_t * ) ptr - 1 ;\n pstype = pp -> o_type ;\n # ifdef DEBUG if ( gs_debug_c ( '?' ) ) {\n clump_locator_t cld ;\n if ( pstype == & st_free ) {\n mlprintf2 ( mem , \"%s: object 0x%lx already free!\\n\" , client_name_string ( cname ) , ( ulong ) ptr ) ;\n return ;\n }\n cld . memory = imem ;\n while ( ( cld . cp = cld . memory -> root ) , ! clump_locate_ptr ( ptr , & cld ) ) {\n if ( ! cld . memory -> saved ) {\n mlprintf3 ( mem , \"%s: freeing 0x%lx, not owned by memory 0x%lx!\\n\" , client_name_string ( cname ) , ( ulong ) ptr , ( ulong ) mem ) ;\n return ;\n }\n cld . memory = ( gs_ref_memory_t * ) cld . memory -> saved ;\n }\n if ( ! ( PTR_BETWEEN ( ( const byte * ) pp , cld . cp -> cbase , cld . cp -> cbot ) ) ) {\n mlprintf5 ( mem , \"%s: freeing 0x%lx,\\n\\toutside clump 0x%lx cbase=0x%lx, cbot=0x%lx!\\n\" , client_name_string ( cname ) , ( ulong ) ptr , ( ulong ) cld . cp , ( ulong ) cld . cp -> cbase , ( ulong ) cld . cp -> cbot ) ;\n return ;\n }\n }\n # endif size = pre_obj_contents_size ( pp ) ;\n rounded_size = obj_align_round ( size ) ;\n finalize = pstype -> finalize ;\n if ( finalize != 0 ) {\n if ( gs_debug [ 'a' ] || gs_debug [ 'A' ] ) saved_stype = * pstype ;\n if_debug3m ( 'u' , mem , \"[u]finalizing %s 0x%lx (%s)\\n\" , struct_type_name_string ( pstype ) , ( ulong ) ptr , client_name_string ( cname ) ) ;\n ( * finalize ) ( mem , ptr ) ;\n if ( gs_debug [ 'a' ] || gs_debug [ 'A' ] ) pstype = & saved_stype ;\n }\n if ( imem -> cc && ( byte * ) ptr + rounded_size == imem -> cc -> cbot ) {\n alloc_trace ( \":-o \" , imem , cname , pstype , size , ptr ) ;\n gs_alloc_fill ( ptr , gs_alloc_fill_free , size ) ;\n imem -> cc -> cbot = ( byte * ) pp ;\n if ( ( byte * ) pp <= imem -> cc -> int_freed_top ) {\n consolidate_clump_free ( imem -> cc , imem ) ;\n }\n return ;\n }\n if ( pp -> o_alone ) {\n clump_locator_t cl ;\n # ifdef DEBUG {\n clump_locator_t cld ;\n cld . memory = imem ;\n cld . cp = 0 ;\n if ( gs_debug_c ( 'a' ) ) alloc_trace ( ( clump_locate_ptr ( ptr , & cld ) ? \":-oL\" : \":-o~\" ) , imem , cname , pstype , size , ptr ) ;\n }\n # endif cl . memory = imem ;\n cl . cp = 0 ;\n if ( clump_locate_ptr ( ptr , & cl ) ) {\n if ( ! imem -> is_controlled ) alloc_free_clump ( cl . cp , imem ) ;\n return ;\n }\n }\n if ( rounded_size >= sizeof ( obj_header_t * ) ) {\n imem -> cfreed . memory = imem ;\n if ( clump_locate ( ptr , & imem -> cfreed ) ) {\n obj_header_t * * pfl ;\n if ( size > max_freelist_size ) {\n pfl = & imem -> freelists [ LARGE_FREELIST_INDEX ] ;\n if ( rounded_size > imem -> largest_free_size ) imem -> largest_free_size = rounded_size ;\n }\n else {\n pfl = & imem -> freelists [ ( size + obj_align_mask ) >> log2_obj_align_mod ] ;\n }\n if ( imem -> cc && imem -> cfreed . cp -> chead == imem -> cc -> chead ) {\n if ( ( byte * ) pp >= imem -> cc -> int_freed_top ) {\n imem -> cc -> int_freed_top = ( byte * ) ptr + rounded_size ;\n }\n }\n else {\n if ( ( byte * ) pp >= imem -> cfreed . cp -> int_freed_top ) {\n imem -> cfreed . cp -> int_freed_top = ( byte * ) ptr + rounded_size ;\n }\n }\n pp -> o_type = & st_free ;\n o_set_unmarked ( pp ) ;\n gs_alloc_fill ( ptr , gs_alloc_fill_free , size ) ;\n * ( obj_header_t * * ) ptr = * pfl ;\n * pfl = ( obj_header_t * ) ptr ;\n alloc_trace ( ( size > max_freelist_size ? \":-oF\" : \":-of\" ) , imem , cname , pstype , size , ptr ) ;\n return ;\n }\n }\n else {\n pp -> o_type = & st_free ;\n gs_alloc_fill ( ptr , gs_alloc_fill_free , size ) ;\n }\n alloc_trace ( \":-o#\" , imem , cname , pstype , size , ptr ) ;\n imem -> lost . objects += obj_size_round ( size ) ;\n }"}
{"idx": 5162, "target": 0, "func": "static bool config_filter_match_local_name ( const struct config_filter * mask , const char * filter_local_name ) {\n const char * const * local_name = t_strsplit_spaces ( mask -> local_name , \" \" ) ;\n for ( ;\n * local_name != NULL ;\n local_name ++ ) {\n if ( dns_match_wildcard ( filter_local_name , * local_name ) == 0 ) return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 5163, "target": 1, "func": "static bool on_accept ( private_stroke_socket_t * this , stream_t * stream ) {\n stroke_msg_t * msg ;\n uint16_t len ;\n FILE * out ;\n if ( ! stream -> read_all ( stream , & len , sizeof ( len ) ) ) {\n if ( errno != EWOULDBLOCK ) {\n DBG1 ( DBG_CFG , \"reading length of stroke message failed: %s\" , strerror ( errno ) ) ;\n }\n return FALSE ;\n }\n msg = malloc ( len + 1 ) ;\n msg -> length = len ;\n if ( ! stream -> read_all ( stream , ( char * ) msg + sizeof ( len ) , len - sizeof ( len ) ) ) {\n if ( errno != EWOULDBLOCK ) {\n DBG1 ( DBG_CFG , \"reading stroke message failed: %s\" , strerror ( errno ) ) ;\n }\n free ( msg ) ;\n return FALSE ;\n }\n ( ( char * ) msg ) [ len ] = '\\0' ;\n DBG3 ( DBG_CFG , \"stroke message %b\" , ( void * ) msg , len ) ;\n out = stream -> get_file ( stream ) ;\n if ( ! out ) {\n DBG1 ( DBG_CFG , \"creating stroke output stream failed\" ) ;\n free ( msg ) ;\n return FALSE ;\n }\n switch ( msg -> type ) {\n case STR_INITIATE : stroke_initiate ( this , msg , out ) ;\n break ;\n case STR_ROUTE : stroke_route ( this , msg , out ) ;\n break ;\n case STR_UNROUTE : stroke_unroute ( this , msg , out ) ;\n break ;\n case STR_TERMINATE : stroke_terminate ( this , msg , out ) ;\n break ;\n case STR_TERMINATE_SRCIP : stroke_terminate_srcip ( this , msg , out ) ;\n break ;\n case STR_REKEY : stroke_rekey ( this , msg , out ) ;\n break ;\n case STR_STATUS : stroke_status ( this , msg , out , FALSE , TRUE ) ;\n break ;\n case STR_STATUS_ALL : stroke_status ( this , msg , out , TRUE , TRUE ) ;\n break ;\n case STR_STATUS_ALL_NOBLK : stroke_status ( this , msg , out , TRUE , FALSE ) ;\n break ;\n case STR_ADD_CONN : stroke_add_conn ( this , msg ) ;\n break ;\n case STR_DEL_CONN : stroke_del_conn ( this , msg ) ;\n break ;\n case STR_ADD_CA : stroke_add_ca ( this , msg , out ) ;\n break ;\n case STR_DEL_CA : stroke_del_ca ( this , msg , out ) ;\n break ;\n case STR_LOGLEVEL : stroke_loglevel ( this , msg , out ) ;\n break ;\n case STR_CONFIG : stroke_config ( this , msg , out ) ;\n break ;\n case STR_LIST : stroke_list ( this , msg , out ) ;\n break ;\n case STR_REREAD : stroke_reread ( this , msg , out ) ;\n break ;\n case STR_PURGE : stroke_purge ( this , msg , out ) ;\n break ;\n case STR_EXPORT : stroke_export ( this , msg , out ) ;\n break ;\n case STR_LEASES : stroke_leases ( this , msg , out ) ;\n break ;\n case STR_MEMUSAGE : stroke_memusage ( this , msg , out ) ;\n break ;\n case STR_USER_CREDS : stroke_user_creds ( this , msg , out ) ;\n break ;\n case STR_COUNTERS : stroke_counters ( this , msg , out ) ;\n break ;\n default : DBG1 ( DBG_CFG , \"received unknown stroke\" ) ;\n break ;\n }\n free ( msg ) ;\n fclose ( out ) ;\n return FALSE ;\n }"}
{"idx": 5164, "target": 1, "func": "static int execstack_continue ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n return do_execstack ( i_ctx_p , false , op ) ;\n }"}
{"idx": 5165, "target": 0, "func": "static int dissect_h245_DepFECData ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_DepFECData , DepFECData_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 5166, "target": 0, "func": "TEST_F ( WebUsbDetectorTest , ThreeUsbDevicesWereThereBeforeAndThenRemovedAfterWebUsbDetectorWasCreated ) {\n base : : string16 product_name_1 = base : : UTF8ToUTF16 ( kProductName_1 ) ;\n GURL landing_page_1 ( kLandingPage_1 ) ;\n scoped_refptr < device : : MockUsbDevice > device_1 ( new device : : MockUsbDevice ( 0 , 1 , \"Google\" , kProductName_1 , \"002\" , landing_page_1 ) ) ;\n std : : string guid_1 = device_1 -> guid ( ) ;\n base : : string16 product_name_2 = base : : UTF8ToUTF16 ( kProductName_2 ) ;\n GURL landing_page_2 ( kLandingPage_2 ) ;\n scoped_refptr < device : : MockUsbDevice > device_2 ( new device : : MockUsbDevice ( 3 , 4 , \"Google\" , kProductName_2 , \"005\" , landing_page_2 ) ) ;\n std : : string guid_2 = device_2 -> guid ( ) ;\n base : : string16 product_name_3 = base : : UTF8ToUTF16 ( kProductName_3 ) ;\n GURL landing_page_3 ( kLandingPage_3 ) ;\n scoped_refptr < device : : MockUsbDevice > device_3 ( new device : : MockUsbDevice ( 6 , 7 , \"Google\" , kProductName_3 , \"008\" , landing_page_3 ) ) ;\n std : : string guid_3 = device_3 -> guid ( ) ;\n device_client_ . usb_service ( ) -> AddDevice ( device_1 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_1 ) == nullptr ) ;\n device_client_ . usb_service ( ) -> AddDevice ( device_2 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_2 ) == nullptr ) ;\n device_client_ . usb_service ( ) -> AddDevice ( device_3 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_3 ) == nullptr ) ;\n Initialize ( ) ;\n device_client_ . usb_service ( ) -> RemoveDevice ( device_1 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_1 ) == nullptr ) ;\n device_client_ . usb_service ( ) -> RemoveDevice ( device_2 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_2 ) == nullptr ) ;\n device_client_ . usb_service ( ) -> RemoveDevice ( device_3 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_3 ) == nullptr ) ;\n }"}
{"idx": 5167, "target": 1, "func": "WORK_STATE tls_finish_handshake ( SSL * s , WORK_STATE wst ) {\n void ( * cb ) ( const SSL * ssl , int type , int val ) = NULL ;\n # ifndef OPENSSL_NO_SCTP if ( SSL_IS_DTLS ( s ) && BIO_dgram_is_sctp ( SSL_get_wbio ( s ) ) ) {\n WORK_STATE ret ;\n ret = dtls_wait_for_dry ( s ) ;\n if ( ret != WORK_FINISHED_CONTINUE ) return ret ;\n }\n # endif ssl3_cleanup_key_block ( s ) ;\n if ( ! SSL_IS_DTLS ( s ) ) {\n BUF_MEM_free ( s -> init_buf ) ;\n s -> init_buf = NULL ;\n }\n ssl_free_wbio_buffer ( s ) ;\n s -> init_num = 0 ;\n if ( ! s -> server || s -> renegotiate == 2 ) {\n s -> renegotiate = 0 ;\n s -> new_session = 0 ;\n if ( s -> server ) {\n ssl_update_cache ( s , SSL_SESS_CACHE_SERVER ) ;\n s -> ctx -> stats . sess_accept_good ++ ;\n s -> handshake_func = ossl_statem_accept ;\n }\n else {\n ssl_update_cache ( s , SSL_SESS_CACHE_CLIENT ) ;\n if ( s -> hit ) s -> ctx -> stats . sess_hit ++ ;\n s -> handshake_func = ossl_statem_connect ;\n s -> ctx -> stats . sess_connect_good ++ ;\n }\n if ( s -> info_callback != NULL ) cb = s -> info_callback ;\n else if ( s -> ctx -> info_callback != NULL ) cb = s -> ctx -> info_callback ;\n if ( cb != NULL ) cb ( s , SSL_CB_HANDSHAKE_DONE , 1 ) ;\n if ( SSL_IS_DTLS ( s ) ) {\n s -> d1 -> handshake_read_seq = 0 ;\n s -> d1 -> handshake_write_seq = 0 ;\n s -> d1 -> next_handshake_write_seq = 0 ;\n }\n }\n return WORK_FINISHED_STOP ;\n }"}
{"idx": 5168, "target": 0, "func": "static struct async * alloc_async ( unsigned int numisoframes ) {\n struct async * as ;\n as = kzalloc ( sizeof ( struct async ) , GFP_KERNEL ) ;\n if ( ! as ) return NULL ;\n as -> urb = usb_alloc_urb ( numisoframes , GFP_KERNEL ) ;\n if ( ! as -> urb ) {\n kfree ( as ) ;\n return NULL ;\n }\n return as ;\n }"}
{"idx": 5169, "target": 0, "func": "static void check_for_pg_role_prefix ( ClusterInfo * cluster ) {\n PGresult * res ;\n PGconn * conn = connectToServer ( cluster , \"template1\" ) ;\n prep_status ( \"Checking for roles starting with 'pg_'\" ) ;\n res = executeQueryOrDie ( conn , \"SELECT * \" \"FROM pg_catalog.pg_roles \" \"WHERE rolname ~ '^pg_'\" ) ;\n if ( PQntuples ( res ) != 0 ) pg_fatal ( \"The %s cluster contains roles starting with 'pg_'\\n\" , CLUSTER_NAME ( cluster ) ) ;\n PQclear ( res ) ;\n PQfinish ( conn ) ;\n check_ok ( ) ;\n }"}
{"idx": 5170, "target": 0, "func": "static void mark_create_done ( ArchiveHandle * AH , TocEntry * te ) {\n if ( AH -> tableDataId [ te -> dumpId ] != 0 ) {\n TocEntry * ted = AH -> tocsByDumpId [ AH -> tableDataId [ te -> dumpId ] ] ;\n ted -> created = true ;\n }\n }"}
{"idx": 5171, "target": 0, "func": "int * __xmlKeepBlanksDefaultValue ( void ) {\n if ( IS_MAIN_THREAD ) return ( & xmlKeepBlanksDefaultValue ) ;\n else return ( & xmlGetGlobalState ( ) -> xmlKeepBlanksDefaultValue ) ;\n }"}
{"idx": 5172, "target": 0, "func": "static UBool isPNJConsonant ( UChar32 c ) {\n if ( c < 0xa00 || 0xa50 <= c ) {\n return FALSE ;\n }\n else {\n return ( UBool ) ( pnjMap [ c - 0xa00 ] & 1 ) ;\n }\n }"}
{"idx": 5173, "target": 0, "func": "CURLcode Curl_auth_create_external_message ( struct Curl_easy * data , const char * user , char * * outptr , size_t * outlen ) {\n return Curl_auth_create_login_message ( data , user , outptr , outlen ) ;\n }"}
{"idx": 5174, "target": 0, "func": "static PREDICTION_MODE read_intra_mode ( vp9_reader * r , const vp9_prob * p ) {\n return ( PREDICTION_MODE ) vp9_read_tree ( r , vp9_intra_mode_tree , p ) ;\n }"}
{"idx": 5175, "target": 1, "func": "TEST_F ( PrintPreviewUIUnitTest , PrintPreviewData ) {\n WebContents * initiator = browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) ;\n ASSERT_TRUE ( initiator ) ;\n EXPECT_FALSE ( IsShowingWebContentsModalDialog ( initiator ) ) ;\n printing : : PrintPreviewDialogController * controller = printing : : PrintPreviewDialogController : : GetInstance ( ) ;\n ASSERT_TRUE ( controller ) ;\n printing : : PrintViewManager * print_view_manager = printing : : PrintViewManager : : FromWebContents ( initiator ) ;\n print_view_manager -> PrintPreviewNow ( false ) ;\n WebContents * preview_dialog = controller -> GetOrCreatePreviewDialog ( initiator ) ;\n EXPECT_NE ( initiator , preview_dialog ) ;\n EXPECT_EQ ( 1 , browser ( ) -> tab_strip_model ( ) -> count ( ) ) ;\n EXPECT_TRUE ( IsShowingWebContentsModalDialog ( initiator ) ) ;\n PrintPreviewUI * preview_ui = static_cast < PrintPreviewUI * > ( preview_dialog -> GetWebUI ( ) -> GetController ( ) ) ;\n ASSERT_TRUE ( preview_ui != NULL ) ;\n scoped_refptr < base : : RefCountedBytes > data ;\n preview_ui -> GetPrintPreviewDataForIndex ( printing : : COMPLETE_PREVIEW_DOCUMENT_INDEX , & data ) ;\n EXPECT_EQ ( NULL , data . get ( ) ) ;\n scoped_refptr < base : : RefCountedBytes > dummy_data = CreateTestData ( ) ;\n preview_ui -> SetPrintPreviewDataForIndex ( printing : : COMPLETE_PREVIEW_DOCUMENT_INDEX , dummy_data . get ( ) ) ;\n preview_ui -> GetPrintPreviewDataForIndex ( printing : : COMPLETE_PREVIEW_DOCUMENT_INDEX , & data ) ;\n EXPECT_EQ ( dummy_data -> size ( ) , data -> size ( ) ) ;\n EXPECT_EQ ( dummy_data . get ( ) , data . get ( ) ) ;\n dummy_data = new base : : RefCountedBytes ( ) ;\n preview_ui -> SetPrintPreviewDataForIndex ( printing : : FIRST_PAGE_INDEX , dummy_data . get ( ) ) ;\n preview_ui -> ClearAllPreviewData ( ) ;\n preview_ui -> GetPrintPreviewDataForIndex ( printing : : COMPLETE_PREVIEW_DOCUMENT_INDEX , & data ) ;\n EXPECT_EQ ( NULL , data . get ( ) ) ;\n }"}
{"idx": 5176, "target": 0, "func": "static int collector_encode_htmlnumericentity ( int c , void * data ) {\n struct collector_htmlnumericentity_data * pc = ( struct collector_htmlnumericentity_data * ) data ;\n int f , n , s , r , d , size , * mapelm ;\n size = pc -> mapsize ;\n f = 0 ;\n n = 0 ;\n while ( n < size ) {\n mapelm = & ( pc -> convmap [ n * 4 ] ) ;\n if ( c >= mapelm [ 0 ] && c <= mapelm [ 1 ] ) {\n s = ( c + mapelm [ 2 ] ) & mapelm [ 3 ] ;\n if ( s >= 0 ) {\n ( * pc -> decoder -> filter_function ) ( 0x26 , pc -> decoder ) ;\n ( * pc -> decoder -> filter_function ) ( 0x23 , pc -> decoder ) ;\n r = 100000000 ;\n s %= r ;\n while ( r > 0 ) {\n d = s / r ;\n if ( d || f ) {\n f = 1 ;\n s %= r ;\n ( * pc -> decoder -> filter_function ) ( mbfl_hexchar_table [ d ] , pc -> decoder ) ;\n }\n r /= 10 ;\n }\n if ( ! f ) {\n f = 1 ;\n ( * pc -> decoder -> filter_function ) ( mbfl_hexchar_table [ 0 ] , pc -> decoder ) ;\n }\n ( * pc -> decoder -> filter_function ) ( 0x3b , pc -> decoder ) ;\n }\n }\n if ( f ) {\n break ;\n }\n n ++ ;\n }\n if ( ! f ) {\n ( * pc -> decoder -> filter_function ) ( c , pc -> decoder ) ;\n }\n return c ;\n }"}
{"idx": 5177, "target": 0, "func": "static uint32_t get_nfc ( uint32_t uc , uint32_t uc2 ) {\n int t , b ;\n t = 0 ;\n b = sizeof ( u_composition_table ) / sizeof ( u_composition_table [ 0 ] ) - 1 ;\n while ( b >= t ) {\n int m = ( t + b ) / 2 ;\n if ( u_composition_table [ m ] . cp1 < uc ) t = m + 1 ;\n else if ( u_composition_table [ m ] . cp1 > uc ) b = m - 1 ;\n else if ( u_composition_table [ m ] . cp2 < uc2 ) t = m + 1 ;\n else if ( u_composition_table [ m ] . cp2 > uc2 ) b = m - 1 ;\n else return ( u_composition_table [ m ] . nfc ) ;\n }\n return ( 0 ) ;\n }"}
{"idx": 5178, "target": 0, "func": "bool tcg_enabled ( void ) {\n return tcg_ctx . code_gen_buffer != NULL ;\n }"}
{"idx": 5179, "target": 0, "func": "static int set_directory_record_rr ( unsigned char * bp , int dr_len , struct isoent * isoent , struct iso9660 * iso9660 , enum dir_rec_type t ) {\n unsigned char rr_flag ;\n # define RR_USE_PX 0x01 # define RR_USE_PN 0x02 # define RR_USE_SL 0x04 # define RR_USE_NM 0x08 # define RR_USE_CL 0x10 # define RR_USE_PL 0x20 # define RR_USE_RE 0x40 # define RR_USE_TF 0x80 int length ;\n struct ctl_extr_rec ctl ;\n struct isoent * rr_parent , * pxent ;\n struct isofile * file ;\n bp = extra_open_record ( bp , dr_len , isoent , & ctl ) ;\n if ( t == DIR_REC_PARENT ) {\n rr_parent = isoent -> rr_parent ;\n pxent = isoent -> parent ;\n if ( rr_parent != NULL ) isoent = rr_parent ;\n else isoent = isoent -> parent ;\n }\n else {\n rr_parent = NULL ;\n pxent = isoent ;\n }\n file = isoent -> file ;\n if ( t != DIR_REC_NORMAL ) {\n rr_flag = RR_USE_PX | RR_USE_TF ;\n if ( rr_parent != NULL ) rr_flag |= RR_USE_PL ;\n }\n else {\n rr_flag = RR_USE_PX | RR_USE_NM | RR_USE_TF ;\n if ( archive_entry_filetype ( file -> entry ) == AE_IFLNK ) rr_flag |= RR_USE_SL ;\n if ( isoent -> rr_parent != NULL ) rr_flag |= RR_USE_RE ;\n if ( isoent -> rr_child != NULL ) rr_flag |= RR_USE_CL ;\n if ( archive_entry_filetype ( file -> entry ) == AE_IFCHR || archive_entry_filetype ( file -> entry ) == AE_IFBLK ) rr_flag |= RR_USE_PN ;\n # ifdef COMPAT_MKISOFS if ( isoent -> virtual && isoent -> parent == iso9660 -> primary . rootent && strcmp ( isoent -> file -> basename . s , \"rr_moved\" ) == 0 ) rr_flag |= RR_USE_RE ;\n # endif }\n if ( t == DIR_REC_SELF && isoent == isoent -> parent ) {\n length = 7 ;\n if ( bp != NULL ) {\n bp [ 1 ] = 'S' ;\n bp [ 2 ] = 'P' ;\n bp [ 3 ] = length ;\n bp [ 4 ] = 1 ;\n bp [ 5 ] = 0xBE ;\n bp [ 6 ] = 0xEF ;\n bp [ 7 ] = 0 ;\n bp += length ;\n }\n extra_tell_used_size ( & ctl , length ) ;\n }\n length = 5 ;\n if ( extra_space ( & ctl ) < length ) bp = extra_next_record ( & ctl , length ) ;\n if ( bp != NULL ) {\n bp [ 1 ] = 'R' ;\n bp [ 2 ] = 'R' ;\n bp [ 3 ] = length ;\n bp [ 4 ] = 1 ;\n bp [ 5 ] = rr_flag ;\n bp += length ;\n }\n extra_tell_used_size ( & ctl , length ) ;\n if ( rr_flag & RR_USE_NM ) {\n size_t nmlen = file -> basename . length ;\n const char * nm = file -> basename . s ;\n size_t nmmax ;\n if ( extra_space ( & ctl ) < 6 ) bp = extra_next_record ( & ctl , 6 ) ;\n if ( bp != NULL ) {\n bp [ 1 ] = 'N' ;\n bp [ 2 ] = 'M' ;\n bp [ 4 ] = 1 ;\n }\n nmmax = extra_space ( & ctl ) ;\n if ( nmmax > 0xff ) nmmax = 0xff ;\n while ( nmlen + 5 > nmmax ) {\n length = ( int ) nmmax ;\n if ( bp != NULL ) {\n bp [ 3 ] = length ;\n bp [ 5 ] = 0x01 ;\n memcpy ( bp + 6 , nm , length - 5 ) ;\n bp += length ;\n }\n nmlen -= length - 5 ;\n nm += length - 5 ;\n extra_tell_used_size ( & ctl , length ) ;\n if ( extra_space ( & ctl ) < 6 ) {\n bp = extra_next_record ( & ctl , 6 ) ;\n nmmax = extra_space ( & ctl ) ;\n if ( nmmax > 0xff ) nmmax = 0xff ;\n }\n if ( bp != NULL ) {\n bp [ 1 ] = 'N' ;\n bp [ 2 ] = 'M' ;\n bp [ 4 ] = 1 ;\n }\n }\n length = 5 + ( int ) nmlen ;\n if ( bp != NULL ) {\n bp [ 3 ] = length ;\n bp [ 5 ] = 0 ;\n memcpy ( bp + 6 , nm , nmlen ) ;\n bp += length ;\n }\n extra_tell_used_size ( & ctl , length ) ;\n }\n if ( rr_flag & RR_USE_PX ) {\n length = 44 ;\n if ( extra_space ( & ctl ) < length ) bp = extra_next_record ( & ctl , length ) ;\n if ( bp != NULL ) {\n mode_t mode ;\n int64_t uid ;\n int64_t gid ;\n mode = archive_entry_mode ( file -> entry ) ;\n uid = archive_entry_uid ( file -> entry ) ;\n gid = archive_entry_gid ( file -> entry ) ;\n if ( iso9660 -> opt . rr == OPT_RR_USEFUL ) {\n mode |= 0444 ;\n # if ! defined ( _WIN32 ) && ! defined ( __CYGWIN__ ) if ( mode & 0111 ) # endif mode |= 0111 ;\n mode &= ~ 0222 ;\n mode &= ~ 07000 ;\n }\n bp [ 1 ] = 'P' ;\n bp [ 2 ] = 'X' ;\n bp [ 3 ] = length ;\n bp [ 4 ] = 1 ;\n set_num_733 ( bp + 5 , mode ) ;\n set_num_733 ( bp + 13 , archive_entry_nlink ( file -> entry ) ) ;\n set_num_733 ( bp + 21 , ( uint32_t ) uid ) ;\n set_num_733 ( bp + 29 , ( uint32_t ) gid ) ;\n if ( pxent -> dir ) set_num_733 ( bp + 37 , pxent -> dir_location ) ;\n else if ( file -> hardlink_target != NULL ) set_num_733 ( bp + 37 , file -> hardlink_target -> cur_content -> location ) ;\n else set_num_733 ( bp + 37 , file -> cur_content -> location ) ;\n bp += length ;\n }\n extra_tell_used_size ( & ctl , length ) ;\n }\n if ( rr_flag & RR_USE_SL ) {\n const char * sl ;\n char sl_last ;\n if ( extra_space ( & ctl ) < 7 ) bp = extra_next_record ( & ctl , 7 ) ;\n sl = file -> symlink . s ;\n sl_last = '\\0' ;\n if ( bp != NULL ) {\n bp [ 1 ] = 'S' ;\n bp [ 2 ] = 'L' ;\n bp [ 4 ] = 1 ;\n }\n for ( ;\n ;\n ) {\n unsigned char * nc , * cf , * cl , cldmy = 0 ;\n int sllen , slmax ;\n slmax = extra_space ( & ctl ) ;\n if ( slmax > 0xff ) slmax = 0xff ;\n if ( bp != NULL ) nc = & bp [ 6 ] ;\n else nc = NULL ;\n cf = cl = NULL ;\n sllen = 0 ;\n while ( * sl && sllen + 11 < slmax ) {\n if ( sl_last == '\\0' && sl [ 0 ] == '/' ) {\n if ( nc != NULL ) {\n cf = nc ++ ;\n * cf = 0x08 ;\n * nc ++ = 0 ;\n }\n sllen += 2 ;\n sl ++ ;\n sl_last = '/' ;\n cl = NULL ;\n continue ;\n }\n if ( ( ( sl_last == '\\0' || sl_last == '/' ) && sl [ 0 ] == '.' && sl [ 1 ] == '.' && ( sl [ 2 ] == '/' || sl [ 2 ] == '\\0' ) ) || ( sl [ 0 ] == '/' && sl [ 1 ] == '.' && sl [ 2 ] == '.' && ( sl [ 3 ] == '/' || sl [ 3 ] == '\\0' ) ) ) {\n if ( nc != NULL ) {\n cf = nc ++ ;\n * cf = 0x04 ;\n * nc ++ = 0 ;\n }\n sllen += 2 ;\n if ( sl [ 0 ] == '/' ) sl += 3 ;\n else sl += 2 ;\n sl_last = '.' ;\n cl = NULL ;\n continue ;\n }\n if ( ( ( sl_last == '\\0' || sl_last == '/' ) && sl [ 0 ] == '.' && ( sl [ 1 ] == '/' || sl [ 1 ] == '\\0' ) ) || ( sl [ 0 ] == '/' && sl [ 1 ] == '.' && ( sl [ 2 ] == '/' || sl [ 2 ] == '\\0' ) ) ) {\n if ( nc != NULL ) {\n cf = nc ++ ;\n * cf = 0x02 ;\n * nc ++ = 0 ;\n }\n sllen += 2 ;\n if ( sl [ 0 ] == '/' ) sl += 2 ;\n else sl ++ ;\n sl_last = '.' ;\n cl = NULL ;\n continue ;\n }\n if ( sl [ 0 ] == '/' || cl == NULL ) {\n if ( nc != NULL ) {\n cf = nc ++ ;\n * cf = 0 ;\n cl = nc ++ ;\n * cl = 0 ;\n }\n else cl = & cldmy ;\n sllen += 2 ;\n if ( sl [ 0 ] == '/' ) {\n sl_last = * sl ++ ;\n continue ;\n }\n }\n sl_last = * sl ++ ;\n if ( nc != NULL ) {\n * nc ++ = sl_last ;\n ( * cl ) ++ ;\n }\n sllen ++ ;\n }\n if ( * sl ) {\n length = 5 + sllen ;\n if ( bp != NULL ) {\n * cf |= 0x01 ;\n bp [ 3 ] = length ;\n bp [ 5 ] = 0x01 ;\n bp += length ;\n }\n extra_tell_used_size ( & ctl , length ) ;\n if ( extra_space ( & ctl ) < 11 ) bp = extra_next_record ( & ctl , 11 ) ;\n if ( bp != NULL ) {\n bp [ 1 ] = 'S' ;\n bp [ 2 ] = 'L' ;\n bp [ 4 ] = 1 ;\n }\n }\n else {\n length = 5 + sllen ;\n if ( bp != NULL ) {\n bp [ 3 ] = length ;\n bp [ 5 ] = 0 ;\n bp += length ;\n }\n extra_tell_used_size ( & ctl , length ) ;\n break ;\n }\n }\n }\n if ( rr_flag & RR_USE_TF ) {\n # define TF_CREATION 0x01 # define TF_MODIFY 0x02 # define TF_ACCESS 0x04 # define TF_ATTRIBUTES 0x08 # define TF_BACKUP 0x10 # define TF_EXPIRATION 0x20 # define TF_EFFECTIVE 0x40 # define TF_LONG_FORM 0x80 unsigned char tf_flags ;\n length = 5 ;\n tf_flags = 0 ;\n # ifndef COMPAT_MKISOFS if ( archive_entry_birthtime_is_set ( file -> entry ) && archive_entry_birthtime ( file -> entry ) <= archive_entry_mtime ( file -> entry ) ) {\n length += 7 ;\n tf_flags |= TF_CREATION ;\n }\n # endif if ( archive_entry_mtime_is_set ( file -> entry ) ) {\n length += 7 ;\n tf_flags |= TF_MODIFY ;\n }\n if ( archive_entry_atime_is_set ( file -> entry ) ) {\n length += 7 ;\n tf_flags |= TF_ACCESS ;\n }\n if ( archive_entry_ctime_is_set ( file -> entry ) ) {\n length += 7 ;\n tf_flags |= TF_ATTRIBUTES ;\n }\n if ( extra_space ( & ctl ) < length ) bp = extra_next_record ( & ctl , length ) ;\n if ( bp != NULL ) {\n bp [ 1 ] = 'T' ;\n bp [ 2 ] = 'F' ;\n bp [ 3 ] = length ;\n bp [ 4 ] = 1 ;\n bp [ 5 ] = tf_flags ;\n bp += 5 ;\n if ( tf_flags & TF_CREATION ) {\n set_time_915 ( bp + 1 , archive_entry_birthtime ( file -> entry ) ) ;\n bp += 7 ;\n }\n if ( tf_flags & TF_MODIFY ) {\n set_time_915 ( bp + 1 , archive_entry_mtime ( file -> entry ) ) ;\n bp += 7 ;\n }\n if ( tf_flags & TF_ACCESS ) {\n set_time_915 ( bp + 1 , archive_entry_atime ( file -> entry ) ) ;\n bp += 7 ;\n }\n if ( tf_flags & TF_ATTRIBUTES ) {\n set_time_915 ( bp + 1 , archive_entry_ctime ( file -> entry ) ) ;\n bp += 7 ;\n }\n }\n extra_tell_used_size ( & ctl , length ) ;\n }\n if ( rr_flag & RR_USE_RE ) {\n length = 4 ;\n if ( extra_space ( & ctl ) < length ) bp = extra_next_record ( & ctl , length ) ;\n if ( bp != NULL ) {\n bp [ 1 ] = 'R' ;\n bp [ 2 ] = 'E' ;\n bp [ 3 ] = length ;\n bp [ 4 ] = 1 ;\n bp += length ;\n }\n extra_tell_used_size ( & ctl , length ) ;\n }\n if ( rr_flag & RR_USE_PL ) {\n length = 12 ;\n if ( extra_space ( & ctl ) < length ) bp = extra_next_record ( & ctl , length ) ;\n if ( bp != NULL ) {\n bp [ 1 ] = 'P' ;\n bp [ 2 ] = 'L' ;\n bp [ 3 ] = length ;\n bp [ 4 ] = 1 ;\n set_num_733 ( bp + 5 , rr_parent -> dir_location ) ;\n bp += length ;\n }\n extra_tell_used_size ( & ctl , length ) ;\n }\n if ( rr_flag & RR_USE_CL ) {\n length = 12 ;\n if ( extra_space ( & ctl ) < length ) bp = extra_next_record ( & ctl , length ) ;\n if ( bp != NULL ) {\n bp [ 1 ] = 'C' ;\n bp [ 2 ] = 'L' ;\n bp [ 3 ] = length ;\n bp [ 4 ] = 1 ;\n set_num_733 ( bp + 5 , isoent -> rr_child -> dir_location ) ;\n bp += length ;\n }\n extra_tell_used_size ( & ctl , length ) ;\n }\n if ( rr_flag & RR_USE_PN ) {\n length = 20 ;\n if ( extra_space ( & ctl ) < length ) bp = extra_next_record ( & ctl , length ) ;\n if ( bp != NULL ) {\n uint64_t dev ;\n bp [ 1 ] = 'P' ;\n bp [ 2 ] = 'N' ;\n bp [ 3 ] = length ;\n bp [ 4 ] = 1 ;\n dev = ( uint64_t ) archive_entry_rdev ( file -> entry ) ;\n set_num_733 ( bp + 5 , ( uint32_t ) ( dev >> 32 ) ) ;\n set_num_733 ( bp + 13 , ( uint32_t ) ( dev & 0xFFFFFFFF ) ) ;\n bp += length ;\n }\n extra_tell_used_size ( & ctl , length ) ;\n }\n if ( file -> zisofs . header_size ) {\n length = 16 ;\n if ( extra_space ( & ctl ) < length ) bp = extra_next_record ( & ctl , length ) ;\n if ( bp != NULL ) {\n bp [ 1 ] = 'Z' ;\n bp [ 2 ] = 'F' ;\n bp [ 3 ] = length ;\n bp [ 4 ] = 1 ;\n bp [ 5 ] = 'p' ;\n bp [ 6 ] = 'z' ;\n bp [ 7 ] = file -> zisofs . header_size ;\n bp [ 8 ] = file -> zisofs . log2_bs ;\n set_num_733 ( bp + 9 , file -> zisofs . uncompressed_size ) ;\n bp += length ;\n }\n extra_tell_used_size ( & ctl , length ) ;\n }\n if ( t == DIR_REC_SELF && isoent == isoent -> parent ) {\n length = RR_CE_SIZE ;\n if ( bp != NULL ) set_SUSP_CE ( bp + 1 , iso9660 -> location_rrip_er , 0 , RRIP_ER_SIZE ) ;\n extra_tell_used_size ( & ctl , length ) ;\n }\n extra_close_record ( & ctl , 0 ) ;\n return ( ctl . dr_len ) ;\n }"}
{"idx": 5180, "target": 0, "func": "static int selinux_inode_symlink ( struct inode * dir , struct dentry * dentry , const char * name ) {\n return may_create ( dir , dentry , SECCLASS_LNK_FILE ) ;\n }"}
{"idx": 5181, "target": 0, "func": "static void nlm_msg_res_match_init ( void ) {\n nlm_msg_res_unmatched = g_hash_table_new_full ( nlm_msg_res_unmatched_hash , nlm_msg_res_unmatched_equal , NULL , nlm_msg_res_unmatched_value_destroy ) ;\n nlm_msg_res_matched = g_hash_table_new_full ( nlm_msg_res_matched_hash , nlm_msg_res_matched_equal , NULL , ( GDestroyNotify ) g_free ) ;\n }"}
{"idx": 5182, "target": 1, "func": "static inline int unreference_pic ( H264Context * h , Picture * pic , int refmask ) {\n int i ;\n if ( pic -> f . reference &= refmask ) {\n return 0 ;\n }\n else {\n for ( i = 0 ;\n h -> delayed_pic [ i ] ;\n i ++ ) if ( pic == h -> delayed_pic [ i ] ) {\n pic -> f . reference = DELAYED_PIC_REF ;\n break ;\n }\n return 1 ;\n }\n }"}
{"idx": 5183, "target": 0, "func": "static void selinux_msg_msg_free_security ( struct msg_msg * msg ) {\n msg_msg_free_security ( msg ) ;\n }"}
{"idx": 5184, "target": 0, "func": "static int expand_rle_row ( SgiState * s , uint8_t * out_buf , uint8_t * out_end , int pixelstride ) {\n unsigned char pixel , count ;\n unsigned char * orig = out_buf ;\n while ( 1 ) {\n if ( bytestream2_get_bytes_left ( & s -> g ) < 1 ) return AVERROR_INVALIDDATA ;\n pixel = bytestream2_get_byteu ( & s -> g ) ;\n if ( ! ( count = ( pixel & 0x7f ) ) ) {\n return ( out_buf - orig ) / pixelstride ;\n }\n if ( out_buf + pixelstride * count >= out_end ) return - 1 ;\n if ( pixel & 0x80 ) {\n while ( count -- ) {\n * out_buf = bytestream2_get_byte ( & s -> g ) ;\n out_buf += pixelstride ;\n }\n }\n else {\n pixel = bytestream2_get_byte ( & s -> g ) ;\n while ( count -- ) {\n * out_buf = pixel ;\n out_buf += pixelstride ;\n }\n }\n }\n }"}
{"idx": 5185, "target": 1, "func": "static void addFile ( const char * filename , const char * name , const char * source , UBool sourceTOC , UBool verbose ) {\n char * s ;\n uint32_t length ;\n char * fullPath = NULL ;\n if ( fileCount == fileMax ) {\n fileMax += CHUNK_FILE_COUNT ;\n files = uprv_realloc ( files , fileMax * sizeof ( files [ 0 ] ) ) ;\n if ( files == NULL ) {\n fprintf ( stderr , \"pkgdata/gencmn: Could not allocate %u bytes for %d files\\n\" , ( unsigned int ) ( fileMax * sizeof ( files [ 0 ] ) ) , fileCount ) ;\n exit ( U_MEMORY_ALLOCATION_ERROR ) ;\n }\n }\n if ( ! sourceTOC ) {\n FileStream * file ;\n if ( uprv_pathIsAbsolute ( filename ) ) {\n fprintf ( stderr , \"gencmn: Error: absolute path encountered. Old style paths are not supported. Use relative paths such as 'fur.res' or 'translit%cfur.res'.\\n\\tBad path: '%s'\\n\" , U_FILE_SEP_CHAR , filename ) ;\n exit ( U_ILLEGAL_ARGUMENT_ERROR ) ;\n }\n fullPath = pathToFullPath ( filename , source ) ;\n length = ( uint32_t ) ( uprv_strlen ( filename ) + 1 + uprv_strlen ( name ) + 1 ) ;\n s = allocString ( length ) ;\n uprv_strcpy ( s , name ) ;\n uprv_strcat ( s , U_TREE_ENTRY_SEP_STRING ) ;\n uprv_strcat ( s , filename ) ;\n fixDirToTreePath ( s ) ;\n files [ fileCount ] . basename = s ;\n files [ fileCount ] . basenameLength = length ;\n files [ fileCount ] . pathname = fullPath ;\n basenameTotal += length ;\n file = T_FileStream_open ( fullPath , \"rb\" ) ;\n if ( file == NULL ) {\n fprintf ( stderr , \"gencmn: unable to open listed file %s\\n\" , fullPath ) ;\n exit ( U_FILE_ACCESS_ERROR ) ;\n }\n length = T_FileStream_size ( file ) ;\n if ( T_FileStream_error ( file ) || length <= 20 ) {\n fprintf ( stderr , \"gencmn: unable to get length of listed file %s\\n\" , fullPath ) ;\n exit ( U_FILE_ACCESS_ERROR ) ;\n }\n T_FileStream_close ( file ) ;\n if ( maxSize && length > maxSize ) {\n if ( verbose ) {\n printf ( \"%s ignored (size %ld > %ld)\\n\" , fullPath , ( long ) length , ( long ) maxSize ) ;\n }\n return ;\n }\n files [ fileCount ] . fileSize = length ;\n }\n else {\n char * t ;\n length = ( uint32_t ) ( uprv_strlen ( filename ) + 1 + uprv_strlen ( name ) + 1 ) ;\n s = allocString ( length ) ;\n uprv_strcpy ( s , name ) ;\n uprv_strcat ( s , U_TREE_ENTRY_SEP_STRING ) ;\n uprv_strcat ( s , filename ) ;\n fixDirToTreePath ( s ) ;\n files [ fileCount ] . basename = s ;\n t = files [ fileCount ] . pathname = allocString ( length ) ;\n while ( -- length > 0 ) {\n if ( * s == '.' || * s == '-' || * s == '/' ) {\n * t = '_' ;\n }\n else {\n * t = * s ;\n }\n ++ s ;\n ++ t ;\n }\n * t = 0 ;\n }\n ++ fileCount ;\n }"}
{"idx": 5186, "target": 0, "func": "void http_hdr_type_set ( HTTPHdrImpl * hh , HTTPType type ) {\n hh -> m_polarity = type ;\n }"}
{"idx": 5187, "target": 0, "func": "static int dissect_h245_ME_finiteRepeatCount ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 116 \"../../asn1/h245/h245.cnf\" guint32 value ;\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 65535U , & value , FALSE ) ;\n h223_me -> repeat_count = value & 0xffff ;\n return offset ;\n }"}
{"idx": 5188, "target": 0, "func": "TEST_F ( TemplateURLParserTest , TestPostSuggestion ) {\n ParamFilterImpl filter ( std : : string ( ) , \"Mozilla\" ) ;\n ASSERT_NO_FATAL_FAILURE ( ParseFile ( \"post_suggestion.xml\" , & filter ) ) ;\n ASSERT_TRUE ( template_url_ ) ;\n EXPECT_EQ ( ASCIIToUTF16 ( \"Yahoo\" ) , template_url_ -> short_name ( ) ) ;\n EXPECT_TRUE ( template_url_ -> url_ref ( ) . SupportsReplacement ( SearchTermsData ( ) ) ) ;\n EXPECT_TRUE ( template_url_ -> suggestions_url ( ) . empty ( ) ) ;\n EXPECT_EQ ( \"http://search.yahoo.com/search?p={\nsearchTerms}\n&ei=UTF-8\" , template_url_ -> url ( ) ) ;\n ASSERT_EQ ( 1U , template_url_ -> input_encodings ( ) . size ( ) ) ;\n EXPECT_EQ ( \"UTF-8\" , template_url_ -> input_encodings ( ) [ 0 ] ) ;\n EXPECT_EQ ( GURL ( \"http://search.yahoo.com/favicon.ico\" ) , template_url_ -> favicon_url ( ) ) ;\n }"}
{"idx": 5189, "target": 0, "func": "DEFINE_TEST ( test_read_format_mtree_nomagic_v2_form ) {\n const char reffile [ ] = \"test_read_format_mtree_nomagic2.mtree\" ;\n char buff [ 16 ] ;\n struct archive_entry * ae ;\n struct archive * a ;\n FILE * f ;\n extract_reference_file ( reffile ) ;\n assert ( ( a = archive_read_new ( ) ) != NULL ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_support_filter_all ( a ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_support_format_all ( a ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_set_options ( a , \"mtree:checkfs\" ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_open_filename ( a , reffile , 11 ) ) ;\n f = fopen ( \"file\" , \"wb\" ) ;\n assert ( f != NULL ) ;\n assertEqualInt ( 3 , fwrite ( \"hi\\n\" , 1 , 3 , f ) ) ;\n fclose ( f ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualInt ( archive_format ( a ) , ARCHIVE_FORMAT_MTREE ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"./file\" ) ;\n assertEqualInt ( archive_entry_uid ( ae ) , 18 ) ;\n assertEqualInt ( AE_IFREG , archive_entry_filetype ( ae ) ) ;\n assertEqualInt ( archive_entry_mode ( ae ) , AE_IFREG | 0123 ) ;\n assertEqualInt ( archive_entry_size ( ae ) , 3 ) ;\n assertEqualInt ( 3 , archive_read_data ( a , buff , 3 ) ) ;\n assertEqualMem ( buff , \"hi\\n\" , 3 ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"./dir\" ) ;\n assertEqualInt ( archive_entry_mode ( ae ) , AE_IFDIR | 0755 ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"./dir/file with space\" ) ;\n assertEqualInt ( archive_entry_uid ( ae ) , 18 ) ;\n assertEqualInt ( archive_entry_mode ( ae ) , AE_IFREG | 0644 ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"./file with space\" ) ;\n assertEqualInt ( archive_entry_mode ( ae ) , AE_IFREG | 0644 ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"./dir2\" ) ;\n assertEqualInt ( archive_entry_mode ( ae ) , AE_IFDIR | 0755 ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"./dir2/dir3a\" ) ;\n assertEqualInt ( archive_entry_mode ( ae ) , AE_IFDIR | 0755 ) ;\n assertEqualIntA ( a , ARCHIVE_EOF , archive_read_next_header ( a , & ae ) ) ;\n assertEqualInt ( 6 , archive_file_count ( a ) ) ;\n assertEqualInt ( ARCHIVE_OK , archive_read_close ( a ) ) ;\n assertEqualInt ( ARCHIVE_OK , archive_read_free ( a ) ) ;\n }"}
{"idx": 5190, "target": 0, "func": "static GRANT_NAME * name_hash_search ( HASH * name_hash , const char * host , const char * ip , const char * db , const char * user , const char * tname , bool exact , bool name_tolower ) {\n char helping [ NAME_LEN * 2 + USERNAME_LENGTH + 3 ] , * name_ptr ;\n uint len ;\n GRANT_NAME * grant_name , * found = 0 ;\n HASH_SEARCH_STATE state ;\n name_ptr = strmov ( strmov ( helping , user ) + 1 , db ) + 1 ;\n len = ( uint ) ( strmov ( name_ptr , tname ) - helping ) + 1 ;\n if ( name_tolower ) my_casedn_str ( files_charset_info , name_ptr ) ;\n for ( grant_name = ( GRANT_NAME * ) hash_first ( name_hash , ( uchar * ) helping , len , & state ) ;\n grant_name ;\n grant_name = ( GRANT_NAME * ) hash_next ( name_hash , ( uchar * ) helping , len , & state ) ) {\n if ( exact ) {\n if ( ! grant_name -> host . hostname || ( host && ! my_strcasecmp ( system_charset_info , host , grant_name -> host . hostname ) ) || ( ip && ! strcmp ( ip , grant_name -> host . hostname ) ) ) return grant_name ;\n }\n else {\n if ( compare_hostname ( & grant_name -> host , host , ip ) && ( ! found || found -> sort < grant_name -> sort ) ) found = grant_name ;\n }\n }\n return found ;\n }"}
{"idx": 5191, "target": 0, "func": "static void _doSetSessionAuth ( ArchiveHandle * AH , const char * user ) {\n PQExpBuffer cmd = createPQExpBuffer ( ) ;\n appendPQExpBufferStr ( cmd , \"SET SESSION AUTHORIZATION \" ) ;\n if ( user && * user ) appendStringLiteralAHX ( cmd , user , AH ) ;\n else appendPQExpBufferStr ( cmd , \"DEFAULT\" ) ;\n appendPQExpBufferChar ( cmd , ';\n' ) ;\n if ( RestoringToDB ( AH ) ) {\n PGresult * res ;\n res = PQexec ( AH -> connection , cmd -> data ) ;\n if ( ! res || PQresultStatus ( res ) != PGRES_COMMAND_OK ) exit_horribly ( modulename , \"could not set session user to \\\"%s\\\": %s\" , user , PQerrorMessage ( AH -> connection ) ) ;\n PQclear ( res ) ;\n }\n else ahprintf ( AH , \"%s\\n\\n\" , cmd -> data ) ;\n destroyPQExpBuffer ( cmd ) ;\n }"}
{"idx": 5192, "target": 0, "func": "static int add_object_entry ( const unsigned char * sha1 , enum object_type type , const char * name , int exclude ) {\n struct packed_git * found_pack ;\n off_t found_offset ;\n uint32_t index_pos ;\n if ( have_duplicate_entry ( sha1 , exclude , & index_pos ) ) return 0 ;\n if ( ! want_object_in_pack ( sha1 , exclude , & found_pack , & found_offset ) ) {\n if ( write_bitmap_index ) {\n warning ( _ ( no_closure_warning ) ) ;\n write_bitmap_index = 0 ;\n }\n return 0 ;\n }\n create_object_entry ( sha1 , type , pack_name_hash ( name ) , exclude , name && no_try_delta ( name ) , index_pos , found_pack , found_offset ) ;\n display_progress ( progress_state , nr_result ) ;\n return 1 ;\n }"}
{"idx": 5193, "target": 0, "func": "static unsigned long xmlHashComputeKey ( xmlHashTablePtr table , const xmlChar * name , const xmlChar * name2 , const xmlChar * name3 ) {\n unsigned long value = 0L ;\n char ch ;\n # ifdef HASH_RANDOMIZATION value = table -> random_seed ;\n # endif if ( name != NULL ) {\n value += 30 * ( * name ) ;\n while ( ( ch = * name ++ ) != 0 ) {\n value = value ^ ( ( value << 5 ) + ( value >> 3 ) + ( unsigned long ) ch ) ;\n }\n }\n value = value ^ ( ( value << 5 ) + ( value >> 3 ) ) ;\n if ( name2 != NULL ) {\n while ( ( ch = * name2 ++ ) != 0 ) {\n value = value ^ ( ( value << 5 ) + ( value >> 3 ) + ( unsigned long ) ch ) ;\n }\n }\n value = value ^ ( ( value << 5 ) + ( value >> 3 ) ) ;\n if ( name3 != NULL ) {\n while ( ( ch = * name3 ++ ) != 0 ) {\n value = value ^ ( ( value << 5 ) + ( value >> 3 ) + ( unsigned long ) ch ) ;\n }\n }\n return ( value % table -> size ) ;\n }"}
{"idx": 5194, "target": 0, "func": "static int dissect_diameter_avp ( diam_ctx_t * c , tvbuff_t * tvb , int offset , diam_sub_dis_t * diam_sub_dis_inf ) {\n guint32 code = tvb_get_ntohl ( tvb , offset ) ;\n guint32 len = tvb_get_ntohl ( tvb , offset + 4 ) ;\n guint32 vendor_flag = len & 0x80000000 ;\n guint32 flags_bits_idx = ( len & 0xE0000000 ) >> 29 ;\n guint32 flags_bits = ( len & 0xFF000000 ) >> 24 ;\n guint32 vendorid = vendor_flag ? tvb_get_ntohl ( tvb , offset + 8 ) : 0 ;\n wmem_tree_key_t k [ 3 ] ;\n diam_avp_t * a ;\n proto_item * pi , * avp_item ;\n proto_tree * avp_tree , * save_tree ;\n tvbuff_t * subtvb ;\n diam_vnd_t * vendor ;\n const char * code_str ;\n const char * avp_str = NULL ;\n guint8 pad_len ;\n k [ 0 ] . length = 1 ;\n k [ 0 ] . key = & code ;\n k [ 1 ] . length = 1 ;\n k [ 1 ] . key = & vendorid ;\n k [ 2 ] . length = 0 ;\n k [ 2 ] . key = NULL ;\n a = ( diam_avp_t * ) wmem_tree_lookup32_array ( dictionary . avps , k ) ;\n len &= 0x00ffffff ;\n pad_len = ( len % 4 ) ? 4 - ( len % 4 ) : 0 ;\n if ( ! a ) {\n a = & unknown_avp ;\n if ( vendor_flag ) {\n if ( ! ( vendor = ( diam_vnd_t * ) wmem_tree_lookup32 ( dictionary . vnds , vendorid ) ) ) vendor = & unknown_vendor ;\n }\n else {\n vendor = & no_vnd ;\n }\n }\n else {\n vendor = ( diam_vnd_t * ) a -> vendor ;\n }\n if ( vendor -> vs_avps_ext == NULL ) {\n g_array_sort ( vendor -> vs_avps , compare_avps ) ;\n vendor -> vs_avps_ext = value_string_ext_new ( VND_AVP_VS ( vendor ) , VND_AVP_VS_LEN ( vendor ) + 1 , g_strdup_printf ( \"diameter_vendor_%s\" , val_to_str_ext_const ( vendorid , & sminmpec_values_ext , \"Unknown\" ) ) ) ;\n # if 0 {\n value_string * vendor_avp_vs = VALUE_STRING_EXT_VS_P ( vendor -> vs_avps_ext ) ;\n gint i = 0 ;\n while ( vendor_avp_vs [ i ] . strptr != NULL ) {\n g_warning ( \"%u %s\" , vendor_avp_vs [ i ] . value , vendor_avp_vs [ i ] . strptr ) ;\n i ++ ;\n }\n }\n # endif }\n avp_item = proto_tree_add_item ( c -> tree , hf_diameter_avp , tvb , offset , len + pad_len , ENC_NA ) ;\n avp_tree = proto_item_add_subtree ( avp_item , a -> ett ) ;\n pi = proto_tree_add_item ( avp_tree , hf_diameter_avp_code , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n code_str = val_to_str_ext_const ( code , vendor -> vs_avps_ext , \"Unknown\" ) ;\n proto_item_append_text ( pi , \" %s\" , code_str ) ;\n if ( a == & unknown_avp ) {\n proto_tree * tu = proto_item_add_subtree ( pi , ett_unknown ) ;\n proto_tree_add_expert_format ( tu , c -> pinfo , & ei_diameter_avp_code , tvb , offset , 4 , \"Unknown AVP %u (vendor=%s), if you know what this is you can add it to dictionary.xml\" , code , val_to_str_ext_const ( vendorid , & sminmpec_values_ext , \"Unknown\" ) ) ;\n }\n offset += 4 ;\n proto_item_set_text ( avp_item , \"AVP: %s(%u) l=%u f=%s\" , code_str , code , len , avpflags_str [ flags_bits_idx ] ) ;\n pi = proto_tree_add_item ( avp_tree , hf_diameter_avp_flags , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n {\n proto_tree * flags_tree = proto_item_add_subtree ( pi , ett_diameter_avp_flags ) ;\n proto_tree_add_item ( flags_tree , hf_diameter_avp_flags_vendor_specific , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flags_tree , hf_diameter_avp_flags_mandatory , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flags_tree , hf_diameter_avp_flags_protected , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n pi = proto_tree_add_item ( flags_tree , hf_diameter_avp_flags_reserved3 , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n if ( flags_bits & 0x10 ) expert_add_info ( c -> pinfo , pi , & ei_diameter_reserved_bit_set ) ;\n pi = proto_tree_add_item ( flags_tree , hf_diameter_avp_flags_reserved4 , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n if ( flags_bits & 0x08 ) expert_add_info ( c -> pinfo , pi , & ei_diameter_reserved_bit_set ) ;\n pi = proto_tree_add_item ( flags_tree , hf_diameter_avp_flags_reserved5 , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n if ( flags_bits & 0x04 ) expert_add_info ( c -> pinfo , pi , & ei_diameter_reserved_bit_set ) ;\n proto_tree_add_item ( flags_tree , hf_diameter_avp_flags_reserved6 , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n if ( flags_bits & 0x02 ) expert_add_info ( c -> pinfo , pi , & ei_diameter_reserved_bit_set ) ;\n proto_tree_add_item ( flags_tree , hf_diameter_avp_flags_reserved7 , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n if ( flags_bits & 0x01 ) expert_add_info ( c -> pinfo , pi , & ei_diameter_reserved_bit_set ) ;\n }\n offset += 1 ;\n proto_tree_add_item ( avp_tree , hf_diameter_avp_len , tvb , offset , 3 , ENC_BIG_ENDIAN ) ;\n offset += 3 ;\n if ( vendor_flag ) {\n proto_item_append_text ( avp_item , \" vnd=%s\" , val_to_str ( vendorid , vnd_short_vs , \"%d\" ) ) ;\n pi = proto_tree_add_item ( avp_tree , hf_diameter_avp_vendor_id , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n if ( vendor == & unknown_vendor ) {\n proto_tree * tu = proto_item_add_subtree ( pi , ett_unknown ) ;\n proto_tree_add_expert ( tu , c -> pinfo , & ei_diameter_avp_vendor_id , tvb , offset , 4 ) ;\n }\n offset += 4 ;\n }\n if ( len == ( guint32 ) ( vendor_flag ? 12 : 8 ) ) {\n proto_tree_add_expert ( avp_tree , c -> pinfo , & ei_diameter_avp_no_data , tvb , offset , 0 ) ;\n return len + pad_len ;\n }\n if ( ( diam_sub_dis_inf -> dis_gouped ) && ( ! vendor_flag ) && ( code == 266 ) ) {\n diam_sub_dis_inf -> vendor_id = tvb_get_ntohl ( tvb , offset ) ;\n }\n subtvb = tvb_new_subset_length ( tvb , offset , len - ( 8 + ( vendor_flag ? 4 : 0 ) ) ) ;\n offset += len - ( 8 + ( vendor_flag ? 4 : 0 ) ) ;\n save_tree = c -> tree ;\n c -> tree = avp_tree ;\n if ( ( diam_sub_dis_inf -> dis_gouped ) && ( ! vendor_flag ) && ( code == 298 ) && ( diam_sub_dis_inf -> vendor_id != 0 ) && ( diam_sub_dis_inf -> vendor_id != VENDOR_THE3GPP ) ) {\n if ( ! dissector_try_uint_new ( diameter_expr_result_vnd_table , diam_sub_dis_inf -> vendor_id , subtvb , c -> pinfo , avp_tree , FALSE , diam_sub_dis_inf ) ) {\n dissect_diameter_other_vendor_exp_res ( subtvb , avp_tree , diam_sub_dis_inf ) ;\n }\n if ( diam_sub_dis_inf -> avp_str ) {\n proto_item_append_text ( avp_item , \" val=%s\" , diam_sub_dis_inf -> avp_str ) ;\n }\n }\n else if ( c -> version_rfc ) {\n avp_str = a -> dissector_rfc ( c , a , subtvb , diam_sub_dis_inf ) ;\n }\n else {\n avp_str = a -> dissector_v16 ( c , a , subtvb , diam_sub_dis_inf ) ;\n }\n c -> tree = save_tree ;\n diam_sub_dis_inf -> avp_str = NULL ;\n call_avp_subdissector ( vendorid , code , subtvb , c -> pinfo , avp_tree , diam_sub_dis_inf ) ;\n if ( diam_sub_dis_inf -> avp_str ) {\n proto_item_append_text ( avp_item , \" val=%s\" , diam_sub_dis_inf -> avp_str ) ;\n }\n else if ( avp_str ) {\n proto_item_append_text ( avp_item , \" val=%s\" , avp_str ) ;\n }\n if ( pad_len ) {\n guint8 i ;\n pi = proto_tree_add_item ( avp_tree , hf_diameter_avp_pad , tvb , offset , pad_len , ENC_NA ) ;\n for ( i = 0 ;\n i < pad_len ;\n i ++ ) {\n if ( tvb_get_guint8 ( tvb , offset ++ ) != 0 ) {\n expert_add_info ( c -> pinfo , pi , & ei_diameter_avp_pad ) ;\n break ;\n }\n }\n }\n return len + pad_len ;\n }"}
{"idx": 5195, "target": 0, "func": "static int dissect_h245_MultipointCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MultipointCapability , MultipointCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 5196, "target": 0, "func": "void EVP_CIPHER_CTX_free ( EVP_CIPHER_CTX * ctx ) {\n EVP_CIPHER_CTX_reset ( ctx ) ;\n OPENSSL_free ( ctx ) ;\n }"}
{"idx": 5197, "target": 0, "func": "static cmsBool Read8bitTables ( cmsContext ContextID , cmsIOHANDLER * io , cmsPipeline * lut , int nChannels ) {\n cmsUInt8Number * Temp = NULL ;\n int i , j ;\n cmsToneCurve * Tables [ cmsMAXCHANNELS ] ;\n if ( nChannels > cmsMAXCHANNELS ) return FALSE ;\n if ( nChannels <= 0 ) return FALSE ;\n memset ( Tables , 0 , sizeof ( Tables ) ) ;\n Temp = ( cmsUInt8Number * ) _cmsMalloc ( ContextID , 256 ) ;\n if ( Temp == NULL ) return FALSE ;\n for ( i = 0 ;\n i < nChannels ;\n i ++ ) {\n Tables [ i ] = cmsBuildTabulatedToneCurve16 ( ContextID , 256 , NULL ) ;\n if ( Tables [ i ] == NULL ) goto Error ;\n }\n for ( i = 0 ;\n i < nChannels ;\n i ++ ) {\n if ( io -> Read ( io , Temp , 256 , 1 ) != 1 ) goto Error ;\n for ( j = 0 ;\n j < 256 ;\n j ++ ) Tables [ i ] -> Table16 [ j ] = ( cmsUInt16Number ) FROM_8_TO_16 ( Temp [ j ] ) ;\n }\n _cmsFree ( ContextID , Temp ) ;\n Temp = NULL ;\n if ( ! cmsPipelineInsertStage ( lut , cmsAT_END , cmsStageAllocToneCurves ( ContextID , nChannels , Tables ) ) ) goto Error ;\n for ( i = 0 ;\n i < nChannels ;\n i ++ ) cmsFreeToneCurve ( Tables [ i ] ) ;\n return TRUE ;\n Error : for ( i = 0 ;\n i < nChannels ;\n i ++ ) {\n if ( Tables [ i ] ) cmsFreeToneCurve ( Tables [ i ] ) ;\n }\n if ( Temp ) _cmsFree ( ContextID , Temp ) ;\n return FALSE ;\n }"}
{"idx": 5198, "target": 0, "func": "static int cleanup_test ( void ) {\n # ifndef WIN32 close ( pair [ 0 ] ) ;\n close ( pair [ 1 ] ) ;\n # else CloseHandle ( ( HANDLE ) pair [ 0 ] ) ;\n CloseHandle ( ( HANDLE ) pair [ 1 ] ) ;\n # endif if ( test_ok ) fprintf ( stdout , \"OK\\n\" ) ;\n else {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n test_ok = 0 ;\n return ( 0 ) ;\n }"}
{"idx": 5199, "target": 1, "func": "void traverse_commit_list ( struct rev_info * revs , show_commit_fn show_commit , show_object_fn show_object , void * data ) {\n int i ;\n struct commit * commit ;\n struct strbuf base ;\n strbuf_init ( & base , PATH_MAX ) ;\n while ( ( commit = get_revision ( revs ) ) != NULL ) {\n if ( commit -> tree ) add_pending_tree ( revs , commit -> tree ) ;\n show_commit ( commit , data ) ;\n }\n for ( i = 0 ;\n i < revs -> pending . nr ;\n i ++ ) {\n struct object_array_entry * pending = revs -> pending . objects + i ;\n struct object * obj = pending -> item ;\n const char * name = pending -> name ;\n const char * path = pending -> path ;\n if ( obj -> flags & ( UNINTERESTING | SEEN ) ) continue ;\n if ( obj -> type == OBJ_TAG ) {\n obj -> flags |= SEEN ;\n show_object ( obj , NULL , name , data ) ;\n continue ;\n }\n if ( ! path ) path = \"\" ;\n if ( obj -> type == OBJ_TREE ) {\n process_tree ( revs , ( struct tree * ) obj , show_object , NULL , & base , path , data ) ;\n continue ;\n }\n if ( obj -> type == OBJ_BLOB ) {\n process_blob ( revs , ( struct blob * ) obj , show_object , NULL , path , data ) ;\n continue ;\n }\n die ( \"unknown pending object %s (%s)\" , oid_to_hex ( & obj -> oid ) , name ) ;\n }\n object_array_clear ( & revs -> pending ) ;\n strbuf_release ( & base ) ;\n }"}
{"idx": 5200, "target": 0, "func": "static void Type_LUTA2B_Free ( struct _cms_typehandler_struct * self , void * Ptr ) {\n cmsPipelineFree ( ( cmsPipeline * ) Ptr ) ;\n return ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 5201, "target": 0, "func": "static int dissect_h245_T_unsignedMax ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 800 \"../../asn1/h245/h245.cnf\" guint32 value ;\n guint8 * buf ;\n tvbuff_t * value_tvb ;\n gef_ctx_t * gefx ;\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 65535U , & value , FALSE ) ;\n gefx = gef_ctx_get ( actx -> private_data ) ;\n if ( gefx ) {\n buf = ( guint8 * ) wmem_new ( actx -> pinfo -> pool , guint16 ) ;\n phton16 ( buf , value ) ;\n value_tvb = tvb_new_child_real_data ( tvb , buf , sizeof ( guint16 ) , sizeof ( guint16 ) ) ;\n add_new_data_source ( actx -> pinfo , value_tvb , \"unsignedMax\" ) ;\n dissector_try_string ( gef_content_dissector_table , gefx -> key , value_tvb , actx -> pinfo , tree , actx ) ;\n }\n return offset ;\n }"}
{"idx": 5202, "target": 0, "func": "static int lxc_cgroup_create_legacy ( struct cgroup_process_info * base_info , const char * name , pid_t pid ) {\n struct cgroup_process_info * info_ptr ;\n int r ;\n for ( info_ptr = base_info ;\n info_ptr ;\n info_ptr = info_ptr -> next ) {\n if ( ! lxc_string_in_array ( \"ns\" , ( const char * * ) info_ptr -> hierarchy -> subsystems ) ) continue ;\n char * tmp = cgroup_rename_nsgroup ( ( const char * ) info_ptr -> designated_mount_point -> mount_point , info_ptr -> cgroup_path , pid , name ) ;\n if ( ! tmp ) return - 1 ;\n free ( info_ptr -> cgroup_path ) ;\n info_ptr -> cgroup_path = tmp ;\n r = lxc_grow_array ( ( void * * * ) & info_ptr -> created_paths , & info_ptr -> created_paths_capacity , info_ptr -> created_paths_count + 1 , 8 ) ;\n if ( r < 0 ) return - 1 ;\n tmp = strdup ( tmp ) ;\n if ( ! tmp ) return - 1 ;\n info_ptr -> created_paths [ info_ptr -> created_paths_count ++ ] = tmp ;\n }\n return 0 ;\n }"}
{"idx": 5203, "target": 0, "func": "static int tls_process_cke_srp ( SSL * s , PACKET * pkt , int * al ) {\n # ifndef OPENSSL_NO_SRP unsigned int i ;\n const unsigned char * data ;\n if ( ! PACKET_get_net_2 ( pkt , & i ) || ! PACKET_get_bytes ( pkt , & data , i ) ) {\n * al = SSL_AD_DECODE_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_SRP , SSL_R_BAD_SRP_A_LENGTH ) ;\n return 0 ;\n }\n if ( ( s -> srp_ctx . A = BN_bin2bn ( data , i , NULL ) ) == NULL ) {\n SSLerr ( SSL_F_TLS_PROCESS_CKE_SRP , ERR_R_BN_LIB ) ;\n return 0 ;\n }\n if ( BN_ucmp ( s -> srp_ctx . A , s -> srp_ctx . N ) >= 0 || BN_is_zero ( s -> srp_ctx . A ) ) {\n * al = SSL_AD_ILLEGAL_PARAMETER ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_SRP , SSL_R_BAD_SRP_PARAMETERS ) ;\n return 0 ;\n }\n OPENSSL_free ( s -> session -> srp_username ) ;\n s -> session -> srp_username = OPENSSL_strdup ( s -> srp_ctx . login ) ;\n if ( s -> session -> srp_username == NULL ) {\n SSLerr ( SSL_F_TLS_PROCESS_CKE_SRP , ERR_R_MALLOC_FAILURE ) ;\n return 0 ;\n }\n if ( ! srp_generate_server_master_secret ( s ) ) {\n SSLerr ( SSL_F_TLS_PROCESS_CKE_SRP , ERR_R_INTERNAL_ERROR ) ;\n return 0 ;\n }\n return 1 ;\n # else * al = SSL_AD_INTERNAL_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_SRP , ERR_R_INTERNAL_ERROR ) ;\n return 0 ;\n # endif }"}
{"idx": 5204, "target": 0, "func": "static int cmp_value_string ( const void * v1 , const void * v2 ) {\n const value_string * vs1 = ( const value_string * ) v1 ;\n const value_string * vs2 = ( const value_string * ) v2 ;\n return strcmp ( vs1 -> strptr , vs2 -> strptr ) ;\n }"}
{"idx": 5205, "target": 0, "func": "time_t TSCacheHttpInfoReqSentTimeGet ( TSCacheHttpInfo infop ) {\n CacheHTTPInfo * info = ( CacheHTTPInfo * ) infop ;\n return info -> request_sent_time_get ( ) ;\n }"}
{"idx": 5206, "target": 0, "func": "static ssize_t qemuGetNextChrDevIndex ( virDomainDefPtr def , virDomainChrDefPtr chr , const char * prefix ) {\n const virDomainChrDef * * arrPtr ;\n size_t cnt ;\n size_t i ;\n ssize_t idx = 0 ;\n const char * prefix2 = NULL ;\n if ( chr -> deviceType == VIR_DOMAIN_CHR_DEVICE_TYPE_CONSOLE ) prefix2 = \"serial\" ;\n virDomainChrGetDomainPtrs ( def , chr -> deviceType , & arrPtr , & cnt ) ;\n for ( i = 0 ;\n i < cnt ;\n i ++ ) {\n ssize_t thisidx ;\n if ( ( ( thisidx = qemuDomainDeviceAliasIndex ( & arrPtr [ i ] -> info , prefix ) ) < 0 ) && ( prefix2 && ( thisidx = qemuDomainDeviceAliasIndex ( & arrPtr [ i ] -> info , prefix2 ) ) < 0 ) ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"Unable to determine device index for character device\" ) ) ;\n return - 1 ;\n }\n if ( thisidx >= idx ) idx = thisidx + 1 ;\n }\n return idx ;\n }"}
{"idx": 5207, "target": 0, "func": "static void help ( const char * progname ) {\n printf ( _ ( \"%s reindexes a PostgreSQL database.\\n\\n\" ) , progname ) ;\n printf ( _ ( \"Usage:\\n\" ) ) ;\n printf ( _ ( \" %s [OPTION]... [DBNAME]\\n\" ) , progname ) ;\n printf ( _ ( \"\\nOptions:\\n\" ) ) ;\n printf ( _ ( \" -a, --all reindex all databases\\n\" ) ) ;\n printf ( _ ( \" -d, --dbname=DBNAME database to reindex\\n\" ) ) ;\n printf ( _ ( \" -e, --echo show the commands being sent to the server\\n\" ) ) ;\n printf ( _ ( \" -i, --index=INDEX recreate specific index(es) only\\n\" ) ) ;\n printf ( _ ( \" -q, --quiet don't write any messages\\n\" ) ) ;\n printf ( _ ( \" -s, --system reindex system catalogs\\n\" ) ) ;\n printf ( _ ( \" -S, --schema=SCHEMA reindex specific schema(s) only\\n\" ) ) ;\n printf ( _ ( \" -t, --table=TABLE reindex specific table(s) only\\n\" ) ) ;\n printf ( _ ( \" -v, --verbose write a lot of output\\n\" ) ) ;\n printf ( _ ( \" -V, --version output version information, then exit\\n\" ) ) ;\n printf ( _ ( \" -?, --help show this help, then exit\\n\" ) ) ;\n printf ( _ ( \"\\nConnection options:\\n\" ) ) ;\n printf ( _ ( \" -h, --host=HOSTNAME database server host or socket directory\\n\" ) ) ;\n printf ( _ ( \" -p, --port=PORT database server port\\n\" ) ) ;\n printf ( _ ( \" -U, --username=USERNAME user name to connect as\\n\" ) ) ;\n printf ( _ ( \" -w, --no-password never prompt for password\\n\" ) ) ;\n printf ( _ ( \" -W, --password force password prompt\\n\" ) ) ;\n printf ( _ ( \" --maintenance-db=DBNAME alternate maintenance database\\n\" ) ) ;\n printf ( _ ( \"\\nRead the description of the SQL command REINDEX for details.\\n\" ) ) ;\n printf ( _ ( \"\\nReport bugs to <pgsql-bugs@postgresql.org>.\\n\" ) ) ;\n }"}
{"idx": 5208, "target": 0, "func": "void mpi_set_ui ( MPI w , unsigned long u ) {\n RESIZE_IF_NEEDED ( w , 1 ) ;\n w -> d [ 0 ] = u ;\n w -> nlimbs = u ? 1 : 0 ;\n w -> sign = 0 ;\n w -> nbits = 0 ;\n w -> flags = 0 ;\n }"}
{"idx": 5209, "target": 0, "func": "extern int as_mysql_get_fed_cluster_id ( mysql_conn_t * mysql_conn , const char * cluster , const char * federation , int last_id , int * ret_id ) {\n int id = 1 ;\n char * query = NULL ;\n MYSQL_ROW row ;\n MYSQL_RES * result = NULL ;\n xassert ( cluster ) ;\n xassert ( federation ) ;\n xassert ( ret_id ) ;\n xstrfmtcat ( query , \"SELECT name, fed_id \" \"FROM %s \" \"WHERE deleted=0 AND name='%s' AND federation='%s';\n\" , cluster_table , cluster , federation ) ;\n if ( debug_flags & DEBUG_FLAG_FEDR ) DB_DEBUG ( mysql_conn -> conn , \"query\\n%s\" , query ) ;\n if ( ! ( result = mysql_db_query_ret ( mysql_conn , query , 0 ) ) ) {\n xfree ( query ) ;\n error ( \"no result given for %s\" , query ) ;\n return SLURM_ERROR ;\n }\n xfree ( query ) ;\n while ( ( row = mysql_fetch_row ( result ) ) ) {\n int tmp_id = slurm_atoul ( row [ 1 ] ) ;\n if ( debug_flags & DEBUG_FLAG_FEDR ) info ( \"cluster '%s' already part of federation '%s', \" \"using existing id %d\" , cluster , federation , tmp_id ) ;\n mysql_free_result ( result ) ;\n * ret_id = tmp_id ;\n return SLURM_SUCCESS ;\n }\n mysql_free_result ( result ) ;\n xstrfmtcat ( query , \"SELECT name, federation, fed_id \" \"FROM %s \" \"WHERE name!='%s' AND federation='%s' \" \"AND fed_id > %d AND deleted=0 ORDER BY fed_id;\n\" , cluster_table , cluster , federation , last_id ) ;\n if ( debug_flags & DEBUG_FLAG_FEDR ) DB_DEBUG ( mysql_conn -> conn , \"query\\n%s\" , query ) ;\n if ( ! ( result = mysql_db_query_ret ( mysql_conn , query , 0 ) ) ) {\n xfree ( query ) ;\n error ( \"no result given for %s\" , query ) ;\n return SLURM_ERROR ;\n }\n xfree ( query ) ;\n if ( last_id >= id ) id = last_id + 1 ;\n while ( ( row = mysql_fetch_row ( result ) ) ) {\n if ( id != slurm_atoul ( row [ 2 ] ) ) break ;\n id ++ ;\n }\n mysql_free_result ( result ) ;\n if ( id > MAX_FED_CLUSTERS ) {\n error ( \"Too many clusters in this federation.\" ) ;\n errno = ESLURM_FED_CLUSTER_MAX_CNT ;\n return ESLURM_FED_CLUSTER_MAX_CNT ;\n }\n * ret_id = id ;\n return SLURM_SUCCESS ;\n }"}
{"idx": 5210, "target": 0, "func": "attr_val * create_attr_sval ( int attr , char * s ) {\n attr_val * my_val ;\n my_val = emalloc_zero ( sizeof ( * my_val ) ) ;\n my_val -> attr = attr ;\n if ( NULL == s ) s = estrdup ( \"\" ) ;\n my_val -> value . s = s ;\n my_val -> type = T_String ;\n return my_val ;\n }"}
{"idx": 5211, "target": 1, "func": "int ff_wmv2_decode_mb ( MpegEncContext * s , int16_t block [ 6 ] [ 64 ] ) {\n Wmv2Context * const w = ( Wmv2Context * ) s ;\n int cbp , code , i ;\n uint8_t * coded_val ;\n if ( w -> j_type ) return 0 ;\n if ( s -> pict_type == AV_PICTURE_TYPE_P ) {\n if ( IS_SKIP ( s -> current_picture . f . mb_type [ s -> mb_y * s -> mb_stride + s -> mb_x ] ) ) {\n s -> mb_intra = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) s -> block_last_index [ i ] = - 1 ;\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = 0 ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = 0 ;\n s -> mb_skipped = 1 ;\n w -> hshift = 0 ;\n return 0 ;\n }\n code = get_vlc2 ( & s -> gb , ff_mb_non_intra_vlc [ w -> cbp_table_index ] . table , MB_NON_INTRA_VLC_BITS , 3 ) ;\n if ( code < 0 ) return - 1 ;\n s -> mb_intra = ( ~ code & 0x40 ) >> 6 ;\n cbp = code & 0x3f ;\n }\n else {\n s -> mb_intra = 1 ;\n code = get_vlc2 ( & s -> gb , ff_msmp4_mb_i_vlc . table , MB_INTRA_VLC_BITS , 2 ) ;\n if ( code < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"II-cbp illegal at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n cbp = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n int val = ( ( code >> ( 5 - i ) ) & 1 ) ;\n if ( i < 4 ) {\n int pred = ff_msmpeg4_coded_block_pred ( s , i , & coded_val ) ;\n val = val ^ pred ;\n * coded_val = val ;\n }\n cbp |= val << ( 5 - i ) ;\n }\n }\n if ( ! s -> mb_intra ) {\n int mx , my ;\n wmv2_pred_motion ( w , & mx , & my ) ;\n if ( cbp ) {\n s -> dsp . clear_blocks ( s -> block [ 0 ] ) ;\n if ( s -> per_mb_rl_table ) {\n s -> rl_table_index = decode012 ( & s -> gb ) ;\n s -> rl_chroma_table_index = s -> rl_table_index ;\n }\n if ( w -> abt_flag && w -> per_mb_abt ) {\n w -> per_block_abt = get_bits1 ( & s -> gb ) ;\n if ( ! w -> per_block_abt ) w -> abt_type = decode012 ( & s -> gb ) ;\n }\n else w -> per_block_abt = 0 ;\n }\n if ( wmv2_decode_motion ( w , & mx , & my ) < 0 ) return - 1 ;\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = mx ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = my ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( wmv2_decode_inter_block ( w , block [ i ] , i , ( cbp >> ( 5 - i ) ) & 1 ) < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"\\nerror while decoding inter block: %d x %d (%d)\\n\" , s -> mb_x , s -> mb_y , i ) ;\n return - 1 ;\n }\n }\n }\n else {\n if ( s -> pict_type == AV_PICTURE_TYPE_P ) av_dlog ( s -> avctx , \"%d%d \" , s -> inter_intra_pred , cbp ) ;\n av_dlog ( s -> avctx , \"I at %d %d %d %06X\\n\" , s -> mb_x , s -> mb_y , ( ( cbp & 3 ) ? 1 : 0 ) + ( ( cbp & 0x3C ) ? 2 : 0 ) , show_bits ( & s -> gb , 24 ) ) ;\n s -> ac_pred = get_bits1 ( & s -> gb ) ;\n if ( s -> inter_intra_pred ) {\n s -> h263_aic_dir = get_vlc2 ( & s -> gb , ff_inter_intra_vlc . table , INTER_INTRA_VLC_BITS , 1 ) ;\n av_dlog ( s -> avctx , \"%d%d %d %d/\" , s -> ac_pred , s -> h263_aic_dir , s -> mb_x , s -> mb_y ) ;\n }\n if ( s -> per_mb_rl_table && cbp ) {\n s -> rl_table_index = decode012 ( & s -> gb ) ;\n s -> rl_chroma_table_index = s -> rl_table_index ;\n }\n s -> dsp . clear_blocks ( s -> block [ 0 ] ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( ff_msmpeg4_decode_block ( s , block [ i ] , i , ( cbp >> ( 5 - i ) ) & 1 , NULL ) < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"\\nerror while decoding intra block: %d x %d (%d)\\n\" , s -> mb_x , s -> mb_y , i ) ;\n return - 1 ;\n }\n }\n }\n return 0 ;\n }"}
{"idx": 5212, "target": 0, "func": "int jas_stream_flushbuf ( jas_stream_t * stream , int c ) {\n int len ;\n int n ;\n if ( ( stream -> flags_ & ( JAS_STREAM_ERRMASK ) ) != 0 ) {\n return EOF ;\n }\n if ( ( stream -> openmode_ & ( JAS_STREAM_WRITE | JAS_STREAM_APPEND ) ) == 0 ) {\n return EOF ;\n }\n assert ( ! ( stream -> bufmode_ & JAS_STREAM_RDBUF ) ) ;\n len = stream -> ptr_ - stream -> bufstart_ ;\n if ( len > 0 ) {\n n = ( * stream -> ops_ -> write_ ) ( stream -> obj_ , ( char * ) stream -> bufstart_ , len ) ;\n if ( n != len ) {\n stream -> flags_ |= JAS_STREAM_ERR ;\n return EOF ;\n }\n }\n stream -> cnt_ = stream -> bufsize_ ;\n stream -> ptr_ = stream -> bufstart_ ;\n stream -> bufmode_ |= JAS_STREAM_WRBUF ;\n if ( c != EOF ) {\n assert ( stream -> cnt_ > 0 ) ;\n return jas_stream_putc2 ( stream , c ) ;\n }\n return 0 ;\n }"}
{"idx": 5213, "target": 0, "func": "int qemuMonitorTextScreendump ( qemuMonitorPtr mon , const char * file ) {\n char * cmd = NULL ;\n char * reply = NULL ;\n int ret = - 1 ;\n if ( virAsprintf ( & cmd , \"screendump %s\" , file ) < 0 ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , _ ( \"taking screenshot failed\" ) ) ;\n goto cleanup ;\n }\n if ( strstr ( reply , \"unknown command:\" ) ) {\n ret = - 2 ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( reply ) ;\n VIR_FREE ( cmd ) ;\n return ret ;\n }"}
{"idx": 5214, "target": 0, "func": "static int dpb_add ( DPB * dpb , Picture * pic ) {\n int i ;\n if ( dpb -> size >= dpb -> max_size ) return - 1 ;\n for ( i = 0 ;\n i < dpb -> size ;\n i ++ ) {\n VAPictureH264 * const va_pic = & dpb -> va_pics [ i ] ;\n if ( va_pic -> picture_id == ff_vaapi_get_surface_id ( pic ) ) {\n VAPictureH264 temp_va_pic ;\n fill_vaapi_pic ( & temp_va_pic , pic , 0 ) ;\n if ( ( temp_va_pic . flags ^ va_pic -> flags ) & ( VA_PICTURE_H264_TOP_FIELD | VA_PICTURE_H264_BOTTOM_FIELD ) ) {\n va_pic -> flags |= temp_va_pic . flags & ( VA_PICTURE_H264_TOP_FIELD | VA_PICTURE_H264_BOTTOM_FIELD ) ;\n if ( temp_va_pic . flags & VA_PICTURE_H264_TOP_FIELD ) {\n va_pic -> TopFieldOrderCnt = temp_va_pic . TopFieldOrderCnt ;\n }\n else {\n va_pic -> BottomFieldOrderCnt = temp_va_pic . BottomFieldOrderCnt ;\n }\n }\n return 0 ;\n }\n }\n fill_vaapi_pic ( & dpb -> va_pics [ dpb -> size ++ ] , pic , 0 ) ;\n return 0 ;\n }"}
{"idx": 5215, "target": 0, "func": "static void update_reference_segmentation_map ( VP9_COMP * cpi ) {\n VP9_COMMON * const cm = & cpi -> common ;\n MODE_INFO * mi_8x8_ptr = cm -> mi ;\n uint8_t * cache_ptr = cm -> last_frame_seg_map ;\n int row , col ;\n for ( row = 0 ;\n row < cm -> mi_rows ;\n row ++ ) {\n MODE_INFO * mi_8x8 = mi_8x8_ptr ;\n uint8_t * cache = cache_ptr ;\n for ( col = 0 ;\n col < cm -> mi_cols ;\n col ++ , mi_8x8 ++ , cache ++ ) cache [ 0 ] = mi_8x8 [ 0 ] . src_mi -> mbmi . segment_id ;\n mi_8x8_ptr += cm -> mi_stride ;\n cache_ptr += cm -> mi_cols ;\n }\n }"}
{"idx": 5216, "target": 0, "func": "static void free_icc ( fz_context * ctx , fz_colorspace * cs ) {\n fz_iccprofile * profile = cs -> data ;\n fz_drop_buffer ( ctx , profile -> buffer ) ;\n fz_cmm_fin_profile ( ctx , profile ) ;\n fz_free ( ctx , profile ) ;\n }"}
{"idx": 5217, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ExtensionMessageBubbleViewBrowserTest , TestClickingDismissButton ) {\n TestClickingDismissButton ( ) ;\n }"}
{"idx": 5218, "target": 0, "func": "static int get_relocation_entries ( Dwarf_Bool is_64bit , int endianness , int machine , Dwarf_Small * relocation_section , Dwarf_Unsigned relocation_section_size , Dwarf_Unsigned relocation_section_entrysize , struct Dwarf_Elf_Rela * * relas , unsigned int * nrelas , int * error ) {\n unsigned int relocation_size = 0 ;\n if ( is_64bit ) {\n # ifdef HAVE_ELF64_RELA relocation_size = sizeof ( Elf64_Rela ) ;\n # else * error = DW_DLE_MISSING_ELF64_SUPPORT ;\n return DW_DLV_ERROR ;\n # endif }\n else {\n relocation_size = sizeof ( Elf32_Rela ) ;\n }\n if ( relocation_size != relocation_section_entrysize ) {\n * error = DW_DLE_RELOC_SECTION_LENGTH_ODD ;\n return DW_DLV_ERROR ;\n }\n if ( relocation_section == NULL ) {\n * error = DW_DLE_RELOC_SECTION_PTR_NULL ;\n return ( DW_DLV_ERROR ) ;\n }\n if ( ( relocation_section_size != 0 ) ) {\n size_t bytescount = 0 ;\n if ( relocation_section_size % relocation_size ) {\n * error = DW_DLE_RELOC_SECTION_LENGTH_ODD ;\n return DW_DLV_ERROR ;\n }\n * nrelas = relocation_section_size / relocation_size ;\n bytescount = ( * nrelas ) * sizeof ( struct Dwarf_Elf_Rela ) ;\n * relas = malloc ( bytescount ) ;\n if ( ! * relas ) {\n * error = DW_DLE_MAF ;\n return ( DW_DLV_ERROR ) ;\n }\n memset ( * relas , 0 , bytescount ) ;\n get_relocations_array ( is_64bit , endianness , machine , relocation_section , * nrelas , * relas ) ;\n }\n return ( DW_DLV_OK ) ;\n }"}
{"idx": 5219, "target": 0, "func": "static gboolean dissect_applemidi_heur ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n guint16 command ;\n conversation_t * p_conv ;\n rtp_dyn_payload_t * rtp_dyn_payload = NULL ;\n if ( tvb_length ( tvb ) < 4 ) return FALSE ;\n if ( ! test_applemidi ( tvb , & command , FALSE ) ) {\n return FALSE ;\n }\n rtp_dyn_payload = rtp_dyn_payload_new ( ) ;\n rtp_dyn_payload_insert ( rtp_dyn_payload , 97 , \"rtp-midi\" , 10000 ) ;\n rtp_add_address ( pinfo , & pinfo -> src , pinfo -> srcport , 0 , APPLEMIDI_DISSECTOR_SHORTNAME , pinfo -> fd -> num , FALSE , rtp_dyn_payload ) ;\n p_conv = find_or_create_conversation ( pinfo ) ;\n conversation_set_dissector ( p_conv , applemidi_handle ) ;\n dissect_applemidi_common ( tvb , pinfo , tree , command ) ;\n return TRUE ;\n }"}
{"idx": 5220, "target": 0, "func": "static uint i_object_size ( gs_memory_t * mem , const void * obj ) {\n return pre_obj_contents_size ( ( const obj_header_t * ) obj - 1 ) ;\n }"}
{"idx": 5221, "target": 0, "func": "static void vc1_loop_filter_iblk_delayed ( VC1Context * v , int pq ) {\n MpegEncContext * s = & v -> s ;\n int j ;\n if ( ! s -> first_slice_line ) {\n if ( s -> mb_x ) {\n if ( s -> mb_y >= s -> start_mb_y + 2 ) {\n v -> vc1dsp . vc1_v_loop_filter16 ( s -> dest [ 0 ] - 16 * s -> linesize - 16 , s -> linesize , pq ) ;\n if ( s -> mb_x >= 2 ) v -> vc1dsp . vc1_h_loop_filter16 ( s -> dest [ 0 ] - 32 * s -> linesize - 16 , s -> linesize , pq ) ;\n v -> vc1dsp . vc1_h_loop_filter16 ( s -> dest [ 0 ] - 32 * s -> linesize - 8 , s -> linesize , pq ) ;\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n v -> vc1dsp . vc1_v_loop_filter8 ( s -> dest [ j + 1 ] - 8 * s -> uvlinesize - 8 , s -> uvlinesize , pq ) ;\n if ( s -> mb_x >= 2 ) {\n v -> vc1dsp . vc1_h_loop_filter8 ( s -> dest [ j + 1 ] - 16 * s -> uvlinesize - 8 , s -> uvlinesize , pq ) ;\n }\n }\n }\n v -> vc1dsp . vc1_v_loop_filter16 ( s -> dest [ 0 ] - 8 * s -> linesize - 16 , s -> linesize , pq ) ;\n }\n if ( s -> mb_x == s -> mb_width - 1 ) {\n if ( s -> mb_y >= s -> start_mb_y + 2 ) {\n v -> vc1dsp . vc1_v_loop_filter16 ( s -> dest [ 0 ] - 16 * s -> linesize , s -> linesize , pq ) ;\n if ( s -> mb_x ) v -> vc1dsp . vc1_h_loop_filter16 ( s -> dest [ 0 ] - 32 * s -> linesize , s -> linesize , pq ) ;\n v -> vc1dsp . vc1_h_loop_filter16 ( s -> dest [ 0 ] - 32 * s -> linesize + 8 , s -> linesize , pq ) ;\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n v -> vc1dsp . vc1_v_loop_filter8 ( s -> dest [ j + 1 ] - 8 * s -> uvlinesize , s -> uvlinesize , pq ) ;\n if ( s -> mb_x >= 2 ) {\n v -> vc1dsp . vc1_h_loop_filter8 ( s -> dest [ j + 1 ] - 16 * s -> uvlinesize , s -> uvlinesize , pq ) ;\n }\n }\n }\n v -> vc1dsp . vc1_v_loop_filter16 ( s -> dest [ 0 ] - 8 * s -> linesize , s -> linesize , pq ) ;\n }\n if ( s -> mb_y == s -> end_mb_y ) {\n if ( s -> mb_x ) {\n if ( s -> mb_x >= 2 ) v -> vc1dsp . vc1_h_loop_filter16 ( s -> dest [ 0 ] - 16 * s -> linesize - 16 , s -> linesize , pq ) ;\n v -> vc1dsp . vc1_h_loop_filter16 ( s -> dest [ 0 ] - 16 * s -> linesize - 8 , s -> linesize , pq ) ;\n if ( s -> mb_x >= 2 ) {\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n v -> vc1dsp . vc1_h_loop_filter8 ( s -> dest [ j + 1 ] - 8 * s -> uvlinesize - 8 , s -> uvlinesize , pq ) ;\n }\n }\n }\n if ( s -> mb_x == s -> mb_width - 1 ) {\n if ( s -> mb_x ) v -> vc1dsp . vc1_h_loop_filter16 ( s -> dest [ 0 ] - 16 * s -> linesize , s -> linesize , pq ) ;\n v -> vc1dsp . vc1_h_loop_filter16 ( s -> dest [ 0 ] - 16 * s -> linesize + 8 , s -> linesize , pq ) ;\n if ( s -> mb_x ) {\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n v -> vc1dsp . vc1_h_loop_filter8 ( s -> dest [ j + 1 ] - 8 * s -> uvlinesize , s -> uvlinesize , pq ) ;\n }\n }\n }\n }\n }\n }"}
{"idx": 5222, "target": 0, "func": "static void add_cdps ( linked_list_t * list , linked_list_t * uris , linked_list_t * issuers ) {\n identification_t * issuer , * id ;\n enumerator_t * enumerator ;\n x509_cdp_t * cdp ;\n char * uri ;\n while ( uris -> remove_last ( uris , ( void * * ) & id ) == SUCCESS ) {\n if ( gn_to_string ( id , & uri ) ) {\n if ( issuers -> get_count ( issuers ) ) {\n enumerator = issuers -> create_enumerator ( issuers ) ;\n while ( enumerator -> enumerate ( enumerator , & issuer ) ) {\n INIT ( cdp , . uri = strdup ( uri ) , . issuer = issuer -> clone ( issuer ) , ) ;\n list -> insert_last ( list , cdp ) ;\n }\n enumerator -> destroy ( enumerator ) ;\n free ( uri ) ;\n }\n else {\n INIT ( cdp , . uri = uri , ) ;\n list -> insert_last ( list , cdp ) ;\n }\n }\n id -> destroy ( id ) ;\n }\n while ( issuers -> remove_last ( issuers , ( void * * ) & id ) == SUCCESS ) {\n id -> destroy ( id ) ;\n }\n }"}
{"idx": 5223, "target": 0, "func": "jas_image_t * jas_image_decode ( jas_stream_t * in , int fmt , char * optstr ) {\n jas_image_fmtinfo_t * fmtinfo ;\n jas_image_t * image ;\n image = 0 ;\n if ( fmt < 0 ) {\n if ( ( fmt = jas_image_getfmt ( in ) ) < 0 ) goto error ;\n }\n if ( ! ( fmtinfo = jas_image_lookupfmtbyid ( fmt ) ) ) goto error ;\n if ( ! fmtinfo -> ops . decode ) goto error ;\n if ( ! ( image = ( * fmtinfo -> ops . decode ) ( in , optstr ) ) ) goto error ;\n if ( ! jas_clrspc_isunknown ( image -> clrspc_ ) && ! jas_clrspc_isgeneric ( image -> clrspc_ ) && ! image -> cmprof_ ) {\n if ( ! ( image -> cmprof_ = jas_cmprof_createfromclrspc ( jas_image_clrspc ( image ) ) ) ) goto error ;\n }\n return image ;\n error : if ( image ) jas_image_destroy ( image ) ;\n return 0 ;\n }"}
{"idx": 5224, "target": 0, "func": "static PARTITION_TYPE read_partition ( VP9_COMMON * cm , MACROBLOCKD * xd , int hbs , int mi_row , int mi_col , BLOCK_SIZE bsize , vp9_reader * r ) {\n const int ctx = partition_plane_context ( xd , mi_row , mi_col , bsize ) ;\n const vp9_prob * const probs = get_partition_probs ( cm , ctx ) ;\n const int has_rows = ( mi_row + hbs ) < cm -> mi_rows ;\n const int has_cols = ( mi_col + hbs ) < cm -> mi_cols ;\n PARTITION_TYPE p ;\n if ( has_rows && has_cols ) p = ( PARTITION_TYPE ) vp9_read_tree ( r , vp9_partition_tree , probs ) ;\n else if ( ! has_rows && has_cols ) p = vp9_read ( r , probs [ 1 ] ) ? PARTITION_SPLIT : PARTITION_HORZ ;\n else if ( has_rows && ! has_cols ) p = vp9_read ( r , probs [ 2 ] ) ? PARTITION_SPLIT : PARTITION_VERT ;\n else p = PARTITION_SPLIT ;\n if ( ! cm -> frame_parallel_decoding_mode ) ++ cm -> counts . partition [ ctx ] [ p ] ;\n return p ;\n }"}
{"idx": 5225, "target": 1, "func": "static void _ASCIIGetUnicodeSet ( const UConverter * cnv , const USetAdder * sa , UConverterUnicodeSet which , UErrorCode * pErrorCode ) {\n sa -> addRange ( sa -> set , 0 , 0x7f ) ;\n }"}
{"idx": 5226, "target": 0, "func": "static int dissect_h245_T_e164Address ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_restricted_character_string ( tvb , offset , actx , tree , hf_index , 1 , 128 , FALSE , \"0123456789#*,\" , 13 , NULL ) ;\n return offset ;\n }"}
{"idx": 5227, "target": 1, "func": "static int alloc_frame_buffer ( MpegEncContext * s , Picture * pic ) {\n int r , ret ;\n if ( s -> avctx -> hwaccel ) {\n assert ( ! pic -> hwaccel_picture_private ) ;\n if ( s -> avctx -> hwaccel -> priv_data_size ) {\n pic -> hwaccel_picture_private = av_mallocz ( s -> avctx -> hwaccel -> priv_data_size ) ;\n if ( ! pic -> hwaccel_picture_private ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"alloc_frame_buffer() failed (hwaccel private data allocation)\\n\" ) ;\n return - 1 ;\n }\n }\n }\n if ( s -> codec_id != AV_CODEC_ID_WMV3IMAGE && s -> codec_id != AV_CODEC_ID_VC1IMAGE && s -> codec_id != AV_CODEC_ID_MSS2 ) r = ff_thread_get_buffer ( s -> avctx , & pic -> f ) ;\n else r = avcodec_default_get_buffer ( s -> avctx , & pic -> f ) ;\n if ( r < 0 || ! pic -> f . type || ! pic -> f . data [ 0 ] ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"get_buffer() failed (%d %d %p)\\n\" , r , pic -> f . type , pic -> f . data [ 0 ] ) ;\n av_freep ( & pic -> hwaccel_picture_private ) ;\n return - 1 ;\n }\n if ( s -> linesize && ( s -> linesize != pic -> f . linesize [ 0 ] || s -> uvlinesize != pic -> f . linesize [ 1 ] ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"get_buffer() failed (stride changed)\\n\" ) ;\n free_frame_buffer ( s , pic ) ;\n return - 1 ;\n }\n if ( pic -> f . linesize [ 1 ] != pic -> f . linesize [ 2 ] ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"get_buffer() failed (uv stride mismatch)\\n\" ) ;\n free_frame_buffer ( s , pic ) ;\n return - 1 ;\n }\n if ( ! s -> edge_emu_buffer && ( ret = ff_mpv_frame_size_alloc ( s , pic -> f . linesize [ 0 ] ) ) < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"get_buffer() failed to allocate context scratch buffers.\\n\" ) ;\n free_frame_buffer ( s , pic ) ;\n return ret ;\n }\n return 0 ;\n }"}
{"idx": 5228, "target": 0, "func": "static void * gx_ttfMemory__alloc_bytes ( ttfMemory * self , int size , const char * cname ) {\n gs_memory_t * mem = ( ( gx_ttfMemory * ) self ) -> memory ;\n return gs_alloc_bytes ( mem , size , cname ) ;\n }"}
{"idx": 5229, "target": 0, "func": "int i2d_X509_REQ_bio ( BIO * bp , X509_REQ * req ) {\n return ASN1_item_i2d_bio ( ASN1_ITEM_rptr ( X509_REQ ) , bp , req ) ;\n }"}
{"idx": 5230, "target": 0, "func": "static void cmd_window_size ( const char * data ) {\n char sizestr [ MAX_INT_STRLEN ] ;\n int size ;\n if ( ! is_numeric ( data , 0 ) ) return ;\n size = atoi ( data ) ;\n size -= WINDOW_MAIN ( active_win ) -> height - WINDOW_MAIN ( active_win ) -> statusbar_lines ;\n if ( size == 0 ) return ;\n ltoa ( sizestr , size < 0 ? - size : size ) ;\n if ( size < 0 ) cmd_window_shrink ( sizestr ) ;\n else cmd_window_grow ( sizestr ) ;\n }"}
{"idx": 5231, "target": 0, "func": "int test_probable_prime_coprime ( BIO * bp , BN_CTX * ctx ) {\n int i , j , ret = 0 ;\n BIGNUM r ;\n BN_ULONG primes [ 5 ] = {\n 2 , 3 , 5 , 7 , 11 }\n ;\n BN_init ( & r ) ;\n for ( i = 0 ;\n i < 1000 ;\n i ++ ) {\n if ( ! bn_probable_prime_dh_coprime ( & r , 1024 , ctx ) ) goto err ;\n for ( j = 0 ;\n j < 5 ;\n j ++ ) {\n if ( BN_mod_word ( & r , primes [ j ] ) == 0 ) {\n BIO_printf ( bp , \"Number generated is not coprime to %ld:\\n\" , primes [ j ] ) ;\n BN_print_fp ( stdout , & r ) ;\n BIO_printf ( bp , \"\\n\" ) ;\n goto err ;\n }\n }\n }\n ret = 1 ;\n err : BN_clear ( & r ) ;\n return ret ;\n }"}
{"idx": 5232, "target": 0, "func": "static void dissect_zcl_ota_file_version_field ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n static const int * file_version [ ] = {\n & hf_zbee_zcl_ota_file_version_appl_release , & hf_zbee_zcl_ota_file_version_appl_build , & hf_zbee_zcl_ota_file_version_stack_release , & hf_zbee_zcl_ota_file_version_stack_build , NULL }\n ;\n proto_tree_add_bitmask ( tree , tvb , * offset , hf_zbee_zcl_ota_file_version , ett_zbee_zcl_ota_file_version , file_version , ENC_BIG_ENDIAN ) ;\n * offset += 4 ;\n }"}
{"idx": 5233, "target": 0, "func": "static void set_tile_limits ( VP9_COMP * cpi ) {\n VP9_COMMON * const cm = & cpi -> common ;\n int min_log2_tile_cols , max_log2_tile_cols ;\n vp9_get_tile_n_bits ( cm -> mi_cols , & min_log2_tile_cols , & max_log2_tile_cols ) ;\n cm -> log2_tile_cols = clamp ( cpi -> oxcf . tile_columns , min_log2_tile_cols , max_log2_tile_cols ) ;\n cm -> log2_tile_rows = cpi -> oxcf . tile_rows ;\n }"}
{"idx": 5234, "target": 0, "func": "static void e1000e_update_flowctl_status ( E1000ECore * core ) {\n if ( e1000e_have_autoneg ( core ) && core -> phy [ 0 ] [ PHY_STATUS ] & MII_SR_AUTONEG_COMPLETE ) {\n trace_e1000e_link_autoneg_flowctl ( true ) ;\n core -> mac [ CTRL ] |= E1000_CTRL_TFCE | E1000_CTRL_RFCE ;\n }\n else {\n trace_e1000e_link_autoneg_flowctl ( false ) ;\n }\n }"}
{"idx": 5235, "target": 0, "func": "void vp9_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint8_t * dst , ptrdiff_t stride , const uint8_t * above , const uint8_t * left ) {\n type ## _predictor ( dst , stride , size , above , left ) ;\n }\n # if CONFIG_VP9_HIGHBITDEPTH # define intra_pred_high_sized ( type , size ) void vp9_high_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint16_t * dst , ptrdiff_t stride , const uint16_t * above , const uint16_t * left , int bd ) {\n high_ ## type ## _predictor ( dst , stride , size , above , left , bd ) ;\n }\n # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) intra_pred_high_sized ( type , 4 ) intra_pred_high_sized ( type , 8 ) intra_pred_high_sized ( type , 16 ) intra_pred_high_sized ( type , 32 ) # else # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) # endif # if CONFIG_VP9_HIGHBITDEPTH static INLINE void high_d207_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) above ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) {\n dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n }\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) {\n dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n }\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n }\n static INLINE void high_d63_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) {\n dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n }\n dst += stride ;\n }\n }\n static INLINE void high_d45_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) {\n dst [ c ] = r + c + 2 < bs * 2 ? ROUND_POWER_OF_TWO ( above [ r + c ] + above [ r + c + 1 ] * 2 + above [ r + c + 2 ] , 2 ) : above [ bs * 2 - 1 ] ;\n }\n dst += stride ;\n }\n }\n static INLINE void high_d117_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] , 1 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 3 ;\n r < bs ;\n ++ r ) dst [ ( r - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ r - 3 ] + left [ r - 2 ] * 2 + left [ r - 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - 2 * stride + c - 1 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_d135_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - stride + c - 1 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_d153_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] , 1 ) ;\n for ( r = 1 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 1 ] + left [ r ] , 1 ) ;\n dst ++ ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] * 2 + above [ c + 1 ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = dst [ - stride + c - 2 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_v_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memcpy ( dst , above , bs * sizeof ( uint16_t ) ) ;\n dst += stride ;\n }\n }\n static INLINE void high_h_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) above ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , left [ r ] , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_tm_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n int ytop_left = above [ - 1 ] ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = clip_pixel_high ( left [ r ] + above [ c ] - ytop_left , bd ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_128_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) above ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , 128 << ( bd - 8 ) , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_left_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) above ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += left [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_top_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) left ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += above [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n const int count = 2 * bs ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) {\n sum += above [ i ] ;\n sum += left [ i ] ;\n }\n expected_dc = ( sum + ( count >> 1 ) ) / count ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n # endif static INLINE void d207_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n intra_pred_allsizes ( d207 )"}
{"idx": 5236, "target": 0, "func": "static void get_conv_info ( packet_info * pinfo , struct _rtp_info * rtp_info ) {\n conversation_t * p_conv = NULL ;\n struct _rtp_conversation_info * p_conv_data = NULL ;\n p_conv_data = ( struct _rtp_conversation_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_rtp , 0 ) ;\n if ( ! p_conv_data ) {\n p_conv = find_conversation ( pinfo -> fd -> num , & pinfo -> net_dst , & pinfo -> net_src , pinfo -> ptype , pinfo -> destport , pinfo -> srcport , NO_ADDR_B ) ;\n if ( p_conv ) {\n struct _rtp_conversation_info * p_conv_packet_data ;\n p_conv_data = ( struct _rtp_conversation_info * ) conversation_get_proto_data ( p_conv , proto_rtp ) ;\n if ( p_conv_data ) {\n guint32 seqno ;\n p_conv_packet_data = wmem_new ( wmem_file_scope ( ) , struct _rtp_conversation_info ) ;\n g_strlcpy ( p_conv_packet_data -> method , p_conv_data -> method , MAX_RTP_SETUP_METHOD_SIZE + 1 ) ;\n p_conv_packet_data -> frame_number = p_conv_data -> frame_number ;\n p_conv_packet_data -> is_video = p_conv_data -> is_video ;\n p_conv_packet_data -> rtp_dyn_payload = p_conv_data -> rtp_dyn_payload ;\n p_conv_packet_data -> rtp_conv_info = p_conv_data -> rtp_conv_info ;\n p_conv_packet_data -> srtp_info = p_conv_data -> srtp_info ;\n p_conv_packet_data -> bta2dp_info = p_conv_data -> bta2dp_info ;\n p_conv_packet_data -> btvdp_info = p_conv_data -> btvdp_info ;\n p_add_proto_data ( wmem_file_scope ( ) , pinfo , proto_rtp , 0 , p_conv_packet_data ) ;\n seqno = calculate_extended_seqno ( p_conv_data -> extended_seqno , rtp_info -> info_seq_num ) ;\n p_conv_packet_data -> extended_seqno = seqno ;\n p_conv_data -> extended_seqno = seqno ;\n }\n }\n }\n if ( p_conv_data ) rtp_info -> info_setup_frame_num = p_conv_data -> frame_number ;\n }"}
{"idx": 5237, "target": 0, "func": "static void exsltMathMinFunction ( xmlXPathParserContextPtr ctxt , int nargs ) {\n xmlNodeSetPtr ns ;\n double ret ;\n void * user = NULL ;\n if ( nargs != 1 ) {\n xsltGenericError ( xsltGenericErrorContext , \"math:min: invalid number of arguments\\n\" ) ;\n ctxt -> error = XPATH_INVALID_ARITY ;\n return ;\n }\n if ( ( ctxt -> value != NULL ) && ( ctxt -> value -> boolval != 0 ) ) {\n user = ctxt -> value -> user ;\n ctxt -> value -> boolval = 0 ;\n ctxt -> value -> user = NULL ;\n }\n ns = xmlXPathPopNodeSet ( ctxt ) ;\n if ( xmlXPathCheckError ( ctxt ) ) return ;\n ret = exsltMathMin ( ns ) ;\n xmlXPathFreeNodeSet ( ns ) ;\n if ( user != NULL ) xmlFreeNodeList ( ( xmlNodePtr ) user ) ;\n xmlXPathReturnNumber ( ctxt , ret ) ;\n }"}
{"idx": 5238, "target": 0, "func": "TEST_F ( ExtensionServiceSyncTest , DeferredSyncStartupPreInstalledComponent ) {\n InitializeEmptyExtensionService ( ) ;\n bool flare_was_called = false ;\n syncer : : ModelType triggered_type ( syncer : : UNSPECIFIED ) ;\n base : : WeakPtrFactory < ExtensionServiceSyncTest > factory ( this ) ;\n extension_sync_service ( ) -> SetSyncStartFlareForTesting ( base : : Bind ( & ExtensionServiceSyncTest : : MockSyncStartFlare , factory . GetWeakPtr ( ) , & flare_was_called , & triggered_type ) ) ;\n std : : string manifest ;\n ASSERT_TRUE ( base : : ReadFileToString ( good0_path ( ) . Append ( extensions : : kManifestFilename ) , & manifest ) ) ;\n service ( ) -> component_loader ( ) -> Add ( manifest , good0_path ( ) ) ;\n ASSERT_FALSE ( service ( ) -> is_ready ( ) ) ;\n service ( ) -> Init ( ) ;\n ASSERT_TRUE ( service ( ) -> is_ready ( ) ) ;\n EXPECT_FALSE ( flare_was_called ) ;\n ASSERT_EQ ( syncer : : UNSPECIFIED , triggered_type ) ;\n }"}
{"idx": 5239, "target": 1, "func": "static int mss3_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n MSS3Context * c = avctx -> priv_data ;\n RangeCoder * acoder = & c -> coder ;\n GetByteContext gb ;\n uint8_t * dst [ 3 ] ;\n int dec_width , dec_height , dec_x , dec_y , quality , keyframe ;\n int x , y , i , mb_width , mb_height , blk_size , btype ;\n int ret ;\n if ( buf_size < HEADER_SIZE ) {\n av_log ( avctx , AV_LOG_ERROR , \"Frame should have at least %d bytes, got %d instead\\n\" , HEADER_SIZE , buf_size ) ;\n return AVERROR_INVALIDDATA ;\n }\n bytestream2_init ( & gb , buf , buf_size ) ;\n keyframe = bytestream2_get_be32 ( & gb ) ;\n if ( keyframe & ~ 0x301 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid frame type %X\\n\" , keyframe ) ;\n return AVERROR_INVALIDDATA ;\n }\n keyframe = ! ( keyframe & 1 ) ;\n bytestream2_skip ( & gb , 6 ) ;\n dec_x = bytestream2_get_be16 ( & gb ) ;\n dec_y = bytestream2_get_be16 ( & gb ) ;\n dec_width = bytestream2_get_be16 ( & gb ) ;\n dec_height = bytestream2_get_be16 ( & gb ) ;\n if ( dec_x + dec_width > avctx -> width || dec_y + dec_height > avctx -> height || ( dec_width | dec_height ) & 0xF ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid frame dimensions %dx%d +%d,%d\\n\" , dec_width , dec_height , dec_x , dec_y ) ;\n return AVERROR_INVALIDDATA ;\n }\n bytestream2_skip ( & gb , 4 ) ;\n quality = bytestream2_get_byte ( & gb ) ;\n if ( quality < 1 || quality > 100 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid quality setting %d\\n\" , quality ) ;\n return AVERROR_INVALIDDATA ;\n }\n bytestream2_skip ( & gb , 4 ) ;\n if ( keyframe && ! bytestream2_get_bytes_left ( & gb ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Keyframe without data found\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ! keyframe && c -> got_error ) return buf_size ;\n c -> got_error = 0 ;\n c -> pic . reference = 3 ;\n c -> pic . buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE ;\n if ( ( ret = avctx -> reget_buffer ( avctx , & c -> pic ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n c -> pic . key_frame = keyframe ;\n c -> pic . pict_type = keyframe ? AV_PICTURE_TYPE_I : AV_PICTURE_TYPE_P ;\n if ( ! bytestream2_get_bytes_left ( & gb ) ) {\n * got_frame = 1 ;\n * ( AVFrame * ) data = c -> pic ;\n return buf_size ;\n }\n reset_coders ( c , quality ) ;\n rac_init ( acoder , buf + HEADER_SIZE , buf_size - HEADER_SIZE ) ;\n mb_width = dec_width >> 4 ;\n mb_height = dec_height >> 4 ;\n dst [ 0 ] = c -> pic . data [ 0 ] + dec_x + dec_y * c -> pic . linesize [ 0 ] ;\n dst [ 1 ] = c -> pic . data [ 1 ] + dec_x / 2 + ( dec_y / 2 ) * c -> pic . linesize [ 1 ] ;\n dst [ 2 ] = c -> pic . data [ 2 ] + dec_x / 2 + ( dec_y / 2 ) * c -> pic . linesize [ 2 ] ;\n for ( y = 0 ;\n y < mb_height ;\n y ++ ) {\n for ( x = 0 ;\n x < mb_width ;\n x ++ ) {\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n blk_size = 8 << ! i ;\n btype = decode_block_type ( acoder , c -> btype + i ) ;\n switch ( btype ) {\n case FILL_BLOCK : decode_fill_block ( acoder , c -> fill_coder + i , dst [ i ] + x * blk_size , c -> pic . linesize [ i ] , blk_size ) ;\n break ;\n case IMAGE_BLOCK : decode_image_block ( acoder , c -> image_coder + i , dst [ i ] + x * blk_size , c -> pic . linesize [ i ] , blk_size ) ;\n break ;\n case DCT_BLOCK : decode_dct_block ( acoder , c -> dct_coder + i , dst [ i ] + x * blk_size , c -> pic . linesize [ i ] , blk_size , c -> dctblock , x , y ) ;\n break ;\n case HAAR_BLOCK : decode_haar_block ( acoder , c -> haar_coder + i , dst [ i ] + x * blk_size , c -> pic . linesize [ i ] , blk_size , c -> hblock ) ;\n break ;\n }\n if ( c -> got_error || acoder -> got_error ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error decoding block %d,%d\\n\" , x , y ) ;\n c -> got_error = 1 ;\n return AVERROR_INVALIDDATA ;\n }\n }\n }\n dst [ 0 ] += c -> pic . linesize [ 0 ] * 16 ;\n dst [ 1 ] += c -> pic . linesize [ 1 ] * 8 ;\n dst [ 2 ] += c -> pic . linesize [ 2 ] * 8 ;\n }\n * got_frame = 1 ;\n * ( AVFrame * ) data = c -> pic ;\n return buf_size ;\n }"}
{"idx": 5240, "target": 0, "func": "TEST_F ( FullscreenControllerStateUnitTest , ExitTabFullscreenViaReplacingTab ) {\n AddTab ( browser ( ) , GURL ( url : : kAboutBlankURL ) ) ;\n ASSERT_TRUE ( InvokeEvent ( TAB_FULLSCREEN_TRUE ) ) ;\n ASSERT_TRUE ( InvokeEvent ( WINDOW_CHANGE ) ) ;\n ASSERT_TRUE ( browser ( ) -> window ( ) -> IsFullscreen ( ) ) ;\n content : : WebContents * new_web_contents = content : : WebContents : : Create ( content : : WebContents : : CreateParams ( profile ( ) ) ) ;\n scoped_ptr < content : : WebContents > old_web_contents ( browser ( ) -> tab_strip_model ( ) -> ReplaceWebContentsAt ( 0 , new_web_contents ) ) ;\n ChangeWindowFullscreenState ( ) ;\n EXPECT_FALSE ( browser ( ) -> window ( ) -> IsFullscreen ( ) ) ;\n }"}
{"idx": 5241, "target": 0, "func": "void handle_no_error ( struct st_command * command ) {\n DBUG_ENTER ( \"handle_no_error\" ) ;\n if ( command -> expected_errors . err [ 0 ] . type == ERR_ERRNO && command -> expected_errors . err [ 0 ] . code . errnum != 0 ) {\n report_or_die ( \"query '%s' succeeded - should have failed with errno %d...\" , command -> query , command -> expected_errors . err [ 0 ] . code . errnum ) ;\n }\n else if ( command -> expected_errors . err [ 0 ] . type == ERR_SQLSTATE && strcmp ( command -> expected_errors . err [ 0 ] . code . sqlstate , \"00000\" ) != 0 ) {\n report_or_die ( \"query '%s' succeeded - should have failed with \" \"sqlstate %s...\" , command -> query , command -> expected_errors . err [ 0 ] . code . sqlstate ) ;\n }\n DBUG_VOID_RETURN ;\n }"}
{"idx": 5242, "target": 0, "func": "static guint iax_circuit_hash ( gconstpointer v ) {\n const iax_circuit_key * key = ( const iax_circuit_key * ) v ;\n guint hash_val ;\n hash_val = 0 ;\n ADD_ADDRESS_TO_HASH ( hash_val , & key -> addr ) ;\n hash_val += ( guint ) ( key -> ptype ) ;\n hash_val += ( guint ) ( key -> port ) ;\n hash_val += ( guint ) ( key -> callno ) ;\n # ifdef DEBUG_HASHING g_debug ( \"+++ Hashing key: %s, result %#x\" , key_to_str ( key ) , hash_val ) ;\n # endif return ( guint ) hash_val ;\n }"}
{"idx": 5243, "target": 0, "func": "int64_t cpu_get_ticks ( void ) {\n if ( use_icount ) {\n return cpu_get_icount ( ) ;\n }\n if ( ! timers_state . cpu_ticks_enabled ) {\n return timers_state . cpu_ticks_offset ;\n }\n else {\n int64_t ticks ;\n ticks = cpu_get_real_ticks ( ) ;\n if ( timers_state . cpu_ticks_prev > ticks ) {\n timers_state . cpu_ticks_offset += timers_state . cpu_ticks_prev - ticks ;\n }\n timers_state . cpu_ticks_prev = ticks ;\n return ticks + timers_state . cpu_ticks_offset ;\n }\n }"}
{"idx": 5244, "target": 0, "func": "static void vmxnet_tx_pkt_calculate_hdr_len ( struct VmxnetTxPkt * pkt ) {\n pkt -> hdr_len = pkt -> vec [ VMXNET_TX_PKT_L2HDR_FRAG ] . iov_len + pkt -> vec [ VMXNET_TX_PKT_L3HDR_FRAG ] . iov_len ;\n }"}
{"idx": 5245, "target": 0, "func": "static int dissect_h245_T_extensionAddressResponse ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_extensionAddressResponse , T_extensionAddressResponse_sequence ) ;\n return offset ;\n }"}
{"idx": 5246, "target": 0, "func": "void proto_set_decoding ( const int proto_id , const gboolean enabled ) {\n protocol_t * protocol ;\n protocol = find_protocol_by_id ( proto_id ) ;\n DISSECTOR_ASSERT ( protocol -> can_toggle ) ;\n protocol -> is_enabled = enabled ;\n }"}
{"idx": 5247, "target": 0, "func": "static int setnonblocking ( int fd ) {\n int flags ;\n if ( - 1 == ( flags = fcntl ( fd , F_GETFL , 0 ) ) ) {\n flags = 0 ;\n }\n return fcntl ( fd , F_SETFL , flags | O_NONBLOCK ) ;\n }"}
{"idx": 5248, "target": 0, "func": "static void version_check_doit ( void * a ) {\n struct version_check_args * args = ( struct version_check_args * ) a ;\n if ( _dl_check_all_versions ( GL ( dl_ns ) [ LM_ID_BASE ] . _ns_loaded , 1 , args -> dotrace ) && args -> doexit ) _exit ( 1 ) ;\n }"}
{"idx": 5249, "target": 1, "func": "const EVP_CIPHER * EVP_aes_ ## keylen ## _ ## mode ( void ) \\ {\n return & aes_ ## keylen ## _ ## mode ;\n }\n # 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_CAPABLE ( OPENSSL_armcap_P & ARMV7_NEON ) # endif # if defined ( VPAES_ASM ) # define VPAES_CAPABLE ( OPENSSL_armcap_P & ARMV7_NEON ) # endif # define HWAES_CAPABLE ( OPENSSL_armcap_P & ARMV8_AES ) # define HWAES_set_encrypt_key aes_v8_set_encrypt_key # define HWAES_set_decrypt_key aes_v8_set_decrypt_key # define HWAES_encrypt aes_v8_encrypt # define HWAES_decrypt aes_v8_decrypt # define HWAES_cbc_encrypt aes_v8_cbc_encrypt # define HWAES_ctr32_encrypt_blocks aes_v8_ctr32_encrypt_blocks # endif # endif # if defined ( HWAES_CAPABLE ) int HWAES_set_encrypt_key ( const unsigned char * userKey , const int bits , AES_KEY * key ) ;\n int HWAES_set_decrypt_key ( const unsigned char * userKey , const int bits , AES_KEY * key ) ;\n void HWAES_encrypt ( const unsigned char * in , unsigned char * out , const AES_KEY * key ) ;\n void HWAES_decrypt ( const unsigned char * in , unsigned char * out , const AES_KEY * key ) ;\n void HWAES_cbc_encrypt ( const unsigned char * in , unsigned char * out , size_t length , const AES_KEY * key , unsigned char * ivec , const int enc ) ;\n void HWAES_ctr32_encrypt_blocks ( const unsigned char * in , unsigned char * out , size_t len , const AES_KEY * key , const unsigned char ivec [ 16 ] ) ;\n void HWAES_xts_encrypt ( const unsigned char * inp , unsigned char * out , size_t len , const AES_KEY * key1 , const AES_KEY * key2 , const unsigned char iv [ 16 ] ) ;\n void HWAES_xts_decrypt ( const unsigned char * inp , unsigned char * out , size_t len , const AES_KEY * key1 , const AES_KEY * key2 , const unsigned char iv [ 16 ] ) ;\n # endif # define BLOCK_CIPHER_generic_pack ( nid , keylen , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 16 , 16 , cbc , cbc , CBC , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 16 , 0 , ecb , ecb , ECB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , ofb128 , ofb , OFB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb128 , cfb , CFB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb1 , cfb1 , CFB , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb8 , cfb8 , CFB , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , ctr , ctr , CTR , flags ) static int aes_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n int ret , mode ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n mode = EVP_CIPHER_CTX_mode ( ctx ) ;\n if ( ( mode == EVP_CIPH_ECB_MODE || mode == EVP_CIPH_CBC_MODE ) && ! enc ) {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_decrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n # endif }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CBC_MODE ) {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = ( cbc128_f ) bsaes_cbc_encrypt ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n }\n }\n else # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_encrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n else # endif # ifdef HWAES_ctr32_encrypt_blocks if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) HWAES_ctr32_encrypt_blocks ;\n else # endif ( void ) 0 ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CTR_MODE ) {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . ctr = ( ctr128_f ) bsaes_ctr32_encrypt_blocks ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n # ifdef AES_CTR_ASM if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) AES_ctr32_encrypt ;\n # endif }\n if ( ret < 0 ) {\n EVPerr ( EVP_F_AES_INIT_KEY , EVP_R_AES_KEY_SETUP_FAILED ) ;\n return 0 ;\n }\n return 1 ;\n }\n static int aes_cbc_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( dat -> stream . cbc ) ( * dat -> stream . cbc ) ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_encrypting ( ctx ) ) ;\n else if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) CRYPTO_cbc128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , dat -> block ) ;\n else CRYPTO_cbc128_decrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , dat -> block ) ;\n return 1 ;\n }\n static int aes_ecb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n size_t bl = EVP_CIPHER_CTX_block_size ( ctx ) ;\n size_t i ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( len < bl ) return 1 ;\n for ( i = 0 , len -= bl ;\n i <= len ;\n i += bl ) ( * dat -> block ) ( in + i , out + i , & dat -> ks ) ;\n return 1 ;\n }\n static int aes_ofb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_ofb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb8_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_8_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb1_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( EVP_CIPHER_CTX_test_flags ( ctx , EVP_CIPH_FLAG_LENGTH_BITS ) ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n while ( len >= MAXBITCHUNK ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , MAXBITCHUNK * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n len -= MAXBITCHUNK ;\n }\n if ( len ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n }\n return 1 ;\n }\n static int aes_ctr_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n unsigned int num = EVP_CIPHER_CTX_num ( ctx ) ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( dat -> stream . ctr ) CRYPTO_ctr128_encrypt_ctr32 ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> stream . ctr ) ;\n else CRYPTO_ctr128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n BLOCK_CIPHER_generic_pack ( NID_aes , 128 , 0 ) BLOCK_CIPHER_generic_pack ( NID_aes , 192 , 0 ) BLOCK_CIPHER_generic_pack ( NID_aes , 256 , 0 ) static int aes_gcm_cleanup ( EVP_CIPHER_CTX * c ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , c ) ;\n OPENSSL_cleanse ( & gctx -> gcm , sizeof ( gctx -> gcm ) ) ;\n if ( gctx -> iv != EVP_CIPHER_CTX_iv_noconst ( c ) ) OPENSSL_free ( gctx -> iv ) ;\n return 1 ;\n }\n static void ctr64_inc ( unsigned char * counter ) {\n int n = 8 ;\n unsigned char c ;\n do {\n -- n ;\n c = counter [ n ] ;\n ++ c ;\n counter [ n ] = c ;\n if ( c ) return ;\n }\n while ( n ) ;\n }\n static int aes_gcm_ctrl ( EVP_CIPHER_CTX * c , int type , int arg , void * ptr ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , c ) ;\n switch ( type ) {\n case EVP_CTRL_INIT : gctx -> key_set = 0 ;\n gctx -> iv_set = 0 ;\n gctx -> ivlen = EVP_CIPHER_CTX_iv_length ( c ) ;\n gctx -> iv = EVP_CIPHER_CTX_iv_noconst ( c ) ;\n gctx -> taglen = - 1 ;\n gctx -> iv_gen = 0 ;\n gctx -> tls_aad_len = - 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_IVLEN : if ( arg <= 0 ) return 0 ;\n if ( ( arg > EVP_MAX_IV_LENGTH ) && ( arg > gctx -> ivlen ) ) {\n if ( gctx -> iv != EVP_CIPHER_CTX_iv_noconst ( c ) ) OPENSSL_free ( gctx -> iv ) ;\n gctx -> iv = OPENSSL_malloc ( arg ) ;\n if ( gctx -> iv == NULL ) return 0 ;\n }\n gctx -> ivlen = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_TAG : if ( arg <= 0 || arg > 16 || EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n gctx -> taglen = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_GET_TAG : if ( arg <= 0 || arg > 16 || ! EVP_CIPHER_CTX_encrypting ( c ) || gctx -> taglen < 0 ) return 0 ;\n memcpy ( ptr , EVP_CIPHER_CTX_buf_noconst ( c ) , arg ) ;\n return 1 ;\n case EVP_CTRL_GCM_SET_IV_FIXED : if ( arg == - 1 ) {\n memcpy ( gctx -> iv , ptr , gctx -> ivlen ) ;\n gctx -> iv_gen = 1 ;\n return 1 ;\n }\n if ( ( arg < 4 ) || ( gctx -> ivlen - arg ) < 8 ) return 0 ;\n if ( arg ) memcpy ( gctx -> iv , ptr , arg ) ;\n if ( EVP_CIPHER_CTX_encrypting ( c ) && RAND_bytes ( gctx -> iv + arg , gctx -> ivlen - arg ) <= 0 ) return 0 ;\n gctx -> iv_gen = 1 ;\n return 1 ;\n case EVP_CTRL_GCM_IV_GEN : if ( gctx -> iv_gen == 0 || gctx -> key_set == 0 ) return 0 ;\n CRYPTO_gcm128_setiv ( & gctx -> gcm , gctx -> iv , gctx -> ivlen ) ;\n if ( arg <= 0 || arg > gctx -> ivlen ) arg = gctx -> ivlen ;\n memcpy ( ptr , gctx -> iv + gctx -> ivlen - arg , arg ) ;\n ctr64_inc ( gctx -> iv + gctx -> ivlen - 8 ) ;\n gctx -> iv_set = 1 ;\n return 1 ;\n case EVP_CTRL_GCM_SET_IV_INV : if ( gctx -> iv_gen == 0 || gctx -> key_set == 0 || EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( gctx -> iv + gctx -> ivlen - arg , ptr , arg ) ;\n CRYPTO_gcm128_setiv ( & gctx -> gcm , gctx -> iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_TLS1_AAD : if ( arg != EVP_AEAD_TLS1_AAD_LEN ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n gctx -> tls_aad_len = arg ;\n {\n unsigned int len = EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] << 8 | EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] ;\n len -= EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n if ( ! EVP_CIPHER_CTX_encrypting ( c ) ) len -= EVP_GCM_TLS_TAG_LEN ;\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] = len >> 8 ;\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] = len & 0xff ;\n }\n return EVP_GCM_TLS_TAG_LEN ;\n case EVP_CTRL_COPY : {\n EVP_CIPHER_CTX * out = ptr ;\n EVP_AES_GCM_CTX * gctx_out = EVP_C_DATA ( EVP_AES_GCM_CTX , out ) ;\n if ( gctx -> gcm . key ) {\n if ( gctx -> gcm . key != & gctx -> ks ) return 0 ;\n gctx_out -> gcm . key = & gctx_out -> ks ;\n }\n if ( gctx -> iv == EVP_CIPHER_CTX_iv_noconst ( c ) ) gctx_out -> iv = EVP_CIPHER_CTX_iv_noconst ( out ) ;\n else {\n gctx_out -> iv = OPENSSL_malloc ( gctx -> ivlen ) ;\n if ( gctx_out -> iv == NULL ) return 0 ;\n memcpy ( gctx_out -> iv , gctx -> iv , gctx -> ivlen ) ;\n }\n return 1 ;\n }\n default : return - 1 ;\n }\n }\n static int aes_gcm_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n if ( ! iv && ! key ) return 1 ;\n if ( key ) {\n do {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) HWAES_encrypt ) ;\n # ifdef HWAES_ctr32_encrypt_blocks gctx -> ctr = ( ctr128_f ) HWAES_ctr32_encrypt_blocks ;\n # else gctx -> ctr = NULL ;\n # endif break ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE ) {\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) AES_encrypt ) ;\n gctx -> ctr = ( ctr128_f ) bsaes_ctr32_encrypt_blocks ;\n break ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) vpaes_encrypt ) ;\n gctx -> ctr = NULL ;\n break ;\n }\n else # endif ( void ) 0 ;\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) AES_encrypt ) ;\n # ifdef AES_CTR_ASM gctx -> ctr = ( ctr128_f ) AES_ctr32_encrypt ;\n # else gctx -> ctr = NULL ;\n # endif }\n while ( 0 ) ;\n if ( iv == NULL && gctx -> iv_set ) iv = gctx -> iv ;\n if ( iv ) {\n CRYPTO_gcm128_setiv ( & gctx -> gcm , iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n }\n gctx -> key_set = 1 ;\n }\n else {\n if ( gctx -> key_set ) CRYPTO_gcm128_setiv ( & gctx -> gcm , iv , gctx -> ivlen ) ;\n else memcpy ( gctx -> iv , iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n gctx -> iv_gen = 0 ;\n }\n return 1 ;\n }\n static int aes_gcm_tls_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n int rv = - 1 ;\n if ( out != in || len < ( EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ) ) return - 1 ;\n if ( EVP_CIPHER_CTX_ctrl ( ctx , EVP_CIPHER_CTX_encrypting ( ctx ) ? EVP_CTRL_GCM_IV_GEN : EVP_CTRL_GCM_SET_IV_INV , EVP_GCM_TLS_EXPLICIT_IV_LEN , out ) <= 0 ) goto err ;\n if ( CRYPTO_gcm128_aad ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , gctx -> tls_aad_len ) ) goto err ;\n in += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n out += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n len -= EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ;\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 32 && AES_GCM_ASM ( gctx ) ) {\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_encrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) goto err ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 32 && AES_GCM_ASM2 ( gctx ) ) {\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) goto err ;\n }\n out += len ;\n CRYPTO_gcm128_tag ( & gctx -> gcm , out , EVP_GCM_TLS_TAG_LEN ) ;\n rv = len + EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ;\n }\n else {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 16 && AES_GCM_ASM ( gctx ) ) {\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_decrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) goto err ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 16 && AES_GCM_ASM2 ( gctx ) ) {\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) goto err ;\n }\n CRYPTO_gcm128_tag ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , EVP_GCM_TLS_TAG_LEN ) ;\n if ( CRYPTO_memcmp ( EVP_CIPHER_CTX_buf_noconst ( ctx ) , in + len , EVP_GCM_TLS_TAG_LEN ) ) {\n OPENSSL_cleanse ( out , len ) ;\n goto err ;\n }\n rv = len ;\n }\n err : gctx -> iv_set = 0 ;\n gctx -> tls_aad_len = - 1 ;\n return rv ;\n }\n static int aes_gcm_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n if ( ! gctx -> key_set ) return - 1 ;\n if ( gctx -> tls_aad_len >= 0 ) return aes_gcm_tls_cipher ( ctx , out , in , len ) ;\n if ( ! gctx -> iv_set ) return - 1 ;\n if ( in ) {\n if ( out == NULL ) {\n if ( CRYPTO_gcm128_aad ( & gctx -> gcm , in , len ) ) return - 1 ;\n }\n else if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 32 && AES_GCM_ASM ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_encrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) return - 1 ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 32 && AES_GCM_ASM2 ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) return - 1 ;\n }\n }\n else {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 16 && AES_GCM_ASM ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_decrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) return - 1 ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 16 && AES_GCM_ASM2 ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) return - 1 ;\n }\n }\n return len ;\n }\n else {\n if ( ! EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> taglen < 0 ) return - 1 ;\n if ( CRYPTO_gcm128_finish ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , gctx -> taglen ) != 0 ) return - 1 ;\n gctx -> iv_set = 0 ;\n return 0 ;\n }\n CRYPTO_gcm128_tag ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , 16 ) ;\n gctx -> taglen = 16 ;\n gctx -> iv_set = 0 ;\n return 0 ;\n }\n }\n # define CUSTOM_FLAGS ( EVP_CIPH_FLAG_DEFAULT_ASN1 \\ | EVP_CIPH_CUSTOM_IV | EVP_CIPH_FLAG_CUSTOM_CIPHER \\ | EVP_CIPH_ALWAYS_CALL_INIT | EVP_CIPH_CTRL_INIT \\ | EVP_CIPH_CUSTOM_COPY ) BLOCK_CIPHER_custom ( NID_aes , 128 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS )"}
{"idx": 5250, "target": 0, "func": "static int isoent_tree ( struct archive_write * a , struct isoent * * isoentpp ) {\n # if defined ( _WIN32 ) && ! defined ( __CYGWIN__ ) char name [ _MAX_FNAME ] ;\n # elif defined ( NAME_MAX ) && NAME_MAX >= 255 char name [ NAME_MAX + 1 ] ;\n # else char name [ 256 ] ;\n # endif struct iso9660 * iso9660 = a -> format_data ;\n struct isoent * dent , * isoent , * np ;\n struct isofile * f1 , * f2 ;\n const char * fn , * p ;\n int l ;\n isoent = * isoentpp ;\n dent = iso9660 -> primary . rootent ;\n if ( isoent -> file -> parentdir . length > 0 ) fn = p = isoent -> file -> parentdir . s ;\n else fn = p = \"\" ;\n if ( archive_strlen ( & ( iso9660 -> cur_dirstr ) ) == archive_strlen ( & ( isoent -> file -> parentdir ) ) && strcmp ( iso9660 -> cur_dirstr . s , fn ) == 0 ) {\n if ( ! isoent_add_child_tail ( iso9660 -> cur_dirent , isoent ) ) {\n np = ( struct isoent * ) __archive_rb_tree_find_node ( & ( iso9660 -> cur_dirent -> rbtree ) , isoent -> file -> basename . s ) ;\n goto same_entry ;\n }\n return ( ARCHIVE_OK ) ;\n }\n for ( ;\n ;\n ) {\n l = get_path_component ( name , sizeof ( name ) , fn ) ;\n if ( l == 0 ) {\n np = NULL ;\n break ;\n }\n if ( l < 0 ) {\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"A name buffer is too small\" ) ;\n _isoent_free ( isoent ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n np = isoent_find_child ( dent , name ) ;\n if ( np == NULL || fn [ 0 ] == '\\0' ) break ;\n if ( ! np -> dir ) {\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"`%s' is not directory, we cannot insert `%s' \" , archive_entry_pathname ( np -> file -> entry ) , archive_entry_pathname ( isoent -> file -> entry ) ) ;\n _isoent_free ( isoent ) ;\n * isoentpp = NULL ;\n return ( ARCHIVE_FAILED ) ;\n }\n fn += l ;\n if ( fn [ 0 ] == '/' ) fn ++ ;\n dent = np ;\n }\n if ( np == NULL ) {\n while ( fn [ 0 ] != '\\0' ) {\n struct isoent * vp ;\n struct archive_string as ;\n archive_string_init ( & as ) ;\n archive_strncat ( & as , p , fn - p + l ) ;\n if ( as . s [ as . length - 1 ] == '/' ) {\n as . s [ as . length - 1 ] = '\\0' ;\n as . length -- ;\n }\n vp = isoent_create_virtual_dir ( a , iso9660 , as . s ) ;\n if ( vp == NULL ) {\n archive_string_free ( & as ) ;\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate memory\" ) ;\n _isoent_free ( isoent ) ;\n * isoentpp = NULL ;\n return ( ARCHIVE_FATAL ) ;\n }\n archive_string_free ( & as ) ;\n if ( vp -> file -> dircnt > iso9660 -> dircnt_max ) iso9660 -> dircnt_max = vp -> file -> dircnt ;\n isoent_add_child_tail ( dent , vp ) ;\n np = vp ;\n fn += l ;\n if ( fn [ 0 ] == '/' ) fn ++ ;\n l = get_path_component ( name , sizeof ( name ) , fn ) ;\n if ( l < 0 ) {\n archive_string_free ( & as ) ;\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"A name buffer is too small\" ) ;\n _isoent_free ( isoent ) ;\n * isoentpp = NULL ;\n return ( ARCHIVE_FATAL ) ;\n }\n dent = np ;\n }\n iso9660 -> cur_dirent = dent ;\n archive_string_empty ( & ( iso9660 -> cur_dirstr ) ) ;\n archive_string_ensure ( & ( iso9660 -> cur_dirstr ) , archive_strlen ( & ( dent -> file -> parentdir ) ) + archive_strlen ( & ( dent -> file -> basename ) ) + 2 ) ;\n if ( archive_strlen ( & ( dent -> file -> parentdir ) ) + archive_strlen ( & ( dent -> file -> basename ) ) == 0 ) iso9660 -> cur_dirstr . s [ 0 ] = 0 ;\n else {\n if ( archive_strlen ( & ( dent -> file -> parentdir ) ) > 0 ) {\n archive_string_copy ( & ( iso9660 -> cur_dirstr ) , & ( dent -> file -> parentdir ) ) ;\n archive_strappend_char ( & ( iso9660 -> cur_dirstr ) , '/' ) ;\n }\n archive_string_concat ( & ( iso9660 -> cur_dirstr ) , & ( dent -> file -> basename ) ) ;\n }\n if ( ! isoent_add_child_tail ( dent , isoent ) ) {\n np = ( struct isoent * ) __archive_rb_tree_find_node ( & ( dent -> rbtree ) , isoent -> file -> basename . s ) ;\n goto same_entry ;\n }\n return ( ARCHIVE_OK ) ;\n }\n same_entry : f1 = np -> file ;\n f2 = isoent -> file ;\n if ( archive_entry_filetype ( f1 -> entry ) != archive_entry_filetype ( f2 -> entry ) ) {\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"Found duplicate entries `%s' and its file type is \" \"different\" , archive_entry_pathname ( f1 -> entry ) ) ;\n _isoent_free ( isoent ) ;\n * isoentpp = NULL ;\n return ( ARCHIVE_FAILED ) ;\n }\n np -> file = f2 ;\n isoent -> file = f1 ;\n np -> virtual = 0 ;\n _isoent_free ( isoent ) ;\n * isoentpp = np ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 5251, "target": 0, "func": "static void init_uncompress ( compress_filter_context_t * zfx , z_stream * zs ) {\n int rc ;\n if ( ( rc = zfx -> algo == 1 ? inflateInit2 ( zs , - 15 ) : inflateInit ( zs ) ) != Z_OK ) {\n log_fatal ( \"zlib problem: %s\\n\" , zs -> msg ? zs -> msg : rc == Z_MEM_ERROR ? \"out of core\" : rc == Z_VERSION_ERROR ? \"invalid lib version\" : \"unknown error\" ) ;\n }\n zfx -> inbufsize = 2048 ;\n zfx -> inbuf = xmalloc ( zfx -> inbufsize ) ;\n zs -> avail_in = 0 ;\n }"}
{"idx": 5252, "target": 0, "func": "static void clone_tables ( H264Context * dst , H264Context * src , int i ) {\n dst -> intra4x4_pred_mode = src -> intra4x4_pred_mode + i * 8 * 2 * src -> mb_stride ;\n dst -> non_zero_count = src -> non_zero_count ;\n dst -> slice_table = src -> slice_table ;\n dst -> cbp_table = src -> cbp_table ;\n dst -> mb2b_xy = src -> mb2b_xy ;\n dst -> mb2br_xy = src -> mb2br_xy ;\n dst -> chroma_pred_mode_table = src -> chroma_pred_mode_table ;\n dst -> mvd_table [ 0 ] = src -> mvd_table [ 0 ] + i * 8 * 2 * src -> mb_stride ;\n dst -> mvd_table [ 1 ] = src -> mvd_table [ 1 ] + i * 8 * 2 * src -> mb_stride ;\n dst -> direct_table = src -> direct_table ;\n dst -> list_counts = src -> list_counts ;\n dst -> DPB = src -> DPB ;\n dst -> cur_pic_ptr = src -> cur_pic_ptr ;\n dst -> cur_pic = src -> cur_pic ;\n dst -> bipred_scratchpad = NULL ;\n dst -> edge_emu_buffer = NULL ;\n dst -> me . scratchpad = NULL ;\n ff_h264_pred_init ( & dst -> hpc , src -> avctx -> codec_id , src -> sps . bit_depth_luma , src -> sps . chroma_format_idc ) ;\n }"}
{"idx": 5253, "target": 0, "func": "SPL_METHOD ( SplFileObject , setMaxLineLen ) {\n long max_len ;\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"l\" , & max_len ) == FAILURE ) {\n return ;\n }\n if ( max_len < 0 ) {\n zend_throw_exception_ex ( spl_ce_DomainException , 0 TSRMLS_CC , \"Maximum line length must be greater than or equal zero\" ) ;\n return ;\n }\n intern -> u . file . max_line_len = max_len ;\n }"}
{"idx": 5254, "target": 0, "func": "static const UAmbiguousConverter * ucnv_getAmbiguous ( const UConverter * cnv ) {\n UErrorCode errorCode ;\n const char * name ;\n int32_t i ;\n if ( cnv == NULL ) {\n return NULL ;\n }\n errorCode = U_ZERO_ERROR ;\n name = ucnv_getName ( cnv , & errorCode ) ;\n if ( U_FAILURE ( errorCode ) ) {\n return NULL ;\n }\n for ( i = 0 ;\n i < UPRV_LENGTHOF ( ambiguousConverters ) ;\n ++ i ) {\n if ( 0 == uprv_strcmp ( name , ambiguousConverters [ i ] . name ) ) {\n return ambiguousConverters + i ;\n }\n }\n return NULL ;\n }"}
{"idx": 5255, "target": 0, "func": "static void print_year ( UCalendar * c , UChar * days [ ] , UChar * months [ ] , UBool useLongNames , int32_t fdow , UErrorCode * status ) {\n int32_t width , pad , i , j ;\n int32_t lens [ DAY_COUNT ] ;\n UNumberFormat * nfmt ;\n UDateFormat * dfmt ;\n UChar s [ BUF_SIZE ] ;\n const UChar pat [ ] = {\n 0x0079 , 0x0079 , 0x0079 , 0x0079 }\n ;\n int32_t len = 4 ;\n UCalendar * left_cal , * right_cal ;\n int32_t left_day , right_day ;\n int32_t left_firstday , right_firstday , left_current , right_current ;\n int32_t left_month , right_month ;\n if ( U_FAILURE ( * status ) ) return ;\n left_cal = c ;\n dfmt = udat_open ( UDAT_PATTERN , UDAT_PATTERN , NULL , NULL , 0 , pat , len , status ) ;\n udat_format ( dfmt , ucal_getMillis ( left_cal , status ) , s , BUF_SIZE , 0 , status ) ;\n get_days ( dfmt , days , useLongNames , fdow , status ) ;\n get_months ( dfmt , months , useLongNames , status ) ;\n width = 6 ;\n for ( i = 0 ;\n i < DAY_COUNT ;\n ++ i ) {\n lens [ i ] = u_strlen ( days [ i ] ) ;\n width += lens [ i ] ;\n }\n pad = 2 * width + MARGIN_WIDTH - u_strlen ( s ) ;\n indent ( pad / 2 , stdout ) ;\n uprint ( s , stdout , status ) ;\n putc ( '\\n' , stdout ) ;\n putc ( '\\n' , stdout ) ;\n right_cal = ucal_open ( 0 , - 1 , uloc_getDefault ( ) , UCAL_TRADITIONAL , status ) ;\n ucal_setMillis ( right_cal , ucal_getMillis ( left_cal , status ) , status ) ;\n nfmt = unum_open ( UNUM_DECIMAL , NULL , 0 , NULL , NULL , status ) ;\n for ( i = 0 ;\n i < MONTH_COUNT - 1 ;\n i += 2 ) {\n pad = width - u_strlen ( months [ i ] ) ;\n indent ( pad / 2 , stdout ) ;\n uprint ( months [ i ] , stdout , status ) ;\n indent ( pad / 2 + MARGIN_WIDTH , stdout ) ;\n pad = width - u_strlen ( months [ i + 1 ] ) ;\n indent ( pad / 2 , stdout ) ;\n uprint ( months [ i + 1 ] , stdout , status ) ;\n putc ( '\\n' , stdout ) ;\n print_days ( days , stdout , status ) ;\n indent ( MARGIN_WIDTH , stdout ) ;\n print_days ( days , stdout , status ) ;\n putc ( '\\n' , stdout ) ;\n ucal_set ( left_cal , UCAL_MONTH , i ) ;\n ucal_set ( left_cal , UCAL_DATE , 1 ) ;\n ucal_set ( right_cal , UCAL_MONTH , i + 1 ) ;\n ucal_set ( right_cal , UCAL_DATE , 1 ) ;\n left_firstday = ucal_get ( left_cal , UCAL_DAY_OF_WEEK , status ) ;\n right_firstday = ucal_get ( right_cal , UCAL_DAY_OF_WEEK , status ) ;\n left_firstday += ( DAY_COUNT - fdow ) ;\n left_firstday %= DAY_COUNT ;\n right_firstday += ( DAY_COUNT - fdow ) ;\n right_firstday %= DAY_COUNT ;\n left_current = left_firstday ;\n right_current = right_firstday ;\n left_day = ucal_get ( left_cal , UCAL_DATE , status ) ;\n right_day = ucal_get ( right_cal , UCAL_DATE , status ) ;\n left_month = ucal_get ( left_cal , UCAL_MONTH , status ) ;\n right_month = ucal_get ( right_cal , UCAL_MONTH , status ) ;\n while ( left_month == i || right_month == i + 1 ) {\n if ( left_month != i && right_month == i + 1 ) {\n indent ( width + 1 , stdout ) ;\n left_current = 0 ;\n }\n while ( left_month == i ) {\n if ( left_day == 1 ) {\n for ( j = 0 ;\n j < left_current ;\n ++ j ) indent ( lens [ j ] + 1 , stdout ) ;\n }\n unum_format ( nfmt , left_day , s , BUF_SIZE , 0 , status ) ;\n pad = lens [ left_current ] - u_strlen ( s ) ;\n indent ( pad , stdout ) ;\n uprint ( s , stdout , status ) ;\n putc ( ' ' , stdout ) ;\n ++ left_current ;\n left_current %= DAY_COUNT ;\n ucal_add ( left_cal , UCAL_DATE , 1 , status ) ;\n left_day = ucal_get ( left_cal , UCAL_DATE , status ) ;\n left_month = ucal_get ( left_cal , UCAL_MONTH , status ) ;\n if ( left_current == 0 ) {\n break ;\n }\n }\n ;\n if ( left_current != 0 ) {\n for ( j = left_current ;\n j < DAY_COUNT ;\n ++ j ) indent ( lens [ j ] + 1 , stdout ) ;\n }\n indent ( MARGIN_WIDTH , stdout ) ;\n while ( right_month == i + 1 ) {\n if ( right_day == 1 ) {\n for ( j = 0 ;\n j < right_current ;\n ++ j ) indent ( lens [ j ] + 1 , stdout ) ;\n }\n unum_format ( nfmt , right_day , s , BUF_SIZE , 0 , status ) ;\n pad = lens [ right_current ] - u_strlen ( s ) ;\n indent ( pad , stdout ) ;\n uprint ( s , stdout , status ) ;\n putc ( ' ' , stdout ) ;\n ++ right_current ;\n right_current %= DAY_COUNT ;\n ucal_add ( right_cal , UCAL_DATE , 1 , status ) ;\n right_day = ucal_get ( right_cal , UCAL_DATE , status ) ;\n right_month = ucal_get ( right_cal , UCAL_MONTH , status ) ;\n if ( right_current == 0 ) {\n break ;\n }\n }\n ;\n putc ( '\\n' , stdout ) ;\n }\n putc ( '\\n' , stdout ) ;\n }\n free_months ( months ) ;\n free_days ( days ) ;\n udat_close ( dfmt ) ;\n unum_close ( nfmt ) ;\n ucal_close ( right_cal ) ;\n }"}
{"idx": 5256, "target": 0, "func": "bool send_add_edge ( connection_t * c , const edge_t * e ) {\n bool x ;\n char * address , * port ;\n sockaddr2str ( & e -> address , & address , & port ) ;\n x = send_request ( c , \"%d %x %s %s %s %s %x %d\" , ADD_EDGE , rand ( ) , e -> from -> name , e -> to -> name , address , port , e -> options , e -> weight ) ;\n free ( address ) ;\n free ( port ) ;\n return x ;\n }"}
{"idx": 5257, "target": 0, "func": "static int rv34_decode_block ( int16_t * dst , GetBitContext * gb , RV34VLC * rvlc , int fc , int sc , int q_dc , int q_ac1 , int q_ac2 ) {\n int code , pattern , has_ac = 1 ;\n code = get_vlc2 ( gb , rvlc -> first_pattern [ fc ] . table , 9 , 2 ) ;\n pattern = code & 0x7 ;\n code >>= 3 ;\n if ( modulo_three_table [ code ] & 0x3F ) {\n decode_subblock3 ( dst , code , gb , & rvlc -> coefficient , q_dc , q_ac1 , q_ac2 ) ;\n }\n else {\n decode_subblock1 ( dst , code , gb , & rvlc -> coefficient , q_dc ) ;\n if ( ! pattern ) return 0 ;\n has_ac = 0 ;\n }\n if ( pattern & 4 ) {\n code = get_vlc2 ( gb , rvlc -> second_pattern [ sc ] . table , 9 , 2 ) ;\n decode_subblock ( dst + 4 * 0 + 2 , code , 0 , gb , & rvlc -> coefficient , q_ac2 ) ;\n }\n if ( pattern & 2 ) {\n code = get_vlc2 ( gb , rvlc -> second_pattern [ sc ] . table , 9 , 2 ) ;\n decode_subblock ( dst + 4 * 2 + 0 , code , 1 , gb , & rvlc -> coefficient , q_ac2 ) ;\n }\n if ( pattern & 1 ) {\n code = get_vlc2 ( gb , rvlc -> third_pattern [ sc ] . table , 9 , 2 ) ;\n decode_subblock ( dst + 4 * 2 + 2 , code , 0 , gb , & rvlc -> coefficient , q_ac2 ) ;\n }\n return has_ac | pattern ;\n }"}
{"idx": 5258, "target": 0, "func": "static int dissect_h225_OCTET_STRING_SIZE_16 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 16 , 16 , FALSE , NULL ) ;\n return offset ;\n }"}
{"idx": 5259, "target": 0, "func": "static void _slurm_rpc_complete_job_allocation ( slurm_msg_t * msg ) {\n static int active_rpc_cnt = 0 ;\n int error_code = SLURM_SUCCESS ;\n DEF_TIMERS ;\n complete_job_allocation_msg_t * comp_msg = ( complete_job_allocation_msg_t * ) msg -> data ;\n slurmctld_lock_t job_write_lock = {\n NO_LOCK , WRITE_LOCK , WRITE_LOCK , NO_LOCK , READ_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n struct job_record * job_ptr ;\n char jbuf [ JBUFSIZ ] ;\n START_TIMER ;\n debug2 ( \"Processing RPC: REQUEST_COMPLETE_JOB_ALLOCATION from \" \"uid=%u, JobId=%u rc=%d\" , uid , comp_msg -> job_id , comp_msg -> job_rc ) ;\n _throttle_start ( & active_rpc_cnt ) ;\n lock_slurmctld ( job_write_lock ) ;\n job_ptr = find_job_record ( comp_msg -> job_id ) ;\n trace_job ( job_ptr , __func__ , \"enter\" ) ;\n error_code = job_complete ( comp_msg -> job_id , uid , false , false , comp_msg -> job_rc ) ;\n if ( error_code ) {\n info ( \"%s: %s error %s \" , __func__ , jobid2str ( job_ptr , jbuf , sizeof ( jbuf ) ) , slurm_strerror ( error_code ) ) ;\n }\n else {\n debug2 ( \"%s: %s %s\" , __func__ , jobid2str ( job_ptr , jbuf , sizeof ( jbuf ) ) , TIME_STR ) ;\n }\n unlock_slurmctld ( job_write_lock ) ;\n _throttle_fini ( & active_rpc_cnt ) ;\n END_TIMER2 ( \"_slurm_rpc_complete_job_allocation\" ) ;\n if ( ( powercap_get_cluster_current_cap ( ) != 0 ) && ( which_power_layout ( ) == 2 ) ) {\n layouts_entity_pull_kv ( \"power\" , \"Cluster\" , \"CurrentSumPower\" ) ;\n }\n if ( error_code ) {\n slurm_send_rc_msg ( msg , error_code ) ;\n }\n else {\n slurmctld_diag_stats . jobs_completed ++ ;\n slurm_send_rc_msg ( msg , SLURM_SUCCESS ) ;\n ( void ) schedule_job_save ( ) ;\n ( void ) schedule_node_save ( ) ;\n }\n trace_job ( job_ptr , __func__ , \"return\" ) ;\n }"}
{"idx": 5260, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( BookmarkBubbleSignInDelegateTest , BrowserRemoved ) {\n Browser * extra_browser = CreateBrowser ( profile ( ) ) ;\n ReplaceBlank ( extra_browser ) ;\n int starting_tab_count = extra_browser -> tab_strip_model ( ) -> count ( ) ;\n scoped_ptr < BookmarkBubbleDelegate > delegate ;\n delegate . reset ( new BookmarkBubbleSignInDelegate ( browser ( ) ) ) ;\n BrowserList : : SetLastActive ( extra_browser ) ;\n browser ( ) -> tab_strip_model ( ) -> CloseAllTabs ( ) ;\n content : : RunAllPendingInMessageLoop ( ) ;\n delegate -> OnSignInLinkClicked ( ) ;\n if ( kHasProfileChooser ) {\n EXPECT_TRUE ( ProfileChooserView : : IsShowing ( ) ) ;\n }\n else {\n int tab_count = extra_browser -> tab_strip_model ( ) -> count ( ) ;\n EXPECT_EQ ( starting_tab_count + 1 , tab_count ) ;\n }\n }"}
{"idx": 5261, "target": 0, "func": "static void _slurm_rpc_dump_node_single ( slurm_msg_t * msg ) {\n DEF_TIMERS ;\n char * dump ;\n int dump_size ;\n slurm_msg_t response_msg ;\n node_info_single_msg_t * node_req_msg = ( node_info_single_msg_t * ) msg -> data ;\n slurmctld_lock_t node_write_lock = {\n READ_LOCK , NO_LOCK , READ_LOCK , READ_LOCK , NO_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n START_TIMER ;\n debug3 ( \"Processing RPC: REQUEST_NODE_INFO_SINGLE from uid=%d\" , uid ) ;\n if ( ( slurmctld_conf . private_data & PRIVATE_DATA_NODES ) && ( ! validate_operator ( uid ) ) ) {\n error ( \"Security violation, REQUEST_NODE_INFO_SINGLE RPC from \" \"uid=%d\" , uid ) ;\n slurm_send_rc_msg ( msg , ESLURM_ACCESS_DENIED ) ;\n return ;\n }\n lock_slurmctld ( node_write_lock ) ;\n # if 0 select_g_select_nodeinfo_set_all ( ) ;\n # endif pack_one_node ( & dump , & dump_size , node_req_msg -> show_flags , uid , node_req_msg -> node_name , msg -> protocol_version ) ;\n unlock_slurmctld ( node_write_lock ) ;\n END_TIMER2 ( \"_slurm_rpc_dump_node_single\" ) ;\n # if 0 info ( \"_slurm_rpc_dump_node_single, name=%s size=%d %s\" , node_req_msg -> node_name , dump_size , TIME_STR ) ;\n # endif slurm_msg_t_init ( & response_msg ) ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . address = msg -> address ;\n response_msg . conn = msg -> conn ;\n response_msg . msg_type = RESPONSE_NODE_INFO ;\n response_msg . data = dump ;\n response_msg . data_size = dump_size ;\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n xfree ( dump ) ;\n }"}
{"idx": 5262, "target": 0, "func": "void nautilus_file_operations_compress ( GList * files , GFile * output , AutoarFormat format , AutoarFilter filter , GtkWindow * parent_window , NautilusCreateCallback done_callback , gpointer done_callback_data ) {\n g_autoptr ( GTask ) task = NULL ;\n CompressJob * compress_job ;\n compress_job = op_job_new ( CompressJob , parent_window ) ;\n compress_job -> source_files = g_list_copy_deep ( files , ( GCopyFunc ) g_object_ref , NULL ) ;\n compress_job -> output_file = g_object_ref ( output ) ;\n compress_job -> format = format ;\n compress_job -> filter = filter ;\n compress_job -> done_callback = done_callback ;\n compress_job -> done_callback_data = done_callback_data ;\n inhibit_power_manager ( ( CommonJob * ) compress_job , _ ( \"Compressing Files\" ) ) ;\n if ( ! nautilus_file_undo_manager_is_operating ( ) ) {\n compress_job -> common . undo_info = nautilus_file_undo_info_compress_new ( files , output , format , filter ) ;\n }\n task = g_task_new ( NULL , compress_job -> common . cancellable , compress_task_done , compress_job ) ;\n g_task_set_task_data ( task , compress_job , NULL ) ;\n g_task_run_in_thread ( task , compress_task_thread_func ) ;\n }"}
{"idx": 5263, "target": 0, "func": "Selectivity boolvarsel ( PlannerInfo * root , Node * arg , int varRelid ) {\n VariableStatData vardata ;\n double selec ;\n examine_variable ( root , arg , varRelid , & vardata ) ;\n if ( HeapTupleIsValid ( vardata . statsTuple ) ) {\n selec = var_eq_const ( & vardata , BooleanEqualOperator , BoolGetDatum ( true ) , false , true ) ;\n }\n else if ( is_funcclause ( arg ) ) {\n selec = 0.3333333 ;\n }\n else {\n selec = 0.5 ;\n }\n ReleaseVariableStats ( vardata ) ;\n return selec ;\n }"}
{"idx": 5264, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , MAYBE_AcceptProtocolHandlerHandlesProtocol ) {\n ASSERT_FALSE ( registry ( ) -> IsHandledProtocol ( \"test\" ) ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( test_protocol_handler ( ) ) ;\n ASSERT_TRUE ( registry ( ) -> IsHandledProtocol ( \"test\" ) ) ;\n }"}
{"idx": 5265, "target": 0, "func": "static gboolean k12_seek_read ( wtap * wth , gint64 seek_off , struct wtap_pkthdr * phdr , Buffer * buf , int * err , gchar * * err_info ) {\n k12_t * k12 = ( k12_t * ) wth -> priv ;\n guint8 * buffer ;\n gint len ;\n gboolean status ;\n K12_DBG ( 5 , ( \"k12_seek_read: ENTER\" ) ) ;\n if ( file_seek ( wth -> random_fh , seek_off , SEEK_SET , err ) == - 1 ) {\n K12_DBG ( 5 , ( \"k12_seek_read: SEEK ERROR\" ) ) ;\n return FALSE ;\n }\n len = get_record ( k12 , wth -> random_fh , seek_off , TRUE , err , err_info ) ;\n if ( len < 0 ) {\n K12_DBG ( 5 , ( \"k12_seek_read: READ ERROR\" ) ) ;\n return FALSE ;\n }\n else if ( len < K12_RECORD_SRC_ID + 4 ) {\n K12_DBG ( 5 , ( \"k12_seek_read: SHORT READ\" ) ) ;\n * err = WTAP_ERR_SHORT_READ ;\n return FALSE ;\n }\n buffer = k12 -> rand_read_buff ;\n status = process_packet_data ( phdr , buf , buffer , ( guint ) len , k12 , err , err_info ) ;\n K12_DBG ( 5 , ( \"k12_seek_read: DONE OK\" ) ) ;\n return status ;\n }"}
{"idx": 5266, "target": 0, "func": "static void finalize_common ( CommonJob * common ) {\n nautilus_progress_info_finish ( common -> progress ) ;\n if ( common -> inhibit_cookie != 0 ) {\n gtk_application_uninhibit ( GTK_APPLICATION ( g_application_get_default ( ) ) , common -> inhibit_cookie ) ;\n }\n common -> inhibit_cookie = 0 ;\n g_timer_destroy ( common -> time ) ;\n if ( common -> parent_window ) {\n g_object_remove_weak_pointer ( G_OBJECT ( common -> parent_window ) , ( gpointer * ) & common -> parent_window ) ;\n }\n if ( common -> skip_files ) {\n g_hash_table_destroy ( common -> skip_files ) ;\n }\n if ( common -> skip_readdir_error ) {\n g_hash_table_destroy ( common -> skip_readdir_error ) ;\n }\n if ( common -> undo_info != NULL ) {\n nautilus_file_undo_manager_set_action ( common -> undo_info ) ;\n g_object_unref ( common -> undo_info ) ;\n }\n g_object_unref ( common -> progress ) ;\n g_object_unref ( common -> cancellable ) ;\n g_free ( common ) ;\n }"}
{"idx": 5267, "target": 0, "func": "void vp9_setup_src_planes ( MACROBLOCK * x , const YV12_BUFFER_CONFIG * src , int mi_row , int mi_col ) {\n uint8_t * const buffers [ 3 ] = {\n src -> y_buffer , src -> u_buffer , src -> v_buffer }\n ;\n const int strides [ 3 ] = {\n src -> y_stride , src -> uv_stride , src -> uv_stride }\n ;\n int i ;\n x -> e_mbd . cur_buf = src ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n i ++ ) setup_pred_plane ( & x -> plane [ i ] . src , buffers [ i ] , strides [ i ] , mi_row , mi_col , NULL , x -> e_mbd . plane [ i ] . subsampling_x , x -> e_mbd . plane [ i ] . subsampling_y ) ;\n }"}
{"idx": 5268, "target": 0, "func": "static void ctcp_msg_dcc_resume ( IRC_SERVER_REC * server , const char * data , const char * nick , const char * addr , const char * target , DCC_REC * chat ) {\n FILE_DCC_REC * dcc ;\n char * str ;\n uoff_t size ;\n int pasv_id = - 1 ;\n if ( ! dcc_ctcp_resume_parse ( DCC_SEND_TYPE , data , nick , & dcc , & size , & pasv_id ) ) {\n signal_emit ( \"dcc error ctcp\" , 5 , \"RESUME\" , data , nick , addr , target ) ;\n }\n else if ( dcc != NULL && dcc_resume_file_check ( dcc , server , size ) ) {\n if ( ! dcc_is_passive ( dcc ) ) {\n str = g_strdup_printf ( DCC_SEND ( dcc ) -> file_quoted ? \"DCC ACCEPT \\\"%s\\\" %d %\" PRIuUOFF_T : \"DCC ACCEPT %s %d %\" PRIuUOFF_T , dcc -> arg , dcc -> port , dcc -> transfd ) ;\n }\n else {\n str = g_strdup_printf ( DCC_SEND ( dcc ) -> file_quoted ? \"DCC ACCEPT \\\"%s\\\" 0 %\" PRIuUOFF_T \" %d\" : \"DCC ACCEPT %s 0 %\" PRIuUOFF_T \" %d\" , dcc -> arg , dcc -> transfd , dcc -> pasv_id ) ;\n }\n dcc_ctcp_message ( dcc -> server , dcc -> nick , dcc -> chat , FALSE , str ) ;\n g_free ( str ) ;\n }\n }"}
{"idx": 5269, "target": 1, "func": "static void _UTF16LEToUnicodeWithOffsets ( UConverterToUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n UConverter * cnv ;\n const uint8_t * source ;\n UChar * target ;\n int32_t * offsets ;\n uint32_t targetCapacity , length , count , sourceIndex ;\n UChar c , trail ;\n if ( pArgs -> converter -> mode < 8 ) {\n _UTF16ToUnicodeWithOffsets ( pArgs , pErrorCode ) ;\n return ;\n }\n cnv = pArgs -> converter ;\n source = ( const uint8_t * ) pArgs -> source ;\n length = ( int32_t ) ( ( const uint8_t * ) pArgs -> sourceLimit - source ) ;\n if ( length <= 0 && cnv -> toUnicodeStatus == 0 ) {\n return ;\n }\n target = pArgs -> target ;\n if ( target >= pArgs -> targetLimit ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n return ;\n }\n targetCapacity = ( uint32_t ) ( pArgs -> targetLimit - pArgs -> target ) ;\n offsets = pArgs -> offsets ;\n sourceIndex = 0 ;\n c = 0 ;\n if ( cnv -> toUnicodeStatus != 0 ) {\n cnv -> toUBytes [ 0 ] = ( uint8_t ) cnv -> toUnicodeStatus ;\n cnv -> toULength = 1 ;\n cnv -> toUnicodeStatus = 0 ;\n }\n if ( ( count = cnv -> toULength ) != 0 ) {\n uint8_t * p = cnv -> toUBytes ;\n do {\n p [ count ++ ] = * source ++ ;\n ++ sourceIndex ;\n -- length ;\n if ( count == 2 ) {\n c = ( ( UChar ) p [ 1 ] << 8 ) | p [ 0 ] ;\n if ( U16_IS_SINGLE ( c ) ) {\n * target ++ = c ;\n if ( offsets != NULL ) {\n * offsets ++ = - 1 ;\n }\n -- targetCapacity ;\n count = 0 ;\n c = 0 ;\n break ;\n }\n else if ( U16_IS_SURROGATE_LEAD ( c ) ) {\n c = 0 ;\n }\n else {\n break ;\n }\n }\n else if ( count == 4 ) {\n c = ( ( UChar ) p [ 1 ] << 8 ) | p [ 0 ] ;\n trail = ( ( UChar ) p [ 3 ] << 8 ) | p [ 2 ] ;\n if ( U16_IS_TRAIL ( trail ) ) {\n * target ++ = c ;\n if ( targetCapacity >= 2 ) {\n * target ++ = trail ;\n if ( offsets != NULL ) {\n * offsets ++ = - 1 ;\n * offsets ++ = - 1 ;\n }\n targetCapacity -= 2 ;\n }\n else {\n targetCapacity = 0 ;\n cnv -> UCharErrorBuffer [ 0 ] = trail ;\n cnv -> UCharErrorBufferLength = 1 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n count = 0 ;\n c = 0 ;\n break ;\n }\n else {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n if ( ( ( const uint8_t * ) pArgs -> source - source ) >= 2 ) {\n source -= 2 ;\n }\n else {\n cnv -> toUnicodeStatus = 0x100 | p [ 2 ] ;\n -- source ;\n }\n cnv -> toULength = 2 ;\n pArgs -> source = ( const char * ) source ;\n pArgs -> target = target ;\n pArgs -> offsets = offsets ;\n return ;\n }\n }\n }\n while ( length > 0 ) ;\n cnv -> toULength = ( int8_t ) count ;\n }\n count = 2 * targetCapacity ;\n if ( count > length ) {\n count = length & ~ 1 ;\n }\n if ( c == 0 && count > 0 ) {\n length -= count ;\n count >>= 1 ;\n targetCapacity -= count ;\n if ( offsets == NULL ) {\n do {\n c = ( ( UChar ) source [ 1 ] << 8 ) | source [ 0 ] ;\n source += 2 ;\n if ( U16_IS_SINGLE ( c ) ) {\n * target ++ = c ;\n }\n else if ( U16_IS_SURROGATE_LEAD ( c ) && count >= 2 && U16_IS_TRAIL ( trail = ( ( UChar ) source [ 1 ] << 8 ) | source [ 0 ] ) ) {\n source += 2 ;\n -- count ;\n * target ++ = c ;\n * target ++ = trail ;\n }\n else {\n break ;\n }\n }\n while ( -- count > 0 ) ;\n }\n else {\n do {\n c = ( ( UChar ) source [ 1 ] << 8 ) | source [ 0 ] ;\n source += 2 ;\n if ( U16_IS_SINGLE ( c ) ) {\n * target ++ = c ;\n * offsets ++ = sourceIndex ;\n sourceIndex += 2 ;\n }\n else if ( U16_IS_SURROGATE_LEAD ( c ) && count >= 2 && U16_IS_TRAIL ( trail = ( ( UChar ) source [ 1 ] << 8 ) | source [ 0 ] ) ) {\n source += 2 ;\n -- count ;\n * target ++ = c ;\n * target ++ = trail ;\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ;\n sourceIndex += 4 ;\n }\n else {\n break ;\n }\n }\n while ( -- count > 0 ) ;\n }\n if ( count == 0 ) {\n c = 0 ;\n }\n else {\n length += 2 * ( count - 1 ) ;\n targetCapacity += count ;\n }\n }\n if ( c != 0 ) {\n cnv -> toUBytes [ 0 ] = ( uint8_t ) c ;\n cnv -> toUBytes [ 1 ] = ( uint8_t ) ( c >> 8 ) ;\n cnv -> toULength = 2 ;\n if ( U16_IS_SURROGATE_LEAD ( c ) ) {\n if ( length >= 2 ) {\n if ( U16_IS_TRAIL ( trail = ( ( UChar ) source [ 1 ] << 8 ) | source [ 0 ] ) ) {\n source += 2 ;\n length -= 2 ;\n * target ++ = c ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n cnv -> UCharErrorBuffer [ 0 ] = trail ;\n cnv -> UCharErrorBufferLength = 1 ;\n cnv -> toULength = 0 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n else {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n else {\n }\n }\n else {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n if ( U_SUCCESS ( * pErrorCode ) ) {\n if ( length > 0 ) {\n if ( targetCapacity == 0 ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n else {\n cnv -> toUBytes [ cnv -> toULength ++ ] = * source ++ ;\n }\n }\n }\n pArgs -> source = ( const char * ) source ;\n pArgs -> target = target ;\n pArgs -> offsets = offsets ;\n }"}
{"idx": 5270, "target": 0, "func": "int main ( int argc , char * argv [ ] ) {\n const char * globfile [ ] = {\n \"one\" , \"two\" , \"three\" , NULL }\n ;\n char tmpdir [ 32 ] ;\n struct passwd * pw ;\n const char * cwd ;\n int test ;\n int fail = 0 ;\n int i ;\n struct test_case_struct ts ;\n if ( argc > 1 ) {\n command_line_test ( argv [ 1 ] ) ;\n return 0 ;\n }\n cwd = getcwd ( NULL , 0 ) ;\n tmpnam ( tmpdir ) ;\n if ( mkdir ( tmpdir , S_IRWXU ) || chdir ( tmpdir ) ) return - 1 ;\n else {\n int fd ;\n for ( i = 0 ;\n globfile [ i ] ;\n ++ i ) if ( ( fd = creat ( globfile [ i ] , S_IRUSR | S_IWUSR ) ) == - 1 || close ( fd ) ) return - 1 ;\n }\n if ( __app_register_atfork ( register_fork , NULL , NULL ) != 0 ) {\n printf ( \"Failed to register fork handler.\\n\" ) ;\n return - 1 ;\n }\n for ( test = 0 ;\n test_case [ test ] . retval != - 1 ;\n test ++ ) if ( testit ( & test_case [ test ] ) ) ++ fail ;\n pw = getpwnam ( \"root\" ) ;\n if ( pw != NULL ) {\n ts . retval = 0 ;\n ts . env = NULL ;\n ts . words = \"~root \" ;\n ts . flags = 0 ;\n ts . wordc = 1 ;\n ts . wordv [ 0 ] = pw -> pw_dir ;\n ts . ifs = IFS ;\n if ( testit ( & ts ) ) ++ fail ;\n ts . retval = 0 ;\n ts . env = pw -> pw_dir ;\n ts . words = \"${\nvar#~root}\nx\" ;\n ts . flags = 0 ;\n ts . wordc = 1 ;\n ts . wordv [ 0 ] = \"x\" ;\n ts . ifs = IFS ;\n if ( testit ( & ts ) ) ++ fail ;\n }\n setenv ( \"HOME\" , \"/dummy/home\" , 1 ) ;\n ts . retval = 0 ;\n ts . env = NULL ;\n ts . words = \"~ ~/foo\" ;\n ts . flags = 0 ;\n ts . wordc = 2 ;\n ts . wordv [ 0 ] = \"/dummy/home\" ;\n ts . wordv [ 1 ] = \"/dummy/home/foo\" ;\n ts . ifs = IFS ;\n if ( testit ( & ts ) ) ++ fail ;\n pw = getpwuid ( getuid ( ) ) ;\n if ( pw != NULL ) {\n unsetenv ( \"HOME\" ) ;\n ts . retval = 0 ;\n ts . env = NULL ;\n ts . words = \"~\" ;\n ts . flags = 0 ;\n ts . wordc = 1 ;\n ts . wordv [ 0 ] = pw -> pw_dir ;\n ts . ifs = IFS ;\n if ( testit ( & ts ) ) ++ fail ;\n }\n puts ( \"tests completed, now cleaning up\" ) ;\n for ( i = 0 ;\n globfile [ i ] ;\n ++ i ) remove ( globfile [ i ] ) ;\n if ( cwd == NULL ) cwd = \"..\" ;\n chdir ( cwd ) ;\n rmdir ( tmpdir ) ;\n printf ( \"tests failed: %d\\n\" , fail ) ;\n return fail != 0 ;\n }"}
{"idx": 5271, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( HttpsEngagementPageLoadMetricsBrowserTest , BackgroundThenForeground_Http ) {\n StartHttpServer ( ) ;\n base : : TimeDelta upper_bound = NavigateInBackgroundAndCloseInForegroundWithTiming ( http_test_server_ -> GetURL ( \"/simple.html\" ) ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpEngagementHistogram , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementHistogram , 0 ) ;\n int32_t bucket_min = histogram_tester_ . GetAllSamples ( internal : : kHttpEngagementHistogram ) [ 0 ] . min ;\n EXPECT_GE ( upper_bound . InMilliseconds ( ) , bucket_min ) ;\n EXPECT_LT ( 0 , bucket_min ) ;\n }"}
{"idx": 5272, "target": 0, "func": "int mime_field_length_get ( MIMEField * field ) {\n if ( field -> m_n_v_raw_printable ) {\n return ( field -> m_len_name + field -> m_len_value + field -> m_n_v_raw_printable_pad ) ;\n }\n else {\n return ( field -> m_len_name + field -> m_len_value + 4 ) ;\n }\n }"}
{"idx": 5273, "target": 0, "func": "fz_colorspace * fz_new_indexed_colorspace ( fz_context * ctx , fz_colorspace * base , int high , unsigned char * lookup ) {\n fz_colorspace * cs = NULL ;\n struct indexed * idx ;\n idx = fz_malloc_struct ( ctx , struct indexed ) ;\n idx -> lookup = lookup ;\n idx -> base = fz_keep_colorspace ( ctx , base ) ;\n idx -> high = high ;\n fz_try ( ctx ) cs = fz_new_colorspace ( ctx , \"Indexed\" , FZ_COLORSPACE_INDEXED , 0 , 1 , fz_colorspace_is_icc ( ctx , fz_device_rgb ( ctx ) ) ? indexed_to_alt : indexed_to_rgb , NULL , base_indexed , clamp_indexed , free_indexed , idx , sizeof ( * idx ) + ( base -> n * ( idx -> high + 1 ) ) + base -> size ) ;\n fz_catch ( ctx ) {\n fz_free ( ctx , idx ) ;\n fz_rethrow ( ctx ) ;\n }\n return cs ;\n }"}
{"idx": 5274, "target": 0, "func": "static inline int udp6_csum_init ( struct sk_buff * skb , struct udphdr * uh , int proto ) {\n int err ;\n UDP_SKB_CB ( skb ) -> partial_cov = 0 ;\n UDP_SKB_CB ( skb ) -> cscov = skb -> len ;\n if ( proto == IPPROTO_UDPLITE ) {\n err = udplite_checksum_init ( skb , uh ) ;\n if ( err ) return err ;\n }\n if ( uh -> check == 0 ) {\n LIMIT_NETDEBUG ( KERN_INFO \"IPv6: udp checksum is 0\\n\" ) ;\n return 1 ;\n }\n if ( skb -> ip_summed == CHECKSUM_COMPLETE && ! csum_ipv6_magic ( & ipv6_hdr ( skb ) -> saddr , & ipv6_hdr ( skb ) -> daddr , skb -> len , proto , skb -> csum ) ) skb -> ip_summed = CHECKSUM_UNNECESSARY ;\n if ( ! skb_csum_unnecessary ( skb ) ) skb -> csum = ~ csum_unfold ( csum_ipv6_magic ( & ipv6_hdr ( skb ) -> saddr , & ipv6_hdr ( skb ) -> daddr , skb -> len , proto , 0 ) ) ;\n return 0 ;\n }"}
{"idx": 5275, "target": 0, "func": "struct crypto_instance * crypto_init ( const unsigned char * private_key , unsigned int private_key_len , const char * crypto_cipher_type , const char * crypto_hash_type , void ( * log_printf_func ) ( int level , int subsys , const char * function , const char * file , int line , const char * format , ... ) __attribute__ ( ( format ( printf , 6 , 7 ) ) ) , int log_level_security , int log_level_notice , int log_level_error , int log_subsys_id ) {\n struct crypto_instance * instance ;\n instance = malloc ( sizeof ( * instance ) ) ;\n if ( instance == NULL ) {\n return ( NULL ) ;\n }\n memset ( instance , 0 , sizeof ( struct crypto_instance ) ) ;\n memcpy ( instance -> private_key , private_key , private_key_len ) ;\n instance -> private_key_len = private_key_len ;\n instance -> crypto_cipher_type = string_to_crypto_cipher_type ( crypto_cipher_type ) ;\n instance -> crypto_hash_type = string_to_crypto_hash_type ( crypto_hash_type ) ;\n instance -> crypto_header_size = crypto_sec_header_size ( crypto_cipher_type , crypto_hash_type ) ;\n instance -> log_printf_func = log_printf_func ;\n instance -> log_level_security = log_level_security ;\n instance -> log_level_notice = log_level_notice ;\n instance -> log_level_error = log_level_error ;\n instance -> log_subsys_id = log_subsys_id ;\n if ( init_nss ( instance , crypto_cipher_type , crypto_hash_type ) < 0 ) {\n free ( instance ) ;\n return ( NULL ) ;\n }\n return ( instance ) ;\n }"}
{"idx": 5276, "target": 0, "func": "static void i_status ( gs_memory_t * mem , gs_memory_status_t * pstat ) {\n gs_ref_memory_t * const imem = ( gs_ref_memory_t * ) mem ;\n ulong unused = imem -> lost . refs + imem -> lost . strings ;\n ulong inner = 0 ;\n clump_splay_walker sw ;\n clump_t * cp ;\n alloc_close_clump ( imem ) ;\n for ( cp = clump_splay_walk_init ( & sw , imem ) ;\n cp != NULL ;\n cp = clump_splay_walk_fwd ( & sw ) ) {\n unused += cp -> ctop - cp -> cbot ;\n if ( cp -> outer ) inner += cp -> cend - ( byte * ) cp -> chead ;\n }\n unused += compute_free_objects ( imem ) ;\n pstat -> used = imem -> allocated + inner - unused + imem -> previous_status . used ;\n pstat -> allocated = imem -> allocated + imem -> previous_status . allocated ;\n pstat -> max_used = 0 ;\n pstat -> is_thread_safe = false ;\n }"}
{"idx": 5277, "target": 1, "func": "static void render_slice ( Vp3DecodeContext * s , int slice ) {\n int x , y , i , j , fragment ;\n int16_t * block = s -> block ;\n int motion_x = 0xdeadbeef , motion_y = 0xdeadbeef ;\n int motion_halfpel_index ;\n uint8_t * motion_source ;\n int plane , first_pixel ;\n if ( slice >= s -> c_superblock_height ) return ;\n for ( plane = 0 ;\n plane < 3 ;\n plane ++ ) {\n uint8_t * output_plane = s -> current_frame . data [ plane ] + s -> data_offset [ plane ] ;\n uint8_t * last_plane = s -> last_frame . data [ plane ] + s -> data_offset [ plane ] ;\n uint8_t * golden_plane = s -> golden_frame . data [ plane ] + s -> data_offset [ plane ] ;\n int stride = s -> current_frame . linesize [ plane ] ;\n int plane_width = s -> width >> ( plane && s -> chroma_x_shift ) ;\n int plane_height = s -> height >> ( plane && s -> chroma_y_shift ) ;\n int8_t ( * motion_val ) [ 2 ] = s -> motion_val [ ! ! plane ] ;\n int sb_x , sb_y = slice << ( ! plane && s -> chroma_y_shift ) ;\n int slice_height = sb_y + 1 + ( ! plane && s -> chroma_y_shift ) ;\n int slice_width = plane ? s -> c_superblock_width : s -> y_superblock_width ;\n int fragment_width = s -> fragment_width [ ! ! plane ] ;\n int fragment_height = s -> fragment_height [ ! ! plane ] ;\n int fragment_start = s -> fragment_start [ plane ] ;\n int do_await = ! plane && HAVE_THREADS && ( s -> avctx -> active_thread_type & FF_THREAD_FRAME ) ;\n if ( ! s -> flipped_image ) stride = - stride ;\n if ( CONFIG_GRAY && plane && ( s -> avctx -> flags & CODEC_FLAG_GRAY ) ) continue ;\n for ( ;\n sb_y < slice_height ;\n sb_y ++ ) {\n for ( sb_x = 0 ;\n sb_x < slice_width ;\n sb_x ++ ) {\n for ( j = 0 ;\n j < 16 ;\n j ++ ) {\n x = 4 * sb_x + hilbert_offset [ j ] [ 0 ] ;\n y = 4 * sb_y + hilbert_offset [ j ] [ 1 ] ;\n fragment = y * fragment_width + x ;\n i = fragment_start + fragment ;\n if ( x >= fragment_width || y >= fragment_height ) continue ;\n first_pixel = 8 * y * stride + 8 * x ;\n if ( do_await && s -> all_fragments [ i ] . coding_method != MODE_INTRA ) await_reference_row ( s , & s -> all_fragments [ i ] , motion_val [ fragment ] [ 1 ] , ( 16 * y ) >> s -> chroma_y_shift ) ;\n if ( s -> all_fragments [ i ] . coding_method != MODE_COPY ) {\n if ( ( s -> all_fragments [ i ] . coding_method == MODE_USING_GOLDEN ) || ( s -> all_fragments [ i ] . coding_method == MODE_GOLDEN_MV ) ) motion_source = golden_plane ;\n else motion_source = last_plane ;\n motion_source += first_pixel ;\n motion_halfpel_index = 0 ;\n if ( ( s -> all_fragments [ i ] . coding_method > MODE_INTRA ) && ( s -> all_fragments [ i ] . coding_method != MODE_USING_GOLDEN ) ) {\n int src_x , src_y ;\n motion_x = motion_val [ fragment ] [ 0 ] ;\n motion_y = motion_val [ fragment ] [ 1 ] ;\n src_x = ( motion_x >> 1 ) + 8 * x ;\n src_y = ( motion_y >> 1 ) + 8 * y ;\n motion_halfpel_index = motion_x & 0x01 ;\n motion_source += ( motion_x >> 1 ) ;\n motion_halfpel_index |= ( motion_y & 0x01 ) << 1 ;\n motion_source += ( ( motion_y >> 1 ) * stride ) ;\n if ( src_x < 0 || src_y < 0 || src_x + 9 >= plane_width || src_y + 9 >= plane_height ) {\n uint8_t * temp = s -> edge_emu_buffer ;\n if ( stride < 0 ) temp -= 8 * stride ;\n s -> vdsp . emulated_edge_mc ( temp , motion_source , stride , 9 , 9 , src_x , src_y , plane_width , plane_height ) ;\n motion_source = temp ;\n }\n }\n if ( s -> all_fragments [ i ] . coding_method != MODE_INTRA ) {\n if ( motion_halfpel_index != 3 ) {\n s -> dsp . put_no_rnd_pixels_tab [ 1 ] [ motion_halfpel_index ] ( output_plane + first_pixel , motion_source , stride , 8 ) ;\n }\n else {\n int d = ( motion_x ^ motion_y ) >> 31 ;\n s -> vp3dsp . put_no_rnd_pixels_l2 ( output_plane + first_pixel , motion_source - d , motion_source + stride + 1 + d , stride , 8 ) ;\n }\n }\n if ( s -> all_fragments [ i ] . coding_method == MODE_INTRA ) {\n int index ;\n index = vp3_dequant ( s , s -> all_fragments + i , plane , 0 , block ) ;\n if ( index > 63 ) continue ;\n s -> vp3dsp . idct_put ( output_plane + first_pixel , stride , block ) ;\n }\n else {\n int index = vp3_dequant ( s , s -> all_fragments + i , plane , 1 , block ) ;\n if ( index > 63 ) continue ;\n if ( index > 0 ) {\n s -> vp3dsp . idct_add ( output_plane + first_pixel , stride , block ) ;\n }\n else {\n s -> vp3dsp . idct_dc_add ( output_plane + first_pixel , stride , block ) ;\n }\n }\n }\n else {\n s -> dsp . put_pixels_tab [ 1 ] [ 0 ] ( output_plane + first_pixel , last_plane + first_pixel , stride , 8 ) ;\n }\n }\n }\n if ( ! s -> skip_loop_filter ) apply_loop_filter ( s , plane , 4 * sb_y - ! ! sb_y , FFMIN ( 4 * sb_y + 3 , fragment_height - 1 ) ) ;\n }\n }\n vp3_draw_horiz_band ( s , FFMIN ( ( 32 << s -> chroma_y_shift ) * ( slice + 1 ) - 16 , s -> height - 16 ) ) ;\n }"}
{"idx": 5278, "target": 0, "func": "static int qcow2_read_extensions ( BlockDriverState * bs , uint64_t start_offset , uint64_t end_offset , void * * p_feature_table , Error * * errp ) {\n BDRVQcowState * s = bs -> opaque ;\n QCowExtension ext ;\n uint64_t offset ;\n int ret ;\n # ifdef DEBUG_EXT printf ( \"qcow2_read_extensions: start=%ld end=%ld\\n\" , start_offset , end_offset ) ;\n # endif offset = start_offset ;\n while ( offset < end_offset ) {\n # ifdef DEBUG_EXT if ( offset > s -> cluster_size ) printf ( \"qcow2_read_extension: suspicious offset %lu\\n\" , offset ) ;\n printf ( \"attempting to read extended header in offset %lu\\n\" , offset ) ;\n # endif ret = bdrv_pread ( bs -> file , offset , & ext , sizeof ( ext ) ) ;\n if ( ret < 0 ) {\n error_setg_errno ( errp , - ret , \"qcow2_read_extension: ERROR: \" \"pread fail from offset %\" PRIu64 , offset ) ;\n return 1 ;\n }\n be32_to_cpus ( & ext . magic ) ;\n be32_to_cpus ( & ext . len ) ;\n offset += sizeof ( ext ) ;\n # ifdef DEBUG_EXT printf ( \"ext.magic = 0x%x\\n\" , ext . magic ) ;\n # endif if ( ext . len > end_offset - offset ) {\n error_setg ( errp , \"Header extension too large\" ) ;\n return - EINVAL ;\n }\n switch ( ext . magic ) {\n case QCOW2_EXT_MAGIC_END : return 0 ;\n case QCOW2_EXT_MAGIC_BACKING_FORMAT : if ( ext . len >= sizeof ( bs -> backing_format ) ) {\n error_setg ( errp , \"ERROR: ext_backing_format: len=%u too large\" \" (>=%zu)\" , ext . len , sizeof ( bs -> backing_format ) ) ;\n return 2 ;\n }\n ret = bdrv_pread ( bs -> file , offset , bs -> backing_format , ext . len ) ;\n if ( ret < 0 ) {\n error_setg_errno ( errp , - ret , \"ERROR: ext_backing_format: \" \"Could not read format name\" ) ;\n return 3 ;\n }\n bs -> backing_format [ ext . len ] = '\\0' ;\n # ifdef DEBUG_EXT printf ( \"Qcow2: Got format extension %s\\n\" , bs -> backing_format ) ;\n # endif break ;\n case QCOW2_EXT_MAGIC_FEATURE_TABLE : if ( p_feature_table != NULL ) {\n void * feature_table = g_malloc0 ( ext . len + 2 * sizeof ( Qcow2Feature ) ) ;\n ret = bdrv_pread ( bs -> file , offset , feature_table , ext . len ) ;\n if ( ret < 0 ) {\n error_setg_errno ( errp , - ret , \"ERROR: ext_feature_table: \" \"Could not read table\" ) ;\n return ret ;\n }\n * p_feature_table = feature_table ;\n }\n break ;\n default : {\n Qcow2UnknownHeaderExtension * uext ;\n uext = g_malloc0 ( sizeof ( * uext ) + ext . len ) ;\n uext -> magic = ext . magic ;\n uext -> len = ext . len ;\n QLIST_INSERT_HEAD ( & s -> unknown_header_ext , uext , next ) ;\n ret = bdrv_pread ( bs -> file , offset , uext -> data , uext -> len ) ;\n if ( ret < 0 ) {\n error_setg_errno ( errp , - ret , \"ERROR: unknown extension: \" \"Could not read data\" ) ;\n return ret ;\n }\n }\n break ;\n }\n offset += ( ( ext . len + 7 ) & ~ 7 ) ;\n }\n return 0 ;\n }"}
{"idx": 5279, "target": 0, "func": "static Asn1Generic * DecodeAsn1DerUTCTime ( const unsigned char * buffer , uint32_t max_size , uint8_t depth , uint32_t * errcode ) {\n Asn1Generic * a ;\n a = DecodeAsn1DerIA5String ( buffer , max_size , depth , errcode ) ;\n if ( a != NULL ) a -> type = ASN1_UTCTIME ;\n return a ;\n }"}
{"idx": 5280, "target": 0, "func": "static void ohci_pci_class_init ( ObjectClass * klass , void * data ) {\n DeviceClass * dc = DEVICE_CLASS ( klass ) ;\n PCIDeviceClass * k = PCI_DEVICE_CLASS ( klass ) ;\n k -> realize = usb_ohci_realize_pci ;\n k -> exit = usb_ohci_exit ;\n k -> vendor_id = PCI_VENDOR_ID_APPLE ;\n k -> device_id = PCI_DEVICE_ID_APPLE_IPID_USB ;\n k -> class_id = PCI_CLASS_SERIAL_USB ;\n set_bit ( DEVICE_CATEGORY_USB , dc -> categories ) ;\n dc -> desc = \"Apple USB Controller\" ;\n dc -> props = ohci_pci_properties ;\n dc -> hotpluggable = false ;\n dc -> vmsd = & vmstate_ohci ;\n dc -> reset = usb_ohci_reset_pci ;\n }"}
{"idx": 5281, "target": 0, "func": "void remoteDispatchFormatError ( remote_error * rerr , const char * fmt , ... ) {\n va_list args ;\n char msgbuf [ 1024 ] ;\n char * msg = msgbuf ;\n va_start ( args , fmt ) ;\n vsnprintf ( msgbuf , sizeof msgbuf , fmt , args ) ;\n va_end ( args ) ;\n remoteDispatchStringError ( rerr , VIR_ERR_RPC , msg ) ;\n }"}
{"idx": 5282, "target": 0, "func": "static bool tsc_adjust_needed ( void * opaque ) {\n X86CPU * cpu = opaque ;\n CPUX86State * env = & cpu -> env ;\n return env -> tsc_adjust != 0 ;\n }"}
{"idx": 5283, "target": 0, "func": "static inline int get_dmv ( MpegEncContext * s ) {\n if ( get_bits1 ( & s -> gb ) ) return 1 - ( get_bits1 ( & s -> gb ) << 1 ) ;\n else return 0 ;\n }"}
{"idx": 5284, "target": 0, "func": "int qemuMonitorTextCommandWithFd ( qemuMonitorPtr mon , const char * cmd , int scm_fd , char * * reply ) {\n return qemuMonitorTextCommandWithHandler ( mon , cmd , NULL , NULL , scm_fd , reply ) ;\n }"}
{"idx": 5285, "target": 0, "func": "void qdev_set_nic_properties ( DeviceState * dev , NICInfo * nd ) {\n qdev_prop_set_macaddr ( dev , \"mac\" , nd -> macaddr ) ;\n if ( nd -> vlan ) qdev_prop_set_vlan ( dev , \"vlan\" , nd -> vlan ) ;\n if ( nd -> netdev ) qdev_prop_set_netdev ( dev , \"netdev\" , nd -> netdev ) ;\n if ( nd -> nvectors != NIC_NVECTORS_UNSPECIFIED && qdev_prop_exists ( dev , \"vectors\" ) ) {\n qdev_prop_set_uint32 ( dev , \"vectors\" , nd -> nvectors ) ;\n }\n }"}
{"idx": 5286, "target": 0, "func": "static void gic_do_cpu_write ( void * opaque , hwaddr addr , uint64_t value , unsigned size ) {\n GICState * * backref = ( GICState * * ) opaque ;\n GICState * s = * backref ;\n int id = ( backref - s -> backref ) ;\n gic_cpu_write ( s , id , addr , value ) ;\n }"}
{"idx": 5287, "target": 0, "func": "int i2d_PUBKEY_fp ( FILE * fp , EVP_PKEY * pkey ) {\n return ASN1_i2d_fp_of ( EVP_PKEY , i2d_PUBKEY , fp , pkey ) ;\n }"}
{"idx": 5288, "target": 0, "func": "static void init_encode_frame_mb_context ( VP9_COMP * cpi ) {\n MACROBLOCK * const x = & cpi -> mb ;\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n const int aligned_mi_cols = mi_cols_aligned_to_sb ( cm -> mi_cols ) ;\n vp9_setup_src_planes ( x , cpi -> Source , 0 , 0 ) ;\n vp9_setup_block_planes ( & x -> e_mbd , cm -> subsampling_x , cm -> subsampling_y ) ;\n vpx_memset ( xd -> above_context [ 0 ] , 0 , sizeof ( * xd -> above_context [ 0 ] ) * * aligned_mi_cols * MAX_MB_PLANE ) ;\n vpx_memset ( xd -> above_seg_context , 0 , sizeof ( * xd -> above_seg_context ) * aligned_mi_cols ) ;\n }"}
{"idx": 5289, "target": 0, "func": "static void adx_decode_flush ( AVCodecContext * avctx ) {\n ADXContext * c = avctx -> priv_data ;\n memset ( c -> prev , 0 , sizeof ( c -> prev ) ) ;\n c -> eof = 0 ;\n }"}
{"idx": 5290, "target": 0, "func": "int pdf_lookup_cmap_full ( pdf_cmap * cmap , unsigned int cpt , int * out ) {\n pdf_range * ranges = cmap -> ranges ;\n pdf_xrange * xranges = cmap -> xranges ;\n pdf_mrange * mranges = cmap -> mranges ;\n unsigned int i ;\n int l , r , m ;\n l = 0 ;\n r = cmap -> rlen - 1 ;\n while ( l <= r ) {\n m = ( l + r ) >> 1 ;\n if ( cpt < ranges [ m ] . low ) r = m - 1 ;\n else if ( cpt > ranges [ m ] . high ) l = m + 1 ;\n else {\n out [ 0 ] = cpt - ranges [ m ] . low + ranges [ m ] . out ;\n return 1 ;\n }\n }\n l = 0 ;\n r = cmap -> xlen - 1 ;\n while ( l <= r ) {\n m = ( l + r ) >> 1 ;\n if ( cpt < xranges [ m ] . low ) r = m - 1 ;\n else if ( cpt > xranges [ m ] . high ) l = m + 1 ;\n else {\n out [ 0 ] = cpt - xranges [ m ] . low + xranges [ m ] . out ;\n return 1 ;\n }\n }\n l = 0 ;\n r = cmap -> mlen - 1 ;\n while ( l <= r ) {\n m = ( l + r ) >> 1 ;\n if ( cpt < mranges [ m ] . low ) r = m - 1 ;\n else if ( cpt > mranges [ m ] . low ) l = m + 1 ;\n else {\n int * ptr = & cmap -> dict [ cmap -> mranges [ m ] . out ] ;\n unsigned int len = ( unsigned int ) * ptr ++ ;\n for ( i = 0 ;\n i < len ;\n ++ i ) out [ i ] = * ptr ++ ;\n return len ;\n }\n }\n if ( cmap -> usecmap ) return pdf_lookup_cmap_full ( cmap -> usecmap , cpt , out ) ;\n return 0 ;\n }"}
{"idx": 5291, "target": 0, "func": "static VALUE ossl_cipher_copy ( VALUE self , VALUE other ) {\n EVP_CIPHER_CTX * ctx1 , * ctx2 ;\n rb_check_frozen ( self ) ;\n if ( self == other ) return self ;\n GetCipherInit ( self , ctx1 ) ;\n if ( ! ctx1 ) {\n AllocCipher ( self , ctx1 ) ;\n }\n SafeGetCipher ( other , ctx2 ) ;\n if ( EVP_CIPHER_CTX_copy ( ctx1 , ctx2 ) != 1 ) ossl_raise ( eCipherError , NULL ) ;\n return self ;\n }"}
{"idx": 5292, "target": 0, "func": "static void _zip_write2 ( unsigned short i , FILE * fp ) {\n putc ( i & 0xff , fp ) ;\n putc ( ( i >> 8 ) & 0xff , fp ) ;\n return ;\n }"}
{"idx": 5293, "target": 1, "func": "static void _HZOpen ( UConverter * cnv , UConverterLoadArgs * pArgs , UErrorCode * errorCode ) {\n UConverter * gbConverter ;\n if ( pArgs -> onlyTestIsLoadable ) {\n ucnv_canCreateConverter ( \"GBK\" , errorCode ) ;\n return ;\n }\n gbConverter = ucnv_open ( \"GBK\" , errorCode ) ;\n if ( U_FAILURE ( * errorCode ) ) {\n return ;\n }\n cnv -> toUnicodeStatus = 0 ;\n cnv -> fromUnicodeStatus = 0 ;\n cnv -> mode = 0 ;\n cnv -> fromUChar32 = 0x0000 ;\n cnv -> extraInfo = uprv_calloc ( 1 , sizeof ( UConverterDataHZ ) ) ;\n if ( cnv -> extraInfo != NULL ) {\n ( ( UConverterDataHZ * ) cnv -> extraInfo ) -> gbConverter = gbConverter ;\n }\n else {\n ucnv_close ( gbConverter ) ;\n * errorCode = U_MEMORY_ALLOCATION_ERROR ;\n return ;\n }\n }"}
{"idx": 5294, "target": 0, "func": "static void imc_adjust_bit_allocation ( IMCContext * q , IMCChannel * chctx , int summer ) {\n float workT [ 32 ] ;\n int corrected = 0 ;\n int i , j ;\n float highest = 0 ;\n int found_indx = 0 ;\n for ( i = 0 ;\n i < BANDS ;\n i ++ ) {\n workT [ i ] = ( chctx -> bitsBandT [ i ] == 6 ) ? - 1.e20 : ( chctx -> bitsBandT [ i ] * - 2 + chctx -> flcoeffs4 [ i ] - 0.415 ) ;\n }\n while ( corrected < summer ) {\n if ( highest <= - 1.e20 ) break ;\n highest = - 1.e20 ;\n for ( i = 0 ;\n i < BANDS ;\n i ++ ) {\n if ( workT [ i ] > highest ) {\n highest = workT [ i ] ;\n found_indx = i ;\n }\n }\n if ( highest > - 1.e20 ) {\n workT [ found_indx ] -= 2.0 ;\n if ( ++ ( chctx -> bitsBandT [ found_indx ] ) == 6 ) workT [ found_indx ] = - 1.e20 ;\n for ( j = band_tab [ found_indx ] ;\n j < band_tab [ found_indx + 1 ] && ( corrected < summer ) ;\n j ++ ) {\n if ( ! chctx -> skipFlags [ j ] && ( chctx -> CWlengthT [ j ] < 6 ) ) {\n chctx -> CWlengthT [ j ] ++ ;\n corrected ++ ;\n }\n }\n }\n }\n }"}
{"idx": 5295, "target": 0, "func": "static int convert_to_string ( const unsigned char * s , size_t len , char * dest ) {\n if ( dest ) {\n char * p = dest ;\n * p ++ = '\\\"' ;\n for ( ;\n len ;\n len -- , s ++ ) {\n switch ( * s ) {\n case '\\b' : * p ++ = '\\\\' ;\n * p ++ = 'b' ;\n break ;\n case '\\t' : * p ++ = '\\\\' ;\n * p ++ = 't' ;\n break ;\n case '\\v' : * p ++ = '\\\\' ;\n * p ++ = 'v' ;\n break ;\n case '\\n' : * p ++ = '\\\\' ;\n * p ++ = 'n' ;\n break ;\n case '\\f' : * p ++ = '\\\\' ;\n * p ++ = 'f' ;\n break ;\n case '\\r' : * p ++ = '\\\\' ;\n * p ++ = 'r' ;\n break ;\n case '\\\"' : * p ++ = '\\\\' ;\n * p ++ = '\\\"' ;\n break ;\n case '\\'' : * p ++ = '\\\\' ;\n * p ++ = '\\'' ;\n break ;\n case '\\\\' : * p ++ = '\\\\' ;\n * p ++ = '\\\\' ;\n break ;\n default : if ( ( * s < 0x20 || ( * s >= 0x7f && * s <= 0xa0 ) ) ) {\n sprintf ( p , \"\\\\x%02x\" , * s ) ;\n p += 4 ;\n }\n else * p ++ = * s ;\n }\n }\n * p ++ = '\\\"' ;\n return p - dest ;\n }\n else {\n int count = 2 ;\n for ( ;\n len ;\n len -- , s ++ ) {\n switch ( * s ) {\n case '\\b' : case '\\t' : case '\\v' : case '\\n' : case '\\f' : case '\\r' : case '\\\"' : case '\\'' : case '\\\\' : count += 2 ;\n break ;\n default : if ( ( * s < 0x20 || ( * s >= 0x7f && * s <= 0xa0 ) ) ) count += 4 ;\n else count ++ ;\n }\n }\n return count ;\n }\n }"}
{"idx": 5296, "target": 1, "func": "static int test_string_matching ( xd3_stream * stream , int ignore ) {\n usize_t i ;\n int ret ;\n xd3_config config ;\n char rbuf [ TESTBUFSIZE ] ;\n for ( i = 0 ;\n i < SIZEOF_ARRAY ( match_tests ) ;\n i += 1 ) {\n const string_match_test * test = & match_tests [ i ] ;\n char * rptr = rbuf ;\n usize_t len = ( usize_t ) strlen ( test -> input ) ;\n xd3_free_stream ( stream ) ;\n xd3_init_config ( & config , 0 ) ;\n config . smatch_cfg = XD3_SMATCH_SOFT ;\n config . smatcher_soft . large_look = 4 ;\n config . smatcher_soft . large_step = 4 ;\n config . smatcher_soft . small_look = 4 ;\n config . smatcher_soft . small_chain = 10 ;\n config . smatcher_soft . small_lchain = 10 ;\n config . smatcher_soft . max_lazy = ( test -> flags & SM_LAZY ) ? 10 : 0 ;\n config . smatcher_soft . long_enough = 10 ;\n if ( ( ret = xd3_config_stream ( stream , & config ) ) ) {\n return ret ;\n }\n if ( ( ret = xd3_encode_init_full ( stream ) ) ) {\n return ret ;\n }\n xd3_avail_input ( stream , ( uint8_t * ) test -> input , len ) ;\n if ( ( ret = stream -> smatcher . string_match ( stream ) ) ) {\n return ret ;\n }\n * rptr = 0 ;\n while ( ! xd3_rlist_empty ( & stream -> iopt_used ) ) {\n xd3_rinst * inst = xd3_rlist_pop_front ( & stream -> iopt_used ) ;\n switch ( inst -> type ) {\n case XD3_RUN : * rptr ++ = 'R' ;\n break ;\n case XD3_CPY : * rptr ++ = 'C' ;\n break ;\n default : CHECK ( 0 ) ;\n }\n snprintf_func ( rptr , rbuf + TESTBUFSIZE - rptr , \"%d/%d\" , inst -> pos , inst -> size ) ;\n rptr += strlen ( rptr ) ;\n if ( inst -> type == XD3_CPY ) {\n * rptr ++ = '@' ;\n snprintf_func ( rptr , rbuf + TESTBUFSIZE - rptr , \"%\" Q \"d\" , inst -> addr ) ;\n rptr += strlen ( rptr ) ;\n }\n * rptr ++ = ' ' ;\n xd3_rlist_push_back ( & stream -> iopt_free , inst ) ;\n }\n if ( rptr != rbuf ) {\n rptr -= 1 ;\n * rptr = 0 ;\n }\n if ( strcmp ( rbuf , test -> result ) != 0 ) {\n XPR ( NT \"test %u: expected %s: got %s\" , i , test -> result , rbuf ) ;\n stream -> msg = \"wrong result\" ;\n return XD3_INTERNAL ;\n }\n }\n return 0 ;\n }"}
{"idx": 5297, "target": 0, "func": "Datum scalarltjoinsel ( PG_FUNCTION_ARGS ) {\n PG_RETURN_FLOAT8 ( DEFAULT_INEQ_SEL ) ;\n }"}
{"idx": 5298, "target": 0, "func": "void evhttp_connection_free ( struct evhttp_connection * evcon ) {\n struct evhttp_request * req ;\n if ( evcon -> fd != - 1 ) {\n if ( evhttp_connected ( evcon ) && evcon -> closecb != NULL ) ( * evcon -> closecb ) ( evcon , evcon -> closecb_arg ) ;\n }\n while ( ( req = TAILQ_FIRST ( & evcon -> requests ) ) != NULL ) {\n TAILQ_REMOVE ( & evcon -> requests , req , next ) ;\n evhttp_request_free ( req ) ;\n }\n if ( evcon -> http_server != NULL ) {\n struct evhttp * http = evcon -> http_server ;\n TAILQ_REMOVE ( & http -> connections , evcon , next ) ;\n }\n if ( event_initialized ( & evcon -> close_ev ) ) event_del ( & evcon -> close_ev ) ;\n if ( event_initialized ( & evcon -> ev ) ) event_del ( & evcon -> ev ) ;\n if ( evcon -> fd != - 1 ) EVUTIL_CLOSESOCKET ( evcon -> fd ) ;\n if ( evcon -> bind_address != NULL ) free ( evcon -> bind_address ) ;\n if ( evcon -> address != NULL ) free ( evcon -> address ) ;\n if ( evcon -> input_buffer != NULL ) evbuffer_free ( evcon -> input_buffer ) ;\n if ( evcon -> output_buffer != NULL ) evbuffer_free ( evcon -> output_buffer ) ;\n free ( evcon ) ;\n }"}
{"idx": 5299, "target": 0, "func": "static void _build_alloc_msg ( struct job_record * job_ptr , resource_allocation_response_msg_t * alloc_msg , int error_code , char * job_submit_user_msg ) {\n int i ;\n memset ( alloc_msg , 0 , sizeof ( resource_allocation_response_msg_t ) ) ;\n if ( job_ptr -> job_resrcs && job_ptr -> job_resrcs -> cpu_array_cnt ) {\n alloc_msg -> num_cpu_groups = job_ptr -> job_resrcs -> cpu_array_cnt ;\n alloc_msg -> cpu_count_reps = xmalloc ( sizeof ( uint32_t ) * job_ptr -> job_resrcs -> cpu_array_cnt ) ;\n memcpy ( alloc_msg -> cpu_count_reps , job_ptr -> job_resrcs -> cpu_array_reps , ( sizeof ( uint32_t ) * job_ptr -> job_resrcs -> cpu_array_cnt ) ) ;\n alloc_msg -> cpus_per_node = xmalloc ( sizeof ( uint16_t ) * job_ptr -> job_resrcs -> cpu_array_cnt ) ;\n memcpy ( alloc_msg -> cpus_per_node , job_ptr -> job_resrcs -> cpu_array_value , ( sizeof ( uint16_t ) * job_ptr -> job_resrcs -> cpu_array_cnt ) ) ;\n }\n alloc_msg -> error_code = error_code ;\n alloc_msg -> job_submit_user_msg = xstrdup ( job_submit_user_msg ) ;\n alloc_msg -> job_id = job_ptr -> job_id ;\n alloc_msg -> node_cnt = job_ptr -> node_cnt ;\n alloc_msg -> node_list = xstrdup ( job_ptr -> nodes ) ;\n alloc_msg -> partition = xstrdup ( job_ptr -> partition ) ;\n alloc_msg -> alias_list = xstrdup ( job_ptr -> alias_list ) ;\n alloc_msg -> select_jobinfo = select_g_select_jobinfo_copy ( job_ptr -> select_jobinfo ) ;\n if ( job_ptr -> details ) {\n alloc_msg -> pn_min_memory = job_ptr -> details -> pn_min_memory ;\n if ( job_ptr -> details -> mc_ptr ) {\n alloc_msg -> ntasks_per_board = job_ptr -> details -> mc_ptr -> ntasks_per_board ;\n alloc_msg -> ntasks_per_core = job_ptr -> details -> mc_ptr -> ntasks_per_core ;\n alloc_msg -> ntasks_per_socket = job_ptr -> details -> mc_ptr -> ntasks_per_socket ;\n }\n if ( job_ptr -> details -> env_cnt ) {\n alloc_msg -> env_size = job_ptr -> details -> env_cnt ;\n alloc_msg -> environment = xmalloc ( sizeof ( char * ) * alloc_msg -> env_size ) ;\n for ( i = 0 ;\n i < alloc_msg -> env_size ;\n i ++ ) {\n alloc_msg -> environment [ i ] = xstrdup ( job_ptr -> details -> env_sup [ i ] ) ;\n }\n }\n }\n else {\n alloc_msg -> pn_min_memory = 0 ;\n alloc_msg -> ntasks_per_board = NO_VAL16 ;\n alloc_msg -> ntasks_per_core = NO_VAL16 ;\n alloc_msg -> ntasks_per_socket = NO_VAL16 ;\n }\n if ( job_ptr -> account ) alloc_msg -> account = xstrdup ( job_ptr -> account ) ;\n if ( job_ptr -> qos_ptr ) {\n slurmdb_qos_rec_t * qos ;\n qos = ( slurmdb_qos_rec_t * ) job_ptr -> qos_ptr ;\n alloc_msg -> qos = xstrdup ( qos -> name ) ;\n }\n if ( job_ptr -> resv_name ) alloc_msg -> resv_name = xstrdup ( job_ptr -> resv_name ) ;\n set_remote_working_response ( alloc_msg , job_ptr , job_ptr -> origin_cluster ) ;\n }"}
{"idx": 5300, "target": 1, "func": "static guint32 dissect_minipacket ( tvbuff_t * tvb , guint32 offset , guint16 scallno , packet_info * pinfo , proto_tree * iax2_tree , proto_tree * main_tree ) {\n guint32 ts ;\n iax_packet_data * iax_packet ;\n proto_item * item ;\n ts = tvb_get_ntohs ( tvb , offset ) ;\n iax_packet = iax2_get_packet_data_for_minipacket ( pinfo , scallno , FALSE ) ;\n if ( iax2_tree ) {\n if ( iax_packet -> call_data ) {\n item = proto_tree_add_uint ( iax2_tree , hf_iax2_callno , tvb , 0 , 4 , iax_packet -> call_data -> forward_circuit_ids [ 0 ] ) ;\n PROTO_ITEM_SET_GENERATED ( item ) ;\n }\n proto_tree_add_uint ( iax2_tree , hf_iax2_minits , tvb , offset , 2 , ts ) ;\n iax2_add_ts_fields ( pinfo , iax2_tree , iax_packet , ( guint16 ) ts ) ;\n }\n else {\n iax2_add_ts_fields ( pinfo , iax2_tree , iax_packet , ( guint16 ) ts ) ;\n }\n offset += 2 ;\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"Mini packet, source call# %d, timestamp %ums\" , scallno , ts ) ;\n dissect_payload ( tvb , offset , pinfo , iax2_tree , main_tree , ts , FALSE , iax_packet ) ;\n iax_packet -> first_time = FALSE ;\n return offset ;\n }"}
{"idx": 5301, "target": 1, "func": "static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 5302, "target": 0, "func": "int qemuMonitorTextSendFileHandle ( qemuMonitorPtr mon , const char * fdname , int fd ) {\n char * cmd ;\n char * reply = NULL ;\n int ret = - 1 ;\n if ( virAsprintf ( & cmd , \"getfd %s\" , fdname ) < 0 ) {\n virReportOOMError ( ) ;\n return - 1 ;\n }\n if ( qemuMonitorHMPCommandWithFd ( mon , cmd , fd , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"failed to pass fd to qemu with '%s'\" ) , cmd ) ;\n goto cleanup ;\n }\n if ( strstr ( reply , \"unknown command:\" ) ) {\n qemuReportError ( VIR_ERR_OPERATION_INVALID , _ ( \"qemu does not support sending of file handles: %s\" ) , reply ) ;\n goto cleanup ;\n }\n if ( STRNEQ ( reply , \"\" ) ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"unable to send file handle '%s': %s\" ) , fdname , reply ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( cmd ) ;\n VIR_FREE ( reply ) ;\n return ret ;\n }"}
{"idx": 5303, "target": 0, "func": "int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL ) DECLARE_PEM_rw ( PKCS7 , PKCS7 ) DECLARE_PEM_rw ( NETSCAPE_CERT_SEQUENCE , NETSCAPE_CERT_SEQUENCE ) DECLARE_PEM_rw ( PKCS8 , X509_SIG ) DECLARE_PEM_rw ( PKCS8_PRIV_KEY_INFO , PKCS8_PRIV_KEY_INFO ) # ifndef OPENSSL_NO_RSA DECLARE_PEM_rw_cb ( RSAPrivateKey , RSA ) DECLARE_PEM_rw_const ( RSAPublicKey , RSA )"}
{"idx": 5304, "target": 0, "func": "static char * get_scan_primary ( OpKind kind ) {\n switch ( kind ) {\n default : case OP_KIND_COPY : {\n return f ( _ ( \"Error while copying.\" ) ) ;\n }\n case OP_KIND_MOVE : {\n return f ( _ ( \"Error while moving.\" ) ) ;\n }\n case OP_KIND_DELETE : {\n return f ( _ ( \"Error while deleting.\" ) ) ;\n }\n case OP_KIND_TRASH : {\n return f ( _ ( \"Error while moving files to trash.\" ) ) ;\n }\n case OP_KIND_COMPRESS : return f ( _ ( \"Error while compressing files.\" ) ) ;\n }\n }"}
{"idx": 5305, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( ProfileListDesktopBrowserTest , MAYBE_SignOut ) {\n if ( ! profiles : : IsMultipleProfilesEnabled ( ) ) return ;\n ProfileManager * profile_manager = g_browser_process -> profile_manager ( ) ;\n Profile * current_profile = browser ( ) -> profile ( ) ;\n ProfileInfoCache & cache = profile_manager -> GetProfileInfoCache ( ) ;\n size_t index = cache . GetIndexOfProfileWithPath ( current_profile -> GetPath ( ) ) ;\n AvatarMenu * menu = GetAvatarMenu ( & cache ) ;\n menu -> RebuildMenu ( ) ;\n BrowserList * browser_list = BrowserList : : GetInstance ( chrome : : GetActiveDesktop ( ) ) ;\n EXPECT_EQ ( 1U , browser_list -> size ( ) ) ;\n content : : WindowedNotificationObserver window_close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , content : : Source < Browser > ( browser ( ) ) ) ;\n EXPECT_FALSE ( cache . ProfileIsSigninRequiredAtIndex ( index ) ) ;\n profiles : : LockProfile ( current_profile ) ;\n window_close_observer . Wait ( ) ;\n EXPECT_TRUE ( cache . ProfileIsSigninRequiredAtIndex ( index ) ) ;\n EXPECT_EQ ( 0U , browser_list -> size ( ) ) ;\n chrome : : HideUserManager ( ) ;\n }"}
{"idx": 5306, "target": 0, "func": "static int at1_unpack_dequant ( GetBitContext * gb , AT1SUCtx * su , float spec [ AT1_SU_SAMPLES ] ) {\n int bits_used , band_num , bfu_num , i ;\n uint8_t idwls [ AT1_MAX_BFU ] ;\n uint8_t idsfs [ AT1_MAX_BFU ] ;\n su -> num_bfus = bfu_amount_tab1 [ get_bits ( gb , 3 ) ] ;\n bits_used = su -> num_bfus * 10 + 32 + bfu_amount_tab2 [ get_bits ( gb , 2 ) ] + ( bfu_amount_tab3 [ get_bits ( gb , 3 ) ] << 1 ) ;\n for ( i = 0 ;\n i < su -> num_bfus ;\n i ++ ) idwls [ i ] = get_bits ( gb , 4 ) ;\n for ( i = 0 ;\n i < su -> num_bfus ;\n i ++ ) idsfs [ i ] = get_bits ( gb , 6 ) ;\n for ( i = su -> num_bfus ;\n i < AT1_MAX_BFU ;\n i ++ ) idwls [ i ] = idsfs [ i ] = 0 ;\n for ( band_num = 0 ;\n band_num < AT1_QMF_BANDS ;\n band_num ++ ) {\n for ( bfu_num = bfu_bands_t [ band_num ] ;\n bfu_num < bfu_bands_t [ band_num + 1 ] ;\n bfu_num ++ ) {\n int pos ;\n int num_specs = specs_per_bfu [ bfu_num ] ;\n int word_len = ! ! idwls [ bfu_num ] + idwls [ bfu_num ] ;\n float scale_factor = ff_atrac_sf_table [ idsfs [ bfu_num ] ] ;\n bits_used += word_len * num_specs ;\n if ( bits_used > AT1_SU_MAX_BITS ) return AVERROR_INVALIDDATA ;\n pos = su -> log2_block_count [ band_num ] ? bfu_start_short [ bfu_num ] : bfu_start_long [ bfu_num ] ;\n if ( word_len ) {\n float max_quant = 1.0 / ( float ) ( ( 1 << ( word_len - 1 ) ) - 1 ) ;\n for ( i = 0 ;\n i < num_specs ;\n i ++ ) {\n spec [ pos + i ] = get_sbits ( gb , word_len ) * scale_factor * max_quant ;\n }\n }\n else {\n memset ( & spec [ pos ] , 0 , num_specs * sizeof ( float ) ) ;\n }\n }\n }\n return 0 ;\n }"}
{"idx": 5307, "target": 0, "func": "void fz_set_default_output_intent ( fz_context * ctx , fz_default_colorspaces * default_cs , fz_colorspace * cs ) {\n fz_drop_colorspace ( ctx , default_cs -> oi ) ;\n default_cs -> oi = fz_keep_colorspace ( ctx , cs ) ;\n switch ( cs -> n ) {\n case 1 : if ( default_cs -> gray == fz_device_gray ( ctx ) ) {\n fz_drop_colorspace ( ctx , default_cs -> gray ) ;\n default_cs -> gray = fz_keep_colorspace ( ctx , cs ) ;\n }\n break ;\n case 3 : if ( default_cs -> rgb == fz_device_rgb ( ctx ) ) {\n fz_drop_colorspace ( ctx , default_cs -> rgb ) ;\n default_cs -> rgb = fz_keep_colorspace ( ctx , cs ) ;\n }\n break ;\n case 4 : if ( default_cs -> cmyk == fz_device_cmyk ( ctx ) ) {\n fz_drop_colorspace ( ctx , default_cs -> cmyk ) ;\n default_cs -> cmyk = fz_keep_colorspace ( ctx , cs ) ;\n }\n break ;\n }\n }"}
{"idx": 5308, "target": 0, "func": "gint get_mac_tsn_size ( void ) {\n return global_mac_tsn_size ;\n }"}
{"idx": 5309, "target": 0, "func": "relpRetVal relpTcpDestruct ( relpTcp_t * * ppThis ) {\n relpTcp_t * pThis ;\n int i ;\n # ifdef ENABLE_TLS int gnuRet ;\n # endif ENTER_RELPFUNC ;\n assert ( ppThis != NULL ) ;\n pThis = * ppThis ;\n RELPOBJ_assert ( pThis , Tcp ) ;\n if ( pThis -> sock != - 1 ) {\n close ( pThis -> sock ) ;\n pThis -> sock = - 1 ;\n }\n if ( pThis -> socks != NULL ) {\n for ( i = 1 ;\n i <= pThis -> socks [ 0 ] ;\n ++ i ) close ( pThis -> socks [ i ] ) ;\n free ( pThis -> socks ) ;\n }\n # ifdef ENABLE_TLS if ( pThis -> bTLSActive ) {\n gnuRet = gnutls_bye ( pThis -> session , GNUTLS_SHUT_RDWR ) ;\n while ( gnuRet == GNUTLS_E_INTERRUPTED || gnuRet == GNUTLS_E_AGAIN ) {\n gnuRet = gnutls_bye ( pThis -> session , GNUTLS_SHUT_RDWR ) ;\n }\n gnutls_deinit ( pThis -> session ) ;\n }\n relpTcpFreePermittedPeers ( pThis ) ;\n # endif free ( pThis -> pRemHostIP ) ;\n free ( pThis -> pRemHostName ) ;\n free ( pThis -> pristring ) ;\n free ( pThis -> caCertFile ) ;\n free ( pThis -> ownCertFile ) ;\n free ( pThis -> privKeyFile ) ;\n free ( pThis ) ;\n * ppThis = NULL ;\n LEAVE_RELPFUNC ;\n }"}
{"idx": 5310, "target": 0, "func": "void http_request_empty_done ( struct evhttp_request * req , void * arg ) {\n if ( req -> response_code != HTTP_OK ) {\n fprintf ( stderr , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n if ( evhttp_find_header ( req -> input_headers , \"Date\" ) == NULL ) {\n fprintf ( stderr , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n if ( evhttp_find_header ( req -> input_headers , \"Content-Length\" ) == NULL ) {\n fprintf ( stderr , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n if ( strcmp ( evhttp_find_header ( req -> input_headers , \"Content-Length\" ) , \"0\" ) ) {\n fprintf ( stderr , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n if ( EVBUFFER_LENGTH ( req -> input_buffer ) != 0 ) {\n fprintf ( stderr , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n test_ok = 1 ;\n event_loopexit ( NULL ) ;\n }"}
{"idx": 5311, "target": 0, "func": "int qemuMonitorJSONGetMigrationStatus ( qemuMonitorPtr mon , int * status , unsigned long long * transferred , unsigned long long * remaining , unsigned long long * total ) {\n int ret ;\n virJSONValuePtr cmd = qemuMonitorJSONMakeCommand ( \"query-migrate\" , NULL ) ;\n virJSONValuePtr reply = NULL ;\n * status = 0 ;\n * transferred = * remaining = * total = 0 ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n if ( ret == 0 && qemuMonitorJSONGetMigrationStatusReply ( reply , status , transferred , remaining , total ) < 0 ) ret = - 1 ;\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 5312, "target": 0, "func": "void sum_2_variances ( const var * a , const var * b , var * r ) {\n fill_variance ( a -> sum_square_error + b -> sum_square_error , a -> sum_error + b -> sum_error , a -> count + b -> count , r ) ;\n }"}
{"idx": 5313, "target": 0, "func": "static int qemuAgentSetVCPUsCommand ( qemuAgentPtr mon , qemuAgentCPUInfoPtr info , size_t ninfo , int * nmodified ) {\n int ret = - 1 ;\n virJSONValuePtr cmd = NULL ;\n virJSONValuePtr reply = NULL ;\n virJSONValuePtr cpus = NULL ;\n virJSONValuePtr cpu = NULL ;\n size_t i ;\n * nmodified = 0 ;\n if ( ! ( cpus = virJSONValueNewArray ( ) ) ) goto cleanup ;\n for ( i = 0 ;\n i < ninfo ;\n i ++ ) {\n qemuAgentCPUInfoPtr in = & info [ i ] ;\n if ( ! in -> modified ) continue ;\n ( * nmodified ) ++ ;\n if ( ! ( cpu = virJSONValueNewObject ( ) ) ) goto cleanup ;\n if ( virJSONValueObjectAppendNumberInt ( cpu , \"logical-id\" , in -> id ) < 0 ) goto cleanup ;\n if ( virJSONValueObjectAppendBoolean ( cpu , \"online\" , in -> online ) < 0 ) goto cleanup ;\n if ( virJSONValueArrayAppend ( cpus , cpu ) < 0 ) goto cleanup ;\n cpu = NULL ;\n }\n if ( * nmodified == 0 ) {\n ret = 0 ;\n goto cleanup ;\n }\n if ( ! ( cmd = qemuAgentMakeCommand ( \"guest-set-vcpus\" , \"a:vcpus\" , cpus , NULL ) ) ) goto cleanup ;\n cpus = NULL ;\n if ( qemuAgentCommand ( mon , cmd , & reply , true , VIR_DOMAIN_QEMU_AGENT_COMMAND_BLOCK ) < 0 ) goto cleanup ;\n if ( qemuAgentCheckError ( cmd , reply ) < 0 ) goto cleanup ;\n if ( virJSONValueObjectGetNumberInt ( reply , \"return\" , & ret ) < 0 || ret <= 0 || ret > * nmodified ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"guest agent returned malformed or invalid return value\" ) ) ;\n ret = - 1 ;\n }\n cleanup : virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n virJSONValueFree ( cpu ) ;\n virJSONValueFree ( cpus ) ;\n return ret ;\n }"}
{"idx": 5314, "target": 0, "func": "static VALUE ossl_cipher_alloc ( VALUE klass ) {\n return NewCipher ( klass ) ;\n }"}
{"idx": 5315, "target": 0, "func": "void tee_putc ( int c , FILE * file ) {\n putc ( c , file ) ;\n if ( opt_outfile ) putc ( c , OUTFILE ) ;\n }"}
{"idx": 5316, "target": 1, "func": "static inline realpath_cache_bucket * realpath_cache_find ( const char * path , int path_len , time_t t TSRMLS_DC ) {\n # ifdef PHP_WIN32 unsigned long key = realpath_cache_key ( path , path_len TSRMLS_CC ) ;\n # else unsigned long key = realpath_cache_key ( path , path_len ) ;\n # endif unsigned long n = key % ( sizeof ( CWDG ( realpath_cache ) ) / sizeof ( CWDG ( realpath_cache ) [ 0 ] ) ) ;\n realpath_cache_bucket * * bucket = & CWDG ( realpath_cache ) [ n ] ;\n while ( * bucket != NULL ) {\n if ( CWDG ( realpath_cache_ttl ) && ( * bucket ) -> expires < t ) {\n realpath_cache_bucket * r = * bucket ;\n * bucket = ( * bucket ) -> next ;\n if ( r -> path == r -> realpath ) {\n CWDG ( realpath_cache_size ) -= sizeof ( realpath_cache_bucket ) + r -> path_len + 1 ;\n }\n else {\n CWDG ( realpath_cache_size ) -= sizeof ( realpath_cache_bucket ) + r -> path_len + 1 + r -> realpath_len + 1 ;\n }\n free ( r ) ;\n }\n else if ( key == ( * bucket ) -> key && path_len == ( * bucket ) -> path_len && memcmp ( path , ( * bucket ) -> path , path_len ) == 0 ) {\n return * bucket ;\n }\n else {\n bucket = & ( * bucket ) -> next ;\n }\n }\n return NULL ;\n }"}
{"idx": 5317, "target": 0, "func": "int64_t vp9_rd_pick_inter_mode_sb ( VP9_COMP * cpi , MACROBLOCK * x , const TileInfo * const tile , int mi_row , int mi_col , int * returnrate , int64_t * returndistortion , BLOCK_SIZE bsize , PICK_MODE_CONTEXT * ctx , int64_t best_rd_so_far ) {\n VP9_COMMON * const cm = & cpi -> common ;\n RD_OPT * const rd_opt = & cpi -> rd ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n MB_MODE_INFO * const mbmi = & xd -> mi [ 0 ] . src_mi -> mbmi ;\n const struct segmentation * const seg = & cm -> seg ;\n struct macroblockd_plane * const pd = xd -> plane ;\n PREDICTION_MODE this_mode ;\n MV_REFERENCE_FRAME ref_frame , second_ref_frame ;\n unsigned char segment_id = mbmi -> segment_id ;\n int comp_pred , i , k ;\n int_mv frame_mv [ MB_MODE_COUNT ] [ MAX_REF_FRAMES ] ;\n struct buf_2d yv12_mb [ 4 ] [ MAX_MB_PLANE ] ;\n int_mv single_newmv [ MAX_REF_FRAMES ] = {\n {\n 0 }\n }\n ;\n INTERP_FILTER single_inter_filter [ MB_MODE_COUNT ] [ MAX_REF_FRAMES ] ;\n int single_skippable [ MB_MODE_COUNT ] [ MAX_REF_FRAMES ] ;\n static const int flag_list [ 4 ] = {\n 0 , VP9_LAST_FLAG , VP9_GOLD_FLAG , VP9_ALT_FLAG }\n ;\n int64_t best_rd = best_rd_so_far ;\n int64_t best_tx_rd [ TX_MODES ] ;\n int64_t best_tx_diff [ TX_MODES ] ;\n int64_t best_pred_diff [ REFERENCE_MODES ] ;\n int64_t best_pred_rd [ REFERENCE_MODES ] ;\n int64_t best_filter_rd [ SWITCHABLE_FILTER_CONTEXTS ] ;\n int64_t best_filter_diff [ SWITCHABLE_FILTER_CONTEXTS ] ;\n MB_MODE_INFO best_mbmode ;\n int best_mode_skippable = 0 ;\n int midx , best_mode_index = - 1 ;\n unsigned int ref_costs_single [ MAX_REF_FRAMES ] , ref_costs_comp [ MAX_REF_FRAMES ] ;\n vp9_prob comp_mode_p ;\n int64_t best_intra_rd = INT64_MAX ;\n unsigned int best_pred_sse = UINT_MAX ;\n PREDICTION_MODE best_intra_mode = DC_PRED ;\n int rate_uv_intra [ TX_SIZES ] , rate_uv_tokenonly [ TX_SIZES ] ;\n int64_t dist_uv [ TX_SIZES ] ;\n int skip_uv [ TX_SIZES ] ;\n PREDICTION_MODE mode_uv [ TX_SIZES ] ;\n const int intra_cost_penalty = * vp9_dc_quant ( cm -> base_qindex , cm -> y_dc_delta_q , cm -> bit_depth ) ;\n int best_skip2 = 0 ;\n uint8_t ref_frame_skip_mask [ 2 ] = {\n 0 }\n ;\n uint16_t mode_skip_mask [ MAX_REF_FRAMES ] = {\n 0 }\n ;\n int mode_skip_start = cpi -> sf . mode_skip_start + 1 ;\n const int * const rd_threshes = rd_opt -> threshes [ segment_id ] [ bsize ] ;\n const int * const rd_thresh_freq_fact = rd_opt -> thresh_freq_fact [ bsize ] ;\n int mode_threshold [ MAX_MODES ] ;\n int * mode_map = rd_opt -> mode_map [ bsize ] ;\n const int mode_search_skip_flags = cpi -> sf . mode_search_skip_flags ;\n vp9_zero ( best_mbmode ) ;\n x -> skip_encode = cpi -> sf . skip_encode_frame && x -> q_index < QIDX_SKIP_THRESH ;\n estimate_ref_frame_costs ( cm , xd , segment_id , ref_costs_single , ref_costs_comp , & comp_mode_p ) ;\n for ( i = 0 ;\n i < REFERENCE_MODES ;\n ++ i ) best_pred_rd [ i ] = INT64_MAX ;\n for ( i = 0 ;\n i < TX_MODES ;\n i ++ ) best_tx_rd [ i ] = INT64_MAX ;\n for ( i = 0 ;\n i < SWITCHABLE_FILTER_CONTEXTS ;\n i ++ ) best_filter_rd [ i ] = INT64_MAX ;\n for ( i = 0 ;\n i < TX_SIZES ;\n i ++ ) rate_uv_intra [ i ] = INT_MAX ;\n for ( i = 0 ;\n i < MAX_REF_FRAMES ;\n ++ i ) x -> pred_sse [ i ] = INT_MAX ;\n for ( i = 0 ;\n i < MB_MODE_COUNT ;\n ++ i ) {\n for ( k = 0 ;\n k < MAX_REF_FRAMES ;\n ++ k ) {\n single_inter_filter [ i ] [ k ] = SWITCHABLE ;\n single_skippable [ i ] [ k ] = 0 ;\n }\n }\n * returnrate = INT_MAX ;\n for ( ref_frame = LAST_FRAME ;\n ref_frame <= ALTREF_FRAME ;\n ++ ref_frame ) {\n x -> pred_mv_sad [ ref_frame ] = INT_MAX ;\n if ( cpi -> ref_frame_flags & flag_list [ ref_frame ] ) {\n setup_buffer_inter ( cpi , x , tile , ref_frame , bsize , mi_row , mi_col , frame_mv [ NEARESTMV ] , frame_mv [ NEARMV ] , yv12_mb ) ;\n }\n frame_mv [ NEWMV ] [ ref_frame ] . as_int = INVALID_MV ;\n frame_mv [ ZEROMV ] [ ref_frame ] . as_int = 0 ;\n }\n for ( ref_frame = LAST_FRAME ;\n ref_frame <= ALTREF_FRAME ;\n ++ ref_frame ) {\n if ( ! ( cpi -> ref_frame_flags & flag_list [ ref_frame ] ) ) {\n ref_frame_skip_mask [ 0 ] |= ( 1 << ref_frame ) ;\n ref_frame_skip_mask [ 1 ] |= SECOND_REF_FRAME_MASK ;\n }\n else if ( cpi -> sf . reference_masking ) {\n for ( i = LAST_FRAME ;\n i <= ALTREF_FRAME ;\n ++ i ) {\n if ( ( x -> pred_mv_sad [ ref_frame ] >> 2 ) > x -> pred_mv_sad [ i ] ) {\n mode_skip_mask [ ref_frame ] |= INTER_NEAREST_NEAR_ZERO ;\n break ;\n }\n }\n }\n if ( vp9_segfeature_active ( seg , segment_id , SEG_LVL_REF_FRAME ) && vp9_get_segdata ( seg , segment_id , SEG_LVL_REF_FRAME ) != ( int ) ref_frame ) {\n ref_frame_skip_mask [ 0 ] |= ( 1 << ref_frame ) ;\n ref_frame_skip_mask [ 1 ] |= SECOND_REF_FRAME_MASK ;\n }\n }\n if ( ! vp9_segfeature_active ( seg , segment_id , SEG_LVL_REF_FRAME ) ) {\n if ( cpi -> rc . is_src_frame_alt_ref && ( cpi -> oxcf . arnr_max_frames == 0 ) ) {\n ref_frame_skip_mask [ 0 ] = ( 1 << LAST_FRAME ) | ( 1 << GOLDEN_FRAME ) ;\n ref_frame_skip_mask [ 1 ] = SECOND_REF_FRAME_MASK ;\n mode_skip_mask [ ALTREF_FRAME ] = ~ INTER_NEAREST_NEAR_ZERO ;\n if ( frame_mv [ NEARMV ] [ ALTREF_FRAME ] . as_int != 0 ) mode_skip_mask [ ALTREF_FRAME ] |= ( 1 << NEARMV ) ;\n if ( frame_mv [ NEARESTMV ] [ ALTREF_FRAME ] . as_int != 0 ) mode_skip_mask [ ALTREF_FRAME ] |= ( 1 << NEARESTMV ) ;\n }\n }\n if ( cpi -> rc . is_src_frame_alt_ref ) {\n if ( cpi -> sf . alt_ref_search_fp ) {\n mode_skip_mask [ ALTREF_FRAME ] = 0 ;\n ref_frame_skip_mask [ 0 ] = ~ ( 1 << ALTREF_FRAME ) ;\n ref_frame_skip_mask [ 1 ] = SECOND_REF_FRAME_MASK ;\n }\n }\n if ( bsize > cpi -> sf . max_intra_bsize ) {\n ref_frame_skip_mask [ 0 ] |= ( 1 << INTRA_FRAME ) ;\n ref_frame_skip_mask [ 1 ] |= ( 1 << INTRA_FRAME ) ;\n }\n mode_skip_mask [ INTRA_FRAME ] |= ~ ( cpi -> sf . intra_y_mode_mask [ max_txsize_lookup [ bsize ] ] ) ;\n for ( i = 0 ;\n i < MAX_MODES ;\n ++ i ) mode_threshold [ i ] = ( ( int64_t ) rd_threshes [ i ] * rd_thresh_freq_fact [ i ] ) >> 5 ;\n midx = cpi -> sf . schedule_mode_search ? mode_skip_start : 0 ;\n while ( midx > 4 ) {\n uint8_t end_pos = 0 ;\n for ( i = 5 ;\n i < midx ;\n ++ i ) {\n if ( mode_threshold [ mode_map [ i - 1 ] ] > mode_threshold [ mode_map [ i ] ] ) {\n uint8_t tmp = mode_map [ i ] ;\n mode_map [ i ] = mode_map [ i - 1 ] ;\n mode_map [ i - 1 ] = tmp ;\n end_pos = i ;\n }\n }\n midx = end_pos ;\n }\n for ( midx = 0 ;\n midx < MAX_MODES ;\n ++ midx ) {\n int mode_index = mode_map [ midx ] ;\n int mode_excluded = 0 ;\n int64_t this_rd = INT64_MAX ;\n int disable_skip = 0 ;\n int compmode_cost = 0 ;\n int rate2 = 0 , rate_y = 0 , rate_uv = 0 ;\n int64_t distortion2 = 0 , distortion_y = 0 , distortion_uv = 0 ;\n int skippable = 0 ;\n int64_t tx_cache [ TX_MODES ] ;\n int this_skip2 = 0 ;\n int64_t total_sse = INT64_MAX ;\n int early_term = 0 ;\n this_mode = vp9_mode_order [ mode_index ] . mode ;\n ref_frame = vp9_mode_order [ mode_index ] . ref_frame [ 0 ] ;\n second_ref_frame = vp9_mode_order [ mode_index ] . ref_frame [ 1 ] ;\n if ( midx == mode_skip_start && best_mode_index >= 0 ) {\n switch ( best_mbmode . ref_frame [ 0 ] ) {\n case INTRA_FRAME : break ;\n case LAST_FRAME : ref_frame_skip_mask [ 0 ] |= LAST_FRAME_MODE_MASK ;\n ref_frame_skip_mask [ 1 ] |= SECOND_REF_FRAME_MASK ;\n break ;\n case GOLDEN_FRAME : ref_frame_skip_mask [ 0 ] |= GOLDEN_FRAME_MODE_MASK ;\n ref_frame_skip_mask [ 1 ] |= SECOND_REF_FRAME_MASK ;\n break ;\n case ALTREF_FRAME : ref_frame_skip_mask [ 0 ] |= ALT_REF_MODE_MASK ;\n break ;\n case NONE : case MAX_REF_FRAMES : assert ( 0 && \"Invalid Reference frame\" ) ;\n break ;\n }\n }\n if ( ref_frame_skip_mask [ 0 ] & ( 1 << ref_frame ) && ref_frame_skip_mask [ 1 ] & ( 1 << MAX ( 0 , second_ref_frame ) ) ) continue ;\n if ( mode_skip_mask [ ref_frame ] & ( 1 << this_mode ) ) continue ;\n if ( best_mode_skippable && cpi -> sf . schedule_mode_search ) mode_threshold [ mode_index ] <<= 1 ;\n if ( best_rd < mode_threshold [ mode_index ] ) continue ;\n if ( cpi -> sf . motion_field_mode_search ) {\n const int mi_width = MIN ( num_8x8_blocks_wide_lookup [ bsize ] , tile -> mi_col_end - mi_col ) ;\n const int mi_height = MIN ( num_8x8_blocks_high_lookup [ bsize ] , tile -> mi_row_end - mi_row ) ;\n const int bsl = mi_width_log2 ( bsize ) ;\n int cb_partition_search_ctrl = ( ( ( mi_row + mi_col ) >> bsl ) + get_chessboard_index ( cm -> current_video_frame ) ) & 0x1 ;\n MB_MODE_INFO * ref_mbmi ;\n int const_motion = 1 ;\n int skip_ref_frame = ! cb_partition_search_ctrl ;\n MV_REFERENCE_FRAME rf = NONE ;\n int_mv ref_mv ;\n ref_mv . as_int = INVALID_MV ;\n if ( ( mi_row - 1 ) >= tile -> mi_row_start ) {\n ref_mv = xd -> mi [ - xd -> mi_stride ] . src_mi -> mbmi . mv [ 0 ] ;\n rf = xd -> mi [ - xd -> mi_stride ] . src_mi -> mbmi . ref_frame [ 0 ] ;\n for ( i = 0 ;\n i < mi_width ;\n ++ i ) {\n ref_mbmi = & xd -> mi [ - xd -> mi_stride + i ] . src_mi -> mbmi ;\n const_motion &= ( ref_mv . as_int == ref_mbmi -> mv [ 0 ] . as_int ) && ( ref_frame == ref_mbmi -> ref_frame [ 0 ] ) ;\n skip_ref_frame &= ( rf == ref_mbmi -> ref_frame [ 0 ] ) ;\n }\n }\n if ( ( mi_col - 1 ) >= tile -> mi_col_start ) {\n if ( ref_mv . as_int == INVALID_MV ) ref_mv = xd -> mi [ - 1 ] . src_mi -> mbmi . mv [ 0 ] ;\n if ( rf == NONE ) rf = xd -> mi [ - 1 ] . src_mi -> mbmi . ref_frame [ 0 ] ;\n for ( i = 0 ;\n i < mi_height ;\n ++ i ) {\n ref_mbmi = & xd -> mi [ i * xd -> mi_stride - 1 ] . src_mi -> mbmi ;\n const_motion &= ( ref_mv . as_int == ref_mbmi -> mv [ 0 ] . as_int ) && ( ref_frame == ref_mbmi -> ref_frame [ 0 ] ) ;\n skip_ref_frame &= ( rf == ref_mbmi -> ref_frame [ 0 ] ) ;\n }\n }\n if ( skip_ref_frame && this_mode != NEARESTMV && this_mode != NEWMV ) if ( rf > INTRA_FRAME ) if ( ref_frame != rf ) continue ;\n if ( const_motion ) if ( this_mode == NEARMV || this_mode == ZEROMV ) continue ;\n }\n comp_pred = second_ref_frame > INTRA_FRAME ;\n if ( comp_pred ) {\n if ( ! cm -> allow_comp_inter_inter ) continue ;\n if ( ! ( cpi -> ref_frame_flags & flag_list [ second_ref_frame ] ) ) continue ;\n if ( vp9_segfeature_active ( seg , segment_id , SEG_LVL_REF_FRAME ) ) continue ;\n if ( ( mode_search_skip_flags & FLAG_SKIP_COMP_BESTINTRA ) && best_mode_index >= 0 && best_mbmode . ref_frame [ 0 ] == INTRA_FRAME ) continue ;\n mode_excluded = cm -> reference_mode == SINGLE_REFERENCE ;\n }\n else {\n if ( ref_frame != INTRA_FRAME ) mode_excluded = cm -> reference_mode == COMPOUND_REFERENCE ;\n }\n if ( ref_frame == INTRA_FRAME ) {\n if ( cpi -> sf . adaptive_mode_search ) if ( ( x -> source_variance << num_pels_log2_lookup [ bsize ] ) > best_pred_sse ) continue ;\n if ( this_mode != DC_PRED ) {\n const unsigned int skip_intra_var_thresh = 64 ;\n if ( ( mode_search_skip_flags & FLAG_SKIP_INTRA_LOWVAR ) && x -> source_variance < skip_intra_var_thresh ) continue ;\n if ( ( mode_search_skip_flags & FLAG_SKIP_INTRA_BESTINTER ) && ( this_mode >= D45_PRED && this_mode <= TM_PRED ) ) {\n if ( best_mode_index >= 0 && best_mbmode . ref_frame [ 0 ] > INTRA_FRAME ) continue ;\n }\n if ( mode_search_skip_flags & FLAG_SKIP_INTRA_DIRMISMATCH ) {\n if ( conditional_skipintra ( this_mode , best_intra_mode ) ) continue ;\n }\n }\n }\n else {\n const MV_REFERENCE_FRAME ref_frames [ 2 ] = {\n ref_frame , second_ref_frame }\n ;\n if ( ! check_best_zero_mv ( cpi , mbmi -> mode_context , frame_mv , this_mode , ref_frames ) ) continue ;\n }\n mbmi -> mode = this_mode ;\n mbmi -> uv_mode = DC_PRED ;\n mbmi -> ref_frame [ 0 ] = ref_frame ;\n mbmi -> ref_frame [ 1 ] = second_ref_frame ;\n mbmi -> interp_filter = cm -> interp_filter == SWITCHABLE ? EIGHTTAP : cm -> interp_filter ;\n mbmi -> mv [ 0 ] . as_int = mbmi -> mv [ 1 ] . as_int = 0 ;\n x -> skip = 0 ;\n set_ref_ptrs ( cm , xd , ref_frame , second_ref_frame ) ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n i ++ ) {\n xd -> plane [ i ] . pre [ 0 ] = yv12_mb [ ref_frame ] [ i ] ;\n if ( comp_pred ) xd -> plane [ i ] . pre [ 1 ] = yv12_mb [ second_ref_frame ] [ i ] ;\n }\n for ( i = 0 ;\n i < TX_MODES ;\n ++ i ) tx_cache [ i ] = INT64_MAX ;\n if ( ref_frame == INTRA_FRAME ) {\n TX_SIZE uv_tx ;\n super_block_yrd ( cpi , x , & rate_y , & distortion_y , & skippable , NULL , bsize , tx_cache , best_rd ) ;\n if ( rate_y == INT_MAX ) continue ;\n uv_tx = get_uv_tx_size_impl ( mbmi -> tx_size , bsize , pd [ 1 ] . subsampling_x , pd [ 1 ] . subsampling_y ) ;\n if ( rate_uv_intra [ uv_tx ] == INT_MAX ) {\n choose_intra_uv_mode ( cpi , ctx , bsize , uv_tx , & rate_uv_intra [ uv_tx ] , & rate_uv_tokenonly [ uv_tx ] , & dist_uv [ uv_tx ] , & skip_uv [ uv_tx ] , & mode_uv [ uv_tx ] ) ;\n }\n rate_uv = rate_uv_tokenonly [ uv_tx ] ;\n distortion_uv = dist_uv [ uv_tx ] ;\n skippable = skippable && skip_uv [ uv_tx ] ;\n mbmi -> uv_mode = mode_uv [ uv_tx ] ;\n rate2 = rate_y + cpi -> mbmode_cost [ mbmi -> mode ] + rate_uv_intra [ uv_tx ] ;\n if ( this_mode != DC_PRED && this_mode != TM_PRED ) rate2 += intra_cost_penalty ;\n distortion2 = distortion_y + distortion_uv ;\n }\n else {\n this_rd = handle_inter_mode ( cpi , x , bsize , tx_cache , & rate2 , & distortion2 , & skippable , & rate_y , & distortion_y , & rate_uv , & distortion_uv , & disable_skip , frame_mv , mi_row , mi_col , single_newmv , single_inter_filter , single_skippable , & total_sse , best_rd ) ;\n if ( this_rd == INT64_MAX ) continue ;\n compmode_cost = vp9_cost_bit ( comp_mode_p , comp_pred ) ;\n if ( cm -> reference_mode == REFERENCE_MODE_SELECT ) rate2 += compmode_cost ;\n }\n if ( comp_pred ) {\n rate2 += ref_costs_comp [ ref_frame ] ;\n }\n else {\n rate2 += ref_costs_single [ ref_frame ] ;\n }\n if ( ! disable_skip ) {\n if ( skippable ) {\n rate2 -= ( rate_y + rate_uv ) ;\n rate2 += vp9_cost_bit ( vp9_get_skip_prob ( cm , xd ) , 1 ) ;\n }\n else if ( ref_frame != INTRA_FRAME && ! xd -> lossless ) {\n if ( RDCOST ( x -> rdmult , x -> rddiv , rate_y + rate_uv , distortion2 ) < RDCOST ( x -> rdmult , x -> rddiv , 0 , total_sse ) ) {\n rate2 += vp9_cost_bit ( vp9_get_skip_prob ( cm , xd ) , 0 ) ;\n }\n else {\n rate2 += vp9_cost_bit ( vp9_get_skip_prob ( cm , xd ) , 1 ) ;\n distortion2 = total_sse ;\n assert ( total_sse >= 0 ) ;\n rate2 -= ( rate_y + rate_uv ) ;\n this_skip2 = 1 ;\n }\n }\n else {\n rate2 += vp9_cost_bit ( vp9_get_skip_prob ( cm , xd ) , 0 ) ;\n }\n this_rd = RDCOST ( x -> rdmult , x -> rddiv , rate2 , distortion2 ) ;\n }\n if ( ref_frame == INTRA_FRAME ) {\n if ( this_rd < best_intra_rd ) {\n best_intra_rd = this_rd ;\n best_intra_mode = mbmi -> mode ;\n }\n }\n if ( ! disable_skip && ref_frame == INTRA_FRAME ) {\n for ( i = 0 ;\n i < REFERENCE_MODES ;\n ++ i ) best_pred_rd [ i ] = MIN ( best_pred_rd [ i ] , this_rd ) ;\n for ( i = 0 ;\n i < SWITCHABLE_FILTER_CONTEXTS ;\n i ++ ) best_filter_rd [ i ] = MIN ( best_filter_rd [ i ] , this_rd ) ;\n }\n if ( this_rd < best_rd || x -> skip ) {\n int max_plane = MAX_MB_PLANE ;\n if ( ! mode_excluded ) {\n best_mode_index = mode_index ;\n if ( ref_frame == INTRA_FRAME ) {\n mbmi -> mv [ 0 ] . as_int = 0 ;\n max_plane = 1 ;\n }\n else {\n best_pred_sse = x -> pred_sse [ ref_frame ] ;\n }\n * returnrate = rate2 ;\n * returndistortion = distortion2 ;\n best_rd = this_rd ;\n best_mbmode = * mbmi ;\n best_skip2 = this_skip2 ;\n best_mode_skippable = skippable ;\n if ( ! x -> select_tx_size ) swap_block_ptr ( x , ctx , 1 , 0 , 0 , max_plane ) ;\n vpx_memcpy ( ctx -> zcoeff_blk , x -> zcoeff_blk [ mbmi -> tx_size ] , sizeof ( uint8_t ) * ctx -> num_4x4_blk ) ;\n if ( ( mode_search_skip_flags & FLAG_EARLY_TERMINATE ) && ( mode_index > MIN_EARLY_TERM_INDEX ) ) {\n const int qstep = xd -> plane [ 0 ] . dequant [ 1 ] ;\n int scale = 4 ;\n if ( x -> source_variance < UINT_MAX ) {\n const int var_adjust = ( x -> source_variance < 16 ) ;\n scale -= var_adjust ;\n }\n if ( ref_frame > INTRA_FRAME && distortion2 * scale < qstep * qstep ) {\n early_term = 1 ;\n }\n }\n }\n }\n if ( ! disable_skip && ref_frame != INTRA_FRAME ) {\n int64_t single_rd , hybrid_rd , single_rate , hybrid_rate ;\n if ( cm -> reference_mode == REFERENCE_MODE_SELECT ) {\n single_rate = rate2 - compmode_cost ;\n hybrid_rate = rate2 ;\n }\n else {\n single_rate = rate2 ;\n hybrid_rate = rate2 + compmode_cost ;\n }\n single_rd = RDCOST ( x -> rdmult , x -> rddiv , single_rate , distortion2 ) ;\n hybrid_rd = RDCOST ( x -> rdmult , x -> rddiv , hybrid_rate , distortion2 ) ;\n if ( ! comp_pred ) {\n if ( single_rd < best_pred_rd [ SINGLE_REFERENCE ] ) best_pred_rd [ SINGLE_REFERENCE ] = single_rd ;\n }\n else {\n if ( single_rd < best_pred_rd [ COMPOUND_REFERENCE ] ) best_pred_rd [ COMPOUND_REFERENCE ] = single_rd ;\n }\n if ( hybrid_rd < best_pred_rd [ REFERENCE_MODE_SELECT ] ) best_pred_rd [ REFERENCE_MODE_SELECT ] = hybrid_rd ;\n if ( ! mode_excluded && cm -> interp_filter != BILINEAR ) {\n int64_t ref = rd_opt -> filter_cache [ cm -> interp_filter == SWITCHABLE ? SWITCHABLE_FILTERS : cm -> interp_filter ] ;\n for ( i = 0 ;\n i < SWITCHABLE_FILTER_CONTEXTS ;\n i ++ ) {\n int64_t adj_rd ;\n if ( ref == INT64_MAX ) adj_rd = 0 ;\n else if ( rd_opt -> filter_cache [ i ] == INT64_MAX ) adj_rd = rd_opt -> mask_filter - ref + 10 ;\n else adj_rd = rd_opt -> filter_cache [ i ] - ref ;\n adj_rd += this_rd ;\n best_filter_rd [ i ] = MIN ( best_filter_rd [ i ] , adj_rd ) ;\n }\n }\n }\n if ( bsize < BLOCK_32X32 ) {\n if ( bsize < BLOCK_16X16 ) tx_cache [ ALLOW_16X16 ] = tx_cache [ ALLOW_8X8 ] ;\n tx_cache [ ALLOW_32X32 ] = tx_cache [ ALLOW_16X16 ] ;\n }\n if ( ! mode_excluded && this_rd != INT64_MAX ) {\n for ( i = 0 ;\n i < TX_MODES && tx_cache [ i ] < INT64_MAX ;\n i ++ ) {\n int64_t adj_rd = INT64_MAX ;\n adj_rd = this_rd + tx_cache [ i ] - tx_cache [ cm -> tx_mode ] ;\n if ( adj_rd < best_tx_rd [ i ] ) best_tx_rd [ i ] = adj_rd ;\n }\n }\n if ( early_term ) break ;\n if ( x -> skip && ! comp_pred ) break ;\n }\n if ( best_mbmode . mode == NEWMV ) {\n const MV_REFERENCE_FRAME refs [ 2 ] = {\n best_mbmode . ref_frame [ 0 ] , best_mbmode . ref_frame [ 1 ] }\n ;\n int comp_pred_mode = refs [ 1 ] > INTRA_FRAME ;\n if ( frame_mv [ NEARESTMV ] [ refs [ 0 ] ] . as_int == best_mbmode . mv [ 0 ] . as_int && ( ( comp_pred_mode && frame_mv [ NEARESTMV ] [ refs [ 1 ] ] . as_int == best_mbmode . mv [ 1 ] . as_int ) || ! comp_pred_mode ) ) best_mbmode . mode = NEARESTMV ;\n else if ( frame_mv [ NEARMV ] [ refs [ 0 ] ] . as_int == best_mbmode . mv [ 0 ] . as_int && ( ( comp_pred_mode && frame_mv [ NEARMV ] [ refs [ 1 ] ] . as_int == best_mbmode . mv [ 1 ] . as_int ) || ! comp_pred_mode ) ) best_mbmode . mode = NEARMV ;\n else if ( best_mbmode . mv [ 0 ] . as_int == 0 && ( ( comp_pred_mode && best_mbmode . mv [ 1 ] . as_int == 0 ) || ! comp_pred_mode ) ) best_mbmode . mode = ZEROMV ;\n }\n if ( best_mode_index < 0 || best_rd >= best_rd_so_far ) return INT64_MAX ;\n if ( cpi -> sf . use_uv_intra_rd_estimate ) {\n if ( best_mbmode . ref_frame [ 0 ] == INTRA_FRAME ) {\n TX_SIZE uv_tx_size ;\n * mbmi = best_mbmode ;\n uv_tx_size = get_uv_tx_size ( mbmi , & xd -> plane [ 1 ] ) ;\n rd_pick_intra_sbuv_mode ( cpi , x , ctx , & rate_uv_intra [ uv_tx_size ] , & rate_uv_tokenonly [ uv_tx_size ] , & dist_uv [ uv_tx_size ] , & skip_uv [ uv_tx_size ] , bsize < BLOCK_8X8 ? BLOCK_8X8 : bsize , uv_tx_size ) ;\n }\n }\n assert ( ( cm -> interp_filter == SWITCHABLE ) || ( cm -> interp_filter == best_mbmode . interp_filter ) || ! is_inter_block ( & best_mbmode ) ) ;\n if ( ! cpi -> rc . is_src_frame_alt_ref ) update_rd_thresh_fact ( cpi , bsize , best_mode_index ) ;\n * mbmi = best_mbmode ;\n x -> skip |= best_skip2 ;\n for ( i = 0 ;\n i < REFERENCE_MODES ;\n ++ i ) {\n if ( best_pred_rd [ i ] == INT64_MAX ) best_pred_diff [ i ] = INT_MIN ;\n else best_pred_diff [ i ] = best_rd - best_pred_rd [ i ] ;\n }\n if ( ! x -> skip ) {\n for ( i = 0 ;\n i < SWITCHABLE_FILTER_CONTEXTS ;\n i ++ ) {\n if ( best_filter_rd [ i ] == INT64_MAX ) best_filter_diff [ i ] = 0 ;\n else best_filter_diff [ i ] = best_rd - best_filter_rd [ i ] ;\n }\n if ( cm -> interp_filter == SWITCHABLE ) assert ( best_filter_diff [ SWITCHABLE_FILTERS ] == 0 ) ;\n for ( i = 0 ;\n i < TX_MODES ;\n i ++ ) {\n if ( best_tx_rd [ i ] == INT64_MAX ) best_tx_diff [ i ] = 0 ;\n else best_tx_diff [ i ] = best_rd - best_tx_rd [ i ] ;\n }\n }\n else {\n vp9_zero ( best_filter_diff ) ;\n vp9_zero ( best_tx_diff ) ;\n }\n x -> skip |= best_mode_skippable ;\n store_coding_context ( x , ctx , best_mode_index , best_pred_diff , best_tx_diff , best_filter_diff , best_mode_skippable ) ;\n return best_rd ;\n }"}
{"idx": 5318, "target": 0, "func": "static hb_ ## name ## _t * _hb_ ## name ## _reference ( const hb_ ## name ## _t * l ) {\n hb_ ## name ## _t * c = ( hb_ ## name ## _t * ) calloc ( 1 , sizeof ( hb_ ## name ## _t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * l ;\n return c ;\n }\n static void _hb_ ## name ## _destroy ( hb_ ## name ## _t * l ) {\n free ( l ) ;\n }\n HB_DEFINE_BOXED_TYPE ( name , _hb_ ## name ## _reference , _hb_ ## name ## _destroy ) ;\n HB_DEFINE_OBJECT_TYPE ( buffer ) HB_DEFINE_OBJECT_TYPE ( blob ) HB_DEFINE_OBJECT_TYPE ( face ) HB_DEFINE_OBJECT_TYPE ( font ) HB_DEFINE_OBJECT_TYPE ( font_funcs ) HB_DEFINE_OBJECT_TYPE ( set ) HB_DEFINE_OBJECT_TYPE ( shape_plan ) HB_DEFINE_OBJECT_TYPE ( unicode_funcs ) HB_DEFINE_VALUE_TYPE ( feature ) HB_DEFINE_VALUE_TYPE ( glyph_info )"}
{"idx": 5319, "target": 0, "func": "static void _hb_face_for_data_closure_destroy ( hb_face_for_data_closure_t * closure ) {\n hb_blob_destroy ( closure -> blob ) ;\n free ( closure ) ;\n }"}
{"idx": 5320, "target": 0, "func": "static int dissect_h225_OCTET_STRING_SIZE_1_131 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 1 , 131 , FALSE , NULL ) ;\n return offset ;\n }"}
{"idx": 5321, "target": 0, "func": "REGRESSION_TEST ( SDK_API_TSContSchedule ) ( RegressionTest * test , int , int * pstatus ) {\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n SDK_ContSchedule_test = test ;\n SDK_ContSchedule_pstatus = pstatus ;\n TSCont contp = TSContCreate ( cont_schedule_handler , TSMutexCreate ( ) ) ;\n TSCont contp2 = TSContCreate ( cont_schedule_handler , TSMutexCreate ( ) ) ;\n TSContSchedule ( contp , 0 , TS_THREAD_POOL_DEFAULT ) ;\n TSContSchedule ( contp2 , 10 , TS_THREAD_POOL_DEFAULT ) ;\n }"}
{"idx": 5322, "target": 0, "func": "static real Blend ( real u [ MmMax ] , struct pscontext * context ) {\n real sum = u [ 0 ] ;\n int i ;\n for ( i = 1 ;\n i < context -> instance_count ;\n ++ i ) sum += context -> blend_values [ i ] * u [ i ] ;\n return ( sum ) ;\n }"}
{"idx": 5323, "target": 0, "func": "static int vvalue_tvb_lpstr ( tvbuff_t * tvb , int offset , void * val ) {\n struct data_str * str = ( struct data_str * ) val ;\n gint len ;\n str -> len = tvb_get_letohl ( tvb , offset ) ;\n str -> str = tvb_get_stringz_enc ( wmem_packet_scope ( ) , tvb , offset + 4 , & len , ENC_ASCII | ENC_LITTLE_ENDIAN ) ;\n return 4 + len ;\n }"}
{"idx": 5324, "target": 0, "func": "static void pmac_ide_writeb ( void * opaque , hwaddr addr , uint32_t val ) {\n MACIOIDEState * d = opaque ;\n addr = ( addr & 0xFFF ) >> 4 ;\n switch ( addr ) {\n case 1 ... 7 : ide_ioport_write ( & d -> bus , addr , val ) ;\n break ;\n case 8 : case 22 : ide_cmd_write ( & d -> bus , 0 , val ) ;\n break ;\n default : break ;\n }\n }"}
{"idx": 5325, "target": 0, "func": "void vp8_subtract_mby_c ( short * diff , unsigned char * src , int src_stride , unsigned char * pred , int pred_stride ) {\n int r , c ;\n for ( r = 0 ;\n r < 16 ;\n r ++ ) {\n for ( c = 0 ;\n c < 16 ;\n c ++ ) {\n diff [ c ] = src [ c ] - pred [ c ] ;\n }\n diff += 16 ;\n pred += pred_stride ;\n src += src_stride ;\n }\n }"}
{"idx": 5326, "target": 0, "func": "static void ohci_eof_timer ( OHCIState * ohci ) {\n ohci -> sof_time = qemu_clock_get_ns ( QEMU_CLOCK_VIRTUAL ) ;\n timer_mod ( ohci -> eof_timer , ohci -> sof_time + usb_frame_time ) ;\n }"}
{"idx": 5327, "target": 0, "func": "static void U_CALLCONV _UTF7ToUnicodeWithOffsets ( UConverterToUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n UConverter * cnv ;\n const uint8_t * source , * sourceLimit ;\n UChar * target ;\n const UChar * targetLimit ;\n int32_t * offsets ;\n uint8_t * bytes ;\n uint8_t byteIndex ;\n int32_t length , targetCapacity ;\n uint16_t bits ;\n int8_t base64Counter ;\n UBool inDirectMode ;\n int8_t base64Value ;\n int32_t sourceIndex , nextSourceIndex ;\n uint8_t b ;\n cnv = pArgs -> converter ;\n source = ( const uint8_t * ) pArgs -> source ;\n sourceLimit = ( const uint8_t * ) pArgs -> sourceLimit ;\n target = pArgs -> target ;\n targetLimit = pArgs -> targetLimit ;\n offsets = pArgs -> offsets ;\n {\n uint32_t status = cnv -> toUnicodeStatus ;\n inDirectMode = ( UBool ) ( ( status >> 24 ) & 1 ) ;\n base64Counter = ( int8_t ) ( status >> 16 ) ;\n bits = ( uint16_t ) status ;\n }\n bytes = cnv -> toUBytes ;\n byteIndex = cnv -> toULength ;\n sourceIndex = byteIndex == 0 ? 0 : - 1 ;\n nextSourceIndex = 0 ;\n if ( inDirectMode ) {\n directMode : byteIndex = 0 ;\n length = ( int32_t ) ( sourceLimit - source ) ;\n targetCapacity = ( int32_t ) ( targetLimit - target ) ;\n if ( length > targetCapacity ) {\n length = targetCapacity ;\n }\n while ( length > 0 ) {\n b = * source ++ ;\n if ( ! isLegalUTF7 ( b ) ) {\n bytes [ 0 ] = b ;\n byteIndex = 1 ;\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n else if ( b != PLUS ) {\n * target ++ = b ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ++ ;\n }\n }\n else {\n nextSourceIndex = ++ sourceIndex ;\n inDirectMode = FALSE ;\n byteIndex = 0 ;\n bits = 0 ;\n base64Counter = - 1 ;\n goto unicodeMode ;\n }\n -- length ;\n }\n if ( source < sourceLimit && target >= targetLimit ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n else {\n unicodeMode : while ( source < sourceLimit ) {\n if ( target < targetLimit ) {\n bytes [ byteIndex ++ ] = b = * source ++ ;\n ++ nextSourceIndex ;\n base64Value = - 3 ;\n if ( b >= 126 || ( base64Value = fromBase64 [ b ] ) == - 3 || base64Value == - 1 ) {\n inDirectMode = TRUE ;\n if ( base64Counter == - 1 ) {\n -- source ;\n bytes [ 0 ] = PLUS ;\n byteIndex = 1 ;\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n else if ( bits != 0 ) {\n -- source ;\n -- byteIndex ;\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n else {\n if ( base64Value == - 3 ) {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n else {\n -- source ;\n sourceIndex = nextSourceIndex - 1 ;\n goto directMode ;\n }\n }\n }\n else if ( base64Value >= 0 ) {\n switch ( base64Counter ) {\n case - 1 : case 0 : bits = base64Value ;\n base64Counter = 1 ;\n break ;\n case 1 : case 3 : case 4 : case 6 : bits = ( uint16_t ) ( ( bits << 6 ) | base64Value ) ;\n ++ base64Counter ;\n break ;\n case 2 : * target ++ = ( UChar ) ( ( bits << 4 ) | ( base64Value >> 2 ) ) ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n sourceIndex = nextSourceIndex - 1 ;\n }\n bytes [ 0 ] = b ;\n byteIndex = 1 ;\n bits = ( uint16_t ) ( base64Value & 3 ) ;\n base64Counter = 3 ;\n break ;\n case 5 : * target ++ = ( UChar ) ( ( bits << 2 ) | ( base64Value >> 4 ) ) ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n sourceIndex = nextSourceIndex - 1 ;\n }\n bytes [ 0 ] = b ;\n byteIndex = 1 ;\n bits = ( uint16_t ) ( base64Value & 15 ) ;\n base64Counter = 6 ;\n break ;\n case 7 : * target ++ = ( UChar ) ( ( bits << 6 ) | base64Value ) ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n sourceIndex = nextSourceIndex ;\n }\n byteIndex = 0 ;\n bits = 0 ;\n base64Counter = 0 ;\n break ;\n default : break ;\n }\n }\n else {\n inDirectMode = TRUE ;\n if ( base64Counter == - 1 ) {\n * target ++ = PLUS ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex - 1 ;\n }\n }\n else {\n if ( bits != 0 ) {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n }\n sourceIndex = nextSourceIndex ;\n goto directMode ;\n }\n }\n else {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n }\n if ( U_SUCCESS ( * pErrorCode ) && pArgs -> flush && source == sourceLimit && bits == 0 ) {\n byteIndex = 0 ;\n }\n cnv -> toUnicodeStatus = ( ( uint32_t ) inDirectMode << 24 ) | ( ( uint32_t ) ( ( uint8_t ) base64Counter ) << 16 ) | ( uint32_t ) bits ;\n cnv -> toULength = byteIndex ;\n pArgs -> source = ( const char * ) source ;\n pArgs -> target = target ;\n pArgs -> offsets = offsets ;\n return ;\n }"}
{"idx": 5328, "target": 0, "func": "TEST_F ( ExtensionServiceSyncTest , GetSyncAppDataUserSettingsOnExtensionMoved ) {\n InitializeEmptyExtensionService ( ) ;\n const size_t kAppCount = 3 ;\n const Extension * apps [ kAppCount ] ;\n apps [ 0 ] = PackAndInstallCRX ( data_dir ( ) . AppendASCII ( \"app1\" ) , INSTALL_NEW ) ;\n apps [ 1 ] = PackAndInstallCRX ( data_dir ( ) . AppendASCII ( \"app2\" ) , INSTALL_NEW ) ;\n apps [ 2 ] = PackAndInstallCRX ( data_dir ( ) . AppendASCII ( \"app4\" ) , INSTALL_NEW ) ;\n for ( size_t i = 0 ;\n i < kAppCount ;\n ++ i ) {\n ASSERT_TRUE ( apps [ i ] ) ;\n ASSERT_TRUE ( apps [ i ] -> is_app ( ) ) ;\n }\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : APPS , syncer : : SyncDataList ( ) , base : : WrapUnique ( new syncer : : FakeSyncChangeProcessor ( ) ) , base : : WrapUnique ( new syncer : : SyncErrorFactoryMock ( ) ) ) ;\n ExtensionSystem : : Get ( service ( ) -> GetBrowserContext ( ) ) -> app_sorting ( ) -> OnExtensionMoved ( apps [ 0 ] -> id ( ) , apps [ 1 ] -> id ( ) , apps [ 2 ] -> id ( ) ) ;\n {\n syncer : : SyncDataList list = extension_sync_service ( ) -> GetAllSyncData ( syncer : : APPS ) ;\n ASSERT_EQ ( list . size ( ) , 3U ) ;\n std : : unique_ptr < ExtensionSyncData > data [ kAppCount ] ;\n for ( size_t i = 0 ;\n i < kAppCount ;\n ++ i ) {\n data [ i ] = ExtensionSyncData : : CreateFromSyncData ( list [ i ] ) ;\n ASSERT_TRUE ( data [ i ] . get ( ) ) ;\n }\n syncer : : StringOrdinal app_launch_ordinals [ kAppCount ] ;\n for ( size_t i = 0 ;\n i < kAppCount ;\n ++ i ) {\n for ( size_t j = 0 ;\n j < kAppCount ;\n ++ j ) {\n if ( apps [ i ] -> id ( ) == data [ j ] -> id ( ) ) app_launch_ordinals [ i ] = data [ j ] -> app_launch_ordinal ( ) ;\n }\n }\n EXPECT_TRUE ( app_launch_ordinals [ 1 ] . LessThan ( app_launch_ordinals [ 0 ] ) ) ;\n EXPECT_TRUE ( app_launch_ordinals [ 0 ] . LessThan ( app_launch_ordinals [ 2 ] ) ) ;\n }\n }"}
{"idx": 5329, "target": 0, "func": "int_node * create_int_node ( int val ) {\n int_node * i_n ;\n i_n = emalloc_zero ( sizeof ( * i_n ) ) ;\n i_n -> i = val ;\n return i_n ;\n }"}
{"idx": 5330, "target": 0, "func": "static int dissect_h225_EnumeratedParameter ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 842 \"./asn1/h225/h225.cnf\" gef_ctx_t * parent_gefx ;\n parent_gefx = gef_ctx_get ( actx -> private_data ) ;\n actx -> private_data = gef_ctx_alloc ( parent_gefx , NULL ) ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_EnumeratedParameter , EnumeratedParameter_sequence ) ;\n # line 847 \"./asn1/h225/h225.cnf\" actx -> private_data = parent_gefx ;\n return offset ;\n }"}
{"idx": 5331, "target": 0, "func": "void vp9_pick_filter_level ( const YV12_BUFFER_CONFIG * sd , VP9_COMP * cpi , LPF_PICK_METHOD method ) {\n VP9_COMMON * const cm = & cpi -> common ;\n struct loopfilter * const lf = & cm -> lf ;\n lf -> sharpness_level = cm -> frame_type == KEY_FRAME ? 0 : cpi -> oxcf . sharpness ;\n if ( method == LPF_PICK_MINIMAL_LPF && lf -> filter_level ) {\n lf -> filter_level = 0 ;\n }\n else if ( method >= LPF_PICK_FROM_Q ) {\n const int min_filter_level = 0 ;\n const int max_filter_level = get_max_filter_level ( cpi ) ;\n const int q = vp9_ac_quant ( cm -> base_qindex , 0 , cm -> bit_depth ) ;\n int filt_guess = ROUND_POWER_OF_TWO ( q * 20723 + 1015158 , 18 ) ;\n if ( cm -> frame_type == KEY_FRAME ) filt_guess -= 4 ;\n lf -> filter_level = clamp ( filt_guess , min_filter_level , max_filter_level ) ;\n }\n else {\n lf -> filter_level = search_filter_level ( sd , cpi , method == LPF_PICK_FROM_SUBIMAGE ) ;\n }\n }"}
{"idx": 5332, "target": 0, "func": "void get_op_opfamily_properties ( Oid opno , Oid opfamily , bool ordering_op , int * strategy , Oid * lefttype , Oid * righttype ) {\n HeapTuple tp ;\n Form_pg_amop amop_tup ;\n tp = SearchSysCache3 ( AMOPOPID , ObjectIdGetDatum ( opno ) , CharGetDatum ( ordering_op ? AMOP_ORDER : AMOP_SEARCH ) , ObjectIdGetDatum ( opfamily ) ) ;\n if ( ! HeapTupleIsValid ( tp ) ) elog ( ERROR , \"operator %u is not a member of opfamily %u\" , opno , opfamily ) ;\n amop_tup = ( Form_pg_amop ) GETSTRUCT ( tp ) ;\n * strategy = amop_tup -> amopstrategy ;\n * lefttype = amop_tup -> amoplefttype ;\n * righttype = amop_tup -> amoprighttype ;\n ReleaseSysCache ( tp ) ;\n }"}
{"idx": 5333, "target": 0, "func": "TEST_F ( PromoResourceServiceTest , NotificationPromoTest ) {\n NotificationPromoTest promo_test ;\n promo_test . Init ( \"{\n\" \" \\\"ntp_notification_promo\\\": [\" \" {\n\" \" \\\"date\\\":\" \" [\" \" {\n\" \" \\\"start\\\":\\\"3 Aug 1999 9:26:06 GMT\\\",\" \" \\\"end\\\":\\\"$1\\\"\" \" }\n\" \" ],\" \" \\\"strings\\\":\" \" {\n\" \" \\\"NTP4_HOW_DO_YOU_FEEL_ABOUT_CHROME\\\":\" \" \\\"What do you think of Chrome?\\\"\" \" }\n,\" \" \\\"grouping\\\":\" \" {\n\" \" \\\"buckets\\\":1000,\" \" \\\"segment\\\":200,\" \" \\\"increment\\\":100,\" \" \\\"increment_frequency\\\":3600,\" \" \\\"increment_max\\\":400\" \" }\n,\" \" \\\"payload\\\":\" \" {\n\" \" \\\"days_active\\\":7,\" \" \\\"install_age_days\\\":21\" \" }\n,\" \" \\\"max_views\\\":30\" \" }\n\" \" ]\" \"}\n\" , \"What do you think of Chrome?\" , 933672366 , 1000 , 200 , 100 , 3600 , 400 , 30 ) ;\n promo_test . InitPromoFromJson ( true ) ;\n promo_test . InitPromoFromJson ( false ) ;\n promo_test . TestInitFromPrefs ( ) ;\n promo_test . TestGroup ( ) ;\n promo_test . TestViews ( ) ;\n promo_test . TestClosed ( ) ;\n promo_test . TestPromoText ( ) ;\n promo_test . TestTime ( ) ;\n promo_test . TestIncrement ( ) ;\n }"}
{"idx": 5334, "target": 0, "func": "void hb_face_set_upem ( hb_face_t * face , unsigned int upem ) {\n if ( face -> immutable ) return ;\n face -> upem = upem ;\n }"}
{"idx": 5335, "target": 0, "func": "BN_ULONG bn_mul_add_words ( BN_ULONG * rp , const BN_ULONG * ap , int num , BN_ULONG w ) {\n BN_ULONG c = 0 ;\n BN_ULONG bl , bh ;\n assert ( num >= 0 ) ;\n if ( num <= 0 ) return ( ( BN_ULONG ) 0 ) ;\n bl = LBITS ( w ) ;\n bh = HBITS ( w ) ;\n # ifndef OPENSSL_SMALL_FOOTPRINT while ( num & ~ 3 ) {\n mul_add ( rp [ 0 ] , ap [ 0 ] , bl , bh , c ) ;\n mul_add ( rp [ 1 ] , ap [ 1 ] , bl , bh , c ) ;\n mul_add ( rp [ 2 ] , ap [ 2 ] , bl , bh , c ) ;\n mul_add ( rp [ 3 ] , ap [ 3 ] , bl , bh , c ) ;\n ap += 4 ;\n rp += 4 ;\n num -= 4 ;\n }\n # endif while ( num ) {\n mul_add ( rp [ 0 ] , ap [ 0 ] , bl , bh , c ) ;\n ap ++ ;\n rp ++ ;\n num -- ;\n }\n return ( c ) ;\n }"}
{"idx": 5336, "target": 0, "func": "void mime_init_cache_control_cooking_masks ( ) {\n static struct {\n const char * name ;\n uint32_t mask ;\n }\n cc_mask_table [ ] = {\n {\n \"max-age\" , MIME_COOKED_MASK_CC_MAX_AGE }\n , {\n \"no-cache\" , MIME_COOKED_MASK_CC_NO_CACHE }\n , {\n \"no-store\" , MIME_COOKED_MASK_CC_NO_STORE }\n , {\n \"no-transform\" , MIME_COOKED_MASK_CC_NO_TRANSFORM }\n , {\n \"max-stale\" , MIME_COOKED_MASK_CC_MAX_STALE }\n , {\n \"min-fresh\" , MIME_COOKED_MASK_CC_MIN_FRESH }\n , {\n \"only-if-cached\" , MIME_COOKED_MASK_CC_ONLY_IF_CACHED }\n , {\n \"public\" , MIME_COOKED_MASK_CC_PUBLIC }\n , {\n \"private\" , MIME_COOKED_MASK_CC_PRIVATE }\n , {\n \"must-revalidate\" , MIME_COOKED_MASK_CC_MUST_REVALIDATE }\n , {\n \"proxy-revalidate\" , MIME_COOKED_MASK_CC_PROXY_REVALIDATE }\n , {\n \"s-maxage\" , MIME_COOKED_MASK_CC_S_MAXAGE }\n , {\n \"need-revalidate-once\" , MIME_COOKED_MASK_CC_NEED_REVALIDATE_ONCE }\n , {\n nullptr , 0 }\n }\n ;\n for ( int i = 0 ;\n cc_mask_table [ i ] . name != nullptr ;\n i ++ ) {\n const char * wks = hdrtoken_string_to_wks ( cc_mask_table [ i ] . name ) ;\n HdrTokenHeapPrefix * p = hdrtoken_wks_to_prefix ( wks ) ;\n p -> wks_type_specific . u . cache_control . cc_mask = cc_mask_table [ i ] . mask ;\n }\n }"}
{"idx": 5337, "target": 0, "func": "static void dissect_coap_opt_location_path ( tvbuff_t * tvb , proto_item * head_item , proto_tree * subtree , gint offset , gint opt_length , int hf ) {\n const guint8 * str = NULL ;\n if ( opt_length == 0 ) {\n str = nullstr ;\n }\n else {\n str = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset , opt_length , ENC_ASCII ) ;\n }\n proto_tree_add_string ( subtree , hf , tvb , offset , opt_length , str ) ;\n proto_item_append_text ( head_item , \": %s\" , str ) ;\n }"}
{"idx": 5338, "target": 0, "func": "int evhttp_accept_socket ( struct evhttp * http , int fd ) {\n struct evhttp_bound_socket * bound ;\n struct event * ev ;\n int res ;\n bound = malloc ( sizeof ( struct evhttp_bound_socket ) ) ;\n if ( bound == NULL ) return ( - 1 ) ;\n ev = & bound -> bind_ev ;\n event_set ( ev , fd , EV_READ | EV_PERSIST , accept_socket , http ) ;\n EVHTTP_BASE_SET ( http , ev ) ;\n res = event_add ( ev , NULL ) ;\n if ( res == - 1 ) {\n free ( bound ) ;\n return ( - 1 ) ;\n }\n TAILQ_INSERT_TAIL ( & http -> sockets , bound , next ) ;\n return ( 0 ) ;\n }"}
{"idx": 5339, "target": 0, "func": "int vp8_reverse_trans ( int x ) {\n int i ;\n for ( i = 0 ;\n i < 64 ;\n i ++ ) if ( q_trans [ i ] >= x ) return i ;\n return 63 ;\n }"}
{"idx": 5340, "target": 1, "func": "int ff_ivi_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n IVI45DecContext * ctx = avctx -> priv_data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n int result , p , b ;\n init_get_bits ( & ctx -> gb , buf , buf_size * 8 ) ;\n ctx -> frame_data = buf ;\n ctx -> frame_size = buf_size ;\n result = ctx -> decode_pic_hdr ( ctx , avctx ) ;\n if ( result ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error while decoding picture header: %d\\n\" , result ) ;\n return - 1 ;\n }\n if ( ctx -> gop_invalid ) return AVERROR_INVALIDDATA ;\n if ( ctx -> gop_flags & IVI5_IS_PROTECTED ) {\n av_log ( avctx , AV_LOG_ERROR , \"Password-protected clip!\\n\" ) ;\n return - 1 ;\n }\n ctx -> switch_buffers ( ctx ) ;\n if ( ctx -> is_nonnull_frame ( ctx ) ) {\n for ( p = 0 ;\n p < 3 ;\n p ++ ) {\n for ( b = 0 ;\n b < ctx -> planes [ p ] . num_bands ;\n b ++ ) {\n result = decode_band ( ctx , & ctx -> planes [ p ] . bands [ b ] , avctx ) ;\n if ( result ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error while decoding band: %d, plane: %d\\n\" , b , p ) ;\n return - 1 ;\n }\n }\n }\n }\n if ( avctx -> codec_id == AV_CODEC_ID_INDEO4 && ctx -> frame_type == 0 ) {\n while ( get_bits ( & ctx -> gb , 8 ) ) ;\n skip_bits_long ( & ctx -> gb , 64 ) ;\n if ( get_bits_left ( & ctx -> gb ) > 18 && show_bits ( & ctx -> gb , 18 ) == 0x3FFF8 ) av_log ( avctx , AV_LOG_ERROR , \"Buffer contains IP frames!\\n\" ) ;\n }\n if ( ctx -> frame . data [ 0 ] ) avctx -> release_buffer ( avctx , & ctx -> frame ) ;\n ctx -> frame . reference = 0 ;\n avcodec_set_dimensions ( avctx , ctx -> planes [ 0 ] . width , ctx -> planes [ 0 ] . height ) ;\n if ( ( result = ff_get_buffer ( avctx , & ctx -> frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return result ;\n }\n if ( ctx -> is_scalable ) {\n if ( avctx -> codec_id == AV_CODEC_ID_INDEO4 ) ff_ivi_recompose_haar ( & ctx -> planes [ 0 ] , ctx -> frame . data [ 0 ] , ctx -> frame . linesize [ 0 ] ) ;\n else ff_ivi_recompose53 ( & ctx -> planes [ 0 ] , ctx -> frame . data [ 0 ] , ctx -> frame . linesize [ 0 ] ) ;\n }\n else {\n ivi_output_plane ( & ctx -> planes [ 0 ] , ctx -> frame . data [ 0 ] , ctx -> frame . linesize [ 0 ] ) ;\n }\n ivi_output_plane ( & ctx -> planes [ 2 ] , ctx -> frame . data [ 1 ] , ctx -> frame . linesize [ 1 ] ) ;\n ivi_output_plane ( & ctx -> planes [ 1 ] , ctx -> frame . data [ 2 ] , ctx -> frame . linesize [ 2 ] ) ;\n * got_frame = 1 ;\n * ( AVFrame * ) data = ctx -> frame ;\n return buf_size ;\n }"}
{"idx": 5341, "target": 0, "func": "static void main_cpu_reset ( void * opaque ) {\n SPARCCPU * cpu = opaque ;\n CPUState * cs = CPU ( cpu ) ;\n cpu_reset ( cs ) ;\n cs -> halted = 0 ;\n }"}
{"idx": 5342, "target": 0, "func": "int ztokenexec_continue ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n scanner_state * pstate ;\n check_stype ( * op , st_scanner_state_dynamic ) ;\n pstate = r_ptr ( op , scanner_state ) ;\n return tokenexec_continue ( i_ctx_p , pstate , false ) ;\n }"}
{"idx": 5343, "target": 0, "func": "static void nvic_writel ( nvic_state * s , uint32_t offset , uint32_t value ) {\n ARMCPU * cpu ;\n uint32_t oldval ;\n switch ( offset ) {\n case 0x10 : oldval = s -> systick . control ;\n s -> systick . control &= 0xfffffff8 ;\n s -> systick . control |= value & 7 ;\n if ( ( oldval ^ value ) & SYSTICK_ENABLE ) {\n int64_t now = qemu_get_clock_ns ( vm_clock ) ;\n if ( value & SYSTICK_ENABLE ) {\n if ( s -> systick . tick ) {\n s -> systick . tick += now ;\n qemu_mod_timer ( s -> systick . timer , s -> systick . tick ) ;\n }\n else {\n systick_reload ( s , 1 ) ;\n }\n }\n else {\n qemu_del_timer ( s -> systick . timer ) ;\n s -> systick . tick -= now ;\n if ( s -> systick . tick < 0 ) s -> systick . tick = 0 ;\n }\n }\n else if ( ( oldval ^ value ) & SYSTICK_CLKSOURCE ) {\n systick_reload ( s , 1 ) ;\n }\n break ;\n case 0x14 : s -> systick . reload = value ;\n break ;\n case 0x18 : systick_reload ( s , 1 ) ;\n s -> systick . control &= ~ SYSTICK_COUNTFLAG ;\n break ;\n case 0xd04 : if ( value & ( 1 << 31 ) ) {\n armv7m_nvic_set_pending ( s , ARMV7M_EXCP_NMI ) ;\n }\n if ( value & ( 1 << 28 ) ) {\n armv7m_nvic_set_pending ( s , ARMV7M_EXCP_PENDSV ) ;\n }\n else if ( value & ( 1 << 27 ) ) {\n s -> gic . irq_state [ ARMV7M_EXCP_PENDSV ] . pending = 0 ;\n gic_update ( & s -> gic ) ;\n }\n if ( value & ( 1 << 26 ) ) {\n armv7m_nvic_set_pending ( s , ARMV7M_EXCP_SYSTICK ) ;\n }\n else if ( value & ( 1 << 25 ) ) {\n s -> gic . irq_state [ ARMV7M_EXCP_SYSTICK ] . pending = 0 ;\n gic_update ( & s -> gic ) ;\n }\n break ;\n case 0xd08 : cpu = ARM_CPU ( current_cpu ) ;\n cpu -> env . v7m . vecbase = value & 0xffffff80 ;\n break ;\n case 0xd0c : if ( ( value >> 16 ) == 0x05fa ) {\n if ( value & 2 ) {\n qemu_log_mask ( LOG_UNIMP , \"VECTCLRACTIVE unimplemented\\n\" ) ;\n }\n if ( value & 5 ) {\n qemu_log_mask ( LOG_UNIMP , \"AIRCR system reset unimplemented\\n\" ) ;\n }\n }\n break ;\n case 0xd10 : case 0xd14 : qemu_log_mask ( LOG_UNIMP , \"NVIC: SCR and CCR unimplemented\\n\" ) ;\n break ;\n case 0xd24 : s -> gic . irq_state [ ARMV7M_EXCP_MEM ] . enabled = ( value & ( 1 << 16 ) ) != 0 ;\n s -> gic . irq_state [ ARMV7M_EXCP_BUS ] . enabled = ( value & ( 1 << 17 ) ) != 0 ;\n s -> gic . irq_state [ ARMV7M_EXCP_USAGE ] . enabled = ( value & ( 1 << 18 ) ) != 0 ;\n break ;\n case 0xd28 : case 0xd2c : case 0xd30 : case 0xd34 : case 0xd38 : case 0xd3c : qemu_log_mask ( LOG_UNIMP , \"NVIC: fault status registers unimplemented\\n\" ) ;\n break ;\n case 0xf00 : if ( ( value & 0x1ff ) < s -> num_irq ) {\n gic_set_pending_private ( & s -> gic , 0 , value & 0x1ff ) ;\n }\n break ;\n default : qemu_log_mask ( LOG_GUEST_ERROR , \"NVIC: Bad write offset 0x%x\\n\" , offset ) ;\n }\n }"}
{"idx": 5344, "target": 0, "func": "static int dissect_h225_SEQUENCE_OF_ConferenceIdentifier ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_SEQUENCE_OF_ConferenceIdentifier , SEQUENCE_OF_ConferenceIdentifier_sequence_of ) ;\n return offset ;\n }"}
{"idx": 5345, "target": 0, "func": "static guint16 de_auth_param_autn ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ ) {\n proto_item * item ;\n proto_tree * subtree ;\n item = proto_tree_add_item ( tree , hf_gsm_a_dtap_autn , tvb , offset , len , ENC_NA ) ;\n subtree = proto_item_add_subtree ( item , ett_gsm_dtap_elem [ DE_AUTH_PARAM_AUTN ] ) ;\n if ( len == 16 ) {\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_autn_sqn_xor_ak , tvb , offset , 6 , ENC_NA ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_autn_amf , tvb , offset + 6 , 2 , ENC_NA ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_autn_mac , tvb , offset + 8 , 8 , ENC_NA ) ;\n }\n else expert_add_info ( pinfo , item , & ei_gsm_a_dtap_autn ) ;\n return ( len ) ;\n }"}
{"idx": 5346, "target": 0, "func": "static void * Type_S15Fixed16_Read ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number * nItems , cmsUInt32Number SizeOfTag ) {\n cmsFloat64Number * array_double ;\n cmsUInt32Number i , n ;\n * nItems = 0 ;\n n = SizeOfTag / sizeof ( cmsUInt32Number ) ;\n array_double = ( cmsFloat64Number * ) _cmsCalloc ( self -> ContextID , n , sizeof ( cmsFloat64Number ) ) ;\n if ( array_double == NULL ) return NULL ;\n for ( i = 0 ;\n i < n ;\n i ++ ) {\n if ( ! _cmsRead15Fixed16Number ( io , & array_double [ i ] ) ) {\n _cmsFree ( self -> ContextID , array_double ) ;\n return NULL ;\n }\n }\n * nItems = n ;\n return ( void * ) array_double ;\n }"}
{"idx": 5347, "target": 0, "func": "gcry_sexp_t gcry_sexp_find_token ( const gcry_sexp_t list , const char * tok , size_t toklen ) {\n const byte * p ;\n DATALEN n ;\n if ( ! list ) return NULL ;\n if ( ! toklen ) toklen = strlen ( tok ) ;\n p = list -> d ;\n while ( * p != ST_STOP ) {\n if ( * p == ST_OPEN && p [ 1 ] == ST_DATA ) {\n const byte * head = p ;\n p += 2 ;\n memcpy ( & n , p , sizeof n ) ;\n p += sizeof n ;\n if ( n == toklen && ! memcmp ( p , tok , toklen ) ) {\n gcry_sexp_t newlist ;\n byte * d ;\n int level = 1 ;\n for ( p += n ;\n level ;\n p ++ ) {\n if ( * p == ST_DATA ) {\n memcpy ( & n , ++ p , sizeof n ) ;\n p += sizeof n + n ;\n p -- ;\n }\n else if ( * p == ST_OPEN ) {\n level ++ ;\n }\n else if ( * p == ST_CLOSE ) {\n level -- ;\n }\n else if ( * p == ST_STOP ) {\n BUG ( ) ;\n }\n }\n n = p - head ;\n newlist = gcry_malloc ( sizeof * newlist + n ) ;\n if ( ! newlist ) {\n return NULL ;\n }\n d = newlist -> d ;\n memcpy ( d , head , n ) ;\n d += n ;\n * d ++ = ST_STOP ;\n return normalize ( newlist ) ;\n }\n p += n ;\n }\n else if ( * p == ST_DATA ) {\n memcpy ( & n , ++ p , sizeof n ) ;\n p += sizeof n ;\n p += n ;\n }\n else p ++ ;\n }\n return NULL ;\n }"}
{"idx": 5348, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( CrossOriginXHR , FileAccessAllURLs ) {\n ASSERT_TRUE ( RunExtensionTest ( \"cross_origin_xhr/file_access_all_urls\" ) ) << message_ ;\n }"}
{"idx": 5349, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( ExternalProtocolDialogBrowserTest , TestCancel ) {\n ShowDialog ( ) ;\n EXPECT_TRUE ( dialog_ -> Cancel ( ) ) ;\n EXPECT_TRUE ( called_ ) ;\n EXPECT_FALSE ( accept_ ) ;\n EXPECT_TRUE ( cancel_ ) ;\n EXPECT_FALSE ( dont_block_ ) ;\n histogram_tester_ . ExpectBucketCount ( ExternalProtocolHandler : : kRememberCheckboxMetric , 0 , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( ExternalProtocolHandler : : kHandleStateMetric , ExternalProtocolHandler : : DONT_LAUNCH , 1 ) ;\n }"}
{"idx": 5350, "target": 0, "func": "void proto_reg_handoff_packetbb ( void ) {\n static gboolean packetbb_prefs_initialized = FALSE ;\n static dissector_handle_t packetbb_handle ;\n static guint packetbb_udp_port ;\n if ( ! packetbb_prefs_initialized ) {\n packetbb_handle = create_dissector_handle ( dissect_packetbb , proto_packetbb ) ;\n packetbb_prefs_initialized = TRUE ;\n }\n else {\n dissector_delete_uint ( \"udp.port\" , global_packetbb_port , packetbb_handle ) ;\n }\n packetbb_udp_port = global_packetbb_port ;\n dissector_add_uint ( \"udp.port\" , packetbb_udp_port , packetbb_handle ) ;\n }"}
{"idx": 5351, "target": 0, "func": "static void send_everything ( connection_t * c ) {\n avl_node_t * node , * node2 ;\n node_t * n ;\n subnet_t * s ;\n edge_t * e ;\n if ( tunnelserver ) {\n for ( node = myself -> subnet_tree -> head ;\n node ;\n node = node -> next ) {\n s = node -> data ;\n send_add_subnet ( c , s ) ;\n }\n return ;\n }\n for ( node = node_tree -> head ;\n node ;\n node = node -> next ) {\n n = node -> data ;\n for ( node2 = n -> subnet_tree -> head ;\n node2 ;\n node2 = node2 -> next ) {\n s = node2 -> data ;\n send_add_subnet ( c , s ) ;\n }\n for ( node2 = n -> edge_tree -> head ;\n node2 ;\n node2 = node2 -> next ) {\n e = node2 -> data ;\n send_add_edge ( c , e ) ;\n }\n }\n }"}
{"idx": 5352, "target": 0, "func": "void proto_reg_handoff_btvdp ( void ) {\n h263_handle = find_dissector_add_dependency ( \"h263\" , proto_btvdp ) ;\n mp4v_es_handle = find_dissector_add_dependency ( \"mp4v-es\" , proto_btvdp ) ;\n rtp_handle = find_dissector_add_dependency ( \"rtp\" , proto_btvdp ) ;\n dissector_add_string ( \"bluetooth.uuid\" , \"1303\" , btvdp_handle ) ;\n dissector_add_string ( \"bluetooth.uuid\" , \"1304\" , btvdp_handle ) ;\n dissector_add_string ( \"bluetooth.uuid\" , \"1305\" , btvdp_handle ) ;\n dissector_add_for_decode_as ( \"btl2cap.cid\" , btvdp_handle ) ;\n }"}
{"idx": 5353, "target": 0, "func": "static int current_has_perm ( const struct task_struct * tsk , u32 perms ) {\n u32 sid , tsid ;\n sid = current_sid ( ) ;\n tsid = task_sid ( tsk ) ;\n return avc_has_perm ( sid , tsid , SECCLASS_PROCESS , perms , NULL ) ;\n }"}
{"idx": 5354, "target": 0, "func": "int get_func_nargs ( Oid funcid ) {\n HeapTuple tp ;\n int result ;\n tp = SearchSysCache1 ( PROCOID , ObjectIdGetDatum ( funcid ) ) ;\n if ( ! HeapTupleIsValid ( tp ) ) elog ( ERROR , \"cache lookup failed for function %u\" , funcid ) ;\n result = ( ( Form_pg_proc ) GETSTRUCT ( tp ) ) -> pronargs ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }"}
{"idx": 5355, "target": 0, "func": "static void gsm_a_bssmap_stat_init ( new_stat_tap_ui * new_stat , new_stat_tap_gui_init_cb gui_callback , void * gui_data ) {\n gsm_a_stat_init ( new_stat , gui_callback , gui_data , \"GSM A-I/F BSSMAP Statistics\" , gsm_a_bssmap_msg_strings ) ;\n }"}
{"idx": 5356, "target": 0, "func": "gcry_error_t gcry_mpi_print ( enum gcry_mpi_format format , unsigned char * buffer , size_t buflen , size_t * nwritten , struct gcry_mpi * a ) {\n unsigned int nbits = mpi_get_nbits ( a ) ;\n size_t len ;\n size_t dummy_nwritten ;\n int negative ;\n if ( ! nwritten ) nwritten = & dummy_nwritten ;\n if ( a -> sign && _gcry_mpi_cmp_ui ( a , 0 ) ) negative = 1 ;\n else negative = 0 ;\n len = buflen ;\n * nwritten = 0 ;\n if ( format == GCRYMPI_FMT_STD ) {\n unsigned char * tmp ;\n int extra = 0 ;\n unsigned int n ;\n if ( negative ) return gcry_error ( GPG_ERR_INTERNAL ) ;\n tmp = _gcry_mpi_get_buffer ( a , 0 , & n , NULL ) ;\n if ( ! tmp ) return gpg_error_from_syserror ( ) ;\n if ( n && ( * tmp & 0x80 ) ) {\n n ++ ;\n extra = 1 ;\n }\n if ( buffer && n > len ) {\n gcry_free ( tmp ) ;\n return gcry_error ( GPG_ERR_TOO_SHORT ) ;\n }\n if ( buffer ) {\n unsigned char * s = buffer ;\n if ( extra ) * s ++ = 0 ;\n memcpy ( s , tmp , n - extra ) ;\n }\n gcry_free ( tmp ) ;\n * nwritten = n ;\n return 0 ;\n }\n else if ( format == GCRYMPI_FMT_USG ) {\n unsigned int n = ( nbits + 7 ) / 8 ;\n if ( buffer && n > len ) return gcry_error ( GPG_ERR_TOO_SHORT ) ;\n if ( buffer ) {\n unsigned char * tmp ;\n tmp = _gcry_mpi_get_buffer ( a , 0 , & n , NULL ) ;\n if ( ! tmp ) return gpg_error_from_syserror ( ) ;\n memcpy ( buffer , tmp , n ) ;\n gcry_free ( tmp ) ;\n }\n * nwritten = n ;\n return 0 ;\n }\n else if ( format == GCRYMPI_FMT_PGP ) {\n unsigned int n = ( nbits + 7 ) / 8 ;\n if ( negative ) return gcry_error ( GPG_ERR_INV_ARG ) ;\n if ( buffer && n + 2 > len ) return gcry_error ( GPG_ERR_TOO_SHORT ) ;\n if ( buffer ) {\n unsigned char * tmp ;\n unsigned char * s = buffer ;\n s [ 0 ] = nbits >> 8 ;\n s [ 1 ] = nbits ;\n tmp = _gcry_mpi_get_buffer ( a , 0 , & n , NULL ) ;\n if ( ! tmp ) return gpg_error_from_syserror ( ) ;\n memcpy ( s + 2 , tmp , n ) ;\n gcry_free ( tmp ) ;\n }\n * nwritten = n + 2 ;\n return 0 ;\n }\n else if ( format == GCRYMPI_FMT_SSH ) {\n unsigned char * tmp ;\n int extra = 0 ;\n unsigned int n ;\n if ( negative ) return gcry_error ( GPG_ERR_INTERNAL ) ;\n tmp = _gcry_mpi_get_buffer ( a , 0 , & n , NULL ) ;\n if ( ! tmp ) return gpg_error_from_syserror ( ) ;\n if ( n && ( * tmp & 0x80 ) ) {\n n ++ ;\n extra = 1 ;\n }\n if ( buffer && n + 4 > len ) {\n gcry_free ( tmp ) ;\n return gcry_error ( GPG_ERR_TOO_SHORT ) ;\n }\n if ( buffer ) {\n unsigned char * s = buffer ;\n * s ++ = n >> 24 ;\n * s ++ = n >> 16 ;\n * s ++ = n >> 8 ;\n * s ++ = n ;\n if ( extra ) * s ++ = 0 ;\n memcpy ( s , tmp , n - extra ) ;\n }\n gcry_free ( tmp ) ;\n * nwritten = 4 + n ;\n return 0 ;\n }\n else if ( format == GCRYMPI_FMT_HEX ) {\n unsigned char * tmp ;\n int i ;\n int extra = 0 ;\n unsigned int n = 0 ;\n tmp = _gcry_mpi_get_buffer ( a , 0 , & n , NULL ) ;\n if ( ! tmp ) return gpg_error_from_syserror ( ) ;\n if ( ! n || ( * tmp & 0x80 ) ) extra = 2 ;\n if ( buffer && 2 * n + extra + negative + 1 > len ) {\n gcry_free ( tmp ) ;\n return gcry_error ( GPG_ERR_TOO_SHORT ) ;\n }\n if ( buffer ) {\n unsigned char * s = buffer ;\n if ( negative ) * s ++ = '-' ;\n if ( extra ) {\n * s ++ = '0' ;\n * s ++ = '0' ;\n }\n for ( i = 0 ;\n i < n ;\n i ++ ) {\n unsigned int c = tmp [ i ] ;\n * s ++ = ( c >> 4 ) < 10 ? '0' + ( c >> 4 ) : 'A' + ( c >> 4 ) - 10 ;\n c &= 15 ;\n * s ++ = c < 10 ? '0' + c : 'A' + c - 10 ;\n }\n * s ++ = 0 ;\n * nwritten = s - buffer ;\n }\n else {\n * nwritten = 2 * n + extra + negative + 1 ;\n }\n gcry_free ( tmp ) ;\n return 0 ;\n }\n else return gcry_error ( GPG_ERR_INV_ARG ) ;\n }"}
{"idx": 5357, "target": 0, "func": "static uint8_t eeprom24c0x_read ( void ) {\n logout ( \"%u: scl = %u, sda = %u, data = 0x%02x\\n\" , eeprom . tick , eeprom . scl , eeprom . sda , eeprom . data ) ;\n return eeprom . sda ;\n }"}
{"idx": 5358, "target": 0, "func": "static int virtio_balloon_load ( QEMUFile * f , void * opaque , int version_id ) {\n VirtIOBalloon * s = opaque ;\n int ret ;\n if ( version_id != 1 ) return - EINVAL ;\n ret = virtio_load ( & s -> vdev , f ) ;\n if ( ret ) {\n return ret ;\n }\n s -> num_pages = qemu_get_be32 ( f ) ;\n s -> actual = qemu_get_be32 ( f ) ;\n return 0 ;\n }"}
{"idx": 5359, "target": 0, "func": "ink_time_t ink_cluster_time ( ) {\n int highest_delta ;\n ink_time_t local_time ;\n local_time = Thread : : get_hrtime ( ) / HRTIME_SECOND ;\n highest_delta = ( int ) HttpConfig : : m_master . cluster_time_delta ;\n Debug ( \"http_trans\" , \"[ink_cluster_time] local: %\" PRId64 \", highest_delta: %d, cluster: %\" PRId64 , ( int64_t ) local_time , highest_delta , ( int64_t ) ( local_time + ( ink_time_t ) highest_delta ) ) ;\n ink_assert ( highest_delta >= 0 ) ;\n return local_time + ( ink_time_t ) highest_delta ;\n }"}
{"idx": 5360, "target": 0, "func": "static int extend_path_list_container ( gs_main_instance * minst , gs_file_path * pfp ) {\n uint len = r_size ( & minst -> lib_path . container ) ;\n ref * paths , * opaths = minst -> lib_path . container . value . refs ;\n paths = ( ref * ) gs_alloc_byte_array ( minst -> heap , len + LIB_PATH_EXTEND , sizeof ( ref ) , \"extend_path_list_container array\" ) ;\n if ( paths == 0 ) {\n return_error ( gs_error_VMerror ) ;\n }\n make_array ( & minst -> lib_path . container , avm_foreign , len + LIB_PATH_EXTEND , paths ) ;\n make_array ( & minst -> lib_path . list , avm_foreign | a_readonly , 0 , minst -> lib_path . container . value . refs ) ;\n memcpy ( paths , opaths , len * sizeof ( ref ) ) ;\n r_set_size ( & minst -> lib_path . list , len ) ;\n gs_free_object ( minst -> heap , opaths , \"extend_path_list_container\" ) ;\n return ( 0 ) ;\n }"}
{"idx": 5361, "target": 0, "func": "TSReturnCode TSHttpTxnClientFdGet ( TSHttpTxn txnp , int * fdp ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) fdp ) == TS_SUCCESS ) ;\n TSHttpSsn ssnp = TSHttpTxnSsnGet ( txnp ) ;\n return TSHttpSsnClientFdGet ( ssnp , fdp ) ;\n }"}
{"idx": 5362, "target": 0, "func": "static VALUE ossl_x509name_init_i ( RB_BLOCK_CALL_FUNC_ARGLIST ( i , args ) ) {\n VALUE self = rb_ary_entry ( args , 0 ) ;\n VALUE template = rb_ary_entry ( args , 1 ) ;\n VALUE entry [ 3 ] ;\n Check_Type ( i , T_ARRAY ) ;\n entry [ 0 ] = rb_ary_entry ( i , 0 ) ;\n entry [ 1 ] = rb_ary_entry ( i , 1 ) ;\n entry [ 2 ] = rb_ary_entry ( i , 2 ) ;\n if ( NIL_P ( entry [ 2 ] ) ) entry [ 2 ] = rb_aref ( template , entry [ 0 ] ) ;\n if ( NIL_P ( entry [ 2 ] ) ) entry [ 2 ] = DEFAULT_OBJECT_TYPE ;\n ossl_x509name_add_entry ( 3 , entry , self ) ;\n return Qnil ;\n }"}
{"idx": 5363, "target": 0, "func": "void vp9_apply_encoding_flags ( VP9_COMP * cpi , vpx_enc_frame_flags_t flags ) {\n if ( flags & ( VP8_EFLAG_NO_REF_LAST | VP8_EFLAG_NO_REF_GF | VP8_EFLAG_NO_REF_ARF ) ) {\n int ref = 7 ;\n if ( flags & VP8_EFLAG_NO_REF_LAST ) ref ^= VP9_LAST_FLAG ;\n if ( flags & VP8_EFLAG_NO_REF_GF ) ref ^= VP9_GOLD_FLAG ;\n if ( flags & VP8_EFLAG_NO_REF_ARF ) ref ^= VP9_ALT_FLAG ;\n vp9_use_as_reference ( cpi , ref ) ;\n }\n if ( flags & ( VP8_EFLAG_NO_UPD_LAST | VP8_EFLAG_NO_UPD_GF | VP8_EFLAG_NO_UPD_ARF | VP8_EFLAG_FORCE_GF | VP8_EFLAG_FORCE_ARF ) ) {\n int upd = 7 ;\n if ( flags & VP8_EFLAG_NO_UPD_LAST ) upd ^= VP9_LAST_FLAG ;\n if ( flags & VP8_EFLAG_NO_UPD_GF ) upd ^= VP9_GOLD_FLAG ;\n if ( flags & VP8_EFLAG_NO_UPD_ARF ) upd ^= VP9_ALT_FLAG ;\n vp9_update_reference ( cpi , upd ) ;\n }\n if ( flags & VP8_EFLAG_NO_UPD_ENTROPY ) {\n vp9_update_entropy ( cpi , 0 ) ;\n }\n }"}
{"idx": 5364, "target": 0, "func": "SPL_METHOD ( SplFileObject , current ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n if ( ! intern -> u . file . current_line && ! intern -> u . file . current_zval ) {\n spl_filesystem_file_read_line ( getThis ( ) , intern , 1 TSRMLS_CC ) ;\n }\n if ( intern -> u . file . current_line && ( ! SPL_HAS_FLAG ( intern -> flags , SPL_FILE_OBJECT_READ_CSV ) || ! intern -> u . file . current_zval ) ) {\n RETURN_STRINGL ( intern -> u . file . current_line , intern -> u . file . current_line_len , 1 ) ;\n }\n else if ( intern -> u . file . current_zval ) {\n RETURN_ZVAL ( intern -> u . file . current_zval , 1 , 0 ) ;\n }\n RETURN_FALSE ;\n }"}
{"idx": 5365, "target": 0, "func": "static void xhci_runtime_write ( void * ptr , hwaddr reg , uint64_t val , unsigned size ) {\n XHCIState * xhci = ptr ;\n int v = ( reg - 0x20 ) / 0x20 ;\n XHCIInterrupter * intr = & xhci -> intr [ v ] ;\n trace_usb_xhci_runtime_write ( reg , val ) ;\n if ( reg < 0x20 ) {\n trace_usb_xhci_unimplemented ( \"runtime write\" , reg ) ;\n return ;\n }\n switch ( reg & 0x1f ) {\n case 0x00 : if ( val & IMAN_IP ) {\n intr -> iman &= ~ IMAN_IP ;\n }\n intr -> iman &= ~ IMAN_IE ;\n intr -> iman |= val & IMAN_IE ;\n if ( v == 0 ) {\n xhci_intx_update ( xhci ) ;\n }\n xhci_msix_update ( xhci , v ) ;\n break ;\n case 0x04 : intr -> imod = val ;\n break ;\n case 0x08 : intr -> erstsz = val & 0xffff ;\n break ;\n case 0x10 : intr -> erstba_low = val & 0xfffffff0 ;\n break ;\n case 0x14 : intr -> erstba_high = val ;\n xhci_er_reset ( xhci , v ) ;\n break ;\n case 0x18 : if ( val & ERDP_EHB ) {\n intr -> erdp_low &= ~ ERDP_EHB ;\n }\n intr -> erdp_low = ( val & ~ ERDP_EHB ) | ( intr -> erdp_low & ERDP_EHB ) ;\n break ;\n case 0x1c : intr -> erdp_high = val ;\n xhci_events_update ( xhci , v ) ;\n break ;\n default : trace_usb_xhci_unimplemented ( \"oper write\" , reg ) ;\n }\n }"}
{"idx": 5366, "target": 0, "func": "void fz_cmm_fin_profile ( fz_context * ctx , fz_iccprofile * profile ) {\n if ( ctx && ctx -> colorspace && ctx -> colorspace -> cmm && ctx -> cmm_instance ) if ( profile && profile -> cmm_handle != NULL ) ctx -> colorspace -> cmm -> fin_profile ( ctx -> cmm_instance , profile ) ;\n }"}
{"idx": 5367, "target": 0, "func": "void qemu_mutex_unlock_iothread ( void ) {\n qemu_mutex_unlock ( & qemu_global_mutex ) ;\n }"}
{"idx": 5368, "target": 0, "func": "static void band_destroy ( jpc_enc_band_t * band ) {\n jpc_enc_prc_t * prc ;\n jpc_enc_rlvl_t * rlvl ;\n uint_fast32_t prcno ;\n if ( band -> prcs ) {\n rlvl = band -> rlvl ;\n for ( prcno = 0 , prc = band -> prcs ;\n prcno < rlvl -> numprcs ;\n ++ prcno , ++ prc ) {\n prc_destroy ( prc ) ;\n }\n jas_free ( band -> prcs ) ;\n band -> prcs = NULL ;\n }\n if ( band -> data ) {\n jas_seq2d_destroy ( band -> data ) ;\n band -> data = NULL ;\n }\n }"}
{"idx": 5369, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n DxaDecContext * const c = avctx -> priv_data ;\n uint8_t * outptr , * srcptr , * tmpptr ;\n unsigned long dsize ;\n int i , j , compr , ret ;\n int stride ;\n int orig_buf_size = buf_size ;\n int pc = 0 ;\n if ( buf [ 0 ] == 'C' && buf [ 1 ] == 'M' && buf [ 2 ] == 'A' && buf [ 3 ] == 'P' ) {\n int r , g , b ;\n buf += 4 ;\n for ( i = 0 ;\n i < 256 ;\n i ++ ) {\n r = * buf ++ ;\n g = * buf ++ ;\n b = * buf ++ ;\n c -> pal [ i ] = ( r << 16 ) | ( g << 8 ) | b ;\n }\n pc = 1 ;\n buf_size -= 768 + 4 ;\n }\n if ( ( ret = ff_get_buffer ( avctx , & c -> pic ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n memcpy ( c -> pic . data [ 1 ] , c -> pal , AVPALETTE_SIZE ) ;\n c -> pic . palette_has_changed = pc ;\n outptr = c -> pic . data [ 0 ] ;\n srcptr = c -> decomp_buf ;\n tmpptr = c -> prev . data [ 0 ] ;\n stride = c -> pic . linesize [ 0 ] ;\n if ( buf [ 0 ] == 'N' && buf [ 1 ] == 'U' && buf [ 2 ] == 'L' && buf [ 3 ] == 'L' ) compr = - 1 ;\n else compr = buf [ 4 ] ;\n dsize = c -> dsize ;\n if ( ( compr != 4 && compr != - 1 ) && uncompress ( c -> decomp_buf , & dsize , buf + 9 , buf_size - 9 ) != Z_OK ) {\n av_log ( avctx , AV_LOG_ERROR , \"Uncompress failed!\\n\" ) ;\n return AVERROR_UNKNOWN ;\n }\n switch ( compr ) {\n case - 1 : c -> pic . key_frame = 0 ;\n c -> pic . pict_type = AV_PICTURE_TYPE_P ;\n if ( c -> prev . data [ 0 ] ) memcpy ( c -> pic . data [ 0 ] , c -> prev . data [ 0 ] , c -> pic . linesize [ 0 ] * avctx -> height ) ;\n else {\n memset ( c -> pic . data [ 0 ] , 0 , c -> pic . linesize [ 0 ] * avctx -> height ) ;\n c -> pic . key_frame = 1 ;\n c -> pic . pict_type = AV_PICTURE_TYPE_I ;\n }\n break ;\n case 2 : case 3 : case 4 : case 5 : c -> pic . key_frame = ! ( compr & 1 ) ;\n c -> pic . pict_type = ( compr & 1 ) ? AV_PICTURE_TYPE_P : AV_PICTURE_TYPE_I ;\n for ( j = 0 ;\n j < avctx -> height ;\n j ++ ) {\n if ( compr & 1 ) {\n for ( i = 0 ;\n i < avctx -> width ;\n i ++ ) outptr [ i ] = srcptr [ i ] ^ tmpptr [ i ] ;\n tmpptr += stride ;\n }\n else memcpy ( outptr , srcptr , avctx -> width ) ;\n outptr += stride ;\n srcptr += avctx -> width ;\n }\n break ;\n case 12 : case 13 : c -> pic . key_frame = 0 ;\n c -> pic . pict_type = AV_PICTURE_TYPE_P ;\n decode_13 ( avctx , c , c -> pic . data [ 0 ] , srcptr , c -> prev . data [ 0 ] ) ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"Unknown/unsupported compression type %d\\n\" , buf [ 4 ] ) ;\n return AVERROR_INVALIDDATA ;\n }\n FFSWAP ( AVFrame , c -> pic , c -> prev ) ;\n if ( c -> pic . data [ 0 ] ) avctx -> release_buffer ( avctx , & c -> pic ) ;\n * got_frame = 1 ;\n * ( AVFrame * ) data = c -> prev ;\n return orig_buf_size ;\n }"}
{"idx": 5370, "target": 0, "func": "void srtp_event_reporter ( srtp_event_data_t * data ) {\n err_report ( err_level_warning , \"srtp: in stream 0x%x: \" , data -> stream -> ssrc ) ;\n switch ( data -> event ) {\n case event_ssrc_collision : err_report ( err_level_warning , \"\\tSSRC collision\\n\" ) ;\n break ;\n case event_key_soft_limit : err_report ( err_level_warning , \"\\tkey usage soft limit reached\\n\" ) ;\n break ;\n case event_key_hard_limit : err_report ( err_level_warning , \"\\tkey usage hard limit reached\\n\" ) ;\n break ;\n case event_packet_index_limit : err_report ( err_level_warning , \"\\tpacket index limit reached\\n\" ) ;\n break ;\n default : err_report ( err_level_warning , \"\\tunknown event reported to handler\\n\" ) ;\n }\n }"}
{"idx": 5371, "target": 0, "func": "extern int name ( int , locale_t ) __THROW __exctype_l ( isalnum_l ) ;\n __exctype_l ( isalpha_l ) ;\n __exctype_l ( iscntrl_l ) ;\n __exctype_l ( isdigit_l ) ;\n __exctype_l ( islower_l ) ;\n __exctype_l ( isgraph_l ) ;\n __exctype_l ( isprint_l ) ;\n __exctype_l ( ispunct_l ) ;\n __exctype_l ( isspace_l )"}
{"idx": 5372, "target": 1, "func": "void init_directory_config ( directory_config * dcfg ) {\n if ( dcfg == NULL ) return ;\n if ( dcfg -> is_enabled == NOT_SET ) dcfg -> is_enabled = 0 ;\n if ( dcfg -> reqbody_access == NOT_SET ) dcfg -> reqbody_access = 0 ;\n if ( dcfg -> reqintercept_oe == NOT_SET ) dcfg -> reqintercept_oe = 0 ;\n if ( dcfg -> reqbody_buffering == NOT_SET ) dcfg -> reqbody_buffering = REQUEST_BODY_FORCEBUF_OFF ;\n if ( dcfg -> reqbody_inmemory_limit == NOT_SET ) dcfg -> reqbody_inmemory_limit = REQUEST_BODY_DEFAULT_INMEMORY_LIMIT ;\n if ( dcfg -> reqbody_limit == NOT_SET ) dcfg -> reqbody_limit = REQUEST_BODY_DEFAULT_LIMIT ;\n if ( dcfg -> reqbody_no_files_limit == NOT_SET ) dcfg -> reqbody_no_files_limit = REQUEST_BODY_NO_FILES_DEFAULT_LIMIT ;\n if ( dcfg -> resbody_access == NOT_SET ) dcfg -> resbody_access = 0 ;\n if ( dcfg -> of_limit == NOT_SET ) dcfg -> of_limit = RESPONSE_BODY_DEFAULT_LIMIT ;\n if ( dcfg -> if_limit_action == NOT_SET ) dcfg -> if_limit_action = REQUEST_BODY_LIMIT_ACTION_REJECT ;\n if ( dcfg -> of_limit_action == NOT_SET ) dcfg -> of_limit_action = RESPONSE_BODY_LIMIT_ACTION_REJECT ;\n if ( dcfg -> of_mime_types == NOT_SET_P ) {\n dcfg -> of_mime_types = apr_table_make ( dcfg -> mp , 3 ) ;\n if ( dcfg -> of_mime_types_cleared != 1 ) {\n apr_table_setn ( dcfg -> of_mime_types , \"text/plain\" , \"1\" ) ;\n apr_table_setn ( dcfg -> of_mime_types , \"text/html\" , \"1\" ) ;\n }\n }\n if ( dcfg -> debuglog_fd == NOT_SET_P ) dcfg -> debuglog_fd = NULL ;\n if ( dcfg -> debuglog_name == NOT_SET_P ) dcfg -> debuglog_name = NULL ;\n if ( dcfg -> debuglog_level == NOT_SET ) dcfg -> debuglog_level = 0 ;\n if ( dcfg -> cookie_format == NOT_SET ) dcfg -> cookie_format = 0 ;\n if ( dcfg -> argument_separator == NOT_SET ) dcfg -> argument_separator = '&' ;\n if ( dcfg -> cookiev0_separator == NOT_SET_P ) dcfg -> cookiev0_separator = NULL ;\n if ( dcfg -> rule_inheritance == NOT_SET ) dcfg -> rule_inheritance = 1 ;\n if ( dcfg -> auditlog_flag == NOT_SET ) dcfg -> auditlog_flag = 0 ;\n if ( dcfg -> auditlog_type == NOT_SET ) dcfg -> auditlog_type = AUDITLOG_SERIAL ;\n if ( dcfg -> max_rule_time == NOT_SET ) dcfg -> max_rule_time = 0 ;\n if ( dcfg -> auditlog_dirperms == NOT_SET ) dcfg -> auditlog_dirperms = CREATEMODE_DIR ;\n if ( dcfg -> auditlog_fileperms == NOT_SET ) dcfg -> auditlog_fileperms = CREATEMODE ;\n if ( dcfg -> auditlog_fd == NOT_SET_P ) dcfg -> auditlog_fd = NULL ;\n if ( dcfg -> auditlog2_fd == NOT_SET_P ) dcfg -> auditlog2_fd = NULL ;\n if ( dcfg -> auditlog_name == NOT_SET_P ) dcfg -> auditlog_name = NULL ;\n if ( dcfg -> auditlog2_name == NOT_SET_P ) dcfg -> auditlog2_name = NULL ;\n if ( dcfg -> auditlog_storage_dir == NOT_SET_P ) dcfg -> auditlog_storage_dir = NULL ;\n if ( dcfg -> auditlog_parts == NOT_SET_P ) dcfg -> auditlog_parts = \"ABCFHZ\" ;\n if ( dcfg -> auditlog_relevant_regex == NOT_SET_P ) dcfg -> auditlog_relevant_regex = NULL ;\n if ( dcfg -> tmp_dir == NOT_SET_P ) dcfg -> tmp_dir = guess_tmp_dir ( dcfg -> mp ) ;\n if ( dcfg -> upload_dir == NOT_SET_P ) dcfg -> upload_dir = NULL ;\n if ( dcfg -> upload_keep_files == NOT_SET ) dcfg -> upload_keep_files = KEEP_FILES_OFF ;\n if ( dcfg -> upload_validates_files == NOT_SET ) dcfg -> upload_validates_files = 0 ;\n if ( dcfg -> upload_filemode == NOT_SET ) dcfg -> upload_filemode = 0600 ;\n if ( dcfg -> upload_file_limit == NOT_SET ) dcfg -> upload_file_limit = 100 ;\n if ( dcfg -> data_dir == NOT_SET_P ) dcfg -> data_dir = NULL ;\n if ( dcfg -> webappid == NOT_SET_P ) dcfg -> webappid = \"default\" ;\n if ( dcfg -> sensor_id == NOT_SET_P ) dcfg -> sensor_id = \"default\" ;\n if ( dcfg -> httpBlkey == NOT_SET_P ) dcfg -> httpBlkey = NULL ;\n if ( dcfg -> content_injection_enabled == NOT_SET ) dcfg -> content_injection_enabled = 0 ;\n if ( dcfg -> stream_inbody_inspection == NOT_SET ) dcfg -> stream_inbody_inspection = 0 ;\n if ( dcfg -> stream_outbody_inspection == NOT_SET ) dcfg -> stream_outbody_inspection = 0 ;\n if ( dcfg -> geo == NOT_SET_P ) dcfg -> geo = NULL ;\n if ( dcfg -> gsb == NOT_SET_P ) dcfg -> gsb = NULL ;\n if ( dcfg -> u_map == NOT_SET_P ) dcfg -> u_map = NULL ;\n if ( dcfg -> cache_trans == NOT_SET ) dcfg -> cache_trans = MODSEC_CACHE_DISABLED ;\n if ( dcfg -> cache_trans_incremental == NOT_SET ) dcfg -> cache_trans_incremental = 0 ;\n if ( dcfg -> cache_trans_min == ( apr_size_t ) NOT_SET ) dcfg -> cache_trans_min = 32 ;\n if ( dcfg -> cache_trans_max == ( apr_size_t ) NOT_SET ) dcfg -> cache_trans_max = 1024 ;\n if ( dcfg -> cache_trans_maxitems == ( apr_size_t ) NOT_SET ) dcfg -> cache_trans_maxitems = 512 ;\n if ( dcfg -> request_encoding == NOT_SET_P ) dcfg -> request_encoding = NULL ;\n if ( dcfg -> disable_backend_compression == NOT_SET ) dcfg -> disable_backend_compression = 0 ;\n if ( dcfg -> col_timeout == NOT_SET ) dcfg -> col_timeout = 3600 ;\n if ( dcfg -> crypto_key == NOT_SET_P ) dcfg -> crypto_key = getkey ( dcfg -> mp ) ;\n if ( dcfg -> crypto_key_len == NOT_SET ) dcfg -> crypto_key_len = strlen ( dcfg -> crypto_key ) ;\n if ( dcfg -> crypto_key_add == NOT_SET ) dcfg -> crypto_key_add = HASH_KEYONLY ;\n if ( dcfg -> crypto_param_name == NOT_SET_P ) dcfg -> crypto_param_name = \"crypt\" ;\n if ( dcfg -> hash_is_enabled == NOT_SET ) dcfg -> hash_is_enabled = HASH_DISABLED ;\n if ( dcfg -> hash_enforcement == NOT_SET ) dcfg -> hash_enforcement = HASH_DISABLED ;\n if ( dcfg -> crypto_hash_href_rx == NOT_SET ) dcfg -> crypto_hash_href_rx = 0 ;\n if ( dcfg -> crypto_hash_faction_rx == NOT_SET ) dcfg -> crypto_hash_faction_rx = 0 ;\n if ( dcfg -> crypto_hash_location_rx == NOT_SET ) dcfg -> crypto_hash_location_rx = 0 ;\n if ( dcfg -> crypto_hash_iframesrc_rx == NOT_SET ) dcfg -> crypto_hash_iframesrc_rx = 0 ;\n if ( dcfg -> crypto_hash_framesrc_rx == NOT_SET ) dcfg -> crypto_hash_framesrc_rx = 0 ;\n if ( dcfg -> crypto_hash_href_pm == NOT_SET ) dcfg -> crypto_hash_href_pm = 0 ;\n if ( dcfg -> crypto_hash_faction_pm == NOT_SET ) dcfg -> crypto_hash_faction_pm = 0 ;\n if ( dcfg -> crypto_hash_location_pm == NOT_SET ) dcfg -> crypto_hash_location_pm = 0 ;\n if ( dcfg -> crypto_hash_iframesrc_pm == NOT_SET ) dcfg -> crypto_hash_iframesrc_pm = 0 ;\n if ( dcfg -> crypto_hash_framesrc_pm == NOT_SET ) dcfg -> crypto_hash_framesrc_pm = 0 ;\n }"}
{"idx": 5373, "target": 0, "func": "Oid get_opclass_family ( Oid opclass ) {\n HeapTuple tp ;\n Form_pg_opclass cla_tup ;\n Oid result ;\n tp = SearchSysCache1 ( CLAOID , ObjectIdGetDatum ( opclass ) ) ;\n if ( ! HeapTupleIsValid ( tp ) ) elog ( ERROR , \"cache lookup failed for opclass %u\" , opclass ) ;\n cla_tup = ( Form_pg_opclass ) GETSTRUCT ( tp ) ;\n result = cla_tup -> opcfamily ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }"}
{"idx": 5374, "target": 0, "func": "void virLogFilterFree ( virLogFilterPtr filter ) {\n if ( ! filter ) return ;\n VIR_FREE ( filter -> match ) ;\n VIR_FREE ( filter ) ;\n }"}
{"idx": 5375, "target": 0, "func": "static PyObject * string_isupper ( PyStringObject * self ) {\n register const unsigned char * p = ( unsigned char * ) PyString_AS_STRING ( self ) ;\n register const unsigned char * e ;\n int cased ;\n if ( PyString_GET_SIZE ( self ) == 1 ) return PyBool_FromLong ( isupper ( * p ) != 0 ) ;\n if ( PyString_GET_SIZE ( self ) == 0 ) return PyBool_FromLong ( 0 ) ;\n e = p + PyString_GET_SIZE ( self ) ;\n cased = 0 ;\n for ( ;\n p < e ;\n p ++ ) {\n if ( islower ( * p ) ) return PyBool_FromLong ( 0 ) ;\n else if ( ! cased && isupper ( * p ) ) cased = 1 ;\n }\n return PyBool_FromLong ( cased ) ;\n }"}
{"idx": 5376, "target": 0, "func": "static const Writer * writer_get_by_name ( const char * name ) {\n int i ;\n for ( i = 0 ;\n registered_writers [ i ] ;\n i ++ ) if ( ! strcmp ( registered_writers [ i ] -> name , name ) ) return registered_writers [ i ] ;\n return NULL ;\n }"}
{"idx": 5377, "target": 0, "func": "unsigned int vp8_variance_halfpixvar16x16_hv_neon ( const unsigned char * src_ptr , int source_stride , const unsigned char * ref_ptr , int recon_stride , unsigned int * sse ) {\n int i ;\n uint8x8_t d0u8 , d1u8 , d2u8 , d3u8 , d4u8 , d5u8 , d6u8 , d7u8 ;\n int16x4_t d0s16 , d1s16 , d2s16 , d3s16 , d10s16 , d11s16 , d12s16 , d13s16 ;\n int16x4_t d18s16 , d19s16 , d20s16 , d21s16 , d22s16 , d23s16 , d24s16 , d25s16 ;\n uint32x2_t d0u32 , d10u32 ;\n int64x1_t d0s64 , d1s64 , d2s64 , d3s64 ;\n uint8x16_t q0u8 , q1u8 , q2u8 , q3u8 , q4u8 , q5u8 , q6u8 , q7u8 , q8u8 , q9u8 ;\n uint16x8_t q0u16 , q1u16 , q5u16 , q6u16 , q9u16 , q10u16 , q11u16 , q12u16 ;\n int32x4_t q13s32 , q14s32 , q15s32 ;\n int64x2_t q0s64 , q1s64 , q5s64 ;\n q13s32 = vdupq_n_s32 ( 0 ) ;\n q14s32 = vdupq_n_s32 ( 0 ) ;\n q15s32 = vdupq_n_s32 ( 0 ) ;\n q0u8 = vld1q_u8 ( src_ptr ) ;\n q1u8 = vld1q_u8 ( src_ptr + 16 ) ;\n src_ptr += source_stride ;\n q1u8 = vextq_u8 ( q0u8 , q1u8 , 1 ) ;\n q0u8 = vrhaddq_u8 ( q0u8 , q1u8 ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n q2u8 = vld1q_u8 ( src_ptr ) ;\n q3u8 = vld1q_u8 ( src_ptr + 16 ) ;\n src_ptr += source_stride ;\n q4u8 = vld1q_u8 ( src_ptr ) ;\n q5u8 = vld1q_u8 ( src_ptr + 16 ) ;\n src_ptr += source_stride ;\n q6u8 = vld1q_u8 ( src_ptr ) ;\n q7u8 = vld1q_u8 ( src_ptr + 16 ) ;\n src_ptr += source_stride ;\n q8u8 = vld1q_u8 ( src_ptr ) ;\n q9u8 = vld1q_u8 ( src_ptr + 16 ) ;\n src_ptr += source_stride ;\n q3u8 = vextq_u8 ( q2u8 , q3u8 , 1 ) ;\n q5u8 = vextq_u8 ( q4u8 , q5u8 , 1 ) ;\n q7u8 = vextq_u8 ( q6u8 , q7u8 , 1 ) ;\n q9u8 = vextq_u8 ( q8u8 , q9u8 , 1 ) ;\n q1u8 = vrhaddq_u8 ( q2u8 , q3u8 ) ;\n q2u8 = vrhaddq_u8 ( q4u8 , q5u8 ) ;\n q3u8 = vrhaddq_u8 ( q6u8 , q7u8 ) ;\n q4u8 = vrhaddq_u8 ( q8u8 , q9u8 ) ;\n q0u8 = vrhaddq_u8 ( q0u8 , q1u8 ) ;\n q1u8 = vrhaddq_u8 ( q1u8 , q2u8 ) ;\n q2u8 = vrhaddq_u8 ( q2u8 , q3u8 ) ;\n q3u8 = vrhaddq_u8 ( q3u8 , q4u8 ) ;\n q5u8 = vld1q_u8 ( ref_ptr ) ;\n ref_ptr += recon_stride ;\n q6u8 = vld1q_u8 ( ref_ptr ) ;\n ref_ptr += recon_stride ;\n q7u8 = vld1q_u8 ( ref_ptr ) ;\n ref_ptr += recon_stride ;\n q8u8 = vld1q_u8 ( ref_ptr ) ;\n ref_ptr += recon_stride ;\n d0u8 = vget_low_u8 ( q0u8 ) ;\n d1u8 = vget_high_u8 ( q0u8 ) ;\n d2u8 = vget_low_u8 ( q1u8 ) ;\n d3u8 = vget_high_u8 ( q1u8 ) ;\n d4u8 = vget_low_u8 ( q2u8 ) ;\n d5u8 = vget_high_u8 ( q2u8 ) ;\n d6u8 = vget_low_u8 ( q3u8 ) ;\n d7u8 = vget_high_u8 ( q3u8 ) ;\n q9u16 = vsubl_u8 ( d0u8 , vget_low_u8 ( q5u8 ) ) ;\n q10u16 = vsubl_u8 ( d1u8 , vget_high_u8 ( q5u8 ) ) ;\n q11u16 = vsubl_u8 ( d2u8 , vget_low_u8 ( q6u8 ) ) ;\n q12u16 = vsubl_u8 ( d3u8 , vget_high_u8 ( q6u8 ) ) ;\n q0u16 = vsubl_u8 ( d4u8 , vget_low_u8 ( q7u8 ) ) ;\n q1u16 = vsubl_u8 ( d5u8 , vget_high_u8 ( q7u8 ) ) ;\n q5u16 = vsubl_u8 ( d6u8 , vget_low_u8 ( q8u8 ) ) ;\n q6u16 = vsubl_u8 ( d7u8 , vget_high_u8 ( q8u8 ) ) ;\n d18s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q9u16 ) ) ;\n d19s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q9u16 ) ) ;\n q13s32 = vpadalq_s16 ( q13s32 , vreinterpretq_s16_u16 ( q9u16 ) ) ;\n q14s32 = vmlal_s16 ( q14s32 , d18s16 , d18s16 ) ;\n q15s32 = vmlal_s16 ( q15s32 , d19s16 , d19s16 ) ;\n d20s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q10u16 ) ) ;\n d21s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q10u16 ) ) ;\n q13s32 = vpadalq_s16 ( q13s32 , vreinterpretq_s16_u16 ( q10u16 ) ) ;\n q14s32 = vmlal_s16 ( q14s32 , d20s16 , d20s16 ) ;\n q15s32 = vmlal_s16 ( q15s32 , d21s16 , d21s16 ) ;\n d22s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q11u16 ) ) ;\n d23s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q11u16 ) ) ;\n q13s32 = vpadalq_s16 ( q13s32 , vreinterpretq_s16_u16 ( q11u16 ) ) ;\n q14s32 = vmlal_s16 ( q14s32 , d22s16 , d22s16 ) ;\n q15s32 = vmlal_s16 ( q15s32 , d23s16 , d23s16 ) ;\n d24s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q12u16 ) ) ;\n d25s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q12u16 ) ) ;\n q13s32 = vpadalq_s16 ( q13s32 , vreinterpretq_s16_u16 ( q12u16 ) ) ;\n q14s32 = vmlal_s16 ( q14s32 , d24s16 , d24s16 ) ;\n q15s32 = vmlal_s16 ( q15s32 , d25s16 , d25s16 ) ;\n d0s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q0u16 ) ) ;\n d1s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q0u16 ) ) ;\n q13s32 = vpadalq_s16 ( q13s32 , vreinterpretq_s16_u16 ( q0u16 ) ) ;\n q14s32 = vmlal_s16 ( q14s32 , d0s16 , d0s16 ) ;\n q15s32 = vmlal_s16 ( q15s32 , d1s16 , d1s16 ) ;\n d2s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q1u16 ) ) ;\n d3s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q1u16 ) ) ;\n q13s32 = vpadalq_s16 ( q13s32 , vreinterpretq_s16_u16 ( q1u16 ) ) ;\n q14s32 = vmlal_s16 ( q14s32 , d2s16 , d2s16 ) ;\n q15s32 = vmlal_s16 ( q15s32 , d3s16 , d3s16 ) ;\n d10s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q5u16 ) ) ;\n d11s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q5u16 ) ) ;\n q13s32 = vpadalq_s16 ( q13s32 , vreinterpretq_s16_u16 ( q5u16 ) ) ;\n q14s32 = vmlal_s16 ( q14s32 , d10s16 , d10s16 ) ;\n q15s32 = vmlal_s16 ( q15s32 , d11s16 , d11s16 ) ;\n d12s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q6u16 ) ) ;\n d13s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q6u16 ) ) ;\n q13s32 = vpadalq_s16 ( q13s32 , vreinterpretq_s16_u16 ( q6u16 ) ) ;\n q14s32 = vmlal_s16 ( q14s32 , d12s16 , d12s16 ) ;\n q15s32 = vmlal_s16 ( q15s32 , d13s16 , d13s16 ) ;\n q0u8 = q4u8 ;\n }\n q15s32 = vaddq_s32 ( q14s32 , q15s32 ) ;\n q0s64 = vpaddlq_s32 ( q13s32 ) ;\n q1s64 = vpaddlq_s32 ( q15s32 ) ;\n d0s64 = vget_low_s64 ( q0s64 ) ;\n d1s64 = vget_high_s64 ( q0s64 ) ;\n d2s64 = vget_low_s64 ( q1s64 ) ;\n d3s64 = vget_high_s64 ( q1s64 ) ;\n d0s64 = vadd_s64 ( d0s64 , d1s64 ) ;\n d1s64 = vadd_s64 ( d2s64 , d3s64 ) ;\n q5s64 = vmull_s32 ( vreinterpret_s32_s64 ( d0s64 ) , vreinterpret_s32_s64 ( d0s64 ) ) ;\n vst1_lane_u32 ( ( uint32_t * ) sse , vreinterpret_u32_s64 ( d1s64 ) , 0 ) ;\n d10u32 = vshr_n_u32 ( vreinterpret_u32_s64 ( vget_low_s64 ( q5s64 ) ) , 8 ) ;\n d0u32 = vsub_u32 ( vreinterpret_u32_s64 ( d1s64 ) , d10u32 ) ;\n return vget_lane_u32 ( d0u32 , 0 ) ;\n }"}
{"idx": 5378, "target": 0, "func": "int archive_mstring_copy_utf8 ( struct archive_mstring * aes , const char * utf8 ) {\n if ( utf8 == NULL ) {\n aes -> aes_set = 0 ;\n }\n aes -> aes_set = AES_SET_UTF8 ;\n archive_string_empty ( & ( aes -> aes_mbs ) ) ;\n archive_string_empty ( & ( aes -> aes_wcs ) ) ;\n archive_strncpy ( & ( aes -> aes_utf8 ) , utf8 , strlen ( utf8 ) ) ;\n return ( int ) strlen ( utf8 ) ;\n }"}
{"idx": 5379, "target": 0, "func": "TSServerState TSHttpTxnServerStateGet ( TSHttpTxn txnp ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpTransact : : State * s = & ( ( ( HttpSM * ) txnp ) -> t_state ) ;\n return ( TSServerState ) s -> current . state ;\n }"}
{"idx": 5380, "target": 0, "func": "int TSMimeHdrLengthGet ( TSMBuffer bufp , TSMLoc obj ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( obj ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( obj ) == TS_SUCCESS ) ) ;\n MIMEHdrImpl * mh = _hdr_mloc_to_mime_hdr_impl ( obj ) ;\n return mime_hdr_length_get ( mh ) ;\n }"}
{"idx": 5381, "target": 0, "func": "qemuAgentPtr qemuAgentOpen ( virDomainObjPtr vm , const virDomainChrSourceDef * config , qemuAgentCallbacksPtr cb ) {\n qemuAgentPtr mon ;\n if ( ! cb || ! cb -> eofNotify ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"EOF notify callback must be supplied\" ) ) ;\n return NULL ;\n }\n if ( qemuAgentInitialize ( ) < 0 ) return NULL ;\n if ( ! ( mon = virObjectLockableNew ( qemuAgentClass ) ) ) return NULL ;\n mon -> fd = - 1 ;\n if ( virCondInit ( & mon -> notify ) < 0 ) {\n virReportSystemError ( errno , \"%s\" , _ ( \"cannot initialize monitor condition\" ) ) ;\n virObjectUnref ( mon ) ;\n return NULL ;\n }\n mon -> vm = vm ;\n mon -> cb = cb ;\n switch ( config -> type ) {\n case VIR_DOMAIN_CHR_TYPE_UNIX : mon -> fd = qemuAgentOpenUnix ( config -> data . nix . path , vm -> pid , & mon -> connectPending ) ;\n break ;\n case VIR_DOMAIN_CHR_TYPE_PTY : mon -> fd = qemuAgentOpenPty ( config -> data . file . path ) ;\n break ;\n default : virReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"unable to handle monitor type: %s\" ) , virDomainChrTypeToString ( config -> type ) ) ;\n goto cleanup ;\n }\n if ( mon -> fd == - 1 ) goto cleanup ;\n virObjectRef ( mon ) ;\n if ( ( mon -> watch = virEventAddHandle ( mon -> fd , VIR_EVENT_HANDLE_HANGUP | VIR_EVENT_HANDLE_ERROR | VIR_EVENT_HANDLE_READABLE | ( mon -> connectPending ? VIR_EVENT_HANDLE_WRITABLE : 0 ) , qemuAgentIO , mon , virObjectFreeCallback ) ) < 0 ) {\n virObjectUnref ( mon ) ;\n virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"unable to register monitor events\" ) ) ;\n goto cleanup ;\n }\n mon -> running = true ;\n VIR_DEBUG ( \"New mon %p fd =%d watch=%d\" , mon , mon -> fd , mon -> watch ) ;\n return mon ;\n cleanup : mon -> cb = NULL ;\n qemuAgentClose ( mon ) ;\n return NULL ;\n }"}
{"idx": 5382, "target": 0, "func": "static void print_xml_comment ( FILE * xml_file , size_t len , const char * comment_string ) {\n const char * end ;\n fputs ( \"<!-- \" , xml_file ) ;\n for ( end = comment_string + len ;\n comment_string != end ;\n comment_string ++ ) {\n switch ( * comment_string ) {\n case '-' : if ( * ( comment_string + 1 ) == '-' ) break ;\n default : fputc ( * comment_string , xml_file ) ;\n break ;\n }\n }\n fputs ( \" -->\\n\" , xml_file ) ;\n check_io ( xml_file ) ;\n }"}
{"idx": 5383, "target": 0, "func": "static int dissect_rtmpt_tcp ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n conversation_t * conv ;\n rtmpt_conv_t * rconv ;\n int cdir ;\n struct tcpinfo * tcpinfo ;\n if ( data == NULL ) {\n return 0 ;\n }\n tcpinfo = ( struct tcpinfo * ) data ;\n conv = find_or_create_conversation ( pinfo ) ;\n rconv = ( rtmpt_conv_t * ) conversation_get_proto_data ( conv , proto_rtmpt ) ;\n if ( ! rconv ) {\n rconv = rtmpt_init_rconv ( conv ) ;\n }\n cdir = ( addresses_equal ( & conv -> key_ptr -> addr1 , & pinfo -> src ) && addresses_equal ( & conv -> key_ptr -> addr2 , & pinfo -> dst ) && conv -> key_ptr -> port1 == pinfo -> srcport && conv -> key_ptr -> port2 == pinfo -> destport ) ? 0 : 1 ;\n dissect_rtmpt_common ( tvb , pinfo , tree , rconv , cdir , tcpinfo -> seq , tcpinfo -> lastackseq ) ;\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 5384, "target": 0, "func": "const char * gs_devicename ( const gx_device * dev ) {\n return dev -> dname ;\n }"}
{"idx": 5385, "target": 0, "func": "static void ctr64_inc ( unsigned char * counter ) {\n int n = 8 ;\n unsigned char c ;\n do {\n -- n ;\n c = counter [ n ] ;\n ++ c ;\n counter [ n ] = c ;\n if ( c ) return ;\n }\n while ( n ) ;\n }"}
{"idx": 5386, "target": 0, "func": "NautilusFileAttributes nautilus_mime_actions_get_required_file_attributes ( void ) {\n return NAUTILUS_FILE_ATTRIBUTE_INFO | NAUTILUS_FILE_ATTRIBUTE_LINK_INFO ;\n }"}
{"idx": 5387, "target": 0, "func": "static inline void dpy_update ( DisplayState * s , int x , int y , int w , int h ) {\n s -> dpy_update ( s , x , y , w , h ) ;\n }"}
{"idx": 5388, "target": 0, "func": "static void set_sample_rate_params ( AVCodecContext * avctx ) {\n TAKDecContext * s = avctx -> priv_data ;\n int shift = 3 - ( avctx -> sample_rate / 11025 ) ;\n shift = FFMAX ( 0 , shift ) ;\n s -> uval = FFALIGN ( avctx -> sample_rate + 511 >> 9 , 4 ) << shift ;\n s -> subframe_scale = FFALIGN ( avctx -> sample_rate + 511 >> 9 , 4 ) << 1 ;\n }"}
{"idx": 5389, "target": 0, "func": "gcry_error_t gcry_sexp_new ( gcry_sexp_t * retsexp , const void * buffer , size_t length , int autodetect ) {\n return gcry_sexp_create ( retsexp , ( void * ) buffer , length , autodetect , NULL ) ;\n }"}
{"idx": 5390, "target": 0, "func": "static int dissect_h225_ServiceControlSession_reason ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_ServiceControlSession_reason , ServiceControlSession_reason_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 5391, "target": 0, "func": "static void pdf_run_sc_pattern ( fz_context * ctx , pdf_processor * proc , const char * name , pdf_pattern * pat , int n , float * color ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pr -> dev -> flags &= ~ FZ_DEVFLAG_FILLCOLOR_UNDEFINED ;\n pdf_set_pattern ( ctx , pr , PDF_FILL , pat , color ) ;\n }"}
{"idx": 5392, "target": 0, "func": "static inline void e1000e_write_hdr_to_rx_buffers ( E1000ECore * core , hwaddr ( * ba ) [ MAX_PS_BUFFERS ] , e1000e_ba_state * bastate , const char * data , dma_addr_t data_len ) {\n assert ( data_len <= core -> rxbuf_sizes [ 0 ] - bastate -> written [ 0 ] ) ;\n pci_dma_write ( core -> owner , ( * ba ) [ 0 ] + bastate -> written [ 0 ] , data , data_len ) ;\n bastate -> written [ 0 ] += data_len ;\n bastate -> cur_idx = 1 ;\n }"}
{"idx": 5393, "target": 0, "func": "static void clear_log ( int need_lock ) {\n int i ;\n if ( need_lock ) pthread_mutex_lock ( & log_mutex ) ;\n for ( i = 0 ;\n i < log_buffer_size ;\n i ++ ) {\n av_freep ( & log_buffer [ i ] . context_name ) ;\n av_freep ( & log_buffer [ i ] . parent_name ) ;\n av_freep ( & log_buffer [ i ] . log_message ) ;\n }\n log_buffer_size = 0 ;\n if ( need_lock ) pthread_mutex_unlock ( & log_mutex ) ;\n }"}
{"idx": 5394, "target": 0, "func": "static __always_inline __be64 __cpu_to_be64p ( const __u64 * p ) {\n return ( __be64 ) __swab64p ( p ) ;\n }"}
{"idx": 5395, "target": 0, "func": "static int evhttp_add_header_internal ( struct evkeyvalq * headers , const char * key , const char * value ) {\n struct evkeyval * header = calloc ( 1 , sizeof ( struct evkeyval ) ) ;\n if ( header == NULL ) {\n event_warn ( \"%s: calloc\" , __func__ ) ;\n return ( - 1 ) ;\n }\n if ( ( header -> key = strdup ( key ) ) == NULL ) {\n free ( header ) ;\n event_warn ( \"%s: strdup\" , __func__ ) ;\n return ( - 1 ) ;\n }\n if ( ( header -> value = strdup ( value ) ) == NULL ) {\n free ( header -> key ) ;\n free ( header ) ;\n event_warn ( \"%s: strdup\" , __func__ ) ;\n return ( - 1 ) ;\n }\n TAILQ_INSERT_TAIL ( headers , header , next ) ;\n return ( 0 ) ;\n }"}
{"idx": 5396, "target": 0, "func": "void ef_globals_alloc ( void ) {\n SAFE_CALLOC ( ef_gbls , 1 , sizeof ( struct ef_globals ) ) ;\n return ;\n }"}
{"idx": 5397, "target": 0, "func": "static struct kvm_cpuid_entry2 * cpuid_find_entry ( struct kvm_cpuid2 * cpuid , uint32_t function , uint32_t index ) {\n int i ;\n for ( i = 0 ;\n i < cpuid -> nent ;\n ++ i ) {\n if ( cpuid -> entries [ i ] . function == function && cpuid -> entries [ i ] . index == index ) {\n return & cpuid -> entries [ i ] ;\n }\n }\n return NULL ;\n }"}
{"idx": 5398, "target": 1, "func": "int encode_const ( char * string , struct filter_op * fop ) {\n char * p ;\n memset ( fop , 0 , sizeof ( struct filter_op ) ) ;\n if ( ! strncmp ( string , \"0x\" , 2 ) && isxdigit ( ( int ) string [ 2 ] ) ) {\n fop -> op . test . value = strtoul ( string , NULL , 16 ) ;\n return E_SUCCESS ;\n }\n else if ( isdigit ( ( int ) string [ 0 ] ) ) {\n fop -> op . test . value = strtoul ( string , NULL , 10 ) ;\n return E_SUCCESS ;\n }\n else if ( string [ 0 ] == '\\'' && string [ strlen ( string ) - 1 ] == '\\'' ) {\n struct ip_addr ipaddr ;\n p = strchr ( string + 1 , '\\'' ) ;\n * p = '\\0' ;\n if ( ip_addr_pton ( string + 1 , & ipaddr ) == E_SUCCESS ) {\n switch ( ntohs ( ipaddr . addr_type ) ) {\n case AF_INET : fop -> op . test . value = ntohl ( ipaddr . addr32 [ 0 ] ) ;\n break ;\n case AF_INET6 : ip_addr_cpy ( ( u_char * ) & fop -> op . test . ipaddr , & ipaddr ) ;\n break ;\n default : return - E_FATAL ;\n }\n }\n else {\n return - E_FATAL ;\n }\n return E_SUCCESS ;\n }\n else if ( string [ 0 ] == '\\\"' && string [ strlen ( string ) - 1 ] == '\\\"' ) {\n p = strchr ( string + 1 , '\\\"' ) ;\n * p = '\\0' ;\n fop -> op . test . string = ( u_char * ) strdup ( string + 1 ) ;\n fop -> op . test . slen = strescape ( ( char * ) fop -> op . test . string , ( char * ) fop -> op . test . string ) ;\n return E_SUCCESS ;\n }\n else if ( isalpha ( ( int ) string [ 0 ] ) ) {\n return get_constant ( string , & fop -> op . test . value ) ;\n }\n return - E_NOTFOUND ;\n }"}
{"idx": 5399, "target": 0, "func": "static void synth_block_hardcoded ( WMAVoiceContext * s , GetBitContext * gb , int block_idx , int size , const struct frame_type_desc * frame_desc , float * excitation ) {\n float gain ;\n int n , r_idx ;\n assert ( size <= MAX_FRAMESIZE ) ;\n if ( frame_desc -> fcb_type == FCB_TYPE_SILENCE ) {\n r_idx = pRNG ( s -> frame_cntr , block_idx , size ) ;\n gain = s -> silence_gain ;\n }\n else {\n r_idx = get_bits ( gb , 8 ) ;\n gain = wmavoice_gain_universal [ get_bits ( gb , 6 ) ] ;\n }\n memset ( s -> gain_pred_err , 0 , sizeof ( s -> gain_pred_err ) ) ;\n for ( n = 0 ;\n n < size ;\n n ++ ) excitation [ n ] = wmavoice_std_codebook [ r_idx + n ] * gain ;\n }"}
{"idx": 5400, "target": 0, "func": "void vp9_build_inter_predictors_sb ( MACROBLOCKD * xd , int mi_row , int mi_col , BLOCK_SIZE bsize ) {\n build_inter_predictors_for_planes ( xd , bsize , mi_row , mi_col , 0 , MAX_MB_PLANE - 1 ) ;\n }"}
{"idx": 5401, "target": 0, "func": "static int decode_rbsp_trailing ( H264Context * h , const uint8_t * src ) {\n int v = * src ;\n int r ;\n tprintf ( h -> avctx , \"rbsp trailing %X\\n\" , v ) ;\n for ( r = 1 ;\n r < 9 ;\n r ++ ) {\n if ( v & 1 ) return r ;\n v >>= 1 ;\n }\n return 0 ;\n }"}
{"idx": 5402, "target": 0, "func": "static inline int squared_diff_macroblock ( uint8_t a [ ] , uint8_t b [ ] , int size ) {\n int cp , sdiff = 0 ;\n for ( cp = 0 ;\n cp < 3 ;\n cp ++ ) {\n int bias = ( cp ? CHROMA_BIAS : 4 ) ;\n sdiff += bias * eval_sse ( a , b , size * size ) ;\n a += size * size ;\n b += size * size ;\n }\n return sdiff ;\n }"}
{"idx": 5403, "target": 0, "func": "static void mainwindows_resize_two ( GSList * grow_list , GSList * shrink_list , int count ) {\n GSList * tmp ;\n MAIN_WINDOW_REC * win ;\n irssi_set_dirty ( ) ;\n for ( tmp = shrink_list ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n win = tmp -> data ;\n mainwindow_resize ( win , 0 , - count ) ;\n win -> dirty = TRUE ;\n }\n for ( tmp = grow_list ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n win = tmp -> data ;\n mainwindow_resize ( win , 0 , count ) ;\n win -> dirty = TRUE ;\n }\n }"}
{"idx": 5404, "target": 1, "func": "static int vc1_decode_i_block_adv ( VC1Context * v , int16_t block [ 64 ] , int n , int coded , int codingset , int mquant ) {\n GetBitContext * gb = & v -> s . gb ;\n MpegEncContext * s = & v -> s ;\n int dc_pred_dir = 0 ;\n int i ;\n int16_t * dc_val ;\n int16_t * ac_val , * ac_val2 ;\n int dcdiff ;\n int a_avail = v -> a_avail , c_avail = v -> c_avail ;\n int use_pred = s -> ac_pred ;\n int scale ;\n int q1 , q2 = 0 ;\n int mb_pos = s -> mb_x + s -> mb_y * s -> mb_stride ;\n if ( n < 4 ) {\n dcdiff = get_vlc2 ( & s -> gb , ff_msmp4_dc_luma_vlc [ s -> dc_table_index ] . table , DC_VLC_BITS , 3 ) ;\n }\n else {\n dcdiff = get_vlc2 ( & s -> gb , ff_msmp4_dc_chroma_vlc [ s -> dc_table_index ] . table , DC_VLC_BITS , 3 ) ;\n }\n if ( dcdiff < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Illegal DC VLC\\n\" ) ;\n return - 1 ;\n }\n if ( dcdiff ) {\n if ( dcdiff == 119 ) {\n if ( mquant == 1 ) dcdiff = get_bits ( gb , 10 ) ;\n else if ( mquant == 2 ) dcdiff = get_bits ( gb , 9 ) ;\n else dcdiff = get_bits ( gb , 8 ) ;\n }\n else {\n if ( mquant == 1 ) dcdiff = ( dcdiff << 2 ) + get_bits ( gb , 2 ) - 3 ;\n else if ( mquant == 2 ) dcdiff = ( dcdiff << 1 ) + get_bits1 ( gb ) - 1 ;\n }\n if ( get_bits1 ( gb ) ) dcdiff = - dcdiff ;\n }\n dcdiff += vc1_pred_dc ( & v -> s , v -> overlap , mquant , n , v -> a_avail , v -> c_avail , & dc_val , & dc_pred_dir ) ;\n * dc_val = dcdiff ;\n if ( n < 4 ) {\n block [ 0 ] = dcdiff * s -> y_dc_scale ;\n }\n else {\n block [ 0 ] = dcdiff * s -> c_dc_scale ;\n }\n i = 1 ;\n if ( ! a_avail && ! c_avail ) use_pred = 0 ;\n ac_val = s -> ac_val [ 0 ] [ 0 ] + s -> block_index [ n ] * 16 ;\n ac_val2 = ac_val ;\n scale = mquant * 2 + ( ( mquant == v -> pq ) ? v -> halfpq : 0 ) ;\n if ( dc_pred_dir ) ac_val -= 16 ;\n else ac_val -= 16 * s -> block_wrap [ n ] ;\n q1 = s -> current_picture . f . qscale_table [ mb_pos ] ;\n if ( dc_pred_dir && c_avail && mb_pos ) q2 = s -> current_picture . f . qscale_table [ mb_pos - 1 ] ;\n if ( ! dc_pred_dir && a_avail && mb_pos >= s -> mb_stride ) q2 = s -> current_picture . f . qscale_table [ mb_pos - s -> mb_stride ] ;\n if ( dc_pred_dir && n == 1 ) q2 = q1 ;\n if ( ! dc_pred_dir && n == 2 ) q2 = q1 ;\n if ( n == 3 ) q2 = q1 ;\n if ( coded ) {\n int last = 0 , skip , value ;\n const uint8_t * zz_table ;\n int k ;\n if ( v -> s . ac_pred ) {\n if ( ! use_pred && v -> fcm == ILACE_FRAME ) {\n zz_table = v -> zzi_8x8 ;\n }\n else {\n if ( ! dc_pred_dir ) zz_table = v -> zz_8x8 [ 2 ] ;\n else zz_table = v -> zz_8x8 [ 3 ] ;\n }\n }\n else {\n if ( v -> fcm != ILACE_FRAME ) zz_table = v -> zz_8x8 [ 1 ] ;\n else zz_table = v -> zzi_8x8 ;\n }\n while ( ! last ) {\n vc1_decode_ac_coeff ( v , & last , & skip , & value , codingset ) ;\n i += skip ;\n if ( i > 63 ) break ;\n block [ zz_table [ i ++ ] ] = value ;\n }\n if ( use_pred ) {\n if ( q2 && q1 != q2 ) {\n q1 = q1 * 2 + ( ( q1 == v -> pq ) ? v -> halfpq : 0 ) - 1 ;\n q2 = q2 * 2 + ( ( q2 == v -> pq ) ? v -> halfpq : 0 ) - 1 ;\n if ( q1 < 1 ) return AVERROR_INVALIDDATA ;\n if ( dc_pred_dir ) {\n for ( k = 1 ;\n k < 8 ;\n k ++ ) block [ k << v -> left_blk_sh ] += ( ac_val [ k ] * q2 * ff_vc1_dqscale [ q1 - 1 ] + 0x20000 ) >> 18 ;\n }\n else {\n for ( k = 1 ;\n k < 8 ;\n k ++ ) block [ k << v -> top_blk_sh ] += ( ac_val [ k + 8 ] * q2 * ff_vc1_dqscale [ q1 - 1 ] + 0x20000 ) >> 18 ;\n }\n }\n else {\n if ( dc_pred_dir ) {\n for ( k = 1 ;\n k < 8 ;\n k ++ ) block [ k << v -> left_blk_sh ] += ac_val [ k ] ;\n }\n else {\n for ( k = 1 ;\n k < 8 ;\n k ++ ) block [ k << v -> top_blk_sh ] += ac_val [ k + 8 ] ;\n }\n }\n }\n for ( k = 1 ;\n k < 8 ;\n k ++ ) {\n ac_val2 [ k ] = block [ k << v -> left_blk_sh ] ;\n ac_val2 [ k + 8 ] = block [ k << v -> top_blk_sh ] ;\n }\n for ( k = 1 ;\n k < 64 ;\n k ++ ) if ( block [ k ] ) {\n block [ k ] *= scale ;\n if ( ! v -> pquantizer ) block [ k ] += ( block [ k ] < 0 ) ? - mquant : mquant ;\n }\n if ( use_pred ) i = 63 ;\n }\n else {\n int k ;\n memset ( ac_val2 , 0 , 16 * 2 ) ;\n if ( dc_pred_dir ) {\n if ( use_pred ) {\n memcpy ( ac_val2 , ac_val , 8 * 2 ) ;\n if ( q2 && q1 != q2 ) {\n q1 = q1 * 2 + ( ( q1 == v -> pq ) ? v -> halfpq : 0 ) - 1 ;\n q2 = q2 * 2 + ( ( q2 == v -> pq ) ? v -> halfpq : 0 ) - 1 ;\n if ( q1 < 1 ) return AVERROR_INVALIDDATA ;\n for ( k = 1 ;\n k < 8 ;\n k ++ ) ac_val2 [ k ] = ( ac_val2 [ k ] * q2 * ff_vc1_dqscale [ q1 - 1 ] + 0x20000 ) >> 18 ;\n }\n }\n }\n else {\n if ( use_pred ) {\n memcpy ( ac_val2 + 8 , ac_val + 8 , 8 * 2 ) ;\n if ( q2 && q1 != q2 ) {\n q1 = q1 * 2 + ( ( q1 == v -> pq ) ? v -> halfpq : 0 ) - 1 ;\n q2 = q2 * 2 + ( ( q2 == v -> pq ) ? v -> halfpq : 0 ) - 1 ;\n if ( q1 < 1 ) return AVERROR_INVALIDDATA ;\n for ( k = 1 ;\n k < 8 ;\n k ++ ) ac_val2 [ k + 8 ] = ( ac_val2 [ k + 8 ] * q2 * ff_vc1_dqscale [ q1 - 1 ] + 0x20000 ) >> 18 ;\n }\n }\n }\n if ( use_pred ) {\n if ( dc_pred_dir ) {\n for ( k = 1 ;\n k < 8 ;\n k ++ ) {\n block [ k << v -> left_blk_sh ] = ac_val2 [ k ] * scale ;\n if ( ! v -> pquantizer && block [ k << v -> left_blk_sh ] ) block [ k << v -> left_blk_sh ] += ( block [ k << v -> left_blk_sh ] < 0 ) ? - mquant : mquant ;\n }\n }\n else {\n for ( k = 1 ;\n k < 8 ;\n k ++ ) {\n block [ k << v -> top_blk_sh ] = ac_val2 [ k + 8 ] * scale ;\n if ( ! v -> pquantizer && block [ k << v -> top_blk_sh ] ) block [ k << v -> top_blk_sh ] += ( block [ k << v -> top_blk_sh ] < 0 ) ? - mquant : mquant ;\n }\n }\n i = 63 ;\n }\n }\n s -> block_last_index [ n ] = i ;\n return 0 ;\n }"}
{"idx": 5405, "target": 0, "func": "afs_int32 SPR_SetMax ( struct rx_call * call , afs_int32 aid , afs_int32 gflag ) {\n afs_int32 code ;\n afs_int32 cid = ANONYMOUSID ;\n code = setMax ( call , aid , gflag , & cid ) ;\n osi_auditU ( call , PTS_SetMaxEvent , code , AUD_ID , aid , AUD_LONG , gflag , AUD_END ) ;\n ViceLog ( 125 , ( \"PTS_SetMax: code %d cid %d aid %d gflag %d\\n\" , code , cid , aid , gflag ) ) ;\n return code ;\n }"}
{"idx": 5406, "target": 1, "func": "static __always_inline __u64 __be64_to_cpup ( const __be64 * p ) {\n return __swab64p ( ( __u64 * ) p ) ;\n }"}
{"idx": 5407, "target": 0, "func": "static void handle_new_lock_ctx ( struct xml_ctx * ctx , int tag_closed ) {\n struct remote_lock * lock = ( struct remote_lock * ) ctx -> userData ;\n git_SHA_CTX sha_ctx ;\n unsigned char lock_token_sha1 [ 20 ] ;\n if ( tag_closed && ctx -> cdata ) {\n if ( ! strcmp ( ctx -> name , DAV_ACTIVELOCK_OWNER ) ) {\n lock -> owner = xstrdup ( ctx -> cdata ) ;\n }\n else if ( ! strcmp ( ctx -> name , DAV_ACTIVELOCK_TIMEOUT ) ) {\n const char * arg ;\n if ( skip_prefix ( ctx -> cdata , \"Second-\" , & arg ) ) lock -> timeout = strtol ( arg , NULL , 10 ) ;\n }\n else if ( ! strcmp ( ctx -> name , DAV_ACTIVELOCK_TOKEN ) ) {\n lock -> token = xstrdup ( ctx -> cdata ) ;\n git_SHA1_Init ( & sha_ctx ) ;\n git_SHA1_Update ( & sha_ctx , lock -> token , strlen ( lock -> token ) ) ;\n git_SHA1_Final ( lock_token_sha1 , & sha_ctx ) ;\n lock -> tmpfile_suffix [ 0 ] = '_' ;\n memcpy ( lock -> tmpfile_suffix + 1 , sha1_to_hex ( lock_token_sha1 ) , 40 ) ;\n }\n }\n }"}
{"idx": 5408, "target": 0, "func": "static gboolean info_provider_idle_callback ( gpointer user_data ) {\n InfoProviderResponse * response ;\n NautilusDirectory * directory ;\n response = user_data ;\n directory = response -> directory ;\n if ( response -> handle != directory -> details -> extension_info_in_progress || response -> provider != directory -> details -> extension_info_provider ) {\n g_warning ( \"Unexpected plugin response. This probably indicates a bug in a Nautilus extension: handle=%p\" , response -> handle ) ;\n }\n else {\n NautilusFile * file ;\n async_job_end ( directory , \"extension info\" ) ;\n file = directory -> details -> extension_info_file ;\n directory -> details -> extension_info_file = NULL ;\n directory -> details -> extension_info_provider = NULL ;\n directory -> details -> extension_info_in_progress = NULL ;\n directory -> details -> extension_info_idle = 0 ;\n finish_info_provider ( directory , file , response -> provider ) ;\n }\n return FALSE ;\n }"}
{"idx": 5409, "target": 0, "func": "static void gic_set_irq ( void * opaque , int irq , int level ) {\n GICState * s = ( GICState * ) opaque ;\n int cm , target ;\n if ( irq < ( s -> num_irq - GIC_INTERNAL ) ) {\n cm = ALL_CPU_MASK ;\n irq += GIC_INTERNAL ;\n target = GIC_TARGET ( irq ) ;\n }\n else {\n int cpu ;\n irq -= ( s -> num_irq - GIC_INTERNAL ) ;\n cpu = irq / GIC_INTERNAL ;\n irq %= GIC_INTERNAL ;\n cm = 1 << cpu ;\n target = cm ;\n }\n if ( level == GIC_TEST_LEVEL ( irq , cm ) ) {\n return ;\n }\n if ( level ) {\n GIC_SET_LEVEL ( irq , cm ) ;\n if ( GIC_TEST_TRIGGER ( irq ) || GIC_TEST_ENABLED ( irq , cm ) ) {\n DPRINTF ( \"Set %d pending mask %x\\n\" , irq , target ) ;\n GIC_SET_PENDING ( irq , target ) ;\n }\n }\n else {\n GIC_CLEAR_LEVEL ( irq , cm ) ;\n }\n gic_update ( s ) ;\n }"}
{"idx": 5410, "target": 0, "func": "static int decode_rle ( GetBitContext * gb , uint8_t * pal_dst , int pal_stride , uint8_t * rgb_dst , int rgb_stride , uint32_t * pal , int keyframe , int kf_slipt , int slice , int w , int h ) {\n uint8_t bits [ 270 ] = {\n 0 }\n ;\n uint32_t codes [ 270 ] ;\n VLC vlc ;\n int current_length = 0 , read_codes = 0 , next_code = 0 , current_codes = 0 ;\n int remaining_codes , surplus_codes , i ;\n const int alphabet_size = 270 - keyframe ;\n int last_symbol = 0 , repeat = 0 , prev_avail = 0 ;\n if ( ! keyframe ) {\n int x , y , clipw , cliph ;\n x = get_bits ( gb , 12 ) ;\n y = get_bits ( gb , 12 ) ;\n clipw = get_bits ( gb , 12 ) + 1 ;\n cliph = get_bits ( gb , 12 ) + 1 ;\n if ( x + clipw > w || y + cliph > h ) return AVERROR_INVALIDDATA ;\n pal_dst += pal_stride * y + x ;\n rgb_dst += rgb_stride * y + x * 3 ;\n w = clipw ;\n h = cliph ;\n if ( y ) prev_avail = 1 ;\n }\n else {\n if ( slice > 0 ) {\n pal_dst += pal_stride * kf_slipt ;\n rgb_dst += rgb_stride * kf_slipt ;\n prev_avail = 1 ;\n h -= kf_slipt ;\n }\n else h = kf_slipt ;\n }\n do {\n while ( current_codes -- ) {\n int symbol = get_bits ( gb , 8 ) ;\n if ( symbol >= 204 - keyframe ) symbol += 14 - keyframe ;\n else if ( symbol > 189 ) symbol = get_bits1 ( gb ) + ( symbol << 1 ) - 190 ;\n if ( bits [ symbol ] ) return AVERROR_INVALIDDATA ;\n bits [ symbol ] = current_length ;\n codes [ symbol ] = next_code ++ ;\n read_codes ++ ;\n }\n current_length ++ ;\n next_code <<= 1 ;\n remaining_codes = ( 1 << current_length ) - next_code ;\n current_codes = get_bits ( gb , av_ceil_log2 ( remaining_codes + 1 ) ) ;\n if ( current_length > 22 || current_codes > remaining_codes ) return AVERROR_INVALIDDATA ;\n }\n while ( current_codes != remaining_codes ) ;\n remaining_codes = alphabet_size - read_codes ;\n while ( ( surplus_codes = ( 2 << current_length ) - ( next_code << 1 ) - remaining_codes ) < 0 ) {\n current_length ++ ;\n next_code <<= 1 ;\n }\n for ( i = 0 ;\n i < alphabet_size ;\n i ++ ) if ( ! bits [ i ] ) {\n if ( surplus_codes -- == 0 ) {\n current_length ++ ;\n next_code <<= 1 ;\n }\n bits [ i ] = current_length ;\n codes [ i ] = next_code ++ ;\n }\n if ( next_code != 1 << current_length ) return AVERROR_INVALIDDATA ;\n if ( i = init_vlc ( & vlc , 9 , alphabet_size , bits , 1 , 1 , codes , 4 , 4 , 0 ) ) return i ;\n do {\n uint8_t * pp = pal_dst ;\n uint8_t * rp = rgb_dst ;\n do {\n if ( repeat -- < 1 ) {\n int b = get_vlc2 ( gb , vlc . table , 9 , 3 ) ;\n if ( b < 256 ) last_symbol = b ;\n else if ( b < 268 ) {\n b -= 256 ;\n if ( b == 11 ) b = get_bits ( gb , 4 ) + 10 ;\n if ( ! b ) repeat = 0 ;\n else repeat = get_bits ( gb , b ) ;\n repeat += ( 1 << b ) - 1 ;\n if ( last_symbol == - 2 ) {\n int skip = FFMIN ( repeat , pal_dst + w - pp ) ;\n repeat -= skip ;\n pp += skip ;\n rp += skip * 3 ;\n }\n }\n else last_symbol = 267 - b ;\n }\n if ( last_symbol >= 0 ) {\n * pp = last_symbol ;\n AV_WB24 ( rp , pal [ last_symbol ] ) ;\n }\n else if ( last_symbol == - 1 && prev_avail ) {\n * pp = * ( pp - pal_stride ) ;\n memcpy ( rp , rp - rgb_stride , 3 ) ;\n }\n rp += 3 ;\n }\n while ( ++ pp < pal_dst + w ) ;\n pal_dst += pal_stride ;\n rgb_dst += rgb_stride ;\n prev_avail = 1 ;\n }\n while ( -- h ) ;\n ff_free_vlc ( & vlc ) ;\n return 0 ;\n }"}
{"idx": 5411, "target": 0, "func": "static void HtmlCopy ( char * * ppsz_html , char * * ppsz_subtitle , const char * psz_text ) {\n HtmlPut ( ppsz_html , psz_text ) ;\n * ppsz_subtitle += strlen ( psz_text ) ;\n }"}
{"idx": 5412, "target": 0, "func": "void gx_device_copy_color_procs ( gx_device * dev , const gx_device * target ) {\n dev_proc_map_cmyk_color ( ( * from_cmyk ) ) = dev_proc ( dev , map_cmyk_color ) ;\n dev_proc_map_rgb_color ( ( * from_rgb ) ) = dev_proc ( dev , map_rgb_color ) ;\n dev_proc_map_color_rgb ( ( * to_rgb ) ) = dev_proc ( dev , map_color_rgb ) ;\n if ( from_cmyk == gx_forward_map_cmyk_color || from_cmyk == cmyk_1bit_map_cmyk_color || from_cmyk == cmyk_8bit_map_cmyk_color ) {\n from_cmyk = dev_proc ( target , map_cmyk_color ) ;\n set_dev_proc ( dev , map_cmyk_color , ( from_cmyk == cmyk_1bit_map_cmyk_color || from_cmyk == cmyk_8bit_map_cmyk_color ? from_cmyk : gx_forward_map_cmyk_color ) ) ;\n }\n if ( from_rgb == gx_forward_map_rgb_color || from_rgb == gx_default_rgb_map_rgb_color ) {\n from_rgb = dev_proc ( target , map_rgb_color ) ;\n set_dev_proc ( dev , map_rgb_color , ( from_rgb == gx_default_rgb_map_rgb_color ? from_rgb : gx_forward_map_rgb_color ) ) ;\n }\n if ( to_rgb == gx_forward_map_color_rgb || to_rgb == cmyk_1bit_map_color_rgb || to_rgb == cmyk_8bit_map_color_rgb ) {\n to_rgb = dev_proc ( target , map_color_rgb ) ;\n set_dev_proc ( dev , map_color_rgb , ( to_rgb == cmyk_1bit_map_color_rgb || to_rgb == cmyk_8bit_map_color_rgb ? to_rgb : gx_forward_map_color_rgb ) ) ;\n }\n }"}
{"idx": 5413, "target": 0, "func": "static int dissect_h245_RequestMessage ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 367 \"../../asn1/h245/h245.cnf\" gint32 value ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_RequestMessage , RequestMessage_choice , & value ) ;\n if ( h245_shorttypes == TRUE ) {\n col_prepend_fstr ( actx -> pinfo -> cinfo , COL_INFO , \"%s \" , val_to_str ( value , h245_RequestMessage_short_vals , \"<unknown>\" ) ) ;\n }\n else {\n col_prepend_fstr ( actx -> pinfo -> cinfo , COL_INFO , \"%s \" , val_to_str ( value , h245_RequestMessage_vals , \"<unknown>\" ) ) ;\n }\n if ( ( codec_type != NULL ) && ( value == RequestMessage_openLogicalChannel ) ) {\n col_append_fstr ( actx -> pinfo -> cinfo , COL_INFO , \"(%s) \" , codec_type ) ;\n }\n col_set_fence ( actx -> pinfo -> cinfo , COL_INFO ) ;\n if ( h245_pi == NULL ) return offset ;\n if ( strlen ( h245_pi -> frame_label ) == 0 ) {\n g_snprintf ( h245_pi -> frame_label , 50 , \"%s\" , val_to_str ( value , h245_RequestMessage_short_vals , \"UKN\" ) ) ;\n if ( ( codec_type != NULL ) && ( ( value == RequestMessage_openLogicalChannel ) || ( value == RequestMessage_requestMode ) ) ) {\n g_strlcat ( h245_pi -> frame_label , \" (\" , 50 ) ;\n g_strlcat ( h245_pi -> frame_label , codec_type , 50 ) ;\n g_strlcat ( h245_pi -> frame_label , \")\" , 50 ) ;\n }\n }\n g_strlcat ( h245_pi -> comment , val_to_str ( value , h245_RequestMessage_vals , \"<unknown>\" ) , 50 ) ;\n return offset ;\n }"}
{"idx": 5414, "target": 0, "func": "TSReturnCode TSHttpTxnShutDown ( TSHttpTxn txnp , TSEvent event ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n if ( event == TS_EVENT_HTTP_TXN_CLOSE ) {\n return TS_ERROR ;\n }\n HttpTransact : : State * s = & ( ( ( HttpSM * ) txnp ) -> t_state ) ;\n s -> api_http_sm_shutdown = true ;\n return TS_SUCCESS ;\n }"}
{"idx": 5415, "target": 0, "func": "static void abort_sasl_exit ( hook_data_client_exit * data ) {\n if ( data -> target -> localClient ) abort_sasl ( data -> target ) ;\n }"}
{"idx": 5416, "target": 0, "func": "void vp9_print_modes_and_motion_vectors ( VP9_COMMON * cm , const char * file ) {\n int mi_row ;\n int mi_col ;\n int mi_index = 0 ;\n FILE * mvs = fopen ( file , \"a\" ) ;\n MODE_INFO * * mi = NULL ;\n int rows = cm -> mi_rows ;\n int cols = cm -> mi_cols ;\n print_mi_data ( cm , mvs , \"Partitions:\" , offsetof ( MB_MODE_INFO , sb_type ) ) ;\n print_mi_data ( cm , mvs , \"Modes:\" , offsetof ( MB_MODE_INFO , mode ) ) ;\n print_mi_data ( cm , mvs , \"Skips:\" , offsetof ( MB_MODE_INFO , skip ) ) ;\n print_mi_data ( cm , mvs , \"Ref frame:\" , offsetof ( MB_MODE_INFO , ref_frame [ 0 ] ) ) ;\n print_mi_data ( cm , mvs , \"Transform:\" , offsetof ( MB_MODE_INFO , tx_size ) ) ;\n print_mi_data ( cm , mvs , \"UV Modes:\" , offsetof ( MB_MODE_INFO , uv_mode ) ) ;\n log_frame_info ( cm , \"Vectors \" , mvs ) ;\n for ( mi_row = 0 ;\n mi_row < rows ;\n mi_row ++ ) {\n fprintf ( mvs , \"V \" ) ;\n for ( mi_col = 0 ;\n mi_col < cols ;\n mi_col ++ ) {\n fprintf ( mvs , \"%4d:%4d \" , mi [ mi_index ] -> mbmi . mv [ 0 ] . as_mv . row , mi [ mi_index ] -> mbmi . mv [ 0 ] . as_mv . col ) ;\n mi_index ++ ;\n }\n fprintf ( mvs , \"\\n\" ) ;\n mi_index += 8 ;\n }\n fprintf ( mvs , \"\\n\" ) ;\n fclose ( mvs ) ;\n }"}
{"idx": 5417, "target": 0, "func": "static void dissect_rsvp_integrity ( proto_item * ti _U_ , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int type ) {\n int offset2 = offset + 4 ;\n proto_tree * ti2 , * rsvp_integ_flags_tree ;\n proto_tree_add_uint ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type ) ;\n ti2 = proto_tree_add_item ( rsvp_object_tree , hf_rsvp_integrity_flags , tvb , offset2 , 1 , ENC_BIG_ENDIAN ) ;\n rsvp_integ_flags_tree = proto_item_add_subtree ( ti2 , TREE ( TT_INTEGRITY_FLAGS ) ) ;\n proto_tree_add_item ( rsvp_integ_flags_tree , hf_rsvp_integrity_flags_handshake , tvb , offset2 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_integrity_key_identifier , tvb , offset2 + 2 , 6 , ENC_NA ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_integrity_sequence_number , tvb , offset2 + 8 , 8 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_integrity_hash , tvb , offset2 + 16 , obj_length - 20 , ENC_NA ) ;\n }"}
{"idx": 5418, "target": 0, "func": "static void vga_draw_glyph8 ( uint8_t * d , int linesize , const uint8_t * font_ptr , int h , uint32_t fgcol , uint32_t bgcol ) {\n uint32_t font_data , xorcol ;\n xorcol = bgcol ^ fgcol ;\n do {\n font_data = font_ptr [ 0 ] ;\n vga_draw_glyph_line ( d , font_data , xorcol , bgcol ) ;\n font_ptr += 4 ;\n d += linesize ;\n }\n while ( -- h ) ;\n }"}
{"idx": 5419, "target": 0, "func": "static char * format_key ( const struct sshkey * key ) {\n char * ret , * fp = sshkey_fingerprint ( key , options . fingerprint_hash , SSH_FP_DEFAULT ) ;\n xasprintf ( & ret , \"%s %s\" , sshkey_type ( key ) , fp ) ;\n free ( fp ) ;\n return ret ;\n }"}
{"idx": 5420, "target": 0, "func": "TEST_F ( ExtensionWelcomeNotificationTest , DelayedPreferenceSyncPreviouslyDismissed ) {\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissed ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissedLocal ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationPreviouslyPoppedUp ) ) ;\n ShowChromeNowNotification ( ) ;\n EXPECT_EQ ( message_center ( ) -> add_notification_calls ( ) , 0 ) ;\n EXPECT_EQ ( message_center ( ) -> remove_notification_calls ( ) , 0 ) ;\n EXPECT_EQ ( message_center ( ) -> notifications_with_shown_as_popup ( ) , 0 ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissed ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissedLocal ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationPreviouslyPoppedUp ) ) ;\n SetBooleanPref ( prefs : : kWelcomeNotificationDismissed , true ) ;\n EXPECT_TRUE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissed ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissedLocal ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationPreviouslyPoppedUp ) ) ;\n StartPreferenceSyncing ( ) ;\n EXPECT_EQ ( message_center ( ) -> add_notification_calls ( ) , 0 ) ;\n EXPECT_EQ ( message_center ( ) -> remove_notification_calls ( ) , 0 ) ;\n EXPECT_EQ ( message_center ( ) -> notifications_with_shown_as_popup ( ) , 0 ) ;\n EXPECT_TRUE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissed ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissedLocal ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationPreviouslyPoppedUp ) ) ;\n }"}
{"idx": 5421, "target": 0, "func": "static XHCIStreamContext * xhci_alloc_stream_contexts ( unsigned count , dma_addr_t base ) {\n XHCIStreamContext * stctx ;\n unsigned int i ;\n stctx = g_new0 ( XHCIStreamContext , count ) ;\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n stctx [ i ] . pctx = base + i * 16 ;\n stctx [ i ] . sct = - 1 ;\n }\n return stctx ;\n }"}
{"idx": 5422, "target": 0, "func": "static PyObject * string_isdigit ( PyStringObject * self ) {\n register const unsigned char * p = ( unsigned char * ) PyString_AS_STRING ( self ) ;\n register const unsigned char * e ;\n if ( PyString_GET_SIZE ( self ) == 1 && isdigit ( * p ) ) return PyBool_FromLong ( 1 ) ;\n if ( PyString_GET_SIZE ( self ) == 0 ) return PyBool_FromLong ( 0 ) ;\n e = p + PyString_GET_SIZE ( self ) ;\n for ( ;\n p < e ;\n p ++ ) {\n if ( ! isdigit ( * p ) ) return PyBool_FromLong ( 0 ) ;\n }\n return PyBool_FromLong ( 1 ) ;\n }"}
{"idx": 5423, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , NonHttpOrHttpsUrl ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , GURL ( chrome : : kChromeUIVersionURL ) ) ;\n NavigateToUntrackedUrl ( ) ;\n EXPECT_TRUE ( NoPageLoadMetricsRecorded ( ) ) << \"Recorded metrics: \" << GetRecordedPageLoadMetricNames ( ) ;\n }"}
{"idx": 5424, "target": 0, "func": "TSReturnCode TSMgmtConfigIntSet ( const char * var_name , TSMgmtInt value ) {\n TSMgmtInt result ;\n char * buffer ;\n if ( TSMgmtIntGet ( var_name , & result ) != TS_SUCCESS ) {\n return TS_ERROR ;\n }\n int buffer_size = strlen ( var_name ) + 1 + 32 + 1 + 64 + 1 ;\n buffer = ( char * ) alloca ( buffer_size ) ;\n snprintf ( buffer , buffer_size , \"%s %d %\" PRId64 \"\" , var_name , MGMT_INT , value ) ;\n RecSignalManager ( MGMT_SIGNAL_PLUGIN_SET_CONFIG , buffer ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 5425, "target": 0, "func": "inline bool is_response_body_precluded ( HTTPStatus status_code , int method ) {\n if ( ( method == HTTP_WKSIDX_HEAD ) || is_response_body_precluded ( status_code ) ) {\n return true ;\n }\n else {\n return false ;\n }\n }"}
{"idx": 5426, "target": 0, "func": "struct archive_string_conv * archive_string_default_conversion_for_write ( struct archive * a ) {\n ( void ) a ;\n return ( NULL ) ;\n }"}
{"idx": 5427, "target": 0, "func": "static void u_printf_reset_sign ( UNumberFormat * format , const u_printf_spec_info * info , UChar * prefixBuffer , int32_t * prefixBufLen , UErrorCode * status ) {\n if ( info -> fShowSign ) {\n unum_setTextAttribute ( format , UNUM_POSITIVE_PREFIX , prefixBuffer , * prefixBufLen , status ) ;\n }\n }"}
{"idx": 5428, "target": 0, "func": "static int dissect_h245_MIPAddress ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MIPAddress , MIPAddress_sequence ) ;\n return offset ;\n }"}
{"idx": 5429, "target": 0, "func": "gboolean nautilus_directory_is_anyone_monitoring_file_list ( NautilusDirectory * directory ) {\n if ( directory -> details -> call_when_ready_counters [ REQUEST_FILE_LIST ] > 0 ) {\n return TRUE ;\n }\n if ( directory -> details -> monitor_counters [ REQUEST_FILE_LIST ] > 0 ) {\n return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 5430, "target": 0, "func": "static void label_mark_truncated ( char * label_str , gsize name_pos ) {\n static const char trunc_str [ ] = \" [truncated]\" ;\n const size_t trunc_len = sizeof ( trunc_str ) - 1 ;\n gchar * last_char ;\n if ( name_pos < ITEM_LABEL_LENGTH - trunc_len ) {\n memmove ( label_str + name_pos + trunc_len , label_str + name_pos , ITEM_LABEL_LENGTH - name_pos - trunc_len ) ;\n memcpy ( label_str + name_pos , trunc_str , trunc_len ) ;\n last_char = g_utf8_prev_char ( & label_str [ ITEM_LABEL_LENGTH ] ) ;\n * last_char = '\\0' ;\n }\n else if ( name_pos < ITEM_LABEL_LENGTH ) g_strlcpy ( label_str + name_pos , trunc_str , ITEM_LABEL_LENGTH - name_pos ) ;\n }"}
{"idx": 5431, "target": 0, "func": "static void filesystem_info_start ( NautilusDirectory * directory , NautilusFile * file , gboolean * doing_io ) {\n GFile * location ;\n FilesystemInfoState * state ;\n if ( directory -> details -> filesystem_info_state != NULL ) {\n * doing_io = TRUE ;\n return ;\n }\n if ( ! is_needy ( file , lacks_filesystem_info , REQUEST_FILESYSTEM_INFO ) ) {\n return ;\n }\n * doing_io = TRUE ;\n if ( ! async_job_start ( directory , \"filesystem info\" ) ) {\n return ;\n }\n state = g_new0 ( FilesystemInfoState , 1 ) ;\n state -> directory = directory ;\n state -> file = file ;\n state -> cancellable = g_cancellable_new ( ) ;\n location = nautilus_file_get_location ( file ) ;\n directory -> details -> filesystem_info_state = state ;\n g_file_query_filesystem_info_async ( location , G_FILE_ATTRIBUTE_FILESYSTEM_READONLY \",\" G_FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW \",\" G_FILE_ATTRIBUTE_FILESYSTEM_TYPE , G_PRIORITY_DEFAULT , state -> cancellable , query_filesystem_info_callback , state ) ;\n g_object_unref ( location ) ;\n }"}
{"idx": 5432, "target": 0, "func": "void vp8_set_quantizer ( struct VP8_COMP * cpi , int Q ) {\n VP8_COMMON * cm = & cpi -> common ;\n MACROBLOCKD * mbd = & cpi -> mb . e_mbd ;\n int update = 0 ;\n int new_delta_q ;\n cm -> base_qindex = Q ;\n cm -> y1dc_delta_q = 0 ;\n cm -> y2ac_delta_q = 0 ;\n cm -> uvdc_delta_q = 0 ;\n cm -> uvac_delta_q = 0 ;\n if ( Q < 4 ) {\n new_delta_q = 4 - Q ;\n }\n else new_delta_q = 0 ;\n update |= cm -> y2dc_delta_q != new_delta_q ;\n cm -> y2dc_delta_q = new_delta_q ;\n mbd -> segment_feature_data [ MB_LVL_ALT_Q ] [ 0 ] = cpi -> segment_feature_data [ MB_LVL_ALT_Q ] [ 0 ] ;\n mbd -> segment_feature_data [ MB_LVL_ALT_Q ] [ 1 ] = cpi -> segment_feature_data [ MB_LVL_ALT_Q ] [ 1 ] ;\n mbd -> segment_feature_data [ MB_LVL_ALT_Q ] [ 2 ] = cpi -> segment_feature_data [ MB_LVL_ALT_Q ] [ 2 ] ;\n mbd -> segment_feature_data [ MB_LVL_ALT_Q ] [ 3 ] = cpi -> segment_feature_data [ MB_LVL_ALT_Q ] [ 3 ] ;\n if ( update ) vp8cx_init_quantizer ( cpi ) ;\n }"}
{"idx": 5433, "target": 0, "func": "void update_key_parts ( MI_KEYDEF * keyinfo , ulong * rec_per_key_part , ulonglong * unique , ulonglong * notnull , ulonglong records ) {\n ulonglong count = 0 , tmp , unique_tuples ;\n ulonglong tuples = records ;\n uint parts ;\n for ( parts = 0 ;\n parts < keyinfo -> keysegs ;\n parts ++ ) {\n count += unique [ parts ] ;\n unique_tuples = count + 1 ;\n if ( notnull ) {\n tuples = notnull [ parts ] ;\n unique_tuples -= ( records - notnull [ parts ] ) ;\n }\n if ( unique_tuples == 0 ) tmp = 1 ;\n else if ( count == 0 ) tmp = tuples ;\n else tmp = ( tuples + unique_tuples / 2 ) / unique_tuples ;\n set_if_bigger ( tmp , 1 ) ;\n if ( tmp >= ( ulonglong ) ~ ( ulong ) 0 ) tmp = ( ulonglong ) ~ ( ulong ) 0 ;\n * rec_per_key_part = ( ulong ) tmp ;\n rec_per_key_part ++ ;\n }\n }"}
{"idx": 5434, "target": 0, "func": "void dissect_unid ( tvbuff_t * tvb , packet_info * pinfo , int offset , proto_item * pi , const char * ssn_name , int hf_ssn_timestamp , int hf_ssn_date , int hf_ssn_time , int hf_macid , gint ett , gint ett_ssn ) {\n proto_tree * tree , * ssn_tree ;\n tree = proto_item_add_subtree ( pi , ett ) ;\n ssn_tree = proto_tree_add_subtree ( tree , tvb , offset , 6 , ett_ssn , NULL , ssn_name ) ;\n dissect_cipsafety_ssn ( ssn_tree , tvb , pinfo , offset , hf_ssn_timestamp , hf_ssn_date , hf_ssn_time ) ;\n proto_tree_add_item ( tree , hf_macid , tvb , offset + 6 , 4 , ENC_LITTLE_ENDIAN ) ;\n }"}
{"idx": 5435, "target": 0, "func": "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_ ) {\n offset = dissect_per_boolean ( tvb , offset , actx , tree , hf_index , NULL ) ;\n return offset ;\n }"}
{"idx": 5436, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , TestIsHandledProtocol ) {\n registry ( ) -> GetHandlersFor ( \"test\" ) ;\n ASSERT_FALSE ( registry ( ) -> IsHandledProtocol ( \"test\" ) ) ;\n }"}
{"idx": 5437, "target": 0, "func": "static const char * address_rfc_avp ( diam_ctx_t * c , diam_avp_t * a , tvbuff_t * tvb , diam_sub_dis_t * diam_sub_dis_inf _U_ ) {\n char * label = NULL ;\n address_avp_t * t = ( address_avp_t * ) a -> type_data ;\n gint len = tvb_reported_length ( tvb ) ;\n proto_item * pi = proto_tree_add_item ( c -> tree , a -> hf_value , tvb , 0 , len , ENC_BIG_ENDIAN ) ;\n proto_tree * pt = proto_item_add_subtree ( pi , t -> ett ) ;\n guint32 addr_type = tvb_get_ntohs ( tvb , 0 ) ;\n len = len - 2 ;\n proto_tree_add_item ( pt , t -> hf_address_type , tvb , 0 , 2 , ENC_NA ) ;\n switch ( addr_type ) {\n case 1 : if ( len != 4 ) {\n proto_tree_add_expert_format ( pt , c -> pinfo , & ei_diameter_avp_len , tvb , 2 , len , \"Wrong length for IPv4 Address: %d instead of 4\" , len ) ;\n return \"[Malformed]\" ;\n }\n pi = proto_tree_add_item ( pt , t -> hf_ipv4 , tvb , 2 , 4 , ENC_BIG_ENDIAN ) ;\n break ;\n case 2 : if ( len != 16 ) {\n proto_tree_add_expert_format ( pt , c -> pinfo , & ei_diameter_avp_len , tvb , 2 , len , \"Wrong length for IPv6 Address: %d instead of 16\" , len ) ;\n return \"[Malformed]\" ;\n }\n pi = proto_tree_add_item ( pt , t -> hf_ipv6 , tvb , 2 , 16 , ENC_NA ) ;\n break ;\n default : pi = proto_tree_add_item ( pt , t -> hf_other , tvb , 2 , - 1 , ENC_BIG_ENDIAN ) ;\n break ;\n }\n if ( c -> tree ) {\n label = ( char * ) wmem_alloc ( wmem_packet_scope ( ) , ITEM_LABEL_LENGTH + 1 ) ;\n proto_item_fill_label ( PITEM_FINFO ( pi ) , label ) ;\n label = strstr ( label , \": \" ) + 2 ;\n }\n return label ;\n }"}
{"idx": 5438, "target": 0, "func": "static gboolean qio_channel_websock_handshake_io ( QIOChannel * ioc , GIOCondition condition , gpointer user_data ) {\n QIOTask * task = user_data ;\n QIOChannelWebsock * wioc = QIO_CHANNEL_WEBSOCK ( qio_task_get_source ( task ) ) ;\n Error * err = NULL ;\n int ret ;\n ret = qio_channel_websock_handshake_read ( wioc , & err ) ;\n if ( ret < 0 ) {\n trace_qio_channel_websock_handshake_fail ( ioc , error_get_pretty ( err ) ) ;\n qio_task_set_error ( task , err ) ;\n qio_task_complete ( task ) ;\n return FALSE ;\n }\n if ( ret == 0 ) {\n trace_qio_channel_websock_handshake_pending ( ioc , G_IO_IN ) ;\n return TRUE ;\n }\n if ( err ) {\n error_propagate ( & wioc -> io_err , err ) ;\n }\n trace_qio_channel_websock_handshake_reply ( ioc ) ;\n qio_channel_add_watch ( wioc -> master , G_IO_OUT , qio_channel_websock_handshake_send , task , NULL ) ;\n return FALSE ;\n }"}
{"idx": 5439, "target": 0, "func": "ink_hrtime TShrtime ( ) {\n return Thread : : get_hrtime ( ) ;\n }"}
{"idx": 5440, "target": 0, "func": "static void dtap_tp_epc_test_loop_mode_c_mbms_packet_counter_response ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_len = len ;\n curr_offset = offset ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_TP_EPC_MBMS_PACKET_COUNTER_VALUE , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 5441, "target": 0, "func": "static int dissect_h225_InfoRequestNak ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_InfoRequestNak , InfoRequestNak_sequence ) ;\n return offset ;\n }"}
{"idx": 5442, "target": 0, "func": "static void dequant ( float * out , const int * idx , const float * cbs [ ] ) {\n int i ;\n int stride = 2 ;\n int num_vec = 5 ;\n for ( i = 0 ;\n i < num_vec ;\n i ++ ) memcpy ( out + stride * i , cbs [ i ] + stride * idx [ i ] , stride * sizeof ( float ) ) ;\n }"}
{"idx": 5443, "target": 0, "func": "void url_rewrite_remap_request ( const UrlMappingContainer & mapping_container , URL * request_url , int method ) {\n URL * map_to = mapping_container . getToURL ( ) ;\n URL * map_from = mapping_container . getFromURL ( ) ;\n const char * toHost ;\n int toHostLen ;\n toHost = map_to -> host_get ( & toHostLen ) ;\n Debug ( \"url_rewrite\" , \"%s: Remapping rule id: %d matched\" , __func__ , mapping_container . getMapping ( ) -> map_id ) ;\n request_url -> host_set ( toHost , toHostLen ) ;\n request_url -> port_set ( map_to -> port_get_raw ( ) ) ;\n if ( HTTP_WKSIDX_CONNECT != method ) {\n const char * toScheme ;\n int toSchemeLen ;\n const char * requestPath ;\n int requestPathLen = 0 ;\n int fromPathLen = 0 ;\n const char * toPath ;\n int toPathLen ;\n toScheme = map_to -> scheme_get ( & toSchemeLen ) ;\n request_url -> scheme_set ( toScheme , toSchemeLen ) ;\n map_from -> path_get ( & fromPathLen ) ;\n toPath = map_to -> path_get ( & toPathLen ) ;\n requestPath = request_url -> path_get ( & requestPathLen ) ;\n char * newPath = static_cast < char * > ( alloca ( sizeof ( char ) * ( ( requestPathLen - fromPathLen ) + toPathLen + 8 ) ) ) ;\n int newPathLen = 0 ;\n * newPath = 0 ;\n if ( toPath ) {\n memcpy ( newPath , toPath , toPathLen ) ;\n newPathLen += toPathLen ;\n }\n if ( ! fromPathLen && requestPathLen && newPathLen && toPathLen && * ( newPath + newPathLen - 1 ) != '/' ) {\n * ( newPath + newPathLen ) = '/' ;\n newPathLen ++ ;\n }\n if ( requestPath ) {\n if ( requestPathLen < fromPathLen ) {\n if ( toPathLen && requestPath [ requestPathLen - 1 ] == '/' && toPath [ toPathLen - 1 ] == '/' ) {\n fromPathLen ++ ;\n }\n }\n else {\n if ( toPathLen && requestPath [ fromPathLen ] == '/' && toPath [ toPathLen - 1 ] == '/' ) {\n fromPathLen ++ ;\n }\n }\n if ( ( requestPathLen - fromPathLen ) > 0 ) {\n memcpy ( newPath + newPathLen , requestPath + fromPathLen , requestPathLen - fromPathLen ) ;\n newPathLen += ( requestPathLen - fromPathLen ) ;\n }\n }\n if ( * newPath == '/' ) {\n request_url -> path_set ( newPath + 1 , newPathLen - 1 ) ;\n }\n else {\n request_url -> path_set ( newPath , newPathLen ) ;\n }\n }\n }"}
{"idx": 5444, "target": 0, "func": "void vp9_init_plane_quantizers ( VP9_COMP * cpi , MACROBLOCK * x ) {\n const VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n QUANTS * const quants = & cpi -> quants ;\n const int segment_id = xd -> mi [ 0 ] . src_mi -> mbmi . segment_id ;\n const int qindex = vp9_get_qindex ( & cm -> seg , segment_id , cm -> base_qindex ) ;\n const int rdmult = vp9_compute_rd_mult ( cpi , qindex + cm -> y_dc_delta_q ) ;\n const int zbin = cpi -> zbin_mode_boost ;\n int i ;\n x -> plane [ 0 ] . quant = quants -> y_quant [ qindex ] ;\n x -> plane [ 0 ] . quant_fp = quants -> y_quant_fp [ qindex ] ;\n x -> plane [ 0 ] . round_fp = quants -> y_round_fp [ qindex ] ;\n x -> plane [ 0 ] . quant_shift = quants -> y_quant_shift [ qindex ] ;\n x -> plane [ 0 ] . zbin = quants -> y_zbin [ qindex ] ;\n x -> plane [ 0 ] . round = quants -> y_round [ qindex ] ;\n x -> plane [ 0 ] . quant_thred [ 0 ] = cm -> y_dequant [ qindex ] [ 0 ] * cm -> y_dequant [ qindex ] [ 0 ] ;\n x -> plane [ 0 ] . quant_thred [ 1 ] = cm -> y_dequant [ qindex ] [ 1 ] * cm -> y_dequant [ qindex ] [ 1 ] ;\n x -> plane [ 0 ] . zbin_extra = ( int16_t ) ( ( cm -> y_dequant [ qindex ] [ 1 ] * zbin ) >> 7 ) ;\n xd -> plane [ 0 ] . dequant = cm -> y_dequant [ qindex ] ;\n for ( i = 1 ;\n i < 3 ;\n i ++ ) {\n x -> plane [ i ] . quant = quants -> uv_quant [ qindex ] ;\n x -> plane [ i ] . quant_fp = quants -> uv_quant_fp [ qindex ] ;\n x -> plane [ i ] . round_fp = quants -> uv_round_fp [ qindex ] ;\n x -> plane [ i ] . quant_shift = quants -> uv_quant_shift [ qindex ] ;\n x -> plane [ i ] . zbin = quants -> uv_zbin [ qindex ] ;\n x -> plane [ i ] . round = quants -> uv_round [ qindex ] ;\n x -> plane [ i ] . quant_thred [ 0 ] = cm -> y_dequant [ qindex ] [ 0 ] * cm -> y_dequant [ qindex ] [ 0 ] ;\n x -> plane [ i ] . quant_thred [ 1 ] = cm -> y_dequant [ qindex ] [ 1 ] * cm -> y_dequant [ qindex ] [ 1 ] ;\n x -> plane [ i ] . zbin_extra = ( int16_t ) ( ( cm -> uv_dequant [ qindex ] [ 1 ] * zbin ) >> 7 ) ;\n xd -> plane [ i ] . dequant = cm -> uv_dequant [ qindex ] ;\n }\n x -> skip_block = vp9_segfeature_active ( & cm -> seg , segment_id , SEG_LVL_SKIP ) ;\n x -> q_index = qindex ;\n x -> errorperbit = rdmult >> 6 ;\n x -> errorperbit += ( x -> errorperbit == 0 ) ;\n vp9_initialize_me_consts ( cpi , x -> q_index ) ;\n }"}
{"idx": 5445, "target": 0, "func": "void proto_register_zbee_zcl_appl_evtalt ( void ) {\n guint i , j ;\n static hf_register_info hf [ ] = {\n {\n & hf_zbee_zcl_appl_evtalt_srv_tx_cmd_id , {\n \"Command\" , \"zbee_zcl_ha.applevtalt.cmd.srv_tx.id\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_appl_evtalt_srv_tx_cmd_names ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_evtalt_srv_rx_cmd_id , {\n \"Command\" , \"zbee_zcl_ha.applevtalt.cmd.srv_rx.id\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_appl_evtalt_srv_rx_cmd_names ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_evtalt_count_num , {\n \"Number of Alerts\" , \"zbee_zcl_ha.applevtalt.count.num\" , FT_UINT8 , BASE_DEC , NULL , ZBEE_ZCL_APPL_EVTALT_COUNT_NUM_MASK , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_evtalt_count_type , {\n \"Type of Alerts\" , \"zbee_zcl_ha.applevtalt.count.type\" , FT_UINT8 , BASE_DEC , NULL , ZBEE_ZCL_APPL_EVTALT_COUNT_TYPE_MASK , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_evtalt_alert_id , {\n \"Alert Id\" , \"zbee_zcl_ha.applevtalt.alert_id\" , FT_UINT24 , BASE_HEX , NULL , ZBEE_ZCL_APPL_EVTALT_ALERT_ID_MASK , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_evtalt_category , {\n \"Category\" , \"zbee_zcl_ha.applevtalt.category\" , FT_UINT24 , BASE_HEX , VALS ( zbee_zcl_appl_evtalt_category_names ) , ZBEE_ZCL_APPL_EVTALT_CATEGORY_MASK , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_evtalt_status , {\n \"Status\" , \"zbee_zcl_ha.applevtalt.status\" , FT_UINT24 , BASE_HEX , VALS ( zbee_zcl_appl_evtalt_status_names ) , ZBEE_ZCL_APPL_EVTALT_STATUS_MASK , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_evtalt_reserved , {\n \"Reserved\" , \"zbee_zcl_ha.applevtalt.reserved\" , FT_UINT24 , BASE_HEX , NULL , ZBEE_ZCL_APPL_EVTALT_RESERVED_MASK , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_evtalt_proprietary , {\n \"Proprietary\" , \"zbee_zcl_ha.applevtalt.proprietary\" , FT_UINT24 , BASE_HEX , NULL , ZBEE_ZCL_APPL_EVTALT_PROPRIETARY_MASK , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_evtalt_event_hdr , {\n \"Event Header\" , \"zbee_zcl_ha.applevtalt.event.header\" , FT_UINT8 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_evtalt_event_id , {\n \"Event Id\" , \"zbee_zcl_ha.applevtalt.event.id\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_appl_evtalt_event_id_names ) , 0x00 , NULL , HFILL }\n }\n }\n ;\n gint * ett [ ZBEE_ZCL_APPL_EVTALT_NUM_ETT ] ;\n ett [ 0 ] = & ett_zbee_zcl_appl_evtalt ;\n for ( i = 0 , j = ZBEE_ZCL_APPL_EVTALT_NUM_GENERIC_ETT ;\n i < ZBEE_ZCL_APPL_EVTALT_NUM_STRUCT_ETT ;\n i ++ , j ++ ) {\n ett_zbee_zcl_appl_evtalt_alerts_struct [ i ] = - 1 ;\n ett [ j ] = & ett_zbee_zcl_appl_evtalt_alerts_struct [ i ] ;\n }\n proto_zbee_zcl_appl_evtalt = proto_register_protocol ( \"ZigBee ZCL Appliance Events & Alert\" , \"ZCL Appliance Events & Alert\" , ZBEE_PROTOABBREV_ZCL_APPLEVTALT ) ;\n proto_register_field_array ( proto_zbee_zcl_appl_evtalt , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n register_dissector ( ZBEE_PROTOABBREV_ZCL_APPLEVTALT , dissect_zbee_zcl_appl_evtalt , proto_zbee_zcl_appl_evtalt ) ;\n }"}
{"idx": 5446, "target": 0, "func": "bool vmxnet_tx_pkt_add_raw_fragment ( struct VmxnetTxPkt * pkt , hwaddr pa , size_t len ) {\n hwaddr mapped_len = 0 ;\n struct iovec * ventry ;\n assert ( pkt ) ;\n assert ( pkt -> max_raw_frags > pkt -> raw_frags ) ;\n if ( ! len ) {\n return true ;\n }\n ventry = & pkt -> raw [ pkt -> raw_frags ] ;\n mapped_len = len ;\n ventry -> iov_base = cpu_physical_memory_map ( pa , & mapped_len , false ) ;\n ventry -> iov_len = mapped_len ;\n pkt -> raw_frags += ! ! ventry -> iov_base ;\n if ( ( ventry -> iov_base == NULL ) || ( len != mapped_len ) ) {\n return false ;\n }\n return true ;\n }"}
{"idx": 5447, "target": 0, "func": "static void add_recent_object ( const unsigned char * sha1 , unsigned long mtime , struct recent_data * data ) {\n struct object * obj ;\n enum object_type type ;\n if ( mtime <= data -> timestamp ) return ;\n type = sha1_object_info ( sha1 , NULL ) ;\n if ( type < 0 ) die ( \"unable to get object info for %s\" , sha1_to_hex ( sha1 ) ) ;\n switch ( type ) {\n case OBJ_TAG : case OBJ_COMMIT : obj = parse_object_or_die ( sha1 , NULL ) ;\n break ;\n case OBJ_TREE : obj = ( struct object * ) lookup_tree ( sha1 ) ;\n break ;\n case OBJ_BLOB : obj = ( struct object * ) lookup_blob ( sha1 ) ;\n break ;\n default : die ( \"unknown object type for %s: %s\" , sha1_to_hex ( sha1 ) , typename ( type ) ) ;\n }\n if ( ! obj ) die ( \"unable to lookup %s\" , sha1_to_hex ( sha1 ) ) ;\n add_pending_object ( data -> revs , obj , \"\" ) ;\n }"}
{"idx": 5448, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush )"}
{"idx": 5449, "target": 0, "func": "static inline int get_ue_code ( GetBitContext * gb , int order ) {\n if ( order ) {\n int ret = get_ue_golomb ( gb ) << order ;\n return ret + get_bits ( gb , order ) ;\n }\n return get_ue_golomb ( gb ) ;\n }"}
{"idx": 5450, "target": 0, "func": "SPL_METHOD ( SplTempFileObject , __construct ) {\n long max_memory = PHP_STREAM_MAX_MEM ;\n char tmp_fname [ 48 ] ;\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n zend_error_handling error_handling ;\n zend_replace_error_handling ( EH_THROW , spl_ce_RuntimeException , & error_handling TSRMLS_CC ) ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"|l\" , & max_memory ) == FAILURE ) {\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n return ;\n }\n if ( max_memory < 0 ) {\n intern -> file_name = \"php://memory\" ;\n intern -> file_name_len = 12 ;\n }\n else if ( ZEND_NUM_ARGS ( ) ) {\n intern -> file_name_len = slprintf ( tmp_fname , sizeof ( tmp_fname ) , \"php://temp/maxmemory:%ld\" , max_memory ) ;\n intern -> file_name = tmp_fname ;\n }\n else {\n intern -> file_name = \"php://temp\" ;\n intern -> file_name_len = 10 ;\n }\n intern -> u . file . open_mode = \"wb\" ;\n intern -> u . file . open_mode_len = 1 ;\n intern -> u . file . zcontext = NULL ;\n if ( spl_filesystem_file_open ( intern , 0 , 0 TSRMLS_CC ) == SUCCESS ) {\n intern -> _path_len = 0 ;\n intern -> _path = estrndup ( \"\" , 0 ) ;\n }\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n }"}
{"idx": 5451, "target": 0, "func": "enum ImapAuthRes imap_auth_gss ( struct ImapData * idata , const char * method ) {\n gss_buffer_desc request_buf , send_token ;\n gss_buffer_t sec_token ;\n gss_name_t target_name ;\n gss_ctx_id_t context ;\n gss_OID mech_name ;\n char server_conf_flags ;\n gss_qop_t quality ;\n int cflags ;\n OM_uint32 maj_stat , min_stat ;\n char buf1 [ GSS_BUFSIZE ] , buf2 [ GSS_BUFSIZE ] ;\n unsigned long buf_size ;\n int rc ;\n if ( ! mutt_bit_isset ( idata -> capabilities , AGSSAPI ) ) return IMAP_AUTH_UNAVAIL ;\n if ( mutt_account_getuser ( & idata -> conn -> account ) < 0 ) return IMAP_AUTH_FAILURE ;\n snprintf ( buf1 , sizeof ( buf1 ) , \"imap@%s\" , idata -> conn -> account . host ) ;\n request_buf . value = buf1 ;\n request_buf . length = strlen ( buf1 ) ;\n maj_stat = gss_import_name ( & min_stat , & request_buf , gss_nt_service_name , & target_name ) ;\n if ( maj_stat != GSS_S_COMPLETE ) {\n mutt_debug ( 2 , \"Couldn't get service name for [%s]\\n\" , buf1 ) ;\n return IMAP_AUTH_UNAVAIL ;\n }\n else if ( DebugLevel >= 2 ) {\n gss_display_name ( & min_stat , target_name , & request_buf , & mech_name ) ;\n mutt_debug ( 2 , \"Using service name [%s]\\n\" , ( char * ) request_buf . value ) ;\n gss_release_buffer ( & min_stat , & request_buf ) ;\n }\n sec_token = GSS_C_NO_BUFFER ;\n context = GSS_C_NO_CONTEXT ;\n maj_stat = gss_init_sec_context ( & min_stat , GSS_C_NO_CREDENTIAL , & context , target_name , GSS_C_NO_OID , GSS_C_MUTUAL_FLAG | GSS_C_SEQUENCE_FLAG , 0 , GSS_C_NO_CHANNEL_BINDINGS , sec_token , NULL , & send_token , ( unsigned int * ) & cflags , NULL ) ;\n if ( maj_stat != GSS_S_COMPLETE && maj_stat != GSS_S_CONTINUE_NEEDED ) {\n print_gss_error ( maj_stat , min_stat ) ;\n mutt_debug ( 1 , \"Error acquiring credentials - no TGT?\\n\" ) ;\n gss_release_name ( & min_stat , & target_name ) ;\n return IMAP_AUTH_UNAVAIL ;\n }\n mutt_message ( _ ( \"Authenticating (GSSAPI)...\" ) ) ;\n imap_cmd_start ( idata , \"AUTHENTICATE GSSAPI\" ) ;\n do rc = imap_cmd_step ( idata ) ;\n while ( rc == IMAP_CMD_CONTINUE ) ;\n if ( rc != IMAP_CMD_RESPOND ) {\n mutt_debug ( 2 , \"Invalid response from server: %s\\n\" , buf1 ) ;\n gss_release_name ( & min_stat , & target_name ) ;\n goto bail ;\n }\n mutt_debug ( 2 , \"Sending credentials\\n\" ) ;\n mutt_b64_encode ( buf1 , send_token . value , send_token . length , sizeof ( buf1 ) - 2 ) ;\n gss_release_buffer ( & min_stat , & send_token ) ;\n mutt_str_strcat ( buf1 , sizeof ( buf1 ) , \"\\r\\n\" ) ;\n mutt_socket_send ( idata -> conn , buf1 ) ;\n while ( maj_stat == GSS_S_CONTINUE_NEEDED ) {\n do rc = imap_cmd_step ( idata ) ;\n while ( rc == IMAP_CMD_CONTINUE ) ;\n if ( rc != IMAP_CMD_RESPOND ) {\n mutt_debug ( 1 , \"#1 Error receiving server response.\\n\" ) ;\n gss_release_name ( & min_stat , & target_name ) ;\n goto bail ;\n }\n request_buf . length = mutt_b64_decode ( buf2 , idata -> buf + 2 , sizeof ( buf2 ) ) ;\n request_buf . value = buf2 ;\n sec_token = & request_buf ;\n maj_stat = gss_init_sec_context ( & min_stat , GSS_C_NO_CREDENTIAL , & context , target_name , GSS_C_NO_OID , GSS_C_MUTUAL_FLAG | GSS_C_SEQUENCE_FLAG , 0 , GSS_C_NO_CHANNEL_BINDINGS , sec_token , NULL , & send_token , ( unsigned int * ) & cflags , NULL ) ;\n if ( maj_stat != GSS_S_COMPLETE && maj_stat != GSS_S_CONTINUE_NEEDED ) {\n print_gss_error ( maj_stat , min_stat ) ;\n mutt_debug ( 1 , \"Error exchanging credentials\\n\" ) ;\n gss_release_name ( & min_stat , & target_name ) ;\n goto err_abort_cmd ;\n }\n mutt_b64_encode ( buf1 , send_token . value , send_token . length , sizeof ( buf1 ) - 2 ) ;\n gss_release_buffer ( & min_stat , & send_token ) ;\n mutt_str_strcat ( buf1 , sizeof ( buf1 ) , \"\\r\\n\" ) ;\n mutt_socket_send ( idata -> conn , buf1 ) ;\n }\n gss_release_name ( & min_stat , & target_name ) ;\n do rc = imap_cmd_step ( idata ) ;\n while ( rc == IMAP_CMD_CONTINUE ) ;\n if ( rc != IMAP_CMD_RESPOND ) {\n mutt_debug ( 1 , \"#2 Error receiving server response.\\n\" ) ;\n goto bail ;\n }\n request_buf . length = mutt_b64_decode ( buf2 , idata -> buf + 2 , sizeof ( buf2 ) ) ;\n request_buf . value = buf2 ;\n maj_stat = gss_unwrap ( & min_stat , context , & request_buf , & send_token , & cflags , & quality ) ;\n if ( maj_stat != GSS_S_COMPLETE ) {\n print_gss_error ( maj_stat , min_stat ) ;\n mutt_debug ( 2 , \"Couldn't unwrap security level data\\n\" ) ;\n gss_release_buffer ( & min_stat , & send_token ) ;\n goto err_abort_cmd ;\n }\n mutt_debug ( 2 , \"Credential exchange complete\\n\" ) ;\n server_conf_flags = ( ( char * ) send_token . value ) [ 0 ] ;\n if ( ! ( ( ( char * ) send_token . value ) [ 0 ] & GSS_AUTH_P_NONE ) ) {\n mutt_debug ( 2 , \"Server requires integrity or privacy\\n\" ) ;\n gss_release_buffer ( & min_stat , & send_token ) ;\n goto err_abort_cmd ;\n }\n ( ( char * ) send_token . value ) [ 0 ] = '\\0' ;\n buf_size = ntohl ( * ( ( long * ) send_token . value ) ) ;\n gss_release_buffer ( & min_stat , & send_token ) ;\n mutt_debug ( 2 , \"Unwrapped security level flags: %c%c%c\\n\" , ( server_conf_flags & GSS_AUTH_P_NONE ) ? 'N' : '-' , ( server_conf_flags & GSS_AUTH_P_INTEGRITY ) ? 'I' : '-' , ( server_conf_flags & GSS_AUTH_P_PRIVACY ) ? 'P' : '-' ) ;\n mutt_debug ( 2 , \"Maximum GSS token size is %ld\\n\" , buf_size ) ;\n buf_size = htonl ( buf_size ) ;\n memcpy ( buf1 , & buf_size , 4 ) ;\n buf1 [ 0 ] = GSS_AUTH_P_NONE ;\n strncpy ( buf1 + 4 , idata -> conn -> account . user , sizeof ( buf1 ) - 4 ) ;\n request_buf . value = buf1 ;\n request_buf . length = 4 + strlen ( idata -> conn -> account . user ) ;\n maj_stat = gss_wrap ( & min_stat , context , 0 , GSS_C_QOP_DEFAULT , & request_buf , & cflags , & send_token ) ;\n if ( maj_stat != GSS_S_COMPLETE ) {\n mutt_debug ( 2 , \"Error creating login request\\n\" ) ;\n goto err_abort_cmd ;\n }\n mutt_b64_encode ( buf1 , send_token . value , send_token . length , sizeof ( buf1 ) - 2 ) ;\n mutt_debug ( 2 , \"Requesting authorisation as %s\\n\" , idata -> conn -> account . user ) ;\n mutt_str_strcat ( buf1 , sizeof ( buf1 ) , \"\\r\\n\" ) ;\n mutt_socket_send ( idata -> conn , buf1 ) ;\n do rc = imap_cmd_step ( idata ) ;\n while ( rc == IMAP_CMD_CONTINUE ) ;\n if ( rc == IMAP_CMD_RESPOND ) {\n mutt_debug ( 1 , \"Unexpected server continuation request.\\n\" ) ;\n goto err_abort_cmd ;\n }\n if ( imap_code ( idata -> buf ) ) {\n mutt_debug ( 2 , \"Releasing GSS credentials\\n\" ) ;\n maj_stat = gss_delete_sec_context ( & min_stat , & context , & send_token ) ;\n if ( maj_stat != GSS_S_COMPLETE ) mutt_debug ( 1 , \"Error releasing credentials\\n\" ) ;\n gss_release_buffer ( & min_stat , & send_token ) ;\n return IMAP_AUTH_SUCCESS ;\n }\n else goto bail ;\n err_abort_cmd : mutt_socket_send ( idata -> conn , \"*\\r\\n\" ) ;\n do rc = imap_cmd_step ( idata ) ;\n while ( rc == IMAP_CMD_CONTINUE ) ;\n bail : mutt_error ( _ ( \"GSSAPI authentication failed.\" ) ) ;\n return IMAP_AUTH_FAILURE ;\n }"}
{"idx": 5452, "target": 0, "func": "static int zexecn ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n uint n , i ;\n es_ptr esp_orig ;\n check_int_leu ( * op , max_uint - 1 ) ;\n n = ( uint ) op -> value . intval ;\n check_op ( n + 1 ) ;\n check_estack ( n ) ;\n esp_orig = esp ;\n for ( i = 0 ;\n i < n ;\n ++ i ) {\n const ref * rp = ref_stack_index ( & o_stack , ( long ) ( i + 1 ) ) ;\n if ( ref_type_uses_access ( r_type ( rp ) ) ) {\n if ( ! r_has_attr ( rp , a_execute ) && r_has_attr ( rp , a_executable ) ) {\n esp = esp_orig ;\n return_error ( gs_error_invalidaccess ) ;\n }\n }\n if ( ! r_has_type_attrs ( rp , t_null , a_executable ) ) {\n ++ esp ;\n ref_assign ( esp , rp ) ;\n }\n }\n esfile_check_cache ( ) ;\n pop ( n + 1 ) ;\n return o_push_estack ;\n }"}
{"idx": 5453, "target": 0, "func": "static const vpx_codec_cx_pkt_t * encoder_get_cxdata ( vpx_codec_alg_priv_t * ctx , vpx_codec_iter_t * iter ) {\n return vpx_codec_pkt_list_get ( & ctx -> pkt_list . head , iter ) ;\n }"}
{"idx": 5454, "target": 1, "func": "static void mark_desktop_file_trusted ( CommonJob * common , GCancellable * cancellable , GFile * file , gboolean interactive ) {\n char * contents , * new_contents ;\n gsize length , new_length ;\n GError * error ;\n guint32 current_perms , new_perms ;\n int response ;\n GFileInfo * info ;\n retry : error = NULL ;\n if ( ! g_file_load_contents ( file , cancellable , & contents , & length , NULL , & error ) ) {\n if ( interactive ) {\n response = run_error ( common , g_strdup ( _ ( \"Unable to mark launcher trusted (executable)\" ) ) , error -> message , NULL , FALSE , CANCEL , RETRY , NULL ) ;\n }\n else {\n response = 0 ;\n }\n if ( response == 0 || response == GTK_RESPONSE_DELETE_EVENT ) {\n abort_job ( common ) ;\n }\n else if ( response == 1 ) {\n goto retry ;\n }\n else {\n g_assert_not_reached ( ) ;\n }\n goto out ;\n }\n if ( ! g_str_has_prefix ( contents , \"#!\" ) ) {\n new_length = length + strlen ( TRUSTED_SHEBANG ) ;\n new_contents = g_malloc ( new_length ) ;\n strcpy ( new_contents , TRUSTED_SHEBANG ) ;\n memcpy ( new_contents + strlen ( TRUSTED_SHEBANG ) , contents , length ) ;\n if ( ! g_file_replace_contents ( file , new_contents , new_length , NULL , FALSE , 0 , NULL , cancellable , & error ) ) {\n g_free ( contents ) ;\n g_free ( new_contents ) ;\n if ( interactive ) {\n response = run_error ( common , g_strdup ( _ ( \"Unable to mark launcher trusted (executable)\" ) ) , error -> message , NULL , FALSE , CANCEL , RETRY , NULL ) ;\n }\n else {\n response = 0 ;\n }\n if ( response == 0 || response == GTK_RESPONSE_DELETE_EVENT ) {\n abort_job ( common ) ;\n }\n else if ( response == 1 ) {\n goto retry ;\n }\n else {\n g_assert_not_reached ( ) ;\n }\n goto out ;\n }\n g_free ( new_contents ) ;\n }\n g_free ( contents ) ;\n info = g_file_query_info ( file , G_FILE_ATTRIBUTE_STANDARD_TYPE \",\" G_FILE_ATTRIBUTE_UNIX_MODE , G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS , common -> cancellable , & error ) ;\n if ( info == NULL ) {\n if ( interactive ) {\n response = run_error ( common , g_strdup ( _ ( \"Unable to mark launcher trusted (executable)\" ) ) , error -> message , NULL , FALSE , CANCEL , RETRY , NULL ) ;\n }\n else {\n response = 0 ;\n }\n if ( response == 0 || response == GTK_RESPONSE_DELETE_EVENT ) {\n abort_job ( common ) ;\n }\n else if ( response == 1 ) {\n goto retry ;\n }\n else {\n g_assert_not_reached ( ) ;\n }\n goto out ;\n }\n if ( g_file_info_has_attribute ( info , G_FILE_ATTRIBUTE_UNIX_MODE ) ) {\n current_perms = g_file_info_get_attribute_uint32 ( info , G_FILE_ATTRIBUTE_UNIX_MODE ) ;\n new_perms = current_perms | S_IXGRP | S_IXUSR | S_IXOTH ;\n if ( ( current_perms != new_perms ) && ! g_file_set_attribute_uint32 ( file , G_FILE_ATTRIBUTE_UNIX_MODE , new_perms , G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS , common -> cancellable , & error ) ) {\n g_object_unref ( info ) ;\n if ( interactive ) {\n response = run_error ( common , g_strdup ( _ ( \"Unable to mark launcher trusted (executable)\" ) ) , error -> message , NULL , FALSE , CANCEL , RETRY , NULL ) ;\n }\n else {\n response = 0 ;\n }\n if ( response == 0 || response == GTK_RESPONSE_DELETE_EVENT ) {\n abort_job ( common ) ;\n }\n else if ( response == 1 ) {\n goto retry ;\n }\n else {\n g_assert_not_reached ( ) ;\n }\n goto out ;\n }\n }\n g_object_unref ( info ) ;\n out : ;\n }"}
{"idx": 5455, "target": 0, "func": "static void save_caller_context ( char * * argv ) {\n struct passwd * pw = NULL ;\n # ifndef USE_PAM # ifdef SU_ACCESS const char * password = NULL ;\n # endif # endif Prog = Basename ( argv [ 0 ] ) ;\n caller_uid = getuid ( ) ;\n caller_is_root = ( caller_uid == 0 ) ;\n caller_tty = ttyname ( 0 ) ;\n if ( ( isatty ( 0 ) != 0 ) && ( NULL != caller_tty ) ) {\n # ifndef USE_PAM caller_on_console = console ( caller_tty ) ;\n # endif }\n else {\n if ( ! caller_is_root ) {\n fprintf ( stderr , _ ( \"%s: must be run from a terminal\\n\" ) , Prog ) ;\n exit ( 1 ) ;\n }\n caller_tty = \"???\" ;\n }\n pw = get_my_pwent ( ) ;\n if ( NULL == pw ) {\n fprintf ( stderr , _ ( \"%s: Cannot determine your user name.\\n\" ) , Prog ) ;\n SYSLOG ( ( LOG_WARN , \"Cannot determine the user name of the caller (UID %lu)\" , ( unsigned long ) caller_uid ) ) ;\n su_failure ( caller_tty , true ) ;\n }\n STRFCPY ( caller_name , pw -> pw_name ) ;\n # ifndef USE_PAM # ifdef SU_ACCESS password = pw -> pw_passwd ;\n if ( strcmp ( pw -> pw_passwd , SHADOW_PASSWD_STRING ) == 0 ) {\n const struct spwd * spwd = getspnam ( caller_name ) ;\n if ( NULL != spwd ) {\n password = spwd -> sp_pwdp ;\n }\n }\n free ( caller_pass ) ;\n caller_pass = xstrdup ( password ) ;\n # endif # endif pw_free ( pw ) ;\n }"}
{"idx": 5456, "target": 0, "func": "static void do_outgoing_pipe ( connection_t * c , char * command ) {\n # ifndef HAVE_MINGW int fd [ 2 ] ;\n if ( socketpair ( AF_UNIX , SOCK_STREAM , 0 , fd ) ) {\n logger ( LOG_ERR , \"Could not create socketpair: %s\\n\" , strerror ( errno ) ) ;\n return ;\n }\n if ( fork ( ) ) {\n c -> socket = fd [ 0 ] ;\n close ( fd [ 1 ] ) ;\n ifdebug ( CONNECTIONS ) logger ( LOG_DEBUG , \"Using proxy %s\" , command ) ;\n return ;\n }\n close ( 0 ) ;\n close ( 1 ) ;\n close ( fd [ 0 ] ) ;\n dup2 ( fd [ 1 ] , 0 ) ;\n dup2 ( fd [ 1 ] , 1 ) ;\n close ( fd [ 1 ] ) ;\n char * host = NULL ;\n char * port = NULL ;\n sockaddr2str ( & c -> address , & host , & port ) ;\n setenv ( \"REMOTEADDRESS\" , host , true ) ;\n setenv ( \"REMOTEPORT\" , port , true ) ;\n setenv ( \"NODE\" , c -> name , true ) ;\n setenv ( \"NAME\" , myself -> name , true ) ;\n if ( netname ) {\n setenv ( \"NETNAME\" , netname , true ) ;\n }\n int result = system ( command ) ;\n if ( result < 0 ) {\n logger ( LOG_ERR , \"Could not execute %s: %s\\n\" , command , strerror ( errno ) ) ;\n }\n else if ( result ) {\n logger ( LOG_ERR , \"%s exited with non-zero status %d\" , command , result ) ;\n }\n exit ( result ) ;\n # else logger ( LOG_ERR , \"Proxy type exec not supported on this platform!\" ) ;\n return ;\n # endif }"}
{"idx": 5457, "target": 0, "func": "struct st_connection * find_connection_by_name ( const char * name ) {\n struct st_connection * con ;\n for ( con = connections ;\n con < next_con ;\n con ++ ) {\n if ( ! strcmp ( con -> name , name ) ) {\n return con ;\n }\n }\n return 0 ;\n }"}
{"idx": 5458, "target": 0, "func": "void slirp_output ( void * opaque , const uint8_t * pkt , int pkt_len ) {\n SlirpState * s = opaque ;\n qemu_send_packet ( & s -> nc , pkt , pkt_len ) ;\n }"}
{"idx": 5459, "target": 0, "func": "int qemuMonitorTextEjectMedia ( qemuMonitorPtr mon , const char * dev_name , bool force ) {\n char * cmd = NULL ;\n char * reply = NULL ;\n int ret = - 1 ;\n if ( virAsprintf ( & cmd , \"eject %s%s\" , force ? \"-f \" : \"\" , dev_name ) < 0 ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"could not eject media on %s\" ) , dev_name ) ;\n goto cleanup ;\n }\n if ( c_strcasestr ( reply , \"device \" ) ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"could not eject media on %s: %s\" ) , dev_name , reply ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( reply ) ;\n VIR_FREE ( cmd ) ;\n return ret ;\n }"}
{"idx": 5460, "target": 0, "func": "inline UChar * toUCharPtr ( char16_t * p ) {\n # ifdef U_ALIASING_BARRIER U_ALIASING_BARRIER ( p ) ;\n # endif return reinterpret_cast < UChar * > ( p ) ;\n }"}
{"idx": 5461, "target": 0, "func": "static int proc_control ( struct usb_dev_state * ps , void __user * arg ) {\n struct usb_device * dev = ps -> dev ;\n struct usbdevfs_ctrltransfer ctrl ;\n unsigned int tmo ;\n unsigned char * tbuf ;\n unsigned wLength ;\n int i , pipe , ret ;\n if ( copy_from_user ( & ctrl , arg , sizeof ( ctrl ) ) ) return - EFAULT ;\n ret = check_ctrlrecip ( ps , ctrl . bRequestType , ctrl . bRequest , ctrl . wIndex ) ;\n if ( ret ) return ret ;\n wLength = ctrl . wLength ;\n if ( wLength > PAGE_SIZE ) return - EINVAL ;\n ret = usbfs_increase_memory_usage ( PAGE_SIZE + sizeof ( struct urb ) + sizeof ( struct usb_ctrlrequest ) ) ;\n if ( ret ) return ret ;\n tbuf = ( unsigned char * ) __get_free_page ( GFP_KERNEL ) ;\n if ( ! tbuf ) {\n ret = - ENOMEM ;\n goto done ;\n }\n tmo = ctrl . timeout ;\n snoop ( & dev -> dev , \"control urb: bRequestType=%02x \" \"bRequest=%02x wValue=%04x \" \"wIndex=%04x wLength=%04x\\n\" , ctrl . bRequestType , ctrl . bRequest , ctrl . wValue , ctrl . wIndex , ctrl . wLength ) ;\n if ( ctrl . bRequestType & 0x80 ) {\n if ( ctrl . wLength && ! access_ok ( VERIFY_WRITE , ctrl . data , ctrl . wLength ) ) {\n ret = - EINVAL ;\n goto done ;\n }\n pipe = usb_rcvctrlpipe ( dev , 0 ) ;\n snoop_urb ( dev , NULL , pipe , ctrl . wLength , tmo , SUBMIT , NULL , 0 ) ;\n usb_unlock_device ( dev ) ;\n i = usb_control_msg ( dev , pipe , ctrl . bRequest , ctrl . bRequestType , ctrl . wValue , ctrl . wIndex , tbuf , ctrl . wLength , tmo ) ;\n usb_lock_device ( dev ) ;\n snoop_urb ( dev , NULL , pipe , max ( i , 0 ) , min ( i , 0 ) , COMPLETE , tbuf , max ( i , 0 ) ) ;\n if ( ( i > 0 ) && ctrl . wLength ) {\n if ( copy_to_user ( ctrl . data , tbuf , i ) ) {\n ret = - EFAULT ;\n goto done ;\n }\n }\n }\n else {\n if ( ctrl . wLength ) {\n if ( copy_from_user ( tbuf , ctrl . data , ctrl . wLength ) ) {\n ret = - EFAULT ;\n goto done ;\n }\n }\n pipe = usb_sndctrlpipe ( dev , 0 ) ;\n snoop_urb ( dev , NULL , pipe , ctrl . wLength , tmo , SUBMIT , tbuf , ctrl . wLength ) ;\n usb_unlock_device ( dev ) ;\n i = usb_control_msg ( dev , usb_sndctrlpipe ( dev , 0 ) , ctrl . bRequest , ctrl . bRequestType , ctrl . wValue , ctrl . wIndex , tbuf , ctrl . wLength , tmo ) ;\n usb_lock_device ( dev ) ;\n snoop_urb ( dev , NULL , pipe , max ( i , 0 ) , min ( i , 0 ) , COMPLETE , NULL , 0 ) ;\n }\n if ( i < 0 && i != - EPIPE ) {\n dev_printk ( KERN_DEBUG , & dev -> dev , \"usbfs: USBDEVFS_CONTROL \" \"failed cmd %s rqt %u rq %u len %u ret %d\\n\" , current -> comm , ctrl . bRequestType , ctrl . bRequest , ctrl . wLength , i ) ;\n }\n ret = i ;\n done : free_page ( ( unsigned long ) tbuf ) ;\n usbfs_decrease_memory_usage ( PAGE_SIZE + sizeof ( struct urb ) + sizeof ( struct usb_ctrlrequest ) ) ;\n return ret ;\n }"}
{"idx": 5462, "target": 0, "func": "static int read_image ( Gif_Reader * grr , Gif_Context * gfc , Gif_Image * gfi , int read_flags ) {\n uint8_t packed ;\n gfi -> left = gifgetunsigned ( grr ) ;\n gfi -> top = gifgetunsigned ( grr ) ;\n gfi -> width = gifgetunsigned ( grr ) ;\n gfi -> height = gifgetunsigned ( grr ) ;\n if ( gfi -> width == 0 ) gfi -> width = gfc -> stream -> screen_width ;\n if ( gfi -> height == 0 ) gfi -> height = gfc -> stream -> screen_height ;\n if ( gfi -> width == 0 || gfi -> height == 0 ) {\n gif_read_error ( gfc , 1 , \"image has zero width and/or height\" ) ;\n Gif_MakeImageEmpty ( gfi ) ;\n read_flags = 0 ;\n }\n if ( ( unsigned ) gfi -> left + ( unsigned ) gfi -> width > 0xFFFF || ( unsigned ) gfi -> top + ( unsigned ) gfi -> height > 0xFFFF ) {\n gif_read_error ( gfc , 1 , \"image position and/or dimensions out of range\" ) ;\n Gif_MakeImageEmpty ( gfi ) ;\n read_flags = 0 ;\n }\n GIF_DEBUG ( ( \"<%ux%u> \" , gfi -> width , gfi -> height ) ) ;\n packed = gifgetbyte ( grr ) ;\n if ( packed & 0x80 ) {\n int ncol = 1 << ( ( packed & 0x07 ) + 1 ) ;\n gfi -> local = read_color_table ( ncol , grr ) ;\n if ( ! gfi -> local ) return 0 ;\n gfi -> local -> refcount = 1 ;\n }\n gfi -> interlace = ( packed & 0x40 ) != 0 ;\n if ( read_flags & GIF_READ_COMPRESSED ) {\n if ( ! read_compressed_image ( gfi , grr , read_flags ) ) return 0 ;\n if ( read_flags & GIF_READ_UNCOMPRESSED ) {\n Gif_Reader new_grr ;\n make_data_reader ( & new_grr , gfi -> compressed , gfi -> compressed_len ) ;\n if ( ! uncompress_image ( gfc , gfi , & new_grr ) ) return 0 ;\n }\n }\n else if ( read_flags & GIF_READ_UNCOMPRESSED ) {\n if ( ! uncompress_image ( gfc , gfi , grr ) ) return 0 ;\n }\n else {\n uint8_t buffer [ GIF_MAX_BLOCK ] ;\n int i = gifgetbyte ( grr ) ;\n while ( i > 0 ) {\n gifgetblock ( buffer , i , grr ) ;\n i = gifgetbyte ( grr ) ;\n }\n }\n return 1 ;\n }"}
{"idx": 5463, "target": 0, "func": "static int total_adj_weak_thresh ( BLOCK_SIZE bs , int increase_denoising ) {\n return widths [ bs ] * heights [ bs ] * ( increase_denoising ? 3 : 2 ) ;\n }"}
{"idx": 5464, "target": 0, "func": "void proto_register_ipmi_trace ( void ) {\n proto_ipmi_trace = proto_register_protocol ( \"IPMI Trace Data Collection\" , \"ipmi-trace\" , \"ipmi.trace\" ) ;\n proto_register_field_array ( proto_ipmi_trace , ipmi_trace_hf , array_length ( ipmi_trace_hf ) ) ;\n proto_register_subtree_array ( ipmi_trace_ett , array_length ( ipmi_trace_ett ) ) ;\n proto_dissector_table = register_dissector_table ( \"ipmi.protocol\" , \"IPMI Channel Protocol Type\" , proto_ipmi_trace , FT_UINT8 , BASE_HEX , DISSECTOR_TABLE_NOT_ALLOW_DUPLICATE ) ;\n }"}
{"idx": 5465, "target": 0, "func": "void fe_channels_nicklist ( CHANNEL_REC * channel , int flags ) {\n NICK_REC * nick ;\n GSList * tmp , * nicklist , * sorted ;\n int nicks , normal , voices , halfops , ops ;\n const char * nick_flags ;\n nicks = normal = voices = halfops = ops = 0 ;\n nicklist = nicklist_getnicks ( channel ) ;\n sorted = NULL ;\n nick_flags = channel -> server -> get_nick_flags ( channel -> server ) ;\n for ( tmp = nicklist ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n nick = tmp -> data ;\n nicks ++ ;\n if ( nick -> op ) {\n ops ++ ;\n if ( ( flags & CHANNEL_NICKLIST_FLAG_OPS ) == 0 ) continue ;\n }\n else if ( nick -> halfop ) {\n halfops ++ ;\n if ( ( flags & CHANNEL_NICKLIST_FLAG_HALFOPS ) == 0 ) continue ;\n }\n else if ( nick -> voice ) {\n voices ++ ;\n if ( ( flags & CHANNEL_NICKLIST_FLAG_VOICES ) == 0 ) continue ;\n }\n else {\n normal ++ ;\n if ( ( flags & CHANNEL_NICKLIST_FLAG_NORMAL ) == 0 ) continue ;\n }\n sorted = g_slist_prepend ( sorted , nick ) ;\n }\n g_slist_free ( nicklist ) ;\n sorted = g_slist_sort_with_data ( sorted , ( GCompareDataFunc ) nicklist_compare , ( void * ) nick_flags ) ;\n if ( ( flags & CHANNEL_NICKLIST_FLAG_COUNT ) == 0 ) {\n printformat ( channel -> server , channel -> visible_name , MSGLEVEL_CLIENTCRAP , TXT_NAMES , channel -> visible_name , nicks , ops , halfops , voices , normal ) ;\n display_sorted_nicks ( channel , sorted ) ;\n }\n g_slist_free ( sorted ) ;\n printformat ( channel -> server , channel -> visible_name , MSGLEVEL_CLIENTNOTICE , TXT_ENDOFNAMES , channel -> visible_name , nicks , ops , halfops , voices , normal ) ;\n }"}
{"idx": 5466, "target": 0, "func": "static int dissect_DRIVER_INFO_3 ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n proto_tree * subtree ;\n int struct_start = offset ;\n subtree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_DRIVER_INFO_3 , NULL , \"Driver info level 3\" ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_driverinfo_cversion , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_drivername , struct_start , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_environment , struct_start , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_driverpath , struct_start , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_datafile , struct_start , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_configfile , struct_start , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_helpfile , struct_start , NULL ) ;\n offset = dissect_spoolss_relstrarray ( tvb , offset , pinfo , subtree , di , drep , hf_dependentfiles , struct_start , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_monitorname , struct_start , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_defaultdatatype , struct_start , NULL ) ;\n return offset ;\n }"}
{"idx": 5467, "target": 0, "func": "static uint32_t e1000e_get_ctrl ( E1000ECore * core , int index ) {\n uint32_t val = core -> mac [ CTRL ] ;\n trace_e1000e_link_read_params ( ! ! ( val & E1000_CTRL_ASDE ) , ( val & E1000_CTRL_SPD_SEL ) >> E1000_CTRL_SPD_SHIFT , ! ! ( val & E1000_CTRL_FRCSPD ) , ! ! ( val & E1000_CTRL_FRCDPX ) , ! ! ( val & E1000_CTRL_RFCE ) , ! ! ( val & E1000_CTRL_TFCE ) ) ;\n return val ;\n }"}
{"idx": 5468, "target": 0, "func": "BN_ULONG bn_add_words ( BN_ULONG * r , const BN_ULONG * a , const BN_ULONG * b , int n ) {\n BN_ULONG c , l , t ;\n assert ( n >= 0 ) ;\n if ( n <= 0 ) return ( ( BN_ULONG ) 0 ) ;\n c = 0 ;\n # ifndef OPENSSL_SMALL_FOOTPRINT while ( n & ~ 3 ) {\n t = a [ 0 ] ;\n t = ( t + c ) & BN_MASK2 ;\n c = ( t < c ) ;\n l = ( t + b [ 0 ] ) & BN_MASK2 ;\n c += ( l < t ) ;\n r [ 0 ] = l ;\n t = a [ 1 ] ;\n t = ( t + c ) & BN_MASK2 ;\n c = ( t < c ) ;\n l = ( t + b [ 1 ] ) & BN_MASK2 ;\n c += ( l < t ) ;\n r [ 1 ] = l ;\n t = a [ 2 ] ;\n t = ( t + c ) & BN_MASK2 ;\n c = ( t < c ) ;\n l = ( t + b [ 2 ] ) & BN_MASK2 ;\n c += ( l < t ) ;\n r [ 2 ] = l ;\n t = a [ 3 ] ;\n t = ( t + c ) & BN_MASK2 ;\n c = ( t < c ) ;\n l = ( t + b [ 3 ] ) & BN_MASK2 ;\n c += ( l < t ) ;\n r [ 3 ] = l ;\n a += 4 ;\n b += 4 ;\n r += 4 ;\n n -= 4 ;\n }\n # endif while ( n ) {\n t = a [ 0 ] ;\n t = ( t + c ) & BN_MASK2 ;\n c = ( t < c ) ;\n l = ( t + b [ 0 ] ) & BN_MASK2 ;\n c += ( l < t ) ;\n r [ 0 ] = l ;\n a ++ ;\n b ++ ;\n r ++ ;\n n -- ;\n }\n return ( ( BN_ULONG ) c ) ;\n }"}
{"idx": 5469, "target": 0, "func": "static inline void ohci_intr_update ( OHCIState * ohci ) {\n int level = 0 ;\n if ( ( ohci -> intr & OHCI_INTR_MIE ) && ( ohci -> intr_status & ohci -> intr ) ) level = 1 ;\n qemu_set_irq ( ohci -> irq , level ) ;\n }"}
{"idx": 5470, "target": 0, "func": "void show_help_default ( const char * opt , const char * arg ) {\n av_log_set_callback ( log_callback_help ) ;\n show_usage ( ) ;\n show_help_options ( options , \"Main options:\" , 0 , 0 , 0 ) ;\n printf ( \"\\n\" ) ;\n show_help_children ( avformat_get_class ( ) , AV_OPT_FLAG_DECODING_PARAM ) ;\n show_help_children ( avcodec_get_class ( ) , AV_OPT_FLAG_DECODING_PARAM ) ;\n }"}
{"idx": 5471, "target": 0, "func": "EXCLUSIVE_REGRESSION_TEST ( SDK_API_HttpSsn ) ( RegressionTest * test , int , int * pstatus ) {\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n TSCont cont = TSContCreate ( ssn_handler , TSMutexCreate ( ) ) ;\n if ( cont == nullptr ) {\n SDK_RPRINT ( test , \"TSHttpSsn\" , \"TestCase1\" , TC_FAIL , \"Unable to create Continuation.\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n return ;\n }\n ContData * socktest = ( ContData * ) TSmalloc ( sizeof ( ContData ) ) ;\n socktest -> test = test ;\n socktest -> pstatus = pstatus ;\n socktest -> test_passed_ssn_hook_add = 0 ;\n socktest -> test_passed_ssn_reenable = 0 ;\n socktest -> test_passed_txn_ssn_get = 0 ;\n socktest -> test_passed_txn_hook_add = 0 ;\n socktest -> test_passed_txn_error_body_set = 0 ;\n socktest -> test_passed_Parent_Proxy = false ;\n socktest -> magic = MAGIC_ALIVE ;\n TSContDataSet ( cont , socktest ) ;\n TSHttpHookAdd ( TS_HTTP_SSN_START_HOOK , cont ) ;\n socktest -> browser = synclient_txn_create ( ) ;\n char * request = generate_request ( 3 ) ;\n synclient_txn_send_request ( socktest -> browser , request ) ;\n TSfree ( request ) ;\n if ( socktest -> browser -> status == REQUEST_INPROGRESS ) {\n TSContSchedule ( cont , 25 , TS_THREAD_POOL_DEFAULT ) ;\n }\n return ;\n }"}
{"idx": 5472, "target": 0, "func": "static void unescape ( FILE * file , char * pos , size_t length ) {\n char * tmp ;\n DBUG_ENTER ( \"unescape\" ) ;\n if ( ! ( tmp = ( char * ) my_malloc ( length * 2 + 1 , MYF ( MY_WME ) ) ) ) die ( EX_MYSQLERR , \"Couldn't allocate memory\" ) ;\n mysql_real_escape_string ( & mysql_connection , tmp , pos , ( ulong ) length ) ;\n fputc ( '\\'' , file ) ;\n fputs ( tmp , file ) ;\n fputc ( '\\'' , file ) ;\n check_io ( file ) ;\n my_free ( tmp ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 5473, "target": 0, "func": "static int test_compressed_stream_overflow ( xd3_stream * stream , int ignore ) {\n int ret ;\n int i ;\n uint8_t * buf ;\n if ( ( buf = ( uint8_t * ) malloc ( TWO_MEGS_AND_DELTA ) ) == NULL ) {\n return ENOMEM ;\n }\n memset ( buf , 0 , TWO_MEGS_AND_DELTA ) ;\n for ( i = 0 ;\n i < ( 2 << 20 ) ;\n i += 256 ) {\n int j ;\n int off = mt_random ( & static_mtrand ) % 10 ;\n for ( j = 0 ;\n j < 256 ;\n j ++ ) {\n buf [ i + j ] = j + off ;\n }\n }\n if ( SIZEOF_XOFF_T == 4 ) {\n ret = test_streaming ( stream , buf , buf + ( 1 << 20 ) , buf + ( 2 << 20 ) , ( 1 << 12 ) + 1 ) ;\n if ( ret == XD3_INVALID_INPUT && MSG_IS ( \"decoder file offset overflow\" ) ) {\n ret = 0 ;\n }\n else {\n XPR ( NT XD3_LIB_ERRMSG ( stream , ret ) ) ;\n stream -> msg = \"expected overflow condition\" ;\n ret = XD3_INTERNAL ;\n goto fail ;\n }\n }\n if ( ( ret = test_streaming ( stream , buf , buf + ( 1 << 20 ) , buf + ( 2 << 20 ) , << 12 ) ) ) {\n goto fail ;\n }\n fail : free ( buf ) ;\n return ret ;\n }"}
{"idx": 5474, "target": 0, "func": "static VALUE ossl_asn1_decode0 ( unsigned char * * pp , long length , long * offset , int depth , int yield , long * num_read ) {\n unsigned char * start , * p ;\n const unsigned char * p0 ;\n long len = 0 , inner_read = 0 , off = * offset , hlen ;\n int tag , tc , j ;\n VALUE asn1data , tag_class ;\n p = * pp ;\n start = p ;\n p0 = p ;\n j = ASN1_get_object ( & p0 , & len , & tag , & tc , length ) ;\n p = ( unsigned char * ) p0 ;\n if ( j & 0x80 ) ossl_raise ( eASN1Error , NULL ) ;\n if ( len > length ) ossl_raise ( eASN1Error , \"value is too short\" ) ;\n if ( ( tc & V_ASN1_PRIVATE ) == V_ASN1_PRIVATE ) tag_class = sym_PRIVATE ;\n else if ( ( tc & V_ASN1_CONTEXT_SPECIFIC ) == V_ASN1_CONTEXT_SPECIFIC ) tag_class = sym_CONTEXT_SPECIFIC ;\n else if ( ( tc & V_ASN1_APPLICATION ) == V_ASN1_APPLICATION ) tag_class = sym_APPLICATION ;\n else tag_class = sym_UNIVERSAL ;\n hlen = p - start ;\n if ( yield ) {\n VALUE arg = rb_ary_new ( ) ;\n rb_ary_push ( arg , LONG2NUM ( depth ) ) ;\n rb_ary_push ( arg , LONG2NUM ( * offset ) ) ;\n rb_ary_push ( arg , LONG2NUM ( hlen ) ) ;\n rb_ary_push ( arg , LONG2NUM ( len ) ) ;\n rb_ary_push ( arg , ( j & V_ASN1_CONSTRUCTED ) ? Qtrue : Qfalse ) ;\n rb_ary_push ( arg , ossl_asn1_class2sym ( tc ) ) ;\n rb_ary_push ( arg , INT2NUM ( tag ) ) ;\n rb_yield ( arg ) ;\n }\n if ( j & V_ASN1_CONSTRUCTED ) {\n * pp += hlen ;\n off += hlen ;\n asn1data = int_ossl_asn1_decode0_cons ( pp , length - hlen , len , & off , depth , yield , j , tag , tag_class , & inner_read ) ;\n inner_read += hlen ;\n }\n else {\n if ( ( j & 0x01 ) && ( len == 0 ) ) ossl_raise ( eASN1Error , \"Infinite length for primitive value\" ) ;\n asn1data = int_ossl_asn1_decode0_prim ( pp , len , hlen , tag , tag_class , & inner_read ) ;\n off += hlen + len ;\n }\n if ( num_read ) * num_read = inner_read ;\n if ( len != 0 && inner_read != hlen + len ) {\n ossl_raise ( eASN1Error , \"Type mismatch. Bytes read: %ld Bytes available: %ld\" , inner_read , hlen + len ) ;\n }\n * offset = off ;\n return asn1data ;\n }"}
{"idx": 5475, "target": 1, "func": "static UChar32 T_UConverter_getNextUChar_UTF32_LE ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n const uint8_t * mySource ;\n UChar32 myUChar ;\n int32_t length ;\n mySource = ( const uint8_t * ) args -> source ;\n if ( mySource >= ( const uint8_t * ) args -> sourceLimit ) {\n * err = U_INDEX_OUTOFBOUNDS_ERROR ;\n return 0xffff ;\n }\n length = ( int32_t ) ( ( const uint8_t * ) args -> sourceLimit - mySource ) ;\n if ( length < 4 ) {\n uprv_memcpy ( args -> converter -> toUBytes , mySource , length ) ;\n args -> converter -> toULength = ( int8_t ) length ;\n args -> source = ( const char * ) ( mySource + length ) ;\n * err = U_TRUNCATED_CHAR_FOUND ;\n return 0xffff ;\n }\n myUChar = ( ( UChar32 ) mySource [ 3 ] << 24 ) | ( ( UChar32 ) mySource [ 2 ] << 16 ) | ( ( UChar32 ) mySource [ 1 ] << 8 ) | ( ( UChar32 ) mySource [ 0 ] ) ;\n args -> source = ( const char * ) ( mySource + 4 ) ;\n if ( ( uint32_t ) myUChar <= MAXIMUM_UTF && ! U_IS_SURROGATE ( myUChar ) ) {\n return myUChar ;\n }\n uprv_memcpy ( args -> converter -> toUBytes , mySource , 4 ) ;\n args -> converter -> toULength = 4 ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n return 0xffff ;\n }"}
{"idx": 5476, "target": 0, "func": "static void search_postfix_clear ( void ) {\n search_state_decref ( global_search_state ) ;\n global_search_state = search_state_new ( ) ;\n }"}
{"idx": 5477, "target": 0, "func": "void nautilus_directory_async_state_changed ( NautilusDirectory * directory ) {\n if ( directory -> details -> in_async_service_loop ) {\n directory -> details -> state_changed = TRUE ;\n return ;\n }\n directory -> details -> in_async_service_loop = TRUE ;\n nautilus_directory_ref ( directory ) ;\n do {\n directory -> details -> state_changed = FALSE ;\n start_or_stop_io ( directory ) ;\n if ( call_ready_callbacks ( directory ) ) {\n directory -> details -> state_changed = TRUE ;\n }\n }\n while ( directory -> details -> state_changed ) ;\n directory -> details -> in_async_service_loop = FALSE ;\n nautilus_directory_unref ( directory ) ;\n async_job_wake_up ( ) ;\n }"}
{"idx": 5478, "target": 1, "func": "int event_base_priority_init ( struct event_base * base , int npriorities ) {\n int i ;\n if ( base -> event_count_active ) return ( - 1 ) ;\n if ( base -> nactivequeues && npriorities != base -> nactivequeues ) {\n for ( i = 0 ;\n i < base -> nactivequeues ;\n ++ i ) {\n free ( base -> activequeues [ i ] ) ;\n }\n free ( base -> activequeues ) ;\n }\n base -> nactivequeues = npriorities ;\n base -> activequeues = ( struct event_list * * ) calloc ( base -> nactivequeues , sizeof ( struct event_list * ) ) ;\n if ( base -> activequeues == NULL ) event_err ( 1 , \"%s: calloc\" , __func__ ) ;\n for ( i = 0 ;\n i < base -> nactivequeues ;\n ++ i ) {\n base -> activequeues [ i ] = malloc ( sizeof ( struct event_list ) ) ;\n if ( base -> activequeues [ i ] == NULL ) event_err ( 1 , \"%s: malloc\" , __func__ ) ;\n TAILQ_INIT ( base -> activequeues [ i ] ) ;\n }\n return ( 0 ) ;\n }"}
{"idx": 5479, "target": 0, "func": "static void setTrailingWSStart ( UBiDi * pBiDi ) {\n const DirProp * dirProps = pBiDi -> dirProps ;\n UBiDiLevel * levels = pBiDi -> levels ;\n int32_t start = pBiDi -> length ;\n UBiDiLevel paraLevel = pBiDi -> paraLevel ;\n if ( dirProps [ start - 1 ] == B ) {\n pBiDi -> trailingWSStart = start ;\n return ;\n }\n while ( start > 0 && DIRPROP_FLAG ( dirProps [ start - 1 ] ) & MASK_WS ) {\n -- start ;\n }\n while ( start > 0 && levels [ start - 1 ] == paraLevel ) {\n -- start ;\n }\n pBiDi -> trailingWSStart = start ;\n }"}
{"idx": 5480, "target": 1, "func": "SPL_METHOD ( DirectoryIterator , valid ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n RETURN_BOOL ( intern -> u . dir . entry . d_name [ 0 ] != '\\0' ) ;\n }"}
{"idx": 5481, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n H264Context * h = avctx -> priv_data ;\n AVFrame * pict = data ;\n int buf_index = 0 ;\n Picture * out ;\n int i , out_idx ;\n int ret ;\n h -> flags = avctx -> flags ;\n if ( buf_size == 0 ) {\n out : h -> cur_pic_ptr = NULL ;\n h -> first_field = 0 ;\n out = h -> delayed_pic [ 0 ] ;\n out_idx = 0 ;\n for ( i = 1 ;\n h -> delayed_pic [ i ] && ! h -> delayed_pic [ i ] -> f . key_frame && ! h -> delayed_pic [ i ] -> mmco_reset ;\n i ++ ) if ( h -> delayed_pic [ i ] -> poc < out -> poc ) {\n out = h -> delayed_pic [ i ] ;\n out_idx = i ;\n }\n for ( i = out_idx ;\n h -> delayed_pic [ i ] ;\n i ++ ) h -> delayed_pic [ i ] = h -> delayed_pic [ i + 1 ] ;\n if ( out ) {\n out -> reference &= ~ DELAYED_PIC_REF ;\n ret = output_frame ( h , pict , out ) ;\n if ( ret < 0 ) return ret ;\n * got_frame = 1 ;\n }\n return buf_index ;\n }\n if ( h -> is_avc && buf_size >= 9 && buf [ 0 ] == 1 && buf [ 2 ] == 0 && ( buf [ 4 ] & 0xFC ) == 0xFC && ( buf [ 5 ] & 0x1F ) && buf [ 8 ] == 0x67 ) {\n int cnt = buf [ 5 ] & 0x1f ;\n const uint8_t * p = buf + 6 ;\n while ( cnt -- ) {\n int nalsize = AV_RB16 ( p ) + 2 ;\n if ( nalsize > buf_size - ( p - buf ) || p [ 2 ] != 0x67 ) goto not_extra ;\n p += nalsize ;\n }\n cnt = * ( p ++ ) ;\n if ( ! cnt ) goto not_extra ;\n while ( cnt -- ) {\n int nalsize = AV_RB16 ( p ) + 2 ;\n if ( nalsize > buf_size - ( p - buf ) || p [ 2 ] != 0x68 ) goto not_extra ;\n p += nalsize ;\n }\n return ff_h264_decode_extradata ( h , buf , buf_size ) ;\n }\n not_extra : buf_index = decode_nal_units ( h , buf , buf_size , 0 ) ;\n if ( buf_index < 0 ) return AVERROR_INVALIDDATA ;\n if ( ! h -> cur_pic_ptr && h -> nal_unit_type == NAL_END_SEQUENCE ) {\n av_assert0 ( buf_index <= buf_size ) ;\n goto out ;\n }\n if ( ! ( avctx -> flags2 & CODEC_FLAG2_CHUNKS ) && ! h -> cur_pic_ptr ) {\n if ( avctx -> skip_frame >= AVDISCARD_NONREF || buf_size >= 4 && ! memcmp ( \"Q264\" , buf , 4 ) ) return buf_size ;\n av_log ( avctx , AV_LOG_ERROR , \"no frame!\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ! ( avctx -> flags2 & CODEC_FLAG2_CHUNKS ) || ( h -> mb_y >= h -> mb_height && h -> mb_height ) ) {\n if ( avctx -> flags2 & CODEC_FLAG2_CHUNKS ) decode_postinit ( h , 1 ) ;\n field_end ( h , 0 ) ;\n * got_frame = 0 ;\n if ( h -> next_output_pic && ( h -> next_output_pic -> recovered ) ) {\n if ( ! h -> next_output_pic -> recovered ) h -> next_output_pic -> f . flags |= AV_FRAME_FLAG_CORRUPT ;\n ret = output_frame ( h , pict , h -> next_output_pic ) ;\n if ( ret < 0 ) return ret ;\n * got_frame = 1 ;\n if ( CONFIG_MPEGVIDEO ) {\n ff_print_debug_info2 ( h -> avctx , h -> next_output_pic , pict , h -> er . mbskip_table , & h -> low_delay , h -> mb_width , h -> mb_height , h -> mb_stride , 1 ) ;\n }\n }\n }\n assert ( pict -> buf [ 0 ] || ! * got_frame ) ;\n return get_consumed_bytes ( buf_index , buf_size ) ;\n }"}
{"idx": 5482, "target": 0, "func": "bool key_changed_h ( connection_t * c ) {\n char name [ MAX_STRING_SIZE ] ;\n node_t * n ;\n if ( sscanf ( c -> buffer , \"%*d %*x \" MAX_STRING , name ) != 1 ) {\n logger ( LOG_ERR , \"Got bad %s from %s (%s)\" , \"KEY_CHANGED\" , c -> name , c -> hostname ) ;\n return false ;\n }\n if ( ! check_id ( name ) ) {\n logger ( LOG_ERR , \"Got bad %s from %s (%s): %s\" , \"KEY_CHANGED\" , c -> name , c -> hostname , \"invalid name\" ) ;\n return false ;\n }\n if ( seen_request ( c -> buffer ) ) {\n return true ;\n }\n n = lookup_node ( name ) ;\n if ( ! n ) {\n logger ( LOG_ERR , \"Got %s from %s (%s) origin %s which does not exist\" , \"KEY_CHANGED\" , c -> name , c -> hostname , name ) ;\n return true ;\n }\n n -> status . validkey = false ;\n n -> last_req_key = 0 ;\n if ( ! tunnelserver ) {\n forward_request ( c ) ;\n }\n return true ;\n }"}
{"idx": 5483, "target": 0, "func": "static void pk_transaction_update_packages ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) {\n gboolean ret ;\n guint length ;\n PkBitfield transaction_flags ;\n g_autoptr ( GError ) error = NULL ;\n g_autofree gchar * * package_ids = NULL ;\n g_autofree gchar * package_ids_temp = NULL ;\n g_autofree gchar * transaction_flags_temp = NULL ;\n g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;\n g_return_if_fail ( transaction -> priv -> tid != NULL ) ;\n g_variant_get ( params , \"(t^a&s)\" , & transaction_flags , & package_ids ) ;\n package_ids_temp = pk_package_ids_to_string ( package_ids ) ;\n transaction_flags_temp = pk_transaction_flag_bitfield_to_string ( transaction_flags ) ;\n g_debug ( \"UpdatePackages method called: %s (transaction_flags: %s)\" , package_ids_temp , transaction_flags_temp ) ;\n if ( ! pk_backend_is_implemented ( transaction -> priv -> backend , PK_ROLE_ENUM_UPDATE_PACKAGES ) ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NOT_SUPPORTED , \"UpdatePackages not supported by backend\" ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n length = g_strv_length ( package_ids ) ;\n if ( length > PK_TRANSACTION_MAX_PACKAGES_TO_PROCESS ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NUMBER_OF_PACKAGES_INVALID , \"Too many packages to process (%i/%i)\" , length , PK_TRANSACTION_MAX_PACKAGES_TO_PROCESS ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n ret = pk_package_ids_check ( package_ids ) ;\n if ( ! ret ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_PACKAGE_ID_INVALID , \"The package id's '%s' are not valid\" , package_ids_temp ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n transaction -> priv -> cached_transaction_flags = transaction_flags ;\n transaction -> priv -> cached_package_ids = g_strdupv ( package_ids ) ;\n pk_transaction_set_role ( transaction , PK_ROLE_ENUM_UPDATE_PACKAGES ) ;\n pk_transaction_emit_property_changed ( transaction , \"TransactionFlags\" , g_variant_new_uint64 ( transaction_flags ) ) ;\n ret = pk_transaction_obtain_authorization ( transaction , PK_ROLE_ENUM_UPDATE_PACKAGES , & error ) ;\n if ( ! ret ) {\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n out : pk_transaction_dbus_return ( context , error ) ;\n }"}
{"idx": 5484, "target": 0, "func": "static void qemuMonitorJSONHandleVNCInitialize ( qemuMonitorPtr mon , virJSONValuePtr data ) {\n qemuMonitorJSONHandleVNC ( mon , data , VIR_DOMAIN_EVENT_GRAPHICS_INITIALIZE ) ;\n }"}
{"idx": 5485, "target": 0, "func": "static void decode_fixed_vector ( float * fixed_vector , const uint16_t * pulse_hi , const uint16_t * pulse_lo , const enum Mode mode ) {\n int sig_pos [ 4 ] [ 6 ] ;\n int spacing = ( mode == MODE_6k60 ) ? 2 : 4 ;\n int i , j ;\n switch ( mode ) {\n case MODE_6k60 : for ( i = 0 ;\n i < 2 ;\n i ++ ) decode_1p_track ( sig_pos [ i ] , pulse_lo [ i ] , 5 , 1 ) ;\n break ;\n case MODE_8k85 : for ( i = 0 ;\n i < 4 ;\n i ++ ) decode_1p_track ( sig_pos [ i ] , pulse_lo [ i ] , 4 , 1 ) ;\n break ;\n case MODE_12k65 : for ( i = 0 ;\n i < 4 ;\n i ++ ) decode_2p_track ( sig_pos [ i ] , pulse_lo [ i ] , 4 , 1 ) ;\n break ;\n case MODE_14k25 : for ( i = 0 ;\n i < 2 ;\n i ++ ) decode_3p_track ( sig_pos [ i ] , pulse_lo [ i ] , 4 , 1 ) ;\n for ( i = 2 ;\n i < 4 ;\n i ++ ) decode_2p_track ( sig_pos [ i ] , pulse_lo [ i ] , 4 , 1 ) ;\n break ;\n case MODE_15k85 : for ( i = 0 ;\n i < 4 ;\n i ++ ) decode_3p_track ( sig_pos [ i ] , pulse_lo [ i ] , 4 , 1 ) ;\n break ;\n case MODE_18k25 : for ( i = 0 ;\n i < 4 ;\n i ++ ) decode_4p_track ( sig_pos [ i ] , ( int ) pulse_lo [ i ] + ( ( int ) pulse_hi [ i ] << 14 ) , 4 , 1 ) ;\n break ;\n case MODE_19k85 : for ( i = 0 ;\n i < 2 ;\n i ++ ) decode_5p_track ( sig_pos [ i ] , ( int ) pulse_lo [ i ] + ( ( int ) pulse_hi [ i ] << 10 ) , 4 , 1 ) ;\n for ( i = 2 ;\n i < 4 ;\n i ++ ) decode_4p_track ( sig_pos [ i ] , ( int ) pulse_lo [ i ] + ( ( int ) pulse_hi [ i ] << 14 ) , 4 , 1 ) ;\n break ;\n case MODE_23k05 : case MODE_23k85 : for ( i = 0 ;\n i < 4 ;\n i ++ ) decode_6p_track ( sig_pos [ i ] , ( int ) pulse_lo [ i ] + ( ( int ) pulse_hi [ i ] << 11 ) , 4 , 1 ) ;\n break ;\n }\n memset ( fixed_vector , 0 , sizeof ( float ) * AMRWB_SFR_SIZE ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) for ( j = 0 ;\n j < pulses_nb_per_mode_tr [ mode ] [ i ] ;\n j ++ ) {\n int pos = ( FFABS ( sig_pos [ i ] [ j ] ) - 1 ) * spacing + i ;\n fixed_vector [ pos ] += sig_pos [ i ] [ j ] < 0 ? - 1.0 : 1.0 ;\n }\n }"}
{"idx": 5486, "target": 1, "func": "static int loop_filter_row_worker ( void * arg1 , void * arg2 ) {\n TileWorkerData * const tile_data = ( TileWorkerData * ) arg1 ;\n LFWorkerData * const lf_data = & tile_data -> lfdata ;\n ( void ) arg2 ;\n loop_filter_rows_mt ( lf_data -> frame_buffer , lf_data -> cm , lf_data -> planes , lf_data -> start , lf_data -> stop , lf_data -> y_only , lf_data -> lf_sync , lf_data -> num_lf_workers ) ;\n return 1 ;\n }"}
{"idx": 5487, "target": 0, "func": "static void gpgsm_clear_fd ( engine_gpgsm_t gpgsm , fd_type_t fd_type ) {\n # if ! USE_DESCRIPTOR_PASSING switch ( fd_type ) {\n case INPUT_FD : _gpgme_io_close ( gpgsm -> input_cb . fd ) ;\n break ;\n case OUTPUT_FD : _gpgme_io_close ( gpgsm -> output_cb . fd ) ;\n break ;\n case MESSAGE_FD : _gpgme_io_close ( gpgsm -> message_cb . fd ) ;\n break ;\n }\n # endif }"}
{"idx": 5488, "target": 0, "func": "int main ( int argc , char * * argv ) {\n using std : : string ;\n if ( argc != 2 ) {\n fprintf ( stderr , \"One argument, the input filename, must be provided.\\n\" ) ;\n return 1 ;\n }\n string filename ( argv [ 1 ] ) ;\n string outfilename = filename . substr ( 0 , filename . find_last_of ( \".\" ) ) + \".woff2\" ;\n fprintf ( stdout , \"Processing %s => %s\\n\" , filename . c_str ( ) , outfilename . c_str ( ) ) ;\n string input = woff2 : : GetFileContent ( filename ) ;\n const uint8_t * input_data = reinterpret_cast < const uint8_t * > ( input . data ( ) ) ;\n size_t output_size = woff2 : : MaxWOFF2CompressedSize ( input_data , input . size ( ) ) ;\n string output ( output_size , 0 ) ;\n uint8_t * output_data = reinterpret_cast < uint8_t * > ( & output [ 0 ] ) ;\n woff2 : : WOFF2Params params ;\n if ( ! woff2 : : ConvertTTFToWOFF2 ( input_data , input . size ( ) , output_data , & output_size , params ) ) {\n fprintf ( stderr , \"Compression failed.\\n\" ) ;\n return 1 ;\n }\n output . resize ( output_size ) ;\n woff2 : : SetFileContents ( outfilename , output . begin ( ) , output . end ( ) ) ;\n return 0 ;\n }"}
{"idx": 5489, "target": 0, "func": "static int allocate_buffers ( FLACContext * s ) {\n int buf_size ;\n assert ( s -> max_blocksize ) ;\n buf_size = av_samples_get_buffer_size ( NULL , s -> channels , s -> max_blocksize , AV_SAMPLE_FMT_S32P , 0 ) ;\n if ( buf_size < 0 ) return buf_size ;\n av_fast_malloc ( & s -> decoded_buffer , & s -> decoded_buffer_size , buf_size ) ;\n if ( ! s -> decoded_buffer ) return AVERROR ( ENOMEM ) ;\n return av_samples_fill_arrays ( ( uint8_t * * ) s -> decoded , NULL , s -> decoded_buffer , s -> channels , s -> max_blocksize , AV_SAMPLE_FMT_S32P , 0 ) ;\n }"}
{"idx": 5490, "target": 0, "func": "static int gsm_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n int res ;\n GetBitContext gb ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n int16_t * samples ;\n if ( buf_size < avctx -> block_align ) {\n av_log ( avctx , AV_LOG_ERROR , \"Packet is too small\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n frame -> nb_samples = avctx -> frame_size ;\n if ( ( res = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return res ;\n }\n samples = ( int16_t * ) frame -> data [ 0 ] ;\n switch ( avctx -> codec_id ) {\n case AV_CODEC_ID_GSM : init_get_bits ( & gb , buf , buf_size * 8 ) ;\n if ( get_bits ( & gb , 4 ) != 0xd ) av_log ( avctx , AV_LOG_WARNING , \"Missing GSM magic!\\n\" ) ;\n res = gsm_decode_block ( avctx , samples , & gb ) ;\n if ( res < 0 ) return res ;\n break ;\n case AV_CODEC_ID_GSM_MS : res = ff_msgsm_decode_block ( avctx , samples , buf ) ;\n if ( res < 0 ) return res ;\n }\n * got_frame_ptr = 1 ;\n return avctx -> block_align ;\n }"}
{"idx": 5491, "target": 0, "func": "void gx_device_set_margins ( gx_device * dev , const float * margins , bool move_origin ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) dev -> HWMargins [ i ] = margins [ i ] * 72.0 ;\n if ( move_origin ) {\n dev -> Margins [ 0 ] = - margins [ 0 ] * dev -> HWResolution [ 0 ] ;\n dev -> Margins [ 1 ] = - margins [ 3 ] * dev -> HWResolution [ 1 ] ;\n }\n }"}
{"idx": 5492, "target": 0, "func": "static void * Type_Signature_Read ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number * nItems , cmsUInt32Number SizeOfTag ) {\n cmsSignature * SigPtr = ( cmsSignature * ) _cmsMalloc ( self -> ContextID , sizeof ( cmsSignature ) ) ;\n if ( SigPtr == NULL ) return NULL ;\n if ( ! _cmsReadUInt32Number ( io , SigPtr ) ) return NULL ;\n * nItems = 1 ;\n return SigPtr ;\n cmsUNUSED_PARAMETER ( SizeOfTag ) ;\n }"}
{"idx": 5493, "target": 0, "func": "int remoteRemoveClientStream ( struct qemud_client * client , struct qemud_client_stream * stream ) {\n VIR_DEBUG ( \"client=%p proc=%d serial=%d\" , client , stream -> procedure , stream -> serial ) ;\n struct qemud_client_stream * curr = client -> streams ;\n struct qemud_client_stream * prev = NULL ;\n struct qemud_client_filter * filter = NULL ;\n if ( client -> filters == & stream -> filter ) {\n client -> filters = client -> filters -> next ;\n }\n else {\n filter = client -> filters ;\n while ( filter ) {\n if ( filter -> next == & stream -> filter ) {\n filter -> next = filter -> next -> next ;\n break ;\n }\n filter = filter -> next ;\n }\n }\n if ( ! stream -> closed ) {\n virStreamEventRemoveCallback ( stream -> st ) ;\n virStreamAbort ( stream -> st ) ;\n }\n while ( curr ) {\n if ( curr == stream ) {\n if ( prev ) prev -> next = curr -> next ;\n else client -> streams = curr -> next ;\n remoteFreeClientStream ( client , stream ) ;\n return 0 ;\n }\n prev = curr ;\n curr = curr -> next ;\n }\n return - 1 ;\n }"}
{"idx": 5494, "target": 0, "func": "static int init_nss ( struct crypto_instance * instance , const char * crypto_cipher_type , const char * crypto_hash_type ) {\n log_printf ( instance -> log_level_notice , \"Initializing transmit/receive security (NSS) crypto: %s hash: %s\" , crypto_cipher_type , crypto_hash_type ) ;\n if ( init_nss_db ( instance ) < 0 ) {\n return - 1 ;\n }\n if ( init_nss_crypto ( instance ) < 0 ) {\n return - 1 ;\n }\n if ( init_nss_hash ( instance ) < 0 ) {\n return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 5495, "target": 1, "func": "extern int name ( int , locale_t ) __THROW __exctype_l ( isalnum_l ) ;\n __exctype_l ( isalpha_l ) ;\n __exctype_l ( iscntrl_l ) ;\n __exctype_l ( isdigit_l ) ;\n __exctype_l ( islower_l ) ;\n __exctype_l ( isgraph_l ) ;\n __exctype_l ( isprint_l ) ;\n __exctype_l ( ispunct_l )"}
{"idx": 5496, "target": 1, "func": "static void _UTF7FromUnicodeWithOffsets ( UConverterFromUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n UConverter * cnv ;\n const UChar * source , * sourceLimit ;\n uint8_t * target , * targetLimit ;\n int32_t * offsets ;\n int32_t length , targetCapacity , sourceIndex ;\n UChar c ;\n const UBool * encodeDirectly ;\n uint8_t bits ;\n int8_t base64Counter ;\n UBool inDirectMode ;\n cnv = pArgs -> converter ;\n source = pArgs -> source ;\n sourceLimit = pArgs -> sourceLimit ;\n target = ( uint8_t * ) pArgs -> target ;\n targetLimit = ( uint8_t * ) pArgs -> targetLimit ;\n offsets = pArgs -> offsets ;\n {\n uint32_t status = cnv -> fromUnicodeStatus ;\n encodeDirectly = status < 0x10000000 ? encodeDirectlyMaximum : encodeDirectlyRestricted ;\n inDirectMode = ( UBool ) ( ( status >> 24 ) & 1 ) ;\n base64Counter = ( int8_t ) ( status >> 16 ) ;\n bits = ( uint8_t ) status ;\n U_ASSERT ( bits <= UPRV_LENGTHOF ( toBase64 ) ) ;\n }\n sourceIndex = 0 ;\n if ( inDirectMode ) {\n directMode : length = ( int32_t ) ( sourceLimit - source ) ;\n targetCapacity = ( int32_t ) ( targetLimit - target ) ;\n if ( length > targetCapacity ) {\n length = targetCapacity ;\n }\n while ( length > 0 ) {\n c = * source ++ ;\n if ( c <= 127 && encodeDirectly [ c ] ) {\n * target ++ = ( uint8_t ) c ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ++ ;\n }\n }\n else if ( c == PLUS ) {\n * target ++ = PLUS ;\n if ( target < targetLimit ) {\n * target ++ = MINUS ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ++ ;\n }\n goto directMode ;\n }\n else {\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ++ ;\n }\n cnv -> charErrorBuffer [ 0 ] = MINUS ;\n cnv -> charErrorBufferLength = 1 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n else {\n -- source ;\n * target ++ = PLUS ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n inDirectMode = FALSE ;\n base64Counter = 0 ;\n goto unicodeMode ;\n }\n -- length ;\n }\n if ( source < sourceLimit && target >= targetLimit ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n else {\n unicodeMode : while ( source < sourceLimit ) {\n if ( target < targetLimit ) {\n c = * source ++ ;\n if ( c <= 127 && encodeDirectly [ c ] ) {\n inDirectMode = TRUE ;\n -- source ;\n if ( base64Counter != 0 ) {\n * target ++ = toBase64 [ bits ] ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex - 1 ;\n }\n }\n if ( fromBase64 [ c ] != - 1 ) {\n if ( target < targetLimit ) {\n * target ++ = MINUS ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex - 1 ;\n }\n }\n else {\n cnv -> charErrorBuffer [ 0 ] = MINUS ;\n cnv -> charErrorBufferLength = 1 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n goto directMode ;\n }\n else {\n switch ( base64Counter ) {\n case 0 : * target ++ = toBase64 [ c >> 10 ] ;\n if ( target < targetLimit ) {\n * target ++ = toBase64 [ ( c >> 4 ) & 0x3f ] ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ++ ;\n }\n }\n else {\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ++ ;\n }\n cnv -> charErrorBuffer [ 0 ] = toBase64 [ ( c >> 4 ) & 0x3f ] ;\n cnv -> charErrorBufferLength = 1 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n bits = ( uint8_t ) ( ( c & 15 ) << 2 ) ;\n base64Counter = 1 ;\n break ;\n case 1 : * target ++ = toBase64 [ bits | ( c >> 14 ) ] ;\n if ( target < targetLimit ) {\n * target ++ = toBase64 [ ( c >> 8 ) & 0x3f ] ;\n if ( target < targetLimit ) {\n * target ++ = toBase64 [ ( c >> 2 ) & 0x3f ] ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ++ ;\n }\n }\n else {\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ++ ;\n }\n cnv -> charErrorBuffer [ 0 ] = toBase64 [ ( c >> 2 ) & 0x3f ] ;\n cnv -> charErrorBufferLength = 1 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n else {\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ++ ;\n }\n cnv -> charErrorBuffer [ 0 ] = toBase64 [ ( c >> 8 ) & 0x3f ] ;\n cnv -> charErrorBuffer [ 1 ] = toBase64 [ ( c >> 2 ) & 0x3f ] ;\n cnv -> charErrorBufferLength = 2 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n bits = ( uint8_t ) ( ( c & 3 ) << 4 ) ;\n base64Counter = 2 ;\n break ;\n case 2 : * target ++ = toBase64 [ bits | ( c >> 12 ) ] ;\n if ( target < targetLimit ) {\n * target ++ = toBase64 [ ( c >> 6 ) & 0x3f ] ;\n if ( target < targetLimit ) {\n * target ++ = toBase64 [ c & 0x3f ] ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ++ ;\n }\n }\n else {\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ++ ;\n }\n cnv -> charErrorBuffer [ 0 ] = toBase64 [ c & 0x3f ] ;\n cnv -> charErrorBufferLength = 1 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n else {\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ++ ;\n }\n cnv -> charErrorBuffer [ 0 ] = toBase64 [ ( c >> 6 ) & 0x3f ] ;\n cnv -> charErrorBuffer [ 1 ] = toBase64 [ c & 0x3f ] ;\n cnv -> charErrorBufferLength = 2 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n bits = 0 ;\n base64Counter = 0 ;\n break ;\n default : break ;\n }\n }\n }\n else {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n }\n if ( pArgs -> flush && source >= sourceLimit ) {\n if ( ! inDirectMode ) {\n if ( base64Counter != 0 ) {\n if ( target < targetLimit ) {\n * target ++ = toBase64 [ bits ] ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex - 1 ;\n }\n }\n else {\n cnv -> charErrorBuffer [ cnv -> charErrorBufferLength ++ ] = toBase64 [ bits ] ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n if ( target < targetLimit ) {\n * target ++ = MINUS ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex - 1 ;\n }\n }\n else {\n cnv -> charErrorBuffer [ cnv -> charErrorBufferLength ++ ] = MINUS ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n cnv -> fromUnicodeStatus = ( cnv -> fromUnicodeStatus & 0xf0000000 ) | 0x1000000 ;\n }\n else {\n cnv -> fromUnicodeStatus = ( cnv -> fromUnicodeStatus & 0xf0000000 ) | ( ( uint32_t ) inDirectMode << 24 ) | ( ( uint32_t ) base64Counter << 16 ) | ( uint32_t ) bits ;\n }\n pArgs -> source = source ;\n pArgs -> target = ( char * ) target ;\n pArgs -> offsets = offsets ;\n return ;\n }"}
{"idx": 5497, "target": 0, "func": "static int for_samples_continue ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n es_ptr ep = esp ;\n int var = ep [ - 4 ] . value . intval ;\n float a = ep [ - 3 ] . value . realval ;\n int n = ep [ - 2 ] . value . intval ;\n float b = ep [ - 1 ] . value . realval ;\n if ( var > n ) {\n esp -= 6 ;\n return o_pop_estack ;\n }\n push ( 1 ) ;\n make_real ( op , ( ( n - var ) * a + var * b ) / n ) ;\n ep [ - 4 ] . value . intval = var + 1 ;\n ref_assign_inline ( ep + 2 , ep ) ;\n esp = ep + 2 ;\n return o_push_estack ;\n }"}
{"idx": 5498, "target": 0, "func": "static cmsBool Type_ColorantTable_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) {\n cmsNAMEDCOLORLIST * NamedColorList = ( cmsNAMEDCOLORLIST * ) Ptr ;\n int i , nColors ;\n nColors = cmsNamedColorCount ( NamedColorList ) ;\n if ( ! _cmsWriteUInt32Number ( io , nColors ) ) return FALSE ;\n for ( i = 0 ;\n i < nColors ;\n i ++ ) {\n char root [ 33 ] ;\n cmsUInt16Number PCS [ 3 ] ;\n if ( ! cmsNamedColorInfo ( NamedColorList , i , root , NULL , NULL , PCS , NULL ) ) return 0 ;\n root [ 32 ] = 0 ;\n if ( ! io -> Write ( io , 32 , root ) ) return FALSE ;\n if ( ! _cmsWriteUInt16Array ( io , 3 , PCS ) ) return FALSE ;\n }\n return TRUE ;\n cmsUNUSED_PARAMETER ( nItems ) ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 5499, "target": 0, "func": "i2c_bus * pxa2xx_i2c_bus ( PXA2xxI2CState * s ) {\n return s -> bus ;\n }"}
{"idx": 5500, "target": 1, "func": "static void gtkui_inject_user ( int side ) {\n size_t len ;\n len = strescape ( injectbuf , injectbuf ) ;\n if ( side == 1 || side == 2 ) {\n user_inject ( injectbuf , len , curr_conn , side ) ;\n }\n }"}
{"idx": 5501, "target": 0, "func": "int psf_open_rsrc ( SF_PRIVATE * psf ) {\n if ( psf -> rsrc . filedes > 0 ) return 0 ;\n snprintf ( psf -> rsrc . path . c , sizeof ( psf -> rsrc . path . c ) , \"%s/..namedfork/rsrc\" , psf -> file . path . c ) ;\n psf -> error = SFE_NO_ERROR ;\n if ( ( psf -> rsrc . filedes = psf_open_fd ( & psf -> rsrc ) ) >= 0 ) {\n psf -> rsrclength = psf_get_filelen_fd ( psf -> rsrc . filedes ) ;\n if ( psf -> rsrclength > 0 || ( psf -> rsrc . mode & SFM_WRITE ) ) return SFE_NO_ERROR ;\n psf_close_fd ( psf -> rsrc . filedes ) ;\n psf -> rsrc . filedes = - 1 ;\n }\n ;\n if ( psf -> rsrc . filedes == - SFE_BAD_OPEN_MODE ) {\n psf -> error = SFE_BAD_OPEN_MODE ;\n return psf -> error ;\n }\n ;\n snprintf ( psf -> rsrc . path . c , sizeof ( psf -> rsrc . path . c ) , \"%s._%s\" , psf -> file . dir . c , psf -> file . name . c ) ;\n psf -> error = SFE_NO_ERROR ;\n if ( ( psf -> rsrc . filedes = psf_open_fd ( & psf -> rsrc ) ) >= 0 ) {\n psf -> rsrclength = psf_get_filelen_fd ( psf -> rsrc . filedes ) ;\n return SFE_NO_ERROR ;\n }\n ;\n snprintf ( psf -> rsrc . path . c , sizeof ( psf -> rsrc . path . c ) , \"%s.AppleDouble/%s\" , psf -> file . dir . c , psf -> file . name . c ) ;\n psf -> error = SFE_NO_ERROR ;\n if ( ( psf -> rsrc . filedes = psf_open_fd ( & psf -> rsrc ) ) >= 0 ) {\n psf -> rsrclength = psf_get_filelen_fd ( psf -> rsrc . filedes ) ;\n return SFE_NO_ERROR ;\n }\n ;\n if ( psf -> rsrc . filedes == - 1 ) psf_log_syserr ( psf , errno ) ;\n psf -> rsrc . filedes = - 1 ;\n return psf -> error ;\n }"}
{"idx": 5502, "target": 0, "func": "int archive_read_support_format_ar ( struct archive * _a ) {\n struct archive_read * a = ( struct archive_read * ) _a ;\n struct ar * ar ;\n int r ;\n archive_check_magic ( _a , ARCHIVE_READ_MAGIC , ARCHIVE_STATE_NEW , \"archive_read_support_format_ar\" ) ;\n ar = ( struct ar * ) malloc ( sizeof ( * ar ) ) ;\n if ( ar == NULL ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate ar data\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n memset ( ar , 0 , sizeof ( * ar ) ) ;\n ar -> strtab = NULL ;\n r = __archive_read_register_format ( a , ar , \"ar\" , archive_read_format_ar_bid , NULL , archive_read_format_ar_read_header , archive_read_format_ar_read_data , archive_read_format_ar_skip , NULL , archive_read_format_ar_cleanup , NULL , NULL ) ;\n if ( r != ARCHIVE_OK ) {\n free ( ar ) ;\n return ( r ) ;\n }\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 5503, "target": 0, "func": "void kill_mysql ( void ) {\n DBUG_ENTER ( \"kill_mysql\" ) ;\n # if defined ( SIGNALS_DONT_BREAK_READ ) && ! defined ( EMBEDDED_LIBRARY ) abort_loop = 1 ;\n close_server_sock ( ) ;\n # endif # if defined ( __WIN__ ) # if ! defined ( EMBEDDED_LIBRARY ) {\n if ( ! SetEvent ( hEventShutdown ) ) {\n DBUG_PRINT ( \"error\" , ( \"Got error: %ld from SetEvent\" , GetLastError ( ) ) ) ;\n }\n }\n # endif # elif defined ( HAVE_PTHREAD_KILL ) if ( pthread_kill ( signal_thread , MYSQL_KILL_SIGNAL ) ) {\n DBUG_PRINT ( \"error\" , ( \"Got error %d from pthread_kill\" , errno ) ) ;\n }\n # elif ! defined ( SIGNALS_DONT_BREAK_READ ) kill ( current_pid , MYSQL_KILL_SIGNAL ) ;\n # endif DBUG_PRINT ( \"quit\" , ( \"After pthread_kill\" ) ) ;\n shutdown_in_progress = 1 ;\n # ifdef SIGNALS_DONT_BREAK_READ if ( ! kill_in_progress ) {\n pthread_t tmp ;\n int error ;\n abort_loop = 1 ;\n if ( ( error = mysql_thread_create ( 0 , & tmp , & connection_attrib , kill_server_thread , ( void * ) 0 ) ) ) sql_print_error ( \"Can't create thread to kill server (errno= %d).\" , error ) ;\n }\n # endif DBUG_VOID_RETURN ;\n }"}
{"idx": 5504, "target": 0, "func": "static int dissect_h225_RasUsageSpecificationcallStartingPoint ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_RasUsageSpecificationcallStartingPoint , RasUsageSpecificationcallStartingPoint_sequence ) ;\n return offset ;\n }"}
{"idx": 5505, "target": 0, "func": "proto_item * parseByteString ( proto_tree * tree , tvbuff_t * tvb , packet_info * pinfo _U_ , gint * pOffset , int hfIndex ) {\n proto_item * item = NULL ;\n char * szValue ;\n int iOffset = * pOffset ;\n gint32 iLen = tvb_get_letohl ( tvb , iOffset ) ;\n iOffset += 4 ;\n if ( iLen == - 1 ) {\n item = proto_tree_add_item ( tree , hfIndex , tvb , * pOffset , 0 , ENC_NA ) ;\n proto_item_append_text ( item , \"[OpcUa Null ByteString]\" ) ;\n proto_item_set_end ( item , tvb , * pOffset + 4 ) ;\n }\n else if ( iLen == 0 ) {\n item = proto_tree_add_item ( tree , hfIndex , tvb , * pOffset , 0 , ENC_NA ) ;\n proto_item_append_text ( item , \"[OpcUa Empty ByteString]\" ) ;\n proto_item_set_end ( item , tvb , * pOffset + 4 ) ;\n }\n else if ( iLen > 0 ) {\n item = proto_tree_add_item ( tree , hfIndex , tvb , iOffset , iLen , ENC_NA ) ;\n iOffset += iLen ;\n }\n else {\n item = proto_tree_add_item ( tree , hfIndex , tvb , * pOffset , 0 , ENC_NA ) ;\n szValue = wmem_strdup_printf ( wmem_packet_scope ( ) , \"[Invalid ByteString] Invalid length: %d\" , iLen ) ;\n proto_item_append_text ( item , \"%s\" , szValue ) ;\n proto_item_set_end ( item , tvb , * pOffset + 4 ) ;\n }\n * pOffset = iOffset ;\n return item ;\n }"}
{"idx": 5506, "target": 0, "func": "SPL_METHOD ( SplDoublyLinkedList , setIteratorMode ) {\n long value ;\n spl_dllist_object * intern ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"l\" , & value ) == FAILURE ) {\n return ;\n }\n intern = ( spl_dllist_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( intern -> flags & SPL_DLLIST_IT_FIX && ( intern -> flags & SPL_DLLIST_IT_LIFO ) != ( value & SPL_DLLIST_IT_LIFO ) ) {\n zend_throw_exception ( spl_ce_RuntimeException , \"Iterators' LIFO/FIFO modes for SplStack/SplQueue objects are frozen\" , 0 TSRMLS_CC ) ;\n return ;\n }\n intern -> flags = value & SPL_DLLIST_IT_MASK ;\n RETURN_LONG ( intern -> flags ) ;\n }"}
{"idx": 5507, "target": 0, "func": "static void getcmds ( void ) {\n char * line ;\n int count ;\n ntp_readline_init ( interactive ? prompt : NULL ) ;\n for ( ;\n ;\n ) {\n line = ntp_readline ( & count ) ;\n if ( NULL == line ) break ;\n docmd ( line ) ;\n free ( line ) ;\n }\n ntp_readline_uninit ( ) ;\n }"}
{"idx": 5508, "target": 0, "func": "static int dissect_CPMCreateQuery ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * parent_tree , gboolean in , void * data _U_ ) {\n gint offset = 16 ;\n proto_item * item ;\n proto_tree * tree ;\n item = proto_tree_add_item ( parent_tree , hf_mswsp_msg , tvb , offset , - 1 , ENC_NA ) ;\n tree = proto_item_add_subtree ( item , ett_mswsp_msg ) ;\n proto_item_set_text ( item , \"CPMCreateQuery%s\" , in ? \"In\" : \"Out\" ) ;\n col_append_str ( pinfo -> cinfo , COL_INFO , \"CreateQuery\" ) ;\n if ( in ) {\n proto_item * ti ;\n proto_tree * pad_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_mswsp_pad , & ti , \"Padding\" ) ;\n guint8 CColumnSetPresent , CRestrictionPresent , CSortSetPresent , CCategorizationSetPresent ;\n guint32 size = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_msg_cpmcreatequery_size , tvb , offset , 4 , size ) ;\n offset += 4 ;\n CColumnSetPresent = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcreatequery_ccolumnsetpresent , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 1 ;\n if ( CColumnSetPresent ) {\n offset = parse_padding ( tvb , offset , 4 , pad_tree , \"paddingCColumnSetPresent\" ) ;\n offset = parse_padding ( tvb , offset , 4 , pad_tree , \"paddingCColumnSetPresent\" ) ;\n offset = parse_CColumnSet ( tvb , offset , tree , \"CColumnSet\" ) ;\n }\n CRestrictionPresent = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcreatequery_crestrictionpresent , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 1 ;\n if ( CRestrictionPresent ) {\n offset = parse_CRestrictionArray ( tvb , pinfo , offset , tree , pad_tree , \"RestrictionArray\" ) ;\n }\n CSortSetPresent = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcreatequery_csortpresent , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 1 ;\n if ( CSortSetPresent ) {\n offset = parse_padding ( tvb , offset , 4 , tree , \"paddingCSortSetPresent\" ) ;\n offset = parse_CInGroupSortAggregSets ( tvb , pinfo , offset , tree , pad_tree , \"GroupSortAggregSets\" ) ;\n }\n CCategorizationSetPresent = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcreatequery_ccategpresent , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 1 ;\n if ( CCategorizationSetPresent ) {\n guint32 count , i ;\n offset = parse_padding ( tvb , offset , 4 , pad_tree , \"paddingCCategorizationSetPresent\" ) ;\n count = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_msg_cpmcreatequery_ccateg_count , tvb , offset , 4 , count ) ;\n offset += 4 ;\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n offset = parse_CCategorizationSpec ( tvb , pinfo , offset , tree , pad_tree , \"categories[%u]\" , i ) ;\n }\n }\n offset = parse_padding ( tvb , offset , 4 , tree , \"XXXX\" ) ;\n offset = parse_CRowsetProperties ( tvb , offset , tree , pad_tree , \"RowSetProperties\" ) ;\n offset = parse_CPidMapper ( tvb , offset , tree , pad_tree , \"PidMapper\" ) ;\n parse_CColumnGroupArray ( tvb , offset , tree , pad_tree , \"GroupArray\" ) ;\n }\n else {\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcreatequery_trueseq , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcreatequery_workid , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcreatequery_cursors , tvb , offset , - 1 , ENC_NA ) ;\n }\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 5509, "target": 1, "func": "static CURLFORMcode FormAdd ( struct curl_httppost * * httppost , struct curl_httppost * * last_post , va_list params ) {\n FormInfo * first_form , * current_form , * form = NULL ;\n CURLFORMcode return_value = CURL_FORMADD_OK ;\n const char * prevtype = NULL ;\n struct curl_httppost * post = NULL ;\n CURLformoption option ;\n struct curl_forms * forms = NULL ;\n char * array_value = NULL ;\n bool array_state = FALSE ;\n first_form = calloc ( 1 , sizeof ( struct FormInfo ) ) ;\n if ( ! first_form ) return CURL_FORMADD_MEMORY ;\n current_form = first_form ;\n while ( return_value == CURL_FORMADD_OK ) {\n if ( array_state && forms ) {\n option = forms -> option ;\n array_value = ( char * ) forms -> value ;\n forms ++ ;\n if ( CURLFORM_END == option ) {\n array_state = FALSE ;\n continue ;\n }\n }\n else {\n option = va_arg ( params , CURLformoption ) ;\n if ( CURLFORM_END == option ) break ;\n }\n switch ( option ) {\n case CURLFORM_ARRAY : if ( array_state ) return_value = CURL_FORMADD_ILLEGAL_ARRAY ;\n else {\n forms = va_arg ( params , struct curl_forms * ) ;\n if ( forms ) array_state = TRUE ;\n else return_value = CURL_FORMADD_NULL ;\n }\n break ;\n case CURLFORM_PTRNAME : # ifdef CURL_DOES_CONVERSIONS # else current_form -> flags |= HTTPPOST_PTRNAME ;\n # endif case CURLFORM_COPYNAME : if ( current_form -> name ) return_value = CURL_FORMADD_OPTION_TWICE ;\n else {\n char * name = array_state ? array_value : va_arg ( params , char * ) ;\n if ( name ) current_form -> name = name ;\n else return_value = CURL_FORMADD_NULL ;\n }\n break ;\n case CURLFORM_NAMELENGTH : if ( current_form -> namelength ) return_value = CURL_FORMADD_OPTION_TWICE ;\n else current_form -> namelength = array_state ? ( size_t ) array_value : ( size_t ) va_arg ( params , long ) ;\n break ;\n case CURLFORM_PTRCONTENTS : current_form -> flags |= HTTPPOST_PTRCONTENTS ;\n case CURLFORM_COPYCONTENTS : if ( current_form -> value ) return_value = CURL_FORMADD_OPTION_TWICE ;\n else {\n char * value = array_state ? array_value : va_arg ( params , char * ) ;\n if ( value ) current_form -> value = value ;\n else return_value = CURL_FORMADD_NULL ;\n }\n break ;\n case CURLFORM_CONTENTSLENGTH : if ( current_form -> contentslength ) return_value = CURL_FORMADD_OPTION_TWICE ;\n else current_form -> contentslength = array_state ? ( size_t ) array_value : ( size_t ) va_arg ( params , long ) ;\n break ;\n case CURLFORM_FILECONTENT : if ( current_form -> flags & ( HTTPPOST_PTRCONTENTS | HTTPPOST_READFILE ) ) return_value = CURL_FORMADD_OPTION_TWICE ;\n else {\n const char * filename = array_state ? array_value : va_arg ( params , char * ) ;\n if ( filename ) {\n current_form -> value = strdup ( filename ) ;\n if ( ! current_form -> value ) return_value = CURL_FORMADD_MEMORY ;\n else {\n current_form -> flags |= HTTPPOST_READFILE ;\n current_form -> value_alloc = TRUE ;\n }\n }\n else return_value = CURL_FORMADD_NULL ;\n }\n break ;\n case CURLFORM_FILE : {\n const char * filename = array_state ? array_value : va_arg ( params , char * ) ;\n if ( current_form -> value ) {\n if ( current_form -> flags & HTTPPOST_FILENAME ) {\n if ( filename ) {\n char * fname = strdup ( filename ) ;\n if ( ! fname ) return_value = CURL_FORMADD_MEMORY ;\n else {\n form = AddFormInfo ( fname , NULL , current_form ) ;\n if ( ! form ) {\n Curl_safefree ( fname ) ;\n return_value = CURL_FORMADD_MEMORY ;\n }\n else {\n form -> value_alloc = TRUE ;\n current_form = form ;\n form = NULL ;\n }\n }\n }\n else return_value = CURL_FORMADD_NULL ;\n }\n else return_value = CURL_FORMADD_OPTION_TWICE ;\n }\n else {\n if ( filename ) {\n current_form -> value = strdup ( filename ) ;\n if ( ! current_form -> value ) return_value = CURL_FORMADD_MEMORY ;\n else {\n current_form -> flags |= HTTPPOST_FILENAME ;\n current_form -> value_alloc = TRUE ;\n }\n }\n else return_value = CURL_FORMADD_NULL ;\n }\n break ;\n }\n case CURLFORM_BUFFERPTR : current_form -> flags |= HTTPPOST_PTRBUFFER | HTTPPOST_BUFFER ;\n if ( current_form -> buffer ) return_value = CURL_FORMADD_OPTION_TWICE ;\n else {\n char * buffer = array_state ? array_value : va_arg ( params , char * ) ;\n if ( buffer ) {\n current_form -> buffer = buffer ;\n current_form -> value = buffer ;\n }\n else return_value = CURL_FORMADD_NULL ;\n }\n break ;\n case CURLFORM_BUFFERLENGTH : if ( current_form -> bufferlength ) return_value = CURL_FORMADD_OPTION_TWICE ;\n else current_form -> bufferlength = array_state ? ( size_t ) array_value : ( size_t ) va_arg ( params , long ) ;\n break ;\n case CURLFORM_STREAM : current_form -> flags |= HTTPPOST_CALLBACK ;\n if ( current_form -> userp ) return_value = CURL_FORMADD_OPTION_TWICE ;\n else {\n char * userp = array_state ? array_value : va_arg ( params , char * ) ;\n if ( userp ) {\n current_form -> userp = userp ;\n current_form -> value = userp ;\n }\n else return_value = CURL_FORMADD_NULL ;\n }\n break ;\n case CURLFORM_CONTENTTYPE : {\n const char * contenttype = array_state ? array_value : va_arg ( params , char * ) ;\n if ( current_form -> contenttype ) {\n if ( current_form -> flags & HTTPPOST_FILENAME ) {\n if ( contenttype ) {\n char * type = strdup ( contenttype ) ;\n if ( ! type ) return_value = CURL_FORMADD_MEMORY ;\n else {\n form = AddFormInfo ( NULL , type , current_form ) ;\n if ( ! form ) {\n Curl_safefree ( type ) ;\n return_value = CURL_FORMADD_MEMORY ;\n }\n else {\n form -> contenttype_alloc = TRUE ;\n current_form = form ;\n form = NULL ;\n }\n }\n }\n else return_value = CURL_FORMADD_NULL ;\n }\n else return_value = CURL_FORMADD_OPTION_TWICE ;\n }\n else {\n if ( contenttype ) {\n current_form -> contenttype = strdup ( contenttype ) ;\n if ( ! current_form -> contenttype ) return_value = CURL_FORMADD_MEMORY ;\n else current_form -> contenttype_alloc = TRUE ;\n }\n else return_value = CURL_FORMADD_NULL ;\n }\n break ;\n }\n case CURLFORM_CONTENTHEADER : {\n struct curl_slist * list = array_state ? ( struct curl_slist * ) array_value : va_arg ( params , struct curl_slist * ) ;\n if ( current_form -> contentheader ) return_value = CURL_FORMADD_OPTION_TWICE ;\n else current_form -> contentheader = list ;\n break ;\n }\n case CURLFORM_FILENAME : case CURLFORM_BUFFER : {\n const char * filename = array_state ? array_value : va_arg ( params , char * ) ;\n if ( current_form -> showfilename ) return_value = CURL_FORMADD_OPTION_TWICE ;\n else {\n current_form -> showfilename = strdup ( filename ) ;\n if ( ! current_form -> showfilename ) return_value = CURL_FORMADD_MEMORY ;\n else current_form -> showfilename_alloc = TRUE ;\n }\n break ;\n }\n default : return_value = CURL_FORMADD_UNKNOWN_OPTION ;\n break ;\n }\n }\n if ( CURL_FORMADD_OK != return_value ) {\n FormInfo * ptr ;\n for ( ptr = first_form ;\n ptr != NULL ;\n ptr = ptr -> more ) {\n if ( ptr -> name_alloc ) {\n Curl_safefree ( ptr -> name ) ;\n ptr -> name_alloc = FALSE ;\n }\n if ( ptr -> value_alloc ) {\n Curl_safefree ( ptr -> value ) ;\n ptr -> value_alloc = FALSE ;\n }\n if ( ptr -> contenttype_alloc ) {\n Curl_safefree ( ptr -> contenttype ) ;\n ptr -> contenttype_alloc = FALSE ;\n }\n if ( ptr -> showfilename_alloc ) {\n Curl_safefree ( ptr -> showfilename ) ;\n ptr -> showfilename_alloc = FALSE ;\n }\n }\n }\n if ( CURL_FORMADD_OK == return_value ) {\n post = NULL ;\n for ( form = first_form ;\n form != NULL ;\n form = form -> more ) {\n if ( ( ( ! form -> name || ! form -> value ) && ! post ) || ( ( form -> contentslength ) && ( form -> flags & HTTPPOST_FILENAME ) ) || ( ( form -> flags & HTTPPOST_FILENAME ) && ( form -> flags & HTTPPOST_PTRCONTENTS ) ) || ( ( ! form -> buffer ) && ( form -> flags & HTTPPOST_BUFFER ) && ( form -> flags & HTTPPOST_PTRBUFFER ) ) || ( ( form -> flags & HTTPPOST_READFILE ) && ( form -> flags & HTTPPOST_PTRCONTENTS ) ) ) {\n return_value = CURL_FORMADD_INCOMPLETE ;\n break ;\n }\n else {\n if ( ( ( form -> flags & HTTPPOST_FILENAME ) || ( form -> flags & HTTPPOST_BUFFER ) ) && ! form -> contenttype ) {\n char * f = form -> flags & HTTPPOST_BUFFER ? form -> showfilename : form -> value ;\n form -> contenttype = strdup ( ContentTypeForFilename ( f , prevtype ) ) ;\n if ( ! form -> contenttype ) {\n return_value = CURL_FORMADD_MEMORY ;\n break ;\n }\n form -> contenttype_alloc = TRUE ;\n }\n if ( ! ( form -> flags & HTTPPOST_PTRNAME ) && ( form == first_form ) ) {\n if ( form -> name ) form -> name = memdup ( form -> name , form -> namelength ) ;\n if ( ! form -> name ) {\n return_value = CURL_FORMADD_MEMORY ;\n break ;\n }\n form -> name_alloc = TRUE ;\n }\n if ( ! ( form -> flags & ( HTTPPOST_FILENAME | HTTPPOST_READFILE | HTTPPOST_PTRCONTENTS | HTTPPOST_PTRBUFFER | HTTPPOST_CALLBACK ) ) && form -> value ) {\n form -> value = memdup ( form -> value , form -> contentslength ) ;\n if ( ! form -> value ) {\n return_value = CURL_FORMADD_MEMORY ;\n break ;\n }\n form -> value_alloc = TRUE ;\n }\n post = AddHttpPost ( form -> name , form -> namelength , form -> value , form -> contentslength , form -> buffer , form -> bufferlength , form -> contenttype , form -> flags , form -> contentheader , form -> showfilename , form -> userp , post , httppost , last_post ) ;\n if ( ! post ) {\n return_value = CURL_FORMADD_MEMORY ;\n break ;\n }\n if ( form -> contenttype ) prevtype = form -> contenttype ;\n }\n }\n if ( CURL_FORMADD_OK != return_value ) {\n FormInfo * ptr ;\n for ( ptr = form ;\n ptr != NULL ;\n ptr = ptr -> more ) {\n if ( ptr -> name_alloc ) {\n Curl_safefree ( ptr -> name ) ;\n ptr -> name_alloc = FALSE ;\n }\n if ( ptr -> value_alloc ) {\n Curl_safefree ( ptr -> value ) ;\n ptr -> value_alloc = FALSE ;\n }\n if ( ptr -> contenttype_alloc ) {\n Curl_safefree ( ptr -> contenttype ) ;\n ptr -> contenttype_alloc = FALSE ;\n }\n if ( ptr -> showfilename_alloc ) {\n Curl_safefree ( ptr -> showfilename ) ;\n ptr -> showfilename_alloc = FALSE ;\n }\n }\n }\n }\n while ( first_form ) {\n FormInfo * ptr = first_form -> more ;\n Curl_safefree ( first_form ) ;\n first_form = ptr ;\n }\n return return_value ;\n }"}
{"idx": 5510, "target": 0, "func": "static MagickBooleanType load_hierarchy ( Image * image , XCFDocInfo * inDocInfo , XCFLayerInfo * inLayer , ExceptionInfo * exception ) {\n MagickOffsetType saved_pos , offset , junk ;\n size_t width , height , bytes_per_pixel ;\n width = ReadBlobMSBLong ( image ) ;\n ( void ) width ;\n height = ReadBlobMSBLong ( image ) ;\n ( void ) height ;\n bytes_per_pixel = inDocInfo -> bytes_per_pixel = ReadBlobMSBLong ( image ) ;\n ( void ) bytes_per_pixel ;\n offset = ( MagickOffsetType ) ReadBlobMSBLong ( image ) ;\n do {\n junk = ( MagickOffsetType ) ReadBlobMSBLong ( image ) ;\n }\n while ( junk != 0 ) ;\n saved_pos = TellBlob ( image ) ;\n offset = SeekBlob ( image , offset , SEEK_SET ) ;\n if ( load_level ( image , inDocInfo , inLayer , exception ) == 0 ) return ( MagickFalse ) ;\n offset = SeekBlob ( image , saved_pos , SEEK_SET ) ;\n return ( MagickTrue ) ;\n }"}
{"idx": 5511, "target": 0, "func": "static guint16 expected_ulpdu_length ( mpa_state_t * state , struct tcpinfo * tcpinfo , guint8 endpoint ) {\n guint32 length , pad_length , markers_length ;\n length = fpdu_total_length ( tcpinfo ) ;\n if ( length <= MPA_CRC_LEN ) return 0 ;\n length -= MPA_CRC_LEN ;\n pad_length = ( MPA_ALIGNMENT - ( length % MPA_ALIGNMENT ) ) % MPA_ALIGNMENT ;\n if ( length <= pad_length ) return 0 ;\n length -= pad_length ;\n if ( state -> minfo [ endpoint ] . valid ) {\n markers_length = number_of_markers ( state , tcpinfo , endpoint ) * MPA_MARKER_LEN ;\n if ( length <= markers_length ) return 0 ;\n length -= markers_length ;\n }\n if ( length <= MPA_ULPDU_LENGTH_LEN ) return 0 ;\n length -= MPA_ULPDU_LENGTH_LEN ;\n return ( guint16 ) length ;\n }"}
{"idx": 5512, "target": 0, "func": "static SocketAddress * nbd_build_socket_address ( const char * sockpath , const char * bindto , const char * port ) {\n SocketAddress * saddr ;\n saddr = g_new0 ( SocketAddress , 1 ) ;\n if ( sockpath ) {\n saddr -> type = SOCKET_ADDRESS_TYPE_UNIX ;\n saddr -> u . q_unix . path = g_strdup ( sockpath ) ;\n }\n else {\n InetSocketAddress * inet ;\n saddr -> type = SOCKET_ADDRESS_TYPE_INET ;\n inet = & saddr -> u . inet ;\n inet -> host = g_strdup ( bindto ) ;\n if ( port ) {\n inet -> port = g_strdup ( port ) ;\n }\n else {\n inet -> port = g_strdup_printf ( \"%d\" , NBD_DEFAULT_PORT ) ;\n }\n }\n return saddr ;\n }"}
{"idx": 5513, "target": 0, "func": "static void vga_draw_line16_be ( VGACommonState * vga , uint8_t * d , uint32_t addr , int width ) {\n int w ;\n uint32_t v , r , g , b ;\n w = width ;\n do {\n v = vga_read_word_be ( vga , addr ) ;\n r = ( v >> 8 ) & 0xf8 ;\n g = ( v >> 3 ) & 0xfc ;\n b = ( v << 3 ) & 0xf8 ;\n ( ( uint32_t * ) d ) [ 0 ] = rgb_to_pixel32 ( r , g , b ) ;\n addr += 2 ;\n d += 4 ;\n }\n while ( -- w != 0 ) ;\n }"}
{"idx": 5514, "target": 0, "func": "void proto_register_zbee_zcl_ballast_configuration ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_zbee_zcl_ballast_configuration_attr_id , {\n \"Attribute\" , \"zbee_zcl_lighting.ballast_configuration.attr_id\" , FT_UINT16 , BASE_HEX , VALS ( zbee_zcl_ballast_configuration_attr_names ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ballast_configuration_status , {\n \"Status\" , \"zbee_zcl_lighting.ballast_configuration.attr.status\" , FT_UINT8 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ballast_configuration_status_non_operational , {\n \"Non-operational\" , \"zbee_zcl_lighting.ballast_configuration.attr.status.non_operational\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_ballast_configuration_status_non_operational_names ) , ZBEE_ZCL_BALLAST_CONFIGURATION_STATUS_NON_OPERATIONAL , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ballast_configuration_status_lamp_not_in_socket , {\n \"Not in Socket\" , \"zbee_zcl_lighting.ballast_configuration.attr.status.not_in_socket\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_ballast_configuration_status_lamp_not_in_socket_names ) , ZBEE_ZCL_BALLAST_CONFIGURATION_STATUS_LAMP_NOT_IN_SOCKET , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ballast_configuration_lamp_alarm_mode , {\n \"Lamp Alarm Mode\" , \"zbee_zcl_lighting.ballast_configuration.attr.lamp_alarm_mode\" , FT_UINT8 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ballast_configuration_lamp_alarm_mode_lamp_burn_hours , {\n \"Lamp Burn Hours\" , \"zbee_zcl_lighting.ballast_configuration.attr.lamp_alarm_mode.lamp_burn_hours\" , FT_BOOLEAN , 8 , NULL , ZBEE_ZCL_BALLAST_CONFIGURATION_LAMP_ALARM_MODE_LAMP_BURN_HOURS , NULL , HFILL }\n }\n }\n ;\n static gint * ett [ ZBEE_ZCL_BALLAST_CONFIGURATION_NUM_ETT ] ;\n ett [ 0 ] = & ett_zbee_zcl_ballast_configuration ;\n ett [ 1 ] = & ett_zbee_zcl_ballast_configuration_status ;\n ett [ 2 ] = & ett_zbee_zcl_ballast_configuration_lamp_alarm_mode ;\n proto_zbee_zcl_ballast_configuration = proto_register_protocol ( \"ZigBee ZCL Ballast Configuration\" , \"ZCL Ballast Configuration\" , ZBEE_PROTOABBREV_ZCL_BALLAST_CONFIG ) ;\n proto_register_field_array ( proto_zbee_zcl_ballast_configuration , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n register_dissector ( ZBEE_PROTOABBREV_ZCL_BALLAST_CONFIG , dissect_zbee_zcl_ballast_configuration , proto_zbee_zcl_ballast_configuration ) ;\n }"}
{"idx": 5515, "target": 0, "func": "char * qemuAliasFromDisk ( const virDomainDiskDef * disk ) {\n char * ret ;\n if ( ! disk -> info . alias ) {\n virReportError ( VIR_ERR_INVALID_ARG , \"%s\" , _ ( \"disk does not have an alias\" ) ) ;\n return NULL ;\n }\n ignore_value ( virAsprintf ( & ret , \"%s%s\" , QEMU_DRIVE_HOST_PREFIX , disk -> info . alias ) ) ;\n return ret ;\n }"}
{"idx": 5516, "target": 0, "func": "static int load_bitmap_entries_v1 ( struct bitmap_index * index ) {\n uint32_t i ;\n struct stored_bitmap * recent_bitmaps [ MAX_XOR_OFFSET ] = {\n NULL }\n ;\n for ( i = 0 ;\n i < index -> entry_count ;\n ++ i ) {\n int xor_offset , flags ;\n struct ewah_bitmap * bitmap = NULL ;\n struct stored_bitmap * xor_bitmap = NULL ;\n uint32_t commit_idx_pos ;\n const unsigned char * sha1 ;\n commit_idx_pos = read_be32 ( index -> map , & index -> map_pos ) ;\n xor_offset = read_u8 ( index -> map , & index -> map_pos ) ;\n flags = read_u8 ( index -> map , & index -> map_pos ) ;\n sha1 = nth_packed_object_sha1 ( index -> pack , commit_idx_pos ) ;\n bitmap = read_bitmap_1 ( index ) ;\n if ( ! bitmap ) return - 1 ;\n if ( xor_offset > MAX_XOR_OFFSET || xor_offset > i ) return error ( \"Corrupted bitmap pack index\" ) ;\n if ( xor_offset > 0 ) {\n xor_bitmap = recent_bitmaps [ ( i - xor_offset ) % MAX_XOR_OFFSET ] ;\n if ( xor_bitmap == NULL ) return error ( \"Invalid XOR offset in bitmap pack index\" ) ;\n }\n recent_bitmaps [ i % MAX_XOR_OFFSET ] = store_bitmap ( index , bitmap , sha1 , xor_bitmap , flags ) ;\n }\n return 0 ;\n }"}
{"idx": 5517, "target": 0, "func": "static cmsBool WriteCountAndSting ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsMLU * mlu , const char * Section ) {\n cmsUInt32Number TextSize ;\n char * Text ;\n TextSize = cmsMLUgetASCII ( mlu , \"PS\" , Section , NULL , 0 ) ;\n Text = ( char * ) _cmsMalloc ( self -> ContextID , TextSize ) ;\n if ( ! _cmsWriteUInt32Number ( io , TextSize ) ) return FALSE ;\n if ( cmsMLUgetASCII ( mlu , \"PS\" , Section , Text , TextSize ) == 0 ) return FALSE ;\n if ( ! io -> Write ( io , TextSize , Text ) ) return FALSE ;\n _cmsFree ( self -> ContextID , Text ) ;\n return TRUE ;\n }"}
{"idx": 5518, "target": 0, "func": "static void decorrelate_stereo ( int32_t * buffer [ 2 ] , int nb_samples , int decorr_shift , int decorr_left_weight ) {\n int i ;\n for ( i = 0 ;\n i < nb_samples ;\n i ++ ) {\n int32_t a , b ;\n a = buffer [ 0 ] [ i ] ;\n b = buffer [ 1 ] [ i ] ;\n a -= ( b * decorr_left_weight ) >> decorr_shift ;\n b += a ;\n buffer [ 0 ] [ i ] = b ;\n buffer [ 1 ] [ i ] = a ;\n }\n }"}
{"idx": 5519, "target": 0, "func": "int ff_vdpau_add_buffer ( AVCodecContext * avctx , const uint8_t * buf , uint32_t size ) {\n AVVDPAUContext * hwctx = avctx -> hwaccel_context ;\n VdpBitstreamBuffer * buffers = hwctx -> bitstream_buffers ;\n buffers = av_fast_realloc ( buffers , & hwctx -> bitstream_buffers_allocated , ( hwctx -> bitstream_buffers_used + 1 ) * sizeof ( * buffers ) ) ;\n if ( ! buffers ) return AVERROR ( ENOMEM ) ;\n hwctx -> bitstream_buffers = buffers ;\n buffers += hwctx -> bitstream_buffers_used ++ ;\n buffers -> struct_version = VDP_BITSTREAM_BUFFER_VERSION ;\n buffers -> bitstream = buf ;\n buffers -> bitstream_bytes = size ;\n return 0 ;\n }"}
{"idx": 5520, "target": 0, "func": "void mpi_m_check ( MPI a ) {\n m_check ( a ) ;\n m_check ( a -> d ) ;\n }"}
{"idx": 5521, "target": 0, "func": "proto_item * proto_tree_add_ipxnet ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , guint32 value ) {\n proto_item * pi ;\n header_field_info * hfinfo ;\n CHECK_FOR_NULL_TREE ( tree ) ;\n TRY_TO_FAKE_THIS_ITEM ( tree , hfindex , hfinfo ) ;\n DISSECTOR_ASSERT_FIELD_TYPE ( hfinfo , FT_IPXNET ) ;\n pi = proto_tree_add_pi ( tree , hfinfo , tvb , start , & length ) ;\n proto_tree_set_ipxnet ( PNODE_FINFO ( pi ) , value ) ;\n return pi ;\n }"}
{"idx": 5522, "target": 0, "func": "void proto_reg_handoff_h225 ( void ) {\n static gboolean h225_prefs_initialized = FALSE ;\n static dissector_handle_t q931_tpkt_handle ;\n static guint saved_h225_tls_port ;\n if ( ! h225_prefs_initialized ) {\n dissector_add_uint ( \"udp.port\" , UDP_PORT_RAS1 , h225ras_handle ) ;\n dissector_add_uint ( \"udp.port\" , UDP_PORT_RAS2 , h225ras_handle ) ;\n h245_handle = find_dissector ( \"h245\" ) ;\n h245dg_handle = find_dissector ( \"h245dg\" ) ;\n h4501_handle = find_dissector ( \"h4501\" ) ;\n data_handle = find_dissector ( \"data\" ) ;\n h225_prefs_initialized = TRUE ;\n q931_tpkt_handle = find_dissector ( \"q931.tpkt\" ) ;\n }\n else {\n ssl_dissector_delete ( saved_h225_tls_port , q931_tpkt_handle ) ;\n }\n saved_h225_tls_port = h225_tls_port ;\n ssl_dissector_add ( saved_h225_tls_port , q931_tpkt_handle ) ;\n }"}
{"idx": 5523, "target": 0, "func": "static inline void e1000e_read_lgcy_rx_descr ( E1000ECore * core , uint8_t * desc , hwaddr * buff_addr ) {\n struct e1000_rx_desc * d = ( struct e1000_rx_desc * ) desc ;\n * buff_addr = le64_to_cpu ( d -> buffer_addr ) ;\n }"}
{"idx": 5524, "target": 0, "func": "int vp9_get_qindex ( const struct segmentation * seg , int segment_id , int base_qindex ) {\n if ( vp9_segfeature_active ( seg , segment_id , SEG_LVL_ALT_Q ) ) {\n const int data = vp9_get_segdata ( seg , segment_id , SEG_LVL_ALT_Q ) ;\n const int seg_qindex = seg -> abs_delta == SEGMENT_ABSDATA ? data : base_qindex + data ;\n return clamp ( seg_qindex , 0 , MAXQ ) ;\n }\n else {\n return base_qindex ;\n }\n }"}
{"idx": 5525, "target": 1, "func": "static void UConverter_fromUnicode_ISCII_OFFSETS_LOGIC ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n const UChar * source = args -> source ;\n const UChar * sourceLimit = args -> sourceLimit ;\n unsigned char * target = ( unsigned char * ) args -> target ;\n unsigned char * targetLimit = ( unsigned char * ) args -> targetLimit ;\n int32_t * offsets = args -> offsets ;\n uint32_t targetByteUnit = 0x0000 ;\n UChar32 sourceChar = 0x0000 ;\n UChar32 tempContextFromUnicode = 0x0000 ;\n UConverterDataISCII * converterData ;\n uint16_t newDelta = 0 ;\n uint16_t range = 0 ;\n UBool deltaChanged = FALSE ;\n if ( ( args -> converter == NULL ) || ( args -> targetLimit < args -> target ) || ( args -> sourceLimit < args -> source ) ) {\n * err = U_ILLEGAL_ARGUMENT_ERROR ;\n return ;\n }\n converterData = ( UConverterDataISCII * ) args -> converter -> extraInfo ;\n newDelta = converterData -> currentDeltaFromUnicode ;\n range = ( uint16_t ) ( newDelta / DELTA ) ;\n if ( ( sourceChar = args -> converter -> fromUChar32 ) != 0 ) {\n goto getTrail ;\n }\n while ( source < sourceLimit ) {\n if ( args -> converter -> fromUnicodeStatus == LF ) {\n targetByteUnit = ATR << 8 ;\n targetByteUnit += ( uint8_t ) lookupInitialData [ range ] . isciiLang ;\n args -> converter -> fromUnicodeStatus = 0x0000 ;\n WRITE_TO_TARGET_FROM_U ( args , offsets , source , target , targetLimit , targetByteUnit , err ) ;\n if ( U_FAILURE ( * err ) ) {\n break ;\n }\n }\n sourceChar = * source ++ ;\n tempContextFromUnicode = converterData -> contextCharFromUnicode ;\n targetByteUnit = missingCharMarker ;\n if ( sourceChar <= ASCII_END ) {\n args -> converter -> fromUnicodeStatus = sourceChar ;\n WRITE_TO_TARGET_FROM_U ( args , offsets , source , target , targetLimit , sourceChar , err ) ;\n if ( U_FAILURE ( * err ) ) {\n break ;\n }\n continue ;\n }\n switch ( sourceChar ) {\n case ZWNJ : if ( converterData -> contextCharFromUnicode ) {\n converterData -> contextCharFromUnicode = 0x00 ;\n targetByteUnit = ISCII_HALANT ;\n }\n else {\n converterData -> contextCharFromUnicode = 0x00 ;\n continue ;\n }\n break ;\n case ZWJ : if ( converterData -> contextCharFromUnicode ) {\n targetByteUnit = ISCII_NUKTA ;\n }\n else {\n targetByteUnit = ISCII_INV ;\n }\n converterData -> contextCharFromUnicode = 0x00 ;\n break ;\n default : if ( ( uint16_t ) ( INDIC_BLOCK_END - sourceChar ) <= INDIC_RANGE ) {\n if ( sourceChar != DANDA && sourceChar != DOUBLE_DANDA ) {\n range = ( uint16_t ) ( ( sourceChar - INDIC_BLOCK_BEGIN ) / DELTA ) ;\n newDelta = ( uint16_t ) ( range * DELTA ) ;\n if ( newDelta != converterData -> currentDeltaFromUnicode || converterData -> isFirstBuffer ) {\n converterData -> currentDeltaFromUnicode = newDelta ;\n converterData -> currentMaskFromUnicode = lookupInitialData [ range ] . maskEnum ;\n deltaChanged = TRUE ;\n converterData -> isFirstBuffer = FALSE ;\n }\n if ( converterData -> currentDeltaFromUnicode == PNJ_DELTA ) {\n if ( sourceChar == PNJ_TIPPI ) {\n sourceChar = PNJ_BINDI ;\n }\n else if ( sourceChar == PNJ_ADHAK ) {\n converterData -> contextCharFromUnicode = PNJ_ADHAK ;\n }\n }\n sourceChar -= converterData -> currentDeltaFromUnicode ;\n }\n targetByteUnit = fromUnicodeTable [ ( uint8_t ) sourceChar ] ;\n if ( ( validityTable [ ( uint8_t ) sourceChar ] & converterData -> currentMaskFromUnicode ) == 0 ) {\n if ( converterData -> currentDeltaFromUnicode != ( TELUGU_DELTA ) || sourceChar != VOCALLIC_RR ) {\n targetByteUnit = missingCharMarker ;\n }\n }\n if ( deltaChanged ) {\n uint32_t temp = 0 ;\n temp = ( uint16_t ) ( ATR << 8 ) ;\n temp += ( uint16_t ) ( ( uint8_t ) lookupInitialData [ range ] . isciiLang ) ;\n deltaChanged = FALSE ;\n WRITE_TO_TARGET_FROM_U ( args , offsets , source , target , targetLimit , temp , err ) ;\n if ( U_FAILURE ( * err ) ) {\n break ;\n }\n }\n if ( converterData -> currentDeltaFromUnicode == PNJ_DELTA && ( sourceChar + PNJ_DELTA ) == PNJ_ADHAK ) {\n continue ;\n }\n }\n converterData -> contextCharFromUnicode = 0x00 ;\n break ;\n }\n if ( converterData -> currentDeltaFromUnicode == PNJ_DELTA && tempContextFromUnicode == PNJ_ADHAK && isPNJConsonant ( ( sourceChar + PNJ_DELTA ) ) ) {\n converterData -> contextCharFromUnicode = 0x0000 ;\n targetByteUnit = targetByteUnit << 16 | ISCII_HALANT << 8 | targetByteUnit ;\n WRITE_TO_TARGET_FROM_U ( args , offsets , source , target , targetLimit , targetByteUnit , err ) ;\n if ( U_FAILURE ( * err ) ) {\n break ;\n }\n }\n else if ( targetByteUnit != missingCharMarker ) {\n if ( targetByteUnit == ISCII_HALANT ) {\n converterData -> contextCharFromUnicode = ( UChar ) targetByteUnit ;\n }\n WRITE_TO_TARGET_FROM_U ( args , offsets , source , target , targetLimit , targetByteUnit , err ) ;\n if ( U_FAILURE ( * err ) ) {\n break ;\n }\n }\n else {\n if ( U16_IS_SURROGATE ( sourceChar ) ) {\n if ( U16_IS_SURROGATE_LEAD ( sourceChar ) ) {\n getTrail : if ( source < sourceLimit ) {\n UChar trail = ( * source ) ;\n if ( U16_IS_TRAIL ( trail ) ) {\n source ++ ;\n sourceChar = U16_GET_SUPPLEMENTARY ( sourceChar , trail ) ;\n * err = U_INVALID_CHAR_FOUND ;\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n else {\n * err = U_ZERO_ERROR ;\n }\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n else {\n * err = U_INVALID_CHAR_FOUND ;\n }\n args -> converter -> fromUChar32 = sourceChar ;\n break ;\n }\n }\n args -> source = source ;\n args -> target = ( char * ) target ;\n }"}
{"idx": 5526, "target": 0, "func": "static apr_status_t modsecurity_process_phase_response_headers ( modsec_rec * msr ) {\n apr_time_t time_before ;\n apr_status_t rc = 0 ;\n if ( msr -> allow_scope == ACTION_ALLOW ) {\n if ( msr -> txcfg -> debuglog_level >= 4 ) {\n msr_log ( msr , 4 , \"Skipping phase RESPONSE_HEADERS (allow used).\" ) ;\n }\n return 0 ;\n }\n else {\n if ( msr -> txcfg -> debuglog_level >= 4 ) {\n msr_log ( msr , 4 , \"Starting phase RESPONSE_HEADERS.\" ) ;\n }\n }\n time_before = apr_time_now ( ) ;\n if ( msr -> txcfg -> ruleset != NULL ) {\n rc = msre_ruleset_process_phase ( msr -> txcfg -> ruleset , msr ) ;\n }\n msr -> time_phase3 = apr_time_now ( ) - time_before ;\n return rc ;\n }"}
{"idx": 5527, "target": 0, "func": "gpg_err_code_t _gcry_ecc_ecdsa_sign ( gcry_mpi_t input , ECC_secret_key * skey , gcry_mpi_t r , gcry_mpi_t s , int flags , int hashalgo ) {\n gpg_err_code_t rc = 0 ;\n int extraloops = 0 ;\n gcry_mpi_t k , dr , sum , k_1 , x ;\n mpi_point_struct I ;\n gcry_mpi_t hash ;\n const void * abuf ;\n unsigned int abits , qbits ;\n mpi_ec_t ctx ;\n gcry_mpi_t b ;\n gcry_mpi_t bi ;\n if ( DBG_CIPHER ) log_mpidump ( \"ecdsa sign hash \" , input ) ;\n qbits = mpi_get_nbits ( skey -> E . n ) ;\n rc = _gcry_dsa_normalize_hash ( input , & hash , qbits ) ;\n if ( rc ) return rc ;\n b = mpi_snew ( qbits ) ;\n bi = mpi_snew ( qbits ) ;\n do {\n _gcry_mpi_randomize ( b , qbits , GCRY_WEAK_RANDOM ) ;\n mpi_mod ( b , b , skey -> E . n ) ;\n }\n while ( ! mpi_invm ( bi , b , skey -> E . n ) ) ;\n k = NULL ;\n dr = mpi_alloc ( 0 ) ;\n sum = mpi_alloc ( 0 ) ;\n k_1 = mpi_alloc ( 0 ) ;\n x = mpi_alloc ( 0 ) ;\n point_init ( & I ) ;\n ctx = _gcry_mpi_ec_p_internal_new ( skey -> E . model , skey -> E . dialect , 0 , skey -> E . p , skey -> E . a , skey -> E . b ) ;\n do {\n do {\n mpi_free ( k ) ;\n k = NULL ;\n if ( ( flags & PUBKEY_FLAG_RFC6979 ) && hashalgo ) {\n if ( ! mpi_is_opaque ( input ) ) {\n rc = GPG_ERR_CONFLICT ;\n goto leave ;\n }\n abuf = mpi_get_opaque ( input , & abits ) ;\n rc = _gcry_dsa_gen_rfc6979_k ( & k , skey -> E . n , skey -> d , abuf , ( abits + 7 ) / 8 , hashalgo , extraloops ) ;\n if ( rc ) goto leave ;\n extraloops ++ ;\n }\n else k = _gcry_dsa_gen_k ( skey -> E . n , GCRY_STRONG_RANDOM ) ;\n _gcry_mpi_ec_mul_point ( & I , k , & skey -> E . G , ctx ) ;\n if ( _gcry_mpi_ec_get_affine ( x , NULL , & I , ctx ) ) {\n if ( DBG_CIPHER ) log_debug ( \"ecc sign: Failed to get affine coordinates\\n\" ) ;\n rc = GPG_ERR_BAD_SIGNATURE ;\n goto leave ;\n }\n mpi_mod ( r , x , skey -> E . n ) ;\n }\n while ( ! mpi_cmp_ui ( r , 0 ) ) ;\n mpi_mulm ( dr , b , skey -> d , skey -> E . n ) ;\n mpi_mulm ( dr , dr , r , skey -> E . n ) ;\n mpi_mulm ( sum , b , hash , skey -> E . n ) ;\n mpi_addm ( sum , sum , dr , skey -> E . n ) ;\n mpi_mulm ( sum , bi , sum , skey -> E . n ) ;\n mpi_invm ( k_1 , k , skey -> E . n ) ;\n mpi_mulm ( s , k_1 , sum , skey -> E . n ) ;\n }\n while ( ! mpi_cmp_ui ( s , 0 ) ) ;\n if ( DBG_CIPHER ) {\n log_mpidump ( \"ecdsa sign result r \" , r ) ;\n log_mpidump ( \"ecdsa sign result s \" , s ) ;\n }\n leave : mpi_free ( b ) ;\n mpi_free ( bi ) ;\n _gcry_mpi_ec_free ( ctx ) ;\n point_free ( & I ) ;\n mpi_free ( x ) ;\n mpi_free ( k_1 ) ;\n mpi_free ( sum ) ;\n mpi_free ( dr ) ;\n mpi_free ( k ) ;\n if ( hash != input ) mpi_free ( hash ) ;\n return rc ;\n }"}
{"idx": 5528, "target": 0, "func": "int udpv6_queue_rcv_skb ( struct sock * sk , struct sk_buff * skb ) {\n struct udp_sock * up = udp_sk ( sk ) ;\n int rc ;\n int is_udplite = IS_UDPLITE ( sk ) ;\n if ( ! xfrm6_policy_check ( sk , XFRM_POLICY_IN , skb ) ) goto drop ;\n if ( ( is_udplite & UDPLITE_RECV_CC ) && UDP_SKB_CB ( skb ) -> partial_cov ) {\n if ( up -> pcrlen == 0 ) {\n LIMIT_NETDEBUG ( KERN_WARNING \"UDPLITE6: partial coverage\" \" %d while full coverage %d requested\\n\" , UDP_SKB_CB ( skb ) -> cscov , skb -> len ) ;\n goto drop ;\n }\n if ( UDP_SKB_CB ( skb ) -> cscov < up -> pcrlen ) {\n LIMIT_NETDEBUG ( KERN_WARNING \"UDPLITE6: coverage %d \" \"too small, need min %d\\n\" , UDP_SKB_CB ( skb ) -> cscov , up -> pcrlen ) ;\n goto drop ;\n }\n }\n if ( sk -> sk_filter ) {\n if ( udp_lib_checksum_complete ( skb ) ) goto drop ;\n }\n if ( ( rc = ip_queue_rcv_skb ( sk , skb ) ) < 0 ) {\n if ( rc == - ENOMEM ) UDP6_INC_STATS_BH ( sock_net ( sk ) , UDP_MIB_RCVBUFERRORS , is_udplite ) ;\n goto drop_no_sk_drops_inc ;\n }\n return 0 ;\n drop : atomic_inc ( & sk -> sk_drops ) ;\n drop_no_sk_drops_inc : UDP6_INC_STATS_BH ( sock_net ( sk ) , UDP_MIB_INERRORS , is_udplite ) ;\n kfree_skb ( skb ) ;\n return - 1 ;\n }"}
{"idx": 5529, "target": 0, "func": "static void rawv6_close ( struct sock * sk , long timeout ) {\n if ( inet_sk ( sk ) -> inet_num == IPPROTO_RAW ) ip6_ra_control ( sk , - 1 ) ;\n ip6mr_sk_done ( sk ) ;\n sk_common_release ( sk ) ;\n }"}
{"idx": 5530, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , PaintInMainAndChildFrame ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n GURL a_url ( embedded_test_server ( ) -> GetURL ( \"/page_load_metrics/main_frame_with_iframe.html\" ) ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : FIRST_LAYOUT ) ;\n waiter -> AddPageExpectation ( TimingField : : LOAD_EVENT ) ;\n waiter -> AddPageExpectation ( TimingField : : FIRST_PAINT ) ;\n waiter -> AddPageExpectation ( TimingField : : FIRST_CONTENTFUL_PAINT ) ;\n waiter -> AddSubFrameExpectation ( TimingField : : FIRST_PAINT ) ;\n waiter -> AddSubFrameExpectation ( TimingField : : FIRST_CONTENTFUL_PAINT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , a_url ) ;\n waiter -> Wait ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramFirstLayout , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramLoad , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramFirstPaint , 1 ) ;\n }"}
{"idx": 5531, "target": 0, "func": "TSReturnCode TSHttpTxnCacheLookupUrlGet ( TSHttpTxn txnp , TSMBuffer bufp , TSMLoc obj ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_url_handle ( obj ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n URL u , * l_url ;\n u . m_heap = ( ( HdrHeapSDKHandle * ) bufp ) -> m_heap ;\n u . m_url_impl = ( URLImpl * ) obj ;\n if ( ! u . valid ( ) ) {\n return TS_ERROR ;\n }\n l_url = sm -> t_state . cache_info . lookup_url ;\n if ( l_url && l_url -> valid ( ) ) {\n u . copy ( l_url ) ;\n return TS_SUCCESS ;\n }\n return TS_ERROR ;\n }"}
{"idx": 5532, "target": 0, "func": "static void timerblock_reset ( TimerBlock * tb ) {\n tb -> count = 0 ;\n tb -> load = 0 ;\n tb -> control = 0 ;\n tb -> status = 0 ;\n tb -> tick = 0 ;\n if ( tb -> timer ) {\n qemu_del_timer ( tb -> timer ) ;\n }\n }"}
{"idx": 5533, "target": 0, "func": "bool RegisterAccountChooserDialogAndroid ( JNIEnv * env ) {\n return RegisterNativesImpl ( env ) ;\n }"}
{"idx": 5534, "target": 0, "func": "inline HTTPStatus http_hdr_status_get ( HTTPHdrImpl * hh ) {\n ink_assert ( hh -> m_polarity == HTTP_TYPE_RESPONSE ) ;\n return ( HTTPStatus ) hh -> u . resp . m_status ;\n }"}
{"idx": 5535, "target": 0, "func": "static uint16_t pfkey_satype2proto ( uint8_t satype ) {\n switch ( satype ) {\n case SADB_SATYPE_UNSPEC : return IPSEC_PROTO_ANY ;\n case SADB_SATYPE_AH : return IPPROTO_AH ;\n case SADB_SATYPE_ESP : return IPPROTO_ESP ;\n case SADB_X_SATYPE_IPCOMP : return IPPROTO_COMP ;\n break ;\n default : return 0 ;\n }\n }"}
{"idx": 5536, "target": 0, "func": "static guint16 de_tp_epc_gnss_tod_msec ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n curr_offset = offset ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_dtap_epc_gnss_tod_msec , tvb , ( curr_offset << 3 ) + 2 , 22 , ENC_BIG_ENDIAN ) ;\n curr_offset += 3 ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 5537, "target": 0, "func": "static int rtp_packetize_mp4a ( sout_stream_id_sys_t * id , block_t * in ) {\n int i_max = rtp_mtu ( id ) - 4 ;\n int i_count = ( in -> i_buffer + i_max - 1 ) / i_max ;\n uint8_t * p_data = in -> p_buffer ;\n int i_data = in -> i_buffer ;\n int i ;\n for ( i = 0 ;\n i < i_count ;\n i ++ ) {\n int i_payload = __MIN ( i_max , i_data ) ;\n block_t * out = block_Alloc ( 16 + i_payload ) ;\n rtp_packetize_common ( id , out , ( ( i == i_count - 1 ) ? 1 : 0 ) , ( in -> i_pts > VLC_TS_INVALID ? in -> i_pts : in -> i_dts ) ) ;\n out -> p_buffer [ 12 ] = 0 ;\n out -> p_buffer [ 13 ] = 2 * 8 ;\n SetWBE ( out -> p_buffer + 14 , ( in -> i_buffer << 3 ) | 0 ) ;\n memcpy ( & out -> p_buffer [ 16 ] , p_data , i_payload ) ;\n out -> i_dts = in -> i_dts + i * in -> i_length / i_count ;\n out -> i_length = in -> i_length / i_count ;\n rtp_packetize_send ( id , out ) ;\n p_data += i_payload ;\n i_data -= i_payload ;\n }\n block_Release ( in ) ;\n return VLC_SUCCESS ;\n }"}
{"idx": 5538, "target": 0, "func": "static inline guint64 get_uint64_value ( proto_tree * tree , tvbuff_t * tvb , gint offset , guint length , const guint encoding ) {\n guint64 value ;\n gboolean length_error ;\n switch ( length ) {\n case 1 : value = tvb_get_guint8 ( tvb , offset ) ;\n break ;\n case 2 : value = ( encoding & ENC_LITTLE_ENDIAN ) ? tvb_get_letohs ( tvb , offset ) : tvb_get_ntohs ( tvb , offset ) ;\n break ;\n case 3 : value = ( encoding & ENC_LITTLE_ENDIAN ) ? tvb_get_letoh24 ( tvb , offset ) : tvb_get_ntoh24 ( tvb , offset ) ;\n break ;\n case 4 : value = ( encoding & ENC_LITTLE_ENDIAN ) ? tvb_get_letohl ( tvb , offset ) : tvb_get_ntohl ( tvb , offset ) ;\n break ;\n case 5 : value = ( encoding & ENC_LITTLE_ENDIAN ) ? tvb_get_letoh40 ( tvb , offset ) : tvb_get_ntoh40 ( tvb , offset ) ;\n break ;\n case 6 : value = ( encoding & ENC_LITTLE_ENDIAN ) ? tvb_get_letoh48 ( tvb , offset ) : tvb_get_ntoh48 ( tvb , offset ) ;\n break ;\n case 7 : value = ( encoding & ENC_LITTLE_ENDIAN ) ? tvb_get_letoh56 ( tvb , offset ) : tvb_get_ntoh56 ( tvb , offset ) ;\n break ;\n case 8 : value = ( encoding & ENC_LITTLE_ENDIAN ) ? tvb_get_letoh64 ( tvb , offset ) : tvb_get_ntoh64 ( tvb , offset ) ;\n break ;\n default : if ( length < 1 ) {\n length_error = TRUE ;\n value = 0 ;\n }\n else {\n length_error = FALSE ;\n value = ( encoding & ENC_LITTLE_ENDIAN ) ? tvb_get_letoh64 ( tvb , offset ) : tvb_get_ntoh64 ( tvb , offset ) ;\n }\n report_type_length_mismatch ( tree , \"an unsigned integer\" , length , length_error ) ;\n break ;\n }\n return value ;\n }"}
{"idx": 5539, "target": 0, "func": "static int show_log ( WriterContext * w , int section_ids , int section_id , int log_level ) {\n int i ;\n pthread_mutex_lock ( & log_mutex ) ;\n if ( ! log_buffer_size ) {\n pthread_mutex_unlock ( & log_mutex ) ;\n return 0 ;\n }\n writer_print_section_header ( w , section_ids ) ;\n for ( i = 0 ;\n i < log_buffer_size ;\n i ++ ) {\n if ( log_buffer [ i ] . log_level <= log_level ) {\n writer_print_section_header ( w , section_id ) ;\n print_str ( \"context\" , log_buffer [ i ] . context_name ) ;\n print_int ( \"level\" , log_buffer [ i ] . log_level ) ;\n print_int ( \"category\" , log_buffer [ i ] . category ) ;\n if ( log_buffer [ i ] . parent_name ) {\n print_str ( \"parent_context\" , log_buffer [ i ] . parent_name ) ;\n print_int ( \"parent_category\" , log_buffer [ i ] . parent_category ) ;\n }\n else {\n print_str_opt ( \"parent_context\" , \"N/A\" ) ;\n print_str_opt ( \"parent_category\" , \"N/A\" ) ;\n }\n print_str ( \"message\" , log_buffer [ i ] . log_message ) ;\n writer_print_section_footer ( w ) ;\n }\n }\n clear_log ( 0 ) ;\n pthread_mutex_unlock ( & log_mutex ) ;\n writer_print_section_footer ( w ) ;\n return 0 ;\n }"}
{"idx": 5540, "target": 0, "func": "static int localmom ( void ) {\n static int have_addr = 0 ;\n static struct in_addr hostaddr ;\n struct addrinfo * addr_info ;\n int i ;\n int sock ;\n struct sockaddr_in remote ;\n struct linger ltime ;\n if ( local_conn >= 0 ) {\n return ( local_conn ) ;\n }\n memset ( & remote , 0 , sizeof ( remote ) ) ;\n if ( have_addr == 0 ) {\n if ( pbs_getaddrinfo ( \"localhost\" , NULL , & addr_info ) != 0 ) {\n TM_DBPRT ( ( \"tm_init: localhost not found\\n\" ) ) return ( - 1 ) ;\n }\n hostaddr = ( ( struct sockaddr_in * ) addr_info -> ai_addr ) -> sin_addr ;\n have_addr = 1 ;\n }\n for ( i = 0 ;\n i < 5 ;\n i ++ ) {\n sock = socket ( AF_INET , SOCK_STREAM , 0 ) ;\n if ( sock < 0 ) {\n return ( - 1 ) ;\n }\n # ifndef HAVE_POLL if ( sock >= FD_SETSIZE ) {\n close ( sock ) ;\n return ( - 1 ) ;\n }\n # endif ltime . l_onoff = 1 ;\n ltime . l_linger = 5 ;\n setsockopt ( sock , SOL_SOCKET , SO_LINGER , & ltime , sizeof ( ltime ) ) ;\n remote . sin_addr = hostaddr ;\n remote . sin_port = htons ( ( unsigned short ) tm_momport ) ;\n remote . sin_family = AF_INET ;\n if ( connect ( sock , ( struct sockaddr * ) & remote , sizeof ( remote ) ) < 0 ) {\n switch ( errno ) {\n case EINTR : case EADDRINUSE : case ETIMEDOUT : case ECONNREFUSED : close ( sock ) ;\n sleep ( 1 ) ;\n continue ;\n break ;\n default : close ( sock ) ;\n return ( - 1 ) ;\n break ;\n }\n }\n else {\n local_conn = sock ;\n break ;\n }\n }\n return ( local_conn ) ;\n }"}
{"idx": 5541, "target": 0, "func": "static void cmd_network_add_modify ( const char * data , gboolean add ) {\n GHashTable * optlist ;\n char * name , * value ;\n void * free_arg ;\n IRC_CHATNET_REC * rec ;\n if ( ! cmd_get_params ( data , & free_arg , 1 | PARAM_FLAG_OPTIONS , \"network add\" , & optlist , & name ) ) return ;\n if ( * name == '\\0' ) cmd_param_error ( CMDERR_NOT_ENOUGH_PARAMS ) ;\n rec = ircnet_find ( name ) ;\n if ( rec == NULL ) {\n if ( add == FALSE ) {\n printformat ( NULL , NULL , MSGLEVEL_CLIENTNOTICE , IRCTXT_NETWORK_NOT_FOUND , name ) ;\n cmd_params_free ( free_arg ) ;\n return ;\n }\n rec = g_new0 ( IRC_CHATNET_REC , 1 ) ;\n rec -> name = g_strdup ( name ) ;\n }\n else {\n if ( g_hash_table_lookup ( optlist , \"nick\" ) ) g_free_and_null ( rec -> nick ) ;\n if ( g_hash_table_lookup ( optlist , \"alternate_nick\" ) ) g_free_and_null ( rec -> alternate_nick ) ;\n if ( g_hash_table_lookup ( optlist , \"user\" ) ) g_free_and_null ( rec -> username ) ;\n if ( g_hash_table_lookup ( optlist , \"realname\" ) ) g_free_and_null ( rec -> realname ) ;\n if ( g_hash_table_lookup ( optlist , \"host\" ) ) {\n g_free_and_null ( rec -> own_host ) ;\n rec -> own_ip4 = rec -> own_ip6 = NULL ;\n }\n if ( g_hash_table_lookup ( optlist , \"usermode\" ) ) g_free_and_null ( rec -> usermode ) ;\n if ( g_hash_table_lookup ( optlist , \"autosendcmd\" ) ) g_free_and_null ( rec -> autosendcmd ) ;\n if ( g_hash_table_lookup ( optlist , \"sasl_mechanism\" ) ) g_free_and_null ( rec -> sasl_mechanism ) ;\n if ( g_hash_table_lookup ( optlist , \"sasl_username\" ) ) g_free_and_null ( rec -> sasl_username ) ;\n if ( g_hash_table_lookup ( optlist , \"sasl_password\" ) ) g_free_and_null ( rec -> sasl_password ) ;\n }\n value = g_hash_table_lookup ( optlist , \"kicks\" ) ;\n if ( value != NULL ) rec -> max_kicks = atoi ( value ) ;\n value = g_hash_table_lookup ( optlist , \"msgs\" ) ;\n if ( value != NULL ) rec -> max_msgs = atoi ( value ) ;\n value = g_hash_table_lookup ( optlist , \"modes\" ) ;\n if ( value != NULL ) rec -> max_modes = atoi ( value ) ;\n value = g_hash_table_lookup ( optlist , \"whois\" ) ;\n if ( value != NULL ) rec -> max_whois = atoi ( value ) ;\n value = g_hash_table_lookup ( optlist , \"cmdspeed\" ) ;\n if ( value != NULL ) rec -> cmd_queue_speed = atoi ( value ) ;\n value = g_hash_table_lookup ( optlist , \"cmdmax\" ) ;\n if ( value != NULL ) rec -> max_cmds_at_once = atoi ( value ) ;\n value = g_hash_table_lookup ( optlist , \"querychans\" ) ;\n if ( value != NULL ) rec -> max_query_chans = atoi ( value ) ;\n value = g_hash_table_lookup ( optlist , \"nick\" ) ;\n if ( value != NULL && * value != '\\0' ) rec -> nick = g_strdup ( value ) ;\n value = g_hash_table_lookup ( optlist , \"alternate_nick\" ) ;\n if ( value != NULL && * value != '\\0' ) rec -> alternate_nick = g_strdup ( value ) ;\n value = g_hash_table_lookup ( optlist , \"user\" ) ;\n if ( value != NULL && * value != '\\0' ) rec -> username = g_strdup ( value ) ;\n value = g_hash_table_lookup ( optlist , \"realname\" ) ;\n if ( value != NULL && * value != '\\0' ) rec -> realname = g_strdup ( value ) ;\n value = g_hash_table_lookup ( optlist , \"host\" ) ;\n if ( value != NULL && * value != '\\0' ) {\n rec -> own_host = g_strdup ( value ) ;\n rec -> own_ip4 = rec -> own_ip6 = NULL ;\n }\n value = g_hash_table_lookup ( optlist , \"usermode\" ) ;\n if ( value != NULL && * value != '\\0' ) rec -> usermode = g_strdup ( value ) ;\n value = g_hash_table_lookup ( optlist , \"autosendcmd\" ) ;\n if ( value != NULL && * value != '\\0' ) rec -> autosendcmd = g_strdup ( value ) ;\n value = g_hash_table_lookup ( optlist , \"sasl_mechanism\" ) ;\n if ( value != NULL ) rec -> sasl_mechanism = * value != '\\0' ? g_strdup ( value ) : NULL ;\n value = g_hash_table_lookup ( optlist , \"sasl_username\" ) ;\n if ( value != NULL ) rec -> sasl_username = * value != '\\0' ? g_strdup ( value ) : NULL ;\n value = g_hash_table_lookup ( optlist , \"sasl_password\" ) ;\n if ( value != NULL ) rec -> sasl_password = * value != '\\0' ? g_strdup ( value ) : NULL ;\n ircnet_create ( rec ) ;\n printformat ( NULL , NULL , MSGLEVEL_CLIENTNOTICE , IRCTXT_NETWORK_ADDED , name ) ;\n cmd_params_free ( free_arg ) ;\n }"}
{"idx": 5542, "target": 0, "func": "void proto_register_mswsp ( void ) {\n expert_module_t * expert_mswsp = NULL ;\n static hf_register_info hf [ ] = {\n {\n & hf_mswsp_hdr , {\n \"Header\" , \"mswsp.hdr\" , FT_NONE , BASE_NONE , NULL , 0 , \"Message header\" , HFILL }\n }\n , {\n & hf_mswsp_hdr_msg , {\n \"Msg id\" , \"mswsp.hdr.id\" , FT_UINT32 , BASE_HEX , VALS ( msg_ids ) , 0 , \"Message id\" , HFILL }\n }\n , {\n & hf_mswsp_hdr_status , {\n \"Status\" , \"mswsp.hdr.status\" , FT_UINT32 , BASE_HEX , VALS ( dcom_hresult_vals ) , 0 , \"Message Status\" , HFILL }\n }\n , {\n & hf_mswsp_hdr_checksum , {\n \"checksum\" , \"mswsp.hdr.checksum\" , FT_UINT32 , BASE_HEX , NULL , 0 , \"Message Checksum\" , HFILL }\n }\n , {\n & hf_mswsp_hdr_reserved , {\n \"Reserved\" , \"mswsp.hdr.reserved\" , FT_UINT32 , BASE_HEX , NULL , 0 , \"Reserved bytes\" , HFILL }\n }\n , {\n & hf_mswsp_msg , {\n \"msg\" , \"mswsp.msg\" , FT_NONE , BASE_NONE , NULL , 0 , \"Message\" , HFILL }\n }\n , {\n & hf_mswsp_msg_Connect_Version , {\n \"Version\" , \"mswsp.Connect.version\" , FT_UINT32 , BASE_HEX , VALS ( version_vals ) , 0 , \"OS Version\" , HFILL }\n }\n , {\n & hf_mswsp_msg_ConnectIn_ClientIsRemote , {\n \"Remote\" , \"mswsp.ConnectIn.isRemote\" , FT_BOOLEAN , BASE_HEX , NULL , 0 , \"Client is remote\" , HFILL }\n }\n , {\n & hf_mswsp_msg_ConnectIn_Blob1 , {\n \"Size\" , \"mswsp.ConnectIn.propset.size\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Size of PropSet fields\" , HFILL }\n }\n , {\n & hf_mswsp_msg_ConnectIn_MachineName , {\n \"Remote machine\" , \"mswsp.ConnectIn.machine\" , FT_STRINGZ , BASE_NONE , NULL , 0 , \"Name of remote machine\" , HFILL }\n }\n , {\n & hf_mswsp_msg_ConnectIn_UserName , {\n \"User\" , \"mswsp.ConnectIn.user\" , FT_STRINGZ , BASE_NONE , NULL , 0 , \"Name of remote user\" , HFILL }\n }\n , {\n & hf_mswsp_msg_ConnectIn_PropSets_num , {\n \"Num\" , \"mswsp.ConnectIn.propset.num\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Number of Property Sets\" , HFILL }\n }\n , {\n & hf_mswsp_bool_options , {\n \"uBooleanOptions\" , \"mswsp.CPMCreateQuery.RowSetProperties.uBooleanOptions\" , FT_UINT32 , BASE_HEX , NULL , 0 , \"Boolean options\" , HFILL }\n }\n , {\n & hf_mswsp_bool_options_cursor , {\n \"Cursor\" , \"mswsp.CPMCreateQuery.RowSetProperties.uBooleanOptions\" , FT_UINT32 , BASE_HEX , VALS ( cursor_vals ) , 0x0000000007 , \"Cursor Type\" , HFILL }\n }\n , {\n & hf_mswsp_bool_options_async , {\n \"eAsynchronous\" , \"mswsp.CPMCreateQuery.RowSetProperties.uBooleanOptions.eAsyncronous\" , FT_BOOLEAN , 32 , NULL , eAsynchronous , \"The client will not wait for execution completion\" , HFILL }\n }\n , {\n & hf_mswsp_bool_options_firstrows , {\n \"eFirstRows\" , \"mswsp.CPMCreateQuery.RowSetProperties.uBooleanOptions.eFirstRows\" , FT_BOOLEAN , 32 , NULL , eFirstRows , \"Return the first rows encountered, not the best matches.\" , HFILL }\n }\n , {\n & hf_mswsp_bool_options_holdrows , {\n \"eHoldRows\" , \"mswsp.CPMCreateQuery.RowSetProperties.uBooleanOptions.eHoldRows\" , FT_BOOLEAN , 32 , NULL , eHoldRows , \"The server MUST NOT discard rows until the client is done with a query.\" , HFILL }\n }\n , {\n & hf_mswsp_bool_options_chaptered , {\n \"eChaptered\" , \"mswsp.CPMCreateQuery.RowSetProperties.uBooleanOptions.eChaptered\" , FT_BOOLEAN , 32 , NULL , eChaptered , \"The rowset supports chapters.\" , HFILL }\n }\n , {\n & hf_mswsp_bool_options_useci , {\n \"eUseCI\" , \"mswsp.CPMCreateQuery.RowSetProperties.uBooleanOptions.eUseCI\" , FT_BOOLEAN , 32 , NULL , eUseCI , \"Use the inverted index to evaluate content restrictions even if it is out of date.\" , HFILL }\n }\n , {\n & hf_mswsp_bool_options_defertrim , {\n \"eDeferTrimming\" , \"mswsp.CPMCreateQuery.RowSetProperties.uBooleanOptions.eDeferTrimming\" , FT_BOOLEAN , 32 , NULL , eDeferTrimming , \"Defer Non-indexed trimming operations like scoping or security checking which can be expensive.\" , HFILL }\n }\n , {\n & hf_mswsp_bool_options_rowsetevents , {\n \"eEnableRowsetEvents\" , \"mswsp.RowSetProperties.CPMCreateQuery.uBooleanOptions.eEnableRowsetEvents\" , FT_BOOLEAN , 32 , NULL , eEnableRowsetEvents , \"Enables storage of rowset events on the server side.\" , HFILL }\n }\n , {\n & hf_mswsp_bool_options_dontcomputeexpensive , {\n \"eDoNotComputeExpensiveProps\" , \"mswsp.CPMCreateQuery.RowSetProperties.uBooleanOptions.eDoNotComputeExpensiveProps\" , FT_BOOLEAN , 32 , NULL , eDoNotComputeExpensiveProps , \"Prevents computation of expensive properties.\" , HFILL }\n }\n , {\n & hf_mswsp_guid_time_low , {\n \"time-low\" , \"mswsp.guid.time_low\" , FT_UINT32 , BASE_HEX , NULL , 0 , \"time low value\" , HFILL }\n }\n , {\n & hf_mswsp_guid_time_mid , {\n \"time-mid\" , \"mswsp.guid.time_mid\" , FT_UINT16 , BASE_HEX , NULL , 0 , \"time mid value\" , HFILL }\n }\n , {\n & hf_mswsp_guid_time_high , {\n \"time-high\" , \"mswsp.guid.time_high\" , FT_UINT16 , BASE_HEX , NULL , 0 , \"time high value\" , HFILL }\n }\n , {\n & hf_mswsp_guid_time_clock_hi , {\n \"clock_seq_hi_and_reserved\" , \"mswsp.guid.time_clock_high\" , FT_UINT8 , BASE_HEX , NULL , 0 , \"time clock high value\" , HFILL }\n }\n , {\n & hf_mswsp_guid_time_clock_low , {\n \"clock_seq_low\" , \"mswsp.guid.time_clock_low\" , FT_UINT8 , BASE_HEX , NULL , 0 , \"time clock high low\" , HFILL }\n }\n , {\n & hf_mswsp_guid_node , {\n \"node\" , \"mswsp.guid.node\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_lcid , {\n \"lcid\" , \"mswsp.lcid\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_lcid_sortid , {\n \"Sort ID\" , \"mswsp.lcid.sortid\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_lcid_langid , {\n \"Language ID\" , \"mswsp.lcid.langid\" , FT_UINT16 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cscort_column , {\n \"column\" , \"mswsp.csort.column\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cscort_order , {\n \"order\" , \"mswsp.csort.order\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cscort_individual , {\n \"inidvidual\" , \"mswsp.csort.individual\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cscortset_count , {\n \"count\" , \"mswsp.csortset.count\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ctablecolumn_vtype , {\n \"vType\" , \"mswsp.ctablecolumn.vtype\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ctablecolumn_aggused , {\n \"AggreagateUsed\" , \"mswsp.ctablecolumn.aggused\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ctablecolumn_aggtype , {\n \"AggreagateType\" , \"mswsp.ctablecolumn.aggtype\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ctablecolumn_valused , {\n \"ValueUsed\" , \"mswsp.ctablecolumn.valused\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ctablecolumn_valoffset , {\n \"ValueOffset\" , \"mswsp.ctablecolumn.valused\" , FT_UINT16 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ctablecolumn_valsize , {\n \"ValueSize\" , \"mswsp.ctablecolumn.valsize\" , FT_UINT16 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ctablecolumn_statused , {\n \"StatusUsed\" , \"mswsp.ctablecolumn.statused\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ctablecolumn_statoffset , {\n \"StatusOffset\" , \"mswsp.ctablecolumn.statoffset\" , FT_UINT16 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ctablecolumn_lenused , {\n \"LengthUsed\" , \"mswsp.ctablecolumn.lenused\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ctablecolumn_lenoffset , {\n \"LengthOffset\" , \"mswsp.ctablecolumn.lenoffset\" , FT_UINT16 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cfullpropspec_kind , {\n \"ulKind\" , \"mswsp.cfullpropspec.kind\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cfullpropspec_propid , {\n \"propid\" , \"mswsp.cfullpropspec.propid\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cfullpropspec_propname , {\n \"propname\" , \"mswsp.cfullpropspec.propname\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cproprestrict_relop , {\n \"relop\" , \"mswsp.cproprestrict.relop\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ccoercerestrict_value , {\n \"value\" , \"mswsp.ccoercerestrict.value\" , FT_FLOAT , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ccontentrestrict_cc , {\n \"cc\" , \"mswsp.ccontentrestrict.cc\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ccontentrestrict_phrase , {\n \"phrase\" , \"mswsp.ccontentrestrict.phrase\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ccontentrestrict_method , {\n \"method\" , \"mswsp.ccontentrestrict.method\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_natlangrestrict_cc , {\n \"cc\" , \"mswsp.ccontentrestrict.cc\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_natlangrestrict_phrase , {\n \"phrase\" , \"mswsp.ccontentrestrict.phrase\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crestrict_ultype , {\n \"ulType\" , \"mswsp.crestrict.ultype\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crestrict_weight , {\n \"Weight\" , \"mswsp.crestrict.weight\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crestrictarray_count , {\n \"count\" , \"mswsp.crestrictarray.count\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crestrictarray_present , {\n \"present\" , \"mswsp.crestrictarray.present\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cnoderestrict_cnode , {\n \"Weight\" , \"mswsp.cnoderestrict.cnode\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cbasestorvariant_vtype , {\n \"vType\" , \"mswsp.cbasestorvariant.vtype\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cbasestorvariant_vvalue , {\n \"vValue\" , \"mswsp.cbasestorvariant.vvalue\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cbasestorvariant_vdata1 , {\n \"vData1\" , \"mswsp.cbasestorvariant.vdata1\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cbasestorvariant_vdata2 , {\n \"vData2\" , \"mswsp.cbasestorvariant.vdata2\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cbasestorvariant_num , {\n \"num\" , \"mswsp.cbasestorvariant.num\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cbasestorvariant_cdims , {\n \"cDims\" , \"mswsp.cbasestorvariant.cdims\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cbasestorvariant_ffeatures , {\n \"fFeatures\" , \"mswsp.cbasestorvariant.ffeatures\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cbasestorvariant_cbelements , {\n \"cbElements\" , \"mswsp.cbasestorvariant.cbelements\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cbasestorvariant_rgsabound , {\n \"Rgsabound\" , \"mswsp.cbasestorvariant.rgsabound\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cdbcolid_ekind , {\n \"eKind\" , \"mswsp.cdbcolid.ekind\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cdbcolid_ulid , {\n \"ulId\" , \"mswsp.cdbcolid.ulid\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cdbcolid_vstring , {\n \"vString\" , \"mswsp.cdbcolid.vstring\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cdbprop_id , {\n \"Id\" , \"mswsp.cdbprop.id\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cdbprop_options , {\n \"Options\" , \"mswsp.cdbprop.options\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cdbprop_status , {\n \"Status\" , \"mswsp.cdbprop.status\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cdbpropset_cprops , {\n \"cProperties\" , \"mswsp.cdbpropset.cprops\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_rangeboundry_ultype , {\n \"ulType\" , \"mswsp.rangeboundry.ultype\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_rangeboundry_labelpresent , {\n \"labelPresent\" , \"mswsp.rangeboundry.labelpresent\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_mswsp_rangeboundry_cclabel , {\n \"ccLabel\" , \"mswsp.rangeboundry.cclabel\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_rangeboundry_label , {\n \"Label\" , \"mswsp.rangeboundry.label\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crangecategspec_crange , {\n \"cRange\" , \"mswsp.crangecategspec.crange\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ccategspec_type , {\n \"type\" , \"mswsp.ccategspec.type\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_caggregspec_type , {\n \"type\" , \"mswsp.caggregspec.type\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_caggregspec_ccalias , {\n \"ccAlias\" , \"mswsp.caggregspec.ccalias\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_caggregspec_alias , {\n \"Alias\" , \"mswsp.caggregspec.alias\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_caggregspec_idcolumn , {\n \"idColumn\" , \"mswsp.caggregspec.idcolumn\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_caggregset_count , {\n \"count\" , \"mswsp.caggregset.count\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_caggregsortkey_order , {\n \"order\" , \"mswsp.caggregsortkey.order\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_csortaggregset_count , {\n \"count\" , \"mswsp.csortaggregset.count\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cingroupsortaggregset_type , {\n \"Type\" , \"mswsp.cingroupsortaggregset.type\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cingroupsortaggregsets_count , {\n \"count\" , \"mswsp.cingroupsortaggregsets.count\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_categorizationspec_cmaxres , {\n \"cMaxResults\" , \"mswsp.categorizationspec.cmaxres\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crowsetprops_ulmaxopenrows , {\n \"ulMaxOpenRows (ignored)\" , \"mswsp.crowsetprops.ulmaxopenrows\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crowsetprops_ulmemusage , {\n \"ulMemUsage (ignored)\" , \"mswsp.crowsetprops.ulmemusage\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crowsetprops_cmaxresults , {\n \"cMaxResults\" , \"mswsp.crowsetprops.cmaxresults\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crowsetprops_ccmdtimeout , {\n \"cCmdTimeout\" , \"mswsp.crowsetprops.ccmdtimeout\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cpidmapper_count , {\n \"count\" , \"mswsp.cpidmapper.count\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ccolumngroup_count , {\n \"count\" , \"mswsp.ccolumngroup.count\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ccolumngroup_grouppid , {\n \"groupPid\" , \"mswsp.ccolumngroup.grouppid\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ccolumngroup_pid , {\n \"pid\" , \"mswsp.ccolumngroup.pid\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ccolumngrouparray_count , {\n \"count\" , \"mswsp.ccolumngrouparray.count\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_int32array_value , {\n \"value\" , \"mswsp.int32array.value\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crowseeknext_cskip , {\n \"cskip\" , \"mswsp.crowseeknext.cskip\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crowseekat_bmkoffset , {\n \"bmkoffset\" , \"mswsp.crowseekat.bmkoffset\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crowseekat_skip , {\n \"skip\" , \"mswsp.crowseekat.skip\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crowseekat_hregion , {\n \"hregion\" , \"mswsp.crowseekat.hregion\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crowseekatratio_ulnumerator , {\n \"ulnumerator\" , \"mswsp.crowseekatratio.ulnumerator\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crowseekatratio_uldenominator , {\n \"uldenominator\" , \"mswsp.crowseekatratio.uldenominator\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crowseekatratio_hregion , {\n \"hregion\" , \"mswsp.crowseekatratio.hregion\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crowseekbybookmark_cbookmarks , {\n \"cbookmarks\" , \"mswsp.crowseekbybookmark.cbookmarks\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crowseekbybookmark_maxret , {\n \"maxret\" , \"mswsp.crowseekbybookmark.maxret\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crowvariantinfo_count64 , {\n \"count\" , \"mswsp.crowvariantinfo.count64\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_arrayvector_address64 , {\n \"address of array\" , \"mswsp.arrayvector.address64\" , FT_UINT64 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crowvariantinfo_count32 , {\n \"count\" , \"mswsp.crowvariantinfo.count32\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_arrayvector_address32 , {\n \"address of array\" , \"mswsp.arrayvector.address\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_rowvariant_item_address64 , {\n \"address\" , \"mswsp.rowvariant.item.address64\" , FT_UINT64 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_rowvariant_item_address32 , {\n \"address\" , \"mswsp.rowvariant.item.address32\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_rowvariant_item_value , {\n \"value\" , \"mswsp.rowvariant.item.value\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_rowvariant_vtype , {\n \"vtype\" , \"mswsp.rowvariant.vtype\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_rowvariant_reserved1 , {\n \"reserved1\" , \"mswsp.rowvariant.reserved1\" , FT_UINT16 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_rowvariant_reserved2 , {\n \"reserved2\" , \"mswsp.rowvariant.reserved2\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ctablecolumn_status , {\n \"status\" , \"mswsp.ctablecolumn.name\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ctablecolumn_length , {\n \"length\" , \"mswsp.ctablecolumn.length\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcreatequery_size , {\n \"size\" , \"mswsp.cpmcreatequery.size\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcreatequery_ccolumnsetpresent , {\n \"CColumnSetPresent\" , \"mswsp.cpmcreatequery.ccolumnsetpresent\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcreatequery_crestrictionpresent , {\n \"CRestrictionPresent\" , \"mswsp.cpmcreatequery.crestrictionpresent\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcreatequery_csortpresent , {\n \"CSortPresent\" , \"mswsp.cpmcreatequery.csortpresent\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcreatequery_ccategpresent , {\n \"CCategorizationSetPresent\" , \"mswsp.cpmcreatequery.ccategpresent\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcreatequery_ccateg_count , {\n \"count\" , \"mswsp.cpmcreatequery.ccateg.count\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcreatequery_trueseq , {\n \"TrueSequential\" , \"mswsp.cpmcreatequery.trueseq\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcreatequery_workid , {\n \"WorkId\" , \"mswsp.cpmcreatequery.trueseq\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcreatequery_cursors , {\n \"Cursors\" , \"mswsp.cpmcreatequery.cursors\" , FT_BYTES , SEP_SPACE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrows_hcursor , {\n \"hCursor\" , \"mswsp.msg.cpmgetrows.hcursor\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrows_rowstotransfer , {\n \"cRowsToTransfer\" , \"mswsp.msg.cpmgetrows.rowstotransfer\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrows_rowwidth , {\n \"cbRowWidth\" , \"mswsp.msg.cpmgetrows.rowswidth\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrows_cbseek , {\n \"cbSeek\" , \"mswsp.msg.cpmgetrows.cbseek\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrows_cbreserved , {\n \"cbReserved\" , \"mswsp.msg.cpmgetrows.cbreserved\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrows_cbreadbuffer , {\n \"cbReadBuffer\" , \"mswsp.msg.cpmgetrows.cbreadbuffer\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrows_ulclientbase , {\n \"ulClientBase\" , \"mswsp.msg.cpmgetrows.ulclientbase\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrows_fbwdfetch , {\n \"fBwdFetch\" , \"mswsp.msg.cpmgetrows.fbwdfetch\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrows_etype , {\n \"eType\" , \"mswsp.msg.cpmgetrows.etype\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrows_chapt , {\n \"chapt\" , \"mswsp.msg.cpmgetrows.chapt\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrows_crowsreturned , {\n \"cRowsReturned\" , \"mswsp.msg.cpmgetrows.crowsreturned\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmratiofinished_hcursor , {\n \"hCursor\" , \"mswsp.msg.cpmratiofinished_hcursor\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmratiofinished_fquick , {\n \"fQuick\" , \"mswsp.msg.cpmratiofinished_fquick\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmratiofinished_ulnumerator , {\n \"ulNumerator\" , \"mswsp.msg.cpmratiofinished_ulnumerator\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmratiofinished_uldenominator , {\n \"ulDenominator\" , \"mswsp.msg.cpmratiofinished_uldenominator\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmratiofinished_crows , {\n \"cRows\" , \"mswsp.msg.cpmratiofinished_crows\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmratiofinished_fnewrows , {\n \"fNewRows\" , \"mswsp.msg.cpmratiofinished_fnewrows\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcomparebmk_hcursor , {\n \"hCursor\" , \"mswsp.msg.cpmcomparebmk.hcursor\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcomparebmk_chapt , {\n \"chapt\" , \"mswsp.msg.cpmcomparebmk.chapt\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcomparebmk_bmkfirst , {\n \"bmkFirst\" , \"mswsp.msg.cpmcomparebmk.bmkfirst\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcomparebmk_bmksecond , {\n \"bmkSecond\" , \"mswsp.msg.cpmcomparebmk.bmksecond\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcomparebmk_dwcomparison , {\n \"dwComparison\" , \"mswsp.msg.cpmcomparebmk.dwcomparison\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetapproxpos_hcursor , {\n \"hCursor\" , \"mswsp.msg.cpmgetapproxpos.hcursor\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetapproxpos_chapt , {\n \"chapt\" , \"mswsp.msg.cpmgetapproxpos.chapt\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetapproxpos_bmk , {\n \"bmk\" , \"mswsp.msg.cpmgetapproxpos.bmk\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetapproxpos_numerator , {\n \"numerator\" , \"mswsp.msg.cpmgetapproxpos.numerator\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetapproxpos_denominator , {\n \"denominator\" , \"mswsp.msg.cpmgetapproxpos.denominator\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmsetbinding_hcursor , {\n \"hCursor\" , \"mswsp.msg.cpmsetbinding.hcursor\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmsetbinding_cbrow , {\n \"cBrow\" , \"mswsp.msg.cpmsetbinding.cbrow\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmsetbinding_desc , {\n \"cbBindingDesc\" , \"mswsp.msg.cpmsetbinding.desc\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmsetbinding_dummy , {\n \"dummy\" , \"mswsp.msg.cpmsetbinding.dummy\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmsetbinding_ccolumns , {\n \"cColumns\" , \"mswsp.msg.cpmsetbinding.ccolumns\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmsetbinding_acolumns , {\n \"aColumns\" , \"mswsp.msg.cpmsetbinding.acolumns\" , FT_BYTES , SEP_DOT , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmsendnotify_watchnotify , {\n \"watchNotify\" , \"mswsp.msg.cpmsendnotify.watchnotify\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetquerystatus_hcursor , {\n \"hCursor\" , \"mswsp.msg.cpmquerystatus.hcursor\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetquerystatus_qstatus , {\n \"QStatus\" , \"mswsp.msg.cpmquerystatus.qstatus\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcistate_cbstruct , {\n \"cbStruct\" , \"mswsp.msg.cpmcistate.cbstruct\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcistate_cwordlist , {\n \"cbWordList\" , \"mswsp.msg.cpmcistate.cbwordlist\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcistate_cpersistindex , {\n \"cbPersistentIndex\" , \"mswsp.msg.cpmcistate.cbpersistindex\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcistate_cqueries , {\n \"cQueries\" , \"mswsp.msg.cpmcistate.cqueries\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcistate_cfreshtest , {\n \"cFreshTest\" , \"mswsp.msg.cpmcistate.cfreshtest\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcistate_dwmergeprogress , {\n \"dwMergeProgress\" , \"mswsp.msg.cpmcistate.dwmergeprogress\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcistate_estate , {\n \"eState\" , \"mswsp.msg.cpmcistate.estate\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcistate_cfiltereddocs , {\n \"cFilteredDocuments\" , \"mswsp.msg.cpmcistate.cfiltereddocs\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcistate_ctotaldocs , {\n \"cTotalDocuments\" , \"mswsp.msg.cpmcistate.ctotaldocs\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcistate_cpendingscans , {\n \"cPendingScans\" , \"mswsp.msg.cpmcistate.cpendingscans\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcistate_dwindexsize , {\n \"dwIndexSize\" , \"mswsp.msg.cpmcistate.dwindexsize\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcistate_cuniquekeys , {\n \"cUniqueKeys\" , \"mswsp.msg.cpmcistate.cuniquekeys\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcistate_csecqdocuments , {\n \"cSecQDocuments\" , \"mswsp.msg.cpmcistate.csecqdocuments\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcistate_dwpropcachesize , {\n \"dwPropCacheSize\" , \"mswsp.msg.cpmcistate.dwpropcachesize\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmfetchvalue_wid , {\n \"wid\" , \"mswsp.msg.cpmfetchvalue.wid\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmfetchvalue_cbsofar , {\n \"cbSoFar\" , \"mswsp.msg.cpmfetchvalue.cbsofar\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmfetchvalue_cbpropspec , {\n \"cbPropSpec\" , \"mswsp.msg.cpmfetchvalue.cbpropspec\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmfetchvalue_cbchunk , {\n \"cbChunk\" , \"mswsp.msg.cpmfetchvalue.chunk\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmfetchvalue_cbvalue , {\n \"cbValue\" , \"mswsp.msg.cpmfetchvalue.cbvalue\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmfetchvalue_fmoreexists , {\n \"fMoreExists\" , \"mswsp.msg.cpmfetchvalue.fmoreexists\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmfetchvalue_fvalueexists , {\n \"fValueExists\" , \"mswsp.msg.cpmfetchvalue.fvalueexists\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmfetchvalue_vvalue , {\n \"vvalue\" , \"mswsp.msg.cpmfetchvalue.vvalue\" , FT_BYTES , SEP_SPACE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmquerystatusex_qstatus , {\n \"qStatus\" , \"mswsp.msg.cpmquerystatusex.qstatus\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmquerystatusex_hcursor , {\n \"hCursor\" , \"mswsp.msg.cpmquerystatusex.hcursor\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmquerystatusex_bmk , {\n \"bmk\" , \"mswsp.msg.cpmquerystatusex.bmk\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmquerystatusex_cfiltereddocs , {\n \"cFilteredDocuments\" , \"mswsp.msg.cpmquerystatusex.cfiltereddocs\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmquerystatusex_cdocstofilter , {\n \"cDocumentsToFilter\" , \"mswsp.msg.cpmquerystatusex.cdocstofilter\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmquerystatusex_dwratiodenom , {\n \"dwRatioFinishedDenomenator\" , \"mswsp.msg.cpmquerystatusex.dwratiodenom\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmquerystatusex_dwrationumer , {\n \"dwRatioFinishedNumerator\" , \"mswsp.msg.cpmquerystatusex.dwrationumer\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmquerystatusex_irowbmk , {\n \"iRowBmk\" , \"mswsp.msg.cpmquerystatusex.irowbmk\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmquerystatusex_crowstotal , {\n \"cRowsTotal\" , \"mswsp.msg.cpmquerystatusex.crowstotal\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmquerystatusex_maxrank , {\n \"maxRank\" , \"mswsp.msg.cpmquerystatusex.maxrank\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmquerystatusex_cresultsfound , {\n \"cResultsFound\" , \"mswsp.msg.cpmquerystatusex.cresultsfound\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmquerystatusex_whereid , {\n \"whereId\" , \"mswsp.msg.cpmquerystatusex.whereid\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmrestartposition_hcursor , {\n \"hCursor\" , \"mswsp.msg.cpmrestartposition.hcursor\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmrestartposition_chapt , {\n \"chapt\" , \"mswsp.msg.cpmrestartposition.chapt\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrowsetnotify_wid , {\n \"wid\" , \"mswsp.msg.cpmgetrowsetnotify.wid\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrowsetnotify_moreevents , {\n \"moreEvents\" , \"mswsp.msg.cpmgetrowsetnotify.moreevents\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrowsetnotify_eventtype , {\n \"eventType\" , \"mswsp.msg.cpmgetrowsetnotify.eventType\" , FT_UINT8 , BASE_DEC , NULL , 0xFE , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrowsetnotify_rowsetitemstate , {\n \"rowSetItemState\" , \"mswsp.msg.cpmgetrowsetnotify.rowsetitemstate\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrowsetnotify_changeditemstate , {\n \"changedItemState\" , \"mswsp.msg.cpmgetrowsetnotify.changeditemState\" , FT_UINT8 , BASE_DEC , NULL , 0 , 0 , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrowsetnotify_rowsetevent , {\n \"rowSetEvent\" , \"mswsp.msg.cpmgetrowsetnotify.rowsetevent\" , FT_UINT8 , BASE_DEC , NULL , 0 , 0 , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrowsetnotify_rowseteventdata1 , {\n \"rowSetEventdata1\" , \"mswsp.msg.cpmgetrowsetnotify.rowseteventdata1\" , FT_UINT64 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrowsetnotify_rowseteventdata2 , {\n \"rowSetEventdata2\" , \"mswsp.msg.cpmgetrowsetnotify.rowseteventdata2\" , FT_UINT64 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmfindindices_cwids , {\n \"cWids\" , \"mswsp.msg.cpmfindindices.cwids\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmfindindices_cdepthprev , {\n \"cDepthPrev\" , \"mswsp.msg.cpmfindindices.cdepthprev\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmfindindices_cdepthnext , {\n \"cDepthNext\" , \"mswsp.msg.cpmfindindices.cdepthnext\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmsetscopeprioritization_priority , {\n \"priority\" , \"mswsp.msg.cpmsetscopeprioritization.priority\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmsetscopeprioritization_eventfreq , {\n \"eventFrequency\" , \"mswsp.msg.cpmsetscopeprioritization.eventfreq\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmsetscopestatisics_dwindexitems , {\n \"dwIndexedItems\" , \"mswsp.msg.cpmsetscopestatistics.dwindexitems\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmsetscopestatisics_dwoutstandingadds , {\n \"dwOutstandingAdds\" , \"mswsp.msg.cpmsetscopestatistics.dwoutstandingadds\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmsetscopestatisics_dwoutstandingmodifies , {\n \"dwOutstandingModifies\" , \"mswsp.msg.cpmsetscopestatistics.dwoutstandingmodifies\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n }\n ;\n static gint * ett [ ] = {\n & ett_mswsp , & ett_mswsp_hdr , & ett_mswsp_msg , & ett_mswsp_pad , & ett_mswsp_property_restriction , & ett_CRestrictionArray , & ett_CBaseStorageVariant , & ett_CBaseStorageVariant_Vector , & ett_CBaseStorageVariant_Array , & ett_CDbColId , & ett_GUID , & ett_CDbProp , & ett_CDbPropSet , & ett_CDbPropSet_Array , & ett_CRestriction , & ett_CNodeRestriction , & ett_CPropertyRestriction , & ett_CCoercionRestriction , & ett_CContentRestriction , & ett_RANGEBOUNDARY , & ett_CRangeCategSpec , & ett_CCategSpec , & ett_CAggregSpec , & ett_CAggregSet , & ett_CCategorizationSpec , & ett_CAggregSortKey , & ett_CSortAggregSet , & ett_CInGroupSortAggregSet , & ett_CInGroupSortAggregSets , & ett_CRowsetProperties , & ett_CFullPropSpec , & ett_CPidMapper , & ett_CSort , & ett_CSortSet , & ett_CNatLanguageRestriction , & ett_CColumnGroup , & ett_CColumnGroupArray , & ett_LCID , & ett_CTableColumn , & ett_Array , & ett_SeekDescription , & ett_CRowsSeekNext , & ett_CRowsSeekAt , & ett_CRowsSeekAtRatio , & ett_CRowsSeekByBookmark , & ett_GetRowsRow , & ett_GetRowsColumn , & ett_CRowVariant , & ett_CRowVariant_Vector , & ett_mswsp_bool_options , & ett_mswsp_uin32_array , & ett_mswsp_msg_padding , & ett_mswsp_msg_creusewhere }\n ;\n static ei_register_info ei [ ] = {\n {\n & ei_mswsp_invalid_variant_type , {\n \"mswsp.invalid_variant_type\" , PI_PROTOCOL , PI_ERROR , \"Invalid variant type\" , EXPFILL }\n }\n , {\n & ei_missing_msg_context , {\n \"mswsp.msg.cpmgetrows.missing_msg_context\" , PI_SEQUENCE , PI_WARN , \"previous messages needed for context not captured\" , EXPFILL }\n }\n , {\n & ei_mswsp_msg_cpmsetbinding_ccolumns , {\n \"mswsp.msg.cpmsetbinding.ccolumns.invalude\" , PI_PROTOCOL , PI_WARN , \"Invalid number of cColumns for packet\" , EXPFILL }\n }\n }\n ;\n int i ;\n proto_mswsp = proto_register_protocol ( \"Windows Search Protocol\" , \"MS-WSP\" , \"mswsp\" ) ;\n proto_register_field_array ( proto_mswsp , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n expert_mswsp = expert_register_protocol ( proto_mswsp ) ;\n expert_register_field_array ( expert_mswsp , ei , array_length ( ei ) ) ;\n for ( i = 0 ;\n i < ( int ) array_length ( GuidPropertySet ) ;\n i ++ ) {\n guids_add_guid ( & GuidPropertySet [ i ] . guid , GuidPropertySet [ i ] . def ) ;\n }\n }"}
{"idx": 5543, "target": 0, "func": "static int dissect_h245_Mc_type ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_Mc_type , Mc_type_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 5544, "target": 0, "func": "static sf_count_t psf_get_filelen_fd ( int fd ) {\n # if ( SIZEOF_OFF_T == 4 && SIZEOF_SF_COUNT_T == 8 && HAVE_FSTAT64 ) struct stat64 statbuf ;\n if ( fstat64 ( fd , & statbuf ) == - 1 ) return ( sf_count_t ) - 1 ;\n return statbuf . st_size ;\n # else struct stat statbuf ;\n if ( fstat ( fd , & statbuf ) == - 1 ) return ( sf_count_t ) - 1 ;\n return statbuf . st_size ;\n # endif }"}
{"idx": 5545, "target": 0, "func": "static void simple_read_cb ( int fd , short event , void * arg ) {\n char buf [ 256 ] ;\n int len ;\n if ( arg == NULL ) return ;\n len = read ( fd , buf , sizeof ( buf ) ) ;\n if ( len ) {\n if ( ! called ) {\n if ( event_add ( arg , NULL ) == - 1 ) exit ( 1 ) ;\n }\n }\n else if ( called == 1 ) test_ok = 1 ;\n called ++ ;\n }"}
{"idx": 5546, "target": 0, "func": "int ExecCleanTargetListLength ( List * targetlist ) {\n int len = 0 ;\n ListCell * tl ;\n foreach ( tl , targetlist ) {\n TargetEntry * curTle = ( TargetEntry * ) lfirst ( tl ) ;\n Assert ( IsA ( curTle , TargetEntry ) ) ;\n if ( ! curTle -> resjunk ) len ++ ;\n }\n return len ;\n }"}
{"idx": 5547, "target": 0, "func": "static cmsBool Type_S15Fixed16_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) {\n cmsFloat64Number * Value = ( cmsFloat64Number * ) Ptr ;\n cmsUInt32Number i ;\n for ( i = 0 ;\n i < nItems ;\n i ++ ) {\n if ( ! _cmsWrite15Fixed16Number ( io , Value [ i ] ) ) return FALSE ;\n }\n return TRUE ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 5548, "target": 0, "func": "void record_proto_stats ( char * str ) {\n l_fp now ;\n u_long day ;\n if ( ! stats_control ) return ;\n get_systime ( & now ) ;\n filegen_setup ( & protostats , now . l_ui ) ;\n day = now . l_ui / 86400 + MJD_1900 ;\n now . l_ui %= 86400 ;\n if ( protostats . fp != NULL ) {\n fprintf ( protostats . fp , \"%lu %s %s\\n\" , day , ulfptoa ( & now , 3 ) , str ) ;\n fflush ( protostats . fp ) ;\n }\n }"}
{"idx": 5549, "target": 0, "func": "static guint32 dissect_netb_no_receive ( tvbuff_t * tvb , packet_info * pinfo _U_ , int offset , proto_tree * tree ) {\n netbios_no_receive_flags ( tvb , tree , offset + NB_FLAGS ) ;\n nb_data2 ( hf_netb_num_data_bytes_accepted , tvb , offset , tree ) ;\n nb_remote_session ( tvb , offset , tree ) ;\n nb_local_session ( tvb , offset , tree ) ;\n return 0 ;\n }"}
{"idx": 5550, "target": 0, "func": "static int rac_get_model256_sym ( RangeCoder * c , Model256 * m ) {\n int prob , prob2 , helper , val ;\n int start , end ;\n int ssym ;\n prob2 = c -> range ;\n c -> range >>= MODEL_SCALE ;\n helper = c -> low / c -> range ;\n ssym = helper >> MODEL256_SEC_SCALE ;\n val = m -> secondary [ ssym ] ;\n end = start = m -> secondary [ ssym + 1 ] + 1 ;\n while ( end > val + 1 ) {\n ssym = ( end + val ) >> 1 ;\n if ( m -> freqs [ ssym ] <= helper ) {\n end = start ;\n val = ssym ;\n }\n else {\n end = ( end + val ) >> 1 ;\n start = ssym ;\n }\n }\n prob = m -> freqs [ val ] * c -> range ;\n if ( val != 255 ) prob2 = m -> freqs [ val + 1 ] * c -> range ;\n c -> low -= prob ;\n c -> range = prob2 - prob ;\n if ( c -> range < RAC_BOTTOM ) rac_normalise ( c ) ;\n model256_update ( m , val ) ;\n return val ;\n }"}
{"idx": 5551, "target": 0, "func": "int _TIFFmemcmp ( const void * p1 , const void * p2 , tmsize_t c ) {\n return ( memcmp ( p1 , p2 , ( size_t ) c ) ) ;\n }"}
{"idx": 5552, "target": 0, "func": "static void decode_flush ( AVCodecContext * avctx ) {\n KgvContext * const c = avctx -> priv_data ;\n av_frame_unref ( & c -> prev ) ;\n }"}
{"idx": 5553, "target": 0, "func": "static void merge ( GetBitContext * gb , uint8_t * dst , uint8_t * src , int size ) {\n uint8_t * src2 = src + size ;\n int size2 = size ;\n do {\n if ( ! get_bits1 ( gb ) ) {\n * dst ++ = * src ++ ;\n size -- ;\n }\n else {\n * dst ++ = * src2 ++ ;\n size2 -- ;\n }\n }\n while ( size && size2 ) ;\n while ( size -- ) * dst ++ = * src ++ ;\n while ( size2 -- ) * dst ++ = * src2 ++ ;\n }"}
{"idx": 5554, "target": 0, "func": "static void e1000e_set_eitr ( E1000ECore * core , int index , uint32_t val ) {\n uint32_t interval = val & 0xffff ;\n uint32_t eitr_num = index - EITR ;\n trace_e1000e_irq_eitr_set ( eitr_num , val ) ;\n core -> eitr_guest_value [ eitr_num ] = interval ;\n core -> mac [ index ] = MAX ( interval , E1000E_MIN_XITR ) ;\n }"}
{"idx": 5555, "target": 0, "func": "TEST_F ( TemplateURLTest , ParseURLNoTemplateEnd ) {\n TemplateURLData data ;\n data . SetURL ( \"{\n\" ) ;\n TemplateURL url ( data ) ;\n TemplateURLRef : : Replacements replacements ;\n bool valid = false ;\n EXPECT_EQ ( std : : string ( ) , url . url_ref ( ) . ParseURL ( \"{\n\" , & replacements , NULL , & valid ) ) ;\n EXPECT_TRUE ( replacements . empty ( ) ) ;\n EXPECT_FALSE ( valid ) ;\n }"}
{"idx": 5556, "target": 0, "func": "static void fz_drop_icclink ( fz_context * ctx , fz_icclink * link ) {\n fz_drop_storable ( ctx , & link -> storable ) ;\n }"}
{"idx": 5557, "target": 0, "func": "static void prplcb_conn_notice ( PurpleConnection * gc , const char * text ) {\n struct im_connection * ic = purple_ic_by_gc ( gc ) ;\n if ( ic != NULL ) {\n imcb_log ( ic , \"%s\" , text ) ;\n }\n }"}
{"idx": 5558, "target": 0, "func": "void init_util ( void ) {\n filegen_register ( statsdir , \"peerstats\" , & peerstats ) ;\n filegen_register ( statsdir , \"loopstats\" , & loopstats ) ;\n filegen_register ( statsdir , \"clockstats\" , & clockstats ) ;\n filegen_register ( statsdir , \"rawstats\" , & rawstats ) ;\n filegen_register ( statsdir , \"sysstats\" , & sysstats ) ;\n filegen_register ( statsdir , \"protostats\" , & protostats ) ;\n filegen_register ( statsdir , \"cryptostats\" , & cryptostats ) ;\n filegen_register ( statsdir , \"timingstats\" , & timingstats ) ;\n step_callback = & ntpd_time_stepped ;\n # ifdef DEBUG atexit ( & uninit_util ) ;\n # endif }"}
{"idx": 5559, "target": 0, "func": "static int dissect_h245_T_nonCollapsing_item ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 680 \"../../asn1/h245/h245.cnf\" gef_ctx_t * parent_gefx ;\n parent_gefx = gef_ctx_get ( actx -> private_data ) ;\n actx -> private_data = gef_ctx_alloc ( parent_gefx , \"nonCollapsing\" ) ;\n offset = dissect_h245_GenericParameter ( tvb , offset , actx , tree , hf_index ) ;\n # line 685 \"../../asn1/h245/h245.cnf\" actx -> private_data = parent_gefx ;\n return offset ;\n }"}
{"idx": 5560, "target": 0, "func": "static void quickSort ( char * array , int32_t length , int32_t itemSize , UComparator * cmp , const void * context , UErrorCode * pErrorCode ) {\n UAlignedMemory xw [ ( 2 * STACK_ITEM_SIZE ) / sizeof ( UAlignedMemory ) + 1 ] ;\n void * p ;\n if ( itemSize <= STACK_ITEM_SIZE ) {\n p = xw ;\n }\n else {\n p = uprv_malloc ( 2 * itemSize ) ;\n if ( p == NULL ) {\n * pErrorCode = U_MEMORY_ALLOCATION_ERROR ;\n return ;\n }\n }\n subQuickSort ( array , 0 , length , itemSize , cmp , context , p , ( char * ) p + itemSize ) ;\n if ( p != xw ) {\n uprv_free ( p ) ;\n }\n }"}
{"idx": 5561, "target": 0, "func": "static bool message_decode_body ( struct message_decoder_context * ctx , struct message_block * input , struct message_block * output ) {\n const unsigned char * data = NULL ;\n size_t pos = 0 , size = 0 ;\n const char * error ;\n int ret ;\n if ( ctx -> encoding_buf -> used != 0 ) buffer_append ( ctx -> encoding_buf , input -> data , input -> size ) ;\n switch ( ctx -> message_cte ) {\n case MESSAGE_CTE_UNKNOWN : return FALSE ;\n case MESSAGE_CTE_78BIT : case MESSAGE_CTE_BINARY : i_assert ( ctx -> encoding_buf -> used == 0 ) ;\n data = input -> data ;\n size = pos = input -> size ;\n break ;\n case MESSAGE_CTE_QP : {\n i_assert ( ctx -> encoding_buf -> used == 0 ) ;\n buffer_set_used_size ( ctx -> buf , 0 ) ;\n if ( ctx -> qp == NULL ) ctx -> qp = qp_decoder_init ( ctx -> buf ) ;\n ( void ) qp_decoder_more ( ctx -> qp , input -> data , input -> size , & pos , & error ) ;\n data = ctx -> buf -> data ;\n size = ctx -> buf -> used ;\n pos = input -> size ;\n break ;\n }\n case MESSAGE_CTE_BASE64 : buffer_set_used_size ( ctx -> buf , 0 ) ;\n if ( ctx -> encoding_buf -> used != 0 ) {\n ret = base64_decode ( ctx -> encoding_buf -> data , ctx -> encoding_buf -> used , & pos , ctx -> buf ) ;\n }\n else {\n ret = base64_decode ( input -> data , input -> size , & pos , ctx -> buf ) ;\n }\n if ( ret < 0 ) {\n return FALSE ;\n }\n if ( ret == 0 ) {\n pos = input -> size ;\n buffer_set_used_size ( ctx -> encoding_buf , 0 ) ;\n }\n data = ctx -> buf -> data ;\n size = ctx -> buf -> used ;\n break ;\n }\n if ( ctx -> encoding_buf -> used != 0 ) buffer_delete ( ctx -> encoding_buf , 0 , pos ) ;\n else if ( pos != input -> size ) {\n buffer_append ( ctx -> encoding_buf , input -> data + pos , input -> size - pos ) ;\n }\n if ( ctx -> binary_input ) {\n output -> data = data ;\n output -> size = size ;\n }\n else {\n buffer_set_used_size ( ctx -> buf2 , 0 ) ;\n if ( ctx -> translation_size != 0 ) translation_buf_decode ( ctx , & data , & size ) ;\n pos = size ;\n ( void ) charset_to_utf8 ( ctx -> charset_trans , data , & pos , ctx -> buf2 ) ;\n if ( pos != size ) {\n ctx -> translation_size = size - pos ;\n i_assert ( ctx -> translation_size <= sizeof ( ctx -> translation_buf ) ) ;\n memcpy ( ctx -> translation_buf , data + pos , ctx -> translation_size ) ;\n }\n output -> data = ctx -> buf2 -> data ;\n output -> size = ctx -> buf2 -> used ;\n }\n output -> hdr = NULL ;\n return TRUE ;\n }"}
{"idx": 5562, "target": 0, "func": "static void http_close_detection ( int with_delay ) {\n short port = - 1 ;\n struct evhttp_connection * evcon = NULL ;\n struct evhttp_request * req = NULL ;\n test_ok = 0 ;\n fprintf ( stdout , \"Testing Connection Close Detection%s: \" , with_delay ? \" (with delay)\" : \"\" ) ;\n http = http_setup ( & port , NULL ) ;\n evhttp_set_timeout ( http , 2 ) ;\n evcon = evhttp_connection_new ( \"127.0.0.1\" , port ) ;\n if ( evcon == NULL ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n delayed_client = evcon ;\n req = evhttp_request_new ( close_detect_cb , evcon ) ;\n evhttp_add_header ( req -> output_headers , \"Host\" , \"somehost\" ) ;\n if ( evhttp_make_request ( evcon , req , EVHTTP_REQ_GET , with_delay ? \"/largedelay\" : \"/test\" ) == - 1 ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n event_dispatch ( ) ;\n if ( test_ok != 1 ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n if ( TAILQ_FIRST ( & http -> connections ) != NULL ) {\n fprintf ( stdout , \"FAILED (left connections)\\n\" ) ;\n exit ( 1 ) ;\n }\n evhttp_connection_free ( evcon ) ;\n evhttp_free ( http ) ;\n fprintf ( stdout , \"OK\\n\" ) ;\n }"}
{"idx": 5563, "target": 0, "func": "static const char * cmd_rule_update_target_by_msg ( cmd_parms * cmd , void * _dcfg , const char * p1 , const char * p2 , const char * p3 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n rule_exception * re = apr_pcalloc ( cmd -> pool , sizeof ( rule_exception ) ) ;\n if ( dcfg == NULL ) return NULL ;\n if ( p1 == NULL ) {\n return apr_psprintf ( cmd -> pool , \"Updating target by message with no message\" ) ;\n }\n re -> type = RULE_EXCEPTION_REMOVE_MSG ;\n re -> param = p1 ;\n re -> param_data = msc_pregcomp ( cmd -> pool , p1 , 0 , NULL , NULL ) ;\n if ( re -> param_data == NULL ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid regular expression: %s\" , p1 ) ;\n }\n return msre_ruleset_rule_update_target_matching_exception ( NULL , dcfg -> ruleset , re , p2 , p3 ) ;\n }"}
{"idx": 5564, "target": 0, "func": "static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 5565, "target": 0, "func": "const char * TSUrlPasswordGet ( TSMBuffer bufp , TSMLoc obj , int * length ) {\n return URLPartGet ( bufp , obj , length , & URL : : password_get ) ;\n }"}
{"idx": 5566, "target": 0, "func": "bool kvm_arch_stop_on_emulation_error ( CPUState * cs ) {\n X86CPU * cpu = X86_CPU ( cs ) ;\n CPUX86State * env = & cpu -> env ;\n kvm_cpu_synchronize_state ( cs ) ;\n return ! ( env -> cr [ 0 ] & CR0_PE_MASK ) || ( ( env -> segs [ R_CS ] . selector & 3 ) != 3 ) ;\n }"}
{"idx": 5567, "target": 0, "func": "void nautilus_directory_monitor_remove_internal ( NautilusDirectory * directory , NautilusFile * file , gconstpointer client ) {\n g_assert ( NAUTILUS_IS_DIRECTORY ( directory ) ) ;\n g_assert ( file == NULL || NAUTILUS_IS_FILE ( file ) ) ;\n g_assert ( client != NULL ) ;\n remove_monitor ( directory , file , client ) ;\n if ( directory -> details -> monitor != NULL && directory -> details -> monitor_list == NULL ) {\n nautilus_monitor_cancel ( directory -> details -> monitor ) ;\n directory -> details -> monitor = NULL ;\n }\n nautilus_directory_async_state_changed ( directory ) ;\n }"}
{"idx": 5568, "target": 0, "func": "struct archive_wstring * archive_wstrappend_wchar ( struct archive_wstring * as , wchar_t c ) {\n if ( ( as = archive_wstring_append ( as , & c , 1 ) ) == NULL ) __archive_errx ( 1 , \"Out of memory\" ) ;\n return ( as ) ;\n }"}
{"idx": 5569, "target": 0, "func": "static void write_dns ( int fd , struct query * q , char * data , int datalen , char downenc ) {\n char buf [ 64 * 1024 ] ;\n int len = 0 ;\n if ( q -> type == T_CNAME || q -> type == T_A ) {\n char cnamebuf [ 1024 ] ;\n write_dns_nameenc ( cnamebuf , sizeof ( cnamebuf ) , data , datalen , downenc ) ;\n len = dns_encode ( buf , sizeof ( buf ) , q , QR_ANSWER , cnamebuf , sizeof ( cnamebuf ) ) ;\n }\n else if ( q -> type == T_MX || q -> type == T_SRV ) {\n char mxbuf [ 64 * 1024 ] ;\n char * b = mxbuf ;\n int offset = 0 ;\n int res ;\n while ( 1 ) {\n res = write_dns_nameenc ( b , sizeof ( mxbuf ) - ( b - mxbuf ) , data + offset , datalen - offset , downenc ) ;\n if ( res < 1 ) {\n b ++ ;\n break ;\n }\n b = b + strlen ( b ) + 1 ;\n offset += res ;\n if ( offset >= datalen ) break ;\n }\n * b = '\\0' ;\n len = dns_encode ( buf , sizeof ( buf ) , q , QR_ANSWER , mxbuf , sizeof ( mxbuf ) ) ;\n }\n else if ( q -> type == T_TXT ) {\n char txtbuf [ 64 * 1024 ] ;\n size_t space = sizeof ( txtbuf ) - 1 ;\n ;\n memset ( txtbuf , 0 , sizeof ( txtbuf ) ) ;\n if ( downenc == 'S' ) {\n txtbuf [ 0 ] = 's' ;\n len = b64 -> encode ( txtbuf + 1 , & space , data , datalen ) ;\n }\n else if ( downenc == 'U' ) {\n txtbuf [ 0 ] = 'u' ;\n len = b64u -> encode ( txtbuf + 1 , & space , data , datalen ) ;\n }\n else if ( downenc == 'V' ) {\n txtbuf [ 0 ] = 'v' ;\n len = b128 -> encode ( txtbuf + 1 , & space , data , datalen ) ;\n }\n else if ( downenc == 'R' ) {\n txtbuf [ 0 ] = 'r' ;\n len = MIN ( datalen , sizeof ( txtbuf ) - 1 ) ;\n memcpy ( txtbuf + 1 , data , len ) ;\n }\n else {\n txtbuf [ 0 ] = 't' ;\n len = b32 -> encode ( txtbuf + 1 , & space , data , datalen ) ;\n }\n len = dns_encode ( buf , sizeof ( buf ) , q , QR_ANSWER , txtbuf , len + 1 ) ;\n }\n else {\n len = dns_encode ( buf , sizeof ( buf ) , q , QR_ANSWER , data , datalen ) ;\n }\n if ( len < 1 ) {\n warnx ( \"dns_encode doesn't fit\" ) ;\n return ;\n }\n if ( debug >= 2 ) {\n fprintf ( stderr , \"TX: client %s, type %d, name %s, %d bytes data\\n\" , format_addr ( & q -> from , q -> fromlen ) , q -> type , q -> name , datalen ) ;\n }\n sendto ( fd , buf , len , 0 , ( struct sockaddr * ) & q -> from , q -> fromlen ) ;\n }"}
{"idx": 5570, "target": 0, "func": "static inline int asv2_get_level ( GetBitContext * gb ) {\n int code = get_vlc2 ( gb , asv2_level_vlc . table , ASV2_LEVEL_VLC_BITS , 1 ) ;\n if ( code == 31 ) return ( int8_t ) asv2_get_bits ( gb , 8 ) ;\n else return code - 31 ;\n }"}
{"idx": 5571, "target": 0, "func": "void input_DecoderGetObjects ( decoder_t * p_dec , vout_thread_t * * pp_vout , audio_output_t * * pp_aout ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n vlc_mutex_lock ( & p_owner -> lock ) ;\n if ( pp_vout ) * pp_vout = p_owner -> p_vout ? vlc_object_hold ( p_owner -> p_vout ) : NULL ;\n if ( pp_aout ) * pp_aout = p_owner -> p_aout ? vlc_object_hold ( p_owner -> p_aout ) : NULL ;\n vlc_mutex_unlock ( & p_owner -> lock ) ;\n }"}
{"idx": 5572, "target": 0, "func": "bool op_strict ( Oid opno ) {\n RegProcedure funcid = get_opcode ( opno ) ;\n if ( funcid == ( RegProcedure ) InvalidOid ) elog ( ERROR , \"operator %u does not exist\" , opno ) ;\n return func_strict ( ( Oid ) funcid ) ;\n }"}
{"idx": 5573, "target": 0, "func": "static guint16 de_stream_id ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string , int string_len ) {\n guint32 curr_offset ;\n guint8 oct ;\n curr_offset = offset ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n if ( oct == 0x00 ) {\n proto_tree_add_uint_format_value ( tree , hf_gsm_a_dtap_stream_identifier , tvb , curr_offset , 1 , oct , \"No Bearer (%u)\" , oct ) ;\n if ( add_string ) g_snprintf ( add_string , string_len , \" - (No Bearer)\" ) ;\n }\n else {\n proto_tree_add_item ( tree , hf_gsm_a_dtap_stream_identifier , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n if ( add_string ) g_snprintf ( add_string , string_len , \" - (%u)\" , oct ) ;\n }\n curr_offset ++ ;\n EXTRANEOUS_DATA_CHECK ( len , curr_offset - offset , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n return ( len ) ;\n }"}
{"idx": 5574, "target": 0, "func": "static void get_relocations_array ( Dwarf_Bool is_64bit , int endianness , int machine , Dwarf_Small * data , unsigned int num_relocations , struct Dwarf_Elf_Rela * relap ) {\n unsigned int i = 0 ;\n void ( * get_relocations ) ( Dwarf_Small * data , unsigned int i , int endianness , int machine , struct Dwarf_Elf_Rela * relap ) ;\n if ( is_64bit ) {\n get_relocations = get_rela_elf64 ;\n }\n else {\n get_relocations = get_rela_elf32 ;\n }\n for ( i = 0 ;\n i < num_relocations ;\n i ++ ) {\n get_relocations ( data , i , endianness , machine , & ( relap [ i ] ) ) ;\n }\n }"}
{"idx": 5575, "target": 0, "func": "static void cal_nmvsadcosts_hp ( int * mvsadcost [ 2 ] ) {\n int i = 1 ;\n mvsadcost [ 0 ] [ 0 ] = 0 ;\n mvsadcost [ 1 ] [ 0 ] = 0 ;\n do {\n double z = 256 * ( 2 * ( log2f ( 8 * i ) + .6 ) ) ;\n mvsadcost [ 0 ] [ i ] = ( int ) z ;\n mvsadcost [ 1 ] [ i ] = ( int ) z ;\n mvsadcost [ 0 ] [ - i ] = ( int ) z ;\n mvsadcost [ 1 ] [ - i ] = ( int ) z ;\n }\n while ( ++ i <= MV_MAX ) ;\n }"}
{"idx": 5576, "target": 0, "func": "static void parse_palette_segment ( AVCodecContext * avctx , const uint8_t * buf , int buf_size ) {\n PGSSubContext * ctx = avctx -> priv_data ;\n const uint8_t * buf_end = buf + buf_size ;\n const uint8_t * cm = ff_cropTbl + MAX_NEG_CROP ;\n int color_id ;\n int y , cb , cr , alpha ;\n int r , g , b , r_add , g_add , b_add ;\n buf += 2 ;\n while ( buf < buf_end ) {\n color_id = bytestream_get_byte ( & buf ) ;\n y = bytestream_get_byte ( & buf ) ;\n cr = bytestream_get_byte ( & buf ) ;\n cb = bytestream_get_byte ( & buf ) ;\n alpha = bytestream_get_byte ( & buf ) ;\n YUV_TO_RGB1 ( cb , cr ) ;\n YUV_TO_RGB2 ( r , g , b , y ) ;\n av_dlog ( avctx , \"Color %d := (%d,%d,%d,%d)\\n\" , color_id , r , g , b , alpha ) ;\n ctx -> clut [ color_id ] = RGBA ( r , g , b , alpha ) ;\n }\n }"}
{"idx": 5577, "target": 0, "func": "static void add_pending_tree ( struct rev_info * revs , struct tree * tree ) {\n add_pending_object ( revs , & tree -> object , \"\" ) ;\n }"}
{"idx": 5578, "target": 0, "func": "static void rv34_output_i16x16 ( RV34DecContext * r , int8_t * intra_types , int cbp ) {\n LOCAL_ALIGNED_16 ( int16_t , block16 , [ 16 ] ) ;\n MpegEncContext * s = & r -> s ;\n GetBitContext * gb = & s -> gb ;\n int q_dc = rv34_qscale_tab [ r -> luma_dc_quant_i [ s -> qscale ] ] , q_ac = rv34_qscale_tab [ s -> qscale ] ;\n uint8_t * dst = s -> dest [ 0 ] ;\n int16_t * ptr = s -> block [ 0 ] ;\n int i , j , itype , has_ac ;\n memset ( block16 , 0 , 16 * sizeof ( * block16 ) ) ;\n has_ac = rv34_decode_block ( block16 , gb , r -> cur_vlcs , 3 , 0 , q_dc , q_dc , q_ac ) ;\n if ( has_ac ) r -> rdsp . rv34_inv_transform ( block16 ) ;\n else r -> rdsp . rv34_inv_transform_dc ( block16 ) ;\n itype = ittrans16 [ intra_types [ 0 ] ] ;\n itype = adjust_pred16 ( itype , r -> avail_cache [ 6 - 4 ] , r -> avail_cache [ 6 - 1 ] ) ;\n r -> h . pred16x16 [ itype ] ( dst , s -> linesize ) ;\n for ( j = 0 ;\n j < 4 ;\n j ++ ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ , cbp >>= 1 ) {\n int dc = block16 [ i + j * 4 ] ;\n if ( cbp & 1 ) {\n has_ac = rv34_decode_block ( ptr , gb , r -> cur_vlcs , r -> luma_vlc , 0 , q_ac , q_ac , q_ac ) ;\n }\n else has_ac = 0 ;\n if ( has_ac ) {\n ptr [ 0 ] = dc ;\n r -> rdsp . rv34_idct_add ( dst + 4 * i , s -> linesize , ptr ) ;\n }\n else r -> rdsp . rv34_idct_dc_add ( dst + 4 * i , s -> linesize , dc ) ;\n }\n dst += 4 * s -> linesize ;\n }\n itype = ittrans16 [ intra_types [ 0 ] ] ;\n if ( itype == PLANE_PRED8x8 ) itype = DC_PRED8x8 ;\n itype = adjust_pred16 ( itype , r -> avail_cache [ 6 - 4 ] , r -> avail_cache [ 6 - 1 ] ) ;\n q_dc = rv34_qscale_tab [ rv34_chroma_quant [ 1 ] [ s -> qscale ] ] ;\n q_ac = rv34_qscale_tab [ rv34_chroma_quant [ 0 ] [ s -> qscale ] ] ;\n for ( j = 1 ;\n j < 3 ;\n j ++ ) {\n dst = s -> dest [ j ] ;\n r -> h . pred8x8 [ itype ] ( dst , s -> uvlinesize ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ , cbp >>= 1 ) {\n uint8_t * pdst ;\n if ( ! ( cbp & 1 ) ) continue ;\n pdst = dst + ( i & 1 ) * 4 + ( i & 2 ) * 2 * s -> uvlinesize ;\n rv34_process_block ( r , pdst , s -> uvlinesize , r -> chroma_vlc , 1 , q_dc , q_ac ) ;\n }\n }\n }"}
{"idx": 5579, "target": 0, "func": "static int may_link ( struct inode * dir , struct dentry * dentry , int kind ) {\n struct inode_security_struct * dsec , * isec ;\n struct common_audit_data ad ;\n u32 sid = current_sid ( ) ;\n u32 av ;\n int rc ;\n dsec = inode_security ( dir ) ;\n isec = backing_inode_security ( dentry ) ;\n ad . type = LSM_AUDIT_DATA_DENTRY ;\n ad . u . dentry = dentry ;\n av = DIR__SEARCH ;\n av |= ( kind ? DIR__REMOVE_NAME : DIR__ADD_NAME ) ;\n rc = avc_has_perm ( sid , dsec -> sid , SECCLASS_DIR , av , & ad ) ;\n if ( rc ) return rc ;\n switch ( kind ) {\n case MAY_LINK : av = FILE__LINK ;\n break ;\n case MAY_UNLINK : av = FILE__UNLINK ;\n break ;\n case MAY_RMDIR : av = DIR__RMDIR ;\n break ;\n default : printk ( KERN_WARNING \"SELinux: %s: unrecognized kind %d\\n\" , __func__ , kind ) ;\n return 0 ;\n }\n rc = avc_has_perm ( sid , isec -> sid , isec -> sclass , av , & ad ) ;\n return rc ;\n }"}
{"idx": 5580, "target": 0, "func": "uint32_t jbig2_get_uint32 ( const byte * bptr ) {\n return ( ( uint32_t ) get_uint16 ( bptr ) << 16 ) | get_uint16 ( bptr + 2 ) ;\n }"}
{"idx": 5581, "target": 0, "func": "static void dissect_u3v_write_mem_ack ( proto_tree * u3v_telegram_tree , tvbuff_t * tvb , packet_info * pinfo , gint startoffset , gint length , u3v_conv_info_t * u3v_conv_info , gencp_transaction_t * gencp_trans ) {\n guint64 addr = 0 ;\n gint offset = startoffset ;\n const gchar * address_string = NULL ;\n gboolean is_custom_register = FALSE ;\n gboolean have_address = ( 0 != gencp_trans -> cmd_frame ) ;\n proto_item * item = NULL ;\n addr = gencp_trans -> address ;\n if ( have_address ) {\n address_string = get_register_name_from_address ( addr , & is_custom_register , u3v_conv_info ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"%s\" , address_string ) ;\n }\n item = proto_tree_add_item ( u3v_telegram_tree , hf_u3v_scd_writemem_ack , tvb , startoffset , length , ENC_NA ) ;\n u3v_telegram_tree = proto_item_add_subtree ( item , ett_u3v_payload_cmd ) ;\n if ( have_address ) {\n item = proto_tree_add_uint64 ( u3v_telegram_tree , hf_u3v_address , tvb , 0 , 0 , addr ) ;\n PROTO_ITEM_SET_GENERATED ( item ) ;\n }\n if ( length == 4 ) {\n proto_tree_add_item ( u3v_telegram_tree , hf_u3v_reserved , tvb , offset , 2 , ENC_NA ) ;\n offset += 2 ;\n proto_tree_add_item ( u3v_telegram_tree , hf_u3v_count , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n }\n }"}
{"idx": 5582, "target": 0, "func": "static void compute_antialias ( MPADecodeContext * s , GranuleDef * g ) {\n INTFLOAT * ptr ;\n int n , i ;\n if ( g -> block_type == 2 ) {\n if ( ! g -> switch_point ) return ;\n n = 1 ;\n }\n else {\n n = SBLIMIT - 1 ;\n }\n ptr = g -> sb_hybrid + 18 ;\n for ( i = n ;\n i > 0 ;\n i -- ) {\n AA ( 0 ) ;\n AA ( 1 ) ;\n AA ( 2 ) ;\n AA ( 3 ) ;\n AA ( 4 ) ;\n AA ( 5 ) ;\n AA ( 6 ) ;\n AA ( 7 ) ;\n ptr += 18 ;\n }\n }"}
{"idx": 5583, "target": 0, "func": "static int lag_decode_arith_plane ( LagarithContext * l , uint8_t * dst , int width , int height , int stride , const uint8_t * src , int src_size ) {\n int i = 0 ;\n int read = 0 ;\n uint32_t length ;\n uint32_t offset = 1 ;\n int esc_count = src [ 0 ] ;\n GetBitContext gb ;\n lag_rac rac ;\n const uint8_t * src_end = src + src_size ;\n rac . avctx = l -> avctx ;\n l -> zeros = 0 ;\n if ( esc_count < 4 ) {\n length = width * height ;\n if ( esc_count && AV_RL32 ( src + 1 ) < length ) {\n length = AV_RL32 ( src + 1 ) ;\n offset += 4 ;\n }\n init_get_bits ( & gb , src + offset , src_size * 8 ) ;\n if ( lag_read_prob_header ( & rac , & gb ) < 0 ) return - 1 ;\n ff_lag_rac_init ( & rac , & gb , length - stride ) ;\n for ( i = 0 ;\n i < height ;\n i ++ ) read += lag_decode_line ( l , & rac , dst + ( i * stride ) , width , stride , esc_count ) ;\n if ( read > length ) av_log ( l -> avctx , AV_LOG_WARNING , \"Output more bytes than length (%d of %d)\\n\" , read , length ) ;\n }\n else if ( esc_count < 8 ) {\n esc_count -= 4 ;\n if ( esc_count > 0 ) {\n for ( i = 0 ;\n i < height ;\n i ++ ) {\n int res = lag_decode_zero_run_line ( l , dst + ( i * stride ) , src , src_end , width , esc_count ) ;\n if ( res < 0 ) return res ;\n src += res ;\n }\n }\n else {\n if ( src_size < width * height ) return AVERROR_INVALIDDATA ;\n for ( i = 0 ;\n i < height ;\n i ++ ) {\n memcpy ( dst + ( i * stride ) , src , width ) ;\n src += width ;\n }\n }\n }\n else if ( esc_count == 0xff ) {\n for ( i = 0 ;\n i < height ;\n i ++ ) memset ( dst + i * stride , src [ 1 ] , width ) ;\n return 0 ;\n }\n else {\n av_log ( l -> avctx , AV_LOG_ERROR , \"Invalid zero run escape code! (%#x)\\n\" , esc_count ) ;\n return - 1 ;\n }\n if ( l -> avctx -> pix_fmt != AV_PIX_FMT_YUV422P ) {\n for ( i = 0 ;\n i < height ;\n i ++ ) {\n lag_pred_line ( l , dst , width , stride , i ) ;\n dst += stride ;\n }\n }\n else {\n for ( i = 0 ;\n i < height ;\n i ++ ) {\n lag_pred_line_yuy2 ( l , dst , width , stride , i , width == l -> avctx -> width ) ;\n dst += stride ;\n }\n }\n return 0 ;\n }"}
{"idx": 5584, "target": 1, "func": "static void init_t38_info_conv ( packet_info * pinfo ) {\n t38_info_current ++ ;\n if ( t38_info_current == MAX_T38_MESSAGES_IN_PACKET ) {\n t38_info_current = 0 ;\n }\n t38_info = & t38_info_arr [ t38_info_current ] ;\n t38_info -> seq_num = 0 ;\n t38_info -> type_msg = 0 ;\n t38_info -> data_value = 0 ;\n t38_info -> t30ind_value = 0 ;\n t38_info -> setup_frame_number = 0 ;\n t38_info -> Data_Field_field_type_value = 0 ;\n t38_info -> desc [ 0 ] = '\\0' ;\n t38_info -> desc_comment [ 0 ] = '\\0' ;\n t38_info -> time_first_t4_data = 0 ;\n t38_info -> frame_num_first_t4_data = 0 ;\n p_t38_packet_conv = NULL ;\n p_t38_conv = NULL ;\n p_t38_packet_conv = ( t38_conv * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_t38 , 0 ) ;\n p_conv = find_conversation ( pinfo -> fd -> num , & pinfo -> net_dst , & pinfo -> net_src , pinfo -> ptype , pinfo -> destport , pinfo -> srcport , NO_ADDR_B | NO_PORT_B ) ;\n if ( ! p_conv ) {\n p_conv = conversation_new ( pinfo -> fd -> num , & pinfo -> net_src , & pinfo -> net_dst , pinfo -> ptype , pinfo -> srcport , pinfo -> destport , NO_ADDR_B | NO_PORT_B ) ;\n conversation_set_dissector ( p_conv , t38_udp_handle ) ;\n }\n if ( ! p_t38_packet_conv ) {\n p_t38_conv = ( t38_conv * ) conversation_get_proto_data ( p_conv , proto_t38 ) ;\n if ( ! p_t38_conv ) {\n p_t38_conv = wmem_new ( wmem_file_scope ( ) , t38_conv ) ;\n p_t38_conv -> setup_method [ 0 ] = '\\0' ;\n p_t38_conv -> setup_frame_number = 0 ;\n p_t38_conv -> src_t38_info . reass_ID = 0 ;\n p_t38_conv -> src_t38_info . reass_start_seqnum = - 1 ;\n p_t38_conv -> src_t38_info . reass_data_type = 0 ;\n p_t38_conv -> src_t38_info . last_seqnum = - 1 ;\n p_t38_conv -> src_t38_info . packet_lost = 0 ;\n p_t38_conv -> src_t38_info . burst_lost = 0 ;\n p_t38_conv -> src_t38_info . time_first_t4_data = 0 ;\n p_t38_conv -> src_t38_info . additional_hdlc_data_field_counter = 0 ;\n p_t38_conv -> src_t38_info . seqnum_prev_data_field = - 1 ;\n p_t38_conv -> dst_t38_info . reass_ID = 0 ;\n p_t38_conv -> dst_t38_info . reass_start_seqnum = - 1 ;\n p_t38_conv -> dst_t38_info . reass_data_type = 0 ;\n p_t38_conv -> dst_t38_info . last_seqnum = - 1 ;\n p_t38_conv -> dst_t38_info . packet_lost = 0 ;\n p_t38_conv -> dst_t38_info . burst_lost = 0 ;\n p_t38_conv -> dst_t38_info . time_first_t4_data = 0 ;\n p_t38_conv -> dst_t38_info . additional_hdlc_data_field_counter = 0 ;\n p_t38_conv -> dst_t38_info . seqnum_prev_data_field = - 1 ;\n conversation_add_proto_data ( p_conv , proto_t38 , p_t38_conv ) ;\n }\n p_t38_packet_conv = wmem_new ( wmem_file_scope ( ) , t38_conv ) ;\n g_strlcpy ( p_t38_packet_conv -> setup_method , p_t38_conv -> setup_method , MAX_T38_SETUP_METHOD_SIZE ) ;\n p_t38_packet_conv -> setup_frame_number = p_t38_conv -> setup_frame_number ;\n memcpy ( & ( p_t38_packet_conv -> src_t38_info ) , & ( p_t38_conv -> src_t38_info ) , sizeof ( t38_conv_info ) ) ;\n memcpy ( & ( p_t38_packet_conv -> dst_t38_info ) , & ( p_t38_conv -> dst_t38_info ) , sizeof ( t38_conv_info ) ) ;\n p_add_proto_data ( wmem_file_scope ( ) , pinfo , proto_t38 , 0 , p_t38_packet_conv ) ;\n }\n if ( ADDRESSES_EQUAL ( & p_conv -> key_ptr -> addr1 , & pinfo -> net_src ) ) {\n p_t38_conv_info = & ( p_t38_conv -> src_t38_info ) ;\n p_t38_packet_conv_info = & ( p_t38_packet_conv -> src_t38_info ) ;\n }\n else {\n p_t38_conv_info = & ( p_t38_conv -> dst_t38_info ) ;\n p_t38_packet_conv_info = & ( p_t38_packet_conv -> dst_t38_info ) ;\n }\n t38_info -> setup_frame_number = p_t38_packet_conv -> setup_frame_number ;\n }"}
{"idx": 5585, "target": 0, "func": "int compare_files ( const char * filename1 , const char * filename2 ) {\n File fd ;\n int error ;\n if ( ( fd = my_open ( filename1 , O_RDONLY , MYF ( 0 ) ) ) < 0 ) die ( \"Failed to open first file: '%s'\" , filename1 ) ;\n error = compare_files2 ( fd , filename2 ) ;\n my_close ( fd , MYF ( 0 ) ) ;\n return error ;\n }"}
{"idx": 5586, "target": 0, "func": "static void lpc_prediction ( int32_t * error_buffer , int32_t * buffer_out , int nb_samples , int bps , int16_t * lpc_coefs , int lpc_order , int lpc_quant ) {\n int i ;\n int32_t * pred = buffer_out ;\n * buffer_out = * error_buffer ;\n if ( nb_samples <= 1 ) return ;\n if ( ! lpc_order ) {\n memcpy ( & buffer_out [ 1 ] , & error_buffer [ 1 ] , ( nb_samples - 1 ) * sizeof ( * buffer_out ) ) ;\n return ;\n }\n if ( lpc_order == 31 ) {\n for ( i = 1 ;\n i < nb_samples ;\n i ++ ) {\n buffer_out [ i ] = sign_extend ( buffer_out [ i - 1 ] + error_buffer [ i ] , bps ) ;\n }\n return ;\n }\n for ( i = 1 ;\n i <= lpc_order ;\n i ++ ) buffer_out [ i ] = sign_extend ( buffer_out [ i - 1 ] + error_buffer [ i ] , bps ) ;\n for ( ;\n i < nb_samples ;\n i ++ ) {\n int j ;\n int val = 0 ;\n int error_val = error_buffer [ i ] ;\n int error_sign ;\n int d = * pred ++ ;\n for ( j = 0 ;\n j < lpc_order ;\n j ++ ) val += ( pred [ j ] - d ) * lpc_coefs [ j ] ;\n val = ( val + ( 1 << ( lpc_quant - 1 ) ) ) >> lpc_quant ;\n val += d + error_val ;\n buffer_out [ i ] = sign_extend ( val , bps ) ;\n error_sign = sign_only ( error_val ) ;\n if ( error_sign ) {\n for ( j = 0 ;\n j < lpc_order && error_val * error_sign > 0 ;\n j ++ ) {\n int sign ;\n val = d - pred [ j ] ;\n sign = sign_only ( val ) * error_sign ;\n lpc_coefs [ j ] -= sign ;\n val *= sign ;\n error_val -= ( val >> lpc_quant ) * ( j + 1 ) ;\n }\n }\n }\n }"}
{"idx": 5587, "target": 0, "func": "void evhttp_send_reply ( struct evhttp_request * req , int code , const char * reason , struct evbuffer * databuf ) {\n evhttp_response_code ( req , code , reason ) ;\n evhttp_send ( req , databuf ) ;\n }"}
{"idx": 5588, "target": 0, "func": "static __inline__ __u32 __swahw32p ( const __u32 * p ) {\n # ifdef __arch_swahw32p return __arch_swahw32p ( p ) ;\n # else return __swahw32 ( * p ) ;\n # endif }"}
{"idx": 5589, "target": 0, "func": "static int64_t handle_inter_mode ( VP9_COMP * cpi , MACROBLOCK * x , BLOCK_SIZE bsize , int64_t txfm_cache [ ] , int * rate2 , int64_t * distortion , int * skippable , int * rate_y , int64_t * distortion_y , int * rate_uv , int64_t * distortion_uv , int * disable_skip , int_mv ( * mode_mv ) [ MAX_REF_FRAMES ] , int mi_row , int mi_col , int_mv single_newmv [ MAX_REF_FRAMES ] , INTERP_FILTER ( * single_filter ) [ MAX_REF_FRAMES ] , int ( * single_skippable ) [ MAX_REF_FRAMES ] , int64_t * psse , const int64_t ref_best_rd ) {\n VP9_COMMON * cm = & cpi -> common ;\n RD_OPT * rd_opt = & cpi -> rd ;\n MACROBLOCKD * xd = & x -> e_mbd ;\n MB_MODE_INFO * mbmi = & xd -> mi [ 0 ] . src_mi -> mbmi ;\n const int is_comp_pred = has_second_ref ( mbmi ) ;\n const int this_mode = mbmi -> mode ;\n int_mv * frame_mv = mode_mv [ this_mode ] ;\n int i ;\n int refs [ 2 ] = {\n mbmi -> ref_frame [ 0 ] , ( mbmi -> ref_frame [ 1 ] < 0 ? 0 : mbmi -> ref_frame [ 1 ] ) }\n ;\n int_mv cur_mv [ 2 ] ;\n int64_t this_rd = 0 ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , tmp_buf , MAX_MB_PLANE * 64 * 64 ) ;\n int pred_exists = 0 ;\n int intpel_mv ;\n int64_t rd , tmp_rd , best_rd = INT64_MAX ;\n int best_needs_copy = 0 ;\n uint8_t * orig_dst [ MAX_MB_PLANE ] ;\n int orig_dst_stride [ MAX_MB_PLANE ] ;\n int rs = 0 ;\n INTERP_FILTER best_filter = SWITCHABLE ;\n uint8_t skip_txfm [ MAX_MB_PLANE << 2 ] = {\n 0 }\n ;\n int64_t bsse [ MAX_MB_PLANE << 2 ] = {\n 0 }\n ;\n int bsl = mi_width_log2_lookup [ bsize ] ;\n int pred_filter_search = cpi -> sf . cb_pred_filter_search ? ( ( ( mi_row + mi_col ) >> bsl ) + get_chessboard_index ( cm -> current_video_frame ) ) & 0x1 : 0 ;\n if ( pred_filter_search ) {\n INTERP_FILTER af = SWITCHABLE , lf = SWITCHABLE ;\n if ( xd -> up_available ) af = xd -> mi [ - xd -> mi_stride ] . src_mi -> mbmi . interp_filter ;\n if ( xd -> left_available ) lf = xd -> mi [ - 1 ] . src_mi -> mbmi . interp_filter ;\n if ( ( this_mode != NEWMV ) || ( af == lf ) ) best_filter = af ;\n }\n if ( is_comp_pred ) {\n if ( frame_mv [ refs [ 0 ] ] . as_int == INVALID_MV || frame_mv [ refs [ 1 ] ] . as_int == INVALID_MV ) return INT64_MAX ;\n if ( cpi -> sf . adaptive_mode_search ) {\n if ( single_filter [ this_mode ] [ refs [ 0 ] ] == single_filter [ this_mode ] [ refs [ 1 ] ] ) best_filter = single_filter [ this_mode ] [ refs [ 0 ] ] ;\n }\n }\n if ( this_mode == NEWMV ) {\n int rate_mv ;\n if ( is_comp_pred ) {\n frame_mv [ refs [ 0 ] ] . as_int = single_newmv [ refs [ 0 ] ] . as_int ;\n frame_mv [ refs [ 1 ] ] . as_int = single_newmv [ refs [ 1 ] ] . as_int ;\n if ( cpi -> sf . comp_inter_joint_search_thresh <= bsize ) {\n joint_motion_search ( cpi , x , bsize , frame_mv , mi_row , mi_col , single_newmv , & rate_mv ) ;\n }\n else {\n rate_mv = vp9_mv_bit_cost ( & frame_mv [ refs [ 0 ] ] . as_mv , & mbmi -> ref_mvs [ refs [ 0 ] ] [ 0 ] . as_mv , x -> nmvjointcost , x -> mvcost , MV_COST_WEIGHT ) ;\n rate_mv += vp9_mv_bit_cost ( & frame_mv [ refs [ 1 ] ] . as_mv , & mbmi -> ref_mvs [ refs [ 1 ] ] [ 0 ] . as_mv , x -> nmvjointcost , x -> mvcost , MV_COST_WEIGHT ) ;\n }\n * rate2 += rate_mv ;\n }\n else {\n int_mv tmp_mv ;\n single_motion_search ( cpi , x , bsize , mi_row , mi_col , & tmp_mv , & rate_mv ) ;\n if ( tmp_mv . as_int == INVALID_MV ) return INT64_MAX ;\n * rate2 += rate_mv ;\n frame_mv [ refs [ 0 ] ] . as_int = xd -> mi [ 0 ] . src_mi -> bmi [ 0 ] . as_mv [ 0 ] . as_int = tmp_mv . as_int ;\n single_newmv [ refs [ 0 ] ] . as_int = tmp_mv . as_int ;\n }\n }\n for ( i = 0 ;\n i < is_comp_pred + 1 ;\n ++ i ) {\n cur_mv [ i ] = frame_mv [ refs [ i ] ] ;\n if ( this_mode != NEWMV ) clamp_mv2 ( & cur_mv [ i ] . as_mv , xd ) ;\n if ( mv_check_bounds ( x , & cur_mv [ i ] . as_mv ) ) return INT64_MAX ;\n mbmi -> mv [ i ] . as_int = cur_mv [ i ] . as_int ;\n }\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n i ++ ) {\n orig_dst [ i ] = xd -> plane [ i ] . dst . buf ;\n orig_dst_stride [ i ] = xd -> plane [ i ] . dst . stride ;\n }\n * rate2 += cost_mv_ref ( cpi , this_mode , mbmi -> mode_context [ refs [ 0 ] ] ) ;\n if ( RDCOST ( x -> rdmult , x -> rddiv , * rate2 , 0 ) > ref_best_rd && mbmi -> mode != NEARESTMV ) return INT64_MAX ;\n pred_exists = 0 ;\n intpel_mv = ! mv_has_subpel ( & mbmi -> mv [ 0 ] . as_mv ) ;\n if ( is_comp_pred ) intpel_mv &= ! mv_has_subpel ( & mbmi -> mv [ 1 ] . as_mv ) ;\n rd_opt -> mask_filter = 0 ;\n for ( i = 0 ;\n i < SWITCHABLE_FILTER_CONTEXTS ;\n ++ i ) rd_opt -> filter_cache [ i ] = INT64_MAX ;\n if ( cm -> interp_filter != BILINEAR ) {\n if ( x -> source_variance < cpi -> sf . disable_filter_search_var_thresh ) {\n best_filter = EIGHTTAP ;\n }\n else if ( best_filter == SWITCHABLE ) {\n int newbest ;\n int tmp_rate_sum = 0 ;\n int64_t tmp_dist_sum = 0 ;\n for ( i = 0 ;\n i < SWITCHABLE_FILTERS ;\n ++ i ) {\n int j ;\n int64_t rs_rd ;\n mbmi -> interp_filter = i ;\n rs = vp9_get_switchable_rate ( cpi ) ;\n rs_rd = RDCOST ( x -> rdmult , x -> rddiv , rs , 0 ) ;\n if ( i > 0 && intpel_mv ) {\n rd = RDCOST ( x -> rdmult , x -> rddiv , tmp_rate_sum , tmp_dist_sum ) ;\n rd_opt -> filter_cache [ i ] = rd ;\n rd_opt -> filter_cache [ SWITCHABLE_FILTERS ] = MIN ( rd_opt -> filter_cache [ SWITCHABLE_FILTERS ] , rd + rs_rd ) ;\n if ( cm -> interp_filter == SWITCHABLE ) rd += rs_rd ;\n rd_opt -> mask_filter = MAX ( rd_opt -> mask_filter , rd ) ;\n }\n else {\n int rate_sum = 0 ;\n int64_t dist_sum = 0 ;\n if ( i > 0 && cpi -> sf . adaptive_interp_filter_search && ( cpi -> sf . interp_filter_search_mask & ( 1 << i ) ) ) {\n rate_sum = INT_MAX ;\n dist_sum = INT64_MAX ;\n continue ;\n }\n if ( ( cm -> interp_filter == SWITCHABLE && ( ! i || best_needs_copy ) ) || ( cm -> interp_filter != SWITCHABLE && ( cm -> interp_filter == mbmi -> interp_filter || ( i == 0 && intpel_mv ) ) ) ) {\n restore_dst_buf ( xd , orig_dst , orig_dst_stride ) ;\n }\n else {\n for ( j = 0 ;\n j < MAX_MB_PLANE ;\n j ++ ) {\n xd -> plane [ j ] . dst . buf = tmp_buf + j * 64 * 64 ;\n xd -> plane [ j ] . dst . stride = 64 ;\n }\n }\n vp9_build_inter_predictors_sb ( xd , mi_row , mi_col , bsize ) ;\n model_rd_for_sb ( cpi , bsize , x , xd , & rate_sum , & dist_sum ) ;\n rd = RDCOST ( x -> rdmult , x -> rddiv , rate_sum , dist_sum ) ;\n rd_opt -> filter_cache [ i ] = rd ;\n rd_opt -> filter_cache [ SWITCHABLE_FILTERS ] = MIN ( rd_opt -> filter_cache [ SWITCHABLE_FILTERS ] , rd + rs_rd ) ;\n if ( cm -> interp_filter == SWITCHABLE ) rd += rs_rd ;\n rd_opt -> mask_filter = MAX ( rd_opt -> mask_filter , rd ) ;\n if ( i == 0 && intpel_mv ) {\n tmp_rate_sum = rate_sum ;\n tmp_dist_sum = dist_sum ;\n }\n }\n if ( i == 0 && cpi -> sf . use_rd_breakout && ref_best_rd < INT64_MAX ) {\n if ( rd / 2 > ref_best_rd ) {\n restore_dst_buf ( xd , orig_dst , orig_dst_stride ) ;\n return INT64_MAX ;\n }\n }\n newbest = i == 0 || rd < best_rd ;\n if ( newbest ) {\n best_rd = rd ;\n best_filter = mbmi -> interp_filter ;\n if ( cm -> interp_filter == SWITCHABLE && i && ! intpel_mv ) best_needs_copy = ! best_needs_copy ;\n vpx_memcpy ( skip_txfm , x -> skip_txfm , sizeof ( skip_txfm ) ) ;\n vpx_memcpy ( bsse , x -> bsse , sizeof ( bsse ) ) ;\n }\n if ( ( cm -> interp_filter == SWITCHABLE && newbest ) || ( cm -> interp_filter != SWITCHABLE && cm -> interp_filter == mbmi -> interp_filter ) ) {\n pred_exists = 1 ;\n tmp_rd = best_rd ;\n }\n }\n restore_dst_buf ( xd , orig_dst , orig_dst_stride ) ;\n }\n }\n mbmi -> interp_filter = cm -> interp_filter != SWITCHABLE ? cm -> interp_filter : best_filter ;\n rs = cm -> interp_filter == SWITCHABLE ? vp9_get_switchable_rate ( cpi ) : 0 ;\n if ( pred_exists ) {\n if ( best_needs_copy ) {\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n i ++ ) {\n xd -> plane [ i ] . dst . buf = tmp_buf + i * 64 * 64 ;\n xd -> plane [ i ] . dst . stride = 64 ;\n }\n }\n rd = tmp_rd + RDCOST ( x -> rdmult , x -> rddiv , rs , 0 ) ;\n }\n else {\n int tmp_rate ;\n int64_t tmp_dist ;\n vp9_build_inter_predictors_sb ( xd , mi_row , mi_col , bsize ) ;\n model_rd_for_sb ( cpi , bsize , x , xd , & tmp_rate , & tmp_dist ) ;\n rd = RDCOST ( x -> rdmult , x -> rddiv , rs + tmp_rate , tmp_dist ) ;\n vpx_memcpy ( skip_txfm , x -> skip_txfm , sizeof ( skip_txfm ) ) ;\n vpx_memcpy ( bsse , x -> bsse , sizeof ( bsse ) ) ;\n }\n if ( ! is_comp_pred ) single_filter [ this_mode ] [ refs [ 0 ] ] = mbmi -> interp_filter ;\n if ( cpi -> sf . adaptive_mode_search ) if ( is_comp_pred ) if ( single_skippable [ this_mode ] [ refs [ 0 ] ] && single_skippable [ this_mode ] [ refs [ 1 ] ] ) vpx_memset ( skip_txfm , 1 , sizeof ( skip_txfm ) ) ;\n if ( cpi -> sf . use_rd_breakout && ref_best_rd < INT64_MAX ) {\n if ( rd / 2 > ref_best_rd ) {\n restore_dst_buf ( xd , orig_dst , orig_dst_stride ) ;\n return INT64_MAX ;\n }\n }\n if ( cm -> interp_filter == SWITCHABLE ) * rate2 += rs ;\n if ( ! is_comp_pred ) {\n if ( cpi -> allow_encode_breakout ) rd_encode_breakout_test ( cpi , x , bsize , rate2 , distortion , distortion_uv , disable_skip ) ;\n }\n vpx_memcpy ( x -> skip_txfm , skip_txfm , sizeof ( skip_txfm ) ) ;\n vpx_memcpy ( x -> bsse , bsse , sizeof ( bsse ) ) ;\n if ( ! x -> skip ) {\n int skippable_y , skippable_uv ;\n int64_t sseuv = INT64_MAX ;\n int64_t rdcosty = INT64_MAX ;\n vp9_subtract_plane ( x , bsize , 0 ) ;\n super_block_yrd ( cpi , x , rate_y , distortion_y , & skippable_y , psse , bsize , txfm_cache , ref_best_rd ) ;\n if ( * rate_y == INT_MAX ) {\n * rate2 = INT_MAX ;\n * distortion = INT64_MAX ;\n restore_dst_buf ( xd , orig_dst , orig_dst_stride ) ;\n return INT64_MAX ;\n }\n * rate2 += * rate_y ;\n * distortion += * distortion_y ;\n rdcosty = RDCOST ( x -> rdmult , x -> rddiv , * rate2 , * distortion ) ;\n rdcosty = MIN ( rdcosty , RDCOST ( x -> rdmult , x -> rddiv , 0 , * psse ) ) ;\n super_block_uvrd ( cpi , x , rate_uv , distortion_uv , & skippable_uv , & sseuv , bsize , ref_best_rd - rdcosty ) ;\n if ( * rate_uv == INT_MAX ) {\n * rate2 = INT_MAX ;\n * distortion = INT64_MAX ;\n restore_dst_buf ( xd , orig_dst , orig_dst_stride ) ;\n return INT64_MAX ;\n }\n * psse += sseuv ;\n * rate2 += * rate_uv ;\n * distortion += * distortion_uv ;\n * skippable = skippable_y && skippable_uv ;\n }\n if ( ! is_comp_pred ) single_skippable [ this_mode ] [ refs [ 0 ] ] = * skippable ;\n restore_dst_buf ( xd , orig_dst , orig_dst_stride ) ;\n return this_rd ;\n }"}
{"idx": 5590, "target": 0, "func": "static inline PixelTrait GetPixelCbTraits ( const Image * restrict image ) {\n return ( image -> channel_map [ CbPixelChannel ] . traits ) ;\n }"}
{"idx": 5591, "target": 0, "func": "static gboolean all_streams_prerolled ( GstASFDemux * demux ) {\n GstClockTime preroll_time ;\n guint i , num_no_data = 0 ;\n preroll_time = MAX ( demux -> preroll , 500 * GST_MSECOND ) ;\n for ( i = 0 ;\n i < demux -> num_streams ;\n ++ i ) {\n AsfPayload * last_payload = NULL ;\n AsfStream * stream ;\n gint last_idx ;\n stream = & demux -> stream [ i ] ;\n if ( G_UNLIKELY ( stream -> payloads -> len == 0 ) ) {\n ++ num_no_data ;\n GST_LOG_OBJECT ( stream -> pad , \"no data queued\" ) ;\n continue ;\n }\n for ( last_idx = stream -> payloads -> len - 1 ;\n last_idx >= 0 && ( last_payload == NULL || ! GST_CLOCK_TIME_IS_VALID ( last_payload -> ts ) ) ;\n -- last_idx ) {\n last_payload = & g_array_index ( stream -> payloads , AsfPayload , last_idx ) ;\n }\n GST_LOG_OBJECT ( stream -> pad , \"checking if %\" GST_TIME_FORMAT \" > %\" GST_TIME_FORMAT , GST_TIME_ARGS ( last_payload -> ts ) , GST_TIME_ARGS ( preroll_time ) ) ;\n if ( G_UNLIKELY ( ! GST_CLOCK_TIME_IS_VALID ( last_payload -> ts ) || last_payload -> ts <= preroll_time ) ) {\n GST_LOG_OBJECT ( stream -> pad , \"not beyond preroll point yet\" ) ;\n return FALSE ;\n }\n }\n if ( G_UNLIKELY ( num_no_data > 0 ) ) return FALSE ;\n return TRUE ;\n }"}
{"idx": 5592, "target": 1, "func": "static void initial_reordering_consonant_syllable ( const hb_ot_shape_plan_t * plan , hb_face_t * face , hb_buffer_t * buffer , unsigned int start , unsigned int end ) {\n hb_glyph_info_t * info = buffer -> info ;\n unsigned int base = end ;\n bool has_reph = false ;\n {\n unsigned int limit = start ;\n if ( start + 3 <= end && info [ start ] . myanmar_category ( ) == OT_Ra && info [ start + 1 ] . myanmar_category ( ) == OT_As && info [ start + 2 ] . myanmar_category ( ) == OT_H ) {\n limit += 3 ;\n base = start ;\n has_reph = true ;\n }\n {\n if ( ! has_reph ) base = limit ;\n for ( unsigned int i = limit ;\n i < end ;\n i ++ ) if ( is_consonant ( info [ i ] ) ) {\n base = i ;\n break ;\n }\n }\n }\n {\n unsigned int i = start ;\n for ( ;\n i < start + ( has_reph ? 3 : 0 ) ;\n i ++ ) info [ i ] . myanmar_position ( ) = POS_AFTER_MAIN ;\n for ( ;\n i < base ;\n i ++ ) info [ i ] . myanmar_position ( ) = POS_PRE_C ;\n if ( i < end ) {\n info [ i ] . myanmar_position ( ) = POS_BASE_C ;\n i ++ ;\n }\n indic_position_t pos = POS_AFTER_MAIN ;\n for ( ;\n i < end ;\n i ++ ) {\n if ( info [ i ] . myanmar_category ( ) == OT_MR ) {\n info [ i ] . myanmar_position ( ) = POS_PRE_C ;\n continue ;\n }\n if ( info [ i ] . myanmar_position ( ) < POS_BASE_C ) {\n continue ;\n }\n if ( pos == POS_AFTER_MAIN && info [ i ] . myanmar_category ( ) == OT_VBlw ) {\n pos = POS_BELOW_C ;\n info [ i ] . myanmar_position ( ) = pos ;\n continue ;\n }\n if ( pos == POS_BELOW_C && info [ i ] . myanmar_category ( ) == OT_A ) {\n info [ i ] . myanmar_position ( ) = POS_BEFORE_SUB ;\n continue ;\n }\n if ( pos == POS_BELOW_C && info [ i ] . myanmar_category ( ) == OT_VBlw ) {\n info [ i ] . myanmar_position ( ) = pos ;\n continue ;\n }\n if ( pos == POS_BELOW_C && info [ i ] . myanmar_category ( ) != OT_A ) {\n pos = POS_AFTER_SUB ;\n info [ i ] . myanmar_position ( ) = pos ;\n continue ;\n }\n info [ i ] . myanmar_position ( ) = pos ;\n }\n }\n buffer -> merge_clusters ( start , end ) ;\n hb_bubble_sort ( info + start , end - start , compare_myanmar_order ) ;\n }"}
{"idx": 5593, "target": 0, "func": "static int dissect_rsl_ie_timing_adv ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_tree * ie_tree ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_TIMING_ADV ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 2 , ett_ie_timing_adv , NULL , \"Timing Advance IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_timing_adv , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n return offset ;\n }"}
{"idx": 5594, "target": 1, "func": "static void _UTF16BEReset ( UConverter * cnv , UConverterResetChoice choice ) {\n if ( choice <= UCNV_RESET_TO_UNICODE ) {\n if ( UCNV_GET_VERSION ( cnv ) == 0 ) {\n cnv -> mode = 8 ;\n }\n else {\n cnv -> mode = 0 ;\n }\n }\n if ( choice != UCNV_RESET_TO_UNICODE && UCNV_GET_VERSION ( cnv ) == 1 ) {\n cnv -> fromUnicodeStatus = UCNV_NEED_TO_WRITE_BOM ;\n }\n }"}
{"idx": 5595, "target": 0, "func": "static void convert_zerofill_number_to_string ( Item * * item , Field_num * field ) {\n char buff [ MAX_FIELD_WIDTH ] , * pos ;\n String tmp ( buff , sizeof ( buff ) , field -> charset ( ) ) , * res ;\n res = ( * item ) -> val_str ( & tmp ) ;\n if ( ( * item ) -> is_null ( ) ) * item = new Item_null ( ) ;\n else {\n field -> prepend_zeros ( res ) ;\n pos = ( char * ) sql_strmake ( res -> ptr ( ) , res -> length ( ) ) ;\n * item = new Item_string ( pos , res -> length ( ) , field -> charset ( ) ) ;\n }\n }"}
{"idx": 5596, "target": 0, "func": "static void pxa2xx_reset ( void * opaque , int line , int level ) {\n PXA2xxState * s = ( PXA2xxState * ) opaque ;\n if ( level && ( s -> pm_regs [ PCFR >> 2 ] & 0x10 ) ) {\n cpu_reset ( CPU ( s -> cpu ) ) ;\n }\n }"}
{"idx": 5597, "target": 1, "func": "extern int name ( int , locale_t ) __THROW __exctype_l ( isalnum_l ) ;\n __exctype_l ( isalpha_l ) ;\n __exctype_l ( iscntrl_l ) ;\n __exctype_l ( isdigit_l )"}
{"idx": 5598, "target": 0, "func": "static void pdf_run_Tj ( fz_context * ctx , pdf_processor * proc , char * string , int string_len ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_show_string ( ctx , pr , ( unsigned char * ) string , string_len ) ;\n }"}
{"idx": 5599, "target": 0, "func": "static int zcvrs ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n int radix ;\n check_type ( op [ - 1 ] , t_integer ) ;\n if ( op [ - 1 ] . value . intval < 2 || op [ - 1 ] . value . intval > 36 ) return_error ( gs_error_rangecheck ) ;\n radix = op [ - 1 ] . value . intval ;\n check_write_type ( * op , t_string ) ;\n if ( radix == 10 ) {\n switch ( r_type ( op - 2 ) ) {\n case t_integer : case t_real : {\n int code = convert_to_string ( imemory , op - 2 , op ) ;\n if ( code < 0 ) return code ;\n pop ( 2 ) ;\n return 0 ;\n }\n case t__invalid : return_error ( gs_error_stackunderflow ) ;\n default : return_error ( gs_error_rangecheck ) ;\n }\n }\n else {\n uint ival ;\n byte digits [ sizeof ( ulong ) * 8 ] ;\n byte * endp = & digits [ countof ( digits ) ] ;\n byte * dp = endp ;\n switch ( r_type ( op - 2 ) ) {\n case t_integer : ival = ( uint ) op [ - 2 ] . value . intval ;\n break ;\n case t_real : {\n float fval = op [ - 2 ] . value . realval ;\n if ( ! REAL_CAN_BE_INT ( fval ) ) return_error ( gs_error_rangecheck ) ;\n ival = ( ulong ) ( long ) fval ;\n }\n break ;\n case t__invalid : return_error ( gs_error_stackunderflow ) ;\n default : return_error ( gs_error_rangecheck ) ;\n }\n do {\n int dit = ival % radix ;\n * -- dp = dit + ( dit < 10 ? '0' : ( 'A' - 10 ) ) ;\n ival /= radix ;\n }\n while ( ival ) ;\n if ( endp - dp > r_size ( op ) ) return_error ( gs_error_rangecheck ) ;\n memcpy ( op -> value . bytes , dp , ( uint ) ( endp - dp ) ) ;\n r_set_size ( op , endp - dp ) ;\n }\n op [ - 2 ] = * op ;\n pop ( 2 ) ;\n return 0 ;\n }"}
{"idx": 5600, "target": 0, "func": "static void cirrus_mem_writeb_mode4and5_8bpp ( CirrusVGAState * s , unsigned mode , unsigned offset , uint32_t mem_value ) {\n int x ;\n unsigned val = mem_value ;\n uint8_t * dst ;\n for ( x = 0 ;\n x < 8 ;\n x ++ ) {\n dst = s -> vga . vram_ptr + ( ( offset + x ) & s -> cirrus_addr_mask ) ;\n if ( val & 0x80 ) {\n * dst = s -> cirrus_shadow_gr1 ;\n }\n else if ( mode == 5 ) {\n * dst = s -> cirrus_shadow_gr0 ;\n }\n val <<= 1 ;\n }\n memory_region_set_dirty ( & s -> vga . vram , offset , 8 ) ;\n }"}
{"idx": 5601, "target": 0, "func": "int qemuMonitorJSONAddDevice ( qemuMonitorPtr mon , const char * devicestr ) {\n int ret = - 1 ;\n virJSONValuePtr cmd ;\n virJSONValuePtr reply = NULL ;\n virJSONValuePtr args ;\n cmd = qemuMonitorJSONMakeCommand ( \"device_add\" , NULL ) ;\n if ( ! cmd ) return - 1 ;\n args = qemuMonitorJSONKeywordStringToJSON ( devicestr , \"driver\" ) ;\n if ( ! args ) goto cleanup ;\n if ( virJSONValueObjectAppend ( cmd , \"arguments\" , args ) < 0 ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n args = NULL ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n cleanup : virJSONValueFree ( args ) ;\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 5602, "target": 0, "func": "int evsignal_init ( struct event_base * base ) {\n int i ;\n if ( evutil_socketpair ( AF_UNIX , SOCK_STREAM , 0 , base -> sig . ev_signal_pair ) == - 1 ) {\n # ifdef WIN32 event_warn ( \"%s: socketpair\" , __func__ ) ;\n # else event_err ( 1 , \"%s: socketpair\" , __func__ ) ;\n # endif return - 1 ;\n }\n FD_CLOSEONEXEC ( base -> sig . ev_signal_pair [ 0 ] ) ;\n FD_CLOSEONEXEC ( base -> sig . ev_signal_pair [ 1 ] ) ;\n base -> sig . sh_old = NULL ;\n base -> sig . sh_old_max = 0 ;\n base -> sig . evsignal_caught = 0 ;\n memset ( & base -> sig . evsigcaught , 0 , sizeof ( sig_atomic_t ) * NSIG ) ;\n for ( i = 0 ;\n i < NSIG ;\n ++ i ) TAILQ_INIT ( & base -> sig . evsigevents [ i ] ) ;\n evutil_make_socket_nonblocking ( base -> sig . ev_signal_pair [ 0 ] ) ;\n evutil_make_socket_nonblocking ( base -> sig . ev_signal_pair [ 1 ] ) ;\n event_set ( & base -> sig . ev_signal , base -> sig . ev_signal_pair [ 1 ] , EV_READ | EV_PERSIST , evsignal_cb , & base -> sig . ev_signal ) ;\n base -> sig . ev_signal . ev_base = base ;\n base -> sig . ev_signal . ev_flags |= EVLIST_INTERNAL ;\n return 0 ;\n }"}
{"idx": 5603, "target": 0, "func": "static int pdo_stmt_iter_valid ( zend_object_iterator * iter TSRMLS_DC ) {\n struct php_pdo_iterator * I = ( struct php_pdo_iterator * ) iter -> data ;\n return I -> fetch_ahead ? SUCCESS : FAILURE ;\n }"}
{"idx": 5604, "target": 0, "func": "static int zexecstack2 ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n check_type ( * op , t_boolean ) ;\n return push_execstack ( i_ctx_p , op - 1 , op -> value . boolval , execstack2_continue ) ;\n }"}
{"idx": 5605, "target": 0, "func": "static int vorbis_parse_setup_hdr ( vorbis_context * vc ) {\n GetBitContext * gb = & vc -> gb ;\n int ret ;\n if ( ( get_bits ( gb , 8 ) != 'v' ) || ( get_bits ( gb , 8 ) != 'o' ) || ( get_bits ( gb , 8 ) != 'r' ) || ( get_bits ( gb , 8 ) != 'b' ) || ( get_bits ( gb , 8 ) != 'i' ) || ( get_bits ( gb , 8 ) != 's' ) ) {\n av_log ( vc -> avctx , AV_LOG_ERROR , \" Vorbis setup header packet corrupt (no vorbis signature). \\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ( ret = vorbis_parse_setup_hdr_codebooks ( vc ) ) ) {\n av_log ( vc -> avctx , AV_LOG_ERROR , \" Vorbis setup header packet corrupt (codebooks). \\n\" ) ;\n return ret ;\n }\n if ( ( ret = vorbis_parse_setup_hdr_tdtransforms ( vc ) ) ) {\n av_log ( vc -> avctx , AV_LOG_ERROR , \" Vorbis setup header packet corrupt (time domain transforms). \\n\" ) ;\n return ret ;\n }\n if ( ( ret = vorbis_parse_setup_hdr_floors ( vc ) ) ) {\n av_log ( vc -> avctx , AV_LOG_ERROR , \" Vorbis setup header packet corrupt (floors). \\n\" ) ;\n return ret ;\n }\n if ( ( ret = vorbis_parse_setup_hdr_residues ( vc ) ) ) {\n av_log ( vc -> avctx , AV_LOG_ERROR , \" Vorbis setup header packet corrupt (residues). \\n\" ) ;\n return ret ;\n }\n if ( ( ret = vorbis_parse_setup_hdr_mappings ( vc ) ) ) {\n av_log ( vc -> avctx , AV_LOG_ERROR , \" Vorbis setup header packet corrupt (mappings). \\n\" ) ;\n return ret ;\n }\n if ( ( ret = vorbis_parse_setup_hdr_modes ( vc ) ) ) {\n av_log ( vc -> avctx , AV_LOG_ERROR , \" Vorbis setup header packet corrupt (modes). \\n\" ) ;\n return ret ;\n }\n if ( ! get_bits1 ( gb ) ) {\n av_log ( vc -> avctx , AV_LOG_ERROR , \" Vorbis setup header packet corrupt (framing flag). \\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n return 0 ;\n }"}
{"idx": 5606, "target": 0, "func": "static int selinux_task_setscheduler ( struct task_struct * p ) {\n return current_has_perm ( p , PROCESS__SETSCHED ) ;\n }"}
{"idx": 5607, "target": 0, "func": "static inline int mpeg4_is_resync ( MpegEncContext * s ) {\n int bits_count = get_bits_count ( & s -> gb ) ;\n int v = show_bits ( & s -> gb , 16 ) ;\n if ( s -> workaround_bugs & FF_BUG_NO_PADDING ) {\n return 0 ;\n }\n while ( v <= 0xFF ) {\n if ( s -> pict_type == AV_PICTURE_TYPE_B || ( v >> ( 8 - s -> pict_type ) != 1 ) || s -> partitioned_frame ) break ;\n skip_bits ( & s -> gb , 8 + s -> pict_type ) ;\n bits_count += 8 + s -> pict_type ;\n v = show_bits ( & s -> gb , 16 ) ;\n }\n if ( bits_count + 8 >= s -> gb . size_in_bits ) {\n v >>= 8 ;\n v |= 0x7F >> ( 7 - ( bits_count & 7 ) ) ;\n if ( v == 0x7F ) return 1 ;\n }\n else {\n if ( v == ff_mpeg4_resync_prefix [ bits_count & 7 ] ) {\n int len ;\n GetBitContext gb = s -> gb ;\n skip_bits ( & s -> gb , 1 ) ;\n align_get_bits ( & s -> gb ) ;\n for ( len = 0 ;\n len < 32 ;\n len ++ ) {\n if ( get_bits1 ( & s -> gb ) ) break ;\n }\n s -> gb = gb ;\n if ( len >= ff_mpeg4_get_video_packet_prefix_length ( s ) ) return 1 ;\n }\n }\n return 0 ;\n }"}
{"idx": 5608, "target": 0, "func": "static int proc_submiturb ( struct usb_dev_state * ps , void __user * arg ) {\n struct usbdevfs_urb uurb ;\n if ( copy_from_user ( & uurb , arg , sizeof ( uurb ) ) ) return - EFAULT ;\n return proc_do_submiturb ( ps , & uurb , ( ( ( struct usbdevfs_urb __user * ) arg ) -> iso_frame_desc ) , arg ) ;\n }"}
{"idx": 5609, "target": 0, "func": "static void print_tab_data ( MYSQL_RES * result ) {\n MYSQL_ROW cur ;\n MYSQL_FIELD * field ;\n ulong * lengths ;\n if ( opt_silent < 2 && column_names ) {\n int first = 0 ;\n while ( ( field = mysql_fetch_field ( result ) ) ) {\n if ( first ++ ) ( void ) tee_fputs ( \"\\t\" , PAGER ) ;\n ( void ) tee_fputs ( field -> name , PAGER ) ;\n }\n ( void ) tee_fputs ( \"\\n\" , PAGER ) ;\n }\n while ( ( cur = mysql_fetch_row ( result ) ) ) {\n lengths = mysql_fetch_lengths ( result ) ;\n safe_put_field ( cur [ 0 ] , lengths [ 0 ] ) ;\n for ( uint off = 1 ;\n off < mysql_num_fields ( result ) ;\n off ++ ) {\n ( void ) tee_fputs ( \"\\t\" , PAGER ) ;\n safe_put_field ( cur [ off ] , lengths [ off ] ) ;\n }\n ( void ) tee_fputs ( \"\\n\" , PAGER ) ;\n }\n }"}
{"idx": 5610, "target": 0, "func": "void remoteStreamMessageFinished ( struct qemud_client * client , struct qemud_client_message * msg ) {\n struct qemud_client_stream * stream = client -> streams ;\n while ( stream ) {\n if ( msg -> hdr . proc == stream -> procedure && msg -> hdr . serial == stream -> serial ) break ;\n stream = stream -> next ;\n }\n VIR_DEBUG ( \"Message client=%p stream=%p proc=%d serial=%d\" , client , stream , msg -> hdr . proc , msg -> hdr . serial ) ;\n if ( stream ) {\n stream -> tx = 1 ;\n remoteStreamUpdateEvents ( stream ) ;\n }\n }"}
{"idx": 5611, "target": 1, "func": "static void inverse_transform_block ( MACROBLOCKD * xd , int plane , int block , TX_SIZE tx_size , uint8_t * dst , int stride , int eob ) {\n struct macroblockd_plane * const pd = & xd -> plane [ plane ] ;\n if ( eob > 0 ) {\n TX_TYPE tx_type = DCT_DCT ;\n int16_t * const dqcoeff = BLOCK_OFFSET ( pd -> dqcoeff , block ) ;\n if ( xd -> lossless ) {\n tx_type = DCT_DCT ;\n vp9_iwht4x4_add ( dqcoeff , dst , stride , eob ) ;\n }\n else {\n const PLANE_TYPE plane_type = pd -> plane_type ;\n switch ( tx_size ) {\n case TX_4X4 : tx_type = get_tx_type_4x4 ( plane_type , xd , block ) ;\n vp9_iht4x4_add ( tx_type , dqcoeff , dst , stride , eob ) ;\n break ;\n case TX_8X8 : tx_type = get_tx_type ( plane_type , xd ) ;\n vp9_iht8x8_add ( tx_type , dqcoeff , dst , stride , eob ) ;\n break ;\n case TX_16X16 : tx_type = get_tx_type ( plane_type , xd ) ;\n vp9_iht16x16_add ( tx_type , dqcoeff , dst , stride , eob ) ;\n break ;\n case TX_32X32 : tx_type = DCT_DCT ;\n vp9_idct32x32_add ( dqcoeff , dst , stride , eob ) ;\n break ;\n default : assert ( 0 && \"Invalid transform size\" ) ;\n }\n }\n if ( eob == 1 ) {\n vpx_memset ( dqcoeff , 0 , 2 * sizeof ( dqcoeff [ 0 ] ) ) ;\n }\n else {\n if ( tx_type == DCT_DCT && tx_size <= TX_16X16 && eob <= 10 ) vpx_memset ( dqcoeff , 0 , 4 * ( 4 << tx_size ) * sizeof ( dqcoeff [ 0 ] ) ) ;\n else if ( tx_size == TX_32X32 && eob <= 34 ) vpx_memset ( dqcoeff , 0 , 256 * sizeof ( dqcoeff [ 0 ] ) ) ;\n else vpx_memset ( dqcoeff , 0 , ( 16 << ( tx_size << 1 ) ) * sizeof ( dqcoeff [ 0 ] ) ) ;\n }\n }\n }"}
{"idx": 5612, "target": 0, "func": "TEST_F ( IconLabelBubbleViewTest , SecondClick ) {\n generator ( ) -> PressLeftButton ( ) ;\n EXPECT_FALSE ( view ( ) -> IsBubbleShowing ( ) ) ;\n generator ( ) -> ReleaseLeftButton ( ) ;\n EXPECT_TRUE ( view ( ) -> IsBubbleShowing ( ) ) ;\n generator ( ) -> PressLeftButton ( ) ;\n view ( ) -> HideBubble ( ) ;\n EXPECT_FALSE ( view ( ) -> IsBubbleShowing ( ) ) ;\n generator ( ) -> ReleaseLeftButton ( ) ;\n }"}
{"idx": 5613, "target": 0, "func": "void set_wild_chars ( my_bool set ) {\n static char old_many = 0 , old_one , old_prefix ;\n if ( set ) {\n if ( wild_many == '*' ) return ;\n old_many = wild_many ;\n old_one = wild_one ;\n old_prefix = wild_prefix ;\n wild_many = '*' ;\n wild_one = '?' ;\n wild_prefix = 0 ;\n }\n else {\n if ( ! old_many ) return ;\n wild_many = old_many ;\n wild_one = old_one ;\n wild_prefix = old_prefix ;\n }\n }"}
{"idx": 5614, "target": 0, "func": "static void decode_gain_info ( GetBitContext * gb , int * gaininfo ) {\n int i , n ;\n while ( get_bits1 ( gb ) ) {\n }\n n = get_bits_count ( gb ) - 1 ;\n i = 0 ;\n while ( n -- ) {\n int index = get_bits ( gb , 3 ) ;\n int gain = get_bits1 ( gb ) ? get_bits ( gb , 4 ) - 7 : - 1 ;\n while ( i <= index ) gaininfo [ i ++ ] = gain ;\n }\n while ( i <= 8 ) gaininfo [ i ++ ] = 0 ;\n }"}
{"idx": 5615, "target": 0, "func": "static VALUE ossl_asn1_ ## klass ( int argc , VALUE * argv , VALUE self ) \\ {\n return rb_funcall3 ( cASN1 ## klass , rb_intern ( \"new\" ) , argc , argv ) ;\n }\n OSSL_ASN1_IMPL_FACTORY_METHOD ( Boolean ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Integer ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Enumerated ) OSSL_ASN1_IMPL_FACTORY_METHOD ( BitString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( OctetString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( UTF8String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( NumericString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( PrintableString )"}
{"idx": 5616, "target": 1, "func": "SPL_METHOD ( SplFileObject , next ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n spl_filesystem_file_free_line ( intern TSRMLS_CC ) ;\n if ( SPL_HAS_FLAG ( intern -> flags , SPL_FILE_OBJECT_READ_AHEAD ) ) {\n spl_filesystem_file_read_line ( getThis ( ) , intern , 1 TSRMLS_CC ) ;\n }\n intern -> u . file . current_line_num ++ ;\n }"}
{"idx": 5617, "target": 0, "func": "static int calc_pframe_target_size_one_pass_vbr ( const VP9_COMP * const cpi ) {\n static const int af_ratio = 10 ;\n const RATE_CONTROL * const rc = & cpi -> rc ;\n int target ;\n # if USE_ALTREF_FOR_ONE_PASS target = ( ! rc -> is_src_frame_alt_ref && ( cpi -> refresh_golden_frame || cpi -> refresh_alt_ref_frame ) ) ? ( rc -> avg_frame_bandwidth * rc -> baseline_gf_interval * af_ratio ) / ( rc -> baseline_gf_interval + af_ratio - 1 ) : ( rc -> avg_frame_bandwidth * rc -> baseline_gf_interval ) / ( rc -> baseline_gf_interval + af_ratio - 1 ) ;\n # else target = rc -> avg_frame_bandwidth ;\n # endif return vp9_rc_clamp_pframe_target_size ( cpi , target ) ;\n }"}
{"idx": 5618, "target": 0, "func": "static void get_object_list ( int ac , const char * * av ) {\n struct rev_info revs ;\n char line [ 1000 ] ;\n int flags = 0 ;\n init_revisions ( & revs , NULL ) ;\n save_commit_buffer = 0 ;\n setup_revisions ( ac , av , & revs , NULL ) ;\n is_repository_shallow ( ) ;\n while ( fgets ( line , sizeof ( line ) , stdin ) != NULL ) {\n int len = strlen ( line ) ;\n if ( len && line [ len - 1 ] == '\\n' ) line [ -- len ] = 0 ;\n if ( ! len ) break ;\n if ( * line == '-' ) {\n if ( ! strcmp ( line , \"--not\" ) ) {\n flags ^= UNINTERESTING ;\n write_bitmap_index = 0 ;\n continue ;\n }\n if ( starts_with ( line , \"--shallow \" ) ) {\n unsigned char sha1 [ 20 ] ;\n if ( get_sha1_hex ( line + 10 , sha1 ) ) die ( \"not an SHA-1 '%s'\" , line + 10 ) ;\n register_shallow ( sha1 ) ;\n use_bitmap_index = 0 ;\n continue ;\n }\n die ( \"not a rev '%s'\" , line ) ;\n }\n if ( handle_revision_arg ( line , & revs , flags , REVARG_CANNOT_BE_FILENAME ) ) die ( \"bad revision '%s'\" , line ) ;\n }\n if ( use_bitmap_index && ! get_object_list_from_bitmap ( & revs ) ) return ;\n if ( prepare_revision_walk ( & revs ) ) die ( \"revision walk setup failed\" ) ;\n mark_edges_uninteresting ( & revs , show_edge ) ;\n traverse_commit_list ( & revs , show_commit , show_object , NULL ) ;\n if ( unpack_unreachable_expiration ) {\n revs . ignore_missing_links = 1 ;\n if ( add_unseen_recent_objects_to_traversal ( & revs , unpack_unreachable_expiration ) ) die ( \"unable to add recent objects\" ) ;\n if ( prepare_revision_walk ( & revs ) ) die ( \"revision walk setup failed\" ) ;\n traverse_commit_list ( & revs , record_recent_commit , record_recent_object , NULL ) ;\n }\n if ( keep_unreachable ) add_objects_in_unpacked_packs ( & revs ) ;\n if ( unpack_unreachable ) loosen_unused_packed_objects ( & revs ) ;\n sha1_array_clear ( & recent_objects ) ;\n }"}
{"idx": 5619, "target": 0, "func": "static void php_zip_entry_get_info ( INTERNAL_FUNCTION_PARAMETERS , int opt ) {\n zval * zip_entry ;\n zip_read_rsrc * zr_rsrc ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"r\" , & zip_entry ) == FAILURE ) {\n return ;\n }\n ZEND_FETCH_RESOURCE ( zr_rsrc , zip_read_rsrc * , & zip_entry , - 1 , le_zip_entry_name , le_zip_entry ) ;\n if ( ! zr_rsrc -> zf ) {\n RETURN_FALSE ;\n }\n switch ( opt ) {\n case 0 : RETURN_STRING ( ( char * ) zr_rsrc -> sb . name , 1 ) ;\n break ;\n case 1 : RETURN_LONG ( ( long ) ( zr_rsrc -> sb . comp_size ) ) ;\n break ;\n case 2 : RETURN_LONG ( ( long ) ( zr_rsrc -> sb . size ) ) ;\n break ;\n case 3 : switch ( zr_rsrc -> sb . comp_method ) {\n case 0 : RETURN_STRING ( \"stored\" , 1 ) ;\n break ;\n case 1 : RETURN_STRING ( \"shrunk\" , 1 ) ;\n break ;\n case 2 : case 3 : case 4 : case 5 : RETURN_STRING ( \"reduced\" , 1 ) ;\n break ;\n case 6 : RETURN_STRING ( \"imploded\" , 1 ) ;\n break ;\n case 7 : RETURN_STRING ( \"tokenized\" , 1 ) ;\n break ;\n case 8 : RETURN_STRING ( \"deflated\" , 1 ) ;\n break ;\n case 9 : RETURN_STRING ( \"deflatedX\" , 1 ) ;\n break ;\n case 10 : RETURN_STRING ( \"implodedX\" , 1 ) ;\n break ;\n default : RETURN_FALSE ;\n }\n RETURN_LONG ( ( long ) ( zr_rsrc -> sb . comp_method ) ) ;\n break ;\n }\n }"}
{"idx": 5620, "target": 0, "func": "static VALUE join_der ( VALUE enumerable ) {\n VALUE str = rb_str_new ( 0 , 0 ) ;\n rb_block_call ( enumerable , rb_intern ( \"each\" ) , 0 , 0 , join_der_i , str ) ;\n return str ;\n }"}
{"idx": 5621, "target": 0, "func": "static int try_dissect_unknown_ber ( packet_info * pinfo , tvbuff_t * tvb , volatile int offset , proto_tree * tree , gint nest_level ) {\n int start_offset ;\n gint8 ber_class ;\n gboolean pc , ind ;\n gint32 tag ;\n guint32 len ;\n int hdr_len ;\n proto_item * item = NULL ;\n proto_tree * next_tree = NULL ;\n guint8 c ;\n guint32 i ;\n gboolean is_printable ;\n volatile gboolean is_decoded_as ;\n proto_item * pi , * cause ;\n asn1_ctx_t asn1_ctx ;\n if ( nest_level > BER_MAX_NESTING ) {\n THROW ( ReportedBoundsError ) ;\n }\n start_offset = offset ;\n asn1_ctx_init ( & asn1_ctx , ASN1_ENC_BER , TRUE , pinfo ) ;\n offset = get_ber_identifier ( tvb , offset , & ber_class , & pc , & tag ) ;\n offset = get_ber_length ( tvb , offset , & len , & ind ) ;\n if ( len > ( guint32 ) tvb_reported_length_remaining ( tvb , offset ) ) {\n if ( show_internal_ber_fields ) {\n offset = dissect_ber_identifier ( pinfo , tree , tvb , start_offset , & ber_class , & pc , & tag ) ;\n offset = dissect_ber_length ( pinfo , tree , tvb , offset , & len , NULL ) ;\n }\n cause = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset , len , \"illegal_length\" , \"length:%u longer than tvb_reported_length_remaining:%d\" , len , tvb_reported_length_remaining ( tvb , offset ) ) ;\n expert_add_info ( pinfo , cause , & ei_ber_error_length ) ;\n return tvb_reported_length ( tvb ) ;\n }\n switch ( pc ) {\n case FALSE : switch ( ber_class ) {\n case BER_CLASS_UNI : switch ( tag ) {\n case BER_UNI_TAG_EOC : break ;\n case BER_UNI_TAG_INTEGER : offset = dissect_ber_integer ( FALSE , & asn1_ctx , tree , tvb , start_offset , hf_ber_unknown_INTEGER , NULL ) ;\n break ;\n case BER_UNI_TAG_REAL : offset = dissect_ber_real ( FALSE , & asn1_ctx , tree , tvb , start_offset , hf_ber_unknown_REAL , NULL ) ;\n break ;\n case BER_UNI_TAG_BITSTRING : offset = dissect_ber_bitstring ( FALSE , & asn1_ctx , tree , tvb , start_offset , NULL , hf_ber_unknown_BITSTRING , - 1 , NULL ) ;\n break ;\n case BER_UNI_TAG_ENUMERATED : offset = dissect_ber_integer ( FALSE , & asn1_ctx , tree , tvb , start_offset , hf_ber_unknown_ENUMERATED , NULL ) ;\n break ;\n case BER_UNI_TAG_GraphicString : offset = dissect_ber_octet_string ( FALSE , & asn1_ctx , tree , tvb , start_offset , hf_ber_unknown_GraphicString , NULL ) ;\n break ;\n case BER_UNI_TAG_OCTETSTRING : is_decoded_as = FALSE ;\n if ( decode_octetstring_as_ber && ( len >= 2 ) ) {\n volatile int ber_offset = 0 ;\n guint32 ber_len = 0 ;\n TRY {\n ber_offset = get_ber_identifier ( tvb , offset , NULL , & pc , NULL ) ;\n ber_offset = get_ber_length ( tvb , ber_offset , & ber_len , NULL ) ;\n }\n CATCH_ALL {\n }\n ENDTRY ;\n if ( pc && ( ber_len > 0 ) && ( ber_len + ( ber_offset - offset ) == len ) ) {\n is_decoded_as = TRUE ;\n if ( show_internal_ber_fields ) {\n offset = dissect_ber_identifier ( pinfo , tree , tvb , start_offset , NULL , NULL , NULL ) ;\n offset = dissect_ber_length ( pinfo , tree , tvb , offset , NULL , NULL ) ;\n }\n item = ber_proto_tree_add_item ( pinfo , tree , hf_ber_unknown_BER_OCTETSTRING , tvb , offset , len , ENC_NA ) ;\n next_tree = proto_item_add_subtree ( item , ett_ber_octet_string ) ;\n offset = try_dissect_unknown_ber ( pinfo , tvb , offset , next_tree , nest_level + 1 ) ;\n }\n }\n if ( ! is_decoded_as ) {\n offset = dissect_ber_octet_string ( FALSE , & asn1_ctx , tree , tvb , start_offset , hf_ber_unknown_OCTETSTRING , NULL ) ;\n }\n break ;\n case BER_UNI_TAG_OID : offset = dissect_ber_object_identifier_str ( FALSE , & asn1_ctx , tree , tvb , start_offset , hf_ber_unknown_OID , NULL ) ;\n break ;\n case BER_UNI_TAG_RELATIVE_OID : offset = dissect_ber_relative_oid_str ( FALSE , & asn1_ctx , tree , tvb , start_offset , hf_ber_unknown_relative_OID , NULL ) ;\n break ;\n case BER_UNI_TAG_NumericString : offset = dissect_ber_octet_string ( FALSE , & asn1_ctx , tree , tvb , start_offset , hf_ber_unknown_NumericString , NULL ) ;\n break ;\n case BER_UNI_TAG_PrintableString : offset = dissect_ber_octet_string ( FALSE , & asn1_ctx , tree , tvb , start_offset , hf_ber_unknown_PrintableString , NULL ) ;\n break ;\n case BER_UNI_TAG_TeletexString : offset = dissect_ber_octet_string ( FALSE , & asn1_ctx , tree , tvb , start_offset , hf_ber_unknown_TeletexString , NULL ) ;\n break ;\n case BER_UNI_TAG_VisibleString : offset = dissect_ber_octet_string ( FALSE , & asn1_ctx , tree , tvb , start_offset , hf_ber_unknown_VisibleString , NULL ) ;\n break ;\n case BER_UNI_TAG_GeneralString : offset = dissect_ber_GeneralString ( & asn1_ctx , tree , tvb , start_offset , hf_ber_unknown_GeneralString , NULL , 0 ) ;\n break ;\n case BER_UNI_TAG_BMPString : offset = dissect_ber_octet_string ( FALSE , & asn1_ctx , tree , tvb , start_offset , hf_ber_unknown_BMPString , NULL ) ;\n break ;\n case BER_UNI_TAG_UniversalString : offset = dissect_ber_octet_string ( FALSE , & asn1_ctx , tree , tvb , start_offset , hf_ber_unknown_UniversalString , NULL ) ;\n break ;\n case BER_UNI_TAG_IA5String : offset = dissect_ber_octet_string ( FALSE , & asn1_ctx , tree , tvb , start_offset , hf_ber_unknown_IA5String , NULL ) ;\n break ;\n case BER_UNI_TAG_UTCTime : offset = dissect_ber_octet_string ( FALSE , & asn1_ctx , tree , tvb , start_offset , hf_ber_unknown_UTCTime , NULL ) ;\n break ;\n case BER_UNI_TAG_NULL : proto_tree_add_item ( tree , hf_ber_null_tag , tvb , offset , len , ENC_NA ) ;\n break ;\n case BER_UNI_TAG_UTF8String : offset = dissect_ber_octet_string ( FALSE , & asn1_ctx , tree , tvb , start_offset , hf_ber_unknown_UTF8String , NULL ) ;\n break ;\n case BER_UNI_TAG_GeneralizedTime : offset = dissect_ber_octet_string ( FALSE , & asn1_ctx , tree , tvb , start_offset , hf_ber_unknown_GeneralizedTime , NULL ) ;\n break ;\n case BER_UNI_TAG_BOOLEAN : offset = dissect_ber_boolean ( FALSE , & asn1_ctx , tree , tvb , start_offset , hf_ber_unknown_BOOLEAN , NULL ) ;\n break ;\n default : offset = dissect_ber_identifier ( pinfo , tree , tvb , start_offset , & ber_class , & pc , & tag ) ;\n offset = dissect_ber_length ( pinfo , tree , tvb , offset , & len , NULL ) ;\n cause = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset , len , \"unknown_universal_tag\" , \"can not handle universal tag:%d\" , tag ) ;\n expert_add_info ( pinfo , cause , & ei_ber_universal_tag_unknown ) ;\n offset += len ;\n }\n break ;\n case BER_CLASS_APP : case BER_CLASS_CON : case BER_CLASS_PRI : default : if ( show_internal_ber_fields ) {\n offset = dissect_ber_identifier ( pinfo , tree , tvb , start_offset , & ber_class , & pc , & tag ) ;\n offset = dissect_ber_length ( pinfo , tree , tvb , offset , & len , NULL ) ;\n }\n pi = proto_tree_add_none_format ( tree , hf_ber_unknown_BER_primitive , tvb , offset , len , \"[%s %d] \" , val_to_str_const ( ber_class , ber_class_codes , \"Unknown\" ) , tag ) ;\n is_decoded_as = FALSE ;\n if ( decode_primitive_as_ber && ( len >= 2 ) ) {\n volatile int ber_offset = 0 ;\n guint32 ber_len = 0 ;\n TRY {\n ber_offset = get_ber_identifier ( tvb , offset , NULL , & pc , NULL ) ;\n ber_offset = get_ber_length ( tvb , ber_offset , & ber_len , NULL ) ;\n }\n CATCH_ALL {\n }\n ENDTRY ;\n if ( pc && ( ber_len > 0 ) && ( ber_len + ( ber_offset - offset ) == len ) ) {\n is_decoded_as = TRUE ;\n proto_item_append_text ( pi , \"[BER encoded]\" ) ;\n next_tree = proto_item_add_subtree ( pi , ett_ber_primitive ) ;\n offset = try_dissect_unknown_ber ( pinfo , tvb , offset , next_tree , nest_level + 1 ) ;\n }\n }\n if ( ! is_decoded_as && len ) {\n is_printable = TRUE ;\n for ( i = 0 ;\n i < len ;\n i ++ ) {\n c = tvb_get_guint8 ( tvb , offset + i ) ;\n if ( is_printable && ! g_ascii_isprint ( c ) ) is_printable = FALSE ;\n proto_item_append_text ( pi , \"%02x\" , c ) ;\n }\n if ( is_printable ) {\n proto_item_append_text ( pi , \" (\" ) ;\n for ( i = 0 ;\n i < len ;\n i ++ ) {\n proto_item_append_text ( pi , \"%c\" , tvb_get_guint8 ( tvb , offset + i ) ) ;\n }\n proto_item_append_text ( pi , \")\" ) ;\n }\n offset += len ;\n }\n break ;\n }\n break ;\n case TRUE : if ( show_internal_ber_fields ) {\n offset = dissect_ber_identifier ( pinfo , tree , tvb , start_offset , & ber_class , & pc , & tag ) ;\n offset = dissect_ber_length ( pinfo , tree , tvb , offset , & len , NULL ) ;\n }\n hdr_len = offset - start_offset ;\n switch ( ber_class ) {\n case BER_CLASS_UNI : next_tree = proto_tree_add_subtree ( tree , tvb , offset , len , ett_ber_SEQUENCE , NULL , val_to_str_ext_const ( tag , & ber_uni_tag_codes_ext , \"Unknown\" ) ) ;\n while ( offset < ( int ) ( start_offset + len + hdr_len ) ) offset = try_dissect_unknown_ber ( pinfo , tvb , offset , next_tree , nest_level + 1 ) ;\n break ;\n case BER_CLASS_APP : case BER_CLASS_CON : case BER_CLASS_PRI : default : next_tree = proto_tree_add_subtree_format ( tree , tvb , offset , len , ett_ber_SEQUENCE , NULL , \"[%s %d]\" , val_to_str_const ( ber_class , ber_class_codes , \"Unknown\" ) , tag ) ;\n while ( offset < ( int ) ( start_offset + len + hdr_len ) ) offset = try_dissect_unknown_ber ( pinfo , tvb , offset , next_tree , nest_level + 1 ) ;\n break ;\n }\n break ;\n }\n return offset ;\n }"}
{"idx": 5622, "target": 0, "func": "hb_blob_t * hb_face_reference_blob ( hb_face_t * face ) {\n return face -> reference_table ( HB_TAG_NONE ) ;\n }"}
{"idx": 5623, "target": 0, "func": "static void cirrus_bitblt_start ( CirrusVGAState * s ) {\n uint8_t blt_rop ;\n if ( ! s -> enable_blitter ) {\n goto bitblt_ignore ;\n }\n s -> vga . gr [ 0x31 ] |= CIRRUS_BLT_BUSY ;\n s -> cirrus_blt_width = ( s -> vga . gr [ 0x20 ] | ( s -> vga . gr [ 0x21 ] << 8 ) ) + 1 ;\n s -> cirrus_blt_height = ( s -> vga . gr [ 0x22 ] | ( s -> vga . gr [ 0x23 ] << 8 ) ) + 1 ;\n s -> cirrus_blt_dstpitch = ( s -> vga . gr [ 0x24 ] | ( s -> vga . gr [ 0x25 ] << 8 ) ) ;\n s -> cirrus_blt_srcpitch = ( s -> vga . gr [ 0x26 ] | ( s -> vga . gr [ 0x27 ] << 8 ) ) ;\n s -> cirrus_blt_dstaddr = ( s -> vga . gr [ 0x28 ] | ( s -> vga . gr [ 0x29 ] << 8 ) | ( s -> vga . gr [ 0x2a ] << 16 ) ) ;\n s -> cirrus_blt_srcaddr = ( s -> vga . gr [ 0x2c ] | ( s -> vga . gr [ 0x2d ] << 8 ) | ( s -> vga . gr [ 0x2e ] << 16 ) ) ;\n s -> cirrus_blt_mode = s -> vga . gr [ 0x30 ] ;\n s -> cirrus_blt_modeext = s -> vga . gr [ 0x33 ] ;\n blt_rop = s -> vga . gr [ 0x32 ] ;\n s -> cirrus_blt_dstaddr &= s -> cirrus_addr_mask ;\n s -> cirrus_blt_srcaddr &= s -> cirrus_addr_mask ;\n # ifdef DEBUG_BITBLT printf ( \"rop=0x%02x mode=0x%02x modeext=0x%02x w=%d h=%d dpitch=%d spitch=%d daddr=0x%08x saddr=0x%08x writemask=0x%02x\\n\" , blt_rop , s -> cirrus_blt_mode , s -> cirrus_blt_modeext , s -> cirrus_blt_width , s -> cirrus_blt_height , s -> cirrus_blt_dstpitch , s -> cirrus_blt_srcpitch , s -> cirrus_blt_dstaddr , s -> cirrus_blt_srcaddr , s -> vga . gr [ 0x2f ] ) ;\n # endif switch ( s -> cirrus_blt_mode & CIRRUS_BLTMODE_PIXELWIDTHMASK ) {\n case CIRRUS_BLTMODE_PIXELWIDTH8 : s -> cirrus_blt_pixelwidth = 1 ;\n break ;\n case CIRRUS_BLTMODE_PIXELWIDTH16 : s -> cirrus_blt_pixelwidth = 2 ;\n break ;\n case CIRRUS_BLTMODE_PIXELWIDTH24 : s -> cirrus_blt_pixelwidth = 3 ;\n break ;\n case CIRRUS_BLTMODE_PIXELWIDTH32 : s -> cirrus_blt_pixelwidth = 4 ;\n break ;\n default : # ifdef DEBUG_BITBLT printf ( \"cirrus: bitblt - pixel width is unknown\\n\" ) ;\n # endif goto bitblt_ignore ;\n }\n s -> cirrus_blt_mode &= ~ CIRRUS_BLTMODE_PIXELWIDTHMASK ;\n if ( ( s -> cirrus_blt_mode & ( CIRRUS_BLTMODE_MEMSYSSRC | CIRRUS_BLTMODE_MEMSYSDEST ) ) == ( CIRRUS_BLTMODE_MEMSYSSRC | CIRRUS_BLTMODE_MEMSYSDEST ) ) {\n # ifdef DEBUG_BITBLT printf ( \"cirrus: bitblt - memory-to-memory copy is requested\\n\" ) ;\n # endif goto bitblt_ignore ;\n }\n if ( ( s -> cirrus_blt_modeext & CIRRUS_BLTMODEEXT_SOLIDFILL ) && ( s -> cirrus_blt_mode & ( CIRRUS_BLTMODE_MEMSYSDEST | CIRRUS_BLTMODE_TRANSPARENTCOMP | CIRRUS_BLTMODE_PATTERNCOPY | CIRRUS_BLTMODE_COLOREXPAND ) ) == ( CIRRUS_BLTMODE_PATTERNCOPY | CIRRUS_BLTMODE_COLOREXPAND ) ) {\n cirrus_bitblt_fgcol ( s ) ;\n cirrus_bitblt_solidfill ( s , blt_rop ) ;\n }\n else {\n if ( ( s -> cirrus_blt_mode & ( CIRRUS_BLTMODE_COLOREXPAND | CIRRUS_BLTMODE_PATTERNCOPY ) ) == CIRRUS_BLTMODE_COLOREXPAND ) {\n if ( s -> cirrus_blt_mode & CIRRUS_BLTMODE_TRANSPARENTCOMP ) {\n if ( s -> cirrus_blt_modeext & CIRRUS_BLTMODEEXT_COLOREXPINV ) cirrus_bitblt_bgcol ( s ) ;\n else cirrus_bitblt_fgcol ( s ) ;\n s -> cirrus_rop = cirrus_colorexpand_transp [ rop_to_index [ blt_rop ] ] [ s -> cirrus_blt_pixelwidth - 1 ] ;\n }\n else {\n cirrus_bitblt_fgcol ( s ) ;\n cirrus_bitblt_bgcol ( s ) ;\n s -> cirrus_rop = cirrus_colorexpand [ rop_to_index [ blt_rop ] ] [ s -> cirrus_blt_pixelwidth - 1 ] ;\n }\n }\n else if ( s -> cirrus_blt_mode & CIRRUS_BLTMODE_PATTERNCOPY ) {\n if ( s -> cirrus_blt_mode & CIRRUS_BLTMODE_COLOREXPAND ) {\n if ( s -> cirrus_blt_mode & CIRRUS_BLTMODE_TRANSPARENTCOMP ) {\n if ( s -> cirrus_blt_modeext & CIRRUS_BLTMODEEXT_COLOREXPINV ) cirrus_bitblt_bgcol ( s ) ;\n else cirrus_bitblt_fgcol ( s ) ;\n s -> cirrus_rop = cirrus_colorexpand_pattern_transp [ rop_to_index [ blt_rop ] ] [ s -> cirrus_blt_pixelwidth - 1 ] ;\n }\n else {\n cirrus_bitblt_fgcol ( s ) ;\n cirrus_bitblt_bgcol ( s ) ;\n s -> cirrus_rop = cirrus_colorexpand_pattern [ rop_to_index [ blt_rop ] ] [ s -> cirrus_blt_pixelwidth - 1 ] ;\n }\n }\n else {\n s -> cirrus_rop = cirrus_patternfill [ rop_to_index [ blt_rop ] ] [ s -> cirrus_blt_pixelwidth - 1 ] ;\n }\n }\n else {\n if ( s -> cirrus_blt_mode & CIRRUS_BLTMODE_TRANSPARENTCOMP ) {\n if ( s -> cirrus_blt_pixelwidth > 2 ) {\n printf ( \"src transparent without colorexpand must be 8bpp or 16bpp\\n\" ) ;\n goto bitblt_ignore ;\n }\n if ( s -> cirrus_blt_mode & CIRRUS_BLTMODE_BACKWARDS ) {\n s -> cirrus_blt_dstpitch = - s -> cirrus_blt_dstpitch ;\n s -> cirrus_blt_srcpitch = - s -> cirrus_blt_srcpitch ;\n s -> cirrus_rop = cirrus_bkwd_transp_rop [ rop_to_index [ blt_rop ] ] [ s -> cirrus_blt_pixelwidth - 1 ] ;\n }\n else {\n s -> cirrus_rop = cirrus_fwd_transp_rop [ rop_to_index [ blt_rop ] ] [ s -> cirrus_blt_pixelwidth - 1 ] ;\n }\n }\n else {\n if ( s -> cirrus_blt_mode & CIRRUS_BLTMODE_BACKWARDS ) {\n s -> cirrus_blt_dstpitch = - s -> cirrus_blt_dstpitch ;\n s -> cirrus_blt_srcpitch = - s -> cirrus_blt_srcpitch ;\n s -> cirrus_rop = cirrus_bkwd_rop [ rop_to_index [ blt_rop ] ] ;\n }\n else {\n s -> cirrus_rop = cirrus_fwd_rop [ rop_to_index [ blt_rop ] ] ;\n }\n }\n }\n if ( s -> cirrus_blt_mode & CIRRUS_BLTMODE_MEMSYSSRC ) {\n if ( ! cirrus_bitblt_cputovideo ( s ) ) goto bitblt_ignore ;\n }\n else if ( s -> cirrus_blt_mode & CIRRUS_BLTMODE_MEMSYSDEST ) {\n if ( ! cirrus_bitblt_videotocpu ( s ) ) goto bitblt_ignore ;\n }\n else {\n if ( ! cirrus_bitblt_videotovideo ( s ) ) goto bitblt_ignore ;\n }\n }\n return ;\n bitblt_ignore : ;\n cirrus_bitblt_reset ( s ) ;\n }"}
{"idx": 5624, "target": 0, "func": "static void cmd_channel_modify ( const char * data ) {\n cmd_channel_add_modify ( data , FALSE ) ;\n }"}
{"idx": 5625, "target": 0, "func": "void do_info_qdm ( Monitor * mon ) {\n DeviceInfo * info ;\n char msg [ 256 ] ;\n for ( info = device_info_list ;\n info != NULL ;\n info = info -> next ) {\n qdev_print_devinfo ( info , msg , sizeof ( msg ) ) ;\n monitor_printf ( mon , \"%s\\n\" , msg ) ;\n }\n }"}
{"idx": 5626, "target": 0, "func": "int ssl3_do_write ( SSL * s , int type ) {\n int ret ;\n ret = ssl3_write_bytes ( s , type , & s -> init_buf -> data [ s -> init_off ] , s -> init_num ) ;\n if ( ret < 0 ) return ( - 1 ) ;\n if ( type == SSL3_RT_HANDSHAKE ) ssl3_finish_mac ( s , ( unsigned char * ) & s -> init_buf -> data [ s -> init_off ] , ret ) ;\n if ( ret == s -> init_num ) {\n if ( s -> msg_callback ) s -> msg_callback ( 1 , s -> version , type , s -> init_buf -> data , ( size_t ) ( s -> init_off + s -> init_num ) , s , s -> msg_callback_arg ) ;\n return ( 1 ) ;\n }\n s -> init_off += ret ;\n s -> init_num -= ret ;\n return ( 0 ) ;\n }"}
{"idx": 5627, "target": 0, "func": "static int xan_wc3_decode_frame ( XanContext * s , AVFrame * frame ) {\n int width = s -> avctx -> width ;\n int height = s -> avctx -> height ;\n int total_pixels = width * height ;\n unsigned char opcode ;\n unsigned char flag = 0 ;\n int size = 0 ;\n int motion_x , motion_y ;\n int x , y ;\n unsigned char * opcode_buffer = s -> buffer1 ;\n unsigned char * opcode_buffer_end = s -> buffer1 + s -> buffer1_size ;\n int opcode_buffer_size = s -> buffer1_size ;\n const unsigned char * imagedata_buffer = s -> buffer2 ;\n const unsigned char * huffman_segment ;\n const unsigned char * size_segment ;\n const unsigned char * vector_segment ;\n const unsigned char * imagedata_segment ;\n int huffman_offset , size_offset , vector_offset , imagedata_offset , imagedata_size ;\n if ( s -> size < 8 ) return AVERROR_INVALIDDATA ;\n huffman_offset = AV_RL16 ( & s -> buf [ 0 ] ) ;\n size_offset = AV_RL16 ( & s -> buf [ 2 ] ) ;\n vector_offset = AV_RL16 ( & s -> buf [ 4 ] ) ;\n imagedata_offset = AV_RL16 ( & s -> buf [ 6 ] ) ;\n if ( huffman_offset >= s -> size || size_offset >= s -> size || vector_offset >= s -> size || imagedata_offset >= s -> size ) return AVERROR_INVALIDDATA ;\n huffman_segment = s -> buf + huffman_offset ;\n size_segment = s -> buf + size_offset ;\n vector_segment = s -> buf + vector_offset ;\n imagedata_segment = s -> buf + imagedata_offset ;\n if ( xan_huffman_decode ( opcode_buffer , opcode_buffer_size , huffman_segment , s -> size - huffman_offset ) < 0 ) return AVERROR_INVALIDDATA ;\n if ( imagedata_segment [ 0 ] == 2 ) {\n xan_unpack ( s -> buffer2 , s -> buffer2_size , & imagedata_segment [ 1 ] , s -> size - imagedata_offset - 1 ) ;\n imagedata_size = s -> buffer2_size ;\n }\n else {\n imagedata_size = s -> size - imagedata_offset - 1 ;\n imagedata_buffer = & imagedata_segment [ 1 ] ;\n }\n x = y = 0 ;\n while ( total_pixels && opcode_buffer < opcode_buffer_end ) {\n opcode = * opcode_buffer ++ ;\n size = 0 ;\n switch ( opcode ) {\n case 0 : flag ^= 1 ;\n continue ;\n case 1 : case 2 : case 3 : case 4 : case 5 : case 6 : case 7 : case 8 : size = opcode ;\n break ;\n case 12 : case 13 : case 14 : case 15 : case 16 : case 17 : case 18 : size += ( opcode - 10 ) ;\n break ;\n case 9 : case 19 : size = * size_segment ++ ;\n break ;\n case 10 : case 20 : size = AV_RB16 ( & size_segment [ 0 ] ) ;\n size_segment += 2 ;\n break ;\n case 11 : case 21 : size = AV_RB24 ( size_segment ) ;\n size_segment += 3 ;\n break ;\n }\n if ( size > total_pixels ) break ;\n if ( opcode < 12 ) {\n flag ^= 1 ;\n if ( flag ) {\n xan_wc3_copy_pixel_run ( s , frame , x , y , size , 0 , 0 ) ;\n }\n else {\n if ( imagedata_size < size ) break ;\n xan_wc3_output_pixel_run ( s , frame , imagedata_buffer , x , y , size ) ;\n imagedata_buffer += size ;\n imagedata_size -= size ;\n }\n }\n else {\n motion_x = sign_extend ( * vector_segment >> 4 , 4 ) ;\n motion_y = sign_extend ( * vector_segment & 0xF , 4 ) ;\n vector_segment ++ ;\n xan_wc3_copy_pixel_run ( s , frame , x , y , size , motion_x , motion_y ) ;\n flag = 0 ;\n }\n total_pixels -= size ;\n y += ( x + size ) / width ;\n x = ( x + size ) % width ;\n }\n return 0 ;\n }"}
{"idx": 5628, "target": 0, "func": "static int utf16be_to_unicode ( uint32_t * pwc , const char * s , size_t n ) {\n return ( utf16_to_unicode ( pwc , s , n , 1 ) ) ;\n }"}
{"idx": 5629, "target": 0, "func": "static int unpack_modes ( Vp3DecodeContext * s , GetBitContext * gb ) {\n int i , j , k , sb_x , sb_y ;\n int scheme ;\n int current_macroblock ;\n int current_fragment ;\n int coding_mode ;\n int custom_mode_alphabet [ CODING_MODE_COUNT ] ;\n const int * alphabet ;\n Vp3Fragment * frag ;\n if ( s -> keyframe ) {\n for ( i = 0 ;\n i < s -> fragment_count ;\n i ++ ) s -> all_fragments [ i ] . coding_method = MODE_INTRA ;\n }\n else {\n scheme = get_bits ( gb , 3 ) ;\n if ( scheme == 0 ) {\n for ( i = 0 ;\n i < 8 ;\n i ++ ) custom_mode_alphabet [ i ] = MODE_INTER_NO_MV ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) custom_mode_alphabet [ get_bits ( gb , 3 ) ] = i ;\n alphabet = custom_mode_alphabet ;\n }\n else alphabet = ModeAlphabet [ scheme - 1 ] ;\n for ( sb_y = 0 ;\n sb_y < s -> y_superblock_height ;\n sb_y ++ ) {\n for ( sb_x = 0 ;\n sb_x < s -> y_superblock_width ;\n sb_x ++ ) {\n if ( get_bits_left ( gb ) <= 0 ) return - 1 ;\n for ( j = 0 ;\n j < 4 ;\n j ++ ) {\n int mb_x = 2 * sb_x + ( j >> 1 ) ;\n int mb_y = 2 * sb_y + ( ( ( j >> 1 ) + j ) & 1 ) ;\n current_macroblock = mb_y * s -> macroblock_width + mb_x ;\n if ( mb_x >= s -> macroblock_width || mb_y >= s -> macroblock_height ) continue ;\n # define BLOCK_X ( 2 * mb_x + ( k & 1 ) ) # define BLOCK_Y ( 2 * mb_y + ( k >> 1 ) ) for ( k = 0 ;\n k < 4 ;\n k ++ ) {\n current_fragment = BLOCK_Y * s -> fragment_width [ 0 ] + BLOCK_X ;\n if ( s -> all_fragments [ current_fragment ] . coding_method != MODE_COPY ) break ;\n }\n if ( k == 4 ) {\n s -> macroblock_coding [ current_macroblock ] = MODE_INTER_NO_MV ;\n continue ;\n }\n if ( scheme == 7 ) coding_mode = get_bits ( gb , 3 ) ;\n else coding_mode = alphabet [ get_vlc2 ( gb , s -> mode_code_vlc . table , 3 , 3 ) ] ;\n s -> macroblock_coding [ current_macroblock ] = coding_mode ;\n for ( k = 0 ;\n k < 4 ;\n k ++ ) {\n frag = s -> all_fragments + BLOCK_Y * s -> fragment_width [ 0 ] + BLOCK_X ;\n if ( frag -> coding_method != MODE_COPY ) frag -> coding_method = coding_mode ;\n }\n # define SET_CHROMA_MODES if ( frag [ s -> fragment_start [ 1 ] ] . coding_method != MODE_COPY ) frag [ s -> fragment_start [ 1 ] ] . coding_method = coding_mode ;\n if ( frag [ s -> fragment_start [ 2 ] ] . coding_method != MODE_COPY ) frag [ s -> fragment_start [ 2 ] ] . coding_method = coding_mode ;\n if ( s -> chroma_y_shift ) {\n frag = s -> all_fragments + mb_y * s -> fragment_width [ 1 ] + mb_x ;\n SET_CHROMA_MODES }\n else if ( s -> chroma_x_shift ) {\n frag = s -> all_fragments + 2 * mb_y * s -> fragment_width [ 1 ] + mb_x ;\n for ( k = 0 ;\n k < 2 ;\n k ++ ) {\n SET_CHROMA_MODES frag += s -> fragment_width [ 1 ] ;\n }\n }\n else {\n for ( k = 0 ;\n k < 4 ;\n k ++ ) {\n frag = s -> all_fragments + BLOCK_Y * s -> fragment_width [ 1 ] + BLOCK_X ;\n SET_CHROMA_MODES }\n }\n }\n }\n }\n }\n return 0 ;\n }"}
{"idx": 5630, "target": 0, "func": "static void xhci_port_notify ( XHCIPort * port , uint32_t bits ) {\n XHCIEvent ev = {\n ER_PORT_STATUS_CHANGE , CC_SUCCESS , port -> portnr << 24 }\n ;\n if ( ( port -> portsc & bits ) == bits ) {\n return ;\n }\n trace_usb_xhci_port_notify ( port -> portnr , bits ) ;\n port -> portsc |= bits ;\n if ( ! xhci_running ( port -> xhci ) ) {\n return ;\n }\n xhci_event ( port -> xhci , & ev , 0 ) ;\n }"}
{"idx": 5631, "target": 0, "func": "void pcnet_set_link_status ( NetClientState * nc ) {\n PCNetState * d = qemu_get_nic_opaque ( nc ) ;\n d -> lnkst = nc -> link_down ? 0 : 0x40 ;\n }"}
{"idx": 5632, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize ) ;\n DECL_PIOCTL ( PGetCacheSize ) ;\n DECL_PIOCTL ( PRemoveCallBack ) ;\n DECL_PIOCTL ( PNewCell ) ;\n DECL_PIOCTL ( PNewAlias ) ;\n DECL_PIOCTL ( PListCells ) ;\n DECL_PIOCTL ( PListAliases ) ;\n DECL_PIOCTL ( PRemoveMount ) ;\n DECL_PIOCTL ( PGetCellStatus ) ;\n DECL_PIOCTL ( PSetCellStatus ) ;\n DECL_PIOCTL ( PFlushVolumeData ) ;\n DECL_PIOCTL ( PFlushAllVolumeData ) ;\n DECL_PIOCTL ( PGetVnodeXStatus ) ;\n DECL_PIOCTL ( PGetVnodeXStatus2 ) ;\n DECL_PIOCTL ( PSetSysName ) ;\n DECL_PIOCTL ( PSetSPrefs ) ;\n DECL_PIOCTL ( PSetSPrefs33 ) ;\n DECL_PIOCTL ( PGetSPrefs ) ;\n DECL_PIOCTL ( PExportAfs ) ;\n DECL_PIOCTL ( PGag ) ;\n DECL_PIOCTL ( PTwiddleRx ) ;\n DECL_PIOCTL ( PGetInitParams ) ;\n DECL_PIOCTL ( PGetRxkcrypt ) ;\n DECL_PIOCTL ( PSetRxkcrypt ) ;\n DECL_PIOCTL ( PGetCPrefs ) ;\n DECL_PIOCTL ( PSetCPrefs )"}
{"idx": 5633, "target": 0, "func": "vpx_codec_err_t vpx_codec_set_cx_data_buf ( vpx_codec_ctx_t * ctx , const vpx_fixed_buf_t * buf , unsigned int pad_before , unsigned int pad_after ) {\n if ( ! ctx || ! ctx -> priv ) return VPX_CODEC_INVALID_PARAM ;\n if ( buf ) {\n ctx -> priv -> enc . cx_data_dst_buf = * buf ;\n ctx -> priv -> enc . cx_data_pad_before = pad_before ;\n ctx -> priv -> enc . cx_data_pad_after = pad_after ;\n }\n else {\n ctx -> priv -> enc . cx_data_dst_buf . buf = NULL ;\n ctx -> priv -> enc . cx_data_dst_buf . sz = 0 ;\n ctx -> priv -> enc . cx_data_pad_before = 0 ;\n ctx -> priv -> enc . cx_data_pad_after = 0 ;\n }\n return VPX_CODEC_OK ;\n }"}
{"idx": 5634, "target": 0, "func": "static int virLogOnceInit ( void ) {\n if ( virMutexInit ( & virLogMutex ) < 0 ) return - 1 ;\n virLogLock ( ) ;\n virLogDefaultPriority = VIR_LOG_DEFAULT ;\n if ( VIR_ALLOC_QUIET ( virLogRegex ) >= 0 ) {\n if ( regcomp ( virLogRegex , VIR_LOG_REGEX , REG_EXTENDED ) != 0 ) VIR_FREE ( virLogRegex ) ;\n }\n virLogHostname = virGetHostnameQuiet ( ) ;\n virLogUnlock ( ) ;\n return 0 ;\n }"}
{"idx": 5635, "target": 0, "func": "static void activation_mountable_mounted ( NautilusFile * file , GFile * result_location , GError * error , gpointer callback_data ) {\n ActivateParameters * parameters = callback_data ;\n NautilusFile * target_file ;\n LaunchLocation * location ;\n parameters -> mountables = g_list_remove ( parameters -> mountables , file ) ;\n nautilus_file_unref ( file ) ;\n if ( error == NULL ) {\n target_file = nautilus_file_get ( result_location ) ;\n location = find_launch_location_for_file ( parameters -> locations , file ) ;\n if ( location ) {\n launch_location_update_from_file ( location , target_file ) ;\n }\n nautilus_file_unref ( target_file ) ;\n }\n else {\n if ( error -> domain != G_IO_ERROR || ( error -> code != G_IO_ERROR_FAILED_HANDLED && error -> code != G_IO_ERROR_ALREADY_MOUNTED ) ) {\n location = find_launch_location_for_file ( parameters -> locations , file ) ;\n if ( location ) {\n parameters -> locations = g_list_remove ( parameters -> locations , location ) ;\n launch_location_free ( location ) ;\n }\n }\n if ( error -> domain != G_IO_ERROR || ( error -> code != G_IO_ERROR_CANCELLED && error -> code != G_IO_ERROR_FAILED_HANDLED && error -> code != G_IO_ERROR_ALREADY_MOUNTED ) ) {\n eel_show_error_dialog ( _ ( \"Unable to access location\" ) , error -> message , parameters -> parent_window ) ;\n }\n if ( error -> code == G_IO_ERROR_CANCELLED ) {\n activation_parameters_free ( parameters ) ;\n return ;\n }\n }\n activation_mount_mountables ( parameters ) ;\n }"}
{"idx": 5636, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n JvContext * s = avctx -> priv_data ;\n int buf_size = avpkt -> size ;\n const uint8_t * buf = avpkt -> data ;\n const uint8_t * buf_end = buf + buf_size ;\n int video_size , video_type , i , j ;\n video_size = AV_RL32 ( buf ) ;\n video_type = buf [ 4 ] ;\n buf += 5 ;\n if ( video_size ) {\n if ( avctx -> reget_buffer ( avctx , & s -> frame ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return - 1 ;\n }\n if ( video_type == 0 || video_type == 1 ) {\n GetBitContext gb ;\n init_get_bits ( & gb , buf , 8 * FFMIN ( video_size , buf_end - buf ) ) ;\n for ( j = 0 ;\n j < avctx -> height ;\n j += 8 ) for ( i = 0 ;\n i < avctx -> width ;\n i += 8 ) decode8x8 ( & gb , s -> frame . data [ 0 ] + j * s -> frame . linesize [ 0 ] + i , s -> frame . linesize [ 0 ] , & s -> dsp ) ;\n buf += video_size ;\n }\n else if ( video_type == 2 ) {\n if ( buf + 1 <= buf_end ) {\n int v = * buf ++ ;\n for ( j = 0 ;\n j < avctx -> height ;\n j ++ ) memset ( s -> frame . data [ 0 ] + j * s -> frame . linesize [ 0 ] , v , avctx -> width ) ;\n }\n }\n else {\n av_log ( avctx , AV_LOG_WARNING , \"unsupported frame type %i\\n\" , video_type ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n if ( buf < buf_end ) {\n for ( i = 0 ;\n i < AVPALETTE_COUNT && buf + 3 <= buf_end ;\n i ++ ) {\n s -> palette [ i ] = AV_RB24 ( buf ) << 2 ;\n buf += 3 ;\n }\n s -> palette_has_changed = 1 ;\n }\n if ( video_size ) {\n s -> frame . key_frame = 1 ;\n s -> frame . pict_type = AV_PICTURE_TYPE_I ;\n s -> frame . palette_has_changed = s -> palette_has_changed ;\n s -> palette_has_changed = 0 ;\n memcpy ( s -> frame . data [ 1 ] , s -> palette , AVPALETTE_SIZE ) ;\n * got_frame = 1 ;\n * ( AVFrame * ) data = s -> frame ;\n }\n return buf_size ;\n }"}
{"idx": 5637, "target": 1, "func": "TEST_F ( WebUsbDetectorTest , ThreeUsbDevicesAddedAndRemoved ) {\n base : : string16 product_name_1 = base : : UTF8ToUTF16 ( kProductName_1 ) ;\n GURL landing_page_1 ( kLandingPage_1 ) ;\n scoped_refptr < device : : MockUsbDevice > device_1 ( new device : : MockUsbDevice ( 0 , 1 , \"Google\" , kProductName_1 , \"002\" , landing_page_1 ) ) ;\n std : : string guid_1 = device_1 -> guid ( ) ;\n base : : string16 product_name_2 = base : : UTF8ToUTF16 ( kProductName_2 ) ;\n GURL landing_page_2 ( kLandingPage_2 ) ;\n scoped_refptr < device : : MockUsbDevice > device_2 ( new device : : MockUsbDevice ( 3 , 4 , \"Google\" , kProductName_2 , \"005\" , landing_page_2 ) ) ;\n std : : string guid_2 = device_2 -> guid ( ) ;\n base : : string16 product_name_3 = base : : UTF8ToUTF16 ( kProductName_3 ) ;\n GURL landing_page_3 ( kLandingPage_3 ) ;\n scoped_refptr < device : : MockUsbDevice > device_3 ( new device : : MockUsbDevice ( 6 , 7 , \"Google\" , kProductName_3 , \"008\" , landing_page_3 ) ) ;\n std : : string guid_3 = device_3 -> guid ( ) ;\n Initialize ( ) ;\n device_client_ . usb_service ( ) -> AddDevice ( device_1 ) ;\n message_center : : Notification * notification_1 = message_center_ -> FindVisibleNotificationById ( guid_1 ) ;\n ASSERT_TRUE ( notification_1 != nullptr ) ;\n base : : string16 expected_title_1 = base : : ASCIIToUTF16 ( \"Google Product A detected\" ) ;\n EXPECT_EQ ( expected_title_1 , notification_1 -> title ( ) ) ;\n base : : string16 expected_message_1 = base : : ASCIIToUTF16 ( \"Go to www.google.com/A to connect.\" ) ;\n EXPECT_EQ ( expected_message_1 , notification_1 -> message ( ) ) ;\n EXPECT_TRUE ( notification_1 -> delegate ( ) != nullptr ) ;\n device_client_ . usb_service ( ) -> RemoveDevice ( device_1 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_1 ) == nullptr ) ;\n device_client_ . usb_service ( ) -> AddDevice ( device_2 ) ;\n message_center : : Notification * notification_2 = message_center_ -> FindVisibleNotificationById ( guid_2 ) ;\n ASSERT_TRUE ( notification_2 != nullptr ) ;\n base : : string16 expected_title_2 = base : : ASCIIToUTF16 ( \"Google Product B detected\" ) ;\n EXPECT_EQ ( expected_title_2 , notification_2 -> title ( ) ) ;\n base : : string16 expected_message_2 = base : : ASCIIToUTF16 ( \"Go to www.google.com/B to connect.\" ) ;\n EXPECT_EQ ( expected_message_2 , notification_2 -> message ( ) ) ;\n EXPECT_TRUE ( notification_2 -> delegate ( ) != nullptr ) ;\n device_client_ . usb_service ( ) -> RemoveDevice ( device_2 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_2 ) == nullptr ) ;\n device_client_ . usb_service ( ) -> AddDevice ( device_3 ) ;\n message_center : : Notification * notification_3 = message_center_ -> FindVisibleNotificationById ( guid_3 ) ;\n ASSERT_TRUE ( notification_3 != nullptr ) ;\n base : : string16 expected_title_3 = base : : ASCIIToUTF16 ( \"Google Product C detected\" ) ;\n EXPECT_EQ ( expected_title_3 , notification_3 -> title ( ) ) ;\n base : : string16 expected_message_3 = base : : ASCIIToUTF16 ( \"Go to www.google.com/C to connect.\" ) ;\n EXPECT_EQ ( expected_message_3 , notification_3 -> message ( ) ) ;\n EXPECT_TRUE ( notification_3 -> delegate ( ) != nullptr ) ;\n device_client_ . usb_service ( ) -> RemoveDevice ( device_3 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_3 ) == nullptr ) ;\n }"}
{"idx": 5638, "target": 0, "func": "static int isofile_hd_cmp_node ( const struct archive_rb_node * n1 , const struct archive_rb_node * n2 ) {\n const struct hardlink * h1 = ( const struct hardlink * ) n1 ;\n const struct hardlink * h2 = ( const struct hardlink * ) n2 ;\n return ( strcmp ( archive_entry_pathname ( h1 -> file_list . first -> entry ) , archive_entry_pathname ( h2 -> file_list . first -> entry ) ) ) ;\n }"}
{"idx": 5639, "target": 0, "func": "static int32_t h264_foc ( int foc ) {\n if ( foc == INT_MAX ) foc = 0 ;\n return foc ;\n }"}
{"idx": 5640, "target": 0, "func": "static rfbBool rectSwapIfLEAndClip ( uint16_t * x , uint16_t * y , uint16_t * w , uint16_t * h , rfbClientPtr cl ) {\n int x1 = Swap16IfLE ( * x ) ;\n int y1 = Swap16IfLE ( * y ) ;\n int w1 = Swap16IfLE ( * w ) ;\n int h1 = Swap16IfLE ( * h ) ;\n rfbScaledCorrection ( cl -> scaledScreen , cl -> screen , & x1 , & y1 , & w1 , & h1 , \"rectSwapIfLEAndClip\" ) ;\n * x = x1 ;\n * y = y1 ;\n * w = w1 ;\n * h = h1 ;\n if ( * w > cl -> screen -> width - * x ) * w = cl -> screen -> width - * x ;\n if ( * w > cl -> screen -> width - * x ) return FALSE ;\n if ( * h > cl -> screen -> height - * y ) * h = cl -> screen -> height - * y ;\n if ( * h > cl -> screen -> height - * y ) return FALSE ;\n return TRUE ;\n }"}
{"idx": 5641, "target": 0, "func": "void vp9_update_spatial_layer_framerate ( VP9_COMP * const cpi , double framerate ) {\n const VP9EncoderConfig * const oxcf = & cpi -> oxcf ;\n LAYER_CONTEXT * const lc = get_layer_context ( cpi ) ;\n RATE_CONTROL * const lrc = & lc -> rc ;\n lc -> framerate = framerate ;\n lrc -> avg_frame_bandwidth = ( int ) ( lc -> target_bandwidth / lc -> framerate ) ;\n lrc -> min_frame_bandwidth = ( int ) ( lrc -> avg_frame_bandwidth * oxcf -> two_pass_vbrmin_section / 100 ) ;\n lrc -> max_frame_bandwidth = ( int ) ( ( ( int64_t ) lrc -> avg_frame_bandwidth * oxcf -> two_pass_vbrmax_section ) / 100 ) ;\n vp9_rc_set_gf_max_interval ( cpi , lrc ) ;\n }"}
{"idx": 5642, "target": 0, "func": "static int dict_spot_params ( const ref * pdict , gs_spot_halftone * psp , ref * psproc , ref * ptproc , gs_memory_t * mem ) {\n int code ;\n check_dict_read ( * pdict ) ;\n if ( ( code = dict_float_param ( pdict , \"Frequency\" , 0.0 , & psp -> screen . frequency ) ) != 0 || ( code = dict_float_param ( pdict , \"Angle\" , 0.0 , & psp -> screen . angle ) ) != 0 || ( code = dict_proc_param ( pdict , \"SpotFunction\" , psproc , false ) ) != 0 || ( code = dict_bool_param ( pdict , \"AccurateScreens\" , gs_currentaccuratescreens ( mem ) , & psp -> accurate_screens ) ) < 0 || ( code = dict_proc_param ( pdict , \"TransferFunction\" , ptproc , false ) ) < 0 ) return ( code < 0 ? code : gs_error_undefined ) ;\n psp -> transfer = ( code > 0 ? ( gs_mapping_proc ) 0 : gs_mapped_transfer ) ;\n psp -> transfer_closure . proc = 0 ;\n psp -> transfer_closure . data = 0 ;\n return 0 ;\n }"}
{"idx": 5643, "target": 1, "func": "static my_bool get_view_structure ( char * table , char * db ) {\n MYSQL_RES * table_res ;\n MYSQL_ROW row ;\n MYSQL_FIELD * field ;\n char * result_table , * opt_quoted_table ;\n char table_buff [ NAME_LEN * 2 + 3 ] ;\n char table_buff2 [ NAME_LEN * 2 + 3 ] ;\n char query [ QUERY_LENGTH ] ;\n FILE * sql_file = md_result_file ;\n DBUG_ENTER ( \"get_view_structure\" ) ;\n if ( opt_no_create_info ) DBUG_RETURN ( 0 ) ;\n verbose_msg ( \"-- Retrieving view structure for table %s...\\n\" , table ) ;\n # ifdef NOT_REALLY_USED_YET dynstr_append_checked ( & insert_pat , \"SET SQL_QUOTE_SHOW_CREATE=\" ) ;\n dynstr_append_checked ( & insert_pat , ( opt_quoted || opt_keywords ) ? \"1\" : \"0\" ) ;\n # endif result_table = quote_name ( table , table_buff , 1 ) ;\n opt_quoted_table = quote_name ( table , table_buff2 , 0 ) ;\n if ( switch_character_set_results ( mysql , \"binary\" ) ) DBUG_RETURN ( 1 ) ;\n my_snprintf ( query , sizeof ( query ) , \"SHOW CREATE TABLE %s\" , result_table ) ;\n if ( mysql_query_with_error_report ( mysql , & table_res , query ) ) {\n switch_character_set_results ( mysql , default_charset ) ;\n DBUG_RETURN ( 0 ) ;\n }\n field = mysql_fetch_field_direct ( table_res , 0 ) ;\n if ( strcmp ( field -> name , \"View\" ) != 0 ) {\n mysql_free_result ( table_res ) ;\n switch_character_set_results ( mysql , default_charset ) ;\n verbose_msg ( \"-- It's base table, skipped\\n\" ) ;\n DBUG_RETURN ( 0 ) ;\n }\n if ( path ) {\n if ( ! ( sql_file = open_sql_file_for_table ( table , O_WRONLY ) ) ) {\n mysql_free_result ( table_res ) ;\n DBUG_RETURN ( 1 ) ;\n }\n write_header ( sql_file , db ) ;\n }\n print_comment ( sql_file , 0 , \"\\n--\\n-- Final view structure for view %s\\n--\\n\\n\" , result_table ) ;\n fprintf ( sql_file , \"/*!50001 DROP TABLE IF EXISTS %s*/;\n\\n\" , opt_quoted_table ) ;\n if ( opt_drop ) {\n fprintf ( sql_file , \"/*!50001 DROP VIEW IF EXISTS %s*/;\n\\n\" , opt_quoted_table ) ;\n check_io ( sql_file ) ;\n }\n my_snprintf ( query , sizeof ( query ) , \"SELECT CHECK_OPTION, DEFINER, SECURITY_TYPE, \" \" CHARACTER_SET_CLIENT, COLLATION_CONNECTION \" \"FROM information_schema.views \" \"WHERE table_name=\\\"%s\\\" AND table_schema=\\\"%s\\\"\" , table , db ) ;\n if ( mysql_query ( mysql , query ) ) {\n row = mysql_fetch_row ( table_res ) ;\n fprintf ( sql_file , \"/*!50001 %s */;\n\\n\" , row [ 1 ] ) ;\n check_io ( sql_file ) ;\n mysql_free_result ( table_res ) ;\n }\n else {\n char * ptr ;\n ulong * lengths ;\n char search_buf [ 256 ] , replace_buf [ 256 ] ;\n ulong search_len , replace_len ;\n DYNAMIC_STRING ds_view ;\n row = mysql_fetch_row ( table_res ) ;\n lengths = mysql_fetch_lengths ( table_res ) ;\n init_dynamic_string_checked ( & ds_view , row [ 1 ] , lengths [ 1 ] + 1 , 1024 ) ;\n mysql_free_result ( table_res ) ;\n if ( ! ( table_res = mysql_store_result ( mysql ) ) || ! ( row = mysql_fetch_row ( table_res ) ) ) {\n if ( table_res ) mysql_free_result ( table_res ) ;\n dynstr_free ( & ds_view ) ;\n DB_error ( mysql , \"when trying to save the result of SHOW CREATE TABLE in ds_view.\" ) ;\n DBUG_RETURN ( 1 ) ;\n }\n lengths = mysql_fetch_lengths ( table_res ) ;\n if ( strcmp ( row [ 0 ] , \"NONE\" ) ) {\n ptr = search_buf ;\n search_len = ( ulong ) ( strxmov ( ptr , \"WITH \" , row [ 0 ] , \" CHECK OPTION\" , NullS ) - ptr ) ;\n ptr = replace_buf ;\n replace_len = ( ulong ) ( strxmov ( ptr , \"*/\\n/*!50002 WITH \" , row [ 0 ] , \" CHECK OPTION\" , NullS ) - ptr ) ;\n replace ( & ds_view , search_buf , search_len , replace_buf , replace_len ) ;\n }\n {\n size_t user_name_len ;\n char user_name_str [ USERNAME_LENGTH + 1 ] ;\n char quoted_user_name_str [ USERNAME_LENGTH * 2 + 3 ] ;\n size_t host_name_len ;\n char host_name_str [ HOSTNAME_LENGTH + 1 ] ;\n char quoted_host_name_str [ HOSTNAME_LENGTH * 2 + 3 ] ;\n parse_user ( row [ 1 ] , lengths [ 1 ] , user_name_str , & user_name_len , host_name_str , & host_name_len ) ;\n ptr = search_buf ;\n search_len = ( ulong ) ( strxmov ( ptr , \"DEFINER=\" , quote_name ( user_name_str , quoted_user_name_str , FALSE ) , \"@\" , quote_name ( host_name_str , quoted_host_name_str , FALSE ) , \" SQL SECURITY \" , row [ 2 ] , NullS ) - ptr ) ;\n ptr = replace_buf ;\n replace_len = ( ulong ) ( strxmov ( ptr , \"*/\\n/*!50013 DEFINER=\" , quote_name ( user_name_str , quoted_user_name_str , FALSE ) , \"@\" , quote_name ( host_name_str , quoted_host_name_str , FALSE ) , \" SQL SECURITY \" , row [ 2 ] , \" */\\n/*!50001\" , NullS ) - ptr ) ;\n replace ( & ds_view , search_buf , search_len , replace_buf , replace_len ) ;\n }\n fprintf ( sql_file , \"/*!50001 SET @saved_cs_client = @@character_set_client */;\n\\n\" \"/*!50001 SET @saved_cs_results = @@character_set_results */;\n\\n\" \"/*!50001 SET @saved_col_connection = @@collation_connection */;\n\\n\" \"/*!50001 SET character_set_client = %s */;\n\\n\" \"/*!50001 SET character_set_results = %s */;\n\\n\" \"/*!50001 SET collation_connection = %s */;\n\\n\" \"/*!50001 %s */;\n\\n\" \"/*!50001 SET character_set_client = @saved_cs_client */;\n\\n\" \"/*!50001 SET character_set_results = @saved_cs_results */;\n\\n\" \"/*!50001 SET collation_connection = @saved_col_connection */;\n\\n\" , ( const char * ) row [ 3 ] , ( const char * ) row [ 3 ] , ( const char * ) row [ 4 ] , ( const char * ) ds_view . str ) ;\n check_io ( sql_file ) ;\n mysql_free_result ( table_res ) ;\n dynstr_free ( & ds_view ) ;\n }\n if ( switch_character_set_results ( mysql , default_charset ) ) DBUG_RETURN ( 1 ) ;\n if ( sql_file != md_result_file ) {\n fputs ( \"\\n\" , sql_file ) ;\n write_footer ( sql_file ) ;\n my_fclose ( sql_file , MYF ( MY_WME ) ) ;\n }\n DBUG_RETURN ( 0 ) ;\n }"}
{"idx": 5644, "target": 0, "func": "static void ctl_putstr ( const char * tag , const char * data , size_t len ) {\n char buffer [ 512 ] ;\n char * cp ;\n size_t tl ;\n tl = strlen ( tag ) ;\n memcpy ( buffer , tag , tl ) ;\n cp = buffer + tl ;\n if ( len > 0 ) {\n INSIST ( tl + 3 + len <= sizeof ( buffer ) ) ;\n * cp ++ = '=' ;\n * cp ++ = '\"' ;\n memcpy ( cp , data , len ) ;\n cp += len ;\n * cp ++ = '\"' ;\n }\n ctl_putdata ( buffer , ( u_int ) ( cp - buffer ) , 0 ) ;\n }"}
{"idx": 5645, "target": 0, "func": "static int dissect_nlm4_shareres ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n return dissect_nlm_shareres ( tvb , 0 , pinfo , tree , 4 ) ;\n }"}
{"idx": 5646, "target": 0, "func": "static int unescape_octals ( gx_device_pdf * pdev , char * src , int size ) {\n char * start , * dest ;\n start = src ;\n dest = src ;\n while ( size ) {\n if ( size > 4 && src [ 0 ] == '\\\\' && src [ 1 ] == '\\\\' && src [ 2 ] > 0x29 && src [ 2 ] < 0x35 && src [ 3 ] > 0x29 && src [ 3 ] < 0x38 && src [ 4 ] > 0x29 && src [ 4 ] < 0x38 ) {\n src ++ ;\n size -- ;\n }\n else {\n * dest ++ = * src ++ ;\n size -- ;\n }\n }\n return ( dest - start ) ;\n }"}
{"idx": 5647, "target": 0, "func": "static void test_union ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n myheader ( \"test_union\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS t1, t2\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE t1 \" \"(id INTEGER NOT NULL PRIMARY KEY, \" \" name VARCHAR(20) NOT NULL)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO t1 (id, name) VALUES \" \"(2, 'Ja'), (3, 'Ede'), \" \"(4, 'Haag'), (5, 'Kabul'), \" \"(6, 'Almere'), (7, 'Utrecht'), \" \"(8, 'Qandahar'), (9, 'Amsterdam'), \" \"(10, 'Amersfoort'), (11, 'Constantine')\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE t2 \" \"(id INTEGER NOT NULL PRIMARY KEY, \" \" name VARCHAR(20) NOT NULL)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO t2 (id, name) VALUES \" \"(4, 'Guam'), (5, 'Aruba'), \" \"(6, 'Angola'), (7, 'Albania'), \" \"(8, 'Anguilla'), (9, 'Argentina'), \" \"(10, 'Azerbaijan'), (11, 'Afghanistan'), \" \"(12, 'Burkina Faso'), (13, 'Faroe Islands')\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT t1.name FROM t1 UNION \" \"SELECT t2.name FROM t2\" ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( rc == 20 ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"DROP TABLE t1, t2\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 5648, "target": 0, "func": "static void custom_size_skip ( va_list * va ) {\n ( void ) va_arg ( * va , goffset ) ;\n }"}
{"idx": 5649, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( AppApiTest , MAYBE_BookmarkAppGetsNormalProcess ) {\n ExtensionService * service = extensions : : ExtensionSystem : : Get ( browser ( ) -> profile ( ) ) -> extension_service ( ) ;\n extensions : : ProcessMap * process_map = extensions : : ProcessMap : : Get ( browser ( ) -> profile ( ) ) ;\n GURL base_url = GetTestBaseURL ( \"app_process\" ) ;\n std : : string error ;\n scoped_refptr < const Extension > extension ;\n {\n base : : ThreadRestrictions : : ScopedAllowIO allow_io ;\n extension = extensions : : file_util : : LoadExtension ( test_data_dir_ . AppendASCII ( \"app_process\" ) , extensions : : Manifest : : UNPACKED , Extension : : FROM_BOOKMARK , & error ) ;\n }\n service -> OnExtensionInstalled ( extension . get ( ) , syncer : : StringOrdinal : : CreateInitialOrdinal ( ) , extensions : : kInstallFlagInstallImmediately ) ;\n ASSERT_TRUE ( extension . get ( ) ) ;\n ASSERT_TRUE ( extension -> from_bookmark ( ) ) ;\n ui_test_utils : : NavigateToURLWithDisposition ( browser ( ) , base_url . Resolve ( \"path1/empty.html\" ) , WindowOpenDisposition : : NEW_FOREGROUND_TAB , ui_test_utils : : BROWSER_TEST_WAIT_FOR_NAVIGATION ) ;\n EXPECT_FALSE ( process_map -> Contains ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 1 ) -> GetRenderProcessHost ( ) -> GetID ( ) ) ) ;\n EXPECT_FALSE ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 1 ) -> GetWebUI ( ) ) ;\n content : : WindowedNotificationObserver tab_added_observer ( chrome : : NOTIFICATION_TAB_ADDED , content : : NotificationService : : AllSources ( ) ) ;\n chrome : : NewTab ( browser ( ) ) ;\n tab_added_observer . Wait ( ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , base_url . Resolve ( \"path2/empty.html\" ) ) ;\n EXPECT_FALSE ( process_map -> Contains ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 2 ) -> GetRenderProcessHost ( ) -> GetID ( ) ) ) ;\n EXPECT_FALSE ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 2 ) -> GetWebUI ( ) ) ;\n ASSERT_EQ ( 3 , browser ( ) -> tab_strip_model ( ) -> count ( ) ) ;\n WebContents * tab = browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 1 ) ;\n EXPECT_NE ( tab -> GetRenderProcessHost ( ) , browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 2 ) -> GetRenderProcessHost ( ) ) ;\n ASSERT_EQ ( 1u , chrome : : GetBrowserCount ( browser ( ) -> profile ( ) ) ) ;\n OpenWindow ( tab , base_url . Resolve ( \"path1/empty.html\" ) , true , NULL ) ;\n OpenWindow ( tab , base_url . Resolve ( \"path2/empty.html\" ) , true , NULL ) ;\n const GURL & app_url ( base_url . Resolve ( \"path1/empty.html\" ) ) ;\n const GURL & non_app_url ( base_url . Resolve ( \"path3/empty.html\" ) ) ;\n RenderViewHost * host2 = browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 2 ) -> GetRenderViewHost ( ) ;\n NavigateInRenderer ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 2 ) , non_app_url ) ;\n EXPECT_EQ ( host2 -> GetProcess ( ) , browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 2 ) -> GetRenderProcessHost ( ) ) ;\n NavigateInRenderer ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 2 ) , app_url ) ;\n EXPECT_EQ ( host2 -> GetProcess ( ) , browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 2 ) -> GetRenderProcessHost ( ) ) ;\n }"}
{"idx": 5650, "target": 0, "func": "static bfd_boolean srec_mkobject ( bfd * abfd ) {\n tdata_type * tdata ;\n srec_init ( ) ;\n tdata = ( tdata_type * ) bfd_alloc ( abfd , sizeof ( tdata_type ) ) ;\n if ( tdata == NULL ) return FALSE ;\n abfd -> tdata . srec_data = tdata ;\n tdata -> type = 1 ;\n tdata -> head = NULL ;\n tdata -> tail = NULL ;\n tdata -> symbols = NULL ;\n tdata -> symtail = NULL ;\n tdata -> csymbols = NULL ;\n return TRUE ;\n }"}
{"idx": 5651, "target": 0, "func": "static void rac_init ( RangeCoder * c , const uint8_t * src , int size ) {\n int i ;\n c -> src = src ;\n c -> src_end = src + size ;\n c -> low = 0 ;\n for ( i = 0 ;\n i < FFMIN ( size , 4 ) ;\n i ++ ) c -> low = ( c -> low << 8 ) | * c -> src ++ ;\n c -> range = 0xFFFFFFFF ;\n c -> got_error = 0 ;\n }"}
{"idx": 5652, "target": 0, "func": "static u_int32 derive_nonce ( sockaddr_u * addr , u_int32 ts_i , u_int32 ts_f ) {\n static u_int32 salt [ 4 ] ;\n static u_long last_salt_update ;\n union d_tag {\n u_char digest [ EVP_MAX_MD_SIZE ] ;\n u_int32 extract ;\n }\n d ;\n EVP_MD_CTX ctx ;\n u_int len ;\n while ( ! salt [ 0 ] || current_time - last_salt_update >= 3600 ) {\n salt [ 0 ] = ntp_random ( ) ;\n salt [ 1 ] = ntp_random ( ) ;\n salt [ 2 ] = ntp_random ( ) ;\n salt [ 3 ] = ntp_random ( ) ;\n last_salt_update = current_time ;\n }\n EVP_DigestInit ( & ctx , EVP_get_digestbynid ( NID_md5 ) ) ;\n EVP_DigestUpdate ( & ctx , salt , sizeof ( salt ) ) ;\n EVP_DigestUpdate ( & ctx , & ts_i , sizeof ( ts_i ) ) ;\n EVP_DigestUpdate ( & ctx , & ts_f , sizeof ( ts_f ) ) ;\n if ( IS_IPV4 ( addr ) ) EVP_DigestUpdate ( & ctx , & SOCK_ADDR4 ( addr ) , sizeof ( SOCK_ADDR4 ( addr ) ) ) ;\n else EVP_DigestUpdate ( & ctx , & SOCK_ADDR6 ( addr ) , sizeof ( SOCK_ADDR6 ( addr ) ) ) ;\n EVP_DigestUpdate ( & ctx , & NSRCPORT ( addr ) , sizeof ( NSRCPORT ( addr ) ) ) ;\n EVP_DigestUpdate ( & ctx , salt , sizeof ( salt ) ) ;\n EVP_DigestFinal ( & ctx , d . digest , & len ) ;\n return d . extract ;\n }"}
{"idx": 5653, "target": 0, "func": "static void update_skip_probs ( VP9_COMMON * cm , vp9_writer * w ) {\n int k ;\n for ( k = 0 ;\n k < SKIP_CONTEXTS ;\n ++ k ) vp9_cond_prob_diff_update ( w , & cm -> fc . skip_probs [ k ] , cm -> counts . skip [ k ] ) ;\n }"}
{"idx": 5654, "target": 0, "func": "static void abort_job ( CommonJob * job ) {\n g_clear_object ( & job -> undo_info ) ;\n g_cancellable_cancel ( job -> cancellable ) ;\n }"}
{"idx": 5655, "target": 1, "func": "static inline int in_table_int16 ( const int16_t * table , int last_el , int16_t needle ) {\n int i ;\n for ( i = 0 ;\n i <= last_el ;\n i ++ ) if ( table [ i ] == needle ) return 1 ;\n return 0 ;\n }"}
{"idx": 5656, "target": 0, "func": "static char * lookup_loc_range ( const char * loc_range , HashTable * hash_arr , int canonicalize TSRMLS_DC ) {\n int i = 0 ;\n int cur_arr_len = 0 ;\n int result = 0 ;\n char * lang_tag = NULL ;\n zval * * ele_value = NULL ;\n char * * cur_arr = NULL ;\n char * cur_loc_range = NULL ;\n char * can_loc_range = NULL ;\n int saved_pos = 0 ;\n char * return_value = NULL ;\n cur_arr = ecalloc ( zend_hash_num_elements ( hash_arr ) * 2 , sizeof ( char * ) ) ;\n for ( zend_hash_internal_pointer_reset ( hash_arr ) ;\n zend_hash_has_more_elements ( hash_arr ) == SUCCESS ;\n zend_hash_move_forward ( hash_arr ) ) {\n if ( zend_hash_get_current_data ( hash_arr , ( void * * ) & ele_value ) == FAILURE ) {\n continue ;\n }\n if ( Z_TYPE_PP ( ele_value ) != IS_STRING ) {\n intl_error_set ( NULL , U_ILLEGAL_ARGUMENT_ERROR , \"lookup_loc_range: locale array element is not a string\" , 0 TSRMLS_CC ) ;\n LOOKUP_CLEAN_RETURN ( NULL ) ;\n }\n cur_arr [ cur_arr_len * 2 ] = estrndup ( Z_STRVAL_PP ( ele_value ) , Z_STRLEN_PP ( ele_value ) ) ;\n result = strToMatch ( Z_STRVAL_PP ( ele_value ) , cur_arr [ cur_arr_len * 2 ] ) ;\n if ( result == 0 ) {\n intl_error_set ( NULL , U_ILLEGAL_ARGUMENT_ERROR , \"lookup_loc_range: unable to canonicalize lang_tag\" , 0 TSRMLS_CC ) ;\n LOOKUP_CLEAN_RETURN ( NULL ) ;\n }\n cur_arr [ cur_arr_len * 2 + 1 ] = Z_STRVAL_PP ( ele_value ) ;\n cur_arr_len ++ ;\n }\n if ( canonicalize ) {\n for ( i = 0 ;\n i < cur_arr_len ;\n i ++ ) {\n lang_tag = get_icu_value_internal ( cur_arr [ i * 2 ] , LOC_CANONICALIZE_TAG , & result , 0 ) ;\n if ( result != 1 || lang_tag == NULL || ! lang_tag [ 0 ] ) {\n if ( lang_tag ) {\n efree ( lang_tag ) ;\n }\n intl_error_set ( NULL , U_ILLEGAL_ARGUMENT_ERROR , \"lookup_loc_range: unable to canonicalize lang_tag\" , 0 TSRMLS_CC ) ;\n LOOKUP_CLEAN_RETURN ( NULL ) ;\n }\n cur_arr [ i * 2 ] = erealloc ( cur_arr [ i * 2 ] , strlen ( lang_tag ) + 1 ) ;\n result = strToMatch ( lang_tag , cur_arr [ i * 2 ] ) ;\n efree ( lang_tag ) ;\n if ( result == 0 ) {\n intl_error_set ( NULL , U_ILLEGAL_ARGUMENT_ERROR , \"lookup_loc_range: unable to canonicalize lang_tag\" , 0 TSRMLS_CC ) ;\n LOOKUP_CLEAN_RETURN ( NULL ) ;\n }\n }\n }\n if ( canonicalize ) {\n can_loc_range = get_icu_value_internal ( loc_range , LOC_CANONICALIZE_TAG , & result , 0 ) ;\n if ( result != 1 || can_loc_range == NULL || ! can_loc_range [ 0 ] ) {\n intl_error_set ( NULL , U_ILLEGAL_ARGUMENT_ERROR , \"lookup_loc_range: unable to canonicalize loc_range\" , 0 TSRMLS_CC ) ;\n if ( can_loc_range ) {\n efree ( can_loc_range ) ;\n }\n LOOKUP_CLEAN_RETURN ( NULL ) ;\n }\n else {\n loc_range = can_loc_range ;\n }\n }\n cur_loc_range = ecalloc ( 1 , strlen ( loc_range ) + 1 ) ;\n result = strToMatch ( loc_range , cur_loc_range ) ;\n if ( can_loc_range ) {\n efree ( can_loc_range ) ;\n }\n if ( result == 0 ) {\n intl_error_set ( NULL , U_ILLEGAL_ARGUMENT_ERROR , \"lookup_loc_range: unable to canonicalize lang_tag\" , 0 TSRMLS_CC ) ;\n LOOKUP_CLEAN_RETURN ( NULL ) ;\n }\n saved_pos = strlen ( cur_loc_range ) ;\n while ( saved_pos > 0 ) {\n for ( i = 0 ;\n i < cur_arr_len ;\n i ++ ) {\n if ( cur_arr [ i * 2 ] != NULL && strlen ( cur_arr [ i * 2 ] ) == saved_pos && strncmp ( cur_loc_range , cur_arr [ i * 2 ] , saved_pos ) == 0 ) {\n return_value = estrdup ( canonicalize ? cur_arr [ i * 2 ] : cur_arr [ i * 2 + 1 ] ) ;\n efree ( cur_loc_range ) ;\n LOOKUP_CLEAN_RETURN ( return_value ) ;\n }\n }\n saved_pos = getStrrtokenPos ( cur_loc_range , saved_pos ) ;\n }\n efree ( cur_loc_range ) ;\n LOOKUP_CLEAN_RETURN ( NULL ) ;\n }"}
{"idx": 5657, "target": 0, "func": "void PyString_Concat ( register PyObject * * pv , register PyObject * w ) {\n register PyObject * v ;\n if ( * pv == NULL ) return ;\n if ( w == NULL || ! PyString_Check ( * pv ) ) {\n Py_CLEAR ( * pv ) ;\n return ;\n }\n v = string_concat ( ( PyStringObject * ) * pv , w ) ;\n Py_SETREF ( * pv , v ) ;\n }"}
{"idx": 5658, "target": 0, "func": "void ff_h264_pred_direct_motion ( H264Context * const h , int * mb_type ) {\n if ( h -> direct_spatial_mv_pred ) {\n pred_spatial_direct_motion ( h , mb_type ) ;\n }\n else {\n pred_temp_direct_motion ( h , mb_type ) ;\n }\n }"}
{"idx": 5659, "target": 0, "func": "header_field_info * proto_get_next_protocol_field ( const int proto_id , void * * cookie ) {\n protocol_t * protocol = find_protocol_by_id ( proto_id ) ;\n guint i = GPOINTER_TO_UINT ( * cookie ) - 1 ;\n i ++ ;\n if ( i >= protocol -> fields -> len ) return NULL ;\n * cookie = GUINT_TO_POINTER ( i + 1 ) ;\n return ( header_field_info * ) g_ptr_array_index ( protocol -> fields , i ) ;\n }"}
{"idx": 5660, "target": 0, "func": "static void write_branch_report ( FILE * rpt , struct branch * b ) {\n fprintf ( rpt , \"%s:\\n\" , b -> name ) ;\n fprintf ( rpt , \" status :\" ) ;\n if ( b -> active ) fputs ( \" active\" , rpt ) ;\n if ( b -> branch_tree . tree ) fputs ( \" loaded\" , rpt ) ;\n if ( is_null_sha1 ( b -> branch_tree . versions [ 1 ] . sha1 ) ) fputs ( \" dirty\" , rpt ) ;\n fputc ( '\\n' , rpt ) ;\n fprintf ( rpt , \" tip commit : %s\\n\" , sha1_to_hex ( b -> sha1 ) ) ;\n fprintf ( rpt , \" old tree : %s\\n\" , sha1_to_hex ( b -> branch_tree . versions [ 0 ] . sha1 ) ) ;\n fprintf ( rpt , \" cur tree : %s\\n\" , sha1_to_hex ( b -> branch_tree . versions [ 1 ] . sha1 ) ) ;\n fprintf ( rpt , \" commit clock: %\" PRIuMAX \"\\n\" , b -> last_commit ) ;\n fputs ( \" last pack : \" , rpt ) ;\n if ( b -> pack_id < MAX_PACK_ID ) fprintf ( rpt , \"%u\" , b -> pack_id ) ;\n fputc ( '\\n' , rpt ) ;\n fputc ( '\\n' , rpt ) ;\n }"}
{"idx": 5661, "target": 0, "func": "static int dissect_h245_T_h223_al_type_al1NotFramed ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 299 \"../../asn1/h245/h245.cnf\" if ( h223_lc_params_temp ) h223_lc_params_temp -> al_type = al1NotFramed ;\n offset = dissect_per_null ( tvb , offset , actx , tree , hf_index ) ;\n return offset ;\n }"}
{"idx": 5662, "target": 0, "func": "static gboolean prplcb_ev_remove ( guint id ) {\n b_event_remove ( ( gint ) id ) ;\n return TRUE ;\n }"}
{"idx": 5663, "target": 0, "func": "static void unicode_escape_to_buffer ( FBuffer * buffer , char buf [ 6 ] , UTF16 character ) {\n unicode_escape ( buf , character ) ;\n fbuffer_append ( buffer , buf , 6 ) ;\n }"}
{"idx": 5664, "target": 0, "func": "static guint16 de_alert_pat ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n curr_offset = offset ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( curr_offset << 3 ) , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_alerting_pattern , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n EXTRANEOUS_DATA_CHECK ( len , curr_offset - offset , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n return ( len ) ;\n }"}
{"idx": 5665, "target": 0, "func": "static int dissect_usb_ms_bulk ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * parent_tree , void * data ) {\n usb_conv_info_t * usb_conv_info ;\n usb_ms_conv_info_t * usb_ms_conv_info ;\n proto_tree * tree ;\n proto_item * ti ;\n guint32 signature = 0 ;\n int offset = 0 ;\n gboolean is_request ;\n itl_nexus_t * itl ;\n itlq_nexus_t * itlq ;\n if ( data == NULL ) return 0 ;\n usb_conv_info = ( usb_conv_info_t * ) data ;\n usb_ms_conv_info = ( usb_ms_conv_info_t * ) usb_conv_info -> class_data ;\n if ( ! usb_ms_conv_info ) {\n usb_ms_conv_info = wmem_new ( wmem_file_scope ( ) , usb_ms_conv_info_t ) ;\n usb_ms_conv_info -> itl = wmem_tree_new ( wmem_file_scope ( ) ) ;\n usb_ms_conv_info -> itlq = wmem_tree_new ( wmem_file_scope ( ) ) ;\n usb_conv_info -> class_data = usb_ms_conv_info ;\n usb_conv_info -> class_data_type = USB_CONV_MASS_STORAGE ;\n }\n else if ( usb_conv_info -> class_data_type != USB_CONV_MASS_STORAGE ) {\n return 0 ;\n }\n is_request = ( pinfo -> srcport == NO_ENDPOINT ) ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"USBMS\" ) ;\n col_clear ( pinfo -> cinfo , COL_INFO ) ;\n ti = proto_tree_add_protocol_format ( parent_tree , proto_usb_ms , tvb , 0 , - 1 , \"USB Mass Storage\" ) ;\n tree = proto_item_add_subtree ( ti , ett_usb_ms ) ;\n signature = tvb_get_letohl ( tvb , offset ) ;\n if ( is_request && ( signature == 0x43425355 ) && ( tvb_reported_length ( tvb ) == 31 ) ) {\n tvbuff_t * cdb_tvb ;\n int cdbrlen , cdblen ;\n guint8 lun , flags ;\n guint32 datalen ;\n proto_tree_add_item ( tree , hf_usb_ms_dCBWSignature , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_usb_ms_dCBWTag , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_usb_ms_dCBWDataTransferLength , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n datalen = tvb_get_letohl ( tvb , offset ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_usb_ms_dCBWFlags , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n flags = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_usb_ms_dCBWTarget , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_usb_ms_dCBWLUN , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n lun = tvb_get_guint8 ( tvb , offset ) & 0x0f ;\n offset += 1 ;\n itl = ( itl_nexus_t * ) wmem_tree_lookup32 ( usb_ms_conv_info -> itl , lun ) ;\n if ( ! itl ) {\n itl = wmem_new ( wmem_file_scope ( ) , itl_nexus_t ) ;\n itl -> cmdset = 0xff ;\n itl -> conversation = NULL ;\n wmem_tree_insert32 ( usb_ms_conv_info -> itl , lun , itl ) ;\n }\n itlq = ( itlq_nexus_t * ) wmem_tree_lookup32 ( usb_ms_conv_info -> itlq , pinfo -> num ) ;\n if ( ! itlq ) {\n itlq = wmem_new ( wmem_file_scope ( ) , itlq_nexus_t ) ;\n itlq -> lun = lun ;\n itlq -> scsi_opcode = 0xffff ;\n itlq -> task_flags = 0 ;\n if ( datalen ) {\n if ( flags & 0x80 ) {\n itlq -> task_flags |= SCSI_DATA_READ ;\n }\n else {\n itlq -> task_flags |= SCSI_DATA_WRITE ;\n }\n }\n itlq -> data_length = datalen ;\n itlq -> bidir_data_length = 0 ;\n itlq -> fc_time = pinfo -> abs_ts ;\n itlq -> first_exchange_frame = pinfo -> num ;\n itlq -> last_exchange_frame = 0 ;\n itlq -> flags = 0 ;\n itlq -> alloc_len = 0 ;\n itlq -> extra_data = NULL ;\n wmem_tree_insert32 ( usb_ms_conv_info -> itlq , pinfo -> num , itlq ) ;\n }\n proto_tree_add_item ( tree , hf_usb_ms_dCBWCBLength , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n cdbrlen = tvb_get_guint8 ( tvb , offset ) & 0x1f ;\n offset += 1 ;\n cdblen = cdbrlen ;\n if ( cdblen > tvb_captured_length_remaining ( tvb , offset ) ) {\n cdblen = tvb_captured_length_remaining ( tvb , offset ) ;\n }\n if ( cdblen ) {\n cdb_tvb = tvb_new_subset ( tvb , offset , cdblen , cdbrlen ) ;\n dissect_scsi_cdb ( cdb_tvb , pinfo , parent_tree , SCSI_DEV_UNKNOWN , itlq , itl ) ;\n }\n return tvb_captured_length ( tvb ) ;\n }\n if ( ( ! is_request ) && ( signature == 0x53425355 ) && ( tvb_reported_length ( tvb ) == 13 ) ) {\n guint8 status ;\n proto_tree_add_item ( tree , hf_usb_ms_dCSWSignature , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_usb_ms_dCBWTag , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_usb_ms_dCSWDataResidue , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_usb_ms_dCSWStatus , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n status = tvb_get_guint8 ( tvb , offset ) ;\n itlq = ( itlq_nexus_t * ) wmem_tree_lookup32_le ( usb_ms_conv_info -> itlq , pinfo -> num ) ;\n if ( ! itlq ) {\n return tvb_captured_length ( tvb ) ;\n }\n itlq -> last_exchange_frame = pinfo -> num ;\n itl = ( itl_nexus_t * ) wmem_tree_lookup32 ( usb_ms_conv_info -> itl , itlq -> lun ) ;\n if ( ! itl ) {\n return tvb_captured_length ( tvb ) ;\n }\n if ( ! status ) {\n dissect_scsi_rsp ( tvb , pinfo , parent_tree , itlq , itl , 0 ) ;\n }\n else {\n dissect_scsi_rsp ( tvb , pinfo , parent_tree , itlq , itl , 0x02 ) ;\n }\n return tvb_captured_length ( tvb ) ;\n }\n itlq = ( itlq_nexus_t * ) wmem_tree_lookup32_le ( usb_ms_conv_info -> itlq , pinfo -> num ) ;\n if ( ! itlq ) {\n return tvb_captured_length ( tvb ) ;\n }\n itl = ( itl_nexus_t * ) wmem_tree_lookup32 ( usb_ms_conv_info -> itl , itlq -> lun ) ;\n if ( ! itl ) {\n return tvb_captured_length ( tvb ) ;\n }\n dissect_scsi_payload ( tvb , pinfo , parent_tree , is_request , itlq , itl , 0 ) ;\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 5666, "target": 0, "func": "void vp9_idct32x32_34_add_sse2 ( const int16_t * input , uint8_t * dest , int stride ) {\n const __m128i rounding = _mm_set1_epi32 ( DCT_CONST_ROUNDING ) ;\n const __m128i final_rounding = _mm_set1_epi16 ( 1 << 5 ) ;\n const __m128i stg1_0 = pair_set_epi16 ( cospi_31_64 , - cospi_1_64 ) ;\n const __m128i stg1_1 = pair_set_epi16 ( cospi_1_64 , cospi_31_64 ) ;\n const __m128i stg1_2 = pair_set_epi16 ( cospi_15_64 , - cospi_17_64 ) ;\n const __m128i stg1_3 = pair_set_epi16 ( cospi_17_64 , cospi_15_64 ) ;\n const __m128i stg1_4 = pair_set_epi16 ( cospi_23_64 , - cospi_9_64 ) ;\n const __m128i stg1_5 = pair_set_epi16 ( cospi_9_64 , cospi_23_64 ) ;\n const __m128i stg1_6 = pair_set_epi16 ( cospi_7_64 , - cospi_25_64 ) ;\n const __m128i stg1_7 = pair_set_epi16 ( cospi_25_64 , cospi_7_64 ) ;\n const __m128i stg1_8 = pair_set_epi16 ( cospi_27_64 , - cospi_5_64 ) ;\n const __m128i stg1_9 = pair_set_epi16 ( cospi_5_64 , cospi_27_64 ) ;\n const __m128i stg1_10 = pair_set_epi16 ( cospi_11_64 , - cospi_21_64 ) ;\n const __m128i stg1_11 = pair_set_epi16 ( cospi_21_64 , cospi_11_64 ) ;\n const __m128i stg1_12 = pair_set_epi16 ( cospi_19_64 , - cospi_13_64 ) ;\n const __m128i stg1_13 = pair_set_epi16 ( cospi_13_64 , cospi_19_64 ) ;\n const __m128i stg1_14 = pair_set_epi16 ( cospi_3_64 , - cospi_29_64 ) ;\n const __m128i stg1_15 = pair_set_epi16 ( cospi_29_64 , cospi_3_64 ) ;\n const __m128i stg2_0 = pair_set_epi16 ( cospi_30_64 , - cospi_2_64 ) ;\n const __m128i stg2_1 = pair_set_epi16 ( cospi_2_64 , cospi_30_64 ) ;\n const __m128i stg2_2 = pair_set_epi16 ( cospi_14_64 , - cospi_18_64 ) ;\n const __m128i stg2_3 = pair_set_epi16 ( cospi_18_64 , cospi_14_64 ) ;\n const __m128i stg2_4 = pair_set_epi16 ( cospi_22_64 , - cospi_10_64 ) ;\n const __m128i stg2_5 = pair_set_epi16 ( cospi_10_64 , cospi_22_64 ) ;\n const __m128i stg2_6 = pair_set_epi16 ( cospi_6_64 , - cospi_26_64 ) ;\n const __m128i stg2_7 = pair_set_epi16 ( cospi_26_64 , cospi_6_64 ) ;\n const __m128i stg3_0 = pair_set_epi16 ( cospi_28_64 , - cospi_4_64 ) ;\n const __m128i stg3_1 = pair_set_epi16 ( cospi_4_64 , cospi_28_64 ) ;\n const __m128i stg3_2 = pair_set_epi16 ( cospi_12_64 , - cospi_20_64 ) ;\n const __m128i stg3_3 = pair_set_epi16 ( cospi_20_64 , cospi_12_64 ) ;\n const __m128i stg3_4 = pair_set_epi16 ( - cospi_4_64 , cospi_28_64 ) ;\n const __m128i stg3_5 = pair_set_epi16 ( cospi_28_64 , cospi_4_64 ) ;\n const __m128i stg3_6 = pair_set_epi16 ( - cospi_28_64 , - cospi_4_64 ) ;\n const __m128i stg3_8 = pair_set_epi16 ( - cospi_20_64 , cospi_12_64 ) ;\n const __m128i stg3_9 = pair_set_epi16 ( cospi_12_64 , cospi_20_64 ) ;\n const __m128i stg3_10 = pair_set_epi16 ( - cospi_12_64 , - cospi_20_64 ) ;\n const __m128i stg4_0 = pair_set_epi16 ( cospi_16_64 , cospi_16_64 ) ;\n const __m128i stg4_1 = pair_set_epi16 ( cospi_16_64 , - cospi_16_64 ) ;\n const __m128i stg4_2 = pair_set_epi16 ( cospi_24_64 , - cospi_8_64 ) ;\n const __m128i stg4_3 = pair_set_epi16 ( cospi_8_64 , cospi_24_64 ) ;\n const __m128i stg4_4 = pair_set_epi16 ( - cospi_8_64 , cospi_24_64 ) ;\n const __m128i stg4_5 = pair_set_epi16 ( cospi_24_64 , cospi_8_64 ) ;\n const __m128i stg4_6 = pair_set_epi16 ( - cospi_24_64 , - cospi_8_64 ) ;\n const __m128i stg6_0 = pair_set_epi16 ( - cospi_16_64 , cospi_16_64 ) ;\n __m128i in [ 32 ] , col [ 32 ] ;\n __m128i stp1_0 , stp1_1 , stp1_2 , stp1_3 , stp1_4 , stp1_5 , stp1_6 , stp1_7 , stp1_8 , stp1_9 , stp1_10 , stp1_11 , stp1_12 , stp1_13 , stp1_14 , stp1_15 , stp1_16 , stp1_17 , stp1_18 , stp1_19 , stp1_20 , stp1_21 , stp1_22 , stp1_23 , stp1_24 , stp1_25 , stp1_26 , stp1_27 , stp1_28 , stp1_29 , stp1_30 , stp1_31 ;\n __m128i stp2_0 , stp2_1 , stp2_2 , stp2_3 , stp2_4 , stp2_5 , stp2_6 , stp2_7 , stp2_8 , stp2_9 , stp2_10 , stp2_11 , stp2_12 , stp2_13 , stp2_14 , stp2_15 , stp2_16 , stp2_17 , stp2_18 , stp2_19 , stp2_20 , stp2_21 , stp2_22 , stp2_23 , stp2_24 , stp2_25 , stp2_26 , stp2_27 , stp2_28 , stp2_29 , stp2_30 , stp2_31 ;\n __m128i tmp0 , tmp1 , tmp2 , tmp3 , tmp4 , tmp5 , tmp6 , tmp7 ;\n int i ;\n LOAD_DQCOEFF ( in [ 0 ] , input ) ;\n LOAD_DQCOEFF ( in [ 8 ] , input ) ;\n LOAD_DQCOEFF ( in [ 16 ] , input ) ;\n LOAD_DQCOEFF ( in [ 24 ] , input ) ;\n LOAD_DQCOEFF ( in [ 1 ] , input ) ;\n LOAD_DQCOEFF ( in [ 9 ] , input ) ;\n LOAD_DQCOEFF ( in [ 17 ] , input ) ;\n LOAD_DQCOEFF ( in [ 25 ] , input ) ;\n LOAD_DQCOEFF ( in [ 2 ] , input ) ;\n LOAD_DQCOEFF ( in [ 10 ] , input ) ;\n LOAD_DQCOEFF ( in [ 18 ] , input ) ;\n LOAD_DQCOEFF ( in [ 26 ] , input ) ;\n LOAD_DQCOEFF ( in [ 3 ] , input ) ;\n LOAD_DQCOEFF ( in [ 11 ] , input ) ;\n LOAD_DQCOEFF ( in [ 19 ] , input ) ;\n LOAD_DQCOEFF ( in [ 27 ] , input ) ;\n LOAD_DQCOEFF ( in [ 4 ] , input ) ;\n LOAD_DQCOEFF ( in [ 12 ] , input ) ;\n LOAD_DQCOEFF ( in [ 20 ] , input ) ;\n LOAD_DQCOEFF ( in [ 28 ] , input ) ;\n LOAD_DQCOEFF ( in [ 5 ] , input ) ;\n LOAD_DQCOEFF ( in [ 13 ] , input ) ;\n LOAD_DQCOEFF ( in [ 21 ] , input ) ;\n LOAD_DQCOEFF ( in [ 29 ] , input ) ;\n LOAD_DQCOEFF ( in [ 6 ] , input ) ;\n LOAD_DQCOEFF ( in [ 14 ] , input ) ;\n LOAD_DQCOEFF ( in [ 22 ] , input ) ;\n LOAD_DQCOEFF ( in [ 30 ] , input ) ;\n LOAD_DQCOEFF ( in [ 7 ] , input ) ;\n LOAD_DQCOEFF ( in [ 15 ] , input ) ;\n LOAD_DQCOEFF ( in [ 23 ] , input ) ;\n LOAD_DQCOEFF ( in [ 31 ] , input ) ;\n array_transpose_8x8 ( in , in ) ;\n array_transpose_8x8 ( in + 8 , in + 8 ) ;\n array_transpose_8x8 ( in + 16 , in + 16 ) ;\n array_transpose_8x8 ( in + 24 , in + 24 ) ;\n IDCT32 col [ 0 ] = _mm_add_epi16 ( stp1_0 , stp1_31 ) ;\n col [ 1 ] = _mm_add_epi16 ( stp1_1 , stp1_30 ) ;\n col [ 2 ] = _mm_add_epi16 ( stp1_2 , stp1_29 ) ;\n col [ 3 ] = _mm_add_epi16 ( stp1_3 , stp1_28 ) ;\n col [ 4 ] = _mm_add_epi16 ( stp1_4 , stp1_27 ) ;\n col [ 5 ] = _mm_add_epi16 ( stp1_5 , stp1_26 ) ;\n col [ 6 ] = _mm_add_epi16 ( stp1_6 , stp1_25 ) ;\n col [ 7 ] = _mm_add_epi16 ( stp1_7 , stp1_24 ) ;\n col [ 8 ] = _mm_add_epi16 ( stp1_8 , stp1_23 ) ;\n col [ 9 ] = _mm_add_epi16 ( stp1_9 , stp1_22 ) ;\n col [ 10 ] = _mm_add_epi16 ( stp1_10 , stp1_21 ) ;\n col [ 11 ] = _mm_add_epi16 ( stp1_11 , stp1_20 ) ;\n col [ 12 ] = _mm_add_epi16 ( stp1_12 , stp1_19 ) ;\n col [ 13 ] = _mm_add_epi16 ( stp1_13 , stp1_18 ) ;\n col [ 14 ] = _mm_add_epi16 ( stp1_14 , stp1_17 ) ;\n col [ 15 ] = _mm_add_epi16 ( stp1_15 , stp1_16 ) ;\n col [ 16 ] = _mm_sub_epi16 ( stp1_15 , stp1_16 ) ;\n col [ 17 ] = _mm_sub_epi16 ( stp1_14 , stp1_17 ) ;\n col [ 18 ] = _mm_sub_epi16 ( stp1_13 , stp1_18 ) ;\n col [ 19 ] = _mm_sub_epi16 ( stp1_12 , stp1_19 ) ;\n col [ 20 ] = _mm_sub_epi16 ( stp1_11 , stp1_20 ) ;\n col [ 21 ] = _mm_sub_epi16 ( stp1_10 , stp1_21 ) ;\n col [ 22 ] = _mm_sub_epi16 ( stp1_9 , stp1_22 ) ;\n col [ 23 ] = _mm_sub_epi16 ( stp1_8 , stp1_23 ) ;\n col [ 24 ] = _mm_sub_epi16 ( stp1_7 , stp1_24 ) ;\n col [ 25 ] = _mm_sub_epi16 ( stp1_6 , stp1_25 ) ;\n col [ 26 ] = _mm_sub_epi16 ( stp1_5 , stp1_26 ) ;\n col [ 27 ] = _mm_sub_epi16 ( stp1_4 , stp1_27 ) ;\n col [ 28 ] = _mm_sub_epi16 ( stp1_3 , stp1_28 ) ;\n col [ 29 ] = _mm_sub_epi16 ( stp1_2 , stp1_29 ) ;\n col [ 30 ] = _mm_sub_epi16 ( stp1_1 , stp1_30 ) ;\n col [ 31 ] = _mm_sub_epi16 ( stp1_0 , stp1_31 ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n const __m128i zero = _mm_setzero_si128 ( ) ;\n array_transpose_8x8 ( col + i * 8 , in ) ;\n IDCT32_34 in [ 0 ] = _mm_add_epi16 ( stp1_0 , stp1_31 ) ;\n in [ 1 ] = _mm_add_epi16 ( stp1_1 , stp1_30 ) ;\n in [ 2 ] = _mm_add_epi16 ( stp1_2 , stp1_29 ) ;\n in [ 3 ] = _mm_add_epi16 ( stp1_3 , stp1_28 ) ;\n in [ 4 ] = _mm_add_epi16 ( stp1_4 , stp1_27 ) ;\n in [ 5 ] = _mm_add_epi16 ( stp1_5 , stp1_26 ) ;\n in [ 6 ] = _mm_add_epi16 ( stp1_6 , stp1_25 ) ;\n in [ 7 ] = _mm_add_epi16 ( stp1_7 , stp1_24 ) ;\n in [ 8 ] = _mm_add_epi16 ( stp1_8 , stp1_23 ) ;\n in [ 9 ] = _mm_add_epi16 ( stp1_9 , stp1_22 ) ;\n in [ 10 ] = _mm_add_epi16 ( stp1_10 , stp1_21 ) ;\n in [ 11 ] = _mm_add_epi16 ( stp1_11 , stp1_20 ) ;\n in [ 12 ] = _mm_add_epi16 ( stp1_12 , stp1_19 ) ;\n in [ 13 ] = _mm_add_epi16 ( stp1_13 , stp1_18 ) ;\n in [ 14 ] = _mm_add_epi16 ( stp1_14 , stp1_17 ) ;\n in [ 15 ] = _mm_add_epi16 ( stp1_15 , stp1_16 ) ;\n in [ 16 ] = _mm_sub_epi16 ( stp1_15 , stp1_16 ) ;\n in [ 17 ] = _mm_sub_epi16 ( stp1_14 , stp1_17 ) ;\n in [ 18 ] = _mm_sub_epi16 ( stp1_13 , stp1_18 ) ;\n in [ 19 ] = _mm_sub_epi16 ( stp1_12 , stp1_19 ) ;\n in [ 20 ] = _mm_sub_epi16 ( stp1_11 , stp1_20 ) ;\n in [ 21 ] = _mm_sub_epi16 ( stp1_10 , stp1_21 ) ;\n in [ 22 ] = _mm_sub_epi16 ( stp1_9 , stp1_22 ) ;\n in [ 23 ] = _mm_sub_epi16 ( stp1_8 , stp1_23 ) ;\n in [ 24 ] = _mm_sub_epi16 ( stp1_7 , stp1_24 ) ;\n in [ 25 ] = _mm_sub_epi16 ( stp1_6 , stp1_25 ) ;\n in [ 26 ] = _mm_sub_epi16 ( stp1_5 , stp1_26 ) ;\n in [ 27 ] = _mm_sub_epi16 ( stp1_4 , stp1_27 ) ;\n in [ 28 ] = _mm_sub_epi16 ( stp1_3 , stp1_28 ) ;\n in [ 29 ] = _mm_sub_epi16 ( stp1_2 , stp1_29 ) ;\n in [ 30 ] = _mm_sub_epi16 ( stp1_1 , stp1_30 ) ;\n in [ 31 ] = _mm_sub_epi16 ( stp1_0 , stp1_31 ) ;\n in [ 0 ] = _mm_adds_epi16 ( in [ 0 ] , final_rounding ) ;\n in [ 1 ] = _mm_adds_epi16 ( in [ 1 ] , final_rounding ) ;\n in [ 2 ] = _mm_adds_epi16 ( in [ 2 ] , final_rounding ) ;\n in [ 3 ] = _mm_adds_epi16 ( in [ 3 ] , final_rounding ) ;\n in [ 4 ] = _mm_adds_epi16 ( in [ 4 ] , final_rounding ) ;\n in [ 5 ] = _mm_adds_epi16 ( in [ 5 ] , final_rounding ) ;\n in [ 6 ] = _mm_adds_epi16 ( in [ 6 ] , final_rounding ) ;\n in [ 7 ] = _mm_adds_epi16 ( in [ 7 ] , final_rounding ) ;\n in [ 8 ] = _mm_adds_epi16 ( in [ 8 ] , final_rounding ) ;\n in [ 9 ] = _mm_adds_epi16 ( in [ 9 ] , final_rounding ) ;\n in [ 10 ] = _mm_adds_epi16 ( in [ 10 ] , final_rounding ) ;\n in [ 11 ] = _mm_adds_epi16 ( in [ 11 ] , final_rounding ) ;\n in [ 12 ] = _mm_adds_epi16 ( in [ 12 ] , final_rounding ) ;\n in [ 13 ] = _mm_adds_epi16 ( in [ 13 ] , final_rounding ) ;\n in [ 14 ] = _mm_adds_epi16 ( in [ 14 ] , final_rounding ) ;\n in [ 15 ] = _mm_adds_epi16 ( in [ 15 ] , final_rounding ) ;\n in [ 16 ] = _mm_adds_epi16 ( in [ 16 ] , final_rounding ) ;\n in [ 17 ] = _mm_adds_epi16 ( in [ 17 ] , final_rounding ) ;\n in [ 18 ] = _mm_adds_epi16 ( in [ 18 ] , final_rounding ) ;\n in [ 19 ] = _mm_adds_epi16 ( in [ 19 ] , final_rounding ) ;\n in [ 20 ] = _mm_adds_epi16 ( in [ 20 ] , final_rounding ) ;\n in [ 21 ] = _mm_adds_epi16 ( in [ 21 ] , final_rounding ) ;\n in [ 22 ] = _mm_adds_epi16 ( in [ 22 ] , final_rounding ) ;\n in [ 23 ] = _mm_adds_epi16 ( in [ 23 ] , final_rounding ) ;\n in [ 24 ] = _mm_adds_epi16 ( in [ 24 ] , final_rounding ) ;\n in [ 25 ] = _mm_adds_epi16 ( in [ 25 ] , final_rounding ) ;\n in [ 26 ] = _mm_adds_epi16 ( in [ 26 ] , final_rounding ) ;\n in [ 27 ] = _mm_adds_epi16 ( in [ 27 ] , final_rounding ) ;\n in [ 28 ] = _mm_adds_epi16 ( in [ 28 ] , final_rounding ) ;\n in [ 29 ] = _mm_adds_epi16 ( in [ 29 ] , final_rounding ) ;\n in [ 30 ] = _mm_adds_epi16 ( in [ 30 ] , final_rounding ) ;\n in [ 31 ] = _mm_adds_epi16 ( in [ 31 ] , final_rounding ) ;\n in [ 0 ] = _mm_srai_epi16 ( in [ 0 ] , 6 ) ;\n in [ 1 ] = _mm_srai_epi16 ( in [ 1 ] , 6 ) ;\n in [ 2 ] = _mm_srai_epi16 ( in [ 2 ] , 6 ) ;\n in [ 3 ] = _mm_srai_epi16 ( in [ 3 ] , 6 ) ;\n in [ 4 ] = _mm_srai_epi16 ( in [ 4 ] , 6 ) ;\n in [ 5 ] = _mm_srai_epi16 ( in [ 5 ] , 6 ) ;\n in [ 6 ] = _mm_srai_epi16 ( in [ 6 ] , 6 ) ;\n in [ 7 ] = _mm_srai_epi16 ( in [ 7 ] , 6 ) ;\n in [ 8 ] = _mm_srai_epi16 ( in [ 8 ] , 6 ) ;\n in [ 9 ] = _mm_srai_epi16 ( in [ 9 ] , 6 ) ;\n in [ 10 ] = _mm_srai_epi16 ( in [ 10 ] , 6 ) ;\n in [ 11 ] = _mm_srai_epi16 ( in [ 11 ] , 6 ) ;\n in [ 12 ] = _mm_srai_epi16 ( in [ 12 ] , 6 ) ;\n in [ 13 ] = _mm_srai_epi16 ( in [ 13 ] , 6 ) ;\n in [ 14 ] = _mm_srai_epi16 ( in [ 14 ] , 6 ) ;\n in [ 15 ] = _mm_srai_epi16 ( in [ 15 ] , 6 ) ;\n in [ 16 ] = _mm_srai_epi16 ( in [ 16 ] , 6 ) ;\n in [ 17 ] = _mm_srai_epi16 ( in [ 17 ] , 6 ) ;\n in [ 18 ] = _mm_srai_epi16 ( in [ 18 ] , 6 ) ;\n in [ 19 ] = _mm_srai_epi16 ( in [ 19 ] , 6 ) ;\n in [ 20 ] = _mm_srai_epi16 ( in [ 20 ] , 6 ) ;\n in [ 21 ] = _mm_srai_epi16 ( in [ 21 ] , 6 ) ;\n in [ 22 ] = _mm_srai_epi16 ( in [ 22 ] , 6 ) ;\n in [ 23 ] = _mm_srai_epi16 ( in [ 23 ] , 6 ) ;\n in [ 24 ] = _mm_srai_epi16 ( in [ 24 ] , 6 ) ;\n in [ 25 ] = _mm_srai_epi16 ( in [ 25 ] , 6 ) ;\n in [ 26 ] = _mm_srai_epi16 ( in [ 26 ] , 6 ) ;\n in [ 27 ] = _mm_srai_epi16 ( in [ 27 ] , 6 ) ;\n in [ 28 ] = _mm_srai_epi16 ( in [ 28 ] , 6 ) ;\n in [ 29 ] = _mm_srai_epi16 ( in [ 29 ] , 6 ) ;\n in [ 30 ] = _mm_srai_epi16 ( in [ 30 ] , 6 ) ;\n in [ 31 ] = _mm_srai_epi16 ( in [ 31 ] , 6 ) ;\n RECON_AND_STORE ( dest , in [ 0 ] ) ;\n RECON_AND_STORE ( dest , in [ 1 ] ) ;\n RECON_AND_STORE ( dest , in [ 2 ] ) ;\n RECON_AND_STORE ( dest , in [ 3 ] ) ;\n RECON_AND_STORE ( dest , in [ 4 ] ) ;\n RECON_AND_STORE ( dest , in [ 5 ] ) ;\n RECON_AND_STORE ( dest , in [ 6 ] ) ;\n RECON_AND_STORE ( dest , in [ 7 ] ) ;\n RECON_AND_STORE ( dest , in [ 8 ] ) ;\n RECON_AND_STORE ( dest , in [ 9 ] ) ;\n RECON_AND_STORE ( dest , in [ 10 ] ) ;\n RECON_AND_STORE ( dest , in [ 11 ] ) ;\n RECON_AND_STORE ( dest , in [ 12 ] ) ;\n RECON_AND_STORE ( dest , in [ 13 ] ) ;\n RECON_AND_STORE ( dest , in [ 14 ] ) ;\n RECON_AND_STORE ( dest , in [ 15 ] ) ;\n RECON_AND_STORE ( dest , in [ 16 ] ) ;\n RECON_AND_STORE ( dest , in [ 17 ] ) ;\n RECON_AND_STORE ( dest , in [ 18 ] ) ;\n RECON_AND_STORE ( dest , in [ 19 ] ) ;\n RECON_AND_STORE ( dest , in [ 20 ] ) ;\n RECON_AND_STORE ( dest , in [ 21 ] ) ;\n RECON_AND_STORE ( dest , in [ 22 ] ) ;\n RECON_AND_STORE ( dest , in [ 23 ] ) ;\n RECON_AND_STORE ( dest , in [ 24 ] ) ;\n RECON_AND_STORE ( dest , in [ 25 ] ) ;\n RECON_AND_STORE ( dest , in [ 26 ] ) ;\n RECON_AND_STORE ( dest , in [ 27 ] ) ;\n RECON_AND_STORE ( dest , in [ 28 ] ) ;\n RECON_AND_STORE ( dest , in [ 29 ] ) ;\n RECON_AND_STORE ( dest , in [ 30 ] ) ;\n RECON_AND_STORE ( dest , in [ 31 ] ) ;\n dest += 8 - ( stride * 32 ) ;\n }\n }"}
{"idx": 5667, "target": 0, "func": "SPL_METHOD ( SplFileInfo , getBasename ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char * fname , * suffix = 0 ;\n size_t flen ;\n int slen = 0 , path_len ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"|s\" , & suffix , & slen ) == FAILURE ) {\n return ;\n }\n spl_filesystem_object_get_path ( intern , & path_len TSRMLS_CC ) ;\n if ( path_len && path_len < intern -> file_name_len ) {\n fname = intern -> file_name + path_len + 1 ;\n flen = intern -> file_name_len - ( path_len + 1 ) ;\n }\n else {\n fname = intern -> file_name ;\n flen = intern -> file_name_len ;\n }\n php_basename ( fname , flen , suffix , slen , & fname , & flen TSRMLS_CC ) ;\n RETURN_STRINGL ( fname , flen , 0 ) ;\n }"}
{"idx": 5668, "target": 0, "func": "static void ImportCMYKOQuantum ( const Image * image , QuantumInfo * quantum_info , const MagickSizeType number_pixels , const unsigned char * magick_restrict p , Quantum * magick_restrict q , ExceptionInfo * exception ) {\n QuantumAny range ;\n register ssize_t x ;\n unsigned int pixel ;\n if ( image -> colorspace != CMYKColorspace ) {\n ( void ) ThrowMagickException ( exception , GetMagickModule ( ) , ImageError , \"ColorSeparatedImageRequired\" , \"`%s'\" , image -> filename ) ;\n return ;\n }\n switch ( quantum_info -> depth ) {\n case 8 : {\n unsigned char pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelRed ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelGreen ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelBlue ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelBlack ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelOpacity ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 16 : {\n unsigned short pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelRed ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGreen ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlue ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlack ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelOpacity ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelRed ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGreen ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlue ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlack ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelOpacity ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 32 : {\n unsigned int pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n float pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlack ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelOpacity ( image , ClampToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelRed ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGreen ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlue ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlack ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelOpacity ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 64 : {\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n double pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelBlack ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelOpacity ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n default : {\n range = GetQuantumRange ( quantum_info -> depth ) ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlack ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelOpacity ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n }"}
{"idx": 5669, "target": 0, "func": "static int virtio_net_load ( QEMUFile * f , void * opaque , int version_id ) {\n VirtIONet * n = opaque ;\n int i ;\n int ret ;\n if ( version_id < 2 || version_id > VIRTIO_NET_VM_VERSION ) return - EINVAL ;\n ret = virtio_load ( & n -> vdev , f ) ;\n if ( ret ) {\n return ret ;\n }\n qemu_get_buffer ( f , n -> mac , ETH_ALEN ) ;\n n -> tx_waiting = qemu_get_be32 ( f ) ;\n n -> mergeable_rx_bufs = qemu_get_be32 ( f ) ;\n if ( version_id >= 3 ) n -> status = qemu_get_be16 ( f ) ;\n if ( version_id >= 4 ) {\n if ( version_id < 8 ) {\n n -> promisc = qemu_get_be32 ( f ) ;\n n -> allmulti = qemu_get_be32 ( f ) ;\n }\n else {\n n -> promisc = qemu_get_byte ( f ) ;\n n -> allmulti = qemu_get_byte ( f ) ;\n }\n }\n if ( version_id >= 5 ) {\n n -> mac_table . in_use = qemu_get_be32 ( f ) ;\n if ( n -> mac_table . in_use <= MAC_TABLE_ENTRIES ) {\n qemu_get_buffer ( f , n -> mac_table . macs , n -> mac_table . in_use * ETH_ALEN ) ;\n }\n else if ( n -> mac_table . in_use ) {\n qemu_fseek ( f , n -> mac_table . in_use * ETH_ALEN , SEEK_CUR ) ;\n n -> mac_table . multi_overflow = n -> mac_table . uni_overflow = 1 ;\n n -> mac_table . in_use = 0 ;\n }\n }\n if ( version_id >= 6 ) qemu_get_buffer ( f , ( uint8_t * ) n -> vlans , MAX_VLAN >> 3 ) ;\n if ( version_id >= 7 ) {\n if ( qemu_get_be32 ( f ) && ! peer_has_vnet_hdr ( n ) ) {\n error_report ( \"virtio-net: saved image requires vnet_hdr=on\" ) ;\n return - 1 ;\n }\n if ( n -> has_vnet_hdr ) {\n tap_using_vnet_hdr ( n -> nic -> nc . peer , 1 ) ;\n tap_set_offload ( n -> nic -> nc . peer , ( n -> vdev . guest_features >> VIRTIO_NET_F_GUEST_CSUM ) & 1 , ( n -> vdev . guest_features >> VIRTIO_NET_F_GUEST_TSO4 ) & 1 , ( n -> vdev . guest_features >> VIRTIO_NET_F_GUEST_TSO6 ) & 1 , ( n -> vdev . guest_features >> VIRTIO_NET_F_GUEST_ECN ) & 1 , ( n -> vdev . guest_features >> VIRTIO_NET_F_GUEST_UFO ) & 1 ) ;\n }\n }\n if ( version_id >= 9 ) {\n n -> mac_table . multi_overflow = qemu_get_byte ( f ) ;\n n -> mac_table . uni_overflow = qemu_get_byte ( f ) ;\n }\n if ( version_id >= 10 ) {\n n -> alluni = qemu_get_byte ( f ) ;\n n -> nomulti = qemu_get_byte ( f ) ;\n n -> nouni = qemu_get_byte ( f ) ;\n n -> nobcast = qemu_get_byte ( f ) ;\n }\n if ( version_id >= 11 ) {\n if ( qemu_get_byte ( f ) && ! peer_has_ufo ( n ) ) {\n error_report ( \"virtio-net: saved image requires TUN_F_UFO support\" ) ;\n return - 1 ;\n }\n }\n for ( i = 0 ;\n i < n -> mac_table . in_use ;\n i ++ ) {\n if ( n -> mac_table . macs [ i * ETH_ALEN ] & 1 ) {\n break ;\n }\n }\n n -> mac_table . first_multi = i ;\n return 0 ;\n }"}
{"idx": 5670, "target": 0, "func": "static void parseMappings ( const char * filename , UBool reportError , UErrorCode * pErrorCode ) {\n char * fields [ 3 ] [ 2 ] ;\n if ( pErrorCode == NULL || U_FAILURE ( * pErrorCode ) ) {\n return ;\n }\n u_parseDelimitedFile ( filename , ';\n' , fields , 3 , strprepProfileLineFn , ( void * ) filename , pErrorCode ) ;\n if ( U_FAILURE ( * pErrorCode ) && ( reportError || * pErrorCode != U_FILE_ACCESS_ERROR ) ) {\n fprintf ( stderr , \"gensprep error: u_parseDelimitedFile(\\\"%s\\\") failed - %s\\n\" , filename , u_errorName ( * pErrorCode ) ) ;\n exit ( * pErrorCode ) ;\n }\n }"}
{"idx": 5671, "target": 0, "func": "int ec_GF2m_precompute_mult ( EC_GROUP * group , BN_CTX * ctx ) {\n return ec_wNAF_precompute_mult ( group , ctx ) ;\n }"}
{"idx": 5672, "target": 0, "func": "void proto_register_iax2 ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_iax2_packet_type , {\n \"Packet type\" , \"iax2.packet_type\" , FT_UINT8 , BASE_DEC , VALS ( iax_packet_types ) , 0 , \"Full/minivoice/minivideo/trunk packet\" , HFILL }\n }\n , {\n & hf_iax2_callno , {\n \"Call identifier\" , \"iax2.call\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"This is the identifier Wireshark assigns to identify this call.\" \" It does not correspond to any real field in the protocol\" , HFILL }\n }\n , {\n & hf_iax2_scallno , {\n \"Source call\" , \"iax2.src_call\" , FT_UINT16 , BASE_DEC , NULL , 0x7FFF , \"src_call holds the number of this call at the packet source pbx\" , HFILL }\n }\n , {\n & hf_iax2_dcallno , {\n \"Destination call\" , \"iax2.dst_call\" , FT_UINT16 , BASE_DEC , NULL , 0x7FFF , \"dst_call holds the number of this call at the packet destination\" , HFILL }\n }\n , {\n & hf_iax2_retransmission , {\n \"Retransmission\" , \"iax2.retransmission\" , FT_BOOLEAN , 16 , NULL , 0x8000 , \"retransmission is set if this packet is a retransmission of an earlier failed packet\" , HFILL }\n }\n , {\n & hf_iax2_ts , {\n \"Timestamp\" , \"iax2.timestamp\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"timestamp is the time, in ms after the start of this call, at which this packet was transmitted\" , HFILL }\n }\n , {\n & hf_iax2_minits , {\n \"Timestamp\" , \"iax2.timestamp\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"timestamp is the time, in ms after the start of this call, at which this packet was transmitted\" , HFILL }\n }\n , {\n & hf_iax2_minividts , {\n \"Timestamp\" , \"iax2.timestamp\" , FT_UINT16 , BASE_DEC , NULL , 0x7FFF , \"timestamp is the time, in ms after the start of this call, at which this packet was transmitted\" , HFILL }\n }\n , {\n & hf_iax2_absts , {\n \"Absolute Time\" , \"iax2.abstime\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_LOCAL , NULL , 0x0 , \"The absolute time of this packet (calculated by adding the IAX timestamp to the start time of this call)\" , HFILL }\n }\n , {\n & hf_iax2_lateness , {\n \"Lateness\" , \"iax2.lateness\" , FT_RELATIVE_TIME , BASE_NONE , NULL , 0x0 , \"The lateness of this packet compared to its timestamp\" , HFILL }\n }\n , {\n & hf_iax2_minividmarker , {\n \"Marker\" , \"iax2.video.marker\" , FT_UINT16 , BASE_DEC , NULL , 0x8000 , \"RTP end-of-frame marker\" , HFILL }\n }\n , {\n & hf_iax2_oseqno , {\n \"Outbound seq.no.\" , \"iax2.oseqno\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"oseqno is the sequence no of this packet. The first packet has oseqno==0,\" \" and subsequent packets increment the oseqno by 1\" , HFILL }\n }\n , {\n & hf_iax2_iseqno , {\n \"Inbound seq.no.\" , \"iax2.iseqno\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"iseqno is the sequence no of the last successfully received packet\" , HFILL }\n }\n , {\n & hf_iax2_type , {\n \"Type\" , \"iax2.type\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & iax_frame_types_ext , 0x0 , \"For full IAX2 frames, type is the type of frame\" , HFILL }\n }\n , {\n & hf_iax2_csub , {\n \"Unknown subclass\" , \"iax2.subclass\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , \"Subclass of unknown type of full IAX2 frame\" , HFILL }\n }\n , {\n & hf_iax2_dtmf_csub , {\n \"DTMF subclass (digit)\" , \"iax2.dtmf.subclass\" , FT_STRINGZ , BASE_NONE , NULL , 0x0 , \"DTMF subclass gives the DTMF digit\" , HFILL }\n }\n , {\n & hf_iax2_cmd_csub , {\n \"Control subclass\" , \"iax2.control.subclass\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & iax_cmd_subclasses_ext , 0x0 , \"This gives the command number for a Control packet.\" , HFILL }\n }\n , {\n & hf_iax2_iax_csub , {\n \"IAX subclass\" , \"iax2.iax.subclass\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & iax_iax_subclasses_ext , 0x0 , \"IAX subclass gives the command number for IAX signaling packets\" , HFILL }\n }\n , {\n & hf_iax2_voice_csub , {\n \"Voice Subclass (compressed codec no)\" , \"iax2.voice.subclass\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_voice_codec , {\n \"CODEC\" , \"iax2.voice.codec\" , FT_UINT32 , BASE_HEX | BASE_EXT_STRING , & codec_types_ext , 0x0 , \"CODEC gives the codec used to encode audio data\" , HFILL }\n }\n , {\n & hf_iax2_video_csub , {\n \"Video Subclass (compressed codec no)\" , \"iax2.video.subclass\" , FT_UINT8 , BASE_DEC , NULL , 0xBF , NULL , HFILL }\n }\n , {\n & hf_iax2_marker , {\n \"Marker\" , \"iax2.video.marker\" , FT_BOOLEAN , 8 , NULL , 0x40 , \"RTP end-of-frame marker\" , HFILL }\n }\n , {\n & hf_iax2_video_codec , {\n \"CODEC\" , \"iax2.video.codec\" , FT_UINT32 , BASE_HEX | BASE_EXT_STRING , & codec_types_ext , 0 , \"The codec used to encode video data\" , HFILL }\n }\n , {\n & hf_iax2_modem_csub , {\n \"Modem subclass\" , \"iax2.modem.subclass\" , FT_UINT8 , BASE_DEC , VALS ( iax_modem_subclasses ) , 0x0 , \"Modem subclass gives the type of modem\" , HFILL }\n }\n , {\n & hf_iax2_text_csub , {\n \"Text subclass\" , \"iax2.text.subclass\" , FT_UINT8 , BASE_DEC , VALS ( iax_text_subclasses ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_text_text , {\n \"Text\" , \"iax2.text.text\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_html_csub , {\n \"HTML subclass\" , \"iax2.html.subclass\" , FT_UINT8 , BASE_DEC , VALS ( iax_html_subclasses ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_html_url , {\n \"HTML URL\" , \"iax2.html.url\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_trunk_ts , {\n \"Timestamp\" , \"iax2.timestamp\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"timestamp is the time, in ms after the start of Command data this call,\" \" at which this trunk packet was transmitted\" , HFILL }\n }\n , {\n & hf_iax2_trunk_metacmd , {\n \"Meta command\" , \"iax2.trunk.metacmd\" , FT_UINT8 , BASE_DEC , NULL , 0x7F , \"Meta command indicates whether or not the Meta Frame is a trunk.\" , HFILL }\n }\n , {\n & hf_iax2_trunk_cmddata , {\n \"Command data\" , \"iax2.trunk.cmddata\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , \"Flags for options that apply to a trunked call\" , HFILL }\n }\n , {\n & hf_iax2_trunk_cmddata_ts , {\n \"Trunk timestamps\" , \"iax2.trunk.cmddata.ts\" , FT_BOOLEAN , 8 , NULL , IAX2_TRUNK_TS , \"True: calls do each include their own timestamp\" , HFILL }\n }\n , {\n & hf_iax2_trunk_call_len , {\n \"Data length\" , \"iax2.trunk.call.len\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Trunk call data length in octets\" , HFILL }\n }\n , {\n & hf_iax2_trunk_call_scallno , {\n \"Source call number\" , \"iax2.trunk.call.scallno\" , FT_UINT16 , BASE_DEC , NULL , 0x7FFF , \"Trunk call source call number\" , HFILL }\n }\n , {\n & hf_iax2_trunk_call_ts , {\n \"Timestamp\" , \"iax2.trunk.call.ts\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"timestamp is the time, in ms after the start of this call, at which this packet was transmitted\" , HFILL }\n }\n , {\n & hf_iax2_trunk_call_data , {\n \"Data\" , \"iax2.trunk.call.payload\" , FT_BYTES , BASE_NONE , NULL , 0x0 , \"Payload carried by this trunked packet.\" , HFILL }\n }\n , {\n & hf_iax2_trunk_ncalls , {\n \"Number of calls\" , \"iax2.trunk.ncalls\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Number of calls in this trunk packet\" , HFILL }\n }\n , {\n & hf_IAX_IE_APPARENTADDR_SINFAMILY , {\n \"Family\" , \"iax2.iax.app_addr.sinfamily\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_IAX_IE_APPARENTADDR_SINPORT , {\n \"Port\" , \"iax2.iax.app_addr.sinport\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_IAX_IE_APPARENTADDR_SINADDR , {\n \"Address\" , \"iax2.iax.app_addr.sinaddr\" , FT_IPv4 , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_CALLED_NUMBER ] , {\n \"Number/extension being called\" , \"iax2.iax.called_number\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_CALLING_NUMBER ] , {\n \"Calling number\" , \"iax2.iax.calling_number\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_CALLING_ANI ] , {\n \"Calling number ANI for billing\" , \"iax2.iax.calling_ani\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_CALLING_NAME ] , {\n \"Name of caller\" , \"iax2.iax.calling_name\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_CALLED_CONTEXT ] , {\n \"Context for number\" , \"iax2.iax.called_context\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_USERNAME ] , {\n \"Username (peer or user) for authentication\" , \"iax2.iax.username\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_PASSWORD ] , {\n \"Password for authentication\" , \"iax2.iax.password\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_CAPABILITY ] , {\n \"Actual codec capability\" , \"iax2.iax.capability\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_FORMAT ] , {\n \"Desired codec format\" , \"iax2.iax.format\" , FT_UINT32 , BASE_HEX | BASE_EXT_STRING , & codec_types_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_LANGUAGE ] , {\n \"Desired language\" , \"iax2.iax.language\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_VERSION ] , {\n \"Protocol version\" , \"iax2.iax.version\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_ADSICPE ] , {\n \"CPE ADSI capability\" , \"iax2.iax.cpe_adsi\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_DNID ] , {\n \"Originally dialed DNID\" , \"iax2.iax.dnid\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_AUTHMETHODS ] , {\n \"Authentication method(s)\" , \"iax2.iax.auth.methods\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_CHALLENGE ] , {\n \"Challenge data for MD5/RSA\" , \"iax2.iax.auth.challenge\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_MD5_RESULT ] , {\n \"MD5 challenge result\" , \"iax2.iax.auth.md5\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_RSA_RESULT ] , {\n \"RSA challenge result\" , \"iax2.iax.auth.rsa\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_REFRESH ] , {\n \"When to refresh registration\" , \"iax2.iax.refresh\" , FT_INT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_DPSTATUS ] , {\n \"Dialplan status\" , \"iax2.iax.dialplan_status\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_CALLNO ] , {\n \"Call number of peer\" , \"iax2.iax.call_no\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_CAUSE ] , {\n \"Cause\" , \"iax2.iax.cause\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_IAX_UNKNOWN ] , {\n \"Unknown IAX command\" , \"iax2.iax.iax_unknown\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_MSGCOUNT ] , {\n \"How many messages waiting\" , \"iax2.iax.msg_count\" , FT_INT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_AUTOANSWER ] , {\n \"Request auto-answering\" , \"iax2.iax.autoanswer\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_MUSICONHOLD ] , {\n \"Request musiconhold with QUELCH\" , \"iax2.iax.moh\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_TRANSFERID ] , {\n \"Transfer Request Identifier\" , \"iax2.iax.transferid\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_RDNIS ] , {\n \"Referring DNIS\" , \"iax2.iax.rdnis\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_PROVISIONING ] , {\n \"Provisioning info\" , \"iax2.iax.provisioning\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_AESPROVISIONING ] , {\n \"AES Provisioning info\" , \"iax2.iax.aesprovisioning\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_DATETIME ] , {\n \"Date/Time\" , \"iax2.iax.datetime.raw\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ie_datetime , {\n \"Date/Time\" , \"iax2.iax.datetime\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_LOCAL , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_DEVICETYPE ] , {\n \"Device type\" , \"iax2.iax.devicetype\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_SERVICEIDENT ] , {\n \"Service identifier\" , \"iax2.iax.serviceident\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_FIRMWAREVER ] , {\n \"Firmware version\" , \"iax2.iax.firmwarever\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_FWBLOCKDESC ] , {\n \"Firmware block description\" , \"iax2.iax.fwblockdesc\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_FWBLOCKDATA ] , {\n \"Firmware block of data\" , \"iax2.iax.fwblockdata\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_PROVVER ] , {\n \"Provisioning version\" , \"iax2.iax.provver\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_CALLINGPRES ] , {\n \"Calling presentation\" , \"iax2.iax.callingpres\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_CALLINGTON ] , {\n \"Calling type of number\" , \"iax2.iax.callington\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_CALLINGTNS ] , {\n \"Calling transit network select\" , \"iax2.iax.callingtns\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_SAMPLINGRATE ] , {\n \"Supported sampling rates\" , \"iax2.iax.samplingrate\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_CAUSECODE ] , {\n \"Hangup cause\" , \"iax2.iax.causecode\" , FT_UINT8 , BASE_HEX | BASE_EXT_STRING , & iax_causecodes_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_ENCRYPTION ] , {\n \"Encryption format\" , \"iax2.iax.encryption\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_ENCKEY ] , {\n \"Encryption key\" , \"iax2.iax.enckey\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_CODEC_PREFS ] , {\n \"Codec negotiation\" , \"iax2.iax.codecprefs\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_RR_JITTER ] , {\n \"Received jitter (as in RFC1889)\" , \"iax2.iax.rrjitter\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_RR_LOSS ] , {\n \"Received loss (high byte loss pct, low 24 bits loss count, as in rfc1889)\" , \"iax2.iax.rrloss\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_RR_PKTS ] , {\n \"Total frames received\" , \"iax2.iax.rrpkts\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_RR_DELAY ] , {\n \"Max playout delay in ms for received frames\" , \"iax2.iax.rrdelay\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_RR_DROPPED ] , {\n \"Dropped frames (presumably by jitterbuffer)\" , \"iax2.iax.rrdropped\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_RR_OOO ] , {\n \"Frame received out of order\" , \"iax2.iax.rrooo\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_ies [ IAX_IE_DATAFORMAT ] , {\n \"Data call format\" , \"iax2.iax.dataformat\" , FT_UINT32 , BASE_HEX , VALS ( iax_dataformats ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_IAX_IE_UNKNOWN_BYTE , {\n \"Unknown\" , \"iax2.iax.unknownbyte\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , \"Raw data for unknown IEs\" , HFILL }\n }\n , {\n & hf_IAX_IE_UNKNOWN_I16 , {\n \"Unknown\" , \"iax2.iax.unknownshort\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , \"Raw data for unknown IEs\" , HFILL }\n }\n , {\n & hf_IAX_IE_UNKNOWN_I32 , {\n \"Unknown\" , \"iax2.iax.unknownlong\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , \"Raw data for unknown IEs\" , HFILL }\n }\n , {\n & hf_IAX_IE_UNKNOWN_BYTES , {\n \"Unknown\" , \"iax2.iax.unknownstring\" , FT_STRING , BASE_NONE , NULL , 0x0 , \"Raw data for unknown IEs\" , HFILL }\n }\n , {\n & hf_iax2_ie_id , {\n \"IE id\" , \"iax2.ie_id\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & iax_ies_type_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_length , {\n \"Length\" , \"iax2.length\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_g723_1 , {\n \"G.723.1 compression\" , \"iax2.cap.g723_1\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_G723_1 , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_gsm , {\n \"GSM compression\" , \"iax2.cap.gsm\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_GSM , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_ulaw , {\n \"Raw mu-law data (G.711)\" , \"iax2.cap.ulaw\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_ULAW , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_alaw , {\n \"Raw A-law data (G.711)\" , \"iax2.cap.alaw\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_ALAW , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_g726_aal2 , {\n \"G.726 compression (AAL2 packing)\" , \"iax2.cap.g726_aal2\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_G726_AAL2 , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_adpcm , {\n \"ADPCM\" , \"iax2.cap.adpcm\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_ADPCM , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_slinear , {\n \"Raw 16-bit Signed Linear (8000 Hz) PCM\" , \"iax2.cap.slinear\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_SLINEAR , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_lpc10 , {\n \"LPC10, 180 samples/frame\" , \"iax2.cap.lpc10\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_LPC10 , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_g729a , {\n \"G.729a Audio\" , \"iax2.cap.g729a\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_G729A , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_speex , {\n \"SPEEX Audio\" , \"iax2.cap.speex\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_SPEEX , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_ilbc , {\n \"iLBC Free compressed Audio\" , \"iax2.cap.ilbc\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_ILBC , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_g726 , {\n \"ADPCM (G.726, 32kbps, RFC3551 codeword packing)\" , \"iax2.cap.g726\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_G726 , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_g722 , {\n \"G.722 wideband audio\" , \"iax2.cap.g722\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_G722 , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_siren7 , {\n \"G.722.1 (also known as Siren7, 32kbps assumed)\" , \"iax2.cap.siren7\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_SIREN7 , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_siren14 , {\n \"G.722.1 Annex C (also known as Siren14, 48kbps assumed)\" , \"iax2.cap.siren14\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_SIREN14 , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_slinear16 , {\n \"Raw 16-bit Signed Linear (16000 Hz) PCM\" , \"iax2.cap.slinear16\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_SLINEAR16 , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_jpeg , {\n \"JPEG images\" , \"iax2.cap.jpeg\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_JPEG , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_png , {\n \"PNG images\" , \"iax2.cap.png\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_PNG , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_h261 , {\n \"H.261 video\" , \"iax2.cap.h261\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_H261 , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_h263 , {\n \"H.263 video\" , \"iax2.cap.h263\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_H263 , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_h263_plus , {\n \"H.263+ video\" , \"iax2.cap.h263_plus\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_H263_PLUS , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_h264 , {\n \"H.264 video\" , \"iax2.cap.h264\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_H264 , NULL , HFILL }\n }\n , {\n & hf_iax2_cap_mpeg4 , {\n \"MPEG4 video\" , \"iax2.cap.mpeg4\" , FT_BOOLEAN , 32 , TFS ( & tfs_supported_not_supported ) , AST_FORMAT_MP4_VIDEO , NULL , HFILL }\n }\n , {\n & hf_iax2_fragment_unfinished , {\n \"IAX2 fragment, unfinished\" , \"iax2.fragment_unfinished\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_payload_data , {\n \"IAX2 payload\" , \"iax2.payload_data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_fragments , {\n \"IAX2 Fragments\" , \"iax2.fragments\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_fragment , {\n \"IAX2 Fragment data\" , \"iax2.fragment\" , FT_FRAMENUM , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_fragment_overlap , {\n \"Fragment overlap\" , \"iax2.fragment.overlap\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , \"Fragment overlaps with other fragments\" , HFILL }\n }\n , {\n & hf_iax2_fragment_overlap_conflict , {\n \"Conflicting data in fragment overlap\" , \"iax2.fragment.overlap.conflict\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , \"Overlapping fragments contained conflicting data\" , HFILL }\n }\n , {\n & hf_iax2_fragment_multiple_tails , {\n \"Multiple tail fragments found\" , \"iax2.fragment.multipletails\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , \"Several tails were found when defragmenting the packet\" , HFILL }\n }\n , {\n & hf_iax2_fragment_too_long_fragment , {\n \"Fragment too long\" , \"iax2.fragment.toolongfragment\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , \"Fragment contained data past end of packet\" , HFILL }\n }\n , {\n & hf_iax2_fragment_error , {\n \"Defragmentation error\" , \"iax2.fragment.error\" , FT_FRAMENUM , BASE_NONE , NULL , 0x0 , \"Defragmentation error due to illegal fragments\" , HFILL }\n }\n , {\n & hf_iax2_fragment_count , {\n \"Fragment count\" , \"iax2.fragment.count\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_iax2_reassembled_in , {\n \"IAX2 fragment, reassembled in frame\" , \"iax2.reassembled_in\" , FT_FRAMENUM , BASE_NONE , NULL , 0x0 , \"This IAX2 packet is reassembled in this frame\" , HFILL }\n }\n , {\n & hf_iax2_reassembled_length , {\n \"Reassembled IAX2 length\" , \"iax2.reassembled.length\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"The total length of the reassembled payload\" , HFILL }\n }\n }\n ;\n static gint * ett [ ] = {\n & ett_iax2 , & ett_iax2_full_mini_subtree , & ett_iax2_type , & ett_iax2_ie , & ett_iax2_codecs , & ett_iax2_ies_apparent_addr , & ett_iax2_fragment , & ett_iax2_fragments , & ett_iax2_trunk_cmddata , & ett_iax2_trunk_call }\n ;\n static ei_register_info ei [ ] = {\n {\n & ei_iax_too_many_transfers , {\n \"iax2.too_many_transfers\" , PI_PROTOCOL , PI_WARN , \"Too many transfers for iax_call\" , EXPFILL }\n }\n , {\n & ei_iax_circuit_id_conflict , {\n \"iax2.circuit_id_conflict\" , PI_PROTOCOL , PI_WARN , \"Circuit ID conflict\" , EXPFILL }\n }\n , {\n & ei_iax_peer_address_unsupported , {\n \"iax2.peer_address_unsupported\" , PI_PROTOCOL , PI_WARN , \"Peer address unsupported\" , EXPFILL }\n }\n , {\n & ei_iax_invalid_len , {\n \"iax2.invalid_len\" , PI_PROTOCOL , PI_WARN , \"Invalid length\" , EXPFILL }\n }\n , {\n & ei_iax_invalid_ts , {\n \"iax2.invalid_ts\" , PI_PROTOCOL , PI_WARN , \"Invalid timestamp\" , EXPFILL }\n }\n }\n ;\n expert_module_t * expert_iax ;\n memset ( hf_iax2_ies , 0xff , sizeof ( hf_iax2_ies ) ) ;\n proto_iax2 = proto_register_protocol ( \"Inter-Asterisk eXchange v2\" , \"IAX2\" , \"iax2\" ) ;\n proto_register_field_array ( proto_iax2 , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n expert_iax = expert_register_protocol ( proto_iax2 ) ;\n expert_register_field_array ( expert_iax , ei , array_length ( ei ) ) ;\n register_dissector ( \"iax2\" , dissect_iax2 , proto_iax2 ) ;\n iax2_codec_dissector_table = register_dissector_table ( \"iax2.codec\" , \"IAX codec number\" , FT_UINT32 , BASE_HEX ) ;\n iax2_dataformat_dissector_table = register_dissector_table ( \"iax2.dataformat\" , \"IAX dataformat number\" , FT_UINT32 , BASE_HEX ) ;\n register_init_routine ( & iax_init_protocol ) ;\n register_cleanup_routine ( & iax_cleanup_protocol ) ;\n iax2_tap = register_tap ( \"IAX2\" ) ;\n }"}
{"idx": 5673, "target": 0, "func": "static int display_end_segment ( AVCodecContext * avctx , void * data , const uint8_t * buf , int buf_size ) {\n AVSubtitle * sub = data ;\n PGSSubContext * ctx = avctx -> priv_data ;\n int64_t pts ;\n uint16_t rect ;\n pts = ctx -> pts != AV_NOPTS_VALUE ? ctx -> pts : sub -> pts ;\n memset ( sub , 0 , sizeof ( * sub ) ) ;\n sub -> pts = pts ;\n ctx -> pts = AV_NOPTS_VALUE ;\n if ( ! ctx -> presentation . object_count ) return 1 ;\n sub -> start_display_time = 0 ;\n sub -> end_display_time = 20000 ;\n sub -> format = 0 ;\n sub -> num_rects = ctx -> presentation . object_count ;\n sub -> rects = av_mallocz ( sizeof ( * sub -> rects ) * sub -> num_rects ) ;\n for ( rect = 0 ;\n rect < sub -> num_rects ;\n ++ rect ) {\n uint16_t picture_id = ctx -> presentation . objects [ rect ] . picture_id ;\n sub -> rects [ rect ] = av_mallocz ( sizeof ( * sub -> rects [ rect ] ) ) ;\n sub -> rects [ rect ] -> x = ctx -> presentation . objects [ rect ] . x ;\n sub -> rects [ rect ] -> y = ctx -> presentation . objects [ rect ] . y ;\n sub -> rects [ rect ] -> w = ctx -> pictures [ picture_id ] . w ;\n sub -> rects [ rect ] -> h = ctx -> pictures [ picture_id ] . h ;\n sub -> rects [ rect ] -> type = SUBTITLE_BITMAP ;\n sub -> rects [ rect ] -> pict . linesize [ 0 ] = ctx -> pictures [ picture_id ] . w ;\n if ( ctx -> pictures [ picture_id ] . rle ) {\n if ( ctx -> pictures [ picture_id ] . rle_remaining_len ) av_log ( avctx , AV_LOG_ERROR , \"RLE data length %u is %u bytes shorter than expected\\n\" , ctx -> pictures [ picture_id ] . rle_data_len , ctx -> pictures [ picture_id ] . rle_remaining_len ) ;\n if ( decode_rle ( avctx , sub , rect , ctx -> pictures [ picture_id ] . rle , ctx -> pictures [ picture_id ] . rle_data_len ) < 0 ) return 0 ;\n }\n sub -> rects [ rect ] -> nb_colors = 256 ;\n sub -> rects [ rect ] -> pict . data [ 1 ] = av_mallocz ( AVPALETTE_SIZE ) ;\n sub -> rects [ rect ] -> flags = ( ctx -> presentation . objects [ rect ] . composition & 0x40 ) != 0 ? AV_SUBTITLE_FLAG_FORCED : 0 ;\n if ( ! ctx -> forced_subs_only || ctx -> presentation . objects [ rect ] . composition & 0x40 ) memcpy ( sub -> rects [ rect ] -> pict . data [ 1 ] , ctx -> clut , sub -> rects [ rect ] -> nb_colors * sizeof ( uint32_t ) ) ;\n }\n return 1 ;\n }"}
{"idx": 5674, "target": 0, "func": "void vp9_encode_sb ( MACROBLOCK * x , BLOCK_SIZE bsize ) {\n MACROBLOCKD * const xd = & x -> e_mbd ;\n struct optimize_ctx ctx ;\n MB_MODE_INFO * mbmi = & xd -> mi [ 0 ] . src_mi -> mbmi ;\n struct encode_b_args arg = {\n x , & ctx , & mbmi -> skip }\n ;\n int plane ;\n mbmi -> skip = 1 ;\n if ( x -> skip ) return ;\n for ( plane = 0 ;\n plane < MAX_MB_PLANE ;\n ++ plane ) {\n if ( ! x -> skip_recode ) vp9_subtract_plane ( x , bsize , plane ) ;\n if ( x -> optimize && ( ! x -> skip_recode || ! x -> skip_optimize ) ) {\n const struct macroblockd_plane * const pd = & xd -> plane [ plane ] ;\n const TX_SIZE tx_size = plane ? get_uv_tx_size ( mbmi , pd ) : mbmi -> tx_size ;\n vp9_get_entropy_contexts ( bsize , tx_size , pd , ctx . ta [ plane ] , ctx . tl [ plane ] ) ;\n }\n vp9_foreach_transformed_block_in_plane ( xd , bsize , plane , encode_block , & arg ) ;\n }\n }"}
{"idx": 5675, "target": 0, "func": "static int g723_1_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n G723_1_Context * p = avctx -> priv_data ;\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n int dec_mode = buf [ 0 ] & 3 ;\n PPFParam ppf [ SUBFRAMES ] ;\n int16_t cur_lsp [ LPC_ORDER ] ;\n int16_t lpc [ SUBFRAMES * LPC_ORDER ] ;\n int16_t acb_vector [ SUBFRAME_LEN ] ;\n int16_t * out ;\n int bad_frame = 0 , i , j , ret ;\n int16_t * audio = p -> audio ;\n if ( buf_size < frame_size [ dec_mode ] ) {\n if ( buf_size ) av_log ( avctx , AV_LOG_WARNING , \"Expected %d bytes, got %d - skipping packet\\n\" , frame_size [ dec_mode ] , buf_size ) ;\n * got_frame_ptr = 0 ;\n return buf_size ;\n }\n if ( unpack_bitstream ( p , buf , buf_size ) < 0 ) {\n bad_frame = 1 ;\n if ( p -> past_frame_type == ACTIVE_FRAME ) p -> cur_frame_type = ACTIVE_FRAME ;\n else p -> cur_frame_type = UNTRANSMITTED_FRAME ;\n }\n frame -> nb_samples = FRAME_LEN ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n out = ( int16_t * ) frame -> data [ 0 ] ;\n if ( p -> cur_frame_type == ACTIVE_FRAME ) {\n if ( ! bad_frame ) p -> erased_frames = 0 ;\n else if ( p -> erased_frames != 3 ) p -> erased_frames ++ ;\n inverse_quant ( cur_lsp , p -> prev_lsp , p -> lsp_index , bad_frame ) ;\n lsp_interpolate ( lpc , cur_lsp , p -> prev_lsp ) ;\n memcpy ( p -> prev_lsp , cur_lsp , LPC_ORDER * sizeof ( * p -> prev_lsp ) ) ;\n memcpy ( p -> excitation , p -> prev_excitation , PITCH_MAX * sizeof ( * p -> excitation ) ) ;\n if ( ! p -> erased_frames ) {\n int16_t * vector_ptr = p -> excitation + PITCH_MAX ;\n p -> interp_gain = fixed_cb_gain [ ( p -> subframe [ 2 ] . amp_index + p -> subframe [ 3 ] . amp_index ) >> 1 ] ;\n for ( i = 0 ;\n i < SUBFRAMES ;\n i ++ ) {\n gen_fcb_excitation ( vector_ptr , & p -> subframe [ i ] , p -> cur_rate , p -> pitch_lag [ i >> 1 ] , i ) ;\n gen_acb_excitation ( acb_vector , & p -> excitation [ SUBFRAME_LEN * i ] , p -> pitch_lag [ i >> 1 ] , & p -> subframe [ i ] , p -> cur_rate ) ;\n for ( j = 0 ;\n j < SUBFRAME_LEN ;\n j ++ ) {\n int v = av_clip_int16 ( vector_ptr [ j ] << 1 ) ;\n vector_ptr [ j ] = av_clip_int16 ( v + acb_vector [ j ] ) ;\n }\n vector_ptr += SUBFRAME_LEN ;\n }\n vector_ptr = p -> excitation + PITCH_MAX ;\n p -> interp_index = comp_interp_index ( p , p -> pitch_lag [ 1 ] , & p -> sid_gain , & p -> cur_gain ) ;\n if ( p -> postfilter ) {\n i = PITCH_MAX ;\n for ( j = 0 ;\n j < SUBFRAMES ;\n i += SUBFRAME_LEN , j ++ ) comp_ppf_coeff ( p , i , p -> pitch_lag [ j >> 1 ] , ppf + j , p -> cur_rate ) ;\n for ( i = 0 , j = 0 ;\n j < SUBFRAMES ;\n i += SUBFRAME_LEN , j ++ ) ff_acelp_weighted_vector_sum ( p -> audio + LPC_ORDER + i , vector_ptr + i , vector_ptr + i + ppf [ j ] . index , ppf [ j ] . sc_gain , ppf [ j ] . opt_gain , 1 << 14 , 15 , SUBFRAME_LEN ) ;\n }\n else {\n audio = vector_ptr - LPC_ORDER ;\n }\n memcpy ( p -> prev_excitation , p -> excitation + FRAME_LEN , PITCH_MAX * sizeof ( * p -> excitation ) ) ;\n }\n else {\n p -> interp_gain = ( p -> interp_gain * 3 + 2 ) >> 2 ;\n if ( p -> erased_frames == 3 ) {\n memset ( p -> excitation , 0 , ( FRAME_LEN + PITCH_MAX ) * sizeof ( * p -> excitation ) ) ;\n memset ( p -> prev_excitation , 0 , PITCH_MAX * sizeof ( * p -> excitation ) ) ;\n memset ( frame -> data [ 0 ] , 0 , ( FRAME_LEN + LPC_ORDER ) * sizeof ( int16_t ) ) ;\n }\n else {\n int16_t * buf = p -> audio + LPC_ORDER ;\n residual_interp ( p -> excitation , buf , p -> interp_index , p -> interp_gain , & p -> random_seed ) ;\n memcpy ( p -> prev_excitation , buf + ( FRAME_LEN - PITCH_MAX ) , PITCH_MAX * sizeof ( * p -> excitation ) ) ;\n }\n }\n p -> cng_random_seed = CNG_RANDOM_SEED ;\n }\n else {\n if ( p -> cur_frame_type == SID_FRAME ) {\n p -> sid_gain = sid_gain_to_lsp_index ( p -> subframe [ 0 ] . amp_index ) ;\n inverse_quant ( p -> sid_lsp , p -> prev_lsp , p -> lsp_index , 0 ) ;\n }\n else if ( p -> past_frame_type == ACTIVE_FRAME ) {\n p -> sid_gain = estimate_sid_gain ( p ) ;\n }\n if ( p -> past_frame_type == ACTIVE_FRAME ) p -> cur_gain = p -> sid_gain ;\n else p -> cur_gain = ( p -> cur_gain * 7 + p -> sid_gain ) >> 3 ;\n generate_noise ( p ) ;\n lsp_interpolate ( lpc , p -> sid_lsp , p -> prev_lsp ) ;\n memcpy ( p -> prev_lsp , p -> sid_lsp , LPC_ORDER * sizeof ( * p -> prev_lsp ) ) ;\n }\n p -> past_frame_type = p -> cur_frame_type ;\n memcpy ( p -> audio , p -> synth_mem , LPC_ORDER * sizeof ( * p -> audio ) ) ;\n for ( i = LPC_ORDER , j = 0 ;\n j < SUBFRAMES ;\n i += SUBFRAME_LEN , j ++ ) ff_celp_lp_synthesis_filter ( p -> audio + i , & lpc [ j * LPC_ORDER ] , audio + i , SUBFRAME_LEN , LPC_ORDER , 0 , 1 , 1 << 12 ) ;\n memcpy ( p -> synth_mem , p -> audio + FRAME_LEN , LPC_ORDER * sizeof ( * p -> audio ) ) ;\n if ( p -> postfilter ) {\n formant_postfilter ( p , lpc , p -> audio , out ) ;\n }\n else {\n for ( i = 0 ;\n i < FRAME_LEN ;\n i ++ ) out [ i ] = av_clip_int16 ( p -> audio [ LPC_ORDER + i ] << 1 ) ;\n }\n * got_frame_ptr = 1 ;\n return frame_size [ dec_mode ] ;\n }"}
{"idx": 5676, "target": 0, "func": "static int tecmp1 ( const void * _a , const void * _b ) {\n struct tree_entry * a = * ( ( struct tree_entry * * ) _a ) ;\n struct tree_entry * b = * ( ( struct tree_entry * * ) _b ) ;\n return base_name_compare ( a -> name -> str_dat , a -> name -> str_len , a -> versions [ 1 ] . mode , b -> name -> str_dat , b -> name -> str_len , b -> versions [ 1 ] . mode ) ;\n }"}
{"idx": 5677, "target": 0, "func": "static void e1000e_set_interrupt_cause ( E1000ECore * core , uint32_t val ) {\n trace_e1000e_irq_set_cause_entry ( val , core -> mac [ ICR ] ) ;\n val |= e1000e_intmgr_collect_delayed_causes ( core ) ;\n core -> mac [ ICR ] |= val ;\n trace_e1000e_irq_set_cause_exit ( val , core -> mac [ ICR ] ) ;\n e1000e_update_interrupt_state ( core ) ;\n }"}
{"idx": 5678, "target": 0, "func": "int ff_mpeg4_decode_video_packet_header ( MpegEncContext * s ) {\n int mb_num_bits = av_log2 ( s -> mb_num - 1 ) + 1 ;\n int header_extension = 0 , mb_num , len ;\n if ( get_bits_count ( & s -> gb ) > s -> gb . size_in_bits - 20 ) return - 1 ;\n for ( len = 0 ;\n len < 32 ;\n len ++ ) {\n if ( get_bits1 ( & s -> gb ) ) break ;\n }\n if ( len != ff_mpeg4_get_video_packet_prefix_length ( s ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"marker does not match f_code\\n\" ) ;\n return - 1 ;\n }\n if ( s -> shape != RECT_SHAPE ) {\n header_extension = get_bits1 ( & s -> gb ) ;\n }\n mb_num = get_bits ( & s -> gb , mb_num_bits ) ;\n if ( mb_num >= s -> mb_num ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"illegal mb_num in video packet (%d %d) \\n\" , mb_num , s -> mb_num ) ;\n return - 1 ;\n }\n if ( s -> pict_type == AV_PICTURE_TYPE_B ) {\n int mb_x = 0 , mb_y = 0 ;\n while ( s -> next_picture . mbskip_table [ s -> mb_index2xy [ mb_num ] ] ) {\n if ( ! mb_x ) ff_thread_await_progress ( & s -> next_picture_ptr -> tf , mb_y ++ , 0 ) ;\n mb_num ++ ;\n if ( ++ mb_x == s -> mb_width ) mb_x = 0 ;\n }\n if ( mb_num >= s -> mb_num ) return - 1 ;\n }\n s -> mb_x = mb_num % s -> mb_width ;\n s -> mb_y = mb_num / s -> mb_width ;\n if ( s -> shape != BIN_ONLY_SHAPE ) {\n int qscale = get_bits ( & s -> gb , s -> quant_precision ) ;\n if ( qscale ) s -> chroma_qscale = s -> qscale = qscale ;\n }\n if ( s -> shape == RECT_SHAPE ) {\n header_extension = get_bits1 ( & s -> gb ) ;\n }\n if ( header_extension ) {\n int time_incr = 0 ;\n while ( get_bits1 ( & s -> gb ) != 0 ) time_incr ++ ;\n check_marker ( & s -> gb , \"before time_increment in video packed header\" ) ;\n skip_bits ( & s -> gb , s -> time_increment_bits ) ;\n check_marker ( & s -> gb , \"before vop_coding_type in video packed header\" ) ;\n skip_bits ( & s -> gb , 2 ) ;\n if ( s -> shape != BIN_ONLY_SHAPE ) {\n skip_bits ( & s -> gb , 3 ) ;\n if ( s -> pict_type == AV_PICTURE_TYPE_S && s -> vol_sprite_usage == GMC_SPRITE ) {\n mpeg4_decode_sprite_trajectory ( s , & s -> gb ) ;\n av_log ( s -> avctx , AV_LOG_ERROR , \"untested\\n\" ) ;\n }\n if ( s -> pict_type != AV_PICTURE_TYPE_I ) {\n int f_code = get_bits ( & s -> gb , 3 ) ;\n if ( f_code == 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Error, video packet header damaged (f_code=0)\\n\" ) ;\n }\n }\n if ( s -> pict_type == AV_PICTURE_TYPE_B ) {\n int b_code = get_bits ( & s -> gb , 3 ) ;\n if ( b_code == 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Error, video packet header damaged (b_code=0)\\n\" ) ;\n }\n }\n }\n }\n return 0 ;\n }"}
{"idx": 5679, "target": 0, "func": "int64_t mime_field_value_get_int64 ( const MIMEField * field ) {\n int length ;\n const char * str = mime_field_value_get ( field , & length ) ;\n return mime_parse_int64 ( str , str + length ) ;\n }"}
{"idx": 5680, "target": 0, "func": "static void revert_cdlms ( WmallDecodeCtx * s , int ch , int coef_begin , int coef_end ) {\n int icoef , pred , ilms , num_lms , residue , input ;\n num_lms = s -> cdlms_ttl [ ch ] ;\n for ( ilms = num_lms - 1 ;\n ilms >= 0 ;\n ilms -- ) {\n for ( icoef = coef_begin ;\n icoef < coef_end ;\n icoef ++ ) {\n pred = 1 << ( s -> cdlms [ ch ] [ ilms ] . scaling - 1 ) ;\n residue = s -> channel_residues [ ch ] [ icoef ] ;\n pred += lms_predict ( s , ch , ilms ) ;\n input = residue + ( pred >> s -> cdlms [ ch ] [ ilms ] . scaling ) ;\n lms_update ( s , ch , ilms , input , residue ) ;\n s -> channel_residues [ ch ] [ icoef ] = input ;\n }\n }\n }"}
{"idx": 5681, "target": 0, "func": "void TSHttpTxnRedirectUrlSet ( TSHttpTxn txnp , const char * url , const int url_len ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) url ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n if ( sm -> redirect_url != nullptr ) {\n ats_free ( sm -> redirect_url ) ;\n sm -> redirect_url = nullptr ;\n sm -> redirect_url_len = 0 ;\n }\n sm -> redirect_url = ( char * ) url ;\n sm -> redirect_url_len = url_len ;\n sm -> enable_redirection = true ;\n }"}
{"idx": 5682, "target": 0, "func": "static int virLogSetDefaultOutputToFile ( const char * filename , bool privileged ) {\n int ret = - 1 ;\n char * logdir = NULL ;\n mode_t old_umask ;\n if ( privileged ) {\n if ( virAsprintf ( & virLogDefaultOutput , \"%d:file:%s/log/libvirt/%s\" , virLogDefaultPriority , LOCALSTATEDIR , filename ) < 0 ) goto cleanup ;\n }\n else {\n if ( ! ( logdir = virGetUserCacheDirectory ( ) ) ) goto cleanup ;\n old_umask = umask ( 077 ) ;\n if ( virFileMakePath ( logdir ) < 0 ) {\n umask ( old_umask ) ;\n goto cleanup ;\n }\n umask ( old_umask ) ;\n if ( virAsprintf ( & virLogDefaultOutput , \"%d:file:%s/%s\" , virLogDefaultPriority , logdir , filename ) < 0 ) goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( logdir ) ;\n return ret ;\n }"}
{"idx": 5683, "target": 0, "func": "static bool qemu_in_vcpu_thread ( void ) {\n return current_cpu && qemu_cpu_is_self ( current_cpu ) ;\n }"}
{"idx": 5684, "target": 0, "func": "void abort_not_supported_test ( const char * fmt , ... ) {\n va_list args ;\n DBUG_ENTER ( \"abort_not_supported_test\" ) ;\n fflush ( stdout ) ;\n fprintf ( stderr , \"The test '%s' is not supported by this installation\\n\" , file_stack -> file_name ) ;\n fprintf ( stderr , \"Detected in file %s at line %d\\n\" , cur_file -> file_name , cur_file -> lineno ) ;\n char buff [ DIE_BUFF_SIZE ] ;\n print_file_stack ( buff , buff + sizeof ( buff ) ) ;\n fprintf ( stderr , \"%s\" , buff ) ;\n va_start ( args , fmt ) ;\n if ( fmt ) {\n fprintf ( stderr , \"reason: \" ) ;\n vfprintf ( stderr , fmt , args ) ;\n fprintf ( stderr , \"\\n\" ) ;\n fflush ( stderr ) ;\n }\n va_end ( args ) ;\n cleanup_and_exit ( 62 ) ;\n }"}
{"idx": 5685, "target": 0, "func": "void remove_tap_listener_sip_calls ( void ) {\n remove_tap_listener ( & ( the_tapinfo_struct . sip_dummy ) ) ;\n have_SIP_tap_listener = FALSE ;\n }"}
{"idx": 5686, "target": 0, "func": "static cmsBool Type_MPEcurve_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) {\n cmsUInt32Number BaseOffset ;\n cmsStage * mpe = ( cmsStage * ) Ptr ;\n _cmsStageToneCurvesData * Curves = ( _cmsStageToneCurvesData * ) mpe -> Data ;\n BaseOffset = io -> Tell ( io ) - sizeof ( _cmsTagBase ) ;\n if ( ! _cmsWriteUInt16Number ( io , ( cmsUInt16Number ) mpe -> InputChannels ) ) return FALSE ;\n if ( ! _cmsWriteUInt16Number ( io , ( cmsUInt16Number ) mpe -> InputChannels ) ) return FALSE ;\n if ( ! WritePositionTable ( self , io , 0 , mpe -> InputChannels , BaseOffset , Curves , WriteMPECurve ) ) return FALSE ;\n return TRUE ;\n cmsUNUSED_PARAMETER ( nItems ) ;\n }"}
{"idx": 5687, "target": 0, "func": "int qemuMonitorTextAddUSBDisk ( qemuMonitorPtr mon , const char * path ) {\n char * cmd = NULL ;\n char * safepath ;\n int ret = - 1 ;\n char * info = NULL ;\n safepath = qemuMonitorEscapeArg ( path ) ;\n if ( ! safepath ) {\n virReportOOMError ( ) ;\n return - 1 ;\n }\n if ( virAsprintf ( & cmd , \"usb_add disk:%s\" , safepath ) < 0 ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & info ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"cannot run monitor command to add usb disk\" ) ) ;\n goto cleanup ;\n }\n if ( strstr ( info , \"Could not add \" ) ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"unable to add USB disk %s: %s\" ) , path , info ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( cmd ) ;\n VIR_FREE ( safepath ) ;\n VIR_FREE ( info ) ;\n return ret ;\n }"}
{"idx": 5688, "target": 0, "func": "static void netbios_init ( void ) {\n reassembly_table_init ( & netbios_reassembly_table , & addresses_reassembly_table_functions ) ;\n }"}
{"idx": 5689, "target": 0, "func": "static inline int loco_get_rice ( RICEContext * r ) {\n int v ;\n if ( r -> run > 0 ) {\n r -> run -- ;\n loco_update_rice_param ( r , 0 ) ;\n return 0 ;\n }\n v = get_ur_golomb_jpegls ( & r -> gb , loco_get_rice_param ( r ) , INT_MAX , 0 ) ;\n loco_update_rice_param ( r , ( v + 1 ) >> 1 ) ;\n if ( ! v ) {\n if ( r -> save >= 0 ) {\n r -> run = get_ur_golomb_jpegls ( & r -> gb , 2 , INT_MAX , 0 ) ;\n if ( r -> run > 1 ) r -> save += r -> run + 1 ;\n else r -> save -= 3 ;\n }\n else r -> run2 ++ ;\n }\n else {\n v = ( ( v >> 1 ) + r -> lossy ) ^ - ( v & 1 ) ;\n if ( r -> run2 > 0 ) {\n if ( r -> run2 > 2 ) r -> save += r -> run2 ;\n else r -> save -= 3 ;\n r -> run2 = 0 ;\n }\n }\n return v ;\n }"}
{"idx": 5690, "target": 0, "func": "static void col_append_info_by_handle ( packet_info * pinfo , guint16 handle , bluetooth_data_t * bluetooth_data ) {\n bluetooth_uuid_t service_uuid ;\n bluetooth_uuid_t characteristic_uuid ;\n bluetooth_uuid_t uuid ;\n service_uuid = get_service_uuid_from_handle ( pinfo , handle , bluetooth_data ) ;\n characteristic_uuid = get_characteristic_uuid_from_handle ( pinfo , handle , bluetooth_data ) ;\n uuid = get_uuid_from_handle ( pinfo , handle , bluetooth_data ) ;\n if ( ! memcmp ( & service_uuid , & uuid , sizeof ( uuid ) ) ) {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", Handle: 0x%04x (%s)\" , handle , print_uuid ( & uuid ) ) ;\n }\n else if ( ! memcmp ( & characteristic_uuid , & uuid , sizeof ( uuid ) ) ) {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", Handle: 0x%04x (%s: %s)\" , handle , print_uuid ( & service_uuid ) , print_uuid ( & uuid ) ) ;\n }\n else {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", Handle: 0x%04x (%s: %s: %s)\" , handle , print_uuid ( & service_uuid ) , print_uuid ( & characteristic_uuid ) , print_uuid ( & uuid ) ) ;\n }\n }"}
{"idx": 5691, "target": 0, "func": "static void model_update ( Model * m , int val ) {\n int i , sum = 0 ;\n unsigned scale ;\n m -> weights [ val ] ++ ;\n m -> till_rescale -- ;\n if ( m -> till_rescale ) return ;\n m -> tot_weight += m -> upd_val ;\n if ( m -> tot_weight > 0x8000 ) {\n m -> tot_weight = 0 ;\n for ( i = 0 ;\n i < m -> num_syms ;\n i ++ ) {\n m -> weights [ i ] = ( m -> weights [ i ] + 1 ) >> 1 ;\n m -> tot_weight += m -> weights [ i ] ;\n }\n }\n scale = 0x80000000u / m -> tot_weight ;\n for ( i = 0 ;\n i < m -> num_syms ;\n i ++ ) {\n m -> freqs [ i ] = sum * scale >> 16 ;\n sum += m -> weights [ i ] ;\n }\n m -> upd_val = m -> upd_val * 5 >> 2 ;\n if ( m -> upd_val > m -> max_upd_val ) m -> upd_val = m -> max_upd_val ;\n m -> till_rescale = m -> upd_val ;\n }"}
{"idx": 5692, "target": 0, "func": "static cmsBool Check ( cmsIT8 * it8 , SYMBOL sy , const char * Err ) {\n if ( it8 -> sy != sy ) return SynError ( it8 , NoMeta ( Err ) ) ;\n return TRUE ;\n }"}
{"idx": 5693, "target": 0, "func": "static long * x_get_win_property ( gx_device_X * xdev , const char * atom_name ) {\n Atom r_type = ( Atom ) 0 ;\n int r_format = 0 ;\n unsigned long count = 0 ;\n unsigned long bytes_remain ;\n unsigned char * prop ;\n if ( XGetWindowProperty ( xdev -> dpy , RootWindowOfScreen ( xdev -> scr ) , XInternAtom ( xdev -> dpy , atom_name , False ) , 0 , 4 , False , XA_CARDINAL , & r_type , & r_format , & count , & bytes_remain , & prop ) == Success && prop && r_type == XA_CARDINAL && r_format == 32 && count == 4 && bytes_remain == 0 ) return ( long * ) prop ;\n XFree ( prop ) ;\n return NULL ;\n }"}
{"idx": 5694, "target": 0, "func": "static int x8_get_dc_rlf ( IntraX8Context * const w , int const mode , int * const level , int * const final ) {\n MpegEncContext * const s = w -> s ;\n int i , e , c ;\n assert ( mode < 3 ) ;\n if ( ! w -> j_dc_vlc [ mode ] ) {\n int table_index ;\n table_index = get_bits ( & s -> gb , 3 ) ;\n w -> j_dc_vlc [ mode ] = & j_dc_vlc [ w -> quant < 13 ] [ table_index ] ;\n }\n assert ( w -> j_dc_vlc ) ;\n assert ( w -> j_dc_vlc [ mode ] -> table ) ;\n i = get_vlc2 ( & s -> gb , w -> j_dc_vlc [ mode ] -> table , DC_VLC_BITS , DC_VLC_MTD ) ;\n c = i > 16 ;\n ( * final ) = c ;\n i -= 17 * c ;\n if ( i <= 0 ) {\n ( * level ) = 0 ;\n return - i ;\n }\n c = ( i + 1 ) >> 1 ;\n c -= c > 1 ;\n e = get_bits ( & s -> gb , c ) ;\n i = dc_index_offset [ i ] + ( e >> 1 ) ;\n e = - ( e & 1 ) ;\n ( * level ) = ( i ^ e ) - e ;\n return 0 ;\n }"}
{"idx": 5695, "target": 0, "func": "static int main_set_secondary_flags ( xd3_config * config ) {\n int ret ;\n if ( option_use_secondary ) {\n if ( option_secondary == NULL ) {\n if ( SECONDARY_DJW ) {\n config -> flags |= XD3_SEC_DJW ;\n }\n }\n else {\n if ( strcmp ( option_secondary , \"fgk\" ) == 0 && SECONDARY_FGK ) {\n config -> flags |= XD3_SEC_FGK ;\n }\n else if ( strcmp ( option_secondary , \"lzma\" ) == 0 && SECONDARY_LZMA ) {\n config -> flags |= XD3_SEC_LZMA ;\n }\n else if ( strncmp ( option_secondary , \"djw\" , 3 ) == 0 && SECONDARY_DJW ) {\n usize_t level = XD3_DEFAULT_SECONDARY_LEVEL ;\n config -> flags |= XD3_SEC_DJW ;\n if ( strlen ( option_secondary ) > 3 && ( ret = main_atou ( option_secondary + 3 , & level , 0 , 9 , 'S' ) ) != 0 && ! option_quiet ) {\n return XD3_INVALID ;\n }\n if ( level < 1 ) {\n config -> flags |= XD3_SEC_NODATA ;\n }\n if ( level < 7 ) {\n config -> sec_data . ngroups = 1 ;\n }\n else {\n config -> sec_data . ngroups = 0 ;\n }\n if ( level < 3 ) {\n config -> flags |= XD3_SEC_NOINST ;\n }\n if ( level < 8 ) {\n config -> sec_inst . ngroups = 1 ;\n }\n else {\n config -> sec_inst . ngroups = 0 ;\n }\n if ( level < 5 ) {\n config -> flags |= XD3_SEC_NOADDR ;\n }\n if ( level < 9 ) {\n config -> sec_addr . ngroups = 1 ;\n }\n else {\n config -> sec_addr . ngroups = 0 ;\n }\n }\n else if ( strcmp ( option_secondary , \"none\" ) == 0 && SECONDARY_DJW ) {\n }\n else {\n if ( ! option_quiet ) {\n XPR ( NT \"unrecognized secondary compressor type: %s\\n\" , option_secondary ) ;\n return XD3_INVALID ;\n }\n }\n }\n }\n return 0 ;\n }"}
{"idx": 5696, "target": 0, "func": "xmlChar * xsltEvalAttrValueTemplate ( xsltTransformContextPtr ctxt , xmlNodePtr inst , const xmlChar * name , const xmlChar * ns ) {\n xmlChar * ret ;\n xmlChar * expr ;\n if ( ( ctxt == NULL ) || ( inst == NULL ) || ( name == NULL ) || ( inst -> type != XML_ELEMENT_NODE ) ) return ( NULL ) ;\n expr = xsltGetNsProp ( inst , name , ns ) ;\n if ( expr == NULL ) return ( NULL ) ;\n ret = xsltAttrTemplateValueProcessNode ( ctxt , expr , inst ) ;\n # ifdef WITH_XSLT_DEBUG_TEMPLATES XSLT_TRACE ( ctxt , XSLT_TRACE_TEMPLATES , xsltGenericDebug ( xsltGenericDebugContext , \"xsltEvalAttrValueTemplate: %s returns %s\\n\" , expr , ret ) ) ;\n # endif if ( expr != NULL ) xmlFree ( expr ) ;\n return ( ret ) ;\n }"}
{"idx": 5697, "target": 0, "func": "static void vvalue_strbuf_append_blob ( wmem_strbuf_t * strbuf , void * ptr ) {\n struct data_blob * blob = ( struct data_blob * ) ptr ;\n wmem_strbuf_append_printf ( strbuf , \"size: %d\" , ( int ) blob -> size ) ;\n }"}
{"idx": 5698, "target": 0, "func": "bool message_search_more_get_decoded ( struct message_search_context * ctx , struct message_block * raw_block , struct message_block * decoded_block_r ) {\n struct message_header_line * hdr = raw_block -> hdr ;\n struct message_block decoded_block ;\n i_zero ( decoded_block_r ) ;\n decoded_block_r -> part = raw_block -> part ;\n if ( raw_block -> part != ctx -> prev_part ) {\n message_search_reset ( ctx ) ;\n ctx -> prev_part = raw_block -> part ;\n if ( hdr == NULL ) {\n ctx -> content_type_text = FALSE ;\n }\n }\n if ( hdr != NULL ) {\n handle_header ( ctx , hdr ) ;\n if ( ( ctx -> flags & MESSAGE_SEARCH_FLAG_SKIP_HEADERS ) != 0 ) {\n if ( hdr -> name_len != 12 && hdr -> name_len != 25 ) return FALSE ;\n if ( strcasecmp ( hdr -> name , \"Content-Type\" ) != 0 && strcasecmp ( hdr -> name , \"Content-Transfer-Encoding\" ) != 0 ) return FALSE ;\n }\n }\n else {\n if ( ! ctx -> content_type_text ) return FALSE ;\n }\n if ( ! message_decoder_decode_next_block ( ctx -> decoder , raw_block , & decoded_block ) ) return FALSE ;\n if ( decoded_block . hdr != NULL && ( ctx -> flags & MESSAGE_SEARCH_FLAG_SKIP_HEADERS ) != 0 ) {\n return FALSE ;\n }\n * decoded_block_r = decoded_block ;\n return message_search_more_decoded2 ( ctx , & decoded_block ) ;\n }"}
{"idx": 5699, "target": 0, "func": "static void U_CALLCONV _SCSUToUnicodeWithOffsets ( UConverterToUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n UConverter * cnv ;\n SCSUData * scsu ;\n const uint8_t * source , * sourceLimit ;\n UChar * target ;\n const UChar * targetLimit ;\n int32_t * offsets ;\n UBool isSingleByteMode ;\n uint8_t state , byteOne ;\n int8_t quoteWindow , dynamicWindow ;\n int32_t sourceIndex , nextSourceIndex ;\n uint8_t b ;\n cnv = pArgs -> converter ;\n scsu = ( SCSUData * ) cnv -> extraInfo ;\n source = ( const uint8_t * ) pArgs -> source ;\n sourceLimit = ( const uint8_t * ) pArgs -> sourceLimit ;\n target = pArgs -> target ;\n targetLimit = pArgs -> targetLimit ;\n offsets = pArgs -> offsets ;\n isSingleByteMode = scsu -> toUIsSingleByteMode ;\n state = scsu -> toUState ;\n quoteWindow = scsu -> toUQuoteWindow ;\n dynamicWindow = scsu -> toUDynamicWindow ;\n byteOne = scsu -> toUByteOne ;\n sourceIndex = state == readCommand ? 0 : - 1 ;\n nextSourceIndex = 0 ;\n if ( isSingleByteMode ) {\n if ( state == readCommand ) {\n fastSingle : while ( source < sourceLimit && target < targetLimit && ( b = * source ) >= 0x20 ) {\n ++ source ;\n ++ nextSourceIndex ;\n if ( b <= 0x7f ) {\n * target ++ = ( UChar ) b ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n }\n else {\n uint32_t c = scsu -> toUDynamicOffsets [ dynamicWindow ] + ( b & 0x7f ) ;\n if ( c <= 0xffff ) {\n * target ++ = ( UChar ) c ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n }\n else {\n * target ++ = ( UChar ) ( 0xd7c0 + ( c >> 10 ) ) ;\n if ( target < targetLimit ) {\n * target ++ = ( UChar ) ( 0xdc00 | ( c & 0x3ff ) ) ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ;\n }\n }\n else {\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n cnv -> UCharErrorBuffer [ 0 ] = ( UChar ) ( 0xdc00 | ( c & 0x3ff ) ) ;\n cnv -> UCharErrorBufferLength = 1 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n goto endloop ;\n }\n }\n }\n sourceIndex = nextSourceIndex ;\n }\n }\n singleByteMode : while ( source < sourceLimit ) {\n if ( target >= targetLimit ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n b = * source ++ ;\n ++ nextSourceIndex ;\n switch ( state ) {\n case readCommand : if ( ( 1UL << b ) & 0x2601 ) {\n * target ++ = ( UChar ) b ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n sourceIndex = nextSourceIndex ;\n goto fastSingle ;\n }\n else if ( SC0 <= b ) {\n if ( b <= SC7 ) {\n dynamicWindow = ( int8_t ) ( b - SC0 ) ;\n sourceIndex = nextSourceIndex ;\n goto fastSingle ;\n }\n else {\n dynamicWindow = ( int8_t ) ( b - SD0 ) ;\n state = defineOne ;\n }\n }\n else if ( b <= SQ7 ) {\n quoteWindow = ( int8_t ) ( b - SQ0 ) ;\n state = quoteOne ;\n }\n else if ( b == SDX ) {\n state = definePairOne ;\n }\n else if ( b == SQU ) {\n state = quotePairOne ;\n }\n else if ( b == SCU ) {\n sourceIndex = nextSourceIndex ;\n isSingleByteMode = FALSE ;\n goto fastUnicode ;\n }\n else {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n cnv -> toUBytes [ 0 ] = b ;\n cnv -> toULength = 1 ;\n goto endloop ;\n }\n cnv -> toUBytes [ 0 ] = b ;\n cnv -> toULength = 1 ;\n break ;\n case quotePairOne : byteOne = b ;\n cnv -> toUBytes [ 1 ] = b ;\n cnv -> toULength = 2 ;\n state = quotePairTwo ;\n break ;\n case quotePairTwo : * target ++ = ( UChar ) ( ( byteOne << 8 ) | b ) ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n sourceIndex = nextSourceIndex ;\n state = readCommand ;\n goto fastSingle ;\n case quoteOne : if ( b < 0x80 ) {\n * target ++ = ( UChar ) ( staticOffsets [ quoteWindow ] + b ) ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n }\n else {\n uint32_t c = scsu -> toUDynamicOffsets [ quoteWindow ] + ( b & 0x7f ) ;\n if ( c <= 0xffff ) {\n * target ++ = ( UChar ) c ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n }\n else {\n * target ++ = ( UChar ) ( 0xd7c0 + ( c >> 10 ) ) ;\n if ( target < targetLimit ) {\n * target ++ = ( UChar ) ( 0xdc00 | ( c & 0x3ff ) ) ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ;\n }\n }\n else {\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n cnv -> UCharErrorBuffer [ 0 ] = ( UChar ) ( 0xdc00 | ( c & 0x3ff ) ) ;\n cnv -> UCharErrorBufferLength = 1 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n goto endloop ;\n }\n }\n }\n sourceIndex = nextSourceIndex ;\n state = readCommand ;\n goto fastSingle ;\n case definePairOne : dynamicWindow = ( int8_t ) ( ( b >> 5 ) & 7 ) ;\n byteOne = ( uint8_t ) ( b & 0x1f ) ;\n cnv -> toUBytes [ 1 ] = b ;\n cnv -> toULength = 2 ;\n state = definePairTwo ;\n break ;\n case definePairTwo : scsu -> toUDynamicOffsets [ dynamicWindow ] = 0x10000 + ( byteOne << 15UL | b << 7UL ) ;\n sourceIndex = nextSourceIndex ;\n state = readCommand ;\n goto fastSingle ;\n case defineOne : if ( b == 0 ) {\n cnv -> toUBytes [ 1 ] = b ;\n cnv -> toULength = 2 ;\n goto endloop ;\n }\n else if ( b < gapThreshold ) {\n scsu -> toUDynamicOffsets [ dynamicWindow ] = b << 7UL ;\n }\n else if ( ( uint8_t ) ( b - gapThreshold ) < ( reservedStart - gapThreshold ) ) {\n scsu -> toUDynamicOffsets [ dynamicWindow ] = ( b << 7UL ) + gapOffset ;\n }\n else if ( b >= fixedThreshold ) {\n scsu -> toUDynamicOffsets [ dynamicWindow ] = fixedOffsets [ b - fixedThreshold ] ;\n }\n else {\n cnv -> toUBytes [ 1 ] = b ;\n cnv -> toULength = 2 ;\n goto endloop ;\n }\n sourceIndex = nextSourceIndex ;\n state = readCommand ;\n goto fastSingle ;\n }\n }\n }\n else {\n if ( state == readCommand ) {\n fastUnicode : while ( source + 1 < sourceLimit && target < targetLimit && ( uint8_t ) ( ( b = * source ) - UC0 ) > ( Urs - UC0 ) ) {\n * target ++ = ( UChar ) ( ( b << 8 ) | source [ 1 ] ) ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n sourceIndex = nextSourceIndex ;\n nextSourceIndex += 2 ;\n source += 2 ;\n }\n }\n while ( source < sourceLimit ) {\n if ( target >= targetLimit ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n b = * source ++ ;\n ++ nextSourceIndex ;\n switch ( state ) {\n case readCommand : if ( ( uint8_t ) ( b - UC0 ) > ( Urs - UC0 ) ) {\n byteOne = b ;\n cnv -> toUBytes [ 0 ] = b ;\n cnv -> toULength = 1 ;\n state = quotePairTwo ;\n }\n else if ( b <= UC7 ) {\n dynamicWindow = ( int8_t ) ( b - UC0 ) ;\n sourceIndex = nextSourceIndex ;\n isSingleByteMode = TRUE ;\n goto fastSingle ;\n }\n else if ( b <= UD7 ) {\n dynamicWindow = ( int8_t ) ( b - UD0 ) ;\n isSingleByteMode = TRUE ;\n cnv -> toUBytes [ 0 ] = b ;\n cnv -> toULength = 1 ;\n state = defineOne ;\n goto singleByteMode ;\n }\n else if ( b == UDX ) {\n isSingleByteMode = TRUE ;\n cnv -> toUBytes [ 0 ] = b ;\n cnv -> toULength = 1 ;\n state = definePairOne ;\n goto singleByteMode ;\n }\n else if ( b == UQU ) {\n cnv -> toUBytes [ 0 ] = b ;\n cnv -> toULength = 1 ;\n state = quotePairOne ;\n }\n else {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n cnv -> toUBytes [ 0 ] = b ;\n cnv -> toULength = 1 ;\n goto endloop ;\n }\n break ;\n case quotePairOne : byteOne = b ;\n cnv -> toUBytes [ 1 ] = b ;\n cnv -> toULength = 2 ;\n state = quotePairTwo ;\n break ;\n case quotePairTwo : * target ++ = ( UChar ) ( ( byteOne << 8 ) | b ) ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n sourceIndex = nextSourceIndex ;\n state = readCommand ;\n goto fastUnicode ;\n }\n }\n }\n endloop : if ( U_FAILURE ( * pErrorCode ) && * pErrorCode != U_BUFFER_OVERFLOW_ERROR ) {\n state = readCommand ;\n }\n else if ( state == readCommand ) {\n cnv -> toULength = 0 ;\n }\n scsu -> toUIsSingleByteMode = isSingleByteMode ;\n scsu -> toUState = state ;\n scsu -> toUQuoteWindow = quoteWindow ;\n scsu -> toUDynamicWindow = dynamicWindow ;\n scsu -> toUByteOne = byteOne ;\n pArgs -> source = ( const char * ) source ;\n pArgs -> target = target ;\n pArgs -> offsets = offsets ;\n return ;\n }"}
{"idx": 5700, "target": 0, "func": "static guint32 dissect_netb_data_only_last ( tvbuff_t * tvb , packet_info * pinfo _U_ , int offset , proto_tree * tree ) {\n guint8 remote_session , local_session ;\n netbios_data_only_flags ( tvb , tree , offset + NB_FLAGS ) ;\n nb_resync_indicator ( tvb , offset , tree , \"DATA ONLY LAST\" ) ;\n nb_xmit_corrl ( tvb , offset , tree ) ;\n nb_resp_corrl ( tvb , offset , tree ) ;\n remote_session = nb_remote_session ( tvb , offset , tree ) ;\n local_session = nb_local_session ( tvb , offset , tree ) ;\n return ( remote_session << 8 ) + local_session ;\n }"}
{"idx": 5701, "target": 0, "func": "static int dissect_h225_VendorIdentifier ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_VendorIdentifier , VendorIdentifier_sequence ) ;\n return offset ;\n }"}
{"idx": 5702, "target": 0, "func": "static int sethalftone_finish ( i_ctx_t * i_ctx_p ) {\n gx_device_halftone * pdht = r_ptr ( esp , gx_device_halftone ) ;\n int code ;\n if ( pdht -> components ) pdht -> order = pdht -> components [ 0 ] . corder ;\n code = gx_ht_install ( igs , r_ptr ( esp - 1 , gs_halftone ) , pdht ) ;\n if ( code < 0 ) return code ;\n istate -> halftone = esp [ - 2 ] ;\n esp -= 4 ;\n sethalftone_cleanup ( i_ctx_p ) ;\n return o_pop_estack ;\n }"}
{"idx": 5703, "target": 0, "func": "static void gs_heap_unregister_root ( gs_memory_t * mem , gs_gc_root_t * rp , client_name_t cname ) {\n }"}
{"idx": 5704, "target": 0, "func": "static SchroBuffer * find_next_parse_unit ( SchroParseUnitContext * parse_ctx ) {\n SchroBuffer * enc_buf = NULL ;\n int next_pu_offset = 0 ;\n unsigned char * in_buf ;\n if ( parse_ctx -> buf_size < 13 || parse_ctx -> buf [ 0 ] != 'B' || parse_ctx -> buf [ 1 ] != 'B' || parse_ctx -> buf [ 2 ] != 'C' || parse_ctx -> buf [ 3 ] != 'D' ) return NULL ;\n next_pu_offset = ( parse_ctx -> buf [ 5 ] << 24 ) + ( parse_ctx -> buf [ 6 ] << 16 ) + ( parse_ctx -> buf [ 7 ] << 8 ) + parse_ctx -> buf [ 8 ] ;\n if ( next_pu_offset == 0 && SCHRO_PARSE_CODE_IS_END_OF_SEQUENCE ( parse_ctx -> buf [ 4 ] ) ) next_pu_offset = 13 ;\n if ( next_pu_offset <= 0 || parse_ctx -> buf_size < next_pu_offset ) return NULL ;\n in_buf = av_malloc ( next_pu_offset ) ;\n if ( ! in_buf ) {\n av_log ( parse_ctx , AV_LOG_ERROR , \"Unable to allocate input buffer\\n\" ) ;\n return NULL ;\n }\n memcpy ( in_buf , parse_ctx -> buf , next_pu_offset ) ;\n enc_buf = schro_buffer_new_with_data ( in_buf , next_pu_offset ) ;\n enc_buf -> free = libschroedinger_decode_buffer_free ;\n enc_buf -> priv = in_buf ;\n parse_ctx -> buf += next_pu_offset ;\n parse_ctx -> buf_size -= next_pu_offset ;\n return enc_buf ;\n }"}
{"idx": 5705, "target": 0, "func": "static struct xfrm_policy * pfkey_compile_policy ( struct sock * sk , int opt , u8 * data , int len , int * dir ) {\n struct net * net = sock_net ( sk ) ;\n struct xfrm_policy * xp ;\n struct sadb_x_policy * pol = ( struct sadb_x_policy * ) data ;\n struct sadb_x_sec_ctx * sec_ctx ;\n switch ( sk -> sk_family ) {\n case AF_INET : if ( opt != IP_IPSEC_POLICY ) {\n * dir = - EOPNOTSUPP ;\n return NULL ;\n }\n break ;\n # if IS_ENABLED ( CONFIG_IPV6 ) case AF_INET6 : if ( opt != IPV6_IPSEC_POLICY ) {\n * dir = - EOPNOTSUPP ;\n return NULL ;\n }\n break ;\n # endif default : * dir = - EINVAL ;\n return NULL ;\n }\n * dir = - EINVAL ;\n if ( len < sizeof ( struct sadb_x_policy ) || pol -> sadb_x_policy_len * 8 > len || pol -> sadb_x_policy_type > IPSEC_POLICY_BYPASS || ( ! pol -> sadb_x_policy_dir || pol -> sadb_x_policy_dir > IPSEC_DIR_OUTBOUND ) ) return NULL ;\n xp = xfrm_policy_alloc ( net , GFP_ATOMIC ) ;\n if ( xp == NULL ) {\n * dir = - ENOBUFS ;\n return NULL ;\n }\n xp -> action = ( pol -> sadb_x_policy_type == IPSEC_POLICY_DISCARD ? XFRM_POLICY_BLOCK : XFRM_POLICY_ALLOW ) ;\n xp -> lft . soft_byte_limit = XFRM_INF ;\n xp -> lft . hard_byte_limit = XFRM_INF ;\n xp -> lft . soft_packet_limit = XFRM_INF ;\n xp -> lft . hard_packet_limit = XFRM_INF ;\n xp -> family = sk -> sk_family ;\n xp -> xfrm_nr = 0 ;\n if ( pol -> sadb_x_policy_type == IPSEC_POLICY_IPSEC && ( * dir = parse_ipsecrequests ( xp , pol ) ) < 0 ) goto out ;\n if ( len >= ( pol -> sadb_x_policy_len * 8 + sizeof ( struct sadb_x_sec_ctx ) ) ) {\n char * p = ( char * ) pol ;\n struct xfrm_user_sec_ctx * uctx ;\n p += pol -> sadb_x_policy_len * 8 ;\n sec_ctx = ( struct sadb_x_sec_ctx * ) p ;\n if ( len < pol -> sadb_x_policy_len * 8 + sec_ctx -> sadb_x_sec_len ) {\n * dir = - EINVAL ;\n goto out ;\n }\n if ( ( * dir = verify_sec_ctx_len ( p ) ) ) goto out ;\n uctx = pfkey_sadb2xfrm_user_sec_ctx ( sec_ctx ) ;\n * dir = security_xfrm_policy_alloc ( & xp -> security , uctx ) ;\n kfree ( uctx ) ;\n if ( * dir ) goto out ;\n }\n * dir = pol -> sadb_x_policy_dir - 1 ;\n return xp ;\n out : xp -> walk . dead = 1 ;\n xfrm_policy_destroy ( xp ) ;\n return NULL ;\n }"}
{"idx": 5706, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( AppApiTest , DISABLED_AppProcess ) {\n LOG ( INFO ) << \"Start of test.\" ;\n extensions : : ProcessMap * process_map = extensions : : ProcessMap : : Get ( browser ( ) -> profile ( ) ) ;\n ASSERT_TRUE ( LoadExtension ( test_data_dir_ . AppendASCII ( \"app_process\" ) ) ) ;\n LOG ( INFO ) << \"Loaded extension.\" ;\n GURL base_url = GetTestBaseURL ( \"app_process\" ) ;\n ui_test_utils : : NavigateToURLWithDisposition ( browser ( ) , base_url . Resolve ( \"path1/empty.html\" ) , WindowOpenDisposition : : NEW_FOREGROUND_TAB , ui_test_utils : : BROWSER_TEST_WAIT_FOR_NAVIGATION ) ;\n EXPECT_TRUE ( process_map -> Contains ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 1 ) -> GetRenderProcessHost ( ) -> GetID ( ) ) ) ;\n EXPECT_FALSE ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 1 ) -> GetWebUI ( ) ) ;\n LOG ( INFO ) << \"Nav 1.\" ;\n ui_test_utils : : NavigateToURLWithDisposition ( browser ( ) , base_url . Resolve ( \"path2/empty.html\" ) , WindowOpenDisposition : : NEW_FOREGROUND_TAB , ui_test_utils : : BROWSER_TEST_WAIT_FOR_NAVIGATION ) ;\n EXPECT_TRUE ( process_map -> Contains ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 2 ) -> GetRenderProcessHost ( ) -> GetID ( ) ) ) ;\n EXPECT_FALSE ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 2 ) -> GetWebUI ( ) ) ;\n LOG ( INFO ) << \"Nav 2.\" ;\n content : : WindowedNotificationObserver tab_added_observer ( chrome : : NOTIFICATION_TAB_ADDED , content : : NotificationService : : AllSources ( ) ) ;\n chrome : : NewTab ( browser ( ) ) ;\n tab_added_observer . Wait ( ) ;\n LOG ( INFO ) << \"New tab.\" ;\n ui_test_utils : : NavigateToURL ( browser ( ) , base_url . Resolve ( \"path3/empty.html\" ) ) ;\n LOG ( INFO ) << \"Nav 3.\" ;\n EXPECT_FALSE ( process_map -> Contains ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 3 ) -> GetRenderProcessHost ( ) -> GetID ( ) ) ) ;\n EXPECT_FALSE ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 3 ) -> GetWebUI ( ) ) ;\n ASSERT_EQ ( 4 , browser ( ) -> tab_strip_model ( ) -> count ( ) ) ;\n WebContents * tab = browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 1 ) ;\n EXPECT_EQ ( tab -> GetRenderProcessHost ( ) , browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 2 ) -> GetRenderProcessHost ( ) ) ;\n EXPECT_NE ( tab -> GetRenderProcessHost ( ) , browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 3 ) -> GetRenderProcessHost ( ) ) ;\n ASSERT_EQ ( 1u , chrome : : GetBrowserCount ( browser ( ) -> profile ( ) ) ) ;\n OpenWindow ( tab , base_url . Resolve ( \"path1/empty.html\" ) , true , true , NULL ) ;\n LOG ( INFO ) << \"WindowOpenHelper 1.\" ;\n OpenWindow ( tab , base_url . Resolve ( \"path2/empty.html\" ) , true , true , NULL ) ;\n LOG ( INFO ) << \"WindowOpenHelper 2.\" ;\n OpenWindow ( tab , base_url . Resolve ( \"path3/empty.html\" ) , true , true , NULL ) ;\n LOG ( INFO ) << \"WindowOpenHelper 3.\" ;\n const GURL & app_url ( base_url . Resolve ( \"path1/empty.html\" ) ) ;\n const GURL & non_app_url ( base_url . Resolve ( \"path3/empty.html\" ) ) ;\n NavigateInRenderer ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 2 ) , non_app_url ) ;\n LOG ( INFO ) << \"NavigateTabHelper 1.\" ;\n NavigateInRenderer ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 3 ) , app_url ) ;\n LOG ( INFO ) << \"NavigateTabHelper 2.\" ;\n EXPECT_NE ( tab -> GetRenderProcessHost ( ) , browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 2 ) -> GetRenderProcessHost ( ) ) ;\n EXPECT_EQ ( tab -> GetRenderProcessHost ( ) , browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 3 ) -> GetRenderProcessHost ( ) ) ;\n NavigateInRenderer ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 6 ) , app_url ) ;\n LOG ( INFO ) << \"NavigateTabHelper 3.\" ;\n EXPECT_EQ ( tab -> GetRenderProcessHost ( ) , browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 6 ) -> GetRenderProcessHost ( ) ) ;\n bool windowOpenerValid = false ;\n ASSERT_TRUE ( content : : ExecuteScriptAndExtractBool ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 6 ) , \"window.domAutomationController.send(window.opener != null)\" , & windowOpenerValid ) ) ;\n ASSERT_TRUE ( windowOpenerValid ) ;\n LOG ( INFO ) << \"End of test.\" ;\n }"}
{"idx": 5707, "target": 0, "func": "static int handle_grant_data ( TABLE_LIST * tables , bool drop , LEX_USER * user_from , LEX_USER * user_to ) {\n int result = 0 ;\n int found ;\n int ret ;\n DBUG_ENTER ( \"handle_grant_data\" ) ;\n if ( ( found = handle_grant_table ( tables , 0 , drop , user_from , user_to ) ) < 0 ) {\n result = - 1 ;\n }\n else {\n if ( ( ( ret = handle_grant_struct ( USER_ACL , drop , user_from , user_to ) > 0 ) && ! result ) || found ) {\n result = 1 ;\n if ( ! drop && ! user_to ) goto end ;\n }\n else if ( ret < 0 ) {\n result = - 1 ;\n goto end ;\n }\n }\n if ( ( found = handle_grant_table ( tables , 1 , drop , user_from , user_to ) ) < 0 ) {\n result = - 1 ;\n }\n else {\n if ( ( ( ( ret = handle_grant_struct ( DB_ACL , drop , user_from , user_to ) > 0 ) && ! result ) || found ) && ! result ) {\n result = 1 ;\n if ( ! drop && ! user_to ) goto end ;\n }\n else if ( ret < 0 ) {\n result = - 1 ;\n goto end ;\n }\n }\n if ( ( found = handle_grant_table ( tables , 4 , drop , user_from , user_to ) ) < 0 ) {\n result = - 1 ;\n }\n else {\n if ( ( ( ( ret = handle_grant_struct ( PROC_PRIVILEGES_HASH , drop , user_from , user_to ) > 0 ) && ! result ) || found ) && ! result ) {\n result = 1 ;\n if ( ! drop && ! user_to ) goto end ;\n }\n else if ( ret < 0 ) {\n result = - 1 ;\n goto end ;\n }\n if ( ( ( ( ret = handle_grant_struct ( FUNC_PRIVILEGES_HASH , drop , user_from , user_to ) > 0 ) && ! result ) || found ) && ! result ) {\n result = 1 ;\n if ( ! drop && ! user_to ) goto end ;\n }\n else if ( ret < 0 ) {\n result = - 1 ;\n goto end ;\n }\n }\n if ( ( found = handle_grant_table ( tables , 2 , drop , user_from , user_to ) ) < 0 ) {\n result = - 1 ;\n }\n else {\n if ( found && ! result ) {\n result = 1 ;\n if ( ! drop && ! user_to ) goto end ;\n }\n if ( ( found = handle_grant_table ( tables , 3 , drop , user_from , user_to ) ) < 0 ) {\n result = - 1 ;\n }\n else {\n if ( ( ( ( ret = handle_grant_struct ( COLUMN_PRIVILEGES_HASH , drop , user_from , user_to ) > 0 ) && ! result ) || found ) && ! result ) result = 1 ;\n else if ( ret < 0 ) result = - 1 ;\n }\n }\n end : DBUG_RETURN ( result ) ;\n }"}
{"idx": 5708, "target": 0, "func": "static int dissect_h245_Cmd_aal5 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_Cmd_aal5 , Cmd_aal5_sequence ) ;\n return offset ;\n }"}
{"idx": 5709, "target": 0, "func": "static void directory_count_start ( NautilusDirectory * directory , NautilusFile * file , gboolean * doing_io ) {\n DirectoryCountState * state ;\n GFile * location ;\n if ( directory -> details -> count_in_progress != NULL ) {\n * doing_io = TRUE ;\n return ;\n }\n if ( ! is_needy ( file , should_get_directory_count_now , REQUEST_DIRECTORY_COUNT ) ) {\n return ;\n }\n * doing_io = TRUE ;\n if ( ! nautilus_file_is_directory ( file ) ) {\n file -> details -> directory_count_is_up_to_date = TRUE ;\n file -> details -> directory_count_failed = FALSE ;\n file -> details -> got_directory_count = FALSE ;\n nautilus_directory_async_state_changed ( directory ) ;\n return ;\n }\n if ( ! async_job_start ( directory , \"directory count\" ) ) {\n return ;\n }\n state = g_new0 ( DirectoryCountState , 1 ) ;\n state -> count_file = file ;\n state -> directory = nautilus_directory_ref ( directory ) ;\n state -> cancellable = g_cancellable_new ( ) ;\n directory -> details -> count_in_progress = state ;\n location = nautilus_file_get_location ( file ) ;\n # ifdef DEBUG_LOAD_DIRECTORY {\n char * uri ;\n uri = g_file_get_uri ( location ) ;\n g_message ( \"load_directory called to get shallow file count for %s\" , uri ) ;\n g_free ( uri ) ;\n }\n # endif g_file_enumerate_children_async ( location , G_FILE_ATTRIBUTE_STANDARD_NAME \",\" G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN \",\" G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP , G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS , G_PRIORITY_DEFAULT , state -> cancellable , count_children_callback , state ) ;\n g_object_unref ( location ) ;\n }"}
{"idx": 5710, "target": 0, "func": "int luaD_rawrunprotected ( lua_State * L , Pfunc f , void * ud ) {\n struct lua_longjmp lj ;\n lj . status = 0 ;\n lj . previous = L -> errorJmp ;\n L -> errorJmp = & lj ;\n LUAI_TRY ( L , & lj , ( * f ) ( L , ud ) ;\n ) ;\n L -> errorJmp = lj . previous ;\n return lj . status ;\n }"}
{"idx": 5711, "target": 0, "func": "TEST_F ( WebFrameTest , ContextMenuDataPasswordSelectedText ) {\n ContextMenuWebFrameClient frame ;\n FrameTestHelpers : : WebViewHelper web_view_helper ;\n WebViewImpl * web_view = web_view_helper . Initialize ( & frame ) ;\n const std : : string & html = \"<input type='password' value='password'>\" ;\n FrameTestHelpers : : LoadHTMLString ( web_view -> MainFrameImpl ( ) , html , ToKURL ( \"about:blank\" ) ) ;\n web_view -> Resize ( WebSize ( 500 , 300 ) ) ;\n web_view -> UpdateAllLifecyclePhases ( ) ;\n RunPendingTasks ( ) ;\n web_view -> SetInitialFocus ( false ) ;\n RunPendingTasks ( ) ;\n web_view -> MainFrameImpl ( ) -> ExecuteCommand ( WebString : : FromUTF8 ( \"SelectAll\" ) ) ;\n WebMouseEvent mouse_event ( WebInputEvent : : kMouseDown , WebInputEvent : : kNoModifiers , WebInputEvent : : GetStaticTimeStampForTests ( ) ) ;\n mouse_event . button = WebMouseEvent : : Button : : kRight ;\n mouse_event . SetPositionInWidget ( 8 , 8 ) ;\n mouse_event . click_count = 1 ;\n web_view -> HandleInputEvent ( WebCoalescedInputEvent ( mouse_event ) ) ;\n RunPendingTasks ( ) ;\n web_view_helper . Reset ( ) ;\n EXPECT_EQ ( frame . GetMenuData ( ) . input_field_type , blink : : WebContextMenuData : : kInputFieldTypePassword ) ;\n EXPECT_FALSE ( frame . GetMenuData ( ) . selected_text . IsEmpty ( ) ) ;\n }"}
{"idx": 5712, "target": 0, "func": "static void search_set_from_hostname ( void ) {\n char hostname [ HOST_NAME_MAX + 1 ] , * domainname ;\n search_postfix_clear ( ) ;\n if ( gethostname ( hostname , sizeof ( hostname ) ) ) return ;\n domainname = strchr ( hostname , '.' ) ;\n if ( ! domainname ) return ;\n search_postfix_add ( domainname ) ;\n }"}
{"idx": 5713, "target": 0, "func": "static bool hyperv_synic_enable_needed ( void * opaque ) {\n X86CPU * cpu = opaque ;\n CPUX86State * env = & cpu -> env ;\n int i ;\n if ( env -> msr_hv_synic_control != 0 || env -> msr_hv_synic_evt_page != 0 || env -> msr_hv_synic_msg_page != 0 ) {\n return true ;\n }\n for ( i = 0 ;\n i < ARRAY_SIZE ( env -> msr_hv_synic_sint ) ;\n i ++ ) {\n if ( env -> msr_hv_synic_sint [ i ] != 0 ) {\n return true ;\n }\n }\n return false ;\n }"}
{"idx": 5714, "target": 0, "func": "static vout_thread_t * aout_request_vout ( void * p_private , vout_thread_t * p_vout , video_format_t * p_fmt , bool b_recyle ) {\n decoder_t * p_dec = p_private ;\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n input_thread_t * p_input = p_owner -> p_input ;\n p_vout = input_resource_RequestVout ( p_owner -> p_resource , p_vout , p_fmt , 1 , b_recyle ) ;\n if ( p_input != NULL ) input_SendEventVout ( p_input ) ;\n return p_vout ;\n }"}
{"idx": 5715, "target": 1, "func": "static int dissect_h225_DisengageRejectReason ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 646 \"./asn1/h225/h225.cnf\" gint32 value ;\n h225_packet_info * h225_pi ;\n h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_DisengageRejectReason , DisengageRejectReason_choice , & value ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> reason = value ;\n }\n return offset ;\n }"}
{"idx": 5716, "target": 0, "func": "static char * get_icu_value_internal ( const char * loc_name , char * tag_name , int * result , int fromParseLocale ) {\n char * tag_value = NULL ;\n int32_t tag_value_len = 512 ;\n int singletonPos = 0 ;\n char * mod_loc_name = NULL ;\n int grOffset = 0 ;\n int32_t buflen = 512 ;\n UErrorCode status = U_ZERO_ERROR ;\n if ( strcmp ( tag_name , LOC_CANONICALIZE_TAG ) != 0 ) {\n grOffset = findOffset ( LOC_GRANDFATHERED , loc_name ) ;\n if ( grOffset >= 0 ) {\n if ( strcmp ( tag_name , LOC_LANG_TAG ) == 0 ) {\n return estrdup ( loc_name ) ;\n }\n else {\n return NULL ;\n }\n }\n if ( fromParseLocale == 1 ) {\n if ( strcmp ( tag_name , LOC_LANG_TAG ) == 0 ) {\n if ( strlen ( loc_name ) > 1 && ( isIDPrefix ( loc_name ) == 1 ) ) {\n return estrdup ( loc_name ) ;\n }\n }\n singletonPos = getSingletonPos ( loc_name ) ;\n if ( singletonPos == 0 ) {\n return NULL ;\n }\n else if ( singletonPos > 0 ) {\n mod_loc_name = estrndup ( loc_name , singletonPos - 1 ) ;\n }\n }\n }\n if ( mod_loc_name == NULL ) {\n mod_loc_name = estrdup ( loc_name ) ;\n }\n do {\n tag_value = erealloc ( tag_value , buflen ) ;\n tag_value_len = buflen ;\n if ( strcmp ( tag_name , LOC_SCRIPT_TAG ) == 0 ) {\n buflen = uloc_getScript ( mod_loc_name , tag_value , tag_value_len , & status ) ;\n }\n if ( strcmp ( tag_name , LOC_LANG_TAG ) == 0 ) {\n buflen = uloc_getLanguage ( mod_loc_name , tag_value , tag_value_len , & status ) ;\n }\n if ( strcmp ( tag_name , LOC_REGION_TAG ) == 0 ) {\n buflen = uloc_getCountry ( mod_loc_name , tag_value , tag_value_len , & status ) ;\n }\n if ( strcmp ( tag_name , LOC_VARIANT_TAG ) == 0 ) {\n buflen = uloc_getVariant ( mod_loc_name , tag_value , tag_value_len , & status ) ;\n }\n if ( strcmp ( tag_name , LOC_CANONICALIZE_TAG ) == 0 ) {\n buflen = uloc_canonicalize ( mod_loc_name , tag_value , tag_value_len , & status ) ;\n }\n if ( U_FAILURE ( status ) ) {\n if ( status == U_BUFFER_OVERFLOW_ERROR ) {\n status = U_ZERO_ERROR ;\n buflen ++ ;\n continue ;\n }\n * result = 0 ;\n if ( tag_value ) {\n efree ( tag_value ) ;\n }\n if ( mod_loc_name ) {\n efree ( mod_loc_name ) ;\n }\n return NULL ;\n }\n }\n while ( buflen > tag_value_len ) ;\n if ( buflen == 0 ) {\n * result = - 1 ;\n if ( tag_value ) {\n efree ( tag_value ) ;\n }\n if ( mod_loc_name ) {\n efree ( mod_loc_name ) ;\n }\n return NULL ;\n }\n else {\n * result = 1 ;\n }\n if ( mod_loc_name ) {\n efree ( mod_loc_name ) ;\n }\n return tag_value ;\n }"}
{"idx": 5717, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , IgnoreDownloads ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n base : : ScopedAllowBlockingForTesting allow_blocking ;\n base : : ScopedTempDir downloads_directory ;\n ASSERT_TRUE ( downloads_directory . CreateUniqueTempDir ( ) ) ;\n browser ( ) -> profile ( ) -> GetPrefs ( ) -> SetFilePath ( prefs : : kDownloadDefaultDirectory , downloads_directory . GetPath ( ) ) ;\n content : : DownloadTestObserverTerminal downloads_observer ( content : : BrowserContext : : GetDownloadManager ( browser ( ) -> profile ( ) ) , 1 , content : : DownloadTestObserver : : ON_DANGEROUS_DOWNLOAD_FAIL ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/download-test3.gif\" ) ) ;\n downloads_observer . WaitForFinished ( ) ;\n NavigateToUntrackedUrl ( ) ;\n EXPECT_TRUE ( NoPageLoadMetricsRecorded ( ) ) << \"Recorded metrics: \" << GetRecordedPageLoadMetricNames ( ) ;\n }"}
{"idx": 5718, "target": 0, "func": "static unsigned virtio_s390_get_features ( void * opaque ) {\n VirtIOS390Device * dev = ( VirtIOS390Device * ) opaque ;\n return dev -> host_features ;\n }"}
{"idx": 5719, "target": 0, "func": "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 ) {\n uint8_t comp_pred [ m * n ] ;\n vp9_comp_avg_pred ( comp_pred , second_pred , m , n , ref , ref_stride ) ;\n return sad ( src , src_stride , comp_pred , m , m , n ) ;\n \\ }\n # define sadMxNxK ( m , n , k ) void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 ) sadMxN ( 16 , 32 )"}
{"idx": 5720, "target": 0, "func": "static void * login_setting_dup ( pool_t pool , const struct setting_parser_info * info , const void * src_set ) {\n const char * error ;\n void * dest ;\n dest = settings_dup ( info , src_set , pool ) ;\n if ( ! settings_check ( info , pool , dest , & error ) ) {\n const char * name = info -> module_name ;\n i_fatal ( \"settings_check(%s) failed: %s\" , name != NULL ? name : \"unknown\" , error ) ;\n }\n return dest ;\n }"}
{"idx": 5721, "target": 0, "func": "static void addrsort ( char * * ap , int num ) {\n int i , j ;\n char * * p ;\n short aval [ MAX_NR_ADDRS ] ;\n int needsort = 0 ;\n p = ap ;\n if ( num > MAX_NR_ADDRS ) num = MAX_NR_ADDRS ;\n for ( i = 0 ;\n i < num ;\n i ++ , p ++ ) {\n for ( j = 0 ;\n ( unsigned ) j < _res . nsort ;\n j ++ ) if ( _res . sort_list [ j ] . addr . s_addr == ( ( ( struct in_addr * ) ( * p ) ) -> s_addr & _res . sort_list [ j ] . mask ) ) break ;\n aval [ i ] = j ;\n if ( needsort == 0 && i > 0 && j < aval [ i - 1 ] ) needsort = i ;\n }\n if ( ! needsort ) return ;\n while ( needsort ++ < num ) for ( j = needsort - 2 ;\n j >= 0 ;\n j -- ) if ( aval [ j ] > aval [ j + 1 ] ) {\n char * hp ;\n i = aval [ j ] ;\n aval [ j ] = aval [ j + 1 ] ;\n aval [ j + 1 ] = i ;\n hp = ap [ j ] ;\n ap [ j ] = ap [ j + 1 ] ;\n ap [ j + 1 ] = hp ;\n }\n else break ;\n }"}
{"idx": 5722, "target": 0, "func": "static void dissect_q931_pl_binary_parameters_ie ( tvbuff_t * tvb , int offset , int len , proto_tree * tree ) {\n const int * fields [ ] = {\n & hf_q931_fast_select , & hf_q931_pl_request , & hf_q931_pl_binary_confirmation , & hf_q931_pl_modulus , NULL }\n ;\n if ( len == 0 ) return ;\n proto_tree_add_bitmask_list ( tree , tvb , offset , 1 , fields , ENC_NA ) ;\n }"}
{"idx": 5723, "target": 0, "func": "static void config_ntpd ( config_tree * ptree ) {\n config_nic_rules ( ptree ) ;\n io_open_sockets ( ) ;\n config_monitor ( ptree ) ;\n config_auth ( ptree ) ;\n config_tos ( ptree ) ;\n config_access ( ptree ) ;\n config_tinker ( ptree ) ;\n config_system_opts ( ptree ) ;\n config_logconfig ( ptree ) ;\n config_phone ( ptree ) ;\n config_setvar ( ptree ) ;\n config_ttl ( ptree ) ;\n config_trap ( ptree ) ;\n config_vars ( ptree ) ;\n config_other_modes ( ptree ) ;\n config_peers ( ptree ) ;\n config_unpeers ( ptree ) ;\n config_fudge ( ptree ) ;\n config_qos ( ptree ) ;\n # ifdef TEST_BLOCKING_WORKER {\n struct addrinfo hints ;\n memset ( & hints , 0 , sizeof ( hints ) ) ;\n hints . ai_socktype = SOCK_STREAM ;\n hints . ai_protocol = IPPROTO_TCP ;\n getaddrinfo_sometime ( \"www.cnn.com\" , \"ntp\" , & hints , INITIAL_DNS_RETRY , gai_test_callback , ( void * ) 1 ) ;\n hints . ai_family = AF_INET6 ;\n getaddrinfo_sometime ( \"ipv6.google.com\" , \"ntp\" , & hints , INITIAL_DNS_RETRY , gai_test_callback , ( void * ) 0x600 ) ;\n }\n # endif }"}
{"idx": 5724, "target": 0, "func": "static VALUE mString_to_json_raw_object ( VALUE self ) {\n VALUE ary ;\n VALUE result = rb_hash_new ( ) ;\n rb_hash_aset ( result , rb_funcall ( mJSON , i_create_id , 0 ) , rb_class_name ( rb_obj_class ( self ) ) ) ;\n ary = rb_funcall ( self , i_unpack , 1 , rb_str_new2 ( \"C*\" ) ) ;\n rb_hash_aset ( result , rb_str_new2 ( \"raw\" ) , ary ) ;\n return result ;\n }"}
{"idx": 5725, "target": 0, "func": "static jpc_enc_tcmpt_t * tcmpt_create ( jpc_enc_tcmpt_t * tcmpt , jpc_enc_cp_t * cp , jas_image_t * image , jpc_enc_tile_t * tile ) {\n uint_fast16_t cmptno ;\n uint_fast16_t rlvlno ;\n jpc_enc_rlvl_t * rlvl ;\n uint_fast32_t tlx ;\n uint_fast32_t tly ;\n uint_fast32_t brx ;\n uint_fast32_t bry ;\n uint_fast32_t cmpttlx ;\n uint_fast32_t cmpttly ;\n jpc_enc_ccp_t * ccp ;\n jpc_tsfb_band_t bandinfos [ JPC_MAXBANDS ] ;\n tcmpt -> tile = tile ;\n tcmpt -> tsfb = 0 ;\n tcmpt -> data = 0 ;\n tcmpt -> rlvls = 0 ;\n cmptno = tcmpt - tile -> tcmpts ;\n ccp = & cp -> ccps [ cmptno ] ;\n tlx = JPC_CEILDIV ( tile -> tlx , ccp -> sampgrdstepx ) ;\n tly = JPC_CEILDIV ( tile -> tly , ccp -> sampgrdstepy ) ;\n brx = JPC_CEILDIV ( tile -> brx , ccp -> sampgrdstepx ) ;\n bry = JPC_CEILDIV ( tile -> bry , ccp -> sampgrdstepy ) ;\n if ( ! ( tcmpt -> data = jas_seq2d_create ( tlx , tly , brx , bry ) ) ) {\n goto error ;\n }\n cmpttlx = JPC_CEILDIV ( cp -> imgareatlx , ccp -> sampgrdstepx ) ;\n cmpttly = JPC_CEILDIV ( cp -> imgareatly , ccp -> sampgrdstepy ) ;\n if ( jas_image_readcmpt ( image , cmptno , tlx - cmpttlx , tly - cmpttly , brx - tlx , bry - tly , tcmpt -> data ) ) {\n goto error ;\n }\n tcmpt -> synweight = 0 ;\n tcmpt -> qmfbid = cp -> tccp . qmfbid ;\n tcmpt -> numrlvls = cp -> tccp . maxrlvls ;\n tcmpt -> numbands = 3 * tcmpt -> numrlvls - 2 ;\n if ( ! ( tcmpt -> tsfb = jpc_cod_gettsfb ( tcmpt -> qmfbid , tcmpt -> numrlvls - 1 ) ) ) {\n goto error ;\n }\n for ( rlvlno = 0 ;\n rlvlno < tcmpt -> numrlvls ;\n ++ rlvlno ) {\n tcmpt -> prcwidthexpns [ rlvlno ] = cp -> tccp . prcwidthexpns [ rlvlno ] ;\n tcmpt -> prcheightexpns [ rlvlno ] = cp -> tccp . prcheightexpns [ rlvlno ] ;\n }\n tcmpt -> cblkwidthexpn = cp -> tccp . cblkwidthexpn ;\n tcmpt -> cblkheightexpn = cp -> tccp . cblkheightexpn ;\n tcmpt -> cblksty = cp -> tccp . cblksty ;\n tcmpt -> csty = cp -> tccp . csty ;\n tcmpt -> numstepsizes = tcmpt -> numbands ;\n assert ( tcmpt -> numstepsizes <= JPC_MAXBANDS ) ;\n memset ( tcmpt -> stepsizes , 0 , tcmpt -> numstepsizes * sizeof ( uint_fast16_t ) ) ;\n jpc_tsfb_getbands ( tcmpt -> tsfb , jas_seq2d_xstart ( tcmpt -> data ) , jas_seq2d_ystart ( tcmpt -> data ) , jas_seq2d_xend ( tcmpt -> data ) , jas_seq2d_yend ( tcmpt -> data ) , bandinfos ) ;\n if ( ! ( tcmpt -> rlvls = jas_alloc2 ( tcmpt -> numrlvls , sizeof ( jpc_enc_rlvl_t ) ) ) ) {\n goto error ;\n }\n for ( rlvlno = 0 , rlvl = tcmpt -> rlvls ;\n rlvlno < tcmpt -> numrlvls ;\n ++ rlvlno , ++ rlvl ) {\n rlvl -> bands = 0 ;\n rlvl -> tcmpt = tcmpt ;\n }\n for ( rlvlno = 0 , rlvl = tcmpt -> rlvls ;\n rlvlno < tcmpt -> numrlvls ;\n ++ rlvlno , ++ rlvl ) {\n if ( ! rlvl_create ( rlvl , cp , tcmpt , bandinfos ) ) {\n goto error ;\n }\n }\n return tcmpt ;\n error : tcmpt_destroy ( tcmpt ) ;\n return 0 ;\n }"}
{"idx": 5726, "target": 0, "func": "static const char * calc_ip ( const char * ip , long * val , char end ) {\n long ip_val , tmp ;\n if ( ! ( ip = str2int ( ip , 10 , 0 , 255 , & ip_val ) ) || * ip != '.' ) return 0 ;\n ip_val <<= 24 ;\n if ( ! ( ip = str2int ( ip + 1 , 10 , 0 , 255 , & tmp ) ) || * ip != '.' ) return 0 ;\n ip_val += tmp << 16 ;\n if ( ! ( ip = str2int ( ip + 1 , 10 , 0 , 255 , & tmp ) ) || * ip != '.' ) return 0 ;\n ip_val += tmp << 8 ;\n if ( ! ( ip = str2int ( ip + 1 , 10 , 0 , 255 , & tmp ) ) || * ip != end ) return 0 ;\n * val = ip_val + tmp ;\n return ip ;\n }"}
{"idx": 5727, "target": 0, "func": "static inline void set_num_733 ( unsigned char * p , uint32_t value ) {\n archive_le32enc ( p , value ) ;\n archive_be32enc ( p + 4 , value ) ;\n }"}
{"idx": 5728, "target": 0, "func": "int virLogSetOutputs ( const char * src ) {\n int ret = - 1 ;\n int noutputs = 0 ;\n const char * outputstr = virLogDefaultOutput ;\n virLogOutputPtr * outputs = NULL ;\n if ( virLogInitialize ( ) < 0 ) return - 1 ;\n if ( src && * src ) outputstr = src ;\n if ( ! outputstr ) return 0 ;\n if ( ( noutputs = virLogParseOutputs ( outputstr , & outputs ) ) < 0 ) goto cleanup ;\n if ( virLogDefineOutputs ( outputs , noutputs ) < 0 ) goto cleanup ;\n outputs = NULL ;\n ret = 0 ;\n cleanup : virLogOutputListFree ( outputs , noutputs ) ;\n return ret ;\n }"}
{"idx": 5729, "target": 0, "func": "static void restore_query_logs ( ) {\n int rc ;\n rc = mysql_query ( mysql , \"set @@global.general_log=@save_global_general_log\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"set @@global.slow_query_log=@save_global_slow_query_log\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 5730, "target": 0, "func": "void dissect_zcl_ballast_configuration_attr_data ( proto_tree * tree , tvbuff_t * tvb , guint * offset , guint16 attr_id , guint data_type ) {\n static const int * ballast_status [ ] = {\n & hf_zbee_zcl_ballast_configuration_status_non_operational , & hf_zbee_zcl_ballast_configuration_status_lamp_not_in_socket , NULL }\n ;\n static const int * lamp_alarm_mode [ ] = {\n & hf_zbee_zcl_ballast_configuration_lamp_alarm_mode_lamp_burn_hours , NULL }\n ;\n switch ( attr_id ) {\n case ZBEE_ZCL_ATTR_ID_BALLAST_CONFIGURATION_BALLAST_STATUS : proto_tree_add_bitmask ( tree , tvb , * offset , hf_zbee_zcl_ballast_configuration_status , ett_zbee_zcl_ballast_configuration_status , ballast_status , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_BALLAST_CONFIGURATION_LAMP_ALARM_MODE : proto_tree_add_bitmask ( tree , tvb , * offset , hf_zbee_zcl_ballast_configuration_lamp_alarm_mode , ett_zbee_zcl_ballast_configuration_lamp_alarm_mode , lamp_alarm_mode , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_BALLAST_CONFIGURATION_PHYSICAL_MIN_LEVEL : case ZBEE_ZCL_ATTR_ID_BALLAST_CONFIGURATION_PHYSICAL_MAX_LEVEL : case ZBEE_ZCL_ATTR_ID_BALLAST_CONFIGURATION_MIN_LEVEL : case ZBEE_ZCL_ATTR_ID_BALLAST_CONFIGURATION_MAX_LEVEL : case ZBEE_ZCL_ATTR_ID_BALLAST_CONFIGURATION_POWER_ON_LEVEL : case ZBEE_ZCL_ATTR_ID_BALLAST_CONFIGURATION_POWER_ON_FADE_TIME : case ZBEE_ZCL_ATTR_ID_BALLAST_CONFIGURATION_INTRINSIC_BALLAST_FACTOR : case ZBEE_ZCL_ATTR_ID_BALLAST_CONFIGURATION_BALLAST_FACT_ADJ : case ZBEE_ZCL_ATTR_ID_BALLAST_CONFIGURATION_LAMP_QUANTITY : case ZBEE_ZCL_ATTR_ID_BALLAST_CONFIGURATION_LAMP_TYPE : case ZBEE_ZCL_ATTR_ID_BALLAST_CONFIGURATION_LAMP_MANUFACTURER : case ZBEE_ZCL_ATTR_ID_BALLAST_CONFIGURATION_LAMP_RATED_HOURS : case ZBEE_ZCL_ATTR_ID_BALLAST_CONFIGURATION_LAMP_BURN_HOURS : case ZBEE_ZCL_ATTR_ID_BALLAST_CONFIGURATION_LAMP_BURN_HOURS_TRIP_POINT : default : dissect_zcl_attr_data ( tvb , tree , offset , data_type ) ;\n break ;\n }\n }"}
{"idx": 5731, "target": 0, "func": "TEST_F ( TemplateURLTest , HasSearchTermsReplacementKey ) {\n TemplateURLData data ;\n data . SetURL ( \"http://google.com/?q={\nsearchTerms}\n\" ) ;\n data . instant_url = \"http://google.com/instant#q={\nsearchTerms}\n\" ;\n data . alternate_urls . push_back ( \"http://google.com/alt/#q={\nsearchTerms}\n\" ) ;\n data . alternate_urls . push_back ( \"http://google.com/alt/?ext=foo&q={\nsearchTerms}\n#ref=bar\" ) ;\n data . search_terms_replacement_key = \"espv\" ;\n TemplateURL url ( data ) ;\n EXPECT_FALSE ( url . HasSearchTermsReplacementKey ( GURL ( \"http://google.com/\" ) ) ) ;\n EXPECT_TRUE ( url . HasSearchTermsReplacementKey ( GURL ( \"http://google.com/?espv\" ) ) ) ;\n EXPECT_TRUE ( url . HasSearchTermsReplacementKey ( GURL ( \"http://google.com/#espv\" ) ) ) ;\n EXPECT_FALSE ( url . HasSearchTermsReplacementKey ( GURL ( \"http://google.com/?q=something\" ) ) ) ;\n EXPECT_TRUE ( url . HasSearchTermsReplacementKey ( GURL ( \"http://google.com/?q=something&espv\" ) ) ) ;\n EXPECT_TRUE ( url . HasSearchTermsReplacementKey ( GURL ( \"http://google.com/?q=something&espv=1\" ) ) ) ;\n EXPECT_TRUE ( url . HasSearchTermsReplacementKey ( GURL ( \"http://google.com/?q=something&espv=0\" ) ) ) ;\n EXPECT_TRUE ( url . HasSearchTermsReplacementKey ( GURL ( \"http://google.com/?espv&q=something\" ) ) ) ;\n EXPECT_TRUE ( url . HasSearchTermsReplacementKey ( GURL ( \"http://google.com/?espv=1&q=something\" ) ) ) ;\n EXPECT_TRUE ( url . HasSearchTermsReplacementKey ( GURL ( \"http://google.com/?espv=0&q=something\" ) ) ) ;\n EXPECT_FALSE ( url . HasSearchTermsReplacementKey ( GURL ( \"http://google.com/alt/#q=something\" ) ) ) ;\n EXPECT_TRUE ( url . HasSearchTermsReplacementKey ( GURL ( \"http://google.com/alt/#q=something&espv\" ) ) ) ;\n EXPECT_TRUE ( url . HasSearchTermsReplacementKey ( GURL ( \"http://google.com/alt/#q=something&espv=1\" ) ) ) ;\n EXPECT_TRUE ( url . HasSearchTermsReplacementKey ( GURL ( \"http://google.com/alt/#q=something&espv=0\" ) ) ) ;\n EXPECT_TRUE ( url . HasSearchTermsReplacementKey ( GURL ( \"http://google.com/alt/#espv&q=something\" ) ) ) ;\n EXPECT_TRUE ( url . HasSearchTermsReplacementKey ( GURL ( \"http://google.com/alt/#espv=1&q=something\" ) ) ) ;\n EXPECT_TRUE ( url . HasSearchTermsReplacementKey ( GURL ( \"http://google.com/alt/#espv=0&q=something\" ) ) ) ;\n EXPECT_TRUE ( url . HasSearchTermsReplacementKey ( GURL ( \"http://google.com/?espv#q=something\" ) ) ) ;\n EXPECT_TRUE ( url . HasSearchTermsReplacementKey ( GURL ( \"http://google.com/?espv=1#q=something\" ) ) ) ;\n EXPECT_TRUE ( url . HasSearchTermsReplacementKey ( GURL ( \"http://google.com/?q=something#espv\" ) ) ) ;\n EXPECT_TRUE ( url . HasSearchTermsReplacementKey ( GURL ( \"http://google.com/?q=something#espv=1\" ) ) ) ;\n EXPECT_TRUE ( url . HasSearchTermsReplacementKey ( GURL ( \"http://bing.com/?espv\" ) ) ) ;\n EXPECT_TRUE ( url . HasSearchTermsReplacementKey ( GURL ( \"http://bing.com/#espv\" ) ) ) ;\n }"}
{"idx": 5732, "target": 0, "func": "static ngx_int_t reinit_request ( ngx_http_request_t * r ) {\n passenger_context_t * context ;\n context = ngx_http_get_module_ctx ( r , ngx_http_passenger_module ) ;\n if ( context == NULL ) {\n return NGX_OK ;\n }\n context -> status = 0 ;\n context -> status_count = 0 ;\n context -> status_start = NULL ;\n context -> status_end = NULL ;\n r -> upstream -> process_header = process_status_line ;\n r -> state = 0 ;\n return NGX_OK ;\n }"}
{"idx": 5733, "target": 0, "func": "static int opt_pretty ( void * optctx , const char * opt , const char * arg ) {\n show_value_unit = 1 ;\n use_value_prefix = 1 ;\n use_byte_value_binary_prefix = 1 ;\n use_value_sexagesimal_format = 1 ;\n return 0 ;\n }"}
{"idx": 5734, "target": 0, "func": "static void icount_warp_rt ( void * opaque ) {\n if ( vm_clock_warp_start == - 1 ) {\n return ;\n }\n if ( runstate_is_running ( ) ) {\n int64_t clock = qemu_get_clock_ns ( rt_clock ) ;\n int64_t warp_delta = clock - vm_clock_warp_start ;\n if ( use_icount == 1 ) {\n qemu_icount_bias += warp_delta ;\n }\n else {\n int64_t cur_time = cpu_get_clock ( ) ;\n int64_t cur_icount = qemu_get_clock_ns ( vm_clock ) ;\n int64_t delta = cur_time - cur_icount ;\n qemu_icount_bias += MIN ( warp_delta , delta ) ;\n }\n if ( qemu_clock_expired ( vm_clock ) ) {\n qemu_notify_event ( ) ;\n }\n }\n vm_clock_warp_start = - 1 ;\n }"}
{"idx": 5735, "target": 0, "func": "void gx_device_retain ( gx_device * dev , bool retained ) {\n int delta = ( int ) retained - ( int ) dev -> retained ;\n if ( delta ) {\n dev -> retained = retained ;\n rc_adjust_only ( dev , delta , \"gx_device_retain\" ) ;\n }\n }"}
{"idx": 5736, "target": 0, "func": "inline MIMEHdrImpl * _hdr_obj_to_mime_hdr_impl ( HdrHeapObjImpl * obj ) {\n MIMEHdrImpl * impl ;\n if ( obj -> m_type == HDR_HEAP_OBJ_HTTP_HEADER ) {\n impl = ( ( HTTPHdrImpl * ) obj ) -> m_fields_impl ;\n }\n else if ( obj -> m_type == HDR_HEAP_OBJ_MIME_HEADER ) {\n impl = ( MIMEHdrImpl * ) obj ;\n }\n else {\n ink_release_assert ( ! \"mloc not a header type\" ) ;\n impl = nullptr ;\n }\n return impl ;\n }"}
{"idx": 5737, "target": 0, "func": "static void iax_cleanup_protocol ( void ) {\n g_hash_table_destroy ( iax_circuit_hashtab ) ;\n g_hash_table_destroy ( iax_fid_table ) ;\n reassembly_table_destroy ( & iax_reassembly_table ) ;\n }"}
{"idx": 5738, "target": 0, "func": "static void ppc_prep_init ( QEMUMachineInitArgs * args ) {\n ram_addr_t ram_size = args -> ram_size ;\n const char * cpu_model = args -> cpu_model ;\n const char * kernel_filename = args -> kernel_filename ;\n const char * kernel_cmdline = args -> kernel_cmdline ;\n const char * initrd_filename = args -> initrd_filename ;\n const char * boot_device = args -> boot_device ;\n MemoryRegion * sysmem = get_system_memory ( ) ;\n PowerPCCPU * cpu = NULL ;\n CPUPPCState * env = NULL ;\n char * filename ;\n nvram_t nvram ;\n M48t59State * m48t59 ;\n MemoryRegion * PPC_io_memory = g_new ( MemoryRegion , 1 ) ;\n PortioList * port_list = g_new ( PortioList , 1 ) ;\n # if 0 MemoryRegion * xcsr = g_new ( MemoryRegion , 1 ) ;\n # endif int linux_boot , i , nb_nics1 , bios_size ;\n MemoryRegion * ram = g_new ( MemoryRegion , 1 ) ;\n MemoryRegion * bios = g_new ( MemoryRegion , 1 ) ;\n uint32_t kernel_base , initrd_base ;\n long kernel_size , initrd_size ;\n DeviceState * dev ;\n PCIHostState * pcihost ;\n PCIBus * pci_bus ;\n PCIDevice * pci ;\n ISABus * isa_bus ;\n ISADevice * isa ;\n qemu_irq * cpu_exit_irq ;\n int ppc_boot_device ;\n DriveInfo * hd [ MAX_IDE_BUS * MAX_IDE_DEVS ] ;\n sysctrl = g_malloc0 ( sizeof ( sysctrl_t ) ) ;\n linux_boot = ( kernel_filename != NULL ) ;\n if ( cpu_model == NULL ) cpu_model = \"602\" ;\n for ( i = 0 ;\n i < smp_cpus ;\n i ++ ) {\n cpu = cpu_ppc_init ( cpu_model ) ;\n if ( cpu == NULL ) {\n fprintf ( stderr , \"Unable to find PowerPC CPU definition\\n\" ) ;\n exit ( 1 ) ;\n }\n env = & cpu -> env ;\n if ( env -> flags & POWERPC_FLAG_RTC_CLK ) {\n cpu_ppc_tb_init ( env , 7812500UL ) ;\n }\n else {\n cpu_ppc_tb_init ( env , 100UL * 1000UL * 1000UL ) ;\n }\n qemu_register_reset ( ppc_prep_reset , cpu ) ;\n }\n memory_region_init_ram ( ram , NULL , \"ppc_prep.ram\" , ram_size ) ;\n vmstate_register_ram_global ( ram ) ;\n memory_region_add_subregion ( sysmem , 0 , ram ) ;\n memory_region_init_ram ( bios , NULL , \"ppc_prep.bios\" , BIOS_SIZE ) ;\n memory_region_set_readonly ( bios , true ) ;\n memory_region_add_subregion ( sysmem , ( uint32_t ) ( - BIOS_SIZE ) , bios ) ;\n vmstate_register_ram_global ( bios ) ;\n if ( bios_name == NULL ) bios_name = BIOS_FILENAME ;\n filename = qemu_find_file ( QEMU_FILE_TYPE_BIOS , bios_name ) ;\n if ( filename ) {\n bios_size = load_elf ( filename , NULL , NULL , NULL , NULL , NULL , 1 , ELF_MACHINE , 0 ) ;\n if ( bios_size < 0 ) {\n bios_size = get_image_size ( filename ) ;\n if ( bios_size > 0 && bios_size <= BIOS_SIZE ) {\n hwaddr bios_addr ;\n bios_size = ( bios_size + 0xfff ) & ~ 0xfff ;\n bios_addr = ( uint32_t ) ( - bios_size ) ;\n bios_size = load_image_targphys ( filename , bios_addr , bios_size ) ;\n }\n if ( bios_size > BIOS_SIZE ) {\n fprintf ( stderr , \"qemu: PReP bios '%s' is too large (0x%x)\\n\" , bios_name , bios_size ) ;\n exit ( 1 ) ;\n }\n }\n }\n else {\n bios_size = - 1 ;\n }\n if ( bios_size < 0 && ! qtest_enabled ( ) ) {\n fprintf ( stderr , \"qemu: could not load PPC PReP bios '%s'\\n\" , bios_name ) ;\n exit ( 1 ) ;\n }\n if ( filename ) {\n g_free ( filename ) ;\n }\n if ( linux_boot ) {\n kernel_base = KERNEL_LOAD_ADDR ;\n kernel_size = load_image_targphys ( kernel_filename , kernel_base , ram_size - kernel_base ) ;\n if ( kernel_size < 0 ) {\n hw_error ( \"qemu: could not load kernel '%s'\\n\" , kernel_filename ) ;\n exit ( 1 ) ;\n }\n if ( initrd_filename ) {\n initrd_base = INITRD_LOAD_ADDR ;\n initrd_size = load_image_targphys ( initrd_filename , initrd_base , ram_size - initrd_base ) ;\n if ( initrd_size < 0 ) {\n hw_error ( \"qemu: could not load initial ram disk '%s'\\n\" , initrd_filename ) ;\n }\n }\n else {\n initrd_base = 0 ;\n initrd_size = 0 ;\n }\n ppc_boot_device = 'm' ;\n }\n else {\n kernel_base = 0 ;\n kernel_size = 0 ;\n initrd_base = 0 ;\n initrd_size = 0 ;\n ppc_boot_device = '\\0' ;\n for ( i = 0 ;\n boot_device [ i ] != '\\0' ;\n i ++ ) {\n if ( boot_device [ i ] >= 'a' && boot_device [ i ] <= 'f' ) {\n ppc_boot_device = boot_device [ i ] ;\n break ;\n }\n }\n if ( ppc_boot_device == '\\0' ) {\n fprintf ( stderr , \"No valid boot device for Mac99 machine\\n\" ) ;\n exit ( 1 ) ;\n }\n }\n if ( PPC_INPUT ( env ) != PPC_FLAGS_INPUT_6xx ) {\n hw_error ( \"Only 6xx bus is supported on PREP machine\\n\" ) ;\n }\n dev = qdev_create ( NULL , \"raven-pcihost\" ) ;\n pcihost = PCI_HOST_BRIDGE ( dev ) ;\n object_property_add_child ( qdev_get_machine ( ) , \"raven\" , OBJECT ( dev ) , NULL ) ;\n qdev_init_nofail ( dev ) ;\n pci_bus = ( PCIBus * ) qdev_get_child_bus ( dev , \"pci.0\" ) ;\n if ( pci_bus == NULL ) {\n fprintf ( stderr , \"Couldn't create PCI host controller.\\n\" ) ;\n exit ( 1 ) ;\n }\n pci = pci_create_simple ( pci_bus , PCI_DEVFN ( 1 , 0 ) , \"i82378\" ) ;\n cpu_exit_irq = qemu_allocate_irqs ( cpu_request_exit , NULL , 1 ) ;\n qdev_connect_gpio_out ( & pci -> qdev , 0 , first_cpu -> irq_inputs [ PPC6xx_INPUT_INT ] ) ;\n qdev_connect_gpio_out ( & pci -> qdev , 1 , * cpu_exit_irq ) ;\n sysbus_connect_irq ( & pcihost -> busdev , 0 , qdev_get_gpio_in ( & pci -> qdev , 9 ) ) ;\n sysbus_connect_irq ( & pcihost -> busdev , 1 , qdev_get_gpio_in ( & pci -> qdev , 11 ) ) ;\n sysbus_connect_irq ( & pcihost -> busdev , 2 , qdev_get_gpio_in ( & pci -> qdev , 9 ) ) ;\n sysbus_connect_irq ( & pcihost -> busdev , 3 , qdev_get_gpio_in ( & pci -> qdev , 11 ) ) ;\n isa_bus = ISA_BUS ( qdev_get_child_bus ( DEVICE ( pci ) , \"isa.0\" ) ) ;\n isa = isa_create ( isa_bus , TYPE_PC87312 ) ;\n dev = DEVICE ( isa ) ;\n qdev_prop_set_uint8 ( dev , \"config\" , 13 ) ;\n qdev_init_nofail ( dev ) ;\n memory_region_init_io ( PPC_io_memory , NULL , & PPC_prep_io_ops , sysctrl , \"ppc-io\" , 0x00800000 ) ;\n memory_region_add_subregion ( sysmem , 0x80000000 , PPC_io_memory ) ;\n pci_vga_init ( pci_bus ) ;\n nb_nics1 = nb_nics ;\n if ( nb_nics1 > NE2000_NB_MAX ) nb_nics1 = NE2000_NB_MAX ;\n for ( i = 0 ;\n i < nb_nics1 ;\n i ++ ) {\n if ( nd_table [ i ] . model == NULL ) {\n nd_table [ i ] . model = g_strdup ( \"ne2k_isa\" ) ;\n }\n if ( strcmp ( nd_table [ i ] . model , \"ne2k_isa\" ) == 0 ) {\n isa_ne2000_init ( isa_bus , ne2000_io [ i ] , ne2000_irq [ i ] , & nd_table [ i ] ) ;\n }\n else {\n pci_nic_init_nofail ( & nd_table [ i ] , pci_bus , \"ne2k_pci\" , NULL ) ;\n }\n }\n ide_drive_get ( hd , MAX_IDE_BUS ) ;\n for ( i = 0 ;\n i < MAX_IDE_BUS ;\n i ++ ) {\n isa_ide_init ( isa_bus , ide_iobase [ i ] , ide_iobase2 [ i ] , ide_irq [ i ] , hd [ 2 * i ] , hd [ 2 * i + 1 ] ) ;\n }\n isa_create_simple ( isa_bus , \"i8042\" ) ;\n sysctrl -> reset_irq = first_cpu -> irq_inputs [ PPC6xx_INPUT_HRESET ] ;\n portio_list_init ( port_list , NULL , prep_portio_list , sysctrl , \"prep\" ) ;\n portio_list_add ( port_list , get_system_io ( ) , 0x0 ) ;\n # if 0 memory_region_init_io ( xcsr , NULL , & PPC_XCSR_ops , NULL , \"ppc-xcsr\" , 0x1000 ) ;\n memory_region_add_subregion ( sysmem , 0xFEFF0000 , xcsr ) ;\n # endif if ( usb_enabled ( false ) ) {\n pci_create_simple ( pci_bus , - 1 , \"pci-ohci\" ) ;\n }\n m48t59 = m48t59_init_isa ( isa_bus , 0x0074 , NVRAM_SIZE , 59 ) ;\n if ( m48t59 == NULL ) return ;\n sysctrl -> nvram = m48t59 ;\n nvram . opaque = m48t59 ;\n nvram . read_fn = & m48t59_read ;\n nvram . write_fn = & m48t59_write ;\n PPC_NVRAM_set_params ( & nvram , NVRAM_SIZE , \"PREP\" , ram_size , ppc_boot_device , kernel_base , kernel_size , kernel_cmdline , initrd_base , initrd_size , 0 , graphic_width , graphic_height , graphic_depth ) ;\n }"}
{"idx": 5739, "target": 0, "func": "static PHP_NAMED_FUNCTION ( zif_zip_entry_close ) {\n zval * zip_entry ;\n zip_read_rsrc * zr_rsrc ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"r\" , & zip_entry ) == FAILURE ) {\n return ;\n }\n ZEND_FETCH_RESOURCE ( zr_rsrc , zip_read_rsrc * , & zip_entry , - 1 , le_zip_entry_name , le_zip_entry ) ;\n RETURN_BOOL ( SUCCESS == zend_list_delete ( Z_LVAL_P ( zip_entry ) ) ) ;\n }"}
{"idx": 5740, "target": 0, "func": "static int dissect_h225_T_h4501SupplementaryService ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_T_h4501SupplementaryService , T_h4501SupplementaryService_sequence_of ) ;\n return offset ;\n }"}
{"idx": 5741, "target": 0, "func": "int TSHttpTxnClientReqIsServerStyle ( TSHttpTxn txnp ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n return ( sm -> t_state . hdr_info . client_req_is_server_style ? 1 : 0 ) ;\n }"}
{"idx": 5742, "target": 0, "func": "static RETSIGTYPE abortcmd ( int sig ) {\n if ( current_output == stdout ) ( void ) fflush ( stdout ) ;\n putc ( '\\n' , stderr ) ;\n ( void ) fflush ( stderr ) ;\n if ( jump ) longjmp ( interrupt_buf , 1 ) ;\n }"}
{"idx": 5743, "target": 0, "func": "static struct sk_buff * tipc_get_err_tlv ( char * str ) {\n int str_len = strlen ( str ) + 1 ;\n struct sk_buff * buf ;\n buf = tipc_tlv_alloc ( TLV_SPACE ( str_len ) ) ;\n if ( buf ) tipc_add_tlv ( buf , TIPC_TLV_ERROR_STRING , str , str_len ) ;\n return buf ;\n }"}
{"idx": 5744, "target": 0, "func": "PyObject * PyString_FromString ( const char * str ) {\n register size_t size ;\n register PyStringObject * op ;\n assert ( str != NULL ) ;\n size = strlen ( str ) ;\n if ( size > PY_SSIZE_T_MAX - PyStringObject_SIZE ) {\n PyErr_SetString ( PyExc_OverflowError , \"string is too long for a Python string\" ) ;\n return NULL ;\n }\n if ( size == 0 && ( op = nullstring ) != NULL ) {\n # ifdef COUNT_ALLOCS null_strings ++ ;\n # endif Py_INCREF ( op ) ;\n return ( PyObject * ) op ;\n }\n if ( size == 1 && ( op = characters [ * str & UCHAR_MAX ] ) != NULL ) {\n # ifdef COUNT_ALLOCS one_strings ++ ;\n # endif Py_INCREF ( op ) ;\n return ( PyObject * ) op ;\n }\n op = ( PyStringObject * ) PyObject_MALLOC ( PyStringObject_SIZE + size ) ;\n if ( op == NULL ) return PyErr_NoMemory ( ) ;\n ( void ) PyObject_INIT_VAR ( op , & PyString_Type , size ) ;\n op -> ob_shash = - 1 ;\n op -> ob_sstate = SSTATE_NOT_INTERNED ;\n Py_MEMCPY ( op -> ob_sval , str , size + 1 ) ;\n if ( size == 0 ) {\n PyObject * t = ( PyObject * ) op ;\n PyString_InternInPlace ( & t ) ;\n op = ( PyStringObject * ) t ;\n nullstring = op ;\n Py_INCREF ( op ) ;\n }\n else if ( size == 1 ) {\n PyObject * t = ( PyObject * ) op ;\n PyString_InternInPlace ( & t ) ;\n op = ( PyStringObject * ) t ;\n characters [ * str & UCHAR_MAX ] = op ;\n Py_INCREF ( op ) ;\n }\n return ( PyObject * ) op ;\n }"}
{"idx": 5745, "target": 0, "func": "int main ( int argc , char * argv [ ] ) {\n static struct option long_options [ ] = {\n {\n \"data-only\" , no_argument , NULL , 'a' }\n , {\n \"clean\" , no_argument , NULL , 'c' }\n , {\n \"file\" , required_argument , NULL , 'f' }\n , {\n \"globals-only\" , no_argument , NULL , 'g' }\n , {\n \"host\" , required_argument , NULL , 'h' }\n , {\n \"dbname\" , required_argument , NULL , 'd' }\n , {\n \"database\" , required_argument , NULL , 'l' }\n , {\n \"oids\" , no_argument , NULL , 'o' }\n , {\n \"no-owner\" , no_argument , NULL , 'O' }\n , {\n \"port\" , required_argument , NULL , 'p' }\n , {\n \"roles-only\" , no_argument , NULL , 'r' }\n , {\n \"schema-only\" , no_argument , NULL , 's' }\n , {\n \"superuser\" , required_argument , NULL , 'S' }\n , {\n \"tablespaces-only\" , no_argument , NULL , 't' }\n , {\n \"username\" , required_argument , NULL , 'U' }\n , {\n \"verbose\" , no_argument , NULL , 'v' }\n , {\n \"no-password\" , no_argument , NULL , 'w' }\n , {\n \"password\" , no_argument , NULL , 'W' }\n , {\n \"no-privileges\" , no_argument , NULL , 'x' }\n , {\n \"no-acl\" , no_argument , NULL , 'x' }\n , {\n \"attribute-inserts\" , no_argument , & column_inserts , 1 }\n , {\n \"binary-upgrade\" , no_argument , & binary_upgrade , 1 }\n , {\n \"column-inserts\" , no_argument , & column_inserts , 1 }\n , {\n \"disable-dollar-quoting\" , no_argument , & disable_dollar_quoting , 1 }\n , {\n \"disable-triggers\" , no_argument , & disable_triggers , 1 }\n , {\n \"if-exists\" , no_argument , & if_exists , 1 }\n , {\n \"inserts\" , no_argument , & inserts , 1 }\n , {\n \"lock-wait-timeout\" , required_argument , NULL , 2 }\n , {\n \"no-tablespaces\" , no_argument , & no_tablespaces , 1 }\n , {\n \"quote-all-identifiers\" , no_argument , & quote_all_identifiers , 1 }\n , {\n \"role\" , required_argument , NULL , 3 }\n , {\n \"use-set-session-authorization\" , no_argument , & use_setsessauth , 1 }\n , {\n \"no-security-labels\" , no_argument , & no_security_labels , 1 }\n , {\n \"no-unlogged-table-data\" , no_argument , & no_unlogged_table_data , 1 }\n , {\n NULL , 0 , NULL , 0 }\n }\n ;\n char * pghost = NULL ;\n char * pgport = NULL ;\n char * pguser = NULL ;\n char * pgdb = NULL ;\n char * use_role = NULL ;\n trivalue prompt_password = TRI_DEFAULT ;\n bool data_only = false ;\n bool globals_only = false ;\n bool output_clean = false ;\n bool roles_only = false ;\n bool tablespaces_only = false ;\n PGconn * conn ;\n int encoding ;\n const char * std_strings ;\n int c , ret ;\n int optindex ;\n set_pglocale_pgservice ( argv [ 0 ] , PG_TEXTDOMAIN ( \"pg_dump\" ) ) ;\n progname = get_progname ( argv [ 0 ] ) ;\n if ( argc > 1 ) {\n if ( strcmp ( argv [ 1 ] , \"--help\" ) == 0 || strcmp ( argv [ 1 ] , \"-?\" ) == 0 ) {\n help ( ) ;\n exit_nicely ( 0 ) ;\n }\n if ( strcmp ( argv [ 1 ] , \"--version\" ) == 0 || strcmp ( argv [ 1 ] , \"-V\" ) == 0 ) {\n puts ( \"pg_dumpall (PostgreSQL) \" PG_VERSION ) ;\n exit_nicely ( 0 ) ;\n }\n }\n if ( ( ret = find_other_exec ( argv [ 0 ] , \"pg_dump\" , PGDUMP_VERSIONSTR , pg_dump_bin ) ) < 0 ) {\n char full_path [ MAXPGPATH ] ;\n if ( find_my_exec ( argv [ 0 ] , full_path ) < 0 ) strlcpy ( full_path , progname , sizeof ( full_path ) ) ;\n if ( ret == - 1 ) fprintf ( stderr , _ ( \"The program \\\"pg_dump\\\" is needed by %s \" \"but was not found in the\\n\" \"same directory as \\\"%s\\\".\\n\" \"Check your installation.\\n\" ) , progname , full_path ) ;\n else fprintf ( stderr , _ ( \"The program \\\"pg_dump\\\" was found by \\\"%s\\\"\\n\" \"but was not the same version as %s.\\n\" \"Check your installation.\\n\" ) , full_path , progname ) ;\n exit_nicely ( 1 ) ;\n }\n pgdumpopts = createPQExpBuffer ( ) ;\n while ( ( c = getopt_long ( argc , argv , \"acd:f:gh:l:oOp:rsS:tU:vwWx\" , long_options , & optindex ) ) != - 1 ) {\n switch ( c ) {\n case 'a' : data_only = true ;\n appendPQExpBufferStr ( pgdumpopts , \" -a\" ) ;\n break ;\n case 'c' : output_clean = true ;\n break ;\n case 'd' : connstr = pg_strdup ( optarg ) ;\n break ;\n case 'f' : filename = pg_strdup ( optarg ) ;\n appendPQExpBufferStr ( pgdumpopts , \" -f \" ) ;\n appendShellString ( pgdumpopts , filename ) ;\n break ;\n case 'g' : globals_only = true ;\n break ;\n case 'h' : pghost = pg_strdup ( optarg ) ;\n break ;\n case 'l' : pgdb = pg_strdup ( optarg ) ;\n break ;\n case 'o' : appendPQExpBufferStr ( pgdumpopts , \" -o\" ) ;\n break ;\n case 'O' : appendPQExpBufferStr ( pgdumpopts , \" -O\" ) ;\n break ;\n case 'p' : pgport = pg_strdup ( optarg ) ;\n break ;\n case 'r' : roles_only = true ;\n break ;\n case 's' : appendPQExpBufferStr ( pgdumpopts , \" -s\" ) ;\n break ;\n case 'S' : appendPQExpBufferStr ( pgdumpopts , \" -S \" ) ;\n appendShellString ( pgdumpopts , optarg ) ;\n break ;\n case 't' : tablespaces_only = true ;\n break ;\n case 'U' : pguser = pg_strdup ( optarg ) ;\n break ;\n case 'v' : verbose = true ;\n appendPQExpBufferStr ( pgdumpopts , \" -v\" ) ;\n break ;\n case 'w' : prompt_password = TRI_NO ;\n appendPQExpBufferStr ( pgdumpopts , \" -w\" ) ;\n break ;\n case 'W' : prompt_password = TRI_YES ;\n appendPQExpBufferStr ( pgdumpopts , \" -W\" ) ;\n break ;\n case 'x' : skip_acls = true ;\n appendPQExpBufferStr ( pgdumpopts , \" -x\" ) ;\n break ;\n case 0 : break ;\n case 2 : appendPQExpBufferStr ( pgdumpopts , \" --lock-wait-timeout \" ) ;\n appendShellString ( pgdumpopts , optarg ) ;\n break ;\n case 3 : use_role = pg_strdup ( optarg ) ;\n appendPQExpBufferStr ( pgdumpopts , \" --role \" ) ;\n appendShellString ( pgdumpopts , use_role ) ;\n break ;\n default : fprintf ( stderr , _ ( \"Try \\\"%s --help\\\" for more information.\\n\" ) , progname ) ;\n exit_nicely ( 1 ) ;\n }\n }\n if ( optind < argc ) {\n fprintf ( stderr , _ ( \"%s: too many command-line arguments (first is \\\"%s\\\")\\n\" ) , progname , argv [ optind ] ) ;\n fprintf ( stderr , _ ( \"Try \\\"%s --help\\\" for more information.\\n\" ) , progname ) ;\n exit_nicely ( 1 ) ;\n }\n if ( globals_only && roles_only ) {\n fprintf ( stderr , _ ( \"%s: options -g/--globals-only and -r/--roles-only cannot be used together\\n\" ) , progname ) ;\n fprintf ( stderr , _ ( \"Try \\\"%s --help\\\" for more information.\\n\" ) , progname ) ;\n exit_nicely ( 1 ) ;\n }\n if ( globals_only && tablespaces_only ) {\n fprintf ( stderr , _ ( \"%s: options -g/--globals-only and -t/--tablespaces-only cannot be used together\\n\" ) , progname ) ;\n fprintf ( stderr , _ ( \"Try \\\"%s --help\\\" for more information.\\n\" ) , progname ) ;\n exit_nicely ( 1 ) ;\n }\n if ( if_exists && ! output_clean ) {\n fprintf ( stderr , _ ( \"%s: option --if-exists requires option -c/--clean\\n\" ) , progname ) ;\n exit_nicely ( 1 ) ;\n }\n if ( roles_only && tablespaces_only ) {\n fprintf ( stderr , _ ( \"%s: options -r/--roles-only and -t/--tablespaces-only cannot be used together\\n\" ) , progname ) ;\n fprintf ( stderr , _ ( \"Try \\\"%s --help\\\" for more information.\\n\" ) , progname ) ;\n exit_nicely ( 1 ) ;\n }\n if ( binary_upgrade ) appendPQExpBufferStr ( pgdumpopts , \" --binary-upgrade\" ) ;\n if ( column_inserts ) appendPQExpBufferStr ( pgdumpopts , \" --column-inserts\" ) ;\n if ( disable_dollar_quoting ) appendPQExpBufferStr ( pgdumpopts , \" --disable-dollar-quoting\" ) ;\n if ( disable_triggers ) appendPQExpBufferStr ( pgdumpopts , \" --disable-triggers\" ) ;\n if ( inserts ) appendPQExpBufferStr ( pgdumpopts , \" --inserts\" ) ;\n if ( no_tablespaces ) appendPQExpBufferStr ( pgdumpopts , \" --no-tablespaces\" ) ;\n if ( quote_all_identifiers ) appendPQExpBufferStr ( pgdumpopts , \" --quote-all-identifiers\" ) ;\n if ( use_setsessauth ) appendPQExpBufferStr ( pgdumpopts , \" --use-set-session-authorization\" ) ;\n if ( no_security_labels ) appendPQExpBufferStr ( pgdumpopts , \" --no-security-labels\" ) ;\n if ( no_unlogged_table_data ) appendPQExpBufferStr ( pgdumpopts , \" --no-unlogged-table-data\" ) ;\n if ( pgdb ) {\n conn = connectDatabase ( pgdb , connstr , pghost , pgport , pguser , prompt_password , false ) ;\n if ( ! conn ) {\n fprintf ( stderr , _ ( \"%s: could not connect to database \\\"%s\\\"\\n\" ) , progname , pgdb ) ;\n exit_nicely ( 1 ) ;\n }\n }\n else {\n conn = connectDatabase ( \"postgres\" , connstr , pghost , pgport , pguser , prompt_password , false ) ;\n if ( ! conn ) conn = connectDatabase ( \"template1\" , connstr , pghost , pgport , pguser , prompt_password , true ) ;\n if ( ! conn ) {\n fprintf ( stderr , _ ( \"%s: could not connect to databases \\\"postgres\\\" or \\\"template1\\\"\\n\" \"Please specify an alternative database.\\n\" ) , progname ) ;\n fprintf ( stderr , _ ( \"Try \\\"%s --help\\\" for more information.\\n\" ) , progname ) ;\n exit_nicely ( 1 ) ;\n }\n }\n if ( filename ) {\n OPF = fopen ( filename , PG_BINARY_W ) ;\n if ( ! OPF ) {\n fprintf ( stderr , _ ( \"%s: could not open the output file \\\"%s\\\": %s\\n\" ) , progname , filename , strerror ( errno ) ) ;\n exit_nicely ( 1 ) ;\n }\n }\n else OPF = stdout ;\n encoding = PQclientEncoding ( conn ) ;\n std_strings = PQparameterStatus ( conn , \"standard_conforming_strings\" ) ;\n if ( ! std_strings ) std_strings = \"off\" ;\n if ( use_role && server_version >= 80100 ) {\n PQExpBuffer query = createPQExpBuffer ( ) ;\n appendPQExpBuffer ( query , \"SET ROLE %s\" , fmtId ( use_role ) ) ;\n executeCommand ( conn , query -> data ) ;\n destroyPQExpBuffer ( query ) ;\n }\n if ( quote_all_identifiers && server_version >= 90100 ) executeCommand ( conn , \"SET quote_all_identifiers = true\" ) ;\n fprintf ( OPF , \"--\\n-- PostgreSQL database cluster dump\\n--\\n\\n\" ) ;\n if ( verbose ) dumpTimestamp ( \"Started on\" ) ;\n fprintf ( OPF , \"SET default_transaction_read_only = off;\n\\n\\n\" ) ;\n fprintf ( OPF , \"SET client_encoding = '%s';\n\\n\" , pg_encoding_to_char ( encoding ) ) ;\n fprintf ( OPF , \"SET standard_conforming_strings = %s;\n\\n\" , std_strings ) ;\n if ( strcmp ( std_strings , \"off\" ) == 0 ) fprintf ( OPF , \"SET escape_string_warning = off;\n\\n\" ) ;\n fprintf ( OPF , \"\\n\" ) ;\n if ( ! data_only ) {\n if ( output_clean ) {\n if ( ! globals_only && ! roles_only && ! tablespaces_only ) dropDBs ( conn ) ;\n if ( ! roles_only && ! no_tablespaces ) {\n if ( server_version >= 80000 ) dropTablespaces ( conn ) ;\n }\n if ( ! tablespaces_only ) dropRoles ( conn ) ;\n }\n if ( ! tablespaces_only ) {\n dumpRoles ( conn ) ;\n if ( server_version >= 80100 ) dumpRoleMembership ( conn ) ;\n else dumpGroups ( conn ) ;\n }\n if ( ! roles_only && ! no_tablespaces ) {\n if ( server_version >= 80000 ) dumpTablespaces ( conn ) ;\n }\n if ( binary_upgrade || ( ! globals_only && ! roles_only && ! tablespaces_only ) ) dumpCreateDB ( conn ) ;\n if ( ! tablespaces_only && ! roles_only ) {\n if ( server_version >= 90000 ) dumpDbRoleConfig ( conn ) ;\n }\n }\n if ( ! globals_only && ! roles_only && ! tablespaces_only ) dumpDatabases ( conn ) ;\n PQfinish ( conn ) ;\n if ( verbose ) dumpTimestamp ( \"Completed on\" ) ;\n fprintf ( OPF , \"--\\n-- PostgreSQL database cluster dump complete\\n--\\n\\n\" ) ;\n if ( filename ) fclose ( OPF ) ;\n exit_nicely ( 0 ) ;\n }"}
{"idx": 5746, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog )"}
{"idx": 5747, "target": 0, "func": "static inline void e1000e_intrmgr_stop_delay_timers ( E1000ECore * core ) {\n e1000e_intrmgr_stop_timer ( & core -> radv ) ;\n e1000e_intrmgr_stop_timer ( & core -> rdtr ) ;\n e1000e_intrmgr_stop_timer ( & core -> raid ) ;\n e1000e_intrmgr_stop_timer ( & core -> tidv ) ;\n e1000e_intrmgr_stop_timer ( & core -> tadv ) ;\n }"}
{"idx": 5748, "target": 0, "func": "int remoteSerializeReplyError ( struct qemud_client * client , remote_error * rerr , remote_message_header * req ) {\n return remoteSerializeError ( client , rerr , req -> prog , req -> vers , req -> proc , req -> type == REMOTE_STREAM ? REMOTE_STREAM : REMOTE_REPLY , req -> serial ) ;\n }"}
{"idx": 5749, "target": 0, "func": "static gboolean do_run_simple_dialog ( gpointer _data ) {\n RunSimpleDialogData * data = _data ;\n const char * button_title ;\n GtkWidget * dialog ;\n int result ;\n int response_id ;\n g_mutex_lock ( & data -> mutex ) ;\n dialog = gtk_message_dialog_new ( * data -> parent_window , 0 , data -> message_type , GTK_BUTTONS_NONE , NULL ) ;\n g_object_set ( dialog , \"text\" , data -> primary_text , \"secondary-text\" , data -> secondary_text , NULL ) ;\n for ( response_id = 0 ;\n data -> button_titles [ response_id ] != NULL ;\n response_id ++ ) {\n button_title = data -> button_titles [ response_id ] ;\n if ( ! data -> show_all && is_all_button_text ( button_title ) ) {\n continue ;\n }\n gtk_dialog_add_button ( GTK_DIALOG ( dialog ) , button_title , response_id ) ;\n gtk_dialog_set_default_response ( GTK_DIALOG ( dialog ) , response_id ) ;\n }\n if ( data -> details_text ) {\n eel_gtk_message_dialog_set_details_label ( GTK_MESSAGE_DIALOG ( dialog ) , data -> details_text ) ;\n }\n result = gtk_dialog_run ( GTK_DIALOG ( dialog ) ) ;\n while ( ( result == GTK_RESPONSE_NONE || result == GTK_RESPONSE_DELETE_EVENT ) && data -> ignore_close_box ) {\n result = gtk_dialog_run ( GTK_DIALOG ( dialog ) ) ;\n }\n gtk_widget_destroy ( dialog ) ;\n data -> result = result ;\n data -> completed = TRUE ;\n g_cond_signal ( & data -> cond ) ;\n g_mutex_unlock ( & data -> mutex ) ;\n return FALSE ;\n }"}
{"idx": 5750, "target": 0, "func": "static YV12_BUFFER_CONFIG * get_vp9_ref_frame_buffer ( VP9_COMP * cpi , VP9_REFFRAME ref_frame_flag ) {\n MV_REFERENCE_FRAME ref_frame = NONE ;\n if ( ref_frame_flag == VP9_LAST_FLAG ) ref_frame = LAST_FRAME ;\n else if ( ref_frame_flag == VP9_GOLD_FLAG ) ref_frame = GOLDEN_FRAME ;\n else if ( ref_frame_flag == VP9_ALT_FLAG ) ref_frame = ALTREF_FRAME ;\n return ref_frame == NONE ? NULL : get_ref_frame_buffer ( cpi , ref_frame ) ;\n }"}
{"idx": 5751, "target": 0, "func": "int mime_hdr_print ( HdrHeap * , MIMEHdrImpl * mh , char * buf_start , int buf_length , int * buf_index_inout , int * buf_chars_to_skip_inout ) {\n MIMEFieldBlockImpl * fblock ;\n MIMEField * field ;\n uint32_t index ;\n # define SIMPLE_MIME_HDR_PRINT # ifdef SIMPLE_MIME_HDR_PRINT for ( fblock = & ( mh -> m_first_fblock ) ;\n fblock != nullptr ;\n fblock = fblock -> m_next ) {\n for ( index = 0 ;\n index < fblock -> m_freetop ;\n index ++ ) {\n field = & ( fblock -> m_field_slots [ index ] ) ;\n if ( field -> is_live ( ) ) {\n if ( ! mime_field_print ( field , buf_start , buf_length , buf_index_inout , buf_chars_to_skip_inout ) ) {\n return 0 ;\n }\n }\n }\n }\n # else for ( fblock = & ( mh -> m_first_fblock ) ;\n fblock != NULL ;\n fblock = fblock -> m_next ) {\n const char * contig_start = NULL ;\n int this_length , contig_length = 0 ;\n for ( index = 0 ;\n index < fblock -> m_freetop ;\n index ++ ) {\n field = & ( fblock -> m_field_slots [ index ] ) ;\n this_length = field -> m_len_name + field -> m_len_value + field -> m_n_v_raw_printable_pad ;\n if ( field -> is_live ( ) ) {\n if ( ( field -> m_ptr_name == contig_start + contig_length ) && field -> m_n_v_raw_printable && ( ( buf_index_inout == NULL ) || ( contig_length + this_length <= buf_length - * buf_index_inout ) ) ) {\n contig_length += this_length ;\n }\n else {\n if ( contig_length > 0 ) {\n if ( ! mime_mem_print ( contig_start , contig_length , buf_start , buf_length , buf_index_inout , buf_chars_to_skip_inout ) ) return 0 ;\n }\n contig_start = field -> m_ptr_name ;\n contig_length = this_length ;\n }\n }\n }\n if ( contig_length > 0 ) {\n if ( ! mime_mem_print ( contig_start , contig_length , buf_start , buf_length , buf_index_inout , buf_chars_to_skip_inout ) ) return 0 ;\n }\n }\n # endif if ( ! mime_mem_print ( \"\\r\\n\" , 2 , buf_start , buf_length , buf_index_inout , buf_chars_to_skip_inout ) ) {\n return 0 ;\n }\n return 1 ;\n }"}
{"idx": 5752, "target": 0, "func": "static int next_code ( struct archive_read_filter * self ) {\n struct private_data * state = ( struct private_data * ) self -> data ;\n int code , newcode ;\n static int debug_buff [ 1024 ] ;\n static unsigned debug_index ;\n code = newcode = getbits ( self , state -> bits ) ;\n if ( code < 0 ) return ( code ) ;\n debug_buff [ debug_index ++ ] = code ;\n if ( debug_index >= sizeof ( debug_buff ) / sizeof ( debug_buff [ 0 ] ) ) debug_index = 0 ;\n if ( ( code == 256 ) && state -> use_reset_code ) {\n int skip_bytes = state -> bits - ( state -> bytes_in_section % state -> bits ) ;\n skip_bytes %= state -> bits ;\n state -> bits_avail = 0 ;\n while ( skip_bytes -- > 0 ) {\n code = getbits ( self , 8 ) ;\n if ( code < 0 ) return ( code ) ;\n }\n state -> bytes_in_section = 0 ;\n state -> bits = 9 ;\n state -> section_end_code = ( 1 << state -> bits ) - 1 ;\n state -> free_ent = 257 ;\n state -> oldcode = - 1 ;\n return ( next_code ( self ) ) ;\n }\n if ( code > state -> free_ent || ( code == state -> free_ent && state -> oldcode < 0 ) ) {\n archive_set_error ( & ( self -> archive -> archive ) , - 1 , \"Invalid compressed data\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n if ( code >= state -> free_ent ) {\n * state -> stackp ++ = state -> finbyte ;\n code = state -> oldcode ;\n }\n while ( code >= 256 ) {\n * state -> stackp ++ = state -> suffix [ code ] ;\n code = state -> prefix [ code ] ;\n }\n * state -> stackp ++ = state -> finbyte = code ;\n code = state -> free_ent ;\n if ( code < state -> maxcode && state -> oldcode >= 0 ) {\n state -> prefix [ code ] = state -> oldcode ;\n state -> suffix [ code ] = state -> finbyte ;\n ++ state -> free_ent ;\n }\n if ( state -> free_ent > state -> section_end_code ) {\n state -> bits ++ ;\n state -> bytes_in_section = 0 ;\n if ( state -> bits == state -> maxcode_bits ) state -> section_end_code = state -> maxcode ;\n else state -> section_end_code = ( 1 << state -> bits ) - 1 ;\n }\n state -> oldcode = newcode ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 5753, "target": 0, "func": "void jpc_ns_invlift_row ( jpc_fix_t * a , int numcols , int parity ) {\n register jpc_fix_t * lptr ;\n register jpc_fix_t * hptr ;\n register int n ;\n int llen ;\n llen = ( numcols + 1 - parity ) >> 1 ;\n if ( numcols > 1 ) {\n # if defined ( WT_DOSCALE ) lptr = & a [ 0 ] ;\n n = llen ;\n while ( n -- > 0 ) {\n lptr [ 0 ] = jpc_fix_mul ( lptr [ 0 ] , jpc_dbltofix ( 1.0 / LGAIN ) ) ;\n ++ lptr ;\n }\n hptr = & a [ llen ] ;\n n = numcols - llen ;\n while ( n -- > 0 ) {\n hptr [ 0 ] = jpc_fix_mul ( hptr [ 0 ] , jpc_dbltofix ( 1.0 / HGAIN ) ) ;\n ++ hptr ;\n }\n # endif lptr = & a [ 0 ] ;\n hptr = & a [ llen ] ;\n if ( ! parity ) {\n jpc_fix_minuseq ( lptr [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * DELTA ) , hptr [ 0 ] ) ) ;\n ++ lptr ;\n }\n n = llen - ( ! parity ) - ( parity != ( numcols & 1 ) ) ;\n while ( n -- > 0 ) {\n jpc_fix_minuseq ( lptr [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( DELTA ) , jpc_fix_add ( hptr [ 0 ] , hptr [ 1 ] ) ) ) ;\n ++ lptr ;\n ++ hptr ;\n }\n if ( parity != ( numcols & 1 ) ) {\n jpc_fix_minuseq ( lptr [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * DELTA ) , hptr [ 0 ] ) ) ;\n }\n lptr = & a [ 0 ] ;\n hptr = & a [ llen ] ;\n if ( parity ) {\n jpc_fix_minuseq ( hptr [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * GAMMA ) , lptr [ 0 ] ) ) ;\n ++ hptr ;\n }\n n = numcols - llen - parity - ( parity == ( numcols & 1 ) ) ;\n while ( n -- > 0 ) {\n jpc_fix_minuseq ( hptr [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( GAMMA ) , jpc_fix_add ( lptr [ 0 ] , lptr [ 1 ] ) ) ) ;\n ++ hptr ;\n ++ lptr ;\n }\n if ( parity == ( numcols & 1 ) ) {\n jpc_fix_minuseq ( hptr [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * GAMMA ) , lptr [ 0 ] ) ) ;\n }\n lptr = & a [ 0 ] ;\n hptr = & a [ llen ] ;\n if ( ! parity ) {\n jpc_fix_minuseq ( lptr [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * BETA ) , hptr [ 0 ] ) ) ;\n ++ lptr ;\n }\n n = llen - ( ! parity ) - ( parity != ( numcols & 1 ) ) ;\n while ( n -- > 0 ) {\n jpc_fix_minuseq ( lptr [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( BETA ) , jpc_fix_add ( hptr [ 0 ] , hptr [ 1 ] ) ) ) ;\n ++ lptr ;\n ++ hptr ;\n }\n if ( parity != ( numcols & 1 ) ) {\n jpc_fix_minuseq ( lptr [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * BETA ) , hptr [ 0 ] ) ) ;\n }\n lptr = & a [ 0 ] ;\n hptr = & a [ llen ] ;\n if ( parity ) {\n jpc_fix_minuseq ( hptr [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * ALPHA ) , lptr [ 0 ] ) ) ;\n ++ hptr ;\n }\n n = numcols - llen - parity - ( parity == ( numcols & 1 ) ) ;\n while ( n -- > 0 ) {\n jpc_fix_minuseq ( hptr [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( ALPHA ) , jpc_fix_add ( lptr [ 0 ] , lptr [ 1 ] ) ) ) ;\n ++ hptr ;\n ++ lptr ;\n }\n if ( parity == ( numcols & 1 ) ) {\n jpc_fix_minuseq ( hptr [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * ALPHA ) , lptr [ 0 ] ) ) ;\n }\n }\n else {\n # if defined ( WT_LENONE ) if ( parity ) {\n lptr = & a [ 0 ] ;\n lptr [ 0 ] = jpc_fix_asr ( lptr [ 0 ] , 1 ) ;\n }\n # endif }\n }"}
{"idx": 5754, "target": 0, "func": "void hb_face_set_index ( hb_face_t * face , unsigned int index ) {\n if ( face -> immutable ) return ;\n face -> index = index ;\n }"}
{"idx": 5755, "target": 0, "func": "static void openpic_gbl_write ( void * opaque , hwaddr addr , uint64_t val , unsigned len ) {\n OpenPICState * opp = opaque ;\n IRQDest * dst ;\n int idx ;\n DPRINTF ( \"%s: addr %#\" HWADDR_PRIx \" <= %08\" PRIx64 \"\\n\" , __func__ , addr , val ) ;\n if ( addr & 0xF ) {\n return ;\n }\n switch ( addr ) {\n case 0x00 : break ;\n case 0x40 : case 0x50 : case 0x60 : case 0x70 : case 0x80 : case 0x90 : case 0xA0 : case 0xB0 : openpic_cpu_write_internal ( opp , addr , val , get_current_cpu ( ) ) ;\n break ;\n case 0x1000 : break ;\n case 0x1020 : openpic_gcr_write ( opp , val ) ;\n break ;\n case 0x1080 : break ;\n case 0x1090 : for ( idx = 0 ;\n idx < opp -> nb_cpus ;\n idx ++ ) {\n if ( ( val & ( 1 << idx ) ) && ! ( opp -> pir & ( 1 << idx ) ) ) {\n DPRINTF ( \"Raise OpenPIC RESET output for CPU %d\\n\" , idx ) ;\n dst = & opp -> dst [ idx ] ;\n qemu_irq_raise ( dst -> irqs [ OPENPIC_OUTPUT_RESET ] ) ;\n }\n else if ( ! ( val & ( 1 << idx ) ) && ( opp -> pir & ( 1 << idx ) ) ) {\n DPRINTF ( \"Lower OpenPIC RESET output for CPU %d\\n\" , idx ) ;\n dst = & opp -> dst [ idx ] ;\n qemu_irq_lower ( dst -> irqs [ OPENPIC_OUTPUT_RESET ] ) ;\n }\n }\n opp -> pir = val ;\n break ;\n case 0x10A0 : case 0x10B0 : case 0x10C0 : case 0x10D0 : {\n int idx ;\n idx = ( addr - 0x10A0 ) >> 4 ;\n write_IRQreg_ivpr ( opp , opp -> irq_ipi0 + idx , val ) ;\n }\n break ;\n case 0x10E0 : opp -> spve = val & opp -> vector_mask ;\n break ;\n default : break ;\n }\n }"}
{"idx": 5756, "target": 0, "func": "static cmsBool SaveOneChromaticity ( cmsFloat64Number x , cmsFloat64Number y , cmsIOHANDLER * io ) {\n if ( ! _cmsWriteUInt32Number ( io , _cmsDoubleTo15Fixed16 ( x ) ) ) return FALSE ;\n if ( ! _cmsWriteUInt32Number ( io , _cmsDoubleTo15Fixed16 ( y ) ) ) return FALSE ;\n return TRUE ;\n }"}
{"idx": 5757, "target": 0, "func": "static u_short count_var ( const struct ctl_var * k ) {\n u_int c ;\n if ( NULL == k ) return 0 ;\n c = 0 ;\n while ( ! ( EOV & ( k ++ ) -> flags ) ) c ++ ;\n ENSURE ( c <= USHRT_MAX ) ;\n return ( u_short ) c ;\n }"}
{"idx": 5758, "target": 0, "func": "char * Curl_checkProxyheaders ( const struct connectdata * conn , const char * thisheader ) {\n struct curl_slist * head ;\n size_t thislen = strlen ( thisheader ) ;\n struct Curl_easy * data = conn -> data ;\n for ( head = ( conn -> bits . proxy && data -> set . sep_headers ) ? data -> set . proxyheaders : data -> set . headers ;\n head ;\n head = head -> next ) {\n if ( Curl_raw_nequal ( head -> data , thisheader , thislen ) ) return head -> data ;\n }\n return NULL ;\n }"}
{"idx": 5759, "target": 0, "func": "static void print_primaries ( WriterContext * w , enum AVColorPrimaries color_primaries ) {\n const char * val = av_color_primaries_name ( color_primaries ) ;\n if ( ! val || color_primaries == AVCOL_PRI_UNSPECIFIED ) {\n print_str_opt ( \"color_primaries\" , \"unknown\" ) ;\n }\n else {\n print_str ( \"color_primaries\" , val ) ;\n }\n }"}
{"idx": 5760, "target": 0, "func": "static int DecoderGetInputAttachments ( decoder_t * p_dec , input_attachment_t * * * ppp_attachment , int * pi_attachment ) {\n input_thread_t * p_input = p_dec -> p_owner -> p_input ;\n if ( unlikely ( p_input == NULL ) ) return VLC_ENOOBJ ;\n return input_Control ( p_input , INPUT_GET_ATTACHMENTS , ppp_attachment , pi_attachment ) ;\n }"}
{"idx": 5761, "target": 0, "func": "static void show_string ( fz_context * ctx , pdf_run_processor * pr , unsigned char * buf , int len ) {\n pdf_gstate * gstate = pr -> gstate + pr -> gtop ;\n pdf_font_desc * fontdesc = gstate -> text . font ;\n unsigned char * end = buf + len ;\n unsigned int cpt ;\n int cid ;\n while ( buf < end ) {\n int w = pdf_decode_cmap ( fontdesc -> encoding , buf , end , & cpt ) ;\n buf += w ;\n cid = pdf_lookup_cmap ( fontdesc -> encoding , cpt ) ;\n if ( cid >= 0 ) pdf_show_char ( ctx , pr , cid ) ;\n else fz_warn ( ctx , \"cannot encode character\" ) ;\n if ( cpt == 32 && w == 1 ) pdf_show_space ( ctx , pr , gstate -> text . word_space ) ;\n }\n }"}
{"idx": 5762, "target": 0, "func": "static size_t pdf_xobject_size ( pdf_xobject * xobj ) {\n if ( xobj == NULL ) return 0 ;\n return sizeof ( * xobj ) ;\n }"}
{"idx": 5763, "target": 0, "func": "const char * nntohost_col ( sockaddr_u * addr , size_t width , int preserve_lowaddrbits ) {\n const char * out ;\n if ( ! showhostnames || SOCK_UNSPEC ( addr ) ) {\n if ( preserve_lowaddrbits ) out = trunc_left ( stoa ( addr ) , width ) ;\n else out = trunc_right ( stoa ( addr ) , width ) ;\n }\n else if ( ISREFCLOCKADR ( addr ) ) {\n out = refnumtoa ( addr ) ;\n }\n else {\n out = trunc_right ( socktohost ( addr ) , width ) ;\n }\n return out ;\n }"}
{"idx": 5764, "target": 0, "func": "static int selinux_secid_to_secctx ( u32 secid , char * * secdata , u32 * seclen ) {\n return security_sid_to_context ( secid , secdata , seclen ) ;\n }"}
{"idx": 5765, "target": 0, "func": "int encode_msg ( struct sip_msg * msg , char * payload , int len ) {\n int i , j , k , u , request ;\n unsigned short int h ;\n struct hdr_field * hf ;\n struct msg_start * ms ;\n struct sip_uri miuri ;\n char * myerror = NULL ;\n ptrdiff_t diff ;\n if ( len < MAX_ENCODED_MSG + MAX_MESSAGE_LEN ) return - 1 ;\n if ( parse_headers ( msg , HDR_EOH_F , 0 ) < 0 ) {\n myerror = \"in parse_headers\" ;\n goto error ;\n }\n memset ( payload , 0 , len ) ;\n ms = & msg -> first_line ;\n if ( ms -> type == SIP_REQUEST ) request = 1 ;\n else if ( ms -> type == SIP_REPLY ) request = 0 ;\n else {\n myerror = \"message is neither request nor response\" ;\n goto error ;\n }\n if ( request ) {\n for ( h = 0 ;\n h < 32 ;\n j = ( 0x01 << h ) , h ++ ) if ( j & ms -> u . request . method_value ) break ;\n }\n else {\n h = ( unsigned short ) ( ms -> u . reply . statuscode ) ;\n }\n if ( h == 32 ) {\n myerror = \"unknown message type\\n\" ;\n goto error ;\n }\n h = htons ( h ) ;\n memcpy ( payload , & h , 2 ) ;\n h = htons ( ( unsigned short int ) msg -> len ) ;\n memcpy ( & payload [ MSG_LEN_IDX ] , & h , 2 ) ;\n if ( 0 > ( diff = ( get_body ( msg ) - ( msg -> buf ) ) ) ) {\n myerror = \"body starts before the message (uh ?)\" ;\n goto error ;\n }\n else h = htons ( ( unsigned short int ) diff ) ;\n memcpy ( payload + CONTENT_IDX , & h , 2 ) ;\n payload [ METHOD_CODE_IDX ] = ( unsigned char ) ( request ? ( ms -> u . request . method . s - msg -> buf ) : ( ms -> u . reply . status . s - msg -> buf ) ) ;\n payload [ METHOD_CODE_IDX + 1 ] = ( unsigned char ) ( request ? ( ms -> u . request . method . len ) : ( ms -> u . reply . status . len ) ) ;\n payload [ URI_REASON_IDX ] = ( unsigned char ) ( request ? ( ms -> u . request . uri . s - msg -> buf ) : ( ms -> u . reply . reason . s - msg -> buf ) ) ;\n payload [ URI_REASON_IDX + 1 ] = ( unsigned char ) ( request ? ( ms -> u . request . uri . len ) : ( ms -> u . reply . reason . len ) ) ;\n payload [ VERSION_IDX ] = ( unsigned char ) ( request ? ( ms -> u . request . version . s - msg -> buf ) : ( ms -> u . reply . version . s - msg -> buf ) ) ;\n if ( request ) {\n if ( parse_uri ( ms -> u . request . uri . s , ms -> u . request . uri . len , & miuri ) < 0 ) {\n LM_ERR ( \"<%.*s>\\n\" , ms -> u . request . uri . len , ms -> u . request . uri . s ) ;\n myerror = \"while parsing the R-URI\" ;\n goto error ;\n }\n if ( 0 > ( j = encode_uri2 ( msg -> buf , ms -> u . request . method . s - msg -> buf + ms -> len , ms -> u . request . uri , & miuri , ( unsigned char * ) & payload [ REQUEST_URI_IDX + 1 ] ) ) ) {\n myerror = \"ENCODE_MSG: ERROR while encoding the R-URI\" ;\n goto error ;\n }\n payload [ REQUEST_URI_IDX ] = ( unsigned char ) j ;\n k = REQUEST_URI_IDX + 1 + j ;\n }\n else k = REQUEST_URI_IDX ;\n u = k ;\n k ++ ;\n for ( i = 0 , hf = msg -> headers ;\n hf ;\n hf = hf -> next , i ++ ) ;\n i ++ ;\n j = k + 3 * i ;\n for ( i = 0 , hf = msg -> headers ;\n hf ;\n hf = hf -> next , k += 3 ) {\n payload [ k ] = ( unsigned char ) ( hf -> type & 0xFF ) ;\n h = htons ( j ) ;\n memcpy ( & payload [ k + 1 ] , & h , 2 ) ;\n if ( 0 > ( i = encode_header ( msg , hf , ( unsigned char * ) ( payload + j ) , MAX_ENCODED_MSG + MAX_MESSAGE_LEN - j ) ) ) {\n LM_ERR ( \"encoding header %.*s\\n\" , hf -> name . len , hf -> name . s ) ;\n goto error ;\n k -= 3 ;\n continue ;\n }\n j += ( unsigned short int ) i ;\n }\n payload [ u ] = ( unsigned char ) ( ( k - u - 1 ) / 3 ) ;\n j = htons ( j ) ;\n memcpy ( & payload [ k + 1 ] , & j , 2 ) ;\n k += 3 ;\n j = ntohs ( j ) ;\n if ( len < j + msg -> len + 1 ) {\n LM_ERR ( \"not enough space to encode sip message\\n\" ) ;\n return - 1 ;\n }\n memcpy ( & payload [ j ] , msg -> buf , msg -> len ) ;\n LM_DBG ( \"msglen = %d,msg starts at %d\\n\" , msg -> len , j ) ;\n j = htons ( j ) ;\n memcpy ( & payload [ MSG_START_IDX ] , & j , 2 ) ;\n return GET_PAY_SIZE ( payload ) ;\n error : LM_ERR ( \"%s\\n\" , myerror ) ;\n return - 1 ;\n }"}
{"idx": 5766, "target": 0, "func": "int qemuAssignDeviceRNGAlias ( virDomainDefPtr def , virDomainRNGDefPtr rng ) {\n size_t i ;\n int maxidx = 0 ;\n int idx ;\n for ( i = 0 ;\n i < def -> nrngs ;\n i ++ ) {\n if ( ( idx = qemuDomainDeviceAliasIndex ( & def -> rngs [ i ] -> info , \"rng\" ) ) >= maxidx ) maxidx = idx + 1 ;\n }\n if ( virAsprintf ( & rng -> info . alias , \"rng%d\" , maxidx ) < 0 ) return - 1 ;\n return 0 ;\n }"}
{"idx": 5767, "target": 0, "func": "static void addFromUTrieEntry ( CnvExtData * extData , UChar32 c , uint32_t value ) {\n int32_t i1 , i2 , i3 , i3b , nextOffset , min , newBlock ;\n if ( value == 0 ) {\n return ;\n }\n i1 = c >> 10 ;\n if ( i1 >= extData -> stage1Top ) {\n extData -> stage1Top = i1 + 1 ;\n }\n nextOffset = ( c >> 4 ) & 0x3f ;\n if ( extData -> stage1 [ i1 ] == 0 ) {\n newBlock = extData -> stage2Top ;\n min = newBlock - nextOffset ;\n while ( min < newBlock && extData -> stage2 [ newBlock - 1 ] == 0 ) {\n -- newBlock ;\n }\n extData -> stage1 [ i1 ] = ( uint16_t ) newBlock ;\n extData -> stage2Top = newBlock + MBCS_STAGE_2_BLOCK_SIZE ;\n if ( extData -> stage2Top > UPRV_LENGTHOF ( extData -> stage2 ) ) {\n fprintf ( stderr , \"error: too many stage 2 entries at U+%04x\\n\" , ( int ) c ) ;\n exit ( U_MEMORY_ALLOCATION_ERROR ) ;\n }\n }\n i2 = extData -> stage1 [ i1 ] + nextOffset ;\n nextOffset = c & 0xf ;\n if ( extData -> stage2 [ i2 ] == 0 ) {\n newBlock = extData -> stage3Top ;\n min = newBlock - nextOffset ;\n while ( min < newBlock && extData -> stage3 [ newBlock - 1 ] == 0 ) {\n -- newBlock ;\n }\n newBlock = ( newBlock + ( UCNV_EXT_STAGE_3_GRANULARITY - 1 ) ) & ~ ( UCNV_EXT_STAGE_3_GRANULARITY - 1 ) ;\n extData -> stage2 [ i2 ] = ( uint16_t ) ( newBlock >> UCNV_EXT_STAGE_2_LEFT_SHIFT ) ;\n extData -> stage3Top = newBlock + MBCS_STAGE_3_BLOCK_SIZE ;\n if ( extData -> stage3Top > UPRV_LENGTHOF ( extData -> stage3 ) ) {\n fprintf ( stderr , \"error: too many stage 3 entries at U+%04x\\n\" , ( int ) c ) ;\n exit ( U_MEMORY_ALLOCATION_ERROR ) ;\n }\n }\n i3 = ( ( int32_t ) extData -> stage2 [ i2 ] << UCNV_EXT_STAGE_2_LEFT_SHIFT ) + nextOffset ;\n if ( value == UCNV_EXT_FROM_U_SUBCHAR1 ) {\n extData -> stage3 [ i3 ] = 1 ;\n if ( nextOffset == MBCS_STAGE_3_BLOCK_SIZE - 1 ) {\n for ( min = i3 - nextOffset ;\n min < i3 && extData -> stage3 [ min ] == 1 ;\n ++ min ) {\n }\n if ( min == i3 ) {\n if ( extData -> stage3Sub1Block != 0 ) {\n extData -> stage2 [ i2 ] = extData -> stage3Sub1Block ;\n extData -> stage3Top -= MBCS_STAGE_3_BLOCK_SIZE ;\n uprv_memset ( extData -> stage3 + extData -> stage3Top , 0 , MBCS_STAGE_3_BLOCK_SIZE * 2 ) ;\n }\n else {\n extData -> stage3Sub1Block = extData -> stage2 [ i2 ] ;\n }\n }\n }\n }\n else {\n if ( ( i3b = extData -> stage3bTop ++ ) >= UPRV_LENGTHOF ( extData -> stage3b ) ) {\n fprintf ( stderr , \"error: too many stage 3b entries at U+%04x\\n\" , ( int ) c ) ;\n exit ( U_MEMORY_ALLOCATION_ERROR ) ;\n }\n extData -> stage3 [ i3 ] = ( uint16_t ) i3b ;\n extData -> stage3b [ i3b ] = value ;\n }\n }"}
{"idx": 5768, "target": 1, "func": "int parse_CRangeCategSpec ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree , const char * fmt , ... ) {\n proto_item * item ;\n proto_tree * tree ;\n va_list ap ;\n unsigned i ;\n const char * txt ;\n guint32 cRange ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CRangeCategSpec , & item , txt ) ;\n offset = parse_lcid ( tvb , offset , tree , \"lcid\" ) ;\n cRange = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_crangecategspec_crange , tvb , offset , 4 , cRange ) ;\n offset += 4 ;\n for ( i = 0 ;\n i < cRange ;\n i ++ ) {\n offset = parse_RANGEBOUNDARY ( tvb , offset , tree , pad_tree , \"aRangeBegin[%u]\" , i ) ;\n }\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 5769, "target": 0, "func": "inline static void _slurm_rpc_get_topo ( slurm_msg_t * msg ) {\n topo_info_response_msg_t * topo_resp_msg ;\n slurm_msg_t response_msg ;\n int i ;\n slurmctld_lock_t node_read_lock = {\n NO_LOCK , NO_LOCK , READ_LOCK , NO_LOCK , NO_LOCK }\n ;\n DEF_TIMERS ;\n START_TIMER ;\n lock_slurmctld ( node_read_lock ) ;\n topo_resp_msg = xmalloc ( sizeof ( topo_info_response_msg_t ) ) ;\n topo_resp_msg -> record_count = switch_record_cnt ;\n topo_resp_msg -> topo_array = xmalloc ( sizeof ( topo_info_t ) * topo_resp_msg -> record_count ) ;\n for ( i = 0 ;\n i < topo_resp_msg -> record_count ;\n i ++ ) {\n topo_resp_msg -> topo_array [ i ] . level = switch_record_table [ i ] . level ;\n topo_resp_msg -> topo_array [ i ] . link_speed = switch_record_table [ i ] . link_speed ;\n topo_resp_msg -> topo_array [ i ] . name = xstrdup ( switch_record_table [ i ] . name ) ;\n topo_resp_msg -> topo_array [ i ] . nodes = xstrdup ( switch_record_table [ i ] . nodes ) ;\n topo_resp_msg -> topo_array [ i ] . switches = xstrdup ( switch_record_table [ i ] . switches ) ;\n }\n unlock_slurmctld ( node_read_lock ) ;\n END_TIMER2 ( \"_slurm_rpc_get_topo\" ) ;\n slurm_msg_t_init ( & response_msg ) ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . address = msg -> address ;\n response_msg . conn = msg -> conn ;\n response_msg . msg_type = RESPONSE_TOPO_INFO ;\n response_msg . data = topo_resp_msg ;\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n slurm_free_topo_info_msg ( topo_resp_msg ) ;\n }"}
{"idx": 5770, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ContentFaviconDriverTest , DoNotRemoveMappingIfStopped ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n GURL url = embedded_test_server ( ) -> GetURL ( \"/favicon/slow_page_with_favicon.html\" ) ;\n GURL icon_url = embedded_test_server ( ) -> GetURL ( \"/favicon/icon.png\" ) ;\n GURL default_icon_url = embedded_test_server ( ) -> GetURL ( \"/favicon.ico\" ) ;\n favicon_service ( ) -> SetFavicons ( {\n url }\n , icon_url , favicon_base : : IconType : : kFavicon , gfx : : test : : CreateImage ( 32 , 32 ) ) ;\n ASSERT_NE ( nullptr , GetFaviconForPageURL ( url , favicon_base : : IconType : : kFavicon ) . bitmap_data ) ;\n PageLoadStopper stopper ( web_contents ( ) ) ;\n stopper . StopOnDidFinishNavigation ( ) ;\n PendingTaskWaiter waiter ( web_contents ( ) ) ;\n ui_test_utils : : NavigateToURLWithDisposition ( browser ( ) , url , WindowOpenDisposition : : CURRENT_TAB , ui_test_utils : : BROWSER_TEST_NONE ) ;\n waiter . Wait ( ) ;\n ASSERT_THAT ( stopper . last_favicon_candidates ( ) , ElementsAre ( default_icon_url ) ) ;\n EXPECT_NE ( nullptr , GetFaviconForPageURL ( url , favicon_base : : IconType : : kFavicon ) . bitmap_data ) ;\n }"}
{"idx": 5771, "target": 0, "func": "static void write_header ( FILE * sql_file , char * db_name ) {\n if ( opt_xml ) {\n fputs ( \"<?xml version=\\\"1.0\\\"?>\\n\" , sql_file ) ;\n fputs ( \"<mysqldump \" , sql_file ) ;\n fputs ( \"xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\"\" , sql_file ) ;\n fputs ( \">\\n\" , sql_file ) ;\n check_io ( sql_file ) ;\n }\n else if ( ! opt_compact ) {\n print_comment ( sql_file , 0 , \"-- MySQL dump %s Distrib %s, for %s (%s)\\n--\\n\" , DUMP_VERSION , MYSQL_SERVER_VERSION , SYSTEM_TYPE , MACHINE_TYPE ) ;\n print_comment ( sql_file , 0 , \"-- Host: %s Database: %s\\n\" , fix_for_comment ( current_host ? current_host : \"localhost\" ) , fix_for_comment ( db_name ? db_name : \"\" ) ) ;\n print_comment ( sql_file , 0 , \"-- ------------------------------------------------------\\n\" ) ;\n print_comment ( sql_file , 0 , \"-- Server version\\t%s\\n\" , mysql_get_server_info ( & mysql_connection ) ) ;\n if ( opt_set_charset ) fprintf ( sql_file , \"\\n/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;\n\" \"\\n/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;\n\" \"\\n/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;\n\" \"\\n/*!40101 SET NAMES %s */;\n\\n\" , default_charset ) ;\n if ( opt_tz_utc ) {\n fprintf ( sql_file , \"/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;\n\\n\" ) ;\n fprintf ( sql_file , \"/*!40103 SET TIME_ZONE='+00:00' */;\n\\n\" ) ;\n }\n if ( ! path ) {\n if ( ! opt_no_create_info ) {\n fprintf ( md_result_file , \"\\ /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;\n\\n\" ) ;\n }\n fprintf ( md_result_file , \"\\ /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;\n\\n\\ \" ) ;\n }\n fprintf ( sql_file , \"/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='%s%s%s' */;\n\\n\" \"/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;\n\\n\" , path ? \"\" : \"NO_AUTO_VALUE_ON_ZERO\" , compatible_mode_normal_str [ 0 ] == 0 ? \"\" : \",\" , compatible_mode_normal_str ) ;\n check_io ( sql_file ) ;\n }\n }"}
{"idx": 5772, "target": 0, "func": "static void compress_job_on_completed ( AutoarCompressor * compressor , gpointer user_data ) {\n CompressJob * compress_job = user_data ;\n g_autoptr ( GFile ) destination_directory = NULL ;\n char * status ;\n if ( compress_job -> total_files == 1 ) {\n status = f ( _ ( \"Compressed \u201c%B\u201d into \u201c%B\u201d\" ) , G_FILE ( compress_job -> source_files -> data ) , compress_job -> output_file ) ;\n }\n else {\n status = f ( ngettext ( \"Compressed %'d file into \u201c%B\u201d\" , \"Compressed %'d files into \u201c%B\u201d\" , compress_job -> total_files ) , compress_job -> total_files , compress_job -> output_file ) ;\n }\n nautilus_progress_info_take_status ( compress_job -> common . progress , status ) ;\n nautilus_file_changes_queue_file_added ( compress_job -> output_file ) ;\n destination_directory = g_file_get_parent ( compress_job -> output_file ) ;\n nautilus_progress_info_set_destination ( compress_job -> common . progress , destination_directory ) ;\n }"}
{"idx": 5773, "target": 0, "func": "static int acl_compare ( ACL_ACCESS * a , ACL_ACCESS * b ) {\n if ( a -> sort > b -> sort ) return - 1 ;\n if ( a -> sort < b -> sort ) return 1 ;\n return 0 ;\n }"}
{"idx": 5774, "target": 1, "func": "static const char * cmd_hash_engine ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n if ( dcfg == NULL ) return NULL ;\n if ( strcasecmp ( p1 , \"on\" ) == 0 ) {\n dcfg -> hash_is_enabled = HASH_ENABLED ;\n dcfg -> hash_enforcement = HASH_ENABLED ;\n }\n else if ( strcasecmp ( p1 , \"off\" ) == 0 ) {\n dcfg -> hash_is_enabled = HASH_DISABLED ;\n dcfg -> hash_enforcement = HASH_DISABLED ;\n }\n else return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid value for SecRuleEngine: %s\" , p1 ) ;\n return NULL ;\n }"}
{"idx": 5775, "target": 0, "func": "static void virtio_net_set_link_status ( VLANClientState * nc ) {\n VirtIONet * n = DO_UPCAST ( NICState , nc , nc ) -> opaque ;\n uint16_t old_status = n -> status ;\n if ( nc -> link_down ) n -> status &= ~ VIRTIO_NET_S_LINK_UP ;\n else n -> status |= VIRTIO_NET_S_LINK_UP ;\n if ( n -> status != old_status ) virtio_notify_config ( & n -> vdev ) ;\n virtio_net_set_status ( & n -> vdev , n -> vdev . status ) ;\n }"}
{"idx": 5776, "target": 0, "func": "static void mode_in ( struct cpio * cpio ) {\n struct archive * a ;\n struct archive_entry * entry ;\n struct archive * ext ;\n const char * destpath ;\n int r ;\n ext = archive_write_disk_new ( ) ;\n if ( ext == NULL ) lafe_errc ( 1 , 0 , \"Couldn't allocate restore object\" ) ;\n r = archive_write_disk_set_options ( ext , cpio -> extract_flags ) ;\n if ( r != ARCHIVE_OK ) lafe_errc ( 1 , 0 , \"%s\" , archive_error_string ( ext ) ) ;\n a = archive_read_new ( ) ;\n if ( a == NULL ) lafe_errc ( 1 , 0 , \"Couldn't allocate archive object\" ) ;\n archive_read_support_filter_all ( a ) ;\n archive_read_support_format_all ( a ) ;\n if ( cpio -> passphrase != NULL ) r = archive_read_add_passphrase ( a , cpio -> passphrase ) ;\n else r = archive_read_set_passphrase_callback ( a , cpio , & passphrase_callback ) ;\n if ( r != ARCHIVE_OK ) lafe_errc ( 1 , 0 , \"%s\" , archive_error_string ( a ) ) ;\n if ( archive_read_open_filename ( a , cpio -> filename , cpio -> bytes_per_block ) ) lafe_errc ( 1 , archive_errno ( a ) , \"%s\" , archive_error_string ( a ) ) ;\n for ( ;\n ;\n ) {\n r = archive_read_next_header ( a , & entry ) ;\n if ( r == ARCHIVE_EOF ) break ;\n if ( r != ARCHIVE_OK ) {\n lafe_errc ( 1 , archive_errno ( a ) , \"%s\" , archive_error_string ( a ) ) ;\n }\n if ( archive_match_path_excluded ( cpio -> matching , entry ) ) continue ;\n if ( cpio -> option_rename ) {\n destpath = cpio_rename ( archive_entry_pathname ( entry ) ) ;\n archive_entry_set_pathname ( entry , destpath ) ;\n }\n else destpath = archive_entry_pathname ( entry ) ;\n if ( destpath == NULL ) continue ;\n if ( cpio -> verbose ) fprintf ( stderr , \"%s\\n\" , destpath ) ;\n if ( cpio -> dot ) fprintf ( stderr , \".\" ) ;\n if ( cpio -> uid_override >= 0 ) archive_entry_set_uid ( entry , cpio -> uid_override ) ;\n if ( cpio -> gid_override >= 0 ) archive_entry_set_gid ( entry , cpio -> gid_override ) ;\n r = archive_write_header ( ext , entry ) ;\n if ( r != ARCHIVE_OK ) {\n fprintf ( stderr , \"%s: %s\\n\" , archive_entry_pathname ( entry ) , archive_error_string ( ext ) ) ;\n }\n else if ( ! archive_entry_size_is_set ( entry ) || archive_entry_size ( entry ) > 0 ) {\n r = extract_data ( a , ext ) ;\n if ( r != ARCHIVE_OK ) cpio -> return_value = 1 ;\n }\n }\n r = archive_read_close ( a ) ;\n if ( cpio -> dot ) fprintf ( stderr , \"\\n\" ) ;\n if ( r != ARCHIVE_OK ) lafe_errc ( 1 , 0 , \"%s\" , archive_error_string ( a ) ) ;\n r = archive_write_close ( ext ) ;\n if ( r != ARCHIVE_OK ) lafe_errc ( 1 , 0 , \"%s\" , archive_error_string ( ext ) ) ;\n if ( ! cpio -> quiet ) {\n int64_t blocks = ( archive_filter_bytes ( a , 0 ) + 511 ) / 512 ;\n fprintf ( stderr , \"%lu %s\\n\" , ( unsigned long ) blocks , blocks == 1 ? \"block\" : \"blocks\" ) ;\n }\n archive_read_free ( a ) ;\n archive_write_free ( ext ) ;\n exit ( cpio -> return_value ) ;\n }"}
{"idx": 5777, "target": 0, "func": "void event_queue_remove ( struct event_base * base , struct event * ev , int queue ) {\n if ( ! ( ev -> ev_flags & queue ) ) event_errx ( 1 , \"%s: %p(fd %d) not on queue %x\" , __func__ , ev , ev -> ev_fd , queue ) ;\n if ( ~ ev -> ev_flags & EVLIST_INTERNAL ) base -> event_count -- ;\n ev -> ev_flags &= ~ queue ;\n switch ( queue ) {\n case EVLIST_INSERTED : TAILQ_REMOVE ( & base -> eventqueue , ev , ev_next ) ;\n break ;\n case EVLIST_ACTIVE : base -> event_count_active -- ;\n TAILQ_REMOVE ( base -> activequeues [ ev -> ev_pri ] , ev , ev_active_next ) ;\n break ;\n case EVLIST_TIMEOUT : min_heap_erase ( & base -> timeheap , ev ) ;\n break ;\n default : event_errx ( 1 , \"%s: unknown queue %x\" , __func__ , queue ) ;\n }\n }"}
{"idx": 5778, "target": 0, "func": "static void pdf_run_RG ( fz_context * ctx , pdf_processor * proc , float r , float g , float b ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n float color [ 3 ] = {\n r , g , b }\n ;\n pr -> dev -> flags &= ~ FZ_DEVFLAG_STROKECOLOR_UNDEFINED ;\n pdf_set_colorspace ( ctx , pr , PDF_STROKE , fz_device_rgb ( ctx ) ) ;\n pdf_set_color ( ctx , pr , PDF_STROKE , color ) ;\n }"}
{"idx": 5779, "target": 0, "func": "static gboolean dissect_rtp_heur_udp ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n return dissect_rtp_heur_common ( tvb , pinfo , tree , data , TRUE ) ;\n }"}
{"idx": 5780, "target": 0, "func": "static int decode_frame ( WmallDecodeCtx * s ) {\n GetBitContext * gb = & s -> gb ;\n int more_frames = 0 , len = 0 , i , ret ;\n s -> frame . nb_samples = s -> samples_per_frame ;\n if ( ( ret = ff_get_buffer ( s -> avctx , & s -> frame , 0 ) ) < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"not enough space for the output samples\\n\" ) ;\n s -> packet_loss = 1 ;\n return ret ;\n }\n for ( i = 0 ;\n i < s -> num_channels ;\n i ++ ) {\n s -> samples_16 [ i ] = ( int16_t * ) s -> frame . extended_data [ i ] ;\n s -> samples_32 [ i ] = ( int32_t * ) s -> frame . extended_data [ i ] ;\n }\n if ( s -> len_prefix ) len = get_bits ( gb , s -> log2_frame_size ) ;\n if ( decode_tilehdr ( s ) ) {\n s -> packet_loss = 1 ;\n return 0 ;\n }\n if ( s -> dynamic_range_compression ) s -> drc_gain = get_bits ( gb , 8 ) ;\n if ( get_bits1 ( gb ) ) {\n int av_unused skip ;\n if ( get_bits1 ( gb ) ) {\n skip = get_bits ( gb , av_log2 ( s -> samples_per_frame * 2 ) ) ;\n av_dlog ( s -> avctx , \"start skip: %i\\n\" , skip ) ;\n }\n if ( get_bits1 ( gb ) ) {\n skip = get_bits ( gb , av_log2 ( s -> samples_per_frame * 2 ) ) ;\n av_dlog ( s -> avctx , \"end skip: %i\\n\" , skip ) ;\n }\n }\n s -> parsed_all_subframes = 0 ;\n for ( i = 0 ;\n i < s -> num_channels ;\n i ++ ) {\n s -> channel [ i ] . decoded_samples = 0 ;\n s -> channel [ i ] . cur_subframe = 0 ;\n }\n while ( ! s -> parsed_all_subframes ) {\n if ( decode_subframe ( s ) < 0 ) {\n s -> packet_loss = 1 ;\n return 0 ;\n }\n }\n av_dlog ( s -> avctx , \"Frame done\\n\" ) ;\n if ( s -> skip_frame ) s -> skip_frame = 0 ;\n if ( s -> len_prefix ) {\n if ( len != ( get_bits_count ( gb ) - s -> frame_offset ) + 2 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"frame[%i] would have to skip %i bits\\n\" , s -> frame_num , len - ( get_bits_count ( gb ) - s -> frame_offset ) - 1 ) ;\n s -> packet_loss = 1 ;\n return 0 ;\n }\n skip_bits_long ( gb , len - ( get_bits_count ( gb ) - s -> frame_offset ) - 1 ) ;\n }\n more_frames = get_bits1 ( gb ) ;\n ++ s -> frame_num ;\n return more_frames ;\n }"}
{"idx": 5781, "target": 0, "func": "TSReturnCode TSUuidStringParse ( TSUuid uuid , const char * str ) {\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) uuid ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) str ) == TS_SUCCESS ) ;\n ATSUuid * u = ( ATSUuid * ) uuid ;\n if ( u -> parseString ( str ) ) {\n return TS_SUCCESS ;\n }\n return TS_ERROR ;\n }"}
{"idx": 5782, "target": 0, "func": "static void do_unmount ( UnmountData * data ) {\n GMountOperation * mount_op ;\n if ( data -> mount_operation ) {\n mount_op = g_object_ref ( data -> mount_operation ) ;\n }\n else {\n mount_op = gtk_mount_operation_new ( data -> parent_window ) ;\n }\n if ( data -> eject ) {\n g_mount_eject_with_operation ( data -> mount , 0 , mount_op , NULL , unmount_mount_callback , data ) ;\n }\n else {\n g_mount_unmount_with_operation ( data -> mount , 0 , mount_op , NULL , unmount_mount_callback , data ) ;\n }\n g_object_unref ( mount_op ) ;\n }"}
{"idx": 5783, "target": 0, "func": "static int dissect_sigcomp_tcp ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * _data _U_ ) {\n proto_item * ti ;\n proto_tree * sigcomp_tree ;\n tvbuff_t * unescaped_tvb ;\n guint8 * buff ;\n int offset = 0 ;\n int length ;\n guint8 octet ;\n guint16 data ;\n int i ;\n int n ;\n gboolean end_off_message ;\n top_tree = tree ;\n data = tvb_get_ntohs ( tvb , offset ) ;\n if ( data == 0xffff ) {\n offset = offset + 2 ;\n octet = tvb_get_guint8 ( tvb , offset ) ;\n }\n else {\n octet = tvb_get_guint8 ( tvb , offset ) ;\n }\n if ( ( octet & 0xf8 ) != 0xf8 ) return offset ;\n length = tvb_reported_length_remaining ( tvb , offset ) ;\n for ( i = 0 ;\n i < ( length - 1 ) ;\n ++ i ) {\n data = tvb_get_ntohs ( tvb , offset + i ) ;\n if ( 0xffff == data ) break ;\n }\n if ( i >= ( length - 1 ) ) {\n if ( pinfo -> can_desegment || pinfo -> saved_can_desegment ) {\n pinfo -> desegment_offset = offset ;\n pinfo -> desegment_len = DESEGMENT_ONE_MORE_SEGMENT ;\n return - 1 ;\n }\n }\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"SIGCOMP\" ) ;\n col_clear ( pinfo -> cinfo , COL_INFO ) ;\n length = tvb_reported_length ( tvb ) ;\n try_again : ti = proto_tree_add_item ( tree , proto_sigcomp , tvb , 0 , - 1 , ENC_NA ) ;\n sigcomp_tree = proto_item_add_subtree ( ti , ett_sigcomp ) ;\n i = 0 ;\n end_off_message = FALSE ;\n buff = ( guint8 * ) wmem_alloc ( pinfo -> pool , length - offset ) ;\n if ( udvm_print_detail_level > 2 ) proto_tree_add_item ( sigcomp_tree , hf_sigcomp_starting_to_remove_escape_digits , tvb , offset , - 1 , ENC_NA ) ;\n while ( ( offset < length ) && ( end_off_message == FALSE ) ) {\n octet = tvb_get_guint8 ( tvb , offset ) ;\n if ( octet == 0xff ) {\n if ( offset + 1 >= length ) {\n offset ++ ;\n continue ;\n }\n if ( udvm_print_detail_level > 2 ) proto_tree_add_none_format ( sigcomp_tree , hf_sigcomp_escape_digit_found , tvb , offset , 2 , \" Escape digit found (0xFF)\" ) ;\n octet = tvb_get_guint8 ( tvb , offset + 1 ) ;\n if ( octet == 0 ) {\n buff [ i ] = 0xff ;\n offset = offset + 2 ;\n i ++ ;\n continue ;\n }\n if ( ( octet > 0x7f ) && ( octet < 0xff ) ) {\n if ( udvm_print_detail_level > 2 ) proto_tree_add_none_format ( sigcomp_tree , hf_sigcomp_illegal_escape_code , tvb , offset , 2 , \" Illegal escape code\" ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n return offset ;\n }\n if ( octet == 0xff ) {\n if ( udvm_print_detail_level > 2 ) proto_tree_add_none_format ( sigcomp_tree , hf_sigcomp_end_of_sigcomp_message_indication_found , tvb , offset , 2 , \" End of SigComp message indication found (0xFFFF)\" ) ;\n end_off_message = TRUE ;\n offset = offset + 2 ;\n continue ;\n }\n buff [ i ] = 0xff ;\n if ( udvm_print_detail_level > 2 ) proto_tree_add_uint_format ( sigcomp_tree , hf_sigcomp_addr_value , tvb , offset , 1 , buff [ i ] , \" Addr: %u tvb value(0x%0x) \" , i , buff [ i ] ) ;\n i ++ ;\n offset = offset + 2 ;\n if ( udvm_print_detail_level > 2 ) proto_tree_add_bytes_format ( sigcomp_tree , hf_sigcomp_copying_bytes_literally , tvb , offset , octet , NULL , \" Copying %u bytes literally\" , octet ) ;\n if ( offset + octet >= length ) octet = length - offset ;\n for ( n = 0 ;\n n < octet ;\n n ++ ) {\n buff [ i ] = tvb_get_guint8 ( tvb , offset ) ;\n if ( udvm_print_detail_level > 2 ) proto_tree_add_uint_format ( sigcomp_tree , hf_sigcomp_addr_value , tvb , offset , 1 , buff [ i ] , \" Addr: %u tvb value(0x%0x) \" , i , buff [ i ] ) ;\n i ++ ;\n offset ++ ;\n }\n continue ;\n }\n buff [ i ] = octet ;\n if ( udvm_print_detail_level > 2 ) proto_tree_add_uint_format ( sigcomp_tree , hf_sigcomp_addr_value , tvb , offset , 1 , buff [ i ] , \" Addr: %u tvb value(0x%0x) \" , i , buff [ i ] ) ;\n i ++ ;\n offset ++ ;\n }\n unescaped_tvb = tvb_new_child_real_data ( tvb , buff , i , i ) ;\n add_new_data_source ( pinfo , unescaped_tvb , \"Unescaped Data handed to the SigComp dissector\" ) ;\n proto_tree_add_item ( sigcomp_tree , hf_sigcomp_data_for_sigcomp_dissector , unescaped_tvb , 0 , - 1 , ENC_NA ) ;\n if ( end_off_message == TRUE ) {\n dissect_sigcomp_common ( unescaped_tvb , pinfo , sigcomp_tree ) ;\n }\n else {\n proto_tree_add_expert ( sigcomp_tree , pinfo , & ei_sigcomp_tcp_fragment , unescaped_tvb , 0 , - 1 ) ;\n }\n if ( offset < length ) {\n goto try_again ;\n }\n return offset ;\n }"}
{"idx": 5784, "target": 0, "func": "bool message_search_more_decoded ( struct message_search_context * ctx , struct message_block * block ) {\n if ( block -> part != ctx -> prev_part ) {\n message_search_reset ( ctx ) ;\n ctx -> prev_part = block -> part ;\n }\n return message_search_more_decoded2 ( ctx , block ) ;\n }"}
{"idx": 5785, "target": 0, "func": "TSReturnCode sdk_sanity_check_lifecycle_hook_id ( TSLifecycleHookID id ) {\n return LifecycleAPIHooks : : is_valid ( id ) ? TS_SUCCESS : TS_ERROR ;\n }"}
{"idx": 5786, "target": 0, "func": "static int receive_header ( VirtIONet * n , struct iovec * iov , int iovcnt , const void * buf , size_t size , size_t hdr_len ) {\n struct virtio_net_hdr * hdr = ( struct virtio_net_hdr * ) iov [ 0 ] . iov_base ;\n int offset = 0 ;\n hdr -> flags = 0 ;\n hdr -> gso_type = VIRTIO_NET_HDR_GSO_NONE ;\n if ( n -> has_vnet_hdr ) {\n memcpy ( hdr , buf , sizeof ( * hdr ) ) ;\n offset = sizeof ( * hdr ) ;\n work_around_broken_dhclient ( hdr , buf + offset , size - offset ) ;\n }\n iov [ 0 ] . iov_base += hdr_len ;\n iov [ 0 ] . iov_len -= hdr_len ;\n return offset ;\n }"}
{"idx": 5787, "target": 0, "func": "static int mss4_decode_dct ( GetBitContext * gb , VLC * dc_vlc , VLC * ac_vlc , int * block , int * dc_cache , int bx , int by , uint16_t * quant_mat ) {\n int skip , val , pos = 1 , zz_pos , dc ;\n memset ( block , 0 , sizeof ( * block ) * 64 ) ;\n dc = get_coeff ( gb , dc_vlc ) ;\n if ( by ) {\n if ( bx ) {\n int l , tl , t ;\n l = dc_cache [ LEFT ] ;\n tl = dc_cache [ TOP_LEFT ] ;\n t = dc_cache [ TOP ] ;\n if ( FFABS ( t - tl ) <= FFABS ( l - tl ) ) dc += l ;\n else dc += t ;\n }\n else {\n dc += dc_cache [ TOP ] ;\n }\n }\n else if ( bx ) {\n dc += dc_cache [ LEFT ] ;\n }\n dc_cache [ LEFT ] = dc ;\n block [ 0 ] = dc * quant_mat [ 0 ] ;\n while ( pos < 64 ) {\n val = get_vlc2 ( gb , ac_vlc -> table , 9 , 2 ) ;\n if ( ! val ) return 0 ;\n if ( val == - 1 ) return - 1 ;\n if ( val == 0xF0 ) {\n pos += 16 ;\n continue ;\n }\n skip = val >> 4 ;\n val = get_coeff_bits ( gb , val & 0xF ) ;\n pos += skip ;\n if ( pos >= 64 ) return - 1 ;\n zz_pos = ff_zigzag_direct [ pos ] ;\n block [ zz_pos ] = val * quant_mat [ zz_pos ] ;\n pos ++ ;\n }\n return pos == 64 ? 0 : - 1 ;\n }"}
{"idx": 5788, "target": 0, "func": "static int print_ipcp_config_options ( netdissect_options * ndo , const u_char * p , int length ) {\n int len , opt ;\n u_int compproto , ipcomp_subopttotallen , ipcomp_subopt , ipcomp_suboptlen ;\n if ( length < 2 ) return 0 ;\n ND_TCHECK2 ( * p , 2 ) ;\n len = p [ 1 ] ;\n opt = p [ 0 ] ;\n if ( length < len ) return 0 ;\n if ( len < 2 ) {\n ND_PRINT ( ( ndo , \"\\n\\t %s Option (0x%02x), length %u (length bogus, should be >= 2)\" , tok2str ( ipcpopt_values , \"unknown\" , opt ) , opt , len ) ) ;\n return 0 ;\n }\n ND_PRINT ( ( ndo , \"\\n\\t %s Option (0x%02x), length %u\" , tok2str ( ipcpopt_values , \"unknown\" , opt ) , opt , len ) ) ;\n switch ( opt ) {\n case IPCPOPT_2ADDR : if ( len != 10 ) {\n ND_PRINT ( ( ndo , \" (length bogus, should be = 10)\" ) ) ;\n return len ;\n }\n ND_TCHECK2 ( * ( p + 6 ) , 4 ) ;\n ND_PRINT ( ( ndo , \": src %s, dst %s\" , ipaddr_string ( ndo , p + 2 ) , ipaddr_string ( ndo , p + 6 ) ) ) ;\n break ;\n case IPCPOPT_IPCOMP : if ( len < 4 ) {\n ND_PRINT ( ( ndo , \" (length bogus, should be >= 4)\" ) ) ;\n return 0 ;\n }\n ND_TCHECK2 ( * ( p + 2 ) , 2 ) ;\n compproto = EXTRACT_16BITS ( p + 2 ) ;\n ND_PRINT ( ( ndo , \": %s (0x%02x):\" , tok2str ( ipcpopt_compproto_values , \"Unknown\" , compproto ) , compproto ) ) ;\n switch ( compproto ) {\n case PPP_VJC : break ;\n case IPCPOPT_IPCOMP_HDRCOMP : if ( len < IPCPOPT_IPCOMP_MINLEN ) {\n ND_PRINT ( ( ndo , \" (length bogus, should be >= %u)\" , IPCPOPT_IPCOMP_MINLEN ) ) ;\n return 0 ;\n }\n ND_TCHECK2 ( * ( p + 2 ) , IPCPOPT_IPCOMP_MINLEN ) ;\n ND_PRINT ( ( ndo , \"\\n\\t TCP Space %u, non-TCP Space %u\" \", maxPeriod %u, maxTime %u, maxHdr %u\" , EXTRACT_16BITS ( p + 4 ) , EXTRACT_16BITS ( p + 6 ) , EXTRACT_16BITS ( p + 8 ) , EXTRACT_16BITS ( p + 10 ) , EXTRACT_16BITS ( p + 12 ) ) ) ;\n if ( len > IPCPOPT_IPCOMP_MINLEN ) {\n ipcomp_subopttotallen = len - IPCPOPT_IPCOMP_MINLEN ;\n p += IPCPOPT_IPCOMP_MINLEN ;\n ND_PRINT ( ( ndo , \"\\n\\t Suboptions, length %u\" , ipcomp_subopttotallen ) ) ;\n while ( ipcomp_subopttotallen >= 2 ) {\n ND_TCHECK2 ( * p , 2 ) ;\n ipcomp_subopt = * p ;\n ipcomp_suboptlen = * ( p + 1 ) ;\n if ( ipcomp_subopt == 0 || ipcomp_suboptlen == 0 ) break ;\n ND_PRINT ( ( ndo , \"\\n\\t\\t%s Suboption #%u, length %u\" , tok2str ( ipcpopt_compproto_subopt_values , \"Unknown\" , ipcomp_subopt ) , ipcomp_subopt , ipcomp_suboptlen ) ) ;\n ipcomp_subopttotallen -= ipcomp_suboptlen ;\n p += ipcomp_suboptlen ;\n }\n }\n break ;\n default : break ;\n }\n break ;\n case IPCPOPT_ADDR : case IPCPOPT_MOBILE4 : case IPCPOPT_PRIDNS : case IPCPOPT_PRINBNS : case IPCPOPT_SECDNS : case IPCPOPT_SECNBNS : if ( len != 6 ) {\n ND_PRINT ( ( ndo , \" (length bogus, should be = 6)\" ) ) ;\n return 0 ;\n }\n ND_TCHECK2 ( * ( p + 2 ) , 4 ) ;\n ND_PRINT ( ( ndo , \": %s\" , ipaddr_string ( ndo , p + 2 ) ) ) ;\n break ;\n default : if ( ndo -> ndo_vflag < 2 ) print_unknown_data ( ndo , & p [ 2 ] , \"\\n\\t \" , len - 2 ) ;\n break ;\n }\n if ( ndo -> ndo_vflag > 1 ) print_unknown_data ( ndo , & p [ 2 ] , \"\\n\\t \" , len - 2 ) ;\n return len ;\n trunc : ND_PRINT ( ( ndo , \"[|ipcp]\" ) ) ;\n return 0 ;\n }"}
{"idx": 5789, "target": 0, "func": "static gboolean logcat_read ( wtap * wth , int * err , gchar * * err_info , gint64 * data_offset ) {\n * data_offset = file_tell ( wth -> fh ) ;\n return logcat_read_packet ( ( struct logcat_phdr * ) wth -> priv , wth -> fh , & wth -> phdr , wth -> frame_buffer , err , err_info ) ;\n }"}
{"idx": 5790, "target": 0, "func": "static void rfc2231_escape ( string_t * dest , const char * src ) {\n for ( ;\n * src != '\\0' ;\n src ++ ) {\n if ( * src == '%' ) str_append ( dest , \"%25\" ) ;\n else str_append_c ( dest , * src ) ;\n }\n }"}
{"idx": 5791, "target": 0, "func": "void validate_gamma_table ( float gamma_table [ 256 ] ) {\n int i ;\n for ( i = 0 ;\n i < 256 ;\n i ++ ) {\n if ( ! ( gamma_table [ i ] >= 0.f && gamma_table [ i ] <= 1.f ) ) {\n gamma_table [ i ] = 0.f ;\n }\n }\n }"}
{"idx": 5792, "target": 0, "func": "static int dissect_rsvp_e2ei ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"RSVP-E2EI\" ) ;\n dissect_rsvp_common ( tvb , pinfo , tree , TRUE ) ;\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 5793, "target": 0, "func": "static void get_days ( const UDateFormat * fmt , UChar * days [ ] , UBool useLongNames , int32_t fdow , UErrorCode * status ) {\n UDateFormatSymbolType dayType = ( useLongNames ? UDAT_WEEKDAYS : UDAT_SHORT_WEEKDAYS ) ;\n if ( U_FAILURE ( * status ) ) return ;\n -- fdow ;\n get_symbols ( fmt , dayType , days , DAY_COUNT , 1 , fdow , status ) ;\n }"}
{"idx": 5794, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth )"}
{"idx": 5795, "target": 0, "func": "static int config_filter_parser_cmp ( struct config_filter_parser * const * p1 , struct config_filter_parser * const * p2 ) {\n const struct config_filter * f1 = & ( * p1 ) -> filter , * f2 = & ( * p2 ) -> filter ;\n if ( f1 -> local_name != NULL && f2 -> local_name == NULL ) return - 1 ;\n if ( f1 -> local_name == NULL && f2 -> local_name != NULL ) return 1 ;\n if ( f1 -> local_bits > f2 -> local_bits ) return - 1 ;\n if ( f1 -> local_bits < f2 -> local_bits ) return 1 ;\n if ( f1 -> remote_bits > f2 -> remote_bits ) return - 1 ;\n if ( f1 -> remote_bits < f2 -> remote_bits ) return 1 ;\n if ( f1 -> service != NULL && f2 -> service == NULL ) return - 1 ;\n if ( f1 -> service == NULL && f2 -> service != NULL ) return 1 ;\n return 0 ;\n }"}
{"idx": 5796, "target": 0, "func": "void WriteDataChunksForTocEntry ( ArchiveHandle * AH , TocEntry * te ) {\n StartDataPtr startPtr ;\n EndDataPtr endPtr ;\n AH -> currToc = te ;\n if ( strcmp ( te -> desc , \"BLOBS\" ) == 0 ) {\n startPtr = AH -> StartBlobsPtr ;\n endPtr = AH -> EndBlobsPtr ;\n }\n else {\n startPtr = AH -> StartDataPtr ;\n endPtr = AH -> EndDataPtr ;\n }\n if ( startPtr != NULL ) ( * startPtr ) ( AH , te ) ;\n ( * te -> dataDumper ) ( ( Archive * ) AH , te -> dataDumperArg ) ;\n if ( endPtr != NULL ) ( * endPtr ) ( AH , te ) ;\n AH -> currToc = NULL ;\n }"}
{"idx": 5797, "target": 0, "func": "pdf_xobject * pdf_load_xobject ( fz_context * ctx , pdf_document * doc , pdf_obj * dict ) {\n pdf_xobject * form ;\n if ( ! pdf_is_stream ( ctx , dict ) ) fz_throw ( ctx , FZ_ERROR_SYNTAX , \"XObject must be a stream\" ) ;\n if ( ( form = pdf_find_item ( ctx , pdf_drop_xobject_imp , dict ) ) != NULL ) return form ;\n form = fz_malloc_struct ( ctx , pdf_xobject ) ;\n FZ_INIT_STORABLE ( form , 1 , pdf_drop_xobject_imp ) ;\n form -> obj = NULL ;\n form -> iteration = 0 ;\n pdf_store_item ( ctx , dict , form , pdf_xobject_size ( form ) ) ;\n form -> obj = pdf_keep_obj ( ctx , dict ) ;\n return form ;\n }"}
{"idx": 5798, "target": 0, "func": "inline GRANT_TABLE * table_hash_search ( const char * host , const char * ip , const char * db , const char * user , const char * tname , bool exact ) {\n return ( GRANT_TABLE * ) name_hash_search ( & column_priv_hash , host , ip , db , user , tname , exact , FALSE ) ;\n }"}
{"idx": 5799, "target": 0, "func": "int virLogPriorityFromSyslog ( int priority ATTRIBUTE_UNUSED ) {\n return VIR_LOG_ERROR ;\n }"}
{"idx": 5800, "target": 0, "func": "static void tcx_init ( hwaddr addr , int vram_size , int width , int height , int depth ) {\n DeviceState * dev ;\n SysBusDevice * s ;\n dev = qdev_create ( NULL , \"SUNW,tcx\" ) ;\n qdev_prop_set_uint32 ( dev , \"vram_size\" , vram_size ) ;\n qdev_prop_set_uint16 ( dev , \"width\" , width ) ;\n qdev_prop_set_uint16 ( dev , \"height\" , height ) ;\n qdev_prop_set_uint16 ( dev , \"depth\" , depth ) ;\n qdev_init_nofail ( dev ) ;\n s = SYS_BUS_DEVICE ( dev ) ;\n sysbus_mmio_map ( s , 0 , addr + 0x00800000ULL ) ;\n sysbus_mmio_map ( s , 1 , addr + 0x00200000ULL ) ;\n sysbus_mmio_map ( s , 2 , addr + 0x00700000ULL ) ;\n sysbus_mmio_map ( s , 3 , addr + 0x00301000ULL ) ;\n if ( depth == 24 ) {\n sysbus_mmio_map ( s , 4 , addr + 0x02000000ULL ) ;\n sysbus_mmio_map ( s , 5 , addr + 0x0a000000ULL ) ;\n }\n else {\n sysbus_mmio_map ( s , 4 , addr + 0x00300000ULL ) ;\n }\n }"}
{"idx": 5801, "target": 0, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE )"}
{"idx": 5802, "target": 0, "func": "int dissect_ber_EmbeddedPDV_Type ( gboolean implicit_tag , proto_tree * tree , tvbuff_t * tvb , int offset , asn1_ctx_t * actx , gint hf_id , ber_callback func _U_ ) {\n offset = dissect_ber_tagged_type ( implicit_tag , actx , tree , tvb , offset , hf_id , BER_CLASS_UNI , BER_UNI_TAG_EMBEDDED_PDV , TRUE , dissect_ber_external_U ) ;\n return offset ;\n }"}
{"idx": 5803, "target": 0, "func": "static int dissect_pvfs2_mgmt_dspace_info_list_request ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n guint32 handle_count , i ;\n offset = dissect_pvfs_fs_id ( tvb , tree , offset ) ;\n handle_count = tvb_get_letohl ( tvb , offset ) ;\n offset += 4 ;\n for ( i = 0 ;\n i < handle_count ;\n i ++ ) {\n offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"handle\" , NULL ) ;\n }\n return offset ;\n }"}
{"idx": 5804, "target": 0, "func": "SPL_METHOD ( SplFileInfo , func_name ) \\ {\n \\ spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n \\ zend_error_handling error_handling ;\n \\ if ( zend_parse_parameters_none ( ) == FAILURE ) {\n \\ return ;\n \\ }\n \\ \\ zend_replace_error_handling ( EH_THROW , spl_ce_RuntimeException , & error_handling TSRMLS_CC ) ;\n \\ spl_filesystem_object_get_file_name ( intern TSRMLS_CC ) ;\n \\ php_stat ( intern -> file_name , intern -> file_name_len , func_num , return_value TSRMLS_CC ) ;\n \\ zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n \\ }\n FileInfoFunction ( getPerms , FS_PERMS )"}
{"idx": 5805, "target": 0, "func": "Oid get_rel_namespace ( Oid relid ) {\n HeapTuple tp ;\n tp = SearchSysCache1 ( RELOID , ObjectIdGetDatum ( relid ) ) ;\n if ( HeapTupleIsValid ( tp ) ) {\n Form_pg_class reltup = ( Form_pg_class ) GETSTRUCT ( tp ) ;\n Oid result ;\n result = reltup -> relnamespace ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }\n else return InvalidOid ;\n }"}
{"idx": 5806, "target": 0, "func": "void do_system ( struct st_command * command ) {\n DYNAMIC_STRING ds_cmd ;\n DBUG_ENTER ( \"do_system\" ) ;\n if ( strlen ( command -> first_argument ) == 0 ) {\n report_or_die ( \"Missing arguments to system, nothing to do!\" ) ;\n return ;\n }\n init_dynamic_string ( & ds_cmd , 0 , command -> query_len + 64 , 256 ) ;\n do_eval ( & ds_cmd , command -> first_argument , command -> end , ! is_windows ) ;\n # ifdef __WIN__ # ifndef USE_CYGWIN while ( replace ( & ds_cmd , \"/devull\" , 9 , \"NUL\" , 3 ) == 0 ) ;\n # endif # endif DBUG_PRINT ( \"info\" , ( \"running system command '%s' as '%s'\" , command -> first_argument , ds_cmd . str ) ) ;\n if ( my_system ( & ds_cmd ) ) {\n if ( command -> abort_on_error ) report_or_die ( \"system command '%s' failed\" , command -> first_argument ) ;\n else {\n dynstr_append ( & ds_res , \"system command '\" ) ;\n replace_dynstr_append ( & ds_res , command -> first_argument ) ;\n dynstr_append ( & ds_res , \"' failed\\n\" ) ;\n }\n }\n command -> last_argument = command -> end ;\n dynstr_free ( & ds_cmd ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 5807, "target": 0, "func": "static void dissect_q931_party_subaddr_ie ( tvbuff_t * tvb , int offset , int len , proto_tree * tree ) {\n if ( len == 0 ) return ;\n proto_tree_add_item ( tree , hf_q931_party_subaddr_type , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_q931_party_subaddr_odd_even_indicator , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset += 1 ;\n len -= 1 ;\n if ( len == 0 ) return ;\n proto_tree_add_item ( tree , hf_q931_party_subaddr , tvb , offset , len , ENC_NA ) ;\n }"}
{"idx": 5808, "target": 0, "func": "static int mgs_select_virtual_server_cb ( gnutls_session_t session ) {\n mgs_handle_t * ctxt = NULL ;\n mgs_srvconf_rec * tsc = NULL ;\n int ret = 0 ;\n _gnutls_log ( debug_log_fp , \"%s: %d\\n\" , __func__ , __LINE__ ) ;\n ctxt = gnutls_transport_get_ptr ( session ) ;\n tsc = mgs_find_sni_server ( session ) ;\n if ( tsc != NULL ) {\n ctxt -> sc = tsc ;\n }\n gnutls_certificate_server_set_request ( session , ctxt -> sc -> client_verify_mode ) ;\n gnutls_credentials_set ( session , GNUTLS_CRD_CERTIFICATE , ctxt -> sc -> certs ) ;\n gnutls_credentials_set ( session , GNUTLS_CRD_ANON , ctxt -> sc -> anon_creds ) ;\n # ifdef ENABLE_SRP if ( ctxt -> sc -> srp_tpasswd_conf_file != NULL && ctxt -> sc -> srp_tpasswd_file != NULL ) {\n gnutls_credentials_set ( session , GNUTLS_CRD_SRP , ctxt -> sc -> srp_creds ) ;\n }\n # endif ret = gnutls_priority_set ( session , ctxt -> sc -> priorities ) ;\n return ret ;\n }"}
{"idx": 5809, "target": 0, "func": "static int32_t offsetTOCPrefixBinarySearch ( const char * s , const char * names , const UDataOffsetTOCEntry * toc , int32_t count ) {\n int32_t start = 0 ;\n int32_t limit = count ;\n int32_t startPrefixLength = 0 ;\n int32_t limitPrefixLength = 0 ;\n if ( count == 0 ) {\n return - 1 ;\n }\n if ( 0 == strcmpAfterPrefix ( s , names + toc [ 0 ] . nameOffset , & startPrefixLength ) ) {\n return 0 ;\n }\n ++ start ;\n -- limit ;\n if ( 0 == strcmpAfterPrefix ( s , names + toc [ limit ] . nameOffset , & limitPrefixLength ) ) {\n return limit ;\n }\n while ( start < limit ) {\n int32_t i = ( start + limit ) / 2 ;\n int32_t prefixLength = MIN ( startPrefixLength , limitPrefixLength ) ;\n int32_t cmp = strcmpAfterPrefix ( s , names + toc [ i ] . nameOffset , & prefixLength ) ;\n if ( cmp < 0 ) {\n limit = i ;\n limitPrefixLength = prefixLength ;\n }\n else if ( cmp == 0 ) {\n return i ;\n }\n else {\n start = i + 1 ;\n startPrefixLength = prefixLength ;\n }\n }\n return - 1 ;\n }"}
{"idx": 5810, "target": 0, "func": "static void sig_server_quit ( SERVER_REC * server , const char * msg ) {\n g_return_if_fail ( server != NULL ) ;\n printformat ( server , NULL , MSGLEVEL_CLIENTNOTICE , TXT_SERVER_QUIT , server -> connrec -> address , msg ) ;\n }"}
{"idx": 5811, "target": 0, "func": "static void xps_parse_path_figure ( fz_context * doc , fz_path * path , fz_xml * root , int stroking ) {\n fz_xml * node ;\n char * is_closed_att ;\n char * start_point_att ;\n char * is_filled_att ;\n int is_closed = 0 ;\n int is_filled = 1 ;\n float start_x = 0 ;\n float start_y = 0 ;\n int skipped_stroke = 0 ;\n is_closed_att = fz_xml_att ( root , \"IsClosed\" ) ;\n start_point_att = fz_xml_att ( root , \"StartPoint\" ) ;\n is_filled_att = fz_xml_att ( root , \"IsFilled\" ) ;\n if ( is_closed_att ) is_closed = ! strcmp ( is_closed_att , \"true\" ) ;\n if ( is_filled_att ) is_filled = ! strcmp ( is_filled_att , \"true\" ) ;\n if ( start_point_att ) xps_parse_point ( start_point_att , & start_x , & start_y ) ;\n if ( ! stroking && ! is_filled ) return ;\n fz_moveto ( doc , path , start_x , start_y ) ;\n for ( node = fz_xml_down ( root ) ;\n node ;\n node = fz_xml_next ( node ) ) {\n if ( ! strcmp ( fz_xml_tag ( node ) , \"ArcSegment\" ) ) xps_parse_arc_segment ( doc , path , node , stroking , & skipped_stroke ) ;\n if ( ! strcmp ( fz_xml_tag ( node ) , \"PolyBezierSegment\" ) ) xps_parse_poly_bezier_segment ( doc , path , node , stroking , & skipped_stroke ) ;\n if ( ! strcmp ( fz_xml_tag ( node ) , \"PolyLineSegment\" ) ) xps_parse_poly_line_segment ( doc , path , node , stroking , & skipped_stroke ) ;\n if ( ! strcmp ( fz_xml_tag ( node ) , \"PolyQuadraticBezierSegment\" ) ) xps_parse_poly_quadratic_bezier_segment ( doc , path , node , stroking , & skipped_stroke ) ;\n }\n if ( is_closed ) {\n if ( stroking && skipped_stroke ) fz_lineto ( doc , path , start_x , start_y ) ;\n else fz_closepath ( doc , path ) ;\n }\n }"}
{"idx": 5812, "target": 0, "func": "static void pcnet_stop ( PCNetState * s ) {\n # ifdef PCNET_DEBUG printf ( \"pcnet_stop\\n\" ) ;\n # endif s -> csr [ 0 ] &= ~ 0xffeb ;\n s -> csr [ 0 ] |= 0x0014 ;\n s -> csr [ 4 ] &= ~ 0x02c2 ;\n s -> csr [ 5 ] &= ~ 0x0011 ;\n pcnet_poll_timer ( s ) ;\n }"}
{"idx": 5813, "target": 0, "func": "proto_item * proto_tree_add_ipv4_format ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , guint32 value , const char * format , ... ) {\n proto_item * pi ;\n va_list ap ;\n pi = proto_tree_add_ipv4 ( tree , hfindex , tvb , start , length , value ) ;\n if ( pi != tree ) {\n TRY_TO_FAKE_THIS_REPR ( pi ) ;\n va_start ( ap , format ) ;\n proto_tree_set_representation ( pi , format , ap ) ;\n va_end ( ap ) ;\n }\n return pi ;\n }"}
{"idx": 5814, "target": 0, "func": "static void dissect_fpdu_crc ( tvbuff_t * tvb , proto_tree * tree , mpa_state_t * state , guint32 offset , guint32 length ) {\n guint32 crc = 0 ;\n guint32 sent_crc = 0 ;\n if ( state -> crc ) {\n crc = ~ crc32c_tvb_offset_calculate ( tvb , 0 , length , CRC32C_PRELOAD ) ;\n sent_crc = tvb_get_ntohl ( tvb , offset ) ;\n if ( crc == sent_crc ) {\n proto_tree_add_uint_format_value ( tree , hf_mpa_crc_check , tvb , offset , MPA_CRC_LEN , sent_crc , \"0x%08x (Good CRC32)\" , sent_crc ) ;\n }\n else {\n proto_tree_add_uint_format_value ( tree , hf_mpa_crc_check , tvb , offset , MPA_CRC_LEN , sent_crc , \"0x%08x (Bad CRC32, should be 0x%08x)\" , sent_crc , crc ) ;\n }\n }\n else {\n proto_tree_add_item ( tree , hf_mpa_crc , tvb , offset , MPA_CRC_LEN , ENC_BIG_ENDIAN ) ;\n }\n }"}
{"idx": 5815, "target": 0, "func": "static void pk_register_default ( void ) {\n gcry_err_code_t err = 0 ;\n int i ;\n for ( i = 0 ;\n ( ! err ) && pubkey_table [ i ] . pubkey ;\n i ++ ) {\n # define pubkey_use_dummy ( func ) \\ if ( ! pubkey_table [ i ] . pubkey -> func ) \\ pubkey_table [ i ] . pubkey -> func = dummy_ ## func ;\n pubkey_use_dummy ( generate ) ;\n pubkey_use_dummy ( check_secret_key ) ;\n pubkey_use_dummy ( encrypt ) ;\n pubkey_use_dummy ( decrypt ) ;\n pubkey_use_dummy ( sign ) ;\n pubkey_use_dummy ( verify ) ;\n pubkey_use_dummy ( get_nbits ) ;\n # undef pubkey_use_dummy err = _gcry_module_add ( & pubkeys_registered , pubkey_table [ i ] . algorithm , ( void * ) pubkey_table [ i ] . pubkey , ( void * ) pubkey_table [ i ] . extraspec , NULL ) ;\n }\n if ( err ) BUG ( ) ;\n }"}
{"idx": 5816, "target": 0, "func": "int ssl3_do_uncompress ( SSL * ssl , SSL3_RECORD * rr ) {\n # ifndef OPENSSL_NO_COMP int i ;\n if ( rr -> comp == NULL ) {\n rr -> comp = ( unsigned char * ) OPENSSL_malloc ( SSL3_RT_MAX_ENCRYPTED_LENGTH ) ;\n }\n if ( rr -> comp == NULL ) return 0 ;\n i = COMP_expand_block ( ssl -> expand , rr -> comp , SSL3_RT_MAX_PLAIN_LENGTH , rr -> data , ( int ) rr -> length ) ;\n if ( i < 0 ) return 0 ;\n else rr -> length = i ;\n rr -> data = rr -> comp ;\n # endif return 1 ;\n }"}
{"idx": 5817, "target": 0, "func": "static void evhttp_connection_done ( struct evhttp_connection * evcon ) {\n struct evhttp_request * req = TAILQ_FIRST ( & evcon -> requests ) ;\n int con_outgoing = evcon -> flags & EVHTTP_CON_OUTGOING ;\n if ( con_outgoing ) {\n int need_close ;\n TAILQ_REMOVE ( & evcon -> requests , req , next ) ;\n req -> evcon = NULL ;\n evcon -> state = EVCON_IDLE ;\n need_close = evhttp_is_connection_close ( req -> flags , req -> input_headers ) || evhttp_is_connection_close ( req -> flags , req -> output_headers ) ;\n if ( need_close ) evhttp_connection_reset ( evcon ) ;\n if ( TAILQ_FIRST ( & evcon -> requests ) != NULL ) {\n if ( ! evhttp_connected ( evcon ) ) evhttp_connection_connect ( evcon ) ;\n else evhttp_request_dispatch ( evcon ) ;\n }\n else if ( ! need_close ) {\n evhttp_connection_start_detectclose ( evcon ) ;\n }\n }\n else if ( evcon -> state != EVCON_DISCONNECTED ) {\n evcon -> state = EVCON_WRITING ;\n }\n ( * req -> cb ) ( req , req -> cb_arg ) ;\n if ( con_outgoing ) {\n evhttp_request_free ( req ) ;\n }\n }"}
{"idx": 5818, "target": 0, "func": "TSMimeParser TSMimeParserCreate ( void ) {\n TSMimeParser parser = reinterpret_cast < TSMimeParser > ( ats_malloc ( sizeof ( MIMEParser ) ) ) ;\n mime_parser_init ( ( MIMEParser * ) parser ) ;\n return parser ;\n }"}
{"idx": 5819, "target": 1, "func": "static void * i_alloc_struct_array ( gs_memory_t * mem , uint num_elements , gs_memory_type_ptr_t pstype , client_name_t cname ) {\n gs_ref_memory_t * const imem = ( gs_ref_memory_t * ) mem ;\n obj_header_t * obj ;\n # ifdef MEMENTO if ( Memento_failThisEvent ( ) ) return NULL ;\n # endif ALLOC_CHECK_SIZE ( mem , pstype ) ;\n # ifdef DEBUG if ( pstype -> enum_ptrs == basic_enum_ptrs ) {\n dmprintf2 ( mem , \" i_alloc_struct_array: called with incorrect structure type (not element), struct='%s', client='%s'\\n\" , pstype -> sname , cname ) ;\n return NULL ;\n }\n # endif obj = alloc_obj ( imem , ( ulong ) num_elements * pstype -> ssize , pstype , ALLOC_DIRECT , cname ) ;\n if_debug7m ( 'A' , mem , \"[a%d:+<.]%s %s*(%lu=%u*%u) = 0x%lx\\n\" , alloc_trace_space ( imem ) , client_name_string ( cname ) , struct_type_name_string ( pstype ) , ( ulong ) num_elements * pstype -> ssize , num_elements , pstype -> ssize , ( ulong ) obj ) ;\n return ( char * ) obj ;\n }"}
{"idx": 5820, "target": 0, "func": "static inline gboolean gst_asf_demux_skip_bytes ( guint num_bytes , guint8 * * p_data , guint64 * p_size ) {\n if ( * p_size < num_bytes ) return FALSE ;\n * p_data += num_bytes ;\n * p_size -= num_bytes ;\n return TRUE ;\n }"}
{"idx": 5821, "target": 0, "func": "NON_EXPORTED_BASE ( public blink : : Platform ) {\n public : ~ TestBlinkPlatformSupport ( ) override ;\n void cryptographicallyRandomValues ( unsigned char * buffer , size_t length ) override ;\n const unsigned char * getTraceCategoryEnabledFlag ( const char * categoryName ) override ;\n blink : : WebThread * currentThread ( ) override {\n return & m_currentThread ;\n }\n private : CurrentThreadMock m_currentThread ;\n }"}
{"idx": 5822, "target": 0, "func": "eth_pkt_types_e vmxnet_tx_pkt_get_packet_type ( struct VmxnetTxPkt * pkt ) {\n assert ( pkt ) ;\n return pkt -> packet_type ;\n }"}
{"idx": 5823, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( DownloadExtensionTest , DownloadExtensionTest_OnDeterminingFilename_ReferencesParentInvalid ) {\n GoOnTheRecord ( ) ;\n LoadExtension ( \"downloads_split\" ) ;\n AddFilenameDeterminer ( ) ;\n ASSERT_TRUE ( StartEmbeddedTestServer ( ) ) ;\n std : : string download_url = embedded_test_server ( ) -> GetURL ( \"/slow?0\" ) . spec ( ) ;\n std : : unique_ptr < base : : Value > result ( RunFunctionAndReturnResult ( new DownloadsDownloadFunction ( ) , base : : StringPrintf ( \"[{\n\\\"url\\\": \\\"%s\\\"}\n]\" , download_url . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( result . get ( ) ) ;\n int result_id = - 1 ;\n ASSERT_TRUE ( result -> GetAsInteger ( & result_id ) ) ;\n DownloadItem * item = GetCurrentManager ( ) -> GetDownload ( result_id ) ;\n ASSERT_TRUE ( item ) ;\n ScopedCancellingItem canceller ( item ) ;\n ASSERT_EQ ( download_url , item -> GetOriginalUrl ( ) . spec ( ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnCreated : : kEventName , base : : StringPrintf ( \"[{\n\\\"danger\\\": \\\"safe\\\",\" \" \\\"incognito\\\": false,\" \" \\\"id\\\": %d,\" \" \\\"mime\\\": \\\"text/plain\\\",\" \" \\\"paused\\\": false,\" \" \\\"url\\\": \\\"%s\\\"}\n]\" , result_id , download_url . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnDeterminingFilename : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"filename\\\":\\\"slow.txt\\\"}\n]\" , result_id ) ) ) ;\n ASSERT_TRUE ( item -> GetTargetFilePath ( ) . empty ( ) ) ;\n ASSERT_EQ ( DownloadItem : : IN_PROGRESS , item -> GetState ( ) ) ;\n std : : string error ;\n ASSERT_FALSE ( ExtensionDownloadsEventRouter : : DetermineFilename ( browser ( ) -> profile ( ) , false , GetExtensionId ( ) , result_id , base : : FilePath ( FILE_PATH_LITERAL ( \"sneaky/../../sneaky.txt\" ) ) , downloads : : FILENAME_CONFLICT_ACTION_UNIQUIFY , & error ) ) ;\n EXPECT_STREQ ( errors : : kInvalidFilename , error . c_str ( ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnChanged : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"filename\\\": {\n\" \" \\\"previous\\\": \\\"\\\",\" \" \\\"current\\\": \\\"%s\\\"}\n}\n]\" , result_id , GetFilename ( \"slow.txt\" ) . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnChanged : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"state\\\": {\n\" \" \\\"previous\\\": \\\"in_progress\\\",\" \" \\\"current\\\": \\\"complete\\\"}\n}\n]\" , result_id ) ) ) ;\n }"}
{"idx": 5824, "target": 0, "func": "static int parse_CCoercionRestriction ( tvbuff_t * tvb , packet_info * pinfo , int offset , proto_tree * parent_tree , proto_tree * pad_tree , struct CCoercionRestriction * v , const char * fmt , ... ) {\n proto_tree * tree ;\n proto_item * item ;\n const char * txt ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CCoercionRestriction , & item , txt ) ;\n v -> value = tvb_get_letohieee_float ( tvb , offset ) ;\n proto_tree_add_float ( tree , hf_mswsp_ccoercerestrict_value , tvb , offset , 4 , v -> value ) ;\n offset += 4 ;\n offset = parse_CRestriction ( tvb , pinfo , offset , tree , pad_tree , & v -> child , \"child\" ) ;\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 5825, "target": 0, "func": "static void pdf_run_gs_begin ( fz_context * ctx , pdf_processor * proc , const char * name , pdf_obj * extgstate ) {\n }"}
{"idx": 5826, "target": 0, "func": "static void config_fudge ( config_tree * ptree ) {\n addr_opts_node * curr_fudge ;\n attr_val * curr_opt ;\n sockaddr_u addr_sock ;\n address_node * addr_node ;\n struct refclockstat clock_stat ;\n int err_flag ;\n curr_fudge = HEAD_PFIFO ( ptree -> fudge ) ;\n for ( ;\n curr_fudge != NULL ;\n curr_fudge = curr_fudge -> link ) {\n err_flag = 0 ;\n addr_node = curr_fudge -> addr ;\n ZERO_SOCK ( & addr_sock ) ;\n if ( getnetnum ( addr_node -> address , & addr_sock , 1 , t_REF ) != 1 ) {\n err_flag = 1 ;\n msyslog ( LOG_ERR , \"unrecognized fudge reference clock address %s, line ignored\" , stoa ( & addr_sock ) ) ;\n }\n if ( ! ISREFCLOCKADR ( & addr_sock ) ) {\n err_flag = 1 ;\n msyslog ( LOG_ERR , \"inappropriate address %s for the fudge command, line ignored\" , stoa ( & addr_sock ) ) ;\n }\n memset ( & clock_stat , 0 , sizeof ( clock_stat ) ) ;\n curr_opt = HEAD_PFIFO ( curr_fudge -> options ) ;\n for ( ;\n curr_opt != NULL ;\n curr_opt = curr_opt -> link ) {\n switch ( curr_opt -> attr ) {\n case T_Time1 : clock_stat . haveflags |= CLK_HAVETIME1 ;\n clock_stat . fudgetime1 = curr_opt -> value . d ;\n break ;\n case T_Time2 : clock_stat . haveflags |= CLK_HAVETIME2 ;\n clock_stat . fudgetime2 = curr_opt -> value . d ;\n break ;\n case T_Stratum : clock_stat . haveflags |= CLK_HAVEVAL1 ;\n clock_stat . fudgeval1 = curr_opt -> value . i ;\n break ;\n case T_Refid : clock_stat . haveflags |= CLK_HAVEVAL2 ;\n clock_stat . fudgeval2 = 0 ;\n memcpy ( & clock_stat . fudgeval2 , curr_opt -> value . s , min ( strlen ( curr_opt -> value . s ) , 4 ) ) ;\n break ;\n case T_Flag1 : clock_stat . haveflags |= CLK_HAVEFLAG1 ;\n if ( curr_opt -> value . i ) clock_stat . flags |= CLK_FLAG1 ;\n else clock_stat . flags &= ~ CLK_FLAG1 ;\n break ;\n case T_Flag2 : clock_stat . haveflags |= CLK_HAVEFLAG2 ;\n if ( curr_opt -> value . i ) clock_stat . flags |= CLK_FLAG2 ;\n else clock_stat . flags &= ~ CLK_FLAG2 ;\n break ;\n case T_Flag3 : clock_stat . haveflags |= CLK_HAVEFLAG3 ;\n if ( curr_opt -> value . i ) clock_stat . flags |= CLK_FLAG3 ;\n else clock_stat . flags &= ~ CLK_FLAG3 ;\n break ;\n case T_Flag4 : clock_stat . haveflags |= CLK_HAVEFLAG4 ;\n if ( curr_opt -> value . i ) clock_stat . flags |= CLK_FLAG4 ;\n else clock_stat . flags &= ~ CLK_FLAG4 ;\n break ;\n default : msyslog ( LOG_ERR , \"Unexpected fudge flag %s (%d) for %s\\n\" , token_name ( curr_opt -> attr ) , curr_opt -> attr , stoa ( & addr_sock ) ) ;\n exit ( curr_opt -> attr ? curr_opt -> attr : 1 ) ;\n }\n }\n # ifdef REFCLOCK if ( ! err_flag ) refclock_control ( & addr_sock , & clock_stat , NULL ) ;\n # endif }\n }"}
{"idx": 5827, "target": 0, "func": "TEST_F ( TemplateURLTest , ReplacePageClassification ) {\n TemplateURLData data ;\n data . input_encodings . push_back ( \"UTF-8\" ) ;\n data . SetURL ( \"{\ngoogle:baseURL}\n?{\ngoogle:pageClassification}\nq={\nsearchTerms}\n\" ) ;\n TemplateURL url ( data ) ;\n EXPECT_TRUE ( url . url_ref ( ) . IsValid ( search_terms_data_ ) ) ;\n ASSERT_TRUE ( url . url_ref ( ) . SupportsReplacement ( search_terms_data_ ) ) ;\n TemplateURLRef : : SearchTermsArgs search_terms_args ( ASCIIToUTF16 ( \"foo\" ) ) ;\n std : : string result = url . url_ref ( ) . ReplaceSearchTerms ( search_terms_args , search_terms_data_ ) ;\n EXPECT_EQ ( \"http://www.google.com/?q=foo\" , result ) ;\n search_terms_args . page_classification = metrics : : OmniboxEventProto : : NTP ;\n result = url . url_ref ( ) . ReplaceSearchTerms ( search_terms_args , search_terms_data_ ) ;\n EXPECT_EQ ( \"http://www.google.com/?pgcl=1&q=foo\" , result ) ;\n search_terms_args . page_classification = metrics : : OmniboxEventProto : : HOME_PAGE ;\n result = url . url_ref ( ) . ReplaceSearchTerms ( search_terms_args , search_terms_data_ ) ;\n EXPECT_EQ ( \"http://www.google.com/?pgcl=3&q=foo\" , result ) ;\n }"}
{"idx": 5828, "target": 0, "func": "static void steamdiscover_dissect_body_streamingresponse ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , gint offset , gint bytes_left ) {\n guint len ;\n gint64 value ;\n protobuf_desc_t pb = {\n tvb , offset , bytes_left }\n ;\n protobuf_tag_t tag = {\n 0 , 0 , 0 }\n ;\n while ( protobuf_iter_next ( & pb , & tag ) ) {\n switch ( tag . field_number ) {\n case STEAMDISCOVER_FN_STREAMINGRESPONSE_REQUESTID : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_uint ( tree , hf_steam_ihs_discovery_body_streamingresponse_requestid , pb . tvb , pb . offset , len , ( guint32 ) value ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" ID=%08x\" , ( guint32 ) value ) ;\n break ;\n case STEAMDISCOVER_FN_STREAMINGRESPONSE_RESULT : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_uint64 ( tree , hf_steam_ihs_discovery_body_streamingresponse_result , pb . tvb , pb . offset , len , ( guint64 ) value ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" Result=%\" G_GUINT64_FORMAT \"(%s)\" , ( guint64 ) value , val64_to_str_const ( ( guint64 ) value , hf_steam_ihs_discovery_body_streamingresponse_result_strings , \"Unknown\" ) ) ;\n break ;\n case STEAMDISCOVER_FN_STREAMINGRESPONSE_PORT : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_uint ( tree , hf_steam_ihs_discovery_body_streamingresponse_port , pb . tvb , pb . offset , len , ( guint32 ) value ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" Port=%\" G_GUINT32_FORMAT , ( guint32 ) value ) ;\n break ;\n case STEAMDISCOVER_FN_STREAMINGRESPONSE_ENCRYPTEDSESSIONKEY : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_LENGTHDELIMITED ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_item ( tree , hf_steam_ihs_discovery_body_streamingresponse_encryptedsessionkey , pb . tvb , pb . offset + len , ( gint ) value , ENC_NA ) ;\n len += ( gint ) value ;\n break ;\n case STEAMDISCOVER_FN_STREAMINGRESPONSE_VIRTUALHERELICENSEDDEVICECOUNT : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_int ( tree , hf_steam_ihs_discovery_body_streamingresponse_virtualherelicenseddevicecount , pb . tvb , pb . offset , len , ( gint32 ) value ) ;\n break ;\n default : len = protobuf_dissect_unknown_field ( & pb , & tag , pinfo , tree , NULL ) ;\n break ;\n }\n protobuf_seek_forward ( & pb , len ) ;\n }\n }"}
{"idx": 5829, "target": 0, "func": "static void virtio_pci_notify ( void * opaque , uint16_t vector ) {\n VirtIOPCIProxy * proxy = opaque ;\n if ( msix_enabled ( & proxy -> pci_dev ) ) msix_notify ( & proxy -> pci_dev , vector ) ;\n else qemu_set_irq ( proxy -> pci_dev . irq [ 0 ] , proxy -> vdev -> isr & 1 ) ;\n }"}
{"idx": 5830, "target": 0, "func": "int dissect_h225_TransportAddress ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_TransportAddress , TransportAddress_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 5831, "target": 0, "func": "static vpx_fixed_buf_t pass0 ( vpx_image_t * raw , FILE * infile , const VpxInterface * encoder , const vpx_codec_enc_cfg_t * cfg ) {\n vpx_codec_ctx_t codec ;\n int frame_count = 0 ;\n vpx_fixed_buf_t stats = {\n NULL , 0 }\n ;\n if ( vpx_codec_enc_init ( & codec , encoder -> codec_interface ( ) , cfg , 0 ) ) die_codec ( & codec , \"Failed to initialize encoder\" ) ;\n while ( vpx_img_read ( raw , infile ) ) {\n ++ frame_count ;\n get_frame_stats ( & codec , raw , frame_count , 1 , 0 , VPX_DL_GOOD_QUALITY , & stats ) ;\n }\n while ( get_frame_stats ( & codec , NULL , frame_count , 1 , 0 , VPX_DL_GOOD_QUALITY , & stats ) ) {\n }\n printf ( \"Pass 0 complete. Processed %d frames.\\n\" , frame_count ) ;\n if ( vpx_codec_destroy ( & codec ) ) die_codec ( & codec , \"Failed to destroy codec.\" ) ;\n return stats ;\n }"}
{"idx": 5832, "target": 0, "func": "static inline int16_t mult ( Float11 * f1 , Float11 * f2 ) {\n int res , exp ;\n exp = f1 -> exp + f2 -> exp ;\n res = ( ( ( f1 -> mant * f2 -> mant ) + 0x30 ) >> 4 ) ;\n res = exp > 19 ? res << ( exp - 19 ) : res >> ( 19 - exp ) ;\n return ( f1 -> sign ^ f2 -> sign ) ? - res : res ;\n }"}
{"idx": 5833, "target": 0, "func": "SPL_METHOD ( SplDoublyLinkedList , isEmpty ) {\n long count ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"\" ) == FAILURE ) {\n return ;\n }\n spl_dllist_object_count_elements ( getThis ( ) , & count TSRMLS_CC ) ;\n RETURN_BOOL ( count == 0 ) ;\n }"}
{"idx": 5834, "target": 0, "func": "TEST_F ( ProfileInfoCacheTest , SetSupervisedUserId ) {\n GetCache ( ) -> AddProfileToCache ( GetProfilePath ( \"test\" ) , ASCIIToUTF16 ( \"Test\" ) , base : : string16 ( ) , 0 , std : : string ( ) ) ;\n EXPECT_FALSE ( GetCache ( ) -> ProfileIsSupervisedAtIndex ( 0 ) ) ;\n GetCache ( ) -> SetSupervisedUserIdOfProfileAtIndex ( 0 , \"TEST_ID\" ) ;\n EXPECT_TRUE ( GetCache ( ) -> ProfileIsSupervisedAtIndex ( 0 ) ) ;\n EXPECT_EQ ( \"TEST_ID\" , GetCache ( ) -> GetSupervisedUserIdOfProfileAtIndex ( 0 ) ) ;\n ResetCache ( ) ;\n EXPECT_TRUE ( GetCache ( ) -> ProfileIsSupervisedAtIndex ( 0 ) ) ;\n GetCache ( ) -> SetSupervisedUserIdOfProfileAtIndex ( 0 , std : : string ( ) ) ;\n EXPECT_FALSE ( GetCache ( ) -> ProfileIsSupervisedAtIndex ( 0 ) ) ;\n EXPECT_EQ ( \"\" , GetCache ( ) -> GetSupervisedUserIdOfProfileAtIndex ( 0 ) ) ;\n }"}
{"idx": 5835, "target": 0, "func": "static char * cgroup_to_absolute_path ( struct cgroup_mount_point * mp , const char * path , const char * suffix ) {\n char * prefix = mp -> mount_prefix ;\n char * buf ;\n ssize_t len , rv ;\n if ( path [ 0 ] != '/' ) {\n errno = EINVAL ;\n return NULL ;\n }\n if ( prefix && ! strcmp ( prefix , \"/\" ) ) prefix = NULL ;\n if ( prefix && strncmp ( prefix , path , strlen ( prefix ) ) != 0 ) {\n errno = EINVAL ;\n return NULL ;\n }\n if ( prefix && path [ strlen ( prefix ) ] != '/' && path [ strlen ( prefix ) ] != '\\0' ) {\n errno = EINVAL ;\n return NULL ;\n }\n path += prefix ? strlen ( prefix ) : 0 ;\n len = strlen ( mp -> mount_point ) + strlen ( path ) + ( suffix ? strlen ( suffix ) : 0 ) ;\n buf = calloc ( len + 1 , 1 ) ;\n if ( ! buf ) return NULL ;\n rv = snprintf ( buf , len + 1 , \"%s%s%s\" , mp -> mount_point , path , suffix ? suffix : \"\" ) ;\n if ( rv > len ) {\n free ( buf ) ;\n errno = ENOMEM ;\n return NULL ;\n }\n return buf ;\n }"}
{"idx": 5836, "target": 0, "func": "static ossl_inline int sk_ ## t1 ## _reserve ( STACK_OF ( t1 ) * sk , int n ) {\n return OPENSSL_sk_reserve ( ( OPENSSL_STACK * ) sk , n ) ;\n }\n static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 5837, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( MimeHandlerViewTest , EmbeddedDataUrlLong ) {\n RunTest ( \"test_embedded_data_url_long.html\" ) ;\n }"}
{"idx": 5838, "target": 0, "func": "static PyObject * string_decode ( PyStringObject * self , PyObject * args , PyObject * kwargs ) {\n static char * kwlist [ ] = {\n \"encoding\" , \"errors\" , 0 }\n ;\n char * encoding = NULL ;\n char * errors = NULL ;\n PyObject * v ;\n if ( ! PyArg_ParseTupleAndKeywords ( args , kwargs , \"|ss:decode\" , kwlist , & encoding , & errors ) ) return NULL ;\n v = PyString_AsDecodedObject ( ( PyObject * ) self , encoding , errors ) ;\n if ( v == NULL ) goto onError ;\n if ( ! PyString_Check ( v ) && ! PyUnicode_Check ( v ) ) {\n PyErr_Format ( PyExc_TypeError , \"decoder did not return a string/unicode object \" \"(type=%.400s)\" , Py_TYPE ( v ) -> tp_name ) ;\n Py_DECREF ( v ) ;\n return NULL ;\n }\n return v ;\n onError : return NULL ;\n }"}
{"idx": 5839, "target": 0, "func": "static void test_wl4284_1 ( ) {\n int rc ;\n MYSQL_ROW row ;\n MYSQL_RES * result ;\n DBUG_ENTER ( \"test_wl4284_1\" ) ;\n myheader ( \"test_wl4284_1\" ) ;\n rc = mysql_autocommit ( mysql , FALSE ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS trans\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE trans (a INT) ENGINE= InnoDB\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO trans VALUES(1)\" ) ;\n myquery ( rc ) ;\n rc = mysql_refresh ( mysql , REFRESH_GRANT | REFRESH_TABLES ) ;\n myquery ( rc ) ;\n rc = mysql_rollback ( mysql ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"SELECT * FROM trans\" ) ;\n myquery ( rc ) ;\n result = mysql_use_result ( mysql ) ;\n mytest ( result ) ;\n row = mysql_fetch_row ( result ) ;\n mytest ( row ) ;\n mysql_free_result ( result ) ;\n rc = mysql_autocommit ( mysql , TRUE ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP TABLE trans\" ) ;\n myquery ( rc ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 5840, "target": 0, "func": "fz_colorspace * fz_device_bgr ( fz_context * ctx ) {\n return ctx -> colorspace -> bgr ;\n }"}
{"idx": 5841, "target": 0, "func": "void proto_register_packetbb ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_packetbb_header , {\n \"Packet header\" , \"packetbb.header\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_version , {\n \"Version\" , \"packetbb.version\" , FT_UINT8 , BASE_DEC , NULL , 0xF0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_header_flags , {\n \"Flags\" , \"packetbb.flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0F , NULL , HFILL }\n }\n , {\n & hf_packetbb_header_flags_phasseqnum , {\n \"Has sequence number\" , \"packetbb.flags.phasseqnum\" , FT_BOOLEAN , 8 , TFS ( & tfs_true_false ) , PACKET_HEADER_HASSEQNR , NULL , HFILL }\n }\n , {\n & hf_packetbb_header_flags_phastlv , {\n \"Has tlv block\" , \"packetbb.flags.phastlv\" , FT_BOOLEAN , 8 , TFS ( & tfs_true_false ) , PACKET_HEADER_HASTLV , NULL , HFILL }\n }\n , {\n & hf_packetbb_seqnr , {\n \"Sequence number\" , \"packetbb.seqnr\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_msg , {\n \"Message\" , \"packetbb.msg\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_msgheader , {\n \"Message header\" , \"packetbb.msg.header\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_msgheader_type , {\n \"Type\" , \"packetbb.msg.type\" , FT_UINT8 , BASE_DEC , VALS ( msgheader_type_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_msgheader_flags , {\n \"Flags\" , \"packetbb.msg.flags\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_msgheader_flags_mhasorig , {\n \"Has originator address\" , \"packetbb.msg.flags.mhasorig\" , FT_BOOLEAN , 8 , TFS ( & tfs_true_false ) , MSG_HEADER_HASORIG , NULL , HFILL }\n }\n , {\n & hf_packetbb_msgheader_flags_mhashoplimit , {\n \"Has hoplimit\" , \"packetbb.msg.flags.mhashoplimit\" , FT_BOOLEAN , 8 , TFS ( & tfs_true_false ) , MSG_HEADER_HASHOPLIMIT , NULL , HFILL }\n }\n , {\n & hf_packetbb_msgheader_flags_mhashopcount , {\n \"Has hopcount\" , \"packetbb.msg.flags.mhashopcount\" , FT_BOOLEAN , 8 , TFS ( & tfs_true_false ) , MSG_HEADER_HASHOPCOUNT , NULL , HFILL }\n }\n , {\n & hf_packetbb_msgheader_flags_mhasseqnr , {\n \"Has sequence number\" , \"packetbb.msg.flags.mhasseqnum\" , FT_BOOLEAN , 8 , TFS ( & tfs_true_false ) , MSG_HEADER_HASSEQNR , NULL , HFILL }\n }\n , {\n & hf_packetbb_msgheader_addresssize , {\n \"AddressSize\" , \"packetbb.msg.addrsize\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_msgheader_size , {\n \"Size\" , \"packetbb.msg.size\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_msgheader_origaddripv4 , {\n \"Originator address\" , \"packetbb.msg.origaddr4\" , FT_IPv4 , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_msgheader_origaddripv6 , {\n \"Originator address\" , \"packetbb.msg.origaddr6\" , FT_IPv6 , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_msgheader_origaddrmac , {\n \"Originator address\" , \"packetbb.msg.origaddrmac\" , FT_ETHER , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_msgheader_origaddrcustom , {\n \"Originator address\" , \"packetbb.msg.origaddrcustom\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_msgheader_hoplimit , {\n \"Hop limit\" , \"packetbb.msg.hoplimit\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_msgheader_hopcount , {\n \"Hop count\" , \"packetbb.msg.hopcount\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_msgheader_seqnr , {\n \"Sequence number\" , \"packetbb.msg.seqnum\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_addr , {\n \"Address block\" , \"packetbb.msg.addr\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_addr_num , {\n \"Count\" , \"packetbb.msg.addr.num\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_addr_flags , {\n \"Flags\" , \"packetbb.msg.addr.flags\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_addr_flags_hashead , {\n \"Has head\" , \"packetbb.msg.addr.hashead\" , FT_BOOLEAN , 8 , TFS ( & tfs_true_false ) , ADDR_HASHEAD , NULL , HFILL }\n }\n , {\n & hf_packetbb_addr_flags_hasfulltail , {\n \"Has full tail\" , \"packetbb.msg.addr.hasfulltail\" , FT_BOOLEAN , 8 , TFS ( & tfs_true_false ) , ADDR_HASFULLTAIL , NULL , HFILL }\n }\n , {\n & hf_packetbb_addr_flags_haszerotail , {\n \"Has zero tail\" , \"packetbb.msg.addr.haszerotail\" , FT_BOOLEAN , 8 , TFS ( & tfs_true_false ) , ADDR_HASZEROTAIL , NULL , HFILL }\n }\n , {\n & hf_packetbb_addr_flags_hassingleprelen , {\n \"Has single prelen\" , \"packetbb.msg.addr.hassingleprelen\" , FT_BOOLEAN , 8 , TFS ( & tfs_true_false ) , ADDR_HASSINGLEPRELEN , NULL , HFILL }\n }\n , {\n & hf_packetbb_addr_flags_hasmultiprelen , {\n \"Has multiple prelen\" , \"packetbb.msg.addr.hasmultiprelen\" , FT_BOOLEAN , 8 , TFS ( & tfs_true_false ) , ADDR_HASMULTIPRELEN , NULL , HFILL }\n }\n , {\n & hf_packetbb_addr_head , {\n \"Head\" , \"packetbb.msg.addr.head\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_addr_tail , {\n \"Tail\" , \"packetbb.msg.addr.tail\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_addr_value [ 0 ] , {\n \"Address\" , \"packetbb.msg.addr.value4\" , FT_IPv4 , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_addr_value [ 1 ] , {\n \"Address\" , \"packetbb.msg.addr.value6\" , FT_IPv6 , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_addr_value [ 2 ] , {\n \"Address\" , \"packetbb.msg.addr.valuemac\" , FT_ETHER , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_addr_value [ 3 ] , {\n \"Address\" , \"packetbb.msg.addr.valuecustom\" , FT_UINT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_addr_value_mid , {\n \"Mid\" , \"packetbb.msg.addr.value.mid\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_addr_value_prefix , {\n \"Prefix\" , \"packetbb.msg.addr.value.prefix\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_tlvblock , {\n \"TLV block\" , \"packetbb.tlvblock\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_tlvblock_length , {\n \"Length\" , \"packetbb.tlvblock.length\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_tlv , {\n \"TLV\" , \"packetbb.tlv\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_pkttlv_type , {\n \"Type\" , \"packetbb.pkttlv.type\" , FT_UINT8 , BASE_DEC , VALS ( pkttlv_type_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_msgtlv_type , {\n \"Type\" , \"packetbb.msgtlv.type\" , FT_UINT8 , BASE_DEC , VALS ( msgtlv_type_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_addrtlv_type , {\n \"Type\" , \"packetbb.addrtlv.type\" , FT_UINT8 , BASE_DEC , VALS ( addrtlv_type_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_tlv_flags , {\n \"Flags\" , \"packetbb.tlv.flags\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_tlv_typeext , {\n \"Extended Type\" , \"packetbb.tlv.typeext\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_tlv_flags_hastypext , {\n \"Has type-ext\" , \"packetbb.tlv.hastypeext\" , FT_BOOLEAN , 8 , TFS ( & tfs_true_false ) , TLV_HAS_TYPEEXT , NULL , HFILL }\n }\n , {\n & hf_packetbb_tlv_flags_hassingleindex , {\n \"Has single index\" , \"packetbb.tlv.hassingleindex\" , FT_BOOLEAN , 8 , TFS ( & tfs_true_false ) , TLV_HAS_SINGLEINDEX , NULL , HFILL }\n }\n , {\n & hf_packetbb_tlv_flags_hasmultiindex , {\n \"Has multiple indices\" , \"packetbb.tlv.hasmultiindex\" , FT_BOOLEAN , 8 , TFS ( & tfs_true_false ) , TLV_HAS_MULTIINDEX , NULL , HFILL }\n }\n , {\n & hf_packetbb_tlv_flags_hasvalue , {\n \"Has value\" , \"packetbb.tlv.hasvalue\" , FT_BOOLEAN , 8 , TFS ( & tfs_true_false ) , TLV_HAS_VALUE , NULL , HFILL }\n }\n , {\n & hf_packetbb_tlv_flags_hasextlen , {\n \"Has extended length\" , \"packetbb.tlv.hasextlen\" , FT_BOOLEAN , 8 , TFS ( & tfs_true_false ) , TLV_HAS_EXTLEN , NULL , HFILL }\n }\n , {\n & hf_packetbb_tlv_flags_hasmultivalue , {\n \"Has multiple values\" , \"packetbb.tlv.hasmultivalue\" , FT_BOOLEAN , 8 , TFS ( & tfs_true_false ) , TLV_HAS_MULTIVALUE , NULL , HFILL }\n }\n , {\n & hf_packetbb_tlv_indexstart , {\n \"Index start\" , \"packetbb.tlv.indexstart\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_tlv_indexend , {\n \"Index end\" , \"packetbb.tlv.indexend\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_tlv_length , {\n \"Length\" , \"packetbb.tlv.length\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_tlv_value , {\n \"Value\" , \"packetbb.tlv.value\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_packetbb_tlv_multivalue , {\n \"Multivalue\" , \"packetbb.tlv.multivalue\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n }\n ;\n gint * ett_base [ ] = {\n & ett_packetbb , & ett_packetbb_header , & ett_packetbb_header_flags , & ett_packetbb_msgheader , & ett_packetbb_msgheader_flags , & ett_packetbb_addr , & ett_packetbb_addr_flags , & ett_packetbb_addr_value , & ett_packetbb_tlvblock , & ett_packetbb_tlv_flags , & ett_packetbb_tlv_value }\n ;\n static ei_register_info ei [ ] = {\n {\n & ei_packetbb_error , {\n \"packetbb.error\" , PI_PROTOCOL , PI_WARN , \"ERROR!\" , EXPFILL }\n }\n , }\n ;\n static gint * ett [ array_length ( ett_base ) + 2 * PACKETBB_MSG_TLV_LENGTH ] ;\n module_t * packetbb_module ;\n expert_module_t * expert_packetbb ;\n int i , j ;\n memcpy ( ett , ett_base , sizeof ( ett_base ) ) ;\n j = array_length ( ett_base ) ;\n for ( i = 0 ;\n i < PACKETBB_MSG_TLV_LENGTH ;\n i ++ ) {\n ett_packetbb_msg [ i ] = - 1 ;\n ett_packetbb_tlv [ i ] = - 1 ;\n ett [ j ++ ] = & ett_packetbb_msg [ i ] ;\n ett [ j ++ ] = & ett_packetbb_tlv [ i ] ;\n }\n proto_packetbb = proto_register_protocol ( \"PacketBB Protocol\" , \"PacketBB\" , \"packetbb\" ) ;\n proto_register_field_array ( proto_packetbb , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n expert_packetbb = expert_register_protocol ( proto_packetbb ) ;\n expert_register_field_array ( expert_packetbb , ei , array_length ( ei ) ) ;\n packetbb_module = prefs_register_protocol ( proto_packetbb , proto_reg_handoff_packetbb ) ;\n prefs_register_uint_preference ( packetbb_module , \"communication_port\" , \"UDP port for packetbb\" , \"UDP communication port for packetbb PDUs\" , 10 , & global_packetbb_port ) ;\n }"}
{"idx": 5842, "target": 0, "func": "void vp9_initialize_rd_consts ( VP9_COMP * cpi ) {\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCK * const x = & cpi -> mb ;\n RD_OPT * const rd = & cpi -> rd ;\n int i ;\n vp9_clear_system_state ( ) ;\n rd -> RDDIV = RDDIV_BITS ;\n rd -> RDMULT = vp9_compute_rd_mult ( cpi , cm -> base_qindex + cm -> y_dc_delta_q ) ;\n x -> errorperbit = rd -> RDMULT / RD_MULT_EPB_RATIO ;\n x -> errorperbit += ( x -> errorperbit == 0 ) ;\n x -> select_tx_size = ( cpi -> sf . tx_size_search_method == USE_LARGESTALL && cm -> frame_type != KEY_FRAME ) ? 0 : 1 ;\n set_block_thresholds ( cm , rd ) ;\n if ( ! cpi -> sf . use_nonrd_pick_mode || cm -> frame_type == KEY_FRAME ) {\n fill_token_costs ( x -> token_costs , cm -> fc . coef_probs ) ;\n for ( i = 0 ;\n i < PARTITION_CONTEXTS ;\n ++ i ) vp9_cost_tokens ( cpi -> partition_cost [ i ] , get_partition_probs ( cm , i ) , vp9_partition_tree ) ;\n }\n if ( ! cpi -> sf . use_nonrd_pick_mode || ( cm -> current_video_frame & 0x07 ) == 1 || cm -> frame_type == KEY_FRAME ) {\n fill_mode_costs ( cpi ) ;\n if ( ! frame_is_intra_only ( cm ) ) {\n vp9_build_nmv_cost_table ( x -> nmvjointcost , cm -> allow_high_precision_mv ? x -> nmvcost_hp : x -> nmvcost , & cm -> fc . nmvc , cm -> allow_high_precision_mv ) ;\n for ( i = 0 ;\n i < INTER_MODE_CONTEXTS ;\n ++ i ) vp9_cost_tokens ( ( int * ) cpi -> inter_mode_cost [ i ] , cm -> fc . inter_mode_probs [ i ] , vp9_inter_mode_tree ) ;\n }\n }\n }"}
{"idx": 5843, "target": 0, "func": "static inline int default_protocol_stream ( int protocol ) {\n return ( protocol == IPPROTO_IP || protocol == IPPROTO_TCP ) ;\n }"}
{"idx": 5844, "target": 1, "func": "static void cpu_request_exit ( void * opaque , int irq , int level ) {\n CPUPPCState * env = cpu_single_env ;\n if ( env && level ) {\n cpu_exit ( CPU ( ppc_env_get_cpu ( env ) ) ) ;\n }\n }"}
{"idx": 5845, "target": 0, "func": "void vp9_setup_pre_planes ( MACROBLOCKD * xd , int idx , const YV12_BUFFER_CONFIG * src , int mi_row , int mi_col , const struct scale_factors * sf ) {\n if ( src != NULL ) {\n int i ;\n uint8_t * const buffers [ 4 ] = {\n src -> y_buffer , src -> u_buffer , src -> v_buffer , src -> alpha_buffer }\n ;\n const int strides [ 4 ] = {\n src -> y_stride , src -> uv_stride , src -> uv_stride , src -> alpha_stride }\n ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n ++ i ) {\n struct macroblockd_plane * const pd = & xd -> plane [ i ] ;\n setup_pred_plane ( & pd -> pre [ idx ] , buffers [ i ] , strides [ i ] , mi_row , mi_col , sf , pd -> subsampling_x , pd -> subsampling_y ) ;\n }\n }\n }"}
{"idx": 5846, "target": 0, "func": "static void join_print ( u_char * text , size_t len , struct ip_addr * L3_src ) {\n int ret ;\n if ( GBL_OPTIONS -> regex && regexec ( GBL_OPTIONS -> regex , ( const char * ) text , 0 , NULL , 0 ) != 0 ) {\n return ;\n }\n SAFE_REALLOC ( dispbuf , hex_len ( len ) * sizeof ( u_char ) + 1 ) ;\n ret = GBL_FORMAT ( text , len , dispbuf ) ;\n dispbuf [ ret ] = 0 ;\n if ( ! ip_addr_cmp ( L3_src , & curr_conn -> L3_addr1 ) ) wdg_scroll_print ( wdg_join , EC_COLOR_JOIN1 , \"%s\" , dispbuf ) ;\n else wdg_scroll_print ( wdg_join , EC_COLOR_JOIN2 , \"%s\" , dispbuf ) ;\n }"}
{"idx": 5847, "target": 0, "func": "TSMLoc TSFetchRespHdrMLocGet ( TSFetchSM fetch_sm ) {\n sdk_assert ( sdk_sanity_check_fetch_sm ( fetch_sm ) == TS_SUCCESS ) ;\n return ( ( FetchSM * ) fetch_sm ) -> resp_hdr_mloc ( ) ;\n }"}
{"idx": 5848, "target": 1, "func": "extern int name ( int ) __THROW __exctype ( isalnum ) ;\n __exctype ( isalpha ) ;\n __exctype ( iscntrl ) ;\n __exctype ( isdigit ) ;\n __exctype ( islower ) ;\n __exctype ( isgraph ) ;\n __exctype ( isprint ) ;\n __exctype ( ispunct )"}
{"idx": 5849, "target": 0, "func": "int qemuMonitorJSONGetBlockStatsParamsNumber ( qemuMonitorPtr mon , int * nparams ) {\n int ret , i , num = 0 ;\n virJSONValuePtr cmd = qemuMonitorJSONMakeCommand ( \"query-blockstats\" , NULL ) ;\n virJSONValuePtr reply = NULL ;\n virJSONValuePtr devices = NULL ;\n virJSONValuePtr dev = NULL ;\n virJSONValuePtr stats = NULL ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n if ( ret < 0 ) goto cleanup ;\n ret = - 1 ;\n devices = virJSONValueObjectGet ( reply , \"return\" ) ;\n if ( ! devices || devices -> type != VIR_JSON_TYPE_ARRAY ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"blockstats reply was missing device list\" ) ) ;\n goto cleanup ;\n }\n dev = virJSONValueArrayGet ( devices , 0 ) ;\n if ( ! dev || dev -> type != VIR_JSON_TYPE_OBJECT ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"blockstats device entry was not in expected format\" ) ) ;\n goto cleanup ;\n }\n if ( ( stats = virJSONValueObjectGet ( dev , \"stats\" ) ) == NULL || stats -> type != VIR_JSON_TYPE_OBJECT ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"blockstats stats entry was not in expected format\" ) ) ;\n goto cleanup ;\n }\n for ( i = 0 ;\n i < stats -> data . object . npairs ;\n i ++ ) {\n const char * key = stats -> data . object . pairs [ i ] . key ;\n if ( STREQ ( key , \"rd_bytes\" ) || STREQ ( key , \"rd_operations\" ) || STREQ ( key , \"rd_total_times_ns\" ) || STREQ ( key , \"wr_bytes\" ) || STREQ ( key , \"wr_operations\" ) || STREQ ( key , \"wr_total_times_ns\" ) || STREQ ( key , \"flush_operations\" ) || STREQ ( key , \"flush_total_times_ns\" ) ) {\n num ++ ;\n }\n else {\n if ( STRNEQ ( key , \"wr_highest_offset\" ) ) VIR_DEBUG ( \"Missed block stat: %s\" , key ) ;\n }\n }\n * nparams = num ;\n ret = 0 ;\n cleanup : virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 5850, "target": 0, "func": "fz_matrix * pdf_xobject_matrix ( fz_context * ctx , pdf_xobject * xobj , fz_matrix * matrix ) {\n return pdf_to_matrix ( ctx , pdf_dict_get ( ctx , xobj -> obj , PDF_NAME_Matrix ) , matrix ) ;\n }"}
{"idx": 5851, "target": 0, "func": "static int unpack_superblocks ( Vp3DecodeContext * s , GetBitContext * gb ) {\n int superblock_starts [ 3 ] = {\n 0 , s -> u_superblock_start , s -> v_superblock_start }\n ;\n int bit = 0 ;\n int current_superblock = 0 ;\n int current_run = 0 ;\n int num_partial_superblocks = 0 ;\n int i , j ;\n int current_fragment ;\n int plane ;\n if ( s -> keyframe ) {\n memset ( s -> superblock_coding , SB_FULLY_CODED , s -> superblock_count ) ;\n }\n else {\n bit = get_bits1 ( gb ) ^ 1 ;\n current_run = 0 ;\n while ( current_superblock < s -> superblock_count && get_bits_left ( gb ) > 0 ) {\n if ( s -> theora && current_run == MAXIMUM_LONG_BIT_RUN ) bit = get_bits1 ( gb ) ;\n else bit ^= 1 ;\n current_run = get_vlc2 ( gb , s -> superblock_run_length_vlc . table , 6 , 2 ) + 1 ;\n if ( current_run == 34 ) current_run += get_bits ( gb , 12 ) ;\n if ( current_superblock + current_run > s -> superblock_count ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Invalid partially coded superblock run length\\n\" ) ;\n return - 1 ;\n }\n memset ( s -> superblock_coding + current_superblock , bit , current_run ) ;\n current_superblock += current_run ;\n if ( bit ) num_partial_superblocks += current_run ;\n }\n if ( num_partial_superblocks < s -> superblock_count ) {\n int superblocks_decoded = 0 ;\n current_superblock = 0 ;\n bit = get_bits1 ( gb ) ^ 1 ;\n current_run = 0 ;\n while ( superblocks_decoded < s -> superblock_count - num_partial_superblocks && get_bits_left ( gb ) > 0 ) {\n if ( s -> theora && current_run == MAXIMUM_LONG_BIT_RUN ) bit = get_bits1 ( gb ) ;\n else bit ^= 1 ;\n current_run = get_vlc2 ( gb , s -> superblock_run_length_vlc . table , 6 , 2 ) + 1 ;\n if ( current_run == 34 ) current_run += get_bits ( gb , 12 ) ;\n for ( j = 0 ;\n j < current_run ;\n current_superblock ++ ) {\n if ( current_superblock >= s -> superblock_count ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Invalid fully coded superblock run length\\n\" ) ;\n return - 1 ;\n }\n if ( s -> superblock_coding [ current_superblock ] == SB_NOT_CODED ) {\n s -> superblock_coding [ current_superblock ] = 2 * bit ;\n j ++ ;\n }\n }\n superblocks_decoded += current_run ;\n }\n }\n if ( num_partial_superblocks ) {\n current_run = 0 ;\n bit = get_bits1 ( gb ) ;\n bit ^= 1 ;\n }\n }\n s -> total_num_coded_frags = 0 ;\n memset ( s -> macroblock_coding , MODE_COPY , s -> macroblock_count ) ;\n for ( plane = 0 ;\n plane < 3 ;\n plane ++ ) {\n int sb_start = superblock_starts [ plane ] ;\n int sb_end = sb_start + ( plane ? s -> c_superblock_count : s -> y_superblock_count ) ;\n int num_coded_frags = 0 ;\n for ( i = sb_start ;\n i < sb_end && get_bits_left ( gb ) > 0 ;\n i ++ ) {\n for ( j = 0 ;\n j < 16 ;\n j ++ ) {\n current_fragment = s -> superblock_fragments [ i * 16 + j ] ;\n if ( current_fragment != - 1 ) {\n int coded = s -> superblock_coding [ i ] ;\n if ( s -> superblock_coding [ i ] == SB_PARTIALLY_CODED ) {\n if ( current_run -- == 0 ) {\n bit ^= 1 ;\n current_run = get_vlc2 ( gb , s -> fragment_run_length_vlc . table , 5 , 2 ) ;\n }\n coded = bit ;\n }\n if ( coded ) {\n s -> all_fragments [ current_fragment ] . coding_method = MODE_INTER_NO_MV ;\n s -> coded_fragment_list [ plane ] [ num_coded_frags ++ ] = current_fragment ;\n }\n else {\n s -> all_fragments [ current_fragment ] . coding_method = MODE_COPY ;\n }\n }\n }\n }\n s -> total_num_coded_frags += num_coded_frags ;\n for ( i = 0 ;\n i < 64 ;\n i ++ ) s -> num_coded_frags [ plane ] [ i ] = num_coded_frags ;\n if ( plane < 2 ) s -> coded_fragment_list [ plane + 1 ] = s -> coded_fragment_list [ plane ] + num_coded_frags ;\n }\n return 0 ;\n }"}
{"idx": 5852, "target": 0, "func": "static guint mac_is_channel_hash ( gconstpointer key ) {\n const mac_is_channel * ch = ( const mac_is_channel * ) key ;\n return ( ch -> ueid << 4 ) | ch -> lchid ;\n }"}
{"idx": 5853, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( HttpsEngagementPageLoadMetricsBrowserTest , Navigate_Https ) {\n StartHttpsServer ( false ) ;\n NavigateTwiceInTabAndClose ( https_test_server_ -> GetURL ( \"/simple.html\" ) , GURL ( chrome : : kChromeUIVersionURL ) ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpEngagementHistogram , 0 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementHistogram , 1 ) ;\n }"}
{"idx": 5854, "target": 0, "func": "static int mi_drop_all_indexes ( MI_CHECK * param , MI_INFO * info , my_bool force ) {\n MYISAM_SHARE * share = info -> s ;\n MI_STATE_INFO * state = & share -> state ;\n uint i ;\n int error ;\n DBUG_ENTER ( \"mi_drop_all_indexes\" ) ;\n if ( ! force && ( param -> testflag & T_CREATE_MISSING_KEYS ) ) {\n DBUG_PRINT ( \"repair\" , ( \"creating missing indexes\" ) ) ;\n for ( i = 0 ;\n i < share -> base . keys ;\n i ++ ) {\n DBUG_PRINT ( \"repair\" , ( \"index #: %u key_root: 0x%lx active: %d\" , i , ( long ) state -> key_root [ i ] , mi_is_key_active ( state -> key_map , i ) ) ) ;\n if ( ( state -> key_root [ i ] != HA_OFFSET_ERROR ) && ! mi_is_key_active ( state -> key_map , i ) ) {\n DBUG_PRINT ( \"repair\" , ( \"nonempty and disabled: recreate all\" ) ) ;\n break ;\n }\n }\n if ( i >= share -> base . keys ) {\n DBUG_PRINT ( \"repair\" , ( \"all disabled are empty: create missing\" ) ) ;\n error = flush_key_blocks ( share -> key_cache , share -> kfile , FLUSH_FORCE_WRITE ) ;\n goto end ;\n }\n mi_clear_all_keys_active ( state -> key_map ) ;\n DBUG_PRINT ( \"repair\" , ( \"declared all indexes disabled\" ) ) ;\n }\n if ( ( error = flush_key_blocks ( share -> key_cache , share -> kfile , FLUSH_IGNORE_CHANGED ) ) ) goto end ;\n for ( i = 0 ;\n i < share -> base . keys ;\n i ++ ) state -> key_root [ i ] = HA_OFFSET_ERROR ;\n for ( i = 0 ;\n i < state -> header . max_block_size_index ;\n i ++ ) state -> key_del [ i ] = HA_OFFSET_ERROR ;\n info -> state -> key_file_length = share -> base . keystart ;\n DBUG_PRINT ( \"repair\" , ( \"dropped all indexes\" ) ) ;\n end : DBUG_RETURN ( error ) ;\n }"}
{"idx": 5855, "target": 0, "func": "static int SpoolssWritePrinter_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n e_ctx_hnd policy_hnd ;\n char * pol_name ;\n guint32 size ;\n proto_item * item ;\n proto_tree * subtree ;\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , & policy_hnd , NULL , FALSE , FALSE ) ;\n dcerpc_fetch_polhnd_data ( & policy_hnd , & pol_name , NULL , NULL , NULL , pinfo -> num ) ;\n if ( pol_name ) col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , pol_name ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_buffer_size , & size ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %d bytes\" , size ) ;\n subtree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_writeprinter_buffer , & item , \"Buffer\" ) ;\n offset = dissect_ndr_uint8s ( tvb , offset , pinfo , subtree , di , drep , hf_buffer_data , size , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_buffer_size , NULL ) ;\n proto_item_set_len ( item , size + 4 ) ;\n return offset ;\n }"}
{"idx": 5856, "target": 1, "func": "static void read_sbr_dtdf ( SpectralBandReplication * sbr , GetBitContext * gb , SBRData * ch_data ) {\n get_bits1_vector ( gb , ch_data -> bs_df_env , ch_data -> bs_num_env ) ;\n get_bits1_vector ( gb , ch_data -> bs_df_noise , ch_data -> bs_num_noise ) ;\n }"}
{"idx": 5857, "target": 0, "func": "static int dissect_pvfs2_io_request ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"handle\" , NULL ) ;\n offset = dissect_pvfs_fs_id ( tvb , tree , offset ) ;\n offset += 4 ;\n offset = dissect_pvfs_io_type ( tvb , tree , offset ) ;\n offset = dissect_pvfs_flowproto_type ( tvb , tree , offset ) ;\n proto_tree_add_item ( tree , hf_pvfs_server_nr , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_pvfs_server_count , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n offset = dissect_pvfs_distribution ( tvb , tree , offset ) ;\n proto_tree_add_item ( tree , hf_pvfs_numreq , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n offset += 4 ;\n dissect_pvfs_pint_request ( tvb , tree , offset ) ;\n offset = tvb_reported_length ( tvb ) - 16 ;\n proto_tree_add_item ( tree , hf_pvfs_offset , tvb , offset , 8 , ENC_LITTLE_ENDIAN ) ;\n offset += 8 ;\n proto_tree_add_item ( tree , hf_pvfs_size , tvb , offset , 8 , ENC_LITTLE_ENDIAN ) ;\n offset += 8 ;\n return offset ;\n }"}
{"idx": 5858, "target": 0, "func": "static void add_warning ( Scanner * s , char * error ) {\n s -> errors -> warning_count ++ ;\n s -> errors -> warning_messages = realloc ( s -> errors -> warning_messages , s -> errors -> warning_count * sizeof ( timelib_error_message ) ) ;\n s -> errors -> warning_messages [ s -> errors -> warning_count - 1 ] . position = s -> tok ? s -> tok - s -> str : 0 ;\n s -> errors -> warning_messages [ s -> errors -> warning_count - 1 ] . character = s -> tok ? * s -> tok : 0 ;\n s -> errors -> warning_messages [ s -> errors -> warning_count - 1 ] . message = strdup ( error ) ;\n }"}
{"idx": 5859, "target": 0, "func": "static void test_fetch_tiny ( ) {\n int rc ;\n myheader ( \"test_fetch_tiny\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_bind_fetch\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_bind_fetch(c1 tinyint unsigned, \\ c2 tinyint, \\ c3 tinyint unsigned, \\ c4 tinyint, \\ c5 tinyint, \\ c6 tinyint, \\ c7 tinyint unsigned)\" ) ;\n myquery ( rc ) ;\n bind_fetch ( 3 ) ;\n }"}
{"idx": 5860, "target": 0, "func": "CURLcode Curl_http_readwrite_headers ( struct Curl_easy * data , struct connectdata * conn , ssize_t * nread , bool * stop_reading ) {\n CURLcode result ;\n struct SingleRequest * k = & data -> req ;\n do {\n size_t rest_length ;\n size_t full_length ;\n int writetype ;\n k -> str_start = k -> str ;\n k -> end_ptr = memchr ( k -> str_start , 0x0a , * nread ) ;\n if ( ! k -> end_ptr ) {\n result = header_append ( data , k , * nread ) ;\n if ( result ) return result ;\n if ( ! k -> headerline && ( k -> hbuflen > 5 ) ) {\n if ( ! checkprotoprefix ( data , conn , data -> state . headerbuff ) ) {\n k -> header = FALSE ;\n k -> badheader = HEADER_ALLBAD ;\n break ;\n }\n }\n break ;\n }\n rest_length = ( k -> end_ptr - k -> str ) + 1 ;\n * nread -= ( ssize_t ) rest_length ;\n k -> str = k -> end_ptr + 1 ;\n full_length = k -> str - k -> str_start ;\n result = header_append ( data , k , full_length ) ;\n if ( result ) return result ;\n k -> end_ptr = k -> hbufp ;\n k -> p = data -> state . headerbuff ;\n if ( ! k -> headerline ) {\n if ( ( k -> hbuflen > 5 ) && ! checkprotoprefix ( data , conn , data -> state . headerbuff ) ) {\n k -> header = FALSE ;\n if ( * nread ) k -> badheader = HEADER_PARTHEADER ;\n else {\n k -> badheader = HEADER_ALLBAD ;\n * nread = ( ssize_t ) rest_length ;\n }\n break ;\n }\n }\n if ( ( 0x0a == * k -> p ) || ( 0x0d == * k -> p ) ) {\n size_t headerlen ;\n # ifdef CURL_DOES_CONVERSIONS if ( 0x0d == * k -> p ) {\n * k -> p = '\\r' ;\n k -> p ++ ;\n }\n if ( 0x0a == * k -> p ) {\n * k -> p = '\\n' ;\n k -> p ++ ;\n }\n # else if ( '\\r' == * k -> p ) k -> p ++ ;\n if ( '\\n' == * k -> p ) k -> p ++ ;\n # endif if ( 100 <= k -> httpcode && 199 >= k -> httpcode ) {\n switch ( k -> httpcode ) {\n case 100 : k -> header = TRUE ;\n k -> headerline = 0 ;\n if ( k -> exp100 > EXP100_SEND_DATA ) {\n k -> exp100 = EXP100_SEND_DATA ;\n k -> keepon |= KEEP_SEND ;\n }\n break ;\n case 101 : if ( k -> upgr101 == UPGR101_REQUESTED ) {\n infof ( data , \"Received 101\\n\" ) ;\n k -> upgr101 = UPGR101_RECEIVED ;\n k -> header = TRUE ;\n k -> headerline = 0 ;\n result = Curl_http2_switched ( conn , k -> str , * nread ) ;\n if ( result ) return result ;\n * nread = 0 ;\n }\n else {\n k -> header = FALSE ;\n }\n break ;\n default : k -> header = TRUE ;\n k -> headerline = 0 ;\n break ;\n }\n }\n else {\n k -> header = FALSE ;\n if ( ( k -> size == - 1 ) && ! k -> chunk && ! conn -> bits . close && ( conn -> httpversion == 11 ) && ! ( conn -> handler -> protocol & CURLPROTO_RTSP ) && data -> set . httpreq != HTTPREQ_HEAD ) {\n infof ( data , \"no chunk, no close, no size. Assume close to \" \"signal end\\n\" ) ;\n streamclose ( conn , \"HTTP: No end-of-message indicator\" ) ;\n }\n }\n # if defined ( USE_NTLM ) if ( conn -> bits . close && ( ( ( data -> req . httpcode == 401 ) && ( conn -> ntlm . state == NTLMSTATE_TYPE2 ) ) || ( ( data -> req . httpcode == 407 ) && ( conn -> proxyntlm . state == NTLMSTATE_TYPE2 ) ) ) ) {\n infof ( data , \"Connection closure while negotiating auth (HTTP 1.0?)\\n\" ) ;\n data -> state . authproblem = TRUE ;\n }\n # endif if ( http_should_fail ( conn ) ) {\n failf ( data , \"The requested URL returned error: %d\" , k -> httpcode ) ;\n return CURLE_HTTP_RETURNED_ERROR ;\n }\n writetype = CLIENTWRITE_HEADER ;\n if ( data -> set . include_header ) writetype |= CLIENTWRITE_BODY ;\n headerlen = k -> p - data -> state . headerbuff ;\n result = Curl_client_write ( conn , writetype , data -> state . headerbuff , headerlen ) ;\n if ( result ) return result ;\n data -> info . header_size += ( long ) headerlen ;\n data -> req . headerbytecount += ( long ) headerlen ;\n data -> req . deductheadercount = ( 100 <= k -> httpcode && 199 >= k -> httpcode ) ? data -> req . headerbytecount : 0 ;\n result = Curl_http_auth_act ( conn ) ;\n if ( result ) return result ;\n if ( k -> httpcode >= 300 ) {\n if ( ( ! conn -> bits . authneg ) && ! conn -> bits . close && ! conn -> bits . rewindaftersend ) {\n switch ( data -> set . httpreq ) {\n case HTTPREQ_PUT : case HTTPREQ_POST : case HTTPREQ_POST_FORM : if ( ! k -> upload_done ) {\n if ( data -> set . http_keep_sending_on_error ) {\n infof ( data , \"HTTP error before end of send, keep sending\\n\" ) ;\n if ( k -> exp100 > EXP100_SEND_DATA ) {\n k -> exp100 = EXP100_SEND_DATA ;\n k -> keepon |= KEEP_SEND ;\n }\n }\n else {\n infof ( data , \"HTTP error before end of send, stop sending\\n\" ) ;\n streamclose ( conn , \"Stop sending data before everything sent\" ) ;\n k -> upload_done = TRUE ;\n k -> keepon &= ~ KEEP_SEND ;\n if ( data -> state . expect100header ) k -> exp100 = EXP100_FAILED ;\n }\n }\n break ;\n default : break ;\n }\n }\n if ( conn -> bits . rewindaftersend ) {\n infof ( data , \"Keep sending data to get tossed away!\\n\" ) ;\n k -> keepon |= KEEP_SEND ;\n }\n }\n if ( ! k -> header ) {\n if ( data -> set . opt_no_body ) * stop_reading = TRUE ;\n # ifndef CURL_DISABLE_RTSP else if ( ( conn -> handler -> protocol & CURLPROTO_RTSP ) && ( data -> set . rtspreq == RTSPREQ_DESCRIBE ) && ( k -> size <= - 1 ) ) * stop_reading = TRUE ;\n # endif else {\n if ( k -> chunk ) k -> maxdownload = k -> size = - 1 ;\n }\n if ( - 1 != k -> size ) {\n Curl_pgrsSetDownloadSize ( data , k -> size ) ;\n k -> maxdownload = k -> size ;\n }\n if ( 0 == k -> maxdownload ) * stop_reading = TRUE ;\n if ( * stop_reading ) {\n k -> keepon &= ~ KEEP_RECV ;\n }\n if ( data -> set . verbose ) Curl_debug ( data , CURLINFO_HEADER_IN , k -> str_start , headerlen , conn ) ;\n break ;\n }\n k -> hbufp = data -> state . headerbuff ;\n k -> hbuflen = 0 ;\n continue ;\n }\n if ( ! k -> headerline ++ ) {\n int httpversion_major ;\n int rtspversion_major ;\n int nc = 0 ;\n # ifdef CURL_DOES_CONVERSIONS # define HEADER1 scratch # define SCRATCHSIZE 21 CURLcode res ;\n char scratch [ SCRATCHSIZE + 1 ] ;\n strncpy ( & scratch [ 0 ] , k -> p , SCRATCHSIZE ) ;\n scratch [ SCRATCHSIZE ] = 0 ;\n res = Curl_convert_from_network ( data , & scratch [ 0 ] , SCRATCHSIZE ) ;\n if ( res ) return res ;\n # else # define HEADER1 k -> p # endif if ( conn -> handler -> protocol & PROTO_FAMILY_HTTP ) {\n nc = sscanf ( HEADER1 , \" HTTP/%d.%d %d\" , & httpversion_major , & conn -> httpversion , & k -> httpcode ) ;\n if ( nc == 1 && httpversion_major == 2 && == sscanf ( HEADER1 , \" HTTP/2 %d\" , & k -> httpcode ) ) {\n conn -> httpversion = 0 ;\n nc = 3 ;\n }\n if ( nc == 3 ) {\n conn -> httpversion += 10 * httpversion_major ;\n if ( k -> upgr101 == UPGR101_RECEIVED ) {\n if ( conn -> httpversion != 20 ) infof ( data , \"Lying server, not serving HTTP/2\\n\" ) ;\n }\n }\n else {\n nc = sscanf ( HEADER1 , \" HTTP %3d\" , & k -> httpcode ) ;\n conn -> httpversion = 10 ;\n if ( ! nc ) {\n if ( checkhttpprefix ( data , k -> p ) ) {\n nc = 1 ;\n k -> httpcode = 200 ;\n conn -> httpversion = 10 ;\n }\n }\n }\n }\n else if ( conn -> handler -> protocol & CURLPROTO_RTSP ) {\n nc = sscanf ( HEADER1 , \" RTSP/%d.%d %3d\" , & rtspversion_major , & conn -> rtspversion , & k -> httpcode ) ;\n if ( nc == 3 ) {\n conn -> rtspversion += 10 * rtspversion_major ;\n conn -> httpversion = 11 ;\n }\n else {\n nc = 0 ;\n }\n }\n if ( nc ) {\n data -> info . httpcode = k -> httpcode ;\n data -> info . httpversion = conn -> httpversion ;\n if ( ! data -> state . httpversion || data -> state . httpversion > conn -> httpversion ) data -> state . httpversion = conn -> httpversion ;\n if ( data -> set . http_fail_on_error && ( k -> httpcode >= 400 ) && ( ( k -> httpcode != 401 ) || ! conn -> bits . user_passwd ) && ( ( k -> httpcode != 407 ) || ! conn -> bits . proxy_user_passwd ) ) {\n if ( data -> state . resume_from && ( data -> set . httpreq == HTTPREQ_GET ) && ( k -> httpcode == 416 ) ) {\n }\n else {\n print_http_error ( data ) ;\n return CURLE_HTTP_RETURNED_ERROR ;\n }\n }\n if ( conn -> httpversion == 10 ) {\n infof ( data , \"HTTP 1.0, assume close after body\\n\" ) ;\n connclose ( conn , \"HTTP/1.0 close after body\" ) ;\n }\n else if ( conn -> httpversion == 20 || ( k -> upgr101 == UPGR101_REQUESTED && k -> httpcode == 101 ) ) {\n DEBUGF ( infof ( data , \"HTTP/2 found, allow multiplexing\\n\" ) ) ;\n conn -> bundle -> multiuse = BUNDLE_MULTIPLEX ;\n }\n else if ( conn -> httpversion >= 11 && ! conn -> bits . close ) {\n DEBUGF ( infof ( data , \"HTTP 1.1 or later with persistent connection, \" \"pipelining supported\\n\" ) ) ;\n if ( conn -> bundle ) {\n if ( ! Curl_pipeline_site_blacklisted ( data , conn ) ) conn -> bundle -> multiuse = BUNDLE_PIPELINING ;\n }\n }\n switch ( k -> httpcode ) {\n case 204 : case 304 : if ( data -> set . timecondition ) data -> info . timecond = TRUE ;\n k -> size = 0 ;\n k -> maxdownload = 0 ;\n k -> ignorecl = TRUE ;\n break ;\n default : break ;\n }\n }\n else {\n k -> header = FALSE ;\n break ;\n }\n }\n result = Curl_convert_from_network ( data , k -> p , strlen ( k -> p ) ) ;\n if ( result ) return result ;\n if ( ! k -> ignorecl && ! data -> set . ignorecl && checkprefix ( \"Content-Length:\" , k -> p ) ) {\n curl_off_t contentlength = curlx_strtoofft ( k -> p + 15 , NULL , 10 ) ;\n if ( data -> set . max_filesize && contentlength > data -> set . max_filesize ) {\n failf ( data , \"Maximum file size exceeded\" ) ;\n return CURLE_FILESIZE_EXCEEDED ;\n }\n if ( contentlength >= 0 ) {\n k -> size = contentlength ;\n k -> maxdownload = k -> size ;\n Curl_pgrsSetDownloadSize ( data , k -> size ) ;\n }\n else {\n streamclose ( conn , \"negative content-length\" ) ;\n infof ( data , \"Negative content-length: %\" CURL_FORMAT_CURL_OFF_T \", closing after transfer\\n\" , contentlength ) ;\n }\n }\n else if ( checkprefix ( \"Content-Type:\" , k -> p ) ) {\n char * contenttype = Curl_copy_header_value ( k -> p ) ;\n if ( ! contenttype ) return CURLE_OUT_OF_MEMORY ;\n if ( ! * contenttype ) free ( contenttype ) ;\n else {\n Curl_safefree ( data -> info . contenttype ) ;\n data -> info . contenttype = contenttype ;\n }\n }\n else if ( checkprefix ( \"Server:\" , k -> p ) ) {\n if ( conn -> httpversion < 20 ) {\n char * server_name = Curl_copy_header_value ( k -> p ) ;\n if ( conn -> bundle && ( conn -> bundle -> multiuse == BUNDLE_PIPELINING ) ) {\n if ( Curl_pipeline_server_blacklisted ( data , server_name ) ) conn -> bundle -> multiuse = BUNDLE_NO_MULTIUSE ;\n }\n free ( server_name ) ;\n }\n }\n else if ( ( conn -> httpversion == 10 ) && conn -> bits . httpproxy && Curl_compareheader ( k -> p , \"Proxy-Connection:\" , \"keep-alive\" ) ) {\n connkeep ( conn , \"Proxy-Connection keep-alive\" ) ;\n infof ( data , \"HTTP/1.0 proxy connection set to keep alive!\\n\" ) ;\n }\n else if ( ( conn -> httpversion == 11 ) && conn -> bits . httpproxy && Curl_compareheader ( k -> p , \"Proxy-Connection:\" , \"close\" ) ) {\n connclose ( conn , \"Proxy-Connection: asked to close after done\" ) ;\n infof ( data , \"HTTP/1.1 proxy connection set close!\\n\" ) ;\n }\n else if ( ( conn -> httpversion == 10 ) && Curl_compareheader ( k -> p , \"Connection:\" , \"keep-alive\" ) ) {\n connkeep ( conn , \"Connection keep-alive\" ) ;\n infof ( data , \"HTTP/1.0 connection set to keep alive!\\n\" ) ;\n }\n else if ( Curl_compareheader ( k -> p , \"Connection:\" , \"close\" ) ) {\n streamclose ( conn , \"Connection: close used\" ) ;\n }\n else if ( checkprefix ( \"Transfer-Encoding:\" , k -> p ) ) {\n char * start ;\n start = k -> p + 18 ;\n for ( ;\n ;\n ) {\n while ( * start && ( ISSPACE ( * start ) || ( * start == ',' ) ) ) start ++ ;\n if ( checkprefix ( \"chunked\" , start ) ) {\n k -> chunk = TRUE ;\n Curl_httpchunk_init ( conn ) ;\n start += 7 ;\n }\n if ( k -> auto_decoding ) break ;\n if ( checkprefix ( \"identity\" , start ) ) {\n k -> auto_decoding = IDENTITY ;\n start += 8 ;\n }\n else if ( checkprefix ( \"deflate\" , start ) ) {\n k -> auto_decoding = DEFLATE ;\n start += 7 ;\n }\n else if ( checkprefix ( \"gzip\" , start ) ) {\n k -> auto_decoding = GZIP ;\n start += 4 ;\n }\n else if ( checkprefix ( \"x-gzip\" , start ) ) {\n k -> auto_decoding = GZIP ;\n start += 6 ;\n }\n else break ;\n }\n }\n else if ( checkprefix ( \"Content-Encoding:\" , k -> p ) && data -> set . str [ STRING_ENCODING ] ) {\n char * start ;\n start = k -> p + 17 ;\n while ( * start && ISSPACE ( * start ) ) start ++ ;\n if ( checkprefix ( \"identity\" , start ) ) k -> auto_decoding = IDENTITY ;\n else if ( checkprefix ( \"deflate\" , start ) ) k -> auto_decoding = DEFLATE ;\n else if ( checkprefix ( \"gzip\" , start ) || checkprefix ( \"x-gzip\" , start ) ) k -> auto_decoding = GZIP ;\n }\n else if ( checkprefix ( \"Content-Range:\" , k -> p ) ) {\n char * ptr = k -> p + 14 ;\n while ( * ptr && ! ISDIGIT ( * ptr ) && * ptr != '*' ) ptr ++ ;\n if ( ISDIGIT ( * ptr ) ) {\n k -> offset = curlx_strtoofft ( ptr , NULL , 10 ) ;\n if ( data -> state . resume_from == k -> offset ) k -> content_range = TRUE ;\n }\n else data -> state . resume_from = 0 ;\n }\n # if ! defined ( CURL_DISABLE_COOKIES ) else if ( data -> cookies && checkprefix ( \"Set-Cookie:\" , k -> p ) ) {\n Curl_share_lock ( data , CURL_LOCK_DATA_COOKIE , CURL_LOCK_ACCESS_SINGLE ) ;\n Curl_cookie_add ( data , data -> cookies , TRUE , k -> p + 11 , conn -> allocptr . cookiehost ? conn -> allocptr . cookiehost : conn -> host . name , data -> state . path ) ;\n Curl_share_unlock ( data , CURL_LOCK_DATA_COOKIE ) ;\n }\n # endif else if ( checkprefix ( \"Last-Modified:\" , k -> p ) && ( data -> set . timecondition || data -> set . get_filetime ) ) {\n time_t secs = time ( NULL ) ;\n k -> timeofdoc = curl_getdate ( k -> p + strlen ( \"Last-Modified:\" ) , & secs ) ;\n if ( data -> set . get_filetime ) data -> info . filetime = ( long ) k -> timeofdoc ;\n }\n else if ( ( checkprefix ( \"WWW-Authenticate:\" , k -> p ) && ( 401 == k -> httpcode ) ) || ( checkprefix ( \"Proxy-authenticate:\" , k -> p ) && ( 407 == k -> httpcode ) ) ) {\n bool proxy = ( k -> httpcode == 407 ) ? TRUE : FALSE ;\n char * auth = Curl_copy_header_value ( k -> p ) ;\n if ( ! auth ) return CURLE_OUT_OF_MEMORY ;\n result = Curl_http_input_auth ( conn , proxy , auth ) ;\n free ( auth ) ;\n if ( result ) return result ;\n }\n else if ( ( k -> httpcode >= 300 && k -> httpcode < 400 ) && checkprefix ( \"Location:\" , k -> p ) && ! data -> req . location ) {\n char * location = Curl_copy_header_value ( k -> p ) ;\n if ( ! location ) return CURLE_OUT_OF_MEMORY ;\n if ( ! * location ) free ( location ) ;\n else {\n data -> req . location = location ;\n if ( data -> set . http_follow_location ) {\n DEBUGASSERT ( ! data -> req . newurl ) ;\n data -> req . newurl = strdup ( data -> req . location ) ;\n if ( ! data -> req . newurl ) return CURLE_OUT_OF_MEMORY ;\n result = http_perhapsrewind ( conn ) ;\n if ( result ) return result ;\n }\n }\n }\n else if ( conn -> handler -> protocol & CURLPROTO_RTSP ) {\n result = Curl_rtsp_parseheader ( conn , k -> p ) ;\n if ( result ) return result ;\n }\n writetype = CLIENTWRITE_HEADER ;\n if ( data -> set . include_header ) writetype |= CLIENTWRITE_BODY ;\n if ( data -> set . verbose ) Curl_debug ( data , CURLINFO_HEADER_IN , k -> p , ( size_t ) k -> hbuflen , conn ) ;\n result = Curl_client_write ( conn , writetype , k -> p , k -> hbuflen ) ;\n if ( result ) return result ;\n data -> info . header_size += ( long ) k -> hbuflen ;\n data -> req . headerbytecount += ( long ) k -> hbuflen ;\n k -> hbufp = data -> state . headerbuff ;\n k -> hbuflen = 0 ;\n }\n while ( * k -> str ) ;\n return CURLE_OK ;\n }"}
{"idx": 5861, "target": 0, "func": "void free_replace ( ) {\n DBUG_ENTER ( \"free_replace\" ) ;\n my_free ( glob_replace ) ;\n glob_replace = NULL ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 5862, "target": 0, "func": "void TSTextLogObjectRollingIntervalSecSet ( TSTextLogObject the_object , int rolling_interval_sec ) {\n sdk_assert ( sdk_sanity_check_iocore_structure ( the_object ) == TS_SUCCESS ) ;\n ( ( TextLogObject * ) the_object ) -> set_rolling_interval_sec ( rolling_interval_sec ) ;\n }"}
{"idx": 5863, "target": 0, "func": "int armv7m_nvic_acknowledge_irq ( void * opaque ) {\n nvic_state * s = ( nvic_state * ) opaque ;\n uint32_t irq ;\n irq = gic_acknowledge_irq ( & s -> gic , 0 ) ;\n if ( irq == 1023 ) hw_error ( \"Interrupt but no vector\\n\" ) ;\n if ( irq >= 32 ) irq -= 16 ;\n return irq ;\n }"}
{"idx": 5864, "target": 0, "func": "int ff_h263_decode_motion ( MpegEncContext * s , int pred , int f_code ) {\n int code , val , sign , shift ;\n code = get_vlc2 ( & s -> gb , mv_vlc . table , MV_VLC_BITS , 2 ) ;\n if ( code == 0 ) return pred ;\n if ( code < 0 ) return 0xffff ;\n sign = get_bits1 ( & s -> gb ) ;\n shift = f_code - 1 ;\n val = code ;\n if ( shift ) {\n val = ( val - 1 ) << shift ;\n val |= get_bits ( & s -> gb , shift ) ;\n val ++ ;\n }\n if ( sign ) val = - val ;\n val += pred ;\n if ( ! s -> h263_long_vectors ) {\n val = sign_extend ( val , 5 + f_code ) ;\n }\n else {\n if ( pred < - 31 && val < - 63 ) val += 64 ;\n if ( pred > 32 && val > 63 ) val -= 64 ;\n }\n return val ;\n }"}
{"idx": 5865, "target": 0, "func": "static int binkb_decode_plane ( BinkContext * c , AVFrame * frame , GetBitContext * gb , int plane_idx , int is_key , int is_chroma ) {\n int blk , ret ;\n int i , j , bx , by ;\n uint8_t * dst , * ref , * ref_start , * ref_end ;\n int v , col [ 2 ] ;\n const uint8_t * scan ;\n int xoff , yoff ;\n LOCAL_ALIGNED_16 ( int16_t , block , [ 64 ] ) ;\n LOCAL_ALIGNED_16 ( int32_t , dctblock , [ 64 ] ) ;\n int coordmap [ 64 ] ;\n int ybias = is_key ? - 15 : 0 ;\n int qp ;\n const int stride = frame -> linesize [ plane_idx ] ;\n int bw = is_chroma ? ( c -> avctx -> width + 15 ) >> 4 : ( c -> avctx -> width + 7 ) >> 3 ;\n int bh = is_chroma ? ( c -> avctx -> height + 15 ) >> 4 : ( c -> avctx -> height + 7 ) >> 3 ;\n binkb_init_bundles ( c ) ;\n ref_start = frame -> data [ plane_idx ] ;\n ref_end = frame -> data [ plane_idx ] + ( bh * frame -> linesize [ plane_idx ] + bw ) * 8 ;\n for ( i = 0 ;\n i < 64 ;\n i ++ ) coordmap [ i ] = ( i & 7 ) + ( i >> 3 ) * stride ;\n for ( by = 0 ;\n by < bh ;\n by ++ ) {\n for ( i = 0 ;\n i < BINKB_NB_SRC ;\n i ++ ) {\n if ( ( ret = binkb_read_bundle ( c , gb , i ) ) < 0 ) return ret ;\n }\n dst = frame -> data [ plane_idx ] + 8 * by * stride ;\n for ( bx = 0 ;\n bx < bw ;\n bx ++ , dst += 8 ) {\n blk = binkb_get_value ( c , BINKB_SRC_BLOCK_TYPES ) ;\n switch ( blk ) {\n case 0 : break ;\n case 1 : scan = bink_patterns [ get_bits ( gb , 4 ) ] ;\n i = 0 ;\n do {\n int mode , run ;\n mode = get_bits1 ( gb ) ;\n run = get_bits ( gb , binkb_runbits [ i ] ) + 1 ;\n i += run ;\n if ( i > 64 ) {\n av_log ( c -> avctx , AV_LOG_ERROR , \"Run went out of bounds\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( mode ) {\n v = binkb_get_value ( c , BINKB_SRC_COLORS ) ;\n for ( j = 0 ;\n j < run ;\n j ++ ) dst [ coordmap [ * scan ++ ] ] = v ;\n }\n else {\n for ( j = 0 ;\n j < run ;\n j ++ ) dst [ coordmap [ * scan ++ ] ] = binkb_get_value ( c , BINKB_SRC_COLORS ) ;\n }\n }\n while ( i < 63 ) ;\n if ( i == 63 ) dst [ coordmap [ * scan ++ ] ] = binkb_get_value ( c , BINKB_SRC_COLORS ) ;\n break ;\n case 2 : memset ( dctblock , 0 , sizeof ( * dctblock ) * 64 ) ;\n dctblock [ 0 ] = binkb_get_value ( c , BINKB_SRC_INTRA_DC ) ;\n qp = binkb_get_value ( c , BINKB_SRC_INTRA_Q ) ;\n read_dct_coeffs ( gb , dctblock , bink_scan , binkb_intra_quant , qp ) ;\n c -> bdsp . idct_put ( dst , stride , dctblock ) ;\n break ;\n case 3 : xoff = binkb_get_value ( c , BINKB_SRC_X_OFF ) ;\n yoff = binkb_get_value ( c , BINKB_SRC_Y_OFF ) + ybias ;\n ref = dst + xoff + yoff * stride ;\n if ( ref < ref_start || ref + 8 * stride > ref_end ) {\n av_log ( c -> avctx , AV_LOG_WARNING , \"Reference block is out of bounds\\n\" ) ;\n }\n else if ( ref + 8 * stride < dst || ref >= dst + 8 * stride ) {\n c -> dsp . put_pixels_tab [ 1 ] [ 0 ] ( dst , ref , stride , 8 ) ;\n }\n else {\n put_pixels8x8_overlapped ( dst , ref , stride ) ;\n }\n c -> dsp . clear_block ( block ) ;\n v = binkb_get_value ( c , BINKB_SRC_INTER_COEFS ) ;\n read_residue ( gb , block , v ) ;\n c -> dsp . add_pixels8 ( dst , block , stride ) ;\n break ;\n case 4 : xoff = binkb_get_value ( c , BINKB_SRC_X_OFF ) ;\n yoff = binkb_get_value ( c , BINKB_SRC_Y_OFF ) + ybias ;\n ref = dst + xoff + yoff * stride ;\n if ( ref < ref_start || ref + 8 * stride > ref_end ) {\n av_log ( c -> avctx , AV_LOG_WARNING , \"Reference block is out of bounds\\n\" ) ;\n }\n else if ( ref + 8 * stride < dst || ref >= dst + 8 * stride ) {\n c -> dsp . put_pixels_tab [ 1 ] [ 0 ] ( dst , ref , stride , 8 ) ;\n }\n else {\n put_pixels8x8_overlapped ( dst , ref , stride ) ;\n }\n memset ( dctblock , 0 , sizeof ( * dctblock ) * 64 ) ;\n dctblock [ 0 ] = binkb_get_value ( c , BINKB_SRC_INTER_DC ) ;\n qp = binkb_get_value ( c , BINKB_SRC_INTER_Q ) ;\n read_dct_coeffs ( gb , dctblock , bink_scan , binkb_inter_quant , qp ) ;\n c -> bdsp . idct_add ( dst , stride , dctblock ) ;\n break ;\n case 5 : v = binkb_get_value ( c , BINKB_SRC_COLORS ) ;\n c -> dsp . fill_block_tab [ 1 ] ( dst , v , stride , 8 ) ;\n break ;\n case 6 : for ( i = 0 ;\n i < 2 ;\n i ++ ) col [ i ] = binkb_get_value ( c , BINKB_SRC_COLORS ) ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n v = binkb_get_value ( c , BINKB_SRC_PATTERN ) ;\n for ( j = 0 ;\n j < 8 ;\n j ++ , v >>= 1 ) dst [ i * stride + j ] = col [ v & 1 ] ;\n }\n break ;\n case 7 : xoff = binkb_get_value ( c , BINKB_SRC_X_OFF ) ;\n yoff = binkb_get_value ( c , BINKB_SRC_Y_OFF ) + ybias ;\n ref = dst + xoff + yoff * stride ;\n if ( ref < ref_start || ref + 8 * stride > ref_end ) {\n av_log ( c -> avctx , AV_LOG_WARNING , \"Reference block is out of bounds\\n\" ) ;\n }\n else if ( ref + 8 * stride < dst || ref >= dst + 8 * stride ) {\n c -> dsp . put_pixels_tab [ 1 ] [ 0 ] ( dst , ref , stride , 8 ) ;\n }\n else {\n put_pixels8x8_overlapped ( dst , ref , stride ) ;\n }\n break ;\n case 8 : for ( i = 0 ;\n i < 8 ;\n i ++ ) memcpy ( dst + i * stride , c -> bundle [ BINKB_SRC_COLORS ] . cur_ptr + i * 8 , 8 ) ;\n c -> bundle [ BINKB_SRC_COLORS ] . cur_ptr += 64 ;\n break ;\n default : av_log ( c -> avctx , AV_LOG_ERROR , \"Unknown block type %d\\n\" , blk ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n }\n if ( get_bits_count ( gb ) & 0x1F ) / ext plane data starts at 32 - bit boundary skip_bits_long ( gb , 32 - ( get_bits_count ( gb ) & 0x1F ) ) ;\n return 0 ;\n }"}
{"idx": 5866, "target": 0, "func": "int gs_push_real ( gs_main_instance * minst , double value ) {\n ref vref ;\n make_real ( & vref , value ) ;\n return push_value ( minst , & vref ) ;\n }"}
{"idx": 5867, "target": 0, "func": "static void xhci_kick_ep ( XHCIState * xhci , unsigned int slotid , unsigned int epid , unsigned int streamid ) {\n XHCIEPContext * epctx ;\n assert ( slotid >= 1 && slotid <= xhci -> numslots ) ;\n assert ( epid >= 1 && epid <= 31 ) ;\n if ( ! xhci -> slots [ slotid - 1 ] . enabled ) {\n DPRINTF ( \"xhci: xhci_kick_ep for disabled slot %d\\n\" , slotid ) ;\n return ;\n }\n epctx = xhci -> slots [ slotid - 1 ] . eps [ epid - 1 ] ;\n if ( ! epctx ) {\n DPRINTF ( \"xhci: xhci_kick_ep for disabled endpoint %d,%d\\n\" , epid , slotid ) ;\n return ;\n }\n if ( epctx -> kick_active ) {\n return ;\n }\n xhci_kick_epctx ( epctx , streamid ) ;\n }"}
{"idx": 5868, "target": 0, "func": "static void search_for_application_mime_type ( ActivateParametersInstall * parameters_install , const gchar * mime_type ) {\n GdkWindow * window ;\n guint xid = 0 ;\n const char * mime_types [ 2 ] ;\n g_assert ( parameters_install -> proxy != NULL ) ;\n window = gtk_widget_get_window ( GTK_WIDGET ( parameters_install -> parent_window ) ) ;\n if ( window != NULL ) {\n xid = GDK_WINDOW_XID ( window ) ;\n }\n mime_types [ 0 ] = mime_type ;\n mime_types [ 1 ] = NULL ;\n g_dbus_proxy_call ( parameters_install -> proxy , \"InstallMimeTypes\" , g_variant_new ( \"(u^ass)\" , xid , mime_types , \"hide-confirm-search\" ) , G_DBUS_CALL_FLAGS_NONE , G_MAXINT , NULL , ( GAsyncReadyCallback ) search_for_application_dbus_call_notify_cb , parameters_install ) ;\n DEBUG ( \"InstallMimeType method invoked for %s\" , mime_type ) ;\n }"}
{"idx": 5869, "target": 0, "func": "static int tipc_skb_tailroom ( struct sk_buff * skb ) {\n int tailroom ;\n int limit ;\n tailroom = skb_tailroom ( skb ) ;\n limit = TIPC_SKB_MAX - skb -> len ;\n if ( tailroom < limit ) return tailroom ;\n return limit ;\n }"}
{"idx": 5870, "target": 0, "func": "static int peer_has_vnet_hdr ( VirtIONet * n ) {\n if ( ! n -> nic -> nc . peer ) return 0 ;\n if ( n -> nic -> nc . peer -> info -> type != NET_CLIENT_TYPE_TAP ) return 0 ;\n n -> has_vnet_hdr = tap_has_vnet_hdr ( n -> nic -> nc . peer ) ;\n return n -> has_vnet_hdr ;\n }"}
{"idx": 5871, "target": 0, "func": "static void _slurm_rpc_dump_jobs_user ( slurm_msg_t * msg ) {\n DEF_TIMERS ;\n char * dump ;\n int dump_size ;\n slurm_msg_t response_msg ;\n job_user_id_msg_t * job_info_request_msg = ( job_user_id_msg_t * ) msg -> data ;\n slurmctld_lock_t job_read_lock = {\n READ_LOCK , READ_LOCK , NO_LOCK , READ_LOCK , READ_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n START_TIMER ;\n debug3 ( \"Processing RPC: REQUEST_JOB_USER_INFO from uid=%d\" , uid ) ;\n lock_slurmctld ( job_read_lock ) ;\n pack_all_jobs ( & dump , & dump_size , job_info_request_msg -> show_flags , uid , job_info_request_msg -> user_id , msg -> protocol_version ) ;\n unlock_slurmctld ( job_read_lock ) ;\n END_TIMER2 ( \"_slurm_rpc_dump_job_user\" ) ;\n # if 0 info ( \"_slurm_rpc_dump_user_jobs, size=%d %s\" , dump_size , TIME_STR ) ;\n # endif slurm_msg_t_init ( & response_msg ) ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . address = msg -> address ;\n response_msg . conn = msg -> conn ;\n response_msg . msg_type = RESPONSE_JOB_INFO ;\n response_msg . data = dump ;\n response_msg . data_size = dump_size ;\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n xfree ( dump ) ;\n }"}
{"idx": 5872, "target": 0, "func": "TSReturnCode TSHttpTxnConfigIntGet ( TSHttpTxn txnp , TSOverridableConfigKey conf , TSMgmtInt * value ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) value ) == TS_SUCCESS ) ;\n HttpSM * s = reinterpret_cast < HttpSM * > ( txnp ) ;\n OverridableDataType type ;\n void * src = _conf_to_memberp ( conf , s -> t_state . txn_conf , & type ) ;\n if ( ! src ) {\n return TS_ERROR ;\n }\n switch ( type ) {\n case OVERRIDABLE_TYPE_INT : * value = * ( static_cast < TSMgmtInt * > ( src ) ) ;\n break ;\n case OVERRIDABLE_TYPE_BYTE : * value = * ( static_cast < TSMgmtByte * > ( src ) ) ;\n break ;\n default : return TS_ERROR ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 5873, "target": 0, "func": "static void test_free_store_result ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND my_bind [ 1 ] ;\n char c2 [ 5 ] ;\n ulong bl1 , l2 ;\n int rc , c1 , bc1 ;\n myheader ( \"test_free_store_result\" ) ;\n rc = mysql_query ( mysql , \"drop table if exists test_free_result\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table test_free_result(c1 int primary key auto_increment)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into test_free_result values(), (), ()\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"select * from test_free_result\" ) ;\n check_stmt ( stmt ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 0 ] . buffer = ( void * ) & bc1 ;\n my_bind [ 0 ] . buffer_length = 0 ;\n my_bind [ 0 ] . is_null = 0 ;\n my_bind [ 0 ] . length = & bl1 ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_store_result ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n c2 [ 0 ] = '\\0' ;\n l2 = 0 ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 0 ] . buffer = ( void * ) c2 ;\n my_bind [ 0 ] . buffer_length = 7 ;\n my_bind [ 0 ] . is_null = 0 ;\n my_bind [ 0 ] . length = & l2 ;\n rc = mysql_stmt_fetch_column ( stmt , my_bind , 0 , 0 ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n col 1: %s(%ld)\" , c2 , l2 ) ;\n DIE_UNLESS ( strncmp ( c2 , \"1\" , 1 ) == 0 && l2 == 1 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n c1 = 0 , l2 = 0 ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 0 ] . buffer = ( void * ) & c1 ;\n my_bind [ 0 ] . buffer_length = 0 ;\n my_bind [ 0 ] . is_null = 0 ;\n my_bind [ 0 ] . length = & l2 ;\n rc = mysql_stmt_fetch_column ( stmt , my_bind , 0 , 0 ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n col 0: %d(%ld)\" , c1 , l2 ) ;\n DIE_UNLESS ( c1 == 2 && l2 == 4 ) ;\n rc = mysql_stmt_free_result ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_query ( mysql , \"drop table test_free_result\" ) ;\n myquery ( rc ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 5874, "target": 0, "func": "static void xhci_child_detach ( USBPort * uport , USBDevice * child ) {\n USBBus * bus = usb_bus_from_device ( child ) ;\n XHCIState * xhci = container_of ( bus , XHCIState , bus ) ;\n xhci_detach_slot ( xhci , child -> port ) ;\n }"}
{"idx": 5875, "target": 0, "func": "static void set_default_lf_deltas ( VP8_COMP * cpi ) {\n cpi -> mb . e_mbd . mode_ref_lf_delta_enabled = 1 ;\n cpi -> mb . e_mbd . mode_ref_lf_delta_update = 1 ;\n vpx_memset ( cpi -> mb . e_mbd . ref_lf_deltas , 0 , sizeof ( cpi -> mb . e_mbd . ref_lf_deltas ) ) ;\n vpx_memset ( cpi -> mb . e_mbd . mode_lf_deltas , 0 , sizeof ( cpi -> mb . e_mbd . mode_lf_deltas ) ) ;\n cpi -> mb . e_mbd . ref_lf_deltas [ INTRA_FRAME ] = 2 ;\n cpi -> mb . e_mbd . ref_lf_deltas [ LAST_FRAME ] = 0 ;\n cpi -> mb . e_mbd . ref_lf_deltas [ GOLDEN_FRAME ] = - 2 ;\n cpi -> mb . e_mbd . ref_lf_deltas [ ALTREF_FRAME ] = - 2 ;\n cpi -> mb . e_mbd . mode_lf_deltas [ 0 ] = 4 ;\n if ( cpi -> oxcf . Mode == MODE_REALTIME ) cpi -> mb . e_mbd . mode_lf_deltas [ 1 ] = - 12 ;\n else cpi -> mb . e_mbd . mode_lf_deltas [ 1 ] = - 2 ;\n cpi -> mb . e_mbd . mode_lf_deltas [ 2 ] = 2 ;\n cpi -> mb . e_mbd . mode_lf_deltas [ 3 ] = 4 ;\n }"}
{"idx": 5876, "target": 0, "func": "int tls1_export_keying_material ( SSL * s , unsigned char * out , size_t olen , const char * label , size_t llen , const unsigned char * context , size_t contextlen , int use_context ) {\n unsigned char * buff ;\n unsigned char * val = NULL ;\n size_t vallen , currentvalpos ;\n int rv ;\n # ifdef KSSL_DEBUG printf ( \"tls1_export_keying_material(%p,%p,%d,%s,%d,%p,%d)\\n\" , s , out , olen , label , llen , p , plen ) ;\n # endif buff = OPENSSL_malloc ( olen ) ;\n if ( buff == NULL ) goto err2 ;\n vallen = llen + SSL3_RANDOM_SIZE * 2 ;\n if ( use_context ) {\n vallen += 2 + contextlen ;\n }\n val = OPENSSL_malloc ( vallen ) ;\n if ( val == NULL ) goto err2 ;\n currentvalpos = 0 ;\n memcpy ( val + currentvalpos , ( unsigned char * ) label , llen ) ;\n currentvalpos += llen ;\n memcpy ( val + currentvalpos , s -> s3 -> client_random , SSL3_RANDOM_SIZE ) ;\n currentvalpos += SSL3_RANDOM_SIZE ;\n memcpy ( val + currentvalpos , s -> s3 -> server_random , SSL3_RANDOM_SIZE ) ;\n currentvalpos += SSL3_RANDOM_SIZE ;\n if ( use_context ) {\n val [ currentvalpos ] = ( contextlen >> 8 ) & 0xff ;\n currentvalpos ++ ;\n val [ currentvalpos ] = contextlen & 0xff ;\n currentvalpos ++ ;\n if ( ( contextlen > 0 ) || ( context != NULL ) ) {\n memcpy ( val + currentvalpos , context , contextlen ) ;\n }\n }\n if ( memcmp ( val , TLS_MD_CLIENT_FINISH_CONST , TLS_MD_CLIENT_FINISH_CONST_SIZE ) == 0 ) goto err1 ;\n if ( memcmp ( val , TLS_MD_SERVER_FINISH_CONST , TLS_MD_SERVER_FINISH_CONST_SIZE ) == 0 ) goto err1 ;\n if ( memcmp ( val , TLS_MD_MASTER_SECRET_CONST , TLS_MD_MASTER_SECRET_CONST_SIZE ) == 0 ) goto err1 ;\n if ( memcmp ( val , TLS_MD_KEY_EXPANSION_CONST , TLS_MD_KEY_EXPANSION_CONST_SIZE ) == 0 ) goto err1 ;\n rv = tls1_PRF ( s -> s3 -> tmp . new_cipher -> algorithm2 , val , vallen , NULL , 0 , NULL , 0 , NULL , 0 , NULL , 0 , s -> session -> master_key , s -> session -> master_key_length , out , buff , olen ) ;\n # ifdef KSSL_DEBUG printf ( \"tls1_export_keying_material() complete\\n\" ) ;\n # endif goto ret ;\n err1 : SSLerr ( SSL_F_TLS1_EXPORT_KEYING_MATERIAL , SSL_R_TLS_ILLEGAL_EXPORTER_LABEL ) ;\n rv = 0 ;\n goto ret ;\n err2 : SSLerr ( SSL_F_TLS1_EXPORT_KEYING_MATERIAL , ERR_R_MALLOC_FAILURE ) ;\n rv = 0 ;\n ret : if ( buff != NULL ) OPENSSL_free ( buff ) ;\n if ( val != NULL ) OPENSSL_free ( val ) ;\n return ( rv ) ;\n }"}
{"idx": 5877, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , TestIsSameOrigin ) {\n ProtocolHandler ph1 = CreateProtocolHandler ( \"mailto\" , GURL ( \"http://test.com/%s\" ) ) ;\n ProtocolHandler ph2 = CreateProtocolHandler ( \"mailto\" , GURL ( \"http://test.com/updated-url/%s\" ) ) ;\n ProtocolHandler ph3 = CreateProtocolHandler ( \"mailto\" , GURL ( \"http://other.com/%s\" ) ) ;\n ASSERT_EQ ( ph1 . url ( ) . GetOrigin ( ) == ph2 . url ( ) . GetOrigin ( ) , ph1 . IsSameOrigin ( ph2 ) ) ;\n ASSERT_EQ ( ph1 . url ( ) . GetOrigin ( ) == ph2 . url ( ) . GetOrigin ( ) , ph2 . IsSameOrigin ( ph1 ) ) ;\n ASSERT_EQ ( ph2 . url ( ) . GetOrigin ( ) == ph3 . url ( ) . GetOrigin ( ) , ph2 . IsSameOrigin ( ph3 ) ) ;\n ASSERT_EQ ( ph3 . url ( ) . GetOrigin ( ) == ph2 . url ( ) . GetOrigin ( ) , ph3 . IsSameOrigin ( ph2 ) ) ;\n }"}
{"idx": 5878, "target": 0, "func": "static int adb_send ( socket_handle_t sock , const char * adb_service ) {\n char buffer [ 4 ] ;\n gssize used_buffer_length ;\n gssize result ;\n size_t adb_service_length ;\n adb_service_length = strlen ( adb_service ) ;\n result = send ( sock , adb_service , ( int ) adb_service_length , 0 ) ;\n if ( result != ( gssize ) adb_service_length ) {\n errmsg_print ( \"ERROR: Error while sending <%s> to ADB\" , adb_service ) ;\n return EXIT_CODE_ERROR_WHILE_SENDING_ADB_PACKET_1 ;\n }\n used_buffer_length = 0 ;\n while ( used_buffer_length < 4 ) {\n result = recv ( sock , buffer + used_buffer_length , ( int ) ( sizeof ( buffer ) - used_buffer_length ) , 0 ) ;\n if ( result <= 0 ) {\n errmsg_print ( \"ERROR: Broken socket connection while fetching reply status for <%s>\" , adb_service ) ;\n return EXIT_CODE_ERROR_WHILE_RECEIVING_ADB_PACKET_STATUS ;\n }\n used_buffer_length += result ;\n }\n if ( memcmp ( buffer , \"OKAY\" , 4 ) ) {\n errmsg_print ( \"ERROR: Error while receiving by ADB for <%s>\" , adb_service ) ;\n return EXIT_CODE_ERROR_WHILE_RECEIVING_ADB_PACKET_DATA ;\n }\n return EXIT_CODE_SUCCESS ;\n }"}
{"idx": 5879, "target": 0, "func": "static int dissect_h245_INTEGER_0_4095 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 4095U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 5880, "target": 0, "func": "static int imc_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n int ret , i ;\n IMCContext * q = avctx -> priv_data ;\n LOCAL_ALIGNED_16 ( uint16_t , buf16 , [ IMC_BLOCK_SIZE / 2 ] ) ;\n if ( buf_size < IMC_BLOCK_SIZE * avctx -> channels ) {\n av_log ( avctx , AV_LOG_ERROR , \"frame too small!\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n frame -> nb_samples = COEFFS ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n for ( i = 0 ;\n i < avctx -> channels ;\n i ++ ) {\n q -> out_samples = ( float * ) frame -> extended_data [ i ] ;\n q -> dsp . bswap16_buf ( buf16 , ( const uint16_t * ) buf , IMC_BLOCK_SIZE / 2 ) ;\n init_get_bits ( & q -> gb , ( const uint8_t * ) buf16 , IMC_BLOCK_SIZE * 8 ) ;\n buf += IMC_BLOCK_SIZE ;\n if ( ( ret = imc_decode_block ( avctx , q , i ) ) < 0 ) return ret ;\n }\n if ( avctx -> channels == 2 ) {\n q -> fdsp . butterflies_float ( ( float * ) frame -> extended_data [ 0 ] , ( float * ) frame -> extended_data [ 1 ] , COEFFS ) ;\n }\n * got_frame_ptr = 1 ;\n return IMC_BLOCK_SIZE * avctx -> channels ;\n }"}
{"idx": 5881, "target": 0, "func": "static void DecoderOutputChangePause ( decoder_t * p_dec , bool b_paused , mtime_t i_date ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n vlc_assert_locked ( & p_owner -> lock ) ;\n if ( p_dec -> fmt_out . i_cat == AUDIO_ES ) {\n if ( p_owner -> p_aout ) aout_DecChangePause ( p_owner -> p_aout , b_paused , i_date ) ;\n }\n else if ( p_dec -> fmt_out . i_cat == VIDEO_ES ) {\n if ( p_owner -> p_vout ) vout_ChangePause ( p_owner -> p_vout , b_paused , i_date ) ;\n }\n }"}
{"idx": 5882, "target": 0, "func": "static int SRP_user_pwd_set_ids ( SRP_user_pwd * vinfo , const char * id , const char * info ) {\n if ( id != NULL && NULL == ( vinfo -> id = BUF_strdup ( id ) ) ) return 0 ;\n return ( info == NULL || NULL != ( vinfo -> info = BUF_strdup ( info ) ) ) ;\n }"}
{"idx": 5883, "target": 0, "func": "static void dtap_bcc_term_rej ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n ELEM_MAND_LV ( GSM_A_PDU_TYPE_DTAP , DE_BCC_CAUSE , \"(Reject Cause)\" ) ;\n }"}
{"idx": 5884, "target": 0, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER )"}
{"idx": 5885, "target": 0, "func": "static void parse_cat_blob ( const char * p ) {\n struct object_entry * oe = oe ;\n unsigned char sha1 [ 20 ] ;\n if ( * p == ':' ) {\n oe = find_mark ( parse_mark_ref_eol ( p ) ) ;\n if ( ! oe ) die ( \"Unknown mark: %s\" , command_buf . buf ) ;\n hashcpy ( sha1 , oe -> idx . sha1 ) ;\n }\n else {\n if ( get_sha1_hex ( p , sha1 ) ) die ( \"Invalid dataref: %s\" , command_buf . buf ) ;\n if ( p [ 40 ] ) die ( \"Garbage after SHA1: %s\" , command_buf . buf ) ;\n oe = find_object ( sha1 ) ;\n }\n cat_blob ( oe , sha1 ) ;\n }"}
{"idx": 5886, "target": 0, "func": "void ff_release_unused_pictures ( MpegEncContext * s , int remove_current ) {\n int i ;\n for ( i = 0 ;\n i < MAX_PICTURE_COUNT ;\n i ++ ) {\n if ( ! s -> picture [ i ] . reference && ( remove_current || & s -> picture [ i ] != s -> current_picture_ptr ) ) {\n ff_mpeg_unref_picture ( s , & s -> picture [ i ] ) ;\n }\n }\n }"}
{"idx": 5887, "target": 0, "func": "void TSHttpTxnReqCacheableSet ( TSHttpTxn txnp , int flag ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n sm -> t_state . api_req_cacheable = ( flag != 0 ) ;\n }"}
{"idx": 5888, "target": 0, "func": "static int decode_pic ( AVSContext * h ) {\n int skip_count = - 1 ;\n enum cavs_mb mb_type ;\n av_frame_unref ( h -> cur . f ) ;\n skip_bits ( & h -> gb , 16 ) ;\n if ( h -> stc == PIC_PB_START_CODE ) {\n h -> cur . f -> pict_type = get_bits ( & h -> gb , 2 ) + AV_PICTURE_TYPE_I ;\n if ( h -> cur . f -> pict_type > AV_PICTURE_TYPE_B ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"illegal picture type\\n\" ) ;\n return - 1 ;\n }\n if ( ! h -> DPB [ 0 ] . f -> data [ 0 ] || ( ! h -> DPB [ 1 ] . f -> data [ 0 ] && h -> cur . f -> pict_type == AV_PICTURE_TYPE_B ) ) return - 1 ;\n }\n else {\n h -> cur . f -> pict_type = AV_PICTURE_TYPE_I ;\n if ( get_bits1 ( & h -> gb ) ) skip_bits ( & h -> gb , 24 ) ;\n if ( h -> low_delay || ! ( show_bits ( & h -> gb , 9 ) & 1 ) ) h -> stream_revision = 1 ;\n else if ( show_bits ( & h -> gb , 11 ) & 3 ) h -> stream_revision = 1 ;\n if ( h -> stream_revision > 0 ) skip_bits ( & h -> gb , 1 ) ;\n }\n ff_get_buffer ( h -> avctx , h -> cur . f , h -> cur . f -> pict_type == AV_PICTURE_TYPE_B ? 0 : AV_GET_BUFFER_FLAG_REF ) ;\n if ( ! h -> edge_emu_buffer ) {\n int alloc_size = FFALIGN ( FFABS ( h -> cur . f -> linesize [ 0 ] ) + 32 , 32 ) ;\n h -> edge_emu_buffer = av_mallocz ( alloc_size * 2 * 24 ) ;\n if ( ! h -> edge_emu_buffer ) return AVERROR ( ENOMEM ) ;\n }\n ff_cavs_init_pic ( h ) ;\n h -> cur . poc = get_bits ( & h -> gb , 8 ) * 2 ;\n if ( h -> cur . f -> pict_type != AV_PICTURE_TYPE_B ) {\n h -> dist [ 0 ] = ( h -> cur . poc - h -> DPB [ 0 ] . poc + 512 ) % 512 ;\n }\n else {\n h -> dist [ 0 ] = ( h -> DPB [ 0 ] . poc - h -> cur . poc + 512 ) % 512 ;\n }\n h -> dist [ 1 ] = ( h -> cur . poc - h -> DPB [ 1 ] . poc + 512 ) % 512 ;\n h -> scale_den [ 0 ] = h -> dist [ 0 ] ? 512 / h -> dist [ 0 ] : 0 ;\n h -> scale_den [ 1 ] = h -> dist [ 1 ] ? 512 / h -> dist [ 1 ] : 0 ;\n if ( h -> cur . f -> pict_type == AV_PICTURE_TYPE_B ) {\n h -> sym_factor = h -> dist [ 0 ] * h -> scale_den [ 1 ] ;\n }\n else {\n h -> direct_den [ 0 ] = h -> dist [ 0 ] ? 16384 / h -> dist [ 0 ] : 0 ;\n h -> direct_den [ 1 ] = h -> dist [ 1 ] ? 16384 / h -> dist [ 1 ] : 0 ;\n }\n if ( h -> low_delay ) get_ue_golomb ( & h -> gb ) ;\n h -> progressive = get_bits1 ( & h -> gb ) ;\n h -> pic_structure = 1 ;\n if ( ! h -> progressive ) h -> pic_structure = get_bits1 ( & h -> gb ) ;\n if ( ! h -> pic_structure && h -> stc == PIC_PB_START_CODE ) skip_bits1 ( & h -> gb ) ;\n skip_bits1 ( & h -> gb ) ;\n skip_bits1 ( & h -> gb ) ;\n h -> qp_fixed = get_bits1 ( & h -> gb ) ;\n h -> qp = get_bits ( & h -> gb , 6 ) ;\n if ( h -> cur . f -> pict_type == AV_PICTURE_TYPE_I ) {\n if ( ! h -> progressive && ! h -> pic_structure ) skip_bits1 ( & h -> gb ) ;\n skip_bits ( & h -> gb , 4 ) ;\n }\n else {\n if ( ! ( h -> cur . f -> pict_type == AV_PICTURE_TYPE_B && h -> pic_structure == 1 ) ) h -> ref_flag = get_bits1 ( & h -> gb ) ;\n skip_bits ( & h -> gb , 4 ) ;\n h -> skip_mode_flag = get_bits1 ( & h -> gb ) ;\n }\n h -> loop_filter_disable = get_bits1 ( & h -> gb ) ;\n if ( ! h -> loop_filter_disable && get_bits1 ( & h -> gb ) ) {\n h -> alpha_offset = get_se_golomb ( & h -> gb ) ;\n h -> beta_offset = get_se_golomb ( & h -> gb ) ;\n }\n else {\n h -> alpha_offset = h -> beta_offset = 0 ;\n }\n if ( h -> cur . f -> pict_type == AV_PICTURE_TYPE_I ) {\n do {\n check_for_slice ( h ) ;\n decode_mb_i ( h , 0 ) ;\n }\n while ( ff_cavs_next_mb ( h ) ) ;\n }\n else if ( h -> cur . f -> pict_type == AV_PICTURE_TYPE_P ) {\n do {\n if ( check_for_slice ( h ) ) skip_count = - 1 ;\n if ( h -> skip_mode_flag && ( skip_count < 0 ) ) skip_count = get_ue_golomb ( & h -> gb ) ;\n if ( h -> skip_mode_flag && skip_count -- ) {\n decode_mb_p ( h , P_SKIP ) ;\n }\n else {\n mb_type = get_ue_golomb ( & h -> gb ) + P_SKIP + h -> skip_mode_flag ;\n if ( mb_type > P_8X8 ) decode_mb_i ( h , mb_type - P_8X8 - 1 ) ;\n else decode_mb_p ( h , mb_type ) ;\n }\n }\n while ( ff_cavs_next_mb ( h ) ) ;\n }\n else {\n do {\n if ( check_for_slice ( h ) ) skip_count = - 1 ;\n if ( h -> skip_mode_flag && ( skip_count < 0 ) ) skip_count = get_ue_golomb ( & h -> gb ) ;\n if ( h -> skip_mode_flag && skip_count -- ) {\n decode_mb_b ( h , B_SKIP ) ;\n }\n else {\n mb_type = get_ue_golomb ( & h -> gb ) + B_SKIP + h -> skip_mode_flag ;\n if ( mb_type > B_8X8 ) decode_mb_i ( h , mb_type - B_8X8 - 1 ) ;\n else decode_mb_b ( h , mb_type ) ;\n }\n }\n while ( ff_cavs_next_mb ( h ) ) ;\n }\n if ( h -> cur . f -> pict_type != AV_PICTURE_TYPE_B ) {\n av_frame_unref ( h -> DPB [ 1 ] . f ) ;\n FFSWAP ( AVSFrame , h -> cur , h -> DPB [ 1 ] ) ;\n FFSWAP ( AVSFrame , h -> DPB [ 0 ] , h -> DPB [ 1 ] ) ;\n }\n return 0 ;\n }"}
{"idx": 5889, "target": 0, "func": "static const char * map_data_enc ( gpgme_data_t d ) {\n switch ( gpgme_data_get_encoding ( d ) ) {\n case GPGME_DATA_ENCODING_NONE : break ;\n case GPGME_DATA_ENCODING_BINARY : return \"--binary\" ;\n case GPGME_DATA_ENCODING_BASE64 : return \"--base64\" ;\n case GPGME_DATA_ENCODING_ARMOR : return \"--armor\" ;\n default : break ;\n }\n return NULL ;\n }"}
{"idx": 5890, "target": 0, "func": "static void purple_login ( account_t * acc ) {\n struct im_connection * ic = imcb_new ( acc ) ;\n struct purple_data * pd ;\n if ( ( local_bee != NULL && local_bee != acc -> bee ) || ( global . conf -> runmode == RUNMODE_DAEMON && ! getenv ( \"BITLBEE_DEBUG\" ) ) ) {\n imcb_error ( ic , \"Daemon mode detected. Do *not* try to use libpurple in daemon mode! \" \"Please use inetd or ForkDaemon mode instead.\" ) ;\n imc_logout ( ic , FALSE ) ;\n return ;\n }\n local_bee = acc -> bee ;\n purple_connections = g_slist_prepend ( purple_connections , ic ) ;\n ic -> proto_data = pd = g_new0 ( struct purple_data , 1 ) ;\n pd -> account = purple_account_new ( acc -> user , purple_get_account_prpl_id ( acc ) ) ;\n pd -> input_requests = g_hash_table_new_full ( g_direct_hash , g_direct_equal , NULL , g_free ) ;\n pd -> next_request_id = 0 ;\n purple_account_set_password ( pd -> account , acc -> pass ) ;\n purple_sync_settings ( acc , pd -> account ) ;\n purple_account_set_enabled ( pd -> account , \"BitlBee\" , TRUE ) ;\n if ( set_getbool ( & acc -> set , \"mail_notifications\" ) && set_getstr ( & acc -> set , \"mail_notifications_handle\" ) ) {\n imcb_add_buddy ( ic , set_getstr ( & acc -> set , \"mail_notifications_handle\" ) , NULL ) ;\n }\n }"}
{"idx": 5891, "target": 1, "func": "void fz_init_cached_color_converter ( fz_context * ctx , fz_color_converter * cc , fz_colorspace * is , fz_colorspace * ds , fz_colorspace * ss , const fz_color_params * params ) {\n int n = ss -> n ;\n fz_cached_color_converter * cached = fz_malloc_struct ( ctx , fz_cached_color_converter ) ;\n cc -> opaque = cached ;\n cc -> convert = fz_cached_color_convert ;\n cc -> ds = ds ? ds : fz_device_gray ( ctx ) ;\n cc -> ss = ss ;\n cc -> is = is ;\n fz_try ( ctx ) {\n fz_find_color_converter ( ctx , & cached -> base , is , cc -> ds , ss , params ) ;\n cached -> hash = fz_new_hash_table ( ctx , 256 , n * sizeof ( float ) , - 1 , fz_free ) ;\n }\n fz_catch ( ctx ) {\n fz_drop_color_converter ( ctx , & cached -> base ) ;\n fz_drop_hash_table ( ctx , cached -> hash ) ;\n fz_free ( ctx , cached ) ;\n fz_rethrow ( ctx ) ;\n }\n }"}
{"idx": 5892, "target": 0, "func": "static long sfile_seek ( jas_stream_obj_t * obj , long offset , int origin ) {\n FILE * fp ;\n fp = JAS_CAST ( FILE * , obj ) ;\n return fseek ( fp , offset , origin ) ;\n }"}
{"idx": 5893, "target": 0, "func": "static int mss4_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n MSS4Context * c = avctx -> priv_data ;\n GetBitContext gb ;\n GetByteContext bc ;\n uint8_t * dst [ 3 ] ;\n int width , height , quality , frame_type ;\n int x , y , i , mb_width , mb_height , blk_type ;\n int ret ;\n if ( buf_size < HEADER_SIZE ) {\n av_log ( avctx , AV_LOG_ERROR , \"Frame should have at least %d bytes, got %d instead\\n\" , HEADER_SIZE , buf_size ) ;\n return AVERROR_INVALIDDATA ;\n }\n bytestream2_init ( & bc , buf , buf_size ) ;\n width = bytestream2_get_be16 ( & bc ) ;\n height = bytestream2_get_be16 ( & bc ) ;\n bytestream2_skip ( & bc , 2 ) ;\n quality = bytestream2_get_byte ( & bc ) ;\n frame_type = bytestream2_get_byte ( & bc ) ;\n if ( width > avctx -> width || height != avctx -> height ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid frame dimensions %dx%d\\n\" , width , height ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( quality < 1 || quality > 100 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid quality setting %d\\n\" , quality ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ( frame_type & ~ 3 ) || frame_type == 3 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid frame type %d\\n\" , frame_type ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( frame_type != SKIP_FRAME && ! bytestream2_get_bytes_left ( & bc ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Empty frame found but it is not a skip frame.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ( ret = ff_reget_buffer ( avctx , & c -> pic ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n c -> pic . key_frame = ( frame_type == INTRA_FRAME ) ;\n c -> pic . pict_type = ( frame_type == INTRA_FRAME ) ? AV_PICTURE_TYPE_I : AV_PICTURE_TYPE_P ;\n if ( frame_type == SKIP_FRAME ) {\n * got_frame = 1 ;\n if ( ( ret = av_frame_ref ( data , & c -> pic ) ) < 0 ) return ret ;\n return buf_size ;\n }\n if ( c -> quality != quality ) {\n c -> quality = quality ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) ff_mss34_gen_quant_mat ( c -> quant_mat [ i ] , quality , ! i ) ;\n }\n init_get_bits ( & gb , buf + HEADER_SIZE , ( buf_size - HEADER_SIZE ) * 8 ) ;\n mb_width = FFALIGN ( width , 16 ) >> 4 ;\n mb_height = FFALIGN ( height , 16 ) >> 4 ;\n dst [ 0 ] = c -> pic . data [ 0 ] ;\n dst [ 1 ] = c -> pic . data [ 1 ] ;\n dst [ 2 ] = c -> pic . data [ 2 ] ;\n memset ( c -> prev_vec , 0 , sizeof ( c -> prev_vec ) ) ;\n for ( y = 0 ;\n y < mb_height ;\n y ++ ) {\n memset ( c -> dc_cache , 0 , sizeof ( c -> dc_cache ) ) ;\n for ( x = 0 ;\n x < mb_width ;\n x ++ ) {\n blk_type = decode012 ( & gb ) ;\n switch ( blk_type ) {\n case DCT_BLOCK : if ( mss4_decode_dct_block ( c , & gb , dst , x , y ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error decoding DCT block %d,%d\\n\" , x , y ) ;\n return AVERROR_INVALIDDATA ;\n }\n break ;\n case IMAGE_BLOCK : if ( mss4_decode_image_block ( c , & gb , dst , x , y ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error decoding VQ block %d,%d\\n\" , x , y ) ;\n return AVERROR_INVALIDDATA ;\n }\n break ;\n case SKIP_BLOCK : if ( frame_type == INTRA_FRAME ) {\n av_log ( avctx , AV_LOG_ERROR , \"Skip block in intra frame\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n break ;\n }\n if ( blk_type != DCT_BLOCK ) mss4_update_dc_cache ( c , x ) ;\n }\n dst [ 0 ] += c -> pic . linesize [ 0 ] * 16 ;\n dst [ 1 ] += c -> pic . linesize [ 1 ] * 16 ;\n dst [ 2 ] += c -> pic . linesize [ 2 ] * 16 ;\n }\n if ( ( ret = av_frame_ref ( data , & c -> pic ) ) < 0 ) return ret ;\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 5894, "target": 0, "func": "static inline void get_array ( GetBitContext * gb , int * dst , int len , int bits ) {\n while ( len -- ) * dst ++ = get_bits ( gb , bits ) ;\n }"}
{"idx": 5895, "target": 0, "func": "jas_stream_t * jas_stream_memopen ( char * buf , int bufsize ) {\n jas_stream_t * stream ;\n jas_stream_memobj_t * obj ;\n if ( ! ( stream = jas_stream_create ( ) ) ) {\n return 0 ;\n }\n stream -> openmode_ = JAS_STREAM_READ | JAS_STREAM_WRITE | JAS_STREAM_BINARY ;\n jas_stream_initbuf ( stream , JAS_STREAM_FULLBUF , 0 , 0 ) ;\n stream -> ops_ = & jas_stream_memops ;\n if ( ! ( obj = jas_malloc ( sizeof ( jas_stream_memobj_t ) ) ) ) {\n jas_stream_destroy ( stream ) ;\n return 0 ;\n }\n stream -> obj_ = ( void * ) obj ;\n obj -> myalloc_ = 0 ;\n obj -> buf_ = 0 ;\n if ( bufsize <= 0 ) {\n obj -> bufsize_ = 1024 ;\n obj -> growable_ = 1 ;\n }\n else {\n obj -> bufsize_ = bufsize ;\n obj -> growable_ = 0 ;\n }\n if ( buf ) {\n obj -> buf_ = ( unsigned char * ) buf ;\n }\n else {\n obj -> buf_ = jas_malloc ( obj -> bufsize_ ) ;\n obj -> myalloc_ = 1 ;\n }\n if ( ! obj -> buf_ ) {\n jas_stream_close ( stream ) ;\n return 0 ;\n }\n if ( bufsize > 0 && buf ) {\n obj -> len_ = bufsize ;\n }\n else {\n obj -> len_ = 0 ;\n }\n obj -> pos_ = 0 ;\n return stream ;\n }"}
{"idx": 5896, "target": 0, "func": "static handler * myisam_create_handler ( handlerton * hton , TABLE_SHARE * table , MEM_ROOT * mem_root ) {\n return new ( mem_root ) ha_myisam ( hton , table ) ;\n }"}
{"idx": 5897, "target": 0, "func": "static void dtap_cc_emerg_setup ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_TRUE ;\n ELEM_OPT_TLV ( 0x04 , GSM_A_PDU_TYPE_DTAP , DE_BEARER_CAP , NULL ) ;\n ELEM_OPT_TLV ( 0x2d , GSM_A_PDU_TYPE_DTAP , DE_SI , NULL ) ;\n ELEM_OPT_TLV ( 0x40 , GSM_A_PDU_TYPE_DTAP , DE_SUP_CODEC_LIST , NULL ) ;\n ELEM_OPT_TLV ( 0x2e , GSM_A_PDU_TYPE_DTAP , DE_SERV_CAT , \" - Emergency category\" ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 5898, "target": 0, "func": "TSReturnCode TSMimeHdrFieldNameSet ( TSMBuffer bufp , TSMLoc hdr , TSMLoc field , const char * name , int length ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( hdr ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( hdr ) == TS_SUCCESS ) ) ;\n sdk_assert ( sdk_sanity_check_field_handle ( field , hdr ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) name ) == TS_SUCCESS ) ;\n if ( ! isWriteable ( bufp ) ) {\n return TS_ERROR ;\n }\n if ( length == - 1 ) {\n length = strlen ( name ) ;\n }\n MIMEFieldSDKHandle * handle = ( MIMEFieldSDKHandle * ) field ;\n HdrHeap * heap = ( ( HdrHeapSDKHandle * ) bufp ) -> m_heap ;\n int attached = ( handle -> mh && handle -> field_ptr -> is_live ( ) ) ;\n if ( attached ) {\n mime_hdr_field_detach ( handle -> mh , handle -> field_ptr , false ) ;\n }\n handle -> field_ptr -> name_set ( heap , handle -> mh , name , length ) ;\n if ( attached ) {\n mime_hdr_field_attach ( handle -> mh , handle -> field_ptr , 1 , nullptr ) ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 5899, "target": 0, "func": "static int mpi_fromstr ( gcry_mpi_t val , const char * str ) {\n int sign = 0 ;\n int prepend_zero = 0 ;\n int i , j , c , c1 , c2 ;\n unsigned int nbits , nbytes , nlimbs ;\n mpi_limb_t a ;\n if ( * str == '-' ) {\n sign = 1 ;\n str ++ ;\n }\n if ( * str == '0' && str [ 1 ] == 'x' ) str += 2 ;\n nbits = 4 * strlen ( str ) ;\n if ( ( nbits % 8 ) ) prepend_zero = 1 ;\n nbytes = ( nbits + 7 ) / 8 ;\n nlimbs = ( nbytes + BYTES_PER_MPI_LIMB - 1 ) / BYTES_PER_MPI_LIMB ;\n if ( val -> alloced < nlimbs ) mpi_resize ( val , nlimbs ) ;\n i = BYTES_PER_MPI_LIMB - ( nbytes % BYTES_PER_MPI_LIMB ) ;\n i %= BYTES_PER_MPI_LIMB ;\n j = val -> nlimbs = nlimbs ;\n val -> sign = sign ;\n for ( ;\n j > 0 ;\n j -- ) {\n a = 0 ;\n for ( ;\n i < BYTES_PER_MPI_LIMB ;\n i ++ ) {\n if ( prepend_zero ) {\n c1 = '0' ;\n prepend_zero = 0 ;\n }\n else c1 = * str ++ ;\n if ( ! c1 ) {\n mpi_clear ( val ) ;\n return 1 ;\n }\n c2 = * str ++ ;\n if ( ! c2 ) {\n mpi_clear ( val ) ;\n return 1 ;\n }\n if ( c1 >= '0' && c1 <= '9' ) c = c1 - '0' ;\n else if ( c1 >= 'a' && c1 <= 'f' ) c = c1 - 'a' + 10 ;\n else if ( c1 >= 'A' && c1 <= 'F' ) c = c1 - 'A' + 10 ;\n else {\n mpi_clear ( val ) ;\n return 1 ;\n }\n c <<= 4 ;\n if ( c2 >= '0' && c2 <= '9' ) c |= c2 - '0' ;\n else if ( c2 >= 'a' && c2 <= 'f' ) c |= c2 - 'a' + 10 ;\n else if ( c2 >= 'A' && c2 <= 'F' ) c |= c2 - 'A' + 10 ;\n else {\n mpi_clear ( val ) ;\n return 1 ;\n }\n a <<= 8 ;\n a |= c ;\n }\n i = 0 ;\n val -> d [ j - 1 ] = a ;\n }\n return 0 ;\n }"}
{"idx": 5900, "target": 0, "func": "static int64_t rd_pick_best_sub8x8_mode ( VP9_COMP * cpi , MACROBLOCK * x , const TileInfo * const tile , int_mv * best_ref_mv , int_mv * second_best_ref_mv , int64_t best_rd , int * returntotrate , int * returnyrate , int64_t * returndistortion , int * skippable , int64_t * psse , int mvthresh , int_mv seg_mvs [ 4 ] [ MAX_REF_FRAMES ] , BEST_SEG_INFO * bsi_buf , int filter_idx , int mi_row , int mi_col ) {\n int i ;\n BEST_SEG_INFO * bsi = bsi_buf + filter_idx ;\n MACROBLOCKD * xd = & x -> e_mbd ;\n MODE_INFO * mi = xd -> mi [ 0 ] . src_mi ;\n MB_MODE_INFO * mbmi = & mi -> mbmi ;\n int mode_idx ;\n int k , br = 0 , idx , idy ;\n int64_t bd = 0 , block_sse = 0 ;\n PREDICTION_MODE this_mode ;\n VP9_COMMON * cm = & cpi -> common ;\n struct macroblock_plane * const p = & x -> plane [ 0 ] ;\n struct macroblockd_plane * const pd = & xd -> plane [ 0 ] ;\n const int label_count = 4 ;\n int64_t this_segment_rd = 0 ;\n int label_mv_thresh ;\n int segmentyrate = 0 ;\n const BLOCK_SIZE bsize = mbmi -> sb_type ;\n const int num_4x4_blocks_wide = num_4x4_blocks_wide_lookup [ bsize ] ;\n const int num_4x4_blocks_high = num_4x4_blocks_high_lookup [ bsize ] ;\n ENTROPY_CONTEXT t_above [ 2 ] , t_left [ 2 ] ;\n int subpelmv = 1 , have_ref = 0 ;\n const int has_second_rf = has_second_ref ( mbmi ) ;\n const int inter_mode_mask = cpi -> sf . inter_mode_mask [ bsize ] ;\n vp9_zero ( * bsi ) ;\n bsi -> segment_rd = best_rd ;\n bsi -> ref_mv [ 0 ] = best_ref_mv ;\n bsi -> ref_mv [ 1 ] = second_best_ref_mv ;\n bsi -> mvp . as_int = best_ref_mv -> as_int ;\n bsi -> mvthresh = mvthresh ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) bsi -> modes [ i ] = ZEROMV ;\n vpx_memcpy ( t_above , pd -> above_context , sizeof ( t_above ) ) ;\n vpx_memcpy ( t_left , pd -> left_context , sizeof ( t_left ) ) ;\n label_mv_thresh = 1 * bsi -> mvthresh / label_count ;\n for ( idy = 0 ;\n idy < 2 ;\n idy += num_4x4_blocks_high ) {\n for ( idx = 0 ;\n idx < 2 ;\n idx += num_4x4_blocks_wide ) {\n int_mv mode_mv [ MB_MODE_COUNT ] [ 2 ] ;\n int_mv frame_mv [ MB_MODE_COUNT ] [ MAX_REF_FRAMES ] ;\n PREDICTION_MODE mode_selected = ZEROMV ;\n int64_t best_rd = INT64_MAX ;\n const int i = idy * 2 + idx ;\n int ref ;\n for ( ref = 0 ;\n ref < 1 + has_second_rf ;\n ++ ref ) {\n const MV_REFERENCE_FRAME frame = mbmi -> ref_frame [ ref ] ;\n frame_mv [ ZEROMV ] [ frame ] . as_int = 0 ;\n vp9_append_sub8x8_mvs_for_idx ( cm , xd , tile , i , ref , mi_row , mi_col , & frame_mv [ NEARESTMV ] [ frame ] , & frame_mv [ NEARMV ] [ frame ] ) ;\n }\n for ( this_mode = NEARESTMV ;\n this_mode <= NEWMV ;\n ++ this_mode ) {\n const struct buf_2d orig_src = x -> plane [ 0 ] . src ;\n struct buf_2d orig_pre [ 2 ] ;\n mode_idx = INTER_OFFSET ( this_mode ) ;\n bsi -> rdstat [ i ] [ mode_idx ] . brdcost = INT64_MAX ;\n if ( ! ( inter_mode_mask & ( 1 << this_mode ) ) ) continue ;\n if ( ! check_best_zero_mv ( cpi , mbmi -> mode_context , frame_mv , this_mode , mbmi -> ref_frame ) ) continue ;\n vpx_memcpy ( orig_pre , pd -> pre , sizeof ( orig_pre ) ) ;\n vpx_memcpy ( bsi -> rdstat [ i ] [ mode_idx ] . ta , t_above , sizeof ( bsi -> rdstat [ i ] [ mode_idx ] . ta ) ) ;\n vpx_memcpy ( bsi -> rdstat [ i ] [ mode_idx ] . tl , t_left , sizeof ( bsi -> rdstat [ i ] [ mode_idx ] . tl ) ) ;\n if ( ! has_second_rf && this_mode == NEWMV && seg_mvs [ i ] [ mbmi -> ref_frame [ 0 ] ] . as_int == INVALID_MV ) {\n MV * const new_mv = & mode_mv [ NEWMV ] [ 0 ] . as_mv ;\n int step_param = 0 ;\n int thissme , bestsme = INT_MAX ;\n int sadpb = x -> sadperbit4 ;\n MV mvp_full ;\n int max_mv ;\n int sad_list [ 5 ] ;\n if ( best_rd < label_mv_thresh ) break ;\n if ( cpi -> oxcf . mode != BEST ) {\n if ( i > 0 ) {\n bsi -> mvp . as_int = mi -> bmi [ i - 1 ] . as_mv [ 0 ] . as_int ;\n if ( i == 2 ) bsi -> mvp . as_int = mi -> bmi [ i - 2 ] . as_mv [ 0 ] . as_int ;\n }\n }\n if ( i == 0 ) max_mv = x -> max_mv_context [ mbmi -> ref_frame [ 0 ] ] ;\n else max_mv = MAX ( abs ( bsi -> mvp . as_mv . row ) , abs ( bsi -> mvp . as_mv . col ) ) >> 3 ;\n if ( cpi -> sf . mv . auto_mv_step_size && cm -> show_frame ) {\n step_param = ( vp9_init_search_range ( max_mv ) + cpi -> mv_step_param ) / 2 ;\n }\n else {\n step_param = cpi -> mv_step_param ;\n }\n mvp_full . row = bsi -> mvp . as_mv . row >> 3 ;\n mvp_full . col = bsi -> mvp . as_mv . col >> 3 ;\n if ( cpi -> sf . adaptive_motion_search ) {\n mvp_full . row = x -> pred_mv [ mbmi -> ref_frame [ 0 ] ] . row >> 3 ;\n mvp_full . col = x -> pred_mv [ mbmi -> ref_frame [ 0 ] ] . col >> 3 ;\n step_param = MAX ( step_param , 8 ) ;\n }\n mi_buf_shift ( x , i ) ;\n vp9_set_mv_search_range ( x , & bsi -> ref_mv [ 0 ] -> as_mv ) ;\n bestsme = vp9_full_pixel_search ( cpi , x , bsize , & mvp_full , step_param , sadpb , cpi -> sf . mv . subpel_search_method != SUBPEL_TREE ? sad_list : NULL , & bsi -> ref_mv [ 0 ] -> as_mv , new_mv , INT_MAX , 1 ) ;\n if ( cpi -> oxcf . mode == BEST ) {\n int_mv * const best_mv = & mi -> bmi [ i ] . as_mv [ 0 ] ;\n clamp_mv ( & mvp_full , x -> mv_col_min , x -> mv_col_max , x -> mv_row_min , x -> mv_row_max ) ;\n thissme = cpi -> full_search_sad ( x , & mvp_full , sadpb , 16 , & cpi -> fn_ptr [ bsize ] , & bsi -> ref_mv [ 0 ] -> as_mv , & best_mv -> as_mv ) ;\n sad_list [ 1 ] = sad_list [ 2 ] = sad_list [ 3 ] = sad_list [ 4 ] = INT_MAX ;\n if ( thissme < bestsme ) {\n bestsme = thissme ;\n * new_mv = best_mv -> as_mv ;\n }\n else {\n best_mv -> as_mv = * new_mv ;\n }\n }\n if ( bestsme < INT_MAX ) {\n int distortion ;\n cpi -> find_fractional_mv_step ( x , new_mv , & bsi -> ref_mv [ 0 ] -> as_mv , cm -> allow_high_precision_mv , x -> errorperbit , & cpi -> fn_ptr [ bsize ] , cpi -> sf . mv . subpel_force_stop , cpi -> sf . mv . subpel_iters_per_step , cond_sad_list ( cpi , sad_list ) , x -> nmvjointcost , x -> mvcost , & distortion , & x -> pred_sse [ mbmi -> ref_frame [ 0 ] ] , NULL , 0 , 0 ) ;\n seg_mvs [ i ] [ mbmi -> ref_frame [ 0 ] ] . as_mv = * new_mv ;\n }\n if ( cpi -> sf . adaptive_motion_search ) x -> pred_mv [ mbmi -> ref_frame [ 0 ] ] = * new_mv ;\n mi_buf_restore ( x , orig_src , orig_pre ) ;\n }\n if ( has_second_rf ) {\n if ( seg_mvs [ i ] [ mbmi -> ref_frame [ 1 ] ] . as_int == INVALID_MV || seg_mvs [ i ] [ mbmi -> ref_frame [ 0 ] ] . as_int == INVALID_MV ) continue ;\n }\n if ( has_second_rf && this_mode == NEWMV && mbmi -> interp_filter == EIGHTTAP ) {\n mi_buf_shift ( x , i ) ;\n if ( cpi -> sf . comp_inter_joint_search_thresh <= bsize ) {\n int rate_mv ;\n joint_motion_search ( cpi , x , bsize , frame_mv [ this_mode ] , mi_row , mi_col , seg_mvs [ i ] , & rate_mv ) ;\n seg_mvs [ i ] [ mbmi -> ref_frame [ 0 ] ] . as_int = frame_mv [ this_mode ] [ mbmi -> ref_frame [ 0 ] ] . as_int ;\n seg_mvs [ i ] [ mbmi -> ref_frame [ 1 ] ] . as_int = frame_mv [ this_mode ] [ mbmi -> ref_frame [ 1 ] ] . as_int ;\n }\n mi_buf_restore ( x , orig_src , orig_pre ) ;\n }\n bsi -> rdstat [ i ] [ mode_idx ] . brate = set_and_cost_bmi_mvs ( cpi , xd , i , this_mode , mode_mv [ this_mode ] , frame_mv , seg_mvs [ i ] , bsi -> ref_mv , x -> nmvjointcost , x -> mvcost ) ;\n for ( ref = 0 ;\n ref < 1 + has_second_rf ;\n ++ ref ) {\n bsi -> rdstat [ i ] [ mode_idx ] . mvs [ ref ] . as_int = mode_mv [ this_mode ] [ ref ] . as_int ;\n if ( num_4x4_blocks_wide > 1 ) bsi -> rdstat [ i + 1 ] [ mode_idx ] . mvs [ ref ] . as_int = mode_mv [ this_mode ] [ ref ] . as_int ;\n if ( num_4x4_blocks_high > 1 ) bsi -> rdstat [ i + 2 ] [ mode_idx ] . mvs [ ref ] . as_int = mode_mv [ this_mode ] [ ref ] . as_int ;\n }\n if ( mv_check_bounds ( x , & mode_mv [ this_mode ] [ 0 ] . as_mv ) || ( has_second_rf && mv_check_bounds ( x , & mode_mv [ this_mode ] [ 1 ] . as_mv ) ) ) continue ;\n if ( filter_idx > 0 ) {\n BEST_SEG_INFO * ref_bsi = bsi_buf ;\n subpelmv = 0 ;\n have_ref = 1 ;\n for ( ref = 0 ;\n ref < 1 + has_second_rf ;\n ++ ref ) {\n subpelmv |= mv_has_subpel ( & mode_mv [ this_mode ] [ ref ] . as_mv ) ;\n have_ref &= mode_mv [ this_mode ] [ ref ] . as_int == ref_bsi -> rdstat [ i ] [ mode_idx ] . mvs [ ref ] . as_int ;\n }\n if ( filter_idx > 1 && ! subpelmv && ! have_ref ) {\n ref_bsi = bsi_buf + 1 ;\n have_ref = 1 ;\n for ( ref = 0 ;\n ref < 1 + has_second_rf ;\n ++ ref ) have_ref &= mode_mv [ this_mode ] [ ref ] . as_int == ref_bsi -> rdstat [ i ] [ mode_idx ] . mvs [ ref ] . as_int ;\n }\n if ( ! subpelmv && have_ref && ref_bsi -> rdstat [ i ] [ mode_idx ] . brdcost < INT64_MAX ) {\n vpx_memcpy ( & bsi -> rdstat [ i ] [ mode_idx ] , & ref_bsi -> rdstat [ i ] [ mode_idx ] , sizeof ( SEG_RDSTAT ) ) ;\n if ( num_4x4_blocks_wide > 1 ) bsi -> rdstat [ i + 1 ] [ mode_idx ] . eobs = ref_bsi -> rdstat [ i + 1 ] [ mode_idx ] . eobs ;\n if ( num_4x4_blocks_high > 1 ) bsi -> rdstat [ i + 2 ] [ mode_idx ] . eobs = ref_bsi -> rdstat [ i + 2 ] [ mode_idx ] . eobs ;\n if ( bsi -> rdstat [ i ] [ mode_idx ] . brdcost < best_rd ) {\n mode_selected = this_mode ;\n best_rd = bsi -> rdstat [ i ] [ mode_idx ] . brdcost ;\n }\n continue ;\n }\n }\n bsi -> rdstat [ i ] [ mode_idx ] . brdcost = encode_inter_mb_segment ( cpi , x , bsi -> segment_rd - this_segment_rd , i , & bsi -> rdstat [ i ] [ mode_idx ] . byrate , & bsi -> rdstat [ i ] [ mode_idx ] . bdist , & bsi -> rdstat [ i ] [ mode_idx ] . bsse , bsi -> rdstat [ i ] [ mode_idx ] . ta , bsi -> rdstat [ i ] [ mode_idx ] . tl , mi_row , mi_col ) ;\n if ( bsi -> rdstat [ i ] [ mode_idx ] . brdcost < INT64_MAX ) {\n bsi -> rdstat [ i ] [ mode_idx ] . brdcost += RDCOST ( x -> rdmult , x -> rddiv , bsi -> rdstat [ i ] [ mode_idx ] . brate , 0 ) ;\n bsi -> rdstat [ i ] [ mode_idx ] . brate += bsi -> rdstat [ i ] [ mode_idx ] . byrate ;\n bsi -> rdstat [ i ] [ mode_idx ] . eobs = p -> eobs [ i ] ;\n if ( num_4x4_blocks_wide > 1 ) bsi -> rdstat [ i + 1 ] [ mode_idx ] . eobs = p -> eobs [ i + 1 ] ;\n if ( num_4x4_blocks_high > 1 ) bsi -> rdstat [ i + 2 ] [ mode_idx ] . eobs = p -> eobs [ i + 2 ] ;\n }\n if ( bsi -> rdstat [ i ] [ mode_idx ] . brdcost < best_rd ) {\n mode_selected = this_mode ;\n best_rd = bsi -> rdstat [ i ] [ mode_idx ] . brdcost ;\n }\n }\n if ( best_rd == INT64_MAX ) {\n int iy , midx ;\n for ( iy = i + 1 ;\n iy < 4 ;\n ++ iy ) for ( midx = 0 ;\n midx < INTER_MODES ;\n ++ midx ) bsi -> rdstat [ iy ] [ midx ] . brdcost = INT64_MAX ;\n bsi -> segment_rd = INT64_MAX ;\n return INT64_MAX ;\n ;\n }\n mode_idx = INTER_OFFSET ( mode_selected ) ;\n vpx_memcpy ( t_above , bsi -> rdstat [ i ] [ mode_idx ] . ta , sizeof ( t_above ) ) ;\n vpx_memcpy ( t_left , bsi -> rdstat [ i ] [ mode_idx ] . tl , sizeof ( t_left ) ) ;\n set_and_cost_bmi_mvs ( cpi , xd , i , mode_selected , mode_mv [ mode_selected ] , frame_mv , seg_mvs [ i ] , bsi -> ref_mv , x -> nmvjointcost , x -> mvcost ) ;\n br += bsi -> rdstat [ i ] [ mode_idx ] . brate ;\n bd += bsi -> rdstat [ i ] [ mode_idx ] . bdist ;\n block_sse += bsi -> rdstat [ i ] [ mode_idx ] . bsse ;\n segmentyrate += bsi -> rdstat [ i ] [ mode_idx ] . byrate ;\n this_segment_rd += bsi -> rdstat [ i ] [ mode_idx ] . brdcost ;\n if ( this_segment_rd > bsi -> segment_rd ) {\n int iy , midx ;\n for ( iy = i + 1 ;\n iy < 4 ;\n ++ iy ) for ( midx = 0 ;\n midx < INTER_MODES ;\n ++ midx ) bsi -> rdstat [ iy ] [ midx ] . brdcost = INT64_MAX ;\n bsi -> segment_rd = INT64_MAX ;\n return INT64_MAX ;\n ;\n }\n }\n }\n bsi -> r = br ;\n bsi -> d = bd ;\n bsi -> segment_yrate = segmentyrate ;\n bsi -> segment_rd = this_segment_rd ;\n bsi -> sse = block_sse ;\n for ( k = 0 ;\n k < 4 ;\n ++ k ) bsi -> modes [ k ] = mi -> bmi [ k ] . as_mode ;\n if ( bsi -> segment_rd > best_rd ) return INT64_MAX ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n mode_idx = INTER_OFFSET ( bsi -> modes [ i ] ) ;\n mi -> bmi [ i ] . as_mv [ 0 ] . as_int = bsi -> rdstat [ i ] [ mode_idx ] . mvs [ 0 ] . as_int ;\n if ( has_second_ref ( mbmi ) ) mi -> bmi [ i ] . as_mv [ 1 ] . as_int = bsi -> rdstat [ i ] [ mode_idx ] . mvs [ 1 ] . as_int ;\n x -> plane [ 0 ] . eobs [ i ] = bsi -> rdstat [ i ] [ mode_idx ] . eobs ;\n mi -> bmi [ i ] . as_mode = bsi -> modes [ i ] ;\n }\n * returntotrate = bsi -> r ;\n * returndistortion = bsi -> d ;\n * returnyrate = bsi -> segment_yrate ;\n * skippable = vp9_is_skippable_in_plane ( x , BLOCK_8X8 , 0 ) ;\n * psse = bsi -> sse ;\n mbmi -> mode = bsi -> modes [ 3 ] ;\n return bsi -> segment_rd ;\n }"}
{"idx": 5901, "target": 0, "func": "static void xhci_register_types ( void ) {\n type_register_static ( & xhci_info ) ;\n }"}
{"idx": 5902, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , NewPageInNewForegroundTab ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n NavigateParams params ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/title1.html\" ) , ui : : PAGE_TRANSITION_LINK ) ;\n params . disposition = WindowOpenDisposition : : NEW_FOREGROUND_TAB ;\n Navigate ( & params ) ;\n auto waiter = std : : make_unique < PageLoadMetricsWaiter > ( params . target_contents ) ;\n waiter -> AddPageExpectation ( TimingField : : LOAD_EVENT ) ;\n waiter -> Wait ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramLoad , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kBackgroundHistogramLoad , 0 ) ;\n }"}
{"idx": 5903, "target": 0, "func": "static int pxa2xx_rtc_init ( SysBusDevice * dev ) {\n PXA2xxRTCState * s = FROM_SYSBUS ( PXA2xxRTCState , dev ) ;\n struct tm tm ;\n int wom ;\n s -> rttr = 0x7fff ;\n s -> rtsr = 0 ;\n qemu_get_timedate ( & tm , 0 ) ;\n wom = ( ( tm . tm_mday - 1 ) / 7 ) + 1 ;\n s -> last_rcnr = ( uint32_t ) mktimegm ( & tm ) ;\n s -> last_rdcr = ( wom << 20 ) | ( ( tm . tm_wday + 1 ) << 17 ) | ( tm . tm_hour << 12 ) | ( tm . tm_min << 6 ) | tm . tm_sec ;\n s -> last_rycr = ( ( tm . tm_year + 1900 ) << 9 ) | ( ( tm . tm_mon + 1 ) << 5 ) | tm . tm_mday ;\n s -> last_swcr = ( tm . tm_hour << 19 ) | ( tm . tm_min << 13 ) | ( tm . tm_sec << 7 ) ;\n s -> last_rtcpicr = 0 ;\n s -> last_hz = s -> last_sw = s -> last_pi = qemu_get_clock_ms ( rtc_clock ) ;\n s -> rtc_hz = qemu_new_timer_ms ( rtc_clock , pxa2xx_rtc_hz_tick , s ) ;\n s -> rtc_rdal1 = qemu_new_timer_ms ( rtc_clock , pxa2xx_rtc_rdal1_tick , s ) ;\n s -> rtc_rdal2 = qemu_new_timer_ms ( rtc_clock , pxa2xx_rtc_rdal2_tick , s ) ;\n s -> rtc_swal1 = qemu_new_timer_ms ( rtc_clock , pxa2xx_rtc_swal1_tick , s ) ;\n s -> rtc_swal2 = qemu_new_timer_ms ( rtc_clock , pxa2xx_rtc_swal2_tick , s ) ;\n s -> rtc_pi = qemu_new_timer_ms ( rtc_clock , pxa2xx_rtc_pi_tick , s ) ;\n sysbus_init_irq ( dev , & s -> rtc_irq ) ;\n memory_region_init_io ( & s -> iomem , OBJECT ( s ) , & pxa2xx_rtc_ops , s , \"pxa2xx-rtc\" , 0x10000 ) ;\n sysbus_init_mmio ( dev , & s -> iomem ) ;\n return 0 ;\n }"}
{"idx": 5904, "target": 0, "func": "static bool init_cpuset_if_needed ( struct cgroup_mount_point * mp , const char * path ) {\n if ( ! lxc_string_in_array ( \"cpuset\" , ( const char * * ) mp -> hierarchy -> subsystems ) ) return true ;\n if ( ! mp -> need_cpuset_init ) return true ;\n return ( do_init_cpuset_file ( mp , path , \"/cpuset.cpus\" ) && do_init_cpuset_file ( mp , path , \"/cpuset.mems\" ) ) ;\n }"}
{"idx": 5905, "target": 1, "func": "SPL_METHOD ( DirectoryIterator , getBasename ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char * suffix = 0 , * fname ;\n int slen = 0 ;\n size_t flen ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"|s\" , & suffix , & slen ) == FAILURE ) {\n return ;\n }\n php_basename ( intern -> u . dir . entry . d_name , strlen ( intern -> u . dir . entry . d_name ) , suffix , slen , & fname , & flen TSRMLS_CC ) ;\n RETURN_STRINGL ( fname , flen , 0 ) ;\n }"}
{"idx": 5906, "target": 0, "func": "void e1000e_core_pre_save ( E1000ECore * core ) {\n int i ;\n NetClientState * nc = qemu_get_queue ( core -> owner_nic ) ;\n if ( nc -> link_down && e1000e_have_autoneg ( core ) ) {\n core -> phy [ 0 ] [ PHY_STATUS ] |= MII_SR_AUTONEG_COMPLETE ;\n e1000e_update_flowctl_status ( core ) ;\n }\n for ( i = 0 ;\n i < ARRAY_SIZE ( core -> tx ) ;\n i ++ ) {\n if ( net_tx_pkt_has_fragments ( core -> tx [ i ] . tx_pkt ) ) {\n core -> tx [ i ] . skip_cp = true ;\n }\n }\n }"}
{"idx": 5907, "target": 0, "func": "char * evhttp_htmlescape ( const char * html ) {\n int i , new_size = 0 , old_size = strlen ( html ) ;\n char * escaped_html , * p ;\n char scratch_space [ 2 ] ;\n for ( i = 0 ;\n i < old_size ;\n ++ i ) new_size += strlen ( html_replace ( html [ i ] , scratch_space ) ) ;\n p = escaped_html = malloc ( new_size + 1 ) ;\n if ( escaped_html == NULL ) event_err ( 1 , \"%s: malloc(%d)\" , __func__ , new_size + 1 ) ;\n for ( i = 0 ;\n i < old_size ;\n ++ i ) {\n const char * replaced = html_replace ( html [ i ] , scratch_space ) ;\n strcpy ( p , replaced ) ;\n p += strlen ( replaced ) ;\n }\n * p = '\\0' ;\n return ( escaped_html ) ;\n }"}
{"idx": 5908, "target": 0, "func": "static void encode_block_intra ( int plane , int block , BLOCK_SIZE plane_bsize , TX_SIZE tx_size , void * arg ) {\n struct encode_b_args * const args = arg ;\n MACROBLOCK * const x = args -> x ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n MB_MODE_INFO * mbmi = & xd -> mi [ 0 ] . src_mi -> mbmi ;\n struct macroblock_plane * const p = & x -> plane [ plane ] ;\n struct macroblockd_plane * const pd = & xd -> plane [ plane ] ;\n tran_low_t * coeff = BLOCK_OFFSET ( p -> coeff , block ) ;\n tran_low_t * qcoeff = BLOCK_OFFSET ( p -> qcoeff , block ) ;\n tran_low_t * dqcoeff = BLOCK_OFFSET ( pd -> dqcoeff , block ) ;\n const scan_order * scan_order ;\n TX_TYPE tx_type ;\n PREDICTION_MODE mode ;\n const int bwl = b_width_log2 ( plane_bsize ) ;\n const int diff_stride = 4 * ( 1 << bwl ) ;\n uint8_t * src , * dst ;\n int16_t * src_diff ;\n uint16_t * eob = & p -> eobs [ block ] ;\n const int src_stride = p -> src . stride ;\n const int dst_stride = pd -> dst . stride ;\n int i , j ;\n txfrm_block_to_raster_xy ( plane_bsize , tx_size , block , & i , & j ) ;\n dst = & pd -> dst . buf [ 4 * ( j * dst_stride + i ) ] ;\n src = & p -> src . buf [ 4 * ( j * src_stride + i ) ] ;\n src_diff = & p -> src_diff [ 4 * ( j * diff_stride + i ) ] ;\n switch ( tx_size ) {\n case TX_32X32 : scan_order = & vp9_default_scan_orders [ TX_32X32 ] ;\n mode = plane == 0 ? mbmi -> mode : mbmi -> uv_mode ;\n vp9_predict_intra_block ( xd , block >> 6 , bwl , TX_32X32 , mode , x -> skip_encode ? src : dst , x -> skip_encode ? src_stride : dst_stride , dst , dst_stride , i , j , plane ) ;\n if ( ! x -> skip_recode ) {\n vp9_subtract_block ( 32 , 32 , src_diff , diff_stride , src , src_stride , dst , dst_stride ) ;\n fdct32x32 ( x -> use_lp32x32fdct , src_diff , coeff , diff_stride ) ;\n vp9_quantize_b_32x32 ( coeff , 1024 , x -> skip_block , p -> zbin , p -> round , p -> quant , p -> quant_shift , qcoeff , dqcoeff , pd -> dequant , p -> zbin_extra , eob , scan_order -> scan , scan_order -> iscan ) ;\n }\n if ( ! x -> skip_encode && * eob ) vp9_idct32x32_add ( dqcoeff , dst , dst_stride , * eob ) ;\n break ;\n case TX_16X16 : tx_type = get_tx_type ( pd -> plane_type , xd ) ;\n scan_order = & vp9_scan_orders [ TX_16X16 ] [ tx_type ] ;\n mode = plane == 0 ? mbmi -> mode : mbmi -> uv_mode ;\n vp9_predict_intra_block ( xd , block >> 4 , bwl , TX_16X16 , mode , x -> skip_encode ? src : dst , x -> skip_encode ? src_stride : dst_stride , dst , dst_stride , i , j , plane ) ;\n if ( ! x -> skip_recode ) {\n vp9_subtract_block ( 16 , 16 , src_diff , diff_stride , src , src_stride , dst , dst_stride ) ;\n vp9_fht16x16 ( src_diff , coeff , diff_stride , tx_type ) ;\n vp9_quantize_b ( coeff , 256 , x -> skip_block , p -> zbin , p -> round , p -> quant , p -> quant_shift , qcoeff , dqcoeff , pd -> dequant , p -> zbin_extra , eob , scan_order -> scan , scan_order -> iscan ) ;\n }\n if ( ! x -> skip_encode && * eob ) vp9_iht16x16_add ( tx_type , dqcoeff , dst , dst_stride , * eob ) ;\n break ;\n case TX_8X8 : tx_type = get_tx_type ( pd -> plane_type , xd ) ;\n scan_order = & vp9_scan_orders [ TX_8X8 ] [ tx_type ] ;\n mode = plane == 0 ? mbmi -> mode : mbmi -> uv_mode ;\n vp9_predict_intra_block ( xd , block >> 2 , bwl , TX_8X8 , mode , x -> skip_encode ? src : dst , x -> skip_encode ? src_stride : dst_stride , dst , dst_stride , i , j , plane ) ;\n if ( ! x -> skip_recode ) {\n vp9_subtract_block ( 8 , 8 , src_diff , diff_stride , src , src_stride , dst , dst_stride ) ;\n vp9_fht8x8 ( src_diff , coeff , diff_stride , tx_type ) ;\n vp9_quantize_b ( coeff , 64 , x -> skip_block , p -> zbin , p -> round , p -> quant , p -> quant_shift , qcoeff , dqcoeff , pd -> dequant , p -> zbin_extra , eob , scan_order -> scan , scan_order -> iscan ) ;\n }\n if ( ! x -> skip_encode && * eob ) vp9_iht8x8_add ( tx_type , dqcoeff , dst , dst_stride , * eob ) ;\n break ;\n case TX_4X4 : tx_type = get_tx_type_4x4 ( pd -> plane_type , xd , block ) ;\n scan_order = & vp9_scan_orders [ TX_4X4 ] [ tx_type ] ;\n mode = plane == 0 ? get_y_mode ( xd -> mi [ 0 ] . src_mi , block ) : mbmi -> uv_mode ;\n vp9_predict_intra_block ( xd , block , bwl , TX_4X4 , mode , x -> skip_encode ? src : dst , x -> skip_encode ? src_stride : dst_stride , dst , dst_stride , i , j , plane ) ;\n if ( ! x -> skip_recode ) {\n vp9_subtract_block ( 4 , 4 , src_diff , diff_stride , src , src_stride , dst , dst_stride ) ;\n if ( tx_type != DCT_DCT ) vp9_fht4x4 ( src_diff , coeff , diff_stride , tx_type ) ;\n else x -> fwd_txm4x4 ( src_diff , coeff , diff_stride ) ;\n vp9_quantize_b ( coeff , 16 , x -> skip_block , p -> zbin , p -> round , p -> quant , p -> quant_shift , qcoeff , dqcoeff , pd -> dequant , p -> zbin_extra , eob , scan_order -> scan , scan_order -> iscan ) ;\n }\n if ( ! x -> skip_encode && * eob ) {\n if ( tx_type == DCT_DCT ) x -> itxm_add ( dqcoeff , dst , dst_stride , * eob ) ;\n else vp9_iht4x4_16_add ( dqcoeff , dst , dst_stride , tx_type ) ;\n }\n break ;\n default : assert ( 0 ) ;\n break ;\n }\n if ( * eob ) * ( args -> skip ) = 0 ;\n }"}
{"idx": 5909, "target": 0, "func": "static cmsBool WriteSeqID ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Cargo , cmsUInt32Number n , cmsUInt32Number SizeOfTag ) {\n cmsSEQ * Seq = ( cmsSEQ * ) Cargo ;\n if ( ! io -> Write ( io , 16 , Seq -> seq [ n ] . ProfileID . ID8 ) ) return FALSE ;\n if ( ! SaveDescription ( self , io , Seq -> seq [ n ] . Description ) ) return FALSE ;\n return TRUE ;\n cmsUNUSED_PARAMETER ( SizeOfTag ) ;\n }"}
{"idx": 5910, "target": 0, "func": "static gboolean delete_file_recursively ( GFile * file , GCancellable * cancellable , DeleteCallback callback , gpointer callback_data ) {\n gboolean success ;\n g_autoptr ( GError ) error = NULL ;\n do {\n g_autoptr ( GFileEnumerator ) enumerator = NULL ;\n success = g_file_delete ( file , cancellable , & error ) ;\n if ( success || ! g_error_matches ( error , G_IO_ERROR , G_IO_ERROR_NOT_EMPTY ) ) {\n break ;\n }\n g_clear_error ( & error ) ;\n enumerator = g_file_enumerate_children ( file , G_FILE_ATTRIBUTE_STANDARD_NAME , G_FILE_QUERY_INFO_NONE , cancellable , & error ) ;\n if ( enumerator ) {\n GFileInfo * info ;\n success = TRUE ;\n info = g_file_enumerator_next_file ( enumerator , cancellable , & error ) ;\n while ( info != NULL ) {\n g_autoptr ( GFile ) child = NULL ;\n child = g_file_enumerator_get_child ( enumerator , info ) ;\n success = success && delete_file_recursively ( child , cancellable , callback , callback_data ) ;\n g_object_unref ( info ) ;\n info = g_file_enumerator_next_file ( enumerator , cancellable , & error ) ;\n }\n }\n if ( error != NULL ) {\n success = FALSE ;\n }\n }\n while ( success ) ;\n if ( callback ) {\n callback ( file , error , callback_data ) ;\n }\n return success ;\n }"}
{"idx": 5911, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ContentSettingBubbleDialogTest , InvokeDialog_javascript ) {\n RunDialog ( ) ;\n }"}
{"idx": 5912, "target": 0, "func": "int qemuMonitorJSONDriveDel ( qemuMonitorPtr mon , const char * drivestr ) {\n int ret ;\n virJSONValuePtr cmd ;\n virJSONValuePtr reply = NULL ;\n VIR_DEBUG ( \"JSONDriveDel drivestr=%s\" , drivestr ) ;\n cmd = qemuMonitorJSONMakeCommand ( \"drive_del\" , \"s:id\" , drivestr , NULL ) ;\n if ( ! cmd ) return - 1 ;\n if ( ( ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ) < 0 ) goto cleanup ;\n if ( qemuMonitorJSONHasError ( reply , \"CommandNotFound\" ) ) {\n if ( qemuMonitorCheckHMP ( mon , \"drive_del\" ) ) {\n VIR_DEBUG ( \"drive_del command not found, trying HMP\" ) ;\n ret = qemuMonitorTextDriveDel ( mon , drivestr ) ;\n }\n else {\n VIR_ERROR ( _ ( \"deleting disk is not supported. \" \"This may leak data if disk is reassigned\" ) ) ;\n ret = 1 ;\n }\n }\n else if ( qemuMonitorJSONHasError ( reply , \"DeviceNotFound\" ) ) {\n ret = 0 ;\n }\n else {\n ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n }\n cleanup : virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 5913, "target": 0, "func": "int i2d_PUBKEY_bio ( BIO * bp , EVP_PKEY * pkey ) {\n return ASN1_i2d_bio_of ( EVP_PKEY , i2d_PUBKEY , bp , pkey ) ;\n }"}
{"idx": 5914, "target": 0, "func": "int main ( int argc , char * argv [ ] ) {\n static struct option long_options [ ] = {\n {\n \"host\" , required_argument , NULL , 'h' }\n , {\n \"port\" , required_argument , NULL , 'p' }\n , {\n \"username\" , required_argument , NULL , 'U' }\n , {\n \"no-password\" , no_argument , NULL , 'w' }\n , {\n \"password\" , no_argument , NULL , 'W' }\n , {\n \"echo\" , no_argument , NULL , 'e' }\n , {\n \"quiet\" , no_argument , NULL , 'q' }\n , {\n \"schema\" , required_argument , NULL , 'S' }\n , {\n \"dbname\" , required_argument , NULL , 'd' }\n , {\n \"all\" , no_argument , NULL , 'a' }\n , {\n \"system\" , no_argument , NULL , 's' }\n , {\n \"table\" , required_argument , NULL , 't' }\n , {\n \"index\" , required_argument , NULL , 'i' }\n , {\n \"verbose\" , no_argument , NULL , 'v' }\n , {\n \"maintenance-db\" , required_argument , NULL , 2 }\n , {\n NULL , 0 , NULL , 0 }\n }\n ;\n const char * progname ;\n int optindex ;\n int c ;\n const char * dbname = NULL ;\n const char * maintenance_db = NULL ;\n const char * host = NULL ;\n const char * port = NULL ;\n const char * username = NULL ;\n enum trivalue prompt_password = TRI_DEFAULT ;\n bool syscatalog = false ;\n bool alldb = false ;\n bool echo = false ;\n bool quiet = false ;\n bool verbose = false ;\n SimpleStringList indexes = {\n NULL , NULL }\n ;\n SimpleStringList tables = {\n NULL , NULL }\n ;\n SimpleStringList schemas = {\n NULL , NULL }\n ;\n progname = get_progname ( argv [ 0 ] ) ;\n set_pglocale_pgservice ( argv [ 0 ] , PG_TEXTDOMAIN ( \"pgscripts\" ) ) ;\n handle_help_version_opts ( argc , argv , \"reindexdb\" , help ) ;\n while ( ( c = getopt_long ( argc , argv , \"h:p:U:wWeqS:d:ast:i:v\" , long_options , & optindex ) ) != - 1 ) {\n switch ( c ) {\n case 'h' : host = pg_strdup ( optarg ) ;\n break ;\n case 'p' : port = pg_strdup ( optarg ) ;\n break ;\n case 'U' : username = pg_strdup ( optarg ) ;\n break ;\n case 'w' : prompt_password = TRI_NO ;\n break ;\n case 'W' : prompt_password = TRI_YES ;\n break ;\n case 'e' : echo = true ;\n break ;\n case 'q' : quiet = true ;\n break ;\n case 'S' : simple_string_list_append ( & schemas , optarg ) ;\n break ;\n case 'd' : dbname = pg_strdup ( optarg ) ;\n break ;\n case 'a' : alldb = true ;\n break ;\n case 's' : syscatalog = true ;\n break ;\n case 't' : simple_string_list_append ( & tables , optarg ) ;\n break ;\n case 'i' : simple_string_list_append ( & indexes , optarg ) ;\n break ;\n case 'v' : verbose = true ;\n break ;\n case 2 : maintenance_db = pg_strdup ( optarg ) ;\n break ;\n default : fprintf ( stderr , _ ( \"Try \\\"%s --help\\\" for more information.\\n\" ) , progname ) ;\n exit ( 1 ) ;\n }\n }\n if ( optind < argc && dbname == NULL ) {\n dbname = argv [ optind ] ;\n optind ++ ;\n }\n if ( optind < argc ) {\n fprintf ( stderr , _ ( \"%s: too many command-line arguments (first is \\\"%s\\\")\\n\" ) , progname , argv [ optind ] ) ;\n fprintf ( stderr , _ ( \"Try \\\"%s --help\\\" for more information.\\n\" ) , progname ) ;\n exit ( 1 ) ;\n }\n setup_cancel_handler ( ) ;\n if ( alldb ) {\n if ( dbname ) {\n fprintf ( stderr , _ ( \"%s: cannot reindex all databases and a specific one at the same time\\n\" ) , progname ) ;\n exit ( 1 ) ;\n }\n if ( syscatalog ) {\n fprintf ( stderr , _ ( \"%s: cannot reindex all databases and system catalogs at the same time\\n\" ) , progname ) ;\n exit ( 1 ) ;\n }\n if ( schemas . head != NULL ) {\n fprintf ( stderr , _ ( \"%s: cannot reindex specific schema(s) in all databases\\n\" ) , progname ) ;\n exit ( 1 ) ;\n }\n if ( tables . head != NULL ) {\n fprintf ( stderr , _ ( \"%s: cannot reindex specific table(s) in all databases\\n\" ) , progname ) ;\n exit ( 1 ) ;\n }\n if ( indexes . head != NULL ) {\n fprintf ( stderr , _ ( \"%s: cannot reindex specific index(es) in all databases\\n\" ) , progname ) ;\n exit ( 1 ) ;\n }\n reindex_all_databases ( maintenance_db , host , port , username , prompt_password , progname , echo , quiet , verbose ) ;\n }\n else if ( syscatalog ) {\n if ( schemas . head != NULL ) {\n fprintf ( stderr , _ ( \"%s: cannot reindex specific schema(s) and system catalogs at the same time\\n\" ) , progname ) ;\n exit ( 1 ) ;\n }\n if ( tables . head != NULL ) {\n fprintf ( stderr , _ ( \"%s: cannot reindex specific table(s) and system catalogs at the same time\\n\" ) , progname ) ;\n exit ( 1 ) ;\n }\n if ( indexes . head != NULL ) {\n fprintf ( stderr , _ ( \"%s: cannot reindex specific index(es) and system catalogs at the same time\\n\" ) , progname ) ;\n exit ( 1 ) ;\n }\n if ( dbname == NULL ) {\n if ( getenv ( \"PGDATABASE\" ) ) dbname = getenv ( \"PGDATABASE\" ) ;\n else if ( getenv ( \"PGUSER\" ) ) dbname = getenv ( \"PGUSER\" ) ;\n else dbname = get_user_name_or_exit ( progname ) ;\n }\n reindex_system_catalogs ( dbname , host , port , username , prompt_password , progname , echo , verbose ) ;\n }\n else {\n if ( dbname == NULL ) {\n if ( getenv ( \"PGDATABASE\" ) ) dbname = getenv ( \"PGDATABASE\" ) ;\n else if ( getenv ( \"PGUSER\" ) ) dbname = getenv ( \"PGUSER\" ) ;\n else dbname = get_user_name_or_exit ( progname ) ;\n }\n if ( schemas . head != NULL ) {\n SimpleStringListCell * cell ;\n for ( cell = schemas . head ;\n cell ;\n cell = cell -> next ) {\n reindex_one_database ( cell -> val , dbname , \"SCHEMA\" , host , port , username , prompt_password , progname , echo , verbose ) ;\n }\n }\n if ( indexes . head != NULL ) {\n SimpleStringListCell * cell ;\n for ( cell = indexes . head ;\n cell ;\n cell = cell -> next ) {\n reindex_one_database ( cell -> val , dbname , \"INDEX\" , host , port , username , prompt_password , progname , echo , verbose ) ;\n }\n }\n if ( tables . head != NULL ) {\n SimpleStringListCell * cell ;\n for ( cell = tables . head ;\n cell ;\n cell = cell -> next ) {\n reindex_one_database ( cell -> val , dbname , \"TABLE\" , host , port , username , prompt_password , progname , echo , verbose ) ;\n }\n }\n if ( indexes . head == NULL && tables . head == NULL && schemas . head == NULL ) reindex_one_database ( NULL , dbname , \"DATABASE\" , host , port , username , prompt_password , progname , echo , verbose ) ;\n }\n exit ( 0 ) ;\n }"}
{"idx": 5915, "target": 0, "func": "Item_result item_cmp_type ( Item_result a , Item_result b ) {\n if ( a == STRING_RESULT && b == STRING_RESULT ) return STRING_RESULT ;\n if ( a == INT_RESULT && b == INT_RESULT ) return INT_RESULT ;\n else if ( a == ROW_RESULT || b == ROW_RESULT ) return ROW_RESULT ;\n else if ( a == TIME_RESULT || b == TIME_RESULT ) return TIME_RESULT ;\n if ( ( a == INT_RESULT || a == DECIMAL_RESULT ) && ( b == INT_RESULT || b == DECIMAL_RESULT ) ) return DECIMAL_RESULT ;\n return REAL_RESULT ;\n }"}
{"idx": 5916, "target": 0, "func": "static void virtio_pci_save_config ( void * opaque , QEMUFile * f ) {\n VirtIOPCIProxy * proxy = opaque ;\n pci_device_save ( & proxy -> pci_dev , f ) ;\n msix_save ( & proxy -> pci_dev , f ) ;\n if ( msix_present ( & proxy -> pci_dev ) ) qemu_put_be16 ( f , proxy -> vdev -> config_vector ) ;\n }"}
{"idx": 5917, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , UseCounterUkmMixedContentFeaturesLogged ) {\n net : : EmbeddedTestServer https_server ( net : : EmbeddedTestServer : : TYPE_HTTPS ) ;\n https_server . AddDefaultHandlers ( base : : FilePath ( FILE_PATH_LITERAL ( \"chrome/test/data\" ) ) ) ;\n ASSERT_TRUE ( https_server . Start ( ) ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : LOAD_EVENT ) ;\n GURL url = https_server . GetURL ( \"/page_load_metrics/use_counter_features.html\" ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , url ) ;\n waiter -> Wait ( ) ;\n NavigateToUntrackedUrl ( ) ;\n const auto & entries = test_ukm_recorder_ -> GetEntriesByName ( internal : : kUkmUseCounterEventName ) ;\n EXPECT_EQ ( 6u , entries . size ( ) ) ;\n std : : vector < int64_t > ukm_features ;\n for ( const auto * entry : entries ) {\n test_ukm_recorder_ -> ExpectEntrySourceHasUrl ( entry , url ) ;\n const auto * metric = test_ukm_recorder_ -> GetEntryMetric ( entry , internal : : kUkmUseCounterFeature ) ;\n EXPECT_TRUE ( metric ) ;\n ukm_features . push_back ( * metric ) ;\n }\n EXPECT_THAT ( ukm_features , UnorderedElementsAre ( static_cast < int64_t > ( WebFeature : : kNavigatorVibrate ) , static_cast < int64_t > ( WebFeature : : kDataUriHasOctothorpe ) , static_cast < int64_t > ( WebFeature : : kApplicationCacheManifestSelectSecureOrigin ) , static_cast < int64_t > ( WebFeature : : kMixedContentImage ) , static_cast < int64_t > ( WebFeature : : kMixedContentAudio ) , static_cast < int64_t > ( WebFeature : : kMixedContentVideo ) ) ) ;\n }"}
{"idx": 5918, "target": 0, "func": "static int dissect_h245_T_h223_al_type_al2WithSequenceNumbers ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 309 \"../../asn1/h245/h245.cnf\" if ( h223_lc_params_temp ) h223_lc_params_temp -> al_type = al2WithSequenceNumbers ;\n offset = dissect_per_null ( tvb , offset , actx , tree , hf_index ) ;\n return offset ;\n }"}
{"idx": 5919, "target": 0, "func": "void vp9_init_dequantizer ( VP9_COMMON * cm ) {\n int q ;\n for ( q = 0 ;\n q < QINDEX_RANGE ;\n q ++ ) {\n cm -> y_dequant [ q ] [ 0 ] = vp9_dc_quant ( q , cm -> y_dc_delta_q , cm -> bit_depth ) ;\n cm -> y_dequant [ q ] [ 1 ] = vp9_ac_quant ( q , 0 , cm -> bit_depth ) ;\n cm -> uv_dequant [ q ] [ 0 ] = vp9_dc_quant ( q , cm -> uv_dc_delta_q , cm -> bit_depth ) ;\n cm -> uv_dequant [ q ] [ 1 ] = vp9_ac_quant ( q , cm -> uv_ac_delta_q , cm -> bit_depth ) ;\n }\n }"}
{"idx": 5920, "target": 0, "func": "rfbClientIteratorPtr rfbGetClientIterator ( rfbScreenInfoPtr rfbScreen ) {\n rfbClientIteratorPtr i = ( rfbClientIteratorPtr ) malloc ( sizeof ( struct rfbClientIterator ) ) ;\n i -> next = NULL ;\n i -> screen = rfbScreen ;\n i -> closedToo = FALSE ;\n return i ;\n }"}
{"idx": 5921, "target": 0, "func": "gboolean proto_registrar_is_protocol ( const int n ) {\n header_field_info * hfinfo ;\n PROTO_REGISTRAR_GET_NTH ( n , hfinfo ) ;\n return ( ( ( hfinfo -> id != hf_text_only ) && ( hfinfo -> parent == - 1 ) ) ? TRUE : FALSE ) ;\n }"}
{"idx": 5922, "target": 0, "func": "static void encode_sample_fmt ( VC2EncContext * s ) {\n put_bits ( & s -> pb , 1 , ! s -> strict_compliance ) ;\n if ( ! s -> strict_compliance ) {\n int idx ;\n if ( s -> chroma_x_shift == 1 && s -> chroma_y_shift == 0 ) idx = 1 ;\n else if ( s -> chroma_x_shift == 1 && s -> chroma_y_shift == 1 ) idx = 2 ;\n else idx = 0 ;\n put_vc2_ue_uint ( & s -> pb , idx ) ;\n }\n }"}
{"idx": 5923, "target": 0, "func": "int vp8_set_active_map ( VP8_COMP * cpi , unsigned char * map , unsigned int rows , unsigned int cols ) {\n if ( rows == cpi -> common . mb_rows && cols == cpi -> common . mb_cols ) {\n if ( map ) {\n vpx_memcpy ( cpi -> active_map , map , rows * cols ) ;\n cpi -> active_map_enabled = 1 ;\n }\n else cpi -> active_map_enabled = 0 ;\n return 0 ;\n }\n else {\n return - 1 ;\n }\n }"}
{"idx": 5924, "target": 0, "func": "int EVP_CIPHER_CTX_rand_key ( EVP_CIPHER_CTX * ctx , unsigned char * key ) {\n if ( ctx -> cipher -> flags & EVP_CIPH_RAND_KEY ) return EVP_CIPHER_CTX_ctrl ( ctx , EVP_CTRL_RAND_KEY , 0 , key ) ;\n if ( RAND_bytes ( key , ctx -> key_len ) <= 0 ) return 0 ;\n return 1 ;\n }"}
{"idx": 5925, "target": 1, "func": "static int rv10_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n MpegEncContext * s = avctx -> priv_data ;\n int i ;\n AVFrame * pict = data ;\n int slice_count ;\n const uint8_t * slices_hdr = NULL ;\n av_dlog ( avctx , \"*****frame %d size=%d\\n\" , avctx -> frame_number , buf_size ) ;\n if ( buf_size == 0 ) {\n return 0 ;\n }\n if ( ! avctx -> slice_count ) {\n slice_count = ( * buf ++ ) + 1 ;\n buf_size -- ;\n if ( ! slice_count || buf_size <= 8 * slice_count ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid slice count: %d.\\n\" , slice_count ) ;\n return AVERROR_INVALIDDATA ;\n }\n slices_hdr = buf + 4 ;\n buf += 8 * slice_count ;\n buf_size -= 8 * slice_count ;\n }\n else slice_count = avctx -> slice_count ;\n for ( i = 0 ;\n i < slice_count ;\n i ++ ) {\n unsigned offset = get_slice_offset ( avctx , slices_hdr , i ) ;\n int size , size2 ;\n if ( offset >= buf_size ) return AVERROR_INVALIDDATA ;\n if ( i + 1 == slice_count ) size = buf_size - offset ;\n else size = get_slice_offset ( avctx , slices_hdr , i + 1 ) - offset ;\n if ( i + 2 >= slice_count ) size2 = buf_size - offset ;\n else size2 = get_slice_offset ( avctx , slices_hdr , i + 2 ) - offset ;\n if ( size <= 0 || size2 <= 0 || offset + FFMAX ( size , size2 ) > buf_size ) return AVERROR_INVALIDDATA ;\n if ( rv10_decode_packet ( avctx , buf + offset , size , size2 ) > 8 * size ) i ++ ;\n }\n if ( s -> current_picture_ptr != NULL && s -> mb_y >= s -> mb_height ) {\n ff_er_frame_end ( & s -> er ) ;\n ff_MPV_frame_end ( s ) ;\n if ( s -> pict_type == AV_PICTURE_TYPE_B || s -> low_delay ) {\n * pict = s -> current_picture_ptr -> f ;\n }\n else if ( s -> last_picture_ptr != NULL ) {\n * pict = s -> last_picture_ptr -> f ;\n }\n if ( s -> last_picture_ptr || s -> low_delay ) {\n * got_frame = 1 ;\n ff_print_debug_info ( s , pict ) ;\n }\n s -> current_picture_ptr = NULL ;\n }\n return avpkt -> size ;\n }"}
{"idx": 5926, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n FourXContext * const f = avctx -> priv_data ;\n AVFrame * picture = data ;\n AVFrame * p ;\n int i , frame_4cc , frame_size , ret ;\n frame_4cc = AV_RL32 ( buf ) ;\n if ( buf_size != AV_RL32 ( buf + 4 ) + 8 || buf_size < 20 ) av_log ( f -> avctx , AV_LOG_ERROR , \"size mismatch %d %d\\n\" , buf_size , AV_RL32 ( buf + 4 ) ) ;\n if ( frame_4cc == AV_RL32 ( \"cfrm\" ) ) {\n int free_index = - 1 ;\n const int data_size = buf_size - 20 ;\n const int id = AV_RL32 ( buf + 12 ) ;\n const int whole_size = AV_RL32 ( buf + 16 ) ;\n CFrameBuffer * cfrm ;\n for ( i = 0 ;\n i < CFRAME_BUFFER_COUNT ;\n i ++ ) if ( f -> cfrm [ i ] . id && f -> cfrm [ i ] . id < avctx -> frame_number ) av_log ( f -> avctx , AV_LOG_ERROR , \"lost c frame %d\\n\" , f -> cfrm [ i ] . id ) ;\n for ( i = 0 ;\n i < CFRAME_BUFFER_COUNT ;\n i ++ ) {\n if ( f -> cfrm [ i ] . id == id ) break ;\n if ( f -> cfrm [ i ] . size == 0 ) free_index = i ;\n }\n if ( i >= CFRAME_BUFFER_COUNT ) {\n i = free_index ;\n f -> cfrm [ i ] . id = id ;\n }\n cfrm = & f -> cfrm [ i ] ;\n cfrm -> data = av_fast_realloc ( cfrm -> data , & cfrm -> allocated_size , cfrm -> size + data_size + FF_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( ! cfrm -> data ) {\n av_log ( f -> avctx , AV_LOG_ERROR , \"realloc failure\" ) ;\n return AVERROR ( ENOMEM ) ;\n }\n memcpy ( cfrm -> data + cfrm -> size , buf + 20 , data_size ) ;\n cfrm -> size += data_size ;\n if ( cfrm -> size >= whole_size ) {\n buf = cfrm -> data ;\n frame_size = cfrm -> size ;\n if ( id != avctx -> frame_number ) av_log ( f -> avctx , AV_LOG_ERROR , \"cframe id mismatch %d %d\\n\" , id , avctx -> frame_number ) ;\n cfrm -> size = cfrm -> id = 0 ;\n frame_4cc = AV_RL32 ( \"pfrm\" ) ;\n }\n else return buf_size ;\n }\n else {\n buf = buf + 12 ;\n frame_size = buf_size - 12 ;\n }\n FFSWAP ( AVFrame * , f -> current_picture , f -> last_picture ) ;\n p = f -> current_picture ;\n avctx -> coded_frame = p ;\n avctx -> flags |= CODEC_FLAG_EMU_EDGE ;\n if ( p -> data [ 0 ] ) avctx -> release_buffer ( avctx , p ) ;\n p -> reference = 1 ;\n if ( ( ret = ff_get_buffer ( avctx , p ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( frame_4cc == AV_RL32 ( \"ifr2\" ) ) {\n p -> pict_type = AV_PICTURE_TYPE_I ;\n if ( ( ret = decode_i2_frame ( f , buf - 4 , frame_size + 4 ) ) < 0 ) return ret ;\n }\n else if ( frame_4cc == AV_RL32 ( \"ifrm\" ) ) {\n p -> pict_type = AV_PICTURE_TYPE_I ;\n if ( ( ret = decode_i_frame ( f , buf , frame_size ) ) < 0 ) return ret ;\n }\n else if ( frame_4cc == AV_RL32 ( \"pfrm\" ) || frame_4cc == AV_RL32 ( \"pfr2\" ) ) {\n if ( ! f -> last_picture -> data [ 0 ] ) {\n f -> last_picture -> reference = 1 ;\n if ( ( ret = ff_get_buffer ( avctx , f -> last_picture ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n memset ( f -> last_picture -> data [ 0 ] , 0 , avctx -> height * FFABS ( f -> last_picture -> linesize [ 0 ] ) ) ;\n }\n p -> pict_type = AV_PICTURE_TYPE_P ;\n if ( ( ret = decode_p_frame ( f , buf , frame_size ) ) < 0 ) return ret ;\n }\n else if ( frame_4cc == AV_RL32 ( \"snd_\" ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"ignoring snd_ chunk length:%d\\n\" , buf_size ) ;\n }\n else {\n av_log ( avctx , AV_LOG_ERROR , \"ignoring unknown chunk length:%d\\n\" , buf_size ) ;\n }\n p -> key_frame = p -> pict_type == AV_PICTURE_TYPE_I ;\n * picture = * p ;\n * got_frame = 1 ;\n emms_c ( ) ;\n return buf_size ;\n }"}
{"idx": 5927, "target": 0, "func": "int jas_image_readcmpt ( jas_image_t * image , int cmptno , jas_image_coord_t x , jas_image_coord_t y , jas_image_coord_t width , jas_image_coord_t height , jas_matrix_t * data ) {\n jas_image_cmpt_t * cmpt ;\n jas_image_coord_t i ;\n jas_image_coord_t j ;\n int k ;\n jas_seqent_t v ;\n int c ;\n jas_seqent_t * dr ;\n jas_seqent_t * d ;\n int drs ;\n if ( cmptno < 0 || cmptno >= image -> numcmpts_ ) {\n return - 1 ;\n }\n cmpt = image -> cmpts_ [ cmptno ] ;\n if ( x >= cmpt -> width_ || y >= cmpt -> height_ || x + width > cmpt -> width_ || y + height > cmpt -> height_ ) {\n return - 1 ;\n }\n if ( ! jas_matrix_numrows ( data ) || ! jas_matrix_numcols ( data ) ) {\n return - 1 ;\n }\n if ( jas_matrix_numrows ( data ) != height || jas_matrix_numcols ( data ) != width ) {\n if ( jas_matrix_resize ( data , height , width ) ) {\n return - 1 ;\n }\n }\n dr = jas_matrix_getref ( data , 0 , 0 ) ;\n drs = jas_matrix_rowstep ( data ) ;\n for ( i = 0 ;\n i < height ;\n ++ i , dr += drs ) {\n d = dr ;\n if ( jas_stream_seek ( cmpt -> stream_ , ( cmpt -> width_ * ( y + i ) + x ) * cmpt -> cps_ , SEEK_SET ) < 0 ) {\n return - 1 ;\n }\n for ( j = width ;\n j > 0 ;\n -- j , ++ d ) {\n v = 0 ;\n for ( k = cmpt -> cps_ ;\n k > 0 ;\n -- k ) {\n if ( ( c = jas_stream_getc ( cmpt -> stream_ ) ) == EOF ) {\n return - 1 ;\n }\n v = ( v << 8 ) | ( c & 0xff ) ;\n }\n * d = bitstoint ( v , cmpt -> prec_ , cmpt -> sgnd_ ) ;\n }\n }\n return 0 ;\n }"}
{"idx": 5928, "target": 1, "func": "int16_t * ff_h263_pred_motion ( MpegEncContext * s , int block , int dir , int * px , int * py ) {\n int wrap ;\n int16_t * A , * B , * C , ( * mot_val ) [ 2 ] ;\n static const int off [ 4 ] = {\n 2 , 1 , 1 , - 1 }\n ;\n wrap = s -> b8_stride ;\n mot_val = s -> current_picture . f . motion_val [ dir ] + s -> block_index [ block ] ;\n A = mot_val [ - 1 ] ;\n if ( s -> first_slice_line && block < 3 ) {\n if ( block == 0 ) {\n if ( s -> mb_x == s -> resync_mb_x ) {\n * px = * py = 0 ;\n }\n else if ( s -> mb_x + 1 == s -> resync_mb_x && s -> h263_pred ) {\n C = mot_val [ off [ block ] - wrap ] ;\n if ( s -> mb_x == 0 ) {\n * px = C [ 0 ] ;\n * py = C [ 1 ] ;\n }\n else {\n * px = mid_pred ( A [ 0 ] , 0 , C [ 0 ] ) ;\n * py = mid_pred ( A [ 1 ] , 0 , C [ 1 ] ) ;\n }\n }\n else {\n * px = A [ 0 ] ;\n * py = A [ 1 ] ;\n }\n }\n else if ( block == 1 ) {\n if ( s -> mb_x + 1 == s -> resync_mb_x && s -> h263_pred ) {\n C = mot_val [ off [ block ] - wrap ] ;\n * px = mid_pred ( A [ 0 ] , 0 , C [ 0 ] ) ;\n * py = mid_pred ( A [ 1 ] , 0 , C [ 1 ] ) ;\n }\n else {\n * px = A [ 0 ] ;\n * py = A [ 1 ] ;\n }\n }\n else {\n B = mot_val [ - wrap ] ;\n C = mot_val [ off [ block ] - wrap ] ;\n if ( s -> mb_x == s -> resync_mb_x ) A [ 0 ] = A [ 1 ] = 0 ;\n * px = mid_pred ( A [ 0 ] , B [ 0 ] , C [ 0 ] ) ;\n * py = mid_pred ( A [ 1 ] , B [ 1 ] , C [ 1 ] ) ;\n }\n }\n else {\n B = mot_val [ - wrap ] ;\n C = mot_val [ off [ block ] - wrap ] ;\n * px = mid_pred ( A [ 0 ] , B [ 0 ] , C [ 0 ] ) ;\n * py = mid_pred ( A [ 1 ] , B [ 1 ] , C [ 1 ] ) ;\n }\n return * mot_val ;\n }"}
{"idx": 5929, "target": 0, "func": "inline static void _slurm_rpc_trigger_set ( slurm_msg_t * msg ) {\n int rc ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n gid_t gid = g_slurm_auth_get_gid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n trigger_info_msg_t * trigger_ptr = ( trigger_info_msg_t * ) msg -> data ;\n DEF_TIMERS ;\n START_TIMER ;\n debug ( \"Processing RPC: REQUEST_TRIGGER_SET from uid=%d\" , uid ) ;\n rc = trigger_set ( uid , gid , trigger_ptr ) ;\n END_TIMER2 ( \"_slurm_rpc_trigger_set\" ) ;\n slurm_send_rc_msg ( msg , rc ) ;\n }"}
{"idx": 5930, "target": 0, "func": "static __always_inline __u32 __le32_to_cpup ( const __le32 * p ) {\n return ( __u32 ) * p ;\n }"}
{"idx": 5931, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , RemovingHandlerMeansItCanBeAddedAgain ) {\n registry ( ) -> OnAcceptRegisterProtocolHandler ( test_protocol_handler ( ) ) ;\n ASSERT_TRUE ( registry ( ) -> CanSchemeBeOverridden ( \"test\" ) ) ;\n registry ( ) -> RemoveHandler ( test_protocol_handler ( ) ) ;\n ASSERT_TRUE ( registry ( ) -> CanSchemeBeOverridden ( \"test\" ) ) ;\n }"}
{"idx": 5932, "target": 1, "func": "int main ( int argc , char * * argv ) {\n VpxVideoWriter * outfile [ VPX_TS_MAX_LAYERS ] = {\n NULL }\n ;\n vpx_codec_ctx_t codec ;\n vpx_codec_enc_cfg_t cfg ;\n int frame_cnt = 0 ;\n vpx_image_t raw ;\n vpx_codec_err_t res ;\n unsigned int width ;\n unsigned int height ;\n int speed ;\n int frame_avail ;\n int got_data ;\n int flags = 0 ;\n unsigned int i ;\n int pts = 0 ;\n int frame_duration = 1 ;\n int layering_mode = 0 ;\n int layer_flags [ VPX_TS_MAX_PERIODICITY ] = {\n 0 }\n ;\n int flag_periodicity = 1 ;\n vpx_svc_layer_id_t layer_id = {\n 0 , 0 }\n ;\n const VpxInterface * encoder = NULL ;\n FILE * infile = NULL ;\n struct RateControlMetrics rc ;\n int64_t cx_time = 0 ;\n exec_name = argv [ 0 ] ;\n if ( argc < 11 ) {\n die ( \"Usage: %s <infile> <outfile> <codec_type(vp8/vp9)> <width> <height> \" \"<rate_num> <rate_den> <speed> <frame_drop_threshold> <mode> \" \"<Rate_0> ... <Rate_nlayers-1> \\n\" , argv [ 0 ] ) ;\n }\n encoder = get_vpx_encoder_by_name ( argv [ 3 ] ) ;\n if ( ! encoder ) die ( \"Unsupported codec.\" ) ;\n printf ( \"Using %s\\n\" , vpx_codec_iface_name ( encoder -> codec_interface ( ) ) ) ;\n width = strtol ( argv [ 4 ] , NULL , 0 ) ;\n height = strtol ( argv [ 5 ] , NULL , 0 ) ;\n if ( width < 16 || width % 2 || height < 16 || height % 2 ) {\n die ( \"Invalid resolution: %d x %d\" , width , height ) ;\n }\n layering_mode = strtol ( argv [ 10 ] , NULL , 0 ) ;\n if ( layering_mode < 0 || layering_mode > 12 ) {\n die ( \"Invalid layering mode (0..12) %s\" , argv [ 10 ] ) ;\n }\n if ( argc != 11 + mode_to_num_layers [ layering_mode ] ) {\n die ( \"Invalid number of arguments\" ) ;\n }\n if ( ! vpx_img_alloc ( & raw , VPX_IMG_FMT_I420 , width , height , 32 ) ) {\n die ( \"Failed to allocate image\" , width , height ) ;\n }\n res = vpx_codec_enc_config_default ( encoder -> codec_interface ( ) , & cfg , 0 ) ;\n if ( res ) {\n printf ( \"Failed to get config: %s\\n\" , vpx_codec_err_to_string ( res ) ) ;\n return EXIT_FAILURE ;\n }\n cfg . g_w = width ;\n cfg . g_h = height ;\n cfg . g_timebase . num = strtol ( argv [ 6 ] , NULL , 0 ) ;\n cfg . g_timebase . den = strtol ( argv [ 7 ] , NULL , 0 ) ;\n speed = strtol ( argv [ 8 ] , NULL , 0 ) ;\n if ( speed < 0 ) {\n die ( \"Invalid speed setting: must be positive\" ) ;\n }\n for ( i = 11 ;\n ( int ) i < 11 + mode_to_num_layers [ layering_mode ] ;\n ++ i ) {\n cfg . ts_target_bitrate [ i - 11 ] = strtol ( argv [ i ] , NULL , 0 ) ;\n }\n cfg . rc_dropframe_thresh = strtol ( argv [ 9 ] , NULL , 0 ) ;\n cfg . rc_end_usage = VPX_CBR ;\n cfg . rc_resize_allowed = 0 ;\n cfg . rc_min_quantizer = 2 ;\n cfg . rc_max_quantizer = 56 ;\n cfg . rc_undershoot_pct = 50 ;\n cfg . rc_overshoot_pct = 50 ;\n cfg . rc_buf_initial_sz = 500 ;\n cfg . rc_buf_optimal_sz = 600 ;\n cfg . rc_buf_sz = 1000 ;\n cfg . g_error_resilient = 1 ;\n cfg . g_lag_in_frames = 0 ;\n cfg . kf_mode = VPX_KF_AUTO ;\n cfg . kf_min_dist = cfg . kf_max_dist = 3000 ;\n set_temporal_layer_pattern ( layering_mode , & cfg , layer_flags , & flag_periodicity ) ;\n set_rate_control_metrics ( & rc , & cfg ) ;\n cfg . rc_target_bitrate = cfg . ts_target_bitrate [ cfg . ts_number_layers - 1 ] ;\n if ( ! ( infile = fopen ( argv [ 1 ] , \"rb\" ) ) ) {\n die ( \"Failed to open %s for reading\" , argv [ 1 ] ) ;\n }\n for ( i = 0 ;\n i < cfg . ts_number_layers ;\n ++ i ) {\n char file_name [ PATH_MAX ] ;\n VpxVideoInfo info ;\n info . codec_fourcc = encoder -> fourcc ;\n info . frame_width = cfg . g_w ;\n info . frame_height = cfg . g_h ;\n info . time_base . numerator = cfg . g_timebase . num ;\n info . time_base . denominator = cfg . g_timebase . den ;\n snprintf ( file_name , sizeof ( file_name ) , \"%s_%d.ivf\" , argv [ 2 ] , i ) ;\n outfile [ i ] = vpx_video_writer_open ( file_name , kContainerIVF , & info ) ;\n if ( ! outfile [ i ] ) die ( \"Failed to open %s for writing\" , file_name ) ;\n assert ( outfile [ i ] != NULL ) ;\n }\n cfg . ss_number_layers = 1 ;\n if ( vpx_codec_enc_init ( & codec , encoder -> codec_interface ( ) , & cfg , 0 ) ) die_codec ( & codec , \"Failed to initialize encoder\" ) ;\n if ( strncmp ( encoder -> name , \"vp8\" , 3 ) == 0 ) {\n vpx_codec_control ( & codec , VP8E_SET_CPUUSED , - speed ) ;\n vpx_codec_control ( & codec , VP8E_SET_NOISE_SENSITIVITY , kDenoiserOnYOnly ) ;\n }\n else if ( strncmp ( encoder -> name , \"vp9\" , 3 ) == 0 ) {\n vpx_codec_control ( & codec , VP8E_SET_CPUUSED , speed ) ;\n vpx_codec_control ( & codec , VP9E_SET_AQ_MODE , 3 ) ;\n vpx_codec_control ( & codec , VP9E_SET_FRAME_PERIODIC_BOOST , 0 ) ;\n vpx_codec_control ( & codec , VP8E_SET_NOISE_SENSITIVITY , 0 ) ;\n if ( vpx_codec_control ( & codec , VP9E_SET_SVC , 1 ) ) {\n die_codec ( & codec , \"Failed to set SVC\" ) ;\n }\n }\n vpx_codec_control ( & codec , VP8E_SET_STATIC_THRESHOLD , 1 ) ;\n vpx_codec_control ( & codec , VP8E_SET_TOKEN_PARTITIONS , 1 ) ;\n {\n const int max_intra_size_pct = 200 ;\n vpx_codec_control ( & codec , VP8E_SET_MAX_INTRA_BITRATE_PCT , max_intra_size_pct ) ;\n }\n frame_avail = 1 ;\n while ( frame_avail || got_data ) {\n struct vpx_usec_timer timer ;\n vpx_codec_iter_t iter = NULL ;\n const vpx_codec_cx_pkt_t * pkt ;\n layer_id . spatial_layer_id = 0 ;\n layer_id . temporal_layer_id = cfg . ts_layer_id [ frame_cnt % cfg . ts_periodicity ] ;\n if ( strncmp ( encoder -> name , \"vp9\" , 3 ) == 0 ) {\n vpx_codec_control ( & codec , VP9E_SET_SVC_LAYER_ID , & layer_id ) ;\n }\n flags = layer_flags [ frame_cnt % flag_periodicity ] ;\n frame_avail = vpx_img_read ( & raw , infile ) ;\n if ( frame_avail ) ++ rc . layer_input_frames [ layer_id . temporal_layer_id ] ;\n vpx_usec_timer_start ( & timer ) ;\n if ( vpx_codec_encode ( & codec , frame_avail ? & raw : NULL , pts , 1 , flags , VPX_DL_REALTIME ) ) {\n die_codec ( & codec , \"Failed to encode frame\" ) ;\n }\n vpx_usec_timer_mark ( & timer ) ;\n cx_time += vpx_usec_timer_elapsed ( & timer ) ;\n if ( layering_mode != 7 ) {\n layer_flags [ 0 ] &= ~ VPX_EFLAG_FORCE_KF ;\n }\n got_data = 0 ;\n while ( ( pkt = vpx_codec_get_cx_data ( & codec , & iter ) ) ) {\n got_data = 1 ;\n switch ( pkt -> kind ) {\n case VPX_CODEC_CX_FRAME_PKT : for ( i = cfg . ts_layer_id [ frame_cnt % cfg . ts_periodicity ] ;\n i < cfg . ts_number_layers ;\n ++ i ) {\n vpx_video_writer_write_frame ( outfile [ i ] , pkt -> data . frame . buf , pkt -> data . frame . sz , pts ) ;\n ++ rc . layer_tot_enc_frames [ i ] ;\n rc . layer_encoding_bitrate [ i ] += 8.0 * pkt -> data . frame . sz ;\n if ( i == cfg . ts_layer_id [ frame_cnt % cfg . ts_periodicity ] && ! ( pkt -> data . frame . flags & VPX_FRAME_IS_KEY ) ) {\n rc . layer_avg_frame_size [ i ] += 8.0 * pkt -> data . frame . sz ;\n rc . layer_avg_rate_mismatch [ i ] += fabs ( 8.0 * pkt -> data . frame . sz - rc . layer_pfb [ i ] ) / rc . layer_pfb [ i ] ;\n ++ rc . layer_enc_frames [ i ] ;\n }\n }\n break ;\n default : break ;\n }\n }\n ++ frame_cnt ;\n pts += frame_duration ;\n }\n fclose ( infile ) ;\n printout_rate_control_summary ( & rc , & cfg , frame_cnt ) ;\n printf ( \"\\n\" ) ;\n printf ( \"Frame cnt and encoding time/FPS stats for encoding: %d %f %f \\n\" , frame_cnt , * ( float ) cx_time / ( double ) ( frame_cnt * 1000000 ) , * ( double ) frame_cnt / ( double ) cx_time ) ;\n if ( vpx_codec_destroy ( & codec ) ) die_codec ( & codec , \"Failed to destroy codec\" ) ;\n for ( i = 0 ;\n i < cfg . ts_number_layers ;\n ++ i ) vpx_video_writer_close ( outfile [ i ] ) ;\n vpx_img_free ( & raw ) ;\n return EXIT_SUCCESS ;\n }"}
{"idx": 5933, "target": 0, "func": "static hb_bool_t hb_ucdn_decompose ( hb_unicode_funcs_t * ufuncs , hb_codepoint_t ab , hb_codepoint_t * a , hb_codepoint_t * b , void * user_data HB_UNUSED ) {\n return ucdn_decompose ( ab , a , b ) ;\n }"}
{"idx": 5934, "target": 0, "func": "char * ksba_oid_to_str ( const char * buffer , size_t length ) {\n const unsigned char * buf = buffer ;\n char * string , * p ;\n int n = 0 ;\n unsigned long val , valmask ;\n valmask = ( unsigned long ) 0xfe << ( 8 * ( sizeof ( valmask ) - 1 ) ) ;\n string = p = xtrymalloc ( length * ( 1 + 3 ) + 2 + 1 ) ;\n if ( ! string ) return NULL ;\n if ( ! length ) {\n * p = 0 ;\n return string ;\n }\n if ( buf [ 0 ] < 40 ) p += sprintf ( p , \"0.%d\" , buf [ n ] ) ;\n else if ( buf [ 0 ] < 80 ) p += sprintf ( p , \"1.%d\" , buf [ n ] - 40 ) ;\n else {\n val = buf [ n ] & 0x7f ;\n while ( ( buf [ n ] & 0x80 ) && ++ n < length ) {\n if ( ( val & valmask ) ) goto badoid ;\n val <<= 7 ;\n val |= buf [ n ] & 0x7f ;\n }\n if ( val < 80 ) goto badoid ;\n val -= 80 ;\n sprintf ( p , \"2.%lu\" , val ) ;\n p += strlen ( p ) ;\n }\n for ( n ++ ;\n n < length ;\n n ++ ) {\n val = buf [ n ] & 0x7f ;\n while ( ( buf [ n ] & 0x80 ) && ++ n < length ) {\n if ( ( val & valmask ) ) goto badoid ;\n val <<= 7 ;\n val |= buf [ n ] & 0x7f ;\n }\n sprintf ( p , \".%lu\" , val ) ;\n p += strlen ( p ) ;\n }\n * p = 0 ;\n return string ;\n badoid : xfree ( string ) ;\n return xtrystrdup ( \"1.3.6.1.4.1.11591.2.12242973\" ) ;\n }"}
{"idx": 5935, "target": 0, "func": "Oid get_promoted_array_type ( Oid typid ) {\n Oid array_type = get_array_type ( typid ) ;\n if ( OidIsValid ( array_type ) ) return array_type ;\n if ( OidIsValid ( get_element_type ( typid ) ) ) return typid ;\n return InvalidOid ;\n }"}
{"idx": 5936, "target": 0, "func": "static int dissect_h245_SEQUENCE_OF_NonStandardParameter ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h245_SEQUENCE_OF_NonStandardParameter , SEQUENCE_OF_NonStandardParameter_sequence_of ) ;\n return offset ;\n }"}
{"idx": 5937, "target": 0, "func": "static void test_loopbreak ( void ) {\n struct event ev1 , ev2 ;\n struct timeval tv ;\n setup_test ( \"Loop break: \" ) ;\n tv . tv_sec = 0 ;\n tv . tv_usec = 0 ;\n evtimer_set ( & ev1 , break_cb , NULL ) ;\n evtimer_add ( & ev1 , & tv ) ;\n evtimer_set ( & ev2 , fail_cb , NULL ) ;\n evtimer_add ( & ev2 , & tv ) ;\n event_dispatch ( ) ;\n evtimer_del ( & ev1 ) ;\n evtimer_del ( & ev2 ) ;\n cleanup_test ( ) ;\n }"}
{"idx": 5938, "target": 0, "func": "static int dissect_spoolss_doc_info_1 ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n proto_tree * subtree ;\n subtree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_DOC_INFO_1 , NULL , \"Document info level 1\" ) ;\n offset = dissect_ndr_str_pointer_item ( tvb , offset , pinfo , subtree , di , drep , NDR_POINTER_UNIQUE , \"Document name\" , hf_documentname , 0 ) ;\n offset = dissect_ndr_str_pointer_item ( tvb , offset , pinfo , subtree , di , drep , NDR_POINTER_UNIQUE , \"Output file\" , hf_outputfile , 0 ) ;\n offset = dissect_ndr_str_pointer_item ( tvb , offset , pinfo , subtree , di , drep , NDR_POINTER_UNIQUE , \"Data type\" , hf_datatype , 0 ) ;\n return offset ;\n }"}
{"idx": 5939, "target": 0, "func": "static Datum ExecEvalNot ( BoolExprState * notclause , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n ExprState * clause = linitial ( notclause -> args ) ;\n Datum expr_value ;\n if ( isDone ) * isDone = ExprSingleResult ;\n expr_value = ExecEvalExpr ( clause , econtext , isNull , NULL ) ;\n if ( * isNull ) return expr_value ;\n return BoolGetDatum ( ! DatumGetBool ( expr_value ) ) ;\n }"}
{"idx": 5940, "target": 0, "func": "static int tta_get_unary ( GetBitContext * gb ) {\n int ret = 0 ;\n while ( get_bits_left ( gb ) > 0 && get_bits1 ( gb ) ) ret ++ ;\n return ret ;\n }"}
{"idx": 5941, "target": 0, "func": "static VALUE join_der_i ( RB_BLOCK_CALL_FUNC_ARGLIST ( i , str ) ) {\n i = ossl_to_der_if_possible ( i ) ;\n StringValue ( i ) ;\n rb_str_append ( str , i ) ;\n return Qnil ;\n }"}
{"idx": 5942, "target": 0, "func": "static void ohci_hard_reset ( OHCIState * ohci ) {\n ohci_soft_reset ( ohci ) ;\n ohci -> ctl = 0 ;\n ohci_roothub_reset ( ohci ) ;\n }"}
{"idx": 5943, "target": 0, "func": "void vp9_cyclic_refresh_free ( CYCLIC_REFRESH * cr ) {\n vpx_free ( cr -> map ) ;\n vpx_free ( cr ) ;\n }"}
{"idx": 5944, "target": 0, "func": "static guint16 dissect_mpa_fpdu ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , mpa_state_t * state , struct tcpinfo * tcpinfo , guint8 endpoint ) {\n proto_item * mpa_item = NULL ;\n proto_item * mpa_header_item = NULL ;\n proto_tree * mpa_tree = NULL ;\n proto_tree * mpa_header_tree = NULL ;\n guint8 pad_length ;\n guint16 ulpdu_length , exp_ulpdu_length ;\n guint32 offset , total_length ;\n guint32 num_of_m = 0 ;\n if ( state -> minfo [ endpoint ] . valid && get_first_marker_offset ( state , tcpinfo , endpoint ) == 0 ) {\n offset = MPA_MARKER_LEN ;\n }\n else {\n offset = 0 ;\n }\n ulpdu_length = ( guint16 ) tvb_get_ntohs ( tvb , offset ) ;\n if ( state -> minfo [ endpoint ] . valid ) {\n num_of_m = number_of_markers ( state , tcpinfo , endpoint ) ;\n }\n pad_length = fpdu_pad_length ( ulpdu_length ) ;\n exp_ulpdu_length = expected_ulpdu_length ( state , tcpinfo , endpoint ) ;\n if ( ! exp_ulpdu_length || exp_ulpdu_length != ( ulpdu_length + pad_length ) ) {\n return 0 ;\n }\n mpa_packetlist ( pinfo , MPA_FPDU ) ;\n mpa_item = proto_tree_add_item ( tree , proto_iwarp_mpa , tvb , 0 , - 1 , ENC_NA ) ;\n mpa_tree = proto_item_add_subtree ( mpa_item , ett_mpa ) ;\n mpa_header_item = proto_tree_add_item ( mpa_tree , hf_mpa_fpdu , tvb , offset , - 1 , ENC_NA ) ;\n mpa_header_tree = proto_item_add_subtree ( mpa_header_item , ett_mpa ) ;\n proto_tree_add_uint ( mpa_header_tree , hf_mpa_ulpdu_length , tvb , offset , MPA_ULPDU_LENGTH_LEN , ulpdu_length ) ;\n if ( state -> minfo [ endpoint ] . valid && num_of_m > 0 ) {\n total_length = fpdu_total_length ( tcpinfo ) ;\n if ( pad_length > 0 ) {\n proto_tree_add_item ( mpa_header_tree , hf_mpa_pad , tvb , pad_offset ( tcpinfo , total_length , pad_length ) , pad_length , ENC_NA ) ;\n }\n dissect_fpdu_crc ( tvb , mpa_header_tree , state , total_length - MPA_CRC_LEN , num_of_m * MPA_MARKER_LEN + ulpdu_length + pad_length + MPA_ULPDU_LENGTH_LEN ) ;\n dissect_fpdu_markers ( tvb , mpa_tree , state , tcpinfo , endpoint ) ;\n }\n else {\n offset += MPA_ULPDU_LENGTH_LEN + ulpdu_length ;\n if ( pad_length > 0 ) {\n proto_tree_add_item ( mpa_header_tree , hf_mpa_pad , tvb , offset , pad_length , ENC_NA ) ;\n offset += pad_length ;\n }\n dissect_fpdu_crc ( tvb , mpa_header_tree , state , offset , ulpdu_length + pad_length + MPA_ULPDU_LENGTH_LEN ) ;\n }\n return ulpdu_length ;\n }"}
{"idx": 5945, "target": 0, "func": "static int collector_substr ( int c , void * data ) {\n struct collector_substr_data * pc = ( struct collector_substr_data * ) data ;\n if ( pc -> output >= pc -> stop ) {\n return - 1 ;\n }\n if ( pc -> output >= pc -> start ) {\n ( * pc -> next_filter -> filter_function ) ( c , pc -> next_filter ) ;\n }\n pc -> output ++ ;\n return c ;\n }"}
{"idx": 5946, "target": 0, "func": "static UBool U_CALLCONV lenient8IteratorHasNext ( UCharIterator * iter ) {\n return iter -> reservedField != 0 || iter -> start < iter -> limit ;\n }"}
{"idx": 5947, "target": 0, "func": "static int sort_key_cmp ( MI_SORT_PARAM * sort_param , const void * a , const void * b ) {\n uint not_used [ 2 ] ;\n return ( ha_key_cmp ( sort_param -> seg , * ( ( uchar * * ) a ) , * ( ( uchar * * ) b ) , USE_WHOLE_KEY , SEARCH_SAME , not_used ) ) ;\n }"}
{"idx": 5948, "target": 0, "func": "static void sun4m_register_types ( void ) {\n type_register_static ( & idreg_info ) ;\n type_register_static ( & afx_info ) ;\n type_register_static ( & prom_info ) ;\n type_register_static ( & ram_info ) ;\n }"}
{"idx": 5949, "target": 0, "func": "static void fill_variance_tree ( void * data , BLOCK_SIZE bsize ) {\n variance_node node ;\n tree_to_node ( data , bsize , & node ) ;\n sum_2_variances ( node . split [ 0 ] , node . split [ 1 ] , & node . part_variances -> horz [ 0 ] ) ;\n sum_2_variances ( node . split [ 2 ] , node . split [ 3 ] , & node . part_variances -> horz [ 1 ] ) ;\n sum_2_variances ( node . split [ 0 ] , node . split [ 2 ] , & node . part_variances -> vert [ 0 ] ) ;\n sum_2_variances ( node . split [ 1 ] , node . split [ 3 ] , & node . part_variances -> vert [ 1 ] ) ;\n sum_2_variances ( & node . part_variances -> vert [ 0 ] , & node . part_variances -> vert [ 1 ] , & node . part_variances -> none ) ;\n }"}
{"idx": 5950, "target": 0, "func": "static guint16 de_gcc_call_state ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n proto_tree_add_item ( tree , hf_gsm_a_dtap_gcc_call_state , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n return 2 ;\n }"}
{"idx": 5951, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize ) ;\n DECL_PIOCTL ( PGetCacheSize ) ;\n DECL_PIOCTL ( PRemoveCallBack ) ;\n DECL_PIOCTL ( PNewCell ) ;\n DECL_PIOCTL ( PNewAlias ) ;\n DECL_PIOCTL ( PListCells ) ;\n DECL_PIOCTL ( PListAliases ) ;\n DECL_PIOCTL ( PRemoveMount ) ;\n DECL_PIOCTL ( PGetCellStatus ) ;\n DECL_PIOCTL ( PSetCellStatus ) ;\n DECL_PIOCTL ( PFlushVolumeData ) ;\n DECL_PIOCTL ( PFlushAllVolumeData ) ;\n DECL_PIOCTL ( PGetVnodeXStatus ) ;\n DECL_PIOCTL ( PGetVnodeXStatus2 ) ;\n DECL_PIOCTL ( PSetSysName ) ;\n DECL_PIOCTL ( PSetSPrefs ) ;\n DECL_PIOCTL ( PSetSPrefs33 )"}
{"idx": 5952, "target": 0, "func": "void ff_h264_fill_mbaff_ref_list ( H264Context * h ) {\n int list , i , j ;\n for ( list = 0 ;\n list < 2 ;\n list ++ ) {\n for ( i = 0 ;\n i < h -> ref_count [ list ] ;\n i ++ ) {\n Picture * frame = & h -> ref_list [ list ] [ i ] ;\n Picture * field = & h -> ref_list [ list ] [ 16 + 2 * i ] ;\n COPY_PICTURE ( field , frame ) ;\n for ( j = 0 ;\n j < 3 ;\n j ++ ) field [ 0 ] . f . linesize [ j ] <<= 1 ;\n field [ 0 ] . reference = PICT_TOP_FIELD ;\n field [ 0 ] . poc = field [ 0 ] . field_poc [ 0 ] ;\n COPY_PICTURE ( field + 1 , field ) ;\n for ( j = 0 ;\n j < 3 ;\n j ++ ) field [ 1 ] . f . data [ j ] += frame -> f . linesize [ j ] ;\n field [ 1 ] . reference = PICT_BOTTOM_FIELD ;\n field [ 1 ] . poc = field [ 1 ] . field_poc [ 1 ] ;\n h -> luma_weight [ 16 + 2 * i ] [ list ] [ 0 ] = h -> luma_weight [ 16 + 2 * i + 1 ] [ list ] [ 0 ] = h -> luma_weight [ i ] [ list ] [ 0 ] ;\n h -> luma_weight [ 16 + 2 * i ] [ list ] [ 1 ] = h -> luma_weight [ 16 + 2 * i + 1 ] [ list ] [ 1 ] = h -> luma_weight [ i ] [ list ] [ 1 ] ;\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n h -> chroma_weight [ 16 + 2 * i ] [ list ] [ j ] [ 0 ] = h -> chroma_weight [ 16 + 2 * i + 1 ] [ list ] [ j ] [ 0 ] = h -> chroma_weight [ i ] [ list ] [ j ] [ 0 ] ;\n h -> chroma_weight [ 16 + 2 * i ] [ list ] [ j ] [ 1 ] = h -> chroma_weight [ 16 + 2 * i + 1 ] [ list ] [ j ] [ 1 ] = h -> chroma_weight [ i ] [ list ] [ j ] [ 1 ] ;\n }\n }\n }\n }"}
{"idx": 5953, "target": 1, "func": "enum nss_status _nss_nis_getaliasbyname_r ( const char * name , struct aliasent * alias , char * buffer , size_t buflen , int * errnop ) {\n if ( name == NULL ) {\n * errnop = EINVAL ;\n return NSS_STATUS_UNAVAIL ;\n }\n size_t namlen = strlen ( name ) ;\n char name2 [ namlen + 1 ] ;\n char * domain ;\n if ( __builtin_expect ( yp_get_default_domain ( & domain ) , 0 ) ) return NSS_STATUS_UNAVAIL ;\n size_t i ;\n for ( i = 0 ;\n i < namlen ;\n ++ i ) name2 [ i ] = _tolower ( name [ i ] ) ;\n name2 [ i ] = '\\0' ;\n char * result ;\n int len ;\n int yperr = yp_match ( domain , \"mail.aliases\" , name2 , namlen , & result , & len ) ;\n if ( __builtin_expect ( yperr != YPERR_SUCCESS , 0 ) ) {\n enum nss_status retval = yperr2nss ( yperr ) ;\n if ( retval == NSS_STATUS_TRYAGAIN ) * errnop = errno ;\n return retval ;\n }\n if ( __builtin_expect ( ( size_t ) ( len + 1 ) > buflen , 0 ) ) {\n free ( result ) ;\n * errnop = ERANGE ;\n return NSS_STATUS_TRYAGAIN ;\n }\n char * p = strncpy ( buffer , result , len ) ;\n buffer [ len ] = '\\0' ;\n while ( isspace ( * p ) ) ++ p ;\n free ( result ) ;\n alias -> alias_local = 0 ;\n int parse_res = _nss_nis_parse_aliasent ( name , p , alias , buffer , buflen , errnop ) ;\n if ( __builtin_expect ( parse_res < 1 , 0 ) ) {\n if ( parse_res == - 1 ) return NSS_STATUS_TRYAGAIN ;\n else return NSS_STATUS_NOTFOUND ;\n }\n return NSS_STATUS_SUCCESS ;\n }"}
{"idx": 5954, "target": 0, "func": "static ulong compute_free_objects ( gs_ref_memory_t * mem ) {\n ulong unused = mem -> lost . objects ;\n int i ;\n for ( i = 0 ;\n i < num_freelists ;\n i ++ ) {\n const obj_header_t * pfree ;\n for ( pfree = mem -> freelists [ i ] ;\n pfree != 0 ;\n pfree = * ( const obj_header_t * const * ) pfree ) unused += obj_align_round ( pfree [ - 1 ] . o_size ) ;\n }\n return unused ;\n }"}
{"idx": 5955, "target": 0, "func": "static inline int mdec_decode_block_intra ( MDECContext * a , int16_t * block , int n ) {\n int level , diff , i , j , run ;\n int component ;\n RLTable * rl = & ff_rl_mpeg1 ;\n uint8_t * const scantable = a -> scantable . permutated ;\n const uint16_t * quant_matrix = ff_mpeg1_default_intra_matrix ;\n const int qscale = a -> qscale ;\n if ( a -> version == 2 ) {\n block [ 0 ] = 2 * get_sbits ( & a -> gb , 10 ) + 1024 ;\n }\n else {\n component = ( n <= 3 ? 0 : n - 4 + 1 ) ;\n diff = decode_dc ( & a -> gb , component ) ;\n if ( diff >= 0xffff ) return AVERROR_INVALIDDATA ;\n a -> last_dc [ component ] += diff ;\n block [ 0 ] = a -> last_dc [ component ] << 3 ;\n }\n i = 0 ;\n {\n OPEN_READER ( re , & a -> gb ) ;\n for ( ;\n ;\n ) {\n UPDATE_CACHE ( re , & a -> gb ) ;\n GET_RL_VLC ( level , run , re , & a -> gb , rl -> rl_vlc [ 0 ] , TEX_VLC_BITS , 2 , 0 ) ;\n if ( level == 127 ) {\n break ;\n }\n else if ( level != 0 ) {\n i += run ;\n j = scantable [ i ] ;\n level = ( level * qscale * quant_matrix [ j ] ) >> 3 ;\n level = ( level ^ SHOW_SBITS ( re , & a -> gb , 1 ) ) - SHOW_SBITS ( re , & a -> gb , 1 ) ;\n LAST_SKIP_BITS ( re , & a -> gb , 1 ) ;\n }\n else {\n run = SHOW_UBITS ( re , & a -> gb , 6 ) + 1 ;\n LAST_SKIP_BITS ( re , & a -> gb , 6 ) ;\n UPDATE_CACHE ( re , & a -> gb ) ;\n level = SHOW_SBITS ( re , & a -> gb , 10 ) ;\n SKIP_BITS ( re , & a -> gb , 10 ) ;\n i += run ;\n j = scantable [ i ] ;\n if ( level < 0 ) {\n level = - level ;\n level = ( level * qscale * quant_matrix [ j ] ) >> 3 ;\n level = ( level - 1 ) | 1 ;\n level = - level ;\n }\n else {\n level = ( level * qscale * quant_matrix [ j ] ) >> 3 ;\n level = ( level - 1 ) | 1 ;\n }\n }\n if ( i > 63 ) {\n av_log ( a -> avctx , AV_LOG_ERROR , \"ac-tex damaged at %d %d\\n\" , a -> mb_x , a -> mb_y ) ;\n return AVERROR_INVALIDDATA ;\n }\n block [ j ] = level ;\n }\n CLOSE_READER ( re , & a -> gb ) ;\n }\n a -> block_last_index [ n ] = i ;\n return 0 ;\n }"}
{"idx": 5956, "target": 0, "func": "static int dissect_h245_MobileMultilinkReconfigurationIndication ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MobileMultilinkReconfigurationIndication , MobileMultilinkReconfigurationIndication_sequence ) ;\n return offset ;\n }"}
{"idx": 5957, "target": 1, "func": "static Asn1Generic * DecodeAsn1DerPrintableString ( const unsigned char * buffer , uint32_t max_size , uint8_t depth , uint32_t * errcode ) {\n const unsigned char * d_ptr = buffer ;\n uint32_t length , numbytes ;\n Asn1Generic * a ;\n unsigned char c ;\n d_ptr ++ ;\n c = d_ptr [ 0 ] ;\n if ( ( c & ( 1 << 7 ) ) >> 7 == 0 ) {\n length = c ;\n d_ptr ++ ;\n }\n else {\n numbytes = c & 0x7f ;\n d_ptr ++ ;\n if ( DecodeAsn1BuildValue ( & d_ptr , & length , numbytes , errcode ) == - 1 ) {\n return NULL ;\n }\n }\n if ( length > max_size ) return NULL ;\n a = Asn1GenericNew ( ) ;\n if ( a == NULL ) return NULL ;\n a -> type = ASN1_PRINTSTRING ;\n a -> strlen = length ;\n a -> str = SCMalloc ( length + 1 ) ;\n if ( a -> str == NULL ) {\n SCFree ( a ) ;\n return NULL ;\n }\n strlcpy ( a -> str , ( const char * ) d_ptr , length + 1 ) ;\n a -> str [ length ] = '\\0' ;\n d_ptr += length ;\n a -> length = ( d_ptr - buffer ) ;\n return a ;\n }"}
{"idx": 5958, "target": 0, "func": "static inline void init_ref ( MotionEstContext * c , uint8_t * src [ 3 ] , uint8_t * ref [ 3 ] , uint8_t * ref2 [ 3 ] , int x , int y , int ref_index ) {\n const int offset [ 3 ] = {\n y * c -> stride + x , ( ( y * c -> uvstride + x ) >> 1 ) , ( ( y * c -> uvstride + x ) >> 1 ) , }\n ;\n int i ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n c -> src [ 0 ] [ i ] = src [ i ] + offset [ i ] ;\n c -> ref [ 0 ] [ i ] = ref [ i ] + offset [ i ] ;\n }\n if ( ref_index ) {\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n c -> ref [ ref_index ] [ i ] = ref2 [ i ] + offset [ i ] ;\n }\n }\n }"}
{"idx": 5959, "target": 0, "func": "static int dissect_pvfs2_ds_type ( tvbuff_t * tvb , proto_tree * tree , int offset , int * pds_type ) {\n guint32 ds_type ;\n ds_type = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_pvfs_ds_type , tvb , offset , 4 , ds_type ) ;\n offset += 4 ;\n if ( pds_type ) * pds_type = ds_type ;\n return offset ;\n }"}
{"idx": 5960, "target": 0, "func": "static int parse_PRSPEC_Kind ( tvbuff_t * tvb , int offset , proto_tree * tree , enum PRSPEC_Kind * prspec ) {\n static const value_string KIND [ ] = {\n {\n 0 , \"PRSPEC_LPWSTR\" }\n , {\n 1 , \"PRSPEC_PROPID\" }\n , {\n 0 , NULL }\n }\n ;\n gint32 kind = tvb_get_letohl ( tvb , offset ) ;\n DISSECTOR_ASSERT ( kind < ( PRSPEC_PROPID + 1 ) ) ;\n if ( kind ) {\n * prspec = PRSPEC_PROPID ;\n }\n else {\n * prspec = PRSPEC_LPWSTR ;\n }\n proto_tree_add_string ( tree , hf_mswsp_cfullpropspec_kind , tvb , offset , 4 , val_to_str ( * prspec , KIND , \"(Unknown: 0x%x)\" ) ) ;\n offset += 4 ;\n return offset ;\n }"}
{"idx": 5961, "target": 0, "func": "static int ts_lua_http_client_packet_dscp_set ( lua_State * L ) {\n int value ;\n ts_lua_http_ctx * http_ctx ;\n GET_HTTP_CONTEXT ( http_ctx , L ) ;\n value = luaL_checkinteger ( L , 1 ) ;\n TSDebug ( TS_LUA_DEBUG_TAG , \"client packet dscp set\" ) ;\n TSHttpTxnClientPacketDscpSet ( http_ctx -> txnp , value ) ;\n return 0 ;\n }"}
{"idx": 5962, "target": 1, "func": "static int64_t rd_pick_intra_sbuv_mode ( VP9_COMP * cpi , MACROBLOCK * x , PICK_MODE_CONTEXT * ctx , int * rate , int * rate_tokenonly , int64_t * distortion , int * skippable , BLOCK_SIZE bsize , TX_SIZE max_tx_size ) {\n MACROBLOCKD * xd = & x -> e_mbd ;\n PREDICTION_MODE mode ;\n PREDICTION_MODE mode_selected = DC_PRED ;\n int64_t best_rd = INT64_MAX , this_rd ;\n int this_rate_tokenonly , this_rate , s ;\n int64_t this_distortion , this_sse ;\n for ( mode = DC_PRED ;\n mode <= TM_PRED ;\n ++ mode ) {\n if ( ! ( cpi -> sf . intra_uv_mode_mask [ max_tx_size ] & ( 1 << mode ) ) ) continue ;\n xd -> mi [ 0 ] -> mbmi . uv_mode = mode ;\n super_block_uvrd ( cpi , x , & this_rate_tokenonly , & this_distortion , & s , & this_sse , bsize , best_rd ) ;\n if ( this_rate_tokenonly == INT_MAX ) continue ;\n this_rate = this_rate_tokenonly + cpi -> intra_uv_mode_cost [ cpi -> common . frame_type ] [ mode ] ;\n this_rd = RDCOST ( x -> rdmult , x -> rddiv , this_rate , this_distortion ) ;\n if ( this_rd < best_rd ) {\n mode_selected = mode ;\n best_rd = this_rd ;\n * rate = this_rate ;\n * rate_tokenonly = this_rate_tokenonly ;\n * distortion = this_distortion ;\n * skippable = s ;\n if ( ! x -> select_tx_size ) swap_block_ptr ( x , ctx , 2 , 0 , 1 , MAX_MB_PLANE ) ;\n }\n }\n xd -> mi [ 0 ] -> mbmi . uv_mode = mode_selected ;\n return best_rd ;\n }"}
{"idx": 5963, "target": 0, "func": "static int qemuAgentIORead ( qemuAgentPtr mon ) {\n size_t avail = mon -> bufferLength - mon -> bufferOffset ;\n int ret = 0 ;\n if ( avail < 1024 ) {\n if ( mon -> bufferLength >= QEMU_AGENT_MAX_RESPONSE ) {\n virReportSystemError ( ERANGE , _ ( \"No complete agent response found in %d bytes\" ) , QEMU_AGENT_MAX_RESPONSE ) ;\n return - 1 ;\n }\n if ( VIR_REALLOC_N ( mon -> buffer , mon -> bufferLength + 1024 ) < 0 ) return - 1 ;\n mon -> bufferLength += 1024 ;\n avail += 1024 ;\n }\n while ( avail > 1 ) {\n int got ;\n got = read ( mon -> fd , mon -> buffer + mon -> bufferOffset , avail - 1 ) ;\n if ( got < 0 ) {\n if ( errno == EAGAIN ) break ;\n virReportSystemError ( errno , \"%s\" , _ ( \"Unable to read from monitor\" ) ) ;\n ret = - 1 ;\n break ;\n }\n if ( got == 0 ) break ;\n ret += got ;\n avail -= got ;\n mon -> bufferOffset += got ;\n mon -> buffer [ mon -> bufferOffset ] = '\\0' ;\n }\n # if DEBUG_IO VIR_DEBUG ( \"Now read %zu bytes of data\" , mon -> bufferOffset ) ;\n # endif return ret ;\n }"}
{"idx": 5964, "target": 0, "func": "void crypto_policy_set_aes_cm_256_hmac_sha1_32 ( crypto_policy_t * p ) {\n p -> cipher_type = AES_ICM ;\n p -> cipher_key_len = 46 ;\n p -> auth_type = HMAC_SHA1 ;\n p -> auth_key_len = 20 ;\n p -> auth_tag_len = 4 ;\n p -> sec_serv = sec_serv_conf_and_auth ;\n }"}
{"idx": 5965, "target": 0, "func": "static int selinux_inode_getattr ( const struct path * path ) {\n return path_has_perm ( current_cred ( ) , path , FILE__GETATTR ) ;\n }"}
{"idx": 5966, "target": 0, "func": "enum message_read_status evhttp_parse_headers ( struct evhttp_request * req , struct evbuffer * buffer ) {\n char * line ;\n enum message_read_status status = MORE_DATA_EXPECTED ;\n struct evkeyvalq * headers = req -> input_headers ;\n while ( ( line = evbuffer_readline ( buffer ) ) != NULL ) {\n char * skey , * svalue ;\n if ( * line == '\\0' ) {\n status = ALL_DATA_READ ;\n free ( line ) ;\n break ;\n }\n if ( * line == ' ' || * line == '\\t' ) {\n if ( evhttp_append_to_last_header ( headers , line ) == - 1 ) goto error ;\n free ( line ) ;\n continue ;\n }\n svalue = line ;\n skey = strsep ( & svalue , \":\" ) ;\n if ( svalue == NULL ) goto error ;\n svalue += strspn ( svalue , \" \" ) ;\n if ( evhttp_add_header ( headers , skey , svalue ) == - 1 ) goto error ;\n free ( line ) ;\n }\n return ( status ) ;\n error : free ( line ) ;\n return ( DATA_CORRUPTED ) ;\n }"}
{"idx": 5967, "target": 0, "func": "static void TestHeapFunctions ( ) {\n UErrorCode status = U_ZERO_ERROR ;\n UResourceBundle * rb = NULL ;\n char * icuDataDir ;\n UVersionInfo unicodeVersion = {\n 0 , 0 , 0 , 0 }\n ;\n icuDataDir = safeGetICUDataDirectory ( ) ;\n ctest_resetICU ( ) ;\n u_cleanup ( ) ;\n status = U_ZERO_ERROR ;\n u_setMemoryFunctions ( & gContext , NULL , myMemRealloc , myMemFree , & status ) ;\n TEST_STATUS ( status , U_ILLEGAL_ARGUMENT_ERROR ) ;\n status = U_ZERO_ERROR ;\n u_setMemoryFunctions ( & gContext , myMemAlloc , NULL , myMemFree , & status ) ;\n TEST_STATUS ( status , U_ILLEGAL_ARGUMENT_ERROR ) ;\n status = U_ZERO_ERROR ;\n u_setMemoryFunctions ( & gContext , myMemAlloc , myMemRealloc , NULL , & status ) ;\n TEST_STATUS ( status , U_ILLEGAL_ARGUMENT_ERROR ) ;\n status = U_ZERO_ERROR ;\n u_setMemoryFunctions ( NULL , myMemAlloc , myMemRealloc , myMemFree , & status ) ;\n TEST_STATUS ( status , U_ZERO_ERROR ) ;\n u_setMemoryFunctions ( & gContext , myMemAlloc , myMemRealloc , myMemFree , & status ) ;\n TEST_STATUS ( status , U_ZERO_ERROR ) ;\n status = U_ZERO_ERROR ;\n u_setDataDirectory ( icuDataDir ) ;\n u_init ( & status ) ;\n TEST_STATUS ( status , U_ZERO_ERROR ) ;\n gBlockCount = 0 ;\n status = U_ZERO_ERROR ;\n rb = ures_open ( NULL , \"es\" , & status ) ;\n TEST_STATUS ( status , U_ZERO_ERROR ) ;\n if ( gBlockCount == 0 ) {\n log_err ( \"Heap functions are not being called from ICU.\\n\" ) ;\n }\n ures_close ( rb ) ;\n ctest_resetICU ( ) ;\n u_getUnicodeVersion ( unicodeVersion ) ;\n if ( unicodeVersion [ 0 ] <= 0 ) {\n log_err ( \"Properties doesn't reinitialize without u_init.\\n\" ) ;\n }\n status = U_ZERO_ERROR ;\n u_init ( & status ) ;\n TEST_STATUS ( status , U_ZERO_ERROR ) ;\n gBlockCount = 0 ;\n status = U_ZERO_ERROR ;\n rb = ures_open ( NULL , \"fr\" , & status ) ;\n TEST_STATUS ( status , U_ZERO_ERROR ) ;\n if ( gBlockCount != 0 ) {\n log_err ( \"Heap functions did not reset after u_cleanup.\\n\" ) ;\n }\n ures_close ( rb ) ;\n free ( icuDataDir ) ;\n ctest_resetICU ( ) ;\n }"}
{"idx": 5968, "target": 0, "func": "static int print_ccp_config_options ( netdissect_options * ndo , const u_char * p , int length ) {\n int len , opt ;\n if ( length < 2 ) return 0 ;\n ND_TCHECK2 ( * p , 2 ) ;\n len = p [ 1 ] ;\n opt = p [ 0 ] ;\n if ( length < len ) return 0 ;\n if ( len < 2 ) {\n ND_PRINT ( ( ndo , \"\\n\\t %s Option (0x%02x), length %u (length bogus, should be >= 2)\" , tok2str ( ccpconfopts_values , \"Unknown\" , opt ) , opt , len ) ) ;\n return 0 ;\n }\n ND_PRINT ( ( ndo , \"\\n\\t %s Option (0x%02x), length %u\" , tok2str ( ccpconfopts_values , \"Unknown\" , opt ) , opt , len ) ) ;\n switch ( opt ) {\n case CCPOPT_BSDCOMP : if ( len < 3 ) {\n ND_PRINT ( ( ndo , \" (length bogus, should be >= 3)\" ) ) ;\n return len ;\n }\n ND_TCHECK2 ( * ( p + 2 ) , 1 ) ;\n ND_PRINT ( ( ndo , \": Version: %u, Dictionary Bits: %u\" , p [ 2 ] >> 5 , p [ 2 ] & 0x1f ) ) ;\n break ;\n case CCPOPT_MVRCA : if ( len < 4 ) {\n ND_PRINT ( ( ndo , \" (length bogus, should be >= 4)\" ) ) ;\n return len ;\n }\n ND_TCHECK2 ( * ( p + 2 ) , 1 ) ;\n ND_PRINT ( ( ndo , \": Features: %u, PxP: %s, History: %u, #CTX-ID: %u\" , ( p [ 2 ] & 0xc0 ) >> 6 , ( p [ 2 ] & 0x20 ) ? \"Enabled\" : \"Disabled\" , p [ 2 ] & 0x1f , p [ 3 ] ) ) ;\n break ;\n case CCPOPT_DEFLATE : if ( len < 4 ) {\n ND_PRINT ( ( ndo , \" (length bogus, should be >= 4)\" ) ) ;\n return len ;\n }\n ND_TCHECK2 ( * ( p + 2 ) , 1 ) ;\n ND_PRINT ( ( ndo , \": Window: %uK, Method: %s (0x%x), MBZ: %u, CHK: %u\" , ( p [ 2 ] & 0xf0 ) >> 4 , ( ( p [ 2 ] & 0x0f ) == 8 ) ? \"zlib\" : \"unkown\" , p [ 2 ] & 0x0f , ( p [ 3 ] & 0xfc ) >> 2 , p [ 3 ] & 0x03 ) ) ;\n break ;\n # if 0 case CCPOPT_OUI : case CCPOPT_PRED1 : case CCPOPT_PRED2 : case CCPOPT_PJUMP : case CCPOPT_HPPPC : case CCPOPT_STACLZS : case CCPOPT_MPPC : case CCPOPT_GFZA : case CCPOPT_V42BIS : case CCPOPT_LZSDCP : case CCPOPT_DEC : case CCPOPT_RESV : break ;\n # endif default : if ( ndo -> ndo_vflag < 2 ) print_unknown_data ( ndo , & p [ 2 ] , \"\\n\\t \" , len - 2 ) ;\n break ;\n }\n if ( ndo -> ndo_vflag > 1 ) print_unknown_data ( ndo , & p [ 2 ] , \"\\n\\t \" , len - 2 ) ;\n return len ;\n trunc : ND_PRINT ( ( ndo , \"[|ccp]\" ) ) ;\n return 0 ;\n }"}
{"idx": 5969, "target": 0, "func": "void TSHttpTxnDebugSet ( TSHttpTxn txnp , int on ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n ( ( HttpSM * ) txnp ) -> debug_on = on ;\n }"}
{"idx": 5970, "target": 1, "func": "enum ImapAuthRes imap_auth_cram_md5 ( struct ImapData * idata , const char * method ) {\n char ibuf [ LONG_STRING * 2 ] , obuf [ LONG_STRING ] ;\n unsigned char hmac_response [ MD5_DIGEST_LEN ] ;\n int len ;\n int rc ;\n if ( ! mutt_bit_isset ( idata -> capabilities , ACRAM_MD5 ) ) return IMAP_AUTH_UNAVAIL ;\n mutt_message ( _ ( \"Authenticating (CRAM-MD5)...\" ) ) ;\n if ( mutt_account_getlogin ( & idata -> conn -> account ) < 0 ) return IMAP_AUTH_FAILURE ;\n if ( mutt_account_getpass ( & idata -> conn -> account ) < 0 ) return IMAP_AUTH_FAILURE ;\n imap_cmd_start ( idata , \"AUTHENTICATE CRAM-MD5\" ) ;\n do rc = imap_cmd_step ( idata ) ;\n while ( rc == IMAP_CMD_CONTINUE ) ;\n if ( rc != IMAP_CMD_RESPOND ) {\n mutt_debug ( 1 , \"Invalid response from server: %s\\n\" , ibuf ) ;\n goto bail ;\n }\n len = mutt_b64_decode ( obuf , idata -> buf + 2 ) ;\n if ( len == - 1 ) {\n mutt_debug ( 1 , \"Error decoding base64 response.\\n\" ) ;\n goto bail ;\n }\n obuf [ len ] = '\\0' ;\n mutt_debug ( 2 , \"CRAM challenge: %s\\n\" , obuf ) ;\n hmac_md5 ( idata -> conn -> account . pass , obuf , hmac_response ) ;\n int off = snprintf ( obuf , sizeof ( obuf ) , \"%s \" , idata -> conn -> account . user ) ;\n mutt_md5_toascii ( hmac_response , obuf + off ) ;\n mutt_debug ( 2 , \"CRAM response: %s\\n\" , obuf ) ;\n mutt_b64_encode ( ibuf , obuf , strlen ( obuf ) , sizeof ( ibuf ) - 2 ) ;\n mutt_str_strcat ( ibuf , sizeof ( ibuf ) , \"\\r\\n\" ) ;\n mutt_socket_send ( idata -> conn , ibuf ) ;\n do rc = imap_cmd_step ( idata ) ;\n while ( rc == IMAP_CMD_CONTINUE ) ;\n if ( rc != IMAP_CMD_OK ) {\n mutt_debug ( 1 , \"Error receiving server response.\\n\" ) ;\n goto bail ;\n }\n if ( imap_code ( idata -> buf ) ) return IMAP_AUTH_SUCCESS ;\n bail : mutt_error ( _ ( \"CRAM-MD5 authentication failed.\" ) ) ;\n return IMAP_AUTH_FAILURE ;\n }"}
{"idx": 5971, "target": 0, "func": "static void var_free ( void * v ) {\n VAR * var = ( VAR * ) v ;\n my_free ( var -> str_val ) ;\n if ( var -> alloced ) my_free ( var ) ;\n }"}
{"idx": 5972, "target": 0, "func": "SplineChar * PSCharStringToSplines ( uint8 * type1 , int len , struct pscontext * context , struct pschars * subrs , struct pschars * gsubrs , const char * name ) {\n int is_type2 = context -> is_type2 ;\n real stack [ 50 ] ;\n int sp = 0 , v ;\n real transient [ 32 ] ;\n SplineChar * ret = SplineCharCreate ( 2 ) ;\n SplinePointList * cur = NULL , * oldcur = NULL ;\n RefChar * r1 , * r2 , * rlast = NULL ;\n DBasePoint current ;\n real dx , dy , dx2 , dy2 , dx3 , dy3 , dx4 , dy4 , dx5 , dy5 , dx6 , dy6 ;\n SplinePoint * pt ;\n struct substate {\n unsigned char * type1 ;\n int len ;\n int subnum ;\n }\n pcstack [ 11 ] ;\n int pcsp = 0 ;\n StemInfo * hint , * hp ;\n real pops [ 30 ] ;\n int popsp = 0 ;\n int base , polarity ;\n real coord ;\n struct pschars * s ;\n int hint_cnt = 0 ;\n StemInfo * activeh = NULL , * activev = NULL , * sameh ;\n HintMask * pending_hm = NULL ;\n HintMask * counters [ 96 ] ;\n int cp = 0 ;\n real unblended [ 2 ] [ MmMax ] ;\n int last_was_b1 = false , old_last_was_b1 ;\n if ( ! is_type2 && context -> instance_count > 1 ) memset ( unblended , 0 , sizeof ( unblended ) ) ;\n ret -> name = copy ( name ) ;\n ret -> unicodeenc = - 1 ;\n ret -> width = ( int16 ) 0x8000 ;\n if ( name == NULL ) name = \"unnamed\" ;\n ret -> manualhints = true ;\n current . x = current . y = 0 ;\n while ( len > 0 ) {\n if ( sp > 48 ) {\n LogError ( _ ( \"Stack got too big in %s\\n\" ) , name ) ;\n sp = 48 ;\n }\n base = 0 ;\n -- len ;\n if ( ( v = * type1 ++ ) >= 32 ) {\n if ( v <= 246 ) {\n stack [ sp ++ ] = v - 139 ;\n }\n else if ( v <= 250 ) {\n stack [ sp ++ ] = ( v - 247 ) * 256 + * type1 ++ + 108 ;\n -- len ;\n }\n else if ( v <= 254 ) {\n stack [ sp ++ ] = - ( v - 251 ) * 256 - * type1 ++ - 108 ;\n -- len ;\n }\n else {\n if ( len < 4 ) {\n LogError ( _ ( \"Not enough data: %d < 4\" ) , len ) ;\n len = 0 ;\n break ;\n }\n int val = ( * type1 << 24 ) | ( type1 [ 1 ] << 16 ) | ( type1 [ 2 ] << 8 ) | type1 [ 3 ] ;\n stack [ sp ++ ] = val ;\n type1 += 4 ;\n len -= 4 ;\n if ( is_type2 ) {\n # ifndef PSFixed_Is_TTF stack [ sp - 1 ] /= 65536. ;\n # else int mant = val & 0xffff ;\n stack [ sp - 1 ] = ( val >> 16 ) + mant / 65536. ;\n # endif }\n }\n }\n else if ( v == 28 ) {\n stack [ sp ++ ] = ( short ) ( ( type1 [ 0 ] << 8 ) | type1 [ 1 ] ) ;\n type1 += 2 ;\n len -= 2 ;\n }\n else if ( v == 12 ) {\n old_last_was_b1 = last_was_b1 ;\n last_was_b1 = false ;\n v = * type1 ++ ;\n -- len ;\n switch ( v ) {\n case 0 : if ( is_type2 ) LogError ( _ ( \"%s\\'s dotsection operator is deprecated for Type2\\n\" ) , name ) ;\n sp = 0 ;\n break ;\n case 1 : if ( sp < 6 ) LogError ( _ ( \"Stack underflow on vstem3 in %s\\n\" ) , name ) ;\n if ( is_type2 ) LogError ( _ ( \"%s\\'s vstem3 operator is not supported for Type2\\n\" ) , name ) ;\n sameh = NULL ;\n if ( ! is_type2 ) sameh = SameH ( ret -> vstem , stack [ 0 ] + ret -> lsidebearing , stack [ 1 ] , unblended , 0 ) ;\n hint = HintNew ( stack [ 0 ] + ret -> lsidebearing , stack [ 1 ] ) ;\n hint -> hintnumber = sameh != NULL ? sameh -> hintnumber : hint_cnt ++ ;\n if ( activev == NULL ) activev = hp = hint ;\n else {\n for ( hp = activev ;\n hp -> next != NULL ;\n hp = hp -> next ) ;\n hp -> next = hint ;\n hp = hint ;\n }\n sameh = NULL ;\n if ( ! is_type2 ) sameh = SameH ( ret -> vstem , stack [ 2 ] + ret -> lsidebearing , stack [ 3 ] , unblended , 0 ) ;\n hp -> next = HintNew ( stack [ 2 ] + ret -> lsidebearing , stack [ 3 ] ) ;\n hp -> next -> hintnumber = sameh != NULL ? sameh -> hintnumber : hint_cnt ++ ;\n if ( ! is_type2 ) sameh = SameH ( ret -> vstem , stack [ 4 ] + ret -> lsidebearing , stack [ 5 ] , unblended , 0 ) ;\n hp -> next -> next = HintNew ( stack [ 4 ] + ret -> lsidebearing , stack [ 5 ] ) ;\n hp -> next -> next -> hintnumber = sameh != NULL ? sameh -> hintnumber : hint_cnt ++ ;\n if ( ! is_type2 && hp -> next -> next -> hintnumber < 96 ) {\n if ( pending_hm == NULL ) pending_hm = chunkalloc ( sizeof ( HintMask ) ) ;\n ( * pending_hm ) [ hint -> hintnumber >> 3 ] |= 0x80 >> ( hint -> hintnumber & 0x7 ) ;\n ( * pending_hm ) [ hint -> next -> hintnumber >> 3 ] |= 0x80 >> ( hint -> next -> hintnumber & 0x7 ) ;\n ( * pending_hm ) [ hint -> next -> next -> hintnumber >> 3 ] |= 0x80 >> ( hint -> next -> next -> hintnumber & 0x7 ) ;\n }\n hp = hp -> next -> next ;\n sp = 0 ;\n break ;\n case 2 : if ( sp < 6 ) LogError ( _ ( \"Stack underflow on hstem3 in %s\\n\" ) , name ) ;\n if ( is_type2 ) LogError ( _ ( \"%s\\'s vstem3 operator is not supported for Type2\\n\" ) , name ) ;\n sameh = NULL ;\n if ( ! is_type2 ) sameh = SameH ( ret -> hstem , stack [ 0 ] , stack [ 1 ] , unblended , 0 ) ;\n hint = HintNew ( stack [ 0 ] , stack [ 1 ] ) ;\n hint -> hintnumber = sameh != NULL ? sameh -> hintnumber : hint_cnt ++ ;\n if ( activeh == NULL ) activeh = hp = hint ;\n else {\n for ( hp = activeh ;\n hp -> next != NULL ;\n hp = hp -> next ) ;\n hp -> next = hint ;\n hp = hint ;\n }\n sameh = NULL ;\n if ( ! is_type2 ) sameh = SameH ( ret -> hstem , stack [ 2 ] , stack [ 3 ] , unblended , 0 ) ;\n hp -> next = HintNew ( stack [ 2 ] , stack [ 3 ] ) ;\n hp -> next -> hintnumber = sameh != NULL ? sameh -> hintnumber : hint_cnt ++ ;\n sameh = NULL ;\n if ( ! is_type2 ) sameh = SameH ( ret -> hstem , stack [ 4 ] , stack [ 5 ] , unblended , 0 ) ;\n hp -> next -> next = HintNew ( stack [ 4 ] , stack [ 5 ] ) ;\n hp -> next -> next -> hintnumber = sameh != NULL ? sameh -> hintnumber : hint_cnt ++ ;\n if ( ! is_type2 && hp -> next -> next -> hintnumber < 96 ) {\n if ( pending_hm == NULL ) pending_hm = chunkalloc ( sizeof ( HintMask ) ) ;\n ( * pending_hm ) [ hint -> hintnumber >> 3 ] |= 0x80 >> ( hint -> hintnumber & 0x7 ) ;\n ( * pending_hm ) [ hint -> next -> hintnumber >> 3 ] |= 0x80 >> ( hint -> next -> hintnumber & 0x7 ) ;\n ( * pending_hm ) [ hint -> next -> next -> hintnumber >> 3 ] |= 0x80 >> ( hint -> next -> next -> hintnumber & 0x7 ) ;\n }\n hp = hp -> next -> next ;\n sp = 0 ;\n break ;\n case 6 : seac : if ( sp < 5 ) LogError ( _ ( \"Stack underflow on seac in %s\\n\" ) , name ) ;\n if ( is_type2 ) {\n if ( v == 6 ) LogError ( _ ( \"%s\\'s SEAC operator is invalid for Type2\\n\" ) , name ) ;\n else LogError ( _ ( \"%s\\'s SEAC-like endchar operator is deprecated for Type2\\n\" ) , name ) ;\n }\n r1 = RefCharCreate ( ) ;\n r2 = RefCharCreate ( ) ;\n r2 -> transform [ 0 ] = 1 ;\n r2 -> transform [ 3 ] = 1 ;\n r2 -> transform [ 4 ] = stack [ 1 ] - ( stack [ 0 ] - ret -> lsidebearing ) ;\n r2 -> transform [ 5 ] = stack [ 2 ] ;\n r1 -> transform [ 0 ] = 1 ;\n r1 -> transform [ 3 ] = 1 ;\n r1 -> adobe_enc = stack [ 3 ] ;\n r2 -> adobe_enc = stack [ 4 ] ;\n if ( stack [ 3 ] < 0 || stack [ 3 ] >= 256 || stack [ 4 ] < 0 || stack [ 4 ] >= 256 ) {\n LogError ( _ ( \"Reference encoding out of bounds in %s\\n\" ) , name ) ;\n r1 -> adobe_enc = 0 ;\n r2 -> adobe_enc = 0 ;\n }\n r1 -> next = r2 ;\n if ( rlast != NULL ) rlast -> next = r1 ;\n else ret -> layers [ ly_fore ] . refs = r1 ;\n ret -> changedsincelasthinted = true ;\n rlast = r2 ;\n sp = 0 ;\n break ;\n case 7 : if ( sp < 4 ) LogError ( _ ( \"Stack underflow on sbw in %s\\n\" ) , name ) ;\n if ( is_type2 ) LogError ( _ ( \"%s\\'s sbw operator is not supported for Type2\\n\" ) , name ) ;\n ret -> lsidebearing = stack [ 0 ] ;\n ret -> width = stack [ 2 ] ;\n sp = 0 ;\n break ;\n case 5 : case 9 : case 14 : case 26 : if ( sp < 1 ) LogError ( _ ( \"Stack underflow on unary operator in %s\\n\" ) , name ) ;\n switch ( v ) {\n case 5 : stack [ sp - 1 ] = ( stack [ sp - 1 ] == 0 ) ;\n break ;\n case 9 : if ( stack [ sp - 1 ] < 0 ) stack [ sp - 1 ] = - stack [ sp - 1 ] ;\n break ;\n case 14 : stack [ sp - 1 ] = - stack [ sp - 1 ] ;\n break ;\n case 26 : stack [ sp - 1 ] = sqrt ( stack [ sp - 1 ] ) ;\n break ;\n default : break ;\n }\n break ;\n case 3 : case 4 : case 10 : case 11 : case 12 : case 15 : case 24 : if ( sp < 2 ) LogError ( _ ( \"Stack underflow on binary operator in %s\\n\" ) , name ) ;\n else switch ( v ) {\n case 3 : stack [ sp - 2 ] = ( stack [ sp - 1 ] != 0 && stack [ sp - 2 ] != 0 ) ;\n break ;\n case 4 : stack [ sp - 2 ] = ( stack [ sp - 1 ] != 0 || stack [ sp - 2 ] != 0 ) ;\n break ;\n case 10 : stack [ sp - 2 ] += stack [ sp - 1 ] ;\n break ;\n case 11 : stack [ sp - 2 ] -= stack [ sp - 1 ] ;\n break ;\n case 12 : stack [ sp - 2 ] /= stack [ sp - 1 ] ;\n break ;\n case 24 : stack [ sp - 2 ] *= stack [ sp - 1 ] ;\n break ;\n case 15 : stack [ sp - 2 ] = ( stack [ sp - 1 ] == stack [ sp - 2 ] ) ;\n break ;\n default : break ;\n }\n -- sp ;\n break ;\n case 22 : if ( sp < 4 ) LogError ( _ ( \"Stack underflow on ifelse in %s\\n\" ) , name ) ;\n else {\n if ( stack [ sp - 2 ] > stack [ sp - 1 ] ) stack [ sp - 4 ] = stack [ sp - 3 ] ;\n sp -= 3 ;\n }\n break ;\n case 23 : do {\n stack [ sp ] = ( rand ( ) / ( RAND_MAX - 1 ) ) ;\n }\n while ( stack [ sp ] == 0 || stack [ sp ] > 1 ) ;\n ++ sp ;\n break ;\n case 16 : if ( is_type2 ) LogError ( _ ( \"Type2 fonts do not support the Type1 callothersubrs operator\" ) ) ;\n if ( sp < 2 || sp < 2 + stack [ sp - 2 ] ) {\n LogError ( _ ( \"Stack underflow on callothersubr in %s\\n\" ) , name ) ;\n sp = 0 ;\n }\n else {\n int tot = stack [ sp - 2 ] , i , k , j ;\n popsp = 0 ;\n for ( k = sp - 3 ;\n k >= sp - 2 - tot ;\n -- k ) pops [ popsp ++ ] = stack [ k ] ;\n switch ( ( int ) stack [ sp - 1 ] ) {\n case 3 : {\n ret -> manualhints = false ;\n ret -> hstem = HintsAppend ( ret -> hstem , activeh ) ;\n activeh = NULL ;\n ret -> vstem = HintsAppend ( ret -> vstem , activev ) ;\n activev = NULL ;\n }\n break ;\n case 1 : {\n is_type2 = false ;\n if ( cur != NULL ) {\n oldcur = cur ;\n cur -> next = NULL ;\n }\n else LogError ( _ ( \"Bad flex subroutine in %s\\n\" ) , name ) ;\n }\n break ;\n case 2 : {\n ;\n }\n break ;\n case 0 : if ( oldcur != NULL ) {\n SplinePointList * spl = oldcur -> next ;\n if ( spl != NULL && spl -> next != NULL && spl -> next -> next != NULL && spl -> next -> next -> next != NULL && spl -> next -> next -> next -> next != NULL && spl -> next -> next -> next -> next -> next != NULL && spl -> next -> next -> next -> next -> next -> next != NULL ) {\n BasePoint old_nextcp , mid_prevcp , mid , mid_nextcp , end_prevcp , end ;\n old_nextcp = spl -> next -> first -> me ;\n mid_prevcp = spl -> next -> next -> first -> me ;\n mid = spl -> next -> next -> next -> first -> me ;\n mid_nextcp = spl -> next -> next -> next -> next -> first -> me ;\n end_prevcp = spl -> next -> next -> next -> next -> next -> first -> me ;\n end = spl -> next -> next -> next -> next -> next -> next -> first -> me ;\n cur = oldcur ;\n if ( cur != NULL && cur -> first != NULL && ( cur -> first != cur -> last || cur -> first -> next == NULL ) ) {\n cur -> last -> nextcp = old_nextcp ;\n cur -> last -> nonextcp = false ;\n pt = chunkalloc ( sizeof ( SplinePoint ) ) ;\n pt -> hintmask = pending_hm ;\n pending_hm = NULL ;\n pt -> prevcp = mid_prevcp ;\n pt -> me = mid ;\n pt -> nextcp = mid_nextcp ;\n CheckMake ( cur -> last , pt ) ;\n SplineMake3 ( cur -> last , pt ) ;\n cur -> last = pt ;\n pt = chunkalloc ( sizeof ( SplinePoint ) ) ;\n pt -> prevcp = end_prevcp ;\n pt -> me = end ;\n pt -> nonextcp = true ;\n CheckMake ( cur -> last , pt ) ;\n SplineMake3 ( cur -> last , pt ) ;\n cur -> last = pt ;\n }\n else LogError ( _ ( \"No previous point on path in curveto from flex 0 in %s\\n\" ) , name ) ;\n }\n else {\n pt = chunkalloc ( sizeof ( SplinePoint ) ) ;\n pt -> me . x = pops [ 1 ] ;\n pt -> me . y = pops [ 0 ] ;\n pt -> noprevcp = true ;\n pt -> nonextcp = true ;\n SplinePointListFree ( oldcur -> next ) ;\n oldcur -> next = NULL ;\n spl = NULL ;\n cur = oldcur ;\n if ( cur != NULL && cur -> first != NULL && ( cur -> first != cur -> last || cur -> first -> next == NULL ) ) {\n CheckMake ( cur -> last , pt ) ;\n SplineMake3 ( cur -> last , pt ) ;\n cur -> last = pt ;\n }\n else LogError ( _ ( \"No previous point on path in lineto from flex 0 in %s\\n\" ) , name ) ;\n }\n -- popsp ;\n cur -> next = NULL ;\n SplinePointListsFree ( spl ) ;\n oldcur = NULL ;\n }\n else LogError ( _ ( \"Bad flex subroutine in %s\\n\" ) , name ) ;\n is_type2 = context -> is_type2 ;\n break ;\n case 14 : case 15 : case 16 : case 17 : case 18 : {\n int cnt = stack [ sp - 1 ] - 13 ;\n if ( cnt == 5 ) cnt = 6 ;\n if ( context -> instance_count == 0 ) LogError ( _ ( \"Attempt to use a multiple master subroutine in a non-mm font in %s.\\n\" ) , name ) ;\n else if ( tot != cnt * context -> instance_count ) LogError ( _ ( \"Multiple master subroutine called with the wrong number of arguments in %s.\\n\" ) , name ) ;\n else {\n if ( cnt == 1 && ! is_type2 ) {\n if ( sp - 2 - tot >= 1 && ( ! old_last_was_b1 || stack [ 0 ] != Blend ( unblended [ 1 ] , context ) ) ) {\n unblended [ 0 ] [ 0 ] = stack [ 0 ] ;\n for ( i = 1 ;\n i < context -> instance_count ;\n ++ i ) unblended [ 0 ] [ i ] = 0 ;\n }\n else memcpy ( unblended , unblended + 1 , context -> instance_count * sizeof ( real ) ) ;\n for ( j = 0 ;\n j < context -> instance_count ;\n ++ j ) unblended [ 1 ] [ j ] = stack [ sp - 2 - tot + j ] ;\n }\n else if ( cnt == 2 && ! is_type2 ) {\n unblended [ 0 ] [ 0 ] = stack [ sp - 2 - tot ] ;\n unblended [ 1 ] [ 0 ] = stack [ sp - 2 - tot + 1 ] ;\n for ( i = 0 ;\n i < 2 ;\n ++ i ) for ( j = 1 ;\n j < context -> instance_count ;\n ++ j ) unblended [ i ] [ j ] = stack [ sp - 2 - tot + 2 + i * ( context -> instance_count - 1 ) + ( j - 1 ) ] ;\n }\n popsp = 0 ;\n for ( i = 0 ;\n i < cnt ;\n ++ i ) {\n double sum = stack [ sp - 2 - tot + i ] ;\n for ( j = 1 ;\n j < context -> instance_count ;\n ++ j ) sum += context -> blend_values [ j ] * stack [ sp - 2 - tot + cnt + i * ( context -> instance_count - 1 ) + j - 1 ] ;\n pops [ cnt - 1 - popsp ++ ] = sum ;\n }\n }\n }\n break ;\n }\n sp = k + 1 ;\n }\n break ;\n case 20 : if ( sp < 2 ) LogError ( _ ( \"Too few items on stack for put in %s\\n\" ) , name ) ;\n else if ( stack [ sp - 1 ] < 0 || stack [ sp - 1 ] >= 32 ) LogError ( _ ( \"Reference to transient memory out of bounds in put in %s\\n\" ) , name ) ;\n else {\n transient [ ( int ) stack [ sp - 1 ] ] = stack [ sp - 2 ] ;\n sp -= 2 ;\n }\n break ;\n case 21 : if ( sp < 1 ) LogError ( _ ( \"Too few items on stack for get in %s\\n\" ) , name ) ;\n else if ( stack [ sp - 1 ] < 0 || stack [ sp - 1 ] >= 32 ) LogError ( _ ( \"Reference to transient memory out of bounds in put in %s\\n\" ) , name ) ;\n else stack [ sp - 1 ] = transient [ ( int ) stack [ sp - 1 ] ] ;\n break ;\n case 17 : if ( popsp <= 0 ) LogError ( _ ( \"Pop stack underflow on pop in %s\\n\" ) , name ) ;\n else stack [ sp ++ ] = pops [ -- popsp ] ;\n break ;\n case 18 : if ( sp > 0 ) -- sp ;\n break ;\n case 27 : if ( sp >= 1 ) {\n stack [ sp ] = stack [ sp - 1 ] ;\n ++ sp ;\n }\n break ;\n case 28 : if ( sp >= 2 ) {\n real temp = stack [ sp - 1 ] ;\n stack [ sp - 1 ] = stack [ sp - 2 ] ;\n stack [ sp - 2 ] = temp ;\n }\n break ;\n case 29 : if ( sp >= 1 ) {\n int index = stack [ -- sp ] ;\n if ( index < 0 || sp < index + 1 ) LogError ( _ ( \"Index out of range in %s\\n\" ) , name ) ;\n else {\n stack [ sp ] = stack [ sp - index - 1 ] ;\n ++ sp ;\n }\n }\n break ;\n case 30 : if ( sp >= 2 ) {\n int j = stack [ sp - 1 ] , N = stack [ sp - 2 ] ;\n if ( N > sp || j >= N || j < 0 || N < 0 ) LogError ( _ ( \"roll out of range in %s\\n\" ) , name ) ;\n else if ( j == 0 || N == 0 ) ;\n else {\n real * temp = malloc ( N * sizeof ( real ) ) ;\n int i ;\n for ( i = 0 ;\n i < N ;\n ++ i ) temp [ i ] = stack [ sp - N + i ] ;\n for ( i = 0 ;\n i < N ;\n ++ i ) stack [ sp - N + i ] = temp [ ( i + j ) % N ] ;\n free ( temp ) ;\n }\n }\n break ;\n case 33 : if ( is_type2 ) LogError ( _ ( \"Type2 fonts do not support the Type1 setcurrentpoint operator\" ) ) ;\n if ( sp < 2 ) LogError ( _ ( \"Stack underflow on setcurrentpoint in %s\\n\" ) , name ) ;\n else {\n current . x = stack [ 0 ] ;\n current . y = stack [ 1 ] ;\n }\n sp = 0 ;\n break ;\n case 34 : case 35 : case 36 : case 37 : dy = dy3 = dy4 = dy5 = dy6 = 0 ;\n dx = stack [ base ++ ] ;\n if ( v != 34 ) dy = stack [ base ++ ] ;\n dx2 = stack [ base ++ ] ;\n dy2 = stack [ base ++ ] ;\n dx3 = stack [ base ++ ] ;\n if ( v != 34 && v != 36 ) dy3 = stack [ base ++ ] ;\n dx4 = stack [ base ++ ] ;\n if ( v != 34 && v != 36 ) dy4 = stack [ base ++ ] ;\n dx5 = stack [ base ++ ] ;\n if ( v == 34 ) dy5 = - dy2 ;\n else dy5 = stack [ base ++ ] ;\n switch ( v ) {\n real xt , yt ;\n case 35 : dx6 = stack [ base ++ ] ;\n dy6 = stack [ base ++ ] ;\n break ;\n case 34 : dx6 = stack [ base ++ ] ;\n break ;\n case 36 : dx6 = stack [ base ++ ] ;\n dy6 = - dy - dy2 - dy5 ;\n break ;\n case 37 : xt = dx + dx2 + dx3 + dx4 + dx5 ;\n yt = dy + dy2 + dy3 + dy4 + dy5 ;\n if ( xt < 0 ) xt = - xt ;\n if ( yt < 0 ) yt = - yt ;\n if ( xt > yt ) {\n dx6 = stack [ base ++ ] ;\n dy6 = - dy - dy2 - dy3 - dy4 - dy5 ;\n }\n else {\n dy6 = stack [ base ++ ] ;\n dx6 = - dx - dx2 - dx3 - dx4 - dx5 ;\n }\n break ;\n }\n if ( cur != NULL && cur -> first != NULL && ( cur -> first != cur -> last || cur -> first -> next == NULL ) ) {\n current . x = rint ( ( current . x + dx ) * 1024 ) / 1024 ;\n current . y = rint ( ( current . y + dy ) * 1024 ) / 1024 ;\n cur -> last -> nextcp . x = current . x ;\n cur -> last -> nextcp . y = current . y ;\n cur -> last -> nonextcp = false ;\n current . x = rint ( ( current . x + dx2 ) * 1024 ) / 1024 ;\n current . y = rint ( ( current . y + dy2 ) * 1024 ) / 1024 ;\n pt = chunkalloc ( sizeof ( SplinePoint ) ) ;\n pt -> hintmask = pending_hm ;\n pending_hm = NULL ;\n pt -> prevcp . x = current . x ;\n pt -> prevcp . y = current . y ;\n current . x = rint ( ( current . x + dx3 ) * 1024 ) / 1024 ;\n current . y = rint ( ( current . y + dy3 ) * 1024 ) / 1024 ;\n pt -> me . x = current . x ;\n pt -> me . y = current . y ;\n pt -> nonextcp = true ;\n CheckMake ( cur -> last , pt ) ;\n SplineMake3 ( cur -> last , pt ) ;\n cur -> last = pt ;\n current . x = rint ( ( current . x + dx4 ) * 1024 ) / 1024 ;\n current . y = rint ( ( current . y + dy4 ) * 1024 ) / 1024 ;\n cur -> last -> nextcp . x = current . x ;\n cur -> last -> nextcp . y = current . y ;\n cur -> last -> nonextcp = false ;\n current . x = rint ( ( current . x + dx5 ) * 1024 ) / 1024 ;\n current . y = rint ( ( current . y + dy5 ) * 1024 ) / 1024 ;\n pt = chunkalloc ( sizeof ( SplinePoint ) ) ;\n pt -> prevcp . x = current . x ;\n pt -> prevcp . y = current . y ;\n current . x = rint ( ( current . x + dx6 ) * 1024 ) / 1024 ;\n current . y = rint ( ( current . y + dy6 ) * 1024 ) / 1024 ;\n pt -> me . x = current . x ;\n pt -> me . y = current . y ;\n pt -> nonextcp = true ;\n CheckMake ( cur -> last , pt ) ;\n SplineMake3 ( cur -> last , pt ) ;\n cur -> last = pt ;\n }\n else LogError ( _ ( \"No previous point on path in flex operator in %s\\n\" ) , name ) ;\n sp = 0 ;\n break ;\n default : LogError ( _ ( \"Uninterpreted opcode 12,%d in %s\\n\" ) , v , name ) ;\n break ;\n }\n }\n else {\n last_was_b1 = false ;\n switch ( v ) {\n case 1 : case 18 : base = 0 ;\n if ( ( sp & 1 ) && ret -> width == ( int16 ) 0x8000 ) ret -> width = stack [ 0 ] ;\n if ( sp & 1 ) base = 1 ;\n if ( sp - base < 2 ) LogError ( _ ( \"Stack underflow on hstem in %s\\n\" ) , name ) ;\n coord = 0 ;\n hp = NULL ;\n if ( activeh != NULL ) for ( hp = activeh ;\n hp -> next != NULL ;\n hp = hp -> next ) ;\n while ( sp - base >= 2 ) {\n sameh = NULL ;\n if ( ! is_type2 ) sameh = SameH ( ret -> hstem , stack [ base ] + coord , stack [ base + 1 ] , unblended , context -> instance_count ) ;\n hint = HintNew ( stack [ base ] + coord , stack [ base + 1 ] ) ;\n hint -> hintnumber = sameh != NULL ? sameh -> hintnumber : hint_cnt ++ ;\n if ( ! is_type2 && context -> instance_count != 0 ) {\n hint -> u . unblended = chunkalloc ( sizeof ( real [ 2 ] [ MmMax ] ) ) ;\n memcpy ( hint -> u . unblended , unblended , sizeof ( real [ 2 ] [ MmMax ] ) ) ;\n }\n if ( activeh == NULL ) activeh = hint ;\n else hp -> next = hint ;\n hp = hint ;\n if ( ! is_type2 && hint -> hintnumber < 96 ) {\n if ( pending_hm == NULL ) pending_hm = chunkalloc ( sizeof ( HintMask ) ) ;\n ( * pending_hm ) [ hint -> hintnumber >> 3 ] |= 0x80 >> ( hint -> hintnumber & 0x7 ) ;\n }\n base += 2 ;\n coord = hint -> start + hint -> width ;\n }\n sp = 0 ;\n break ;\n case 19 : case 20 : case 3 : case 23 : base = 0 ;\n if ( cur == NULL || v == 3 || v == 23 ) {\n if ( ( sp & 1 ) && is_type2 && ret -> width == ( int16 ) 0x8000 ) {\n ret -> width = stack [ 0 ] ;\n }\n if ( sp & 1 ) base = 1 ;\n if ( sp - base < 2 && v != 19 && v != 20 ) LogError ( _ ( \"Stack underflow on vstem in %s\\n\" ) , name ) ;\n coord = ret -> lsidebearing ;\n hp = NULL ;\n if ( activev != NULL ) for ( hp = activev ;\n hp -> next != NULL ;\n hp = hp -> next ) ;\n while ( sp - base >= 2 ) {\n sameh = NULL ;\n if ( ! is_type2 ) sameh = SameH ( ret -> vstem , stack [ base ] + coord , stack [ base + 1 ] , unblended , context -> instance_count ) ;\n hint = HintNew ( stack [ base ] + coord , stack [ base + 1 ] ) ;\n hint -> hintnumber = sameh != NULL ? sameh -> hintnumber : hint_cnt ++ ;\n if ( ! is_type2 && context -> instance_count != 0 ) {\n hint -> u . unblended = chunkalloc ( sizeof ( real [ 2 ] [ MmMax ] ) ) ;\n memcpy ( hint -> u . unblended , unblended , sizeof ( real [ 2 ] [ MmMax ] ) ) ;\n }\n if ( ! is_type2 && hint -> hintnumber < 96 ) {\n if ( pending_hm == NULL ) pending_hm = chunkalloc ( sizeof ( HintMask ) ) ;\n ( * pending_hm ) [ hint -> hintnumber >> 3 ] |= 0x80 >> ( hint -> hintnumber & 0x7 ) ;\n }\n if ( activev == NULL ) activev = hint ;\n else hp -> next = hint ;\n hp = hint ;\n base += 2 ;\n coord = hint -> start + hint -> width ;\n }\n sp = 0 ;\n }\n if ( v == 19 || v == 20 ) {\n int bytes = ( hint_cnt + 7 ) / 8 ;\n if ( bytes > sizeof ( HintMask ) ) bytes = sizeof ( HintMask ) ;\n if ( v == 19 ) {\n ret -> hstem = HintsAppend ( ret -> hstem , activeh ) ;\n activeh = NULL ;\n ret -> vstem = HintsAppend ( ret -> vstem , activev ) ;\n activev = NULL ;\n if ( pending_hm == NULL ) pending_hm = chunkalloc ( sizeof ( HintMask ) ) ;\n memcpy ( pending_hm , type1 , bytes ) ;\n }\n else if ( cp < sizeof ( counters ) / sizeof ( counters [ 0 ] ) ) {\n counters [ cp ] = chunkalloc ( sizeof ( HintMask ) ) ;\n memcpy ( counters [ cp ] , type1 , bytes ) ;\n ++ cp ;\n }\n if ( bytes != hint_cnt / 8 ) {\n int mask = 0xff >> ( hint_cnt & 7 ) ;\n if ( type1 [ bytes - 1 ] & mask ) LogError ( _ ( \"Hint mask (or counter mask) with too many hints in %s\\n\" ) , name ) ;\n }\n type1 += bytes ;\n len -= bytes ;\n }\n break ;\n case 14 : if ( ( sp & 1 ) && is_type2 && ret -> width == ( int16 ) 0x8000 ) ret -> width = stack [ 0 ] ;\n if ( context -> painttype != 2 ) closepath ( cur , is_type2 ) ;\n pcsp = 0 ;\n if ( sp == 4 ) {\n stack [ 4 ] = stack [ 3 ] ;\n stack [ 3 ] = stack [ 2 ] ;\n stack [ 2 ] = stack [ 1 ] ;\n stack [ 1 ] = stack [ 0 ] ;\n stack [ 0 ] = 0 ;\n sp = 5 ;\n goto seac ;\n }\n else if ( sp == 5 ) {\n stack [ 0 ] = 0 ;\n goto seac ;\n }\n goto done ;\n break ;\n case 13 : if ( sp < 2 ) LogError ( _ ( \"Stack underflow on hsbw in %s\\n\" ) , name ) ;\n ret -> lsidebearing = stack [ 0 ] ;\n current . x = stack [ 0 ] ;\n ret -> width = stack [ 1 ] ;\n sp = 0 ;\n break ;\n case 9 : sp = 0 ;\n closepath ( cur , is_type2 ) ;\n break ;\n case 21 : case 22 : case 4 : if ( is_type2 ) {\n if ( ( ( v == 21 && sp == 3 ) || ( v != 21 && sp == 2 ) ) && ret -> width == ( int16 ) 0x8000 ) ret -> width = stack [ 0 ] ;\n if ( v == 21 && sp > 2 ) {\n stack [ 0 ] = stack [ sp - 2 ] ;\n stack [ 1 ] = stack [ sp - 1 ] ;\n sp = 2 ;\n }\n else if ( v != 21 && sp > 1 ) {\n stack [ 0 ] = stack [ sp - 1 ] ;\n sp = 1 ;\n }\n if ( context -> painttype != 2 ) closepath ( cur , true ) ;\n }\n case 5 : case 6 : case 7 : polarity = 0 ;\n base = 0 ;\n while ( base < sp ) {\n dx = dy = 0 ;\n if ( v == 5 || v == 21 ) {\n if ( sp < base + 2 ) {\n LogError ( _ ( \"Stack underflow on rlineto/rmoveto in %s\\n\" ) , name ) ;\n break ;\n }\n dx = stack [ base ++ ] ;\n dy = stack [ base ++ ] ;\n }\n else if ( ( v == 6 && ! ( polarity & 1 ) ) || ( v == 7 && ( polarity & 1 ) ) || v == 22 ) {\n if ( sp <= base ) {\n LogError ( _ ( \"Stack underflow on hlineto/hmoveto in %s\\n\" ) , name ) ;\n break ;\n }\n dx = stack [ base ++ ] ;\n }\n else {\n if ( sp <= base ) {\n LogError ( _ ( \"Stack underflow on vlineto/vmoveto in %s\\n\" ) , name ) ;\n break ;\n }\n dy = stack [ base ++ ] ;\n }\n ++ polarity ;\n current . x = rint ( ( current . x + dx ) * 1024 ) / 1024 ;\n current . y = rint ( ( current . y + dy ) * 1024 ) / 1024 ;\n pt = chunkalloc ( sizeof ( SplinePoint ) ) ;\n pt -> hintmask = pending_hm ;\n pending_hm = NULL ;\n pt -> me . x = current . x ;\n pt -> me . y = current . y ;\n pt -> noprevcp = true ;\n pt -> nonextcp = true ;\n if ( v == 4 || v == 21 || v == 22 ) {\n if ( cur != NULL && cur -> first == cur -> last && cur -> first -> prev == NULL && is_type2 ) {\n cur -> first -> me . x = current . x ;\n cur -> first -> me . y = current . y ;\n SplinePointFree ( pt ) ;\n }\n else {\n SplinePointList * spl = chunkalloc ( sizeof ( SplinePointList ) ) ;\n spl -> first = spl -> last = pt ;\n if ( cur != NULL ) cur -> next = spl ;\n else ret -> layers [ ly_fore ] . splines = spl ;\n cur = spl ;\n }\n break ;\n }\n else {\n if ( cur != NULL && cur -> first != NULL && ( cur -> first != cur -> last || cur -> first -> next == NULL ) ) {\n CheckMake ( cur -> last , pt ) ;\n SplineMake3 ( cur -> last , pt ) ;\n cur -> last = pt ;\n }\n else LogError ( _ ( \"No previous point on path in lineto in %s\\n\" ) , name ) ;\n if ( ! is_type2 ) break ;\n }\n }\n sp = 0 ;\n break ;\n case 25 : base = 0 ;\n while ( sp > base + 6 ) {\n current . x = rint ( ( current . x + stack [ base ++ ] ) * 1024 ) / 1024 ;\n current . y = rint ( ( current . y + stack [ base ++ ] ) * 1024 ) / 1024 ;\n if ( cur != NULL ) {\n pt = chunkalloc ( sizeof ( SplinePoint ) ) ;\n pt -> hintmask = pending_hm ;\n pending_hm = NULL ;\n pt -> me . x = current . x ;\n pt -> me . y = current . y ;\n pt -> noprevcp = true ;\n pt -> nonextcp = true ;\n CheckMake ( cur -> last , pt ) ;\n SplineMake3 ( cur -> last , pt ) ;\n cur -> last = pt ;\n }\n }\n case 24 : case 8 : case 31 : case 30 : case 27 : case 26 : polarity = 0 ;\n while ( sp > base + 2 ) {\n dx = dy = dx2 = dy2 = dx3 = dy3 = 0 ;\n if ( v == 8 || v == 25 || v == 24 ) {\n if ( sp < 6 + base ) {\n LogError ( _ ( \"Stack underflow on rrcurveto in %s\\n\" ) , name ) ;\n base = sp ;\n }\n else {\n dx = stack [ base ++ ] ;\n dy = stack [ base ++ ] ;\n dx2 = stack [ base ++ ] ;\n dy2 = stack [ base ++ ] ;\n dx3 = stack [ base ++ ] ;\n dy3 = stack [ base ++ ] ;\n }\n }\n else if ( v == 27 ) {\n if ( sp < 4 + base ) {\n LogError ( _ ( \"Stack underflow on hhcurveto in %s\\n\" ) , name ) ;\n base = sp ;\n }\n else {\n if ( ( sp - base ) & 1 ) dy = stack [ base ++ ] ;\n dx = stack [ base ++ ] ;\n dx2 = stack [ base ++ ] ;\n dy2 = stack [ base ++ ] ;\n dx3 = stack [ base ++ ] ;\n }\n }\n else if ( v == 26 ) {\n if ( sp < 4 + base ) {\n LogError ( _ ( \"Stack underflow on hhcurveto in %s\\n\" ) , name ) ;\n base = sp ;\n }\n else {\n if ( ( sp - base ) & 1 ) dx = stack [ base ++ ] ;\n dy = stack [ base ++ ] ;\n dx2 = stack [ base ++ ] ;\n dy2 = stack [ base ++ ] ;\n dy3 = stack [ base ++ ] ;\n }\n }\n else if ( ( v == 31 && ! ( polarity & 1 ) ) || ( v == 30 && ( polarity & 1 ) ) ) {\n if ( sp < 4 + base ) {\n LogError ( _ ( \"Stack underflow on hvcurveto in %s\\n\" ) , name ) ;\n base = sp ;\n }\n else {\n dx = stack [ base ++ ] ;\n dx2 = stack [ base ++ ] ;\n dy2 = stack [ base ++ ] ;\n dy3 = stack [ base ++ ] ;\n if ( sp == base + 1 ) dx3 = stack [ base ++ ] ;\n }\n }\n else {\n if ( sp < 4 + base ) {\n LogError ( _ ( \"Stack underflow on vhcurveto in %s\\n\" ) , name ) ;\n base = sp ;\n }\n else {\n dy = stack [ base ++ ] ;\n dx2 = stack [ base ++ ] ;\n dy2 = stack [ base ++ ] ;\n dx3 = stack [ base ++ ] ;\n if ( sp == base + 1 ) dy3 = stack [ base ++ ] ;\n }\n }\n ++ polarity ;\n if ( cur != NULL && cur -> first != NULL && ( cur -> first != cur -> last || cur -> first -> next == NULL ) ) {\n current . x = rint ( ( current . x + dx ) * 1024 ) / 1024 ;\n current . y = rint ( ( current . y + dy ) * 1024 ) / 1024 ;\n cur -> last -> nextcp . x = current . x ;\n cur -> last -> nextcp . y = current . y ;\n cur -> last -> nonextcp = false ;\n current . x = rint ( ( current . x + dx2 ) * 1024 ) / 1024 ;\n current . y = rint ( ( current . y + dy2 ) * 1024 ) / 1024 ;\n pt = chunkalloc ( sizeof ( SplinePoint ) ) ;\n pt -> hintmask = pending_hm ;\n pending_hm = NULL ;\n pt -> prevcp . x = current . x ;\n pt -> prevcp . y = current . y ;\n current . x = rint ( ( current . x + dx3 ) * 1024 ) / 1024 ;\n current . y = rint ( ( current . y + dy3 ) * 1024 ) / 1024 ;\n pt -> me . x = current . x ;\n pt -> me . y = current . y ;\n pt -> nonextcp = true ;\n CheckMake ( cur -> last , pt ) ;\n SplineMake3 ( cur -> last , pt ) ;\n cur -> last = pt ;\n }\n else LogError ( _ ( \"No previous point on path in curveto in %s\\n\" ) , name ) ;\n }\n if ( v == 24 ) {\n current . x = rint ( ( current . x + stack [ base ++ ] ) * 1024 ) / 1024 ;\n current . y = rint ( ( current . y + stack [ base ++ ] ) * 1024 ) / 1024 ;\n if ( cur != NULL ) {\n pt = chunkalloc ( sizeof ( SplinePoint ) ) ;\n pt -> hintmask = pending_hm ;\n pending_hm = NULL ;\n pt -> me . x = current . x ;\n pt -> me . y = current . y ;\n pt -> noprevcp = true ;\n pt -> nonextcp = true ;\n CheckMake ( cur -> last , pt ) ;\n SplineMake3 ( cur -> last , pt ) ;\n cur -> last = pt ;\n }\n }\n sp = 0 ;\n break ;\n case 29 : case 10 : if ( sp < 1 ) {\n LogError ( _ ( \"Stack underflow on callsubr in %s\\n\" ) , name ) ;\n break ;\n }\n else if ( pcsp > 10 ) {\n LogError ( _ ( \"Too many subroutine calls in %s\\n\" ) , name ) ;\n break ;\n }\n s = subrs ;\n if ( v == 29 ) s = gsubrs ;\n if ( s != NULL ) stack [ sp - 1 ] += s -> bias ;\n if ( s == NULL || stack [ sp - 1 ] >= s -> cnt || stack [ sp - 1 ] < 0 || s -> values [ ( int ) stack [ sp - 1 ] ] == NULL ) LogError ( _ ( \"Subroutine number out of bounds in %s\\n\" ) , name ) ;\n else {\n pcstack [ pcsp ] . type1 = type1 ;\n pcstack [ pcsp ] . len = len ;\n pcstack [ pcsp ] . subnum = stack [ sp - 1 ] ;\n ++ pcsp ;\n type1 = s -> values [ ( int ) stack [ sp - 1 ] ] ;\n len = s -> lens [ ( int ) stack [ sp - 1 ] ] ;\n }\n if ( -- sp < 0 ) sp = 0 ;\n break ;\n case 11 : if ( pcsp < 1 ) LogError ( _ ( \"return when not in subroutine in %s\\n\" ) , name ) ;\n else {\n -- pcsp ;\n type1 = pcstack [ pcsp ] . type1 ;\n len = pcstack [ pcsp ] . len ;\n }\n break ;\n case 16 : {\n int cnt , i , j ;\n if ( context -> instance_count == 0 ) LogError ( _ ( \"Attempt to use a multiple master subroutine in a non-mm font.\\n\" ) ) ;\n else if ( sp < 1 || sp < context -> instance_count * stack [ sp - 1 ] + 1 ) LogError ( _ ( \"Too few items on stack for blend in %s\\n\" ) , name ) ;\n else {\n if ( ! context -> blend_warn ) {\n LogError ( _ ( \"Use of obsolete blend operator.\\n\" ) ) ;\n context -> blend_warn = true ;\n }\n cnt = stack [ sp - 1 ] ;\n sp -= context -> instance_count * stack [ sp - 1 ] + 1 ;\n for ( i = 0 ;\n i < cnt ;\n ++ i ) {\n for ( j = 1 ;\n j < context -> instance_count ;\n ++ j ) stack [ sp + i ] += context -> blend_values [ j ] * stack [ sp + cnt + i * ( context -> instance_count - 1 ) + j - 1 ] ;\n }\n sp += cnt ;\n }\n }\n break ;\n default : LogError ( _ ( \"Uninterpreted opcode %d in %s\\n\" ) , v , name ) ;\n break ;\n }\n }\n }\n done : if ( pcsp != 0 ) LogError ( _ ( \"end of subroutine reached with no return in %s\\n\" ) , name ) ;\n SCCategorizePoints ( ret ) ;\n ret -> hstem = HintsAppend ( ret -> hstem , activeh ) ;\n activeh = NULL ;\n ret -> vstem = HintsAppend ( ret -> vstem , activev ) ;\n activev = NULL ;\n if ( cp != 0 ) {\n int i ;\n ret -> countermasks = malloc ( cp * sizeof ( HintMask ) ) ;\n ret -> countermask_cnt = cp ;\n for ( i = 0 ;\n i < cp ;\n ++ i ) {\n memcpy ( & ret -> countermasks [ i ] , counters [ i ] , sizeof ( HintMask ) ) ;\n chunkfree ( counters [ i ] , sizeof ( HintMask ) ) ;\n }\n }\n if ( ! is_type2 && ! context -> painttype ) for ( cur = ret -> layers [ ly_fore ] . splines ;\n cur != NULL ;\n cur = cur -> next ) if ( cur -> first -> prev == NULL ) {\n CheckMake ( cur -> last , cur -> first ) ;\n SplineMake3 ( cur -> last , cur -> first ) ;\n cur -> last = cur -> first ;\n }\n for ( cur = ret -> layers [ ly_fore ] . splines ;\n cur != NULL ;\n cur = cur -> next ) SplineSetReverse ( cur ) ;\n if ( ret -> hstem == NULL && ret -> vstem == NULL ) ret -> manualhints = false ;\n if ( ! is_type2 && context -> instance_count != 0 ) {\n UnblendFree ( ret -> hstem ) ;\n UnblendFree ( ret -> vstem ) ;\n }\n ret -> hstem = HintCleanup ( ret -> hstem , true , context -> instance_count ) ;\n ret -> vstem = HintCleanup ( ret -> vstem , true , context -> instance_count ) ;\n SCGuessHHintInstancesList ( ret , ly_fore ) ;\n SCGuessVHintInstancesList ( ret , ly_fore ) ;\n ret -> hconflicts = StemListAnyConflicts ( ret -> hstem ) ;\n ret -> vconflicts = StemListAnyConflicts ( ret -> vstem ) ;\n if ( context -> instance_count == 1 && ! ret -> hconflicts && ! ret -> vconflicts ) SCClearHintMasks ( ret , ly_fore , false ) ;\n HintsRenumber ( ret ) ;\n if ( name != NULL && strcmp ( name , \".notdef\" ) != 0 ) ret -> widthset = true ;\n return ( ret ) ;\n }"}
{"idx": 5973, "target": 1, "func": "SPL_METHOD ( SplFileObject , getMaxLineLen ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n RETURN_LONG ( ( long ) intern -> u . file . max_line_len ) ;\n }"}
{"idx": 5974, "target": 0, "func": "static int matroska_parse_laces ( MatroskaDemuxContext * matroska , uint8_t * * buf , int * buf_size , int type , uint32_t * * lace_buf , int * laces ) {\n int res = 0 , n , size = * buf_size ;\n uint8_t * data = * buf ;\n uint32_t * lace_size ;\n if ( ! type ) {\n * laces = 1 ;\n * lace_buf = av_mallocz ( sizeof ( int ) ) ;\n if ( ! * lace_buf ) return AVERROR ( ENOMEM ) ;\n * lace_buf [ 0 ] = size ;\n return 0 ;\n }\n assert ( size > 0 ) ;\n * laces = * data + 1 ;\n data += 1 ;\n size -= 1 ;\n lace_size = av_mallocz ( * laces * sizeof ( int ) ) ;\n if ( ! lace_size ) return AVERROR ( ENOMEM ) ;\n switch ( type ) {\n case 0x1 : {\n uint8_t temp ;\n uint32_t total = 0 ;\n for ( n = 0 ;\n res == 0 && n < * laces - 1 ;\n n ++ ) {\n while ( 1 ) {\n if ( size == 0 ) {\n res = AVERROR_EOF ;\n break ;\n }\n temp = * data ;\n lace_size [ n ] += temp ;\n data += 1 ;\n size -= 1 ;\n if ( temp != 0xff ) break ;\n }\n total += lace_size [ n ] ;\n }\n if ( size <= total ) {\n res = AVERROR_INVALIDDATA ;\n break ;\n }\n lace_size [ n ] = size - total ;\n break ;\n }\n case 0x2 : if ( size % ( * laces ) ) {\n res = AVERROR_INVALIDDATA ;\n break ;\n }\n for ( n = 0 ;\n n < * laces ;\n n ++ ) lace_size [ n ] = size / * laces ;\n break ;\n case 0x3 : {\n uint64_t num ;\n uint64_t total ;\n n = matroska_ebmlnum_uint ( matroska , data , size , & num ) ;\n if ( n < 0 ) {\n av_log ( matroska -> ctx , AV_LOG_INFO , \"EBML block data error\\n\" ) ;\n res = n ;\n break ;\n }\n data += n ;\n size -= n ;\n total = lace_size [ 0 ] = num ;\n for ( n = 1 ;\n res == 0 && n < * laces - 1 ;\n n ++ ) {\n int64_t snum ;\n int r ;\n r = matroska_ebmlnum_sint ( matroska , data , size , & snum ) ;\n if ( r < 0 ) {\n av_log ( matroska -> ctx , AV_LOG_INFO , \"EBML block data error\\n\" ) ;\n res = r ;\n break ;\n }\n data += r ;\n size -= r ;\n lace_size [ n ] = lace_size [ n - 1 ] + snum ;\n total += lace_size [ n ] ;\n }\n if ( size <= total ) {\n res = AVERROR_INVALIDDATA ;\n break ;\n }\n lace_size [ * laces - 1 ] = size - total ;\n break ;\n }\n }\n * buf = data ;\n * lace_buf = lace_size ;\n * buf_size = size ;\n return res ;\n }"}
{"idx": 5975, "target": 0, "func": "static void separate_arf_mbs ( VP9_COMP * cpi ) {\n VP9_COMMON * const cm = & cpi -> common ;\n int mb_col , mb_row , offset , i ;\n int mi_row , mi_col ;\n int ncnt [ 4 ] = {\n 0 }\n ;\n int n_frames = cpi -> mbgraph_n_frames ;\n int * arf_not_zz ;\n CHECK_MEM_ERROR ( cm , arf_not_zz , vpx_calloc ( cm -> mb_rows * cm -> mb_cols * sizeof ( * arf_not_zz ) , 1 ) ) ;\n if ( n_frames > cpi -> rc . frames_till_gf_update_due ) n_frames = cpi -> rc . frames_till_gf_update_due ;\n for ( i = n_frames - 1 ;\n i >= 0 ;\n i -- ) {\n MBGRAPH_FRAME_STATS * frame_stats = & cpi -> mbgraph_stats [ i ] ;\n for ( offset = 0 , mb_row = 0 ;\n mb_row < cm -> mb_rows ;\n offset += cm -> mb_cols , mb_row ++ ) {\n for ( mb_col = 0 ;\n mb_col < cm -> mb_cols ;\n mb_col ++ ) {\n MBGRAPH_MB_STATS * mb_stats = & frame_stats -> mb_stats [ offset + mb_col ] ;\n int altref_err = mb_stats -> ref [ ALTREF_FRAME ] . err ;\n int intra_err = mb_stats -> ref [ INTRA_FRAME ] . err ;\n int golden_err = mb_stats -> ref [ GOLDEN_FRAME ] . err ;\n if ( altref_err > 1000 || altref_err > intra_err || altref_err > golden_err ) {\n arf_not_zz [ offset + mb_col ] ++ ;\n }\n }\n }\n }\n for ( mi_row = 0 ;\n mi_row < cm -> mi_rows ;\n mi_row ++ ) {\n for ( mi_col = 0 ;\n mi_col < cm -> mi_cols ;\n mi_col ++ ) {\n if ( arf_not_zz [ mi_row / 2 * cm -> mb_cols + mi_col / 2 ] ) {\n ncnt [ 0 ] ++ ;\n cpi -> segmentation_map [ mi_row * cm -> mi_cols + mi_col ] = 0 ;\n }\n else {\n cpi -> segmentation_map [ mi_row * cm -> mi_cols + mi_col ] = 1 ;\n ncnt [ 1 ] ++ ;\n }\n }\n }\n if ( 1 ) {\n if ( cm -> MBs ) cpi -> static_mb_pct = ( ncnt [ 1 ] * 100 ) / ( cm -> mi_rows * cm -> mi_cols ) ;\n else cpi -> static_mb_pct = 0 ;\n vp9_enable_segmentation ( & cm -> seg ) ;\n }\n else {\n cpi -> static_mb_pct = 0 ;\n vp9_disable_segmentation ( & cm -> seg ) ;\n }\n vpx_free ( arf_not_zz ) ;\n }"}
{"idx": 5976, "target": 0, "func": "inline static void _slurm_rpc_trigger_pull ( slurm_msg_t * msg ) {\n int rc ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n trigger_info_msg_t * trigger_ptr = ( trigger_info_msg_t * ) msg -> data ;\n DEF_TIMERS ;\n START_TIMER ;\n debug ( \"Processing RPC: REQUEST_TRIGGER_PULL from uid=%u\" , ( unsigned int ) uid ) ;\n if ( ! validate_slurm_user ( uid ) ) {\n rc = ESLURM_USER_ID_MISSING ;\n error ( \"Security violation, REQUEST_TRIGGER_PULL RPC \" \"from uid=%d\" , uid ) ;\n }\n else rc = trigger_pull ( trigger_ptr ) ;\n END_TIMER2 ( \"_slurm_rpc_trigger_pull\" ) ;\n slurm_send_rc_msg ( msg , rc ) ;\n }"}
{"idx": 5977, "target": 0, "func": "static int fetch_numbers ( char * line , void * data ) {\n struct FetchCtx * fc = data ;\n anum_t anum ;\n if ( ! line ) return 0 ;\n if ( sscanf ( line , ANUM , & anum ) != 1 ) return 0 ;\n if ( anum < fc -> first || anum > fc -> last ) return 0 ;\n fc -> messages [ anum - fc -> first ] = 1 ;\n return 0 ;\n }"}
{"idx": 5978, "target": 0, "func": "static int nntp_fetch_headers ( struct Context * ctx , void * hc , anum_t first , anum_t last , int restore ) {\n struct NntpData * nntp_data = ctx -> data ;\n struct FetchCtx fc ;\n struct Header * hdr = NULL ;\n char buf [ HUGE_STRING ] ;\n int rc = 0 ;\n int oldmsgcount = ctx -> msgcount ;\n anum_t current ;\n anum_t first_over = first ;\n # ifdef USE_HCACHE void * hdata = NULL ;\n # endif if ( ! last || first > last ) return 0 ;\n fc . ctx = ctx ;\n fc . first = first ;\n fc . last = last ;\n fc . restore = restore ;\n fc . messages = mutt_mem_calloc ( last - first + 1 , sizeof ( unsigned char ) ) ;\n if ( fc . messages == NULL ) return - 1 ;\n # ifdef USE_HCACHE fc . hc = hc ;\n # endif if ( NntpListgroup && nntp_data -> nserv -> hasLISTGROUP && ! nntp_data -> deleted ) {\n if ( ! ctx -> quiet ) mutt_message ( _ ( \"Fetching list of articles...\" ) ) ;\n if ( nntp_data -> nserv -> hasLISTGROUPrange ) snprintf ( buf , sizeof ( buf ) , \"LISTGROUP %s %u-%u\\r\\n\" , nntp_data -> group , first , last ) ;\n else snprintf ( buf , sizeof ( buf ) , \"LISTGROUP %s\\r\\n\" , nntp_data -> group ) ;\n rc = nntp_fetch_lines ( nntp_data , buf , sizeof ( buf ) , NULL , fetch_numbers , & fc ) ;\n if ( rc > 0 ) {\n mutt_error ( \"LISTGROUP: %s\" , buf ) ;\n }\n if ( rc == 0 ) {\n for ( current = first ;\n current <= last && rc == 0 ;\n current ++ ) {\n if ( fc . messages [ current - first ] ) continue ;\n snprintf ( buf , sizeof ( buf ) , \"%u\" , current ) ;\n if ( nntp_data -> bcache ) {\n mutt_debug ( 2 , \"#1 mutt_bcache_del %s\\n\" , buf ) ;\n mutt_bcache_del ( nntp_data -> bcache , buf ) ;\n }\n # ifdef USE_HCACHE if ( fc . hc ) {\n mutt_debug ( 2 , \"mutt_hcache_delete %s\\n\" , buf ) ;\n mutt_hcache_delete ( fc . hc , buf , strlen ( buf ) ) ;\n }\n # endif }\n }\n }\n else {\n for ( current = first ;\n current <= last ;\n current ++ ) fc . messages [ current - first ] = 1 ;\n }\n if ( ! ctx -> quiet ) {\n mutt_progress_init ( & fc . progress , _ ( \"Fetching message headers...\" ) , MUTT_PROGRESS_MSG , ReadInc , last - first + 1 ) ;\n }\n for ( current = first ;\n current <= last && rc == 0 ;\n current ++ ) {\n if ( ! ctx -> quiet ) mutt_progress_update ( & fc . progress , current - first + 1 , - 1 ) ;\n # ifdef USE_HCACHE snprintf ( buf , sizeof ( buf ) , \"%u\" , current ) ;\n # endif if ( ! fc . messages [ current - first ] ) continue ;\n if ( ctx -> msgcount >= ctx -> hdrmax ) mx_alloc_memory ( ctx ) ;\n # ifdef USE_HCACHE hdata = mutt_hcache_fetch ( fc . hc , buf , strlen ( buf ) ) ;\n if ( hdata ) {\n mutt_debug ( 2 , \"mutt_hcache_fetch %s\\n\" , buf ) ;\n ctx -> hdrs [ ctx -> msgcount ] = hdr = mutt_hcache_restore ( hdata ) ;\n mutt_hcache_free ( fc . hc , & hdata ) ;\n hdr -> data = 0 ;\n if ( hdr -> deleted && ! restore ) {\n mutt_header_free ( & hdr ) ;\n if ( nntp_data -> bcache ) {\n mutt_debug ( 2 , \"#2 mutt_bcache_del %s\\n\" , buf ) ;\n mutt_bcache_del ( nntp_data -> bcache , buf ) ;\n }\n continue ;\n }\n hdr -> read = false ;\n hdr -> old = false ;\n }\n else # endif if ( nntp_data -> deleted ) continue ;\n else if ( nntp_data -> nserv -> hasOVER || nntp_data -> nserv -> hasXOVER ) {\n if ( NntpListgroup && nntp_data -> nserv -> hasLISTGROUP ) break ;\n else continue ;\n }\n else {\n FILE * fp = mutt_file_mkstemp ( ) ;\n if ( ! fp ) {\n mutt_perror ( \"mutt_file_mkstemp() failed!\" ) ;\n rc = - 1 ;\n break ;\n }\n snprintf ( buf , sizeof ( buf ) , \"HEAD %u\\r\\n\" , current ) ;\n rc = nntp_fetch_lines ( nntp_data , buf , sizeof ( buf ) , NULL , fetch_tempfile , fp ) ;\n if ( rc ) {\n mutt_file_fclose ( & fp ) ;\n if ( rc < 0 ) break ;\n if ( mutt_str_strncmp ( \"423\" , buf , 3 ) != 0 ) {\n mutt_error ( \"HEAD: %s\" , buf ) ;\n break ;\n }\n if ( nntp_data -> bcache ) {\n snprintf ( buf , sizeof ( buf ) , \"%u\" , current ) ;\n mutt_debug ( 2 , \"#3 mutt_bcache_del %s\\n\" , buf ) ;\n mutt_bcache_del ( nntp_data -> bcache , buf ) ;\n }\n rc = 0 ;\n continue ;\n }\n hdr = ctx -> hdrs [ ctx -> msgcount ] = mutt_header_new ( ) ;\n hdr -> env = mutt_rfc822_read_header ( fp , hdr , 0 , 0 ) ;\n hdr -> received = hdr -> date_sent ;\n mutt_file_fclose ( & fp ) ;\n }\n hdr -> index = ctx -> msgcount ++ ;\n hdr -> read = false ;\n hdr -> old = false ;\n hdr -> deleted = false ;\n hdr -> data = mutt_mem_calloc ( 1 , sizeof ( struct NntpHeaderData ) ) ;\n NHDR ( hdr ) -> article_num = current ;\n if ( restore ) hdr -> changed = true ;\n else {\n nntp_article_status ( ctx , hdr , NULL , NHDR ( hdr ) -> article_num ) ;\n if ( ! hdr -> read ) nntp_parse_xref ( ctx , hdr ) ;\n }\n if ( current > nntp_data -> last_loaded ) nntp_data -> last_loaded = current ;\n first_over = current + 1 ;\n }\n if ( ! NntpListgroup || ! nntp_data -> nserv -> hasLISTGROUP ) current = first_over ;\n if ( current <= last && rc == 0 && ! nntp_data -> deleted ) {\n char * cmd = nntp_data -> nserv -> hasOVER ? \"OVER\" : \"XOVER\" ;\n snprintf ( buf , sizeof ( buf ) , \"%s %u-%u\\r\\n\" , cmd , current , last ) ;\n rc = nntp_fetch_lines ( nntp_data , buf , sizeof ( buf ) , NULL , parse_overview_line , & fc ) ;\n if ( rc > 0 ) {\n mutt_error ( \"%s: %s\" , cmd , buf ) ;\n }\n }\n if ( ctx -> msgcount > oldmsgcount ) mx_update_context ( ctx , ctx -> msgcount - oldmsgcount ) ;\n FREE ( & fc . messages ) ;\n if ( rc != 0 ) return - 1 ;\n mutt_clear_error ( ) ;\n return 0 ;\n }"}
{"idx": 5979, "target": 0, "func": "static inline Quantum GetPixelL ( const Image * restrict image , const Quantum * restrict pixel ) {\n return ( pixel [ image -> channel_map [ LPixelChannel ] . offset ] ) ;\n }"}
{"idx": 5980, "target": 0, "func": "static void last_msg_add ( GSList * * list , const char * nick , int own , int max ) {\n LAST_MSG_REC * rec ;\n if ( max <= 0 ) return ;\n rec = last_msg_find ( * list , nick ) ;\n if ( rec != NULL ) {\n * list = g_slist_remove ( * list , rec ) ;\n if ( own ) rec -> own = max ;\n else if ( rec -> own ) rec -> own -- ;\n }\n else {\n rec = g_new ( LAST_MSG_REC , 1 ) ;\n rec -> nick = g_strdup ( nick ) ;\n while ( ( int ) g_slist_length ( * list ) >= max ) {\n last_msg_destroy ( list , g_slist_last ( * list ) -> data ) ;\n }\n rec -> own = own ? max : 0 ;\n }\n rec -> time = time ( NULL ) ;\n last_msg_dec_owns ( * list ) ;\n * list = g_slist_prepend ( * list , rec ) ;\n }"}
{"idx": 5981, "target": 0, "func": "static int com_rehash ( String * buffer __attribute__ ( ( unused ) ) , char * line __attribute__ ( ( unused ) ) ) {\n # ifdef HAVE_READLINE build_completion_hash ( 1 , 0 ) ;\n # endif return 0 ;\n }"}
{"idx": 5982, "target": 0, "func": "int chk_del ( MI_CHECK * param , register MI_INFO * info , uint test_flag ) {\n reg2 ha_rows i ;\n uint delete_link_length ;\n my_off_t empty , next_link , old_link = 0 ;\n char buff [ 22 ] , buff2 [ 22 ] ;\n DBUG_ENTER ( \"chk_del\" ) ;\n param -> record_checksum = 0 ;\n delete_link_length = ( ( info -> s -> options & HA_OPTION_PACK_RECORD ) ? 20 : info -> s -> rec_reflength + 1 ) ;\n if ( ! ( test_flag & T_SILENT ) ) puts ( \"- check record delete-chain\" ) ;\n next_link = info -> s -> state . dellink ;\n if ( info -> state -> del == 0 ) {\n if ( test_flag & T_VERBOSE ) {\n puts ( \"No recordlinks\" ) ;\n }\n }\n else {\n if ( test_flag & T_VERBOSE ) printf ( \"Recordlinks: \" ) ;\n empty = 0 ;\n for ( i = info -> state -> del ;\n i > 0L && next_link != HA_OFFSET_ERROR ;\n i -- ) {\n if ( * killed_ptr ( param ) ) DBUG_RETURN ( 1 ) ;\n if ( test_flag & T_VERBOSE ) printf ( \" %9s\" , llstr ( next_link , buff ) ) ;\n if ( next_link >= info -> state -> data_file_length ) goto wrong ;\n if ( mysql_file_pread ( info -> dfile , ( uchar * ) buff , delete_link_length , next_link , MYF ( MY_NABP ) ) ) {\n if ( test_flag & T_VERBOSE ) puts ( \"\" ) ;\n mi_check_print_error ( param , \"Can't read delete-link at filepos: %s\" , llstr ( next_link , buff ) ) ;\n DBUG_RETURN ( 1 ) ;\n }\n if ( * buff != '\\0' ) {\n if ( test_flag & T_VERBOSE ) puts ( \"\" ) ;\n mi_check_print_error ( param , \"Record at pos: %s is not remove-marked\" , llstr ( next_link , buff ) ) ;\n goto wrong ;\n }\n if ( info -> s -> options & HA_OPTION_PACK_RECORD ) {\n my_off_t prev_link = mi_sizekorr ( buff + 12 ) ;\n if ( empty && prev_link != old_link ) {\n if ( test_flag & T_VERBOSE ) puts ( \"\" ) ;\n mi_check_print_error ( param , \"Deleted block at %s doesn't point back at previous delete link\" , llstr ( next_link , buff2 ) ) ;\n goto wrong ;\n }\n old_link = next_link ;\n next_link = mi_sizekorr ( buff + 4 ) ;\n empty += mi_uint3korr ( buff + 1 ) ;\n }\n else {\n param -> record_checksum += ( ha_checksum ) next_link ;\n next_link = _mi_rec_pos ( info -> s , ( uchar * ) buff + 1 ) ;\n empty += info -> s -> base . pack_reclength ;\n }\n }\n if ( test_flag & T_VERBOSE ) puts ( \"\\n\" ) ;\n if ( empty != info -> state -> empty ) {\n mi_check_print_warning ( param , \"Found %s deleted space in delete link chain. Should be %s\" , llstr ( empty , buff2 ) , llstr ( info -> state -> empty , buff ) ) ;\n }\n if ( next_link != HA_OFFSET_ERROR ) {\n mi_check_print_error ( param , \"Found more than the expected %s deleted rows in delete link chain\" , llstr ( info -> state -> del , buff ) ) ;\n goto wrong ;\n }\n if ( i != 0 ) {\n mi_check_print_error ( param , \"Found %s deleted rows in delete link chain. Should be %s\" , llstr ( info -> state -> del - i , buff2 ) , llstr ( info -> state -> del , buff ) ) ;\n goto wrong ;\n }\n }\n DBUG_RETURN ( 0 ) ;\n wrong : param -> testflag |= T_RETRY_WITHOUT_QUICK ;\n if ( test_flag & T_VERBOSE ) puts ( \"\" ) ;\n mi_check_print_error ( param , \"record delete-link-chain corrupted\" ) ;\n DBUG_RETURN ( 1 ) ;\n }"}
{"idx": 5983, "target": 0, "func": "static void openpic_src_write ( void * opaque , hwaddr addr , uint64_t val , unsigned len ) {\n OpenPICState * opp = opaque ;\n int idx ;\n DPRINTF ( \"%s: addr %#\" HWADDR_PRIx \" <= %08\" PRIx64 \"\\n\" , __func__ , addr , val ) ;\n addr = addr & 0xffff ;\n idx = addr >> 5 ;\n switch ( addr & 0x1f ) {\n case 0x00 : write_IRQreg_ivpr ( opp , idx , val ) ;\n break ;\n case 0x10 : write_IRQreg_idr ( opp , idx , val ) ;\n break ;\n case 0x18 : write_IRQreg_ilr ( opp , idx , val ) ;\n break ;\n }\n }"}
{"idx": 5984, "target": 0, "func": "static pdf_gstate * pdf_begin_group ( fz_context * ctx , pdf_run_processor * pr , const fz_rect * bbox , softmask_save * softmask ) {\n pdf_gstate * gstate = begin_softmask ( ctx , pr , softmask ) ;\n if ( gstate -> blendmode ) fz_begin_group ( ctx , pr -> dev , bbox , NULL , 0 , 0 , gstate -> blendmode , 1 ) ;\n return pr -> gstate + pr -> gtop ;\n }"}
{"idx": 5985, "target": 0, "func": "static void libschroedinger_decode_frame_free ( void * frame ) {\n schro_frame_unref ( frame ) ;\n }"}
{"idx": 5986, "target": 0, "func": "static SchroFrame * CreateSchroFrameFromInputPic ( encoder_t * p_enc , picture_t * p_pic ) {\n encoder_sys_t * p_sys = p_enc -> p_sys ;\n SchroFrame * p_schroframe = schro_frame_new ( ) ;\n struct enc_picture_free_t * p_free ;\n if ( ! p_schroframe ) return NULL ;\n if ( ! p_pic ) return NULL ;\n p_schroframe -> format = SCHRO_FRAME_FORMAT_U8_420 ;\n if ( p_sys -> p_format -> chroma_format == SCHRO_CHROMA_422 ) {\n p_schroframe -> format = SCHRO_FRAME_FORMAT_U8_422 ;\n }\n else if ( p_sys -> p_format -> chroma_format == SCHRO_CHROMA_444 ) {\n p_schroframe -> format = SCHRO_FRAME_FORMAT_U8_444 ;\n }\n p_schroframe -> width = p_sys -> p_format -> width ;\n p_schroframe -> height = p_sys -> p_format -> height ;\n p_free = malloc ( sizeof ( * p_free ) ) ;\n if ( unlikely ( p_free == NULL ) ) {\n schro_frame_unref ( p_schroframe ) ;\n return NULL ;\n }\n p_free -> p_pic = p_pic ;\n p_free -> p_enc = p_enc ;\n schro_frame_set_free_callback ( p_schroframe , EncSchroFrameFree , p_free ) ;\n for ( int i = 0 ;\n i < 3 ;\n i ++ ) {\n p_schroframe -> components [ i ] . width = p_pic -> p [ i ] . i_visible_pitch ;\n p_schroframe -> components [ i ] . stride = p_pic -> p [ i ] . i_pitch ;\n p_schroframe -> components [ i ] . height = p_pic -> p [ i ] . i_visible_lines ;\n p_schroframe -> components [ i ] . length = p_pic -> p [ i ] . i_pitch * p_pic -> p [ i ] . i_lines ;\n p_schroframe -> components [ i ] . data = p_pic -> p [ i ] . p_pixels ;\n if ( i != 0 ) {\n p_schroframe -> components [ i ] . v_shift = SCHRO_FRAME_FORMAT_V_SHIFT ( p_schroframe -> format ) ;\n p_schroframe -> components [ i ] . h_shift = SCHRO_FRAME_FORMAT_H_SHIFT ( p_schroframe -> format ) ;\n }\n }\n return p_schroframe ;\n }"}
{"idx": 5987, "target": 0, "func": "static int dissect_pcp_message_instance ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , int offset ) {\n proto_item * pcp_instances_item ;\n proto_tree * pcp_instances_tree ;\n proto_item * pcp_instance_item ;\n proto_tree * pcp_instance_tree ;\n guint32 num_inst ;\n guint32 i ;\n guint32 name_len ;\n guint32 padding ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"[%s]\" , val_to_str ( PCP_PDU_INSTANCE , packettypenames , \"Unknown Type:0x%02x\" ) ) ;\n pcp_instances_item = proto_tree_add_item ( tree , hf_pcp_instances , tvb , offset , - 1 , ENC_NA ) ;\n pcp_instances_tree = proto_item_add_subtree ( pcp_instances_item , ett_pcp ) ;\n proto_tree_add_item ( pcp_instances_tree , hf_pcp_instance_indom , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( pcp_instances_tree , hf_pcp_instances_numinst , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n num_inst = tvb_get_ntohl ( tvb , offset ) ;\n offset += 4 ;\n for ( i = 0 ;\n i < num_inst ;\n i ++ ) {\n name_len = tvb_get_ntohl ( tvb , offset + 4 ) ;\n pcp_instance_item = proto_tree_add_item ( pcp_instances_tree , hf_pcp_instance , tvb , offset , name_len + 8 , ENC_NA ) ;\n pcp_instance_tree = proto_item_add_subtree ( pcp_instance_item , ett_pcp ) ;\n proto_tree_add_item ( pcp_instance_tree , hf_pcp_pmid_inst , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( pcp_instance_tree , hf_pcp_instance_namelen , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n if ( name_len > 0 ) {\n proto_tree_add_item ( pcp_instance_tree , hf_pcp_instance_name , tvb , offset , name_len , ENC_ASCII | ENC_NA ) ;\n offset += name_len ;\n }\n padding = name_len % 4 ;\n if ( padding != 0 ) {\n padding = 4 - padding ;\n proto_tree_add_item ( pcp_instance_tree , hf_pcp_pdu_padding , tvb , offset , padding , ENC_NA ) ;\n offset += padding ;\n }\n }\n return offset ;\n }"}
{"idx": 5988, "target": 0, "func": "static int dump_databases ( char * * db_names ) {\n int result = 0 ;\n char * * db ;\n DBUG_ENTER ( \"dump_databases\" ) ;\n for ( db = db_names ;\n * db ;\n db ++ ) {\n if ( dump_all_tables_in_db ( * db ) ) result = 1 ;\n }\n if ( ! result && seen_views ) {\n for ( db = db_names ;\n * db ;\n db ++ ) {\n if ( dump_all_views_in_db ( * db ) ) result = 1 ;\n }\n }\n DBUG_RETURN ( result ) ;\n }"}
{"idx": 5989, "target": 0, "func": "void vp8_sixtap_predict16x16_neon ( unsigned char * src_ptr , int src_pixels_per_line , int xoffset , int yoffset , unsigned char * dst_ptr , int dst_pitch ) {\n unsigned char * src , * src_tmp , * dst , * tmpp ;\n unsigned char tmp [ 336 ] ;\n int i , j ;\n uint8x8_t d0u8 , d1u8 , d2u8 , d3u8 , d4u8 , d5u8 , d6u8 , d7u8 , d8u8 , d9u8 ;\n uint8x8_t d10u8 , d11u8 , d12u8 , d13u8 , d14u8 , d15u8 , d18u8 , d19u8 ;\n uint8x8_t d20u8 , d21u8 , d22u8 , d23u8 , d24u8 , d25u8 , d26u8 , d27u8 ;\n uint8x8_t d28u8 , d29u8 , d30u8 , d31u8 ;\n int8x8_t dtmps8 , d0s8 , d1s8 , d2s8 , d3s8 , d4s8 , d5s8 ;\n uint8x16_t q3u8 , q4u8 ;\n uint16x8_t q3u16 , q4u16 , q5u16 , q6u16 , q7u16 , q8u16 , q9u16 , q10u16 ;\n uint16x8_t q11u16 , q12u16 , q13u16 , q15u16 ;\n int16x8_t q3s16 , q4s16 , q5s16 , q6s16 , q7s16 , q8s16 , q9s16 , q10s16 ;\n int16x8_t q11s16 , q12s16 , q13s16 , q15s16 ;\n if ( xoffset == 0 ) {\n dtmps8 = vld1_s8 ( vp8_sub_pel_filters [ yoffset ] ) ;\n d0s8 = vdup_lane_s8 ( dtmps8 , 0 ) ;\n d1s8 = vdup_lane_s8 ( dtmps8 , 1 ) ;\n d2s8 = vdup_lane_s8 ( dtmps8 , 2 ) ;\n d3s8 = vdup_lane_s8 ( dtmps8 , 3 ) ;\n d4s8 = vdup_lane_s8 ( dtmps8 , 4 ) ;\n d5s8 = vdup_lane_s8 ( dtmps8 , 5 ) ;\n d0u8 = vreinterpret_u8_s8 ( vabs_s8 ( d0s8 ) ) ;\n d1u8 = vreinterpret_u8_s8 ( vabs_s8 ( d1s8 ) ) ;\n d2u8 = vreinterpret_u8_s8 ( vabs_s8 ( d2s8 ) ) ;\n d3u8 = vreinterpret_u8_s8 ( vabs_s8 ( d3s8 ) ) ;\n d4u8 = vreinterpret_u8_s8 ( vabs_s8 ( d4s8 ) ) ;\n d5u8 = vreinterpret_u8_s8 ( vabs_s8 ( d5s8 ) ) ;\n src_tmp = src_ptr - src_pixels_per_line * 2 ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n src = src_tmp + i * 8 ;\n dst = dst_ptr + i * 8 ;\n d18u8 = vld1_u8 ( src ) ;\n src += src_pixels_per_line ;\n d19u8 = vld1_u8 ( src ) ;\n src += src_pixels_per_line ;\n d20u8 = vld1_u8 ( src ) ;\n src += src_pixels_per_line ;\n d21u8 = vld1_u8 ( src ) ;\n src += src_pixels_per_line ;\n d22u8 = vld1_u8 ( src ) ;\n src += src_pixels_per_line ;\n for ( j = 0 ;\n j < 4 ;\n j ++ ) {\n d23u8 = vld1_u8 ( src ) ;\n src += src_pixels_per_line ;\n d24u8 = vld1_u8 ( src ) ;\n src += src_pixels_per_line ;\n d25u8 = vld1_u8 ( src ) ;\n src += src_pixels_per_line ;\n d26u8 = vld1_u8 ( src ) ;\n src += src_pixels_per_line ;\n q3u16 = vmull_u8 ( d18u8 , d0u8 ) ;\n q4u16 = vmull_u8 ( d19u8 , d0u8 ) ;\n q5u16 = vmull_u8 ( d20u8 , d0u8 ) ;\n q6u16 = vmull_u8 ( d21u8 , d0u8 ) ;\n q3u16 = vmlsl_u8 ( q3u16 , d19u8 , d1u8 ) ;\n q4u16 = vmlsl_u8 ( q4u16 , d20u8 , d1u8 ) ;\n q5u16 = vmlsl_u8 ( q5u16 , d21u8 , d1u8 ) ;\n q6u16 = vmlsl_u8 ( q6u16 , d22u8 , d1u8 ) ;\n q3u16 = vmlsl_u8 ( q3u16 , d22u8 , d4u8 ) ;\n q4u16 = vmlsl_u8 ( q4u16 , d23u8 , d4u8 ) ;\n q5u16 = vmlsl_u8 ( q5u16 , d24u8 , d4u8 ) ;\n q6u16 = vmlsl_u8 ( q6u16 , d25u8 , d4u8 ) ;\n q3u16 = vmlal_u8 ( q3u16 , d20u8 , d2u8 ) ;\n q4u16 = vmlal_u8 ( q4u16 , d21u8 , d2u8 ) ;\n q5u16 = vmlal_u8 ( q5u16 , d22u8 , d2u8 ) ;\n q6u16 = vmlal_u8 ( q6u16 , d23u8 , d2u8 ) ;\n q3u16 = vmlal_u8 ( q3u16 , d23u8 , d5u8 ) ;\n q4u16 = vmlal_u8 ( q4u16 , d24u8 , d5u8 ) ;\n q5u16 = vmlal_u8 ( q5u16 , d25u8 , d5u8 ) ;\n q6u16 = vmlal_u8 ( q6u16 , d26u8 , d5u8 ) ;\n q7u16 = vmull_u8 ( d21u8 , d3u8 ) ;\n q8u16 = vmull_u8 ( d22u8 , d3u8 ) ;\n q9u16 = vmull_u8 ( d23u8 , d3u8 ) ;\n q10u16 = vmull_u8 ( d24u8 , d3u8 ) ;\n q3s16 = vreinterpretq_s16_u16 ( q3u16 ) ;\n q4s16 = vreinterpretq_s16_u16 ( q4u16 ) ;\n q5s16 = vreinterpretq_s16_u16 ( q5u16 ) ;\n q6s16 = vreinterpretq_s16_u16 ( q6u16 ) ;\n q7s16 = vreinterpretq_s16_u16 ( q7u16 ) ;\n q8s16 = vreinterpretq_s16_u16 ( q8u16 ) ;\n q9s16 = vreinterpretq_s16_u16 ( q9u16 ) ;\n q10s16 = vreinterpretq_s16_u16 ( q10u16 ) ;\n q7s16 = vqaddq_s16 ( q7s16 , q3s16 ) ;\n q8s16 = vqaddq_s16 ( q8s16 , q4s16 ) ;\n q9s16 = vqaddq_s16 ( q9s16 , q5s16 ) ;\n q10s16 = vqaddq_s16 ( q10s16 , q6s16 ) ;\n d6u8 = vqrshrun_n_s16 ( q7s16 , 7 ) ;\n d7u8 = vqrshrun_n_s16 ( q8s16 , 7 ) ;\n d8u8 = vqrshrun_n_s16 ( q9s16 , 7 ) ;\n d9u8 = vqrshrun_n_s16 ( q10s16 , 7 ) ;\n d18u8 = d22u8 ;\n d19u8 = d23u8 ;\n d20u8 = d24u8 ;\n d21u8 = d25u8 ;\n d22u8 = d26u8 ;\n vst1_u8 ( dst , d6u8 ) ;\n dst += dst_pitch ;\n vst1_u8 ( dst , d7u8 ) ;\n dst += dst_pitch ;\n vst1_u8 ( dst , d8u8 ) ;\n dst += dst_pitch ;\n vst1_u8 ( dst , d9u8 ) ;\n dst += dst_pitch ;\n }\n }\n return ;\n }\n dtmps8 = vld1_s8 ( vp8_sub_pel_filters [ xoffset ] ) ;\n d0s8 = vdup_lane_s8 ( dtmps8 , 0 ) ;\n d1s8 = vdup_lane_s8 ( dtmps8 , 1 ) ;\n d2s8 = vdup_lane_s8 ( dtmps8 , 2 ) ;\n d3s8 = vdup_lane_s8 ( dtmps8 , 3 ) ;\n d4s8 = vdup_lane_s8 ( dtmps8 , 4 ) ;\n d5s8 = vdup_lane_s8 ( dtmps8 , 5 ) ;\n d0u8 = vreinterpret_u8_s8 ( vabs_s8 ( d0s8 ) ) ;\n d1u8 = vreinterpret_u8_s8 ( vabs_s8 ( d1s8 ) ) ;\n d2u8 = vreinterpret_u8_s8 ( vabs_s8 ( d2s8 ) ) ;\n d3u8 = vreinterpret_u8_s8 ( vabs_s8 ( d3s8 ) ) ;\n d4u8 = vreinterpret_u8_s8 ( vabs_s8 ( d4s8 ) ) ;\n d5u8 = vreinterpret_u8_s8 ( vabs_s8 ( d5s8 ) ) ;\n if ( yoffset == 0 ) {\n src = src_ptr - 2 ;\n dst = dst_ptr ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n d6u8 = vld1_u8 ( src ) ;\n d7u8 = vld1_u8 ( src + 8 ) ;\n d8u8 = vld1_u8 ( src + 16 ) ;\n src += src_pixels_per_line ;\n d9u8 = vld1_u8 ( src ) ;\n d10u8 = vld1_u8 ( src + 8 ) ;\n d11u8 = vld1_u8 ( src + 16 ) ;\n src += src_pixels_per_line ;\n __builtin_prefetch ( src ) ;\n __builtin_prefetch ( src + src_pixels_per_line ) ;\n q6u16 = vmull_u8 ( d6u8 , d0u8 ) ;\n q7u16 = vmull_u8 ( d7u8 , d0u8 ) ;\n q8u16 = vmull_u8 ( d9u8 , d0u8 ) ;\n q9u16 = vmull_u8 ( d10u8 , d0u8 ) ;\n d20u8 = vext_u8 ( d6u8 , d7u8 , 1 ) ;\n d21u8 = vext_u8 ( d9u8 , d10u8 , 1 ) ;\n d22u8 = vext_u8 ( d7u8 , d8u8 , 1 ) ;\n d23u8 = vext_u8 ( d10u8 , d11u8 , 1 ) ;\n d24u8 = vext_u8 ( d6u8 , d7u8 , 4 ) ;\n d25u8 = vext_u8 ( d9u8 , d10u8 , 4 ) ;\n d26u8 = vext_u8 ( d7u8 , d8u8 , 4 ) ;\n d27u8 = vext_u8 ( d10u8 , d11u8 , 4 ) ;\n d28u8 = vext_u8 ( d6u8 , d7u8 , 5 ) ;\n d29u8 = vext_u8 ( d9u8 , d10u8 , 5 ) ;\n q6u16 = vmlsl_u8 ( q6u16 , d20u8 , d1u8 ) ;\n q8u16 = vmlsl_u8 ( q8u16 , d21u8 , d1u8 ) ;\n q7u16 = vmlsl_u8 ( q7u16 , d22u8 , d1u8 ) ;\n q9u16 = vmlsl_u8 ( q9u16 , d23u8 , d1u8 ) ;\n q6u16 = vmlsl_u8 ( q6u16 , d24u8 , d4u8 ) ;\n q8u16 = vmlsl_u8 ( q8u16 , d25u8 , d4u8 ) ;\n q7u16 = vmlsl_u8 ( q7u16 , d26u8 , d4u8 ) ;\n q9u16 = vmlsl_u8 ( q9u16 , d27u8 , d4u8 ) ;\n q6u16 = vmlal_u8 ( q6u16 , d28u8 , d5u8 ) ;\n q8u16 = vmlal_u8 ( q8u16 , d29u8 , d5u8 ) ;\n d20u8 = vext_u8 ( d7u8 , d8u8 , 5 ) ;\n d21u8 = vext_u8 ( d10u8 , d11u8 , 5 ) ;\n d22u8 = vext_u8 ( d6u8 , d7u8 , 2 ) ;\n d23u8 = vext_u8 ( d9u8 , d10u8 , 2 ) ;\n d24u8 = vext_u8 ( d7u8 , d8u8 , 2 ) ;\n d25u8 = vext_u8 ( d10u8 , d11u8 , 2 ) ;\n d26u8 = vext_u8 ( d6u8 , d7u8 , 3 ) ;\n d27u8 = vext_u8 ( d9u8 , d10u8 , 3 ) ;\n d28u8 = vext_u8 ( d7u8 , d8u8 , 3 ) ;\n d29u8 = vext_u8 ( d10u8 , d11u8 , 3 ) ;\n q7u16 = vmlal_u8 ( q7u16 , d20u8 , d5u8 ) ;\n q9u16 = vmlal_u8 ( q9u16 , d21u8 , d5u8 ) ;\n q6u16 = vmlal_u8 ( q6u16 , d22u8 , d2u8 ) ;\n q8u16 = vmlal_u8 ( q8u16 , d23u8 , d2u8 ) ;\n q7u16 = vmlal_u8 ( q7u16 , d24u8 , d2u8 ) ;\n q9u16 = vmlal_u8 ( q9u16 , d25u8 , d2u8 ) ;\n q10u16 = vmull_u8 ( d26u8 , d3u8 ) ;\n q11u16 = vmull_u8 ( d27u8 , d3u8 ) ;\n q12u16 = vmull_u8 ( d28u8 , d3u8 ) ;\n q15u16 = vmull_u8 ( d29u8 , d3u8 ) ;\n q6s16 = vreinterpretq_s16_u16 ( q6u16 ) ;\n q7s16 = vreinterpretq_s16_u16 ( q7u16 ) ;\n q8s16 = vreinterpretq_s16_u16 ( q8u16 ) ;\n q9s16 = vreinterpretq_s16_u16 ( q9u16 ) ;\n q10s16 = vreinterpretq_s16_u16 ( q10u16 ) ;\n q11s16 = vreinterpretq_s16_u16 ( q11u16 ) ;\n q12s16 = vreinterpretq_s16_u16 ( q12u16 ) ;\n q15s16 = vreinterpretq_s16_u16 ( q15u16 ) ;\n q6s16 = vqaddq_s16 ( q6s16 , q10s16 ) ;\n q8s16 = vqaddq_s16 ( q8s16 , q11s16 ) ;\n q7s16 = vqaddq_s16 ( q7s16 , q12s16 ) ;\n q9s16 = vqaddq_s16 ( q9s16 , q15s16 ) ;\n d6u8 = vqrshrun_n_s16 ( q6s16 , 7 ) ;\n d7u8 = vqrshrun_n_s16 ( q7s16 , 7 ) ;\n d8u8 = vqrshrun_n_s16 ( q8s16 , 7 ) ;\n d9u8 = vqrshrun_n_s16 ( q9s16 , 7 ) ;\n q3u8 = vcombine_u8 ( d6u8 , d7u8 ) ;\n q4u8 = vcombine_u8 ( d8u8 , d9u8 ) ;\n vst1q_u8 ( dst , q3u8 ) ;\n dst += dst_pitch ;\n vst1q_u8 ( dst , q4u8 ) ;\n dst += dst_pitch ;\n }\n return ;\n }\n src = src_ptr - 2 - src_pixels_per_line * 2 ;\n tmpp = tmp ;\n for ( i = 0 ;\n i < 7 ;\n i ++ ) {\n d6u8 = vld1_u8 ( src ) ;\n d7u8 = vld1_u8 ( src + 8 ) ;\n d8u8 = vld1_u8 ( src + 16 ) ;\n src += src_pixels_per_line ;\n d9u8 = vld1_u8 ( src ) ;\n d10u8 = vld1_u8 ( src + 8 ) ;\n d11u8 = vld1_u8 ( src + 16 ) ;\n src += src_pixels_per_line ;\n d12u8 = vld1_u8 ( src ) ;\n d13u8 = vld1_u8 ( src + 8 ) ;\n d14u8 = vld1_u8 ( src + 16 ) ;\n src += src_pixels_per_line ;\n __builtin_prefetch ( src ) ;\n __builtin_prefetch ( src + src_pixels_per_line ) ;\n __builtin_prefetch ( src + src_pixels_per_line * 2 ) ;\n q8u16 = vmull_u8 ( d6u8 , d0u8 ) ;\n q9u16 = vmull_u8 ( d7u8 , d0u8 ) ;\n q10u16 = vmull_u8 ( d9u8 , d0u8 ) ;\n q11u16 = vmull_u8 ( d10u8 , d0u8 ) ;\n q12u16 = vmull_u8 ( d12u8 , d0u8 ) ;\n q13u16 = vmull_u8 ( d13u8 , d0u8 ) ;\n d28u8 = vext_u8 ( d6u8 , d7u8 , 1 ) ;\n d29u8 = vext_u8 ( d9u8 , d10u8 , 1 ) ;\n d30u8 = vext_u8 ( d12u8 , d13u8 , 1 ) ;\n q8u16 = vmlsl_u8 ( q8u16 , d28u8 , d1u8 ) ;\n q10u16 = vmlsl_u8 ( q10u16 , d29u8 , d1u8 ) ;\n q12u16 = vmlsl_u8 ( q12u16 , d30u8 , d1u8 ) ;\n d28u8 = vext_u8 ( d7u8 , d8u8 , 1 ) ;\n d29u8 = vext_u8 ( d10u8 , d11u8 , 1 ) ;\n d30u8 = vext_u8 ( d13u8 , d14u8 , 1 ) ;\n q9u16 = vmlsl_u8 ( q9u16 , d28u8 , d1u8 ) ;\n q11u16 = vmlsl_u8 ( q11u16 , d29u8 , d1u8 ) ;\n q13u16 = vmlsl_u8 ( q13u16 , d30u8 , d1u8 ) ;\n d28u8 = vext_u8 ( d6u8 , d7u8 , 4 ) ;\n d29u8 = vext_u8 ( d9u8 , d10u8 , 4 ) ;\n d30u8 = vext_u8 ( d12u8 , d13u8 , 4 ) ;\n q8u16 = vmlsl_u8 ( q8u16 , d28u8 , d4u8 ) ;\n q10u16 = vmlsl_u8 ( q10u16 , d29u8 , d4u8 ) ;\n q12u16 = vmlsl_u8 ( q12u16 , d30u8 , d4u8 ) ;\n d28u8 = vext_u8 ( d7u8 , d8u8 , 4 ) ;\n d29u8 = vext_u8 ( d10u8 , d11u8 , 4 ) ;\n d30u8 = vext_u8 ( d13u8 , d14u8 , 4 ) ;\n q9u16 = vmlsl_u8 ( q9u16 , d28u8 , d4u8 ) ;\n q11u16 = vmlsl_u8 ( q11u16 , d29u8 , d4u8 ) ;\n q13u16 = vmlsl_u8 ( q13u16 , d30u8 , d4u8 ) ;\n d28u8 = vext_u8 ( d6u8 , d7u8 , 5 ) ;\n d29u8 = vext_u8 ( d9u8 , d10u8 , 5 ) ;\n d30u8 = vext_u8 ( d12u8 , d13u8 , 5 ) ;\n q8u16 = vmlal_u8 ( q8u16 , d28u8 , d5u8 ) ;\n q10u16 = vmlal_u8 ( q10u16 , d29u8 , d5u8 ) ;\n q12u16 = vmlal_u8 ( q12u16 , d30u8 , d5u8 ) ;\n d28u8 = vext_u8 ( d7u8 , d8u8 , 5 ) ;\n d29u8 = vext_u8 ( d10u8 , d11u8 , 5 ) ;\n d30u8 = vext_u8 ( d13u8 , d14u8 , 5 ) ;\n q9u16 = vmlal_u8 ( q9u16 , d28u8 , d5u8 ) ;\n q11u16 = vmlal_u8 ( q11u16 , d29u8 , d5u8 ) ;\n q13u16 = vmlal_u8 ( q13u16 , d30u8 , d5u8 ) ;\n d28u8 = vext_u8 ( d6u8 , d7u8 , 2 ) ;\n d29u8 = vext_u8 ( d9u8 , d10u8 , 2 ) ;\n d30u8 = vext_u8 ( d12u8 , d13u8 , 2 ) ;\n q8u16 = vmlal_u8 ( q8u16 , d28u8 , d2u8 ) ;\n q10u16 = vmlal_u8 ( q10u16 , d29u8 , d2u8 ) ;\n q12u16 = vmlal_u8 ( q12u16 , d30u8 , d2u8 ) ;\n d28u8 = vext_u8 ( d7u8 , d8u8 , 2 ) ;\n d29u8 = vext_u8 ( d10u8 , d11u8 , 2 ) ;\n d30u8 = vext_u8 ( d13u8 , d14u8 , 2 ) ;\n q9u16 = vmlal_u8 ( q9u16 , d28u8 , d2u8 ) ;\n q11u16 = vmlal_u8 ( q11u16 , d29u8 , d2u8 ) ;\n q13u16 = vmlal_u8 ( q13u16 , d30u8 , d2u8 ) ;\n d28u8 = vext_u8 ( d6u8 , d7u8 , 3 ) ;\n d29u8 = vext_u8 ( d9u8 , d10u8 , 3 ) ;\n d30u8 = vext_u8 ( d12u8 , d13u8 , 3 ) ;\n d15u8 = vext_u8 ( d7u8 , d8u8 , 3 ) ;\n d31u8 = vext_u8 ( d10u8 , d11u8 , 3 ) ;\n d6u8 = vext_u8 ( d13u8 , d14u8 , 3 ) ;\n q4u16 = vmull_u8 ( d28u8 , d3u8 ) ;\n q5u16 = vmull_u8 ( d29u8 , d3u8 ) ;\n q6u16 = vmull_u8 ( d30u8 , d3u8 ) ;\n q4s16 = vreinterpretq_s16_u16 ( q4u16 ) ;\n q5s16 = vreinterpretq_s16_u16 ( q5u16 ) ;\n q6s16 = vreinterpretq_s16_u16 ( q6u16 ) ;\n q8s16 = vreinterpretq_s16_u16 ( q8u16 ) ;\n q10s16 = vreinterpretq_s16_u16 ( q10u16 ) ;\n q12s16 = vreinterpretq_s16_u16 ( q12u16 ) ;\n q8s16 = vqaddq_s16 ( q8s16 , q4s16 ) ;\n q10s16 = vqaddq_s16 ( q10s16 , q5s16 ) ;\n q12s16 = vqaddq_s16 ( q12s16 , q6s16 ) ;\n q6u16 = vmull_u8 ( d15u8 , d3u8 ) ;\n q7u16 = vmull_u8 ( d31u8 , d3u8 ) ;\n q3u16 = vmull_u8 ( d6u8 , d3u8 ) ;\n q3s16 = vreinterpretq_s16_u16 ( q3u16 ) ;\n q6s16 = vreinterpretq_s16_u16 ( q6u16 ) ;\n q7s16 = vreinterpretq_s16_u16 ( q7u16 ) ;\n q9s16 = vreinterpretq_s16_u16 ( q9u16 ) ;\n q11s16 = vreinterpretq_s16_u16 ( q11u16 ) ;\n q13s16 = vreinterpretq_s16_u16 ( q13u16 ) ;\n q9s16 = vqaddq_s16 ( q9s16 , q6s16 ) ;\n q11s16 = vqaddq_s16 ( q11s16 , q7s16 ) ;\n q13s16 = vqaddq_s16 ( q13s16 , q3s16 ) ;\n d6u8 = vqrshrun_n_s16 ( q8s16 , 7 ) ;\n d7u8 = vqrshrun_n_s16 ( q9s16 , 7 ) ;\n d8u8 = vqrshrun_n_s16 ( q10s16 , 7 ) ;\n d9u8 = vqrshrun_n_s16 ( q11s16 , 7 ) ;\n d10u8 = vqrshrun_n_s16 ( q12s16 , 7 ) ;\n d11u8 = vqrshrun_n_s16 ( q13s16 , 7 ) ;\n vst1_u8 ( tmpp , d6u8 ) ;\n tmpp += 8 ;\n vst1_u8 ( tmpp , d7u8 ) ;\n tmpp += 8 ;\n vst1_u8 ( tmpp , d8u8 ) ;\n tmpp += 8 ;\n vst1_u8 ( tmpp , d9u8 ) ;\n tmpp += 8 ;\n vst1_u8 ( tmpp , d10u8 ) ;\n tmpp += 8 ;\n vst1_u8 ( tmpp , d11u8 ) ;\n tmpp += 8 ;\n }\n dtmps8 = vld1_s8 ( vp8_sub_pel_filters [ yoffset ] ) ;\n d0s8 = vdup_lane_s8 ( dtmps8 , 0 ) ;\n d1s8 = vdup_lane_s8 ( dtmps8 , 1 ) ;\n d2s8 = vdup_lane_s8 ( dtmps8 , 2 ) ;\n d3s8 = vdup_lane_s8 ( dtmps8 , 3 ) ;\n d4s8 = vdup_lane_s8 ( dtmps8 , 4 ) ;\n d5s8 = vdup_lane_s8 ( dtmps8 , 5 ) ;\n d0u8 = vreinterpret_u8_s8 ( vabs_s8 ( d0s8 ) ) ;\n d1u8 = vreinterpret_u8_s8 ( vabs_s8 ( d1s8 ) ) ;\n d2u8 = vreinterpret_u8_s8 ( vabs_s8 ( d2s8 ) ) ;\n d3u8 = vreinterpret_u8_s8 ( vabs_s8 ( d3s8 ) ) ;\n d4u8 = vreinterpret_u8_s8 ( vabs_s8 ( d4s8 ) ) ;\n d5u8 = vreinterpret_u8_s8 ( vabs_s8 ( d5s8 ) ) ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n dst = dst_ptr + 8 * i ;\n tmpp = tmp + 8 * i ;\n d18u8 = vld1_u8 ( tmpp ) ;\n tmpp += 16 ;\n d19u8 = vld1_u8 ( tmpp ) ;\n tmpp += 16 ;\n d20u8 = vld1_u8 ( tmpp ) ;\n tmpp += 16 ;\n d21u8 = vld1_u8 ( tmpp ) ;\n tmpp += 16 ;\n d22u8 = vld1_u8 ( tmpp ) ;\n tmpp += 16 ;\n for ( j = 0 ;\n j < 4 ;\n j ++ ) {\n d23u8 = vld1_u8 ( tmpp ) ;\n tmpp += 16 ;\n d24u8 = vld1_u8 ( tmpp ) ;\n tmpp += 16 ;\n d25u8 = vld1_u8 ( tmpp ) ;\n tmpp += 16 ;\n d26u8 = vld1_u8 ( tmpp ) ;\n tmpp += 16 ;\n q3u16 = vmull_u8 ( d18u8 , d0u8 ) ;\n q4u16 = vmull_u8 ( d19u8 , d0u8 ) ;\n q5u16 = vmull_u8 ( d20u8 , d0u8 ) ;\n q6u16 = vmull_u8 ( d21u8 , d0u8 ) ;\n q3u16 = vmlsl_u8 ( q3u16 , d19u8 , d1u8 ) ;\n q4u16 = vmlsl_u8 ( q4u16 , d20u8 , d1u8 ) ;\n q5u16 = vmlsl_u8 ( q5u16 , d21u8 , d1u8 ) ;\n q6u16 = vmlsl_u8 ( q6u16 , d22u8 , d1u8 ) ;\n q3u16 = vmlsl_u8 ( q3u16 , d22u8 , d4u8 ) ;\n q4u16 = vmlsl_u8 ( q4u16 , d23u8 , d4u8 ) ;\n q5u16 = vmlsl_u8 ( q5u16 , d24u8 , d4u8 ) ;\n q6u16 = vmlsl_u8 ( q6u16 , d25u8 , d4u8 ) ;\n q3u16 = vmlal_u8 ( q3u16 , d20u8 , d2u8 ) ;\n q4u16 = vmlal_u8 ( q4u16 , d21u8 , d2u8 ) ;\n q5u16 = vmlal_u8 ( q5u16 , d22u8 , d2u8 ) ;\n q6u16 = vmlal_u8 ( q6u16 , d23u8 , d2u8 ) ;\n q3u16 = vmlal_u8 ( q3u16 , d23u8 , d5u8 ) ;\n q4u16 = vmlal_u8 ( q4u16 , d24u8 , d5u8 ) ;\n q5u16 = vmlal_u8 ( q5u16 , d25u8 , d5u8 ) ;\n q6u16 = vmlal_u8 ( q6u16 , d26u8 , d5u8 ) ;\n q7u16 = vmull_u8 ( d21u8 , d3u8 ) ;\n q8u16 = vmull_u8 ( d22u8 , d3u8 ) ;\n q9u16 = vmull_u8 ( d23u8 , d3u8 ) ;\n q10u16 = vmull_u8 ( d24u8 , d3u8 ) ;\n q3s16 = vreinterpretq_s16_u16 ( q3u16 ) ;\n q4s16 = vreinterpretq_s16_u16 ( q4u16 ) ;\n q5s16 = vreinterpretq_s16_u16 ( q5u16 ) ;\n q6s16 = vreinterpretq_s16_u16 ( q6u16 ) ;\n q7s16 = vreinterpretq_s16_u16 ( q7u16 ) ;\n q8s16 = vreinterpretq_s16_u16 ( q8u16 ) ;\n q9s16 = vreinterpretq_s16_u16 ( q9u16 ) ;\n q10s16 = vreinterpretq_s16_u16 ( q10u16 ) ;\n q7s16 = vqaddq_s16 ( q7s16 , q3s16 ) ;\n q8s16 = vqaddq_s16 ( q8s16 , q4s16 ) ;\n q9s16 = vqaddq_s16 ( q9s16 , q5s16 ) ;\n q10s16 = vqaddq_s16 ( q10s16 , q6s16 ) ;\n d6u8 = vqrshrun_n_s16 ( q7s16 , 7 ) ;\n d7u8 = vqrshrun_n_s16 ( q8s16 , 7 ) ;\n d8u8 = vqrshrun_n_s16 ( q9s16 , 7 ) ;\n d9u8 = vqrshrun_n_s16 ( q10s16 , 7 ) ;\n d18u8 = d22u8 ;\n d19u8 = d23u8 ;\n d20u8 = d24u8 ;\n d21u8 = d25u8 ;\n d22u8 = d26u8 ;\n vst1_u8 ( dst , d6u8 ) ;\n dst += dst_pitch ;\n vst1_u8 ( dst , d7u8 ) ;\n dst += dst_pitch ;\n vst1_u8 ( dst , d8u8 ) ;\n dst += dst_pitch ;\n vst1_u8 ( dst , d9u8 ) ;\n dst += dst_pitch ;\n }\n }\n return ;\n }"}
{"idx": 5990, "target": 1, "func": "static void choose_largest_tx_size ( VP9_COMP * cpi , MACROBLOCK * x , int * rate , int64_t * distortion , int * skip , int64_t * sse , int64_t ref_best_rd , BLOCK_SIZE bs ) {\n const TX_SIZE max_tx_size = max_txsize_lookup [ bs ] ;\n VP9_COMMON * const cm = & cpi -> common ;\n const TX_SIZE largest_tx_size = tx_mode_to_biggest_tx_size [ cm -> tx_mode ] ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n MB_MODE_INFO * const mbmi = & xd -> mi [ 0 ] -> mbmi ;\n mbmi -> tx_size = MIN ( max_tx_size , largest_tx_size ) ;\n txfm_rd_in_plane ( x , rate , distortion , skip , sse , ref_best_rd , 0 , bs , mbmi -> tx_size , cpi -> sf . use_fast_coef_costing ) ;\n }"}
{"idx": 5991, "target": 0, "func": "static int lxc_cgroup_set_data ( const char * filename , const char * value , struct cgfs_data * d ) {\n char * subsystem = NULL , * p , * path ;\n int ret = - 1 ;\n subsystem = alloca ( strlen ( filename ) + 1 ) ;\n strcpy ( subsystem , filename ) ;\n if ( ( p = strchr ( subsystem , '.' ) ) != NULL ) * p = '\\0' ;\n path = lxc_cgroup_get_hierarchy_abs_path_data ( subsystem , d ) ;\n if ( path ) {\n ret = do_cgroup_set ( path , filename , value ) ;\n free ( path ) ;\n }\n return ret ;\n }"}
{"idx": 5992, "target": 0, "func": "unsigned int auth_server_connection_add_request ( struct auth_server_connection * conn , struct auth_client_request * request ) {\n unsigned int id ;\n i_assert ( conn -> handshake_received ) ;\n id = ++ conn -> client -> request_id_counter ;\n if ( id == 0 ) {\n id = ++ conn -> client -> request_id_counter ;\n }\n i_assert ( hash_table_lookup ( conn -> requests , POINTER_CAST ( id ) ) == NULL ) ;\n hash_table_insert ( conn -> requests , POINTER_CAST ( id ) , request ) ;\n return id ;\n }"}
{"idx": 5993, "target": 0, "func": "static ossl_inline unsigned long lh_ ## type ## _num_items ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_num_items ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _node_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _node_usage_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_usage_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING ) ;\n # ifdef _MSC_VER # pragma warning ( push ) # pragma warning ( disable : 4090 ) # endif DEFINE_LHASH_OF ( OPENSSL_CSTRING )"}
{"idx": 5994, "target": 1, "func": "ParseResult http_parser_parse_req ( HTTPParser * parser , HdrHeap * heap , HTTPHdrImpl * hh , const char * * start , const char * end , bool must_copy_strings , bool eof , bool strict_uri_parsing ) {\n if ( parser -> m_parsing_http ) {\n MIMEScanner * scanner = & parser -> m_mime_parser . m_scanner ;\n URLImpl * url ;\n ParseResult err ;\n bool line_is_real ;\n const char * cur ;\n const char * line_start ;\n const char * real_end ;\n const char * method_start ;\n const char * method_end ;\n const char * url_start ;\n const char * url_end ;\n const char * version_start ;\n const char * version_end ;\n real_end = end ;\n start : hh -> m_polarity = HTTP_TYPE_REQUEST ;\n if ( scanner -> m_line_length >= UINT16_MAX ) {\n return PARSE_RESULT_ERROR ;\n }\n err = mime_scanner_get ( scanner , start , real_end , & line_start , & end , & line_is_real , eof , MIME_SCANNER_TYPE_LINE ) ;\n if ( err < 0 ) {\n return err ;\n }\n if ( err == PARSE_RESULT_DONE ) {\n return PARSE_RESULT_ERROR ;\n }\n if ( err == PARSE_RESULT_CONT ) {\n return err ;\n }\n cur = line_start ;\n ink_assert ( ( end - cur ) >= 0 ) ;\n ink_assert ( ( end - cur ) < UINT16_MAX ) ;\n must_copy_strings = ( must_copy_strings || ( ! line_is_real ) ) ;\n # if ( ENABLE_PARSER_FAST_PATHS ) if ( end - cur >= 16 ) {\n if ( ( ( cur [ 0 ] ^ 'G' ) | ( cur [ 1 ] ^ 'E' ) | ( cur [ 2 ] ^ 'T' ) ) != 0 ) {\n goto slow_case ;\n }\n if ( ( ( end [ - 10 ] ^ 'H' ) | ( end [ - 9 ] ^ 'T' ) | ( end [ - 8 ] ^ 'T' ) | ( end [ - 7 ] ^ 'P' ) | ( end [ - 6 ] ^ '/' ) | ( end [ - 4 ] ^ '.' ) | ( end [ - 2 ] ^ '\\r' ) | ( end [ - 1 ] ^ '\\n' ) ) != 0 ) {\n goto slow_case ;\n }\n if ( ! ( is_digit ( end [ - 5 ] ) && is_digit ( end [ - 3 ] ) ) ) {\n goto slow_case ;\n }\n if ( ! ( ParseRules : : is_space ( cur [ 3 ] ) && ( ! ParseRules : : is_space ( cur [ 4 ] ) ) && ( ! ParseRules : : is_space ( end [ - 12 ] ) ) && ParseRules : : is_space ( end [ - 11 ] ) ) ) {\n goto slow_case ;\n }\n if ( & ( cur [ 4 ] ) >= & ( end [ - 11 ] ) ) {\n goto slow_case ;\n }\n int32_t version = HTTP_VERSION ( end [ - 5 ] - '0' , end [ - 3 ] - '0' ) ;\n http_hdr_method_set ( heap , hh , & ( cur [ 0 ] ) , hdrtoken_wks_to_index ( HTTP_METHOD_GET ) , 3 , must_copy_strings ) ;\n ink_assert ( hh -> u . req . m_url_impl != nullptr ) ;\n url = hh -> u . req . m_url_impl ;\n url_start = & ( cur [ 4 ] ) ;\n err = : : url_parse ( heap , url , & url_start , & ( end [ - 11 ] ) , must_copy_strings , strict_uri_parsing ) ;\n if ( err < 0 ) {\n return err ;\n }\n http_hdr_version_set ( hh , version ) ;\n end = real_end ;\n parser -> m_parsing_http = false ;\n if ( version == HTTP_VERSION ( 0 , 9 ) ) {\n return PARSE_RESULT_ERROR ;\n }\n ParseResult ret = mime_parser_parse ( & parser -> m_mime_parser , heap , hh -> m_fields_impl , start , end , must_copy_strings , eof ) ;\n if ( ret == PARSE_RESULT_DONE ) {\n ret = validate_hdr_host ( hh ) ;\n }\n return ret ;\n }\n # endif slow_case : method_start = nullptr ;\n method_end = nullptr ;\n url_start = nullptr ;\n url_end = nullptr ;\n version_start = nullptr ;\n version_end = nullptr ;\n url = nullptr ;\n if ( ParseRules : : is_cr ( * cur ) ) GETNEXT ( done ) ;\n if ( ParseRules : : is_lf ( * cur ) ) {\n goto start ;\n }\n parse_method1 : if ( ParseRules : : is_ws ( * cur ) ) {\n GETNEXT ( done ) ;\n goto parse_method1 ;\n }\n if ( ! ParseRules : : is_token ( * cur ) ) {\n goto done ;\n }\n method_start = cur ;\n GETNEXT ( done ) ;\n parse_method2 : if ( ParseRules : : is_ws ( * cur ) ) {\n method_end = cur ;\n goto parse_version1 ;\n }\n if ( ! ParseRules : : is_token ( * cur ) ) {\n goto done ;\n }\n GETNEXT ( done ) ;\n goto parse_method2 ;\n parse_version1 : cur = end - 1 ;\n if ( ParseRules : : is_lf ( * cur ) && ( cur >= line_start ) ) {\n cur -= 1 ;\n }\n if ( ParseRules : : is_cr ( * cur ) && ( cur >= line_start ) ) {\n cur -= 1 ;\n }\n while ( ParseRules : : is_ws ( * cur ) && ( cur >= line_start ) ) {\n cur -= 1 ;\n }\n version_end = cur + 1 ;\n parse_version2 : if ( ParseRules : : is_digit ( * cur ) ) {\n GETPREV ( parse_url ) ;\n goto parse_version2 ;\n }\n if ( * cur == '.' ) {\n GETPREV ( parse_url ) ;\n goto parse_version3 ;\n }\n goto parse_url ;\n parse_version3 : if ( ParseRules : : is_digit ( * cur ) ) {\n GETPREV ( parse_url ) ;\n goto parse_version3 ;\n }\n if ( * cur == '/' ) {\n GETPREV ( parse_url ) ;\n goto parse_version4 ;\n }\n goto parse_url ;\n parse_version4 : if ( ( * cur != 'P' ) && ( * cur != 'p' ) ) {\n goto parse_url ;\n }\n GETPREV ( parse_url ) ;\n if ( ( * cur != 'T' ) && ( * cur != 't' ) ) {\n goto parse_url ;\n }\n GETPREV ( parse_url ) ;\n if ( ( * cur != 'T' ) && ( * cur != 't' ) ) {\n goto parse_url ;\n }\n GETPREV ( parse_url ) ;\n if ( ( * cur != 'H' ) && ( * cur != 'h' ) ) {\n goto parse_url ;\n }\n version_start = cur ;\n parse_url : url_start = method_end + 1 ;\n if ( version_start ) {\n url_end = version_start - 1 ;\n }\n else {\n url_end = end - 1 ;\n }\n while ( ( url_start < end ) && ParseRules : : is_ws ( * url_start ) ) {\n url_start += 1 ;\n }\n while ( ( url_end >= line_start ) && ParseRules : : is_wslfcr ( * url_end ) ) {\n url_end -= 1 ;\n }\n url_end += 1 ;\n done : if ( ! method_start || ! method_end ) {\n return PARSE_RESULT_ERROR ;\n }\n ink_assert ( url_start ) ;\n ink_assert ( url_end ) ;\n int method_wks_idx = hdrtoken_tokenize ( method_start , ( int ) ( method_end - method_start ) ) ;\n http_hdr_method_set ( heap , hh , method_start , method_wks_idx , ( int ) ( method_end - method_start ) , must_copy_strings ) ;\n ink_assert ( hh -> u . req . m_url_impl != nullptr ) ;\n url = hh -> u . req . m_url_impl ;\n err = : : url_parse ( heap , url , & url_start , url_end , must_copy_strings , strict_uri_parsing ) ;\n if ( err < 0 ) {\n return err ;\n }\n int32_t version ;\n if ( version_start && version_end ) {\n version = http_parse_version ( version_start , version_end ) ;\n }\n else {\n return PARSE_RESULT_ERROR ;\n }\n if ( version == HTTP_VERSION ( 0 , 9 ) ) {\n return PARSE_RESULT_ERROR ;\n }\n http_hdr_version_set ( hh , version ) ;\n end = real_end ;\n parser -> m_parsing_http = false ;\n ParseResult ret = mime_parser_parse ( & parser -> m_mime_parser , heap , hh -> m_fields_impl , start , end , must_copy_strings , eof ) ;\n if ( ret == PARSE_RESULT_DONE ) {\n ret = validate_hdr_host ( hh ) ;\n }\n return ret ;\n }\n return mime_parser_parse ( & parser -> m_mime_parser , heap , hh -> m_fields_impl , start , end , must_copy_strings , eof ) ;\n }"}
{"idx": 5995, "target": 0, "func": "apr_status_t mgs_cleanup_pre_config ( void * data __attribute__ ( ( unused ) ) ) {\n gnutls_free ( session_ticket_key . data ) ;\n session_ticket_key . data = NULL ;\n session_ticket_key . size = 0 ;\n gnutls_global_deinit ( ) ;\n return APR_SUCCESS ;\n }"}
{"idx": 5996, "target": 1, "func": "static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 5997, "target": 0, "func": "static int nntp_date ( struct NntpServer * nserv , time_t * now ) {\n if ( nserv -> hasDATE ) {\n struct NntpData nntp_data ;\n char buf [ LONG_STRING ] ;\n struct tm tm ;\n memset ( & tm , 0 , sizeof ( tm ) ) ;\n nntp_data . nserv = nserv ;\n nntp_data . group = NULL ;\n mutt_str_strfcpy ( buf , \"DATE\\r\\n\" , sizeof ( buf ) ) ;\n if ( nntp_query ( & nntp_data , buf , sizeof ( buf ) ) < 0 ) return - 1 ;\n if ( sscanf ( buf , \"111 %4d%2d%2d%2d%2d%2d%*s\" , & tm . tm_year , & tm . tm_mon , & tm . tm_mday , & tm . tm_hour , & tm . tm_min , & tm . tm_sec ) == 6 ) {\n tm . tm_year -= 1900 ;\n tm . tm_mon -- ;\n * now = timegm ( & tm ) ;\n if ( * now >= 0 ) {\n mutt_debug ( 1 , \"server time is %lu\\n\" , * now ) ;\n return 0 ;\n }\n }\n }\n time ( now ) ;\n return 0 ;\n }"}
{"idx": 5998, "target": 0, "func": "static int kex_method_diffie_hellman_group14_sha1_key_exchange ( LIBSSH2_SESSION * session , key_exchange_state_low_t * key_state ) {\n static const unsigned char p_value [ 256 ] = {\n 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xC9 , 0x0F , 0xDA , 0xA2 , 0x21 , 0x68 , 0xC2 , 0x34 , 0xC4 , 0xC6 , 0x62 , 0x8B , 0x80 , 0xDC , 0x1C , 0xD1 , 0x29 , 0x02 , 0x4E , 0x08 , 0x8A , 0x67 , 0xCC , 0x74 , 0x02 , 0x0B , 0xBE , 0xA6 , 0x3B , 0x13 , 0x9B , 0x22 , 0x51 , 0x4A , 0x08 , 0x79 , 0x8E , 0x34 , 0x04 , 0xDD , 0xEF , 0x95 , 0x19 , 0xB3 , 0xCD , 0x3A , 0x43 , 0x1B , 0x30 , 0x2B , 0x0A , 0x6D , 0xF2 , 0x5F , 0x14 , 0x37 , 0x4F , 0xE1 , 0x35 , 0x6D , 0x6D , 0x51 , 0xC2 , 0x45 , 0xE4 , 0x85 , 0xB5 , 0x76 , 0x62 , 0x5E , 0x7E , 0xC6 , 0xF4 , 0x4C , 0x42 , 0xE9 , 0xA6 , 0x37 , 0xED , 0x6B , 0x0B , 0xFF , 0x5C , 0xB6 , 0xF4 , 0x06 , 0xB7 , 0xED , 0xEE , 0x38 , 0x6B , 0xFB , 0x5A , 0x89 , 0x9F , 0xA5 , 0xAE , 0x9F , 0x24 , 0x11 , 0x7C , 0x4B , 0x1F , 0xE6 , 0x49 , 0x28 , 0x66 , 0x51 , 0xEC , 0xE4 , 0x5B , 0x3D , 0xC2 , 0x00 , 0x7C , 0xB8 , 0xA1 , 0x63 , 0xBF , 0x05 , 0x98 , 0xDA , 0x48 , 0x36 , 0x1C , 0x55 , 0xD3 , 0x9A , 0x69 , 0x16 , 0x3F , 0xA8 , 0xFD , 0x24 , 0xCF , 0x5F , 0x83 , 0x65 , 0x5D , 0x23 , 0xDC , 0xA3 , 0xAD , 0x96 , 0x1C , 0x62 , 0xF3 , 0x56 , 0x20 , 0x85 , 0x52 , 0xBB , 0x9E , 0xD5 , 0x29 , 0x07 , 0x70 , 0x96 , 0x96 , 0x6D , 0x67 , 0x0C , 0x35 , 0x4E , 0x4A , 0xBC , 0x98 , 0x04 , 0xF1 , 0x74 , 0x6C , 0x08 , 0xCA , 0x18 , 0x21 , 0x7C , 0x32 , 0x90 , 0x5E , 0x46 , 0x2E , 0x36 , 0xCE , 0x3B , 0xE3 , 0x9E , 0x77 , 0x2C , 0x18 , 0x0E , 0x86 , 0x03 , 0x9B , 0x27 , 0x83 , 0xA2 , 0xEC , 0x07 , 0xA2 , 0x8F , 0xB5 , 0xC5 , 0x5D , 0xF0 , 0x6F , 0x4C , 0x52 , 0xC9 , 0xDE , 0x2B , 0xCB , 0xF6 , 0x95 , 0x58 , 0x17 , 0x18 , 0x39 , 0x95 , 0x49 , 0x7C , 0xEA , 0x95 , 0x6A , 0xE5 , 0x15 , 0xD2 , 0x26 , 0x18 , 0x98 , 0xFA , 0x05 , 0x10 , 0x15 , 0x72 , 0x8E , 0x5A , 0x8A , 0xAC , 0xAA , 0x68 , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF }\n ;\n int ret ;\n if ( key_state -> state == libssh2_NB_state_idle ) {\n key_state -> p = _libssh2_bn_init_from_bin ( ) ;\n key_state -> g = _libssh2_bn_init ( ) ;\n _libssh2_bn_set_word ( key_state -> g , 2 ) ;\n _libssh2_bn_from_bin ( key_state -> p , 256 , p_value ) ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Initiating Diffie-Hellman Group14 Key Exchange\" ) ;\n key_state -> state = libssh2_NB_state_created ;\n }\n ret = diffie_hellman_sha1 ( session , key_state -> g , key_state -> p , 256 , SSH_MSG_KEXDH_INIT , SSH_MSG_KEXDH_REPLY , NULL , 0 , & key_state -> exchange_state ) ;\n if ( ret == LIBSSH2_ERROR_EAGAIN ) {\n return ret ;\n }\n key_state -> state = libssh2_NB_state_idle ;\n _libssh2_bn_free ( key_state -> p ) ;\n key_state -> p = NULL ;\n _libssh2_bn_free ( key_state -> g ) ;\n key_state -> g = NULL ;\n return ret ;\n }"}
{"idx": 5999, "target": 0, "func": "static const DataHeader * U_CALLCONV offsetTOCLookupFn ( const UDataMemory * pData , const char * tocEntryName , int32_t * pLength , UErrorCode * pErrorCode ) {\n ( void ) pErrorCode ;\n const UDataOffsetTOC * toc = ( UDataOffsetTOC * ) pData -> toc ;\n if ( toc != NULL ) {\n const char * base = ( const char * ) toc ;\n int32_t number , count = ( int32_t ) toc -> count ;\n # if defined ( UDATA_DEBUG_DUMP ) for ( number = 0 ;\n number < count ;\n ++ number ) {\n fprintf ( stderr , \"\\tx%d: %s\\n\" , number , & base [ toc -> entry [ number ] . nameOffset ] ) ;\n }\n # endif number = offsetTOCPrefixBinarySearch ( tocEntryName , base , toc -> entry , count ) ;\n if ( number >= 0 ) {\n const UDataOffsetTOCEntry * entry = toc -> entry + number ;\n # ifdef UDATA_DEBUG fprintf ( stderr , \"%s: Found.\\n\" , tocEntryName ) ;\n # endif if ( ( number + 1 ) < count ) {\n * pLength = ( int32_t ) ( entry [ 1 ] . dataOffset - entry -> dataOffset ) ;\n }\n else {\n * pLength = - 1 ;\n }\n return ( const DataHeader * ) ( base + entry -> dataOffset ) ;\n }\n else {\n # ifdef UDATA_DEBUG fprintf ( stderr , \"%s: Not found.\\n\" , tocEntryName ) ;\n # endif return NULL ;\n }\n }\n else {\n # ifdef UDATA_DEBUG fprintf ( stderr , \"returning header\\n\" ) ;\n # endif return pData -> pHeader ;\n }\n }"}
{"idx": 6000, "target": 0, "func": "static guint16 de_tp_epc_ue_test_loop_mode ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n guint32 bit_offset ;\n curr_offset = offset ;\n bit_offset = curr_offset << 3 ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , bit_offset , 6 , ENC_BIG_ENDIAN ) ;\n bit_offset += 6 ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_dtap_epc_ue_tl_mode , tvb , bit_offset , 2 , ENC_BIG_ENDIAN ) ;\n epc_test_loop_mode = tvb_get_guint8 ( tvb , curr_offset ) & 0x03 ;\n curr_offset ++ ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 6001, "target": 1, "func": "static int aes_gcm_ctrl ( EVP_CIPHER_CTX * c , int type , int arg , void * ptr ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , c ) ;\n switch ( type ) {\n case EVP_CTRL_INIT : gctx -> key_set = 0 ;\n gctx -> iv_set = 0 ;\n gctx -> ivlen = EVP_CIPHER_CTX_iv_length ( c ) ;\n gctx -> iv = EVP_CIPHER_CTX_iv_noconst ( c ) ;\n gctx -> taglen = - 1 ;\n gctx -> iv_gen = 0 ;\n gctx -> tls_aad_len = - 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_IVLEN : if ( arg <= 0 ) return 0 ;\n if ( ( arg > EVP_MAX_IV_LENGTH ) && ( arg > gctx -> ivlen ) ) {\n if ( gctx -> iv != EVP_CIPHER_CTX_iv_noconst ( c ) ) OPENSSL_free ( gctx -> iv ) ;\n gctx -> iv = OPENSSL_malloc ( arg ) ;\n if ( gctx -> iv == NULL ) return 0 ;\n }\n gctx -> ivlen = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_TAG : if ( arg <= 0 || arg > 16 || EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n gctx -> taglen = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_GET_TAG : if ( arg <= 0 || arg > 16 || ! EVP_CIPHER_CTX_encrypting ( c ) || gctx -> taglen < 0 ) return 0 ;\n memcpy ( ptr , EVP_CIPHER_CTX_buf_noconst ( c ) , arg ) ;\n return 1 ;\n case EVP_CTRL_GCM_SET_IV_FIXED : if ( arg == - 1 ) {\n memcpy ( gctx -> iv , ptr , gctx -> ivlen ) ;\n gctx -> iv_gen = 1 ;\n return 1 ;\n }\n if ( ( arg < 4 ) || ( gctx -> ivlen - arg ) < 8 ) return 0 ;\n if ( arg ) memcpy ( gctx -> iv , ptr , arg ) ;\n if ( EVP_CIPHER_CTX_encrypting ( c ) && RAND_bytes ( gctx -> iv + arg , gctx -> ivlen - arg ) <= 0 ) return 0 ;\n gctx -> iv_gen = 1 ;\n return 1 ;\n case EVP_CTRL_GCM_IV_GEN : if ( gctx -> iv_gen == 0 || gctx -> key_set == 0 ) return 0 ;\n CRYPTO_gcm128_setiv ( & gctx -> gcm , gctx -> iv , gctx -> ivlen ) ;\n if ( arg <= 0 || arg > gctx -> ivlen ) arg = gctx -> ivlen ;\n memcpy ( ptr , gctx -> iv + gctx -> ivlen - arg , arg ) ;\n ctr64_inc ( gctx -> iv + gctx -> ivlen - 8 ) ;\n gctx -> iv_set = 1 ;\n return 1 ;\n case EVP_CTRL_GCM_SET_IV_INV : if ( gctx -> iv_gen == 0 || gctx -> key_set == 0 || EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( gctx -> iv + gctx -> ivlen - arg , ptr , arg ) ;\n CRYPTO_gcm128_setiv ( & gctx -> gcm , gctx -> iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_TLS1_AAD : if ( arg != EVP_AEAD_TLS1_AAD_LEN ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n gctx -> tls_aad_len = arg ;\n {\n unsigned int len = EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] << 8 | EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] ;\n len -= EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n if ( ! EVP_CIPHER_CTX_encrypting ( c ) ) len -= EVP_GCM_TLS_TAG_LEN ;\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] = len >> 8 ;\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] = len & 0xff ;\n }\n return EVP_GCM_TLS_TAG_LEN ;\n case EVP_CTRL_COPY : {\n EVP_CIPHER_CTX * out = ptr ;\n EVP_AES_GCM_CTX * gctx_out = EVP_C_DATA ( EVP_AES_GCM_CTX , out ) ;\n if ( gctx -> gcm . key ) {\n if ( gctx -> gcm . key != & gctx -> ks ) return 0 ;\n gctx_out -> gcm . key = & gctx_out -> ks ;\n }\n if ( gctx -> iv == EVP_CIPHER_CTX_iv_noconst ( c ) ) gctx_out -> iv = EVP_CIPHER_CTX_iv_noconst ( out ) ;\n else {\n gctx_out -> iv = OPENSSL_malloc ( gctx -> ivlen ) ;\n if ( gctx_out -> iv == NULL ) return 0 ;\n memcpy ( gctx_out -> iv , gctx -> iv , gctx -> ivlen ) ;\n }\n return 1 ;\n }\n default : return - 1 ;\n }\n }"}
{"idx": 6002, "target": 0, "func": "static void openpic_init ( Object * obj ) {\n OpenPICState * opp = OPENPIC ( obj ) ;\n memory_region_init ( & opp -> mem , obj , \"openpic\" , 0x40000 ) ;\n }"}
{"idx": 6003, "target": 1, "func": "static void nonrd_pick_sb_modes ( VP9_COMP * cpi , const TileInfo * const tile , int mi_row , int mi_col , int * rate , int64_t * dist , BLOCK_SIZE bsize , PICK_MODE_CONTEXT * ctx ) {\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCK * const x = & cpi -> mb ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n MB_MODE_INFO * mbmi ;\n set_offsets ( cpi , tile , mi_row , mi_col , bsize ) ;\n mbmi = & xd -> mi [ 0 ] -> mbmi ;\n mbmi -> sb_type = bsize ;\n if ( cpi -> oxcf . aq_mode == CYCLIC_REFRESH_AQ && cm -> seg . enabled ) if ( mbmi -> segment_id && x -> in_static_area ) x -> rdmult = vp9_cyclic_refresh_get_rdmult ( cpi -> cyclic_refresh ) ;\n if ( vp9_segfeature_active ( & cm -> seg , mbmi -> segment_id , SEG_LVL_SKIP ) ) set_mode_info_seg_skip ( x , cm -> tx_mode , rate , dist , bsize ) ;\n else vp9_pick_inter_mode ( cpi , x , tile , mi_row , mi_col , rate , dist , bsize , ctx ) ;\n duplicate_mode_info_in_sb ( cm , xd , mi_row , mi_col , bsize ) ;\n }"}
{"idx": 6004, "target": 0, "func": "void archive_wstring_concat ( struct archive_wstring * dest , struct archive_wstring * src ) {\n if ( archive_wstring_append ( dest , src -> s , src -> length ) == NULL ) __archive_errx ( 1 , \"Out of memory\" ) ;\n }"}
{"idx": 6005, "target": 0, "func": "static UBool isWhitespace ( UChar32 c ) {\n switch ( c ) {\n case 0x000A : case 0x2029 : lineCount ++ ;\n case 0x000D : case 0x0020 : case 0x0009 : case 0xFEFF : return TRUE ;\n default : return FALSE ;\n }\n }"}
{"idx": 6006, "target": 0, "func": "int vp9_square_search ( const MACROBLOCK * x , MV * ref_mv , int search_param , int sad_per_bit , int do_init_search , int * sad_list , const vp9_variance_fn_ptr_t * vfp , int use_mvcost , const MV * center_mv , MV * best_mv ) {\n static const int square_num_candidates [ MAX_PATTERN_SCALES ] = {\n 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , }\n ;\n static const MV square_candidates [ MAX_PATTERN_SCALES ] [ MAX_PATTERN_CANDIDATES ] = {\n {\n {\n - 1 , - 1 }\n , {\n 0 , - 1 }\n , {\n 1 , - 1 }\n , {\n 1 , 0 }\n , {\n 1 , 1 }\n , {\n 0 , 1 }\n , {\n - 1 , 1 }\n , {\n - 1 , 0 }\n }\n , {\n {\n - 2 , - 2 }\n , {\n 0 , - 2 }\n , {\n 2 , - 2 }\n , {\n 2 , 0 }\n , {\n 2 , 2 }\n , {\n 0 , 2 }\n , {\n - 2 , 2 }\n , {\n - 2 , 0 }\n }\n , {\n {\n - 4 , - 4 }\n , {\n 0 , - 4 }\n , {\n 4 , - 4 }\n , {\n 4 , 0 }\n , {\n 4 , 4 }\n , {\n 0 , 4 }\n , {\n - 4 , 4 }\n , {\n - 4 , 0 }\n }\n , {\n {\n - 8 , - 8 }\n , {\n 0 , - 8 }\n , {\n 8 , - 8 }\n , {\n 8 , 0 }\n , {\n 8 , 8 }\n , {\n 0 , 8 }\n , {\n - 8 , 8 }\n , {\n - 8 , 0 }\n }\n , {\n {\n - 16 , - 16 }\n , {\n 0 , - 16 }\n , {\n 16 , - 16 }\n , {\n 16 , 0 }\n , {\n 16 , 16 }\n , {\n 0 , 16 }\n , {\n - 16 , 16 }\n , {\n - 16 , 0 }\n }\n , {\n {\n - 32 , - 32 }\n , {\n 0 , - 32 }\n , {\n 32 , - 32 }\n , {\n 32 , 0 }\n , {\n 32 , 32 }\n , {\n 0 , 32 }\n , {\n - 32 , 32 }\n , {\n - 32 , 0 }\n }\n , {\n {\n - 64 , - 64 }\n , {\n 0 , - 64 }\n , {\n 64 , - 64 }\n , {\n 64 , 0 }\n , {\n 64 , 64 }\n , {\n 0 , 64 }\n , {\n - 64 , 64 }\n , {\n - 64 , 0 }\n }\n , {\n {\n - 128 , - 128 }\n , {\n 0 , - 128 }\n , {\n 128 , - 128 }\n , {\n 128 , 0 }\n , {\n 128 , 128 }\n , {\n 0 , 128 }\n , {\n - 128 , 128 }\n , {\n - 128 , 0 }\n }\n , {\n {\n - 256 , - 256 }\n , {\n 0 , - 256 }\n , {\n 256 , - 256 }\n , {\n 256 , 0 }\n , {\n 256 , 256 }\n , {\n 0 , 256 }\n , {\n - 256 , 256 }\n , {\n - 256 , 0 }\n }\n , {\n {\n - 512 , - 512 }\n , {\n 0 , - 512 }\n , {\n 512 , - 512 }\n , {\n 512 , 0 }\n , {\n 512 , 512 }\n , {\n 0 , 512 }\n , {\n - 512 , 512 }\n , {\n - 512 , 0 }\n }\n , {\n {\n - 1024 , - 1024 }\n , {\n 0 , - 1024 }\n , {\n 1024 , - 1024 }\n , {\n 1024 , 0 }\n , {\n 1024 , 1024 }\n , {\n 0 , 1024 }\n , {\n - 1024 , 1024 }\n , {\n - 1024 , 0 }\n }\n , }\n ;\n return vp9_pattern_search ( x , ref_mv , search_param , sad_per_bit , do_init_search , sad_list , vfp , use_mvcost , center_mv , best_mv , square_num_candidates , square_candidates ) ;\n }"}
{"idx": 6007, "target": 0, "func": "void nautilus_file_operations_copy ( GList * files , GArray * relative_item_points , GFile * target_dir , GtkWindow * parent_window , NautilusCopyCallback done_callback , gpointer done_callback_data ) {\n GTask * task ;\n CopyMoveJob * job ;\n job = op_job_new ( CopyMoveJob , parent_window ) ;\n job -> desktop_location = nautilus_get_desktop_location ( ) ;\n job -> done_callback = done_callback ;\n job -> done_callback_data = done_callback_data ;\n job -> files = g_list_copy_deep ( files , ( GCopyFunc ) g_object_ref , NULL ) ;\n job -> destination = g_object_ref ( target_dir ) ;\n nautilus_progress_info_set_destination ( ( ( CommonJob * ) job ) -> progress , target_dir ) ;\n if ( relative_item_points != NULL && relative_item_points -> len > 0 ) {\n job -> icon_positions = g_memdup ( relative_item_points -> data , sizeof ( GdkPoint ) * relative_item_points -> len ) ;\n job -> n_icon_positions = relative_item_points -> len ;\n }\n job -> debuting_files = g_hash_table_new_full ( g_file_hash , ( GEqualFunc ) g_file_equal , g_object_unref , NULL ) ;\n inhibit_power_manager ( ( CommonJob * ) job , _ ( \"Copying Files\" ) ) ;\n if ( ! nautilus_file_undo_manager_is_operating ( ) ) {\n GFile * src_dir ;\n src_dir = g_file_get_parent ( files -> data ) ;\n job -> common . undo_info = nautilus_file_undo_info_ext_new ( NAUTILUS_FILE_UNDO_OP_COPY , g_list_length ( files ) , src_dir , target_dir ) ;\n g_object_unref ( src_dir ) ;\n }\n task = g_task_new ( NULL , job -> common . cancellable , copy_task_done , job ) ;\n g_task_set_task_data ( task , job , NULL ) ;\n g_task_run_in_thread ( task , copy_task_thread_func ) ;\n g_object_unref ( task ) ;\n }"}
{"idx": 6008, "target": 0, "func": "static GstStructure * gst_asf_demux_get_metadata_for_stream ( GstASFDemux * demux , guint stream_num ) {\n gchar sname [ 32 ] ;\n guint i ;\n g_snprintf ( sname , sizeof ( sname ) , \"stream-%u\" , stream_num ) ;\n for ( i = 0 ;\n i < gst_caps_get_size ( demux -> metadata ) ;\n ++ i ) {\n GstStructure * s ;\n s = gst_caps_get_structure ( demux -> metadata , i ) ;\n if ( gst_structure_has_name ( s , sname ) ) return s ;\n }\n gst_caps_append_structure ( demux -> metadata , gst_structure_new_empty ( sname ) ) ;\n return gst_asf_demux_get_metadata_for_stream ( demux , stream_num ) ;\n }"}
{"idx": 6009, "target": 0, "func": "static void mdc2_body ( MDC2_CTX * c , const unsigned char * in , size_t len ) {\n register DES_LONG tin0 , tin1 ;\n register DES_LONG ttin0 , ttin1 ;\n DES_LONG d [ 2 ] , dd [ 2 ] ;\n DES_key_schedule k ;\n unsigned char * p ;\n size_t i ;\n for ( i = 0 ;\n i < len ;\n i += 8 ) {\n c2l ( in , tin0 ) ;\n d [ 0 ] = dd [ 0 ] = tin0 ;\n c2l ( in , tin1 ) ;\n d [ 1 ] = dd [ 1 ] = tin1 ;\n c -> h [ 0 ] = ( c -> h [ 0 ] & 0x9f ) | 0x40 ;\n c -> hh [ 0 ] = ( c -> hh [ 0 ] & 0x9f ) | 0x20 ;\n DES_set_odd_parity ( & c -> h ) ;\n DES_set_key_unchecked ( & c -> h , & k ) ;\n DES_encrypt1 ( d , & k , 1 ) ;\n DES_set_odd_parity ( & c -> hh ) ;\n DES_set_key_unchecked ( & c -> hh , & k ) ;\n DES_encrypt1 ( dd , & k , 1 ) ;\n ttin0 = tin0 ^ dd [ 0 ] ;\n ttin1 = tin1 ^ dd [ 1 ] ;\n tin0 ^= d [ 0 ] ;\n tin1 ^= d [ 1 ] ;\n p = c -> h ;\n l2c ( tin0 , p ) ;\n l2c ( ttin1 , p ) ;\n p = c -> hh ;\n l2c ( ttin0 , p ) ;\n l2c ( tin1 , p ) ;\n }\n }"}
{"idx": 6010, "target": 0, "func": "void print_help_box ( char * content ) {\n printf ( \"<img src='%s%s' onMouseOver=\\\"return tooltip('<table border=0 width=100%% height=100%%>\" , url_images_path , CONTEXT_HELP_ICON ) ;\n printf ( \"<tr><td>%s</td></tr>\" , content ) ;\n printf ( \"</table>', '&nbsp;\n&nbsp;\n&nbsp;\nHelp', 'border:1, width:500, xoffset:-250, yoffset:25, bordercolor:#333399, title_padding:2px, titletextcolor:#FFFFFF, backcolor:#CCCCFF');\n\\\" onMouseOut=\\\"return hideTip()\\\"\" ) ;\n printf ( \" BORDER=0>\" ) ;\n return ;\n }"}
{"idx": 6011, "target": 0, "func": "static void proto_tree_set_eui64_tvb ( field_info * fi , tvbuff_t * tvb , gint start , const guint encoding ) {\n if ( encoding ) {\n proto_tree_set_eui64 ( fi , tvb_get_letoh64 ( tvb , start ) ) ;\n }\n else {\n proto_tree_set_eui64 ( fi , tvb_get_ntoh64 ( tvb , start ) ) ;\n }\n }"}
{"idx": 6012, "target": 0, "func": "static inline void set_unused_field_bp ( unsigned char * bp , int from , int to ) {\n memset ( bp + from , 0 , to - from + 1 ) ;\n }"}
{"idx": 6013, "target": 0, "func": "static void test_fetch_date ( ) {\n MYSQL_STMT * stmt ;\n uint i ;\n int rc , year ;\n char date [ 25 ] , my_time [ 25 ] , ts [ 25 ] , ts_4 [ 25 ] , ts_6 [ 20 ] , dt [ 20 ] ;\n ulong d_length , t_length , ts_length , ts4_length , ts6_length , dt_length , y_length ;\n MYSQL_BIND my_bind [ 8 ] ;\n my_bool is_null [ 8 ] ;\n ulong length [ 8 ] ;\n myheader ( \"test_fetch_date\" ) ;\n rc = mysql_query ( mysql , \"SET SQL_MODE=''\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_bind_result\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_bind_result(c1 date, c2 time, \\ c3 timestamp, \\ c4 year, \\ c5 datetime, \\ c6 timestamp, \\ c7 timestamp)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"SET SQL_MODE=''\" ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_bind_result VALUES('2002-01-02', \\ '12:49:00', \\ '2002-01-02 17:46:59', \\ 2010, \\ '2010-07-10', \\ '2020', '1999-12-29')\" ) ;\n myquery ( rc ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n for ( i = 0 ;\n i < array_elements ( my_bind ) ;\n i ++ ) {\n my_bind [ i ] . is_null = & is_null [ i ] ;\n my_bind [ i ] . length = & length [ i ] ;\n }\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 1 ] = my_bind [ 2 ] = my_bind [ 0 ] ;\n my_bind [ 0 ] . buffer = ( void * ) & date ;\n my_bind [ 0 ] . buffer_length = sizeof ( date ) ;\n my_bind [ 0 ] . length = & d_length ;\n my_bind [ 1 ] . buffer = ( void * ) & my_time ;\n my_bind [ 1 ] . buffer_length = sizeof ( my_time ) ;\n my_bind [ 1 ] . length = & t_length ;\n my_bind [ 2 ] . buffer = ( void * ) & ts ;\n my_bind [ 2 ] . buffer_length = sizeof ( ts ) ;\n my_bind [ 2 ] . length = & ts_length ;\n my_bind [ 3 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 3 ] . buffer = ( void * ) & year ;\n my_bind [ 3 ] . length = & y_length ;\n my_bind [ 4 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 4 ] . buffer = ( void * ) & dt ;\n my_bind [ 4 ] . buffer_length = sizeof ( dt ) ;\n my_bind [ 4 ] . length = & dt_length ;\n my_bind [ 5 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 5 ] . buffer = ( void * ) & ts_4 ;\n my_bind [ 5 ] . buffer_length = sizeof ( ts_4 ) ;\n my_bind [ 5 ] . length = & ts4_length ;\n my_bind [ 6 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 6 ] . buffer = ( void * ) & ts_6 ;\n my_bind [ 6 ] . buffer_length = sizeof ( ts_6 ) ;\n my_bind [ 6 ] . length = & ts6_length ;\n rc = my_stmt_result ( \"SELECT * FROM test_bind_result\" ) ;\n DIE_UNLESS ( rc == 1 ) ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT * FROM test_bind_result\" ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n ts_4 [ 0 ] = '\\0' ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) {\n fprintf ( stdout , \"\\n date : %s(%lu)\" , date , d_length ) ;\n fprintf ( stdout , \"\\n time : %s(%lu)\" , my_time , t_length ) ;\n fprintf ( stdout , \"\\n ts : %s(%lu)\" , ts , ts_length ) ;\n fprintf ( stdout , \"\\n year : %d(%lu)\" , year , y_length ) ;\n fprintf ( stdout , \"\\n dt : %s(%lu)\" , dt , dt_length ) ;\n fprintf ( stdout , \"\\n ts(4) : %s(%lu)\" , ts_4 , ts4_length ) ;\n fprintf ( stdout , \"\\n ts(6) : %s(%lu)\" , ts_6 , ts6_length ) ;\n }\n DIE_UNLESS ( strcmp ( date , \"2002-01-02\" ) == 0 ) ;\n DIE_UNLESS ( d_length == 10 ) ;\n DIE_UNLESS ( strcmp ( my_time , \"12:49:00\" ) == 0 ) ;\n DIE_UNLESS ( t_length == 8 ) ;\n DIE_UNLESS ( strcmp ( ts , \"2002-01-02 17:46:59\" ) == 0 ) ;\n DIE_UNLESS ( ts_length == 19 ) ;\n DIE_UNLESS ( year == 2010 ) ;\n DIE_UNLESS ( y_length == 4 ) ;\n DIE_UNLESS ( strcmp ( dt , \"2010-07-10 00:00:00\" ) == 0 ) ;\n DIE_UNLESS ( dt_length == 19 ) ;\n DIE_UNLESS ( strcmp ( ts_4 , \"0000-00-00 00:00:00\" ) == 0 ) ;\n DIE_UNLESS ( ts4_length == strlen ( \"0000-00-00 00:00:00\" ) ) ;\n DIE_UNLESS ( strcmp ( ts_6 , \"1999-12-29 00:00:00\" ) == 0 ) ;\n DIE_UNLESS ( ts6_length == 19 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 6014, "target": 0, "func": "static void copy_subdir_files ( char * subdir ) {\n char old_path [ MAXPGPATH ] ;\n char new_path [ MAXPGPATH ] ;\n remove_new_subdir ( subdir , true ) ;\n snprintf ( old_path , sizeof ( old_path ) , \"%s/%s\" , old_cluster . pgdata , subdir ) ;\n snprintf ( new_path , sizeof ( new_path ) , \"%s/%s\" , new_cluster . pgdata , subdir ) ;\n prep_status ( \"Copying old %s to new server\" , subdir ) ;\n exec_prog ( UTILITY_LOG_FILE , NULL , true , # ifndef WIN32 \"cp -Rf \\\"%s\\\" \\\"%s\\\"\" , # else \"xcopy /e /y /q /r \\\"%s\\\" \\\"%s\\\\\\\"\" , # endif old_path , new_path ) ;\n check_ok ( ) ;\n }"}
{"idx": 6015, "target": 1, "func": "static void resolv_conf_parse_line ( char * const start , int flags ) {\n char * strtok_state ;\n static const char * const delims = \" \\t\" ;\n # define NEXT_TOKEN strtok_r ( NULL , delims , & strtok_state ) char * const first_token = strtok_r ( start , delims , & strtok_state ) ;\n if ( ! first_token ) return ;\n if ( ! strcmp ( first_token , \"nameserver\" ) && ( flags & DNS_OPTION_NAMESERVERS ) ) {\n const char * const nameserver = NEXT_TOKEN ;\n struct in_addr ina ;\n if ( inet_aton ( nameserver , & ina ) ) {\n evdns_nameserver_add ( ina . s_addr ) ;\n }\n }\n else if ( ! strcmp ( first_token , \"domain\" ) && ( flags & DNS_OPTION_SEARCH ) ) {\n const char * const domain = NEXT_TOKEN ;\n if ( domain ) {\n search_postfix_clear ( ) ;\n search_postfix_add ( domain ) ;\n }\n }\n else if ( ! strcmp ( first_token , \"search\" ) && ( flags & DNS_OPTION_SEARCH ) ) {\n const char * domain ;\n search_postfix_clear ( ) ;\n while ( ( domain = NEXT_TOKEN ) ) {\n search_postfix_add ( domain ) ;\n }\n search_reverse ( ) ;\n }\n else if ( ! strcmp ( first_token , \"options\" ) ) {\n const char * option ;\n while ( ( option = NEXT_TOKEN ) ) {\n const char * val = strchr ( option , ':' ) ;\n evdns_set_option ( option , val ? val + 1 : \"\" , flags ) ;\n }\n }\n # undef NEXT_TOKEN }"}
{"idx": 6016, "target": 0, "func": "const char * TSUuidStringGet ( const TSUuid uuid ) {\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) uuid ) == TS_SUCCESS ) ;\n ATSUuid * u = ( ATSUuid * ) ( uuid ) ;\n if ( u -> valid ( ) ) {\n return u -> getString ( ) ;\n }\n return nullptr ;\n }"}
{"idx": 6017, "target": 0, "func": "static PREDICTION_MODE read_inter_mode ( VP9_COMMON * cm , vp9_reader * r , int ctx ) {\n const int mode = vp9_read_tree ( r , vp9_inter_mode_tree , cm -> fc . inter_mode_probs [ ctx ] ) ;\n if ( ! cm -> frame_parallel_decoding_mode ) ++ cm -> counts . inter_mode [ ctx ] [ mode ] ;\n return NEARESTMV + mode ;\n }"}
{"idx": 6018, "target": 0, "func": "void check_require ( DYNAMIC_STRING * ds , const char * fname ) {\n DBUG_ENTER ( \"check_require\" ) ;\n if ( dyn_string_cmp ( ds , fname ) ) {\n char reason [ FN_REFLEN ] ;\n fn_format ( reason , fname , \"\" , \"\" , MY_REPLACE_EXT | MY_REPLACE_DIR ) ;\n abort_not_supported_test ( \"Test requires: '%s'\" , reason ) ;\n }\n DBUG_VOID_RETURN ;\n }"}
{"idx": 6019, "target": 0, "func": "void ShowFolderUploadConfirmationDialog ( const base : : FilePath & path , base : : OnceCallback < void ( const std : : vector < ui : : SelectedFileInfo > & ) > callback , std : : vector < ui : : SelectedFileInfo > selected_files , content : : WebContents * web_contents ) {\n FolderUploadConfirmationView : : ShowDialog ( path , std : : move ( callback ) , std : : move ( selected_files ) , web_contents ) ;\n }"}
{"idx": 6020, "target": 0, "func": "static int evdns_server_request_format_response ( struct server_request * req , int err ) {\n unsigned char buf [ 1500 ] ;\n size_t buf_len = sizeof ( buf ) ;\n off_t j = 0 , r ;\n u16 _t ;\n u32 _t32 ;\n int i ;\n u16 flags ;\n struct dnslabel_table table ;\n if ( err < 0 || err > 15 ) return - 1 ;\n flags = req -> base . flags ;\n flags |= ( 0x8000 | err ) ;\n dnslabel_table_init ( & table ) ;\n APPEND16 ( req -> trans_id ) ;\n APPEND16 ( flags ) ;\n APPEND16 ( req -> base . nquestions ) ;\n APPEND16 ( req -> n_answer ) ;\n APPEND16 ( req -> n_authority ) ;\n APPEND16 ( req -> n_additional ) ;\n for ( i = 0 ;\n i < req -> base . nquestions ;\n ++ i ) {\n const char * s = req -> base . questions [ i ] -> name ;\n j = dnsname_to_labels ( buf , buf_len , j , s , strlen ( s ) , & table ) ;\n if ( j < 0 ) {\n dnslabel_clear ( & table ) ;\n return ( int ) j ;\n }\n APPEND16 ( req -> base . questions [ i ] -> type ) ;\n APPEND16 ( req -> base . questions [ i ] -> dns_question_class ) ;\n }\n for ( i = 0 ;\n i < 3 ;\n ++ i ) {\n struct server_reply_item * item ;\n if ( i == 0 ) item = req -> answer ;\n else if ( i == 1 ) item = req -> authority ;\n else item = req -> additional ;\n while ( item ) {\n r = dnsname_to_labels ( buf , buf_len , j , item -> name , strlen ( item -> name ) , & table ) ;\n if ( r < 0 ) goto overflow ;\n j = r ;\n APPEND16 ( item -> type ) ;\n APPEND16 ( item -> dns_question_class ) ;\n APPEND32 ( item -> ttl ) ;\n if ( item -> is_name ) {\n off_t len_idx = j , name_start ;\n j += 2 ;\n name_start = j ;\n r = dnsname_to_labels ( buf , buf_len , j , item -> data , strlen ( item -> data ) , & table ) ;\n if ( r < 0 ) goto overflow ;\n j = r ;\n _t = htons ( ( short ) ( j - name_start ) ) ;\n memcpy ( buf + len_idx , & _t , 2 ) ;\n }\n else {\n APPEND16 ( item -> datalen ) ;\n if ( j + item -> datalen > ( off_t ) buf_len ) goto overflow ;\n memcpy ( buf + j , item -> data , item -> datalen ) ;\n j += item -> datalen ;\n }\n item = item -> next ;\n }\n }\n if ( j > 512 ) {\n overflow : j = 512 ;\n buf [ 2 ] |= 0x02 ;\n }\n req -> response_len = j ;\n if ( ! ( req -> response = malloc ( req -> response_len ) ) ) {\n server_request_free_answers ( req ) ;\n dnslabel_clear ( & table ) ;\n return ( - 1 ) ;\n }\n memcpy ( req -> response , buf , req -> response_len ) ;\n server_request_free_answers ( req ) ;\n dnslabel_clear ( & table ) ;\n return ( 0 ) ;\n }"}
{"idx": 6021, "target": 0, "func": "static void dump_search_desc ( KEYDB_HANDLE hd , const char * text , KEYDB_SEARCH_DESC * desc , size_t ndesc ) {\n int n ;\n const char * s ;\n for ( n = 0 ;\n n < ndesc ;\n n ++ ) {\n switch ( desc [ n ] . mode ) {\n case KEYDB_SEARCH_MODE_NONE : s = \"none\" ;\n break ;\n case KEYDB_SEARCH_MODE_EXACT : s = \"exact\" ;\n break ;\n case KEYDB_SEARCH_MODE_SUBSTR : s = \"substr\" ;\n break ;\n case KEYDB_SEARCH_MODE_MAIL : s = \"mail\" ;\n break ;\n case KEYDB_SEARCH_MODE_MAILSUB : s = \"mailsub\" ;\n break ;\n case KEYDB_SEARCH_MODE_MAILEND : s = \"mailend\" ;\n break ;\n case KEYDB_SEARCH_MODE_WORDS : s = \"words\" ;\n break ;\n case KEYDB_SEARCH_MODE_SHORT_KID : s = \"short_kid\" ;\n break ;\n case KEYDB_SEARCH_MODE_LONG_KID : s = \"long_kid\" ;\n break ;\n case KEYDB_SEARCH_MODE_FPR16 : s = \"fpr16\" ;\n break ;\n case KEYDB_SEARCH_MODE_FPR20 : s = \"fpr20\" ;\n break ;\n case KEYDB_SEARCH_MODE_FPR : s = \"fpr\" ;\n break ;\n case KEYDB_SEARCH_MODE_ISSUER : s = \"issuer\" ;\n break ;\n case KEYDB_SEARCH_MODE_ISSUER_SN : s = \"issuer_sn\" ;\n break ;\n case KEYDB_SEARCH_MODE_SN : s = \"sn\" ;\n break ;\n case KEYDB_SEARCH_MODE_SUBJECT : s = \"subject\" ;\n break ;\n case KEYDB_SEARCH_MODE_KEYGRIP : s = \"keygrip\" ;\n break ;\n case KEYDB_SEARCH_MODE_FIRST : s = \"first\" ;\n break ;\n case KEYDB_SEARCH_MODE_NEXT : s = \"next\" ;\n break ;\n default : s = \"?\" ;\n break ;\n }\n if ( ! n ) log_debug ( \"%s: mode=%s (hd=%p)\" , text , s , hd ) ;\n else log_debug ( \"%*s mode=%s\" , ( int ) strlen ( text ) , \"\" , s ) ;\n if ( desc [ n ] . mode == KEYDB_SEARCH_MODE_LONG_KID ) log_printf ( \" %08lX%08lX\" , ( unsigned long ) desc [ n ] . u . kid [ 0 ] , ( unsigned long ) desc [ n ] . u . kid [ 1 ] ) ;\n else if ( desc [ n ] . mode == KEYDB_SEARCH_MODE_SHORT_KID ) log_printf ( \" %08lX\" , ( unsigned long ) desc [ n ] . u . kid [ 1 ] ) ;\n else if ( desc [ n ] . mode == KEYDB_SEARCH_MODE_SUBSTR ) log_printf ( \" '%s'\" , desc [ n ] . u . name ) ;\n }\n }"}
{"idx": 6022, "target": 0, "func": "unsigned int vp9_sad ## m ## x ## n ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride ) {\n return sad ( src , src_stride , ref , ref_stride , m , n ) ;\n \\ }\n 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 ) {\n uint8_t comp_pred [ m * n ] ;\n vp9_comp_avg_pred ( comp_pred , second_pred , m , n , ref , ref_stride ) ;\n return sad ( src , src_stride , comp_pred , m , m , n ) ;\n \\ }\n # define sadMxNxK ( m , n , k ) void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 ) sadMxN ( 16 , 32 )"}
{"idx": 6023, "target": 0, "func": "static uint32_t e1000e_rss_calc_hash ( E1000ECore * core , struct NetRxPkt * pkt , E1000E_RSSInfo * info ) {\n NetRxPktRssType type ;\n assert ( e1000e_rss_enabled ( core ) ) ;\n switch ( info -> type ) {\n case E1000_MRQ_RSS_TYPE_IPV4 : type = NetPktRssIpV4 ;\n break ;\n case E1000_MRQ_RSS_TYPE_IPV4TCP : type = NetPktRssIpV4Tcp ;\n break ;\n case E1000_MRQ_RSS_TYPE_IPV6TCP : type = NetPktRssIpV6Tcp ;\n break ;\n case E1000_MRQ_RSS_TYPE_IPV6 : type = NetPktRssIpV6 ;\n break ;\n case E1000_MRQ_RSS_TYPE_IPV6EX : type = NetPktRssIpV6Ex ;\n break ;\n default : assert ( false ) ;\n return 0 ;\n }\n return net_rx_pkt_calc_rss_hash ( pkt , type , ( uint8_t * ) & core -> mac [ RSSRK ] ) ;\n }"}
{"idx": 6024, "target": 0, "func": "static uint64_t ar_atol10 ( const char * p , unsigned char_cnt ) {\n uint64_t l , limit , last_digit_limit ;\n unsigned int base , digit ;\n base = 10 ;\n limit = UINT64_MAX / base ;\n last_digit_limit = UINT64_MAX % base ;\n while ( ( * p == ' ' || * p == '\\t' ) && char_cnt -- > 0 ) p ++ ;\n l = 0 ;\n digit = * p - '0' ;\n while ( * p >= '0' && digit < base && char_cnt -- > 0 ) {\n if ( l > limit || ( l == limit && digit > last_digit_limit ) ) {\n l = UINT64_MAX ;\n break ;\n }\n l = ( l * base ) + digit ;\n digit = * ++ p - '0' ;\n }\n return ( l ) ;\n }"}
{"idx": 6025, "target": 0, "func": "static GList * get_trash_dirs_for_mount ( GMount * mount ) {\n GFile * root ;\n GFile * trash ;\n char * relpath ;\n GList * list ;\n root = g_mount_get_root ( mount ) ;\n if ( root == NULL ) {\n return NULL ;\n }\n list = NULL ;\n if ( g_file_is_native ( root ) ) {\n relpath = g_strdup_printf ( \".Trash/%d\" , getuid ( ) ) ;\n trash = g_file_resolve_relative_path ( root , relpath ) ;\n g_free ( relpath ) ;\n list = g_list_prepend ( list , g_file_get_child ( trash , \"files\" ) ) ;\n list = g_list_prepend ( list , g_file_get_child ( trash , \"info\" ) ) ;\n g_object_unref ( trash ) ;\n relpath = g_strdup_printf ( \".Trash-%d\" , getuid ( ) ) ;\n trash = g_file_get_child ( root , relpath ) ;\n g_free ( relpath ) ;\n list = g_list_prepend ( list , g_file_get_child ( trash , \"files\" ) ) ;\n list = g_list_prepend ( list , g_file_get_child ( trash , \"info\" ) ) ;\n g_object_unref ( trash ) ;\n }\n g_object_unref ( root ) ;\n return list ;\n }"}
{"idx": 6026, "target": 0, "func": "static gint handle_message_body_parameters ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * header_tree , guint encoding , gint offset , gint32 body_length , guint8 * signature , guint8 signature_length ) {\n gint packet_length , end_of_body ;\n proto_tree * tree ;\n proto_item * item ;\n const gint starting_offset = offset ;\n packet_length = tvb_reported_length ( tvb ) ;\n item = proto_tree_add_item ( header_tree , hf_alljoyn_mess_body_parameters , tvb , offset , body_length , ENC_NA ) ;\n tree = proto_item_add_subtree ( item , ett_alljoyn_mess_body_parameters ) ;\n end_of_body = offset + body_length ;\n if ( end_of_body > packet_length ) {\n end_of_body = packet_length ;\n }\n while ( offset < end_of_body && signature && * signature ) {\n offset = parse_arg ( tvb , pinfo , NULL , encoding , offset , tree , FALSE , * signature , HDR_INVALID , & signature , & signature_length , starting_offset ) ;\n }\n return offset ;\n }"}
{"idx": 6027, "target": 0, "func": "extern int as_mysql_node_down ( mysql_conn_t * mysql_conn , struct node_record * node_ptr , time_t event_time , char * reason , uint32_t reason_uid ) {\n int rc = SLURM_SUCCESS ;\n char * query = NULL ;\n char * my_reason ;\n MYSQL_RES * result = NULL ;\n MYSQL_ROW row ;\n if ( check_connection ( mysql_conn ) != SLURM_SUCCESS ) return ESLURM_DB_CONNECTION ;\n if ( ! mysql_conn -> cluster_name ) {\n error ( \"%s:%d no cluster name\" , THIS_FILE , __LINE__ ) ;\n return SLURM_ERROR ;\n }\n if ( ! node_ptr ) {\n error ( \"No node_ptr given!\" ) ;\n return SLURM_ERROR ;\n }\n if ( ! node_ptr -> tres_str ) {\n error ( \"node ptr has no tres_list!\" ) ;\n return SLURM_ERROR ;\n }\n query = xstrdup_printf ( \"select state, reason from \\\"%s_%s\\\" where \" \"time_end=0 and node_name='%s';\n\" , mysql_conn -> cluster_name , event_table , node_ptr -> name ) ;\n result = mysql_db_query_ret ( mysql_conn , query , 0 ) ;\n xfree ( query ) ;\n if ( ! result ) return SLURM_ERROR ;\n if ( reason ) my_reason = reason ;\n else my_reason = node_ptr -> reason ;\n row = mysql_fetch_row ( result ) ;\n if ( row && ( node_ptr -> node_state == slurm_atoul ( row [ 0 ] ) ) && my_reason && row [ 1 ] && ! xstrcasecmp ( my_reason , row [ 1 ] ) ) {\n debug ( \"as_mysql_node_down: no change needed %u == %s \" \"and %s == %s\" , node_ptr -> node_state , row [ 0 ] , my_reason , row [ 1 ] ) ;\n mysql_free_result ( result ) ;\n return SLURM_SUCCESS ;\n }\n mysql_free_result ( result ) ;\n debug2 ( \"inserting %s(%s) with tres of '%s'\" , node_ptr -> name , mysql_conn -> cluster_name , node_ptr -> tres_str ) ;\n query = xstrdup_printf ( \"update \\\"%s_%s\\\" set time_end=%ld where \" \"time_end=0 and node_name='%s';\n\" , mysql_conn -> cluster_name , event_table , event_time , node_ptr -> name ) ;\n xstrfmtcat ( query , \"insert into \\\"%s_%s\\\" \" \"(node_name, state, tres, time_start, \" \"reason, reason_uid) \" \"values ('%s', %u, '%s', %ld, '%s', %u) \" \"on duplicate key update time_end=0;\n\" , mysql_conn -> cluster_name , event_table , node_ptr -> name , node_ptr -> node_state , node_ptr -> tres_str , event_time , my_reason , reason_uid ) ;\n debug2 ( \"%d(%s:%d) query\\n%s\" , mysql_conn -> conn , THIS_FILE , __LINE__ , query ) ;\n rc = mysql_db_query ( mysql_conn , query ) ;\n xfree ( query ) ;\n return rc ;\n }"}
{"idx": 6028, "target": 0, "func": "static int seconds_count_format_time_units ( int seconds ) {\n int minutes ;\n int hours ;\n if ( seconds < 0 ) {\n seconds = 0 ;\n }\n if ( seconds < 60 ) {\n return seconds ;\n }\n if ( seconds < 60 * 60 ) {\n minutes = seconds / 60 ;\n return minutes ;\n }\n hours = seconds / ( 60 * 60 ) ;\n if ( seconds < 60 * 60 * 4 ) {\n minutes = ( seconds - hours * 60 * 60 ) / 60 ;\n return minutes + hours ;\n }\n return hours ;\n }"}
{"idx": 6029, "target": 1, "func": "bool challenge_h ( connection_t * c ) {\n char buffer [ MAX_STRING_SIZE ] ;\n int len ;\n if ( sscanf ( c -> buffer , \"%*d \" MAX_STRING , buffer ) != 1 ) {\n logger ( LOG_ERR , \"Got bad %s from %s (%s)\" , \"CHALLENGE\" , c -> name , c -> hostname ) ;\n return false ;\n }\n len = RSA_size ( myself -> connection -> rsa_key ) ;\n if ( strlen ( buffer ) != ( size_t ) len * 2 ) {\n logger ( LOG_ERR , \"Possible intruder %s (%s): %s\" , c -> name , c -> hostname , \"wrong challenge length\" ) ;\n return false ;\n }\n c -> mychallenge = xrealloc ( c -> mychallenge , len ) ;\n if ( ! hex2bin ( buffer , c -> mychallenge , len ) ) {\n logger ( LOG_ERR , \"Got bad %s from %s(%s): %s\" , \"CHALLENGE\" , c -> name , c -> hostname , \"invalid challenge\" ) ;\n return false ;\n }\n c -> allow_request = CHAL_REPLY ;\n return send_chal_reply ( c ) ;\n }"}
{"idx": 6030, "target": 0, "func": "static gint proto_compare_name ( gconstpointer p1_arg , gconstpointer p2_arg ) {\n const protocol_t * p1 = ( const protocol_t * ) p1_arg ;\n const protocol_t * p2 = ( const protocol_t * ) p2_arg ;\n return g_ascii_strcasecmp ( p1 -> short_name , p2 -> short_name ) ;\n }"}
{"idx": 6031, "target": 0, "func": "static struct request * request_new ( int type , const char * name , int flags , evdns_callback_type callback , void * user_ptr ) {\n const char issuing_now = ( global_requests_inflight < global_max_requests_inflight ) ? 1 : 0 ;\n const int name_len = strlen ( name ) ;\n const int request_max_len = evdns_request_len ( name_len ) ;\n const u16 trans_id = issuing_now ? transaction_id_pick ( ) : 0xffff ;\n struct request * const req = ( struct request * ) malloc ( sizeof ( struct request ) + request_max_len ) ;\n int rlen ;\n ( void ) flags ;\n if ( ! req ) return NULL ;\n memset ( req , 0 , sizeof ( struct request ) ) ;\n evtimer_set ( & req -> timeout_event , evdns_request_timeout_callback , req ) ;\n req -> request = ( ( u8 * ) req ) + sizeof ( struct request ) ;\n req -> request_appended = 1 ;\n rlen = evdns_request_data_build ( name , name_len , trans_id , type , CLASS_INET , req -> request , request_max_len ) ;\n if ( rlen < 0 ) goto err1 ;\n req -> request_len = rlen ;\n req -> trans_id = trans_id ;\n req -> tx_count = 0 ;\n req -> request_type = type ;\n req -> user_pointer = user_ptr ;\n req -> user_callback = callback ;\n req -> ns = issuing_now ? nameserver_pick ( ) : NULL ;\n req -> next = req -> prev = NULL ;\n return req ;\n err1 : free ( req ) ;\n return NULL ;\n }"}
{"idx": 6032, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n int h , w , ret ;\n AVFrame * pic = avctx -> coded_frame ;\n const uint8_t * psrc = avpkt -> data ;\n uint16_t * y , * u , * v ;\n int aligned_width = ( ( avctx -> width + 47 ) / 48 ) * 48 ;\n int stride = aligned_width * 8 / 3 ;\n if ( pic -> data [ 0 ] ) avctx -> release_buffer ( avctx , pic ) ;\n if ( avpkt -> size < stride * avctx -> height ) {\n av_log ( avctx , AV_LOG_ERROR , \"packet too small\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n pic -> reference = 0 ;\n if ( ( ret = ff_get_buffer ( avctx , pic ) ) < 0 ) return ret ;\n y = ( uint16_t * ) pic -> data [ 0 ] ;\n u = ( uint16_t * ) pic -> data [ 1 ] ;\n v = ( uint16_t * ) pic -> data [ 2 ] ;\n pic -> pict_type = AV_PICTURE_TYPE_I ;\n pic -> key_frame = 1 ;\n # define READ_PIXELS ( a , b , c ) do {\n val = av_le2ne32 ( * src ++ ) ;\n * a ++ = val & 0x3FF ;\n * b ++ = ( val >> 10 ) & 0x3FF ;\n * c ++ = ( val >> 20 ) & 0x3FF ;\n }\n while ( 0 ) for ( h = 0 ;\n h < avctx -> height ;\n h ++ ) {\n const uint32_t * src = ( const uint32_t * ) psrc ;\n uint32_t val ;\n for ( w = 0 ;\n w < avctx -> width - 5 ;\n w += 6 ) {\n READ_PIXELS ( u , y , v ) ;\n READ_PIXELS ( y , u , y ) ;\n READ_PIXELS ( v , y , u ) ;\n READ_PIXELS ( y , v , y ) ;\n }\n if ( w < avctx -> width - 1 ) {\n READ_PIXELS ( u , y , v ) ;\n val = av_le2ne32 ( * src ++ ) ;\n * y ++ = val & 0x3FF ;\n }\n if ( w < avctx -> width - 3 ) {\n * u ++ = ( val >> 10 ) & 0x3FF ;\n * y ++ = ( val >> 20 ) & 0x3FF ;\n val = av_le2ne32 ( * src ++ ) ;\n * v ++ = val & 0x3FF ;\n * y ++ = ( val >> 10 ) & 0x3FF ;\n }\n psrc += stride ;\n y += pic -> linesize [ 0 ] / 2 - avctx -> width ;\n u += pic -> linesize [ 1 ] / 2 - avctx -> width / 2 ;\n v += pic -> linesize [ 2 ] / 2 - avctx -> width / 2 ;\n }\n * got_frame = 1 ;\n * ( AVFrame * ) data = * avctx -> coded_frame ;\n return avpkt -> size ;\n }"}
{"idx": 6033, "target": 0, "func": "static void mode_out ( struct cpio * cpio ) {\n struct archive_entry * entry , * spare ;\n struct lafe_line_reader * lr ;\n const char * p ;\n int r ;\n if ( cpio -> option_append ) lafe_errc ( 1 , 0 , \"Append mode not yet supported.\" ) ;\n cpio -> archive_read_disk = archive_read_disk_new ( ) ;\n if ( cpio -> archive_read_disk == NULL ) lafe_errc ( 1 , 0 , \"Failed to allocate archive object\" ) ;\n if ( cpio -> option_follow_links ) archive_read_disk_set_symlink_logical ( cpio -> archive_read_disk ) ;\n else archive_read_disk_set_symlink_physical ( cpio -> archive_read_disk ) ;\n archive_read_disk_set_standard_lookup ( cpio -> archive_read_disk ) ;\n cpio -> archive = archive_write_new ( ) ;\n if ( cpio -> archive == NULL ) lafe_errc ( 1 , 0 , \"Failed to allocate archive object\" ) ;\n switch ( cpio -> compress ) {\n case OPTION_GRZIP : r = archive_write_add_filter_grzip ( cpio -> archive ) ;\n break ;\n case 'J' : r = archive_write_add_filter_xz ( cpio -> archive ) ;\n break ;\n case OPTION_LRZIP : r = archive_write_add_filter_lrzip ( cpio -> archive ) ;\n break ;\n case OPTION_LZ4 : r = archive_write_add_filter_lz4 ( cpio -> archive ) ;\n break ;\n case OPTION_LZMA : r = archive_write_add_filter_lzma ( cpio -> archive ) ;\n break ;\n case OPTION_LZOP : r = archive_write_add_filter_lzop ( cpio -> archive ) ;\n break ;\n case 'j' : case 'y' : r = archive_write_add_filter_bzip2 ( cpio -> archive ) ;\n break ;\n case 'z' : r = archive_write_add_filter_gzip ( cpio -> archive ) ;\n break ;\n case 'Z' : r = archive_write_add_filter_compress ( cpio -> archive ) ;\n break ;\n default : r = archive_write_add_filter_none ( cpio -> archive ) ;\n break ;\n }\n if ( r < ARCHIVE_WARN ) lafe_errc ( 1 , 0 , \"Requested compression not available\" ) ;\n switch ( cpio -> add_filter ) {\n case 0 : r = ARCHIVE_OK ;\n break ;\n case OPTION_B64ENCODE : r = archive_write_add_filter_b64encode ( cpio -> archive ) ;\n break ;\n case OPTION_UUENCODE : r = archive_write_add_filter_uuencode ( cpio -> archive ) ;\n break ;\n }\n if ( r < ARCHIVE_WARN ) lafe_errc ( 1 , 0 , \"Requested filter not available\" ) ;\n r = archive_write_set_format_by_name ( cpio -> archive , cpio -> format ) ;\n if ( r != ARCHIVE_OK ) lafe_errc ( 1 , 0 , \"%s\" , archive_error_string ( cpio -> archive ) ) ;\n archive_write_set_bytes_per_block ( cpio -> archive , cpio -> bytes_per_block ) ;\n cpio -> linkresolver = archive_entry_linkresolver_new ( ) ;\n archive_entry_linkresolver_set_strategy ( cpio -> linkresolver , archive_format ( cpio -> archive ) ) ;\n if ( cpio -> passphrase != NULL ) r = archive_write_set_passphrase ( cpio -> archive , cpio -> passphrase ) ;\n else r = archive_write_set_passphrase_callback ( cpio -> archive , cpio , & passphrase_callback ) ;\n if ( r != ARCHIVE_OK ) lafe_errc ( 1 , 0 , \"%s\" , archive_error_string ( cpio -> archive ) ) ;\n r = archive_write_open_filename ( cpio -> archive , cpio -> filename ) ;\n if ( r != ARCHIVE_OK ) lafe_errc ( 1 , 0 , \"%s\" , archive_error_string ( cpio -> archive ) ) ;\n lr = lafe_line_reader ( \"-\" , cpio -> option_null ) ;\n while ( ( p = lafe_line_reader_next ( lr ) ) != NULL ) file_to_archive ( cpio , p ) ;\n lafe_line_reader_free ( lr ) ;\n entry = NULL ;\n archive_entry_linkify ( cpio -> linkresolver , & entry , & spare ) ;\n while ( entry != NULL ) {\n entry_to_archive ( cpio , entry ) ;\n archive_entry_free ( entry ) ;\n entry = NULL ;\n archive_entry_linkify ( cpio -> linkresolver , & entry , & spare ) ;\n }\n r = archive_write_close ( cpio -> archive ) ;\n if ( cpio -> dot ) fprintf ( stderr , \"\\n\" ) ;\n if ( r != ARCHIVE_OK ) lafe_errc ( 1 , 0 , \"%s\" , archive_error_string ( cpio -> archive ) ) ;\n if ( ! cpio -> quiet ) {\n int64_t blocks = ( archive_filter_bytes ( cpio -> archive , 0 ) + 511 ) / 512 ;\n fprintf ( stderr , \"%lu %s\\n\" , ( unsigned long ) blocks , blocks == 1 ? \"block\" : \"blocks\" ) ;\n }\n archive_write_free ( cpio -> archive ) ;\n }"}
{"idx": 6034, "target": 0, "func": "static void lms_update ( WmallDecodeCtx * s , int ich , int ilms , int input , int residue ) {\n int icoef ;\n int recent = s -> cdlms [ ich ] [ ilms ] . recent ;\n int range = 1 << s -> bits_per_sample - 1 ;\n if ( residue < 0 ) {\n for ( icoef = 0 ;\n icoef < s -> cdlms [ ich ] [ ilms ] . order ;\n icoef ++ ) s -> cdlms [ ich ] [ ilms ] . coefs [ icoef ] -= s -> cdlms [ ich ] [ ilms ] . lms_updates [ icoef + recent ] ;\n }\n else if ( residue > 0 ) {\n for ( icoef = 0 ;\n icoef < s -> cdlms [ ich ] [ ilms ] . order ;\n icoef ++ ) s -> cdlms [ ich ] [ ilms ] . coefs [ icoef ] += s -> cdlms [ ich ] [ ilms ] . lms_updates [ icoef + recent ] ;\n }\n if ( recent ) recent -- ;\n else {\n memcpy ( & s -> cdlms [ ich ] [ ilms ] . lms_prevvalues [ s -> cdlms [ ich ] [ ilms ] . order ] , s -> cdlms [ ich ] [ ilms ] . lms_prevvalues , 2 * s -> cdlms [ ich ] [ ilms ] . order ) ;\n memcpy ( & s -> cdlms [ ich ] [ ilms ] . lms_updates [ s -> cdlms [ ich ] [ ilms ] . order ] , s -> cdlms [ ich ] [ ilms ] . lms_updates , 2 * s -> cdlms [ ich ] [ ilms ] . order ) ;\n recent = s -> cdlms [ ich ] [ ilms ] . order - 1 ;\n }\n s -> cdlms [ ich ] [ ilms ] . lms_prevvalues [ recent ] = av_clip ( input , - range , range - 1 ) ;\n if ( ! input ) s -> cdlms [ ich ] [ ilms ] . lms_updates [ recent ] = 0 ;\n else if ( input < 0 ) s -> cdlms [ ich ] [ ilms ] . lms_updates [ recent ] = - s -> update_speed [ ich ] ;\n else s -> cdlms [ ich ] [ ilms ] . lms_updates [ recent ] = s -> update_speed [ ich ] ;\n s -> cdlms [ ich ] [ ilms ] . lms_updates [ recent + ( s -> cdlms [ ich ] [ ilms ] . order >> 4 ) ] >>= 2 ;\n s -> cdlms [ ich ] [ ilms ] . lms_updates [ recent + ( s -> cdlms [ ich ] [ ilms ] . order >> 3 ) ] >>= 1 ;\n s -> cdlms [ ich ] [ ilms ] . recent = recent ;\n }"}
{"idx": 6035, "target": 0, "func": "static int ssl_check_srp_ext_ClientHello ( SSL * s , int * al ) {\n int ret = SSL_ERROR_NONE ;\n * al = SSL_AD_UNRECOGNIZED_NAME ;\n if ( ( s -> s3 -> tmp . new_cipher -> algorithm_mkey & SSL_kSRP ) && ( s -> srp_ctx . TLS_ext_srp_username_callback != NULL ) ) {\n if ( s -> srp_ctx . login == NULL ) {\n ret = SSL3_AL_FATAL ;\n * al = SSL_AD_UNKNOWN_PSK_IDENTITY ;\n }\n else {\n ret = SSL_srp_server_param_with_username ( s , al ) ;\n }\n }\n return ret ;\n }"}
{"idx": 6036, "target": 0, "func": "static void _slurm_rpc_assoc_mgr_info ( slurm_msg_t * msg ) {\n DEF_TIMERS ;\n char * dump = NULL ;\n int dump_size = 0 ;\n slurm_msg_t response_msg ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n START_TIMER ;\n debug2 ( \"%s: Processing RPC: REQUEST_ASSOC_MGR_INFO uid=%d\" , __func__ , uid ) ;\n assoc_mgr_info_get_pack_msg ( & dump , & dump_size , ( assoc_mgr_info_request_msg_t * ) msg -> data , uid , acct_db_conn , msg -> protocol_version ) ;\n END_TIMER2 ( \"_slurm_rpc_assoc_mgr_info\" ) ;\n debug2 ( \"%s: size=%d %s\" , __func__ , dump_size , TIME_STR ) ;\n slurm_msg_t_init ( & response_msg ) ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . address = msg -> address ;\n response_msg . conn = msg -> conn ;\n response_msg . msg_type = RESPONSE_ASSOC_MGR_INFO ;\n response_msg . data = dump ;\n response_msg . data_size = dump_size ;\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n xfree ( dump ) ;\n }"}
{"idx": 6037, "target": 0, "func": "static inline struct xfrm_user_sec_ctx * pfkey_sadb2xfrm_user_sec_ctx ( const struct sadb_x_sec_ctx * sec_ctx ) {\n struct xfrm_user_sec_ctx * uctx = NULL ;\n int ctx_size = sec_ctx -> sadb_x_ctx_len ;\n uctx = kmalloc ( ( sizeof ( * uctx ) + ctx_size ) , GFP_KERNEL ) ;\n if ( ! uctx ) return NULL ;\n uctx -> len = pfkey_sec_ctx_len ( sec_ctx ) ;\n uctx -> exttype = sec_ctx -> sadb_x_sec_exttype ;\n uctx -> ctx_doi = sec_ctx -> sadb_x_ctx_doi ;\n uctx -> ctx_alg = sec_ctx -> sadb_x_ctx_alg ;\n uctx -> ctx_len = sec_ctx -> sadb_x_ctx_len ;\n memcpy ( uctx + 1 , sec_ctx + 1 , uctx -> ctx_len ) ;\n return uctx ;\n }"}
{"idx": 6038, "target": 0, "func": "void ffv1_clear_slice_state ( FFV1Context * f , FFV1Context * fs ) {\n int i , j ;\n for ( i = 0 ;\n i < f -> plane_count ;\n i ++ ) {\n PlaneContext * p = & fs -> plane [ i ] ;\n p -> interlace_bit_state [ 0 ] = 128 ;\n p -> interlace_bit_state [ 1 ] = 128 ;\n if ( fs -> ac ) {\n if ( f -> initial_states [ p -> quant_table_index ] ) {\n memcpy ( p -> state , f -> initial_states [ p -> quant_table_index ] , CONTEXT_SIZE * p -> context_count ) ;\n }\n else memset ( p -> state , 128 , CONTEXT_SIZE * p -> context_count ) ;\n }\n else {\n for ( j = 0 ;\n j < p -> context_count ;\n j ++ ) {\n p -> vlc_state [ j ] . drift = 0 ;\n p -> vlc_state [ j ] . error_sum = 4 ;\n p -> vlc_state [ j ] . bias = 0 ;\n p -> vlc_state [ j ] . count = 1 ;\n }\n }\n }\n }"}
{"idx": 6039, "target": 0, "func": "static int php_is_dir_ok ( const cwd_state * state ) {\n struct stat buf ;\n if ( php_sys_stat ( state -> cwd , & buf ) == 0 && S_ISDIR ( buf . st_mode ) ) return ( 0 ) ;\n return ( 1 ) ;\n }"}
{"idx": 6040, "target": 0, "func": "static void pdf_run_BI ( fz_context * ctx , pdf_processor * proc , fz_image * image ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_show_image ( ctx , pr , image ) ;\n }"}
{"idx": 6041, "target": 0, "func": "static void x8_reset_vlc_tables ( IntraX8Context * w ) {\n memset ( w -> j_dc_vlc , 0 , sizeof ( w -> j_dc_vlc ) ) ;\n memset ( w -> j_ac_vlc , 0 , sizeof ( w -> j_ac_vlc ) ) ;\n w -> j_orient_vlc = NULL ;\n }"}
{"idx": 6042, "target": 0, "func": "void proto_set_cant_toggle ( const int proto_id ) {\n protocol_t * protocol ;\n protocol = find_protocol_by_id ( proto_id ) ;\n protocol -> can_toggle = FALSE ;\n }"}
{"idx": 6043, "target": 1, "func": "int uwsgi_php_request ( struct wsgi_request * wsgi_req ) {\n char real_filename [ PATH_MAX + 1 ] ;\n char * path_info = NULL ;\n size_t real_filename_len = 0 ;\n struct stat php_stat ;\n char * filename = NULL ;\n int force_empty_script_name = 0 ;\n zend_file_handle file_handle ;\n # ifdef ZTS TSRMLS_FETCH ( ) ;\n # endif SG ( server_context ) = ( void * ) wsgi_req ;\n if ( uwsgi_parse_vars ( wsgi_req ) ) {\n return - 1 ;\n }\n char * orig_path_info = wsgi_req -> path_info ;\n uint16_t orig_path_info_len = wsgi_req -> path_info_len ;\n if ( uphp . docroot ) {\n wsgi_req -> document_root = uphp . docroot ;\n }\n else if ( ! wsgi_req -> document_root_len ) {\n wsgi_req -> document_root = uwsgi . cwd ;\n }\n else {\n char * sanitized_docroot = ecalloc ( 1 , PATH_MAX + 1 ) ;\n if ( ! uwsgi_expand_path ( wsgi_req -> document_root , wsgi_req -> document_root_len , sanitized_docroot ) ) {\n efree ( sanitized_docroot ) ;\n return - 1 ;\n }\n wsgi_req -> document_root = sanitized_docroot ;\n }\n wsgi_req -> document_root_len = strlen ( wsgi_req -> document_root ) ;\n if ( uphp . app ) {\n # ifdef UWSGI_PCRE struct uwsgi_regexp_list * bypass = uphp . app_bypass ;\n while ( bypass ) {\n if ( uwsgi_regexp_match ( bypass -> pattern , bypass -> pattern_extra , wsgi_req -> uri , wsgi_req -> uri_len ) >= 0 ) {\n goto oldstyle ;\n }\n bypass = bypass -> next ;\n }\n # endif strcpy ( real_filename , uphp . app ) ;\n if ( wsgi_req -> path_info_len == 1 && wsgi_req -> path_info [ 0 ] == '/' ) {\n goto appready ;\n }\n if ( uphp . app_qs ) {\n size_t app_qs_len = strlen ( uphp . app_qs ) ;\n size_t qs_len = wsgi_req -> path_info_len + app_qs_len ;\n if ( wsgi_req -> query_string_len > 0 ) {\n qs_len += 1 + wsgi_req -> query_string_len ;\n }\n char * qs = ecalloc ( 1 , qs_len + 1 ) ;\n memcpy ( qs , uphp . app_qs , app_qs_len ) ;\n memcpy ( qs + app_qs_len , wsgi_req -> path_info , wsgi_req -> path_info_len ) ;\n if ( wsgi_req -> query_string_len > 0 ) {\n char * ptr = qs + app_qs_len + wsgi_req -> path_info_len ;\n * ptr = '&' ;\n memcpy ( ptr + 1 , wsgi_req -> query_string , wsgi_req -> query_string_len ) ;\n }\n wsgi_req -> query_string = qs ;\n wsgi_req -> query_string_len = qs_len ;\n }\n appready : wsgi_req -> path_info = \"\" ;\n wsgi_req -> path_info_len = 0 ;\n force_empty_script_name = 1 ;\n goto secure2 ;\n }\n # ifdef UWSGI_PCRE oldstyle : # endif filename = uwsgi_concat4n ( wsgi_req -> document_root , wsgi_req -> document_root_len , \"/\" , 1 , wsgi_req -> path_info , wsgi_req -> path_info_len , \"\" , 0 ) ;\n if ( uwsgi_php_walk ( wsgi_req , filename , wsgi_req -> document_root , wsgi_req -> document_root_len , & path_info ) ) {\n free ( filename ) ;\n if ( uphp . fallback || uphp . fallback2 ) {\n if ( uphp . fallback ) {\n filename = uwsgi_str ( uphp . fallback ) ;\n }\n else {\n filename = uwsgi_concat2n ( wsgi_req -> document_root , strlen ( wsgi_req -> document_root ) , uphp . fallback2 , strlen ( uphp . fallback2 ) ) ;\n wsgi_req -> script_name = uphp . fallback2 ;\n wsgi_req -> script_name_len = strlen ( uphp . fallback2 ) ;\n }\n if ( uphp . fallback_qs ) {\n size_t fqs_len = strlen ( uphp . fallback_qs ) ;\n size_t new_qs_len = orig_path_info_len + fqs_len + 1 + wsgi_req -> query_string_len ;\n char * new_qs = ecalloc ( 1 , new_qs_len + 1 ) ;\n memcpy ( new_qs , uphp . fallback_qs , fqs_len ) ;\n new_qs [ fqs_len ] = '=' ;\n memcpy ( new_qs + fqs_len + 1 , orig_path_info , orig_path_info_len ) ;\n if ( wsgi_req -> query_string_len ) {\n new_qs [ fqs_len + 1 + orig_path_info_len ] = '&' ;\n memcpy ( new_qs + fqs_len + 2 + orig_path_info_len , wsgi_req -> query_string , wsgi_req -> query_string_len ) ;\n }\n wsgi_req -> query_string = new_qs ;\n wsgi_req -> query_string_len = new_qs_len ;\n }\n }\n else {\n uwsgi_404 ( wsgi_req ) ;\n return - 1 ;\n }\n }\n if ( path_info ) {\n wsgi_req -> path_info = path_info ;\n wsgi_req -> path_info_len = orig_path_info_len - ( path_info - orig_path_info ) ;\n }\n else {\n wsgi_req -> path_info = \"\" ;\n wsgi_req -> path_info_len = 0 ;\n }\n if ( ! realpath ( filename , real_filename ) ) {\n free ( filename ) ;\n uwsgi_404 ( wsgi_req ) ;\n return - 1 ;\n }\n free ( filename ) ;\n real_filename_len = strlen ( real_filename ) ;\n if ( uphp . allowed_docroot ) {\n struct uwsgi_string_list * usl = uphp . allowed_docroot ;\n while ( usl ) {\n if ( ! uwsgi_starts_with ( real_filename , real_filename_len , usl -> value , usl -> len ) ) {\n goto secure ;\n }\n usl = usl -> next ;\n }\n uwsgi_403 ( wsgi_req ) ;\n uwsgi_log ( \"PHP security error: %s is not under an allowed docroot\\n\" , real_filename ) ;\n return - 1 ;\n }\n secure : if ( stat ( real_filename , & php_stat ) ) {\n uwsgi_404 ( wsgi_req ) ;\n return UWSGI_OK ;\n }\n if ( S_ISDIR ( php_stat . st_mode ) ) {\n if ( orig_path_info_len == 0 || ( orig_path_info_len > 0 && orig_path_info [ orig_path_info_len - 1 ] != '/' ) ) {\n wsgi_req -> path_info = orig_path_info ;\n wsgi_req -> path_info_len = orig_path_info_len ;\n uwsgi_redirect_to_slash ( wsgi_req ) ;\n return UWSGI_OK ;\n }\n struct uwsgi_string_list * upi = uphp . index ;\n real_filename [ real_filename_len ] = '/' ;\n real_filename_len ++ ;\n int found = 0 ;\n while ( upi ) {\n if ( real_filename_len + upi -> len + 1 < PATH_MAX ) {\n memcpy ( real_filename + real_filename_len , upi -> value , upi -> len + 1 ) ;\n if ( ! access ( real_filename , R_OK ) ) {\n found = 1 ;\n break ;\n }\n }\n upi = upi -> next ;\n }\n if ( ! found ) {\n uwsgi_404 ( wsgi_req ) ;\n return UWSGI_OK ;\n }\n real_filename_len = strlen ( real_filename ) ;\n }\n if ( uphp . allowed_ext ) {\n struct uwsgi_string_list * usl = uphp . allowed_ext ;\n while ( usl ) {\n if ( real_filename_len >= usl -> len ) {\n if ( ! uwsgi_strncmp ( real_filename + ( real_filename_len - usl -> len ) , usl -> len , usl -> value , usl -> len ) ) {\n goto secure2 ;\n }\n }\n usl = usl -> next ;\n }\n uwsgi_403 ( wsgi_req ) ;\n uwsgi_log ( \"PHP security error: %s does not end with an allowed extension\\n\" , real_filename ) ;\n return - 1 ;\n }\n secure2 : wsgi_req -> file = real_filename ;\n wsgi_req -> file_len = strlen ( wsgi_req -> file ) ;\n if ( uphp . allowed_scripts ) {\n struct uwsgi_string_list * usl = uphp . allowed_scripts ;\n while ( usl ) {\n if ( ! uwsgi_strncmp ( wsgi_req -> file , wsgi_req -> file_len , usl -> value , usl -> len ) ) {\n goto secure3 ;\n }\n usl = usl -> next ;\n }\n uwsgi_403 ( wsgi_req ) ;\n uwsgi_log ( \"PHP security error: %s is not an allowed script\\n\" , real_filename ) ;\n return - 1 ;\n }\n secure3 : if ( force_empty_script_name ) {\n wsgi_req -> script_name = \"\" ;\n wsgi_req -> script_name_len = 0 ;\n }\n else if ( ! uphp . fallback2 ) {\n wsgi_req -> script_name = orig_path_info ;\n if ( path_info ) {\n wsgi_req -> script_name_len = path_info - orig_path_info ;\n }\n else {\n wsgi_req -> script_name_len = orig_path_info_len ;\n }\n }\n # ifdef UWSGI_DEBUG uwsgi_log ( \"php filename = %s script_name = %.*s (%d) document_root = %.*s (%d)\\n\" , real_filename , wsgi_req -> script_name_len , wsgi_req -> script_name , wsgi_req -> script_name_len , wsgi_req -> document_root_len , wsgi_req -> document_root , wsgi_req -> document_root_len ) ;\n # endif SG ( request_info ) . request_uri = estrndup ( wsgi_req -> uri , wsgi_req -> uri_len ) ;\n SG ( request_info ) . request_method = estrndup ( wsgi_req -> method , wsgi_req -> method_len ) ;\n SG ( request_info ) . proto_num = 1001 ;\n SG ( request_info ) . query_string = estrndup ( wsgi_req -> query_string , wsgi_req -> query_string_len ) ;\n SG ( request_info ) . content_length = wsgi_req -> post_cl ;\n SG ( request_info ) . content_type = estrndup ( wsgi_req -> content_type , wsgi_req -> content_type_len ) ;\n SG ( sapi_headers ) . http_response_code = 200 ;\n SG ( request_info ) . path_translated = wsgi_req -> file ;\n file_handle . type = ZEND_HANDLE_FILENAME ;\n file_handle . filename = real_filename ;\n file_handle . free_filename = 0 ;\n file_handle . opened_path = NULL ;\n if ( php_request_startup ( TSRMLS_C ) == FAILURE ) {\n uwsgi_500 ( wsgi_req ) ;\n return - 1 ;\n }\n struct uwsgi_string_list * usl = NULL ;\n uwsgi_foreach ( usl , uphp . exec_before ) {\n if ( zend_eval_string_ex ( usl -> value , NULL , \"uWSGI php exec before\" , 1 TSRMLS_CC ) == FAILURE ) goto end ;\n }\n php_execute_script ( & file_handle TSRMLS_CC ) ;\n uwsgi_foreach ( usl , uphp . exec_after ) {\n if ( zend_eval_string_ex ( usl -> value , NULL , \"uWSGI php exec after\" , 1 TSRMLS_CC ) == FAILURE ) goto end ;\n }\n end : php_request_shutdown ( NULL ) ;\n return 0 ;\n }"}
{"idx": 6044, "target": 0, "func": "static inline int mpc8_dec_enum ( GetBitContext * gb , int k , int n ) {\n int bits = 0 ;\n const uint32_t * C = mpc8_cnk [ k - 1 ] ;\n int code = mpc8_dec_base ( gb , k , n ) ;\n do {\n n -- ;\n if ( code >= C [ n ] ) {\n bits |= 1 << n ;\n code -= C [ n ] ;\n C -= 32 ;\n k -- ;\n }\n }\n while ( k > 0 ) ;\n return bits ;\n }"}
{"idx": 6045, "target": 0, "func": "static int nb_add_number ( char * * ret_buffer , size_t * ret_buffer_len , uint16_t type , uint64_t value ) {\n char * packet_ptr ;\n size_t packet_len ;\n uint16_t pkg_type ;\n uint16_t pkg_length ;\n uint64_t pkg_value ;\n size_t offset ;\n packet_len = sizeof ( pkg_type ) + sizeof ( pkg_length ) + sizeof ( pkg_value ) ;\n if ( * ret_buffer_len < packet_len ) return ( ENOMEM ) ;\n pkg_type = htons ( type ) ;\n pkg_length = htons ( ( uint16_t ) packet_len ) ;\n pkg_value = htonll ( value ) ;\n packet_ptr = * ret_buffer ;\n offset = 0 ;\n memcpy ( packet_ptr + offset , & pkg_type , sizeof ( pkg_type ) ) ;\n offset += sizeof ( pkg_type ) ;\n memcpy ( packet_ptr + offset , & pkg_length , sizeof ( pkg_length ) ) ;\n offset += sizeof ( pkg_length ) ;\n memcpy ( packet_ptr + offset , & pkg_value , sizeof ( pkg_value ) ) ;\n offset += sizeof ( pkg_value ) ;\n assert ( offset == packet_len ) ;\n * ret_buffer = packet_ptr + packet_len ;\n * ret_buffer_len -= packet_len ;\n return ( 0 ) ;\n }"}
{"idx": 6046, "target": 0, "func": "static void proto_tree_set_system_id ( field_info * fi , const guint8 * value_ptr , gint length ) {\n GByteArray * bytes ;\n DISSECTOR_ASSERT ( value_ptr != NULL || length == 0 ) ;\n bytes = g_byte_array_new ( ) ;\n if ( length > 0 ) {\n g_byte_array_append ( bytes , value_ptr , length ) ;\n }\n fvalue_set_byte_array ( & fi -> value , bytes ) ;\n }"}
{"idx": 6047, "target": 0, "func": "Datum ExecEvalExprSwitchContext ( ExprState * expression , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n Datum retDatum ;\n MemoryContext oldContext ;\n oldContext = MemoryContextSwitchTo ( econtext -> ecxt_per_tuple_memory ) ;\n retDatum = ExecEvalExpr ( expression , econtext , isNull , isDone ) ;\n MemoryContextSwitchTo ( oldContext ) ;\n return retDatum ;\n }"}
{"idx": 6048, "target": 0, "func": "static int SpoolssEnumPrinterKey_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n char * key_name ;\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , NULL , NULL , FALSE , FALSE ) ;\n offset = dissect_ndr_cvstring ( tvb , offset , pinfo , tree , di , drep , sizeof ( guint16 ) , hf_printerdata_key , TRUE , & key_name ) ;\n if ( ! key_name [ 0 ] ) key_name = \"\\\"\\\"\" ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , key_name ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_needed , NULL ) ;\n return offset ;\n }"}
{"idx": 6049, "target": 0, "func": "void do_close_connection ( struct st_command * command ) {\n DBUG_ENTER ( \"do_close_connection\" ) ;\n struct st_connection * con ;\n static DYNAMIC_STRING ds_connection ;\n const struct command_arg close_connection_args [ ] = {\n {\n \"connection_name\" , ARG_STRING , TRUE , & ds_connection , \"Name of the connection to close.\" }\n }\n ;\n check_command_args ( command , command -> first_argument , close_connection_args , sizeof ( close_connection_args ) / sizeof ( struct command_arg ) , ' ' ) ;\n DBUG_PRINT ( \"enter\" , ( \"connection name: '%s'\" , ds_connection . str ) ) ;\n if ( ! ( con = find_connection_by_name ( ds_connection . str ) ) ) die ( \"connection '%s' not found in connection pool\" , ds_connection . str ) ;\n DBUG_PRINT ( \"info\" , ( \"Closing connection %s\" , con -> name ) ) ;\n # ifndef EMBEDDED_LIBRARY if ( command -> type == Q_DIRTY_CLOSE ) {\n if ( con -> mysql -> net . vio ) {\n vio_delete ( con -> mysql -> net . vio ) ;\n con -> mysql -> net . vio = 0 ;\n }\n }\n # else emb_close_connection ( con ) ;\n # endif if ( con -> stmt ) mysql_stmt_close ( con -> stmt ) ;\n con -> stmt = 0 ;\n mysql_close ( con -> mysql ) ;\n con -> mysql = 0 ;\n if ( con -> util_mysql ) mysql_close ( con -> util_mysql ) ;\n con -> util_mysql = 0 ;\n con -> pending = FALSE ;\n my_free ( con -> name ) ;\n if ( ! ( con -> name = my_strdup ( \"-closed_connection-\" , MYF ( MY_WME ) ) ) ) die ( \"Out of memory\" ) ;\n if ( con == cur_con ) {\n var_set_int ( \"$mysql_get_server_version\" , 0xFFFFFFFF ) ;\n var_set_string ( \"$CURRENT_CONNECTION\" , con -> name ) ;\n }\n if ( ! disable_connect_log && ! disable_query_log ) {\n DYNAMIC_STRING * ds = & ds_res ;\n dynstr_append_mem ( ds , \"disconnect \" , 11 ) ;\n replace_dynstr_append ( ds , ds_connection . str ) ;\n dynstr_append_mem ( ds , \";\n\\n\" , 2 ) ;\n }\n dynstr_free ( & ds_connection ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 6050, "target": 0, "func": "void pdf_tos_move_after_char ( fz_context * ctx , pdf_text_object_state * tos ) {\n fz_union_rect ( & tos -> text_bbox , & tos -> char_bbox ) ;\n fz_pre_translate ( & tos -> tm , tos -> char_tx , tos -> char_ty ) ;\n }"}
{"idx": 6051, "target": 0, "func": "static void test_select_direct ( ) {\n int rc ;\n MYSQL_RES * result ;\n myheader ( \"test_select_direct\" ) ;\n rc = mysql_autocommit ( mysql , TRUE ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_select\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_select(id int, id1 tinyint, \" \" id2 float, \" \" id3 double, \" \" name varchar(50))\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_select VALUES(10, 5, 2.3, 4.5, 'venu')\" ) ;\n myquery ( rc ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"SELECT * FROM test_select\" ) ;\n myquery ( rc ) ;\n result = mysql_store_result ( mysql ) ;\n mytest ( result ) ;\n ( void ) my_process_result_set ( result ) ;\n mysql_free_result ( result ) ;\n }"}
{"idx": 6052, "target": 0, "func": "const EVP_CIPHER * EVP_chacha20 ( void ) {\n return ( & chacha20 ) ;\n }"}
{"idx": 6053, "target": 0, "func": "TEST_F ( WebFrameTest , NoLoadingCompletionCallbacksInDetach ) {\n class LoadingObserverFrameClient : public FrameTestHelpers : : TestWebFrameClient {\n public : LoadingObserverFrameClient ( ) = default ;\n ~ LoadingObserverFrameClient ( ) override = default ;\n void FrameDetached ( DetachType type ) override {\n did_call_frame_detached_ = true ;\n TestWebFrameClient : : FrameDetached ( type ) ;\n }\n void DidStopLoading ( ) override {\n did_call_did_stop_loading_ = true ;\n TestWebFrameClient : : DidStopLoading ( ) ;\n }\n void DidFailProvisionalLoad ( const WebURLError & , WebHistoryCommitType ) override {\n EXPECT_TRUE ( false ) << \"The load should not have failed.\" ;\n }\n void DidFinishDocumentLoad ( ) override {\n did_call_did_finish_document_load_ = true ;\n }\n void DidHandleOnloadEvents ( ) override {\n did_call_did_handle_onload_events_ = true ;\n }\n void DidFinishLoad ( ) override {\n EXPECT_TRUE ( false ) << \"didFinishLoad() should not have been called.\" ;\n }\n void DispatchLoad ( ) override {\n EXPECT_TRUE ( false ) << \"dispatchLoad() should not have been called.\" ;\n }\n bool DidCallFrameDetached ( ) const {\n return did_call_frame_detached_ ;\n }\n bool DidCallDidStopLoading ( ) const {\n return did_call_did_stop_loading_ ;\n }\n bool DidCallDidFinishDocumentLoad ( ) const {\n return did_call_did_finish_document_load_ ;\n }\n bool DidCallDidHandleOnloadEvents ( ) const {\n return did_call_did_handle_onload_events_ ;\n }\n private : bool did_call_frame_detached_ = false ;\n bool did_call_did_stop_loading_ = false ;\n bool did_call_did_finish_document_load_ = false ;\n bool did_call_did_handle_onload_events_ = false ;\n }\n ;\n class MainFrameClient : public FrameTestHelpers : : TestWebFrameClient {\n public : MainFrameClient ( ) = default ;\n ~ MainFrameClient ( ) override = default ;\n WebLocalFrame * CreateChildFrame ( WebLocalFrame * parent , WebTreeScopeType scope , const WebString & name , const WebString & fallback_name , WebSandboxFlags sandbox_flags , const ParsedFeaturePolicy & container_policy , const WebFrameOwnerProperties & ) override {\n return CreateLocalChild ( * parent , scope , & child_client_ ) ;\n }\n LoadingObserverFrameClient & ChildClient ( ) {\n return child_client_ ;\n }\n private : LoadingObserverFrameClient child_client_ ;\n }\n ;\n RegisterMockedHttpURLLoad ( \"single_iframe.html\" ) ;\n URLTestHelpers : : RegisterMockedURLLoad ( ToKURL ( base_url_ + \"visible_iframe.html\" ) , test : : CoreTestDataPath ( \"frame_with_frame.html\" ) ) ;\n RegisterMockedHttpURLLoad ( \"parent_detaching_frame.html\" ) ;\n FrameTestHelpers : : WebViewHelper web_view_helper ;\n MainFrameClient main_frame_client ;\n web_view_helper . InitializeAndLoad ( base_url_ + \"single_iframe.html\" , & main_frame_client ) ;\n EXPECT_TRUE ( main_frame_client . ChildClient ( ) . DidCallFrameDetached ( ) ) ;\n EXPECT_TRUE ( main_frame_client . ChildClient ( ) . DidCallDidStopLoading ( ) ) ;\n EXPECT_TRUE ( main_frame_client . ChildClient ( ) . DidCallDidFinishDocumentLoad ( ) ) ;\n EXPECT_TRUE ( main_frame_client . ChildClient ( ) . DidCallDidHandleOnloadEvents ( ) ) ;\n web_view_helper . Reset ( ) ;\n }"}
{"idx": 6054, "target": 1, "func": "mgs_srvconf_rec * mgs_find_sni_server ( gnutls_session_t session ) {\n int rv ;\n unsigned int sni_type ;\n size_t data_len = MAX_HOST_LEN ;\n char sni_name [ MAX_HOST_LEN ] ;\n mgs_handle_t * ctxt ;\n # if USING_2_1_RECENT vhost_cb_rec cbx ;\n # else server_rec * s ;\n mgs_srvconf_rec * tsc ;\n # endif if ( session == NULL ) return NULL ;\n _gnutls_log ( debug_log_fp , \"%s: %d\\n\" , __func__ , __LINE__ ) ;\n ctxt = gnutls_transport_get_ptr ( session ) ;\n rv = gnutls_server_name_get ( ctxt -> session , sni_name , & data_len , & sni_type , 0 ) ;\n if ( rv != 0 ) {\n return NULL ;\n }\n if ( sni_type != GNUTLS_NAME_DNS ) {\n ap_log_error ( APLOG_MARK , APLOG_CRIT , 0 , ctxt -> c -> base_server , \"GnuTLS: Unknown type '%d' for SNI: \" \"'%s'\" , sni_type , sni_name ) ;\n return NULL ;\n }\n # if USING_2_1_RECENT cbx . ctxt = ctxt ;\n cbx . sc = NULL ;\n cbx . sni_name = sni_name ;\n rv = ap_vhost_iterate_given_conn ( ctxt -> c , vhost_cb , & cbx ) ;\n if ( rv == 1 ) {\n return cbx . sc ;\n }\n # else for ( s = ap_server_conf ;\n s ;\n s = s -> next ) {\n tsc = ( mgs_srvconf_rec * ) ap_get_module_config ( s -> module_config , & gnutls_module ) ;\n if ( tsc -> enabled != GNUTLS_ENABLED_TRUE ) {\n continue ;\n }\n if ( check_server_aliases ( x , s , tsc ) ) {\n return tsc ;\n }\n # endif return NULL ;\n }\n static void create_gnutls_handle ( conn_rec * c ) {\n mgs_srvconf_rec * sc = ( mgs_srvconf_rec * ) ap_get_module_config ( c -> base_server -> module_config , & gnutls_module ) ;\n _gnutls_log ( debug_log_fp , \"%s: %d\\n\" , __func__ , __LINE__ ) ;\n mgs_handle_t * ctxt = ( mgs_handle_t * ) ap_get_module_config ( c -> conn_config , & gnutls_module ) ;\n if ( ctxt == NULL ) {\n ap_log_cerror ( APLOG_MARK , APLOG_DEBUG , 0 , c , \"%s: allocating connection memory\" , __func__ ) ;\n ctxt = apr_pcalloc ( c -> pool , sizeof ( * ctxt ) ) ;\n ap_set_module_config ( c -> conn_config , & gnutls_module , ctxt ) ;\n }\n ctxt -> enabled = GNUTLS_ENABLED_TRUE ;\n ctxt -> c = c ;\n ctxt -> sc = sc ;\n ctxt -> status = 0 ;\n ctxt -> input_rc = APR_SUCCESS ;\n ctxt -> input_bb = apr_brigade_create ( c -> pool , c -> bucket_alloc ) ;\n ctxt -> input_cbuf . length = 0 ;\n ctxt -> output_rc = APR_SUCCESS ;\n ctxt -> output_bb = apr_brigade_create ( c -> pool , c -> bucket_alloc ) ;\n ctxt -> output_blen = 0 ;\n ctxt -> output_length = 0 ;\n int err = gnutls_init ( & ctxt -> session , GNUTLS_SERVER ) ;\n if ( err != GNUTLS_E_SUCCESS ) ap_log_cerror ( APLOG_MARK , APLOG_ERR , err , c , \"gnutls_init failed!\" ) ;\n if ( session_ticket_key . data != NULL && ctxt -> sc -> tickets != 0 ) {\n err = gnutls_session_ticket_enable_server ( ctxt -> session , & session_ticket_key ) ;\n if ( err != GNUTLS_E_SUCCESS ) ap_log_cerror ( APLOG_MARK , APLOG_ERR , err , c , \"gnutls_session_ticket_enable_server failed!\" ) ;\n }\n err = gnutls_priority_set_direct ( ctxt -> session , \"NORMAL\" , NULL ) ;\n if ( err != GNUTLS_E_SUCCESS ) ap_log_cerror ( APLOG_MARK , APLOG_ERR , err , c , \"gnutls_priority_set_direct failed!\" ) ;\n gnutls_handshake_set_post_client_hello_function ( ctxt -> session , mgs_select_virtual_server_cb ) ;\n mgs_cache_session_init ( ctxt ) ;\n gnutls_transport_set_pull_function ( ctxt -> session , mgs_transport_read ) ;\n gnutls_transport_set_push_function ( ctxt -> session , mgs_transport_write ) ;\n gnutls_transport_set_ptr ( ctxt -> session , ctxt ) ;\n ctxt -> input_filter = ap_add_input_filter ( GNUTLS_INPUT_FILTER_NAME , ctxt , NULL , c ) ;\n ctxt -> output_filter = ap_add_output_filter ( GNUTLS_OUTPUT_FILTER_NAME , ctxt , NULL , c ) ;\n }\n int mgs_hook_pre_connection ( conn_rec * c , void * csd __attribute__ ( ( unused ) ) ) {\n _gnutls_log ( debug_log_fp , \"%s: %d\\n\" , __func__ , __LINE__ ) ;\n mgs_srvconf_rec * sc = ( mgs_srvconf_rec * ) ap_get_module_config ( c -> base_server -> module_config , & gnutls_module ) ;\n mgs_handle_t * ctxt = ( mgs_handle_t * ) ap_get_module_config ( c -> conn_config , & gnutls_module ) ;\n if ( ( sc && ( ! sc -> enabled || sc -> proxy_enabled == GNUTLS_ENABLED_TRUE ) ) || ( ctxt && ctxt -> enabled == GNUTLS_ENABLED_FALSE ) ) {\n ap_log_cerror ( APLOG_MARK , APLOG_DEBUG , 0 , c , \"%s declined connection\" , __func__ ) ;\n return DECLINED ;\n }\n create_gnutls_handle ( c ) ;\n return OK ;\n }\n int mgs_hook_fixups ( request_rec * r ) {\n unsigned char sbuf [ GNUTLS_MAX_SESSION_ID ] ;\n char buf [ AP_IOBUFSIZE ] ;\n const char * tmp ;\n size_t len ;\n mgs_handle_t * ctxt ;\n int rv = OK ;\n if ( r == NULL ) return DECLINED ;\n _gnutls_log ( debug_log_fp , \"%s: %d\\n\" , __func__ , __LINE__ ) ;\n apr_table_t * env = r -> subprocess_env ;\n ctxt = ap_get_module_config ( r -> connection -> conn_config , & gnutls_module ) ;\n if ( ! ctxt || ctxt -> enabled != GNUTLS_ENABLED_TRUE || ctxt -> session == NULL ) {\n ap_log_rerror ( APLOG_MARK , APLOG_DEBUG , 0 , r , \"request declined in %s\" , __func__ ) ;\n return DECLINED ;\n }\n apr_table_setn ( env , \"HTTPS\" , \"on\" ) ;\n apr_table_setn ( env , \"SSL_VERSION_LIBRARY\" , \"GnuTLS/\" LIBGNUTLS_VERSION ) ;\n apr_table_setn ( env , \"SSL_VERSION_INTERFACE\" , \"mod_gnutls/\" MOD_GNUTLS_VERSION ) ;\n apr_table_setn ( env , \"SSL_PROTOCOL\" , gnutls_protocol_get_name ( gnutls_protocol_get_version ( ctxt -> session ) ) ) ;\n apr_table_setn ( env , \"SSL_CIPHER\" , gnutls_cipher_suite_get_name ( gnutls_kx_get ( ctxt -> session ) , gnutls_cipher_get ( ctxt -> session ) , gnutls_mac_get ( ctxt -> session ) ) ) ;\n apr_table_setn ( env , \"SSL_COMPRESS_METHOD\" , gnutls_compression_get_name ( gnutls_compression_get ( ctxt -> session ) ) ) ;\n # ifdef ENABLE_SRP if ( ctxt -> sc -> srp_tpasswd_conf_file != NULL && ctxt -> sc -> srp_tpasswd_file != NULL ) {\n tmp = gnutls_srp_server_get_username ( ctxt -> session ) ;\n apr_table_setn ( env , \"SSL_SRP_USER\" , ( tmp != NULL ) ? tmp : \"\" ) ;\n }\n else {\n apr_table_unset ( env , \"SSL_SRP_USER\" ) ;\n }\n # endif if ( apr_table_get ( env , \"SSL_CLIENT_VERIFY\" ) == NULL ) apr_table_setn ( env , \"SSL_CLIENT_VERIFY\" , \"NONE\" ) ;\n unsigned int key_size = 8 * gnutls_cipher_get_key_size ( gnutls_cipher_get ( ctxt -> session ) ) ;\n tmp = apr_psprintf ( r -> pool , \"%u\" , key_size ) ;\n apr_table_setn ( env , \"SSL_CIPHER_USEKEYSIZE\" , tmp ) ;\n apr_table_setn ( env , \"SSL_CIPHER_ALGKEYSIZE\" , tmp ) ;\n apr_table_setn ( env , \"SSL_CIPHER_EXPORT\" , ( key_size <= 40 ) ? \"true\" : \"false\" ) ;\n int dhsize = gnutls_dh_get_prime_bits ( ctxt -> session ) ;\n if ( dhsize > 0 ) {\n tmp = apr_psprintf ( r -> pool , \"%d\" , dhsize ) ;\n apr_table_setn ( env , \"SSL_DH_PRIME_BITS\" , tmp ) ;\n }\n len = sizeof ( sbuf ) ;\n gnutls_session_get_id ( ctxt -> session , sbuf , & len ) ;\n tmp = mgs_session_id2sz ( sbuf , len , buf , sizeof ( buf ) ) ;\n apr_table_setn ( env , \"SSL_SESSION_ID\" , apr_pstrdup ( r -> pool , tmp ) ) ;\n if ( gnutls_certificate_type_get ( ctxt -> session ) == GNUTLS_CRT_X509 ) {\n mgs_add_common_cert_vars ( r , ctxt -> sc -> certs_x509_chain [ 0 ] , 0 , ctxt -> sc -> export_certificates_size ) ;\n }\n else if ( gnutls_certificate_type_get ( ctxt -> session ) == GNUTLS_CRT_OPENPGP ) {\n mgs_add_common_pgpcert_vars ( r , ctxt -> sc -> cert_pgp , 0 , ctxt -> sc -> export_certificates_size ) ;\n }\n return rv ;\n }\n int mgs_hook_authz ( request_rec * r ) {\n int rv ;\n mgs_handle_t * ctxt ;\n mgs_dirconf_rec * dc ;\n if ( r == NULL ) return DECLINED ;\n dc = ap_get_module_config ( r -> per_dir_config , & gnutls_module ) ;\n _gnutls_log ( debug_log_fp , \"%s: %d\\n\" , __func__ , __LINE__ ) ;\n ctxt = ap_get_module_config ( r -> connection -> conn_config , & gnutls_module ) ;\n if ( ! ctxt || ctxt -> session == NULL ) {\n return DECLINED ;\n }\n if ( dc -> client_verify_mode == GNUTLS_CERT_IGNORE ) {\n ap_log_rerror ( APLOG_MARK , APLOG_DEBUG , 0 , r , \"GnuTLS: Directory set to Ignore Client Certificate!\" ) ;\n }\n else {\n if ( ctxt -> sc -> client_verify_mode < dc -> client_verify_mode ) {\n ap_log_rerror ( APLOG_MARK , APLOG_DEBUG , 0 , r , \"GnuTLS: Attempting to rehandshake with peer. %d %d\" , ctxt -> sc -> client_verify_mode , dc -> client_verify_mode ) ;\n rv = mgs_cert_verify ( r , ctxt ) ;\n if ( rv != DECLINED && rv != HTTP_FORBIDDEN ) return rv ;\n gnutls_certificate_server_set_request ( ctxt -> session , dc -> client_verify_mode ) ;\n if ( mgs_rehandshake ( ctxt ) != 0 ) {\n return HTTP_FORBIDDEN ;\n }\n }\n else if ( ctxt -> sc -> client_verify_mode == GNUTLS_CERT_IGNORE ) {\n # if MOD_GNUTLS_DEBUG ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Peer is set to IGNORE\" ) ;\n # endif return DECLINED ;\n }\n rv = mgs_cert_verify ( r , ctxt ) ;\n if ( rv != DECLINED && ( rv != HTTP_FORBIDDEN || dc -> client_verify_mode == GNUTLS_CERT_REQUIRE ) ) {\n return rv ;\n }\n }\n return DECLINED ;\n }\n # define MGS_SIDE ( suffix ) ( ( side == 0 ) ? \"SSL_SERVER\" suffix : \"SSL_CLIENT\" suffix ) static void mgs_add_common_cert_vars ( request_rec * r , gnutls_x509_crt_t cert , int side , size_t export_cert_size ) {\n unsigned char sbuf [ 64 ] ;\n char buf [ AP_IOBUFSIZE ] ;\n const char * tmp ;\n char * tmp2 ;\n size_t len ;\n int ret , i ;\n if ( r == NULL ) return ;\n apr_table_t * env = r -> subprocess_env ;\n _gnutls_log ( debug_log_fp , \"%s: %d\\n\" , __func__ , __LINE__ ) ;\n if ( export_cert_size > 0 ) {\n len = 0 ;\n ret = gnutls_x509_crt_export ( cert , GNUTLS_X509_FMT_PEM , NULL , & len ) ;\n if ( ret == GNUTLS_E_SHORT_MEMORY_BUFFER ) {\n if ( len >= export_cert_size ) {\n apr_table_setn ( env , MGS_SIDE ( \"_CERT\" ) , \"GNUTLS_CERTIFICATE_SIZE_LIMIT_EXCEEDED\" ) ;\n ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Failed to export too-large X.509 certificate to environment\" ) ;\n }\n else {\n char * cert_buf = apr_palloc ( r -> pool , len + 1 ) ;\n if ( cert_buf != NULL && gnutls_x509_crt_export ( cert , GNUTLS_X509_FMT_PEM , cert_buf , & len ) >= 0 ) {\n cert_buf [ len ] = 0 ;\n apr_table_setn ( env , MGS_SIDE ( \"_CERT\" ) , cert_buf ) ;\n }\n else {\n ap_log_rerror ( APLOG_MARK , APLOG_WARNING , 0 , r , \"GnuTLS: failed to export X.509 certificate\" ) ;\n }\n }\n }\n else {\n ap_log_rerror ( APLOG_MARK , APLOG_WARNING , 0 , r , \"GnuTLS: dazed and confused about X.509 certificate size\" ) ;\n }\n }\n len = sizeof ( buf ) ;\n gnutls_x509_crt_get_dn ( cert , buf , & len ) ;\n apr_table_setn ( env , MGS_SIDE ( \"_S_DN\" ) , apr_pstrmemdup ( r -> pool , buf , len ) ) ;\n len = sizeof ( buf ) ;\n gnutls_x509_crt_get_issuer_dn ( cert , buf , & len ) ;\n apr_table_setn ( env , MGS_SIDE ( \"_I_DN\" ) , apr_pstrmemdup ( r -> pool , buf , len ) ) ;\n len = sizeof ( sbuf ) ;\n gnutls_x509_crt_get_serial ( cert , sbuf , & len ) ;\n tmp = mgs_session_id2sz ( sbuf , len , buf , sizeof ( buf ) ) ;\n apr_table_setn ( env , MGS_SIDE ( \"_M_SERIAL\" ) , apr_pstrdup ( r -> pool , tmp ) ) ;\n ret = gnutls_x509_crt_get_version ( cert ) ;\n if ( ret > 0 ) apr_table_setn ( env , MGS_SIDE ( \"_M_VERSION\" ) , apr_psprintf ( r -> pool , \"%u\" , ret ) ) ;\n apr_table_setn ( env , MGS_SIDE ( \"_CERT_TYPE\" ) , \"X.509\" ) ;\n tmp = mgs_time2sz ( gnutls_x509_crt_get_expiration_time ( cert ) , buf , sizeof ( buf ) ) ;\n apr_table_setn ( env , MGS_SIDE ( \"_V_END\" ) , apr_pstrdup ( r -> pool , tmp ) ) ;\n tmp = mgs_time2sz ( gnutls_x509_crt_get_activation_time ( cert ) , buf , sizeof ( buf ) ) ;\n apr_table_setn ( env , MGS_SIDE ( \"_V_START\" ) , apr_pstrdup ( r -> pool , tmp ) ) ;\n ret = gnutls_x509_crt_get_signature_algorithm ( cert ) ;\n if ( ret >= 0 ) {\n apr_table_setn ( env , MGS_SIDE ( \"_A_SIG\" ) , gnutls_sign_algorithm_get_name ( ret ) ) ;\n }\n ret = gnutls_x509_crt_get_pk_algorithm ( cert , NULL ) ;\n if ( ret >= 0 ) {\n apr_table_setn ( env , MGS_SIDE ( \"_A_KEY\" ) , gnutls_pk_algorithm_get_name ( ret ) ) ;\n }\n for ( i = 0 ;\n ! ( ret < 0 ) ;\n i ++ ) {\n const char * san , * sanlabel ;\n len = 0 ;\n ret = gnutls_x509_crt_get_subject_alt_name ( cert , i , NULL , & len , NULL ) ;\n if ( ret == GNUTLS_E_SHORT_MEMORY_BUFFER && len > 1 ) {\n tmp2 = apr_palloc ( r -> pool , len + 1 ) ;\n ret = gnutls_x509_crt_get_subject_alt_name ( cert , i , tmp2 , & len , NULL ) ;\n tmp2 [ len ] = 0 ;\n sanlabel = apr_psprintf ( r -> pool , \"%s%u\" , MGS_SIDE ( \"_S_AN\" ) , i ) ;\n if ( ret == GNUTLS_SAN_DNSNAME ) {\n san = apr_psprintf ( r -> pool , \"DNSNAME:%s\" , tmp2 ) ;\n }\n else if ( ret == GNUTLS_SAN_RFC822NAME ) {\n san = apr_psprintf ( r -> pool , \"RFC822NAME:%s\" , tmp2 ) ;\n }\n else if ( ret == GNUTLS_SAN_URI ) {\n san = apr_psprintf ( r -> pool , \"URI:%s\" , tmp2 ) ;\n }\n else {\n san = \"UNSUPPORTED\" ;\n }\n apr_table_setn ( env , sanlabel , san ) ;\n }\n }\n }\n static void mgs_add_common_pgpcert_vars ( request_rec * r , gnutls_openpgp_crt_t cert , int side , size_t export_cert_size ) {\n unsigned char sbuf [ 64 ] ;\n char buf [ AP_IOBUFSIZE ] ;\n const char * tmp ;\n size_t len ;\n int ret ;\n if ( r == NULL ) return ;\n _gnutls_log ( debug_log_fp , \"%s: %d\\n\" , __func__ , __LINE__ ) ;\n apr_table_t * env = r -> subprocess_env ;\n if ( export_cert_size > 0 ) {\n len = 0 ;\n ret = gnutls_openpgp_crt_export ( cert , GNUTLS_OPENPGP_FMT_BASE64 , NULL , & len ) ;\n if ( ret == GNUTLS_E_SHORT_MEMORY_BUFFER ) {\n if ( len >= export_cert_size ) {\n apr_table_setn ( env , MGS_SIDE ( \"_CERT\" ) , \"GNUTLS_CERTIFICATE_SIZE_LIMIT_EXCEEDED\" ) ;\n ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Failed to export too-large OpenPGP certificate to environment\" ) ;\n }\n else {\n char * cert_buf = apr_palloc ( r -> pool , len + 1 ) ;\n if ( cert_buf != NULL && gnutls_openpgp_crt_export ( cert , GNUTLS_OPENPGP_FMT_BASE64 , cert_buf , & len ) >= 0 ) {\n cert_buf [ len ] = 0 ;\n apr_table_setn ( env , MGS_SIDE ( \"_CERT\" ) , cert_buf ) ;\n }\n else {\n ap_log_rerror ( APLOG_MARK , APLOG_WARNING , 0 , r , \"GnuTLS: failed to export OpenPGP certificate\" ) ;\n }\n }\n }\n else {\n ap_log_rerror ( APLOG_MARK , APLOG_WARNING , 0 , r , \"GnuTLS: dazed and confused about OpenPGP certificate size\" ) ;\n }\n }\n len = sizeof ( buf ) ;\n gnutls_openpgp_crt_get_name ( cert , 0 , buf , & len ) ;\n apr_table_setn ( env , MGS_SIDE ( \"_NAME\" ) , apr_pstrmemdup ( r -> pool , buf , len ) ) ;\n len = sizeof ( sbuf ) ;\n gnutls_openpgp_crt_get_fingerprint ( cert , sbuf , & len ) ;\n tmp = mgs_session_id2sz ( sbuf , len , buf , sizeof ( buf ) ) ;\n apr_table_setn ( env , MGS_SIDE ( \"_FINGERPRINT\" ) , apr_pstrdup ( r -> pool , tmp ) ) ;\n ret = gnutls_openpgp_crt_get_version ( cert ) ;\n if ( ret > 0 ) apr_table_setn ( env , MGS_SIDE ( \"_M_VERSION\" ) , apr_psprintf ( r -> pool , \"%u\" , ret ) ) ;\n apr_table_setn ( env , MGS_SIDE ( \"_CERT_TYPE\" ) , \"OPENPGP\" ) ;\n tmp = mgs_time2sz ( gnutls_openpgp_crt_get_expiration_time ( cert ) , buf , sizeof ( buf ) ) ;\n apr_table_setn ( env , MGS_SIDE ( \"_V_END\" ) , apr_pstrdup ( r -> pool , tmp ) ) ;\n tmp = mgs_time2sz ( gnutls_openpgp_crt_get_creation_time ( cert ) , buf , sizeof ( buf ) ) ;\n apr_table_setn ( env , MGS_SIDE ( \"_V_START\" ) , apr_pstrdup ( r -> pool , tmp ) ) ;\n ret = gnutls_openpgp_crt_get_pk_algorithm ( cert , NULL ) ;\n if ( ret >= 0 ) {\n apr_table_setn ( env , MGS_SIDE ( \"_A_KEY\" ) , gnutls_pk_algorithm_get_name ( ret ) ) ;\n }\n }\n static int mgs_cert_verify ( request_rec * r , mgs_handle_t * ctxt ) {\n const gnutls_datum_t * cert_list ;\n unsigned int cert_list_size , status ;\n int rv = GNUTLS_E_NO_CERTIFICATE_FOUND , ret ;\n unsigned int ch_size = 0 ;\n union {\n gnutls_x509_crt_t x509 [ MAX_CHAIN_SIZE ] ;\n gnutls_openpgp_crt_t pgp ;\n }\n cert ;\n apr_time_t expiration_time , cur_time ;\n if ( r == NULL || ctxt == NULL || ctxt -> session == NULL ) return HTTP_FORBIDDEN ;\n _gnutls_log ( debug_log_fp , \"%s: %d\\n\" , __func__ , __LINE__ ) ;\n cert_list = gnutls_certificate_get_peers ( ctxt -> session , & cert_list_size ) ;\n if ( cert_list == NULL || cert_list_size == 0 ) {\n if ( ctxt -> sc -> client_verify_mode == GNUTLS_CERT_REQUEST ) return OK ;\n ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Failed to Verify Peer: \" \"Client did not submit a certificate\" ) ;\n return HTTP_FORBIDDEN ;\n }\n if ( gnutls_certificate_type_get ( ctxt -> session ) == GNUTLS_CRT_X509 ) {\n ap_log_rerror ( APLOG_MARK , APLOG_DEBUG , 0 , r , \"GnuTLS: A Chain of %d certificate(s) was provided for validation\" , cert_list_size ) ;\n for ( ch_size = 0 ;\n ch_size < cert_list_size ;\n ch_size ++ ) {\n gnutls_x509_crt_init ( & cert . x509 [ ch_size ] ) ;\n rv = gnutls_x509_crt_import ( cert . x509 [ ch_size ] , & cert_list [ ch_size ] , GNUTLS_X509_FMT_DER ) ;\n if ( rv != GNUTLS_E_SUCCESS ) {\n if ( ch_size < 1 ) {\n ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Failed to Verify Peer: \" \"Failed to import peer certificates.\" ) ;\n ret = HTTP_FORBIDDEN ;\n goto exit ;\n }\n ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Failed to import some peer certificates. Using %d certificates\" , ch_size ) ;\n rv = GNUTLS_E_SUCCESS ;\n break ;\n }\n }\n }\n else if ( gnutls_certificate_type_get ( ctxt -> session ) == GNUTLS_CRT_OPENPGP ) {\n if ( cert_list_size > 1 ) {\n ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Failed to Verify Peer: \" \"Chained Client Certificates are not supported.\" ) ;\n return HTTP_FORBIDDEN ;\n }\n gnutls_openpgp_crt_init ( & cert . pgp ) ;\n rv = gnutls_openpgp_crt_import ( cert . pgp , & cert_list [ 0 ] , GNUTLS_OPENPGP_FMT_RAW ) ;\n }\n else return HTTP_FORBIDDEN ;\n if ( rv < 0 ) {\n ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Failed to Verify Peer: \" \"Failed to import peer certificates.\" ) ;\n ret = HTTP_FORBIDDEN ;\n goto exit ;\n }\n if ( gnutls_certificate_type_get ( ctxt -> session ) == GNUTLS_CRT_X509 ) {\n apr_time_ansi_put ( & expiration_time , gnutls_x509_crt_get_expiration_time ( cert . x509 [ 0 ] ) ) ;\n ap_log_rerror ( APLOG_MARK , APLOG_DEBUG , 0 , r , \"GnuTLS: Verifying list of %d certificate(s) via method '%s'\" , ch_size , mgs_readable_cvm ( ctxt -> sc -> client_verify_method ) ) ;\n switch ( ctxt -> sc -> client_verify_method ) {\n case mgs_cvm_cartel : rv = gnutls_x509_crt_list_verify ( cert . x509 , ch_size , ctxt -> sc -> ca_list , ctxt -> sc -> ca_list_size , NULL , 0 , 0 , & status ) ;\n break ;\n # ifdef ENABLE_MSVA case mgs_cvm_msva : {\n struct msv_response * resp = NULL ;\n struct msv_query q = {\n . context = \"https\" , . peertype = \"client\" , . pkctype = \"x509pem\" }\n ;\n msv_ctxt_t ctx = msv_ctxt_init ( NULL ) ;\n char cert_pem_buf [ 10 * 1024 ] ;\n size_t len = sizeof ( cert_pem_buf ) ;\n rv = 0 ;\n if ( gnutls_x509_crt_export ( cert . x509 [ 0 ] , GNUTLS_X509_FMT_PEM , cert_pem_buf , & len ) >= 0 ) {\n q . peername = mgs_x509_construct_uid ( r , cert . x509 [ 0 ] ) ;\n q . pkcdata = cert_pem_buf ;\n rv = msv_query_agent ( ctx , q , & resp ) ;\n if ( rv == LIBMSV_ERROR_SUCCESS ) {\n status = 0 ;\n }\n else if ( rv == LIBMSV_ERROR_INVALID ) {\n ap_log_rerror ( APLOG_MARK , APLOG_DEBUG , 0 , r , \"GnuTLS: Monkeysphere validation failed: (message: %s)\" , resp -> message ) ;\n status = GNUTLS_CERT_INVALID ;\n }\n else {\n ap_log_rerror ( APLOG_MARK , APLOG_DEBUG , 0 , r , \"GnuTLS: Error communicating with the Monkeysphere Validation Agent: (%d) %s\" , rv , msv_strerror ( ctx , rv ) ) ;\n status = GNUTLS_CERT_INVALID ;\n rv = - 1 ;\n }\n }\n else {\n ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Could not convert the client certificate to PEM format\" ) ;\n status = GNUTLS_CERT_INVALID ;\n rv = GNUTLS_E_ASN1_ELEMENT_NOT_FOUND ;\n }\n msv_response_destroy ( resp ) ;\n msv_ctxt_destroy ( ctx ) ;\n }\n break ;\n # endif default : ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Failed to Verify X.509 Peer: method '%s' is not supported\" , mgs_readable_cvm ( ctxt -> sc -> client_verify_method ) ) ;\n }\n }\n else {\n apr_time_ansi_put ( & expiration_time , gnutls_openpgp_crt_get_expiration_time ( cert . pgp ) ) ;\n switch ( ctxt -> sc -> client_verify_method ) {\n case mgs_cvm_cartel : rv = gnutls_openpgp_crt_verify_ring ( cert . pgp , ctxt -> sc -> pgp_list , 0 , & status ) ;\n break ;\n # ifdef ENABLE_MSVA case mgs_cvm_msva : ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: OpenPGP verification via MSVA is not yet implemented\" ) ;\n rv = GNUTLS_E_UNIMPLEMENTED_FEATURE ;\n break ;\n # endif default : ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Failed to Verify OpenPGP Peer: method '%s' is not supported\" , mgs_readable_cvm ( ctxt -> sc -> client_verify_method ) ) ;\n }\n }\n if ( rv < 0 ) {\n ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Failed to Verify Peer certificate: (%d) %s\" , rv , gnutls_strerror ( rv ) ) ;\n if ( rv == GNUTLS_E_NO_CERTIFICATE_FOUND ) ap_log_rerror ( APLOG_MARK , APLOG_EMERG , 0 , r , \"GnuTLS: No certificate was found for verification. Did you set the GnuTLSX509CAFile or GnuTLSPGPKeyringFile directives?\" ) ;\n ret = HTTP_FORBIDDEN ;\n goto exit ;\n }\n cur_time = apr_time_now ( ) ;\n if ( status & GNUTLS_CERT_SIGNER_NOT_FOUND ) {\n ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Could not find Signer for Peer Certificate\" ) ;\n }\n if ( status & GNUTLS_CERT_SIGNER_NOT_CA ) {\n ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Peer's Certificate signer is not a CA\" ) ;\n }\n if ( status & GNUTLS_CERT_INSECURE_ALGORITHM ) {\n ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Peer's Certificate is using insecure algorithms\" ) ;\n }\n if ( status & GNUTLS_CERT_EXPIRED || status & GNUTLS_CERT_NOT_ACTIVATED ) {\n ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Peer's Certificate signer is expired or not yet activated\" ) ;\n }\n if ( status & GNUTLS_CERT_INVALID ) {\n ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Peer Certificate is invalid.\" ) ;\n }\n else if ( status & GNUTLS_CERT_REVOKED ) {\n ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Peer Certificate is revoked.\" ) ;\n }\n if ( gnutls_certificate_type_get ( ctxt -> session ) == GNUTLS_CRT_X509 ) mgs_add_common_cert_vars ( r , cert . x509 [ 0 ] , 1 , ctxt -> sc -> export_certificates_size ) ;\n else if ( gnutls_certificate_type_get ( ctxt -> session ) == GNUTLS_CRT_OPENPGP ) mgs_add_common_pgpcert_vars ( r , cert . pgp , 1 , ctxt -> sc -> export_certificates_size ) ;\n {\n unsigned long remain = ( apr_time_sec ( expiration_time ) - apr_time_sec ( cur_time ) ) / 86400 ;\n apr_table_setn ( r -> subprocess_env , \"SSL_CLIENT_V_REMAIN\" , apr_psprintf ( r -> pool , \"%lu\" , remain ) ) ;\n }\n if ( status == 0 ) {\n apr_table_setn ( r -> subprocess_env , \"SSL_CLIENT_VERIFY\" , \"SUCCESS\" ) ;\n ret = OK ;\n }\n else {\n apr_table_setn ( r -> subprocess_env , \"SSL_CLIENT_VERIFY\" , \"FAILED\" ) ;\n if ( ctxt -> sc -> client_verify_mode == GNUTLS_CERT_REQUEST ) ret = OK ;\n else ret = HTTP_FORBIDDEN ;\n }\n exit : if ( gnutls_certificate_type_get ( ctxt -> session ) == GNUTLS_CRT_X509 ) {\n unsigned int i ;\n for ( i = 0 ;\n i < ch_size ;\n i ++ ) {\n gnutls_x509_crt_deinit ( cert . x509 [ i ] ) ;\n }\n }\n else if ( gnutls_certificate_type_get ( ctxt -> session ) == GNUTLS_CRT_OPENPGP ) gnutls_openpgp_crt_deinit ( cert . pgp ) ;\n return ret ;\n }\n # ifdef ENABLE_MSVA static const char * mgs_x509_leaf_oid_from_dn ( apr_pool_t * pool , const char * oid , gnutls_x509_crt_t cert ) {\n int rv = GNUTLS_E_SUCCESS , i ;\n size_t sz = 0 , lastsz = 0 ;\n char * data = NULL ;\n i = - 1 ;\n while ( rv != GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE ) {\n i ++ ;\n lastsz = sz ;\n sz = 0 ;\n rv = gnutls_x509_crt_get_dn_by_oid ( cert , oid , i , 0 , NULL , & sz ) ;\n }\n if ( i > 0 ) {\n data = apr_palloc ( pool , lastsz ) ;\n sz = lastsz ;\n rv = gnutls_x509_crt_get_dn_by_oid ( cert , oid , i - 1 , 0 , data , & sz ) ;\n if ( rv == GNUTLS_E_SUCCESS ) return data ;\n }\n return NULL ;\n }\n static const char * mgs_x509_first_type_from_san ( apr_pool_t * pool , gnutls_x509_subject_alt_name_t target , gnutls_x509_crt_t cert ) {\n int rv = GNUTLS_E_SUCCESS ;\n size_t sz ;\n char * data = NULL ;\n unsigned int i ;\n gnutls_x509_subject_alt_name_t thistype ;\n i = 0 ;\n while ( rv != GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE ) {\n sz = 0 ;\n rv = gnutls_x509_crt_get_subject_alt_name2 ( cert , i , NULL , & sz , & thistype , NULL ) ;\n if ( rv == GNUTLS_E_SHORT_MEMORY_BUFFER && thistype == target ) {\n data = apr_palloc ( pool , sz ) ;\n rv = gnutls_x509_crt_get_subject_alt_name2 ( cert , i , data , & sz , & thistype , NULL ) ;\n if ( rv >= 0 && ( thistype == target ) ) return data ;\n }\n i ++ ;\n }\n return NULL ;\n }\n static const char * mgs_x509_construct_uid ( request_rec * r , gnutls_x509_crt_t cert ) {\n apr_pool_t * pool = r -> pool ;\n const char * name = NULL , * comment = NULL , * email = NULL ;\n const char * ret = NULL ;\n apr_pool_t * sp = NULL ;\n if ( APR_SUCCESS != apr_pool_create ( & sp , pool ) ) return NULL ;\n name = mgs_x509_leaf_oid_from_dn ( sp , GNUTLS_OID_X520_COMMON_NAME , cert ) ;\n comment = mgs_x509_leaf_oid_from_dn ( sp , GNUTLS_OID_X520_PSEUDONYM , cert ) ;\n email = mgs_x509_first_type_from_san ( sp , GNUTLS_SAN_RFC822NAME , cert ) ;\n if ( email == NULL ) email = mgs_x509_leaf_oid_from_dn ( sp , GNUTLS_OID_PKCS9_EMAIL , cert ) ;\n if ( name == NULL && email == NULL ) {\n ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Need either a name or an e-mail address to get a User ID from an X.509 certificate.\" ) ;\n goto end ;\n }\n if ( name ) {\n if ( comment ) {\n if ( email ) {\n ret = apr_psprintf ( pool , \"%s (%s) <%s>\" , name , comment , email ) ;\n }\n else {\n ret = apr_psprintf ( pool , \"%s (%s)\" , name , comment ) ;\n }\n }\n else {\n if ( email ) {\n ret = apr_psprintf ( pool , \"%s <%s>\" , name , email ) ;\n }\n else {\n ret = apr_pstrdup ( pool , name ) ;\n }\n }\n }\n else {\n if ( comment ) {\n ret = apr_psprintf ( pool , \"(%s) <%s>\" , comment , email ) ;\n }\n else {\n ret = apr_psprintf ( pool , \"<%s>\" , email ) ;\n }\n }\n end : apr_pool_destroy ( sp ) ;\n return ret ;\n }\n # endif static int mgs_status_hook ( request_rec * r , int flags __attribute__ ( ( unused ) ) ) {\n mgs_srvconf_rec * sc ;\n if ( r == NULL ) return OK ;\n sc = ( mgs_srvconf_rec * ) ap_get_module_config ( r -> server -> module_config , & gnutls_module ) ;\n _gnutls_log ( debug_log_fp , \"%s: %d\\n\" , __func__ , __LINE__ ) ;\n ap_rputs ( \"<hr>\\n\" , r ) ;\n ap_rputs ( \"<h2>GnuTLS Information:</h2>\\n<dl>\\n\" , r ) ;\n ap_rprintf ( r , \"<dt>GnuTLS version:</dt><dd>%s</dd>\\n\" , gnutls_check_version ( NULL ) ) ;\n ap_rputs ( \"<dt>Built against:</dt><dd>\" GNUTLS_VERSION \"</dd>\\n\" , r ) ;\n ap_rprintf ( r , \"<dt>using TLS:</dt><dd>%s</dd>\\n\" , ( sc -> enabled == GNUTLS_ENABLED_FALSE ? \"no\" : \"yes\" ) ) ;\n if ( sc -> enabled != GNUTLS_ENABLED_FALSE ) {\n mgs_handle_t * ctxt ;\n ctxt = ap_get_module_config ( r -> connection -> conn_config , & gnutls_module ) ;\n if ( ctxt && ctxt -> session != NULL ) {\n # if GNUTLS_VERSION_MAJOR < 3 ap_rprintf ( r , \"<dt>This TLS Session:</dt><dd>%s</dd>\\n\" , gnutls_cipher_suite_get_name ( gnutls_kx_get ( ctxt -> session ) , gnutls_cipher_get ( ctxt -> session ) , gnutls_mac_get ( ctxt -> session ) ) ) ;\n # else char * z = NULL ;\n z = gnutls_session_get_desc ( ctxt -> session ) ;\n if ( z ) {\n ap_rprintf ( r , \"<dt>This TLS Session:</dt><dd>%s</dd>\\n\" , z ) ;\n gnutls_free ( z ) ;\n }\n # endif }\n }\n ap_rputs ( \"</dl>\\n\" , r ) ;\n return OK ;\n }"}
{"idx": 6055, "target": 0, "func": "static void evhttp_connection_retry ( int fd , short what , void * arg ) {\n struct evhttp_connection * evcon = arg ;\n evcon -> state = EVCON_DISCONNECTED ;\n evhttp_connection_connect ( evcon ) ;\n }"}
{"idx": 6056, "target": 0, "func": "static int dissect_pvfs2_setattr_request ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"handle\" , NULL ) ;\n offset = dissect_pvfs_fs_id ( tvb , tree , offset ) ;\n offset += 4 ;\n offset = dissect_pvfs_object_attr ( tvb , tree , offset , pinfo ) ;\n return offset ;\n }"}
{"idx": 6057, "target": 0, "func": "static void test_bug6058 ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND my_bind [ 1 ] ;\n MYSQL_RES * res ;\n MYSQL_ROW row ;\n const char * stmt_text ;\n char buffer [ 30 ] ;\n ulong length ;\n int rc ;\n myheader ( \"test_bug6058\" ) ;\n rc = mysql_query ( mysql , \"SET SQL_MODE=''\" ) ;\n myquery ( rc ) ;\n stmt_text = \"SELECT CAST('0000-00-00' AS DATE)\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n res = mysql_store_result ( mysql ) ;\n row = mysql_fetch_row ( res ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 0 ] . buffer = & buffer ;\n my_bind [ 0 ] . buffer_length = sizeof ( buffer ) ;\n my_bind [ 0 ] . length = & length ;\n mysql_stmt_bind_result ( stmt , my_bind ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == 0 ) ;\n if ( ! opt_silent ) {\n printf ( \"Result from query: %s\\n\" , row [ 0 ] ) ;\n printf ( \"Result from prepared statement: %s\\n\" , buffer ) ;\n }\n DIE_UNLESS ( strcmp ( row [ 0 ] , buffer ) == 0 ) ;\n mysql_free_result ( res ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 6058, "target": 0, "func": "char * jas_image_fmttostr ( int fmt ) {\n jas_image_fmtinfo_t * fmtinfo ;\n if ( ! ( fmtinfo = jas_image_lookupfmtbyid ( fmt ) ) ) {\n return 0 ;\n }\n return fmtinfo -> name ;\n }"}
{"idx": 6059, "target": 0, "func": "static inline int ohci_read_ed ( OHCIState * ohci , dma_addr_t addr , struct ohci_ed * ed ) {\n return get_dwords ( ohci , addr , ( uint32_t * ) ed , sizeof ( * ed ) >> 2 ) ;\n }"}
{"idx": 6060, "target": 0, "func": "void qdev_init_gpio_out ( DeviceState * dev , qemu_irq * pins , int n ) {\n assert ( dev -> num_gpio_out == 0 ) ;\n dev -> num_gpio_out = n ;\n dev -> gpio_out = pins ;\n }"}
{"idx": 6061, "target": 0, "func": "kadm5_ret_t kadm5_get_policy ( void * server_handle , kadm5_policy_t name , kadm5_policy_ent_t entry ) {\n osa_policy_ent_t t ;\n kadm5_ret_t ret ;\n kadm5_server_handle_t handle = server_handle ;\n memset ( entry , 0 , sizeof ( * entry ) ) ;\n CHECK_HANDLE ( server_handle ) ;\n krb5_clear_error_message ( handle -> context ) ;\n if ( name == ( kadm5_policy_t ) NULL ) return EINVAL ;\n if ( strlen ( name ) == 0 ) return KADM5_BAD_POLICY ;\n ret = krb5_db_get_policy ( handle -> context , name , & t ) ;\n if ( ret == KRB5_KDB_NOENTRY ) return KADM5_UNK_POLICY ;\n else if ( ret ) return ret ;\n if ( ( entry -> policy = strdup ( t -> name ) ) == NULL ) {\n ret = ENOMEM ;\n goto cleanup ;\n }\n entry -> pw_min_life = t -> pw_min_life ;\n entry -> pw_max_life = t -> pw_max_life ;\n entry -> pw_min_length = t -> pw_min_length ;\n entry -> pw_min_classes = t -> pw_min_classes ;\n entry -> pw_history_num = t -> pw_history_num ;\n if ( handle -> api_version >= KADM5_API_VERSION_3 ) {\n entry -> pw_max_fail = t -> pw_max_fail ;\n entry -> pw_failcnt_interval = t -> pw_failcnt_interval ;\n entry -> pw_lockout_duration = t -> pw_lockout_duration ;\n }\n if ( handle -> api_version >= KADM5_API_VERSION_4 ) {\n entry -> attributes = t -> attributes ;\n entry -> max_life = t -> max_life ;\n entry -> max_renewable_life = t -> max_renewable_life ;\n if ( t -> allowed_keysalts ) {\n entry -> allowed_keysalts = strdup ( t -> allowed_keysalts ) ;\n if ( ! entry -> allowed_keysalts ) {\n ret = ENOMEM ;\n goto cleanup ;\n }\n }\n ret = copy_tl_data ( t -> n_tl_data , t -> tl_data , & entry -> tl_data ) ;\n if ( ret ) goto cleanup ;\n entry -> n_tl_data = t -> n_tl_data ;\n }\n ret = 0 ;\n cleanup : if ( ret ) kadm5_free_policy_ent ( handle , entry ) ;\n krb5_db_free_policy ( handle -> context , t ) ;\n return ret ;\n }"}
{"idx": 6062, "target": 0, "func": "jpc_pchg_t * jpc_pchglist_get ( jpc_pchglist_t * pchglist , int pchgno ) {\n return pchglist -> pchgs [ pchgno ] ;\n }"}
{"idx": 6063, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize ) ;\n DECL_PIOCTL ( PGetCacheSize ) ;\n DECL_PIOCTL ( PRemoveCallBack ) ;\n DECL_PIOCTL ( PNewCell ) ;\n DECL_PIOCTL ( PNewAlias ) ;\n DECL_PIOCTL ( PListCells ) ;\n DECL_PIOCTL ( PListAliases ) ;\n DECL_PIOCTL ( PRemoveMount ) ;\n DECL_PIOCTL ( PGetCellStatus ) ;\n DECL_PIOCTL ( PSetCellStatus ) ;\n DECL_PIOCTL ( PFlushVolumeData ) ;\n DECL_PIOCTL ( PFlushAllVolumeData ) ;\n DECL_PIOCTL ( PGetVnodeXStatus ) ;\n DECL_PIOCTL ( PGetVnodeXStatus2 ) ;\n DECL_PIOCTL ( PSetSysName ) ;\n DECL_PIOCTL ( PSetSPrefs ) ;\n DECL_PIOCTL ( PSetSPrefs33 ) ;\n DECL_PIOCTL ( PGetSPrefs ) ;\n DECL_PIOCTL ( PExportAfs ) ;\n DECL_PIOCTL ( PGag ) ;\n DECL_PIOCTL ( PTwiddleRx ) ;\n DECL_PIOCTL ( PGetInitParams ) ;\n DECL_PIOCTL ( PGetRxkcrypt ) ;\n DECL_PIOCTL ( PSetRxkcrypt ) ;\n DECL_PIOCTL ( PGetCPrefs ) ;\n DECL_PIOCTL ( PSetCPrefs ) ;\n DECL_PIOCTL ( PFlushMount ) ;\n DECL_PIOCTL ( PRxStatProc ) ;\n DECL_PIOCTL ( PRxStatPeer ) ;\n DECL_PIOCTL ( PPrefetchFromTape ) ;\n DECL_PIOCTL ( PFsCmd ) ;\n DECL_PIOCTL ( PCallBackAddr )"}
{"idx": 6064, "target": 0, "func": "int qemuMonitorJSONSystemPowerdown ( qemuMonitorPtr mon ) {\n int ret ;\n virJSONValuePtr cmd = qemuMonitorJSONMakeCommand ( \"system_powerdown\" , NULL ) ;\n virJSONValuePtr reply = NULL ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 6065, "target": 0, "func": "enum block_op find_operand ( const char * start ) {\n char first = * start ;\n char next = * ( start + 1 ) ;\n if ( first == '=' && next == '=' ) return EQ_OP ;\n if ( first == '!' && next == '=' ) return NE_OP ;\n if ( first == '>' && next == '=' ) return GE_OP ;\n if ( first == '>' ) return GT_OP ;\n if ( first == '<' && next == '=' ) return LE_OP ;\n if ( first == '<' ) return LT_OP ;\n return ILLEG_OP ;\n }"}
{"idx": 6066, "target": 0, "func": "static my_bool get_one_option ( int optid , const struct my_option * opt __attribute__ ( ( unused ) ) , char * argument ) {\n switch ( optid ) {\n case 'a' : if ( argument == disabled_my_option ) check_param . testflag &= ~ T_STATISTICS ;\n else check_param . testflag |= T_STATISTICS ;\n break ;\n case 'A' : if ( argument ) check_param . auto_increment_value = strtoull ( argument , NULL , 0 ) ;\n else check_param . auto_increment_value = 0 ;\n check_param . testflag |= T_AUTO_INC ;\n break ;\n case 'b' : check_param . search_after_block = strtoul ( argument , NULL , 10 ) ;\n break ;\n case 'B' : if ( argument == disabled_my_option ) check_param . testflag &= ~ T_BACKUP_DATA ;\n else check_param . testflag |= T_BACKUP_DATA ;\n break ;\n case 'c' : if ( argument == disabled_my_option ) check_param . testflag &= ~ T_CHECK ;\n else check_param . testflag |= T_CHECK ;\n break ;\n case 'C' : if ( argument == disabled_my_option ) check_param . testflag &= ~ ( T_CHECK | T_CHECK_ONLY_CHANGED ) ;\n else check_param . testflag |= T_CHECK | T_CHECK_ONLY_CHANGED ;\n break ;\n case 'D' : check_param . max_data_file_length = strtoll ( argument , NULL , 10 ) ;\n break ;\n case 's' : if ( argument == disabled_my_option ) check_param . testflag &= ~ ( T_SILENT | T_VERY_SILENT ) ;\n else {\n if ( check_param . testflag & T_SILENT ) check_param . testflag |= T_VERY_SILENT ;\n check_param . testflag |= T_SILENT ;\n check_param . testflag &= ~ T_WRITE_LOOP ;\n }\n break ;\n case 'w' : if ( argument == disabled_my_option ) check_param . testflag &= ~ T_WAIT_FOREVER ;\n else check_param . testflag |= T_WAIT_FOREVER ;\n break ;\n case 'd' : if ( argument == disabled_my_option ) check_param . testflag &= ~ T_DESCRIPT ;\n else check_param . testflag |= T_DESCRIPT ;\n break ;\n case 'e' : if ( argument == disabled_my_option ) check_param . testflag &= ~ T_EXTEND ;\n else check_param . testflag |= T_EXTEND ;\n break ;\n case 'i' : if ( argument == disabled_my_option ) check_param . testflag &= ~ T_INFO ;\n else check_param . testflag |= T_INFO ;\n break ;\n case 'f' : if ( argument == disabled_my_option ) {\n check_param . tmpfile_createflag = O_RDWR | O_TRUNC | O_EXCL ;\n check_param . testflag &= ~ ( T_FORCE_CREATE | T_UPDATE_STATE ) ;\n }\n else {\n check_param . tmpfile_createflag = O_RDWR | O_TRUNC ;\n check_param . testflag |= T_FORCE_CREATE | T_UPDATE_STATE ;\n }\n break ;\n case 'F' : if ( argument == disabled_my_option ) check_param . testflag &= ~ T_FAST ;\n else check_param . testflag |= T_FAST ;\n break ;\n case 'k' : check_param . keys_in_use = ( ulonglong ) strtoll ( argument , NULL , 10 ) ;\n break ;\n case 'm' : if ( argument == disabled_my_option ) check_param . testflag &= ~ T_MEDIUM ;\n else check_param . testflag |= T_MEDIUM ;\n break ;\n case 'r' : check_param . testflag &= ~ T_REP_ANY ;\n if ( argument != disabled_my_option ) check_param . testflag |= T_REP_BY_SORT ;\n break ;\n case 'p' : check_param . testflag &= ~ T_REP_ANY ;\n if ( argument != disabled_my_option ) check_param . testflag |= T_REP_PARALLEL ;\n break ;\n case 'o' : check_param . testflag &= ~ T_REP_ANY ;\n check_param . force_sort = 0 ;\n if ( argument != disabled_my_option ) {\n check_param . testflag |= T_REP ;\n my_disable_async_io = 1 ;\n }\n break ;\n case 'n' : check_param . testflag &= ~ T_REP_ANY ;\n if ( argument == disabled_my_option ) check_param . force_sort = 0 ;\n else {\n check_param . testflag |= T_REP_BY_SORT ;\n check_param . force_sort = 1 ;\n }\n break ;\n case 'q' : if ( argument == disabled_my_option ) check_param . testflag &= ~ ( T_QUICK | T_FORCE_UNIQUENESS ) ;\n else check_param . testflag |= ( check_param . testflag & T_QUICK ) ? T_FORCE_UNIQUENESS : T_QUICK ;\n break ;\n case 'u' : if ( argument == disabled_my_option ) check_param . testflag &= ~ ( T_UNPACK | T_REP_BY_SORT ) ;\n else check_param . testflag |= T_UNPACK | T_REP_BY_SORT ;\n break ;\n case 'v' : if ( argument == disabled_my_option ) {\n check_param . testflag &= ~ T_VERBOSE ;\n check_param . verbose = 0 ;\n }\n else {\n check_param . testflag |= T_VERBOSE ;\n check_param . verbose ++ ;\n }\n break ;\n case 'R' : if ( argument == disabled_my_option ) check_param . testflag &= ~ T_SORT_RECORDS ;\n else {\n check_param . testflag |= T_SORT_RECORDS ;\n check_param . opt_sort_key = ( uint ) atoi ( argument ) - 1 ;\n if ( check_param . opt_sort_key >= MI_MAX_KEY ) {\n fprintf ( stderr , \"The value of the sort key is bigger than max key: %d.\\n\" , MI_MAX_KEY ) ;\n exit ( 1 ) ;\n }\n }\n break ;\n case 'S' : if ( argument == disabled_my_option ) check_param . testflag &= ~ T_SORT_INDEX ;\n else check_param . testflag |= T_SORT_INDEX ;\n break ;\n case 'T' : if ( argument == disabled_my_option ) check_param . testflag &= ~ T_READONLY ;\n else check_param . testflag |= T_READONLY ;\n break ;\n case 'U' : if ( argument == disabled_my_option ) check_param . testflag &= ~ T_UPDATE_STATE ;\n else check_param . testflag |= T_UPDATE_STATE ;\n break ;\n case '#' : if ( argument == disabled_my_option ) {\n DBUG_POP ( ) ;\n }\n else {\n DBUG_PUSH ( argument ? argument : \"d:t:o,/tmp/myisamchk.trace\" ) ;\n }\n break ;\n case 'V' : print_version ( ) ;\n exit ( 0 ) ;\n case OPT_CORRECT_CHECKSUM : if ( argument == disabled_my_option ) check_param . testflag &= ~ T_CALC_CHECKSUM ;\n else check_param . testflag |= T_CALC_CHECKSUM ;\n break ;\n case OPT_STATS_METHOD : {\n int method ;\n enum_mi_stats_method UNINIT_VAR ( method_conv ) ;\n myisam_stats_method_str = argument ;\n if ( ( method = find_type ( argument , & myisam_stats_method_typelib , FIND_TYPE_BASIC ) ) <= 0 ) {\n fprintf ( stderr , \"Invalid value of stats_method: %s.\\n\" , argument ) ;\n exit ( 1 ) ;\n }\n switch ( method - 1 ) {\n case 0 : method_conv = MI_STATS_METHOD_NULLS_EQUAL ;\n break ;\n case 1 : method_conv = MI_STATS_METHOD_NULLS_NOT_EQUAL ;\n break ;\n case 2 : method_conv = MI_STATS_METHOD_IGNORE_NULLS ;\n break ;\n default : assert ( 0 ) ;\n }\n check_param . stats_method = method_conv ;\n break ;\n }\n # ifdef DEBUG case OPT_START_CHECK_POS : check_param . start_check_pos = strtoull ( argument , NULL , 0 ) ;\n break ;\n # endif case 'H' : my_print_help ( my_long_options ) ;\n exit ( 0 ) ;\n case '?' : usage ( ) ;\n exit ( 0 ) ;\n }\n return 0 ;\n }"}
{"idx": 6067, "target": 0, "func": "static gpgme_error_t uiserver_assuan_simple_command ( assuan_context_t ctx , char * cmd , engine_status_handler_t status_fnc , void * status_fnc_value ) {\n gpg_error_t err ;\n char * line ;\n size_t linelen ;\n err = assuan_write_line ( ctx , cmd ) ;\n if ( err ) return err ;\n do {\n err = assuan_read_line ( ctx , & line , & linelen ) ;\n if ( err ) return err ;\n if ( * line == '#' || ! linelen ) continue ;\n if ( linelen >= 2 && line [ 0 ] == 'O' && line [ 1 ] == 'K' && ( line [ 2 ] == '\\0' || line [ 2 ] == ' ' ) ) return 0 ;\n else if ( linelen >= 4 && line [ 0 ] == 'E' && line [ 1 ] == 'R' && line [ 2 ] == 'R' && line [ 3 ] == ' ' ) err = atoi ( & line [ 4 ] ) ;\n else if ( linelen >= 2 && line [ 0 ] == 'S' && line [ 1 ] == ' ' ) {\n char * rest ;\n gpgme_status_code_t r ;\n rest = strchr ( line + 2 , ' ' ) ;\n if ( ! rest ) rest = line + linelen ;\n else * ( rest ++ ) = 0 ;\n r = _gpgme_parse_status ( line + 2 ) ;\n if ( r >= 0 && status_fnc ) err = status_fnc ( status_fnc_value , r , rest ) ;\n else err = gpg_error ( GPG_ERR_GENERAL ) ;\n }\n else err = gpg_error ( GPG_ERR_GENERAL ) ;\n }\n while ( ! err ) ;\n return err ;\n }"}
{"idx": 6068, "target": 0, "func": "static void hscroll ( AVCodecContext * avctx ) {\n AnsiContext * s = avctx -> priv_data ;\n int i ;\n if ( s -> y < avctx -> height - s -> font_height ) {\n s -> y += s -> font_height ;\n return ;\n }\n i = 0 ;\n for ( ;\n i < avctx -> height - s -> font_height ;\n i ++ ) memcpy ( s -> frame -> data [ 0 ] + i * s -> frame -> linesize [ 0 ] , s -> frame -> data [ 0 ] + ( i + s -> font_height ) * s -> frame -> linesize [ 0 ] , avctx -> width ) ;\n for ( ;\n i < avctx -> height ;\n i ++ ) memset ( s -> frame -> data [ 0 ] + i * s -> frame -> linesize [ 0 ] , DEFAULT_BG_COLOR , avctx -> width ) ;\n }"}
{"idx": 6069, "target": 0, "func": "TEST_F ( SyncBookmarkDataTypeControllerTest , StartDependentsReady ) {\n CreateBookmarkModel ( LOAD_MODEL ) ;\n SetStartExpectations ( ) ;\n SetAssociateExpectations ( ) ;\n EXPECT_EQ ( DataTypeController : : NOT_RUNNING , bookmark_dtc_ -> state ( ) ) ;\n EXPECT_CALL ( start_callback_ , Run ( DataTypeController : : OK , _ , _ ) ) ;\n Start ( ) ;\n EXPECT_EQ ( DataTypeController : : RUNNING , bookmark_dtc_ -> state ( ) ) ;\n }"}
{"idx": 6070, "target": 0, "func": "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 ) {\n uint8_t comp_pred [ m * n ] ;\n vp9_comp_avg_pred ( comp_pred , second_pred , m , n , ref , ref_stride ) ;\n return sad ( src , src_stride , comp_pred , m , m , n ) ;\n \\ }\n # define sadMxNxK ( m , n , k ) void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 ) sadMxN ( 16 , 32 ) sadMxNx4D ( 16 , 32 ) sadMxN ( 16 , 16 ) sadMxNxK ( 16 , 16 , 3 ) sadMxNxK ( 16 , 16 , 8 ) sadMxNx4D ( 16 , 16 ) sadMxN ( 16 , 8 ) sadMxNxK ( 16 , 8 , 3 ) sadMxNxK ( 16 , 8 , 8 ) sadMxNx4D ( 16 , 8 ) sadMxN ( 8 , 16 ) sadMxNxK ( 8 , 16 , 3 ) sadMxNxK ( 8 , 16 , 8 ) sadMxNx4D ( 8 , 16 ) sadMxN ( 8 , 8 ) sadMxNxK ( 8 , 8 , 3 ) sadMxNxK ( 8 , 8 , 8 ) sadMxNx4D ( 8 , 8 ) sadMxN ( 8 , 4 ) sadMxNxK ( 8 , 4 , 8 ) sadMxNx4D ( 8 , 4 ) sadMxN ( 4 , 8 ) sadMxNxK ( 4 , 8 , 8 ) sadMxNx4D ( 4 , 8 ) sadMxN ( 4 , 4 )"}
{"idx": 6071, "target": 0, "func": "static unsigned char convert_num_notes_to_fanout ( uintmax_t num_notes ) {\n unsigned char fanout = 0 ;\n while ( ( num_notes >>= 8 ) ) fanout ++ ;\n return fanout ;\n }"}
{"idx": 6072, "target": 1, "func": "static int slice_end ( AVCodecContext * avctx , AVFrame * pict ) {\n Mpeg1Context * s1 = avctx -> priv_data ;\n MpegEncContext * s = & s1 -> mpeg_enc_ctx ;\n if ( ! s1 -> mpeg_enc_ctx_allocated || ! s -> current_picture_ptr ) return 0 ;\n if ( s -> avctx -> hwaccel ) {\n if ( s -> avctx -> hwaccel -> end_frame ( s -> avctx ) < 0 ) av_log ( avctx , AV_LOG_ERROR , \"hardware accelerator failed to decode picture\\n\" ) ;\n }\n if ( CONFIG_MPEG_XVMC_DECODER && s -> avctx -> xvmc_acceleration ) ff_xvmc_field_end ( s ) ;\n if ( ! s -> first_field ) {\n s -> current_picture_ptr -> f . qscale_type = FF_QSCALE_TYPE_MPEG2 ;\n ff_er_frame_end ( & s -> er ) ;\n ff_MPV_frame_end ( s ) ;\n if ( s -> pict_type == AV_PICTURE_TYPE_B || s -> low_delay ) {\n * pict = s -> current_picture_ptr -> f ;\n ff_print_debug_info ( s , pict ) ;\n }\n else {\n if ( avctx -> active_thread_type & FF_THREAD_FRAME ) s -> picture_number ++ ;\n if ( s -> last_picture_ptr != NULL ) {\n * pict = s -> last_picture_ptr -> f ;\n ff_print_debug_info ( s , pict ) ;\n }\n }\n return 1 ;\n }\n else {\n return 0 ;\n }\n }"}
{"idx": 6073, "target": 0, "func": "uint16_fract_t lut_inverse_interp16 ( uint16_t Value , uint16_t LutTable [ ] , int length , int NumZeroes , int NumPoles ) {\n int l = 1 ;\n int r = 0x10000 ;\n int x = 0 , res ;\n int cell0 , cell1 ;\n double val2 ;\n double y0 , y1 , x0 , x1 ;\n double a , b , f ;\n if ( NumZeroes == 0 && Value == 0 ) return 0 ;\n if ( NumZeroes > 1 || NumPoles > 1 ) {\n int a , b , sample ;\n if ( Value == 0 ) return 0 ;\n sample = ( length - 1 ) * ( ( double ) Value * ( 1. / 65535. ) ) ;\n if ( LutTable [ sample ] == 0xffff ) return 0xffff ;\n a = ( ( NumZeroes - 1 ) * 0xFFFF ) / ( length - 1 ) ;\n b = ( ( length - 1 - NumPoles ) * 0xFFFF ) / ( length - 1 ) ;\n l = a - 1 ;\n r = b + 1 ;\n if ( l < 1 ) l = 1 ;\n if ( r > 0x10000 ) r = 0x10000 ;\n if ( r <= l ) return 0 ;\n }\n if ( Value == 0 && NumZeroes ) {\n return 0 ;\n }\n while ( r > l ) {\n x = ( l + r ) / 2 ;\n res = ( int ) lut_interp_linear16 ( ( uint16_fract_t ) ( x - 1 ) , LutTable , length ) ;\n if ( res == Value ) {\n return ( uint16_fract_t ) ( x - 1 ) ;\n }\n if ( res > Value ) r = x - 1 ;\n else l = x + 1 ;\n }\n assert ( x >= 1 ) ;\n val2 = ( length - 1 ) * ( ( double ) ( x - 1 ) / 65535.0 ) ;\n cell0 = ( int ) floor ( val2 ) ;\n cell1 = ( int ) ceil ( val2 ) ;\n assert ( cell0 >= 0 ) ;\n assert ( cell1 >= 0 ) ;\n assert ( cell0 < length ) ;\n assert ( cell1 < length ) ;\n if ( cell0 == cell1 ) return ( uint16_fract_t ) x ;\n y0 = LutTable [ cell0 ] ;\n x0 = ( 65535.0 * cell0 ) / ( length - 1 ) ;\n y1 = LutTable [ cell1 ] ;\n x1 = ( 65535.0 * cell1 ) / ( length - 1 ) ;\n a = ( y1 - y0 ) / ( x1 - x0 ) ;\n b = y0 - a * x0 ;\n if ( fabs ( a ) < 0.01 ) return ( uint16_fract_t ) x ;\n f = ( ( Value - b ) / a ) ;\n if ( f < 0.0 ) return ( uint16_fract_t ) 0 ;\n if ( f >= 65535.0 ) return ( uint16_fract_t ) 0xFFFF ;\n return ( uint16_fract_t ) floor ( f + 0.5 ) ;\n }"}
{"idx": 6074, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( UnloadTest , BrowserListForceCloseWithBeforeUnload ) {\n NavigateToDataURL ( BEFORE_UNLOAD_HTML , \"beforeunload\" ) ;\n content : : WindowedNotificationObserver window_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , content : : NotificationService : : AllSources ( ) ) ;\n UnloadResults unload_results ;\n BrowserList : : CloseAllBrowsersWithProfile ( browser ( ) -> profile ( ) , base : : Bind ( & UnloadResults : : AddSuccess , base : : Unretained ( & unload_results ) ) , base : : Bind ( & UnloadResults : : AddAbort , base : : Unretained ( & unload_results ) ) , true ) ;\n window_observer . Wait ( ) ;\n EXPECT_EQ ( 1 , unload_results . get_successes ( ) ) ;\n EXPECT_EQ ( 0 , unload_results . get_aborts ( ) ) ;\n }"}
{"idx": 6075, "target": 0, "func": "int str_hex_to_bytes ( char * string , u_char * bytes ) {\n char value [ 3 ] ;\n unsigned int value_bin ;\n u_int i ;\n size_t slen ;\n slen = strlen ( string ) ;\n for ( i = 0 ;\n i < slen ;\n i ++ ) {\n strncpy ( value , string + i * 2 , 2 ) ;\n if ( sscanf ( value , \"%02X\" , & value_bin ) != 1 ) return - E_INVALID ;\n bytes [ i ] = value_bin & 0x000000FF ;\n }\n return 0 ;\n }"}
{"idx": 6076, "target": 0, "func": "extern int main ( int argc , const char * argv [ ] ) {\n UNewDataMemory * pData ;\n UErrorCode errorCode = U_ZERO_ERROR ;\n char stringValue [ ] = {\n 'E' , 'X' , 'A' , 'M' , 'P' , 'L' , 'E' , '\\0' }\n ;\n uint16_t intValue = 2000 ;\n long dataLength ;\n uint32_t size ;\n # ifdef WIN32 char * currdir = _getcwd ( NULL , 0 ) ;\n # else char * currdir = getcwd ( NULL , 0 ) ;\n # endif pData = udata_create ( currdir , DATA_TYPE , DATA_NAME , & dataInfo , U_COPYRIGHT_STRING , & errorCode ) ;\n if ( currdir != NULL ) {\n free ( currdir ) ;\n }\n if ( U_FAILURE ( errorCode ) ) {\n fprintf ( stderr , \"Error: unable to create data memory, error %d\\n\" , errorCode ) ;\n exit ( errorCode ) ;\n }\n printf ( \"Writing uint16_t value of %d\\n\" , intValue ) ;\n udata_write16 ( pData , intValue ) ;\n printf ( \"Writing string value of %s\\n\" , stringValue ) ;\n udata_writeString ( pData , stringValue , sizeof ( stringValue ) ) ;\n dataLength = udata_finish ( pData , & errorCode ) ;\n if ( U_FAILURE ( errorCode ) ) {\n fprintf ( stderr , \"Error: error %d writing the output file\\n\" , errorCode ) ;\n exit ( errorCode ) ;\n }\n size = sizeof ( stringValue ) + sizeof ( intValue ) ;\n if ( dataLength != ( long ) size ) {\n fprintf ( stderr , \"Error: data length %ld != calculated size %lu\\n\" , dataLength , size ) ;\n exit ( U_INTERNAL_PROGRAM_ERROR ) ;\n }\n return 0 ;\n }"}
{"idx": 6077, "target": 1, "func": "static int32_t u_printf_octal_handler ( const u_printf_stream_handler * handler , void * context , ULocaleBundle * formatBundle , const u_printf_spec_info * info , const ufmt_args * args ) {\n int64_t num = args [ 0 ] . int64Value ;\n UChar result [ UPRINTF_BUFFER_SIZE ] ;\n int32_t len = UPRINTF_BUFFER_SIZE ;\n if ( info -> fIsShort ) num &= UINT16_MAX ;\n else if ( ! info -> fIsLongLong ) num &= UINT32_MAX ;\n ufmt_64tou ( result , & len , num , 8 , FALSE , info -> fPrecision == - 1 && info -> fZero ? info -> fWidth : info -> fPrecision ) ;\n if ( info -> fAlt && result [ 0 ] != 0x0030 && len < UPRINTF_BUFFER_SIZE - 1 ) {\n memmove ( result + 1 , result , len * sizeof ( UChar ) ) ;\n result [ 0 ] = 0x0030 ;\n len += 1 ;\n }\n return handler -> pad_and_justify ( context , info , result , len ) ;\n }"}
{"idx": 6078, "target": 0, "func": "static void selinux_inet_conn_established ( struct sock * sk , struct sk_buff * skb ) {\n u16 family = sk -> sk_family ;\n struct sk_security_struct * sksec = sk -> sk_security ;\n if ( family == PF_INET6 && skb -> protocol == htons ( ETH_P_IP ) ) family = PF_INET ;\n selinux_skb_peerlbl_sid ( skb , family , & sksec -> peer_sid ) ;\n }"}
{"idx": 6079, "target": 0, "func": "int dissect_h225_NonStandardParameter ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 815 \"./asn1/h225/h225.cnf\" nsp_handle = NULL ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_NonStandardParameter , NonStandardParameter_sequence ) ;\n return offset ;\n }"}
{"idx": 6080, "target": 0, "func": "relpRetVal relpTcpSetUsrPtr ( relpTcp_t * pThis , void * pUsr ) {\n ENTER_RELPFUNC ;\n RELPOBJ_assert ( pThis , Tcp ) ;\n pThis -> pUsr = pUsr ;\n LEAVE_RELPFUNC ;\n }"}
{"idx": 6081, "target": 0, "func": "int vp9_get_y_sse ( const YV12_BUFFER_CONFIG * a , const YV12_BUFFER_CONFIG * b ) {\n assert ( a -> y_crop_width == b -> y_crop_width ) ;\n assert ( a -> y_crop_height == b -> y_crop_height ) ;\n return ( int ) get_sse ( a -> y_buffer , a -> y_stride , b -> y_buffer , b -> y_stride , a -> y_crop_width , a -> y_crop_height ) ;\n }"}
{"idx": 6082, "target": 0, "func": "static void encode_block_pass1 ( int plane , int block , BLOCK_SIZE plane_bsize , TX_SIZE tx_size , void * arg ) {\n MACROBLOCK * const x = ( MACROBLOCK * ) arg ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n struct macroblock_plane * const p = & x -> plane [ plane ] ;\n struct macroblockd_plane * const pd = & xd -> plane [ plane ] ;\n tran_low_t * const dqcoeff = BLOCK_OFFSET ( pd -> dqcoeff , block ) ;\n int i , j ;\n uint8_t * dst ;\n txfrm_block_to_raster_xy ( plane_bsize , tx_size , block , & i , & j ) ;\n dst = & pd -> dst . buf [ 4 * j * pd -> dst . stride + 4 * i ] ;\n vp9_xform_quant ( x , plane , block , plane_bsize , tx_size ) ;\n if ( p -> eobs [ block ] > 0 ) x -> itxm_add ( dqcoeff , dst , pd -> dst . stride , p -> eobs [ block ] ) ;\n }"}
{"idx": 6083, "target": 0, "func": "static int32_t u_printf_hex_handler ( const u_printf_stream_handler * handler , void * context , ULocaleBundle * formatBundle , const u_printf_spec_info * info , const ufmt_args * args ) {\n ( void ) formatBundle ;\n int64_t num = args [ 0 ] . int64Value ;\n UChar result [ UPRINTF_BUFFER_SIZE ] ;\n int32_t len = UPRINTF_BUFFER_SIZE ;\n if ( info -> fIsShort ) num &= UINT16_MAX ;\n else if ( ! info -> fIsLongLong ) num &= UINT32_MAX ;\n ufmt_64tou ( result , & len , num , 16 , ( UBool ) ( info -> fSpec == 0x0078 ) , ( info -> fPrecision == - 1 && info -> fZero ) ? info -> fWidth : info -> fPrecision ) ;\n if ( num != 0 && info -> fAlt && len < UPRINTF_BUFFER_SIZE - 2 ) {\n memmove ( result + 2 , result , len * sizeof ( UChar ) ) ;\n result [ 0 ] = 0x0030 ;\n result [ 1 ] = info -> fSpec ;\n len += 2 ;\n }\n return handler -> pad_and_justify ( context , info , result , len ) ;\n }"}
{"idx": 6084, "target": 0, "func": "int xmlThrDefGetWarningsDefaultValue ( int v ) {\n int ret ;\n xmlMutexLock ( xmlThrDefMutex ) ;\n ret = xmlGetWarningsDefaultValueThrDef ;\n xmlGetWarningsDefaultValueThrDef = v ;\n xmlMutexUnlock ( xmlThrDefMutex ) ;\n return ret ;\n }"}
{"idx": 6085, "target": 0, "func": "static void _slurm_rpc_submit_batch_job ( slurm_msg_t * msg ) {\n static int active_rpc_cnt = 0 ;\n int error_code = SLURM_SUCCESS ;\n DEF_TIMERS ;\n uint32_t job_id = 0 , priority = 0 ;\n struct job_record * job_ptr = NULL ;\n slurm_msg_t response_msg ;\n submit_response_msg_t submit_msg ;\n job_desc_msg_t * job_desc_msg = ( job_desc_msg_t * ) msg -> data ;\n slurmctld_lock_t job_read_lock = {\n READ_LOCK , READ_LOCK , READ_LOCK , READ_LOCK , READ_LOCK }\n ;\n slurmctld_lock_t job_write_lock = {\n READ_LOCK , WRITE_LOCK , WRITE_LOCK , READ_LOCK , READ_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n gid_t gid = g_slurm_auth_get_gid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n char * err_msg = NULL , * job_submit_user_msg = NULL ;\n bool reject_job = false ;\n START_TIMER ;\n debug2 ( \"Processing RPC: REQUEST_SUBMIT_BATCH_JOB from uid=%d\" , uid ) ;\n if ( slurmctld_config . submissions_disabled ) {\n info ( \"Submissions disabled on system\" ) ;\n error_code = ESLURM_SUBMISSIONS_DISABLED ;\n reject_job = true ;\n goto send_msg ;\n }\n if ( ( error_code = _valid_id ( \"REQUEST_SUBMIT_BATCH_JOB\" , job_desc_msg , uid , gid ) ) ) {\n reject_job = true ;\n goto send_msg ;\n }\n if ( ( job_desc_msg -> alloc_node == NULL ) || ( job_desc_msg -> alloc_node [ 0 ] == '\\0' ) ) {\n error_code = ESLURM_INVALID_NODE_NAME ;\n error ( \"REQUEST_SUBMIT_BATCH_JOB lacks alloc_node from uid=%d\" , uid ) ;\n }\n dump_job_desc ( job_desc_msg ) ;\n if ( error_code == SLURM_SUCCESS ) {\n lock_slurmctld ( job_read_lock ) ;\n job_desc_msg -> pack_job_offset = NO_VAL ;\n error_code = validate_job_create_req ( job_desc_msg , uid , & err_msg ) ;\n unlock_slurmctld ( job_read_lock ) ;\n }\n if ( err_msg ) job_submit_user_msg = xstrdup ( err_msg ) ;\n if ( error_code ) {\n reject_job = true ;\n goto send_msg ;\n }\n _throttle_start ( & active_rpc_cnt ) ;\n lock_slurmctld ( job_write_lock ) ;\n START_TIMER ;\n if ( fed_mgr_fed_rec ) {\n if ( fed_mgr_job_allocate ( msg , job_desc_msg , false , uid , msg -> protocol_version , & job_id , & error_code , & err_msg ) ) reject_job = true ;\n }\n else {\n job_desc_msg -> pack_job_offset = NO_VAL ;\n error_code = job_allocate ( job_desc_msg , job_desc_msg -> immediate , false , NULL , 0 , uid , & job_ptr , & err_msg , msg -> protocol_version ) ;\n if ( ! job_ptr || ( error_code && job_ptr -> job_state == JOB_FAILED ) ) reject_job = true ;\n else {\n job_id = job_ptr -> job_id ;\n priority = job_ptr -> priority ;\n }\n if ( job_desc_msg -> immediate && ( error_code != SLURM_SUCCESS ) ) {\n error_code = ESLURM_CAN_NOT_START_IMMEDIATELY ;\n reject_job = true ;\n }\n }\n unlock_slurmctld ( job_write_lock ) ;\n _throttle_fini ( & active_rpc_cnt ) ;\n send_msg : END_TIMER2 ( \"_slurm_rpc_submit_batch_job\" ) ;\n if ( reject_job ) {\n info ( \"%s: %s\" , __func__ , slurm_strerror ( error_code ) ) ;\n if ( err_msg ) slurm_send_rc_err_msg ( msg , error_code , err_msg ) ;\n else slurm_send_rc_msg ( msg , error_code ) ;\n }\n else {\n info ( \"%s: JobId=%u InitPrio=%u %s\" , __func__ , job_id , priority , TIME_STR ) ;\n submit_msg . job_id = job_id ;\n submit_msg . step_id = SLURM_BATCH_SCRIPT ;\n submit_msg . error_code = error_code ;\n submit_msg . job_submit_user_msg = job_submit_user_msg ;\n slurm_msg_t_init ( & response_msg ) ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . conn = msg -> conn ;\n response_msg . msg_type = RESPONSE_SUBMIT_BATCH_JOB ;\n response_msg . data = & submit_msg ;\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n schedule_job_save ( ) ;\n schedule_node_save ( ) ;\n queue_job_scheduler ( ) ;\n }\n xfree ( err_msg ) ;\n xfree ( job_submit_user_msg ) ;\n }"}
{"idx": 6086, "target": 0, "func": "static bool dprintf_IsQualifierNoDollar ( const char * fmt ) {\n # if defined ( MP_HAVE_INT_EXTENSIONS ) if ( ! strncmp ( fmt , \"I32\" , 3 ) || ! strncmp ( fmt , \"I64\" , 3 ) ) {\n return TRUE ;\n }\n # endif switch ( * fmt ) {\n case '-' : case '+' : case ' ' : case '#' : case '.' : case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : case 'h' : case 'l' : case 'L' : case 'z' : case 'q' : case '*' : case 'O' : # if defined ( MP_HAVE_INT_EXTENSIONS ) case 'I' : # endif return TRUE ;\n default : return FALSE ;\n }\n }"}
{"idx": 6087, "target": 0, "func": "hb_blob_t * hb_blob_get_empty ( void ) {\n static const hb_blob_t _hb_blob_nil = {\n HB_OBJECT_HEADER_STATIC , true , NULL , 0 , HB_MEMORY_MODE_READONLY , NULL , NULL }\n ;\n return const_cast < hb_blob_t * > ( & _hb_blob_nil ) ;\n }"}
{"idx": 6088, "target": 0, "func": "static void isoent_setup_directory_location ( struct iso9660 * iso9660 , int location , struct vdd * vdd ) {\n struct isoent * np ;\n int depth ;\n vdd -> total_dir_block = 0 ;\n depth = 0 ;\n np = vdd -> rootent ;\n do {\n int block ;\n np -> dir_block = calculate_directory_descriptors ( iso9660 , vdd , np , depth ) ;\n vdd -> total_dir_block += np -> dir_block ;\n np -> dir_location = location ;\n location += np -> dir_block ;\n block = extra_setup_location ( np , location ) ;\n vdd -> total_dir_block += block ;\n location += block ;\n if ( np -> subdirs . first != NULL && depth + 1 < vdd -> max_depth ) {\n np = np -> subdirs . first ;\n depth ++ ;\n continue ;\n }\n while ( np != np -> parent ) {\n if ( np -> drnext == NULL ) {\n np = np -> parent ;\n depth -- ;\n }\n else {\n np = np -> drnext ;\n break ;\n }\n }\n }\n while ( np != np -> parent ) ;\n }"}
{"idx": 6089, "target": 0, "func": "static AsfStream * gst_asf_demux_setup_pad ( GstASFDemux * demux , GstPad * src_pad , GstCaps * caps , guint16 id , gboolean is_video , GstBuffer * streamheader , GstTagList * tags ) {\n AsfStream * stream ;\n gst_pad_use_fixed_caps ( src_pad ) ;\n gst_pad_set_caps ( src_pad , caps ) ;\n gst_pad_set_event_function ( src_pad , GST_DEBUG_FUNCPTR ( gst_asf_demux_handle_src_event ) ) ;\n gst_pad_set_query_function ( src_pad , GST_DEBUG_FUNCPTR ( gst_asf_demux_handle_src_query ) ) ;\n stream = & demux -> stream [ demux -> num_streams ] ;\n stream -> caps = caps ;\n stream -> pad = src_pad ;\n stream -> id = id ;\n stream -> fps_known = ! is_video ;\n stream -> is_video = is_video ;\n stream -> pending_tags = tags ;\n stream -> discont = TRUE ;\n stream -> first_buffer = TRUE ;\n stream -> streamheader = streamheader ;\n if ( stream -> streamheader ) {\n stream -> streamheader = gst_buffer_make_writable ( streamheader ) ;\n GST_BUFFER_FLAG_SET ( stream -> streamheader , GST_BUFFER_FLAG_HEADER ) ;\n }\n if ( is_video ) {\n GstStructure * st ;\n gint par_x , par_y ;\n st = gst_caps_get_structure ( caps , 0 ) ;\n if ( gst_structure_get_fraction ( st , \"pixel-aspect-ratio\" , & par_x , & par_y ) && par_x > 0 && par_y > 0 ) {\n GST_DEBUG ( \"PAR %d/%d\" , par_x , par_y ) ;\n stream -> par_x = par_x ;\n stream -> par_y = par_y ;\n }\n }\n stream -> payloads = g_array_new ( FALSE , FALSE , sizeof ( AsfPayload ) ) ;\n stream -> payloads_rev = g_array_new ( FALSE , FALSE , sizeof ( AsfPayload ) ) ;\n GST_INFO ( \"Created pad %s for stream %u with caps %\" GST_PTR_FORMAT , GST_PAD_NAME ( src_pad ) , demux -> num_streams , caps ) ;\n ++ demux -> num_streams ;\n stream -> active = FALSE ;\n return stream ;\n }"}
{"idx": 6090, "target": 0, "func": "void notef ( struct GlobalConfig * config , const char * fmt , ... ) {\n va_list ap ;\n va_start ( ap , fmt ) ;\n if ( config -> tracetype ) voutf ( config , NOTE_PREFIX , fmt , ap ) ;\n va_end ( ap ) ;\n }"}
{"idx": 6091, "target": 0, "func": "static void lsf2lsp_for_mode12k2 ( AMRContext * p , double lsp [ LP_FILTER_ORDER ] , const float lsf_no_r [ LP_FILTER_ORDER ] , const int16_t * lsf_quantizer [ 5 ] , const int quantizer_offset , const int sign , const int update ) {\n int16_t lsf_r [ LP_FILTER_ORDER ] ;\n float lsf_q [ LP_FILTER_ORDER ] ;\n int i ;\n for ( i = 0 ;\n i < LP_FILTER_ORDER >> 1 ;\n i ++ ) memcpy ( & lsf_r [ i << 1 ] , & lsf_quantizer [ i ] [ quantizer_offset ] , 2 * sizeof ( * lsf_r ) ) ;\n if ( sign ) {\n lsf_r [ 4 ] *= - 1 ;\n lsf_r [ 5 ] *= - 1 ;\n }\n if ( update ) memcpy ( p -> prev_lsf_r , lsf_r , LP_FILTER_ORDER * sizeof ( * lsf_r ) ) ;\n for ( i = 0 ;\n i < LP_FILTER_ORDER ;\n i ++ ) lsf_q [ i ] = lsf_r [ i ] * ( LSF_R_FAC / 8000.0 ) + lsf_no_r [ i ] * ( 1.0 / 8000.0 ) ;\n ff_set_min_dist_lsf ( lsf_q , MIN_LSF_SPACING , LP_FILTER_ORDER ) ;\n if ( update ) interpolate_lsf ( p -> lsf_q , lsf_q ) ;\n ff_acelp_lsf2lspd ( lsp , lsf_q , LP_FILTER_ORDER ) ;\n }"}
{"idx": 6092, "target": 0, "func": "TEST_F ( BaseSearchProviderTest , PreserveAnswersWhenDeduplicating ) {\n TemplateURLData data ;\n data . SetURL ( \"http://foo.com/url?bar={\nsearchTerms}\n\" ) ;\n std : : unique_ptr < TemplateURL > template_url ( new TemplateURL ( data ) ) ;\n TestBaseSearchProvider : : MatchMap map ;\n base : : string16 query = base : : ASCIIToUTF16 ( \"weather los angeles\" ) ;\n base : : string16 answer_contents = base : : ASCIIToUTF16 ( \"some answer content\" ) ;\n base : : string16 answer_type = base : : ASCIIToUTF16 ( \"2334\" ) ;\n std : : unique_ptr < SuggestionAnswer > answer ( new SuggestionAnswer ( ) ) ;\n answer -> set_type ( 2334 ) ;\n EXPECT_CALL ( * provider_ , GetInput ( _ ) ) . WillRepeatedly ( Return ( AutocompleteInput ( ) ) ) ;\n EXPECT_CALL ( * provider_ , GetTemplateURL ( _ ) ) . WillRepeatedly ( Return ( template_url . get ( ) ) ) ;\n SearchSuggestionParser : : SuggestResult more_relevant ( query , AutocompleteMatchType : : SEARCH_HISTORY , 0 , query , base : : string16 ( ) , base : : string16 ( ) , base : : string16 ( ) , base : : string16 ( ) , nullptr , std : : string ( ) , std : : string ( ) , false , 1300 , true , false , query ) ;\n provider_ -> AddMatchToMap ( more_relevant , std : : string ( ) , TemplateURLRef : : NO_SUGGESTION_CHOSEN , false , false , & map ) ;\n SearchSuggestionParser : : SuggestResult less_relevant ( query , AutocompleteMatchType : : SEARCH_SUGGEST , 0 , query , base : : string16 ( ) , base : : string16 ( ) , answer_contents , answer_type , SuggestionAnswer : : copy ( answer . get ( ) ) , std : : string ( ) , std : : string ( ) , false , 850 , true , false , query ) ;\n provider_ -> AddMatchToMap ( less_relevant , std : : string ( ) , TemplateURLRef : : NO_SUGGESTION_CHOSEN , false , false , & map ) ;\n ASSERT_EQ ( 1U , map . size ( ) ) ;\n AutocompleteMatch match = map . begin ( ) -> second ;\n ASSERT_EQ ( 1U , match . duplicate_matches . size ( ) ) ;\n AutocompleteMatch duplicate = match . duplicate_matches [ 0 ] ;\n EXPECT_EQ ( answer_contents , match . answer_contents ) ;\n EXPECT_EQ ( answer_type , match . answer_type ) ;\n EXPECT_TRUE ( answer -> Equals ( * match . answer ) ) ;\n EXPECT_EQ ( AutocompleteMatchType : : SEARCH_HISTORY , match . type ) ;\n EXPECT_EQ ( 1300 , match . relevance ) ;\n EXPECT_EQ ( answer_contents , duplicate . answer_contents ) ;\n EXPECT_EQ ( answer_type , duplicate . answer_type ) ;\n EXPECT_TRUE ( answer -> Equals ( * duplicate . answer ) ) ;\n EXPECT_EQ ( AutocompleteMatchType : : SEARCH_SUGGEST , duplicate . type ) ;\n EXPECT_EQ ( 850 , duplicate . relevance ) ;\n map . clear ( ) ;\n base : : string16 answer_contents2 = base : : ASCIIToUTF16 ( \"different answer\" ) ;\n base : : string16 answer_type2 = base : : ASCIIToUTF16 ( \"8242\" ) ;\n std : : unique_ptr < SuggestionAnswer > answer2 ( new SuggestionAnswer ( ) ) ;\n answer2 -> set_type ( 8242 ) ;\n more_relevant = SearchSuggestionParser : : SuggestResult ( query , AutocompleteMatchType : : SEARCH_HISTORY , 0 , query , base : : string16 ( ) , base : : string16 ( ) , answer_contents2 , answer_type2 , SuggestionAnswer : : copy ( answer2 . get ( ) ) , std : : string ( ) , std : : string ( ) , false , 1300 , true , false , query ) ;\n provider_ -> AddMatchToMap ( more_relevant , std : : string ( ) , TemplateURLRef : : NO_SUGGESTION_CHOSEN , false , false , & map ) ;\n provider_ -> AddMatchToMap ( less_relevant , std : : string ( ) , TemplateURLRef : : NO_SUGGESTION_CHOSEN , false , false , & map ) ;\n ASSERT_EQ ( 1U , map . size ( ) ) ;\n match = map . begin ( ) -> second ;\n ASSERT_EQ ( 1U , match . duplicate_matches . size ( ) ) ;\n duplicate = match . duplicate_matches [ 0 ] ;\n EXPECT_EQ ( answer_contents2 , match . answer_contents ) ;\n EXPECT_EQ ( answer_type2 , match . answer_type ) ;\n EXPECT_TRUE ( answer2 -> Equals ( * match . answer ) ) ;\n EXPECT_EQ ( AutocompleteMatchType : : SEARCH_HISTORY , match . type ) ;\n EXPECT_EQ ( 1300 , match . relevance ) ;\n EXPECT_EQ ( answer_contents , duplicate . answer_contents ) ;\n EXPECT_EQ ( answer_type , duplicate . answer_type ) ;\n EXPECT_TRUE ( answer -> Equals ( * duplicate . answer ) ) ;\n EXPECT_EQ ( AutocompleteMatchType : : SEARCH_SUGGEST , duplicate . type ) ;\n EXPECT_EQ ( 850 , duplicate . relevance ) ;\n }"}
{"idx": 6093, "target": 0, "func": "void SFDefaultOS2Simple ( struct pfminfo * pfminfo , SplineFont * sf ) {\n pfminfo -> pfmfamily = 0x11 ;\n pfminfo -> panose [ 0 ] = 2 ;\n pfminfo -> weight = 400 ;\n pfminfo -> panose [ 2 ] = 5 ;\n pfminfo -> width = 5 ;\n pfminfo -> panose [ 3 ] = 3 ;\n pfminfo -> winascent_add = pfminfo -> windescent_add = true ;\n pfminfo -> hheadascent_add = pfminfo -> hheaddescent_add = true ;\n pfminfo -> typoascent_add = pfminfo -> typodescent_add = true ;\n pfminfo -> os2_winascent = pfminfo -> os2_windescent = 0 ;\n if ( sf -> subfonts != NULL ) sf = sf -> subfonts [ 0 ] ;\n pfminfo -> linegap = pfminfo -> vlinegap = pfminfo -> os2_typolinegap = rint ( .09 * ( sf -> ascent + sf -> descent ) ) ;\n }"}
{"idx": 6094, "target": 1, "func": "static void data_destroy_arabic ( void * data ) {\n arabic_shape_plan_t * arabic_plan = ( arabic_shape_plan_t * ) data ;\n arabic_fallback_plan_destroy ( arabic_plan -> fallback_plan ) ;\n free ( data ) ;\n }"}
{"idx": 6095, "target": 0, "func": "static void generate_json ( FBuffer * buffer , VALUE Vstate , JSON_Generator_State * state , VALUE obj ) {\n VALUE tmp ;\n VALUE klass = CLASS_OF ( obj ) ;\n if ( klass == rb_cHash ) {\n generate_json_object ( buffer , Vstate , state , obj ) ;\n }\n else if ( klass == rb_cArray ) {\n generate_json_array ( buffer , Vstate , state , obj ) ;\n }\n else if ( klass == rb_cString ) {\n generate_json_string ( buffer , Vstate , state , obj ) ;\n }\n else if ( obj == Qnil ) {\n generate_json_null ( buffer , Vstate , state , obj ) ;\n }\n else if ( obj == Qfalse ) {\n generate_json_false ( buffer , Vstate , state , obj ) ;\n }\n else if ( obj == Qtrue ) {\n generate_json_true ( buffer , Vstate , state , obj ) ;\n }\n else if ( FIXNUM_P ( obj ) ) {\n generate_json_fixnum ( buffer , Vstate , state , obj ) ;\n }\n else if ( RB_TYPE_P ( obj , T_BIGNUM ) ) {\n generate_json_bignum ( buffer , Vstate , state , obj ) ;\n }\n else if ( klass == rb_cFloat ) {\n generate_json_float ( buffer , Vstate , state , obj ) ;\n }\n else if ( rb_respond_to ( obj , i_to_json ) ) {\n tmp = rb_funcall ( obj , i_to_json , 1 , Vstate ) ;\n Check_Type ( tmp , T_STRING ) ;\n fbuffer_append_str ( buffer , tmp ) ;\n }\n else {\n tmp = rb_funcall ( obj , i_to_s , 0 ) ;\n Check_Type ( tmp , T_STRING ) ;\n generate_json_string ( buffer , Vstate , state , tmp ) ;\n }\n }"}
{"idx": 6096, "target": 0, "func": "static int dissect_zbee_zcl_pwr_prof ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n proto_tree * payload_tree ;\n zbee_zcl_packet * zcl ;\n guint offset = 0 ;\n guint8 cmd_id ;\n gint rem_len ;\n if ( data == NULL ) return 0 ;\n zcl = ( zbee_zcl_packet * ) data ;\n cmd_id = zcl -> cmd_id ;\n if ( zcl -> direction == ZBEE_ZCL_FCF_TO_SERVER ) {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"%s, Seq: %u\" , val_to_str_const ( cmd_id , zbee_zcl_pwr_prof_srv_rx_cmd_names , \"Unknown Command\" ) , zcl -> tran_seqno ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_srv_rx_cmd_id , tvb , offset , 1 , cmd_id ) ;\n rem_len = tvb_reported_length_remaining ( tvb , ++ offset ) ;\n if ( rem_len > 0 ) {\n payload_tree = proto_tree_add_subtree ( tree , tvb , offset , rem_len , ett_zbee_zcl_pwr_prof , NULL , \"Payload\" ) ;\n switch ( cmd_id ) {\n case ZBEE_ZCL_CMD_ID_PWR_PROF_PWR_PROF_REQ : case ZBEE_ZCL_CMD_ID_PWR_PROF_PWR_PROF_SCHED_CONSTRS_REQ : case ZBEE_ZCL_CMD_ID_PWR_PROF_ENERGY_PHASES_SCHED_STATE_REQ : dissect_zcl_pwr_prof_pwrprofreq ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_PWR_PROF_PWR_PROF_STATE_REQ : break ;\n case ZBEE_ZCL_CMD_ID_PWR_PROF_GET_PWR_PROF_PRICE_RSP : case ZBEE_ZCL_CMD_ID_PWR_PROF_GET_PWR_PROF_PRICE_EXT_RSP : dissect_zcl_pwr_prof_getpwrprofpricersp ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_PWR_PROF_GET_OVERALL_SCHED_PRICE_RSP : dissect_zcl_pwr_prof_getoverallschedpricersp ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_PWR_PROF_ENERGY_PHASES_SCHED_NOTIF : case ZBEE_ZCL_CMD_ID_PWR_PROF_ENERGY_PHASES_SCHED_RSP : dissect_zcl_pwr_prof_enphsschednotif ( tvb , payload_tree , & offset ) ;\n break ;\n default : break ;\n }\n }\n }\n else {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"%s, Seq: %u\" , val_to_str_const ( cmd_id , zbee_zcl_pwr_prof_srv_tx_cmd_names , \"Unknown Command\" ) , zcl -> tran_seqno ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_srv_tx_cmd_id , tvb , offset , 1 , cmd_id ) ;\n rem_len = tvb_reported_length_remaining ( tvb , ++ offset ) ;\n if ( rem_len > 0 ) {\n payload_tree = proto_tree_add_subtree ( tree , tvb , offset , rem_len , ett_zbee_zcl_pwr_prof , NULL , \"Payload\" ) ;\n switch ( cmd_id ) {\n case ZBEE_ZCL_CMD_ID_PWR_PROF_PWR_PROF_NOTIF : case ZBEE_ZCL_CMD_ID_PWR_PROF_PWR_PROF_RSP : dissect_zcl_pwr_prof_pwrprofnotif ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_PWR_PROF_PWR_PROF_STATE_RSP : case ZBEE_ZCL_CMD_ID_PWR_PROF_PWR_PROF_STATE_NOTIF : dissect_zcl_pwr_prof_pwrprofstatersp ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_PWR_PROF_GET_OVERALL_SCHED_PRICE : break ;\n case ZBEE_ZCL_CMD_ID_PWR_PROF_ENERGY_PHASES_SCHED_STATE_RSP : case ZBEE_ZCL_CMD_ID_PWR_PROF_ENERGY_PHASES_SCHED_STATE_NOITIF : dissect_zcl_pwr_prof_enphsschednotif ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_PWR_PROF_GET_PWR_PROF_PRICE : case ZBEE_ZCL_CMD_ID_PWR_PROF_ENERGY_PHASES_SCHED_REQ : dissect_zcl_pwr_prof_pwrprofreq ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_PWR_PROF_PWR_PROF_SCHED_CONSTRS_NOTIF : case ZBEE_ZCL_CMD_ID_PWR_PROF_PWR_PROF_SCHED_CONSTRS_RSP : dissect_zcl_pwr_prof_pwrprofschedcontrsnotif ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_PWR_PROF_GET_PWR_PROF_PRICE_EXT : dissect_zcl_pwr_prof_pwrprofpriceext ( tvb , payload_tree , & offset ) ;\n break ;\n default : break ;\n }\n }\n }\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 6097, "target": 0, "func": "static void move_file_prepare ( CopyMoveJob * move_job , GFile * src , GFile * dest_dir , gboolean same_fs , char * * dest_fs_type , GHashTable * debuting_files , GdkPoint * position , GList * * fallback_files , int files_left ) {\n GFile * dest , * new_dest ;\n g_autofree gchar * dest_uri = NULL ;\n GError * error ;\n CommonJob * job ;\n gboolean overwrite ;\n char * primary , * secondary , * details ;\n int response ;\n GFileCopyFlags flags ;\n MoveFileCopyFallback * fallback ;\n gboolean handled_invalid_filename ;\n overwrite = FALSE ;\n handled_invalid_filename = * dest_fs_type != NULL ;\n job = ( CommonJob * ) move_job ;\n dest = get_target_file ( src , dest_dir , * dest_fs_type , same_fs ) ;\n if ( test_dir_is_parent ( dest_dir , src ) ) {\n if ( job -> skip_all_error ) {\n goto out ;\n }\n primary = move_job -> is_move ? g_strdup ( _ ( \"You cannot move a folder into itself.\" ) ) : g_strdup ( _ ( \"You cannot copy a folder into itself.\" ) ) ;\n secondary = g_strdup ( _ ( \"The destination folder is inside the source folder.\" ) ) ;\n response = run_warning ( job , primary , secondary , NULL , files_left > 1 , CANCEL , SKIP_ALL , SKIP , NULL ) ;\n if ( response == 0 || response == GTK_RESPONSE_DELETE_EVENT ) {\n abort_job ( job ) ;\n }\n else if ( response == 1 ) {\n job -> skip_all_error = TRUE ;\n }\n else if ( response == 2 ) {\n }\n else {\n g_assert_not_reached ( ) ;\n }\n goto out ;\n }\n retry : flags = G_FILE_COPY_NOFOLLOW_SYMLINKS | G_FILE_COPY_NO_FALLBACK_FOR_MOVE ;\n if ( overwrite ) {\n flags |= G_FILE_COPY_OVERWRITE ;\n }\n error = NULL ;\n if ( g_file_move ( src , dest , flags , job -> cancellable , NULL , NULL , & error ) ) {\n if ( debuting_files ) {\n g_hash_table_replace ( debuting_files , g_object_ref ( dest ) , GINT_TO_POINTER ( TRUE ) ) ;\n }\n nautilus_file_changes_queue_file_moved ( src , dest ) ;\n dest_uri = g_file_get_uri ( dest ) ;\n if ( position ) {\n nautilus_file_changes_queue_schedule_position_set ( dest , * position , job -> screen_num ) ;\n }\n else if ( eel_uri_is_desktop ( dest_uri ) ) {\n nautilus_file_changes_queue_schedule_position_remove ( dest ) ;\n }\n if ( job -> undo_info != NULL ) {\n nautilus_file_undo_info_ext_add_origin_target_pair ( NAUTILUS_FILE_UNDO_INFO_EXT ( job -> undo_info ) , src , dest ) ;\n }\n return ;\n }\n if ( IS_IO_ERROR ( error , INVALID_FILENAME ) && ! handled_invalid_filename ) {\n g_error_free ( error ) ;\n handled_invalid_filename = TRUE ;\n g_assert ( * dest_fs_type == NULL ) ;\n * dest_fs_type = query_fs_type ( dest_dir , job -> cancellable ) ;\n new_dest = get_target_file ( src , dest_dir , * dest_fs_type , same_fs ) ;\n if ( ! g_file_equal ( dest , new_dest ) ) {\n g_object_unref ( dest ) ;\n dest = new_dest ;\n goto retry ;\n }\n else {\n g_object_unref ( new_dest ) ;\n }\n }\n else if ( ! overwrite && IS_IO_ERROR ( error , EXISTS ) ) {\n gboolean is_merge ;\n FileConflictResponse * response ;\n g_error_free ( error ) ;\n is_merge = FALSE ;\n if ( is_dir ( dest ) && is_dir ( src ) ) {\n is_merge = TRUE ;\n }\n if ( ( is_merge && job -> merge_all ) || ( ! is_merge && job -> replace_all ) ) {\n overwrite = TRUE ;\n goto retry ;\n }\n if ( job -> skip_all_conflict ) {\n goto out ;\n }\n response = handle_copy_move_conflict ( job , src , dest , dest_dir ) ;\n if ( response -> id == GTK_RESPONSE_CANCEL || response -> id == GTK_RESPONSE_DELETE_EVENT ) {\n file_conflict_response_free ( response ) ;\n abort_job ( job ) ;\n }\n else if ( response -> id == CONFLICT_RESPONSE_SKIP ) {\n if ( response -> apply_to_all ) {\n job -> skip_all_conflict = TRUE ;\n }\n file_conflict_response_free ( response ) ;\n }\n else if ( response -> id == CONFLICT_RESPONSE_REPLACE ) {\n if ( response -> apply_to_all ) {\n if ( is_merge ) {\n job -> merge_all = TRUE ;\n }\n else {\n job -> replace_all = TRUE ;\n }\n }\n overwrite = TRUE ;\n file_conflict_response_free ( response ) ;\n goto retry ;\n }\n else if ( response -> id == CONFLICT_RESPONSE_RENAME ) {\n g_object_unref ( dest ) ;\n dest = get_target_file_for_display_name ( dest_dir , response -> new_name ) ;\n file_conflict_response_free ( response ) ;\n goto retry ;\n }\n else {\n g_assert_not_reached ( ) ;\n }\n }\n else if ( IS_IO_ERROR ( error , WOULD_RECURSE ) || IS_IO_ERROR ( error , WOULD_MERGE ) || IS_IO_ERROR ( error , NOT_SUPPORTED ) || ( overwrite && IS_IO_ERROR ( error , IS_DIRECTORY ) ) ) {\n g_error_free ( error ) ;\n fallback = move_copy_file_callback_new ( src , overwrite , position ) ;\n * fallback_files = g_list_prepend ( * fallback_files , fallback ) ;\n }\n else if ( IS_IO_ERROR ( error , CANCELLED ) ) {\n g_error_free ( error ) ;\n }\n else {\n if ( job -> skip_all_error ) {\n g_error_free ( error ) ;\n goto out ;\n }\n primary = f ( _ ( \"Error while moving \u201c%B\u201d.\" ) , src ) ;\n secondary = f ( _ ( \"There was an error moving the file into %F.\" ) , dest_dir ) ;\n details = error -> message ;\n response = run_warning ( job , primary , secondary , details , files_left > 1 , CANCEL , SKIP_ALL , SKIP , NULL ) ;\n g_error_free ( error ) ;\n if ( response == 0 || response == GTK_RESPONSE_DELETE_EVENT ) {\n abort_job ( job ) ;\n }\n else if ( response == 1 ) {\n job -> skip_all_error = TRUE ;\n }\n else if ( response == 2 ) {\n }\n else {\n g_assert_not_reached ( ) ;\n }\n }\n out : g_object_unref ( dest ) ;\n }"}
{"idx": 6098, "target": 0, "func": "static int dissect_h225_SEQUENCE_OF_GenericData ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_SEQUENCE_OF_GenericData , SEQUENCE_OF_GenericData_sequence_of ) ;\n return offset ;\n }"}
{"idx": 6099, "target": 0, "func": "int32_t mime_field_value_get_int ( const MIMEField * field ) {\n int length ;\n const char * str = mime_field_value_get ( field , & length ) ;\n return mime_parse_int ( str , str + length ) ;\n }"}
{"idx": 6100, "target": 0, "func": "static inline void SetPixelGray ( const Image * restrict image , const Quantum gray , Quantum * restrict pixel ) {\n pixel [ image -> channel_map [ GrayPixelChannel ] . offset ] = gray ;\n }"}
{"idx": 6101, "target": 0, "func": "static cmsTagTypeSignature DecideXYZtype ( cmsFloat64Number ICCVersion , const void * Data ) {\n return cmsSigXYZType ;\n cmsUNUSED_PARAMETER ( ICCVersion ) ;\n cmsUNUSED_PARAMETER ( Data ) ;\n }"}
{"idx": 6102, "target": 0, "func": "static inline float reminder ( float v , int x ) {\n return ( ( v / x ) - floor ( v / x ) ) * x ;\n }"}
{"idx": 6103, "target": 0, "func": "afs_int32 SPR_IsAMemberOf ( struct rx_call * call , afs_int32 uid , afs_int32 gid , afs_int32 * flag ) {\n afs_int32 code ;\n afs_int32 cid = ANONYMOUSID ;\n code = isAMemberOf ( call , uid , gid , flag , & cid ) ;\n osi_auditU ( call , PTS_IsMemOfEvent , code , AUD_LONG , uid , AUD_LONG , gid , AUD_END ) ;\n ViceLog ( 125 , ( \"PTS_IsAMemberOf: code %d cid %d uid %d gid %d\\n\" , code , cid , uid , gid ) ) ;\n return code ;\n }"}
{"idx": 6104, "target": 1, "func": "static int atrac1_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n AT1Ctx * q = avctx -> priv_data ;\n int ch , ret ;\n GetBitContext gb ;\n if ( buf_size < 212 * avctx -> channels ) {\n av_log ( avctx , AV_LOG_ERROR , \"Not enough data to decode!\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n frame -> nb_samples = AT1_SU_SAMPLES ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n for ( ch = 0 ;\n ch < avctx -> channels ;\n ch ++ ) {\n AT1SUCtx * su = & q -> SUs [ ch ] ;\n init_get_bits ( & gb , & buf [ 212 * ch ] , 212 * 8 ) ;\n ret = at1_parse_bsm ( & gb , su -> log2_block_count ) ;\n if ( ret < 0 ) return ret ;\n ret = at1_unpack_dequant ( & gb , su , q -> spec ) ;\n if ( ret < 0 ) return ret ;\n ret = at1_imdct_block ( su , q ) ;\n if ( ret < 0 ) return ret ;\n at1_subband_synthesis ( q , su , ( float * ) frame -> extended_data [ ch ] ) ;\n }\n * got_frame_ptr = 1 ;\n return avctx -> block_align ;\n }"}
{"idx": 6105, "target": 0, "func": "static void flush_queued_work ( CPUState * cpu ) {\n struct qemu_work_item * wi ;\n if ( cpu -> queued_work_first == NULL ) {\n return ;\n }\n while ( ( wi = cpu -> queued_work_first ) ) {\n cpu -> queued_work_first = wi -> next ;\n wi -> func ( wi -> data ) ;\n wi -> done = true ;\n }\n cpu -> queued_work_last = NULL ;\n qemu_cond_broadcast ( & qemu_work_cond ) ;\n }"}
{"idx": 6106, "target": 0, "func": "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 ) {\n uint8_t comp_pred [ m * n ] ;\n vp9_comp_avg_pred ( comp_pred , second_pred , m , n , ref , ref_stride ) ;\n return sad ( src , src_stride , comp_pred , m , m , n ) ;\n \\ }\n # define sadMxNxK ( m , n , k ) void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 ) sadMxN ( 16 , 32 ) sadMxNx4D ( 16 , 32 ) sadMxN ( 16 , 16 )"}
{"idx": 6107, "target": 0, "func": "static int dissect_h245_H223AL1MParameters ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_H223AL1MParameters , H223AL1MParameters_sequence ) ;\n return offset ;\n }"}
{"idx": 6108, "target": 0, "func": "int qemuMonitorJSONSetMigrationDowntime ( qemuMonitorPtr mon , unsigned long long downtime ) {\n int ret ;\n virJSONValuePtr cmd ;\n virJSONValuePtr reply = NULL ;\n cmd = qemuMonitorJSONMakeCommand ( \"migrate_set_downtime\" , \"d:value\" , downtime / 1000.0 , NULL ) ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 6109, "target": 0, "func": "void spgcostestimate ( PlannerInfo * root , IndexPath * path , double loop_count , Cost * indexStartupCost , Cost * indexTotalCost , Selectivity * indexSelectivity , double * indexCorrelation ) {\n IndexOptInfo * index = path -> indexinfo ;\n List * qinfos ;\n GenericCosts costs ;\n Cost descentCost ;\n qinfos = deconstruct_indexquals ( path ) ;\n MemSet ( & costs , 0 , sizeof ( costs ) ) ;\n genericcostestimate ( root , path , loop_count , qinfos , & costs ) ;\n if ( index -> tree_height < 0 ) {\n if ( index -> pages > 1 ) index -> tree_height = ( int ) ( log ( index -> pages ) / log ( 100.0 ) ) ;\n else index -> tree_height = 0 ;\n }\n if ( index -> tuples > 1 ) {\n descentCost = ceil ( log ( index -> tuples ) ) * cpu_operator_cost ;\n costs . indexStartupCost += descentCost ;\n costs . indexTotalCost += costs . num_sa_scans * descentCost ;\n }\n descentCost = ( index -> tree_height + 1 ) * 50.0 * cpu_operator_cost ;\n costs . indexStartupCost += descentCost ;\n costs . indexTotalCost += costs . num_sa_scans * descentCost ;\n * indexStartupCost = costs . indexStartupCost ;\n * indexTotalCost = costs . indexTotalCost ;\n * indexSelectivity = costs . indexSelectivity ;\n * indexCorrelation = costs . indexCorrelation ;\n }"}
{"idx": 6110, "target": 1, "func": "static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 6111, "target": 0, "func": "static bool gincost_pattern ( IndexOptInfo * index , int indexcol , Oid clause_op , Datum query , GinQualCounts * counts ) {\n Oid extractProcOid ;\n Oid collation ;\n int strategy_op ;\n Oid lefttype , righttype ;\n int32 nentries = 0 ;\n bool * partial_matches = NULL ;\n Pointer * extra_data = NULL ;\n bool * nullFlags = NULL ;\n int32 searchMode = GIN_SEARCH_MODE_DEFAULT ;\n int32 i ;\n get_op_opfamily_properties ( clause_op , index -> opfamily [ indexcol ] , false , & strategy_op , & lefttype , & righttype ) ;\n extractProcOid = get_opfamily_proc ( index -> opfamily [ indexcol ] , index -> opcintype [ indexcol ] , index -> opcintype [ indexcol ] , GIN_EXTRACTQUERY_PROC ) ;\n if ( ! OidIsValid ( extractProcOid ) ) {\n elog ( ERROR , \"missing support function %d for attribute %d of index \\\"%s\\\"\" , GIN_EXTRACTQUERY_PROC , indexcol + 1 , get_rel_name ( index -> indexoid ) ) ;\n }\n if ( OidIsValid ( index -> indexcollations [ indexcol ] ) ) collation = index -> indexcollations [ indexcol ] ;\n else collation = DEFAULT_COLLATION_OID ;\n OidFunctionCall7Coll ( extractProcOid , collation , query , PointerGetDatum ( & nentries ) , UInt16GetDatum ( strategy_op ) , PointerGetDatum ( & partial_matches ) , PointerGetDatum ( & extra_data ) , PointerGetDatum ( & nullFlags ) , PointerGetDatum ( & searchMode ) ) ;\n if ( nentries <= 0 && searchMode == GIN_SEARCH_MODE_DEFAULT ) {\n return false ;\n }\n for ( i = 0 ;\n i < nentries ;\n i ++ ) {\n if ( partial_matches && partial_matches [ i ] ) counts -> partialEntries += 100 ;\n else counts -> exactEntries ++ ;\n counts -> searchEntries ++ ;\n }\n if ( searchMode == GIN_SEARCH_MODE_INCLUDE_EMPTY ) {\n counts -> exactEntries ++ ;\n counts -> searchEntries ++ ;\n }\n else if ( searchMode != GIN_SEARCH_MODE_DEFAULT ) {\n counts -> haveFullScan = true ;\n }\n return true ;\n }"}
{"idx": 6112, "target": 0, "func": "unpeer_node * create_unpeer_node ( address_node * addr ) {\n unpeer_node * my_node ;\n u_int u ;\n char * pch ;\n my_node = emalloc_zero ( sizeof ( * my_node ) ) ;\n pch = addr -> address ;\n while ( * pch && isdigit ( * pch ) ) pch ++ ;\n if ( ! * pch && 1 == sscanf ( addr -> address , \"%u\" , & u ) && u <= ASSOCID_MAX ) {\n my_node -> assocID = ( associd_t ) u ;\n destroy_address_node ( addr ) ;\n my_node -> addr = NULL ;\n }\n else {\n my_node -> assocID = 0 ;\n my_node -> addr = addr ;\n }\n return my_node ;\n }"}
{"idx": 6113, "target": 0, "func": "static gboolean destroy_srcdsc ( gpointer k _U_ , gpointer v , gpointer p _U_ ) {\n k12_src_desc_t * rec = ( k12_src_desc_t * ) v ;\n g_free ( rec -> input_name ) ;\n g_free ( rec -> stack_file ) ;\n g_free ( rec ) ;\n return TRUE ;\n }"}
{"idx": 6114, "target": 0, "func": "static VALUE ossl_asn1_ ## klass ( int argc , VALUE * argv , VALUE self ) \\ {\n return rb_funcall3 ( cASN1 ## klass , rb_intern ( \"new\" ) , argc , argv ) ;\n }\n OSSL_ASN1_IMPL_FACTORY_METHOD ( Boolean ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Integer ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Enumerated ) OSSL_ASN1_IMPL_FACTORY_METHOD ( BitString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( OctetString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( UTF8String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( NumericString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( PrintableString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( T61String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( VideotexString )"}
{"idx": 6115, "target": 0, "func": "static char * summary_template ( tvbuff_t * tvb , int offset ) {\n const char * objtype ;\n if ( tvb_get_guint8 ( tvb , offset + 2 ) == RSVP_CLASS_FILTER_SPEC ) objtype = \"FILTERSPEC\" ;\n else objtype = \"SENDER TEMPLATE\" ;\n switch ( tvb_get_guint8 ( tvb , offset + 3 ) ) {\n case 1 : return wmem_strdup_printf ( wmem_packet_scope ( ) , \"%s: IPv4, Sender %s, Port %d. \" , objtype , tvb_ip_to_str ( tvb , offset + 4 ) , tvb_get_ntohs ( tvb , offset + 10 ) ) ;\n break ;\n case 7 : return wmem_strdup_printf ( wmem_packet_scope ( ) , \"%s: IPv4-LSP, Tunnel Source: %s, Short Call ID: %d, LSP ID: %d. \" , objtype , tvb_ip_to_str ( tvb , offset + 4 ) , tvb_get_ntohs ( tvb , offset + 8 ) , tvb_get_ntohs ( tvb , offset + 10 ) ) ;\n break ;\n case 8 : return wmem_strdup_printf ( wmem_packet_scope ( ) , \"%s: IPv6-LSP, Tunnel Source: %s, Short Call ID: %d, LSP ID: %d. \" , objtype , tvb_ip6_to_str ( tvb , offset + 4 ) , tvb_get_ntohs ( tvb , offset + 20 ) , tvb_get_ntohs ( tvb , offset + 22 ) ) ;\n break ;\n case 9 : return wmem_strdup_printf ( wmem_packet_scope ( ) , \"%s: IPv4-Aggregate, Aggregator %s. \" , objtype , tvb_ip_to_str ( tvb , offset + 4 ) ) ;\n break ;\n default : return wmem_strdup_printf ( wmem_packet_scope ( ) , \"%s: Type %d. \" , objtype , tvb_get_guint8 ( tvb , offset + 3 ) ) ;\n break ;\n }\n DISSECTOR_ASSERT_NOT_REACHED ( ) ;\n }"}
{"idx": 6116, "target": 0, "func": "TSMLoc TSHttpHdrCreate ( TSMBuffer bufp ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n HTTPHdr h ;\n h . m_heap = ( ( HdrHeapSDKHandle * ) bufp ) -> m_heap ;\n h . create ( HTTP_TYPE_UNKNOWN ) ;\n return ( TSMLoc ) ( h . m_http ) ;\n }"}
{"idx": 6117, "target": 0, "func": "static void alloc_tree_contexts ( VP9_COMMON * cm , PC_TREE * tree , int num_4x4_blk ) {\n alloc_mode_context ( cm , num_4x4_blk , & tree -> none ) ;\n alloc_mode_context ( cm , num_4x4_blk / 2 , & tree -> horizontal [ 0 ] ) ;\n alloc_mode_context ( cm , num_4x4_blk / 2 , & tree -> vertical [ 0 ] ) ;\n alloc_mode_context ( cm , num_4x4_blk / 2 , & tree -> horizontal [ 1 ] ) ;\n alloc_mode_context ( cm , num_4x4_blk / 2 , & tree -> vertical [ 1 ] ) ;\n }"}
{"idx": 6118, "target": 0, "func": "static int dissect_CPMFindIndices ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * parent_tree , gboolean in , void * data _U_ ) {\n gint offset = 16 ;\n proto_item * item ;\n proto_tree * tree ;\n col_append_str ( pinfo -> cinfo , COL_INFO , \"FindIndices\" ) ;\n item = proto_tree_add_item ( parent_tree , hf_mswsp_msg , tvb , offset , - 1 , ENC_NA ) ;\n tree = proto_item_add_subtree ( item , ett_mswsp_msg ) ;\n proto_item_set_text ( item , \"FindIndices%s\" , in ? \"In\" : \"Out\" ) ;\n if ( in ) {\n guint32 cWids ;\n guint32 cDepthPrev ;\n cWids = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_msg_cpmfindindices_cwids , tvb , offset , 4 , cWids ) ;\n offset += 4 ;\n cDepthPrev = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_msg_cpmfindindices_cdepthprev , tvb , offset , 4 , cDepthPrev ) ;\n offset += 4 ;\n offset = parse_uin32_array ( tvb , offset , tree , cWids , \"pwids\" ) ;\n parse_uin32_array ( tvb , offset , tree , cDepthPrev , \"prgiRowPrev\" ) ;\n }\n else {\n guint32 cDepthNext ;\n cDepthNext = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_msg_cpmfindindices_cdepthnext , tvb , offset , 4 , cDepthNext ) ;\n offset += 4 ;\n parse_uin32_array ( tvb , offset , tree , cDepthNext , \"prgiRowNext\" ) ;\n }\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 6119, "target": 0, "func": "static int rtp_event_packet ( void * ptr _U_ , packet_info * pinfo , epan_dissect_t * edt _U_ , const void * rtp_event_info ) {\n const struct _rtp_event_info * pi = ( const struct _rtp_event_info * ) rtp_event_info ;\n if ( pi -> info_setup_frame_num == 0 ) {\n return 0 ;\n }\n rtp_evt_frame_num = pinfo -> fd -> num ;\n rtp_evt = pi -> info_rtp_evt ;\n rtp_evt_end = pi -> info_end ;\n return 0 ;\n }"}
{"idx": 6120, "target": 0, "func": "void qbus_create_inplace ( BusState * bus , BusInfo * info , DeviceState * parent , const char * name ) {\n char * buf ;\n int i , len ;\n bus -> info = info ;\n bus -> parent = parent ;\n if ( name ) {\n bus -> name = qemu_strdup ( name ) ;\n }\n else if ( parent && parent -> id ) {\n len = strlen ( parent -> id ) + 16 ;\n buf = qemu_malloc ( len ) ;\n snprintf ( buf , len , \"%s.%d\" , parent -> id , parent -> num_child_bus ) ;\n bus -> name = buf ;\n }\n else {\n len = strlen ( info -> name ) + 16 ;\n buf = qemu_malloc ( len ) ;\n len = snprintf ( buf , len , \"%s.%d\" , info -> name , parent ? parent -> num_child_bus : 0 ) ;\n for ( i = 0 ;\n i < len ;\n i ++ ) buf [ i ] = qemu_tolower ( buf [ i ] ) ;\n bus -> name = buf ;\n }\n QLIST_INIT ( & bus -> children ) ;\n if ( parent ) {\n QLIST_INSERT_HEAD ( & parent -> child_bus , bus , sibling ) ;\n parent -> num_child_bus ++ ;\n }\n }"}
{"idx": 6121, "target": 0, "func": "static guint16 dissect_rsvp_error_value ( proto_tree * ti , tvbuff_t * tvb , int offset , guint8 error_code ) {\n guint16 error_val ;\n guint8 error_class , error_ctype ;\n value_string_ext * rsvp_error_vals_ext_p = NULL ;\n error_val = tvb_get_ntohs ( tvb , offset ) ;\n switch ( error_code ) {\n case RSVP_ERROR_ADMISSION : rsvp_error_vals_ext_p = & rsvp_admission_control_error_vals_ext ;\n break ;\n case RSVP_ERROR_POLICY : rsvp_error_vals_ext_p = & rsvp_policy_control_error_vals_ext ;\n break ;\n case RSVP_ERROR_TRAFFIC : rsvp_error_vals_ext_p = & rsvp_traffic_control_error_vals_ext ;\n break ;\n case RSVP_ERROR_ROUTING : rsvp_error_vals_ext_p = & rsvp_routing_error_vals_ext ;\n break ;\n case RSVP_ERROR_NOTIFY : rsvp_error_vals_ext_p = & rsvp_notify_error_vals_ext ;\n break ;\n case RSVP_ERROR_DIFFSERV : rsvp_error_vals_ext_p = & rsvp_diffserv_error_vals_ext ;\n break ;\n case RSVP_ERROR_DSTE : rsvp_error_vals_ext_p = & rsvp_diffserv_aware_te_error_vals_ext ;\n break ;\n case RSVP_ERROR_CALL_MGMT : rsvp_error_vals_ext_p = & rsvp_call_mgmt_error_vals_ext ;\n break ;\n }\n switch ( error_code ) {\n case RSVP_ERROR_ADMISSION : case RSVP_ERROR_TRAFFIC : if ( ( error_val & 0xc0 ) == 0 ) {\n DISSECTOR_ASSERT ( rsvp_error_vals_ext_p != NULL ) ;\n proto_tree_add_uint_format_value ( ti , hf_rsvp_error_value , tvb , offset , 2 , error_val , \"%s (%u)\" , val_to_str_ext ( error_val , rsvp_error_vals_ext_p , \"Unknown (%d)\" ) , error_val ) ;\n }\n else if ( ( error_val & 0xc0 ) == 0x80 ) {\n proto_tree_add_uint_format_value ( ti , hf_rsvp_error_value , tvb , offset , 2 , error_val , \"Organization specific subcode (%u)\" , error_val ) ;\n }\n else if ( ( error_val & 0xc0 ) == 0xc0 ) {\n proto_tree_add_uint_format_value ( ti , hf_rsvp_error_value , tvb , offset , 2 , error_val , \"Service specific subcode (%u)\" , error_val ) ;\n }\n break ;\n case RSVP_ERROR_UNKNOWN_CLASS : case RSVP_ERROR_UNKNOWN_C_TYPE : error_class = error_val / 256 ;\n error_ctype = error_val % 256 ;\n proto_tree_add_uint_format_value ( ti , hf_rsvp_class , tvb , offset , 2 , error_class , \"%u (%s) - CType: %u\" , error_class , val_to_str_ext_const ( error_class , & rsvp_class_vals_ext , \"Unknown\" ) , error_ctype ) ;\n break ;\n case RSVP_ERROR_POLICY : case RSVP_ERROR_NOTIFY : case RSVP_ERROR_ROUTING : case RSVP_ERROR_DIFFSERV : case RSVP_ERROR_DSTE : case RSVP_ERROR_CALL_MGMT : DISSECTOR_ASSERT ( rsvp_error_vals_ext_p != NULL ) ;\n proto_tree_add_uint_format_value ( ti , hf_rsvp_error_value , tvb , offset , 2 , error_val , \"%s (%u)\" , val_to_str_ext ( error_val , rsvp_error_vals_ext_p , \"Unknown (%d)\" ) , error_val ) ;\n break ;\n default : proto_tree_add_uint_format_value ( ti , hf_rsvp_error_value , tvb , offset , 2 , error_val , \"%u\" , error_val ) ;\n break ;\n }\n return error_val ;\n }"}
{"idx": 6122, "target": 0, "func": "static void prep_machine_init ( void ) {\n qemu_register_machine ( & prep_machine ) ;\n }"}
{"idx": 6123, "target": 1, "func": "static void free_picture ( MpegEncContext * s , Picture * pic ) {\n int i ;\n if ( pic -> f . data [ 0 ] && pic -> f . type != FF_BUFFER_TYPE_SHARED ) {\n free_frame_buffer ( s , pic ) ;\n }\n av_freep ( & pic -> mb_var ) ;\n av_freep ( & pic -> mc_mb_var ) ;\n av_freep ( & pic -> mb_mean ) ;\n av_freep ( & pic -> f . mbskip_table ) ;\n av_freep ( & pic -> qscale_table_base ) ;\n pic -> f . qscale_table = NULL ;\n av_freep ( & pic -> mb_type_base ) ;\n pic -> f . mb_type = NULL ;\n av_freep ( & pic -> f . dct_coeff ) ;\n av_freep ( & pic -> f . pan_scan ) ;\n pic -> f . mb_type = NULL ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n av_freep ( & pic -> motion_val_base [ i ] ) ;\n av_freep ( & pic -> f . ref_index [ i ] ) ;\n pic -> f . motion_val [ i ] = NULL ;\n }\n if ( pic -> f . type == FF_BUFFER_TYPE_SHARED ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n pic -> f . base [ i ] = pic -> f . data [ i ] = NULL ;\n }\n pic -> f . type = 0 ;\n }\n }"}
{"idx": 6124, "target": 0, "func": "static void cirrus_write_hidden_dac ( CirrusVGAState * s , int reg_value ) {\n if ( s -> cirrus_hidden_dac_lockindex == 4 ) {\n s -> cirrus_hidden_dac_data = reg_value ;\n # if defined ( DEBUG_CIRRUS ) printf ( \"cirrus: outport hidden DAC, value %02x\\n\" , reg_value ) ;\n # endif }\n s -> cirrus_hidden_dac_lockindex = 0 ;\n }"}
{"idx": 6125, "target": 0, "func": "static ossl_inline void lh_ ## type ## _node_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _node_usage_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_usage_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING )"}
{"idx": 6126, "target": 0, "func": "static void CnvExtClose ( NewConverter * cnvData ) {\n CnvExtData * extData = ( CnvExtData * ) cnvData ;\n if ( extData != NULL ) {\n utm_close ( extData -> toUTable ) ;\n utm_close ( extData -> toUUChars ) ;\n utm_close ( extData -> fromUTableUChars ) ;\n utm_close ( extData -> fromUTableValues ) ;\n utm_close ( extData -> fromUBytes ) ;\n uprv_free ( extData ) ;\n }\n }"}
{"idx": 6127, "target": 0, "func": "static void evhttp_get_body ( struct evhttp_connection * evcon , struct evhttp_request * req ) {\n const char * xfer_enc ;\n if ( req -> kind == EVHTTP_REQUEST && req -> type != EVHTTP_REQ_POST ) {\n evhttp_connection_done ( evcon ) ;\n return ;\n }\n evcon -> state = EVCON_READING_BODY ;\n xfer_enc = evhttp_find_header ( req -> input_headers , \"Transfer-Encoding\" ) ;\n if ( xfer_enc != NULL && strcasecmp ( xfer_enc , \"chunked\" ) == 0 ) {\n req -> chunked = 1 ;\n req -> ntoread = - 1 ;\n }\n else {\n if ( evhttp_get_body_length ( req ) == - 1 ) {\n evhttp_connection_fail ( evcon , EVCON_HTTP_INVALID_HEADER ) ;\n return ;\n }\n }\n evhttp_read_body ( evcon , req ) ;\n }"}
{"idx": 6128, "target": 0, "func": "void ff_mpeg4_init_direct_mv ( MpegEncContext * s ) {\n int i ;\n for ( i = 0 ;\n i < tab_size ;\n i ++ ) {\n s -> direct_scale_mv [ 0 ] [ i ] = ( i - tab_bias ) * s -> pb_time / s -> pp_time ;\n s -> direct_scale_mv [ 1 ] [ i ] = ( i - tab_bias ) * ( s -> pb_time - s -> pp_time ) / s -> pp_time ;\n }\n }"}
{"idx": 6129, "target": 0, "func": "bool RunIdentifySystem ( PGconn * conn , char * * sysid , TimeLineID * starttli , XLogRecPtr * startpos , char * * db_name ) {\n PGresult * res ;\n uint32 hi , lo ;\n Assert ( conn != NULL ) ;\n res = PQexec ( conn , \"IDENTIFY_SYSTEM\" ) ;\n if ( PQresultStatus ( res ) != PGRES_TUPLES_OK ) {\n fprintf ( stderr , _ ( \"%s: could not send replication command \\\"%s\\\": %s\" ) , progname , \"IDENTIFY_SYSTEM\" , PQerrorMessage ( conn ) ) ;\n PQclear ( res ) ;\n return false ;\n }\n if ( PQntuples ( res ) != 1 || PQnfields ( res ) < 3 ) {\n fprintf ( stderr , _ ( \"%s: could not identify system: got %d rows and %d fields, expected %d rows and %d or more fields\\n\" ) , progname , PQntuples ( res ) , PQnfields ( res ) , 1 , 3 ) ;\n PQclear ( res ) ;\n return false ;\n }\n if ( sysid != NULL ) * sysid = pg_strdup ( PQgetvalue ( res , 0 , 0 ) ) ;\n if ( starttli != NULL ) * starttli = atoi ( PQgetvalue ( res , 0 , 1 ) ) ;\n if ( startpos != NULL ) {\n if ( sscanf ( PQgetvalue ( res , 0 , 2 ) , \"%X/%X\" , & hi , & lo ) != 2 ) {\n fprintf ( stderr , _ ( \"%s: could not parse transaction log location \\\"%s\\\"\\n\" ) , progname , PQgetvalue ( res , 0 , 2 ) ) ;\n PQclear ( res ) ;\n return false ;\n }\n * startpos = ( ( uint64 ) hi ) << 32 | lo ;\n }\n if ( db_name != NULL ) {\n * db_name = NULL ;\n if ( PQserverVersion ( conn ) >= 90400 ) {\n if ( PQnfields ( res ) < 4 ) {\n fprintf ( stderr , _ ( \"%s: could not identify system: got %d rows and %d fields, expected %d rows and %d or more fields\\n\" ) , progname , PQntuples ( res ) , PQnfields ( res ) , 1 , 4 ) ;\n PQclear ( res ) ;\n return false ;\n }\n if ( ! PQgetisnull ( res , 0 , 3 ) ) * db_name = pg_strdup ( PQgetvalue ( res , 0 , 3 ) ) ;\n }\n }\n PQclear ( res ) ;\n return true ;\n }"}
{"idx": 6130, "target": 0, "func": "static err_status_t srtp_validate_rtp_header ( void * rtp_hdr , int * pkt_octet_len ) {\n srtp_hdr_t * hdr = ( srtp_hdr_t * ) rtp_hdr ;\n int rtp_header_len = octets_in_rtp_header + 4 * hdr -> cc ;\n if ( hdr -> x == 1 ) rtp_header_len += octets_in_rtp_extn_hdr ;\n if ( * pkt_octet_len < rtp_header_len ) return err_status_bad_param ;\n if ( hdr -> x == 1 ) {\n srtp_hdr_xtnd_t * xtn_hdr = ( srtp_hdr_xtnd_t * ) ( ( uint32_t * ) hdr + uint32s_in_rtp_header + hdr -> cc ) ;\n int profile_len = ntohs ( xtn_hdr -> length ) ;\n rtp_header_len += profile_len * 4 ;\n if ( * pkt_octet_len < rtp_header_len ) return err_status_bad_param ;\n }\n return err_status_ok ;\n }"}
{"idx": 6131, "target": 1, "func": "static void parse_mb_skip ( Wmv2Context * w ) {\n int mb_x , mb_y ;\n MpegEncContext * const s = & w -> s ;\n uint32_t * const mb_type = s -> current_picture_ptr -> f . mb_type ;\n w -> skip_type = get_bits ( & s -> gb , 2 ) ;\n switch ( w -> skip_type ) {\n case SKIP_TYPE_NONE : for ( mb_y = 0 ;\n mb_y < s -> mb_height ;\n mb_y ++ ) {\n for ( mb_x = 0 ;\n mb_x < s -> mb_width ;\n mb_x ++ ) {\n mb_type [ mb_y * s -> mb_stride + mb_x ] = MB_TYPE_16x16 | MB_TYPE_L0 ;\n }\n }\n break ;\n case SKIP_TYPE_MPEG : for ( mb_y = 0 ;\n mb_y < s -> mb_height ;\n mb_y ++ ) {\n for ( mb_x = 0 ;\n mb_x < s -> mb_width ;\n mb_x ++ ) {\n mb_type [ mb_y * s -> mb_stride + mb_x ] = ( get_bits1 ( & s -> gb ) ? MB_TYPE_SKIP : 0 ) | MB_TYPE_16x16 | MB_TYPE_L0 ;\n }\n }\n break ;\n case SKIP_TYPE_ROW : for ( mb_y = 0 ;\n mb_y < s -> mb_height ;\n mb_y ++ ) {\n if ( get_bits1 ( & s -> gb ) ) {\n for ( mb_x = 0 ;\n mb_x < s -> mb_width ;\n mb_x ++ ) {\n mb_type [ mb_y * s -> mb_stride + mb_x ] = MB_TYPE_SKIP | MB_TYPE_16x16 | MB_TYPE_L0 ;\n }\n }\n else {\n for ( mb_x = 0 ;\n mb_x < s -> mb_width ;\n mb_x ++ ) {\n mb_type [ mb_y * s -> mb_stride + mb_x ] = ( get_bits1 ( & s -> gb ) ? MB_TYPE_SKIP : 0 ) | MB_TYPE_16x16 | MB_TYPE_L0 ;\n }\n }\n }\n break ;\n case SKIP_TYPE_COL : for ( mb_x = 0 ;\n mb_x < s -> mb_width ;\n mb_x ++ ) {\n if ( get_bits1 ( & s -> gb ) ) {\n for ( mb_y = 0 ;\n mb_y < s -> mb_height ;\n mb_y ++ ) {\n mb_type [ mb_y * s -> mb_stride + mb_x ] = MB_TYPE_SKIP | MB_TYPE_16x16 | MB_TYPE_L0 ;\n }\n }\n else {\n for ( mb_y = 0 ;\n mb_y < s -> mb_height ;\n mb_y ++ ) {\n mb_type [ mb_y * s -> mb_stride + mb_x ] = ( get_bits1 ( & s -> gb ) ? MB_TYPE_SKIP : 0 ) | MB_TYPE_16x16 | MB_TYPE_L0 ;\n }\n }\n }\n break ;\n }\n }"}
{"idx": 6132, "target": 0, "func": "static const DataHeader * U_CALLCONV pointerTOCLookupFn ( const UDataMemory * pData , const char * name , int32_t * pLength , UErrorCode * pErrorCode ) {\n ( void ) pErrorCode ;\n if ( pData -> toc != NULL ) {\n const PointerTOC * toc = ( PointerTOC * ) pData -> toc ;\n int32_t number , count = ( int32_t ) toc -> count ;\n # if defined ( UDATA_DEBUG_DUMP ) for ( number = 0 ;\n number < count ;\n ++ number ) {\n fprintf ( stderr , \"\\tx%d: %s\\n\" , number , toc -> entry [ number ] . entryName ) ;\n }\n # endif number = pointerTOCPrefixBinarySearch ( name , toc -> entry , count ) ;\n if ( number >= 0 ) {\n # ifdef UDATA_DEBUG fprintf ( stderr , \"%s: Found.\\n\" , toc -> entry [ number ] . entryName ) ;\n # endif * pLength = - 1 ;\n return UDataMemory_normalizeDataPointer ( toc -> entry [ number ] . pHeader ) ;\n }\n else {\n # ifdef UDATA_DEBUG fprintf ( stderr , \"%s: Not found.\\n\" , name ) ;\n # endif return NULL ;\n }\n }\n else {\n return pData -> pHeader ;\n }\n }"}
{"idx": 6133, "target": 0, "func": "static void ctl_putts ( const char * tag , l_fp * ts ) {\n register char * cp ;\n register const char * cq ;\n char buffer [ 200 ] ;\n cp = buffer ;\n cq = tag ;\n while ( * cq != '\\0' ) * cp ++ = * cq ++ ;\n * cp ++ = '=' ;\n INSIST ( ( size_t ) ( cp - buffer ) < sizeof ( buffer ) ) ;\n snprintf ( cp , sizeof ( buffer ) - ( cp - buffer ) , \"0x%08x.%08x\" , ( u_int ) ts -> l_ui , ( u_int ) ts -> l_uf ) ;\n cp += strlen ( cp ) ;\n ctl_putdata ( buffer , ( unsigned ) ( cp - buffer ) , 0 ) ;\n }"}
{"idx": 6134, "target": 0, "func": "static int dissect_h245_MultiplexElement ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 82 \"../../asn1/h245/h245.cnf\" h223_mux_element * me = wmem_new ( wmem_file_scope ( ) , h223_mux_element ) ;\n h223_me -> next = me ;\n h223_me = me ;\n h223_me -> next = NULL ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MultiplexElement , MultiplexElement_sequence ) ;\n return offset ;\n }"}
{"idx": 6135, "target": 0, "func": "static void dec_usb_memory_use_count ( struct usb_memory * usbm , int * count ) {\n struct usb_dev_state * ps = usbm -> ps ;\n unsigned long flags ;\n spin_lock_irqsave ( & ps -> lock , flags ) ;\n -- * count ;\n if ( usbm -> urb_use_count == 0 && usbm -> vma_use_count == 0 ) {\n list_del ( & usbm -> memlist ) ;\n spin_unlock_irqrestore ( & ps -> lock , flags ) ;\n usb_free_coherent ( ps -> dev , usbm -> size , usbm -> mem , usbm -> dma_handle ) ;\n usbfs_decrease_memory_usage ( usbm -> size + sizeof ( struct usb_memory ) ) ;\n kfree ( usbm ) ;\n }\n else {\n spin_unlock_irqrestore ( & ps -> lock , flags ) ;\n }\n }"}
{"idx": 6136, "target": 0, "func": "static int aes_ocb_ctrl ( EVP_CIPHER_CTX * c , int type , int arg , void * ptr ) {\n EVP_AES_OCB_CTX * octx = EVP_C_DATA ( EVP_AES_OCB_CTX , c ) ;\n EVP_CIPHER_CTX * newc ;\n EVP_AES_OCB_CTX * new_octx ;\n switch ( type ) {\n case EVP_CTRL_INIT : octx -> key_set = 0 ;\n octx -> iv_set = 0 ;\n octx -> ivlen = EVP_CIPHER_CTX_iv_length ( c ) ;\n octx -> iv = EVP_CIPHER_CTX_iv_noconst ( c ) ;\n octx -> taglen = 16 ;\n octx -> data_buf_len = 0 ;\n octx -> aad_buf_len = 0 ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_IVLEN : if ( arg <= 0 || arg > 15 ) return 0 ;\n octx -> ivlen = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_TAG : if ( ! ptr ) {\n if ( arg < 0 || arg > 16 ) return 0 ;\n octx -> taglen = arg ;\n return 1 ;\n }\n if ( arg != octx -> taglen || EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( octx -> tag , ptr , arg ) ;\n return 1 ;\n case EVP_CTRL_AEAD_GET_TAG : if ( arg != octx -> taglen || ! EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( ptr , octx -> tag , arg ) ;\n return 1 ;\n case EVP_CTRL_COPY : newc = ( EVP_CIPHER_CTX * ) ptr ;\n new_octx = EVP_C_DATA ( EVP_AES_OCB_CTX , newc ) ;\n return CRYPTO_ocb128_copy_ctx ( & new_octx -> ocb , & octx -> ocb , & new_octx -> ksenc . ks , & new_octx -> ksdec . ks ) ;\n default : return - 1 ;\n }\n }"}
{"idx": 6137, "target": 0, "func": "static void query_info_callback ( GObject * source_object , GAsyncResult * res , gpointer user_data ) {\n NautilusDirectory * directory ;\n NautilusFile * get_info_file ;\n GFileInfo * info ;\n GetInfoState * state ;\n GError * error ;\n state = user_data ;\n if ( state -> directory == NULL ) {\n get_info_state_free ( state ) ;\n return ;\n }\n directory = nautilus_directory_ref ( state -> directory ) ;\n get_info_file = directory -> details -> get_info_file ;\n g_assert ( NAUTILUS_IS_FILE ( get_info_file ) ) ;\n directory -> details -> get_info_file = NULL ;\n directory -> details -> get_info_in_progress = NULL ;\n nautilus_file_ref ( get_info_file ) ;\n error = NULL ;\n info = g_file_query_info_finish ( G_FILE ( source_object ) , res , & error ) ;\n if ( info == NULL ) {\n if ( error -> domain == G_IO_ERROR && error -> code == G_IO_ERROR_NOT_FOUND ) {\n nautilus_file_mark_gone ( get_info_file ) ;\n }\n get_info_file -> details -> file_info_is_up_to_date = TRUE ;\n nautilus_file_clear_info ( get_info_file ) ;\n get_info_file -> details -> get_info_failed = TRUE ;\n get_info_file -> details -> get_info_error = error ;\n }\n else {\n nautilus_file_update_info ( get_info_file , info ) ;\n g_object_unref ( info ) ;\n }\n nautilus_file_changed ( get_info_file ) ;\n nautilus_file_unref ( get_info_file ) ;\n async_job_end ( directory , \"file info\" ) ;\n nautilus_directory_async_state_changed ( directory ) ;\n nautilus_directory_unref ( directory ) ;\n get_info_state_free ( state ) ;\n }"}
{"idx": 6138, "target": 0, "func": "static int test_choose_instruction ( xd3_stream * stream , int ignore ) {\n int i ;\n stream -> code_table = ( * stream -> code_table_func ) ( ) ;\n for ( i = 0 ;\n i < 256 ;\n i += 1 ) {\n const xd3_dinst * d = stream -> code_table + i ;\n xd3_rinst prev , inst ;\n CHECK ( d -> type1 > 0 ) ;\n memset ( & prev , 0 , sizeof ( prev ) ) ;\n memset ( & inst , 0 , sizeof ( inst ) ) ;\n if ( d -> type2 == 0 ) {\n inst . type = d -> type1 ;\n if ( ( inst . size = d -> size1 ) == 0 ) {\n inst . size = TESTBUFSIZE ;\n }\n XD3_CHOOSE_INSTRUCTION ( stream , NULL , & inst ) ;\n if ( inst . code2 != 0 || inst . code1 != i ) {\n stream -> msg = \"wrong single instruction\" ;\n return XD3_INTERNAL ;\n }\n }\n else {\n prev . type = d -> type1 ;\n prev . size = d -> size1 ;\n inst . type = d -> type2 ;\n inst . size = d -> size2 ;\n XD3_CHOOSE_INSTRUCTION ( stream , & prev , & inst ) ;\n if ( prev . code2 != i ) {\n stream -> msg = \"wrong double instruction\" ;\n return XD3_INTERNAL ;\n }\n }\n }\n return 0 ;\n }"}
{"idx": 6139, "target": 1, "func": "static int wma_decode_superframe ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n WMACodecContext * s = avctx -> priv_data ;\n int nb_frames , bit_offset , i , pos , len , ret ;\n uint8_t * q ;\n float * * samples ;\n int samples_offset ;\n tprintf ( avctx , \"***decode_superframe:\\n\" ) ;\n if ( buf_size == 0 ) {\n s -> last_superframe_len = 0 ;\n return 0 ;\n }\n if ( buf_size < avctx -> block_align ) {\n av_log ( avctx , AV_LOG_ERROR , \"Input packet size too small (%d < %d)\\n\" , buf_size , avctx -> block_align ) ;\n return AVERROR_INVALIDDATA ;\n }\n buf_size = avctx -> block_align ;\n init_get_bits ( & s -> gb , buf , buf_size * 8 ) ;\n if ( s -> use_bit_reservoir ) {\n skip_bits ( & s -> gb , 4 ) ;\n nb_frames = get_bits ( & s -> gb , 4 ) - ( s -> last_superframe_len <= 0 ) ;\n }\n else {\n nb_frames = 1 ;\n }\n frame -> nb_samples = nb_frames * s -> frame_len ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n samples = ( float * * ) frame -> extended_data ;\n samples_offset = 0 ;\n if ( s -> use_bit_reservoir ) {\n bit_offset = get_bits ( & s -> gb , s -> byte_offset_bits + 3 ) ;\n if ( bit_offset > get_bits_left ( & s -> gb ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid last frame bit offset %d > buf size %d (%d)\\n\" , bit_offset , get_bits_left ( & s -> gb ) , buf_size ) ;\n goto fail ;\n }\n if ( s -> last_superframe_len > 0 ) {\n if ( ( s -> last_superframe_len + ( ( bit_offset + 7 ) >> 3 ) ) > MAX_CODED_SUPERFRAME_SIZE ) goto fail ;\n q = s -> last_superframe + s -> last_superframe_len ;\n len = bit_offset ;\n while ( len > 7 ) {\n * q ++ = ( get_bits ) ( & s -> gb , 8 ) ;\n len -= 8 ;\n }\n if ( len > 0 ) {\n * q ++ = ( get_bits ) ( & s -> gb , len ) << ( 8 - len ) ;\n }\n memset ( q , 0 , FF_INPUT_BUFFER_PADDING_SIZE ) ;\n init_get_bits ( & s -> gb , s -> last_superframe , s -> last_superframe_len * 8 + bit_offset ) ;\n if ( s -> last_bitoffset > 0 ) skip_bits ( & s -> gb , s -> last_bitoffset ) ;\n if ( wma_decode_frame ( s , samples , samples_offset ) < 0 ) goto fail ;\n samples_offset += s -> frame_len ;\n nb_frames -- ;\n }\n pos = bit_offset + 4 + 4 + s -> byte_offset_bits + 3 ;\n if ( pos >= MAX_CODED_SUPERFRAME_SIZE * 8 || pos > buf_size * 8 ) return AVERROR_INVALIDDATA ;\n init_get_bits ( & s -> gb , buf + ( pos >> 3 ) , ( buf_size - ( pos >> 3 ) ) * 8 ) ;\n len = pos & 7 ;\n if ( len > 0 ) skip_bits ( & s -> gb , len ) ;\n s -> reset_block_lengths = 1 ;\n for ( i = 0 ;\n i < nb_frames ;\n i ++ ) {\n if ( wma_decode_frame ( s , samples , samples_offset ) < 0 ) goto fail ;\n samples_offset += s -> frame_len ;\n }\n pos = get_bits_count ( & s -> gb ) + ( ( bit_offset + 4 + 4 + s -> byte_offset_bits + 3 ) & ~ 7 ) ;\n s -> last_bitoffset = pos & 7 ;\n pos >>= 3 ;\n len = buf_size - pos ;\n if ( len > MAX_CODED_SUPERFRAME_SIZE || len < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"len %d invalid\\n\" , len ) ;\n goto fail ;\n }\n s -> last_superframe_len = len ;\n memcpy ( s -> last_superframe , buf + pos , len ) ;\n }\n else {\n if ( wma_decode_frame ( s , samples , samples_offset ) < 0 ) goto fail ;\n samples_offset += s -> frame_len ;\n }\n av_dlog ( s -> avctx , \"%d %d %d %d outbytes:%td eaten:%d\\n\" , s -> frame_len_bits , s -> block_len_bits , s -> frame_len , s -> block_len , ( int8_t * ) samples - ( int8_t * ) data , avctx -> block_align ) ;\n * got_frame_ptr = 1 ;\n return avctx -> block_align ;\n fail : s -> last_superframe_len = 0 ;\n return - 1 ;\n }"}
{"idx": 6140, "target": 0, "func": "static void print_pem_cert ( FILE * out , certificate_t * cert ) {\n chunk_t encoded ;\n if ( cert -> get_encoding ( cert , CERT_PEM , & encoded ) ) {\n fprintf ( out , \"%.*s\" , ( int ) encoded . len , encoded . ptr ) ;\n free ( encoded . ptr ) ;\n }\n }"}
{"idx": 6141, "target": 0, "func": "const char * proto_get_protocol_name ( const int proto_id ) {\n protocol_t * protocol ;\n protocol = find_protocol_by_id ( proto_id ) ;\n if ( protocol == NULL ) return NULL ;\n return protocol -> name ;\n }"}
{"idx": 6142, "target": 0, "func": "static void extract_job_on_completed ( AutoarExtractor * extractor , gpointer user_data ) {\n ExtractJob * extract_job = user_data ;\n GFile * output_file ;\n output_file = G_FILE ( extract_job -> output_files -> data ) ;\n nautilus_file_changes_queue_file_added ( output_file ) ;\n }"}
{"idx": 6143, "target": 0, "func": "static bool avx512_needed ( void * opaque ) {\n X86CPU * cpu = opaque ;\n CPUX86State * env = & cpu -> env ;\n unsigned int i ;\n for ( i = 0 ;\n i < NB_OPMASK_REGS ;\n i ++ ) {\n if ( env -> opmask_regs [ i ] ) {\n return true ;\n }\n }\n for ( i = 0 ;\n i < CPU_NB_REGS ;\n i ++ ) {\n # define ENV_XMM ( reg , field ) ( env -> xmm_regs [ reg ] . ZMM_Q ( field ) ) if ( ENV_XMM ( i , 4 ) || ENV_XMM ( i , 6 ) || ENV_XMM ( i , 5 ) || ENV_XMM ( i , 7 ) ) {\n return true ;\n }\n # ifdef TARGET_X86_64 if ( ENV_XMM ( i + 16 , 0 ) || ENV_XMM ( i + 16 , 1 ) || ENV_XMM ( i + 16 , 2 ) || ENV_XMM ( i + 16 , 3 ) || ENV_XMM ( i + 16 , 4 ) || ENV_XMM ( i + 16 , 5 ) || ENV_XMM ( i + 16 , 6 ) || ENV_XMM ( i + 16 , 7 ) ) {\n return true ;\n }\n # endif }\n return false ;\n }"}
{"idx": 6144, "target": 0, "func": "static int dissect_h225_DisengageReject ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_DisengageReject , DisengageReject_sequence ) ;\n return offset ;\n }"}
{"idx": 6145, "target": 1, "func": "static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 6146, "target": 0, "func": "static int64_t atol8 ( const char * p , unsigned char_cnt ) {\n int64_t l ;\n int digit ;\n l = 0 ;\n while ( char_cnt -- > 0 ) {\n if ( * p >= '0' && * p <= '7' ) digit = * p - '0' ;\n else return ( l ) ;\n p ++ ;\n l <<= 3 ;\n l |= digit ;\n }\n return ( l ) ;\n }"}
{"idx": 6147, "target": 0, "func": "void RestoreArchive ( Archive * AHX ) {\n ArchiveHandle * AH = ( ArchiveHandle * ) AHX ;\n RestoreOptions * ropt = AH -> public . ropt ;\n bool parallel_mode ;\n TocEntry * te ;\n OutputContext sav ;\n AH -> stage = STAGE_INITIALIZING ;\n if ( ropt -> createDB && ropt -> single_txn ) exit_horribly ( modulename , \"-C and -1 are incompatible options\\n\" ) ;\n parallel_mode = ( AH -> public . numWorkers > 1 && ropt -> useDB ) ;\n if ( parallel_mode ) {\n if ( AH -> ClonePtr == NULL || AH -> ReopenPtr == NULL ) exit_horribly ( modulename , \"parallel restore is not supported with this archive file format\\n\" ) ;\n if ( AH -> version < K_VERS_1_8 ) exit_horribly ( modulename , \"parallel restore is not supported with archives made by pre-8.0 pg_dump\\n\" ) ;\n ( AH -> ReopenPtr ) ( AH ) ;\n }\n # ifndef HAVE_LIBZ if ( AH -> compression != 0 && AH -> PrintTocDataPtr != NULL ) {\n for ( te = AH -> toc -> next ;\n te != AH -> toc ;\n te = te -> next ) {\n if ( te -> hadDumper && ( te -> reqs & REQ_DATA ) != 0 ) exit_horribly ( modulename , \"cannot restore from compressed archive (compression not supported in this installation)\\n\" ) ;\n }\n }\n # endif if ( AH -> tocsByDumpId == NULL ) buildTocEntryArrays ( AH ) ;\n if ( ropt -> useDB ) {\n ahlog ( AH , 1 , \"connecting to database for restore\\n\" ) ;\n if ( AH -> version < K_VERS_1_3 ) exit_horribly ( modulename , \"direct database connections are not supported in pre-1.3 archives\\n\" ) ;\n AHX -> minRemoteVersion = 0 ;\n AHX -> maxRemoteVersion = 999999 ;\n ConnectDatabase ( AHX , ropt -> dbname , ropt -> pghost , ropt -> pgport , ropt -> username , ropt -> promptPassword ) ;\n AH -> noTocComments = 1 ;\n }\n if ( ! ropt -> dataOnly ) {\n int impliedDataOnly = 1 ;\n for ( te = AH -> toc -> next ;\n te != AH -> toc ;\n te = te -> next ) {\n if ( ( te -> reqs & REQ_SCHEMA ) != 0 ) {\n impliedDataOnly = 0 ;\n break ;\n }\n }\n if ( impliedDataOnly ) {\n ropt -> dataOnly = impliedDataOnly ;\n ahlog ( AH , 1 , \"implied data-only restore\\n\" ) ;\n }\n }\n sav = SaveOutput ( AH ) ;\n if ( ropt -> filename || ropt -> compression ) SetOutput ( AH , ropt -> filename , ropt -> compression ) ;\n ahprintf ( AH , \"--\\n-- PostgreSQL database dump\\n--\\n\\n\" ) ;\n if ( AH -> archiveRemoteVersion ) ahprintf ( AH , \"-- Dumped from database version %s\\n\" , AH -> archiveRemoteVersion ) ;\n if ( AH -> archiveDumpVersion ) ahprintf ( AH , \"-- Dumped by pg_dump version %s\\n\" , AH -> archiveDumpVersion ) ;\n ahprintf ( AH , \"\\n\" ) ;\n if ( AH -> public . verbose ) dumpTimestamp ( AH , \"Started on\" , AH -> createDate ) ;\n if ( ropt -> single_txn ) {\n if ( AH -> connection ) StartTransaction ( AHX ) ;\n else ahprintf ( AH , \"BEGIN;\n\\n\\n\" ) ;\n }\n _doSetFixedOutputState ( AH ) ;\n AH -> stage = STAGE_PROCESSING ;\n if ( ropt -> dropSchema ) {\n for ( te = AH -> toc -> prev ;\n te != AH -> toc ;\n te = te -> prev ) {\n AH -> currentTE = te ;\n if ( ropt -> createDB ) {\n if ( strcmp ( te -> desc , \"DATABASE\" ) != 0 ) continue ;\n }\n else {\n if ( strcmp ( te -> desc , \"DATABASE\" ) == 0 ) continue ;\n }\n if ( ( ( te -> reqs & ( REQ_SCHEMA | REQ_DATA ) ) != 0 ) && te -> dropStmt ) {\n ahlog ( AH , 1 , \"dropping %s %s\\n\" , te -> desc , te -> tag ) ;\n _becomeOwner ( AH , te ) ;\n _selectOutputSchema ( AH , te -> namespace ) ;\n if ( * te -> dropStmt != '\\0' ) {\n if ( ! ropt -> if_exists ) {\n ahprintf ( AH , \"%s\" , te -> dropStmt ) ;\n }\n else {\n if ( strncmp ( te -> desc , \"BLOB\" , 4 ) == 0 ) {\n DropBlobIfExists ( AH , te -> catalogId . oid ) ;\n }\n else {\n char buffer [ 40 ] ;\n char * mark ;\n char * dropStmt = pg_strdup ( te -> dropStmt ) ;\n char * dropStmtPtr = dropStmt ;\n PQExpBuffer ftStmt = createPQExpBuffer ( ) ;\n if ( strncmp ( dropStmt , \"ALTER TABLE\" , 11 ) == 0 ) {\n appendPQExpBuffer ( ftStmt , \"ALTER TABLE IF EXISTS\" ) ;\n dropStmt = dropStmt + 11 ;\n }\n if ( strcmp ( te -> desc , \"DEFAULT\" ) == 0 ) appendPQExpBufferStr ( ftStmt , dropStmt ) ;\n else {\n if ( strcmp ( te -> desc , \"CONSTRAINT\" ) == 0 || strcmp ( te -> desc , \"CHECK CONSTRAINT\" ) == 0 || strcmp ( te -> desc , \"FK CONSTRAINT\" ) == 0 ) strcpy ( buffer , \"DROP CONSTRAINT\" ) ;\n else snprintf ( buffer , sizeof ( buffer ) , \"DROP %s\" , te -> desc ) ;\n mark = strstr ( dropStmt , buffer ) ;\n Assert ( mark != NULL ) ;\n * mark = '\\0' ;\n appendPQExpBuffer ( ftStmt , \"%s%s IF EXISTS%s\" , dropStmt , buffer , mark + strlen ( buffer ) ) ;\n }\n ahprintf ( AH , \"%s\" , ftStmt -> data ) ;\n destroyPQExpBuffer ( ftStmt ) ;\n pg_free ( dropStmtPtr ) ;\n }\n }\n }\n }\n }\n if ( AH -> currSchema ) free ( AH -> currSchema ) ;\n AH -> currSchema = NULL ;\n }\n if ( parallel_mode ) {\n ParallelState * pstate ;\n TocEntry pending_list ;\n par_list_header_init ( & pending_list ) ;\n restore_toc_entries_prefork ( AH ) ;\n Assert ( AH -> connection == NULL ) ;\n pstate = ParallelBackupStart ( AH ) ;\n restore_toc_entries_parallel ( AH , pstate , & pending_list ) ;\n ParallelBackupEnd ( AH , pstate ) ;\n restore_toc_entries_postfork ( AH , & pending_list ) ;\n Assert ( AH -> connection != NULL ) ;\n }\n else {\n for ( te = AH -> toc -> next ;\n te != AH -> toc ;\n te = te -> next ) ( void ) restore_toc_entry ( AH , te , false ) ;\n }\n for ( te = AH -> toc -> next ;\n te != AH -> toc ;\n te = te -> next ) {\n AH -> currentTE = te ;\n if ( ( te -> reqs & ( REQ_SCHEMA | REQ_DATA ) ) != 0 ) {\n if ( te -> namespace ) ahlog ( AH , 1 , \"setting owner and privileges for %s \\\"%s.%s\\\"\\n\" , te -> desc , te -> namespace , te -> tag ) ;\n else ahlog ( AH , 1 , \"setting owner and privileges for %s \\\"%s\\\"\\n\" , te -> desc , te -> tag ) ;\n _printTocEntry ( AH , te , false , true ) ;\n }\n }\n if ( ropt -> single_txn ) {\n if ( AH -> connection ) CommitTransaction ( AHX ) ;\n else ahprintf ( AH , \"COMMIT;\n\\n\\n\" ) ;\n }\n if ( AH -> public . verbose ) dumpTimestamp ( AH , \"Completed on\" , time ( NULL ) ) ;\n ahprintf ( AH , \"--\\n-- PostgreSQL database dump complete\\n--\\n\\n\" ) ;\n AH -> stage = STAGE_FINALIZING ;\n if ( ropt -> filename || ropt -> compression ) RestoreOutput ( AH , sav ) ;\n if ( ropt -> useDB ) DisconnectDatabase ( & AH -> public ) ;\n }"}
{"idx": 6148, "target": 0, "func": "static int qemuAgentIOProcessLine ( qemuAgentPtr mon , const char * line , qemuAgentMessagePtr msg ) {\n virJSONValuePtr obj = NULL ;\n int ret = - 1 ;\n VIR_DEBUG ( \"Line [%s]\" , line ) ;\n if ( ! ( obj = virJSONValueFromString ( line ) ) ) {\n if ( msg && msg -> sync && msg -> first ) {\n VIR_DEBUG ( \"Received garbage on sync\" ) ;\n msg -> finished = 1 ;\n return 0 ;\n }\n goto cleanup ;\n }\n if ( obj -> type != VIR_JSON_TYPE_OBJECT ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"Parsed JSON reply '%s' isn't an object\" ) , line ) ;\n goto cleanup ;\n }\n if ( virJSONValueObjectHasKey ( obj , \"QMP\" ) == 1 ) {\n ret = 0 ;\n }\n else if ( virJSONValueObjectHasKey ( obj , \"event\" ) == 1 ) {\n ret = qemuAgentIOProcessEvent ( mon , obj ) ;\n }\n else if ( virJSONValueObjectHasKey ( obj , \"error\" ) == 1 || virJSONValueObjectHasKey ( obj , \"return\" ) == 1 ) {\n if ( msg ) {\n if ( msg -> sync ) {\n unsigned long long id ;\n if ( virJSONValueObjectGetNumberUlong ( obj , \"return\" , & id ) < 0 ) {\n VIR_DEBUG ( \"Ignoring delayed reply on sync\" ) ;\n ret = 0 ;\n goto cleanup ;\n }\n VIR_DEBUG ( \"Guest returned ID: %llu\" , id ) ;\n if ( msg -> id != id ) {\n VIR_DEBUG ( \"Guest agent returned ID: %llu instead of %llu\" , id , msg -> id ) ;\n ret = 0 ;\n goto cleanup ;\n }\n }\n msg -> rxObject = obj ;\n msg -> finished = 1 ;\n obj = NULL ;\n }\n else {\n VIR_DEBUG ( \"Ignoring delayed reply\" ) ;\n }\n ret = 0 ;\n }\n else {\n virReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"Unknown JSON reply '%s'\" ) , line ) ;\n }\n cleanup : virJSONValueFree ( obj ) ;\n return ret ;\n }"}
{"idx": 6149, "target": 0, "func": "void archputs ( const char * s , Archive * AH ) {\n WriteData ( AH , s , strlen ( s ) ) ;\n return ;\n }"}
{"idx": 6150, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FramebustBlockBrowserTest , ModelAllowsRedirection ) {\n const GURL blocked_urls [ ] = {\n GURL ( chrome : : kChromeUIHistoryURL ) , GURL ( chrome : : kChromeUISettingsURL ) , GURL ( chrome : : kChromeUIVersionURL ) , }\n ;\n auto * helper = GetFramebustTabHelper ( ) ;\n for ( const GURL & url : blocked_urls ) {\n helper -> AddBlockedUrl ( url , base : : BindOnce ( & FramebustBlockBrowserTest : : OnClick , base : : Unretained ( this ) ) ) ;\n }\n EXPECT_TRUE ( helper -> HasBlockedUrls ( ) ) ;\n ContentSettingFramebustBlockBubbleModel framebust_block_bubble_model ( browser ( ) -> content_setting_bubble_model_delegate ( ) , GetWebContents ( ) , browser ( ) -> profile ( ) ) ;\n EXPECT_FALSE ( clicked_index_ . has_value ( ) ) ;\n EXPECT_FALSE ( clicked_url_ . has_value ( ) ) ;\n content : : TestNavigationObserver observer ( GetWebContents ( ) ) ;\n framebust_block_bubble_model . OnListItemClicked ( 1 , ui : : EF_LEFT_MOUSE_BUTTON ) ;\n observer . Wait ( ) ;\n EXPECT_TRUE ( clicked_index_ . has_value ( ) ) ;\n EXPECT_TRUE ( clicked_url_ . has_value ( ) ) ;\n EXPECT_EQ ( 1u , clicked_index_ . value ( ) ) ;\n EXPECT_EQ ( GURL ( chrome : : kChromeUISettingsURL ) , clicked_url_ . value ( ) ) ;\n EXPECT_FALSE ( helper -> HasBlockedUrls ( ) ) ;\n EXPECT_EQ ( blocked_urls [ 1 ] , GetWebContents ( ) -> GetLastCommittedURL ( ) ) ;\n }"}
{"idx": 6151, "target": 0, "func": "void proto_item_prepend_text ( proto_item * pi , const char * format , ... ) {\n field_info * fi = NULL ;\n char representation [ ITEM_LABEL_LENGTH ] ;\n va_list ap ;\n TRY_TO_FAKE_THIS_REPR_VOID ( pi ) ;\n fi = PITEM_FINFO ( pi ) ;\n if ( fi == NULL ) {\n return ;\n }\n if ( ! PROTO_ITEM_IS_HIDDEN ( pi ) ) {\n if ( fi -> rep == NULL ) {\n ITEM_LABEL_NEW ( PNODE_POOL ( pi ) , fi -> rep ) ;\n proto_item_fill_label ( fi , representation ) ;\n }\n else g_strlcpy ( representation , fi -> rep -> representation , ITEM_LABEL_LENGTH ) ;\n va_start ( ap , format ) ;\n g_vsnprintf ( fi -> rep -> representation , ITEM_LABEL_LENGTH , format , ap ) ;\n va_end ( ap ) ;\n g_strlcat ( fi -> rep -> representation , representation , ITEM_LABEL_LENGTH ) ;\n }\n }"}
{"idx": 6152, "target": 0, "func": "void pk_transaction_search_details ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) {\n gboolean ret ;\n PkBitfield filter ;\n g_autofree gchar * * values = NULL ;\n g_autoptr ( GError ) error = NULL ;\n g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;\n g_return_if_fail ( transaction -> priv -> tid != NULL ) ;\n g_variant_get ( params , \"(t^a&s)\" , & filter , & values ) ;\n g_debug ( \"SearchDetails method called: %\" G_GUINT64_FORMAT \", %s\" , filter , values [ 0 ] ) ;\n if ( ! pk_backend_is_implemented ( transaction -> priv -> backend , PK_ROLE_ENUM_SEARCH_DETAILS ) ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NOT_SUPPORTED , \"SearchDetails not supported by backend\" ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n ret = pk_transaction_search_check ( values , & error ) ;\n if ( ! ret ) {\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n transaction -> priv -> cached_filters = filter ;\n transaction -> priv -> cached_values = g_strdupv ( values ) ;\n pk_transaction_set_role ( transaction , PK_ROLE_ENUM_SEARCH_DETAILS ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_READY ) ;\n out : pk_transaction_dbus_return ( context , error ) ;\n }"}
{"idx": 6153, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * pkt ) {\n BMVDecContext * const c = avctx -> priv_data ;\n int type , scr_off ;\n int i , ret ;\n uint8_t * srcptr , * outptr ;\n c -> stream = pkt -> data ;\n type = bytestream_get_byte ( & c -> stream ) ;\n if ( type & BMV_AUDIO ) {\n int blobs = bytestream_get_byte ( & c -> stream ) ;\n if ( pkt -> size < blobs * 65 + 2 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Audio data doesn't fit in frame\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n c -> stream += blobs * 65 ;\n }\n if ( type & BMV_COMMAND ) {\n int command_size = ( type & BMV_PRINT ) ? 8 : 10 ;\n if ( c -> stream - pkt -> data + command_size > pkt -> size ) {\n av_log ( avctx , AV_LOG_ERROR , \"Command data doesn't fit in frame\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n c -> stream += command_size ;\n }\n if ( type & BMV_PALETTE ) {\n if ( c -> stream - pkt -> data > pkt -> size - 768 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Palette data doesn't fit in frame\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( i = 0 ;\n i < 256 ;\n i ++ ) c -> pal [ i ] = bytestream_get_be24 ( & c -> stream ) ;\n }\n if ( type & BMV_SCROLL ) {\n if ( c -> stream - pkt -> data > pkt -> size - 2 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Screen offset data doesn't fit in frame\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n scr_off = ( int16_t ) bytestream_get_le16 ( & c -> stream ) ;\n }\n else if ( ( type & BMV_INTRA ) == BMV_INTRA ) {\n scr_off = - 640 ;\n }\n else {\n scr_off = 0 ;\n }\n if ( c -> pic . data [ 0 ] ) avctx -> release_buffer ( avctx , & c -> pic ) ;\n c -> pic . reference = 3 ;\n if ( ( ret = ff_get_buffer ( avctx , & c -> pic ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( decode_bmv_frame ( c -> stream , pkt -> size - ( c -> stream - pkt -> data ) , c -> frame , scr_off ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error decoding frame data\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n memcpy ( c -> pic . data [ 1 ] , c -> pal , AVPALETTE_SIZE ) ;\n c -> pic . palette_has_changed = type & BMV_PALETTE ;\n outptr = c -> pic . data [ 0 ] ;\n srcptr = c -> frame ;\n for ( i = 0 ;\n i < avctx -> height ;\n i ++ ) {\n memcpy ( outptr , srcptr , avctx -> width ) ;\n srcptr += avctx -> width ;\n outptr += c -> pic . linesize [ 0 ] ;\n }\n * got_frame = 1 ;\n * ( AVFrame * ) data = c -> pic ;\n return pkt -> size ;\n }"}
{"idx": 6154, "target": 0, "func": "static void _slurm_rpc_dump_jobs ( slurm_msg_t * msg ) {\n DEF_TIMERS ;\n char * dump ;\n int dump_size ;\n slurm_msg_t response_msg ;\n job_info_request_msg_t * job_info_request_msg = ( job_info_request_msg_t * ) msg -> data ;\n slurmctld_lock_t job_read_lock = {\n READ_LOCK , READ_LOCK , NO_LOCK , READ_LOCK , READ_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n START_TIMER ;\n debug3 ( \"Processing RPC: REQUEST_JOB_INFO from uid=%d\" , uid ) ;\n lock_slurmctld ( job_read_lock ) ;\n if ( ( job_info_request_msg -> last_update - 1 ) >= last_job_update ) {\n unlock_slurmctld ( job_read_lock ) ;\n debug3 ( \"_slurm_rpc_dump_jobs, no change\" ) ;\n slurm_send_rc_msg ( msg , SLURM_NO_CHANGE_IN_DATA ) ;\n }\n else {\n if ( job_info_request_msg -> job_ids ) {\n pack_spec_jobs ( & dump , & dump_size , job_info_request_msg -> job_ids , job_info_request_msg -> show_flags , uid , NO_VAL , msg -> protocol_version ) ;\n }\n else {\n pack_all_jobs ( & dump , & dump_size , job_info_request_msg -> show_flags , uid , NO_VAL , msg -> protocol_version ) ;\n }\n unlock_slurmctld ( job_read_lock ) ;\n END_TIMER2 ( \"_slurm_rpc_dump_jobs\" ) ;\n # if 0 info ( \"_slurm_rpc_dump_jobs, size=%d %s\" , dump_size , TIME_STR ) ;\n # endif slurm_msg_t_init ( & response_msg ) ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . address = msg -> address ;\n response_msg . conn = msg -> conn ;\n response_msg . msg_type = RESPONSE_JOB_INFO ;\n response_msg . data = dump ;\n response_msg . data_size = dump_size ;\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n xfree ( dump ) ;\n }\n }"}
{"idx": 6155, "target": 0, "func": "static void register_number_string_decoding_error ( void ) {\n static ei_register_info ei [ ] = {\n {\n & ei_number_string_decoding_failed_error , {\n \"_ws.number_string.decoding_error.failed\" , PI_MALFORMED , PI_ERROR , \"Failed to decode number from string\" , EXPFILL }\n }\n , {\n & ei_number_string_decoding_erange_error , {\n \"_ws.number_string.decoding_error.erange\" , PI_MALFORMED , PI_ERROR , \"Decoded number from string is out of valid range\" , EXPFILL }\n }\n , }\n ;\n expert_module_t * expert_number_string_decoding_error ;\n proto_number_string_decoding_error = proto_register_protocol ( \"Number-String Decoding Error\" , \"Number-string decoding error\" , \"_ws.number_string.decoding_error\" ) ;\n expert_number_string_decoding_error = expert_register_protocol ( proto_number_string_decoding_error ) ;\n expert_register_field_array ( expert_number_string_decoding_error , ei , array_length ( ei ) ) ;\n proto_set_cant_toggle ( proto_number_string_decoding_error ) ;\n }"}
{"idx": 6156, "target": 1, "func": "static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new ( sk_ ## t1 ## _compfunc compare ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new ( ( OPENSSL_sk_compfunc ) compare ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_null ( void ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_null ( ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_reserve ( sk_ ## t1 ## _compfunc compare , int n ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_reserve ( ( OPENSSL_sk_compfunc ) compare , n ) ;\n }\n static ossl_inline int sk_ ## t1 ## _reserve ( STACK_OF ( t1 ) * sk , int n ) {\n return OPENSSL_sk_reserve ( ( OPENSSL_STACK * ) sk , n ) ;\n }\n static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 6157, "target": 0, "func": "static int dissect_dtap ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n static gsm_a_tap_rec_t tap_rec [ 4 ] ;\n static gsm_a_tap_rec_t * tap_p ;\n static guint tap_current = 0 ;\n void ( * dtap_msg_fcn ) ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len ) ;\n guint8 oct ;\n guint8 pd ;\n guint32 offset ;\n guint32 len ;\n guint32 oct_1 ;\n gint idx ;\n proto_item * dtap_item = NULL ;\n proto_tree * dtap_tree = NULL ;\n proto_item * oct_1_item = NULL ;\n proto_tree * pd_tree = NULL ;\n const gchar * msg_str ;\n gint ett_tree ;\n gint ti ;\n int hf_idx ;\n gboolean nsd ;\n sccp_msg_info_t * sccp_msg = ( sccp_msg_info_t * ) data ;\n len = tvb_reported_length ( tvb ) ;\n if ( len < 2 ) {\n call_data_dissector ( tvb , pinfo , tree ) ;\n return len ;\n }\n col_append_str ( pinfo -> cinfo , COL_INFO , \"(DTAP) \" ) ;\n tap_current ++ ;\n if ( tap_current >= 4 ) {\n tap_current = 0 ;\n }\n tap_p = & tap_rec [ tap_current ] ;\n offset = 0 ;\n g_tree = tree ;\n oct_1 = tvb_get_guint8 ( tvb , offset ++ ) ;\n if ( ( ( ( oct_1 & DTAP_TI_MASK ) >> 4 ) & DTAP_TIE_PRES_MASK ) == DTAP_TIE_PRES_MASK ) {\n offset ++ ;\n }\n oct = tvb_get_guint8 ( tvb , offset ) ;\n pd = oct_1 & DTAP_PD_MASK ;\n ti = - 1 ;\n msg_str = NULL ;\n ett_tree = - 1 ;\n hf_idx = - 1 ;\n dtap_msg_fcn = NULL ;\n nsd = FALSE ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"(%s) \" , val_to_str_const ( pd , gsm_a_pd_short_str_vals , \"unknown\" ) ) ;\n switch ( pd ) {\n case 0 : msg_str = try_val_to_str_idx ( ( guint32 ) ( oct & DTAP_GCC_IEI_MASK ) , gsm_a_dtap_msg_gcc_strings , & idx ) ;\n if ( msg_str != NULL ) {\n ett_tree = ett_gsm_dtap_msg_gcc [ idx ] ;\n dtap_msg_fcn = dtap_msg_gcc [ idx ] ;\n }\n hf_idx = hf_gsm_a_dtap_msg_gcc_type ;\n ti = ( oct_1 & DTAP_TI_MASK ) >> 4 ;\n nsd = TRUE ;\n break ;\n case 1 : msg_str = try_val_to_str_idx ( ( guint32 ) ( oct & DTAP_BCC_IEI_MASK ) , gsm_a_dtap_msg_bcc_strings , & idx ) ;\n if ( msg_str != NULL ) {\n ett_tree = ett_gsm_dtap_msg_bcc [ idx ] ;\n dtap_msg_fcn = dtap_msg_bcc [ idx ] ;\n }\n hf_idx = hf_gsm_a_dtap_msg_bcc_type ;\n ti = ( oct_1 & DTAP_TI_MASK ) >> 4 ;\n nsd = TRUE ;\n break ;\n case 3 : msg_str = try_val_to_str_idx ( ( guint32 ) ( oct & DTAP_CC_IEI_MASK ) , gsm_a_dtap_msg_cc_strings , & idx ) ;\n if ( msg_str != NULL ) {\n ett_tree = ett_gsm_dtap_msg_cc [ idx ] ;\n dtap_msg_fcn = dtap_msg_cc_fcn [ idx ] ;\n }\n hf_idx = hf_gsm_a_dtap_msg_cc_type ;\n ti = ( oct_1 & DTAP_TI_MASK ) >> 4 ;\n nsd = TRUE ;\n break ;\n case 5 : msg_str = try_val_to_str_idx ( ( guint32 ) ( oct & DTAP_MM_IEI_MASK ) , gsm_a_dtap_msg_mm_strings , & idx ) ;\n if ( msg_str != NULL ) {\n ett_tree = ett_gsm_dtap_msg_mm [ idx ] ;\n dtap_msg_fcn = dtap_msg_mm_fcn [ idx ] ;\n }\n hf_idx = hf_gsm_a_dtap_msg_mm_type ;\n nsd = TRUE ;\n break ;\n case 6 : get_rr_msg_params ( oct , & msg_str , & ett_tree , & hf_idx , & dtap_msg_fcn ) ;\n break ;\n case 8 : get_gmm_msg_params ( oct , & msg_str , & ett_tree , & hf_idx , & dtap_msg_fcn ) ;\n break ;\n case 9 : msg_str = try_val_to_str_idx ( ( guint32 ) ( oct & DTAP_SMS_IEI_MASK ) , gsm_a_dtap_msg_sms_strings , & idx ) ;\n hf_idx = hf_gsm_a_dtap_msg_sms_type ;\n if ( msg_str != NULL ) {\n ett_tree = ett_gsm_dtap_msg_sms [ idx ] ;\n dtap_msg_fcn = dtap_msg_sms_fcn [ idx ] ;\n }\n ti = ( oct_1 & DTAP_TI_MASK ) >> 4 ;\n break ;\n case 10 : get_sm_msg_params ( oct , & msg_str , & ett_tree , & hf_idx , & dtap_msg_fcn ) ;\n ti = ( oct_1 & DTAP_TI_MASK ) >> 4 ;\n break ;\n case 11 : msg_str = try_val_to_str_idx ( ( guint32 ) ( oct & DTAP_SS_IEI_MASK ) , gsm_a_dtap_msg_ss_strings , & idx ) ;\n hf_idx = hf_gsm_a_dtap_msg_ss_type ;\n if ( msg_str != NULL ) {\n ett_tree = ett_gsm_dtap_msg_ss [ idx ] ;\n dtap_msg_fcn = dtap_msg_ss_fcn [ idx ] ;\n }\n ti = ( oct_1 & DTAP_TI_MASK ) >> 4 ;\n nsd = TRUE ;\n break ;\n case 15 : msg_str = try_val_to_str_idx ( ( guint32 ) ( oct & DTAP_TP_IEI_MASK ) , gsm_a_dtap_msg_tp_strings , & idx ) ;\n hf_idx = hf_gsm_a_dtap_msg_tp_type ;\n if ( msg_str != NULL ) {\n ett_tree = ett_gsm_dtap_msg_tp [ idx ] ;\n dtap_msg_fcn = dtap_msg_tp_fcn [ idx ] ;\n }\n nsd = TRUE ;\n break ;\n default : return len ;\n }\n if ( sccp_msg && sccp_msg -> data . co . assoc ) {\n sccp_assoc = sccp_msg -> data . co . assoc ;\n }\n else {\n sccp_assoc = NULL ;\n sccp_msg = NULL ;\n }\n if ( msg_str == NULL ) {\n dtap_item = proto_tree_add_protocol_format ( tree , proto_a_dtap , tvb , 0 , len , \"GSM A-I/F DTAP - Unknown DTAP Message Type (0x%02x)\" , oct ) ;\n dtap_tree = proto_item_add_subtree ( dtap_item , ett_dtap_msg ) ;\n if ( sccp_msg && ! sccp_msg -> data . co . label ) {\n sccp_msg -> data . co . label = wmem_strdup_printf ( wmem_file_scope ( ) , \"DTAP (0x%02x)\" , oct ) ;\n }\n }\n else {\n dtap_item = proto_tree_add_protocol_format ( tree , proto_a_dtap , tvb , 0 , - 1 , \"GSM A-I/F DTAP - %s\" , msg_str ) ;\n dtap_tree = proto_item_add_subtree ( dtap_item , ett_tree ) ;\n if ( sccp_msg && ! sccp_msg -> data . co . label ) {\n sccp_msg -> data . co . label = wmem_strdup ( wmem_file_scope ( ) , msg_str ) ;\n }\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"%s \" , msg_str ) ;\n col_set_fence ( pinfo -> cinfo , COL_INFO ) ;\n }\n oct_1_item = proto_tree_add_uint ( dtap_tree , hf_gsm_a_dtap_protocol_discriminator , tvb , 0 , 1 , pd ) ;\n pd_tree = proto_item_add_subtree ( oct_1_item , ett_dtap_oct_1 ) ;\n proto_tree_add_item ( pd_tree , hf_gsm_a_L3_protocol_discriminator , tvb , 0 , 1 , ENC_BIG_ENDIAN ) ;\n if ( ti == - 1 ) {\n proto_tree_add_item ( pd_tree , hf_gsm_a_skip_ind , tvb , 0 , 1 , ENC_BIG_ENDIAN ) ;\n }\n else {\n proto_tree_add_item ( pd_tree , hf_gsm_a_dtap_ti_flag , tvb , 0 , 1 , ENC_NA ) ;\n if ( ( ti & DTAP_TIE_PRES_MASK ) == DTAP_TIE_PRES_MASK ) {\n proto_tree_add_uint_format_value ( pd_tree , hf_gsm_a_dtap_tio , tvb , 0 , 1 , oct_1 , \"The TI value is given by the TIE in octet 2\" ) ;\n }\n else {\n proto_tree_add_item ( pd_tree , hf_gsm_a_dtap_tio , tvb , 0 , 1 , ENC_BIG_ENDIAN ) ;\n }\n }\n if ( ( ti != - 1 ) && ( ti & DTAP_TIE_PRES_MASK ) == DTAP_TIE_PRES_MASK ) {\n proto_tree_add_item ( tree , hf_gsm_a_extension , tvb , 1 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( pd_tree , hf_gsm_a_dtap_tie , tvb , 1 , 1 , ENC_BIG_ENDIAN ) ;\n }\n if ( ( pinfo -> p2p_dir == P2P_DIR_RECV ) && nsd ) {\n }\n if ( ( pd == 5 ) || ( pd == 3 ) || ( pd == 10 ) || ( pd == 11 ) ) {\n proto_tree_add_item ( dtap_tree , hf_gsm_a_seq_no , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n }\n proto_tree_add_item ( dtap_tree , hf_idx , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n tap_p -> pdu_type = GSM_A_PDU_TYPE_DTAP ;\n tap_p -> message_type = ( nsd ? ( oct & 0x3f ) : oct ) ;\n tap_p -> protocol_disc = ( gsm_a_pd_str_e ) pd ;\n tap_queue_packet ( gsm_a_tap , pinfo , tap_p ) ;\n if ( msg_str == NULL ) return len ;\n if ( offset >= len ) return len ;\n if ( dtap_msg_fcn == NULL ) {\n proto_tree_add_item ( dtap_tree , hf_gsm_a_dtap_message_elements , tvb , offset , len - offset , ENC_NA ) ;\n }\n else {\n ( * dtap_msg_fcn ) ( tvb , dtap_tree , pinfo , offset , len - offset ) ;\n }\n return len ;\n }"}
{"idx": 6158, "target": 0, "func": "void evhttp_connection_set_base ( struct evhttp_connection * evcon , struct event_base * base ) {\n assert ( evcon -> base == NULL ) ;\n assert ( evcon -> state == EVCON_DISCONNECTED ) ;\n evcon -> base = base ;\n }"}
{"idx": 6159, "target": 0, "func": "static void e1000e_intrmgr_pci_realize ( E1000ECore * core ) {\n e1000e_intrmgr_initialize_all_timers ( core , true ) ;\n }"}
{"idx": 6160, "target": 0, "func": "static __inline__ int TLV_GET_LEN ( struct tlv_desc * tlv ) {\n return ntohs ( tlv -> tlv_len ) ;\n }"}
{"idx": 6161, "target": 0, "func": "static void spl_dllist_object_free_storage ( void * object TSRMLS_DC ) {\n spl_dllist_object * intern = ( spl_dllist_object * ) object ;\n zval * tmp = NULL ;\n zend_object_std_dtor ( & intern -> std TSRMLS_CC ) ;\n while ( intern -> llist -> count > 0 ) {\n tmp = ( zval * ) spl_ptr_llist_pop ( intern -> llist TSRMLS_CC ) ;\n zval_ptr_dtor ( & tmp ) ;\n }\n spl_ptr_llist_destroy ( intern -> llist TSRMLS_CC ) ;\n SPL_LLIST_CHECK_DELREF ( intern -> traverse_pointer ) ;\n zval_ptr_dtor ( & intern -> retval ) ;\n if ( intern -> debug_info != NULL ) {\n zend_hash_destroy ( intern -> debug_info ) ;\n efree ( intern -> debug_info ) ;\n }\n efree ( object ) ;\n }"}
{"idx": 6162, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ClientHintsBrowserTest , ClientHintsLifetimeFollowedByNoClientHint ) {\n base : : HistogramTester histogram_tester ;\n ContentSettingsForOneType host_settings ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> GetSettingsForOneType ( CONTENT_SETTINGS_TYPE_CLIENT_HINTS , std : : string ( ) , & host_settings ) ;\n EXPECT_EQ ( 0u , host_settings . size ( ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , accept_ch_with_lifetime_url ( ) ) ;\n histogram_tester . ExpectUniqueSample ( \"ClientHints.UpdateEventCount\" , 1 , 1 ) ;\n content : : FetchHistogramsFromChildProcesses ( ) ;\n SubprocessMetricsProvider : : MergeHistogramDeltasForTesting ( ) ;\n histogram_tester . ExpectUniqueSample ( \"ClientHints.UpdateSize\" , 3 , 1 ) ;\n histogram_tester . ExpectUniqueSample ( \"ClientHints.PersistDuration\" , * 1000 , 1 ) ;\n base : : RunLoop ( ) . RunUntilIdle ( ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> GetSettingsForOneType ( CONTENT_SETTINGS_TYPE_CLIENT_HINTS , std : : string ( ) , & host_settings ) ;\n EXPECT_EQ ( 1u , host_settings . size ( ) ) ;\n SetClientHintExpectationsOnMainFrame ( true ) ;\n SetClientHintExpectationsOnSubresources ( true ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , without_accept_ch_without_lifetime_url ( ) ) ;\n # if defined ( OS_ANDROID ) EXPECT_EQ ( 4u , count_client_hints_headers_seen ( ) ) ;\n # else EXPECT_EQ ( 6u , count_client_hints_headers_seen ( ) ) ;\n # endif }"}
{"idx": 6163, "target": 0, "func": "static int virtio_net_init_pci ( PCIDevice * pci_dev ) {\n VirtIOPCIProxy * proxy = DO_UPCAST ( VirtIOPCIProxy , pci_dev , pci_dev ) ;\n VirtIODevice * vdev ;\n vdev = virtio_net_init ( & pci_dev -> qdev , & proxy -> nic ) ;\n vdev -> nvectors = proxy -> nvectors ;\n virtio_init_pci ( proxy , vdev , PCI_VENDOR_ID_REDHAT_QUMRANET , PCI_DEVICE_ID_VIRTIO_NET , PCI_CLASS_NETWORK_ETHERNET , 0x00 ) ;\n proxy -> nvectors = vdev -> nvectors ;\n return 0 ;\n }"}
{"idx": 6164, "target": 0, "func": "static void malta_fpga_led_init ( CharDriverState * chr ) {\n qemu_chr_fe_printf ( chr , \"\\e[HMalta LEDBAR\\r\\n\" ) ;\n qemu_chr_fe_printf ( chr , \"+--------+\\r\\n\" ) ;\n qemu_chr_fe_printf ( chr , \"+ +\\r\\n\" ) ;\n qemu_chr_fe_printf ( chr , \"+--------+\\r\\n\" ) ;\n qemu_chr_fe_printf ( chr , \"\\n\" ) ;\n qemu_chr_fe_printf ( chr , \"Malta ASCII\\r\\n\" ) ;\n qemu_chr_fe_printf ( chr , \"+--------+\\r\\n\" ) ;\n qemu_chr_fe_printf ( chr , \"+ +\\r\\n\" ) ;\n qemu_chr_fe_printf ( chr , \"+--------+\\r\\n\" ) ;\n }"}
{"idx": 6165, "target": 1, "func": "static int sbr_lf_gen ( AACContext * ac , SpectralBandReplication * sbr , float X_low [ 32 ] [ 40 ] [ 2 ] , const float W [ 2 ] [ 32 ] [ 32 ] [ 2 ] , int buf_idx ) {\n int i , k ;\n const int t_HFGen = 8 ;\n const int i_f = 32 ;\n memset ( X_low , 0 , 32 * sizeof ( * X_low ) ) ;\n for ( k = 0 ;\n k < sbr -> kx [ 1 ] ;\n k ++ ) {\n for ( i = t_HFGen ;\n i < i_f + t_HFGen ;\n i ++ ) {\n X_low [ k ] [ i ] [ 0 ] = W [ buf_idx ] [ i - t_HFGen ] [ k ] [ 0 ] ;\n X_low [ k ] [ i ] [ 1 ] = W [ buf_idx ] [ i - t_HFGen ] [ k ] [ 1 ] ;\n }\n }\n buf_idx = 1 - buf_idx ;\n for ( k = 0 ;\n k < sbr -> kx [ 0 ] ;\n k ++ ) {\n for ( i = 0 ;\n i < t_HFGen ;\n i ++ ) {\n X_low [ k ] [ i ] [ 0 ] = W [ buf_idx ] [ i + i_f - t_HFGen ] [ k ] [ 0 ] ;\n X_low [ k ] [ i ] [ 1 ] = W [ buf_idx ] [ i + i_f - t_HFGen ] [ k ] [ 1 ] ;\n }\n }\n return 0 ;\n }"}
{"idx": 6166, "target": 0, "func": "const fz_color_params * fz_default_color_params ( fz_context * ctx ) {\n return default_color_params ;\n }"}
{"idx": 6167, "target": 0, "func": "static void clamp_indexed ( const fz_colorspace * cs , const float * in , float * out ) {\n struct indexed * idx = cs -> data ;\n * out = fz_clamp ( * in , 0 , idx -> high ) / 255.0f ;\n }"}
{"idx": 6168, "target": 0, "func": "static void dissect_rsvp_unknown ( proto_tree * ti _U_ , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int type ) {\n proto_tree_add_uint ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type ) ;\n if ( obj_length > 4 ) {\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_unknown_data , tvb , offset + 4 , obj_length - 4 , ENC_NA ) ;\n }\n }"}
{"idx": 6169, "target": 0, "func": "static int dissect_h225_INTEGER_0_127 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 127U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 6170, "target": 0, "func": "TEST_F ( AutocompleteResultTest , CopyOldMatchesAllowedToBeDefault ) {\n TestData last [ ] = {\n {\n 0 , 1 , 1300 , true }\n , {\n 1 , 1 , 1200 , true }\n , {\n 2 , 1 , 1100 , true }\n , }\n ;\n TestData current [ ] = {\n {\n 3 , 1 , 1000 , false }\n , {\n 4 , 1 , 900 , true }\n , }\n ;\n TestData result [ ] = {\n {\n 4 , 1 , 900 , true }\n , {\n 3 , 1 , 1000 , false }\n , {\n 2 , 1 , 899 , true }\n , }\n ;\n ASSERT_NO_FATAL_FAILURE ( RunCopyOldMatchesTest ( last , arraysize ( last ) , current , arraysize ( current ) , result , arraysize ( result ) ) ) ;\n }"}
{"idx": 6171, "target": 0, "func": "void DisconnectDatabase ( Archive * AHX ) {\n ArchiveHandle * AH = ( ArchiveHandle * ) AHX ;\n char errbuf [ 1 ] ;\n if ( ! AH -> connection ) return ;\n if ( AH -> connCancel ) {\n if ( PQtransactionStatus ( AH -> connection ) == PQTRANS_ACTIVE ) PQcancel ( AH -> connCancel , errbuf , sizeof ( errbuf ) ) ;\n set_archive_cancel_info ( AH , NULL ) ;\n }\n PQfinish ( AH -> connection ) ;\n AH -> connection = NULL ;\n }"}
{"idx": 6172, "target": 1, "func": "static int get_buffer ( AVCodecContext * avctx , Picture * pic ) {\n SVQ3Context * s = avctx -> priv_data ;\n H264Context * h = & s -> h ;\n const int big_mb_num = h -> mb_stride * ( h -> mb_height + 1 ) + 1 ;\n const int mb_array_size = h -> mb_stride * h -> mb_height ;\n const int b4_stride = h -> mb_width * 4 + 1 ;\n const int b4_array_size = b4_stride * h -> mb_height * 4 ;\n int ret ;\n if ( ! pic -> motion_val_base [ 0 ] ) {\n int i ;\n pic -> mb_type_base = av_mallocz ( ( big_mb_num + h -> mb_stride ) * sizeof ( uint32_t ) ) ;\n if ( ! pic -> mb_type_base ) return AVERROR ( ENOMEM ) ;\n pic -> f . mb_type = pic -> mb_type_base + 2 * h -> mb_stride + 1 ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n pic -> motion_val_base [ i ] = av_mallocz ( 2 * ( b4_array_size + 4 ) * sizeof ( int16_t ) ) ;\n pic -> f . ref_index [ i ] = av_mallocz ( 4 * mb_array_size ) ;\n if ( ! pic -> motion_val_base [ i ] || ! pic -> f . ref_index [ i ] ) return AVERROR ( ENOMEM ) ;\n pic -> f . motion_val [ i ] = pic -> motion_val_base [ i ] + 4 ;\n }\n }\n pic -> f . motion_subsample_log2 = 2 ;\n pic -> f . reference = ! ( h -> pict_type == AV_PICTURE_TYPE_B ) ;\n ret = ff_get_buffer ( avctx , & pic -> f ) ;\n if ( ! h -> edge_emu_buffer ) {\n h -> edge_emu_buffer = av_mallocz ( pic -> f . linesize [ 0 ] * 17 ) ;\n if ( ! h -> edge_emu_buffer ) return AVERROR ( ENOMEM ) ;\n }\n h -> linesize = pic -> f . linesize [ 0 ] ;\n h -> uvlinesize = pic -> f . linesize [ 1 ] ;\n return ret ;\n }"}
{"idx": 6173, "target": 0, "func": "static int isStdEncoding ( SplineFont * sf , EncMap * map ) {\n int i ;\n for ( i = 0 ;\n i < 256 && i < map -> enccount ;\n ++ i ) if ( map -> map [ i ] != - 1 && sf -> glyphs [ map -> map [ i ] ] != NULL ) if ( sf -> glyphs [ map -> map [ i ] ] -> unicodeenc != - 1 ) if ( sf -> glyphs [ map -> map [ i ] ] -> unicodeenc != unicode_from_adobestd [ i ] ) return ( 0 ) ;\n return ( 1 ) ;\n }"}
{"idx": 6174, "target": 0, "func": "static int dissect_h245_ArqType ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_ArqType , ArqType_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 6175, "target": 0, "func": "int fill_schema_table_privileges ( THD * thd , TABLE_LIST * tables , COND * cond ) {\n # ifndef NO_EMBEDDED_ACCESS_CHECKS int error = 0 ;\n uint index ;\n char buff [ 100 ] ;\n TABLE * table = tables -> table ;\n bool no_global_access = check_access ( thd , SELECT_ACL , \"mysql\" , 0 , 1 , 1 , 0 ) ;\n char * curr_host = thd -> security_ctx -> priv_host_name ( ) ;\n DBUG_ENTER ( \"fill_schema_table_privileges\" ) ;\n rw_rdlock ( & LOCK_grant ) ;\n for ( index = 0 ;\n index < column_priv_hash . records ;\n index ++ ) {\n const char * user , * host , * is_grantable = \"YES\" ;\n GRANT_TABLE * grant_table = ( GRANT_TABLE * ) hash_element ( & column_priv_hash , index ) ;\n if ( ! ( user = grant_table -> user ) ) user = \"\" ;\n if ( ! ( host = grant_table -> host . hostname ) ) host = \"\" ;\n if ( no_global_access && ( strcmp ( thd -> security_ctx -> priv_user , user ) || my_strcasecmp ( system_charset_info , curr_host , host ) ) ) continue ;\n ulong table_access = grant_table -> privs ;\n if ( table_access ) {\n ulong test_access = table_access & ~ GRANT_ACL ;\n if ( ! test_access && grant_table -> cols ) continue ;\n if ( ! ( table_access & GRANT_ACL ) ) is_grantable = \"NO\" ;\n strxmov ( buff , \"'\" , user , \"'@'\" , host , \"'\" , NullS ) ;\n if ( ! test_access ) {\n if ( update_schema_privilege ( thd , table , buff , grant_table -> db , grant_table -> tname , 0 , 0 , STRING_WITH_LEN ( \"USAGE\" ) , is_grantable ) ) {\n error = 1 ;\n goto err ;\n }\n }\n else {\n ulong j ;\n int cnt ;\n for ( cnt = 0 , j = SELECT_ACL ;\n j <= TABLE_ACLS ;\n cnt ++ , j <<= 1 ) {\n if ( test_access & j ) {\n if ( update_schema_privilege ( thd , table , buff , grant_table -> db , grant_table -> tname , 0 , 0 , command_array [ cnt ] , command_lengths [ cnt ] , is_grantable ) ) {\n error = 1 ;\n goto err ;\n }\n }\n }\n }\n }\n }\n err : rw_unlock ( & LOCK_grant ) ;\n DBUG_RETURN ( error ) ;\n # else return ( 0 ) ;\n # endif }"}
{"idx": 6176, "target": 0, "func": "static inline int rawv6_rcv_skb ( struct sock * sk , struct sk_buff * skb ) {\n if ( ( raw6_sk ( sk ) -> checksum || sk -> sk_filter ) && skb_checksum_complete ( skb ) ) {\n atomic_inc ( & sk -> sk_drops ) ;\n kfree_skb ( skb ) ;\n return NET_RX_DROP ;\n }\n if ( ip_queue_rcv_skb ( sk , skb ) < 0 ) {\n kfree_skb ( skb ) ;\n return NET_RX_DROP ;\n }\n return 0 ;\n }"}
{"idx": 6177, "target": 0, "func": "float lut_interp_linear ( double input_value , uint16_t * table , size_t length ) {\n int upper , lower ;\n float value ;\n input_value = input_value * ( length - 1 ) ;\n upper = ceil ( input_value ) ;\n lower = floor ( input_value ) ;\n value = table [ upper ] * ( 1. - ( upper - input_value ) ) + table [ lower ] * ( upper - input_value ) ;\n return value * ( 1.f / 65535.f ) ;\n }"}
{"idx": 6178, "target": 0, "func": "static int dissect_rsl_ie_ch_needed ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_tree * ie_tree ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_CH_NEEDED ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_ie_ch_needed , NULL , \"Channel Needed IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_ch_needed , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n return offset ;\n }"}
{"idx": 6179, "target": 0, "func": "static void test_event_base_new ( void ) {\n struct event_base * base ;\n struct event ev1 ;\n setup_test ( \"Event base new: \" ) ;\n write ( pair [ 0 ] , TEST1 , strlen ( TEST1 ) + 1 ) ;\n shutdown ( pair [ 0 ] , SHUT_WR ) ;\n base = event_base_new ( ) ;\n event_set ( & ev1 , pair [ 1 ] , EV_READ , simple_read_cb , & ev1 ) ;\n event_base_set ( base , & ev1 ) ;\n event_add ( & ev1 , NULL ) ;\n event_base_dispatch ( base ) ;\n event_base_free ( base ) ;\n test_ok = 1 ;\n cleanup_test ( ) ;\n }"}
{"idx": 6180, "target": 0, "func": "void proto_register_zbee_zcl_appl_idt ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_zbee_zcl_appl_idt_attr_id , {\n \"Attribute\" , \"zbee_zcl_ha.applident.attr_id\" , FT_UINT16 , BASE_HEX , VALS ( zbee_zcl_appl_idt_attr_names ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_idt_company_id , {\n \"Company ID\" , \"zbee_zcl_ha.applident.attr.company.id\" , FT_UINT16 , BASE_HEX , VALS ( zbee_zcl_appl_idt_company_names ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_idt_brand_id , {\n \"Brand ID\" , \"zbee_zcl_ha.applident.attr.brand.id\" , FT_UINT16 , BASE_HEX , VALS ( zbee_zcl_appl_idt_brand_names ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_idt_string_len , {\n \"Length\" , \"zbee_zcl_ha.applident.string.len\" , FT_UINT8 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_idt_prod_type_name , {\n \"Product Type Name\" , \"zbee_zcl_ha.applident.attr.prod_type.name\" , FT_UINT16 , BASE_HEX , VALS ( zbee_zcl_appl_idt_prod_type_name_names ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_idt_prod_type_id , {\n \"Product Type ID\" , \"zbee_zcl_ha.applident.attr.prod_type.id\" , FT_UINT16 , BASE_HEX , VALS ( zbee_zcl_appl_idt_prod_type_names ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_idt_ceced_spec_ver , {\n \"CECED Spec. Version\" , \"zbee_zcl_ha.applident.attr.ceced_spec_ver\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_appl_idt_ceced_spec_ver_names ) , 0x00 , NULL , HFILL }\n }\n }\n ;\n gint * ett [ ZBEE_ZCL_APPL_IDT_NUM_ETT ] ;\n ett [ 0 ] = & ett_zbee_zcl_appl_idt ;\n ett [ 1 ] = & ett_zbee_zcl_appl_idt_basic ;\n proto_zbee_zcl_appl_idt = proto_register_protocol ( \"ZigBee ZCL Appliance Identification\" , \"ZCL Appliance Identification\" , ZBEE_PROTOABBREV_ZCL_APPLIDT ) ;\n proto_register_field_array ( proto_zbee_zcl_appl_idt , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n register_dissector ( ZBEE_PROTOABBREV_ZCL_APPLIDT , dissect_zbee_zcl_appl_idt , proto_zbee_zcl_appl_idt ) ;\n }"}
{"idx": 6181, "target": 0, "func": "void vp8_transform_intra_mby ( MACROBLOCK * x ) {\n int i ;\n for ( i = 0 ;\n i < 16 ;\n i += 2 ) {\n x -> short_fdct8x4 ( & x -> block [ i ] . src_diff [ 0 ] , & x -> block [ i ] . coeff [ 0 ] , 32 ) ;\n }\n build_dcblock ( x ) ;\n x -> short_walsh4x4 ( & x -> block [ 24 ] . src_diff [ 0 ] , & x -> block [ 24 ] . coeff [ 0 ] , 8 ) ;\n }"}
{"idx": 6182, "target": 0, "func": "static int selinux_inode_setsecctx ( struct dentry * dentry , void * ctx , u32 ctxlen ) {\n return __vfs_setxattr_noperm ( dentry , XATTR_NAME_SELINUX , ctx , ctxlen , 0 ) ;\n }"}
{"idx": 6183, "target": 0, "func": "static int dissect_h225_ServiceControlIndication ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_ServiceControlIndication , ServiceControlIndication_sequence ) ;\n return offset ;\n }"}
{"idx": 6184, "target": 0, "func": "static int normalize_bits ( int num , int width ) {\n return width - av_log2 ( num ) - 1 ;\n }"}
{"idx": 6185, "target": 0, "func": "static int dissect_h245_H263VideoModeCombos ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_H263VideoModeCombos , H263VideoModeCombos_sequence ) ;\n return offset ;\n }"}
{"idx": 6186, "target": 1, "func": "static int svq3_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n SVQ3Context * s = avctx -> priv_data ;\n H264Context * h = & s -> h ;\n int buf_size = avpkt -> size ;\n int ret , m , i ;\n if ( buf_size == 0 ) {\n if ( s -> next_pic -> f . data [ 0 ] && ! h -> low_delay && ! s -> last_frame_output ) {\n * ( AVFrame * ) data = s -> next_pic -> f ;\n s -> last_frame_output = 1 ;\n * got_frame = 1 ;\n }\n return 0 ;\n }\n init_get_bits ( & h -> gb , buf , 8 * buf_size ) ;\n h -> mb_x = h -> mb_y = h -> mb_xy = 0 ;\n if ( svq3_decode_slice_header ( avctx ) ) return - 1 ;\n h -> pict_type = h -> slice_type ;\n if ( h -> pict_type != AV_PICTURE_TYPE_B ) FFSWAP ( Picture * , s -> next_pic , s -> last_pic ) ;\n if ( s -> cur_pic -> f . data [ 0 ] ) avctx -> release_buffer ( avctx , & s -> cur_pic -> f ) ;\n s -> cur_pic -> f . pict_type = h -> pict_type ;\n s -> cur_pic -> f . key_frame = ( h -> pict_type == AV_PICTURE_TYPE_I ) ;\n ret = get_buffer ( avctx , s -> cur_pic ) ;\n if ( ret < 0 ) return ret ;\n h -> cur_pic_ptr = s -> cur_pic ;\n h -> cur_pic = * s -> cur_pic ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n h -> block_offset [ i ] = ( 4 * ( ( scan8 [ i ] - scan8 [ 0 ] ) & 7 ) ) + 4 * h -> linesize * ( ( scan8 [ i ] - scan8 [ 0 ] ) >> 3 ) ;\n h -> block_offset [ 48 + i ] = ( 4 * ( ( scan8 [ i ] - scan8 [ 0 ] ) & 7 ) ) + 8 * h -> linesize * ( ( scan8 [ i ] - scan8 [ 0 ] ) >> 3 ) ;\n }\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n h -> block_offset [ 16 + i ] = h -> block_offset [ 32 + i ] = ( 4 * ( ( scan8 [ i ] - scan8 [ 0 ] ) & 7 ) ) + 4 * h -> uvlinesize * ( ( scan8 [ i ] - scan8 [ 0 ] ) >> 3 ) ;\n h -> block_offset [ 48 + 16 + i ] = h -> block_offset [ 48 + 32 + i ] = ( 4 * ( ( scan8 [ i ] - scan8 [ 0 ] ) & 7 ) ) + 8 * h -> uvlinesize * ( ( scan8 [ i ] - scan8 [ 0 ] ) >> 3 ) ;\n }\n if ( h -> pict_type != AV_PICTURE_TYPE_I ) {\n if ( ! s -> last_pic -> f . data [ 0 ] ) {\n av_log ( avctx , AV_LOG_ERROR , \"Missing reference frame.\\n\" ) ;\n ret = get_buffer ( avctx , s -> last_pic ) ;\n if ( ret < 0 ) return ret ;\n memset ( s -> last_pic -> f . data [ 0 ] , 0 , avctx -> height * s -> last_pic -> f . linesize [ 0 ] ) ;\n memset ( s -> last_pic -> f . data [ 1 ] , 0x80 , ( avctx -> height / 2 ) * s -> last_pic -> f . linesize [ 1 ] ) ;\n memset ( s -> last_pic -> f . data [ 2 ] , 0x80 , ( avctx -> height / 2 ) * s -> last_pic -> f . linesize [ 2 ] ) ;\n }\n if ( h -> pict_type == AV_PICTURE_TYPE_B && ! s -> next_pic -> f . data [ 0 ] ) {\n av_log ( avctx , AV_LOG_ERROR , \"Missing reference frame.\\n\" ) ;\n ret = get_buffer ( avctx , s -> next_pic ) ;\n if ( ret < 0 ) return ret ;\n memset ( s -> next_pic -> f . data [ 0 ] , 0 , avctx -> height * s -> next_pic -> f . linesize [ 0 ] ) ;\n memset ( s -> next_pic -> f . data [ 1 ] , 0x80 , ( avctx -> height / 2 ) * s -> next_pic -> f . linesize [ 1 ] ) ;\n memset ( s -> next_pic -> f . data [ 2 ] , 0x80 , ( avctx -> height / 2 ) * s -> next_pic -> f . linesize [ 2 ] ) ;\n }\n }\n if ( avctx -> debug & FF_DEBUG_PICT_INFO ) av_log ( h -> avctx , AV_LOG_DEBUG , \"%c hpel:%d, tpel:%d aqp:%d qp:%d, slice_num:%02X\\n\" , av_get_picture_type_char ( h -> pict_type ) , s -> halfpel_flag , s -> thirdpel_flag , s -> adaptive_quant , h -> qscale , h -> slice_num ) ;\n if ( avctx -> skip_frame >= AVDISCARD_NONREF && h -> pict_type == AV_PICTURE_TYPE_B || avctx -> skip_frame >= AVDISCARD_NONKEY && h -> pict_type != AV_PICTURE_TYPE_I || avctx -> skip_frame >= AVDISCARD_ALL ) return 0 ;\n if ( s -> next_p_frame_damaged ) {\n if ( h -> pict_type == AV_PICTURE_TYPE_B ) return 0 ;\n else s -> next_p_frame_damaged = 0 ;\n }\n if ( h -> pict_type == AV_PICTURE_TYPE_B ) {\n h -> frame_num_offset = h -> slice_num - h -> prev_frame_num ;\n if ( h -> frame_num_offset < 0 ) h -> frame_num_offset += 256 ;\n if ( h -> frame_num_offset == 0 || h -> frame_num_offset >= h -> prev_frame_num_offset ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"error in B-frame picture id\\n\" ) ;\n return - 1 ;\n }\n }\n else {\n h -> prev_frame_num = h -> frame_num ;\n h -> frame_num = h -> slice_num ;\n h -> prev_frame_num_offset = h -> frame_num - h -> prev_frame_num ;\n if ( h -> prev_frame_num_offset < 0 ) h -> prev_frame_num_offset += 256 ;\n }\n for ( m = 0 ;\n m < 2 ;\n m ++ ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n int j ;\n for ( j = - 1 ;\n j < 4 ;\n j ++ ) h -> ref_cache [ m ] [ scan8 [ 0 ] + 8 * i + j ] = 1 ;\n if ( i < 3 ) h -> ref_cache [ m ] [ scan8 [ 0 ] + 8 * i + j ] = PART_NOT_AVAILABLE ;\n }\n }\n for ( h -> mb_y = 0 ;\n h -> mb_y < h -> mb_height ;\n h -> mb_y ++ ) {\n for ( h -> mb_x = 0 ;\n h -> mb_x < h -> mb_width ;\n h -> mb_x ++ ) {\n unsigned mb_type ;\n h -> mb_xy = h -> mb_x + h -> mb_y * h -> mb_stride ;\n if ( ( get_bits_count ( & h -> gb ) + 7 ) >= h -> gb . size_in_bits && ( ( get_bits_count ( & h -> gb ) & 7 ) == 0 || show_bits ( & h -> gb , - get_bits_count ( & h -> gb ) & 7 ) == 0 ) ) {\n skip_bits ( & h -> gb , s -> next_slice_index - get_bits_count ( & h -> gb ) ) ;\n h -> gb . size_in_bits = 8 * buf_size ;\n if ( svq3_decode_slice_header ( avctx ) ) return - 1 ;\n }\n mb_type = svq3_get_ue_golomb ( & h -> gb ) ;\n if ( h -> pict_type == AV_PICTURE_TYPE_I ) mb_type += 8 ;\n else if ( h -> pict_type == AV_PICTURE_TYPE_B && mb_type >= 4 ) mb_type += 4 ;\n if ( mb_type > 33 || svq3_decode_mb ( s , mb_type ) ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"error while decoding MB %d %d\\n\" , h -> mb_x , h -> mb_y ) ;\n return - 1 ;\n }\n if ( mb_type != 0 ) ff_h264_hl_decode_mb ( h ) ;\n if ( h -> pict_type != AV_PICTURE_TYPE_B && ! h -> low_delay ) h -> cur_pic . f . mb_type [ h -> mb_x + h -> mb_y * h -> mb_stride ] = ( h -> pict_type == AV_PICTURE_TYPE_P && mb_type < 8 ) ? ( mb_type - 1 ) : - 1 ;\n }\n ff_draw_horiz_band ( avctx , NULL , s -> cur_pic , s -> last_pic -> f . data [ 0 ] ? s -> last_pic : NULL , 16 * h -> mb_y , 16 , h -> picture_structure , 0 , 0 , h -> low_delay , h -> mb_height * 16 , h -> mb_width * 16 ) ;\n }\n if ( h -> pict_type == AV_PICTURE_TYPE_B || h -> low_delay ) * ( AVFrame * ) data = s -> cur_pic -> f ;\n else * ( AVFrame * ) data = s -> last_pic -> f ;\n if ( s -> last_pic -> f . data [ 0 ] || h -> low_delay ) * got_frame = 1 ;\n if ( h -> pict_type != AV_PICTURE_TYPE_B ) {\n FFSWAP ( Picture * , s -> cur_pic , s -> next_pic ) ;\n }\n return buf_size ;\n }"}
{"idx": 6187, "target": 0, "func": "static void signal_cb_sa ( int sig ) {\n test_ok = 2 ;\n }"}
{"idx": 6188, "target": 0, "func": "static void isa_cirrus_vga_class_init ( ObjectClass * klass , void * data ) {\n DeviceClass * dc = DEVICE_CLASS ( klass ) ;\n dc -> vmsd = & vmstate_cirrus_vga ;\n dc -> realize = isa_cirrus_vga_realizefn ;\n dc -> props = isa_cirrus_vga_properties ;\n set_bit ( DEVICE_CATEGORY_DISPLAY , dc -> categories ) ;\n }"}
{"idx": 6189, "target": 1, "func": "int gs_main_finit ( gs_main_instance * minst , int exit_status , int code ) {\n i_ctx_t * i_ctx_p = minst -> i_ctx_p ;\n gs_dual_memory_t dmem = {\n 0 }\n ;\n int exit_code ;\n ref error_object ;\n char * tempnames ;\n tempnames = gs_main_tempnames ( minst ) ;\n gs_finit_push_systemdict ( i_ctx_p ) ;\n if ( minst -> init_done >= 2 ) {\n gs_main_run_string ( minst , \"/BGPrint /GetDeviceParam .special_op \\ {\n{\n <</BeginPage {\npop}\n /EndPage {\npop pop //false }\n \\ /BGPrint false /NumRenderingThreads 0>> setpagedevice}\n if}\n if \\ serverdict /.jobsavelevel get 0 eq {\n/quit}\n {\n/stop}\n ifelse \\ .systemvar exec\" , 0 , & exit_code , & error_object ) ;\n }\n if ( minst -> init_done >= 2 ) {\n int code = 0 ;\n if ( idmemory -> reclaim != 0 ) {\n code = interp_reclaim ( & minst -> i_ctx_p , avm_global ) ;\n if ( code < 0 ) {\n ref error_name ;\n if ( tempnames ) free ( tempnames ) ;\n if ( gs_errorname ( i_ctx_p , code , & error_name ) >= 0 ) {\n char err_str [ 32 ] = {\n 0 }\n ;\n name_string_ref ( imemory , & error_name , & error_name ) ;\n memcpy ( err_str , error_name . value . const_bytes , r_size ( & error_name ) ) ;\n emprintf2 ( imemory , \"ERROR: %s (%d) reclaiming the memory while the interpreter finalization.\\n\" , err_str , code ) ;\n }\n else {\n emprintf1 ( imemory , \"UNKNOWN ERROR %d reclaiming the memory while the interpreter finalization.\\n\" , code ) ;\n }\n # ifdef MEMENTO_SQUEEZE_BUILD if ( code != gs_error_VMerror ) return gs_error_Fatal ;\n # else return gs_error_Fatal ;\n # endif }\n i_ctx_p = minst -> i_ctx_p ;\n }\n if ( i_ctx_p -> pgs != NULL && i_ctx_p -> pgs -> device != NULL ) {\n gx_device * pdev = i_ctx_p -> pgs -> device ;\n const char * dname = pdev -> dname ;\n rc_adjust ( pdev , 1 , \"gs_main_finit\" ) ;\n gs_main_run_string ( minst , \".uninstallpagedevice serverdict \\ /.jobsavelevel get 0 eq {\n/quit}\n {\n/stop}\n ifelse .systemvar exec\" , 0 , & exit_code , & error_object ) ;\n code = gs_closedevice ( pdev ) ;\n if ( code < 0 ) {\n ref error_name ;\n if ( gs_errorname ( i_ctx_p , code , & error_name ) >= 0 ) {\n char err_str [ 32 ] = {\n 0 }\n ;\n name_string_ref ( imemory , & error_name , & error_name ) ;\n memcpy ( err_str , error_name . value . const_bytes , r_size ( & error_name ) ) ;\n emprintf3 ( imemory , \"ERROR: %s (%d) on closing %s device.\\n\" , err_str , code , dname ) ;\n }\n else {\n emprintf2 ( imemory , \"UNKNOWN ERROR %d closing %s device.\\n\" , code , dname ) ;\n }\n }\n rc_decrement ( pdev , \"gs_main_finit\" ) ;\n if ( exit_status == 0 || exit_status == gs_error_Quit ) exit_status = code ;\n }\n gs_main_run_string ( minst , \"(%stdout) (w) file closefile (%stderr) (w) file closefile \\ serverdict /.jobsavelevel get 0 eq {\n/quit}\n {\n/stop}\n ifelse .systemexec \\ systemdict /savedinitialgstate .forceundef\" , 0 , & exit_code , & error_object ) ;\n }\n gp_readline_finit ( minst -> readline_data ) ;\n i_ctx_p = minst -> i_ctx_p ;\n if ( gs_debug_c ( ':' ) ) {\n print_resource_usage ( minst , & gs_imemory , \"Final\" ) ;\n dmprintf1 ( minst -> heap , \"%% Exiting instance 0x%p\\n\" , minst ) ;\n }\n if ( minst -> init_done >= 1 ) {\n gs_memory_t * mem_raw = i_ctx_p -> memory . current -> non_gc_memory ;\n i_plugin_holder * h = i_ctx_p -> plugin_list ;\n dmem = * idmemory ;\n code = alloc_restore_all ( i_ctx_p ) ;\n if ( code < 0 ) emprintf1 ( mem_raw , \"ERROR %d while the final restore. See gs/psi/ierrors.h for code explanation.\\n\" , code ) ;\n i_iodev_finit ( & dmem ) ;\n i_plugin_finit ( mem_raw , h ) ;\n }\n if ( minst -> heap -> gs_lib_ctx -> fstdout2 && ( minst -> heap -> gs_lib_ctx -> fstdout2 != minst -> heap -> gs_lib_ctx -> fstdout ) && ( minst -> heap -> gs_lib_ctx -> fstdout2 != minst -> heap -> gs_lib_ctx -> fstderr ) ) {\n fclose ( minst -> heap -> gs_lib_ctx -> fstdout2 ) ;\n minst -> heap -> gs_lib_ctx -> fstdout2 = ( FILE * ) NULL ;\n }\n minst -> heap -> gs_lib_ctx -> stdout_is_redirected = 0 ;\n minst -> heap -> gs_lib_ctx -> stdout_to_stderr = 0 ;\n if ( tempnames ) {\n char * p = tempnames ;\n while ( * p ) {\n unlink ( p ) ;\n p += strlen ( p ) + 1 ;\n }\n free ( tempnames ) ;\n }\n gs_lib_finit ( exit_status , code , minst -> heap ) ;\n gs_free_object ( minst -> heap , minst -> lib_path . container . value . refs , \"lib_path array\" ) ;\n ialloc_finit ( & dmem ) ;\n return exit_status ;\n }"}
{"idx": 6190, "target": 0, "func": "static int get_frame_stats ( vpx_codec_ctx_t * ctx , const vpx_image_t * img , vpx_codec_pts_t pts , unsigned int duration , vpx_enc_frame_flags_t flags , unsigned int deadline , vpx_fixed_buf_t * stats ) {\n int got_pkts = 0 ;\n vpx_codec_iter_t iter = NULL ;\n const vpx_codec_cx_pkt_t * pkt = NULL ;\n const vpx_codec_err_t res = vpx_codec_encode ( ctx , img , pts , duration , flags , deadline ) ;\n if ( res != VPX_CODEC_OK ) die_codec ( ctx , \"Failed to get frame stats.\" ) ;\n while ( ( pkt = vpx_codec_get_cx_data ( ctx , & iter ) ) != NULL ) {\n got_pkts = 1 ;\n if ( pkt -> kind == VPX_CODEC_STATS_PKT ) {\n const uint8_t * const pkt_buf = pkt -> data . twopass_stats . buf ;\n const size_t pkt_size = pkt -> data . twopass_stats . sz ;\n stats -> buf = realloc ( stats -> buf , stats -> sz + pkt_size ) ;\n memcpy ( ( uint8_t * ) stats -> buf + stats -> sz , pkt_buf , pkt_size ) ;\n stats -> sz += pkt_size ;\n }\n }\n return got_pkts ;\n }"}
{"idx": 6191, "target": 0, "func": "GList * completion_get_aliases ( const char * word ) {\n CONFIG_NODE * node ;\n GList * list ;\n GSList * tmp ;\n int len ;\n g_return_val_if_fail ( word != NULL , NULL ) ;\n len = strlen ( word ) ;\n list = NULL ;\n node = iconfig_node_traverse ( \"aliases\" , FALSE ) ;\n tmp = node == NULL ? NULL : config_node_first ( node -> value ) ;\n for ( ;\n tmp != NULL ;\n tmp = config_node_next ( tmp ) ) {\n node = tmp -> data ;\n if ( node -> type != NODE_TYPE_KEY ) continue ;\n if ( len != 0 && g_ascii_strncasecmp ( node -> key , word , len ) != 0 ) continue ;\n list = g_list_append ( list , g_strdup ( node -> key ) ) ;\n }\n return list ;\n }"}
{"idx": 6192, "target": 0, "func": "int ff_h264_get_profile ( SPS * sps ) {\n int profile = sps -> profile_idc ;\n switch ( sps -> profile_idc ) {\n case FF_PROFILE_H264_BASELINE : profile |= ( sps -> constraint_set_flags & 1 << 1 ) ? FF_PROFILE_H264_CONSTRAINED : 0 ;\n break ;\n case FF_PROFILE_H264_HIGH_10 : case FF_PROFILE_H264_HIGH_422 : case FF_PROFILE_H264_HIGH_444_PREDICTIVE : profile |= ( sps -> constraint_set_flags & 1 << 3 ) ? FF_PROFILE_H264_INTRA : 0 ;\n break ;\n }\n return profile ;\n }"}
{"idx": 6193, "target": 0, "func": "ber_slen_t ber_skip_data ( BerElement * ber , ber_len_t len ) {\n ber_len_t actuallen , nleft ;\n assert ( ber != NULL ) ;\n assert ( LBER_VALID ( ber ) ) ;\n nleft = ber_pvt_ber_remaining ( ber ) ;\n actuallen = nleft < len ? nleft : len ;\n ber -> ber_ptr += actuallen ;\n ber -> ber_tag = * ( unsigned char * ) ber -> ber_ptr ;\n return ( ( ber_slen_t ) actuallen ) ;\n }"}
{"idx": 6194, "target": 0, "func": "static void extract_task_done ( GObject * source_object , GAsyncResult * res , gpointer user_data ) {\n ExtractJob * extract_job ;\n extract_job = user_data ;\n if ( extract_job -> done_callback ) {\n extract_job -> done_callback ( extract_job -> output_files , extract_job -> done_callback_data ) ;\n }\n g_list_free_full ( extract_job -> source_files , g_object_unref ) ;\n g_list_free_full ( extract_job -> output_files , g_object_unref ) ;\n g_object_unref ( extract_job -> destination_directory ) ;\n finalize_common ( ( CommonJob * ) extract_job ) ;\n nautilus_file_changes_consume_changes ( TRUE ) ;\n }"}
{"idx": 6195, "target": 0, "func": "gboolean nautilus_directory_is_file_list_monitored ( NautilusDirectory * directory ) {\n return directory -> details -> file_list_monitored ;\n }"}
{"idx": 6196, "target": 0, "func": "void mpi_swap ( MPI a , MPI b ) {\n struct gcry_mpi tmp ;\n tmp = * a ;\n * a = * b ;\n * b = tmp ;\n }"}
{"idx": 6197, "target": 1, "func": "static int bethsoftvid_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n BethsoftvidContext * vid = avctx -> priv_data ;\n char block_type ;\n uint8_t * dst ;\n uint8_t * frame_end ;\n int remaining = avctx -> width ;\n int wrap_to_next_line ;\n int code , ret ;\n int yoffset ;\n if ( ( ret = avctx -> reget_buffer ( avctx , & vid -> frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n wrap_to_next_line = vid -> frame . linesize [ 0 ] - avctx -> width ;\n if ( avpkt -> side_data_elems > 0 && avpkt -> side_data [ 0 ] . type == AV_PKT_DATA_PALETTE ) {\n bytestream2_init ( & vid -> g , avpkt -> side_data [ 0 ] . data , avpkt -> side_data [ 0 ] . size ) ;\n if ( ( ret = set_palette ( vid ) ) < 0 ) return ret ;\n }\n bytestream2_init ( & vid -> g , avpkt -> data , avpkt -> size ) ;\n dst = vid -> frame . data [ 0 ] ;\n frame_end = vid -> frame . data [ 0 ] + vid -> frame . linesize [ 0 ] * avctx -> height ;\n switch ( block_type = bytestream2_get_byte ( & vid -> g ) ) {\n case PALETTE_BLOCK : {\n * got_frame = 0 ;\n if ( ( ret = set_palette ( vid ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"error reading palette\\n\" ) ;\n return ret ;\n }\n return bytestream2_tell ( & vid -> g ) ;\n }\n case VIDEO_YOFF_P_FRAME : yoffset = bytestream2_get_le16 ( & vid -> g ) ;\n if ( yoffset >= avctx -> height ) return AVERROR_INVALIDDATA ;\n dst += vid -> frame . linesize [ 0 ] * yoffset ;\n }\n while ( ( code = bytestream2_get_byte ( & vid -> g ) ) ) {\n int length = code & 0x7f ;\n while ( length > remaining ) {\n if ( code < 0x80 ) bytestream2_get_buffer ( & vid -> g , dst , remaining ) ;\n else if ( block_type == VIDEO_I_FRAME ) memset ( dst , bytestream2_peek_byte ( & vid -> g ) , remaining ) ;\n length -= remaining ;\n dst += remaining + wrap_to_next_line ;\n remaining = avctx -> width ;\n if ( dst == frame_end ) goto end ;\n }\n if ( code < 0x80 ) bytestream2_get_buffer ( & vid -> g , dst , length ) ;\n else if ( block_type == VIDEO_I_FRAME ) memset ( dst , bytestream2_get_byte ( & vid -> g ) , length ) ;\n remaining -= length ;\n dst += length ;\n }\n end : * got_frame = 1 ;\n * ( AVFrame * ) data = vid -> frame ;\n return avpkt -> size ;\n }"}
{"idx": 6198, "target": 0, "func": "void safe_connect ( MYSQL * mysql , const char * name , const char * host , const char * user , const char * pass , const char * db , int port , const char * sock ) {\n int failed_attempts = 0 ;\n DBUG_ENTER ( \"safe_connect\" ) ;\n verbose_msg ( \"Connecting to server %s:%d (socket %s) as '%s'\" \", connection '%s', attempt %d ...\" , host , port , sock , user , name , failed_attempts ) ;\n while ( ! mysql_real_connect ( mysql , host , user , pass , db , port , sock , CLIENT_MULTI_STATEMENTS | CLIENT_REMEMBER_OPTIONS ) ) {\n if ( ( mysql_errno ( mysql ) == CR_CONN_HOST_ERROR || mysql_errno ( mysql ) == CR_CONNECTION_ERROR ) && failed_attempts < opt_max_connect_retries ) {\n verbose_msg ( \"Connect attempt %d/%d failed: %d: %s\" , failed_attempts , opt_max_connect_retries , mysql_errno ( mysql ) , mysql_error ( mysql ) ) ;\n my_sleep ( connection_retry_sleep ) ;\n }\n else {\n if ( failed_attempts > 0 ) die ( \"Could not open connection '%s' after %d attempts: %d %s\" , name , failed_attempts , mysql_errno ( mysql ) , mysql_error ( mysql ) ) ;\n else die ( \"Could not open connection '%s': %d %s\" , name , mysql_errno ( mysql ) , mysql_error ( mysql ) ) ;\n }\n failed_attempts ++ ;\n }\n verbose_msg ( \"... Connected.\" ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 6199, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , UseCounterFeaturesMixedContent ) {\n net : : EmbeddedTestServer https_server ( net : : EmbeddedTestServer : : TYPE_HTTPS ) ;\n https_server . AddDefaultHandlers ( base : : FilePath ( FILE_PATH_LITERAL ( \"chrome/test/data\" ) ) ) ;\n ASSERT_TRUE ( https_server . Start ( ) ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : LOAD_EVENT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , https_server . GetURL ( \"/page_load_metrics/use_counter_features.html\" ) ) ;\n waiter -> Wait ( ) ;\n NavigateToUntrackedUrl ( ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kFeaturesHistogramName , static_cast < int32_t > ( WebFeature : : kMixedContentAudio ) , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kFeaturesHistogramName , static_cast < int32_t > ( WebFeature : : kMixedContentImage ) , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kFeaturesHistogramName , static_cast < int32_t > ( WebFeature : : kMixedContentVideo ) , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kFeaturesHistogramName , static_cast < int32_t > ( WebFeature : : kPageVisits ) , 1 ) ;\n }"}
{"idx": 6200, "target": 1, "func": "void evhttp_send_reply_end ( struct evhttp_request * req ) {\n struct evhttp_connection * evcon = req -> evcon ;\n if ( req -> chunked ) {\n evbuffer_add ( req -> evcon -> output_buffer , \"0\\r\\n\\r\\n\" , 5 ) ;\n evhttp_write_buffer ( req -> evcon , evhttp_send_done , NULL ) ;\n req -> chunked = 0 ;\n }\n else if ( ! event_pending ( & evcon -> ev , EV_WRITE | EV_TIMEOUT , NULL ) ) {\n evhttp_send_done ( evcon , NULL ) ;\n }\n else {\n evcon -> cb = evhttp_send_done ;\n evcon -> cb_arg = NULL ;\n }\n }"}
{"idx": 6201, "target": 0, "func": "static void compress_job_on_progress ( AutoarCompressor * compressor , guint64 completed_size , guint completed_files , gpointer user_data ) {\n CompressJob * compress_job = user_data ;\n CommonJob * common = user_data ;\n char * status ;\n char * details ;\n int files_left ;\n double elapsed ;\n double transfer_rate ;\n int remaining_time ;\n files_left = compress_job -> total_files - completed_files ;\n if ( compress_job -> total_files == 1 ) {\n status = f ( _ ( \"Compressing \u201c%B\u201d into \u201c%B\u201d\" ) , G_FILE ( compress_job -> source_files -> data ) , compress_job -> output_file ) ;\n }\n else {\n status = f ( ngettext ( \"Compressing %'d file into \u201c%B\u201d\" , \"Compressing %'d files into \u201c%B\u201d\" , compress_job -> total_files ) , compress_job -> total_files , compress_job -> output_file ) ;\n }\n nautilus_progress_info_take_status ( common -> progress , status ) ;\n elapsed = g_timer_elapsed ( common -> time , NULL ) ;\n transfer_rate = 0 ;\n remaining_time = - 1 ;\n if ( elapsed > 0 ) {\n if ( completed_size > 0 ) {\n transfer_rate = completed_size / elapsed ;\n remaining_time = ( compress_job -> total_size - completed_size ) / transfer_rate ;\n }\n else if ( completed_files > 0 ) {\n transfer_rate = completed_files / elapsed ;\n remaining_time = ( compress_job -> total_files - completed_files ) / transfer_rate ;\n }\n }\n if ( elapsed < SECONDS_NEEDED_FOR_RELIABLE_TRANSFER_RATE || transfer_rate == 0 ) {\n if ( compress_job -> total_files == 1 ) {\n details = f ( _ ( \"%S / %S\" ) , completed_size , compress_job -> total_size ) ;\n }\n else {\n details = f ( _ ( \"%'d / %'d\" ) , files_left > 0 ? completed_files + 1 : completed_files , compress_job -> total_files ) ;\n }\n }\n else {\n if ( compress_job -> total_files == 1 ) {\n if ( files_left > 0 ) {\n details = f ( ngettext ( \"%S / %S \\xE2\\x80\\x94 %T left (%S/sec)\" , \"%S / %S \\xE2\\x80\\x94 %T left (%S/sec)\" , seconds_count_format_time_units ( remaining_time ) ) , completed_size , compress_job -> total_size , remaining_time , ( goffset ) transfer_rate ) ;\n }\n else {\n details = f ( _ ( \"%S / %S\" ) , completed_size , compress_job -> total_size ) ;\n }\n }\n else {\n if ( files_left > 0 ) {\n details = f ( ngettext ( \"%'d / %'d \\xE2\\x80\\x94 %T left (%S/sec)\" , \"%'d / %'d \\xE2\\x80\\x94 %T left (%S/sec)\" , seconds_count_format_time_units ( remaining_time ) ) , completed_files + 1 , compress_job -> total_files , remaining_time , ( goffset ) transfer_rate ) ;\n }\n else {\n details = f ( _ ( \"%'d / %'d\" ) , completed_files , compress_job -> total_files ) ;\n }\n }\n }\n nautilus_progress_info_take_details ( common -> progress , details ) ;\n if ( elapsed > SECONDS_NEEDED_FOR_APROXIMATE_TRANSFER_RATE ) {\n nautilus_progress_info_set_remaining_time ( common -> progress , remaining_time ) ;\n nautilus_progress_info_set_elapsed_time ( common -> progress , elapsed ) ;\n }\n nautilus_progress_info_set_progress ( common -> progress , completed_size , compress_job -> total_size ) ;\n }"}
{"idx": 6202, "target": 0, "func": "static void prep_NVRAM_init ( void ) {\n m48t59_t * nvram ;\n nvram = m48t59_init ( 8 , 0x0074 , NVRAM_SIZE ) ;\n NVRAM_set_word ( nvram , 0x00 , NVRAM_SIZE >> 10 ) ;\n NVRAM_set_byte ( nvram , 0x02 , 0x01 ) ;\n NVRAM_set_byte ( nvram , 0x03 , 0x01 ) ;\n NVRAM_set_byte ( nvram , 0x08 , 0x00 ) ;\n NVRAM_set_byte ( nvram , 0x09 , 'B' ) ;\n NVRAM_set_byte ( nvram , 0x0A , 0x00 ) ;\n NVRAM_set_byte ( nvram , 0x0B , 0x00 ) ;\n NVRAM_set_word ( nvram , 0x0C , 0x01 ) ;\n NVRAM_set_word ( nvram , 0x0E , 0x01 ) ;\n NVRAM_set_lword ( nvram , 0x20 , 0x00 ) ;\n NVRAM_set_lword ( nvram , 0x24 , 0x00 ) ;\n NVRAM_set_lword ( nvram , 0x28 , 0x00 ) ;\n NVRAM_set_crc ( nvram , 0x1C , 0x0C , 32 ) ;\n NVRAM_set_lword ( nvram , 0xC4 , 0x0100 ) ;\n NVRAM_set_lword ( nvram , 0xC8 , NVRAM_END - NVRAM_OSAREA_SIZE - NVRAM_CONFSIZE - 0x0100 ) ;\n NVRAM_set_lword ( nvram , 0xD4 , NVRAM_END - NVRAM_CONFSIZE ) ;\n NVRAM_set_lword ( nvram , 0xD8 , NVRAM_CONFSIZE ) ;\n NVRAM_set_lword ( nvram , 0xE8 , NVRAM_END - NVRAM_CONFSIZE - NVRAM_OSAREA_SIZE ) ;\n NVRAM_set_lword ( nvram , 0xEC , NVRAM_OSAREA_SIZE ) ;\n NVRAM_set_crc ( nvram , 0x04 , 0x00 , NVRAM_END - NVRAM_CONFSIZE - NVRAM_OSAREA_SIZE ) ;\n NVRAM_set_crc ( nvram , 0x06 , NVRAM_END - NVRAM_CONFSIZE , NVRAM_CONFSIZE ) ;\n }"}
{"idx": 6203, "target": 0, "func": "static const float * anti_sparseness ( AMRContext * p , AMRFixed * fixed_sparse , const float * fixed_vector , float fixed_gain , float * out ) {\n int ir_filter_nr ;\n if ( p -> pitch_gain [ 4 ] < 0.6 ) {\n ir_filter_nr = 0 ;\n }\n else if ( p -> pitch_gain [ 4 ] < 0.9 ) {\n ir_filter_nr = 1 ;\n }\n else ir_filter_nr = 2 ;\n if ( fixed_gain > 2.0 * p -> prev_sparse_fixed_gain ) {\n p -> ir_filter_onset = 2 ;\n }\n else if ( p -> ir_filter_onset ) p -> ir_filter_onset -- ;\n if ( ! p -> ir_filter_onset ) {\n int i , count = 0 ;\n for ( i = 0 ;\n i < 5 ;\n i ++ ) if ( p -> pitch_gain [ i ] < 0.6 ) count ++ ;\n if ( count > 2 ) ir_filter_nr = 0 ;\n if ( ir_filter_nr > p -> prev_ir_filter_nr + 1 ) ir_filter_nr -- ;\n }\n else if ( ir_filter_nr < 2 ) ir_filter_nr ++ ;\n if ( fixed_gain < 5.0 ) ir_filter_nr = 2 ;\n if ( p -> cur_frame_mode != MODE_7k4 && p -> cur_frame_mode < MODE_10k2 && ir_filter_nr < 2 ) {\n apply_ir_filter ( out , fixed_sparse , ( p -> cur_frame_mode == MODE_7k95 ? ir_filters_lookup_MODE_7k95 : ir_filters_lookup ) [ ir_filter_nr ] ) ;\n fixed_vector = out ;\n }\n p -> prev_ir_filter_nr = ir_filter_nr ;\n p -> prev_sparse_fixed_gain = fixed_gain ;\n return fixed_vector ;\n }"}
{"idx": 6204, "target": 0, "func": "static int ebml_read_master ( MatroskaDemuxContext * matroska , uint64_t length ) {\n AVIOContext * pb = matroska -> ctx -> pb ;\n MatroskaLevel * level ;\n if ( matroska -> num_levels >= EBML_MAX_DEPTH ) {\n av_log ( matroska -> ctx , AV_LOG_ERROR , \"File moves beyond max. allowed depth (%d)\\n\" , EBML_MAX_DEPTH ) ;\n return AVERROR ( ENOSYS ) ;\n }\n level = & matroska -> levels [ matroska -> num_levels ++ ] ;\n level -> start = avio_tell ( pb ) ;\n level -> length = length ;\n return 0 ;\n }"}
{"idx": 6205, "target": 0, "func": "static int find_newc_header ( struct archive_read * a ) {\n const void * h ;\n const char * p , * q ;\n size_t skip , skipped = 0 ;\n ssize_t bytes ;\n for ( ;\n ;\n ) {\n h = __archive_read_ahead ( a , newc_header_size , & bytes ) ;\n if ( h == NULL ) return ( ARCHIVE_FATAL ) ;\n p = h ;\n q = p + bytes ;\n if ( memcmp ( \"07070\" , p , 5 ) == 0 && ( p [ 5 ] == '1' || p [ 5 ] == '2' ) && is_hex ( p , newc_header_size ) ) return ( ARCHIVE_OK ) ;\n while ( p + newc_header_size <= q ) {\n switch ( p [ 5 ] ) {\n case '1' : case '2' : if ( memcmp ( \"07070\" , p , 5 ) == 0 && is_hex ( p , newc_header_size ) ) {\n skip = p - ( const char * ) h ;\n __archive_read_consume ( a , skip ) ;\n skipped += skip ;\n if ( skipped > 0 ) {\n archive_set_error ( & a -> archive , 0 , \"Skipped %d bytes before \" \"finding valid header\" , ( int ) skipped ) ;\n return ( ARCHIVE_WARN ) ;\n }\n return ( ARCHIVE_OK ) ;\n }\n p += 2 ;\n break ;\n case '0' : p ++ ;\n break ;\n default : p += 6 ;\n break ;\n }\n }\n skip = p - ( const char * ) h ;\n __archive_read_consume ( a , skip ) ;\n skipped += skip ;\n }\n }"}
{"idx": 6206, "target": 0, "func": "static char * StripTags ( char * psz_subtitle ) {\n char * psz_text_start ;\n char * psz_text ;\n psz_text = psz_text_start = malloc ( strlen ( psz_subtitle ) + 1 ) ;\n if ( ! psz_text_start ) return NULL ;\n while ( * psz_subtitle ) {\n if ( * psz_subtitle == '<' ) {\n if ( strncasecmp ( psz_subtitle , \"<br/>\" , 5 ) == 0 ) * psz_text ++ = '\\n' ;\n psz_subtitle += strcspn ( psz_subtitle , \">\" ) ;\n }\n else if ( * psz_subtitle == '&' ) {\n if ( ! strncasecmp ( psz_subtitle , \"&lt;\n\" , 4 ) ) {\n * psz_text ++ = '<' ;\n psz_subtitle += strcspn ( psz_subtitle , \";\n\" ) ;\n }\n else if ( ! strncasecmp ( psz_subtitle , \"&gt;\n\" , 4 ) ) {\n * psz_text ++ = '>' ;\n psz_subtitle += strcspn ( psz_subtitle , \";\n\" ) ;\n }\n else if ( ! strncasecmp ( psz_subtitle , \"&amp;\n\" , 5 ) ) {\n * psz_text ++ = '&' ;\n psz_subtitle += strcspn ( psz_subtitle , \";\n\" ) ;\n }\n else if ( ! strncasecmp ( psz_subtitle , \"&quot;\n\" , 6 ) ) {\n * psz_text ++ = '\\\"' ;\n psz_subtitle += strcspn ( psz_subtitle , \";\n\" ) ;\n }\n else {\n * psz_text ++ = '&' ;\n }\n }\n else {\n * psz_text ++ = * psz_subtitle ;\n }\n if ( * psz_subtitle == '\\0' ) break ;\n psz_subtitle ++ ;\n }\n * psz_text = '\\0' ;\n char * psz = realloc ( psz_text_start , strlen ( psz_text_start ) + 1 ) ;\n if ( psz ) psz_text_start = psz ;\n return psz_text_start ;\n }"}
{"idx": 6207, "target": 0, "func": "static gint coap_opt_check ( packet_info * pinfo , proto_tree * subtree , guint opt_num , gint opt_length , coap_common_dissect_t * dissect_hf ) {\n int i ;\n for ( i = 0 ;\n i < ( int ) ( array_length ( coi ) ) ;\n i ++ ) {\n if ( coi [ i ] . type == opt_num ) break ;\n }\n if ( i == ( int ) ( array_length ( coi ) ) ) {\n expert_add_info_format ( pinfo , subtree , & dissect_hf -> ei . opt_invalid_number , \"Invalid Option Number %u\" , opt_num ) ;\n return - 1 ;\n }\n if ( opt_length < coi [ i ] . min || opt_length > coi [ i ] . max ) {\n expert_add_info_format ( pinfo , subtree , & dissect_hf -> ei . opt_invalid_range , \"Invalid Option Range: %d (%d < x < %d)\" , opt_length , coi [ i ] . min , coi [ i ] . max ) ;\n }\n return 0 ;\n }"}
{"idx": 6208, "target": 0, "func": "static int mime_header_encoder_collector ( int c , void * data ) {\n static int qp_table [ 256 ] = {\n 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 }\n ;\n int n ;\n struct mime_header_encoder_data * pe = ( struct mime_header_encoder_data * ) data ;\n switch ( pe -> status1 ) {\n case 11 : ( * pe -> block_filter -> filter_function ) ( c , pe -> block_filter ) ;\n break ;\n default : if ( c <= 0x00ff && ! qp_table [ ( c & 0xff ) ] ) {\n mbfl_memory_device_output ( c , & pe -> tmpdev ) ;\n pe -> status1 = 1 ;\n }\n else if ( pe -> status1 == 0 && c == 0x20 ) {\n mbfl_memory_device_output ( c , & pe -> tmpdev ) ;\n }\n else {\n if ( pe -> tmpdev . pos < 74 && c == 0x20 ) {\n n = pe -> outdev . pos - pe -> linehead + pe -> tmpdev . pos + pe -> firstindent ;\n if ( n > 74 ) {\n mbfl_memory_device_strncat ( & pe -> outdev , pe -> lwsp , pe -> lwsplen ) ;\n pe -> linehead = pe -> outdev . pos ;\n pe -> firstindent = 0 ;\n }\n else if ( pe -> outdev . pos > 0 ) {\n mbfl_memory_device_output ( 0x20 , & pe -> outdev ) ;\n }\n mbfl_memory_device_devcat ( & pe -> outdev , & pe -> tmpdev ) ;\n mbfl_memory_device_reset ( & pe -> tmpdev ) ;\n pe -> status1 = 0 ;\n }\n else {\n n = pe -> outdev . pos - pe -> linehead + pe -> encnamelen + pe -> firstindent ;\n if ( n > 60 ) {\n mbfl_memory_device_strncat ( & pe -> outdev , pe -> lwsp , pe -> lwsplen ) ;\n pe -> linehead = pe -> outdev . pos ;\n pe -> firstindent = 0 ;\n }\n else if ( pe -> outdev . pos > 0 ) {\n mbfl_memory_device_output ( 0x20 , & pe -> outdev ) ;\n }\n mbfl_convert_filter_devcat ( pe -> block_filter , & pe -> tmpdev ) ;\n mbfl_memory_device_reset ( & pe -> tmpdev ) ;\n ( * pe -> block_filter -> filter_function ) ( c , pe -> block_filter ) ;\n pe -> status1 = 11 ;\n }\n }\n break ;\n }\n return c ;\n }"}
{"idx": 6209, "target": 0, "func": "int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL ) DECLARE_PEM_rw ( PKCS7 , PKCS7 ) DECLARE_PEM_rw ( NETSCAPE_CERT_SEQUENCE , NETSCAPE_CERT_SEQUENCE ) DECLARE_PEM_rw ( PKCS8 , X509_SIG ) DECLARE_PEM_rw ( PKCS8_PRIV_KEY_INFO , PKCS8_PRIV_KEY_INFO )"}
{"idx": 6210, "target": 0, "func": "static const char * image_format_to_string ( vpx_img_fmt_t f ) {\n switch ( f ) {\n case VPX_IMG_FMT_I420 : return \"I420\" ;\n case VPX_IMG_FMT_I422 : return \"I422\" ;\n case VPX_IMG_FMT_I444 : return \"I444\" ;\n case VPX_IMG_FMT_YV12 : return \"YV12\" ;\n default : return \"Other\" ;\n }\n }"}
{"idx": 6211, "target": 0, "func": "int lbmpdm_get_minimum_length ( void ) {\n return ( L_LBMPDM_MSG_HDR_T ) ;\n }"}
{"idx": 6212, "target": 0, "func": "kadm5_ret_t kadm5_chpass_principal_3 ( void * server_handle , krb5_principal principal , krb5_boolean keepold , int n_ks_tuple , krb5_key_salt_tuple * ks_tuple , char * password ) {\n krb5_int32 now ;\n kadm5_policy_ent_rec pol ;\n osa_princ_ent_rec adb ;\n krb5_db_entry * kdb ;\n int ret , ret2 , last_pwd , hist_added ;\n krb5_boolean have_pol = FALSE ;\n kadm5_server_handle_t handle = server_handle ;\n osa_pw_hist_ent hist ;\n krb5_keyblock * act_mkey , * hist_keyblocks = NULL ;\n krb5_kvno act_kvno , hist_kvno ;\n int new_n_ks_tuple = 0 ;\n krb5_key_salt_tuple * new_ks_tuple = NULL ;\n CHECK_HANDLE ( server_handle ) ;\n krb5_clear_error_message ( handle -> context ) ;\n hist_added = 0 ;\n memset ( & hist , 0 , sizeof ( hist ) ) ;\n if ( principal == NULL || password == NULL ) return EINVAL ;\n if ( ( krb5_principal_compare ( handle -> context , principal , hist_princ ) ) == TRUE ) return KADM5_PROTECT_PRINCIPAL ;\n if ( ( ret = kdb_get_entry ( handle , principal , & kdb , & adb ) ) ) return ( ret ) ;\n ret = apply_keysalt_policy ( handle , adb . policy , n_ks_tuple , ks_tuple , & new_n_ks_tuple , & new_ks_tuple ) ;\n if ( ret ) goto done ;\n if ( ( adb . aux_attributes & KADM5_POLICY ) ) {\n ret = get_policy ( handle , adb . policy , & pol , & have_pol ) ;\n if ( ret ) goto done ;\n }\n if ( have_pol ) {\n ret = kdb_get_hist_key ( handle , & hist_keyblocks , & hist_kvno ) ;\n if ( ret ) goto done ;\n ret = create_history_entry ( handle -> context , & hist_keyblocks [ 0 ] , kdb -> n_key_data , kdb -> key_data , & hist ) ;\n if ( ret ) goto done ;\n }\n if ( ( ret = passwd_check ( handle , password , have_pol ? & pol : NULL , principal ) ) ) goto done ;\n ret = kdb_get_active_mkey ( handle , & act_kvno , & act_mkey ) ;\n if ( ret ) goto done ;\n ret = krb5_dbe_cpw ( handle -> context , act_mkey , new_ks_tuple , new_n_ks_tuple , password , 0 , keepold , kdb ) ;\n if ( ret ) goto done ;\n ret = krb5_dbe_update_mkvno ( handle -> context , kdb , act_kvno ) ;\n if ( ret ) goto done ;\n kdb -> attributes &= ~ KRB5_KDB_REQUIRES_PWCHANGE ;\n ret = krb5_timeofday ( handle -> context , & now ) ;\n if ( ret ) goto done ;\n if ( ( adb . aux_attributes & KADM5_POLICY ) ) {\n ret = krb5_dbe_lookup_last_pwd_change ( handle -> context , kdb , & last_pwd ) ;\n if ( ret ) goto done ;\n # if 0 if ( ( now - last_pwd ) < pol . pw_min_life && ! ( kdb -> attributes & KRB5_KDB_REQUIRES_PWCHANGE ) ) {\n ret = KADM5_PASS_TOOSOON ;\n goto done ;\n }\n # endif ret = check_pw_reuse ( handle -> context , hist_keyblocks , kdb -> n_key_data , kdb -> key_data , 1 , & hist ) ;\n if ( ret ) goto done ;\n if ( pol . pw_history_num > 1 ) {\n if ( adb . admin_history_kvno == hist_kvno ) {\n ret = check_pw_reuse ( handle -> context , hist_keyblocks , kdb -> n_key_data , kdb -> key_data , adb . old_key_len , adb . old_keys ) ;\n if ( ret ) goto done ;\n }\n ret = add_to_history ( handle -> context , hist_kvno , & adb , & pol , & hist ) ;\n if ( ret ) goto done ;\n hist_added = 1 ;\n }\n if ( pol . pw_max_life ) kdb -> pw_expiration = now + pol . pw_max_life ;\n else kdb -> pw_expiration = 0 ;\n }\n else {\n kdb -> pw_expiration = 0 ;\n }\n # ifdef USE_PASSWORD_SERVER if ( kadm5_use_password_server ( ) && ( krb5_princ_size ( handle -> context , principal ) == 1 ) ) {\n krb5_data * princ = krb5_princ_component ( handle -> context , principal , 0 ) ;\n const char * path = \"/usr/sbin/mkpassdb\" ;\n char * argv [ ] = {\n \"mkpassdb\" , \"-setpassword\" , NULL , NULL }\n ;\n char * pstring = NULL ;\n if ( ! ret ) {\n pstring = malloc ( ( princ -> length + 1 ) * sizeof ( char ) ) ;\n if ( pstring == NULL ) {\n ret = ENOMEM ;\n }\n }\n if ( ! ret ) {\n memcpy ( pstring , princ -> data , princ -> length ) ;\n pstring [ princ -> length ] = '\\0' ;\n argv [ 2 ] = pstring ;\n ret = kadm5_launch_task ( handle -> context , path , argv , password ) ;\n }\n if ( pstring != NULL ) free ( pstring ) ;\n if ( ret ) goto done ;\n }\n # endif ret = krb5_dbe_update_last_pwd_change ( handle -> context , kdb , now ) ;\n if ( ret ) goto done ;\n kdb -> fail_auth_count = 0 ;\n kdb -> mask = KADM5_KEY_DATA | KADM5_ATTRIBUTES | KADM5_FAIL_AUTH_COUNT ;\n ret = k5_kadm5_hook_chpass ( handle -> context , handle -> hook_handles , KADM5_HOOK_STAGE_PRECOMMIT , principal , keepold , new_n_ks_tuple , new_ks_tuple , password ) ;\n if ( ret ) goto done ;\n if ( ( ret = kdb_put_entry ( handle , kdb , & adb ) ) ) goto done ;\n ( void ) k5_kadm5_hook_chpass ( handle -> context , handle -> hook_handles , KADM5_HOOK_STAGE_POSTCOMMIT , principal , keepold , new_n_ks_tuple , new_ks_tuple , password ) ;\n ret = KADM5_OK ;\n done : free ( new_ks_tuple ) ;\n if ( ! hist_added && hist . key_data ) free_history_entry ( handle -> context , & hist ) ;\n kdb_free_entry ( handle , kdb , & adb ) ;\n kdb_free_keyblocks ( handle , hist_keyblocks ) ;\n if ( have_pol && ( ret2 = kadm5_free_policy_ent ( handle -> lhandle , & pol ) ) && ! ret ) ret = ret2 ;\n return ret ;\n }"}
{"idx": 6213, "target": 0, "func": "static int isoent_clone_tree ( struct archive_write * a , struct isoent * * nroot , struct isoent * root ) {\n struct isoent * np , * xroot , * newent ;\n np = root ;\n xroot = NULL ;\n do {\n newent = isoent_clone ( np ) ;\n if ( newent == NULL ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate memory\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n if ( xroot == NULL ) {\n * nroot = xroot = newent ;\n newent -> parent = xroot ;\n }\n else isoent_add_child_tail ( xroot , newent ) ;\n if ( np -> dir && np -> children . first != NULL ) {\n np = np -> children . first ;\n xroot = newent ;\n continue ;\n }\n while ( np != np -> parent ) {\n if ( np -> chnext == NULL ) {\n np = np -> parent ;\n xroot = xroot -> parent ;\n }\n else {\n np = np -> chnext ;\n break ;\n }\n }\n }\n while ( np != np -> parent ) ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 6214, "target": 0, "func": "void purple_initmodule ( ) {\n struct prpl funcs ;\n GList * prots ;\n GString * help ;\n char * dir ;\n if ( purple_get_core ( ) != NULL ) {\n log_message ( LOGLVL_ERROR , \"libpurple already initialized. \" \"Please use inetd or ForkDaemon mode instead.\" ) ;\n return ;\n }\n g_assert ( ( int ) B_EV_IO_READ == ( int ) PURPLE_INPUT_READ ) ;\n g_assert ( ( int ) B_EV_IO_WRITE == ( int ) PURPLE_INPUT_WRITE ) ;\n dir = g_strdup_printf ( \"%s/purple\" , global . conf -> configdir ) ;\n purple_util_set_user_dir ( dir ) ;\n g_free ( dir ) ;\n dir = g_strdup_printf ( \"%s/purple\" , global . conf -> plugindir ) ;\n purple_plugins_add_search_path ( dir ) ;\n g_free ( dir ) ;\n purple_debug_set_enabled ( FALSE ) ;\n purple_core_set_ui_ops ( & bee_core_uiops ) ;\n purple_eventloop_set_ui_ops ( & glib_eventloops ) ;\n if ( ! purple_core_init ( \"BitlBee\" ) ) {\n fprintf ( stderr , \"libpurple initialization failed.\\n\" ) ;\n abort ( ) ;\n }\n if ( proxytype != PROXY_NONE ) {\n PurpleProxyInfo * pi = purple_global_proxy_get_info ( ) ;\n switch ( proxytype ) {\n case PROXY_SOCKS4A : case PROXY_SOCKS4 : purple_proxy_info_set_type ( pi , PURPLE_PROXY_SOCKS4 ) ;\n break ;\n case PROXY_SOCKS5 : purple_proxy_info_set_type ( pi , PURPLE_PROXY_SOCKS5 ) ;\n break ;\n case PROXY_HTTP : purple_proxy_info_set_type ( pi , PURPLE_PROXY_HTTP ) ;\n break ;\n }\n purple_proxy_info_set_host ( pi , proxyhost ) ;\n purple_proxy_info_set_port ( pi , proxyport ) ;\n purple_proxy_info_set_username ( pi , proxyuser ) ;\n purple_proxy_info_set_password ( pi , proxypass ) ;\n }\n purple_set_blist ( purple_blist_new ( ) ) ;\n purple_signal_connect ( purple_conversations_get_handle ( ) , \"buddy-typing\" , & funcs , PURPLE_CALLBACK ( prplcb_buddy_typing ) , NULL ) ;\n purple_signal_connect ( purple_conversations_get_handle ( ) , \"buddy-typed\" , & funcs , PURPLE_CALLBACK ( prplcb_buddy_typing ) , NULL ) ;\n purple_signal_connect ( purple_conversations_get_handle ( ) , \"buddy-typing-stopped\" , & funcs , PURPLE_CALLBACK ( prplcb_buddy_typing ) , NULL ) ;\n memset ( & funcs , 0 , sizeof ( funcs ) ) ;\n funcs . login = purple_login ;\n funcs . init = purple_init ;\n funcs . logout = purple_logout ;\n funcs . buddy_msg = purple_buddy_msg ;\n funcs . away_states = purple_away_states ;\n funcs . set_away = purple_set_away ;\n funcs . add_buddy = purple_add_buddy ;\n funcs . remove_buddy = purple_remove_buddy ;\n funcs . add_permit = purple_add_permit ;\n funcs . add_deny = purple_add_deny ;\n funcs . rem_permit = purple_rem_permit ;\n funcs . rem_deny = purple_rem_deny ;\n funcs . get_info = purple_get_info ;\n funcs . keepalive = purple_keepalive ;\n funcs . send_typing = purple_send_typing ;\n funcs . handle_cmp = g_strcasecmp ;\n funcs . chat_msg = purple_chat_msg ;\n funcs . chat_with = purple_chat_with ;\n funcs . chat_invite = purple_chat_invite ;\n funcs . chat_topic = purple_chat_set_topic ;\n funcs . chat_kick = purple_chat_kick ;\n funcs . chat_leave = purple_chat_leave ;\n funcs . chat_join = purple_chat_join ;\n funcs . chat_list = purple_chat_list ;\n funcs . transfer_request = purple_transfer_request ;\n help = g_string_new ( \"BitlBee libpurple module supports the following IM protocols:\\n\" ) ;\n for ( prots = purple_plugins_get_protocols ( ) ;\n prots ;\n prots = prots -> next ) {\n PurplePlugin * prot = prots -> data ;\n struct prpl * ret ;\n if ( find_protocol ( prot -> info -> id ) ) {\n continue ;\n }\n ret = g_memdup ( & funcs , sizeof ( funcs ) ) ;\n ret -> name = ret -> data = prot -> info -> id ;\n if ( strncmp ( ret -> name , \"prpl-\" , 5 ) == 0 ) {\n ret -> name += 5 ;\n }\n register_protocol ( ret ) ;\n g_string_append_printf ( help , \"\\n* %s (%s)\" , ret -> name , prot -> info -> name ) ;\n if ( g_strcasecmp ( prot -> info -> id , \"prpl-aim\" ) == 0 ) {\n ret = g_memdup ( & funcs , sizeof ( funcs ) ) ;\n ret -> name = \"oscar\" ;\n ret -> data = NULL ;\n register_protocol ( ret ) ;\n }\n }\n g_string_append ( help , \"\\n\\nFor used protocols, more information about available \" \"settings can be found using \\x02help purple <protocol name>\\x02 \" \"(create an account using that protocol first!)\" ) ;\n help_add_mem ( & global . help , \"purple\" , help -> str ) ;\n g_string_free ( help , TRUE ) ;\n }"}
{"idx": 6215, "target": 0, "func": "static int dissect_h245_T_booleanArray ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 766 \"../../asn1/h245/h245.cnf\" guint32 value ;\n guint8 * buf ;\n tvbuff_t * value_tvb ;\n gef_ctx_t * gefx ;\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 255U , & value , FALSE ) ;\n gefx = gef_ctx_get ( actx -> private_data ) ;\n if ( gefx ) {\n buf = wmem_new ( actx -> pinfo -> pool , guint8 ) ;\n buf [ 0 ] = value ;\n value_tvb = tvb_new_child_real_data ( tvb , buf , sizeof ( guint8 ) , sizeof ( guint8 ) ) ;\n add_new_data_source ( actx -> pinfo , value_tvb , \"booleanArray\" ) ;\n dissector_try_string ( gef_content_dissector_table , gefx -> key , value_tvb , actx -> pinfo , tree , actx ) ;\n }\n return offset ;\n }"}
{"idx": 6216, "target": 0, "func": "guint16 elem_lv_e ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , gint pdu_type , int idx , guint32 offset , guint len _U_ , const gchar * name_add ) {\n guint16 parm_len ;\n guint16 consumed ;\n guint32 curr_offset ;\n proto_tree * subtree ;\n proto_item * item ;\n value_string_ext elem_names_ext ;\n gint * elem_ett ;\n const gchar * elem_name ;\n guint16 ( * * elem_funcs ) ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string , int string_len ) ;\n curr_offset = offset ;\n consumed = 0 ;\n SET_ELEM_VARS ( pdu_type , elem_names_ext , elem_ett , elem_funcs , & ei_gsm_a_unknown_pdu_type ) ;\n parm_len = tvb_get_ntohs ( tvb , curr_offset ) ;\n elem_name = try_val_to_str_ext ( idx , & elem_names_ext ) ;\n if ( elem_name == NULL ) {\n proto_tree_add_expert_format ( tree , pinfo , & ei_gsm_a_unknown_element , tvb , curr_offset , parm_len + 2 , \"Unknown - aborting dissection%s\" , ( name_add == NULL ) || ( name_add [ 0 ] == '\\0' ) ? \"\" : name_add ) ;\n return consumed ;\n }\n subtree = proto_tree_add_subtree_format ( tree , tvb , curr_offset , parm_len + 2 , elem_ett [ idx ] , & item , \"%s%s\" , elem_name , ( name_add == NULL ) || ( name_add [ 0 ] == '\\0' ) ? \"\" : name_add ) ;\n proto_tree_add_uint ( subtree , hf_gsm_a_length , tvb , curr_offset , 2 , parm_len ) ;\n if ( parm_len > 0 ) {\n if ( elem_funcs [ idx ] == NULL ) {\n proto_tree_add_item ( subtree , hf_gsm_a_element_value , tvb , curr_offset + 2 , parm_len , ENC_NA ) ;\n consumed = parm_len ;\n }\n else {\n gchar * a_add_string ;\n a_add_string = ( gchar * ) wmem_alloc ( wmem_packet_scope ( ) , 1024 ) ;\n a_add_string [ 0 ] = '\\0' ;\n consumed = ( * elem_funcs [ idx ] ) ( tvb , subtree , pinfo , curr_offset + 2 , parm_len , a_add_string , 1024 ) ;\n if ( a_add_string [ 0 ] != '\\0' ) {\n proto_item_append_text ( item , \"%s\" , a_add_string ) ;\n }\n }\n }\n return ( consumed + 2 ) ;\n }"}
{"idx": 6217, "target": 0, "func": "int X509_REQ_check_private_key ( X509_REQ * x , EVP_PKEY * k ) {\n EVP_PKEY * xk = NULL ;\n int ok = 0 ;\n xk = X509_REQ_get_pubkey ( x ) ;\n switch ( EVP_PKEY_cmp ( xk , k ) ) {\n case 1 : ok = 1 ;\n break ;\n case 0 : X509err ( X509_F_X509_REQ_CHECK_PRIVATE_KEY , X509_R_KEY_VALUES_MISMATCH ) ;\n break ;\n case - 1 : X509err ( X509_F_X509_REQ_CHECK_PRIVATE_KEY , X509_R_KEY_TYPE_MISMATCH ) ;\n break ;\n case - 2 : # ifndef OPENSSL_NO_EC if ( k -> type == EVP_PKEY_EC ) {\n X509err ( X509_F_X509_REQ_CHECK_PRIVATE_KEY , ERR_R_EC_LIB ) ;\n break ;\n }\n # endif # ifndef OPENSSL_NO_DH if ( k -> type == EVP_PKEY_DH ) {\n X509err ( X509_F_X509_REQ_CHECK_PRIVATE_KEY , X509_R_CANT_CHECK_DH_KEY ) ;\n break ;\n }\n # endif X509err ( X509_F_X509_REQ_CHECK_PRIVATE_KEY , X509_R_UNKNOWN_KEY_TYPE ) ;\n }\n EVP_PKEY_free ( xk ) ;\n return ( ok ) ;\n }"}
{"idx": 6218, "target": 0, "func": "static int dbstmt_compare ( zval * object1 , zval * object2 TSRMLS_DC ) {\n return - 1 ;\n }"}
{"idx": 6219, "target": 1, "func": "char * irc_ctcp_dcc_filename_without_quotes ( const char * filename ) {\n int length ;\n length = strlen ( filename ) ;\n if ( length > 0 ) {\n if ( ( filename [ 0 ] == '\\\"' ) && ( filename [ length - 1 ] == '\\\"' ) ) return weechat_strndup ( filename + 1 , length - 2 ) ;\n }\n return strdup ( filename ) ;\n }"}
{"idx": 6220, "target": 0, "func": "static int dissect_pvfs2_getattr_request ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"handle\" , NULL ) ;\n offset = dissect_pvfs_fs_id ( tvb , tree , offset ) ;\n offset = dissect_pvfs2_attrmask ( tvb , tree , offset , NULL ) ;\n return offset ;\n }"}
{"idx": 6221, "target": 1, "func": "static int decode_p_frame ( FourXContext * f , const uint8_t * buf , int length ) {\n int x , y ;\n const int width = f -> avctx -> width ;\n const int height = f -> avctx -> height ;\n uint16_t * src = ( uint16_t * ) f -> last_picture -> data [ 0 ] ;\n uint16_t * dst = ( uint16_t * ) f -> current_picture -> data [ 0 ] ;\n const int stride = f -> current_picture -> linesize [ 0 ] >> 1 ;\n unsigned int bitstream_size , bytestream_size , wordstream_size , extra , bytestream_offset , wordstream_offset ;\n if ( f -> version > 1 ) {\n extra = 20 ;\n bitstream_size = AV_RL32 ( buf + 8 ) ;\n wordstream_size = AV_RL32 ( buf + 12 ) ;\n bytestream_size = AV_RL32 ( buf + 16 ) ;\n }\n else {\n extra = 0 ;\n bitstream_size = AV_RL16 ( buf - 4 ) ;\n wordstream_size = AV_RL16 ( buf - 2 ) ;\n bytestream_size = FFMAX ( length - bitstream_size - wordstream_size , 0 ) ;\n }\n if ( bitstream_size + bytestream_size + wordstream_size + extra != length || bitstream_size > ( 1 << 26 ) || bytestream_size > ( 1 << 26 ) || wordstream_size > ( 1 << 26 ) ) {\n av_log ( f -> avctx , AV_LOG_ERROR , \"lengths %d %d %d %d\\n\" , bitstream_size , bytestream_size , wordstream_size , bitstream_size + bytestream_size + wordstream_size - length ) ;\n return AVERROR_INVALIDDATA ;\n }\n av_fast_malloc ( & f -> bitstream_buffer , & f -> bitstream_buffer_size , bitstream_size + FF_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( ! f -> bitstream_buffer ) return AVERROR ( ENOMEM ) ;\n f -> dsp . bswap_buf ( f -> bitstream_buffer , ( const uint32_t * ) ( buf + extra ) , bitstream_size / 4 ) ;\n memset ( ( uint8_t * ) f -> bitstream_buffer + bitstream_size , 0 , FF_INPUT_BUFFER_PADDING_SIZE ) ;\n init_get_bits ( & f -> gb , f -> bitstream_buffer , 8 * bitstream_size ) ;\n wordstream_offset = extra + bitstream_size ;\n bytestream_offset = extra + bitstream_size + wordstream_size ;\n bytestream2_init ( & f -> g2 , buf + wordstream_offset , length - wordstream_offset ) ;\n bytestream2_init ( & f -> g , buf + bytestream_offset , length - bytestream_offset ) ;\n init_mv ( f ) ;\n for ( y = 0 ;\n y < height ;\n y += 8 ) {\n for ( x = 0 ;\n x < width ;\n x += 8 ) decode_p_block ( f , dst + x , src + x , 3 , 3 , stride ) ;\n src += 8 * stride ;\n dst += 8 * stride ;\n }\n return 0 ;\n }"}
{"idx": 6222, "target": 0, "func": "int xmlHashAddEntry ( xmlHashTablePtr table , const xmlChar * name , void * userdata ) {\n return ( xmlHashAddEntry3 ( table , name , NULL , NULL , userdata ) ) ;\n }"}
{"idx": 6223, "target": 0, "func": "void vp9_loop_filter_frame_mt ( YV12_BUFFER_CONFIG * frame , VP9Decoder * pbi , VP9_COMMON * cm , int frame_filter_level , int y_only ) {\n VP9LfSync * const lf_sync = & pbi -> lf_row_sync ;\n const VP9WorkerInterface * const winterface = vp9_get_worker_interface ( ) ;\n const int sb_rows = mi_cols_aligned_to_sb ( cm -> mi_rows ) >> MI_BLOCK_SIZE_LOG2 ;\n const int tile_cols = 1 << cm -> log2_tile_cols ;\n const int num_workers = MIN ( pbi -> max_threads & ~ 1 , tile_cols ) ;\n int i ;\n if ( ! frame_filter_level ) return ;\n if ( ! lf_sync -> sync_range || cm -> last_height != cm -> height ) {\n vp9_loop_filter_dealloc ( lf_sync ) ;\n vp9_loop_filter_alloc ( lf_sync , cm , sb_rows , cm -> width ) ;\n }\n vp9_loop_filter_frame_init ( cm , frame_filter_level ) ;\n vpx_memset ( lf_sync -> cur_sb_col , - 1 , sizeof ( * lf_sync -> cur_sb_col ) * sb_rows ) ;\n for ( i = 0 ;\n i < num_workers ;\n ++ i ) {\n VP9Worker * const worker = & pbi -> tile_workers [ i ] ;\n TileWorkerData * const tile_data = ( TileWorkerData * ) worker -> data1 ;\n LFWorkerData * const lf_data = & tile_data -> lfdata ;\n worker -> hook = ( VP9WorkerHook ) loop_filter_row_worker ;\n lf_data -> frame_buffer = frame ;\n lf_data -> cm = cm ;\n vp9_copy ( lf_data -> planes , pbi -> mb . plane ) ;\n lf_data -> start = i ;\n lf_data -> stop = sb_rows ;\n lf_data -> y_only = y_only ;\n lf_data -> lf_sync = lf_sync ;\n lf_data -> num_lf_workers = num_workers ;\n if ( i == num_workers - 1 ) {\n winterface -> execute ( worker ) ;\n }\n else {\n winterface -> launch ( worker ) ;\n }\n }\n for ( i = 0 ;\n i < num_workers ;\n ++ i ) {\n winterface -> sync ( & pbi -> tile_workers [ i ] ) ;\n }\n }"}
{"idx": 6224, "target": 0, "func": "int _zip_dirent_write ( struct zip_dirent * zde , FILE * fp , int localp , struct zip_error * error ) {\n unsigned short dostime , dosdate ;\n fwrite ( localp ? LOCAL_MAGIC : CENTRAL_MAGIC , 1 , 4 , fp ) ;\n if ( ! localp ) _zip_write2 ( zde -> version_madeby , fp ) ;\n _zip_write2 ( zde -> version_needed , fp ) ;\n _zip_write2 ( zde -> bitflags , fp ) ;\n _zip_write2 ( zde -> comp_method , fp ) ;\n _zip_u2d_time ( zde -> last_mod , & dostime , & dosdate ) ;\n _zip_write2 ( dostime , fp ) ;\n _zip_write2 ( dosdate , fp ) ;\n _zip_write4 ( zde -> crc , fp ) ;\n _zip_write4 ( zde -> comp_size , fp ) ;\n _zip_write4 ( zde -> uncomp_size , fp ) ;\n _zip_write2 ( zde -> filename_len , fp ) ;\n _zip_write2 ( zde -> extrafield_len , fp ) ;\n if ( ! localp ) {\n _zip_write2 ( zde -> comment_len , fp ) ;\n _zip_write2 ( zde -> disk_number , fp ) ;\n _zip_write2 ( zde -> int_attrib , fp ) ;\n _zip_write4 ( zde -> ext_attrib , fp ) ;\n _zip_write4 ( zde -> offset , fp ) ;\n }\n if ( zde -> filename_len ) fwrite ( zde -> filename , 1 , zde -> filename_len , fp ) ;\n if ( zde -> extrafield_len ) fwrite ( zde -> extrafield , 1 , zde -> extrafield_len , fp ) ;\n if ( ! localp ) {\n if ( zde -> comment_len ) fwrite ( zde -> comment , 1 , zde -> comment_len , fp ) ;\n }\n if ( ferror ( fp ) ) {\n _zip_error_set ( error , ZIP_ER_WRITE , errno ) ;\n return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 6225, "target": 0, "func": "RegProcedure get_opcode ( Oid opno ) {\n HeapTuple tp ;\n tp = SearchSysCache1 ( OPEROID , ObjectIdGetDatum ( opno ) ) ;\n if ( HeapTupleIsValid ( tp ) ) {\n Form_pg_operator optup = ( Form_pg_operator ) GETSTRUCT ( tp ) ;\n RegProcedure result ;\n result = optup -> oprcode ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }\n else return ( RegProcedure ) InvalidOid ;\n }"}
{"idx": 6226, "target": 0, "func": "TEST_F ( ScoredHistoryMatchTest , GetTopicalityScoreTrailingSlash ) {\n const float hostname = GetTopicalityScoreOfTermAgainstURLAndTitle ( ASCIIToUTF16 ( \"def\" ) , ASCIIToUTF16 ( \"http://abc.def.com/\" ) , ASCIIToUTF16 ( \"Non-Matching Title\" ) ) ;\n const float hostname_no_slash = GetTopicalityScoreOfTermAgainstURLAndTitle ( ASCIIToUTF16 ( \"def\" ) , ASCIIToUTF16 ( \"http://abc.def.com\" ) , ASCIIToUTF16 ( \"Non-Matching Title\" ) ) ;\n EXPECT_EQ ( hostname_no_slash , hostname ) ;\n }"}
{"idx": 6227, "target": 0, "func": "Gif_Stream * Gif_FullReadRecord ( const Gif_Record * gifrec , int read_flags , const char * landmark , Gif_ReadErrorHandler h ) {\n Gif_Reader grr ;\n if ( ! gifrec ) return 0 ;\n make_data_reader ( & grr , gifrec -> data , gifrec -> length ) ;\n if ( read_flags & GIF_READ_CONST_RECORD ) read_flags |= GIF_READ_COMPRESSED ;\n return read_gif ( & grr , read_flags , landmark , h ) ;\n }"}
{"idx": 6228, "target": 0, "func": "static LAST_MSG_REC * last_msg_find ( GSList * list , const char * nick ) {\n while ( list != NULL ) {\n LAST_MSG_REC * rec = list -> data ;\n if ( g_ascii_strcasecmp ( rec -> nick , nick ) == 0 ) return rec ;\n list = list -> next ;\n }\n return NULL ;\n }"}
{"idx": 6229, "target": 0, "func": "TEST_F ( AutocompleteResultTest , SortAndCullReorderForDefaultMatch ) {\n TestData data [ ] = {\n {\n 0 , 1 , 1300 , true }\n , {\n 1 , 1 , 1200 , true }\n , {\n 2 , 1 , 1100 , true }\n , {\n 3 , 1 , 1000 , true }\n }\n ;\n {\n ACMatches matches ;\n PopulateAutocompleteMatches ( data , arraysize ( data ) , & matches ) ;\n AutocompleteInput input ( base : : string16 ( ) , base : : string16 : : npos , std : : string ( ) , GURL ( ) , OmniboxEventProto : : HOME_PAGE , false , false , false , true , false , TestSchemeClassifier ( ) ) ;\n AutocompleteResult result ;\n result . AppendMatches ( input , matches ) ;\n result . SortAndCull ( input , template_url_service_ . get ( ) ) ;\n AssertResultMatches ( result , data , 4 ) ;\n }\n {\n ACMatches matches ;\n PopulateAutocompleteMatches ( data , arraysize ( data ) , & matches ) ;\n matches [ 0 ] . allowed_to_be_default_match = false ;\n matches [ 1 ] . allowed_to_be_default_match = false ;\n AutocompleteInput input ( base : : string16 ( ) , base : : string16 : : npos , std : : string ( ) , GURL ( ) , OmniboxEventProto : : HOME_PAGE , false , false , false , true , false , TestSchemeClassifier ( ) ) ;\n AutocompleteResult result ;\n result . AppendMatches ( input , matches ) ;\n result . SortAndCull ( input , template_url_service_ . get ( ) ) ;\n ASSERT_EQ ( 4U , result . size ( ) ) ;\n EXPECT_EQ ( \"http://c/\" , result . match_at ( 0 ) -> destination_url . spec ( ) ) ;\n EXPECT_EQ ( \"http://a/\" , result . match_at ( 1 ) -> destination_url . spec ( ) ) ;\n EXPECT_EQ ( \"http://b/\" , result . match_at ( 2 ) -> destination_url . spec ( ) ) ;\n EXPECT_EQ ( \"http://d/\" , result . match_at ( 3 ) -> destination_url . spec ( ) ) ;\n }\n }"}
{"idx": 6230, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( MultiProfileDownloadNotificationTest , PRE_DownloadMultipleFiles ) {\n AddAllUsers ( ) ;\n }"}
{"idx": 6231, "target": 0, "func": "static unsigned char isLegalUTF8 ( const UTF8 * source , unsigned long length ) {\n UTF8 a ;\n const UTF8 * srcptr = source + length ;\n switch ( length ) {\n default : return 0 ;\n case 4 : if ( ( a = ( * -- srcptr ) ) < 0x80 || a > 0xBF ) return 0 ;\n case 3 : if ( ( a = ( * -- srcptr ) ) < 0x80 || a > 0xBF ) return 0 ;\n case 2 : if ( ( a = ( * -- srcptr ) ) > 0xBF ) return 0 ;\n switch ( * source ) {\n case 0xE0 : if ( a < 0xA0 ) return 0 ;\n break ;\n case 0xED : if ( a > 0x9F ) return 0 ;\n break ;\n case 0xF0 : if ( a < 0x90 ) return 0 ;\n break ;\n case 0xF4 : if ( a > 0x8F ) return 0 ;\n break ;\n default : if ( a < 0x80 ) return 0 ;\n }\n case 1 : if ( * source >= 0x80 && * source < 0xC2 ) return 0 ;\n }\n if ( * source > 0xF4 ) return 0 ;\n return 1 ;\n }"}
{"idx": 6232, "target": 0, "func": "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_ ) {\n # line 321 \"./asn1/h225/h225.cnf\" tvbuff_t * value_tvb = NULL ;\n guint len = 0 ;\n h225_packet_info * h225_pi ;\n offset = dissect_per_restricted_character_string ( tvb , offset , actx , tree , hf_index , 1 , 128 , FALSE , \"0123456789#*,\" , 13 , & value_tvb ) ;\n h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n if ( h225_pi && h225_pi -> is_destinationInfo == TRUE ) {\n if ( value_tvb ) {\n len = tvb_reported_length ( value_tvb ) ;\n if ( len > sizeof h225_pi -> dialedDigits - 1 ) len = sizeof h225_pi -> dialedDigits - 1 ;\n tvb_memcpy ( value_tvb , ( guint8 * ) h225_pi -> dialedDigits , 0 , len ) ;\n }\n h225_pi -> dialedDigits [ len ] = '\\0' ;\n h225_pi -> is_destinationInfo = FALSE ;\n }\n return offset ;\n }"}
{"idx": 6233, "target": 0, "func": "u_int ppp_print ( netdissect_options * ndo , register const u_char * p , u_int length ) {\n u_int proto , ppp_header ;\n u_int olen = length ;\n u_int hdr_len = 0 ;\n if ( length < 2 ) goto trunc ;\n ND_TCHECK2 ( * p , 2 ) ;\n ppp_header = EXTRACT_16BITS ( p ) ;\n switch ( ppp_header ) {\n case ( PPP_WITHDIRECTION_IN << 8 | PPP_CONTROL ) : if ( ndo -> ndo_eflag ) ND_PRINT ( ( ndo , \"In \" ) ) ;\n p += 2 ;\n length -= 2 ;\n hdr_len += 2 ;\n break ;\n case ( PPP_WITHDIRECTION_OUT << 8 | PPP_CONTROL ) : if ( ndo -> ndo_eflag ) ND_PRINT ( ( ndo , \"Out \" ) ) ;\n p += 2 ;\n length -= 2 ;\n hdr_len += 2 ;\n break ;\n case ( PPP_ADDRESS << 8 | PPP_CONTROL ) : p += 2 ;\n length -= 2 ;\n hdr_len += 2 ;\n break ;\n default : break ;\n }\n if ( length < 2 ) goto trunc ;\n ND_TCHECK ( * p ) ;\n if ( * p % 2 ) {\n proto = * p ;\n p ++ ;\n length -- ;\n hdr_len ++ ;\n }\n else {\n ND_TCHECK2 ( * p , 2 ) ;\n proto = EXTRACT_16BITS ( p ) ;\n p += 2 ;\n length -= 2 ;\n hdr_len += 2 ;\n }\n if ( ndo -> ndo_eflag ) ND_PRINT ( ( ndo , \"%s (0x%04x), length %u: \" , tok2str ( ppptype2str , \"unknown\" , proto ) , proto , olen ) ) ;\n handle_ppp ( ndo , proto , p , length ) ;\n return ( hdr_len ) ;\n trunc : ND_PRINT ( ( ndo , \"[|ppp]\" ) ) ;\n return ( 0 ) ;\n }"}
{"idx": 6234, "target": 0, "func": "static void purple_ui_init ( ) {\n purple_connections_set_ui_ops ( & bee_conn_uiops ) ;\n purple_blist_set_ui_ops ( & bee_blist_uiops ) ;\n purple_conversations_set_ui_ops ( & bee_conv_uiops ) ;\n purple_request_set_ui_ops ( & bee_request_uiops ) ;\n purple_privacy_set_ui_ops ( & bee_privacy_uiops ) ;\n purple_roomlist_set_ui_ops ( & bee_roomlist_uiops ) ;\n purple_notify_set_ui_ops ( & bee_notify_uiops ) ;\n purple_accounts_set_ui_ops ( & bee_account_uiops ) ;\n purple_xfers_set_ui_ops ( & bee_xfer_uiops ) ;\n if ( getenv ( \"BITLBEE_DEBUG\" ) ) {\n purple_debug_set_ui_ops ( & bee_debug_uiops ) ;\n }\n }"}
{"idx": 6235, "target": 0, "func": "METHOD ( certificate_t , get_subject , identification_t * , private_x509_cert_t * this ) {\n return this -> subject ;\n }"}
{"idx": 6236, "target": 0, "func": "static int superblock_alloc_security ( struct super_block * sb ) {\n struct superblock_security_struct * sbsec ;\n sbsec = kzalloc ( sizeof ( struct superblock_security_struct ) , GFP_KERNEL ) ;\n if ( ! sbsec ) return - ENOMEM ;\n mutex_init ( & sbsec -> lock ) ;\n INIT_LIST_HEAD ( & sbsec -> isec_head ) ;\n spin_lock_init ( & sbsec -> isec_lock ) ;\n sbsec -> sb = sb ;\n sbsec -> sid = SECINITSID_UNLABELED ;\n sbsec -> def_sid = SECINITSID_FILE ;\n sbsec -> mntpoint_sid = SECINITSID_UNLABELED ;\n sb -> s_security = sbsec ;\n return 0 ;\n }"}
{"idx": 6237, "target": 0, "func": "static void decode_color_temperature ( gchar * s , guint16 value ) {\n if ( value == 0 ) {\n g_snprintf ( s , ITEM_LABEL_LENGTH , \"%u [Mired]\" , value ) ;\n }\n else {\n g_snprintf ( s , ITEM_LABEL_LENGTH , \"%u [Mired] (%u [K])\" , value , 1000000 / value ) ;\n }\n return ;\n }"}
{"idx": 6238, "target": 0, "func": "TSReturnCode TSMgmtFloatGet ( const char * var_name , TSMgmtFloat * result ) {\n return RecGetRecordFloat ( ( char * ) var_name , ( RecFloat * ) result ) == REC_ERR_OKAY ? TS_SUCCESS : TS_ERROR ;\n }"}
{"idx": 6239, "target": 0, "func": "static void list_mime_enum_callback ( GObject * source_object , GAsyncResult * res , gpointer user_data ) {\n MimeListState * state ;\n GFileEnumerator * enumerator ;\n NautilusDirectory * directory ;\n GError * error ;\n state = user_data ;\n if ( g_cancellable_is_cancelled ( state -> cancellable ) ) {\n directory = state -> directory ;\n directory -> details -> mime_list_in_progress = NULL ;\n async_job_end ( directory , \"MIME list\" ) ;\n nautilus_directory_async_state_changed ( directory ) ;\n mime_list_state_free ( state ) ;\n return ;\n }\n error = NULL ;\n enumerator = g_file_enumerate_children_finish ( G_FILE ( source_object ) , res , & error ) ;\n if ( enumerator == NULL ) {\n mime_list_done ( state , FALSE ) ;\n g_error_free ( error ) ;\n mime_list_state_free ( state ) ;\n return ;\n }\n else {\n state -> enumerator = enumerator ;\n g_file_enumerator_next_files_async ( state -> enumerator , DIRECTORY_LOAD_ITEMS_PER_CALLBACK , G_PRIORITY_DEFAULT , state -> cancellable , mime_list_callback , state ) ;\n }\n }"}
{"idx": 6240, "target": 0, "func": "static void virtio_pci_config_writeb ( void * opaque , uint32_t addr , uint32_t val ) {\n VirtIOPCIProxy * proxy = opaque ;\n uint32_t config = VIRTIO_PCI_CONFIG ( & proxy -> pci_dev ) ;\n addr -= proxy -> addr ;\n if ( addr < config ) {\n virtio_ioport_write ( proxy , addr , val ) ;\n return ;\n }\n addr -= config ;\n virtio_config_writeb ( proxy -> vdev , addr , val ) ;\n }"}
{"idx": 6241, "target": 1, "func": "void xmlHashScan3 ( xmlHashTablePtr table , const xmlChar * name , const xmlChar * name2 , const xmlChar * name3 , xmlHashScanner f , void * data ) {\n xmlHashScanFull3 ( table , name , name2 , name3 , ( xmlHashScannerFull ) f , data ) ;\n }"}
{"idx": 6242, "target": 0, "func": "static inline int check_bidir_mv ( MpegEncContext * s , int motion_fx , int motion_fy , int motion_bx , int motion_by , int pred_fx , int pred_fy , int pred_bx , int pred_by , int size , int h ) {\n MotionEstContext * const c = & s -> me ;\n uint8_t * const mv_penalty_f = c -> mv_penalty [ s -> f_code ] + MAX_MV ;\n uint8_t * const mv_penalty_b = c -> mv_penalty [ s -> b_code ] + MAX_MV ;\n int stride = c -> stride ;\n uint8_t * dest_y = c -> scratchpad ;\n uint8_t * ptr ;\n int dxy ;\n int src_x , src_y ;\n int fbmin ;\n uint8_t * * src_data = c -> src [ 0 ] ;\n uint8_t * * ref_data = c -> ref [ 0 ] ;\n uint8_t * * ref2_data = c -> ref [ 2 ] ;\n if ( s -> quarter_sample ) {\n dxy = ( ( motion_fy & 3 ) << 2 ) | ( motion_fx & 3 ) ;\n src_x = motion_fx >> 2 ;\n src_y = motion_fy >> 2 ;\n ptr = ref_data [ 0 ] + ( src_y * stride ) + src_x ;\n s -> dsp . put_qpel_pixels_tab [ 0 ] [ dxy ] ( dest_y , ptr , stride ) ;\n dxy = ( ( motion_by & 3 ) << 2 ) | ( motion_bx & 3 ) ;\n src_x = motion_bx >> 2 ;\n src_y = motion_by >> 2 ;\n ptr = ref2_data [ 0 ] + ( src_y * stride ) + src_x ;\n s -> dsp . avg_qpel_pixels_tab [ size ] [ dxy ] ( dest_y , ptr , stride ) ;\n }\n else {\n dxy = ( ( motion_fy & 1 ) << 1 ) | ( motion_fx & 1 ) ;\n src_x = motion_fx >> 1 ;\n src_y = motion_fy >> 1 ;\n ptr = ref_data [ 0 ] + ( src_y * stride ) + src_x ;\n s -> dsp . put_pixels_tab [ size ] [ dxy ] ( dest_y , ptr , stride , h ) ;\n dxy = ( ( motion_by & 1 ) << 1 ) | ( motion_bx & 1 ) ;\n src_x = motion_bx >> 1 ;\n src_y = motion_by >> 1 ;\n ptr = ref2_data [ 0 ] + ( src_y * stride ) + src_x ;\n s -> dsp . avg_pixels_tab [ size ] [ dxy ] ( dest_y , ptr , stride , h ) ;\n }\n fbmin = ( mv_penalty_f [ motion_fx - pred_fx ] + mv_penalty_f [ motion_fy - pred_fy ] ) * c -> mb_penalty_factor + ( mv_penalty_b [ motion_bx - pred_bx ] + mv_penalty_b [ motion_by - pred_by ] ) * c -> mb_penalty_factor + s -> dsp . mb_cmp [ size ] ( s , src_data [ 0 ] , dest_y , stride , h ) ;\n if ( c -> avctx -> mb_cmp & FF_CMP_CHROMA ) {\n }\n return fbmin ;\n }"}
{"idx": 6243, "target": 0, "func": "static int pxa2xx_i2c_initfn ( SysBusDevice * dev ) {\n PXA2xxI2CState * s = FROM_SYSBUS ( PXA2xxI2CState , dev ) ;\n s -> bus = i2c_init_bus ( & dev -> qdev , \"i2c\" ) ;\n memory_region_init_io ( & s -> iomem , OBJECT ( s ) , & pxa2xx_i2c_ops , s , \"pxa2xx-i2c\" , s -> region_size ) ;\n sysbus_init_mmio ( dev , & s -> iomem ) ;\n sysbus_init_irq ( dev , & s -> irq ) ;\n return 0 ;\n }"}
{"idx": 6244, "target": 0, "func": "static void ipvideo_decode_opcodes ( IpvideoContext * s , AVFrame * frame ) {\n int x , y ;\n unsigned char opcode ;\n int ret ;\n GetBitContext gb ;\n bytestream2_skip ( & s -> stream_ptr , 14 ) ;\n if ( ! s -> is_16bpp ) {\n memcpy ( frame -> data [ 1 ] , s -> pal , AVPALETTE_SIZE ) ;\n s -> stride = frame -> linesize [ 0 ] ;\n }\n else {\n s -> stride = frame -> linesize [ 0 ] >> 1 ;\n s -> mv_ptr = s -> stream_ptr ;\n bytestream2_skip ( & s -> mv_ptr , bytestream2_get_le16 ( & s -> stream_ptr ) ) ;\n }\n s -> line_inc = s -> stride - 8 ;\n s -> upper_motion_limit_offset = ( s -> avctx -> height - 8 ) * frame -> linesize [ 0 ] + ( s -> avctx -> width - 8 ) * ( 1 + s -> is_16bpp ) ;\n init_get_bits ( & gb , s -> decoding_map , s -> decoding_map_size * 8 ) ;\n for ( y = 0 ;\n y < s -> avctx -> height ;\n y += 8 ) {\n for ( x = 0 ;\n x < s -> avctx -> width ;\n x += 8 ) {\n opcode = get_bits ( & gb , 4 ) ;\n av_dlog ( s -> avctx , \" block @ (%3d, %3d): encoding 0x%X, data ptr offset %d\\n\" , x , y , opcode , bytestream2_tell ( & s -> stream_ptr ) ) ;\n if ( ! s -> is_16bpp ) {\n s -> pixel_ptr = frame -> data [ 0 ] + x + y * frame -> linesize [ 0 ] ;\n ret = ipvideo_decode_block [ opcode ] ( s , frame ) ;\n }\n else {\n s -> pixel_ptr = frame -> data [ 0 ] + x * 2 + y * frame -> linesize [ 0 ] ;\n ret = ipvideo_decode_block16 [ opcode ] ( s , frame ) ;\n }\n if ( ret != 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \" Interplay video: decode problem on frame %d, @ block (%d, %d)\\n\" , s -> avctx -> frame_number , x , y ) ;\n return ;\n }\n }\n }\n if ( bytestream2_get_bytes_left ( & s -> stream_ptr ) > 1 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Interplay video: decode finished with %d bytes left over\\n\" , bytestream2_get_bytes_left ( & s -> stream_ptr ) ) ;\n }\n }"}
{"idx": 6245, "target": 0, "func": "static int dissect_diameter_common ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n guint32 first_word = tvb_get_ntohl ( tvb , 0 ) ;\n guint32 version = ( first_word & 0xff000000 ) >> 24 ;\n guint32 flags_bits = ( tvb_get_ntohl ( tvb , 4 ) & 0xff000000 ) >> 24 ;\n int packet_len = first_word & 0x00ffffff ;\n proto_item * pi , * cmd_item , * app_item , * version_item ;\n proto_tree * diam_tree ;\n diam_ctx_t * c = ( diam_ctx_t * ) wmem_alloc0 ( wmem_packet_scope ( ) , sizeof ( diam_ctx_t ) ) ;\n int offset ;\n value_string * cmd_vs ;\n const char * cmd_str ;\n guint32 cmd = tvb_get_ntoh24 ( tvb , 5 ) ;\n guint32 hop_by_hop_id , end_to_end_id ;\n conversation_t * conversation ;\n diameter_conv_info_t * diameter_conv_info ;\n diameter_req_ans_pair_t * diameter_pair = NULL ;\n wmem_tree_t * pdus_tree ;\n proto_item * it ;\n nstime_t ns ;\n diam_sub_dis_t * diam_sub_dis_inf = wmem_new0 ( wmem_packet_scope ( ) , diam_sub_dis_t ) ;\n diam_sub_dis_inf -> application_id = tvb_get_ntohl ( tvb , 8 ) ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"DIAMETER\" ) ;\n pi = proto_tree_add_item ( tree , proto_diameter , tvb , 0 , - 1 , ENC_NA ) ;\n diam_tree = proto_item_add_subtree ( pi , ett_diameter ) ;\n c -> tree = diam_tree ;\n c -> pinfo = pinfo ;\n version_item = proto_tree_add_item ( diam_tree , hf_diameter_version , tvb , 0 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( diam_tree , hf_diameter_length , tvb , 1 , 3 , ENC_BIG_ENDIAN ) ;\n pi = proto_tree_add_bitmask ( diam_tree , tvb , 4 , hf_diameter_flags , ett_diameter_flags , diameter_flags_fields , ENC_BIG_ENDIAN ) ;\n if ( flags_bits & 0x0f ) expert_add_info ( c -> pinfo , pi , & ei_diameter_reserved_bit_set ) ;\n cmd_item = proto_tree_add_item ( diam_tree , hf_diameter_code , tvb , 5 , 3 , ENC_BIG_ENDIAN ) ;\n switch ( version ) {\n case DIAMETER_V16 : {\n guint32 vendorid = tvb_get_ntohl ( tvb , 8 ) ;\n diam_vnd_t * vendor ;\n if ( ! ( vendor = ( diam_vnd_t * ) wmem_tree_lookup32 ( dictionary . vnds , vendorid ) ) ) {\n vendor = & unknown_vendor ;\n }\n cmd_vs = VND_CMD_VS ( vendor ) ;\n proto_tree_add_item ( diam_tree , hf_diameter_vendor_id , tvb , 8 , 4 , ENC_BIG_ENDIAN ) ;\n c -> version_rfc = FALSE ;\n break ;\n }\n case DIAMETER_RFC : {\n cmd_vs = ( value_string * ) ( void * ) all_cmds -> data ;\n app_item = proto_tree_add_item ( diam_tree , hf_diameter_application_id , tvb , 8 , 4 , ENC_BIG_ENDIAN ) ;\n if ( try_val_to_str_ext ( diam_sub_dis_inf -> application_id , dictionary . applications ) == NULL ) {\n proto_tree * tu = proto_item_add_subtree ( app_item , ett_unknown ) ;\n proto_tree_add_expert_format ( tu , c -> pinfo , & ei_diameter_application_id , tvb , 8 , 4 , \"Unknown Application Id (%u), if you know what this is you can add it to dictionary.xml\" , diam_sub_dis_inf -> application_id ) ;\n }\n c -> version_rfc = TRUE ;\n break ;\n }\n default : {\n proto_tree * pt = proto_item_add_subtree ( version_item , ett_err ) ;\n proto_tree_add_expert ( pt , pinfo , & ei_diameter_version , tvb , 0 , 1 ) ;\n c -> version_rfc = TRUE ;\n cmd_vs = VND_CMD_VS ( & no_vnd ) ;\n break ;\n }\n }\n cmd_str = val_to_str_const ( cmd , cmd_vs , \"Unknown\" ) ;\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"cmd=%s%s(%d) flags=%s %s=%s(%d) h2h=%x e2e=%x\" , cmd_str , ( ( flags_bits >> 4 ) & 0x08 ) ? \" Request\" : \" Answer\" , cmd , msgflags_str [ ( ( flags_bits >> 4 ) & 0x0f ) ] , c -> version_rfc ? \"appl\" : \"vend\" , c -> version_rfc ? val_to_str_ext_const ( diam_sub_dis_inf -> application_id , dictionary . applications , \"Unknown\" ) : val_to_str_const ( diam_sub_dis_inf -> application_id , vnd_short_vs , \"Unknown\" ) , diam_sub_dis_inf -> application_id , tvb_get_ntohl ( tvb , 12 ) , tvb_get_ntohl ( tvb , 16 ) ) ;\n col_append_str ( pinfo -> cinfo , COL_INFO , \" | \" ) ;\n col_set_fence ( pinfo -> cinfo , COL_INFO ) ;\n proto_item_append_text ( cmd_item , \" %s\" , cmd_str ) ;\n if ( strcmp ( cmd_str , \"Unknown\" ) == 0 ) {\n proto_tree * tu = proto_item_add_subtree ( cmd_item , ett_unknown ) ;\n proto_tree_add_expert ( tu , c -> pinfo , & ei_diameter_code , tvb , 5 , 3 ) ;\n }\n hop_by_hop_id = tvb_get_ntohl ( tvb , 12 ) ;\n proto_tree_add_item ( diam_tree , hf_diameter_hopbyhopid , tvb , 12 , 4 , ENC_BIG_ENDIAN ) ;\n end_to_end_id = tvb_get_ntohl ( tvb , 16 ) ;\n proto_tree_add_item ( diam_tree , hf_diameter_endtoendid , tvb , 16 , 4 , ENC_BIG_ENDIAN ) ;\n conversation = find_or_create_conversation ( pinfo ) ;\n diameter_conv_info = ( diameter_conv_info_t * ) conversation_get_proto_data ( conversation , proto_diameter ) ;\n if ( ! diameter_conv_info ) {\n diameter_conv_info = wmem_new ( wmem_file_scope ( ) , diameter_conv_info_t ) ;\n diameter_conv_info -> pdus_tree = wmem_map_new ( wmem_file_scope ( ) , g_direct_hash , g_direct_equal ) ;\n conversation_add_proto_data ( conversation , proto_diameter , diameter_conv_info ) ;\n }\n pdus_tree = ( wmem_tree_t * ) wmem_map_lookup ( diameter_conv_info -> pdus_tree , GUINT_TO_POINTER ( hop_by_hop_id ) ) ;\n if ( pdus_tree == NULL && ( flags_bits & DIAM_FLAGS_R ) ) {\n pdus_tree = wmem_tree_new ( wmem_file_scope ( ) ) ;\n wmem_map_insert ( diameter_conv_info -> pdus_tree , GUINT_TO_POINTER ( hop_by_hop_id ) , pdus_tree ) ;\n }\n if ( pdus_tree ) {\n if ( ! pinfo -> fd -> flags . visited ) {\n if ( flags_bits & DIAM_FLAGS_R ) {\n diameter_pair = wmem_new ( wmem_file_scope ( ) , diameter_req_ans_pair_t ) ;\n diameter_pair -> hop_by_hop_id = hop_by_hop_id ;\n diameter_pair -> end_to_end_id = end_to_end_id ;\n diameter_pair -> cmd_code = cmd ;\n diameter_pair -> result_code = 0 ;\n diameter_pair -> cmd_str = cmd_str ;\n diameter_pair -> req_frame = PINFO_FD_NUM ( pinfo ) ;\n diameter_pair -> ans_frame = 0 ;\n diameter_pair -> req_time = pinfo -> fd -> abs_ts ;\n wmem_tree_insert32 ( pdus_tree , PINFO_FD_NUM ( pinfo ) , ( void * ) diameter_pair ) ;\n }\n else {\n diameter_pair = ( diameter_req_ans_pair_t * ) wmem_tree_lookup32_le ( pdus_tree , PINFO_FD_NUM ( pinfo ) ) ;\n if ( diameter_pair && diameter_pair -> end_to_end_id == end_to_end_id ) {\n diameter_pair -> ans_frame = PINFO_FD_NUM ( pinfo ) ;\n }\n }\n }\n else {\n diameter_pair = ( diameter_req_ans_pair_t * ) wmem_tree_lookup32_le ( pdus_tree , PINFO_FD_NUM ( pinfo ) ) ;\n if ( diameter_pair && diameter_pair -> end_to_end_id != end_to_end_id ) diameter_pair = NULL ;\n }\n }\n if ( ! diameter_pair ) {\n diameter_pair = ( diameter_req_ans_pair_t * ) wmem_alloc ( wmem_packet_scope ( ) , sizeof ( diameter_req_ans_pair_t ) ) ;\n diameter_pair -> hop_by_hop_id = hop_by_hop_id ;\n diameter_pair -> cmd_code = cmd ;\n diameter_pair -> result_code = 0 ;\n diameter_pair -> cmd_str = cmd_str ;\n diameter_pair -> req_frame = 0 ;\n diameter_pair -> ans_frame = 0 ;\n diameter_pair -> req_time = pinfo -> fd -> abs_ts ;\n }\n diameter_pair -> processing_request = ( flags_bits & DIAM_FLAGS_R ) != 0 ;\n if ( flags_bits & DIAM_FLAGS_R ) {\n if ( diameter_pair -> ans_frame ) {\n it = proto_tree_add_uint ( diam_tree , hf_diameter_answer_in , tvb , 0 , 0 , diameter_pair -> ans_frame ) ;\n PROTO_ITEM_SET_GENERATED ( it ) ;\n }\n }\n else {\n if ( diameter_pair -> req_frame ) {\n it = proto_tree_add_uint ( diam_tree , hf_diameter_answer_to , tvb , 0 , 0 , diameter_pair -> req_frame ) ;\n PROTO_ITEM_SET_GENERATED ( it ) ;\n nstime_delta ( & ns , & pinfo -> fd -> abs_ts , & diameter_pair -> req_time ) ;\n diameter_pair -> srt_time = ns ;\n it = proto_tree_add_time ( diam_tree , hf_diameter_answer_time , tvb , 0 , 0 , & ns ) ;\n PROTO_ITEM_SET_GENERATED ( it ) ;\n }\n }\n offset = 20 ;\n while ( offset < packet_len ) {\n offset += dissect_diameter_avp ( c , tvb , offset , diam_sub_dis_inf ) ;\n }\n tap_queue_packet ( diameter_tap , pinfo , diameter_pair ) ;\n if ( have_tap_listener ( exported_pdu_tap ) ) {\n export_diameter_pdu ( pinfo , tvb ) ;\n }\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 6246, "target": 0, "func": "int tls_construct_change_cipher_spec ( SSL * s ) {\n unsigned char * p ;\n p = ( unsigned char * ) s -> init_buf -> data ;\n * p = SSL3_MT_CCS ;\n s -> init_num = 1 ;\n s -> init_off = 0 ;\n return 1 ;\n }"}
{"idx": 6247, "target": 0, "func": "static void moresubs ( struct vars * v , int wanted ) {\n struct subre * * p ;\n size_t n ;\n assert ( wanted > 0 && ( size_t ) wanted >= v -> nsubs ) ;\n n = ( size_t ) wanted * 3 / 2 + 1 ;\n if ( v -> subs == v -> sub10 ) {\n p = ( struct subre * * ) MALLOC ( n * sizeof ( struct subre * ) ) ;\n if ( p != NULL ) memcpy ( VS ( p ) , VS ( v -> subs ) , v -> nsubs * sizeof ( struct subre * ) ) ;\n }\n else p = ( struct subre * * ) REALLOC ( v -> subs , n * sizeof ( struct subre * ) ) ;\n if ( p == NULL ) {\n ERR ( REG_ESPACE ) ;\n return ;\n }\n v -> subs = p ;\n for ( p = & v -> subs [ v -> nsubs ] ;\n v -> nsubs < n ;\n p ++ , v -> nsubs ++ ) * p = NULL ;\n assert ( v -> nsubs == n ) ;\n assert ( ( size_t ) wanted < v -> nsubs ) ;\n }"}
{"idx": 6248, "target": 0, "func": "static void _check_database_version ( ArchiveHandle * AH ) {\n const char * remoteversion_str ;\n int remoteversion ;\n PGresult * res ;\n remoteversion_str = PQparameterStatus ( AH -> connection , \"server_version\" ) ;\n remoteversion = PQserverVersion ( AH -> connection ) ;\n if ( remoteversion == 0 || ! remoteversion_str ) exit_horribly ( modulename , \"could not get server_version from libpq\\n\" ) ;\n AH -> public . remoteVersionStr = pg_strdup ( remoteversion_str ) ;\n AH -> public . remoteVersion = remoteversion ;\n if ( ! AH -> archiveRemoteVersion ) AH -> archiveRemoteVersion = AH -> public . remoteVersionStr ;\n if ( remoteversion != PG_VERSION_NUM && ( remoteversion < AH -> public . minRemoteVersion || remoteversion > AH -> public . maxRemoteVersion ) ) {\n write_msg ( NULL , \"server version: %s;\n %s version: %s\\n\" , remoteversion_str , progname , PG_VERSION ) ;\n exit_horribly ( NULL , \"aborting because of server version mismatch\\n\" ) ;\n }\n if ( remoteversion >= 90000 ) {\n res = ExecuteSqlQueryForSingleRow ( ( Archive * ) AH , \"SELECT pg_catalog.pg_is_in_recovery()\" ) ;\n AH -> public . isStandby = ( strcmp ( PQgetvalue ( res , 0 , 0 ) , \"t\" ) == 0 ) ;\n PQclear ( res ) ;\n }\n else AH -> public . isStandby = false ;\n }"}
{"idx": 6249, "target": 0, "func": "static int selinux_vm_enough_memory ( struct mm_struct * mm , long pages ) {\n int rc , cap_sys_admin = 0 ;\n rc = cred_has_capability ( current_cred ( ) , CAP_SYS_ADMIN , SECURITY_CAP_NOAUDIT , true ) ;\n if ( rc == 0 ) cap_sys_admin = 1 ;\n return cap_sys_admin ;\n }"}
{"idx": 6250, "target": 0, "func": "static char * rfc1867_angle ( tvbuff_t * tvb , int offset , const char * nsew ) {\n guint32 angle ;\n char direction ;\n guint32 degrees , minutes , secs , tsecs ;\n static char buf [ 10 + 1 + 3 + 1 + 2 + 1 + 3 + 1 + 2 + 1 + 3 + 1 + 3 + 1 + 1 + 1 ] ;\n angle = tvb_get_ntohl ( tvb , offset ) ;\n if ( angle < 0x80000000U ) {\n angle = 0x80000000U - angle ;\n direction = nsew [ 1 ] ;\n }\n else {\n angle = angle - 0x80000000U ;\n direction = nsew [ 0 ] ;\n }\n tsecs = angle % 1000 ;\n angle = angle / 1000 ;\n secs = angle % 60 ;\n angle = angle / 60 ;\n minutes = angle % 60 ;\n degrees = angle / 60 ;\n g_snprintf ( buf , sizeof ( buf ) , \"%u deg %u min %u.%03u sec %c\" , degrees , minutes , secs , tsecs , direction ) ;\n return buf ;\n }"}
{"idx": 6251, "target": 0, "func": "static ASN1_NULL * obj_to_asn1null ( VALUE obj ) {\n ASN1_NULL * null ;\n if ( ! NIL_P ( obj ) ) ossl_raise ( eASN1Error , \"nil expected\" ) ;\n if ( ! ( null = ASN1_NULL_new ( ) ) ) ossl_raise ( eASN1Error , NULL ) ;\n return null ;\n }"}
{"idx": 6252, "target": 0, "func": "static int parse_CRowSeekAtRatio ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , const char * fmt , ... ) {\n proto_tree * tree ;\n proto_item * item ;\n va_list ap ;\n const char * txt ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CRowsSeekAtRatio , & item , txt ) ;\n proto_tree_add_item ( tree , hf_mswsp_crowseekatratio_ulnumerator , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_crowseekatratio_uldenominator , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_crowseekatratio_hregion , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 6253, "target": 1, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DIRECTORYSTRING )"}
{"idx": 6254, "target": 0, "func": "static void dissect_rsvp_session_attribute ( proto_item * ti , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int type ) {\n int offset2 = offset + 4 ;\n guint8 flags ;\n guint8 name_len ;\n proto_tree * ti2 , * rsvp_sa_flags_tree ;\n switch ( type ) {\n case 1 : case 7 : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"%u - IPv4 LSP (%sResource Affinities)\" , type , ( type == 1 ) ? \"\" : \"No \" ) ;\n if ( type == 1 ) {\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_session_attribute_exclude_any , tvb , offset2 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_session_attribute_include_any , tvb , offset2 + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_session_attribute_include_all , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n offset2 = offset2 + 12 ;\n }\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_session_attribute_setup_priority , tvb , offset2 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_session_attribute_hold_priority , tvb , offset2 + 1 , 1 , ENC_BIG_ENDIAN ) ;\n flags = tvb_get_guint8 ( tvb , offset2 + 2 ) ;\n ti2 = proto_tree_add_item ( rsvp_object_tree , hf_rsvp_session_attribute_flags , tvb , offset2 + 2 , 1 , ENC_BIG_ENDIAN ) ;\n rsvp_sa_flags_tree = proto_item_add_subtree ( ti2 , TREE ( TT_SESSION_ATTRIBUTE_FLAGS ) ) ;\n proto_tree_add_item ( rsvp_sa_flags_tree , hf_rsvp_sa_flags_local , tvb , offset2 + 2 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_sa_flags_tree , hf_rsvp_sa_flags_label , tvb , offset2 + 2 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_sa_flags_tree , hf_rsvp_sa_flags_se_style , tvb , offset2 + 2 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_sa_flags_tree , hf_rsvp_sa_flags_bandwidth , tvb , offset2 + 2 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_sa_flags_tree , hf_rsvp_sa_flags_node , tvb , offset2 + 2 , 1 , ENC_BIG_ENDIAN ) ;\n name_len = tvb_get_guint8 ( tvb , offset2 + 3 ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_session_attribute_name_length , tvb , offset2 + 3 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_session_attribute_name , tvb , offset2 + 4 , name_len , ENC_NA | ENC_ASCII ) ;\n proto_item_set_text ( ti , \"SESSION ATTRIBUTE: SetupPrio %d, HoldPrio %d, %s%s%s%s%s [%s]\" , tvb_get_guint8 ( tvb , offset2 ) , tvb_get_guint8 ( tvb , offset2 + 1 ) , flags & 0x01 ? \"Local Protection, \" : \"\" , flags & 0x02 ? \"Label Recording, \" : \"\" , flags & 0x04 ? \"SE Style, \" : \"\" , flags & 0x08 ? \"Bandwidth Protection, \" : \"\" , flags & 0x10 ? \"Node Protection, \" : \"\" , name_len ? tvb_format_text ( tvb , offset2 + 4 , name_len ) : \"\" ) ;\n break ;\n default : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"Unknown (%u)\" , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_session_attribute_data , tvb , offset2 , obj_length - 4 , ENC_NA ) ;\n break ;\n }\n }"}
{"idx": 6255, "target": 0, "func": "int ff_wmv2_decode_picture_header ( MpegEncContext * s ) {\n Wmv2Context * const w = ( Wmv2Context * ) s ;\n int code ;\n if ( s -> picture_number == 0 ) decode_ext_header ( w ) ;\n s -> pict_type = get_bits1 ( & s -> gb ) + 1 ;\n if ( s -> pict_type == AV_PICTURE_TYPE_I ) {\n code = get_bits ( & s -> gb , 7 ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"I7:%X/\\n\" , code ) ;\n }\n s -> chroma_qscale = s -> qscale = get_bits ( & s -> gb , 5 ) ;\n if ( s -> qscale <= 0 ) return - 1 ;\n return 0 ;\n }"}
{"idx": 6256, "target": 0, "func": "static float * anti_sparseness ( AMRWBContext * ctx , float * fixed_vector , float * buf ) {\n int ir_filter_nr ;\n if ( ctx -> fr_cur_mode > MODE_8k85 ) return fixed_vector ;\n if ( ctx -> pitch_gain [ 0 ] < 0.6 ) {\n ir_filter_nr = 0 ;\n }\n else if ( ctx -> pitch_gain [ 0 ] < 0.9 ) {\n ir_filter_nr = 1 ;\n }\n else ir_filter_nr = 2 ;\n if ( ctx -> fixed_gain [ 0 ] > 3.0 * ctx -> fixed_gain [ 1 ] ) {\n if ( ir_filter_nr < 2 ) ir_filter_nr ++ ;\n }\n else {\n int i , count = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) if ( ctx -> pitch_gain [ i ] < 0.6 ) count ++ ;\n if ( count > 2 ) ir_filter_nr = 0 ;\n if ( ir_filter_nr > ctx -> prev_ir_filter_nr + 1 ) ir_filter_nr -- ;\n }\n ctx -> prev_ir_filter_nr = ir_filter_nr ;\n ir_filter_nr += ( ctx -> fr_cur_mode == MODE_8k85 ) ;\n if ( ir_filter_nr < 2 ) {\n int i ;\n const float * coef = ir_filters_lookup [ ir_filter_nr ] ;\n memset ( buf , 0 , sizeof ( float ) * AMRWB_SFR_SIZE ) ;\n for ( i = 0 ;\n i < AMRWB_SFR_SIZE ;\n i ++ ) if ( fixed_vector [ i ] ) ff_celp_circ_addf ( buf , buf , coef , i , fixed_vector [ i ] , AMRWB_SFR_SIZE ) ;\n fixed_vector = buf ;\n }\n return fixed_vector ;\n }"}
{"idx": 6257, "target": 0, "func": "void * hb_face_get_user_data ( hb_face_t * face , hb_user_data_key_t * key ) {\n return hb_object_get_user_data ( face , key ) ;\n }"}
{"idx": 6258, "target": 0, "func": "int qemuMonitorTextAddHostNetwork ( qemuMonitorPtr mon , const char * netstr ) {\n char * cmd ;\n char * reply = NULL ;\n int ret = - 1 ;\n if ( virAsprintf ( & cmd , \"host_net_add %s\" , netstr ) < 0 ) {\n virReportOOMError ( ) ;\n return - 1 ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"failed to add host net with '%s'\" ) , cmd ) ;\n goto cleanup ;\n }\n if ( STRNEQ ( reply , \"\" ) ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"unable to add host net: %s\" ) , reply ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( cmd ) ;\n VIR_FREE ( reply ) ;\n return ret ;\n }"}
{"idx": 6259, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( SupervisedUserNavigationThrottleTest , BlockMainFrameWithInterstitial ) {\n BlockHost ( kExampleHost2 ) ;\n WebContents * tab = browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) ;\n GURL allowed_url = embedded_test_server ( ) -> GetURL ( kExampleHost , \"/supervised_user/simple.html\" ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , allowed_url ) ;\n EXPECT_FALSE ( tab -> ShowingInterstitialPage ( ) ) ;\n GURL blocked_url = embedded_test_server ( ) -> GetURL ( kExampleHost2 , \"/supervised_user/simple.html\" ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , blocked_url ) ;\n EXPECT_TRUE ( tab -> ShowingInterstitialPage ( ) ) ;\n }"}
{"idx": 6260, "target": 1, "func": "static void spl_filesystem_dir_it_rewind ( zend_object_iterator * iter TSRMLS_DC ) {\n spl_filesystem_object * object = spl_filesystem_iterator_to_object ( ( spl_filesystem_iterator * ) iter ) ;\n object -> u . dir . index = 0 ;\n if ( object -> u . dir . dirp ) {\n php_stream_rewinddir ( object -> u . dir . dirp ) ;\n }\n spl_filesystem_dir_read ( object TSRMLS_CC ) ;\n }"}
{"idx": 6261, "target": 0, "func": "static int dissect_h245_INTEGER_1_256 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 256U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 6262, "target": 0, "func": "static void test_date_ts ( ) {\n int rc ;\n myheader ( \"test_date_ts\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_date\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_date(c1 TIMESTAMP, \\ c2 TIMESTAMP, \\ c3 TIMESTAMP, \\ c4 TIMESTAMP)\" ) ;\n myquery ( rc ) ;\n bind_date_conv ( 2 , FALSE ) ;\n }"}
{"idx": 6263, "target": 0, "func": "static int cost_mv_ref ( const VP9_COMP * cpi , PREDICTION_MODE mode , int mode_context ) {\n assert ( is_inter_mode ( mode ) ) ;\n return cpi -> inter_mode_cost [ mode_context ] [ INTER_OFFSET ( mode ) ] ;\n }"}
{"idx": 6264, "target": 0, "func": "static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 6265, "target": 0, "func": "static int dissect_h225_AdmissionRejectReason ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 669 \"./asn1/h225/h225.cnf\" gint32 value ;\n h225_packet_info * h225_pi ;\n h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_AdmissionRejectReason , AdmissionRejectReason_choice , & value ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> reason = value ;\n }\n return offset ;\n }"}
{"idx": 6266, "target": 0, "func": "int archive_wstring_append_from_mbs ( struct archive_wstring * dest , const char * p , size_t len ) {\n size_t r ;\n int ret_val = 0 ;\n size_t wcs_length = len ;\n size_t mbs_length = len ;\n const char * mbs = p ;\n wchar_t * wcs ;\n # if HAVE_MBRTOWC mbstate_t shift_state ;\n memset ( & shift_state , 0 , sizeof ( shift_state ) ) ;\n # endif if ( NULL == archive_wstring_ensure ( dest , dest -> length + wcs_length + 1 ) ) return ( - 1 ) ;\n wcs = dest -> s + dest -> length ;\n while ( * mbs && mbs_length > 0 ) {\n if ( wcs_length == 0 ) {\n dest -> length = wcs - dest -> s ;\n dest -> s [ dest -> length ] = L'\\0' ;\n wcs_length = mbs_length ;\n if ( NULL == archive_wstring_ensure ( dest , dest -> length + wcs_length + 1 ) ) return ( - 1 ) ;\n wcs = dest -> s + dest -> length ;\n }\n # if HAVE_MBRTOWC r = mbrtowc ( wcs , mbs , wcs_length , & shift_state ) ;\n # else r = mbtowc ( wcs , mbs , wcs_length ) ;\n # endif if ( r == ( size_t ) - 1 || r == ( size_t ) - 2 ) {\n ret_val = - 1 ;\n if ( errno == EILSEQ ) {\n ++ mbs ;\n -- mbs_length ;\n continue ;\n }\n else break ;\n }\n if ( r == 0 || r > mbs_length ) break ;\n wcs ++ ;\n wcs_length -- ;\n mbs += r ;\n mbs_length -= r ;\n }\n dest -> length = wcs - dest -> s ;\n dest -> s [ dest -> length ] = L'\\0' ;\n return ( ret_val ) ;\n }"}
{"idx": 6267, "target": 0, "func": "static int setup_boot_information ( struct archive_write * a ) {\n struct iso9660 * iso9660 = a -> format_data ;\n struct isoent * np ;\n int64_t size ;\n uint32_t sum ;\n unsigned char buff [ 4096 ] ;\n np = iso9660 -> el_torito . boot ;\n lseek ( iso9660 -> temp_fd , np -> file -> content . offset_of_temp + 64 , SEEK_SET ) ;\n size = archive_entry_size ( np -> file -> entry ) - 64 ;\n if ( size <= 0 ) {\n archive_set_error ( & a -> archive , errno , \"Boot file(%jd) is too small\" , ( intmax_t ) size + 64 ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n sum = 0 ;\n while ( size > 0 ) {\n size_t rsize ;\n ssize_t i , rs ;\n if ( size > ( int64_t ) sizeof ( buff ) ) rsize = sizeof ( buff ) ;\n else rsize = ( size_t ) size ;\n rs = read ( iso9660 -> temp_fd , buff , rsize ) ;\n if ( rs <= 0 ) {\n archive_set_error ( & a -> archive , errno , \"Can't read temporary file(%jd)\" , ( intmax_t ) rs ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n for ( i = 0 ;\n i < rs ;\n i += 4 ) sum += archive_le32dec ( buff + i ) ;\n size -= rs ;\n }\n set_num_731 ( buff , SYSTEM_AREA_BLOCK ) ;\n set_num_731 ( buff + 4 , np -> file -> content . location ) ;\n size = fd_boot_image_size ( iso9660 -> el_torito . media_type ) ;\n if ( size == 0 ) size = archive_entry_size ( np -> file -> entry ) ;\n set_num_731 ( buff + 8 , ( uint32_t ) size ) ;\n set_num_731 ( buff + 12 , sum ) ;\n memset ( buff + 16 , 0 , 40 ) ;\n lseek ( iso9660 -> temp_fd , np -> file -> content . offset_of_temp + 8 , SEEK_SET ) ;\n return ( write_to_temp ( a , buff , 56 ) ) ;\n }"}
{"idx": 6268, "target": 0, "func": "rtp_dyn_payload_t * rtp_dyn_payload_new ( void ) {\n rtp_dyn_payload_t * rtp_dyn_payload = wmem_new ( wmem_file_scope ( ) , rtp_dyn_payload_t ) ;\n rtp_dyn_payload -> table = g_hash_table_new_full ( NULL , NULL , NULL , rtp_dyn_payload_value_destroy ) ;\n rtp_dyn_payload -> ref_count = 1 ;\n g_hash_table_insert ( rtp_dyn_payloads , rtp_dyn_payload , rtp_dyn_payload ) ;\n return rtp_dyn_payload ;\n }"}
{"idx": 6269, "target": 0, "func": "void vp9_idct8x8_1_add_c ( const tran_low_t * input , uint8_t * dest , int stride ) {\n int i , j ;\n tran_high_t a1 ;\n tran_low_t out = dct_const_round_shift ( input [ 0 ] * cospi_16_64 ) ;\n out = dct_const_round_shift ( out * cospi_16_64 ) ;\n a1 = ROUND_POWER_OF_TWO ( out , 5 ) ;\n for ( j = 0 ;\n j < 8 ;\n ++ j ) {\n for ( i = 0 ;\n i < 8 ;\n ++ i ) dest [ i ] = clip_pixel ( dest [ i ] + a1 ) ;\n dest += stride ;\n }\n }"}
{"idx": 6270, "target": 0, "func": "tdata_t _TIFFrealloc ( tdata_t p , tsize_t s ) {\n return ( realloc ( p , ( size_t ) s ) ) ;\n }"}
{"idx": 6271, "target": 0, "func": "static void test_fetch_str ( ) {\n int rc ;\n myheader ( \"test_fetch_str\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_bind_fetch\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_bind_fetch(c1 char(10), \\ c2 char(10), \\ c3 char(20), \\ c4 char(20), \\ c5 char(30), \\ c6 char(40), \\ c7 char(20))\" ) ;\n myquery ( rc ) ;\n bind_fetch ( 3 ) ;\n }"}
{"idx": 6272, "target": 1, "func": "int mi_repair_parallel ( MI_CHECK * param , register MI_INFO * info , const char * name , int rep_quick ) {\n int got_error ;\n uint i , key , total_key_length , istep ;\n ulong rec_length ;\n ha_rows start_records ;\n my_off_t new_header_length , del ;\n File new_file ;\n MI_SORT_PARAM * sort_param = 0 ;\n MYISAM_SHARE * share = info -> s ;\n ulong * rec_per_key_part ;\n HA_KEYSEG * keyseg ;\n char llbuff [ 22 ] ;\n IO_CACHE new_data_cache ;\n IO_CACHE_SHARE io_share ;\n SORT_INFO sort_info ;\n ulonglong UNINIT_VAR ( key_map ) ;\n pthread_attr_t thr_attr ;\n ulong max_pack_reclength ;\n int error ;\n DBUG_ENTER ( \"mi_repair_parallel\" ) ;\n start_records = info -> state -> records ;\n got_error = 1 ;\n new_file = - 1 ;\n new_header_length = ( param -> testflag & T_UNPACK ) ? 0 : share -> pack . header_length ;\n if ( ! ( param -> testflag & T_SILENT ) ) {\n printf ( \"- parallel recovering (with sort) MyISAM-table '%s'\\n\" , name ) ;\n printf ( \"Data records: %s\\n\" , llstr ( start_records , llbuff ) ) ;\n }\n param -> testflag |= T_REP ;\n if ( info -> s -> options & ( HA_OPTION_CHECKSUM | HA_OPTION_COMPRESS_RECORD ) ) param -> testflag |= T_CALC_CHECKSUM ;\n DBUG_PRINT ( \"info\" , ( \"is quick repair: %d\" , rep_quick ) ) ;\n bzero ( ( char * ) & sort_info , sizeof ( sort_info ) ) ;\n mysql_mutex_init ( mi_key_mutex_MI_SORT_INFO_mutex , & sort_info . mutex , MY_MUTEX_INIT_FAST ) ;\n mysql_cond_init ( mi_key_cond_MI_SORT_INFO_cond , & sort_info . cond , 0 ) ;\n mysql_mutex_init ( mi_key_mutex_MI_CHECK_print_msg , & param -> print_msg_mutex , MY_MUTEX_INIT_FAST ) ;\n param -> need_print_msg_lock = 1 ;\n if ( ! ( sort_info . key_block = alloc_key_blocks ( param , ( uint ) param -> sort_key_blocks , share -> base . max_key_block_length ) ) || init_io_cache ( & param -> read_cache , info -> dfile , ( uint ) param -> read_buffer_length , READ_CACHE , share -> pack . header_length , 1 , MYF ( MY_WME ) ) || ( ! rep_quick && ( init_io_cache ( & info -> rec_cache , info -> dfile , ( uint ) param -> write_buffer_length , WRITE_CACHE , new_header_length , 1 , MYF ( MY_WME | MY_WAIT_IF_FULL ) & param -> myf_rw ) || init_io_cache ( & new_data_cache , - 1 , ( uint ) param -> write_buffer_length , READ_CACHE , new_header_length , 1 , MYF ( MY_WME | MY_DONT_CHECK_FILESIZE ) ) ) ) ) goto err ;\n sort_info . key_block_end = sort_info . key_block + param -> sort_key_blocks ;\n info -> opt_flag |= WRITE_CACHE_USED ;\n info -> rec_cache . file = info -> dfile ;\n if ( ! rep_quick ) {\n if ( ( new_file = mysql_file_create ( mi_key_file_datatmp , fn_format ( param -> temp_filename , share -> data_file_name , \"\" , DATA_TMP_EXT , 2 + 4 ) , 0 , param -> tmpfile_createflag , MYF ( 0 ) ) ) < 0 ) {\n mi_check_print_error ( param , \"Can't create new tempfile: '%s'\" , param -> temp_filename ) ;\n goto err ;\n }\n if ( new_header_length && filecopy ( param , new_file , info -> dfile , 0L , new_header_length , \"datafile-header\" ) ) goto err ;\n if ( param -> testflag & T_UNPACK ) {\n share -> options &= ~ HA_OPTION_COMPRESS_RECORD ;\n mi_int2store ( share -> state . header . options , share -> options ) ;\n }\n share -> state . dellink = HA_OFFSET_ERROR ;\n info -> rec_cache . file = new_file ;\n }\n info -> update = ( short ) ( HA_STATE_CHANGED | HA_STATE_ROW_CHANGED ) ;\n mi_drop_all_indexes ( param , info , FALSE ) ;\n key_map = share -> state . key_map ;\n if ( param -> testflag & T_CREATE_MISSING_KEYS ) {\n key_map = ~ key_map ;\n }\n sort_info . info = info ;\n sort_info . param = param ;\n set_data_file_type ( & sort_info , share ) ;\n sort_info . dupp = 0 ;\n sort_info . buff = 0 ;\n param -> read_cache . end_of_file = sort_info . filelength = mysql_file_seek ( param -> read_cache . file , 0L , MY_SEEK_END , MYF ( 0 ) ) ;\n if ( share -> data_file_type == DYNAMIC_RECORD ) rec_length = max ( share -> base . min_pack_length + 1 , share -> base . min_block_length ) ;\n else if ( share -> data_file_type == COMPRESSED_RECORD ) rec_length = share -> base . min_block_length ;\n else rec_length = share -> base . pack_reclength ;\n sort_info . max_records = ( ( param -> testflag & T_CREATE_MISSING_KEYS ) ? info -> state -> records + 1 : ( ha_rows ) ( sort_info . filelength / rec_length + 1 ) ) ;\n del = info -> state -> del ;\n param -> glob_crc = 0 ;\n max_pack_reclength = share -> base . pack_reclength ;\n if ( share -> options & HA_OPTION_COMPRESS_RECORD ) set_if_bigger ( max_pack_reclength , share -> max_pack_length ) ;\n if ( ! ( sort_param = ( MI_SORT_PARAM * ) my_malloc ( ( uint ) share -> base . keys * ( sizeof ( MI_SORT_PARAM ) + max_pack_reclength ) , MYF ( MY_ZEROFILL ) ) ) ) {\n mi_check_print_error ( param , \"Not enough memory for key!\" ) ;\n goto err ;\n }\n total_key_length = 0 ;\n rec_per_key_part = param -> rec_per_key_part ;\n info -> state -> records = info -> state -> del = share -> state . split = 0 ;\n info -> state -> empty = 0 ;\n for ( i = key = 0 , istep = 1 ;\n key < share -> base . keys ;\n rec_per_key_part += sort_param [ i ] . keyinfo -> keysegs , i += istep , key ++ ) {\n sort_param [ i ] . key = key ;\n sort_param [ i ] . keyinfo = share -> keyinfo + key ;\n sort_param [ i ] . seg = sort_param [ i ] . keyinfo -> seg ;\n if ( ! mi_is_key_active ( key_map , key ) ) {\n memcpy ( ( char * ) rec_per_key_part , ( char * ) ( share -> state . rec_per_key_part + ( uint ) ( rec_per_key_part - param -> rec_per_key_part ) ) , sort_param [ i ] . keyinfo -> keysegs * sizeof ( * rec_per_key_part ) ) ;\n istep = 0 ;\n continue ;\n }\n istep = 1 ;\n if ( ( ! ( param -> testflag & T_SILENT ) ) ) printf ( \"- Fixing index %d\\n\" , key + 1 ) ;\n if ( sort_param [ i ] . keyinfo -> flag & HA_FULLTEXT ) {\n sort_param [ i ] . key_read = sort_ft_key_read ;\n sort_param [ i ] . key_write = sort_ft_key_write ;\n }\n else {\n sort_param [ i ] . key_read = sort_key_read ;\n sort_param [ i ] . key_write = sort_key_write ;\n }\n sort_param [ i ] . key_cmp = sort_key_cmp ;\n sort_param [ i ] . lock_in_memory = lock_memory ;\n sort_param [ i ] . tmpdir = param -> tmpdir ;\n sort_param [ i ] . sort_info = & sort_info ;\n sort_param [ i ] . master = 0 ;\n sort_param [ i ] . fix_datafile = 0 ;\n sort_param [ i ] . calc_checksum = 0 ;\n sort_param [ i ] . filepos = new_header_length ;\n sort_param [ i ] . max_pos = sort_param [ i ] . pos = share -> pack . header_length ;\n sort_param [ i ] . record = ( ( ( uchar * ) ( sort_param + share -> base . keys ) ) + ( max_pack_reclength * i ) ) ;\n if ( ! mi_alloc_rec_buff ( info , - 1 , & sort_param [ i ] . rec_buff ) ) {\n mi_check_print_error ( param , \"Not enough memory!\" ) ;\n goto err ;\n }\n sort_param [ i ] . key_length = share -> rec_reflength ;\n for ( keyseg = sort_param [ i ] . seg ;\n keyseg -> type != HA_KEYTYPE_END ;\n keyseg ++ ) {\n sort_param [ i ] . key_length += keyseg -> length ;\n if ( keyseg -> flag & HA_SPACE_PACK ) sort_param [ i ] . key_length += get_pack_length ( keyseg -> length ) ;\n if ( keyseg -> flag & ( HA_BLOB_PART | HA_VAR_LENGTH_PART ) ) sort_param [ i ] . key_length += 2 + test ( keyseg -> length >= 127 ) ;\n if ( keyseg -> flag & HA_NULL_PART ) sort_param [ i ] . key_length ++ ;\n }\n total_key_length += sort_param [ i ] . key_length ;\n if ( sort_param [ i ] . keyinfo -> flag & HA_FULLTEXT ) {\n uint ft_max_word_len_for_sort = FT_MAX_WORD_LEN_FOR_SORT * sort_param [ i ] . keyinfo -> seg -> charset -> mbmaxlen ;\n sort_param [ i ] . key_length += ft_max_word_len_for_sort - HA_FT_MAXBYTELEN ;\n init_alloc_root ( & sort_param [ i ] . wordroot , FTPARSER_MEMROOT_ALLOC_SIZE , 0 ) ;\n }\n }\n sort_info . total_keys = i ;\n sort_param [ 0 ] . master = 1 ;\n sort_param [ 0 ] . fix_datafile = ( my_bool ) ( ! rep_quick ) ;\n sort_param [ 0 ] . calc_checksum = test ( param -> testflag & T_CALC_CHECKSUM ) ;\n if ( ! ftparser_alloc_param ( info ) ) goto err ;\n sort_info . got_error = 0 ;\n mysql_mutex_lock ( & sort_info . mutex ) ;\n if ( i > 1 ) {\n if ( rep_quick ) init_io_cache_share ( & param -> read_cache , & io_share , NULL , i ) ;\n else init_io_cache_share ( & new_data_cache , & io_share , & info -> rec_cache , i ) ;\n }\n else io_share . total_threads = 0 ;\n ( void ) pthread_attr_init ( & thr_attr ) ;\n ( void ) pthread_attr_setdetachstate ( & thr_attr , PTHREAD_CREATE_DETACHED ) ;\n for ( i = 0 ;\n i < sort_info . total_keys ;\n i ++ ) {\n sort_param [ i ] . read_cache = ( ( rep_quick || ! i ) ? param -> read_cache : new_data_cache ) ;\n DBUG_PRINT ( \"io_cache_share\" , ( \"thread: %u read_cache: 0x%lx\" , i , ( long ) & sort_param [ i ] . read_cache ) ) ;\n sort_param [ i ] . sortbuff_size = # ifndef USING_SECOND_APPROACH param -> sort_buffer_length / sort_info . total_keys ;\n # else param -> sort_buffer_length * sort_param [ i ] . key_length / total_key_length ;\n # endif if ( ( error = mysql_thread_create ( mi_key_thread_find_all_keys , & sort_param [ i ] . thr , & thr_attr , thr_find_all_keys , ( void * ) ( sort_param + i ) ) ) ) {\n mi_check_print_error ( param , \"Cannot start a repair thread (errno= %d)\" , error ) ;\n if ( io_share . total_threads ) remove_io_thread ( & sort_param [ i ] . read_cache ) ;\n DBUG_PRINT ( \"error\" , ( \"Cannot start a repair thread\" ) ) ;\n sort_info . got_error = 1 ;\n }\n else sort_info . threads_running ++ ;\n }\n ( void ) pthread_attr_destroy ( & thr_attr ) ;\n while ( sort_info . threads_running ) mysql_cond_wait ( & sort_info . cond , & sort_info . mutex ) ;\n mysql_mutex_unlock ( & sort_info . mutex ) ;\n if ( ( got_error = thr_write_keys ( sort_param ) ) ) {\n param -> retry_repair = 1 ;\n goto err ;\n }\n got_error = 1 ;\n if ( sort_param [ 0 ] . fix_datafile ) {\n if ( write_data_suffix ( & sort_info , 1 ) || end_io_cache ( & info -> rec_cache ) ) goto err ;\n if ( param -> testflag & T_SAFE_REPAIR ) {\n if ( info -> state -> records + 1 < start_records ) {\n info -> state -> records = start_records ;\n goto err ;\n }\n }\n share -> state . state . data_file_length = info -> state -> data_file_length = sort_param -> filepos ;\n share -> state . version = ( ulong ) time ( ( time_t * ) 0 ) ;\n mysql_file_close ( info -> dfile , MYF ( 0 ) ) ;\n info -> dfile = new_file ;\n share -> data_file_type = sort_info . new_data_file_type ;\n share -> pack . header_length = ( ulong ) new_header_length ;\n }\n else info -> state -> data_file_length = sort_param -> max_pos ;\n if ( rep_quick && del + sort_info . dupp != info -> state -> del ) {\n mi_check_print_error ( param , \"Couldn't fix table with quick recovery: Found wrong number of deleted records\" ) ;\n mi_check_print_error ( param , \"Run recovery again without -q\" ) ;\n param -> retry_repair = 1 ;\n param -> testflag |= T_RETRY_WITHOUT_QUICK ;\n goto err ;\n }\n if ( rep_quick & T_FORCE_UNIQUENESS ) {\n my_off_t skr = info -> state -> data_file_length + ( share -> options & HA_OPTION_COMPRESS_RECORD ? MEMMAP_EXTRA_MARGIN : 0 ) ;\n # ifdef USE_RELOC if ( share -> data_file_type == STATIC_RECORD && skr < share -> base . reloc * share -> base . min_pack_length ) skr = share -> base . reloc * share -> base . min_pack_length ;\n # endif if ( skr != sort_info . filelength ) if ( mysql_file_chsize ( info -> dfile , skr , 0 , MYF ( 0 ) ) ) mi_check_print_warning ( param , \"Can't change size of datafile, error: %d\" , my_errno ) ;\n }\n if ( param -> testflag & T_CALC_CHECKSUM ) info -> state -> checksum = param -> glob_crc ;\n if ( mysql_file_chsize ( share -> kfile , info -> state -> key_file_length , 0 , MYF ( 0 ) ) ) mi_check_print_warning ( param , \"Can't change size of indexfile, error: %d\" , my_errno ) ;\n if ( ! ( param -> testflag & T_SILENT ) ) {\n if ( start_records != info -> state -> records ) printf ( \"Data records: %s\\n\" , llstr ( info -> state -> records , llbuff ) ) ;\n if ( sort_info . dupp ) mi_check_print_warning ( param , \"%s records have been removed\" , llstr ( sort_info . dupp , llbuff ) ) ;\n }\n got_error = 0 ;\n if ( & share -> state . state != info -> state ) memcpy ( & share -> state . state , info -> state , sizeof ( * info -> state ) ) ;\n err : got_error |= flush_blocks ( param , share -> key_cache , share -> kfile ) ;\n ( void ) end_io_cache ( & info -> rec_cache ) ;\n if ( ! rep_quick ) ( void ) end_io_cache ( & new_data_cache ) ;\n if ( ! got_error ) {\n if ( new_file >= 0 ) {\n mysql_file_close ( new_file , MYF ( 0 ) ) ;\n info -> dfile = new_file = - 1 ;\n if ( change_to_newfile ( share -> data_file_name , MI_NAME_DEXT , DATA_TMP_EXT , ( param -> testflag & T_BACKUP_DATA ? MYF ( MY_REDEL_MAKE_BACKUP ) : MYF ( 0 ) ) ) || mi_open_datafile ( info , share , name , - 1 ) ) got_error = 1 ;\n }\n }\n if ( got_error ) {\n if ( ! param -> error_printed ) mi_check_print_error ( param , \"%d when fixing table\" , my_errno ) ;\n if ( new_file >= 0 ) {\n ( void ) mysql_file_close ( new_file , MYF ( 0 ) ) ;\n ( void ) mysql_file_delete ( mi_key_file_datatmp , param -> temp_filename , MYF ( MY_WME ) ) ;\n if ( info -> dfile == new_file ) if ( unlikely ( mi_open_datafile ( info , share , name , - 1 ) ) ) param -> retry_repair = 0 ;\n }\n mi_mark_crashed_on_repair ( info ) ;\n }\n else if ( key_map == share -> state . key_map ) share -> state . changed &= ~ STATE_NOT_OPTIMIZED_KEYS ;\n share -> state . changed |= STATE_NOT_SORTED_PAGES ;\n mysql_cond_destroy ( & sort_info . cond ) ;\n mysql_mutex_destroy ( & sort_info . mutex ) ;\n mysql_mutex_destroy ( & param -> print_msg_mutex ) ;\n param -> need_print_msg_lock = 0 ;\n my_free ( sort_info . ft_buf ) ;\n my_free ( sort_info . key_block ) ;\n my_free ( sort_param ) ;\n my_free ( sort_info . buff ) ;\n ( void ) end_io_cache ( & param -> read_cache ) ;\n info -> opt_flag &= ~ ( READ_CACHE_USED | WRITE_CACHE_USED ) ;\n if ( ! got_error && ( param -> testflag & T_UNPACK ) ) {\n share -> state . header . options [ 0 ] &= ( uchar ) ~ HA_OPTION_COMPRESS_RECORD ;\n share -> pack . header_length = 0 ;\n }\n DBUG_RETURN ( got_error ) ;\n }"}
{"idx": 6273, "target": 0, "func": "static int svq3_decode_slice_header ( AVCodecContext * avctx ) {\n SVQ3Context * s = avctx -> priv_data ;\n H264Context * h = & s -> h ;\n const int mb_xy = h -> mb_xy ;\n int i , header ;\n unsigned slice_id ;\n header = get_bits ( & h -> gb , 8 ) ;\n if ( ( ( header & 0x9F ) != 1 && ( header & 0x9F ) != 2 ) || ( header & 0x60 ) == 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"unsupported slice header (%02X)\\n\" , header ) ;\n return - 1 ;\n }\n else {\n int length = header >> 5 & 3 ;\n s -> next_slice_index = get_bits_count ( & h -> gb ) + 8 * show_bits ( & h -> gb , 8 * length ) + 8 * length ;\n if ( s -> next_slice_index > h -> gb . size_in_bits ) {\n av_log ( avctx , AV_LOG_ERROR , \"slice after bitstream end\\n\" ) ;\n return - 1 ;\n }\n h -> gb . size_in_bits = s -> next_slice_index - 8 * ( length - 1 ) ;\n skip_bits ( & h -> gb , 8 ) ;\n if ( s -> watermark_key ) {\n uint32_t header = AV_RL32 ( & h -> gb . buffer [ ( get_bits_count ( & h -> gb ) >> 3 ) + 1 ] ) ;\n AV_WL32 ( & h -> gb . buffer [ ( get_bits_count ( & h -> gb ) >> 3 ) + 1 ] , header ^ s -> watermark_key ) ;\n }\n if ( length > 0 ) {\n memcpy ( ( uint8_t * ) & h -> gb . buffer [ get_bits_count ( & h -> gb ) >> 3 ] , & h -> gb . buffer [ h -> gb . size_in_bits >> 3 ] , length - 1 ) ;\n }\n skip_bits_long ( & h -> gb , 0 ) ;\n }\n if ( ( slice_id = svq3_get_ue_golomb ( & h -> gb ) ) >= 3 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"illegal slice type %d \\n\" , slice_id ) ;\n return - 1 ;\n }\n h -> slice_type = golomb_to_pict_type [ slice_id ] ;\n if ( ( header & 0x9F ) == 2 ) {\n i = ( h -> mb_num < 64 ) ? 6 : ( 1 + av_log2 ( h -> mb_num - 1 ) ) ;\n h -> mb_skip_run = get_bits ( & h -> gb , i ) - ( h -> mb_y * h -> mb_width + h -> mb_x ) ;\n }\n else {\n skip_bits1 ( & h -> gb ) ;\n h -> mb_skip_run = 0 ;\n }\n h -> slice_num = get_bits ( & h -> gb , 8 ) ;\n h -> qscale = get_bits ( & h -> gb , 5 ) ;\n s -> adaptive_quant = get_bits1 ( & h -> gb ) ;\n skip_bits1 ( & h -> gb ) ;\n if ( s -> unknown_flag ) skip_bits1 ( & h -> gb ) ;\n skip_bits1 ( & h -> gb ) ;\n skip_bits ( & h -> gb , 2 ) ;\n while ( get_bits1 ( & h -> gb ) ) skip_bits ( & h -> gb , 8 ) ;\n if ( h -> mb_x > 0 ) {\n memset ( h -> intra4x4_pred_mode + h -> mb2br_xy [ mb_xy - 1 ] + 3 , - 1 , 4 * sizeof ( int8_t ) ) ;\n memset ( h -> intra4x4_pred_mode + h -> mb2br_xy [ mb_xy - h -> mb_x ] , - 1 , 8 * sizeof ( int8_t ) * h -> mb_x ) ;\n }\n if ( h -> mb_y > 0 ) {\n memset ( h -> intra4x4_pred_mode + h -> mb2br_xy [ mb_xy - h -> mb_stride ] , - 1 , 8 * sizeof ( int8_t ) * ( h -> mb_width - h -> mb_x ) ) ;\n if ( h -> mb_x > 0 ) h -> intra4x4_pred_mode [ h -> mb2br_xy [ mb_xy - h -> mb_stride - 1 ] + 3 ] = - 1 ;\n }\n return 0 ;\n }"}
{"idx": 6274, "target": 0, "func": "static void test_set_variable ( ) {\n MYSQL_STMT * stmt , * stmt1 ;\n int rc ;\n int set_count , def_count , get_count ;\n ulong length ;\n char var [ NAME_LEN + 1 ] ;\n MYSQL_BIND set_bind [ 1 ] , get_bind [ 2 ] ;\n myheader ( \"test_set_variable\" ) ;\n mysql_autocommit ( mysql , TRUE ) ;\n stmt1 = mysql_simple_prepare ( mysql , \"show variables like 'max_error_count'\" ) ;\n check_stmt ( stmt1 ) ;\n memset ( get_bind , 0 , sizeof ( get_bind ) ) ;\n get_bind [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n get_bind [ 0 ] . buffer = ( void * ) var ;\n get_bind [ 0 ] . length = & length ;\n get_bind [ 0 ] . buffer_length = ( int ) NAME_LEN ;\n length = NAME_LEN ;\n get_bind [ 1 ] . buffer_type = MYSQL_TYPE_LONG ;\n get_bind [ 1 ] . buffer = ( void * ) & get_count ;\n rc = mysql_stmt_execute ( stmt1 ) ;\n check_execute ( stmt1 , rc ) ;\n rc = mysql_stmt_bind_result ( stmt1 , get_bind ) ;\n check_execute ( stmt1 , rc ) ;\n rc = mysql_stmt_fetch ( stmt1 ) ;\n check_execute ( stmt1 , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n max_error_count(default): %d\" , get_count ) ;\n def_count = get_count ;\n DIE_UNLESS ( strcmp ( var , \"max_error_count\" ) == 0 ) ;\n rc = mysql_stmt_fetch ( stmt1 ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n stmt = mysql_simple_prepare ( mysql , \"set max_error_count= ?\" ) ;\n check_stmt ( stmt ) ;\n memset ( set_bind , 0 , sizeof ( set_bind ) ) ;\n set_bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n set_bind [ 0 ] . buffer = ( void * ) & set_count ;\n rc = mysql_stmt_bind_param ( stmt , set_bind ) ;\n check_execute ( stmt , rc ) ;\n set_count = 31 ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n mysql_commit ( mysql ) ;\n rc = mysql_stmt_execute ( stmt1 ) ;\n check_execute ( stmt1 , rc ) ;\n rc = mysql_stmt_fetch ( stmt1 ) ;\n check_execute ( stmt1 , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n max_error_count : %d\" , get_count ) ;\n DIE_UNLESS ( get_count == set_count ) ;\n rc = mysql_stmt_fetch ( stmt1 ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n set_count = def_count ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt1 ) ;\n check_execute ( stmt1 , rc ) ;\n rc = mysql_stmt_fetch ( stmt1 ) ;\n check_execute ( stmt1 , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n max_error_count(default): %d\" , get_count ) ;\n DIE_UNLESS ( get_count == set_count ) ;\n rc = mysql_stmt_fetch ( stmt1 ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n mysql_stmt_close ( stmt ) ;\n mysql_stmt_close ( stmt1 ) ;\n }"}
{"idx": 6275, "target": 0, "func": "static int dca_subframe_header ( DCAContext * s , int base_channel , int block_index ) {\n int j , k ;\n if ( get_bits_left ( & s -> gb ) < 0 ) return AVERROR_INVALIDDATA ;\n if ( ! base_channel ) {\n s -> subsubframes [ s -> current_subframe ] = get_bits ( & s -> gb , 2 ) + 1 ;\n s -> partial_samples [ s -> current_subframe ] = get_bits ( & s -> gb , 3 ) ;\n }\n for ( j = base_channel ;\n j < s -> prim_channels ;\n j ++ ) {\n for ( k = 0 ;\n k < s -> subband_activity [ j ] ;\n k ++ ) s -> prediction_mode [ j ] [ k ] = get_bits ( & s -> gb , 1 ) ;\n }\n for ( j = base_channel ;\n j < s -> prim_channels ;\n j ++ ) {\n for ( k = 0 ;\n k < s -> subband_activity [ j ] ;\n k ++ ) {\n if ( s -> prediction_mode [ j ] [ k ] > 0 ) {\n s -> prediction_vq [ j ] [ k ] = get_bits ( & s -> gb , 12 ) ;\n }\n }\n }\n for ( j = base_channel ;\n j < s -> prim_channels ;\n j ++ ) {\n for ( k = 0 ;\n k < s -> vq_start_subband [ j ] ;\n k ++ ) {\n if ( s -> bitalloc_huffman [ j ] == 6 ) s -> bitalloc [ j ] [ k ] = get_bits ( & s -> gb , 5 ) ;\n else if ( s -> bitalloc_huffman [ j ] == 5 ) s -> bitalloc [ j ] [ k ] = get_bits ( & s -> gb , 4 ) ;\n else if ( s -> bitalloc_huffman [ j ] == 7 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Invalid bit allocation index\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n else {\n s -> bitalloc [ j ] [ k ] = get_bitalloc ( & s -> gb , & dca_bitalloc_index , s -> bitalloc_huffman [ j ] ) ;\n }\n if ( s -> bitalloc [ j ] [ k ] > 26 ) {\n av_dlog ( s -> avctx , \"bitalloc index [%i][%i] too big (%i)\\n\" , j , k , s -> bitalloc [ j ] [ k ] ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n }\n for ( j = base_channel ;\n j < s -> prim_channels ;\n j ++ ) {\n for ( k = 0 ;\n k < s -> subband_activity [ j ] ;\n k ++ ) {\n s -> transition_mode [ j ] [ k ] = 0 ;\n if ( s -> subsubframes [ s -> current_subframe ] > 1 && k < s -> vq_start_subband [ j ] && s -> bitalloc [ j ] [ k ] > 0 ) {\n s -> transition_mode [ j ] [ k ] = get_bitalloc ( & s -> gb , & dca_tmode , s -> transient_huffman [ j ] ) ;\n }\n }\n }\n if ( get_bits_left ( & s -> gb ) < 0 ) return AVERROR_INVALIDDATA ;\n for ( j = base_channel ;\n j < s -> prim_channels ;\n j ++ ) {\n const uint32_t * scale_table ;\n int scale_sum , log_size ;\n memset ( s -> scale_factor [ j ] , 0 , s -> subband_activity [ j ] * sizeof ( s -> scale_factor [ 0 ] [ 0 ] [ 0 ] ) * 2 ) ;\n if ( s -> scalefactor_huffman [ j ] == 6 ) {\n scale_table = scale_factor_quant7 ;\n log_size = 7 ;\n }\n else {\n scale_table = scale_factor_quant6 ;\n log_size = 6 ;\n }\n scale_sum = 0 ;\n for ( k = 0 ;\n k < s -> subband_activity [ j ] ;\n k ++ ) {\n if ( k >= s -> vq_start_subband [ j ] || s -> bitalloc [ j ] [ k ] > 0 ) {\n scale_sum = get_scale ( & s -> gb , s -> scalefactor_huffman [ j ] , scale_sum , log_size ) ;\n s -> scale_factor [ j ] [ k ] [ 0 ] = scale_table [ scale_sum ] ;\n }\n if ( k < s -> vq_start_subband [ j ] && s -> transition_mode [ j ] [ k ] ) {\n scale_sum = get_scale ( & s -> gb , s -> scalefactor_huffman [ j ] , scale_sum , log_size ) ;\n s -> scale_factor [ j ] [ k ] [ 1 ] = scale_table [ scale_sum ] ;\n }\n }\n }\n for ( j = base_channel ;\n j < s -> prim_channels ;\n j ++ ) {\n if ( s -> joint_intensity [ j ] > 0 ) s -> joint_huff [ j ] = get_bits ( & s -> gb , 3 ) ;\n }\n if ( get_bits_left ( & s -> gb ) < 0 ) return AVERROR_INVALIDDATA ;\n for ( j = base_channel ;\n j < s -> prim_channels ;\n j ++ ) {\n int source_channel ;\n if ( s -> joint_intensity [ j ] > 0 ) {\n int scale = 0 ;\n source_channel = s -> joint_intensity [ j ] - 1 ;\n for ( k = s -> subband_activity [ j ] ;\n k < s -> subband_activity [ source_channel ] ;\n k ++ ) {\n scale = get_scale ( & s -> gb , s -> joint_huff [ j ] , 64 , 7 ) ;\n s -> joint_scale_factor [ j ] [ k ] = scale ;\n }\n if ( ! ( s -> debug_flag & 0x02 ) ) {\n av_log ( s -> avctx , AV_LOG_DEBUG , \"Joint stereo coding not supported\\n\" ) ;\n s -> debug_flag |= 0x02 ;\n }\n }\n }\n if ( ! base_channel && s -> prim_channels > 2 ) {\n if ( s -> downmix ) {\n for ( j = base_channel ;\n j < s -> prim_channels ;\n j ++ ) {\n s -> downmix_coef [ j ] [ 0 ] = get_bits ( & s -> gb , 7 ) ;\n s -> downmix_coef [ j ] [ 1 ] = get_bits ( & s -> gb , 7 ) ;\n }\n }\n else {\n int am = s -> amode & DCA_CHANNEL_MASK ;\n if ( am >= FF_ARRAY_ELEMS ( dca_default_coeffs ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Invalid channel mode %d\\n\" , am ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( j = base_channel ;\n j < s -> prim_channels ;\n j ++ ) {\n s -> downmix_coef [ j ] [ 0 ] = dca_default_coeffs [ am ] [ j ] [ 0 ] ;\n s -> downmix_coef [ j ] [ 1 ] = dca_default_coeffs [ am ] [ j ] [ 1 ] ;\n }\n }\n }\n if ( ! base_channel && s -> dynrange ) s -> dynrange_coef = get_bits ( & s -> gb , 8 ) ;\n if ( s -> crc_present ) {\n get_bits ( & s -> gb , 16 ) ;\n }\n for ( j = base_channel ;\n j < s -> prim_channels ;\n j ++ ) for ( k = s -> vq_start_subband [ j ] ;\n k < s -> subband_activity [ j ] ;\n k ++ ) s -> high_freq_vq [ j ] [ k ] = get_bits ( & s -> gb , 10 ) ;\n if ( ! base_channel && s -> lfe ) {\n int lfe_samples = 2 * s -> lfe * ( 4 + block_index ) ;\n int lfe_end_sample = 2 * s -> lfe * ( 4 + block_index + s -> subsubframes [ s -> current_subframe ] ) ;\n float lfe_scale ;\n for ( j = lfe_samples ;\n j < lfe_end_sample ;\n j ++ ) {\n s -> lfe_data [ j ] = get_sbits ( & s -> gb , 8 ) ;\n }\n skip_bits ( & s -> gb , 1 ) ;\n s -> lfe_scale_factor = scale_factor_quant7 [ get_bits ( & s -> gb , 7 ) ] ;\n lfe_scale = 0.035 * s -> lfe_scale_factor ;\n for ( j = lfe_samples ;\n j < lfe_end_sample ;\n j ++ ) s -> lfe_data [ j ] *= lfe_scale ;\n }\n # ifdef TRACE av_log ( s -> avctx , AV_LOG_DEBUG , \"subsubframes: %i\\n\" , s -> subsubframes [ s -> current_subframe ] ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"partial samples: %i\\n\" , s -> partial_samples [ s -> current_subframe ] ) ;\n for ( j = base_channel ;\n j < s -> prim_channels ;\n j ++ ) {\n av_log ( s -> avctx , AV_LOG_DEBUG , \"prediction mode:\" ) ;\n for ( k = 0 ;\n k < s -> subband_activity [ j ] ;\n k ++ ) av_log ( s -> avctx , AV_LOG_DEBUG , \" %i\" , s -> prediction_mode [ j ] [ k ] ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"\\n\" ) ;\n }\n for ( j = base_channel ;\n j < s -> prim_channels ;\n j ++ ) {\n for ( k = 0 ;\n k < s -> subband_activity [ j ] ;\n k ++ ) av_log ( s -> avctx , AV_LOG_DEBUG , \"prediction coefs: %f, %f, %f, %f\\n\" , ( float ) adpcm_vb [ s -> prediction_vq [ j ] [ k ] ] [ 0 ] / 8192 , ( float ) adpcm_vb [ s -> prediction_vq [ j ] [ k ] ] [ 1 ] / 8192 , ( float ) adpcm_vb [ s -> prediction_vq [ j ] [ k ] ] [ 2 ] / 8192 , ( float ) adpcm_vb [ s -> prediction_vq [ j ] [ k ] ] [ 3 ] / 8192 ) ;\n }\n for ( j = base_channel ;\n j < s -> prim_channels ;\n j ++ ) {\n av_log ( s -> avctx , AV_LOG_DEBUG , \"bitalloc index: \" ) ;\n for ( k = 0 ;\n k < s -> vq_start_subband [ j ] ;\n k ++ ) av_log ( s -> avctx , AV_LOG_DEBUG , \"%2.2i \" , s -> bitalloc [ j ] [ k ] ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"\\n\" ) ;\n }\n for ( j = base_channel ;\n j < s -> prim_channels ;\n j ++ ) {\n av_log ( s -> avctx , AV_LOG_DEBUG , \"Transition mode:\" ) ;\n for ( k = 0 ;\n k < s -> subband_activity [ j ] ;\n k ++ ) av_log ( s -> avctx , AV_LOG_DEBUG , \" %i\" , s -> transition_mode [ j ] [ k ] ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"\\n\" ) ;\n }\n for ( j = base_channel ;\n j < s -> prim_channels ;\n j ++ ) {\n av_log ( s -> avctx , AV_LOG_DEBUG , \"Scale factor:\" ) ;\n for ( k = 0 ;\n k < s -> subband_activity [ j ] ;\n k ++ ) {\n if ( k >= s -> vq_start_subband [ j ] || s -> bitalloc [ j ] [ k ] > 0 ) av_log ( s -> avctx , AV_LOG_DEBUG , \" %i\" , s -> scale_factor [ j ] [ k ] [ 0 ] ) ;\n if ( k < s -> vq_start_subband [ j ] && s -> transition_mode [ j ] [ k ] ) av_log ( s -> avctx , AV_LOG_DEBUG , \" %i(t)\" , s -> scale_factor [ j ] [ k ] [ 1 ] ) ;\n }\n av_log ( s -> avctx , AV_LOG_DEBUG , \"\\n\" ) ;\n }\n for ( j = base_channel ;\n j < s -> prim_channels ;\n j ++ ) {\n if ( s -> joint_intensity [ j ] > 0 ) {\n int source_channel = s -> joint_intensity [ j ] - 1 ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"Joint scale factor index:\\n\" ) ;\n for ( k = s -> subband_activity [ j ] ;\n k < s -> subband_activity [ source_channel ] ;\n k ++ ) av_log ( s -> avctx , AV_LOG_DEBUG , \" %i\" , s -> joint_scale_factor [ j ] [ k ] ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"\\n\" ) ;\n }\n }\n if ( ! base_channel && s -> prim_channels > 2 && s -> downmix ) {\n av_log ( s -> avctx , AV_LOG_DEBUG , \"Downmix coeffs:\\n\" ) ;\n for ( j = 0 ;\n j < s -> prim_channels ;\n j ++ ) {\n av_log ( s -> avctx , AV_LOG_DEBUG , \"Channel 0, %d = %f\\n\" , j , dca_downmix_coeffs [ s -> downmix_coef [ j ] [ 0 ] ] ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"Channel 1, %d = %f\\n\" , j , dca_downmix_coeffs [ s -> downmix_coef [ j ] [ 1 ] ] ) ;\n }\n av_log ( s -> avctx , AV_LOG_DEBUG , \"\\n\" ) ;\n }\n for ( j = base_channel ;\n j < s -> prim_channels ;\n j ++ ) for ( k = s -> vq_start_subband [ j ] ;\n k < s -> subband_activity [ j ] ;\n k ++ ) av_log ( s -> avctx , AV_LOG_DEBUG , \"VQ index: %i\\n\" , s -> high_freq_vq [ j ] [ k ] ) ;\n if ( ! base_channel && s -> lfe ) {\n int lfe_samples = 2 * s -> lfe * ( 4 + block_index ) ;\n int lfe_end_sample = 2 * s -> lfe * ( 4 + block_index + s -> subsubframes [ s -> current_subframe ] ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"LFE samples:\\n\" ) ;\n for ( j = lfe_samples ;\n j < lfe_end_sample ;\n j ++ ) av_log ( s -> avctx , AV_LOG_DEBUG , \" %f\" , s -> lfe_data [ j ] ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"\\n\" ) ;\n }\n # endif return 0 ;\n }"}
{"idx": 6276, "target": 0, "func": "static gboolean logcat_seek_read ( wtap * wth , gint64 seek_off , struct wtap_pkthdr * phdr , Buffer * buf , int * err , gchar * * err_info ) {\n if ( file_seek ( wth -> random_fh , seek_off , SEEK_SET , err ) == - 1 ) return FALSE ;\n if ( ! logcat_read_packet ( ( struct logcat_phdr * ) wth -> priv , wth -> random_fh , phdr , buf , err , err_info ) ) {\n if ( * err == 0 ) * err = WTAP_ERR_SHORT_READ ;\n return FALSE ;\n }\n return TRUE ;\n }"}
{"idx": 6277, "target": 0, "func": "static enum checksum_status pimv2_check_checksum ( netdissect_options * ndo , const u_char * bp , const u_char * bp2 , u_int len ) {\n const struct ip * ip ;\n u_int cksum ;\n if ( ! ND_TTEST2 ( bp [ 0 ] , len ) ) {\n return ( UNVERIFIED ) ;\n }\n ip = ( const struct ip * ) bp2 ;\n if ( IP_V ( ip ) == 4 ) {\n struct cksum_vec vec [ 1 ] ;\n vec [ 0 ] . ptr = bp ;\n vec [ 0 ] . len = len ;\n cksum = in_cksum ( vec , 1 ) ;\n return ( cksum ? INCORRECT : CORRECT ) ;\n }\n else if ( IP_V ( ip ) == 6 ) {\n const struct ip6_hdr * ip6 ;\n ip6 = ( const struct ip6_hdr * ) bp2 ;\n cksum = nextproto6_cksum ( ndo , ip6 , bp , len , len , IPPROTO_PIM ) ;\n return ( cksum ? INCORRECT : CORRECT ) ;\n }\n else {\n return ( UNVERIFIED ) ;\n }\n }"}
{"idx": 6278, "target": 0, "func": "static void ps2_reset_keyboard ( PS2KbdState * s ) {\n trace_ps2_reset_keyboard ( s ) ;\n s -> scan_enabled = 1 ;\n s -> scancode_set = 2 ;\n ps2_reset_queue ( & s -> common ) ;\n ps2_set_ledstate ( s , 0 ) ;\n }"}
{"idx": 6279, "target": 0, "func": "int ber_remaining ( BerElement * ber ) {\n return ber_pvt_ber_remaining ( ber ) ;\n }"}
{"idx": 6280, "target": 0, "func": "static vpx_codec_err_t ctrl_set_frame_parallel_decoding_mode ( vpx_codec_alg_priv_t * ctx , va_list args ) {\n struct vp9_extracfg extra_cfg = ctx -> extra_cfg ;\n extra_cfg . frame_parallel_decoding_mode = CAST ( VP9E_SET_FRAME_PARALLEL_DECODING , args ) ;\n return update_extra_cfg ( ctx , & extra_cfg ) ;\n }"}
{"idx": 6281, "target": 0, "func": "static void e1000e_set_rx_control ( E1000ECore * core , int index , uint32_t val ) {\n core -> mac [ RCTL ] = val ;\n trace_e1000e_rx_set_rctl ( core -> mac [ RCTL ] ) ;\n if ( val & E1000_RCTL_EN ) {\n e1000e_parse_rxbufsize ( core ) ;\n e1000e_calc_rxdesclen ( core ) ;\n core -> rxbuf_min_shift = ( ( val / E1000_RCTL_RDMTS_QUAT ) & 3 ) + 1 + E1000_RING_DESC_LEN_SHIFT ;\n e1000e_start_recv ( core ) ;\n }\n }"}
{"idx": 6282, "target": 0, "func": "static void test_manual_sample ( ) {\n unsigned int param_count ;\n MYSQL_STMT * stmt ;\n short small_data ;\n int int_data ;\n int rc ;\n char str_data [ 50 ] ;\n ulonglong affected_rows ;\n MYSQL_BIND my_bind [ 3 ] ;\n my_bool is_null ;\n char query [ MAX_TEST_QUERY_LENGTH ] ;\n myheader ( \"test_manual_sample\" ) ;\n mysql_autocommit ( mysql , 1 ) ;\n if ( mysql_query ( mysql , \"DROP TABLE IF EXISTS test_table\" ) ) {\n fprintf ( stderr , \"\\n drop table failed\" ) ;\n fprintf ( stderr , \"\\n %s\" , mysql_error ( mysql ) ) ;\n exit ( 1 ) ;\n }\n if ( mysql_query ( mysql , \"CREATE TABLE test_table(col1 int, col2 varchar(50), \\ col3 smallint, \\ col4 timestamp)\" ) ) {\n fprintf ( stderr , \"\\n create table failed\" ) ;\n fprintf ( stderr , \"\\n %s\" , mysql_error ( mysql ) ) ;\n exit ( 1 ) ;\n }\n strmov ( query , \"INSERT INTO test_table(col1, col2, col3) values(?, ?, ?)\" ) ;\n if ( ! ( stmt = mysql_simple_prepare ( mysql , query ) ) ) {\n fprintf ( stderr , \"\\n prepare, insert failed\" ) ;\n fprintf ( stderr , \"\\n %s\" , mysql_error ( mysql ) ) ;\n exit ( 1 ) ;\n }\n if ( ! opt_silent ) fprintf ( stdout , \"\\n prepare, insert successful\" ) ;\n param_count = mysql_stmt_param_count ( stmt ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n total parameters in insert: %d\" , param_count ) ;\n if ( param_count != 3 ) {\n fprintf ( stderr , \"\\n invalid parameter count returned by MySQL\" ) ;\n exit ( 1 ) ;\n }\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 0 ] . buffer = ( void * ) & int_data ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_VAR_STRING ;\n my_bind [ 1 ] . buffer = ( void * ) str_data ;\n my_bind [ 1 ] . buffer_length = sizeof ( str_data ) ;\n my_bind [ 2 ] . buffer_type = MYSQL_TYPE_SHORT ;\n my_bind [ 2 ] . buffer = ( void * ) & small_data ;\n my_bind [ 2 ] . is_null = & is_null ;\n is_null = 0 ;\n if ( mysql_stmt_bind_param ( stmt , my_bind ) ) {\n fprintf ( stderr , \"\\n param bind failed\" ) ;\n fprintf ( stderr , \"\\n %s\" , mysql_stmt_error ( stmt ) ) ;\n exit ( 1 ) ;\n }\n int_data = 10 ;\n strmov ( str_data , \"MySQL\" ) ;\n is_null = 1 ;\n if ( mysql_stmt_execute ( stmt ) ) {\n fprintf ( stderr , \"\\n execute 1 failed\" ) ;\n fprintf ( stderr , \"\\n %s\" , mysql_stmt_error ( stmt ) ) ;\n exit ( 1 ) ;\n }\n affected_rows = mysql_stmt_affected_rows ( stmt ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n total affected rows: %ld\" , ( ulong ) affected_rows ) ;\n if ( affected_rows != 1 ) {\n fprintf ( stderr , \"\\n invalid affected rows by MySQL\" ) ;\n exit ( 1 ) ;\n }\n int_data = 1000 ;\n strmov ( str_data , \"The most popular open source database\" ) ;\n small_data = 1000 ;\n is_null = 0 ;\n if ( mysql_stmt_execute ( stmt ) ) {\n fprintf ( stderr , \"\\n execute 2 failed\" ) ;\n fprintf ( stderr , \"\\n %s\" , mysql_stmt_error ( stmt ) ) ;\n exit ( 1 ) ;\n }\n affected_rows = mysql_stmt_affected_rows ( stmt ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n total affected rows: %ld\" , ( ulong ) affected_rows ) ;\n if ( affected_rows != 1 ) {\n fprintf ( stderr , \"\\n invalid affected rows by MySQL\" ) ;\n exit ( 1 ) ;\n }\n if ( mysql_stmt_close ( stmt ) ) {\n fprintf ( stderr , \"\\n failed while closing the statement\" ) ;\n fprintf ( stderr , \"\\n %s\" , mysql_stmt_error ( stmt ) ) ;\n exit ( 1 ) ;\n }\n rc = my_stmt_result ( \"SELECT * FROM test_table\" ) ;\n DIE_UNLESS ( rc == 2 ) ;\n if ( mysql_query ( mysql , \"DROP TABLE test_table\" ) ) {\n fprintf ( stderr , \"\\n drop table failed\" ) ;\n fprintf ( stderr , \"\\n %s\" , mysql_error ( mysql ) ) ;\n exit ( 1 ) ;\n }\n if ( ! opt_silent ) fprintf ( stdout , \"Success !!!\" ) ;\n }"}
{"idx": 6283, "target": 0, "func": "void http_hdr_adjust ( HTTPHdrImpl * , int32_t , int32_t , int32_t ) {\n ink_release_assert ( ! \"http_hdr_adjust not implemented\" ) ;\n }"}
{"idx": 6284, "target": 0, "func": "static bool check_for_exec ( const_os_ptr op ) {\n if ( ! r_has_attr ( op , a_execute ) && ref_type_uses_access ( r_type ( op ) ) && ( r_has_attr ( op , a_executable ) || ! r_has_type ( op , t_dictionary ) ) ) {\n return_error ( gs_error_invalidaccess ) ;\n }\n return 0 ;\n }"}
{"idx": 6285, "target": 0, "func": "static void _becomeUser ( ArchiveHandle * AH , const char * user ) {\n if ( ! user ) user = \"\" ;\n if ( AH -> currUser && strcmp ( AH -> currUser , user ) == 0 ) return ;\n _doSetSessionAuth ( AH , user ) ;\n if ( AH -> currUser ) free ( AH -> currUser ) ;\n AH -> currUser = pg_strdup ( user ) ;\n }"}
{"idx": 6286, "target": 0, "func": "static void rfbProcessClientNormalMessage ( rfbClientPtr cl ) {\n int n = 0 ;\n rfbClientToServerMsg msg ;\n char * str ;\n int i ;\n uint32_t enc = 0 ;\n uint32_t lastPreferredEncoding = - 1 ;\n char encBuf [ 64 ] ;\n char encBuf2 [ 64 ] ;\n if ( ( n = rfbReadExact ( cl , ( char * ) & msg , 1 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n switch ( msg . type ) {\n case rfbSetPixelFormat : if ( ( n = rfbReadExact ( cl , ( ( char * ) & msg ) + 1 , sz_rfbSetPixelFormatMsg - 1 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n cl -> format . bitsPerPixel = msg . spf . format . bitsPerPixel ;\n cl -> format . depth = msg . spf . format . depth ;\n cl -> format . bigEndian = ( msg . spf . format . bigEndian ? TRUE : FALSE ) ;\n cl -> format . trueColour = ( msg . spf . format . trueColour ? TRUE : FALSE ) ;\n cl -> format . redMax = Swap16IfLE ( msg . spf . format . redMax ) ;\n cl -> format . greenMax = Swap16IfLE ( msg . spf . format . greenMax ) ;\n cl -> format . blueMax = Swap16IfLE ( msg . spf . format . blueMax ) ;\n cl -> format . redShift = msg . spf . format . redShift ;\n cl -> format . greenShift = msg . spf . format . greenShift ;\n cl -> format . blueShift = msg . spf . format . blueShift ;\n cl -> readyForSetColourMapEntries = TRUE ;\n cl -> screen -> setTranslateFunction ( cl ) ;\n rfbStatRecordMessageRcvd ( cl , msg . type , sz_rfbSetPixelFormatMsg , sz_rfbSetPixelFormatMsg ) ;\n return ;\n case rfbFixColourMapEntries : if ( ( n = rfbReadExact ( cl , ( ( char * ) & msg ) + 1 , sz_rfbFixColourMapEntriesMsg - 1 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n rfbStatRecordMessageRcvd ( cl , msg . type , sz_rfbSetPixelFormatMsg , sz_rfbSetPixelFormatMsg ) ;\n rfbLog ( \"rfbProcessClientNormalMessage: %s\" , \"FixColourMapEntries unsupported\\n\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n case rfbSetEncodings : {\n if ( ( n = rfbReadExact ( cl , ( ( char * ) & msg ) + 1 , sz_rfbSetEncodingsMsg - 1 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n msg . se . nEncodings = Swap16IfLE ( msg . se . nEncodings ) ;\n rfbStatRecordMessageRcvd ( cl , msg . type , sz_rfbSetEncodingsMsg + ( msg . se . nEncodings * 4 ) , sz_rfbSetEncodingsMsg + ( msg . se . nEncodings * 4 ) ) ;\n if ( cl -> preferredEncoding != - 1 ) lastPreferredEncoding = cl -> preferredEncoding ;\n cl -> preferredEncoding = - 1 ;\n cl -> useCopyRect = FALSE ;\n cl -> useNewFBSize = FALSE ;\n cl -> cursorWasChanged = FALSE ;\n cl -> useRichCursorEncoding = FALSE ;\n cl -> enableCursorPosUpdates = FALSE ;\n cl -> enableCursorShapeUpdates = FALSE ;\n cl -> enableCursorShapeUpdates = FALSE ;\n cl -> enableLastRectEncoding = FALSE ;\n cl -> enableKeyboardLedState = FALSE ;\n cl -> enableSupportedMessages = FALSE ;\n cl -> enableSupportedEncodings = FALSE ;\n cl -> enableServerIdentity = FALSE ;\n # if defined ( LIBVNCSERVER_HAVE_LIBZ ) || defined ( LIBVNCSERVER_HAVE_LIBPNG ) cl -> tightQualityLevel = - 1 ;\n # ifdef LIBVNCSERVER_HAVE_LIBJPEG cl -> tightCompressLevel = TIGHT_DEFAULT_COMPRESSION ;\n cl -> turboSubsampLevel = TURBO_DEFAULT_SUBSAMP ;\n cl -> turboQualityLevel = - 1 ;\n # endif # endif for ( i = 0 ;\n i < msg . se . nEncodings ;\n i ++ ) {\n if ( ( n = rfbReadExact ( cl , ( char * ) & enc , 4 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n enc = Swap32IfLE ( enc ) ;\n switch ( enc ) {\n case rfbEncodingCopyRect : cl -> useCopyRect = TRUE ;\n break ;\n case rfbEncodingRaw : case rfbEncodingRRE : case rfbEncodingCoRRE : case rfbEncodingHextile : case rfbEncodingUltra : # ifdef LIBVNCSERVER_HAVE_LIBZ case rfbEncodingZlib : case rfbEncodingZRLE : case rfbEncodingZYWRLE : # ifdef LIBVNCSERVER_HAVE_LIBJPEG case rfbEncodingTight : # endif # endif # ifdef LIBVNCSERVER_HAVE_LIBPNG case rfbEncodingTightPng : # endif if ( cl -> preferredEncoding == - 1 ) cl -> preferredEncoding = enc ;\n break ;\n case rfbEncodingXCursor : if ( ! cl -> screen -> dontConvertRichCursorToXCursor ) {\n rfbLog ( \"Enabling X-style cursor updates for client %s\\n\" , cl -> host ) ;\n if ( ! cl -> enableCursorShapeUpdates ) rfbRedrawAfterHideCursor ( cl , NULL ) ;\n cl -> enableCursorShapeUpdates = TRUE ;\n cl -> cursorWasChanged = TRUE ;\n }\n break ;\n case rfbEncodingRichCursor : rfbLog ( \"Enabling full-color cursor updates for client %s\\n\" , cl -> host ) ;\n if ( ! cl -> enableCursorShapeUpdates ) rfbRedrawAfterHideCursor ( cl , NULL ) ;\n cl -> enableCursorShapeUpdates = TRUE ;\n cl -> useRichCursorEncoding = TRUE ;\n cl -> cursorWasChanged = TRUE ;\n break ;\n case rfbEncodingPointerPos : if ( ! cl -> enableCursorPosUpdates ) {\n rfbLog ( \"Enabling cursor position updates for client %s\\n\" , cl -> host ) ;\n cl -> enableCursorPosUpdates = TRUE ;\n cl -> cursorWasMoved = TRUE ;\n }\n break ;\n case rfbEncodingLastRect : if ( ! cl -> enableLastRectEncoding ) {\n rfbLog ( \"Enabling LastRect protocol extension for client \" \"%s\\n\" , cl -> host ) ;\n cl -> enableLastRectEncoding = TRUE ;\n }\n break ;\n case rfbEncodingNewFBSize : if ( ! cl -> useNewFBSize ) {\n rfbLog ( \"Enabling NewFBSize protocol extension for client \" \"%s\\n\" , cl -> host ) ;\n cl -> useNewFBSize = TRUE ;\n }\n break ;\n case rfbEncodingKeyboardLedState : if ( ! cl -> enableKeyboardLedState ) {\n rfbLog ( \"Enabling KeyboardLedState protocol extension for client \" \"%s\\n\" , cl -> host ) ;\n cl -> enableKeyboardLedState = TRUE ;\n }\n break ;\n case rfbEncodingSupportedMessages : if ( ! cl -> enableSupportedMessages ) {\n rfbLog ( \"Enabling SupportedMessages protocol extension for client \" \"%s\\n\" , cl -> host ) ;\n cl -> enableSupportedMessages = TRUE ;\n }\n break ;\n case rfbEncodingSupportedEncodings : if ( ! cl -> enableSupportedEncodings ) {\n rfbLog ( \"Enabling SupportedEncodings protocol extension for client \" \"%s\\n\" , cl -> host ) ;\n cl -> enableSupportedEncodings = TRUE ;\n }\n break ;\n case rfbEncodingServerIdentity : if ( ! cl -> enableServerIdentity ) {\n rfbLog ( \"Enabling ServerIdentity protocol extension for client \" \"%s\\n\" , cl -> host ) ;\n cl -> enableServerIdentity = TRUE ;\n }\n break ;\n case rfbEncodingXvp : if ( cl -> screen -> xvpHook ) {\n rfbLog ( \"Enabling Xvp protocol extension for client \" \"%s\\n\" , cl -> host ) ;\n if ( ! rfbSendXvp ( cl , 1 , rfbXvp_Init ) ) {\n rfbCloseClient ( cl ) ;\n return ;\n }\n }\n break ;\n default : # if defined ( LIBVNCSERVER_HAVE_LIBZ ) || defined ( LIBVNCSERVER_HAVE_LIBPNG ) if ( enc >= ( uint32_t ) rfbEncodingCompressLevel0 && enc <= ( uint32_t ) rfbEncodingCompressLevel9 ) {\n cl -> zlibCompressLevel = enc & 0x0F ;\n # ifdef LIBVNCSERVER_HAVE_LIBJPEG cl -> tightCompressLevel = enc & 0x0F ;\n rfbLog ( \"Using compression level %d for client %s\\n\" , cl -> tightCompressLevel , cl -> host ) ;\n # endif }\n else if ( enc >= ( uint32_t ) rfbEncodingQualityLevel0 && enc <= ( uint32_t ) rfbEncodingQualityLevel9 ) {\n cl -> tightQualityLevel = enc & 0x0F ;\n rfbLog ( \"Using image quality level %d for client %s\\n\" , cl -> tightQualityLevel , cl -> host ) ;\n # ifdef LIBVNCSERVER_HAVE_LIBJPEG cl -> turboQualityLevel = tight2turbo_qual [ enc & 0x0F ] ;\n cl -> turboSubsampLevel = tight2turbo_subsamp [ enc & 0x0F ] ;\n rfbLog ( \"Using JPEG subsampling %d, Q%d for client %s\\n\" , cl -> turboSubsampLevel , cl -> turboQualityLevel , cl -> host ) ;\n }\n else if ( enc >= ( uint32_t ) rfbEncodingFineQualityLevel0 + 1 && enc <= ( uint32_t ) rfbEncodingFineQualityLevel100 ) {\n cl -> turboQualityLevel = enc & 0xFF ;\n rfbLog ( \"Using fine quality level %d for client %s\\n\" , cl -> turboQualityLevel , cl -> host ) ;\n }\n else if ( enc >= ( uint32_t ) rfbEncodingSubsamp1X && enc <= ( uint32_t ) rfbEncodingSubsampGray ) {\n cl -> turboSubsampLevel = enc & 0xFF ;\n rfbLog ( \"Using subsampling level %d for client %s\\n\" , cl -> turboSubsampLevel , cl -> host ) ;\n # endif }\n else # endif {\n rfbExtensionData * e ;\n for ( e = cl -> extensions ;\n e ;\n ) {\n rfbExtensionData * next = e -> next ;\n if ( e -> extension -> enablePseudoEncoding && e -> extension -> enablePseudoEncoding ( cl , & e -> data , ( int ) enc ) ) break ;\n e = next ;\n }\n if ( e == NULL ) {\n rfbBool handled = FALSE ;\n rfbProtocolExtension * e ;\n for ( e = rfbGetExtensionIterator ( ) ;\n e ;\n ) {\n int * encs = e -> pseudoEncodings ;\n while ( encs && * encs != 0 ) {\n if ( * encs == ( int ) enc ) {\n void * data = NULL ;\n if ( ! e -> enablePseudoEncoding ( cl , & data , ( int ) enc ) ) {\n rfbLog ( \"Installed extension pretends to handle pseudo encoding 0x%x, but does not!\\n\" , ( int ) enc ) ;\n }\n else {\n rfbEnableExtension ( cl , e , data ) ;\n handled = TRUE ;\n e = NULL ;\n break ;\n }\n }\n encs ++ ;\n }\n if ( e ) e = e -> next ;\n }\n rfbReleaseExtensionIterator ( ) ;\n if ( ! handled ) rfbLog ( \"rfbProcessClientNormalMessage: \" \"ignoring unsupported encoding type %s\\n\" , encodingName ( enc , encBuf , sizeof ( encBuf ) ) ) ;\n }\n }\n }\n }\n if ( cl -> preferredEncoding == - 1 ) {\n if ( lastPreferredEncoding == - 1 ) {\n cl -> preferredEncoding = rfbEncodingRaw ;\n rfbLog ( \"Defaulting to %s encoding for client %s\\n\" , encodingName ( cl -> preferredEncoding , encBuf , sizeof ( encBuf ) ) , cl -> host ) ;\n }\n else {\n cl -> preferredEncoding = lastPreferredEncoding ;\n rfbLog ( \"Sticking with %s encoding for client %s\\n\" , encodingName ( cl -> preferredEncoding , encBuf , sizeof ( encBuf ) ) , cl -> host ) ;\n }\n }\n else {\n if ( lastPreferredEncoding == - 1 ) {\n rfbLog ( \"Using %s encoding for client %s\\n\" , encodingName ( cl -> preferredEncoding , encBuf , sizeof ( encBuf ) ) , cl -> host ) ;\n }\n else {\n rfbLog ( \"Switching from %s to %s Encoding for client %s\\n\" , encodingName ( lastPreferredEncoding , encBuf2 , sizeof ( encBuf2 ) ) , encodingName ( cl -> preferredEncoding , encBuf , sizeof ( encBuf ) ) , cl -> host ) ;\n }\n }\n if ( cl -> enableCursorPosUpdates && ! cl -> enableCursorShapeUpdates ) {\n rfbLog ( \"Disabling cursor position updates for client %s\\n\" , cl -> host ) ;\n cl -> enableCursorPosUpdates = FALSE ;\n }\n return ;\n }\n case rfbFramebufferUpdateRequest : {\n sraRegionPtr tmpRegion ;\n if ( ( n = rfbReadExact ( cl , ( ( char * ) & msg ) + 1 , sz_rfbFramebufferUpdateRequestMsg - 1 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n rfbStatRecordMessageRcvd ( cl , msg . type , sz_rfbFramebufferUpdateRequestMsg , sz_rfbFramebufferUpdateRequestMsg ) ;\n if ( ! rectSwapIfLEAndClip ( & msg . fur . x , & msg . fur . y , & msg . fur . w , & msg . fur . h , cl ) ) {\n rfbLog ( \"Warning, ignoring rfbFramebufferUpdateRequest: %dXx%dY-%dWx%dH\\n\" , msg . fur . x , msg . fur . y , msg . fur . w , msg . fur . h ) ;\n return ;\n }\n tmpRegion = sraRgnCreateRect ( msg . fur . x , msg . fur . y , msg . fur . x + msg . fur . w , msg . fur . y + msg . fur . h ) ;\n LOCK ( cl -> updateMutex ) ;\n sraRgnOr ( cl -> requestedRegion , tmpRegion ) ;\n if ( ! cl -> readyForSetColourMapEntries ) {\n cl -> readyForSetColourMapEntries = TRUE ;\n if ( ! cl -> format . trueColour ) {\n if ( ! rfbSetClientColourMap ( cl , 0 , 0 ) ) {\n sraRgnDestroy ( tmpRegion ) ;\n TSIGNAL ( cl -> updateCond ) ;\n UNLOCK ( cl -> updateMutex ) ;\n return ;\n }\n }\n }\n if ( ! msg . fur . incremental ) {\n sraRgnOr ( cl -> modifiedRegion , tmpRegion ) ;\n sraRgnSubtract ( cl -> copyRegion , tmpRegion ) ;\n }\n TSIGNAL ( cl -> updateCond ) ;\n UNLOCK ( cl -> updateMutex ) ;\n sraRgnDestroy ( tmpRegion ) ;\n return ;\n }\n case rfbKeyEvent : if ( ( n = rfbReadExact ( cl , ( ( char * ) & msg ) + 1 , sz_rfbKeyEventMsg - 1 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n rfbStatRecordMessageRcvd ( cl , msg . type , sz_rfbKeyEventMsg , sz_rfbKeyEventMsg ) ;\n if ( ! cl -> viewOnly ) {\n cl -> screen -> kbdAddEvent ( msg . ke . down , ( rfbKeySym ) Swap32IfLE ( msg . ke . key ) , cl ) ;\n }\n return ;\n case rfbPointerEvent : if ( ( n = rfbReadExact ( cl , ( ( char * ) & msg ) + 1 , sz_rfbPointerEventMsg - 1 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n rfbStatRecordMessageRcvd ( cl , msg . type , sz_rfbPointerEventMsg , sz_rfbPointerEventMsg ) ;\n if ( cl -> screen -> pointerClient && cl -> screen -> pointerClient != cl ) return ;\n if ( msg . pe . buttonMask == 0 ) cl -> screen -> pointerClient = NULL ;\n else cl -> screen -> pointerClient = cl ;\n if ( ! cl -> viewOnly ) {\n if ( msg . pe . buttonMask != cl -> lastPtrButtons || cl -> screen -> deferPtrUpdateTime == 0 ) {\n cl -> screen -> ptrAddEvent ( msg . pe . buttonMask , ScaleX ( cl -> scaledScreen , cl -> screen , Swap16IfLE ( msg . pe . x ) ) , ScaleY ( cl -> scaledScreen , cl -> screen , Swap16IfLE ( msg . pe . y ) ) , cl ) ;\n cl -> lastPtrButtons = msg . pe . buttonMask ;\n }\n else {\n cl -> lastPtrX = ScaleX ( cl -> scaledScreen , cl -> screen , Swap16IfLE ( msg . pe . x ) ) ;\n cl -> lastPtrY = ScaleY ( cl -> scaledScreen , cl -> screen , Swap16IfLE ( msg . pe . y ) ) ;\n cl -> lastPtrButtons = msg . pe . buttonMask ;\n }\n }\n return ;\n case rfbFileTransfer : if ( ( n = rfbReadExact ( cl , ( ( char * ) & msg ) + 1 , sz_rfbFileTransferMsg - 1 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n msg . ft . size = Swap32IfLE ( msg . ft . size ) ;\n msg . ft . length = Swap32IfLE ( msg . ft . length ) ;\n rfbProcessFileTransfer ( cl , msg . ft . contentType , msg . ft . contentParam , msg . ft . size , msg . ft . length ) ;\n return ;\n case rfbSetSW : if ( ( n = rfbReadExact ( cl , ( ( char * ) & msg ) + 1 , sz_rfbSetSWMsg - 1 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n msg . sw . x = Swap16IfLE ( msg . sw . x ) ;\n msg . sw . y = Swap16IfLE ( msg . sw . y ) ;\n rfbStatRecordMessageRcvd ( cl , msg . type , sz_rfbSetSWMsg , sz_rfbSetSWMsg ) ;\n rfbLog ( \"Received a rfbSetSingleWindow(%d x, %d y)\\n\" , msg . sw . x , msg . sw . y ) ;\n if ( cl -> screen -> setSingleWindow != NULL ) cl -> screen -> setSingleWindow ( cl , msg . sw . x , msg . sw . y ) ;\n return ;\n case rfbSetServerInput : if ( ( n = rfbReadExact ( cl , ( ( char * ) & msg ) + 1 , sz_rfbSetServerInputMsg - 1 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n rfbStatRecordMessageRcvd ( cl , msg . type , sz_rfbSetServerInputMsg , sz_rfbSetServerInputMsg ) ;\n rfbLog ( \"Received a rfbSetServerInput(%d status)\\n\" , msg . sim . status ) ;\n if ( cl -> screen -> setServerInput != NULL ) cl -> screen -> setServerInput ( cl , msg . sim . status ) ;\n return ;\n case rfbTextChat : if ( ( n = rfbReadExact ( cl , ( ( char * ) & msg ) + 1 , sz_rfbTextChatMsg - 1 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n msg . tc . pad2 = Swap16IfLE ( msg . tc . pad2 ) ;\n msg . tc . length = Swap32IfLE ( msg . tc . length ) ;\n switch ( msg . tc . length ) {\n case rfbTextChatOpen : case rfbTextChatClose : case rfbTextChatFinished : str = NULL ;\n rfbStatRecordMessageRcvd ( cl , msg . type , sz_rfbTextChatMsg , sz_rfbTextChatMsg ) ;\n break ;\n default : if ( ( msg . tc . length > 0 ) && ( msg . tc . length < rfbTextMaxSize ) ) {\n str = ( char * ) malloc ( msg . tc . length ) ;\n if ( str == NULL ) {\n rfbLog ( \"Unable to malloc %d bytes for a TextChat Message\\n\" , msg . tc . length ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n if ( ( n = rfbReadExact ( cl , str , msg . tc . length ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n free ( str ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n rfbStatRecordMessageRcvd ( cl , msg . type , sz_rfbTextChatMsg + msg . tc . length , sz_rfbTextChatMsg + msg . tc . length ) ;\n }\n else {\n rfbLog ( \"client sent us a Text Message that is too big %d>%d\\n\" , msg . tc . length , rfbTextMaxSize ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n }\n if ( cl -> screen -> setTextChat != NULL ) cl -> screen -> setTextChat ( cl , msg . tc . length , str ) ;\n free ( str ) ;\n return ;\n case rfbClientCutText : if ( ( n = rfbReadExact ( cl , ( ( char * ) & msg ) + 1 , sz_rfbClientCutTextMsg - 1 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n msg . cct . length = Swap32IfLE ( msg . cct . length ) ;\n if ( msg . cct . length > 1 << 20 ) {\n rfbLog ( \"rfbClientCutText: too big cut text length requested: %\" PRIu32 \"\\n\" , msg . cct . length ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n str = ( char * ) calloc ( msg . cct . length ? msg . cct . length : 1 , 1 ) ;\n if ( str == NULL ) {\n rfbLogPerror ( \"rfbProcessClientNormalMessage: not enough memory\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n if ( ( n = rfbReadExact ( cl , str , msg . cct . length ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n free ( str ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n rfbStatRecordMessageRcvd ( cl , msg . type , sz_rfbClientCutTextMsg + msg . cct . length , sz_rfbClientCutTextMsg + msg . cct . length ) ;\n if ( ! cl -> viewOnly ) {\n cl -> screen -> setXCutText ( str , msg . cct . length , cl ) ;\n }\n free ( str ) ;\n return ;\n case rfbPalmVNCSetScaleFactor : cl -> PalmVNC = TRUE ;\n if ( ( n = rfbReadExact ( cl , ( ( char * ) & msg ) + 1 , sz_rfbSetScaleMsg - 1 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n if ( msg . ssc . scale == 0 ) {\n rfbLogPerror ( \"rfbProcessClientNormalMessage: will not accept a scale factor of zero\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n rfbStatRecordMessageRcvd ( cl , msg . type , sz_rfbSetScaleMsg , sz_rfbSetScaleMsg ) ;\n rfbLog ( \"rfbSetScale(%d)\\n\" , msg . ssc . scale ) ;\n rfbScalingSetup ( cl , cl -> screen -> width / msg . ssc . scale , cl -> screen -> height / msg . ssc . scale ) ;\n rfbSendNewScaleSize ( cl ) ;\n return ;\n case rfbSetScale : if ( ( n = rfbReadExact ( cl , ( ( char * ) & msg ) + 1 , sz_rfbSetScaleMsg - 1 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n if ( msg . ssc . scale == 0 ) {\n rfbLogPerror ( \"rfbProcessClientNormalMessage: will not accept a scale factor of zero\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n rfbStatRecordMessageRcvd ( cl , msg . type , sz_rfbSetScaleMsg , sz_rfbSetScaleMsg ) ;\n rfbLog ( \"rfbSetScale(%d)\\n\" , msg . ssc . scale ) ;\n rfbScalingSetup ( cl , cl -> screen -> width / msg . ssc . scale , cl -> screen -> height / msg . ssc . scale ) ;\n rfbSendNewScaleSize ( cl ) ;\n return ;\n case rfbXvp : if ( ( n = rfbReadExact ( cl , ( ( char * ) & msg ) + 1 , sz_rfbXvpMsg - 1 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n rfbStatRecordMessageRcvd ( cl , msg . type , sz_rfbXvpMsg , sz_rfbXvpMsg ) ;\n if ( msg . xvp . version != 1 ) {\n rfbSendXvp ( cl , msg . xvp . version , rfbXvp_Fail ) ;\n }\n else {\n if ( cl -> screen -> xvpHook && ! cl -> screen -> xvpHook ( cl , msg . xvp . version , msg . xvp . code ) ) rfbSendXvp ( cl , 1 , rfbXvp_Fail ) ;\n }\n return ;\n default : {\n rfbExtensionData * e , * next ;\n for ( e = cl -> extensions ;\n e ;\n ) {\n next = e -> next ;\n if ( e -> extension -> handleMessage && e -> extension -> handleMessage ( cl , e -> data , & msg ) ) {\n rfbStatRecordMessageRcvd ( cl , msg . type , 0 , 0 ) ;\n return ;\n }\n e = next ;\n }\n rfbLog ( \"rfbProcessClientNormalMessage: unknown message type %d\\n\" , msg . type ) ;\n rfbLog ( \" ... closing connection\\n\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n }\n }"}
{"idx": 6287, "target": 0, "func": "static int cmp_fpel_internal ( MpegEncContext * s , const int x , const int y , const int size , const int h , int ref_index , int src_index , me_cmp_func cmp_func , me_cmp_func chroma_cmp_func , const int flags ) {\n if ( flags & FLAG_DIRECT ) {\n return cmp_direct_inline ( s , x , y , 0 , 0 , size , h , ref_index , src_index , cmp_func , chroma_cmp_func , flags & FLAG_QPEL ) ;\n }\n else {\n return cmp_inline ( s , x , y , 0 , 0 , size , h , ref_index , src_index , cmp_func , chroma_cmp_func , 0 , flags & FLAG_CHROMA ) ;\n }\n }"}
{"idx": 6288, "target": 0, "func": "static void qio_channel_websock_handshake_send_res ( QIOChannelWebsock * ioc , const char * resmsg , ... ) {\n va_list vargs ;\n char * response ;\n size_t responselen ;\n va_start ( vargs , resmsg ) ;\n response = g_strdup_vprintf ( resmsg , vargs ) ;\n responselen = strlen ( response ) ;\n buffer_reserve ( & ioc -> encoutput , responselen ) ;\n buffer_append ( & ioc -> encoutput , response , responselen ) ;\n va_end ( vargs ) ;\n }"}
{"idx": 6289, "target": 0, "func": "static void iadst4_sse2 ( __m128i * in ) {\n const __m128i k__sinpi_p01_p04 = pair_set_epi16 ( sinpi_1_9 , sinpi_4_9 ) ;\n const __m128i k__sinpi_p03_p02 = pair_set_epi16 ( sinpi_3_9 , sinpi_2_9 ) ;\n const __m128i k__sinpi_p02_m01 = pair_set_epi16 ( sinpi_2_9 , - sinpi_1_9 ) ;\n const __m128i k__sinpi_p03_m04 = pair_set_epi16 ( sinpi_3_9 , - sinpi_4_9 ) ;\n const __m128i k__sinpi_p03_p03 = _mm_set1_epi16 ( sinpi_3_9 ) ;\n const __m128i kZero = _mm_set1_epi16 ( 0 ) ;\n const __m128i k__DCT_CONST_ROUNDING = _mm_set1_epi32 ( DCT_CONST_ROUNDING ) ;\n __m128i u [ 8 ] , v [ 8 ] , in7 ;\n transpose_4x4 ( in ) ;\n in7 = _mm_srli_si128 ( in [ 1 ] , 8 ) ;\n in7 = _mm_add_epi16 ( in7 , in [ 0 ] ) ;\n in7 = _mm_sub_epi16 ( in7 , in [ 1 ] ) ;\n u [ 0 ] = _mm_unpacklo_epi16 ( in [ 0 ] , in [ 1 ] ) ;\n u [ 1 ] = _mm_unpackhi_epi16 ( in [ 0 ] , in [ 1 ] ) ;\n u [ 2 ] = _mm_unpacklo_epi16 ( in7 , kZero ) ;\n u [ 3 ] = _mm_unpackhi_epi16 ( in [ 0 ] , kZero ) ;\n v [ 0 ] = _mm_madd_epi16 ( u [ 0 ] , k__sinpi_p01_p04 ) ;\n v [ 1 ] = _mm_madd_epi16 ( u [ 1 ] , k__sinpi_p03_p02 ) ;\n v [ 2 ] = _mm_madd_epi16 ( u [ 2 ] , k__sinpi_p03_p03 ) ;\n v [ 3 ] = _mm_madd_epi16 ( u [ 0 ] , k__sinpi_p02_m01 ) ;\n v [ 4 ] = _mm_madd_epi16 ( u [ 1 ] , k__sinpi_p03_m04 ) ;\n v [ 5 ] = _mm_madd_epi16 ( u [ 3 ] , k__sinpi_p03_p03 ) ;\n u [ 0 ] = _mm_add_epi32 ( v [ 0 ] , v [ 1 ] ) ;\n u [ 1 ] = _mm_add_epi32 ( v [ 3 ] , v [ 4 ] ) ;\n u [ 2 ] = v [ 2 ] ;\n u [ 3 ] = _mm_add_epi32 ( u [ 0 ] , u [ 1 ] ) ;\n u [ 4 ] = _mm_slli_epi32 ( v [ 5 ] , 2 ) ;\n u [ 5 ] = _mm_add_epi32 ( u [ 3 ] , v [ 5 ] ) ;\n u [ 6 ] = _mm_sub_epi32 ( u [ 5 ] , u [ 4 ] ) ;\n v [ 0 ] = _mm_add_epi32 ( u [ 0 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 1 ] = _mm_add_epi32 ( u [ 1 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 2 ] = _mm_add_epi32 ( u [ 2 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 3 ] = _mm_add_epi32 ( u [ 6 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 0 ] = _mm_srai_epi32 ( v [ 0 ] , DCT_CONST_BITS ) ;\n u [ 1 ] = _mm_srai_epi32 ( v [ 1 ] , DCT_CONST_BITS ) ;\n u [ 2 ] = _mm_srai_epi32 ( v [ 2 ] , DCT_CONST_BITS ) ;\n u [ 3 ] = _mm_srai_epi32 ( v [ 3 ] , DCT_CONST_BITS ) ;\n in [ 0 ] = _mm_packs_epi32 ( u [ 0 ] , u [ 1 ] ) ;\n in [ 1 ] = _mm_packs_epi32 ( u [ 2 ] , u [ 3 ] ) ;\n }"}
{"idx": 6290, "target": 0, "func": "char * virLogGetOutputs ( void ) {\n size_t i ;\n virBuffer outputbuf = VIR_BUFFER_INITIALIZER ;\n virLogLock ( ) ;\n for ( i = 0 ;\n i < virLogNbOutputs ;\n i ++ ) {\n virLogDestination dest = virLogOutputs [ i ] -> dest ;\n if ( i ) virBufferAddChar ( & outputbuf , ' ' ) ;\n switch ( dest ) {\n case VIR_LOG_TO_SYSLOG : case VIR_LOG_TO_FILE : virBufferAsprintf ( & outputbuf , \"%d:%s:%s\" , virLogOutputs [ i ] -> priority , virLogDestinationTypeToString ( dest ) , virLogOutputs [ i ] -> name ) ;\n break ;\n default : virBufferAsprintf ( & outputbuf , \"%d:%s\" , virLogOutputs [ i ] -> priority , virLogDestinationTypeToString ( dest ) ) ;\n }\n }\n virLogUnlock ( ) ;\n if ( virBufferError ( & outputbuf ) ) {\n virBufferFreeAndReset ( & outputbuf ) ;\n return NULL ;\n }\n return virBufferContentAndReset ( & outputbuf ) ;\n }"}
{"idx": 6291, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( UnloadTest , BrowserCloseInfiniteUnload ) {\n if ( base : : CommandLine : : ForCurrentProcess ( ) -> HasSwitch ( switches : : kSingleProcess ) ) return ;\n LoadUrlAndQuitBrowser ( INFINITE_UNLOAD_HTML , \"infiniteunload\" ) ;\n }"}
{"idx": 6292, "target": 1, "func": "TEST_F ( PrintPreviewUIUnitTest , GetCurrentPrintPreviewStatus ) {\n WebContents * initiator = browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) ;\n ASSERT_TRUE ( initiator ) ;\n printing : : PrintPreviewDialogController * controller = printing : : PrintPreviewDialogController : : GetInstance ( ) ;\n ASSERT_TRUE ( controller ) ;\n printing : : PrintViewManager * print_view_manager = printing : : PrintViewManager : : FromWebContents ( initiator ) ;\n print_view_manager -> PrintPreviewNow ( false ) ;\n WebContents * preview_dialog = controller -> GetOrCreatePreviewDialog ( initiator ) ;\n EXPECT_NE ( initiator , preview_dialog ) ;\n EXPECT_EQ ( 1 , browser ( ) -> tab_strip_model ( ) -> count ( ) ) ;\n EXPECT_TRUE ( IsShowingWebContentsModalDialog ( initiator ) ) ;\n PrintPreviewUI * preview_ui = static_cast < PrintPreviewUI * > ( preview_dialog -> GetWebUI ( ) -> GetController ( ) ) ;\n ASSERT_TRUE ( preview_ui != NULL ) ;\n bool cancel = false ;\n const int32_t kInvalidId = - 5 ;\n preview_ui -> GetCurrentPrintPreviewStatus ( kInvalidId , 0 , & cancel ) ;\n EXPECT_TRUE ( cancel ) ;\n const int kFirstRequestId = 1000 ;\n const int kSecondRequestId = 1001 ;\n const int32_t preview_ui_addr = preview_ui -> GetIDForPrintPreviewUI ( ) ;\n preview_ui -> OnPrintPreviewRequest ( kFirstRequestId ) ;\n cancel = true ;\n preview_ui -> GetCurrentPrintPreviewStatus ( preview_ui_addr , kFirstRequestId , & cancel ) ;\n EXPECT_FALSE ( cancel ) ;\n cancel = false ;\n preview_ui -> GetCurrentPrintPreviewStatus ( preview_ui_addr , kSecondRequestId , & cancel ) ;\n EXPECT_TRUE ( cancel ) ;\n preview_ui -> OnPrintPreviewRequest ( kSecondRequestId ) ;\n cancel = false ;\n preview_ui -> GetCurrentPrintPreviewStatus ( preview_ui_addr , kFirstRequestId , & cancel ) ;\n EXPECT_TRUE ( cancel ) ;\n cancel = true ;\n preview_ui -> GetCurrentPrintPreviewStatus ( preview_ui_addr , kSecondRequestId , & cancel ) ;\n EXPECT_FALSE ( cancel ) ;\n }"}
{"idx": 6293, "target": 0, "func": "int qemuMonitorJSONAttachPCIDiskController ( qemuMonitorPtr mon ATTRIBUTE_UNUSED , const char * bus ATTRIBUTE_UNUSED , virDomainDevicePCIAddress * guestAddr ATTRIBUTE_UNUSED ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"pci_add not suppported in JSON mode\" ) ) ;\n return - 1 ;\n }"}
{"idx": 6294, "target": 0, "func": "int main ( int argc , char * * argv ) {\n unsigned int i ;\n git_extract_argv0_path ( argv [ 0 ] ) ;\n git_setup_gettext ( ) ;\n if ( argc == 2 && ! strcmp ( argv [ 1 ] , \"-h\" ) ) usage ( fast_import_usage ) ;\n setup_git_directory ( ) ;\n reset_pack_idx_option ( & pack_idx_opts ) ;\n git_pack_config ( ) ;\n if ( ! pack_compression_seen && core_compression_seen ) pack_compression_level = core_compression_level ;\n alloc_objects ( object_entry_alloc ) ;\n strbuf_init ( & command_buf , 0 ) ;\n atom_table = xcalloc ( atom_table_sz , sizeof ( struct atom_str * ) ) ;\n branch_table = xcalloc ( branch_table_sz , sizeof ( struct branch * ) ) ;\n avail_tree_table = xcalloc ( avail_tree_table_sz , sizeof ( struct avail_tree_content * ) ) ;\n marks = pool_calloc ( 1 , sizeof ( struct mark_set ) ) ;\n global_argc = argc ;\n global_argv = argv ;\n rc_free = pool_alloc ( cmd_save * sizeof ( * rc_free ) ) ;\n for ( i = 0 ;\n i < ( cmd_save - 1 ) ;\n i ++ ) rc_free [ i ] . next = & rc_free [ i + 1 ] ;\n rc_free [ cmd_save - 1 ] . next = NULL ;\n prepare_packed_git ( ) ;\n start_packfile ( ) ;\n set_die_routine ( die_nicely ) ;\n set_checkpoint_signal ( ) ;\n while ( read_next_command ( ) != EOF ) {\n const char * v ;\n if ( ! strcmp ( \"blob\" , command_buf . buf ) ) parse_new_blob ( ) ;\n else if ( skip_prefix ( command_buf . buf , \"ls \" , & v ) ) parse_ls ( v , NULL ) ;\n else if ( skip_prefix ( command_buf . buf , \"commit \" , & v ) ) parse_new_commit ( v ) ;\n else if ( skip_prefix ( command_buf . buf , \"tag \" , & v ) ) parse_new_tag ( v ) ;\n else if ( skip_prefix ( command_buf . buf , \"reset \" , & v ) ) parse_reset_branch ( v ) ;\n else if ( ! strcmp ( \"checkpoint\" , command_buf . buf ) ) parse_checkpoint ( ) ;\n else if ( ! strcmp ( \"done\" , command_buf . buf ) ) break ;\n else if ( starts_with ( command_buf . buf , \"progress \" ) ) parse_progress ( ) ;\n else if ( skip_prefix ( command_buf . buf , \"feature \" , & v ) ) parse_feature ( v ) ;\n else if ( skip_prefix ( command_buf . buf , \"option git \" , & v ) ) parse_option ( v ) ;\n else if ( starts_with ( command_buf . buf , \"option \" ) ) ;\n else die ( \"Unsupported command: %s\" , command_buf . buf ) ;\n if ( checkpoint_requested ) checkpoint ( ) ;\n }\n if ( ! seen_data_command ) parse_argv ( ) ;\n if ( require_explicit_termination && feof ( stdin ) ) die ( \"stream ends early\" ) ;\n end_packfile ( ) ;\n dump_branches ( ) ;\n dump_tags ( ) ;\n unkeep_all_packs ( ) ;\n dump_marks ( ) ;\n if ( pack_edges ) fclose ( pack_edges ) ;\n if ( show_stats ) {\n uintmax_t total_count = 0 , duplicate_count = 0 ;\n for ( i = 0 ;\n i < ARRAY_SIZE ( object_count_by_type ) ;\n i ++ ) total_count += object_count_by_type [ i ] ;\n for ( i = 0 ;\n i < ARRAY_SIZE ( duplicate_count_by_type ) ;\n i ++ ) duplicate_count += duplicate_count_by_type [ i ] ;\n fprintf ( stderr , \"%s statistics:\\n\" , argv [ 0 ] ) ;\n fprintf ( stderr , \"---------------------------------------------------------------------\\n\" ) ;\n fprintf ( stderr , \"Alloc'd objects: %10\" PRIuMAX \"\\n\" , alloc_count ) ;\n fprintf ( stderr , \"Total objects: %10\" PRIuMAX \" (%10\" PRIuMAX \" duplicates )\\n\" , total_count , duplicate_count ) ;\n fprintf ( stderr , \" blobs : %10\" PRIuMAX \" (%10\" PRIuMAX \" duplicates %10\" PRIuMAX \" deltas of %10\" PRIuMAX \" attempts)\\n\" , object_count_by_type [ OBJ_BLOB ] , duplicate_count_by_type [ OBJ_BLOB ] , delta_count_by_type [ OBJ_BLOB ] , delta_count_attempts_by_type [ OBJ_BLOB ] ) ;\n fprintf ( stderr , \" trees : %10\" PRIuMAX \" (%10\" PRIuMAX \" duplicates %10\" PRIuMAX \" deltas of %10\" PRIuMAX \" attempts)\\n\" , object_count_by_type [ OBJ_TREE ] , duplicate_count_by_type [ OBJ_TREE ] , delta_count_by_type [ OBJ_TREE ] , delta_count_attempts_by_type [ OBJ_TREE ] ) ;\n fprintf ( stderr , \" commits: %10\" PRIuMAX \" (%10\" PRIuMAX \" duplicates %10\" PRIuMAX \" deltas of %10\" PRIuMAX \" attempts)\\n\" , object_count_by_type [ OBJ_COMMIT ] , duplicate_count_by_type [ OBJ_COMMIT ] , delta_count_by_type [ OBJ_COMMIT ] , delta_count_attempts_by_type [ OBJ_COMMIT ] ) ;\n fprintf ( stderr , \" tags : %10\" PRIuMAX \" (%10\" PRIuMAX \" duplicates %10\" PRIuMAX \" deltas of %10\" PRIuMAX \" attempts)\\n\" , object_count_by_type [ OBJ_TAG ] , duplicate_count_by_type [ OBJ_TAG ] , delta_count_by_type [ OBJ_TAG ] , delta_count_attempts_by_type [ OBJ_TAG ] ) ;\n fprintf ( stderr , \"Total branches: %10lu (%10lu loads )\\n\" , branch_count , branch_load_count ) ;\n fprintf ( stderr , \" marks: %10\" PRIuMAX \" (%10\" PRIuMAX \" unique )\\n\" , ( ( ( uintmax_t ) 1 ) << marks -> shift ) * 1024 , marks_set_count ) ;\n fprintf ( stderr , \" atoms: %10u\\n\" , atom_cnt ) ;\n fprintf ( stderr , \"Memory total: %10\" PRIuMAX \" KiB\\n\" , ( total_allocd + alloc_count * sizeof ( struct object_entry ) ) / 1024 ) ;\n fprintf ( stderr , \" pools: %10lu KiB\\n\" , ( unsigned long ) ( total_allocd / 1024 ) ) ;\n fprintf ( stderr , \" objects: %10\" PRIuMAX \" KiB\\n\" , ( alloc_count * sizeof ( struct object_entry ) ) / 1024 ) ;\n fprintf ( stderr , \"---------------------------------------------------------------------\\n\" ) ;\n pack_report ( ) ;\n fprintf ( stderr , \"---------------------------------------------------------------------\\n\" ) ;\n fprintf ( stderr , \"\\n\" ) ;\n }\n return failure ? 1 : 0 ;\n }"}
{"idx": 6295, "target": 0, "func": "void mime_scanner_clear ( MIMEScanner * scanner ) {\n ats_free ( scanner -> m_line ) ;\n _mime_scanner_init ( scanner ) ;\n }"}
{"idx": 6296, "target": 0, "func": "static int dissect_h245_Password ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 1 , 32 , FALSE , NULL ) ;\n return offset ;\n }"}
{"idx": 6297, "target": 0, "func": "static int decode_audio_block ( AC3DecodeContext * s , int blk ) {\n int fbw_channels = s -> fbw_channels ;\n int channel_mode = s -> channel_mode ;\n int i , bnd , seg , ch ;\n int different_transforms ;\n int downmix_output ;\n int cpl_in_use ;\n GetBitContext * gbc = & s -> gbc ;\n uint8_t bit_alloc_stages [ AC3_MAX_CHANNELS ] = {\n 0 }\n ;\n different_transforms = 0 ;\n if ( s -> block_switch_syntax ) {\n for ( ch = 1 ;\n ch <= fbw_channels ;\n ch ++ ) {\n s -> block_switch [ ch ] = get_bits1 ( gbc ) ;\n if ( ch > 1 && s -> block_switch [ ch ] != s -> block_switch [ 1 ] ) different_transforms = 1 ;\n }\n }\n if ( s -> dither_flag_syntax ) {\n for ( ch = 1 ;\n ch <= fbw_channels ;\n ch ++ ) {\n s -> dither_flag [ ch ] = get_bits1 ( gbc ) ;\n }\n }\n i = ! s -> channel_mode ;\n do {\n if ( get_bits1 ( gbc ) ) {\n s -> dynamic_range [ i ] = ( ( dynamic_range_tab [ get_bits ( gbc , 8 ) ] - 1.0 ) * s -> drc_scale ) + 1.0 ;\n }\n else if ( blk == 0 ) {\n s -> dynamic_range [ i ] = 1.0f ;\n }\n }\n while ( i -- ) ;\n if ( s -> eac3 && ( ! blk || get_bits1 ( gbc ) ) ) {\n s -> spx_in_use = get_bits1 ( gbc ) ;\n if ( s -> spx_in_use ) {\n int dst_start_freq , dst_end_freq , src_start_freq , start_subband , end_subband ;\n if ( s -> channel_mode == AC3_CHMODE_MONO ) {\n s -> channel_uses_spx [ 1 ] = 1 ;\n }\n else {\n for ( ch = 1 ;\n ch <= fbw_channels ;\n ch ++ ) s -> channel_uses_spx [ ch ] = get_bits1 ( gbc ) ;\n }\n dst_start_freq = get_bits ( gbc , 2 ) ;\n start_subband = get_bits ( gbc , 3 ) + 2 ;\n if ( start_subband > 7 ) start_subband += start_subband - 7 ;\n end_subband = get_bits ( gbc , 3 ) + 5 ;\n if ( end_subband > 7 ) end_subband += end_subband - 7 ;\n dst_start_freq = dst_start_freq * 12 + 25 ;\n src_start_freq = start_subband * 12 + 25 ;\n dst_end_freq = end_subband * 12 + 25 ;\n if ( start_subband >= end_subband ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"invalid spectral extension \" \"range (%d >= %d)\\n\" , start_subband , end_subband ) ;\n return - 1 ;\n }\n if ( dst_start_freq >= src_start_freq ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"invalid spectral extension \" \"copy start bin (%d >= %d)\\n\" , dst_start_freq , src_start_freq ) ;\n return - 1 ;\n }\n s -> spx_dst_start_freq = dst_start_freq ;\n s -> spx_src_start_freq = src_start_freq ;\n s -> spx_dst_end_freq = dst_end_freq ;\n decode_band_structure ( gbc , blk , s -> eac3 , 0 , start_subband , end_subband , ff_eac3_default_spx_band_struct , & s -> num_spx_bands , s -> spx_band_sizes ) ;\n }\n else {\n for ( ch = 1 ;\n ch <= fbw_channels ;\n ch ++ ) {\n s -> channel_uses_spx [ ch ] = 0 ;\n s -> first_spx_coords [ ch ] = 1 ;\n }\n }\n }\n if ( s -> spx_in_use ) {\n for ( ch = 1 ;\n ch <= fbw_channels ;\n ch ++ ) {\n if ( s -> channel_uses_spx [ ch ] ) {\n if ( s -> first_spx_coords [ ch ] || get_bits1 ( gbc ) ) {\n float spx_blend ;\n int bin , master_spx_coord ;\n s -> first_spx_coords [ ch ] = 0 ;\n spx_blend = get_bits ( gbc , 5 ) * ( 1.0f / 32 ) ;\n master_spx_coord = get_bits ( gbc , 2 ) * 3 ;\n bin = s -> spx_src_start_freq ;\n for ( bnd = 0 ;\n bnd < s -> num_spx_bands ;\n bnd ++ ) {\n int bandsize ;\n int spx_coord_exp , spx_coord_mant ;\n float nratio , sblend , nblend , spx_coord ;\n bandsize = s -> spx_band_sizes [ bnd ] ;\n nratio = ( ( float ) ( ( bin + ( bandsize >> 1 ) ) ) / s -> spx_dst_end_freq ) - spx_blend ;\n nratio = av_clipf ( nratio , 0.0f , 1.0f ) ;\n nblend = sqrtf ( 3.0f * nratio ) ;\n sblend = sqrtf ( 1.0f - nratio ) ;\n bin += bandsize ;\n spx_coord_exp = get_bits ( gbc , 4 ) ;\n spx_coord_mant = get_bits ( gbc , 2 ) ;\n if ( spx_coord_exp == 15 ) spx_coord_mant <<= 1 ;\n else spx_coord_mant += 4 ;\n spx_coord_mant <<= ( 25 - spx_coord_exp - master_spx_coord ) ;\n spx_coord = spx_coord_mant * ( 1.0f / ( 1 << 23 ) ) ;\n s -> spx_noise_blend [ ch ] [ bnd ] = nblend * spx_coord ;\n s -> spx_signal_blend [ ch ] [ bnd ] = sblend * spx_coord ;\n }\n }\n }\n else {\n s -> first_spx_coords [ ch ] = 1 ;\n }\n }\n }\n if ( s -> eac3 ? s -> cpl_strategy_exists [ blk ] : get_bits1 ( gbc ) ) {\n memset ( bit_alloc_stages , 3 , AC3_MAX_CHANNELS ) ;\n if ( ! s -> eac3 ) s -> cpl_in_use [ blk ] = get_bits1 ( gbc ) ;\n if ( s -> cpl_in_use [ blk ] ) {\n int cpl_start_subband , cpl_end_subband ;\n if ( channel_mode < AC3_CHMODE_STEREO ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"coupling not allowed in mono or dual-mono\\n\" ) ;\n return - 1 ;\n }\n if ( s -> eac3 && get_bits1 ( gbc ) ) {\n av_log_missing_feature ( s -> avctx , \"Enhanced coupling\" , 1 ) ;\n return AVERROR_PATCHWELCOME ;\n }\n if ( s -> eac3 && s -> channel_mode == AC3_CHMODE_STEREO ) {\n s -> channel_in_cpl [ 1 ] = 1 ;\n s -> channel_in_cpl [ 2 ] = 1 ;\n }\n else {\n for ( ch = 1 ;\n ch <= fbw_channels ;\n ch ++ ) s -> channel_in_cpl [ ch ] = get_bits1 ( gbc ) ;\n }\n if ( channel_mode == AC3_CHMODE_STEREO ) s -> phase_flags_in_use = get_bits1 ( gbc ) ;\n cpl_start_subband = get_bits ( gbc , 4 ) ;\n cpl_end_subband = s -> spx_in_use ? ( s -> spx_src_start_freq - 37 ) / 12 : get_bits ( gbc , 4 ) + 3 ;\n if ( cpl_start_subband >= cpl_end_subband ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"invalid coupling range (%d >= %d)\\n\" , cpl_start_subband , cpl_end_subband ) ;\n return - 1 ;\n }\n s -> start_freq [ CPL_CH ] = cpl_start_subband * 12 + 37 ;\n s -> end_freq [ CPL_CH ] = cpl_end_subband * 12 + 37 ;\n decode_band_structure ( gbc , blk , s -> eac3 , 0 , cpl_start_subband , cpl_end_subband , ff_eac3_default_cpl_band_struct , & s -> num_cpl_bands , s -> cpl_band_sizes ) ;\n }\n else {\n for ( ch = 1 ;\n ch <= fbw_channels ;\n ch ++ ) {\n s -> channel_in_cpl [ ch ] = 0 ;\n s -> first_cpl_coords [ ch ] = 1 ;\n }\n s -> first_cpl_leak = s -> eac3 ;\n s -> phase_flags_in_use = 0 ;\n }\n }\n else if ( ! s -> eac3 ) {\n if ( ! blk ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"new coupling strategy must \" \"be present in block 0\\n\" ) ;\n return - 1 ;\n }\n else {\n s -> cpl_in_use [ blk ] = s -> cpl_in_use [ blk - 1 ] ;\n }\n }\n cpl_in_use = s -> cpl_in_use [ blk ] ;\n if ( cpl_in_use ) {\n int cpl_coords_exist = 0 ;\n for ( ch = 1 ;\n ch <= fbw_channels ;\n ch ++ ) {\n if ( s -> channel_in_cpl [ ch ] ) {\n if ( ( s -> eac3 && s -> first_cpl_coords [ ch ] ) || get_bits1 ( gbc ) ) {\n int master_cpl_coord , cpl_coord_exp , cpl_coord_mant ;\n s -> first_cpl_coords [ ch ] = 0 ;\n cpl_coords_exist = 1 ;\n master_cpl_coord = 3 * get_bits ( gbc , 2 ) ;\n for ( bnd = 0 ;\n bnd < s -> num_cpl_bands ;\n bnd ++ ) {\n cpl_coord_exp = get_bits ( gbc , 4 ) ;\n cpl_coord_mant = get_bits ( gbc , 4 ) ;\n if ( cpl_coord_exp == 15 ) s -> cpl_coords [ ch ] [ bnd ] = cpl_coord_mant << 22 ;\n else s -> cpl_coords [ ch ] [ bnd ] = ( cpl_coord_mant + 16 ) << 21 ;\n s -> cpl_coords [ ch ] [ bnd ] >>= ( cpl_coord_exp + master_cpl_coord ) ;\n }\n }\n else if ( ! blk ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"new coupling coordinates must \" \"be present in block 0\\n\" ) ;\n return - 1 ;\n }\n }\n else {\n s -> first_cpl_coords [ ch ] = 1 ;\n }\n }\n if ( channel_mode == AC3_CHMODE_STEREO && cpl_coords_exist ) {\n for ( bnd = 0 ;\n bnd < s -> num_cpl_bands ;\n bnd ++ ) {\n s -> phase_flags [ bnd ] = s -> phase_flags_in_use ? get_bits1 ( gbc ) : 0 ;\n }\n }\n }\n if ( channel_mode == AC3_CHMODE_STEREO ) {\n if ( ( s -> eac3 && ! blk ) || get_bits1 ( gbc ) ) {\n s -> num_rematrixing_bands = 4 ;\n if ( cpl_in_use && s -> start_freq [ CPL_CH ] <= 61 ) {\n s -> num_rematrixing_bands -= 1 + ( s -> start_freq [ CPL_CH ] == 37 ) ;\n }\n else if ( s -> spx_in_use && s -> spx_src_start_freq <= 61 ) {\n s -> num_rematrixing_bands -- ;\n }\n for ( bnd = 0 ;\n bnd < s -> num_rematrixing_bands ;\n bnd ++ ) s -> rematrixing_flags [ bnd ] = get_bits1 ( gbc ) ;\n }\n else if ( ! blk ) {\n av_log ( s -> avctx , AV_LOG_WARNING , \"Warning: \" \"new rematrixing strategy not present in block 0\\n\" ) ;\n s -> num_rematrixing_bands = 0 ;\n }\n }\n for ( ch = ! cpl_in_use ;\n ch <= s -> channels ;\n ch ++ ) {\n if ( ! s -> eac3 ) s -> exp_strategy [ blk ] [ ch ] = get_bits ( gbc , 2 - ( ch == s -> lfe_ch ) ) ;\n if ( s -> exp_strategy [ blk ] [ ch ] != EXP_REUSE ) bit_alloc_stages [ ch ] = 3 ;\n }\n for ( ch = 1 ;\n ch <= fbw_channels ;\n ch ++ ) {\n s -> start_freq [ ch ] = 0 ;\n if ( s -> exp_strategy [ blk ] [ ch ] != EXP_REUSE ) {\n int group_size ;\n int prev = s -> end_freq [ ch ] ;\n if ( s -> channel_in_cpl [ ch ] ) s -> end_freq [ ch ] = s -> start_freq [ CPL_CH ] ;\n else if ( s -> channel_uses_spx [ ch ] ) s -> end_freq [ ch ] = s -> spx_src_start_freq ;\n else {\n int bandwidth_code = get_bits ( gbc , 6 ) ;\n if ( bandwidth_code > 60 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"bandwidth code = %d > 60\\n\" , bandwidth_code ) ;\n return - 1 ;\n }\n s -> end_freq [ ch ] = bandwidth_code * 3 + 73 ;\n }\n group_size = 3 << ( s -> exp_strategy [ blk ] [ ch ] - 1 ) ;\n s -> num_exp_groups [ ch ] = ( s -> end_freq [ ch ] + group_size - 4 ) / group_size ;\n if ( blk > 0 && s -> end_freq [ ch ] != prev ) memset ( bit_alloc_stages , 3 , AC3_MAX_CHANNELS ) ;\n }\n }\n if ( cpl_in_use && s -> exp_strategy [ blk ] [ CPL_CH ] != EXP_REUSE ) {\n s -> num_exp_groups [ CPL_CH ] = ( s -> end_freq [ CPL_CH ] - s -> start_freq [ CPL_CH ] ) / ( 3 << ( s -> exp_strategy [ blk ] [ CPL_CH ] - 1 ) ) ;\n }\n for ( ch = ! cpl_in_use ;\n ch <= s -> channels ;\n ch ++ ) {\n if ( s -> exp_strategy [ blk ] [ ch ] != EXP_REUSE ) {\n s -> dexps [ ch ] [ 0 ] = get_bits ( gbc , 4 ) << ! ch ;\n if ( decode_exponents ( gbc , s -> exp_strategy [ blk ] [ ch ] , s -> num_exp_groups [ ch ] , s -> dexps [ ch ] [ 0 ] , & s -> dexps [ ch ] [ s -> start_freq [ ch ] + ! ! ch ] ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"exponent out-of-range\\n\" ) ;\n return - 1 ;\n }\n if ( ch != CPL_CH && ch != s -> lfe_ch ) skip_bits ( gbc , 2 ) ;\n }\n }\n if ( s -> bit_allocation_syntax ) {\n if ( get_bits1 ( gbc ) ) {\n s -> bit_alloc_params . slow_decay = ff_ac3_slow_decay_tab [ get_bits ( gbc , 2 ) ] >> s -> bit_alloc_params . sr_shift ;\n s -> bit_alloc_params . fast_decay = ff_ac3_fast_decay_tab [ get_bits ( gbc , 2 ) ] >> s -> bit_alloc_params . sr_shift ;\n s -> bit_alloc_params . slow_gain = ff_ac3_slow_gain_tab [ get_bits ( gbc , 2 ) ] ;\n s -> bit_alloc_params . db_per_bit = ff_ac3_db_per_bit_tab [ get_bits ( gbc , 2 ) ] ;\n s -> bit_alloc_params . floor = ff_ac3_floor_tab [ get_bits ( gbc , 3 ) ] ;\n for ( ch = ! cpl_in_use ;\n ch <= s -> channels ;\n ch ++ ) bit_alloc_stages [ ch ] = FFMAX ( bit_alloc_stages [ ch ] , 2 ) ;\n }\n else if ( ! blk ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"new bit allocation info must \" \"be present in block 0\\n\" ) ;\n return - 1 ;\n }\n }\n if ( ! s -> eac3 || ! blk ) {\n if ( s -> snr_offset_strategy && get_bits1 ( gbc ) ) {\n int snr = 0 ;\n int csnr ;\n csnr = ( get_bits ( gbc , 6 ) - 15 ) << 4 ;\n for ( i = ch = ! cpl_in_use ;\n ch <= s -> channels ;\n ch ++ ) {\n if ( ch == i || s -> snr_offset_strategy == 2 ) snr = ( csnr + get_bits ( gbc , 4 ) ) << 2 ;\n if ( blk && s -> snr_offset [ ch ] != snr ) {\n bit_alloc_stages [ ch ] = FFMAX ( bit_alloc_stages [ ch ] , 1 ) ;\n }\n s -> snr_offset [ ch ] = snr ;\n if ( ! s -> eac3 ) {\n int prev = s -> fast_gain [ ch ] ;\n s -> fast_gain [ ch ] = ff_ac3_fast_gain_tab [ get_bits ( gbc , 3 ) ] ;\n if ( blk && prev != s -> fast_gain [ ch ] ) bit_alloc_stages [ ch ] = FFMAX ( bit_alloc_stages [ ch ] , 2 ) ;\n }\n }\n }\n else if ( ! s -> eac3 && ! blk ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"new snr offsets must be present in block 0\\n\" ) ;\n return - 1 ;\n }\n }\n if ( s -> fast_gain_syntax && get_bits1 ( gbc ) ) {\n for ( ch = ! cpl_in_use ;\n ch <= s -> channels ;\n ch ++ ) {\n int prev = s -> fast_gain [ ch ] ;\n s -> fast_gain [ ch ] = ff_ac3_fast_gain_tab [ get_bits ( gbc , 3 ) ] ;\n if ( blk && prev != s -> fast_gain [ ch ] ) bit_alloc_stages [ ch ] = FFMAX ( bit_alloc_stages [ ch ] , 2 ) ;\n }\n }\n else if ( s -> eac3 && ! blk ) {\n for ( ch = ! cpl_in_use ;\n ch <= s -> channels ;\n ch ++ ) s -> fast_gain [ ch ] = ff_ac3_fast_gain_tab [ 4 ] ;\n }\n if ( s -> frame_type == EAC3_FRAME_TYPE_INDEPENDENT && get_bits1 ( gbc ) ) {\n skip_bits ( gbc , 10 ) ;\n }\n if ( cpl_in_use ) {\n if ( s -> first_cpl_leak || get_bits1 ( gbc ) ) {\n int fl = get_bits ( gbc , 3 ) ;\n int sl = get_bits ( gbc , 3 ) ;\n if ( blk && ( fl != s -> bit_alloc_params . cpl_fast_leak || sl != s -> bit_alloc_params . cpl_slow_leak ) ) {\n bit_alloc_stages [ CPL_CH ] = FFMAX ( bit_alloc_stages [ CPL_CH ] , 2 ) ;\n }\n s -> bit_alloc_params . cpl_fast_leak = fl ;\n s -> bit_alloc_params . cpl_slow_leak = sl ;\n }\n else if ( ! s -> eac3 && ! blk ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"new coupling leak info must \" \"be present in block 0\\n\" ) ;\n return - 1 ;\n }\n s -> first_cpl_leak = 0 ;\n }\n if ( s -> dba_syntax && get_bits1 ( gbc ) ) {\n for ( ch = ! cpl_in_use ;\n ch <= fbw_channels ;\n ch ++ ) {\n s -> dba_mode [ ch ] = get_bits ( gbc , 2 ) ;\n if ( s -> dba_mode [ ch ] == DBA_RESERVED ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"delta bit allocation strategy reserved\\n\" ) ;\n return - 1 ;\n }\n bit_alloc_stages [ ch ] = FFMAX ( bit_alloc_stages [ ch ] , 2 ) ;\n }\n for ( ch = ! cpl_in_use ;\n ch <= fbw_channels ;\n ch ++ ) {\n if ( s -> dba_mode [ ch ] == DBA_NEW ) {\n s -> dba_nsegs [ ch ] = get_bits ( gbc , 3 ) + 1 ;\n for ( seg = 0 ;\n seg < s -> dba_nsegs [ ch ] ;\n seg ++ ) {\n s -> dba_offsets [ ch ] [ seg ] = get_bits ( gbc , 5 ) ;\n s -> dba_lengths [ ch ] [ seg ] = get_bits ( gbc , 4 ) ;\n s -> dba_values [ ch ] [ seg ] = get_bits ( gbc , 3 ) ;\n }\n bit_alloc_stages [ ch ] = FFMAX ( bit_alloc_stages [ ch ] , 2 ) ;\n }\n }\n }\n else if ( blk == 0 ) {\n for ( ch = 0 ;\n ch <= s -> channels ;\n ch ++ ) {\n s -> dba_mode [ ch ] = DBA_NONE ;\n }\n }\n for ( ch = ! cpl_in_use ;\n ch <= s -> channels ;\n ch ++ ) {\n if ( bit_alloc_stages [ ch ] > 2 ) {\n ff_ac3_bit_alloc_calc_psd ( s -> dexps [ ch ] , s -> start_freq [ ch ] , s -> end_freq [ ch ] , s -> psd [ ch ] , s -> band_psd [ ch ] ) ;\n }\n if ( bit_alloc_stages [ ch ] > 1 ) {\n if ( ff_ac3_bit_alloc_calc_mask ( & s -> bit_alloc_params , s -> band_psd [ ch ] , s -> start_freq [ ch ] , s -> end_freq [ ch ] , s -> fast_gain [ ch ] , ( ch == s -> lfe_ch ) , s -> dba_mode [ ch ] , s -> dba_nsegs [ ch ] , s -> dba_offsets [ ch ] , s -> dba_lengths [ ch ] , s -> dba_values [ ch ] , s -> mask [ ch ] ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"error in bit allocation\\n\" ) ;\n return - 1 ;\n }\n }\n if ( bit_alloc_stages [ ch ] > 0 ) {\n const uint8_t * bap_tab = s -> channel_uses_aht [ ch ] ? ff_eac3_hebap_tab : ff_ac3_bap_tab ;\n s -> ac3dsp . bit_alloc_calc_bap ( s -> mask [ ch ] , s -> psd [ ch ] , s -> start_freq [ ch ] , s -> end_freq [ ch ] , s -> snr_offset [ ch ] , s -> bit_alloc_params . floor , bap_tab , s -> bap [ ch ] ) ;\n }\n }\n if ( s -> skip_syntax && get_bits1 ( gbc ) ) {\n int skipl = get_bits ( gbc , 9 ) ;\n while ( skipl -- ) skip_bits ( gbc , 8 ) ;\n }\n decode_transform_coeffs ( s , blk ) ;\n if ( s -> channel_mode == AC3_CHMODE_STEREO ) do_rematrixing ( s ) ;\n for ( ch = 1 ;\n ch <= s -> channels ;\n ch ++ ) {\n float gain = 1.0 / 4194304.0f ;\n if ( s -> channel_mode == AC3_CHMODE_DUALMONO ) {\n gain *= s -> dynamic_range [ 2 - ch ] ;\n }\n else {\n gain *= s -> dynamic_range [ 0 ] ;\n }\n s -> fmt_conv . int32_to_float_fmul_scalar ( s -> transform_coeffs [ ch ] , s -> fixed_coeffs [ ch ] , gain , 256 ) ;\n }\n if ( s -> spx_in_use && CONFIG_EAC3_DECODER ) {\n ff_eac3_apply_spectral_extension ( s ) ;\n }\n downmix_output = s -> channels != s -> out_channels && ! ( ( s -> output_mode & AC3_OUTPUT_LFEON ) && s -> fbw_channels == s -> out_channels ) ;\n if ( different_transforms ) {\n if ( s -> downmixed ) {\n s -> downmixed = 0 ;\n ac3_upmix_delay ( s ) ;\n }\n do_imdct ( s , s -> channels ) ;\n if ( downmix_output ) {\n s -> ac3dsp . downmix ( s -> outptr , s -> downmix_coeffs , s -> out_channels , s -> fbw_channels , 256 ) ;\n }\n }\n else {\n if ( downmix_output ) {\n s -> ac3dsp . downmix ( s -> xcfptr + 1 , s -> downmix_coeffs , s -> out_channels , s -> fbw_channels , 256 ) ;\n }\n if ( downmix_output && ! s -> downmixed ) {\n s -> downmixed = 1 ;\n s -> ac3dsp . downmix ( s -> dlyptr , s -> downmix_coeffs , s -> out_channels , s -> fbw_channels , 128 ) ;\n }\n do_imdct ( s , s -> out_channels ) ;\n }\n return 0 ;\n }"}
{"idx": 6298, "target": 0, "func": "bool contain_volatile_functions_not_nextval ( Node * clause ) {\n return contain_volatile_functions_not_nextval_walker ( clause , NULL ) ;\n }"}
{"idx": 6299, "target": 0, "func": "static gpgme_error_t gpgsm_verify ( void * engine , gpgme_data_t sig , gpgme_data_t signed_text , gpgme_data_t plaintext ) {\n engine_gpgsm_t gpgsm = engine ;\n gpgme_error_t err ;\n if ( ! gpgsm ) return gpg_error ( GPG_ERR_INV_VALUE ) ;\n gpgsm -> input_cb . data = sig ;\n err = gpgsm_set_fd ( gpgsm , INPUT_FD , map_data_enc ( gpgsm -> input_cb . data ) ) ;\n if ( err ) return err ;\n if ( plaintext ) {\n gpgsm -> output_cb . data = plaintext ;\n err = gpgsm_set_fd ( gpgsm , OUTPUT_FD , 0 ) ;\n gpgsm_clear_fd ( gpgsm , MESSAGE_FD ) ;\n }\n else {\n gpgsm -> message_cb . data = signed_text ;\n err = gpgsm_set_fd ( gpgsm , MESSAGE_FD , 0 ) ;\n gpgsm_clear_fd ( gpgsm , OUTPUT_FD ) ;\n }\n gpgsm -> inline_data = NULL ;\n if ( ! err ) err = start ( gpgsm , \"VERIFY\" ) ;\n return err ;\n }"}
{"idx": 6300, "target": 0, "func": "static int dissect_FORM_CTR ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n proto_tree * subtree ;\n proto_item * item ;\n guint32 level ;\n subtree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_FORM_CTR , & item , \"Form container\" ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_form_level , & level ) ;\n switch ( level ) {\n case 1 : offset = dissect_FORM_1 ( tvb , offset , pinfo , subtree , di , drep ) ;\n break ;\n default : expert_add_info_format ( pinfo , item , & ei_form_level , \"Unknown form info level %d\" , level ) ;\n break ;\n }\n return offset ;\n }"}
{"idx": 6301, "target": 0, "func": "static inline uint64_t replicate64 ( uint64_t a ) {\n # if HAVE_BIGENDIAN a &= 0xFF00FF00FF00FF00ULL ;\n a |= a >> 8 ;\n # else a &= 0x00FF00FF00FF00FFULL ;\n a |= a << 8 ;\n # endif return a ;\n }"}
{"idx": 6302, "target": 0, "func": "static int lzh_read_lens ( struct kwajd_stream * lzh , unsigned int type , unsigned int numsyms , unsigned char * lens ) {\n register unsigned int bit_buffer ;\n register int bits_left ;\n unsigned char * i_ptr , * i_end ;\n unsigned int i , c , sel ;\n int err ;\n RESTORE_BITS ;\n switch ( type ) {\n case 0 : i = numsyms ;\n c = ( i == 16 ) ? 4 : ( i == 32 ) ? 5 : ( i == 64 ) ? 6 : ( i == 256 ) ? 8 : 0 ;\n for ( i = 0 ;\n i < numsyms ;\n i ++ ) lens [ i ] = c ;\n break ;\n case 1 : READ_BITS_SAFE ( c , 4 ) ;\n lens [ 0 ] = c ;\n for ( i = 1 ;\n i < numsyms ;\n i ++ ) {\n READ_BITS_SAFE ( sel , 1 ) ;\n if ( sel == 0 ) lens [ i ] = c ;\n else {\n READ_BITS_SAFE ( sel , 1 ) ;\n if ( sel == 0 ) lens [ i ] = ++ c ;\n else {\n READ_BITS_SAFE ( c , 4 ) ;\n lens [ i ] = c ;\n }\n }\n }\n break ;\n case 2 : READ_BITS_SAFE ( c , 4 ) ;\n lens [ 0 ] = c ;\n for ( i = 1 ;\n i < numsyms ;\n i ++ ) {\n READ_BITS_SAFE ( sel , 2 ) ;\n if ( sel == 3 ) READ_BITS_SAFE ( c , 4 ) ;\n else c += ( char ) sel - 1 ;\n lens [ i ] = c ;\n }\n break ;\n case 3 : for ( i = 0 ;\n i < numsyms ;\n i ++ ) {\n READ_BITS_SAFE ( c , 4 ) ;\n lens [ i ] = c ;\n }\n break ;\n }\n STORE_BITS ;\n return MSPACK_ERR_OK ;\n }"}
{"idx": 6303, "target": 0, "func": "static int show_open_tables ( THD * thd , SHOW_VAR * var , char * buff ) {\n var -> type = SHOW_LONG ;\n var -> value = buff ;\n * ( ( long * ) buff ) = ( long ) cached_open_tables ( ) ;\n return 0 ;\n }"}
{"idx": 6304, "target": 0, "func": "static void dumpustr ( FILE * file , char * utf8_str ) {\n unichar_t * ustr = utf82u_copy ( utf8_str ) , * pt = ustr ;\n do {\n putc ( * pt >> 8 , file ) ;\n putc ( * pt & 0xff , file ) ;\n }\n while ( * pt ++ != '\\0' ) ;\n free ( ustr ) ;\n }"}
{"idx": 6305, "target": 0, "func": "void qemu_clock_warp ( QEMUClock * clock ) {\n int64_t deadline ;\n if ( clock != vm_clock || ! use_icount ) {\n return ;\n }\n icount_warp_rt ( NULL ) ;\n if ( ! all_cpu_threads_idle ( ) || ! qemu_clock_has_timers ( vm_clock ) ) {\n qemu_del_timer ( icount_warp_timer ) ;\n return ;\n }\n if ( qtest_enabled ( ) ) {\n return ;\n }\n vm_clock_warp_start = qemu_get_clock_ns ( rt_clock ) ;\n deadline = qemu_clock_deadline ( vm_clock ) ;\n if ( deadline > 0 ) {\n qemu_mod_timer ( icount_warp_timer , vm_clock_warp_start + deadline ) ;\n }\n else {\n qemu_notify_event ( ) ;\n }\n }"}
{"idx": 6306, "target": 1, "func": "static void cluster_all_databases ( bool verbose , const char * maintenance_db , const char * host , const char * port , const char * username , enum trivalue prompt_password , const char * progname , bool echo , bool quiet ) {\n PGconn * conn ;\n PGresult * result ;\n int i ;\n conn = connectMaintenanceDatabase ( maintenance_db , host , port , username , prompt_password , progname ) ;\n result = executeQuery ( conn , \"SELECT datname FROM pg_database WHERE datallowconn ORDER BY 1;\n\" , progname , echo ) ;\n PQfinish ( conn ) ;\n for ( i = 0 ;\n i < PQntuples ( result ) ;\n i ++ ) {\n char * dbname = PQgetvalue ( result , i , 0 ) ;\n if ( ! quiet ) {\n printf ( _ ( \"%s: clustering database \\\"%s\\\"\\n\" ) , progname , dbname ) ;\n fflush ( stdout ) ;\n }\n cluster_one_database ( dbname , verbose , NULL , host , port , username , prompt_password , progname , echo ) ;\n }\n PQclear ( result ) ;\n }"}
{"idx": 6307, "target": 0, "func": "void mime_field_value_delete_comma_val ( HdrHeap * heap , MIMEHdrImpl * mh , MIMEField * field , int idx ) {\n int len ;\n Str * cell ;\n StrList list ( false ) ;\n HttpCompat : : parse_tok_list ( & list , 0 , field -> m_ptr_value , field -> m_len_value , ',' ) ;\n if ( ( idx < 0 ) || ( idx >= list . count ) ) {\n return ;\n }\n cell = list . get_idx ( idx ) ;\n list . detach ( cell ) ;\n if ( list . count == 0 ) {\n field -> m_ptr_value = nullptr ;\n field -> m_len_value = 0 ;\n }\n else {\n field -> m_ptr_value = mime_field_value_str_from_strlist ( heap , & len , & list ) ;\n field -> m_len_value = len ;\n }\n field -> m_n_v_raw_printable = 0 ;\n if ( field -> is_live ( ) && field -> is_cooked ( ) ) {\n mh -> recompute_cooked_stuff ( field ) ;\n }\n }"}
{"idx": 6308, "target": 0, "func": "static void usb_ohci_exit ( PCIDevice * dev ) {\n OHCIPCIState * ohci = PCI_OHCI ( dev ) ;\n OHCIState * s = & ohci -> state ;\n trace_usb_ohci_exit ( s -> name ) ;\n ohci_bus_stop ( s ) ;\n if ( s -> async_td ) {\n usb_cancel_packet ( & s -> usb_packet ) ;\n s -> async_td = 0 ;\n }\n ohci_stop_endpoints ( s ) ;\n if ( ! ohci -> masterbus ) {\n usb_bus_release ( & s -> bus ) ;\n }\n timer_del ( s -> eof_timer ) ;\n timer_free ( s -> eof_timer ) ;\n }"}
{"idx": 6309, "target": 0, "func": "static void par_list_remove ( TocEntry * te ) {\n te -> par_prev -> par_next = te -> par_next ;\n te -> par_next -> par_prev = te -> par_prev ;\n te -> par_prev = NULL ;\n te -> par_next = NULL ;\n }"}
{"idx": 6310, "target": 0, "func": "static inline bool e1000e_rx_l3_cso_enabled ( E1000ECore * core ) {\n return ! ! ( core -> mac [ RXCSUM ] & E1000_RXCSUM_IPOFLD ) ;\n }"}
{"idx": 6311, "target": 0, "func": "const char * TSMimeHdrFieldValueStringGet ( TSMBuffer bufp , TSMLoc hdr , TSMLoc field , int idx , int * value_len_ptr ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( hdr ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( hdr ) == TS_SUCCESS ) ) ;\n sdk_assert ( sdk_sanity_check_field_handle ( field , hdr ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) value_len_ptr ) == TS_SUCCESS ) ;\n return TSMimeFieldValueGet ( bufp , field , idx , value_len_ptr ) ;\n }"}
{"idx": 6312, "target": 0, "func": "static void convolve_vert ( const uint8_t * src , ptrdiff_t src_stride , uint8_t * dst , ptrdiff_t dst_stride , const InterpKernel * y_filters , int y0_q4 , int y_step_q4 , int w , int h ) {\n int x , y ;\n src -= src_stride * ( SUBPEL_TAPS / 2 - 1 ) ;\n for ( x = 0 ;\n x < w ;\n ++ x ) {\n int y_q4 = y0_q4 ;\n for ( y = 0 ;\n y < h ;\n ++ y ) {\n const unsigned char * src_y = & src [ ( y_q4 >> SUBPEL_BITS ) * src_stride ] ;\n const int16_t * const y_filter = y_filters [ y_q4 & SUBPEL_MASK ] ;\n int k , sum = 0 ;\n for ( k = 0 ;\n k < SUBPEL_TAPS ;\n ++ k ) sum += src_y [ k * src_stride ] * y_filter [ k ] ;\n dst [ y * dst_stride ] = clip_pixel ( ROUND_POWER_OF_TWO ( sum , FILTER_BITS ) ) ;\n y_q4 += y_step_q4 ;\n }\n ++ src ;\n ++ dst ;\n }\n }"}
{"idx": 6313, "target": 1, "func": "static VALUE cState_space_before_set ( VALUE self , VALUE space_before ) {\n unsigned long len ;\n GET_STATE ( self ) ;\n Check_Type ( space_before , T_STRING ) ;\n len = RSTRING_LEN ( space_before ) ;\n if ( len == 0 ) {\n if ( state -> space_before ) {\n ruby_xfree ( state -> space_before ) ;\n state -> space_before = NULL ;\n state -> space_before_len = 0 ;\n }\n }\n else {\n if ( state -> space_before ) ruby_xfree ( state -> space_before ) ;\n state -> space_before = strdup ( RSTRING_PTR ( space_before ) ) ;\n state -> space_before_len = len ;\n }\n return Qnil ;\n }"}
{"idx": 6314, "target": 0, "func": "static int checkHttpTxnServerRespGet ( SocketTest * test , void * data ) {\n TSMBuffer bufp ;\n TSMLoc mloc ;\n TSHttpTxn txnp = ( TSHttpTxn ) data ;\n if ( TSHttpTxnServerRespGet ( txnp , & bufp , & mloc ) != TS_SUCCESS ) {\n test -> test_server_resp_get = false ;\n SDK_RPRINT ( test -> regtest , \"TSHttpTxnServerRespGet\" , \"TestCase1\" , TC_FAIL , \"Unable to get handle to server response\" ) ;\n return TS_EVENT_CONTINUE ;\n }\n if ( ( bufp == reinterpret_cast < TSMBuffer > ( & ( ( HttpSM * ) txnp ) -> t_state . hdr_info . server_response ) ) && ( mloc == reinterpret_cast < TSMLoc > ( ( ( HttpSM * ) txnp ) -> t_state . hdr_info . server_response . m_http ) ) ) {\n test -> test_server_resp_get = true ;\n SDK_RPRINT ( test -> regtest , \"TSHttpTxnServerRespGet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n else {\n test -> test_server_resp_get = false ;\n SDK_RPRINT ( test -> regtest , \"TSHttpTxnServerRespGet\" , \"TestCase1\" , TC_FAIL , \"Value's Mismatch\" ) ;\n }\n return TS_EVENT_CONTINUE ;\n }"}
{"idx": 6315, "target": 0, "func": "u_int sl_if_print ( netdissect_options * ndo , const struct pcap_pkthdr * h , const u_char * p ) {\n register u_int caplen = h -> caplen ;\n register u_int length = h -> len ;\n register const struct ip * ip ;\n if ( caplen < SLIP_HDRLEN || length < SLIP_HDRLEN ) {\n ND_PRINT ( ( ndo , \"%s\" , tstr ) ) ;\n return ( caplen ) ;\n }\n caplen -= SLIP_HDRLEN ;\n length -= SLIP_HDRLEN ;\n ip = ( const struct ip * ) ( p + SLIP_HDRLEN ) ;\n if ( ndo -> ndo_eflag ) sliplink_print ( ndo , p , ip , length ) ;\n if ( caplen < 1 || length < 1 ) {\n ND_PRINT ( ( ndo , \"%s\" , tstr ) ) ;\n return ( caplen + SLIP_HDRLEN ) ;\n }\n switch ( IP_V ( ip ) ) {\n case 4 : ip_print ( ndo , ( const u_char * ) ip , length ) ;\n break ;\n case 6 : ip6_print ( ndo , ( const u_char * ) ip , length ) ;\n break ;\n default : ND_PRINT ( ( ndo , \"ip v%d\" , IP_V ( ip ) ) ) ;\n }\n return ( SLIP_HDRLEN ) ;\n }"}
{"idx": 6316, "target": 0, "func": "void vp9_set_speed_features ( VP9_COMP * cpi ) {\n SPEED_FEATURES * const sf = & cpi -> sf ;\n VP9_COMMON * const cm = & cpi -> common ;\n const VP9EncoderConfig * const oxcf = & cpi -> oxcf ;\n int i ;\n sf -> frame_parameter_update = 1 ;\n sf -> mv . search_method = NSTEP ;\n sf -> recode_loop = ALLOW_RECODE ;\n sf -> mv . subpel_search_method = SUBPEL_TREE ;\n sf -> mv . subpel_iters_per_step = 2 ;\n sf -> mv . subpel_force_stop = 0 ;\n sf -> optimize_coefficients = ! is_lossless_requested ( & cpi -> oxcf ) ;\n sf -> mv . reduce_first_step_size = 0 ;\n sf -> mv . auto_mv_step_size = 0 ;\n sf -> mv . fullpel_search_step_param = 6 ;\n sf -> comp_inter_joint_search_thresh = BLOCK_4X4 ;\n sf -> adaptive_rd_thresh = 0 ;\n sf -> use_lastframe_partitioning = LAST_FRAME_PARTITION_OFF ;\n sf -> tx_size_search_method = USE_FULL_RD ;\n sf -> use_lp32x32fdct = 0 ;\n sf -> adaptive_motion_search = 0 ;\n sf -> adaptive_pred_interp_filter = 0 ;\n sf -> adaptive_mode_search = 0 ;\n sf -> cb_pred_filter_search = 0 ;\n sf -> cb_partition_search = 0 ;\n sf -> motion_field_mode_search = 0 ;\n sf -> alt_ref_search_fp = 0 ;\n sf -> use_quant_fp = 0 ;\n sf -> reference_masking = 0 ;\n sf -> partition_search_type = SEARCH_PARTITION ;\n sf -> less_rectangular_check = 0 ;\n sf -> use_square_partition_only = 0 ;\n sf -> auto_min_max_partition_size = NOT_IN_USE ;\n sf -> max_partition_size = BLOCK_64X64 ;\n sf -> min_partition_size = BLOCK_4X4 ;\n sf -> adjust_partitioning_from_last_frame = 0 ;\n sf -> last_partitioning_redo_frequency = 4 ;\n sf -> constrain_copy_partition = 0 ;\n sf -> disable_split_mask = 0 ;\n sf -> mode_search_skip_flags = 0 ;\n sf -> force_frame_boost = 0 ;\n sf -> max_delta_qindex = 0 ;\n sf -> disable_filter_search_var_thresh = 0 ;\n sf -> adaptive_interp_filter_search = 0 ;\n for ( i = 0 ;\n i < TX_SIZES ;\n i ++ ) {\n sf -> intra_y_mode_mask [ i ] = INTRA_ALL ;\n sf -> intra_uv_mode_mask [ i ] = INTRA_ALL ;\n }\n sf -> use_rd_breakout = 0 ;\n sf -> skip_encode_sb = 0 ;\n sf -> use_uv_intra_rd_estimate = 0 ;\n sf -> allow_skip_recode = 0 ;\n sf -> lpf_pick = LPF_PICK_FROM_FULL_IMAGE ;\n sf -> use_fast_coef_updates = TWO_LOOP ;\n sf -> use_fast_coef_costing = 0 ;\n sf -> mode_skip_start = MAX_MODES ;\n sf -> schedule_mode_search = 0 ;\n sf -> use_nonrd_pick_mode = 0 ;\n for ( i = 0 ;\n i < BLOCK_SIZES ;\n ++ i ) sf -> inter_mode_mask [ i ] = INTER_ALL ;\n sf -> max_intra_bsize = BLOCK_64X64 ;\n sf -> reuse_inter_pred_sby = 0 ;\n sf -> always_this_block_size = BLOCK_16X16 ;\n sf -> search_type_check_frequency = 50 ;\n sf -> encode_breakout_thresh = 0 ;\n sf -> elevate_newmv_thresh = 0 ;\n sf -> recode_tolerance = 25 ;\n sf -> default_interp_filter = SWITCHABLE ;\n sf -> tx_size_search_breakout = 0 ;\n sf -> partition_search_breakout_dist_thr = 0 ;\n sf -> partition_search_breakout_rate_thr = 0 ;\n if ( oxcf -> mode == REALTIME ) set_rt_speed_feature ( cpi , sf , oxcf -> speed , oxcf -> content ) ;\n else if ( oxcf -> mode == GOOD ) set_good_speed_feature ( cpi , cm , sf , oxcf -> speed ) ;\n cpi -> full_search_sad = vp9_full_search_sad ;\n cpi -> diamond_search_sad = oxcf -> mode == BEST ? vp9_full_range_search : vp9_diamond_search_sad ;\n cpi -> refining_search_sad = vp9_refining_search_sad ;\n if ( oxcf -> pass == 1 ) sf -> optimize_coefficients = 0 ;\n if ( oxcf -> pass == 0 ) {\n sf -> recode_loop = DISALLOW_RECODE ;\n sf -> optimize_coefficients = 0 ;\n }\n if ( sf -> mv . subpel_search_method == SUBPEL_TREE ) {\n cpi -> find_fractional_mv_step = vp9_find_best_sub_pixel_tree ;\n }\n else if ( sf -> mv . subpel_search_method == SUBPEL_TREE_PRUNED ) {\n cpi -> find_fractional_mv_step = vp9_find_best_sub_pixel_tree_pruned ;\n }\n cpi -> mb . optimize = sf -> optimize_coefficients == 1 && oxcf -> pass != 1 ;\n if ( sf -> disable_split_mask == DISABLE_ALL_SPLIT ) sf -> adaptive_pred_interp_filter = 0 ;\n if ( ! cpi -> oxcf . frame_periodic_boost ) {\n sf -> max_delta_qindex = 0 ;\n }\n if ( cpi -> encode_breakout && oxcf -> mode == REALTIME && sf -> encode_breakout_thresh > cpi -> encode_breakout ) cpi -> encode_breakout = sf -> encode_breakout_thresh ;\n }"}
{"idx": 6317, "target": 0, "func": "TEST_F ( TransportSecurityPersisterTest , SerializeDataOld ) {\n std : : string output = \"{\n \" \"\\\"NiyD+3J1r6z1wjl2n1ALBu94Zj9OsEAMo0kCN8js0Uk=\\\": {\n\" \"\\\"expiry\\\": 1266815027.983453, \" \"\\\"include_subdomains\\\": false, \" \"\\\"mode\\\": \\\"strict\\\" \" \"}\n\" \"}\n\" ;\n bool dirty ;\n EXPECT_TRUE ( persister_ -> LoadEntries ( output , & dirty ) ) ;\n EXPECT_TRUE ( dirty ) ;\n }"}
{"idx": 6318, "target": 0, "func": "static void prplcb_buddy_typing ( PurpleAccount * account , const char * who , gpointer null ) {\n PurpleConversation * conv ;\n PurpleConvIm * im ;\n int state ;\n if ( ( conv = purple_find_conversation_with_account ( PURPLE_CONV_TYPE_IM , who , account ) ) == NULL ) {\n return ;\n }\n im = PURPLE_CONV_IM ( conv ) ;\n switch ( purple_conv_im_get_typing_state ( im ) ) {\n case PURPLE_TYPING : state = OPT_TYPING ;\n break ;\n case PURPLE_TYPED : state = OPT_THINKING ;\n break ;\n default : state = 0 ;\n }\n imcb_buddy_typing ( purple_ic_by_pa ( account ) , who , state ) ;\n }"}
{"idx": 6319, "target": 0, "func": "static int dissect_s_validator_time_coord_msg_min_mult ( packet_info * pinfo , proto_tree * tree , proto_item * item , tvbuff_t * tvb , int offset , int total_len ) {\n int i , size ;\n proto_tree_add_item ( tree , hf_cip_svalidator_time_coord_msg_min_mult_size , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n size = tvb_get_guint8 ( tvb , offset ) * 2 ;\n if ( total_len < size + 1 ) {\n expert_add_info ( pinfo , item , & ei_mal_svalidator_time_coord_msg_min_mult ) ;\n return total_len ;\n }\n for ( i = 0 ;\n i < size ;\n i += 2 ) {\n proto_tree_add_item ( tree , hf_cip_svalidator_time_coord_msg_min_mult_item , tvb , offset + 1 + i , 2 , ENC_LITTLE_ENDIAN ) ;\n }\n return ( size + 1 ) ;\n }"}
{"idx": 6320, "target": 0, "func": "void sun4m_pic_info ( Monitor * mon , const QDict * qdict ) {\n if ( slavio_intctl ) slavio_pic_info ( mon , slavio_intctl ) ;\n }"}
{"idx": 6321, "target": 0, "func": "static inline int writer_print_string ( WriterContext * wctx , const char * key , const char * val , int flags ) {\n const struct section * section = wctx -> section [ wctx -> level ] ;\n int ret = 0 ;\n if ( ( flags & PRINT_STRING_OPT ) && ! ( wctx -> writer -> flags & WRITER_FLAG_DISPLAY_OPTIONAL_FIELDS ) ) return 0 ;\n if ( section -> show_all_entries || av_dict_get ( section -> entries_to_show , key , NULL , 0 ) ) {\n if ( flags & PRINT_STRING_VALIDATE ) {\n char * key1 = NULL , * val1 = NULL ;\n ret = validate_string ( wctx , & key1 , key ) ;\n if ( ret < 0 ) goto end ;\n ret = validate_string ( wctx , & val1 , val ) ;\n if ( ret < 0 ) goto end ;\n wctx -> writer -> print_string ( wctx , key1 , val1 ) ;\n end : if ( ret < 0 ) {\n av_log ( wctx , AV_LOG_ERROR , \"Invalid key=value string combination %s=%s in section %s\\n\" , key , val , section -> unique_name ) ;\n }\n av_free ( key1 ) ;\n av_free ( val1 ) ;\n }\n else {\n wctx -> writer -> print_string ( wctx , key , val ) ;\n }\n wctx -> nb_item [ wctx -> level ] ++ ;\n }\n return ret ;\n }"}
{"idx": 6322, "target": 1, "func": "int ff_h264_fill_default_ref_list ( H264Context * h ) {\n int i , len ;\n if ( h -> slice_type_nos == AV_PICTURE_TYPE_B ) {\n Picture * sorted [ 32 ] ;\n int cur_poc , list ;\n int lens [ 2 ] ;\n if ( FIELD_PICTURE ) cur_poc = h -> cur_pic_ptr -> field_poc [ h -> picture_structure == PICT_BOTTOM_FIELD ] ;\n else cur_poc = h -> cur_pic_ptr -> poc ;\n for ( list = 0 ;\n list < 2 ;\n list ++ ) {\n len = add_sorted ( sorted , h -> short_ref , h -> short_ref_count , cur_poc , 1 ^ list ) ;\n len += add_sorted ( sorted + len , h -> short_ref , h -> short_ref_count , cur_poc , 0 ^ list ) ;\n assert ( len <= 32 ) ;\n len = build_def_list ( h -> default_ref_list [ list ] , sorted , len , 0 , h -> picture_structure ) ;\n len += build_def_list ( h -> default_ref_list [ list ] + len , h -> long_ref , 16 , 1 , h -> picture_structure ) ;\n assert ( len <= 32 ) ;\n if ( len < h -> ref_count [ list ] ) memset ( & h -> default_ref_list [ list ] [ len ] , 0 , sizeof ( Picture ) * ( h -> ref_count [ list ] - len ) ) ;\n lens [ list ] = len ;\n }\n if ( lens [ 0 ] == lens [ 1 ] && lens [ 1 ] > 1 ) {\n for ( i = 0 ;\n h -> default_ref_list [ 0 ] [ i ] . f . data [ 0 ] == h -> default_ref_list [ 1 ] [ i ] . f . data [ 0 ] && i < lens [ 0 ] ;\n i ++ ) ;\n if ( i == lens [ 0 ] ) FFSWAP ( Picture , h -> default_ref_list [ 1 ] [ 0 ] , h -> default_ref_list [ 1 ] [ 1 ] ) ;\n }\n }\n else {\n len = build_def_list ( h -> default_ref_list [ 0 ] , h -> short_ref , h -> short_ref_count , 0 , h -> picture_structure ) ;\n len += build_def_list ( h -> default_ref_list [ 0 ] + len , h -> long_ref , 16 , 1 , h -> picture_structure ) ;\n assert ( len <= 32 ) ;\n if ( len < h -> ref_count [ 0 ] ) memset ( & h -> default_ref_list [ 0 ] [ len ] , 0 , sizeof ( Picture ) * ( h -> ref_count [ 0 ] - len ) ) ;\n }\n # ifdef TRACE for ( i = 0 ;\n i < h -> ref_count [ 0 ] ;\n i ++ ) {\n tprintf ( h -> avctx , \"List0: %s fn:%d 0x%p\\n\" , ( h -> default_ref_list [ 0 ] [ i ] . long_ref ? \"LT\" : \"ST\" ) , h -> default_ref_list [ 0 ] [ i ] . pic_id , h -> default_ref_list [ 0 ] [ i ] . f . data [ 0 ] ) ;\n }\n if ( h -> slice_type_nos == AV_PICTURE_TYPE_B ) {\n for ( i = 0 ;\n i < h -> ref_count [ 1 ] ;\n i ++ ) {\n tprintf ( h -> avctx , \"List1: %s fn:%d 0x%p\\n\" , ( h -> default_ref_list [ 1 ] [ i ] . long_ref ? \"LT\" : \"ST\" ) , h -> default_ref_list [ 1 ] [ i ] . pic_id , h -> default_ref_list [ 1 ] [ i ] . f . data [ 0 ] ) ;\n }\n }\n # endif return 0 ;\n }"}
{"idx": 6323, "target": 0, "func": "static void set_effective_user ( struct passwd * user_info_arg ) {\n # if ! defined ( __WIN__ ) DBUG_ASSERT ( user_info_arg != 0 ) ;\n if ( setregid ( ( gid_t ) - 1 , user_info_arg -> pw_gid ) == - 1 ) {\n sql_perror ( \"setregid\" ) ;\n unireg_abort ( 1 ) ;\n }\n if ( setreuid ( ( uid_t ) - 1 , user_info_arg -> pw_uid ) == - 1 ) {\n sql_perror ( \"setreuid\" ) ;\n unireg_abort ( 1 ) ;\n }\n allow_coredumps ( ) ;\n # endif }"}
{"idx": 6324, "target": 0, "func": "static void usage ( void ) {\n print_version ( ) ;\n puts ( \"By Monty, for your professional use\" ) ;\n puts ( \"This software comes with NO WARRANTY: see the PUBLIC for details.\\n\" ) ;\n puts ( \"Description, check and repair of MyISAM tables.\" ) ;\n puts ( \"Used without options all tables on the command will be checked for errors\" ) ;\n printf ( \"Usage: %s [OPTIONS] tables[.MYI]\\n\" , my_progname_short ) ;\n printf ( \"\\nGlobal options:\\n\" ) ;\n # ifndef DBUG_OFF printf ( \"\\ -#, --debug=... Output debug log. Often this is 'd:t:o,filename'.\\n\" ) ;\n # endif printf ( \"\\ -H, --HELP Display this help and exit.\\n\\ -?, --help Display this help and exit.\\n\\ -t, --tmpdir=path Path for temporary files. Multiple paths can be\\n\\ specified, separated by \" ) ;\n # if defined ( __WIN__ ) printf ( \"semicolon (;\n)\" ) ;\n # else printf ( \"colon (:)\" ) ;\n # endif printf ( \", they will be used\\n\\ in a round-robin fashion.\\n\\ -s, --silent Only print errors. One can use two -s to make\\n\\ myisamchk very silent.\\n\\ -v, --verbose Print more information. This can be used with\\n\\ --description and --check. Use many -v for more verbosity.\\n\\ -V, --version Print version and exit.\\n\\ -w, --wait Wait if table is locked.\\n\\n\" ) ;\n # ifdef DEBUG puts ( \" --start-check-pos=# Start reading file at given offset.\\n\" ) ;\n # endif puts ( \"Check options (check is the default action for myisamchk):\\n\\ -c, --check Check table for errors.\\n\\ -e, --extend-check Check the table VERY throughly. Only use this in\\n\\ extreme cases as myisamchk should normally be able to\\n\\ find out if the table is ok even without this switch.\\n\\ -F, --fast Check only tables that haven't been closed properly.\\n\\ -C, --check-only-changed\\n\\ Check only tables that have changed since last check.\\n\\ -f, --force Restart with '-r' if there are any errors in the table.\\n\\ States will be updated as with '--update-state'.\\n\\ -i, --information Print statistics information about table that is checked.\\n\\ -m, --medium-check Faster than extend-check, but only finds 99.99% of\\n\\ all errors. Should be good enough for most cases.\\n\\ -U --update-state Mark tables as crashed if you find any errors.\\n\\ -T, --read-only Don't mark table as checked.\\n\" ) ;\n puts ( \"Repair options (When using '-r' or '-o'):\\n\\ -B, --backup Make a backup of the .MYD file as 'filename-time.BAK'.\\n\\ --correct-checksum Correct checksum information for table.\\n\\ -D, --data-file-length=# Max length of data file (when recreating data\\n\\ file when it's full).\\n\\ -e, --extend-check Try to recover every possible row from the data file\\n\\ Normally this will also find a lot of garbage rows;\n\\n\\ Don't use this option if you are not totally desperate.\\n\\ -f, --force Overwrite old temporary files.\\n\\ -k, --keys-used=# Tell MyISAM to update only some specific keys. # is a\\n\\ bit mask of which keys to use. This can be used to\\n\\ get faster inserts.\\n\\ --max-record-length=#\\n\\ Skip rows bigger than this if myisamchk can't allocate\\n\\ memory to hold it.\\n\\ -r, --recover Can fix almost anything except unique keys that aren't\\n\\ unique.\\n\\ -n, --sort-recover Forces recovering with sorting even if the temporary\\n\\ file would be very big.\\n\\ -p, --parallel-recover\\n\\ Uses the same technique as '-r' and '-n', but creates\\n\\ all the keys in parallel, in different threads.\\n\\ -o, --safe-recover Uses old recovery method;\n Slower than '-r' but can\\n\\ handle a couple of cases where '-r' reports that it\\n\\ can't fix the data file.\\n\\ --character-sets-dir=...\\n\\ Directory where character sets are.\\n\\ --set-collation=name\\n\\ Change the collation used by the index.\\n\\ -q, --quick Faster repair by not modifying the data file.\\n\\ One can give a second '-q' to force myisamchk to\\n\\ modify the original datafile in case of duplicate keys.\\n\\ NOTE: Tables where the data file is currupted can't be\\n\\ fixed with this option.\\n\\ -u, --unpack Unpack file packed with myisampack.\\n\\ \" ) ;\n puts ( \"Other actions:\\n\\ -a, --analyze Analyze distribution of keys. Will make some joins in\\n\\ MySQL faster. You can check the calculated distribution\\n\\ by using '--description --verbose table_name'.\\n\\ --stats_method=name Specifies how index statistics collection code should\\n\\ treat NULLs. Possible values of name are \\\"nulls_unequal\\\"\\n\\ (default for 4.1/5.0), \\\"nulls_equal\\\" (emulate 4.0), and \\n\\ \\\"nulls_ignored\\\".\\n\\ -d, --description Prints some information about table.\\n\\ -A, --set-auto-increment[=value]\\n\\ Force auto_increment to start at this or higher value\\n\\ If no value is given, then sets the next auto_increment\\n\\ value to the highest used value for the auto key + 1.\\n\\ -S, --sort-index Sort index blocks. This speeds up 'read-next' in\\n\\ applications.\\n\\ -R, --sort-records=#\\n\\ Sort records according to an index. This makes your\\n\\ data much more localized and may speed up things\\n\\ (It may be VERY slow to do a sort the first time!).\\n\\ -b, --block-search=#\\n\\ Find a record, a block at given offset belongs to.\" ) ;\n print_defaults ( \"my\" , load_default_groups ) ;\n my_print_variables ( my_long_options ) ;\n }"}
{"idx": 6325, "target": 0, "func": "IN_PROC_BROWSER_TEST_P ( SupervisedUserNavigationThrottleNotSupervisedTest , DontBlock ) {\n BlockHost ( kExampleHost ) ;\n GURL blocked_url = embedded_test_server ( ) -> GetURL ( kExampleHost , \"/supervised_user/simple.html\" ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , blocked_url ) ;\n EXPECT_FALSE ( IsInterstitialBeingShown ( browser ( ) ) ) ;\n }"}
{"idx": 6326, "target": 0, "func": "static GstFlowReturn gst_asf_demux_process_language_list ( GstASFDemux * demux , guint8 * data , guint64 size ) {\n guint i ;\n if ( size < 2 ) goto not_enough_data ;\n if ( demux -> languages ) {\n GST_WARNING ( \"More than one LANGUAGE_LIST object in stream\" ) ;\n g_strfreev ( demux -> languages ) ;\n demux -> languages = NULL ;\n demux -> num_languages = 0 ;\n }\n demux -> num_languages = gst_asf_demux_get_uint16 ( & data , & size ) ;\n GST_LOG ( \"%u languages:\" , demux -> num_languages ) ;\n demux -> languages = g_new0 ( gchar * , demux -> num_languages + 1 ) ;\n for ( i = 0 ;\n i < demux -> num_languages ;\n ++ i ) {\n guint8 len , * lang_data = NULL ;\n if ( size < 1 ) goto not_enough_data ;\n len = gst_asf_demux_get_uint8 ( & data , & size ) ;\n if ( gst_asf_demux_get_bytes ( & lang_data , len , & data , & size ) ) {\n gchar * utf8 ;\n utf8 = g_convert ( ( gchar * ) lang_data , len , \"UTF-8\" , \"UTF-16LE\" , NULL , NULL , NULL ) ;\n if ( utf8 && strlen ( utf8 ) >= 5 && ( utf8 [ 2 ] == '-' || utf8 [ 2 ] == '_' ) ) {\n utf8 [ 2 ] = '\\0' ;\n }\n GST_DEBUG ( \"[%u] %s\" , i , GST_STR_NULL ( utf8 ) ) ;\n demux -> languages [ i ] = utf8 ;\n g_free ( lang_data ) ;\n }\n else {\n goto not_enough_data ;\n }\n }\n return GST_FLOW_OK ;\n not_enough_data : {\n GST_WARNING_OBJECT ( demux , \"short read parsing language list object!\" ) ;\n g_free ( demux -> languages ) ;\n demux -> languages = NULL ;\n demux -> num_languages = 0 ;\n return GST_FLOW_OK ;\n }\n }"}
{"idx": 6327, "target": 0, "func": "static void nb_data2 ( int hf , tvbuff_t * tvb , int offset , proto_tree * tree ) {\n proto_tree_add_item ( tree , hf , tvb , offset + NB_DATA2 , 2 , ENC_LITTLE_ENDIAN ) ;\n }"}
{"idx": 6328, "target": 0, "func": "static void build_y_mask ( const loop_filter_info_n * const lfi_n , const MODE_INFO * mi , const int shift_y , LOOP_FILTER_MASK * lfm ) {\n const MB_MODE_INFO * mbmi = & mi -> mbmi ;\n const BLOCK_SIZE block_size = mbmi -> sb_type ;\n const TX_SIZE tx_size_y = mbmi -> tx_size ;\n const int filter_level = get_filter_level ( lfi_n , mbmi ) ;\n uint64_t * const left_y = & lfm -> left_y [ tx_size_y ] ;\n uint64_t * const above_y = & lfm -> above_y [ tx_size_y ] ;\n uint64_t * const int_4x4_y = & lfm -> int_4x4_y ;\n int i ;\n if ( ! filter_level ) {\n return ;\n }\n else {\n const int w = num_8x8_blocks_wide_lookup [ block_size ] ;\n const int h = num_8x8_blocks_high_lookup [ block_size ] ;\n int index = shift_y ;\n for ( i = 0 ;\n i < h ;\n i ++ ) {\n vpx_memset ( & lfm -> lfl_y [ index ] , filter_level , w ) ;\n index += 8 ;\n }\n }\n * above_y |= above_prediction_mask [ block_size ] << shift_y ;\n * left_y |= left_prediction_mask [ block_size ] << shift_y ;\n if ( mbmi -> skip && is_inter_block ( mbmi ) ) return ;\n * above_y |= ( size_mask [ block_size ] & above_64x64_txform_mask [ tx_size_y ] ) << shift_y ;\n * left_y |= ( size_mask [ block_size ] & left_64x64_txform_mask [ tx_size_y ] ) << shift_y ;\n if ( tx_size_y == TX_4X4 ) * int_4x4_y |= ( size_mask [ block_size ] & 0xffffffffffffffff ) << shift_y ;\n }"}
{"idx": 6329, "target": 0, "func": "static int cook_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n COOKContext * q = avctx -> priv_data ;\n float * * samples = NULL ;\n int i , ret ;\n int offset = 0 ;\n int chidx = 0 ;\n if ( buf_size < avctx -> block_align ) return buf_size ;\n if ( q -> discarded_packets >= 2 ) {\n frame -> nb_samples = q -> samples_per_channel ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n samples = ( float * * ) frame -> extended_data ;\n }\n q -> subpacket [ 0 ] . size = avctx -> block_align ;\n for ( i = 1 ;\n i < q -> num_subpackets ;\n i ++ ) {\n q -> subpacket [ i ] . size = 2 * buf [ avctx -> block_align - q -> num_subpackets + i ] ;\n q -> subpacket [ 0 ] . size -= q -> subpacket [ i ] . size + 1 ;\n if ( q -> subpacket [ 0 ] . size < 0 ) {\n av_log ( avctx , AV_LOG_DEBUG , \"frame subpacket size total > avctx->block_align!\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n for ( i = 0 ;\n i < q -> num_subpackets ;\n i ++ ) {\n q -> subpacket [ i ] . bits_per_subpacket = ( q -> subpacket [ i ] . size * 8 ) >> q -> subpacket [ i ] . bits_per_subpdiv ;\n q -> subpacket [ i ] . ch_idx = chidx ;\n av_log ( avctx , AV_LOG_DEBUG , \"subpacket[%i] size %i js %i %i block_align %i\\n\" , i , q -> subpacket [ i ] . size , q -> subpacket [ i ] . joint_stereo , offset , avctx -> block_align ) ;\n if ( ( ret = decode_subpacket ( q , & q -> subpacket [ i ] , buf + offset , samples ) ) < 0 ) return ret ;\n offset += q -> subpacket [ i ] . size ;\n chidx += q -> subpacket [ i ] . num_channels ;\n av_log ( avctx , AV_LOG_DEBUG , \"subpacket[%i] %i %i\\n\" , i , q -> subpacket [ i ] . size * 8 , get_bits_count ( & q -> gb ) ) ;\n }\n if ( q -> discarded_packets < 2 ) {\n q -> discarded_packets ++ ;\n * got_frame_ptr = 0 ;\n return avctx -> block_align ;\n }\n * got_frame_ptr = 1 ;\n return avctx -> block_align ;\n }"}
{"idx": 6330, "target": 1, "func": "static int dissect_usb_ms_bulk ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * parent_tree , void * data ) {\n usb_conv_info_t * usb_conv_info ;\n usb_ms_conv_info_t * usb_ms_conv_info ;\n proto_tree * tree ;\n proto_item * ti ;\n guint32 signature = 0 ;\n int offset = 0 ;\n gboolean is_request ;\n itl_nexus_t * itl ;\n itlq_nexus_t * itlq ;\n if ( data == NULL ) return 0 ;\n usb_conv_info = ( usb_conv_info_t * ) data ;\n usb_ms_conv_info = ( usb_ms_conv_info_t * ) usb_conv_info -> class_data ;\n if ( ! usb_ms_conv_info ) {\n usb_ms_conv_info = wmem_new ( wmem_file_scope ( ) , usb_ms_conv_info_t ) ;\n usb_ms_conv_info -> itl = wmem_tree_new ( wmem_file_scope ( ) ) ;\n usb_ms_conv_info -> itlq = wmem_tree_new ( wmem_file_scope ( ) ) ;\n usb_conv_info -> class_data = usb_ms_conv_info ;\n }\n is_request = ( pinfo -> srcport == NO_ENDPOINT ) ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"USBMS\" ) ;\n col_clear ( pinfo -> cinfo , COL_INFO ) ;\n ti = proto_tree_add_protocol_format ( parent_tree , proto_usb_ms , tvb , 0 , - 1 , \"USB Mass Storage\" ) ;\n tree = proto_item_add_subtree ( ti , ett_usb_ms ) ;\n signature = tvb_get_letohl ( tvb , offset ) ;\n if ( is_request && ( signature == 0x43425355 ) && ( tvb_reported_length ( tvb ) == 31 ) ) {\n tvbuff_t * cdb_tvb ;\n int cdbrlen , cdblen ;\n guint8 lun , flags ;\n guint32 datalen ;\n proto_tree_add_item ( tree , hf_usb_ms_dCBWSignature , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_usb_ms_dCBWTag , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_usb_ms_dCBWDataTransferLength , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n datalen = tvb_get_letohl ( tvb , offset ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_usb_ms_dCBWFlags , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n flags = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_usb_ms_dCBWTarget , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_usb_ms_dCBWLUN , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n lun = tvb_get_guint8 ( tvb , offset ) & 0x0f ;\n offset += 1 ;\n itl = ( itl_nexus_t * ) wmem_tree_lookup32 ( usb_ms_conv_info -> itl , lun ) ;\n if ( ! itl ) {\n itl = wmem_new ( wmem_file_scope ( ) , itl_nexus_t ) ;\n itl -> cmdset = 0xff ;\n itl -> conversation = NULL ;\n wmem_tree_insert32 ( usb_ms_conv_info -> itl , lun , itl ) ;\n }\n itlq = ( itlq_nexus_t * ) wmem_tree_lookup32 ( usb_ms_conv_info -> itlq , pinfo -> num ) ;\n if ( ! itlq ) {\n itlq = wmem_new ( wmem_file_scope ( ) , itlq_nexus_t ) ;\n itlq -> lun = lun ;\n itlq -> scsi_opcode = 0xffff ;\n itlq -> task_flags = 0 ;\n if ( datalen ) {\n if ( flags & 0x80 ) {\n itlq -> task_flags |= SCSI_DATA_READ ;\n }\n else {\n itlq -> task_flags |= SCSI_DATA_WRITE ;\n }\n }\n itlq -> data_length = datalen ;\n itlq -> bidir_data_length = 0 ;\n itlq -> fc_time = pinfo -> abs_ts ;\n itlq -> first_exchange_frame = pinfo -> num ;\n itlq -> last_exchange_frame = 0 ;\n itlq -> flags = 0 ;\n itlq -> alloc_len = 0 ;\n itlq -> extra_data = NULL ;\n wmem_tree_insert32 ( usb_ms_conv_info -> itlq , pinfo -> num , itlq ) ;\n }\n proto_tree_add_item ( tree , hf_usb_ms_dCBWCBLength , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n cdbrlen = tvb_get_guint8 ( tvb , offset ) & 0x1f ;\n offset += 1 ;\n cdblen = cdbrlen ;\n if ( cdblen > tvb_captured_length_remaining ( tvb , offset ) ) {\n cdblen = tvb_captured_length_remaining ( tvb , offset ) ;\n }\n if ( cdblen ) {\n cdb_tvb = tvb_new_subset ( tvb , offset , cdblen , cdbrlen ) ;\n dissect_scsi_cdb ( cdb_tvb , pinfo , parent_tree , SCSI_DEV_UNKNOWN , itlq , itl ) ;\n }\n return tvb_captured_length ( tvb ) ;\n }\n if ( ( ! is_request ) && ( signature == 0x53425355 ) && ( tvb_reported_length ( tvb ) == 13 ) ) {\n guint8 status ;\n proto_tree_add_item ( tree , hf_usb_ms_dCSWSignature , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_usb_ms_dCBWTag , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_usb_ms_dCSWDataResidue , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_usb_ms_dCSWStatus , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n status = tvb_get_guint8 ( tvb , offset ) ;\n itlq = ( itlq_nexus_t * ) wmem_tree_lookup32_le ( usb_ms_conv_info -> itlq , pinfo -> num ) ;\n if ( ! itlq ) {\n return tvb_captured_length ( tvb ) ;\n }\n itlq -> last_exchange_frame = pinfo -> num ;\n itl = ( itl_nexus_t * ) wmem_tree_lookup32 ( usb_ms_conv_info -> itl , itlq -> lun ) ;\n if ( ! itl ) {\n return tvb_captured_length ( tvb ) ;\n }\n if ( ! status ) {\n dissect_scsi_rsp ( tvb , pinfo , parent_tree , itlq , itl , 0 ) ;\n }\n else {\n dissect_scsi_rsp ( tvb , pinfo , parent_tree , itlq , itl , 0x02 ) ;\n }\n return tvb_captured_length ( tvb ) ;\n }\n itlq = ( itlq_nexus_t * ) wmem_tree_lookup32_le ( usb_ms_conv_info -> itlq , pinfo -> num ) ;\n if ( ! itlq ) {\n return tvb_captured_length ( tvb ) ;\n }\n itl = ( itl_nexus_t * ) wmem_tree_lookup32 ( usb_ms_conv_info -> itl , itlq -> lun ) ;\n if ( ! itl ) {\n return tvb_captured_length ( tvb ) ;\n }\n dissect_scsi_payload ( tvb , pinfo , parent_tree , is_request , itlq , itl , 0 ) ;\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 6331, "target": 0, "func": "static int parse_streaminfo ( FLACContext * s , const uint8_t * buf , int buf_size ) {\n int metadata_type , metadata_size , ret ;\n if ( buf_size < FLAC_STREAMINFO_SIZE + 8 ) {\n return 0 ;\n }\n avpriv_flac_parse_block_header ( & buf [ 4 ] , NULL , & metadata_type , & metadata_size ) ;\n if ( metadata_type != FLAC_METADATA_TYPE_STREAMINFO || metadata_size != FLAC_STREAMINFO_SIZE ) {\n return AVERROR_INVALIDDATA ;\n }\n avpriv_flac_parse_streaminfo ( s -> avctx , ( FLACStreaminfo * ) s , & buf [ 8 ] ) ;\n ret = allocate_buffers ( s ) ;\n if ( ret < 0 ) return ret ;\n flac_set_bps ( s ) ;\n ff_flacdsp_init ( & s -> dsp , s -> avctx -> sample_fmt , s -> bps ) ;\n s -> got_streaminfo = 1 ;\n return 0 ;\n }"}
{"idx": 6332, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( SitePerProcessInteractiveBrowserTest , DocumentHasFocus ) {\n GURL main_url ( embedded_test_server ( ) -> GetURL ( \"a.com\" , \"/cross_site_iframe_factory.html?a(b(c),d)\" ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , main_url ) ;\n content : : WebContents * web_contents = browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) ;\n content : : RenderFrameHost * main_frame = web_contents -> GetMainFrame ( ) ;\n content : : RenderFrameHost * child1 = ChildFrameAt ( main_frame , 0 ) ;\n ASSERT_NE ( nullptr , child1 ) ;\n content : : RenderFrameHost * child2 = ChildFrameAt ( main_frame , 1 ) ;\n ASSERT_NE ( nullptr , child2 ) ;\n content : : RenderFrameHost * grandchild = ChildFrameAt ( child1 , 0 ) ;\n ASSERT_NE ( nullptr , grandchild ) ;\n EXPECT_NE ( main_frame -> GetSiteInstance ( ) , child1 -> GetSiteInstance ( ) ) ;\n EXPECT_NE ( main_frame -> GetSiteInstance ( ) , child2 -> GetSiteInstance ( ) ) ;\n EXPECT_NE ( child1 -> GetSiteInstance ( ) , grandchild -> GetSiteInstance ( ) ) ;\n auto document_has_focus = [ ] ( content : : RenderFrameHost * rfh ) -> bool {\n bool has_focus = false ;\n EXPECT_TRUE ( ExecuteScriptAndExtractBool ( rfh , \"window.domAutomationController.send(document.hasFocus())\" , & has_focus ) ) ;\n return has_focus ;\n }\n ;\n EXPECT_EQ ( main_frame , web_contents -> GetFocusedFrame ( ) ) ;\n EXPECT_TRUE ( document_has_focus ( main_frame ) ) ;\n EXPECT_FALSE ( document_has_focus ( child1 ) ) ;\n EXPECT_FALSE ( document_has_focus ( grandchild ) ) ;\n EXPECT_FALSE ( document_has_focus ( child2 ) ) ;\n EXPECT_TRUE ( ExecuteScript ( child1 , \"window.focus();\n\" ) ) ;\n EXPECT_EQ ( child1 , web_contents -> GetFocusedFrame ( ) ) ;\n EXPECT_TRUE ( document_has_focus ( main_frame ) ) ;\n EXPECT_TRUE ( document_has_focus ( child1 ) ) ;\n EXPECT_FALSE ( document_has_focus ( grandchild ) ) ;\n EXPECT_FALSE ( document_has_focus ( child2 ) ) ;\n EXPECT_TRUE ( ExecuteScript ( grandchild , \"window.focus();\n\" ) ) ;\n EXPECT_EQ ( grandchild , web_contents -> GetFocusedFrame ( ) ) ;\n EXPECT_TRUE ( document_has_focus ( main_frame ) ) ;\n EXPECT_TRUE ( document_has_focus ( child1 ) ) ;\n EXPECT_TRUE ( document_has_focus ( grandchild ) ) ;\n EXPECT_FALSE ( document_has_focus ( child2 ) ) ;\n EXPECT_TRUE ( ExecuteScript ( child2 , \"window.focus();\n\" ) ) ;\n EXPECT_EQ ( child2 , web_contents -> GetFocusedFrame ( ) ) ;\n EXPECT_TRUE ( document_has_focus ( main_frame ) ) ;\n EXPECT_FALSE ( document_has_focus ( child1 ) ) ;\n EXPECT_FALSE ( document_has_focus ( grandchild ) ) ;\n EXPECT_TRUE ( document_has_focus ( child2 ) ) ;\n }"}
{"idx": 6333, "target": 0, "func": "static unsigned long write_reuse_object ( struct sha1file * f , struct object_entry * entry , unsigned long limit , int usable_delta ) {\n struct packed_git * p = entry -> in_pack ;\n struct pack_window * w_curs = NULL ;\n struct revindex_entry * revidx ;\n off_t offset ;\n enum object_type type = entry -> type ;\n unsigned long datalen ;\n unsigned char header [ 10 ] , dheader [ 10 ] ;\n unsigned hdrlen ;\n if ( entry -> delta ) type = ( allow_ofs_delta && entry -> delta -> idx . offset ) ? OBJ_OFS_DELTA : OBJ_REF_DELTA ;\n hdrlen = encode_in_pack_object_header ( type , entry -> size , header ) ;\n offset = entry -> in_pack_offset ;\n revidx = find_pack_revindex ( p , offset ) ;\n datalen = revidx [ 1 ] . offset - offset ;\n if ( ! pack_to_stdout && p -> index_version > 1 && check_pack_crc ( p , & w_curs , offset , datalen , revidx -> nr ) ) {\n error ( \"bad packed object CRC for %s\" , sha1_to_hex ( entry -> idx . sha1 ) ) ;\n unuse_pack ( & w_curs ) ;\n return write_no_reuse_object ( f , entry , limit , usable_delta ) ;\n }\n offset += entry -> in_pack_header_size ;\n datalen -= entry -> in_pack_header_size ;\n if ( ! pack_to_stdout && p -> index_version == 1 && check_pack_inflate ( p , & w_curs , offset , datalen , entry -> size ) ) {\n error ( \"corrupt packed object for %s\" , sha1_to_hex ( entry -> idx . sha1 ) ) ;\n unuse_pack ( & w_curs ) ;\n return write_no_reuse_object ( f , entry , limit , usable_delta ) ;\n }\n if ( type == OBJ_OFS_DELTA ) {\n off_t ofs = entry -> idx . offset - entry -> delta -> idx . offset ;\n unsigned pos = sizeof ( dheader ) - 1 ;\n dheader [ pos ] = ofs & 127 ;\n while ( ofs >>= 7 ) dheader [ -- pos ] = 128 | ( -- ofs & 127 ) ;\n if ( limit && hdrlen + sizeof ( dheader ) - pos + datalen + 20 >= limit ) {\n unuse_pack ( & w_curs ) ;\n return 0 ;\n }\n sha1write ( f , header , hdrlen ) ;\n sha1write ( f , dheader + pos , sizeof ( dheader ) - pos ) ;\n hdrlen += sizeof ( dheader ) - pos ;\n reused_delta ++ ;\n }\n else if ( type == OBJ_REF_DELTA ) {\n if ( limit && hdrlen + 20 + datalen + 20 >= limit ) {\n unuse_pack ( & w_curs ) ;\n return 0 ;\n }\n sha1write ( f , header , hdrlen ) ;\n sha1write ( f , entry -> delta -> idx . sha1 , 20 ) ;\n hdrlen += 20 ;\n reused_delta ++ ;\n }\n else {\n if ( limit && hdrlen + datalen + 20 >= limit ) {\n unuse_pack ( & w_curs ) ;\n return 0 ;\n }\n sha1write ( f , header , hdrlen ) ;\n }\n copy_pack_data ( f , p , & w_curs , offset , datalen ) ;\n unuse_pack ( & w_curs ) ;\n reused ++ ;\n return hdrlen + datalen ;\n }"}
{"idx": 6334, "target": 0, "func": "static int dissect_q931_tpkt ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n dissect_q931_tpkt_heur ( tvb , pinfo , tree , NULL ) ;\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 6335, "target": 0, "func": "extern int name ( int ) __THROW __exctype ( isalnum ) ;\n __exctype ( isalpha ) ;\n __exctype ( iscntrl ) ;\n __exctype ( isdigit ) ;\n __exctype ( islower ) ;\n __exctype ( isgraph ) ;\n __exctype ( isprint ) ;\n __exctype ( ispunct ) ;\n __exctype ( isspace ) ;\n __exctype ( isupper )"}
{"idx": 6336, "target": 0, "func": "static int rv34_decode_cbp ( GetBitContext * gb , RV34VLC * vlc , int table ) {\n int pattern , code , cbp = 0 ;\n int ones ;\n static const int cbp_masks [ 3 ] = {\n 0x100000 , 0x010000 , 0x110000 }\n ;\n static const int shifts [ 4 ] = {\n 0 , 2 , 8 , 10 }\n ;\n const int * curshift = shifts ;\n int i , t , mask ;\n code = get_vlc2 ( gb , vlc -> cbppattern [ table ] . table , 9 , 2 ) ;\n pattern = code & 0xF ;\n code >>= 4 ;\n ones = rv34_count_ones [ pattern ] ;\n for ( mask = 8 ;\n mask ;\n mask >>= 1 , curshift ++ ) {\n if ( pattern & mask ) cbp |= get_vlc2 ( gb , vlc -> cbp [ table ] [ ones ] . table , vlc -> cbp [ table ] [ ones ] . bits , 1 ) << curshift [ 0 ] ;\n }\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n t = ( modulo_three_table [ code ] >> ( 6 - 2 * i ) ) & 3 ;\n if ( t == 1 ) cbp |= cbp_masks [ get_bits1 ( gb ) ] << i ;\n if ( t == 2 ) cbp |= cbp_masks [ 2 ] << i ;\n }\n return cbp ;\n }"}
{"idx": 6337, "target": 0, "func": "static void output_plane ( const Plane * plane , int buf_sel , uint8_t * dst , int dst_pitch , int dst_height ) {\n int x , y ;\n const uint8_t * src = plane -> pixels [ buf_sel ] ;\n uint32_t pitch = plane -> pitch ;\n dst_height = FFMIN ( dst_height , plane -> height ) ;\n for ( y = 0 ;\n y < dst_height ;\n y ++ ) {\n for ( x = 0 ;\n x < plane -> width >> 2 ;\n x ++ ) {\n AV_WN32A ( dst , ( AV_RN32A ( src ) & 0x7F7F7F7F ) << 1 ) ;\n src += 4 ;\n dst += 4 ;\n }\n for ( x <<= 2 ;\n x < plane -> width ;\n x ++ ) * dst ++ = * src ++ << 1 ;\n src += pitch - plane -> width ;\n dst += dst_pitch - plane -> width ;\n }\n }"}
{"idx": 6338, "target": 0, "func": "static char * default_opaque_binary_attr ( tvbuff_t * tvb , guint32 offset , guint8 token _U_ , guint8 codepage _U_ , guint32 * length ) {\n guint32 data_len = tvb_get_guintvar ( tvb , offset , length ) ;\n char * str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"(%d bytes of opaque data)\" , data_len ) ;\n * length += data_len ;\n return str ;\n }"}
{"idx": 6339, "target": 0, "func": "static int remoteStreamHandleAbort ( struct qemud_client * client , struct qemud_client_stream * stream , struct qemud_client_message * msg ) {\n remote_error rerr ;\n VIR_DEBUG ( \"stream=%p proc=%d serial=%d\" , stream , msg -> hdr . proc , msg -> hdr . serial ) ;\n memset ( & rerr , 0 , sizeof rerr ) ;\n stream -> closed = 1 ;\n virStreamEventRemoveCallback ( stream -> st ) ;\n virStreamAbort ( stream -> st ) ;\n if ( msg -> hdr . status == REMOTE_ERROR ) remoteDispatchFormatError ( & rerr , \"%s\" , _ ( \"stream aborted at client request\" ) ) ;\n else {\n VIR_WARN ( \"unexpected stream status %d\" , msg -> hdr . status ) ;\n remoteDispatchFormatError ( & rerr , _ ( \"stream aborted with unexpected status %d\" ) , msg -> hdr . status ) ;\n }\n return remoteSerializeReplyError ( client , & rerr , & msg -> hdr ) ;\n }"}
{"idx": 6340, "target": 0, "func": "sf_count_t psf_fwrite ( const void * ptr , sf_count_t bytes , sf_count_t items , SF_PRIVATE * psf ) {\n sf_count_t total = 0 ;\n ssize_t count ;\n if ( bytes == 0 || items == 0 ) return 0 ;\n if ( psf -> virtual_io ) return psf -> vio . write ( ptr , bytes * items , psf -> vio_user_data ) / bytes ;\n items *= bytes ;\n if ( items <= 0 ) return 0 ;\n while ( items > 0 ) {\n count = ( items > SENSIBLE_SIZE ) ? SENSIBLE_SIZE : items ;\n count = write ( psf -> file . filedes , ( ( const char * ) ptr ) + total , count ) ;\n if ( count == - 1 ) {\n if ( errno == EINTR ) continue ;\n psf_log_syserr ( psf , errno ) ;\n break ;\n }\n ;\n if ( count == 0 ) break ;\n total += count ;\n items -= count ;\n }\n ;\n if ( psf -> is_pipe ) psf -> pipeoffset += total ;\n return total / bytes ;\n }"}
{"idx": 6341, "target": 0, "func": "static int _tiffDummyMapProc ( thandle_t fd , void * * pbase , toff_t * psize ) {\n ( void ) fd ;\n ( void ) pbase ;\n ( void ) psize ;\n return ( 0 ) ;\n }"}
{"idx": 6342, "target": 0, "func": "static void dictfree ( struct pskeydict * dict ) {\n int i ;\n for ( i = 0 ;\n i < dict -> cnt ;\n ++ i ) {\n if ( dict -> entries [ i ] . type == ps_string || dict -> entries [ i ] . type == ps_instr || dict -> entries [ i ] . type == ps_lit ) free ( dict -> entries [ i ] . u . str ) ;\n else if ( dict -> entries [ i ] . type == ps_array || dict -> entries [ i ] . type == ps_dict ) dictfree ( & dict -> entries [ i ] . u . dict ) ;\n }\n }"}
{"idx": 6343, "target": 0, "func": "static void version ( const char * name ) {\n printf ( \"%s version 0.0.1\\n\" \"Written by Anthony Liguori.\\n\" \"\\n\" \"Copyright (C) 2006 Anthony Liguori <anthony@codemonkey.ws>.\\n\" \"This is free software;\n see the source for copying conditions. There is NO\\n\" \"warranty;\n not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\\n\" , name ) ;\n }"}
{"idx": 6344, "target": 0, "func": "static int proc_claim_port ( struct usb_dev_state * ps , void __user * arg ) {\n unsigned portnum ;\n int rc ;\n if ( get_user ( portnum , ( unsigned __user * ) arg ) ) return - EFAULT ;\n rc = usb_hub_claim_port ( ps -> dev , portnum , ps ) ;\n if ( rc == 0 ) snoop ( & ps -> dev -> dev , \"port %d claimed by process %d: %s\\n\" , portnum , task_pid_nr ( current ) , current -> comm ) ;\n return rc ;\n }"}
{"idx": 6345, "target": 0, "func": "static int32_t sumUpStates ( UCMStates * states ) {\n int32_t entry , sum , state , cell , count ;\n UBool allStatesReady ;\n allStatesReady = FALSE ;\n for ( count = states -> countStates ;\n ! allStatesReady && count >= 0 ;\n -- count ) {\n allStatesReady = TRUE ;\n for ( state = states -> countStates - 1 ;\n state >= 0 ;\n -- state ) {\n if ( ! ( states -> stateFlags [ state ] & MBCS_STATE_FLAG_READY ) ) {\n allStatesReady = FALSE ;\n sum = 0 ;\n for ( cell = 0 ;\n cell < 256 ;\n ++ cell ) {\n entry = states -> stateTable [ state ] [ cell ] ;\n if ( MBCS_ENTRY_IS_FINAL ( entry ) ) {\n switch ( MBCS_ENTRY_FINAL_ACTION ( entry ) ) {\n case MBCS_STATE_VALID_16 : states -> stateTable [ state ] [ cell ] = MBCS_ENTRY_FINAL_SET_VALUE ( entry , sum ) ;\n sum += 1 ;\n break ;\n case MBCS_STATE_VALID_16_PAIR : states -> stateTable [ state ] [ cell ] = MBCS_ENTRY_FINAL_SET_VALUE ( entry , sum ) ;\n sum += 2 ;\n break ;\n default : break ;\n }\n }\n }\n for ( cell = 0 ;\n cell < 256 ;\n ++ cell ) {\n entry = states -> stateTable [ state ] [ cell ] ;\n if ( MBCS_ENTRY_IS_TRANSITION ( entry ) ) {\n if ( states -> stateFlags [ MBCS_ENTRY_TRANSITION_STATE ( entry ) ] & MBCS_STATE_FLAG_READY ) {\n states -> stateTable [ state ] [ cell ] = MBCS_ENTRY_TRANSITION_SET_OFFSET ( entry , sum ) ;\n sum += states -> stateOffsetSum [ MBCS_ENTRY_TRANSITION_STATE ( entry ) ] ;\n }\n else {\n sum = - 1 ;\n break ;\n }\n }\n }\n if ( sum != - 1 ) {\n states -> stateOffsetSum [ state ] = sum ;\n states -> stateFlags [ state ] |= MBCS_STATE_FLAG_READY ;\n }\n }\n }\n }\n if ( ! allStatesReady ) {\n fprintf ( stderr , \"ucm error: the state table contains loops\\n\" ) ;\n exit ( U_INVALID_TABLE_FORMAT ) ;\n }\n sum = states -> stateOffsetSum [ 0 ] ;\n for ( state = 1 ;\n state < states -> countStates ;\n ++ state ) {\n if ( ( states -> stateFlags [ state ] & 0xf ) == MBCS_STATE_FLAG_DIRECT ) {\n int32_t sum2 = sum ;\n sum += states -> stateOffsetSum [ state ] ;\n for ( cell = 0 ;\n cell < 256 ;\n ++ cell ) {\n entry = states -> stateTable [ state ] [ cell ] ;\n if ( MBCS_ENTRY_IS_TRANSITION ( entry ) ) {\n states -> stateTable [ state ] [ cell ] = MBCS_ENTRY_TRANSITION_ADD_OFFSET ( entry , sum2 ) ;\n }\n }\n }\n }\n return states -> countToUCodeUnits = ( sum + 1 ) & ~ 1 ;\n }"}
{"idx": 6346, "target": 0, "func": "static int32_t u_sprintf_write ( void * context , const UChar * str , int32_t count ) {\n u_localized_print_string * output = ( u_localized_print_string * ) context ;\n int32_t size = ufmt_min ( count , output -> available ) ;\n u_strncpy ( output -> str + ( output -> len - output -> available ) , str , size ) ;\n output -> available -= size ;\n return size ;\n }"}
{"idx": 6347, "target": 1, "func": "int tm_adopt ( char * id , int adoptCmd , pid_t pid ) {\n int rc = TM_SUCCESS ;\n int status , ret ;\n pid_t sid ;\n char * env ;\n struct tcp_chan * chan = NULL ;\n sid = getsid ( pid ) ;\n if ( init_done ) return TM_BADINIT ;\n init_done = 1 ;\n if ( ( tm_jobid = getenv ( \"PBS_JOBID\" ) ) == NULL ) tm_jobid = ( char * ) \"ADOPT JOB\" ;\n tm_jobid_len = strlen ( tm_jobid ) ;\n if ( ( tm_jobcookie = getenv ( \"PBS_JOBCOOKIE\" ) ) == NULL ) tm_jobcookie = ( char * ) \"ADOPT COOKIE\" ;\n tm_jobcookie_len = strlen ( tm_jobcookie ) ;\n tm_jobndid = 0 ;\n tm_jobtid = 0 ;\n if ( ( env = getenv ( \"PBS_MOMPORT\" ) ) == NULL || ( tm_momport = atoi ( env ) ) == 0 ) tm_momport = PBS_MANAGER_SERVICE_PORT ;\n if ( adoptCmd != TM_ADOPT_ALTID && adoptCmd != TM_ADOPT_JOBID ) return TM_EUNKNOWNCMD ;\n if ( startcom ( adoptCmd , TM_NULL_EVENT , & chan ) != DIS_SUCCESS ) return TM_ESYSTEM ;\n if ( diswsi ( chan , sid ) != DIS_SUCCESS ) {\n rc = TM_ENOTCONNECTED ;\n goto tm_adopt_cleanup ;\n }\n if ( diswsi ( chan , pid ) != DIS_SUCCESS ) {\n rc = TM_ENOTCONNECTED ;\n goto tm_adopt_cleanup ;\n }\n if ( diswcs ( chan , id , strlen ( id ) ) != DIS_SUCCESS ) {\n rc = TM_ENOTCONNECTED ;\n goto tm_adopt_cleanup ;\n }\n DIS_tcp_wflush ( chan ) ;\n status = disrsi ( chan , & ret ) ;\n if ( ret != DIS_SUCCESS ) {\n rc = TM_ENOTCONNECTED ;\n goto tm_adopt_cleanup ;\n }\n tm_finalize ( ) ;\n if ( local_conn > - 1 ) {\n close ( local_conn ) ;\n local_conn = - 1 ;\n }\n DIS_tcp_cleanup ( chan ) ;\n return ( status == TM_OKAY ? TM_SUCCESS : TM_ENOTFOUND ) ;\n tm_adopt_cleanup : if ( chan != NULL ) DIS_tcp_cleanup ( chan ) ;\n return rc ;\n }"}
{"idx": 6348, "target": 0, "func": "static void dissect_wbxml ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree ) {\n dissect_wbxml_common ( tvb , pinfo , tree , NULL ) ;\n }"}
{"idx": 6349, "target": 0, "func": "static void copy_task_thread_func ( GTask * task , gpointer source_object , gpointer task_data , GCancellable * cancellable ) {\n CopyMoveJob * job ;\n CommonJob * common ;\n SourceInfo source_info ;\n TransferInfo transfer_info ;\n char * dest_fs_id ;\n GFile * dest ;\n job = task_data ;\n common = & job -> common ;\n dest_fs_id = NULL ;\n nautilus_progress_info_start ( job -> common . progress ) ;\n scan_sources ( job -> files , & source_info , common , OP_KIND_COPY ) ;\n if ( job_aborted ( common ) ) {\n goto aborted ;\n }\n if ( job -> destination ) {\n dest = g_object_ref ( job -> destination ) ;\n }\n else {\n dest = g_file_get_parent ( job -> files -> data ) ;\n }\n verify_destination ( & job -> common , dest , & dest_fs_id , source_info . num_bytes ) ;\n g_object_unref ( dest ) ;\n if ( job_aborted ( common ) ) {\n goto aborted ;\n }\n g_timer_start ( job -> common . time ) ;\n memset ( & transfer_info , 0 , sizeof ( transfer_info ) ) ;\n copy_files ( job , dest_fs_id , & source_info , & transfer_info ) ;\n aborted : g_free ( dest_fs_id ) ;\n }"}
{"idx": 6350, "target": 0, "func": "static gint protobuf_iter_next ( protobuf_desc_t * pb , protobuf_tag_t * tag ) {\n gint len ;\n if ( pb -> bytes_left <= 0 ) {\n return 0 ;\n }\n tag -> value = get_varint64 ( pb -> tvb , pb -> offset , pb -> bytes_left , & len ) ;\n tag -> field_number = tag -> value >> 3 ;\n tag -> wire_type = tag -> value & 0x7 ;\n protobuf_seek_forward ( pb , len ) ;\n return pb -> bytes_left ;\n }"}
{"idx": 6351, "target": 0, "func": "void ff_print_debug_info ( MpegEncContext * s , Picture * p ) {\n AVFrame * pict ;\n if ( s -> avctx -> hwaccel || ! p || ! p -> mb_type ) return ;\n pict = & p -> f ;\n if ( s -> avctx -> debug & ( FF_DEBUG_SKIP | FF_DEBUG_QP | FF_DEBUG_MB_TYPE ) ) {\n int x , y ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"New frame, type: \" ) ;\n switch ( pict -> pict_type ) {\n case AV_PICTURE_TYPE_I : av_log ( s -> avctx , AV_LOG_DEBUG , \"I\\n\" ) ;\n break ;\n case AV_PICTURE_TYPE_P : av_log ( s -> avctx , AV_LOG_DEBUG , \"P\\n\" ) ;\n break ;\n case AV_PICTURE_TYPE_B : av_log ( s -> avctx , AV_LOG_DEBUG , \"B\\n\" ) ;\n break ;\n case AV_PICTURE_TYPE_S : av_log ( s -> avctx , AV_LOG_DEBUG , \"S\\n\" ) ;\n break ;\n case AV_PICTURE_TYPE_SI : av_log ( s -> avctx , AV_LOG_DEBUG , \"SI\\n\" ) ;\n break ;\n case AV_PICTURE_TYPE_SP : av_log ( s -> avctx , AV_LOG_DEBUG , \"SP\\n\" ) ;\n break ;\n }\n for ( y = 0 ;\n y < s -> mb_height ;\n y ++ ) {\n for ( x = 0 ;\n x < s -> mb_width ;\n x ++ ) {\n if ( s -> avctx -> debug & FF_DEBUG_SKIP ) {\n int count = s -> mbskip_table [ x + y * s -> mb_stride ] ;\n if ( count > 9 ) count = 9 ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"%1d\" , count ) ;\n }\n if ( s -> avctx -> debug & FF_DEBUG_QP ) {\n av_log ( s -> avctx , AV_LOG_DEBUG , \"%2d\" , p -> qscale_table [ x + y * s -> mb_stride ] ) ;\n }\n if ( s -> avctx -> debug & FF_DEBUG_MB_TYPE ) {\n int mb_type = p -> mb_type [ x + y * s -> mb_stride ] ;\n if ( IS_PCM ( mb_type ) ) av_log ( s -> avctx , AV_LOG_DEBUG , \"P\" ) ;\n else if ( IS_INTRA ( mb_type ) && IS_ACPRED ( mb_type ) ) av_log ( s -> avctx , AV_LOG_DEBUG , \"A\" ) ;\n else if ( IS_INTRA4x4 ( mb_type ) ) av_log ( s -> avctx , AV_LOG_DEBUG , \"i\" ) ;\n else if ( IS_INTRA16x16 ( mb_type ) ) av_log ( s -> avctx , AV_LOG_DEBUG , \"I\" ) ;\n else if ( IS_DIRECT ( mb_type ) && IS_SKIP ( mb_type ) ) av_log ( s -> avctx , AV_LOG_DEBUG , \"d\" ) ;\n else if ( IS_DIRECT ( mb_type ) ) av_log ( s -> avctx , AV_LOG_DEBUG , \"D\" ) ;\n else if ( IS_GMC ( mb_type ) && IS_SKIP ( mb_type ) ) av_log ( s -> avctx , AV_LOG_DEBUG , \"g\" ) ;\n else if ( IS_GMC ( mb_type ) ) av_log ( s -> avctx , AV_LOG_DEBUG , \"G\" ) ;\n else if ( IS_SKIP ( mb_type ) ) av_log ( s -> avctx , AV_LOG_DEBUG , \"S\" ) ;\n else if ( ! USES_LIST ( mb_type , 1 ) ) av_log ( s -> avctx , AV_LOG_DEBUG , \">\" ) ;\n else if ( ! USES_LIST ( mb_type , 0 ) ) av_log ( s -> avctx , AV_LOG_DEBUG , \"<\" ) ;\n else {\n assert ( USES_LIST ( mb_type , 0 ) && USES_LIST ( mb_type , 1 ) ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"X\" ) ;\n }\n if ( IS_8X8 ( mb_type ) ) av_log ( s -> avctx , AV_LOG_DEBUG , \"+\" ) ;\n else if ( IS_16X8 ( mb_type ) ) av_log ( s -> avctx , AV_LOG_DEBUG , \"-\" ) ;\n else if ( IS_8X16 ( mb_type ) ) av_log ( s -> avctx , AV_LOG_DEBUG , \"|\" ) ;\n else if ( IS_INTRA ( mb_type ) || IS_16X16 ( mb_type ) ) av_log ( s -> avctx , AV_LOG_DEBUG , \" \" ) ;\n else av_log ( s -> avctx , AV_LOG_DEBUG , \"?\" ) ;\n if ( IS_INTERLACED ( mb_type ) ) av_log ( s -> avctx , AV_LOG_DEBUG , \"=\" ) ;\n else av_log ( s -> avctx , AV_LOG_DEBUG , \" \" ) ;\n }\n }\n av_log ( s -> avctx , AV_LOG_DEBUG , \"\\n\" ) ;\n }\n }\n if ( ( s -> avctx -> debug & ( FF_DEBUG_VIS_QP | FF_DEBUG_VIS_MB_TYPE ) ) || ( s -> avctx -> debug_mv ) ) {\n const int shift = 1 + s -> quarter_sample ;\n int mb_y ;\n uint8_t * ptr ;\n int i ;\n int h_chroma_shift , v_chroma_shift , block_height ;\n const int width = s -> avctx -> width ;\n const int height = s -> avctx -> height ;\n const int mv_sample_log2 = 4 - pict -> motion_subsample_log2 ;\n const int mv_stride = ( s -> mb_width << mv_sample_log2 ) + ( s -> codec_id == AV_CODEC_ID_H264 ? 0 : 1 ) ;\n s -> low_delay = 0 ;\n av_pix_fmt_get_chroma_sub_sample ( s -> avctx -> pix_fmt , & h_chroma_shift , & v_chroma_shift ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n memcpy ( s -> visualization_buffer [ i ] , pict -> data [ i ] , ( i == 0 ) ? pict -> linesize [ i ] * height : pict -> linesize [ i ] * height >> v_chroma_shift ) ;\n pict -> data [ i ] = s -> visualization_buffer [ i ] ;\n }\n ptr = pict -> data [ 0 ] ;\n block_height = 16 >> v_chroma_shift ;\n for ( mb_y = 0 ;\n mb_y < s -> mb_height ;\n mb_y ++ ) {\n int mb_x ;\n for ( mb_x = 0 ;\n mb_x < s -> mb_width ;\n mb_x ++ ) {\n const int mb_index = mb_x + mb_y * s -> mb_stride ;\n if ( ( s -> avctx -> debug_mv ) && p -> motion_val ) {\n int type ;\n for ( type = 0 ;\n type < 3 ;\n type ++ ) {\n int direction = 0 ;\n switch ( type ) {\n case 0 : if ( ( ! ( s -> avctx -> debug_mv & FF_DEBUG_VIS_MV_P_FOR ) ) || ( pict -> pict_type != AV_PICTURE_TYPE_P ) ) continue ;\n direction = 0 ;\n break ;\n case 1 : if ( ( ! ( s -> avctx -> debug_mv & FF_DEBUG_VIS_MV_B_FOR ) ) || ( pict -> pict_type != AV_PICTURE_TYPE_B ) ) continue ;\n direction = 0 ;\n break ;\n case 2 : if ( ( ! ( s -> avctx -> debug_mv & FF_DEBUG_VIS_MV_B_BACK ) ) || ( pict -> pict_type != AV_PICTURE_TYPE_B ) ) continue ;\n direction = 1 ;\n break ;\n }\n if ( ! USES_LIST ( p -> mb_type [ mb_index ] , direction ) ) continue ;\n if ( IS_8X8 ( p -> mb_type [ mb_index ] ) ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n int sx = mb_x * 16 + 4 + 8 * ( i & 1 ) ;\n int sy = mb_y * 16 + 4 + 8 * ( i >> 1 ) ;\n int xy = ( mb_x * 2 + ( i & 1 ) + ( mb_y * 2 + ( i >> 1 ) ) * mv_stride ) << ( mv_sample_log2 - 1 ) ;\n int mx = ( p -> motion_val [ direction ] [ xy ] [ 0 ] >> shift ) + sx ;\n int my = ( p -> motion_val [ direction ] [ xy ] [ 1 ] >> shift ) + sy ;\n draw_arrow ( ptr , sx , sy , mx , my , width , height , s -> linesize , 100 ) ;\n }\n }\n else if ( IS_16X8 ( p -> mb_type [ mb_index ] ) ) {\n int i ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n int sx = mb_x * 16 + 8 ;\n int sy = mb_y * 16 + 4 + 8 * i ;\n int xy = ( mb_x * 2 + ( mb_y * 2 + i ) * mv_stride ) << ( mv_sample_log2 - 1 ) ;\n int mx = ( p -> motion_val [ direction ] [ xy ] [ 0 ] >> shift ) ;\n int my = ( p -> motion_val [ direction ] [ xy ] [ 1 ] >> shift ) ;\n if ( IS_INTERLACED ( p -> mb_type [ mb_index ] ) ) my *= 2 ;\n draw_arrow ( ptr , sx , sy , mx + sx , my + sy , width , height , s -> linesize , 100 ) ;\n }\n }\n else if ( IS_8X16 ( p -> mb_type [ mb_index ] ) ) {\n int i ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n int sx = mb_x * 16 + 4 + 8 * i ;\n int sy = mb_y * 16 + 8 ;\n int xy = ( mb_x * 2 + i + mb_y * 2 * mv_stride ) << ( mv_sample_log2 - 1 ) ;\n int mx = p -> motion_val [ direction ] [ xy ] [ 0 ] >> shift ;\n int my = p -> motion_val [ direction ] [ xy ] [ 1 ] >> shift ;\n if ( IS_INTERLACED ( p -> mb_type [ mb_index ] ) ) my *= 2 ;\n draw_arrow ( ptr , sx , sy , mx + sx , my + sy , width , height , s -> linesize , 100 ) ;\n }\n }\n else {\n int sx = mb_x * 16 + 8 ;\n int sy = mb_y * 16 + 8 ;\n int xy = ( mb_x + mb_y * mv_stride ) << mv_sample_log2 ;\n int mx = p -> motion_val [ direction ] [ xy ] [ 0 ] >> shift + sx ;\n int my = p -> motion_val [ direction ] [ xy ] [ 1 ] >> shift + sy ;\n draw_arrow ( ptr , sx , sy , mx , my , width , height , s -> linesize , 100 ) ;\n }\n }\n }\n if ( ( s -> avctx -> debug & FF_DEBUG_VIS_QP ) && p -> motion_val ) {\n uint64_t c = ( p -> qscale_table [ mb_index ] * 128 / 31 ) * 0x0101010101010101ULL ;\n int y ;\n for ( y = 0 ;\n y < block_height ;\n y ++ ) {\n * ( uint64_t * ) ( pict -> data [ 1 ] + 8 * mb_x + ( block_height * mb_y + y ) * pict -> linesize [ 1 ] ) = c ;\n * ( uint64_t * ) ( pict -> data [ 2 ] + 8 * mb_x + ( block_height * mb_y + y ) * pict -> linesize [ 2 ] ) = c ;\n }\n }\n if ( ( s -> avctx -> debug & FF_DEBUG_VIS_MB_TYPE ) && p -> motion_val ) {\n int mb_type = p -> mb_type [ mb_index ] ;\n uint64_t u , v ;\n int y ;\n # define COLOR ( theta , r ) u = ( int ) ( 128 + r * cos ( theta * 3.141592 / 180 ) ) ;\n v = ( int ) ( 128 + r * sin ( theta * 3.141592 / 180 ) ) ;\n u = v = 128 ;\n if ( IS_PCM ( mb_type ) ) {\n COLOR ( 120 , 48 ) }\n else if ( ( IS_INTRA ( mb_type ) && IS_ACPRED ( mb_type ) ) || IS_INTRA16x16 ( mb_type ) ) {\n COLOR ( 30 , 48 ) }\n else if ( IS_INTRA4x4 ( mb_type ) ) {\n COLOR ( 90 , 48 ) }\n else if ( IS_DIRECT ( mb_type ) && IS_SKIP ( mb_type ) ) {\n }\n else if ( IS_DIRECT ( mb_type ) ) {\n COLOR ( 150 , 48 ) }\n else if ( IS_GMC ( mb_type ) && IS_SKIP ( mb_type ) ) {\n COLOR ( 170 , 48 ) }\n else if ( IS_GMC ( mb_type ) ) {\n COLOR ( 190 , 48 ) }\n else if ( IS_SKIP ( mb_type ) ) {\n }\n else if ( ! USES_LIST ( mb_type , 1 ) ) {\n COLOR ( 240 , 48 ) }\n else if ( ! USES_LIST ( mb_type , 0 ) ) {\n COLOR ( 0 , 48 ) }\n else {\n assert ( USES_LIST ( mb_type , 0 ) && USES_LIST ( mb_type , 1 ) ) ;\n COLOR ( 300 , 48 ) }\n u *= 0x0101010101010101ULL ;\n v *= 0x0101010101010101ULL ;\n for ( y = 0 ;\n y < block_height ;\n y ++ ) {\n * ( uint64_t * ) ( pict -> data [ 1 ] + 8 * mb_x + ( block_height * mb_y + y ) * pict -> linesize [ 1 ] ) = u ;\n * ( uint64_t * ) ( pict -> data [ 2 ] + 8 * mb_x + ( block_height * mb_y + y ) * pict -> linesize [ 2 ] ) = v ;\n }\n if ( IS_8X8 ( mb_type ) || IS_16X8 ( mb_type ) ) {\n * ( uint64_t * ) ( pict -> data [ 0 ] + 16 * mb_x + 0 + ( 16 * mb_y + 8 ) * pict -> linesize [ 0 ] ) ^= 0x8080808080808080ULL ;\n * ( uint64_t * ) ( pict -> data [ 0 ] + 16 * mb_x + 8 + ( 16 * mb_y + 8 ) * pict -> linesize [ 0 ] ) ^= 0x8080808080808080ULL ;\n }\n if ( IS_8X8 ( mb_type ) || IS_8X16 ( mb_type ) ) {\n for ( y = 0 ;\n y < 16 ;\n y ++ ) pict -> data [ 0 ] [ 16 * mb_x + 8 + ( 16 * mb_y + y ) * pict -> linesize [ 0 ] ] ^= 0x80 ;\n }\n if ( IS_8X8 ( mb_type ) && mv_sample_log2 >= 2 ) {\n int dm = 1 << ( mv_sample_log2 - 2 ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n int sx = mb_x * 16 + 8 * ( i & 1 ) ;\n int sy = mb_y * 16 + 8 * ( i >> 1 ) ;\n int xy = ( mb_x * 2 + ( i & 1 ) + ( mb_y * 2 + ( i >> 1 ) ) * mv_stride ) << ( mv_sample_log2 - 1 ) ;\n int32_t * mv = ( int32_t * ) & p -> motion_val [ 0 ] [ xy ] ;\n if ( mv [ 0 ] != mv [ dm ] || mv [ dm * mv_stride ] != mv [ dm * ( mv_stride + 1 ) ] ) for ( y = 0 ;\n y < 8 ;\n y ++ ) pict -> data [ 0 ] [ sx + 4 + ( sy + y ) * pict -> linesize [ 0 ] ] ^= 0x80 ;\n if ( mv [ 0 ] != mv [ dm * mv_stride ] || mv [ dm ] != mv [ dm * ( mv_stride + 1 ) ] ) * ( uint64_t * ) ( pict -> data [ 0 ] + sx + ( sy + 4 ) * pict -> linesize [ 0 ] ) ^= 0x8080808080808080ULL ;\n }\n }\n if ( IS_INTERLACED ( mb_type ) && s -> codec_id == AV_CODEC_ID_H264 ) {\n }\n }\n s -> mbskip_table [ mb_index ] = 0 ;\n }\n }\n }\n }"}
{"idx": 6352, "target": 0, "func": "static inline void copy_backptr ( LZOContext * c , int back , int cnt ) {\n register uint8_t * dst = c -> out ;\n if ( cnt <= 0 ) {\n c -> error |= AV_LZO_ERROR ;\n return ;\n }\n if ( dst - c -> out_start < back ) {\n c -> error |= AV_LZO_INVALID_BACKPTR ;\n return ;\n }\n if ( cnt > c -> out_end - dst ) {\n cnt = FFMAX ( c -> out_end - dst , 0 ) ;\n c -> error |= AV_LZO_OUTPUT_FULL ;\n }\n av_memcpy_backptr ( dst , back , cnt ) ;\n c -> out = dst + cnt ;\n }"}
{"idx": 6353, "target": 0, "func": "static inline void set_num_721 ( unsigned char * p , uint16_t value ) {\n archive_le16enc ( p , value ) ;\n }"}
{"idx": 6354, "target": 0, "func": "static void test_bug8722 ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n const char * stmt_text ;\n myheader ( \"test_bug8722\" ) ;\n stmt_text = \"drop table if exists t1, v1\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt_text = \"CREATE TABLE t1 (c1 varchar(10), c2 varchar(10), c3 varchar(10),\" \" c4 varchar(10), c5 varchar(10), c6 varchar(10),\" \" c7 varchar(10), c8 varchar(10), c9 varchar(10),\" \"c10 varchar(10))\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt_text = \"INSERT INTO t1 VALUES (1,2,3,4,5,6,7,8,9,10)\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt_text = \"CREATE VIEW v1 AS SELECT * FROM t1\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n stmt_text = \"select * from v1\" ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt , rc ) ;\n mysql_stmt_close ( stmt ) ;\n stmt_text = \"drop table if exists t1, v1\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n }"}
{"idx": 6355, "target": 0, "func": "static void ss4_init ( QEMUMachineInitArgs * args ) {\n ram_addr_t RAM_size = args -> ram_size ;\n const char * cpu_model = args -> cpu_model ;\n const char * kernel_filename = args -> kernel_filename ;\n const char * kernel_cmdline = args -> kernel_cmdline ;\n const char * initrd_filename = args -> initrd_filename ;\n const char * boot_device = args -> boot_device ;\n sun4m_hw_init ( & sun4m_hwdefs [ 6 ] , RAM_size , boot_device , kernel_filename , kernel_cmdline , initrd_filename , cpu_model ) ;\n }"}
{"idx": 6356, "target": 0, "func": "static void pdf_run_d1 ( fz_context * ctx , pdf_processor * proc , float wx , float wy , float llx , float lly , float urx , float ury ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n if ( pr -> nested_depth > 1 ) return ;\n pr -> dev -> flags |= FZ_DEVFLAG_MASK | FZ_DEVFLAG_BBOX_DEFINED ;\n pr -> dev -> flags &= ~ ( FZ_DEVFLAG_FILLCOLOR_UNDEFINED | FZ_DEVFLAG_STROKECOLOR_UNDEFINED | FZ_DEVFLAG_STARTCAP_UNDEFINED | FZ_DEVFLAG_DASHCAP_UNDEFINED | FZ_DEVFLAG_ENDCAP_UNDEFINED | FZ_DEVFLAG_LINEJOIN_UNDEFINED | FZ_DEVFLAG_MITERLIMIT_UNDEFINED | FZ_DEVFLAG_LINEWIDTH_UNDEFINED ) ;\n pr -> dev -> d1_rect . x0 = fz_min ( llx , urx ) ;\n pr -> dev -> d1_rect . y0 = fz_min ( lly , ury ) ;\n pr -> dev -> d1_rect . x1 = fz_max ( llx , urx ) ;\n pr -> dev -> d1_rect . y1 = fz_max ( lly , ury ) ;\n }"}
{"idx": 6357, "target": 0, "func": "static void set_source_var_based_partition ( VP9_COMP * cpi , const TileInfo * const tile , MODE_INFO * mi_8x8 , int mi_row , int mi_col ) {\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCK * const x = & cpi -> mb ;\n const int mis = cm -> mi_stride ;\n const int row8x8_remaining = tile -> mi_row_end - mi_row ;\n const int col8x8_remaining = tile -> mi_col_end - mi_col ;\n MODE_INFO * mi_upper_left = cm -> mi + mi_row * mis + mi_col ;\n vp9_setup_src_planes ( x , cpi -> Source , mi_row , mi_col ) ;\n assert ( ( row8x8_remaining > 0 ) && ( col8x8_remaining > 0 ) ) ;\n if ( ( col8x8_remaining >= MI_BLOCK_SIZE ) && ( row8x8_remaining >= MI_BLOCK_SIZE ) ) {\n int i , j ;\n int index ;\n diff d32 [ 4 ] ;\n const int offset = ( mi_row >> 1 ) * cm -> mb_cols + ( mi_col >> 1 ) ;\n int is_larger_better = 0 ;\n int use32x32 = 0 ;\n unsigned int thr = cpi -> source_var_thresh ;\n vpx_memset ( d32 , 0 , 4 * sizeof ( diff ) ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n diff * d16 [ 4 ] ;\n for ( j = 0 ;\n j < 4 ;\n j ++ ) {\n int b_mi_row = coord_lookup [ i * 4 + j ] . row ;\n int b_mi_col = coord_lookup [ i * 4 + j ] . col ;\n int boffset = b_mi_row / 2 * cm -> mb_cols + b_mi_col / 2 ;\n d16 [ j ] = cpi -> source_diff_var + offset + boffset ;\n index = b_mi_row * mis + b_mi_col ;\n mi_8x8 [ index ] . src_mi = mi_upper_left + index ;\n mi_8x8 [ index ] . src_mi -> mbmi . sb_type = BLOCK_16X16 ;\n }\n is_larger_better = ( d16 [ 0 ] -> var < thr ) && ( d16 [ 1 ] -> var < thr ) && ( d16 [ 2 ] -> var < thr ) && ( d16 [ 3 ] -> var < thr ) ;\n if ( is_larger_better ) {\n use32x32 += 1 ;\n for ( j = 0 ;\n j < 4 ;\n j ++ ) {\n d32 [ i ] . sse += d16 [ j ] -> sse ;\n d32 [ i ] . sum += d16 [ j ] -> sum ;\n }\n d32 [ i ] . var = d32 [ i ] . sse - ( ( ( int64_t ) d32 [ i ] . sum * d32 [ i ] . sum ) >> 10 ) ;\n index = coord_lookup [ i * 4 ] . row * mis + coord_lookup [ i * 4 ] . col ;\n mi_8x8 [ index ] . src_mi = mi_upper_left + index ;\n mi_8x8 [ index ] . src_mi -> mbmi . sb_type = BLOCK_32X32 ;\n }\n }\n if ( use32x32 == 4 ) {\n thr <<= 1 ;\n is_larger_better = ( d32 [ 0 ] . var < thr ) && ( d32 [ 1 ] . var < thr ) && ( d32 [ 2 ] . var < thr ) && ( d32 [ 3 ] . var < thr ) ;\n if ( is_larger_better ) {\n mi_8x8 [ 0 ] . src_mi = mi_upper_left ;\n mi_8x8 [ 0 ] . src_mi -> mbmi . sb_type = BLOCK_64X64 ;\n }\n }\n }\n else {\n int bh = num_8x8_blocks_high_lookup [ BLOCK_16X16 ] ;\n int bw = num_8x8_blocks_wide_lookup [ BLOCK_16X16 ] ;\n set_partial_b64x64_partition ( mi_upper_left , mis , bh , bw , row8x8_remaining , col8x8_remaining , BLOCK_16X16 , mi_8x8 ) ;\n }\n }"}
{"idx": 6358, "target": 1, "func": "int phar_parse_tarfile ( php_stream * fp , char * fname , int fname_len , char * alias , int alias_len , phar_archive_data * * pphar , int is_data , php_uint32 compression , char * * error TSRMLS_DC ) {\n char buf [ 512 ] , * actual_alias = NULL , * p ;\n phar_entry_info entry = {\n 0 }\n ;\n size_t pos = 0 , read , totalsize ;\n tar_header * hdr ;\n php_uint32 sum1 , sum2 , size , old ;\n phar_archive_data * myphar , * * actual ;\n int last_was_longlink = 0 ;\n if ( error ) {\n * error = NULL ;\n }\n php_stream_seek ( fp , 0 , SEEK_END ) ;\n totalsize = php_stream_tell ( fp ) ;\n php_stream_seek ( fp , 0 , SEEK_SET ) ;\n read = php_stream_read ( fp , buf , sizeof ( buf ) ) ;\n if ( read != sizeof ( buf ) ) {\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: \\\"%s\\\" is not a tar file or is truncated\" , fname ) ;\n }\n php_stream_close ( fp ) ;\n return FAILURE ;\n }\n hdr = ( tar_header * ) buf ;\n old = ( memcmp ( hdr -> magic , \"ustar\" , sizeof ( \"ustar\" ) - 1 ) != 0 ) ;\n myphar = ( phar_archive_data * ) pecalloc ( 1 , sizeof ( phar_archive_data ) , PHAR_G ( persist ) ) ;\n myphar -> is_persistent = PHAR_G ( persist ) ;\n zend_hash_init ( & myphar -> manifest , 2 + ( totalsize >> 12 ) , zend_get_hash_value , destroy_phar_manifest_entry , ( zend_bool ) myphar -> is_persistent ) ;\n zend_hash_init ( & myphar -> mounted_dirs , 5 , zend_get_hash_value , NULL , ( zend_bool ) myphar -> is_persistent ) ;\n zend_hash_init ( & myphar -> virtual_dirs , 4 + ( totalsize >> 11 ) , zend_get_hash_value , NULL , ( zend_bool ) myphar -> is_persistent ) ;\n myphar -> is_tar = 1 ;\n myphar -> flags = compression ;\n entry . is_tar = 1 ;\n entry . is_crc_checked = 1 ;\n entry . phar = myphar ;\n pos += sizeof ( buf ) ;\n do {\n phar_entry_info * newentry ;\n pos = php_stream_tell ( fp ) ;\n hdr = ( tar_header * ) buf ;\n sum1 = phar_tar_number ( hdr -> checksum , sizeof ( hdr -> checksum ) ) ;\n if ( sum1 == 0 && phar_tar_checksum ( buf , sizeof ( buf ) ) == 0 ) {\n break ;\n }\n memset ( hdr -> checksum , ' ' , sizeof ( hdr -> checksum ) ) ;\n sum2 = phar_tar_checksum ( buf , old ? sizeof ( old_tar_header ) : sizeof ( tar_header ) ) ;\n size = entry . uncompressed_filesize = entry . compressed_filesize = phar_tar_number ( hdr -> size , sizeof ( hdr -> size ) ) ;\n if ( ( ( ! old && hdr -> prefix [ 0 ] == 0 ) || old ) && strlen ( hdr -> name ) == sizeof ( \".phar/signature.bin\" ) - 1 && ! strncmp ( hdr -> name , \".phar/signature.bin\" , sizeof ( \".phar/signature.bin\" ) - 1 ) ) {\n off_t curloc ;\n if ( size > 511 ) {\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: tar-based phar \\\"%s\\\" has signature that is larger than 511 bytes, cannot process\" , fname ) ;\n }\n bail : php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n return FAILURE ;\n }\n curloc = php_stream_tell ( fp ) ;\n read = php_stream_read ( fp , buf , size ) ;\n if ( read != size ) {\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: tar-based phar \\\"%s\\\" signature cannot be read\" , fname ) ;\n }\n goto bail ;\n }\n # ifdef WORDS_BIGENDIAN # define PHAR_GET_32 ( buffer ) \\ ( ( ( ( ( unsigned char * ) ( buffer ) ) [ 3 ] ) << 24 ) \\ | ( ( ( ( unsigned char * ) ( buffer ) ) [ 2 ] ) << 16 ) \\ | ( ( ( ( unsigned char * ) ( buffer ) ) [ 1 ] ) << 8 ) \\ | ( ( ( unsigned char * ) ( buffer ) ) [ 0 ] ) ) # else # define PHAR_GET_32 ( buffer ) ( php_uint32 ) * ( buffer ) # endif myphar -> sig_flags = PHAR_GET_32 ( buf ) ;\n if ( FAILURE == phar_verify_signature ( fp , php_stream_tell ( fp ) - size - 512 , myphar -> sig_flags , buf + 8 , size - 8 , fname , & myphar -> signature , & myphar -> sig_len , error TSRMLS_CC ) ) {\n if ( error ) {\n char * save = * error ;\n spprintf ( error , 4096 , \"phar error: tar-based phar \\\"%s\\\" signature cannot be verified: %s\" , fname , save ) ;\n efree ( save ) ;\n }\n goto bail ;\n }\n php_stream_seek ( fp , curloc + 512 , SEEK_SET ) ;\n if ( ( ( hdr -> typeflag == '\\0' ) || ( hdr -> typeflag == TAR_FILE ) ) && size > 0 ) {\n php_stream_seek ( fp , 512 , SEEK_CUR ) ;\n if ( ( uint ) php_stream_tell ( fp ) > totalsize ) {\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: \\\"%s\\\" is a corrupted tar file (truncated)\" , fname ) ;\n }\n php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n return FAILURE ;\n }\n }\n read = php_stream_read ( fp , buf , sizeof ( buf ) ) ;\n if ( read != sizeof ( buf ) ) {\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: \\\"%s\\\" is a corrupted tar file (truncated)\" , fname ) ;\n }\n php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n return FAILURE ;\n }\n hdr = ( tar_header * ) buf ;\n sum1 = phar_tar_number ( hdr -> checksum , sizeof ( hdr -> checksum ) ) ;\n if ( sum1 == 0 && phar_tar_checksum ( buf , sizeof ( buf ) ) == 0 ) {\n break ;\n }\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: \\\"%s\\\" has entries after signature, invalid phar\" , fname ) ;\n }\n goto bail ;\n }\n if ( ! last_was_longlink && hdr -> typeflag == 'L' ) {\n last_was_longlink = 1 ;\n entry . filename_len = entry . uncompressed_filesize ;\n if ( entry . filename_len == UINT_MAX ) {\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: \\\"%s\\\" is a corrupted tar file (invalid entry size)\" , fname ) ;\n }\n php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n return FAILURE ;\n }\n entry . filename = pemalloc ( entry . filename_len + 1 , myphar -> is_persistent ) ;\n read = php_stream_read ( fp , entry . filename , entry . filename_len ) ;\n if ( read != entry . filename_len ) {\n efree ( entry . filename ) ;\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: \\\"%s\\\" is a corrupted tar file (truncated)\" , fname ) ;\n }\n php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n return FAILURE ;\n }\n entry . filename [ entry . filename_len ] = '\\0' ;\n size = ( ( size + 511 ) & ~ 511 ) - size ;\n php_stream_seek ( fp , size , SEEK_CUR ) ;\n if ( ( uint ) php_stream_tell ( fp ) > totalsize ) {\n efree ( entry . filename ) ;\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: \\\"%s\\\" is a corrupted tar file (truncated)\" , fname ) ;\n }\n php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n return FAILURE ;\n }\n read = php_stream_read ( fp , buf , sizeof ( buf ) ) ;\n if ( read != sizeof ( buf ) ) {\n efree ( entry . filename ) ;\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: \\\"%s\\\" is a corrupted tar file (truncated)\" , fname ) ;\n }\n php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n return FAILURE ;\n }\n continue ;\n }\n else if ( ! last_was_longlink && ! old && hdr -> prefix [ 0 ] != 0 ) {\n char name [ 256 ] ;\n int i , j ;\n for ( i = 0 ;\n i < 155 ;\n i ++ ) {\n name [ i ] = hdr -> prefix [ i ] ;\n if ( name [ i ] == '\\0' ) {\n break ;\n }\n }\n name [ i ++ ] = '/' ;\n for ( j = 0 ;\n j < 100 ;\n j ++ ) {\n name [ i + j ] = hdr -> name [ j ] ;\n if ( name [ i + j ] == '\\0' ) {\n break ;\n }\n }\n entry . filename_len = i + j ;\n if ( name [ entry . filename_len - 1 ] == '/' ) {\n entry . filename_len -- ;\n }\n entry . filename = pestrndup ( name , entry . filename_len , myphar -> is_persistent ) ;\n }\n else if ( ! last_was_longlink ) {\n int i ;\n for ( i = 0 ;\n i < 100 ;\n i ++ ) {\n if ( hdr -> name [ i ] == '\\0' ) {\n break ;\n }\n }\n entry . filename_len = i ;\n entry . filename = pestrndup ( hdr -> name , i , myphar -> is_persistent ) ;\n if ( entry . filename [ entry . filename_len - 1 ] == '/' ) {\n entry . filename [ entry . filename_len - 1 ] = '\\0' ;\n entry . filename_len -- ;\n }\n }\n last_was_longlink = 0 ;\n phar_add_virtual_dirs ( myphar , entry . filename , entry . filename_len TSRMLS_CC ) ;\n if ( sum1 != sum2 ) {\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: \\\"%s\\\" is a corrupted tar file (checksum mismatch of file \\\"%s\\\")\" , fname , entry . filename ) ;\n }\n pefree ( entry . filename , myphar -> is_persistent ) ;\n php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n return FAILURE ;\n }\n entry . tar_type = ( ( old & ( hdr -> typeflag == '\\0' ) ) ? TAR_FILE : hdr -> typeflag ) ;\n entry . offset = entry . offset_abs = pos ;\n entry . fp_type = PHAR_FP ;\n entry . flags = phar_tar_number ( hdr -> mode , sizeof ( hdr -> mode ) ) & PHAR_ENT_PERM_MASK ;\n entry . timestamp = phar_tar_number ( hdr -> mtime , sizeof ( hdr -> mtime ) ) ;\n entry . is_persistent = myphar -> is_persistent ;\n # ifndef S_ISDIR # define S_ISDIR ( mode ) ( ( ( mode ) & S_IFMT ) == S_IFDIR ) # endif if ( old && entry . tar_type == TAR_FILE && S_ISDIR ( entry . flags ) ) {\n entry . tar_type = TAR_DIR ;\n }\n if ( entry . tar_type == TAR_DIR ) {\n entry . is_dir = 1 ;\n }\n else {\n entry . is_dir = 0 ;\n }\n entry . link = NULL ;\n if ( entry . tar_type == TAR_LINK ) {\n if ( ! zend_hash_exists ( & myphar -> manifest , hdr -> linkname , strlen ( hdr -> linkname ) ) ) {\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: \\\"%s\\\" is a corrupted tar file - hard link to non-existent file \\\"%s\\\"\" , fname , hdr -> linkname ) ;\n }\n pefree ( entry . filename , entry . is_persistent ) ;\n php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n return FAILURE ;\n }\n entry . link = estrdup ( hdr -> linkname ) ;\n }\n else if ( entry . tar_type == TAR_SYMLINK ) {\n entry . link = estrdup ( hdr -> linkname ) ;\n }\n phar_set_inode ( & entry TSRMLS_CC ) ;\n zend_hash_add ( & myphar -> manifest , entry . filename , entry . filename_len , ( void * ) & entry , sizeof ( phar_entry_info ) , ( void * * ) & newentry ) ;\n if ( entry . is_persistent ) {\n ++ entry . manifest_pos ;\n }\n if ( entry . filename_len >= sizeof ( \".phar/.metadata\" ) - 1 && ! memcmp ( entry . filename , \".phar/.metadata\" , sizeof ( \".phar/.metadata\" ) - 1 ) ) {\n if ( FAILURE == phar_tar_process_metadata ( newentry , fp TSRMLS_CC ) ) {\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: tar-based phar \\\"%s\\\" has invalid metadata in magic file \\\"%s\\\"\" , fname , entry . filename ) ;\n }\n php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n return FAILURE ;\n }\n }\n if ( ! actual_alias && entry . filename_len == sizeof ( \".phar/alias.txt\" ) - 1 && ! strncmp ( entry . filename , \".phar/alias.txt\" , sizeof ( \".phar/alias.txt\" ) - 1 ) ) {\n if ( size > 511 ) {\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: tar-based phar \\\"%s\\\" has alias that is larger than 511 bytes, cannot process\" , fname ) ;\n }\n php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n return FAILURE ;\n }\n read = php_stream_read ( fp , buf , size ) ;\n if ( read == size ) {\n buf [ size ] = '\\0' ;\n if ( ! phar_validate_alias ( buf , size ) ) {\n if ( size > 50 ) {\n buf [ 50 ] = '.' ;\n buf [ 51 ] = '.' ;\n buf [ 52 ] = '.' ;\n buf [ 53 ] = '\\0' ;\n }\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: invalid alias \\\"%s\\\" in tar-based phar \\\"%s\\\"\" , buf , fname ) ;\n }\n php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n return FAILURE ;\n }\n actual_alias = pestrndup ( buf , size , myphar -> is_persistent ) ;\n myphar -> alias = actual_alias ;\n myphar -> alias_len = size ;\n php_stream_seek ( fp , pos , SEEK_SET ) ;\n }\n else {\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: Unable to read alias from tar-based phar \\\"%s\\\"\" , fname ) ;\n }\n php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n return FAILURE ;\n }\n }\n size = ( size + 511 ) & ~ 511 ;\n if ( ( ( hdr -> typeflag == '\\0' ) || ( hdr -> typeflag == TAR_FILE ) ) && size > 0 ) {\n php_stream_seek ( fp , size , SEEK_CUR ) ;\n if ( ( uint ) php_stream_tell ( fp ) > totalsize ) {\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: \\\"%s\\\" is a corrupted tar file (truncated)\" , fname ) ;\n }\n php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n return FAILURE ;\n }\n }\n read = php_stream_read ( fp , buf , sizeof ( buf ) ) ;\n if ( read != sizeof ( buf ) ) {\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: \\\"%s\\\" is a corrupted tar file (truncated)\" , fname ) ;\n }\n php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n return FAILURE ;\n }\n }\n while ( read != 0 ) ;\n if ( zend_hash_exists ( & ( myphar -> manifest ) , \".phar/stub.php\" , sizeof ( \".phar/stub.php\" ) - 1 ) ) {\n myphar -> is_data = 0 ;\n }\n else {\n myphar -> is_data = 1 ;\n }\n if ( ! myphar -> is_data && PHAR_G ( require_hash ) && ! myphar -> signature ) {\n php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n if ( error ) {\n spprintf ( error , 0 , \"tar-based phar \\\"%s\\\" does not have a signature\" , fname ) ;\n }\n return FAILURE ;\n }\n myphar -> fname = pestrndup ( fname , fname_len , myphar -> is_persistent ) ;\n # ifdef PHP_WIN32 phar_unixify_path_separators ( myphar -> fname , fname_len ) ;\n # endif myphar -> fname_len = fname_len ;\n myphar -> fp = fp ;\n p = strrchr ( myphar -> fname , '/' ) ;\n if ( p ) {\n myphar -> ext = memchr ( p , '.' , ( myphar -> fname + fname_len ) - p ) ;\n if ( myphar -> ext == p ) {\n myphar -> ext = memchr ( p + 1 , '.' , ( myphar -> fname + fname_len ) - p - 1 ) ;\n }\n if ( myphar -> ext ) {\n myphar -> ext_len = ( myphar -> fname + fname_len ) - myphar -> ext ;\n }\n }\n phar_request_initialize ( TSRMLS_C ) ;\n if ( SUCCESS != zend_hash_add ( & ( PHAR_GLOBALS -> phar_fname_map ) , myphar -> fname , fname_len , ( void * ) & myphar , sizeof ( phar_archive_data * ) , ( void * * ) & actual ) ) {\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: Unable to add tar-based phar \\\"%s\\\" to phar registry\" , fname ) ;\n }\n php_stream_close ( fp ) ;\n phar_destroy_phar_data ( myphar TSRMLS_CC ) ;\n return FAILURE ;\n }\n myphar = * actual ;\n if ( actual_alias ) {\n phar_archive_data * * fd_ptr ;\n myphar -> is_temporary_alias = 0 ;\n if ( SUCCESS == zend_hash_find ( & ( PHAR_GLOBALS -> phar_alias_map ) , actual_alias , myphar -> alias_len , ( void * * ) & fd_ptr ) ) {\n if ( SUCCESS != phar_free_alias ( * fd_ptr , actual_alias , myphar -> alias_len TSRMLS_CC ) ) {\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: Unable to add tar-based phar \\\"%s\\\", alias is already in use\" , fname ) ;\n }\n zend_hash_del ( & ( PHAR_GLOBALS -> phar_fname_map ) , myphar -> fname , fname_len ) ;\n return FAILURE ;\n }\n }\n zend_hash_add ( & ( PHAR_GLOBALS -> phar_alias_map ) , actual_alias , myphar -> alias_len , ( void * ) & myphar , sizeof ( phar_archive_data * ) , NULL ) ;\n }\n else {\n phar_archive_data * * fd_ptr ;\n if ( alias_len ) {\n if ( SUCCESS == zend_hash_find ( & ( PHAR_GLOBALS -> phar_alias_map ) , alias , alias_len , ( void * * ) & fd_ptr ) ) {\n if ( SUCCESS != phar_free_alias ( * fd_ptr , alias , alias_len TSRMLS_CC ) ) {\n if ( error ) {\n spprintf ( error , 4096 , \"phar error: Unable to add tar-based phar \\\"%s\\\", alias is already in use\" , fname ) ;\n }\n zend_hash_del ( & ( PHAR_GLOBALS -> phar_fname_map ) , myphar -> fname , fname_len ) ;\n return FAILURE ;\n }\n }\n zend_hash_add ( & ( PHAR_GLOBALS -> phar_alias_map ) , alias , alias_len , ( void * ) & myphar , sizeof ( phar_archive_data * ) , NULL ) ;\n myphar -> alias = pestrndup ( alias , alias_len , myphar -> is_persistent ) ;\n myphar -> alias_len = alias_len ;\n }\n else {\n myphar -> alias = pestrndup ( myphar -> fname , fname_len , myphar -> is_persistent ) ;\n myphar -> alias_len = fname_len ;\n }\n myphar -> is_temporary_alias = 1 ;\n }\n if ( pphar ) {\n * pphar = myphar ;\n }\n return SUCCESS ;\n }"}
{"idx": 6359, "target": 0, "func": "static void dtap_cc_hold_rej ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_FALSE ;\n ELEM_MAND_LV ( GSM_A_PDU_TYPE_DTAP , DE_CAUSE , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 6360, "target": 1, "func": "static int h264_frame_start ( H264Context * h ) {\n Picture * pic ;\n int i , ret ;\n const int pixel_shift = h -> pixel_shift ;\n int c [ 4 ] = {\n 1 << ( h -> sps . bit_depth_luma - 1 ) , 1 << ( h -> sps . bit_depth_chroma - 1 ) , 1 << ( h -> sps . bit_depth_chroma - 1 ) , - 1 }\n ;\n if ( ! ff_thread_can_start_frame ( h -> avctx ) ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"Attempt to start a frame outside SETUP state\\n\" ) ;\n return - 1 ;\n }\n release_unused_pictures ( h , 1 ) ;\n h -> cur_pic_ptr = NULL ;\n i = find_unused_picture ( h ) ;\n if ( i < 0 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"no frame buffer available\\n\" ) ;\n return i ;\n }\n pic = & h -> DPB [ i ] ;\n pic -> reference = h -> droppable ? 0 : h -> picture_structure ;\n pic -> f . coded_picture_number = h -> coded_picture_number ++ ;\n pic -> field_picture = h -> picture_structure != PICT_FRAME ;\n pic -> f . key_frame = 0 ;\n pic -> mmco_reset = 0 ;\n pic -> recovered = 0 ;\n if ( ( ret = alloc_picture ( h , pic ) ) < 0 ) return ret ;\n if ( ! h -> frame_recovered && ! h -> avctx -> hwaccel && ! ( h -> avctx -> codec -> capabilities & CODEC_CAP_HWACCEL_VDPAU ) ) avpriv_color_frame ( & pic -> f , c ) ;\n h -> cur_pic_ptr = pic ;\n unref_picture ( h , & h -> cur_pic ) ;\n if ( ( ret = ref_picture ( h , & h -> cur_pic , h -> cur_pic_ptr ) ) < 0 ) return ret ;\n if ( CONFIG_ERROR_RESILIENCE ) {\n ff_er_frame_start ( & h -> er ) ;\n h -> er . last_pic = h -> er . next_pic = NULL ;\n }\n assert ( h -> linesize && h -> uvlinesize ) ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n h -> block_offset [ i ] = ( 4 * ( ( scan8 [ i ] - scan8 [ 0 ] ) & 7 ) << pixel_shift ) + 4 * h -> linesize * ( ( scan8 [ i ] - scan8 [ 0 ] ) >> 3 ) ;\n h -> block_offset [ 48 + i ] = ( 4 * ( ( scan8 [ i ] - scan8 [ 0 ] ) & 7 ) << pixel_shift ) + 8 * h -> linesize * ( ( scan8 [ i ] - scan8 [ 0 ] ) >> 3 ) ;\n }\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n h -> block_offset [ 16 + i ] = h -> block_offset [ 32 + i ] = ( 4 * ( ( scan8 [ i ] - scan8 [ 0 ] ) & 7 ) << pixel_shift ) + 4 * h -> uvlinesize * ( ( scan8 [ i ] - scan8 [ 0 ] ) >> 3 ) ;\n h -> block_offset [ 48 + 16 + i ] = h -> block_offset [ 48 + 32 + i ] = ( 4 * ( ( scan8 [ i ] - scan8 [ 0 ] ) & 7 ) << pixel_shift ) + 8 * h -> uvlinesize * ( ( scan8 [ i ] - scan8 [ 0 ] ) >> 3 ) ;\n }\n h -> cur_pic_ptr -> reference = 0 ;\n h -> cur_pic_ptr -> field_poc [ 0 ] = h -> cur_pic_ptr -> field_poc [ 1 ] = INT_MAX ;\n h -> next_output_pic = NULL ;\n assert ( h -> cur_pic_ptr -> long_ref == 0 ) ;\n return 0 ;\n }"}
{"idx": 6361, "target": 0, "func": "int archive_mstring_get_mbs ( struct archive * a , struct archive_mstring * aes , const char * * p ) {\n int r , ret = 0 ;\n ( void ) a ;\n if ( aes -> aes_set & AES_SET_MBS ) {\n * p = aes -> aes_mbs . s ;\n return ( ret ) ;\n }\n * p = NULL ;\n if ( aes -> aes_set & AES_SET_WCS ) {\n archive_string_empty ( & ( aes -> aes_mbs ) ) ;\n r = archive_string_append_from_wcs ( & ( aes -> aes_mbs ) , aes -> aes_wcs . s , aes -> aes_wcs . length ) ;\n * p = aes -> aes_mbs . s ;\n if ( r == 0 ) {\n aes -> aes_set |= AES_SET_MBS ;\n return ( ret ) ;\n }\n else ret = - 1 ;\n }\n return ( ret ) ;\n }"}
{"idx": 6362, "target": 0, "func": "static int dissect_h225_T_raw ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 893 \"./asn1/h225/h225.cnf\" tvbuff_t * value_tvb ;\n gef_ctx_t * gefx ;\n proto_item * ti ;\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , NO_BOUND , NO_BOUND , FALSE , & value_tvb ) ;\n gefx = gef_ctx_get ( actx -> private_data ) ;\n if ( gefx ) {\n ti = proto_tree_add_string ( tree , hf_h225_debug_dissector_try_string , tvb , offset >> 3 , 0 , gefx -> key ) ;\n PROTO_ITEM_SET_HIDDEN ( ti ) ;\n dissector_try_string ( gef_content_dissector_table , gefx -> key , value_tvb , actx -> pinfo , tree , actx ) ;\n }\n return offset ;\n }"}
{"idx": 6363, "target": 0, "func": "static int vorbis_parse_audio_packet ( vorbis_context * vc , float * * floor_ptr ) {\n GetBitContext * gb = & vc -> gb ;\n FFTContext * mdct ;\n unsigned previous_window = vc -> previous_window ;\n unsigned mode_number , blockflag , blocksize ;\n int i , j ;\n uint8_t no_residue [ 255 ] ;\n uint8_t do_not_decode [ 255 ] ;\n vorbis_mapping * mapping ;\n float * ch_res_ptr = vc -> channel_residues ;\n uint8_t res_chan [ 255 ] ;\n unsigned res_num = 0 ;\n int retlen = 0 ;\n unsigned ch_left = vc -> audio_channels ;\n unsigned vlen ;\n if ( get_bits1 ( gb ) ) {\n av_log ( vc -> avctx , AV_LOG_ERROR , \"Not a Vorbis I audio packet.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( vc -> mode_count == 1 ) {\n mode_number = 0 ;\n }\n else {\n GET_VALIDATED_INDEX ( mode_number , ilog ( vc -> mode_count - 1 ) , vc -> mode_count ) }\n vc -> mode_number = mode_number ;\n mapping = & vc -> mappings [ vc -> modes [ mode_number ] . mapping ] ;\n av_dlog ( NULL , \" Mode number: %u , mapping: %d , blocktype %d\\n\" , mode_number , vc -> modes [ mode_number ] . mapping , vc -> modes [ mode_number ] . blockflag ) ;\n blockflag = vc -> modes [ mode_number ] . blockflag ;\n blocksize = vc -> blocksize [ blockflag ] ;\n vlen = blocksize / 2 ;\n if ( blockflag ) {\n previous_window = get_bits ( gb , 1 ) ;\n skip_bits1 ( gb ) ;\n }\n memset ( ch_res_ptr , 0 , sizeof ( float ) * vc -> audio_channels * vlen ) ;\n for ( i = 0 ;\n i < vc -> audio_channels ;\n ++ i ) memset ( floor_ptr [ i ] , 0 , vlen * sizeof ( floor_ptr [ 0 ] [ 0 ] ) ) ;\n for ( i = 0 ;\n i < vc -> audio_channels ;\n ++ i ) {\n vorbis_floor * floor ;\n int ret ;\n if ( mapping -> submaps > 1 ) {\n floor = & vc -> floors [ mapping -> submap_floor [ mapping -> mux [ i ] ] ] ;\n }\n else {\n floor = & vc -> floors [ mapping -> submap_floor [ 0 ] ] ;\n }\n ret = floor -> decode ( vc , & floor -> data , floor_ptr [ i ] ) ;\n if ( ret < 0 ) {\n av_log ( vc -> avctx , AV_LOG_ERROR , \"Invalid codebook in vorbis_floor_decode.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n no_residue [ i ] = ret ;\n }\n for ( i = mapping -> coupling_steps - 1 ;\n i >= 0 ;\n -- i ) {\n if ( ! ( no_residue [ mapping -> magnitude [ i ] ] & no_residue [ mapping -> angle [ i ] ] ) ) {\n no_residue [ mapping -> magnitude [ i ] ] = 0 ;\n no_residue [ mapping -> angle [ i ] ] = 0 ;\n }\n }\n for ( i = 0 ;\n i < mapping -> submaps ;\n ++ i ) {\n vorbis_residue * residue ;\n unsigned ch = 0 ;\n int ret ;\n for ( j = 0 ;\n j < vc -> audio_channels ;\n ++ j ) {\n if ( ( mapping -> submaps == 1 ) || ( i == mapping -> mux [ j ] ) ) {\n res_chan [ j ] = res_num ;\n if ( no_residue [ j ] ) {\n do_not_decode [ ch ] = 1 ;\n }\n else {\n do_not_decode [ ch ] = 0 ;\n }\n ++ ch ;\n ++ res_num ;\n }\n }\n residue = & vc -> residues [ mapping -> submap_residue [ i ] ] ;\n if ( ch_left < ch ) {\n av_log ( vc -> avctx , AV_LOG_ERROR , \"Too many channels in vorbis_floor_decode.\\n\" ) ;\n return - 1 ;\n }\n if ( ch ) {\n ret = vorbis_residue_decode ( vc , residue , ch , do_not_decode , ch_res_ptr , vlen , ch_left ) ;\n if ( ret < 0 ) return ret ;\n }\n ch_res_ptr += ch * vlen ;\n ch_left -= ch ;\n }\n if ( ch_left > 0 ) return AVERROR_INVALIDDATA ;\n for ( i = mapping -> coupling_steps - 1 ;\n i >= 0 ;\n -- i ) {\n float * mag , * ang ;\n mag = vc -> channel_residues + res_chan [ mapping -> magnitude [ i ] ] * blocksize / 2 ;\n ang = vc -> channel_residues + res_chan [ mapping -> angle [ i ] ] * blocksize / 2 ;\n vc -> dsp . vorbis_inverse_coupling ( mag , ang , blocksize / 2 ) ;\n }\n mdct = & vc -> mdct [ blockflag ] ;\n for ( j = vc -> audio_channels - 1 ;\n j >= 0 ;\n j -- ) {\n ch_res_ptr = vc -> channel_residues + res_chan [ j ] * blocksize / 2 ;\n vc -> fdsp . vector_fmul ( floor_ptr [ j ] , floor_ptr [ j ] , ch_res_ptr , blocksize / 2 ) ;\n mdct -> imdct_half ( mdct , ch_res_ptr , floor_ptr [ j ] ) ;\n }\n retlen = ( blocksize + vc -> blocksize [ previous_window ] ) / 4 ;\n for ( j = 0 ;\n j < vc -> audio_channels ;\n j ++ ) {\n unsigned bs0 = vc -> blocksize [ 0 ] ;\n unsigned bs1 = vc -> blocksize [ 1 ] ;\n float * residue = vc -> channel_residues + res_chan [ j ] * blocksize / 2 ;\n float * saved = vc -> saved + j * bs1 / 4 ;\n float * ret = floor_ptr [ j ] ;\n float * buf = residue ;\n const float * win = vc -> win [ blockflag & previous_window ] ;\n if ( blockflag == previous_window ) {\n vc -> fdsp . vector_fmul_window ( ret , saved , buf , win , blocksize / 4 ) ;\n }\n else if ( blockflag > previous_window ) {\n vc -> fdsp . vector_fmul_window ( ret , saved , buf , win , bs0 / 4 ) ;\n memcpy ( ret + bs0 / 2 , buf + bs0 / 4 , ( ( bs1 - bs0 ) / 4 ) * sizeof ( float ) ) ;\n }\n else {\n memcpy ( ret , saved , ( ( bs1 - bs0 ) / 4 ) * sizeof ( float ) ) ;\n vc -> fdsp . vector_fmul_window ( ret + ( bs1 - bs0 ) / 4 , saved + ( bs1 - bs0 ) / 4 , buf , win , bs0 / 4 ) ;\n }\n memcpy ( saved , buf + blocksize / 4 , blocksize / 4 * sizeof ( float ) ) ;\n }\n vc -> previous_window = blockflag ;\n return retlen ;\n }"}
{"idx": 6364, "target": 0, "func": "static gboolean should_get_mime_list ( NautilusFile * file ) {\n return lacks_mime_list ( file ) && ! file -> details -> loading_directory ;\n }"}
{"idx": 6365, "target": 0, "func": "static gboolean refresh_connections ( gpointer data ) {\n struct row_pairs * lastconn = NULL , * cache = NULL ;\n GtkTreeModel * model = GTK_TREE_MODEL ( ls_conns ) ;\n void * list , * next , * listend ;\n struct conn_object * conn ;\n GtkTreeIter iter ;\n char flags [ 2 ] , status [ 8 ] ;\n unsigned int tx = 0 , rx = 0 ;\n struct row_pairs * row = NULL , * nextrow = NULL , top , bottom ;\n ( void ) data ;\n memset ( & flags , 0 , sizeof ( flags ) ) ;\n memset ( & status , 0 , sizeof ( status ) ) ;\n if ( ls_conns ) {\n if ( ! gtk_widget_get_visible ( conns_window ) ) return ( FALSE ) ;\n }\n else {\n ls_conns = gtk_list_store_new ( 12 , G_TYPE_STRING , G_TYPE_STRING , G_TYPE_UINT , G_TYPE_STRING , G_TYPE_STRING , G_TYPE_UINT , G_TYPE_STRING , G_TYPE_STRING , G_TYPE_UINT , G_TYPE_UINT , G_TYPE_STRING , G_TYPE_POINTER ) ;\n connections = NULL ;\n }\n for ( row = connections ;\n row ;\n row = nextrow ) {\n nextrow = row -> next ;\n if ( conntrack_get ( 0 , row -> conn , NULL ) == NULL ) {\n gtk_list_store_remove ( GTK_LIST_STORE ( ls_conns ) , & row -> iter ) ;\n if ( row -> next ) row -> next -> prev = row -> prev ;\n if ( row -> prev ) row -> prev -> next = row -> next ;\n else connections = row -> next ;\n SAFE_FREE ( row ) ;\n }\n if ( row ) lastconn = row ;\n }\n if ( ! lastconn ) {\n listend = conntrack_get ( 0 , NULL , NULL ) ;\n if ( listend == NULL ) return ( TRUE ) ;\n }\n else {\n listend = lastconn -> conn ;\n }\n for ( list = conntrack_get ( + 1 , listend , NULL ) ;\n list ;\n list = next ) {\n next = conntrack_get ( + 1 , list , & conn ) ;\n cache = gtkui_connections_add ( conn , list , & connections ) ;\n if ( cache ) lastconn = cache ;\n }\n gtkui_connection_list_row ( 1 , & top ) ;\n gtkui_connection_list_row ( 0 , & bottom ) ;\n if ( top . conn == NULL ) return ( TRUE ) ;\n iter = top . iter ;\n do {\n gtk_tree_model_get ( model , & iter , 11 , & list , - 1 ) ;\n conntrack_get ( 0 , list , & conn ) ;\n conntrack_flagstr ( conn , flags , sizeof ( flags ) ) ;\n conntrack_statusstr ( conn , status , sizeof ( status ) ) ;\n tx = conn -> tx ;\n rx = conn -> rx ;\n gtk_list_store_set ( ls_conns , & iter , 0 , flags , 7 , status , 8 , tx , 9 , rx , - 1 ) ;\n if ( bottom . conn == list ) break ;\n }\n while ( gtk_tree_model_iter_next ( model , & iter ) ) ;\n gtk_tree_model_filter_refilter ( GTK_TREE_MODEL_FILTER ( filter . model ) ) ;\n return ( TRUE ) ;\n }"}
{"idx": 6366, "target": 0, "func": "static int dump_sp ( struct xfrm_policy * xp , int dir , int count , void * ptr ) {\n struct pfkey_sock * pfk = ptr ;\n struct sk_buff * out_skb ;\n struct sadb_msg * out_hdr ;\n int err ;\n if ( ! pfkey_can_dump ( & pfk -> sk ) ) return - ENOBUFS ;\n out_skb = pfkey_xfrm_policy2msg_prep ( xp ) ;\n if ( IS_ERR ( out_skb ) ) return PTR_ERR ( out_skb ) ;\n err = pfkey_xfrm_policy2msg ( out_skb , xp , dir ) ;\n if ( err < 0 ) return err ;\n out_hdr = ( struct sadb_msg * ) out_skb -> data ;\n out_hdr -> sadb_msg_version = pfk -> dump . msg_version ;\n out_hdr -> sadb_msg_type = SADB_X_SPDDUMP ;\n out_hdr -> sadb_msg_satype = SADB_SATYPE_UNSPEC ;\n out_hdr -> sadb_msg_errno = 0 ;\n out_hdr -> sadb_msg_seq = count + 1 ;\n out_hdr -> sadb_msg_pid = pfk -> dump . msg_portid ;\n if ( pfk -> dump . skb ) pfkey_broadcast ( pfk -> dump . skb , GFP_ATOMIC , BROADCAST_ONE , & pfk -> sk , sock_net ( & pfk -> sk ) ) ;\n pfk -> dump . skb = out_skb ;\n return 0 ;\n }"}
{"idx": 6367, "target": 0, "func": "gcry_error_t gcry_pk_sign ( gcry_sexp_t * r_sig , gcry_sexp_t s_hash , gcry_sexp_t s_skey ) {\n gcry_mpi_t * skey = NULL , hash = NULL , * result = NULL ;\n gcry_pk_spec_t * pubkey = NULL ;\n gcry_module_t module = NULL ;\n const char * algo_name , * algo_elems ;\n struct pk_encoding_ctx ctx ;\n int i ;\n int is_ecc ;\n gcry_err_code_t rc ;\n * r_sig = NULL ;\n REGISTER_DEFAULT_PUBKEYS ;\n rc = sexp_to_key ( s_skey , 1 , GCRY_PK_USAGE_SIGN , NULL , & skey , & module , & is_ecc ) ;\n if ( rc ) goto leave ;\n gcry_assert ( module ) ;\n pubkey = ( gcry_pk_spec_t * ) module -> spec ;\n algo_name = pubkey -> aliases ? * pubkey -> aliases : NULL ;\n if ( ! algo_name || ! * algo_name ) algo_name = pubkey -> name ;\n algo_elems = pubkey -> elements_sig ;\n init_encoding_ctx ( & ctx , PUBKEY_OP_SIGN , is_ecc ? 0 : gcry_pk_get_nbits ( s_skey ) ) ;\n rc = sexp_data_to_mpi ( s_hash , & hash , & ctx ) ;\n if ( rc ) goto leave ;\n result = gcry_calloc ( strlen ( algo_elems ) + 1 , sizeof ( * result ) ) ;\n if ( ! result ) {\n rc = gpg_err_code_from_syserror ( ) ;\n goto leave ;\n }\n rc = pubkey_sign ( module -> mod_id , result , hash , skey , & ctx ) ;\n if ( rc ) goto leave ;\n if ( ctx . encoding == PUBKEY_ENC_PSS || ctx . encoding == PUBKEY_ENC_PKCS1 ) {\n unsigned char * em ;\n size_t emlen = ( ctx . nbits + 7 ) / 8 ;\n rc = octet_string_from_mpi ( & em , NULL , result [ 0 ] , emlen ) ;\n if ( rc ) goto leave ;\n rc = gcry_err_code ( gcry_sexp_build ( r_sig , NULL , \"(sig-val(%s(s%b)))\" , algo_name , ( int ) emlen , em ) ) ;\n gcry_free ( em ) ;\n if ( rc ) goto leave ;\n }\n else {\n char * string , * p ;\n size_t nelem , needed = strlen ( algo_name ) + 20 ;\n void * * arg_list ;\n nelem = strlen ( algo_elems ) ;\n needed += 10 * nelem ;\n string = p = gcry_malloc ( needed ) ;\n if ( ! string ) {\n rc = gpg_err_code_from_syserror ( ) ;\n goto leave ;\n }\n p = stpcpy ( p , \"(sig-val(\" ) ;\n p = stpcpy ( p , algo_name ) ;\n for ( i = 0 ;\n algo_elems [ i ] ;\n i ++ ) {\n * p ++ = '(' ;\n * p ++ = algo_elems [ i ] ;\n p = stpcpy ( p , \"%M)\" ) ;\n }\n strcpy ( p , \"))\" ) ;\n arg_list = malloc ( nelem * sizeof * arg_list ) ;\n if ( ! arg_list ) {\n rc = gpg_err_code_from_syserror ( ) ;\n goto leave ;\n }\n for ( i = 0 ;\n i < nelem ;\n i ++ ) arg_list [ i ] = result + i ;\n rc = gcry_sexp_build_array ( r_sig , NULL , string , arg_list ) ;\n free ( arg_list ) ;\n if ( rc ) BUG ( ) ;\n gcry_free ( string ) ;\n }\n leave : if ( skey ) {\n if ( is_ecc ) for ( i = 0 ;\n i < 7 ;\n i ++ ) {\n if ( skey [ i ] ) mpi_free ( skey [ i ] ) ;\n skey [ i ] = NULL ;\n }\n else release_mpi_array ( skey ) ;\n gcry_free ( skey ) ;\n }\n if ( hash ) mpi_free ( hash ) ;\n if ( result ) {\n release_mpi_array ( result ) ;\n gcry_free ( result ) ;\n }\n return gcry_error ( rc ) ;\n }"}
{"idx": 6368, "target": 0, "func": "static List * add_unique_group_var ( PlannerInfo * root , List * varinfos , Node * var , VariableStatData * vardata ) {\n GroupVarInfo * varinfo ;\n double ndistinct ;\n bool isdefault ;\n ListCell * lc ;\n ndistinct = get_variable_numdistinct ( vardata , & isdefault ) ;\n lc = list_head ( varinfos ) ;\n while ( lc ) {\n varinfo = ( GroupVarInfo * ) lfirst ( lc ) ;\n lc = lnext ( lc ) ;\n if ( equal ( var , varinfo -> var ) ) return varinfos ;\n if ( vardata -> rel != varinfo -> rel && exprs_known_equal ( root , var , varinfo -> var ) ) {\n if ( varinfo -> ndistinct <= ndistinct ) {\n return varinfos ;\n }\n else {\n varinfos = list_delete_ptr ( varinfos , varinfo ) ;\n }\n }\n }\n varinfo = ( GroupVarInfo * ) palloc ( sizeof ( GroupVarInfo ) ) ;\n varinfo -> var = var ;\n varinfo -> rel = vardata -> rel ;\n varinfo -> ndistinct = ndistinct ;\n varinfos = lappend ( varinfos , varinfo ) ;\n return varinfos ;\n }"}
{"idx": 6369, "target": 0, "func": "void EVP_EncodeUpdate ( EVP_ENCODE_CTX * ctx , unsigned char * out , int * outl , const unsigned char * in , int inl ) {\n int i , j ;\n unsigned int total = 0 ;\n * outl = 0 ;\n if ( inl <= 0 ) return ;\n OPENSSL_assert ( ctx -> length <= ( int ) sizeof ( ctx -> enc_data ) ) ;\n if ( ctx -> length - ctx -> num > inl ) {\n memcpy ( & ( ctx -> enc_data [ ctx -> num ] ) , in , inl ) ;\n ctx -> num += inl ;\n return ;\n }\n if ( ctx -> num != 0 ) {\n i = ctx -> length - ctx -> num ;\n memcpy ( & ( ctx -> enc_data [ ctx -> num ] ) , in , i ) ;\n in += i ;\n inl -= i ;\n j = EVP_EncodeBlock ( out , ctx -> enc_data , ctx -> length ) ;\n ctx -> num = 0 ;\n out += j ;\n * ( out ++ ) = '\\n' ;\n * out = '\\0' ;\n total = j + 1 ;\n }\n while ( inl >= ctx -> length ) {\n j = EVP_EncodeBlock ( out , in , ctx -> length ) ;\n in += ctx -> length ;\n inl -= ctx -> length ;\n out += j ;\n * ( out ++ ) = '\\n' ;\n * out = '\\0' ;\n total += j + 1 ;\n }\n if ( inl != 0 ) memcpy ( & ( ctx -> enc_data [ 0 ] ) , in , inl ) ;\n ctx -> num = inl ;\n * outl = total ;\n }"}
{"idx": 6370, "target": 0, "func": "static int ipvideo_decode_block_opcode_0x9_16 ( IpvideoContext * s , AVFrame * frame ) {\n int x , y ;\n uint16_t P [ 4 ] ;\n uint16_t * pixel_ptr = ( uint16_t * ) s -> pixel_ptr ;\n for ( x = 0 ;\n x < 4 ;\n x ++ ) P [ x ] = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n if ( ! ( P [ 0 ] & 0x8000 ) ) {\n if ( ! ( P [ 2 ] & 0x8000 ) ) {\n for ( y = 0 ;\n y < 8 ;\n y ++ ) {\n int flags = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n for ( x = 0 ;\n x < 8 ;\n x ++ , flags >>= 2 ) * pixel_ptr ++ = P [ flags & 0x03 ] ;\n pixel_ptr += s -> line_inc ;\n }\n }\n else {\n uint32_t flags ;\n flags = bytestream2_get_le32 ( & s -> stream_ptr ) ;\n for ( y = 0 ;\n y < 8 ;\n y += 2 ) {\n for ( x = 0 ;\n x < 8 ;\n x += 2 , flags >>= 2 ) {\n pixel_ptr [ x ] = pixel_ptr [ x + 1 ] = pixel_ptr [ x + s -> stride ] = pixel_ptr [ x + 1 + s -> stride ] = P [ flags & 0x03 ] ;\n }\n pixel_ptr += s -> stride * 2 ;\n }\n }\n }\n else {\n uint64_t flags ;\n flags = bytestream2_get_le64 ( & s -> stream_ptr ) ;\n if ( ! ( P [ 2 ] & 0x8000 ) ) {\n for ( y = 0 ;\n y < 8 ;\n y ++ ) {\n for ( x = 0 ;\n x < 8 ;\n x += 2 , flags >>= 2 ) {\n pixel_ptr [ x ] = pixel_ptr [ x + 1 ] = P [ flags & 0x03 ] ;\n }\n pixel_ptr += s -> stride ;\n }\n }\n else {\n for ( y = 0 ;\n y < 8 ;\n y += 2 ) {\n for ( x = 0 ;\n x < 8 ;\n x ++ , flags >>= 2 ) {\n pixel_ptr [ x ] = pixel_ptr [ x + s -> stride ] = P [ flags & 0x03 ] ;\n }\n pixel_ptr += s -> stride * 2 ;\n }\n }\n }\n return 0 ;\n }"}
{"idx": 6371, "target": 0, "func": "static inline void pcnet_rmd_store ( PCNetState * s , struct pcnet_RMD * rmd , hwaddr addr ) {\n if ( ! BCR_SSIZE32 ( s ) ) {\n struct {\n uint32_t rbadr ;\n int16_t buf_length ;\n int16_t msg_length ;\n }\n rda ;\n rda . rbadr = cpu_to_le32 ( ( rmd -> rbadr & 0xffffff ) | ( ( rmd -> status & 0xff00 ) << 16 ) ) ;\n rda . buf_length = cpu_to_le16 ( rmd -> buf_length ) ;\n rda . msg_length = cpu_to_le16 ( rmd -> msg_length ) ;\n s -> phys_mem_write ( s -> dma_opaque , addr , ( void * ) & rda , sizeof ( rda ) , 0 ) ;\n }\n else {\n struct {\n uint32_t rbadr ;\n int16_t buf_length ;\n int16_t status ;\n uint32_t msg_length ;\n uint32_t res ;\n }\n rda ;\n rda . rbadr = cpu_to_le32 ( rmd -> rbadr ) ;\n rda . buf_length = cpu_to_le16 ( rmd -> buf_length ) ;\n rda . status = cpu_to_le16 ( rmd -> status ) ;\n rda . msg_length = cpu_to_le32 ( rmd -> msg_length ) ;\n rda . res = cpu_to_le32 ( rmd -> res ) ;\n if ( BCR_SWSTYLE ( s ) == 3 ) {\n uint32_t tmp = rda . rbadr ;\n rda . rbadr = rda . msg_length ;\n rda . msg_length = tmp ;\n }\n s -> phys_mem_write ( s -> dma_opaque , addr , ( void * ) & rda , sizeof ( rda ) , 0 ) ;\n }\n }"}
{"idx": 6372, "target": 0, "func": "void ntpd_set_tod_using ( const char * which ) {\n char line [ 128 ] ;\n snprintf ( line , sizeof ( line ) , \"settimeofday=\\\"%s\\\"\" , which ) ;\n set_sys_var ( line , strlen ( line ) + 1 , RO ) ;\n }"}
{"idx": 6373, "target": 0, "func": "static int dissect_rsl_ie_frame_no ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_tree * ie_tree ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_FRAME_NO ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 3 , ett_ie_frame_no , NULL , \"Frame Number IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_req_ref_T1prim , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_req_ref_T3 , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_req_ref_T2 , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n return offset ;\n }"}
{"idx": 6374, "target": 0, "func": "static void initial_reordering ( const hb_ot_shape_plan_t * plan , hb_font_t * font , hb_buffer_t * buffer ) {\n insert_dotted_circles ( plan , font , buffer ) ;\n foreach_syllable ( buffer , start , end ) initial_reordering_syllable ( plan , font -> face , buffer , start , end ) ;\n }"}
{"idx": 6375, "target": 0, "func": "TEST_F ( ScoredHistoryMatchTest , ScoringBookmarks ) {\n base : : Time now = base : : Time : : NowFromSystemTime ( ) ;\n std : : string url_string ( \"http://fedcba\" ) ;\n const GURL url ( url_string ) ;\n history : : URLRow row ( MakeURLRow ( url_string . c_str ( ) , \"abcd bcd\" , 8 , 3 , 1 ) ) ;\n RowWordStarts word_starts ;\n PopulateWordStarts ( row , & word_starts ) ;\n WordStarts one_word_no_offset ( 1 , 0u ) ;\n VisitInfoVector visits = CreateVisitInfoVector ( 8 , 3 , now ) ;\n ScoredHistoryMatch scored ( row , visits , ASCIIToUTF16 ( \"abc\" ) , Make1Term ( \"abc\" ) , one_word_no_offset , word_starts , false , nullptr , now ) ;\n base : : AutoReset < int > reset ( & ScoredHistoryMatch : : bookmark_value_ , 5 ) ;\n ScoredHistoryMatch scored_with_bookmark ( row , visits , ASCIIToUTF16 ( \"abc\" ) , Make1Term ( \"abc\" ) , one_word_no_offset , word_starts , true , nullptr , now ) ;\n EXPECT_GT ( scored_with_bookmark . raw_score , scored . raw_score ) ;\n }"}
{"idx": 6376, "target": 0, "func": "static bool parse_extendedKeyUsage ( chunk_t blob , int level0 , private_x509_cert_t * this ) {\n asn1_parser_t * parser ;\n chunk_t object ;\n int objectID ;\n bool success ;\n parser = asn1_parser_create ( extendedKeyUsageObjects , blob ) ;\n parser -> set_top_level ( parser , level0 ) ;\n while ( parser -> iterate ( parser , & objectID , & object ) ) {\n if ( objectID == EXT_KEY_USAGE_PURPOSE_ID ) {\n switch ( asn1_known_oid ( object ) ) {\n case OID_SERVER_AUTH : this -> flags |= X509_SERVER_AUTH ;\n break ;\n case OID_CLIENT_AUTH : this -> flags |= X509_CLIENT_AUTH ;\n break ;\n case OID_IKE_INTERMEDIATE : this -> flags |= X509_IKE_INTERMEDIATE ;\n break ;\n case OID_OCSP_SIGNING : this -> flags |= X509_OCSP_SIGNER ;\n break ;\n case OID_MS_SMARTCARD_LOGON : this -> flags |= X509_MS_SMARTCARD_LOGON ;\n break ;\n default : break ;\n }\n }\n }\n success = parser -> success ( parser ) ;\n parser -> destroy ( parser ) ;\n return success ;\n }"}
{"idx": 6377, "target": 0, "func": "inline MIMEHdrImpl * _hdr_mloc_to_mime_hdr_impl ( TSMLoc mloc ) {\n return _hdr_obj_to_mime_hdr_impl ( ( HdrHeapObjImpl * ) mloc ) ;\n }"}
{"idx": 6378, "target": 0, "func": "gcry_error_t gcry_pk_decrypt ( gcry_sexp_t * r_plain , gcry_sexp_t s_data , gcry_sexp_t s_skey ) {\n gcry_mpi_t * skey = NULL , * data = NULL , plain = NULL ;\n unsigned char * unpad = NULL ;\n size_t unpadlen = 0 ;\n int modern , flags ;\n struct pk_encoding_ctx ctx ;\n gcry_err_code_t rc ;\n gcry_module_t module_enc = NULL , module_key = NULL ;\n * r_plain = NULL ;\n ctx . label = NULL ;\n REGISTER_DEFAULT_PUBKEYS ;\n rc = sexp_to_key ( s_skey , 1 , GCRY_PK_USAGE_ENCR , NULL , & skey , & module_key , NULL ) ;\n if ( rc ) goto leave ;\n init_encoding_ctx ( & ctx , PUBKEY_OP_DECRYPT , gcry_pk_get_nbits ( s_skey ) ) ;\n rc = sexp_to_enc ( s_data , & data , & module_enc , & modern , & flags , & ctx ) ;\n if ( rc ) goto leave ;\n if ( module_key -> mod_id != module_enc -> mod_id ) {\n rc = GPG_ERR_CONFLICT ;\n goto leave ;\n }\n rc = pubkey_decrypt ( module_key -> mod_id , & plain , data , skey , flags ) ;\n if ( rc ) goto leave ;\n switch ( ctx . encoding ) {\n case PUBKEY_ENC_PKCS1 : rc = pkcs1_decode_for_encryption ( & unpad , & unpadlen , gcry_pk_get_nbits ( s_skey ) , plain ) ;\n mpi_free ( plain ) ;\n plain = NULL ;\n if ( ! rc ) rc = gcry_err_code ( gcry_sexp_build ( r_plain , NULL , \"(value %b)\" , ( int ) unpadlen , unpad ) ) ;\n break ;\n case PUBKEY_ENC_OAEP : rc = oaep_decode ( & unpad , & unpadlen , gcry_pk_get_nbits ( s_skey ) , ctx . hash_algo , plain , ctx . label , ctx . labellen ) ;\n mpi_free ( plain ) ;\n plain = NULL ;\n if ( ! rc ) rc = gcry_err_code ( gcry_sexp_build ( r_plain , NULL , \"(value %b)\" , ( int ) unpadlen , unpad ) ) ;\n break ;\n default : rc = gcry_err_code ( gcry_sexp_build ( r_plain , NULL , modern ? \"(value %m)\" : \"%m\" , plain ) ) ;\n break ;\n }\n leave : gcry_free ( unpad ) ;\n if ( skey ) {\n release_mpi_array ( skey ) ;\n gcry_free ( skey ) ;\n }\n mpi_free ( plain ) ;\n if ( data ) {\n release_mpi_array ( data ) ;\n gcry_free ( data ) ;\n }\n if ( module_key || module_enc ) {\n ath_mutex_lock ( & pubkeys_registered_lock ) ;\n if ( module_key ) _gcry_module_release ( module_key ) ;\n if ( module_enc ) _gcry_module_release ( module_enc ) ;\n ath_mutex_unlock ( & pubkeys_registered_lock ) ;\n }\n gcry_free ( ctx . label ) ;\n return gcry_error ( rc ) ;\n }"}
{"idx": 6379, "target": 1, "func": "void ff_estimate_b_frame_motion ( MpegEncContext * s , int mb_x , int mb_y ) {\n MotionEstContext * const c = & s -> me ;\n const int penalty_factor = c -> mb_penalty_factor ;\n int fmin , bmin , dmin , fbmin , bimin , fimin ;\n int type = 0 ;\n const int xy = mb_y * s -> mb_stride + mb_x ;\n init_ref ( c , s -> new_picture . f . data , s -> last_picture . f . data , s -> next_picture . f . data , 16 * mb_x , 16 * mb_y , 2 ) ;\n get_limits ( s , 16 * mb_x , 16 * mb_y ) ;\n c -> skip = 0 ;\n if ( s -> codec_id == AV_CODEC_ID_MPEG4 && s -> next_picture . f . mbskip_table [ xy ] ) {\n int score = direct_search ( s , mb_x , mb_y ) ;\n score = ( ( unsigned ) ( score * score + 128 * 256 ) ) >> 16 ;\n c -> mc_mb_var_sum_temp += score ;\n s -> current_picture . mc_mb_var [ mb_y * s -> mb_stride + mb_x ] = score ;\n s -> mb_type [ mb_y * s -> mb_stride + mb_x ] = CANDIDATE_MB_TYPE_DIRECT0 ;\n return ;\n }\n if ( s -> codec_id == AV_CODEC_ID_MPEG4 ) dmin = direct_search ( s , mb_x , mb_y ) ;\n else dmin = INT_MAX ;\n c -> skip = 0 ;\n fmin = ff_estimate_motion_b ( s , mb_x , mb_y , s -> b_forw_mv_table , 0 , s -> f_code ) + 3 * penalty_factor ;\n c -> skip = 0 ;\n bmin = ff_estimate_motion_b ( s , mb_x , mb_y , s -> b_back_mv_table , 2 , s -> b_code ) + 2 * penalty_factor ;\n av_dlog ( s , \" %d %d \" , s -> b_forw_mv_table [ xy ] [ 0 ] , s -> b_forw_mv_table [ xy ] [ 1 ] ) ;\n c -> skip = 0 ;\n fbmin = bidir_refine ( s , mb_x , mb_y ) + penalty_factor ;\n av_dlog ( s , \"%d %d %d %d\\n\" , dmin , fmin , bmin , fbmin ) ;\n if ( s -> flags & CODEC_FLAG_INTERLACED_ME ) {\n c -> skip = 0 ;\n c -> current_mv_penalty = c -> mv_penalty [ s -> f_code ] + MAX_MV ;\n fimin = interlaced_search ( s , 0 , s -> b_field_mv_table [ 0 ] , s -> b_field_select_table [ 0 ] , s -> b_forw_mv_table [ xy ] [ 0 ] , s -> b_forw_mv_table [ xy ] [ 1 ] , 0 ) ;\n c -> current_mv_penalty = c -> mv_penalty [ s -> b_code ] + MAX_MV ;\n bimin = interlaced_search ( s , 2 , s -> b_field_mv_table [ 1 ] , s -> b_field_select_table [ 1 ] , s -> b_back_mv_table [ xy ] [ 0 ] , s -> b_back_mv_table [ xy ] [ 1 ] , 0 ) ;\n }\n else fimin = bimin = INT_MAX ;\n {\n int score = fmin ;\n type = CANDIDATE_MB_TYPE_FORWARD ;\n if ( dmin <= score ) {\n score = dmin ;\n type = CANDIDATE_MB_TYPE_DIRECT ;\n }\n if ( bmin < score ) {\n score = bmin ;\n type = CANDIDATE_MB_TYPE_BACKWARD ;\n }\n if ( fbmin < score ) {\n score = fbmin ;\n type = CANDIDATE_MB_TYPE_BIDIR ;\n }\n if ( fimin < score ) {\n score = fimin ;\n type = CANDIDATE_MB_TYPE_FORWARD_I ;\n }\n if ( bimin < score ) {\n score = bimin ;\n type = CANDIDATE_MB_TYPE_BACKWARD_I ;\n }\n score = ( ( unsigned ) ( score * score + 128 * 256 ) ) >> 16 ;\n c -> mc_mb_var_sum_temp += score ;\n s -> current_picture . mc_mb_var [ mb_y * s -> mb_stride + mb_x ] = score ;\n }\n if ( c -> avctx -> mb_decision > FF_MB_DECISION_SIMPLE ) {\n type = CANDIDATE_MB_TYPE_FORWARD | CANDIDATE_MB_TYPE_BACKWARD | CANDIDATE_MB_TYPE_BIDIR | CANDIDATE_MB_TYPE_DIRECT ;\n if ( fimin < INT_MAX ) type |= CANDIDATE_MB_TYPE_FORWARD_I ;\n if ( bimin < INT_MAX ) type |= CANDIDATE_MB_TYPE_BACKWARD_I ;\n if ( fimin < INT_MAX && bimin < INT_MAX ) {\n type |= CANDIDATE_MB_TYPE_BIDIR_I ;\n }\n if ( dmin > 256 * 256 * 16 ) type &= ~ CANDIDATE_MB_TYPE_DIRECT ;\n if ( s -> codec_id == AV_CODEC_ID_MPEG4 && type & CANDIDATE_MB_TYPE_DIRECT && s -> flags & CODEC_FLAG_MV0 && * ( uint32_t * ) s -> b_direct_mv_table [ xy ] ) type |= CANDIDATE_MB_TYPE_DIRECT0 ;\n }\n s -> mb_type [ mb_y * s -> mb_stride + mb_x ] = type ;\n }"}
{"idx": 6380, "target": 0, "func": "void * jas_malloc ( size_t size ) {\n void * result ;\n JAS_DBGLOG ( 101 , ( \"jas_malloc(%zu)\\n\" , size ) ) ;\n result = malloc ( size ) ;\n JAS_DBGLOG ( 100 , ( \"jas_malloc(%zu) -> %p\\n\" , size , result ) ) ;\n return result ;\n }"}
{"idx": 6381, "target": 0, "func": "int TSHttpTxnDebugGet ( TSHttpTxn txnp ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n return ( ( HttpSM * ) txnp ) -> debug_on ;\n }"}
{"idx": 6382, "target": 0, "func": "void tee_fputs ( const char * s , FILE * file ) {\n fputs ( s , file ) ;\n if ( opt_outfile ) fputs ( s , OUTFILE ) ;\n }"}
{"idx": 6383, "target": 0, "func": "static gint parse_arg ( tvbuff_t * tvb , packet_info * pinfo , proto_item * header_item , guint encoding , gint offset , proto_tree * field_tree , gboolean is_reply_to , guint8 type_id , guint8 field_code , guint8 * * signature , guint8 * signature_length , gint field_starting_offset ) {\n gint length ;\n gint padding_start ;\n gint saved_offset = offset ;\n const gchar * header_type_name = NULL ;\n switch ( type_id ) {\n case ARG_INVALID : header_type_name = \"invalid\" ;\n offset = round_to_8byte ( offset + 1 , field_starting_offset ) ;\n break ;\n case ARG_ARRAY : {\n static gchar bad_array_format [ ] = \"BAD DATA: Array length (in bytes) is %d. Remaining packet length is %d.\" ;\n proto_item * item ;\n proto_tree * tree ;\n guint8 * sig_saved ;\n gint starting_offset ;\n gint number_of_items = 0 ;\n guint8 remaining_sig_length = * signature_length ;\n gint packet_length = ( gint ) tvb_reported_length ( tvb ) ;\n header_type_name = \"array\" ;\n if ( * signature == NULL || * signature_length < 1 ) {\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"BAD DATA: A %s argument needs a signature.\" , header_type_name ) ;\n return tvb_reported_length ( tvb ) ;\n }\n sig_saved = ( * signature ) + 1 ;\n padding_start = offset ;\n offset = round_to_4byte ( offset , field_starting_offset ) ;\n add_padding_item ( padding_start , offset , tvb , field_tree ) ;\n length = ( gint ) get_uint32 ( tvb , offset , encoding ) ;\n padding_start = offset + 4 ;\n starting_offset = pad_according_to_type ( padding_start , field_starting_offset , packet_length , * sig_saved ) ;\n if ( length < 0 || length > MAX_ARRAY_LEN || starting_offset + length > packet_length ) {\n col_add_fstr ( pinfo -> cinfo , COL_INFO , bad_array_format , length , tvb_reported_length_remaining ( tvb , starting_offset ) ) ;\n return tvb_reported_length ( tvb ) ;\n }\n item = proto_tree_add_item ( field_tree , hf_alljoyn_mess_body_array , tvb , offset , ( starting_offset - offset ) + length , encoding ) ;\n tree = proto_item_add_subtree ( item , ett_alljoyn_mess_body_parameters ) ;\n offset = starting_offset ;\n add_padding_item ( padding_start , offset , tvb , tree ) ;\n if ( 0 == length ) {\n advance_to_end_of_signature ( signature , & remaining_sig_length ) ;\n }\n else {\n while ( ( offset - starting_offset ) < length ) {\n guint8 * sig_pointer ;\n number_of_items ++ ;\n sig_pointer = sig_saved ;\n remaining_sig_length = * signature_length - 1 ;\n offset = parse_arg ( tvb , pinfo , header_item , encoding , offset , tree , is_reply_to , * sig_pointer , field_code , & sig_pointer , & remaining_sig_length , field_starting_offset ) ;\n * signature = sig_pointer ;\n }\n }\n * signature_length = remaining_sig_length ;\n if ( item ) {\n proto_item_append_text ( item , \" of %d '%c' elements\" , number_of_items , * sig_saved ) ;\n }\n }\n break ;\n case ARG_BOOLEAN : header_type_name = \"boolean\" ;\n padding_start = offset ;\n offset = round_to_4byte ( offset , field_starting_offset ) ;\n add_padding_item ( padding_start , offset , tvb , field_tree ) ;\n proto_tree_add_item ( field_tree , hf_alljoyn_boolean , tvb , offset , 4 , encoding ) ;\n offset += 4 ;\n break ;\n case ARG_DOUBLE : header_type_name = \"IEEE 754 double\" ;\n padding_start = offset ;\n offset = round_to_8byte ( offset , field_starting_offset ) ;\n add_padding_item ( padding_start , offset , tvb , field_tree ) ;\n proto_tree_add_item ( field_tree , hf_alljoyn_double , tvb , offset , 8 , encoding ) ;\n offset += 8 ;\n break ;\n case ARG_SIGNATURE : header_type_name = \"signature\" ;\n * signature_length = tvb_get_guint8 ( tvb , offset ) ;\n if ( * signature_length + 2 > tvb_reported_length_remaining ( tvb , offset ) ) {\n gint bytes_left = tvb_reported_length_remaining ( tvb , offset ) ;\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"BAD DATA: Signature length is %d. Only %d bytes left in packet.\" , ( gint ) ( * signature_length ) , bytes_left ) ;\n return tvb_reported_length ( tvb ) ;\n }\n length = * signature_length + 1 ;\n proto_tree_add_item ( field_tree , hf_alljoyn_mess_body_signature_length , tvb , offset , 1 , encoding ) ;\n offset += 1 ;\n proto_tree_add_item ( field_tree , hf_alljoyn_mess_body_signature , tvb , offset , length , ENC_ASCII | ENC_NA ) ;\n * signature = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset , length , ENC_ASCII ) ;\n if ( HDR_SIGNATURE == field_code ) {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" (%s)\" , * signature ) ;\n }\n offset += length ;\n break ;\n case ARG_HANDLE : header_type_name = \"socket handle\" ;\n padding_start = offset ;\n offset = round_to_4byte ( offset , field_starting_offset ) ;\n add_padding_item ( padding_start , offset , tvb , field_tree ) ;\n proto_tree_add_item ( field_tree , hf_alljoyn_handle , tvb , offset , 4 , encoding ) ;\n offset += 4 ;\n break ;\n case ARG_INT32 : header_type_name = \"int32\" ;\n padding_start = offset ;\n offset = round_to_4byte ( offset , field_starting_offset ) ;\n add_padding_item ( padding_start , offset , tvb , field_tree ) ;\n proto_tree_add_item ( field_tree , hf_alljoyn_int32 , tvb , offset , 4 , encoding ) ;\n offset += 4 ;\n break ;\n case ARG_INT16 : header_type_name = \"int16\" ;\n padding_start = offset ;\n offset = round_to_2byte ( offset , field_starting_offset ) ;\n add_padding_item ( padding_start , offset , tvb , field_tree ) ;\n proto_tree_add_item ( field_tree , hf_alljoyn_int16 , tvb , offset , 2 , encoding ) ;\n offset += 2 ;\n break ;\n case ARG_OBJ_PATH : header_type_name = \"object path\" ;\n length = get_uint32 ( tvb , offset , encoding ) + 1 ;\n if ( length < 0 || length > MAX_ARRAY_LEN || length + 4 > tvb_reported_length_remaining ( tvb , offset ) ) {\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"BAD DATA: Object path length is %d. Only %d bytes left in packet.\" , length , tvb_reported_length_remaining ( tvb , offset + 4 ) ) ;\n return tvb_reported_length ( tvb ) ;\n }\n proto_tree_add_item ( field_tree , hf_alljoyn_uint32 , tvb , offset , 4 , encoding ) ;\n offset += 4 ;\n proto_tree_add_item ( field_tree , hf_alljoyn_string_data , tvb , offset , length , ENC_ASCII | ENC_NA ) ;\n offset += length ;\n break ;\n case ARG_UINT16 : header_type_name = \"uint16\" ;\n padding_start = offset ;\n offset = round_to_2byte ( offset , field_starting_offset ) ;\n add_padding_item ( padding_start , offset , tvb , field_tree ) ;\n proto_tree_add_item ( field_tree , hf_alljoyn_uint16 , tvb , offset , 2 , encoding ) ;\n offset += 2 ;\n break ;\n case ARG_STRING : header_type_name = \"string\" ;\n padding_start = offset ;\n offset = round_to_4byte ( offset , field_starting_offset ) ;\n add_padding_item ( padding_start , offset , tvb , field_tree ) ;\n proto_tree_add_item ( field_tree , hf_alljoyn_string_size_32bit , tvb , offset , 4 , encoding ) ;\n length = ( gint ) get_uint32 ( tvb , offset , encoding ) ;\n if ( length < 0 || length > tvb_reported_length_remaining ( tvb , offset ) ) {\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"BAD DATA: String length is %d. Remaining packet length is %d.\" , length , ( gint ) tvb_reported_length_remaining ( tvb , offset ) ) ;\n return tvb_reported_length ( tvb ) ;\n }\n length += 1 ;\n offset += 4 ;\n proto_tree_add_item ( field_tree , hf_alljoyn_string_data , tvb , offset , length , ENC_UTF_8 | ENC_NA ) ;\n if ( HDR_MEMBER == field_code ) {\n guint8 * member_name ;\n member_name = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset , length , ENC_UTF_8 ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" %s\" , member_name ) ;\n }\n offset += length ;\n break ;\n case ARG_UINT64 : header_type_name = \"uint64\" ;\n padding_start = offset ;\n offset = round_to_8byte ( offset , field_starting_offset ) ;\n add_padding_item ( padding_start , offset , tvb , field_tree ) ;\n proto_tree_add_item ( field_tree , hf_alljoyn_uint64 , tvb , offset , 8 , encoding ) ;\n offset += 8 ;\n break ;\n case ARG_UINT32 : header_type_name = \"uint32\" ;\n padding_start = offset ;\n offset = round_to_4byte ( offset , field_starting_offset ) ;\n add_padding_item ( padding_start , offset , tvb , field_tree ) ;\n if ( is_reply_to ) {\n static const gchar format [ ] = \" Replies to: %09u\" ;\n guint32 replies_to ;\n replies_to = get_uint32 ( tvb , offset , encoding ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , format , replies_to ) ;\n if ( header_item ) {\n proto_item * item ;\n item = proto_tree_add_item ( field_tree , hf_alljoyn_uint32 , tvb , offset , 4 , encoding ) ;\n proto_item_set_text ( item , format + 1 , replies_to ) ;\n }\n }\n else {\n proto_tree_add_item ( field_tree , hf_alljoyn_uint32 , tvb , offset , 4 , encoding ) ;\n }\n offset += 4 ;\n break ;\n case ARG_VARIANT : {\n proto_item * item ;\n proto_tree * tree ;\n guint8 * sig_saved ;\n guint8 * sig_pointer ;\n guint8 variant_sig_length ;\n header_type_name = \"variant\" ;\n variant_sig_length = tvb_get_guint8 ( tvb , offset ) ;\n length = variant_sig_length ;\n if ( length > tvb_reported_length_remaining ( tvb , offset ) ) {\n gint bytes_left = tvb_reported_length_remaining ( tvb , offset ) ;\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"BAD DATA: Variant signature length is %d. Only %d bytes left in packet.\" , length , bytes_left ) ;\n offset = tvb_reported_length ( tvb ) ;\n }\n length += 1 ;\n item = proto_tree_add_item ( field_tree , hf_alljoyn_mess_body_variant , tvb , offset , 4 , encoding ) ;\n tree = proto_item_add_subtree ( item , ett_alljoyn_mess_body_parameters ) ;\n proto_tree_add_item ( tree , hf_alljoyn_mess_body_signature_length , tvb , offset , 1 , encoding ) ;\n offset += 1 ;\n tree = proto_item_add_subtree ( item , ett_alljoyn_mess_body_parameters ) ;\n proto_tree_add_item ( tree , hf_alljoyn_mess_body_signature , tvb , offset , length , ENC_ASCII | ENC_NA ) ;\n sig_saved = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset , length , ENC_ASCII ) ;\n offset += length ;\n sig_pointer = sig_saved ;\n while ( ( ( sig_pointer - sig_saved ) < ( length - 1 ) ) && ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) ) {\n proto_item_append_text ( item , \"%c\" , * sig_pointer ) ;\n offset = parse_arg ( tvb , pinfo , header_item , encoding , offset , tree , is_reply_to , * sig_pointer , field_code , & sig_pointer , & variant_sig_length , field_starting_offset ) ;\n }\n proto_item_append_text ( item , \"'\" ) ;\n proto_item_set_end ( item , tvb , offset ) ;\n }\n break ;\n case ARG_INT64 : header_type_name = \"int64\" ;\n padding_start = offset ;\n offset = round_to_8byte ( offset , field_starting_offset ) ;\n add_padding_item ( padding_start , offset , tvb , field_tree ) ;\n proto_tree_add_item ( field_tree , hf_alljoyn_int64 , tvb , offset , 8 , encoding ) ;\n offset += 8 ;\n break ;\n case ARG_BYTE : header_type_name = \"byte\" ;\n proto_tree_add_item ( field_tree , hf_alljoyn_uint8 , tvb , offset , 1 , encoding ) ;\n offset += 1 ;\n break ;\n case ARG_DICT_ENTRY : case ARG_STRUCT : {\n proto_item * item ;\n proto_tree * tree ;\n int hf ;\n guint8 type_stop ;\n if ( type_id == ARG_STRUCT ) {\n header_type_name = \"structure\" ;\n hf = hf_alljoyn_mess_body_structure ;\n type_stop = ')' ;\n }\n else {\n header_type_name = \"dictionary\" ;\n hf = hf_alljoyn_mess_body_dictionary_entry ;\n type_stop = '}\n' ;\n }\n if ( * signature == NULL || * signature_length < 1 ) {\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"BAD DATA: A %s argument needs a signature.\" , header_type_name ) ;\n return tvb_reported_length ( tvb ) ;\n }\n item = proto_tree_add_item ( field_tree , hf , tvb , offset , 4 , encoding ) ;\n append_struct_signature ( item , * signature , * signature_length , type_stop ) ;\n tree = proto_item_add_subtree ( item , ett_alljoyn_mess_body_parameters ) ;\n padding_start = offset ;\n offset = pad_according_to_type ( offset , field_starting_offset , tvb_reported_length ( tvb ) , type_id ) ;\n add_padding_item ( padding_start , offset , tvb , tree ) ;\n ( * signature ) ++ ;\n ( * signature_length ) -- ;\n while ( * signature && * * signature && * * signature != type_stop && tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n offset = parse_arg ( tvb , pinfo , header_item , encoding , offset , tree , is_reply_to , * * signature , field_code , signature , signature_length , field_starting_offset ) ;\n }\n proto_item_set_end ( item , tvb , offset ) ;\n }\n break ;\n default : header_type_name = \"unexpected\" ;\n offset = tvb_reported_length ( tvb ) ;\n break ;\n }\n if ( * signature && ARG_ARRAY != type_id && HDR_INVALID == field_code ) {\n ( * signature ) ++ ;\n ( * signature_length ) -- ;\n }\n if ( NULL != header_item && NULL != header_type_name ) {\n proto_item_append_text ( header_item , \"%s\" , header_type_name ) ;\n }\n if ( offset > ( gint ) tvb_reported_length ( tvb ) ) {\n offset = ( gint ) tvb_reported_length ( tvb ) ;\n }\n else if ( offset == saved_offset ) {\n proto_tree_add_expert ( field_tree , pinfo , & ei_alljoyn_empty_arg , tvb , offset , 0 ) ;\n offset = ( gint ) tvb_reported_length ( tvb ) ;\n }\n return offset ;\n }"}
{"idx": 6384, "target": 0, "func": "static int dissect_h245_SET_OF_VCCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_set_of ( tvb , offset , actx , tree , hf_index , ett_h245_SET_OF_VCCapability , SET_OF_VCCapability_set_of ) ;\n return offset ;\n }"}
{"idx": 6385, "target": 0, "func": "int MDC2_Final ( unsigned char * md , MDC2_CTX * c ) {\n unsigned int i ;\n int j ;\n i = c -> num ;\n j = c -> pad_type ;\n if ( ( i > 0 ) || ( j == 2 ) ) {\n if ( j == 2 ) c -> data [ i ++ ] = 0x80 ;\n memset ( & ( c -> data [ i ] ) , 0 , MDC2_BLOCK - i ) ;\n mdc2_body ( c , c -> data , MDC2_BLOCK ) ;\n }\n memcpy ( md , ( char * ) c -> h , MDC2_BLOCK ) ;\n memcpy ( & ( md [ MDC2_BLOCK ] ) , ( char * ) c -> hh , MDC2_BLOCK ) ;\n return 1 ;\n }"}
{"idx": 6386, "target": 0, "func": "static diam_avp_t * build_simple_avp ( const avp_type_t * type , guint32 code , diam_vnd_t * vendor , const char * name , const value_string * vs , void * data _U_ ) {\n diam_avp_t * a ;\n value_string_ext * vs_ext = NULL ;\n field_display_e base ;\n guint i = 0 ;\n base = ( field_display_e ) type -> base ;\n if ( vs != NULL ) {\n switch ( type -> ft ) {\n case FT_UINT8 : case FT_UINT16 : case FT_UINT32 : case FT_INT8 : case FT_INT16 : case FT_INT32 : break ;\n default : report_failure ( \"Diameter Dictionary: AVP '%s' has a list of values but isn't of a 32-bit or shorter integral type (%s)\\n\" , name , ftype_name ( type -> ft ) ) ;\n return NULL ;\n }\n while ( vs [ i ] . strptr ) {\n i ++ ;\n }\n vs_ext = value_string_ext_new ( vs , i + 1 , wmem_strdup_printf ( wmem_epan_scope ( ) , \"%s_vals_ext\" , name ) ) ;\n base = ( field_display_e ) ( base | BASE_EXT_STRING ) ;\n }\n a = ( diam_avp_t * ) wmem_alloc0 ( wmem_epan_scope ( ) , sizeof ( diam_avp_t ) ) ;\n a -> code = code ;\n a -> vendor = vendor ;\n a -> dissector_v16 = type -> v16 ;\n a -> dissector_rfc = type -> rfc ;\n a -> ett = - 1 ;\n a -> hf_value = - 1 ;\n basic_avp_reginfo ( a , name , type -> ft , base , vs_ext ) ;\n return a ;\n }"}
{"idx": 6387, "target": 0, "func": "static PyObject * string_rsplit ( PyStringObject * self , PyObject * args ) {\n Py_ssize_t len = PyString_GET_SIZE ( self ) , n ;\n Py_ssize_t maxsplit = - 1 ;\n const char * s = PyString_AS_STRING ( self ) , * sub ;\n PyObject * subobj = Py_None ;\n if ( ! PyArg_ParseTuple ( args , \"|On:rsplit\" , & subobj , & maxsplit ) ) return NULL ;\n if ( maxsplit < 0 ) maxsplit = PY_SSIZE_T_MAX ;\n if ( subobj == Py_None ) return stringlib_rsplit_whitespace ( ( PyObject * ) self , s , len , maxsplit ) ;\n if ( PyString_Check ( subobj ) ) {\n sub = PyString_AS_STRING ( subobj ) ;\n n = PyString_GET_SIZE ( subobj ) ;\n }\n # ifdef Py_USING_UNICODE else if ( PyUnicode_Check ( subobj ) ) return PyUnicode_RSplit ( ( PyObject * ) self , subobj , maxsplit ) ;\n # endif else if ( PyObject_AsCharBuffer ( subobj , & sub , & n ) ) return NULL ;\n return stringlib_rsplit ( ( PyObject * ) self , s , len , sub , n , maxsplit ) ;\n }"}
{"idx": 6388, "target": 0, "func": "relpRetVal relpTcpLstnInit ( relpTcp_t * pThis , unsigned char * pLstnPort , int ai_family ) {\n struct addrinfo hints , * res , * r ;\n int error , maxs , * s , on = 1 ;\n int sockflags ;\n unsigned char * pLstnPt ;\n ENTER_RELPFUNC ;\n RELPOBJ_assert ( pThis , Tcp ) ;\n pLstnPt = pLstnPort ;\n assert ( pLstnPt != NULL ) ;\n pThis -> pEngine -> dbgprint ( \"creating relp tcp listen socket on port %s\\n\" , pLstnPt ) ;\n memset ( & hints , 0 , sizeof ( hints ) ) ;\n hints . ai_flags = AI_PASSIVE ;\n hints . ai_family = ai_family ;\n hints . ai_socktype = SOCK_STREAM ;\n error = getaddrinfo ( NULL , ( char * ) pLstnPt , & hints , & res ) ;\n if ( error ) {\n pThis -> pEngine -> dbgprint ( \"error %d querying port '%s'\\n\" , error , pLstnPt ) ;\n ABORT_FINALIZE ( RELP_RET_INVALID_PORT ) ;\n }\n for ( maxs = 0 , r = res ;\n r != NULL ;\n r = r -> ai_next , maxs ++ ) ;\n pThis -> socks = malloc ( ( maxs + 1 ) * sizeof ( int ) ) ;\n if ( pThis -> socks == NULL ) {\n pThis -> pEngine -> dbgprint ( \"couldn't allocate memory for TCP listen sockets, suspending RELP message reception.\" ) ;\n freeaddrinfo ( res ) ;\n ABORT_FINALIZE ( RELP_RET_OUT_OF_MEMORY ) ;\n }\n * pThis -> socks = 0 ;\n s = pThis -> socks + 1 ;\n for ( r = res ;\n r != NULL ;\n r = r -> ai_next ) {\n * s = socket ( r -> ai_family , r -> ai_socktype , r -> ai_protocol ) ;\n if ( * s < 0 ) {\n if ( ! ( r -> ai_family == PF_INET6 && errno == EAFNOSUPPORT ) ) pThis -> pEngine -> dbgprint ( \"creating relp tcp listen socket\" ) ;\n continue ;\n }\n # ifdef IPV6_V6ONLY if ( r -> ai_family == AF_INET6 ) {\n int iOn = 1 ;\n if ( setsockopt ( * s , IPPROTO_IPV6 , IPV6_V6ONLY , ( char * ) & iOn , sizeof ( iOn ) ) < 0 ) {\n close ( * s ) ;\n * s = - 1 ;\n continue ;\n }\n }\n # endif if ( setsockopt ( * s , SOL_SOCKET , SO_REUSEADDR , ( char * ) & on , sizeof ( on ) ) < 0 ) {\n pThis -> pEngine -> dbgprint ( \"error %d setting relp/tcp socket option\\n\" , errno ) ;\n close ( * s ) ;\n * s = - 1 ;\n continue ;\n }\n if ( ( sockflags = fcntl ( * s , F_GETFL ) ) != - 1 ) {\n sockflags |= O_NONBLOCK ;\n sockflags = fcntl ( * s , F_SETFL , sockflags ) ;\n }\n if ( sockflags == - 1 ) {\n pThis -> pEngine -> dbgprint ( \"error %d setting fcntl(O_NONBLOCK) on relp socket\" , errno ) ;\n close ( * s ) ;\n * s = - 1 ;\n continue ;\n }\n # ifdef ENABLE_TLS if ( pThis -> bEnableTLS ) {\n CHKRet ( relpTcpLstnInitTLS ( pThis ) ) ;\n }\n # endif if ( ( bind ( * s , r -> ai_addr , r -> ai_addrlen ) < 0 ) # ifndef IPV6_V6ONLY && ( errno != EADDRINUSE ) # endif ) {\n char msgbuf [ 4096 ] ;\n snprintf ( msgbuf , sizeof ( msgbuf ) , \"error while binding relp tcp socket \" \"on port '%s'\" , pLstnPort ) ;\n msgbuf [ sizeof ( msgbuf ) - 1 ] = '\\0' ;\n callOnErr ( pThis , msgbuf , errno ) ;\n close ( * s ) ;\n * s = - 1 ;\n continue ;\n }\n if ( listen ( * s , pThis -> iSessMax / 10 + 5 ) < 0 ) {\n pThis -> pEngine -> dbgprint ( \"listen with a backlog of %d failed - retrying with default of 32.\" , pThis -> iSessMax / 10 + 5 ) ;\n if ( listen ( * s , 32 ) < 0 ) {\n pThis -> pEngine -> dbgprint ( \"relp listen error %d, suspending\\n\" , errno ) ;\n close ( * s ) ;\n * s = - 1 ;\n continue ;\n }\n }\n ( * pThis -> socks ) ++ ;\n s ++ ;\n }\n if ( res != NULL ) freeaddrinfo ( res ) ;\n if ( * pThis -> socks != maxs ) pThis -> pEngine -> dbgprint ( \"We could initialize %d RELP TCP listen sockets out of %d we received \" \"- this may or may not be an error indication.\\n\" , * pThis -> socks , maxs ) ;\n if ( * pThis -> socks == 0 ) {\n pThis -> pEngine -> dbgprint ( \"No RELP TCP listen socket could successfully be initialized, \" \"message reception via RELP disabled.\\n\" ) ;\n free ( pThis -> socks ) ;\n ABORT_FINALIZE ( RELP_RET_COULD_NOT_BIND ) ;\n }\n finalize_it : LEAVE_RELPFUNC ;\n }"}
{"idx": 6389, "target": 0, "func": "static inline void * ruby_zalloc ( size_t n ) {\n void * p = ruby_xmalloc ( n ) ;\n memset ( p , 0 , n ) ;\n return p ;\n }"}
{"idx": 6390, "target": 0, "func": "static int end_superexec ( i_ctx_t * i_ctx_p ) {\n i_ctx_p -> in_superexec -- ;\n return 0 ;\n }"}
{"idx": 6391, "target": 0, "func": "const char * mime_str_u16_set ( HdrHeap * heap , const char * s_str , int s_len , const char * * d_str , uint16_t * d_len , bool must_copy ) {\n ink_assert ( s_len >= 0 && s_len < UINT16_MAX ) ;\n heap -> free_string ( * d_str , * d_len ) ;\n if ( must_copy && s_str ) {\n s_str = heap -> duplicate_str ( s_str , s_len ) ;\n }\n * d_str = s_str ;\n * d_len = s_len ;\n return s_str ;\n }"}
{"idx": 6392, "target": 0, "func": "static void parse_new_blob ( void ) {\n read_next_command ( ) ;\n parse_mark ( ) ;\n parse_and_store_blob ( & last_blob , NULL , next_mark ) ;\n }"}
{"idx": 6393, "target": 0, "func": "static int SpoolssAddPrinterEx_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ;\n e_ctx_hnd policy_hnd ;\n proto_item * hnd_item ;\n guint32 status ;\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , & policy_hnd , & hnd_item , TRUE , FALSE ) ;\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , & status ) ;\n if ( status == 0 ) {\n const char * pol_name ;\n if ( dcv -> se_data ) {\n pol_name = wmem_strdup_printf ( wmem_packet_scope ( ) , \"AddPrinterEx(%s)\" , ( char * ) dcv -> se_data ) ;\n }\n else {\n pol_name = \"Unknown AddPrinterEx() handle\" ;\n }\n if ( ! pinfo -> fd -> flags . visited ) {\n dcerpc_store_polhnd_name ( & policy_hnd , pinfo , pol_name ) ;\n }\n if ( hnd_item ) proto_item_append_text ( hnd_item , \": %s\" , pol_name ) ;\n }\n return offset ;\n }"}
{"idx": 6394, "target": 0, "func": "void vp8_plane_add_noise_c ( unsigned char * Start , char * noise , char blackclamp [ 16 ] , char whiteclamp [ 16 ] , char bothclamp [ 16 ] , unsigned int Width , unsigned int Height , int Pitch ) {\n unsigned int i , j ;\n for ( i = 0 ;\n i < Height ;\n i ++ ) {\n unsigned char * Pos = Start + i * Pitch ;\n char * Ref = ( char * ) ( noise + ( rand ( ) & 0xff ) ) ;\n for ( j = 0 ;\n j < Width ;\n j ++ ) {\n if ( Pos [ j ] < blackclamp [ 0 ] ) Pos [ j ] = blackclamp [ 0 ] ;\n if ( Pos [ j ] > 255 + whiteclamp [ 0 ] ) Pos [ j ] = 255 + whiteclamp [ 0 ] ;\n Pos [ j ] += Ref [ j ] ;\n }\n }\n }"}
{"idx": 6395, "target": 0, "func": "static int dissect_h245_T_subElementList ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 100 \"../../asn1/h245/h245.cnf\" h223_mux_element dummy_me , * parent_me = h223_me ;\n memset ( & dummy_me , 0 , sizeof ( h223_mux_element ) ) ;\n h223_me = & dummy_me ;\n offset = dissect_per_constrained_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h245_T_subElementList , T_subElementList_sequence_of , 2 , 255 , FALSE ) ;\n parent_me -> sublist = dummy_me . next ;\n h223_me = parent_me ;\n h223_me -> vc = 0 ;\n return offset ;\n }"}
{"idx": 6396, "target": 0, "func": "int TSHttpTxnBackgroundFillStarted ( TSHttpTxn txnp ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * s = ( HttpSM * ) txnp ;\n return ( s -> background_fill == BACKGROUND_FILL_STARTED ) ;\n }"}
{"idx": 6397, "target": 0, "func": "static void timelib_eat_spaces ( char * * ptr ) {\n while ( * * ptr == ' ' || * * ptr == '\\t' ) {\n ++ * ptr ;\n }\n }"}
{"idx": 6398, "target": 0, "func": "static inline void get_lowest_part_y ( H264Context * h , int refs [ 2 ] [ 48 ] , int n , int height , int y_offset , int list0 , int list1 , int * nrefs ) {\n int my ;\n y_offset += 16 * ( h -> mb_y >> MB_FIELD ( h ) ) ;\n if ( list0 ) {\n int ref_n = h -> ref_cache [ 0 ] [ scan8 [ n ] ] ;\n Picture * ref = & h -> ref_list [ 0 ] [ ref_n ] ;\n if ( ref -> tf . progress -> data != h -> cur_pic . tf . progress -> data || ( ref -> reference & 3 ) != h -> picture_structure ) {\n my = get_lowest_part_list_y ( h , ref , n , height , y_offset , 0 ) ;\n if ( refs [ 0 ] [ ref_n ] < 0 ) nrefs [ 0 ] += 1 ;\n refs [ 0 ] [ ref_n ] = FFMAX ( refs [ 0 ] [ ref_n ] , my ) ;\n }\n }\n if ( list1 ) {\n int ref_n = h -> ref_cache [ 1 ] [ scan8 [ n ] ] ;\n Picture * ref = & h -> ref_list [ 1 ] [ ref_n ] ;\n if ( ref -> tf . progress -> data != h -> cur_pic . tf . progress -> data || ( ref -> reference & 3 ) != h -> picture_structure ) {\n my = get_lowest_part_list_y ( h , ref , n , height , y_offset , 1 ) ;\n if ( refs [ 1 ] [ ref_n ] < 0 ) nrefs [ 1 ] += 1 ;\n refs [ 1 ] [ ref_n ] = FFMAX ( refs [ 1 ] [ ref_n ] , my ) ;\n }\n }\n }"}
{"idx": 6399, "target": 0, "func": "static void intra_pred_lp_top ( uint8_t * d , uint8_t * top , uint8_t * left , int stride ) {\n int x , y ;\n for ( y = 0 ;\n y < 8 ;\n y ++ ) for ( x = 0 ;\n x < 8 ;\n x ++ ) d [ y * stride + x ] = LOWPASS ( top , x + 1 ) ;\n }"}
{"idx": 6400, "target": 0, "func": "static int dissect_h245_INTEGER_96_127 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 96U , 127U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 6401, "target": 0, "func": "EC_KEY * d2i_EC_PUBKEY_fp ( FILE * fp , EC_KEY * * eckey ) {\n return ASN1_d2i_fp_of ( EC_KEY , EC_KEY_new , d2i_EC_PUBKEY , fp , eckey ) ;\n }"}
{"idx": 6402, "target": 0, "func": "static void x_get_work_area ( gx_device_X * xdev , int * pwidth , int * pheight ) {\n long * area ;\n if ( ( area = x_get_win_property ( xdev , \"_NET_WORKAREA\" ) ) != NULL || ( area = x_get_win_property ( xdev , \"_WIN_WORKAREA\" ) ) != NULL ) {\n * pwidth = area [ 2 ] ;\n * pheight = area [ 3 ] ;\n XFree ( area ) ;\n }\n }"}
{"idx": 6403, "target": 0, "func": "static void command_line_test ( const char * words ) {\n wordexp_t we ;\n int i ;\n int retval = wordexp ( words , & we , 0 ) ;\n printf ( \"wordexp returned %d\\n\" , retval ) ;\n for ( i = 0 ;\n i < we . we_wordc ;\n i ++ ) printf ( \"we_wordv[%d] = \\\"%s\\\"\\n\" , i , we . we_wordv [ i ] ) ;\n }"}
{"idx": 6404, "target": 0, "func": "static inline Quantum GetPixelIndex ( const Image * restrict image , const Quantum * restrict pixel ) {\n if ( image -> channel_map [ IndexPixelChannel ] . traits == UndefinedPixelTrait ) return ( ( Quantum ) 0 ) ;\n return ( pixel [ image -> channel_map [ IndexPixelChannel ] . offset ] ) ;\n }"}
{"idx": 6405, "target": 0, "func": "void ff_MPV_report_decode_progress ( MpegEncContext * s ) {\n if ( s -> pict_type != AV_PICTURE_TYPE_B && ! s -> partitioned_frame && ! s -> er . error_occurred ) ff_thread_report_progress ( & s -> current_picture_ptr -> tf , s -> mb_y , 0 ) ;\n }"}
{"idx": 6406, "target": 0, "func": "void dtls1_clear_received_buffer ( SSL * s ) {\n pitem * item = NULL ;\n hm_fragment * frag = NULL ;\n while ( ( item = pqueue_pop ( s -> d1 -> buffered_messages ) ) != NULL ) {\n frag = ( hm_fragment * ) item -> data ;\n dtls1_hm_fragment_free ( frag ) ;\n pitem_free ( item ) ;\n }\n }"}
{"idx": 6407, "target": 0, "func": "static int pfkey_broadcast ( struct sk_buff * skb , gfp_t allocation , int broadcast_flags , struct sock * one_sk , struct net * net ) {\n struct netns_pfkey * net_pfkey = net_generic ( net , pfkey_net_id ) ;\n struct sock * sk ;\n struct hlist_node * node ;\n struct sk_buff * skb2 = NULL ;\n int err = - ESRCH ;\n if ( ! skb ) return - ENOMEM ;\n rcu_read_lock ( ) ;\n sk_for_each_rcu ( sk , node , & net_pfkey -> table ) {\n struct pfkey_sock * pfk = pfkey_sk ( sk ) ;\n int err2 ;\n if ( pfk -> promisc ) pfkey_broadcast_one ( skb , & skb2 , allocation , sk ) ;\n if ( sk == one_sk ) continue ;\n if ( broadcast_flags != BROADCAST_ALL ) {\n if ( broadcast_flags & BROADCAST_PROMISC_ONLY ) continue ;\n if ( ( broadcast_flags & BROADCAST_REGISTERED ) && ! pfk -> registered ) continue ;\n if ( broadcast_flags & BROADCAST_ONE ) continue ;\n }\n err2 = pfkey_broadcast_one ( skb , & skb2 , allocation , sk ) ;\n if ( ( broadcast_flags & BROADCAST_REGISTERED ) && err ) err = err2 ;\n }\n rcu_read_unlock ( ) ;\n if ( one_sk != NULL ) err = pfkey_broadcast_one ( skb , & skb2 , allocation , one_sk ) ;\n kfree_skb ( skb2 ) ;\n kfree_skb ( skb ) ;\n return err ;\n }"}
{"idx": 6408, "target": 0, "func": "bool or_clause ( Node * clause ) {\n return ( clause != NULL && IsA ( clause , BoolExpr ) && ( ( BoolExpr * ) clause ) -> boolop == OR_EXPR ) ;\n }"}
{"idx": 6409, "target": 0, "func": "static void update_coef_probs_common ( vp9_writer * const bc , VP9_COMP * cpi , TX_SIZE tx_size , vp9_coeff_stats * frame_branch_ct , vp9_coeff_probs_model * new_coef_probs ) {\n vp9_coeff_probs_model * old_coef_probs = cpi -> common . fc . coef_probs [ tx_size ] ;\n const vp9_prob upd = DIFF_UPDATE_PROB ;\n const int entropy_nodes_update = UNCONSTRAINED_NODES ;\n int i , j , k , l , t ;\n switch ( cpi -> sf . use_fast_coef_updates ) {\n case TWO_LOOP : {\n int savings = 0 ;\n int update [ 2 ] = {\n 0 , 0 }\n ;\n for ( i = 0 ;\n i < PLANE_TYPES ;\n ++ i ) {\n for ( j = 0 ;\n j < REF_TYPES ;\n ++ j ) {\n for ( k = 0 ;\n k < COEF_BANDS ;\n ++ k ) {\n for ( l = 0 ;\n l < BAND_COEFF_CONTEXTS ( k ) ;\n ++ l ) {\n for ( t = 0 ;\n t < entropy_nodes_update ;\n ++ t ) {\n vp9_prob newp = new_coef_probs [ i ] [ j ] [ k ] [ l ] [ t ] ;\n const vp9_prob oldp = old_coef_probs [ i ] [ j ] [ k ] [ l ] [ t ] ;\n int s ;\n int u = 0 ;\n if ( t == PIVOT_NODE ) s = vp9_prob_diff_update_savings_search_model ( frame_branch_ct [ i ] [ j ] [ k ] [ l ] [ 0 ] , old_coef_probs [ i ] [ j ] [ k ] [ l ] , & newp , upd ) ;\n else s = vp9_prob_diff_update_savings_search ( frame_branch_ct [ i ] [ j ] [ k ] [ l ] [ t ] , oldp , & newp , upd ) ;\n if ( s > 0 && newp != oldp ) u = 1 ;\n if ( u ) savings += s - ( int ) ( vp9_cost_zero ( upd ) ) ;\n else savings -= ( int ) ( vp9_cost_zero ( upd ) ) ;\n update [ u ] ++ ;\n }\n }\n }\n }\n }\n if ( update [ 1 ] == 0 || savings < 0 ) {\n vp9_write_bit ( bc , 0 ) ;\n return ;\n }\n vp9_write_bit ( bc , 1 ) ;\n for ( i = 0 ;\n i < PLANE_TYPES ;\n ++ i ) {\n for ( j = 0 ;\n j < REF_TYPES ;\n ++ j ) {\n for ( k = 0 ;\n k < COEF_BANDS ;\n ++ k ) {\n for ( l = 0 ;\n l < BAND_COEFF_CONTEXTS ( k ) ;\n ++ l ) {\n for ( t = 0 ;\n t < entropy_nodes_update ;\n ++ t ) {\n vp9_prob newp = new_coef_probs [ i ] [ j ] [ k ] [ l ] [ t ] ;\n vp9_prob * oldp = old_coef_probs [ i ] [ j ] [ k ] [ l ] + t ;\n const vp9_prob upd = DIFF_UPDATE_PROB ;\n int s ;\n int u = 0 ;\n if ( t == PIVOT_NODE ) s = vp9_prob_diff_update_savings_search_model ( frame_branch_ct [ i ] [ j ] [ k ] [ l ] [ 0 ] , old_coef_probs [ i ] [ j ] [ k ] [ l ] , & newp , upd ) ;\n else s = vp9_prob_diff_update_savings_search ( frame_branch_ct [ i ] [ j ] [ k ] [ l ] [ t ] , * oldp , & newp , upd ) ;\n if ( s > 0 && newp != * oldp ) u = 1 ;\n vp9_write ( bc , u , upd ) ;\n if ( u ) {\n vp9_write_prob_diff_update ( bc , newp , * oldp ) ;\n * oldp = newp ;\n }\n }\n }\n }\n }\n }\n return ;\n }\n case ONE_LOOP : case ONE_LOOP_REDUCED : {\n const int prev_coef_contexts_to_update = cpi -> sf . use_fast_coef_updates == ONE_LOOP_REDUCED ? COEFF_CONTEXTS >> 1 : COEFF_CONTEXTS ;\n const int coef_band_to_update = cpi -> sf . use_fast_coef_updates == ONE_LOOP_REDUCED ? COEF_BANDS >> 1 : COEF_BANDS ;\n int updates = 0 ;\n int noupdates_before_first = 0 ;\n for ( i = 0 ;\n i < PLANE_TYPES ;\n ++ i ) {\n for ( j = 0 ;\n j < REF_TYPES ;\n ++ j ) {\n for ( k = 0 ;\n k < COEF_BANDS ;\n ++ k ) {\n for ( l = 0 ;\n l < BAND_COEFF_CONTEXTS ( k ) ;\n ++ l ) {\n for ( t = 0 ;\n t < entropy_nodes_update ;\n ++ t ) {\n vp9_prob newp = new_coef_probs [ i ] [ j ] [ k ] [ l ] [ t ] ;\n vp9_prob * oldp = old_coef_probs [ i ] [ j ] [ k ] [ l ] + t ;\n int s ;\n int u = 0 ;\n if ( l >= prev_coef_contexts_to_update || k >= coef_band_to_update ) {\n u = 0 ;\n }\n else {\n if ( t == PIVOT_NODE ) s = vp9_prob_diff_update_savings_search_model ( frame_branch_ct [ i ] [ j ] [ k ] [ l ] [ 0 ] , old_coef_probs [ i ] [ j ] [ k ] [ l ] , & newp , upd ) ;\n else s = vp9_prob_diff_update_savings_search ( frame_branch_ct [ i ] [ j ] [ k ] [ l ] [ t ] , * oldp , & newp , upd ) ;\n if ( s > 0 && newp != * oldp ) u = 1 ;\n }\n updates += u ;\n if ( u == 0 && updates == 0 ) {\n noupdates_before_first ++ ;\n continue ;\n }\n if ( u == 1 && updates == 1 ) {\n int v ;\n vp9_write_bit ( bc , 1 ) ;\n for ( v = 0 ;\n v < noupdates_before_first ;\n ++ v ) vp9_write ( bc , 0 , upd ) ;\n }\n vp9_write ( bc , u , upd ) ;\n if ( u ) {\n vp9_write_prob_diff_update ( bc , newp , * oldp ) ;\n * oldp = newp ;\n }\n }\n }\n }\n }\n }\n if ( updates == 0 ) {\n vp9_write_bit ( bc , 0 ) ;\n }\n return ;\n }\n default : assert ( 0 ) ;\n }\n }"}
{"idx": 6410, "target": 0, "func": "static void cb_notify_str_postprocess ( packet_info * pinfo _U_ , proto_tree * tree _U_ , proto_item * item , dcerpc_info * di _U_ , tvbuff_t * tvb , int start_offset , int end_offset , void * callback_args ) {\n gint levels , hf_index = GPOINTER_TO_INT ( callback_args ) ;\n guint32 len ;\n char * s ;\n proto_item * hidden_item ;\n if ( start_offset % 4 ) start_offset += 4 - ( start_offset % 4 ) ;\n len = tvb_get_letohl ( tvb , start_offset ) ;\n s = tvb_get_string_enc ( NULL , tvb , start_offset + 4 , ( end_offset - start_offset - 4 ) , ENC_UTF_16 | ENC_LITTLE_ENDIAN ) ;\n levels = 2 ;\n if ( levels > 0 && item && s && s [ 0 ] ) {\n proto_item_append_text ( item , \": %s\" , s ) ;\n item = item -> parent ;\n levels -- ;\n if ( levels > 0 ) {\n proto_item_append_text ( item , \": %s\" , s ) ;\n item = item -> parent ;\n levels -- ;\n while ( levels > 0 ) {\n proto_item_append_text ( item , \" %s\" , s ) ;\n item = item -> parent ;\n levels -- ;\n }\n }\n }\n if ( hf_index != - 1 ) {\n hidden_item = proto_tree_add_string ( tree , hf_index , tvb , start_offset , len , s ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n }\n g_free ( s ) ;\n }"}
{"idx": 6411, "target": 0, "func": "static bool IsMatchingFileURL ( const std : : string & url , const base : : FilePath & full_file_path ) {\n if ( url . length ( ) <= 8 ) return false ;\n if ( std : : string ( \"file:///\" ) != url . substr ( 0 , 8 ) ) return false ;\n if ( url . find ( '\\\\' ) != std : : string : : npos ) return false ;\n base : : FilePath derived_path ;\n net : : FileURLToFilePath ( GURL ( url ) , & derived_path ) ;\n return base : : FilePath : : CompareEqualIgnoreCase ( derived_path . value ( ) , full_file_path . value ( ) ) ;\n }"}
{"idx": 6412, "target": 0, "func": "static int slice_end ( AVCodecContext * avctx , AVFrame * pict ) {\n Mpeg1Context * s1 = avctx -> priv_data ;\n MpegEncContext * s = & s1 -> mpeg_enc_ctx ;\n if ( ! s1 -> mpeg_enc_ctx_allocated || ! s -> current_picture_ptr ) return 0 ;\n if ( s -> avctx -> hwaccel ) {\n if ( s -> avctx -> hwaccel -> end_frame ( s -> avctx ) < 0 ) av_log ( avctx , AV_LOG_ERROR , \"hardware accelerator failed to decode picture\\n\" ) ;\n }\n if ( CONFIG_MPEG_XVMC_DECODER && s -> avctx -> xvmc_acceleration ) ff_xvmc_field_end ( s ) ;\n if ( ! s -> first_field ) {\n ff_er_frame_end ( & s -> er ) ;\n ff_MPV_frame_end ( s ) ;\n if ( s -> pict_type == AV_PICTURE_TYPE_B || s -> low_delay ) {\n int ret = av_frame_ref ( pict , & s -> current_picture_ptr -> f ) ;\n if ( ret < 0 ) return ret ;\n ff_print_debug_info ( s , s -> current_picture_ptr ) ;\n }\n else {\n if ( avctx -> active_thread_type & FF_THREAD_FRAME ) s -> picture_number ++ ;\n if ( s -> last_picture_ptr != NULL ) {\n int ret = av_frame_ref ( pict , & s -> last_picture_ptr -> f ) ;\n if ( ret < 0 ) return ret ;\n ff_print_debug_info ( s , s -> last_picture_ptr ) ;\n }\n }\n return 1 ;\n }\n else {\n return 0 ;\n }\n }"}
{"idx": 6413, "target": 0, "func": "static void Type_ProfileSequenceDesc_Free ( struct _cms_typehandler_struct * self , void * Ptr ) {\n cmsFreeProfileSequenceDescription ( ( cmsSEQ * ) Ptr ) ;\n return ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 6414, "target": 0, "func": "TSUuid TSUuidCreate ( void ) {\n ATSUuid * uuid = new ATSUuid ( ) ;\n return ( TSUuid ) uuid ;\n }"}
{"idx": 6415, "target": 0, "func": "static int parent_proxy_success ( TSCont contp , TSEvent event , void * edata ) {\n ParentTest * ptest = ( ParentTest * ) TSContDataGet ( contp ) ;\n TSHttpTxn txnp = ( TSHttpTxn ) edata ;\n int expected ;\n int received ;\n int status ;\n switch ( event ) {\n case TS_EVENT_HTTP_SEND_RESPONSE_HDR : expected = get_request_id ( txnp ) ;\n received = get_response_id ( txnp ) ;\n if ( expected != received ) {\n status = REGRESSION_TEST_FAILED ;\n SDK_RPRINT ( ptest -> regtest , \"TSHttpTxnParentProxySet\" , \"TestCase\" , TC_FAIL , \"Expected response ID %d, received %d\" , expected , received ) ;\n }\n else {\n status = REGRESSION_TEST_PASSED ;\n SDK_RPRINT ( ptest -> regtest , \"TSHttpTxnParentProxySet\" , \"TestCase\" , TC_PASS , \"Received expected response ID %d\" , expected ) ;\n }\n TSHttpTxnReenable ( txnp , TS_EVENT_HTTP_CONTINUE ) ;\n return status ;\n default : SDK_RPRINT ( ptest -> regtest , \"TSHttpTxnParentProxySet\" , ptest -> testcase , TC_FAIL , \"Unexpected event %d\" , event ) ;\n return REGRESSION_TEST_FAILED ;\n }\n }"}
{"idx": 6416, "target": 0, "func": "TEST_F ( WebFrameTest , AltTextOnAboutBlankPage ) {\n FrameTestHelpers : : WebViewHelper web_view_helper ;\n web_view_helper . InitializeAndLoad ( \"about:blank\" ) ;\n web_view_helper . Resize ( WebSize ( 640 , 480 ) ) ;\n WebLocalFrameImpl * frame = web_view_helper . LocalMainFrame ( ) ;\n const char kSource [ ] = \"<img id='foo' src='foo' alt='foo alt' width='200' height='200'>\" ;\n FrameTestHelpers : : LoadHTMLString ( frame , kSource , ToKURL ( \"about:blank\" ) ) ;\n web_view_helper . GetWebView ( ) -> UpdateAllLifecyclePhases ( ) ;\n RunPendingTasks ( ) ;\n LayoutObject * layout_object = frame -> GetFrame ( ) -> GetDocument ( ) -> getElementById ( \"foo\" ) -> GetLayoutObject ( ) -> SlowFirstChild ( ) ;\n String text = \"\" ;\n for ( LayoutObject * obj = layout_object ;\n obj ;\n obj = obj -> NextInPreOrder ( ) ) {\n if ( obj -> IsText ( ) ) {\n LayoutText * layout_text = ToLayoutText ( obj ) ;\n text = layout_text -> GetText ( ) ;\n break ;\n }\n }\n EXPECT_EQ ( \"foo alt\" , text . Utf8 ( ) ) ;\n }"}
{"idx": 6417, "target": 0, "func": "RegProcedure get_oprrest ( Oid opno ) {\n HeapTuple tp ;\n tp = SearchSysCache1 ( OPEROID , ObjectIdGetDatum ( opno ) ) ;\n if ( HeapTupleIsValid ( tp ) ) {\n Form_pg_operator optup = ( Form_pg_operator ) GETSTRUCT ( tp ) ;\n RegProcedure result ;\n result = optup -> oprrest ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }\n else return ( RegProcedure ) InvalidOid ;\n }"}
{"idx": 6418, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( MessageCenterNotificationsTest , UpdateExistingNotification ) {\n # if defined ( OS_WIN ) && defined ( USE_ASH ) if ( base : : CommandLine : : ForCurrentProcess ( ) -> HasSwitch ( switches : : kAshBrowserTests ) ) return ;\n # endif TestDelegate * delegate ;\n manager ( ) -> Add ( CreateTestNotification ( \"n\" , & delegate ) , profile ( ) ) ;\n TestDelegate * delegate2 ;\n manager ( ) -> Add ( CreateRichTestNotification ( \"n\" , & delegate2 ) , profile ( ) ) ;\n manager ( ) -> CancelById ( \"n\" , NotificationUIManager : : GetProfileID ( profile ( ) ) ) ;\n EXPECT_EQ ( \"Display_\" , delegate -> log ( ) ) ;\n EXPECT_EQ ( \"Close_programmatically_\" , delegate2 -> log ( ) ) ;\n delegate -> Release ( ) ;\n delegate2 -> Release ( ) ;\n }"}
{"idx": 6419, "target": 0, "func": "static hb_codepoint_t hb_icu_unicode_mirroring ( hb_unicode_funcs_t * ufuncs HB_UNUSED , hb_codepoint_t unicode , void * user_data HB_UNUSED ) {\n return u_charMirror ( unicode ) ;\n }"}
{"idx": 6420, "target": 0, "func": "void free_last_set ( REP_SETS * sets ) {\n sets -> count -- ;\n sets -> extra ++ ;\n return ;\n }"}
{"idx": 6421, "target": 0, "func": "void gs_memory_set_vm_threshold ( gs_ref_memory_t * mem , long val ) {\n gs_memory_gc_status_t stat ;\n gs_ref_memory_t * stable = ( gs_ref_memory_t * ) mem -> stable_memory ;\n gs_memory_gc_status ( mem , & stat ) ;\n stat . vm_threshold = val ;\n gs_memory_set_gc_status ( mem , & stat ) ;\n gs_memory_gc_status ( stable , & stat ) ;\n stat . vm_threshold = val ;\n gs_memory_set_gc_status ( stable , & stat ) ;\n }"}
{"idx": 6422, "target": 0, "func": "uint gx_device_raster_plane ( const gx_device * dev , const gx_render_plane_t * render_plane ) {\n ulong bpc = ( render_plane && render_plane -> index >= 0 ? render_plane -> depth : dev -> color_info . depth / ( dev -> is_planar ? dev -> color_info . num_components : 1 ) ) ;\n ulong bits = ( ulong ) dev -> width * bpc ;\n int l2align ;\n l2align = dev -> log2_align_mod ;\n if ( l2align < log2_align_bitmap_mod ) l2align = log2_align_bitmap_mod ;\n return ( uint ) ( ( ( bits + ( 8 << l2align ) - 1 ) >> ( l2align + 3 ) ) << l2align ) ;\n }"}
{"idx": 6423, "target": 1, "func": "int ff_intrax8_decode_picture ( IntraX8Context * const w , int dquant , int quant_offset ) {\n MpegEncContext * const s = w -> s ;\n int mb_xy ;\n assert ( s ) ;\n w -> use_quant_matrix = get_bits1 ( & s -> gb ) ;\n w -> dquant = dquant ;\n w -> quant = dquant >> 1 ;\n w -> qsum = quant_offset ;\n w -> divide_quant_dc_luma = ( ( 1 << 16 ) + ( w -> quant >> 1 ) ) / w -> quant ;\n if ( w -> quant < 5 ) {\n w -> quant_dc_chroma = w -> quant ;\n w -> divide_quant_dc_chroma = w -> divide_quant_dc_luma ;\n }\n else {\n w -> quant_dc_chroma = w -> quant + ( ( w -> quant + 3 ) >> 3 ) ;\n w -> divide_quant_dc_chroma = ( ( 1 << 16 ) + ( w -> quant_dc_chroma >> 1 ) ) / w -> quant_dc_chroma ;\n }\n x8_reset_vlc_tables ( w ) ;\n s -> resync_mb_x = 0 ;\n s -> resync_mb_y = 0 ;\n for ( s -> mb_y = 0 ;\n s -> mb_y < s -> mb_height * 2 ;\n s -> mb_y ++ ) {\n x8_init_block_index ( s ) ;\n mb_xy = ( s -> mb_y >> 1 ) * s -> mb_stride ;\n for ( s -> mb_x = 0 ;\n s -> mb_x < s -> mb_width * 2 ;\n s -> mb_x ++ ) {\n x8_get_prediction ( w ) ;\n if ( x8_setup_spatial_predictor ( w , 0 ) ) goto error ;\n if ( x8_decode_intra_mb ( w , 0 ) ) goto error ;\n if ( s -> mb_x & s -> mb_y & 1 ) {\n x8_get_prediction_chroma ( w ) ;\n x8_setup_spatial_predictor ( w , 1 ) ;\n if ( x8_decode_intra_mb ( w , 1 ) ) goto error ;\n x8_setup_spatial_predictor ( w , 2 ) ;\n if ( x8_decode_intra_mb ( w , 2 ) ) goto error ;\n s -> dest [ 1 ] += 8 ;\n s -> dest [ 2 ] += 8 ;\n s -> mbskip_table [ mb_xy ] = 0 ;\n s -> mbintra_table [ mb_xy ] = 1 ;\n s -> current_picture . f . qscale_table [ mb_xy ] = w -> quant ;\n mb_xy ++ ;\n }\n s -> dest [ 0 ] += 8 ;\n }\n if ( s -> mb_y & 1 ) {\n ff_mpeg_draw_horiz_band ( s , ( s -> mb_y - 1 ) * 8 , 16 ) ;\n }\n }\n error : ff_er_add_slice ( & s -> er , s -> resync_mb_x , s -> resync_mb_y , ( s -> mb_x >> 1 ) - 1 , ( s -> mb_y >> 1 ) - 1 , ER_MB_END ) ;\n return 0 ;\n }"}
{"idx": 6424, "target": 0, "func": "static long timelib_get_zone ( char * * ptr , int * dst , timelib_time * t , int * tz_not_found , const timelib_tzdb * tzdb ) {\n long retval = 0 ;\n * tz_not_found = 0 ;\n while ( * * ptr == ' ' || * * ptr == '\\t' || * * ptr == '(' ) {\n ++ * ptr ;\n }\n if ( ( * ptr ) [ 0 ] == 'G' && ( * ptr ) [ 1 ] == 'M' && ( * ptr ) [ 2 ] == 'T' && ( ( * ptr ) [ 3 ] == '+' || ( * ptr ) [ 3 ] == '-' ) ) {\n * ptr += 3 ;\n }\n if ( * * ptr == '+' ) {\n ++ * ptr ;\n t -> is_localtime = 1 ;\n t -> zone_type = TIMELIB_ZONETYPE_OFFSET ;\n * tz_not_found = 0 ;\n t -> dst = 0 ;\n retval = - 1 * timelib_parse_tz_cor ( ptr ) ;\n }\n else if ( * * ptr == '-' ) {\n ++ * ptr ;\n t -> is_localtime = 1 ;\n t -> zone_type = TIMELIB_ZONETYPE_OFFSET ;\n * tz_not_found = 0 ;\n t -> dst = 0 ;\n retval = timelib_parse_tz_cor ( ptr ) ;\n }\n while ( * * ptr == ')' ) {\n ++ * ptr ;\n }\n return retval ;\n }"}
{"idx": 6425, "target": 0, "func": "void mime_field_value_set_int64 ( HdrHeap * heap , MIMEHdrImpl * mh , MIMEField * field , int64_t value ) {\n char buf [ 20 ] ;\n int len = mime_format_int64 ( buf , value , sizeof ( buf ) ) ;\n mime_field_value_set ( heap , mh , field , buf , len , true ) ;\n }"}
{"idx": 6426, "target": 0, "func": "static int dissect_CPMCompareBmk ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * parent_tree , gboolean in , void * data _U_ ) {\n gint offset = 16 ;\n proto_item * item ;\n proto_tree * tree ;\n item = proto_tree_add_item ( parent_tree , hf_mswsp_msg , tvb , offset , in ? 0 : - 1 , ENC_NA ) ;\n tree = proto_item_add_subtree ( item , ett_mswsp_msg ) ;\n proto_item_set_text ( item , \"CompareBmk%s\" , in ? \"In\" : \"Out\" ) ;\n col_append_str ( pinfo -> cinfo , COL_INFO , \"CompareBmk\" ) ;\n if ( in ) {\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcomparebmk_hcursor , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcomparebmk_chapt , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcomparebmk_bmkfirst , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcomparebmk_bmksecond , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n }\n else {\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcomparebmk_dwcomparison , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n }\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 6427, "target": 0, "func": "TEST_F ( TemplateURLTest , Defaults ) {\n TemplateURLData data ;\n EXPECT_FALSE ( data . show_in_default_list ) ;\n EXPECT_FALSE ( data . safe_for_autoreplace ) ;\n EXPECT_EQ ( 0 , data . prepopulate_id ) ;\n }"}
{"idx": 6428, "target": 0, "func": "static UChar32 errorValue ( int32_t count , int8_t strict ) {\n if ( strict >= 0 ) {\n return utf8_errorValue [ count ] ;\n }\n else if ( strict == - 3 ) {\n return 0xfffd ;\n }\n else {\n return U_SENTINEL ;\n }\n }"}
{"idx": 6429, "target": 0, "func": "void keyring_release ( KEYRING_HANDLE hd ) {\n if ( ! hd ) return ;\n assert ( active_handles > 0 ) ;\n active_handles -- ;\n xfree ( hd -> word_match . name ) ;\n xfree ( hd -> word_match . pattern ) ;\n iobuf_close ( hd -> current . iobuf ) ;\n xfree ( hd ) ;\n }"}
{"idx": 6430, "target": 0, "func": "int test ( char * URL ) {\n int i ;\n ( void ) URL ;\n for ( i = 0 ;\n dates [ i ] ;\n i ++ ) {\n printf ( \"%d: %s => %ld\\n\" , i , dates [ i ] , ( long ) curl_getdate ( dates [ i ] , NULL ) ) ;\n }\n return 0 ;\n }"}
{"idx": 6431, "target": 0, "func": "krb5_error_code krb5_ldap_get_principal ( krb5_context context , krb5_const_principal searchfor , unsigned int flags , krb5_db_entry * * entry_ptr ) {\n char * user = NULL , * filter = NULL , * filtuser = NULL ;\n unsigned int tree = 0 , ntrees = 1 , princlen = 0 ;\n krb5_error_code tempst = 0 , st = 0 ;\n char * * values = NULL , * * subtree = NULL , * cname = NULL ;\n LDAP * ld = NULL ;\n LDAPMessage * result = NULL , * ent = NULL ;\n krb5_ldap_context * ldap_context = NULL ;\n kdb5_dal_handle * dal_handle = NULL ;\n krb5_ldap_server_handle * ldap_server_handle = NULL ;\n krb5_principal cprinc = NULL ;\n krb5_boolean found = FALSE ;\n krb5_db_entry * entry = NULL ;\n * entry_ptr = NULL ;\n krb5_clear_error_message ( context ) ;\n if ( searchfor == NULL ) return EINVAL ;\n dal_handle = context -> dal_handle ;\n ldap_context = ( krb5_ldap_context * ) dal_handle -> db_context ;\n CHECK_LDAP_HANDLE ( ldap_context ) ;\n if ( ! is_principal_in_realm ( ldap_context , searchfor ) ) {\n st = KRB5_KDB_NOENTRY ;\n k5_setmsg ( context , st , _ ( \"Principal does not belong to realm\" ) ) ;\n goto cleanup ;\n }\n if ( ( st = krb5_unparse_name ( context , searchfor , & user ) ) != 0 ) goto cleanup ;\n if ( ( st = krb5_ldap_unparse_principal_name ( user ) ) != 0 ) goto cleanup ;\n filtuser = ldap_filter_correct ( user ) ;\n if ( filtuser == NULL ) {\n st = ENOMEM ;\n goto cleanup ;\n }\n princlen = strlen ( FILTER ) + strlen ( filtuser ) + 2 + 1 ;\n if ( ( filter = malloc ( princlen ) ) == NULL ) {\n st = ENOMEM ;\n goto cleanup ;\n }\n snprintf ( filter , princlen , FILTER \"%s))\" , filtuser ) ;\n if ( ( st = krb5_get_subtree_info ( ldap_context , & subtree , & ntrees ) ) != 0 ) goto cleanup ;\n GET_HANDLE ( ) ;\n for ( tree = 0 ;\n tree < ntrees && ! found ;\n ++ tree ) {\n LDAP_SEARCH ( subtree [ tree ] , ldap_context -> lrparams -> search_scope , filter , principal_attributes ) ;\n for ( ent = ldap_first_entry ( ld , result ) ;\n ent != NULL && ! found ;\n ent = ldap_next_entry ( ld , ent ) ) {\n if ( ( values = ldap_get_values ( ld , ent , \"krbprincipalname\" ) ) != NULL ) {\n int i ;\n for ( i = 0 ;\n values [ i ] != NULL ;\n ++ i ) {\n if ( strcmp ( values [ i ] , user ) == 0 ) {\n found = TRUE ;\n break ;\n }\n }\n ldap_value_free ( values ) ;\n if ( ! found ) continue ;\n }\n if ( ( values = ldap_get_values ( ld , ent , \"krbcanonicalname\" ) ) != NULL ) {\n if ( values [ 0 ] && strcmp ( values [ 0 ] , user ) != 0 ) {\n if ( flags & KRB5_KDB_FLAG_ALIAS_OK ) {\n st = krb5_ldap_parse_principal_name ( values [ 0 ] , & cname ) ;\n if ( st != 0 ) goto cleanup ;\n st = krb5_parse_name ( context , cname , & cprinc ) ;\n if ( st != 0 ) goto cleanup ;\n }\n else found = FALSE ;\n }\n ldap_value_free ( values ) ;\n if ( ! found ) continue ;\n }\n entry = k5alloc ( sizeof ( * entry ) , & st ) ;\n if ( entry == NULL ) goto cleanup ;\n if ( ( st = populate_krb5_db_entry ( context , ldap_context , ld , ent , cprinc ? cprinc : searchfor , entry ) ) != 0 ) goto cleanup ;\n }\n ldap_msgfree ( result ) ;\n result = NULL ;\n }\n if ( found ) {\n * entry_ptr = entry ;\n entry = NULL ;\n }\n else st = KRB5_KDB_NOENTRY ;\n cleanup : ldap_msgfree ( result ) ;\n krb5_ldap_free_principal ( context , entry ) ;\n if ( filter ) free ( filter ) ;\n if ( subtree ) {\n for ( ;\n ntrees ;\n -- ntrees ) if ( subtree [ ntrees - 1 ] ) free ( subtree [ ntrees - 1 ] ) ;\n free ( subtree ) ;\n }\n if ( ldap_server_handle ) krb5_ldap_put_handle_to_pool ( ldap_context , ldap_server_handle ) ;\n if ( user ) free ( user ) ;\n if ( filtuser ) free ( filtuser ) ;\n if ( cname ) free ( cname ) ;\n if ( cprinc ) krb5_free_principal ( context , cprinc ) ;\n return st ;\n }"}
{"idx": 6432, "target": 0, "func": "int dtls1_read_failed ( SSL * s , int code ) {\n if ( code > 0 ) {\n fprintf ( stderr , \"invalid state reached %s:%d\" , __FILE__ , __LINE__ ) ;\n return 1 ;\n }\n if ( ! dtls1_is_timer_expired ( s ) ) {\n return code ;\n }\n # ifndef OPENSSL_NO_HEARTBEATS if ( ! SSL_in_init ( s ) && ! s -> tlsext_hb_pending ) # else if ( ! SSL_in_init ( s ) ) # endif {\n BIO_set_flags ( SSL_get_rbio ( s ) , BIO_FLAGS_READ ) ;\n return code ;\n }\n # if 0 item = pqueue_peek ( state -> rcvd_records ) ;\n if ( item ) {\n }\n else # endif # if 0 if ( state -> timeout . read_timeouts >= DTLS1_TMO_READ_COUNT ) ssl3_send_alert ( s , SSL3_AL_WARNING , DTLS1_AD_MISSING_HANDSHAKE_MESSAGE ) ;\n # endif return dtls1_handle_timeout ( s ) ;\n }"}
{"idx": 6433, "target": 0, "func": "int vp9_find_best_sub_pixel_tree ( const MACROBLOCK * x , MV * bestmv , const MV * ref_mv , int allow_hp , int error_per_bit , const vp9_variance_fn_ptr_t * vfp , int forced_stop , int iters_per_step , int * sad_list , int * mvjcost , int * mvcost [ 2 ] , int * distortion , unsigned int * sse1 , const uint8_t * second_pred , int w , int h ) {\n SETUP_SUBPEL_SEARCH ;\n ( void ) sad_list ;\n FIRST_LEVEL_CHECKS ;\n if ( halfiters > 1 ) {\n SECOND_LEVEL_CHECKS ;\n }\n tr = br ;\n tc = bc ;\n if ( forced_stop != 2 ) {\n hstep >>= 1 ;\n FIRST_LEVEL_CHECKS ;\n if ( quarteriters > 1 ) {\n SECOND_LEVEL_CHECKS ;\n }\n tr = br ;\n tc = bc ;\n }\n if ( allow_hp && vp9_use_mv_hp ( ref_mv ) && forced_stop == 0 ) {\n hstep >>= 1 ;\n FIRST_LEVEL_CHECKS ;\n if ( eighthiters > 1 ) {\n SECOND_LEVEL_CHECKS ;\n }\n tr = br ;\n tc = bc ;\n }\n ( void ) tr ;\n ( void ) tc ;\n bestmv -> row = br ;\n bestmv -> col = bc ;\n if ( ( abs ( bestmv -> col - ref_mv -> col ) > ( MAX_FULL_PEL_VAL << 3 ) ) || ( abs ( bestmv -> row - ref_mv -> row ) > ( MAX_FULL_PEL_VAL << 3 ) ) ) return INT_MAX ;\n return besterr ;\n }"}
{"idx": 6434, "target": 0, "func": "static int dissect_spoolss_doc_info ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n proto_tree * subtree ;\n guint32 level ;\n subtree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_DOC_INFO , NULL , \"Document info\" ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_level , & level ) ;\n offset = dissect_ndr_pointer ( tvb , offset , pinfo , subtree , di , drep , dissect_spoolss_doc_info_data , NDR_POINTER_UNIQUE , \"Document info\" , - 1 ) ;\n return offset ;\n }"}
{"idx": 6435, "target": 0, "func": "static void extract_job_on_error ( AutoarExtractor * extractor , GError * error , gpointer user_data ) {\n ExtractJob * extract_job = user_data ;\n GFile * source_file ;\n gint response_id ;\n source_file = autoar_extractor_get_source_file ( extractor ) ;\n if ( IS_IO_ERROR ( error , NOT_SUPPORTED ) ) {\n handle_unsupported_compressed_file ( extract_job -> common . parent_window , source_file ) ;\n return ;\n }\n nautilus_progress_info_take_status ( extract_job -> common . progress , f ( _ ( \"Error extracting \u201c%B\u201d\" ) , source_file ) ) ;\n response_id = run_warning ( ( CommonJob * ) extract_job , f ( _ ( \"There was an error while extracting \u201c%B\u201d.\" ) , source_file ) , g_strdup ( error -> message ) , NULL , FALSE , CANCEL , SKIP , NULL ) ;\n if ( response_id == 0 || response_id == GTK_RESPONSE_DELETE_EVENT ) {\n abort_job ( ( CommonJob * ) extract_job ) ;\n }\n }"}
{"idx": 6436, "target": 1, "func": "static int32_t idCmp ( const char * id1 , const char * id2 ) {\n int32_t diffIdx = 0 ;\n while ( * id1 == * id2 && * id1 != 0 ) {\n diffIdx ++ ;\n id1 ++ ;\n id2 ++ ;\n }\n return diffIdx ;\n }"}
{"idx": 6437, "target": 0, "func": "err_status_t srtp_kdf_clear ( srtp_kdf_t * kdf ) {\n err_status_t status ;\n status = cipher_dealloc ( kdf -> cipher ) ;\n if ( status ) return status ;\n kdf -> cipher = NULL ;\n return err_status_ok ;\n }"}
{"idx": 6438, "target": 0, "func": "static void cwd_globals_ctor ( virtual_cwd_globals * cwd_g TSRMLS_DC ) {\n CWD_STATE_COPY ( & cwd_g -> cwd , & main_cwd_state ) ;\n cwd_g -> realpath_cache_size = 0 ;\n cwd_g -> realpath_cache_size_limit = REALPATH_CACHE_SIZE ;\n cwd_g -> realpath_cache_ttl = REALPATH_CACHE_TTL ;\n memset ( cwd_g -> realpath_cache , 0 , sizeof ( cwd_g -> realpath_cache ) ) ;\n }"}
{"idx": 6439, "target": 0, "func": "static inline uint32_t combine_surrogate_pair ( uint32_t uc , uint32_t uc2 ) {\n uc -= 0xD800 ;\n uc *= 0x400 ;\n uc += uc2 - 0xDC00 ;\n uc += 0x10000 ;\n return ( uc ) ;\n }"}
{"idx": 6440, "target": 0, "func": "static int xhci_try_complete_packet ( XHCITransfer * xfer ) {\n if ( xfer -> packet . status == USB_RET_ASYNC ) {\n trace_usb_xhci_xfer_async ( xfer ) ;\n xfer -> running_async = 1 ;\n xfer -> running_retry = 0 ;\n xfer -> complete = 0 ;\n return 0 ;\n }\n else if ( xfer -> packet . status == USB_RET_NAK ) {\n trace_usb_xhci_xfer_nak ( xfer ) ;\n xfer -> running_async = 0 ;\n xfer -> running_retry = 1 ;\n xfer -> complete = 0 ;\n return 0 ;\n }\n else {\n xfer -> running_async = 0 ;\n xfer -> running_retry = 0 ;\n xfer -> complete = 1 ;\n xhci_xfer_unmap ( xfer ) ;\n }\n if ( xfer -> packet . status == USB_RET_SUCCESS ) {\n trace_usb_xhci_xfer_success ( xfer , xfer -> packet . actual_length ) ;\n xfer -> status = CC_SUCCESS ;\n xhci_xfer_report ( xfer ) ;\n return 0 ;\n }\n trace_usb_xhci_xfer_error ( xfer , xfer -> packet . status ) ;\n switch ( xfer -> packet . status ) {\n case USB_RET_NODEV : case USB_RET_IOERROR : xfer -> status = CC_USB_TRANSACTION_ERROR ;\n xhci_xfer_report ( xfer ) ;\n xhci_stall_ep ( xfer ) ;\n break ;\n case USB_RET_STALL : xfer -> status = CC_STALL_ERROR ;\n xhci_xfer_report ( xfer ) ;\n xhci_stall_ep ( xfer ) ;\n break ;\n case USB_RET_BABBLE : xfer -> status = CC_BABBLE_DETECTED ;\n xhci_xfer_report ( xfer ) ;\n xhci_stall_ep ( xfer ) ;\n break ;\n default : DPRINTF ( \"%s: FIXME: status = %d\\n\" , __func__ , xfer -> packet . status ) ;\n FIXME ( \"unhandled USB_RET_*\" ) ;\n }\n return 0 ;\n }"}
{"idx": 6441, "target": 0, "func": "static int dissect_h225_InfoRequestResponse ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_InfoRequestResponse , InfoRequestResponse_sequence ) ;\n return offset ;\n }"}
{"idx": 6442, "target": 0, "func": "header_field_info * proto_get_first_protocol_field ( const int proto_id , void * * cookie ) {\n protocol_t * protocol = find_protocol_by_id ( proto_id ) ;\n if ( ( protocol == NULL ) || ( protocol -> fields -> len == 0 ) ) return NULL ;\n * cookie = GUINT_TO_POINTER ( 0 + 1 ) ;\n return ( header_field_info * ) g_ptr_array_index ( protocol -> fields , 0 ) ;\n }"}
{"idx": 6443, "target": 1, "func": "int vp9_rc_regulate_q ( const VP9_COMP * cpi , int target_bits_per_frame , int active_best_quality , int active_worst_quality ) {\n const VP9_COMMON * const cm = & cpi -> common ;\n int q = active_worst_quality ;\n int last_error = INT_MAX ;\n int i , target_bits_per_mb ;\n const double correction_factor = get_rate_correction_factor ( cpi ) ;\n target_bits_per_mb = ( ( uint64_t ) target_bits_per_frame << BPER_MB_NORMBITS ) / cm -> MBs ;\n i = active_best_quality ;\n do {\n const int bits_per_mb_at_this_q = ( int ) vp9_rc_bits_per_mb ( cm -> frame_type , i , correction_factor ) ;\n if ( bits_per_mb_at_this_q <= target_bits_per_mb ) {\n if ( ( target_bits_per_mb - bits_per_mb_at_this_q ) <= last_error ) q = i ;\n else q = i - 1 ;\n break ;\n }\n else {\n last_error = bits_per_mb_at_this_q - target_bits_per_mb ;\n }\n }\n while ( ++ i <= active_worst_quality ) ;\n return q ;\n }"}
{"idx": 6444, "target": 0, "func": "void evhttp_set_timeout ( struct evhttp * http , int timeout_in_secs ) {\n http -> timeout = timeout_in_secs ;\n }"}
{"idx": 6445, "target": 0, "func": "static void qemu_wait_io_event_common ( CPUState * cpu ) {\n if ( cpu -> stop ) {\n cpu -> stop = false ;\n cpu -> stopped = true ;\n qemu_cond_signal ( & qemu_pause_cond ) ;\n }\n flush_queued_work ( cpu ) ;\n cpu -> thread_kicked = false ;\n }"}
{"idx": 6446, "target": 0, "func": "static void dummy ( void ) {\n }"}
{"idx": 6447, "target": 0, "func": "static inline void SetPixelGreenTraits ( Image * image , const PixelTrait traits ) {\n image -> channel_map [ GreenPixelChannel ] . traits = traits ;\n }"}
{"idx": 6448, "target": 0, "func": "static jas_image_cmpt_t * jas_image_cmpt_copy ( jas_image_cmpt_t * cmpt ) {\n jas_image_cmpt_t * newcmpt ;\n if ( ! ( newcmpt = jas_image_cmpt_create0 ( ) ) ) {\n return 0 ;\n }\n newcmpt -> tlx_ = cmpt -> tlx_ ;\n newcmpt -> tly_ = cmpt -> tly_ ;\n newcmpt -> hstep_ = cmpt -> hstep_ ;\n newcmpt -> vstep_ = cmpt -> vstep_ ;\n newcmpt -> width_ = cmpt -> width_ ;\n newcmpt -> height_ = cmpt -> height_ ;\n newcmpt -> prec_ = cmpt -> prec_ ;\n newcmpt -> sgnd_ = cmpt -> sgnd_ ;\n newcmpt -> cps_ = cmpt -> cps_ ;\n newcmpt -> type_ = cmpt -> type_ ;\n if ( ! ( newcmpt -> stream_ = jas_stream_memopen ( 0 , 0 ) ) ) {\n return 0 ;\n }\n if ( jas_stream_seek ( cmpt -> stream_ , 0 , SEEK_SET ) ) {\n return 0 ;\n }\n if ( jas_stream_copy ( newcmpt -> stream_ , cmpt -> stream_ , - 1 ) ) {\n return 0 ;\n }\n if ( jas_stream_seek ( newcmpt -> stream_ , 0 , SEEK_SET ) ) {\n return 0 ;\n }\n return newcmpt ;\n }"}
{"idx": 6449, "target": 0, "func": "static int selinux_task_setioprio ( struct task_struct * p , int ioprio ) {\n return current_has_perm ( p , PROCESS__SETSCHED ) ;\n }"}
{"idx": 6450, "target": 0, "func": "void ff_h264_parse_framesize ( AVCodecParameters * par , const char * p ) {\n char buf1 [ 50 ] ;\n char * dst = buf1 ;\n while ( * p && * p == ' ' ) p ++ ;\n while ( * p && * p != ' ' ) p ++ ;\n while ( * p && * p == ' ' ) p ++ ;\n while ( * p && * p != '-' && ( dst - buf1 ) < sizeof ( buf1 ) - 1 ) * dst ++ = * p ++ ;\n * dst = '\\0' ;\n par -> width = atoi ( buf1 ) ;\n par -> height = atoi ( p + 1 ) ;\n }"}
{"idx": 6451, "target": 0, "func": "static int main_secondary_decompress_check ( main_file * file , uint8_t * input_buf , size_t input_size , size_t * nread ) {\n int ret ;\n usize_t i ;\n usize_t try_read = min ( input_size , XD3_ALLOCSIZE ) ;\n size_t check_nread = 0 ;\n uint8_t check_buf [ XD3_ALLOCSIZE ] ;\n const main_extcomp * decompressor = NULL ;\n if ( ( ret = main_file_read ( file , check_buf , try_read , & check_nread , \"input read failed\" ) ) ) {\n return ret ;\n }\n if ( file -> flags & RD_DECOMPSET ) {\n decompressor = file -> compressor ;\n }\n else {\n for ( i = 0 ;\n i < SIZEOF_ARRAY ( extcomp_types ) ;\n i += 1 ) {\n const main_extcomp * decomp = & extcomp_types [ i ] ;\n if ( check_nread > decomp -> magic_size ) {\n int skip_this_type = ( decomp -> flags & RD_NONEXTERNAL ) && ( file -> flags & RD_NONEXTERNAL ) ;\n if ( skip_this_type ) {\n continue ;\n }\n if ( memcmp ( check_buf , decomp -> magic , decomp -> magic_size ) == 0 ) {\n decompressor = decomp ;\n break ;\n }\n }\n }\n }\n if ( decompressor != NULL ) {\n if ( ! option_quiet ) {\n XPR ( NT \"externally compressed input: %s %s%s < %s\\n\" , decompressor -> decomp_cmdname , decompressor -> decomp_options , ( option_force2 ? \" -f\" : \"\" ) , file -> filename ) ;\n if ( file -> flags & RD_MAININPUT ) {\n XPR ( NT \"WARNING: the encoder is automatically decompressing the input file;\n\\n\" ) ;\n XPR ( NT \"WARNING: the decoder will automatically recompress the output file;\n\\n\" ) ;\n XPR ( NT \"WARNING: this may result in different compressed data and checksums\\n\" ) ;\n XPR ( NT \"WARNING: despite being identical data;\n if this is an issue, use -D\\n\" ) ;\n XPR ( NT \"WARNING: to avoid decompression and/or use -R to avoid recompression\\n\" ) ;\n XPR ( NT \"WARNING: and/or manually decompress the input file;\n if you know the\\n\" ) ;\n XPR ( NT \"WARNING: compression settings that will produce identical output\\n\" ) ;\n XPR ( NT \"WARNING: you may set those flags using the environment (e.g., GZIP=-9)\\n\" ) ;\n }\n }\n file -> size_known = 0 ;\n return main_input_decompress_setup ( decompressor , file , input_buf , input_size , check_buf , XD3_ALLOCSIZE , check_nread , nread ) ;\n }\n ( * nread ) = 0 ;\n if ( check_nread == try_read ) {\n ret = main_file_read ( file , input_buf + try_read , input_size - try_read , nread , \"input read failed\" ) ;\n }\n memcpy ( input_buf , check_buf , check_nread ) ;\n ( * nread ) += check_nread ;\n return 0 ;\n }"}
{"idx": 6452, "target": 0, "func": "static int selinux_inode_readlink ( struct dentry * dentry ) {\n const struct cred * cred = current_cred ( ) ;\n return dentry_has_perm ( cred , dentry , FILE__READ ) ;\n }"}
{"idx": 6453, "target": 0, "func": "static char * primary_key_fields ( const char * table_name ) {\n MYSQL_RES * res = NULL ;\n MYSQL_ROW row ;\n char show_keys_buff [ 15 + NAME_LEN * 2 + 3 ] ;\n uint result_length = 0 ;\n char * result = 0 ;\n char buff [ NAME_LEN * 2 + 3 ] ;\n char * quoted_field ;\n my_snprintf ( show_keys_buff , sizeof ( show_keys_buff ) , \"SHOW KEYS FROM %s\" , table_name ) ;\n if ( mysql_query ( mysql , show_keys_buff ) || ! ( res = mysql_store_result ( mysql ) ) ) {\n fprintf ( stderr , \"Warning: Couldn't read keys from table %s;\n\" \" records are NOT sorted (%s)\\n\" , table_name , mysql_error ( mysql ) ) ;\n goto cleanup ;\n }\n if ( ( row = mysql_fetch_row ( res ) ) && atoi ( row [ 1 ] ) == 0 ) {\n do {\n quoted_field = quote_name ( row [ 4 ] , buff , 0 ) ;\n result_length += strlen ( quoted_field ) + 1 ;\n }\n while ( ( row = mysql_fetch_row ( res ) ) && atoi ( row [ 3 ] ) > 1 ) ;\n }\n if ( result_length ) {\n char * end ;\n result = my_malloc ( result_length + 10 , MYF ( MY_WME ) ) ;\n if ( ! result ) {\n fprintf ( stderr , \"Error: Not enough memory to store ORDER BY clause\\n\" ) ;\n goto cleanup ;\n }\n mysql_data_seek ( res , 0 ) ;\n row = mysql_fetch_row ( res ) ;\n quoted_field = quote_name ( row [ 4 ] , buff , 0 ) ;\n end = strmov ( result , quoted_field ) ;\n while ( ( row = mysql_fetch_row ( res ) ) && atoi ( row [ 3 ] ) > 1 ) {\n quoted_field = quote_name ( row [ 4 ] , buff , 0 ) ;\n end = strxmov ( end , \",\" , quoted_field , NullS ) ;\n }\n }\n cleanup : if ( res ) mysql_free_result ( res ) ;\n return result ;\n }"}
{"idx": 6454, "target": 0, "func": "static int check_opcodes ( MMCO * mmco1 , MMCO * mmco2 , int n_mmcos ) {\n int i ;\n for ( i = 0 ;\n i < n_mmcos ;\n i ++ ) {\n if ( mmco1 [ i ] . opcode != mmco2 [ i ] . opcode ) return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 6455, "target": 0, "func": "static void set_rc_buffer_sizes ( RATE_CONTROL * rc , const VP9EncoderConfig * oxcf ) {\n const int64_t bandwidth = oxcf -> target_bandwidth ;\n const int64_t starting = oxcf -> starting_buffer_level_ms ;\n const int64_t optimal = oxcf -> optimal_buffer_level_ms ;\n const int64_t maximum = oxcf -> maximum_buffer_size_ms ;\n rc -> starting_buffer_level = starting * bandwidth / 1000 ;\n rc -> optimal_buffer_level = ( optimal == 0 ) ? bandwidth / 8 : optimal * bandwidth / 1000 ;\n rc -> maximum_buffer_size = ( maximum == 0 ) ? bandwidth / 8 : maximum * bandwidth / 1000 ;\n }"}
{"idx": 6456, "target": 0, "func": "hb_blob_t * hb_blob_create_sub_blob ( hb_blob_t * parent , unsigned int offset , unsigned int length ) {\n hb_blob_t * blob ;\n if ( ! length || offset >= parent -> length ) return hb_blob_get_empty ( ) ;\n hb_blob_make_immutable ( parent ) ;\n blob = hb_blob_create ( parent -> data + offset , MIN ( length , parent -> length - offset ) , HB_MEMORY_MODE_READONLY , hb_blob_reference ( parent ) , ( hb_destroy_func_t ) hb_blob_destroy ) ;\n return blob ;\n }"}
{"idx": 6457, "target": 0, "func": "static CreateDestDirResult create_dest_dir ( CommonJob * job , GFile * src , GFile * * dest , gboolean same_fs , char * * dest_fs_type ) {\n GError * error ;\n GFile * new_dest , * dest_dir ;\n char * primary , * secondary , * details ;\n int response ;\n gboolean handled_invalid_filename ;\n gboolean res ;\n handled_invalid_filename = * dest_fs_type != NULL ;\n retry : error = NULL ;\n res = g_file_make_directory ( * dest , job -> cancellable , & error ) ;\n if ( res ) {\n GFile * real ;\n real = map_possibly_volatile_file_to_real ( * dest , job -> cancellable , & error ) ;\n if ( real == NULL ) {\n res = FALSE ;\n }\n else {\n g_object_unref ( * dest ) ;\n * dest = real ;\n }\n }\n if ( ! res ) {\n if ( IS_IO_ERROR ( error , CANCELLED ) ) {\n g_error_free ( error ) ;\n return CREATE_DEST_DIR_FAILED ;\n }\n else if ( IS_IO_ERROR ( error , INVALID_FILENAME ) && ! handled_invalid_filename ) {\n handled_invalid_filename = TRUE ;\n g_assert ( * dest_fs_type == NULL ) ;\n dest_dir = g_file_get_parent ( * dest ) ;\n if ( dest_dir != NULL ) {\n * dest_fs_type = query_fs_type ( dest_dir , job -> cancellable ) ;\n new_dest = get_target_file ( src , dest_dir , * dest_fs_type , same_fs ) ;\n g_object_unref ( dest_dir ) ;\n if ( ! g_file_equal ( * dest , new_dest ) ) {\n g_object_unref ( * dest ) ;\n * dest = new_dest ;\n g_error_free ( error ) ;\n return CREATE_DEST_DIR_RETRY ;\n }\n else {\n g_object_unref ( new_dest ) ;\n }\n }\n }\n primary = f ( _ ( \"Error while copying.\" ) ) ;\n details = NULL ;\n if ( IS_IO_ERROR ( error , PERMISSION_DENIED ) ) {\n secondary = f ( _ ( \"The folder \u201c%B\u201d cannot be copied because you do not have \" \"permissions to create it in the destination.\" ) , src ) ;\n }\n else {\n secondary = f ( _ ( \"There was an error creating the folder \u201c%B\u201d.\" ) , src ) ;\n details = error -> message ;\n }\n response = run_warning ( job , primary , secondary , details , FALSE , CANCEL , SKIP , RETRY , NULL ) ;\n g_error_free ( error ) ;\n if ( response == 0 || response == GTK_RESPONSE_DELETE_EVENT ) {\n abort_job ( job ) ;\n }\n else if ( response == 1 ) {\n }\n else if ( response == 2 ) {\n goto retry ;\n }\n else {\n g_assert_not_reached ( ) ;\n }\n return CREATE_DEST_DIR_FAILED ;\n }\n nautilus_file_changes_queue_file_added ( * dest ) ;\n if ( job -> undo_info != NULL ) {\n nautilus_file_undo_info_ext_add_origin_target_pair ( NAUTILUS_FILE_UNDO_INFO_EXT ( job -> undo_info ) , src , * dest ) ;\n }\n return CREATE_DEST_DIR_SUCCESS ;\n }"}
{"idx": 6458, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( DownloadExtensionTest , DownloadExtensionTest_OnDeterminingFilename_Override ) {\n GoOnTheRecord ( ) ;\n LoadExtension ( \"downloads_split\" ) ;\n AddFilenameDeterminer ( ) ;\n ASSERT_TRUE ( StartEmbeddedTestServer ( ) ) ;\n std : : string download_url = embedded_test_server ( ) -> GetURL ( \"/slow?0\" ) . spec ( ) ;\n std : : unique_ptr < base : : Value > result ( RunFunctionAndReturnResult ( new DownloadsDownloadFunction ( ) , base : : StringPrintf ( \"[{\n\\\"url\\\": \\\"%s\\\"}\n]\" , download_url . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( result . get ( ) ) ;\n int result_id = - 1 ;\n ASSERT_TRUE ( result -> GetAsInteger ( & result_id ) ) ;\n DownloadItem * item = GetCurrentManager ( ) -> GetDownload ( result_id ) ;\n ASSERT_TRUE ( item ) ;\n ScopedCancellingItem canceller ( item ) ;\n ASSERT_EQ ( download_url , item -> GetOriginalUrl ( ) . spec ( ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnCreated : : kEventName , base : : StringPrintf ( \"[{\n\\\"danger\\\": \\\"safe\\\",\" \" \\\"incognito\\\": false,\" \" \\\"id\\\": %d,\" \" \\\"mime\\\": \\\"text/plain\\\",\" \" \\\"paused\\\": false,\" \" \\\"url\\\": \\\"%s\\\"}\n]\" , result_id , download_url . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnDeterminingFilename : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"filename\\\":\\\"slow.txt\\\"}\n]\" , result_id ) ) ) ;\n ASSERT_TRUE ( item -> GetTargetFilePath ( ) . empty ( ) ) ;\n ASSERT_EQ ( DownloadItem : : IN_PROGRESS , item -> GetState ( ) ) ;\n std : : string error ;\n ASSERT_TRUE ( ExtensionDownloadsEventRouter : : DetermineFilename ( browser ( ) -> profile ( ) , false , GetExtensionId ( ) , result_id , base : : FilePath ( ) , downloads : : FILENAME_CONFLICT_ACTION_UNIQUIFY , & error ) ) ;\n EXPECT_EQ ( \"\" , error ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnChanged : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"filename\\\": {\n\" \" \\\"previous\\\": \\\"\\\",\" \" \\\"current\\\": \\\"%s\\\"}\n}\n]\" , result_id , GetFilename ( \"slow.txt\" ) . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnChanged : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"state\\\": {\n\" \" \\\"previous\\\": \\\"in_progress\\\",\" \" \\\"current\\\": \\\"complete\\\"}\n}\n]\" , result_id ) ) ) ;\n result . reset ( RunFunctionAndReturnResult ( new DownloadsDownloadFunction ( ) , base : : StringPrintf ( \"[{\n\\\"url\\\": \\\"%s\\\"}\n]\" , download_url . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( result . get ( ) ) ;\n result_id = - 1 ;\n ASSERT_TRUE ( result -> GetAsInteger ( & result_id ) ) ;\n item = GetCurrentManager ( ) -> GetDownload ( result_id ) ;\n ASSERT_TRUE ( item ) ;\n ScopedCancellingItem canceller2 ( item ) ;\n ASSERT_EQ ( download_url , item -> GetOriginalUrl ( ) . spec ( ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnCreated : : kEventName , base : : StringPrintf ( \"[{\n\\\"danger\\\": \\\"safe\\\",\" \" \\\"incognito\\\": false,\" \" \\\"id\\\": %d,\" \" \\\"mime\\\": \\\"text/plain\\\",\" \" \\\"paused\\\": false,\" \" \\\"url\\\": \\\"%s\\\"}\n]\" , result_id , download_url . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnDeterminingFilename : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"filename\\\":\\\"slow.txt\\\"}\n]\" , result_id ) ) ) ;\n ASSERT_TRUE ( item -> GetTargetFilePath ( ) . empty ( ) ) ;\n ASSERT_EQ ( DownloadItem : : IN_PROGRESS , item -> GetState ( ) ) ;\n error = \"\" ;\n ASSERT_TRUE ( ExtensionDownloadsEventRouter : : DetermineFilename ( browser ( ) -> profile ( ) , false , GetExtensionId ( ) , result_id , base : : FilePath ( FILE_PATH_LITERAL ( \"foo\" ) ) , downloads : : FILENAME_CONFLICT_ACTION_OVERWRITE , & error ) ) ;\n EXPECT_EQ ( \"\" , error ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnChanged : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"filename\\\": {\n\" \" \\\"previous\\\": \\\"\\\",\" \" \\\"current\\\": \\\"%s\\\"}\n}\n]\" , result_id , GetFilename ( \"foo\" ) . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnChanged : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"state\\\": {\n\" \" \\\"previous\\\": \\\"in_progress\\\",\" \" \\\"current\\\": \\\"complete\\\"}\n}\n]\" , result_id ) ) ) ;\n }"}
{"idx": 6459, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n TM2Context * const l = avctx -> priv_data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size & ~ 3 ;\n AVFrame * const p = & l -> pic ;\n int offset = TM2_HEADER_SIZE ;\n int i , t , ret ;\n uint8_t * swbuf ;\n swbuf = av_malloc ( buf_size + FF_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( ! swbuf ) {\n av_log ( avctx , AV_LOG_ERROR , \"Cannot allocate temporary buffer\\n\" ) ;\n return AVERROR ( ENOMEM ) ;\n }\n if ( ( ret = ff_reget_buffer ( avctx , p ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n av_free ( swbuf ) ;\n return ret ;\n }\n l -> dsp . bswap_buf ( ( uint32_t * ) swbuf , ( const uint32_t * ) buf , buf_size >> 2 ) ;\n if ( ( ret = tm2_read_header ( l , swbuf ) ) < 0 ) {\n av_free ( swbuf ) ;\n return ret ;\n }\n for ( i = 0 ;\n i < TM2_NUM_STREAMS ;\n i ++ ) {\n if ( offset >= buf_size ) {\n av_free ( swbuf ) ;\n return AVERROR_INVALIDDATA ;\n }\n t = tm2_read_stream ( l , swbuf + offset , tm2_stream_order [ i ] , buf_size - offset ) ;\n if ( t < 0 ) {\n av_free ( swbuf ) ;\n return t ;\n }\n offset += t ;\n }\n p -> key_frame = tm2_decode_blocks ( l , p ) ;\n if ( p -> key_frame ) p -> pict_type = AV_PICTURE_TYPE_I ;\n else p -> pict_type = AV_PICTURE_TYPE_P ;\n l -> cur = ! l -> cur ;\n * got_frame = 1 ;\n ret = av_frame_ref ( data , & l -> pic ) ;\n av_free ( swbuf ) ;\n return ( ret < 0 ) ? ret : buf_size ;\n }"}
{"idx": 6460, "target": 0, "func": "static int isoent_rr_move_dir ( struct archive_write * a , struct isoent * * rr_moved , struct isoent * curent , struct isoent * * newent ) {\n struct iso9660 * iso9660 = a -> format_data ;\n struct isoent * rrmoved , * mvent , * np ;\n if ( ( rrmoved = * rr_moved ) == NULL ) {\n struct isoent * rootent = iso9660 -> primary . rootent ;\n rrmoved = isoent_create_virtual_dir ( a , iso9660 , \"rr_moved\" ) ;\n if ( rrmoved == NULL ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate memory\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n isoent_add_child_head ( rootent , rrmoved ) ;\n archive_entry_set_nlink ( rootent -> file -> entry , archive_entry_nlink ( rootent -> file -> entry ) + 1 ) ;\n path_table_add_entry ( & ( iso9660 -> primary . pathtbl [ 1 ] ) , rrmoved ) ;\n * rr_moved = rrmoved ;\n }\n mvent = isoent_clone ( curent ) ;\n if ( mvent == NULL ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate memory\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n mvent -> rr_parent = curent -> parent ;\n curent -> rr_child = mvent ;\n if ( curent -> children . first != NULL ) {\n * mvent -> children . last = curent -> children . first ;\n mvent -> children . last = curent -> children . last ;\n }\n for ( np = mvent -> children . first ;\n np != NULL ;\n np = np -> chnext ) np -> parent = mvent ;\n mvent -> children . cnt = curent -> children . cnt ;\n curent -> children . cnt = 0 ;\n curent -> children . first = NULL ;\n curent -> children . last = & curent -> children . first ;\n if ( curent -> subdirs . first != NULL ) {\n * mvent -> subdirs . last = curent -> subdirs . first ;\n mvent -> subdirs . last = curent -> subdirs . last ;\n }\n mvent -> subdirs . cnt = curent -> subdirs . cnt ;\n curent -> subdirs . cnt = 0 ;\n curent -> subdirs . first = NULL ;\n curent -> subdirs . last = & curent -> subdirs . first ;\n isoent_add_child_tail ( rrmoved , mvent ) ;\n archive_entry_set_nlink ( rrmoved -> file -> entry , archive_entry_nlink ( rrmoved -> file -> entry ) + 1 ) ;\n curent -> dir = 0 ;\n * newent = mvent ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 6461, "target": 0, "func": "hb_bool_t hb_shape_plan_execute ( hb_shape_plan_t * shape_plan , hb_font_t * font , hb_buffer_t * buffer , const hb_feature_t * features , unsigned int num_features ) {\n DEBUG_MSG_FUNC ( SHAPE_PLAN , shape_plan , \"num_features=%d shaper_func=%p\" , num_features , shape_plan -> shaper_func ) ;\n if ( unlikely ( hb_object_is_inert ( shape_plan ) || hb_object_is_inert ( buffer ) ) ) return false ;\n assert ( shape_plan -> face_unsafe == font -> face ) ;\n assert ( hb_segment_properties_equal ( & shape_plan -> props , & buffer -> props ) ) ;\n # define HB_SHAPER_EXECUTE ( shaper ) HB_STMT_START {\n return HB_SHAPER_DATA ( shaper , shape_plan ) && hb_ ## shaper ## _shaper_font_data_ensure ( font ) && _hb_ ## shaper ## _shape ( shape_plan , font , buffer , features , num_features ) ;\n }\n HB_STMT_END if ( 0 ) ;\n # define HB_SHAPER_IMPLEMENT ( shaper ) else if ( shape_plan -> shaper_func == _hb_ ## shaper ## _shape ) HB_SHAPER_EXECUTE ( shaper ) ;\n # include \"hb-shaper-list.hh\" # undef HB_SHAPER_IMPLEMENT # undef HB_SHAPER_EXECUTE return false ;\n }"}
{"idx": 6462, "target": 0, "func": "int vp9_full_search_sad_c ( const MACROBLOCK * x , const MV * ref_mv , int sad_per_bit , int distance , const vp9_variance_fn_ptr_t * fn_ptr , const MV * center_mv , MV * best_mv ) {\n int r , c ;\n const MACROBLOCKD * const xd = & x -> e_mbd ;\n const struct buf_2d * const what = & x -> plane [ 0 ] . src ;\n const struct buf_2d * const in_what = & xd -> plane [ 0 ] . pre [ 0 ] ;\n const int row_min = MAX ( ref_mv -> row - distance , x -> mv_row_min ) ;\n const int row_max = MIN ( ref_mv -> row + distance , x -> mv_row_max ) ;\n const int col_min = MAX ( ref_mv -> col - distance , x -> mv_col_min ) ;\n const int col_max = MIN ( ref_mv -> col + distance , x -> mv_col_max ) ;\n const MV fcenter_mv = {\n center_mv -> row >> 3 , center_mv -> col >> 3 }\n ;\n int best_sad = fn_ptr -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , ref_mv ) , in_what -> stride ) + mvsad_err_cost ( x , ref_mv , & fcenter_mv , sad_per_bit ) ;\n * best_mv = * ref_mv ;\n for ( r = row_min ;\n r < row_max ;\n ++ r ) {\n for ( c = col_min ;\n c < col_max ;\n ++ c ) {\n const MV mv = {\n r , c }\n ;\n const int sad = fn_ptr -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , & mv ) , in_what -> stride ) + mvsad_err_cost ( x , & mv , & fcenter_mv , sad_per_bit ) ;\n if ( sad < best_sad ) {\n best_sad = sad ;\n * best_mv = mv ;\n }\n }\n }\n return best_sad ;\n }"}
{"idx": 6463, "target": 0, "func": "static int auth_server_lookup_request ( struct auth_server_connection * conn , const char * id_arg , bool remove , struct auth_client_request * * request_r ) {\n struct auth_client_request * request ;\n unsigned int id ;\n if ( id_arg == NULL || str_to_uint ( id_arg , & id ) < 0 ) {\n i_error ( \"BUG: Authentication server input missing ID\" ) ;\n return - 1 ;\n }\n request = hash_table_lookup ( conn -> requests , POINTER_CAST ( id ) ) ;\n if ( request == NULL ) {\n i_error ( \"BUG: Authentication server sent unknown id %u\" , id ) ;\n return - 1 ;\n }\n if ( remove || auth_client_request_is_aborted ( request ) ) hash_table_remove ( conn -> requests , POINTER_CAST ( id ) ) ;\n * request_r = request ;\n return 0 ;\n }"}
{"idx": 6464, "target": 0, "func": "static int dissect_h225_T_t35Extension ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 255U , & t35Extension , FALSE ) ;\n return offset ;\n }"}
{"idx": 6465, "target": 0, "func": "int xmlIsExtender ( unsigned int ch ) {\n return ( xmlIsExtenderQ ( ch ) ) ;\n }"}
{"idx": 6466, "target": 1, "func": "void vp9_lpf_vertical_4_dual_sse2 ( uint8_t * s , int p , const uint8_t * blimit0 , const uint8_t * limit0 , const uint8_t * thresh0 , const uint8_t * blimit1 , const uint8_t * limit1 , const uint8_t * thresh1 ) {\n DECLARE_ALIGNED_ARRAY ( 16 , unsigned char , t_dst , 16 * 8 ) ;\n unsigned char * src [ 2 ] ;\n unsigned char * dst [ 2 ] ;\n transpose8x16 ( s - 4 , s - 4 + p * 8 , p , t_dst , 16 ) ;\n vp9_lpf_horizontal_4_dual_sse2 ( t_dst + 4 * 16 , 16 , blimit0 , limit0 , thresh0 , blimit1 , limit1 , thresh1 ) ;\n src [ 0 ] = t_dst ;\n src [ 1 ] = t_dst + 8 ;\n dst [ 0 ] = s - 4 ;\n dst [ 1 ] = s - 4 + p * 8 ;\n transpose ( src , 16 , dst , p , 2 ) ;\n }"}
{"idx": 6467, "target": 0, "func": "static void server_port_free ( struct evdns_server_port * port ) {\n assert ( port ) ;\n assert ( ! port -> refcnt ) ;\n assert ( ! port -> pending_replies ) ;\n if ( port -> socket > 0 ) {\n CLOSE_SOCKET ( port -> socket ) ;\n port -> socket = - 1 ;\n }\n ( void ) event_del ( & port -> event ) ;\n }"}
{"idx": 6468, "target": 0, "func": "gx_color_index mem_mapped_map_rgb_color ( gx_device * dev , const gx_color_value cv [ ] ) {\n gx_device_memory * const mdev = ( gx_device_memory * ) dev ;\n byte br = gx_color_value_to_byte ( cv [ 0 ] ) ;\n register const byte * pptr = mdev -> palette . data ;\n int cnt = mdev -> palette . size ;\n const byte * which = 0 ;\n int best = 256 * 3 ;\n if ( mdev -> color_info . num_components != 1 ) {\n byte bg = gx_color_value_to_byte ( cv [ 1 ] ) ;\n byte bb = gx_color_value_to_byte ( cv [ 2 ] ) ;\n while ( ( cnt -= 3 ) >= 0 ) {\n register int diff = * pptr - br ;\n if ( diff < 0 ) diff = - diff ;\n if ( diff < best ) {\n int dg = pptr [ 1 ] - bg ;\n if ( dg < 0 ) dg = - dg ;\n if ( ( diff += dg ) < best ) {\n int db = pptr [ 2 ] - bb ;\n if ( db < 0 ) db = - db ;\n if ( ( diff += db ) < best ) which = pptr , best = diff ;\n }\n }\n if ( diff == 0 ) break ;\n pptr += 3 ;\n }\n }\n else {\n while ( ( cnt -= 3 ) >= 0 ) {\n register int diff = * pptr - br ;\n if ( diff < 0 ) diff = - diff ;\n if ( diff < best ) {\n which = pptr , best = diff ;\n }\n if ( diff == 0 ) break ;\n pptr += 3 ;\n }\n }\n return ( gx_color_index ) ( ( which - mdev -> palette . data ) / 3 ) ;\n }"}
{"idx": 6469, "target": 0, "func": "int ec_strsplit_ipport ( char * input , char * ip , u_int16 * port ) {\n static char ip_tmp [ MAX_ASCII_ADDR_LEN ] ;\n if ( sscanf ( input , \"%20[0-9.]:%hu\" , ip_tmp , port ) == 2 ) {\n strncpy ( ip , ip_tmp , strlen ( ip_tmp ) + 1 ) ;\n return E_SUCCESS ;\n }\n if ( sscanf ( input , \"[%40[0-9a-fA-F:.]]:%hu\" , ip_tmp , port ) == 2 ) {\n strncpy ( ip , ip_tmp , strlen ( ip_tmp ) + 1 ) ;\n return E_SUCCESS ;\n }\n DEBUG_MSG ( \"ec_strsplit_ipport(): error splitting ip:port: '%s'\\n\" , input ) ;\n return - E_INVALID ;\n }"}
{"idx": 6470, "target": 0, "func": "static void decReverse ( Unit * ulo , Unit * uhi ) {\n Unit temp ;\n for ( ;\n ulo < uhi ;\n ulo ++ , uhi -- ) {\n temp = * ulo ;\n * ulo = * uhi ;\n * uhi = temp ;\n }\n return ;\n }"}
{"idx": 6471, "target": 0, "func": "void addToHeaderList ( const char * strings [ ] , HttpHeaderList & headers ) {\n for ( int i = 0 ;\n strings [ i ] ;\n i += 2 ) {\n if ( i % 4 == 0 ) {\n headers . push_back ( HttpHeader ( strings [ i ] , - 1 , strings [ i + 1 ] , - 1 ) ) ;\n headers . push_back ( HttpHeader ( ) ) ;\n }\n else {\n headers . push_back ( HttpHeader ( strings [ i ] , strlen ( strings [ i ] ) , strings [ i + 1 ] , strlen ( strings [ i + 1 ] ) ) ) ;\n }\n }\n }"}
{"idx": 6472, "target": 1, "func": "void vp9_lpf_horizontal_4_dual_sse2 ( unsigned char * s , int p , const unsigned char * _blimit0 , const unsigned char * _limit0 , const unsigned char * _thresh0 , const unsigned char * _blimit1 , const unsigned char * _limit1 , const unsigned char * _thresh1 ) {\n const __m128i blimit = _mm_unpacklo_epi64 ( _mm_load_si128 ( ( const __m128i * ) _blimit0 ) , _mm_load_si128 ( ( const __m128i * ) _blimit1 ) ) ;\n const __m128i limit = _mm_unpacklo_epi64 ( _mm_load_si128 ( ( const __m128i * ) _limit0 ) , _mm_load_si128 ( ( const __m128i * ) _limit1 ) ) ;\n const __m128i thresh = _mm_unpacklo_epi64 ( _mm_load_si128 ( ( const __m128i * ) _thresh0 ) , _mm_load_si128 ( ( const __m128i * ) _thresh1 ) ) ;\n const __m128i zero = _mm_set1_epi16 ( 0 ) ;\n __m128i p3 , p2 , p1 , p0 , q0 , q1 , q2 , q3 ;\n __m128i mask , hev , flat ;\n p3 = _mm_loadu_si128 ( ( __m128i * ) ( s - 4 * p ) ) ;\n p2 = _mm_loadu_si128 ( ( __m128i * ) ( s - 3 * p ) ) ;\n p1 = _mm_loadu_si128 ( ( __m128i * ) ( s - 2 * p ) ) ;\n p0 = _mm_loadu_si128 ( ( __m128i * ) ( s - 1 * p ) ) ;\n q0 = _mm_loadu_si128 ( ( __m128i * ) ( s - 0 * p ) ) ;\n q1 = _mm_loadu_si128 ( ( __m128i * ) ( s + 1 * p ) ) ;\n q2 = _mm_loadu_si128 ( ( __m128i * ) ( s + 2 * p ) ) ;\n q3 = _mm_loadu_si128 ( ( __m128i * ) ( s + 3 * p ) ) ;\n {\n const __m128i abs_p1p0 = _mm_or_si128 ( _mm_subs_epu8 ( p1 , p0 ) , _mm_subs_epu8 ( p0 , p1 ) ) ;\n const __m128i abs_q1q0 = _mm_or_si128 ( _mm_subs_epu8 ( q1 , q0 ) , _mm_subs_epu8 ( q0 , q1 ) ) ;\n const __m128i fe = _mm_set1_epi8 ( 0xfe ) ;\n const __m128i ff = _mm_cmpeq_epi8 ( abs_p1p0 , abs_p1p0 ) ;\n __m128i abs_p0q0 = _mm_or_si128 ( _mm_subs_epu8 ( p0 , q0 ) , _mm_subs_epu8 ( q0 , p0 ) ) ;\n __m128i abs_p1q1 = _mm_or_si128 ( _mm_subs_epu8 ( p1 , q1 ) , _mm_subs_epu8 ( q1 , p1 ) ) ;\n __m128i work ;\n flat = _mm_max_epu8 ( abs_p1p0 , abs_q1q0 ) ;\n hev = _mm_subs_epu8 ( flat , thresh ) ;\n hev = _mm_xor_si128 ( _mm_cmpeq_epi8 ( hev , zero ) , ff ) ;\n abs_p0q0 = _mm_adds_epu8 ( abs_p0q0 , abs_p0q0 ) ;\n abs_p1q1 = _mm_srli_epi16 ( _mm_and_si128 ( abs_p1q1 , fe ) , 1 ) ;\n mask = _mm_subs_epu8 ( _mm_adds_epu8 ( abs_p0q0 , abs_p1q1 ) , blimit ) ;\n mask = _mm_xor_si128 ( _mm_cmpeq_epi8 ( mask , zero ) , ff ) ;\n mask = _mm_max_epu8 ( flat , mask ) ;\n work = _mm_max_epu8 ( _mm_or_si128 ( _mm_subs_epu8 ( p2 , p1 ) , _mm_subs_epu8 ( p1 , p2 ) ) , _mm_or_si128 ( _mm_subs_epu8 ( p3 , p2 ) , _mm_subs_epu8 ( p2 , p3 ) ) ) ;\n mask = _mm_max_epu8 ( work , mask ) ;\n work = _mm_max_epu8 ( _mm_or_si128 ( _mm_subs_epu8 ( q2 , q1 ) , _mm_subs_epu8 ( q1 , q2 ) ) , _mm_or_si128 ( _mm_subs_epu8 ( q3 , q2 ) , _mm_subs_epu8 ( q2 , q3 ) ) ) ;\n mask = _mm_max_epu8 ( work , mask ) ;\n mask = _mm_subs_epu8 ( mask , limit ) ;\n mask = _mm_cmpeq_epi8 ( mask , zero ) ;\n }\n {\n const __m128i t4 = _mm_set1_epi8 ( 4 ) ;\n const __m128i t3 = _mm_set1_epi8 ( 3 ) ;\n const __m128i t80 = _mm_set1_epi8 ( 0x80 ) ;\n const __m128i te0 = _mm_set1_epi8 ( 0xe0 ) ;\n const __m128i t1f = _mm_set1_epi8 ( 0x1f ) ;\n const __m128i t1 = _mm_set1_epi8 ( 0x1 ) ;\n const __m128i t7f = _mm_set1_epi8 ( 0x7f ) ;\n const __m128i ps1 = _mm_xor_si128 ( _mm_loadu_si128 ( ( __m128i * ) ( s - 2 * p ) ) , t80 ) ;\n const __m128i ps0 = _mm_xor_si128 ( _mm_loadu_si128 ( ( __m128i * ) ( s - 1 * p ) ) , t80 ) ;\n const __m128i qs0 = _mm_xor_si128 ( _mm_loadu_si128 ( ( __m128i * ) ( s + 0 * p ) ) , t80 ) ;\n const __m128i qs1 = _mm_xor_si128 ( _mm_loadu_si128 ( ( __m128i * ) ( s + 1 * p ) ) , t80 ) ;\n __m128i filt ;\n __m128i work_a ;\n __m128i filter1 , filter2 ;\n filt = _mm_and_si128 ( _mm_subs_epi8 ( ps1 , qs1 ) , hev ) ;\n work_a = _mm_subs_epi8 ( qs0 , ps0 ) ;\n filt = _mm_adds_epi8 ( filt , work_a ) ;\n filt = _mm_adds_epi8 ( filt , work_a ) ;\n filt = _mm_adds_epi8 ( filt , work_a ) ;\n filt = _mm_and_si128 ( filt , mask ) ;\n filter1 = _mm_adds_epi8 ( filt , t4 ) ;\n filter2 = _mm_adds_epi8 ( filt , t3 ) ;\n work_a = _mm_cmpgt_epi8 ( zero , filter1 ) ;\n filter1 = _mm_srli_epi16 ( filter1 , 3 ) ;\n work_a = _mm_and_si128 ( work_a , te0 ) ;\n filter1 = _mm_and_si128 ( filter1 , t1f ) ;\n filter1 = _mm_or_si128 ( filter1 , work_a ) ;\n work_a = _mm_cmpgt_epi8 ( zero , filter2 ) ;\n filter2 = _mm_srli_epi16 ( filter2 , 3 ) ;\n work_a = _mm_and_si128 ( work_a , te0 ) ;\n filter2 = _mm_and_si128 ( filter2 , t1f ) ;\n filter2 = _mm_or_si128 ( filter2 , work_a ) ;\n filt = _mm_adds_epi8 ( filter1 , t1 ) ;\n work_a = _mm_cmpgt_epi8 ( zero , filt ) ;\n filt = _mm_srli_epi16 ( filt , 1 ) ;\n work_a = _mm_and_si128 ( work_a , t80 ) ;\n filt = _mm_and_si128 ( filt , t7f ) ;\n filt = _mm_or_si128 ( filt , work_a ) ;\n filt = _mm_andnot_si128 ( hev , filt ) ;\n q0 = _mm_xor_si128 ( _mm_subs_epi8 ( qs0 , filter1 ) , t80 ) ;\n q1 = _mm_xor_si128 ( _mm_subs_epi8 ( qs1 , filt ) , t80 ) ;\n p0 = _mm_xor_si128 ( _mm_adds_epi8 ( ps0 , filter2 ) , t80 ) ;\n p1 = _mm_xor_si128 ( _mm_adds_epi8 ( ps1 , filt ) , t80 ) ;\n _mm_storeu_si128 ( ( __m128i * ) ( s - 2 * p ) , p1 ) ;\n _mm_storeu_si128 ( ( __m128i * ) ( s - 1 * p ) , p0 ) ;\n _mm_storeu_si128 ( ( __m128i * ) ( s + 0 * p ) , q0 ) ;\n _mm_storeu_si128 ( ( __m128i * ) ( s + 1 * p ) , q1 ) ;\n }\n }"}
{"idx": 6473, "target": 0, "func": "static guint16 de_cause ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len , gchar * add_string , int string_len ) {\n guint8 oct ;\n guint8 cause ;\n guint32 curr_offset ;\n guint32 diag_length ;\n proto_tree * subtree ;\n const gchar * str ;\n curr_offset = offset ;\n proto_tree_add_item ( tree , hf_gsm_a_extension , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_de_cause_coding_standard , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( curr_offset << 3 ) + 3 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_location , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n if ( ! ( oct & 0x80 ) ) {\n proto_tree_add_item ( tree , hf_gsm_a_extension , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_recommendation , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n }\n proto_tree_add_item ( tree , hf_gsm_a_extension , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n cause = oct & 0x7f ;\n switch ( cause ) {\n case 1 : str = \"Unassigned (unallocated) number\" ;\n break ;\n case 3 : str = \"No route to destination\" ;\n break ;\n case 6 : str = \"Channel unacceptable\" ;\n break ;\n case 8 : str = \"Operator determined barring\" ;\n break ;\n case 16 : str = \"Normal call clearing\" ;\n break ;\n case 17 : str = \"User busy\" ;\n break ;\n case 18 : str = \"No user responding\" ;\n break ;\n case 19 : str = \"User alerting, no answer\" ;\n break ;\n case 21 : str = \"Call rejected\" ;\n break ;\n case 22 : str = \"Call rejected due to feature at the destination\" ;\n break ;\n case 24 : str = \"Number changed\" ;\n break ;\n case 25 : str = \"Pre-emption\" ;\n break ;\n case 26 : str = \"Non selected user clearing\" ;\n break ;\n case 27 : str = \"Destination out of order\" ;\n break ;\n case 28 : str = \"Invalid number format (incomplete number)\" ;\n break ;\n case 29 : str = \"Facility rejected\" ;\n break ;\n case 30 : str = \"Response to STATUS ENQUIRY\" ;\n break ;\n case 31 : str = \"Normal, unspecified\" ;\n break ;\n case 34 : str = \"No circuit/channel available\" ;\n break ;\n case 38 : str = \"Network out of order\" ;\n break ;\n case 41 : str = \"Temporary failure\" ;\n break ;\n case 42 : str = \"Switching equipment congestion\" ;\n break ;\n case 43 : str = \"Access information discarded\" ;\n break ;\n case 44 : str = \"requested circuit/channel not available\" ;\n break ;\n case 47 : str = \"Resources unavailable, unspecified\" ;\n break ;\n case 49 : str = \"Quality of service unavailable\" ;\n break ;\n case 50 : str = \"Requested facility not subscribed\" ;\n break ;\n case 55 : str = \"Incoming calls barred within the CUG\" ;\n break ;\n case 57 : str = \"Bearer capability not authorized\" ;\n break ;\n case 58 : str = \"Bearer capability not presently available\" ;\n break ;\n case 63 : str = \"Service or option not available, unspecified\" ;\n break ;\n case 65 : str = \"Bearer service not implemented\" ;\n break ;\n case 68 : str = \"ACM equal to or greater than ACMmax\" ;\n break ;\n case 69 : str = \"Requested facility not implemented\" ;\n break ;\n case 70 : str = \"Only restricted digital information bearer capability is available\" ;\n break ;\n case 79 : str = \"Service or option not implemented, unspecified\" ;\n break ;\n case 81 : str = \"Invalid transaction identifier value\" ;\n break ;\n case 87 : str = \"User not member of CUG\" ;\n break ;\n case 88 : str = \"Incompatible destination\" ;\n break ;\n case 91 : str = \"Invalid transit network selection\" ;\n break ;\n case 95 : str = \"Semantically incorrect message\" ;\n break ;\n case 96 : str = \"Invalid mandatory information\" ;\n break ;\n case 97 : str = \"Message type non-existent or not implemented\" ;\n break ;\n case 98 : str = \"Message type not compatible with protocol state\" ;\n break ;\n case 99 : str = \"Information element non-existent or not implemented\" ;\n break ;\n case 100 : str = \"Conditional IE error\" ;\n break ;\n case 101 : str = \"Message not compatible with protocol state\" ;\n break ;\n case 102 : str = \"Recovery on timer expiry\" ;\n break ;\n case 111 : str = \"Protocol error, unspecified\" ;\n break ;\n case 127 : str = \"Interworking, unspecified\" ;\n break ;\n default : if ( cause <= 31 ) {\n str = \"Treat as Normal, unspecified\" ;\n }\n else if ( ( cause >= 32 ) && ( cause <= 47 ) ) {\n str = \"Treat as Resources unavailable, unspecified\" ;\n }\n else if ( ( cause >= 48 ) && ( cause <= 63 ) ) {\n str = \"Treat as Service or option not available, unspecified\" ;\n }\n else if ( ( cause >= 64 ) && ( cause <= 79 ) ) {\n str = \"Treat as Service or option not implemented, unspecified\" ;\n }\n else if ( ( cause >= 80 ) && ( cause <= 95 ) ) {\n str = \"Treat as Semantically incorrect message\" ;\n }\n else if ( ( cause >= 96 ) && ( cause <= 111 ) ) {\n str = \"Treat as Protocol error, unspecified\" ;\n }\n else {\n str = \"Treat as Interworking, unspecified\" ;\n }\n break ;\n }\n proto_tree_add_uint_format_value ( tree , hf_gsm_a_dtap_cause , tvb , curr_offset , 1 , cause , \"Cause: (%u) %s\" , cause , str ) ;\n curr_offset ++ ;\n if ( add_string ) g_snprintf ( add_string , string_len , \" - (%u) %s\" , cause , str ) ;\n NO_MORE_DATA_CHECK ( len ) ;\n subtree = proto_tree_add_subtree ( tree , tvb , curr_offset , len - ( curr_offset - offset ) , ett_gsm_dtap_elem [ DE_CAUSE ] , NULL , \"Diagnostics\" ) ;\n if ( ( cause == 17 ) || ( cause == 29 ) || ( cause == 34 ) || ( cause == 50 ) || ( cause == 55 ) || ( cause == 69 ) || ( cause == 87 ) ) {\n proto_tree_add_item ( subtree , hf_gsm_a_extension , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_cause_ss_diagnostics , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n }\n else {\n diag_length = len - ( curr_offset - offset ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_data , tvb , curr_offset , diag_length , ENC_NA ) ;\n curr_offset += diag_length ;\n }\n EXTRANEOUS_DATA_CHECK ( len , curr_offset - offset , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 6474, "target": 0, "func": "void mime_init_date_format_table ( ) {\n time_t now_secs ;\n int i , now_days , first_days , last_days , num_days ;\n int m = 0 , d = 0 , y = 0 ;\n time ( & now_secs ) ;\n now_days = ( int ) ( now_secs / ( 60 * 60 * 24 ) ) ;\n first_days = now_days - 366 ;\n last_days = now_days + 366 ;\n num_days = last_days - first_days + 1 ;\n _days_to_mdy_fast_lookup_table = ( MDY * ) ats_malloc ( num_days * sizeof ( MDY ) ) ;\n _days_to_mdy_fast_lookup_table_first_day = first_days ;\n _days_to_mdy_fast_lookup_table_last_day = last_days ;\n for ( i = 0 ;\n i < num_days ;\n i ++ ) {\n mime_days_since_epoch_to_mdy_slowcase ( first_days + i , & m , & d , & y ) ;\n _days_to_mdy_fast_lookup_table [ i ] . m = m ;\n _days_to_mdy_fast_lookup_table [ i ] . d = d ;\n _days_to_mdy_fast_lookup_table [ i ] . y = y ;\n }\n }"}
{"idx": 6475, "target": 0, "func": "int keyring_is_writable ( void * token ) {\n KR_NAME r = token ;\n return r ? ( r -> read_only || ! access ( r -> fname , W_OK ) ) : 0 ;\n }"}
{"idx": 6476, "target": 0, "func": "static LDOUBLE pow_10 ( int in_exp ) {\n LDOUBLE result = 1 ;\n while ( in_exp ) {\n result *= 10 ;\n in_exp -- ;\n }\n return result ;\n }"}
{"idx": 6477, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ClientHintsBrowserTest , ClientHintsHttps ) {\n base : : HistogramTester histogram_tester ;\n ui_test_utils : : NavigateToURL ( browser ( ) , accept_ch_with_lifetime_url ( ) ) ;\n histogram_tester . ExpectUniqueSample ( \"ClientHints.UpdateEventCount\" , 1 , 1 ) ;\n content : : FetchHistogramsFromChildProcesses ( ) ;\n SubprocessMetricsProvider : : MergeHistogramDeltasForTesting ( ) ;\n histogram_tester . ExpectUniqueSample ( \"ClientHints.UpdateSize\" , 3 , 1 ) ;\n histogram_tester . ExpectUniqueSample ( \"ClientHints.PersistDuration\" , * 1000 , 1 ) ;\n }"}
{"idx": 6478, "target": 0, "func": "static void proto_tree_set_oid_tvb ( field_info * fi , tvbuff_t * tvb , gint start , gint length ) {\n proto_tree_set_oid ( fi , tvb_get_ptr ( tvb , start , length ) , length ) ;\n }"}
{"idx": 6479, "target": 0, "func": "static void dissect_zcl_ota_querynextimagersp ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n guint8 status ;\n status = tvb_get_guint8 ( tvb , * offset ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_status , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n if ( status == ZBEE_ZCL_STAT_SUCCESS ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_manufacturer_code , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_image_type , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n dissect_zcl_ota_file_version_field ( tvb , tree , offset ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_image_size , tvb , * offset , 4 , ENC_LITTLE_ENDIAN ) ;\n * offset += 4 ;\n }\n }"}
{"idx": 6480, "target": 0, "func": "static const chr * scanplain ( struct vars * v ) {\n const chr * endp ;\n assert ( SEE ( COLLEL ) || SEE ( ECLASS ) || SEE ( CCLASS ) ) ;\n NEXT ( ) ;\n endp = v -> now ;\n while ( SEE ( PLAIN ) ) {\n endp = v -> now ;\n NEXT ( ) ;\n }\n assert ( SEE ( END ) || ISERR ( ) ) ;\n NEXT ( ) ;\n return endp ;\n }"}
{"idx": 6481, "target": 0, "func": "static void vga_draw_line24_be ( VGACommonState * vga , uint8_t * d , uint32_t addr , int width ) {\n int w ;\n uint32_t r , g , b ;\n w = width ;\n do {\n r = vga_read_byte ( vga , addr + 0 ) ;\n g = vga_read_byte ( vga , addr + 1 ) ;\n b = vga_read_byte ( vga , addr + 2 ) ;\n ( ( uint32_t * ) d ) [ 0 ] = rgb_to_pixel32 ( r , g , b ) ;\n addr += 3 ;\n d += 4 ;\n }\n while ( -- w != 0 ) ;\n }"}
{"idx": 6482, "target": 0, "func": "static void processEncodingEntry ( ArchiveHandle * AH , TocEntry * te ) {\n char * defn = pg_strdup ( te -> defn ) ;\n char * ptr1 ;\n char * ptr2 = NULL ;\n int encoding ;\n ptr1 = strchr ( defn , '\\'' ) ;\n if ( ptr1 ) ptr2 = strchr ( ++ ptr1 , '\\'' ) ;\n if ( ptr2 ) {\n * ptr2 = '\\0' ;\n encoding = pg_char_to_encoding ( ptr1 ) ;\n if ( encoding < 0 ) exit_horribly ( modulename , \"unrecognized encoding \\\"%s\\\"\\n\" , ptr1 ) ;\n AH -> public . encoding = encoding ;\n }\n else exit_horribly ( modulename , \"invalid ENCODING item: %s\\n\" , te -> defn ) ;\n free ( defn ) ;\n }"}
{"idx": 6483, "target": 0, "func": "static void cleanup_threaded_search ( void ) {\n set_try_to_free_routine ( old_try_to_free_routine ) ;\n pthread_cond_destroy ( & progress_cond ) ;\n pthread_mutex_destroy ( & read_mutex ) ;\n pthread_mutex_destroy ( & cache_mutex ) ;\n pthread_mutex_destroy ( & progress_mutex ) ;\n }"}
{"idx": 6484, "target": 0, "func": "static void _update_cred_key ( void ) {\n slurm_cred_ctx_key_update ( slurmctld_config . cred_ctx , slurmctld_conf . job_credential_private_key ) ;\n }"}
{"idx": 6485, "target": 0, "func": "static int parsedate ( const char * date , time_t * output ) {\n time_t t = 0 ;\n int wdaynum = - 1 ;\n int monnum = - 1 ;\n int mdaynum = - 1 ;\n int hournum = - 1 ;\n int minnum = - 1 ;\n int secnum = - 1 ;\n int yearnum = - 1 ;\n int tzoff = - 1 ;\n struct my_tm tm ;\n enum assume dignext = DATE_MDAY ;\n const char * indate = date ;\n int part = 0 ;\n while ( * date && ( part < 6 ) ) {\n bool found = FALSE ;\n skip ( & date ) ;\n if ( ISALPHA ( * date ) ) {\n char buf [ 32 ] = \"\" ;\n size_t len ;\n if ( sscanf ( date , \"%31[ABCDEFGHIJKLMNOPQRSTUVWXYZ\" \"abcdefghijklmnopqrstuvwxyz]\" , buf ) ) len = strlen ( buf ) ;\n else len = 0 ;\n if ( wdaynum == - 1 ) {\n wdaynum = checkday ( buf , len ) ;\n if ( wdaynum != - 1 ) found = TRUE ;\n }\n if ( ! found && ( monnum == - 1 ) ) {\n monnum = checkmonth ( buf ) ;\n if ( monnum != - 1 ) found = TRUE ;\n }\n if ( ! found && ( tzoff == - 1 ) ) {\n tzoff = checktz ( buf ) ;\n if ( tzoff != - 1 ) found = TRUE ;\n }\n if ( ! found ) return PARSEDATE_FAIL ;\n date += len ;\n }\n else if ( ISDIGIT ( * date ) ) {\n int val ;\n char * end ;\n int len = 0 ;\n if ( ( secnum == - 1 ) && ( 3 == sscanf ( date , \"%02d:%02d:%02d%n\" , & hournum , & minnum , & secnum , & len ) ) ) {\n date += len ;\n }\n else if ( ( secnum == - 1 ) && ( 2 == sscanf ( date , \"%02d:%02d%n\" , & hournum , & minnum , & len ) ) ) {\n date += len ;\n secnum = 0 ;\n }\n else {\n long lval ;\n int error ;\n int old_errno ;\n old_errno = ERRNO ;\n SET_ERRNO ( 0 ) ;\n lval = strtol ( date , & end , 10 ) ;\n error = ERRNO ;\n if ( error != old_errno ) SET_ERRNO ( old_errno ) ;\n if ( error ) return PARSEDATE_FAIL ;\n # if LONG_MAX != INT_MAX if ( ( lval > ( long ) INT_MAX ) || ( lval < ( long ) INT_MIN ) ) return PARSEDATE_FAIL ;\n # endif val = curlx_sltosi ( lval ) ;\n if ( ( tzoff == - 1 ) && ( ( end - date ) == 4 ) && ( val <= 1400 ) && ( indate < date ) && ( ( date [ - 1 ] == '+' || date [ - 1 ] == '-' ) ) ) {\n found = TRUE ;\n tzoff = ( val / 100 * 60 + val % 100 ) * 60 ;\n tzoff = date [ - 1 ] == '+' ? - tzoff : tzoff ;\n }\n if ( ( ( end - date ) == 8 ) && ( yearnum == - 1 ) && ( monnum == - 1 ) && ( mdaynum == - 1 ) ) {\n found = TRUE ;\n yearnum = val / 10000 ;\n monnum = ( val % 10000 ) / 100 - 1 ;\n mdaynum = val % 100 ;\n }\n if ( ! found && ( dignext == DATE_MDAY ) && ( mdaynum == - 1 ) ) {\n if ( ( val > 0 ) && ( val < 32 ) ) {\n mdaynum = val ;\n found = TRUE ;\n }\n dignext = DATE_YEAR ;\n }\n if ( ! found && ( dignext == DATE_YEAR ) && ( yearnum == - 1 ) ) {\n yearnum = val ;\n found = TRUE ;\n if ( yearnum < 1900 ) {\n if ( yearnum > 70 ) yearnum += 1900 ;\n else yearnum += 2000 ;\n }\n if ( mdaynum == - 1 ) dignext = DATE_MDAY ;\n }\n if ( ! found ) return PARSEDATE_FAIL ;\n date = end ;\n }\n }\n part ++ ;\n }\n if ( - 1 == secnum ) secnum = minnum = hournum = 0 ;\n if ( ( - 1 == mdaynum ) || ( - 1 == monnum ) || ( - 1 == yearnum ) ) return PARSEDATE_FAIL ;\n # if SIZEOF_TIME_T < 5 if ( yearnum > 2037 ) {\n * output = 0x7fffffff ;\n return PARSEDATE_LATER ;\n }\n # endif if ( yearnum < 1970 ) {\n * output = 0 ;\n return PARSEDATE_SOONER ;\n }\n if ( ( mdaynum > 31 ) || ( monnum > 11 ) || ( hournum > 23 ) || ( minnum > 59 ) || ( secnum > 60 ) ) return PARSEDATE_FAIL ;\n tm . tm_sec = secnum ;\n tm . tm_min = minnum ;\n tm . tm_hour = hournum ;\n tm . tm_mday = mdaynum ;\n tm . tm_mon = monnum ;\n tm . tm_year = yearnum - 1900 ;\n t = my_timegm ( & tm ) ;\n if ( - 1 != ( int ) t ) {\n long delta = ( long ) ( tzoff != - 1 ? tzoff : 0 ) ;\n if ( ( delta > 0 ) && ( t > LONG_MAX - delta ) ) {\n * output = 0x7fffffff ;\n return PARSEDATE_LATER ;\n }\n t += delta ;\n }\n * output = t ;\n return PARSEDATE_OK ;\n }"}
{"idx": 6486, "target": 0, "func": "fz_pixmap_converter * fz_lookup_pixmap_converter ( fz_context * ctx , fz_colorspace * ds , fz_colorspace * ss ) {\n if ( ds == NULL ) return fast_any_to_alpha ;\n if ( ss == default_gray ) {\n if ( ds == default_rgb ) return fast_gray_to_rgb ;\n else if ( ds == default_bgr ) return fast_gray_to_rgb ;\n else if ( ds == default_cmyk ) return fast_gray_to_cmyk ;\n else return std_conv_pixmap ;\n }\n else if ( ss == default_rgb ) {\n if ( ds == default_gray ) return fast_rgb_to_gray ;\n else if ( ds == default_bgr ) return fast_rgb_to_bgr ;\n else if ( ds == default_cmyk ) return fast_rgb_to_cmyk ;\n else return std_conv_pixmap ;\n }\n else if ( ss == default_bgr ) {\n if ( ds == default_gray ) return fast_bgr_to_gray ;\n else if ( ds == default_rgb ) return fast_rgb_to_bgr ;\n else if ( ds == default_cmyk ) return fast_bgr_to_cmyk ;\n else return std_conv_pixmap ;\n }\n else if ( ss == default_cmyk ) {\n if ( ds == default_gray ) return fast_cmyk_to_gray ;\n else if ( ds == default_bgr ) return fast_cmyk_to_bgr ;\n else if ( ds == default_rgb ) return fast_cmyk_to_rgb ;\n else return std_conv_pixmap ;\n }\n else if ( ( ss == fz_device_rgb ( ctx ) && ds == fz_device_bgr ( ctx ) ) || ( ds == fz_device_rgb ( ctx ) && ss == fz_device_bgr ( ctx ) ) ) {\n return fast_rgb_to_bgr ;\n }\n else {\n const fz_colorspace * ss_base = fz_source_colorspace_cm ( ctx , ss ) ;\n if ( ss_base != NULL && fz_colorspace_is_icc ( ctx , ds ) ) {\n if ( ss_base == ss ) return icc_conv_pixmap ;\n else return icc_base_conv_pixmap ;\n }\n else return std_conv_pixmap ;\n }\n }"}
{"idx": 6487, "target": 0, "func": "static int isoent_add_child_tail ( struct isoent * parent , struct isoent * child ) {\n if ( ! __archive_rb_tree_insert_node ( & ( parent -> rbtree ) , ( struct archive_rb_node * ) child ) ) return ( 0 ) ;\n child -> chnext = NULL ;\n * parent -> children . last = child ;\n parent -> children . last = & ( child -> chnext ) ;\n parent -> children . cnt ++ ;\n child -> parent = parent ;\n child -> drnext = NULL ;\n if ( child -> dir ) {\n * parent -> subdirs . last = child ;\n parent -> subdirs . last = & ( child -> drnext ) ;\n parent -> subdirs . cnt ++ ;\n child -> parent = parent ;\n }\n return ( 1 ) ;\n }"}
{"idx": 6488, "target": 0, "func": "static void Type_LUT8_Free ( struct _cms_typehandler_struct * self , void * Ptr ) {\n cmsPipelineFree ( ( cmsPipeline * ) Ptr ) ;\n return ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 6489, "target": 0, "func": "int archive_read_support_format_all ( struct archive * a ) {\n archive_check_magic ( a , ARCHIVE_READ_MAGIC , ARCHIVE_STATE_NEW , \"archive_read_support_format_all\" ) ;\n archive_read_support_format_ar ( a ) ;\n archive_read_support_format_cpio ( a ) ;\n archive_read_support_format_empty ( a ) ;\n archive_read_support_format_lha ( a ) ;\n archive_read_support_format_mtree ( a ) ;\n archive_read_support_format_tar ( a ) ;\n archive_read_support_format_xar ( a ) ;\n archive_read_support_format_warc ( a ) ;\n archive_read_support_format_7zip ( a ) ;\n archive_read_support_format_cab ( a ) ;\n archive_read_support_format_rar ( a ) ;\n archive_read_support_format_iso9660 ( a ) ;\n archive_read_support_format_zip ( a ) ;\n archive_clear_error ( a ) ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 6490, "target": 0, "func": "static gboolean test_applemidi ( tvbuff_t * tvb , guint16 * command_p , gboolean conversation_established ) {\n * command_p = 0xffff ;\n if ( APPLEMIDI_PROTOCOL_SIGNATURE != tvb_get_ntohs ( tvb , 0 ) ) return FALSE ;\n * command_p = tvb_get_ntohs ( tvb , 2 ) ;\n if ( conversation_established ) {\n return TRUE ;\n }\n if ( ( APPLEMIDI_COMMAND_INVITATION == * command_p ) || ( APPLEMIDI_COMMAND_INVITATION_REJECTED == * command_p ) || ( APLLEMIDI_COMMAND_INVITATION_ACCEPTED == * command_p ) || ( APPLEMIDI_COMMAND_ENDSESSION == * command_p ) || ( APPLEMIDI_COMMAND_SYNCHRONIZATION == * command_p ) || ( APPLEMIDI_COMMAND_RECEIVER_FEEDBACK == * command_p ) || ( APPLEMIDI_COMMAND_BITRATE_RECEIVE_LIMIT == * command_p ) ) return TRUE ;\n return FALSE ;\n }"}
{"idx": 6491, "target": 0, "func": "static uintmax_t do_change_note_fanout ( struct tree_entry * orig_root , struct tree_entry * root , char * hex_sha1 , unsigned int hex_sha1_len , char * fullpath , unsigned int fullpath_len , unsigned char fanout ) {\n struct tree_content * t = root -> tree ;\n struct tree_entry * e , leaf ;\n unsigned int i , tmp_hex_sha1_len , tmp_fullpath_len ;\n uintmax_t num_notes = 0 ;\n unsigned char sha1 [ 20 ] ;\n char realpath [ 60 ] ;\n for ( i = 0 ;\n t && i < t -> entry_count ;\n i ++ ) {\n e = t -> entries [ i ] ;\n tmp_hex_sha1_len = hex_sha1_len + e -> name -> str_len ;\n tmp_fullpath_len = fullpath_len ;\n if ( ! e -> versions [ 1 ] . mode || tmp_hex_sha1_len > 40 || e -> name -> str_len % 2 ) continue ;\n memcpy ( hex_sha1 + hex_sha1_len , e -> name -> str_dat , e -> name -> str_len ) ;\n if ( tmp_fullpath_len ) fullpath [ tmp_fullpath_len ++ ] = '/' ;\n memcpy ( fullpath + tmp_fullpath_len , e -> name -> str_dat , e -> name -> str_len ) ;\n tmp_fullpath_len += e -> name -> str_len ;\n fullpath [ tmp_fullpath_len ] = '\\0' ;\n if ( tmp_hex_sha1_len == 40 && ! get_sha1_hex ( hex_sha1 , sha1 ) ) {\n if ( fanout == 0xff ) {\n num_notes ++ ;\n continue ;\n }\n construct_path_with_fanout ( hex_sha1 , fanout , realpath ) ;\n if ( ! strcmp ( fullpath , realpath ) ) {\n num_notes ++ ;\n continue ;\n }\n if ( ! tree_content_remove ( orig_root , fullpath , & leaf , 0 ) ) die ( \"Failed to remove path %s\" , fullpath ) ;\n tree_content_set ( orig_root , realpath , leaf . versions [ 1 ] . sha1 , leaf . versions [ 1 ] . mode , leaf . tree ) ;\n }\n else if ( S_ISDIR ( e -> versions [ 1 ] . mode ) ) {\n if ( ! e -> tree ) load_tree ( e ) ;\n num_notes += do_change_note_fanout ( orig_root , e , hex_sha1 , tmp_hex_sha1_len , fullpath , tmp_fullpath_len , fanout ) ;\n }\n t = root -> tree ;\n }\n return num_notes ;\n }"}
{"idx": 6492, "target": 0, "func": "void save_and_apply_config_tree ( void ) {\n config_tree * ptree ;\n # ifndef SAVECONFIG config_tree * punlinked ;\n # endif ptree = emalloc ( sizeof ( * ptree ) ) ;\n memcpy ( ptree , & cfgt , sizeof ( * ptree ) ) ;\n memset ( & cfgt , 0 , sizeof ( cfgt ) ) ;\n LINK_TAIL_SLIST ( cfg_tree_history , ptree , link , config_tree ) ;\n # ifdef SAVECONFIG if ( HAVE_OPT ( SAVECONFIGQUIT ) ) {\n FILE * dumpfile ;\n int err ;\n int dumpfailed ;\n dumpfile = fopen ( OPT_ARG ( SAVECONFIGQUIT ) , \"w\" ) ;\n if ( NULL == dumpfile ) {\n err = errno ;\n fprintf ( stderr , \"can not create save file %s, error %d %s\\n\" , OPT_ARG ( SAVECONFIGQUIT ) , err , strerror ( err ) ) ;\n exit ( err ) ;\n }\n dumpfailed = dump_all_config_trees ( dumpfile , 0 ) ;\n if ( dumpfailed ) fprintf ( stderr , \"--saveconfigquit %s error %d\\n\" , OPT_ARG ( SAVECONFIGQUIT ) , dumpfailed ) ;\n else fprintf ( stderr , \"configuration saved to %s\\n\" , OPT_ARG ( SAVECONFIGQUIT ) ) ;\n exit ( dumpfailed ) ;\n }\n # endif # ifndef SIM config_ntpd ( ptree ) ;\n # else config_ntpdsim ( ptree ) ;\n # endif # ifndef SAVECONFIG UNLINK_SLIST ( punlinked , cfg_tree_history , ptree , link , config_tree ) ;\n NTP_INSIST ( punlinked == ptree ) ;\n free_config_tree ( ptree ) ;\n # endif }"}
{"idx": 6493, "target": 0, "func": "static void virtio_net_get_config ( VirtIODevice * vdev , uint8_t * config ) {\n VirtIONet * n = to_virtio_net ( vdev ) ;\n struct virtio_net_config netcfg ;\n stw_p ( & netcfg . status , n -> status ) ;\n memcpy ( netcfg . mac , n -> mac , ETH_ALEN ) ;\n memcpy ( config , & netcfg , sizeof ( netcfg ) ) ;\n }"}
{"idx": 6494, "target": 0, "func": "static char * xmlrpc_parse ( char * buffer ) {\n char * tmp = NULL ;\n tmp = strstr ( buffer , \"<?xml\" ) ;\n if ( tmp ) {\n return xmlrpc_normalizeBuffer ( tmp ) ;\n }\n return NULL ;\n }"}
{"idx": 6495, "target": 0, "func": "int test_add ( BIO * bp ) {\n BIGNUM a , b , c ;\n int i ;\n BN_init ( & a ) ;\n BN_init ( & b ) ;\n BN_init ( & c ) ;\n BN_bntest_rand ( & a , 512 , 0 , 0 ) ;\n for ( i = 0 ;\n i < num0 ;\n i ++ ) {\n BN_bntest_rand ( & b , 450 + i , 0 , 0 ) ;\n a . neg = rand_neg ( ) ;\n b . neg = rand_neg ( ) ;\n BN_add ( & c , & a , & b ) ;\n if ( bp != NULL ) {\n if ( ! results ) {\n BN_print ( bp , & a ) ;\n BIO_puts ( bp , \" + \" ) ;\n BN_print ( bp , & b ) ;\n BIO_puts ( bp , \" - \" ) ;\n }\n BN_print ( bp , & c ) ;\n BIO_puts ( bp , \"\\n\" ) ;\n }\n a . neg = ! a . neg ;\n b . neg = ! b . neg ;\n BN_add ( & c , & c , & b ) ;\n BN_add ( & c , & c , & a ) ;\n if ( ! BN_is_zero ( & c ) ) {\n fprintf ( stderr , \"Add test failed!\\n\" ) ;\n return 0 ;\n }\n }\n BN_free ( & a ) ;\n BN_free ( & b ) ;\n BN_free ( & c ) ;\n return ( 1 ) ;\n }"}
{"idx": 6496, "target": 0, "func": "TEST_F ( ExtensionServiceSyncTest , SyncForUninstalledExternalExtension ) {\n InitializeEmptyExtensionService ( ) ;\n InstallCRX ( data_dir ( ) . AppendASCII ( \"good.crx\" ) , Manifest : : EXTERNAL_PREF , INSTALL_NEW , Extension : : NO_FLAGS ) ;\n const Extension * extension = service ( ) -> GetInstalledExtension ( good_crx ) ;\n ASSERT_TRUE ( extension ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , syncer : : SyncDataList ( ) , base : : MakeUnique < syncer : : FakeSyncChangeProcessor > ( ) , base : : MakeUnique < syncer : : SyncErrorFactoryMock > ( ) ) ;\n StartSyncing ( syncer : : APPS ) ;\n UninstallExtension ( good_crx , false ) ;\n EXPECT_TRUE ( ExtensionPrefs : : Get ( profile ( ) ) -> IsExternalExtensionUninstalled ( good_crx ) ) ;\n sync_pb : : EntitySpecifics specifics ;\n sync_pb : : AppSpecifics * app_specifics = specifics . mutable_app ( ) ;\n sync_pb : : ExtensionSpecifics * extension_specifics = app_specifics -> mutable_extension ( ) ;\n extension_specifics -> set_id ( good_crx ) ;\n extension_specifics -> set_version ( \"1.0\" ) ;\n extension_specifics -> set_enabled ( true ) ;\n SyncChangeList list = MakeSyncChangeList ( good_crx , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_TRUE ( ExtensionPrefs : : Get ( profile ( ) ) -> IsExternalExtensionUninstalled ( good_crx ) ) ;\n }"}
{"idx": 6497, "target": 1, "func": "static void print_mi_data ( VP9_COMMON * cm , FILE * file , const char * descriptor , size_t member_offset ) {\n int mi_row , mi_col ;\n int mi_index = 0 ;\n MODE_INFO * * mi = cm -> mi_grid_visible ;\n int rows = cm -> mi_rows ;\n int cols = cm -> mi_cols ;\n char prefix = descriptor [ 0 ] ;\n log_frame_info ( cm , descriptor , file ) ;\n mi_index = 0 ;\n for ( mi_row = 0 ;\n mi_row < rows ;\n mi_row ++ ) {\n fprintf ( file , \"%c \" , prefix ) ;\n for ( mi_col = 0 ;\n mi_col < cols ;\n mi_col ++ ) {\n fprintf ( file , \"%2d \" , * ( ( int * ) ( ( char * ) ( & mi [ mi_index ] -> mbmi ) + member_offset ) ) ) ;\n mi_index ++ ;\n }\n fprintf ( file , \"\\n\" ) ;\n mi_index += 8 ;\n }\n fprintf ( file , \"\\n\" ) ;\n }"}
{"idx": 6498, "target": 0, "func": "void DerFree ( Asn1Generic * a ) {\n Asn1Generic * it , * n ;\n if ( a == NULL ) return ;\n it = a ;\n while ( it ) {\n n = it -> next ;\n if ( it -> data ) {\n DerFree ( it -> data ) ;\n }\n if ( it -> str ) SCFree ( it -> str ) ;\n memset ( it , 0xff , sizeof ( Asn1Generic ) ) ;\n SCFree ( it ) ;\n it = n ;\n }\n }"}
{"idx": 6499, "target": 0, "func": "static int parse_CReuseWhere ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree _U_ , struct CReuseWhere * v , const char * fmt , ... ) {\n proto_item * item ;\n va_list ap ;\n const char * txt ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_mswsp_msg_creusewhere , & item , txt ) ;\n v -> whereId = tvb_get_letohl ( tvb , offset ) ;\n offset += 4 ;\n proto_item_append_text ( item , \" Id: %u\" , v -> whereId ) ;\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 6500, "target": 0, "func": "struct das_proclist * get_proclist ( int * num_procs ) {\n int lokke = 0 ;\n glibtop_proclist proclist_def = {\n 0 }\n ;\n pid_t * proclist = glibtop_get_proclist ( & proclist_def , GLIBTOP_KERN_PROC_ALL , 0 ) ;\n struct das_proclist * ret = calloc ( sizeof ( struct das_proclist ) , proclist_def . number ) ;\n * num_procs = proclist_def . number ;\n for ( lokke = 0 ;\n lokke < proclist_def . number ;\n lokke ++ ) {\n pid_t pid = proclist [ lokke ] ;\n ret [ lokke ] . pid = pid ;\n ret [ lokke ] . policy = sched_getscheduler ( pid ) ;\n ret [ lokke ] . priority = get_pid_priority ( pid ) ;\n ret [ lokke ] . start_time = get_pid_start_time ( pid ) ;\n }\n # if LIBGTOP_MAJOR_VERSION < 2 glibtop_free ( proclist ) ;\n # else g_free ( proclist ) ;\n # endif return ret ;\n }"}
{"idx": 6501, "target": 0, "func": "TSReturnCode TSClientRequestUuidGet ( TSHttpTxn txnp , char * uuid_str ) {\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) uuid_str ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n const char * machine = ( char * ) Machine : : instance ( ) -> uuid . getString ( ) ;\n int len ;\n len = snprintf ( uuid_str , TS_CRUUID_STRING_LEN , \"%s-%\" PRId64 \"\" , machine , sm -> sm_id ) ;\n if ( len > TS_CRUUID_STRING_LEN ) {\n return TS_ERROR ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 6502, "target": 0, "func": "static void test_debug_example ( ) {\n int rc ;\n MYSQL_RES * result ;\n myheader ( \"test_debug_example\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_debug_example\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_debug_example(\" \"id INT PRIMARY KEY AUTO_INCREMENT, \" \"name VARCHAR(20), xxx INT)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_debug_example (name) \" \"VALUES ('mysql')\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"UPDATE test_debug_example SET name='updated' \" \"WHERE name='deleted'\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"SELECT * FROM test_debug_example where name='mysql'\" ) ;\n myquery ( rc ) ;\n result = mysql_use_result ( mysql ) ;\n mytest ( result ) ;\n ( void ) my_process_result_set ( result ) ;\n mysql_free_result ( result ) ;\n rc = mysql_query ( mysql , \"DROP TABLE test_debug_example\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 6503, "target": 0, "func": "extern List as_mysql_modify_clusters ( mysql_conn_t * mysql_conn , uint32_t uid , slurmdb_cluster_cond_t * cluster_cond , slurmdb_cluster_rec_t * cluster ) {\n List ret_list = NULL ;\n int rc = SLURM_SUCCESS ;\n char * object = NULL ;\n char * vals = NULL , * extra = NULL , * query = NULL , * name_char = NULL ;\n time_t now = time ( NULL ) ;\n char * user_name = NULL ;\n int set = 0 ;\n MYSQL_RES * result = NULL ;\n MYSQL_ROW row ;\n bool clust_reg = false , fed_update = false ;\n if ( ! cluster_cond || ! cluster ) {\n error ( \"we need something to change\" ) ;\n return NULL ;\n }\n if ( check_connection ( mysql_conn ) != SLURM_SUCCESS ) return NULL ;\n if ( ! is_user_min_admin_level ( mysql_conn , uid , SLURMDB_ADMIN_SUPER_USER ) ) {\n errno = ESLURM_ACCESS_DENIED ;\n return NULL ;\n }\n cluster_cond -> with_deleted = 0 ;\n _setup_cluster_cond_limits ( cluster_cond , & extra ) ;\n if ( ! mysql_conn -> cluster_name && cluster_cond -> cluster_list && list_count ( cluster_cond -> cluster_list ) ) mysql_conn -> cluster_name = xstrdup ( list_peek ( cluster_cond -> cluster_list ) ) ;\n set = 0 ;\n if ( cluster -> control_host ) {\n xstrfmtcat ( vals , \", control_host='%s'\" , cluster -> control_host ) ;\n set ++ ;\n clust_reg = true ;\n }\n if ( cluster -> control_port ) {\n xstrfmtcat ( vals , \", control_port=%u, last_port=%u\" , cluster -> control_port , cluster -> control_port ) ;\n set ++ ;\n clust_reg = true ;\n }\n if ( cluster -> rpc_version ) {\n xstrfmtcat ( vals , \", rpc_version=%u\" , cluster -> rpc_version ) ;\n set ++ ;\n clust_reg = true ;\n }\n if ( cluster -> dimensions ) {\n xstrfmtcat ( vals , \", dimensions=%u\" , cluster -> dimensions ) ;\n clust_reg = true ;\n }\n if ( cluster -> plugin_id_select ) {\n xstrfmtcat ( vals , \", plugin_id_select=%u\" , cluster -> plugin_id_select ) ;\n clust_reg = true ;\n }\n if ( cluster -> flags != NO_VAL ) {\n xstrfmtcat ( vals , \", flags=%u\" , cluster -> flags ) ;\n clust_reg = true ;\n }\n if ( cluster -> classification ) {\n xstrfmtcat ( vals , \", classification=%u\" , cluster -> classification ) ;\n }\n if ( cluster -> fed . name ) {\n xstrfmtcat ( vals , \", federation='%s'\" , cluster -> fed . name ) ;\n fed_update = true ;\n }\n if ( cluster -> fed . state != NO_VAL ) {\n xstrfmtcat ( vals , \", fed_state=%u\" , cluster -> fed . state ) ;\n fed_update = true ;\n }\n if ( cluster -> fed . weight != NO_VAL ) {\n xstrfmtcat ( vals , \", fed_weight=%d\" , cluster -> fed . weight ) ;\n fed_update = true ;\n }\n if ( ! vals ) {\n xfree ( extra ) ;\n errno = SLURM_NO_CHANGE_IN_DATA ;\n error ( \"Nothing to change\" ) ;\n return NULL ;\n }\n else if ( clust_reg && ( set != 3 ) ) {\n xfree ( vals ) ;\n xfree ( extra ) ;\n errno = EFAULT ;\n error ( \"Need control host, port and rpc version \" \"to register a cluster\" ) ;\n return NULL ;\n }\n xstrfmtcat ( query , \"select name, control_port, federation from %s%s;\n\" , cluster_table , extra ) ;\n if ( debug_flags & DEBUG_FLAG_DB_ASSOC ) DB_DEBUG ( mysql_conn -> conn , \"query\\n%s\" , query ) ;\n if ( ! ( result = mysql_db_query_ret ( mysql_conn , query , 0 ) ) ) {\n xfree ( query ) ;\n xfree ( vals ) ;\n error ( \"no result given for %s\" , extra ) ;\n xfree ( extra ) ;\n return NULL ;\n }\n xfree ( extra ) ;\n ret_list = list_create ( slurm_destroy_char ) ;\n user_name = uid_to_string ( ( uid_t ) uid ) ;\n while ( ( row = mysql_fetch_row ( result ) ) ) {\n char * tmp_vals = xstrdup ( vals ) ;\n object = xstrdup ( row [ 0 ] ) ;\n if ( cluster -> fed . name ) {\n int id = 0 ;\n char * curr_fed = NULL ;\n uint32_t set_state = NO_VAL ;\n if ( cluster -> fed . name [ 0 ] != '\\0' ) {\n rc = as_mysql_get_fed_cluster_id ( mysql_conn , object , cluster -> fed . name , - 1 , & id ) ;\n if ( rc ) {\n error ( \"failed to get cluster id for \" \"federation\" ) ;\n xfree ( tmp_vals ) ;\n xfree ( object ) ;\n FREE_NULL_LIST ( ret_list ) ;\n mysql_free_result ( result ) ;\n goto end_it ;\n }\n }\n xstrfmtcat ( tmp_vals , \", fed_id=%d\" , id ) ;\n curr_fed = xstrdup ( row [ 2 ] ) ;\n if ( cluster -> fed . name [ 0 ] == '\\0' ) set_state = CLUSTER_FED_STATE_NA ;\n else if ( cluster -> fed . state != NO_VAL ) {\n }\n else if ( xstrcmp ( curr_fed , cluster -> fed . name ) ) set_state = CLUSTER_FED_STATE_ACTIVE ;\n if ( set_state != NO_VAL ) xstrfmtcat ( tmp_vals , \", fed_state=%u\" , set_state ) ;\n xfree ( curr_fed ) ;\n }\n list_append ( ret_list , object ) ;\n xstrfmtcat ( name_char , \"name='%s'\" , object ) ;\n rc = modify_common ( mysql_conn , DBD_MODIFY_CLUSTERS , now , user_name , cluster_table , name_char , tmp_vals , NULL ) ;\n xfree ( name_char ) ;\n xfree ( tmp_vals ) ;\n if ( rc == SLURM_ERROR ) {\n error ( \"Couldn't modify cluster 1\" ) ;\n FREE_NULL_LIST ( ret_list ) ;\n mysql_free_result ( result ) ;\n goto end_it ;\n }\n }\n mysql_free_result ( result ) ;\n xfree ( user_name ) ;\n if ( ! list_count ( ret_list ) ) {\n errno = SLURM_NO_CHANGE_IN_DATA ;\n if ( debug_flags & DEBUG_FLAG_DB_ASSOC ) DB_DEBUG ( mysql_conn -> conn , \"didn't effect anything\\n%s\" , query ) ;\n xfree ( name_char ) ;\n xfree ( vals ) ;\n xfree ( query ) ;\n return ret_list ;\n }\n if ( fed_update ) as_mysql_add_feds_to_update_list ( mysql_conn ) ;\n end_it : xfree ( query ) ;\n xfree ( vals ) ;\n xfree ( user_name ) ;\n return ret_list ;\n }"}
{"idx": 6504, "target": 0, "func": "static int dissect_PRINTER_INFO_7 ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , tree , di , drep , hf_printer_guid , 0 , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_printer_action , NULL ) ;\n return offset ;\n }"}
{"idx": 6505, "target": 0, "func": "void mszipd_free ( struct mszipd_stream * zip ) {\n struct mspack_system * sys ;\n if ( zip ) {\n sys = zip -> sys ;\n sys -> free ( zip -> inbuf ) ;\n sys -> free ( zip ) ;\n }\n }"}
{"idx": 6506, "target": 1, "func": "void xsltCompileAttr ( xsltStylesheetPtr style , xmlAttrPtr attr ) {\n const xmlChar * str ;\n const xmlChar * cur ;\n xmlChar * ret = NULL ;\n xmlChar * expr = NULL ;\n xsltAttrVTPtr avt ;\n int i = 0 , lastavt = 0 ;\n if ( ( style == NULL ) || ( attr == NULL ) || ( attr -> children == NULL ) ) return ;\n if ( ( attr -> children -> type != XML_TEXT_NODE ) || ( attr -> children -> next != NULL ) ) {\n xsltTransformError ( NULL , style , attr -> parent , \"Attribute '%s': The content is expected to be a single text \" \"node when compiling an AVT.\\n\" , attr -> name ) ;\n style -> errors ++ ;\n return ;\n }\n str = attr -> children -> content ;\n if ( ( xmlStrchr ( str , '{\n' ) == NULL ) && ( xmlStrchr ( str , '}\n' ) == NULL ) ) return ;\n # ifdef WITH_XSLT_DEBUG_AVT xsltGenericDebug ( xsltGenericDebugContext , \"Found AVT %s: %s\\n\" , attr -> name , str ) ;\n # endif if ( attr -> psvi != NULL ) {\n # ifdef WITH_XSLT_DEBUG_AVT xsltGenericDebug ( xsltGenericDebugContext , \"AVT %s: already compiled\\n\" , attr -> name ) ;\n # endif return ;\n }\n avt = xsltNewAttrVT ( style ) ;\n if ( avt == NULL ) return ;\n attr -> psvi = avt ;\n avt -> nsList = xmlGetNsList ( attr -> doc , attr -> parent ) ;\n if ( avt -> nsList != NULL ) {\n while ( avt -> nsList [ i ] != NULL ) i ++ ;\n }\n avt -> nsNr = i ;\n cur = str ;\n while ( * cur != 0 ) {\n if ( * cur == '{\n' ) {\n if ( * ( cur + 1 ) == '{\n' ) {\n cur ++ ;\n ret = xmlStrncat ( ret , str , cur - str ) ;\n cur ++ ;\n str = cur ;\n continue ;\n }\n if ( * ( cur + 1 ) == '}\n' ) {\n ret = xmlStrncat ( ret , str , cur - str ) ;\n cur += 2 ;\n str = cur ;\n continue ;\n }\n if ( ( ret != NULL ) || ( cur - str > 0 ) ) {\n ret = xmlStrncat ( ret , str , cur - str ) ;\n str = cur ;\n if ( avt -> nb_seg == 0 ) avt -> strstart = 1 ;\n if ( ( avt = xsltSetAttrVTsegment ( avt , ( void * ) ret ) ) == NULL ) goto error ;\n ret = NULL ;\n lastavt = 0 ;\n }\n cur ++ ;\n while ( ( * cur != 0 ) && ( * cur != '}\n' ) ) {\n if ( ( * cur == '\\'' ) || ( * cur == '\"' ) ) {\n char delim = * ( cur ++ ) ;\n while ( ( * cur != 0 ) && ( * cur != delim ) ) cur ++ ;\n if ( * cur != 0 ) cur ++ ;\n }\n else cur ++ ;\n }\n if ( * cur == 0 ) {\n xsltTransformError ( NULL , style , attr -> parent , \"Attribute '%s': The AVT has an unmatched '{\n'.\\n\" , attr -> name ) ;\n style -> errors ++ ;\n goto error ;\n }\n str ++ ;\n expr = xmlStrndup ( str , cur - str ) ;\n if ( expr == NULL ) {\n XSLT_TODO goto error ;\n }\n else {\n xmlXPathCompExprPtr comp ;\n comp = xsltXPathCompile ( style , expr ) ;\n if ( comp == NULL ) {\n xsltTransformError ( NULL , style , attr -> parent , \"Attribute '%s': Failed to compile the expression \" \"'%s' in the AVT.\\n\" , attr -> name , expr ) ;\n style -> errors ++ ;\n goto error ;\n }\n if ( avt -> nb_seg == 0 ) avt -> strstart = 0 ;\n if ( lastavt == 1 ) {\n if ( ( avt = xsltSetAttrVTsegment ( avt , NULL ) ) == NULL ) goto error ;\n }\n if ( ( avt = xsltSetAttrVTsegment ( avt , ( void * ) comp ) ) == NULL ) goto error ;\n lastavt = 1 ;\n xmlFree ( expr ) ;\n expr = NULL ;\n }\n cur ++ ;\n str = cur ;\n }\n else if ( * cur == '}\n' ) {\n cur ++ ;\n if ( * cur == '}\n' ) {\n ret = xmlStrncat ( ret , str , cur - str ) ;\n cur ++ ;\n str = cur ;\n continue ;\n }\n else {\n xsltTransformError ( NULL , style , attr -> parent , \"Attribute '%s': The AVT has an unmatched '}\n'.\\n\" , attr -> name ) ;\n goto error ;\n }\n }\n else cur ++ ;\n }\n if ( ( ret != NULL ) || ( cur - str > 0 ) ) {\n ret = xmlStrncat ( ret , str , cur - str ) ;\n str = cur ;\n if ( avt -> nb_seg == 0 ) avt -> strstart = 1 ;\n if ( ( avt = xsltSetAttrVTsegment ( avt , ( void * ) ret ) ) == NULL ) goto error ;\n ret = NULL ;\n }\n error : if ( avt == NULL ) {\n xsltTransformError ( NULL , style , attr -> parent , \"xsltCompileAttr: malloc problem\\n\" ) ;\n }\n else {\n if ( attr -> psvi != avt ) {\n attr -> psvi = avt ;\n style -> attVTs = avt ;\n }\n }\n if ( ret != NULL ) xmlFree ( ret ) ;\n if ( expr != NULL ) xmlFree ( expr ) ;\n }"}
{"idx": 6507, "target": 0, "func": "static int decode_update_thread_context ( AVCodecContext * dst , const AVCodecContext * src ) {\n H264Context * h = dst -> priv_data , * h1 = src -> priv_data ;\n int inited = h -> context_initialized , err = 0 ;\n int context_reinitialized = 0 ;\n int i , ret ;\n if ( dst == src ) return 0 ;\n if ( inited && ( h -> width != h1 -> width || h -> height != h1 -> height || h -> mb_width != h1 -> mb_width || h -> mb_height != h1 -> mb_height || h -> sps . bit_depth_luma != h1 -> sps . bit_depth_luma || h -> sps . chroma_format_idc != h1 -> sps . chroma_format_idc || h -> sps . colorspace != h1 -> sps . colorspace ) ) {\n h -> avctx -> bits_per_raw_sample = h -> sps . bit_depth_luma ;\n av_freep ( & h -> bipred_scratchpad ) ;\n h -> width = h1 -> width ;\n h -> height = h1 -> height ;\n h -> mb_height = h1 -> mb_height ;\n h -> mb_width = h1 -> mb_width ;\n h -> mb_num = h1 -> mb_num ;\n h -> mb_stride = h1 -> mb_stride ;\n h -> b_stride = h1 -> b_stride ;\n if ( ( ret = copy_parameter_set ( ( void * * ) h -> sps_buffers , ( void * * ) h1 -> sps_buffers , MAX_SPS_COUNT , sizeof ( SPS ) ) ) < 0 ) return ret ;\n h -> sps = h1 -> sps ;\n if ( ( ret = copy_parameter_set ( ( void * * ) h -> pps_buffers , ( void * * ) h1 -> pps_buffers , MAX_PPS_COUNT , sizeof ( PPS ) ) ) < 0 ) return ret ;\n h -> pps = h1 -> pps ;\n if ( ( err = h264_slice_header_init ( h , 1 ) ) < 0 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"h264_slice_header_init() failed\" ) ;\n return err ;\n }\n context_reinitialized = 1 ;\n # if 0 h264_set_parameter_from_sps ( h ) ;\n h -> cur_chroma_format_idc = h1 -> cur_chroma_format_idc ;\n # endif }\n h -> linesize = h1 -> linesize ;\n h -> uvlinesize = h1 -> uvlinesize ;\n memcpy ( h -> block_offset , h1 -> block_offset , sizeof ( h -> block_offset ) ) ;\n if ( ! inited ) {\n for ( i = 0 ;\n i < MAX_SPS_COUNT ;\n i ++ ) av_freep ( h -> sps_buffers + i ) ;\n for ( i = 0 ;\n i < MAX_PPS_COUNT ;\n i ++ ) av_freep ( h -> pps_buffers + i ) ;\n av_freep ( & h -> rbsp_buffer [ 0 ] ) ;\n av_freep ( & h -> rbsp_buffer [ 1 ] ) ;\n memcpy ( h , h1 , offsetof ( H264Context , intra_pcm_ptr ) ) ;\n memcpy ( & h -> cabac , & h1 -> cabac , sizeof ( H264Context ) - offsetof ( H264Context , cabac ) ) ;\n av_assert0 ( ( void * ) & h -> cabac == & h -> mb_padding + 1 ) ;\n memset ( h -> sps_buffers , 0 , sizeof ( h -> sps_buffers ) ) ;\n memset ( h -> pps_buffers , 0 , sizeof ( h -> pps_buffers ) ) ;\n memset ( & h -> er , 0 , sizeof ( h -> er ) ) ;\n memset ( & h -> me , 0 , sizeof ( h -> me ) ) ;\n memset ( & h -> mb , 0 , sizeof ( h -> mb ) ) ;\n memset ( & h -> mb_luma_dc , 0 , sizeof ( h -> mb_luma_dc ) ) ;\n memset ( & h -> mb_padding , 0 , sizeof ( h -> mb_padding ) ) ;\n h -> avctx = dst ;\n h -> DPB = NULL ;\n h -> qscale_table_pool = NULL ;\n h -> mb_type_pool = NULL ;\n h -> ref_index_pool = NULL ;\n h -> motion_val_pool = NULL ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n h -> rbsp_buffer [ i ] = NULL ;\n h -> rbsp_buffer_size [ i ] = 0 ;\n }\n if ( h1 -> context_initialized ) {\n h -> context_initialized = 0 ;\n memset ( & h -> cur_pic , 0 , sizeof ( h -> cur_pic ) ) ;\n avcodec_get_frame_defaults ( & h -> cur_pic . f ) ;\n h -> cur_pic . tf . f = & h -> cur_pic . f ;\n ret = ff_h264_alloc_tables ( h ) ;\n if ( ret < 0 ) {\n av_log ( dst , AV_LOG_ERROR , \"Could not allocate memory for h264\\n\" ) ;\n return ret ;\n }\n ret = context_init ( h ) ;\n if ( ret < 0 ) {\n av_log ( dst , AV_LOG_ERROR , \"context_init() failed.\\n\" ) ;\n return ret ;\n }\n }\n h -> bipred_scratchpad = NULL ;\n h -> edge_emu_buffer = NULL ;\n h -> thread_context [ 0 ] = h ;\n h -> context_initialized = h1 -> context_initialized ;\n }\n h -> avctx -> coded_height = h1 -> avctx -> coded_height ;\n h -> avctx -> coded_width = h1 -> avctx -> coded_width ;\n h -> avctx -> width = h1 -> avctx -> width ;\n h -> avctx -> height = h1 -> avctx -> height ;\n h -> coded_picture_number = h1 -> coded_picture_number ;\n h -> first_field = h1 -> first_field ;\n h -> picture_structure = h1 -> picture_structure ;\n h -> qscale = h1 -> qscale ;\n h -> droppable = h1 -> droppable ;\n h -> data_partitioning = h1 -> data_partitioning ;\n h -> low_delay = h1 -> low_delay ;\n for ( i = 0 ;\n h -> DPB && i < MAX_PICTURE_COUNT ;\n i ++ ) {\n unref_picture ( h , & h -> DPB [ i ] ) ;\n if ( h1 -> DPB [ i ] . f . buf [ 0 ] && ( ret = ref_picture ( h , & h -> DPB [ i ] , & h1 -> DPB [ i ] ) ) < 0 ) return ret ;\n }\n h -> cur_pic_ptr = REBASE_PICTURE ( h1 -> cur_pic_ptr , h , h1 ) ;\n unref_picture ( h , & h -> cur_pic ) ;\n if ( h1 -> cur_pic . f . buf [ 0 ] && ( ret = ref_picture ( h , & h -> cur_pic , & h1 -> cur_pic ) ) < 0 ) return ret ;\n h -> workaround_bugs = h1 -> workaround_bugs ;\n h -> low_delay = h1 -> low_delay ;\n h -> droppable = h1 -> droppable ;\n h -> is_avc = h1 -> is_avc ;\n if ( ( ret = copy_parameter_set ( ( void * * ) h -> sps_buffers , ( void * * ) h1 -> sps_buffers , MAX_SPS_COUNT , sizeof ( SPS ) ) ) < 0 ) return ret ;\n h -> sps = h1 -> sps ;\n if ( ( ret = copy_parameter_set ( ( void * * ) h -> pps_buffers , ( void * * ) h1 -> pps_buffers , MAX_PPS_COUNT , sizeof ( PPS ) ) ) < 0 ) return ret ;\n h -> pps = h1 -> pps ;\n copy_fields ( h , h1 , dequant4_buffer , dequant4_coeff ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) h -> dequant4_coeff [ i ] = h -> dequant4_buffer [ 0 ] + ( h1 -> dequant4_coeff [ i ] - h1 -> dequant4_buffer [ 0 ] ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) h -> dequant8_coeff [ i ] = h -> dequant8_buffer [ 0 ] + ( h1 -> dequant8_coeff [ i ] - h1 -> dequant8_buffer [ 0 ] ) ;\n h -> dequant_coeff_pps = h1 -> dequant_coeff_pps ;\n copy_fields ( h , h1 , poc_lsb , redundant_pic_count ) ;\n copy_fields ( h , h1 , short_ref , cabac_init_idc ) ;\n copy_picture_range ( h -> short_ref , h1 -> short_ref , 32 , h , h1 ) ;\n copy_picture_range ( h -> long_ref , h1 -> long_ref , 32 , h , h1 ) ;\n copy_picture_range ( h -> delayed_pic , h1 -> delayed_pic , MAX_DELAYED_PIC_COUNT + 2 , h , h1 ) ;\n h -> frame_recovered = h1 -> frame_recovered ;\n if ( context_reinitialized ) h264_set_parameter_from_sps ( h ) ;\n if ( ! h -> cur_pic_ptr ) return 0 ;\n if ( ! h -> droppable ) {\n err = ff_h264_execute_ref_pic_marking ( h , h -> mmco , h -> mmco_index ) ;\n h -> prev_poc_msb = h -> poc_msb ;\n h -> prev_poc_lsb = h -> poc_lsb ;\n }\n h -> prev_frame_num_offset = h -> frame_num_offset ;\n h -> prev_frame_num = h -> frame_num ;\n h -> outputed_poc = h -> next_outputed_poc ;\n h -> recovery_frame = h1 -> recovery_frame ;\n return err ;\n }"}
{"idx": 6508, "target": 0, "func": "static void mp_decode_line ( MotionPixelsContext * mp , GetBitContext * gb , int y ) {\n YuvPixel p ;\n const int y0 = y * mp -> avctx -> width ;\n int w , i , x = 0 ;\n p = mp -> vpt [ y ] ;\n if ( mp -> changes_map [ y0 + x ] == 0 ) {\n memset ( mp -> gradient_scale , 1 , sizeof ( mp -> gradient_scale ) ) ;\n ++ x ;\n }\n while ( x < mp -> avctx -> width ) {\n w = mp -> changes_map [ y0 + x ] ;\n if ( w != 0 ) {\n if ( ( y & 3 ) == 0 ) {\n if ( mp -> changes_map [ y0 + x + mp -> avctx -> width ] < w || mp -> changes_map [ y0 + x + mp -> avctx -> width * 2 ] < w || mp -> changes_map [ y0 + x + mp -> avctx -> width * 3 ] < w ) {\n for ( i = ( x + 3 ) & ~ 3 ;\n i < x + w ;\n i += 4 ) {\n mp -> hpt [ ( ( y / 4 ) * mp -> avctx -> width + i ) / 4 ] = mp_get_yuv_from_rgb ( mp , i , y ) ;\n }\n }\n }\n x += w ;\n memset ( mp -> gradient_scale , 1 , sizeof ( mp -> gradient_scale ) ) ;\n p = mp_get_yuv_from_rgb ( mp , x - 1 , y ) ;\n }\n else {\n p . y += mp_gradient ( mp , 0 , mp_get_vlc ( mp , gb ) ) ;\n p . y = av_clip ( p . y , 0 , 31 ) ;\n if ( ( x & 3 ) == 0 ) {\n if ( ( y & 3 ) == 0 ) {\n p . v += mp_gradient ( mp , 1 , mp_get_vlc ( mp , gb ) ) ;\n p . v = av_clip ( p . v , - 32 , 31 ) ;\n p . u += mp_gradient ( mp , 2 , mp_get_vlc ( mp , gb ) ) ;\n p . u = av_clip ( p . u , - 32 , 31 ) ;\n mp -> hpt [ ( ( y / 4 ) * mp -> avctx -> width + x ) / 4 ] = p ;\n }\n else {\n p . v = mp -> hpt [ ( ( y / 4 ) * mp -> avctx -> width + x ) / 4 ] . v ;\n p . u = mp -> hpt [ ( ( y / 4 ) * mp -> avctx -> width + x ) / 4 ] . u ;\n }\n }\n mp_set_rgb_from_yuv ( mp , x , y , & p ) ;\n ++ x ;\n }\n }\n }"}
{"idx": 6509, "target": 0, "func": "GList * completion_msg ( SERVER_REC * win_server , SERVER_REC * find_server , const char * nick , const char * prefix ) {\n GSList * tmp , * list ;\n char * newprefix ;\n g_return_val_if_fail ( nick != NULL , NULL ) ;\n if ( servers == NULL ) return NULL ;\n list = NULL ;\n if ( find_server != NULL ) {\n completion_msg_server ( & list , find_server , nick , prefix ) ;\n return convert_msglist ( list ) ;\n }\n completion_msg_server ( & list , NULL , nick , prefix ) ;\n for ( tmp = servers ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n SERVER_REC * rec = tmp -> data ;\n if ( servers -> next == NULL && rec == win_server ) newprefix = g_strdup ( prefix ) ;\n else {\n newprefix = prefix == NULL ? g_strdup_printf ( \"-%s\" , rec -> tag ) : g_strdup_printf ( \"%s -%s\" , prefix , rec -> tag ) ;\n }\n completion_msg_server ( & list , rec , nick , newprefix ) ;\n g_free_not_null ( newprefix ) ;\n }\n return convert_msglist ( list ) ;\n }"}
{"idx": 6510, "target": 0, "func": "static void virtio_net_tx_complete ( VLANClientState * nc , ssize_t len ) {\n VirtIONet * n = DO_UPCAST ( NICState , nc , nc ) -> opaque ;\n virtqueue_push ( n -> tx_vq , & n -> async_tx . elem , n -> async_tx . len ) ;\n virtio_notify ( & n -> vdev , n -> tx_vq ) ;\n n -> async_tx . elem . out_num = n -> async_tx . len = 0 ;\n virtio_queue_set_notification ( n -> tx_vq , 1 ) ;\n virtio_net_flush_tx ( n , n -> tx_vq ) ;\n }"}
{"idx": 6511, "target": 1, "func": "static int spl_filesystem_file_open ( spl_filesystem_object * intern , int use_include_path , int silent TSRMLS_DC ) {\n zval tmp ;\n intern -> type = SPL_FS_FILE ;\n php_stat ( intern -> file_name , intern -> file_name_len , FS_IS_DIR , & tmp TSRMLS_CC ) ;\n if ( Z_LVAL ( tmp ) ) {\n intern -> u . file . open_mode = NULL ;\n intern -> file_name = NULL ;\n zend_throw_exception_ex ( spl_ce_LogicException , 0 TSRMLS_CC , \"Cannot use SplFileObject with directories\" ) ;\n return FAILURE ;\n }\n intern -> u . file . context = php_stream_context_from_zval ( intern -> u . file . zcontext , 0 ) ;\n intern -> u . file . stream = php_stream_open_wrapper_ex ( intern -> file_name , intern -> u . file . open_mode , ( use_include_path ? USE_PATH : 0 ) | REPORT_ERRORS , NULL , intern -> u . file . context ) ;\n if ( ! intern -> file_name_len || ! intern -> u . file . stream ) {\n if ( ! EG ( exception ) ) {\n zend_throw_exception_ex ( spl_ce_RuntimeException , 0 TSRMLS_CC , \"Cannot open file '%s'\" , intern -> file_name_len ? intern -> file_name : \"\" ) ;\n }\n intern -> file_name = NULL ;\n intern -> u . file . open_mode = NULL ;\n return FAILURE ;\n }\n if ( intern -> u . file . zcontext ) {\n zend_list_addref ( Z_RESVAL_P ( intern -> u . file . zcontext ) ) ;\n }\n if ( intern -> file_name_len > 1 && IS_SLASH_AT ( intern -> file_name , intern -> file_name_len - 1 ) ) {\n intern -> file_name_len -- ;\n }\n intern -> orig_path = estrndup ( intern -> u . file . stream -> orig_path , strlen ( intern -> u . file . stream -> orig_path ) ) ;\n intern -> file_name = estrndup ( intern -> file_name , intern -> file_name_len ) ;\n intern -> u . file . open_mode = estrndup ( intern -> u . file . open_mode , intern -> u . file . open_mode_len ) ;\n ZVAL_RESOURCE ( & intern -> u . file . zresource , php_stream_get_resource_id ( intern -> u . file . stream ) ) ;\n Z_SET_REFCOUNT ( intern -> u . file . zresource , 1 ) ;\n intern -> u . file . delimiter = ',' ;\n intern -> u . file . enclosure = '\"' ;\n intern -> u . file . escape = '\\\\' ;\n zend_hash_find ( & intern -> std . ce -> function_table , \"getcurrentline\" , sizeof ( \"getcurrentline\" ) , ( void * * ) & intern -> u . file . func_getCurr ) ;\n return SUCCESS ;\n }"}
{"idx": 6512, "target": 0, "func": "static void * main_alloc ( void * opaque , size_t items , usize_t size ) {\n return main_malloc1 ( items * size ) ;\n }"}
{"idx": 6513, "target": 0, "func": "static void test_lc_time_sz ( ) {\n DBUG_ENTER ( \"test_lc_time_sz\" ) ;\n for ( MY_LOCALE * * loc = my_locales ;\n * loc ;\n loc ++ ) {\n uint max_month_len = 0 ;\n uint max_day_len = 0 ;\n for ( const char * * month = ( * loc ) -> month_names -> type_names ;\n * month ;\n month ++ ) {\n set_if_bigger ( max_month_len , my_numchars_mb ( & my_charset_utf8_general_ci , * month , * month + strlen ( * month ) ) ) ;\n }\n for ( const char * * day = ( * loc ) -> day_names -> type_names ;\n * day ;\n day ++ ) {\n set_if_bigger ( max_day_len , my_numchars_mb ( & my_charset_utf8_general_ci , * day , * day + strlen ( * day ) ) ) ;\n }\n if ( ( * loc ) -> max_month_name_length != max_month_len || ( * loc ) -> max_day_name_length != max_day_len ) {\n DBUG_PRINT ( \"Wrong max day name(or month name) length for locale:\" , ( \"%s\" , ( * loc ) -> name ) ) ;\n DBUG_ASSERT ( 0 ) ;\n }\n }\n DBUG_VOID_RETURN ;\n }"}
{"idx": 6514, "target": 0, "func": "static inline void store_mvs ( AVSContext * h ) {\n h -> col_mv [ h -> mbidx * 4 + 0 ] = h -> mv [ MV_FWD_X0 ] ;\n h -> col_mv [ h -> mbidx * 4 + 1 ] = h -> mv [ MV_FWD_X1 ] ;\n h -> col_mv [ h -> mbidx * 4 + 2 ] = h -> mv [ MV_FWD_X2 ] ;\n h -> col_mv [ h -> mbidx * 4 + 3 ] = h -> mv [ MV_FWD_X3 ] ;\n }"}
{"idx": 6515, "target": 0, "func": "static int getDynamicOffset ( uint32_t c , uint32_t * pOffset ) {\n int i ;\n for ( i = 0 ;\n i < 7 ;\n ++ i ) {\n if ( ( uint32_t ) ( c - fixedOffsets [ i ] ) <= 0x7f ) {\n * pOffset = fixedOffsets [ i ] ;\n return 0xf9 + i ;\n }\n }\n if ( c < 0x80 ) {\n return - 1 ;\n }\n else if ( c < 0x3400 || ( uint32_t ) ( c - 0x10000 ) < ( 0x14000 - 0x10000 ) || ( uint32_t ) ( c - 0x1d000 ) <= ( 0x1ffff - 0x1d000 ) ) {\n * pOffset = c & 0x7fffff80 ;\n return ( int ) ( c >> 7 ) ;\n }\n else if ( 0xe000 <= c && c != 0xfeff && c < 0xfff0 ) {\n * pOffset = c & 0x7fffff80 ;\n return ( int ) ( ( c - gapOffset ) >> 7 ) ;\n }\n else {\n return - 1 ;\n }\n }"}
{"idx": 6516, "target": 0, "func": "static void dissect_zcl_pwr_prof_pwrprofpriceext ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n static const int * options [ ] = {\n & hf_zbee_zcl_pwr_prof_options_01 , & hf_zbee_zcl_pwr_prof_options_res , NULL }\n ;\n proto_tree_add_bitmask ( tree , tvb , * offset , hf_zbee_zcl_pwr_prof_options , ett_zbee_zcl_pwr_prof_options , options , ENC_NA ) ;\n * offset += 1 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_pwr_prof_id , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_pwr_prof_stime , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n }"}
{"idx": 6517, "target": 1, "func": "static VALUE ossl_cipher_pkcs5_keyivgen ( int argc , VALUE * argv , VALUE self ) {\n EVP_CIPHER_CTX * ctx ;\n const EVP_MD * digest ;\n VALUE vpass , vsalt , viter , vdigest ;\n unsigned char key [ EVP_MAX_KEY_LENGTH ] , iv [ EVP_MAX_IV_LENGTH ] , * salt = NULL ;\n int iter ;\n rb_scan_args ( argc , argv , \"13\" , & vpass , & vsalt , & viter , & vdigest ) ;\n StringValue ( vpass ) ;\n if ( ! NIL_P ( vsalt ) ) {\n StringValue ( vsalt ) ;\n if ( RSTRING_LEN ( vsalt ) != PKCS5_SALT_LEN ) ossl_raise ( eCipherError , \"salt must be an 8-octet string\" ) ;\n salt = ( unsigned char * ) RSTRING_PTR ( vsalt ) ;\n }\n iter = NIL_P ( viter ) ? 2048 : NUM2INT ( viter ) ;\n digest = NIL_P ( vdigest ) ? EVP_md5 ( ) : GetDigestPtr ( vdigest ) ;\n GetCipher ( self , ctx ) ;\n EVP_BytesToKey ( EVP_CIPHER_CTX_cipher ( ctx ) , digest , salt , ( unsigned char * ) RSTRING_PTR ( vpass ) , RSTRING_LENINT ( vpass ) , iter , key , iv ) ;\n if ( EVP_CipherInit_ex ( ctx , NULL , NULL , key , iv , - 1 ) != 1 ) ossl_raise ( eCipherError , NULL ) ;\n OPENSSL_cleanse ( key , sizeof key ) ;\n OPENSSL_cleanse ( iv , sizeof iv ) ;\n return Qnil ;\n }"}
{"idx": 6518, "target": 0, "func": "static void stroke_memusage ( private_stroke_socket_t * this , stroke_msg_t * msg , FILE * out ) {\n if ( lib -> leak_detective ) {\n lib -> leak_detective -> usage ( lib -> leak_detective , ( leak_detective_report_cb_t ) report_usage , ( leak_detective_summary_cb_t ) sum_usage , out ) ;\n }\n }"}
{"idx": 6519, "target": 1, "func": "void ff_MPV_common_end ( MpegEncContext * s ) {\n int i ;\n if ( s -> slice_context_count > 1 ) {\n for ( i = 0 ;\n i < s -> slice_context_count ;\n i ++ ) {\n free_duplicate_context ( s -> thread_context [ i ] ) ;\n }\n for ( i = 1 ;\n i < s -> slice_context_count ;\n i ++ ) {\n av_freep ( & s -> thread_context [ i ] ) ;\n }\n s -> slice_context_count = 1 ;\n }\n else free_duplicate_context ( s ) ;\n av_freep ( & s -> parse_context . buffer ) ;\n s -> parse_context . buffer_size = 0 ;\n av_freep ( & s -> bitstream_buffer ) ;\n s -> allocated_bitstream_buffer_size = 0 ;\n av_freep ( & s -> avctx -> stats_out ) ;\n av_freep ( & s -> ac_stats ) ;\n av_freep ( & s -> q_intra_matrix ) ;\n av_freep ( & s -> q_inter_matrix ) ;\n av_freep ( & s -> q_intra_matrix16 ) ;\n av_freep ( & s -> q_inter_matrix16 ) ;\n av_freep ( & s -> input_picture ) ;\n av_freep ( & s -> reordered_input_picture ) ;\n av_freep ( & s -> dct_offset ) ;\n if ( s -> picture && ! s -> avctx -> internal -> is_copy ) {\n for ( i = 0 ;\n i < s -> picture_count ;\n i ++ ) {\n free_picture ( s , & s -> picture [ i ] ) ;\n }\n }\n av_freep ( & s -> picture ) ;\n free_context_frame ( s ) ;\n if ( ! ( s -> avctx -> active_thread_type & FF_THREAD_FRAME ) ) avcodec_default_free_buffers ( s -> avctx ) ;\n s -> context_initialized = 0 ;\n s -> last_picture_ptr = s -> next_picture_ptr = s -> current_picture_ptr = NULL ;\n s -> linesize = s -> uvlinesize = 0 ;\n }"}
{"idx": 6520, "target": 0, "func": "static uint32_t pmac_ide_readl ( void * opaque , hwaddr addr ) {\n uint32_t retval ;\n MACIOIDEState * d = opaque ;\n addr = ( addr & 0xFFF ) >> 4 ;\n if ( addr == 0 ) {\n retval = ide_data_readl ( & d -> bus , 0 ) ;\n }\n else {\n retval = 0xFFFFFFFF ;\n }\n retval = bswap32 ( retval ) ;\n return retval ;\n }"}
{"idx": 6521, "target": 0, "func": "static inline void e1000e_raise_legacy_irq ( E1000ECore * core ) {\n trace_e1000e_irq_legacy_notify ( true ) ;\n e1000x_inc_reg_if_not_full ( core -> mac , IAC ) ;\n pci_set_irq ( core -> owner , 1 ) ;\n }"}
{"idx": 6522, "target": 0, "func": "static MV average_split_mvs ( const struct macroblockd_plane * pd , const MODE_INFO * mi , int ref , int block ) {\n const int ss_idx = ( ( pd -> subsampling_x > 0 ) << 1 ) | ( pd -> subsampling_y > 0 ) ;\n MV res = {\n 0 , 0 }\n ;\n switch ( ss_idx ) {\n case 0 : res = mi -> bmi [ block ] . as_mv [ ref ] . as_mv ;\n break ;\n case 1 : res = mi_mv_pred_q2 ( mi , ref , block , block + 2 ) ;\n break ;\n case 2 : res = mi_mv_pred_q2 ( mi , ref , block , block + 1 ) ;\n break ;\n case 3 : res = mi_mv_pred_q4 ( mi , ref ) ;\n break ;\n default : assert ( ss_idx <= 3 || ss_idx >= 0 ) ;\n }\n return res ;\n }"}
{"idx": 6523, "target": 0, "func": "static MAIN_WINDOW_REC * mainwindows_find_left ( MAIN_WINDOW_REC * window , int find_last ) {\n int first_line , last_line , first_column ;\n MAIN_WINDOW_REC * best ;\n GSList * tmp ;\n if ( window != NULL ) {\n first_line = window -> first_line ;\n last_line = window -> last_line ;\n first_column = window -> first_column ;\n }\n else {\n first_line = last_line = screen_height ;\n first_column = screen_width ;\n }\n if ( find_last ) first_column = screen_width ;\n best = NULL ;\n for ( tmp = mainwindows ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n MAIN_WINDOW_REC * rec = tmp -> data ;\n if ( rec -> first_line >= first_line && rec -> last_line <= last_line && rec -> last_column < first_column && ( best == NULL || rec -> last_column > best -> last_column ) ) best = rec ;\n }\n return best ;\n }"}
{"idx": 6524, "target": 0, "func": "static int zcond ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n es_ptr ep = esp ;\n if ( ! r_is_array ( op ) ) return_op_typecheck ( op ) ;\n check_execute ( * op ) ;\n if ( ( r_size ( op ) & 1 ) != 0 ) return_error ( gs_error_rangecheck ) ;\n if ( r_size ( op ) == 0 ) return zpop ( i_ctx_p ) ;\n check_estack ( 3 ) ;\n esp = ep += 3 ;\n ref_assign ( ep - 2 , op ) ;\n make_op_estack ( ep - 1 , cond_continue ) ;\n array_get ( imemory , op , 0L , ep ) ;\n esfile_check_cache ( ) ;\n pop ( 1 ) ;\n return o_push_estack ;\n }"}
{"idx": 6525, "target": 0, "func": "xmlChar * xsltAttrTemplateValueProcess ( xsltTransformContextPtr ctxt , const xmlChar * str ) {\n return ( xsltAttrTemplateValueProcessNode ( ctxt , str , NULL ) ) ;\n }"}
{"idx": 6526, "target": 0, "func": "static int qemuMonitorJSONCheckError ( virJSONValuePtr cmd , virJSONValuePtr reply ) {\n if ( virJSONValueObjectHasKey ( reply , \"error\" ) ) {\n virJSONValuePtr error = virJSONValueObjectGet ( reply , \"error\" ) ;\n char * cmdstr = virJSONValueToString ( cmd ) ;\n char * replystr = virJSONValueToString ( reply ) ;\n VIR_DEBUG ( \"unable to execute QEMU command %s: %s\" , cmdstr , replystr ) ;\n if ( ! error ) qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"unable to execute QEMU command '%s'\" ) , qemuMonitorJSONCommandName ( cmd ) ) ;\n else qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"unable to execute QEMU command '%s': %s\" ) , qemuMonitorJSONCommandName ( cmd ) , qemuMonitorJSONStringifyError ( error ) ) ;\n VIR_FREE ( cmdstr ) ;\n VIR_FREE ( replystr ) ;\n return - 1 ;\n }\n else if ( ! virJSONValueObjectHasKey ( reply , \"return\" ) ) {\n char * cmdstr = virJSONValueToString ( cmd ) ;\n char * replystr = virJSONValueToString ( reply ) ;\n VIR_DEBUG ( \"Neither 'return' nor 'error' is set in the JSON reply %s: %s\" , cmdstr , replystr ) ;\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"unable to execute QEMU command '%s'\" ) , qemuMonitorJSONCommandName ( cmd ) ) ;\n VIR_FREE ( cmdstr ) ;\n VIR_FREE ( replystr ) ;\n return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 6527, "target": 0, "func": "static void free_outgoing ( outgoing_t * outgoing ) {\n if ( outgoing -> ai ) {\n freeaddrinfo ( outgoing -> ai ) ;\n }\n if ( outgoing -> name ) {\n free ( outgoing -> name ) ;\n }\n free ( outgoing ) ;\n }"}
{"idx": 6528, "target": 0, "func": "inline void mime_hdr_init_accelerators_and_presence_bits ( MIMEHdrImpl * mh ) {\n mh -> m_presence_bits = 0 ;\n mh -> m_slot_accelerators [ 0 ] = 0xFFFFFFFF ;\n mh -> m_slot_accelerators [ 1 ] = 0xFFFFFFFF ;\n mh -> m_slot_accelerators [ 2 ] = 0xFFFFFFFF ;\n mh -> m_slot_accelerators [ 3 ] = 0xFFFFFFFF ;\n }"}
{"idx": 6529, "target": 1, "func": "CURLcode Curl_http ( struct connectdata * conn , bool * done ) {\n struct Curl_easy * data = conn -> data ;\n CURLcode result = CURLE_OK ;\n struct HTTP * http ;\n const char * ppath = data -> state . path ;\n bool paste_ftp_userpwd = FALSE ;\n char ftp_typecode [ sizeof ( \"/;\ntype=?\" ) ] = \"\" ;\n const char * host = conn -> host . name ;\n const char * te = \"\" ;\n const char * ptr ;\n const char * request ;\n Curl_HttpReq httpreq = data -> set . httpreq ;\n # if ! defined ( CURL_DISABLE_COOKIES ) char * addcookies = NULL ;\n # endif curl_off_t included_body = 0 ;\n const char * httpstring ;\n Curl_send_buffer * req_buffer ;\n curl_off_t postsize = 0 ;\n int seekerr = CURL_SEEKFUNC_OK ;\n * done = TRUE ;\n if ( conn -> httpversion < 20 ) {\n switch ( conn -> negnpn ) {\n case CURL_HTTP_VERSION_2 : conn -> httpversion = 20 ;\n result = Curl_http2_switched ( conn , NULL , 0 ) ;\n if ( result ) return result ;\n break ;\n case CURL_HTTP_VERSION_1_1 : break ;\n default : # ifdef USE_NGHTTP2 if ( conn -> data -> set . httpversion == CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE ) {\n DEBUGF ( infof ( data , \"HTTP/2 over clean TCP\\n\" ) ) ;\n conn -> httpversion = 20 ;\n result = Curl_http2_switched ( conn , NULL , 0 ) ;\n if ( result ) return result ;\n }\n # endif break ;\n }\n }\n else {\n result = Curl_http2_setup ( conn ) ;\n if ( result ) return result ;\n }\n http = data -> req . protop ;\n if ( ! data -> state . this_is_a_follow ) {\n free ( data -> state . first_host ) ;\n data -> state . first_host = strdup ( conn -> host . name ) ;\n if ( ! data -> state . first_host ) return CURLE_OUT_OF_MEMORY ;\n data -> state . first_remote_port = conn -> remote_port ;\n }\n http -> writebytecount = http -> readbytecount = 0 ;\n if ( ( conn -> handler -> protocol & ( PROTO_FAMILY_HTTP | CURLPROTO_FTP ) ) && data -> set . upload ) {\n httpreq = HTTPREQ_PUT ;\n }\n if ( data -> set . str [ STRING_CUSTOMREQUEST ] ) request = data -> set . str [ STRING_CUSTOMREQUEST ] ;\n else {\n if ( data -> set . opt_no_body ) request = \"HEAD\" ;\n else {\n DEBUGASSERT ( ( httpreq > HTTPREQ_NONE ) && ( httpreq < HTTPREQ_LAST ) ) ;\n switch ( httpreq ) {\n case HTTPREQ_POST : case HTTPREQ_POST_FORM : request = \"POST\" ;\n break ;\n case HTTPREQ_PUT : request = \"PUT\" ;\n break ;\n default : case HTTPREQ_GET : request = \"GET\" ;\n break ;\n case HTTPREQ_HEAD : request = \"HEAD\" ;\n break ;\n }\n }\n }\n if ( Curl_checkheaders ( conn , \"User-Agent:\" ) ) {\n free ( conn -> allocptr . uagent ) ;\n conn -> allocptr . uagent = NULL ;\n }\n result = Curl_http_output_auth ( conn , request , ppath , FALSE ) ;\n if ( result ) return result ;\n if ( ( data -> state . authhost . multi || data -> state . authproxy . multi ) && ( httpreq != HTTPREQ_GET ) && ( httpreq != HTTPREQ_HEAD ) ) {\n conn -> bits . authneg = TRUE ;\n }\n else conn -> bits . authneg = FALSE ;\n Curl_safefree ( conn -> allocptr . ref ) ;\n if ( data -> change . referer && ! Curl_checkheaders ( conn , \"Referer:\" ) ) {\n conn -> allocptr . ref = aprintf ( \"Referer: %s\\r\\n\" , data -> change . referer ) ;\n if ( ! conn -> allocptr . ref ) return CURLE_OUT_OF_MEMORY ;\n }\n else conn -> allocptr . ref = NULL ;\n # if ! defined ( CURL_DISABLE_COOKIES ) if ( data -> set . str [ STRING_COOKIE ] && ! Curl_checkheaders ( conn , \"Cookie:\" ) ) addcookies = data -> set . str [ STRING_COOKIE ] ;\n # endif if ( ! Curl_checkheaders ( conn , \"Accept-Encoding:\" ) && data -> set . str [ STRING_ENCODING ] ) {\n Curl_safefree ( conn -> allocptr . accept_encoding ) ;\n conn -> allocptr . accept_encoding = aprintf ( \"Accept-Encoding: %s\\r\\n\" , data -> set . str [ STRING_ENCODING ] ) ;\n if ( ! conn -> allocptr . accept_encoding ) return CURLE_OUT_OF_MEMORY ;\n }\n else {\n Curl_safefree ( conn -> allocptr . accept_encoding ) ;\n conn -> allocptr . accept_encoding = NULL ;\n }\n # ifdef HAVE_LIBZ if ( ! Curl_checkheaders ( conn , \"TE:\" ) && data -> set . http_transfer_encoding ) {\n char * cptr = Curl_checkheaders ( conn , \"Connection:\" ) ;\n # define TE_HEADER \"TE: gzip\\r\\n\" Curl_safefree ( conn -> allocptr . te ) ;\n conn -> allocptr . te = cptr ? aprintf ( \"%s, TE\\r\\n\" TE_HEADER , cptr ) : strdup ( \"Connection: TE\\r\\n\" TE_HEADER ) ;\n if ( ! conn -> allocptr . te ) return CURLE_OUT_OF_MEMORY ;\n }\n # endif ptr = Curl_checkheaders ( conn , \"Transfer-Encoding:\" ) ;\n if ( ptr ) {\n data -> req . upload_chunky = Curl_compareheader ( ptr , \"Transfer-Encoding:\" , \"chunked\" ) ;\n }\n else {\n if ( ( conn -> handler -> protocol & PROTO_FAMILY_HTTP ) && data -> set . upload && ( data -> state . infilesize == - 1 ) ) {\n if ( conn -> bits . authneg ) ;\n else if ( use_http_1_1plus ( data , conn ) ) {\n data -> req . upload_chunky = TRUE ;\n }\n else {\n failf ( data , \"Chunky upload is not supported by HTTP 1.0\" ) ;\n return CURLE_UPLOAD_FAILED ;\n }\n }\n else {\n data -> req . upload_chunky = FALSE ;\n }\n if ( data -> req . upload_chunky ) te = \"Transfer-Encoding: chunked\\r\\n\" ;\n }\n Curl_safefree ( conn -> allocptr . host ) ;\n ptr = Curl_checkheaders ( conn , \"Host:\" ) ;\n if ( ptr && ( ! data -> state . this_is_a_follow || Curl_raw_equal ( data -> state . first_host , conn -> host . name ) ) ) {\n # if ! defined ( CURL_DISABLE_COOKIES ) char * cookiehost = Curl_copy_header_value ( ptr ) ;\n if ( ! cookiehost ) return CURLE_OUT_OF_MEMORY ;\n if ( ! * cookiehost ) free ( cookiehost ) ;\n else {\n int startsearch = 0 ;\n if ( * cookiehost == '[' ) {\n char * closingbracket ;\n memmove ( cookiehost , cookiehost + 1 , strlen ( cookiehost ) - 1 ) ;\n closingbracket = strchr ( cookiehost , ']' ) ;\n if ( closingbracket ) * closingbracket = 0 ;\n }\n else {\n char * colon = strchr ( cookiehost + startsearch , ':' ) ;\n if ( colon ) * colon = 0 ;\n }\n Curl_safefree ( conn -> allocptr . cookiehost ) ;\n conn -> allocptr . cookiehost = cookiehost ;\n }\n # endif if ( strcmp ( \"Host:\" , ptr ) ) {\n conn -> allocptr . host = aprintf ( \"%s\\r\\n\" , ptr ) ;\n if ( ! conn -> allocptr . host ) return CURLE_OUT_OF_MEMORY ;\n }\n else conn -> allocptr . host = NULL ;\n }\n else {\n if ( ( ( conn -> given -> protocol & CURLPROTO_HTTPS ) && ( conn -> remote_port == PORT_HTTPS ) ) || ( ( conn -> given -> protocol & CURLPROTO_HTTP ) && ( conn -> remote_port == PORT_HTTP ) ) ) conn -> allocptr . host = aprintf ( \"Host: %s%s%s\\r\\n\" , conn -> bits . ipv6_ip ? \"[\" : \"\" , host , conn -> bits . ipv6_ip ? \"]\" : \"\" ) ;\n else conn -> allocptr . host = aprintf ( \"Host: %s%s%s:%hu\\r\\n\" , conn -> bits . ipv6_ip ? \"[\" : \"\" , host , conn -> bits . ipv6_ip ? \"]\" : \"\" , conn -> remote_port ) ;\n if ( ! conn -> allocptr . host ) return CURLE_OUT_OF_MEMORY ;\n }\n # ifndef CURL_DISABLE_PROXY if ( conn -> bits . httpproxy && ! conn -> bits . tunnel_proxy ) {\n if ( conn -> host . dispname != conn -> host . name ) {\n char * url = data -> change . url ;\n ptr = strstr ( url , conn -> host . dispname ) ;\n if ( ptr ) {\n size_t currlen = strlen ( conn -> host . dispname ) ;\n size_t newlen = strlen ( conn -> host . name ) ;\n size_t urllen = strlen ( url ) ;\n char * newurl ;\n newurl = malloc ( urllen + newlen - currlen + 1 ) ;\n if ( newurl ) {\n memcpy ( newurl , url , ptr - url ) ;\n memcpy ( newurl + ( ptr - url ) , conn -> host . name , newlen ) ;\n memcpy ( newurl + newlen + ( ptr - url ) , ptr + currlen , urllen - ( ptr - url ) - currlen + 1 ) ;\n if ( data -> change . url_alloc ) {\n Curl_safefree ( data -> change . url ) ;\n data -> change . url_alloc = FALSE ;\n }\n data -> change . url = newurl ;\n data -> change . url_alloc = TRUE ;\n }\n else return CURLE_OUT_OF_MEMORY ;\n }\n }\n ppath = data -> change . url ;\n if ( checkprefix ( \"ftp://\" , ppath ) ) {\n if ( data -> set . proxy_transfer_mode ) {\n char * type = strstr ( ppath , \";\ntype=\" ) ;\n if ( type && type [ 6 ] && type [ 7 ] == 0 ) {\n switch ( Curl_raw_toupper ( type [ 6 ] ) ) {\n case 'A' : case 'D' : case 'I' : break ;\n default : type = NULL ;\n }\n }\n if ( ! type ) {\n char * p = ftp_typecode ;\n if ( ! * data -> state . path && ppath [ strlen ( ppath ) - 1 ] != '/' ) {\n * p ++ = '/' ;\n }\n snprintf ( p , sizeof ( ftp_typecode ) - 1 , \";\ntype=%c\" , data -> set . prefer_ascii ? 'a' : 'i' ) ;\n }\n }\n if ( conn -> bits . user_passwd && ! conn -> bits . userpwd_in_url ) paste_ftp_userpwd = TRUE ;\n }\n }\n # endif if ( HTTPREQ_POST_FORM == httpreq ) {\n result = Curl_getformdata ( data , & http -> sendit , data -> set . httppost , Curl_checkheaders ( conn , \"Content-Type:\" ) , & http -> postsize ) ;\n if ( result ) return result ;\n }\n http -> p_accept = Curl_checkheaders ( conn , \"Accept:\" ) ? NULL : \"Accept: */*\\r\\n\" ;\n if ( ( ( HTTPREQ_POST == httpreq ) || ( HTTPREQ_POST_FORM == httpreq ) || ( HTTPREQ_PUT == httpreq ) ) && data -> state . resume_from ) {\n if ( data -> state . resume_from < 0 ) {\n data -> state . resume_from = 0 ;\n }\n if ( data -> state . resume_from && ! data -> state . this_is_a_follow ) {\n if ( conn -> seek_func ) {\n seekerr = conn -> seek_func ( conn -> seek_client , data -> state . resume_from , SEEK_SET ) ;\n }\n if ( seekerr != CURL_SEEKFUNC_OK ) {\n if ( seekerr != CURL_SEEKFUNC_CANTSEEK ) {\n failf ( data , \"Could not seek stream\" ) ;\n return CURLE_READ_ERROR ;\n }\n else {\n curl_off_t passed = 0 ;\n do {\n size_t readthisamountnow = ( data -> state . resume_from - passed > CURL_OFF_T_C ( BUFSIZE ) ) ? BUFSIZE : curlx_sotouz ( data -> state . resume_from - passed ) ;\n size_t actuallyread = data -> state . fread_func ( data -> state . buffer , 1 , readthisamountnow , data -> state . in ) ;\n passed += actuallyread ;\n if ( ( actuallyread == 0 ) || ( actuallyread > readthisamountnow ) ) {\n failf ( data , \"Could only read %\" CURL_FORMAT_CURL_OFF_T \" bytes from the input\" , passed ) ;\n return CURLE_READ_ERROR ;\n }\n }\n while ( passed < data -> state . resume_from ) ;\n }\n }\n if ( data -> state . infilesize > 0 ) {\n data -> state . infilesize -= data -> state . resume_from ;\n if ( data -> state . infilesize <= 0 ) {\n failf ( data , \"File already completely uploaded\" ) ;\n return CURLE_PARTIAL_FILE ;\n }\n }\n }\n }\n if ( data -> state . use_range ) {\n if ( ( ( httpreq == HTTPREQ_GET ) || ( httpreq == HTTPREQ_HEAD ) ) && ! Curl_checkheaders ( conn , \"Range:\" ) ) {\n free ( conn -> allocptr . rangeline ) ;\n conn -> allocptr . rangeline = aprintf ( \"Range: bytes=%s\\r\\n\" , data -> state . range ) ;\n }\n else if ( ( httpreq != HTTPREQ_GET ) && ! Curl_checkheaders ( conn , \"Content-Range:\" ) ) {\n free ( conn -> allocptr . rangeline ) ;\n if ( data -> set . set_resume_from < 0 ) {\n conn -> allocptr . rangeline = aprintf ( \"Content-Range: bytes 0-%\" CURL_FORMAT_CURL_OFF_T \"/%\" CURL_FORMAT_CURL_OFF_T \"\\r\\n\" , data -> state . infilesize - 1 , data -> state . infilesize ) ;\n }\n else if ( data -> state . resume_from ) {\n curl_off_t total_expected_size = data -> state . resume_from + data -> state . infilesize ;\n conn -> allocptr . rangeline = aprintf ( \"Content-Range: bytes %s%\" CURL_FORMAT_CURL_OFF_T \"/%\" CURL_FORMAT_CURL_OFF_T \"\\r\\n\" , data -> state . range , total_expected_size - 1 , total_expected_size ) ;\n }\n else {\n conn -> allocptr . rangeline = aprintf ( \"Content-Range: bytes %s/%\" CURL_FORMAT_CURL_OFF_T \"\\r\\n\" , data -> state . range , data -> state . infilesize ) ;\n }\n if ( ! conn -> allocptr . rangeline ) return CURLE_OUT_OF_MEMORY ;\n }\n }\n httpstring = use_http_1_1plus ( data , conn ) ? \"1.1\" : \"1.0\" ;\n req_buffer = Curl_add_buffer_init ( ) ;\n if ( ! req_buffer ) return CURLE_OUT_OF_MEMORY ;\n result = Curl_add_bufferf ( req_buffer , \"%s \" , request ) ;\n if ( result ) return result ;\n if ( paste_ftp_userpwd ) result = Curl_add_bufferf ( req_buffer , \"ftp://%s:%s@%s\" , conn -> user , conn -> passwd , ppath + sizeof ( \"ftp://\" ) - 1 ) ;\n else result = Curl_add_buffer ( req_buffer , ppath , strlen ( ppath ) ) ;\n if ( result ) return result ;\n result = Curl_add_bufferf ( req_buffer , \"%s\" \" HTTP/%s\\r\\n\" \"%s\" \"%s\" \"%s\" \"%s\" \"%s\" \"%s\" \"%s\" \"%s\" \"%s\" \"%s\" \"%s\" , ftp_typecode , httpstring , ( conn -> allocptr . host ? conn -> allocptr . host : \"\" ) , conn -> allocptr . proxyuserpwd ? conn -> allocptr . proxyuserpwd : \"\" , conn -> allocptr . userpwd ? conn -> allocptr . userpwd : \"\" , ( data -> state . use_range && conn -> allocptr . rangeline ) ? conn -> allocptr . rangeline : \"\" , ( data -> set . str [ STRING_USERAGENT ] && * data -> set . str [ STRING_USERAGENT ] && conn -> allocptr . uagent ) ? conn -> allocptr . uagent : \"\" , http -> p_accept ? http -> p_accept : \"\" , conn -> allocptr . te ? conn -> allocptr . te : \"\" , ( data -> set . str [ STRING_ENCODING ] && * data -> set . str [ STRING_ENCODING ] && conn -> allocptr . accept_encoding ) ? conn -> allocptr . accept_encoding : \"\" , ( data -> change . referer && conn -> allocptr . ref ) ? conn -> allocptr . ref : \"\" , ( conn -> bits . httpproxy && ! conn -> bits . tunnel_proxy && ! Curl_checkProxyheaders ( conn , \"Proxy-Connection:\" ) ) ? \"Proxy-Connection: Keep-Alive\\r\\n\" : \"\" , te ) ;\n Curl_safefree ( conn -> allocptr . userpwd ) ;\n switch ( data -> state . authproxy . picked ) {\n case CURLAUTH_NEGOTIATE : case CURLAUTH_NTLM : case CURLAUTH_NTLM_WB : Curl_safefree ( conn -> allocptr . proxyuserpwd ) ;\n break ;\n }\n if ( result ) return result ;\n if ( ! ( conn -> handler -> flags & PROTOPT_SSL ) && conn -> httpversion != 20 && ( data -> set . httpversion == CURL_HTTP_VERSION_2 ) ) {\n result = Curl_http2_request_upgrade ( req_buffer , conn ) ;\n if ( result ) return result ;\n }\n # if ! defined ( CURL_DISABLE_COOKIES ) if ( data -> cookies || addcookies ) {\n struct Cookie * co = NULL ;\n int count = 0 ;\n if ( data -> cookies ) {\n Curl_share_lock ( data , CURL_LOCK_DATA_COOKIE , CURL_LOCK_ACCESS_SINGLE ) ;\n co = Curl_cookie_getlist ( data -> cookies , conn -> allocptr . cookiehost ? conn -> allocptr . cookiehost : host , data -> state . path , ( conn -> handler -> protocol & CURLPROTO_HTTPS ) ? TRUE : FALSE ) ;\n Curl_share_unlock ( data , CURL_LOCK_DATA_COOKIE ) ;\n }\n if ( co ) {\n struct Cookie * store = co ;\n while ( co ) {\n if ( co -> value ) {\n if ( 0 == count ) {\n result = Curl_add_bufferf ( req_buffer , \"Cookie: \" ) ;\n if ( result ) break ;\n }\n result = Curl_add_bufferf ( req_buffer , \"%s%s=%s\" , count ? \";\n \" : \"\" , co -> name , co -> value ) ;\n if ( result ) break ;\n count ++ ;\n }\n co = co -> next ;\n }\n Curl_cookie_freelist ( store , FALSE ) ;\n }\n if ( addcookies && ! result ) {\n if ( ! count ) result = Curl_add_bufferf ( req_buffer , \"Cookie: \" ) ;\n if ( ! result ) {\n result = Curl_add_bufferf ( req_buffer , \"%s%s\" , count ? \";\n \" : \"\" , addcookies ) ;\n count ++ ;\n }\n }\n if ( count && ! result ) result = Curl_add_buffer ( req_buffer , \"\\r\\n\" , 2 ) ;\n if ( result ) return result ;\n }\n # endif result = Curl_add_timecondition ( data , req_buffer ) ;\n if ( result ) return result ;\n result = Curl_add_custom_headers ( conn , FALSE , req_buffer ) ;\n if ( result ) return result ;\n http -> postdata = NULL ;\n Curl_pgrsSetUploadSize ( data , - 1 ) ;\n switch ( httpreq ) {\n case HTTPREQ_POST_FORM : if ( ! http -> sendit || conn -> bits . authneg ) {\n result = Curl_add_bufferf ( req_buffer , \"Content-Length: 0\\r\\n\\r\\n\" ) ;\n if ( result ) return result ;\n result = Curl_add_buffer_send ( req_buffer , conn , & data -> info . request_size , 0 , FIRSTSOCKET ) ;\n if ( result ) failf ( data , \"Failed sending POST request\" ) ;\n else Curl_setup_transfer ( conn , FIRSTSOCKET , - 1 , TRUE , & http -> readbytecount , - 1 , NULL ) ;\n break ;\n }\n if ( Curl_FormInit ( & http -> form , http -> sendit ) ) {\n failf ( data , \"Internal HTTP POST error!\" ) ;\n return CURLE_HTTP_POST_ERROR ;\n }\n http -> form . fread_func = data -> state . fread_func ;\n data -> state . fread_func = ( curl_read_callback ) Curl_FormReader ;\n data -> state . in = & http -> form ;\n http -> sending = HTTPSEND_BODY ;\n if ( ! data -> req . upload_chunky && ! Curl_checkheaders ( conn , \"Content-Length:\" ) ) {\n result = Curl_add_bufferf ( req_buffer , \"Content-Length: %\" CURL_FORMAT_CURL_OFF_T \"\\r\\n\" , http -> postsize ) ;\n if ( result ) return result ;\n }\n result = expect100 ( data , conn , req_buffer ) ;\n if ( result ) return result ;\n {\n char * contentType ;\n size_t linelength = 0 ;\n contentType = Curl_formpostheader ( ( void * ) & http -> form , & linelength ) ;\n if ( ! contentType ) {\n failf ( data , \"Could not get Content-Type header line!\" ) ;\n return CURLE_HTTP_POST_ERROR ;\n }\n result = Curl_add_buffer ( req_buffer , contentType , linelength ) ;\n if ( result ) return result ;\n }\n result = Curl_add_buffer ( req_buffer , \"\\r\\n\" , 2 ) ;\n if ( result ) return result ;\n Curl_pgrsSetUploadSize ( data , http -> postsize ) ;\n result = Curl_add_buffer_send ( req_buffer , conn , & data -> info . request_size , 0 , FIRSTSOCKET ) ;\n if ( result ) failf ( data , \"Failed sending POST request\" ) ;\n else Curl_setup_transfer ( conn , FIRSTSOCKET , - 1 , TRUE , & http -> readbytecount , FIRSTSOCKET , & http -> writebytecount ) ;\n if ( result ) {\n Curl_formclean ( & http -> sendit ) ;\n return result ;\n }\n result = Curl_convert_form ( data , http -> sendit ) ;\n if ( result ) {\n Curl_formclean ( & http -> sendit ) ;\n return result ;\n }\n break ;\n case HTTPREQ_PUT : if ( conn -> bits . authneg ) postsize = 0 ;\n else postsize = data -> state . infilesize ;\n if ( ( postsize != - 1 ) && ! data -> req . upload_chunky && ! Curl_checkheaders ( conn , \"Content-Length:\" ) ) {\n result = Curl_add_bufferf ( req_buffer , \"Content-Length: %\" CURL_FORMAT_CURL_OFF_T \"\\r\\n\" , postsize ) ;\n if ( result ) return result ;\n }\n if ( postsize != 0 ) {\n result = expect100 ( data , conn , req_buffer ) ;\n if ( result ) return result ;\n }\n result = Curl_add_buffer ( req_buffer , \"\\r\\n\" , 2 ) ;\n if ( result ) return result ;\n Curl_pgrsSetUploadSize ( data , postsize ) ;\n result = Curl_add_buffer_send ( req_buffer , conn , & data -> info . request_size , 0 , FIRSTSOCKET ) ;\n if ( result ) failf ( data , \"Failed sending PUT request\" ) ;\n else Curl_setup_transfer ( conn , FIRSTSOCKET , - 1 , TRUE , & http -> readbytecount , postsize ? FIRSTSOCKET : - 1 , postsize ? & http -> writebytecount : NULL ) ;\n if ( result ) return result ;\n break ;\n case HTTPREQ_POST : if ( conn -> bits . authneg ) postsize = 0 ;\n else {\n postsize = ( data -> state . infilesize != - 1 ) ? data -> state . infilesize : ( data -> set . postfields ? ( curl_off_t ) strlen ( data -> set . postfields ) : - 1 ) ;\n }\n if ( ( postsize != - 1 ) && ! data -> req . upload_chunky && ! Curl_checkheaders ( conn , \"Content-Length:\" ) ) {\n result = Curl_add_bufferf ( req_buffer , \"Content-Length: %\" CURL_FORMAT_CURL_OFF_T \"\\r\\n\" , postsize ) ;\n if ( result ) return result ;\n }\n if ( ! Curl_checkheaders ( conn , \"Content-Type:\" ) ) {\n result = Curl_add_bufferf ( req_buffer , \"Content-Type: application/\" \"x-www-form-urlencoded\\r\\n\" ) ;\n if ( result ) return result ;\n }\n ptr = Curl_checkheaders ( conn , \"Expect:\" ) ;\n if ( ptr ) {\n data -> state . expect100header = Curl_compareheader ( ptr , \"Expect:\" , \"100-continue\" ) ;\n }\n else if ( postsize > TINY_INITIAL_POST_SIZE || postsize < 0 ) {\n result = expect100 ( data , conn , req_buffer ) ;\n if ( result ) return result ;\n }\n else data -> state . expect100header = FALSE ;\n if ( data -> set . postfields ) {\n if ( conn -> httpversion != 20 && ! data -> state . expect100header && ( postsize < MAX_INITIAL_POST_SIZE ) ) {\n result = Curl_add_buffer ( req_buffer , \"\\r\\n\" , 2 ) ;\n if ( result ) return result ;\n if ( ! data -> req . upload_chunky ) {\n result = Curl_add_buffer ( req_buffer , data -> set . postfields , ( size_t ) postsize ) ;\n included_body = postsize ;\n }\n else {\n if ( postsize ) {\n result = Curl_add_bufferf ( req_buffer , \"%x\\r\\n\" , ( int ) postsize ) ;\n if ( ! result ) {\n result = Curl_add_buffer ( req_buffer , data -> set . postfields , ( size_t ) postsize ) ;\n if ( ! result ) result = Curl_add_buffer ( req_buffer , \"\\r\\n\" , 2 ) ;\n included_body = postsize + 2 ;\n }\n }\n if ( ! result ) result = Curl_add_buffer ( req_buffer , \"\\x30\\x0d\\x0a\\x0d\\x0a\" , 5 ) ;\n included_body += 5 ;\n }\n if ( result ) return result ;\n Curl_pgrsSetUploadSize ( data , postsize ) ;\n }\n else {\n http -> postsize = postsize ;\n http -> postdata = data -> set . postfields ;\n http -> sending = HTTPSEND_BODY ;\n data -> state . fread_func = ( curl_read_callback ) readmoredata ;\n data -> state . in = ( void * ) conn ;\n Curl_pgrsSetUploadSize ( data , http -> postsize ) ;\n result = Curl_add_buffer ( req_buffer , \"\\r\\n\" , 2 ) ;\n if ( result ) return result ;\n }\n }\n else {\n result = Curl_add_buffer ( req_buffer , \"\\r\\n\" , 2 ) ;\n if ( result ) return result ;\n if ( data -> req . upload_chunky && conn -> bits . authneg ) {\n result = Curl_add_buffer ( req_buffer , \"\\x30\\x0d\\x0a\\x0d\\x0a\" , 5 ) ;\n if ( result ) return result ;\n }\n else if ( data -> state . infilesize ) {\n Curl_pgrsSetUploadSize ( data , postsize ? postsize : - 1 ) ;\n if ( ! conn -> bits . authneg ) {\n http -> postdata = ( char * ) & http -> postdata ;\n http -> postsize = postsize ;\n }\n }\n }\n result = Curl_add_buffer_send ( req_buffer , conn , & data -> info . request_size , ( size_t ) included_body , FIRSTSOCKET ) ;\n if ( result ) failf ( data , \"Failed sending HTTP POST request\" ) ;\n else Curl_setup_transfer ( conn , FIRSTSOCKET , - 1 , TRUE , & http -> readbytecount , http -> postdata ? FIRSTSOCKET : - 1 , http -> postdata ? & http -> writebytecount : NULL ) ;\n break ;\n default : result = Curl_add_buffer ( req_buffer , \"\\r\\n\" , 2 ) ;\n if ( result ) return result ;\n result = Curl_add_buffer_send ( req_buffer , conn , & data -> info . request_size , 0 , FIRSTSOCKET ) ;\n if ( result ) failf ( data , \"Failed sending HTTP request\" ) ;\n else Curl_setup_transfer ( conn , FIRSTSOCKET , - 1 , TRUE , & http -> readbytecount , http -> postdata ? FIRSTSOCKET : - 1 , http -> postdata ? & http -> writebytecount : NULL ) ;\n }\n if ( result ) return result ;\n if ( http -> writebytecount ) {\n Curl_pgrsSetUploadCounter ( data , http -> writebytecount ) ;\n if ( Curl_pgrsUpdate ( conn ) ) result = CURLE_ABORTED_BY_CALLBACK ;\n if ( http -> writebytecount >= postsize ) {\n infof ( data , \"upload completely sent off: %\" CURL_FORMAT_CURL_OFF_T \" out of %\" CURL_FORMAT_CURL_OFF_T \" bytes\\n\" , http -> writebytecount , postsize ) ;\n data -> req . upload_done = TRUE ;\n data -> req . keepon &= ~ KEEP_SEND ;\n data -> req . exp100 = EXP100_SEND_DATA ;\n }\n }\n if ( ( conn -> httpversion == 20 ) && data -> req . upload_chunky ) data -> req . upload_chunky = FALSE ;\n return result ;\n }"}
{"idx": 6530, "target": 0, "func": "int zfor_samples ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n es_ptr ep ;\n check_type ( op [ - 3 ] , t_real ) ;\n check_type ( op [ - 2 ] , t_integer ) ;\n check_type ( op [ - 1 ] , t_real ) ;\n check_proc ( * op ) ;\n check_estack ( 8 ) ;\n ep = esp + 7 ;\n make_mark_estack ( ep - 6 , es_for , no_cleanup ) ;\n make_int ( ep - 5 , 0 ) ;\n memcpy ( ep - 4 , op - 3 , 3 * sizeof ( ref ) ) ;\n ref_assign ( ep - 1 , op ) ;\n make_op_estack ( ep , for_samples_continue ) ;\n esp = ep ;\n pop ( 4 ) ;\n return o_push_estack ;\n }"}
{"idx": 6531, "target": 0, "func": "int vp9_set_size_literal ( VP9_COMP * cpi , unsigned int width , unsigned int height ) {\n VP9_COMMON * cm = & cpi -> common ;\n check_initial_width ( cpi , 1 , 1 ) ;\n if ( width ) {\n cm -> width = width ;\n if ( cm -> width * 5 < cpi -> initial_width ) {\n cm -> width = cpi -> initial_width / 5 + 1 ;\n printf ( \"Warning: Desired width too small, changed to %d\\n\" , cm -> width ) ;\n }\n if ( cm -> width > cpi -> initial_width ) {\n cm -> width = cpi -> initial_width ;\n printf ( \"Warning: Desired width too large, changed to %d\\n\" , cm -> width ) ;\n }\n }\n if ( height ) {\n cm -> height = height ;\n if ( cm -> height * 5 < cpi -> initial_height ) {\n cm -> height = cpi -> initial_height / 5 + 1 ;\n printf ( \"Warning: Desired height too small, changed to %d\\n\" , cm -> height ) ;\n }\n if ( cm -> height > cpi -> initial_height ) {\n cm -> height = cpi -> initial_height ;\n printf ( \"Warning: Desired height too large, changed to %d\\n\" , cm -> height ) ;\n }\n }\n assert ( cm -> width <= cpi -> initial_width ) ;\n assert ( cm -> height <= cpi -> initial_height ) ;\n update_frame_size ( cpi ) ;\n return 0 ;\n }"}
{"idx": 6532, "target": 0, "func": "static void pdo_stmt_iter_get_key ( zend_object_iterator * iter , zval * key TSRMLS_DC ) {\n struct php_pdo_iterator * I = ( struct php_pdo_iterator * ) iter -> data ;\n if ( I -> key == ( ulong ) - 1 ) {\n ZVAL_NULL ( key ) ;\n }\n else {\n ZVAL_LONG ( key , I -> key ) ;\n }\n }"}
{"idx": 6533, "target": 0, "func": "int parse_CPidMapper ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree , const char * fmt , ... ) {\n proto_item * item ;\n proto_tree * tree ;\n va_list ap ;\n guint32 count , i ;\n const char * txt ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CPidMapper , & item , txt ) ;\n count = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_cpidmapper_count , tvb , offset , 4 , count ) ;\n offset += 4 ;\n offset = parse_padding ( tvb , offset , 8 , pad_tree , \"CPidMapper_PropSpec\" ) ;\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n struct CFullPropSpec v ;\n ZERO_STRUCT ( v ) ;\n offset = parse_padding ( tvb , offset , 4 , pad_tree , \"CPidMapper_PropSpec[%u]\" , i ) ;\n offset = parse_CFullPropSpec ( tvb , offset , tree , pad_tree , & v , \"PropSpec[%u]\" , i ) ;\n }\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 6534, "target": 0, "func": "static int dissect_pvfs2_chdirent_response ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"handle\" , NULL ) ;\n return offset ;\n }"}
{"idx": 6535, "target": 0, "func": "zend_object_iterator * spl_filesystem_tree_get_iterator ( zend_class_entry * ce , zval * object , int by_ref TSRMLS_DC ) {\n spl_filesystem_iterator * iterator ;\n spl_filesystem_object * dir_object ;\n if ( by_ref ) {\n zend_error ( E_ERROR , \"An iterator cannot be used with foreach by reference\" ) ;\n }\n dir_object = ( spl_filesystem_object * ) zend_object_store_get_object ( object TSRMLS_CC ) ;\n iterator = spl_filesystem_object_to_iterator ( dir_object ) ;\n if ( iterator -> intern . data == NULL ) {\n iterator -> intern . data = object ;\n iterator -> intern . funcs = & spl_filesystem_tree_it_funcs ;\n }\n zval_add_ref ( & object ) ;\n return ( zend_object_iterator * ) iterator ;\n }"}
{"idx": 6536, "target": 0, "func": "static int pfkey_sadb_addr2xfrm_addr ( const struct sadb_address * addr , xfrm_address_t * xaddr ) {\n return pfkey_sockaddr_extract ( ( struct sockaddr * ) ( addr + 1 ) , xaddr ) ;\n }"}
{"idx": 6537, "target": 0, "func": "static Asn1Generic * DecodeAsn1DerSet ( const unsigned char * buffer , uint32_t max_size , uint8_t depth , uint32_t * errcode ) {\n const unsigned char * d_ptr = buffer ;\n uint32_t d_length , numbytes , el_max_size ;\n uint8_t c ;\n uint32_t seq_index ;\n Asn1Generic * node ;\n Asn1Generic * child ;\n d_ptr ++ ;\n node = Asn1GenericNew ( ) ;\n if ( node == NULL ) return NULL ;\n node -> type = ASN1_SET ;\n node -> data = NULL ;\n c = d_ptr [ 0 ] ;\n if ( ( c & ( 1 << 7 ) ) >> 7 == 0 ) {\n d_length = c ;\n d_ptr ++ ;\n }\n else {\n numbytes = c & 0x7f ;\n d_ptr ++ ;\n if ( DecodeAsn1BuildValue ( & d_ptr , & d_length , numbytes , errcode ) == - 1 ) {\n SCFree ( node ) ;\n return NULL ;\n }\n }\n node -> length = d_length + ( d_ptr - buffer ) ;\n if ( node -> length > max_size || node -> length < d_length ) {\n if ( errcode ) * errcode = ERR_DER_ELEMENT_SIZE_TOO_BIG ;\n SCFree ( node ) ;\n return NULL ;\n }\n seq_index = 0 ;\n el_max_size = max_size - ( d_ptr - buffer ) ;\n child = DecodeAsn1DerGeneric ( d_ptr , el_max_size , depth , seq_index , errcode ) ;\n if ( child == NULL ) {\n DerFree ( node ) ;\n return NULL ;\n }\n node -> data = child ;\n return ( Asn1Generic * ) node ;\n }"}
{"idx": 6538, "target": 0, "func": "char * Curl_formpostheader ( void * formp , size_t * len ) {\n char * header ;\n struct Form * form = ( struct Form * ) formp ;\n if ( ! form -> data ) return 0 ;\n header = form -> data -> line ;\n * len = form -> data -> length ;\n form -> data = form -> data -> next ;\n return header ;\n }"}
{"idx": 6539, "target": 0, "func": "int psf_fopen ( SF_PRIVATE * psf ) {\n psf -> error = 0 ;\n psf -> file . filedes = psf_open_fd ( & psf -> file ) ;\n if ( psf -> file . filedes == - SFE_BAD_OPEN_MODE ) {\n psf -> error = SFE_BAD_OPEN_MODE ;\n psf -> file . filedes = - 1 ;\n return psf -> error ;\n }\n ;\n if ( psf -> file . filedes == - 1 ) psf_log_syserr ( psf , errno ) ;\n return psf -> error ;\n }"}
{"idx": 6540, "target": 0, "func": "static void compress_job_on_error ( AutoarCompressor * compressor , GError * error , gpointer user_data ) {\n CompressJob * compress_job = user_data ;\n char * status ;\n if ( compress_job -> total_files == 1 ) {\n status = f ( _ ( \"Error compressing \u201c%B\u201d into \u201c%B\u201d\" ) , G_FILE ( compress_job -> source_files -> data ) , compress_job -> output_file ) ;\n }\n else {\n status = f ( ngettext ( \"Error compressing %'d file into \u201c%B\u201d\" , \"Error compressing %'d files into \u201c%B\u201d\" , compress_job -> total_files ) , compress_job -> total_files , compress_job -> output_file ) ;\n }\n nautilus_progress_info_take_status ( compress_job -> common . progress , status ) ;\n run_error ( ( CommonJob * ) compress_job , g_strdup ( _ ( \"There was an error while compressing files.\" ) ) , g_strdup ( error -> message ) , NULL , FALSE , CANCEL , NULL ) ;\n abort_job ( ( CommonJob * ) compress_job ) ;\n }"}
{"idx": 6541, "target": 0, "func": "unsigned long # define BN_LONG long # define BN_BITS 128 # define BN_BYTES 8 # define BN_BITS2 64 # define BN_BITS4 32 # define BN_MASK ( 0xffffffffffffffffffffffffffffffffLL ) # define BN_MASK2 ( 0xffffffffffffffffL ) # define BN_MASK2l ( 0xffffffffL ) # define BN_MASK2h ( 0xffffffff00000000L ) # define BN_MASK2h1 ( 0xffffffff80000000L ) # define BN_TBIT ( 0x8000000000000000L ) # define BN_DEC_CONV ( 10000000000000000000UL ) # define BN_DEC_FMT1 \"%lu\" # define BN_DEC_FMT2 \"%019lu\" # define BN_DEC_NUM 19 # define BN_HEX_FMT1 \"%lX\" # define BN_HEX_FMT2 \"%016lX\" # endif # ifdef SIXTY_FOUR_BIT # undef BN_LLONG # undef BN_ULLONG # define BN_ULONG unsigned long long # define BN_LONG long long # define BN_BITS 128 # define BN_BYTES 8 # define BN_BITS2 64 # define BN_BITS4 32 # define BN_MASK2 ( 0xffffffffffffffffLL ) # define BN_MASK2l ( 0xffffffffL ) # define BN_MASK2h ( 0xffffffff00000000LL ) # define BN_MASK2h1 ( 0xffffffff80000000LL ) # define BN_TBIT ( 0x8000000000000000LL ) # define BN_DEC_CONV ( 10000000000000000000ULL ) # define BN_DEC_FMT1 \"%llu\" # define BN_DEC_FMT2 \"%019llu\" # define BN_DEC_NUM 19 # define BN_HEX_FMT1 \"%llX\" # define BN_HEX_FMT2 \"%016llX\" # endif # ifdef THIRTY_TWO_BIT # ifdef BN_LLONG # if defined ( _WIN32 ) && ! defined ( __GNUC__ ) # define BN_ULLONG unsigned __int64 # define BN_MASK ( 0xffffffffffffffffI64 ) # else # define BN_ULLONG unsigned long long # define BN_MASK ( 0xffffffffffffffffLL ) # endif # endif # define BN_ULONG unsigned int # define BN_LONG int # define BN_BITS 64 # define BN_BYTES 4 # define BN_BITS2 32 # define BN_BITS4 16 # define BN_MASK2 ( 0xffffffffL ) # define BN_MASK2l ( 0xffff ) # define BN_MASK2h1 ( 0xffff8000L ) # define BN_MASK2h ( 0xffff0000L ) # define BN_TBIT ( 0x80000000L ) # define BN_DEC_CONV ( 1000000000L ) # define BN_DEC_FMT1 \"%u\" # define BN_DEC_FMT2 \"%09u\" # define BN_DEC_NUM 9 # define BN_HEX_FMT1 \"%X\" # define BN_HEX_FMT2 \"%08X\" # endif # define BN_DEFAULT_BITS 1280 # define BN_FLG_MALLOCED 0x01 # define BN_FLG_STATIC_DATA 0x02 # define BN_FLG_CONSTTIME 0x04 # ifndef OPENSSL_NO_DEPRECATED # define BN_FLG_EXP_CONSTTIME BN_FLG_CONSTTIME # endif # ifndef OPENSSL_NO_DEPRECATED # define BN_FLG_FREE 0x8000 # endif # define BN_set_flags ( b , n ) ( ( b ) -> flags |= ( n ) ) # define BN_get_flags ( b , n ) ( ( b ) -> flags & ( n ) ) # define BN_with_flags ( dest , b , n ) ( ( dest ) -> d = ( b ) -> d , \\ ( dest ) -> top = ( b ) -> top , \\ ( dest ) -> dmax = ( b ) -> dmax , \\ ( dest ) -> neg = ( b ) -> neg , \\ ( dest ) -> flags = ( ( ( dest ) -> flags & BN_FLG_MALLOCED ) \\ | ( ( b ) -> flags & ~ BN_FLG_MALLOCED ) \\ | BN_FLG_STATIC_DATA \\ | ( n ) ) ) # if 0 typedef struct bignum_st BIGNUM ;\n typedef struct bignum_ctx BN_CTX ;\n typedef struct bn_blinding_st BN_BLINDING ;\n typedef struct bn_mont_ctx_st BN_MONT_CTX ;\n typedef struct bn_recp_ctx_st BN_RECP_CTX ;\n typedef struct bn_gencb_st BN_GENCB ;\n # endif struct bignum_st {\n BN_ULONG * d ;\n int top ;\n int dmax ;\n int neg ;\n int flags ;\n }\n ;\n struct bn_mont_ctx_st {\n int ri ;\n BIGNUM RR ;\n BIGNUM N ;\n BIGNUM Ni ;\n BN_ULONG n0 [ 2 ] ;\n int flags ;\n }\n ;\n struct bn_recp_ctx_st {\n BIGNUM N ;\n BIGNUM Nr ;\n int num_bits ;\n int shift ;\n int flags ;\n }\n ;\n struct bn_gencb_st {\n unsigned int ver ;\n void * arg ;\n union {\n void ( * cb_1 ) ( int , int , void * ) ;\n int ( * cb_2 ) ( int , int , BN_GENCB * ) ;\n }\n cb ;\n }\n ;\n int BN_GENCB_call ( BN_GENCB * cb , int a , int b ) ;\n # define BN_GENCB_set_old ( gencb , callback , cb_arg ) {\n \\ BN_GENCB * tmp_gencb = ( gencb ) ;\n \\ tmp_gencb -> ver = 1 ;\n \\ tmp_gencb -> arg = ( cb_arg ) ;\n \\ tmp_gencb -> cb . cb_1 = ( callback ) ;\n }\n # define BN_GENCB_set ( gencb , callback , cb_arg ) {\n \\ BN_GENCB * tmp_gencb = ( gencb ) ;\n \\ tmp_gencb -> ver = 2 ;\n \\ tmp_gencb -> arg = ( cb_arg ) ;\n \\ tmp_gencb -> cb . cb_2 = ( callback ) ;\n }\n # define BN_prime_checks 0 # define BN_prime_checks_for_size ( b ) ( ( b ) >= 1300 ? 2 : \\ ( b ) >= 850 ? 3 : \\ ( b ) >= 650 ? 4 : \\ ( b ) >= 550 ? 5 : \\ ( b ) >= 450 ? 6 : \\ ( b ) >= 400 ? 7 : \\ ( b ) >= 350 ? 8 : \\ ( b ) >= 300 ? 9 : \\ ( b ) >= 250 ? 12 : \\ ( b ) >= 200 ? 15 : \\ ( b ) >= 150 ? 18 : \\ 27 ) # define BN_num_bytes ( a ) ( ( BN_num_bits ( a ) + 7 ) / 8 ) # define BN_abs_is_word ( a , w ) ( ( ( ( a ) -> top == 1 ) && ( ( a ) -> d [ 0 ] == ( BN_ULONG ) ( w ) ) ) || \\ ( ( ( w ) == 0 ) && ( ( a ) -> top == 0 ) ) ) # define BN_is_zero ( a ) ( ( a ) -> top == 0 ) # define BN_is_one ( a ) ( BN_abs_is_word ( ( a ) , 1 ) && ! ( a ) -> neg ) # define BN_is_word ( a , w ) ( BN_abs_is_word ( ( a ) , ( w ) ) && ( ! ( w ) || ! ( a ) -> neg ) ) # define BN_is_odd ( a ) ( ( ( a ) -> top > 0 ) && ( ( a ) -> d [ 0 ] & 1 ) ) # define BN_one ( a ) ( BN_set_word ( ( a ) , 1 ) ) # define BN_zero_ex ( a ) \\ do {\n \\ BIGNUM * _tmp_bn = ( a ) ;\n \\ _tmp_bn -> top = 0 ;\n \\ _tmp_bn -> neg = 0 ;\n \\ }\n while ( 0 ) # ifdef OPENSSL_NO_DEPRECATED # define BN_zero ( a ) BN_zero_ex ( a ) # else # define BN_zero ( a ) ( BN_set_word ( ( a ) , 0 ) ) # endif const BIGNUM * BN_value_one ( void ) ;\n char * BN_options ( void ) ;\n BN_CTX * BN_CTX_new ( void ) ;\n # ifndef OPENSSL_NO_DEPRECATED void BN_CTX_init ( BN_CTX * c ) ;\n # endif void BN_CTX_free ( BN_CTX * c ) ;\n void BN_CTX_start ( BN_CTX * ctx ) ;\n BIGNUM * BN_CTX_get ( BN_CTX * ctx ) ;\n void BN_CTX_end ( BN_CTX * ctx ) ;\n int BN_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_pseudo_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_pseudo_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_num_bits ( const BIGNUM * a ) ;\n int BN_num_bits_word ( BN_ULONG l ) ;\n BIGNUM * BN_new ( void ) ;\n void BN_init ( BIGNUM * ) ;\n void BN_clear_free ( BIGNUM * a ) ;\n BIGNUM * BN_copy ( BIGNUM * a , const BIGNUM * b ) ;\n void BN_swap ( BIGNUM * a , BIGNUM * b ) ;\n BIGNUM * BN_bin2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2bin ( const BIGNUM * a , unsigned char * to ) ;\n BIGNUM * BN_mpi2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2mpi ( const BIGNUM * a , unsigned char * to ) ;\n int BN_sub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_usub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_uadd ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n int BN_sqr ( BIGNUM * r , const BIGNUM * a , BN_CTX * ctx ) ;\n void BN_set_negative ( BIGNUM * b , int n ) ;\n # define BN_is_negative ( a ) ( ( a ) -> neg != 0 ) int BN_div ( BIGNUM * dv , BIGNUM * rem , const BIGNUM * m , const BIGNUM * d , BN_CTX * ctx ) ;\n # define BN_mod ( rem , m , d , ctx ) BN_div ( NULL , ( rem ) , ( m ) , ( d ) , ( ctx ) ) int BN_nnmod ( BIGNUM * r , const BIGNUM * m , const BIGNUM * d , BN_CTX * ctx ) ;\n int BN_mod_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_add_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m ) ;\n int BN_mod_sub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_sub_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m ) ;\n int BN_mod_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_sqr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift1 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift1_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m ) ;\n int BN_mod_lshift ( BIGNUM * r , const BIGNUM * a , int n , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift_quick ( BIGNUM * r , const BIGNUM * a , int n , const BIGNUM * m ) ;\n BN_ULONG BN_mod_word ( const BIGNUM * a , BN_ULONG w ) ;\n BN_ULONG BN_div_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_mul_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_add_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_sub_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_set_word ( BIGNUM * a , BN_ULONG w ) ;\n BN_ULONG BN_get_word ( const BIGNUM * a )"}
{"idx": 6542, "target": 0, "func": "static struct object_entry * dereference ( struct object_entry * oe , unsigned char sha1 [ 20 ] ) {\n unsigned long size ;\n char * buf = NULL ;\n if ( ! oe ) {\n enum object_type type = sha1_object_info ( sha1 , NULL ) ;\n if ( type < 0 ) die ( \"object not found: %s\" , sha1_to_hex ( sha1 ) ) ;\n oe = insert_object ( sha1 ) ;\n oe -> type = type ;\n oe -> pack_id = MAX_PACK_ID ;\n oe -> idx . offset = 1 ;\n }\n switch ( oe -> type ) {\n case OBJ_TREE : return oe ;\n case OBJ_COMMIT : case OBJ_TAG : break ;\n default : die ( \"Not a tree-ish: %s\" , command_buf . buf ) ;\n }\n if ( oe -> pack_id != MAX_PACK_ID ) {\n buf = gfi_unpack_entry ( oe , & size ) ;\n }\n else {\n enum object_type unused ;\n buf = read_sha1_file ( sha1 , & unused , & size ) ;\n }\n if ( ! buf ) die ( \"Can't load object %s\" , sha1_to_hex ( sha1 ) ) ;\n switch ( oe -> type ) {\n case OBJ_TAG : if ( size < 40 + strlen ( \"object \" ) || get_sha1_hex ( buf + strlen ( \"object \" ) , sha1 ) ) die ( \"Invalid SHA1 in tag: %s\" , command_buf . buf ) ;\n break ;\n case OBJ_COMMIT : if ( size < 40 + strlen ( \"tree \" ) || get_sha1_hex ( buf + strlen ( \"tree \" ) , sha1 ) ) die ( \"Invalid SHA1 in commit: %s\" , command_buf . buf ) ;\n }\n free ( buf ) ;\n return find_object ( sha1 ) ;\n }"}
{"idx": 6543, "target": 0, "func": "void fz_init_cached_color_converter ( fz_context * ctx , fz_color_converter * cc , fz_colorspace * is , fz_colorspace * ds , fz_colorspace * ss , const fz_color_params * params ) {\n int n = ss -> n ;\n fz_cached_color_converter * cached = fz_malloc_struct ( ctx , fz_cached_color_converter ) ;\n cc -> opaque = cached ;\n cc -> convert = fz_cached_color_convert ;\n cc -> ds = ds ? ds : fz_device_gray ( ctx ) ;\n cc -> ss = ss ;\n cc -> is = is ;\n fz_try ( ctx ) {\n fz_find_color_converter ( ctx , & cached -> base , is , cc -> ds , ss , params ) ;\n cached -> hash = fz_new_hash_table ( ctx , 256 , n * sizeof ( float ) , - 1 , fz_free ) ;\n }\n fz_catch ( ctx ) {\n fz_drop_color_converter ( ctx , & cached -> base ) ;\n fz_drop_hash_table ( ctx , cached -> hash ) ;\n fz_free ( ctx , cached ) ;\n cc -> opaque = NULL ;\n fz_rethrow ( ctx ) ;\n }\n }"}
{"idx": 6544, "target": 1, "func": "static int dissect_h225_H245Control_item ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 368 \"./asn1/h225/h225.cnf\" tvbuff_t * h245_tvb = NULL ;\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , NO_BOUND , NO_BOUND , FALSE , & h245_tvb ) ;\n next_tvb_add_handle ( & h245_list , h245_tvb , ( h225_h245_in_tree ) ? tree : NULL , h245dg_handle ) ;\n return offset ;\n }"}
{"idx": 6545, "target": 0, "func": "void pkg_deleteList ( CharList * l ) {\n CharList * tmp ;\n while ( l != NULL ) {\n uprv_free ( ( void * ) l -> str ) ;\n tmp = l ;\n l = l -> next ;\n uprv_free ( tmp ) ;\n }\n }"}
{"idx": 6546, "target": 0, "func": "int dtls1_query_mtu ( SSL * s ) {\n if ( s -> d1 -> link_mtu ) {\n s -> d1 -> mtu = s -> d1 -> link_mtu - BIO_dgram_get_mtu_overhead ( SSL_get_wbio ( s ) ) ;\n s -> d1 -> link_mtu = 0 ;\n }\n if ( s -> d1 -> mtu < dtls1_min_mtu ( s ) ) {\n if ( ! ( SSL_get_options ( s ) & SSL_OP_NO_QUERY_MTU ) ) {\n s -> d1 -> mtu = BIO_ctrl ( SSL_get_wbio ( s ) , BIO_CTRL_DGRAM_QUERY_MTU , 0 , NULL ) ;\n if ( s -> d1 -> mtu < dtls1_min_mtu ( s ) ) {\n s -> d1 -> mtu = dtls1_min_mtu ( s ) ;\n BIO_ctrl ( SSL_get_wbio ( s ) , BIO_CTRL_DGRAM_SET_MTU , s -> d1 -> mtu , NULL ) ;\n }\n }\n else return 0 ;\n }\n return 1 ;\n }"}
{"idx": 6547, "target": 0, "func": "static int dissect_h245_T_conferenceIDResponse ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_conferenceIDResponse , T_conferenceIDResponse_sequence ) ;\n return offset ;\n }"}
{"idx": 6548, "target": 1, "func": "static void tgq_idct_put_mb_dconly ( TgqContext * s , int mb_x , int mb_y , const int8_t * dc ) {\n int linesize = s -> frame . linesize [ 0 ] ;\n uint8_t * dest_y = s -> frame . data [ 0 ] + ( mb_y * 16 * linesize ) + mb_x * 16 ;\n uint8_t * dest_cb = s -> frame . data [ 1 ] + ( mb_y * 8 * s -> frame . linesize [ 1 ] ) + mb_x * 8 ;\n uint8_t * dest_cr = s -> frame . data [ 2 ] + ( mb_y * 8 * s -> frame . linesize [ 2 ] ) + mb_x * 8 ;\n tgq_dconly ( s , dest_y , linesize , dc [ 0 ] ) ;\n tgq_dconly ( s , dest_y + 8 , linesize , dc [ 1 ] ) ;\n tgq_dconly ( s , dest_y + 8 * linesize , linesize , dc [ 2 ] ) ;\n tgq_dconly ( s , dest_y + 8 * linesize + 8 , linesize , dc [ 3 ] ) ;\n if ( ! ( s -> avctx -> flags & CODEC_FLAG_GRAY ) ) {\n tgq_dconly ( s , dest_cb , s -> frame . linesize [ 1 ] , dc [ 4 ] ) ;\n tgq_dconly ( s , dest_cr , s -> frame . linesize [ 2 ] , dc [ 5 ] ) ;\n }\n }"}
{"idx": 6549, "target": 0, "func": "void gs_main_dump_stack ( gs_main_instance * minst , int code , ref * perror_object ) {\n i_ctx_t * i_ctx_p = minst -> i_ctx_p ;\n zflush ( i_ctx_p ) ;\n dmprintf1 ( minst -> heap , \"\\nUnexpected interpreter error %d.\\n\" , code ) ;\n if ( perror_object != 0 ) {\n dmputs ( minst -> heap , \"Error object: \" ) ;\n debug_print_ref ( minst -> heap , perror_object ) ;\n dmputc ( minst -> heap , '\\n' ) ;\n }\n debug_dump_stack ( minst -> heap , & o_stack , \"Operand stack\" ) ;\n debug_dump_stack ( minst -> heap , & e_stack , \"Execution stack\" ) ;\n debug_dump_stack ( minst -> heap , & d_stack , \"Dictionary stack\" ) ;\n }"}
{"idx": 6550, "target": 0, "func": "proto_item * proto_tree_add_int ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , gint32 value ) {\n proto_item * pi = NULL ;\n header_field_info * hfinfo ;\n CHECK_FOR_NULL_TREE ( tree ) ;\n TRY_TO_FAKE_THIS_ITEM ( tree , hfindex , hfinfo ) ;\n switch ( hfinfo -> type ) {\n case FT_INT8 : case FT_INT16 : case FT_INT24 : case FT_INT32 : pi = proto_tree_add_pi ( tree , hfinfo , tvb , start , & length ) ;\n proto_tree_set_int ( PNODE_FINFO ( pi ) , value ) ;\n break ;\n default : DISSECTOR_ASSERT_NOT_REACHED ( ) ;\n }\n return pi ;\n }"}
{"idx": 6551, "target": 0, "func": "static int mxpeg_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n MXpegDecodeContext * s = avctx -> priv_data ;\n MJpegDecodeContext * jpg = & s -> jpg ;\n const uint8_t * buf_end , * buf_ptr ;\n const uint8_t * unescaped_buf_ptr ;\n int unescaped_buf_size ;\n int start_code ;\n int ret ;\n buf_ptr = buf ;\n buf_end = buf + buf_size ;\n jpg -> got_picture = 0 ;\n s -> got_mxm_bitmask = 0 ;\n while ( buf_ptr < buf_end ) {\n start_code = ff_mjpeg_find_marker ( jpg , & buf_ptr , buf_end , & unescaped_buf_ptr , & unescaped_buf_size ) ;\n if ( start_code < 0 ) goto the_end ;\n {\n init_get_bits ( & jpg -> gb , unescaped_buf_ptr , unescaped_buf_size * 8 ) ;\n if ( start_code >= APP0 && start_code <= APP15 ) {\n mxpeg_decode_app ( s , unescaped_buf_ptr , unescaped_buf_size ) ;\n }\n switch ( start_code ) {\n case SOI : if ( jpg -> got_picture ) goto the_end ;\n break ;\n case EOI : goto the_end ;\n case DQT : ret = ff_mjpeg_decode_dqt ( jpg ) ;\n if ( ret < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"quantization table decode error\\n\" ) ;\n return ret ;\n }\n break ;\n case DHT : ret = ff_mjpeg_decode_dht ( jpg ) ;\n if ( ret < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"huffman table decode error\\n\" ) ;\n return ret ;\n }\n break ;\n case COM : ret = mxpeg_decode_com ( s , unescaped_buf_ptr , unescaped_buf_size ) ;\n if ( ret < 0 ) return ret ;\n break ;\n case SOF0 : s -> got_sof_data = 0 ;\n ret = ff_mjpeg_decode_sof ( jpg ) ;\n if ( ret < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"SOF data decode error\\n\" ) ;\n return ret ;\n }\n if ( jpg -> interlaced ) {\n av_log ( avctx , AV_LOG_ERROR , \"Interlaced mode not supported in MxPEG\\n\" ) ;\n return AVERROR ( EINVAL ) ;\n }\n s -> got_sof_data = 1 ;\n break ;\n case SOS : if ( ! s -> got_sof_data ) {\n av_log ( avctx , AV_LOG_WARNING , \"Can not process SOS without SOF data, skipping\\n\" ) ;\n break ;\n }\n if ( ! jpg -> got_picture ) {\n if ( jpg -> first_picture ) {\n av_log ( avctx , AV_LOG_WARNING , \"First picture has no SOF, skipping\\n\" ) ;\n break ;\n }\n if ( ! s -> got_mxm_bitmask ) {\n av_log ( avctx , AV_LOG_WARNING , \"Non-key frame has no MXM, skipping\\n\" ) ;\n break ;\n }\n av_frame_unref ( jpg -> picture_ptr ) ;\n if ( ff_get_buffer ( avctx , jpg -> picture_ptr , AV_GET_BUFFER_FLAG_REF ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return AVERROR ( ENOMEM ) ;\n }\n jpg -> picture_ptr -> pict_type = AV_PICTURE_TYPE_P ;\n jpg -> picture_ptr -> key_frame = 0 ;\n jpg -> got_picture = 1 ;\n }\n else {\n jpg -> picture_ptr -> pict_type = AV_PICTURE_TYPE_I ;\n jpg -> picture_ptr -> key_frame = 1 ;\n }\n if ( s -> got_mxm_bitmask ) {\n AVFrame * reference_ptr = & s -> picture [ s -> picture_index ^ 1 ] ;\n if ( mxpeg_check_dimensions ( s , jpg , reference_ptr ) < 0 ) break ;\n if ( ! reference_ptr -> data [ 0 ] && ff_get_buffer ( avctx , reference_ptr , AV_GET_BUFFER_FLAG_REF ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return AVERROR ( ENOMEM ) ;\n }\n ret = ff_mjpeg_decode_sos ( jpg , s -> mxm_bitmask , reference_ptr ) ;\n if ( ret < 0 && ( avctx -> err_recognition & AV_EF_EXPLODE ) ) return ret ;\n }\n else {\n ret = ff_mjpeg_decode_sos ( jpg , NULL , NULL ) ;\n if ( ret < 0 && ( avctx -> err_recognition & AV_EF_EXPLODE ) ) return ret ;\n }\n break ;\n }\n buf_ptr += ( get_bits_count ( & jpg -> gb ) + 7 ) >> 3 ;\n }\n }\n the_end : if ( jpg -> got_picture ) {\n int ret = av_frame_ref ( data , jpg -> picture_ptr ) ;\n if ( ret < 0 ) return ret ;\n * got_frame = 1 ;\n s -> picture_index ^= 1 ;\n jpg -> picture_ptr = & s -> picture [ s -> picture_index ] ;\n if ( ! s -> has_complete_frame ) {\n if ( ! s -> got_mxm_bitmask ) s -> has_complete_frame = 1 ;\n else * got_frame = 0 ;\n }\n }\n return buf_ptr - buf ;\n }"}
{"idx": 6552, "target": 0, "func": "static int mv_refs_rt ( const VP9_COMMON * cm , const MACROBLOCKD * xd , const TileInfo * const tile , MODE_INFO * mi , MV_REFERENCE_FRAME ref_frame , int_mv * mv_ref_list , int mi_row , int mi_col ) {\n const int * ref_sign_bias = cm -> ref_frame_sign_bias ;\n int i , refmv_count = 0 ;\n const POSITION * const mv_ref_search = mv_ref_blocks [ mi -> mbmi . sb_type ] ;\n int different_ref_found = 0 ;\n int context_counter = 0 ;\n int const_motion = 0 ;\n vpx_memset ( mv_ref_list , 0 , sizeof ( * mv_ref_list ) * MAX_MV_REF_CANDIDATES ) ;\n for ( i = 0 ;\n i < 2 ;\n ++ i ) {\n const POSITION * const mv_ref = & mv_ref_search [ i ] ;\n if ( is_inside ( tile , mi_col , mi_row , cm -> mi_rows , mv_ref ) ) {\n const MODE_INFO * const candidate_mi = xd -> mi [ mv_ref -> col + mv_ref -> row * xd -> mi_stride ] . src_mi ;\n const MB_MODE_INFO * const candidate = & candidate_mi -> mbmi ;\n context_counter += mode_2_counter [ candidate -> mode ] ;\n different_ref_found = 1 ;\n if ( candidate -> ref_frame [ 0 ] == ref_frame ) ADD_MV_REF_LIST ( get_sub_block_mv ( candidate_mi , 0 , mv_ref -> col , - 1 ) ) ;\n }\n }\n const_motion = 1 ;\n for ( ;\n i < MVREF_NEIGHBOURS && ! refmv_count ;\n ++ i ) {\n const POSITION * const mv_ref = & mv_ref_search [ i ] ;\n if ( is_inside ( tile , mi_col , mi_row , cm -> mi_rows , mv_ref ) ) {\n const MB_MODE_INFO * const candidate = & xd -> mi [ mv_ref -> col + mv_ref -> row * xd -> mi_stride ] . src_mi -> mbmi ;\n different_ref_found = 1 ;\n if ( candidate -> ref_frame [ 0 ] == ref_frame ) ADD_MV_REF_LIST ( candidate -> mv [ 0 ] ) ;\n }\n }\n if ( different_ref_found && ! refmv_count ) {\n for ( i = 0 ;\n i < MVREF_NEIGHBOURS ;\n ++ i ) {\n const POSITION * mv_ref = & mv_ref_search [ i ] ;\n if ( is_inside ( tile , mi_col , mi_row , cm -> mi_rows , mv_ref ) ) {\n const MB_MODE_INFO * const candidate = & xd -> mi [ mv_ref -> col + mv_ref -> row * xd -> mi_stride ] . src_mi -> mbmi ;\n IF_DIFF_REF_FRAME_ADD_MV ( candidate ) ;\n }\n }\n }\n Done : mi -> mbmi . mode_context [ ref_frame ] = counter_to_context [ context_counter ] ;\n for ( i = 0 ;\n i < MAX_MV_REF_CANDIDATES ;\n ++ i ) clamp_mv_ref ( & mv_ref_list [ i ] . as_mv , xd ) ;\n return const_motion ;\n }"}
{"idx": 6553, "target": 0, "func": "static void ImportGrayAlphaQuantum ( const Image * image , QuantumInfo * quantum_info , const MagickSizeType number_pixels , const unsigned char * magick_restrict p , Quantum * magick_restrict q , ExceptionInfo * exception ) {\n QuantumAny range ;\n register ssize_t x ;\n ssize_t bit ;\n unsigned int pixel ;\n assert ( image != ( Image * ) NULL ) ;\n assert ( image -> signature == MagickCoreSignature ) ;\n switch ( quantum_info -> depth ) {\n case 1 : {\n register unsigned char pixel ;\n bit = 0 ;\n for ( x = ( ( ssize_t ) number_pixels - 3 ) ;\n x > 0 ;\n x -= 4 ) {\n for ( bit = 0 ;\n bit < 8 ;\n bit += 2 ) {\n pixel = ( unsigned char ) ( ( ( * p ) & ( 1 << ( 7 - bit ) ) ) != 0 ? 0x00 : 0x01 ) ;\n SetPixelGray ( image , ( Quantum ) ( pixel == 0 ? 0 : QuantumRange ) , q ) ;\n SetPixelAlpha ( image , ( ( * p ) & ( 1UL << ( unsigned char ) ( 6 - bit ) ) ) == 0 ? TransparentAlpha : OpaqueAlpha , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n p ++ ;\n }\n if ( ( number_pixels % 4 ) != 0 ) for ( bit = 3 ;\n bit >= ( ssize_t ) ( 4 - ( number_pixels % 4 ) ) ;\n bit -= 2 ) {\n pixel = ( unsigned char ) ( ( ( * p ) & ( 1 << ( 7 - bit ) ) ) != 0 ? 0x00 : 0x01 ) ;\n SetPixelGray ( image , ( Quantum ) ( pixel != 0 ? 0 : QuantumRange ) , q ) ;\n SetPixelAlpha ( image , ( ( * p ) & ( 1UL << ( unsigned char ) ( 6 - bit ) ) ) == 0 ? TransparentAlpha : OpaqueAlpha , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n if ( bit != 0 ) p ++ ;\n break ;\n }\n case 4 : {\n register unsigned char pixel ;\n range = GetQuantumRange ( quantum_info -> depth ) ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n pixel = ( unsigned char ) ( ( * p >> 4 ) & 0xf ) ;\n SetPixelGray ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n pixel = ( unsigned char ) ( ( * p ) & 0xf ) ;\n SetPixelAlpha ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p ++ ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 8 : {\n unsigned char pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelGray ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelAlpha ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 10 : {\n range = GetQuantumRange ( quantum_info -> depth ) ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelGray ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelAlpha ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 12 : {\n range = GetQuantumRange ( quantum_info -> depth ) ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelGray ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelAlpha ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 16 : {\n unsigned short pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGray ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelAlpha ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGray ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelAlpha ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 32 : {\n unsigned int pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n float pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelGray ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelAlpha ( image , ClampToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGray ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelAlpha ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 64 : {\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n double pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelGray ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelAlpha ( image , ClampToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n default : {\n range = GetQuantumRange ( quantum_info -> depth ) ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelGray ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelAlpha ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n }"}
{"idx": 6554, "target": 0, "func": "int qemuMonitorJSONGetCPUInfo ( qemuMonitorPtr mon , int * * pids ) {\n int ret ;\n virJSONValuePtr cmd = qemuMonitorJSONMakeCommand ( \"query-cpus\" , NULL ) ;\n virJSONValuePtr reply = NULL ;\n * pids = NULL ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n if ( ret == 0 ) ret = qemuMonitorJSONExtractCPUInfo ( reply , pids ) ;\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 6555, "target": 0, "func": "static pid_t name2pid ( char * name ) {\n pid_t pid = - 1 ;\n int lokke ;\n int num_procs = 0 ;\n struct das_proclist * proclist = get_proclist ( & num_procs ) ;\n for ( lokke = 0 ;\n lokke < num_procs ;\n lokke ++ ) {\n glibtop_proc_state state ;\n glibtop_get_proc_state ( & state , proclist [ lokke ] . pid ) ;\n if ( ! strcmp ( state . cmd , name ) ) {\n pid = proclist [ lokke ] . pid ;\n break ;\n }\n }\n free ( proclist ) ;\n return pid ;\n }"}
{"idx": 6556, "target": 0, "func": "static int dissect_h245_T_suspendResume ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_suspendResume , T_suspendResume_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 6557, "target": 0, "func": "static int dissect_h245_SEQUENCE_SIZE_1_256_OF_RTPPayloadType ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h245_SEQUENCE_SIZE_1_256_OF_RTPPayloadType , SEQUENCE_SIZE_1_256_OF_RTPPayloadType_sequence_of , 1 , 256 , FALSE ) ;\n return offset ;\n }"}
{"idx": 6558, "target": 0, "func": "static int dissect_h225_UnregistrationReject ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_UnregistrationReject , UnregistrationReject_sequence ) ;\n return offset ;\n }"}
{"idx": 6559, "target": 0, "func": "static void __attribute__ ( ( __format__ ( __printf__ , 1 , 0 ) ) ) vwarning ( const char * fmt , va_list ap ) {\n int serrno = errno ;\n ( void ) fprintf ( stderr , \"%s: \" , progname ) ;\n vfprintf ( stderr , fmt , ap ) ;\n ( void ) fprintf ( stderr , \": %s\" , strerror ( serrno ) ) ;\n }"}
{"idx": 6560, "target": 1, "func": "int ssl3_read_bytes ( SSL * s , int type , int * recvd_type , unsigned char * buf , int len , int peek ) {\n int al , i , j , ret ;\n unsigned int n , curr_rec , num_recs , read_bytes ;\n SSL3_RECORD * rr ;\n SSL3_BUFFER * rbuf ;\n void ( * cb ) ( const SSL * ssl , int type2 , int val ) = NULL ;\n rbuf = & s -> rlayer . rbuf ;\n if ( ! SSL3_BUFFER_is_initialised ( rbuf ) ) {\n if ( ! ssl3_setup_read_buffer ( s ) ) return ( - 1 ) ;\n }\n if ( ( type && ( type != SSL3_RT_APPLICATION_DATA ) && ( type != SSL3_RT_HANDSHAKE ) ) || ( peek && ( type != SSL3_RT_APPLICATION_DATA ) ) ) {\n SSLerr ( SSL_F_SSL3_READ_BYTES , ERR_R_INTERNAL_ERROR ) ;\n return - 1 ;\n }\n if ( ( type == SSL3_RT_HANDSHAKE ) && ( s -> rlayer . handshake_fragment_len > 0 ) ) {\n unsigned char * src = s -> rlayer . handshake_fragment ;\n unsigned char * dst = buf ;\n unsigned int k ;\n n = 0 ;\n while ( ( len > 0 ) && ( s -> rlayer . handshake_fragment_len > 0 ) ) {\n * dst ++ = * src ++ ;\n len -- ;\n s -> rlayer . handshake_fragment_len -- ;\n n ++ ;\n }\n for ( k = 0 ;\n k < s -> rlayer . handshake_fragment_len ;\n k ++ ) s -> rlayer . handshake_fragment [ k ] = * src ++ ;\n if ( recvd_type != NULL ) * recvd_type = SSL3_RT_HANDSHAKE ;\n return n ;\n }\n if ( ! ossl_statem_get_in_handshake ( s ) && SSL_in_init ( s ) ) {\n i = s -> handshake_func ( s ) ;\n if ( i < 0 ) return ( i ) ;\n if ( i == 0 ) {\n SSLerr ( SSL_F_SSL3_READ_BYTES , SSL_R_SSL_HANDSHAKE_FAILURE ) ;\n return ( - 1 ) ;\n }\n }\n start : s -> rwstate = SSL_NOTHING ;\n rr = s -> rlayer . rrec ;\n num_recs = RECORD_LAYER_get_numrpipes ( & s -> rlayer ) ;\n do {\n if ( num_recs == 0 ) {\n ret = ssl3_get_record ( s ) ;\n if ( ret <= 0 ) return ( ret ) ;\n num_recs = RECORD_LAYER_get_numrpipes ( & s -> rlayer ) ;\n if ( num_recs == 0 ) {\n al = SSL_AD_INTERNAL_ERROR ;\n SSLerr ( SSL_F_SSL3_READ_BYTES , ERR_R_INTERNAL_ERROR ) ;\n goto f_err ;\n }\n }\n for ( curr_rec = 0 ;\n curr_rec < num_recs && SSL3_RECORD_is_read ( & rr [ curr_rec ] ) ;\n curr_rec ++ ) ;\n if ( curr_rec == num_recs ) {\n RECORD_LAYER_set_numrpipes ( & s -> rlayer , 0 ) ;\n num_recs = 0 ;\n curr_rec = 0 ;\n }\n }\n while ( num_recs == 0 ) ;\n rr = & rr [ curr_rec ] ;\n if ( s -> s3 -> change_cipher_spec && ( SSL3_RECORD_get_type ( rr ) != SSL3_RT_HANDSHAKE ) ) {\n al = SSL_AD_UNEXPECTED_MESSAGE ;\n SSLerr ( SSL_F_SSL3_READ_BYTES , SSL_R_DATA_BETWEEN_CCS_AND_FINISHED ) ;\n goto f_err ;\n }\n if ( s -> shutdown & SSL_RECEIVED_SHUTDOWN ) {\n SSL3_RECORD_set_length ( rr , 0 ) ;\n s -> rwstate = SSL_NOTHING ;\n return ( 0 ) ;\n }\n if ( type == SSL3_RECORD_get_type ( rr ) || ( SSL3_RECORD_get_type ( rr ) == SSL3_RT_CHANGE_CIPHER_SPEC && type == SSL3_RT_HANDSHAKE && recvd_type != NULL ) ) {\n if ( SSL_in_init ( s ) && ( type == SSL3_RT_APPLICATION_DATA ) && ( s -> enc_read_ctx == NULL ) ) {\n al = SSL_AD_UNEXPECTED_MESSAGE ;\n SSLerr ( SSL_F_SSL3_READ_BYTES , SSL_R_APP_DATA_IN_HANDSHAKE ) ;\n goto f_err ;\n }\n if ( type == SSL3_RT_HANDSHAKE && SSL3_RECORD_get_type ( rr ) == SSL3_RT_CHANGE_CIPHER_SPEC && s -> rlayer . handshake_fragment_len > 0 ) {\n al = SSL_AD_UNEXPECTED_MESSAGE ;\n SSLerr ( SSL_F_SSL3_READ_BYTES , SSL_R_CCS_RECEIVED_EARLY ) ;\n goto f_err ;\n }\n if ( recvd_type != NULL ) * recvd_type = SSL3_RECORD_get_type ( rr ) ;\n if ( len <= 0 ) return ( len ) ;\n read_bytes = 0 ;\n do {\n if ( ( unsigned int ) len - read_bytes > SSL3_RECORD_get_length ( rr ) ) n = SSL3_RECORD_get_length ( rr ) ;\n else n = ( unsigned int ) len - read_bytes ;\n memcpy ( buf , & ( rr -> data [ rr -> off ] ) , n ) ;\n buf += n ;\n if ( ! peek ) {\n SSL3_RECORD_sub_length ( rr , n ) ;\n SSL3_RECORD_add_off ( rr , n ) ;\n if ( SSL3_RECORD_get_length ( rr ) == 0 ) {\n s -> rlayer . rstate = SSL_ST_READ_HEADER ;\n SSL3_RECORD_set_off ( rr , 0 ) ;\n SSL3_RECORD_set_read ( rr ) ;\n }\n }\n if ( SSL3_RECORD_get_length ( rr ) == 0 || ( peek && n == SSL3_RECORD_get_length ( rr ) ) ) {\n curr_rec ++ ;\n rr ++ ;\n }\n read_bytes += n ;\n }\n while ( type == SSL3_RT_APPLICATION_DATA && curr_rec < num_recs && read_bytes < ( unsigned int ) len ) ;\n if ( read_bytes == 0 ) {\n goto start ;\n }\n if ( ! peek && curr_rec == num_recs && ( s -> mode & SSL_MODE_RELEASE_BUFFERS ) && SSL3_BUFFER_get_left ( rbuf ) == 0 ) ssl3_release_read_buffer ( s ) ;\n return read_bytes ;\n }\n if ( rr -> rec_version == SSL2_VERSION ) {\n al = SSL_AD_INTERNAL_ERROR ;\n SSLerr ( SSL_F_SSL3_READ_BYTES , ERR_R_INTERNAL_ERROR ) ;\n goto f_err ;\n }\n if ( s -> method -> version == TLS_ANY_VERSION && ( s -> server || rr -> type != SSL3_RT_ALERT ) ) {\n s -> version = rr -> rec_version ;\n al = SSL_AD_UNEXPECTED_MESSAGE ;\n SSLerr ( SSL_F_SSL3_READ_BYTES , SSL_R_UNEXPECTED_MESSAGE ) ;\n goto f_err ;\n }\n {\n unsigned int dest_maxlen = 0 ;\n unsigned char * dest = NULL ;\n unsigned int * dest_len = NULL ;\n if ( SSL3_RECORD_get_type ( rr ) == SSL3_RT_HANDSHAKE ) {\n dest_maxlen = sizeof s -> rlayer . handshake_fragment ;\n dest = s -> rlayer . handshake_fragment ;\n dest_len = & s -> rlayer . handshake_fragment_len ;\n }\n else if ( SSL3_RECORD_get_type ( rr ) == SSL3_RT_ALERT ) {\n dest_maxlen = sizeof s -> rlayer . alert_fragment ;\n dest = s -> rlayer . alert_fragment ;\n dest_len = & s -> rlayer . alert_fragment_len ;\n }\n if ( dest_maxlen > 0 ) {\n n = dest_maxlen - * dest_len ;\n if ( SSL3_RECORD_get_length ( rr ) < n ) n = SSL3_RECORD_get_length ( rr ) ;\n while ( n -- > 0 ) {\n dest [ ( * dest_len ) ++ ] = SSL3_RECORD_get_data ( rr ) [ SSL3_RECORD_get_off ( rr ) ] ;\n SSL3_RECORD_add_off ( rr , 1 ) ;\n SSL3_RECORD_add_length ( rr , - 1 ) ;\n }\n if ( * dest_len < dest_maxlen ) {\n SSL3_RECORD_set_read ( rr ) ;\n goto start ;\n }\n }\n }\n if ( ( ! s -> server ) && ( s -> rlayer . handshake_fragment_len >= 4 ) && ( s -> rlayer . handshake_fragment [ 0 ] == SSL3_MT_HELLO_REQUEST ) && ( s -> session != NULL ) && ( s -> session -> cipher != NULL ) ) {\n s -> rlayer . handshake_fragment_len = 0 ;\n if ( ( s -> rlayer . handshake_fragment [ 1 ] != 0 ) || ( s -> rlayer . handshake_fragment [ 2 ] != 0 ) || ( s -> rlayer . handshake_fragment [ 3 ] != 0 ) ) {\n al = SSL_AD_DECODE_ERROR ;\n SSLerr ( SSL_F_SSL3_READ_BYTES , SSL_R_BAD_HELLO_REQUEST ) ;\n goto f_err ;\n }\n if ( s -> msg_callback ) s -> msg_callback ( 0 , s -> version , SSL3_RT_HANDSHAKE , s -> rlayer . handshake_fragment , 4 , s , s -> msg_callback_arg ) ;\n if ( SSL_is_init_finished ( s ) && ! ( s -> s3 -> flags & SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS ) && ! s -> s3 -> renegotiate ) {\n ssl3_renegotiate ( s ) ;\n if ( ssl3_renegotiate_check ( s ) ) {\n i = s -> handshake_func ( s ) ;\n if ( i < 0 ) return ( i ) ;\n if ( i == 0 ) {\n SSLerr ( SSL_F_SSL3_READ_BYTES , SSL_R_SSL_HANDSHAKE_FAILURE ) ;\n return ( - 1 ) ;\n }\n if ( ! ( s -> mode & SSL_MODE_AUTO_RETRY ) ) {\n if ( SSL3_BUFFER_get_left ( rbuf ) == 0 ) {\n BIO * bio ;\n s -> rwstate = SSL_READING ;\n bio = SSL_get_rbio ( s ) ;\n BIO_clear_retry_flags ( bio ) ;\n BIO_set_retry_read ( bio ) ;\n return ( - 1 ) ;\n }\n }\n }\n }\n goto start ;\n }\n if ( s -> server && SSL_is_init_finished ( s ) && ! s -> s3 -> send_connection_binding && ( s -> version > SSL3_VERSION ) && ( s -> rlayer . handshake_fragment_len >= 4 ) && ( s -> rlayer . handshake_fragment [ 0 ] == SSL3_MT_CLIENT_HELLO ) && ( s -> session != NULL ) && ( s -> session -> cipher != NULL ) && ! ( s -> ctx -> options & SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION ) ) {\n SSL3_RECORD_set_length ( rr , 0 ) ;\n SSL3_RECORD_set_read ( rr ) ;\n ssl3_send_alert ( s , SSL3_AL_WARNING , SSL_AD_NO_RENEGOTIATION ) ;\n goto start ;\n }\n if ( s -> rlayer . alert_fragment_len >= 2 ) {\n int alert_level = s -> rlayer . alert_fragment [ 0 ] ;\n int alert_descr = s -> rlayer . alert_fragment [ 1 ] ;\n s -> rlayer . alert_fragment_len = 0 ;\n if ( s -> msg_callback ) s -> msg_callback ( 0 , s -> version , SSL3_RT_ALERT , s -> rlayer . alert_fragment , 2 , s , s -> msg_callback_arg ) ;\n if ( s -> info_callback != NULL ) cb = s -> info_callback ;\n else if ( s -> ctx -> info_callback != NULL ) cb = s -> ctx -> info_callback ;\n if ( cb != NULL ) {\n j = ( alert_level << 8 ) | alert_descr ;\n cb ( s , SSL_CB_READ_ALERT , j ) ;\n }\n if ( alert_level == SSL3_AL_WARNING ) {\n s -> s3 -> warn_alert = alert_descr ;\n SSL3_RECORD_set_read ( rr ) ;\n if ( alert_descr == SSL_AD_CLOSE_NOTIFY ) {\n s -> shutdown |= SSL_RECEIVED_SHUTDOWN ;\n return ( 0 ) ;\n }\n else if ( alert_descr == SSL_AD_NO_RENEGOTIATION ) {\n al = SSL_AD_HANDSHAKE_FAILURE ;\n SSLerr ( SSL_F_SSL3_READ_BYTES , SSL_R_NO_RENEGOTIATION ) ;\n goto f_err ;\n }\n # ifdef SSL_AD_MISSING_SRP_USERNAME else if ( alert_descr == SSL_AD_MISSING_SRP_USERNAME ) return ( 0 ) ;\n # endif }\n else if ( alert_level == SSL3_AL_FATAL ) {\n char tmp [ 16 ] ;\n s -> rwstate = SSL_NOTHING ;\n s -> s3 -> fatal_alert = alert_descr ;\n SSLerr ( SSL_F_SSL3_READ_BYTES , SSL_AD_REASON_OFFSET + alert_descr ) ;\n BIO_snprintf ( tmp , sizeof tmp , \"%d\" , alert_descr ) ;\n ERR_add_error_data ( 2 , \"SSL alert number \" , tmp ) ;\n s -> shutdown |= SSL_RECEIVED_SHUTDOWN ;\n SSL3_RECORD_set_read ( rr ) ;\n SSL_CTX_remove_session ( s -> session_ctx , s -> session ) ;\n return ( 0 ) ;\n }\n else {\n al = SSL_AD_ILLEGAL_PARAMETER ;\n SSLerr ( SSL_F_SSL3_READ_BYTES , SSL_R_UNKNOWN_ALERT_TYPE ) ;\n goto f_err ;\n }\n goto start ;\n }\n if ( s -> shutdown & SSL_SENT_SHUTDOWN ) {\n s -> rwstate = SSL_NOTHING ;\n SSL3_RECORD_set_length ( rr , 0 ) ;\n SSL3_RECORD_set_read ( rr ) ;\n return ( 0 ) ;\n }\n if ( SSL3_RECORD_get_type ( rr ) == SSL3_RT_CHANGE_CIPHER_SPEC ) {\n al = SSL_AD_UNEXPECTED_MESSAGE ;\n SSLerr ( SSL_F_SSL3_READ_BYTES , SSL_R_CCS_RECEIVED_EARLY ) ;\n goto f_err ;\n }\n if ( ( s -> rlayer . handshake_fragment_len >= 4 ) && ! ossl_statem_get_in_handshake ( s ) ) {\n if ( SSL_is_init_finished ( s ) && ! ( s -> s3 -> flags & SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS ) ) {\n ossl_statem_set_in_init ( s , 1 ) ;\n s -> renegotiate = 1 ;\n s -> new_session = 1 ;\n }\n i = s -> handshake_func ( s ) ;\n if ( i < 0 ) return ( i ) ;\n if ( i == 0 ) {\n SSLerr ( SSL_F_SSL3_READ_BYTES , SSL_R_SSL_HANDSHAKE_FAILURE ) ;\n return ( - 1 ) ;\n }\n if ( ! ( s -> mode & SSL_MODE_AUTO_RETRY ) ) {\n if ( SSL3_BUFFER_get_left ( rbuf ) == 0 ) {\n BIO * bio ;\n s -> rwstate = SSL_READING ;\n bio = SSL_get_rbio ( s ) ;\n BIO_clear_retry_flags ( bio ) ;\n BIO_set_retry_read ( bio ) ;\n return ( - 1 ) ;\n }\n }\n goto start ;\n }\n switch ( SSL3_RECORD_get_type ( rr ) ) {\n default : if ( s -> version >= TLS1_VERSION && s -> version <= TLS1_1_VERSION ) {\n SSL3_RECORD_set_length ( rr , 0 ) ;\n SSL3_RECORD_set_read ( rr ) ;\n goto start ;\n }\n al = SSL_AD_UNEXPECTED_MESSAGE ;\n SSLerr ( SSL_F_SSL3_READ_BYTES , SSL_R_UNEXPECTED_RECORD ) ;\n goto f_err ;\n case SSL3_RT_CHANGE_CIPHER_SPEC : case SSL3_RT_ALERT : case SSL3_RT_HANDSHAKE : al = SSL_AD_UNEXPECTED_MESSAGE ;\n SSLerr ( SSL_F_SSL3_READ_BYTES , ERR_R_INTERNAL_ERROR ) ;\n goto f_err ;\n case SSL3_RT_APPLICATION_DATA : if ( ossl_statem_app_data_allowed ( s ) ) {\n s -> s3 -> in_read_app_data = 2 ;\n return ( - 1 ) ;\n }\n else {\n al = SSL_AD_UNEXPECTED_MESSAGE ;\n SSLerr ( SSL_F_SSL3_READ_BYTES , SSL_R_UNEXPECTED_RECORD ) ;\n goto f_err ;\n }\n }\n f_err : ssl3_send_alert ( s , SSL3_AL_FATAL , al ) ;\n return ( - 1 ) ;\n }"}
{"idx": 6561, "target": 0, "func": "void kadmin_unlock ( int argc , char * argv [ ] ) {\n kadm5_ret_t retval ;\n if ( ! locked ) return ;\n retval = kadm5_unlock ( handle ) ;\n if ( retval ) {\n com_err ( \"unlock\" , retval , \"\" ) ;\n return ;\n }\n locked = 0 ;\n }"}
{"idx": 6562, "target": 0, "func": "static int ipvideo_decode_block_opcode_0xC ( IpvideoContext * s , AVFrame * frame ) {\n int x , y ;\n for ( y = 0 ;\n y < 8 ;\n y += 2 ) {\n for ( x = 0 ;\n x < 8 ;\n x += 2 ) {\n s -> pixel_ptr [ x ] = s -> pixel_ptr [ x + 1 ] = s -> pixel_ptr [ x + s -> stride ] = s -> pixel_ptr [ x + 1 + s -> stride ] = bytestream2_get_byte ( & s -> stream_ptr ) ;\n }\n s -> pixel_ptr += s -> stride * 2 ;\n }\n return 0 ;\n }"}
{"idx": 6563, "target": 0, "func": "static UBool isPNJBindiTippi ( UChar32 c ) {\n if ( c < 0xa00 || 0xa50 <= c ) {\n return FALSE ;\n }\n else {\n return ( UBool ) ( pnjMap [ c - 0xa00 ] >> 1 ) ;\n }\n }"}
{"idx": 6564, "target": 0, "func": "void jpc_ft_fwdlift_row ( jpc_fix_t * a , int numcols , int parity ) {\n register jpc_fix_t * lptr ;\n register jpc_fix_t * hptr ;\n register int n ;\n int llen ;\n llen = ( numcols + 1 - parity ) >> 1 ;\n if ( numcols > 1 ) {\n lptr = & a [ 0 ] ;\n hptr = & a [ llen ] ;\n if ( parity ) {\n hptr [ 0 ] -= lptr [ 0 ] ;\n ++ hptr ;\n }\n n = numcols - llen - parity - ( parity == ( numcols & 1 ) ) ;\n while ( n -- > 0 ) {\n hptr [ 0 ] -= jpc_fix_asr ( lptr [ 0 ] + lptr [ 1 ] , 1 ) ;\n ++ hptr ;\n ++ lptr ;\n }\n if ( parity == ( numcols & 1 ) ) {\n hptr [ 0 ] -= lptr [ 0 ] ;\n }\n lptr = & a [ 0 ] ;\n hptr = & a [ llen ] ;\n if ( ! parity ) {\n lptr [ 0 ] += jpc_fix_asr ( hptr [ 0 ] + 1 , 1 ) ;\n ++ lptr ;\n }\n n = llen - ( ! parity ) - ( parity != ( numcols & 1 ) ) ;\n while ( n -- > 0 ) {\n lptr [ 0 ] += jpc_fix_asr ( hptr [ 0 ] + hptr [ 1 ] + 2 , 2 ) ;\n ++ lptr ;\n ++ hptr ;\n }\n if ( parity != ( numcols & 1 ) ) {\n lptr [ 0 ] += jpc_fix_asr ( hptr [ 0 ] + 1 , 1 ) ;\n }\n }\n else {\n if ( parity ) {\n lptr = & a [ 0 ] ;\n lptr [ 0 ] = jpc_fix_asl ( lptr [ 0 ] , 1 ) ;\n }\n }\n }"}
{"idx": 6565, "target": 0, "func": "void xmlThrDefSetGenericErrorFunc ( void * ctx , xmlGenericErrorFunc handler ) {\n xmlMutexLock ( xmlThrDefMutex ) ;\n xmlGenericErrorContextThrDef = ctx ;\n if ( handler != NULL ) xmlGenericErrorThrDef = handler ;\n else xmlGenericErrorThrDef = xmlGenericErrorDefaultFunc ;\n xmlMutexUnlock ( xmlThrDefMutex ) ;\n }"}
{"idx": 6566, "target": 0, "func": "void nautilus_directory_force_reload_internal ( NautilusDirectory * directory , NautilusFileAttributes file_attributes ) {\n nautilus_profile_start ( NULL ) ;\n nautilus_directory_invalidate_file_attributes ( directory , file_attributes ) ;\n file_list_cancel ( directory ) ;\n directory -> details -> directory_loaded = FALSE ;\n nautilus_directory_invalidate_count_and_mime_list ( directory ) ;\n add_all_files_to_work_queue ( directory ) ;\n nautilus_directory_async_state_changed ( directory ) ;\n nautilus_profile_end ( NULL ) ;\n }"}
{"idx": 6567, "target": 0, "func": "static void icc_base_conv_color ( fz_context * ctx , fz_color_converter * cc , float * dstv , const float * srcv ) {\n const fz_colorspace * srcs = cc -> ss ;\n float local_src_map [ FZ_MAX_COLORS ] ;\n float local_src_map2 [ FZ_MAX_COLORS ] ;\n float * src_map = local_src_map ;\n do {\n srcs -> to_ccs ( ctx , srcs , srcv , src_map ) ;\n srcs = srcs -> get_base ( srcs ) ;\n srcs -> clamp ( srcs , src_map , src_map ) ;\n srcv = src_map ;\n src_map = ( src_map == local_src_map ? local_src_map2 : local_src_map ) ;\n }\n while ( ! fz_colorspace_is_icc ( ctx , srcs ) && ! fz_colorspace_is_cal ( ctx , srcs ) ) ;\n icc_conv_color ( ctx , cc , dstv , srcv ) ;\n }"}
{"idx": 6568, "target": 0, "func": "static long srec_canonicalize_symtab ( bfd * abfd , asymbol * * alocation ) {\n bfd_size_type symcount = bfd_get_symcount ( abfd ) ;\n asymbol * csymbols ;\n unsigned int i ;\n csymbols = abfd -> tdata . srec_data -> csymbols ;\n if ( csymbols == NULL && symcount != 0 ) {\n asymbol * c ;\n struct srec_symbol * s ;\n csymbols = ( asymbol * ) bfd_alloc ( abfd , symcount * sizeof ( asymbol ) ) ;\n if ( csymbols == NULL ) return - 1 ;\n abfd -> tdata . srec_data -> csymbols = csymbols ;\n for ( s = abfd -> tdata . srec_data -> symbols , c = csymbols ;\n s != NULL ;\n s = s -> next , ++ c ) {\n c -> the_bfd = abfd ;\n c -> name = s -> name ;\n c -> value = s -> val ;\n c -> flags = BSF_GLOBAL ;\n c -> section = bfd_abs_section_ptr ;\n c -> udata . p = NULL ;\n }\n }\n for ( i = 0 ;\n i < symcount ;\n i ++ ) * alocation ++ = csymbols ++ ;\n * alocation = NULL ;\n return symcount ;\n }"}
{"idx": 6569, "target": 0, "func": "void mime_header_encoder_delete ( struct mime_header_encoder_data * pe ) {\n if ( pe ) {\n mbfl_convert_filter_delete ( pe -> conv1_filter ) ;\n mbfl_convert_filter_delete ( pe -> block_filter ) ;\n mbfl_convert_filter_delete ( pe -> conv2_filter ) ;\n mbfl_convert_filter_delete ( pe -> conv2_filter_backup ) ;\n mbfl_convert_filter_delete ( pe -> encod_filter ) ;\n mbfl_convert_filter_delete ( pe -> encod_filter_backup ) ;\n mbfl_memory_device_clear ( & pe -> outdev ) ;\n mbfl_memory_device_clear ( & pe -> tmpdev ) ;\n mbfl_free ( ( void * ) pe ) ;\n }\n }"}
{"idx": 6570, "target": 0, "func": "static inline void dpy_resize ( DisplayState * s , int w , int h ) {\n s -> dpy_resize ( s , w , h ) ;\n }"}
{"idx": 6571, "target": 0, "func": "static int raw_read_frame ( FILE * infile , uint8_t * * buffer , size_t * bytes_read , size_t * buffer_size ) {\n char raw_hdr [ RAW_FRAME_HDR_SZ ] ;\n size_t frame_size = 0 ;\n if ( fread ( raw_hdr , RAW_FRAME_HDR_SZ , 1 , infile ) != 1 ) {\n if ( ! feof ( infile ) ) warn ( \"Failed to read RAW frame size\\n\" ) ;\n }\n else {\n const size_t kCorruptFrameThreshold = 256 * 1024 * 1024 ;\n const size_t kFrameTooSmallThreshold = 256 * 1024 ;\n frame_size = mem_get_le32 ( raw_hdr ) ;\n if ( frame_size > kCorruptFrameThreshold ) {\n warn ( \"Read invalid frame size (%u)\\n\" , ( unsigned int ) frame_size ) ;\n frame_size = 0 ;\n }\n if ( frame_size < kFrameTooSmallThreshold ) {\n warn ( \"Warning: Read invalid frame size (%u) - not a raw file?\\n\" , ( unsigned int ) frame_size ) ;\n }\n if ( frame_size > * buffer_size ) {\n uint8_t * new_buf = realloc ( * buffer , 2 * frame_size ) ;\n if ( new_buf ) {\n * buffer = new_buf ;\n * buffer_size = 2 * frame_size ;\n }\n else {\n warn ( \"Failed to allocate compressed data buffer\\n\" ) ;\n frame_size = 0 ;\n }\n }\n }\n if ( ! feof ( infile ) ) {\n if ( fread ( * buffer , 1 , frame_size , infile ) != frame_size ) {\n warn ( \"Failed to read full frame\\n\" ) ;\n return 1 ;\n }\n * bytes_read = frame_size ;\n }\n return 0 ;\n }"}
{"idx": 6572, "target": 0, "func": "void mbfl_buffer_converter_reset ( mbfl_buffer_converter * convd ) {\n mbfl_memory_device_reset ( & convd -> device ) ;\n }"}
{"idx": 6573, "target": 0, "func": "static int selinux_file_permission ( struct file * file , int mask ) {\n struct inode * inode = file_inode ( file ) ;\n struct file_security_struct * fsec = file -> f_security ;\n struct inode_security_struct * isec ;\n u32 sid = current_sid ( ) ;\n if ( ! mask ) return 0 ;\n isec = inode_security ( inode ) ;\n if ( sid == fsec -> sid && fsec -> isid == isec -> sid && fsec -> pseqno == avc_policy_seqno ( ) ) return 0 ;\n return selinux_revalidate_file_permission ( file , mask ) ;\n }"}
{"idx": 6574, "target": 0, "func": "static PyObject * authGSSClientClean ( PyObject * self , PyObject * args ) {\n gss_client_state * state ;\n PyObject * pystate ;\n int result = 0 ;\n if ( ! PyArg_ParseTuple ( args , \"O\" , & pystate ) ) return NULL ;\n # if PY_MAJOR_VERSION >= 3 if ( ! PyCapsule_CheckExact ( pystate ) ) {\n # else if ( ! PyCObject_Check ( pystate ) ) {\n # endif PyErr_SetString ( PyExc_TypeError , \"Expected a context object\" ) ;\n return NULL ;\n }\n # if PY_MAJOR_VERSION >= 3 state = PyCapsule_GetPointer ( pystate , NULL ) ;\n # else state = ( gss_client_state * ) PyCObject_AsVoidPtr ( pystate ) ;\n # endif if ( state != NULL ) {\n result = authenticate_gss_client_clean ( state ) ;\n free ( state ) ;\n # if PY_MAJOR_VERSION >= 3 PyCapsule_SetPointer ( pystate , NULL ) ;\n # else PyCObject_SetVoidPtr ( pystate , NULL ) ;\n # endif }\n return Py_BuildValue ( \"i\" , result ) ;\n }"}
{"idx": 6575, "target": 0, "func": "static void test_fetch_seek ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND my_bind [ 3 ] ;\n MYSQL_ROW_OFFSET row ;\n int rc ;\n int32 c1 ;\n char c2 [ 11 ] , c3 [ 20 ] ;\n myheader ( \"test_fetch_seek\" ) ;\n rc = mysql_query ( mysql , \"drop table if exists t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t1(c1 int primary key auto_increment, c2 char(10), c3 timestamp)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t1(c2) values('venu'), ('mysql'), ('open'), ('source')\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"select * from t1\" ) ;\n check_stmt ( stmt ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 0 ] . buffer = ( void * ) & c1 ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 1 ] . buffer = ( void * ) c2 ;\n my_bind [ 1 ] . buffer_length = sizeof ( c2 ) ;\n my_bind [ 2 ] = my_bind [ 1 ] ;\n my_bind [ 2 ] . buffer = ( void * ) c3 ;\n my_bind [ 2 ] . buffer_length = sizeof ( c3 ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_store_result ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n row 0: %ld, %s, %s\" , ( long ) c1 , c2 , c3 ) ;\n row = mysql_stmt_row_tell ( stmt ) ;\n row = mysql_stmt_row_seek ( stmt , row ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n row 2: %ld, %s, %s\" , ( long ) c1 , c2 , c3 ) ;\n row = mysql_stmt_row_seek ( stmt , row ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n row 2: %ld, %s, %s\" , ( long ) c1 , c2 , c3 ) ;\n mysql_stmt_data_seek ( stmt , 0 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n row 0: %ld, %s, %s\" , ( long ) c1 , c2 , c3 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n mysql_stmt_close ( stmt ) ;\n myquery ( mysql_query ( mysql , \"drop table t1\" ) ) ;\n }"}
{"idx": 6576, "target": 0, "func": "static void init_dequantizer ( Vp3DecodeContext * s , int qpi ) {\n int ac_scale_factor = s -> coded_ac_scale_factor [ s -> qps [ qpi ] ] ;\n int dc_scale_factor = s -> coded_dc_scale_factor [ s -> qps [ qpi ] ] ;\n int i , plane , inter , qri , bmi , bmj , qistart ;\n for ( inter = 0 ;\n inter < 2 ;\n inter ++ ) {\n for ( plane = 0 ;\n plane < 3 ;\n plane ++ ) {\n int sum = 0 ;\n for ( qri = 0 ;\n qri < s -> qr_count [ inter ] [ plane ] ;\n qri ++ ) {\n sum += s -> qr_size [ inter ] [ plane ] [ qri ] ;\n if ( s -> qps [ qpi ] <= sum ) break ;\n }\n qistart = sum - s -> qr_size [ inter ] [ plane ] [ qri ] ;\n bmi = s -> qr_base [ inter ] [ plane ] [ qri ] ;\n bmj = s -> qr_base [ inter ] [ plane ] [ qri + 1 ] ;\n for ( i = 0 ;\n i < 64 ;\n i ++ ) {\n int coeff = ( 2 * ( sum - s -> qps [ qpi ] ) * s -> base_matrix [ bmi ] [ i ] - 2 * ( qistart - s -> qps [ qpi ] ) * s -> base_matrix [ bmj ] [ i ] + s -> qr_size [ inter ] [ plane ] [ qri ] ) / ( 2 * s -> qr_size [ inter ] [ plane ] [ qri ] ) ;\n int qmin = 8 << ( inter + ! i ) ;\n int qscale = i ? ac_scale_factor : dc_scale_factor ;\n s -> qmat [ qpi ] [ inter ] [ plane ] [ s -> dsp . idct_permutation [ i ] ] = av_clip ( ( qscale * coeff ) / 100 * 4 , qmin , 4096 ) ;\n }\n s -> qmat [ qpi ] [ inter ] [ plane ] [ 0 ] = s -> qmat [ 0 ] [ inter ] [ plane ] [ 0 ] ;\n }\n }\n }"}
{"idx": 6577, "target": 0, "func": "static int make_cdt16_entry ( int p1 , int p2 , int16_t * cdt ) {\n int r , b , lo ;\n b = cdt [ p2 ] ;\n r = cdt [ p1 ] << 11 ;\n lo = b + r ;\n return ( lo + ( lo << 16 ) ) << 1 ;\n }"}
{"idx": 6578, "target": 0, "func": "static VALUE ossl_x509name_initialize_copy ( VALUE self , VALUE other ) {\n X509_NAME * name , * name_other , * name_new ;\n rb_check_frozen ( self ) ;\n GetX509Name ( self , name ) ;\n SafeGetX509Name ( other , name_other ) ;\n name_new = X509_NAME_dup ( name_other ) ;\n if ( ! name_new ) ossl_raise ( eX509NameError , \"X509_NAME_dup\" ) ;\n SetX509Name ( self , name_new ) ;\n X509_NAME_free ( name ) ;\n return self ;\n }"}
{"idx": 6579, "target": 0, "func": "static int64_t le4 ( const unsigned char * p ) {\n return ( ( p [ 0 ] << 16 ) + ( ( ( int64_t ) p [ 1 ] ) << 24 ) + ( p [ 2 ] << 0 ) + ( p [ 3 ] << 8 ) ) ;\n }"}
{"idx": 6580, "target": 0, "func": "int ff_mpeg4_decode_picture_header ( MpegEncContext * s , GetBitContext * gb ) {\n unsigned startcode , v ;\n align_get_bits ( gb ) ;\n if ( s -> codec_tag == AV_RL32 ( \"WV1F\" ) && show_bits ( gb , 24 ) == 0x575630 ) {\n skip_bits ( gb , 24 ) ;\n if ( get_bits ( gb , 8 ) == 0xF0 ) goto end ;\n }\n startcode = 0xff ;\n for ( ;\n ;\n ) {\n if ( get_bits_count ( gb ) >= gb -> size_in_bits ) {\n if ( gb -> size_in_bits == 8 && ( s -> divx_version >= 0 || s -> xvid_build >= 0 ) ) {\n av_log ( s -> avctx , AV_LOG_WARNING , \"frame skip %d\\n\" , gb -> size_in_bits ) ;\n return FRAME_SKIPPED ;\n }\n else return - 1 ;\n }\n v = get_bits ( gb , 8 ) ;\n startcode = ( ( startcode << 8 ) | v ) & 0xffffffff ;\n if ( ( startcode & 0xFFFFFF00 ) != 0x100 ) continue ;\n / o startcode if ( s -> avctx -> debug & FF_DEBUG_STARTCODE ) {\n av_log ( s -> avctx , AV_LOG_DEBUG , \"startcode: %3X \" , startcode ) ;\n if ( startcode <= 0x11F ) av_log ( s -> avctx , AV_LOG_DEBUG , \"Video Object Start\" ) ;\n else if ( startcode <= 0x12F ) av_log ( s -> avctx , AV_LOG_DEBUG , \"Video Object Layer Start\" ) ;\n else if ( startcode <= 0x13F ) av_log ( s -> avctx , AV_LOG_DEBUG , \"Reserved\" ) ;\n else if ( startcode <= 0x15F ) av_log ( s -> avctx , AV_LOG_DEBUG , \"FGS bp start\" ) ;\n else if ( startcode <= 0x1AF ) av_log ( s -> avctx , AV_LOG_DEBUG , \"Reserved\" ) ;\n else if ( startcode == 0x1B0 ) av_log ( s -> avctx , AV_LOG_DEBUG , \"Visual Object Seq Start\" ) ;\n else if ( startcode == 0x1B1 ) av_log ( s -> avctx , AV_LOG_DEBUG , \"Visual Object Seq End\" ) ;\n else if ( startcode == 0x1B2 ) av_log ( s -> avctx , AV_LOG_DEBUG , \"User Data\" ) ;\n else if ( startcode == 0x1B3 ) av_log ( s -> avctx , AV_LOG_DEBUG , \"Group of VOP start\" ) ;\n else if ( startcode == 0x1B4 ) av_log ( s -> avctx , AV_LOG_DEBUG , \"Video Session Error\" ) ;\n else if ( startcode == 0x1B5 ) av_log ( s -> avctx , AV_LOG_DEBUG , \"Visual Object Start\" ) ;\n else if ( startcode == 0x1B6 ) av_log ( s -> avctx , AV_LOG_DEBUG , \"Video Object Plane start\" ) ;\n else if ( startcode == 0x1B7 ) av_log ( s -> avctx , AV_LOG_DEBUG , \"slice start\" ) ;\n else if ( startcode == 0x1B8 ) av_log ( s -> avctx , AV_LOG_DEBUG , \"extension start\" ) ;\n else if ( startcode == 0x1B9 ) av_log ( s -> avctx , AV_LOG_DEBUG , \"fgs start\" ) ;\n else if ( startcode == 0x1BA ) av_log ( s -> avctx , AV_LOG_DEBUG , \"FBA Object start\" ) ;\n else if ( startcode == 0x1BB ) av_log ( s -> avctx , AV_LOG_DEBUG , \"FBA Object Plane start\" ) ;\n else if ( startcode == 0x1BC ) av_log ( s -> avctx , AV_LOG_DEBUG , \"Mesh Object start\" ) ;\n else if ( startcode == 0x1BD ) av_log ( s -> avctx , AV_LOG_DEBUG , \"Mesh Object Plane start\" ) ;\n else if ( startcode == 0x1BE ) av_log ( s -> avctx , AV_LOG_DEBUG , \"Still Texture Object start\" ) ;\n else if ( startcode == 0x1BF ) av_log ( s -> avctx , AV_LOG_DEBUG , \"Texture Spatial Layer start\" ) ;\n else if ( startcode == 0x1C0 ) av_log ( s -> avctx , AV_LOG_DEBUG , \"Texture SNR Layer start\" ) ;\n else if ( startcode == 0x1C1 ) av_log ( s -> avctx , AV_LOG_DEBUG , \"Texture Tile start\" ) ;\n else if ( startcode == 0x1C2 ) av_log ( s -> avctx , AV_LOG_DEBUG , \"Texture Shape Layer start\" ) ;\n else if ( startcode == 0x1C3 ) av_log ( s -> avctx , AV_LOG_DEBUG , \"stuffing start\" ) ;\n else if ( startcode <= 0x1C5 ) av_log ( s -> avctx , AV_LOG_DEBUG , \"reserved\" ) ;\n else if ( startcode <= 0x1FF ) av_log ( s -> avctx , AV_LOG_DEBUG , \"System start\" ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \" at %d\\n\" , get_bits_count ( gb ) ) ;\n }\n if ( startcode >= 0x120 && startcode <= 0x12F ) {\n if ( decode_vol_header ( s , gb ) < 0 ) return - 1 ;\n }\n else if ( startcode == USER_DATA_STARTCODE ) {\n decode_user_data ( s , gb ) ;\n }\n else if ( startcode == GOP_STARTCODE ) {\n mpeg4_decode_gop_header ( s , gb ) ;\n }\n else if ( startcode == VOS_STARTCODE ) {\n mpeg4_decode_profile_level ( s , gb ) ;\n }\n else if ( startcode == VOP_STARTCODE ) {\n break ;\n }\n align_get_bits ( gb ) ;\n startcode = 0xff ;\n }\n end : if ( s -> flags & CODEC_FLAG_LOW_DELAY ) s -> low_delay = 1 ;\n s -> avctx -> has_b_frames = ! s -> low_delay ;\n return decode_vop_header ( s , gb ) ;\n }"}
{"idx": 6581, "target": 1, "func": "static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new ( sk_ ## t1 ## _compfunc compare ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new ( ( OPENSSL_sk_compfunc ) compare ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_null ( void ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_null ( ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_reserve ( sk_ ## t1 ## _compfunc compare , int n ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_reserve ( ( OPENSSL_sk_compfunc ) compare , n ) ;\n }\n static ossl_inline int sk_ ## t1 ## _reserve ( STACK_OF ( t1 ) * sk , int n ) {\n return OPENSSL_sk_reserve ( ( OPENSSL_STACK * ) sk , n ) ;\n }\n static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 6582, "target": 0, "func": "int message_search_msg ( struct message_search_context * ctx , struct istream * input , struct message_part * parts , const char * * error_r ) {\n char * error ;\n int ret ;\n T_BEGIN {\n ret = message_search_msg_real ( ctx , input , parts , error_r ) ;\n error = i_strdup ( * error_r ) ;\n }\n T_END ;\n * error_r = t_strdup ( error ) ;\n i_free ( error ) ;\n return ret ;\n }"}
{"idx": 6583, "target": 0, "func": "int gs_get_colorname_string ( const gs_memory_t * mem , gs_separation_name colorname_index , unsigned char * * ppstr , unsigned int * pname_size ) {\n ref nref ;\n name_index_ref ( mem , colorname_index , & nref ) ;\n name_string_ref ( mem , & nref , & nref ) ;\n return obj_string_data ( mem , & nref , ( const unsigned char * * ) ppstr , pname_size ) ;\n }"}
{"idx": 6584, "target": 0, "func": "static void ber_check_value ( guint32 value , gint32 min_len , gint32 max_len , asn1_ctx_t * actx , proto_item * item ) {\n if ( ( min_len != - 1 ) && ( value < ( guint32 ) min_len ) ) {\n expert_add_info_format ( actx -> pinfo , item , & ei_ber_size_constraint_value , \"Size constraint: value too small: %d (%d .. %d)\" , value , min_len , max_len ) ;\n }\n else if ( ( max_len != - 1 ) && ( value > ( guint32 ) max_len ) ) {\n expert_add_info_format ( actx -> pinfo , item , & ei_ber_size_constraint_value , \"Size constraint: value too big: %d (%d .. %d)\" , value , min_len , max_len ) ;\n }\n }"}
{"idx": 6585, "target": 0, "func": "void parseVariant ( proto_tree * tree , tvbuff_t * tvb , packet_info * pinfo , gint * pOffset , const char * szFieldName ) {\n proto_item * ti ;\n proto_tree * subtree = proto_tree_add_subtree_format ( tree , tvb , * pOffset , - 1 , ett_opcua_variant , & ti , \"%s: Variant\" , szFieldName ) ;\n gint iOffset = * pOffset ;\n guint8 EncodingMask ;\n gint32 ArrayDimensions = 0 ;\n guint opcua_nested_count ;\n opcua_nested_count = GPOINTER_TO_UINT ( p_get_proto_data ( pinfo -> pool , pinfo , proto_opcua , 0 ) ) ;\n if ( ++ opcua_nested_count > MAX_NESTING_DEPTH ) {\n expert_add_info ( pinfo , ti , & ei_nesting_depth ) ;\n return ;\n }\n p_add_proto_data ( pinfo -> pool , pinfo , proto_opcua , 0 , GUINT_TO_POINTER ( opcua_nested_count ) ) ;\n EncodingMask = tvb_get_guint8 ( tvb , iOffset ) ;\n proto_tree_add_item ( subtree , hf_opcua_variant_encodingmask , tvb , iOffset , 1 , ENC_LITTLE_ENDIAN ) ;\n iOffset ++ ;\n if ( EncodingMask & VARIANT_ARRAYMASK ) {\n switch ( EncodingMask & 0x3f ) {\n case OpcUaType_Null : break ;\n case OpcUaType_Boolean : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"Boolean\" , \"Boolean\" , hf_opcua_Boolean , parseBoolean , ett_opcua_array_Boolean ) ;\n break ;\n case OpcUaType_SByte : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"SByte\" , \"SByte\" , hf_opcua_SByte , parseSByte , ett_opcua_array_SByte ) ;\n break ;\n case OpcUaType_Byte : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"Byte\" , \"Byte\" , hf_opcua_Byte , parseByte , ett_opcua_array_Byte ) ;\n break ;\n case OpcUaType_Int16 : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"Int16\" , \"Int16\" , hf_opcua_Int16 , parseInt16 , ett_opcua_array_Int16 ) ;\n break ;\n case OpcUaType_UInt16 : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"UInt16\" , \"UInt16\" , hf_opcua_UInt16 , parseUInt16 , ett_opcua_array_UInt16 ) ;\n break ;\n case OpcUaType_Int32 : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"Int32\" , \"Int32\" , hf_opcua_Int32 , parseInt32 , ett_opcua_array_Int32 ) ;\n break ;\n case OpcUaType_UInt32 : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"UInt32\" , \"UInt32\" , hf_opcua_UInt32 , parseUInt32 , ett_opcua_array_UInt32 ) ;\n break ;\n case OpcUaType_Int64 : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"Int64\" , \"Int64\" , hf_opcua_Int64 , parseInt64 , ett_opcua_array_Int64 ) ;\n break ;\n case OpcUaType_UInt64 : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"UInt64\" , \"UInt64\" , hf_opcua_UInt64 , parseUInt64 , ett_opcua_array_UInt64 ) ;\n break ;\n case OpcUaType_Float : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"Float\" , \"Float\" , hf_opcua_Float , parseFloat , ett_opcua_array_Float ) ;\n break ;\n case OpcUaType_Double : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"Double\" , \"Double\" , hf_opcua_Double , parseDouble , ett_opcua_array_Double ) ;\n break ;\n case OpcUaType_String : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"String\" , \"String\" , hf_opcua_String , parseString , ett_opcua_array_String ) ;\n break ;\n case OpcUaType_DateTime : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"DateTime\" , \"DateTime\" , hf_opcua_DateTime , parseDateTime , ett_opcua_array_DateTime ) ;\n break ;\n case OpcUaType_Guid : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"Guid\" , \"Guid\" , hf_opcua_Guid , parseGuid , ett_opcua_array_Guid ) ;\n break ;\n case OpcUaType_ByteString : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"ByteString\" , \"ByteString\" , hf_opcua_ByteString , parseByteString , ett_opcua_array_ByteString ) ;\n break ;\n case OpcUaType_XmlElement : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"XmlElement\" , \"XmlElement\" , hf_opcua_XmlElement , parseXmlElement , ett_opcua_array_XmlElement ) ;\n break ;\n case OpcUaType_NodeId : parseArrayComplex ( subtree , tvb , pinfo , & iOffset , \"NodeId\" , \"NodeId\" , parseNodeId , ett_opcua_array_NodeId ) ;\n break ;\n case OpcUaType_ExpandedNodeId : parseArrayComplex ( subtree , tvb , pinfo , & iOffset , \"ExpandedNodeId\" , \"ExpandedNodeId\" , parseExpandedNodeId , ett_opcua_array_ExpandedNodeId ) ;\n break ;\n case OpcUaType_StatusCode : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"StatusCode\" , \"StatusCode\" , hf_opcua_StatusCode , parseStatusCode , ett_opcua_array_StatusCode ) ;\n break ;\n case OpcUaType_DiagnosticInfo : parseArrayComplex ( subtree , tvb , pinfo , & iOffset , \"DiagnosticInfo\" , \"DiagnosticInfo\" , parseDiagnosticInfo , ett_opcua_array_DiagnosticInfo ) ;\n break ;\n case OpcUaType_QualifiedName : parseArrayComplex ( subtree , tvb , pinfo , & iOffset , \"QualifiedName\" , \"QualifiedName\" , parseQualifiedName , ett_opcua_array_QualifiedName ) ;\n break ;\n case OpcUaType_LocalizedText : parseArrayComplex ( subtree , tvb , pinfo , & iOffset , \"LocalizedText\" , \"LocalizedText\" , parseLocalizedText , ett_opcua_array_LocalizedText ) ;\n break ;\n case OpcUaType_ExtensionObject : parseArrayComplex ( subtree , tvb , pinfo , & iOffset , \"ExtensionObject\" , \"ExtensionObject\" , parseExtensionObject , ett_opcua_array_ExtensionObject ) ;\n break ;\n case OpcUaType_DataValue : parseArrayComplex ( subtree , tvb , pinfo , & iOffset , \"DataValue\" , \"DataValue\" , parseDataValue , ett_opcua_array_DataValue ) ;\n break ;\n case OpcUaType_Variant : parseArrayComplex ( subtree , tvb , pinfo , & iOffset , \"Variant\" , \"Variant\" , parseVariant , ett_opcua_array_Variant ) ;\n break ;\n }\n if ( EncodingMask & VARIANT_ARRAYDIMENSIONS ) {\n proto_item * ti_2 ;\n proto_tree * subtree_2 = proto_tree_add_subtree ( subtree , tvb , iOffset , - 1 , ett_opcua_variant_arraydims , & ti_2 , \"ArrayDimensions\" ) ;\n int i ;\n ArrayDimensions = tvb_get_letohl ( tvb , iOffset ) ;\n proto_tree_add_item ( subtree_2 , hf_opcua_ArraySize , tvb , iOffset , 4 , ENC_LITTLE_ENDIAN ) ;\n if ( ArrayDimensions > MAX_ARRAY_LEN ) {\n proto_tree_add_expert_format ( subtree_2 , pinfo , & ei_array_length , tvb , iOffset , 4 , \"ArrayDimensions length %d too large to process\" , ArrayDimensions ) ;\n return ;\n }\n iOffset += 4 ;\n for ( i = 0 ;\n i < ArrayDimensions ;\n i ++ ) {\n parseInt32 ( subtree_2 , tvb , pinfo , & iOffset , hf_opcua_Int32 ) ;\n }\n proto_item_set_end ( ti_2 , tvb , iOffset ) ;\n }\n }\n else {\n switch ( EncodingMask & 0x3f ) {\n case OpcUaType_Null : break ;\n case OpcUaType_Boolean : parseBoolean ( subtree , tvb , pinfo , & iOffset , hf_opcua_Boolean ) ;\n break ;\n case OpcUaType_SByte : parseSByte ( subtree , tvb , pinfo , & iOffset , hf_opcua_SByte ) ;\n break ;\n case OpcUaType_Byte : parseByte ( subtree , tvb , pinfo , & iOffset , hf_opcua_Byte ) ;\n break ;\n case OpcUaType_Int16 : parseInt16 ( subtree , tvb , pinfo , & iOffset , hf_opcua_Int16 ) ;\n break ;\n case OpcUaType_UInt16 : parseUInt16 ( subtree , tvb , pinfo , & iOffset , hf_opcua_UInt16 ) ;\n break ;\n case OpcUaType_Int32 : parseInt32 ( subtree , tvb , pinfo , & iOffset , hf_opcua_Int32 ) ;\n break ;\n case OpcUaType_UInt32 : parseUInt32 ( subtree , tvb , pinfo , & iOffset , hf_opcua_UInt32 ) ;\n break ;\n case OpcUaType_Int64 : parseInt64 ( subtree , tvb , pinfo , & iOffset , hf_opcua_Int64 ) ;\n break ;\n case OpcUaType_UInt64 : parseUInt64 ( subtree , tvb , pinfo , & iOffset , hf_opcua_UInt64 ) ;\n break ;\n case OpcUaType_Float : parseFloat ( subtree , tvb , pinfo , & iOffset , hf_opcua_Float ) ;\n break ;\n case OpcUaType_Double : parseDouble ( subtree , tvb , pinfo , & iOffset , hf_opcua_Double ) ;\n break ;\n case OpcUaType_String : parseString ( subtree , tvb , pinfo , & iOffset , hf_opcua_String ) ;\n break ;\n case OpcUaType_DateTime : parseDateTime ( subtree , tvb , pinfo , & iOffset , hf_opcua_DateTime ) ;\n break ;\n case OpcUaType_Guid : parseGuid ( subtree , tvb , pinfo , & iOffset , hf_opcua_Guid ) ;\n break ;\n case OpcUaType_ByteString : parseByteString ( subtree , tvb , pinfo , & iOffset , hf_opcua_ByteString ) ;\n break ;\n case OpcUaType_XmlElement : parseXmlElement ( subtree , tvb , pinfo , & iOffset , hf_opcua_XmlElement ) ;\n break ;\n case OpcUaType_NodeId : parseNodeId ( subtree , tvb , pinfo , & iOffset , \"Value\" ) ;\n break ;\n case OpcUaType_ExpandedNodeId : parseExpandedNodeId ( subtree , tvb , pinfo , & iOffset , \"Value\" ) ;\n break ;\n case OpcUaType_StatusCode : parseStatusCode ( subtree , tvb , pinfo , & iOffset , hf_opcua_StatusCode ) ;\n break ;\n case OpcUaType_DiagnosticInfo : parseDiagnosticInfo ( subtree , tvb , pinfo , & iOffset , \"Value\" ) ;\n break ;\n case OpcUaType_QualifiedName : parseQualifiedName ( subtree , tvb , pinfo , & iOffset , \"Value\" ) ;\n break ;\n case OpcUaType_LocalizedText : parseLocalizedText ( subtree , tvb , pinfo , & iOffset , \"Value\" ) ;\n break ;\n case OpcUaType_ExtensionObject : parseExtensionObject ( subtree , tvb , pinfo , & iOffset , \"Value\" ) ;\n break ;\n case OpcUaType_DataValue : parseDataValue ( subtree , tvb , pinfo , & iOffset , \"Value\" ) ;\n break ;\n case OpcUaType_Variant : parseVariant ( subtree , tvb , pinfo , & iOffset , \"Value\" ) ;\n break ;\n }\n }\n proto_item_set_end ( ti , tvb , iOffset ) ;\n * pOffset = iOffset ;\n }"}
{"idx": 6586, "target": 0, "func": "static my_bool get_one_option ( int optid , const struct my_option * opt , char * argument ) {\n switch ( optid ) {\n case '#' : # ifndef DBUG_OFF DBUG_PUSH ( argument ? argument : \"d:t:S:i:O,/tmp/mysqltest.trace\" ) ;\n debug_check_flag = 1 ;\n debug_info_flag = 1 ;\n # endif break ;\n case 'r' : record = 1 ;\n break ;\n case 'x' : {\n char buff [ FN_REFLEN ] ;\n if ( ! test_if_hard_path ( argument ) ) {\n strxmov ( buff , opt_basedir , argument , NullS ) ;\n argument = buff ;\n }\n fn_format ( buff , argument , \"\" , \"\" , MY_UNPACK_FILENAME ) ;\n DBUG_ASSERT ( cur_file == file_stack && cur_file -> file == 0 ) ;\n if ( ! ( cur_file -> file = fopen ( buff , \"rb\" ) ) ) die ( \"Could not open '%s' for reading, errno: %d\" , buff , errno ) ;\n cur_file -> file_name = my_strdup ( buff , MYF ( MY_FAE ) ) ;\n cur_file -> lineno = 1 ;\n break ;\n }\n case 'm' : {\n static char buff [ FN_REFLEN ] ;\n if ( ! test_if_hard_path ( argument ) ) {\n strxmov ( buff , opt_basedir , argument , NullS ) ;\n argument = buff ;\n }\n fn_format ( buff , argument , \"\" , \"\" , MY_UNPACK_FILENAME ) ;\n timer_file = buff ;\n unlink ( timer_file ) ;\n break ;\n }\n case 'p' : if ( argument == disabled_my_option ) argument = ( char * ) \"\" ;\n if ( argument ) {\n my_free ( opt_pass ) ;\n opt_pass = my_strdup ( argument , MYF ( MY_FAE ) ) ;\n while ( * argument ) * argument ++ = 'x' ;\n tty_password = 0 ;\n }\n else tty_password = 1 ;\n break ;\n # include < sslopt - case . h > case 't' : strnmov ( TMPDIR , argument , sizeof ( TMPDIR ) ) ;\n break ;\n case 'A' : if ( ! embedded_server_arg_count ) {\n embedded_server_arg_count = 1 ;\n embedded_server_args [ 0 ] = ( char * ) \"\" ;\n }\n if ( embedded_server_arg_count == MAX_EMBEDDED_SERVER_ARGS - 1 || ! ( embedded_server_args [ embedded_server_arg_count ++ ] = my_strdup ( argument , MYF ( MY_FAE ) ) ) ) {\n die ( \"Can't use server argument\" ) ;\n }\n break ;\n case OPT_LOG_DIR : if ( access ( opt_logdir , F_OK ) != 0 ) die ( \"The specified log directory does not exist: '%s'\" , opt_logdir ) ;\n break ;\n case 'F' : read_embedded_server_arguments ( argument ) ;\n break ;\n case OPT_RESULT_FORMAT_VERSION : set_result_format_version ( opt_result_format_version ) ;\n break ;\n case 'V' : print_version ( ) ;\n exit ( 0 ) ;\n case OPT_MYSQL_PROTOCOL : # ifndef EMBEDDED_LIBRARY opt_protocol = find_type_or_exit ( argument , & sql_protocol_typelib , opt -> name ) ;\n # endif break ;\n case '?' : usage ( ) ;\n exit ( 0 ) ;\n }\n return 0 ;\n }"}
{"idx": 6587, "target": 0, "func": "PHP_FUNCTION ( locale_parse ) {\n const char * loc_name = NULL ;\n int loc_name_len = 0 ;\n int grOffset = 0 ;\n intl_error_reset ( NULL TSRMLS_CC ) ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"s\" , & loc_name , & loc_name_len ) == FAILURE ) {\n intl_error_set ( NULL , U_ILLEGAL_ARGUMENT_ERROR , \"locale_parse: unable to parse input params\" , 0 TSRMLS_CC ) ;\n RETURN_FALSE ;\n }\n if ( loc_name_len == 0 ) {\n loc_name = intl_locale_get_default ( TSRMLS_C ) ;\n }\n array_init ( return_value ) ;\n grOffset = findOffset ( LOC_GRANDFATHERED , loc_name ) ;\n if ( grOffset >= 0 ) {\n add_assoc_string ( return_value , LOC_GRANDFATHERED_LANG_TAG , estrdup ( loc_name ) , FALSE ) ;\n }\n else {\n add_array_entry ( loc_name , return_value , LOC_LANG_TAG TSRMLS_CC ) ;\n add_array_entry ( loc_name , return_value , LOC_SCRIPT_TAG TSRMLS_CC ) ;\n add_array_entry ( loc_name , return_value , LOC_REGION_TAG TSRMLS_CC ) ;\n add_array_entry ( loc_name , return_value , LOC_VARIANT_TAG TSRMLS_CC ) ;\n add_array_entry ( loc_name , return_value , LOC_PRIVATE_TAG TSRMLS_CC ) ;\n }\n }"}
{"idx": 6588, "target": 1, "func": "void vp9_init_intra_predictors ( ) {\n # define INIT_ALL_SIZES ( p , type ) p [ TX_4X4 ] = vp9_ ## type ## _predictor_4x4 ;\n p [ TX_8X8 ] = vp9_ ## type ## _predictor_8x8 ;\n p [ TX_16X16 ] = vp9_ ## type ## _predictor_16x16 ;\n p [ TX_32X32 ] = vp9_ ## type ## _predictor_32x32 INIT_ALL_SIZES ( pred [ V_PRED ] , v ) ;\n INIT_ALL_SIZES ( pred [ H_PRED ] , h ) ;\n INIT_ALL_SIZES ( pred [ D207_PRED ] , d207 ) ;\n INIT_ALL_SIZES ( pred [ D45_PRED ] , d45 ) ;\n INIT_ALL_SIZES ( pred [ D63_PRED ] , d63 ) ;\n INIT_ALL_SIZES ( pred [ D117_PRED ] , d117 ) ;\n INIT_ALL_SIZES ( pred [ D135_PRED ] , d135 ) ;\n INIT_ALL_SIZES ( pred [ D153_PRED ] , d153 ) ;\n INIT_ALL_SIZES ( pred [ TM_PRED ] , tm ) ;\n INIT_ALL_SIZES ( dc_pred [ 0 ] [ 0 ] , dc_128 ) ;\n INIT_ALL_SIZES ( dc_pred [ 0 ] [ 1 ] , dc_top ) ;\n INIT_ALL_SIZES ( dc_pred [ 1 ] [ 0 ] , dc_left ) ;\n INIT_ALL_SIZES ( dc_pred [ 1 ] [ 1 ] , dc ) ;\n # undef INIT_ALL_SIZES }"}
{"idx": 6589, "target": 0, "func": "static void dumpcffcidhmtx ( struct alltabs * at , SplineFont * _sf ) {\n DBounds b ;\n SplineChar * sc ;\n int cid , i , cnt = 0 , max ;\n SplineFont * sf ;\n int dovmetrics = _sf -> hasvmetrics ;\n at -> gi . hmtx = tmpfile ( ) ;\n if ( dovmetrics ) at -> gi . vmtx = tmpfile ( ) ;\n FigureFullMetricsEnd ( _sf , & at -> gi , false ) ;\n max = 0 ;\n for ( i = 0 ;\n i < _sf -> subfontcnt ;\n ++ i ) if ( max < _sf -> subfonts [ i ] -> glyphcnt ) max = _sf -> subfonts [ i ] -> glyphcnt ;\n for ( cid = 0 ;\n cid < max ;\n ++ cid ) {\n for ( i = 0 ;\n i < _sf -> subfontcnt ;\n ++ i ) {\n sf = _sf -> subfonts [ i ] ;\n if ( cid < sf -> glyphcnt && SCWorthOutputting ( sf -> glyphs [ cid ] ) ) break ;\n }\n if ( i != _sf -> subfontcnt ) {\n sc = sf -> glyphs [ cid ] ;\n if ( sc -> ttf_glyph <= at -> gi . lasthwidth ) putshort ( at -> gi . hmtx , sc -> width ) ;\n SplineCharLayerFindBounds ( sc , at -> gi . layer , & b ) ;\n putshort ( at -> gi . hmtx , b . minx ) ;\n if ( dovmetrics ) {\n if ( sc -> ttf_glyph <= at -> gi . lastvwidth ) putshort ( at -> gi . vmtx , sc -> vwidth ) ;\n putshort ( at -> gi . vmtx , b . maxy ) ;\n }\n ++ cnt ;\n if ( sc -> ttf_glyph == at -> gi . lasthwidth ) at -> gi . hfullcnt = cnt ;\n if ( sc -> ttf_glyph == at -> gi . lastvwidth ) at -> gi . vfullcnt = cnt ;\n }\n else if ( cid == 0 ) {\n sf = _sf -> subfonts [ 0 ] ;\n putshort ( at -> gi . hmtx , sf -> ascent + sf -> descent ) ;\n putshort ( at -> gi . hmtx , 0 ) ;\n ++ cnt ;\n if ( dovmetrics ) {\n putshort ( at -> gi . vmtx , sf -> ascent + sf -> descent ) ;\n putshort ( at -> gi . vmtx , 0 ) ;\n }\n }\n }\n at -> gi . hmtxlen = ftell ( at -> gi . hmtx ) ;\n if ( at -> gi . hmtxlen & 2 ) putshort ( at -> gi . hmtx , 0 ) ;\n if ( dovmetrics ) {\n at -> gi . vmtxlen = ftell ( at -> gi . vmtx ) ;\n if ( at -> gi . vmtxlen & 2 ) putshort ( at -> gi . vmtx , 0 ) ;\n }\n at -> gi . maxp -> numGlyphs = cnt ;\n }"}
{"idx": 6590, "target": 0, "func": "int PEM_write_ ## name ( FILE * fp , type * x ) ;\n # define DECLARE_PEM_write_fp_const ( name , type ) int PEM_write_ ## name ( FILE * fp , const type * x ) ;\n # define DECLARE_PEM_write_cb_fp ( name , type ) int PEM_write_ ## name ( FILE * fp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # endif # define DECLARE_PEM_read_bio ( name , type ) type * PEM_read_bio_ ## name ( BIO * bp , type * * x , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ )"}
{"idx": 6591, "target": 1, "func": "TEST_F ( ExternalProtocolHandlerTest , TestGetBlockStateDefaultDontBlock ) {\n ExternalProtocolHandler : : BlockState block_state = ExternalProtocolHandler : : GetBlockState ( \"mailto\" , profile_ . get ( ) ) ;\n EXPECT_EQ ( ExternalProtocolHandler : : DONT_BLOCK , block_state ) ;\n EXPECT_TRUE ( local_state_ -> GetDictionary ( prefs : : kExcludedSchemes ) -> empty ( ) ) ;\n EXPECT_FALSE ( profile_ -> GetPrefs ( ) -> GetDictionary ( prefs : : kExcludedSchemes ) -> empty ( ) ) ;\n }"}
{"idx": 6592, "target": 0, "func": "REGRESSION_TEST ( SDK_API_TSIOBufferProduce ) ( RegressionTest * test , int , int * pstatus ) {\n bool test_passed = false ;\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n TSIOBuffer bufp = TSIOBufferSizedCreate ( TS_IOBUFFER_SIZE_INDEX_4K ) ;\n TSIOBufferReader readerp = TSIOBufferReaderAlloc ( bufp ) ;\n TSIOBufferProduce ( bufp , 10 ) ;\n int64_t reader_avail = TSIOBufferReaderAvail ( readerp ) ;\n if ( reader_avail == 10 ) {\n SDK_RPRINT ( test , \"TSIOBufferProduce\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( test , \"TSIOBufferReaderAlloc\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( test , \"TSIOBufferReaderAvail\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSIOBufferProduce\" , \"TestCase1\" , TC_FAIL , \"failed\" ) ;\n SDK_RPRINT ( test , \"TSIOBufferReaderAlloc\" , \"TestCase1\" , TC_FAIL , \"failed\" ) ;\n SDK_RPRINT ( test , \"TSIOBufferReaderAvail\" , \"TestCase1\" , TC_FAIL , \"failed\" ) ;\n }\n * pstatus = ( ( test_passed == true ) ? REGRESSION_TEST_PASSED : REGRESSION_TEST_FAILED ) ;\n return ;\n }"}
{"idx": 6593, "target": 0, "func": "static int decode_element ( AVCodecContext * avctx , AVFrame * frame , int ch_index , int channels ) {\n ALACContext * alac = avctx -> priv_data ;\n int has_size , bps , is_compressed , decorr_shift , decorr_left_weight , ret ;\n uint32_t output_samples ;\n int i , ch ;\n skip_bits ( & alac -> gb , 4 ) ;\n skip_bits ( & alac -> gb , 12 ) ;\n has_size = get_bits1 ( & alac -> gb ) ;\n alac -> extra_bits = get_bits ( & alac -> gb , 2 ) << 3 ;\n bps = alac -> sample_size - alac -> extra_bits + channels - 1 ;\n if ( bps > 32 ) {\n av_log ( avctx , AV_LOG_ERROR , \"bps is unsupported: %d\\n\" , bps ) ;\n return AVERROR_PATCHWELCOME ;\n }\n is_compressed = ! get_bits1 ( & alac -> gb ) ;\n if ( has_size ) output_samples = get_bits_long ( & alac -> gb , 32 ) ;\n else output_samples = alac -> max_samples_per_frame ;\n if ( ! output_samples || output_samples > alac -> max_samples_per_frame ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid samples per frame: %d\\n\" , output_samples ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ! alac -> nb_samples ) {\n frame -> nb_samples = output_samples ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n }\n else if ( output_samples != alac -> nb_samples ) {\n av_log ( avctx , AV_LOG_ERROR , \"sample count mismatch: %u != %d\\n\" , output_samples , alac -> nb_samples ) ;\n return AVERROR_INVALIDDATA ;\n }\n alac -> nb_samples = output_samples ;\n if ( alac -> sample_size > 16 ) {\n for ( ch = 0 ;\n ch < channels ;\n ch ++ ) alac -> output_samples_buffer [ ch ] = ( int32_t * ) frame -> extended_data [ ch_index + ch ] ;\n }\n if ( is_compressed ) {\n int16_t lpc_coefs [ 2 ] [ 32 ] ;\n int lpc_order [ 2 ] ;\n int prediction_type [ 2 ] ;\n int lpc_quant [ 2 ] ;\n int rice_history_mult [ 2 ] ;\n decorr_shift = get_bits ( & alac -> gb , 8 ) ;\n decorr_left_weight = get_bits ( & alac -> gb , 8 ) ;\n for ( ch = 0 ;\n ch < channels ;\n ch ++ ) {\n prediction_type [ ch ] = get_bits ( & alac -> gb , 4 ) ;\n lpc_quant [ ch ] = get_bits ( & alac -> gb , 4 ) ;\n rice_history_mult [ ch ] = get_bits ( & alac -> gb , 3 ) ;\n lpc_order [ ch ] = get_bits ( & alac -> gb , 5 ) ;\n for ( i = lpc_order [ ch ] - 1 ;\n i >= 0 ;\n i -- ) lpc_coefs [ ch ] [ i ] = get_sbits ( & alac -> gb , 16 ) ;\n }\n if ( alac -> extra_bits ) {\n for ( i = 0 ;\n i < alac -> nb_samples ;\n i ++ ) {\n for ( ch = 0 ;\n ch < channels ;\n ch ++ ) alac -> extra_bits_buffer [ ch ] [ i ] = get_bits ( & alac -> gb , alac -> extra_bits ) ;\n }\n }\n for ( ch = 0 ;\n ch < channels ;\n ch ++ ) {\n rice_decompress ( alac , alac -> predict_error_buffer [ ch ] , alac -> nb_samples , bps , rice_history_mult [ ch ] * alac -> rice_history_mult / 4 ) ;\n if ( prediction_type [ ch ] == 15 ) {\n lpc_prediction ( alac -> predict_error_buffer [ ch ] , alac -> predict_error_buffer [ ch ] , alac -> nb_samples , bps , NULL , 31 , 0 ) ;\n }\n else if ( prediction_type [ ch ] > 0 ) {\n av_log ( avctx , AV_LOG_WARNING , \"unknown prediction type: %i\\n\" , prediction_type [ ch ] ) ;\n }\n lpc_prediction ( alac -> predict_error_buffer [ ch ] , alac -> output_samples_buffer [ ch ] , alac -> nb_samples , bps , lpc_coefs [ ch ] , lpc_order [ ch ] , lpc_quant [ ch ] ) ;\n }\n }\n else {\n for ( i = 0 ;\n i < alac -> nb_samples ;\n i ++ ) {\n for ( ch = 0 ;\n ch < channels ;\n ch ++ ) {\n alac -> output_samples_buffer [ ch ] [ i ] = get_sbits_long ( & alac -> gb , alac -> sample_size ) ;\n }\n }\n alac -> extra_bits = 0 ;\n decorr_shift = 0 ;\n decorr_left_weight = 0 ;\n }\n if ( channels == 2 && decorr_left_weight ) {\n decorrelate_stereo ( alac -> output_samples_buffer , alac -> nb_samples , decorr_shift , decorr_left_weight ) ;\n }\n if ( alac -> extra_bits ) {\n append_extra_bits ( alac -> output_samples_buffer , alac -> extra_bits_buffer , alac -> extra_bits , channels , alac -> nb_samples ) ;\n }\n switch ( alac -> sample_size ) {\n case 16 : {\n for ( ch = 0 ;\n ch < channels ;\n ch ++ ) {\n int16_t * outbuffer = ( int16_t * ) frame -> extended_data [ ch_index + ch ] ;\n for ( i = 0 ;\n i < alac -> nb_samples ;\n i ++ ) * outbuffer ++ = alac -> output_samples_buffer [ ch ] [ i ] ;\n }\n }\n break ;\n case 24 : {\n for ( ch = 0 ;\n ch < channels ;\n ch ++ ) {\n for ( i = 0 ;\n i < alac -> nb_samples ;\n i ++ ) alac -> output_samples_buffer [ ch ] [ i ] <<= 8 ;\n }\n }\n break ;\n }\n return 0 ;\n }"}
{"idx": 6594, "target": 0, "func": "static int selinux_skb_peerlbl_sid ( struct sk_buff * skb , u16 family , u32 * sid ) {\n int err ;\n u32 xfrm_sid ;\n u32 nlbl_sid ;\n u32 nlbl_type ;\n err = selinux_xfrm_skb_sid ( skb , & xfrm_sid ) ;\n if ( unlikely ( err ) ) return - EACCES ;\n err = selinux_netlbl_skbuff_getsid ( skb , family , & nlbl_type , & nlbl_sid ) ;\n if ( unlikely ( err ) ) return - EACCES ;\n err = security_net_peersid_resolve ( nlbl_sid , nlbl_type , xfrm_sid , sid ) ;\n if ( unlikely ( err ) ) {\n printk ( KERN_WARNING \"SELinux: failure in selinux_skb_peerlbl_sid(),\" \" unable to determine packet's peer label\\n\" ) ;\n return - EACCES ;\n }\n return 0 ;\n }"}
{"idx": 6595, "target": 0, "func": "static const char * Indent ( guint8 level ) {\n return indent_buffer + ( 512 - 2 * ( level ) ) ;\n }"}
{"idx": 6596, "target": 0, "func": "static void mips_magnum_init ( QEMUMachineInitArgs * args ) {\n ram_addr_t ram_size = args -> ram_size ;\n const char * cpu_model = args -> cpu_model ;\n mips_jazz_init ( get_system_memory ( ) , get_system_io ( ) , ram_size , cpu_model , JAZZ_MAGNUM ) ;\n }"}
{"idx": 6597, "target": 0, "func": "static void dissect_u3v_stream_payload ( proto_tree * u3v_telegram_tree , tvbuff_t * tvb , packet_info * pinfo , usb_conv_info_t * usb_conv_info _U_ ) {\n proto_item * item = NULL ;\n item = proto_tree_add_item ( u3v_telegram_tree , hf_u3v_stream_payload , tvb , 0 , - 1 , ENC_NA ) ;\n u3v_telegram_tree = proto_item_add_subtree ( item , ett_u3v_stream_payload ) ;\n proto_tree_add_item ( u3v_telegram_tree , hf_u3v_stream_data , tvb , 0 , - 1 , ENC_NA ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"Stream Payload\" ) ;\n }"}
{"idx": 6598, "target": 0, "func": "static int decode_cabac_field_decoding_flag ( H264Context * h ) {\n const long mbb_xy = h -> mb_xy - 2L * h -> mb_stride ;\n unsigned long ctx = 0 ;\n ctx += h -> mb_field_decoding_flag & ! ! h -> mb_x ;\n ctx += ( h -> cur_pic . mb_type [ mbb_xy ] >> 7 ) & ( h -> slice_table [ mbb_xy ] == h -> slice_num ) ;\n return get_cabac_noinline ( & h -> cabac , & ( h -> cabac_state + 70 ) [ ctx ] ) ;\n }"}
{"idx": 6599, "target": 0, "func": "static void evhttp_make_header_response ( struct evhttp_connection * evcon , struct evhttp_request * req ) {\n int is_keepalive = evhttp_is_connection_keepalive ( req -> input_headers ) ;\n evbuffer_add_printf ( evcon -> output_buffer , \"HTTP/%d.%d %d %s\\r\\n\" , req -> major , req -> minor , req -> response_code , req -> response_code_line ) ;\n if ( req -> major == 1 ) {\n if ( req -> minor == 1 ) evhttp_maybe_add_date_header ( req -> output_headers ) ;\n if ( req -> minor == 0 && is_keepalive ) evhttp_add_header ( req -> output_headers , \"Connection\" , \"keep-alive\" ) ;\n if ( req -> minor == 1 || is_keepalive ) {\n evhttp_maybe_add_content_length_header ( req -> output_headers , ( long ) EVBUFFER_LENGTH ( req -> output_buffer ) ) ;\n }\n }\n if ( EVBUFFER_LENGTH ( req -> output_buffer ) ) {\n if ( evhttp_find_header ( req -> output_headers , \"Content-Type\" ) == NULL ) {\n evhttp_add_header ( req -> output_headers , \"Content-Type\" , \"text/html;\n charset=ISO-8859-1\" ) ;\n }\n }\n if ( evhttp_is_connection_close ( req -> flags , req -> input_headers ) ) {\n evhttp_remove_header ( req -> output_headers , \"Connection\" ) ;\n if ( ! ( req -> flags & EVHTTP_PROXY_REQUEST ) ) evhttp_add_header ( req -> output_headers , \"Connection\" , \"close\" ) ;\n evhttp_remove_header ( req -> output_headers , \"Proxy-Connection\" ) ;\n }\n }"}
{"idx": 6600, "target": 1, "func": "static jpc_enc_prc_t * prc_create ( jpc_enc_prc_t * prc , jpc_enc_cp_t * cp , jpc_enc_band_t * band ) {\n uint_fast32_t prcno ;\n uint_fast32_t prcxind ;\n uint_fast32_t prcyind ;\n uint_fast32_t cbgtlx ;\n uint_fast32_t cbgtly ;\n uint_fast32_t tlprctlx ;\n uint_fast32_t tlprctly ;\n uint_fast32_t tlcbgtlx ;\n uint_fast32_t tlcbgtly ;\n uint_fast16_t rlvlno ;\n jpc_enc_rlvl_t * rlvl ;\n uint_fast32_t tlcblktlx ;\n uint_fast32_t tlcblktly ;\n uint_fast32_t brcblkbrx ;\n uint_fast32_t brcblkbry ;\n uint_fast32_t cblkno ;\n jpc_enc_cblk_t * cblk ;\n jpc_enc_tcmpt_t * tcmpt ;\n prc -> cblks = 0 ;\n prc -> incltree = 0 ;\n prc -> savincltree = 0 ;\n prc -> nlibtree = 0 ;\n prc -> savnlibtree = 0 ;\n rlvl = band -> rlvl ;\n tcmpt = rlvl -> tcmpt ;\n rlvlno = rlvl - tcmpt -> rlvls ;\n prcno = prc - band -> prcs ;\n prcxind = prcno % rlvl -> numhprcs ;\n prcyind = prcno / rlvl -> numhprcs ;\n prc -> band = band ;\n tlprctlx = JPC_FLOORTOMULTPOW2 ( rlvl -> tlx , rlvl -> prcwidthexpn ) ;\n tlprctly = JPC_FLOORTOMULTPOW2 ( rlvl -> tly , rlvl -> prcheightexpn ) ;\n if ( ! rlvlno ) {\n tlcbgtlx = tlprctlx ;\n tlcbgtly = tlprctly ;\n }\n else {\n tlcbgtlx = JPC_CEILDIVPOW2 ( tlprctlx , 1 ) ;\n tlcbgtly = JPC_CEILDIVPOW2 ( tlprctly , 1 ) ;\n }\n cbgtlx = tlcbgtlx + ( prcxind << rlvl -> cbgwidthexpn ) ;\n cbgtly = tlcbgtly + ( prcyind << rlvl -> cbgheightexpn ) ;\n prc -> tlx = JAS_MAX ( jas_seq2d_xstart ( band -> data ) , cbgtlx ) ;\n prc -> tly = JAS_MAX ( jas_seq2d_ystart ( band -> data ) , cbgtly ) ;\n prc -> brx = JAS_MIN ( jas_seq2d_xend ( band -> data ) , cbgtlx + ( 1 << rlvl -> cbgwidthexpn ) ) ;\n prc -> bry = JAS_MIN ( jas_seq2d_yend ( band -> data ) , cbgtly + ( 1 << rlvl -> cbgheightexpn ) ) ;\n if ( prc -> tlx < prc -> brx && prc -> tly < prc -> bry ) {\n tlcblktlx = JPC_FLOORTOMULTPOW2 ( prc -> tlx , rlvl -> cblkwidthexpn ) ;\n tlcblktly = JPC_FLOORTOMULTPOW2 ( prc -> tly , rlvl -> cblkheightexpn ) ;\n brcblkbrx = JPC_CEILTOMULTPOW2 ( prc -> brx , rlvl -> cblkwidthexpn ) ;\n brcblkbry = JPC_CEILTOMULTPOW2 ( prc -> bry , rlvl -> cblkheightexpn ) ;\n prc -> numhcblks = JPC_FLOORDIVPOW2 ( brcblkbrx - tlcblktlx , rlvl -> cblkwidthexpn ) ;\n prc -> numvcblks = JPC_FLOORDIVPOW2 ( brcblkbry - tlcblktly , rlvl -> cblkheightexpn ) ;\n prc -> numcblks = prc -> numhcblks * prc -> numvcblks ;\n if ( ! ( prc -> incltree = jpc_tagtree_create ( prc -> numhcblks , prc -> numvcblks ) ) ) {\n goto error ;\n }\n if ( ! ( prc -> nlibtree = jpc_tagtree_create ( prc -> numhcblks , prc -> numvcblks ) ) ) {\n goto error ;\n }\n if ( ! ( prc -> savincltree = jpc_tagtree_create ( prc -> numhcblks , prc -> numvcblks ) ) ) {\n goto error ;\n }\n if ( ! ( prc -> savnlibtree = jpc_tagtree_create ( prc -> numhcblks , prc -> numvcblks ) ) ) {\n goto error ;\n }\n if ( ! ( prc -> cblks = jas_alloc2 ( prc -> numcblks , sizeof ( jpc_enc_cblk_t ) ) ) ) {\n goto error ;\n }\n for ( cblkno = 0 , cblk = prc -> cblks ;\n cblkno < prc -> numcblks ;\n ++ cblkno , ++ cblk ) {\n cblk -> passes = 0 ;\n cblk -> stream = 0 ;\n cblk -> mqenc = 0 ;\n cblk -> data = 0 ;\n cblk -> flags = 0 ;\n cblk -> prc = prc ;\n }\n for ( cblkno = 0 , cblk = prc -> cblks ;\n cblkno < prc -> numcblks ;\n ++ cblkno , ++ cblk ) {\n if ( ! cblk_create ( cblk , cp , prc ) ) {\n goto error ;\n }\n }\n }\n else {\n prc -> tlx = prc -> brx ;\n prc -> tly = prc -> bry ;\n prc -> numcblks = 0 ;\n prc -> numhcblks = 0 ;\n prc -> numvcblks = 0 ;\n prc -> cblks = 0 ;\n prc -> incltree = 0 ;\n prc -> nlibtree = 0 ;\n prc -> savincltree = 0 ;\n prc -> savnlibtree = 0 ;\n }\n return prc ;\n error : prc_destroy ( prc ) ;\n return 0 ;\n }"}
{"idx": 6601, "target": 0, "func": "static inline int mpeg2_fast_decode_block_intra ( MpegEncContext * s , int16_t * block , int n ) {\n int level , dc , diff , j , run ;\n int component ;\n RLTable * rl ;\n uint8_t * scantable = s -> intra_scantable . permutated ;\n const uint16_t * quant_matrix ;\n const int qscale = s -> qscale ;\n if ( n < 4 ) {\n quant_matrix = s -> intra_matrix ;\n component = 0 ;\n }\n else {\n quant_matrix = s -> chroma_intra_matrix ;\n component = ( n & 1 ) + 1 ;\n }\n diff = decode_dc ( & s -> gb , component ) ;\n if ( diff >= 0xffff ) return - 1 ;\n dc = s -> last_dc [ component ] ;\n dc += diff ;\n s -> last_dc [ component ] = dc ;\n block [ 0 ] = dc << ( 3 - s -> intra_dc_precision ) ;\n if ( s -> intra_vlc_format ) rl = & ff_rl_mpeg2 ;\n else rl = & ff_rl_mpeg1 ;\n {\n OPEN_READER ( re , & s -> gb ) ;\n for ( ;\n ;\n ) {\n UPDATE_CACHE ( re , & s -> gb ) ;\n GET_RL_VLC ( level , run , re , & s -> gb , rl -> rl_vlc [ 0 ] , TEX_VLC_BITS , 2 , 0 ) ;\n if ( level == 127 ) {\n break ;\n }\n else if ( level != 0 ) {\n scantable += run ;\n j = * scantable ;\n level = ( level * qscale * quant_matrix [ j ] ) >> 4 ;\n level = ( level ^ SHOW_SBITS ( re , & s -> gb , 1 ) ) - SHOW_SBITS ( re , & s -> gb , 1 ) ;\n LAST_SKIP_BITS ( re , & s -> gb , 1 ) ;\n }\n else {\n run = SHOW_UBITS ( re , & s -> gb , 6 ) + 1 ;\n LAST_SKIP_BITS ( re , & s -> gb , 6 ) ;\n UPDATE_CACHE ( re , & s -> gb ) ;\n level = SHOW_SBITS ( re , & s -> gb , 12 ) ;\n SKIP_BITS ( re , & s -> gb , 12 ) ;\n scantable += run ;\n j = * scantable ;\n if ( level < 0 ) {\n level = ( - level * qscale * quant_matrix [ j ] ) >> 4 ;\n level = - level ;\n }\n else {\n level = ( level * qscale * quant_matrix [ j ] ) >> 4 ;\n }\n }\n block [ j ] = level ;\n }\n CLOSE_READER ( re , & s -> gb ) ;\n }\n s -> block_last_index [ n ] = scantable - s -> intra_scantable . permutated ;\n return 0 ;\n }"}
{"idx": 6602, "target": 0, "func": "static void pk_transaction_search_groups ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) {\n gboolean ret ;\n guint i ;\n PkBitfield filter ;\n g_autofree gchar * * values = NULL ;\n g_autoptr ( GError ) error = NULL ;\n g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;\n g_return_if_fail ( transaction -> priv -> tid != NULL ) ;\n g_variant_get ( params , \"(t^a&s)\" , & filter , & values ) ;\n g_debug ( \"SearchGroups method called: %\" G_GUINT64_FORMAT \", %s\" , filter , values [ 0 ] ) ;\n if ( ! pk_backend_is_implemented ( transaction -> priv -> backend , PK_ROLE_ENUM_SEARCH_GROUP ) ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NOT_SUPPORTED , \"SearchGroups not supported by backend\" ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n ret = pk_transaction_search_check ( values , & error ) ;\n if ( ! ret ) {\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n for ( i = 0 ;\n values [ i ] != NULL ;\n i ++ ) {\n if ( strstr ( values [ i ] , \" \" ) != NULL ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_SEARCH_INVALID , \"Invalid search containing spaces\" ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n }\n transaction -> priv -> cached_filters = filter ;\n transaction -> priv -> cached_values = g_strdupv ( values ) ;\n pk_transaction_set_role ( transaction , PK_ROLE_ENUM_SEARCH_GROUP ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_READY ) ;\n out : pk_transaction_dbus_return ( context , error ) ;\n }"}
{"idx": 6603, "target": 0, "func": "TSFile TSfopen ( const char * filename , const char * mode ) {\n FileImpl * file ;\n file = new FileImpl ;\n if ( ! file -> fopen ( filename , mode ) ) {\n delete file ;\n return nullptr ;\n }\n return ( TSFile ) file ;\n }"}
{"idx": 6604, "target": 0, "func": "static hb_ ## name ## _t * _hb_ ## name ## _reference ( const hb_ ## name ## _t * l ) {\n hb_ ## name ## _t * c = ( hb_ ## name ## _t * ) calloc ( 1 , sizeof ( hb_ ## name ## _t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * l ;\n return c ;\n }\n static void _hb_ ## name ## _destroy ( hb_ ## name ## _t * l ) {\n free ( l ) ;\n }\n HB_DEFINE_BOXED_TYPE ( name , _hb_ ## name ## _reference , _hb_ ## name ## _destroy ) ;\n HB_DEFINE_OBJECT_TYPE ( buffer ) HB_DEFINE_OBJECT_TYPE ( blob ) HB_DEFINE_OBJECT_TYPE ( face ) HB_DEFINE_OBJECT_TYPE ( font ) HB_DEFINE_OBJECT_TYPE ( font_funcs ) HB_DEFINE_OBJECT_TYPE ( set ) HB_DEFINE_OBJECT_TYPE ( shape_plan ) HB_DEFINE_OBJECT_TYPE ( unicode_funcs ) HB_DEFINE_VALUE_TYPE ( feature ) HB_DEFINE_VALUE_TYPE ( glyph_info ) HB_DEFINE_VALUE_TYPE ( glyph_position ) HB_DEFINE_VALUE_TYPE ( segment_properties ) HB_DEFINE_VALUE_TYPE ( user_data_key )"}
{"idx": 6605, "target": 0, "func": "jas_stream_t * jas_stream_fdopen ( int fd , const char * mode ) {\n jas_stream_t * stream ;\n jas_stream_fileobj_t * obj ;\n if ( ! ( stream = jas_stream_create ( ) ) ) {\n return 0 ;\n }\n stream -> openmode_ = jas_strtoopenmode ( mode ) ;\n # if defined ( WIN32 ) if ( stream -> openmode_ & JAS_STREAM_BINARY ) {\n setmode ( fd , O_BINARY ) ;\n }\n # endif if ( ! ( obj = jas_malloc ( sizeof ( jas_stream_fileobj_t ) ) ) ) {\n jas_stream_destroy ( stream ) ;\n return 0 ;\n }\n obj -> fd = fd ;\n obj -> flags = 0 ;\n obj -> pathname [ 0 ] = '\\0' ;\n stream -> obj_ = ( void * ) obj ;\n obj -> flags |= JAS_STREAM_FILEOBJ_NOCLOSE ;\n jas_stream_initbuf ( stream , JAS_STREAM_FULLBUF , 0 , 0 ) ;\n stream -> ops_ = & jas_stream_fileops ;\n return stream ;\n }"}
{"idx": 6606, "target": 0, "func": "TSReturnCode TSHttpTxnCloseAfterResponse ( TSHttpTxn txnp , int should_close ) {\n if ( sdk_sanity_check_txn ( txnp ) != TS_SUCCESS ) {\n return TS_ERROR ;\n }\n HttpSM * sm = ( HttpSM * ) txnp ;\n if ( should_close ) {\n sm -> t_state . client_info . keep_alive = HTTP_NO_KEEPALIVE ;\n if ( sm -> ua_session ) {\n sm -> set_ua_half_close_flag ( ) ;\n }\n }\n else if ( sm -> t_state . client_info . keep_alive == HTTP_NO_KEEPALIVE ) {\n sm -> t_state . client_info . keep_alive = HTTP_KEEPALIVE ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 6607, "target": 0, "func": "const char * SSL_alert_type_string_long ( int value ) {\n value >>= 8 ;\n if ( value == SSL3_AL_WARNING ) return ( \"warning\" ) ;\n else if ( value == SSL3_AL_FATAL ) return ( \"fatal\" ) ;\n else return ( \"unknown\" ) ;\n }"}
{"idx": 6608, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PrefsFunctionalTest , TestHomepageNewTabpagePrefs ) {\n EXPECT_TRUE ( browser ( ) -> profile ( ) -> GetPrefs ( ) -> GetBoolean ( prefs : : kHomePageIsNewTabPage ) ) ;\n }"}
{"idx": 6609, "target": 0, "func": "static int get_minq_index ( double maxq , double x3 , double x2 , double x1 , vpx_bit_depth_t bit_depth ) {\n int i ;\n const double minqtarget = MIN ( ( ( x3 * maxq + x2 ) * maxq + x1 ) * maxq , maxq ) ;\n if ( minqtarget <= 2.0 ) return 0 ;\n for ( i = 0 ;\n i < QINDEX_RANGE ;\n i ++ ) {\n if ( minqtarget <= vp9_convert_qindex_to_q ( i , bit_depth ) ) return i ;\n }\n return QINDEX_RANGE - 1 ;\n }"}
{"idx": 6610, "target": 0, "func": "static ssize_t write_iso9660_data ( struct archive_write * a , const void * buff , size_t s ) {\n struct iso9660 * iso9660 = a -> format_data ;\n size_t ws ;\n if ( iso9660 -> temp_fd < 0 ) {\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"Couldn't create temporary file\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n ws = s ;\n if ( iso9660 -> need_multi_extent && ( iso9660 -> cur_file -> cur_content -> size + ws ) >= ( MULTI_EXTENT_SIZE - LOGICAL_BLOCK_SIZE ) ) {\n struct content * con ;\n size_t ts ;\n ts = ( size_t ) ( MULTI_EXTENT_SIZE - LOGICAL_BLOCK_SIZE - iso9660 -> cur_file -> cur_content -> size ) ;\n if ( iso9660 -> zisofs . detect_magic ) zisofs_detect_magic ( a , buff , ts ) ;\n if ( iso9660 -> zisofs . making ) {\n if ( zisofs_write_to_temp ( a , buff , ts ) != ARCHIVE_OK ) return ( ARCHIVE_FATAL ) ;\n }\n else {\n if ( wb_write_to_temp ( a , buff , ts ) != ARCHIVE_OK ) return ( ARCHIVE_FATAL ) ;\n iso9660 -> cur_file -> cur_content -> size += ts ;\n }\n if ( wb_write_padding_to_temp ( a , iso9660 -> cur_file -> cur_content -> size ) != ARCHIVE_OK ) return ( ARCHIVE_FATAL ) ;\n iso9660 -> cur_file -> cur_content -> blocks = ( int ) ( ( iso9660 -> cur_file -> cur_content -> size + LOGICAL_BLOCK_SIZE - 1 ) >> LOGICAL_BLOCK_BITS ) ;\n ws -= ts ;\n buff = ( const void * ) ( ( ( const unsigned char * ) buff ) + ts ) ;\n con = calloc ( 1 , sizeof ( * con ) ) ;\n if ( con == NULL ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate content data\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n con -> offset_of_temp = wb_offset ( a ) ;\n iso9660 -> cur_file -> cur_content -> next = con ;\n iso9660 -> cur_file -> cur_content = con ;\n # ifdef HAVE_ZLIB_H iso9660 -> zisofs . block_offset = 0 ;\n # endif }\n if ( iso9660 -> zisofs . detect_magic ) zisofs_detect_magic ( a , buff , ws ) ;\n if ( iso9660 -> zisofs . making ) {\n if ( zisofs_write_to_temp ( a , buff , ws ) != ARCHIVE_OK ) return ( ARCHIVE_FATAL ) ;\n }\n else {\n if ( wb_write_to_temp ( a , buff , ws ) != ARCHIVE_OK ) return ( ARCHIVE_FATAL ) ;\n iso9660 -> cur_file -> cur_content -> size += ws ;\n }\n return ( s ) ;\n }"}
{"idx": 6611, "target": 0, "func": "static int sse_mb ( MpegEncContext * s ) {\n int w = 16 ;\n int h = 16 ;\n if ( s -> mb_x * 16 + 16 > s -> width ) w = s -> width - s -> mb_x * 16 ;\n if ( s -> mb_y * 16 + 16 > s -> height ) h = s -> height - s -> mb_y * 16 ;\n if ( w == 16 && h == 16 ) if ( s -> avctx -> mb_cmp == FF_CMP_NSSE ) {\n return s -> dsp . nsse [ 0 ] ( s , s -> new_picture . f . data [ 0 ] + s -> mb_x * 16 + s -> mb_y * s -> linesize * 16 , s -> dest [ 0 ] , s -> linesize , 16 ) + s -> dsp . nsse [ 1 ] ( s , s -> new_picture . f . data [ 1 ] + s -> mb_x * 8 + s -> mb_y * s -> uvlinesize * 8 , s -> dest [ 1 ] , s -> uvlinesize , 8 ) + s -> dsp . nsse [ 1 ] ( s , s -> new_picture . f . data [ 2 ] + s -> mb_x * 8 + s -> mb_y * s -> uvlinesize * 8 , s -> dest [ 2 ] , s -> uvlinesize , 8 ) ;\n }\n else {\n return s -> dsp . sse [ 0 ] ( NULL , s -> new_picture . f . data [ 0 ] + s -> mb_x * 16 + s -> mb_y * s -> linesize * 16 , s -> dest [ 0 ] , s -> linesize , 16 ) + s -> dsp . sse [ 1 ] ( NULL , s -> new_picture . f . data [ 1 ] + s -> mb_x * 8 + s -> mb_y * s -> uvlinesize * 8 , s -> dest [ 1 ] , s -> uvlinesize , 8 ) + s -> dsp . sse [ 1 ] ( NULL , s -> new_picture . f . data [ 2 ] + s -> mb_x * 8 + s -> mb_y * s -> uvlinesize * 8 , s -> dest [ 2 ] , s -> uvlinesize , 8 ) ;\n }\n else return sse ( s , s -> new_picture . f . data [ 0 ] + s -> mb_x * 16 + s -> mb_y * s -> linesize * 16 , s -> dest [ 0 ] , w , h , s -> linesize ) + sse ( s , s -> new_picture . f . data [ 1 ] + s -> mb_x * 8 + s -> mb_y * s -> uvlinesize * 8 , s -> dest [ 1 ] , w >> 1 , h >> 1 , s -> uvlinesize ) + sse ( s , s -> new_picture . f . data [ 2 ] + s -> mb_x * 8 + s -> mb_y * s -> uvlinesize * 8 , s -> dest [ 2 ] , w >> 1 , h >> 1 , s -> uvlinesize ) ;\n }"}
{"idx": 6612, "target": 0, "func": "static inline void pfkey_hdr_dup ( struct sadb_msg * new , const struct sadb_msg * orig ) {\n * new = * orig ;\n }"}
{"idx": 6613, "target": 0, "func": "static void test_prepare_noparam ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n MYSQL_RES * result ;\n char query [ MAX_TEST_QUERY_LENGTH ] ;\n myheader ( \"test_prepare_noparam\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS my_prepare\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE my_prepare(col1 int, col2 varchar(50))\" ) ;\n myquery ( rc ) ;\n strmov ( query , \"INSERT INTO my_prepare VALUES(10, 'venu')\" ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 0 ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"SELECT * FROM my_prepare\" ) ;\n myquery ( rc ) ;\n result = mysql_store_result ( mysql ) ;\n mytest ( result ) ;\n rc = my_process_result_set ( result ) ;\n DIE_UNLESS ( rc == 1 ) ;\n mysql_free_result ( result ) ;\n }"}
{"idx": 6614, "target": 1, "func": "static int dissect_h225_GatekeeperRejectReason ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 592 \"./asn1/h225/h225.cnf\" gint32 value ;\n h225_packet_info * h225_pi ;\n h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_GatekeeperRejectReason , GatekeeperRejectReason_choice , & value ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> reason = value ;\n }\n return offset ;\n }"}
{"idx": 6615, "target": 0, "func": "static int synth_superframe ( AVCodecContext * ctx , AVFrame * frame , int * got_frame_ptr ) {\n WMAVoiceContext * s = ctx -> priv_data ;\n GetBitContext * gb = & s -> gb , s_gb ;\n int n , res , n_samples = 480 ;\n double lsps [ MAX_FRAMES ] [ MAX_LSPS ] ;\n const double * mean_lsf = s -> lsps == 16 ? wmavoice_mean_lsf16 [ s -> lsp_def_mode ] : wmavoice_mean_lsf10 [ s -> lsp_def_mode ] ;\n float excitation [ MAX_SIGNAL_HISTORY + MAX_SFRAMESIZE + 12 ] ;\n float synth [ MAX_LSPS + MAX_SFRAMESIZE ] ;\n float * samples ;\n memcpy ( synth , s -> synth_history , s -> lsps * sizeof ( * synth ) ) ;\n memcpy ( excitation , s -> excitation_history , s -> history_nsamples * sizeof ( * excitation ) ) ;\n if ( s -> sframe_cache_size > 0 ) {\n gb = & s_gb ;\n init_get_bits ( gb , s -> sframe_cache , s -> sframe_cache_size ) ;\n s -> sframe_cache_size = 0 ;\n }\n if ( ( res = check_bits_for_superframe ( gb , s ) ) == 1 ) {\n * got_frame_ptr = 0 ;\n return 1 ;\n }\n if ( ! get_bits1 ( gb ) ) {\n av_log_missing_feature ( ctx , \"WMAPro-in-WMAVoice\" , 1 ) ;\n return AVERROR_PATCHWELCOME ;\n }\n if ( get_bits1 ( gb ) ) {\n if ( ( n_samples = get_bits ( gb , 12 ) ) > 480 ) {\n av_log ( ctx , AV_LOG_ERROR , \"Superframe encodes >480 samples (%d), not allowed\\n\" , n_samples ) ;\n return - 1 ;\n }\n }\n if ( s -> has_residual_lsps ) {\n double prev_lsps [ MAX_LSPS ] , a1 [ MAX_LSPS * 2 ] , a2 [ MAX_LSPS * 2 ] ;\n for ( n = 0 ;\n n < s -> lsps ;\n n ++ ) prev_lsps [ n ] = s -> prev_lsps [ n ] - mean_lsf [ n ] ;\n if ( s -> lsps == 10 ) {\n dequant_lsp10r ( gb , lsps [ 2 ] , prev_lsps , a1 , a2 , s -> lsp_q_mode ) ;\n }\n else dequant_lsp16r ( gb , lsps [ 2 ] , prev_lsps , a1 , a2 , s -> lsp_q_mode ) ;\n for ( n = 0 ;\n n < s -> lsps ;\n n ++ ) {\n lsps [ 0 ] [ n ] = mean_lsf [ n ] + ( a1 [ n ] - a2 [ n * 2 ] ) ;\n lsps [ 1 ] [ n ] = mean_lsf [ n ] + ( a1 [ s -> lsps + n ] - a2 [ n * 2 + 1 ] ) ;\n lsps [ 2 ] [ n ] += mean_lsf [ n ] ;\n }\n for ( n = 0 ;\n n < 3 ;\n n ++ ) stabilize_lsps ( lsps [ n ] , s -> lsps ) ;\n }\n frame -> nb_samples = 480 ;\n if ( ( res = ff_get_buffer ( ctx , frame , 0 ) ) < 0 ) {\n av_log ( ctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return res ;\n }\n frame -> nb_samples = n_samples ;\n samples = ( float * ) frame -> data [ 0 ] ;\n for ( n = 0 ;\n n < 3 ;\n n ++ ) {\n if ( ! s -> has_residual_lsps ) {\n int m ;\n if ( s -> lsps == 10 ) {\n dequant_lsp10i ( gb , lsps [ n ] ) ;\n }\n else dequant_lsp16i ( gb , lsps [ n ] ) ;\n for ( m = 0 ;\n m < s -> lsps ;\n m ++ ) lsps [ n ] [ m ] += mean_lsf [ m ] ;\n stabilize_lsps ( lsps [ n ] , s -> lsps ) ;\n }\n if ( ( res = synth_frame ( ctx , gb , n , & samples [ n * MAX_FRAMESIZE ] , lsps [ n ] , n == 0 ? s -> prev_lsps : lsps [ n - 1 ] , & excitation [ s -> history_nsamples + n * MAX_FRAMESIZE ] , & synth [ s -> lsps + n * MAX_FRAMESIZE ] ) ) ) {\n * got_frame_ptr = 0 ;\n return res ;\n }\n }\n if ( get_bits1 ( gb ) ) {\n res = get_bits ( gb , 4 ) ;\n skip_bits ( gb , 10 * ( res + 1 ) ) ;\n }\n * got_frame_ptr = 1 ;\n memcpy ( s -> prev_lsps , lsps [ 2 ] , s -> lsps * sizeof ( * s -> prev_lsps ) ) ;\n memcpy ( s -> synth_history , & synth [ MAX_SFRAMESIZE ] , s -> lsps * sizeof ( * synth ) ) ;\n memcpy ( s -> excitation_history , & excitation [ MAX_SFRAMESIZE ] , s -> history_nsamples * sizeof ( * excitation ) ) ;\n if ( s -> do_apf ) memmove ( s -> zero_exc_pf , & s -> zero_exc_pf [ MAX_SFRAMESIZE ] , s -> history_nsamples * sizeof ( * s -> zero_exc_pf ) ) ;\n return 0 ;\n }"}
{"idx": 6616, "target": 0, "func": "fz_colorspace * fz_default_output_intent ( fz_context * ctx , const fz_default_colorspaces * default_cs ) {\n if ( default_cs ) return default_cs -> oi ;\n else return NULL ;\n }"}
{"idx": 6617, "target": 0, "func": "static int mpeg4_decode_partition_a ( MpegEncContext * s ) {\n int mb_num ;\n static const int8_t quant_tab [ 4 ] = {\n - 1 , - 2 , 1 , 2 }\n ;\n mb_num = 0 ;\n s -> first_slice_line = 1 ;\n for ( ;\n s -> mb_y < s -> mb_height ;\n s -> mb_y ++ ) {\n ff_init_block_index ( s ) ;\n for ( ;\n s -> mb_x < s -> mb_width ;\n s -> mb_x ++ ) {\n const int xy = s -> mb_x + s -> mb_y * s -> mb_stride ;\n int cbpc ;\n int dir = 0 ;\n mb_num ++ ;\n ff_update_block_index ( s ) ;\n if ( s -> mb_x == s -> resync_mb_x && s -> mb_y == s -> resync_mb_y + 1 ) s -> first_slice_line = 0 ;\n if ( s -> pict_type == AV_PICTURE_TYPE_I ) {\n int i ;\n do {\n if ( show_bits_long ( & s -> gb , 19 ) == DC_MARKER ) {\n return mb_num - 1 ;\n }\n cbpc = get_vlc2 ( & s -> gb , ff_h263_intra_MCBPC_vlc . table , INTRA_MCBPC_VLC_BITS , 2 ) ;\n if ( cbpc < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"cbpc corrupted at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n }\n while ( cbpc == 8 ) ;\n s -> cbp_table [ xy ] = cbpc & 3 ;\n s -> current_picture . mb_type [ xy ] = MB_TYPE_INTRA ;\n s -> mb_intra = 1 ;\n if ( cbpc & 4 ) {\n ff_set_qscale ( s , s -> qscale + quant_tab [ get_bits ( & s -> gb , 2 ) ] ) ;\n }\n s -> current_picture . qscale_table [ xy ] = s -> qscale ;\n s -> mbintra_table [ xy ] = 1 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n int dc_pred_dir ;\n int dc = mpeg4_decode_dc ( s , i , & dc_pred_dir ) ;\n if ( dc < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"DC corrupted at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n dir <<= 1 ;\n if ( dc_pred_dir ) dir |= 1 ;\n }\n s -> pred_dir_table [ xy ] = dir ;\n }\n else {\n int mx , my , pred_x , pred_y , bits ;\n int16_t * const mot_val = s -> current_picture . motion_val [ 0 ] [ s -> block_index [ 0 ] ] ;\n const int stride = s -> b8_stride * 2 ;\n try_again : bits = show_bits ( & s -> gb , 17 ) ;\n if ( bits == MOTION_MARKER ) {\n return mb_num - 1 ;\n }\n skip_bits1 ( & s -> gb ) ;\n if ( bits & 0x10000 ) {\n if ( s -> pict_type == AV_PICTURE_TYPE_S && s -> vol_sprite_usage == GMC_SPRITE ) {\n s -> current_picture . mb_type [ xy ] = MB_TYPE_SKIP | MB_TYPE_16x16 | MB_TYPE_GMC | MB_TYPE_L0 ;\n mx = get_amv ( s , 0 ) ;\n my = get_amv ( s , 1 ) ;\n }\n else {\n s -> current_picture . mb_type [ xy ] = MB_TYPE_SKIP | MB_TYPE_16x16 | MB_TYPE_L0 ;\n mx = my = 0 ;\n }\n mot_val [ 0 ] = mot_val [ 2 ] = mot_val [ 0 + stride ] = mot_val [ 2 + stride ] = mx ;\n mot_val [ 1 ] = mot_val [ 3 ] = mot_val [ 1 + stride ] = mot_val [ 3 + stride ] = my ;\n if ( s -> mbintra_table [ xy ] ) ff_clean_intra_table_entries ( s ) ;\n continue ;\n }\n cbpc = get_vlc2 ( & s -> gb , ff_h263_inter_MCBPC_vlc . table , INTER_MCBPC_VLC_BITS , 2 ) ;\n if ( cbpc < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"cbpc corrupted at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n if ( cbpc == 20 ) goto try_again ;\n s -> cbp_table [ xy ] = cbpc & ( 8 + 3 ) ;\n s -> mb_intra = ( ( cbpc & 4 ) != 0 ) ;\n if ( s -> mb_intra ) {\n s -> current_picture . mb_type [ xy ] = MB_TYPE_INTRA ;\n s -> mbintra_table [ xy ] = 1 ;\n mot_val [ 0 ] = mot_val [ 2 ] = mot_val [ 0 + stride ] = mot_val [ 2 + stride ] = 0 ;\n mot_val [ 1 ] = mot_val [ 3 ] = mot_val [ 1 + stride ] = mot_val [ 3 + stride ] = 0 ;\n }\n else {\n if ( s -> mbintra_table [ xy ] ) ff_clean_intra_table_entries ( s ) ;\n if ( s -> pict_type == AV_PICTURE_TYPE_S && s -> vol_sprite_usage == GMC_SPRITE && ( cbpc & 16 ) == 0 ) s -> mcsel = get_bits1 ( & s -> gb ) ;\n else s -> mcsel = 0 ;\n if ( ( cbpc & 16 ) == 0 ) {\n ff_h263_pred_motion ( s , 0 , 0 , & pred_x , & pred_y ) ;\n if ( ! s -> mcsel ) {\n mx = ff_h263_decode_motion ( s , pred_x , s -> f_code ) ;\n if ( mx >= 0xffff ) return - 1 ;\n my = ff_h263_decode_motion ( s , pred_y , s -> f_code ) ;\n if ( my >= 0xffff ) return - 1 ;\n s -> current_picture . mb_type [ xy ] = MB_TYPE_16x16 | MB_TYPE_L0 ;\n }\n else {\n mx = get_amv ( s , 0 ) ;\n my = get_amv ( s , 1 ) ;\n s -> current_picture . mb_type [ xy ] = MB_TYPE_16x16 | MB_TYPE_GMC | MB_TYPE_L0 ;\n }\n mot_val [ 0 ] = mot_val [ 2 ] = mot_val [ 0 + stride ] = mot_val [ 2 + stride ] = mx ;\n mot_val [ 1 ] = mot_val [ 3 ] = mot_val [ 1 + stride ] = mot_val [ 3 + stride ] = my ;\n }\n else {\n int i ;\n s -> current_picture . mb_type [ xy ] = MB_TYPE_8x8 | MB_TYPE_L0 ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n int16_t * mot_val = ff_h263_pred_motion ( s , i , 0 , & pred_x , & pred_y ) ;\n mx = ff_h263_decode_motion ( s , pred_x , s -> f_code ) ;\n if ( mx >= 0xffff ) return - 1 ;\n my = ff_h263_decode_motion ( s , pred_y , s -> f_code ) ;\n if ( my >= 0xffff ) return - 1 ;\n mot_val [ 0 ] = mx ;\n mot_val [ 1 ] = my ;\n }\n }\n }\n }\n }\n s -> mb_x = 0 ;\n }\n return mb_num ;\n }"}
{"idx": 6618, "target": 0, "func": "static void invert_quant ( int16_t * quant , int16_t * shift , int d ) {\n unsigned t ;\n int l ;\n t = d ;\n for ( l = 0 ;\n t > 1 ;\n l ++ ) t >>= 1 ;\n t = 1 + ( 1 << ( 16 + l ) ) / d ;\n * quant = ( int16_t ) ( t - ( 1 << 16 ) ) ;\n * shift = 1 << ( 16 - l ) ;\n }"}
{"idx": 6619, "target": 1, "func": "void vp9_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint8_t * dst , ptrdiff_t stride , const uint8_t * above , const uint8_t * left ) {\n type ## _predictor ( dst , stride , size , above , left ) ;\n }\n # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) static INLINE void d207_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n intra_pred_allsizes ( d207 ) static INLINE void d63_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d63 ) static INLINE void d45_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r + c + 2 < bs * 2 ? ROUND_POWER_OF_TWO ( above [ r + c ] + above [ r + c + 1 ] * 2 + above [ r + c + 2 ] , 2 ) : above [ bs * 2 - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d45 ) static INLINE void d117_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] , 1 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 3 ;\n r < bs ;\n ++ r ) dst [ ( r - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ r - 3 ] + left [ r - 2 ] * 2 + left [ r - 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - 2 * stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d117 ) static INLINE void d135_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d135 ) static INLINE void d153_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] , 1 ) ;\n for ( r = 1 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 1 ] + left [ r ] , 1 ) ;\n dst ++ ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] * 2 + above [ c + 1 ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = dst [ - stride + c - 2 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d153 ) static INLINE void v_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memcpy ( dst , above , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( v ) static INLINE void h_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset ( dst , left [ r ] , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( h ) static INLINE void tm_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n int ytop_left = above [ - 1 ] ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = clip_pixel ( left [ r ] + above [ c ] - ytop_left ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( tm ) static INLINE void dc_128_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r ;\n ( void ) above ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset ( dst , 128 , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( dc_128 ) static INLINE void dc_left_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) above ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += left [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( dc_left )"}
{"idx": 6620, "target": 0, "func": "static int tm2_read_deltas ( TM2Context * ctx , int stream_id ) {\n int d , mb ;\n int i , v ;\n d = get_bits ( & ctx -> gb , 9 ) ;\n mb = get_bits ( & ctx -> gb , 5 ) ;\n if ( ( d < 1 ) || ( d > TM2_DELTAS ) || ( mb < 1 ) || ( mb > 32 ) ) {\n av_log ( ctx -> avctx , AV_LOG_ERROR , \"Incorrect delta table: %i deltas x %i bits\\n\" , d , mb ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( i = 0 ;\n i < d ;\n i ++ ) {\n v = get_bits_long ( & ctx -> gb , mb ) ;\n if ( v & ( 1 << ( mb - 1 ) ) ) ctx -> deltas [ stream_id ] [ i ] = v - ( 1 << mb ) ;\n else ctx -> deltas [ stream_id ] [ i ] = v ;\n }\n for ( ;\n i < TM2_DELTAS ;\n i ++ ) ctx -> deltas [ stream_id ] [ i ] = 0 ;\n return 0 ;\n }"}
{"idx": 6621, "target": 0, "func": "int StartBlob ( Archive * AHX , Oid oid ) {\n ArchiveHandle * AH = ( ArchiveHandle * ) AHX ;\n if ( ! AH -> StartBlobPtr ) exit_horribly ( modulename , \"large-object output not supported in chosen format\\n\" ) ;\n ( * AH -> StartBlobPtr ) ( AH , AH -> currToc , oid ) ;\n return 1 ;\n }"}
{"idx": 6622, "target": 0, "func": "static void cmd_window_rbalance ( void ) {\n GSList * line , * ltmp ;\n int avail_width , unit_width , bigger_units ;\n int windows , last_column , old_width ;\n MAIN_WINDOW_REC * win ;\n line = mainwindows_get_line ( WINDOW_MAIN ( active_win ) ) ;\n windows = g_slist_length ( line ) ;\n if ( windows == 1 ) {\n g_slist_free ( line ) ;\n return ;\n }\n avail_width = term_width - screen_reserved_left - screen_reserved_right - windows + 1 ;\n unit_width = avail_width / windows ;\n bigger_units = avail_width % windows ;\n last_column = screen_reserved_left ;\n for ( ltmp = line ;\n ltmp != NULL ;\n ltmp = ltmp -> next ) {\n win = ltmp -> data ;\n old_width = win -> width ;\n win -> first_column = last_column ;\n win -> last_column = win -> first_column + unit_width - 1 ;\n if ( bigger_units > 0 ) {\n win -> last_column ++ ;\n bigger_units -- ;\n }\n mainwindow_resize ( win , win -> last_column - win -> first_column + 1 - old_width , 0 ) ;\n last_column = win -> last_column + 2 ;\n }\n g_slist_free ( line ) ;\n mainwindows_redraw ( ) ;\n }"}
{"idx": 6623, "target": 0, "func": "int vp9_rc_clamp_iframe_target_size ( const VP9_COMP * const cpi , int target ) {\n const RATE_CONTROL * rc = & cpi -> rc ;\n const VP9EncoderConfig * oxcf = & cpi -> oxcf ;\n if ( oxcf -> rc_max_intra_bitrate_pct ) {\n const int max_rate = rc -> avg_frame_bandwidth * oxcf -> rc_max_intra_bitrate_pct / 100 ;\n target = MIN ( target , max_rate ) ;\n }\n if ( target > rc -> max_frame_bandwidth ) target = rc -> max_frame_bandwidth ;\n return target ;\n }"}
{"idx": 6624, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n MDECContext * const a = avctx -> priv_data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n ThreadFrame frame = {\n . f = data }\n ;\n int i , ret ;\n if ( ( ret = ff_thread_get_buffer ( avctx , & frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n frame . f -> pict_type = AV_PICTURE_TYPE_I ;\n frame . f -> key_frame = 1 ;\n av_fast_malloc ( & a -> bitstream_buffer , & a -> bitstream_buffer_size , buf_size + FF_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( ! a -> bitstream_buffer ) return AVERROR ( ENOMEM ) ;\n for ( i = 0 ;\n i < buf_size ;\n i += 2 ) {\n a -> bitstream_buffer [ i ] = buf [ i + 1 ] ;\n a -> bitstream_buffer [ i + 1 ] = buf [ i ] ;\n }\n init_get_bits ( & a -> gb , a -> bitstream_buffer , buf_size * 8 ) ;\n skip_bits ( & a -> gb , 32 ) ;\n a -> qscale = get_bits ( & a -> gb , 16 ) ;\n a -> version = get_bits ( & a -> gb , 16 ) ;\n a -> last_dc [ 0 ] = a -> last_dc [ 1 ] = a -> last_dc [ 2 ] = 128 ;\n for ( a -> mb_x = 0 ;\n a -> mb_x < a -> mb_width ;\n a -> mb_x ++ ) {\n for ( a -> mb_y = 0 ;\n a -> mb_y < a -> mb_height ;\n a -> mb_y ++ ) {\n if ( ( ret = decode_mb ( a , a -> block ) ) < 0 ) return ret ;\n idct_put ( a , frame . f , a -> mb_x , a -> mb_y ) ;\n }\n }\n * got_frame = 1 ;\n return ( get_bits_count ( & a -> gb ) + 31 ) / 32 * 4 ;\n }"}
{"idx": 6625, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n const uint8_t * buf_end = avpkt -> data + avpkt -> size ;\n int buf_size = avpkt -> size ;\n AVFrame * const p = data ;\n uint8_t * outdata ;\n int colors ;\n int i , ret ;\n uint32_t * pal ;\n int r , g , b ;\n if ( ( ret = ff_get_buffer ( avctx , p , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n p -> pict_type = AV_PICTURE_TYPE_I ;\n p -> key_frame = 1 ;\n outdata = p -> data [ 0 ] ;\n if ( buf_end - buf < 0x68 + 4 ) return AVERROR_INVALIDDATA ;\n buf += 0x68 ;\n colors = AV_RB32 ( buf ) ;\n buf += 4 ;\n if ( colors < 0 || colors > 256 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error color count - %i(0x%X)\\n\" , colors , colors ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( buf_end - buf < ( colors + 1 ) * 8 ) return AVERROR_INVALIDDATA ;\n pal = ( uint32_t * ) p -> data [ 1 ] ;\n for ( i = 0 ;\n i <= colors ;\n i ++ ) {\n unsigned int idx ;\n idx = AV_RB16 ( buf ) ;\n buf += 2 ;\n if ( idx > 255 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Palette index out of range: %u\\n\" , idx ) ;\n buf += 6 ;\n continue ;\n }\n r = * buf ++ ;\n buf ++ ;\n g = * buf ++ ;\n buf ++ ;\n b = * buf ++ ;\n buf ++ ;\n pal [ idx ] = ( r << 16 ) | ( g << 8 ) | b ;\n }\n p -> palette_has_changed = 1 ;\n if ( buf_end - buf < 18 ) return AVERROR_INVALIDDATA ;\n buf += 18 ;\n for ( i = 0 ;\n i < avctx -> height ;\n i ++ ) {\n int size , left , code , pix ;\n const uint8_t * next ;\n uint8_t * out ;\n int tsize = 0 ;\n out = outdata ;\n size = AV_RB16 ( buf ) ;\n buf += 2 ;\n if ( buf_end - buf < size ) return AVERROR_INVALIDDATA ;\n left = size ;\n next = buf + size ;\n while ( left > 0 ) {\n code = * buf ++ ;\n if ( code & 0x80 ) {\n pix = * buf ++ ;\n if ( ( out + ( 257 - code ) ) > ( outdata + p -> linesize [ 0 ] ) ) break ;\n memset ( out , pix , 257 - code ) ;\n out += 257 - code ;\n tsize += 257 - code ;\n left -= 2 ;\n }\n else {\n if ( ( out + code ) > ( outdata + p -> linesize [ 0 ] ) ) break ;\n if ( buf_end - buf < code + 1 ) return AVERROR_INVALIDDATA ;\n memcpy ( out , buf , code + 1 ) ;\n out += code + 1 ;\n buf += code + 1 ;\n left -= 2 + code ;\n tsize += code + 1 ;\n }\n }\n buf = next ;\n outdata += p -> linesize [ 0 ] ;\n }\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 6626, "target": 0, "func": "static gboolean qio_channel_websock_source_prepare ( GSource * source , gint * timeout ) {\n * timeout = - 1 ;\n return qio_channel_websock_source_check ( source ) ;\n }"}
{"idx": 6627, "target": 0, "func": "static void dissect_zcl_scenes_get_scene_membership_response ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_item * scene_list ;\n proto_tree * scene_list_tree ;\n guint8 status , count , i ;\n status = tvb_get_guint8 ( tvb , * offset ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_scenes_status , tvb , * offset , 1 , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_scenes_capacity , tvb , * offset , 1 , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_scenes_group_id , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n if ( status == ZBEE_ZCL_STAT_SUCCESS ) {\n count = tvb_get_guint8 ( tvb , * offset ) ;\n proto_tree_add_uint ( tree , hf_zbee_zcl_scenes_scene_count , tvb , * offset , 1 , count ) ;\n * offset += 1 ;\n if ( count > 0 ) {\n scene_list = proto_tree_add_item ( tree , hf_zbee_zcl_scenes_scene_list , tvb , * offset , count , ENC_NA ) ;\n scene_list_tree = proto_item_add_subtree ( scene_list , ett_zbee_zcl_scenes_scene_ctrl ) ;\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n proto_tree_add_item ( scene_list_tree , hf_zbee_zcl_scenes_scene_id , tvb , * offset , 1 , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n }\n }\n }\n }"}
{"idx": 6628, "target": 0, "func": "static void dtap_cc_call_conf ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_TRUE ;\n ELEM_OPT_TV_SHORT ( 0xd0 , GSM_A_PDU_TYPE_DTAP , DE_REPEAT_IND , \" BC repeat indicator\" ) ;\n ELEM_OPT_TLV ( 0x04 , GSM_A_PDU_TYPE_DTAP , DE_BEARER_CAP , \" 1\" ) ;\n ELEM_OPT_TLV ( 0x04 , GSM_A_PDU_TYPE_DTAP , DE_BEARER_CAP , \" 2\" ) ;\n ELEM_OPT_TLV ( 0x08 , GSM_A_PDU_TYPE_DTAP , DE_CAUSE , NULL ) ;\n ELEM_OPT_TLV ( 0x15 , GSM_A_PDU_TYPE_DTAP , DE_CC_CAP , NULL ) ;\n ELEM_OPT_TLV ( 0x2d , GSM_A_PDU_TYPE_DTAP , DE_SI , NULL ) ;\n ELEM_OPT_TLV ( 0x40 , GSM_A_PDU_TYPE_DTAP , DE_SUP_CODEC_LIST , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 6629, "target": 0, "func": "static int virLogSetDefaultOutputToStderr ( void ) {\n return virAsprintf ( & virLogDefaultOutput , \"%d:stderr\" , virLogDefaultPriority ) ;\n }"}
{"idx": 6630, "target": 0, "func": "static void test_ps_i18n ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n const char * stmt_text ;\n MYSQL_BIND bind_array [ 2 ] ;\n const char * koi8 = \"\\xee\\xd5\\x2c\\x20\\xda\\xc1\\x20\\xd2\\xd9\\xc2\\xc1\\xcc\\xcb\\xd5\" ;\n const char * cp1251 = \"\\xcd\\xf3\\x2c\\x20\\xe7\\xe0\\x20\\xf0\\xfb\\xe1\\xe0\\xeb\\xea\\xf3\" ;\n char buf1 [ 16 ] , buf2 [ 16 ] ;\n ulong buf1_len , buf2_len ;\n myheader ( \"test_ps_i18n\" ) ;\n stmt_text = \"DROP TABLE IF EXISTS t1\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt_text = \"CREATE TABLE t1 (c1 VARBINARY(255), c2 VARBINARY(255))\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt_text = \"SET CHARACTER_SET_CLIENT=koi8r, \" \"CHARACTER_SET_CONNECTION=cp1251, \" \"CHARACTER_SET_RESULTS=koi8r\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n memset ( bind_array , 0 , sizeof ( bind_array ) ) ;\n bind_array [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n bind_array [ 0 ] . buffer = ( void * ) koi8 ;\n bind_array [ 0 ] . buffer_length = strlen ( koi8 ) ;\n bind_array [ 1 ] . buffer_type = MYSQL_TYPE_STRING ;\n bind_array [ 1 ] . buffer = ( void * ) koi8 ;\n bind_array [ 1 ] . buffer_length = strlen ( koi8 ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n check_stmt ( stmt ) ;\n stmt_text = \"INSERT INTO t1 (c1, c2) VALUES (?, ?)\" ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt , rc ) ;\n mysql_stmt_bind_param ( stmt , bind_array ) ;\n mysql_stmt_send_long_data ( stmt , 0 , koi8 , strlen ( koi8 ) ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n stmt_text = \"SELECT c1, c2 FROM t1\" ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n bind_array [ 0 ] . buffer = buf1 ;\n bind_array [ 0 ] . buffer_length = sizeof ( buf1 ) ;\n bind_array [ 0 ] . length = & buf1_len ;\n bind_array [ 1 ] . buffer = buf2 ;\n bind_array [ 1 ] . buffer_length = sizeof ( buf2 ) ;\n bind_array [ 1 ] . length = & buf2_len ;\n mysql_stmt_bind_result ( stmt , bind_array ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n DIE_UNLESS ( buf1_len == strlen ( cp1251 ) ) ;\n DIE_UNLESS ( buf2_len == strlen ( cp1251 ) ) ;\n DIE_UNLESS ( ! memcmp ( buf1 , cp1251 , buf1_len ) ) ;\n DIE_UNLESS ( ! memcmp ( buf2 , cp1251 , buf1_len ) ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n stmt_text = \"DROP TABLE IF EXISTS t1\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt_text = \"CREATE TABLE t1 (c1 VARCHAR(255) CHARACTER SET cp1251, \" \"c2 VARCHAR(255) CHARACTER SET cp1251)\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt_text = \"INSERT INTO t1 (c1, c2) VALUES (?, ?)\" ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt , rc ) ;\n bind_array [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n bind_array [ 0 ] . buffer = ( void * ) koi8 ;\n bind_array [ 0 ] . buffer_length = strlen ( koi8 ) ;\n bind_array [ 1 ] . buffer_type = MYSQL_TYPE_STRING ;\n bind_array [ 1 ] . buffer = ( void * ) koi8 ;\n bind_array [ 1 ] . buffer_length = strlen ( koi8 ) ;\n mysql_stmt_bind_param ( stmt , bind_array ) ;\n mysql_stmt_send_long_data ( stmt , 0 , koi8 , strlen ( koi8 ) ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n bind_array [ 0 ] . buffer_type = MYSQL_TYPE_BLOB ;\n bind_array [ 0 ] . buffer = ( void * ) cp1251 ;\n bind_array [ 0 ] . buffer_length = strlen ( cp1251 ) ;\n bind_array [ 1 ] . buffer_type = MYSQL_TYPE_BLOB ;\n bind_array [ 1 ] . buffer = ( void * ) cp1251 ;\n bind_array [ 1 ] . buffer_length = strlen ( cp1251 ) ;\n mysql_stmt_bind_param ( stmt , bind_array ) ;\n mysql_stmt_send_long_data ( stmt , 0 , cp1251 , strlen ( cp1251 ) ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n stmt_text = \"SELECT c1, c2 FROM t1\" ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n bind_array [ 0 ] . buffer = buf1 ;\n bind_array [ 0 ] . buffer_length = sizeof ( buf1 ) ;\n bind_array [ 0 ] . length = & buf1_len ;\n bind_array [ 1 ] . buffer = buf2 ;\n bind_array [ 1 ] . buffer_length = sizeof ( buf2 ) ;\n bind_array [ 1 ] . length = & buf2_len ;\n mysql_stmt_bind_result ( stmt , bind_array ) ;\n while ( ( rc = mysql_stmt_fetch ( stmt ) ) == 0 ) {\n DIE_UNLESS ( buf1_len == strlen ( koi8 ) ) ;\n DIE_UNLESS ( buf2_len == strlen ( koi8 ) ) ;\n DIE_UNLESS ( ! memcmp ( buf1 , koi8 , buf1_len ) ) ;\n DIE_UNLESS ( ! memcmp ( buf2 , koi8 , buf1_len ) ) ;\n }\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n mysql_stmt_close ( stmt ) ;\n stmt_text = \"DROP TABLE t1\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt_text = \"SET NAMES DEFAULT\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n }"}
{"idx": 6631, "target": 0, "func": "static cmsStage * ReadCLUT ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number Offset , int InputChannels , int OutputChannels ) {\n cmsUInt8Number gridPoints8 [ cmsMAXCHANNELS ] ;\n cmsUInt32Number GridPoints [ cmsMAXCHANNELS ] , i ;\n cmsUInt8Number Precision ;\n cmsStage * CLUT ;\n _cmsStageCLutData * Data ;\n if ( ! io -> Seek ( io , Offset ) ) return NULL ;\n if ( io -> Read ( io , gridPoints8 , cmsMAXCHANNELS , 1 ) != 1 ) return NULL ;\n for ( i = 0 ;\n i < cmsMAXCHANNELS ;\n i ++ ) {\n if ( gridPoints8 [ i ] == 1 ) return NULL ;\n GridPoints [ i ] = gridPoints8 [ i ] ;\n }\n if ( ! _cmsReadUInt8Number ( io , & Precision ) ) return NULL ;\n if ( ! _cmsReadUInt8Number ( io , NULL ) ) return NULL ;\n if ( ! _cmsReadUInt8Number ( io , NULL ) ) return NULL ;\n if ( ! _cmsReadUInt8Number ( io , NULL ) ) return NULL ;\n CLUT = cmsStageAllocCLut16bitGranular ( self -> ContextID , GridPoints , InputChannels , OutputChannels , NULL ) ;\n if ( CLUT == NULL ) return NULL ;\n Data = ( _cmsStageCLutData * ) CLUT -> Data ;\n if ( Precision == 1 ) {\n cmsUInt8Number v ;\n for ( i = 0 ;\n i < Data -> nEntries ;\n i ++ ) {\n if ( io -> Read ( io , & v , sizeof ( cmsUInt8Number ) , 1 ) != 1 ) return NULL ;\n Data -> Tab . T [ i ] = FROM_8_TO_16 ( v ) ;\n }\n }\n else if ( Precision == 2 ) {\n if ( ! _cmsReadUInt16Array ( io , Data -> nEntries , Data -> Tab . T ) ) {\n cmsStageFree ( CLUT ) ;\n return NULL ;\n }\n }\n else {\n cmsStageFree ( CLUT ) ;\n cmsSignalError ( self -> ContextID , cmsERROR_UNKNOWN_EXTENSION , \"Unknown precision of '%d'\" , Precision ) ;\n return NULL ;\n }\n return CLUT ;\n }"}
{"idx": 6632, "target": 0, "func": "jas_image_fmtinfo_t * jas_image_lookupfmtbyid ( int id ) {\n int i ;\n jas_image_fmtinfo_t * fmtinfo ;\n for ( i = 0 , fmtinfo = jas_image_fmtinfos ;\n i < jas_image_numfmts ;\n ++ i , ++ fmtinfo ) {\n if ( fmtinfo -> id == id ) {\n return fmtinfo ;\n }\n }\n return 0 ;\n }"}
{"idx": 6633, "target": 0, "func": "unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 ) VAR ( 8 , 4 ) SUBPIX_VAR ( 8 , 4 ) SUBPIX_AVG_VAR ( 8 , 4 )"}
{"idx": 6634, "target": 0, "func": "void compute_precache_lut ( uint8_t * output , uint16_t * table , int length ) {\n uint32_t v = 0 ;\n for ( v = 0 ;\n v < PRECACHE_OUTPUT_SIZE ;\n v ++ ) {\n output [ v ] = lut_interp_linear_precache_output ( v , table , length ) ;\n }\n }"}
{"idx": 6635, "target": 1, "func": "static int get_pred_buffer ( PRED_BUFFER * p , int len ) {\n int i ;\n for ( i = 0 ;\n i < len ;\n i ++ ) {\n if ( ! p [ i ] . in_use ) {\n p [ i ] . in_use = 1 ;\n return i ;\n }\n }\n return - 1 ;\n }"}
{"idx": 6636, "target": 0, "func": "void vp8_regular_quantize_b_c ( BLOCK * b , BLOCKD * d ) {\n int i , rc , eob ;\n int zbin ;\n int x , y , z , sz ;\n short * zbin_boost_ptr = b -> zrun_zbin_boost ;\n short * coeff_ptr = b -> coeff ;\n short * zbin_ptr = b -> zbin ;\n short * round_ptr = b -> round ;\n short * quant_ptr = b -> quant ;\n short * quant_shift_ptr = b -> quant_shift ;\n short * qcoeff_ptr = d -> qcoeff ;\n short * dqcoeff_ptr = d -> dqcoeff ;\n short * dequant_ptr = d -> dequant ;\n short zbin_oq_value = b -> zbin_extra ;\n vpx_memset ( qcoeff_ptr , 0 , 32 ) ;\n vpx_memset ( dqcoeff_ptr , 0 , 32 ) ;\n eob = - 1 ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n rc = vp8_default_zig_zag1d [ i ] ;\n z = coeff_ptr [ rc ] ;\n zbin = zbin_ptr [ rc ] + * zbin_boost_ptr + zbin_oq_value ;\n zbin_boost_ptr ++ ;\n sz = ( z >> 31 ) ;\n x = ( z ^ sz ) - sz ;\n if ( x >= zbin ) {\n x += round_ptr [ rc ] ;\n y = ( ( ( ( x * quant_ptr [ rc ] ) >> 16 ) + x ) * quant_shift_ptr [ rc ] ) >> 16 ;\n x = ( y ^ sz ) - sz ;\n qcoeff_ptr [ rc ] = x ;\n dqcoeff_ptr [ rc ] = x * dequant_ptr [ rc ] ;\n if ( y ) {\n eob = i ;\n zbin_boost_ptr = b -> zrun_zbin_boost ;\n }\n }\n }\n * d -> eob = ( char ) ( eob + 1 ) ;\n }"}
{"idx": 6637, "target": 0, "func": "void luaD_growstack ( lua_State * L , int n ) {\n if ( n <= L -> stacksize ) luaD_reallocstack ( L , 2 * L -> stacksize ) ;\n else luaD_reallocstack ( L , L -> stacksize + n ) ;\n }"}
{"idx": 6638, "target": 0, "func": "GList * completion_get_servertags ( const char * word ) {\n GList * list ;\n GSList * tmp ;\n int len ;\n g_return_val_if_fail ( word != NULL , NULL ) ;\n len = strlen ( word ) ;\n list = NULL ;\n for ( tmp = servers ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n SERVER_REC * rec = tmp -> data ;\n if ( g_ascii_strncasecmp ( rec -> tag , word , len ) == 0 ) {\n if ( rec == active_win -> active_server ) list = g_list_prepend ( list , g_strdup ( rec -> tag ) ) ;\n else list = g_list_append ( list , g_strdup ( rec -> tag ) ) ;\n }\n }\n return list ;\n }"}
{"idx": 6639, "target": 0, "func": "int TSMimeHdrFieldValueIntGet ( TSMBuffer bufp , TSMLoc hdr , TSMLoc field , int idx ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( hdr ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( hdr ) == TS_SUCCESS ) ) ;\n sdk_assert ( sdk_sanity_check_field_handle ( field , hdr ) == TS_SUCCESS ) ;\n int value_len ;\n const char * value_str = TSMimeFieldValueGet ( bufp , field , idx , & value_len ) ;\n if ( value_str == nullptr ) {\n return 0 ;\n }\n return mime_parse_int ( value_str , value_str + value_len ) ;\n }"}
{"idx": 6640, "target": 0, "func": "static int dissect_h245_T_routing ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_routing , T_routing_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 6641, "target": 0, "func": "void * jbig2_realloc ( Jbig2Allocator * allocator , void * p , size_t size , size_t num ) {\n if ( num > 0 && size >= ( size_t ) - 0x100 / num ) return NULL ;\n return allocator -> realloc ( allocator , p , size * num ) ;\n }"}
{"idx": 6642, "target": 0, "func": "static int dissect_h245_NoPTAudioToneCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_NoPTAudioToneCapability , NoPTAudioToneCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 6643, "target": 0, "func": "TEST_F ( WebFrameTest , GetCanonicalUrlForSharingNotInHead ) {\n FrameTestHelpers : : WebViewHelper web_view_helper ;\n web_view_helper . Initialize ( ) ;\n WebLocalFrameImpl * frame = web_view_helper . LocalMainFrame ( ) ;\n FrameTestHelpers : : LoadHTMLString ( frame , R \"( < body > < link rel = \"canonical\" href = \"https://example.com/canonical.html\" > < / body > ) \", ToKURL(\" https : EXPECT_TRUE ( frame -> GetDocument ( ) . CanonicalUrlForSharing ( ) . IsNull ( ) ) ;\n }"}
{"idx": 6644, "target": 0, "func": "void rfbClientListInit ( rfbScreenInfoPtr rfbScreen ) {\n if ( sizeof ( rfbBool ) != 1 ) {\n fprintf ( stderr , \"rfbBool's size is not 1 (%d)!\\n\" , ( int ) sizeof ( rfbBool ) ) ;\n exit ( 1 ) ;\n }\n rfbScreen -> clientHead = NULL ;\n INIT_MUTEX ( rfbClientListMutex ) ;\n }"}
{"idx": 6645, "target": 0, "func": "static void ac3_upmix_delay ( AC3DecodeContext * s ) {\n int channel_data_size = sizeof ( s -> delay [ 0 ] ) ;\n switch ( s -> channel_mode ) {\n case AC3_CHMODE_DUALMONO : case AC3_CHMODE_STEREO : memcpy ( s -> delay [ 1 ] , s -> delay [ 0 ] , channel_data_size ) ;\n break ;\n case AC3_CHMODE_2F2R : memset ( s -> delay [ 3 ] , 0 , channel_data_size ) ;\n case AC3_CHMODE_2F1R : memset ( s -> delay [ 2 ] , 0 , channel_data_size ) ;\n break ;\n case AC3_CHMODE_3F2R : memset ( s -> delay [ 4 ] , 0 , channel_data_size ) ;\n case AC3_CHMODE_3F1R : memset ( s -> delay [ 3 ] , 0 , channel_data_size ) ;\n case AC3_CHMODE_3F : memcpy ( s -> delay [ 2 ] , s -> delay [ 1 ] , channel_data_size ) ;\n memset ( s -> delay [ 1 ] , 0 , channel_data_size ) ;\n break ;\n }\n }"}
{"idx": 6646, "target": 0, "func": "proto_item * proto_tree_get_parent ( proto_tree * tree ) {\n if ( ! tree ) return NULL ;\n return ( proto_item * ) tree ;\n }"}
{"idx": 6647, "target": 0, "func": "static int nntp_mbox_sync ( struct Context * ctx , int * index_hint ) {\n struct NntpData * nntp_data = ctx -> data ;\n int rc ;\n # ifdef USE_HCACHE header_cache_t * hc = NULL ;\n # endif nntp_data -> nserv -> check_time = 0 ;\n rc = check_mailbox ( ctx ) ;\n if ( rc ) return rc ;\n # ifdef USE_HCACHE nntp_data -> last_cached = 0 ;\n hc = nntp_hcache_open ( nntp_data ) ;\n # endif for ( int i = 0 ;\n i < ctx -> msgcount ;\n i ++ ) {\n struct Header * hdr = ctx -> hdrs [ i ] ;\n char buf [ 16 ] ;\n snprintf ( buf , sizeof ( buf ) , \"%d\" , NHDR ( hdr ) -> article_num ) ;\n if ( nntp_data -> bcache && hdr -> deleted ) {\n mutt_debug ( 2 , \"mutt_bcache_del %s\\n\" , buf ) ;\n mutt_bcache_del ( nntp_data -> bcache , buf ) ;\n }\n # ifdef USE_HCACHE if ( hc && ( hdr -> changed || hdr -> deleted ) ) {\n if ( hdr -> deleted && ! hdr -> read ) nntp_data -> unread -- ;\n mutt_debug ( 2 , \"mutt_hcache_store %s\\n\" , buf ) ;\n mutt_hcache_store ( hc , buf , strlen ( buf ) , hdr , 0 ) ;\n }\n # endif }\n # ifdef USE_HCACHE if ( hc ) {\n mutt_hcache_close ( hc ) ;\n nntp_data -> last_cached = nntp_data -> last_loaded ;\n }\n # endif nntp_newsrc_gen_entries ( ctx ) ;\n nntp_newsrc_update ( nntp_data -> nserv ) ;\n nntp_newsrc_close ( nntp_data -> nserv ) ;\n return 0 ;\n }"}
{"idx": 6648, "target": 1, "func": "static void basic_ec_math_simplified ( void ) {\n gpg_error_t err ;\n gcry_ctx_t ctx ;\n gcry_mpi_point_t G , Q ;\n gcry_mpi_t d ;\n gcry_mpi_t x , y , z ;\n gcry_sexp_t sexp ;\n wherestr = \"basic_ec_math_simplified\" ;\n show ( \"checking basic math functions for EC (variant)\\n\" ) ;\n d = hex2mpi ( \"D4EF27E32F8AD8E2A1C6DDEBB1D235A69E3CEF9BCE90273D\" ) ;\n Q = gcry_mpi_point_new ( 0 ) ;\n err = gcry_mpi_ec_new ( & ctx , NULL , \"NIST P-192\" ) ;\n if ( err ) die ( \"gcry_mpi_ec_new failed: %s\\n\" , gpg_strerror ( err ) ) ;\n G = gcry_mpi_ec_get_point ( \"g\" , ctx , 1 ) ;\n if ( ! G ) die ( \"gcry_mpi_ec_get_point(G) failed\\n\" ) ;\n gcry_mpi_ec_mul ( Q , d , G , ctx ) ;\n x = gcry_mpi_new ( 0 ) ;\n y = gcry_mpi_new ( 0 ) ;\n z = gcry_mpi_new ( 0 ) ;\n gcry_mpi_point_get ( x , y , z , Q ) ;\n if ( cmp_mpihex ( x , \"222D9EC717C89D047E0898C9185B033CD11C0A981EE6DC66\" ) || cmp_mpihex ( y , \"605DE0A82D70D3E0F84A127D0739ED33D657DF0D054BFDE8\" ) || cmp_mpihex ( z , \"00B06B519071BC536999AC8F2D3934B3C1FC9EACCD0A31F88F\" ) ) fail ( \"computed public key does not match\\n\" ) ;\n if ( debug ) {\n print_mpi ( \"Q.x\" , x ) ;\n print_mpi ( \"Q.y\" , y ) ;\n print_mpi ( \"Q.z\" , z ) ;\n }\n if ( gcry_mpi_ec_get_affine ( x , y , Q , ctx ) ) fail ( \"failed to get affine coordinates\\n\" ) ;\n if ( cmp_mpihex ( x , \"008532093BA023F4D55C0424FA3AF9367E05F309DC34CDC3FE\" ) || cmp_mpihex ( y , \"00C13CA9E617C6C8487BFF6A726E3C4F277913D97117939966\" ) ) fail ( \"computed affine coordinates of public key do not match\\n\" ) ;\n if ( debug ) {\n print_mpi ( \"q.x\" , x ) ;\n print_mpi ( \"q.y\" , y ) ;\n }\n gcry_mpi_release ( z ) ;\n gcry_mpi_release ( y ) ;\n gcry_mpi_release ( x ) ;\n err = gcry_mpi_ec_set_point ( \"g\" , G , ctx ) ;\n if ( err ) die ( \"gcry_mpi_ec_set_point(G) failed\\n\" ) ;\n err = gcry_mpi_ec_set_mpi ( \"d\" , d , ctx ) ;\n if ( err ) die ( \"gcry_mpi_ec_set_mpi(d) failed\\n\" ) ;\n err = gcry_pubkey_get_sexp ( & sexp , 0 , ctx ) ;\n if ( err ) fail ( \"gcry_pubkey_get_sexp(0) failed: %s\\n\" , gpg_strerror ( err ) ) ;\n else if ( verbose ) print_sexp ( \"Result of gcry_pubkey_get_sexp (0):\\n\" , sexp ) ;\n gcry_sexp_release ( sexp ) ;\n err = gcry_pubkey_get_sexp ( & sexp , GCRY_PK_GET_PUBKEY , ctx ) ;\n if ( err ) fail ( \"gcry_pubkey_get_sexp(GET_PUBKEY) failed: %s\\n\" , gpg_strerror ( err ) ) ;\n else if ( verbose ) print_sexp ( \"Result of gcry_pubkey_get_sexp (GET_PUBKEY):\\n\" , sexp ) ;\n gcry_sexp_release ( sexp ) ;\n err = gcry_mpi_ec_set_mpi ( \"d\" , NULL , ctx ) ;\n if ( err ) die ( \"gcry_mpi_ec_set_mpi(d=NULL) failed\\n\" ) ;\n err = gcry_pubkey_get_sexp ( & sexp , 0 , ctx ) ;\n if ( err ) fail ( \"gcry_pubkey_get_sexp(0 w/o d) failed: %s\\n\" , gpg_strerror ( err ) ) ;\n else if ( verbose ) print_sexp ( \"Result of gcry_pubkey_get_sexp (0 w/o d):\\n\" , sexp ) ;\n gcry_sexp_release ( sexp ) ;\n err = gcry_pubkey_get_sexp ( & sexp , GCRY_PK_GET_SECKEY , ctx ) ;\n if ( gpg_err_code ( err ) != GPG_ERR_NO_SECKEY ) fail ( \"gcry_pubkey_get_sexp(GET_SECKEY) returned wrong error: %s\\n\" , gpg_strerror ( err ) ) ;\n gcry_sexp_release ( sexp ) ;\n err = gcry_mpi_ec_set_point ( \"q\" , NULL , ctx ) ;\n if ( err ) die ( \"gcry_mpi_ec_set_point(q=NULL) failed\\n\" ) ;\n err = gcry_pubkey_get_sexp ( & sexp , 0 , ctx ) ;\n if ( gpg_err_code ( err ) != GPG_ERR_BAD_CRYPT_CTX ) fail ( \"gcry_pubkey_get_sexp(0 w/o Q,d) returned wrong error: %s\\n\" , gpg_strerror ( err ) ) ;\n gcry_sexp_release ( sexp ) ;\n gcry_mpi_point_release ( Q ) ;\n gcry_mpi_release ( d ) ;\n gcry_mpi_point_release ( G ) ;\n gcry_ctx_release ( ctx ) ;\n }"}
{"idx": 6649, "target": 0, "func": "void vp9_set_contexts ( const MACROBLOCKD * xd , struct macroblockd_plane * pd , BLOCK_SIZE plane_bsize , TX_SIZE tx_size , int has_eob , int aoff , int loff ) {\n ENTROPY_CONTEXT * const a = pd -> above_context + aoff ;\n ENTROPY_CONTEXT * const l = pd -> left_context + loff ;\n const int tx_size_in_blocks = 1 << tx_size ;\n if ( has_eob && xd -> mb_to_right_edge < 0 ) {\n int i ;\n const int blocks_wide = num_4x4_blocks_wide_lookup [ plane_bsize ] + ( xd -> mb_to_right_edge >> ( 5 + pd -> subsampling_x ) ) ;\n int above_contexts = tx_size_in_blocks ;\n if ( above_contexts + aoff > blocks_wide ) above_contexts = blocks_wide - aoff ;\n for ( i = 0 ;\n i < above_contexts ;\n ++ i ) a [ i ] = has_eob ;\n for ( i = above_contexts ;\n i < tx_size_in_blocks ;\n ++ i ) a [ i ] = 0 ;\n }\n else {\n vpx_memset ( a , has_eob , sizeof ( ENTROPY_CONTEXT ) * tx_size_in_blocks ) ;\n }\n if ( has_eob && xd -> mb_to_bottom_edge < 0 ) {\n int i ;\n const int blocks_high = num_4x4_blocks_high_lookup [ plane_bsize ] + ( xd -> mb_to_bottom_edge >> ( 5 + pd -> subsampling_y ) ) ;\n int left_contexts = tx_size_in_blocks ;\n if ( left_contexts + loff > blocks_high ) left_contexts = blocks_high - loff ;\n for ( i = 0 ;\n i < left_contexts ;\n ++ i ) l [ i ] = has_eob ;\n for ( i = left_contexts ;\n i < tx_size_in_blocks ;\n ++ i ) l [ i ] = 0 ;\n }\n else {\n vpx_memset ( l , has_eob , sizeof ( ENTROPY_CONTEXT ) * tx_size_in_blocks ) ;\n }\n }"}
{"idx": 6650, "target": 1, "func": "TEST ( URLSchemesTest , IsOriginSecure ) {\n EXPECT_TRUE ( IsOriginSecure ( GURL ( \"file:///test/fun.html\" ) ) ) ;\n EXPECT_TRUE ( IsOriginSecure ( GURL ( \"file:///test/\" ) ) ) ;\n EXPECT_TRUE ( IsOriginSecure ( GURL ( \"https://example.com/fun.html\" ) ) ) ;\n EXPECT_FALSE ( IsOriginSecure ( GURL ( \"http://example.com/fun.html\" ) ) ) ;\n EXPECT_TRUE ( IsOriginSecure ( GURL ( \"wss://example.com/fun.html\" ) ) ) ;\n EXPECT_FALSE ( IsOriginSecure ( GURL ( \"ws://example.com/fun.html\" ) ) ) ;\n EXPECT_TRUE ( IsOriginSecure ( GURL ( \"http://localhost/fun.html\" ) ) ) ;\n EXPECT_FALSE ( IsOriginSecure ( GURL ( \"http://localhost.com/fun.html\" ) ) ) ;\n EXPECT_TRUE ( IsOriginSecure ( GURL ( \"https://localhost.com/fun.html\" ) ) ) ;\n EXPECT_TRUE ( IsOriginSecure ( GURL ( \"http://127.0.0.1/fun.html\" ) ) ) ;\n EXPECT_TRUE ( IsOriginSecure ( GURL ( \"ftp://127.0.0.1/fun.html\" ) ) ) ;\n EXPECT_TRUE ( IsOriginSecure ( GURL ( \"http://127.3.0.1/fun.html\" ) ) ) ;\n EXPECT_FALSE ( IsOriginSecure ( GURL ( \"http://127.example.com/fun.html\" ) ) ) ;\n EXPECT_TRUE ( IsOriginSecure ( GURL ( \"https://127.example.com/fun.html\" ) ) ) ;\n EXPECT_TRUE ( IsOriginSecure ( GURL ( \"http://[::1]/fun.html\" ) ) ) ;\n EXPECT_FALSE ( IsOriginSecure ( GURL ( \"http://[::2]/fun.html\" ) ) ) ;\n EXPECT_FALSE ( IsOriginSecure ( GURL ( \"http://[::1].example.com/fun.html\" ) ) ) ;\n EXPECT_FALSE ( IsOriginSecure ( GURL ( \"filesystem:http://www.example.com/temporary/\" ) ) ) ;\n EXPECT_FALSE ( IsOriginSecure ( GURL ( \"filesystem:ftp://www.example.com/temporary/\" ) ) ) ;\n EXPECT_TRUE ( IsOriginSecure ( GURL ( \"filesystem:ftp://127.0.0.1/temporary/\" ) ) ) ;\n EXPECT_TRUE ( IsOriginSecure ( GURL ( \"filesystem:https://www.example.com/temporary/\" ) ) ) ;\n }"}
{"idx": 6651, "target": 0, "func": "static void link_file ( CopyMoveJob * job , GFile * src , GFile * dest_dir , char * * dest_fs_type , GHashTable * debuting_files , GdkPoint * position , int files_left ) {\n GFile * src_dir , * dest , * new_dest ;\n g_autofree gchar * dest_uri = NULL ;\n int count ;\n char * path ;\n gboolean not_local ;\n GError * error ;\n CommonJob * common ;\n char * primary , * secondary , * details ;\n int response ;\n gboolean handled_invalid_filename ;\n common = ( CommonJob * ) job ;\n count = 0 ;\n src_dir = g_file_get_parent ( src ) ;\n if ( g_file_equal ( src_dir , dest_dir ) ) {\n count = 1 ;\n }\n g_object_unref ( src_dir ) ;\n handled_invalid_filename = * dest_fs_type != NULL ;\n dest = get_target_file_for_link ( src , dest_dir , * dest_fs_type , count ) ;\n retry : error = NULL ;\n not_local = FALSE ;\n path = get_abs_path_for_symlink ( src , dest ) ;\n if ( path == NULL ) {\n not_local = TRUE ;\n }\n else if ( g_file_make_symbolic_link ( dest , path , common -> cancellable , & error ) ) {\n if ( common -> undo_info != NULL ) {\n nautilus_file_undo_info_ext_add_origin_target_pair ( NAUTILUS_FILE_UNDO_INFO_EXT ( common -> undo_info ) , src , dest ) ;\n }\n g_free ( path ) ;\n if ( debuting_files ) {\n g_hash_table_replace ( debuting_files , g_object_ref ( dest ) , GINT_TO_POINTER ( TRUE ) ) ;\n }\n nautilus_file_changes_queue_file_added ( dest ) ;\n dest_uri = g_file_get_uri ( dest ) ;\n if ( position ) {\n nautilus_file_changes_queue_schedule_position_set ( dest , * position , common -> screen_num ) ;\n }\n else if ( eel_uri_is_desktop ( dest_uri ) ) {\n nautilus_file_changes_queue_schedule_position_remove ( dest ) ;\n }\n g_object_unref ( dest ) ;\n return ;\n }\n g_free ( path ) ;\n if ( error != NULL && IS_IO_ERROR ( error , INVALID_FILENAME ) && ! handled_invalid_filename ) {\n handled_invalid_filename = TRUE ;\n g_assert ( * dest_fs_type == NULL ) ;\n * dest_fs_type = query_fs_type ( dest_dir , common -> cancellable ) ;\n new_dest = get_target_file_for_link ( src , dest_dir , * dest_fs_type , count ) ;\n if ( ! g_file_equal ( dest , new_dest ) ) {\n g_object_unref ( dest ) ;\n dest = new_dest ;\n g_error_free ( error ) ;\n goto retry ;\n }\n else {\n g_object_unref ( new_dest ) ;\n }\n }\n if ( error != NULL && IS_IO_ERROR ( error , EXISTS ) ) {\n g_object_unref ( dest ) ;\n dest = get_target_file_for_link ( src , dest_dir , * dest_fs_type , count ++ ) ;\n g_error_free ( error ) ;\n goto retry ;\n }\n else if ( error != NULL && IS_IO_ERROR ( error , CANCELLED ) ) {\n g_error_free ( error ) ;\n }\n else if ( error != NULL ) {\n if ( common -> skip_all_error ) {\n goto out ;\n }\n primary = f ( _ ( \"Error while creating link to %B.\" ) , src ) ;\n if ( not_local ) {\n secondary = f ( _ ( \"Symbolic links only supported for local files\" ) ) ;\n details = NULL ;\n }\n else if ( IS_IO_ERROR ( error , NOT_SUPPORTED ) ) {\n secondary = f ( _ ( \"The target doesn\u2019t support symbolic links.\" ) ) ;\n details = NULL ;\n }\n else {\n secondary = f ( _ ( \"There was an error creating the symlink in %F.\" ) , dest_dir ) ;\n details = error -> message ;\n }\n response = run_warning ( common , primary , secondary , details , files_left > 1 , CANCEL , SKIP_ALL , SKIP , NULL ) ;\n if ( error ) {\n g_error_free ( error ) ;\n }\n if ( response == 0 || response == GTK_RESPONSE_DELETE_EVENT ) {\n abort_job ( common ) ;\n }\n else if ( response == 1 ) {\n common -> skip_all_error = TRUE ;\n }\n else if ( response == 2 ) {\n }\n else {\n g_assert_not_reached ( ) ;\n }\n }\n out : g_object_unref ( dest ) ;\n }"}
{"idx": 6652, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( ExternalProtocolDialogBrowserTest , TestCloseWithChecked ) {\n ShowDialog ( ) ;\n SetChecked ( true ) ;\n EXPECT_TRUE ( dialog_ -> Close ( ) ) ;\n EXPECT_TRUE ( called_ ) ;\n EXPECT_FALSE ( accept_ ) ;\n EXPECT_TRUE ( cancel_ ) ;\n EXPECT_FALSE ( dont_block_ ) ;\n histogram_tester_ . ExpectTotalCount ( ExternalProtocolHandler : : kRememberCheckboxMetric , 0 ) ;\n histogram_tester_ . ExpectTotalCount ( ExternalProtocolHandler : : kHandleStateMetric , 0 ) ;\n }"}
{"idx": 6653, "target": 0, "func": "static void qdev_reset ( void * opaque ) {\n DeviceState * dev = opaque ;\n if ( dev -> info -> reset ) dev -> info -> reset ( dev ) ;\n }"}
{"idx": 6654, "target": 0, "func": "static int var_read_int ( AVIOContext * pb , int size ) {\n int v ;\n char * s = var_read_string ( pb , size ) ;\n if ( ! s ) return 0 ;\n v = strtol ( s , NULL , 10 ) ;\n av_free ( s ) ;\n return v ;\n }"}
{"idx": 6655, "target": 0, "func": "TEST_P ( SlimmingPaintWebFrameTest , DidScrollCallbackAfterScrollableAreaChanges ) {\n DCHECK ( RuntimeEnabledFeatures : : SlimmingPaintV2Enabled ( ) ) ;\n InitializeWithHTML ( * WebView ( ) -> MainFrameImpl ( ) -> GetFrame ( ) , \"<style>\" \" #scrollable {\n\" \" height: 100px;\n\" \" width: 100px;\n\" \" overflow: scroll;\n\" \" will-change: transform;\n\" \" }\n\" \" #forceScroll {\n height: 120px;\n width: 50px;\n }\n\" \"</style>\" \"<div id='scrollable'>\" \" <div id='forceScroll'></div>\" \"</div>\" ) ;\n WebView ( ) -> UpdateAllLifecyclePhases ( ) ;\n Document * document = WebView ( ) -> MainFrameImpl ( ) -> GetFrame ( ) -> GetDocument ( ) ;\n Element * scrollable = document -> getElementById ( \"scrollable\" ) ;\n auto * scrollable_area = ToLayoutBox ( scrollable -> GetLayoutObject ( ) ) -> GetScrollableArea ( ) ;\n EXPECT_NE ( nullptr , scrollable_area ) ;\n EXPECT_EQ ( ContentLayerCount ( ) , 2u ) ;\n EXPECT_EQ ( ScrollHitTestLayerCount ( ) , 1u ) ;\n EXPECT_EQ ( ScrollOffset ( ) , scrollable_area -> GetScrollOffset ( ) ) ;\n ScrollHitTestLayerAt ( 0 ) -> SetScrollOffsetFromImplSide ( gfx : : ScrollOffset ( 0 , 1 ) ) ;\n WebView ( ) -> UpdateAllLifecyclePhases ( ) ;\n EXPECT_EQ ( ScrollOffset ( 0 , 1 ) , scrollable_area -> GetScrollOffset ( ) ) ;\n scrollable -> setAttribute ( HTMLNames : : styleAttr , \"overflow: visible\" ) ;\n LocalMainFrame ( ) -> ExecuteScript ( WebScriptSource ( \"var forceLayoutFromScript = scrollable.offsetTop;\n\" ) ) ;\n EXPECT_EQ ( document -> Lifecycle ( ) . GetState ( ) , DocumentLifecycle : : kLayoutClean ) ;\n EXPECT_EQ ( nullptr , ToLayoutBox ( scrollable -> GetLayoutObject ( ) ) -> GetScrollableArea ( ) ) ;\n EXPECT_EQ ( ScrollHitTestLayerCount ( ) , 1u ) ;\n ScrollHitTestLayerAt ( 0 ) -> SetScrollOffsetFromImplSide ( gfx : : ScrollOffset ( 0 , 3 ) ) ;\n WebView ( ) -> UpdateAllLifecyclePhases ( ) ;\n EXPECT_EQ ( ContentLayerCount ( ) , 1u ) ;\n EXPECT_EQ ( ScrollHitTestLayerCount ( ) , 0u ) ;\n }"}
{"idx": 6656, "target": 0, "func": "cmsTagTypeHandler * _cmsGetTagTypeHandler ( cmsContext ContextID , cmsTagTypeSignature sig ) {\n _cmsTagTypePluginChunkType * ctx = ( _cmsTagTypePluginChunkType * ) _cmsContextGetClientChunk ( ContextID , TagTypePlugin ) ;\n return GetHandler ( sig , ctx -> TagTypes , SupportedTagTypes ) ;\n }"}
{"idx": 6657, "target": 0, "func": "WRITE_CLASS_ENCODER ( CephXServiceTicket ) struct CephXServiceTicketInfo {\n AuthTicket ticket ;\n CryptoKey session_key ;\n void encode ( bufferlist & bl ) const {\n __u8 struct_v = 1 ;\n : : encode ( struct_v , bl ) ;\n : : encode ( ticket , bl ) ;\n : : encode ( session_key , bl ) ;\n }\n void decode ( bufferlist : : iterator & bl ) {\n __u8 struct_v ;\n : : decode ( struct_v , bl ) ;\n : : decode ( ticket , bl ) ;\n : : decode ( session_key , bl ) ;\n }\n }\n ;\n WRITE_CLASS_ENCODER ( CephXServiceTicketInfo ) struct CephXAuthorizeChallenge : public AuthAuthorizerChallenge {\n uint64_t server_challenge ;\n void encode ( bufferlist & bl ) const {\n __u8 struct_v = 1 ;\n : : encode ( struct_v , bl ) ;\n : : encode ( server_challenge , bl ) ;\n }\n void decode ( bufferlist : : iterator & bl ) {\n __u8 struct_v ;\n : : decode ( struct_v , bl ) ;\n : : decode ( server_challenge , bl ) ;\n }\n }"}
{"idx": 6658, "target": 0, "func": "guint16 elem_telv ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint8 iei , gint pdu_type , int idx , guint32 offset , guint len _U_ , const gchar * name_add ) {\n guint8 oct ;\n guint16 parm_len ;\n guint8 lengt_length = 1 ;\n guint16 consumed ;\n guint32 curr_offset ;\n proto_tree * subtree ;\n proto_item * item ;\n value_string_ext elem_names_ext ;\n gint * elem_ett ;\n const gchar * elem_name ;\n guint16 ( * * elem_funcs ) ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string , int string_len ) ;\n curr_offset = offset ;\n consumed = 0 ;\n SET_ELEM_VARS ( pdu_type , elem_names_ext , elem_ett , elem_funcs , & ei_gsm_a_unknown_pdu_type ) ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n if ( oct == iei ) {\n parm_len = tvb_get_guint8 ( tvb , curr_offset + 1 ) ;\n if ( ( parm_len & 0x80 ) == 0 ) {\n parm_len = tvb_get_ntohs ( tvb , curr_offset + 1 ) ;\n lengt_length = 2 ;\n }\n else {\n parm_len = parm_len & 0x7f ;\n }\n elem_name = try_val_to_str_ext ( idx , & elem_names_ext ) ;\n if ( elem_name == NULL ) {\n proto_tree_add_expert_format ( tree , pinfo , & ei_gsm_a_unknown_element , tvb , curr_offset , parm_len + 1 + lengt_length , \"Unknown - aborting dissection%s\" , ( name_add == NULL ) || ( name_add [ 0 ] == '\\0' ) ? \"\" : name_add ) ;\n return consumed ;\n }\n subtree = proto_tree_add_subtree_format ( tree , tvb , curr_offset , parm_len + 1 + lengt_length , elem_ett [ idx ] , & item , \"%s%s\" , elem_name , ( name_add == NULL ) || ( name_add [ 0 ] == '\\0' ) ? \"\" : name_add ) ;\n proto_tree_add_uint ( subtree , get_hf_elem_id ( pdu_type ) , tvb , curr_offset , 1 , oct ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_l_ext , tvb , curr_offset + 1 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_uint ( subtree , hf_gsm_a_length , tvb , curr_offset + 1 , lengt_length , parm_len ) ;\n if ( parm_len > 0 ) {\n if ( elem_funcs [ idx ] == NULL ) {\n proto_tree_add_item ( subtree , hf_gsm_a_element_value , tvb , curr_offset + 1 + lengt_length , parm_len , ENC_NA ) ;\n consumed = parm_len ;\n }\n else {\n gchar * a_add_string ;\n a_add_string = ( gchar * ) wmem_alloc ( wmem_packet_scope ( ) , 1024 ) ;\n a_add_string [ 0 ] = '\\0' ;\n consumed = ( * elem_funcs [ idx ] ) ( tvb , subtree , pinfo , curr_offset + 1 + lengt_length , parm_len , a_add_string , 1024 ) ;\n if ( a_add_string [ 0 ] != '\\0' ) {\n proto_item_append_text ( item , \"%s\" , a_add_string ) ;\n }\n }\n }\n consumed += 1 + lengt_length ;\n }\n return consumed ;\n }"}
{"idx": 6659, "target": 0, "func": "static void dtap_cc_start_dtmf_rej ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_FALSE ;\n ELEM_MAND_LV ( GSM_A_PDU_TYPE_DTAP , DE_CAUSE , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 6660, "target": 0, "func": "static void srtp_calc_aead_iv ( srtp_stream_ctx_t * stream , v128_t * iv , xtd_seq_num_t * seq , srtp_hdr_t * hdr ) {\n v128_t in ;\n v128_t salt ;\n # ifdef NO_64BIT_MATH uint32_t local_roc = ( ( high32 ( * seq ) << 16 ) | ( low32 ( * seq ) >> 16 ) ) ;\n uint16_t local_seq = ( uint16_t ) ( low32 ( * seq ) ) ;\n # else uint32_t local_roc = ( uint32_t ) ( * seq >> 16 ) ;\n uint16_t local_seq = ( uint16_t ) * seq ;\n # endif memset ( & in , 0 , sizeof ( v128_t ) ) ;\n memset ( & salt , 0 , sizeof ( v128_t ) ) ;\n in . v16 [ 5 ] = htons ( local_seq ) ;\n local_roc = htonl ( local_roc ) ;\n memcpy ( & in . v16 [ 3 ] , & local_roc , sizeof ( local_roc ) ) ;\n memcpy ( & in . v8 [ 2 ] , & hdr -> ssrc , 4 ) ;\n debug_print ( mod_srtp , \"Pre-salted RTP IV = %s\\n\" , v128_hex_string ( & in ) ) ;\n memcpy ( salt . v8 , stream -> salt , SRTP_AEAD_SALT_LEN ) ;\n debug_print ( mod_srtp , \"RTP SALT = %s\\n\" , v128_hex_string ( & salt ) ) ;\n v128_xor ( iv , & in , & salt ) ;\n }"}
{"idx": 6661, "target": 0, "func": "void replace_dynstr_append_mem ( DYNAMIC_STRING * ds , const char * val , int len ) {\n char lower [ 512 ] ;\n # ifdef __WIN__ fix_win_paths ( val , len ) ;\n # endif if ( display_result_lower ) {\n char * c = lower ;\n for ( const char * v = val ;\n * v ;\n v ++ ) * c ++ = my_tolower ( charset_info , * v ) ;\n * c = '\\0' ;\n val = lower ;\n }\n if ( glob_replace_regex ) {\n if ( ! multi_reg_replace ( glob_replace_regex , ( char * ) val ) ) {\n val = glob_replace_regex -> buf ;\n len = strlen ( val ) ;\n }\n }\n if ( glob_replace ) {\n replace_strings_append ( glob_replace , ds , val , len ) ;\n }\n else dynstr_append_mem ( ds , val , len ) ;\n }"}
{"idx": 6662, "target": 1, "func": "static int dca_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n int lfe_samples ;\n int num_core_channels = 0 ;\n int i , ret ;\n float * * samples_flt ;\n DCAContext * s = avctx -> priv_data ;\n int channels , full_channels ;\n int core_ss_end ;\n s -> xch_present = 0 ;\n s -> dca_buffer_size = ff_dca_convert_bitstream ( buf , buf_size , s -> dca_buffer , DCA_MAX_FRAME_SIZE + DCA_MAX_EXSS_HEADER_SIZE ) ;\n if ( s -> dca_buffer_size == AVERROR_INVALIDDATA ) {\n av_log ( avctx , AV_LOG_ERROR , \"Not a valid DCA frame\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n init_get_bits ( & s -> gb , s -> dca_buffer , s -> dca_buffer_size * 8 ) ;\n if ( ( ret = dca_parse_frame_header ( s ) ) < 0 ) {\n return ret ;\n }\n avctx -> sample_rate = s -> sample_rate ;\n avctx -> bit_rate = s -> bit_rate ;\n s -> profile = FF_PROFILE_DTS ;\n for ( i = 0 ;\n i < ( s -> sample_blocks / 8 ) ;\n i ++ ) {\n if ( ( ret = dca_decode_block ( s , 0 , i ) ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"error decoding block\\n\" ) ;\n return ret ;\n }\n }\n num_core_channels = s -> prim_channels ;\n if ( s -> ext_coding ) s -> core_ext_mask = dca_ext_audio_descr_mask [ s -> ext_descr ] ;\n else s -> core_ext_mask = 0 ;\n core_ss_end = FFMIN ( s -> frame_size , s -> dca_buffer_size ) * 8 ;\n if ( s -> core_ext_mask < 0 || s -> core_ext_mask & DCA_EXT_XCH ) {\n s -> core_ext_mask = FFMAX ( s -> core_ext_mask , 0 ) ;\n skip_bits_long ( & s -> gb , ( - get_bits_count ( & s -> gb ) ) & 31 ) ;\n while ( core_ss_end - get_bits_count ( & s -> gb ) >= 32 ) {\n uint32_t bits = get_bits_long ( & s -> gb , 32 ) ;\n switch ( bits ) {\n case 0x5a5a5a5a : {\n int ext_amode , xch_fsize ;\n s -> xch_base_channel = s -> prim_channels ;\n xch_fsize = show_bits ( & s -> gb , 10 ) ;\n if ( ( s -> frame_size != ( get_bits_count ( & s -> gb ) >> 3 ) - 4 + xch_fsize ) && ( s -> frame_size != ( get_bits_count ( & s -> gb ) >> 3 ) - 4 + xch_fsize + 1 ) ) continue ;\n skip_bits ( & s -> gb , 10 ) ;\n s -> core_ext_mask |= DCA_EXT_XCH ;\n if ( ( ext_amode = get_bits ( & s -> gb , 4 ) ) != 1 ) {\n av_log ( avctx , AV_LOG_ERROR , \"XCh extension amode %d not\" \" supported!\\n\" , ext_amode ) ;\n continue ;\n }\n dca_parse_audio_coding_header ( s , s -> xch_base_channel ) ;\n for ( i = 0 ;\n i < ( s -> sample_blocks / 8 ) ;\n i ++ ) if ( ( ret = dca_decode_block ( s , s -> xch_base_channel , i ) ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"error decoding XCh extension\\n\" ) ;\n continue ;\n }\n s -> xch_present = 1 ;\n break ;\n }\n case 0x47004a03 : s -> core_ext_mask |= DCA_EXT_XXCH ;\n break ;\n case 0x1d95f262 : {\n int fsize96 = show_bits ( & s -> gb , 12 ) + 1 ;\n if ( s -> frame_size != ( get_bits_count ( & s -> gb ) >> 3 ) - 4 + fsize96 ) continue ;\n av_log ( avctx , AV_LOG_DEBUG , \"X96 extension found at %d bits\\n\" , get_bits_count ( & s -> gb ) ) ;\n skip_bits ( & s -> gb , 12 ) ;\n av_log ( avctx , AV_LOG_DEBUG , \"FSIZE96 = %d bytes\\n\" , fsize96 ) ;\n av_log ( avctx , AV_LOG_DEBUG , \"REVNO = %d\\n\" , get_bits ( & s -> gb , 4 ) ) ;\n s -> core_ext_mask |= DCA_EXT_X96 ;\n break ;\n }\n }\n skip_bits_long ( & s -> gb , ( - get_bits_count ( & s -> gb ) ) & 31 ) ;\n }\n }\n else {\n skip_bits_long ( & s -> gb , core_ss_end - get_bits_count ( & s -> gb ) ) ;\n }\n if ( s -> core_ext_mask & DCA_EXT_X96 ) s -> profile = FF_PROFILE_DTS_96_24 ;\n else if ( s -> core_ext_mask & ( DCA_EXT_XCH | DCA_EXT_XXCH ) ) s -> profile = FF_PROFILE_DTS_ES ;\n if ( s -> dca_buffer_size - s -> frame_size > 32 && get_bits_long ( & s -> gb , 32 ) == DCA_HD_MARKER ) dca_exss_parse_header ( s ) ;\n avctx -> profile = s -> profile ;\n full_channels = channels = s -> prim_channels + ! ! s -> lfe ;\n if ( s -> amode < 16 ) {\n avctx -> channel_layout = dca_core_channel_layout [ s -> amode ] ;\n if ( s -> xch_present && ( ! avctx -> request_channels || avctx -> request_channels > num_core_channels + ! ! s -> lfe ) ) {\n avctx -> channel_layout |= AV_CH_BACK_CENTER ;\n if ( s -> lfe ) {\n avctx -> channel_layout |= AV_CH_LOW_FREQUENCY ;\n s -> channel_order_tab = dca_channel_reorder_lfe_xch [ s -> amode ] ;\n }\n else {\n s -> channel_order_tab = dca_channel_reorder_nolfe_xch [ s -> amode ] ;\n }\n }\n else {\n channels = num_core_channels + ! ! s -> lfe ;\n s -> xch_present = 0 ;\n if ( s -> lfe ) {\n avctx -> channel_layout |= AV_CH_LOW_FREQUENCY ;\n s -> channel_order_tab = dca_channel_reorder_lfe [ s -> amode ] ;\n }\n else s -> channel_order_tab = dca_channel_reorder_nolfe [ s -> amode ] ;\n }\n if ( channels > ! ! s -> lfe && s -> channel_order_tab [ channels - 1 - ! ! s -> lfe ] < 0 ) return AVERROR_INVALIDDATA ;\n if ( avctx -> request_channels == 2 && s -> prim_channels > 2 ) {\n channels = 2 ;\n s -> output = DCA_STEREO ;\n avctx -> channel_layout = AV_CH_LAYOUT_STEREO ;\n }\n }\n else {\n av_log ( avctx , AV_LOG_ERROR , \"Non standard configuration %d !\\n\" , s -> amode ) ;\n return AVERROR_INVALIDDATA ;\n }\n avctx -> channels = channels ;\n frame -> nb_samples = 256 * ( s -> sample_blocks / 8 ) ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n samples_flt = ( float * * ) frame -> extended_data ;\n if ( avctx -> channels < full_channels ) {\n ret = av_samples_get_buffer_size ( NULL , full_channels - channels , frame -> nb_samples , avctx -> sample_fmt , 0 ) ;\n if ( ret < 0 ) return ret ;\n av_fast_malloc ( & s -> extra_channels_buffer , & s -> extra_channels_buffer_size , ret ) ;\n if ( ! s -> extra_channels_buffer ) return AVERROR ( ENOMEM ) ;\n ret = av_samples_fill_arrays ( ( uint8_t * * ) s -> extra_channels , NULL , s -> extra_channels_buffer , full_channels - channels , frame -> nb_samples , avctx -> sample_fmt , 0 ) ;\n if ( ret < 0 ) return ret ;\n }\n for ( i = 0 ;\n i < ( s -> sample_blocks / 8 ) ;\n i ++ ) {\n int ch ;\n for ( ch = 0 ;\n ch < channels ;\n ch ++ ) s -> samples_chanptr [ ch ] = samples_flt [ ch ] + i * 256 ;\n for ( ;\n ch < full_channels ;\n ch ++ ) s -> samples_chanptr [ ch ] = s -> extra_channels [ ch - channels ] + i * 256 ;\n dca_filter_channels ( s , i ) ;\n if ( ( s -> source_pcm_res & 1 ) && s -> xch_present ) {\n float * back_chan = s -> samples_chanptr [ s -> channel_order_tab [ s -> xch_base_channel ] ] ;\n float * lt_chan = s -> samples_chanptr [ s -> channel_order_tab [ s -> xch_base_channel - 2 ] ] ;\n float * rt_chan = s -> samples_chanptr [ s -> channel_order_tab [ s -> xch_base_channel - 1 ] ] ;\n s -> fdsp . vector_fmac_scalar ( lt_chan , back_chan , - M_SQRT1_2 , 256 ) ;\n s -> fdsp . vector_fmac_scalar ( rt_chan , back_chan , - M_SQRT1_2 , 256 ) ;\n }\n }\n lfe_samples = 2 * s -> lfe * ( s -> sample_blocks / 8 ) ;\n for ( i = 0 ;\n i < 2 * s -> lfe * 4 ;\n i ++ ) s -> lfe_data [ i ] = s -> lfe_data [ i + lfe_samples ] ;\n * got_frame_ptr = 1 ;\n return buf_size ;\n }"}
{"idx": 6663, "target": 0, "func": "static void save_bits ( WMAProDecodeCtx * s , GetBitContext * gb , int len , int append ) {\n int buflen ;\n if ( ! append ) {\n s -> frame_offset = get_bits_count ( gb ) & 7 ;\n s -> num_saved_bits = s -> frame_offset ;\n init_put_bits ( & s -> pb , s -> frame_data , MAX_FRAMESIZE ) ;\n }\n buflen = ( s -> num_saved_bits + len + 8 ) >> 3 ;\n if ( len <= 0 || buflen > MAX_FRAMESIZE ) {\n av_log_ask_for_sample ( s -> avctx , \"input buffer too small\\n\" ) ;\n s -> packet_loss = 1 ;\n return ;\n }\n s -> num_saved_bits += len ;\n if ( ! append ) {\n avpriv_copy_bits ( & s -> pb , gb -> buffer + ( get_bits_count ( gb ) >> 3 ) , s -> num_saved_bits ) ;\n }\n else {\n int align = 8 - ( get_bits_count ( gb ) & 7 ) ;\n align = FFMIN ( align , len ) ;\n put_bits ( & s -> pb , align , get_bits ( gb , align ) ) ;\n len -= align ;\n avpriv_copy_bits ( & s -> pb , gb -> buffer + ( get_bits_count ( gb ) >> 3 ) , len ) ;\n }\n skip_bits_long ( gb , len ) ;\n {\n PutBitContext tmp = s -> pb ;\n flush_put_bits ( & tmp ) ;\n }\n init_get_bits ( & s -> gb , s -> frame_data , s -> num_saved_bits ) ;\n skip_bits ( & s -> gb , s -> frame_offset ) ;\n }"}
{"idx": 6664, "target": 0, "func": "static const unsigned char * seq_decode_op3 ( SeqVideoContext * seq , const unsigned char * src , const unsigned char * src_end , unsigned char * dst ) {\n int pos , offset ;\n do {\n if ( src_end - src < 2 ) return NULL ;\n pos = * src ++ ;\n offset = ( ( pos >> 3 ) & 7 ) * seq -> frame . linesize [ 0 ] + ( pos & 7 ) ;\n dst [ offset ] = * src ++ ;\n }\n while ( ! ( pos & 0x80 ) ) ;\n return src ;\n }"}
{"idx": 6665, "target": 0, "func": "TEST_F ( ExternalProtocolHandlerTest , TestGetBlockStateDefaultBlock ) {\n ExternalProtocolHandler : : BlockState block_state = ExternalProtocolHandler : : GetBlockState ( \"afp\" , profile_ . get ( ) ) ;\n EXPECT_EQ ( ExternalProtocolHandler : : BLOCK , block_state ) ;\n EXPECT_TRUE ( local_state_ -> GetDictionary ( prefs : : kExcludedSchemes ) -> empty ( ) ) ;\n EXPECT_TRUE ( profile_ -> GetPrefs ( ) -> GetDictionary ( prefs : : kExcludedSchemes ) -> empty ( ) ) ;\n }"}
{"idx": 6666, "target": 1, "func": "static double var_eq_const ( VariableStatData * vardata , Oid operator , Datum constval , bool constisnull , bool varonleft ) {\n double selec ;\n bool isdefault ;\n if ( constisnull ) return 0.0 ;\n if ( vardata -> isunique && vardata -> rel && vardata -> rel -> tuples >= 1.0 ) return 1.0 / vardata -> rel -> tuples ;\n if ( HeapTupleIsValid ( vardata -> statsTuple ) ) {\n Form_pg_statistic stats ;\n Datum * values ;\n int nvalues ;\n float4 * numbers ;\n int nnumbers ;\n bool match = false ;\n int i ;\n stats = ( Form_pg_statistic ) GETSTRUCT ( vardata -> statsTuple ) ;\n if ( get_attstatsslot ( vardata -> statsTuple , vardata -> atttype , vardata -> atttypmod , STATISTIC_KIND_MCV , InvalidOid , NULL , & values , & nvalues , & numbers , & nnumbers ) ) {\n FmgrInfo eqproc ;\n fmgr_info ( get_opcode ( operator ) , & eqproc ) ;\n for ( i = 0 ;\n i < nvalues ;\n i ++ ) {\n if ( varonleft ) match = DatumGetBool ( FunctionCall2Coll ( & eqproc , DEFAULT_COLLATION_OID , values [ i ] , constval ) ) ;\n else match = DatumGetBool ( FunctionCall2Coll ( & eqproc , DEFAULT_COLLATION_OID , constval , values [ i ] ) ) ;\n if ( match ) break ;\n }\n }\n else {\n values = NULL ;\n numbers = NULL ;\n i = nvalues = nnumbers = 0 ;\n }\n if ( match ) {\n selec = numbers [ i ] ;\n }\n else {\n double sumcommon = 0.0 ;\n double otherdistinct ;\n for ( i = 0 ;\n i < nnumbers ;\n i ++ ) sumcommon += numbers [ i ] ;\n selec = 1.0 - sumcommon - stats -> stanullfrac ;\n CLAMP_PROBABILITY ( selec ) ;\n otherdistinct = get_variable_numdistinct ( vardata , & isdefault ) - nnumbers ;\n if ( otherdistinct > 1 ) selec /= otherdistinct ;\n if ( nnumbers > 0 && selec > numbers [ nnumbers - 1 ] ) selec = numbers [ nnumbers - 1 ] ;\n }\n free_attstatsslot ( vardata -> atttype , values , nvalues , numbers , nnumbers ) ;\n }\n else {\n selec = 1.0 / get_variable_numdistinct ( vardata , & isdefault ) ;\n }\n CLAMP_PROBABILITY ( selec ) ;\n return selec ;\n }"}
{"idx": 6667, "target": 0, "func": "int main ( int argc , char * argv [ ] ) {\n static struct option long_options [ ] = {\n {\n \"host\" , required_argument , NULL , 'h' }\n , {\n \"port\" , required_argument , NULL , 'p' }\n , {\n \"username\" , required_argument , NULL , 'U' }\n , {\n \"no-password\" , no_argument , NULL , 'w' }\n , {\n \"password\" , no_argument , NULL , 'W' }\n , {\n \"echo\" , no_argument , NULL , 'e' }\n , {\n \"quiet\" , no_argument , NULL , 'q' }\n , {\n \"dbname\" , required_argument , NULL , 'd' }\n , {\n \"all\" , no_argument , NULL , 'a' }\n , {\n \"table\" , required_argument , NULL , 't' }\n , {\n \"verbose\" , no_argument , NULL , 'v' }\n , {\n \"maintenance-db\" , required_argument , NULL , 2 }\n , {\n NULL , 0 , NULL , 0 }\n }\n ;\n const char * progname ;\n int optindex ;\n int c ;\n const char * dbname = NULL ;\n const char * maintenance_db = NULL ;\n char * host = NULL ;\n char * port = NULL ;\n char * username = NULL ;\n enum trivalue prompt_password = TRI_DEFAULT ;\n bool echo = false ;\n bool quiet = false ;\n bool alldb = false ;\n bool verbose = false ;\n SimpleStringList tables = {\n NULL , NULL }\n ;\n progname = get_progname ( argv [ 0 ] ) ;\n set_pglocale_pgservice ( argv [ 0 ] , PG_TEXTDOMAIN ( \"pgscripts\" ) ) ;\n handle_help_version_opts ( argc , argv , \"clusterdb\" , help ) ;\n while ( ( c = getopt_long ( argc , argv , \"h:p:U:wWeqd:at:v\" , long_options , & optindex ) ) != - 1 ) {\n switch ( c ) {\n case 'h' : host = pg_strdup ( optarg ) ;\n break ;\n case 'p' : port = pg_strdup ( optarg ) ;\n break ;\n case 'U' : username = pg_strdup ( optarg ) ;\n break ;\n case 'w' : prompt_password = TRI_NO ;\n break ;\n case 'W' : prompt_password = TRI_YES ;\n break ;\n case 'e' : echo = true ;\n break ;\n case 'q' : quiet = true ;\n break ;\n case 'd' : dbname = pg_strdup ( optarg ) ;\n break ;\n case 'a' : alldb = true ;\n break ;\n case 't' : simple_string_list_append ( & tables , optarg ) ;\n break ;\n case 'v' : verbose = true ;\n break ;\n case 2 : maintenance_db = pg_strdup ( optarg ) ;\n break ;\n default : fprintf ( stderr , _ ( \"Try \\\"%s --help\\\" for more information.\\n\" ) , progname ) ;\n exit ( 1 ) ;\n }\n }\n if ( optind < argc && dbname == NULL ) {\n dbname = argv [ optind ] ;\n optind ++ ;\n }\n if ( optind < argc ) {\n fprintf ( stderr , _ ( \"%s: too many command-line arguments (first is \\\"%s\\\")\\n\" ) , progname , argv [ optind ] ) ;\n fprintf ( stderr , _ ( \"Try \\\"%s --help\\\" for more information.\\n\" ) , progname ) ;\n exit ( 1 ) ;\n }\n setup_cancel_handler ( ) ;\n if ( alldb ) {\n if ( dbname ) {\n fprintf ( stderr , _ ( \"%s: cannot cluster all databases and a specific one at the same time\\n\" ) , progname ) ;\n exit ( 1 ) ;\n }\n if ( tables . head != NULL ) {\n fprintf ( stderr , _ ( \"%s: cannot cluster specific table(s) in all databases\\n\" ) , progname ) ;\n exit ( 1 ) ;\n }\n cluster_all_databases ( verbose , maintenance_db , host , port , username , prompt_password , progname , echo , quiet ) ;\n }\n else {\n if ( dbname == NULL ) {\n if ( getenv ( \"PGDATABASE\" ) ) dbname = getenv ( \"PGDATABASE\" ) ;\n else if ( getenv ( \"PGUSER\" ) ) dbname = getenv ( \"PGUSER\" ) ;\n else dbname = get_user_name_or_exit ( progname ) ;\n }\n if ( tables . head != NULL ) {\n SimpleStringListCell * cell ;\n for ( cell = tables . head ;\n cell ;\n cell = cell -> next ) {\n cluster_one_database ( dbname , verbose , cell -> val , host , port , username , prompt_password , progname , echo ) ;\n }\n }\n else cluster_one_database ( dbname , verbose , NULL , host , port , username , prompt_password , progname , echo ) ;\n }\n exit ( 0 ) ;\n }"}
{"idx": 6668, "target": 0, "func": "void rfbClientConnFailed ( rfbClientPtr cl , const char * reason ) {\n char * buf ;\n int len = strlen ( reason ) ;\n rfbLog ( \"rfbClientConnFailed(\\\"%s\\\")\\n\" , reason ) ;\n buf = ( char * ) malloc ( 8 + len ) ;\n ( ( uint32_t * ) buf ) [ 0 ] = Swap32IfLE ( rfbConnFailed ) ;\n ( ( uint32_t * ) buf ) [ 1 ] = Swap32IfLE ( len ) ;\n memcpy ( buf + 8 , reason , len ) ;\n if ( rfbWriteExact ( cl , buf , 8 + len ) < 0 ) rfbLogPerror ( \"rfbClientConnFailed: write\" ) ;\n free ( buf ) ;\n rfbCloseClient ( cl ) ;\n }"}
{"idx": 6669, "target": 0, "func": "VALUE rb_dlhandle_s_allocate ( VALUE klass ) {\n VALUE obj ;\n struct dl_handle * dlhandle ;\n obj = Data_Make_Struct ( rb_cDLHandle , struct dl_handle , 0 , dlhandle_free , dlhandle ) ;\n dlhandle -> ptr = 0 ;\n dlhandle -> open = 0 ;\n dlhandle -> enable_close = 0 ;\n return obj ;\n }"}
{"idx": 6670, "target": 0, "func": "TEST_P ( GLES2DecoderTestWithBlendEquationAdvanced , BlendBarrierKHRValidArgs ) {\n EXPECT_CALL ( * gl_ , BlendBarrierKHR ( ) ) ;\n SpecializedSetup < cmds : : BlendBarrierKHR , 0 > ( true ) ;\n cmds : : BlendBarrierKHR cmd ;\n cmd . Init ( ) ;\n EXPECT_EQ ( error : : kNoError , ExecuteCmd ( cmd ) ) ;\n EXPECT_EQ ( GL_NO_ERROR , GetGLError ( ) ) ;\n }"}
{"idx": 6671, "target": 0, "func": "static int tipc_nl_compat_net_set ( struct tipc_nl_compat_cmd_doit * cmd , struct sk_buff * skb , struct tipc_nl_compat_msg * msg ) {\n u32 val ;\n struct nlattr * net ;\n val = ntohl ( * ( __be32 * ) TLV_DATA ( msg -> req ) ) ;\n net = nla_nest_start ( skb , TIPC_NLA_NET ) ;\n if ( ! net ) return - EMSGSIZE ;\n if ( msg -> cmd == TIPC_CMD_SET_NODE_ADDR ) {\n if ( nla_put_u32 ( skb , TIPC_NLA_NET_ADDR , val ) ) return - EMSGSIZE ;\n }\n else if ( msg -> cmd == TIPC_CMD_SET_NETID ) {\n if ( nla_put_u32 ( skb , TIPC_NLA_NET_ID , val ) ) return - EMSGSIZE ;\n }\n nla_nest_end ( skb , net ) ;\n return 0 ;\n }"}
{"idx": 6672, "target": 0, "func": "static void fill_colmap ( H264Context * h , int map [ 2 ] [ 16 + 32 ] , int list , int field , int colfield , int mbafi ) {\n Picture * const ref1 = & h -> ref_list [ 1 ] [ 0 ] ;\n int j , old_ref , rfield ;\n int start = mbafi ? 16 : 0 ;\n int end = mbafi ? 16 + 2 * h -> ref_count [ 0 ] : h -> ref_count [ 0 ] ;\n int interl = mbafi || h -> picture_structure != PICT_FRAME ;\n memset ( map [ list ] , 0 , sizeof ( map [ list ] ) ) ;\n for ( rfield = 0 ;\n rfield < 2 ;\n rfield ++ ) {\n for ( old_ref = 0 ;\n old_ref < ref1 -> ref_count [ colfield ] [ list ] ;\n old_ref ++ ) {\n int poc = ref1 -> ref_poc [ colfield ] [ list ] [ old_ref ] ;\n if ( ! interl ) poc |= 3 ;\n else if ( interl && ( poc & 3 ) == 3 ) poc = ( poc & ~ 3 ) + rfield + 1 ;\n for ( j = start ;\n j < end ;\n j ++ ) {\n if ( 4 * h -> ref_list [ 0 ] [ j ] . frame_num + ( h -> ref_list [ 0 ] [ j ] . reference & 3 ) == poc ) {\n int cur_ref = mbafi ? ( j - 16 ) ^ field : j ;\n if ( ref1 -> mbaff ) map [ list ] [ 2 * old_ref + ( rfield ^ field ) + 16 ] = cur_ref ;\n if ( rfield == field || ! interl ) map [ list ] [ old_ref ] = cur_ref ;\n break ;\n }\n }\n }\n }\n }"}
{"idx": 6673, "target": 0, "func": "struct key_type * key_type_lookup ( const char * type ) {\n struct key_type * ktype ;\n down_read ( & key_types_sem ) ;\n list_for_each_entry ( ktype , & key_types_list , link ) {\n if ( strcmp ( ktype -> name , type ) == 0 ) goto found_kernel_type ;\n }\n up_read ( & key_types_sem ) ;\n ktype = ERR_PTR ( - ENOKEY ) ;\n found_kernel_type : return ktype ;\n }"}
{"idx": 6674, "target": 0, "func": "static void xml_print_int ( WriterContext * wctx , const char * key , long long int value ) {\n if ( wctx -> nb_item [ wctx -> level ] ) printf ( \" \" ) ;\n printf ( \"%s=\\\"%lld\\\"\" , key , value ) ;\n }"}
{"idx": 6675, "target": 0, "func": "int vp9_get_raw_frame ( VP9Decoder * pbi , YV12_BUFFER_CONFIG * sd , vp9_ppflags_t * flags ) {\n VP9_COMMON * const cm = & pbi -> common ;\n int ret = - 1 ;\n # if ! CONFIG_VP9_POSTPROC ( void ) * flags ;\n # endif if ( pbi -> ready_for_new_data == 1 ) return ret ;\n if ( ! cm -> show_frame ) return ret ;\n pbi -> ready_for_new_data = 1 ;\n # if CONFIG_VP9_POSTPROC if ( ! cm -> show_existing_frame ) {\n ret = vp9_post_proc_frame ( cm , sd , flags ) ;\n }\n else {\n * sd = * cm -> frame_to_show ;\n ret = 0 ;\n }\n # else * sd = * cm -> frame_to_show ;\n ret = 0 ;\n # endif vp9_clear_system_state ( ) ;\n return ret ;\n }"}
{"idx": 6676, "target": 0, "func": "int test_gf2m_mod_sqr ( BIO * bp , BN_CTX * ctx ) {\n BIGNUM * a , * b [ 2 ] , * c , * d ;\n int i , j , ret = 0 ;\n int p0 [ ] = {\n 163 , 7 , 6 , 3 , 0 , - 1 }\n ;\n int p1 [ ] = {\n 193 , 15 , 0 , - 1 }\n ;\n a = BN_new ( ) ;\n b [ 0 ] = BN_new ( ) ;\n b [ 1 ] = BN_new ( ) ;\n c = BN_new ( ) ;\n d = BN_new ( ) ;\n BN_GF2m_arr2poly ( p0 , b [ 0 ] ) ;\n BN_GF2m_arr2poly ( p1 , b [ 1 ] ) ;\n for ( i = 0 ;\n i < num0 ;\n i ++ ) {\n BN_bntest_rand ( a , 1024 , 0 , 0 ) ;\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n BN_GF2m_mod_sqr ( c , a , b [ j ] , ctx ) ;\n BN_copy ( d , a ) ;\n BN_GF2m_mod_mul ( d , a , d , b [ j ] , ctx ) ;\n # if 0 if ( bp != NULL ) {\n if ( ! results ) {\n BN_print ( bp , a ) ;\n BIO_puts ( bp , \" ^ 2 % \" ) ;\n BN_print ( bp , b [ j ] ) ;\n BIO_puts ( bp , \" = \" ) ;\n BN_print ( bp , c ) ;\n BIO_puts ( bp , \";\n a * a = \" ) ;\n BN_print ( bp , d ) ;\n BIO_puts ( bp , \"\\n\" ) ;\n }\n }\n # endif BN_GF2m_add ( d , c , d ) ;\n if ( ! BN_is_zero ( d ) ) {\n fprintf ( stderr , \"GF(2^m) modular squaring test failed!\\n\" ) ;\n goto err ;\n }\n }\n }\n ret = 1 ;\n err : BN_free ( a ) ;\n BN_free ( b [ 0 ] ) ;\n BN_free ( b [ 1 ] ) ;\n BN_free ( c ) ;\n BN_free ( d ) ;\n return ret ;\n }"}
{"idx": 6677, "target": 0, "func": "static void show_commit ( struct commit * commit , void * data ) {\n struct rev_list_info * info = data ;\n struct rev_info * revs = info -> revs ;\n if ( info -> flags & REV_LIST_QUIET ) {\n finish_commit ( commit , data ) ;\n return ;\n }\n graph_show_commit ( revs -> graph ) ;\n if ( revs -> count ) {\n if ( commit -> object . flags & PATCHSAME ) revs -> count_same ++ ;\n else if ( commit -> object . flags & SYMMETRIC_LEFT ) revs -> count_left ++ ;\n else revs -> count_right ++ ;\n finish_commit ( commit , data ) ;\n return ;\n }\n if ( info -> show_timestamp ) printf ( \"%lu \" , commit -> date ) ;\n if ( info -> header_prefix ) fputs ( info -> header_prefix , stdout ) ;\n if ( ! revs -> graph ) fputs ( get_revision_mark ( revs , commit ) , stdout ) ;\n if ( revs -> abbrev_commit && revs -> abbrev ) fputs ( find_unique_abbrev ( commit -> object . oid . hash , revs -> abbrev ) , stdout ) ;\n else fputs ( oid_to_hex ( & commit -> object . oid ) , stdout ) ;\n if ( revs -> print_parents ) {\n struct commit_list * parents = commit -> parents ;\n while ( parents ) {\n printf ( \" %s\" , oid_to_hex ( & parents -> item -> object . oid ) ) ;\n parents = parents -> next ;\n }\n }\n if ( revs -> children . name ) {\n struct commit_list * children ;\n children = lookup_decoration ( & revs -> children , & commit -> object ) ;\n while ( children ) {\n printf ( \" %s\" , oid_to_hex ( & children -> item -> object . oid ) ) ;\n children = children -> next ;\n }\n }\n show_decorations ( revs , commit ) ;\n if ( revs -> commit_format == CMIT_FMT_ONELINE ) putchar ( ' ' ) ;\n else putchar ( '\\n' ) ;\n if ( revs -> verbose_header && get_cached_commit_buffer ( commit , NULL ) ) {\n struct strbuf buf = STRBUF_INIT ;\n struct pretty_print_context ctx = {\n 0 }\n ;\n ctx . abbrev = revs -> abbrev ;\n ctx . date_mode = revs -> date_mode ;\n ctx . date_mode_explicit = revs -> date_mode_explicit ;\n ctx . fmt = revs -> commit_format ;\n ctx . output_encoding = get_log_output_encoding ( ) ;\n pretty_print_commit ( & ctx , commit , & buf ) ;\n if ( revs -> graph ) {\n if ( buf . len ) {\n if ( revs -> commit_format != CMIT_FMT_ONELINE ) graph_show_oneline ( revs -> graph ) ;\n graph_show_commit_msg ( revs -> graph , & buf ) ;\n if ( buf . len && buf . buf [ buf . len - 1 ] == '\\n' ) graph_show_padding ( revs -> graph ) ;\n putchar ( '\\n' ) ;\n }\n else {\n if ( graph_show_remainder ( revs -> graph ) ) putchar ( '\\n' ) ;\n if ( revs -> commit_format == CMIT_FMT_ONELINE ) putchar ( '\\n' ) ;\n }\n }\n else {\n if ( revs -> commit_format != CMIT_FMT_USERFORMAT || buf . len ) {\n fwrite ( buf . buf , 1 , buf . len , stdout ) ;\n putchar ( info -> hdr_termination ) ;\n }\n }\n strbuf_release ( & buf ) ;\n }\n else {\n if ( graph_show_remainder ( revs -> graph ) ) putchar ( '\\n' ) ;\n }\n maybe_flush_or_die ( stdout , \"stdout\" ) ;\n finish_commit ( commit , data ) ;\n }"}
{"idx": 6678, "target": 0, "func": "static ossl_inline void lh_ ## type ## _stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING ) ;\n # ifdef _MSC_VER # pragma warning ( push ) # pragma warning ( disable : 4090 ) # endif DEFINE_LHASH_OF ( OPENSSL_CSTRING )"}
{"idx": 6679, "target": 0, "func": "static void help ( void ) {\n unsigned int i_opt ;\n printf ( \"Help\\n\" ) ;\n printf ( \" Usage:\\n\" \" androiddump --extcap-interfaces [--adb-server-ip=<arg>] [--adb-server-tcp-port=<arg>]\\n\" \" androiddump --extcap-interface=INTERFACE --extcap-dlts\\n\" \" androiddump --extcap-interface=INTERFACE --extcap-config\\n\" \" androiddump --extcap-interface=INTERFACE --fifo=PATH_FILENAME --capture \\n\" ) ;\n printf ( \"\\n Parameters:\\n\" ) ;\n for ( i_opt = 0 ;\n i_opt < ( sizeof ( longopts ) / sizeof ( longopts [ 0 ] ) ) - 1 ;\n i_opt += 1 ) {\n printf ( \" --%s%s\\n\" , longopts [ i_opt ] . name , ( longopts [ i_opt ] . has_arg == required_argument ) ? \"=<arg>\" : ( ( longopts [ i_opt ] . has_arg == optional_argument ) ? \"[=arg]\" : \"\" ) ) ;\n }\n }"}
{"idx": 6680, "target": 0, "func": "void vp9_frame_init_quantizer ( VP9_COMP * cpi ) {\n cpi -> zbin_mode_boost = 0 ;\n vp9_init_plane_quantizers ( cpi , & cpi -> mb ) ;\n }"}
{"idx": 6681, "target": 0, "func": "static void collectgarbage ( struct garbage * tofrees , struct pskeydict * to ) {\n struct garbage * into ;\n into = tofrees ;\n if ( tofrees -> cnt >= GARBAGE_MAX && tofrees -> next != NULL ) into = tofrees -> next ;\n if ( into -> cnt >= GARBAGE_MAX ) {\n into = chunkalloc ( sizeof ( struct garbage ) ) ;\n into -> next = tofrees -> next ;\n tofrees -> next = into ;\n }\n into -> cnts [ into -> cnt ] = to -> cnt ;\n into -> entries [ into -> cnt ++ ] = to -> entries ;\n }"}
{"idx": 6682, "target": 0, "func": "static int dissect_h225_NonStandardIdentifier ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 783 \"./asn1/h225/h225.cnf\" gint32 value ;\n nsiOID = \"\" ;\n h221NonStandard = 0 ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_NonStandardIdentifier , NonStandardIdentifier_choice , & value ) ;\n switch ( value ) {\n case 0 : nsp_handle = dissector_get_string_handle ( nsp_object_dissector_table , nsiOID ) ;\n break ;\n case 1 : nsp_handle = dissector_get_uint_handle ( nsp_h221_dissector_table , h221NonStandard ) ;\n break ;\n default : nsp_handle = NULL ;\n }\n return offset ;\n }"}
{"idx": 6683, "target": 0, "func": "static void nuke_joiners ( const hb_ot_shape_plan_t * plan HB_UNUSED , hb_font_t * font HB_UNUSED , hb_buffer_t * buffer ) {\n unsigned int count = buffer -> len ;\n hb_glyph_info_t * info = buffer -> info ;\n for ( unsigned int i = 0 ;\n i < count ;\n i ++ ) if ( _hb_glyph_info_is_zwj ( & info [ i ] ) ) _hb_glyph_info_flip_joiners ( & info [ i ] ) ;\n }"}
{"idx": 6684, "target": 0, "func": "static void TestVfsFilePath ( bool expected_result , const char * vfs_file_name , const char * expected_origin_identifier = \"\" , const char * expected_database_name = \"\" , const char * expected_sqlite_suffix = \"\" ) {\n std : : string origin_identifier ;\n base : : string16 database_name ;\n base : : string16 sqlite_suffix ;\n EXPECT_EQ ( expected_result , DatabaseUtil : : CrackVfsFileName ( ASCIIToUTF16 ( vfs_file_name ) , & origin_identifier , & database_name , & sqlite_suffix ) ) ;\n EXPECT_EQ ( expected_origin_identifier , origin_identifier ) ;\n EXPECT_EQ ( ASCIIToUTF16 ( expected_database_name ) , database_name ) ;\n EXPECT_EQ ( ASCIIToUTF16 ( expected_sqlite_suffix ) , sqlite_suffix ) ;\n }"}
{"idx": 6685, "target": 0, "func": "static void e1000e_start_xmit ( E1000ECore * core , const E1000E_TxRing * txr ) {\n dma_addr_t base ;\n struct e1000_tx_desc desc ;\n bool ide = false ;\n const E1000E_RingInfo * txi = txr -> i ;\n uint32_t cause = E1000_ICS_TXQE ;\n if ( ! ( core -> mac [ TCTL ] & E1000_TCTL_EN ) ) {\n trace_e1000e_tx_disabled ( ) ;\n return ;\n }\n while ( ! e1000e_ring_empty ( core , txi ) ) {\n base = e1000e_ring_head_descr ( core , txi ) ;\n pci_dma_read ( core -> owner , base , & desc , sizeof ( desc ) ) ;\n trace_e1000e_tx_descr ( ( void * ) ( intptr_t ) desc . buffer_addr , desc . lower . data , desc . upper . data ) ;\n e1000e_process_tx_desc ( core , txr -> tx , & desc , txi -> idx ) ;\n cause |= e1000e_txdesc_writeback ( core , base , & desc , & ide , txi -> idx ) ;\n e1000e_ring_advance ( core , txi , 1 ) ;\n }\n if ( ! ide || ! e1000e_intrmgr_delay_tx_causes ( core , & cause ) ) {\n e1000e_set_interrupt_cause ( core , cause ) ;\n }\n }"}
{"idx": 6686, "target": 0, "func": "static void store_coding_context ( MACROBLOCK * x , PICK_MODE_CONTEXT * ctx , int mode_index , int64_t comp_pred_diff [ REFERENCE_MODES ] , const int64_t tx_size_diff [ TX_MODES ] , int64_t best_filter_diff [ SWITCHABLE_FILTER_CONTEXTS ] , int skippable ) {\n MACROBLOCKD * const xd = & x -> e_mbd ;\n ctx -> skip = x -> skip ;\n ctx -> skippable = skippable ;\n ctx -> best_mode_index = mode_index ;\n ctx -> mic = * xd -> mi [ 0 ] . src_mi ;\n ctx -> single_pred_diff = ( int ) comp_pred_diff [ SINGLE_REFERENCE ] ;\n ctx -> comp_pred_diff = ( int ) comp_pred_diff [ COMPOUND_REFERENCE ] ;\n ctx -> hybrid_pred_diff = ( int ) comp_pred_diff [ REFERENCE_MODE_SELECT ] ;\n vpx_memcpy ( ctx -> tx_rd_diff , tx_size_diff , sizeof ( ctx -> tx_rd_diff ) ) ;\n vpx_memcpy ( ctx -> best_filter_diff , best_filter_diff , sizeof ( * best_filter_diff ) * SWITCHABLE_FILTER_CONTEXTS ) ;\n }"}
{"idx": 6687, "target": 0, "func": "static void compact_print_section_header ( WriterContext * wctx ) {\n CompactContext * compact = wctx -> priv ;\n const struct section * section = wctx -> section [ wctx -> level ] ;\n const struct section * parent_section = wctx -> level ? wctx -> section [ wctx -> level - 1 ] : NULL ;\n compact -> terminate_line [ wctx -> level ] = 1 ;\n compact -> has_nested_elems [ wctx -> level ] = 0 ;\n av_bprint_clear ( & wctx -> section_pbuf [ wctx -> level ] ) ;\n if ( ! ( section -> flags & SECTION_FLAG_IS_ARRAY ) && parent_section && ! ( parent_section -> flags & ( SECTION_FLAG_IS_WRAPPER | SECTION_FLAG_IS_ARRAY ) ) ) {\n compact -> nested_section [ wctx -> level ] = 1 ;\n compact -> has_nested_elems [ wctx -> level - 1 ] = 1 ;\n av_bprintf ( & wctx -> section_pbuf [ wctx -> level ] , \"%s%s:\" , wctx -> section_pbuf [ wctx -> level - 1 ] . str , ( char * ) av_x_if_null ( section -> element_name , section -> name ) ) ;\n wctx -> nb_item [ wctx -> level ] = wctx -> nb_item [ wctx -> level - 1 ] ;\n }\n else {\n if ( parent_section && compact -> has_nested_elems [ wctx -> level - 1 ] && ( section -> flags & SECTION_FLAG_IS_ARRAY ) ) {\n compact -> terminate_line [ wctx -> level - 1 ] = 0 ;\n printf ( \"\\n\" ) ;\n }\n if ( compact -> print_section && ! ( section -> flags & ( SECTION_FLAG_IS_WRAPPER | SECTION_FLAG_IS_ARRAY ) ) ) printf ( \"%s%c\" , section -> name , compact -> item_sep ) ;\n }\n }"}
{"idx": 6688, "target": 0, "func": "int test_gf2m_mod_inv ( BIO * bp , BN_CTX * ctx ) {\n BIGNUM * a , * b [ 2 ] , * c , * d ;\n int i , j , ret = 0 ;\n int p0 [ ] = {\n 163 , 7 , 6 , 3 , 0 , - 1 }\n ;\n int p1 [ ] = {\n 193 , 15 , 0 , - 1 }\n ;\n a = BN_new ( ) ;\n b [ 0 ] = BN_new ( ) ;\n b [ 1 ] = BN_new ( ) ;\n c = BN_new ( ) ;\n d = BN_new ( ) ;\n BN_GF2m_arr2poly ( p0 , b [ 0 ] ) ;\n BN_GF2m_arr2poly ( p1 , b [ 1 ] ) ;\n for ( i = 0 ;\n i < num0 ;\n i ++ ) {\n BN_bntest_rand ( a , 512 , 0 , 0 ) ;\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n BN_GF2m_mod_inv ( c , a , b [ j ] , ctx ) ;\n BN_GF2m_mod_mul ( d , a , c , b [ j ] , ctx ) ;\n # if 0 if ( bp != NULL ) {\n if ( ! results ) {\n BN_print ( bp , a ) ;\n BIO_puts ( bp , \" * \" ) ;\n BN_print ( bp , c ) ;\n BIO_puts ( bp , \" - 1 % \" ) ;\n BN_print ( bp , b [ j ] ) ;\n BIO_puts ( bp , \"\\n\" ) ;\n }\n }\n # endif if ( ! BN_is_one ( d ) ) {\n fprintf ( stderr , \"GF(2^m) modular inversion test failed!\\n\" ) ;\n goto err ;\n }\n }\n }\n ret = 1 ;\n err : BN_free ( a ) ;\n BN_free ( b [ 0 ] ) ;\n BN_free ( b [ 1 ] ) ;\n BN_free ( c ) ;\n BN_free ( d ) ;\n return ret ;\n }"}
{"idx": 6689, "target": 0, "func": "static int selinux_msg_queue_msgctl ( struct msg_queue * msq , int cmd ) {\n int err ;\n int perms ;\n switch ( cmd ) {\n case IPC_INFO : case MSG_INFO : return task_has_system ( current , SYSTEM__IPC_INFO ) ;\n case IPC_STAT : case MSG_STAT : perms = MSGQ__GETATTR | MSGQ__ASSOCIATE ;\n break ;\n case IPC_SET : perms = MSGQ__SETATTR ;\n break ;\n case IPC_RMID : perms = MSGQ__DESTROY ;\n break ;\n default : return 0 ;\n }\n err = ipc_has_perm ( & msq -> q_perm , perms ) ;\n return err ;\n }"}
{"idx": 6690, "target": 0, "func": "static void binkb_init_bundles ( BinkContext * c ) {\n int i ;\n for ( i = 0 ;\n i < BINKB_NB_SRC ;\n i ++ ) binkb_init_bundle ( c , i ) ;\n }"}
{"idx": 6691, "target": 0, "func": "static void qio_channel_websock_set_delay ( QIOChannel * ioc , bool enabled ) {\n QIOChannelWebsock * tioc = QIO_CHANNEL_WEBSOCK ( ioc ) ;\n qio_channel_set_delay ( tioc -> master , enabled ) ;\n }"}
{"idx": 6692, "target": 0, "func": "static inline int16_t mace_broken_clip_int16 ( int n ) {\n if ( n > 32767 ) return 32767 ;\n else if ( n < - 32768 ) return - 32767 ;\n else return n ;\n }"}
{"idx": 6693, "target": 0, "func": "static struct curl_httppost * AddHttpPost ( char * name , size_t namelength , char * value , size_t contentslength , char * buffer , size_t bufferlength , char * contenttype , long flags , struct curl_slist * contentHeader , char * showfilename , char * userp , struct curl_httppost * parent_post , struct curl_httppost * * httppost , struct curl_httppost * * last_post ) {\n struct curl_httppost * post ;\n post = calloc ( 1 , sizeof ( struct curl_httppost ) ) ;\n if ( post ) {\n post -> name = name ;\n post -> namelength = ( long ) ( name ? ( namelength ? namelength : strlen ( name ) ) : 0 ) ;\n post -> contents = value ;\n post -> contentslength = ( long ) contentslength ;\n post -> buffer = buffer ;\n post -> bufferlength = ( long ) bufferlength ;\n post -> contenttype = contenttype ;\n post -> contentheader = contentHeader ;\n post -> showfilename = showfilename ;\n post -> userp = userp , post -> flags = flags ;\n }\n else return NULL ;\n if ( parent_post ) {\n post -> more = parent_post -> more ;\n parent_post -> more = post ;\n }\n else {\n if ( * last_post ) ( * last_post ) -> next = post ;\n else ( * httppost ) = post ;\n ( * last_post ) = post ;\n }\n return post ;\n }"}
{"idx": 6694, "target": 0, "func": "static int dumpcidglyphs ( SplineFont * sf , struct alltabs * at ) {\n int i ;\n struct pschars * glbls = NULL , * chrs ;\n at -> cfff = tmpfile ( ) ;\n at -> sidf = tmpfile ( ) ;\n at -> sidh = tmpfile ( ) ;\n at -> charset = tmpfile ( ) ;\n at -> fdselect = tmpfile ( ) ;\n at -> fdarray = tmpfile ( ) ;\n at -> globalsubrs = tmpfile ( ) ;\n at -> fds = calloc ( sf -> subfontcnt , sizeof ( struct fd2data ) ) ;\n for ( i = 0 ;\n i < sf -> subfontcnt ;\n ++ i ) {\n at -> fds [ i ] . private = tmpfile ( ) ;\n ATFigureDefWidth ( sf -> subfonts [ i ] , at , i ) ;\n }\n if ( ( chrs = CID2ChrsSubrs2 ( sf , at -> fds , at -> gi . flags , & glbls , at -> gi . layer ) ) == NULL ) return ( false ) ;\n for ( i = 0 ;\n i < sf -> subfontcnt ;\n ++ i ) {\n dumpcffprivate ( sf -> subfonts [ i ] , at , i , at -> fds [ i ] . subrs -> next ) ;\n if ( at -> fds [ i ] . subrs -> next != 0 ) _dumpcffstrings ( at -> fds [ i ] . private , at -> fds [ i ] . subrs ) ;\n PSCharsFree ( at -> fds [ i ] . subrs ) ;\n }\n _dumpcffstrings ( at -> globalsubrs , glbls ) ;\n PSCharsFree ( glbls ) ;\n dumpcffheader ( at -> cfff ) ;\n dumpcffnames ( sf , at -> cfff ) ;\n dumpcffcidset ( at ) ;\n dumpcfffdselect ( sf , at ) ;\n dumpcffdictindex ( sf , at ) ;\n if ( ( at -> charstrings = dumpcffstrings ( chrs ) ) == NULL ) return ( false ) ;\n dumpcffcidtopdict ( sf , at ) ;\n finishupcid ( sf , at ) ;\n at -> cfflen = ftell ( at -> cfff ) ;\n if ( at -> cfflen & 3 ) {\n for ( i = 4 - ( at -> cfflen & 3 ) ;\n i > 0 ;\n -- i ) putc ( '\\0' , at -> cfff ) ;\n }\n if ( at -> format != ff_cffcid ) dumpcffcidhmtx ( at , sf ) ;\n return ( true ) ;\n }"}
{"idx": 6695, "target": 0, "func": "int gx_finish_output_page ( gx_device * dev , int num_copies , int flush ) {\n dev -> PageCount += num_copies ;\n return 0 ;\n }"}
{"idx": 6696, "target": 1, "func": "static void _LMBCSOpen ## n ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err ) \\ {\n _LMBCSOpenWorker ( _this , pArgs , err , n ) ;\n }\n static void _LMBCSOpenWorker ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err , ulmbcs_byte_t OptGroup ) {\n UConverterDataLMBCS * extraInfo = _this -> extraInfo = ( UConverterDataLMBCS * ) uprv_malloc ( sizeof ( UConverterDataLMBCS ) ) ;\n if ( extraInfo != NULL ) {\n UConverterNamePieces stackPieces ;\n UConverterLoadArgs stackArgs = {\n ( int32_t ) sizeof ( UConverterLoadArgs ) }\n ;\n ulmbcs_byte_t i ;\n uprv_memset ( extraInfo , 0 , sizeof ( UConverterDataLMBCS ) ) ;\n stackArgs . onlyTestIsLoadable = pArgs -> onlyTestIsLoadable ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST && U_SUCCESS ( * err ) ;\n i ++ ) {\n if ( OptGroupByteToCPName [ i ] != NULL ) {\n extraInfo -> OptGrpConverter [ i ] = ucnv_loadSharedData ( OptGroupByteToCPName [ i ] , & stackPieces , & stackArgs , err ) ;\n }\n }\n if ( U_FAILURE ( * err ) || pArgs -> onlyTestIsLoadable ) {\n _LMBCSClose ( _this ) ;\n return ;\n }\n extraInfo -> OptGroup = OptGroup ;\n extraInfo -> localeConverterIndex = FindLMBCSLocale ( pArgs -> locale ) ;\n }\n else {\n * err = U_MEMORY_ALLOCATION_ERROR ;\n }\n }\n static void _LMBCSClose ( UConverter * _this ) {\n if ( _this -> extraInfo != NULL ) {\n ulmbcs_byte_t Ix ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) _this -> extraInfo ;\n for ( Ix = 0 ;\n Ix <= ULMBCS_GRP_LAST ;\n Ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ Ix ] != NULL ) ucnv_unloadSharedDataIfReady ( extraInfo -> OptGrpConverter [ Ix ] ) ;\n }\n if ( ! _this -> isExtraLocal ) {\n uprv_free ( _this -> extraInfo ) ;\n _this -> extraInfo = NULL ;\n }\n }\n }\n typedef struct LMBCSClone {\n UConverter cnv ;\n UConverterDataLMBCS lmbcs ;\n }\n LMBCSClone ;\n static UConverter * _LMBCSSafeClone ( const UConverter * cnv , void * stackBuffer , int32_t * pBufferSize , UErrorCode * status ) {\n LMBCSClone * newLMBCS ;\n UConverterDataLMBCS * extraInfo ;\n int32_t i ;\n if ( * pBufferSize <= 0 ) {\n * pBufferSize = ( int32_t ) sizeof ( LMBCSClone ) ;\n return NULL ;\n }\n extraInfo = ( UConverterDataLMBCS * ) cnv -> extraInfo ;\n newLMBCS = ( LMBCSClone * ) stackBuffer ;\n uprv_memcpy ( & newLMBCS -> lmbcs , extraInfo , sizeof ( UConverterDataLMBCS ) ) ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST ;\n ++ i ) {\n if ( extraInfo -> OptGrpConverter [ i ] != NULL ) {\n ucnv_incrementRefCount ( extraInfo -> OptGrpConverter [ i ] ) ;\n }\n }\n newLMBCS -> cnv . extraInfo = & newLMBCS -> lmbcs ;\n newLMBCS -> cnv . isExtraLocal = TRUE ;\n return & newLMBCS -> cnv ;\n }\n static size_t LMBCSConversionWorker ( UConverterDataLMBCS * extraInfo , ulmbcs_byte_t group , ulmbcs_byte_t * pStartLMBCS , UChar * pUniChar , ulmbcs_byte_t * lastConverterIndex , UBool * groups_tried ) {\n ulmbcs_byte_t * pLMBCS = pStartLMBCS ;\n UConverterSharedData * xcnv = extraInfo -> OptGrpConverter [ group ] ;\n int bytesConverted ;\n uint32_t value ;\n ulmbcs_byte_t firstByte ;\n U_ASSERT ( xcnv ) ;\n U_ASSERT ( group < ULMBCS_GRP_UNICODE ) ;\n bytesConverted = ucnv_MBCSFromUChar32 ( xcnv , * pUniChar , & value , FALSE ) ;\n if ( bytesConverted > 0 ) {\n firstByte = ( ulmbcs_byte_t ) ( value >> ( ( bytesConverted - 1 ) * 8 ) ) ;\n }\n else {\n groups_tried [ group ] = TRUE ;\n return 0 ;\n }\n * lastConverterIndex = group ;\n U_ASSERT ( ( firstByte <= ULMBCS_C0END ) || ( firstByte >= ULMBCS_C1START ) || ( group == ULMBCS_GRP_EXCEPT ) ) ;\n if ( group != ULMBCS_GRP_EXCEPT && extraInfo -> OptGroup != group ) {\n * pLMBCS ++ = group ;\n if ( bytesConverted == 1 && group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n * pLMBCS ++ = group ;\n }\n }\n if ( bytesConverted == 1 && firstByte < 0x20 ) return 0 ;\n switch ( bytesConverted ) {\n case 4 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 24 ) ;\n U_FALLTHROUGH ;\n case 3 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 16 ) ;\n U_FALLTHROUGH ;\n case 2 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 8 ) ;\n U_FALLTHROUGH ;\n case 1 : * pLMBCS ++ = ( ulmbcs_byte_t ) value ;\n U_FALLTHROUGH ;\n default : break ;\n }\n return ( pLMBCS - pStartLMBCS ) ;\n }\n static size_t LMBCSConvertUni ( ulmbcs_byte_t * pLMBCS , UChar uniChar ) {\n uint8_t LowCh = ( uint8_t ) ( uniChar & 0x00FF ) ;\n uint8_t HighCh = ( uint8_t ) ( uniChar >> 8 ) ;\n * pLMBCS ++ = ULMBCS_GRP_UNICODE ;\n if ( LowCh == 0 ) {\n * pLMBCS ++ = ULMBCS_UNICOMPATZERO ;\n * pLMBCS ++ = HighCh ;\n }\n else {\n * pLMBCS ++ = HighCh ;\n * pLMBCS ++ = LowCh ;\n }\n return ULMBCS_UNICODE_SIZE ;\n }\n static void _LMBCSFromUnicode ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n ulmbcs_byte_t lastConverterIndex = 0 ;\n UChar uniChar ;\n ulmbcs_byte_t LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n ulmbcs_byte_t * pLMBCS ;\n int32_t bytes_written ;\n UBool groups_tried [ ULMBCS_GRP_LAST + 1 ] ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n int sourceIndex = 0 ;\n ulmbcs_byte_t OldConverterIndex = 0 ;\n while ( args -> source < args -> sourceLimit && ! U_FAILURE ( * err ) ) {\n OldConverterIndex = extraInfo -> localeConverterIndex ;\n if ( args -> target >= args -> targetLimit ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n uniChar = * ( args -> source ) ;\n bytes_written = 0 ;\n pLMBCS = LMBCS ;\n if ( ( uniChar >= 0x80 ) && ( uniChar <= 0xff ) && ( uniChar != 0xB1 ) && ( uniChar != 0xD7 ) && ( uniChar != 0xF7 ) && ( uniChar != 0xB0 ) && ( uniChar != 0xB4 ) && ( uniChar != 0xB6 ) && ( uniChar != 0xA7 ) && ( uniChar != 0xA8 ) ) {\n extraInfo -> localeConverterIndex = ULMBCS_GRP_L1 ;\n }\n if ( ( ( uniChar > ULMBCS_C0END ) && ( uniChar < ULMBCS_C1START ) ) || uniChar == 0 || uniChar == ULMBCS_HT || uniChar == ULMBCS_CR || uniChar == ULMBCS_LF || uniChar == ULMBCS_123SYSTEMRANGE ) {\n * pLMBCS ++ = ( ulmbcs_byte_t ) uniChar ;\n bytes_written = 1 ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t group = FindLMBCSUniRange ( uniChar ) ;\n if ( group == ULMBCS_GRP_UNICODE ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group == ULMBCS_GRP_CTRL ) {\n if ( uniChar <= ULMBCS_C0END ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( ULMBCS_CTRLOFFSET + uniChar ) ;\n }\n else if ( uniChar >= ULMBCS_C1START && uniChar <= ULMBCS_C1START + ULMBCS_CTRLOFFSET ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( uniChar & 0x00FF ) ;\n }\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group < ULMBCS_GRP_UNICODE ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , group , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n uprv_memset ( groups_tried , 0 , sizeof ( groups_tried ) ) ;\n if ( ( extraInfo -> OptGroup != 1 ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> OptGroup ) ) ) {\n if ( extraInfo -> localeConverterIndex < ULMBCS_DOUBLEOPTGROUP_START ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_L1 , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n else {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && ( extraInfo -> localeConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> localeConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written && ( lastConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , lastConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , lastConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t grp_start ;\n ulmbcs_byte_t grp_end ;\n ulmbcs_byte_t grp_ix ;\n grp_start = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_DOUBLEOPTGROUP_START : ULMBCS_GRP_L1 ) ;\n grp_end = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_GRP_LAST : ULMBCS_GRP_TH ) ;\n if ( group == ULMBCS_AMBIGUOUS_ALL ) {\n grp_start = ULMBCS_GRP_L1 ;\n grp_end = ULMBCS_GRP_LAST ;\n }\n for ( grp_ix = grp_start ;\n grp_ix <= grp_end && ! bytes_written ;\n grp_ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ grp_ix ] && ! groups_tried [ grp_ix ] ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , grp_ix , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && grp_start == ULMBCS_GRP_L1 ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n }\n }\n args -> source ++ ;\n pLMBCS = LMBCS ;\n while ( args -> target < args -> targetLimit && bytes_written -- ) {\n * ( args -> target ) ++ = * pLMBCS ++ ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = sourceIndex ;\n }\n }\n sourceIndex ++ ;\n if ( bytes_written > 0 ) {\n uint8_t * pErrorBuffer = args -> converter -> charErrorBuffer ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n args -> converter -> charErrorBufferLength = ( int8_t ) bytes_written ;\n while ( bytes_written -- ) {\n * pErrorBuffer ++ = * pLMBCS ++ ;\n }\n }\n extraInfo -> localeConverterIndex = OldConverterIndex ;\n }\n }\n static UChar GetUniFromLMBCSUni ( char const * * ppLMBCSin ) {\n uint8_t HighCh = * ( * ppLMBCSin ) ++ ;\n uint8_t LowCh = * ( * ppLMBCSin ) ++ ;\n if ( HighCh == ULMBCS_UNICOMPATZERO ) {\n HighCh = LowCh ;\n LowCh = 0 ;\n }\n return ( UChar ) ( ( HighCh << 8 ) | LowCh ) ;\n }\n # define CHECK_SOURCE_LIMIT ( index ) if ( args -> source + index > args -> sourceLimit ) {\n * err = U_TRUNCATED_CHAR_FOUND ;\n args -> source = args -> sourceLimit ;\n return 0xffff ;\n }\n static UChar32 _LMBCSGetNextUCharWorker ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n UChar32 uniChar = 0 ;\n ulmbcs_byte_t CurByte ;\n if ( args -> source >= args -> sourceLimit ) {\n * err = U_ILLEGAL_ARGUMENT_ERROR ;\n return 0xffff ;\n }\n CurByte = * ( ( ulmbcs_byte_t * ) ( args -> source ++ ) ) ;\n if ( ( ( CurByte > ULMBCS_C0END ) && ( CurByte < ULMBCS_C1START ) ) || ( CurByte == 0 ) || CurByte == ULMBCS_HT || CurByte == ULMBCS_CR || CurByte == ULMBCS_LF || CurByte == ULMBCS_123SYSTEMRANGE ) {\n uniChar = CurByte ;\n }\n else {\n UConverterDataLMBCS * extraInfo ;\n ulmbcs_byte_t group ;\n UConverterSharedData * cnv ;\n if ( CurByte == ULMBCS_GRP_CTRL ) {\n ulmbcs_byte_t C0C1byte ;\n CHECK_SOURCE_LIMIT ( 1 ) ;\n C0C1byte = * ( args -> source ) ++ ;\n uniChar = ( C0C1byte < ULMBCS_C1START ) ? C0C1byte - ULMBCS_CTRLOFFSET : C0C1byte ;\n }\n else if ( CurByte == ULMBCS_GRP_UNICODE ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n return GetUniFromLMBCSUni ( & ( args -> source ) ) ;\n }\n else if ( CurByte <= ULMBCS_CTRLOFFSET ) {\n group = CurByte ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n if ( group > ULMBCS_GRP_LAST || ( cnv = extraInfo -> OptGrpConverter [ group ] ) == NULL ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n if ( * args -> source == group ) {\n ++ args -> source ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 1 , FALSE ) ;\n ++ args -> source ;\n }\n else {\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 2 , FALSE ) ;\n args -> source += 2 ;\n }\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n CurByte = * ( args -> source ) ++ ;\n if ( CurByte >= ULMBCS_C1START ) {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n else {\n char bytes [ 2 ] ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n cnv = extraInfo -> OptGrpConverter [ ULMBCS_GRP_EXCEPT ] ;\n bytes [ 0 ] = group ;\n bytes [ 1 ] = CurByte ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , bytes , 2 , FALSE ) ;\n }\n }\n }\n else if ( CurByte >= ULMBCS_C1START ) {\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n group = extraInfo -> OptGroup ;\n cnv = extraInfo -> OptGrpConverter [ group ] ;\n if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n if ( ! ucnv_MBCSIsLeadByte ( cnv , CurByte ) ) {\n CHECK_SOURCE_LIMIT ( 0 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 1 , FALSE ) ;\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 2 , FALSE ) ;\n ++ args -> source ;\n }\n }\n else {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n }\n }\n return uniChar ;\n }\n static void _LMBCSToUnicodeWithOffsets ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n char LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n UChar uniChar ;\n const char * saveSource ;\n const char * pStartLMBCS = args -> source ;\n const char * errSource = NULL ;\n int8_t savebytes = 0 ;\n while ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit > args -> target ) {\n saveSource = args -> source ;\n if ( args -> converter -> toULength ) {\n const char * saveSourceLimit ;\n size_t size_old = args -> converter -> toULength ;\n size_t size_new_maybe_1 = sizeof ( LMBCS ) - size_old ;\n size_t size_new_maybe_2 = args -> sourceLimit - args -> source ;\n size_t size_new = ( size_new_maybe_1 < size_new_maybe_2 ) ? size_new_maybe_1 : size_new_maybe_2 ;\n uprv_memcpy ( LMBCS , args -> converter -> toUBytes , size_old ) ;\n uprv_memcpy ( LMBCS + size_old , args -> source , size_new ) ;\n saveSourceLimit = args -> sourceLimit ;\n args -> source = errSource = LMBCS ;\n args -> sourceLimit = LMBCS + size_old + size_new ;\n savebytes = ( int8_t ) ( size_old + size_new ) ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n args -> source = saveSource + ( ( args -> source - LMBCS ) - size_old ) ;\n args -> sourceLimit = saveSourceLimit ;\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n args -> converter -> toULength = savebytes ;\n uprv_memcpy ( args -> converter -> toUBytes , LMBCS , savebytes ) ;\n args -> source = args -> sourceLimit ;\n * err = U_ZERO_ERROR ;\n return ;\n }\n else {\n args -> converter -> toULength = 0 ;\n }\n }\n else {\n errSource = saveSource ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n savebytes = ( int8_t ) ( args -> source - saveSource ) ;\n }\n if ( U_SUCCESS ( * err ) ) {\n if ( uniChar < 0xfffe ) {\n * ( args -> target ) ++ = uniChar ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = ( int32_t ) ( saveSource - pStartLMBCS ) ;\n }\n }\n else if ( uniChar == 0xfffe ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n }\n if ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit <= args -> target ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n else if ( U_FAILURE ( * err ) ) {\n args -> converter -> toULength = savebytes ;\n if ( savebytes > 0 ) {\n uprv_memcpy ( args -> converter -> toUBytes , errSource , savebytes ) ;\n }\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n * err = U_ZERO_ERROR ;\n }\n }\n }\n DEFINE_LMBCS_OPEN ( 1 ) DEFINE_LMBCS_OPEN ( 2 ) DEFINE_LMBCS_OPEN ( 3 ) DEFINE_LMBCS_OPEN ( 4 ) DEFINE_LMBCS_OPEN ( 5 )"}
{"idx": 6697, "target": 0, "func": "static int32_t u_scanf_hex_handler ( UFILE * input , u_scanf_spec_info * info , ufmt_args * args , const UChar * fmt , int32_t * fmtConsumed , int32_t * argConverted ) {\n ( void ) fmt ;\n ( void ) fmtConsumed ;\n int32_t len ;\n int32_t skipped ;\n void * num = ( void * ) ( args [ 0 ] . ptrValue ) ;\n int64_t result ;\n skipped = u_scanf_skip_leading_ws ( input , info -> fPadChar ) ;\n ufile_fill_uchar_buffer ( input ) ;\n len = ( int32_t ) ( input -> str . fLimit - input -> str . fPos ) ;\n if ( info -> fWidth != - 1 ) len = ufmt_min ( len , info -> fWidth ) ;\n if ( * ( input -> str . fPos ) == 0x0030 && ( * ( input -> str . fPos + 1 ) == 0x0078 || * ( input -> str . fPos + 1 ) == 0x0058 ) ) {\n input -> str . fPos += 2 ;\n len -= 2 ;\n }\n result = ufmt_uto64 ( input -> str . fPos , & len , 16 ) ;\n input -> str . fPos += len ;\n if ( ! info -> fSkipArg ) {\n if ( info -> fIsShort ) * ( int16_t * ) num = ( int16_t ) ( UINT16_MAX & result ) ;\n else if ( info -> fIsLongLong ) * ( int64_t * ) num = result ;\n else * ( int32_t * ) num = ( int32_t ) ( UINT32_MAX & result ) ;\n }\n * argConverted = ! info -> fSkipArg ;\n return len + skipped ;\n }"}
{"idx": 6698, "target": 0, "func": "static void vp3_decode_flush ( AVCodecContext * avctx ) {\n Vp3DecodeContext * s = avctx -> priv_data ;\n if ( s -> golden_frame . f ) ff_thread_release_buffer ( avctx , & s -> golden_frame ) ;\n if ( s -> last_frame . f ) ff_thread_release_buffer ( avctx , & s -> last_frame ) ;\n if ( s -> current_frame . f ) ff_thread_release_buffer ( avctx , & s -> current_frame ) ;\n }"}
{"idx": 6699, "target": 0, "func": "void BrotliHuffmanTreeGroupInit ( BrotliState * s , HuffmanTreeGroup * group , uint32_t alphabet_size , uint32_t ntrees ) {\n const size_t max_table_size = kMaxHuffmanTableSize [ ( alphabet_size + 31 ) >> 5 ] ;\n const size_t code_size = sizeof ( HuffmanCode ) * ntrees * max_table_size ;\n const size_t htree_size = sizeof ( HuffmanCode * ) * ntrees ;\n char * p = ( char * ) BROTLI_ALLOC ( s , code_size + htree_size ) ;\n group -> alphabet_size = ( uint16_t ) alphabet_size ;\n group -> num_htrees = ( uint16_t ) ntrees ;\n group -> codes = ( HuffmanCode * ) p ;\n group -> htrees = ( HuffmanCode * * ) ( p + code_size ) ;\n }"}
{"idx": 6700, "target": 0, "func": "static void spl_filesystem_dir_it_rewind ( zend_object_iterator * iter TSRMLS_DC ) {\n spl_filesystem_object * object = spl_filesystem_iterator_to_object ( ( spl_filesystem_iterator * ) iter ) ;\n object -> u . dir . index = 0 ;\n if ( object -> u . dir . dirp ) {\n php_stream_rewinddir ( object -> u . dir . dirp ) ;\n }\n spl_filesystem_dir_read ( object TSRMLS_CC ) ;\n }"}
{"idx": 6701, "target": 0, "func": "static PyObject * string_lower ( PyStringObject * self ) {\n char * s ;\n Py_ssize_t i , n = PyString_GET_SIZE ( self ) ;\n PyObject * newobj ;\n newobj = PyString_FromStringAndSize ( NULL , n ) ;\n if ( ! newobj ) return NULL ;\n s = PyString_AS_STRING ( newobj ) ;\n Py_MEMCPY ( s , PyString_AS_STRING ( self ) , n ) ;\n for ( i = 0 ;\n i < n ;\n i ++ ) {\n int c = Py_CHARMASK ( s [ i ] ) ;\n if ( isupper ( c ) ) s [ i ] = _tolower ( c ) ;\n }\n return newobj ;\n }"}
{"idx": 6702, "target": 1, "func": "static int estimate_bits_at_q ( FRAME_TYPE frame_type , int q , int mbs , double correction_factor ) {\n const int bpm = ( int ) ( vp9_rc_bits_per_mb ( frame_type , q , correction_factor ) ) ;\n return ( ( uint64_t ) bpm * mbs ) >> BPER_MB_NORMBITS ;\n }"}
{"idx": 6703, "target": 0, "func": "EVP_PKEY * d2i_PUBKEY_bio ( BIO * bp , EVP_PKEY * * a ) {\n return ASN1_d2i_bio_of ( EVP_PKEY , EVP_PKEY_new , d2i_PUBKEY , bp , a ) ;\n }"}
{"idx": 6704, "target": 0, "func": "static void fts_mail_build_ctx_set_lang ( struct fts_mail_build_context * ctx , struct fts_user_language * user_lang ) {\n i_assert ( user_lang != NULL ) ;\n ctx -> cur_user_lang = user_lang ;\n fts_tokenizer_reset ( user_lang -> index_tokenizer ) ;\n }"}
{"idx": 6705, "target": 0, "func": "void jpc_ft_fwdlift_colgrp ( jpc_fix_t * a , int numrows , int stride , int parity ) {\n jpc_fix_t * lptr ;\n jpc_fix_t * hptr ;\n register jpc_fix_t * lptr2 ;\n register jpc_fix_t * hptr2 ;\n register int n ;\n register int i ;\n int llen ;\n llen = ( numrows + 1 - parity ) >> 1 ;\n if ( numrows > 1 ) {\n lptr = & a [ 0 ] ;\n hptr = & a [ llen * stride ] ;\n if ( parity ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n hptr2 [ 0 ] -= lptr2 [ 0 ] ;\n ++ hptr2 ;\n ++ lptr2 ;\n }\n hptr += stride ;\n }\n n = numrows - llen - parity - ( parity == ( numrows & 1 ) ) ;\n while ( n -- > 0 ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n hptr2 [ 0 ] -= jpc_fix_asr ( lptr2 [ 0 ] + lptr2 [ stride ] , 1 ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n hptr += stride ;\n lptr += stride ;\n }\n if ( parity == ( numrows & 1 ) ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n hptr2 [ 0 ] -= lptr2 [ 0 ] ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n }\n lptr = & a [ 0 ] ;\n hptr = & a [ llen * stride ] ;\n if ( ! parity ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n lptr2 [ 0 ] += jpc_fix_asr ( hptr2 [ 0 ] + 1 , 1 ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n lptr += stride ;\n }\n n = llen - ( ! parity ) - ( parity != ( numrows & 1 ) ) ;\n while ( n -- > 0 ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n lptr2 [ 0 ] += jpc_fix_asr ( hptr2 [ 0 ] + hptr2 [ stride ] + 2 , 2 ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n lptr += stride ;\n hptr += stride ;\n }\n if ( parity != ( numrows & 1 ) ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n lptr2 [ 0 ] += jpc_fix_asr ( hptr2 [ 0 ] + 1 , 1 ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n }\n }\n else {\n if ( parity ) {\n lptr2 = & a [ 0 ] ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n lptr2 [ 0 ] = jpc_fix_asl ( lptr2 [ 0 ] , 1 ) ;\n ++ lptr2 ;\n }\n }\n }\n }"}
{"idx": 6706, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( DownloadNotificationTest , DownloadRemoved ) {\n CreateDownload ( ) ;\n EXPECT_TRUE ( notification ( ) ) ;\n download_item ( ) -> Remove ( ) ;\n EXPECT_FALSE ( notification ( ) ) ;\n std : : vector < download : : DownloadItem * > downloads ;\n GetDownloadManager ( browser ( ) ) -> GetAllDownloads ( & downloads ) ;\n EXPECT_EQ ( 0u , downloads . size ( ) ) ;\n }"}
{"idx": 6707, "target": 1, "func": "static vpx_codec_err_t parse_scale_factors ( SvcContext * svc_ctx , const char * scale_factors ) {\n char * input_string ;\n char * token ;\n const char * delim = \",\" ;\n char * save_ptr ;\n int found = 0 ;\n int i ;\n int64_t num , den ;\n vpx_codec_err_t res = VPX_CODEC_OK ;\n SvcInternal * const si = get_svc_internal ( svc_ctx ) ;\n if ( scale_factors == NULL || strlen ( scale_factors ) == 0 ) {\n input_string = strdup ( DEFAULT_SCALE_FACTORS ) ;\n }\n else {\n input_string = strdup ( scale_factors ) ;\n }\n token = strtok_r ( input_string , delim , & save_ptr ) ;\n for ( i = 0 ;\n i < svc_ctx -> spatial_layers ;\n ++ i ) {\n num = den = 0 ;\n if ( token != NULL ) {\n num = strtol ( token , & token , 10 ) ;\n if ( num <= 0 ) {\n log_invalid_scale_factor ( svc_ctx , token ) ;\n res = VPX_CODEC_INVALID_PARAM ;\n break ;\n }\n if ( * token ++ != '/' ) {\n log_invalid_scale_factor ( svc_ctx , token ) ;\n res = VPX_CODEC_INVALID_PARAM ;\n break ;\n }\n den = strtol ( token , & token , 10 ) ;\n if ( den <= 0 ) {\n log_invalid_scale_factor ( svc_ctx , token ) ;\n res = VPX_CODEC_INVALID_PARAM ;\n break ;\n }\n token = strtok_r ( NULL , delim , & save_ptr ) ;\n found = i + 1 ;\n }\n si -> scaling_factor_num [ i + VPX_SS_MAX_LAYERS - svc_ctx -> spatial_layers ] = ( int ) num ;\n si -> scaling_factor_den [ i + VPX_SS_MAX_LAYERS - svc_ctx -> spatial_layers ] = ( int ) den ;\n }\n if ( res == VPX_CODEC_OK && found != svc_ctx -> spatial_layers ) {\n svc_log ( svc_ctx , SVC_LOG_ERROR , \"svc: scale-factors: %d values required, but only %d specified\\n\" , svc_ctx -> spatial_layers , found ) ;\n res = VPX_CODEC_INVALID_PARAM ;\n }\n free ( input_string ) ;\n return res ;\n }"}
{"idx": 6708, "target": 0, "func": "REGRESSION_TEST ( SDK_API_TSMimeHdrField ) ( RegressionTest * test , int , int * pstatus ) {\n TSMBuffer bufp1 = ( TSMBuffer ) nullptr ;\n TSMLoc mime_loc1 = ( TSMLoc ) nullptr ;\n TSMLoc field_loc11 = ( TSMLoc ) nullptr ;\n TSMLoc field_loc12 = ( TSMLoc ) nullptr ;\n TSMLoc field_loc13 = ( TSMLoc ) nullptr ;\n TSMLoc field_loc14 = ( TSMLoc ) nullptr ;\n TSMLoc field_loc15 = ( TSMLoc ) nullptr ;\n const char * field1Name = \"field1\" ;\n const char * field2Name = \"field2\" ;\n const char * field3Name = \"field3\" ;\n const char * field4Name = \"field4\" ;\n const char * field5Name = \"field5\" ;\n const char * field1NameGet ;\n const char * field2NameGet ;\n const char * field3NameGet ;\n const char * field4NameGet ;\n const char * field5NameGet ;\n int field1NameGetLength ;\n int field2NameGetLength ;\n int field3NameGetLength ;\n int field4NameGetLength ;\n int field5NameGetLength ;\n int field1_length ;\n int field2_length ;\n int field3_length ;\n int field4_length ;\n TSMLoc test_field_loc11 = ( TSMLoc ) nullptr ;\n TSMLoc test_field_loc12 = ( TSMLoc ) nullptr ;\n TSMLoc test_field_loc13 = ( TSMLoc ) nullptr ;\n TSMLoc test_field_loc14 = ( TSMLoc ) nullptr ;\n TSMLoc test_field_loc15 = ( TSMLoc ) nullptr ;\n int actualNumberOfFields ;\n int numberOfFields ;\n const char * field1Value1 = \"field1Value1\" ;\n const char * field1Value2 = \"field1Value2\" ;\n const char * field1Value3 = \"field1Value3\" ;\n const char * field1Value4 = \"field1Value4\" ;\n const char * field1Value5 = \"field1Value5\" ;\n const char * field1ValueNew = \"newfieldValue\" ;\n const char * field1Value1Get ;\n const char * field1Value2Get ;\n const char * field1Value3Get ;\n const char * field1Value4Get ;\n const char * field1Value5Get ;\n const char * field1ValueAllGet ;\n const char * field1ValueNewGet ;\n int lengthField1Value1 ;\n int lengthField1Value2 ;\n int lengthField1Value3 ;\n int lengthField1Value4 ;\n int lengthField1Value5 ;\n int lengthField1ValueAll ;\n int lengthField1ValueNew ;\n time_t field2Value1 = time ( nullptr ) ;\n time_t field2Value1Get ;\n time_t field2ValueNew ;\n time_t field2ValueNewGet ;\n int field3Value1 = 31 ;\n int field3Value2 = 32 ;\n int field3Value3 = 33 ;\n int field3Value4 = 34 ;\n int field3Value5 = 35 ;\n int field3ValueNew = 30 ;\n int field3Value1Get ;\n int field3Value2Get ;\n int field3Value3Get ;\n int field3Value4Get ;\n int field3Value5Get ;\n int field3ValueNewGet ;\n unsigned int field4Value1 = 41 ;\n unsigned int field4Value2 = 42 ;\n unsigned int field4Value3 = 43 ;\n unsigned int field4Value4 = 44 ;\n unsigned int field4Value5 = 45 ;\n unsigned int field4ValueNew = 40 ;\n unsigned int field4Value1Get ;\n unsigned int field4Value2Get ;\n unsigned int field4Value3Get ;\n unsigned int field4Value4Get ;\n unsigned int field4Value5Get ;\n unsigned int field4ValueNewGet ;\n const char * field5Value1 = \"field5Value1\" ;\n const char * field5Value1Append = \"AppendedValue\" ;\n const char * fieldValueAppendGet ;\n int lengthFieldValueAppended ;\n int field5Value2 = 52 ;\n const char * field5Value3 = \"DeleteValue\" ;\n const char * fieldValueDeleteGet ;\n int lengthFieldValueDeleteGet ;\n unsigned int field5Value4 = 54 ;\n int numberOfValueInField ;\n TSMLoc field_loc ;\n bool test_passed_MBuffer_Create = false ;\n bool test_passed_Mime_Hdr_Create = false ;\n bool test_passed_Mime_Hdr_Field_Create = false ;\n bool test_passed_Mime_Hdr_Field_Name = false ;\n bool test_passed_Mime_Hdr_Field_Append = false ;\n bool test_passed_Mime_Hdr_Field_Get = false ;\n bool test_passed_Mime_Hdr_Field_Next = false ;\n bool test_passed_Mime_Hdr_Fields_Count = false ;\n bool test_passed_Mime_Hdr_Field_Value_String_Insert = false ;\n bool test_passed_Mime_Hdr_Field_Value_String_Get = false ;\n bool test_passed_Mime_Hdr_Field_Value_String_Set = false ;\n bool test_passed_Mime_Hdr_Field_Value_Date_Insert = false ;\n bool test_passed_Mime_Hdr_Field_Value_Date_Get = false ;\n bool test_passed_Mime_Hdr_Field_Value_Date_Set = false ;\n bool test_passed_Mime_Hdr_Field_Value_Int_Insert = false ;\n bool test_passed_Mime_Hdr_Field_Value_Int_Get = false ;\n bool test_passed_Mime_Hdr_Field_Value_Int_Set = false ;\n bool test_passed_Mime_Hdr_Field_Value_Uint_Insert = false ;\n bool test_passed_Mime_Hdr_Field_Value_Uint_Get = false ;\n bool test_passed_Mime_Hdr_Field_Value_Uint_Set = false ;\n bool test_passed_Mime_Hdr_Field_Value_Append = false ;\n bool test_passed_Mime_Hdr_Field_Value_Delete = false ;\n bool test_passed_Mime_Hdr_Field_Values_Clear = false ;\n bool test_passed_Mime_Hdr_Field_Values_Count = false ;\n bool test_passed_Mime_Hdr_Field_Destroy = false ;\n bool test_passed_Mime_Hdr_Fields_Clear = false ;\n bool test_passed_Mime_Hdr_Destroy = false ;\n bool test_passed_MBuffer_Destroy = false ;\n bool test_passed_Mime_Hdr_Field_Length_Get = false ;\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n bufp1 = TSMBufferCreate ( ) ;\n SDK_RPRINT ( test , \"TSMBufferCreate\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_MBuffer_Create = true ;\n if ( test_passed_MBuffer_Create == true ) {\n if ( TSMimeHdrCreate ( bufp1 , & mime_loc1 ) != TS_SUCCESS ) {\n SDK_RPRINT ( test , \"TSMimeHdrCreate\" , \"TestCase1\" , TC_FAIL , \"TSMimeHdrCreate Returns TS_ERROR\" ) ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrCreate\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_Mime_Hdr_Create = true ;\n }\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrCreate\" , \"TestCase1\" , TC_FAIL , \"Cannot run test as Test for TSMBufferCreate Failed\" ) ;\n }\n if ( test_passed_Mime_Hdr_Create == true ) {\n if ( ( TSMimeHdrFieldCreate ( bufp1 , mime_loc1 , & field_loc11 ) != TS_SUCCESS ) || ( TSMimeHdrFieldCreate ( bufp1 , mime_loc1 , & field_loc12 ) != TS_SUCCESS ) || ( TSMimeHdrFieldCreate ( bufp1 , mime_loc1 , & field_loc13 ) != TS_SUCCESS ) || ( TSMimeHdrFieldCreate ( bufp1 , mime_loc1 , & field_loc14 ) != TS_SUCCESS ) || ( TSMimeHdrFieldCreate ( bufp1 , mime_loc1 , & field_loc15 ) != TS_SUCCESS ) ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldCreate\" , \"TestCase1|2|3|4|5\" , TC_FAIL , \"TSMimeHdrFieldCreate Returns TS_ERROR\" ) ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldCreate\" , \"TestCase1|2|3|4|5\" , TC_PASS , \"ok\" ) ;\n test_passed_Mime_Hdr_Field_Create = true ;\n }\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldCreate\" , \"All Test Case\" , TC_FAIL , \"Cannot run test as Test for TSMimeHdrCreate Failed\" ) ;\n }\n if ( test_passed_Mime_Hdr_Field_Create == true ) {\n if ( ( TSMimeHdrFieldNameSet ( bufp1 , mime_loc1 , field_loc11 , field1Name , - 1 ) == TS_ERROR ) || ( TSMimeHdrFieldNameSet ( bufp1 , mime_loc1 , field_loc12 , field2Name , - 1 ) == TS_ERROR ) || ( TSMimeHdrFieldNameSet ( bufp1 , mime_loc1 , field_loc13 , field3Name , - 1 ) == TS_ERROR ) || ( TSMimeHdrFieldNameSet ( bufp1 , mime_loc1 , field_loc14 , field4Name , - 1 ) == TS_ERROR ) || ( TSMimeHdrFieldNameSet ( bufp1 , mime_loc1 , field_loc15 , field5Name , - 1 ) == TS_ERROR ) ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldNameSet\" , \"TestCase1|2|3|4|5\" , TC_FAIL , \"TSMimeHdrFieldNameSet Returns TS_ERROR\" ) ;\n }\n else {\n field1NameGet = TSMimeHdrFieldNameGet ( bufp1 , mime_loc1 , field_loc11 , & field1NameGetLength ) ;\n field2NameGet = TSMimeHdrFieldNameGet ( bufp1 , mime_loc1 , field_loc12 , & field2NameGetLength ) ;\n field3NameGet = TSMimeHdrFieldNameGet ( bufp1 , mime_loc1 , field_loc13 , & field3NameGetLength ) ;\n field4NameGet = TSMimeHdrFieldNameGet ( bufp1 , mime_loc1 , field_loc14 , & field4NameGetLength ) ;\n field5NameGet = TSMimeHdrFieldNameGet ( bufp1 , mime_loc1 , field_loc15 , & field5NameGetLength ) ;\n if ( ( ( strncmp ( field1NameGet , field1Name , field1NameGetLength ) == 0 ) && ( field1NameGetLength == ( int ) strlen ( field1Name ) ) ) && ( ( strncmp ( field2NameGet , field2Name , field2NameGetLength ) == 0 ) && ( field2NameGetLength == ( int ) strlen ( field2Name ) ) ) && ( ( strncmp ( field3NameGet , field3Name , field3NameGetLength ) == 0 ) && ( field3NameGetLength == ( int ) strlen ( field3Name ) ) ) && ( ( strncmp ( field4NameGet , field4Name , field4NameGetLength ) == 0 ) && ( field4NameGetLength == ( int ) strlen ( field4Name ) ) ) && ( ( strncmp ( field5NameGet , field5Name , field5NameGetLength ) == 0 ) && field5NameGetLength == ( int ) strlen ( field5Name ) ) ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldNameGet&Set\" , \"TestCase1&2&3&4&5\" , TC_PASS , \"ok\" ) ;\n test_passed_Mime_Hdr_Field_Name = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldNameGet&Set\" , \"TestCase1|2|3|4|5\" , TC_FAIL , \"Values Don't Match\" ) ;\n }\n }\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldNameGet&Set\" , \"All Test Case\" , TC_FAIL , \"Cannot run test as Test for TSMBufferFieldCreate Failed\" ) ;\n }\n if ( test_passed_Mime_Hdr_Field_Name == true ) {\n if ( ( TSMimeHdrFieldAppend ( bufp1 , mime_loc1 , field_loc11 ) != TS_SUCCESS ) || ( TSMimeHdrFieldAppend ( bufp1 , mime_loc1 , field_loc12 ) != TS_SUCCESS ) || ( TSMimeHdrFieldAppend ( bufp1 , mime_loc1 , field_loc13 ) != TS_SUCCESS ) || ( TSMimeHdrFieldAppend ( bufp1 , mime_loc1 , field_loc14 ) != TS_SUCCESS ) || ( TSMimeHdrFieldAppend ( bufp1 , mime_loc1 , field_loc15 ) != TS_SUCCESS ) ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldAppend\" , \"TestCase1|2|3|4|5\" , TC_FAIL , \"TSMimeHdrFieldAppend Returns TS_ERROR\" ) ;\n }\n else {\n if ( TS_NULL_MLOC == ( test_field_loc11 = TSMimeHdrFieldGet ( bufp1 , mime_loc1 , 0 ) ) ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldAppend\" , \"TestCase1|2|3|4|5\" , TC_FAIL , \"TSMimeHdrFieldGet Returns TS_NULL_MLOC\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldNext\" , \"TestCase1\" , TC_FAIL , \"Cannot Test TSMimeHdrFieldNext as TSMimeHdrFieldGet Returns TS_NULL_MLOC\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldGet\" , \"TestCase1\" , TC_FAIL , \"TSMimeHdrFieldGet Returns TS_NULL_MLOC\" ) ;\n }\n else {\n if ( compare_field_names ( test , bufp1 , mime_loc1 , field_loc11 , bufp1 , mime_loc1 , test_field_loc11 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldAppend\" , \"TestCase1\" , TC_FAIL , \"Values Don't match\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldNext\" , \"TestCase1\" , TC_FAIL , \"Cannot Test TSMimeHdrFieldNext as Values don't match\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldGet\" , \"TestCase1\" , TC_FAIL , \"Values Don't match\" ) ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldAppend\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldGet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_Mime_Hdr_Field_Append = true ;\n test_passed_Mime_Hdr_Field_Get = true ;\n }\n }\n if ( test_passed_Mime_Hdr_Field_Append == true ) {\n test_field_loc12 = TSMimeHdrFieldNext ( bufp1 , mime_loc1 , test_field_loc11 ) ;\n if ( compare_field_names ( test , bufp1 , mime_loc1 , field_loc12 , bufp1 , mime_loc1 , test_field_loc12 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldAppend\" , \"TestCase2\" , TC_PASS , \"Values Don't match\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldNext\" , \"TestCase2\" , TC_PASS , \"Values Don't match\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldGet\" , \"TestCase2\" , TC_PASS , \"Values Don't match\" ) ;\n test_passed_Mime_Hdr_Field_Append = false ;\n test_passed_Mime_Hdr_Field_Next = false ;\n test_passed_Mime_Hdr_Field_Get = false ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldAppend\" , \"TestCase2\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldNext\" , \"TestCase2\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldGet\" , \"TestCase2\" , TC_PASS , \"ok\" ) ;\n test_passed_Mime_Hdr_Field_Next = true ;\n }\n }\n if ( test_passed_Mime_Hdr_Field_Append == true ) {\n test_field_loc13 = TSMimeHdrFieldNext ( bufp1 , mime_loc1 , test_field_loc12 ) ;\n if ( compare_field_names ( test , bufp1 , mime_loc1 , field_loc13 , bufp1 , mime_loc1 , test_field_loc13 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldAppend\" , \"TestCase3\" , TC_FAIL , \"Values Don't match\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldNext\" , \"TestCase3\" , TC_FAIL , \"Values Don't match\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldGet\" , \"TestCase3\" , TC_FAIL , \"Values Don't match\" ) ;\n test_passed_Mime_Hdr_Field_Append = false ;\n test_passed_Mime_Hdr_Field_Next = false ;\n test_passed_Mime_Hdr_Field_Get = false ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldAppend\" , \"TestCase3\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldNext\" , \"TestCase3\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldGet\" , \"TestCase3\" , TC_PASS , \"ok\" ) ;\n }\n }\n if ( test_passed_Mime_Hdr_Field_Append == true ) {\n test_field_loc14 = TSMimeHdrFieldNext ( bufp1 , mime_loc1 , test_field_loc13 ) ;\n if ( compare_field_names ( test , bufp1 , mime_loc1 , field_loc14 , bufp1 , mime_loc1 , test_field_loc14 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldAppend\" , \"TestCase4\" , TC_FAIL , \"Values Don't match\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldNext\" , \"TestCase4\" , TC_FAIL , \"Values Don't match\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldGet\" , \"TestCase4\" , TC_FAIL , \"Values Don't match\" ) ;\n test_passed_Mime_Hdr_Field_Append = false ;\n test_passed_Mime_Hdr_Field_Next = false ;\n test_passed_Mime_Hdr_Field_Get = false ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldAppend\" , \"TestCase4\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldNext\" , \"TestCase4\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldGet\" , \"TestCase4\" , TC_PASS , \"ok\" ) ;\n }\n }\n if ( test_passed_Mime_Hdr_Field_Append == true ) {\n test_field_loc15 = TSMimeHdrFieldNext ( bufp1 , mime_loc1 , test_field_loc14 ) ;\n if ( compare_field_names ( test , bufp1 , mime_loc1 , field_loc15 , bufp1 , mime_loc1 , test_field_loc15 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldAppend\" , \"TestCase5\" , TC_FAIL , \"Values Don't match\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldNext\" , \"TestCase5\" , TC_FAIL , \"Values Don't match\" ) ;\n test_passed_Mime_Hdr_Field_Append = false ;\n test_passed_Mime_Hdr_Field_Next = false ;\n test_passed_Mime_Hdr_Field_Get = false ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldAppend\" , \"TestCase5\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldNext\" , \"TestCase5\" , TC_PASS , \"ok\" ) ;\n }\n }\n if ( ( TSHandleMLocRelease ( bufp1 , mime_loc1 , test_field_loc11 ) == TS_ERROR ) || ( TSHandleMLocRelease ( bufp1 , mime_loc1 , test_field_loc12 ) == TS_ERROR ) || ( TSHandleMLocRelease ( bufp1 , mime_loc1 , test_field_loc13 ) == TS_ERROR ) || ( TSHandleMLocRelease ( bufp1 , mime_loc1 , test_field_loc14 ) == TS_ERROR ) || ( TSHandleMLocRelease ( bufp1 , mime_loc1 , test_field_loc15 ) == TS_ERROR ) ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldAppend/Next/Get\" , \"\" , TC_FAIL , \"Unable to release handle using TSHandleMLocRelease. Can be bad handle.\" ) ;\n }\n }\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldAppend & TSMimeHdrFieldNext\" , \"All Test Case\" , TC_FAIL , \"Cannot run test as Test for TSMimeHdrFieldNameGet&Set Failed\" ) ;\n }\n if ( test_passed_Mime_Hdr_Field_Create == true ) {\n if ( ( numberOfFields = TSMimeHdrFieldsCount ( bufp1 , mime_loc1 ) ) < 0 ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldsCount\" , \"TestCase1\" , TC_FAIL , \"TSMimeHdrFieldsCount Returns TS_ERROR\" ) ;\n }\n else {\n actualNumberOfFields = 0 ;\n if ( ( field_loc = TSMimeHdrFieldGet ( bufp1 , mime_loc1 , actualNumberOfFields ) ) == TS_NULL_MLOC ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldsCount\" , \"TestCase1\" , TC_FAIL , \"TSMimeHdrFieldGet Returns TS_NULL_MLOC\" ) ;\n }\n else {\n while ( field_loc != nullptr ) {\n TSMLoc next_field_loc ;\n actualNumberOfFields ++ ;\n next_field_loc = TSMimeHdrFieldNext ( bufp1 , mime_loc1 , field_loc ) ;\n if ( TSHandleMLocRelease ( bufp1 , mime_loc1 , field_loc ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldsCount\" , \"TestCase1\" , TC_FAIL , \"Unable to release handle using TSHandleMLocRelease\" ) ;\n }\n field_loc = next_field_loc ;\n next_field_loc = nullptr ;\n }\n if ( actualNumberOfFields == numberOfFields ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldsCount\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_Mime_Hdr_Fields_Count = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldsCount\" , \"TestCase1\" , TC_FAIL , \"Values don't match\" ) ;\n }\n }\n }\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldsCount\" , \"TestCase1\" , TC_FAIL , \"Cannot run Test as TSMimeHdrFieldCreate failed\" ) ;\n }\n if ( test_passed_Mime_Hdr_Field_Create == true ) {\n if ( ( TSMimeHdrFieldValueStringInsert ( bufp1 , mime_loc1 , field_loc11 , - 1 , field1Value2 , - 1 ) == TS_ERROR ) || ( TSMimeHdrFieldValueStringInsert ( bufp1 , mime_loc1 , field_loc11 , 0 , field1Value1 , - 1 ) == TS_ERROR ) || ( TSMimeHdrFieldValueStringInsert ( bufp1 , mime_loc1 , field_loc11 , - 1 , field1Value5 , - 1 ) == TS_ERROR ) || ( TSMimeHdrFieldValueStringInsert ( bufp1 , mime_loc1 , field_loc11 , 2 , field1Value4 , - 1 ) == TS_ERROR ) || ( TSMimeHdrFieldValueStringInsert ( bufp1 , mime_loc1 , field_loc11 , 2 , field1Value3 , - 1 ) == TS_ERROR ) ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueStringInsert\" , \"TestCase1|2|3|4|5\" , TC_FAIL , \"TSMimeHdrFieldValueStringInsert Returns TS_ERROR\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueStringGet\" , \"TestCase1&2&3&4&5\" , TC_FAIL , \"Cannot run Test as TSMimeHdrFieldValueStringInsert returns TS_ERROR\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueStringSet\" , \"TestCase1\" , TC_FAIL , \"Cannot run Test as TSMimeHdrFieldValueStringInsert returns TS_ERROR\" ) ;\n }\n else {\n field1Value1Get = TSMimeHdrFieldValueStringGet ( bufp1 , mime_loc1 , field_loc11 , 0 , & lengthField1Value1 ) ;\n field1Value2Get = TSMimeHdrFieldValueStringGet ( bufp1 , mime_loc1 , field_loc11 , 1 , & lengthField1Value2 ) ;\n field1Value3Get = TSMimeHdrFieldValueStringGet ( bufp1 , mime_loc1 , field_loc11 , 2 , & lengthField1Value3 ) ;\n field1Value4Get = TSMimeHdrFieldValueStringGet ( bufp1 , mime_loc1 , field_loc11 , 3 , & lengthField1Value4 ) ;\n field1Value5Get = TSMimeHdrFieldValueStringGet ( bufp1 , mime_loc1 , field_loc11 , 4 , & lengthField1Value5 ) ;\n field1ValueAllGet = TSMimeHdrFieldValueStringGet ( bufp1 , mime_loc1 , field_loc11 , - 1 , & lengthField1ValueAll ) ;\n if ( ( ( strncmp ( field1Value1Get , field1Value1 , lengthField1Value1 ) == 0 ) && lengthField1Value1 == ( int ) strlen ( field1Value1 ) ) && ( ( strncmp ( field1Value2Get , field1Value2 , lengthField1Value2 ) == 0 ) && lengthField1Value2 == ( int ) strlen ( field1Value2 ) ) && ( ( strncmp ( field1Value3Get , field1Value3 , lengthField1Value3 ) == 0 ) && lengthField1Value3 == ( int ) strlen ( field1Value3 ) ) && ( ( strncmp ( field1Value4Get , field1Value4 , lengthField1Value4 ) == 0 ) && lengthField1Value4 == ( int ) strlen ( field1Value4 ) ) && ( ( strncmp ( field1Value5Get , field1Value5 , lengthField1Value5 ) == 0 ) && lengthField1Value5 == ( int ) strlen ( field1Value5 ) ) && ( strstr ( field1ValueAllGet , field1Value1Get ) == field1Value1Get ) && ( strstr ( field1ValueAllGet , field1Value2Get ) == field1Value2Get ) && ( strstr ( field1ValueAllGet , field1Value3Get ) == field1Value3Get ) && ( strstr ( field1ValueAllGet , field1Value4Get ) == field1Value4Get ) && ( strstr ( field1ValueAllGet , field1Value5Get ) == field1Value5Get ) ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueStringInsert\" , \"TestCase1&2&3&4&5\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueStringGet\" , \"TestCase1&2&3&4&5\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueStringGet with IDX=-1\" , \"TestCase1&2&3&4&5\" , TC_PASS , \"ok\" ) ;\n test_passed_Mime_Hdr_Field_Value_String_Insert = true ;\n test_passed_Mime_Hdr_Field_Value_String_Get = true ;\n if ( ( TSMimeHdrFieldValueStringSet ( bufp1 , mime_loc1 , field_loc11 , 3 , field1ValueNew , - 1 ) ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueStringSet\" , \"TestCase1\" , TC_FAIL , \"TSMimeHdrFieldValueStringSet returns TS_ERROR\" ) ;\n }\n else {\n field1ValueNewGet = TSMimeHdrFieldValueStringGet ( bufp1 , mime_loc1 , field_loc11 , 3 , & lengthField1ValueNew ) ;\n if ( ( strncmp ( field1ValueNewGet , field1ValueNew , lengthField1ValueNew ) == 0 ) && ( lengthField1ValueNew == ( int ) strlen ( field1ValueNew ) ) ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueStringSet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_Mime_Hdr_Field_Value_String_Set = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueStringSet\" , \"TestCase1\" , TC_FAIL , \"Value's Don't match\" ) ;\n }\n }\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueStringInsert\" , \"TestCase1|2|3|4|5\" , TC_PASS , \"Value's Don't Match\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueStringGet\" , \"TestCase1|2|3|4|5\" , TC_PASS , \"Value's Don't Match\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueStringSet\" , \"TestCase1\" , TC_FAIL , \"TSMimeHdrFieldValueStringSet cannot be tested as TSMimeHdrFieldValueStringInsert|Get failed\" ) ;\n }\n }\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueStringInsert&Set&Get\" , \"All\" , TC_FAIL , \"Cannot run Test as TSMimeHdrFieldCreate failed\" ) ;\n }\n if ( test_passed_Mime_Hdr_Field_Create == true ) {\n if ( TSMimeHdrFieldValueDateInsert ( bufp1 , mime_loc1 , field_loc12 , field2Value1 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueDateInsert\" , \"TestCase1\" , TC_FAIL , \"TSMimeHdrFieldValueDateInsert Returns TS_ERROR\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueDateGet\" , \"TestCase1\" , TC_FAIL , \"Cannot run Test as TSMimeHdrFieldValueDateInsert returns TS_ERROR\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueDateSet\" , \"TestCase1\" , TC_FAIL , \"Cannot run Test as TSMimeHdrFieldValueDateInsert returns TS_ERROR\" ) ;\n }\n else {\n field2Value1Get = TSMimeHdrFieldValueDateGet ( bufp1 , mime_loc1 , field_loc12 ) ;\n if ( field2Value1Get == field2Value1 ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueDateInsert\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueDateGet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_Mime_Hdr_Field_Value_Date_Insert = true ;\n test_passed_Mime_Hdr_Field_Value_Date_Get = true ;\n field2ValueNew = time ( nullptr ) ;\n if ( ( TSMimeHdrFieldValueDateSet ( bufp1 , mime_loc1 , field_loc12 , field2ValueNew ) ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueDateSet\" , \"TestCase1\" , TC_FAIL , \"TSMimeHdrFieldValueDateSet returns TS_ERROR\" ) ;\n }\n else {\n field2ValueNewGet = TSMimeHdrFieldValueDateGet ( bufp1 , mime_loc1 , field_loc12 ) ;\n if ( field2ValueNewGet == field2ValueNew ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueDateSet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_Mime_Hdr_Field_Value_Date_Set = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueDateSet\" , \"TestCase1\" , TC_FAIL , \"Value's Don't match\" ) ;\n }\n }\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueDateInsert\" , \"TestCase1\" , TC_PASS , \"Value's Don't Match\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueDateGet\" , \"TestCase1\" , TC_PASS , \"Value's Don't Match\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueDateSet\" , \"TestCase1\" , TC_FAIL , \"TSMimeHdrFieldValueDateSet cannot be tested as TSMimeHdrFieldValueDateInsert|Get failed\" ) ;\n }\n }\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueDateInsert&Set&Get\" , \"TestCase1\" , TC_FAIL , \"Cannot run Test as TSMimeHdrFieldCreate failed\" ) ;\n }\n if ( test_passed_Mime_Hdr_Field_Create == true ) {\n if ( ( TSMimeHdrFieldValueIntInsert ( bufp1 , mime_loc1 , field_loc13 , - 1 , field3Value2 ) == TS_ERROR ) || ( TSMimeHdrFieldValueIntInsert ( bufp1 , mime_loc1 , field_loc13 , 0 , field3Value1 ) == TS_ERROR ) || ( TSMimeHdrFieldValueIntInsert ( bufp1 , mime_loc1 , field_loc13 , - 1 , field3Value5 ) == TS_ERROR ) || ( TSMimeHdrFieldValueIntInsert ( bufp1 , mime_loc1 , field_loc13 , 2 , field3Value4 ) == TS_ERROR ) || ( TSMimeHdrFieldValueIntInsert ( bufp1 , mime_loc1 , field_loc13 , 2 , field3Value3 ) == TS_ERROR ) ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueIntInsert\" , \"TestCase1|2|3|4|5\" , TC_FAIL , \"TSMimeHdrFieldValueIntInsert Returns TS_ERROR\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueIntGet\" , \"TestCase1&2&3&4&5\" , TC_FAIL , \"Cannot run Test as TSMimeHdrFieldValueIntInsert returns TS_ERROR\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueIntSet\" , \"TestCase1\" , TC_FAIL , \"Cannot run Test as TSMimeHdrFieldValueIntInsert returns TS_ERROR\" ) ;\n }\n else {\n field3Value1Get = TSMimeHdrFieldValueIntGet ( bufp1 , mime_loc1 , field_loc13 , 0 ) ;\n field3Value2Get = TSMimeHdrFieldValueIntGet ( bufp1 , mime_loc1 , field_loc13 , 1 ) ;\n field3Value3Get = TSMimeHdrFieldValueIntGet ( bufp1 , mime_loc1 , field_loc13 , 2 ) ;\n field3Value4Get = TSMimeHdrFieldValueIntGet ( bufp1 , mime_loc1 , field_loc13 , 3 ) ;\n field3Value5Get = TSMimeHdrFieldValueIntGet ( bufp1 , mime_loc1 , field_loc13 , 4 ) ;\n if ( ( field3Value1Get == field3Value1 ) && ( field3Value2Get == field3Value2 ) && ( field3Value3Get == field3Value3 ) && ( field3Value4Get == field3Value4 ) && ( field3Value5Get == field3Value5 ) ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueIntInsert\" , \"TestCase1&2&3&4&5\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueIntGet\" , \"TestCase1&2&3&4&5\" , TC_PASS , \"ok\" ) ;\n test_passed_Mime_Hdr_Field_Value_Int_Insert = true ;\n test_passed_Mime_Hdr_Field_Value_Int_Get = true ;\n if ( ( TSMimeHdrFieldValueIntSet ( bufp1 , mime_loc1 , field_loc13 , 3 , field3ValueNew ) ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueIntSet\" , \"TestCase1\" , TC_FAIL , \"TSMimeHdrFieldValueIntSet returns TS_ERROR\" ) ;\n }\n else {\n field3ValueNewGet = TSMimeHdrFieldValueIntGet ( bufp1 , mime_loc1 , field_loc13 , 3 ) ;\n if ( field3ValueNewGet == field3ValueNew ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueIntSet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_Mime_Hdr_Field_Value_Int_Set = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueIntSet\" , \"TestCase1\" , TC_FAIL , \"Value's Don't match\" ) ;\n }\n }\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueIntInsert\" , \"TestCase1|2|3|4|5\" , TC_PASS , \"Value's Don't Match\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueIntGet\" , \"TestCase1|2|3|4|5\" , TC_PASS , \"Value's Don't Match\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueIntSet\" , \"TestCase1\" , TC_FAIL , \"TSMimeHdrFieldValueIntSet cannot be tested as TSMimeHdrFieldValueIntInsert|Get failed\" ) ;\n }\n }\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueIntInsert&Set&Get\" , \"All\" , TC_FAIL , \"Cannot run Test as TSMimeHdrFieldCreate failed\" ) ;\n }\n if ( test_passed_Mime_Hdr_Field_Create == true ) {\n if ( ( TSMimeHdrFieldValueUintInsert ( bufp1 , mime_loc1 , field_loc14 , - 1 , field4Value2 ) == TS_ERROR ) || ( TSMimeHdrFieldValueUintInsert ( bufp1 , mime_loc1 , field_loc14 , 0 , field4Value1 ) == TS_ERROR ) || ( TSMimeHdrFieldValueUintInsert ( bufp1 , mime_loc1 , field_loc14 , - 1 , field4Value5 ) == TS_ERROR ) || ( TSMimeHdrFieldValueUintInsert ( bufp1 , mime_loc1 , field_loc14 , 2 , field4Value4 ) == TS_ERROR ) || ( TSMimeHdrFieldValueUintInsert ( bufp1 , mime_loc1 , field_loc14 , 2 , field4Value3 ) == TS_ERROR ) ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueUintInsert\" , \"TestCase1|2|3|4|5\" , TC_FAIL , \"TSMimeHdrFieldValueUintInsert Returns TS_ERROR\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueUintGet\" , \"TestCase1&2&3&4&5\" , TC_FAIL , \"Cannot run Test as TSMimeHdrFieldValueUintInsert returns TS_ERROR\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueUintSet\" , \"TestCase1\" , TC_FAIL , \"Cannot run Test as TSMimeHdrFieldValueUintInsert returns TS_ERROR\" ) ;\n }\n else {\n field4Value1Get = TSMimeHdrFieldValueUintGet ( bufp1 , mime_loc1 , field_loc14 , 0 ) ;\n field4Value2Get = TSMimeHdrFieldValueUintGet ( bufp1 , mime_loc1 , field_loc14 , 1 ) ;\n field4Value3Get = TSMimeHdrFieldValueUintGet ( bufp1 , mime_loc1 , field_loc14 , 2 ) ;\n field4Value4Get = TSMimeHdrFieldValueUintGet ( bufp1 , mime_loc1 , field_loc14 , 3 ) ;\n field4Value5Get = TSMimeHdrFieldValueUintGet ( bufp1 , mime_loc1 , field_loc14 , 4 ) ;\n if ( ( field4Value1Get == field4Value1 ) && ( field4Value2Get == field4Value2 ) && ( field4Value3Get == field4Value3 ) && ( field4Value4Get == field4Value4 ) && ( field4Value5Get == field4Value5 ) ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueUintInsert\" , \"TestCase1&2&3&4&5\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueUintGet\" , \"TestCase1&2&3&4&5\" , TC_PASS , \"ok\" ) ;\n test_passed_Mime_Hdr_Field_Value_Uint_Insert = true ;\n test_passed_Mime_Hdr_Field_Value_Uint_Get = true ;\n if ( ( TSMimeHdrFieldValueUintSet ( bufp1 , mime_loc1 , field_loc14 , 3 , field4ValueNew ) ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueUintSet\" , \"TestCase1\" , TC_FAIL , \"TSMimeHdrFieldValueUintSet returns TS_ERROR\" ) ;\n }\n else {\n field4ValueNewGet = TSMimeHdrFieldValueUintGet ( bufp1 , mime_loc1 , field_loc14 , 3 ) ;\n if ( field4ValueNewGet == field4ValueNew ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueUintSet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_Mime_Hdr_Field_Value_Uint_Set = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueUintSet\" , \"TestCase1\" , TC_FAIL , \"Value's Don't match\" ) ;\n }\n }\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueUintInsert\" , \"TestCase1|2|3|4|5\" , TC_PASS , \"Value's Don't Match\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueUintGet\" , \"TestCase1|2|3|4|5\" , TC_PASS , \"Value's Don't Match\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueUintSet\" , \"TestCase1\" , TC_FAIL , \"TSMimeHdrFieldValueUintSet cannot be tested as TSMimeHdrFieldValueUintInsert|Get failed\" ) ;\n }\n }\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueUintInsert&Set&Get\" , \"All\" , TC_FAIL , \"Cannot run Test as TSMimeHdrFieldCreate failed\" ) ;\n }\n field1_length = TSMimeHdrFieldLengthGet ( bufp1 , mime_loc1 , field_loc11 ) ;\n field2_length = TSMimeHdrFieldLengthGet ( bufp1 , mime_loc1 , field_loc12 ) ;\n field3_length = TSMimeHdrFieldLengthGet ( bufp1 , mime_loc1 , field_loc13 ) ;\n field4_length = TSMimeHdrFieldLengthGet ( bufp1 , mime_loc1 , field_loc14 ) ;\n if ( ( field1_length == 0 ) || ( field2_length == 0 ) || ( field3_length == 0 ) || ( field4_length == 0 ) ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldLengthGet\" , \"TestCase1\" , TC_FAIL , \"Returned bad length\" ) ;\n test_passed_Mime_Hdr_Field_Length_Get = false ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldLengthGet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_Mime_Hdr_Field_Length_Get = true ;\n }\n if ( test_passed_Mime_Hdr_Field_Create == true ) {\n if ( ( TSMimeHdrFieldValueStringInsert ( bufp1 , mime_loc1 , field_loc15 , - 1 , field5Value1 , - 1 ) == TS_ERROR ) || ( TSMimeHdrFieldValueIntInsert ( bufp1 , mime_loc1 , field_loc15 , - 1 , field5Value2 ) == TS_ERROR ) || ( TSMimeHdrFieldValueStringInsert ( bufp1 , mime_loc1 , field_loc15 , - 1 , field5Value3 , - 1 ) == TS_ERROR ) || ( TSMimeHdrFieldValueUintInsert ( bufp1 , mime_loc1 , field_loc15 , - 1 , field5Value4 ) == TS_ERROR ) ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueAppend\" , \"TestCase1\" , TC_FAIL , \"TSMimeHdrFieldValueString|Int|UintInsert returns TS_ERROR. Cannot create field for testing.\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueDelete\" , \"TestCase1\" , TC_FAIL , \"TSMimeHdrFieldValueString|Int|UintInsert returns TS_ERROR. Cannot create field for testing.\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldValuesCount\" , \"TestCase1\" , TC_FAIL , \"TSMimeHdrFieldValueString|Int|UintInsert returns TS_ERROR. Cannot create field for testing.\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldValuesClear\" , \"TestCase1\" , TC_FAIL , \"TSMimeHdrFieldValueString|Int|UintInsert returns TS_ERROR. Cannot create field for testing.\" ) ;\n }\n else {\n if ( TSMimeHdrFieldValueAppend ( bufp1 , mime_loc1 , field_loc15 , 0 , field5Value1Append , - 1 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueAppend\" , \"TestCase1\" , TC_FAIL , \"TSMimeHdrFieldValueAppend returns TS_ERROR\" ) ;\n }\n else {\n fieldValueAppendGet = TSMimeHdrFieldValueStringGet ( bufp1 , mime_loc1 , field_loc15 , 0 , & lengthFieldValueAppended ) ;\n char * expected_value ;\n size_t len = strlen ( field5Value1 ) + strlen ( field5Value1Append ) + 1 ;\n expected_value = ( char * ) TSmalloc ( len ) ;\n memset ( expected_value , 0 , len ) ;\n ink_strlcpy ( expected_value , field5Value1 , len ) ;\n ink_strlcat ( expected_value , field5Value1Append , len ) ;\n if ( ( strncmp ( fieldValueAppendGet , expected_value , lengthFieldValueAppended ) == 0 ) && ( lengthFieldValueAppended = strlen ( expected_value ) ) ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueAppend\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_Mime_Hdr_Field_Value_Append = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueAppend\" , \"TestCase1\" , TC_FAIL , \"Values mismatch\" ) ;\n }\n TSfree ( expected_value ) ;\n }\n numberOfValueInField = TSMimeHdrFieldValuesCount ( bufp1 , mime_loc1 , field_loc15 ) ;\n if ( numberOfValueInField == 4 ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValuesCount\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_Mime_Hdr_Field_Values_Count = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValuesCount\" , \"TestCase1\" , TC_FAIL , \"Values don't match\" ) ;\n }\n if ( TSMimeHdrFieldValueDelete ( bufp1 , mime_loc1 , field_loc15 , 2 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueDelete\" , \"TestCase1\" , TC_FAIL , \"TSMimeHdrFieldValueDelete Returns TS_ERROR\" ) ;\n }\n else {\n fieldValueDeleteGet = TSMimeHdrFieldValueStringGet ( bufp1 , mime_loc1 , field_loc15 , 2 , & lengthFieldValueDeleteGet ) ;\n if ( ( strncmp ( fieldValueDeleteGet , field5Value3 , lengthFieldValueDeleteGet ) == 0 ) && ( lengthFieldValueDeleteGet == ( int ) strlen ( field5Value3 ) ) ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueDelete\" , \"TestCase1\" , TC_FAIL , \"Value not deleted from field or incorrect index deleted from field.\" ) ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueDelete\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_Mime_Hdr_Field_Value_Delete = true ;\n }\n }\n if ( TSMimeHdrFieldValuesClear ( bufp1 , mime_loc1 , field_loc15 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValuesClear\" , \"TestCase1\" , TC_FAIL , \"TSMimeHdrFieldValuesClear returns TS_ERROR\" ) ;\n }\n else {\n numberOfValueInField = TSMimeHdrFieldValuesCount ( bufp1 , mime_loc1 , field_loc15 ) ;\n if ( numberOfValueInField == 0 ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValuesClear\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_Mime_Hdr_Field_Values_Clear = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValuesClear\" , \"TestCase1\" , TC_FAIL , \"Values don't match\" ) ;\n }\n }\n }\n if ( TSMimeHdrFieldDestroy ( bufp1 , mime_loc1 , field_loc15 ) != TS_SUCCESS ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldDestroy\" , \"TestCase1\" , TC_FAIL , \"TSMimeHdrFieldDestroy returns TS_ERROR\" ) ;\n }\n else {\n if ( ( test_field_loc15 = TSMimeHdrFieldFind ( bufp1 , mime_loc1 , field5Name , - 1 ) ) == TS_NULL_MLOC ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldDestroy\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_Mime_Hdr_Field_Destroy = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldDestroy\" , \"TestCase1\" , TC_FAIL , \"Field not destroyed\" ) ;\n if ( TSHandleMLocRelease ( bufp1 , mime_loc1 , test_field_loc15 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldDestroy\" , \"TestCase1\" , TC_FAIL , \"Unable to release handle using TSHandleMLocRelease\" ) ;\n }\n }\n if ( TSHandleMLocRelease ( bufp1 , mime_loc1 , field_loc15 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldDestroy\" , \"TestCase2\" , TC_FAIL , \"Unable to release handle using TSHandleMLocRelease\" ) ;\n }\n }\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueAppend\" , \"TestCase1\" , TC_FAIL , \"Cannot run test as TSMimeHdrFieldCreate has failed\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldValueDelete\" , \"TestCase1\" , TC_FAIL , \"Cannot run test as TSMimeHdrFieldCreate has failed\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldValuesCount\" , \"TestCase1\" , TC_FAIL , \"Cannot run test as TSMimeHdrFieldCreate has failed\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldValuesClear\" , \"TestCase1\" , TC_FAIL , \"Cannot run test as TSMimeHdrFieldCreate has failed\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrFieldDestroy\" , \"TestCase1\" , TC_FAIL , \"Cannot run test as TSMimeHdrFieldCreate has failed\" ) ;\n }\n if ( test_passed_Mime_Hdr_Field_Append == true ) {\n if ( TSMimeHdrFieldsClear ( bufp1 , mime_loc1 ) != TS_SUCCESS ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldsClear\" , \"TestCase1\" , TC_FAIL , \"TSMimeHdrFieldsClear returns TS_ERROR\" ) ;\n }\n else {\n if ( ( numberOfFields = TSMimeHdrFieldsCount ( bufp1 , mime_loc1 ) ) < 0 ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldsClear\" , \"TestCase1\" , TC_FAIL , \"TSMimeHdrFieldsCount returns TS_ERROR\" ) ;\n }\n else {\n if ( numberOfFields == 0 ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldsClear\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_Mime_Hdr_Fields_Clear = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldsClear\" , \"TestCase1\" , TC_FAIL , \"Fields still exist\" ) ;\n }\n }\n if ( ( TSHandleMLocRelease ( bufp1 , mime_loc1 , field_loc11 ) == TS_ERROR ) || ( TSHandleMLocRelease ( bufp1 , mime_loc1 , field_loc12 ) == TS_ERROR ) || ( TSHandleMLocRelease ( bufp1 , mime_loc1 , field_loc13 ) == TS_ERROR ) || ( TSHandleMLocRelease ( bufp1 , mime_loc1 , field_loc14 ) == TS_ERROR ) ) {\n SDK_RPRINT ( test , \"TSMimeHdrFieldsDestroy\" , \"\" , TC_FAIL , \"Unable to release handle using TSHandleMLocRelease\" ) ;\n }\n }\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrFieldsClear\" , \"TestCase1\" , TC_FAIL , \"Cannot run test as Fields have not been inserted in the mime header\" ) ;\n }\n if ( test_passed_Mime_Hdr_Create == true ) {\n if ( TSMimeHdrDestroy ( bufp1 , mime_loc1 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSMimeHdrDestroy\" , \"TestCase1\" , TC_FAIL , \"TSMimeHdrDestroy return TS_ERROR\" ) ;\n SDK_RPRINT ( test , \"TSMimeHdrDestroy\" , \"TestCase1\" , TC_FAIL , \"Probably TSMimeHdrCreate failed.\" ) ;\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrDestroy\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_Mime_Hdr_Destroy = true ;\n }\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrDestroy\" , \"TestCase1\" , TC_FAIL , \"Cannot run test as TSMimeHdrCreate failed\" ) ;\n }\n if ( test_passed_MBuffer_Create == true ) {\n if ( TSMBufferDestroy ( bufp1 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSMBufferDestroy\" , \"TestCase1\" , TC_FAIL , \"TSMBufferDestroy return TS_ERROR\" ) ;\n SDK_RPRINT ( test , \"TSMBufferDestroy\" , \"TestCase1\" , TC_FAIL , \"Probably TSMBufferCreate failed.\" ) ;\n }\n else {\n SDK_RPRINT ( test , \"TSMBufferDestroy\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_MBuffer_Destroy = true ;\n }\n }\n else {\n SDK_RPRINT ( test , \"TSMimeHdrDestroy\" , \"TestCase1\" , TC_FAIL , \"Cannot run test as TSMimeHdrCreate failed\" ) ;\n }\n if ( ( test_passed_MBuffer_Create == true ) && ( test_passed_Mime_Hdr_Create == true ) && ( test_passed_Mime_Hdr_Field_Create == true ) && ( test_passed_Mime_Hdr_Field_Name == true ) && ( test_passed_Mime_Hdr_Field_Append == true ) && ( test_passed_Mime_Hdr_Field_Get == true ) && ( test_passed_Mime_Hdr_Field_Next == true ) && ( test_passed_Mime_Hdr_Fields_Count == true ) && ( test_passed_Mime_Hdr_Field_Value_String_Insert == true ) && ( test_passed_Mime_Hdr_Field_Value_String_Get == true ) && ( test_passed_Mime_Hdr_Field_Value_String_Set == true ) && ( test_passed_Mime_Hdr_Field_Value_Date_Insert == true ) && ( test_passed_Mime_Hdr_Field_Value_Date_Get == true ) && ( test_passed_Mime_Hdr_Field_Value_Date_Set == true ) && ( test_passed_Mime_Hdr_Field_Value_Int_Insert == true ) && ( test_passed_Mime_Hdr_Field_Value_Int_Get == true ) && ( test_passed_Mime_Hdr_Field_Value_Int_Set == true ) && ( test_passed_Mime_Hdr_Field_Value_Uint_Insert == true ) && ( test_passed_Mime_Hdr_Field_Value_Uint_Get == true ) && ( test_passed_Mime_Hdr_Field_Value_Uint_Set == true ) && ( test_passed_Mime_Hdr_Field_Value_Append == true ) && ( test_passed_Mime_Hdr_Field_Value_Delete == true ) && ( test_passed_Mime_Hdr_Field_Values_Clear == true ) && ( test_passed_Mime_Hdr_Field_Values_Count == true ) && ( test_passed_Mime_Hdr_Field_Destroy == true ) && ( test_passed_Mime_Hdr_Fields_Clear == true ) && ( test_passed_Mime_Hdr_Destroy == true ) && ( test_passed_MBuffer_Destroy == true ) && ( test_passed_Mime_Hdr_Field_Length_Get == true ) ) {\n * pstatus = REGRESSION_TEST_PASSED ;\n }\n else {\n * pstatus = REGRESSION_TEST_FAILED ;\n }\n return ;\n }"}
{"idx": 6709, "target": 0, "func": "static int tgv_decode_inter ( TgvContext * s , AVFrame * frame , const uint8_t * buf , const uint8_t * buf_end ) {\n int num_mvs ;\n int num_blocks_raw ;\n int num_blocks_packed ;\n int vector_bits ;\n int i , j , x , y ;\n GetBitContext gb ;\n int mvbits ;\n const uint8_t * blocks_raw ;\n if ( buf + 12 > buf_end ) return AVERROR_INVALIDDATA ;\n num_mvs = AV_RL16 ( & buf [ 0 ] ) ;\n num_blocks_raw = AV_RL16 ( & buf [ 2 ] ) ;\n num_blocks_packed = AV_RL16 ( & buf [ 4 ] ) ;\n vector_bits = AV_RL16 ( & buf [ 6 ] ) ;\n buf += 12 ;\n if ( vector_bits > MIN_CACHE_BITS || ! vector_bits ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Invalid value for motion vector bits: %d\\n\" , vector_bits ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( num_mvs > s -> num_mvs ) {\n s -> mv_codebook = av_realloc ( s -> mv_codebook , num_mvs * 2 * sizeof ( int ) ) ;\n s -> num_mvs = num_mvs ;\n }\n if ( num_blocks_packed > s -> num_blocks_packed ) {\n s -> block_codebook = av_realloc ( s -> block_codebook , num_blocks_packed * 16 ) ;\n s -> num_blocks_packed = num_blocks_packed ;\n }\n mvbits = ( num_mvs * 2 * 10 + 31 ) & ~ 31 ;\n if ( buf + ( mvbits >> 3 ) + 16 * num_blocks_raw + 8 * num_blocks_packed > buf_end ) return AVERROR_INVALIDDATA ;\n init_get_bits ( & gb , buf , mvbits ) ;\n for ( i = 0 ;\n i < num_mvs ;\n i ++ ) {\n s -> mv_codebook [ i ] [ 0 ] = get_sbits ( & gb , 10 ) ;\n s -> mv_codebook [ i ] [ 1 ] = get_sbits ( & gb , 10 ) ;\n }\n buf += mvbits >> 3 ;\n blocks_raw = buf ;\n buf += num_blocks_raw * 16 ;\n init_get_bits ( & gb , buf , ( buf_end - buf ) << 3 ) ;\n for ( i = 0 ;\n i < num_blocks_packed ;\n i ++ ) {\n int tmp [ 4 ] ;\n for ( j = 0 ;\n j < 4 ;\n j ++ ) tmp [ j ] = get_bits ( & gb , 8 ) ;\n for ( j = 0 ;\n j < 16 ;\n j ++ ) s -> block_codebook [ i ] [ 15 - j ] = tmp [ get_bits ( & gb , 2 ) ] ;\n }\n if ( get_bits_left ( & gb ) < vector_bits * ( s -> avctx -> height / 4 ) * ( s -> avctx -> width / 4 ) ) return AVERROR_INVALIDDATA ;\n for ( y = 0 ;\n y < s -> avctx -> height / 4 ;\n y ++ ) for ( x = 0 ;\n x < s -> avctx -> width / 4 ;\n x ++ ) {\n unsigned int vector = get_bits ( & gb , vector_bits ) ;\n const uint8_t * src ;\n int src_stride ;\n if ( vector < num_mvs ) {\n int mx = x * 4 + s -> mv_codebook [ vector ] [ 0 ] ;\n int my = y * 4 + s -> mv_codebook [ vector ] [ 1 ] ;\n if ( mx < 0 || mx + 4 > s -> avctx -> width || my < 0 || my + 4 > s -> avctx -> height ) continue ;\n src = s -> last_frame . data [ 0 ] + mx + my * s -> last_frame . linesize [ 0 ] ;\n src_stride = s -> last_frame . linesize [ 0 ] ;\n }\n else {\n int offset = vector - num_mvs ;\n if ( offset < num_blocks_raw ) src = blocks_raw + 16 * offset ;\n else if ( offset - num_blocks_raw < num_blocks_packed ) src = s -> block_codebook [ offset - num_blocks_raw ] ;\n else continue ;\n src_stride = 4 ;\n }\n for ( j = 0 ;\n j < 4 ;\n j ++ ) for ( i = 0 ;\n i < 4 ;\n i ++ ) frame -> data [ 0 ] [ ( y * 4 + j ) * frame -> linesize [ 0 ] + ( x * 4 + i ) ] = src [ j * src_stride + i ] ;\n }\n return 0 ;\n }"}
{"idx": 6710, "target": 1, "func": "void vp9_first_pass ( VP9_COMP * cpi , const struct lookahead_entry * source ) {\n int mb_row , mb_col ;\n MACROBLOCK * const x = & cpi -> mb ;\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n TileInfo tile ;\n struct macroblock_plane * const p = x -> plane ;\n struct macroblockd_plane * const pd = xd -> plane ;\n const PICK_MODE_CONTEXT * ctx = & cpi -> pc_root -> none ;\n int i ;\n int recon_yoffset , recon_uvoffset ;\n YV12_BUFFER_CONFIG * const lst_yv12 = get_ref_frame_buffer ( cpi , LAST_FRAME ) ;\n YV12_BUFFER_CONFIG * gld_yv12 = get_ref_frame_buffer ( cpi , GOLDEN_FRAME ) ;\n YV12_BUFFER_CONFIG * const new_yv12 = get_frame_new_buffer ( cm ) ;\n int recon_y_stride = lst_yv12 -> y_stride ;\n int recon_uv_stride = lst_yv12 -> uv_stride ;\n int uv_mb_height = 16 >> ( lst_yv12 -> y_height > lst_yv12 -> uv_height ) ;\n int64_t intra_error = 0 ;\n int64_t coded_error = 0 ;\n int64_t sr_coded_error = 0 ;\n int sum_mvr = 0 , sum_mvc = 0 ;\n int sum_mvr_abs = 0 , sum_mvc_abs = 0 ;\n int64_t sum_mvrs = 0 , sum_mvcs = 0 ;\n int mvcount = 0 ;\n int intercount = 0 ;\n int second_ref_count = 0 ;\n int intrapenalty = 256 ;\n int neutral_count = 0 ;\n int new_mv_count = 0 ;\n int sum_in_vectors = 0 ;\n MV lastmv = {\n 0 , 0 }\n ;\n TWO_PASS * twopass = & cpi -> twopass ;\n const MV zero_mv = {\n 0 , 0 }\n ;\n const YV12_BUFFER_CONFIG * first_ref_buf = lst_yv12 ;\n LAYER_CONTEXT * const lc = is_two_pass_svc ( cpi ) ? & cpi -> svc . layer_context [ cpi -> svc . spatial_layer_id ] : NULL ;\n # if CONFIG_FP_MB_STATS if ( cpi -> use_fp_mb_stats ) {\n vp9_zero_array ( cpi -> twopass . frame_mb_stats_buf , cm -> MBs ) ;\n }\n # endif vp9_clear_system_state ( ) ;\n set_first_pass_params ( cpi ) ;\n vp9_set_quantizer ( cm , find_fp_qindex ( ) ) ;\n if ( lc != NULL ) {\n MV_REFERENCE_FRAME ref_frame = LAST_FRAME ;\n twopass = & lc -> twopass ;\n if ( cpi -> common . current_video_frame == 0 ) {\n cpi -> ref_frame_flags = 0 ;\n }\n else {\n if ( lc -> current_video_frame_in_layer < ( unsigned int ) cpi -> svc . number_temporal_layers ) cpi -> ref_frame_flags = VP9_GOLD_FLAG ;\n else cpi -> ref_frame_flags = VP9_LAST_FLAG | VP9_GOLD_FLAG ;\n }\n vp9_scale_references ( cpi ) ;\n if ( cpi -> ref_frame_flags & VP9_LAST_FLAG ) {\n first_ref_buf = vp9_get_scaled_ref_frame ( cpi , LAST_FRAME ) ;\n ref_frame = LAST_FRAME ;\n if ( first_ref_buf == NULL ) first_ref_buf = get_ref_frame_buffer ( cpi , LAST_FRAME ) ;\n }\n else if ( cpi -> ref_frame_flags & VP9_GOLD_FLAG ) {\n first_ref_buf = vp9_get_scaled_ref_frame ( cpi , GOLDEN_FRAME ) ;\n ref_frame = GOLDEN_FRAME ;\n if ( first_ref_buf == NULL ) first_ref_buf = get_ref_frame_buffer ( cpi , GOLDEN_FRAME ) ;\n }\n recon_y_stride = new_yv12 -> y_stride ;\n recon_uv_stride = new_yv12 -> uv_stride ;\n uv_mb_height = 16 >> ( new_yv12 -> y_height > new_yv12 -> uv_height ) ;\n gld_yv12 = NULL ;\n set_ref_ptrs ( cm , xd , ref_frame , NONE ) ;\n cpi -> Source = vp9_scale_if_required ( cm , cpi -> un_scaled_source , & cpi -> scaled_source ) ;\n }\n vp9_setup_block_planes ( & x -> e_mbd , cm -> subsampling_x , cm -> subsampling_y ) ;\n vp9_setup_src_planes ( x , cpi -> Source , 0 , 0 ) ;\n vp9_setup_pre_planes ( xd , 0 , first_ref_buf , 0 , 0 , NULL ) ;\n vp9_setup_dst_planes ( xd -> plane , new_yv12 , 0 , 0 ) ;\n xd -> mi = cm -> mi_grid_visible ;\n xd -> mi [ 0 ] = cm -> mi ;\n vp9_frame_init_quantizer ( cpi ) ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n ++ i ) {\n p [ i ] . coeff = ctx -> coeff_pbuf [ i ] [ 1 ] ;\n p [ i ] . qcoeff = ctx -> qcoeff_pbuf [ i ] [ 1 ] ;\n pd [ i ] . dqcoeff = ctx -> dqcoeff_pbuf [ i ] [ 1 ] ;\n p [ i ] . eobs = ctx -> eobs_pbuf [ i ] [ 1 ] ;\n }\n x -> skip_recode = 0 ;\n vp9_init_mv_probs ( cm ) ;\n vp9_initialize_rd_consts ( cpi ) ;\n vp9_tile_init ( & tile , cm , 0 , 0 ) ;\n for ( mb_row = 0 ;\n mb_row < cm -> mb_rows ;\n ++ mb_row ) {\n MV best_ref_mv = {\n 0 , 0 }\n ;\n xd -> up_available = ( mb_row != 0 ) ;\n recon_yoffset = ( mb_row * recon_y_stride * 16 ) ;\n recon_uvoffset = ( mb_row * recon_uv_stride * uv_mb_height ) ;\n x -> mv_row_min = - ( ( mb_row * 16 ) + BORDER_MV_PIXELS_B16 ) ;\n x -> mv_row_max = ( ( cm -> mb_rows - 1 - mb_row ) * 16 ) + BORDER_MV_PIXELS_B16 ;\n for ( mb_col = 0 ;\n mb_col < cm -> mb_cols ;\n ++ mb_col ) {\n int this_error ;\n const int use_dc_pred = ( mb_col || mb_row ) && ( ! mb_col || ! mb_row ) ;\n double error_weight = 1.0 ;\n const BLOCK_SIZE bsize = get_bsize ( cm , mb_row , mb_col ) ;\n # if CONFIG_FP_MB_STATS const int mb_index = mb_row * cm -> mb_cols + mb_col ;\n # endif vp9_clear_system_state ( ) ;\n xd -> plane [ 0 ] . dst . buf = new_yv12 -> y_buffer + recon_yoffset ;\n xd -> plane [ 1 ] . dst . buf = new_yv12 -> u_buffer + recon_uvoffset ;\n xd -> plane [ 2 ] . dst . buf = new_yv12 -> v_buffer + recon_uvoffset ;\n xd -> left_available = ( mb_col != 0 ) ;\n xd -> mi [ 0 ] -> mbmi . sb_type = bsize ;\n xd -> mi [ 0 ] -> mbmi . ref_frame [ 0 ] = INTRA_FRAME ;\n set_mi_row_col ( xd , & tile , mb_row << 1 , num_8x8_blocks_high_lookup [ bsize ] , mb_col << 1 , num_8x8_blocks_wide_lookup [ bsize ] , cm -> mi_rows , cm -> mi_cols ) ;\n if ( cpi -> oxcf . aq_mode == VARIANCE_AQ ) {\n const int energy = vp9_block_energy ( cpi , x , bsize ) ;\n error_weight = vp9_vaq_inv_q_ratio ( energy ) ;\n }\n x -> skip_encode = 0 ;\n xd -> mi [ 0 ] -> mbmi . mode = DC_PRED ;\n xd -> mi [ 0 ] -> mbmi . tx_size = use_dc_pred ? ( bsize >= BLOCK_16X16 ? TX_16X16 : TX_8X8 ) : TX_4X4 ;\n vp9_encode_intra_block_plane ( x , bsize , 0 ) ;\n this_error = vp9_get_mb_ss ( x -> plane [ 0 ] . src_diff ) ;\n if ( cpi -> oxcf . aq_mode == VARIANCE_AQ ) {\n vp9_clear_system_state ( ) ;\n this_error = ( int ) ( this_error * error_weight ) ;\n }\n this_error += intrapenalty ;\n intra_error += ( int64_t ) this_error ;\n # if CONFIG_FP_MB_STATS if ( cpi -> use_fp_mb_stats ) {\n cpi -> twopass . frame_mb_stats_buf [ mb_index ] = 0 ;\n }\n # endif x -> mv_col_min = - ( ( mb_col * 16 ) + BORDER_MV_PIXELS_B16 ) ;\n x -> mv_col_max = ( ( cm -> mb_cols - 1 - mb_col ) * 16 ) + BORDER_MV_PIXELS_B16 ;\n if ( cm -> current_video_frame > 0 ) {\n int tmp_err , motion_error , raw_motion_error ;\n MV mv = {\n 0 , 0 }\n , tmp_mv = {\n 0 , 0 }\n ;\n struct buf_2d unscaled_last_source_buf_2d ;\n xd -> plane [ 0 ] . pre [ 0 ] . buf = first_ref_buf -> y_buffer + recon_yoffset ;\n motion_error = get_prediction_error ( bsize , & x -> plane [ 0 ] . src , & xd -> plane [ 0 ] . pre [ 0 ] ) ;\n unscaled_last_source_buf_2d . buf = cpi -> unscaled_last_source -> y_buffer + recon_yoffset ;\n unscaled_last_source_buf_2d . stride = cpi -> unscaled_last_source -> y_stride ;\n raw_motion_error = get_prediction_error ( bsize , & x -> plane [ 0 ] . src , & unscaled_last_source_buf_2d ) ;\n if ( raw_motion_error > 25 || lc != NULL ) {\n first_pass_motion_search ( cpi , x , & best_ref_mv , & mv , & motion_error ) ;\n if ( cpi -> oxcf . aq_mode == VARIANCE_AQ ) {\n vp9_clear_system_state ( ) ;\n motion_error = ( int ) ( motion_error * error_weight ) ;\n }\n if ( ! is_zero_mv ( & best_ref_mv ) ) {\n tmp_err = INT_MAX ;\n first_pass_motion_search ( cpi , x , & zero_mv , & tmp_mv , & tmp_err ) ;\n if ( cpi -> oxcf . aq_mode == VARIANCE_AQ ) {\n vp9_clear_system_state ( ) ;\n tmp_err = ( int ) ( tmp_err * error_weight ) ;\n }\n if ( tmp_err < motion_error ) {\n motion_error = tmp_err ;\n mv = tmp_mv ;\n }\n }\n if ( cm -> current_video_frame > 1 && gld_yv12 != NULL ) {\n int gf_motion_error ;\n xd -> plane [ 0 ] . pre [ 0 ] . buf = gld_yv12 -> y_buffer + recon_yoffset ;\n gf_motion_error = get_prediction_error ( bsize , & x -> plane [ 0 ] . src , & xd -> plane [ 0 ] . pre [ 0 ] ) ;\n first_pass_motion_search ( cpi , x , & zero_mv , & tmp_mv , & gf_motion_error ) ;\n if ( cpi -> oxcf . aq_mode == VARIANCE_AQ ) {\n vp9_clear_system_state ( ) ;\n gf_motion_error = ( int ) ( gf_motion_error * error_weight ) ;\n }\n if ( gf_motion_error < motion_error && gf_motion_error < this_error ) ++ second_ref_count ;\n xd -> plane [ 0 ] . pre [ 0 ] . buf = first_ref_buf -> y_buffer + recon_yoffset ;\n xd -> plane [ 1 ] . pre [ 0 ] . buf = first_ref_buf -> u_buffer + recon_uvoffset ;\n xd -> plane [ 2 ] . pre [ 0 ] . buf = first_ref_buf -> v_buffer + recon_uvoffset ;\n if ( gf_motion_error < this_error ) sr_coded_error += gf_motion_error ;\n else sr_coded_error += this_error ;\n }\n else {\n sr_coded_error += motion_error ;\n }\n }\n else {\n sr_coded_error += motion_error ;\n }\n best_ref_mv . row = 0 ;\n best_ref_mv . col = 0 ;\n # if CONFIG_FP_MB_STATS if ( cpi -> use_fp_mb_stats ) {\n cpi -> twopass . frame_mb_stats_buf [ mb_index ] = 0 ;\n cpi -> twopass . frame_mb_stats_buf [ mb_index ] |= FPMB_DCINTRA_MASK ;\n cpi -> twopass . frame_mb_stats_buf [ mb_index ] |= FPMB_MOTION_ZERO_MASK ;\n if ( this_error > FPMB_ERROR_LARGE_TH ) {\n cpi -> twopass . frame_mb_stats_buf [ mb_index ] |= FPMB_ERROR_LARGE_MASK ;\n }\n else if ( this_error < FPMB_ERROR_SMALL_TH ) {\n cpi -> twopass . frame_mb_stats_buf [ mb_index ] |= FPMB_ERROR_SMALL_MASK ;\n }\n }\n # endif if ( motion_error <= this_error ) {\n if ( ( ( this_error - intrapenalty ) * 9 <= motion_error * 10 ) && this_error < 2 * intrapenalty ) ++ neutral_count ;\n mv . row *= 8 ;\n mv . col *= 8 ;\n this_error = motion_error ;\n xd -> mi [ 0 ] -> mbmi . mode = NEWMV ;\n xd -> mi [ 0 ] -> mbmi . mv [ 0 ] . as_mv = mv ;\n xd -> mi [ 0 ] -> mbmi . tx_size = TX_4X4 ;\n xd -> mi [ 0 ] -> mbmi . ref_frame [ 0 ] = LAST_FRAME ;\n xd -> mi [ 0 ] -> mbmi . ref_frame [ 1 ] = NONE ;\n vp9_build_inter_predictors_sby ( xd , mb_row << 1 , mb_col << 1 , bsize ) ;\n vp9_encode_sby_pass1 ( x , bsize ) ;\n sum_mvr += mv . row ;\n sum_mvr_abs += abs ( mv . row ) ;\n sum_mvc += mv . col ;\n sum_mvc_abs += abs ( mv . col ) ;\n sum_mvrs += mv . row * mv . row ;\n sum_mvcs += mv . col * mv . col ;\n ++ intercount ;\n best_ref_mv = mv ;\n # if CONFIG_FP_MB_STATS if ( cpi -> use_fp_mb_stats ) {\n cpi -> twopass . frame_mb_stats_buf [ mb_index ] = 0 ;\n cpi -> twopass . frame_mb_stats_buf [ mb_index ] &= ~ FPMB_DCINTRA_MASK ;\n cpi -> twopass . frame_mb_stats_buf [ mb_index ] |= FPMB_MOTION_ZERO_MASK ;\n if ( this_error > FPMB_ERROR_LARGE_TH ) {\n cpi -> twopass . frame_mb_stats_buf [ mb_index ] |= FPMB_ERROR_LARGE_MASK ;\n }\n else if ( this_error < FPMB_ERROR_SMALL_TH ) {\n cpi -> twopass . frame_mb_stats_buf [ mb_index ] |= FPMB_ERROR_SMALL_MASK ;\n }\n }\n # endif if ( ! is_zero_mv ( & mv ) ) {\n ++ mvcount ;\n # if CONFIG_FP_MB_STATS if ( cpi -> use_fp_mb_stats ) {\n cpi -> twopass . frame_mb_stats_buf [ mb_index ] &= ~ FPMB_MOTION_ZERO_MASK ;\n if ( mv . as_mv . col > 0 && mv . as_mv . col >= abs ( mv . as_mv . row ) ) {\n cpi -> twopass . frame_mb_stats_buf [ mb_index ] |= FPMB_MOTION_RIGHT_MASK ;\n }\n else if ( mv . as_mv . row < 0 && abs ( mv . as_mv . row ) >= abs ( mv . as_mv . col ) ) {\n cpi -> twopass . frame_mb_stats_buf [ mb_index ] |= FPMB_MOTION_UP_MASK ;\n }\n else if ( mv . as_mv . col < 0 && abs ( mv . as_mv . col ) >= abs ( mv . as_mv . row ) ) {\n cpi -> twopass . frame_mb_stats_buf [ mb_index ] |= FPMB_MOTION_LEFT_MASK ;\n }\n else {\n cpi -> twopass . frame_mb_stats_buf [ mb_index ] |= FPMB_MOTION_DOWN_MASK ;\n }\n }\n # endif if ( ! is_equal_mv ( & mv , & lastmv ) ) ++ new_mv_count ;\n lastmv = mv ;\n if ( mb_row < cm -> mb_rows / 2 ) {\n if ( mv . row > 0 ) -- sum_in_vectors ;\n else if ( mv . row < 0 ) ++ sum_in_vectors ;\n }\n else if ( mb_row > cm -> mb_rows / 2 ) {\n if ( mv . row > 0 ) ++ sum_in_vectors ;\n else if ( mv . row < 0 ) -- sum_in_vectors ;\n }\n if ( mb_col < cm -> mb_cols / 2 ) {\n if ( mv . col > 0 ) -- sum_in_vectors ;\n else if ( mv . col < 0 ) ++ sum_in_vectors ;\n }\n else if ( mb_col > cm -> mb_cols / 2 ) {\n if ( mv . col > 0 ) ++ sum_in_vectors ;\n else if ( mv . col < 0 ) -- sum_in_vectors ;\n }\n }\n }\n }\n else {\n sr_coded_error += ( int64_t ) this_error ;\n }\n coded_error += ( int64_t ) this_error ;\n x -> plane [ 0 ] . src . buf += 16 ;\n x -> plane [ 1 ] . src . buf += uv_mb_height ;\n x -> plane [ 2 ] . src . buf += uv_mb_height ;\n recon_yoffset += 16 ;\n recon_uvoffset += uv_mb_height ;\n }\n x -> plane [ 0 ] . src . buf += 16 * x -> plane [ 0 ] . src . stride - 16 * cm -> mb_cols ;\n x -> plane [ 1 ] . src . buf += uv_mb_height * x -> plane [ 1 ] . src . stride - uv_mb_height * cm -> mb_cols ;\n x -> plane [ 2 ] . src . buf += uv_mb_height * x -> plane [ 1 ] . src . stride - uv_mb_height * cm -> mb_cols ;\n vp9_clear_system_state ( ) ;\n }\n vp9_clear_system_state ( ) ;\n {\n FIRSTPASS_STATS fps ;\n fps . frame = cm -> current_video_frame ;\n fps . spatial_layer_id = cpi -> svc . spatial_layer_id ;\n fps . intra_error = ( double ) ( intra_error >> 8 ) ;\n fps . coded_error = ( double ) ( coded_error >> 8 ) ;\n fps . sr_coded_error = ( double ) ( sr_coded_error >> 8 ) ;\n fps . count = 1.0 ;\n fps . pcnt_inter = ( double ) intercount / cm -> MBs ;\n fps . pcnt_second_ref = ( double ) second_ref_count / cm -> MBs ;\n fps . pcnt_neutral = ( double ) neutral_count / cm -> MBs ;\n if ( mvcount > 0 ) {\n fps . MVr = ( double ) sum_mvr / mvcount ;\n fps . mvr_abs = ( double ) sum_mvr_abs / mvcount ;\n fps . MVc = ( double ) sum_mvc / mvcount ;\n fps . mvc_abs = ( double ) sum_mvc_abs / mvcount ;\n fps . MVrv = ( ( double ) sum_mvrs - ( fps . MVr * fps . MVr / mvcount ) ) / mvcount ;\n fps . MVcv = ( ( double ) sum_mvcs - ( fps . MVc * fps . MVc / mvcount ) ) / mvcount ;\n fps . mv_in_out_count = ( double ) sum_in_vectors / ( mvcount * 2 ) ;\n fps . new_mv_count = new_mv_count ;\n fps . pcnt_motion = ( double ) mvcount / cm -> MBs ;\n }\n else {\n fps . MVr = 0.0 ;\n fps . mvr_abs = 0.0 ;\n fps . MVc = 0.0 ;\n fps . mvc_abs = 0.0 ;\n fps . MVrv = 0.0 ;\n fps . MVcv = 0.0 ;\n fps . mv_in_out_count = 0.0 ;\n fps . new_mv_count = 0.0 ;\n fps . pcnt_motion = 0.0 ;\n }\n fps . duration = ( double ) ( source -> ts_end - source -> ts_start ) ;\n twopass -> this_frame_stats = fps ;\n output_stats ( & twopass -> this_frame_stats , cpi -> output_pkt_list ) ;\n accumulate_stats ( & twopass -> total_stats , & fps ) ;\n # if CONFIG_FP_MB_STATS if ( cpi -> use_fp_mb_stats ) {\n output_fpmb_stats ( twopass -> frame_mb_stats_buf , cm , cpi -> output_pkt_list ) ;\n }\n # endif }\n if ( ( twopass -> sr_update_lag > 3 ) || ( ( cm -> current_video_frame > 0 ) && ( twopass -> this_frame_stats . pcnt_inter > 0.20 ) && ( ( twopass -> this_frame_stats . intra_error / DOUBLE_DIVIDE_CHECK ( twopass -> this_frame_stats . coded_error ) ) > 2.0 ) ) ) {\n if ( gld_yv12 != NULL ) {\n vp8_yv12_copy_frame ( lst_yv12 , gld_yv12 ) ;\n }\n twopass -> sr_update_lag = 1 ;\n }\n else {\n ++ twopass -> sr_update_lag ;\n }\n vp9_extend_frame_borders ( new_yv12 ) ;\n if ( lc != NULL ) {\n vp9_update_reference_frames ( cpi ) ;\n }\n else {\n swap_yv12 ( lst_yv12 , new_yv12 ) ;\n }\n if ( cm -> current_video_frame == 0 && gld_yv12 != NULL ) {\n vp8_yv12_copy_frame ( lst_yv12 , gld_yv12 ) ;\n }\n if ( 0 ) {\n char filename [ 512 ] ;\n FILE * recon_file ;\n snprintf ( filename , sizeof ( filename ) , \"enc%04d.yuv\" , ( int ) cm -> current_video_frame ) ;\n if ( cm -> current_video_frame == 0 ) recon_file = fopen ( filename , \"wb\" ) ;\n else recon_file = fopen ( filename , \"ab\" ) ;\n ( void ) fwrite ( lst_yv12 -> buffer_alloc , lst_yv12 -> frame_size , 1 , recon_file ) ;\n fclose ( recon_file ) ;\n }\n ++ cm -> current_video_frame ;\n if ( cpi -> use_svc ) vp9_inc_frame_in_layer ( cpi ) ;\n }"}
{"idx": 6711, "target": 0, "func": "static void seekUntilNewline ( UCHARBUF * buf , struct UString * token , UErrorCode * status ) {\n UChar32 c ;\n if ( U_FAILURE ( * status ) ) {\n return ;\n }\n do {\n c = ucbuf_getc ( buf , status ) ;\n if ( token != NULL ) {\n ustr_u32cat ( token , c , status ) ;\n }\n }\n while ( ! isNewline ( c ) && c != U_EOF && * status == U_ZERO_ERROR ) ;\n }"}
{"idx": 6712, "target": 0, "func": "void vp9_free_ref_frame_buffers ( VP9_COMMON * cm ) {\n int i ;\n for ( i = 0 ;\n i < FRAME_BUFFERS ;\n ++ i ) {\n vp9_free_frame_buffer ( & cm -> frame_bufs [ i ] . buf ) ;\n if ( cm -> frame_bufs [ i ] . ref_count > 0 && cm -> frame_bufs [ i ] . raw_frame_buffer . data != NULL ) {\n cm -> release_fb_cb ( cm -> cb_priv , & cm -> frame_bufs [ i ] . raw_frame_buffer ) ;\n cm -> frame_bufs [ i ] . ref_count = 0 ;\n }\n }\n vp9_free_frame_buffer ( & cm -> post_proc_buffer ) ;\n }"}
{"idx": 6713, "target": 1, "func": "static void rlvl_destroy ( jpc_enc_rlvl_t * rlvl ) {\n jpc_enc_band_t * band ;\n uint_fast16_t bandno ;\n if ( rlvl -> bands ) {\n for ( bandno = 0 , band = rlvl -> bands ;\n bandno < rlvl -> numbands ;\n ++ bandno , ++ band ) {\n band_destroy ( band ) ;\n }\n jas_free ( rlvl -> bands ) ;\n }\n }"}
{"idx": 6714, "target": 0, "func": "EC_KEY * d2i_ECPrivateKey_bio ( BIO * bp , EC_KEY * * eckey ) {\n return ASN1_d2i_bio_of ( EC_KEY , EC_KEY_new , d2i_ECPrivateKey , bp , eckey ) ;\n }"}
{"idx": 6715, "target": 0, "func": "static void setup_delta_attr_check ( struct git_attr_check * check ) {\n static struct git_attr * attr_delta ;\n if ( ! attr_delta ) attr_delta = git_attr ( \"delta\" ) ;\n check [ 0 ] . attr = attr_delta ;\n }"}
{"idx": 6716, "target": 0, "func": "static int printHelp ( int argc , char * argv [ ] ) {\n fprintf ( stderr , \"Usage: %s [-options] [file_name]\\n\" \"\\n\" \"Read the files specified and\\n\" \"create a binary file [package-name]_[bundle-name].\" DATA_TYPE \" with the StringPrep profile data\\n\" \"\\n\" , argv [ 0 ] ) ;\n fprintf ( stderr , \"Options:\\n\" \"\\t-h or -? or --help print this usage text\\n\" \"\\t-v or --verbose verbose output\\n\" \"\\t-c or --copyright include a copyright notice\\n\" ) ;\n fprintf ( stderr , \"\\t-d or --destdir destination directory, followed by the path\\n\" \"\\t-s or --sourcedir source directory of ICU data, followed by the path\\n\" \"\\t-b or --bundle-name generate the ouput data file with the name specified\\n\" \"\\t-i or --icudatadir directory for locating any needed intermediate data files,\\n\" \"\\t followed by path, defaults to %s\\n\" , u_getDataDirectory ( ) ) ;\n fprintf ( stderr , \"\\t-n or --normalize turn on the option for normalization and include mappings\\n\" \"\\t from NormalizationCorrections.txt from the given path,\\n\" \"\\t e.g: /test/icu/source/data/unidata\\n\" ) ;\n fprintf ( stderr , \"\\t-m or --norm-correction use NormalizationCorrections.txt from the given path\\n\" \"\\t when the input file contains a normalization directive.\\n\" \"\\t unlike -n/--normalize, this option does not force the\\n\" \"\\t normalization.\\n\" ) ;\n fprintf ( stderr , \"\\t-k or --check-bidi turn on the option for checking for BiDi in the profile\\n\" \"\\t-u or --unicode version of Unicode to be used with this profile followed by the version\\n\" ) ;\n return argc < 0 ? U_ILLEGAL_ARGUMENT_ERROR : U_ZERO_ERROR ;\n }"}
{"idx": 6717, "target": 0, "func": "static void ber_check_items ( int cnt , gint32 min_len , gint32 max_len , asn1_ctx_t * actx , proto_item * item ) {\n if ( ( min_len != - 1 ) && ( cnt < min_len ) ) {\n expert_add_info_format ( actx -> pinfo , item , & ei_ber_size_constraint_items , \"Size constraint: too few items: %d (%d .. %d)\" , cnt , min_len , max_len ) ;\n }\n else if ( ( max_len != - 1 ) && ( cnt > max_len ) ) {\n expert_add_info_format ( actx -> pinfo , item , & ei_ber_size_constraint_items , \"Size constraint: too many items: %d (%d .. %d)\" , cnt , min_len , max_len ) ;\n }\n }"}
{"idx": 6718, "target": 0, "func": "GList * completion_get_chatnets ( const char * word ) {\n GList * list ;\n GSList * tmp ;\n int len ;\n g_return_val_if_fail ( word != NULL , NULL ) ;\n len = strlen ( word ) ;\n list = NULL ;\n for ( tmp = chatnets ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n CHATNET_REC * rec = tmp -> data ;\n if ( g_ascii_strncasecmp ( rec -> name , word , len ) == 0 ) list = g_list_append ( list , g_strdup ( rec -> name ) ) ;\n }\n return list ;\n }"}
{"idx": 6719, "target": 0, "func": "static uint32_t PPC_io_readw ( target_phys_addr_t addr ) {\n uint32_t ret = cpu_inw ( NULL , addr - PPC_IO_BASE ) ;\n # ifdef TARGET_WORDS_BIGENDIAN ret = bswap16 ( ret ) ;\n # endif if ( ( addr < 0x800001f0 || addr > 0x800001f7 ) && ( addr < 0x80000170 || addr > 0x80000177 ) ) {\n PPC_IO_DPRINTF ( \"0x%08x <= 0x%04x\\n\" , addr - PPC_IO_BASE , ret ) ;\n }\n return ret ;\n }"}
{"idx": 6720, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , MAYBE_TestRemoveHandlerRemovesDefault ) {\n ProtocolHandler ph1 = CreateProtocolHandler ( \"test\" , \"test1\" ) ;\n ProtocolHandler ph2 = CreateProtocolHandler ( \"test\" , \"test2\" ) ;\n ProtocolHandler ph3 = CreateProtocolHandler ( \"test\" , \"test3\" ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph2 ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph3 ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ;\n registry ( ) -> RemoveHandler ( ph1 ) ;\n ASSERT_FALSE ( registry ( ) -> IsDefault ( ph1 ) ) ;\n }"}
{"idx": 6721, "target": 0, "func": "TSReturnCode TSHttpArgIndexReserve ( const char * name , const char * description , int * arg_idx ) {\n sdk_assert ( sdk_sanity_check_null_ptr ( arg_idx ) == TS_SUCCESS ) ;\n int ix = ink_atomic_increment ( & next_argv_index , 1 ) ;\n if ( ix < HTTP_SSN_TXN_MAX_USER_ARG ) {\n state_arg_table [ ix ] . name = ats_strdup ( name ) ;\n state_arg_table [ ix ] . name_len = strlen ( state_arg_table [ ix ] . name ) ;\n if ( description ) {\n state_arg_table [ ix ] . description = ats_strdup ( description ) ;\n }\n * arg_idx = ix ;\n return TS_SUCCESS ;\n }\n return TS_ERROR ;\n }"}
{"idx": 6722, "target": 0, "func": "static int calc_active_worst_quality_one_pass_vbr ( const VP9_COMP * cpi ) {\n const RATE_CONTROL * const rc = & cpi -> rc ;\n const unsigned int curr_frame = cpi -> common . current_video_frame ;\n int active_worst_quality ;\n if ( cpi -> common . frame_type == KEY_FRAME ) {\n active_worst_quality = curr_frame == 0 ? rc -> worst_quality : rc -> last_q [ KEY_FRAME ] * 2 ;\n }\n else {\n if ( ! rc -> is_src_frame_alt_ref && ( cpi -> refresh_golden_frame || cpi -> refresh_alt_ref_frame ) ) {\n active_worst_quality = curr_frame == 1 ? rc -> last_q [ KEY_FRAME ] * 5 / 4 : rc -> last_q [ INTER_FRAME ] ;\n }\n else {\n active_worst_quality = curr_frame == 1 ? rc -> last_q [ KEY_FRAME ] * 2 : rc -> last_q [ INTER_FRAME ] * 2 ;\n }\n }\n return MIN ( active_worst_quality , rc -> worst_quality ) ;\n }"}
{"idx": 6723, "target": 0, "func": "void nautilus_directory_get_info_for_new_files ( NautilusDirectory * directory , GList * location_list ) {\n NewFilesState * state ;\n GFile * location ;\n GList * l ;\n if ( location_list == NULL ) {\n return ;\n }\n state = g_new ( NewFilesState , 1 ) ;\n state -> directory = directory ;\n state -> cancellable = g_cancellable_new ( ) ;\n state -> count = 0 ;\n for ( l = location_list ;\n l != NULL ;\n l = l -> next ) {\n location = l -> data ;\n state -> count ++ ;\n g_file_query_info_async ( location , NAUTILUS_FILE_DEFAULT_ATTRIBUTES , 0 , G_PRIORITY_DEFAULT , state -> cancellable , new_files_callback , state ) ;\n }\n directory -> details -> new_files_in_progress = g_list_prepend ( directory -> details -> new_files_in_progress , state ) ;\n }"}
{"idx": 6724, "target": 0, "func": "static inline void mc_dir_part ( AVSContext * h , AVFrame * pic , int chroma_height , int delta , int list , uint8_t * dest_y , uint8_t * dest_cb , uint8_t * dest_cr , int src_x_offset , int src_y_offset , qpel_mc_func * qpix_op , h264_chroma_mc_func chroma_op , cavs_vector * mv ) {\n const int mx = mv -> x + src_x_offset * 8 ;\n const int my = mv -> y + src_y_offset * 8 ;\n const int luma_xy = ( mx & 3 ) + ( ( my & 3 ) << 2 ) ;\n uint8_t * src_y = pic -> data [ 0 ] + ( mx >> 2 ) + ( my >> 2 ) * h -> l_stride ;\n uint8_t * src_cb = pic -> data [ 1 ] + ( mx >> 3 ) + ( my >> 3 ) * h -> c_stride ;\n uint8_t * src_cr = pic -> data [ 2 ] + ( mx >> 3 ) + ( my >> 3 ) * h -> c_stride ;\n int extra_width = 0 ;\n int extra_height = extra_width ;\n int emu = 0 ;\n const int full_mx = mx >> 2 ;\n const int full_my = my >> 2 ;\n const int pic_width = 16 * h -> mb_width ;\n const int pic_height = 16 * h -> mb_height ;\n if ( ! pic -> data [ 0 ] ) return ;\n if ( mx & 7 ) extra_width -= 3 ;\n if ( my & 7 ) extra_height -= 3 ;\n if ( full_mx < 0 - extra_width || full_my < 0 - extra_height || full_mx + 16 > pic_width + extra_width || full_my + 16 > pic_height + extra_height ) {\n h -> vdsp . emulated_edge_mc ( h -> edge_emu_buffer , src_y - 2 - 2 * h -> l_stride , h -> l_stride , 16 + 5 , 16 + 5 , full_mx - 2 , full_my - 2 , pic_width , pic_height ) ;\n src_y = h -> edge_emu_buffer + 2 + 2 * h -> l_stride ;\n emu = 1 ;\n }\n qpix_op [ luma_xy ] ( dest_y , src_y , h -> l_stride ) ;\n if ( emu ) {\n h -> vdsp . emulated_edge_mc ( h -> edge_emu_buffer , src_cb , h -> c_stride , 9 , 9 , ( mx >> 3 ) , ( my >> 3 ) , pic_width >> 1 , pic_height >> 1 ) ;\n src_cb = h -> edge_emu_buffer ;\n }\n chroma_op ( dest_cb , src_cb , h -> c_stride , chroma_height , mx & 7 , my & 7 ) ;\n if ( emu ) {\n h -> vdsp . emulated_edge_mc ( h -> edge_emu_buffer , src_cr , h -> c_stride , 9 , 9 , ( mx >> 3 ) , ( my >> 3 ) , pic_width >> 1 , pic_height >> 1 ) ;\n src_cr = h -> edge_emu_buffer ;\n }\n chroma_op ( dest_cr , src_cr , h -> c_stride , chroma_height , mx & 7 , my & 7 ) ;\n }"}
{"idx": 6725, "target": 0, "func": "static int dissect_h245_MaintenanceLoopRequest ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MaintenanceLoopRequest , MaintenanceLoopRequest_sequence ) ;\n return offset ;\n }"}
{"idx": 6726, "target": 0, "func": "static int ACTRACEcalls_packet ( void * ptr _U_ , packet_info * pinfo , epan_dissect_t * edt _U_ , const void * ACTRACEinfo ) {\n voip_calls_tapinfo_t * tapinfo = & the_tapinfo_struct ;\n const actrace_info_t * pi = ( const actrace_info_t * ) ACTRACEinfo ;\n GList * list ;\n actrace_cas_calls_info_t * tmp_actrace_cas_info ;\n voip_calls_info_t * tmp_listinfo ;\n voip_calls_info_t * callsinfo = NULL ;\n actrace_frame_num = pinfo -> fd -> num ;\n actrace_trunk = pi -> trunk ;\n actrace_direction = pi -> direction ;\n if ( pi -> type == 1 ) {\n address pstn_add ;\n gchar * comment = NULL ;\n callsinfo = NULL ;\n list = g_list_first ( tapinfo -> callsinfo_list ) ;\n while ( list ) {\n tmp_listinfo = ( voip_calls_info_t * ) list -> data ;\n if ( tmp_listinfo -> protocol == VOIP_AC_CAS ) {\n tmp_actrace_cas_info = ( actrace_cas_calls_info_t * ) tmp_listinfo -> prot_info ;\n if ( ( tmp_actrace_cas_info -> bchannel == pi -> cas_bchannel ) && ( tmp_actrace_cas_info -> trunk == actrace_trunk ) ) {\n callsinfo = ( voip_calls_info_t * ) ( list -> data ) ;\n break ;\n }\n }\n list = g_list_next ( list ) ;\n }\n SET_ADDRESS ( & pstn_add , AT_STRINGZ , 5 , \"PSTN\" ) ;\n if ( ! callsinfo ) {\n callsinfo = ( voip_calls_info_t * ) g_malloc0 ( sizeof ( voip_calls_info_t ) ) ;\n callsinfo -> call_active_state = VOIP_ACTIVE ;\n callsinfo -> call_state = VOIP_CALL_SETUP ;\n callsinfo -> from_identity = g_strdup ( \"N/A\" ) ;\n callsinfo -> to_identity = g_strdup ( \"N/A\" ) ;\n COPY_ADDRESS ( & ( callsinfo -> initial_speaker ) , actrace_direction ? & pstn_add : & ( pinfo -> src ) ) ;\n callsinfo -> selected = FALSE ;\n callsinfo -> start_fd = pinfo -> fd ;\n callsinfo -> start_rel_ts = pinfo -> rel_ts ;\n callsinfo -> protocol = VOIP_AC_CAS ;\n callsinfo -> prot_info = g_malloc ( sizeof ( actrace_cas_calls_info_t ) ) ;\n callsinfo -> free_prot_info = g_free ;\n tmp_actrace_cas_info = ( actrace_cas_calls_info_t * ) callsinfo -> prot_info ;\n tmp_actrace_cas_info -> bchannel = pi -> cas_bchannel ;\n tmp_actrace_cas_info -> trunk = actrace_trunk ;\n callsinfo -> npackets = 0 ;\n callsinfo -> call_num = tapinfo -> ncalls ++ ;\n tapinfo -> callsinfo_list = g_list_prepend ( tapinfo -> callsinfo_list , callsinfo ) ;\n }\n callsinfo -> stop_fd = pinfo -> fd ;\n callsinfo -> stop_rel_ts = pinfo -> rel_ts ;\n ++ ( callsinfo -> npackets ) ;\n ++ ( tapinfo -> npackets ) ;\n comment = g_strdup_printf ( \"AC_CAS trunk:%u\" , actrace_trunk ) ;\n add_to_graph ( tapinfo , pinfo , pi -> cas_frame_label , comment , callsinfo -> call_num , actrace_direction ? & pstn_add : & ( pinfo -> src ) , actrace_direction ? & ( pinfo -> src ) : & pstn_add , 1 ) ;\n g_free ( comment ) ;\n }\n tapinfo -> redraw = TRUE ;\n return 1 ;\n }"}
{"idx": 6727, "target": 0, "func": "static void wiener_denoise ( WMAVoiceContext * s , int fcb_type , float * synth_pf , int size , const float * lpcs ) {\n int remainder , lim , n ;\n if ( fcb_type != FCB_TYPE_SILENCE ) {\n float * tilted_lpcs = s -> tilted_lpcs_pf , * coeffs = s -> denoise_coeffs_pf , tilt_mem = 0 ;\n tilted_lpcs [ 0 ] = 1.0 ;\n memcpy ( & tilted_lpcs [ 1 ] , lpcs , sizeof ( lpcs [ 0 ] ) * s -> lsps ) ;\n memset ( & tilted_lpcs [ s -> lsps + 1 ] , 0 , sizeof ( tilted_lpcs [ 0 ] ) * ( 128 - s -> lsps - 1 ) ) ;\n ff_tilt_compensation ( & tilt_mem , 0.7 * tilt_factor ( lpcs , s -> lsps ) , tilted_lpcs , s -> lsps + 2 ) ;\n remainder = FFMIN ( 127 - size , size - 1 ) ;\n calc_input_response ( s , tilted_lpcs , fcb_type , coeffs , remainder ) ;\n memset ( & synth_pf [ size ] , 0 , sizeof ( synth_pf [ 0 ] ) * ( 128 - size ) ) ;\n s -> rdft . rdft_calc ( & s -> rdft , synth_pf ) ;\n s -> rdft . rdft_calc ( & s -> rdft , coeffs ) ;\n synth_pf [ 0 ] *= coeffs [ 0 ] ;\n synth_pf [ 1 ] *= coeffs [ 1 ] ;\n for ( n = 1 ;\n n < 64 ;\n n ++ ) {\n float v1 = synth_pf [ n * 2 ] , v2 = synth_pf [ n * 2 + 1 ] ;\n synth_pf [ n * 2 ] = v1 * coeffs [ n * 2 ] - v2 * coeffs [ n * 2 + 1 ] ;\n synth_pf [ n * 2 + 1 ] = v2 * coeffs [ n * 2 ] + v1 * coeffs [ n * 2 + 1 ] ;\n }\n s -> irdft . rdft_calc ( & s -> irdft , synth_pf ) ;\n }\n if ( s -> denoise_filter_cache_size ) {\n lim = FFMIN ( s -> denoise_filter_cache_size , size ) ;\n for ( n = 0 ;\n n < lim ;\n n ++ ) synth_pf [ n ] += s -> denoise_filter_cache [ n ] ;\n s -> denoise_filter_cache_size -= lim ;\n memmove ( s -> denoise_filter_cache , & s -> denoise_filter_cache [ size ] , sizeof ( s -> denoise_filter_cache [ 0 ] ) * s -> denoise_filter_cache_size ) ;\n }\n if ( fcb_type != FCB_TYPE_SILENCE ) {\n lim = FFMIN ( remainder , s -> denoise_filter_cache_size ) ;\n for ( n = 0 ;\n n < lim ;\n n ++ ) s -> denoise_filter_cache [ n ] += synth_pf [ size + n ] ;\n if ( lim < remainder ) {\n memcpy ( & s -> denoise_filter_cache [ lim ] , & synth_pf [ size + lim ] , sizeof ( s -> denoise_filter_cache [ 0 ] ) * ( remainder - lim ) ) ;\n s -> denoise_filter_cache_size = remainder ;\n }\n }\n }"}
{"idx": 6728, "target": 0, "func": "static int SpoolssStartDocPrinter_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n e_ctx_hnd policy_hnd ;\n char * pol_name ;\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , & policy_hnd , NULL , FALSE , FALSE ) ;\n dcerpc_fetch_polhnd_data ( & policy_hnd , & pol_name , NULL , NULL , NULL , pinfo -> num ) ;\n if ( pol_name ) col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , pol_name ) ;\n offset = dissect_spoolss_doc_info_ctr ( tvb , offset , pinfo , tree , di , drep ) ;\n return offset ;\n }"}
{"idx": 6729, "target": 0, "func": "int parse_CRowsetProperties ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree _U_ , const char * fmt , ... ) {\n proto_item * item ;\n proto_tree * tree ;\n const char * txt ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CRowsetProperties , & item , txt ) ;\n proto_tree_add_bitmask_with_flags ( tree , tvb , offset , hf_mswsp_bool_options , ett_mswsp_bool_options , mswsp_bool_options , ENC_LITTLE_ENDIAN , BMT_NO_APPEND ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_crowsetprops_ulmaxopenrows , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_crowsetprops_ulmemusage , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_crowsetprops_cmaxresults , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_crowsetprops_ccmdtimeout , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 6730, "target": 0, "func": "static bool_t _xdr_kadm5_policy_ent_rec ( XDR * xdrs , kadm5_policy_ent_rec * objp , int vers ) {\n if ( ! xdr_nullstring ( xdrs , & objp -> policy ) ) {\n return ( FALSE ) ;\n }\n if ( ! xdr_long ( xdrs , & objp -> pw_min_life ) ) {\n return ( FALSE ) ;\n }\n if ( ! xdr_long ( xdrs , & objp -> pw_max_life ) ) {\n return ( FALSE ) ;\n }\n if ( ! xdr_long ( xdrs , & objp -> pw_min_length ) ) {\n return ( FALSE ) ;\n }\n if ( ! xdr_long ( xdrs , & objp -> pw_min_classes ) ) {\n return ( FALSE ) ;\n }\n if ( ! xdr_long ( xdrs , & objp -> pw_history_num ) ) {\n return ( FALSE ) ;\n }\n if ( ! xdr_long ( xdrs , & objp -> policy_refcnt ) ) {\n return ( FALSE ) ;\n }\n if ( xdrs -> x_op == XDR_DECODE ) {\n objp -> pw_max_fail = 0 ;\n objp -> pw_failcnt_interval = 0 ;\n objp -> pw_lockout_duration = 0 ;\n objp -> attributes = 0 ;\n objp -> max_life = 0 ;\n objp -> max_renewable_life = 0 ;\n objp -> allowed_keysalts = NULL ;\n objp -> n_tl_data = 0 ;\n objp -> tl_data = NULL ;\n }\n if ( vers >= KADM5_API_VERSION_3 ) {\n if ( ! xdr_krb5_kvno ( xdrs , & objp -> pw_max_fail ) ) return ( FALSE ) ;\n if ( ! xdr_krb5_deltat ( xdrs , & objp -> pw_failcnt_interval ) ) return ( FALSE ) ;\n if ( ! xdr_krb5_deltat ( xdrs , & objp -> pw_lockout_duration ) ) return ( FALSE ) ;\n }\n if ( vers >= KADM5_API_VERSION_4 ) {\n if ( ! xdr_krb5_flags ( xdrs , & objp -> attributes ) ) {\n return ( FALSE ) ;\n }\n if ( ! xdr_krb5_deltat ( xdrs , & objp -> max_life ) ) {\n return ( FALSE ) ;\n }\n if ( ! xdr_krb5_deltat ( xdrs , & objp -> max_renewable_life ) ) {\n return ( FALSE ) ;\n }\n if ( ! xdr_nullstring ( xdrs , & objp -> allowed_keysalts ) ) {\n return ( FALSE ) ;\n }\n if ( ! xdr_krb5_int16 ( xdrs , & objp -> n_tl_data ) ) {\n return ( FALSE ) ;\n }\n if ( ! xdr_nulltype ( xdrs , ( void * * ) & objp -> tl_data , xdr_krb5_tl_data ) ) {\n return FALSE ;\n }\n }\n return ( TRUE ) ;\n }"}
{"idx": 6731, "target": 0, "func": "static void pdf_process_Do ( fz_context * ctx , pdf_processor * proc , pdf_csi * csi ) {\n pdf_obj * xres , * xobj , * subtype ;\n xres = pdf_dict_get ( ctx , csi -> rdb , PDF_NAME_XObject ) ;\n if ( ! xres ) fz_throw ( ctx , FZ_ERROR_SYNTAX , \"cannot find XObject dictionary\" ) ;\n xobj = pdf_dict_gets ( ctx , xres , csi -> name ) ;\n if ( ! xobj ) fz_throw ( ctx , FZ_ERROR_SYNTAX , \"cannot find XObject resource '%s'\" , csi -> name ) ;\n subtype = pdf_dict_get ( ctx , xobj , PDF_NAME_Subtype ) ;\n if ( pdf_name_eq ( ctx , subtype , PDF_NAME_Form ) ) {\n pdf_obj * st = pdf_dict_get ( ctx , xobj , PDF_NAME_Subtype2 ) ;\n if ( st ) subtype = st ;\n }\n if ( ! pdf_is_name ( ctx , subtype ) ) fz_throw ( ctx , FZ_ERROR_SYNTAX , \"no XObject subtype specified\" ) ;\n if ( pdf_is_hidden_ocg ( ctx , csi -> doc -> ocg , csi -> rdb , proc -> usage , pdf_dict_get ( ctx , xobj , PDF_NAME_OC ) ) ) return ;\n if ( pdf_name_eq ( ctx , subtype , PDF_NAME_Form ) ) {\n if ( proc -> op_Do_form ) {\n pdf_xobject * form = pdf_load_xobject ( ctx , csi -> doc , xobj ) ;\n fz_try ( ctx ) proc -> op_Do_form ( ctx , proc , csi -> name , form , csi -> rdb ) ;\n fz_always ( ctx ) pdf_drop_xobject ( ctx , form ) ;\n fz_catch ( ctx ) fz_rethrow ( ctx ) ;\n }\n }\n else if ( pdf_name_eq ( ctx , subtype , PDF_NAME_Image ) ) {\n if ( proc -> op_Do_image ) {\n fz_image * image = pdf_load_image ( ctx , csi -> doc , xobj ) ;\n fz_try ( ctx ) proc -> op_Do_image ( ctx , proc , csi -> name , image ) ;\n fz_always ( ctx ) fz_drop_image ( ctx , image ) ;\n fz_catch ( ctx ) fz_rethrow ( ctx ) ;\n }\n }\n else if ( ! strcmp ( pdf_to_name ( ctx , subtype ) , \"PS\" ) ) fz_warn ( ctx , \"ignoring XObject with subtype PS\" ) ;\n else fz_warn ( ctx , \"ignoring XObject with unknown subtype: '%s'\" , pdf_to_name ( ctx , subtype ) ) ;\n }"}
{"idx": 6732, "target": 0, "func": "static void page_init ( void ) {\n # ifdef _WIN32 {\n SYSTEM_INFO system_info ;\n GetSystemInfo ( & system_info ) ;\n qemu_real_host_page_size = system_info . dwPageSize ;\n }\n # else qemu_real_host_page_size = getpagesize ( ) ;\n # endif if ( qemu_host_page_size == 0 ) {\n qemu_host_page_size = qemu_real_host_page_size ;\n }\n if ( qemu_host_page_size < TARGET_PAGE_SIZE ) {\n qemu_host_page_size = TARGET_PAGE_SIZE ;\n }\n qemu_host_page_mask = ~ ( qemu_host_page_size - 1 ) ;\n # if defined ( CONFIG_BSD ) && defined ( CONFIG_USER_ONLY ) {\n # ifdef HAVE_KINFO_GETVMMAP struct kinfo_vmentry * freep ;\n int i , cnt ;\n freep = kinfo_getvmmap ( getpid ( ) , & cnt ) ;\n if ( freep ) {\n mmap_lock ( ) ;\n for ( i = 0 ;\n i < cnt ;\n i ++ ) {\n unsigned long startaddr , endaddr ;\n startaddr = freep [ i ] . kve_start ;\n endaddr = freep [ i ] . kve_end ;\n if ( h2g_valid ( startaddr ) ) {\n startaddr = h2g ( startaddr ) & TARGET_PAGE_MASK ;\n if ( h2g_valid ( endaddr ) ) {\n endaddr = h2g ( endaddr ) ;\n page_set_flags ( startaddr , endaddr , PAGE_RESERVED ) ;\n }\n else {\n # if TARGET_ABI_BITS <= L1_MAP_ADDR_SPACE_BITS endaddr = ~ 0ul ;\n page_set_flags ( startaddr , endaddr , PAGE_RESERVED ) ;\n # endif }\n }\n }\n free ( freep ) ;\n mmap_unlock ( ) ;\n }\n # else FILE * f ;\n last_brk = ( unsigned long ) sbrk ( 0 ) ;\n f = fopen ( \"/compat/linux/proc/self/maps\" , \"r\" ) ;\n if ( f ) {\n mmap_lock ( ) ;\n do {\n unsigned long startaddr , endaddr ;\n int n ;\n n = fscanf ( f , \"%lx-%lx %*[^\\n]\\n\" , & startaddr , & endaddr ) ;\n if ( n == 2 && h2g_valid ( startaddr ) ) {\n startaddr = h2g ( startaddr ) & TARGET_PAGE_MASK ;\n if ( h2g_valid ( endaddr ) ) {\n endaddr = h2g ( endaddr ) ;\n }\n else {\n endaddr = ~ 0ul ;\n }\n page_set_flags ( startaddr , endaddr , PAGE_RESERVED ) ;\n }\n }\n while ( ! feof ( f ) ) ;\n fclose ( f ) ;\n mmap_unlock ( ) ;\n }\n # endif }\n # endif }"}
{"idx": 6733, "target": 0, "func": "X509_CRL * d2i_X509_CRL_fp ( FILE * fp , X509_CRL * * crl ) {\n return ASN1_item_d2i_fp ( ASN1_ITEM_rptr ( X509_CRL ) , fp , crl ) ;\n }"}
{"idx": 6734, "target": 0, "func": "static void pdf_process_BDC ( fz_context * ctx , pdf_processor * proc , pdf_csi * csi ) {\n if ( proc -> op_BDC ) proc -> op_BDC ( ctx , proc , csi -> name , csi -> obj , resolve_properties ( ctx , csi , csi -> obj ) ) ;\n if ( proc -> hidden > 0 ) {\n ++ proc -> hidden ;\n return ;\n }\n if ( strcmp ( csi -> name , \"OC\" ) ) return ;\n if ( pdf_is_hidden_ocg ( ctx , csi -> doc -> ocg , csi -> rdb , proc -> usage , csi -> obj ) ) ++ proc -> hidden ;\n }"}
{"idx": 6735, "target": 0, "func": "static VALUE ossl_x509name_cmp ( VALUE self , VALUE other ) {\n int result ;\n result = ossl_x509name_cmp0 ( self , other ) ;\n if ( result < 0 ) return INT2FIX ( - 1 ) ;\n if ( result > 0 ) return INT2FIX ( 1 ) ;\n return INT2FIX ( 0 ) ;\n }"}
{"idx": 6736, "target": 0, "func": "static zend_class_entry * row_get_ce ( const zval * object TSRMLS_DC ) {\n return pdo_row_ce ;\n }"}
{"idx": 6737, "target": 0, "func": "static inline int ac6_proc_init ( struct net * net ) {\n return 0 ;\n }"}
{"idx": 6738, "target": 0, "func": "static inline void pxa2xx_rtc_swal1_tick ( void * opaque ) {\n PXA2xxRTCState * s = ( PXA2xxRTCState * ) opaque ;\n s -> rtsr |= ( 1 << 8 ) ;\n pxa2xx_rtc_alarm_update ( s , s -> rtsr ) ;\n pxa2xx_rtc_int_update ( s ) ;\n }"}
{"idx": 6739, "target": 0, "func": "static void midi_data_reassemble_cleanup ( void ) {\n reassembly_table_destroy ( & midi_data_reassembly_table ) ;\n }"}
{"idx": 6740, "target": 0, "func": "static void vc1_mc_4mv_chroma4 ( VC1Context * v ) {\n MpegEncContext * s = & v -> s ;\n H264ChromaContext * h264chroma = & v -> h264chroma ;\n uint8_t * srcU , * srcV ;\n int uvsrc_x , uvsrc_y ;\n int uvmx_field [ 4 ] , uvmy_field [ 4 ] ;\n int i , off , tx , ty ;\n int fieldmv = v -> blk_mv_type [ s -> block_index [ 0 ] ] ;\n static const int s_rndtblfield [ 16 ] = {\n 0 , 0 , 1 , 2 , 4 , 4 , 5 , 6 , 2 , 2 , 3 , 8 , 6 , 6 , 7 , 12 }\n ;\n int v_dist = fieldmv ? 1 : 4 ;\n int v_edge_pos = s -> v_edge_pos >> 1 ;\n if ( ! v -> s . last_picture . f . data [ 0 ] ) return ;\n if ( s -> flags & CODEC_FLAG_GRAY ) return ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n tx = s -> mv [ 0 ] [ i ] [ 0 ] ;\n uvmx_field [ i ] = ( tx + ( ( tx & 3 ) == 3 ) ) >> 1 ;\n ty = s -> mv [ 0 ] [ i ] [ 1 ] ;\n if ( fieldmv ) uvmy_field [ i ] = ( ty >> 4 ) * 8 + s_rndtblfield [ ty & 0xF ] ;\n else uvmy_field [ i ] = ( ty + ( ( ty & 3 ) == 3 ) ) >> 1 ;\n }\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n off = ( i & 1 ) * 4 + ( ( i & 2 ) ? v_dist * s -> uvlinesize : 0 ) ;\n uvsrc_x = s -> mb_x * 8 + ( i & 1 ) * 4 + ( uvmx_field [ i ] >> 2 ) ;\n uvsrc_y = s -> mb_y * 8 + ( ( i & 2 ) ? v_dist : 0 ) + ( uvmy_field [ i ] >> 2 ) ;\n uvsrc_x = av_clip ( uvsrc_x , - 8 , s -> avctx -> coded_width >> 1 ) ;\n uvsrc_y = av_clip ( uvsrc_y , - 8 , s -> avctx -> coded_height >> 1 ) ;\n srcU = s -> last_picture . f . data [ 1 ] + uvsrc_y * s -> uvlinesize + uvsrc_x ;\n srcV = s -> last_picture . f . data [ 2 ] + uvsrc_y * s -> uvlinesize + uvsrc_x ;\n uvmx_field [ i ] = ( uvmx_field [ i ] & 3 ) << 1 ;\n uvmy_field [ i ] = ( uvmy_field [ i ] & 3 ) << 1 ;\n if ( fieldmv && ! ( uvsrc_y & 1 ) ) v_edge_pos -- ;\n if ( fieldmv && ( uvsrc_y & 1 ) && uvsrc_y < 2 ) uvsrc_y -- ;\n if ( ( v -> mv_mode == MV_PMODE_INTENSITY_COMP ) || s -> h_edge_pos < 10 || v_edge_pos < ( 5 << fieldmv ) || ( unsigned ) uvsrc_x > ( s -> h_edge_pos >> 1 ) - 5 || ( unsigned ) uvsrc_y > v_edge_pos - ( 5 << fieldmv ) ) {\n s -> vdsp . emulated_edge_mc ( s -> edge_emu_buffer , srcU , s -> uvlinesize , 5 , ( 5 << fieldmv ) , uvsrc_x , uvsrc_y , s -> h_edge_pos >> 1 , v_edge_pos ) ;\n s -> vdsp . emulated_edge_mc ( s -> edge_emu_buffer + 16 , srcV , s -> uvlinesize , 5 , ( 5 << fieldmv ) , uvsrc_x , uvsrc_y , s -> h_edge_pos >> 1 , v_edge_pos ) ;\n srcU = s -> edge_emu_buffer ;\n srcV = s -> edge_emu_buffer + 16 ;\n if ( v -> mv_mode == MV_PMODE_INTENSITY_COMP ) {\n int i , j ;\n uint8_t * src , * src2 ;\n src = srcU ;\n src2 = srcV ;\n for ( j = 0 ;\n j < 5 ;\n j ++ ) {\n for ( i = 0 ;\n i < 5 ;\n i ++ ) {\n src [ i ] = v -> lutuv [ src [ i ] ] ;\n src2 [ i ] = v -> lutuv [ src2 [ i ] ] ;\n }\n src += s -> uvlinesize << 1 ;\n src2 += s -> uvlinesize << 1 ;\n }\n }\n }\n if ( ! v -> rnd ) {\n h264chroma -> put_h264_chroma_pixels_tab [ 1 ] ( s -> dest [ 1 ] + off , srcU , s -> uvlinesize << fieldmv , 4 , uvmx_field [ i ] , uvmy_field [ i ] ) ;\n h264chroma -> put_h264_chroma_pixels_tab [ 1 ] ( s -> dest [ 2 ] + off , srcV , s -> uvlinesize << fieldmv , 4 , uvmx_field [ i ] , uvmy_field [ i ] ) ;\n }\n else {\n v -> vc1dsp . put_no_rnd_vc1_chroma_pixels_tab [ 1 ] ( s -> dest [ 1 ] + off , srcU , s -> uvlinesize << fieldmv , 4 , uvmx_field [ i ] , uvmy_field [ i ] ) ;\n v -> vc1dsp . put_no_rnd_vc1_chroma_pixels_tab [ 1 ] ( s -> dest [ 2 ] + off , srcV , s -> uvlinesize << fieldmv , 4 , uvmx_field [ i ] , uvmy_field [ i ] ) ;\n }\n }\n }"}
{"idx": 6741, "target": 0, "func": "static void * Type_LUT8_Read ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number * nItems , cmsUInt32Number SizeOfTag ) {\n cmsUInt8Number InputChannels , OutputChannels , CLUTpoints ;\n cmsUInt8Number * Temp = NULL ;\n cmsPipeline * NewLUT = NULL ;\n cmsUInt32Number nTabSize , i ;\n cmsFloat64Number Matrix [ 3 * 3 ] ;\n * nItems = 0 ;\n if ( ! _cmsReadUInt8Number ( io , & InputChannels ) ) goto Error ;\n if ( ! _cmsReadUInt8Number ( io , & OutputChannels ) ) goto Error ;\n if ( ! _cmsReadUInt8Number ( io , & CLUTpoints ) ) goto Error ;\n if ( CLUTpoints == 1 ) goto Error ;\n if ( ! _cmsReadUInt8Number ( io , NULL ) ) goto Error ;\n if ( InputChannels > cmsMAXCHANNELS ) goto Error ;\n if ( OutputChannels > cmsMAXCHANNELS ) goto Error ;\n NewLUT = cmsPipelineAlloc ( self -> ContextID , InputChannels , OutputChannels ) ;\n if ( NewLUT == NULL ) goto Error ;\n if ( ! _cmsRead15Fixed16Number ( io , & Matrix [ 0 ] ) ) goto Error ;\n if ( ! _cmsRead15Fixed16Number ( io , & Matrix [ 1 ] ) ) goto Error ;\n if ( ! _cmsRead15Fixed16Number ( io , & Matrix [ 2 ] ) ) goto Error ;\n if ( ! _cmsRead15Fixed16Number ( io , & Matrix [ 3 ] ) ) goto Error ;\n if ( ! _cmsRead15Fixed16Number ( io , & Matrix [ 4 ] ) ) goto Error ;\n if ( ! _cmsRead15Fixed16Number ( io , & Matrix [ 5 ] ) ) goto Error ;\n if ( ! _cmsRead15Fixed16Number ( io , & Matrix [ 6 ] ) ) goto Error ;\n if ( ! _cmsRead15Fixed16Number ( io , & Matrix [ 7 ] ) ) goto Error ;\n if ( ! _cmsRead15Fixed16Number ( io , & Matrix [ 8 ] ) ) goto Error ;\n if ( ( InputChannels == 3 ) && ! _cmsMAT3isIdentity ( ( cmsMAT3 * ) Matrix ) ) {\n if ( ! cmsPipelineInsertStage ( NewLUT , cmsAT_BEGIN , cmsStageAllocMatrix ( self -> ContextID , 3 , 3 , Matrix , NULL ) ) ) goto Error ;\n }\n if ( ! Read8bitTables ( self -> ContextID , io , NewLUT , InputChannels ) ) goto Error ;\n nTabSize = uipow ( OutputChannels , CLUTpoints , InputChannels ) ;\n if ( nTabSize == ( cmsUInt32Number ) - 1 ) goto Error ;\n if ( nTabSize > 0 ) {\n cmsUInt16Number * PtrW , * T ;\n PtrW = T = ( cmsUInt16Number * ) _cmsCalloc ( self -> ContextID , nTabSize , sizeof ( cmsUInt16Number ) ) ;\n if ( T == NULL ) goto Error ;\n Temp = ( cmsUInt8Number * ) _cmsMalloc ( self -> ContextID , nTabSize ) ;\n if ( Temp == NULL ) {\n _cmsFree ( self -> ContextID , T ) ;\n goto Error ;\n }\n if ( io -> Read ( io , Temp , nTabSize , 1 ) != 1 ) {\n _cmsFree ( self -> ContextID , T ) ;\n _cmsFree ( self -> ContextID , Temp ) ;\n goto Error ;\n }\n for ( i = 0 ;\n i < nTabSize ;\n i ++ ) {\n * PtrW ++ = FROM_8_TO_16 ( Temp [ i ] ) ;\n }\n _cmsFree ( self -> ContextID , Temp ) ;\n Temp = NULL ;\n if ( ! cmsPipelineInsertStage ( NewLUT , cmsAT_END , cmsStageAllocCLut16bit ( self -> ContextID , CLUTpoints , InputChannels , OutputChannels , T ) ) ) goto Error ;\n _cmsFree ( self -> ContextID , T ) ;\n }\n if ( ! Read8bitTables ( self -> ContextID , io , NewLUT , OutputChannels ) ) goto Error ;\n * nItems = 1 ;\n return NewLUT ;\n Error : if ( NewLUT != NULL ) cmsPipelineFree ( NewLUT ) ;\n return NULL ;\n cmsUNUSED_PARAMETER ( SizeOfTag ) ;\n }"}
{"idx": 6742, "target": 1, "func": "static guint32 parse_wbxml_tag_defined ( proto_tree * tree , tvbuff_t * tvb , guint32 offset , guint32 str_tbl , guint8 * level , guint8 * codepage_stag , guint8 * codepage_attr , const wbxml_decoding * map ) {\n guint32 tvb_len = tvb_reported_length ( tvb ) ;\n guint32 off = offset ;\n guint32 len ;\n guint str_len ;\n guint32 ent ;\n guint32 idx ;\n guint8 peek ;\n guint32 tag_len ;\n guint8 tag_save_known = 0 ;\n guint8 tag_new_known = 0 ;\n const char * tag_save_literal ;\n const char * tag_new_literal ;\n guint8 parsing_tag_content = FALSE ;\n tag_save_literal = NULL ;\n DebugLog ( ( \"parse_wbxml_tag_defined (level = %u, offset = %u)\\n\" , * level , offset ) ) ;\n while ( off < tvb_len ) {\n peek = tvb_get_guint8 ( tvb , off ) ;\n DebugLog ( ( \"STAG: (top of while) level = %3u, peek = 0x%02X, off = %u, tvb_len = %u\\n\" , * level , peek , off , tvb_len ) ) ;\n if ( ( peek & 0x3F ) < 4 ) switch ( peek ) {\n case 0x00 : * codepage_stag = tvb_get_guint8 ( tvb , off + 1 ) ;\n proto_tree_add_text ( tree , tvb , off , 2 , \" | Tag | T -->%3d \" \"| SWITCH_PAGE (Tag code page) \" \"|\" , * codepage_stag ) ;\n off += 2 ;\n break ;\n case 0x01 : if ( tag_save_known ) {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| END (Known Tag 0x%02X) \" \"| %s</%s>\" , * level , * codepage_stag , tag_save_known , Indent ( * level ) , tag_save_literal ) ;\n }\n else {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| END (Literal Tag) \" \"| %s</%s>\" , * level , * codepage_stag , Indent ( * level ) , tag_save_literal ? tag_save_literal : \"\" ) ;\n }\n ( * level ) -- ;\n off ++ ;\n DebugLog ( ( \"STAG: level = %u, Return: len = %u\\n\" , * level , off - offset ) ) ;\n return ( off - offset ) ;\n case 0x02 : ent = tvb_get_guintvar ( tvb , off + 1 , & len ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Tag | T %3d \" \"| ENTITY \" \"| %s'&#%u;\n'\" , * level , * codepage_stag , Indent ( * level ) , ent ) ;\n off += 1 + len ;\n break ;\n case 0x03 : len = tvb_strsize ( tvb , off + 1 ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Tag | T %3d \" \"| STR_I (Inline string) \" \"| %s\\'%s\\'\" , * level , * codepage_stag , Indent ( * level ) , tvb_format_text ( tvb , off + 1 , len - 1 ) ) ;\n off += 1 + len ;\n break ;\n case 0x40 : case 0x41 : case 0x42 : len = tvb_strsize ( tvb , off + 1 ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Tag | T %3d \" \"| EXT_I_%1x (Extension Token) \" \"| %s(%s: \\'%s\\')\" , * level , * codepage_stag , peek & 0x0f , Indent ( * level ) , map_token ( map -> global , 0 , peek ) , tvb_format_text ( tvb , off + 1 , len - 1 ) ) ;\n off += 1 + len ;\n break ;\n case 0x43 : proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| PI (XML Processing Instruction) \" \"| %s<?xml\" , * level , * codepage_stag , Indent ( * level ) ) ;\n len = parse_wbxml_attribute_list_defined ( tree , tvb , off , str_tbl , * level , codepage_attr , map ) ;\n off += len ;\n if ( off >= tvb_len ) {\n DebugLog ( ( \"STAG: level = %u, ThrowException: len = %u (short frame)\\n\" , * level , off - offset ) ) ;\n THROW ( ReportedBoundsError ) ;\n }\n proto_tree_add_text ( tree , tvb , off - 1 , 1 , \" %3d | Tag | T %3d \" \"| END (PI) \" \"| %s?>\" , * level , * codepage_stag , Indent ( * level ) ) ;\n break ;\n case 0x80 : case 0x81 : case 0x82 : idx = tvb_get_guintvar ( tvb , off + 1 , & len ) ;\n {\n char * s ;\n if ( map -> ext_t [ peek & 0x03 ] ) s = ( map -> ext_t [ peek & 0x03 ] ) ( tvb , idx , str_tbl ) ;\n else s = wmem_strdup_printf ( wmem_packet_scope ( ) , \"EXT_T_%1x (%s)\" , peek & 0x03 , map_token ( map -> global , 0 , peek ) ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Tag | T %3d \" \"| EXT_T_%1x (Extension Token) \" \"| %s%s\" , * level , * codepage_stag , peek & 0x0f , Indent ( * level ) , s ) ;\n }\n off += 1 + len ;\n break ;\n case 0x83 : idx = tvb_get_guintvar ( tvb , off + 1 , & len ) ;\n str_len = tvb_strsize ( tvb , str_tbl + idx ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Tag | T %3d \" \"| STR_T (Tableref string) \" \"| %s\\'%s\\'\" , * level , * codepage_stag , Indent ( * level ) , tvb_format_text ( tvb , str_tbl + idx , str_len - 1 ) ) ;\n off += 1 + len ;\n break ;\n case 0xC0 : case 0xC1 : case 0xC2 : proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| EXT_%1x (Extension Token) \" \"| %s(%s)\" , * level , * codepage_stag , peek & 0x0f , Indent ( * level ) , map_token ( map -> global , 0 , peek ) ) ;\n off ++ ;\n break ;\n case 0xC3 : if ( tvb_get_guint8 ( tvb , 0 ) ) {\n char * str ;\n if ( tag_save_known ) {\n if ( map -> opaque_binary_tag ) {\n str = map -> opaque_binary_tag ( tvb , off + 1 , tag_save_known , * codepage_stag , & len ) ;\n }\n else {\n str = default_opaque_binary_tag ( tvb , off + 1 , tag_save_known , * codepage_stag , & len ) ;\n }\n }\n else {\n if ( map -> opaque_literal_tag ) {\n str = map -> opaque_literal_tag ( tvb , off + 1 , tag_save_literal , * codepage_stag , & len ) ;\n }\n else {\n str = default_opaque_literal_tag ( tvb , off + 1 , tag_save_literal , * codepage_stag , & len ) ;\n }\n }\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Tag | T %3d \" \"| OPAQUE (Opaque data) \" \"| %s%s\" , * level , * codepage_stag , Indent ( * level ) , str ) ;\n off += 1 + len ;\n }\n else {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| RESERVED_2 (Invalid Token!) \" \"| WBXML 1.0 parsing stops here.\" , * level , * codepage_stag ) ;\n off = tvb_len ;\n DebugLog ( ( \"STAG: level = %u, Return: len = %u\\n\" , * level , off - offset ) ) ;\n return ( off - offset ) ;\n }\n break ;\n }\n else {\n tag_len = 0 ;\n if ( ( peek & 0x3F ) == 4 ) {\n DebugLog ( ( \"STAG: LITERAL tag (peek = 0x%02X, off = %u) - TableRef follows!\\n\" , peek , off ) ) ;\n idx = tvb_get_guintvar ( tvb , off + 1 , & tag_len ) ;\n str_len = tvb_strsize ( tvb , str_tbl + idx ) ;\n tag_new_literal = ( const gchar * ) tvb_get_ptr ( tvb , str_tbl + idx , str_len ) ;\n tag_new_known = 0 ;\n }\n else {\n tag_new_known = peek & 0x3F ;\n tag_new_literal = map_token ( map -> tags , * codepage_stag , tag_new_known ) ;\n }\n if ( peek & 0x40 ) {\n if ( parsing_tag_content ) {\n DebugLog ( ( \"STAG: Tag in Tag - RECURSE! (off = %u)\\n\" , off ) ) ;\n ( * level ) ++ ;\n len = parse_wbxml_tag_defined ( tree , tvb , off , str_tbl , level , codepage_stag , codepage_attr , map ) ;\n off += len ;\n }\n else {\n if ( ( peek & 0x3F ) == 4 ) {\n tag_save_literal = tag_new_literal ;\n tag_save_known = 0 ;\n }\n else {\n tag_save_known = tag_new_known ;\n tag_save_literal = tag_new_literal ;\n }\n if ( peek & 0x80 ) {\n if ( tag_new_known ) {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| Known Tag 0x%02X (AC) \" \"| %s<%s\" , * level , * codepage_stag , tag_new_known , Indent ( * level ) , tag_new_literal ) ;\n off ++ ;\n }\n else {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| LITERAL_AC (Literal tag) (AC) \" \"| %s<%s\" , * level , * codepage_stag , Indent ( * level ) , tag_new_literal ) ;\n off += 1 + tag_len ;\n }\n len = parse_wbxml_attribute_list_defined ( tree , tvb , off , str_tbl , * level , codepage_attr , map ) ;\n off += len ;\n if ( off >= tvb_len ) {\n DebugLog ( ( \"STAG: level = %u, ThrowException: len = %u (short frame)\\n\" , * level , off - offset ) ) ;\n THROW ( ReportedBoundsError ) ;\n }\n proto_tree_add_text ( tree , tvb , off - 1 , 1 , \" %3d | Tag | T %3d \" \"| END (attribute list) \" \"| %s>\" , * level , * codepage_stag , Indent ( * level ) ) ;\n }\n else {\n if ( tag_new_known ) {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| Known Tag 0x%02X (.C) \" \"| %s<%s>\" , * level , * codepage_stag , tag_new_known , Indent ( * level ) , tag_new_literal ) ;\n off ++ ;\n }\n else {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| LITERAL_C (Literal Tag) (.C) \" \"| %s<%s>\" , * level , * codepage_stag , Indent ( * level ) , tag_new_literal ) ;\n off += 1 + tag_len ;\n }\n }\n parsing_tag_content = TRUE ;\n DebugLog ( ( \"Tag in Tag - No recursion this time! (off = %u)\\n\" , off ) ) ;\n }\n }\n else {\n DebugLog ( ( \"<Tag/> in Tag - No recursion! (off = %u)\\n\" , off ) ) ;\n ( * level ) ++ ;\n if ( peek & 0x80 ) {\n if ( tag_new_known ) {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| Known Tag 0x%02X (A.) \" \"| %s<%s\" , * level , * codepage_stag , tag_new_known , Indent ( * level ) , tag_new_literal ) ;\n off ++ ;\n len = parse_wbxml_attribute_list_defined ( tree , tvb , off , str_tbl , * level , codepage_attr , map ) ;\n off += len ;\n if ( off > tvb_len ) {\n DebugLog ( ( \"STAG: level = %u, ThrowException: len = %u (short frame)\\n\" , * level , off - offset ) ) ;\n THROW ( ReportedBoundsError ) ;\n }\n proto_tree_add_text ( tree , tvb , off - 1 , 1 , \" %3d | Tag | T %3d \" \"| END (Known Tag) \" \"| %s/>\" , * level , * codepage_stag , Indent ( * level ) ) ;\n }\n else {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| LITERAL_A (Literal Tag) (A.) \" \"| %s<%s\" , * level , * codepage_stag , Indent ( * level ) , tag_new_literal ) ;\n off += 1 + tag_len ;\n len = parse_wbxml_attribute_list_defined ( tree , tvb , off , str_tbl , * level , codepage_attr , map ) ;\n off += len ;\n if ( off >= tvb_len ) {\n DebugLog ( ( \"STAG: level = %u, ThrowException: len = %u (short frame)\\n\" , * level , off - offset ) ) ;\n THROW ( ReportedBoundsError ) ;\n }\n proto_tree_add_text ( tree , tvb , off - 1 , 1 , \" %3d | Tag | T %3d \" \"| END (Literal Tag) \" \"| %s/>\" , * level , * codepage_stag , Indent ( * level ) ) ;\n }\n }\n else {\n if ( tag_new_known ) {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| Known Tag 0x%02x (..) \" \"| %s<%s />\" , * level , * codepage_stag , tag_new_known , Indent ( * level ) , tag_new_literal ) ;\n off ++ ;\n }\n else {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| LITERAL (Literal Tag) (..) \" \"| %s<%s />\" , * level , * codepage_stag , Indent ( * level ) , tag_new_literal ) ;\n off += 1 + tag_len ;\n }\n }\n ( * level ) -- ;\n }\n }\n }\n DebugLog ( ( \"STAG: level = %u, Return: len = %u (end of function body)\\n\" , * level , off - offset ) ) ;\n return ( off - offset ) ;\n }"}
{"idx": 6743, "target": 1, "func": "static void rd_auto_partition_range ( VP9_COMP * cpi , const TileInfo * const tile , int mi_row , int mi_col , BLOCK_SIZE * min_block_size , BLOCK_SIZE * max_block_size ) {\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCKD * const xd = & cpi -> mb . e_mbd ;\n MODE_INFO * * mi = xd -> mi ;\n const int left_in_image = xd -> left_available && mi [ - 1 ] ;\n const int above_in_image = xd -> up_available && mi [ - xd -> mi_stride ] ;\n const int row8x8_remaining = tile -> mi_row_end - mi_row ;\n const int col8x8_remaining = tile -> mi_col_end - mi_col ;\n int bh , bw ;\n BLOCK_SIZE min_size = BLOCK_4X4 ;\n BLOCK_SIZE max_size = BLOCK_64X64 ;\n int i = 0 ;\n int bs_hist [ BLOCK_SIZES ] = {\n 0 }\n ;\n if ( left_in_image || above_in_image || cm -> frame_type != KEY_FRAME ) {\n min_size = BLOCK_64X64 ;\n max_size = BLOCK_4X4 ;\n if ( cm -> frame_type != KEY_FRAME ) {\n MODE_INFO * * const prev_mi = & cm -> prev_mi_grid_visible [ mi_row * xd -> mi_stride + mi_col ] ;\n get_sb_partition_size_range ( xd , prev_mi , & min_size , & max_size , bs_hist ) ;\n }\n if ( left_in_image ) {\n MODE_INFO * * left_sb64_mi = & mi [ - MI_BLOCK_SIZE ] ;\n get_sb_partition_size_range ( xd , left_sb64_mi , & min_size , & max_size , bs_hist ) ;\n }\n if ( above_in_image ) {\n MODE_INFO * * above_sb64_mi = & mi [ - xd -> mi_stride * MI_BLOCK_SIZE ] ;\n get_sb_partition_size_range ( xd , above_sb64_mi , & min_size , & max_size , bs_hist ) ;\n }\n if ( cpi -> sf . auto_min_max_partition_size == RELAXED_NEIGHBORING_MIN_MAX ) {\n min_size = min_partition_size [ min_size ] ;\n max_size = max_partition_size [ max_size ] ;\n }\n else if ( cpi -> sf . auto_min_max_partition_size == CONSTRAIN_NEIGHBORING_MIN_MAX ) {\n int sum = 0 ;\n int first_moment = 0 ;\n int second_moment = 0 ;\n int var_unnormalized = 0 ;\n for ( i = 0 ;\n i < BLOCK_SIZES ;\n i ++ ) {\n sum += bs_hist [ i ] ;\n first_moment += bs_hist [ i ] * i ;\n second_moment += bs_hist [ i ] * i * i ;\n }\n var_unnormalized = second_moment - first_moment * first_moment / sum ;\n if ( var_unnormalized <= 4 * sum ) {\n int mean = first_moment / sum ;\n min_size = min_partition_size [ mean ] ;\n max_size = max_partition_size [ mean ] ;\n }\n else {\n min_size = min_partition_size [ min_size ] ;\n max_size = max_partition_size [ max_size ] ;\n }\n }\n }\n max_size = find_partition_size ( max_size , row8x8_remaining , col8x8_remaining , & bh , & bw ) ;\n min_size = MIN ( min_size , max_size ) ;\n if ( cpi -> sf . use_square_partition_only && next_square_size [ max_size ] < min_size ) {\n min_size = next_square_size [ max_size ] ;\n }\n * min_block_size = min_size ;\n * max_block_size = max_size ;\n }"}
{"idx": 6744, "target": 0, "func": "static void hfinfo_remove_from_gpa_name_map ( const header_field_info * hfinfo ) {\n g_free ( last_field_name ) ;\n last_field_name = NULL ;\n if ( ! hfinfo -> same_name_next && hfinfo -> same_name_prev_id == - 1 ) {\n g_hash_table_steal ( gpa_name_map , hfinfo -> abbrev ) ;\n return ;\n }\n if ( hfinfo -> same_name_next ) {\n hfinfo -> same_name_next -> same_name_prev_id = hfinfo -> same_name_prev_id ;\n }\n if ( hfinfo -> same_name_prev_id != - 1 ) {\n header_field_info * same_name_prev = hfinfo_same_name_get_prev ( hfinfo ) ;\n same_name_prev -> same_name_next = hfinfo -> same_name_next ;\n if ( ! hfinfo -> same_name_next ) {\n g_hash_table_insert ( gpa_name_map , ( gpointer ) ( same_name_prev -> abbrev ) , same_name_prev ) ;\n }\n }\n }"}
{"idx": 6745, "target": 0, "func": "static void decode ( RA288Context * ractx , float gain , int cb_coef ) {\n int i ;\n double sumsum ;\n float sum , buffer [ 5 ] ;\n float * block = ractx -> sp_hist + 70 + 36 ;\n float * gain_block = ractx -> gain_hist + 28 ;\n memmove ( ractx -> sp_hist + 70 , ractx -> sp_hist + 75 , 36 * sizeof ( * block ) ) ;\n sum = 32. ;\n for ( i = 0 ;\n i < 10 ;\n i ++ ) sum -= gain_block [ 9 - i ] * ractx -> gain_lpc [ i ] ;\n sum = av_clipf ( sum , 0 , 60 ) ;\n sumsum = exp ( sum * 0.1151292546497 ) * gain * ( 1.0 / ( 1 << 23 ) ) ;\n for ( i = 0 ;\n i < 5 ;\n i ++ ) buffer [ i ] = codetable [ cb_coef ] [ i ] * sumsum ;\n sum = avpriv_scalarproduct_float_c ( buffer , buffer , 5 ) * ( ( 1 << 24 ) / 5. ) ;\n sum = FFMAX ( sum , 1 ) ;\n memmove ( gain_block , gain_block + 1 , 9 * sizeof ( * gain_block ) ) ;\n gain_block [ 9 ] = 10 * log10 ( sum ) - 32 ;\n ff_celp_lp_synthesis_filterf ( block , ractx -> sp_lpc , buffer , 5 , 36 ) ;\n }"}
{"idx": 6746, "target": 1, "func": "static int dissect_h225_T_empty_flg ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 375 \"./asn1/h225/h225.cnf\" h225_packet_info * h225_pi ;\n offset = dissect_per_null ( tvb , offset , actx , tree , hf_index ) ;\n # line 379 \"./asn1/h225/h225.cnf\" h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> cs_type = H225_EMPTY ;\n }\n return offset ;\n }"}
{"idx": 6747, "target": 0, "func": "static void setup_frame ( VP9_COMP * cpi ) {\n VP9_COMMON * const cm = & cpi -> common ;\n if ( frame_is_intra_only ( cm ) || cm -> error_resilient_mode ) {\n vp9_setup_past_independence ( cm ) ;\n }\n else {\n if ( ! cpi -> use_svc ) cm -> frame_context_idx = cpi -> refresh_alt_ref_frame ;\n }\n if ( cm -> frame_type == KEY_FRAME ) {\n if ( ! is_two_pass_svc ( cpi ) ) cpi -> refresh_golden_frame = 1 ;\n cpi -> refresh_alt_ref_frame = 1 ;\n vp9_zero ( cpi -> interp_filter_selected ) ;\n }\n else {\n cm -> fc = cm -> frame_contexts [ cm -> frame_context_idx ] ;\n vp9_zero ( cpi -> interp_filter_selected [ 0 ] ) ;\n }\n }"}
{"idx": 6748, "target": 0, "func": "static int slirp_hostfwd ( SlirpState * s , const char * redir_str , int legacy_format ) {\n struct in_addr host_addr = {\n . s_addr = INADDR_ANY }\n ;\n struct in_addr guest_addr = {\n . s_addr = 0 }\n ;\n int host_port , guest_port ;\n const char * p ;\n char buf [ 256 ] ;\n int is_udp ;\n char * end ;\n p = redir_str ;\n if ( ! p || get_str_sep ( buf , sizeof ( buf ) , & p , ':' ) < 0 ) {\n goto fail_syntax ;\n }\n if ( ! strcmp ( buf , \"tcp\" ) || buf [ 0 ] == '\\0' ) {\n is_udp = 0 ;\n }\n else if ( ! strcmp ( buf , \"udp\" ) ) {\n is_udp = 1 ;\n }\n else {\n goto fail_syntax ;\n }\n if ( ! legacy_format ) {\n if ( get_str_sep ( buf , sizeof ( buf ) , & p , ':' ) < 0 ) {\n goto fail_syntax ;\n }\n if ( buf [ 0 ] != '\\0' && ! inet_aton ( buf , & host_addr ) ) {\n goto fail_syntax ;\n }\n }\n if ( get_str_sep ( buf , sizeof ( buf ) , & p , legacy_format ? ':' : '-' ) < 0 ) {\n goto fail_syntax ;\n }\n host_port = strtol ( buf , & end , 0 ) ;\n if ( * end != '\\0' || host_port < 1 || host_port > 65535 ) {\n goto fail_syntax ;\n }\n if ( get_str_sep ( buf , sizeof ( buf ) , & p , ':' ) < 0 ) {\n goto fail_syntax ;\n }\n if ( buf [ 0 ] != '\\0' && ! inet_aton ( buf , & guest_addr ) ) {\n goto fail_syntax ;\n }\n guest_port = strtol ( p , & end , 0 ) ;\n if ( * end != '\\0' || guest_port < 1 || guest_port > 65535 ) {\n goto fail_syntax ;\n }\n if ( slirp_add_hostfwd ( s -> slirp , is_udp , host_addr , host_port , guest_addr , guest_port ) < 0 ) {\n error_report ( \"could not set up host forwarding rule '%s'\" , redir_str ) ;\n return - 1 ;\n }\n return 0 ;\n fail_syntax : error_report ( \"invalid host forwarding rule '%s'\" , redir_str ) ;\n return - 1 ;\n }"}
{"idx": 6749, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( UnloadTest , BrowserCloseWithInnerFocusedFrame ) {\n NavigateToDataURL ( INNER_FRAME_WITH_FOCUS_HTML , \"innerframewithfocus\" ) ;\n content : : WindowedNotificationObserver window_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , content : : NotificationService : : AllSources ( ) ) ;\n chrome : : CloseWindow ( browser ( ) ) ;\n ClickModalDialogButton ( true ) ;\n window_observer . Wait ( ) ;\n }"}
{"idx": 6750, "target": 0, "func": "static inline int mpeg1_decode_block_inter ( MpegEncContext * s , int16_t * block , int n ) {\n int level , i , j , run ;\n RLTable * rl = & ff_rl_mpeg1 ;\n uint8_t * const scantable = s -> intra_scantable . permutated ;\n const uint16_t * quant_matrix = s -> inter_matrix ;\n const int qscale = s -> qscale ;\n {\n OPEN_READER ( re , & s -> gb ) ;\n i = - 1 ;\n UPDATE_CACHE ( re , & s -> gb ) ;\n if ( ( ( int32_t ) GET_CACHE ( re , & s -> gb ) ) < 0 ) {\n level = ( 3 * qscale * quant_matrix [ 0 ] ) >> 5 ;\n level = ( level - 1 ) | 1 ;\n if ( GET_CACHE ( re , & s -> gb ) & 0x40000000 ) level = - level ;\n block [ 0 ] = level ;\n i ++ ;\n SKIP_BITS ( re , & s -> gb , 2 ) ;\n if ( ( ( int32_t ) GET_CACHE ( re , & s -> gb ) ) <= ( int32_t ) 0xBFFFFFFF ) goto end ;\n }\n for ( ;\n ;\n ) {\n GET_RL_VLC ( level , run , re , & s -> gb , rl -> rl_vlc [ 0 ] , TEX_VLC_BITS , 2 , 0 ) ;\n if ( level != 0 ) {\n i += run ;\n j = scantable [ i ] ;\n level = ( ( level * 2 + 1 ) * qscale * quant_matrix [ j ] ) >> 5 ;\n level = ( level - 1 ) | 1 ;\n level = ( level ^ SHOW_SBITS ( re , & s -> gb , 1 ) ) - SHOW_SBITS ( re , & s -> gb , 1 ) ;\n SKIP_BITS ( re , & s -> gb , 1 ) ;\n }\n else {\n run = SHOW_UBITS ( re , & s -> gb , 6 ) + 1 ;\n LAST_SKIP_BITS ( re , & s -> gb , 6 ) ;\n UPDATE_CACHE ( re , & s -> gb ) ;\n level = SHOW_SBITS ( re , & s -> gb , 8 ) ;\n SKIP_BITS ( re , & s -> gb , 8 ) ;\n if ( level == - 128 ) {\n level = SHOW_UBITS ( re , & s -> gb , 8 ) - 256 ;\n SKIP_BITS ( re , & s -> gb , 8 ) ;\n }\n else if ( level == 0 ) {\n level = SHOW_UBITS ( re , & s -> gb , 8 ) ;\n SKIP_BITS ( re , & s -> gb , 8 ) ;\n }\n i += run ;\n j = scantable [ i ] ;\n if ( level < 0 ) {\n level = - level ;\n level = ( ( level * 2 + 1 ) * qscale * quant_matrix [ j ] ) >> 5 ;\n level = ( level - 1 ) | 1 ;\n level = - level ;\n }\n else {\n level = ( ( level * 2 + 1 ) * qscale * quant_matrix [ j ] ) >> 5 ;\n level = ( level - 1 ) | 1 ;\n }\n }\n if ( i > 63 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"ac-tex damaged at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n block [ j ] = level ;\n if ( ( ( int32_t ) GET_CACHE ( re , & s -> gb ) ) <= ( int32_t ) 0xBFFFFFFF ) break ;\n UPDATE_CACHE ( re , & s -> gb ) ;\n }\n end : LAST_SKIP_BITS ( re , & s -> gb , 2 ) ;\n CLOSE_READER ( re , & s -> gb ) ;\n }\n s -> block_last_index [ n ] = i ;\n return 0 ;\n }"}
{"idx": 6751, "target": 0, "func": "static void freelacons ( struct subre * subs , int n ) {\n struct subre * sub ;\n int i ;\n assert ( n > 0 ) ;\n for ( sub = subs + 1 , i = n - 1 ;\n i > 0 ;\n sub ++ , i -- ) if ( ! NULLCNFA ( sub -> cnfa ) ) freecnfa ( & sub -> cnfa ) ;\n FREE ( subs ) ;\n }"}
{"idx": 6752, "target": 0, "func": "static void encode_source_params ( VC2EncContext * s ) {\n encode_frame_size ( s ) ;\n encode_sample_fmt ( s ) ;\n encode_scan_format ( s ) ;\n encode_frame_rate ( s ) ;\n encode_aspect_ratio ( s ) ;\n encode_clean_area ( s ) ;\n encode_signal_range ( s ) ;\n encode_color_spec ( s ) ;\n }"}
{"idx": 6753, "target": 0, "func": "static void event_process_active ( struct event_base * base ) {\n struct event * ev ;\n struct event_list * activeq = NULL ;\n int i ;\n short ncalls ;\n for ( i = 0 ;\n i < base -> nactivequeues ;\n ++ i ) {\n if ( TAILQ_FIRST ( base -> activequeues [ i ] ) != NULL ) {\n activeq = base -> activequeues [ i ] ;\n break ;\n }\n }\n assert ( activeq != NULL ) ;\n for ( ev = TAILQ_FIRST ( activeq ) ;\n ev ;\n ev = TAILQ_FIRST ( activeq ) ) {\n if ( ev -> ev_events & EV_PERSIST ) event_queue_remove ( base , ev , EVLIST_ACTIVE ) ;\n else event_del ( ev ) ;\n ncalls = ev -> ev_ncalls ;\n ev -> ev_pncalls = & ncalls ;\n while ( ncalls ) {\n ncalls -- ;\n ev -> ev_ncalls = ncalls ;\n ( * ev -> ev_callback ) ( ( int ) ev -> ev_fd , ev -> ev_res , ev -> ev_arg ) ;\n if ( event_gotsig || base -> event_break ) return ;\n }\n }\n }"}
{"idx": 6754, "target": 0, "func": "static void hb_shape_plan_plan ( hb_shape_plan_t * shape_plan , const hb_feature_t * user_features , unsigned int num_user_features , const char * const * shaper_list ) {\n DEBUG_MSG_FUNC ( SHAPE_PLAN , shape_plan , \"num_features=%d shaper_list=%p\" , num_user_features , shaper_list ) ;\n const hb_shaper_pair_t * shapers = _hb_shapers_get ( ) ;\n # define HB_SHAPER_PLAN ( shaper ) HB_STMT_START {\n if ( hb_ ## shaper ## _shaper_face_data_ensure ( shape_plan -> face_unsafe ) ) {\n HB_SHAPER_DATA ( shaper , shape_plan ) = HB_SHAPER_DATA_CREATE_FUNC ( shaper , shape_plan ) ( shape_plan , user_features , num_user_features ) ;\n shape_plan -> shaper_func = _hb_ ## shaper ## _shape ;\n shape_plan -> shaper_name = # shaper ;\n return ;\n }\n }\n HB_STMT_END if ( likely ( ! shaper_list ) ) {\n for ( unsigned int i = 0 ;\n i < HB_SHAPERS_COUNT ;\n i ++ ) if ( 0 ) ;\n # define HB_SHAPER_IMPLEMENT ( shaper ) else if ( shapers [ i ] . func == _hb_ ## shaper ## _shape ) HB_SHAPER_PLAN ( shaper ) ;\n # include \"hb-shaper-list.hh\" # undef HB_SHAPER_IMPLEMENT }\n else {\n for ( ;\n * shaper_list ;\n shaper_list ++ ) if ( 0 ) ;\n # define HB_SHAPER_IMPLEMENT ( shaper ) else if ( 0 == strcmp ( * shaper_list , # shaper ) ) HB_SHAPER_PLAN ( shaper ) ;\n # include \"hb-shaper-list.hh\" # undef HB_SHAPER_IMPLEMENT }\n # undef HB_SHAPER_PLAN }"}
{"idx": 6755, "target": 0, "func": "void evhttp_clear_headers ( struct evkeyvalq * headers ) {\n struct evkeyval * header ;\n for ( header = TAILQ_FIRST ( headers ) ;\n header != NULL ;\n header = TAILQ_FIRST ( headers ) ) {\n TAILQ_REMOVE ( headers , header , next ) ;\n free ( header -> key ) ;\n free ( header -> value ) ;\n free ( header ) ;\n }\n }"}
{"idx": 6756, "target": 0, "func": "static void xhci_kick_epctx ( XHCIEPContext * epctx , unsigned int streamid ) {\n XHCIState * xhci = epctx -> xhci ;\n XHCIStreamContext * stctx ;\n XHCITransfer * xfer ;\n XHCIRing * ring ;\n USBEndpoint * ep = NULL ;\n uint64_t mfindex ;\n int length ;\n int i ;\n trace_usb_xhci_ep_kick ( epctx -> slotid , epctx -> epid , streamid ) ;\n assert ( ! epctx -> kick_active ) ;\n if ( ! xhci -> slots [ epctx -> slotid - 1 ] . uport || ! xhci -> slots [ epctx -> slotid - 1 ] . uport -> dev || ! xhci -> slots [ epctx -> slotid - 1 ] . uport -> dev -> attached ) {\n return ;\n }\n if ( epctx -> retry ) {\n XHCITransfer * xfer = epctx -> retry ;\n trace_usb_xhci_xfer_retry ( xfer ) ;\n assert ( xfer -> running_retry ) ;\n if ( xfer -> timed_xfer ) {\n mfindex = xhci_mfindex_get ( xhci ) ;\n xhci_check_intr_iso_kick ( xhci , xfer , epctx , mfindex ) ;\n if ( xfer -> running_retry ) {\n return ;\n }\n xfer -> timed_xfer = 0 ;\n xfer -> running_retry = 1 ;\n }\n if ( xfer -> iso_xfer ) {\n if ( xhci_setup_packet ( xfer ) < 0 ) {\n return ;\n }\n usb_handle_packet ( xfer -> packet . ep -> dev , & xfer -> packet ) ;\n assert ( xfer -> packet . status != USB_RET_NAK ) ;\n xhci_try_complete_packet ( xfer ) ;\n }\n else {\n if ( xhci_setup_packet ( xfer ) < 0 ) {\n return ;\n }\n usb_handle_packet ( xfer -> packet . ep -> dev , & xfer -> packet ) ;\n if ( xfer -> packet . status == USB_RET_NAK ) {\n return ;\n }\n xhci_try_complete_packet ( xfer ) ;\n }\n assert ( ! xfer -> running_retry ) ;\n if ( xfer -> complete ) {\n xhci_ep_free_xfer ( epctx -> retry ) ;\n }\n epctx -> retry = NULL ;\n }\n if ( epctx -> state == EP_HALTED ) {\n DPRINTF ( \"xhci: ep halted, not running schedule\\n\" ) ;\n return ;\n }\n if ( epctx -> nr_pstreams ) {\n uint32_t err ;\n stctx = xhci_find_stream ( epctx , streamid , & err ) ;\n if ( stctx == NULL ) {\n return ;\n }\n ring = & stctx -> ring ;\n xhci_set_ep_state ( xhci , epctx , stctx , EP_RUNNING ) ;\n }\n else {\n ring = & epctx -> ring ;\n streamid = 0 ;\n xhci_set_ep_state ( xhci , epctx , NULL , EP_RUNNING ) ;\n }\n assert ( ring -> dequeue != 0 ) ;\n epctx -> kick_active ++ ;\n while ( 1 ) {\n length = xhci_ring_chain_length ( xhci , ring ) ;\n if ( length <= 0 ) {\n break ;\n }\n xfer = xhci_ep_alloc_xfer ( epctx , length ) ;\n if ( xfer == NULL ) {\n break ;\n }\n for ( i = 0 ;\n i < length ;\n i ++ ) {\n TRBType type ;\n type = xhci_ring_fetch ( xhci , ring , & xfer -> trbs [ i ] , NULL ) ;\n assert ( type ) ;\n }\n xfer -> streamid = streamid ;\n if ( epctx -> epid == 1 ) {\n xhci_fire_ctl_transfer ( xhci , xfer ) ;\n }\n else {\n xhci_fire_transfer ( xhci , xfer , epctx ) ;\n }\n if ( xfer -> complete ) {\n xhci_ep_free_xfer ( xfer ) ;\n xfer = NULL ;\n }\n if ( epctx -> state == EP_HALTED ) {\n break ;\n }\n if ( xfer != NULL && xfer -> running_retry ) {\n DPRINTF ( \"xhci: xfer nacked, stopping schedule\\n\" ) ;\n epctx -> retry = xfer ;\n break ;\n }\n }\n epctx -> kick_active -- ;\n ep = xhci_epid_to_usbep ( epctx ) ;\n if ( ep ) {\n usb_device_flush_ep_queue ( ep -> dev , ep ) ;\n }\n }"}
{"idx": 6757, "target": 0, "func": "static void print_version ( void ) {\n printf ( \"%s Ver %s Distrib %s, for %s (%s)\\n\" , my_progname_short , DUMP_VERSION , MYSQL_SERVER_VERSION , SYSTEM_TYPE , MACHINE_TYPE ) ;\n }"}
{"idx": 6758, "target": 0, "func": "int vp9_bigdia_search ( const MACROBLOCK * x , MV * ref_mv , int search_param , int sad_per_bit , int do_init_search , int * sad_list , const vp9_variance_fn_ptr_t * vfp , int use_mvcost , const MV * center_mv , MV * best_mv ) {\n static const int bigdia_num_candidates [ MAX_PATTERN_SCALES ] = {\n 4 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , }\n ;\n static const MV bigdia_candidates [ MAX_PATTERN_SCALES ] [ MAX_PATTERN_CANDIDATES ] = {\n {\n {\n 0 , - 1 }\n , {\n 1 , 0 }\n , {\n 0 , 1 }\n , {\n - 1 , 0 }\n }\n , {\n {\n - 1 , - 1 }\n , {\n 0 , - 2 }\n , {\n 1 , - 1 }\n , {\n 2 , 0 }\n , {\n 1 , 1 }\n , {\n 0 , 2 }\n , {\n - 1 , 1 }\n , {\n - 2 , 0 }\n }\n , {\n {\n - 2 , - 2 }\n , {\n 0 , - 4 }\n , {\n 2 , - 2 }\n , {\n 4 , 0 }\n , {\n 2 , 2 }\n , {\n 0 , 4 }\n , {\n - 2 , 2 }\n , {\n - 4 , 0 }\n }\n , {\n {\n - 4 , - 4 }\n , {\n 0 , - 8 }\n , {\n 4 , - 4 }\n , {\n 8 , 0 }\n , {\n 4 , 4 }\n , {\n 0 , 8 }\n , {\n - 4 , 4 }\n , {\n - 8 , 0 }\n }\n , {\n {\n - 8 , - 8 }\n , {\n 0 , - 16 }\n , {\n 8 , - 8 }\n , {\n 16 , 0 }\n , {\n 8 , 8 }\n , {\n 0 , 16 }\n , {\n - 8 , 8 }\n , {\n - 16 , 0 }\n }\n , {\n {\n - 16 , - 16 }\n , {\n 0 , - 32 }\n , {\n 16 , - 16 }\n , {\n 32 , 0 }\n , {\n 16 , 16 }\n , {\n 0 , 32 }\n , {\n - 16 , 16 }\n , {\n - 32 , 0 }\n }\n , {\n {\n - 32 , - 32 }\n , {\n 0 , - 64 }\n , {\n 32 , - 32 }\n , {\n 64 , 0 }\n , {\n 32 , 32 }\n , {\n 0 , 64 }\n , {\n - 32 , 32 }\n , {\n - 64 , 0 }\n }\n , {\n {\n - 64 , - 64 }\n , {\n 0 , - 128 }\n , {\n 64 , - 64 }\n , {\n 128 , 0 }\n , {\n 64 , 64 }\n , {\n 0 , 128 }\n , {\n - 64 , 64 }\n , {\n - 128 , 0 }\n }\n , {\n {\n - 128 , - 128 }\n , {\n 0 , - 256 }\n , {\n 128 , - 128 }\n , {\n 256 , 0 }\n , {\n 128 , 128 }\n , {\n 0 , 256 }\n , {\n - 128 , 128 }\n , {\n - 256 , 0 }\n }\n , {\n {\n - 256 , - 256 }\n , {\n 0 , - 512 }\n , {\n 256 , - 256 }\n , {\n 512 , 0 }\n , {\n 256 , 256 }\n , {\n 0 , 512 }\n , {\n - 256 , 256 }\n , {\n - 512 , 0 }\n }\n , {\n {\n - 512 , - 512 }\n , {\n 0 , - 1024 }\n , {\n 512 , - 512 }\n , {\n 1024 , 0 }\n , {\n 512 , 512 }\n , {\n 0 , 1024 }\n , {\n - 512 , 512 }\n , {\n - 1024 , 0 }\n }\n , }\n ;\n return vp9_pattern_search_sad ( x , ref_mv , search_param , sad_per_bit , do_init_search , sad_list , vfp , use_mvcost , center_mv , best_mv , bigdia_num_candidates , bigdia_candidates ) ;\n }"}
{"idx": 6759, "target": 0, "func": "static int32_t _appendKeywords ( ULanguageTag * langtag , char * appendAt , int32_t capacity , UErrorCode * status ) {\n int32_t reslen = 0 ;\n int32_t i , n ;\n int32_t len ;\n ExtensionListEntry * kwdFirst = NULL ;\n ExtensionListEntry * kwd ;\n const char * key , * type ;\n char * kwdBuf = NULL ;\n int32_t kwdBufLength = capacity ;\n UBool posixVariant = FALSE ;\n if ( U_FAILURE ( * status ) ) {\n return 0 ;\n }\n kwdBuf = ( char * ) uprv_malloc ( kwdBufLength ) ;\n if ( kwdBuf == NULL ) {\n * status = U_MEMORY_ALLOCATION_ERROR ;\n return 0 ;\n }\n if ( ultag_getVariantsSize ( langtag ) ) {\n posixVariant = TRUE ;\n }\n n = ultag_getExtensionsSize ( langtag ) ;\n for ( i = 0 ;\n i < n ;\n i ++ ) {\n key = ultag_getExtensionKey ( langtag , i ) ;\n type = ultag_getExtensionValue ( langtag , i ) ;\n if ( * key == LDMLEXT ) {\n _appendLDMLExtensionAsKeywords ( type , & kwdFirst , kwdBuf , kwdBufLength , & posixVariant , status ) ;\n if ( U_FAILURE ( * status ) ) {\n break ;\n }\n }\n else {\n kwd = ( ExtensionListEntry * ) uprv_malloc ( sizeof ( ExtensionListEntry ) ) ;\n if ( kwd == NULL ) {\n * status = U_MEMORY_ALLOCATION_ERROR ;\n break ;\n }\n kwd -> key = key ;\n kwd -> value = type ;\n if ( ! _addExtensionToList ( & kwdFirst , kwd , FALSE ) ) {\n uprv_free ( kwd ) ;\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n break ;\n }\n }\n }\n if ( U_SUCCESS ( * status ) ) {\n type = ultag_getPrivateUse ( langtag ) ;\n if ( ( int32_t ) uprv_strlen ( type ) > 0 ) {\n kwd = ( ExtensionListEntry * ) uprv_malloc ( sizeof ( ExtensionListEntry ) ) ;\n if ( kwd == NULL ) {\n * status = U_MEMORY_ALLOCATION_ERROR ;\n }\n else {\n kwd -> key = PRIVATEUSE_KEY ;\n kwd -> value = type ;\n if ( ! _addExtensionToList ( & kwdFirst , kwd , FALSE ) ) {\n uprv_free ( kwd ) ;\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n }\n }\n }\n }\n if ( U_SUCCESS ( * status ) && posixVariant ) {\n len = ( int32_t ) uprv_strlen ( _POSIX ) ;\n if ( reslen < capacity ) {\n uprv_memcpy ( appendAt + reslen , _POSIX , uprv_min ( len , capacity - reslen ) ) ;\n }\n reslen += len ;\n }\n if ( U_SUCCESS ( * status ) && kwdFirst != NULL ) {\n UBool firstValue = TRUE ;\n kwd = kwdFirst ;\n do {\n if ( reslen < capacity ) {\n if ( firstValue ) {\n * ( appendAt + reslen ) = LOCALE_EXT_SEP ;\n firstValue = FALSE ;\n }\n else {\n * ( appendAt + reslen ) = LOCALE_KEYWORD_SEP ;\n }\n }\n reslen ++ ;\n len = ( int32_t ) uprv_strlen ( kwd -> key ) ;\n if ( reslen < capacity ) {\n uprv_memcpy ( appendAt + reslen , kwd -> key , uprv_min ( len , capacity - reslen ) ) ;\n }\n reslen += len ;\n if ( reslen < capacity ) {\n * ( appendAt + reslen ) = LOCALE_KEY_TYPE_SEP ;\n }\n reslen ++ ;\n len = ( int32_t ) uprv_strlen ( kwd -> value ) ;\n if ( reslen < capacity ) {\n uprv_memcpy ( appendAt + reslen , kwd -> value , uprv_min ( len , capacity - reslen ) ) ;\n }\n reslen += len ;\n kwd = kwd -> next ;\n }\n while ( kwd ) ;\n }\n kwd = kwdFirst ;\n while ( kwd != NULL ) {\n ExtensionListEntry * tmpKwd = kwd -> next ;\n uprv_free ( kwd ) ;\n kwd = tmpKwd ;\n }\n uprv_free ( kwdBuf ) ;\n if ( U_FAILURE ( * status ) ) {\n return 0 ;\n }\n return u_terminateChars ( appendAt , capacity , reslen , status ) ;\n }"}
{"idx": 6760, "target": 1, "func": "void * merge_directory_configs ( apr_pool_t * mp , void * _parent , void * _child ) {\n directory_config * parent = ( directory_config * ) _parent ;\n directory_config * child = ( directory_config * ) _child ;\n directory_config * merged = create_directory_config ( mp , NULL ) ;\n # ifdef DEBUG_CONF ap_log_perror ( APLOG_MARK , APLOG_STARTUP | APLOG_NOERRNO , 0 , mp , \"Merge parent %pp child %pp RESULT %pp\" , _parent , _child , merged ) ;\n # endif if ( merged == NULL ) return NULL ;\n merged -> is_enabled = ( child -> is_enabled == NOT_SET ? parent -> is_enabled : child -> is_enabled ) ;\n merged -> reqbody_access = ( child -> reqbody_access == NOT_SET ? parent -> reqbody_access : child -> reqbody_access ) ;\n merged -> reqbody_buffering = ( child -> reqbody_buffering == NOT_SET ? parent -> reqbody_buffering : child -> reqbody_buffering ) ;\n merged -> reqbody_inmemory_limit = ( child -> reqbody_inmemory_limit == NOT_SET ? parent -> reqbody_inmemory_limit : child -> reqbody_inmemory_limit ) ;\n merged -> reqbody_limit = ( child -> reqbody_limit == NOT_SET ? parent -> reqbody_limit : child -> reqbody_limit ) ;\n merged -> reqbody_no_files_limit = ( child -> reqbody_no_files_limit == NOT_SET ? parent -> reqbody_no_files_limit : child -> reqbody_no_files_limit ) ;\n merged -> resbody_access = ( child -> resbody_access == NOT_SET ? parent -> resbody_access : child -> resbody_access ) ;\n merged -> of_limit = ( child -> of_limit == NOT_SET ? parent -> of_limit : child -> of_limit ) ;\n merged -> if_limit_action = ( child -> if_limit_action == NOT_SET ? parent -> if_limit_action : child -> if_limit_action ) ;\n merged -> of_limit_action = ( child -> of_limit_action == NOT_SET ? parent -> of_limit_action : child -> of_limit_action ) ;\n merged -> reqintercept_oe = ( child -> reqintercept_oe == NOT_SET ? parent -> reqintercept_oe : child -> reqintercept_oe ) ;\n if ( child -> of_mime_types != NOT_SET_P ) {\n if ( child -> of_mime_types_cleared == 1 ) {\n merged -> of_mime_types = child -> of_mime_types ;\n merged -> of_mime_types_cleared = 1 ;\n }\n else {\n if ( parent -> of_mime_types == NOT_SET_P ) {\n merged -> of_mime_types = child -> of_mime_types ;\n merged -> of_mime_types_cleared = NOT_SET ;\n }\n else {\n merged -> of_mime_types = apr_table_overlay ( mp , parent -> of_mime_types , child -> of_mime_types ) ;\n if ( merged -> of_mime_types == NULL ) return NULL ;\n }\n }\n }\n else {\n if ( child -> of_mime_types_cleared == 1 ) {\n merged -> of_mime_types_cleared = 1 ;\n }\n else {\n merged -> of_mime_types = parent -> of_mime_types ;\n merged -> of_mime_types_cleared = parent -> of_mime_types_cleared ;\n }\n }\n if ( child -> debuglog_fd == NOT_SET_P ) {\n merged -> debuglog_name = parent -> debuglog_name ;\n merged -> debuglog_fd = parent -> debuglog_fd ;\n }\n else {\n merged -> debuglog_name = child -> debuglog_name ;\n merged -> debuglog_fd = child -> debuglog_fd ;\n }\n merged -> debuglog_level = ( child -> debuglog_level == NOT_SET ? parent -> debuglog_level : child -> debuglog_level ) ;\n merged -> cookie_format = ( child -> cookie_format == NOT_SET ? parent -> cookie_format : child -> cookie_format ) ;\n merged -> argument_separator = ( child -> argument_separator == NOT_SET ? parent -> argument_separator : child -> argument_separator ) ;\n merged -> cookiev0_separator = ( child -> cookiev0_separator == NOT_SET_P ? parent -> cookiev0_separator : child -> cookiev0_separator ) ;\n if ( ( child -> rule_inheritance == NOT_SET ) || ( child -> rule_inheritance == 1 ) ) {\n merged -> rule_inheritance = parent -> rule_inheritance ;\n if ( ( child -> ruleset == NULL ) && ( parent -> ruleset == NULL ) ) {\n # ifdef DEBUG_CONF ap_log_perror ( APLOG_MARK , APLOG_STARTUP | APLOG_NOERRNO , 0 , mp , \"No rules in this context.\" ) ;\n # endif }\n else if ( child -> ruleset == NULL ) {\n # ifdef DEBUG_CONF ap_log_perror ( APLOG_MARK , APLOG_STARTUP | APLOG_NOERRNO , 0 , mp , \"Using parent rules in this context.\" ) ;\n # endif merged -> ruleset = msre_ruleset_create ( parent -> ruleset -> engine , mp ) ;\n copy_rules ( mp , parent -> ruleset , merged -> ruleset , child -> rule_exceptions ) ;\n }\n else if ( parent -> ruleset == NULL ) {\n # ifdef DEBUG_CONF ap_log_perror ( APLOG_MARK , APLOG_STARTUP | APLOG_NOERRNO , 0 , mp , \"Using child rules in this context.\" ) ;\n # endif merged -> ruleset = msre_ruleset_create ( child -> ruleset -> engine , mp ) ;\n merged -> ruleset -> phase_request_headers = apr_array_copy ( mp , child -> ruleset -> phase_request_headers ) ;\n merged -> ruleset -> phase_request_body = apr_array_copy ( mp , child -> ruleset -> phase_request_body ) ;\n merged -> ruleset -> phase_response_headers = apr_array_copy ( mp , child -> ruleset -> phase_response_headers ) ;\n merged -> ruleset -> phase_response_body = apr_array_copy ( mp , child -> ruleset -> phase_response_body ) ;\n merged -> ruleset -> phase_logging = apr_array_copy ( mp , child -> ruleset -> phase_logging ) ;\n }\n else {\n # ifdef DEBUG_CONF ap_log_perror ( APLOG_MARK , APLOG_STARTUP | APLOG_NOERRNO , 0 , mp , \"Using parent then child rules in this context.\" ) ;\n # endif merged -> ruleset = msre_ruleset_create ( parent -> ruleset -> engine , mp ) ;\n copy_rules ( mp , parent -> ruleset , merged -> ruleset , child -> rule_exceptions ) ;\n apr_array_cat ( merged -> ruleset -> phase_request_headers , child -> ruleset -> phase_request_headers ) ;\n apr_array_cat ( merged -> ruleset -> phase_request_body , child -> ruleset -> phase_request_body ) ;\n apr_array_cat ( merged -> ruleset -> phase_response_headers , child -> ruleset -> phase_response_headers ) ;\n apr_array_cat ( merged -> ruleset -> phase_response_body , child -> ruleset -> phase_response_body ) ;\n apr_array_cat ( merged -> ruleset -> phase_logging , child -> ruleset -> phase_logging ) ;\n }\n }\n else {\n merged -> rule_inheritance = 0 ;\n if ( child -> ruleset != NULL ) {\n merged -> ruleset = msre_ruleset_create ( child -> ruleset -> engine , mp ) ;\n merged -> ruleset -> phase_request_headers = apr_array_copy ( mp , child -> ruleset -> phase_request_headers ) ;\n merged -> ruleset -> phase_request_body = apr_array_copy ( mp , child -> ruleset -> phase_request_body ) ;\n merged -> ruleset -> phase_response_headers = apr_array_copy ( mp , child -> ruleset -> phase_response_headers ) ;\n merged -> ruleset -> phase_response_body = apr_array_copy ( mp , child -> ruleset -> phase_response_body ) ;\n merged -> ruleset -> phase_logging = apr_array_copy ( mp , child -> ruleset -> phase_logging ) ;\n }\n }\n merged -> rule_exceptions = apr_array_append ( mp , parent -> rule_exceptions , child -> rule_exceptions ) ;\n merged -> hash_method = apr_array_append ( mp , parent -> hash_method , child -> hash_method ) ;\n merged -> auditlog_flag = ( child -> auditlog_flag == NOT_SET ? parent -> auditlog_flag : child -> auditlog_flag ) ;\n merged -> auditlog_type = ( child -> auditlog_type == NOT_SET ? parent -> auditlog_type : child -> auditlog_type ) ;\n merged -> max_rule_time = ( child -> max_rule_time == NOT_SET ? parent -> max_rule_time : child -> max_rule_time ) ;\n merged -> auditlog_dirperms = ( child -> auditlog_dirperms == NOT_SET ? parent -> auditlog_dirperms : child -> auditlog_dirperms ) ;\n merged -> auditlog_fileperms = ( child -> auditlog_fileperms == NOT_SET ? parent -> auditlog_fileperms : child -> auditlog_fileperms ) ;\n if ( child -> auditlog_fd != NOT_SET_P ) {\n merged -> auditlog_fd = child -> auditlog_fd ;\n merged -> auditlog_name = child -> auditlog_name ;\n }\n else {\n merged -> auditlog_fd = parent -> auditlog_fd ;\n merged -> auditlog_name = parent -> auditlog_name ;\n }\n if ( child -> auditlog2_fd != NOT_SET_P ) {\n merged -> auditlog2_fd = child -> auditlog2_fd ;\n merged -> auditlog2_name = child -> auditlog2_name ;\n }\n else {\n merged -> auditlog2_fd = parent -> auditlog2_fd ;\n merged -> auditlog2_name = parent -> auditlog2_name ;\n }\n merged -> auditlog_storage_dir = ( child -> auditlog_storage_dir == NOT_SET_P ? parent -> auditlog_storage_dir : child -> auditlog_storage_dir ) ;\n merged -> auditlog_parts = ( child -> auditlog_parts == NOT_SET_P ? parent -> auditlog_parts : child -> auditlog_parts ) ;\n merged -> auditlog_relevant_regex = ( child -> auditlog_relevant_regex == NOT_SET_P ? parent -> auditlog_relevant_regex : child -> auditlog_relevant_regex ) ;\n merged -> tmp_dir = ( child -> tmp_dir == NOT_SET_P ? parent -> tmp_dir : child -> tmp_dir ) ;\n merged -> upload_dir = ( child -> upload_dir == NOT_SET_P ? parent -> upload_dir : child -> upload_dir ) ;\n merged -> upload_keep_files = ( child -> upload_keep_files == NOT_SET ? parent -> upload_keep_files : child -> upload_keep_files ) ;\n merged -> upload_validates_files = ( child -> upload_validates_files == NOT_SET ? parent -> upload_validates_files : child -> upload_validates_files ) ;\n merged -> upload_filemode = ( child -> upload_filemode == NOT_SET ? parent -> upload_filemode : child -> upload_filemode ) ;\n merged -> upload_file_limit = ( child -> upload_file_limit == NOT_SET ? parent -> upload_file_limit : child -> upload_file_limit ) ;\n merged -> data_dir = ( child -> data_dir == NOT_SET_P ? parent -> data_dir : child -> data_dir ) ;\n merged -> webappid = ( child -> webappid == NOT_SET_P ? parent -> webappid : child -> webappid ) ;\n merged -> sensor_id = ( child -> sensor_id == NOT_SET_P ? parent -> sensor_id : child -> sensor_id ) ;\n merged -> httpBlkey = ( child -> httpBlkey == NOT_SET_P ? parent -> httpBlkey : child -> httpBlkey ) ;\n merged -> content_injection_enabled = ( child -> content_injection_enabled == NOT_SET ? parent -> content_injection_enabled : child -> content_injection_enabled ) ;\n merged -> stream_inbody_inspection = ( child -> stream_inbody_inspection == NOT_SET ? parent -> stream_inbody_inspection : child -> stream_inbody_inspection ) ;\n merged -> stream_outbody_inspection = ( child -> stream_outbody_inspection == NOT_SET ? parent -> stream_outbody_inspection : child -> stream_outbody_inspection ) ;\n merged -> geo = ( child -> geo == NOT_SET_P ? parent -> geo : child -> geo ) ;\n merged -> gsb = ( child -> gsb == NOT_SET_P ? parent -> gsb : child -> gsb ) ;\n merged -> u_map = ( child -> u_map == NOT_SET_P ? parent -> u_map : child -> u_map ) ;\n merged -> cache_trans = ( child -> cache_trans == NOT_SET ? parent -> cache_trans : child -> cache_trans ) ;\n merged -> cache_trans_incremental = ( child -> cache_trans_incremental == NOT_SET ? parent -> cache_trans_incremental : child -> cache_trans_incremental ) ;\n merged -> cache_trans_min = ( child -> cache_trans_min == ( apr_size_t ) NOT_SET ? parent -> cache_trans_min : child -> cache_trans_min ) ;\n merged -> cache_trans_max = ( child -> cache_trans_max == ( apr_size_t ) NOT_SET ? parent -> cache_trans_max : child -> cache_trans_max ) ;\n merged -> cache_trans_maxitems = ( child -> cache_trans_maxitems == ( apr_size_t ) NOT_SET ? parent -> cache_trans_maxitems : child -> cache_trans_maxitems ) ;\n merged -> component_signatures = apr_array_append ( mp , parent -> component_signatures , child -> component_signatures ) ;\n merged -> request_encoding = ( child -> request_encoding == NOT_SET_P ? parent -> request_encoding : child -> request_encoding ) ;\n merged -> disable_backend_compression = ( child -> disable_backend_compression == NOT_SET ? parent -> disable_backend_compression : child -> disable_backend_compression ) ;\n merged -> col_timeout = ( child -> col_timeout == NOT_SET ? parent -> col_timeout : child -> col_timeout ) ;\n merged -> crypto_key = ( child -> crypto_key == NOT_SET_P ? parent -> crypto_key : child -> crypto_key ) ;\n merged -> crypto_key_len = ( child -> crypto_key_len == NOT_SET ? parent -> crypto_key_len : child -> crypto_key_len ) ;\n merged -> crypto_key_add = ( child -> crypto_key_add == NOT_SET ? parent -> crypto_key_add : child -> crypto_key_add ) ;\n merged -> crypto_param_name = ( child -> crypto_param_name == NOT_SET_P ? parent -> crypto_param_name : child -> crypto_param_name ) ;\n merged -> hash_is_enabled = ( child -> hash_is_enabled == NOT_SET ? parent -> hash_is_enabled : child -> hash_is_enabled ) ;\n merged -> hash_enforcement = ( child -> hash_enforcement == NOT_SET ? parent -> hash_enforcement : child -> hash_enforcement ) ;\n merged -> crypto_hash_href_rx = ( child -> crypto_hash_href_rx == NOT_SET ? parent -> crypto_hash_href_rx : child -> crypto_hash_href_rx ) ;\n merged -> crypto_hash_faction_rx = ( child -> crypto_hash_faction_rx == NOT_SET ? parent -> crypto_hash_faction_rx : child -> crypto_hash_faction_rx ) ;\n merged -> crypto_hash_location_rx = ( child -> crypto_hash_location_rx == NOT_SET ? parent -> crypto_hash_location_rx : child -> crypto_hash_location_rx ) ;\n merged -> crypto_hash_iframesrc_rx = ( child -> crypto_hash_iframesrc_rx == NOT_SET ? parent -> crypto_hash_iframesrc_rx : child -> crypto_hash_iframesrc_rx ) ;\n merged -> crypto_hash_framesrc_rx = ( child -> crypto_hash_framesrc_rx == NOT_SET ? parent -> crypto_hash_framesrc_rx : child -> crypto_hash_framesrc_rx ) ;\n merged -> crypto_hash_href_pm = ( child -> crypto_hash_href_pm == NOT_SET ? parent -> crypto_hash_href_pm : child -> crypto_hash_href_pm ) ;\n merged -> crypto_hash_faction_pm = ( child -> crypto_hash_faction_pm == NOT_SET ? parent -> crypto_hash_faction_pm : child -> crypto_hash_faction_pm ) ;\n merged -> crypto_hash_location_pm = ( child -> crypto_hash_location_pm == NOT_SET ? parent -> crypto_hash_location_pm : child -> crypto_hash_location_pm ) ;\n merged -> crypto_hash_iframesrc_pm = ( child -> crypto_hash_iframesrc_pm == NOT_SET ? parent -> crypto_hash_iframesrc_pm : child -> crypto_hash_iframesrc_pm ) ;\n merged -> crypto_hash_framesrc_pm = ( child -> crypto_hash_framesrc_pm == NOT_SET ? parent -> crypto_hash_framesrc_pm : child -> crypto_hash_framesrc_pm ) ;\n return merged ;\n }"}
{"idx": 6761, "target": 0, "func": "static int evdns_request_transmit_to ( struct request * req , struct nameserver * server ) {\n struct sockaddr_in sin ;\n int r ;\n memset ( & sin , 0 , sizeof ( sin ) ) ;\n sin . sin_addr . s_addr = req -> ns -> address ;\n sin . sin_port = req -> ns -> port ;\n sin . sin_family = AF_INET ;\n r = sendto ( server -> socket , req -> request , req -> request_len , 0 , ( struct sockaddr * ) & sin , sizeof ( sin ) ) ;\n if ( r < 0 ) {\n int err = last_error ( server -> socket ) ;\n if ( error_is_eagain ( err ) ) return 1 ;\n nameserver_failed ( req -> ns , strerror ( err ) ) ;\n return 2 ;\n }\n else if ( r != ( int ) req -> request_len ) {\n return 1 ;\n }\n else {\n return 0 ;\n }\n }"}
{"idx": 6762, "target": 0, "func": "static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 6763, "target": 0, "func": "static void pxa2xx_rtc_write ( void * opaque , hwaddr addr , uint64_t value64 , unsigned size ) {\n PXA2xxRTCState * s = ( PXA2xxRTCState * ) opaque ;\n uint32_t value = value64 ;\n switch ( addr ) {\n case RTTR : if ( ! ( s -> rttr & ( 1 << 31 ) ) ) {\n pxa2xx_rtc_hzupdate ( s ) ;\n s -> rttr = value ;\n pxa2xx_rtc_alarm_update ( s , s -> rtsr ) ;\n }\n break ;\n case RTSR : if ( ( s -> rtsr ^ value ) & ( 1 << 15 ) ) pxa2xx_rtc_piupdate ( s ) ;\n if ( ( s -> rtsr ^ value ) & ( 1 << 12 ) ) pxa2xx_rtc_swupdate ( s ) ;\n if ( ( ( s -> rtsr ^ value ) & 0x4aac ) | ( value & ~ 0xdaac ) ) pxa2xx_rtc_alarm_update ( s , value ) ;\n s -> rtsr = ( value & 0xdaac ) | ( s -> rtsr & ~ ( value & ~ 0xdaac ) ) ;\n pxa2xx_rtc_int_update ( s ) ;\n break ;\n case RTAR : s -> rtar = value ;\n pxa2xx_rtc_alarm_update ( s , s -> rtsr ) ;\n break ;\n case RDAR1 : s -> rdar1 = value ;\n pxa2xx_rtc_alarm_update ( s , s -> rtsr ) ;\n break ;\n case RDAR2 : s -> rdar2 = value ;\n pxa2xx_rtc_alarm_update ( s , s -> rtsr ) ;\n break ;\n case RYAR1 : s -> ryar1 = value ;\n pxa2xx_rtc_alarm_update ( s , s -> rtsr ) ;\n break ;\n case RYAR2 : s -> ryar2 = value ;\n pxa2xx_rtc_alarm_update ( s , s -> rtsr ) ;\n break ;\n case SWAR1 : pxa2xx_rtc_swupdate ( s ) ;\n s -> swar1 = value ;\n s -> last_swcr = 0 ;\n pxa2xx_rtc_alarm_update ( s , s -> rtsr ) ;\n break ;\n case SWAR2 : s -> swar2 = value ;\n pxa2xx_rtc_alarm_update ( s , s -> rtsr ) ;\n break ;\n case PIAR : s -> piar = value ;\n pxa2xx_rtc_alarm_update ( s , s -> rtsr ) ;\n break ;\n case RCNR : pxa2xx_rtc_hzupdate ( s ) ;\n s -> last_rcnr = value ;\n pxa2xx_rtc_alarm_update ( s , s -> rtsr ) ;\n break ;\n case RDCR : pxa2xx_rtc_hzupdate ( s ) ;\n s -> last_rdcr = value ;\n pxa2xx_rtc_alarm_update ( s , s -> rtsr ) ;\n break ;\n case RYCR : s -> last_rycr = value ;\n break ;\n case SWCR : pxa2xx_rtc_swupdate ( s ) ;\n s -> last_swcr = value ;\n pxa2xx_rtc_alarm_update ( s , s -> rtsr ) ;\n break ;\n case RTCPICR : pxa2xx_rtc_piupdate ( s ) ;\n s -> last_rtcpicr = value & 0xffff ;\n pxa2xx_rtc_alarm_update ( s , s -> rtsr ) ;\n break ;\n default : printf ( \"%s: Bad register \" REG_FMT \"\\n\" , __FUNCTION__ , addr ) ;\n }\n }"}
{"idx": 6764, "target": 0, "func": "static bool e1000e_tx_pkt_send ( E1000ECore * core , struct e1000e_tx * tx , int queue_index ) {\n int target_queue = MIN ( core -> max_queue_num , queue_index ) ;\n NetClientState * queue = qemu_get_subqueue ( core -> owner_nic , target_queue ) ;\n e1000e_setup_tx_offloads ( core , tx ) ;\n net_tx_pkt_dump ( tx -> tx_pkt ) ;\n if ( ( core -> phy [ 0 ] [ PHY_CTRL ] & MII_CR_LOOPBACK ) || ( ( core -> mac [ RCTL ] & E1000_RCTL_LBM_MAC ) == E1000_RCTL_LBM_MAC ) ) {\n return net_tx_pkt_send_loopback ( tx -> tx_pkt , queue ) ;\n }\n else {\n return net_tx_pkt_send ( tx -> tx_pkt , queue ) ;\n }\n }"}
{"idx": 6765, "target": 0, "func": "static void qbus_print ( Monitor * mon , BusState * bus , int indent ) {\n struct DeviceState * dev ;\n qdev_printf ( \"bus: %s\\n\" , bus -> name ) ;\n indent += 2 ;\n qdev_printf ( \"type %s\\n\" , bus -> info -> name ) ;\n QLIST_FOREACH ( dev , & bus -> children , sibling ) {\n qdev_print ( mon , dev , indent ) ;\n }\n }"}
{"idx": 6766, "target": 0, "func": "int event_base_dispatch ( struct event_base * event_base ) {\n return ( event_base_loop ( event_base , 0 ) ) ;\n }"}
{"idx": 6767, "target": 0, "func": "int virLogParseOutputs ( const char * src , virLogOutputPtr * * outputs ) {\n int ret = - 1 ;\n int at = - 1 ;\n size_t noutputs = 0 ;\n size_t i , count ;\n char * * strings = NULL ;\n virLogOutputPtr output = NULL ;\n virLogOutputPtr * list = NULL ;\n VIR_DEBUG ( \"outputs=%s\" , src ) ;\n if ( ! ( strings = virStringSplitCount ( src , \" \" , 0 , & count ) ) ) goto cleanup ;\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n if ( STREQ ( strings [ i ] , \"\" ) ) continue ;\n if ( ! ( output = virLogParseOutput ( strings [ i ] ) ) ) goto cleanup ;\n at = virLogFindOutput ( list , noutputs , output -> dest , output -> name ) ;\n if ( VIR_APPEND_ELEMENT ( list , noutputs , output ) < 0 ) {\n virLogOutputFree ( output ) ;\n goto cleanup ;\n }\n if ( at >= 0 ) {\n virLogOutputFree ( list [ at ] ) ;\n VIR_DELETE_ELEMENT ( list , at , noutputs ) ;\n }\n }\n ret = noutputs ;\n * outputs = list ;\n list = NULL ;\n cleanup : virStringListFree ( strings ) ;\n return ret ;\n }"}
{"idx": 6768, "target": 0, "func": "int NumRelids ( Node * clause ) {\n Relids varnos = pull_varnos ( clause ) ;\n int result = bms_num_members ( varnos ) ;\n bms_free ( varnos ) ;\n return result ;\n }"}
{"idx": 6769, "target": 0, "func": "static int xd3_selftest ( void ) {\n # define DO_TEST ( fn , flags , arg ) do {\n xd3_stream stream ;\n xd3_config config ;\n xd3_init_config ( & config , flags ) ;\n XPR ( NT \"testing \" # fn \"%s...\" , flags ? ( \" (\" # flags \")\" ) : \"\" ) ;\n if ( ( ret = xd3_config_stream ( & stream , & config ) == 0 ) && ( ret = test_ ## fn ( & stream , arg ) ) == 0 ) {\n XPR ( NTR \" success\\n\" ) ;\n }\n else {\n XPR ( NTR \" failed: %s: %s\\n\" , xd3_errstring ( & stream ) , xd3_mainerror ( ret ) ) ;\n }\n xd3_free_stream ( & stream ) ;\n if ( ret != 0 ) {\n goto failure ;\n }\n }\n while ( 0 ) int ret ;\n DO_TEST ( random_numbers , 0 , 0 ) ;\n DO_TEST ( decode_integer_end_of_input , 0 , 0 ) ;\n DO_TEST ( decode_integer_overflow , 0 , 0 ) ;\n DO_TEST ( encode_decode_uint32_t , 0 , 0 ) ;\n DO_TEST ( encode_decode_uint64_t , 0 , 0 ) ;\n DO_TEST ( usize_t_overflow , 0 , 0 ) ;\n DO_TEST ( forward_match , 0 , 0 ) ;\n DO_TEST ( address_cache , 0 , 0 ) ;\n IF_GENCODETBL ( DO_TEST ( address_cache , XD3_ALT_CODE_TABLE , 0 ) ) ;\n DO_TEST ( string_matching , 0 , 0 ) ;\n DO_TEST ( choose_instruction , 0 , 0 ) ;\n DO_TEST ( identical_behavior , 0 , 0 ) ;\n DO_TEST ( in_memory , 0 , 0 ) ;\n IF_GENCODETBL ( DO_TEST ( choose_instruction , XD3_ALT_CODE_TABLE , 0 ) ) ;\n IF_GENCODETBL ( DO_TEST ( encode_code_table , 0 , 0 ) ) ;\n DO_TEST ( iopt_flush_instructions , 0 , 0 ) ;\n DO_TEST ( source_cksum_offset , 0 , 0 ) ;\n DO_TEST ( decompress_single_bit_error , 0 , 3 ) ;\n DO_TEST ( decompress_single_bit_error , XD3_ADLER32 , 3 ) ;\n IF_LZMA ( DO_TEST ( decompress_single_bit_error , XD3_SEC_LZMA , 54 ) ) ;\n IF_FGK ( DO_TEST ( decompress_single_bit_error , XD3_SEC_FGK , 3 ) ) ;\n IF_DJW ( DO_TEST ( decompress_single_bit_error , XD3_SEC_DJW , 8 ) ) ;\n IF_GENCODETBL ( DO_TEST ( decompress_single_bit_error , XD3_ALT_CODE_TABLE , 224 ) ) ;\n # if SHELL_TESTS DO_TEST ( force_behavior , 0 , 0 ) ;\n DO_TEST ( stdout_behavior , 0 , 0 ) ;\n DO_TEST ( no_output , 0 , 0 ) ;\n DO_TEST ( appheader , 0 , 0 ) ;\n DO_TEST ( command_line_arguments , 0 , 0 ) ;\n # if EXTERNAL_COMPRESSION DO_TEST ( source_decompression , 0 , 0 ) ;\n DO_TEST ( externally_compressed_io , 0 , 0 ) ;\n # endif DO_TEST ( recode_command , 0 , 0 ) ;\n # endif IF_LZMA ( DO_TEST ( secondary_lzma , 0 , 1 ) ) ;\n IF_DJW ( DO_TEST ( secondary_huff , 0 , DJW_MAX_GROUPS ) ) ;\n IF_FGK ( DO_TEST ( secondary_fgk , 0 , 1 ) ) ;\n DO_TEST ( compressed_stream_overflow , 0 , 0 ) ;\n IF_LZMA ( DO_TEST ( compressed_stream_overflow , XD3_SEC_LZMA , 0 ) ) ;\n failure : test_cleanup ( ) ;\n return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE ;\n # undef DO_TEST }"}
{"idx": 6770, "target": 0, "func": "static inline int mpeg1_decode_block_intra ( MpegEncContext * s , int16_t * block , int n ) {\n int level , dc , diff , i , j , run ;\n int component ;\n RLTable * rl = & ff_rl_mpeg1 ;\n uint8_t * const scantable = s -> intra_scantable . permutated ;\n const uint16_t * quant_matrix = s -> intra_matrix ;\n const int qscale = s -> qscale ;\n component = ( n <= 3 ? 0 : n - 4 + 1 ) ;\n diff = decode_dc ( & s -> gb , component ) ;\n if ( diff >= 0xffff ) return - 1 ;\n dc = s -> last_dc [ component ] ;\n dc += diff ;\n s -> last_dc [ component ] = dc ;\n block [ 0 ] = dc * quant_matrix [ 0 ] ;\n av_dlog ( s -> avctx , \"dc=%d diff=%d\\n\" , dc , diff ) ;\n i = 0 ;\n {\n OPEN_READER ( re , & s -> gb ) ;\n for ( ;\n ;\n ) {\n UPDATE_CACHE ( re , & s -> gb ) ;\n GET_RL_VLC ( level , run , re , & s -> gb , rl -> rl_vlc [ 0 ] , TEX_VLC_BITS , 2 , 0 ) ;\n if ( level == 127 ) {\n break ;\n }\n else if ( level != 0 ) {\n i += run ;\n j = scantable [ i ] ;\n level = ( level * qscale * quant_matrix [ j ] ) >> 4 ;\n level = ( level - 1 ) | 1 ;\n level = ( level ^ SHOW_SBITS ( re , & s -> gb , 1 ) ) - SHOW_SBITS ( re , & s -> gb , 1 ) ;\n LAST_SKIP_BITS ( re , & s -> gb , 1 ) ;\n }\n else {\n run = SHOW_UBITS ( re , & s -> gb , 6 ) + 1 ;\n LAST_SKIP_BITS ( re , & s -> gb , 6 ) ;\n UPDATE_CACHE ( re , & s -> gb ) ;\n level = SHOW_SBITS ( re , & s -> gb , 8 ) ;\n SKIP_BITS ( re , & s -> gb , 8 ) ;\n if ( level == - 128 ) {\n level = SHOW_UBITS ( re , & s -> gb , 8 ) - 256 ;\n LAST_SKIP_BITS ( re , & s -> gb , 8 ) ;\n }\n else if ( level == 0 ) {\n level = SHOW_UBITS ( re , & s -> gb , 8 ) ;\n LAST_SKIP_BITS ( re , & s -> gb , 8 ) ;\n }\n i += run ;\n j = scantable [ i ] ;\n if ( level < 0 ) {\n level = - level ;\n level = ( level * qscale * quant_matrix [ j ] ) >> 4 ;\n level = ( level - 1 ) | 1 ;\n level = - level ;\n }\n else {\n level = ( level * qscale * quant_matrix [ j ] ) >> 4 ;\n level = ( level - 1 ) | 1 ;\n }\n }\n if ( i > 63 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"ac-tex damaged at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n block [ j ] = level ;\n }\n CLOSE_READER ( re , & s -> gb ) ;\n }\n s -> block_last_index [ n ] = i ;\n return 0 ;\n }"}
{"idx": 6771, "target": 0, "func": "static void vmxnet_tx_pkt_do_sw_csum ( struct VmxnetTxPkt * pkt ) {\n struct iovec * iov = & pkt -> vec [ VMXNET_TX_PKT_L2HDR_FRAG ] ;\n uint32_t csum_cntr ;\n uint16_t csum = 0 ;\n uint32_t iov_len = pkt -> payload_frags + VMXNET_TX_PKT_PL_START_FRAG - 1 ;\n uint16_t csl ;\n struct ip_header * iphdr ;\n size_t csum_offset = pkt -> virt_hdr . csum_start + pkt -> virt_hdr . csum_offset ;\n iov_from_buf ( iov , iov_len , csum_offset , & csum , sizeof csum ) ;\n csl = pkt -> payload_len ;\n csum_cntr = net_checksum_add_iov ( iov , iov_len , pkt -> virt_hdr . csum_start , csl ) ;\n iphdr = pkt -> vec [ VMXNET_TX_PKT_L3HDR_FRAG ] . iov_base ;\n csum_cntr += eth_calc_pseudo_hdr_csum ( iphdr , csl ) ;\n csum = cpu_to_be16 ( net_checksum_finish ( csum_cntr ) ) ;\n iov_from_buf ( iov , iov_len , csum_offset , & csum , sizeof csum ) ;\n }"}
{"idx": 6772, "target": 0, "func": "static void test_bug36004 ( ) {\n int rc , warning_count = 0 ;\n MYSQL_STMT * stmt ;\n DBUG_ENTER ( \"test_bug36004\" ) ;\n myheader ( \"test_bug36004\" ) ;\n rc = mysql_query ( mysql , \"drop table if exists inexistant\" ) ;\n myquery ( rc ) ;\n DIE_UNLESS ( mysql_warning_count ( mysql ) == 1 ) ;\n query_int_variable ( mysql , \"@@warning_count\" , & warning_count ) ;\n DIE_UNLESS ( warning_count ) ;\n stmt = mysql_simple_prepare ( mysql , \"select 1\" ) ;\n check_stmt ( stmt ) ;\n DIE_UNLESS ( mysql_warning_count ( mysql ) == 0 ) ;\n query_int_variable ( mysql , \"@@warning_count\" , & warning_count ) ;\n DIE_UNLESS ( warning_count ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n DIE_UNLESS ( mysql_warning_count ( mysql ) == 0 ) ;\n mysql_stmt_close ( stmt ) ;\n query_int_variable ( mysql , \"@@warning_count\" , & warning_count ) ;\n DIE_UNLESS ( warning_count ) ;\n stmt = mysql_simple_prepare ( mysql , \"drop table if exists inexistant\" ) ;\n check_stmt ( stmt ) ;\n query_int_variable ( mysql , \"@@warning_count\" , & warning_count ) ;\n DIE_UNLESS ( warning_count == 0 ) ;\n mysql_stmt_close ( stmt ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 6773, "target": 0, "func": "int ParseCaffHeaderConfig ( FILE * infile , char * infilename , char * fourcc , WavpackContext * wpc , WavpackConfig * config ) {\n uint32_t chan_chunk = 0 , channel_layout = 0 , bcount ;\n unsigned char * channel_identities = NULL ;\n unsigned char * channel_reorder = NULL ;\n int64_t total_samples = 0 , infilesize ;\n CAFFileHeader caf_file_header ;\n CAFChunkHeader caf_chunk_header ;\n CAFAudioFormat caf_audio_format ;\n int i ;\n infilesize = DoGetFileSize ( infile ) ;\n memcpy ( & caf_file_header , fourcc , 4 ) ;\n if ( ( ! DoReadFile ( infile , ( ( char * ) & caf_file_header ) + 4 , sizeof ( CAFFileHeader ) - 4 , & bcount ) || bcount != sizeof ( CAFFileHeader ) - 4 ) ) {\n error_line ( \"%s is not a valid .CAF file!\" , infilename ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n else if ( ! ( config -> qmode & QMODE_NO_STORE_WRAPPER ) && ! WavpackAddWrapper ( wpc , & caf_file_header , sizeof ( CAFFileHeader ) ) ) {\n error_line ( \"%s\" , WavpackGetErrorMessage ( wpc ) ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n WavpackBigEndianToNative ( & caf_file_header , CAFFileHeaderFormat ) ;\n if ( caf_file_header . mFileVersion != 1 ) {\n error_line ( \"%s: can't handle version %d .CAF files!\" , infilename , caf_file_header . mFileVersion ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n while ( 1 ) {\n if ( ! DoReadFile ( infile , & caf_chunk_header , sizeof ( CAFChunkHeader ) , & bcount ) || bcount != sizeof ( CAFChunkHeader ) ) {\n error_line ( \"%s is not a valid .CAF file!\" , infilename ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n else if ( ! ( config -> qmode & QMODE_NO_STORE_WRAPPER ) && ! WavpackAddWrapper ( wpc , & caf_chunk_header , sizeof ( CAFChunkHeader ) ) ) {\n error_line ( \"%s\" , WavpackGetErrorMessage ( wpc ) ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n WavpackBigEndianToNative ( & caf_chunk_header , CAFChunkHeaderFormat ) ;\n if ( ! strncmp ( caf_chunk_header . mChunkType , \"desc\" , 4 ) ) {\n int supported = TRUE ;\n if ( caf_chunk_header . mChunkSize != sizeof ( CAFAudioFormat ) || ! DoReadFile ( infile , & caf_audio_format , ( uint32_t ) caf_chunk_header . mChunkSize , & bcount ) || bcount != caf_chunk_header . mChunkSize ) {\n error_line ( \"%s is not a valid .CAF file!\" , infilename ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n else if ( ! ( config -> qmode & QMODE_NO_STORE_WRAPPER ) && ! WavpackAddWrapper ( wpc , & caf_audio_format , ( uint32_t ) caf_chunk_header . mChunkSize ) ) {\n error_line ( \"%s\" , WavpackGetErrorMessage ( wpc ) ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n WavpackBigEndianToNative ( & caf_audio_format , CAFAudioFormatFormat ) ;\n if ( debug_logging_mode ) {\n char formatstr [ 5 ] ;\n memcpy ( formatstr , caf_audio_format . mFormatID , 4 ) ;\n formatstr [ 4 ] = 0 ;\n error_line ( \"format = %s, flags = %x, sampling rate = %g\" , formatstr , caf_audio_format . mFormatFlags , caf_audio_format . mSampleRate ) ;\n error_line ( \"packet = %d bytes and %d frames\" , caf_audio_format . mBytesPerPacket , caf_audio_format . mFramesPerPacket ) ;\n error_line ( \"channels per frame = %d, bits per channel = %d\" , caf_audio_format . mChannelsPerFrame , caf_audio_format . mBitsPerChannel ) ;\n }\n if ( strncmp ( caf_audio_format . mFormatID , \"lpcm\" , 4 ) || ( caf_audio_format . mFormatFlags & ~ 3 ) ) supported = FALSE ;\n else if ( caf_audio_format . mSampleRate < 1.0 || caf_audio_format . mSampleRate > 16777215.0 || caf_audio_format . mSampleRate != floor ( caf_audio_format . mSampleRate ) ) supported = FALSE ;\n else if ( ! caf_audio_format . mChannelsPerFrame || caf_audio_format . mChannelsPerFrame > 256 ) supported = FALSE ;\n else if ( caf_audio_format . mBitsPerChannel < 1 || caf_audio_format . mBitsPerChannel > 32 || ( ( caf_audio_format . mFormatFlags & CAF_FORMAT_FLOAT ) && caf_audio_format . mBitsPerChannel != 32 ) ) supported = FALSE ;\n else if ( caf_audio_format . mFramesPerPacket != 1 || caf_audio_format . mBytesPerPacket / caf_audio_format . mChannelsPerFrame < ( caf_audio_format . mBitsPerChannel + 7 ) / 8 || caf_audio_format . mBytesPerPacket / caf_audio_format . mChannelsPerFrame > 4 || caf_audio_format . mBytesPerPacket % caf_audio_format . mChannelsPerFrame ) supported = FALSE ;\n if ( ! supported ) {\n error_line ( \"%s is an unsupported .CAF format!\" , infilename ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n config -> bytes_per_sample = caf_audio_format . mBytesPerPacket / caf_audio_format . mChannelsPerFrame ;\n config -> float_norm_exp = ( caf_audio_format . mFormatFlags & CAF_FORMAT_FLOAT ) ? 127 : 0 ;\n config -> bits_per_sample = caf_audio_format . mBitsPerChannel ;\n config -> num_channels = caf_audio_format . mChannelsPerFrame ;\n config -> sample_rate = ( int ) caf_audio_format . mSampleRate ;\n if ( ! ( caf_audio_format . mFormatFlags & CAF_FORMAT_LITTLE_ENDIAN ) && config -> bytes_per_sample > 1 ) config -> qmode |= QMODE_BIG_ENDIAN ;\n if ( config -> bytes_per_sample == 1 ) config -> qmode |= QMODE_SIGNED_BYTES ;\n if ( debug_logging_mode ) {\n if ( config -> float_norm_exp == 127 ) error_line ( \"data format: 32-bit %s-endian floating point\" , ( config -> qmode & QMODE_BIG_ENDIAN ) ? \"big\" : \"little\" ) ;\n else error_line ( \"data format: %d-bit %s-endian integers stored in %d byte(s)\" , config -> bits_per_sample , ( config -> qmode & QMODE_BIG_ENDIAN ) ? \"big\" : \"little\" , config -> bytes_per_sample ) ;\n }\n }\n else if ( ! strncmp ( caf_chunk_header . mChunkType , \"chan\" , 4 ) ) {\n CAFChannelLayout * caf_channel_layout ;\n if ( caf_chunk_header . mChunkSize < sizeof ( CAFChannelLayout ) || caf_chunk_header . mChunkSize > 1024 ) {\n error_line ( \"this .CAF file has an invalid 'chan' chunk!\" ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n if ( debug_logging_mode ) error_line ( \"'chan' chunk is %d bytes\" , ( int ) caf_chunk_header . mChunkSize ) ;\n caf_channel_layout = malloc ( ( size_t ) caf_chunk_header . mChunkSize ) ;\n if ( ! DoReadFile ( infile , caf_channel_layout , ( uint32_t ) caf_chunk_header . mChunkSize , & bcount ) || bcount != caf_chunk_header . mChunkSize ) {\n error_line ( \"%s is not a valid .CAF file!\" , infilename ) ;\n free ( caf_channel_layout ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n else if ( ! ( config -> qmode & QMODE_NO_STORE_WRAPPER ) && ! WavpackAddWrapper ( wpc , caf_channel_layout , ( uint32_t ) caf_chunk_header . mChunkSize ) ) {\n error_line ( \"%s\" , WavpackGetErrorMessage ( wpc ) ) ;\n free ( caf_channel_layout ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n WavpackBigEndianToNative ( caf_channel_layout , CAFChannelLayoutFormat ) ;\n chan_chunk = 1 ;\n if ( config -> channel_mask || ( config -> qmode & QMODE_CHANS_UNASSIGNED ) ) {\n error_line ( \"this CAF file already has channel order information!\" ) ;\n free ( caf_channel_layout ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n switch ( caf_channel_layout -> mChannelLayoutTag ) {\n case kCAFChannelLayoutTag_UseChannelDescriptions : {\n CAFChannelDescription * descriptions = ( CAFChannelDescription * ) ( caf_channel_layout + 1 ) ;\n int num_descriptions = caf_channel_layout -> mNumberChannelDescriptions ;\n int label , cindex = 0 , idents = 0 ;\n if ( caf_chunk_header . mChunkSize != sizeof ( CAFChannelLayout ) + sizeof ( CAFChannelDescription ) * num_descriptions || num_descriptions != config -> num_channels ) {\n error_line ( \"channel descriptions in 'chan' chunk are the wrong size!\" ) ;\n free ( caf_channel_layout ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n if ( num_descriptions >= 256 ) {\n error_line ( \"%d channel descriptions is more than we can handle...ignoring!\" ) ;\n break ;\n }\n channel_reorder = malloc ( num_descriptions ) ;\n memset ( channel_reorder , - 1 , num_descriptions ) ;\n channel_identities = malloc ( num_descriptions + 1 ) ;\n for ( i = 0 ;\n i < num_descriptions ;\n ++ i ) {\n WavpackBigEndianToNative ( descriptions + i , CAFChannelDescriptionFormat ) ;\n if ( debug_logging_mode ) error_line ( \"chan %d --> %d\" , i + 1 , descriptions [ i ] . mChannelLabel ) ;\n }\n for ( label = 1 ;\n label <= 18 ;\n ++ label ) for ( i = 0 ;\n i < num_descriptions ;\n ++ i ) if ( descriptions [ i ] . mChannelLabel == label ) {\n config -> channel_mask |= 1 << ( label - 1 ) ;\n channel_reorder [ i ] = cindex ++ ;\n break ;\n }\n for ( i = 0 ;\n i < num_descriptions ;\n ++ i ) if ( channel_reorder [ i ] == ( unsigned char ) - 1 ) {\n uint32_t clabel = descriptions [ i ] . mChannelLabel ;\n if ( clabel == 0 || clabel == 0xffffffff || clabel == 100 ) channel_identities [ idents ++ ] = 0xff ;\n else if ( ( clabel >= 33 && clabel <= 44 ) || ( clabel >= 200 && clabel <= 207 ) || ( clabel >= 301 && clabel <= 305 ) ) channel_identities [ idents ++ ] = clabel >= 301 ? clabel - 80 : clabel ;\n else {\n error_line ( \"warning: unknown channel descriptions label: %d\" , clabel ) ;\n channel_identities [ idents ++ ] = 0xff ;\n }\n channel_reorder [ i ] = cindex ++ ;\n }\n for ( i = 0 ;\n i < num_descriptions ;\n ++ i ) if ( channel_reorder [ i ] != i ) break ;\n if ( i == num_descriptions ) {\n free ( channel_reorder ) ;\n channel_reorder = NULL ;\n }\n else {\n config -> qmode |= QMODE_REORDERED_CHANS ;\n channel_layout = num_descriptions ;\n }\n if ( ! idents ) {\n free ( channel_identities ) ;\n channel_identities = NULL ;\n }\n else channel_identities [ idents ] = 0 ;\n if ( debug_logging_mode ) {\n error_line ( \"layout_tag = 0x%08x, so generated bitmap of 0x%08x from %d descriptions, %d non-MS\" , caf_channel_layout -> mChannelLayoutTag , config -> channel_mask , caf_channel_layout -> mNumberChannelDescriptions , idents ) ;\n if ( channel_reorder && num_descriptions <= 8 ) {\n char reorder_string [ ] = \"12345678\" ;\n for ( i = 0 ;\n i < num_descriptions ;\n ++ i ) reorder_string [ i ] = channel_reorder [ i ] + '1' ;\n reorder_string [ i ] = 0 ;\n error_line ( \"reordering string = \\\"%s\\\"\\n\" , reorder_string ) ;\n }\n }\n }\n break ;\n case kCAFChannelLayoutTag_UseChannelBitmap : config -> channel_mask = caf_channel_layout -> mChannelBitmap ;\n if ( debug_logging_mode ) error_line ( \"layout_tag = 0x%08x, so using supplied bitmap of 0x%08x\" , caf_channel_layout -> mChannelLayoutTag , caf_channel_layout -> mChannelBitmap ) ;\n break ;\n default : for ( i = 0 ;\n i < NUM_LAYOUTS ;\n ++ i ) if ( caf_channel_layout -> mChannelLayoutTag == layouts [ i ] . mChannelLayoutTag ) {\n config -> channel_mask = layouts [ i ] . mChannelBitmap ;\n channel_layout = layouts [ i ] . mChannelLayoutTag ;\n if ( layouts [ i ] . mChannelReorder ) {\n channel_reorder = ( unsigned char * ) strdup ( layouts [ i ] . mChannelReorder ) ;\n config -> qmode |= QMODE_REORDERED_CHANS ;\n }\n if ( layouts [ i ] . mChannelIdentities ) channel_identities = ( unsigned char * ) strdup ( layouts [ i ] . mChannelIdentities ) ;\n if ( debug_logging_mode ) error_line ( \"layout_tag 0x%08x found in table, bitmap = 0x%08x, reorder = %s, identities = %s\" , channel_layout , config -> channel_mask , channel_reorder ? \"yes\" : \"no\" , channel_identities ? \"yes\" : \"no\" ) ;\n break ;\n }\n if ( i == NUM_LAYOUTS && debug_logging_mode ) error_line ( \"layout_tag 0x%08x not found in table...all channels unassigned\" , caf_channel_layout -> mChannelLayoutTag ) ;\n break ;\n }\n free ( caf_channel_layout ) ;\n }\n else if ( ! strncmp ( caf_chunk_header . mChunkType , \"data\" , 4 ) ) {\n uint32_t mEditCount ;\n if ( ! DoReadFile ( infile , & mEditCount , sizeof ( mEditCount ) , & bcount ) || bcount != sizeof ( mEditCount ) ) {\n error_line ( \"%s is not a valid .CAF file!\" , infilename ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n else if ( ! ( config -> qmode & QMODE_NO_STORE_WRAPPER ) && ! WavpackAddWrapper ( wpc , & mEditCount , sizeof ( mEditCount ) ) ) {\n error_line ( \"%s\" , WavpackGetErrorMessage ( wpc ) ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n if ( ( config -> qmode & QMODE_IGNORE_LENGTH ) || caf_chunk_header . mChunkSize == - 1 ) {\n config -> qmode |= QMODE_IGNORE_LENGTH ;\n if ( infilesize && DoGetFilePosition ( infile ) != - 1 ) total_samples = ( infilesize - DoGetFilePosition ( infile ) ) / caf_audio_format . mBytesPerPacket ;\n else total_samples = - 1 ;\n }\n else {\n if ( infilesize && infilesize - caf_chunk_header . mChunkSize > 16777216 ) {\n error_line ( \".CAF file %s has over 16 MB of extra CAFF data, probably is corrupt!\" , infilename ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n if ( ( caf_chunk_header . mChunkSize - 4 ) % caf_audio_format . mBytesPerPacket ) {\n error_line ( \".CAF file %s has an invalid data chunk size, probably is corrupt!\" , infilename ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n total_samples = ( caf_chunk_header . mChunkSize - 4 ) / caf_audio_format . mBytesPerPacket ;\n if ( ! total_samples ) {\n error_line ( \"this .CAF file has no audio samples, probably is corrupt!\" ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n if ( total_samples > MAX_WAVPACK_SAMPLES ) {\n error_line ( \"%s has too many samples for WavPack!\" , infilename ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n }\n break ;\n }\n else {\n uint32_t bytes_to_copy = ( uint32_t ) caf_chunk_header . mChunkSize ;\n char * buff ;\n if ( caf_chunk_header . mChunkSize < 0 || caf_chunk_header . mChunkSize > 1048576 ) {\n error_line ( \"%s is not a valid .CAF file!\" , infilename ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n buff = malloc ( bytes_to_copy ) ;\n if ( debug_logging_mode ) error_line ( \"extra unknown chunk \\\"%c%c%c%c\\\" of %d bytes\" , caf_chunk_header . mChunkType [ 0 ] , caf_chunk_header . mChunkType [ 1 ] , caf_chunk_header . mChunkType [ 2 ] , caf_chunk_header . mChunkType [ 3 ] , caf_chunk_header . mChunkSize ) ;\n if ( ! DoReadFile ( infile , buff , bytes_to_copy , & bcount ) || bcount != bytes_to_copy || ( ! ( config -> qmode & QMODE_NO_STORE_WRAPPER ) && ! WavpackAddWrapper ( wpc , buff , bytes_to_copy ) ) ) {\n error_line ( \"%s\" , WavpackGetErrorMessage ( wpc ) ) ;\n free ( buff ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n free ( buff ) ;\n }\n }\n if ( ! chan_chunk && ! config -> channel_mask && config -> num_channels <= 2 && ! ( config -> qmode & QMODE_CHANS_UNASSIGNED ) ) config -> channel_mask = 0x5 - config -> num_channels ;\n if ( ! WavpackSetConfiguration64 ( wpc , config , total_samples , channel_identities ) ) {\n error_line ( \"%s\" , WavpackGetErrorMessage ( wpc ) ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n if ( channel_identities ) free ( channel_identities ) ;\n if ( channel_layout || channel_reorder ) {\n if ( ! WavpackSetChannelLayout ( wpc , channel_layout , channel_reorder ) ) {\n error_line ( \"problem with setting channel layout (should not happen)\" ) ;\n return WAVPACK_SOFT_ERROR ;\n }\n if ( channel_reorder ) free ( channel_reorder ) ;\n }\n return WAVPACK_NO_ERROR ;\n }"}
{"idx": 6774, "target": 0, "func": "static void test_wl4166_3 ( ) {\n int rc ;\n MYSQL_STMT * stmt ;\n MYSQL_BIND my_bind [ 1 ] ;\n MYSQL_TIME tm [ 1 ] ;\n myheader ( \"test_wl4166_3\" ) ;\n rc = mysql_query ( mysql , \"drop table if exists t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t1 (year datetime)\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"insert into t1 (year) values (?)\" ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 1 ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_DATETIME ;\n my_bind [ 0 ] . buffer = & tm [ 0 ] ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n tm [ 0 ] . year = 10000 ;\n tm [ 0 ] . month = 1 ;\n tm [ 0 ] . day = 1 ;\n tm [ 0 ] . hour = 1 ;\n tm [ 0 ] . minute = 1 ;\n tm [ 0 ] . second = 1 ;\n tm [ 0 ] . second_part = 0 ;\n tm [ 0 ] . neg = 0 ;\n rc = mysql_query ( mysql , \"alter table t1 add column c int\" ) ;\n myquery ( rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n my_process_warnings ( mysql , 1 ) ;\n verify_col_data ( \"t1\" , \"year\" , \"0000-00-00 00:00:00\" ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"drop table t1\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 6775, "target": 1, "func": "static int dwarf_elf_object_access_load_section ( void * obj_in , Dwarf_Half section_index , Dwarf_Small * * section_data , int * error ) {\n dwarf_elf_object_access_internals_t * obj = ( dwarf_elf_object_access_internals_t * ) obj_in ;\n if ( section_index == 0 ) {\n return DW_DLV_NO_ENTRY ;\n }\n {\n Elf_Scn * scn = 0 ;\n Elf_Data * data = 0 ;\n scn = elf_getscn ( obj -> elf , section_index ) ;\n if ( scn == NULL ) {\n * error = DW_DLE_MDE ;\n return DW_DLV_ERROR ;\n }\n data = elf_getdata ( scn , NULL ) ;\n if ( data == NULL ) {\n * error = DW_DLE_MDE ;\n return DW_DLV_ERROR ;\n }\n * section_data = data -> d_buf ;\n }\n return DW_DLV_OK ;\n }"}
{"idx": 6776, "target": 0, "func": "int TSAcceptorCount ( ) {\n return naVec . size ( ) ;\n }"}
{"idx": 6777, "target": 0, "func": "void archive_string_concat ( struct archive_string * dest , struct archive_string * src ) {\n if ( archive_string_append ( dest , src -> s , src -> length ) == NULL ) __archive_errx ( 1 , \"Out of memory\" ) ;\n }"}
{"idx": 6778, "target": 0, "func": "static int bethsoftvid_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n BethsoftvidContext * vid = avctx -> priv_data ;\n char block_type ;\n uint8_t * dst ;\n uint8_t * frame_end ;\n int remaining = avctx -> width ;\n int wrap_to_next_line ;\n int code , ret ;\n int yoffset ;\n if ( ( ret = ff_reget_buffer ( avctx , & vid -> frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n wrap_to_next_line = vid -> frame . linesize [ 0 ] - avctx -> width ;\n if ( avpkt -> side_data_elems > 0 && avpkt -> side_data [ 0 ] . type == AV_PKT_DATA_PALETTE ) {\n bytestream2_init ( & vid -> g , avpkt -> side_data [ 0 ] . data , avpkt -> side_data [ 0 ] . size ) ;\n if ( ( ret = set_palette ( vid ) ) < 0 ) return ret ;\n }\n bytestream2_init ( & vid -> g , avpkt -> data , avpkt -> size ) ;\n dst = vid -> frame . data [ 0 ] ;\n frame_end = vid -> frame . data [ 0 ] + vid -> frame . linesize [ 0 ] * avctx -> height ;\n switch ( block_type = bytestream2_get_byte ( & vid -> g ) ) {\n case PALETTE_BLOCK : {\n * got_frame = 0 ;\n if ( ( ret = set_palette ( vid ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"error reading palette\\n\" ) ;\n return ret ;\n }\n return bytestream2_tell ( & vid -> g ) ;\n }\n case VIDEO_YOFF_P_FRAME : yoffset = bytestream2_get_le16 ( & vid -> g ) ;\n if ( yoffset >= avctx -> height ) return AVERROR_INVALIDDATA ;\n dst += vid -> frame . linesize [ 0 ] * yoffset ;\n }\n while ( ( code = bytestream2_get_byte ( & vid -> g ) ) ) {\n int length = code & 0x7f ;\n while ( length > remaining ) {\n if ( code < 0x80 ) bytestream2_get_buffer ( & vid -> g , dst , remaining ) ;\n else if ( block_type == VIDEO_I_FRAME ) memset ( dst , bytestream2_peek_byte ( & vid -> g ) , remaining ) ;\n length -= remaining ;\n dst += remaining + wrap_to_next_line ;\n remaining = avctx -> width ;\n if ( dst == frame_end ) goto end ;\n }\n if ( code < 0x80 ) bytestream2_get_buffer ( & vid -> g , dst , length ) ;\n else if ( block_type == VIDEO_I_FRAME ) memset ( dst , bytestream2_get_byte ( & vid -> g ) , length ) ;\n remaining -= length ;\n dst += length ;\n }\n end : if ( ( ret = av_frame_ref ( data , & vid -> frame ) ) < 0 ) return ret ;\n * got_frame = 1 ;\n return avpkt -> size ;\n }"}
{"idx": 6779, "target": 1, "func": "static int virLogHostnameString ( char * * rawmsg , char * * msg ) {\n char * hostname = virGetHostnameQuiet ( ) ;\n char * hoststr ;\n if ( ! hostname ) return - 1 ;\n if ( virAsprintfQuiet ( & hoststr , \"hostname: %s\" , hostname ) < 0 ) {\n VIR_FREE ( hostname ) ;\n return - 1 ;\n }\n VIR_FREE ( hostname ) ;\n if ( virLogFormatString ( msg , 0 , NULL , VIR_LOG_INFO , hoststr ) < 0 ) {\n VIR_FREE ( hoststr ) ;\n return - 1 ;\n }\n * rawmsg = hoststr ;\n return 0 ;\n }"}
{"idx": 6780, "target": 0, "func": "static void show_query ( MYSQL * mysql , const char * query ) {\n MYSQL_RES * res ;\n DBUG_ENTER ( \"show_query\" ) ;\n if ( ! mysql ) DBUG_VOID_RETURN ;\n if ( mysql_query ( mysql , query ) ) {\n log_msg ( \"Error running query '%s': %d %s\" , query , mysql_errno ( mysql ) , mysql_error ( mysql ) ) ;\n DBUG_VOID_RETURN ;\n }\n if ( ( res = mysql_store_result ( mysql ) ) == NULL ) {\n DBUG_VOID_RETURN ;\n }\n {\n MYSQL_ROW row ;\n unsigned int i ;\n unsigned int row_num = 0 ;\n unsigned int num_fields = mysql_num_fields ( res ) ;\n MYSQL_FIELD * fields = mysql_fetch_fields ( res ) ;\n fprintf ( stderr , \"=== %s ===\\n\" , query ) ;\n while ( ( row = mysql_fetch_row ( res ) ) ) {\n unsigned long * lengths = mysql_fetch_lengths ( res ) ;\n row_num ++ ;\n fprintf ( stderr , \"---- %d. ----\\n\" , row_num ) ;\n for ( i = 0 ;\n i < num_fields ;\n i ++ ) {\n fprintf ( stderr , \"%s\\t%.*s\\n\" , fields [ i ] . name , ( int ) lengths [ i ] , row [ i ] ? row [ i ] : \"NULL\" ) ;\n }\n }\n for ( i = 0 ;\n i < strlen ( query ) + 8 ;\n i ++ ) fprintf ( stderr , \"=\" ) ;\n fprintf ( stderr , \"\\n\\n\" ) ;\n }\n mysql_free_result ( res ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 6781, "target": 0, "func": "void mime_hdr_presence_unset ( MIMEHdrImpl * h , const char * well_known_str ) {\n uint64_t mask = mime_field_presence_mask ( well_known_str ) ;\n if ( mask != 0 ) {\n h -> m_presence_bits &= ( ~ mask ) ;\n }\n }"}
{"idx": 6782, "target": 0, "func": "static void mpeg_decode_user_data ( AVCodecContext * avctx , const uint8_t * p , int buf_size ) {\n const uint8_t * buf_end = p + buf_size ;\n if ( buf_end - p >= 5 && p [ 0 ] == 'D' && p [ 1 ] == 'T' && p [ 2 ] == 'G' && p [ 3 ] == '1' ) {\n int flags = p [ 4 ] ;\n p += 5 ;\n if ( flags & 0x80 ) {\n p += 2 ;\n }\n if ( flags & 0x40 ) {\n if ( buf_end - p < 1 ) return ;\n avctx -> dtg_active_format = p [ 0 ] & 0x0f ;\n }\n }\n }"}
{"idx": 6783, "target": 0, "func": "static uint32_t CnvExtWrite ( NewConverter * cnvData , const UConverterStaticData * staticData , UNewDataMemory * pData , int32_t tableType ) {\n CnvExtData * extData = ( CnvExtData * ) cnvData ;\n int32_t length , top , headerSize ;\n int32_t indexes [ UCNV_EXT_INDEXES_MIN_LENGTH ] = {\n 0 }\n ;\n if ( tableType & TABLE_BASE ) {\n headerSize = 0 ;\n }\n else {\n _MBCSHeader header = {\n {\n 0 , 0 , 0 , 0 }\n , 0 , 0 , 0 , 0 , 0 , 0 , 0 }\n ;\n length = ( int32_t ) uprv_strlen ( extData -> ucm -> baseName ) + 1 ;\n while ( length & 3 ) {\n extData -> ucm -> baseName [ length ++ ] = 0 ;\n }\n headerSize = MBCS_HEADER_V4_LENGTH * 4 + length ;\n header . version [ 0 ] = 4 ;\n header . version [ 1 ] = 2 ;\n header . flags = ( uint32_t ) ( ( headerSize << 8 ) | MBCS_OUTPUT_EXT_ONLY ) ;\n udata_writeBlock ( pData , & header , MBCS_HEADER_V4_LENGTH * 4 ) ;\n udata_writeBlock ( pData , extData -> ucm -> baseName , length ) ;\n }\n top = 0 ;\n indexes [ UCNV_EXT_INDEXES_LENGTH ] = length = UCNV_EXT_INDEXES_MIN_LENGTH ;\n top += length * 4 ;\n indexes [ UCNV_EXT_TO_U_INDEX ] = top ;\n indexes [ UCNV_EXT_TO_U_LENGTH ] = length = utm_countItems ( extData -> toUTable ) ;\n top += length * 4 ;\n indexes [ UCNV_EXT_TO_U_UCHARS_INDEX ] = top ;\n indexes [ UCNV_EXT_TO_U_UCHARS_LENGTH ] = length = utm_countItems ( extData -> toUUChars ) ;\n top += length * 2 ;\n indexes [ UCNV_EXT_FROM_U_UCHARS_INDEX ] = top ;\n length = utm_countItems ( extData -> fromUTableUChars ) ;\n top += length * 2 ;\n if ( top & 3 ) {\n * ( ( UChar * ) utm_alloc ( extData -> fromUTableUChars ) ) = 0 ;\n * ( ( uint32_t * ) utm_alloc ( extData -> fromUTableValues ) ) = 0 ;\n ++ length ;\n top += 2 ;\n }\n indexes [ UCNV_EXT_FROM_U_LENGTH ] = length ;\n indexes [ UCNV_EXT_FROM_U_VALUES_INDEX ] = top ;\n top += length * 4 ;\n indexes [ UCNV_EXT_FROM_U_BYTES_INDEX ] = top ;\n length = utm_countItems ( extData -> fromUBytes ) ;\n top += length ;\n if ( top & 1 ) {\n * ( ( uint8_t * ) utm_alloc ( extData -> fromUBytes ) ) = 0 ;\n ++ length ;\n ++ top ;\n }\n indexes [ UCNV_EXT_FROM_U_BYTES_LENGTH ] = length ;\n indexes [ UCNV_EXT_FROM_U_STAGE_12_INDEX ] = top ;\n indexes [ UCNV_EXT_FROM_U_STAGE_1_LENGTH ] = length = extData -> stage1Top ;\n indexes [ UCNV_EXT_FROM_U_STAGE_12_LENGTH ] = length += extData -> stage2Top ;\n top += length * 2 ;\n indexes [ UCNV_EXT_FROM_U_STAGE_3_INDEX ] = top ;\n length = extData -> stage3Top ;\n top += length * 2 ;\n if ( top & 3 ) {\n extData -> stage3 [ extData -> stage3Top ++ ] = 0 ;\n ++ length ;\n top += 2 ;\n }\n indexes [ UCNV_EXT_FROM_U_STAGE_3_LENGTH ] = length ;\n indexes [ UCNV_EXT_FROM_U_STAGE_3B_INDEX ] = top ;\n indexes [ UCNV_EXT_FROM_U_STAGE_3B_LENGTH ] = length = extData -> stage3bTop ;\n top += length * 4 ;\n indexes [ UCNV_EXT_SIZE ] = top ;\n indexes [ UCNV_EXT_COUNT_BYTES ] = ( extData -> maxInBytes << 16 ) | ( extData -> maxOutBytes << 8 ) | extData -> maxBytesPerUChar ;\n indexes [ UCNV_EXT_COUNT_UCHARS ] = ( extData -> maxInUChars << 16 ) | ( extData -> maxOutUChars << 8 ) | extData -> maxUCharsPerByte ;\n indexes [ UCNV_EXT_FLAGS ] = extData -> ucm -> ext -> unicodeMask ;\n udata_writeBlock ( pData , indexes , sizeof ( indexes ) ) ;\n udata_writeBlock ( pData , utm_getStart ( extData -> toUTable ) , indexes [ UCNV_EXT_TO_U_LENGTH ] * 4 ) ;\n udata_writeBlock ( pData , utm_getStart ( extData -> toUUChars ) , indexes [ UCNV_EXT_TO_U_UCHARS_LENGTH ] * 2 ) ;\n udata_writeBlock ( pData , utm_getStart ( extData -> fromUTableUChars ) , indexes [ UCNV_EXT_FROM_U_LENGTH ] * 2 ) ;\n udata_writeBlock ( pData , utm_getStart ( extData -> fromUTableValues ) , indexes [ UCNV_EXT_FROM_U_LENGTH ] * 4 ) ;\n udata_writeBlock ( pData , utm_getStart ( extData -> fromUBytes ) , indexes [ UCNV_EXT_FROM_U_BYTES_LENGTH ] ) ;\n udata_writeBlock ( pData , extData -> stage1 , extData -> stage1Top * 2 ) ;\n udata_writeBlock ( pData , extData -> stage2 , extData -> stage2Top * 2 ) ;\n udata_writeBlock ( pData , extData -> stage3 , extData -> stage3Top * 2 ) ;\n udata_writeBlock ( pData , extData -> stage3b , extData -> stage3bTop * 4 ) ;\n # if 0 {\n int32_t i , j ;\n length = extData -> stage1Top ;\n printf ( \"\\nstage1[%x]:\\n\" , length ) ;\n for ( i = 0 ;\n i < length ;\n ++ i ) {\n if ( extData -> stage1 [ i ] != length ) {\n printf ( \"stage1[%04x]=%04x\\n\" , i , extData -> stage1 [ i ] ) ;\n }\n }\n j = length ;\n length = extData -> stage2Top ;\n printf ( \"\\nstage2[%x]:\\n\" , length ) ;\n for ( i = 0 ;\n i < length ;\n ++ j , ++ i ) {\n if ( extData -> stage2 [ i ] != 0 ) {\n printf ( \"stage12[%04x]=%04x\\n\" , j , extData -> stage2 [ i ] ) ;\n }\n }\n length = extData -> stage3Top ;\n printf ( \"\\nstage3[%x]:\\n\" , length ) ;\n for ( i = 0 ;\n i < length ;\n ++ i ) {\n if ( extData -> stage3 [ i ] != 0 ) {\n printf ( \"stage3[%04x]=%04x\\n\" , i , extData -> stage3 [ i ] ) ;\n }\n }\n length = extData -> stage3bTop ;\n printf ( \"\\nstage3b[%x]:\\n\" , length ) ;\n for ( i = 0 ;\n i < length ;\n ++ i ) {\n if ( extData -> stage3b [ i ] != 0 ) {\n printf ( \"stage3b[%04x]=%08x\\n\" , i , extData -> stage3b [ i ] ) ;\n }\n }\n }\n # endif if ( VERBOSE ) {\n printf ( \"size of extension data: %ld\\n\" , ( long ) top ) ;\n }\n return ( uint32_t ) ( headerSize + top ) ;\n }"}
{"idx": 6784, "target": 0, "func": "static bool is_strict_saop ( ScalarArrayOpExpr * expr , bool falseOK ) {\n Node * rightop ;\n set_sa_opfuncid ( expr ) ;\n if ( ! func_strict ( expr -> opfuncid ) ) return false ;\n if ( expr -> useOr && falseOK ) return true ;\n Assert ( list_length ( expr -> args ) == 2 ) ;\n rightop = ( Node * ) lsecond ( expr -> args ) ;\n if ( rightop && IsA ( rightop , Const ) ) {\n Datum arraydatum = ( ( Const * ) rightop ) -> constvalue ;\n bool arrayisnull = ( ( Const * ) rightop ) -> constisnull ;\n ArrayType * arrayval ;\n int nitems ;\n if ( arrayisnull ) return false ;\n arrayval = DatumGetArrayTypeP ( arraydatum ) ;\n nitems = ArrayGetNItems ( ARR_NDIM ( arrayval ) , ARR_DIMS ( arrayval ) ) ;\n if ( nitems > 0 ) return true ;\n }\n else if ( rightop && IsA ( rightop , ArrayExpr ) ) {\n ArrayExpr * arrayexpr = ( ArrayExpr * ) rightop ;\n if ( arrayexpr -> elements != NIL && ! arrayexpr -> multidims ) return true ;\n }\n return false ;\n }"}
{"idx": 6785, "target": 0, "func": "static void ultag_close ( ULanguageTag * langtag ) {\n if ( langtag == NULL ) {\n return ;\n }\n uprv_free ( langtag -> buf ) ;\n if ( langtag -> variants ) {\n VariantListEntry * curVar = langtag -> variants ;\n while ( curVar ) {\n VariantListEntry * nextVar = curVar -> next ;\n uprv_free ( curVar ) ;\n curVar = nextVar ;\n }\n }\n if ( langtag -> extensions ) {\n ExtensionListEntry * curExt = langtag -> extensions ;\n while ( curExt ) {\n ExtensionListEntry * nextExt = curExt -> next ;\n uprv_free ( curExt ) ;\n curExt = nextExt ;\n }\n }\n uprv_free ( langtag ) ;\n }"}
{"idx": 6786, "target": 0, "func": "static guint16 de_bcc_orig_ind ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n curr_offset = offset ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_bcc_spare_3 , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_bcc_orig_ind , tvb , curr_offset , 1 , ENC_NA ) ;\n curr_offset ++ ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 6787, "target": 1, "func": "int vp9_get_frame_buffer ( void * cb_priv , size_t min_size , vpx_codec_frame_buffer_t * fb ) {\n int i ;\n InternalFrameBufferList * const int_fb_list = ( InternalFrameBufferList * ) cb_priv ;\n if ( int_fb_list == NULL ) return - 1 ;\n for ( i = 0 ;\n i < int_fb_list -> num_internal_frame_buffers ;\n ++ i ) {\n if ( ! int_fb_list -> int_fb [ i ] . in_use ) break ;\n }\n if ( i == int_fb_list -> num_internal_frame_buffers ) return - 1 ;\n if ( int_fb_list -> int_fb [ i ] . size < min_size ) {\n int_fb_list -> int_fb [ i ] . data = ( uint8_t * ) vpx_realloc ( int_fb_list -> int_fb [ i ] . data , min_size ) ;\n if ( ! int_fb_list -> int_fb [ i ] . data ) return - 1 ;\n int_fb_list -> int_fb [ i ] . size = min_size ;\n }\n fb -> data = int_fb_list -> int_fb [ i ] . data ;\n fb -> size = int_fb_list -> int_fb [ i ] . size ;\n int_fb_list -> int_fb [ i ] . in_use = 1 ;\n fb -> priv = & int_fb_list -> int_fb [ i ] ;\n return 0 ;\n }"}
{"idx": 6788, "target": 0, "func": "static UChar32 U_CALLCONV T_UConverter_getNextUChar_UTF32_LE ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n const uint8_t * mySource ;\n UChar32 myUChar ;\n int32_t length ;\n mySource = ( const uint8_t * ) args -> source ;\n if ( mySource >= ( const uint8_t * ) args -> sourceLimit ) {\n * err = U_INDEX_OUTOFBOUNDS_ERROR ;\n return 0xffff ;\n }\n length = ( int32_t ) ( ( const uint8_t * ) args -> sourceLimit - mySource ) ;\n if ( length < 4 ) {\n uprv_memcpy ( args -> converter -> toUBytes , mySource , length ) ;\n args -> converter -> toULength = ( int8_t ) length ;\n args -> source = ( const char * ) ( mySource + length ) ;\n * err = U_TRUNCATED_CHAR_FOUND ;\n return 0xffff ;\n }\n myUChar = ( ( UChar32 ) mySource [ 3 ] << 24 ) | ( ( UChar32 ) mySource [ 2 ] << 16 ) | ( ( UChar32 ) mySource [ 1 ] << 8 ) | ( ( UChar32 ) mySource [ 0 ] ) ;\n args -> source = ( const char * ) ( mySource + 4 ) ;\n if ( ( uint32_t ) myUChar <= MAXIMUM_UTF && ! U_IS_SURROGATE ( myUChar ) ) {\n return myUChar ;\n }\n uprv_memcpy ( args -> converter -> toUBytes , mySource , 4 ) ;\n args -> converter -> toULength = 4 ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n return 0xffff ;\n }"}
{"idx": 6789, "target": 0, "func": "static int dissect_h225_PrivatePartyNumber ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_PrivatePartyNumber , PrivatePartyNumber_sequence ) ;\n return offset ;\n }"}
{"idx": 6790, "target": 0, "func": "void evhttp_connection_reset ( struct evhttp_connection * evcon ) {\n if ( event_initialized ( & evcon -> ev ) ) event_del ( & evcon -> ev ) ;\n if ( evcon -> fd != - 1 ) {\n if ( evhttp_connected ( evcon ) && evcon -> closecb != NULL ) ( * evcon -> closecb ) ( evcon , evcon -> closecb_arg ) ;\n EVUTIL_CLOSESOCKET ( evcon -> fd ) ;\n evcon -> fd = - 1 ;\n }\n evcon -> state = EVCON_DISCONNECTED ;\n evbuffer_drain ( evcon -> input_buffer , EVBUFFER_LENGTH ( evcon -> input_buffer ) ) ;\n evbuffer_drain ( evcon -> output_buffer , EVBUFFER_LENGTH ( evcon -> output_buffer ) ) ;\n }"}
{"idx": 6791, "target": 0, "func": "static void print_time ( const char * label , int64_t etl ) {\n int64_t hours ;\n int64_t mins ;\n int64_t secs ;\n if ( etl >= 0 ) {\n hours = etl / 3600 ;\n etl -= hours * 3600 ;\n mins = etl / 60 ;\n etl -= mins * 60 ;\n secs = etl ;\n fprintf ( stderr , \"[%3s %2\" PRId64 \":%02\" PRId64 \":%02\" PRId64 \"] \" , label , hours , mins , secs ) ;\n }\n else {\n fprintf ( stderr , \"[%3s unknown] \" , label ) ;\n }\n }"}
{"idx": 6792, "target": 0, "func": "MemTxAttrs kvm_arch_post_run ( CPUState * cpu , struct kvm_run * run ) {\n X86CPU * x86_cpu = X86_CPU ( cpu ) ;\n CPUX86State * env = & x86_cpu -> env ;\n if ( run -> flags & KVM_RUN_X86_SMM ) {\n env -> hflags |= HF_SMM_MASK ;\n }\n else {\n env -> hflags &= ~ HF_SMM_MASK ;\n }\n if ( run -> if_flag ) {\n env -> eflags |= IF_MASK ;\n }\n else {\n env -> eflags &= ~ IF_MASK ;\n }\n if ( ! kvm_irqchip_in_kernel ( ) ) {\n qemu_mutex_lock_iothread ( ) ;\n }\n cpu_set_apic_tpr ( x86_cpu -> apic_state , run -> cr8 ) ;\n cpu_set_apic_base ( x86_cpu -> apic_state , run -> apic_base ) ;\n if ( ! kvm_irqchip_in_kernel ( ) ) {\n qemu_mutex_unlock_iothread ( ) ;\n }\n return cpu_get_mem_attrs ( env ) ;\n }"}
{"idx": 6793, "target": 0, "func": "static void create_pid_file ( ) {\n File file ;\n if ( ( file = mysql_file_create ( key_file_pid , pidfile_name , 0664 , O_WRONLY | O_TRUNC , MYF ( MY_WME ) ) ) >= 0 ) {\n char buff [ MAX_BIGINT_WIDTH + 1 ] , * end ;\n end = int10_to_str ( ( long ) getpid ( ) , buff , 10 ) ;\n * end ++ = '\\n' ;\n if ( ! mysql_file_write ( file , ( uchar * ) buff , ( uint ) ( end - buff ) , MYF ( MY_WME | MY_NABP ) ) ) {\n mysql_file_close ( file , MYF ( 0 ) ) ;\n pid_file_created = true ;\n return ;\n }\n mysql_file_close ( file , MYF ( 0 ) ) ;\n }\n sql_perror ( \"Can't start server: can't create PID file\" ) ;\n exit ( 1 ) ;\n }"}
{"idx": 6794, "target": 0, "func": "int proto_register_protocol ( const char * name , const char * short_name , const char * filter_name ) {\n protocol_t * protocol ;\n const protocol_t * existing_protocol = NULL ;\n header_field_info * hfinfo ;\n int proto_id ;\n const char * existing_name ;\n gint * key ;\n guint i ;\n gchar c ;\n gboolean found_invalid ;\n key = ( gint * ) g_malloc ( sizeof ( gint ) ) ;\n * key = wrs_str_hash ( name ) ;\n existing_name = ( const char * ) g_hash_table_lookup ( proto_names , key ) ;\n if ( existing_name != NULL ) {\n g_error ( \"Duplicate protocol name \\\"%s\\\"!\" \" This might be caused by an inappropriate plugin or a development error.\" , name ) ;\n }\n g_hash_table_insert ( proto_names , key , ( gpointer ) name ) ;\n existing_protocol = ( const protocol_t * ) g_hash_table_lookup ( proto_short_names , short_name ) ;\n if ( existing_protocol != NULL ) {\n g_error ( \"Duplicate protocol short_name \\\"%s\\\"!\" \" This might be caused by an inappropriate plugin or a development error.\" , short_name ) ;\n }\n found_invalid = FALSE ;\n for ( i = 0 ;\n filter_name [ i ] ;\n i ++ ) {\n c = filter_name [ i ] ;\n if ( ! ( g_ascii_islower ( c ) || g_ascii_isdigit ( c ) || c == '-' || c == '_' || c == '.' ) ) {\n found_invalid = TRUE ;\n }\n }\n if ( found_invalid ) {\n g_error ( \"Protocol filter name \\\"%s\\\" has one or more invalid characters.\" \" Allowed are lower characters, digits, '-', '_' and '.'.\" \" This might be caused by an inappropriate plugin or a development error.\" , filter_name ) ;\n }\n existing_protocol = ( const protocol_t * ) g_hash_table_lookup ( proto_filter_names , filter_name ) ;\n if ( existing_protocol != NULL ) {\n g_error ( \"Duplicate protocol filter_name \\\"%s\\\"!\" \" This might be caused by an inappropriate plugin or a development error.\" , filter_name ) ;\n }\n protocol = g_new ( protocol_t , 1 ) ;\n protocol -> name = name ;\n protocol -> short_name = short_name ;\n protocol -> filter_name = filter_name ;\n protocol -> fields = g_ptr_array_new ( ) ;\n protocol -> is_enabled = TRUE ;\n protocol -> enabled_by_default = TRUE ;\n protocol -> can_toggle = TRUE ;\n protocol -> heur_list = NULL ;\n protocols = g_list_prepend ( protocols , protocol ) ;\n g_hash_table_insert ( proto_filter_names , ( gpointer ) filter_name , protocol ) ;\n g_hash_table_insert ( proto_short_names , ( gpointer ) short_name , protocol ) ;\n hfinfo = g_slice_new ( header_field_info ) ;\n hfinfo -> name = name ;\n hfinfo -> abbrev = filter_name ;\n hfinfo -> type = FT_PROTOCOL ;\n hfinfo -> display = BASE_NONE ;\n hfinfo -> strings = protocol ;\n hfinfo -> bitmask = 0 ;\n hfinfo -> ref_type = HF_REF_TYPE_NONE ;\n hfinfo -> blurb = NULL ;\n hfinfo -> parent = - 1 ;\n proto_id = proto_register_field_init ( hfinfo , hfinfo -> parent ) ;\n protocol -> proto_id = proto_id ;\n return proto_id ;\n }"}
{"idx": 6795, "target": 1, "func": "void ff_sbr_apply ( AACContext * ac , SpectralBandReplication * sbr , int id_aac , float * L , float * R ) {\n int downsampled = ac -> oc [ 1 ] . m4ac . ext_sample_rate < sbr -> sample_rate ;\n int ch ;\n int nch = ( id_aac == TYPE_CPE ) ? 2 : 1 ;\n int err ;\n if ( id_aac != sbr -> id_aac ) {\n av_log ( ac -> avctx , AV_LOG_ERROR , \"element type mismatch %d != %d\\n\" , id_aac , sbr -> id_aac ) ;\n sbr_turnoff ( sbr ) ;\n }\n if ( ! sbr -> kx_and_m_pushed ) {\n sbr -> kx [ 0 ] = sbr -> kx [ 1 ] ;\n sbr -> m [ 0 ] = sbr -> m [ 1 ] ;\n }\n else {\n sbr -> kx_and_m_pushed = 0 ;\n }\n if ( sbr -> start ) {\n sbr_dequant ( sbr , id_aac ) ;\n }\n for ( ch = 0 ;\n ch < nch ;\n ch ++ ) {\n sbr_qmf_analysis ( ac -> fdsp , & sbr -> mdct_ana , & sbr -> dsp , ch ? R : L , sbr -> data [ ch ] . analysis_filterbank_samples , ( float * ) sbr -> qmf_filter_scratch , sbr -> data [ ch ] . W , sbr -> data [ ch ] . Ypos ) ;\n sbr -> c . sbr_lf_gen ( ac , sbr , sbr -> X_low , ( const float ( * ) [ 32 ] [ 32 ] [ 2 ] ) sbr -> data [ ch ] . W , sbr -> data [ ch ] . Ypos ) ;\n sbr -> data [ ch ] . Ypos ^= 1 ;\n if ( sbr -> start ) {\n sbr -> c . sbr_hf_inverse_filter ( & sbr -> dsp , sbr -> alpha0 , sbr -> alpha1 , ( const float ( * ) [ 40 ] [ 2 ] ) sbr -> X_low , sbr -> k [ 0 ] ) ;\n sbr_chirp ( sbr , & sbr -> data [ ch ] ) ;\n av_assert0 ( sbr -> data [ ch ] . bs_num_env > 0 ) ;\n sbr_hf_gen ( ac , sbr , sbr -> X_high , ( const float ( * ) [ 40 ] [ 2 ] ) sbr -> X_low , ( const float ( * ) [ 2 ] ) sbr -> alpha0 , ( const float ( * ) [ 2 ] ) sbr -> alpha1 , sbr -> data [ ch ] . bw_array , sbr -> data [ ch ] . t_env , sbr -> data [ ch ] . bs_num_env ) ;\n err = sbr_mapping ( ac , sbr , & sbr -> data [ ch ] , sbr -> data [ ch ] . e_a ) ;\n if ( ! err ) {\n sbr_env_estimate ( sbr -> e_curr , sbr -> X_high , sbr , & sbr -> data [ ch ] ) ;\n sbr_gain_calc ( ac , sbr , & sbr -> data [ ch ] , sbr -> data [ ch ] . e_a ) ;\n sbr -> c . sbr_hf_assemble ( sbr -> data [ ch ] . Y [ sbr -> data [ ch ] . Ypos ] , ( const float ( * ) [ 40 ] [ 2 ] ) sbr -> X_high , sbr , & sbr -> data [ ch ] , sbr -> data [ ch ] . e_a ) ;\n }\n }\n sbr -> c . sbr_x_gen ( sbr , sbr -> X [ ch ] , ( const float ( * ) [ 64 ] [ 2 ] ) sbr -> data [ ch ] . Y [ 1 - sbr -> data [ ch ] . Ypos ] , ( const float ( * ) [ 64 ] [ 2 ] ) sbr -> data [ ch ] . Y [ sbr -> data [ ch ] . Ypos ] , ( const float ( * ) [ 40 ] [ 2 ] ) sbr -> X_low , ch ) ;\n }\n if ( ac -> oc [ 1 ] . m4ac . ps == 1 ) {\n if ( sbr -> ps . start ) {\n ff_ps_apply ( ac -> avctx , & sbr -> ps , sbr -> X [ 0 ] , sbr -> X [ 1 ] , sbr -> kx [ 1 ] + sbr -> m [ 1 ] ) ;\n }\n else {\n memcpy ( sbr -> X [ 1 ] , sbr -> X [ 0 ] , sizeof ( sbr -> X [ 0 ] ) ) ;\n }\n nch = 2 ;\n }\n sbr_qmf_synthesis ( & sbr -> mdct , & sbr -> dsp , ac -> fdsp , L , sbr -> X [ 0 ] , sbr -> qmf_filter_scratch , sbr -> data [ 0 ] . synthesis_filterbank_samples , & sbr -> data [ 0 ] . synthesis_filterbank_samples_offset , downsampled ) ;\n if ( nch == 2 ) sbr_qmf_synthesis ( & sbr -> mdct , & sbr -> dsp , ac -> fdsp , R , sbr -> X [ 1 ] , sbr -> qmf_filter_scratch , sbr -> data [ 1 ] . synthesis_filterbank_samples , & sbr -> data [ 1 ] . synthesis_filterbank_samples_offset , downsampled ) ;\n }"}
{"idx": 6796, "target": 1, "func": "static void main_get_appheader ( xd3_stream * stream , main_file * ifile , main_file * output , main_file * sfile ) {\n uint8_t * apphead ;\n usize_t appheadsz ;\n int ret ;\n if ( ! option_use_appheader ) {\n return ;\n }\n ret = xd3_get_appheader ( stream , & apphead , & appheadsz ) ;\n if ( ret != 0 ) {\n return ;\n }\n if ( appheadsz > 0 ) {\n char * start = ( char * ) apphead ;\n char * slash ;\n int place = 0 ;\n char * parsed [ 4 ] ;\n memset ( parsed , 0 , sizeof ( parsed ) ) ;\n while ( ( slash = strchr ( start , '/' ) ) != NULL ) {\n * slash = 0 ;\n parsed [ place ++ ] = start ;\n start = slash + 1 ;\n }\n parsed [ place ++ ] = start ;\n if ( place == 2 || place == 4 ) {\n main_get_appheader_params ( output , parsed , 1 , \"output\" , ifile ) ;\n }\n if ( place == 4 ) {\n main_get_appheader_params ( sfile , parsed + 2 , 0 , \"source\" , ifile ) ;\n }\n }\n option_use_appheader = 0 ;\n return ;\n }"}
{"idx": 6797, "target": 0, "func": "static int selinux_task_create ( unsigned long clone_flags ) {\n return current_has_perm ( current , PROCESS__FORK ) ;\n }"}
{"idx": 6798, "target": 0, "func": "static int dissect_h245_RequestMultiplexEntry ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_RequestMultiplexEntry , RequestMultiplexEntry_sequence ) ;\n return offset ;\n }"}
{"idx": 6799, "target": 0, "func": "static bool line_matches ( struct rule * rule , const char * command , const char * subcommand ) {\n bool okay = false ;\n if ( strcmp ( rule -> command , \"ALL\" ) == 0 ) okay = true ;\n if ( command != NULL && strcmp ( rule -> command , command ) == 0 ) okay = true ;\n if ( command == NULL && strcmp ( rule -> command , \"EMPTY\" ) == 0 ) okay = true ;\n if ( okay ) {\n if ( strcmp ( rule -> subcommand , \"ALL\" ) == 0 ) return true ;\n if ( subcommand != NULL && strcmp ( rule -> subcommand , subcommand ) == 0 ) return true ;\n if ( subcommand == NULL && strcmp ( rule -> subcommand , \"EMPTY\" ) == 0 ) return true ;\n }\n return false ;\n }"}
{"idx": 6800, "target": 0, "func": "static ssize_t ReadBlobBlock ( Image * image , unsigned char * data ) {\n ssize_t count ;\n unsigned char block_count ;\n assert ( image != ( Image * ) NULL ) ;\n assert ( image -> signature == MagickSignature ) ;\n assert ( data != ( unsigned char * ) NULL ) ;\n count = ReadBlob ( image , 1 , & block_count ) ;\n if ( count != 1 ) return ( 0 ) ;\n count = ReadBlob ( image , ( size_t ) block_count , data ) ;\n if ( count != ( ssize_t ) block_count ) return ( 0 ) ;\n return ( count ) ;\n }"}
{"idx": 6801, "target": 0, "func": "guint16 de_ps_domain_spec_sys_info ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n curr_offset = offset ;\n proto_tree_add_item ( tree , hf_gsm_a_gm_rac , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( curr_offset << 3 ) , 6 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_nmo_1 , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_nmo , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n EXTRANEOUS_DATA_CHECK ( len , curr_offset - offset , pinfo , & ei_gsm_a_extraneous_data ) ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 6802, "target": 0, "func": "static int qio_channel_websock_decode_payload ( QIOChannelWebsock * ioc , Error * * errp ) {\n size_t i ;\n size_t payload_len = 0 ;\n uint32_t * payload32 ;\n if ( ioc -> payload_remain ) {\n if ( ioc -> encinput . offset < ioc -> payload_remain ) {\n if ( ioc -> opcode & QIO_CHANNEL_WEBSOCK_CONTROL_OPCODE_MASK ) {\n return QIO_CHANNEL_ERR_BLOCK ;\n }\n payload_len = ioc -> encinput . offset - ( ioc -> encinput . offset % 4 ) ;\n }\n else {\n payload_len = ioc -> payload_remain ;\n }\n if ( payload_len == 0 ) {\n return QIO_CHANNEL_ERR_BLOCK ;\n }\n ioc -> payload_remain -= payload_len ;\n payload32 = ( uint32_t * ) ioc -> encinput . buffer ;\n for ( i = 0 ;\n i < payload_len / 4 ;\n i ++ ) {\n payload32 [ i ] ^= ioc -> mask . u ;\n }\n for ( i *= 4 ;\n i < payload_len ;\n i ++ ) {\n ioc -> encinput . buffer [ i ] ^= ioc -> mask . c [ i % 4 ] ;\n }\n }\n trace_qio_channel_websock_payload_decode ( ioc , ioc -> opcode , ioc -> payload_remain ) ;\n if ( ioc -> opcode == QIO_CHANNEL_WEBSOCK_OPCODE_BINARY_FRAME ) {\n if ( payload_len ) {\n buffer_reserve ( & ioc -> rawinput , payload_len ) ;\n buffer_append ( & ioc -> rawinput , ioc -> encinput . buffer , payload_len ) ;\n }\n }\n else if ( ioc -> opcode == QIO_CHANNEL_WEBSOCK_OPCODE_CLOSE ) {\n error_setg ( errp , \"websocket closed by peer\" ) ;\n if ( payload_len ) {\n qio_channel_websock_encode_buffer ( ioc , & ioc -> encoutput , QIO_CHANNEL_WEBSOCK_OPCODE_CLOSE , & ioc -> encinput ) ;\n qio_channel_websock_write_wire ( ioc , NULL ) ;\n qio_channel_shutdown ( ioc -> master , QIO_CHANNEL_SHUTDOWN_BOTH , NULL ) ;\n }\n else {\n qio_channel_websock_write_close ( ioc , QIO_CHANNEL_WEBSOCK_STATUS_NORMAL , \"peer requested close\" ) ;\n }\n return - 1 ;\n }\n else if ( ioc -> opcode == QIO_CHANNEL_WEBSOCK_OPCODE_PING ) {\n buffer_reset ( & ioc -> ping_reply ) ;\n qio_channel_websock_encode_buffer ( ioc , & ioc -> ping_reply , QIO_CHANNEL_WEBSOCK_OPCODE_PONG , & ioc -> encinput ) ;\n }\n if ( payload_len ) {\n buffer_advance ( & ioc -> encinput , payload_len ) ;\n }\n return 0 ;\n }"}
{"idx": 6803, "target": 0, "func": "static void crl_uri_destroy ( x509_cdp_t * this ) {\n free ( this -> uri ) ;\n DESTROY_IF ( this -> issuer ) ;\n free ( this ) ;\n }"}
{"idx": 6804, "target": 0, "func": "static int floor_log2 ( uint32 n ) {\n int logval = 0 ;\n if ( n == 0 ) return - 1 ;\n if ( n >= ( 1 << 16 ) ) {\n n >>= 16 ;\n logval += 16 ;\n }\n if ( n >= ( 1 << 8 ) ) {\n n >>= 8 ;\n logval += 8 ;\n }\n if ( n >= ( 1 << 4 ) ) {\n n >>= 4 ;\n logval += 4 ;\n }\n if ( n >= ( 1 << 2 ) ) {\n n >>= 2 ;\n logval += 2 ;\n }\n if ( n >= ( 1 << 1 ) ) {\n logval += 1 ;\n }\n return logval ;\n }"}
{"idx": 6805, "target": 0, "func": "static int dissect_h225_SEQUENCE_OF_SupportedProtocols ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_SEQUENCE_OF_SupportedProtocols , SEQUENCE_OF_SupportedProtocols_sequence_of ) ;\n return offset ;\n }"}
{"idx": 6806, "target": 0, "func": "TEST_F ( BrowsingDataRemoverImplTest , RemoveChannelIDForever ) {\n RemoveChannelIDTester tester ( GetBrowserContext ( ) ) ;\n tester . AddChannelID ( kTestOrigin1 ) ;\n EXPECT_EQ ( 0 , tester . ssl_config_changed_count ( ) ) ;\n EXPECT_EQ ( 1 , tester . ChannelIDCount ( ) ) ;\n BlockUntilBrowsingDataRemoved ( base : : Time ( ) , base : : Time : : Max ( ) , BrowsingDataRemover : : REMOVE_CHANNEL_IDS , false ) ;\n EXPECT_EQ ( BrowsingDataRemover : : REMOVE_CHANNEL_IDS , GetRemovalMask ( ) ) ;\n EXPECT_EQ ( BrowsingDataHelper : : UNPROTECTED_WEB , GetOriginTypeMask ( ) ) ;\n EXPECT_EQ ( 1 , tester . ssl_config_changed_count ( ) ) ;\n EXPECT_EQ ( 0 , tester . ChannelIDCount ( ) ) ;\n }"}
{"idx": 6807, "target": 0, "func": "static int tile_worker_hook ( void * arg1 , void * arg2 ) {\n TileWorkerData * const tile_data = ( TileWorkerData * ) arg1 ;\n const TileInfo * const tile = ( TileInfo * ) arg2 ;\n int mi_row , mi_col ;\n for ( mi_row = tile -> mi_row_start ;\n mi_row < tile -> mi_row_end ;\n mi_row += MI_BLOCK_SIZE ) {\n vp9_zero ( tile_data -> xd . left_context ) ;\n vp9_zero ( tile_data -> xd . left_seg_context ) ;\n for ( mi_col = tile -> mi_col_start ;\n mi_col < tile -> mi_col_end ;\n mi_col += MI_BLOCK_SIZE ) {\n decode_partition ( tile_data -> cm , & tile_data -> xd , tile , mi_row , mi_col , & tile_data -> bit_reader , BLOCK_64X64 ) ;\n }\n }\n return ! tile_data -> xd . corrupted ;\n }"}
{"idx": 6808, "target": 1, "func": "static int dissect_h225_Connect_UUIE ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 528 \"./asn1/h225/h225.cnf\" h225_packet_info * h225_pi ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_Connect_UUIE , Connect_UUIE_sequence ) ;\n # line 532 \"./asn1/h225/h225.cnf\" h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> cs_type = H225_CONNECT ;\n if ( contains_faststart == TRUE ) g_snprintf ( h225_pi -> frame_label , 50 , \"%s OLC (%s)\" , val_to_str ( h225_pi -> cs_type , T_h323_message_body_vals , \"<unknown>\" ) , h225_pi -> frame_label ) ;\n else g_snprintf ( h225_pi -> frame_label , 50 , \"%s\" , val_to_str ( h225_pi -> cs_type , T_h323_message_body_vals , \"<unknown>\" ) ) ;\n }\n return offset ;\n }"}
{"idx": 6809, "target": 1, "func": "IN_PROC_BROWSER_TEST_P ( BrowserCloseManagerWithDownloadsBrowserTest , TestWithOffTheRecordDownloads ) {\n Profile * otr_profile = browser ( ) -> profile ( ) -> GetOffTheRecordProfile ( ) ;\n SetDownloadPathForProfile ( otr_profile ) ;\n Browser * otr_browser = CreateBrowser ( otr_profile ) ;\n {\n RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , 1 ) ;\n browser ( ) -> window ( ) -> Close ( ) ;\n close_observer . Wait ( ) ;\n }\n ASSERT_NO_FATAL_FAILURE ( CreateStalledDownload ( otr_browser ) ) ;\n content : : TestNavigationObserver navigation_observer ( otr_browser -> tab_strip_model ( ) -> GetActiveWebContents ( ) , 1 ) ;\n TestBrowserCloseManager : : AttemptClose ( TestBrowserCloseManager : : USER_CHOICE_USER_CANCELS_CLOSE ) ;\n EXPECT_FALSE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n navigation_observer . Wait ( ) ;\n EXPECT_EQ ( GURL ( chrome : : kChromeUIDownloadsURL ) , otr_browser -> tab_strip_model ( ) -> GetActiveWebContents ( ) -> GetURL ( ) ) ;\n RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , 1 ) ;\n TestBrowserCloseManager : : AttemptClose ( TestBrowserCloseManager : : USER_CHOICE_USER_ALLOWS_CLOSE ) ;\n close_observer . Wait ( ) ;\n EXPECT_TRUE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_TRUE ( BrowserList : : GetInstance ( ) -> empty ( ) ) ;\n EXPECT_EQ ( 0 , DownloadCoreService : : NonMaliciousDownloadCountAllProfiles ( ) ) ;\n }"}
{"idx": 6810, "target": 0, "func": "static php_uint32 phar_tar_number ( char * buf , int len ) {\n php_uint32 num = 0 ;\n int i = 0 ;\n while ( i < len && buf [ i ] == ' ' ) {\n ++ i ;\n }\n while ( i < len && buf [ i ] >= '0' && buf [ i ] <= '7' ) {\n num = num * 8 + ( buf [ i ] - '0' ) ;\n ++ i ;\n }\n return num ;\n }"}
{"idx": 6811, "target": 0, "func": "static int job_notify_hf_index ( int field ) {\n int result = - 1 ;\n switch ( field ) {\n case JOB_NOTIFY_PRINTER_NAME : result = hf_printername ;\n break ;\n case JOB_NOTIFY_MACHINE_NAME : result = hf_machinename ;\n break ;\n case JOB_NOTIFY_PORT_NAME : result = hf_portname ;\n break ;\n case JOB_NOTIFY_USER_NAME : result = hf_username ;\n break ;\n case JOB_NOTIFY_NOTIFY_NAME : result = hf_notifyname ;\n break ;\n case JOB_NOTIFY_DATATYPE : result = hf_datatype ;\n break ;\n case JOB_NOTIFY_PRINT_PROCESSOR : result = hf_printprocessor ;\n break ;\n case JOB_NOTIFY_DRIVER_NAME : result = hf_drivername ;\n break ;\n case JOB_NOTIFY_DOCUMENT : result = hf_documentname ;\n break ;\n case JOB_NOTIFY_PRIORITY : result = hf_job_priority ;\n break ;\n case JOB_NOTIFY_POSITION : result = hf_job_position ;\n break ;\n case JOB_NOTIFY_TOTAL_PAGES : result = hf_job_totalpages ;\n break ;\n case JOB_NOTIFY_PAGES_PRINTED : result = hf_job_pagesprinted ;\n break ;\n case JOB_NOTIFY_TOTAL_BYTES : result = hf_job_totalbytes ;\n break ;\n case JOB_NOTIFY_BYTES_PRINTED : result = hf_job_bytesprinted ;\n break ;\n }\n return result ;\n }"}
{"idx": 6812, "target": 0, "func": "gboolean logcat_text_threadtime_dump_open ( wtap_dumper * wdh , int * err _U_ ) {\n struct dumper_t * dumper ;\n dumper = ( struct dumper_t * ) g_malloc ( sizeof ( struct dumper_t ) ) ;\n dumper -> type = DUMP_THREADTIME ;\n wdh -> priv = dumper ;\n wdh -> subtype_write = logcat_dump_text ;\n wdh -> subtype_close = NULL ;\n return TRUE ;\n }"}
{"idx": 6813, "target": 0, "func": "static bool tsc_khz_needed ( void * opaque ) {\n X86CPU * cpu = opaque ;\n CPUX86State * env = & cpu -> env ;\n MachineClass * mc = MACHINE_GET_CLASS ( qdev_get_machine ( ) ) ;\n PCMachineClass * pcmc = PC_MACHINE_CLASS ( mc ) ;\n return env -> tsc_khz && pcmc -> save_tsc_khz ;\n }"}
{"idx": 6814, "target": 0, "func": "void config_nic_rules ( config_tree * ptree ) {\n nic_rule_node * curr_node ;\n sockaddr_u addr ;\n nic_rule_match match_type ;\n nic_rule_action action ;\n char * if_name ;\n char * pchSlash ;\n int prefixlen ;\n int addrbits ;\n curr_node = HEAD_PFIFO ( ptree -> nic_rules ) ;\n if ( curr_node != NULL && ( HAVE_OPT ( NOVIRTUALIPS ) || HAVE_OPT ( INTERFACE ) ) ) {\n msyslog ( LOG_ERR , \"interfaceic rules are not allowed with --interface (-I) or --novirtualips (-L)%s\" , ( input_from_file ) ? \", exiting\" : \"\" ) ;\n if ( input_from_file ) exit ( 1 ) ;\n else return ;\n }\n for ( ;\n curr_node != NULL ;\n curr_node = curr_node -> link ) {\n prefixlen = - 1 ;\n if_name = curr_node -> if_name ;\n if ( if_name != NULL ) if_name = estrdup ( if_name ) ;\n switch ( curr_node -> match_class ) {\n default : match_type = MATCH_ALL ;\n NTP_INSIST ( 0 ) ;\n break ;\n case 0 : NTP_INSIST ( if_name != NULL ) ;\n pchSlash = strchr ( if_name , '/' ) ;\n if ( pchSlash != NULL ) * pchSlash = '\\0' ;\n if ( is_ip_address ( if_name , AF_UNSPEC , & addr ) ) {\n match_type = MATCH_IFADDR ;\n if ( pchSlash != NULL ) {\n sscanf ( pchSlash + 1 , \"%d\" , & prefixlen ) ;\n addrbits = 8 * SIZEOF_INADDR ( AF ( & addr ) ) ;\n prefixlen = max ( - 1 , prefixlen ) ;\n prefixlen = min ( prefixlen , addrbits ) ;\n }\n }\n else {\n match_type = MATCH_IFNAME ;\n if ( pchSlash != NULL ) * pchSlash = '/' ;\n }\n break ;\n case T_All : match_type = MATCH_ALL ;\n break ;\n case T_Ipv4 : match_type = MATCH_IPV4 ;\n break ;\n case T_Ipv6 : match_type = MATCH_IPV6 ;\n break ;\n case T_Wildcard : match_type = MATCH_WILDCARD ;\n break ;\n }\n switch ( curr_node -> action ) {\n default : action = ACTION_LISTEN ;\n NTP_INSIST ( 0 ) ;\n break ;\n case T_Listen : action = ACTION_LISTEN ;\n break ;\n case T_Ignore : action = ACTION_IGNORE ;\n break ;\n case T_Drop : action = ACTION_DROP ;\n break ;\n }\n add_nic_rule ( match_type , if_name , prefixlen , action ) ;\n timer_interfacetimeout ( current_time + 2 ) ;\n if ( if_name != NULL ) free ( if_name ) ;\n }\n }"}
{"idx": 6815, "target": 0, "func": "void safeputchar ( netdissect_options * ndo , const u_char c ) {\n ND_PRINT ( ( ndo , ( c < 0x80 && ND_ISPRINT ( c ) ) ? \"%c\" : \"\\\\0x%02x\" , c ) ) ;\n }"}
{"idx": 6816, "target": 1, "func": "static void fadst16 ( const int16_t * input , int16_t * output ) {\n int s0 , s1 , s2 , s3 , s4 , s5 , s6 , s7 , s8 , s9 , s10 , s11 , s12 , s13 , s14 , s15 ;\n int x0 = input [ 15 ] ;\n int x1 = input [ 0 ] ;\n int x2 = input [ 13 ] ;\n int x3 = input [ 2 ] ;\n int x4 = input [ 11 ] ;\n int x5 = input [ 4 ] ;\n int x6 = input [ 9 ] ;\n int x7 = input [ 6 ] ;\n int x8 = input [ 7 ] ;\n int x9 = input [ 8 ] ;\n int x10 = input [ 5 ] ;\n int x11 = input [ 10 ] ;\n int x12 = input [ 3 ] ;\n int x13 = input [ 12 ] ;\n int x14 = input [ 1 ] ;\n int x15 = input [ 14 ] ;\n s0 = x0 * cospi_1_64 + x1 * cospi_31_64 ;\n s1 = x0 * cospi_31_64 - x1 * cospi_1_64 ;\n s2 = x2 * cospi_5_64 + x3 * cospi_27_64 ;\n s3 = x2 * cospi_27_64 - x3 * cospi_5_64 ;\n s4 = x4 * cospi_9_64 + x5 * cospi_23_64 ;\n s5 = x4 * cospi_23_64 - x5 * cospi_9_64 ;\n s6 = x6 * cospi_13_64 + x7 * cospi_19_64 ;\n s7 = x6 * cospi_19_64 - x7 * cospi_13_64 ;\n s8 = x8 * cospi_17_64 + x9 * cospi_15_64 ;\n s9 = x8 * cospi_15_64 - x9 * cospi_17_64 ;\n s10 = x10 * cospi_21_64 + x11 * cospi_11_64 ;\n s11 = x10 * cospi_11_64 - x11 * cospi_21_64 ;\n s12 = x12 * cospi_25_64 + x13 * cospi_7_64 ;\n s13 = x12 * cospi_7_64 - x13 * cospi_25_64 ;\n s14 = x14 * cospi_29_64 + x15 * cospi_3_64 ;\n s15 = x14 * cospi_3_64 - x15 * cospi_29_64 ;\n x0 = fdct_round_shift ( s0 + s8 ) ;\n x1 = fdct_round_shift ( s1 + s9 ) ;\n x2 = fdct_round_shift ( s2 + s10 ) ;\n x3 = fdct_round_shift ( s3 + s11 ) ;\n x4 = fdct_round_shift ( s4 + s12 ) ;\n x5 = fdct_round_shift ( s5 + s13 ) ;\n x6 = fdct_round_shift ( s6 + s14 ) ;\n x7 = fdct_round_shift ( s7 + s15 ) ;\n x8 = fdct_round_shift ( s0 - s8 ) ;\n x9 = fdct_round_shift ( s1 - s9 ) ;\n x10 = fdct_round_shift ( s2 - s10 ) ;\n x11 = fdct_round_shift ( s3 - s11 ) ;\n x12 = fdct_round_shift ( s4 - s12 ) ;\n x13 = fdct_round_shift ( s5 - s13 ) ;\n x14 = fdct_round_shift ( s6 - s14 ) ;\n x15 = fdct_round_shift ( s7 - s15 ) ;\n s0 = x0 ;\n s1 = x1 ;\n s2 = x2 ;\n s3 = x3 ;\n s4 = x4 ;\n s5 = x5 ;\n s6 = x6 ;\n s7 = x7 ;\n s8 = x8 * cospi_4_64 + x9 * cospi_28_64 ;\n s9 = x8 * cospi_28_64 - x9 * cospi_4_64 ;\n s10 = x10 * cospi_20_64 + x11 * cospi_12_64 ;\n s11 = x10 * cospi_12_64 - x11 * cospi_20_64 ;\n s12 = - x12 * cospi_28_64 + x13 * cospi_4_64 ;\n s13 = x12 * cospi_4_64 + x13 * cospi_28_64 ;\n s14 = - x14 * cospi_12_64 + x15 * cospi_20_64 ;\n s15 = x14 * cospi_20_64 + x15 * cospi_12_64 ;\n x0 = s0 + s4 ;\n x1 = s1 + s5 ;\n x2 = s2 + s6 ;\n x3 = s3 + s7 ;\n x4 = s0 - s4 ;\n x5 = s1 - s5 ;\n x6 = s2 - s6 ;\n x7 = s3 - s7 ;\n x8 = fdct_round_shift ( s8 + s12 ) ;\n x9 = fdct_round_shift ( s9 + s13 ) ;\n x10 = fdct_round_shift ( s10 + s14 ) ;\n x11 = fdct_round_shift ( s11 + s15 ) ;\n x12 = fdct_round_shift ( s8 - s12 ) ;\n x13 = fdct_round_shift ( s9 - s13 ) ;\n x14 = fdct_round_shift ( s10 - s14 ) ;\n x15 = fdct_round_shift ( s11 - s15 ) ;\n s0 = x0 ;\n s1 = x1 ;\n s2 = x2 ;\n s3 = x3 ;\n s4 = x4 * cospi_8_64 + x5 * cospi_24_64 ;\n s5 = x4 * cospi_24_64 - x5 * cospi_8_64 ;\n s6 = - x6 * cospi_24_64 + x7 * cospi_8_64 ;\n s7 = x6 * cospi_8_64 + x7 * cospi_24_64 ;\n s8 = x8 ;\n s9 = x9 ;\n s10 = x10 ;\n s11 = x11 ;\n s12 = x12 * cospi_8_64 + x13 * cospi_24_64 ;\n s13 = x12 * cospi_24_64 - x13 * cospi_8_64 ;\n s14 = - x14 * cospi_24_64 + x15 * cospi_8_64 ;\n s15 = x14 * cospi_8_64 + x15 * cospi_24_64 ;\n x0 = s0 + s2 ;\n x1 = s1 + s3 ;\n x2 = s0 - s2 ;\n x3 = s1 - s3 ;\n x4 = fdct_round_shift ( s4 + s6 ) ;\n x5 = fdct_round_shift ( s5 + s7 ) ;\n x6 = fdct_round_shift ( s4 - s6 ) ;\n x7 = fdct_round_shift ( s5 - s7 ) ;\n x8 = s8 + s10 ;\n x9 = s9 + s11 ;\n x10 = s8 - s10 ;\n x11 = s9 - s11 ;\n x12 = fdct_round_shift ( s12 + s14 ) ;\n x13 = fdct_round_shift ( s13 + s15 ) ;\n x14 = fdct_round_shift ( s12 - s14 ) ;\n x15 = fdct_round_shift ( s13 - s15 ) ;\n s2 = ( - cospi_16_64 ) * ( x2 + x3 ) ;\n s3 = cospi_16_64 * ( x2 - x3 ) ;\n s6 = cospi_16_64 * ( x6 + x7 ) ;\n s7 = cospi_16_64 * ( - x6 + x7 ) ;\n s10 = cospi_16_64 * ( x10 + x11 ) ;\n s11 = cospi_16_64 * ( - x10 + x11 ) ;\n s14 = ( - cospi_16_64 ) * ( x14 + x15 ) ;\n s15 = cospi_16_64 * ( x14 - x15 ) ;\n x2 = fdct_round_shift ( s2 ) ;\n x3 = fdct_round_shift ( s3 ) ;\n x6 = fdct_round_shift ( s6 ) ;\n x7 = fdct_round_shift ( s7 ) ;\n x10 = fdct_round_shift ( s10 ) ;\n x11 = fdct_round_shift ( s11 ) ;\n x14 = fdct_round_shift ( s14 ) ;\n x15 = fdct_round_shift ( s15 ) ;\n output [ 0 ] = x0 ;\n output [ 1 ] = - x8 ;\n output [ 2 ] = x12 ;\n output [ 3 ] = - x4 ;\n output [ 4 ] = x6 ;\n output [ 5 ] = x14 ;\n output [ 6 ] = x10 ;\n output [ 7 ] = x2 ;\n output [ 8 ] = x3 ;\n output [ 9 ] = x11 ;\n output [ 10 ] = x15 ;\n output [ 11 ] = x7 ;\n output [ 12 ] = x5 ;\n output [ 13 ] = - x13 ;\n output [ 14 ] = x9 ;\n output [ 15 ] = - x1 ;\n }"}
{"idx": 6817, "target": 0, "func": "static int dissect_h245_CapabilityTableEntryNumber ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 65535U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 6818, "target": 0, "func": "static VALUE mNilClass_to_json ( int argc , VALUE * argv , VALUE self ) {\n GENERATE_JSON ( null ) ;\n }"}
{"idx": 6819, "target": 0, "func": "void vp9_xform_quant_fp ( MACROBLOCK * x , int plane , int block , BLOCK_SIZE plane_bsize , TX_SIZE tx_size ) {\n MACROBLOCKD * const xd = & x -> e_mbd ;\n const struct macroblock_plane * const p = & x -> plane [ plane ] ;\n const struct macroblockd_plane * const pd = & xd -> plane [ plane ] ;\n const scan_order * const scan_order = & vp9_default_scan_orders [ tx_size ] ;\n tran_low_t * const coeff = BLOCK_OFFSET ( p -> coeff , block ) ;\n tran_low_t * const qcoeff = BLOCK_OFFSET ( p -> qcoeff , block ) ;\n tran_low_t * const dqcoeff = BLOCK_OFFSET ( pd -> dqcoeff , block ) ;\n uint16_t * const eob = & p -> eobs [ block ] ;\n const int diff_stride = 4 * num_4x4_blocks_wide_lookup [ plane_bsize ] ;\n int i , j ;\n const int16_t * src_diff ;\n txfrm_block_to_raster_xy ( plane_bsize , tx_size , block , & i , & j ) ;\n src_diff = & p -> src_diff [ 4 * ( j * diff_stride + i ) ] ;\n switch ( tx_size ) {\n case TX_32X32 : fdct32x32 ( x -> use_lp32x32fdct , src_diff , coeff , diff_stride ) ;\n vp9_quantize_fp_32x32 ( coeff , 1024 , x -> skip_block , p -> zbin , p -> round_fp , p -> quant_fp , p -> quant_shift , qcoeff , dqcoeff , pd -> dequant , p -> zbin_extra , eob , scan_order -> scan , scan_order -> iscan ) ;\n break ;\n case TX_16X16 : vp9_fdct16x16 ( src_diff , coeff , diff_stride ) ;\n vp9_quantize_fp ( coeff , 256 , x -> skip_block , p -> zbin , p -> round_fp , p -> quant_fp , p -> quant_shift , qcoeff , dqcoeff , pd -> dequant , p -> zbin_extra , eob , scan_order -> scan , scan_order -> iscan ) ;\n break ;\n case TX_8X8 : vp9_fdct8x8 ( src_diff , coeff , diff_stride ) ;\n vp9_quantize_fp ( coeff , 64 , x -> skip_block , p -> zbin , p -> round_fp , p -> quant_fp , p -> quant_shift , qcoeff , dqcoeff , pd -> dequant , p -> zbin_extra , eob , scan_order -> scan , scan_order -> iscan ) ;\n break ;\n case TX_4X4 : x -> fwd_txm4x4 ( src_diff , coeff , diff_stride ) ;\n vp9_quantize_fp ( coeff , 16 , x -> skip_block , p -> zbin , p -> round_fp , p -> quant_fp , p -> quant_shift , qcoeff , dqcoeff , pd -> dequant , p -> zbin_extra , eob , scan_order -> scan , scan_order -> iscan ) ;\n break ;\n default : assert ( 0 ) ;\n break ;\n }\n }"}
{"idx": 6820, "target": 0, "func": "TSAction TSCacheRead ( TSCont contp , TSCacheKey key ) {\n sdk_assert ( sdk_sanity_check_iocore_structure ( contp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_cachekey ( key ) == TS_SUCCESS ) ;\n FORCE_PLUGIN_SCOPED_MUTEX ( contp ) ;\n CacheInfo * info = ( CacheInfo * ) key ;\n Continuation * i = ( INKContInternal * ) contp ;\n return ( TSAction ) cacheProcessor . open_read ( i , & info -> cache_key , true , info -> frag_type , info -> hostname , info -> len ) ;\n }"}
{"idx": 6821, "target": 0, "func": "int process_netbios_name ( const guchar * name_ptr , char * name_ret , int name_ret_len ) {\n int i ;\n int name_type = * ( name_ptr + NETBIOS_NAME_LEN - 1 ) ;\n guchar name_char ;\n char * name_ret_orig = name_ret ;\n static const char hex_digits [ 16 ] = {\n '0' , '1' , '2' , '3' , '4' , '5' , '6' , '7' , '8' , '9' , 'a' , 'b' , 'c' , 'd' , 'e' , 'f' }\n ;\n for ( i = 0 ;\n i < NETBIOS_NAME_LEN - 1 ;\n i ++ ) {\n name_char = * name_ptr ++ ;\n if ( name_char >= ' ' && name_char <= '~' ) {\n if ( -- name_ret_len > 0 ) * name_ret ++ = name_char ;\n }\n else {\n if ( -- name_ret_len > 0 ) * name_ret ++ = '<' ;\n if ( -- name_ret_len > 0 ) * name_ret ++ = hex_digits [ ( name_char >> 4 ) ] ;\n if ( -- name_ret_len > 0 ) * name_ret ++ = hex_digits [ ( name_char & 0x0F ) ] ;\n if ( -- name_ret_len > 0 ) * name_ret ++ = '>' ;\n }\n }\n * name_ret = '\\0' ;\n name_ret -- ;\n while ( name_ret >= name_ret_orig ) {\n if ( * name_ret != ' ' ) {\n * ( name_ret + 1 ) = 0 ;\n break ;\n }\n name_ret -- ;\n }\n return name_type ;\n }"}
{"idx": 6822, "target": 0, "func": "static int nsv_read_header ( AVFormatContext * s ) {\n NSVContext * nsv = s -> priv_data ;\n int i , err ;\n nsv -> state = NSV_UNSYNC ;\n nsv -> ahead [ 0 ] . data = nsv -> ahead [ 1 ] . data = NULL ;\n for ( i = 0 ;\n i < NSV_MAX_RESYNC_TRIES ;\n i ++ ) {\n if ( nsv_resync ( s ) < 0 ) return - 1 ;\n if ( nsv -> state == NSV_FOUND_NSVF ) {\n err = nsv_parse_NSVf_header ( s ) ;\n if ( err < 0 ) return err ;\n }\n if ( nsv -> state == NSV_FOUND_NSVS ) {\n err = nsv_parse_NSVs_header ( s ) ;\n if ( err < 0 ) return err ;\n break ;\n }\n }\n if ( s -> nb_streams < 1 ) return - 1 ;\n err = nsv_read_chunk ( s , 1 ) ;\n av_log ( s , AV_LOG_TRACE , \"parsed header\\n\" ) ;\n return err ;\n }"}
{"idx": 6823, "target": 1, "func": "void vp9_idct4x4_add ( const int16_t * input , uint8_t * dest , int stride , int eob ) {\n if ( eob > 1 ) vp9_idct4x4_16_add ( input , dest , stride ) ;\n else vp9_idct4x4_1_add ( input , dest , stride ) ;\n }"}
{"idx": 6824, "target": 0, "func": "TSReturnCode TSHttpTxnClientPacketMarkSet ( TSHttpTxn txnp , int mark ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n if ( nullptr == sm -> ua_session ) {\n return TS_ERROR ;\n }\n NetVConnection * vc = sm -> ua_session -> get_netvc ( ) ;\n if ( nullptr == vc ) {\n return TS_ERROR ;\n }\n vc -> options . packet_mark = ( uint32_t ) mark ;\n vc -> apply_options ( ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 6825, "target": 0, "func": "static void test_fetch_column ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND my_bind [ 2 ] ;\n char c2 [ 20 ] , bc2 [ 20 ] ;\n ulong l1 , l2 , bl1 , bl2 ;\n int rc , c1 , bc1 ;\n myheader ( \"test_fetch_column\" ) ;\n rc = mysql_query ( mysql , \"drop table if exists t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t1(c1 int primary key auto_increment, c2 char(10))\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t1(c2) values('venu'), ('mysql')\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"select * from t1 order by c2 desc\" ) ;\n check_stmt ( stmt ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 0 ] . buffer = ( void * ) & bc1 ;\n my_bind [ 0 ] . buffer_length = 0 ;\n my_bind [ 0 ] . is_null = 0 ;\n my_bind [ 0 ] . length = & bl1 ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 1 ] . buffer = ( void * ) bc2 ;\n my_bind [ 1 ] . buffer_length = 7 ;\n my_bind [ 1 ] . is_null = 0 ;\n my_bind [ 1 ] . length = & bl2 ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_store_result ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch_column ( stmt , my_bind , 1 , 0 ) ;\n check_execute_r ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n row 0: %d, %s\" , bc1 , bc2 ) ;\n c2 [ 0 ] = '\\0' ;\n l2 = 0 ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 0 ] . buffer = ( void * ) c2 ;\n my_bind [ 0 ] . buffer_length = 7 ;\n my_bind [ 0 ] . is_null = 0 ;\n my_bind [ 0 ] . length = & l2 ;\n rc = mysql_stmt_fetch_column ( stmt , my_bind , 1 , 0 ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n col 1: %s(%ld)\" , c2 , l2 ) ;\n DIE_UNLESS ( strncmp ( c2 , \"venu\" , 4 ) == 0 && l2 == 4 ) ;\n c2 [ 0 ] = '\\0' ;\n l2 = 0 ;\n rc = mysql_stmt_fetch_column ( stmt , my_bind , 1 , 0 ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n col 1: %s(%ld)\" , c2 , l2 ) ;\n DIE_UNLESS ( strcmp ( c2 , \"venu\" ) == 0 && l2 == 4 ) ;\n c1 = 0 ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 0 ] . buffer = ( void * ) & c1 ;\n my_bind [ 0 ] . buffer_length = 0 ;\n my_bind [ 0 ] . is_null = 0 ;\n my_bind [ 0 ] . length = & l1 ;\n rc = mysql_stmt_fetch_column ( stmt , my_bind , 0 , 0 ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n col 0: %d(%ld)\" , c1 , l1 ) ;\n DIE_UNLESS ( c1 == 1 && l1 == 4 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n row 1: %d, %s\" , bc1 , bc2 ) ;\n c2 [ 0 ] = '\\0' ;\n l2 = 0 ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 0 ] . buffer = ( void * ) c2 ;\n my_bind [ 0 ] . buffer_length = 7 ;\n my_bind [ 0 ] . is_null = 0 ;\n my_bind [ 0 ] . length = & l2 ;\n rc = mysql_stmt_fetch_column ( stmt , my_bind , 1 , 0 ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n col 1: %s(%ld)\" , c2 , l2 ) ;\n DIE_UNLESS ( strncmp ( c2 , \"mysq\" , 4 ) == 0 && l2 == 5 ) ;\n c2 [ 0 ] = '\\0' ;\n l2 = 0 ;\n rc = mysql_stmt_fetch_column ( stmt , my_bind , 1 , 0 ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n col 1: %si(%ld)\" , c2 , l2 ) ;\n DIE_UNLESS ( strcmp ( c2 , \"mysql\" ) == 0 && l2 == 5 ) ;\n c1 = 0 ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 0 ] . buffer = ( void * ) & c1 ;\n my_bind [ 0 ] . buffer_length = 0 ;\n my_bind [ 0 ] . is_null = 0 ;\n my_bind [ 0 ] . length = & l1 ;\n rc = mysql_stmt_fetch_column ( stmt , my_bind , 0 , 0 ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n col 0: %d(%ld)\" , c1 , l1 ) ;\n DIE_UNLESS ( c1 == 2 && l1 == 4 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n rc = mysql_stmt_fetch_column ( stmt , my_bind , 1 , 0 ) ;\n check_execute_r ( stmt , rc ) ;\n mysql_stmt_close ( stmt ) ;\n myquery ( mysql_query ( mysql , \"drop table t1\" ) ) ;\n }"}
{"idx": 6826, "target": 0, "func": "static void h225_stat_reset ( stat_tap_table * table ) {\n guint element ;\n stat_tap_table_item_type * item_data ;\n for ( element = 0 ;\n element < table -> num_elements ;\n element ++ ) {\n item_data = new_stat_tap_get_field_data ( table , element , COUNT_COLUMN ) ;\n item_data -> value . uint_value = 0 ;\n new_stat_tap_set_field_data ( table , element , COUNT_COLUMN , item_data ) ;\n }\n }"}
{"idx": 6827, "target": 0, "func": "static int switch_db_collation ( FILE * sql_file , const char * db_name , const char * delimiter , const char * current_db_cl_name , const char * required_db_cl_name , int * db_cl_altered ) {\n if ( strcmp ( current_db_cl_name , required_db_cl_name ) != 0 ) {\n char quoted_db_buf [ NAME_LEN * 2 + 3 ] ;\n char * quoted_db_name = quote_name ( db_name , quoted_db_buf , FALSE ) ;\n CHARSET_INFO * db_cl = get_charset_by_name ( required_db_cl_name , MYF ( 0 ) ) ;\n if ( ! db_cl ) return 1 ;\n fprintf ( sql_file , \"ALTER DATABASE %s CHARACTER SET %s COLLATE %s %s\\n\" , ( const char * ) quoted_db_name , ( const char * ) db_cl -> csname , ( const char * ) db_cl -> name , ( const char * ) delimiter ) ;\n * db_cl_altered = 1 ;\n return 0 ;\n }\n * db_cl_altered = 0 ;\n return 0 ;\n }"}
{"idx": 6828, "target": 0, "func": "int init_dumping_views ( char * qdatabase __attribute__ ( ( unused ) ) ) {\n return 0 ;\n }"}
{"idx": 6829, "target": 0, "func": "void message_decoder_set_return_binary ( struct message_decoder_context * ctx , bool set ) {\n if ( set ) ctx -> flags |= MESSAGE_DECODER_FLAG_RETURN_BINARY ;\n else ctx -> flags &= ~ MESSAGE_DECODER_FLAG_RETURN_BINARY ;\n message_decode_body_init_charset ( ctx , ctx -> prev_part ) ;\n }"}
{"idx": 6830, "target": 0, "func": "static vpx_codec_err_t ctrl_set_arnr_type ( vpx_codec_alg_priv_t * ctx , va_list args ) {\n ( void ) ctx ;\n ( void ) args ;\n return VPX_CODEC_OK ;\n }"}
{"idx": 6831, "target": 0, "func": "static ossl_inline int sk_ ## t1 ## _reserve ( STACK_OF ( t1 ) * sk , int n ) {\n return OPENSSL_sk_reserve ( ( OPENSSL_STACK * ) sk , n ) ;\n }\n static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 6832, "target": 0, "func": "static inline int symmetric_dequant ( int code , int levels ) {\n return ( ( code - ( levels >> 1 ) ) << 24 ) / levels ;\n }"}
{"idx": 6833, "target": 0, "func": "static void fts_build_tokenized_hdr_update_lang ( struct fts_mail_build_context * ctx , const struct message_header_line * hdr ) {\n if ( fts_header_has_language ( hdr -> name ) || data_has_8bit ( hdr -> full_value , hdr -> full_value_len ) ) ctx -> cur_user_lang = NULL ;\n else {\n fts_mail_build_ctx_set_lang ( ctx , fts_user_get_data_lang ( ctx -> update_ctx -> backend -> ns -> user ) ) ;\n }\n }"}
{"idx": 6834, "target": 0, "func": "static int dissect_h245_GenericParameter ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_GenericParameter , GenericParameter_sequence ) ;\n return offset ;\n }"}
{"idx": 6835, "target": 0, "func": "static int set_palette ( BethsoftvidContext * ctx ) {\n uint32_t * palette = ( uint32_t * ) ctx -> frame . data [ 1 ] ;\n int a ;\n if ( bytestream2_get_bytes_left ( & ctx -> g ) < 256 * 3 ) return AVERROR_INVALIDDATA ;\n for ( a = 0 ;\n a < 256 ;\n a ++ ) {\n palette [ a ] = bytestream2_get_be24u ( & ctx -> g ) * 4 ;\n }\n ctx -> frame . palette_has_changed = 1 ;\n return 0 ;\n }"}
{"idx": 6836, "target": 0, "func": "static void gtkui_connection_data_split ( void ) {\n GtkWidget * vbox , * scrolled , * label , * child ;\n GtkWidget * hbox_big , * hbox_small , * button ;\n GtkTextIter iter ;\n char tmp [ MAX_ASCII_ADDR_LEN ] ;\n char title [ MAX_ASCII_ADDR_LEN + 6 ] ;\n static gint scroll_split = 1 ;\n DEBUG_MSG ( \"gtk_connection_data_split\" ) ;\n conntrack_hook_conn_del ( curr_conn , join_print_po ) ;\n if ( data_window ) {\n child = gtk_bin_get_child ( GTK_BIN ( data_window ) ) ;\n gtk_container_remove ( GTK_CONTAINER ( data_window ) , child ) ;\n textview3 = NULL ;\n joinedbuf = NULL ;\n endmark3 = NULL ;\n }\n else {\n data_window = gtkui_page_new ( \"Connection data\" , & gtkui_destroy_conndata , & gtkui_connection_data_detach ) ;\n }\n curr_conn -> flags |= CONN_VIEWING ;\n hbox_big = gtkui_box_new ( GTK_ORIENTATION_HORIZONTAL , 5 , TRUE ) ;\n gtk_container_add ( GTK_CONTAINER ( data_window ) , hbox_big ) ;\n gtk_widget_show ( hbox_big ) ;\n vbox = gtkui_box_new ( GTK_ORIENTATION_VERTICAL , 0 , FALSE ) ;\n gtk_box_pack_start ( GTK_BOX ( hbox_big ) , vbox , TRUE , TRUE , 0 ) ;\n gtk_widget_show ( vbox ) ;\n snprintf ( title , MAX_ASCII_ADDR_LEN + 6 , \"%s:%d\" , ip_addr_ntoa ( & curr_conn -> L3_addr1 , tmp ) , ntohs ( curr_conn -> L4_addr1 ) ) ;\n label = gtk_label_new ( title ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_box_pack_start ( GTK_BOX ( vbox ) , label , FALSE , FALSE , 0 ) ;\n gtk_widget_show ( label ) ;\n scrolled = gtk_scrolled_window_new ( NULL , NULL ) ;\n gtk_scrolled_window_set_policy ( GTK_SCROLLED_WINDOW ( scrolled ) , GTK_POLICY_AUTOMATIC , GTK_POLICY_AUTOMATIC ) ;\n gtk_scrolled_window_set_shadow_type ( GTK_SCROLLED_WINDOW ( scrolled ) , GTK_SHADOW_IN ) ;\n gtk_box_pack_start ( GTK_BOX ( vbox ) , scrolled , TRUE , TRUE , 0 ) ;\n gtk_widget_show ( scrolled ) ;\n textview1 = gtk_text_view_new ( ) ;\n gtk_text_view_set_wrap_mode ( GTK_TEXT_VIEW ( textview1 ) , GTK_WRAP_CHAR ) ;\n gtk_text_view_set_editable ( GTK_TEXT_VIEW ( textview1 ) , FALSE ) ;\n gtk_text_view_set_cursor_visible ( GTK_TEXT_VIEW ( textview1 ) , FALSE ) ;\n gtk_text_view_set_right_margin ( GTK_TEXT_VIEW ( textview1 ) , 5 ) ;\n gtk_text_view_set_right_margin ( GTK_TEXT_VIEW ( textview1 ) , 5 ) ;\n gtk_container_add ( GTK_CONTAINER ( scrolled ) , textview1 ) ;\n gtk_widget_show ( textview1 ) ;\n splitbuf1 = gtk_text_view_get_buffer ( GTK_TEXT_VIEW ( textview1 ) ) ;\n gtk_text_buffer_create_tag ( splitbuf1 , \"blue_fg\" , \"foreground\" , \"blue\" , NULL ) ;\n gtk_text_buffer_create_tag ( splitbuf1 , \"monospace\" , \"family\" , \"monospace\" , NULL ) ;\n gtk_text_buffer_get_end_iter ( splitbuf1 , & iter ) ;\n endmark1 = gtk_text_buffer_create_mark ( splitbuf1 , \"end\" , & iter , FALSE ) ;\n hbox_small = gtkui_box_new ( GTK_ORIENTATION_HORIZONTAL , 5 , TRUE ) ;\n gtk_box_pack_start ( GTK_BOX ( vbox ) , hbox_small , FALSE , FALSE , 0 ) ;\n gtk_widget_show ( hbox_small ) ;\n button = gtk_button_new_with_mnemonic ( \"_Join Views\" ) ;\n g_signal_connect ( G_OBJECT ( button ) , \"clicked\" , G_CALLBACK ( gtkui_connection_data_join ) , NULL ) ;\n gtk_box_pack_start ( GTK_BOX ( hbox_small ) , button , TRUE , TRUE , 0 ) ;\n gtk_widget_show ( button ) ;\n button = gtk_button_new_with_mnemonic ( \"_Inject Data\" ) ;\n g_signal_connect ( G_OBJECT ( button ) , \"clicked\" , G_CALLBACK ( gtkui_connection_inject ) , NULL ) ;\n gtk_box_pack_start ( GTK_BOX ( hbox_small ) , button , TRUE , TRUE , 0 ) ;\n gtk_widget_show ( button ) ;\n vbox = gtkui_box_new ( GTK_ORIENTATION_VERTICAL , 0 , FALSE ) ;\n gtk_box_pack_start ( GTK_BOX ( hbox_big ) , vbox , TRUE , TRUE , 0 ) ;\n gtk_widget_show ( vbox ) ;\n snprintf ( title , MAX_ASCII_ADDR_LEN + 6 , \"%s:%d\" , ip_addr_ntoa ( & curr_conn -> L3_addr2 , tmp ) , ntohs ( curr_conn -> L4_addr2 ) ) ;\n label = gtk_label_new ( title ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_box_pack_start ( GTK_BOX ( vbox ) , label , FALSE , FALSE , 0 ) ;\n gtk_widget_show ( label ) ;\n scrolled = gtk_scrolled_window_new ( NULL , NULL ) ;\n gtk_scrolled_window_set_policy ( GTK_SCROLLED_WINDOW ( scrolled ) , GTK_POLICY_AUTOMATIC , GTK_POLICY_AUTOMATIC ) ;\n gtk_scrolled_window_set_shadow_type ( GTK_SCROLLED_WINDOW ( scrolled ) , GTK_SHADOW_IN ) ;\n gtk_box_pack_start ( GTK_BOX ( vbox ) , scrolled , TRUE , TRUE , 0 ) ;\n gtk_widget_show ( scrolled ) ;\n textview2 = gtk_text_view_new ( ) ;\n gtk_text_view_set_wrap_mode ( GTK_TEXT_VIEW ( textview2 ) , GTK_WRAP_CHAR ) ;\n gtk_text_view_set_editable ( GTK_TEXT_VIEW ( textview2 ) , FALSE ) ;\n gtk_text_view_set_cursor_visible ( GTK_TEXT_VIEW ( textview2 ) , FALSE ) ;\n gtk_text_view_set_right_margin ( GTK_TEXT_VIEW ( textview2 ) , 5 ) ;\n gtk_text_view_set_right_margin ( GTK_TEXT_VIEW ( textview2 ) , 5 ) ;\n gtk_container_add ( GTK_CONTAINER ( scrolled ) , textview2 ) ;\n gtk_widget_show ( textview2 ) ;\n splitbuf2 = gtk_text_view_get_buffer ( GTK_TEXT_VIEW ( textview2 ) ) ;\n gtk_text_buffer_create_tag ( splitbuf2 , \"blue_fg\" , \"foreground\" , \"blue\" , NULL ) ;\n gtk_text_buffer_create_tag ( splitbuf2 , \"monospace\" , \"family\" , \"monospace\" , NULL ) ;\n gtk_text_buffer_get_end_iter ( splitbuf2 , & iter ) ;\n endmark2 = gtk_text_buffer_create_mark ( splitbuf2 , \"end\" , & iter , FALSE ) ;\n hbox_small = gtkui_box_new ( GTK_ORIENTATION_HORIZONTAL , 5 , TRUE ) ;\n gtk_box_pack_start ( GTK_BOX ( vbox ) , hbox_small , FALSE , FALSE , 0 ) ;\n gtk_widget_show ( hbox_small ) ;\n button = gtk_button_new_with_mnemonic ( \"Inject _File\" ) ;\n g_signal_connect ( G_OBJECT ( button ) , \"clicked\" , G_CALLBACK ( gtkui_connection_inject_file ) , NULL ) ;\n gtk_box_pack_start ( GTK_BOX ( hbox_small ) , button , TRUE , TRUE , 0 ) ;\n gtk_widget_show ( button ) ;\n button = gtk_button_new_with_mnemonic ( \"_Kill Connection\" ) ;\n g_signal_connect ( G_OBJECT ( button ) , \"clicked\" , G_CALLBACK ( gtkui_connection_kill_curr_conn ) , NULL ) ;\n gtk_box_pack_start ( GTK_BOX ( hbox_small ) , button , TRUE , TRUE , 0 ) ;\n gtk_widget_show ( button ) ;\n gtk_widget_show ( data_window ) ;\n if ( GTK_IS_WINDOW ( data_window ) ) gtk_window_present ( GTK_WINDOW ( data_window ) ) ;\n else gtkui_page_present ( data_window ) ;\n g_timeout_add ( 500 , gtkui_connections_scroll , & scroll_split ) ;\n connbuf_print ( & curr_conn -> data , split_print ) ;\n conntrack_hook_conn_add ( curr_conn , split_print_po ) ;\n }"}
{"idx": 6837, "target": 0, "func": "static void server_port_ready_callback ( int fd , short events , void * arg ) {\n struct evdns_server_port * port = ( struct evdns_server_port * ) arg ;\n ( void ) fd ;\n if ( events & EV_WRITE ) {\n port -> choked = 0 ;\n server_port_flush ( port ) ;\n }\n if ( events & EV_READ ) {\n server_port_read ( port ) ;\n }\n }"}
{"idx": 6838, "target": 0, "func": "static void vc1_decode_b_mb ( VC1Context * v ) {\n MpegEncContext * s = & v -> s ;\n GetBitContext * gb = & s -> gb ;\n int i , j ;\n int mb_pos = s -> mb_x + s -> mb_y * s -> mb_stride ;\n int cbp = 0 ;\n int mqdiff , mquant ;\n int ttmb = v -> ttfrm ;\n int mb_has_coeffs = 0 ;\n int index , index1 ;\n int val , sign ;\n int first_block = 1 ;\n int dst_idx , off ;\n int skipped , direct ;\n int dmv_x [ 2 ] , dmv_y [ 2 ] ;\n int bmvtype = BMV_TYPE_BACKWARD ;\n mquant = v -> pq ;\n s -> mb_intra = 0 ;\n if ( v -> dmb_is_raw ) direct = get_bits1 ( gb ) ;\n else direct = v -> direct_mb_plane [ mb_pos ] ;\n if ( v -> skip_is_raw ) skipped = get_bits1 ( gb ) ;\n else skipped = v -> s . mbskip_table [ mb_pos ] ;\n dmv_x [ 0 ] = dmv_x [ 1 ] = dmv_y [ 0 ] = dmv_y [ 1 ] = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n v -> mb_type [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n s -> dc_val [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n }\n s -> current_picture . qscale_table [ mb_pos ] = 0 ;\n if ( ! direct ) {\n if ( ! skipped ) {\n GET_MVDATA ( dmv_x [ 0 ] , dmv_y [ 0 ] ) ;\n dmv_x [ 1 ] = dmv_x [ 0 ] ;\n dmv_y [ 1 ] = dmv_y [ 0 ] ;\n }\n if ( skipped || ! s -> mb_intra ) {\n bmvtype = decode012 ( gb ) ;\n switch ( bmvtype ) {\n case 0 : bmvtype = ( v -> bfraction >= ( B_FRACTION_DEN / 2 ) ) ? BMV_TYPE_BACKWARD : BMV_TYPE_FORWARD ;\n break ;\n case 1 : bmvtype = ( v -> bfraction >= ( B_FRACTION_DEN / 2 ) ) ? BMV_TYPE_FORWARD : BMV_TYPE_BACKWARD ;\n break ;\n case 2 : bmvtype = BMV_TYPE_INTERPOLATED ;\n dmv_x [ 0 ] = dmv_y [ 0 ] = 0 ;\n }\n }\n }\n for ( i = 0 ;\n i < 6 ;\n i ++ ) v -> mb_type [ 0 ] [ s -> block_index [ i ] ] = s -> mb_intra ;\n if ( skipped ) {\n if ( direct ) bmvtype = BMV_TYPE_INTERPOLATED ;\n vc1_pred_b_mv ( v , dmv_x , dmv_y , direct , bmvtype ) ;\n vc1_b_mc ( v , dmv_x , dmv_y , direct , bmvtype ) ;\n return ;\n }\n if ( direct ) {\n cbp = get_vlc2 ( & v -> s . gb , v -> cbpcy_vlc -> table , VC1_CBPCY_P_VLC_BITS , 2 ) ;\n GET_MQUANT ( ) ;\n s -> mb_intra = 0 ;\n s -> current_picture . qscale_table [ mb_pos ] = mquant ;\n if ( ! v -> ttmbf ) ttmb = get_vlc2 ( gb , ff_vc1_ttmb_vlc [ v -> tt_index ] . table , VC1_TTMB_VLC_BITS , 2 ) ;\n dmv_x [ 0 ] = dmv_y [ 0 ] = dmv_x [ 1 ] = dmv_y [ 1 ] = 0 ;\n vc1_pred_b_mv ( v , dmv_x , dmv_y , direct , bmvtype ) ;\n vc1_b_mc ( v , dmv_x , dmv_y , direct , bmvtype ) ;\n }\n else {\n if ( ! mb_has_coeffs && ! s -> mb_intra ) {\n vc1_pred_b_mv ( v , dmv_x , dmv_y , direct , bmvtype ) ;\n vc1_b_mc ( v , dmv_x , dmv_y , direct , bmvtype ) ;\n return ;\n }\n if ( s -> mb_intra && ! mb_has_coeffs ) {\n GET_MQUANT ( ) ;\n s -> current_picture . qscale_table [ mb_pos ] = mquant ;\n s -> ac_pred = get_bits1 ( gb ) ;\n cbp = 0 ;\n vc1_pred_b_mv ( v , dmv_x , dmv_y , direct , bmvtype ) ;\n }\n else {\n if ( bmvtype == BMV_TYPE_INTERPOLATED ) {\n GET_MVDATA ( dmv_x [ 0 ] , dmv_y [ 0 ] ) ;\n if ( ! mb_has_coeffs ) {\n vc1_pred_b_mv ( v , dmv_x , dmv_y , direct , bmvtype ) ;\n vc1_b_mc ( v , dmv_x , dmv_y , direct , bmvtype ) ;\n return ;\n }\n }\n vc1_pred_b_mv ( v , dmv_x , dmv_y , direct , bmvtype ) ;\n if ( ! s -> mb_intra ) {\n vc1_b_mc ( v , dmv_x , dmv_y , direct , bmvtype ) ;\n }\n if ( s -> mb_intra ) s -> ac_pred = get_bits1 ( gb ) ;\n cbp = get_vlc2 ( & v -> s . gb , v -> cbpcy_vlc -> table , VC1_CBPCY_P_VLC_BITS , 2 ) ;\n GET_MQUANT ( ) ;\n s -> current_picture . qscale_table [ mb_pos ] = mquant ;\n if ( ! v -> ttmbf && ! s -> mb_intra && mb_has_coeffs ) ttmb = get_vlc2 ( gb , ff_vc1_ttmb_vlc [ v -> tt_index ] . table , VC1_TTMB_VLC_BITS , 2 ) ;\n }\n }\n dst_idx = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n s -> dc_val [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n dst_idx += i >> 2 ;\n val = ( ( cbp >> ( 5 - i ) ) & 1 ) ;\n off = ( i & 4 ) ? 0 : ( ( i & 1 ) * 8 + ( i & 2 ) * 4 * s -> linesize ) ;\n v -> mb_type [ 0 ] [ s -> block_index [ i ] ] = s -> mb_intra ;\n if ( s -> mb_intra ) {\n v -> a_avail = v -> c_avail = 0 ;\n if ( i == 2 || i == 3 || ! s -> first_slice_line ) v -> a_avail = v -> mb_type [ 0 ] [ s -> block_index [ i ] - s -> block_wrap [ i ] ] ;\n if ( i == 1 || i == 3 || s -> mb_x ) v -> c_avail = v -> mb_type [ 0 ] [ s -> block_index [ i ] - 1 ] ;\n vc1_decode_intra_block ( v , s -> block [ i ] , i , val , mquant , ( i & 4 ) ? v -> codingset2 : v -> codingset ) ;\n if ( ( i > 3 ) && ( s -> flags & CODEC_FLAG_GRAY ) ) continue ;\n v -> vc1dsp . vc1_inv_trans_8x8 ( s -> block [ i ] ) ;\n if ( v -> rangeredfrm ) for ( j = 0 ;\n j < 64 ;\n j ++ ) s -> block [ i ] [ j ] <<= 1 ;\n s -> dsp . put_signed_pixels_clamped ( s -> block [ i ] , s -> dest [ dst_idx ] + off , i & 4 ? s -> uvlinesize : s -> linesize ) ;\n }\n else if ( val ) {\n vc1_decode_p_block ( v , s -> block [ i ] , i , mquant , ttmb , first_block , s -> dest [ dst_idx ] + off , ( i & 4 ) ? s -> uvlinesize : s -> linesize , ( i & 4 ) && ( s -> flags & CODEC_FLAG_GRAY ) , NULL ) ;\n if ( ! v -> ttmbf && ttmb < 8 ) ttmb = - 1 ;\n first_block = 0 ;\n }\n }\n }"}
{"idx": 6839, "target": 0, "func": "static int vc1_decode_i_block ( VC1Context * v , int16_t block [ 64 ] , int n , int coded , int codingset ) {\n GetBitContext * gb = & v -> s . gb ;\n MpegEncContext * s = & v -> s ;\n int dc_pred_dir = 0 ;\n int i ;\n int16_t * dc_val ;\n int16_t * ac_val , * ac_val2 ;\n int dcdiff ;\n if ( n < 4 ) {\n dcdiff = get_vlc2 ( & s -> gb , ff_msmp4_dc_luma_vlc [ s -> dc_table_index ] . table , DC_VLC_BITS , 3 ) ;\n }\n else {\n dcdiff = get_vlc2 ( & s -> gb , ff_msmp4_dc_chroma_vlc [ s -> dc_table_index ] . table , DC_VLC_BITS , 3 ) ;\n }\n if ( dcdiff < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Illegal DC VLC\\n\" ) ;\n return - 1 ;\n }\n if ( dcdiff ) {\n if ( dcdiff == 119 ) {\n if ( v -> pq == 1 ) dcdiff = get_bits ( gb , 10 ) ;\n else if ( v -> pq == 2 ) dcdiff = get_bits ( gb , 9 ) ;\n else dcdiff = get_bits ( gb , 8 ) ;\n }\n else {\n if ( v -> pq == 1 ) dcdiff = ( dcdiff << 2 ) + get_bits ( gb , 2 ) - 3 ;\n else if ( v -> pq == 2 ) dcdiff = ( dcdiff << 1 ) + get_bits1 ( gb ) - 1 ;\n }\n if ( get_bits1 ( gb ) ) dcdiff = - dcdiff ;\n }\n dcdiff += vc1_i_pred_dc ( & v -> s , v -> overlap , v -> pq , n , & dc_val , & dc_pred_dir ) ;\n * dc_val = dcdiff ;\n if ( n < 4 ) {\n block [ 0 ] = dcdiff * s -> y_dc_scale ;\n }\n else {\n block [ 0 ] = dcdiff * s -> c_dc_scale ;\n }\n if ( ! coded ) {\n goto not_coded ;\n }\n i = 1 ;\n {\n int last = 0 , skip , value ;\n const uint8_t * zz_table ;\n int scale ;\n int k ;\n scale = v -> pq * 2 + v -> halfpq ;\n if ( v -> s . ac_pred ) {\n if ( ! dc_pred_dir ) zz_table = v -> zz_8x8 [ 2 ] ;\n else zz_table = v -> zz_8x8 [ 3 ] ;\n }\n else zz_table = v -> zz_8x8 [ 1 ] ;\n ac_val = s -> ac_val [ 0 ] [ 0 ] + s -> block_index [ n ] * 16 ;\n ac_val2 = ac_val ;\n if ( dc_pred_dir ) ac_val -= 16 ;\n else ac_val -= 16 * s -> block_wrap [ n ] ;\n while ( ! last ) {\n vc1_decode_ac_coeff ( v , & last , & skip , & value , codingset ) ;\n i += skip ;\n if ( i > 63 ) break ;\n block [ zz_table [ i ++ ] ] = value ;\n }\n if ( s -> ac_pred ) {\n if ( dc_pred_dir ) {\n for ( k = 1 ;\n k < 8 ;\n k ++ ) block [ k << v -> left_blk_sh ] += ac_val [ k ] ;\n }\n else {\n for ( k = 1 ;\n k < 8 ;\n k ++ ) block [ k << v -> top_blk_sh ] += ac_val [ k + 8 ] ;\n }\n }\n for ( k = 1 ;\n k < 8 ;\n k ++ ) {\n ac_val2 [ k ] = block [ k << v -> left_blk_sh ] ;\n ac_val2 [ k + 8 ] = block [ k << v -> top_blk_sh ] ;\n }\n for ( k = 1 ;\n k < 64 ;\n k ++ ) if ( block [ k ] ) {\n block [ k ] *= scale ;\n if ( ! v -> pquantizer ) block [ k ] += ( block [ k ] < 0 ) ? - v -> pq : v -> pq ;\n }\n if ( s -> ac_pred ) i = 63 ;\n }\n not_coded : if ( ! coded ) {\n int k , scale ;\n ac_val = s -> ac_val [ 0 ] [ 0 ] + s -> block_index [ n ] * 16 ;\n ac_val2 = ac_val ;\n i = 0 ;\n scale = v -> pq * 2 + v -> halfpq ;\n memset ( ac_val2 , 0 , 16 * 2 ) ;\n if ( dc_pred_dir ) {\n ac_val -= 16 ;\n if ( s -> ac_pred ) memcpy ( ac_val2 , ac_val , 8 * 2 ) ;\n }\n else {\n ac_val -= 16 * s -> block_wrap [ n ] ;\n if ( s -> ac_pred ) memcpy ( ac_val2 + 8 , ac_val + 8 , 8 * 2 ) ;\n }\n if ( s -> ac_pred ) {\n if ( dc_pred_dir ) {\n for ( k = 1 ;\n k < 8 ;\n k ++ ) {\n block [ k << v -> left_blk_sh ] = ac_val [ k ] * scale ;\n if ( ! v -> pquantizer && block [ k << v -> left_blk_sh ] ) block [ k << v -> left_blk_sh ] += ( block [ k << v -> left_blk_sh ] < 0 ) ? - v -> pq : v -> pq ;\n }\n }\n else {\n for ( k = 1 ;\n k < 8 ;\n k ++ ) {\n block [ k << v -> top_blk_sh ] = ac_val [ k + 8 ] * scale ;\n if ( ! v -> pquantizer && block [ k << v -> top_blk_sh ] ) block [ k << v -> top_blk_sh ] += ( block [ k << v -> top_blk_sh ] < 0 ) ? - v -> pq : v -> pq ;\n }\n }\n i = 63 ;\n }\n }\n s -> block_last_index [ n ] = i ;\n return 0 ;\n }"}
{"idx": 6840, "target": 0, "func": "static void test_cursors_with_union ( ) {\n const char * queries [ ] = {\n \"SELECT t1.name FROM t1 UNION SELECT t2.name FROM t2\" , \"SELECT t1.id FROM t1 WHERE t1.id < 5\" }\n ;\n myheader ( \"test_cursors_with_union\" ) ;\n fetch_n ( queries , sizeof ( queries ) / sizeof ( * queries ) , USE_ROW_BY_ROW_FETCH ) ;\n fetch_n ( queries , sizeof ( queries ) / sizeof ( * queries ) , USE_STORE_RESULT ) ;\n }"}
{"idx": 6841, "target": 0, "func": "static gboolean qio_channel_websock_handshake_send ( QIOChannel * ioc , GIOCondition condition , gpointer user_data ) {\n QIOTask * task = user_data ;\n QIOChannelWebsock * wioc = QIO_CHANNEL_WEBSOCK ( qio_task_get_source ( task ) ) ;\n Error * err = NULL ;\n ssize_t ret ;\n ret = qio_channel_write ( wioc -> master , ( char * ) wioc -> encoutput . buffer , wioc -> encoutput . offset , & err ) ;\n if ( ret < 0 ) {\n trace_qio_channel_websock_handshake_fail ( ioc , error_get_pretty ( err ) ) ;\n qio_task_set_error ( task , err ) ;\n qio_task_complete ( task ) ;\n return FALSE ;\n }\n buffer_advance ( & wioc -> encoutput , ret ) ;\n if ( wioc -> encoutput . offset == 0 ) {\n if ( wioc -> io_err ) {\n trace_qio_channel_websock_handshake_fail ( ioc , error_get_pretty ( wioc -> io_err ) ) ;\n qio_task_set_error ( task , wioc -> io_err ) ;\n wioc -> io_err = NULL ;\n qio_task_complete ( task ) ;\n }\n else {\n trace_qio_channel_websock_handshake_complete ( ioc ) ;\n qio_task_complete ( task ) ;\n }\n return FALSE ;\n }\n trace_qio_channel_websock_handshake_pending ( ioc , G_IO_OUT ) ;\n return TRUE ;\n }"}
{"idx": 6842, "target": 0, "func": "static int dissect_h245_MultiplePayloadStreamMode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MultiplePayloadStreamMode , MultiplePayloadStreamMode_sequence ) ;\n return offset ;\n }"}
{"idx": 6843, "target": 0, "func": "static int doubledl ( char * * scur , uint8_t * mydlptr , char * buffer , uint32_t buffersize ) {\n unsigned char mydl = * mydlptr ;\n unsigned char olddl = mydl ;\n mydl *= 2 ;\n if ( ! ( olddl & 0x7f ) ) {\n if ( * scur < buffer || * scur >= buffer + buffersize - 1 ) return - 1 ;\n olddl = * * scur ;\n mydl = olddl * 2 + 1 ;\n * scur = * scur + 1 ;\n }\n * mydlptr = mydl ;\n return ( olddl >> 7 ) & 1 ;\n }"}
{"idx": 6844, "target": 0, "func": "static void setup_masks_hangul ( const hb_ot_shape_plan_t * plan , hb_buffer_t * buffer , hb_font_t * font HB_UNUSED ) {\n const hangul_shape_plan_t * hangul_plan = ( const hangul_shape_plan_t * ) plan -> data ;\n if ( likely ( hangul_plan ) ) {\n unsigned int count = buffer -> len ;\n hb_glyph_info_t * info = buffer -> info ;\n for ( unsigned int i = 0 ;\n i < count ;\n i ++ , info ++ ) info -> mask |= hangul_plan -> mask_array [ info -> hangul_shaping_feature ( ) ] ;\n }\n HB_BUFFER_DEALLOCATE_VAR ( buffer , hangul_shaping_feature ) ;\n }"}
{"idx": 6845, "target": 0, "func": "static int for_real_continue ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n es_ptr ep = esp ;\n float var = ep [ - 3 ] . value . realval ;\n float incr = ep [ - 2 ] . value . realval ;\n if ( incr >= 0 ? ( var > ep [ - 1 ] . value . realval ) : ( var < ep [ - 1 ] . value . realval ) ) {\n esp -= 5 ;\n return o_pop_estack ;\n }\n push ( 1 ) ;\n ref_assign ( op , ep - 3 ) ;\n ep [ - 3 ] . value . realval = var + incr ;\n esp = ep + 2 ;\n ref_assign ( ep + 2 , ep ) ;\n return o_push_estack ;\n }"}
{"idx": 6846, "target": 0, "func": "static const char * cmd_chroot_dir ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n char cwd [ 1025 ] = \"\" ;\n if ( cmd -> server -> is_virtual ) {\n return \"ModSecurity: SecChrootDir not allowed in VirtualHost\" ;\n }\n chroot_dir = ( char * ) p1 ;\n if ( getcwd ( cwd , 1024 ) == NULL ) {\n return \"ModSecurity: Failed to get the current working directory\" ;\n }\n if ( chdir ( chroot_dir ) < 0 ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Failed to chdir to %s, errno=%d (%s)\" , chroot_dir , errno , strerror ( errno ) ) ;\n }\n if ( chdir ( cwd ) < 0 ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Failed to chdir to %s, errno=%d (%s)\" , cwd , errno , strerror ( errno ) ) ;\n }\n return NULL ;\n }"}
{"idx": 6847, "target": 0, "func": "static int fraps2_decode_plane ( FrapsContext * s , uint8_t * dst , int stride , int w , int h , const uint8_t * src , int size , int Uoff , const int step ) {\n int i , j , ret ;\n GetBitContext gb ;\n VLC vlc ;\n Node nodes [ 512 ] ;\n for ( i = 0 ;\n i < 256 ;\n i ++ ) nodes [ i ] . count = bytestream_get_le32 ( & src ) ;\n size -= 1024 ;\n if ( ( ret = ff_huff_build_tree ( s -> avctx , & vlc , 256 , nodes , huff_cmp , FF_HUFFMAN_FLAG_ZERO_COUNT ) ) < 0 ) return ret ;\n s -> dsp . bswap_buf ( ( uint32_t * ) s -> tmpbuf , ( const uint32_t * ) src , size >> 2 ) ;\n init_get_bits ( & gb , s -> tmpbuf , size * 8 ) ;\n for ( j = 0 ;\n j < h ;\n j ++ ) {\n for ( i = 0 ;\n i < w * step ;\n i += step ) {\n dst [ i ] = get_vlc2 ( & gb , vlc . table , 9 , 3 ) ;\n if ( j ) dst [ i ] += dst [ i - stride ] ;\n else if ( Uoff ) dst [ i ] += 0x80 ;\n if ( get_bits_left ( & gb ) < 0 ) {\n ff_free_vlc ( & vlc ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n dst += stride ;\n }\n ff_free_vlc ( & vlc ) ;\n return 0 ;\n }"}
{"idx": 6848, "target": 0, "func": "int acl_getroot ( THD * thd , USER_RESOURCES * mqh , const char * passwd , uint passwd_len ) {\n ulong user_access = NO_ACCESS ;\n int res = 1 ;\n ACL_USER * acl_user = 0 ;\n Security_context * sctx = thd -> security_ctx ;\n DBUG_ENTER ( \"acl_getroot\" ) ;\n if ( ! initialized ) {\n sctx -> skip_grants ( ) ;\n bzero ( ( char * ) mqh , sizeof ( * mqh ) ) ;\n DBUG_RETURN ( 0 ) ;\n }\n VOID ( pthread_mutex_lock ( & acl_cache -> lock ) ) ;\n for ( uint i = 0 ;\n i < acl_users . elements ;\n i ++ ) {\n ACL_USER * acl_user_tmp = dynamic_element ( & acl_users , i , ACL_USER * ) ;\n if ( ! acl_user_tmp -> user || ! strcmp ( sctx -> user , acl_user_tmp -> user ) ) {\n if ( compare_hostname ( & acl_user_tmp -> host , sctx -> host , sctx -> ip ) ) {\n if ( passwd_len == acl_user_tmp -> salt_len ) {\n if ( acl_user_tmp -> salt_len == 0 || ( acl_user_tmp -> salt_len == SCRAMBLE_LENGTH ? check_scramble ( passwd , thd -> scramble , acl_user_tmp -> salt ) : check_scramble_323 ( passwd , thd -> scramble , ( ulong * ) acl_user_tmp -> salt ) ) == 0 ) {\n acl_user = acl_user_tmp ;\n res = 0 ;\n }\n }\n else if ( passwd_len == SCRAMBLE_LENGTH && acl_user_tmp -> salt_len == SCRAMBLE_LENGTH_323 ) res = - 1 ;\n else if ( passwd_len == SCRAMBLE_LENGTH_323 && acl_user_tmp -> salt_len == SCRAMBLE_LENGTH ) res = 2 ;\n break ;\n }\n }\n }\n if ( acl_user ) {\n # ifdef HAVE_OPENSSL Vio * vio = thd -> net . vio ;\n SSL * ssl = ( SSL * ) vio -> ssl_arg ;\n X509 * cert ;\n # endif switch ( acl_user -> ssl_type ) {\n case SSL_TYPE_NOT_SPECIFIED : case SSL_TYPE_NONE : user_access = acl_user -> access ;\n break ;\n # ifdef HAVE_OPENSSL case SSL_TYPE_ANY : if ( vio_type ( vio ) == VIO_TYPE_SSL ) user_access = acl_user -> access ;\n break ;\n case SSL_TYPE_X509 : if ( vio_type ( vio ) == VIO_TYPE_SSL && SSL_get_verify_result ( ssl ) == X509_V_OK && ( cert = SSL_get_peer_certificate ( ssl ) ) ) {\n user_access = acl_user -> access ;\n X509_free ( cert ) ;\n }\n break ;\n case SSL_TYPE_SPECIFIED : if ( vio_type ( vio ) != VIO_TYPE_SSL || SSL_get_verify_result ( ssl ) != X509_V_OK ) break ;\n if ( acl_user -> ssl_cipher ) {\n DBUG_PRINT ( \"info\" , ( \"comparing ciphers: '%s' and '%s'\" , acl_user -> ssl_cipher , SSL_get_cipher ( ssl ) ) ) ;\n if ( ! strcmp ( acl_user -> ssl_cipher , SSL_get_cipher ( ssl ) ) ) user_access = acl_user -> access ;\n else {\n if ( global_system_variables . log_warnings ) sql_print_information ( \"X509 ciphers mismatch: should be '%s' but is '%s'\" , acl_user -> ssl_cipher , SSL_get_cipher ( ssl ) ) ;\n break ;\n }\n }\n DBUG_PRINT ( \"info\" , ( \"checkpoint 1\" ) ) ;\n if ( ! ( cert = SSL_get_peer_certificate ( ssl ) ) ) {\n user_access = NO_ACCESS ;\n break ;\n }\n DBUG_PRINT ( \"info\" , ( \"checkpoint 2\" ) ) ;\n if ( acl_user -> x509_issuer ) {\n DBUG_PRINT ( \"info\" , ( \"checkpoint 3\" ) ) ;\n char * ptr = X509_NAME_oneline ( X509_get_issuer_name ( cert ) , 0 , 0 ) ;\n DBUG_PRINT ( \"info\" , ( \"comparing issuers: '%s' and '%s'\" , acl_user -> x509_issuer , ptr ) ) ;\n if ( strcmp ( acl_user -> x509_issuer , ptr ) ) {\n if ( global_system_variables . log_warnings ) sql_print_information ( \"X509 issuer mismatch: should be '%s' \" \"but is '%s'\" , acl_user -> x509_issuer , ptr ) ;\n free ( ptr ) ;\n X509_free ( cert ) ;\n user_access = NO_ACCESS ;\n break ;\n }\n user_access = acl_user -> access ;\n free ( ptr ) ;\n }\n DBUG_PRINT ( \"info\" , ( \"checkpoint 4\" ) ) ;\n if ( acl_user -> x509_subject ) {\n char * ptr = X509_NAME_oneline ( X509_get_subject_name ( cert ) , 0 , 0 ) ;\n DBUG_PRINT ( \"info\" , ( \"comparing subjects: '%s' and '%s'\" , acl_user -> x509_subject , ptr ) ) ;\n if ( strcmp ( acl_user -> x509_subject , ptr ) ) {\n if ( global_system_variables . log_warnings ) sql_print_information ( \"X509 subject mismatch: should be '%s' but is '%s'\" , acl_user -> x509_subject , ptr ) ;\n free ( ptr ) ;\n X509_free ( cert ) ;\n user_access = NO_ACCESS ;\n break ;\n }\n user_access = acl_user -> access ;\n free ( ptr ) ;\n }\n X509_free ( cert ) ;\n break ;\n # else default : break ;\n # endif }\n sctx -> master_access = user_access ;\n sctx -> priv_user = acl_user -> user ? sctx -> user : ( char * ) \"\" ;\n * mqh = acl_user -> user_resource ;\n if ( acl_user -> host . hostname ) strmake ( sctx -> priv_host , acl_user -> host . hostname , MAX_HOSTNAME - 1 ) ;\n else * sctx -> priv_host = 0 ;\n }\n VOID ( pthread_mutex_unlock ( & acl_cache -> lock ) ) ;\n DBUG_RETURN ( res ) ;\n }"}
{"idx": 6849, "target": 0, "func": "static int SpoolssSetPrinterData_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ;\n char * value_name ;\n guint32 type ;\n proto_item * hidden_item ;\n hidden_item = proto_tree_add_uint ( tree , hf_printerdata , tvb , offset , 0 , 1 ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , NULL , NULL , FALSE , FALSE ) ;\n value_name = NULL ;\n offset = dissect_ndr_cvstring ( tvb , offset , pinfo , tree , di , drep , sizeof ( guint16 ) , hf_printerdata_value , TRUE , & value_name ) ;\n if ( ! pinfo -> fd -> flags . visited ) {\n if ( ! dcv -> se_data ) {\n dcv -> se_data = wmem_strdup_printf ( wmem_file_scope ( ) , \"%s\" , value_name ? value_name : \"\" ) ;\n }\n }\n if ( dcv -> se_data ) {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , ( char * ) dcv -> se_data ) ;\n }\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_printerdata_type , & type ) ;\n offset = dissect_printerdata_data ( tvb , offset , pinfo , tree , di , drep , type ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_offered , NULL ) ;\n return offset ;\n }"}
{"idx": 6850, "target": 0, "func": "static int _pack_job_cancel ( void * x , void * arg ) {\n struct job_record * job_ptr = ( struct job_record * ) x ;\n char job_id_str [ BUFSIZ ] ;\n time_t now = time ( NULL ) ;\n ( void ) jobid2fmt ( job_ptr , job_id_str , sizeof ( job_id_str ) ) ;\n info ( \"Cancelling aborted pack job submit: %s\" , job_id_str ) ;\n job_ptr -> job_state = JOB_CANCELLED ;\n job_ptr -> start_time = now ;\n job_ptr -> end_time = now ;\n job_ptr -> exit_code = 1 ;\n job_completion_logger ( job_ptr , false ) ;\n fed_mgr_job_complete ( job_ptr , 0 , now ) ;\n return 0 ;\n }"}
{"idx": 6851, "target": 0, "func": "static void dissect_rsvp_adspec ( proto_item * ti _U_ , packet_info * pinfo , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int type ) {\n int offset2 = offset + 4 ;\n int mylen , i ;\n proto_tree * adspec_tree , * adspec_type_tree ;\n proto_item * ti2 ;\n proto_tree_add_uint ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type ) ;\n mylen = obj_length - 4 ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_adspec_message_format_version , tvb , offset2 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_data_length , tvb , offset2 + 2 , 2 , tvb_get_ntohs ( tvb , offset2 + 2 ) , \"%u words, not including header\" , tvb_get_ntohs ( tvb , offset2 + 2 ) ) ;\n mylen -= 4 ;\n offset2 += 4 ;\n while ( mylen > 0 ) {\n guint8 service_num ;\n guint length ;\n const char * str ;\n service_num = tvb_get_guint8 ( tvb , offset2 ) ;\n str = val_to_str_ext_const ( service_num , & intsrv_services_str_ext , \"Unknown\" ) ;\n length = tvb_get_ntohs ( tvb , offset2 + 2 ) ;\n adspec_tree = proto_tree_add_subtree ( rsvp_object_tree , tvb , offset2 , ( length + 1 ) * 4 , TREE ( TT_ADSPEC_SUBTREE ) , NULL , str ) ;\n proto_tree_add_item ( adspec_tree , hf_rsvp_adspec_service_header , tvb , offset2 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( adspec_tree , hf_rsvp_hf_rsvp_adspec_break_bit , tvb , offset2 + 1 , 1 , ENC_NA ) ;\n proto_tree_add_uint_format_value ( adspec_tree , hf_rsvp_data_length , tvb , offset2 + 2 , 2 , length , \"%u words, not including header\" , length ) ;\n mylen -= 4 ;\n offset2 += 4 ;\n i = length * 4 ;\n while ( i > 0 ) {\n guint id , phdr_length ;\n ti2 = proto_tree_add_item_ret_uint ( adspec_tree , hf_rsvp_adspec_type , tvb , offset2 , 1 , ENC_NA , & id ) ;\n adspec_type_tree = proto_item_add_subtree ( ti2 , TREE ( TT_ADSPEC_TYPE_SUBTREE ) ) ;\n proto_tree_add_item_ret_uint ( adspec_type_tree , hf_rsvp_adspec_len , tvb , offset2 + 2 , 2 , ENC_BIG_ENDIAN , & phdr_length ) ;\n proto_item_set_len ( ti2 , phdr_length ) ;\n str = try_val_to_str_ext ( id , & adspec_params_ext ) ;\n if ( str ) {\n switch ( id ) {\n case 4 : case 8 : case 10 : case 133 : case 134 : case 135 : case 136 : proto_tree_add_uint_format ( adspec_type_tree , hf_rsvp_adspec_uint , tvb , offset2 , ( phdr_length + 1 ) << 2 , tvb_get_ntohl ( tvb , offset2 + 4 ) , \"%s: %u\" , str , tvb_get_ntohl ( tvb , offset2 + 4 ) ) ;\n break ;\n case 6 : proto_tree_add_float_format ( adspec_type_tree , hf_rsvp_adspec_float , tvb , offset2 , ( phdr_length + 1 ) << 2 , tvb_get_ntohieee_float ( tvb , offset2 + 4 ) , \"%s: %.10g\" , str , tvb_get_ntohieee_float ( tvb , offset2 + 4 ) ) ;\n break ;\n default : proto_tree_add_bytes_format ( adspec_tree , hf_rsvp_adspec_bytes , tvb , offset2 , ( phdr_length + 1 ) << 2 , NULL , \"%s\" , str ) ;\n break ;\n }\n }\n else {\n expert_add_info ( pinfo , ti2 , & ei_rsvp_adspec_type ) ;\n }\n offset2 += ( phdr_length + 1 ) << 2 ;\n i -= ( phdr_length + 1 ) << 2 ;\n mylen -= ( phdr_length + 1 ) << 2 ;\n }\n }\n }"}
{"idx": 6852, "target": 0, "func": "static int ipvideo_decode_block_opcode_0xA ( IpvideoContext * s , AVFrame * frame ) {\n int x , y ;\n unsigned char P [ 8 ] ;\n int flags = 0 ;\n bytestream2_get_buffer ( & s -> stream_ptr , P , 4 ) ;\n if ( P [ 0 ] <= P [ 1 ] ) {\n for ( y = 0 ;\n y < 16 ;\n y ++ ) {\n if ( ! ( y & 3 ) ) {\n if ( y ) bytestream2_get_buffer ( & s -> stream_ptr , P , 4 ) ;\n flags = bytestream2_get_le32 ( & s -> stream_ptr ) ;\n }\n for ( x = 0 ;\n x < 4 ;\n x ++ , flags >>= 2 ) * s -> pixel_ptr ++ = P [ flags & 0x03 ] ;\n s -> pixel_ptr += s -> stride - 4 ;\n if ( y == 7 ) s -> pixel_ptr -= 8 * s -> stride - 4 ;\n }\n }\n else {\n int vert ;\n uint64_t flags = bytestream2_get_le64 ( & s -> stream_ptr ) ;\n bytestream2_get_buffer ( & s -> stream_ptr , P + 4 , 4 ) ;\n vert = P [ 4 ] <= P [ 5 ] ;\n for ( y = 0 ;\n y < 16 ;\n y ++ ) {\n for ( x = 0 ;\n x < 4 ;\n x ++ , flags >>= 2 ) * s -> pixel_ptr ++ = P [ flags & 0x03 ] ;\n if ( vert ) {\n s -> pixel_ptr += s -> stride - 4 ;\n if ( y == 7 ) s -> pixel_ptr -= 8 * s -> stride - 4 ;\n }\n else if ( y & 1 ) s -> pixel_ptr += s -> line_inc ;\n if ( y == 7 ) {\n memcpy ( P , P + 4 , 4 ) ;\n flags = bytestream2_get_le64 ( & s -> stream_ptr ) ;\n }\n }\n }\n return 0 ;\n }"}
{"idx": 6853, "target": 0, "func": "static void inode_free_rcu ( struct rcu_head * head ) {\n struct inode_security_struct * isec ;\n isec = container_of ( head , struct inode_security_struct , rcu ) ;\n kmem_cache_free ( sel_inode_cache , isec ) ;\n }"}
{"idx": 6854, "target": 0, "func": "static int ssl_method_error ( const SSL * s , const SSL_METHOD * method ) {\n int version = method -> version ;\n if ( ( s -> min_proto_version != 0 && version_cmp ( s , version , s -> min_proto_version ) < 0 ) || ssl_security ( s , SSL_SECOP_VERSION , 0 , version , NULL ) == 0 ) return SSL_R_VERSION_TOO_LOW ;\n if ( s -> max_proto_version != 0 && version_cmp ( s , version , s -> max_proto_version ) > 0 ) return SSL_R_VERSION_TOO_HIGH ;\n if ( ( s -> options & method -> mask ) != 0 ) return SSL_R_UNSUPPORTED_PROTOCOL ;\n if ( ( method -> flags & SSL_METHOD_NO_SUITEB ) != 0 && tls1_suiteb ( s ) ) return SSL_R_AT_LEAST_TLS_1_2_NEEDED_IN_SUITEB_MODE ;\n else if ( ( method -> flags & SSL_METHOD_NO_FIPS ) != 0 && FIPS_mode ( ) ) return SSL_R_AT_LEAST_TLS_1_0_NEEDED_IN_FIPS_MODE ;\n return 0 ;\n }"}
{"idx": 6855, "target": 0, "func": "static gpgme_error_t uiserver_verify ( void * engine , gpgme_data_t sig , gpgme_data_t signed_text , gpgme_data_t plaintext ) {\n engine_uiserver_t uiserver = engine ;\n gpgme_error_t err ;\n const char * protocol ;\n char * cmd ;\n if ( ! uiserver ) return gpg_error ( GPG_ERR_INV_VALUE ) ;\n if ( uiserver -> protocol == GPGME_PROTOCOL_DEFAULT ) protocol = \"\" ;\n else if ( uiserver -> protocol == GPGME_PROTOCOL_OpenPGP ) protocol = \" --protocol=OpenPGP\" ;\n else if ( uiserver -> protocol == GPGME_PROTOCOL_CMS ) protocol = \" --protocol=CMS\" ;\n else return gpgme_error ( GPG_ERR_UNSUPPORTED_PROTOCOL ) ;\n if ( asprintf ( & cmd , \"VERIFY%s\" , protocol ) < 0 ) return gpg_error_from_syserror ( ) ;\n uiserver -> input_cb . data = sig ;\n err = uiserver_set_fd ( uiserver , INPUT_FD , map_data_enc ( uiserver -> input_cb . data ) ) ;\n if ( err ) {\n free ( cmd ) ;\n return err ;\n }\n if ( plaintext ) {\n uiserver -> output_cb . data = plaintext ;\n err = uiserver_set_fd ( uiserver , OUTPUT_FD , 0 ) ;\n }\n else {\n uiserver -> message_cb . data = signed_text ;\n err = uiserver_set_fd ( uiserver , MESSAGE_FD , 0 ) ;\n }\n uiserver -> inline_data = NULL ;\n if ( ! err ) err = start ( uiserver , cmd ) ;\n free ( cmd ) ;\n return err ;\n }"}
{"idx": 6856, "target": 0, "func": "static int SpoolssEnumPrinters_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n guint32 level , flags ;\n dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ;\n static const int * hf_flags [ ] = {\n & hf_enumprinters_flags_network , & hf_enumprinters_flags_shared , & hf_enumprinters_flags_remote , & hf_enumprinters_flags_name , & hf_enumprinters_flags_connections , & hf_enumprinters_flags_local , & hf_enumprinters_flags_default , NULL }\n ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , NULL , di , drep , - 1 , & flags ) ;\n proto_tree_add_bitmask_value ( tree , tvb , offset - 4 , hf_enumprinters_flags , ett_enumprinters_flags , hf_flags , flags ) ;\n offset = dissect_ndr_str_pointer_item ( tvb , offset , pinfo , tree , di , drep , NDR_POINTER_UNIQUE , \"Server name\" , hf_servername , 0 ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_level , & level ) ;\n if ( ! pinfo -> fd -> flags . visited ) {\n dcv -> se_data = GINT_TO_POINTER ( ( int ) level ) ;\n }\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", level %d\" , level ) ;\n offset = dissect_spoolss_buffer ( tvb , offset , pinfo , tree , di , drep , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_offered , NULL ) ;\n return offset ;\n }"}
{"idx": 6857, "target": 0, "func": "TEST_F ( WebFrameTest , RecordSameDocumentNavigationToHistogram ) {\n const char * histogramName = \"RendererScheduler.UpdateForSameDocumentNavigationCount\" ;\n FrameTestHelpers : : WebViewHelper web_view_helper ;\n HistogramTester tester ;\n web_view_helper . InitializeAndLoad ( \"about:blank\" ) ;\n LocalFrame * frame = ToLocalFrame ( web_view_helper . GetWebView ( ) -> GetPage ( ) -> MainFrame ( ) ) ;\n FrameLoader & main_frame_loader = web_view_helper . GetWebView ( ) -> MainFrameImpl ( ) -> GetFrame ( ) -> Loader ( ) ;\n scoped_refptr < SerializedScriptValue > message = SerializeString ( \"message\" , ToScriptStateForMainWorld ( frame ) ) ;\n tester . ExpectTotalCount ( histogramName , 0 ) ;\n main_frame_loader . UpdateForSameDocumentNavigation ( ToKURL ( \"about:blank\" ) , kSameDocumentNavigationHistoryApi , message , kScrollRestorationAuto , WebFrameLoadType : : kReplaceCurrentItem , frame -> GetDocument ( ) ) ;\n tester . ExpectBucketCount ( histogramName , kSPANavTypeHistoryPushStateOrReplaceState , 1 ) ;\n main_frame_loader . UpdateForSameDocumentNavigation ( ToKURL ( \"about:blank\" ) , kSameDocumentNavigationDefault , message , kScrollRestorationManual , WebFrameLoadType : : kBackForward , frame -> GetDocument ( ) ) ;\n tester . ExpectBucketCount ( histogramName , kSPANavTypeSameDocumentBackwardOrForward , 1 ) ;\n main_frame_loader . UpdateForSameDocumentNavigation ( ToKURL ( \"about:blank\" ) , kSameDocumentNavigationDefault , message , kScrollRestorationManual , WebFrameLoadType : : kReplaceCurrentItem , frame -> GetDocument ( ) ) ;\n tester . ExpectBucketCount ( histogramName , kSPANavTypeOtherFragmentNavigation , 1 ) ;\n tester . ExpectTotalCount ( histogramName , 3 ) ;\n }"}
{"idx": 6858, "target": 0, "func": "void fz_set_default_gray ( fz_context * ctx , fz_default_colorspaces * default_cs , fz_colorspace * cs ) {\n if ( cs -> n == 1 ) {\n fz_drop_colorspace ( ctx , default_cs -> gray ) ;\n default_cs -> gray = fz_keep_colorspace ( ctx , cs ) ;\n }\n }"}
{"idx": 6859, "target": 0, "func": "static void U_CALLCONV _UTF16Reset ( UConverter * cnv , UConverterResetChoice choice ) {\n if ( choice <= UCNV_RESET_TO_UNICODE ) {\n cnv -> mode = 0 ;\n }\n if ( choice != UCNV_RESET_TO_UNICODE ) {\n cnv -> fromUnicodeStatus = UCNV_NEED_TO_WRITE_BOM ;\n }\n }"}
{"idx": 6860, "target": 0, "func": "static int dissect_h245_Ack_mediaControlChannel ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 905 \"../../asn1/h245/h245.cnf\" if ( upcoming_channel ) upcoming_channel -> upcoming_addr = & upcoming_channel -> media_control_addr ;\n offset = dissect_h245_TransportAddress ( tvb , offset , actx , tree , hf_index ) ;\n # line 909 \"../../asn1/h245/h245.cnf\" if ( upcoming_channel ) upcoming_channel -> upcoming_addr = NULL ;\n return offset ;\n }"}
{"idx": 6861, "target": 0, "func": "static void stroke_loglevel ( private_stroke_socket_t * this , stroke_msg_t * msg , FILE * out ) {\n debug_t group ;\n pop_string ( msg , & ( msg -> loglevel . type ) ) ;\n DBG1 ( DBG_CFG , \"received stroke: loglevel %d for %s\" , msg -> loglevel . level , msg -> loglevel . type ) ;\n if ( this -> prevent_loglevel_changes ) {\n DBG1 ( DBG_CFG , \"prevented log level change\" ) ;\n fprintf ( out , \"command not allowed!\\n\" ) ;\n return ;\n }\n if ( ! enum_from_name ( debug_names , msg -> loglevel . type , & group ) ) {\n fprintf ( out , \"unknown type '%s'!\\n\" , msg -> loglevel . type ) ;\n return ;\n }\n charon -> set_level ( charon , group , msg -> loglevel . level ) ;\n }"}
{"idx": 6862, "target": 0, "func": "static int lxc_cgroupfs_get ( const char * filename , char * value , size_t len , const char * name , const char * lxcpath ) {\n char * subsystem = NULL , * p , * path ;\n int ret = - 1 ;\n subsystem = alloca ( strlen ( filename ) + 1 ) ;\n strcpy ( subsystem , filename ) ;\n if ( ( p = strchr ( subsystem , '.' ) ) != NULL ) * p = '\\0' ;\n path = lxc_cgroup_get_hierarchy_abs_path ( subsystem , name , lxcpath ) ;\n if ( path ) {\n ret = do_cgroup_get ( path , filename , value , len ) ;\n free ( path ) ;\n }\n return ret ;\n }"}
{"idx": 6863, "target": 0, "func": "hb_blob_t * hb_blob_reference ( hb_blob_t * blob ) {\n return hb_object_reference ( blob ) ;\n }"}
{"idx": 6864, "target": 0, "func": "static void nbd_client_closed ( NBDClient * client , bool negotiated ) {\n nb_fds -- ;\n if ( negotiated && nb_fds == 0 && ! persistent && state == RUNNING ) {\n state = TERMINATE ;\n }\n nbd_update_server_watch ( ) ;\n nbd_client_put ( client ) ;\n }"}
{"idx": 6865, "target": 0, "func": "static void resolveBaseDirection ( const UChar * text , uint32_t length , UBiDiLevel * pInLevel , UBiDiLevel * pOutLevel ) {\n switch ( * pInLevel ) {\n case UBIDI_DEFAULT_LTR : case UBIDI_DEFAULT_RTL : {\n UBiDiLevel level = ubidi_getBaseDirection ( text , length ) ;\n * pInLevel = level != UBIDI_NEUTRAL ? level : * pInLevel == UBIDI_DEFAULT_RTL ? RTL : LTR ;\n break ;\n }\n default : * pInLevel &= 1 ;\n break ;\n }\n switch ( * pOutLevel ) {\n case UBIDI_DEFAULT_LTR : case UBIDI_DEFAULT_RTL : * pOutLevel = * pInLevel ;\n break ;\n default : * pOutLevel &= 1 ;\n break ;\n }\n }"}
{"idx": 6866, "target": 0, "func": "int wifi_key_prepare ( char * key_string ) {\n int status = - E_INVALID ;\n char * ks ;\n char * p ;\n if ( key_string == NULL ) return - E_INVALID ;\n ks = strdup ( key_string ) ;\n if ( ( p = strchr ( ks , ':' ) ) != NULL ) * p = 0 ;\n if ( ! strcasecmp ( ks , \"wep\" ) ) {\n GBL_WIFI -> wifi_schema = WIFI_WEP ;\n status = set_wep_key ( p + 1 ) ;\n }\n if ( ! strcasecmp ( ks , \"wpa\" ) ) {\n GBL_WIFI -> wifi_schema = WIFI_WPA ;\n status = set_wpa_key ( p + 1 ) ;\n }\n SAFE_FREE ( ks ) ;\n return status ;\n }"}
{"idx": 6867, "target": 0, "func": "HTTPStatus http_parse_status ( const char * start , const char * end ) {\n int status = 0 ;\n while ( ( start != end ) && ParseRules : : is_space ( * start ) ) {\n start += 1 ;\n }\n while ( ( start != end ) && ParseRules : : is_digit ( * start ) ) {\n status = ( status * 10 ) + ( * start ++ - '0' ) ;\n }\n return ( HTTPStatus ) status ;\n }"}
{"idx": 6868, "target": 0, "func": "static void nntp_parse_xref ( struct Context * ctx , struct Header * hdr ) {\n struct NntpData * nntp_data = ctx -> data ;\n char * buf = mutt_str_strdup ( hdr -> env -> xref ) ;\n char * p = buf ;\n while ( p ) {\n anum_t anum ;\n p += strspn ( p , \" \\t\" ) ;\n char * grp = p ;\n p = strpbrk ( p , \" \\t\" ) ;\n if ( p ) * p ++ = '\\0' ;\n char * colon = strchr ( grp , ':' ) ;\n if ( ! colon ) continue ;\n * colon ++ = '\\0' ;\n if ( sscanf ( colon , ANUM , & anum ) != 1 ) continue ;\n nntp_article_status ( ctx , hdr , grp , anum ) ;\n if ( ! NHDR ( hdr ) -> article_num && ( mutt_str_strcmp ( nntp_data -> group , grp ) == 0 ) ) NHDR ( hdr ) -> article_num = anum ;\n }\n FREE ( & buf ) ;\n }"}
{"idx": 6869, "target": 0, "func": "static Datum ExecEvalWholeRowSlow ( WholeRowVarExprState * wrvstate , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n Var * variable = ( Var * ) wrvstate -> xprstate . expr ;\n TupleTableSlot * slot ;\n HeapTuple tuple ;\n TupleDesc tupleDesc ;\n TupleDesc var_tupdesc ;\n HeapTupleHeader dtuple ;\n int i ;\n if ( isDone ) * isDone = ExprSingleResult ;\n * isNull = false ;\n switch ( variable -> varno ) {\n case INNER_VAR : slot = econtext -> ecxt_innertuple ;\n break ;\n case OUTER_VAR : slot = econtext -> ecxt_outertuple ;\n break ;\n default : slot = econtext -> ecxt_scantuple ;\n break ;\n }\n if ( wrvstate -> wrv_junkFilter != NULL ) slot = ExecFilterJunk ( wrvstate -> wrv_junkFilter , slot ) ;\n tuple = ExecFetchSlotTuple ( slot ) ;\n tupleDesc = slot -> tts_tupleDescriptor ;\n Assert ( variable -> vartype != RECORDOID ) ;\n var_tupdesc = wrvstate -> wrv_tupdesc ;\n for ( i = 0 ;\n i < var_tupdesc -> natts ;\n i ++ ) {\n Form_pg_attribute vattr = var_tupdesc -> attrs [ i ] ;\n Form_pg_attribute sattr = tupleDesc -> attrs [ i ] ;\n if ( ! vattr -> attisdropped ) continue ;\n if ( heap_attisnull ( tuple , i + 1 ) ) continue ;\n if ( vattr -> attlen != sattr -> attlen || vattr -> attalign != sattr -> attalign ) ereport ( ERROR , ( errcode ( ERRCODE_DATATYPE_MISMATCH ) , errmsg ( \"table row type and query-specified row type do not match\" ) , errdetail ( \"Physical storage mismatch on dropped attribute at ordinal position %d.\" , i + 1 ) ) ) ;\n }\n dtuple = DatumGetHeapTupleHeader ( ExecFetchSlotTupleDatum ( slot ) ) ;\n HeapTupleHeaderSetTypeId ( dtuple , wrvstate -> wrv_tupdesc -> tdtypeid ) ;\n HeapTupleHeaderSetTypMod ( dtuple , wrvstate -> wrv_tupdesc -> tdtypmod ) ;\n return PointerGetDatum ( dtuple ) ;\n }"}
{"idx": 6870, "target": 0, "func": "int event_base_once ( struct event_base * base , int fd , short events , void ( * callback ) ( int , short , void * ) , void * arg , const struct timeval * tv ) {\n struct event_once * eonce ;\n struct timeval etv ;\n int res ;\n if ( events & EV_SIGNAL ) return ( - 1 ) ;\n if ( ( eonce = calloc ( 1 , sizeof ( struct event_once ) ) ) == NULL ) return ( - 1 ) ;\n eonce -> cb = callback ;\n eonce -> arg = arg ;\n if ( events == EV_TIMEOUT ) {\n if ( tv == NULL ) {\n evutil_timerclear ( & etv ) ;\n tv = & etv ;\n }\n evtimer_set ( & eonce -> ev , event_once_cb , eonce ) ;\n }\n else if ( events & ( EV_READ | EV_WRITE ) ) {\n events &= EV_READ | EV_WRITE ;\n event_set ( & eonce -> ev , fd , events , event_once_cb , eonce ) ;\n }\n else {\n free ( eonce ) ;\n return ( - 1 ) ;\n }\n res = event_base_set ( base , & eonce -> ev ) ;\n if ( res == 0 ) res = event_add ( & eonce -> ev , tv ) ;\n if ( res != 0 ) {\n free ( eonce ) ;\n return ( res ) ;\n }\n return ( 0 ) ;\n }"}
{"idx": 6871, "target": 0, "func": "TEST_F ( ExternalProtocolHandlerTest , TestGetBlockStateUnknown ) {\n ExternalProtocolHandler : : BlockState block_state = ExternalProtocolHandler : : GetBlockState ( \"tel\" , profile_ . get ( ) ) ;\n EXPECT_EQ ( ExternalProtocolHandler : : UNKNOWN , block_state ) ;\n EXPECT_TRUE ( local_state_ -> GetDictionary ( prefs : : kExcludedSchemes ) -> empty ( ) ) ;\n EXPECT_TRUE ( profile_ -> GetPrefs ( ) -> GetDictionary ( prefs : : kExcludedSchemes ) -> empty ( ) ) ;\n }"}
{"idx": 6872, "target": 1, "func": "static void _Latin1FromUnicodeWithOffsets ( UConverterFromUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n UConverter * cnv ;\n const UChar * source , * sourceLimit ;\n uint8_t * target , * oldTarget ;\n int32_t targetCapacity , length ;\n int32_t * offsets ;\n UChar32 cp ;\n UChar c , max ;\n int32_t sourceIndex ;\n cnv = pArgs -> converter ;\n source = pArgs -> source ;\n sourceLimit = pArgs -> sourceLimit ;\n target = oldTarget = ( uint8_t * ) pArgs -> target ;\n targetCapacity = ( int32_t ) ( pArgs -> targetLimit - pArgs -> target ) ;\n offsets = pArgs -> offsets ;\n if ( cnv -> sharedData == & _Latin1Data ) {\n max = 0xff ;\n }\n else {\n max = 0x7f ;\n }\n cp = cnv -> fromUChar32 ;\n sourceIndex = cp == 0 ? 0 : - 1 ;\n length = ( int32_t ) ( sourceLimit - source ) ;\n if ( length < targetCapacity ) {\n targetCapacity = length ;\n }\n if ( cp != 0 && targetCapacity > 0 ) {\n goto getTrail ;\n }\n # if LATIN1_UNROLL_FROM_UNICODE if ( targetCapacity >= 16 ) {\n int32_t count , loops ;\n UChar u , oredChars ;\n loops = count = targetCapacity >> 4 ;\n do {\n oredChars = u = * source ++ ;\n * target ++ = ( uint8_t ) u ;\n oredChars |= u = * source ++ ;\n * target ++ = ( uint8_t ) u ;\n oredChars |= u = * source ++ ;\n * target ++ = ( uint8_t ) u ;\n oredChars |= u = * source ++ ;\n * target ++ = ( uint8_t ) u ;\n oredChars |= u = * source ++ ;\n * target ++ = ( uint8_t ) u ;\n oredChars |= u = * source ++ ;\n * target ++ = ( uint8_t ) u ;\n oredChars |= u = * source ++ ;\n * target ++ = ( uint8_t ) u ;\n oredChars |= u = * source ++ ;\n * target ++ = ( uint8_t ) u ;\n oredChars |= u = * source ++ ;\n * target ++ = ( uint8_t ) u ;\n oredChars |= u = * source ++ ;\n * target ++ = ( uint8_t ) u ;\n oredChars |= u = * source ++ ;\n * target ++ = ( uint8_t ) u ;\n oredChars |= u = * source ++ ;\n * target ++ = ( uint8_t ) u ;\n oredChars |= u = * source ++ ;\n * target ++ = ( uint8_t ) u ;\n oredChars |= u = * source ++ ;\n * target ++ = ( uint8_t ) u ;\n oredChars |= u = * source ++ ;\n * target ++ = ( uint8_t ) u ;\n oredChars |= u = * source ++ ;\n * target ++ = ( uint8_t ) u ;\n if ( oredChars > max ) {\n source -= 16 ;\n target -= 16 ;\n break ;\n }\n }\n while ( -- count > 0 ) ;\n count = loops - count ;\n targetCapacity -= 16 * count ;\n if ( offsets != NULL ) {\n oldTarget += 16 * count ;\n while ( count > 0 ) {\n * offsets ++ = sourceIndex ++ ;\n * offsets ++ = sourceIndex ++ ;\n * offsets ++ = sourceIndex ++ ;\n * offsets ++ = sourceIndex ++ ;\n * offsets ++ = sourceIndex ++ ;\n * offsets ++ = sourceIndex ++ ;\n * offsets ++ = sourceIndex ++ ;\n * offsets ++ = sourceIndex ++ ;\n * offsets ++ = sourceIndex ++ ;\n * offsets ++ = sourceIndex ++ ;\n * offsets ++ = sourceIndex ++ ;\n * offsets ++ = sourceIndex ++ ;\n * offsets ++ = sourceIndex ++ ;\n * offsets ++ = sourceIndex ++ ;\n * offsets ++ = sourceIndex ++ ;\n * offsets ++ = sourceIndex ++ ;\n -- count ;\n }\n }\n }\n # endif c = 0 ;\n while ( targetCapacity > 0 && ( c = * source ++ ) <= max ) {\n * target ++ = ( uint8_t ) c ;\n -- targetCapacity ;\n }\n if ( c > max ) {\n cp = c ;\n if ( ! U_IS_SURROGATE ( cp ) ) {\n }\n else if ( U_IS_SURROGATE_LEAD ( cp ) ) {\n getTrail : if ( source < sourceLimit ) {\n UChar trail = * source ;\n if ( U16_IS_TRAIL ( trail ) ) {\n ++ source ;\n cp = U16_GET_SUPPLEMENTARY ( cp , trail ) ;\n }\n else {\n }\n }\n else {\n cnv -> fromUChar32 = cp ;\n goto noMoreInput ;\n }\n }\n else {\n }\n * pErrorCode = U_IS_SURROGATE ( cp ) ? U_ILLEGAL_CHAR_FOUND : U_INVALID_CHAR_FOUND ;\n cnv -> fromUChar32 = cp ;\n }\n noMoreInput : if ( offsets != NULL ) {\n size_t count = target - oldTarget ;\n while ( count > 0 ) {\n * offsets ++ = sourceIndex ++ ;\n -- count ;\n }\n }\n if ( U_SUCCESS ( * pErrorCode ) && source < sourceLimit && target >= ( uint8_t * ) pArgs -> targetLimit ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n pArgs -> source = source ;\n pArgs -> target = ( char * ) target ;\n pArgs -> offsets = offsets ;\n }"}
{"idx": 6873, "target": 0, "func": "gpg_error_t _gcry_pk_selftest ( int algo , int extended , selftest_report_func_t report ) {\n gcry_module_t module = NULL ;\n pk_extra_spec_t * extraspec = NULL ;\n gcry_err_code_t ec = 0 ;\n REGISTER_DEFAULT_PUBKEYS ;\n ath_mutex_lock ( & pubkeys_registered_lock ) ;\n module = _gcry_module_lookup_id ( pubkeys_registered , algo ) ;\n if ( module && ! ( module -> flags & FLAG_MODULE_DISABLED ) ) extraspec = module -> extraspec ;\n ath_mutex_unlock ( & pubkeys_registered_lock ) ;\n if ( extraspec && extraspec -> selftest ) ec = extraspec -> selftest ( algo , extended , report ) ;\n else {\n ec = GPG_ERR_PUBKEY_ALGO ;\n if ( report ) report ( \"pubkey\" , algo , \"module\" , module && ! ( module -> flags & FLAG_MODULE_DISABLED ) ? \"no selftest available\" : module ? \"algorithm disabled\" : \"algorithm not found\" ) ;\n }\n if ( module ) {\n ath_mutex_lock ( & pubkeys_registered_lock ) ;\n _gcry_module_release ( module ) ;\n ath_mutex_unlock ( & pubkeys_registered_lock ) ;\n }\n return gpg_error ( ec ) ;\n }"}
{"idx": 6874, "target": 1, "func": "static int nntp_fetch_headers ( struct Context * ctx , void * hc , anum_t first , anum_t last , int restore ) {\n struct NntpData * nntp_data = ctx -> data ;\n struct FetchCtx fc ;\n struct Header * hdr = NULL ;\n char buf [ HUGE_STRING ] ;\n int rc = 0 ;\n int oldmsgcount = ctx -> msgcount ;\n anum_t current ;\n anum_t first_over = first ;\n # ifdef USE_HCACHE void * hdata = NULL ;\n # endif if ( ! last || first > last ) return 0 ;\n fc . ctx = ctx ;\n fc . first = first ;\n fc . last = last ;\n fc . restore = restore ;\n fc . messages = mutt_mem_calloc ( last - first + 1 , sizeof ( unsigned char ) ) ;\n # ifdef USE_HCACHE fc . hc = hc ;\n # endif if ( NntpListgroup && nntp_data -> nserv -> hasLISTGROUP && ! nntp_data -> deleted ) {\n if ( ! ctx -> quiet ) mutt_message ( _ ( \"Fetching list of articles...\" ) ) ;\n if ( nntp_data -> nserv -> hasLISTGROUPrange ) snprintf ( buf , sizeof ( buf ) , \"LISTGROUP %s %u-%u\\r\\n\" , nntp_data -> group , first , last ) ;\n else snprintf ( buf , sizeof ( buf ) , \"LISTGROUP %s\\r\\n\" , nntp_data -> group ) ;\n rc = nntp_fetch_lines ( nntp_data , buf , sizeof ( buf ) , NULL , fetch_numbers , & fc ) ;\n if ( rc > 0 ) {\n mutt_error ( \"LISTGROUP: %s\" , buf ) ;\n }\n if ( rc == 0 ) {\n for ( current = first ;\n current <= last && rc == 0 ;\n current ++ ) {\n if ( fc . messages [ current - first ] ) continue ;\n snprintf ( buf , sizeof ( buf ) , \"%u\" , current ) ;\n if ( nntp_data -> bcache ) {\n mutt_debug ( 2 , \"#1 mutt_bcache_del %s\\n\" , buf ) ;\n mutt_bcache_del ( nntp_data -> bcache , buf ) ;\n }\n # ifdef USE_HCACHE if ( fc . hc ) {\n mutt_debug ( 2 , \"mutt_hcache_delete %s\\n\" , buf ) ;\n mutt_hcache_delete ( fc . hc , buf , strlen ( buf ) ) ;\n }\n # endif }\n }\n }\n else {\n for ( current = first ;\n current <= last ;\n current ++ ) fc . messages [ current - first ] = 1 ;\n }\n if ( ! ctx -> quiet ) {\n mutt_progress_init ( & fc . progress , _ ( \"Fetching message headers...\" ) , MUTT_PROGRESS_MSG , ReadInc , last - first + 1 ) ;\n }\n for ( current = first ;\n current <= last && rc == 0 ;\n current ++ ) {\n if ( ! ctx -> quiet ) mutt_progress_update ( & fc . progress , current - first + 1 , - 1 ) ;\n # ifdef USE_HCACHE snprintf ( buf , sizeof ( buf ) , \"%u\" , current ) ;\n # endif if ( ! fc . messages [ current - first ] ) continue ;\n if ( ctx -> msgcount >= ctx -> hdrmax ) mx_alloc_memory ( ctx ) ;\n # ifdef USE_HCACHE hdata = mutt_hcache_fetch ( fc . hc , buf , strlen ( buf ) ) ;\n if ( hdata ) {\n mutt_debug ( 2 , \"mutt_hcache_fetch %s\\n\" , buf ) ;\n ctx -> hdrs [ ctx -> msgcount ] = hdr = mutt_hcache_restore ( hdata ) ;\n mutt_hcache_free ( fc . hc , & hdata ) ;\n hdr -> data = 0 ;\n if ( hdr -> deleted && ! restore ) {\n mutt_header_free ( & hdr ) ;\n if ( nntp_data -> bcache ) {\n mutt_debug ( 2 , \"#2 mutt_bcache_del %s\\n\" , buf ) ;\n mutt_bcache_del ( nntp_data -> bcache , buf ) ;\n }\n continue ;\n }\n hdr -> read = false ;\n hdr -> old = false ;\n }\n else # endif if ( nntp_data -> deleted ) continue ;\n else if ( nntp_data -> nserv -> hasOVER || nntp_data -> nserv -> hasXOVER ) {\n if ( NntpListgroup && nntp_data -> nserv -> hasLISTGROUP ) break ;\n else continue ;\n }\n else {\n FILE * fp = mutt_file_mkstemp ( ) ;\n if ( ! fp ) {\n mutt_perror ( \"mutt_file_mkstemp() failed!\" ) ;\n rc = - 1 ;\n break ;\n }\n snprintf ( buf , sizeof ( buf ) , \"HEAD %u\\r\\n\" , current ) ;\n rc = nntp_fetch_lines ( nntp_data , buf , sizeof ( buf ) , NULL , fetch_tempfile , fp ) ;\n if ( rc ) {\n mutt_file_fclose ( & fp ) ;\n if ( rc < 0 ) break ;\n if ( mutt_str_strncmp ( \"423\" , buf , 3 ) != 0 ) {\n mutt_error ( \"HEAD: %s\" , buf ) ;\n break ;\n }\n if ( nntp_data -> bcache ) {\n snprintf ( buf , sizeof ( buf ) , \"%u\" , current ) ;\n mutt_debug ( 2 , \"#3 mutt_bcache_del %s\\n\" , buf ) ;\n mutt_bcache_del ( nntp_data -> bcache , buf ) ;\n }\n rc = 0 ;\n continue ;\n }\n hdr = ctx -> hdrs [ ctx -> msgcount ] = mutt_header_new ( ) ;\n hdr -> env = mutt_rfc822_read_header ( fp , hdr , 0 , 0 ) ;\n hdr -> received = hdr -> date_sent ;\n mutt_file_fclose ( & fp ) ;\n }\n hdr -> index = ctx -> msgcount ++ ;\n hdr -> read = false ;\n hdr -> old = false ;\n hdr -> deleted = false ;\n hdr -> data = mutt_mem_calloc ( 1 , sizeof ( struct NntpHeaderData ) ) ;\n NHDR ( hdr ) -> article_num = current ;\n if ( restore ) hdr -> changed = true ;\n else {\n nntp_article_status ( ctx , hdr , NULL , NHDR ( hdr ) -> article_num ) ;\n if ( ! hdr -> read ) nntp_parse_xref ( ctx , hdr ) ;\n }\n if ( current > nntp_data -> last_loaded ) nntp_data -> last_loaded = current ;\n first_over = current + 1 ;\n }\n if ( ! NntpListgroup || ! nntp_data -> nserv -> hasLISTGROUP ) current = first_over ;\n if ( current <= last && rc == 0 && ! nntp_data -> deleted ) {\n char * cmd = nntp_data -> nserv -> hasOVER ? \"OVER\" : \"XOVER\" ;\n snprintf ( buf , sizeof ( buf ) , \"%s %u-%u\\r\\n\" , cmd , current , last ) ;\n rc = nntp_fetch_lines ( nntp_data , buf , sizeof ( buf ) , NULL , parse_overview_line , & fc ) ;\n if ( rc > 0 ) {\n mutt_error ( \"%s: %s\" , cmd , buf ) ;\n }\n }\n if ( ctx -> msgcount > oldmsgcount ) mx_update_context ( ctx , ctx -> msgcount - oldmsgcount ) ;\n FREE ( & fc . messages ) ;\n if ( rc != 0 ) return - 1 ;\n mutt_clear_error ( ) ;\n return 0 ;\n }"}
{"idx": 6875, "target": 0, "func": "static void U_CALLCONV _SCSUReset ( UConverter * cnv , UConverterResetChoice choice ) {\n SCSUData * scsu = ( SCSUData * ) cnv -> extraInfo ;\n if ( choice <= UCNV_RESET_TO_UNICODE ) {\n uprv_memcpy ( scsu -> toUDynamicOffsets , initialDynamicOffsets , 32 ) ;\n scsu -> toUIsSingleByteMode = TRUE ;\n scsu -> toUState = readCommand ;\n scsu -> toUQuoteWindow = scsu -> toUDynamicWindow = 0 ;\n scsu -> toUByteOne = 0 ;\n cnv -> toULength = 0 ;\n }\n if ( choice != UCNV_RESET_TO_UNICODE ) {\n uprv_memcpy ( scsu -> fromUDynamicOffsets , initialDynamicOffsets , 32 ) ;\n scsu -> fromUIsSingleByteMode = TRUE ;\n scsu -> fromUDynamicWindow = 0 ;\n scsu -> nextWindowUseIndex = 0 ;\n switch ( scsu -> locale ) {\n case l_ja : uprv_memcpy ( scsu -> windowUse , initialWindowUse_ja , 8 ) ;\n break ;\n default : uprv_memcpy ( scsu -> windowUse , initialWindowUse , 8 ) ;\n break ;\n }\n cnv -> fromUChar32 = 0 ;\n }\n }"}
{"idx": 6876, "target": 1, "func": "static int ipvideo_decode_block_opcode_0xB_16 ( IpvideoContext * s ) {\n int x , y ;\n uint16_t * pixel_ptr = ( uint16_t * ) s -> pixel_ptr ;\n for ( y = 0 ;\n y < 8 ;\n y ++ ) {\n for ( x = 0 ;\n x < 8 ;\n x ++ ) pixel_ptr [ x ] = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n pixel_ptr += s -> stride ;\n }\n return 0 ;\n }"}
{"idx": 6877, "target": 0, "func": "static int mdb_get_nextid ( MDB_cursor * mci , ID * cursor ) {\n MDB_val key ;\n ID id ;\n int rc ;\n id = * cursor + 1 ;\n key . mv_data = & id ;\n key . mv_size = sizeof ( ID ) ;\n rc = mdb_cursor_get ( mci , & key , NULL , MDB_SET_RANGE ) ;\n if ( rc ) return rc ;\n memcpy ( cursor , key . mv_data , sizeof ( ID ) ) ;\n return 0 ;\n }"}
{"idx": 6878, "target": 0, "func": "TEST ( ExtensionDetermineDownloadFilenameInternal , ExtensionDetermineDownloadFilenameInternal ) {\n std : : string winner_id ;\n base : : FilePath filename ;\n downloads : : FilenameConflictAction conflict_action = downloads : : FILENAME_CONFLICT_ACTION_UNIQUIFY ;\n WarningSet warnings ;\n warnings . clear ( ) ;\n ExtensionDownloadsEventRouter : : DetermineFilenameInternal ( base : : FilePath ( FILE_PATH_LITERAL ( \"a\" ) ) , downloads : : FILENAME_CONFLICT_ACTION_OVERWRITE , \"suggester\" , base : : Time : : Now ( ) , \"\" , base : : Time ( ) , & winner_id , & filename , & conflict_action , & warnings ) ;\n EXPECT_EQ ( \"suggester\" , winner_id ) ;\n EXPECT_EQ ( FILE_PATH_LITERAL ( \"a\" ) , filename . value ( ) ) ;\n EXPECT_EQ ( downloads : : FILENAME_CONFLICT_ACTION_OVERWRITE , conflict_action ) ;\n EXPECT_TRUE ( warnings . empty ( ) ) ;\n warnings . clear ( ) ;\n ExtensionDownloadsEventRouter : : DetermineFilenameInternal ( base : : FilePath ( FILE_PATH_LITERAL ( \"b\" ) ) , downloads : : FILENAME_CONFLICT_ACTION_PROMPT , \"suggester\" , base : : Time : : Now ( ) - base : : TimeDelta : : FromDays ( 1 ) , \"incumbent\" , base : : Time : : Now ( ) , & winner_id , & filename , & conflict_action , & warnings ) ;\n EXPECT_EQ ( \"incumbent\" , winner_id ) ;\n EXPECT_EQ ( FILE_PATH_LITERAL ( \"a\" ) , filename . value ( ) ) ;\n EXPECT_EQ ( downloads : : FILENAME_CONFLICT_ACTION_OVERWRITE , conflict_action ) ;\n EXPECT_FALSE ( warnings . empty ( ) ) ;\n EXPECT_EQ ( Warning : : kDownloadFilenameConflict , warnings . begin ( ) -> warning_type ( ) ) ;\n EXPECT_EQ ( \"suggester\" , warnings . begin ( ) -> extension_id ( ) ) ;\n warnings . clear ( ) ;\n ExtensionDownloadsEventRouter : : DetermineFilenameInternal ( base : : FilePath ( FILE_PATH_LITERAL ( \"b\" ) ) , downloads : : FILENAME_CONFLICT_ACTION_PROMPT , \"suggester\" , base : : Time : : Now ( ) , \"incumbent\" , base : : Time : : Now ( ) - base : : TimeDelta : : FromDays ( 1 ) , & winner_id , & filename , & conflict_action , & warnings ) ;\n EXPECT_EQ ( \"suggester\" , winner_id ) ;\n EXPECT_EQ ( FILE_PATH_LITERAL ( \"b\" ) , filename . value ( ) ) ;\n EXPECT_EQ ( downloads : : FILENAME_CONFLICT_ACTION_PROMPT , conflict_action ) ;\n EXPECT_FALSE ( warnings . empty ( ) ) ;\n EXPECT_EQ ( Warning : : kDownloadFilenameConflict , warnings . begin ( ) -> warning_type ( ) ) ;\n EXPECT_EQ ( \"incumbent\" , warnings . begin ( ) -> extension_id ( ) ) ;\n }"}
{"idx": 6879, "target": 0, "func": "void event_queue_insert ( struct event_base * base , struct event * ev , int queue ) {\n if ( ev -> ev_flags & queue ) {\n if ( queue & EVLIST_ACTIVE ) return ;\n event_errx ( 1 , \"%s: %p(fd %d) already on queue %x\" , __func__ , ev , ev -> ev_fd , queue ) ;\n }\n if ( ~ ev -> ev_flags & EVLIST_INTERNAL ) base -> event_count ++ ;\n ev -> ev_flags |= queue ;\n switch ( queue ) {\n case EVLIST_INSERTED : TAILQ_INSERT_TAIL ( & base -> eventqueue , ev , ev_next ) ;\n break ;\n case EVLIST_ACTIVE : base -> event_count_active ++ ;\n TAILQ_INSERT_TAIL ( base -> activequeues [ ev -> ev_pri ] , ev , ev_active_next ) ;\n break ;\n case EVLIST_TIMEOUT : {\n min_heap_push ( & base -> timeheap , ev ) ;\n break ;\n }\n default : event_errx ( 1 , \"%s: unknown queue %x\" , __func__ , queue ) ;\n }\n }"}
{"idx": 6880, "target": 0, "func": "int fz_colorspace_is_subtractive ( fz_context * ctx , const fz_colorspace * cs ) {\n return cs && ( cs -> type == FZ_COLORSPACE_CMYK || cs -> type == FZ_COLORSPACE_SEPARATION ) ;\n }"}
{"idx": 6881, "target": 0, "func": "jas_image_t * jas_image_create ( int numcmpts , jas_image_cmptparm_t * cmptparms , int clrspc ) {\n jas_image_t * image ;\n uint_fast32_t rawsize ;\n uint_fast32_t inmem ;\n int cmptno ;\n jas_image_cmptparm_t * cmptparm ;\n if ( ! ( image = jas_image_create0 ( ) ) ) {\n return 0 ;\n }\n image -> clrspc_ = clrspc ;\n image -> maxcmpts_ = numcmpts ;\n image -> inmem_ = true ;\n if ( ! ( image -> cmpts_ = jas_malloc ( image -> maxcmpts_ * sizeof ( jas_image_cmpt_t * ) ) ) ) {\n jas_image_destroy ( image ) ;\n return 0 ;\n }\n for ( cmptno = 0 ;\n cmptno < image -> maxcmpts_ ;\n ++ cmptno ) {\n image -> cmpts_ [ cmptno ] = 0 ;\n }\n rawsize = 0 ;\n for ( cmptno = 0 , cmptparm = cmptparms ;\n cmptno < numcmpts ;\n ++ cmptno , ++ cmptparm ) {\n rawsize += cmptparm -> width * cmptparm -> height * ( cmptparm -> prec + 7 ) / 8 ;\n }\n inmem = ( rawsize < JAS_IMAGE_INMEMTHRESH ) ;\n for ( cmptno = 0 , cmptparm = cmptparms ;\n cmptno < numcmpts ;\n ++ cmptno , ++ cmptparm ) {\n if ( ! ( image -> cmpts_ [ cmptno ] = jas_image_cmpt_create ( cmptparm -> tlx , cmptparm -> tly , cmptparm -> hstep , cmptparm -> vstep , cmptparm -> width , cmptparm -> height , cmptparm -> prec , cmptparm -> sgnd , inmem ) ) ) {\n jas_image_destroy ( image ) ;\n return 0 ;\n }\n ++ image -> numcmpts_ ;\n }\n jas_image_setbbox ( image ) ;\n return image ;\n }"}
{"idx": 6882, "target": 0, "func": "static void mp_set_rgb_from_yuv ( MotionPixelsContext * mp , int x , int y , const YuvPixel * p ) {\n int color ;\n color = mp_yuv_to_rgb ( p -> y , p -> v , p -> u , 1 ) ;\n * ( uint16_t * ) & mp -> frame . data [ 0 ] [ y * mp -> frame . linesize [ 0 ] + x * 2 ] = color ;\n }"}
{"idx": 6883, "target": 0, "func": "static int is_octal ( const char * p , size_t len ) {\n while ( len -- > 0 ) {\n if ( * p < '0' || * p > '7' ) return ( 0 ) ;\n ++ p ;\n }\n return ( 1 ) ;\n }"}
{"idx": 6884, "target": 0, "func": "static void print_word ( BIO * bp , BN_ULONG w ) {\n # ifdef SIXTY_FOUR_BIT if ( sizeof ( w ) > sizeof ( unsigned long ) ) {\n unsigned long h = ( unsigned long ) ( w >> 32 ) , l = ( unsigned long ) ( w ) ;\n if ( h ) BIO_printf ( bp , \"%lX%08lX\" , h , l ) ;\n else BIO_printf ( bp , \"%lX\" , l ) ;\n return ;\n }\n # endif BIO_printf ( bp , BN_HEX_FMT1 , w ) ;\n }"}
{"idx": 6885, "target": 0, "func": "static struct curl_slist * get_dav_token_headers ( struct remote_lock * lock , enum dav_header_flag options ) {\n struct strbuf buf = STRBUF_INIT ;\n struct curl_slist * dav_headers = NULL ;\n if ( options & DAV_HEADER_IF ) {\n strbuf_addf ( & buf , \"If: (<%s>)\" , lock -> token ) ;\n dav_headers = curl_slist_append ( dav_headers , buf . buf ) ;\n strbuf_reset ( & buf ) ;\n }\n if ( options & DAV_HEADER_LOCK ) {\n strbuf_addf ( & buf , \"Lock-Token: <%s>\" , lock -> token ) ;\n dav_headers = curl_slist_append ( dav_headers , buf . buf ) ;\n strbuf_reset ( & buf ) ;\n }\n if ( options & DAV_HEADER_TIMEOUT ) {\n strbuf_addf ( & buf , \"Timeout: Second-%ld\" , lock -> timeout ) ;\n dav_headers = curl_slist_append ( dav_headers , buf . buf ) ;\n strbuf_reset ( & buf ) ;\n }\n strbuf_release ( & buf ) ;\n return dav_headers ;\n }"}
{"idx": 6886, "target": 0, "func": "static void qemuMonitorJSONHandleVNCDisconnect ( qemuMonitorPtr mon , virJSONValuePtr data ) {\n qemuMonitorJSONHandleVNC ( mon , data , VIR_DOMAIN_EVENT_GRAPHICS_DISCONNECT ) ;\n }"}
{"idx": 6887, "target": 0, "func": "static void freesubre ( struct vars * v , struct subre * sr ) {\n if ( sr == NULL ) return ;\n if ( sr -> left != NULL ) freesubre ( v , sr -> left ) ;\n if ( sr -> right != NULL ) freesubre ( v , sr -> right ) ;\n freesrnode ( v , sr ) ;\n }"}
{"idx": 6888, "target": 0, "func": "static gs_memory_t * i_stable ( gs_memory_t * mem ) {\n return mem -> stable_memory ;\n }"}
{"idx": 6889, "target": 0, "func": "int expand_dns_name ( tvbuff_t * tvb , int offset , int max_len , int dns_data_offset , const guchar * * name ) {\n int start_offset = offset ;\n guchar * np ;\n int len = - 1 ;\n int chars_processed = 0 ;\n int data_size = tvb_reported_length_remaining ( tvb , dns_data_offset ) ;\n int component_len ;\n int indir_offset ;\n int maxname ;\n const int min_len = 1 ;\n maxname = MAXDNAME ;\n np = ( guchar * ) wmem_alloc ( wmem_packet_scope ( ) , maxname ) ;\n * name = np ;\n maxname -- ;\n for ( ;\n ;\n ) {\n if ( max_len && offset - start_offset > max_len - 1 ) {\n break ;\n }\n component_len = tvb_get_guint8 ( tvb , offset ) ;\n offset ++ ;\n if ( component_len == 0 ) {\n break ;\n }\n chars_processed ++ ;\n switch ( component_len & 0xc0 ) {\n case 0x00 : if ( np != * name ) {\n if ( maxname > 0 ) {\n * np ++ = '.' ;\n maxname -- ;\n }\n }\n while ( component_len > 0 ) {\n if ( max_len && offset - start_offset > max_len - 1 ) {\n THROW ( ReportedBoundsError ) ;\n }\n if ( maxname > 0 ) {\n * np ++ = tvb_get_guint8 ( tvb , offset ) ;\n maxname -- ;\n }\n component_len -- ;\n offset ++ ;\n chars_processed ++ ;\n }\n break ;\n case 0x40 : switch ( component_len & 0x3f ) {\n case 0x01 : {\n int bit_count ;\n int label_len ;\n int print_len ;\n bit_count = tvb_get_guint8 ( tvb , offset ) ;\n offset ++ ;\n label_len = ( bit_count - 1 ) / 8 + 1 ;\n if ( maxname > 0 ) {\n print_len = g_snprintf ( np , maxname + 1 , \"\\\\[x\" ) ;\n if ( print_len <= maxname ) {\n np += print_len ;\n maxname -= print_len ;\n }\n else {\n maxname = 0 ;\n }\n }\n while ( label_len -- ) {\n if ( maxname > 0 ) {\n print_len = g_snprintf ( np , maxname + 1 , \"%02x\" , tvb_get_guint8 ( tvb , offset ) ) ;\n if ( print_len <= maxname ) {\n np += print_len ;\n maxname -= print_len ;\n }\n else {\n maxname = 0 ;\n }\n }\n offset ++ ;\n }\n if ( maxname > 0 ) {\n print_len = g_snprintf ( np , maxname + 1 , \"/%d]\" , bit_count ) ;\n if ( print_len <= maxname ) {\n np += print_len ;\n maxname -= print_len ;\n }\n else {\n maxname = 0 ;\n }\n }\n }\n break ;\n default : * name = \"<Unknown extended label>\" ;\n len = offset - start_offset ;\n if ( len < min_len ) {\n THROW ( ReportedBoundsError ) ;\n }\n return len ;\n }\n break ;\n case 0x80 : THROW ( ReportedBoundsError ) ;\n break ;\n case 0xc0 : indir_offset = dns_data_offset + ( ( ( component_len & ~ 0xc0 ) << 8 ) | tvb_get_guint8 ( tvb , offset ) ) ;\n offset ++ ;\n chars_processed ++ ;\n if ( len < 0 ) {\n len = offset - start_offset ;\n }\n if ( chars_processed >= data_size ) {\n * name = \"<Name contains a pointer that loops>\" ;\n if ( len < min_len ) {\n THROW ( ReportedBoundsError ) ;\n }\n return len ;\n }\n offset = indir_offset ;\n break ;\n }\n }\n * np = '\\0' ;\n if ( len < 0 ) {\n len = offset - start_offset ;\n }\n if ( len < min_len ) {\n THROW ( ReportedBoundsError ) ;\n }\n return len ;\n }"}
{"idx": 6890, "target": 0, "func": "static SRP_user_pwd * SRP_user_pwd_new ( ) {\n SRP_user_pwd * ret = OPENSSL_malloc ( sizeof ( SRP_user_pwd ) ) ;\n if ( ret == NULL ) return NULL ;\n ret -> N = NULL ;\n ret -> g = NULL ;\n ret -> s = NULL ;\n ret -> v = NULL ;\n ret -> id = NULL ;\n ret -> info = NULL ;\n return ret ;\n }"}
{"idx": 6891, "target": 0, "func": "static uint8_t checkBaseExtBytes ( UCMStates * baseStates , UCMTable * base , UCMTable * ext , UBool moveToExt , UBool intersectBase ) {\n UCMapping * mb , * me ;\n int32_t * baseMap , * extMap ;\n int32_t b , e , bLimit , eLimit , cmp ;\n uint8_t result ;\n UBool isSISO ;\n baseMap = base -> reverseMap ;\n extMap = ext -> reverseMap ;\n b = e = 0 ;\n bLimit = base -> mappingsLength ;\n eLimit = ext -> mappingsLength ;\n result = 0 ;\n isSISO = ( UBool ) ( baseStates -> outputType == MBCS_OUTPUT_2_SISO ) ;\n for ( ;\n ;\n ) {\n for ( ;\n ;\n ++ b ) {\n if ( b == bLimit ) {\n return result ;\n }\n mb = base -> mappings + baseMap [ b ] ;\n if ( intersectBase == 2 && mb -> bLen == 1 ) {\n continue ;\n }\n if ( mb -> f == 0 || mb -> f == 3 ) {\n break ;\n }\n }\n for ( ;\n ;\n ) {\n if ( e == eLimit ) {\n return result ;\n }\n me = ext -> mappings + extMap [ e ] ;\n if ( me -> f == 0 || me -> f == 3 ) {\n break ;\n }\n ++ e ;\n }\n cmp = compareBytes ( base , mb , ext , me , TRUE ) ;\n if ( cmp < 0 ) {\n if ( intersectBase ) {\n mb -> moveFlag |= UCM_MOVE_TO_EXT ;\n result |= NEEDS_MOVE ;\n }\n else if ( mb -> bLen < me -> bLen && ( ! isSISO || mb -> bLen > 1 ) && 0 == uprv_memcmp ( UCM_GET_BYTES ( base , mb ) , UCM_GET_BYTES ( ext , me ) , mb -> bLen ) ) {\n if ( moveToExt ) {\n mb -> moveFlag |= UCM_MOVE_TO_EXT ;\n result |= NEEDS_MOVE ;\n }\n else {\n fprintf ( stderr , \"ucm error: the base table contains a mapping whose input sequence\\n\" \" is a prefix of the input sequence of an extension mapping\\n\" ) ;\n ucm_printMapping ( base , mb , stderr ) ;\n ucm_printMapping ( ext , me , stderr ) ;\n result |= HAS_ERRORS ;\n }\n }\n ++ b ;\n }\n else if ( cmp == 0 ) {\n if ( mb -> f == me -> f && mb -> uLen == me -> uLen && 0 == uprv_memcmp ( UCM_GET_CODE_POINTS ( base , mb ) , UCM_GET_CODE_POINTS ( ext , me ) , 4 * mb -> uLen ) ) {\n me -> moveFlag |= UCM_REMOVE_MAPPING ;\n result |= NEEDS_MOVE ;\n }\n else if ( intersectBase ) {\n mb -> moveFlag |= UCM_MOVE_TO_EXT ;\n result |= NEEDS_MOVE ;\n }\n else {\n fprintf ( stderr , \"ucm error: the base table contains a mapping whose input sequence\\n\" \" is the same as the input sequence of an extension mapping\\n\" \" but it maps differently\\n\" ) ;\n ucm_printMapping ( base , mb , stderr ) ;\n ucm_printMapping ( ext , me , stderr ) ;\n result |= HAS_ERRORS ;\n }\n ++ b ;\n }\n else {\n ++ e ;\n }\n }\n }"}
{"idx": 6892, "target": 0, "func": "static void alloc_ref_frame_buffers ( VP9_COMP * cpi ) {\n VP9_COMMON * const cm = & cpi -> common ;\n if ( vp9_alloc_ref_frame_buffers ( cm , cm -> width , cm -> height ) ) vpx_internal_error ( & cm -> error , VPX_CODEC_MEM_ERROR , \"Failed to allocate frame buffers\" ) ;\n }"}
{"idx": 6893, "target": 0, "func": "int tls_get_message_body ( SSL * s , unsigned long * len ) {\n long n ;\n unsigned char * p ;\n int i ;\n if ( s -> s3 -> tmp . message_type == SSL3_MT_CHANGE_CIPHER_SPEC ) {\n * len = ( unsigned long ) s -> init_num ;\n return 1 ;\n }\n p = s -> init_msg ;\n n = s -> s3 -> tmp . message_size - s -> init_num ;\n while ( n > 0 ) {\n i = s -> method -> ssl_read_bytes ( s , SSL3_RT_HANDSHAKE , NULL , & p [ s -> init_num ] , n , 0 ) ;\n if ( i <= 0 ) {\n s -> rwstate = SSL_READING ;\n * len = 0 ;\n return 0 ;\n }\n s -> init_num += i ;\n n -= i ;\n }\n # ifndef OPENSSL_NO_NEXTPROTONEG if ( * s -> init_buf -> data == SSL3_MT_FINISHED ) ssl3_take_mac ( s ) ;\n # endif if ( RECORD_LAYER_is_sslv2_record ( & s -> rlayer ) ) {\n if ( ! ssl3_finish_mac ( s , ( unsigned char * ) s -> init_buf -> data , s -> init_num ) ) {\n SSLerr ( SSL_F_TLS_GET_MESSAGE_BODY , ERR_R_EVP_LIB ) ;\n ssl3_send_alert ( s , SSL3_AL_FATAL , SSL_AD_INTERNAL_ERROR ) ;\n * len = 0 ;\n return 0 ;\n }\n if ( s -> msg_callback ) s -> msg_callback ( 0 , SSL2_VERSION , 0 , s -> init_buf -> data , ( size_t ) s -> init_num , s , s -> msg_callback_arg ) ;\n }\n else {\n if ( ! ssl3_finish_mac ( s , ( unsigned char * ) s -> init_buf -> data , s -> init_num + SSL3_HM_HEADER_LENGTH ) ) {\n SSLerr ( SSL_F_TLS_GET_MESSAGE_BODY , ERR_R_EVP_LIB ) ;\n ssl3_send_alert ( s , SSL3_AL_FATAL , SSL_AD_INTERNAL_ERROR ) ;\n * len = 0 ;\n return 0 ;\n }\n if ( s -> msg_callback ) s -> msg_callback ( 0 , s -> version , SSL3_RT_HANDSHAKE , s -> init_buf -> data , ( size_t ) s -> init_num + SSL3_HM_HEADER_LENGTH , s , s -> msg_callback_arg ) ;\n }\n if ( s -> init_num < 0 ) {\n SSLerr ( SSL_F_TLS_GET_MESSAGE_BODY , ERR_R_INTERNAL_ERROR ) ;\n ssl3_send_alert ( s , SSL3_AL_FATAL , SSL_AD_INTERNAL_ERROR ) ;\n * len = 0 ;\n return 0 ;\n }\n * len = ( unsigned long ) s -> init_num ;\n return 1 ;\n }"}
{"idx": 6894, "target": 0, "func": "static int archive_read_format_ar_cleanup ( struct archive_read * a ) {\n struct ar * ar ;\n ar = ( struct ar * ) ( a -> format -> data ) ;\n if ( ar -> strtab ) free ( ar -> strtab ) ;\n free ( ar ) ;\n ( a -> format -> data ) = NULL ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 6895, "target": 0, "func": "int EVP_EncryptFinal ( EVP_CIPHER_CTX * ctx , unsigned char * out , int * outl ) {\n int ret ;\n ret = EVP_EncryptFinal_ex ( ctx , out , outl ) ;\n return ret ;\n }"}
{"idx": 6896, "target": 0, "func": "void usage_exit ( ) {\n fprintf ( stderr , \"Usage: %s <infile> <outfile>\\n\" , exec_name ) ;\n exit ( EXIT_FAILURE ) ;\n }"}
{"idx": 6897, "target": 0, "func": "static guint16 de_bcc_compr_otdi ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n proto_tree_add_item ( tree , hf_gsm_a_dtap_bcc_compr_otdi , tvb , offset , len , ENC_NA ) ;\n return len ;\n }"}
{"idx": 6898, "target": 0, "func": "static void U_CALLCONV _LMBCSOpen ## n ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err ) \\ {\n _LMBCSOpenWorker ( _this , pArgs , err , n ) ;\n }\n static void _LMBCSOpenWorker ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err , ulmbcs_byte_t OptGroup ) {\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) uprv_malloc ( sizeof ( UConverterDataLMBCS ) ) ;\n _this -> extraInfo = extraInfo ;\n if ( extraInfo != NULL ) {\n UConverterNamePieces stackPieces ;\n UConverterLoadArgs stackArgs = UCNV_LOAD_ARGS_INITIALIZER ;\n ulmbcs_byte_t i ;\n uprv_memset ( extraInfo , 0 , sizeof ( UConverterDataLMBCS ) ) ;\n stackArgs . onlyTestIsLoadable = pArgs -> onlyTestIsLoadable ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST && U_SUCCESS ( * err ) ;\n i ++ ) {\n if ( OptGroupByteToCPName [ i ] != NULL ) {\n extraInfo -> OptGrpConverter [ i ] = ucnv_loadSharedData ( OptGroupByteToCPName [ i ] , & stackPieces , & stackArgs , err ) ;\n }\n }\n if ( U_FAILURE ( * err ) || pArgs -> onlyTestIsLoadable ) {\n _LMBCSClose ( _this ) ;\n return ;\n }\n extraInfo -> OptGroup = OptGroup ;\n extraInfo -> localeConverterIndex = FindLMBCSLocale ( pArgs -> locale ) ;\n }\n else {\n * err = U_MEMORY_ALLOCATION_ERROR ;\n }\n }\n U_CDECL_BEGIN static void U_CALLCONV _LMBCSClose ( UConverter * _this ) {\n if ( _this -> extraInfo != NULL ) {\n ulmbcs_byte_t Ix ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) _this -> extraInfo ;\n for ( Ix = 0 ;\n Ix <= ULMBCS_GRP_LAST ;\n Ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ Ix ] != NULL ) ucnv_unloadSharedDataIfReady ( extraInfo -> OptGrpConverter [ Ix ] ) ;\n }\n if ( ! _this -> isExtraLocal ) {\n uprv_free ( _this -> extraInfo ) ;\n _this -> extraInfo = NULL ;\n }\n }\n }\n typedef struct LMBCSClone {\n UConverter cnv ;\n UConverterDataLMBCS lmbcs ;\n }\n LMBCSClone ;\n static UConverter * U_CALLCONV _LMBCSSafeClone ( const UConverter * cnv , void * stackBuffer , int32_t * pBufferSize , UErrorCode * status ) {\n ( void ) status ;\n LMBCSClone * newLMBCS ;\n UConverterDataLMBCS * extraInfo ;\n int32_t i ;\n if ( * pBufferSize <= 0 ) {\n * pBufferSize = ( int32_t ) sizeof ( LMBCSClone ) ;\n return NULL ;\n }\n extraInfo = ( UConverterDataLMBCS * ) cnv -> extraInfo ;\n newLMBCS = ( LMBCSClone * ) stackBuffer ;\n uprv_memcpy ( & newLMBCS -> lmbcs , extraInfo , sizeof ( UConverterDataLMBCS ) ) ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST ;\n ++ i ) {\n if ( extraInfo -> OptGrpConverter [ i ] != NULL ) {\n ucnv_incrementRefCount ( extraInfo -> OptGrpConverter [ i ] ) ;\n }\n }\n newLMBCS -> cnv . extraInfo = & newLMBCS -> lmbcs ;\n newLMBCS -> cnv . isExtraLocal = TRUE ;\n return & newLMBCS -> cnv ;\n }\n static size_t LMBCSConversionWorker ( UConverterDataLMBCS * extraInfo , ulmbcs_byte_t group , ulmbcs_byte_t * pStartLMBCS , UChar * pUniChar , ulmbcs_byte_t * lastConverterIndex , UBool * groups_tried ) {\n ulmbcs_byte_t * pLMBCS = pStartLMBCS ;\n UConverterSharedData * xcnv = extraInfo -> OptGrpConverter [ group ] ;\n int bytesConverted ;\n uint32_t value ;\n ulmbcs_byte_t firstByte ;\n U_ASSERT ( xcnv ) ;\n U_ASSERT ( group < ULMBCS_GRP_UNICODE ) ;\n bytesConverted = ucnv_MBCSFromUChar32 ( xcnv , * pUniChar , & value , FALSE ) ;\n if ( bytesConverted > 0 ) {\n firstByte = ( ulmbcs_byte_t ) ( value >> ( ( bytesConverted - 1 ) * 8 ) ) ;\n }\n else {\n groups_tried [ group ] = TRUE ;\n return 0 ;\n }\n * lastConverterIndex = group ;\n U_ASSERT ( ( firstByte <= ULMBCS_C0END ) || ( firstByte >= ULMBCS_C1START ) || ( group == ULMBCS_GRP_EXCEPT ) ) ;\n if ( group != ULMBCS_GRP_EXCEPT && extraInfo -> OptGroup != group ) {\n * pLMBCS ++ = group ;\n if ( bytesConverted == 1 && group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n * pLMBCS ++ = group ;\n }\n }\n if ( bytesConverted == 1 && firstByte < 0x20 ) return 0 ;\n switch ( bytesConverted ) {\n case 4 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 24 ) ;\n U_FALLTHROUGH ;\n case 3 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 16 ) ;\n U_FALLTHROUGH ;\n case 2 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 8 ) ;\n U_FALLTHROUGH ;\n case 1 : * pLMBCS ++ = ( ulmbcs_byte_t ) value ;\n U_FALLTHROUGH ;\n default : break ;\n }\n return ( pLMBCS - pStartLMBCS ) ;\n }\n static size_t LMBCSConvertUni ( ulmbcs_byte_t * pLMBCS , UChar uniChar ) {\n uint8_t LowCh = ( uint8_t ) ( uniChar & 0x00FF ) ;\n uint8_t HighCh = ( uint8_t ) ( uniChar >> 8 ) ;\n * pLMBCS ++ = ULMBCS_GRP_UNICODE ;\n if ( LowCh == 0 ) {\n * pLMBCS ++ = ULMBCS_UNICOMPATZERO ;\n * pLMBCS ++ = HighCh ;\n }\n else {\n * pLMBCS ++ = HighCh ;\n * pLMBCS ++ = LowCh ;\n }\n return ULMBCS_UNICODE_SIZE ;\n }\n static void U_CALLCONV _LMBCSFromUnicode ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n ulmbcs_byte_t lastConverterIndex = 0 ;\n UChar uniChar ;\n ulmbcs_byte_t LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n ulmbcs_byte_t * pLMBCS ;\n int32_t bytes_written ;\n UBool groups_tried [ ULMBCS_GRP_LAST + 1 ] ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n int sourceIndex = 0 ;\n ulmbcs_byte_t OldConverterIndex = 0 ;\n while ( args -> source < args -> sourceLimit && ! U_FAILURE ( * err ) ) {\n OldConverterIndex = extraInfo -> localeConverterIndex ;\n if ( args -> target >= args -> targetLimit ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n uniChar = * ( args -> source ) ;\n bytes_written = 0 ;\n pLMBCS = LMBCS ;\n if ( ( uniChar >= 0x80 ) && ( uniChar <= 0xff ) && ( uniChar != 0xB1 ) && ( uniChar != 0xD7 ) && ( uniChar != 0xF7 ) && ( uniChar != 0xB0 ) && ( uniChar != 0xB4 ) && ( uniChar != 0xB6 ) && ( uniChar != 0xA7 ) && ( uniChar != 0xA8 ) ) {\n extraInfo -> localeConverterIndex = ULMBCS_GRP_L1 ;\n }\n if ( ( ( uniChar > ULMBCS_C0END ) && ( uniChar < ULMBCS_C1START ) ) || uniChar == 0 || uniChar == ULMBCS_HT || uniChar == ULMBCS_CR || uniChar == ULMBCS_LF || uniChar == ULMBCS_123SYSTEMRANGE ) {\n * pLMBCS ++ = ( ulmbcs_byte_t ) uniChar ;\n bytes_written = 1 ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t group = FindLMBCSUniRange ( uniChar ) ;\n if ( group == ULMBCS_GRP_UNICODE ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group == ULMBCS_GRP_CTRL ) {\n if ( uniChar <= ULMBCS_C0END ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( ULMBCS_CTRLOFFSET + uniChar ) ;\n }\n else if ( uniChar >= ULMBCS_C1START && uniChar <= ULMBCS_C1START + ULMBCS_CTRLOFFSET ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( uniChar & 0x00FF ) ;\n }\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group < ULMBCS_GRP_UNICODE ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , group , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n uprv_memset ( groups_tried , 0 , sizeof ( groups_tried ) ) ;\n if ( ( extraInfo -> OptGroup != 1 ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> OptGroup ) ) ) {\n if ( extraInfo -> localeConverterIndex < ULMBCS_DOUBLEOPTGROUP_START ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_L1 , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n else {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && ( extraInfo -> localeConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> localeConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written && ( lastConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , lastConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , lastConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t grp_start ;\n ulmbcs_byte_t grp_end ;\n ulmbcs_byte_t grp_ix ;\n grp_start = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_DOUBLEOPTGROUP_START : ULMBCS_GRP_L1 ) ;\n grp_end = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_GRP_LAST : ULMBCS_GRP_TH ) ;\n if ( group == ULMBCS_AMBIGUOUS_ALL ) {\n grp_start = ULMBCS_GRP_L1 ;\n grp_end = ULMBCS_GRP_LAST ;\n }\n for ( grp_ix = grp_start ;\n grp_ix <= grp_end && ! bytes_written ;\n grp_ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ grp_ix ] && ! groups_tried [ grp_ix ] ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , grp_ix , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && grp_start == ULMBCS_GRP_L1 ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n }\n }\n args -> source ++ ;\n pLMBCS = LMBCS ;\n while ( args -> target < args -> targetLimit && bytes_written -- ) {\n * ( args -> target ) ++ = * pLMBCS ++ ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = sourceIndex ;\n }\n }\n sourceIndex ++ ;\n if ( bytes_written > 0 ) {\n uint8_t * pErrorBuffer = args -> converter -> charErrorBuffer ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n args -> converter -> charErrorBufferLength = ( int8_t ) bytes_written ;\n while ( bytes_written -- ) {\n * pErrorBuffer ++ = * pLMBCS ++ ;\n }\n }\n extraInfo -> localeConverterIndex = OldConverterIndex ;\n }\n }\n static UChar GetUniFromLMBCSUni ( char const * * ppLMBCSin ) {\n uint8_t HighCh = * ( * ppLMBCSin ) ++ ;\n uint8_t LowCh = * ( * ppLMBCSin ) ++ ;\n if ( HighCh == ULMBCS_UNICOMPATZERO ) {\n HighCh = LowCh ;\n LowCh = 0 ;\n }\n return ( UChar ) ( ( HighCh << 8 ) | LowCh ) ;\n }\n # define CHECK_SOURCE_LIMIT ( index ) if ( args -> source + index > args -> sourceLimit ) {\n * err = U_TRUNCATED_CHAR_FOUND ;\n args -> source = args -> sourceLimit ;\n return 0xffff ;\n }\n static UChar32 U_CALLCONV _LMBCSGetNextUCharWorker ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n UChar32 uniChar = 0 ;\n ulmbcs_byte_t CurByte ;\n if ( args -> source >= args -> sourceLimit ) {\n * err = U_ILLEGAL_ARGUMENT_ERROR ;\n return 0xffff ;\n }\n CurByte = * ( ( ulmbcs_byte_t * ) ( args -> source ++ ) ) ;\n if ( ( ( CurByte > ULMBCS_C0END ) && ( CurByte < ULMBCS_C1START ) ) || ( CurByte == 0 ) || CurByte == ULMBCS_HT || CurByte == ULMBCS_CR || CurByte == ULMBCS_LF || CurByte == ULMBCS_123SYSTEMRANGE ) {\n uniChar = CurByte ;\n }\n else {\n UConverterDataLMBCS * extraInfo ;\n ulmbcs_byte_t group ;\n UConverterSharedData * cnv ;\n if ( CurByte == ULMBCS_GRP_CTRL ) {\n ulmbcs_byte_t C0C1byte ;\n CHECK_SOURCE_LIMIT ( 1 ) ;\n C0C1byte = * ( args -> source ) ++ ;\n uniChar = ( C0C1byte < ULMBCS_C1START ) ? C0C1byte - ULMBCS_CTRLOFFSET : C0C1byte ;\n }\n else if ( CurByte == ULMBCS_GRP_UNICODE ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n return GetUniFromLMBCSUni ( & ( args -> source ) ) ;\n }\n else if ( CurByte <= ULMBCS_CTRLOFFSET ) {\n group = CurByte ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n if ( group > ULMBCS_GRP_LAST || ( cnv = extraInfo -> OptGrpConverter [ group ] ) == NULL ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n if ( * args -> source == group ) {\n ++ args -> source ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 1 , FALSE ) ;\n ++ args -> source ;\n }\n else {\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 2 , FALSE ) ;\n args -> source += 2 ;\n }\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n CurByte = * ( args -> source ) ++ ;\n if ( CurByte >= ULMBCS_C1START ) {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n else {\n char bytes [ 2 ] ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n cnv = extraInfo -> OptGrpConverter [ ULMBCS_GRP_EXCEPT ] ;\n bytes [ 0 ] = group ;\n bytes [ 1 ] = CurByte ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , bytes , 2 , FALSE ) ;\n }\n }\n }\n else if ( CurByte >= ULMBCS_C1START ) {\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n group = extraInfo -> OptGroup ;\n cnv = extraInfo -> OptGrpConverter [ group ] ;\n if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n if ( ! ucnv_MBCSIsLeadByte ( cnv , CurByte ) ) {\n CHECK_SOURCE_LIMIT ( 0 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 1 , FALSE ) ;\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 2 , FALSE ) ;\n ++ args -> source ;\n }\n }\n else {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n }\n }\n return uniChar ;\n }\n static void U_CALLCONV _LMBCSToUnicodeWithOffsets ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n char LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n UChar uniChar ;\n const char * saveSource ;\n const char * pStartLMBCS = args -> source ;\n const char * errSource = NULL ;\n int8_t savebytes = 0 ;\n while ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit > args -> target ) {\n saveSource = args -> source ;\n if ( args -> converter -> toULength ) {\n const char * saveSourceLimit ;\n size_t size_old = args -> converter -> toULength ;\n size_t size_new_maybe_1 = sizeof ( LMBCS ) - size_old ;\n size_t size_new_maybe_2 = args -> sourceLimit - args -> source ;\n size_t size_new = ( size_new_maybe_1 < size_new_maybe_2 ) ? size_new_maybe_1 : size_new_maybe_2 ;\n uprv_memcpy ( LMBCS , args -> converter -> toUBytes , size_old ) ;\n uprv_memcpy ( LMBCS + size_old , args -> source , size_new ) ;\n saveSourceLimit = args -> sourceLimit ;\n args -> source = errSource = LMBCS ;\n args -> sourceLimit = LMBCS + size_old + size_new ;\n savebytes = ( int8_t ) ( size_old + size_new ) ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n args -> source = saveSource + ( ( args -> source - LMBCS ) - size_old ) ;\n args -> sourceLimit = saveSourceLimit ;\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n args -> converter -> toULength = savebytes ;\n uprv_memcpy ( args -> converter -> toUBytes , LMBCS , savebytes ) ;\n args -> source = args -> sourceLimit ;\n * err = U_ZERO_ERROR ;\n return ;\n }\n else {\n args -> converter -> toULength = 0 ;\n }\n }\n else {\n errSource = saveSource ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n savebytes = ( int8_t ) ( args -> source - saveSource ) ;\n }\n if ( U_SUCCESS ( * err ) ) {\n if ( uniChar < 0xfffe ) {\n * ( args -> target ) ++ = uniChar ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = ( int32_t ) ( saveSource - pStartLMBCS ) ;\n }\n }\n else if ( uniChar == 0xfffe ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n }\n if ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit <= args -> target ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n else if ( U_FAILURE ( * err ) ) {\n args -> converter -> toULength = savebytes ;\n if ( savebytes > 0 ) {\n uprv_memcpy ( args -> converter -> toUBytes , errSource , savebytes ) ;\n }\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n * err = U_ZERO_ERROR ;\n }\n }\n }\n DEFINE_LMBCS_OPEN ( 1 ) DEFINE_LMBCS_OPEN ( 2 ) DEFINE_LMBCS_OPEN ( 3 ) DEFINE_LMBCS_OPEN ( 4 )"}
{"idx": 6899, "target": 0, "func": "BITSTREAM_PROFILE vp9_read_profile ( struct vp9_read_bit_buffer * rb ) {\n int profile = vp9_rb_read_bit ( rb ) ;\n profile |= vp9_rb_read_bit ( rb ) << 1 ;\n if ( profile > 2 ) profile += vp9_rb_read_bit ( rb ) ;\n return ( BITSTREAM_PROFILE ) profile ;\n }"}
{"idx": 6900, "target": 0, "func": "static int pfkey_sendmsg ( struct kiocb * kiocb , struct socket * sock , struct msghdr * msg , size_t len ) {\n struct sock * sk = sock -> sk ;\n struct sk_buff * skb = NULL ;\n struct sadb_msg * hdr = NULL ;\n int err ;\n err = - EOPNOTSUPP ;\n if ( msg -> msg_flags & MSG_OOB ) goto out ;\n err = - EMSGSIZE ;\n if ( ( unsigned int ) len > sk -> sk_sndbuf - 32 ) goto out ;\n err = - ENOBUFS ;\n skb = alloc_skb ( len , GFP_KERNEL ) ;\n if ( skb == NULL ) goto out ;\n err = - EFAULT ;\n if ( memcpy_fromiovec ( skb_put ( skb , len ) , msg -> msg_iov , len ) ) goto out ;\n hdr = pfkey_get_base_msg ( skb , & err ) ;\n if ( ! hdr ) goto out ;\n mutex_lock ( & xfrm_cfg_mutex ) ;\n err = pfkey_process ( sk , skb , hdr ) ;\n mutex_unlock ( & xfrm_cfg_mutex ) ;\n out : if ( err && hdr && pfkey_error ( hdr , err , sk ) == 0 ) err = 0 ;\n kfree_skb ( skb ) ;\n return err ? : len ;\n }"}
{"idx": 6901, "target": 0, "func": "static struct object_entry * find_object ( unsigned char * sha1 ) {\n unsigned int h = sha1 [ 0 ] << 8 | sha1 [ 1 ] ;\n struct object_entry * e ;\n for ( e = object_table [ h ] ;\n e ;\n e = e -> next ) if ( ! hashcmp ( sha1 , e -> idx . sha1 ) ) return e ;\n return NULL ;\n }"}
{"idx": 6902, "target": 0, "func": "static int opt_show_versions ( const char * opt , const char * arg ) {\n mark_section_show_entries ( SECTION_ID_PROGRAM_VERSION , 1 , NULL ) ;\n mark_section_show_entries ( SECTION_ID_LIBRARY_VERSION , 1 , NULL ) ;\n return 0 ;\n }"}
{"idx": 6903, "target": 0, "func": "static void set_ref ( VP9_COMMON * const cm , MACROBLOCKD * const xd , int idx , int mi_row , int mi_col ) {\n MB_MODE_INFO * const mbmi = & xd -> mi [ 0 ] . src_mi -> mbmi ;\n RefBuffer * ref_buffer = & cm -> frame_refs [ mbmi -> ref_frame [ idx ] - LAST_FRAME ] ;\n xd -> block_refs [ idx ] = ref_buffer ;\n if ( ! vp9_is_valid_scale ( & ref_buffer -> sf ) ) vpx_internal_error ( & cm -> error , VPX_CODEC_UNSUP_BITSTREAM , \"Invalid scale factors\" ) ;\n if ( ref_buffer -> buf -> corrupted ) vpx_internal_error ( & cm -> error , VPX_CODEC_CORRUPT_FRAME , \"Block reference is corrupt\" ) ;\n vp9_setup_pre_planes ( xd , idx , ref_buffer -> buf , mi_row , mi_col , & ref_buffer -> sf ) ;\n xd -> corrupted |= ref_buffer -> buf -> corrupted ;\n }"}
{"idx": 6904, "target": 0, "func": "static inline size_t GetPixelMetaChannels ( const Image * restrict image ) {\n return ( image -> number_meta_channels ) ;\n }"}
{"idx": 6905, "target": 0, "func": "static int dissect_h245_RequestModeRelease ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_RequestModeRelease , RequestModeRelease_sequence ) ;\n return offset ;\n }"}
{"idx": 6906, "target": 0, "func": "static void gst_asf_demux_loop ( GstASFDemux * demux ) {\n GstFlowReturn flow = GST_FLOW_OK ;\n GstBuffer * buf = NULL ;\n guint64 off ;\n if ( G_UNLIKELY ( demux -> state == GST_ASF_DEMUX_STATE_HEADER ) ) {\n if ( ! gst_asf_demux_pull_headers ( demux , & flow ) ) {\n goto pause ;\n }\n flow = gst_asf_demux_pull_indices ( demux ) ;\n if ( flow != GST_FLOW_OK ) goto pause ;\n }\n g_assert ( demux -> state == GST_ASF_DEMUX_STATE_DATA ) ;\n if ( G_UNLIKELY ( demux -> num_packets != 0 && demux -> packet >= demux -> num_packets ) ) goto eos ;\n GST_LOG_OBJECT ( demux , \"packet %u/%u\" , ( guint ) demux -> packet + 1 , ( guint ) demux -> num_packets ) ;\n off = demux -> data_offset + ( demux -> packet * demux -> packet_size ) ;\n if ( G_UNLIKELY ( ! gst_asf_demux_pull_data ( demux , off , demux -> packet_size * demux -> speed_packets , & buf , & flow ) ) ) {\n GST_DEBUG_OBJECT ( demux , \"got flow %s\" , gst_flow_get_name ( flow ) ) ;\n if ( flow == GST_FLOW_EOS ) {\n goto eos ;\n }\n else if ( flow == GST_FLOW_FLUSHING ) {\n GST_DEBUG_OBJECT ( demux , \"Not fatal\" ) ;\n goto pause ;\n }\n else {\n goto read_failed ;\n }\n }\n if ( G_LIKELY ( demux -> speed_packets == 1 ) ) {\n GstAsfDemuxParsePacketError err ;\n err = gst_asf_demux_parse_packet ( demux , buf ) ;\n if ( G_UNLIKELY ( err != GST_ASF_DEMUX_PARSE_PACKET_ERROR_NONE ) ) {\n if ( demux -> num_packets == 0 ) {\n if ( gst_asf_demux_check_buffer_is_header ( demux , buf ) ) {\n GST_INFO_OBJECT ( demux , \"Chained asf found\" ) ;\n demux -> base_offset = off ;\n gst_asf_demux_reset ( demux , TRUE ) ;\n gst_buffer_unref ( buf ) ;\n return ;\n }\n }\n GST_INFO_OBJECT ( demux , \"Ignoring recoverable parse error\" ) ;\n gst_buffer_unref ( buf ) ;\n if ( GST_ASF_DEMUX_IS_REVERSE_PLAYBACK ( demux -> segment ) && ! demux -> seek_to_cur_pos ) {\n -- demux -> packet ;\n if ( demux -> packet < 0 ) {\n goto eos ;\n }\n }\n else {\n ++ demux -> packet ;\n }\n return ;\n }\n flow = gst_asf_demux_push_complete_payloads ( demux , FALSE ) ;\n if ( GST_ASF_DEMUX_IS_REVERSE_PLAYBACK ( demux -> segment ) && ! demux -> seek_to_cur_pos ) {\n -- demux -> packet ;\n if ( demux -> packet < 0 ) {\n goto eos ;\n }\n }\n else {\n ++ demux -> packet ;\n }\n }\n else {\n guint n ;\n for ( n = 0 ;\n n < demux -> speed_packets ;\n n ++ ) {\n GstBuffer * sub ;\n GstAsfDemuxParsePacketError err ;\n sub = gst_buffer_copy_region ( buf , GST_BUFFER_COPY_ALL , n * demux -> packet_size , demux -> packet_size ) ;\n err = gst_asf_demux_parse_packet ( demux , sub ) ;\n if ( G_UNLIKELY ( err != GST_ASF_DEMUX_PARSE_PACKET_ERROR_NONE ) ) {\n if ( demux -> num_packets == 0 ) {\n if ( gst_asf_demux_check_buffer_is_header ( demux , sub ) ) {\n GST_INFO_OBJECT ( demux , \"Chained asf found\" ) ;\n demux -> base_offset = off + n * demux -> packet_size ;\n gst_asf_demux_reset ( demux , TRUE ) ;\n gst_buffer_unref ( sub ) ;\n gst_buffer_unref ( buf ) ;\n return ;\n }\n }\n GST_INFO_OBJECT ( demux , \"Ignoring recoverable parse error\" ) ;\n flow = GST_FLOW_OK ;\n }\n gst_buffer_unref ( sub ) ;\n if ( err == GST_ASF_DEMUX_PARSE_PACKET_ERROR_NONE ) flow = gst_asf_demux_push_complete_payloads ( demux , FALSE ) ;\n ++ demux -> packet ;\n }\n demux -> speed_packets = 1 ;\n }\n gst_buffer_unref ( buf ) ;\n if ( G_UNLIKELY ( ( demux -> num_packets > 0 && demux -> packet >= demux -> num_packets ) || flow == GST_FLOW_EOS ) ) {\n GST_LOG_OBJECT ( demux , \"reached EOS\" ) ;\n goto eos ;\n }\n if ( G_UNLIKELY ( flow != GST_FLOW_OK ) ) {\n GST_DEBUG_OBJECT ( demux , \"pushing complete payloads failed\" ) ;\n goto pause ;\n }\n return ;\n eos : {\n if ( ! demux -> activated_streams ) flow = gst_asf_demux_push_complete_payloads ( demux , TRUE ) ;\n if ( demux -> segment . flags & GST_SEEK_FLAG_SEGMENT ) {\n gint64 stop ;\n if ( ( stop = demux -> segment . stop ) == - 1 ) stop = demux -> segment . duration ;\n GST_INFO_OBJECT ( demux , \"Posting segment-done, at end of segment\" ) ;\n gst_element_post_message ( GST_ELEMENT_CAST ( demux ) , gst_message_new_segment_done ( GST_OBJECT ( demux ) , GST_FORMAT_TIME , stop ) ) ;\n gst_asf_demux_send_event_unlocked ( demux , gst_event_new_segment_done ( GST_FORMAT_TIME , stop ) ) ;\n }\n else if ( flow != GST_FLOW_EOS ) {\n if ( gst_asf_demux_check_chained_asf ( demux ) ) {\n GST_INFO_OBJECT ( demux , \"Chained ASF starting\" ) ;\n gst_asf_demux_reset ( demux , TRUE ) ;\n return ;\n }\n }\n if ( ! ( demux -> segment . flags & GST_SEEK_FLAG_SEGMENT ) ) {\n if ( demux -> activated_streams ) {\n GST_INFO_OBJECT ( demux , \"Sending EOS, at end of stream\" ) ;\n gst_asf_demux_send_event_unlocked ( demux , gst_event_new_eos ( ) ) ;\n }\n else {\n GST_WARNING_OBJECT ( demux , \"EOS without exposed streams\" ) ;\n flow = GST_FLOW_EOS ;\n }\n }\n }\n pause : {\n GST_DEBUG_OBJECT ( demux , \"pausing task, flow return: %s\" , gst_flow_get_name ( flow ) ) ;\n demux -> segment_running = FALSE ;\n gst_pad_pause_task ( demux -> sinkpad ) ;\n if ( flow == GST_FLOW_EOS && ! demux -> activated_streams ) {\n GST_ELEMENT_ERROR ( demux , STREAM , WRONG_TYPE , ( NULL ) , ( \"This doesn't seem to be an ASF file\" ) ) ;\n }\n else if ( flow < GST_FLOW_EOS || flow == GST_FLOW_NOT_LINKED ) {\n GST_ELEMENT_FLOW_ERROR ( demux , flow ) ;\n gst_asf_demux_send_event_unlocked ( demux , gst_event_new_eos ( ) ) ;\n }\n return ;\n }\n read_failed : {\n GST_DEBUG_OBJECT ( demux , \"Read failed, doh\" ) ;\n flow = GST_FLOW_EOS ;\n goto pause ;\n }\n # if 0 parse_error : {\n gst_buffer_unref ( buf ) ;\n GST_ELEMENT_ERROR ( demux , STREAM , DEMUX , ( NULL ) , ( \"Error parsing ASF packet %u\" , ( guint ) demux -> packet ) ) ;\n gst_asf_demux_send_event_unlocked ( demux , gst_event_new_eos ( ) ) ;\n flow = GST_FLOW_ERROR ;\n goto pause ;\n }\n # endif }"}
{"idx": 6907, "target": 0, "func": "static void php_zip_free_dir ( zend_rsrc_list_entry * rsrc TSRMLS_DC ) {\n zip_rsrc * zip_int = ( zip_rsrc * ) rsrc -> ptr ;\n if ( zip_int ) {\n if ( zip_int -> za ) {\n if ( zip_close ( zip_int -> za ) != 0 ) {\n _zip_free ( zip_int -> za ) ;\n }\n zip_int -> za = NULL ;\n }\n efree ( rsrc -> ptr ) ;\n rsrc -> ptr = NULL ;\n }\n }"}
{"idx": 6908, "target": 0, "func": "bool mysql_routine_grant ( THD * thd , TABLE_LIST * table_list , bool is_proc , List < LEX_USER > & user_list , ulong rights , bool revoke_grant , bool write_to_binlog ) {\n List_iterator < LEX_USER > str_list ( user_list ) ;\n LEX_USER * Str , * tmp_Str ;\n TABLE_LIST tables [ 2 ] ;\n bool create_new_users = 0 , result = 0 ;\n char * db_name , * table_name ;\n bool save_binlog_row_based ;\n DBUG_ENTER ( \"mysql_routine_grant\" ) ;\n if ( ! initialized ) {\n my_error ( ER_OPTION_PREVENTS_STATEMENT , MYF ( 0 ) , \"--skip-grant-tables\" ) ;\n DBUG_RETURN ( TRUE ) ;\n }\n if ( rights & ~ PROC_ACLS ) {\n my_message ( ER_ILLEGAL_GRANT_FOR_TABLE , ER ( ER_ILLEGAL_GRANT_FOR_TABLE ) , MYF ( 0 ) ) ;\n DBUG_RETURN ( TRUE ) ;\n }\n if ( ! revoke_grant ) {\n if ( sp_exist_routines ( thd , table_list , is_proc ) ) DBUG_RETURN ( TRUE ) ;\n }\n bzero ( ( char * ) & tables , sizeof ( tables ) ) ;\n tables [ 0 ] . alias = tables [ 0 ] . table_name = ( char * ) \"user\" ;\n tables [ 1 ] . alias = tables [ 1 ] . table_name = ( char * ) \"procs_priv\" ;\n tables [ 0 ] . next_local = tables [ 0 ] . next_global = tables + 1 ;\n tables [ 0 ] . lock_type = tables [ 1 ] . lock_type = TL_WRITE ;\n tables [ 0 ] . db = tables [ 1 ] . db = ( char * ) \"mysql\" ;\n save_binlog_row_based = thd -> current_stmt_binlog_row_based ;\n thd -> clear_current_stmt_binlog_row_based ( ) ;\n # ifdef HAVE_REPLICATION if ( thd -> slave_thread && rpl_filter -> is_on ( ) ) {\n tables [ 0 ] . updating = tables [ 1 ] . updating = 1 ;\n if ( ! ( thd -> spcont || rpl_filter -> tables_ok ( 0 , tables ) ) ) {\n thd -> current_stmt_binlog_row_based = save_binlog_row_based ;\n DBUG_RETURN ( FALSE ) ;\n }\n }\n # endif if ( simple_open_n_lock_tables ( thd , tables ) ) {\n close_thread_tables ( thd ) ;\n thd -> current_stmt_binlog_row_based = save_binlog_row_based ;\n DBUG_RETURN ( TRUE ) ;\n }\n if ( ! revoke_grant ) create_new_users = test_if_create_new_users ( thd ) ;\n rw_wrlock ( & LOCK_grant ) ;\n pthread_mutex_lock ( & acl_cache -> lock ) ;\n MEM_ROOT * old_root = thd -> mem_root ;\n thd -> mem_root = & memex ;\n DBUG_PRINT ( \"info\" , ( \"now time to iterate and add users\" ) ) ;\n while ( ( tmp_Str = str_list ++ ) ) {\n int error ;\n GRANT_NAME * grant_name ;\n if ( ! ( Str = get_current_user ( thd , tmp_Str ) ) ) {\n result = TRUE ;\n continue ;\n }\n error = replace_user_table ( thd , tables [ 0 ] . table , * Str , 0 , revoke_grant , create_new_users , test ( thd -> variables . sql_mode & MODE_NO_AUTO_CREATE_USER ) ) ;\n if ( error ) {\n result = TRUE ;\n continue ;\n }\n db_name = table_list -> db ;\n table_name = table_list -> table_name ;\n grant_name = routine_hash_search ( Str -> host . str , NullS , db_name , Str -> user . str , table_name , is_proc , 1 ) ;\n if ( ! grant_name ) {\n if ( revoke_grant ) {\n my_error ( ER_NONEXISTING_PROC_GRANT , MYF ( 0 ) , Str -> user . str , Str -> host . str , table_name ) ;\n result = TRUE ;\n continue ;\n }\n grant_name = new GRANT_NAME ( Str -> host . str , db_name , Str -> user . str , table_name , rights , TRUE ) ;\n if ( ! grant_name || my_hash_insert ( is_proc ? & proc_priv_hash : & func_priv_hash , ( uchar * ) grant_name ) ) {\n result = TRUE ;\n continue ;\n }\n }\n if ( replace_routine_table ( thd , grant_name , tables [ 1 ] . table , * Str , db_name , table_name , is_proc , rights , revoke_grant ) != 0 ) {\n result = TRUE ;\n continue ;\n }\n }\n thd -> mem_root = old_root ;\n pthread_mutex_unlock ( & acl_cache -> lock ) ;\n if ( write_to_binlog ) {\n if ( write_bin_log ( thd , FALSE , thd -> query ( ) , thd -> query_length ( ) ) ) result = TRUE ;\n }\n rw_unlock ( & LOCK_grant ) ;\n thd -> current_stmt_binlog_row_based = save_binlog_row_based ;\n DBUG_RETURN ( result ) ;\n }"}
{"idx": 6909, "target": 0, "func": "static void gx_ttfReader__Seek ( ttfReader * self , int nPos ) {\n gx_ttfReader * r = ( gx_ttfReader * ) self ;\n r -> pos = nPos ;\n }"}
{"idx": 6910, "target": 0, "func": "static int mp_decode_layer1 ( MPADecodeContext * s ) {\n int bound , i , v , n , ch , j , mant ;\n uint8_t allocation [ MPA_MAX_CHANNELS ] [ SBLIMIT ] ;\n uint8_t scale_factors [ MPA_MAX_CHANNELS ] [ SBLIMIT ] ;\n if ( s -> mode == MPA_JSTEREO ) bound = ( s -> mode_ext + 1 ) * 4 ;\n else bound = SBLIMIT ;\n for ( i = 0 ;\n i < bound ;\n i ++ ) {\n for ( ch = 0 ;\n ch < s -> nb_channels ;\n ch ++ ) {\n allocation [ ch ] [ i ] = get_bits ( & s -> gb , 4 ) ;\n }\n }\n for ( i = bound ;\n i < SBLIMIT ;\n i ++ ) allocation [ 0 ] [ i ] = get_bits ( & s -> gb , 4 ) ;\n for ( i = 0 ;\n i < bound ;\n i ++ ) {\n for ( ch = 0 ;\n ch < s -> nb_channels ;\n ch ++ ) {\n if ( allocation [ ch ] [ i ] ) scale_factors [ ch ] [ i ] = get_bits ( & s -> gb , 6 ) ;\n }\n }\n for ( i = bound ;\n i < SBLIMIT ;\n i ++ ) {\n if ( allocation [ 0 ] [ i ] ) {\n scale_factors [ 0 ] [ i ] = get_bits ( & s -> gb , 6 ) ;\n scale_factors [ 1 ] [ i ] = get_bits ( & s -> gb , 6 ) ;\n }\n }\n for ( j = 0 ;\n j < 12 ;\n j ++ ) {\n for ( i = 0 ;\n i < bound ;\n i ++ ) {\n for ( ch = 0 ;\n ch < s -> nb_channels ;\n ch ++ ) {\n n = allocation [ ch ] [ i ] ;\n if ( n ) {\n mant = get_bits ( & s -> gb , n + 1 ) ;\n v = l1_unscale ( n , mant , scale_factors [ ch ] [ i ] ) ;\n }\n else {\n v = 0 ;\n }\n s -> sb_samples [ ch ] [ j ] [ i ] = v ;\n }\n }\n for ( i = bound ;\n i < SBLIMIT ;\n i ++ ) {\n n = allocation [ 0 ] [ i ] ;\n if ( n ) {\n mant = get_bits ( & s -> gb , n + 1 ) ;\n v = l1_unscale ( n , mant , scale_factors [ 0 ] [ i ] ) ;\n s -> sb_samples [ 0 ] [ j ] [ i ] = v ;\n v = l1_unscale ( n , mant , scale_factors [ 1 ] [ i ] ) ;\n s -> sb_samples [ 1 ] [ j ] [ i ] = v ;\n }\n else {\n s -> sb_samples [ 0 ] [ j ] [ i ] = 0 ;\n s -> sb_samples [ 1 ] [ j ] [ i ] = 0 ;\n }\n }\n }\n return 12 ;\n }"}
{"idx": 6911, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint32_t * src = ( const uint32_t * ) avpkt -> data ;\n AVFrame * pic = avctx -> coded_frame ;\n int width = avctx -> width ;\n int y = 0 ;\n uint16_t * ydst , * udst , * vdst , * yend ;\n int ret ;\n if ( pic -> data [ 0 ] ) avctx -> release_buffer ( avctx , pic ) ;\n if ( avpkt -> size < avctx -> width * avctx -> height * 8 / 3 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Packet too small\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( avpkt -> size > avctx -> width * avctx -> height * 8 / 3 ) {\n av_log_ask_for_sample ( avctx , \"Probably padded data\\n\" ) ;\n }\n pic -> reference = 0 ;\n if ( ( ret = ff_get_buffer ( avctx , pic ) ) < 0 ) return ret ;\n ydst = ( uint16_t * ) pic -> data [ 0 ] ;\n udst = ( uint16_t * ) pic -> data [ 1 ] ;\n vdst = ( uint16_t * ) pic -> data [ 2 ] ;\n yend = ydst + width ;\n pic -> pict_type = AV_PICTURE_TYPE_I ;\n pic -> key_frame = 1 ;\n for ( ;\n ;\n ) {\n uint32_t v = av_be2ne32 ( * src ++ ) ;\n * udst ++ = ( v >> 16 ) & 0xFFC0 ;\n * ydst ++ = ( v >> 6 ) & 0xFFC0 ;\n * vdst ++ = ( v << 4 ) & 0xFFC0 ;\n v = av_be2ne32 ( * src ++ ) ;\n * ydst ++ = ( v >> 16 ) & 0xFFC0 ;\n if ( ydst >= yend ) {\n ydst += pic -> linesize [ 0 ] / 2 - width ;\n udst += pic -> linesize [ 1 ] / 2 - width / 2 ;\n vdst += pic -> linesize [ 2 ] / 2 - width / 2 ;\n yend = ydst + width ;\n if ( ++ y >= avctx -> height ) break ;\n }\n * udst ++ = ( v >> 6 ) & 0xFFC0 ;\n * ydst ++ = ( v << 4 ) & 0xFFC0 ;\n v = av_be2ne32 ( * src ++ ) ;\n * vdst ++ = ( v >> 16 ) & 0xFFC0 ;\n * ydst ++ = ( v >> 6 ) & 0xFFC0 ;\n if ( ydst >= yend ) {\n ydst += pic -> linesize [ 0 ] / 2 - width ;\n udst += pic -> linesize [ 1 ] / 2 - width / 2 ;\n vdst += pic -> linesize [ 2 ] / 2 - width / 2 ;\n yend = ydst + width ;\n if ( ++ y >= avctx -> height ) break ;\n }\n * udst ++ = ( v << 4 ) & 0xFFC0 ;\n v = av_be2ne32 ( * src ++ ) ;\n * ydst ++ = ( v >> 16 ) & 0xFFC0 ;\n * vdst ++ = ( v >> 6 ) & 0xFFC0 ;\n * ydst ++ = ( v << 4 ) & 0xFFC0 ;\n if ( ydst >= yend ) {\n ydst += pic -> linesize [ 0 ] / 2 - width ;\n udst += pic -> linesize [ 1 ] / 2 - width / 2 ;\n vdst += pic -> linesize [ 2 ] / 2 - width / 2 ;\n yend = ydst + width ;\n if ( ++ y >= avctx -> height ) break ;\n }\n }\n * got_frame = 1 ;\n * ( AVFrame * ) data = * avctx -> coded_frame ;\n return avpkt -> size ;\n }"}
{"idx": 6912, "target": 0, "func": "static uint64 _tiffSeekProc ( thandle_t fd , uint64 off , int whence ) {\n LARGE_INTEGER offli ;\n DWORD dwMoveMethod ;\n offli . QuadPart = off ;\n switch ( whence ) {\n case SEEK_SET : dwMoveMethod = FILE_BEGIN ;\n break ;\n case SEEK_CUR : dwMoveMethod = FILE_CURRENT ;\n break ;\n case SEEK_END : dwMoveMethod = FILE_END ;\n break ;\n default : dwMoveMethod = FILE_BEGIN ;\n break ;\n }\n offli . LowPart = SetFilePointer ( fd , offli . LowPart , & offli . HighPart , dwMoveMethod ) ;\n if ( ( offli . LowPart == INVALID_SET_FILE_POINTER ) && ( GetLastError ( ) != NO_ERROR ) ) offli . QuadPart = 0 ;\n return ( offli . QuadPart ) ;\n }"}
{"idx": 6913, "target": 0, "func": "static void idr_init ( struct iso9660 * iso9660 , struct vdd * vdd , struct idr * idr ) {\n idr -> idrent_pool = NULL ;\n idr -> pool_size = 0 ;\n if ( vdd -> vdd_type != VDD_JOLIET ) {\n if ( iso9660 -> opt . iso_level <= 3 ) {\n memcpy ( idr -> char_map , d_characters_map , sizeof ( idr -> char_map ) ) ;\n }\n else {\n memcpy ( idr -> char_map , d1_characters_map , sizeof ( idr -> char_map ) ) ;\n idr_relaxed_filenames ( idr -> char_map ) ;\n }\n }\n }"}
{"idx": 6914, "target": 0, "func": "static inline void skip_char ( hb_buffer_t * buffer ) {\n buffer -> skip_glyph ( ) ;\n }"}
{"idx": 6915, "target": 0, "func": "static int32_t _appendScriptToLanguageTag ( const char * localeID , char * appendAt , int32_t capacity , UBool strict , UErrorCode * status ) {\n char buf [ ULOC_SCRIPT_CAPACITY ] ;\n UErrorCode tmpStatus = U_ZERO_ERROR ;\n int32_t len ;\n int32_t reslen = 0 ;\n if ( U_FAILURE ( * status ) ) {\n return 0 ;\n }\n len = uloc_getScript ( localeID , buf , sizeof ( buf ) , & tmpStatus ) ;\n if ( U_FAILURE ( tmpStatus ) || tmpStatus == U_STRING_NOT_TERMINATED_WARNING ) {\n if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n }\n return 0 ;\n }\n if ( len > 0 ) {\n if ( ! _isScriptSubtag ( buf , len ) ) {\n if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n }\n return 0 ;\n }\n else {\n if ( reslen < capacity ) {\n * ( appendAt + reslen ) = SEP ;\n }\n reslen ++ ;\n if ( reslen < capacity ) {\n uprv_memcpy ( appendAt + reslen , buf , uprv_min ( len , capacity - reslen ) ) ;\n }\n reslen += len ;\n }\n }\n u_terminateChars ( appendAt , capacity , reslen , status ) ;\n return reslen ;\n }"}
{"idx": 6916, "target": 0, "func": "static void encode_quantization ( const VP9_COMMON * const cm , struct vp9_write_bit_buffer * wb ) {\n vp9_wb_write_literal ( wb , cm -> base_qindex , QINDEX_BITS ) ;\n write_delta_q ( wb , cm -> y_dc_delta_q ) ;\n write_delta_q ( wb , cm -> uv_dc_delta_q ) ;\n write_delta_q ( wb , cm -> uv_ac_delta_q ) ;\n }"}
{"idx": 6917, "target": 0, "func": "static inline bool is_one_of ( const hb_glyph_info_t & info , unsigned int flags ) {\n if ( _hb_glyph_info_ligated ( & info ) ) return false ;\n return ! ! ( FLAG_SAFE ( info . indic_category ( ) ) & flags ) ;\n }"}
{"idx": 6918, "target": 0, "func": "static void get_time_value ( tvbuff_t * tvb , const gint start , const gint length , const guint encoding , nstime_t * time_stamp , const gboolean is_relative ) {\n guint32 tmpsecs ;\n guint64 todsecs ;\n if ( is_relative && ( encoding != ( ENC_TIME_TIMESPEC | ENC_BIG_ENDIAN ) ) && ( encoding != ( ENC_TIME_TIMESPEC | ENC_LITTLE_ENDIAN ) ) ) {\n return ;\n }\n switch ( encoding ) {\n case ENC_TIME_TIMESPEC | ENC_BIG_ENDIAN : time_stamp -> secs = ( time_t ) tvb_get_ntohl ( tvb , start ) ;\n if ( length == 8 ) time_stamp -> nsecs = tvb_get_ntohl ( tvb , start + 4 ) ;\n else time_stamp -> nsecs = 0 ;\n break ;\n case ENC_TIME_TIMESPEC | ENC_LITTLE_ENDIAN : time_stamp -> secs = ( time_t ) tvb_get_letohl ( tvb , start ) ;\n if ( length == 8 ) time_stamp -> nsecs = tvb_get_letohl ( tvb , start + 4 ) ;\n else time_stamp -> nsecs = 0 ;\n break ;\n case ENC_TIME_TOD | ENC_BIG_ENDIAN : # define TOD_BASETIME G_GUINT64_CONSTANT ( 2208988800 ) todsecs = tvb_get_ntoh64 ( tvb , start ) >> 12 ;\n time_stamp -> secs = ( time_t ) ( ( todsecs / 1000000 ) - TOD_BASETIME ) ;\n time_stamp -> nsecs = ( int ) ( ( todsecs % 1000000 ) * 1000 ) ;\n break ;\n case ENC_TIME_TOD | ENC_LITTLE_ENDIAN : todsecs = tvb_get_letoh64 ( tvb , start ) >> 12 ;\n time_stamp -> secs = ( time_t ) ( ( todsecs / 1000000 ) - TOD_BASETIME ) ;\n time_stamp -> nsecs = ( int ) ( ( todsecs % 1000000 ) * 1000 ) ;\n break ;\n case ENC_TIME_NTP | ENC_BIG_ENDIAN : # define NTP_BASETIME G_GUINT64_CONSTANT ( 2208988800 ) tmpsecs = tvb_get_ntohl ( tvb , start ) ;\n if ( tmpsecs ) time_stamp -> secs = ( time_t ) ( tmpsecs - ( guint32 ) NTP_BASETIME ) ;\n else time_stamp -> secs = tmpsecs ;\n if ( length == 8 ) {\n time_stamp -> nsecs = ( int ) ( 1000000 * ( tvb_get_ntohl ( tvb , start + 4 ) / 4294967296.0 ) ) ;\n time_stamp -> nsecs *= 1000 ;\n }\n else {\n time_stamp -> nsecs = 0 ;\n }\n break ;\n case ENC_TIME_NTP | ENC_LITTLE_ENDIAN : tmpsecs = tvb_get_letohl ( tvb , start ) ;\n if ( tmpsecs ) time_stamp -> secs = ( time_t ) ( tmpsecs - ( guint32 ) NTP_BASETIME ) ;\n else time_stamp -> secs = tmpsecs ;\n if ( length == 8 ) {\n time_stamp -> nsecs = ( int ) ( 1000000 * ( tvb_get_letohl ( tvb , start + 4 ) / 4294967296.0 ) ) ;\n time_stamp -> nsecs *= 1000 ;\n }\n else {\n time_stamp -> nsecs = 0 ;\n }\n break ;\n case ENC_TIME_NTP_BASE_ZERO | ENC_BIG_ENDIAN : # define NTP_BASETIME_ZERO G_GUINT64_CONSTANT ( 0 ) tmpsecs = tvb_get_ntohl ( tvb , start ) ;\n if ( tmpsecs ) time_stamp -> secs = ( time_t ) ( tmpsecs - ( guint32 ) NTP_BASETIME_ZERO ) ;\n else time_stamp -> secs = tmpsecs ;\n if ( length == 8 ) {\n time_stamp -> nsecs = ( int ) ( 1000000 * ( tvb_get_ntohl ( tvb , start + 4 ) / 4294967296.0 ) ) ;\n time_stamp -> nsecs *= 1000 ;\n }\n else {\n time_stamp -> nsecs = 0 ;\n }\n break ;\n case ENC_TIME_NTP_BASE_ZERO | ENC_LITTLE_ENDIAN : tmpsecs = tvb_get_letohl ( tvb , start ) ;\n if ( tmpsecs ) time_stamp -> secs = ( time_t ) ( tmpsecs - ( guint32 ) NTP_BASETIME_ZERO ) ;\n else time_stamp -> secs = tmpsecs ;\n time_stamp -> secs = ( time_t ) tvb_get_letohl ( tvb , start ) ;\n if ( length == 8 ) {\n time_stamp -> nsecs = ( int ) ( 1000000 * ( tvb_get_letohl ( tvb , start + 4 ) / 4294967296.0 ) ) ;\n time_stamp -> nsecs *= 1000 ;\n }\n else {\n time_stamp -> nsecs = 0 ;\n }\n break ;\n default : DISSECTOR_ASSERT_NOT_REACHED ( ) ;\n break ;\n }\n }"}
{"idx": 6919, "target": 0, "func": "static int dissect_h245_INTEGER_8_32 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 8U , 32U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 6920, "target": 0, "func": "static void * Type_ColorantOrderType_Dup ( struct _cms_typehandler_struct * self , const void * Ptr , cmsUInt32Number n ) {\n return _cmsDupMem ( self -> ContextID , Ptr , cmsMAXCHANNELS * sizeof ( cmsUInt8Number ) ) ;\n cmsUNUSED_PARAMETER ( n ) ;\n }"}
{"idx": 6921, "target": 0, "func": "u_short ctlpeerstatus ( register struct peer * p ) {\n u_short status ;\n status = p -> status ;\n if ( FLAG_CONFIG & p -> flags ) status |= CTL_PST_CONFIG ;\n if ( p -> keyid ) status |= CTL_PST_AUTHENABLE ;\n if ( FLAG_AUTHENTIC & p -> flags ) status |= CTL_PST_AUTHENTIC ;\n if ( p -> reach ) status |= CTL_PST_REACH ;\n if ( MDF_TXONLY_MASK & p -> cast_flags ) status |= CTL_PST_BCAST ;\n return CTL_PEER_STATUS ( status , p -> num_events , p -> last_event ) ;\n }"}
{"idx": 6922, "target": 0, "func": "static void sig_complete_unalias ( GList * * list , WINDOW_REC * window , const char * word , const char * line , int * want_space ) {\n g_return_if_fail ( list != NULL ) ;\n g_return_if_fail ( word != NULL ) ;\n * list = completion_get_aliases ( word ) ;\n if ( * list != NULL ) signal_stop ( ) ;\n }"}
{"idx": 6923, "target": 0, "func": "static int cirrus_bitblt_videotovideo ( CirrusVGAState * s ) {\n int ret ;\n if ( s -> cirrus_blt_mode & CIRRUS_BLTMODE_PATTERNCOPY ) {\n ret = cirrus_bitblt_videotovideo_patterncopy ( s ) ;\n }\n else {\n ret = cirrus_bitblt_videotovideo_copy ( s ) ;\n }\n if ( ret ) cirrus_bitblt_reset ( s ) ;\n return ret ;\n }"}
{"idx": 6924, "target": 1, "func": "void IGDstartelt ( void * d , const char * name , int l ) {\n struct IGDdatas * datas = ( struct IGDdatas * ) d ;\n memcpy ( datas -> cureltname , name , l ) ;\n datas -> cureltname [ l ] = '\\0' ;\n datas -> level ++ ;\n if ( ( l == 7 ) && ! memcmp ( name , \"service\" , l ) ) {\n datas -> tmp . controlurl [ 0 ] = '\\0' ;\n datas -> tmp . eventsuburl [ 0 ] = '\\0' ;\n datas -> tmp . scpdurl [ 0 ] = '\\0' ;\n datas -> tmp . servicetype [ 0 ] = '\\0' ;\n }\n }"}
{"idx": 6925, "target": 0, "func": "static int dissect_h245_RedundancyEncodingDTMode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_RedundancyEncodingDTMode , RedundancyEncodingDTMode_sequence ) ;\n return offset ;\n }"}
{"idx": 6926, "target": 0, "func": "static int _tiffMapProc ( thandle_t fd , void * * pbase , toff_t * psize ) {\n uint64 size ;\n tmsize_t sizem ;\n HANDLE hMapFile ;\n size = _tiffSizeProc ( fd ) ;\n sizem = ( tmsize_t ) size ;\n if ( ( uint64 ) sizem != size ) return ( 0 ) ;\n hMapFile = CreateFileMapping ( fd , NULL , PAGE_READONLY , 0 , 0 , NULL ) ;\n if ( hMapFile == NULL ) return ( 0 ) ;\n * pbase = MapViewOfFile ( hMapFile , FILE_MAP_READ , 0 , 0 , 0 ) ;\n CloseHandle ( hMapFile ) ;\n if ( * pbase == NULL ) return ( 0 ) ;\n * psize = size ;\n return ( 1 ) ;\n }"}
{"idx": 6927, "target": 0, "func": "inline static void _slurm_rpc_set_debug_flags ( slurm_msg_t * msg ) {\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n slurmctld_lock_t config_write_lock = {\n WRITE_LOCK , READ_LOCK , READ_LOCK , READ_LOCK , READ_LOCK }\n ;\n set_debug_flags_msg_t * request_msg = ( set_debug_flags_msg_t * ) msg -> data ;\n uint64_t debug_flags ;\n char * flag_string ;\n debug2 ( \"Processing RPC: REQUEST_SET_DEBUG_FLAGS from uid=%d\" , uid ) ;\n if ( ! validate_super_user ( uid ) ) {\n error ( \"set debug flags request from non-super user uid=%d\" , uid ) ;\n slurm_send_rc_msg ( msg , EACCES ) ;\n return ;\n }\n lock_slurmctld ( config_write_lock ) ;\n debug_flags = slurmctld_conf . debug_flags ;\n debug_flags &= ( ~ request_msg -> debug_flags_minus ) ;\n debug_flags |= request_msg -> debug_flags_plus ;\n slurm_set_debug_flags ( debug_flags ) ;\n slurmctld_conf . last_update = time ( NULL ) ;\n log_set_debug_flags ( ) ;\n gs_reconfig ( ) ;\n gres_plugin_reconfig ( NULL ) ;\n acct_storage_g_reconfig ( acct_db_conn , 0 ) ;\n priority_g_reconfig ( false ) ;\n select_g_reconfigure ( ) ;\n ( void ) slurm_sched_g_reconfig ( ) ;\n ( void ) switch_g_reconfig ( ) ;\n unlock_slurmctld ( config_write_lock ) ;\n flag_string = debug_flags2str ( debug_flags ) ;\n info ( \"Set DebugFlags to %s\" , flag_string ? flag_string : \"none\" ) ;\n xfree ( flag_string ) ;\n slurm_send_rc_msg ( msg , SLURM_SUCCESS ) ;\n }"}
{"idx": 6928, "target": 0, "func": "void warnf ( struct GlobalConfig * config , const char * fmt , ... ) {\n va_list ap ;\n va_start ( ap , fmt ) ;\n voutf ( config , WARN_PREFIX , fmt , ap ) ;\n va_end ( ap ) ;\n }"}
{"idx": 6929, "target": 0, "func": "static int rv34_decoder_realloc ( RV34DecContext * r ) {\n rv34_decoder_free ( r ) ;\n return rv34_decoder_alloc ( r ) ;\n }"}
{"idx": 6930, "target": 0, "func": "static int phar_tar_setupmetadata ( void * pDest , void * argument TSRMLS_DC ) {\n int lookfor_len ;\n struct _phar_pass_tar_info * i = ( struct _phar_pass_tar_info * ) argument ;\n char * lookfor , * * error = i -> error ;\n phar_entry_info * entry = ( phar_entry_info * ) pDest , * metadata , newentry = {\n 0 }\n ;\n if ( entry -> filename_len >= sizeof ( \".phar/.metadata\" ) && ! memcmp ( entry -> filename , \".phar/.metadata\" , sizeof ( \".phar/.metadata\" ) - 1 ) ) {\n if ( entry -> filename_len == sizeof ( \".phar/.metadata.bin\" ) - 1 && ! memcmp ( entry -> filename , \".phar/.metadata.bin\" , sizeof ( \".phar/.metadata.bin\" ) - 1 ) ) {\n return phar_tar_setmetadata ( entry -> phar -> metadata , entry , error TSRMLS_CC ) ;\n }\n if ( entry -> filename_len >= sizeof ( \".phar/.metadata/\" ) + sizeof ( \"/.metadata.bin\" ) - 1 && ! zend_hash_exists ( & ( entry -> phar -> manifest ) , entry -> filename + sizeof ( \".phar/.metadata/\" ) - 1 , entry -> filename_len - ( sizeof ( \"/.metadata.bin\" ) - 1 + sizeof ( \".phar/.metadata/\" ) - 1 ) ) ) {\n return ZEND_HASH_APPLY_REMOVE ;\n }\n return ZEND_HASH_APPLY_KEEP ;\n }\n if ( ! entry -> is_modified ) {\n return ZEND_HASH_APPLY_KEEP ;\n }\n lookfor_len = spprintf ( & lookfor , 0 , \".phar/.metadata/%s/.metadata.bin\" , entry -> filename ) ;\n if ( ! entry -> metadata ) {\n zend_hash_del ( & ( entry -> phar -> manifest ) , lookfor , lookfor_len ) ;\n efree ( lookfor ) ;\n return ZEND_HASH_APPLY_KEEP ;\n }\n if ( SUCCESS == zend_hash_find ( & ( entry -> phar -> manifest ) , lookfor , lookfor_len , ( void * * ) & metadata ) ) {\n int ret ;\n ret = phar_tar_setmetadata ( entry -> metadata , metadata , error TSRMLS_CC ) ;\n efree ( lookfor ) ;\n return ret ;\n }\n newentry . filename = lookfor ;\n newentry . filename_len = lookfor_len ;\n newentry . phar = entry -> phar ;\n newentry . tar_type = TAR_FILE ;\n newentry . is_tar = 1 ;\n if ( SUCCESS != zend_hash_add ( & ( entry -> phar -> manifest ) , lookfor , lookfor_len , ( void * ) & newentry , sizeof ( phar_entry_info ) , ( void * * ) & metadata ) ) {\n efree ( lookfor ) ;\n spprintf ( error , 0 , \"phar tar error: unable to add magic metadata file to manifest for file \\\"%s\\\"\" , entry -> filename ) ;\n return ZEND_HASH_APPLY_STOP ;\n }\n return phar_tar_setmetadata ( entry -> metadata , metadata , error TSRMLS_CC ) ;\n }"}
{"idx": 6931, "target": 1, "func": "static struct cvec * range ( struct vars * v , celt a , celt b , int cases ) {\n int nchrs ;\n struct cvec * cv ;\n celt c , lc , uc ;\n if ( a != b && ! before ( a , b ) ) {\n ERR ( REG_ERANGE ) ;\n return NULL ;\n }\n if ( ! cases ) {\n cv = getcvec ( v , 0 , 1 ) ;\n NOERRN ( ) ;\n addrange ( cv , a , b ) ;\n return cv ;\n }\n nchrs = ( b - a + 1 ) * 2 + 4 ;\n cv = getcvec ( v , nchrs , 0 ) ;\n NOERRN ( ) ;\n for ( c = a ;\n c <= b ;\n c ++ ) {\n addchr ( cv , c ) ;\n lc = pg_wc_tolower ( ( chr ) c ) ;\n if ( c != lc ) addchr ( cv , lc ) ;\n uc = pg_wc_toupper ( ( chr ) c ) ;\n if ( c != uc ) addchr ( cv , uc ) ;\n }\n return cv ;\n }"}
{"idx": 6932, "target": 0, "func": "static int check_nnp_nosuid ( const struct linux_binprm * bprm , const struct task_security_struct * old_tsec , const struct task_security_struct * new_tsec ) {\n int nnp = ( bprm -> unsafe & LSM_UNSAFE_NO_NEW_PRIVS ) ;\n int nosuid = ! mnt_may_suid ( bprm -> file -> f_path . mnt ) ;\n int rc ;\n if ( ! nnp && ! nosuid ) return 0 ;\n if ( new_tsec -> sid == old_tsec -> sid ) return 0 ;\n rc = security_bounded_transition ( old_tsec -> sid , new_tsec -> sid ) ;\n if ( rc ) {\n if ( nnp ) return - EPERM ;\n else return - EACCES ;\n }\n return 0 ;\n }"}
{"idx": 6933, "target": 0, "func": "proto_tree * ptvcursor_set_subtree ( ptvcursor_t * ptvc , proto_item * it , gint ett_subtree ) {\n ptvc -> tree = proto_item_add_subtree ( it , ett_subtree ) ;\n return ptvc -> tree ;\n }"}
{"idx": 6934, "target": 0, "func": "static void steamdiscover_dissect_body_proofresponse ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , gint offset , gint bytes_left ) {\n gint len ;\n gint64 value ;\n protobuf_desc_t pb = {\n tvb , offset , bytes_left }\n ;\n protobuf_tag_t tag = {\n 0 , 0 , 0 }\n ;\n while ( protobuf_iter_next ( & pb , & tag ) ) {\n switch ( tag . field_number ) {\n case STEAMDISCOVER_FN_PROOFRESPONSE_RESPONSE : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_LENGTHDELIMITED ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_item ( tree , hf_steam_ihs_discovery_body_proofresponse_response , pb . tvb , pb . offset + len , ( gint ) value , ENC_NA ) ;\n len += ( gint ) value ;\n break ;\n default : len = protobuf_dissect_unknown_field ( & pb , & tag , pinfo , tree , NULL ) ;\n break ;\n }\n protobuf_seek_forward ( & pb , len ) ;\n }\n }"}
{"idx": 6935, "target": 0, "func": "static int file_has_perm ( const struct cred * cred , struct file * file , u32 av ) {\n struct file_security_struct * fsec = file -> f_security ;\n struct inode * inode = file_inode ( file ) ;\n struct common_audit_data ad ;\n u32 sid = cred_sid ( cred ) ;\n int rc ;\n ad . type = LSM_AUDIT_DATA_FILE ;\n ad . u . file = file ;\n if ( sid != fsec -> sid ) {\n rc = avc_has_perm ( sid , fsec -> sid , SECCLASS_FD , FD__USE , & ad ) ;\n if ( rc ) goto out ;\n }\n rc = 0 ;\n if ( av ) rc = inode_has_perm ( cred , inode , av , & ad ) ;\n out : return rc ;\n }"}
{"idx": 6936, "target": 0, "func": "static void show_objects_for_type ( struct bitmap * objects , struct ewah_bitmap * type_filter , enum object_type object_type , show_reachable_fn show_reach ) {\n size_t pos = 0 , i = 0 ;\n uint32_t offset ;\n struct ewah_iterator it ;\n eword_t filter ;\n if ( bitmap_git . reuse_objects == bitmap_git . pack -> num_objects ) return ;\n ewah_iterator_init ( & it , type_filter ) ;\n while ( i < objects -> word_alloc && ewah_iterator_next ( & filter , & it ) ) {\n eword_t word = objects -> words [ i ] & filter ;\n for ( offset = 0 ;\n offset < BITS_IN_EWORD ;\n ++ offset ) {\n const unsigned char * sha1 ;\n struct revindex_entry * entry ;\n uint32_t hash = 0 ;\n if ( ( word >> offset ) == 0 ) break ;\n offset += ewah_bit_ctz64 ( word >> offset ) ;\n if ( pos + offset < bitmap_git . reuse_objects ) continue ;\n entry = & bitmap_git . pack -> revindex [ pos + offset ] ;\n sha1 = nth_packed_object_sha1 ( bitmap_git . pack , entry -> nr ) ;\n if ( bitmap_git . hashes ) hash = ntohl ( bitmap_git . hashes [ entry -> nr ] ) ;\n show_reach ( sha1 , object_type , 0 , hash , bitmap_git . pack , entry -> offset ) ;\n }\n pos += BITS_IN_EWORD ;\n i ++ ;\n }\n }"}
{"idx": 6937, "target": 0, "func": "TSMutex TSContMutexGet ( TSCont contp ) {\n sdk_assert ( sdk_sanity_check_iocore_structure ( contp ) == TS_SUCCESS ) ;\n Continuation * c = ( Continuation * ) contp ;\n return ( TSMutex ) ( c -> mutex . get ( ) ) ;\n }"}
{"idx": 6938, "target": 0, "func": "static int cinvideo_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n CinVideoContext * cin = avctx -> priv_data ;\n int i , y , palette_type , palette_colors_count , bitmap_frame_type , bitmap_frame_size , res = 0 ;\n palette_type = buf [ 0 ] ;\n palette_colors_count = AV_RL16 ( buf + 1 ) ;\n bitmap_frame_type = buf [ 3 ] ;\n buf += 4 ;\n bitmap_frame_size = buf_size - 4 ;\n if ( bitmap_frame_size < palette_colors_count * ( 3 + ( palette_type != 0 ) ) ) return AVERROR_INVALIDDATA ;\n if ( palette_type == 0 ) {\n if ( palette_colors_count > 256 ) return AVERROR_INVALIDDATA ;\n for ( i = 0 ;\n i < palette_colors_count ;\n ++ i ) {\n cin -> palette [ i ] = bytestream_get_le24 ( & buf ) ;\n bitmap_frame_size -= 3 ;\n }\n }\n else {\n for ( i = 0 ;\n i < palette_colors_count ;\n ++ i ) {\n cin -> palette [ buf [ 0 ] ] = AV_RL24 ( buf + 1 ) ;\n buf += 4 ;\n bitmap_frame_size -= 4 ;\n }\n }\n switch ( bitmap_frame_type ) {\n case 9 : cin_decode_rle ( buf , bitmap_frame_size , cin -> bitmap_table [ CIN_CUR_BMP ] , cin -> bitmap_size ) ;\n break ;\n case 34 : cin_decode_rle ( buf , bitmap_frame_size , cin -> bitmap_table [ CIN_CUR_BMP ] , cin -> bitmap_size ) ;\n cin_apply_delta_data ( cin -> bitmap_table [ CIN_PRE_BMP ] , cin -> bitmap_table [ CIN_CUR_BMP ] , cin -> bitmap_size ) ;\n break ;\n case 35 : cin_decode_huffman ( buf , bitmap_frame_size , cin -> bitmap_table [ CIN_INT_BMP ] , cin -> bitmap_size ) ;\n cin_decode_rle ( cin -> bitmap_table [ CIN_INT_BMP ] , bitmap_frame_size , cin -> bitmap_table [ CIN_CUR_BMP ] , cin -> bitmap_size ) ;\n break ;\n case 36 : bitmap_frame_size = cin_decode_huffman ( buf , bitmap_frame_size , cin -> bitmap_table [ CIN_INT_BMP ] , cin -> bitmap_size ) ;\n cin_decode_rle ( cin -> bitmap_table [ CIN_INT_BMP ] , bitmap_frame_size , cin -> bitmap_table [ CIN_CUR_BMP ] , cin -> bitmap_size ) ;\n cin_apply_delta_data ( cin -> bitmap_table [ CIN_PRE_BMP ] , cin -> bitmap_table [ CIN_CUR_BMP ] , cin -> bitmap_size ) ;\n break ;\n case 37 : cin_decode_huffman ( buf , bitmap_frame_size , cin -> bitmap_table [ CIN_CUR_BMP ] , cin -> bitmap_size ) ;\n break ;\n case 38 : res = cin_decode_lzss ( buf , bitmap_frame_size , cin -> bitmap_table [ CIN_CUR_BMP ] , cin -> bitmap_size ) ;\n if ( res < 0 ) return res ;\n break ;\n case 39 : res = cin_decode_lzss ( buf , bitmap_frame_size , cin -> bitmap_table [ CIN_CUR_BMP ] , cin -> bitmap_size ) ;\n if ( res < 0 ) return res ;\n cin_apply_delta_data ( cin -> bitmap_table [ CIN_PRE_BMP ] , cin -> bitmap_table [ CIN_CUR_BMP ] , cin -> bitmap_size ) ;\n break ;\n }\n if ( ( res = ff_reget_buffer ( avctx , & cin -> frame ) ) < 0 ) {\n av_log ( cin -> avctx , AV_LOG_ERROR , \"delphinecinvideo: reget_buffer() failed to allocate a frame\\n\" ) ;\n return res ;\n }\n memcpy ( cin -> frame . data [ 1 ] , cin -> palette , sizeof ( cin -> palette ) ) ;\n cin -> frame . palette_has_changed = 1 ;\n for ( y = 0 ;\n y < cin -> avctx -> height ;\n ++ y ) memcpy ( cin -> frame . data [ 0 ] + ( cin -> avctx -> height - 1 - y ) * cin -> frame . linesize [ 0 ] , cin -> bitmap_table [ CIN_CUR_BMP ] + y * cin -> avctx -> width , cin -> avctx -> width ) ;\n FFSWAP ( uint8_t * , cin -> bitmap_table [ CIN_CUR_BMP ] , cin -> bitmap_table [ CIN_PRE_BMP ] ) ;\n if ( ( res = av_frame_ref ( data , & cin -> frame ) ) < 0 ) return res ;\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 6939, "target": 0, "func": "void parseNodeClassMask ( proto_tree * tree , tvbuff_t * tvb , packet_info * pinfo _U_ , gint * pOffset ) {\n static const int * nodeclass_mask [ ] = {\n & hf_opcua_nodeClassMask_object , & hf_opcua_nodeClassMask_variable , & hf_opcua_nodeClassMask_method , & hf_opcua_nodeClassMask_objecttype , & hf_opcua_nodeClassMask_variabletype , & hf_opcua_nodeClassMask_referencetype , & hf_opcua_nodeClassMask_datatype , & hf_opcua_nodeClassMask_view , NULL }\n ;\n guint8 NodeClassMask = tvb_get_guint8 ( tvb , * pOffset ) ;\n if ( NodeClassMask == NODECLASSMASK_ALL ) {\n proto_tree_add_item ( tree , hf_opcua_nodeClassMask_all , tvb , * pOffset , 4 , ENC_LITTLE_ENDIAN ) ;\n }\n else {\n proto_tree_add_bitmask ( tree , tvb , * pOffset , hf_opcua_nodeClassMask , ett_opcua_nodeClassMask , nodeclass_mask , ENC_LITTLE_ENDIAN ) ;\n }\n * pOffset += 4 ;\n }"}
{"idx": 6940, "target": 0, "func": "void vp9_initialize_enc ( ) {\n static int init_done = 0 ;\n if ( ! init_done ) {\n vp9_rtcd ( ) ;\n vp9_init_neighbors ( ) ;\n vp9_init_intra_predictors ( ) ;\n vp9_coef_tree_initialize ( ) ;\n vp9_tokenize_initialize ( ) ;\n vp9_init_me_luts ( ) ;\n vp9_rc_init_minq_luts ( ) ;\n vp9_entropy_mv_init ( ) ;\n vp9_entropy_mode_init ( ) ;\n vp9_temporal_filter_init ( ) ;\n init_done = 1 ;\n }\n }"}
{"idx": 6941, "target": 0, "func": "char * rfbProcessFileTransferReadBuffer ( rfbClientPtr cl , uint32_t length ) {\n char * buffer = NULL ;\n int n = 0 ;\n FILEXFER_ALLOWED_OR_CLOSE_AND_RETURN ( \"\" , cl , NULL ) ;\n if ( length > 0 ) {\n buffer = malloc ( length + 1 ) ;\n if ( buffer != NULL ) {\n if ( ( n = rfbReadExact ( cl , ( char * ) buffer , length ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessFileTransferReadBuffer: read\" ) ;\n rfbCloseClient ( cl ) ;\n if ( buffer != NULL ) free ( buffer ) ;\n return NULL ;\n }\n buffer [ length ] = 0 ;\n }\n }\n return buffer ;\n }"}
{"idx": 6942, "target": 0, "func": "bool config_filters_equal ( const struct config_filter * f1 , const struct config_filter * f2 ) {\n if ( null_strcmp ( f1 -> service , f2 -> service ) != 0 ) return FALSE ;\n if ( f1 -> remote_bits != f2 -> remote_bits ) return FALSE ;\n if ( ! net_ip_compare ( & f1 -> remote_net , & f2 -> remote_net ) ) return FALSE ;\n if ( f1 -> local_bits != f2 -> local_bits ) return FALSE ;\n if ( ! net_ip_compare ( & f1 -> local_net , & f2 -> local_net ) ) return FALSE ;\n if ( null_strcasecmp ( f1 -> local_name , f2 -> local_name ) != 0 ) return FALSE ;\n return TRUE ;\n }"}
{"idx": 6943, "target": 0, "func": "static int snmp_seq_open ( struct inode * inode , struct file * file ) {\n return single_open_net ( inode , file , snmp_seq_show ) ;\n }"}
{"idx": 6944, "target": 0, "func": "static int ipvideo_decode_block_opcode_0x8_16 ( IpvideoContext * s , AVFrame * frame ) {\n int x , y ;\n uint16_t P [ 4 ] ;\n unsigned int flags = 0 ;\n uint16_t * pixel_ptr = ( uint16_t * ) s -> pixel_ptr ;\n P [ 0 ] = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n P [ 1 ] = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n if ( ! ( P [ 0 ] & 0x8000 ) ) {\n for ( y = 0 ;\n y < 16 ;\n y ++ ) {\n if ( ! ( y & 3 ) ) {\n if ( y ) {\n P [ 0 ] = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n P [ 1 ] = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n }\n flags = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n }\n for ( x = 0 ;\n x < 4 ;\n x ++ , flags >>= 1 ) * pixel_ptr ++ = P [ flags & 1 ] ;\n pixel_ptr += s -> stride - 4 ;\n if ( y == 7 ) pixel_ptr -= 8 * s -> stride - 4 ;\n }\n }\n else {\n flags = bytestream2_get_le32 ( & s -> stream_ptr ) ;\n P [ 2 ] = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n P [ 3 ] = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n if ( ! ( P [ 2 ] & 0x8000 ) ) {\n for ( y = 0 ;\n y < 16 ;\n y ++ ) {\n for ( x = 0 ;\n x < 4 ;\n x ++ , flags >>= 1 ) * pixel_ptr ++ = P [ flags & 1 ] ;\n pixel_ptr += s -> stride - 4 ;\n if ( y == 7 ) {\n pixel_ptr -= 8 * s -> stride - 4 ;\n P [ 0 ] = P [ 2 ] ;\n P [ 1 ] = P [ 3 ] ;\n flags = bytestream2_get_le32 ( & s -> stream_ptr ) ;\n }\n }\n }\n else {\n for ( y = 0 ;\n y < 8 ;\n y ++ ) {\n if ( y == 4 ) {\n P [ 0 ] = P [ 2 ] ;\n P [ 1 ] = P [ 3 ] ;\n flags = bytestream2_get_le32 ( & s -> stream_ptr ) ;\n }\n for ( x = 0 ;\n x < 8 ;\n x ++ , flags >>= 1 ) * pixel_ptr ++ = P [ flags & 1 ] ;\n pixel_ptr += s -> line_inc ;\n }\n }\n }\n return 0 ;\n }"}
{"idx": 6945, "target": 0, "func": "void mime_field_name_set ( HdrHeap * heap , MIMEHdrImpl * , MIMEField * field , int16_t name_wks_idx_or_neg1 , const char * name , int length , bool must_copy_string ) {\n ink_assert ( field -> m_readiness == MIME_FIELD_SLOT_READINESS_DETACHED ) ;\n field -> m_wks_idx = name_wks_idx_or_neg1 ;\n mime_str_u16_set ( heap , name , length , & ( field -> m_ptr_name ) , & ( field -> m_len_name ) , must_copy_string ) ;\n if ( ( name_wks_idx_or_neg1 == MIME_WKSIDX_CACHE_CONTROL ) || ( name_wks_idx_or_neg1 == MIME_WKSIDX_PRAGMA ) ) {\n field -> m_flags |= MIME_FIELD_SLOT_FLAGS_COOKED ;\n }\n }"}
{"idx": 6946, "target": 0, "func": "static int32_t u_scanf_octal_handler ( UFILE * input , u_scanf_spec_info * info , ufmt_args * args , const UChar * fmt , int32_t * fmtConsumed , int32_t * argConverted ) {\n ( void ) fmt ;\n ( void ) fmtConsumed ;\n int32_t len ;\n int32_t skipped ;\n void * num = ( void * ) ( args [ 0 ] . ptrValue ) ;\n int64_t result ;\n skipped = u_scanf_skip_leading_ws ( input , info -> fPadChar ) ;\n ufile_fill_uchar_buffer ( input ) ;\n len = ( int32_t ) ( input -> str . fLimit - input -> str . fPos ) ;\n if ( info -> fWidth != - 1 ) len = ufmt_min ( len , info -> fWidth ) ;\n result = ufmt_uto64 ( input -> str . fPos , & len , 8 ) ;\n input -> str . fPos += len ;\n if ( ! info -> fSkipArg ) {\n if ( info -> fIsShort ) * ( int16_t * ) num = ( int16_t ) ( UINT16_MAX & result ) ;\n else if ( info -> fIsLongLong ) * ( int64_t * ) num = result ;\n else * ( int32_t * ) num = ( int32_t ) ( UINT32_MAX & result ) ;\n }\n * argConverted = ! info -> fSkipArg ;\n return len + skipped ;\n }"}
{"idx": 6947, "target": 0, "func": "static void * ialloc_solo ( gs_memory_t * parent , gs_memory_type_ptr_t pstype , clump_t * * pcp ) {\n clump_t * cp = gs_raw_alloc_struct_immovable ( parent , & st_clump , \"ialloc_solo(clump)\" ) ;\n uint csize = ROUND_UP ( sizeof ( clump_head_t ) + sizeof ( obj_header_t ) + pstype -> ssize , obj_align_mod ) ;\n byte * cdata = gs_alloc_bytes_immovable ( parent , csize , \"ialloc_solo\" ) ;\n obj_header_t * obj = ( obj_header_t * ) ( cdata + sizeof ( clump_head_t ) ) ;\n if ( cp == 0 || cdata == 0 ) {\n gs_free_object ( parent , cp , \"ialloc_solo(allocation failure)\" ) ;\n gs_free_object ( parent , cdata , \"ialloc_solo(allocation failure)\" ) ;\n return 0 ;\n }\n alloc_init_clump ( cp , cdata , cdata + csize , false , ( clump_t * ) NULL ) ;\n cp -> cbot = cp -> ctop ;\n cp -> parent = cp -> left = cp -> right = 0 ;\n cp -> c_alone = true ;\n obj -> o_pad = 0 ;\n obj -> o_alone = 1 ;\n obj -> o_size = pstype -> ssize ;\n obj -> o_type = pstype ;\n * pcp = cp ;\n return ( void * ) ( obj + 1 ) ;\n }"}
{"idx": 6948, "target": 0, "func": "TEST_F ( SoundContentSettingObserverTest , MutingAudioWhileSoundIsPlayingBlocksSound ) {\n SimulateAudioPlaying ( ) ;\n EXPECT_FALSE ( RecordedSiteMuted ( ) ) ;\n ChangeSoundContentSettingTo ( CONTENT_SETTING_BLOCK ) ;\n EXPECT_TRUE ( RecordedSiteMuted ( ) ) ;\n ExpectRecordedForReason ( SoundContentSettingObserver : : MuteReason : : kSiteException ) ;\n }"}
{"idx": 6949, "target": 0, "func": "int main ( int argc , const char * * argv ) {\n AppInput app_input = {\n 0 }\n ;\n VpxVideoWriter * writer = NULL ;\n VpxVideoInfo info = {\n 0 }\n ;\n vpx_codec_ctx_t codec ;\n vpx_codec_enc_cfg_t enc_cfg ;\n SvcContext svc_ctx ;\n uint32_t i ;\n uint32_t frame_cnt = 0 ;\n vpx_image_t raw ;\n vpx_codec_err_t res ;\n int pts = 0 ;\n int frame_duration = 1 ;\n FILE * infile = NULL ;\n int end_of_stream = 0 ;\n int frames_received = 0 ;\n memset ( & svc_ctx , 0 , sizeof ( svc_ctx ) ) ;\n svc_ctx . log_print = 1 ;\n exec_name = argv [ 0 ] ;\n parse_command_line ( argc , argv , & app_input , & svc_ctx , & enc_cfg ) ;\n if ( ! vpx_img_alloc ( & raw , VPX_IMG_FMT_I420 , enc_cfg . g_w , enc_cfg . g_h , 32 ) ) die ( \"Failed to allocate image %dx%d\\n\" , enc_cfg . g_w , enc_cfg . g_h ) ;\n if ( ! ( infile = fopen ( app_input . input_filename , \"rb\" ) ) ) die ( \"Failed to open %s for reading\\n\" , app_input . input_filename ) ;\n if ( vpx_svc_init ( & svc_ctx , & codec , vpx_codec_vp9_cx ( ) , & enc_cfg ) != VPX_CODEC_OK ) die ( \"Failed to initialize encoder\\n\" ) ;\n info . codec_fourcc = VP9_FOURCC ;\n info . time_base . numerator = enc_cfg . g_timebase . num ;\n info . time_base . denominator = enc_cfg . g_timebase . den ;\n if ( ! ( app_input . passes == 2 && app_input . pass == 1 ) ) {\n writer = vpx_video_writer_open ( app_input . output_filename , kContainerIVF , & info ) ;\n if ( ! writer ) die ( \"Failed to open %s for writing\\n\" , app_input . output_filename ) ;\n }\n for ( i = 0 ;\n i < app_input . frames_to_skip ;\n ++ i ) vpx_img_read ( & raw , infile ) ;\n while ( ! end_of_stream ) {\n vpx_codec_iter_t iter = NULL ;\n const vpx_codec_cx_pkt_t * cx_pkt ;\n if ( frame_cnt >= app_input . frames_to_code || ! vpx_img_read ( & raw , infile ) ) {\n end_of_stream = 1 ;\n }\n res = vpx_svc_encode ( & svc_ctx , & codec , ( end_of_stream ? NULL : & raw ) , pts , frame_duration , VPX_DL_GOOD_QUALITY ) ;\n printf ( \"%s\" , vpx_svc_get_message ( & svc_ctx ) ) ;\n if ( res != VPX_CODEC_OK ) {\n die_codec ( & codec , \"Failed to encode frame\" ) ;\n }\n while ( ( cx_pkt = vpx_codec_get_cx_data ( & codec , & iter ) ) != NULL ) {\n switch ( cx_pkt -> kind ) {\n case VPX_CODEC_CX_FRAME_PKT : {\n if ( cx_pkt -> data . frame . sz > 0 ) vpx_video_writer_write_frame ( writer , cx_pkt -> data . frame . buf , cx_pkt -> data . frame . sz , cx_pkt -> data . frame . pts ) ;\n printf ( \"SVC frame: %d, kf: %d, size: %d, pts: %d\\n\" , frames_received , ! ! ( cx_pkt -> data . frame . flags & VPX_FRAME_IS_KEY ) , ( int ) cx_pkt -> data . frame . sz , ( int ) cx_pkt -> data . frame . pts ) ;\n ++ frames_received ;\n break ;\n }\n case VPX_CODEC_STATS_PKT : {\n stats_write ( & app_input . rc_stats , cx_pkt -> data . twopass_stats . buf , cx_pkt -> data . twopass_stats . sz ) ;\n break ;\n }\n default : {\n break ;\n }\n }\n }\n if ( ! end_of_stream ) {\n ++ frame_cnt ;\n pts += frame_duration ;\n }\n }\n printf ( \"Processed %d frames\\n\" , frame_cnt ) ;\n fclose ( infile ) ;\n if ( vpx_codec_destroy ( & codec ) ) die_codec ( & codec , \"Failed to destroy codec\" ) ;\n if ( app_input . passes == 2 ) stats_close ( & app_input . rc_stats , 1 ) ;\n if ( writer ) {\n vpx_video_writer_close ( writer ) ;\n }\n vpx_img_free ( & raw ) ;\n printf ( \"%s\" , vpx_svc_dump_statistics ( & svc_ctx ) ) ;\n vpx_svc_release ( & svc_ctx ) ;\n return EXIT_SUCCESS ;\n }"}
{"idx": 6950, "target": 0, "func": "const EVP_CIPHER * EVP_aes_128_wrap ( void ) {\n return & aes_128_wrap ;\n }"}
{"idx": 6951, "target": 0, "func": "static int dissect_h245_T_rejected ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_rejected , T_rejected_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 6952, "target": 0, "func": "static int decode_coefs ( VP9_COMMON * cm , const MACROBLOCKD * xd , PLANE_TYPE type , tran_low_t * dqcoeff , TX_SIZE tx_size , const int16_t * dq , int ctx , const int16_t * scan , const int16_t * nb , vp9_reader * r ) {\n const int max_eob = 16 << ( tx_size << 1 ) ;\n const FRAME_CONTEXT * const fc = & cm -> fc ;\n FRAME_COUNTS * const counts = & cm -> counts ;\n const int ref = is_inter_block ( & xd -> mi [ 0 ] . src_mi -> mbmi ) ;\n int band , c = 0 ;\n const vp9_prob ( * coef_probs ) [ COEFF_CONTEXTS ] [ UNCONSTRAINED_NODES ] = fc -> coef_probs [ tx_size ] [ type ] [ ref ] ;\n const vp9_prob * prob ;\n unsigned int ( * coef_counts ) [ COEFF_CONTEXTS ] [ UNCONSTRAINED_NODES + 1 ] = counts -> coef [ tx_size ] [ type ] [ ref ] ;\n unsigned int ( * eob_branch_count ) [ COEFF_CONTEXTS ] = counts -> eob_branch [ tx_size ] [ type ] [ ref ] ;\n uint8_t token_cache [ 32 * 32 ] ;\n const uint8_t * band_translate = get_band_translate ( tx_size ) ;\n const int dq_shift = ( tx_size == TX_32X32 ) ;\n int v , token ;\n int16_t dqv = dq [ 0 ] ;\n const uint8_t * cat1_prob ;\n const uint8_t * cat2_prob ;\n const uint8_t * cat3_prob ;\n const uint8_t * cat4_prob ;\n const uint8_t * cat5_prob ;\n const uint8_t * cat6_prob ;\n # if CONFIG_VP9_HIGHBITDEPTH if ( cm -> use_highbitdepth ) {\n if ( cm -> bit_depth == VPX_BITS_10 ) {\n cat1_prob = vp9_cat1_prob_high10 ;\n cat2_prob = vp9_cat2_prob_high10 ;\n cat3_prob = vp9_cat3_prob_high10 ;\n cat4_prob = vp9_cat4_prob_high10 ;\n cat5_prob = vp9_cat5_prob_high10 ;\n cat6_prob = vp9_cat6_prob_high10 ;\n }\n else {\n cat1_prob = vp9_cat1_prob_high12 ;\n cat2_prob = vp9_cat2_prob_high12 ;\n cat3_prob = vp9_cat3_prob_high12 ;\n cat4_prob = vp9_cat4_prob_high12 ;\n cat5_prob = vp9_cat5_prob_high12 ;\n cat6_prob = vp9_cat6_prob_high12 ;\n }\n }\n else {\n cat1_prob = vp9_cat1_prob ;\n cat2_prob = vp9_cat2_prob ;\n cat3_prob = vp9_cat3_prob ;\n cat4_prob = vp9_cat4_prob ;\n cat5_prob = vp9_cat5_prob ;\n cat6_prob = vp9_cat6_prob ;\n }\n # else cat1_prob = vp9_cat1_prob ;\n cat2_prob = vp9_cat2_prob ;\n cat3_prob = vp9_cat3_prob ;\n cat4_prob = vp9_cat4_prob ;\n cat5_prob = vp9_cat5_prob ;\n cat6_prob = vp9_cat6_prob ;\n # endif while ( c < max_eob ) {\n int val = - 1 ;\n band = * band_translate ++ ;\n prob = coef_probs [ band ] [ ctx ] ;\n if ( ! cm -> frame_parallel_decoding_mode ) ++ eob_branch_count [ band ] [ ctx ] ;\n if ( ! vp9_read ( r , prob [ EOB_CONTEXT_NODE ] ) ) {\n INCREMENT_COUNT ( EOB_MODEL_TOKEN ) ;\n break ;\n }\n while ( ! vp9_read ( r , prob [ ZERO_CONTEXT_NODE ] ) ) {\n INCREMENT_COUNT ( ZERO_TOKEN ) ;\n dqv = dq [ 1 ] ;\n token_cache [ scan [ c ] ] = 0 ;\n ++ c ;\n if ( c >= max_eob ) return c ;\n ctx = get_coef_context ( nb , token_cache , c ) ;\n band = * band_translate ++ ;\n prob = coef_probs [ band ] [ ctx ] ;\n }\n if ( ! vp9_read ( r , prob [ ONE_CONTEXT_NODE ] ) ) {\n INCREMENT_COUNT ( ONE_TOKEN ) ;\n token = ONE_TOKEN ;\n val = 1 ;\n }\n else {\n INCREMENT_COUNT ( TWO_TOKEN ) ;\n token = vp9_read_tree ( r , coeff_subtree_high , vp9_pareto8_full [ prob [ PIVOT_NODE ] - 1 ] ) ;\n switch ( token ) {\n case TWO_TOKEN : case THREE_TOKEN : case FOUR_TOKEN : val = token ;\n break ;\n case CATEGORY1_TOKEN : val = CAT1_MIN_VAL + read_coeff ( cat1_prob , 1 , r ) ;\n break ;\n case CATEGORY2_TOKEN : val = CAT2_MIN_VAL + read_coeff ( cat2_prob , 2 , r ) ;\n break ;\n case CATEGORY3_TOKEN : val = CAT3_MIN_VAL + read_coeff ( cat3_prob , 3 , r ) ;\n break ;\n case CATEGORY4_TOKEN : val = CAT4_MIN_VAL + read_coeff ( cat4_prob , 4 , r ) ;\n break ;\n case CATEGORY5_TOKEN : val = CAT5_MIN_VAL + read_coeff ( cat5_prob , 5 , r ) ;\n break ;\n case CATEGORY6_TOKEN : # if CONFIG_VP9_HIGHBITDEPTH switch ( cm -> bit_depth ) {\n case VPX_BITS_8 : val = CAT6_MIN_VAL + read_coeff ( cat6_prob , 14 , r ) ;\n break ;\n case VPX_BITS_10 : val = CAT6_MIN_VAL + read_coeff ( cat6_prob , 16 , r ) ;\n break ;\n case VPX_BITS_12 : val = CAT6_MIN_VAL + read_coeff ( cat6_prob , 18 , r ) ;\n break ;\n default : assert ( 0 ) ;\n return - 1 ;\n }\n # else val = CAT6_MIN_VAL + read_coeff ( cat6_prob , 14 , r ) ;\n # endif break ;\n }\n }\n v = ( val * dqv ) >> dq_shift ;\n dqcoeff [ scan [ c ] ] = vp9_read_bit ( r ) ? - v : v ;\n token_cache [ scan [ c ] ] = vp9_pt_energy_class [ token ] ;\n ++ c ;\n ctx = get_coef_context ( nb , token_cache , c ) ;\n dqv = dq [ 1 ] ;\n }\n return c ;\n }"}
{"idx": 6953, "target": 0, "func": "static void print_days ( UChar * days [ ] , FILE * f , UErrorCode * status ) {\n int32_t i ;\n if ( U_FAILURE ( * status ) ) return ;\n for ( i = 0 ;\n i < DAY_COUNT ;\n ++ i ) {\n uprint ( days [ i ] , f , status ) ;\n putc ( ' ' , f ) ;\n }\n }"}
{"idx": 6954, "target": 0, "func": "Expr * make_opclause ( Oid opno , Oid opresulttype , bool opretset , Expr * leftop , Expr * rightop , Oid opcollid , Oid inputcollid ) {\n OpExpr * expr = makeNode ( OpExpr ) ;\n expr -> opno = opno ;\n expr -> opfuncid = InvalidOid ;\n expr -> opresulttype = opresulttype ;\n expr -> opretset = opretset ;\n expr -> opcollid = opcollid ;\n expr -> inputcollid = inputcollid ;\n if ( rightop ) expr -> args = list_make2 ( leftop , rightop ) ;\n else expr -> args = list_make1 ( leftop ) ;\n expr -> location = - 1 ;\n return ( Expr * ) expr ;\n }"}
{"idx": 6955, "target": 0, "func": "static bool update_schema_privilege ( THD * thd , TABLE * table , char * buff , const char * db , const char * t_name , const char * column , uint col_length , const char * priv , uint priv_length , const char * is_grantable ) {\n int i = 2 ;\n CHARSET_INFO * cs = system_charset_info ;\n restore_record ( table , s -> default_values ) ;\n table -> field [ 0 ] -> store ( buff , ( uint ) strlen ( buff ) , cs ) ;\n if ( db ) table -> field [ i ++ ] -> store ( db , ( uint ) strlen ( db ) , cs ) ;\n if ( t_name ) table -> field [ i ++ ] -> store ( t_name , ( uint ) strlen ( t_name ) , cs ) ;\n if ( column ) table -> field [ i ++ ] -> store ( column , col_length , cs ) ;\n table -> field [ i ++ ] -> store ( priv , priv_length , cs ) ;\n table -> field [ i ] -> store ( is_grantable , strlen ( is_grantable ) , cs ) ;\n return schema_table_store_record ( thd , table ) ;\n }"}
{"idx": 6956, "target": 0, "func": "int doquery ( int opcode , associd_t associd , int auth , int qsize , const char * qdata , u_short * rstatus , int * rsize , const char * * rdata ) {\n return doqueryex ( opcode , associd , auth , qsize , qdata , rstatus , rsize , rdata , FALSE ) ;\n }"}
{"idx": 6957, "target": 0, "func": "hb_graphite2_shaper_shape_plan_data_t * _hb_graphite2_shaper_shape_plan_data_create ( hb_shape_plan_t * shape_plan HB_UNUSED , const hb_feature_t * user_features HB_UNUSED , unsigned int num_user_features HB_UNUSED ) {\n return ( hb_graphite2_shaper_shape_plan_data_t * ) HB_SHAPER_DATA_SUCCEEDED ;\n }"}
{"idx": 6958, "target": 0, "func": "static void rv34_pred_mv_rv3 ( RV34DecContext * r , int block_type , int dir ) {\n MpegEncContext * s = & r -> s ;\n int mv_pos = s -> mb_x * 2 + s -> mb_y * 2 * s -> b8_stride ;\n int A [ 2 ] = {\n 0 }\n , B [ 2 ] , C [ 2 ] ;\n int i , j , k ;\n int mx , my ;\n int * avail = r -> avail_cache + avail_indexes [ 0 ] ;\n if ( avail [ - 1 ] ) {\n A [ 0 ] = s -> current_picture_ptr -> motion_val [ 0 ] [ mv_pos - 1 ] [ 0 ] ;\n A [ 1 ] = s -> current_picture_ptr -> motion_val [ 0 ] [ mv_pos - 1 ] [ 1 ] ;\n }\n if ( avail [ - 4 ] ) {\n B [ 0 ] = s -> current_picture_ptr -> motion_val [ 0 ] [ mv_pos - s -> b8_stride ] [ 0 ] ;\n B [ 1 ] = s -> current_picture_ptr -> motion_val [ 0 ] [ mv_pos - s -> b8_stride ] [ 1 ] ;\n }\n else {\n B [ 0 ] = A [ 0 ] ;\n B [ 1 ] = A [ 1 ] ;\n }\n if ( ! avail [ - 4 + 2 ] ) {\n if ( avail [ - 4 ] && ( avail [ - 1 ] ) ) {\n C [ 0 ] = s -> current_picture_ptr -> motion_val [ 0 ] [ mv_pos - s -> b8_stride - 1 ] [ 0 ] ;\n C [ 1 ] = s -> current_picture_ptr -> motion_val [ 0 ] [ mv_pos - s -> b8_stride - 1 ] [ 1 ] ;\n }\n else {\n C [ 0 ] = A [ 0 ] ;\n C [ 1 ] = A [ 1 ] ;\n }\n }\n else {\n C [ 0 ] = s -> current_picture_ptr -> motion_val [ 0 ] [ mv_pos - s -> b8_stride + 2 ] [ 0 ] ;\n C [ 1 ] = s -> current_picture_ptr -> motion_val [ 0 ] [ mv_pos - s -> b8_stride + 2 ] [ 1 ] ;\n }\n mx = mid_pred ( A [ 0 ] , B [ 0 ] , C [ 0 ] ) ;\n my = mid_pred ( A [ 1 ] , B [ 1 ] , C [ 1 ] ) ;\n mx += r -> dmv [ 0 ] [ 0 ] ;\n my += r -> dmv [ 0 ] [ 1 ] ;\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n for ( k = 0 ;\n k < 2 ;\n k ++ ) {\n s -> current_picture_ptr -> motion_val [ k ] [ mv_pos + i + j * s -> b8_stride ] [ 0 ] = mx ;\n s -> current_picture_ptr -> motion_val [ k ] [ mv_pos + i + j * s -> b8_stride ] [ 1 ] = my ;\n }\n }\n }\n }"}
{"idx": 6959, "target": 0, "func": "static int SpoolssGetPrinterDriverDirectory_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n offset = dissect_spoolss_string_parm ( tvb , offset , pinfo , tree , di , drep , \"Directory\" ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_needed , NULL ) ;\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 6960, "target": 0, "func": "static void activation_start_mountables ( ActivateParameters * parameters ) {\n NautilusFile * file ;\n GMountOperation * start_op ;\n if ( parameters -> start_mountables != NULL ) {\n file = parameters -> start_mountables -> data ;\n start_op = gtk_mount_operation_new ( parameters -> parent_window ) ;\n g_signal_connect ( start_op , \"notify::is-showing\" , G_CALLBACK ( activate_mount_op_active ) , parameters ) ;\n nautilus_file_start ( file , start_op , parameters -> cancellable , activation_mountable_started , parameters ) ;\n g_object_unref ( start_op ) ;\n return ;\n }\n if ( parameters -> mountables == NULL && parameters -> start_mountables == NULL ) {\n activation_get_activation_uris ( parameters ) ;\n }\n }"}
{"idx": 6961, "target": 0, "func": "static void walk_splay ( cmap_splay * tree , unsigned int node , void ( * fn ) ( cmap_splay * , void * ) , void * arg ) {\n int from = TOP ;\n while ( node != EMPTY ) {\n switch ( from ) {\n case TOP : if ( tree [ node ] . left != EMPTY ) {\n node = tree [ node ] . left ;\n from = TOP ;\n break ;\n }\n case LEFT : fn ( & tree [ node ] , arg ) ;\n if ( tree [ node ] . right != EMPTY ) {\n node = tree [ node ] . right ;\n from = TOP ;\n break ;\n }\n case RIGHT : {\n unsigned int parent = tree [ node ] . parent ;\n if ( parent == EMPTY ) return ;\n if ( tree [ parent ] . left == node ) from = LEFT ;\n else {\n assert ( tree [ parent ] . right == node ) ;\n from = RIGHT ;\n }\n node = parent ;\n }\n }\n }\n }"}
{"idx": 6962, "target": 0, "func": "static void sig_server_connected ( SERVER_REC * server ) {\n g_return_if_fail ( server != NULL ) ;\n printformat ( server , NULL , MSGLEVEL_CLIENTNOTICE , TXT_CONNECTION_ESTABLISHED , server -> connrec -> address ) ;\n }"}
{"idx": 6963, "target": 0, "func": "static void cal ( int32_t month , int32_t year , UBool useLongNames , UErrorCode * status ) {\n UCalendar * c ;\n UChar * days [ DAY_COUNT ] ;\n UChar * months [ MONTH_COUNT ] ;\n int32_t fdow ;\n if ( U_FAILURE ( * status ) ) return ;\n c = ucal_open ( 0 , - 1 , uloc_getDefault ( ) , UCAL_TRADITIONAL , status ) ;\n if ( month == - 1 && year != - 1 ) {\n ucal_set ( c , UCAL_YEAR , year ) ;\n fdow = ucal_getAttribute ( c , UCAL_FIRST_DAY_OF_WEEK ) ;\n print_year ( c , days , months , useLongNames , fdow , status ) ;\n }\n else {\n if ( month != - 1 ) ucal_set ( c , UCAL_MONTH , month ) ;\n if ( year != - 1 ) ucal_set ( c , UCAL_YEAR , year ) ;\n fdow = ucal_getAttribute ( c , UCAL_FIRST_DAY_OF_WEEK ) ;\n print_month ( c , days , useLongNames , fdow , status ) ;\n }\n ucal_close ( c ) ;\n }"}
{"idx": 6964, "target": 0, "func": "static int dissect_h245_INTEGER_1_72 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 72U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 6965, "target": 0, "func": "static int findintfep ( struct usb_device * dev , unsigned int ep ) {\n unsigned int i , j , e ;\n struct usb_interface * intf ;\n struct usb_host_interface * alts ;\n struct usb_endpoint_descriptor * endpt ;\n if ( ep & ~ ( USB_DIR_IN | 0xf ) ) return - EINVAL ;\n if ( ! dev -> actconfig ) return - ESRCH ;\n for ( i = 0 ;\n i < dev -> actconfig -> desc . bNumInterfaces ;\n i ++ ) {\n intf = dev -> actconfig -> interface [ i ] ;\n for ( j = 0 ;\n j < intf -> num_altsetting ;\n j ++ ) {\n alts = & intf -> altsetting [ j ] ;\n for ( e = 0 ;\n e < alts -> desc . bNumEndpoints ;\n e ++ ) {\n endpt = & alts -> endpoint [ e ] . desc ;\n if ( endpt -> bEndpointAddress == ep ) return alts -> desc . bInterfaceNumber ;\n }\n }\n }\n return - ENOENT ;\n }"}
{"idx": 6966, "target": 0, "func": "void DefaultTTFEnglishNames ( struct ttflangname * dummy , SplineFont * sf ) {\n time_t now ;\n struct tm * tm ;\n char buffer [ 200 ] ;\n if ( dummy -> names [ ttf_copyright ] == NULL || * dummy -> names [ ttf_copyright ] == '\\0' ) dummy -> names [ ttf_copyright ] = utf8_verify_copy ( sf -> copyright ) ;\n if ( dummy -> names [ ttf_family ] == NULL || * dummy -> names [ ttf_family ] == '\\0' ) dummy -> names [ ttf_family ] = utf8_verify_copy ( sf -> familyname ) ;\n if ( dummy -> names [ ttf_subfamily ] == NULL || * dummy -> names [ ttf_subfamily ] == '\\0' ) dummy -> names [ ttf_subfamily ] = utf8_verify_copy ( SFGetModifiers ( sf ) ) ;\n if ( dummy -> names [ ttf_uniqueid ] == NULL || * dummy -> names [ ttf_uniqueid ] == '\\0' ) {\n time ( & now ) ;\n tm = localtime ( & now ) ;\n snprintf ( buffer , sizeof ( buffer ) , \"%s : %s : %d-%d-%d\" , BDFFoundry ? BDFFoundry : TTFFoundry ? TTFFoundry : \"FontForge 2.0\" , sf -> fullname != NULL ? sf -> fullname : sf -> fontname , tm -> tm_mday , tm -> tm_mon + 1 , tm -> tm_year + 1900 ) ;\n dummy -> names [ ttf_uniqueid ] = copy ( buffer ) ;\n }\n if ( dummy -> names [ ttf_fullname ] == NULL || * dummy -> names [ ttf_fullname ] == '\\0' ) dummy -> names [ ttf_fullname ] = utf8_verify_copy ( sf -> fullname ) ;\n if ( dummy -> names [ ttf_version ] == NULL || * dummy -> names [ ttf_version ] == '\\0' ) {\n if ( sf -> subfontcnt != 0 ) sprintf ( buffer , \"Version %f \" , ( double ) sf -> cidversion ) ;\n else if ( sf -> version != NULL ) sprintf ( buffer , \"Version %.20s \" , sf -> version ) ;\n else strcpy ( buffer , \"Version 1.0\" ) ;\n dummy -> names [ ttf_version ] = copy ( buffer ) ;\n }\n if ( dummy -> names [ ttf_postscriptname ] == NULL || * dummy -> names [ ttf_postscriptname ] == '\\0' ) dummy -> names [ ttf_postscriptname ] = utf8_verify_copy ( sf -> fontname ) ;\n }"}
{"idx": 6967, "target": 1, "func": "static int s302m_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n int block_size , ret ;\n int frame_size = s302m_parse_frame_header ( avctx , buf , buf_size ) ;\n if ( frame_size < 0 ) return frame_size ;\n buf_size -= AES3_HEADER_LEN ;\n buf += AES3_HEADER_LEN ;\n block_size = ( avctx -> bits_per_coded_sample + 4 ) / 4 ;\n frame -> nb_samples = 2 * ( buf_size / block_size ) / avctx -> channels ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n buf_size = ( frame -> nb_samples * avctx -> channels / 2 ) * block_size ;\n if ( avctx -> bits_per_coded_sample == 24 ) {\n uint32_t * o = ( uint32_t * ) frame -> data [ 0 ] ;\n for ( ;\n buf_size > 6 ;\n buf_size -= 7 ) {\n * o ++ = ( ff_reverse [ buf [ 2 ] ] << 24 ) | ( ff_reverse [ buf [ 1 ] ] << 16 ) | ( ff_reverse [ buf [ 0 ] ] << 8 ) ;\n * o ++ = ( ff_reverse [ buf [ 6 ] & 0xf0 ] << 28 ) | ( ff_reverse [ buf [ 5 ] ] << 20 ) | ( ff_reverse [ buf [ 4 ] ] << 12 ) | ( ff_reverse [ buf [ 3 ] & 0x0f ] << 4 ) ;\n buf += 7 ;\n }\n }\n else if ( avctx -> bits_per_coded_sample == 20 ) {\n uint32_t * o = ( uint32_t * ) frame -> data [ 0 ] ;\n for ( ;\n buf_size > 5 ;\n buf_size -= 6 ) {\n * o ++ = ( ff_reverse [ buf [ 2 ] & 0xf0 ] << 28 ) | ( ff_reverse [ buf [ 1 ] ] << 20 ) | ( ff_reverse [ buf [ 0 ] ] << 12 ) ;\n * o ++ = ( ff_reverse [ buf [ 5 ] & 0xf0 ] << 28 ) | ( ff_reverse [ buf [ 4 ] ] << 20 ) | ( ff_reverse [ buf [ 3 ] ] << 12 ) ;\n buf += 6 ;\n }\n }\n else {\n uint16_t * o = ( uint16_t * ) frame -> data [ 0 ] ;\n for ( ;\n buf_size > 4 ;\n buf_size -= 5 ) {\n * o ++ = ( ff_reverse [ buf [ 1 ] ] << 8 ) | ff_reverse [ buf [ 0 ] ] ;\n * o ++ = ( ff_reverse [ buf [ 4 ] & 0xf0 ] << 12 ) | ( ff_reverse [ buf [ 3 ] ] << 4 ) | ( ff_reverse [ buf [ 2 ] ] >> 4 ) ;\n buf += 5 ;\n }\n }\n * got_frame_ptr = 1 ;\n return avpkt -> size ;\n }"}
{"idx": 6968, "target": 0, "func": "TEST_F ( MdDownloadsDOMHandlerTest , HandleGetDownloads ) {\n TestMdDownloadsDOMHandler handler ( manager ( ) , web_ui ( ) ) ;\n handler . set_web_ui ( web_ui ( ) ) ;\n base : : ListValue empty_search_terms ;\n handler . HandleGetDownloads ( & empty_search_terms ) ;\n EXPECT_EQ ( 1U , web_ui ( ) -> call_data ( ) . size ( ) ) ;\n EXPECT_EQ ( \"downloads.Manager.insertItems\" , web_ui ( ) -> call_data ( ) [ 0 ] -> function_name ( ) ) ;\n }"}
{"idx": 6969, "target": 0, "func": "static inline void rv30_weak_loop_filter ( uint8_t * src , const int step , const int stride , const int lim ) {\n uint8_t * cm = ff_cropTbl + MAX_NEG_CROP ;\n int i , diff ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n diff = ( ( src [ - 2 * step ] - src [ 1 * step ] ) - ( src [ - 1 * step ] - src [ 0 * step ] ) * 4 ) >> 3 ;\n diff = av_clip ( diff , - lim , lim ) ;\n src [ - 1 * step ] = cm [ src [ - 1 * step ] + diff ] ;\n src [ 0 * step ] = cm [ src [ 0 * step ] - diff ] ;\n src += stride ;\n }\n }"}
{"idx": 6970, "target": 0, "func": "static int dissect_pcp_message_text ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , int offset ) {\n proto_item * pcp_text_item ;\n proto_tree * pcp_text_tree ;\n guint32 buflen ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"[%s]\" , val_to_str ( PCP_PDU_TEXT , packettypenames , \"Unknown Type:0x%02x\" ) ) ;\n pcp_text_item = proto_tree_add_item ( tree , hf_pcp_text , tvb , offset , - 1 , ENC_NA ) ;\n pcp_text_tree = proto_item_add_subtree ( pcp_text_item , ett_pcp ) ;\n proto_tree_add_item ( pcp_text_tree , hf_pcp_text_ident , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n buflen = tvb_get_ntohl ( tvb , offset ) ;\n proto_tree_add_item ( pcp_text_tree , hf_pcp_text_buflen , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( pcp_text_tree , hf_pcp_text_buffer , tvb , offset , buflen , ENC_ASCII | ENC_NA ) ;\n offset += buflen ;\n return offset ;\n }"}
{"idx": 6971, "target": 0, "func": "static guint16 de_prio ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n curr_offset = offset ;\n proto_tree_add_item ( tree , hf_gsm_a_b8spare , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_call_prio , tvb , ( curr_offset << 3 ) + 5 , 3 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 6972, "target": 0, "func": "static void yy_stack_print ( yytype_int16 * yybottom , yytype_int16 * yytop ) # else static void yy_stack_print ( yybottom , yytop ) yytype_int16 * yybottom ;\n yytype_int16 * yytop ;\n # endif {\n YYFPRINTF ( stderr , \"Stack now\" ) ;\n for ( ;\n yybottom <= yytop ;\n yybottom ++ ) {\n int yybot = * yybottom ;\n YYFPRINTF ( stderr , \" %d\" , yybot ) ;\n }\n YYFPRINTF ( stderr , \"\\n\" ) ;\n }"}
{"idx": 6973, "target": 0, "func": "TEST_F ( AutocompleteResultTest , SortAndCullWithMatchDupsAndDemotionsByType ) {\n ACMatches matches ;\n const AutocompleteMatchTestData data [ ] = {\n {\n \"http://search-what-you-typed/\" , AutocompleteMatchType : : SEARCH_WHAT_YOU_TYPED }\n , {\n \"http://dup-url/\" , AutocompleteMatchType : : HISTORY_URL }\n , {\n \"http://dup-url/\" , AutocompleteMatchType : : NAVSUGGEST }\n , {\n \"http://search-url/\" , AutocompleteMatchType : : SEARCH_SUGGEST }\n , {\n \"http://history-url/\" , AutocompleteMatchType : : HISTORY_URL }\n , }\n ;\n PopulateAutocompleteMatchesFromTestData ( data , arraysize ( data ) , & matches ) ;\n {\n std : : map < std : : string , std : : string > params ;\n params [ std : : string ( OmniboxFieldTrial : : kDemoteByTypeRule ) + \":8:*\" ] = \"1:50\" ;\n ASSERT_TRUE ( variations : : AssociateVariationParams ( OmniboxFieldTrial : : kBundledExperimentFieldTrialName , \"C\" , params ) ) ;\n }\n base : : FieldTrialList : : CreateFieldTrial ( OmniboxFieldTrial : : kBundledExperimentFieldTrialName , \"C\" ) ;\n {\n AutocompleteInput input ( base : : string16 ( ) , base : : string16 : : npos , std : : string ( ) , GURL ( ) , OmniboxEventProto : : INSTANT_NTP_WITH_FAKEBOX_AS_STARTING_FOCUS , false , false , false , true , false , TestSchemeClassifier ( ) ) ;\n AutocompleteResult result ;\n result . AppendMatches ( input , matches ) ;\n result . SortAndCull ( input , template_url_service_ . get ( ) ) ;\n ASSERT_EQ ( 4u , result . size ( ) ) ;\n EXPECT_EQ ( \"http://search-what-you-typed/\" , result . match_at ( 0 ) -> destination_url . spec ( ) ) ;\n EXPECT_EQ ( \"http://dup-url/\" , result . match_at ( 1 ) -> destination_url . spec ( ) ) ;\n EXPECT_EQ ( AutocompleteMatchType : : NAVSUGGEST , result . match_at ( 1 ) -> type ) ;\n EXPECT_EQ ( \"http://search-url/\" , result . match_at ( 2 ) -> destination_url . spec ( ) ) ;\n EXPECT_EQ ( \"http://history-url/\" , result . match_at ( 3 ) -> destination_url . spec ( ) ) ;\n }\n }"}
{"idx": 6974, "target": 0, "func": "static UBool _isLanguageSubtag ( const char * s , int32_t len ) {\n if ( len < 0 ) {\n len = ( int32_t ) uprv_strlen ( s ) ;\n }\n if ( len >= 2 && len <= 8 && _isAlphaString ( s , len ) ) {\n return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 6975, "target": 1, "func": "inline OldUChar * toOldUCharPtr ( char16_t * p ) {\n # ifdef U_ALIASING_BARRIER U_ALIASING_BARRIER ( p ) ;\n # endif return reinterpret_cast < OldUChar * > ( p ) ;\n }"}
{"idx": 6976, "target": 0, "func": "static int tipc_nl_compat_net_dump ( struct tipc_nl_compat_msg * msg , struct nlattr * * attrs ) {\n __be32 id ;\n struct nlattr * net [ TIPC_NLA_NET_MAX + 1 ] ;\n int err ;\n if ( ! attrs [ TIPC_NLA_NET ] ) return - EINVAL ;\n err = nla_parse_nested ( net , TIPC_NLA_NET_MAX , attrs [ TIPC_NLA_NET ] , NULL ) ;\n if ( err ) return err ;\n id = htonl ( nla_get_u32 ( net [ TIPC_NLA_NET_ID ] ) ) ;\n return tipc_add_tlv ( msg -> rep , TIPC_TLV_UNSIGNED , & id , sizeof ( id ) ) ;\n }"}
{"idx": 6977, "target": 0, "func": "static void pdf_run_sh ( fz_context * ctx , pdf_processor * proc , const char * name , fz_shade * shade ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_show_shade ( ctx , pr , shade ) ;\n }"}
{"idx": 6978, "target": 0, "func": "char get_typstorage ( Oid typid ) {\n HeapTuple tp ;\n tp = SearchSysCache1 ( TYPEOID , ObjectIdGetDatum ( typid ) ) ;\n if ( HeapTupleIsValid ( tp ) ) {\n Form_pg_type typtup = ( Form_pg_type ) GETSTRUCT ( tp ) ;\n char result ;\n result = typtup -> typstorage ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }\n else return 'p' ;\n }"}
{"idx": 6979, "target": 0, "func": "static void * GenericMPEdup ( struct _cms_typehandler_struct * self , const void * Ptr , cmsUInt32Number n ) {\n return ( void * ) cmsStageDup ( ( cmsStage * ) Ptr ) ;\n cmsUNUSED_PARAMETER ( n ) ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 6980, "target": 0, "func": "static int ngsniffer_process_record ( wtap * wth , gboolean is_random , guint * padding , struct wtap_pkthdr * phdr , Buffer * buf , int * err , gchar * * err_info ) {\n ngsniffer_t * ngsniffer ;\n char record_type [ 2 ] ;\n char record_length [ 4 ] ;\n guint type , length ;\n struct frame2_rec frame2 ;\n struct frame4_rec frame4 ;\n struct frame6_rec frame6 ;\n guint16 time_low , time_med , true_size , size ;\n guint8 time_high , time_day ;\n guint64 t , tsecs , tpsecs ;\n if ( ! ng_read_bytes_or_eof ( wth , record_type , 2 , is_random , err , err_info ) ) {\n if ( * err != 0 ) return - 1 ;\n return REC_EOF ;\n }\n if ( ! ng_read_bytes ( wth , record_length , 4 , is_random , err , err_info ) ) return - 1 ;\n type = pletoh16 ( record_type ) ;\n length = pletoh16 ( record_length ) ;\n ngsniffer = ( ngsniffer_t * ) wth -> priv ;\n switch ( type ) {\n case REC_FRAME2 : if ( ngsniffer -> network == NETWORK_ATM ) {\n * err = WTAP_ERR_BAD_FILE ;\n * err_info = g_strdup ( \"ngsniffer: REC_FRAME2 record in an ATM Sniffer file\" ) ;\n return - 1 ;\n }\n if ( length < sizeof frame2 ) {\n * err = WTAP_ERR_BAD_FILE ;\n * err_info = g_strdup ( \"ngsniffer: REC_FRAME2 record length is less than record header length\" ) ;\n return - 1 ;\n }\n if ( ! ng_read_bytes ( wth , & frame2 , ( unsigned int ) sizeof frame2 , is_random , err , err_info ) ) return - 1 ;\n time_low = pletoh16 ( & frame2 . time_low ) ;\n time_med = pletoh16 ( & frame2 . time_med ) ;\n time_high = frame2 . time_high ;\n time_day = frame2 . time_day ;\n size = pletoh16 ( & frame2 . size ) ;\n true_size = pletoh16 ( & frame2 . true_size ) ;\n length -= sizeof frame2 ;\n set_pseudo_header_frame2 ( wth , & phdr -> pseudo_header , & frame2 ) ;\n break ;\n case REC_FRAME4 : if ( ngsniffer -> network != NETWORK_ATM ) {\n * err = WTAP_ERR_BAD_FILE ;\n * err_info = g_strdup ( \"ngsniffer: REC_FRAME4 record in a non-ATM Sniffer file\" ) ;\n return - 1 ;\n }\n if ( ngsniffer -> maj_vers < 5 && ngsniffer -> min_vers >= 95 ) length += sizeof frame4 - sizeof frame2 ;\n if ( length < sizeof frame4 ) {\n * err = WTAP_ERR_BAD_FILE ;\n * err_info = g_strdup ( \"ngsniffer: REC_FRAME4 record length is less than record header length\" ) ;\n return - 1 ;\n }\n if ( ! ng_read_bytes ( wth , & frame4 , ( unsigned int ) sizeof frame4 , is_random , err , err_info ) ) return - 1 ;\n time_low = pletoh16 ( & frame4 . time_low ) ;\n time_med = pletoh16 ( & frame4 . time_med ) ;\n time_high = frame4 . time_high ;\n time_day = frame4 . time_day ;\n size = pletoh16 ( & frame4 . size ) ;\n true_size = pletoh16 ( & frame4 . true_size ) ;\n length -= sizeof frame4 ;\n set_pseudo_header_frame4 ( & phdr -> pseudo_header , & frame4 ) ;\n break ;\n case REC_FRAME6 : if ( length < sizeof frame6 ) {\n * err = WTAP_ERR_BAD_FILE ;\n * err_info = g_strdup ( \"ngsniffer: REC_FRAME6 record length is less than record header length\" ) ;\n return - 1 ;\n }\n if ( ! ng_read_bytes ( wth , & frame6 , ( unsigned int ) sizeof frame6 , is_random , err , err_info ) ) return - 1 ;\n time_low = pletoh16 ( & frame6 . time_low ) ;\n time_med = pletoh16 ( & frame6 . time_med ) ;\n time_high = frame6 . time_high ;\n time_day = frame6 . time_day ;\n size = pletoh16 ( & frame6 . size ) ;\n true_size = pletoh16 ( & frame6 . true_size ) ;\n length -= sizeof frame6 ;\n set_pseudo_header_frame6 ( wth , & phdr -> pseudo_header , & frame6 ) ;\n break ;\n case REC_EOF : * err = 0 ;\n return REC_EOF ;\n default : if ( padding != NULL ) {\n * padding = length ;\n }\n return type ;\n }\n if ( size > length ) {\n * err = WTAP_ERR_BAD_FILE ;\n * err_info = g_strdup ( \"ngsniffer: Record length is less than packet size\" ) ;\n return - 1 ;\n }\n if ( padding != NULL ) {\n * padding = length - size ;\n }\n phdr -> rec_type = REC_TYPE_PACKET ;\n phdr -> presence_flags = true_size ? WTAP_HAS_TS | WTAP_HAS_CAP_LEN : WTAP_HAS_TS ;\n phdr -> len = true_size ? true_size : size ;\n phdr -> caplen = size ;\n ws_buffer_assure_space ( buf , size ) ;\n if ( ! ng_read_bytes ( wth , ws_buffer_start_ptr ( buf ) , size , is_random , err , err_info ) ) return - 1 ;\n phdr -> pkt_encap = fix_pseudo_header ( wth -> file_encap , buf , size , & phdr -> pseudo_header ) ;\n t = ( ( ( guint64 ) time_high ) << 32 ) | ( ( ( guint64 ) time_med ) << 16 ) | time_low ;\n t *= ngsniffer -> timeunit ;\n tsecs = t / G_GUINT64_CONSTANT ( 1000000000000 ) ;\n tpsecs = t - tsecs * G_GUINT64_CONSTANT ( 1000000000000 ) ;\n tsecs += time_day * 86400 ;\n tsecs += ngsniffer -> start ;\n phdr -> ts . secs = ( time_t ) tsecs ;\n phdr -> ts . nsecs = ( int ) ( tpsecs / 1000 ) ;\n return type ;\n }"}
{"idx": 6981, "target": 0, "func": "static void gtkui_connection_data_join ( void ) {\n GtkWidget * hbox , * vbox , * label , * scrolled , * button , * child ;\n GtkTextIter iter ;\n # define TITLE_LEN ( MAX_ASCII_ADDR_LEN * 2 ) + 6 char src [ MAX_ASCII_ADDR_LEN ] ;\n char dst [ MAX_ASCII_ADDR_LEN ] ;\n char title [ TITLE_LEN ] ;\n static gint scroll_join = 2 ;\n DEBUG_MSG ( \"gtk_connection_data_join\" ) ;\n conntrack_hook_conn_del ( curr_conn , split_print_po ) ;\n if ( data_window ) {\n child = gtk_bin_get_child ( GTK_BIN ( data_window ) ) ;\n gtk_container_remove ( GTK_CONTAINER ( data_window ) , child ) ;\n textview1 = NULL ;\n textview2 = NULL ;\n splitbuf1 = NULL ;\n splitbuf2 = NULL ;\n endmark1 = NULL ;\n endmark2 = NULL ;\n }\n else {\n data_window = gtkui_page_new ( \"Connection data\" , & gtkui_destroy_conndata , & gtkui_connection_data_detach ) ;\n }\n curr_conn -> flags |= CONN_VIEWING ;\n vbox = gtkui_box_new ( GTK_ORIENTATION_VERTICAL , 0 , FALSE ) ;\n gtk_container_add ( GTK_CONTAINER ( data_window ) , vbox ) ;\n gtk_widget_show ( vbox ) ;\n snprintf ( title , TITLE_LEN , \"%s:%d - %s:%d\" , ip_addr_ntoa ( & curr_conn -> L3_addr1 , src ) , ntohs ( curr_conn -> L4_addr1 ) , ip_addr_ntoa ( & curr_conn -> L3_addr2 , dst ) , ntohs ( curr_conn -> L4_addr2 ) ) ;\n label = gtk_label_new ( title ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_box_pack_start ( GTK_BOX ( vbox ) , label , FALSE , FALSE , 0 ) ;\n gtk_widget_show ( label ) ;\n scrolled = gtk_scrolled_window_new ( NULL , NULL ) ;\n gtk_scrolled_window_set_policy ( GTK_SCROLLED_WINDOW ( scrolled ) , GTK_POLICY_AUTOMATIC , GTK_POLICY_AUTOMATIC ) ;\n gtk_scrolled_window_set_shadow_type ( GTK_SCROLLED_WINDOW ( scrolled ) , GTK_SHADOW_IN ) ;\n gtk_box_pack_start ( GTK_BOX ( vbox ) , scrolled , TRUE , TRUE , 0 ) ;\n gtk_widget_show ( scrolled ) ;\n textview3 = gtk_text_view_new ( ) ;\n gtk_text_view_set_wrap_mode ( GTK_TEXT_VIEW ( textview3 ) , GTK_WRAP_CHAR ) ;\n gtk_text_view_set_editable ( GTK_TEXT_VIEW ( textview3 ) , FALSE ) ;\n gtk_text_view_set_cursor_visible ( GTK_TEXT_VIEW ( textview3 ) , FALSE ) ;\n gtk_text_view_set_right_margin ( GTK_TEXT_VIEW ( textview3 ) , 5 ) ;\n gtk_text_view_set_right_margin ( GTK_TEXT_VIEW ( textview3 ) , 5 ) ;\n gtk_container_add ( GTK_CONTAINER ( scrolled ) , textview3 ) ;\n gtk_widget_show ( textview3 ) ;\n joinedbuf = gtk_text_view_get_buffer ( GTK_TEXT_VIEW ( textview3 ) ) ;\n gtk_text_buffer_create_tag ( joinedbuf , \"blue_fg\" , \"foreground\" , \"blue\" , NULL ) ;\n gtk_text_buffer_create_tag ( joinedbuf , \"monospace\" , \"family\" , \"monospace\" , NULL ) ;\n gtk_text_buffer_get_end_iter ( joinedbuf , & iter ) ;\n endmark3 = gtk_text_buffer_create_mark ( joinedbuf , \"end\" , & iter , FALSE ) ;\n hbox = gtkui_box_new ( GTK_ORIENTATION_HORIZONTAL , 5 , TRUE ) ;\n gtk_box_pack_start ( GTK_BOX ( vbox ) , hbox , FALSE , FALSE , 0 ) ;\n gtk_widget_show ( hbox ) ;\n button = gtk_button_new_with_mnemonic ( \"_Split View\" ) ;\n g_signal_connect ( G_OBJECT ( button ) , \"clicked\" , G_CALLBACK ( gtkui_connection_data_split ) , NULL ) ;\n gtk_box_pack_start ( GTK_BOX ( hbox ) , button , TRUE , TRUE , 0 ) ;\n gtk_widget_show ( button ) ;\n button = gtk_button_new_with_mnemonic ( \"_Kill Connection\" ) ;\n g_signal_connect ( G_OBJECT ( button ) , \"clicked\" , G_CALLBACK ( gtkui_connection_kill_curr_conn ) , NULL ) ;\n gtk_box_pack_start ( GTK_BOX ( hbox ) , button , TRUE , TRUE , 0 ) ;\n gtk_widget_show ( button ) ;\n gtk_widget_show ( data_window ) ;\n if ( GTK_IS_WINDOW ( data_window ) ) gtk_window_present ( GTK_WINDOW ( data_window ) ) ;\n else gtkui_page_present ( data_window ) ;\n g_timeout_add ( 500 , gtkui_connections_scroll , & scroll_join ) ;\n connbuf_print ( & curr_conn -> data , join_print ) ;\n conntrack_hook_conn_add ( curr_conn , join_print_po ) ;\n }"}
{"idx": 6982, "target": 0, "func": "static PHP_NAMED_FUNCTION ( zif_zip_entry_compressionmethod ) {\n php_zip_entry_get_info ( INTERNAL_FUNCTION_PARAM_PASSTHRU , 3 ) ;\n }"}
{"idx": 6983, "target": 0, "func": "static inline void write_IRQreg_ivpr ( OpenPICState * opp , int n_IRQ , uint32_t val ) {\n uint32_t mask ;\n mask = IVPR_MASK_MASK | IVPR_PRIORITY_MASK | IVPR_SENSE_MASK | IVPR_POLARITY_MASK | opp -> vector_mask ;\n opp -> src [ n_IRQ ] . ivpr = ( opp -> src [ n_IRQ ] . ivpr & IVPR_ACTIVITY_MASK ) | ( val & mask ) ;\n switch ( opp -> src [ n_IRQ ] . type ) {\n case IRQ_TYPE_NORMAL : opp -> src [ n_IRQ ] . level = ! ! ( opp -> src [ n_IRQ ] . ivpr & IVPR_SENSE_MASK ) ;\n break ;\n case IRQ_TYPE_FSLINT : opp -> src [ n_IRQ ] . ivpr &= ~ IVPR_SENSE_MASK ;\n break ;\n case IRQ_TYPE_FSLSPECIAL : opp -> src [ n_IRQ ] . ivpr &= ~ ( IVPR_POLARITY_MASK | IVPR_SENSE_MASK ) ;\n break ;\n }\n openpic_update_irq ( opp , n_IRQ ) ;\n DPRINTF ( \"Set IVPR %d to 0x%08x -> 0x%08x\\n\" , n_IRQ , val , opp -> src [ n_IRQ ] . ivpr ) ;\n }"}
{"idx": 6984, "target": 0, "func": "void Init_ossl_asn1 ( void ) {\n VALUE ary ;\n int i ;\n # if 0 mOSSL = rb_define_module ( \"OpenSSL\" ) ;\n eOSSLError = rb_define_class_under ( mOSSL , \"OpenSSLError\" , rb_eStandardError ) ;\n # endif sym_UNIVERSAL = ID2SYM ( rb_intern_const ( \"UNIVERSAL\" ) ) ;\n sym_CONTEXT_SPECIFIC = ID2SYM ( rb_intern_const ( \"CONTEXT_SPECIFIC\" ) ) ;\n sym_APPLICATION = ID2SYM ( rb_intern_const ( \"APPLICATION\" ) ) ;\n sym_PRIVATE = ID2SYM ( rb_intern_const ( \"PRIVATE\" ) ) ;\n sym_EXPLICIT = ID2SYM ( rb_intern_const ( \"EXPLICIT\" ) ) ;\n sym_IMPLICIT = ID2SYM ( rb_intern_const ( \"IMPLICIT\" ) ) ;\n sivVALUE = rb_intern ( \"@value\" ) ;\n sivTAG = rb_intern ( \"@tag\" ) ;\n sivTAGGING = rb_intern ( \"@tagging\" ) ;\n sivTAG_CLASS = rb_intern ( \"@tag_class\" ) ;\n sivINFINITE_LENGTH = rb_intern ( \"@infinite_length\" ) ;\n sivUNUSED_BITS = rb_intern ( \"@unused_bits\" ) ;\n mASN1 = rb_define_module_under ( mOSSL , \"ASN1\" ) ;\n eASN1Error = rb_define_class_under ( mASN1 , \"ASN1Error\" , eOSSLError ) ;\n rb_define_module_function ( mASN1 , \"traverse\" , ossl_asn1_traverse , 1 ) ;\n rb_define_module_function ( mASN1 , \"decode\" , ossl_asn1_decode , 1 ) ;\n rb_define_module_function ( mASN1 , \"decode_all\" , ossl_asn1_decode_all , 1 ) ;\n ary = rb_ary_new ( ) ;\n rb_define_const ( mASN1 , \"UNIVERSAL_TAG_NAME\" , ary ) ;\n for ( i = 0 ;\n i < ossl_asn1_info_size ;\n i ++ ) {\n if ( ossl_asn1_info [ i ] . name [ 0 ] == '[' ) continue ;\n rb_define_const ( mASN1 , ossl_asn1_info [ i ] . name , INT2NUM ( i ) ) ;\n rb_ary_store ( ary , i , rb_str_new2 ( ossl_asn1_info [ i ] . name ) ) ;\n }\n cASN1Data = rb_define_class_under ( mASN1 , \"ASN1Data\" , rb_cObject ) ;\n rb_attr ( cASN1Data , rb_intern ( \"value\" ) , 1 , 1 , 0 ) ;\n rb_attr ( cASN1Data , rb_intern ( \"tag\" ) , 1 , 1 , 0 ) ;\n rb_attr ( cASN1Data , rb_intern ( \"tag_class\" ) , 1 , 1 , 0 ) ;\n rb_attr ( cASN1Data , rb_intern ( \"infinite_length\" ) , 1 , 1 , 0 ) ;\n rb_define_method ( cASN1Data , \"initialize\" , ossl_asn1data_initialize , 3 ) ;\n rb_define_method ( cASN1Data , \"to_der\" , ossl_asn1data_to_der , 0 ) ;\n cASN1Primitive = rb_define_class_under ( mASN1 , \"Primitive\" , cASN1Data ) ;\n rb_attr ( cASN1Primitive , rb_intern ( \"tagging\" ) , 1 , 1 , Qtrue ) ;\n rb_undef_method ( cASN1Primitive , \"infinite_length=\" ) ;\n rb_define_method ( cASN1Primitive , \"initialize\" , ossl_asn1_initialize , - 1 ) ;\n rb_define_method ( cASN1Primitive , \"to_der\" , ossl_asn1prim_to_der , 0 ) ;\n cASN1Constructive = rb_define_class_under ( mASN1 , \"Constructive\" , cASN1Data ) ;\n rb_include_module ( cASN1Constructive , rb_mEnumerable ) ;\n rb_attr ( cASN1Constructive , rb_intern ( \"tagging\" ) , 1 , 1 , Qtrue ) ;\n rb_define_method ( cASN1Constructive , \"initialize\" , ossl_asn1_initialize , - 1 ) ;\n rb_define_method ( cASN1Constructive , \"to_der\" , ossl_asn1cons_to_der , 0 ) ;\n rb_define_method ( cASN1Constructive , \"each\" , ossl_asn1cons_each , 0 ) ;\n # define OSSL_ASN1_DEFINE_CLASS ( name , super ) do {\n cASN1 ## name = rb_define_class_under ( mASN1 , # name , cASN1 ## super ) ;\n rb_define_module_function ( mASN1 , # name , ossl_asn1_ ## name , - 1 ) ;\n \\ }\n while ( 0 ) OSSL_ASN1_DEFINE_CLASS ( Boolean , Primitive ) ;\n OSSL_ASN1_DEFINE_CLASS ( Integer , Primitive ) ;\n OSSL_ASN1_DEFINE_CLASS ( Enumerated , Primitive ) ;\n OSSL_ASN1_DEFINE_CLASS ( BitString , Primitive ) ;\n OSSL_ASN1_DEFINE_CLASS ( OctetString , Primitive ) ;\n OSSL_ASN1_DEFINE_CLASS ( UTF8String , Primitive ) ;\n OSSL_ASN1_DEFINE_CLASS ( NumericString , Primitive ) ;\n OSSL_ASN1_DEFINE_CLASS ( PrintableString , Primitive ) ;\n OSSL_ASN1_DEFINE_CLASS ( T61String , Primitive ) ;\n OSSL_ASN1_DEFINE_CLASS ( VideotexString , Primitive ) ;\n OSSL_ASN1_DEFINE_CLASS ( IA5String , Primitive ) ;\n OSSL_ASN1_DEFINE_CLASS ( GraphicString , Primitive ) ;\n OSSL_ASN1_DEFINE_CLASS ( ISO64String , Primitive ) ;\n OSSL_ASN1_DEFINE_CLASS ( GeneralString , Primitive ) ;\n OSSL_ASN1_DEFINE_CLASS ( UniversalString , Primitive ) ;\n OSSL_ASN1_DEFINE_CLASS ( BMPString , Primitive ) ;\n OSSL_ASN1_DEFINE_CLASS ( Null , Primitive ) ;\n OSSL_ASN1_DEFINE_CLASS ( ObjectId , Primitive ) ;\n OSSL_ASN1_DEFINE_CLASS ( UTCTime , Primitive ) ;\n OSSL_ASN1_DEFINE_CLASS ( GeneralizedTime , Primitive ) ;\n OSSL_ASN1_DEFINE_CLASS ( Sequence , Constructive ) ;\n OSSL_ASN1_DEFINE_CLASS ( Set , Constructive ) ;\n OSSL_ASN1_DEFINE_CLASS ( EndOfContent , Data ) ;\n # if 0 cASN1ObjectId = rb_define_class_under ( mASN1 , \"ObjectId\" , cASN1Primitive ) ;\n # endif rb_define_singleton_method ( cASN1ObjectId , \"register\" , ossl_asn1obj_s_register , 3 ) ;\n rb_define_method ( cASN1ObjectId , \"sn\" , ossl_asn1obj_get_sn , 0 ) ;\n rb_define_method ( cASN1ObjectId , \"ln\" , ossl_asn1obj_get_ln , 0 ) ;\n rb_define_method ( cASN1ObjectId , \"oid\" , ossl_asn1obj_get_oid , 0 ) ;\n rb_define_alias ( cASN1ObjectId , \"short_name\" , \"sn\" ) ;\n rb_define_alias ( cASN1ObjectId , \"long_name\" , \"ln\" ) ;\n rb_attr ( cASN1BitString , rb_intern ( \"unused_bits\" ) , 1 , 1 , 0 ) ;\n rb_define_method ( cASN1EndOfContent , \"initialize\" , ossl_asn1eoc_initialize , 0 ) ;\n class_tag_map = rb_hash_new ( ) ;\n rb_hash_aset ( class_tag_map , cASN1EndOfContent , INT2NUM ( V_ASN1_EOC ) ) ;\n rb_hash_aset ( class_tag_map , cASN1Boolean , INT2NUM ( V_ASN1_BOOLEAN ) ) ;\n rb_hash_aset ( class_tag_map , cASN1Integer , INT2NUM ( V_ASN1_INTEGER ) ) ;\n rb_hash_aset ( class_tag_map , cASN1BitString , INT2NUM ( V_ASN1_BIT_STRING ) ) ;\n rb_hash_aset ( class_tag_map , cASN1OctetString , INT2NUM ( V_ASN1_OCTET_STRING ) ) ;\n rb_hash_aset ( class_tag_map , cASN1Null , INT2NUM ( V_ASN1_NULL ) ) ;\n rb_hash_aset ( class_tag_map , cASN1ObjectId , INT2NUM ( V_ASN1_OBJECT ) ) ;\n rb_hash_aset ( class_tag_map , cASN1Enumerated , INT2NUM ( V_ASN1_ENUMERATED ) ) ;\n rb_hash_aset ( class_tag_map , cASN1UTF8String , INT2NUM ( V_ASN1_UTF8STRING ) ) ;\n rb_hash_aset ( class_tag_map , cASN1Sequence , INT2NUM ( V_ASN1_SEQUENCE ) ) ;\n rb_hash_aset ( class_tag_map , cASN1Set , INT2NUM ( V_ASN1_SET ) ) ;\n rb_hash_aset ( class_tag_map , cASN1NumericString , INT2NUM ( V_ASN1_NUMERICSTRING ) ) ;\n rb_hash_aset ( class_tag_map , cASN1PrintableString , INT2NUM ( V_ASN1_PRINTABLESTRING ) ) ;\n rb_hash_aset ( class_tag_map , cASN1T61String , INT2NUM ( V_ASN1_T61STRING ) ) ;\n rb_hash_aset ( class_tag_map , cASN1VideotexString , INT2NUM ( V_ASN1_VIDEOTEXSTRING ) ) ;\n rb_hash_aset ( class_tag_map , cASN1IA5String , INT2NUM ( V_ASN1_IA5STRING ) ) ;\n rb_hash_aset ( class_tag_map , cASN1UTCTime , INT2NUM ( V_ASN1_UTCTIME ) ) ;\n rb_hash_aset ( class_tag_map , cASN1GeneralizedTime , INT2NUM ( V_ASN1_GENERALIZEDTIME ) ) ;\n rb_hash_aset ( class_tag_map , cASN1GraphicString , INT2NUM ( V_ASN1_GRAPHICSTRING ) ) ;\n rb_hash_aset ( class_tag_map , cASN1ISO64String , INT2NUM ( V_ASN1_ISO64STRING ) ) ;\n rb_hash_aset ( class_tag_map , cASN1GeneralString , INT2NUM ( V_ASN1_GENERALSTRING ) ) ;\n rb_hash_aset ( class_tag_map , cASN1UniversalString , INT2NUM ( V_ASN1_UNIVERSALSTRING ) ) ;\n rb_hash_aset ( class_tag_map , cASN1BMPString , INT2NUM ( V_ASN1_BMPSTRING ) ) ;\n rb_global_variable ( & class_tag_map ) ;\n }"}
{"idx": 6985, "target": 0, "func": "static void accumulate_stats ( FIRSTPASS_STATS * section , const FIRSTPASS_STATS * frame ) {\n section -> frame += frame -> frame ;\n section -> spatial_layer_id = frame -> spatial_layer_id ;\n section -> intra_error += frame -> intra_error ;\n section -> coded_error += frame -> coded_error ;\n section -> sr_coded_error += frame -> sr_coded_error ;\n section -> pcnt_inter += frame -> pcnt_inter ;\n section -> pcnt_motion += frame -> pcnt_motion ;\n section -> pcnt_second_ref += frame -> pcnt_second_ref ;\n section -> pcnt_neutral += frame -> pcnt_neutral ;\n section -> MVr += frame -> MVr ;\n section -> mvr_abs += frame -> mvr_abs ;\n section -> MVc += frame -> MVc ;\n section -> mvc_abs += frame -> mvc_abs ;\n section -> MVrv += frame -> MVrv ;\n section -> MVcv += frame -> MVcv ;\n section -> mv_in_out_count += frame -> mv_in_out_count ;\n section -> new_mv_count += frame -> new_mv_count ;\n section -> count += frame -> count ;\n section -> duration += frame -> duration ;\n }"}
{"idx": 6986, "target": 0, "func": "void ff_MPV_common_end ( MpegEncContext * s ) {\n int i ;\n if ( s -> slice_context_count > 1 ) {\n for ( i = 0 ;\n i < s -> slice_context_count ;\n i ++ ) {\n free_duplicate_context ( s -> thread_context [ i ] ) ;\n }\n for ( i = 1 ;\n i < s -> slice_context_count ;\n i ++ ) {\n av_freep ( & s -> thread_context [ i ] ) ;\n }\n s -> slice_context_count = 1 ;\n }\n else free_duplicate_context ( s ) ;\n av_freep ( & s -> parse_context . buffer ) ;\n s -> parse_context . buffer_size = 0 ;\n av_freep ( & s -> bitstream_buffer ) ;\n s -> allocated_bitstream_buffer_size = 0 ;\n av_freep ( & s -> avctx -> stats_out ) ;\n av_freep ( & s -> ac_stats ) ;\n av_freep ( & s -> q_intra_matrix ) ;\n av_freep ( & s -> q_inter_matrix ) ;\n av_freep ( & s -> q_intra_matrix16 ) ;\n av_freep ( & s -> q_inter_matrix16 ) ;\n av_freep ( & s -> input_picture ) ;\n av_freep ( & s -> reordered_input_picture ) ;\n av_freep ( & s -> dct_offset ) ;\n if ( s -> picture ) {\n for ( i = 0 ;\n i < MAX_PICTURE_COUNT ;\n i ++ ) {\n free_picture_tables ( & s -> picture [ i ] ) ;\n ff_mpeg_unref_picture ( s , & s -> picture [ i ] ) ;\n }\n }\n av_freep ( & s -> picture ) ;\n free_picture_tables ( & s -> last_picture ) ;\n ff_mpeg_unref_picture ( s , & s -> last_picture ) ;\n free_picture_tables ( & s -> current_picture ) ;\n ff_mpeg_unref_picture ( s , & s -> current_picture ) ;\n free_picture_tables ( & s -> next_picture ) ;\n ff_mpeg_unref_picture ( s , & s -> next_picture ) ;\n free_picture_tables ( & s -> new_picture ) ;\n ff_mpeg_unref_picture ( s , & s -> new_picture ) ;\n free_context_frame ( s ) ;\n s -> context_initialized = 0 ;\n s -> last_picture_ptr = s -> next_picture_ptr = s -> current_picture_ptr = NULL ;\n s -> linesize = s -> uvlinesize = 0 ;\n }"}
{"idx": 6987, "target": 0, "func": "static int ivr_read_packet ( AVFormatContext * s , AVPacket * pkt ) {\n RMDemuxContext * rm = s -> priv_data ;\n int ret = AVERROR_EOF , opcode ;\n AVIOContext * pb = s -> pb ;\n unsigned size , index ;\n int64_t pos , pts ;\n if ( avio_feof ( pb ) || rm -> data_end ) return AVERROR_EOF ;\n pos = avio_tell ( pb ) ;\n for ( ;\n ;\n ) {\n if ( rm -> audio_pkt_cnt ) {\n AVStream * st ;\n st = s -> streams [ rm -> audio_stream_num ] ;\n ret = ff_rm_retrieve_cache ( s , pb , st , st -> priv_data , pkt ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n }\n else {\n if ( rm -> remaining_len ) {\n avio_skip ( pb , rm -> remaining_len ) ;\n rm -> remaining_len = 0 ;\n }\n if ( avio_feof ( pb ) ) return AVERROR_EOF ;\n opcode = avio_r8 ( pb ) ;\n if ( opcode == 2 ) {\n AVStream * st ;\n int seq = 1 ;\n pts = avio_rb32 ( pb ) ;\n index = avio_rb16 ( pb ) ;\n if ( index >= s -> nb_streams ) return AVERROR_INVALIDDATA ;\n avio_skip ( pb , 4 ) ;\n size = avio_rb32 ( pb ) ;\n avio_skip ( pb , 4 ) ;\n if ( size < 1 || size > INT_MAX / 4 ) {\n av_log ( s , AV_LOG_ERROR , \"size %u is invalid\\n\" , size ) ;\n return AVERROR_INVALIDDATA ;\n }\n st = s -> streams [ index ] ;\n ret = ff_rm_parse_packet ( s , pb , st , st -> priv_data , size , pkt , & seq , 0 , pts ) ;\n if ( ret < - 1 ) {\n return ret ;\n }\n else if ( ret ) {\n continue ;\n }\n pkt -> pos = pos ;\n pkt -> pts = pts ;\n pkt -> stream_index = index ;\n }\n else if ( opcode == 7 ) {\n pos = avio_rb64 ( pb ) ;\n if ( ! pos ) {\n rm -> data_end = 1 ;\n return AVERROR_EOF ;\n }\n }\n else {\n av_log ( s , AV_LOG_ERROR , \"Unsupported opcode=%d at %\" PRIX64 \"\\n\" , opcode , avio_tell ( pb ) - 1 ) ;\n return AVERROR ( EIO ) ;\n }\n }\n break ;\n }\n return ret ;\n }"}
{"idx": 6988, "target": 0, "func": "static int selinux_sb_statfs ( struct dentry * dentry ) {\n const struct cred * cred = current_cred ( ) ;\n struct common_audit_data ad ;\n ad . type = LSM_AUDIT_DATA_DENTRY ;\n ad . u . dentry = dentry -> d_sb -> s_root ;\n return superblock_has_perm ( cred , dentry -> d_sb , FILESYSTEM__GETATTR , & ad ) ;\n }"}
{"idx": 6989, "target": 0, "func": "static int ivi_huff_desc_cmp ( const IVIHuffDesc * desc1 , const IVIHuffDesc * desc2 ) {\n return desc1 -> num_rows != desc2 -> num_rows || memcmp ( desc1 -> xbits , desc2 -> xbits , desc1 -> num_rows ) ;\n }"}
{"idx": 6990, "target": 1, "func": "INDIC_TABLE_ELEMENT_TYPE hb_indic_get_categories ( hb_codepoint_t u ) {\n switch ( u >> 12 ) {\n case 0x0u : if ( hb_in_range ( u , 0x0028u , 0x0040u ) ) return indic_table [ u - 0x0028u + indic_offset_0x0028u ] ;\n if ( hb_in_range ( u , 0x00D0u , 0x00D8u ) ) return indic_table [ u - 0x00D0u + indic_offset_0x00d0u ] ;\n if ( hb_in_range ( u , 0x0900u , 0x0DF8u ) ) return indic_table [ u - 0x0900u + indic_offset_0x0900u ] ;\n if ( unlikely ( u == 0x00A0u ) ) return _ ( CP , x ) ;\n break ;\n case 0x1u : if ( hb_in_range ( u , 0x1000u , 0x10A0u ) ) return indic_table [ u - 0x1000u + indic_offset_0x1000u ] ;\n if ( hb_in_range ( u , 0x1700u , 0x17F0u ) ) return indic_table [ u - 0x1700u + indic_offset_0x1700u ] ;\n if ( hb_in_range ( u , 0x1900u , 0x1AA0u ) ) return indic_table [ u - 0x1900u + indic_offset_0x1900u ] ;\n if ( hb_in_range ( u , 0x1B00u , 0x1C50u ) ) return indic_table [ u - 0x1B00u + indic_offset_0x1b00u ] ;\n if ( hb_in_range ( u , 0x1CD0u , 0x1CF8u ) ) return indic_table [ u - 0x1CD0u + indic_offset_0x1cd0u ] ;\n break ;\n case 0x2u : if ( hb_in_range ( u , 0x2008u , 0x2018u ) ) return indic_table [ u - 0x2008u + indic_offset_0x2008u ] ;\n if ( unlikely ( u == 0x25CCu ) ) return _ ( CP , x ) ;\n break ;\n case 0xAu : if ( hb_in_range ( u , 0xA800u , 0xAAF8u ) ) return indic_table [ u - 0xA800u + indic_offset_0xa800u ] ;\n if ( hb_in_range ( u , 0xABC0u , 0xAC00u ) ) return indic_table [ u - 0xABC0u + indic_offset_0xabc0u ] ;\n break ;\n case 0x10u : if ( hb_in_range ( u , 0x10A00u , 0x10A48u ) ) return indic_table [ u - 0x10A00u + indic_offset_0x10a00u ] ;\n break ;\n case 0x11u : if ( hb_in_range ( u , 0x11000u , 0x110C0u ) ) return indic_table [ u - 0x11000u + indic_offset_0x11000u ] ;\n if ( hb_in_range ( u , 0x11100u , 0x11238u ) ) return indic_table [ u - 0x11100u + indic_offset_0x11100u ] ;\n if ( hb_in_range ( u , 0x112B0u , 0x11378u ) ) return indic_table [ u - 0x112B0u + indic_offset_0x112b0u ] ;\n if ( hb_in_range ( u , 0x11480u , 0x114E0u ) ) return indic_table [ u - 0x11480u + indic_offset_0x11480u ] ;\n if ( hb_in_range ( u , 0x11580u , 0x115C8u ) ) return indic_table [ u - 0x11580u + indic_offset_0x11580u ] ;\n if ( hb_in_range ( u , 0x11600u , 0x116D0u ) ) return indic_table [ u - 0x11600u + indic_offset_0x11600u ] ;\n break ;\n default : break ;\n }\n return _ ( x , x ) ;\n }"}
{"idx": 6991, "target": 0, "func": "static void pdf_run_rg ( fz_context * ctx , pdf_processor * proc , float r , float g , float b ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n float color [ 3 ] = {\n r , g , b }\n ;\n pr -> dev -> flags &= ~ FZ_DEVFLAG_FILLCOLOR_UNDEFINED ;\n pdf_set_colorspace ( ctx , pr , PDF_FILL , fz_device_rgb ( ctx ) ) ;\n pdf_set_color ( ctx , pr , PDF_FILL , color ) ;\n }"}
{"idx": 6992, "target": 0, "func": "static int dissect_h225_OCTET_STRING_SIZE_2_4 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 2 , 4 , FALSE , NULL ) ;\n return offset ;\n }"}
{"idx": 6993, "target": 0, "func": "int ssl3_get_finished ( SSL * s , int a , int b ) {\n int al , i , ok ;\n long n ;\n unsigned char * p ;\n # ifdef OPENSSL_NO_NEXTPROTONEG # endif n = s -> method -> ssl_get_message ( s , a , b , SSL3_MT_FINISHED , 64 , & ok ) ;\n if ( ! ok ) return ( ( int ) n ) ;\n if ( ! s -> s3 -> change_cipher_spec ) {\n al = SSL_AD_UNEXPECTED_MESSAGE ;\n SSLerr ( SSL_F_SSL3_GET_FINISHED , SSL_R_GOT_A_FIN_BEFORE_A_CCS ) ;\n goto f_err ;\n }\n s -> s3 -> change_cipher_spec = 0 ;\n p = ( unsigned char * ) s -> init_msg ;\n i = s -> s3 -> tmp . peer_finish_md_len ;\n if ( i != n ) {\n al = SSL_AD_DECODE_ERROR ;\n SSLerr ( SSL_F_SSL3_GET_FINISHED , SSL_R_BAD_DIGEST_LENGTH ) ;\n goto f_err ;\n }\n if ( CRYPTO_memcmp ( p , s -> s3 -> tmp . peer_finish_md , i ) != 0 ) {\n al = SSL_AD_DECRYPT_ERROR ;\n SSLerr ( SSL_F_SSL3_GET_FINISHED , SSL_R_DIGEST_CHECK_FAILED ) ;\n goto f_err ;\n }\n if ( s -> type == SSL_ST_ACCEPT ) {\n OPENSSL_assert ( i <= EVP_MAX_MD_SIZE ) ;\n memcpy ( s -> s3 -> previous_client_finished , s -> s3 -> tmp . peer_finish_md , i ) ;\n s -> s3 -> previous_client_finished_len = i ;\n }\n else {\n OPENSSL_assert ( i <= EVP_MAX_MD_SIZE ) ;\n memcpy ( s -> s3 -> previous_server_finished , s -> s3 -> tmp . peer_finish_md , i ) ;\n s -> s3 -> previous_server_finished_len = i ;\n }\n return ( 1 ) ;\n f_err : ssl3_send_alert ( s , SSL3_AL_FATAL , al ) ;\n return ( 0 ) ;\n }"}
{"idx": 6994, "target": 0, "func": "static unsigned int do_preload ( const char * fname , struct link_map * main_map , const char * where ) {\n const char * objname ;\n const char * err_str = NULL ;\n struct map_args args ;\n bool malloced ;\n args . str = fname ;\n args . loader = main_map ;\n args . mode = __RTLD_SECURE ;\n unsigned int old_nloaded = GL ( dl_ns ) [ LM_ID_BASE ] . _ns_nloaded ;\n ( void ) _dl_catch_error ( & objname , & err_str , & malloced , map_doit , & args ) ;\n if ( __glibc_unlikely ( err_str != NULL ) ) {\n _dl_error_printf ( \"\\ ERROR: ld.so: object '%s' from %s cannot be preloaded (%s): ignored.\\n\" , fname , where , err_str ) ;\n }\n else if ( GL ( dl_ns ) [ LM_ID_BASE ] . _ns_nloaded != old_nloaded ) return 1 ;\n return 0 ;\n }"}
{"idx": 6995, "target": 0, "func": "static void NewAudioConfig ( const media : : AudioDecoderConfig & config ) {\n }"}
{"idx": 6996, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( BluetoothChooserBrowserTest , InvokeDialog_ScanningWithDevicesModal ) {\n set_status ( FakeBluetoothChooserController : : BluetoothStatus : : SCANNING ) ;\n AddDeviceForAllStrengths ( ) ;\n RunDialog ( ) ;\n }"}
{"idx": 6997, "target": 0, "func": "char * get_opname ( Oid opno ) {\n HeapTuple tp ;\n tp = SearchSysCache1 ( OPEROID , ObjectIdGetDatum ( opno ) ) ;\n if ( HeapTupleIsValid ( tp ) ) {\n Form_pg_operator optup = ( Form_pg_operator ) GETSTRUCT ( tp ) ;\n char * result ;\n result = pstrdup ( NameStr ( optup -> oprname ) ) ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }\n else return NULL ;\n }"}
{"idx": 6998, "target": 0, "func": "static VirtIONet * to_virtio_net ( VirtIODevice * vdev ) {\n return ( VirtIONet * ) vdev ;\n }"}
{"idx": 6999, "target": 1, "func": "void remoteDispatchConnError ( remote_error * rerr , virConnectPtr conn ATTRIBUTE_UNUSED ) {\n virErrorPtr verr = virGetLastError ( ) ;\n if ( verr ) remoteDispatchCopyError ( rerr , verr ) ;\n else remoteDispatchGenericError ( rerr ) ;\n }"}
{"idx": 7000, "target": 0, "func": "static int add_send_request ( struct object * obj , struct remote_lock * lock ) {\n struct transfer_request * request ;\n struct packed_git * target ;\n check_locks ( ) ;\n if ( remote_dir_exists [ obj -> oid . hash [ 0 ] ] == - 1 ) get_remote_object_list ( obj -> oid . hash [ 0 ] ) ;\n if ( obj -> flags & ( REMOTE | PUSHING ) ) return 0 ;\n target = find_sha1_pack ( obj -> oid . hash , repo -> packs ) ;\n if ( target ) {\n obj -> flags |= REMOTE ;\n return 0 ;\n }\n obj -> flags |= PUSHING ;\n request = xmalloc ( sizeof ( * request ) ) ;\n request -> obj = obj ;\n request -> url = NULL ;\n request -> lock = lock ;\n request -> headers = NULL ;\n request -> state = NEED_PUSH ;\n request -> next = request_queue_head ;\n request_queue_head = request ;\n # ifdef USE_CURL_MULTI fill_active_slots ( ) ;\n step_active_slots ( ) ;\n # endif return 1 ;\n }"}
{"idx": 7001, "target": 1, "func": "static void sbr_hf_apply_noise_1 ( float ( * Y ) [ 2 ] , const float * s_m , const float * q_filt , int noise , int kx , int m_max ) {\n float phi_sign = 1 - 2 * ( kx & 1 ) ;\n sbr_hf_apply_noise ( Y , s_m , q_filt , noise , 0.0 , phi_sign , m_max ) ;\n }"}
{"idx": 7002, "target": 0, "func": "void init_re_comp ( my_regex_t * re , const char * str ) {\n int err = my_regcomp ( re , str , ( REG_EXTENDED | REG_ICASE | REG_NOSUB ) , & my_charset_latin1 ) ;\n if ( err ) {\n char erbuf [ 100 ] ;\n int len = my_regerror ( err , re , erbuf , sizeof ( erbuf ) ) ;\n die ( \"error %s, %d/%d `%s'\\n\" , re_eprint ( err ) , ( int ) len , ( int ) sizeof ( erbuf ) , erbuf ) ;\n }\n }"}
{"idx": 7003, "target": 0, "func": "static ulong start_timer ( void ) {\n # if defined ( __WIN__ ) return clock ( ) ;\n # else struct tms tms_tmp ;\n return times ( & tms_tmp ) ;\n # endif }"}
{"idx": 7004, "target": 1, "func": "static inline void tqi_idct_put ( TqiContext * t , int16_t ( * block ) [ 64 ] ) {\n MpegEncContext * s = & t -> s ;\n int linesize = t -> frame . linesize [ 0 ] ;\n uint8_t * dest_y = t -> frame . data [ 0 ] + ( s -> mb_y * 16 * linesize ) + s -> mb_x * 16 ;\n uint8_t * dest_cb = t -> frame . data [ 1 ] + ( s -> mb_y * 8 * t -> frame . linesize [ 1 ] ) + s -> mb_x * 8 ;\n uint8_t * dest_cr = t -> frame . data [ 2 ] + ( s -> mb_y * 8 * t -> frame . linesize [ 2 ] ) + s -> mb_x * 8 ;\n ff_ea_idct_put_c ( dest_y , linesize , block [ 0 ] ) ;\n ff_ea_idct_put_c ( dest_y + 8 , linesize , block [ 1 ] ) ;\n ff_ea_idct_put_c ( dest_y + 8 * linesize , linesize , block [ 2 ] ) ;\n ff_ea_idct_put_c ( dest_y + 8 * linesize + 8 , linesize , block [ 3 ] ) ;\n if ( ! ( s -> avctx -> flags & CODEC_FLAG_GRAY ) ) {\n ff_ea_idct_put_c ( dest_cb , t -> frame . linesize [ 1 ] , block [ 4 ] ) ;\n ff_ea_idct_put_c ( dest_cr , t -> frame . linesize [ 2 ] , block [ 5 ] ) ;\n }\n }"}
{"idx": 7005, "target": 0, "func": "static void spl_filesystem_dir_it_move_forward ( zend_object_iterator * iter TSRMLS_DC ) {\n spl_filesystem_object * object = spl_filesystem_iterator_to_object ( ( spl_filesystem_iterator * ) iter ) ;\n object -> u . dir . index ++ ;\n spl_filesystem_dir_read ( object TSRMLS_CC ) ;\n if ( object -> file_name ) {\n efree ( object -> file_name ) ;\n object -> file_name = NULL ;\n }\n }"}
{"idx": 7006, "target": 0, "func": "int ctlclrtrap ( sockaddr_u * raddr , struct interface * linter , int traptype ) {\n register struct ctl_trap * tp ;\n if ( ( tp = ctlfindtrap ( raddr , linter ) ) == NULL ) return ( 0 ) ;\n if ( tp -> tr_flags & TRAP_CONFIGURED && traptype != TRAP_TYPE_CONFIG ) return ( 0 ) ;\n tp -> tr_flags = 0 ;\n num_ctl_traps -- ;\n return ( 1 ) ;\n }"}
{"idx": 7007, "target": 0, "func": "static void show_packet ( WriterContext * w , InputFile * ifile , AVPacket * pkt , int packet_idx ) {\n char val_str [ 128 ] ;\n AVStream * st = ifile -> streams [ pkt -> stream_index ] . st ;\n AVBPrint pbuf ;\n const char * s ;\n av_bprint_init ( & pbuf , 1 , AV_BPRINT_SIZE_UNLIMITED ) ;\n writer_print_section_header ( w , SECTION_ID_PACKET ) ;\n s = av_get_media_type_string ( st -> codecpar -> codec_type ) ;\n if ( s ) print_str ( \"codec_type\" , s ) ;\n else print_str_opt ( \"codec_type\" , \"unknown\" ) ;\n print_int ( \"stream_index\" , pkt -> stream_index ) ;\n print_ts ( \"pts\" , pkt -> pts ) ;\n print_time ( \"pts_time\" , pkt -> pts , & st -> time_base ) ;\n print_ts ( \"dts\" , pkt -> dts ) ;\n print_time ( \"dts_time\" , pkt -> dts , & st -> time_base ) ;\n print_duration_ts ( \"duration\" , pkt -> duration ) ;\n print_duration_time ( \"duration_time\" , pkt -> duration , & st -> time_base ) ;\n print_duration_ts ( \"convergence_duration\" , pkt -> convergence_duration ) ;\n print_duration_time ( \"convergence_duration_time\" , pkt -> convergence_duration , & st -> time_base ) ;\n print_val ( \"size\" , pkt -> size , unit_byte_str ) ;\n if ( pkt -> pos != - 1 ) print_fmt ( \"pos\" , \"%\" PRId64 , pkt -> pos ) ;\n else print_str_opt ( \"pos\" , \"N/A\" ) ;\n print_fmt ( \"flags\" , \"%c%c\" , pkt -> flags & AV_PKT_FLAG_KEY ? 'K' : '_' , pkt -> flags & AV_PKT_FLAG_DISCARD ? 'D' : '_' ) ;\n if ( pkt -> side_data_elems ) {\n int size ;\n const uint8_t * side_metadata ;\n side_metadata = av_packet_get_side_data ( pkt , AV_PKT_DATA_STRINGS_METADATA , & size ) ;\n if ( side_metadata && size && do_show_packet_tags ) {\n AVDictionary * dict = NULL ;\n if ( av_packet_unpack_dictionary ( side_metadata , size , & dict ) >= 0 ) show_tags ( w , dict , SECTION_ID_PACKET_TAGS ) ;\n av_dict_free ( & dict ) ;\n }\n print_pkt_side_data ( w , st -> codecpar , pkt -> side_data , pkt -> side_data_elems , SECTION_ID_PACKET_SIDE_DATA_LIST , SECTION_ID_PACKET_SIDE_DATA ) ;\n }\n if ( do_show_data ) writer_print_data ( w , \"data\" , pkt -> data , pkt -> size ) ;\n writer_print_data_hash ( w , \"data_hash\" , pkt -> data , pkt -> size ) ;\n writer_print_section_footer ( w ) ;\n av_bprint_finalize ( & pbuf , NULL ) ;\n fflush ( stdout ) ;\n }"}
{"idx": 7008, "target": 0, "func": "static void useDynamicWindow ( SCSUData * scsu , int8_t window ) {\n int i , j ;\n i = scsu -> nextWindowUseIndex ;\n do {\n if ( -- i < 0 ) {\n i = 7 ;\n }\n }\n while ( scsu -> windowUse [ i ] != window ) ;\n j = i + 1 ;\n if ( j == 8 ) {\n j = 0 ;\n }\n while ( j != scsu -> nextWindowUseIndex ) {\n scsu -> windowUse [ i ] = scsu -> windowUse [ j ] ;\n i = j ;\n if ( ++ j == 8 ) {\n j = 0 ;\n }\n }\n scsu -> windowUse [ i ] = window ;\n }"}
{"idx": 7009, "target": 0, "func": "struct event * min_heap_top ( min_heap_t * s ) {\n return s -> n ? * s -> p : 0 ;\n }"}
{"idx": 7010, "target": 0, "func": "static inline int snmp6_unregister_dev ( struct inet6_dev * idev ) {\n return 0 ;\n }"}
{"idx": 7011, "target": 0, "func": "static int dissect_h225_T_cryptoGKPwdHash ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_T_cryptoGKPwdHash , T_cryptoGKPwdHash_sequence ) ;\n return offset ;\n }"}
{"idx": 7012, "target": 0, "func": "IF_DEBUG ( static int main_mallocs = 0 ;\n )"}
{"idx": 7013, "target": 0, "func": "static void dissect_zcl_ota_imagepagereq ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n guint8 field_ctrl ;\n field_ctrl = dissect_zcl_ota_field_ctrl_field ( tvb , tree , offset ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_manufacturer_code , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_image_type , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n dissect_zcl_ota_file_version_field ( tvb , tree , offset ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_file_offset , tvb , * offset , 4 , ENC_LITTLE_ENDIAN ) ;\n * offset += 4 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_max_data_size , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_page_size , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_rsp_spacing , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n if ( field_ctrl & ZBEE_ZCL_OTA_FIELD_CTRL_IEEE_ADDR_PRESENT ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_req_node_addr , tvb , * offset , 8 , ENC_LITTLE_ENDIAN ) ;\n * offset += 8 ;\n }\n }"}
{"idx": 7014, "target": 0, "func": "static int selinux_sock_rcv_skb_compat ( struct sock * sk , struct sk_buff * skb , u16 family ) {\n int err = 0 ;\n struct sk_security_struct * sksec = sk -> sk_security ;\n u32 sk_sid = sksec -> sid ;\n struct common_audit_data ad ;\n struct lsm_network_audit net = {\n 0 , }\n ;\n char * addrp ;\n ad . type = LSM_AUDIT_DATA_NET ;\n ad . u . net = & net ;\n ad . u . net -> netif = skb -> skb_iif ;\n ad . u . net -> family = family ;\n err = selinux_parse_skb ( skb , & ad , & addrp , 1 , NULL ) ;\n if ( err ) return err ;\n if ( selinux_secmark_enabled ( ) ) {\n err = avc_has_perm ( sk_sid , skb -> secmark , SECCLASS_PACKET , PACKET__RECV , & ad ) ;\n if ( err ) return err ;\n }\n err = selinux_netlbl_sock_rcv_skb ( sksec , skb , family , & ad ) ;\n if ( err ) return err ;\n err = selinux_xfrm_sock_rcv_skb ( sksec -> sid , skb , & ad ) ;\n return err ;\n }"}
{"idx": 7015, "target": 0, "func": "static int spl_dllist_it_valid ( zend_object_iterator * iter TSRMLS_DC ) {\n spl_dllist_it * iterator = ( spl_dllist_it * ) iter ;\n spl_ptr_llist_element * element = iterator -> traverse_pointer ;\n return ( element != NULL ? SUCCESS : FAILURE ) ;\n }"}
{"idx": 7016, "target": 0, "func": "SPL_METHOD ( SplFileInfo , openFile ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n spl_filesystem_object_create_type ( ht , intern , SPL_FS_FILE , NULL , return_value TSRMLS_CC ) ;\n }"}
{"idx": 7017, "target": 0, "func": "static long convert ( long val , int oldsgnd , int oldprec , int newsgnd , int newprec ) {\n if ( newsgnd != oldsgnd ) {\n }\n if ( newprec != oldprec ) {\n if ( newprec > oldprec ) {\n val <<= newprec - oldprec ;\n }\n else if ( oldprec > newprec ) {\n val >>= oldprec - newprec ;\n }\n }\n return val ;\n }"}
{"idx": 7018, "target": 0, "func": "static void vga_draw_line2 ( VGACommonState * vga , uint8_t * d , uint32_t addr , int width ) {\n uint32_t plane_mask , * palette , data , v ;\n int x ;\n palette = vga -> last_palette ;\n plane_mask = mask16 [ vga -> ar [ VGA_ATC_PLANE_ENABLE ] & 0xf ] ;\n width >>= 3 ;\n for ( x = 0 ;\n x < width ;\n x ++ ) {\n data = vga_read_dword_le ( vga , addr ) ;\n data &= plane_mask ;\n v = expand2 [ GET_PLANE ( data , 0 ) ] ;\n v |= expand2 [ GET_PLANE ( data , 2 ) ] << 2 ;\n ( ( uint32_t * ) d ) [ 0 ] = palette [ v >> 12 ] ;\n ( ( uint32_t * ) d ) [ 1 ] = palette [ ( v >> 8 ) & 0xf ] ;\n ( ( uint32_t * ) d ) [ 2 ] = palette [ ( v >> 4 ) & 0xf ] ;\n ( ( uint32_t * ) d ) [ 3 ] = palette [ ( v >> 0 ) & 0xf ] ;\n v = expand2 [ GET_PLANE ( data , 1 ) ] ;\n v |= expand2 [ GET_PLANE ( data , 3 ) ] << 2 ;\n ( ( uint32_t * ) d ) [ 4 ] = palette [ v >> 12 ] ;\n ( ( uint32_t * ) d ) [ 5 ] = palette [ ( v >> 8 ) & 0xf ] ;\n ( ( uint32_t * ) d ) [ 6 ] = palette [ ( v >> 4 ) & 0xf ] ;\n ( ( uint32_t * ) d ) [ 7 ] = palette [ ( v >> 0 ) & 0xf ] ;\n d += 32 ;\n addr += 4 ;\n }\n }"}
{"idx": 7019, "target": 0, "func": "static gpgme_error_t gpgsm_passwd ( void * engine , gpgme_key_t key , unsigned int flags ) {\n engine_gpgsm_t gpgsm = engine ;\n gpgme_error_t err ;\n char * line ;\n if ( ! key || ! key -> subkeys || ! key -> subkeys -> fpr ) return gpg_error ( GPG_ERR_INV_CERT_OBJ ) ;\n if ( asprintf ( & line , \"PASSWD -- %s\" , key -> subkeys -> fpr ) < 0 ) return gpg_error_from_syserror ( ) ;\n gpgsm_clear_fd ( gpgsm , OUTPUT_FD ) ;\n gpgsm_clear_fd ( gpgsm , INPUT_FD ) ;\n gpgsm_clear_fd ( gpgsm , MESSAGE_FD ) ;\n gpgsm -> inline_data = NULL ;\n err = start ( gpgsm , line ) ;\n free ( line ) ;\n return err ;\n }"}
{"idx": 7020, "target": 0, "func": "field_info * proto_find_field_from_offset ( proto_tree * tree , guint offset , tvbuff_t * tvb ) {\n offset_search_t offsearch ;\n offsearch . offset = offset ;\n offsearch . finfo = NULL ;\n offsearch . tvb = tvb ;\n proto_tree_traverse_pre_order ( tree , check_for_offset , & offsearch ) ;\n return offsearch . finfo ;\n }"}
{"idx": 7021, "target": 0, "func": "static int tipc_nl_compat_media_dump ( struct tipc_nl_compat_msg * msg , struct nlattr * * attrs ) {\n struct nlattr * media [ TIPC_NLA_MEDIA_MAX + 1 ] ;\n int err ;\n if ( ! attrs [ TIPC_NLA_MEDIA ] ) return - EINVAL ;\n err = nla_parse_nested ( media , TIPC_NLA_MEDIA_MAX , attrs [ TIPC_NLA_MEDIA ] , NULL ) ;\n if ( err ) return err ;\n return tipc_add_tlv ( msg -> rep , TIPC_TLV_MEDIA_NAME , nla_data ( media [ TIPC_NLA_MEDIA_NAME ] ) , nla_len ( media [ TIPC_NLA_MEDIA_NAME ] ) ) ;\n }"}
{"idx": 7022, "target": 0, "func": "void evhttp_parse_query ( const char * uri , struct evkeyvalq * headers ) {\n char * line ;\n char * argument ;\n char * p ;\n TAILQ_INIT ( headers ) ;\n if ( strchr ( uri , '?' ) == NULL ) return ;\n if ( ( line = strdup ( uri ) ) == NULL ) event_err ( 1 , \"%s: strdup\" , __func__ ) ;\n argument = line ;\n strsep ( & argument , \"?\" ) ;\n p = argument ;\n while ( p != NULL && * p != '\\0' ) {\n char * key , * value , * decoded_value ;\n argument = strsep ( & p , \"&\" ) ;\n value = argument ;\n key = strsep ( & value , \"=\" ) ;\n if ( value == NULL ) goto error ;\n if ( ( decoded_value = malloc ( strlen ( value ) + 1 ) ) == NULL ) event_err ( 1 , \"%s: malloc\" , __func__ ) ;\n evhttp_decode_uri_internal ( value , strlen ( value ) , decoded_value , 1 ) ;\n event_debug ( ( \"Query Param: %s -> %s\\n\" , key , decoded_value ) ) ;\n evhttp_add_header_internal ( headers , key , decoded_value ) ;\n free ( decoded_value ) ;\n }\n error : free ( line ) ;\n }"}
{"idx": 7023, "target": 0, "func": "int xmlThrDefLoadExtDtdDefaultValue ( int v ) {\n int ret ;\n xmlMutexLock ( xmlThrDefMutex ) ;\n ret = xmlLoadExtDtdDefaultValueThrDef ;\n xmlLoadExtDtdDefaultValueThrDef = v ;\n xmlMutexUnlock ( xmlThrDefMutex ) ;\n return ret ;\n }"}
{"idx": 7024, "target": 0, "func": "jpc_pchg_t * jpc_pchglist_remove ( jpc_pchglist_t * pchglist , int pchgno ) {\n int i ;\n jpc_pchg_t * pchg ;\n assert ( pchgno < pchglist -> numpchgs ) ;\n pchg = pchglist -> pchgs [ pchgno ] ;\n for ( i = pchgno + 1 ;\n i < pchglist -> numpchgs ;\n ++ i ) {\n pchglist -> pchgs [ i - 1 ] = pchglist -> pchgs [ i ] ;\n }\n -- pchglist -> numpchgs ;\n return pchg ;\n }"}
{"idx": 7025, "target": 1, "func": "GType hb_gobject_ ## name ## _get_type ( void ) \\ {\n static gsize type_id = 0 ;\n if ( g_once_init_enter ( & type_id ) ) {\n GType id = g_boxed_type_register_static ( g_intern_static_string ( \"hb_\" # name \"_t\" ) , ( GBoxedCopyFunc ) copy_func , ( GBoxedFreeFunc ) free_func ) ;\n g_once_init_leave ( & type_id , id ) ;\n }\n return type_id ;\n \\ }\n # define HB_DEFINE_OBJECT_TYPE ( name ) HB_DEFINE_BOXED_TYPE ( name , hb_ ## name ## _reference , hb_ ## name ## _destroy ) ;\n HB_DEFINE_OBJECT_TYPE ( buffer ) HB_DEFINE_OBJECT_TYPE ( blob ) HB_DEFINE_OBJECT_TYPE ( face ) HB_DEFINE_OBJECT_TYPE ( font ) HB_DEFINE_OBJECT_TYPE ( font_funcs ) HB_DEFINE_OBJECT_TYPE ( set ) HB_DEFINE_OBJECT_TYPE ( shape_plan )"}
{"idx": 7026, "target": 1, "func": "void vp9_setup_in_frame_q_adj ( VP9_COMP * cpi ) {\n VP9_COMMON * const cm = & cpi -> common ;\n struct segmentation * const seg = & cm -> seg ;\n vp9_clear_system_state ( ) ;\n if ( cm -> frame_type == KEY_FRAME || cpi -> refresh_alt_ref_frame || ( cpi -> refresh_golden_frame && ! cpi -> rc . is_src_frame_alt_ref ) ) {\n int segment ;\n const int aq_strength = get_aq_c_strength ( cm -> base_qindex ) ;\n const int active_segments = aq_c_active_segments [ aq_strength ] ;\n vpx_memset ( cpi -> segmentation_map , 0 , cm -> mi_rows * cm -> mi_cols ) ;\n vpx_memset ( cpi -> complexity_map , 0 , cm -> mi_rows * cm -> mi_cols ) ;\n vp9_clearall_segfeatures ( seg ) ;\n if ( cpi -> rc . sb64_target_rate < 256 ) {\n vp9_disable_segmentation ( seg ) ;\n return ;\n }\n vp9_enable_segmentation ( seg ) ;\n seg -> abs_delta = SEGMENT_DELTADATA ;\n vp9_disable_segfeature ( seg , 0 , SEG_LVL_ALT_Q ) ;\n for ( segment = 1 ;\n segment < active_segments ;\n ++ segment ) {\n int qindex_delta = vp9_compute_qdelta_by_rate ( & cpi -> rc , cm -> frame_type , cm -> base_qindex , aq_c_q_adj_factor [ aq_strength ] [ segment ] ) ;\n if ( ( cm -> base_qindex != 0 ) && ( ( cm -> base_qindex + qindex_delta ) == 0 ) ) {\n qindex_delta = - cm -> base_qindex + 1 ;\n }\n if ( ( cm -> base_qindex + qindex_delta ) > 0 ) {\n vp9_enable_segfeature ( seg , segment , SEG_LVL_ALT_Q ) ;\n vp9_set_segdata ( seg , segment , SEG_LVL_ALT_Q , qindex_delta ) ;\n }\n }\n }\n }"}
{"idx": 7027, "target": 0, "func": "TSParseResult TSUrlParse ( TSMBuffer bufp , TSMLoc obj , const char * * start , const char * end ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_url_handle ( obj ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) start ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) * start ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) end ) == TS_SUCCESS ) ;\n if ( ! isWriteable ( bufp ) ) {\n return TS_PARSE_ERROR ;\n }\n URL u ;\n u . m_heap = ( ( HdrHeapSDKHandle * ) bufp ) -> m_heap ;\n u . m_url_impl = ( URLImpl * ) obj ;\n url_clear ( u . m_url_impl ) ;\n return ( TSParseResult ) u . parse ( start , end ) ;\n }"}
{"idx": 7028, "target": 0, "func": "void RECORD_LAYER_reset_read_sequence ( RECORD_LAYER * rl ) {\n memset ( rl -> read_sequence , 0 , sizeof ( rl -> read_sequence ) ) ;\n }"}
{"idx": 7029, "target": 0, "func": "static guint get_mtu ( packet_info * pinfo , bluetooth_data_t * bluetooth_data ) {\n wmem_tree_key_t key [ 3 ] ;\n guint32 frame_number ;\n mtu_data_t * mtu_data ;\n wmem_tree_t * sub_wmemtree ;\n guint mtu = 23 ;\n frame_number = pinfo -> num ;\n key [ 0 ] . length = 1 ;\n key [ 0 ] . key = & bluetooth_data -> interface_id ;\n key [ 1 ] . length = 1 ;\n key [ 1 ] . key = & bluetooth_data -> adapter_id ;\n key [ 2 ] . length = 0 ;\n key [ 2 ] . key = NULL ;\n sub_wmemtree = ( wmem_tree_t * ) wmem_tree_lookup32_array ( mtus , key ) ;\n mtu_data = ( sub_wmemtree ) ? ( mtu_data_t * ) wmem_tree_lookup32_le ( sub_wmemtree , frame_number ) : NULL ;\n if ( mtu_data ) mtu = mtu_data -> mtu ;\n return mtu ;\n }"}
{"idx": 7030, "target": 0, "func": "static int dissect_rsl_ie_link_id ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_tree * ie_tree ;\n guint8 octet ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_LINK_ID ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 2 , ett_ie_link_id , NULL , \"Link Identifier IE \" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n octet = tvb_get_guint8 ( tvb , offset ) ;\n if ( ( octet & 0x20 ) == 0x20 ) {\n proto_tree_add_item ( ie_tree , hf_rsl_na , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n return offset ;\n }\n proto_tree_add_item ( ie_tree , hf_rsl_ch_type , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_na , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_prio , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_sapi , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n return offset ;\n }"}
{"idx": 7031, "target": 0, "func": "guint16 elem_lv ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , gint pdu_type , int idx , guint32 offset , guint len _U_ , const gchar * name_add ) {\n guint8 parm_len ;\n guint16 consumed ;\n guint32 curr_offset ;\n proto_tree * subtree ;\n proto_item * item ;\n value_string_ext elem_names_ext ;\n gint * elem_ett ;\n const gchar * elem_name ;\n guint16 ( * * elem_funcs ) ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string , int string_len ) ;\n curr_offset = offset ;\n consumed = 0 ;\n SET_ELEM_VARS ( pdu_type , elem_names_ext , elem_ett , elem_funcs , & ei_gsm_a_unknown_pdu_type ) ;\n parm_len = tvb_get_guint8 ( tvb , curr_offset ) ;\n elem_name = try_val_to_str_ext ( idx , & elem_names_ext ) ;\n if ( elem_name == NULL ) {\n proto_tree_add_expert_format ( tree , pinfo , & ei_gsm_a_unknown_element , tvb , curr_offset , parm_len + 1 , \"Unknown - aborting dissection%s\" , ( name_add == NULL ) || ( name_add [ 0 ] == '\\0' ) ? \"\" : name_add ) ;\n return consumed ;\n }\n subtree = proto_tree_add_subtree_format ( tree , tvb , curr_offset , parm_len + 1 , elem_ett [ idx ] , & item , \"%s%s\" , elem_name , ( name_add == NULL ) || ( name_add [ 0 ] == '\\0' ) ? \"\" : name_add ) ;\n proto_tree_add_uint ( subtree , hf_gsm_a_length , tvb , curr_offset , 1 , parm_len ) ;\n if ( parm_len > 0 ) {\n if ( elem_funcs [ idx ] == NULL ) {\n proto_tree_add_item ( subtree , hf_gsm_a_element_value , tvb , curr_offset + 1 , parm_len , ENC_NA ) ;\n consumed = parm_len ;\n }\n else {\n gchar * a_add_string ;\n a_add_string = ( gchar * ) wmem_alloc ( wmem_packet_scope ( ) , 1024 ) ;\n a_add_string [ 0 ] = '\\0' ;\n consumed = ( * elem_funcs [ idx ] ) ( tvb , subtree , pinfo , curr_offset + 1 , parm_len , a_add_string , 1024 ) ;\n if ( a_add_string [ 0 ] != '\\0' ) {\n proto_item_append_text ( item , \"%s\" , a_add_string ) ;\n }\n }\n }\n return ( consumed + 1 ) ;\n }"}
{"idx": 7032, "target": 0, "func": "static int read_motion_values ( AVCodecContext * avctx , GetBitContext * gb , Bundle * b ) {\n int t , sign , v ;\n const uint8_t * dec_end ;\n CHECK_READ_VAL ( gb , b , t ) ;\n dec_end = b -> cur_dec + t ;\n if ( dec_end > b -> data_end ) {\n av_log ( avctx , AV_LOG_ERROR , \"Too many motion values\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( get_bits1 ( gb ) ) {\n v = get_bits ( gb , 4 ) ;\n if ( v ) {\n sign = - get_bits1 ( gb ) ;\n v = ( v ^ sign ) - sign ;\n }\n memset ( b -> cur_dec , v , t ) ;\n b -> cur_dec += t ;\n }\n else {\n while ( b -> cur_dec < dec_end ) {\n v = GET_HUFF ( gb , b -> tree ) ;\n if ( v ) {\n sign = - get_bits1 ( gb ) ;\n v = ( v ^ sign ) - sign ;\n }\n * b -> cur_dec ++ = v ;\n }\n }\n return 0 ;\n }"}
{"idx": 7033, "target": 0, "func": "static void U_CALLCONV T_UConverter_fromUnicode_UTF32_LE ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n const UChar * mySource = args -> source ;\n unsigned char * myTarget ;\n const UChar * sourceLimit = args -> sourceLimit ;\n const unsigned char * targetLimit = ( unsigned char * ) args -> targetLimit ;\n UChar32 ch , ch2 ;\n unsigned int indexToWrite ;\n unsigned char temp [ sizeof ( uint32_t ) ] ;\n if ( mySource >= sourceLimit ) {\n return ;\n }\n if ( args -> converter -> fromUnicodeStatus == UCNV_NEED_TO_WRITE_BOM ) {\n static const char bom [ ] = {\n ( char ) 0xff , ( char ) 0xfe , 0 , 0 }\n ;\n ucnv_fromUWriteBytes ( args -> converter , bom , 4 , & args -> target , args -> targetLimit , & args -> offsets , - 1 , err ) ;\n args -> converter -> fromUnicodeStatus = 0 ;\n }\n myTarget = ( unsigned char * ) args -> target ;\n temp [ 3 ] = 0 ;\n if ( args -> converter -> fromUChar32 ) {\n ch = args -> converter -> fromUChar32 ;\n args -> converter -> fromUChar32 = 0 ;\n goto lowsurogate ;\n }\n while ( mySource < sourceLimit && myTarget < targetLimit ) {\n ch = * ( mySource ++ ) ;\n if ( U16_IS_SURROGATE ( ch ) ) {\n if ( U16_IS_LEAD ( ch ) ) {\n lowsurogate : if ( mySource < sourceLimit ) {\n ch2 = * mySource ;\n if ( U16_IS_TRAIL ( ch2 ) ) {\n ch = ( ( ch - SURROGATE_HIGH_START ) << HALF_SHIFT ) + ch2 + SURROGATE_LOW_BASE ;\n mySource ++ ;\n }\n else {\n args -> converter -> fromUChar32 = ch ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n }\n else {\n args -> converter -> fromUChar32 = ch ;\n if ( args -> flush ) {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n break ;\n }\n }\n else {\n args -> converter -> fromUChar32 = ch ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n }\n temp [ 2 ] = ( uint8_t ) ( ch >> 16 & 0x1F ) ;\n temp [ 1 ] = ( uint8_t ) ( ch >> 8 ) ;\n temp [ 0 ] = ( uint8_t ) ( ch ) ;\n for ( indexToWrite = 0 ;\n indexToWrite <= sizeof ( uint32_t ) - 1 ;\n indexToWrite ++ ) {\n if ( myTarget < targetLimit ) {\n * ( myTarget ++ ) = temp [ indexToWrite ] ;\n }\n else {\n args -> converter -> charErrorBuffer [ args -> converter -> charErrorBufferLength ++ ] = temp [ indexToWrite ] ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n }\n if ( mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS ( * err ) ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n args -> target = ( char * ) myTarget ;\n args -> source = mySource ;\n }"}
{"idx": 7034, "target": 0, "func": "void actrace_calls_init_tap ( void ) {\n GString * error_string ;\n if ( have_actrace_tap_listener == FALSE ) {\n error_string = register_tap_listener ( \"actrace\" , & ( the_tapinfo_struct . actrace_dummy ) , NULL , 0 , voip_calls_dlg_reset , ACTRACEcalls_packet , voip_calls_dlg_draw ) ;\n if ( error_string != NULL ) {\n simple_dialog ( ESD_TYPE_ERROR , ESD_BTN_OK , \"%s\" , error_string -> str ) ;\n g_string_free ( error_string , TRUE ) ;\n exit ( 1 ) ;\n }\n have_actrace_tap_listener = TRUE ;\n }\n }"}
{"idx": 7035, "target": 0, "func": "EXCLUSIVE_REGRESSION_TEST ( SDK_API_HttpHookAdd ) ( RegressionTest * test , int , int * pstatus ) {\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n TSCont cont = TSContCreate ( mytest_handler , TSMutexCreate ( ) ) ;\n SocketTest * socktest = ( SocketTest * ) TSmalloc ( sizeof ( SocketTest ) ) ;\n socktest -> regtest = test ;\n socktest -> pstatus = pstatus ;\n socktest -> hook_mask = 0 ;\n socktest -> reenable_mask = 0 ;\n socktest -> test_client_ip_get = false ;\n socktest -> test_client_incoming_port_get = false ;\n socktest -> test_client_req_get = false ;\n socktest -> test_client_resp_get = false ;\n socktest -> test_server_ip_get = false ;\n socktest -> test_server_req_get = false ;\n socktest -> test_server_resp_get = false ;\n socktest -> test_next_hop_ip_get = false ;\n socktest -> magic = MAGIC_ALIVE ;\n TSContDataSet ( cont , socktest ) ;\n TSHttpHookAdd ( TS_HTTP_TXN_START_HOOK , cont ) ;\n TSHttpHookAdd ( TS_HTTP_READ_REQUEST_HDR_HOOK , cont ) ;\n TSHttpHookAdd ( TS_HTTP_OS_DNS_HOOK , cont ) ;\n TSHttpHookAdd ( TS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK , cont ) ;\n TSHttpHookAdd ( TS_HTTP_SEND_REQUEST_HDR_HOOK , cont ) ;\n TSHttpHookAdd ( TS_HTTP_READ_RESPONSE_HDR_HOOK , cont ) ;\n TSHttpHookAdd ( TS_HTTP_SEND_RESPONSE_HDR_HOOK , cont ) ;\n TSHttpHookAdd ( TS_HTTP_TXN_CLOSE_HOOK , cont ) ;\n socktest -> os = synserver_create ( SYNSERVER_LISTEN_PORT ) ;\n synserver_start ( socktest -> os ) ;\n socktest -> browser = synclient_txn_create ( ) ;\n char * request = generate_request ( HTTP_HOOK_TEST_REQUEST_ID ) ;\n synclient_txn_send_request ( socktest -> browser , request ) ;\n TSfree ( request ) ;\n if ( socktest -> browser -> status == REQUEST_INPROGRESS ) {\n TSContSchedule ( cont , 25 , TS_THREAD_POOL_DEFAULT ) ;\n }\n return ;\n }"}
{"idx": 7036, "target": 0, "func": "static int rtdatetolfp ( char * str , l_fp * lfp ) {\n register char * cp ;\n register int i ;\n struct calendar cal ;\n char buf [ 4 ] ;\n cal . yearday = 0 ;\n cp = str ;\n if ( ! isdigit ( ( int ) * cp ) ) {\n if ( * cp == '-' ) {\n L_CLR ( lfp ) ;\n return 1 ;\n }\n return 0 ;\n }\n cal . monthday = ( u_char ) ( * cp ++ - '0' ) ;\n if ( isdigit ( ( int ) * cp ) ) {\n cal . monthday = ( u_char ) ( ( cal . monthday << 3 ) + ( cal . monthday << 1 ) ) ;\n cal . monthday = ( u_char ) ( cal . monthday + * cp ++ - '0' ) ;\n }\n if ( * cp ++ != '-' ) return 0 ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) buf [ i ] = * cp ++ ;\n buf [ 3 ] = '\\0' ;\n for ( i = 0 ;\n i < 12 ;\n i ++ ) if ( STREQ ( buf , months [ i ] ) ) break ;\n if ( i == 12 ) return 0 ;\n cal . month = ( u_char ) ( i + 1 ) ;\n if ( * cp ++ != '-' ) return 0 ;\n if ( ! isdigit ( ( int ) * cp ) ) return 0 ;\n cal . year = ( u_short ) ( * cp ++ - '0' ) ;\n if ( isdigit ( ( int ) * cp ) ) {\n cal . year = ( u_short ) ( ( cal . year << 3 ) + ( cal . year << 1 ) ) ;\n cal . year = ( u_short ) ( * cp ++ - '0' ) ;\n }\n if ( isdigit ( ( int ) * cp ) ) {\n cal . year = ( u_short ) ( ( cal . year << 3 ) + ( cal . year << 1 ) ) ;\n cal . year = ( u_short ) ( cal . year + * cp ++ - '0' ) ;\n }\n if ( isdigit ( ( int ) * cp ) ) {\n cal . year = ( u_short ) ( ( cal . year << 3 ) + ( cal . year << 1 ) ) ;\n cal . year = ( u_short ) ( cal . year + * cp ++ - '0' ) ;\n }\n if ( cal . year == 0 ) {\n L_CLR ( lfp ) ;\n return 1 ;\n }\n if ( * cp ++ != ' ' || ! isdigit ( ( int ) * cp ) ) return 0 ;\n cal . hour = ( u_char ) ( * cp ++ - '0' ) ;\n if ( isdigit ( ( int ) * cp ) ) {\n cal . hour = ( u_char ) ( ( cal . hour << 3 ) + ( cal . hour << 1 ) ) ;\n cal . hour = ( u_char ) ( cal . hour + * cp ++ - '0' ) ;\n }\n if ( * cp ++ != ':' || ! isdigit ( ( int ) * cp ) ) return 0 ;\n cal . minute = ( u_char ) ( * cp ++ - '0' ) ;\n if ( isdigit ( ( int ) * cp ) ) {\n cal . minute = ( u_char ) ( ( cal . minute << 3 ) + ( cal . minute << 1 ) ) ;\n cal . minute = ( u_char ) ( cal . minute + * cp ++ - '0' ) ;\n }\n if ( * cp ++ != ':' || ! isdigit ( ( int ) * cp ) ) return 0 ;\n cal . second = ( u_char ) ( * cp ++ - '0' ) ;\n if ( isdigit ( ( int ) * cp ) ) {\n cal . second = ( u_char ) ( ( cal . second << 3 ) + ( cal . second << 1 ) ) ;\n cal . second = ( u_char ) ( cal . second + * cp ++ - '0' ) ;\n }\n if ( cal . year < 72 ) cal . year += 2000 ;\n if ( cal . year < 100 ) cal . year += 1900 ;\n lfp -> l_ui = caltontp ( & cal ) ;\n lfp -> l_uf = 0 ;\n return 1 ;\n }"}
{"idx": 7037, "target": 0, "func": "static int dissect_h245_BIT_STRING_SIZE_1_65535 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_bit_string ( tvb , offset , actx , tree , hf_index , 1 , 65535 , FALSE , NULL , NULL ) ;\n return offset ;\n }"}
{"idx": 7038, "target": 0, "func": "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_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_SIPCaps , SIPCaps_sequence ) ;\n return offset ;\n }"}
{"idx": 7039, "target": 0, "func": "int linux_udev_scan_devices ( struct libusb_context * ctx ) {\n struct udev_enumerate * enumerator ;\n struct udev_list_entry * devices , * entry ;\n struct udev_device * udev_dev ;\n const char * sys_name ;\n int r ;\n assert ( udev_ctx != NULL ) ;\n enumerator = device : : udev_enumerate_new ( udev_ctx ) ;\n if ( NULL == enumerator ) {\n usbi_err ( ctx , \"error creating udev enumerator\" ) ;\n return LIBUSB_ERROR_OTHER ;\n }\n device : : udev_enumerate_add_match_subsystem ( enumerator , \"usb\" ) ;\n device : : udev_enumerate_scan_devices ( enumerator ) ;\n devices = device : : udev_enumerate_get_list_entry ( enumerator ) ;\n udev_list_entry_foreach ( entry , devices ) {\n const char * path = device : : udev_list_entry_get_name ( entry ) ;\n uint8_t busnum = 0 , devaddr = 0 ;\n udev_dev = device : : udev_device_new_from_syspath ( udev_ctx , path ) ;\n r = udev_device_info ( ctx , 0 , udev_dev , & busnum , & devaddr , & sys_name ) ;\n if ( r ) {\n device : : udev_device_unref ( udev_dev ) ;\n continue ;\n }\n linux_enumerate_device ( ctx , busnum , devaddr , sys_name ) ;\n device : : udev_device_unref ( udev_dev ) ;\n }\n device : : udev_enumerate_unref ( enumerator ) ;\n return LIBUSB_SUCCESS ;\n }"}
{"idx": 7040, "target": 0, "func": "static void dissect_rsvp_ifid_tlv ( proto_tree * ti , packet_info * pinfo , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int length , int subtree_type ) {\n int tlv_off , padding ;\n guint16 tlv_type ;\n int tlv_len ;\n guint8 isis_len ;\n const char * tlv_name , * ip_str ;\n proto_tree * rsvp_ifid_subtree = NULL , * ti2 = NULL ;\n for ( tlv_off = 0 ;\n tlv_off < length ;\n ) {\n tlv_type = tvb_get_ntohs ( tvb , offset + tlv_off ) ;\n tlv_len = tvb_get_ntohs ( tvb , offset + tlv_off + 2 ) ;\n if ( ( tlv_len == 0 ) || ( tlv_off + tlv_len > length ) ) {\n proto_tree_add_expert_format ( rsvp_object_tree , pinfo , & ei_rsvp_invalid_length , tvb , offset + tlv_off + 2 , 2 , \"Invalid TLV length\" ) ;\n return ;\n }\n switch ( tlv_type ) {\n case 1 : tlv_name = \"\" ;\n goto ifid_ipv4 ;\n case 14 : tlv_name = \"Previous-Hop \" ;\n goto ifid_ipv4 ;\n case 16 : tlv_name = \"Incoming \" ;\n ifid_ipv4 : ip_str = tvb_ip_to_str ( tvb , offset + tlv_off + 4 ) ;\n rsvp_ifid_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset + tlv_off , tlv_len , subtree_type , NULL , \"%sIPv4 TLV - %s\" , tlv_name , ip_str ) ;\n proto_tree_add_uint_format_value ( rsvp_ifid_subtree , hf_rsvp_type , tvb , offset + tlv_off , 2 , tlv_type , \"%d (%sIPv4)\" , tlv_type , tlv_name ) ;\n proto_tree_add_item ( rsvp_ifid_subtree , hf_rsvp_ifid_tlv_length , tvb , offset + tlv_off + 2 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_ifid_subtree , hf_rsvp_ifid_tlv_ipv4_address , tvb , offset + tlv_off + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \"%sIPv4: %s. \" , tlv_name , ip_str ) ;\n break ;\n case 2 : tlv_name = \"\" ;\n goto ifid_ipv6 ;\n case 15 : tlv_name = \"Previous-Hop \" ;\n goto ifid_ipv6 ;\n case 17 : tlv_name = \"Incoming \" ;\n ifid_ipv6 : ip_str = tvb_ip6_to_str ( tvb , offset + tlv_off + 4 ) ;\n rsvp_ifid_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset + tlv_off , tlv_len , subtree_type , NULL , \"%sIPv6 TLV - %s\" , tlv_name , ip_str ) ;\n proto_tree_add_uint_format_value ( rsvp_ifid_subtree , hf_rsvp_type , tvb , offset + tlv_off , 2 , tlv_type , \"%d (%sIPv6)\" , tlv_type , tlv_name ) ;\n proto_tree_add_item ( rsvp_ifid_subtree , hf_rsvp_ifid_tlv_length , tvb , offset + tlv_off + 2 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_ifid_subtree , hf_rsvp_ifid_tlv_ipv6_address , tvb , offset + tlv_off + 4 , 16 , ENC_NA ) ;\n proto_item_append_text ( ti , \"%sIPv6: %s. \" , tlv_name , ip_str ) ;\n break ;\n case 3 : tlv_name = \"\" ;\n goto ifid_ifindex ;\n case 4 : tlv_name = \" Forward\" ;\n goto ifid_ifindex ;\n case 5 : tlv_name = \" Reverse\" ;\n goto ifid_ifindex ;\n case 18 : tlv_name = \" Incoming\" ;\n ifid_ifindex : ip_str = tvb_ip_to_str ( tvb , offset + tlv_off + 4 ) ;\n rsvp_ifid_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset + tlv_off , tlv_len , subtree_type , NULL , \"Interface-Index%s TLV - %s, %d\" , tlv_name , ip_str , tvb_get_ntohl ( tvb , offset + tlv_off + 8 ) ) ;\n proto_tree_add_uint_format_value ( rsvp_ifid_subtree , hf_rsvp_type , tvb , offset + tlv_off , 2 , tlv_type , \"%d (Interface Index%s)\" , tlv_type , tlv_name ) ;\n proto_tree_add_item ( rsvp_ifid_subtree , hf_rsvp_ifid_tlv_length , tvb , offset + tlv_off + 2 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_ifid_subtree , hf_rsvp_ifid_tlv_ipv4_address , tvb , offset + tlv_off + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_ifid_subtree , hf_rsvp_ifid_tlvinterface_id , tvb , offset + tlv_off + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \"Data If-Index%s: %s, %d. \" , tlv_name , ip_str , tvb_get_ntohl ( tvb , offset + tlv_off + 8 ) ) ;\n break ;\n case 6 : tlv_name = \"Downstream\" ;\n goto ifid_label ;\n case 7 : tlv_name = \"Upstream\" ;\n goto ifid_label ;\n case 19 : tlv_name = \"Incoming-Downstream\" ;\n goto ifid_label ;\n case 20 : tlv_name = \"Incoming-Upstream\" ;\n ifid_label : rsvp_ifid_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset + tlv_off , tlv_len , subtree_type , NULL , \"%s-Label TLV - %u\" , tlv_name , tvb_get_ntohl ( tvb , offset + tlv_off + 4 ) ) ;\n proto_tree_add_uint_format_value ( rsvp_ifid_subtree , hf_rsvp_type , tvb , offset + tlv_off , 2 , tlv_type , \"%d (%s-Label)\" , tlv_type , tlv_name ) ;\n proto_tree_add_item ( rsvp_ifid_subtree , hf_rsvp_ifid_tlv_length , tvb , offset + tlv_off + 2 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_ifid_subtree , hf_rsvp_ifid_tlv_label , tvb , offset + tlv_off + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \"%s-Label: %u. \" , tlv_name , tvb_get_ntohl ( tvb , offset + tlv_off + 4 ) ) ;\n break ;\n case 8 : tlv_name = \"\" ;\n goto ifid_nodeid ;\n case 21 : tlv_name = \"Reporting-\" ;\n ifid_nodeid : ip_str = tvb_ip_to_str ( tvb , offset + tlv_off + 4 ) ;\n rsvp_ifid_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset + tlv_off , tlv_len , subtree_type , NULL , \"%sNode-ID TLV - %s\" , tlv_name , ip_str ) ;\n proto_tree_add_uint_format_value ( rsvp_ifid_subtree , hf_rsvp_type , tvb , offset + tlv_off , 2 , tlv_type , \"%d (%sNode-ID)\" , tlv_type , tlv_name ) ;\n proto_tree_add_item ( rsvp_ifid_subtree , hf_rsvp_ifid_tlv_length , tvb , offset + tlv_off + 2 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_ifid_subtree , hf_rsvp_ifid_tlv_node_id , tvb , offset + tlv_off + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \"%sNode-ID: %s. \" , tlv_name , ip_str ) ;\n break ;\n case 9 : tlv_name = \"\" ;\n goto ifid_ospf ;\n case 22 : tlv_name = \"Reporting-\" ;\n ifid_ospf : rsvp_ifid_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset + tlv_off , tlv_len , subtree_type , NULL , \"%sOSPF-Area TLV - %u\" , tlv_name , tvb_get_ntohl ( tvb , offset + tlv_off + 4 ) ) ;\n proto_tree_add_uint_format_value ( rsvp_ifid_subtree , hf_rsvp_type , tvb , offset + tlv_off , 2 , tlv_type , \"%d (%sOSPF-Area)\" , tlv_type , tlv_name ) ;\n proto_tree_add_item ( rsvp_ifid_subtree , hf_rsvp_ifid_tlv_length , tvb , offset + tlv_off + 2 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_ifid_subtree , hf_rsvp_ifid_tlv_area , tvb , offset + tlv_off + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \"%sOSPF-Area: %u. \" , tlv_name , tvb_get_ntohl ( tvb , offset + tlv_off + 4 ) ) ;\n break ;\n case 10 : tlv_name = \"\" ;\n goto ifid_isis ;\n case 23 : tlv_name = \"Reporting-\" ;\n ifid_isis : isis_len = tvb_get_guint8 ( tvb , offset + tlv_off + 4 ) ;\n if ( ( isis_len < 2 ) || ( isis_len > 11 ) ) {\n proto_tree_add_expert_format ( rsvp_object_tree , pinfo , & ei_rsvp_invalid_length , tvb , offset + tlv_off , tlv_len , \"%sISIS-Area TLV - Invalid Length field\" , tlv_name ) ;\n break ;\n }\n ip_str = print_nsap_net ( tvb , offset + tlv_off + 5 , isis_len ) ;\n rsvp_ifid_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset + tlv_off , tlv_len , subtree_type , NULL , \"%sISIS-Area TLV - %s\" , tlv_name , ip_str ) ;\n proto_tree_add_uint_format_value ( rsvp_ifid_subtree , hf_rsvp_type , tvb , offset + tlv_off , 2 , tlv_type , \"%d (%sISIS-Area)\" , tlv_type , tlv_name ) ;\n proto_tree_add_item ( rsvp_ifid_subtree , hf_rsvp_ifid_tlv_length , tvb , offset + tlv_off + 2 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_string ( rsvp_ifid_subtree , hf_rsvp_isis_area_id , tvb , offset + tlv_off + 4 , 4 , ip_str ) ;\n proto_item_append_text ( ti , \"%sISIS-Area: %s. \" , tlv_name , ip_str ) ;\n break ;\n case 11 : tlv_name = \"\" ;\n goto ifid_as ;\n case 24 : tlv_name = \"Reporting-\" ;\n ifid_as : rsvp_ifid_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset + tlv_off , tlv_len , subtree_type , NULL , \"%sAS TLV - %u\" , tlv_name , tvb_get_ntohl ( tvb , offset + tlv_off + 4 ) ) ;\n proto_tree_add_uint_format_value ( rsvp_ifid_subtree , hf_rsvp_type , tvb , offset + tlv_off , 2 , tlv_type , \"%d (%sAS)\" , tlv_type , tlv_name ) ;\n proto_tree_add_item ( rsvp_ifid_subtree , hf_rsvp_ifid_tlv_length , tvb , offset + tlv_off + 2 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_ifid_subtree , hf_rsvp_ifid_tlv_autonomous_system , tvb , offset + tlv_off + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \"%sAS: %u. \" , tlv_name , tvb_get_ntohl ( tvb , offset + tlv_off + 4 ) ) ;\n break ;\n case 26 : tlv_name = \"Node\" ;\n goto ifid_ex ;\n case 27 : tlv_name = \"Link\" ;\n ifid_ex : rsvp_ifid_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset + tlv_off , tlv_len , subtree_type , & ti2 , \"%s-Exclusions TLV - \" , tlv_name ) ;\n proto_tree_add_uint_format_value ( rsvp_ifid_subtree , hf_rsvp_type , tvb , offset + tlv_off , 2 , tlv_type , \"%d (%s-Exclusions)\" , tlv_type , tlv_name ) ;\n proto_tree_add_item ( rsvp_ifid_subtree , hf_rsvp_ifid_tlv_length , tvb , offset + tlv_off + 2 , 2 , ENC_BIG_ENDIAN ) ;\n dissect_rsvp_ifid_tlv ( ti2 , pinfo , rsvp_ifid_subtree , tvb , offset + tlv_off + 4 , tlv_len - 4 , TREE ( TT_HOP_SUBOBJ ) ) ;\n break ;\n case 516 : rsvp_ifid_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset + tlv_off , tlv_len , subtree_type , NULL , \"ERROR_STRING TLV - %s\" , tvb_format_text ( tvb , offset + tlv_off + 4 , tlv_len - 4 ) ) ;\n proto_tree_add_uint_format_value ( rsvp_ifid_subtree , hf_rsvp_type , tvb , offset + tlv_off , 2 , tlv_type , \"516 (ERROR_STRING)\" ) ;\n proto_tree_add_item ( rsvp_ifid_subtree , hf_rsvp_ifid_tlv_length , tvb , offset + tlv_off + 2 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_ifid_subtree , hf_rsvp_ifid_tlv_error_string , tvb , offset + tlv_off + 4 , tlv_len - 4 , ENC_NA | ENC_ASCII ) ;\n break ;\n default : rsvp_ifid_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset + tlv_off , tlv_len , subtree_type , NULL , \"Unknown TLV (%u)\" , tlv_type ) ;\n proto_tree_add_uint_format_value ( rsvp_ifid_subtree , hf_rsvp_type , tvb , offset + tlv_off , 2 , tlv_type , \"%u (Unknown)\" , tlv_type ) ;\n proto_tree_add_item ( rsvp_ifid_subtree , hf_rsvp_ifid_tlv_length , tvb , offset + tlv_off + 2 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_ifid_subtree , hf_rsvp_ifid_tlv_data , tvb , offset + tlv_off + 4 , tlv_len - 4 , ENC_NA ) ;\n break ;\n }\n padding = ( 4 - ( tlv_len % 4 ) ) % 4 ;\n if ( padding != 0 ) proto_tree_add_item ( rsvp_ifid_subtree , hf_rsvp_ifid_tlv_padding , tvb , offset + tlv_off + tlv_len , padding , ENC_NA ) ;\n tlv_off += tlv_len + padding ;\n }\n }"}
{"idx": 7041, "target": 0, "func": "static int main_file_seek ( main_file * xfile , xoff_t pos ) {\n int ret = 0 ;\n # if XD3_STDIO if ( fseek ( xfile -> file , pos , SEEK_SET ) != 0 ) {\n ret = get_errno ( ) ;\n }\n # elif XD3_POSIX if ( ( xoff_t ) lseek ( xfile -> file , pos , SEEK_SET ) != pos ) {\n ret = get_errno ( ) ;\n }\n # elif XD3_WIN32 # if ( _WIN32_WINNT >= 0x0500 ) LARGE_INTEGER move , out ;\n move . QuadPart = pos ;\n if ( SetFilePointerEx ( xfile -> file , move , & out , FILE_BEGIN ) == 0 ) {\n ret = get_errno ( ) ;\n }\n # else if ( SetFilePointer ( xfile -> file , ( LONG ) pos , NULL , FILE_BEGIN ) == INVALID_SET_FILE_POINTER ) {\n ret = get_errno ( ) ;\n }\n # endif # endif return ret ;\n }"}
{"idx": 7042, "target": 0, "func": "static int ipvideo_decode_block_opcode_0xD ( IpvideoContext * s , AVFrame * frame ) {\n int y ;\n unsigned char P [ 2 ] ;\n for ( y = 0 ;\n y < 8 ;\n y ++ ) {\n if ( ! ( y & 3 ) ) {\n P [ 0 ] = bytestream2_get_byte ( & s -> stream_ptr ) ;\n P [ 1 ] = bytestream2_get_byte ( & s -> stream_ptr ) ;\n }\n memset ( s -> pixel_ptr , P [ 0 ] , 4 ) ;\n memset ( s -> pixel_ptr + 4 , P [ 1 ] , 4 ) ;\n s -> pixel_ptr += s -> stride ;\n }\n return 0 ;\n }"}
{"idx": 7043, "target": 0, "func": "void curl_formfree ( struct curl_httppost * form ) {\n struct curl_httppost * next ;\n if ( ! form ) return ;\n do {\n next = form -> next ;\n if ( form -> more ) curl_formfree ( form -> more ) ;\n if ( ! ( form -> flags & HTTPPOST_PTRNAME ) && form -> name ) free ( form -> name ) ;\n if ( ! ( form -> flags & ( HTTPPOST_PTRCONTENTS | HTTPPOST_BUFFER | HTTPPOST_CALLBACK ) ) && form -> contents ) free ( form -> contents ) ;\n if ( form -> contenttype ) free ( form -> contenttype ) ;\n if ( form -> showfilename ) free ( form -> showfilename ) ;\n free ( form ) ;\n }\n while ( ( form = next ) != NULL ) ;\n }"}
{"idx": 7044, "target": 0, "func": "const char * xd3_mainerror ( int err_num ) {\n # ifndef _WIN32 const char * x = xd3_strerror ( err_num ) ;\n if ( x != NULL ) {\n return x ;\n }\n return strerror ( err_num ) ;\n # else static char err_buf [ 256 ] ;\n const char * x = xd3_strerror ( err_num ) ;\n if ( x != NULL ) {\n return x ;\n }\n memset ( err_buf , 0 , 256 ) ;\n FormatMessage ( FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS , NULL , err_num , MAKELANGID ( LANG_NEUTRAL , SUBLANG_DEFAULT ) , err_buf , 256 , NULL ) ;\n if ( err_buf [ 0 ] != 0 && err_buf [ strlen ( err_buf ) - 1 ] == '\\n' ) {\n err_buf [ strlen ( err_buf ) - 1 ] = 0 ;\n }\n return err_buf ;\n # endif }"}
{"idx": 7045, "target": 0, "func": "int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL ) DECLARE_PEM_rw ( PKCS7 , PKCS7 ) DECLARE_PEM_rw ( NETSCAPE_CERT_SEQUENCE , NETSCAPE_CERT_SEQUENCE ) DECLARE_PEM_rw ( PKCS8 , X509_SIG ) DECLARE_PEM_rw ( PKCS8_PRIV_KEY_INFO , PKCS8_PRIV_KEY_INFO ) # ifndef OPENSSL_NO_RSA DECLARE_PEM_rw_cb ( RSAPrivateKey , RSA ) DECLARE_PEM_rw_const ( RSAPublicKey , RSA ) DECLARE_PEM_rw ( RSA_PUBKEY , RSA )"}
{"idx": 7046, "target": 0, "func": "static void dissect_dns_sctp ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree ) {\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"DNS\" ) ;\n dissect_dns_common ( tvb , pinfo , tree , FALSE , FALSE , FALSE ) ;\n }"}
{"idx": 7047, "target": 0, "func": "static const char * cmd_upload_keep_files ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n if ( dcfg == NULL ) return NULL ;\n if ( strcasecmp ( p1 , \"on\" ) == 0 ) {\n dcfg -> upload_keep_files = KEEP_FILES_ON ;\n }\n else if ( strcasecmp ( p1 , \"off\" ) == 0 ) {\n dcfg -> upload_keep_files = KEEP_FILES_OFF ;\n }\n else if ( strcasecmp ( p1 , \"relevantonly\" ) == 0 ) {\n dcfg -> upload_keep_files = KEEP_FILES_RELEVANT_ONLY ;\n }\n else {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid setting for SecUploadKeepFiles: %s\" , p1 ) ;\n }\n return NULL ;\n }"}
{"idx": 7048, "target": 0, "func": "void TSMimeFieldValueSet ( TSMBuffer bufp , TSMLoc field_obj , int idx , const char * value , int length ) {\n MIMEFieldSDKHandle * handle = ( MIMEFieldSDKHandle * ) field_obj ;\n HdrHeap * heap = ( ( HdrHeapSDKHandle * ) bufp ) -> m_heap ;\n if ( length == - 1 ) {\n length = strlen ( value ) ;\n }\n if ( idx >= 0 ) {\n mime_field_value_set_comma_val ( heap , handle -> mh , handle -> field_ptr , idx , value , length ) ;\n }\n else {\n mime_field_value_set ( heap , handle -> mh , handle -> field_ptr , value , length , true ) ;\n }\n }"}
{"idx": 7049, "target": 0, "func": "static void dissect_coap_opt_proxy_uri ( tvbuff_t * tvb , proto_item * head_item , proto_tree * subtree , gint offset , gint opt_length , int hf ) {\n const guint8 * str = NULL ;\n if ( opt_length == 0 ) {\n str = nullstr ;\n }\n else {\n str = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset , opt_length , ENC_ASCII ) ;\n }\n proto_tree_add_string ( subtree , hf , tvb , offset , opt_length , str ) ;\n proto_item_append_text ( head_item , \": %s\" , str ) ;\n }"}
{"idx": 7050, "target": 0, "func": "static int probe_file ( WriterContext * wctx , const char * filename ) {\n InputFile ifile = {\n 0 }\n ;\n int ret , i ;\n int section_id ;\n do_read_frames = do_show_frames || do_count_frames ;\n do_read_packets = do_show_packets || do_count_packets ;\n ret = open_input_file ( & ifile , filename ) ;\n if ( ret < 0 ) goto end ;\n # define CHECK_END if ( ret < 0 ) goto end nb_streams = ifile . fmt_ctx -> nb_streams ;\n REALLOCZ_ARRAY_STREAM ( nb_streams_frames , 0 , ifile . fmt_ctx -> nb_streams ) ;\n REALLOCZ_ARRAY_STREAM ( nb_streams_packets , 0 , ifile . fmt_ctx -> nb_streams ) ;\n REALLOCZ_ARRAY_STREAM ( selected_streams , 0 , ifile . fmt_ctx -> nb_streams ) ;\n for ( i = 0 ;\n i < ifile . fmt_ctx -> nb_streams ;\n i ++ ) {\n if ( stream_specifier ) {\n ret = avformat_match_stream_specifier ( ifile . fmt_ctx , ifile . fmt_ctx -> streams [ i ] , stream_specifier ) ;\n CHECK_END ;\n else selected_streams [ i ] = ret ;\n ret = 0 ;\n }\n else {\n selected_streams [ i ] = 1 ;\n }\n if ( ! selected_streams [ i ] ) ifile . fmt_ctx -> streams [ i ] -> discard = AVDISCARD_ALL ;\n }\n if ( do_read_frames || do_read_packets ) {\n if ( do_show_frames && do_show_packets && wctx -> writer -> flags & WRITER_FLAG_PUT_PACKETS_AND_FRAMES_IN_SAME_CHAPTER ) section_id = SECTION_ID_PACKETS_AND_FRAMES ;\n else if ( do_show_packets && ! do_show_frames ) section_id = SECTION_ID_PACKETS ;\n else section_id = SECTION_ID_FRAMES ;\n if ( do_show_frames || do_show_packets ) writer_print_section_header ( wctx , section_id ) ;\n ret = read_packets ( wctx , & ifile ) ;\n if ( do_show_frames || do_show_packets ) writer_print_section_footer ( wctx ) ;\n CHECK_END ;\n }\n if ( do_show_programs ) {\n ret = show_programs ( wctx , & ifile ) ;\n CHECK_END ;\n }\n if ( do_show_streams ) {\n ret = show_streams ( wctx , & ifile ) ;\n CHECK_END ;\n }\n if ( do_show_chapters ) {\n ret = show_chapters ( wctx , & ifile ) ;\n CHECK_END ;\n }\n if ( do_show_format ) {\n ret = show_format ( wctx , & ifile ) ;\n CHECK_END ;\n }\n end : if ( ifile . fmt_ctx ) close_input_file ( & ifile ) ;\n av_freep ( & nb_streams_frames ) ;\n av_freep ( & nb_streams_packets ) ;\n av_freep ( & selected_streams ) ;\n return ret ;\n }"}
{"idx": 7051, "target": 0, "func": "TSHttpSsn TSHttpTxnSsnGet ( TSHttpTxn txnp ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = reinterpret_cast < HttpSM * > ( txnp ) ;\n return reinterpret_cast < TSHttpSsn > ( sm -> ua_session ? ( TSHttpSsn ) sm -> ua_session -> get_parent ( ) : nullptr ) ;\n }"}
{"idx": 7052, "target": 0, "func": "static int decode_cdlms ( WmallDecodeCtx * s ) {\n int c , i ;\n int cdlms_send_coef = get_bits1 ( & s -> gb ) ;\n for ( c = 0 ;\n c < s -> num_channels ;\n c ++ ) {\n s -> cdlms_ttl [ c ] = get_bits ( & s -> gb , 3 ) + 1 ;\n for ( i = 0 ;\n i < s -> cdlms_ttl [ c ] ;\n i ++ ) {\n s -> cdlms [ c ] [ i ] . order = ( get_bits ( & s -> gb , 7 ) + 1 ) * 8 ;\n if ( s -> cdlms [ c ] [ i ] . order > MAX_ORDER ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Order[%d][%d] %d > max (%d), not supported\\n\" , c , i , s -> cdlms [ c ] [ i ] . order , MAX_ORDER ) ;\n s -> cdlms [ 0 ] [ 0 ] . order = 0 ;\n return AVERROR_INVALIDDATA ;\n }\n }\n for ( i = 0 ;\n i < s -> cdlms_ttl [ c ] ;\n i ++ ) s -> cdlms [ c ] [ i ] . scaling = get_bits ( & s -> gb , 4 ) ;\n if ( cdlms_send_coef ) {\n for ( i = 0 ;\n i < s -> cdlms_ttl [ c ] ;\n i ++ ) {\n int cbits , shift_l , shift_r , j ;\n cbits = av_log2 ( s -> cdlms [ c ] [ i ] . order ) ;\n if ( ( 1 << cbits ) < s -> cdlms [ c ] [ i ] . order ) cbits ++ ;\n s -> cdlms [ c ] [ i ] . coefsend = get_bits ( & s -> gb , cbits ) + 1 ;\n cbits = av_log2 ( s -> cdlms [ c ] [ i ] . scaling + 1 ) ;\n if ( ( 1 << cbits ) < s -> cdlms [ c ] [ i ] . scaling + 1 ) cbits ++ ;\n s -> cdlms [ c ] [ i ] . bitsend = get_bits ( & s -> gb , cbits ) + 2 ;\n shift_l = 32 - s -> cdlms [ c ] [ i ] . bitsend ;\n shift_r = 32 - s -> cdlms [ c ] [ i ] . scaling - 2 ;\n for ( j = 0 ;\n j < s -> cdlms [ c ] [ i ] . coefsend ;\n j ++ ) s -> cdlms [ c ] [ i ] . coefs [ j ] = ( get_bits ( & s -> gb , s -> cdlms [ c ] [ i ] . bitsend ) << shift_l ) >> shift_r ;\n }\n }\n }\n return 0 ;\n }"}
{"idx": 7053, "target": 0, "func": "void bn_sqr_comba4 ( BN_ULONG * r , const BN_ULONG * a ) {\n BN_ULONG c1 , c2 , c3 ;\n c1 = 0 ;\n c2 = 0 ;\n c3 = 0 ;\n sqr_add_c ( a , 0 , c1 , c2 , c3 ) ;\n r [ 0 ] = c1 ;\n c1 = 0 ;\n sqr_add_c2 ( a , 1 , 0 , c2 , c3 , c1 ) ;\n r [ 1 ] = c2 ;\n c2 = 0 ;\n sqr_add_c ( a , 1 , c3 , c1 , c2 ) ;\n sqr_add_c2 ( a , 2 , 0 , c3 , c1 , c2 ) ;\n r [ 2 ] = c3 ;\n c3 = 0 ;\n sqr_add_c2 ( a , 3 , 0 , c1 , c2 , c3 ) ;\n sqr_add_c2 ( a , 2 , 1 , c1 , c2 , c3 ) ;\n r [ 3 ] = c1 ;\n c1 = 0 ;\n sqr_add_c ( a , 2 , c2 , c3 , c1 ) ;\n sqr_add_c2 ( a , 3 , 1 , c2 , c3 , c1 ) ;\n r [ 4 ] = c2 ;\n c2 = 0 ;\n sqr_add_c2 ( a , 3 , 2 , c3 , c1 , c2 ) ;\n r [ 5 ] = c3 ;\n c3 = 0 ;\n sqr_add_c ( a , 3 , c1 , c2 , c3 ) ;\n r [ 6 ] = c1 ;\n r [ 7 ] = c2 ;\n }"}
{"idx": 7054, "target": 0, "func": "static int dissect_nlm_test_res ( tvbuff_t * tvb , int offset , packet_info * pinfo _U_ , proto_tree * tree , int version , rpc_call_info_value * rpc_call ) {\n proto_item * lock_item = NULL ;\n proto_tree * lock_tree = NULL ;\n if ( nlm_match_msgres ) {\n if ( rpc_call -> proc == 11 ) {\n if ( ( ! pinfo -> fd -> flags . visited ) ) {\n nlm_register_unmatched_res ( pinfo , tvb , offset ) ;\n }\n else {\n nlm_print_msgres_reply ( pinfo , tree , tvb ) ;\n }\n if ( nfs_fhandle_reqrep_matching ) {\n nlm_match_fhandle_reply ( pinfo , tree ) ;\n }\n }\n }\n offset = dissect_rpc_data ( tvb , tree , hf_nlm_cookie , offset ) ;\n if ( tree ) {\n lock_item = proto_tree_add_item ( tree , hf_nlm_test_stat , tvb , offset , - 1 , ENC_NA ) ;\n lock_tree = proto_item_add_subtree ( lock_item , ett_nlm_lock ) ;\n }\n offset = dissect_rpc_uint32 ( tvb , lock_tree , hf_nlm_test_stat_stat , offset ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) == 0 ) {\n return offset ;\n }\n if ( tree ) {\n lock_item = proto_tree_add_item ( lock_tree , hf_nlm_holder , tvb , offset , - 1 , ENC_NA ) ;\n if ( lock_item ) lock_tree = proto_item_add_subtree ( lock_item , ett_nlm_lock ) ;\n }\n offset = dissect_rpc_bool ( tvb , lock_tree , hf_nlm_exclusive , offset ) ;\n offset = dissect_rpc_uint32 ( tvb , lock_tree , hf_nlm_lock_svid , offset ) ;\n offset = dissect_rpc_data ( tvb , lock_tree , hf_nlm_lock_owner , offset ) ;\n if ( version == 4 ) {\n offset = dissect_rpc_uint64 ( tvb , lock_tree , hf_nlm_lock_l_offset64 , offset ) ;\n offset = dissect_rpc_uint64 ( tvb , lock_tree , hf_nlm_lock_l_len64 , offset ) ;\n }\n else {\n offset = dissect_rpc_uint32 ( tvb , lock_tree , hf_nlm_lock_l_offset , offset ) ;\n offset = dissect_rpc_uint32 ( tvb , lock_tree , hf_nlm_lock_l_len , offset ) ;\n }\n return offset ;\n }"}
{"idx": 7055, "target": 0, "func": "static void openpic_save ( QEMUFile * f , void * opaque ) {\n OpenPICState * opp = ( OpenPICState * ) opaque ;\n unsigned int i ;\n qemu_put_be32s ( f , & opp -> gcr ) ;\n qemu_put_be32s ( f , & opp -> vir ) ;\n qemu_put_be32s ( f , & opp -> pir ) ;\n qemu_put_be32s ( f , & opp -> spve ) ;\n qemu_put_be32s ( f , & opp -> tfrr ) ;\n qemu_put_be32s ( f , & opp -> nb_cpus ) ;\n for ( i = 0 ;\n i < opp -> nb_cpus ;\n i ++ ) {\n qemu_put_sbe32s ( f , & opp -> dst [ i ] . ctpr ) ;\n openpic_save_IRQ_queue ( f , & opp -> dst [ i ] . raised ) ;\n openpic_save_IRQ_queue ( f , & opp -> dst [ i ] . servicing ) ;\n qemu_put_buffer ( f , ( uint8_t * ) & opp -> dst [ i ] . outputs_active , sizeof ( opp -> dst [ i ] . outputs_active ) ) ;\n }\n for ( i = 0 ;\n i < OPENPIC_MAX_TMR ;\n i ++ ) {\n qemu_put_be32s ( f , & opp -> timers [ i ] . tccr ) ;\n qemu_put_be32s ( f , & opp -> timers [ i ] . tbcr ) ;\n }\n for ( i = 0 ;\n i < opp -> max_irq ;\n i ++ ) {\n qemu_put_be32s ( f , & opp -> src [ i ] . ivpr ) ;\n qemu_put_be32s ( f , & opp -> src [ i ] . idr ) ;\n qemu_get_be32s ( f , & opp -> src [ i ] . destmask ) ;\n qemu_put_sbe32s ( f , & opp -> src [ i ] . last_cpu ) ;\n qemu_put_sbe32s ( f , & opp -> src [ i ] . pending ) ;\n }\n }"}
{"idx": 7056, "target": 0, "func": "int phar_tar_setmetadata ( zval * metadata , phar_entry_info * entry , char * * error TSRMLS_DC ) {\n php_serialize_data_t metadata_hash ;\n if ( entry -> metadata_str . c ) {\n smart_str_free ( & entry -> metadata_str ) ;\n }\n entry -> metadata_str . c = 0 ;\n entry -> metadata_str . len = 0 ;\n PHP_VAR_SERIALIZE_INIT ( metadata_hash ) ;\n php_var_serialize ( & entry -> metadata_str , & metadata , & metadata_hash TSRMLS_CC ) ;\n PHP_VAR_SERIALIZE_DESTROY ( metadata_hash ) ;\n entry -> uncompressed_filesize = entry -> compressed_filesize = entry -> metadata_str . len ;\n if ( entry -> fp && entry -> fp_type == PHAR_MOD ) {\n php_stream_close ( entry -> fp ) ;\n }\n entry -> fp_type = PHAR_MOD ;\n entry -> is_modified = 1 ;\n entry -> fp = php_stream_fopen_tmpfile ( ) ;\n entry -> offset = entry -> offset_abs = 0 ;\n if ( entry -> fp == NULL ) {\n spprintf ( error , 0 , \"phar error: unable to create temporary file\" ) ;\n return - 1 ;\n }\n if ( entry -> metadata_str . len != php_stream_write ( entry -> fp , entry -> metadata_str . c , entry -> metadata_str . len ) ) {\n spprintf ( error , 0 , \"phar tar error: unable to write metadata to magic metadata file \\\"%s\\\"\" , entry -> filename ) ;\n zend_hash_del ( & ( entry -> phar -> manifest ) , entry -> filename , entry -> filename_len ) ;\n return ZEND_HASH_APPLY_STOP ;\n }\n return ZEND_HASH_APPLY_KEEP ;\n }"}
{"idx": 7057, "target": 0, "func": "static void dump_marks_helper ( FILE * f , uintmax_t base , struct mark_set * m ) {\n uintmax_t k ;\n if ( m -> shift ) {\n for ( k = 0 ;\n k < 1024 ;\n k ++ ) {\n if ( m -> data . sets [ k ] ) dump_marks_helper ( f , base + ( k << m -> shift ) , m -> data . sets [ k ] ) ;\n }\n }\n else {\n for ( k = 0 ;\n k < 1024 ;\n k ++ ) {\n if ( m -> data . marked [ k ] ) fprintf ( f , \":%\" PRIuMAX \" %s\\n\" , base + k , sha1_to_hex ( m -> data . marked [ k ] -> idx . sha1 ) ) ;\n }\n }\n }"}
{"idx": 7058, "target": 1, "func": "static void idcin_decode_vlcs ( IdcinContext * s ) {\n hnode * hnodes ;\n long x , y ;\n int prev ;\n unsigned char v = 0 ;\n int bit_pos , node_num , dat_pos ;\n prev = bit_pos = dat_pos = 0 ;\n for ( y = 0 ;\n y < ( s -> frame . linesize [ 0 ] * s -> avctx -> height ) ;\n y += s -> frame . linesize [ 0 ] ) {\n for ( x = y ;\n x < y + s -> avctx -> width ;\n x ++ ) {\n node_num = s -> num_huff_nodes [ prev ] ;\n hnodes = s -> huff_nodes [ prev ] ;\n while ( node_num >= HUF_TOKENS ) {\n if ( ! bit_pos ) {\n if ( dat_pos >= s -> size ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Huffman decode error.\\n\" ) ;\n return ;\n }\n bit_pos = 8 ;\n v = s -> buf [ dat_pos ++ ] ;\n }\n node_num = hnodes [ node_num ] . children [ v & 0x01 ] ;\n v = v >> 1 ;\n bit_pos -- ;\n }\n s -> frame . data [ 0 ] [ x ] = node_num ;\n prev = node_num ;\n }\n }\n }"}
{"idx": 7059, "target": 0, "func": "void * * __xmlGenericErrorContext ( void ) {\n if ( IS_MAIN_THREAD ) return ( & xmlGenericErrorContext ) ;\n else return ( & xmlGetGlobalState ( ) -> xmlGenericErrorContext ) ;\n }"}
{"idx": 7060, "target": 0, "func": "afs_int32 SPR_INewEntry ( struct rx_call * call , char aname [ ] , afs_int32 aid , afs_int32 oid ) {\n afs_int32 code ;\n afs_int32 cid = ANONYMOUSID ;\n code = iNewEntry ( call , aname , aid , oid , & cid ) ;\n osi_auditU ( call , PTS_INewEntEvent , code , AUD_ID , aid , AUD_STR , aname , AUD_ID , oid , AUD_END ) ;\n ViceLog ( 5 , ( \"PTS_INewEntry: code %d cid %d aid %d aname %s oid %d\\n\" , code , cid , aid , aname , oid ) ) ;\n return code ;\n }"}
{"idx": 7061, "target": 0, "func": "static void denoise_dct_c ( MpegEncContext * s , int16_t * block ) {\n const int intra = s -> mb_intra ;\n int i ;\n s -> dct_count [ intra ] ++ ;\n for ( i = 0 ;\n i < 64 ;\n i ++ ) {\n int level = block [ i ] ;\n if ( level ) {\n if ( level > 0 ) {\n s -> dct_error_sum [ intra ] [ i ] += level ;\n level -= s -> dct_offset [ intra ] [ i ] ;\n if ( level < 0 ) level = 0 ;\n }\n else {\n s -> dct_error_sum [ intra ] [ i ] -= level ;\n level += s -> dct_offset [ intra ] [ i ] ;\n if ( level > 0 ) level = 0 ;\n }\n block [ i ] = level ;\n }\n }\n }"}
{"idx": 7062, "target": 1, "func": "uint8_t * * jbig2_decode_gray_scale_image ( Jbig2Ctx * ctx , Jbig2Segment * segment , const byte * data , const size_t size , bool GSMMR , uint32_t GSW , uint32_t GSH , uint32_t GSBPP , bool GSUSESKIP , Jbig2Image * GSKIP , int GSTEMPLATE , Jbig2ArithCx * GB_stats ) {\n uint8_t * * GSVALS = NULL ;\n size_t consumed_bytes = 0 ;\n int i , j , code , stride ;\n int x , y ;\n Jbig2Image * * GSPLANES ;\n Jbig2GenericRegionParams rparams ;\n Jbig2WordStream * ws = NULL ;\n Jbig2ArithState * as = NULL ;\n GSPLANES = jbig2_new ( ctx , Jbig2Image * , GSBPP ) ;\n if ( GSPLANES == NULL ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"failed to allocate %d bytes for GSPLANES\" , GSBPP ) ;\n return NULL ;\n }\n for ( i = 0 ;\n i < GSBPP ;\n ++ i ) {\n GSPLANES [ i ] = jbig2_image_new ( ctx , GSW , GSH ) ;\n if ( GSPLANES [ i ] == NULL ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"failed to allocate %dx%d image for GSPLANES\" , GSW , GSH ) ;\n for ( j = i - 1 ;\n j >= 0 ;\n -- j ) {\n jbig2_image_release ( ctx , GSPLANES [ j ] ) ;\n }\n jbig2_free ( ctx -> allocator , GSPLANES ) ;\n return NULL ;\n }\n }\n rparams . MMR = GSMMR ;\n rparams . GBTEMPLATE = GSTEMPLATE ;\n rparams . TPGDON = 0 ;\n rparams . USESKIP = GSUSESKIP ;\n rparams . gbat [ 0 ] = ( GSTEMPLATE <= 1 ? 3 : 2 ) ;\n rparams . gbat [ 1 ] = - 1 ;\n rparams . gbat [ 2 ] = - 3 ;\n rparams . gbat [ 3 ] = - 1 ;\n rparams . gbat [ 4 ] = 2 ;\n rparams . gbat [ 5 ] = - 2 ;\n rparams . gbat [ 6 ] = - 2 ;\n rparams . gbat [ 7 ] = - 2 ;\n if ( GSMMR ) {\n code = jbig2_decode_halftone_mmr ( ctx , & rparams , data , size , GSPLANES [ GSBPP - 1 ] , & consumed_bytes ) ;\n }\n else {\n ws = jbig2_word_stream_buf_new ( ctx , data , size ) ;\n if ( ws == NULL ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"failed to allocate ws in jbig2_decode_gray_scale_image\" ) ;\n goto cleanup ;\n }\n as = jbig2_arith_new ( ctx , ws ) ;\n if ( as == NULL ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"failed to allocate as in jbig2_decode_gray_scale_image\" ) ;\n goto cleanup ;\n }\n code = jbig2_decode_generic_region ( ctx , segment , & rparams , as , GSPLANES [ GSBPP - 1 ] , GB_stats ) ;\n }\n if ( code != 0 ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"error decoding GSPLANES for halftone image\" ) ;\n goto cleanup ;\n }\n j = GSBPP - 2 ;\n while ( j >= 0 ) {\n if ( GSMMR ) {\n code = jbig2_decode_halftone_mmr ( ctx , & rparams , data + consumed_bytes , size - consumed_bytes , GSPLANES [ j ] , & consumed_bytes ) ;\n }\n else {\n code = jbig2_decode_generic_region ( ctx , segment , & rparams , as , GSPLANES [ j ] , GB_stats ) ;\n }\n if ( code != 0 ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"error decoding GSPLANES for halftone image\" ) ;\n goto cleanup ;\n }\n stride = GSPLANES [ 0 ] -> stride ;\n for ( i = 0 ;\n i < stride * GSH ;\n ++ i ) GSPLANES [ j ] -> data [ i ] ^= GSPLANES [ j + 1 ] -> data [ i ] ;\n -- j ;\n }\n GSVALS = jbig2_new ( ctx , uint8_t * , GSW ) ;\n if ( GSVALS == NULL ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"failed to allocate GSVALS: %d bytes\" , GSW ) ;\n goto cleanup ;\n }\n for ( i = 0 ;\n i < GSW ;\n ++ i ) {\n GSVALS [ i ] = jbig2_new ( ctx , uint8_t , GSH ) ;\n if ( GSVALS [ i ] == NULL ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"failed to allocate GSVALS: %d bytes\" , GSH * GSW ) ;\n for ( j = i - 1 ;\n j >= 0 ;\n -- j ) {\n jbig2_free ( ctx -> allocator , GSVALS [ j ] ) ;\n }\n jbig2_free ( ctx -> allocator , GSVALS ) ;\n GSVALS = NULL ;\n goto cleanup ;\n }\n }\n for ( x = 0 ;\n x < GSW ;\n ++ x ) {\n for ( y = 0 ;\n y < GSH ;\n ++ y ) {\n GSVALS [ x ] [ y ] = 0 ;\n for ( j = 0 ;\n j < GSBPP ;\n ++ j ) GSVALS [ x ] [ y ] += jbig2_image_get_pixel ( GSPLANES [ j ] , x , y ) << j ;\n }\n }\n cleanup : if ( ! GSMMR ) {\n jbig2_free ( ctx -> allocator , as ) ;\n jbig2_word_stream_buf_free ( ctx , ws ) ;\n }\n for ( i = 0 ;\n i < GSBPP ;\n ++ i ) jbig2_image_release ( ctx , GSPLANES [ i ] ) ;\n jbig2_free ( ctx -> allocator , GSPLANES ) ;\n return GSVALS ;\n }"}
{"idx": 7063, "target": 0, "func": "void rfbNewClientConnection ( rfbScreenInfoPtr rfbScreen , int sock ) {\n rfbNewClient ( rfbScreen , sock ) ;\n }"}
{"idx": 7064, "target": 0, "func": "static int initTables ( struct alltabs * at , SplineFont * sf , enum fontformat format , int32 * bsizes , enum bitmapformat bf ) {\n int i , j , aborted , offset ;\n BDFFont * bdf ;\n struct ttf_table * tab ;\n if ( strmatch ( at -> map -> enc -> enc_name , \"symbol\" ) == 0 && format == ff_ttf ) format = ff_ttfsym ;\n tab = SFFindTable ( sf , CHR ( 'c' , 'v' , 't' , ' ' ) ) ;\n if ( tab != NULL ) {\n at -> oldcvt = tab ;\n at -> oldcvtlen = tab -> len ;\n }\n SFDefaultOS2Info ( & sf -> pfminfo , sf , sf -> fontname ) ;\n at -> gi . xmin = at -> gi . ymin = 15000 ;\n at -> gi . sf = sf ;\n if ( bf != bf_ttf && bf != bf_sfnt_dfont && bf != bf_otb && bf != bf_sfnt_ms ) bsizes = NULL ;\n if ( bsizes != NULL ) {\n for ( i = j = 0 ;\n bsizes [ i ] != 0 ;\n ++ i ) {\n for ( bdf = sf -> bitmaps ;\n bdf != NULL && ( bdf -> pixelsize != ( bsizes [ i ] & 0xffff ) || BDFDepth ( bdf ) != ( bsizes [ i ] >> 16 ) ) ;\n bdf = bdf -> next ) ;\n if ( bdf != NULL ) bsizes [ j ++ ] = bsizes [ i ] ;\n else ff_post_error ( _ ( \"Missing bitmap strike\" ) , _ ( \"The font database does not contain a bitmap of size %d and depth %d\" ) , bsizes [ i ] & 0xffff , bsizes [ i ] >> 16 ) ;\n }\n bsizes [ j ] = 0 ;\n for ( i = 0 ;\n bsizes [ i ] != 0 ;\n ++ i ) ;\n at -> gi . strikecnt = i ;\n if ( i == 0 ) bsizes = NULL ;\n }\n if ( sf -> subfonts != NULL ) {\n SFDummyUpCIDs ( & at -> gi , sf ) ;\n }\n else if ( format != ff_none ) AssignTTFGlyph ( & at -> gi , sf , at -> map , format == ff_otf ) ;\n else {\n if ( bsizes == NULL ) {\n ff_post_error ( _ ( \"No bitmap strikes\" ) , _ ( \"No bitmap strikes\" ) ) ;\n AbortTTF ( at , sf ) ;\n return ( false ) ;\n }\n AssignTTFBitGlyph ( & at -> gi , sf , at -> map , bsizes ) ;\n }\n if ( at -> gi . gcnt > 65535 ) {\n ff_post_error ( _ ( \"Too many glyphs\" ) , _ ( \"The 'sfnt' format is currently limited to 65535 glyphs, and your font has %d of them.\" ) , at -> gi . gcnt ) ;\n AbortTTF ( at , sf ) ;\n return ( false ) ;\n }\n else if ( at -> gi . gcnt == 65535 ) {\n LogError ( _ ( \"Your font has exactly 65535 glyphs. Encoding 65535 is the limit and is often used as a magic \\ value, so it may cause quirks.\\n\" ) ) ;\n }\n ATmaxpInit ( at , sf , format ) ;\n if ( format == ff_otf ) aborted = ! dumptype2glyphs ( sf , at ) ;\n else if ( format == ff_otfcid ) aborted = ! dumpcidglyphs ( sf , at ) ;\n else if ( format == ff_none && at -> applebitmaps ) {\n aborted = ! dumpcffhmtx ( at , sf , true ) ;\n }\n else if ( format == ff_none && at -> otbbitmaps ) {\n aborted = ! dumpcffhmtx ( at , sf , true ) ;\n dumpnoglyphs ( & at -> gi ) ;\n }\n else if ( format == ff_none && at -> msbitmaps ) {\n aborted = ! dumpglyphs ( sf , & at -> gi ) ;\n }\n else {\n aborted = ! dumpglyphs ( sf , & at -> gi ) ;\n }\n if ( format != ff_type42 && format != ff_type42cid ) {\n if ( bsizes != NULL && ! aborted ) ttfdumpbitmap ( sf , at , bsizes ) ;\n if ( bsizes != NULL && format == ff_none && at -> msbitmaps ) ttfdumpbitmapscaling ( sf , at , bsizes ) ;\n }\n if ( aborted ) {\n AbortTTF ( at , sf ) ;\n return ( false ) ;\n }\n sethead ( & at -> head , sf , at , format , bsizes ) ;\n sethhead ( & at -> hhead , & at -> vhead , at , sf ) ;\n if ( format == ff_none && at -> otbbitmaps ) dummyloca ( at ) ;\n else if ( format != ff_otf && format != ff_otfcid && bf != bf_sfnt_dfont && ( format != ff_none || ( bsizes != NULL && ! at -> applemode && at -> opentypemode ) ) ) redoloca ( at ) ;\n redohead ( at ) ;\n if ( format != ff_none || ! at -> applemode ) redohhead ( at , false ) ;\n if ( sf -> hasvmetrics ) {\n redohhead ( at , true ) ;\n }\n ttf_fftm_dump ( sf , at ) ;\n if ( format != ff_type42 && format != ff_type42cid && ! sf -> internal_temp ) {\n initATTables ( at , sf , format ) ;\n }\n redomaxp ( at , format ) ;\n if ( format != ff_otf && format != ff_otfcid && format != ff_none ) {\n if ( ( sf -> gasp_cnt != 0 || ! SFHasInstructions ( sf ) ) && format != ff_type42 && format != ff_type42cid ) dumpgasp ( at , sf ) ;\n at -> fpgmf = dumpstoredtable ( sf , CHR ( 'f' , 'p' , 'g' , 'm' ) , & at -> fpgmlen ) ;\n at -> prepf = dumpstoredtable ( sf , CHR ( 'p' , 'r' , 'e' , 'p' ) , & at -> preplen ) ;\n at -> cvtf = dumpstoredtable ( sf , CHR ( 'c' , 'v' , 't' , ' ' ) , & at -> cvtlen ) ;\n }\n for ( tab = sf -> ttf_tab_saved ;\n tab != NULL ;\n tab = tab -> next ) tab -> temp = dumpsavedtable ( tab ) ;\n if ( format != ff_type42 && format != ff_type42cid ) {\n dumppost ( at , sf , format ) ;\n dumpcmap ( at , sf , format ) ;\n pfed_dump ( at , sf ) ;\n tex_dump ( at , sf ) ;\n }\n if ( sf -> subfonts != NULL ) {\n free ( sf -> glyphs ) ;\n sf -> glyphs = NULL ;\n sf -> glyphcnt = sf -> glyphmax = 0 ;\n }\n free ( at -> gi . bygid ) ;\n at -> gi . gcnt = 0 ;\n buildtablestructures ( at , sf , format ) ;\n for ( i = 0 ;\n i < at -> tabdir . numtab ;\n ++ i ) {\n struct taboff * tab = & at -> tabdir . tabs [ i ] ;\n at -> tabdir . ordered [ i ] = tab ;\n at -> tabdir . alpha [ i ] = tab ;\n if ( format == ff_otf || format == ff_otfcid ) {\n tab -> orderingval = tab -> tag == CHR ( 'h' , 'e' , 'a' , 'd' ) ? 1 : tab -> tag == CHR ( 'h' , 'h' , 'e' , 'a' ) ? 2 : tab -> tag == CHR ( 'm' , 'a' , 'x' , 'p' ) ? 3 : tab -> tag == CHR ( 'O' , 'S' , '/' , '2' ) ? 4 : tab -> tag == CHR ( 'n' , 'a' , 'm' , 'e' ) ? 5 : tab -> tag == CHR ( 'c' , 'm' , 'a' , 'p' ) ? 6 : tab -> tag == CHR ( 'p' , 'o' , 's' , 't' ) ? 7 : tab -> tag == CHR ( 'C' , 'F' , 'F' , ' ' ) ? 8 : tab -> tag == CHR ( 'G' , 'D' , 'E' , 'F' ) ? 17 : tab -> tag == CHR ( 'G' , 'S' , 'U' , 'B' ) ? 18 : tab -> tag == CHR ( 'G' , 'P' , 'O' , 'S' ) ? 19 : 20 ;\n }\n else {\n tab -> orderingval = tab -> tag == CHR ( 'h' , 'e' , 'a' , 'd' ) ? 1 : tab -> tag == CHR ( 'h' , 'h' , 'e' , 'a' ) ? 2 : tab -> tag == CHR ( 'm' , 'a' , 'x' , 'p' ) ? 3 : tab -> tag == CHR ( 'O' , 'S' , '/' , '2' ) ? 4 : tab -> tag == CHR ( 'h' , 'm' , 't' , 'x' ) ? 5 : tab -> tag == CHR ( 'L' , 'T' , 'S' , 'H' ) ? 6 : tab -> tag == CHR ( 'V' , 'D' , 'M' , 'X' ) ? 7 : tab -> tag == CHR ( 'h' , 'd' , 'm' , 'x' ) ? 8 : tab -> tag == CHR ( 'c' , 'm' , 'a' , 'p' ) ? 9 : tab -> tag == CHR ( 'f' , 'p' , 'g' , 'm' ) ? 10 : tab -> tag == CHR ( 'p' , 'r' , 'e' , 'p' ) ? 11 : tab -> tag == CHR ( 'c' , 'v' , 't' , ' ' ) ? 12 : tab -> tag == CHR ( 'l' , 'o' , 'c' , 'a' ) ? 13 : tab -> tag == CHR ( 'g' , 'l' , 'y' , 'f' ) ? 14 : tab -> tag == CHR ( 'k' , 'e' , 'r' , 'n' ) ? 15 : tab -> tag == CHR ( 'n' , 'a' , 'm' , 'e' ) ? 16 : tab -> tag == CHR ( 'p' , 'o' , 's' , 't' ) ? 17 : tab -> tag == CHR ( 'g' , 'a' , 's' , 'p' ) ? 18 : tab -> tag == CHR ( 'P' , 'C' , 'L' , 'T' ) ? 19 : tab -> tag == CHR ( 'D' , 'S' , 'I' , 'G' ) ? 20 : tab -> tag == CHR ( 'G' , 'D' , 'E' , 'F' ) ? 21 : tab -> tag == CHR ( 'G' , 'S' , 'U' , 'B' ) ? 22 : tab -> tag == CHR ( 'G' , 'P' , 'O' , 'S' ) ? 23 : 24 ;\n }\n }\n qsort ( at -> tabdir . ordered , at -> tabdir . numtab , sizeof ( struct taboff * ) , tcomp ) ;\n qsort ( at -> tabdir . alpha , i , sizeof ( struct taboff * ) , tagcomp ) ;\n offset = sizeof ( int32 ) + 4 * sizeof ( int16 ) + at -> tabdir . numtab * 4 * sizeof ( int32 ) ;\n for ( i = 0 ;\n i < at -> tabdir . numtab ;\n ++ i ) if ( at -> tabdir . ordered [ i ] -> data != NULL ) {\n at -> tabdir . ordered [ i ] -> offset = offset ;\n offset += ( ( at -> tabdir . ordered [ i ] -> length + 3 ) >> 2 ) << 2 ;\n at -> tabdir . ordered [ i ] -> checksum = filechecksum ( at -> tabdir . ordered [ i ] -> data ) ;\n }\n for ( i = 0 ;\n i < at -> tabdir . numtab ;\n ++ i ) if ( at -> tabdir . ordered [ i ] -> data == NULL ) {\n struct taboff * tab = & at -> tabdir . tabs [ at -> tabdir . ordered [ i ] -> dup_of ] ;\n at -> tabdir . ordered [ i ] -> offset = tab -> offset ;\n at -> tabdir . ordered [ i ] -> checksum = tab -> checksum ;\n }\n tab = SFFindTable ( sf , CHR ( 'c' , 'v' , 't' , ' ' ) ) ;\n if ( tab != NULL ) {\n if ( at -> oldcvt != NULL && at -> oldcvtlen < tab -> len ) tab -> len = at -> oldcvtlen ;\n else if ( at -> oldcvt == NULL ) {\n struct ttf_table * prev = NULL ;\n for ( tab = sf -> ttf_tables ;\n tab != NULL ;\n prev = tab , tab = tab -> next ) if ( tab -> tag == CHR ( 'c' , 'v' , 't' , ' ' ) ) break ;\n if ( tab != NULL ) {\n if ( prev == NULL ) sf -> ttf_tables = tab -> next ;\n else prev -> next = tab -> next ;\n tab -> next = NULL ;\n TtfTablesFree ( tab ) ;\n }\n }\n }\n return ( true ) ;\n }"}
{"idx": 7065, "target": 0, "func": "static int xhci_ep_nuke_xfers ( XHCIState * xhci , unsigned int slotid , unsigned int epid , TRBCCode report ) {\n XHCISlot * slot ;\n XHCIEPContext * epctx ;\n XHCITransfer * xfer ;\n int killed = 0 ;\n USBEndpoint * ep = NULL ;\n assert ( slotid >= 1 && slotid <= xhci -> numslots ) ;\n assert ( epid >= 1 && epid <= 31 ) ;\n DPRINTF ( \"xhci_ep_nuke_xfers(%d, %d)\\n\" , slotid , epid ) ;\n slot = & xhci -> slots [ slotid - 1 ] ;\n if ( ! slot -> eps [ epid - 1 ] ) {\n return 0 ;\n }\n epctx = slot -> eps [ epid - 1 ] ;\n for ( ;\n ;\n ) {\n xfer = QTAILQ_FIRST ( & epctx -> transfers ) ;\n if ( xfer == NULL ) {\n break ;\n }\n killed += xhci_ep_nuke_one_xfer ( xfer , report ) ;\n if ( killed ) {\n report = 0 ;\n }\n xhci_ep_free_xfer ( xfer ) ;\n }\n ep = xhci_epid_to_usbep ( epctx ) ;\n if ( ep ) {\n usb_device_ep_stopped ( ep -> dev , ep ) ;\n }\n return killed ;\n }"}
{"idx": 7066, "target": 0, "func": "void ber_free_buf ( BerElement * ber ) {\n assert ( LBER_VALID ( ber ) ) ;\n if ( ber -> ber_buf ) ber_memfree_x ( ber -> ber_buf , ber -> ber_memctx ) ;\n ber -> ber_buf = NULL ;\n ber -> ber_sos_ptr = NULL ;\n ber -> ber_valid = LBER_UNINITIALIZED ;\n }"}
{"idx": 7067, "target": 0, "func": "Oid getBaseTypeAndTypmod ( Oid typid , int32 * typmod ) {\n for ( ;\n ;\n ) {\n HeapTuple tup ;\n Form_pg_type typTup ;\n tup = SearchSysCache1 ( TYPEOID , ObjectIdGetDatum ( typid ) ) ;\n if ( ! HeapTupleIsValid ( tup ) ) elog ( ERROR , \"cache lookup failed for type %u\" , typid ) ;\n typTup = ( Form_pg_type ) GETSTRUCT ( tup ) ;\n if ( typTup -> typtype != TYPTYPE_DOMAIN ) {\n ReleaseSysCache ( tup ) ;\n break ;\n }\n Assert ( * typmod == - 1 ) ;\n typid = typTup -> typbasetype ;\n * typmod = typTup -> typtypmod ;\n ReleaseSysCache ( tup ) ;\n }\n return typid ;\n }"}
{"idx": 7068, "target": 1, "func": "static int estimate_best_b_count ( MpegEncContext * s ) {\n AVCodec * codec = avcodec_find_encoder ( s -> avctx -> codec_id ) ;\n AVCodecContext * c = avcodec_alloc_context3 ( NULL ) ;\n AVFrame input [ FF_MAX_B_FRAMES + 2 ] ;\n const int scale = s -> avctx -> brd_scale ;\n int i , j , out_size , p_lambda , b_lambda , lambda2 ;\n int64_t best_rd = INT64_MAX ;\n int best_b_count = - 1 ;\n assert ( scale >= 0 && scale <= 3 ) ;\n p_lambda = s -> last_lambda_for [ AV_PICTURE_TYPE_P ] ;\n b_lambda = s -> last_lambda_for [ AV_PICTURE_TYPE_B ] ;\n if ( ! b_lambda ) b_lambda = p_lambda ;\n lambda2 = ( b_lambda * b_lambda + ( 1 << FF_LAMBDA_SHIFT ) / 2 ) >> FF_LAMBDA_SHIFT ;\n c -> width = s -> width >> scale ;\n c -> height = s -> height >> scale ;\n c -> flags = CODEC_FLAG_QSCALE | CODEC_FLAG_PSNR | CODEC_FLAG_INPUT_PRESERVED ;\n c -> flags |= s -> avctx -> flags & CODEC_FLAG_QPEL ;\n c -> mb_decision = s -> avctx -> mb_decision ;\n c -> me_cmp = s -> avctx -> me_cmp ;\n c -> mb_cmp = s -> avctx -> mb_cmp ;\n c -> me_sub_cmp = s -> avctx -> me_sub_cmp ;\n c -> pix_fmt = AV_PIX_FMT_YUV420P ;\n c -> time_base = s -> avctx -> time_base ;\n c -> max_b_frames = s -> max_b_frames ;\n if ( avcodec_open2 ( c , codec , NULL ) < 0 ) return - 1 ;\n for ( i = 0 ;\n i < s -> max_b_frames + 2 ;\n i ++ ) {\n int ysize = c -> width * c -> height ;\n int csize = ( c -> width / 2 ) * ( c -> height / 2 ) ;\n Picture pre_input , * pre_input_ptr = i ? s -> input_picture [ i - 1 ] : s -> next_picture_ptr ;\n avcodec_get_frame_defaults ( & input [ i ] ) ;\n input [ i ] . data [ 0 ] = av_malloc ( ysize + 2 * csize ) ;\n input [ i ] . data [ 1 ] = input [ i ] . data [ 0 ] + ysize ;\n input [ i ] . data [ 2 ] = input [ i ] . data [ 1 ] + csize ;\n input [ i ] . linesize [ 0 ] = c -> width ;\n input [ i ] . linesize [ 1 ] = input [ i ] . linesize [ 2 ] = c -> width / 2 ;\n if ( pre_input_ptr && ( ! i || s -> input_picture [ i - 1 ] ) ) {\n pre_input = * pre_input_ptr ;\n if ( pre_input . f . type != FF_BUFFER_TYPE_SHARED && i ) {\n pre_input . f . data [ 0 ] += INPLACE_OFFSET ;\n pre_input . f . data [ 1 ] += INPLACE_OFFSET ;\n pre_input . f . data [ 2 ] += INPLACE_OFFSET ;\n }\n s -> dsp . shrink [ scale ] ( input [ i ] . data [ 0 ] , input [ i ] . linesize [ 0 ] , pre_input . f . data [ 0 ] , pre_input . f . linesize [ 0 ] , c -> width , c -> height ) ;\n s -> dsp . shrink [ scale ] ( input [ i ] . data [ 1 ] , input [ i ] . linesize [ 1 ] , pre_input . f . data [ 1 ] , pre_input . f . linesize [ 1 ] , c -> width >> 1 , c -> height >> 1 ) ;\n s -> dsp . shrink [ scale ] ( input [ i ] . data [ 2 ] , input [ i ] . linesize [ 2 ] , pre_input . f . data [ 2 ] , pre_input . f . linesize [ 2 ] , c -> width >> 1 , c -> height >> 1 ) ;\n }\n }\n for ( j = 0 ;\n j < s -> max_b_frames + 1 ;\n j ++ ) {\n int64_t rd = 0 ;\n if ( ! s -> input_picture [ j ] ) break ;\n c -> error [ 0 ] = c -> error [ 1 ] = c -> error [ 2 ] = 0 ;\n input [ 0 ] . pict_type = AV_PICTURE_TYPE_I ;\n input [ 0 ] . quality = 1 * FF_QP2LAMBDA ;\n out_size = encode_frame ( c , & input [ 0 ] ) ;\n for ( i = 0 ;\n i < s -> max_b_frames + 1 ;\n i ++ ) {\n int is_p = i % ( j + 1 ) == j || i == s -> max_b_frames ;\n input [ i + 1 ] . pict_type = is_p ? AV_PICTURE_TYPE_P : AV_PICTURE_TYPE_B ;\n input [ i + 1 ] . quality = is_p ? p_lambda : b_lambda ;\n out_size = encode_frame ( c , & input [ i + 1 ] ) ;\n rd += ( out_size * lambda2 ) >> ( FF_LAMBDA_SHIFT - 3 ) ;\n }\n while ( out_size ) {\n out_size = encode_frame ( c , NULL ) ;\n rd += ( out_size * lambda2 ) >> ( FF_LAMBDA_SHIFT - 3 ) ;\n }\n rd += c -> error [ 0 ] + c -> error [ 1 ] + c -> error [ 2 ] ;\n if ( rd < best_rd ) {\n best_rd = rd ;\n best_b_count = j ;\n }\n }\n avcodec_close ( c ) ;\n av_freep ( & c ) ;\n for ( i = 0 ;\n i < s -> max_b_frames + 2 ;\n i ++ ) {\n av_freep ( & input [ i ] . data [ 0 ] ) ;\n }\n return best_b_count ;\n }"}
{"idx": 7069, "target": 0, "func": "void dissect_q931_user_user_ie ( tvbuff_t * tvb , packet_info * pinfo , int offset , int len , proto_tree * tree ) {\n guint8 octet ;\n tvbuff_t * next_tvb = NULL ;\n heur_dtbl_entry_t * hdtbl_entry ;\n if ( len == 0 ) return ;\n octet = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_q931_user_protocol_discriminator , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset += 1 ;\n len -= 1 ;\n if ( len == 0 ) return ;\n switch ( octet ) {\n case Q931_PROTOCOL_DISCRIMINATOR_USER : next_tvb = tvb_new_subset_length ( tvb , offset , len ) ;\n proto_tree_add_uint_format_value ( tree , hf_q931_user_information_len , tvb , offset , len , len , \"%d octets\" , len ) ;\n if ( ! dissector_try_heuristic ( q931_user_heur_subdissector_list , next_tvb , pinfo , tree , & hdtbl_entry , NULL ) ) {\n call_data_dissector ( next_tvb , pinfo , tree ) ;\n }\n break ;\n case Q931_PROTOCOL_DISCRIMINATOR_IA5 : proto_tree_add_item ( tree , hf_q931_user_information_str , tvb , offset , len , ENC_NA | ENC_ASCII ) ;\n break ;\n default : proto_tree_add_item ( tree , hf_q931_user_information_bytes , tvb , offset , len , ENC_NA ) ;\n break ;\n }\n }"}
{"idx": 7070, "target": 0, "func": "static void allocate_gf_group_bits ( VP9_COMP * cpi , int64_t gf_group_bits , double group_error , int gf_arf_bits ) {\n RATE_CONTROL * const rc = & cpi -> rc ;\n const VP9EncoderConfig * const oxcf = & cpi -> oxcf ;\n TWO_PASS * const twopass = & cpi -> twopass ;\n GF_GROUP * const gf_group = & twopass -> gf_group ;\n FIRSTPASS_STATS frame_stats ;\n int i ;\n int frame_index = 1 ;\n int target_frame_size ;\n int key_frame ;\n const int max_bits = frame_max_bits ( & cpi -> rc , & cpi -> oxcf ) ;\n int64_t total_group_bits = gf_group_bits ;\n double modified_err = 0.0 ;\n double err_fraction ;\n int mid_boost_bits = 0 ;\n int mid_frame_idx ;\n unsigned char arf_buffer_indices [ MAX_ACTIVE_ARFS ] ;\n int alt_frame_index = frame_index ;\n int has_temporal_layers = is_two_pass_svc ( cpi ) && cpi -> svc . number_temporal_layers > 1 ;\n if ( has_temporal_layers ) alt_frame_index = cpi -> svc . number_temporal_layers ;\n key_frame = cpi -> common . frame_type == KEY_FRAME || vp9_is_upper_layer_key_frame ( cpi ) ;\n get_arf_buffer_indices ( arf_buffer_indices ) ;\n if ( ! key_frame ) {\n if ( rc -> source_alt_ref_active ) {\n gf_group -> update_type [ 0 ] = OVERLAY_UPDATE ;\n gf_group -> rf_level [ 0 ] = INTER_NORMAL ;\n gf_group -> bit_allocation [ 0 ] = 0 ;\n gf_group -> arf_update_idx [ 0 ] = arf_buffer_indices [ 0 ] ;\n gf_group -> arf_ref_idx [ 0 ] = arf_buffer_indices [ 0 ] ;\n }\n else {\n gf_group -> update_type [ 0 ] = GF_UPDATE ;\n gf_group -> rf_level [ 0 ] = GF_ARF_STD ;\n gf_group -> bit_allocation [ 0 ] = gf_arf_bits ;\n gf_group -> arf_update_idx [ 0 ] = arf_buffer_indices [ 0 ] ;\n gf_group -> arf_ref_idx [ 0 ] = arf_buffer_indices [ 0 ] ;\n }\n if ( EOF == input_stats ( twopass , & frame_stats ) ) return ;\n }\n if ( rc -> source_alt_ref_pending || ! key_frame ) total_group_bits -= gf_arf_bits ;\n if ( rc -> source_alt_ref_pending ) {\n gf_group -> update_type [ alt_frame_index ] = ARF_UPDATE ;\n gf_group -> rf_level [ alt_frame_index ] = GF_ARF_STD ;\n gf_group -> bit_allocation [ alt_frame_index ] = gf_arf_bits ;\n if ( has_temporal_layers ) gf_group -> arf_src_offset [ alt_frame_index ] = ( unsigned char ) ( rc -> baseline_gf_interval - cpi -> svc . number_temporal_layers ) ;\n else gf_group -> arf_src_offset [ alt_frame_index ] = ( unsigned char ) ( rc -> baseline_gf_interval - 1 ) ;\n gf_group -> arf_update_idx [ alt_frame_index ] = arf_buffer_indices [ 0 ] ;\n gf_group -> arf_ref_idx [ alt_frame_index ] = arf_buffer_indices [ cpi -> multi_arf_last_grp_enabled && rc -> source_alt_ref_active ] ;\n if ( ! has_temporal_layers ) ++ frame_index ;\n if ( cpi -> multi_arf_enabled ) {\n gf_group -> update_type [ frame_index ] = ARF_UPDATE ;\n gf_group -> rf_level [ frame_index ] = GF_ARF_LOW ;\n gf_group -> arf_src_offset [ frame_index ] = ( unsigned char ) ( ( rc -> baseline_gf_interval >> 1 ) - 1 ) ;\n gf_group -> arf_update_idx [ frame_index ] = arf_buffer_indices [ 1 ] ;\n gf_group -> arf_ref_idx [ frame_index ] = arf_buffer_indices [ 0 ] ;\n ++ frame_index ;\n }\n }\n mid_frame_idx = frame_index + ( rc -> baseline_gf_interval >> 1 ) - 1 ;\n for ( i = 0 ;\n i < rc -> baseline_gf_interval - 1 ;\n ++ i ) {\n int arf_idx = 0 ;\n if ( EOF == input_stats ( twopass , & frame_stats ) ) break ;\n if ( has_temporal_layers && frame_index == alt_frame_index ) {\n ++ frame_index ;\n }\n modified_err = calculate_modified_err ( twopass , oxcf , & frame_stats ) ;\n if ( group_error > 0 ) err_fraction = modified_err / DOUBLE_DIVIDE_CHECK ( group_error ) ;\n else err_fraction = 0.0 ;\n target_frame_size = ( int ) ( ( double ) total_group_bits * err_fraction ) ;\n if ( rc -> source_alt_ref_pending && cpi -> multi_arf_enabled ) {\n mid_boost_bits += ( target_frame_size >> 4 ) ;\n target_frame_size -= ( target_frame_size >> 4 ) ;\n if ( frame_index <= mid_frame_idx ) arf_idx = 1 ;\n }\n gf_group -> arf_update_idx [ frame_index ] = arf_buffer_indices [ arf_idx ] ;\n gf_group -> arf_ref_idx [ frame_index ] = arf_buffer_indices [ arf_idx ] ;\n target_frame_size = clamp ( target_frame_size , 0 , MIN ( max_bits , ( int ) total_group_bits ) ) ;\n gf_group -> update_type [ frame_index ] = LF_UPDATE ;\n gf_group -> rf_level [ frame_index ] = INTER_NORMAL ;\n gf_group -> bit_allocation [ frame_index ] = target_frame_size ;\n ++ frame_index ;\n }\n gf_group -> arf_update_idx [ frame_index ] = arf_buffer_indices [ 0 ] ;\n gf_group -> arf_ref_idx [ frame_index ] = arf_buffer_indices [ 0 ] ;\n if ( rc -> source_alt_ref_pending ) {\n gf_group -> update_type [ frame_index ] = OVERLAY_UPDATE ;\n gf_group -> rf_level [ frame_index ] = INTER_NORMAL ;\n if ( cpi -> multi_arf_enabled ) {\n gf_group -> bit_allocation [ 2 ] = gf_group -> bit_allocation [ mid_frame_idx ] + mid_boost_bits ;\n gf_group -> update_type [ mid_frame_idx ] = OVERLAY_UPDATE ;\n gf_group -> bit_allocation [ mid_frame_idx ] = 0 ;\n }\n }\n else {\n gf_group -> update_type [ frame_index ] = GF_UPDATE ;\n gf_group -> rf_level [ frame_index ] = GF_ARF_STD ;\n }\n cpi -> multi_arf_last_grp_enabled = cpi -> multi_arf_enabled ;\n }"}
{"idx": 7071, "target": 0, "func": "SPL_METHOD ( SplFileInfo , func_name ) \\ {\n \\ spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n \\ zend_error_handling error_handling ;\n \\ if ( zend_parse_parameters_none ( ) == FAILURE ) {\n \\ return ;\n \\ }\n \\ \\ zend_replace_error_handling ( EH_THROW , spl_ce_RuntimeException , & error_handling TSRMLS_CC ) ;\n \\ spl_filesystem_object_get_file_name ( intern TSRMLS_CC ) ;\n \\ php_stat ( intern -> file_name , intern -> file_name_len , func_num , return_value TSRMLS_CC ) ;\n \\ zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n \\ }\n FileInfoFunction ( getPerms , FS_PERMS ) FileInfoFunction ( getInode , FS_INODE ) FileInfoFunction ( getSize , FS_SIZE ) FileInfoFunction ( getOwner , FS_OWNER ) FileInfoFunction ( getGroup , FS_GROUP ) FileInfoFunction ( getATime , FS_ATIME ) FileInfoFunction ( getMTime , FS_MTIME ) FileInfoFunction ( getCTime , FS_CTIME ) FileInfoFunction ( getType , FS_TYPE ) FileInfoFunction ( isWritable , FS_IS_W ) FileInfoFunction ( isReadable , FS_IS_R ) FileInfoFunction ( isExecutable , FS_IS_X )"}
{"idx": 7072, "target": 0, "func": "static void show_edge ( struct commit * commit ) {\n printf ( \"-%s\\n\" , oid_to_hex ( & commit -> object . oid ) ) ;\n }"}
{"idx": 7073, "target": 0, "func": "static void check_1_6_dummy ( kadm5_principal_ent_t entry , long mask , int n_ks_tuple , krb5_key_salt_tuple * ks_tuple , char * * passptr ) {\n int i ;\n char * password = * passptr ;\n if ( password == NULL || ! ( mask & KADM5_ATTRIBUTES ) || ! ( entry -> attributes & KRB5_KDB_DISALLOW_ALL_TIX ) ) return ;\n for ( i = 0 ;\n ( unsigned char ) password [ i ] == i + 1 ;\n i ++ ) ;\n if ( password [ i ] != '\\0' || i != 255 ) return ;\n * passptr = NULL ;\n }"}
{"idx": 7074, "target": 0, "func": "int jas_image_depalettize ( jas_image_t * image , int cmptno , int numlutents , int_fast32_t * lutents , int dtype , int newcmptno ) {\n jas_image_cmptparm_t cmptparms ;\n int_fast32_t v ;\n int i ;\n int j ;\n jas_image_cmpt_t * cmpt ;\n cmpt = image -> cmpts_ [ cmptno ] ;\n cmptparms . tlx = cmpt -> tlx_ ;\n cmptparms . tly = cmpt -> tly_ ;\n cmptparms . hstep = cmpt -> hstep_ ;\n cmptparms . vstep = cmpt -> vstep_ ;\n cmptparms . width = cmpt -> width_ ;\n cmptparms . height = cmpt -> height_ ;\n cmptparms . prec = JAS_IMAGE_CDT_GETPREC ( dtype ) ;\n cmptparms . sgnd = JAS_IMAGE_CDT_GETSGND ( dtype ) ;\n if ( jas_image_addcmpt ( image , newcmptno , & cmptparms ) ) {\n return - 1 ;\n }\n if ( newcmptno <= cmptno ) {\n ++ cmptno ;\n cmpt = image -> cmpts_ [ cmptno ] ;\n }\n for ( j = 0 ;\n j < cmpt -> height_ ;\n ++ j ) {\n for ( i = 0 ;\n i < cmpt -> width_ ;\n ++ i ) {\n v = jas_image_readcmptsample ( image , cmptno , i , j ) ;\n if ( v < 0 ) {\n v = 0 ;\n }\n else if ( v >= numlutents ) {\n v = numlutents - 1 ;\n }\n jas_image_writecmptsample ( image , newcmptno , i , j , lutents [ v ] ) ;\n }\n }\n return 0 ;\n }"}
{"idx": 7075, "target": 0, "func": "static void selinux_d_instantiate ( struct dentry * dentry , struct inode * inode ) {\n if ( inode ) inode_doinit_with_dentry ( inode , dentry ) ;\n }"}
{"idx": 7076, "target": 0, "func": "static void dissect_q931_number_ie ( tvbuff_t * tvb , int offset , int len , proto_tree * tree , int hfindex , e164_info_t e164_info , q931_packet_info * q931_pi ) {\n guint8 octet ;\n gint number_plan ;\n if ( len == 0 ) return ;\n octet = tvb_get_guint8 ( tvb , offset ) ;\n number_plan = octet & 0x0f ;\n e164_info . nature_of_address = ( octet & 0x70 ) >> 4 ;\n proto_tree_add_uint ( tree , hf_q931_numbering_plan , tvb , offset , 1 , octet ) ;\n proto_tree_add_uint ( tree , hf_q931_number_type , tvb , offset , 1 , octet ) ;\n proto_tree_add_boolean ( tree , hf_q931_extension_ind , tvb , offset , 1 , octet ) ;\n offset += 1 ;\n len -= 1 ;\n if ( ! ( octet & Q931_IE_VL_EXTENSION ) ) {\n if ( len == 0 ) return ;\n octet = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_q931_screening_ind , tvb , offset , 1 , octet ) ;\n proto_tree_add_uint ( tree , hf_q931_presentation_ind , tvb , offset , 1 , octet ) ;\n proto_tree_add_boolean ( tree , hf_q931_extension_ind , tvb , offset , 1 , octet ) ;\n offset += 1 ;\n len -= 1 ;\n }\n if ( ! ( octet & Q931_IE_VL_EXTENSION ) ) {\n if ( len == 0 ) return ;\n proto_tree_add_item ( tree , hf_q931_extension_reason , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset += 1 ;\n len -= 1 ;\n }\n if ( len == 0 ) return ;\n proto_tree_add_item ( tree , hfindex , tvb , offset , len , ENC_ASCII | ENC_NA ) ;\n proto_item_append_text ( proto_tree_get_parent ( tree ) , \": '%s'\" , tvb_format_text ( tvb , offset , len ) ) ;\n if ( number_plan == 1 ) {\n if ( e164_info . e164_number_type != NONE ) {\n e164_info . E164_number_str = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset , len , ENC_ASCII | ENC_NA ) ;\n e164_info . E164_number_length = len ;\n dissect_e164_number ( tvb , tree , offset , len , e164_info ) ;\n }\n }\n if ( e164_info . e164_number_type == CALLING_PARTY_NUMBER && q931_pi ) q931_pi -> calling_number = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset , len , ENC_ASCII | ENC_NA ) ;\n if ( e164_info . e164_number_type == CALLED_PARTY_NUMBER && q931_pi ) q931_pi -> called_number = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset , len , ENC_ASCII | ENC_NA ) ;\n }"}
{"idx": 7077, "target": 1, "func": "TEST_F ( BaseSearchProviderTest , PreserveAnswersWhenDeduplicating ) {\n TemplateURLData data ;\n data . SetURL ( \"http://foo.com/url?bar={\nsearchTerms}\n\" ) ;\n std : : unique_ptr < TemplateURL > template_url ( new TemplateURL ( data ) ) ;\n TestBaseSearchProvider : : MatchMap map ;\n base : : string16 query = base : : ASCIIToUTF16 ( \"weather los angeles\" ) ;\n base : : string16 answer_contents = base : : ASCIIToUTF16 ( \"some answer content\" ) ;\n base : : string16 answer_type = base : : ASCIIToUTF16 ( \"2334\" ) ;\n std : : unique_ptr < SuggestionAnswer > answer ( new SuggestionAnswer ( ) ) ;\n answer -> set_type ( 2334 ) ;\n EXPECT_CALL ( * provider_ , GetInput ( _ ) ) . WillRepeatedly ( Return ( AutocompleteInput ( ) ) ) ;\n EXPECT_CALL ( * provider_ , GetTemplateURL ( _ ) ) . WillRepeatedly ( Return ( template_url . get ( ) ) ) ;\n SearchSuggestionParser : : SuggestResult more_relevant ( query , AutocompleteMatchType : : SEARCH_HISTORY , query , base : : string16 ( ) , base : : string16 ( ) , base : : string16 ( ) , base : : string16 ( ) , nullptr , std : : string ( ) , std : : string ( ) , false , 1300 , true , false , query ) ;\n provider_ -> AddMatchToMap ( more_relevant , std : : string ( ) , TemplateURLRef : : NO_SUGGESTION_CHOSEN , false , false , & map ) ;\n SearchSuggestionParser : : SuggestResult less_relevant ( query , AutocompleteMatchType : : SEARCH_SUGGEST , query , base : : string16 ( ) , base : : string16 ( ) , answer_contents , answer_type , SuggestionAnswer : : copy ( answer . get ( ) ) , std : : string ( ) , std : : string ( ) , false , 850 , true , false , query ) ;\n provider_ -> AddMatchToMap ( less_relevant , std : : string ( ) , TemplateURLRef : : NO_SUGGESTION_CHOSEN , false , false , & map ) ;\n ASSERT_EQ ( 1U , map . size ( ) ) ;\n AutocompleteMatch match = map . begin ( ) -> second ;\n ASSERT_EQ ( 1U , match . duplicate_matches . size ( ) ) ;\n AutocompleteMatch duplicate = match . duplicate_matches [ 0 ] ;\n EXPECT_EQ ( answer_contents , match . answer_contents ) ;\n EXPECT_EQ ( answer_type , match . answer_type ) ;\n EXPECT_TRUE ( answer -> Equals ( * match . answer ) ) ;\n EXPECT_EQ ( AutocompleteMatchType : : SEARCH_HISTORY , match . type ) ;\n EXPECT_EQ ( 1300 , match . relevance ) ;\n EXPECT_EQ ( answer_contents , duplicate . answer_contents ) ;\n EXPECT_EQ ( answer_type , duplicate . answer_type ) ;\n EXPECT_TRUE ( answer -> Equals ( * duplicate . answer ) ) ;\n EXPECT_EQ ( AutocompleteMatchType : : SEARCH_SUGGEST , duplicate . type ) ;\n EXPECT_EQ ( 850 , duplicate . relevance ) ;\n map . clear ( ) ;\n base : : string16 answer_contents2 = base : : ASCIIToUTF16 ( \"different answer\" ) ;\n base : : string16 answer_type2 = base : : ASCIIToUTF16 ( \"8242\" ) ;\n std : : unique_ptr < SuggestionAnswer > answer2 ( new SuggestionAnswer ( ) ) ;\n answer2 -> set_type ( 8242 ) ;\n more_relevant = SearchSuggestionParser : : SuggestResult ( query , AutocompleteMatchType : : SEARCH_HISTORY , query , base : : string16 ( ) , base : : string16 ( ) , answer_contents2 , answer_type2 , SuggestionAnswer : : copy ( answer2 . get ( ) ) , std : : string ( ) , std : : string ( ) , false , 1300 , true , false , query ) ;\n provider_ -> AddMatchToMap ( more_relevant , std : : string ( ) , TemplateURLRef : : NO_SUGGESTION_CHOSEN , false , false , & map ) ;\n provider_ -> AddMatchToMap ( less_relevant , std : : string ( ) , TemplateURLRef : : NO_SUGGESTION_CHOSEN , false , false , & map ) ;\n ASSERT_EQ ( 1U , map . size ( ) ) ;\n match = map . begin ( ) -> second ;\n ASSERT_EQ ( 1U , match . duplicate_matches . size ( ) ) ;\n duplicate = match . duplicate_matches [ 0 ] ;\n EXPECT_EQ ( answer_contents2 , match . answer_contents ) ;\n EXPECT_EQ ( answer_type2 , match . answer_type ) ;\n EXPECT_TRUE ( answer2 -> Equals ( * match . answer ) ) ;\n EXPECT_EQ ( AutocompleteMatchType : : SEARCH_HISTORY , match . type ) ;\n EXPECT_EQ ( 1300 , match . relevance ) ;\n EXPECT_EQ ( answer_contents , duplicate . answer_contents ) ;\n EXPECT_EQ ( answer_type , duplicate . answer_type ) ;\n EXPECT_TRUE ( answer -> Equals ( * duplicate . answer ) ) ;\n EXPECT_EQ ( AutocompleteMatchType : : SEARCH_SUGGEST , duplicate . type ) ;\n EXPECT_EQ ( 850 , duplicate . relevance ) ;\n }"}
{"idx": 7078, "target": 0, "func": "void gs_make_mem_mono_device ( gx_device_memory * dev , gs_memory_t * mem , gx_device * target ) {\n gx_device_init ( ( gx_device * ) dev , ( const gx_device * ) & mem_mono_device , mem , true ) ;\n set_dev_proc ( dev , get_page_device , gx_default_get_page_device ) ;\n gx_device_set_target ( ( gx_device_forward * ) dev , target ) ;\n dev -> raster = gx_device_raster ( ( gx_device * ) dev , 1 ) ;\n gdev_mem_mono_set_inverted ( dev , true ) ;\n check_device_separable ( ( gx_device * ) dev ) ;\n gx_device_fill_in_procs ( ( gx_device * ) dev ) ;\n set_dev_proc ( dev , get_profile , gx_forward_get_profile ) ;\n set_dev_proc ( dev , set_graphics_type_tag , gx_forward_set_graphics_type_tag ) ;\n dev -> graphics_type_tag = target ? target -> graphics_type_tag : GS_UNKNOWN_TAG ;\n }"}
{"idx": 7079, "target": 0, "func": "static int selinux_quotactl ( int cmds , int type , int id , struct super_block * sb ) {\n const struct cred * cred = current_cred ( ) ;\n int rc = 0 ;\n if ( ! sb ) return 0 ;\n switch ( cmds ) {\n case Q_SYNC : case Q_QUOTAON : case Q_QUOTAOFF : case Q_SETINFO : case Q_SETQUOTA : rc = superblock_has_perm ( cred , sb , FILESYSTEM__QUOTAMOD , NULL ) ;\n break ;\n case Q_GETFMT : case Q_GETINFO : case Q_GETQUOTA : rc = superblock_has_perm ( cred , sb , FILESYSTEM__QUOTAGET , NULL ) ;\n break ;\n default : rc = 0 ;\n break ;\n }\n return rc ;\n }"}
{"idx": 7080, "target": 0, "func": "bool agg_item_set_converter ( DTCollation & coll , const char * fname , Item * * args , uint nargs , uint flags , int item_sep ) {\n Item * * arg , * safe_args [ 2 ] = {\n NULL , NULL }\n ;\n if ( nargs >= 2 && nargs <= 3 ) {\n safe_args [ 0 ] = args [ 0 ] ;\n safe_args [ 1 ] = args [ item_sep ] ;\n }\n THD * thd = current_thd ;\n bool res = FALSE ;\n uint i ;\n Query_arena backup ;\n Query_arena * arena = thd -> stmt_arena -> is_stmt_prepare ( ) ? thd -> activate_stmt_arena_if_needed ( & backup ) : NULL ;\n for ( i = 0 , arg = args ;\n i < nargs ;\n i ++ , arg += item_sep ) {\n Item * conv ;\n uint32 dummy_offset ;\n if ( ! String : : needs_conversion ( 1 , ( * arg ) -> collation . collation , coll . collation , & dummy_offset ) ) continue ;\n if ( ( * arg ) -> collation . derivation == DERIVATION_NUMERIC && ( * arg ) -> collation . repertoire == MY_REPERTOIRE_ASCII && ! ( ( * arg ) -> collation . collation -> state & MY_CS_NONASCII ) && ! ( coll . collation -> state & MY_CS_NONASCII ) ) continue ;\n if ( ! ( conv = ( * arg ) -> safe_charset_converter ( coll . collation ) ) && ( ( * arg ) -> collation . repertoire == MY_REPERTOIRE_ASCII ) ) conv = new Item_func_conv_charset ( * arg , coll . collation , 1 ) ;\n if ( ! conv ) {\n if ( nargs >= 2 && nargs <= 3 ) {\n args [ 0 ] = safe_args [ 0 ] ;\n args [ item_sep ] = safe_args [ 1 ] ;\n }\n my_coll_agg_error ( args , nargs , fname , item_sep ) ;\n res = TRUE ;\n break ;\n }\n if ( ( * arg ) -> type ( ) == Item : : FIELD_ITEM ) ( ( Item_field * ) ( * arg ) ) -> no_const_subst = 1 ;\n if ( thd -> stmt_arena -> is_stmt_prepare ( ) ) * arg = conv ;\n else thd -> change_item_tree ( arg , conv ) ;\n if ( conv -> fix_fields ( thd , arg ) ) {\n res = TRUE ;\n break ;\n }\n }\n if ( arena ) thd -> restore_active_arena ( arena , & backup ) ;\n return res ;\n }"}
{"idx": 7081, "target": 0, "func": "void TSVConnAbort ( TSVConn connp , int error ) {\n sdk_assert ( sdk_sanity_check_iocore_structure ( connp ) == TS_SUCCESS ) ;\n VConnection * vc = ( VConnection * ) connp ;\n vc -> do_io_close ( error ) ;\n }"}
{"idx": 7082, "target": 0, "func": "static guint16 de_bcd_num ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , int header_field , const gchar * * extracted_address ) {\n guint8 extension ;\n guint32 curr_offset , num_string_len ;\n proto_item * item ;\n * extracted_address = NULL ;\n curr_offset = offset ;\n extension = tvb_get_guint8 ( tvb , curr_offset ) & 0x80 ;\n proto_tree_add_item ( tree , hf_gsm_a_extension , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_type_of_number , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_numbering_plan_id , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n if ( ! extension ) {\n proto_tree_add_item ( tree , hf_gsm_a_extension , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_present_ind , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( curr_offset << 3 ) + 3 , 3 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_screening_ind , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n }\n NO_MORE_DATA_CHECK ( len ) ;\n num_string_len = len - ( curr_offset - offset ) ;\n * extracted_address = tvb_bcd_dig_to_wmem_packet_str ( tvb , curr_offset , num_string_len , & Dgt_mbcd , FALSE ) ;\n item = proto_tree_add_string ( tree , header_field , tvb , curr_offset , num_string_len , * extracted_address ) ;\n if ( strchr ( * extracted_address , '?' ) ) {\n expert_add_info ( pinfo , item , & ei_gsm_a_dtap_end_mark_unexpected ) ;\n }\n return ( len ) ;\n }"}
{"idx": 7083, "target": 0, "func": "static gpg_error_t build_keyblock_image ( kbnode_t keyblock , iobuf_t * r_iobuf , u32 * * r_sigstatus ) {\n gpg_error_t err ;\n iobuf_t iobuf ;\n kbnode_t kbctx , node ;\n u32 n_sigs ;\n u32 * sigstatus ;\n * r_iobuf = NULL ;\n if ( r_sigstatus ) * r_sigstatus = NULL ;\n if ( r_sigstatus ) {\n for ( kbctx = NULL , n_sigs = 0 ;\n ( node = walk_kbnode ( keyblock , & kbctx , 0 ) ) ;\n ) if ( node -> pkt -> pkttype == PKT_SIGNATURE ) n_sigs ++ ;\n sigstatus = xtrycalloc ( 1 + n_sigs , sizeof * sigstatus ) ;\n if ( ! sigstatus ) return gpg_error_from_syserror ( ) ;\n }\n else sigstatus = NULL ;\n iobuf = iobuf_temp ( ) ;\n for ( kbctx = NULL , n_sigs = 0 ;\n ( node = walk_kbnode ( keyblock , & kbctx , 0 ) ) ;\n ) {\n switch ( node -> pkt -> pkttype ) {\n case PKT_PUBLIC_KEY : case PKT_PUBLIC_SUBKEY : case PKT_SIGNATURE : case PKT_USER_ID : case PKT_ATTRIBUTE : break ;\n default : continue ;\n }\n err = build_packet ( iobuf , node -> pkt ) ;\n if ( err ) {\n iobuf_close ( iobuf ) ;\n return err ;\n }\n if ( node -> pkt -> pkttype == PKT_SIGNATURE ) {\n PKT_signature * sig = node -> pkt -> pkt . signature ;\n n_sigs ++ ;\n if ( sig -> flags . checked && sigstatus ) {\n if ( sig -> flags . valid ) {\n if ( ! sig -> expiredate ) sigstatus [ n_sigs ] = 0xffffffff ;\n else if ( sig -> expiredate < 0x1000000 ) sigstatus [ n_sigs ] = 0x10000000 ;\n else sigstatus [ n_sigs ] = sig -> expiredate ;\n }\n else sigstatus [ n_sigs ] = 0x00000002 ;\n }\n }\n }\n if ( sigstatus ) sigstatus [ 0 ] = n_sigs ;\n * r_iobuf = iobuf ;\n if ( r_sigstatus ) * r_sigstatus = sigstatus ;\n return 0 ;\n }"}
{"idx": 7084, "target": 0, "func": "void message_search_deinit ( struct message_search_context * * _ctx ) {\n struct message_search_context * ctx = * _ctx ;\n * _ctx = NULL ;\n str_find_deinit ( & ctx -> str_find_ctx ) ;\n message_decoder_deinit ( & ctx -> decoder ) ;\n i_free ( ctx ) ;\n }"}
{"idx": 7085, "target": 0, "func": "guint16 de_ms_cm_1 ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n proto_tree * subtree ;\n curr_offset = offset ;\n subtree = proto_tree_add_subtree ( tree , tvb , curr_offset , 1 , ett_gsm_common_elem [ DE_MS_CM_1 ] , NULL , val_to_str_ext_const ( DE_MS_CM_1 , & gsm_common_elem_strings_ext , \"\" ) ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_b8spare , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_MSC_rev , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_ES_IND , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_A5_1_algorithm_sup , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_RF_power_capability , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 7086, "target": 0, "func": "struct qcms_modular_transform * qcms_modular_transform_create_input ( qcms_profile * in ) {\n struct qcms_modular_transform * first_transform = NULL ;\n struct qcms_modular_transform * * next_transform = & first_transform ;\n if ( in -> A2B0 ) {\n struct qcms_modular_transform * lut_transform ;\n lut_transform = qcms_modular_transform_create_lut ( in -> A2B0 ) ;\n if ( ! lut_transform ) goto fail ;\n append_transform ( lut_transform , & next_transform ) ;\n }\n else if ( in -> mAB && in -> mAB -> num_in_channels == 3 && in -> mAB -> num_out_channels == 3 ) {\n struct qcms_modular_transform * mAB_transform ;\n mAB_transform = qcms_modular_transform_create_mAB ( in -> mAB ) ;\n if ( ! mAB_transform ) goto fail ;\n append_transform ( mAB_transform , & next_transform ) ;\n }\n else {\n struct qcms_modular_transform * transform ;\n transform = qcms_modular_transform_alloc ( ) ;\n if ( ! transform ) goto fail ;\n append_transform ( transform , & next_transform ) ;\n transform -> input_clut_table_r = build_input_gamma_table ( in -> redTRC ) ;\n transform -> input_clut_table_g = build_input_gamma_table ( in -> greenTRC ) ;\n transform -> input_clut_table_b = build_input_gamma_table ( in -> blueTRC ) ;\n transform -> transform_module_fn = qcms_transform_module_gamma_table ;\n if ( ! transform -> input_clut_table_r || ! transform -> input_clut_table_g || ! transform -> input_clut_table_b ) {\n goto fail ;\n }\n transform = qcms_modular_transform_alloc ( ) ;\n if ( ! transform ) goto fail ;\n append_transform ( transform , & next_transform ) ;\n transform -> matrix . m [ 0 ] [ 0 ] = 1 / 1.999969482421875f ;\n transform -> matrix . m [ 0 ] [ 1 ] = 0.f ;\n transform -> matrix . m [ 0 ] [ 2 ] = 0.f ;\n transform -> matrix . m [ 1 ] [ 0 ] = 0.f ;\n transform -> matrix . m [ 1 ] [ 1 ] = 1 / 1.999969482421875f ;\n transform -> matrix . m [ 1 ] [ 2 ] = 0.f ;\n transform -> matrix . m [ 2 ] [ 0 ] = 0.f ;\n transform -> matrix . m [ 2 ] [ 1 ] = 0.f ;\n transform -> matrix . m [ 2 ] [ 2 ] = 1 / 1.999969482421875f ;\n transform -> matrix . invalid = false ;\n transform -> transform_module_fn = qcms_transform_module_matrix ;\n transform = qcms_modular_transform_alloc ( ) ;\n if ( ! transform ) goto fail ;\n append_transform ( transform , & next_transform ) ;\n transform -> matrix = build_colorant_matrix ( in ) ;\n transform -> transform_module_fn = qcms_transform_module_matrix ;\n }\n return first_transform ;\n fail : qcms_modular_transform_release ( first_transform ) ;\n return EMPTY_TRANSFORM_LIST ;\n }"}
{"idx": 7087, "target": 0, "func": "static Selectivity mcelem_array_contained_selec ( Datum * mcelem , int nmcelem , float4 * numbers , int nnumbers , Datum * array_data , int nitems , float4 * hist , int nhist , Oid operator , FmgrInfo * cmpfunc ) {\n int mcelem_index , i , unique_nitems = 0 ;\n float selec , minfreq , nullelem_freq ;\n float * dist , * mcelem_dist , * hist_part ;\n float avg_count , mult , rest ;\n float * elem_selec ;\n if ( numbers == NULL || nnumbers != nmcelem + 3 ) return DEFAULT_CONTAIN_SEL ;\n if ( hist == NULL || nhist < 3 ) return DEFAULT_CONTAIN_SEL ;\n minfreq = numbers [ nmcelem ] ;\n nullelem_freq = numbers [ nmcelem + 2 ] ;\n avg_count = hist [ nhist - 1 ] ;\n rest = avg_count ;\n mult = 1.0f ;\n elem_selec = ( float * ) palloc ( sizeof ( float ) * nitems ) ;\n mcelem_index = 0 ;\n for ( i = 0 ;\n i < nitems ;\n i ++ ) {\n bool match = false ;\n if ( i > 0 && element_compare ( & array_data [ i - 1 ] , & array_data [ i ] , cmpfunc ) == 0 ) continue ;\n while ( mcelem_index < nmcelem ) {\n int cmp = element_compare ( & mcelem [ mcelem_index ] , & array_data [ i ] , cmpfunc ) ;\n if ( cmp < 0 ) {\n mult *= ( 1.0f - numbers [ mcelem_index ] ) ;\n rest -= numbers [ mcelem_index ] ;\n mcelem_index ++ ;\n }\n else {\n if ( cmp == 0 ) match = true ;\n break ;\n }\n }\n if ( match ) {\n elem_selec [ unique_nitems ] = numbers [ mcelem_index ] ;\n rest -= numbers [ mcelem_index ] ;\n mcelem_index ++ ;\n }\n else {\n elem_selec [ unique_nitems ] = Min ( DEFAULT_CONTAIN_SEL , minfreq / 2 ) ;\n }\n unique_nitems ++ ;\n }\n while ( mcelem_index < nmcelem ) {\n mult *= ( 1.0f - numbers [ mcelem_index ] ) ;\n rest -= numbers [ mcelem_index ] ;\n mcelem_index ++ ;\n }\n mult *= exp ( - rest ) ;\n # define EFFORT 100 if ( ( nmcelem + unique_nitems ) > 0 && unique_nitems > EFFORT * nmcelem / ( nmcelem + unique_nitems ) ) {\n double b = ( double ) nmcelem ;\n int n ;\n n = ( int ) ( ( sqrt ( b * b + 4 * EFFORT * b ) - b ) / 2 ) ;\n qsort ( elem_selec , unique_nitems , sizeof ( float ) , float_compare_desc ) ;\n unique_nitems = n ;\n }\n dist = calc_distr ( elem_selec , unique_nitems , unique_nitems , 0.0f ) ;\n mcelem_dist = calc_distr ( numbers , nmcelem , unique_nitems , rest ) ;\n hist_part = calc_hist ( hist , nhist - 1 , unique_nitems ) ;\n selec = 0.0f ;\n for ( i = 0 ;\n i <= unique_nitems ;\n i ++ ) {\n if ( mcelem_dist [ i ] > 0 ) selec += hist_part [ i ] * mult * dist [ i ] / mcelem_dist [ i ] ;\n }\n pfree ( dist ) ;\n pfree ( mcelem_dist ) ;\n pfree ( hist_part ) ;\n pfree ( elem_selec ) ;\n selec *= ( 1.0f - nullelem_freq ) ;\n CLAMP_PROBABILITY ( selec ) ;\n return selec ;\n }"}
{"idx": 7088, "target": 0, "func": "static int dissect_coap ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * parent_tree , void * data _U_ ) {\n gint offset = 0 ;\n proto_item * coap_root ;\n proto_item * pi ;\n proto_tree * coap_tree ;\n guint8 ttype ;\n guint8 token_len ;\n guint8 code ;\n guint8 code_class ;\n guint16 mid ;\n gint coap_length ;\n gchar * coap_token_str ;\n coap_info * coinfo ;\n conversation_t * conversation ;\n coap_conv_info * ccinfo ;\n coap_transaction * coap_trans = NULL ;\n coinfo = ( coap_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_coap , 0 ) ;\n if ( coinfo == NULL ) {\n coinfo = wmem_new0 ( wmem_file_scope ( ) , coap_info ) ;\n p_add_proto_data ( wmem_file_scope ( ) , pinfo , proto_coap , 0 , coinfo ) ;\n }\n coap_length = tvb_reported_length ( tvb ) ;\n coinfo -> ctype_str = \"\" ;\n coinfo -> ctype_value = DEFAULT_COAP_CTYPE_VALUE ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"CoAP\" ) ;\n col_clear ( pinfo -> cinfo , COL_INFO ) ;\n coap_root = proto_tree_add_item ( parent_tree , proto_coap , tvb , offset , - 1 , ENC_NA ) ;\n coap_tree = proto_item_add_subtree ( coap_root , ett_coap ) ;\n proto_tree_add_item ( coap_tree , hf_coap_version , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( coap_tree , hf_coap_ttype , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n ttype = ( tvb_get_guint8 ( tvb , offset ) & COAP_TYPE_MASK ) >> 4 ;\n proto_tree_add_item ( coap_tree , hf_coap_token_len , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n token_len = tvb_get_guint8 ( tvb , offset ) & COAP_TOKEN_LEN_MASK ;\n offset += 1 ;\n code = dissect_coap_code ( tvb , coap_tree , & offset , & dissect_coap_hf , & code_class ) ;\n proto_tree_add_item ( coap_tree , hf_coap_mid , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n mid = tvb_get_ntohs ( tvb , offset ) ;\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"%s, MID:%u, %s\" , val_to_str ( ttype , vals_ttype_short , \"Unknown %u\" ) , mid , val_to_str_ext ( code , & coap_vals_code_ext , \"Unknown %u\" ) ) ;\n proto_item_append_text ( coap_root , \", %s, %s, MID:%u\" , val_to_str ( ttype , vals_ttype , \"Unknown %u\" ) , val_to_str_ext ( code , & coap_vals_code_ext , \"Unknown %u\" ) , mid ) ;\n offset += 2 ;\n coinfo -> block_number = DEFAULT_COAP_BLOCK_NUMBER ;\n coinfo -> block_mflag = 0 ;\n coinfo -> uri_str_strbuf = wmem_strbuf_sized_new ( wmem_packet_scope ( ) , 0 , 1024 ) ;\n coinfo -> uri_query_strbuf = wmem_strbuf_sized_new ( wmem_packet_scope ( ) , 0 , 1024 ) ;\n coinfo -> oscore_info = wmem_new0 ( wmem_packet_scope ( ) , oscore_info_t ) ;\n coinfo -> object_security = FALSE ;\n coap_token_str = NULL ;\n if ( token_len > 0 ) {\n coap_token_str = tvb_bytes_to_str_punct ( wmem_file_scope ( ) , tvb , offset , token_len , ' ' ) ;\n proto_tree_add_item ( coap_tree , hf_coap_token , tvb , offset , token_len , ENC_NA ) ;\n offset += token_len ;\n }\n offset = dissect_coap_options ( tvb , pinfo , coap_tree , offset , coap_length , coinfo , & dissect_coap_hf ) ;\n if ( offset == - 1 ) return tvb_captured_length ( tvb ) ;\n conversation = find_or_create_conversation_noaddrb ( pinfo , ( code_class == 0 ) ) ;\n ccinfo = ( coap_conv_info * ) conversation_get_proto_data ( conversation , proto_coap ) ;\n if ( ! ccinfo ) {\n ccinfo = wmem_new ( wmem_file_scope ( ) , coap_conv_info ) ;\n ccinfo -> messages = wmem_map_new ( wmem_file_scope ( ) , g_str_hash , g_str_equal ) ;\n conversation_add_proto_data ( conversation , proto_coap , ccinfo ) ;\n }\n if ( coap_token_str != NULL ) {\n if ( code != 0 ) {\n coap_trans = ( coap_transaction * ) wmem_map_lookup ( ccinfo -> messages , coap_token_str ) ;\n if ( ! coap_trans ) {\n if ( ( ! PINFO_FD_VISITED ( pinfo ) ) && ( code_class == 0 ) ) {\n coap_trans = wmem_new0 ( wmem_file_scope ( ) , coap_transaction ) ;\n coap_trans -> req_frame = pinfo -> num ;\n coap_trans -> rsp_frame = 0 ;\n coap_trans -> req_time = pinfo -> fd -> abs_ts ;\n if ( coinfo -> uri_str_strbuf ) {\n coap_trans -> uri_str_strbuf = wmem_strbuf_new ( wmem_file_scope ( ) , wmem_strbuf_get_str ( coinfo -> uri_str_strbuf ) ) ;\n }\n if ( coinfo -> oscore_info ) {\n coap_trans -> oscore_info = ( oscore_info_t * ) wmem_memdup ( wmem_file_scope ( ) , coinfo -> oscore_info , sizeof ( oscore_info_t ) ) ;\n if ( coinfo -> oscore_info -> kid ) {\n coap_trans -> oscore_info -> kid = ( guint8 * ) wmem_memdup ( wmem_file_scope ( ) , coinfo -> oscore_info -> kid , coinfo -> oscore_info -> kid_len ) ;\n }\n if ( coinfo -> oscore_info -> kid_context ) {\n coap_trans -> oscore_info -> kid_context = ( guint8 * ) wmem_memdup ( wmem_file_scope ( ) , coinfo -> oscore_info -> kid_context , coinfo -> oscore_info -> kid_context_len ) ;\n }\n if ( coinfo -> oscore_info -> piv ) {\n coap_trans -> oscore_info -> piv = ( guint8 * ) wmem_memdup ( wmem_file_scope ( ) , coinfo -> oscore_info -> piv , coinfo -> oscore_info -> piv_len ) ;\n }\n }\n wmem_map_insert ( ccinfo -> messages , coap_token_str , ( void * ) coap_trans ) ;\n }\n }\n else {\n if ( ( code_class >= 2 ) && ( code_class <= 5 ) ) {\n if ( ! PINFO_FD_VISITED ( pinfo ) ) {\n coap_trans -> rsp_frame = pinfo -> num ;\n }\n if ( coap_trans -> uri_str_strbuf ) {\n coinfo -> uri_str_strbuf = wmem_strbuf_new ( wmem_packet_scope ( ) , wmem_strbuf_get_str ( coap_trans -> uri_str_strbuf ) ) ;\n }\n if ( coap_trans -> oscore_info ) {\n if ( coap_trans -> oscore_info -> kid ) {\n coinfo -> oscore_info -> kid = ( guint8 * ) wmem_memdup ( wmem_packet_scope ( ) , coap_trans -> oscore_info -> kid , coap_trans -> oscore_info -> kid_len ) ;\n }\n coinfo -> oscore_info -> kid_len = coap_trans -> oscore_info -> kid_len ;\n if ( coap_trans -> oscore_info -> kid_context ) {\n coinfo -> oscore_info -> kid_context = ( guint8 * ) wmem_memdup ( wmem_packet_scope ( ) , coap_trans -> oscore_info -> kid_context , coap_trans -> oscore_info -> kid_context_len ) ;\n }\n coinfo -> oscore_info -> kid_context_len = coap_trans -> oscore_info -> kid_context_len ;\n if ( coinfo -> oscore_info -> piv_len > 0 ) {\n coinfo -> oscore_info -> piv_in_response = TRUE ;\n coap_trans -> oscore_info -> piv_in_response = TRUE ;\n }\n else if ( coap_trans -> oscore_info -> piv_len > 0 ) {\n coinfo -> oscore_info -> piv = ( guint8 * ) wmem_memdup ( wmem_packet_scope ( ) , coap_trans -> oscore_info -> piv , coap_trans -> oscore_info -> piv_len ) ;\n coinfo -> oscore_info -> piv_len = coap_trans -> oscore_info -> piv_len ;\n }\n coinfo -> oscore_info -> response = TRUE ;\n }\n }\n }\n }\n }\n if ( coap_trans != NULL ) {\n if ( code_class == 0 ) {\n if ( coap_trans -> rsp_frame ) {\n proto_item * it ;\n it = proto_tree_add_uint ( coap_tree , hf_coap_response_in , tvb , 0 , 0 , coap_trans -> rsp_frame ) ;\n PROTO_ITEM_SET_GENERATED ( it ) ;\n }\n }\n else if ( ( code_class >= 2 ) && ( code_class <= 5 ) ) {\n if ( coap_trans -> req_frame ) {\n proto_item * it ;\n nstime_t ns ;\n it = proto_tree_add_uint ( coap_tree , hf_coap_response_to , tvb , 0 , 0 , coap_trans -> req_frame ) ;\n PROTO_ITEM_SET_GENERATED ( it ) ;\n nstime_delta ( & ns , & pinfo -> fd -> abs_ts , & coap_trans -> req_time ) ;\n it = proto_tree_add_time ( coap_tree , hf_coap_response_time , tvb , 0 , 0 , & ns ) ;\n PROTO_ITEM_SET_GENERATED ( it ) ;\n }\n if ( coinfo -> object_security && coap_trans -> oscore_info ) {\n proto_item * it ;\n it = proto_tree_add_bytes ( coap_tree , hf_coap_oscore_kid , tvb , 0 , coap_trans -> oscore_info -> kid_len , coap_trans -> oscore_info -> kid ) ;\n PROTO_ITEM_SET_GENERATED ( it ) ;\n it = proto_tree_add_bytes ( coap_tree , hf_coap_oscore_kid_context , tvb , 0 , coap_trans -> oscore_info -> kid_context_len , coap_trans -> oscore_info -> kid_context ) ;\n PROTO_ITEM_SET_GENERATED ( it ) ;\n if ( coap_trans -> oscore_info -> piv_in_response ) {\n it = proto_tree_add_bytes ( coap_tree , hf_coap_oscore_piv , tvb , 0 , coinfo -> oscore_info -> piv_len , coinfo -> oscore_info -> piv ) ;\n }\n else {\n it = proto_tree_add_bytes ( coap_tree , hf_coap_oscore_piv , tvb , 0 , coap_trans -> oscore_info -> piv_len , coap_trans -> oscore_info -> piv ) ;\n }\n PROTO_ITEM_SET_GENERATED ( it ) ;\n }\n }\n }\n if ( coap_token_str != NULL ) col_append_fstr ( pinfo -> cinfo , COL_INFO , \", TKN:%s\" , coap_token_str ) ;\n if ( coinfo -> block_number != DEFAULT_COAP_BLOCK_NUMBER ) col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %sBlock #%u\" , coinfo -> block_mflag ? \"\" : \"End of \" , coinfo -> block_number ) ;\n if ( wmem_strbuf_get_len ( coinfo -> uri_str_strbuf ) > 0 ) {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , wmem_strbuf_get_str ( coinfo -> uri_str_strbuf ) ) ;\n pi = proto_tree_add_string ( coap_tree , dissect_coap_hf . hf . opt_uri_path_recon , tvb , 0 , 0 , wmem_strbuf_get_str ( coinfo -> uri_str_strbuf ) ) ;\n PROTO_ITEM_SET_GENERATED ( pi ) ;\n }\n if ( wmem_strbuf_get_len ( coinfo -> uri_query_strbuf ) > 0 ) col_append_str ( pinfo -> cinfo , COL_INFO , wmem_strbuf_get_str ( coinfo -> uri_query_strbuf ) ) ;\n if ( coap_length > offset ) {\n dissect_coap_payload ( tvb , pinfo , coap_tree , parent_tree , offset , coap_length , code_class , coinfo , & dissect_coap_hf , FALSE ) ;\n }\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 7089, "target": 0, "func": "static void pdf_grestore ( fz_context * ctx , pdf_run_processor * pr ) {\n pdf_gstate * gs = pr -> gstate + pr -> gtop ;\n int clip_depth = gs -> clip_depth ;\n if ( pr -> gtop <= pr -> gbot ) {\n fz_warn ( ctx , \"gstate underflow in content stream\" ) ;\n return ;\n }\n pdf_drop_gstate ( ctx , gs ) ;\n pr -> gtop -- ;\n gs = pr -> gstate + pr -> gtop ;\n while ( clip_depth > gs -> clip_depth ) {\n fz_try ( ctx ) {\n fz_pop_clip ( ctx , pr -> dev ) ;\n }\n fz_catch ( ctx ) {\n }\n clip_depth -- ;\n }\n }"}
{"idx": 7090, "target": 0, "func": "static void nonrd_use_partition ( VP9_COMP * cpi , const TileInfo * const tile , MODE_INFO * mi , TOKENEXTRA * * tp , int mi_row , int mi_col , BLOCK_SIZE bsize , int output_enabled , int * totrate , int64_t * totdist , PC_TREE * pc_tree ) {\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCK * const x = & cpi -> mb ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n const int bsl = b_width_log2 ( bsize ) , hbs = ( 1 << bsl ) / 4 ;\n const int mis = cm -> mi_stride ;\n PARTITION_TYPE partition ;\n BLOCK_SIZE subsize ;\n int rate = INT_MAX ;\n int64_t dist = INT64_MAX ;\n if ( mi_row >= cm -> mi_rows || mi_col >= cm -> mi_cols ) return ;\n subsize = ( bsize >= BLOCK_8X8 ) ? mi [ 0 ] . src_mi -> mbmi . sb_type : BLOCK_4X4 ;\n partition = partition_lookup [ bsl ] [ subsize ] ;\n switch ( partition ) {\n case PARTITION_NONE : nonrd_pick_sb_modes ( cpi , tile , mi_row , mi_col , totrate , totdist , subsize , & pc_tree -> none ) ;\n pc_tree -> none . mic . mbmi = xd -> mi [ 0 ] . src_mi -> mbmi ;\n pc_tree -> none . skip_txfm [ 0 ] = x -> skip_txfm [ 0 ] ;\n pc_tree -> none . skip = x -> skip ;\n break ;\n case PARTITION_VERT : nonrd_pick_sb_modes ( cpi , tile , mi_row , mi_col , totrate , totdist , subsize , & pc_tree -> vertical [ 0 ] ) ;\n pc_tree -> vertical [ 0 ] . mic . mbmi = xd -> mi [ 0 ] . src_mi -> mbmi ;\n pc_tree -> vertical [ 0 ] . skip_txfm [ 0 ] = x -> skip_txfm [ 0 ] ;\n pc_tree -> vertical [ 0 ] . skip = x -> skip ;\n if ( mi_col + hbs < cm -> mi_cols ) {\n nonrd_pick_sb_modes ( cpi , tile , mi_row , mi_col + hbs , & rate , & dist , subsize , & pc_tree -> vertical [ 1 ] ) ;\n pc_tree -> vertical [ 1 ] . mic . mbmi = xd -> mi [ 0 ] . src_mi -> mbmi ;\n pc_tree -> vertical [ 1 ] . skip_txfm [ 0 ] = x -> skip_txfm [ 0 ] ;\n pc_tree -> vertical [ 1 ] . skip = x -> skip ;\n if ( rate != INT_MAX && dist != INT64_MAX && * totrate != INT_MAX && * totdist != INT64_MAX ) {\n * totrate += rate ;\n * totdist += dist ;\n }\n }\n break ;\n case PARTITION_HORZ : nonrd_pick_sb_modes ( cpi , tile , mi_row , mi_col , totrate , totdist , subsize , & pc_tree -> horizontal [ 0 ] ) ;\n pc_tree -> horizontal [ 0 ] . mic . mbmi = xd -> mi [ 0 ] . src_mi -> mbmi ;\n pc_tree -> horizontal [ 0 ] . skip_txfm [ 0 ] = x -> skip_txfm [ 0 ] ;\n pc_tree -> horizontal [ 0 ] . skip = x -> skip ;\n if ( mi_row + hbs < cm -> mi_rows ) {\n nonrd_pick_sb_modes ( cpi , tile , mi_row + hbs , mi_col , & rate , & dist , subsize , & pc_tree -> horizontal [ 0 ] ) ;\n pc_tree -> horizontal [ 1 ] . mic . mbmi = xd -> mi [ 0 ] . src_mi -> mbmi ;\n pc_tree -> horizontal [ 1 ] . skip_txfm [ 0 ] = x -> skip_txfm [ 0 ] ;\n pc_tree -> horizontal [ 1 ] . skip = x -> skip ;\n if ( rate != INT_MAX && dist != INT64_MAX && * totrate != INT_MAX && * totdist != INT64_MAX ) {\n * totrate += rate ;\n * totdist += dist ;\n }\n }\n break ;\n case PARTITION_SPLIT : subsize = get_subsize ( bsize , PARTITION_SPLIT ) ;\n nonrd_use_partition ( cpi , tile , mi , tp , mi_row , mi_col , subsize , output_enabled , totrate , totdist , pc_tree -> split [ 0 ] ) ;\n nonrd_use_partition ( cpi , tile , mi + hbs , tp , mi_row , mi_col + hbs , subsize , output_enabled , & rate , & dist , pc_tree -> split [ 1 ] ) ;\n if ( rate != INT_MAX && dist != INT64_MAX && * totrate != INT_MAX && * totdist != INT64_MAX ) {\n * totrate += rate ;\n * totdist += dist ;\n }\n nonrd_use_partition ( cpi , tile , mi + hbs * mis , tp , mi_row + hbs , mi_col , subsize , output_enabled , & rate , & dist , pc_tree -> split [ 2 ] ) ;\n if ( rate != INT_MAX && dist != INT64_MAX && * totrate != INT_MAX && * totdist != INT64_MAX ) {\n * totrate += rate ;\n * totdist += dist ;\n }\n nonrd_use_partition ( cpi , tile , mi + hbs * mis + hbs , tp , mi_row + hbs , mi_col + hbs , subsize , output_enabled , & rate , & dist , pc_tree -> split [ 3 ] ) ;\n if ( rate != INT_MAX && dist != INT64_MAX && * totrate != INT_MAX && * totdist != INT64_MAX ) {\n * totrate += rate ;\n * totdist += dist ;\n }\n break ;\n default : assert ( \"Invalid partition type.\" ) ;\n break ;\n }\n if ( bsize == BLOCK_64X64 && output_enabled ) {\n if ( cpi -> oxcf . aq_mode == CYCLIC_REFRESH_AQ ) vp9_cyclic_refresh_set_rate_and_dist_sb ( cpi -> cyclic_refresh , * totrate , * totdist ) ;\n encode_sb_rt ( cpi , tile , tp , mi_row , mi_col , 1 , bsize , pc_tree ) ;\n }\n }"}
{"idx": 7091, "target": 0, "func": "static guint change_call_num_graph ( voip_calls_tapinfo_t * tapinfo _U_ , guint16 call_num , guint16 new_call_num ) {\n seq_analysis_item_t * gai ;\n GList * list ;\n guint items_changed ;\n items_changed = 0 ;\n list = g_list_first ( tapinfo -> graph_analysis -> list ) ;\n while ( list ) {\n gai = ( seq_analysis_item_t * ) list -> data ;\n if ( gai -> conv_num == call_num ) {\n gai -> conv_num = new_call_num ;\n items_changed ++ ;\n }\n list = g_list_next ( list ) ;\n }\n return items_changed ;\n }"}
{"idx": 7092, "target": 0, "func": "static void virtio_balloon_set_config ( VirtIODevice * vdev , const uint8_t * config_data ) {\n VirtIOBalloon * dev = to_virtio_balloon ( vdev ) ;\n struct virtio_balloon_config config ;\n memcpy ( & config , config_data , 8 ) ;\n dev -> actual = le32_to_cpu ( config . actual ) ;\n }"}
{"idx": 7093, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( AvatarMenuButtonTest , MAYBE_HideOnSecondClick ) {\n # if defined ( OS_WIN ) && defined ( USE_ASH ) if ( base : : CommandLine : : ForCurrentProcess ( ) -> HasSwitch ( switches : : kAshBrowserTests ) ) return ;\n # endif if ( ! profiles : : IsMultipleProfilesEnabled ( ) ) return ;\n CreateTestingProfile ( ) ;\n ASSERT_NO_FATAL_FAILURE ( StartAvatarMenu ( ) ) ;\n AvatarMenuButton * button = GetAvatarMenuButton ( ) ;\n static_cast < views : : MenuButtonListener * > ( button ) -> OnMenuButtonClicked ( NULL , gfx : : Point ( ) ) ;\n AvatarMenuBubbleView : : Hide ( ) ;\n base : : MessageLoop : : current ( ) -> RunUntilIdle ( ) ;\n EXPECT_FALSE ( AvatarMenuBubbleView : : IsShowing ( ) ) ;\n }"}
{"idx": 7094, "target": 0, "func": "int server_run_command ( struct client * client , struct config * config , struct iovec * * argv ) {\n char * command = NULL ;\n char * subcommand = NULL ;\n char * helpsubcommand = NULL ;\n struct rule * rule = NULL ;\n char * * req_argv = NULL ;\n size_t i ;\n int status = - 1 ;\n bool ok = false ;\n bool help = false ;\n const char * user = client -> user ;\n struct process process ;\n memset ( & process , 0 , sizeof ( process ) ) ;\n process . client = client ;\n if ( argv [ 0 ] == NULL ) {\n notice ( \"empty command from user %s\" , user ) ;\n client -> error ( client , ERROR_BAD_COMMAND , \"Invalid command token\" ) ;\n goto done ;\n }\n for ( i = 0 ;\n argv [ i ] != NULL && i < 2 ;\n i ++ ) {\n if ( memchr ( argv [ i ] -> iov_base , '\\0' , argv [ i ] -> iov_len ) ) {\n notice ( \"%s from user %s contains nul octet\" , ( i == 0 ) ? \"command\" : \"subcommand\" , user ) ;\n client -> error ( client , ERROR_BAD_COMMAND , \"Invalid command token\" ) ;\n goto done ;\n }\n }\n command = xstrndup ( argv [ 0 ] -> iov_base , argv [ 0 ] -> iov_len ) ;\n if ( argv [ 1 ] != NULL ) subcommand = xstrndup ( argv [ 1 ] -> iov_base , argv [ 1 ] -> iov_len ) ;\n rule = find_config_line ( config , command , subcommand ) ;\n if ( rule == NULL && strcmp ( command , \"help\" ) == 0 ) {\n if ( argv [ 1 ] != NULL && argv [ 2 ] != NULL && argv [ 3 ] != NULL ) {\n notice ( \"help command from user %s has more than three arguments\" , user ) ;\n client -> error ( client , ERROR_TOOMANY_ARGS , \"Too many arguments for help command\" ) ;\n }\n if ( subcommand == NULL ) {\n server_send_summary ( client , config ) ;\n goto done ;\n }\n else {\n help = true ;\n if ( argv [ 2 ] != NULL ) helpsubcommand = xstrndup ( argv [ 2 ] -> iov_base , argv [ 2 ] -> iov_len ) ;\n rule = find_config_line ( config , subcommand , helpsubcommand ) ;\n }\n }\n for ( i = 1 ;\n argv [ i ] != NULL ;\n i ++ ) {\n if ( rule != NULL ) {\n if ( help == false && ( long ) i == rule -> stdin_arg ) continue ;\n if ( argv [ i + 1 ] == NULL && rule -> stdin_arg == - 1 ) continue ;\n }\n if ( memchr ( argv [ i ] -> iov_base , '\\0' , argv [ i ] -> iov_len ) ) {\n notice ( \"argument %lu from user %s contains nul octet\" , ( unsigned long ) i , user ) ;\n client -> error ( client , ERROR_BAD_COMMAND , \"Invalid command token\" ) ;\n goto done ;\n }\n }\n server_log_command ( argv , rule , user ) ;\n if ( rule == NULL ) {\n notice ( \"unknown command %s%s%s from user %s\" , command , ( subcommand == NULL ) ? \"\" : \" \" , ( subcommand == NULL ) ? \"\" : subcommand , user ) ;\n client -> error ( client , ERROR_UNKNOWN_COMMAND , \"Unknown command\" ) ;\n goto done ;\n }\n if ( ! server_config_acl_permit ( rule , client ) ) {\n notice ( \"access denied: user %s, command %s%s%s\" , user , command , ( subcommand == NULL ) ? \"\" : \" \" , ( subcommand == NULL ) ? \"\" : subcommand ) ;\n client -> error ( client , ERROR_ACCESS , \"Access denied\" ) ;\n goto done ;\n }\n if ( help ) {\n if ( rule -> help == NULL ) {\n notice ( \"command %s from user %s has no defined help\" , command , user ) ;\n client -> error ( client , ERROR_NO_HELP , \"No help defined for command\" ) ;\n goto done ;\n }\n else {\n free ( subcommand ) ;\n subcommand = xstrdup ( rule -> help ) ;\n }\n }\n if ( help ) req_argv = create_argv_help ( rule -> program , subcommand , helpsubcommand ) ;\n else req_argv = create_argv_command ( rule , & process , argv ) ;\n process . command = command ;\n process . argv = ( const char * * ) req_argv ;\n process . rule = rule ;\n ok = server_process_run ( & process ) ;\n if ( ok ) {\n if ( WIFEXITED ( process . status ) ) process . status = ( signed int ) WEXITSTATUS ( process . status ) ;\n else process . status = - 1 ;\n client -> finish ( client , process . output , process . status ) ;\n }\n status = process . status ;\n done : free ( command ) ;\n free ( subcommand ) ;\n free ( helpsubcommand ) ;\n if ( req_argv != NULL ) {\n for ( i = 0 ;\n req_argv [ i ] != NULL ;\n i ++ ) free ( req_argv [ i ] ) ;\n free ( req_argv ) ;\n }\n if ( process . input != NULL ) evbuffer_free ( process . input ) ;\n if ( process . output != NULL ) evbuffer_free ( process . output ) ;\n return status ;\n }"}
{"idx": 7095, "target": 1, "func": "static int temporal_filter_find_matching_mb_c ( VP9_COMP * cpi , uint8_t * arf_frame_buf , uint8_t * frame_ptr_buf , int stride ) {\n MACROBLOCK * const x = & cpi -> mb ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n const MV_SPEED_FEATURES * const mv_sf = & cpi -> sf . mv ;\n int step_param ;\n int sadpb = x -> sadperbit16 ;\n int bestsme = INT_MAX ;\n int distortion ;\n unsigned int sse ;\n int sad_list [ 5 ] ;\n MV best_ref_mv1 = {\n 0 , 0 }\n ;\n MV best_ref_mv1_full ;\n MV * ref_mv = & x -> e_mbd . mi [ 0 ] -> bmi [ 0 ] . as_mv [ 0 ] . as_mv ;\n struct buf_2d src = x -> plane [ 0 ] . src ;\n struct buf_2d pre = xd -> plane [ 0 ] . pre [ 0 ] ;\n best_ref_mv1_full . col = best_ref_mv1 . col >> 3 ;\n best_ref_mv1_full . row = best_ref_mv1 . row >> 3 ;\n x -> plane [ 0 ] . src . buf = arf_frame_buf ;\n x -> plane [ 0 ] . src . stride = stride ;\n xd -> plane [ 0 ] . pre [ 0 ] . buf = frame_ptr_buf ;\n xd -> plane [ 0 ] . pre [ 0 ] . stride = stride ;\n step_param = mv_sf -> reduce_first_step_size ;\n step_param = MIN ( step_param , MAX_MVSEARCH_STEPS - 2 ) ;\n vp9_hex_search ( x , & best_ref_mv1_full , step_param , sadpb , 1 , cond_sad_list ( cpi , sad_list ) , & cpi -> fn_ptr [ BLOCK_16X16 ] , 0 , & best_ref_mv1 , ref_mv ) ;\n bestsme = cpi -> find_fractional_mv_step ( x , ref_mv , & best_ref_mv1 , cpi -> common . allow_high_precision_mv , x -> errorperbit , & cpi -> fn_ptr [ BLOCK_16X16 ] , 0 , mv_sf -> subpel_iters_per_step , cond_sad_list ( cpi , sad_list ) , NULL , NULL , & distortion , & sse , NULL , 0 , 0 ) ;\n x -> plane [ 0 ] . src = src ;\n xd -> plane [ 0 ] . pre [ 0 ] = pre ;\n return bestsme ;\n }"}
{"idx": 7096, "target": 0, "func": "void ff_h263_encode_mba ( MpegEncContext * s ) {\n int i , mb_pos ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( s -> mb_num - 1 <= ff_mba_max [ i ] ) break ;\n }\n mb_pos = s -> mb_x + s -> mb_width * s -> mb_y ;\n put_bits ( & s -> pb , ff_mba_length [ i ] , mb_pos ) ;\n }"}
{"idx": 7097, "target": 0, "func": "TEST_F ( HistoryQuickProviderTest , SingleMatchWithCursor ) {\n std : : vector < std : : string > expected_urls ;\n expected_urls . push_back ( \"http://slashdot.org/favorite_page.html\" ) ;\n RunTestWithCursor ( ASCIIToUTF16 ( \"slashfavorite_page.html\" ) , 5 , false , expected_urls , false , ASCIIToUTF16 ( \"slashdot.org/favorite_page.html\" ) , base : : string16 ( ) ) ;\n }"}
{"idx": 7098, "target": 0, "func": "static void srec_get_symbol_info ( bfd * ignore_abfd ATTRIBUTE_UNUSED , asymbol * symbol , symbol_info * ret ) {\n bfd_symbol_info ( symbol , ret ) ;\n }"}
{"idx": 7099, "target": 0, "func": "static int SDPcalls_packet ( void * ptr _U_ , packet_info * pinfo , epan_dissect_t * edt _U_ , const void * SDPinfo ) {\n voip_calls_tapinfo_t * tapinfo = & the_tapinfo_struct ;\n const sdp_packet_info * pi = ( const sdp_packet_info * ) SDPinfo ;\n g_free ( sdp_summary ) ;\n sdp_frame_num = pinfo -> fd -> num ;\n sdp_summary = g_strdup_printf ( \"SDP (%s)\" , pi -> summary_str ) ;\n append_to_frame_graph ( tapinfo , pinfo -> fd -> num , sdp_summary , NULL ) ;\n tapinfo -> redraw = TRUE ;\n return 1 ;\n }"}
{"idx": 7100, "target": 0, "func": "static int get_list_files ( DYNAMIC_STRING * ds , const DYNAMIC_STRING * ds_dirname , const DYNAMIC_STRING * ds_wild ) {\n uint i ;\n MY_DIR * dir_info ;\n FILEINFO * file ;\n DBUG_ENTER ( \"get_list_files\" ) ;\n DBUG_PRINT ( \"info\" , ( \"listing directory: %s\" , ds_dirname -> str ) ) ;\n if ( ! ( dir_info = my_dir ( ds_dirname -> str , MYF ( 0 ) ) ) ) DBUG_RETURN ( 1 ) ;\n set_wild_chars ( 1 ) ;\n for ( i = 0 ;\n i < ( uint ) dir_info -> number_off_files ;\n i ++ ) {\n file = dir_info -> dir_entry + i ;\n if ( file -> name [ 0 ] == '.' && ( file -> name [ 1 ] == '\\0' || ( file -> name [ 1 ] == '.' && file -> name [ 2 ] == '\\0' ) ) ) continue ;\n if ( ds_wild && ds_wild -> length && wild_compare ( file -> name , ds_wild -> str , 0 ) ) continue ;\n replace_dynstr_append ( ds , file -> name ) ;\n dynstr_append ( ds , \"\\n\" ) ;\n }\n set_wild_chars ( 0 ) ;\n my_dirend ( dir_info ) ;\n DBUG_RETURN ( 0 ) ;\n }"}
{"idx": 7101, "target": 0, "func": "int set_file_attrs ( const char * fname , struct file_struct * file , stat_x * sxp , const char * fnamecmp , int flags ) {\n int updated = 0 ;\n stat_x sx2 ;\n int change_uid , change_gid ;\n mode_t new_mode = file -> mode ;\n int inherit ;\n if ( ! sxp ) {\n if ( dry_run ) return 1 ;\n if ( link_stat ( fname , & sx2 . st , 0 ) < 0 ) {\n rsyserr ( FERROR_XFER , errno , \"stat %s failed\" , full_fname ( fname ) ) ;\n return 0 ;\n }\n init_stat_x ( & sx2 ) ;\n sxp = & sx2 ;\n inherit = ! preserve_perms ;\n }\n else inherit = ! preserve_perms && file -> flags & FLAG_DIR_CREATED ;\n if ( inherit && S_ISDIR ( new_mode ) && sxp -> st . st_mode & S_ISGID ) {\n new_mode |= S_ISGID ;\n }\n if ( daemon_chmod_modes && ! S_ISLNK ( new_mode ) ) new_mode = tweak_mode ( new_mode , daemon_chmod_modes ) ;\n # ifdef SUPPORT_ACLS if ( preserve_acls && ! S_ISLNK ( file -> mode ) && ! ACL_READY ( * sxp ) ) get_acl ( fname , sxp ) ;\n # endif change_uid = am_root && uid_ndx && sxp -> st . st_uid != ( uid_t ) F_OWNER ( file ) ;\n change_gid = gid_ndx && ! ( file -> flags & FLAG_SKIP_GROUP ) && sxp -> st . st_gid != ( gid_t ) F_GROUP ( file ) ;\n # ifndef CAN_CHOWN_SYMLINK if ( S_ISLNK ( sxp -> st . st_mode ) ) {\n ;\n }\n else # endif if ( change_uid || change_gid ) {\n if ( DEBUG_GTE ( OWN , 1 ) ) {\n if ( change_uid ) {\n rprintf ( FINFO , \"set uid of %s from %u to %u\\n\" , fname , ( unsigned ) sxp -> st . st_uid , F_OWNER ( file ) ) ;\n }\n if ( change_gid ) {\n rprintf ( FINFO , \"set gid of %s from %u to %u\\n\" , fname , ( unsigned ) sxp -> st . st_gid , F_GROUP ( file ) ) ;\n }\n }\n if ( am_root >= 0 ) {\n uid_t uid = change_uid ? ( uid_t ) F_OWNER ( file ) : sxp -> st . st_uid ;\n gid_t gid = change_gid ? ( gid_t ) F_GROUP ( file ) : sxp -> st . st_gid ;\n if ( do_lchown ( fname , uid , gid ) != 0 ) {\n rsyserr ( FERROR_XFER , errno , \"%s %s failed\" , change_uid ? \"chown\" : \"chgrp\" , full_fname ( fname ) ) ;\n goto cleanup ;\n }\n if ( uid == ( uid_t ) - 1 && sxp -> st . st_uid != ( uid_t ) - 1 ) rprintf ( FERROR_XFER , \"uid 4294967295 (-1) is impossible to set on %s\\n\" , full_fname ( fname ) ) ;\n if ( gid == ( gid_t ) - 1 && sxp -> st . st_gid != ( gid_t ) - 1 ) rprintf ( FERROR_XFER , \"gid 4294967295 (-1) is impossible to set on %s\\n\" , full_fname ( fname ) ) ;\n if ( sxp -> st . st_mode & ( S_ISUID | S_ISGID ) ) {\n link_stat ( fname , & sxp -> st , keep_dirlinks && S_ISDIR ( sxp -> st . st_mode ) ) ;\n }\n }\n updated = 1 ;\n }\n # ifdef SUPPORT_XATTRS if ( am_root < 0 ) set_stat_xattr ( fname , file , new_mode ) ;\n if ( preserve_xattrs && fnamecmp ) set_xattr ( fname , file , fnamecmp , sxp ) ;\n # endif if ( ! preserve_times || ( ! ( preserve_times & PRESERVE_DIR_TIMES ) && S_ISDIR ( sxp -> st . st_mode ) ) || ( ! ( preserve_times & PRESERVE_LINK_TIMES ) && S_ISLNK ( sxp -> st . st_mode ) ) ) flags |= ATTRS_SKIP_MTIME ;\n if ( ! ( flags & ATTRS_SKIP_MTIME ) && ( sxp -> st . st_mtime != file -> modtime # ifdef ST_MTIME_NSEC || ( NSEC_BUMP ( file ) && ( uint32 ) sxp -> st . ST_MTIME_NSEC != F_MOD_NSEC ( file ) ) # endif ) ) {\n int ret = set_modtime ( fname , file -> modtime , F_MOD_NSEC ( file ) , sxp -> st . st_mode ) ;\n if ( ret < 0 ) {\n rsyserr ( FERROR_XFER , errno , \"failed to set times on %s\" , full_fname ( fname ) ) ;\n goto cleanup ;\n }\n if ( ret == 0 ) updated = 1 ;\n else file -> flags |= FLAG_TIME_FAILED ;\n }\n # ifdef SUPPORT_ACLS if ( preserve_acls && ! S_ISLNK ( new_mode ) ) {\n if ( set_acl ( fname , file , sxp , new_mode ) > 0 ) updated = 1 ;\n }\n # endif # ifdef HAVE_CHMOD if ( ! BITS_EQUAL ( sxp -> st . st_mode , new_mode , CHMOD_BITS ) ) {\n int ret = am_root < 0 ? 0 : do_chmod ( fname , new_mode ) ;\n if ( ret < 0 ) {\n rsyserr ( FERROR_XFER , errno , \"failed to set permissions on %s\" , full_fname ( fname ) ) ;\n goto cleanup ;\n }\n if ( ret == 0 ) updated = 1 ;\n }\n # endif if ( INFO_GTE ( NAME , 2 ) && flags & ATTRS_REPORT ) {\n if ( updated ) rprintf ( FCLIENT , \"%s\\n\" , fname ) ;\n else rprintf ( FCLIENT , \"%s is uptodate\\n\" , fname ) ;\n }\n cleanup : if ( sxp == & sx2 ) free_stat_x ( & sx2 ) ;\n return updated ;\n }"}
{"idx": 7102, "target": 0, "func": "static void Type_LUT16_Free ( struct _cms_typehandler_struct * self , void * Ptr ) {\n cmsPipelineFree ( ( cmsPipeline * ) Ptr ) ;\n return ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 7103, "target": 0, "func": "static gint dissect_capabilities ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , gint offset , gint * codec , gint * content_protection_type , guint32 * vendor_id , guint16 * vendor_codec , guint32 * configuration_offset , guint8 * configuration_length ) {\n proto_item * pitem = NULL ;\n proto_item * ptree = NULL ;\n proto_tree * capabilities_tree ;\n proto_item * capabilities_item ;\n proto_tree * service_tree = NULL ;\n proto_item * service_item = NULL ;\n gint service_category = 0 ;\n gint losc = 0 ;\n gint recovery_type = 0 ;\n gint maximum_recovery_window_size = 0 ;\n gint maximum_number_of_media_packet_in_parity_code = 0 ;\n gint media_type = 0 ;\n gint media_codec_type = 0 ;\n capabilities_item = proto_tree_add_item ( tree , hf_btavdtp_capabilities , tvb , offset , tvb_reported_length ( tvb ) - offset , ENC_NA ) ;\n capabilities_tree = proto_item_add_subtree ( capabilities_item , ett_btavdtp_capabilities ) ;\n if ( codec ) * codec = - 1 ;\n if ( vendor_id ) * vendor_id = 0x003F ;\n if ( vendor_codec ) * vendor_codec = 0 ;\n if ( configuration_length ) * configuration_length = 0 ;\n if ( configuration_offset ) * configuration_offset = 0 ;\n while ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n service_category = tvb_get_guint8 ( tvb , offset ) ;\n losc = tvb_get_guint8 ( tvb , offset + 1 ) ;\n service_item = proto_tree_add_none_format ( capabilities_tree , hf_btavdtp_service , tvb , offset , 2 + losc , \"Service: %s\" , val_to_str_const ( service_category , service_category_vals , \"RFD\" ) ) ;\n service_tree = proto_item_add_subtree ( service_item , ett_btavdtp_service ) ;\n proto_tree_add_item ( service_tree , hf_btavdtp_service_category , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( service_tree , hf_btavdtp_length_of_service_category , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n switch ( service_category ) {\n case SERVICE_CATEGORY_MEDIA_TRANSPORT : case SERVICE_CATEGORY_REPORTING : case SERVICE_CATEGORY_DELAY_REPORTING : break ;\n case SERVICE_CATEGORY_RECOVERY : recovery_type = tvb_get_guint8 ( tvb , offset ) ;\n pitem = proto_tree_add_item ( service_tree , hf_btavdtp_recovery_type , tvb , offset , 1 , ENC_NA ) ;\n proto_item_append_text ( pitem , \" (%s)\" , val_to_str_const ( recovery_type , recovery_type_vals , \"RFD\" ) ) ;\n offset += 1 ;\n losc -= 1 ;\n maximum_recovery_window_size = tvb_get_guint8 ( tvb , offset ) ;\n pitem = proto_tree_add_item ( service_tree , hf_btavdtp_maximum_recovery_window_size , tvb , offset , 1 , ENC_NA ) ;\n if ( maximum_recovery_window_size == 0x00 ) {\n proto_item_append_text ( pitem , \" (Forbidden)\" ) ;\n }\n else if ( maximum_recovery_window_size >= 0x18 ) {\n proto_item_append_text ( pitem , \" (Undocumented)\" ) ;\n }\n offset += 1 ;\n losc -= 1 ;\n maximum_number_of_media_packet_in_parity_code = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( service_tree , hf_btavdtp_maximum_number_of_media_packet_in_parity_code , tvb , offset , 1 , ENC_NA ) ;\n pitem = proto_tree_add_item ( service_tree , hf_btavdtp_maximum_recovery_window_size , tvb , offset , 1 , ENC_NA ) ;\n if ( maximum_number_of_media_packet_in_parity_code == 0x00 ) {\n proto_item_append_text ( pitem , \" (Forbidden)\" ) ;\n }\n else if ( maximum_number_of_media_packet_in_parity_code >= 0x18 ) {\n proto_item_append_text ( pitem , \" (Undocumented)\" ) ;\n }\n offset += 1 ;\n losc -= 1 ;\n break ;\n case SERVICE_CATEGORY_MEDIA_CODEC : if ( configuration_length ) * configuration_length = losc ;\n if ( configuration_offset ) * configuration_offset = offset ;\n media_type = tvb_get_guint8 ( tvb , offset ) >> 4 ;\n proto_tree_add_item ( service_tree , hf_btavdtp_media_codec_media_type , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( service_tree , hf_btavdtp_media_codec_rfa , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n losc -= 1 ;\n media_codec_type = tvb_get_guint8 ( tvb , offset ) ;\n if ( codec ) {\n * codec = media_codec_type ;\n }\n if ( media_type == MEDIA_TYPE_AUDIO ) {\n proto_tree_add_item ( service_tree , hf_btavdtp_media_codec_audio_type , tvb , offset , 1 , ENC_NA ) ;\n proto_item_append_text ( service_item , \" - Audio %s\" , val_to_str_const ( media_codec_type , media_codec_audio_type_vals , \"unknown codec\" ) ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" - Audio %s\" , val_to_str_const ( media_codec_type , media_codec_audio_type_vals , \"unknown codec\" ) ) ;\n }\n else if ( media_type == MEDIA_TYPE_VIDEO ) {\n proto_tree_add_item ( service_tree , hf_btavdtp_media_codec_video_type , tvb , offset , 1 , ENC_NA ) ;\n proto_item_append_text ( service_item , \" - Video %s\" , val_to_str_const ( media_codec_type , media_codec_video_type_vals , \"unknown codec\" ) ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" - Video %s\" , val_to_str_const ( media_codec_type , media_codec_video_type_vals , \"unknown codec\" ) ) ;\n }\n else {\n proto_tree_add_item ( service_tree , hf_btavdtp_media_codec_unknown_type , tvb , offset , 1 , ENC_NA ) ;\n proto_item_append_text ( service_item , \" - Unknown 0x%02x\" , media_codec_type ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" - Unknown 0x%02x\" , media_codec_type ) ;\n }\n offset += 1 ;\n losc -= 1 ;\n offset = dissect_codec ( tvb , pinfo , service_item , service_tree , offset , losc , media_type , media_codec_type , vendor_id , vendor_codec ) ;\n losc = 0 ;\n break ;\n case SERVICE_CATEGORY_CONTENT_PROTECTION : proto_tree_add_item ( service_tree , hf_btavdtp_content_protection_type , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n if ( content_protection_type ) {\n * content_protection_type = tvb_get_letohs ( tvb , offset ) ;\n }\n proto_item_append_text ( service_item , \" - %s\" , val_to_str_const ( tvb_get_letohs ( tvb , offset ) , content_protection_type_vals , \"unknown\" ) ) ;\n offset += 2 ;\n losc -= 2 ;\n if ( losc > 0 ) {\n proto_tree_add_item ( service_tree , hf_btavdtp_data , tvb , offset , losc , ENC_NA ) ;\n offset += losc ;\n losc = 0 ;\n }\n break ;\n case SERVICE_CATEGORY_HEADER_COMPRESSION : proto_tree_add_item ( service_tree , hf_btavdtp_header_compression_backch , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( service_tree , hf_btavdtp_header_compression_media , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( service_tree , hf_btavdtp_header_compression_recovery , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( service_tree , hf_btavdtp_header_compression_rfa , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n losc -= 1 ;\n break ;\n case SERVICE_CATEGORY_MULTIPLEXING : proto_tree_add_item ( service_tree , hf_btavdtp_multiplexing_fragmentation , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( service_tree , hf_btavdtp_multiplexing_rfa , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n losc -= 1 ;\n if ( losc >= 2 ) {\n pitem = proto_tree_add_none_format ( service_tree , hf_btavdtp_service_multiplexing_entry , tvb , offset , 1 + losc , \"Entry: Media Transport Session\" ) ;\n ptree = proto_item_add_subtree ( pitem , ett_btavdtp_service ) ;\n proto_tree_add_item ( ptree , hf_btavdtp_multiplexing_tsid , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( ptree , hf_btavdtp_multiplexing_entry_rfa , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n losc -= 1 ;\n proto_tree_add_item ( ptree , hf_btavdtp_multiplexing_tcid , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( ptree , hf_btavdtp_multiplexing_entry_rfa , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n losc -= 1 ;\n }\n if ( losc >= 2 ) {\n pitem = proto_tree_add_none_format ( service_tree , hf_btavdtp_service_multiplexing_entry , tvb , offset , 1 + losc , \"Entry: Reporting Transport Session\" ) ;\n ptree = proto_item_add_subtree ( pitem , ett_btavdtp_service ) ;\n proto_tree_add_item ( ptree , hf_btavdtp_multiplexing_tsid , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( ptree , hf_btavdtp_multiplexing_entry_rfa , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n losc -= 1 ;\n proto_tree_add_item ( ptree , hf_btavdtp_multiplexing_tcid , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( ptree , hf_btavdtp_multiplexing_entry_rfa , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n losc -= 1 ;\n }\n if ( losc >= 2 ) {\n pitem = proto_tree_add_none_format ( service_tree , hf_btavdtp_service_multiplexing_entry , tvb , offset , 1 + losc , \"Entry: Recovery Transport Session\" ) ;\n ptree = proto_item_add_subtree ( pitem , ett_btavdtp_service ) ;\n proto_tree_add_item ( ptree , hf_btavdtp_multiplexing_tsid , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( ptree , hf_btavdtp_multiplexing_entry_rfa , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n losc -= 1 ;\n proto_tree_add_item ( ptree , hf_btavdtp_multiplexing_tcid , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( ptree , hf_btavdtp_multiplexing_entry_rfa , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n losc -= 1 ;\n }\n break ;\n default : proto_tree_add_item ( service_tree , hf_btavdtp_data , tvb , offset , losc , ENC_NA ) ;\n offset += losc ;\n losc = 0 ;\n }\n if ( losc > 0 ) {\n pitem = proto_tree_add_item ( service_tree , hf_btavdtp_data , tvb , offset , losc , ENC_NA ) ;\n offset += losc ;\n expert_add_info ( pinfo , pitem , & ei_btavdtp_unexpected_losc_data ) ;\n }\n }\n return offset ;\n }"}
{"idx": 7104, "target": 0, "func": "static int commit_bitstream_and_slice_buffer ( AVCodecContext * avctx , DXVA2_DecodeBufferDesc * bs , DXVA2_DecodeBufferDesc * sc ) {\n const H264Context * h = avctx -> priv_data ;\n const unsigned mb_count = h -> mb_width * h -> mb_height ;\n struct dxva_context * ctx = avctx -> hwaccel_context ;\n const Picture * current_picture = h -> cur_pic_ptr ;\n struct dxva2_picture_context * ctx_pic = current_picture -> hwaccel_picture_private ;\n DXVA_Slice_H264_Short * slice = NULL ;\n uint8_t * dxva_data , * current , * end ;\n unsigned dxva_size ;\n void * slice_data ;\n unsigned slice_size ;\n unsigned padding ;\n unsigned i ;\n if ( FAILED ( IDirectXVideoDecoder_GetBuffer ( ctx -> decoder , DXVA2_BitStreamDateBufferType , & dxva_data , & dxva_size ) ) ) return - 1 ;\n current = dxva_data ;\n end = dxva_data + dxva_size ;\n for ( i = 0 ;\n i < ctx_pic -> slice_count ;\n i ++ ) {\n static const uint8_t start_code [ ] = {\n 0 , 0 , 1 }\n ;\n static const unsigned start_code_size = sizeof ( start_code ) ;\n unsigned position , size ;\n assert ( offsetof ( DXVA_Slice_H264_Short , BSNALunitDataLocation ) == offsetof ( DXVA_Slice_H264_Long , BSNALunitDataLocation ) ) ;\n assert ( offsetof ( DXVA_Slice_H264_Short , SliceBytesInBuffer ) == offsetof ( DXVA_Slice_H264_Long , SliceBytesInBuffer ) ) ;\n if ( is_slice_short ( ctx ) ) slice = & ctx_pic -> slice_short [ i ] ;\n else slice = ( DXVA_Slice_H264_Short * ) & ctx_pic -> slice_long [ i ] ;\n position = slice -> BSNALunitDataLocation ;\n size = slice -> SliceBytesInBuffer ;\n if ( start_code_size + size > end - current ) {\n av_log ( avctx , AV_LOG_ERROR , \"Failed to build bitstream\" ) ;\n break ;\n }\n slice -> BSNALunitDataLocation = current - dxva_data ;\n slice -> SliceBytesInBuffer = start_code_size + size ;\n if ( ! is_slice_short ( ctx ) ) {\n DXVA_Slice_H264_Long * slice_long = ( DXVA_Slice_H264_Long * ) slice ;\n if ( i < ctx_pic -> slice_count - 1 ) slice_long -> NumMbsForSlice = slice_long [ 1 ] . first_mb_in_slice - slice_long [ 0 ] . first_mb_in_slice ;\n else slice_long -> NumMbsForSlice = mb_count - slice_long -> first_mb_in_slice ;\n }\n memcpy ( current , start_code , start_code_size ) ;\n current += start_code_size ;\n memcpy ( current , & ctx_pic -> bitstream [ position ] , size ) ;\n current += size ;\n }\n padding = FFMIN ( 128 - ( ( current - dxva_data ) & 127 ) , end - current ) ;\n if ( slice && padding > 0 ) {\n memset ( current , 0 , padding ) ;\n current += padding ;\n slice -> SliceBytesInBuffer += padding ;\n }\n if ( FAILED ( IDirectXVideoDecoder_ReleaseBuffer ( ctx -> decoder , DXVA2_BitStreamDateBufferType ) ) ) return - 1 ;\n if ( i < ctx_pic -> slice_count ) return - 1 ;\n memset ( bs , 0 , sizeof ( * bs ) ) ;\n bs -> CompressedBufferType = DXVA2_BitStreamDateBufferType ;\n bs -> DataSize = current - dxva_data ;\n bs -> NumMBsInBuffer = mb_count ;\n if ( is_slice_short ( ctx ) ) {\n slice_data = ctx_pic -> slice_short ;\n slice_size = ctx_pic -> slice_count * sizeof ( * ctx_pic -> slice_short ) ;\n }\n else {\n slice_data = ctx_pic -> slice_long ;\n slice_size = ctx_pic -> slice_count * sizeof ( * ctx_pic -> slice_long ) ;\n }\n assert ( ( bs -> DataSize & 127 ) == 0 ) ;\n return ff_dxva2_commit_buffer ( avctx , ctx , sc , DXVA2_SliceControlBufferType , slice_data , slice_size , mb_count ) ;\n }"}
{"idx": 7105, "target": 0, "func": "hb_bool_t hb_font_funcs_is_immutable ( hb_font_funcs_t * ffuncs ) {\n return ffuncs -> immutable ;\n }"}
{"idx": 7106, "target": 0, "func": "static int dissect_h225_TunnelledProtocolAlternateIdentifier ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_TunnelledProtocolAlternateIdentifier , TunnelledProtocolAlternateIdentifier_sequence ) ;\n return offset ;\n }"}
{"idx": 7107, "target": 0, "func": "TEST ( DownloadInterruptReasonEnumsSynced , DownloadInterruptReasonEnumsSynced ) {\n # define INTERRUPT_REASON ( name , value ) EXPECT_EQ ( InterruptReasonContentToExtension ( download : : DOWNLOAD_INTERRUPT_REASON_ ## name ) , downloads : : INTERRUPT_REASON_ ## name ) ;\n EXPECT_EQ ( InterruptReasonExtensionToComponent ( downloads : : INTERRUPT_REASON_ ## name ) , download : : DOWNLOAD_INTERRUPT_REASON_ ## name ) ;\n # include \"components/download/public/common/download_interrupt_reason_values.h\" # undef INTERRUPT_REASON }"}
{"idx": 7108, "target": 0, "func": "static char * get_data ( char * buf , int len ) {\n char * data ;\n int pos = 0 ;\n while ( pos < len && buf [ pos ] != '{\n' ) pos ++ ;\n if ( pos == len ) {\n return NULL ;\n }\n data = buf + pos - 1 ;\n return data ;\n }"}
{"idx": 7109, "target": 1, "func": "static void write_modes_b ( VP9_COMP * cpi , const TileInfo * const tile , vp9_writer * w , TOKENEXTRA * * tok , const TOKENEXTRA * const tok_end , int mi_row , int mi_col ) {\n const VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCKD * const xd = & cpi -> mb . e_mbd ;\n MODE_INFO * m ;\n xd -> mi = cm -> mi_grid_visible + ( mi_row * cm -> mi_stride + mi_col ) ;\n m = xd -> mi [ 0 ] ;\n set_mi_row_col ( xd , tile , mi_row , num_8x8_blocks_high_lookup [ m -> mbmi . sb_type ] , mi_col , num_8x8_blocks_wide_lookup [ m -> mbmi . sb_type ] , cm -> mi_rows , cm -> mi_cols ) ;\n if ( frame_is_intra_only ( cm ) ) {\n write_mb_modes_kf ( cm , xd , xd -> mi , w ) ;\n }\n else {\n pack_inter_mode_mvs ( cpi , m , w ) ;\n }\n assert ( * tok < tok_end ) ;\n pack_mb_tokens ( w , tok , tok_end ) ;\n }"}
{"idx": 7110, "target": 0, "func": "void fz_set_default_cmyk ( fz_context * ctx , fz_default_colorspaces * default_cs , fz_colorspace * cs ) {\n if ( cs -> n == 4 ) {\n fz_drop_colorspace ( ctx , default_cs -> cmyk ) ;\n default_cs -> cmyk = fz_keep_colorspace ( ctx , cs ) ;\n }\n }"}
{"idx": 7111, "target": 0, "func": "int fourcc_is_ivf ( const char detect [ 4 ] ) {\n if ( memcmp ( detect , \"DKIF\" , 4 ) == 0 ) {\n return 1 ;\n }\n return 0 ;\n }"}
{"idx": 7112, "target": 0, "func": "static void cng_decode_flush ( AVCodecContext * avctx ) {\n CNGContext * p = avctx -> priv_data ;\n p -> inited = 0 ;\n }"}
{"idx": 7113, "target": 0, "func": "int mysql_store_result_for_lazy ( MYSQL_RES * * result ) {\n if ( ( * result = mysql_store_result ( & mysql ) ) ) return 0 ;\n if ( mysql_error ( & mysql ) [ 0 ] ) return put_error ( & mysql ) ;\n return 0 ;\n }"}
{"idx": 7114, "target": 0, "func": "static bool Curl_isunreserved ( unsigned char in ) {\n switch ( in ) {\n case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : case 'a' : case 'b' : case 'c' : case 'd' : case 'e' : case 'f' : case 'g' : case 'h' : case 'i' : case 'j' : case 'k' : case 'l' : case 'm' : case 'n' : case 'o' : case 'p' : case 'q' : case 'r' : case 's' : case 't' : case 'u' : case 'v' : case 'w' : case 'x' : case 'y' : case 'z' : case 'A' : case 'B' : case 'C' : case 'D' : case 'E' : case 'F' : case 'G' : case 'H' : case 'I' : case 'J' : case 'K' : case 'L' : case 'M' : case 'N' : case 'O' : case 'P' : case 'Q' : case 'R' : case 'S' : case 'T' : case 'U' : case 'V' : case 'W' : case 'X' : case 'Y' : case 'Z' : case '-' : case '.' : case '_' : case '~' : return TRUE ;\n default : break ;\n }\n return FALSE ;\n }"}
{"idx": 7115, "target": 0, "func": "static int isoent_gen_joliet_identifier ( struct archive_write * a , struct isoent * isoent , struct idr * idr ) {\n struct iso9660 * iso9660 ;\n struct isoent * np ;\n unsigned char * p ;\n size_t l ;\n int r ;\n size_t ffmax , parent_len ;\n static const struct archive_rb_tree_ops rb_ops = {\n isoent_cmp_node_joliet , isoent_cmp_key_joliet }\n ;\n if ( isoent -> children . cnt == 0 ) return ( 0 ) ;\n iso9660 = a -> format_data ;\n if ( iso9660 -> opt . joliet == OPT_JOLIET_LONGNAME ) ffmax = 206 ;\n else ffmax = 128 ;\n r = idr_start ( a , idr , isoent -> children . cnt , ( int ) ffmax , 6 , 2 , & rb_ops ) ;\n if ( r < 0 ) return ( r ) ;\n parent_len = 1 ;\n for ( np = isoent ;\n np -> parent != np ;\n np = np -> parent ) parent_len += np -> mb_len + 1 ;\n for ( np = isoent -> children . first ;\n np != NULL ;\n np = np -> chnext ) {\n unsigned char * dot ;\n int ext_off , noff , weight ;\n size_t lt ;\n if ( ( l = np -> file -> basename_utf16 . length ) > ffmax ) l = ffmax ;\n p = malloc ( ( l + 1 ) * 2 ) ;\n if ( p == NULL ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate memory\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n memcpy ( p , np -> file -> basename_utf16 . s , l ) ;\n p [ l ] = 0 ;\n p [ l + 1 ] = 0 ;\n np -> identifier = ( char * ) p ;\n lt = l ;\n dot = p + l ;\n weight = 0 ;\n while ( lt > 0 ) {\n if ( ! joliet_allowed_char ( p [ 0 ] , p [ 1 ] ) ) archive_be16enc ( p , 0x005F ) ;\n else if ( p [ 0 ] == 0 && p [ 1 ] == 0x2E ) dot = p ;\n p += 2 ;\n lt -= 2 ;\n }\n ext_off = ( int ) ( dot - ( unsigned char * ) np -> identifier ) ;\n np -> ext_off = ext_off ;\n np -> ext_len = ( int ) l - ext_off ;\n np -> id_len = ( int ) l ;\n if ( np -> file -> basename_utf16 . length > ffmax ) {\n if ( archive_strncpy_l ( & iso9660 -> mbs , ( const char * ) np -> identifier , l , iso9660 -> sconv_from_utf16be ) != 0 && errno == ENOMEM ) {\n archive_set_error ( & a -> archive , errno , \"No memory\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n np -> mb_len = ( int ) iso9660 -> mbs . length ;\n if ( np -> mb_len != ( int ) np -> file -> basename . length ) weight = np -> mb_len ;\n }\n else np -> mb_len = ( int ) np -> file -> basename . length ;\n if ( parent_len > 240 || np -> mb_len > 240 || parent_len + np -> mb_len > 240 ) {\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"The regulation of Joliet extensions;\n\" \" A length of a full-pathname of `%s' is \" \"longer than 240 bytes, (p=%d, b=%d)\" , archive_entry_pathname ( np -> file -> entry ) , ( int ) parent_len , ( int ) np -> mb_len ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n if ( l == ffmax ) noff = ext_off - 6 ;\n else if ( l == ffmax - 2 ) noff = ext_off - 4 ;\n else if ( l == ffmax - 4 ) noff = ext_off - 2 ;\n else noff = ext_off ;\n idr_register ( idr , np , weight , noff ) ;\n }\n idr_resolve ( idr , idr_set_num_beutf16 ) ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 7116, "target": 0, "func": "OM_uint32 kg_set_ccache_name ( OM_uint32 * minor_status , const char * name ) {\n char * new_name = NULL ;\n char * swap = NULL ;\n char * kg_ccache_name ;\n krb5_error_code kerr ;\n if ( name ) {\n new_name = strdup ( name ) ;\n if ( new_name == NULL ) {\n * minor_status = ENOMEM ;\n return GSS_S_FAILURE ;\n }\n }\n kg_ccache_name = k5_getspecific ( K5_KEY_GSS_KRB5_CCACHE_NAME ) ;\n swap = kg_ccache_name ;\n kg_ccache_name = new_name ;\n new_name = swap ;\n kerr = k5_setspecific ( K5_KEY_GSS_KRB5_CCACHE_NAME , kg_ccache_name ) ;\n if ( kerr != 0 ) {\n free ( kg_ccache_name ) ;\n * minor_status = kerr ;\n return GSS_S_FAILURE ;\n }\n free ( new_name ) ;\n * minor_status = 0 ;\n return GSS_S_COMPLETE ;\n }"}
{"idx": 7117, "target": 0, "func": "void bitmap_writer_select_commits ( struct commit * * indexed_commits , unsigned int indexed_commits_nr , int max_bitmaps ) {\n unsigned int i = 0 , j , next ;\n qsort ( indexed_commits , indexed_commits_nr , sizeof ( indexed_commits [ 0 ] ) , date_compare ) ;\n if ( writer . show_progress ) writer . progress = start_progress ( \"Selecting bitmap commits\" , 0 ) ;\n if ( indexed_commits_nr < 100 ) {\n for ( i = 0 ;\n i < indexed_commits_nr ;\n ++ i ) push_bitmapped_commit ( indexed_commits [ i ] , NULL ) ;\n return ;\n }\n for ( ;\n ;\n ) {\n struct ewah_bitmap * reused_bitmap = NULL ;\n struct commit * chosen = NULL ;\n next = next_commit_index ( i ) ;\n if ( i + next >= indexed_commits_nr ) break ;\n if ( max_bitmaps > 0 && writer . selected_nr >= max_bitmaps ) {\n writer . selected_nr = max_bitmaps ;\n break ;\n }\n if ( next == 0 ) {\n chosen = indexed_commits [ i ] ;\n reused_bitmap = find_reused_bitmap ( chosen -> object . oid . hash ) ;\n }\n else {\n chosen = indexed_commits [ i + next ] ;\n for ( j = 0 ;\n j <= next ;\n ++ j ) {\n struct commit * cm = indexed_commits [ i + j ] ;\n reused_bitmap = find_reused_bitmap ( cm -> object . oid . hash ) ;\n if ( reused_bitmap || ( cm -> object . flags & NEEDS_BITMAP ) != 0 ) {\n chosen = cm ;\n break ;\n }\n if ( cm -> parents && cm -> parents -> next ) chosen = cm ;\n }\n }\n push_bitmapped_commit ( chosen , reused_bitmap ) ;\n i += next + 1 ;\n display_progress ( writer . progress , i ) ;\n }\n stop_progress ( & writer . progress ) ;\n }"}
{"idx": 7118, "target": 0, "func": "static int SpoolssSetForm_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n char * name = NULL ;\n guint32 level ;\n proto_item * hidden_item ;\n hidden_item = proto_tree_add_uint ( tree , hf_form , tvb , offset , 0 , 1 ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , NULL , NULL , FALSE , FALSE ) ;\n offset = dissect_ndr_cvstring ( tvb , offset , pinfo , tree , di , drep , sizeof ( guint16 ) , hf_form_name , TRUE , & name ) ;\n if ( name ) col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , name ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_form_level , & level ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", level %d\" , level ) ;\n offset = dissect_FORM_CTR ( tvb , offset , pinfo , tree , di , drep ) ;\n return offset ;\n }"}
{"idx": 7119, "target": 0, "func": "static int main_atoux ( const char * arg , xoff_t * xo , xoff_t low , xoff_t high , char which ) {\n xoff_t x ;\n int ret ;\n if ( ( ret = main_strtoxoff ( arg , & x , which ) ) ) {\n return ret ;\n }\n if ( x < low ) {\n XPR ( NT \"-%c: minimum value: %\" Q \"u\\n\" , which , low ) ;\n return EXIT_FAILURE ;\n }\n if ( high != 0 && x > high ) {\n XPR ( NT \"-%c: maximum value: %\" Q \"u\\n\" , which , high ) ;\n return EXIT_FAILURE ;\n }\n ( * xo ) = x ;\n return 0 ;\n }"}
{"idx": 7120, "target": 0, "func": "static int selinux_syslog ( int type ) {\n int rc ;\n switch ( type ) {\n case SYSLOG_ACTION_READ_ALL : case SYSLOG_ACTION_SIZE_BUFFER : rc = task_has_system ( current , SYSTEM__SYSLOG_READ ) ;\n break ;\n case SYSLOG_ACTION_CONSOLE_OFF : case SYSLOG_ACTION_CONSOLE_ON : case SYSLOG_ACTION_CONSOLE_LEVEL : rc = task_has_system ( current , SYSTEM__SYSLOG_CONSOLE ) ;\n break ;\n case SYSLOG_ACTION_CLOSE : case SYSLOG_ACTION_OPEN : case SYSLOG_ACTION_READ : case SYSLOG_ACTION_READ_CLEAR : case SYSLOG_ACTION_CLEAR : default : rc = task_has_system ( current , SYSTEM__SYSLOG_MOD ) ;\n break ;\n }\n return rc ;\n }"}
{"idx": 7121, "target": 0, "func": "static int user_cert_trusted_ca ( struct ssh * ssh , struct passwd * pw , struct sshkey * key , struct sshauthopt * * authoptsp ) {\n char * ca_fp , * principals_file = NULL ;\n const char * reason ;\n struct sshauthopt * principals_opts = NULL , * cert_opts = NULL ;\n struct sshauthopt * final_opts = NULL ;\n int r , ret = 0 , found_principal = 0 , use_authorized_principals ;\n if ( authoptsp != NULL ) * authoptsp = NULL ;\n if ( ! sshkey_is_cert ( key ) || options . trusted_user_ca_keys == NULL ) return 0 ;\n if ( ( ca_fp = sshkey_fingerprint ( key -> cert -> signature_key , options . fingerprint_hash , SSH_FP_DEFAULT ) ) == NULL ) return 0 ;\n if ( ( r = sshkey_in_file ( key -> cert -> signature_key , options . trusted_user_ca_keys , 1 , 0 ) ) != 0 ) {\n debug2 ( \"%s: CA %s %s is not listed in %s: %s\" , __func__ , sshkey_type ( key -> cert -> signature_key ) , ca_fp , options . trusted_user_ca_keys , ssh_err ( r ) ) ;\n goto out ;\n }\n if ( ( principals_file = authorized_principals_file ( pw ) ) != NULL ) {\n if ( match_principals_file ( ssh , pw , principals_file , key -> cert , & principals_opts ) ) found_principal = 1 ;\n }\n if ( ! found_principal && match_principals_command ( ssh , pw , key , & principals_opts ) ) found_principal = 1 ;\n use_authorized_principals = principals_file != NULL || options . authorized_principals_command != NULL ;\n if ( ! found_principal && use_authorized_principals ) {\n reason = \"Certificate does not contain an authorized principal\" ;\n goto fail_reason ;\n }\n if ( use_authorized_principals && principals_opts == NULL ) fatal ( \"%s: internal error: missing principals_opts\" , __func__ ) ;\n if ( sshkey_cert_check_authority ( key , 0 , 1 , use_authorized_principals ? NULL : pw -> pw_name , & reason ) != 0 ) goto fail_reason ;\n if ( ( cert_opts = sshauthopt_from_cert ( key ) ) == NULL ) {\n reason = \"Invalid certificate options\" ;\n goto fail_reason ;\n }\n if ( auth_authorise_keyopts ( ssh , pw , cert_opts , 0 , \"cert\" ) != 0 ) {\n reason = \"Refused by certificate options\" ;\n goto fail_reason ;\n }\n if ( principals_opts == NULL ) {\n final_opts = cert_opts ;\n cert_opts = NULL ;\n }\n else {\n if ( auth_authorise_keyopts ( ssh , pw , principals_opts , 0 , \"principals\" ) != 0 ) {\n reason = \"Refused by certificate principals options\" ;\n goto fail_reason ;\n }\n if ( ( final_opts = sshauthopt_merge ( principals_opts , cert_opts , & reason ) ) == NULL ) {\n fail_reason : error ( \"%s\" , reason ) ;\n auth_debug_add ( \"%s\" , reason ) ;\n goto out ;\n }\n }\n verbose ( \"Accepted certificate ID \\\"%s\\\" (serial %llu) signed by \" \"%s CA %s via %s\" , key -> cert -> key_id , ( unsigned long long ) key -> cert -> serial , sshkey_type ( key -> cert -> signature_key ) , ca_fp , options . trusted_user_ca_keys ) ;\n if ( authoptsp != NULL ) {\n * authoptsp = final_opts ;\n final_opts = NULL ;\n }\n ret = 1 ;\n out : sshauthopt_free ( principals_opts ) ;\n sshauthopt_free ( cert_opts ) ;\n sshauthopt_free ( final_opts ) ;\n free ( principals_file ) ;\n free ( ca_fp ) ;\n return ret ;\n }"}
{"idx": 7122, "target": 1, "func": "static ossl_inline void lh_ ## type ## _stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING )"}
{"idx": 7123, "target": 0, "func": "static void decode_ac_filter ( WmallDecodeCtx * s ) {\n int i ;\n s -> acfilter_order = get_bits ( & s -> gb , 4 ) + 1 ;\n s -> acfilter_scaling = get_bits ( & s -> gb , 4 ) ;\n for ( i = 0 ;\n i < s -> acfilter_order ;\n i ++ ) s -> acfilter_coeffs [ i ] = ( s -> acfilter_scaling ? get_bits ( & s -> gb , s -> acfilter_scaling ) : 0 ) + 1 ;\n }"}
{"idx": 7124, "target": 0, "func": "int ff_h264_decode_ref_pic_marking ( H264Context * h , GetBitContext * gb , int first_slice ) {\n int i , ret ;\n MMCO mmco_temp [ MAX_MMCO_COUNT ] , * mmco = first_slice ? h -> mmco : mmco_temp ;\n int mmco_index = 0 ;\n if ( h -> nal_unit_type == NAL_IDR_SLICE ) {\n skip_bits1 ( gb ) ;\n if ( get_bits1 ( gb ) ) {\n mmco [ 0 ] . opcode = MMCO_LONG ;\n mmco [ 0 ] . long_arg = 0 ;\n mmco_index = 1 ;\n }\n }\n else {\n if ( get_bits1 ( gb ) ) {\n for ( i = 0 ;\n i < MAX_MMCO_COUNT ;\n i ++ ) {\n MMCOOpcode opcode = get_ue_golomb_31 ( gb ) ;\n mmco [ i ] . opcode = opcode ;\n if ( opcode == MMCO_SHORT2UNUSED || opcode == MMCO_SHORT2LONG ) {\n mmco [ i ] . short_pic_num = ( h -> curr_pic_num - get_ue_golomb ( gb ) - 1 ) & ( h -> max_pic_num - 1 ) ;\n # if 0 if ( mmco [ i ] . short_pic_num >= h -> short_ref_count || h -> short_ref [ mmco [ i ] . short_pic_num ] == NULL ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"illegal short ref in memory management control \" \"operation %d\\n\" , mmco ) ;\n return - 1 ;\n }\n # endif }\n if ( opcode == MMCO_SHORT2LONG || opcode == MMCO_LONG2UNUSED || opcode == MMCO_LONG || opcode == MMCO_SET_MAX_LONG ) {\n unsigned int long_arg = get_ue_golomb_31 ( gb ) ;\n if ( long_arg >= 32 || ( long_arg >= 16 && ! ( opcode == MMCO_SET_MAX_LONG && long_arg == 16 ) && ! ( opcode == MMCO_LONG2UNUSED && FIELD_PICTURE ) ) ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"illegal long ref in memory management control \" \"operation %d\\n\" , opcode ) ;\n return - 1 ;\n }\n mmco [ i ] . long_arg = long_arg ;\n }\n if ( opcode > ( unsigned ) MMCO_LONG ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"illegal memory management control operation %d\\n\" , opcode ) ;\n return - 1 ;\n }\n if ( opcode == MMCO_END ) break ;\n }\n mmco_index = i ;\n }\n else {\n if ( first_slice ) {\n ret = ff_generate_sliding_window_mmcos ( h , first_slice ) ;\n if ( ret < 0 && h -> avctx -> err_recognition & AV_EF_EXPLODE ) return ret ;\n }\n mmco_index = - 1 ;\n }\n }\n if ( first_slice && mmco_index != - 1 ) {\n h -> mmco_index = mmco_index ;\n }\n else if ( ! first_slice && mmco_index >= 0 && ( mmco_index != h -> mmco_index || ( i = check_opcodes ( h -> mmco , mmco_temp , mmco_index ) ) ) ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"Inconsistent MMCO state between slices [%d, %d, %d]\\n\" , mmco_index , h -> mmco_index , i ) ;\n return AVERROR_INVALIDDATA ;\n }\n return 0 ;\n }"}
{"idx": 7125, "target": 0, "func": "TSReturnCode TSHttpTxnClientPacketDscpSet ( TSHttpTxn txnp , int dscp ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n if ( nullptr == sm -> ua_session ) {\n return TS_ERROR ;\n }\n NetVConnection * vc = sm -> ua_session -> get_netvc ( ) ;\n if ( nullptr == vc ) {\n return TS_ERROR ;\n }\n vc -> options . packet_tos = ( uint32_t ) dscp << 2 ;\n vc -> apply_options ( ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 7126, "target": 0, "func": "int libevt_record_values_free ( libevt_record_values_t * * record_values , libcerror_error_t * * error ) {\n static char * function = \"libevt_record_values_free\" ;\n int result = 1 ;\n if ( record_values == NULL ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_ARGUMENTS , LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE , \"%s: invalid record values.\" , function ) ;\n return ( - 1 ) ;\n }\n if ( * record_values != NULL ) {\n if ( ( * record_values ) -> source_name != NULL ) {\n if ( libfvalue_value_free ( & ( ( * record_values ) -> source_name ) , error ) != 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED , \"%s: unable to free source name value.\" , function ) ;\n result = - 1 ;\n }\n }\n if ( ( * record_values ) -> computer_name != NULL ) {\n if ( libfvalue_value_free ( & ( ( * record_values ) -> computer_name ) , error ) != 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED , \"%s: unable to free computer name value.\" , function ) ;\n result = - 1 ;\n }\n }\n if ( ( * record_values ) -> user_security_identifier != NULL ) {\n if ( libfvalue_value_free ( & ( ( * record_values ) -> user_security_identifier ) , error ) != 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED , \"%s: unable to free user security identifier (SID).\" , function ) ;\n result = - 1 ;\n }\n }\n if ( ( * record_values ) -> strings != NULL ) {\n if ( libfvalue_value_free ( & ( ( * record_values ) -> strings ) , error ) != 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED , \"%s: unable to free strings.\" , function ) ;\n result = - 1 ;\n }\n }\n if ( ( * record_values ) -> data != NULL ) {\n if ( libfvalue_value_free ( & ( ( * record_values ) -> data ) , error ) != 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED , \"%s: unable to free data.\" , function ) ;\n result = - 1 ;\n }\n }\n memory_free ( * record_values ) ;\n * record_values = NULL ;\n }\n return ( result ) ;\n }"}
{"idx": 7127, "target": 0, "func": "int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ )"}
{"idx": 7128, "target": 0, "func": "static int calc_iframe_target_size_one_pass_cbr ( const VP9_COMP * cpi ) {\n const RATE_CONTROL * rc = & cpi -> rc ;\n const VP9EncoderConfig * oxcf = & cpi -> oxcf ;\n const SVC * const svc = & cpi -> svc ;\n int target ;\n if ( cpi -> common . current_video_frame == 0 ) {\n target = ( ( rc -> starting_buffer_level / 2 ) > INT_MAX ) ? INT_MAX : ( int ) ( rc -> starting_buffer_level / 2 ) ;\n }\n else {\n int kf_boost = 32 ;\n double framerate = cpi -> framerate ;\n if ( svc -> number_temporal_layers > 1 && oxcf -> rc_mode == VPX_CBR ) {\n const LAYER_CONTEXT * lc = & svc -> layer_context [ svc -> temporal_layer_id ] ;\n framerate = lc -> framerate ;\n }\n kf_boost = MAX ( kf_boost , ( int ) ( 2 * framerate - 16 ) ) ;\n if ( rc -> frames_since_key < framerate / 2 ) {\n kf_boost = ( int ) ( kf_boost * rc -> frames_since_key / ( framerate / 2 ) ) ;\n }\n target = ( ( 16 + kf_boost ) * rc -> avg_frame_bandwidth ) >> 4 ;\n }\n return vp9_rc_clamp_iframe_target_size ( cpi , target ) ;\n }"}
{"idx": 7129, "target": 1, "func": "static Image * ReadARTImage ( const ImageInfo * image_info , ExceptionInfo * exception ) {\n const unsigned char * pixels ;\n Image * image ;\n QuantumInfo * quantum_info ;\n QuantumType quantum_type ;\n MagickBooleanType status ;\n size_t length ;\n ssize_t count , y ;\n assert ( image_info != ( const ImageInfo * ) NULL ) ;\n assert ( image_info -> signature == MagickSignature ) ;\n if ( image_info -> debug != MagickFalse ) ( void ) LogMagickEvent ( TraceEvent , GetMagickModule ( ) , \"%s\" , image_info -> filename ) ;\n assert ( exception != ( ExceptionInfo * ) NULL ) ;\n assert ( exception -> signature == MagickSignature ) ;\n image = AcquireImage ( image_info ) ;\n status = OpenBlob ( image_info , image , ReadBinaryBlobMode , exception ) ;\n if ( status == MagickFalse ) {\n image = DestroyImageList ( image ) ;\n return ( ( Image * ) NULL ) ;\n }\n image -> depth = 1 ;\n image -> endian = MSBEndian ;\n ( void ) ReadBlobLSBShort ( image ) ;\n image -> columns = ( size_t ) ReadBlobLSBShort ( image ) ;\n ( void ) ReadBlobLSBShort ( image ) ;\n image -> rows = ( size_t ) ReadBlobLSBShort ( image ) ;\n if ( ( image -> columns == 0 ) || ( image -> rows == 0 ) ) ThrowReaderException ( CorruptImageError , \"ImproperImageHeader\" ) ;\n if ( AcquireImageColormap ( image , 2 ) == MagickFalse ) ThrowReaderException ( ResourceLimitError , \"MemoryAllocationFailed\" ) ;\n if ( image_info -> ping != MagickFalse ) {\n ( void ) CloseBlob ( image ) ;\n return ( GetFirstImageInList ( image ) ) ;\n }\n status = SetImageExtent ( image , image -> columns , image -> rows ) ;\n if ( status == MagickFalse ) {\n InheritException ( exception , & image -> exception ) ;\n return ( DestroyImageList ( image ) ) ;\n }\n SetImageColorspace ( image , GRAYColorspace ) ;\n quantum_type = IndexQuantum ;\n quantum_info = AcquireQuantumInfo ( image_info , image ) ;\n if ( quantum_info == ( QuantumInfo * ) NULL ) ThrowReaderException ( ResourceLimitError , \"MemoryAllocationFailed\" ) ;\n length = GetQuantumExtent ( image , quantum_info , quantum_type ) ;\n for ( y = 0 ;\n y < ( ssize_t ) image -> rows ;\n y ++ ) {\n register PixelPacket * magick_restrict q ;\n q = QueueAuthenticPixels ( image , 0 , y , image -> columns , 1 , exception ) ;\n if ( q == ( PixelPacket * ) NULL ) break ;\n pixels = ( const unsigned char * ) ReadBlobStream ( image , length , GetQuantumPixels ( quantum_info ) , & count ) ;\n if ( count != ( ssize_t ) length ) ThrowReaderException ( CorruptImageError , \"UnableToReadImageData\" ) ;\n ( void ) ImportQuantumPixels ( image , ( CacheView * ) NULL , quantum_info , quantum_type , pixels , exception ) ;\n ( void ) ReadBlobStream ( image , ( size_t ) ( - ( ssize_t ) length ) & 0x01 , GetQuantumPixels ( quantum_info ) , & count ) ;\n if ( SyncAuthenticPixels ( image , exception ) == MagickFalse ) break ;\n status = SetImageProgress ( image , LoadImageTag , ( MagickOffsetType ) y , image -> rows ) ;\n if ( status == MagickFalse ) break ;\n }\n SetQuantumImageType ( image , quantum_type ) ;\n quantum_info = DestroyQuantumInfo ( quantum_info ) ;\n if ( EOFBlob ( image ) != MagickFalse ) ThrowFileException ( exception , CorruptImageError , \"UnexpectedEndOfFile\" , image -> filename ) ;\n ( void ) CloseBlob ( image ) ;\n return ( GetFirstImageInList ( image ) ) ;\n }"}
{"idx": 7130, "target": 0, "func": "void * xmlHashLookup2 ( xmlHashTablePtr table , const xmlChar * name , const xmlChar * name2 ) {\n return ( xmlHashLookup3 ( table , name , name2 , NULL ) ) ;\n }"}
{"idx": 7131, "target": 0, "func": "afs_int32 SPR_GetCPS ( struct rx_call * call , afs_int32 aid , prlist * alist , afs_int32 * over ) {\n afs_int32 code ;\n afs_int32 cid = ANONYMOUSID ;\n code = getCPS ( call , aid , alist , over , & cid ) ;\n osi_auditU ( call , PTS_GetCPSEvent , code , AUD_ID , aid , AUD_END ) ;\n ViceLog ( 125 , ( \"PTS_GetCPS: code %d cid %d aid %d\\n\" , code , cid , aid ) ) ;\n return code ;\n }"}
{"idx": 7132, "target": 0, "func": "static unsigned int get_prediction_error ( BLOCK_SIZE bsize , const struct buf_2d * src , const struct buf_2d * ref ) {\n unsigned int sse ;\n const vp9_variance_fn_t fn = get_block_variance_fn ( bsize ) ;\n fn ( src -> buf , src -> stride , ref -> buf , ref -> stride , & sse ) ;\n return sse ;\n }"}
{"idx": 7133, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PrefsFunctionalTest , TestImagesNotBlockedInIncognito ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n GURL url = embedded_test_server ( ) -> GetURL ( \"/settings/image_page.html\" ) ;\n Browser * incognito_browser = CreateIncognitoBrowser ( ) ;\n ui_test_utils : : NavigateToURL ( incognito_browser , url ) ;\n bool result = false ;\n std : : string script = \"for (i=0;\n i < document.images.length;\n i++) {\n\" \" if ((document.images[i].naturalWidth != 0) &&\" \" (document.images[i].naturalHeight != 0)) {\n\" \" window.domAutomationController.send(true);\n\" \" }\n\" \"}\n\" \"window.domAutomationController.send(false);\n\" ;\n EXPECT_TRUE ( content : : ExecuteScriptAndExtractBool ( incognito_browser -> tab_strip_model ( ) -> GetActiveWebContents ( ) , script , & result ) ) ;\n EXPECT_TRUE ( result ) ;\n }"}
{"idx": 7134, "target": 0, "func": "static int git_pack_config ( const char * k , const char * v , void * cb ) {\n if ( ! strcmp ( k , \"pack.window\" ) ) {\n window = git_config_int ( k , v ) ;\n return 0 ;\n }\n if ( ! strcmp ( k , \"pack.windowmemory\" ) ) {\n window_memory_limit = git_config_ulong ( k , v ) ;\n return 0 ;\n }\n if ( ! strcmp ( k , \"pack.depth\" ) ) {\n depth = git_config_int ( k , v ) ;\n return 0 ;\n }\n if ( ! strcmp ( k , \"pack.compression\" ) ) {\n int level = git_config_int ( k , v ) ;\n if ( level == - 1 ) level = Z_DEFAULT_COMPRESSION ;\n else if ( level < 0 || level > Z_BEST_COMPRESSION ) die ( \"bad pack compression level %d\" , level ) ;\n pack_compression_level = level ;\n pack_compression_seen = 1 ;\n return 0 ;\n }\n if ( ! strcmp ( k , \"pack.deltacachesize\" ) ) {\n max_delta_cache_size = git_config_int ( k , v ) ;\n return 0 ;\n }\n if ( ! strcmp ( k , \"pack.deltacachelimit\" ) ) {\n cache_max_small_delta_size = git_config_int ( k , v ) ;\n return 0 ;\n }\n if ( ! strcmp ( k , \"pack.writebitmaphashcache\" ) ) {\n if ( git_config_bool ( k , v ) ) write_bitmap_options |= BITMAP_OPT_HASH_CACHE ;\n else write_bitmap_options &= ~ BITMAP_OPT_HASH_CACHE ;\n }\n if ( ! strcmp ( k , \"pack.usebitmaps\" ) ) {\n use_bitmap_index = git_config_bool ( k , v ) ;\n return 0 ;\n }\n if ( ! strcmp ( k , \"pack.threads\" ) ) {\n delta_search_threads = git_config_int ( k , v ) ;\n if ( delta_search_threads < 0 ) die ( \"invalid number of threads specified (%d)\" , delta_search_threads ) ;\n # ifdef NO_PTHREADS if ( delta_search_threads != 1 ) warning ( \"no threads support, ignoring %s\" , k ) ;\n # endif return 0 ;\n }\n if ( ! strcmp ( k , \"pack.indexversion\" ) ) {\n pack_idx_opts . version = git_config_int ( k , v ) ;\n if ( pack_idx_opts . version > 2 ) die ( \"bad pack.indexversion=%\" PRIu32 , pack_idx_opts . version ) ;\n return 0 ;\n }\n return git_default_config ( k , v , cb ) ;\n }"}
{"idx": 7135, "target": 0, "func": "static cmsBool isfirstidchar ( int c ) {\n return ! isdigit ( c ) && ismiddle ( c ) ;\n }"}
{"idx": 7136, "target": 0, "func": "static int next ( struct vars * v ) {\n chr c ;\n if ( ISERR ( ) ) return 0 ;\n v -> lasttype = v -> nexttype ;\n if ( v -> nexttype == EMPTY && ( v -> cflags & REG_BOSONLY ) ) {\n RETV ( SBEGIN , 0 ) ;\n }\n if ( v -> savenow != NULL && ATEOS ( ) ) {\n v -> now = v -> savenow ;\n v -> stop = v -> savestop ;\n v -> savenow = v -> savestop = NULL ;\n }\n if ( v -> cflags & REG_EXPANDED ) switch ( v -> lexcon ) {\n case L_ERE : case L_BRE : case L_EBND : case L_BBND : skip ( v ) ;\n break ;\n }\n if ( ATEOS ( ) ) {\n switch ( v -> lexcon ) {\n case L_ERE : case L_BRE : case L_Q : RET ( EOS ) ;\n break ;\n case L_EBND : case L_BBND : FAILW ( REG_EBRACE ) ;\n break ;\n case L_BRACK : case L_CEL : case L_ECL : case L_CCL : FAILW ( REG_EBRACK ) ;\n break ;\n }\n assert ( NOTREACHED ) ;\n }\n c = * v -> now ++ ;\n switch ( v -> lexcon ) {\n case L_BRE : return brenext ( v , c ) ;\n break ;\n case L_ERE : break ;\n case L_Q : RETV ( PLAIN , c ) ;\n break ;\n case L_BBND : case L_EBND : switch ( c ) {\n case CHR ( '0' ) : case CHR ( '1' ) : case CHR ( '2' ) : case CHR ( '3' ) : case CHR ( '4' ) : case CHR ( '5' ) : case CHR ( '6' ) : case CHR ( '7' ) : case CHR ( '8' ) : case CHR ( '9' ) : RETV ( DIGIT , ( chr ) DIGITVAL ( c ) ) ;\n break ;\n case CHR ( ',' ) : RET ( ',' ) ;\n break ;\n case CHR ( '}\n' ) : if ( INCON ( L_EBND ) ) {\n INTOCON ( L_ERE ) ;\n if ( ( v -> cflags & REG_ADVF ) && NEXT1 ( '?' ) ) {\n v -> now ++ ;\n NOTE ( REG_UNONPOSIX ) ;\n RETV ( '}\n' , 0 ) ;\n }\n RETV ( '}\n' , 1 ) ;\n }\n else FAILW ( REG_BADBR ) ;\n break ;\n case CHR ( '\\\\' ) : if ( INCON ( L_BBND ) && NEXT1 ( '}\n' ) ) {\n v -> now ++ ;\n INTOCON ( L_BRE ) ;\n RET ( '}\n' ) ;\n }\n else FAILW ( REG_BADBR ) ;\n break ;\n default : FAILW ( REG_BADBR ) ;\n break ;\n }\n assert ( NOTREACHED ) ;\n break ;\n case L_BRACK : switch ( c ) {\n case CHR ( ']' ) : if ( LASTTYPE ( '[' ) ) RETV ( PLAIN , c ) ;\n else {\n INTOCON ( ( v -> cflags & REG_EXTENDED ) ? L_ERE : L_BRE ) ;\n RET ( ']' ) ;\n }\n break ;\n case CHR ( '\\\\' ) : NOTE ( REG_UBBS ) ;\n if ( ! ( v -> cflags & REG_ADVF ) ) RETV ( PLAIN , c ) ;\n NOTE ( REG_UNONPOSIX ) ;\n if ( ATEOS ( ) ) FAILW ( REG_EESCAPE ) ;\n ( DISCARD ) lexescape ( v ) ;\n switch ( v -> nexttype ) {\n case PLAIN : return 1 ;\n break ;\n case CCLASS : switch ( v -> nextvalue ) {\n case 'd' : lexnest ( v , brbackd , ENDOF ( brbackd ) ) ;\n break ;\n case 's' : lexnest ( v , brbacks , ENDOF ( brbacks ) ) ;\n break ;\n case 'w' : lexnest ( v , brbackw , ENDOF ( brbackw ) ) ;\n break ;\n default : FAILW ( REG_EESCAPE ) ;\n break ;\n }\n v -> nexttype = v -> lasttype ;\n return next ( v ) ;\n break ;\n }\n FAILW ( REG_EESCAPE ) ;\n break ;\n case CHR ( '-' ) : if ( LASTTYPE ( '[' ) || NEXT1 ( ']' ) ) RETV ( PLAIN , c ) ;\n else RETV ( RANGE , c ) ;\n break ;\n case CHR ( '[' ) : if ( ATEOS ( ) ) FAILW ( REG_EBRACK ) ;\n switch ( * v -> now ++ ) {\n case CHR ( '.' ) : INTOCON ( L_CEL ) ;\n RET ( COLLEL ) ;\n break ;\n case CHR ( '=' ) : INTOCON ( L_ECL ) ;\n NOTE ( REG_ULOCALE ) ;\n RET ( ECLASS ) ;\n break ;\n case CHR ( ':' ) : INTOCON ( L_CCL ) ;\n NOTE ( REG_ULOCALE ) ;\n RET ( CCLASS ) ;\n break ;\n default : v -> now -- ;\n RETV ( PLAIN , c ) ;\n break ;\n }\n assert ( NOTREACHED ) ;\n break ;\n default : RETV ( PLAIN , c ) ;\n break ;\n }\n assert ( NOTREACHED ) ;\n break ;\n case L_CEL : if ( c == CHR ( '.' ) && NEXT1 ( ']' ) ) {\n v -> now ++ ;\n INTOCON ( L_BRACK ) ;\n RETV ( END , '.' ) ;\n }\n else RETV ( PLAIN , c ) ;\n break ;\n case L_ECL : if ( c == CHR ( '=' ) && NEXT1 ( ']' ) ) {\n v -> now ++ ;\n INTOCON ( L_BRACK ) ;\n RETV ( END , '=' ) ;\n }\n else RETV ( PLAIN , c ) ;\n break ;\n case L_CCL : if ( c == CHR ( ':' ) && NEXT1 ( ']' ) ) {\n v -> now ++ ;\n INTOCON ( L_BRACK ) ;\n RETV ( END , ':' ) ;\n }\n else RETV ( PLAIN , c ) ;\n break ;\n default : assert ( NOTREACHED ) ;\n break ;\n }\n assert ( INCON ( L_ERE ) ) ;\n switch ( c ) {\n case CHR ( '|' ) : RET ( '|' ) ;\n break ;\n case CHR ( '*' ) : if ( ( v -> cflags & REG_ADVF ) && NEXT1 ( '?' ) ) {\n v -> now ++ ;\n NOTE ( REG_UNONPOSIX ) ;\n RETV ( '*' , 0 ) ;\n }\n RETV ( '*' , 1 ) ;\n break ;\n case CHR ( '+' ) : if ( ( v -> cflags & REG_ADVF ) && NEXT1 ( '?' ) ) {\n v -> now ++ ;\n NOTE ( REG_UNONPOSIX ) ;\n RETV ( '+' , 0 ) ;\n }\n RETV ( '+' , 1 ) ;\n break ;\n case CHR ( '?' ) : if ( ( v -> cflags & REG_ADVF ) && NEXT1 ( '?' ) ) {\n v -> now ++ ;\n NOTE ( REG_UNONPOSIX ) ;\n RETV ( '?' , 0 ) ;\n }\n RETV ( '?' , 1 ) ;\n break ;\n case CHR ( '{\n' ) : if ( v -> cflags & REG_EXPANDED ) skip ( v ) ;\n if ( ATEOS ( ) || ! iscdigit ( * v -> now ) ) {\n NOTE ( REG_UBRACES ) ;\n NOTE ( REG_UUNSPEC ) ;\n RETV ( PLAIN , c ) ;\n }\n else {\n NOTE ( REG_UBOUNDS ) ;\n INTOCON ( L_EBND ) ;\n RET ( '{\n' ) ;\n }\n assert ( NOTREACHED ) ;\n break ;\n case CHR ( '(' ) : if ( ( v -> cflags & REG_ADVF ) && NEXT1 ( '?' ) ) {\n NOTE ( REG_UNONPOSIX ) ;\n v -> now ++ ;\n if ( ATEOS ( ) ) FAILW ( REG_BADRPT ) ;\n switch ( * v -> now ++ ) {\n case CHR ( ':' ) : RETV ( '(' , 0 ) ;\n break ;\n case CHR ( '#' ) : while ( ! ATEOS ( ) && * v -> now != CHR ( ')' ) ) v -> now ++ ;\n if ( ! ATEOS ( ) ) v -> now ++ ;\n assert ( v -> nexttype == v -> lasttype ) ;\n return next ( v ) ;\n break ;\n case CHR ( '=' ) : NOTE ( REG_ULOOKAROUND ) ;\n RETV ( LACON , LATYPE_AHEAD_POS ) ;\n break ;\n case CHR ( '!' ) : NOTE ( REG_ULOOKAROUND ) ;\n RETV ( LACON , LATYPE_AHEAD_NEG ) ;\n break ;\n case CHR ( '<' ) : if ( ATEOS ( ) ) FAILW ( REG_BADRPT ) ;\n switch ( * v -> now ++ ) {\n case CHR ( '=' ) : NOTE ( REG_ULOOKAROUND ) ;\n RETV ( LACON , LATYPE_BEHIND_POS ) ;\n break ;\n case CHR ( '!' ) : NOTE ( REG_ULOOKAROUND ) ;\n RETV ( LACON , LATYPE_BEHIND_NEG ) ;\n break ;\n default : FAILW ( REG_BADRPT ) ;\n break ;\n }\n assert ( NOTREACHED ) ;\n break ;\n default : FAILW ( REG_BADRPT ) ;\n break ;\n }\n assert ( NOTREACHED ) ;\n }\n if ( v -> cflags & REG_NOSUB ) RETV ( '(' , 0 ) ;\n else RETV ( '(' , 1 ) ;\n break ;\n case CHR ( ')' ) : if ( LASTTYPE ( '(' ) ) NOTE ( REG_UUNSPEC ) ;\n RETV ( ')' , c ) ;\n break ;\n case CHR ( '[' ) : if ( HAVE ( 6 ) && * ( v -> now + 0 ) == CHR ( '[' ) && * ( v -> now + 1 ) == CHR ( ':' ) && ( * ( v -> now + 2 ) == CHR ( '<' ) || * ( v -> now + 2 ) == CHR ( '>' ) ) && * ( v -> now + 3 ) == CHR ( ':' ) && * ( v -> now + 4 ) == CHR ( ']' ) && * ( v -> now + 5 ) == CHR ( ']' ) ) {\n c = * ( v -> now + 2 ) ;\n v -> now += 6 ;\n NOTE ( REG_UNONPOSIX ) ;\n RET ( ( c == CHR ( '<' ) ) ? '<' : '>' ) ;\n }\n INTOCON ( L_BRACK ) ;\n if ( NEXT1 ( '^' ) ) {\n v -> now ++ ;\n RETV ( '[' , 0 ) ;\n }\n RETV ( '[' , 1 ) ;\n break ;\n case CHR ( '.' ) : RET ( '.' ) ;\n break ;\n case CHR ( '^' ) : RET ( '^' ) ;\n break ;\n case CHR ( '$' ) : RET ( '$' ) ;\n break ;\n case CHR ( '\\\\' ) : if ( ATEOS ( ) ) FAILW ( REG_EESCAPE ) ;\n break ;\n default : RETV ( PLAIN , c ) ;\n break ;\n }\n assert ( ! ATEOS ( ) ) ;\n if ( ! ( v -> cflags & REG_ADVF ) ) {\n if ( iscalnum ( * v -> now ) ) {\n NOTE ( REG_UBSALNUM ) ;\n NOTE ( REG_UUNSPEC ) ;\n }\n RETV ( PLAIN , * v -> now ++ ) ;\n }\n ( DISCARD ) lexescape ( v ) ;\n if ( ISERR ( ) ) FAILW ( REG_EESCAPE ) ;\n if ( v -> nexttype == CCLASS ) {\n switch ( v -> nextvalue ) {\n case 'd' : lexnest ( v , backd , ENDOF ( backd ) ) ;\n break ;\n case 'D' : lexnest ( v , backD , ENDOF ( backD ) ) ;\n break ;\n case 's' : lexnest ( v , backs , ENDOF ( backs ) ) ;\n break ;\n case 'S' : lexnest ( v , backS , ENDOF ( backS ) ) ;\n break ;\n case 'w' : lexnest ( v , backw , ENDOF ( backw ) ) ;\n break ;\n case 'W' : lexnest ( v , backW , ENDOF ( backW ) ) ;\n break ;\n default : assert ( NOTREACHED ) ;\n FAILW ( REG_ASSERT ) ;\n break ;\n }\n v -> nexttype = v -> lasttype ;\n return next ( v ) ;\n }\n return ! ISERR ( ) ;\n }"}
{"idx": 7137, "target": 0, "func": "static int read_major_sync ( MLPDecodeContext * m , GetBitContext * gb ) {\n MLPHeaderInfo mh ;\n int substr , ret ;\n if ( ( ret = ff_mlp_read_major_sync ( m -> avctx , & mh , gb ) ) != 0 ) return ret ;\n if ( mh . group1_bits == 0 ) {\n av_log ( m -> avctx , AV_LOG_ERROR , \"invalid/unknown bits per sample\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( mh . group2_bits > mh . group1_bits ) {\n av_log ( m -> avctx , AV_LOG_ERROR , \"Channel group 2 cannot have more bits per sample than group 1.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( mh . group2_samplerate && mh . group2_samplerate != mh . group1_samplerate ) {\n av_log ( m -> avctx , AV_LOG_ERROR , \"Channel groups with differing sample rates are not currently supported.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( mh . group1_samplerate == 0 ) {\n av_log ( m -> avctx , AV_LOG_ERROR , \"invalid/unknown sampling rate\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( mh . group1_samplerate > MAX_SAMPLERATE ) {\n av_log ( m -> avctx , AV_LOG_ERROR , \"Sampling rate %d is greater than the supported maximum (%d).\\n\" , mh . group1_samplerate , MAX_SAMPLERATE ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( mh . access_unit_size > MAX_BLOCKSIZE ) {\n av_log ( m -> avctx , AV_LOG_ERROR , \"Block size %d is greater than the supported maximum (%d).\\n\" , mh . access_unit_size , MAX_BLOCKSIZE ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( mh . access_unit_size_pow2 > MAX_BLOCKSIZE_POW2 ) {\n av_log ( m -> avctx , AV_LOG_ERROR , \"Block size pow2 %d is greater than the supported maximum (%d).\\n\" , mh . access_unit_size_pow2 , MAX_BLOCKSIZE_POW2 ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( mh . num_substreams == 0 ) return AVERROR_INVALIDDATA ;\n if ( m -> avctx -> codec_id == AV_CODEC_ID_MLP && mh . num_substreams > 2 ) {\n av_log ( m -> avctx , AV_LOG_ERROR , \"MLP only supports up to 2 substreams.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( mh . num_substreams > MAX_SUBSTREAMS ) {\n av_log_ask_for_sample ( m -> avctx , \"Number of substreams %d is larger than the maximum supported \" \"by the decoder.\\n\" , mh . num_substreams ) ;\n return AVERROR_PATCHWELCOME ;\n }\n m -> access_unit_size = mh . access_unit_size ;\n m -> access_unit_size_pow2 = mh . access_unit_size_pow2 ;\n m -> num_substreams = mh . num_substreams ;\n m -> max_decoded_substream = m -> num_substreams - 1 ;\n m -> avctx -> sample_rate = mh . group1_samplerate ;\n m -> avctx -> frame_size = mh . access_unit_size ;\n m -> avctx -> bits_per_raw_sample = mh . group1_bits ;\n if ( mh . group1_bits > 16 ) m -> avctx -> sample_fmt = AV_SAMPLE_FMT_S32 ;\n else m -> avctx -> sample_fmt = AV_SAMPLE_FMT_S16 ;\n m -> params_valid = 1 ;\n for ( substr = 0 ;\n substr < MAX_SUBSTREAMS ;\n substr ++ ) m -> substream [ substr ] . restart_seen = 0 ;\n if ( m -> avctx -> codec_id == AV_CODEC_ID_MLP ) {\n if ( ( substr = ( mh . num_substreams > 1 ) ) ) m -> substream [ 0 ] . ch_layout = AV_CH_LAYOUT_STEREO ;\n m -> substream [ substr ] . ch_layout = mh . channel_layout_mlp ;\n }\n else {\n if ( ( substr = ( mh . num_substreams > 1 ) ) ) m -> substream [ 0 ] . ch_layout = AV_CH_LAYOUT_STEREO ;\n if ( mh . num_substreams > 2 ) if ( mh . channel_layout_thd_stream2 ) m -> substream [ 2 ] . ch_layout = mh . channel_layout_thd_stream2 ;\n else m -> substream [ 2 ] . ch_layout = mh . channel_layout_thd_stream1 ;\n m -> substream [ substr ] . ch_layout = mh . channel_layout_thd_stream1 ;\n }\n return 0 ;\n }"}
{"idx": 7138, "target": 0, "func": "static int dissect_pvfs2_error ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n gint32 err ;\n const char * errmsg = NULL ;\n err = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_pvfs_error , tvb , offset , 4 , - err ) ;\n offset += 4 ;\n if ( err != 0 ) {\n errmsg = val_to_str ( - err , names_pvfs_error , \"Unknown error: %u\" ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" Error: %s\" , errmsg ) ;\n }\n return offset ;\n }"}
{"idx": 7139, "target": 0, "func": "void kadmin_getpol ( int argc , char * argv [ ] ) {\n krb5_error_code retval ;\n kadm5_policy_ent_rec policy ;\n if ( ! ( argc == 2 || ( argc == 3 && ! strcmp ( \"-terse\" , argv [ 1 ] ) ) ) ) {\n fprintf ( stderr , _ ( \"usage: get_policy [-terse] policy\\n\" ) ) ;\n return ;\n }\n retval = kadm5_get_policy ( handle , argv [ argc - 1 ] , & policy ) ;\n if ( retval ) {\n com_err ( \"get_policy\" , retval , _ ( \"while retrieving policy \\\"%s\\\".\" ) , argv [ argc - 1 ] ) ;\n return ;\n }\n if ( argc == 2 ) {\n printf ( _ ( \"Policy: %s\\n\" ) , policy . policy ) ;\n printf ( _ ( \"Maximum password life: %ld\\n\" ) , policy . pw_max_life ) ;\n printf ( _ ( \"Minimum password life: %ld\\n\" ) , policy . pw_min_life ) ;\n printf ( _ ( \"Minimum password length: %ld\\n\" ) , policy . pw_min_length ) ;\n printf ( _ ( \"Minimum number of password character classes: %ld\\n\" ) , policy . pw_min_classes ) ;\n printf ( _ ( \"Number of old keys kept: %ld\\n\" ) , policy . pw_history_num ) ;\n printf ( _ ( \"Maximum password failures before lockout: %lu\\n\" ) , ( unsigned long ) policy . pw_max_fail ) ;\n printf ( _ ( \"Password failure count reset interval: %s\\n\" ) , strdur ( policy . pw_failcnt_interval ) ) ;\n printf ( _ ( \"Password lockout duration: %s\\n\" ) , strdur ( policy . pw_lockout_duration ) ) ;\n if ( policy . allowed_keysalts != NULL ) printf ( _ ( \"Allowed key/salt types: %s\\n\" ) , policy . allowed_keysalts ) ;\n }\n else {\n printf ( \"\\\"%s\\\"\\t%ld\\t%ld\\t%ld\\t%ld\\t%ld\\t%ld\\t%lu\\t%ld\\t%ld\\t%s\\n\" , policy . policy , policy . pw_max_life , policy . pw_min_life , policy . pw_min_length , policy . pw_min_classes , policy . pw_history_num , 0 , ( unsigned long ) policy . pw_max_fail , ( long ) policy . pw_failcnt_interval , ( long ) policy . pw_lockout_duration , ( policy . allowed_keysalts == NULL ) ? \"-\" : policy . allowed_keysalts ) ;\n }\n kadm5_free_policy_ent ( handle , & policy ) ;\n }"}
{"idx": 7140, "target": 0, "func": "static Datum ExecEvalParamExec ( ExprState * exprstate , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n Param * expression = ( Param * ) exprstate -> expr ;\n int thisParamId = expression -> paramid ;\n ParamExecData * prm ;\n if ( isDone ) * isDone = ExprSingleResult ;\n prm = & ( econtext -> ecxt_param_exec_vals [ thisParamId ] ) ;\n if ( prm -> execPlan != NULL ) {\n ExecSetParamPlan ( prm -> execPlan , econtext ) ;\n Assert ( prm -> execPlan == NULL ) ;\n }\n * isNull = prm -> isnull ;\n return prm -> value ;\n }"}
{"idx": 7141, "target": 0, "func": "static inline int ipv6_addr_scope ( const struct in6_addr * addr ) {\n return __ipv6_addr_type ( addr ) & IPV6_ADDR_SCOPE_MASK ;\n }"}
{"idx": 7142, "target": 0, "func": "int TSCacheHttpInfoVector ( TSCacheHttpInfo infop , void * data , int length ) {\n CacheHTTPInfo * info = ( CacheHTTPInfo * ) infop ;\n CacheHTTPInfoVector vector ;\n vector . insert ( info ) ;\n int size = vector . marshal_length ( ) ;\n if ( size > length ) {\n return 0 ;\n }\n return vector . marshal ( ( char * ) data , length ) ;\n }"}
{"idx": 7143, "target": 0, "func": "int qemuAssignDeviceHostdevAlias ( virDomainDefPtr def , char * * alias , int idx ) {\n if ( idx == - 1 ) {\n size_t i ;\n idx = 0 ;\n for ( i = 0 ;\n i < def -> nhostdevs ;\n i ++ ) {\n int thisidx ;\n if ( ( thisidx = qemuDomainDeviceAliasIndex ( def -> hostdevs [ i ] -> info , \"hostdev\" ) ) < 0 ) continue ;\n if ( thisidx >= idx ) idx = thisidx + 1 ;\n }\n for ( i = 0 ;\n i < def -> nnets ;\n i ++ ) {\n int thisidx ;\n if ( ( thisidx = qemuDomainDeviceAliasIndex ( & def -> nets [ i ] -> info , \"hostdev\" ) ) < 0 ) continue ;\n if ( thisidx >= idx ) idx = thisidx + 1 ;\n }\n }\n if ( virAsprintf ( alias , \"hostdev%d\" , idx ) < 0 ) return - 1 ;\n return 0 ;\n }"}
{"idx": 7144, "target": 0, "func": "static bool spec_ctrl_needed ( void * opaque ) {\n X86CPU * cpu = opaque ;\n CPUX86State * env = & cpu -> env ;\n return env -> spec_ctrl != 0 ;\n }"}
{"idx": 7145, "target": 0, "func": "static void y4m_convert_42xpaldv_42xjpeg ( y4m_input * _y4m , unsigned char * _dst , unsigned char * _aux ) {\n unsigned char * tmp ;\n int c_w ;\n int c_h ;\n int c_sz ;\n int pli ;\n int y ;\n int x ;\n _dst += _y4m -> pic_w * _y4m -> pic_h ;\n c_w = ( _y4m -> pic_w + 1 ) / 2 ;\n c_h = ( _y4m -> pic_h + _y4m -> dst_c_dec_h - 1 ) / _y4m -> dst_c_dec_h ;\n c_sz = c_w * c_h ;\n tmp = _aux + 2 * c_sz ;\n for ( pli = 1 ;\n pli < 3 ;\n pli ++ ) {\n y4m_42xmpeg2_42xjpeg_helper ( tmp , _aux , c_w , c_h ) ;\n _aux += c_sz ;\n switch ( pli ) {\n case 1 : {\n for ( x = 0 ;\n x < c_w ;\n x ++ ) {\n for ( y = 0 ;\n y < OC_MINI ( c_h , 3 ) ;\n y ++ ) {\n _dst [ y * c_w ] = ( unsigned char ) OC_CLAMPI ( 0 , ( tmp [ 0 ] - 9 * tmp [ OC_MAXI ( y - 2 , 0 ) * c_w ] + 35 * tmp [ OC_MAXI ( y - 1 , 0 ) * c_w ] + 114 * tmp [ y * c_w ] - 17 * tmp [ OC_MINI ( y + 1 , c_h - 1 ) * c_w ] + 4 * tmp [ OC_MINI ( y + 2 , c_h - 1 ) * c_w ] + 64 ) >> 7 , 255 ) ;\n }\n for ( ;\n y < c_h - 2 ;\n y ++ ) {\n _dst [ y * c_w ] = ( unsigned char ) OC_CLAMPI ( 0 , ( tmp [ ( y - 3 ) * c_w ] - 9 * tmp [ ( y - 2 ) * c_w ] + 35 * tmp [ ( y - 1 ) * c_w ] + 114 * tmp [ y * c_w ] - 17 * tmp [ ( y + 1 ) * c_w ] + 4 * tmp [ ( y + 2 ) * c_w ] + 64 ) >> 7 , 255 ) ;\n }\n for ( ;\n y < c_h ;\n y ++ ) {\n _dst [ y * c_w ] = ( unsigned char ) OC_CLAMPI ( 0 , ( tmp [ ( y - 3 ) * c_w ] - 9 * tmp [ ( y - 2 ) * c_w ] + 35 * tmp [ ( y - 1 ) * c_w ] + 114 * tmp [ y * c_w ] - 17 * tmp [ OC_MINI ( y + 1 , c_h - 1 ) * c_w ] + 4 * tmp [ ( c_h - 1 ) * c_w ] + 64 ) >> 7 , 255 ) ;\n }\n _dst ++ ;\n tmp ++ ;\n }\n _dst += c_sz - c_w ;\n tmp -= c_w ;\n }\n break ;\n case 2 : {\n for ( x = 0 ;\n x < c_w ;\n x ++ ) {\n for ( y = 0 ;\n y < OC_MINI ( c_h , 2 ) ;\n y ++ ) {\n _dst [ y * c_w ] = ( unsigned char ) OC_CLAMPI ( 0 , ( 4 * tmp [ 0 ] - 17 * tmp [ OC_MAXI ( y - 1 , 0 ) * c_w ] + 114 * tmp [ y * c_w ] + 35 * tmp [ OC_MINI ( y + 1 , c_h - 1 ) * c_w ] - 9 * tmp [ OC_MINI ( y + 2 , c_h - 1 ) * c_w ] + tmp [ OC_MINI ( y + 3 , c_h - 1 ) * c_w ] + 64 ) >> 7 , 255 ) ;\n }\n for ( ;\n y < c_h - 3 ;\n y ++ ) {\n _dst [ y * c_w ] = ( unsigned char ) OC_CLAMPI ( 0 , ( 4 * tmp [ ( y - 2 ) * c_w ] - 17 * tmp [ ( y - 1 ) * c_w ] + 114 * tmp [ y * c_w ] + 35 * tmp [ ( y + 1 ) * c_w ] - 9 * tmp [ ( y + 2 ) * c_w ] + tmp [ ( y + 3 ) * c_w ] + 64 ) >> 7 , 255 ) ;\n }\n for ( ;\n y < c_h ;\n y ++ ) {\n _dst [ y * c_w ] = ( unsigned char ) OC_CLAMPI ( 0 , ( 4 * tmp [ ( y - 2 ) * c_w ] - 17 * tmp [ ( y - 1 ) * c_w ] + 114 * tmp [ y * c_w ] + 35 * tmp [ OC_MINI ( y + 1 , c_h - 1 ) * c_w ] - 9 * tmp [ OC_MINI ( y + 2 , c_h - 1 ) * c_w ] + tmp [ ( c_h - 1 ) * c_w ] + 64 ) >> 7 , 255 ) ;\n }\n _dst ++ ;\n tmp ++ ;\n }\n }\n break ;\n }\n }\n }"}
{"idx": 7146, "target": 0, "func": "static void dbstmt_prop_write ( zval * object , zval * member , zval * value , const zend_literal * key TSRMLS_DC ) {\n pdo_stmt_t * stmt = ( pdo_stmt_t * ) zend_object_store_get_object ( object TSRMLS_CC ) ;\n convert_to_string ( member ) ;\n if ( strcmp ( Z_STRVAL_P ( member ) , \"queryString\" ) == 0 ) {\n pdo_raise_impl_error ( stmt -> dbh , stmt , \"HY000\" , \"property queryString is read only\" TSRMLS_CC ) ;\n }\n else {\n std_object_handlers . write_property ( object , member , value , key TSRMLS_CC ) ;\n }\n }"}
{"idx": 7147, "target": 1, "func": "static void glyph_info_destroy ( hb_glyph_info_t * g ) {\n free ( g ) ;\n }"}
{"idx": 7148, "target": 1, "func": "mbfl_string * mbfl_buffer_converter_feed_result ( mbfl_buffer_converter * convd , mbfl_string * string , mbfl_string * result ) {\n if ( convd == NULL || string == NULL || result == NULL ) {\n return NULL ;\n }\n mbfl_buffer_converter_feed ( convd , string ) ;\n if ( convd -> filter1 != NULL ) {\n mbfl_convert_filter_flush ( convd -> filter1 ) ;\n }\n if ( convd -> filter2 != NULL ) {\n mbfl_convert_filter_flush ( convd -> filter2 ) ;\n }\n result -> no_encoding = convd -> to -> no_encoding ;\n return mbfl_memory_device_result ( & convd -> device , result ) ;\n }"}
{"idx": 7149, "target": 0, "func": "static VALUE ossl_cipher_key_length ( VALUE self ) {\n EVP_CIPHER_CTX * ctx ;\n GetCipher ( self , ctx ) ;\n return INT2NUM ( EVP_CIPHER_CTX_key_length ( ctx ) ) ;\n }"}
{"idx": 7150, "target": 0, "func": "u_int ppp_hdlc_if_print ( netdissect_options * ndo , const struct pcap_pkthdr * h , register const u_char * p ) {\n register u_int length = h -> len ;\n register u_int caplen = h -> caplen ;\n u_int proto ;\n u_int hdrlen = 0 ;\n if ( caplen < 2 ) {\n ND_PRINT ( ( ndo , \"[|ppp]\" ) ) ;\n return ( caplen ) ;\n }\n switch ( p [ 0 ] ) {\n case PPP_ADDRESS : if ( caplen < 4 ) {\n ND_PRINT ( ( ndo , \"[|ppp]\" ) ) ;\n return ( caplen ) ;\n }\n if ( ndo -> ndo_eflag ) ND_PRINT ( ( ndo , \"%02x %02x %d \" , p [ 0 ] , p [ 1 ] , length ) ) ;\n p += 2 ;\n length -= 2 ;\n hdrlen += 2 ;\n proto = EXTRACT_16BITS ( p ) ;\n p += 2 ;\n length -= 2 ;\n hdrlen += 2 ;\n ND_PRINT ( ( ndo , \"%s: \" , tok2str ( ppptype2str , \"unknown PPP protocol (0x%04x)\" , proto ) ) ) ;\n handle_ppp ( ndo , proto , p , length ) ;\n break ;\n case CHDLC_UNICAST : case CHDLC_BCAST : return ( chdlc_if_print ( ndo , h , p ) ) ;\n default : if ( ndo -> ndo_eflag ) ND_PRINT ( ( ndo , \"%02x %02x %d \" , p [ 0 ] , p [ 1 ] , length ) ) ;\n p += 2 ;\n hdrlen += 2 ;\n ND_PRINT ( ( ndo , \"unknown addr %02x;\n ctrl %02x\" , p [ 0 ] , p [ 1 ] ) ) ;\n break ;\n }\n return ( hdrlen ) ;\n }"}
{"idx": 7151, "target": 0, "func": "static int my_kill ( int pid , int sig ) {\n # ifdef __WIN__ HANDLE proc ;\n if ( ( proc = OpenProcess ( SYNCHRONIZE | PROCESS_TERMINATE , FALSE , pid ) ) == NULL ) return - 1 ;\n if ( sig == 0 ) {\n DWORD wait_result = WaitForSingleObject ( proc , 0 ) ;\n CloseHandle ( proc ) ;\n return wait_result == WAIT_OBJECT_0 ? - 1 : 0 ;\n }\n ( void ) TerminateProcess ( proc , 201 ) ;\n CloseHandle ( proc ) ;\n return 1 ;\n # else return kill ( pid , sig ) ;\n # endif }"}
{"idx": 7152, "target": 0, "func": "static gpg_err_code_t mpi_from_keyparam ( gcry_mpi_t * r_a , gcry_sexp_t keyparam , const char * name ) {\n gcry_err_code_t ec = 0 ;\n gcry_sexp_t l1 ;\n l1 = gcry_sexp_find_token ( keyparam , name , 0 ) ;\n if ( l1 ) {\n * r_a = gcry_sexp_nth_mpi ( l1 , 1 , GCRYMPI_FMT_USG ) ;\n gcry_sexp_release ( l1 ) ;\n if ( ! * r_a ) ec = GPG_ERR_INV_OBJ ;\n }\n return ec ;\n }"}
{"idx": 7153, "target": 1, "func": "static void vc1_decode_i_blocks ( VC1Context * v ) {\n int k , j ;\n MpegEncContext * s = & v -> s ;\n int cbp , val ;\n uint8_t * coded_val ;\n int mb_pos ;\n switch ( v -> y_ac_table_index ) {\n case 0 : v -> codingset = ( v -> pqindex <= 8 ) ? CS_HIGH_RATE_INTRA : CS_LOW_MOT_INTRA ;\n break ;\n case 1 : v -> codingset = CS_HIGH_MOT_INTRA ;\n break ;\n case 2 : v -> codingset = CS_MID_RATE_INTRA ;\n break ;\n }\n switch ( v -> c_ac_table_index ) {\n case 0 : v -> codingset2 = ( v -> pqindex <= 8 ) ? CS_HIGH_RATE_INTER : CS_LOW_MOT_INTER ;\n break ;\n case 1 : v -> codingset2 = CS_HIGH_MOT_INTER ;\n break ;\n case 2 : v -> codingset2 = CS_MID_RATE_INTER ;\n break ;\n }\n s -> y_dc_scale = s -> y_dc_scale_table [ v -> pq ] ;\n s -> c_dc_scale = s -> c_dc_scale_table [ v -> pq ] ;\n s -> mb_x = s -> mb_y = 0 ;\n s -> mb_intra = 1 ;\n s -> first_slice_line = 1 ;\n for ( s -> mb_y = 0 ;\n s -> mb_y < s -> end_mb_y ;\n s -> mb_y ++ ) {\n s -> mb_x = 0 ;\n ff_init_block_index ( s ) ;\n for ( ;\n s -> mb_x < v -> end_mb_x ;\n s -> mb_x ++ ) {\n uint8_t * dst [ 6 ] ;\n ff_update_block_index ( s ) ;\n dst [ 0 ] = s -> dest [ 0 ] ;\n dst [ 1 ] = dst [ 0 ] + 8 ;\n dst [ 2 ] = s -> dest [ 0 ] + s -> linesize * 8 ;\n dst [ 3 ] = dst [ 2 ] + 8 ;\n dst [ 4 ] = s -> dest [ 1 ] ;\n dst [ 5 ] = s -> dest [ 2 ] ;\n s -> dsp . clear_blocks ( s -> block [ 0 ] ) ;\n mb_pos = s -> mb_x + s -> mb_y * s -> mb_width ;\n s -> current_picture . f . mb_type [ mb_pos ] = MB_TYPE_INTRA ;\n s -> current_picture . f . qscale_table [ mb_pos ] = v -> pq ;\n s -> current_picture . f . motion_val [ 1 ] [ s -> block_index [ 0 ] ] [ 0 ] = 0 ;\n s -> current_picture . f . motion_val [ 1 ] [ s -> block_index [ 0 ] ] [ 1 ] = 0 ;\n cbp = get_vlc2 ( & v -> s . gb , ff_msmp4_mb_i_vlc . table , MB_INTRA_VLC_BITS , 2 ) ;\n v -> s . ac_pred = get_bits1 ( & v -> s . gb ) ;\n for ( k = 0 ;\n k < 6 ;\n k ++ ) {\n val = ( ( cbp >> ( 5 - k ) ) & 1 ) ;\n if ( k < 4 ) {\n int pred = vc1_coded_block_pred ( & v -> s , k , & coded_val ) ;\n val = val ^ pred ;\n * coded_val = val ;\n }\n cbp |= val << ( 5 - k ) ;\n vc1_decode_i_block ( v , s -> block [ k ] , k , val , ( k < 4 ) ? v -> codingset : v -> codingset2 ) ;\n if ( k > 3 && ( s -> flags & CODEC_FLAG_GRAY ) ) continue ;\n v -> vc1dsp . vc1_inv_trans_8x8 ( s -> block [ k ] ) ;\n if ( v -> pq >= 9 && v -> overlap ) {\n if ( v -> rangeredfrm ) for ( j = 0 ;\n j < 64 ;\n j ++ ) s -> block [ k ] [ j ] <<= 1 ;\n s -> dsp . put_signed_pixels_clamped ( s -> block [ k ] , dst [ k ] , k & 4 ? s -> uvlinesize : s -> linesize ) ;\n }\n else {\n if ( v -> rangeredfrm ) for ( j = 0 ;\n j < 64 ;\n j ++ ) s -> block [ k ] [ j ] = ( s -> block [ k ] [ j ] - 64 ) << 1 ;\n s -> dsp . put_pixels_clamped ( s -> block [ k ] , dst [ k ] , k & 4 ? s -> uvlinesize : s -> linesize ) ;\n }\n }\n if ( v -> pq >= 9 && v -> overlap ) {\n if ( s -> mb_x ) {\n v -> vc1dsp . vc1_h_overlap ( s -> dest [ 0 ] , s -> linesize ) ;\n v -> vc1dsp . vc1_h_overlap ( s -> dest [ 0 ] + 8 * s -> linesize , s -> linesize ) ;\n if ( ! ( s -> flags & CODEC_FLAG_GRAY ) ) {\n v -> vc1dsp . vc1_h_overlap ( s -> dest [ 1 ] , s -> uvlinesize ) ;\n v -> vc1dsp . vc1_h_overlap ( s -> dest [ 2 ] , s -> uvlinesize ) ;\n }\n }\n v -> vc1dsp . vc1_h_overlap ( s -> dest [ 0 ] + 8 , s -> linesize ) ;\n v -> vc1dsp . vc1_h_overlap ( s -> dest [ 0 ] + 8 * s -> linesize + 8 , s -> linesize ) ;\n if ( ! s -> first_slice_line ) {\n v -> vc1dsp . vc1_v_overlap ( s -> dest [ 0 ] , s -> linesize ) ;\n v -> vc1dsp . vc1_v_overlap ( s -> dest [ 0 ] + 8 , s -> linesize ) ;\n if ( ! ( s -> flags & CODEC_FLAG_GRAY ) ) {\n v -> vc1dsp . vc1_v_overlap ( s -> dest [ 1 ] , s -> uvlinesize ) ;\n v -> vc1dsp . vc1_v_overlap ( s -> dest [ 2 ] , s -> uvlinesize ) ;\n }\n }\n v -> vc1dsp . vc1_v_overlap ( s -> dest [ 0 ] + 8 * s -> linesize , s -> linesize ) ;\n v -> vc1dsp . vc1_v_overlap ( s -> dest [ 0 ] + 8 * s -> linesize + 8 , s -> linesize ) ;\n }\n if ( v -> s . loop_filter ) vc1_loop_filter_iblk ( v , v -> pq ) ;\n if ( get_bits_count ( & s -> gb ) > v -> bits ) {\n ff_er_add_slice ( & s -> er , 0 , 0 , s -> mb_x , s -> mb_y , ER_MB_ERROR ) ;\n av_log ( s -> avctx , AV_LOG_ERROR , \"Bits overconsumption: %i > %i\\n\" , get_bits_count ( & s -> gb ) , v -> bits ) ;\n return ;\n }\n }\n if ( ! v -> s . loop_filter ) ff_mpeg_draw_horiz_band ( s , s -> mb_y * 16 , 16 ) ;\n else if ( s -> mb_y ) ff_mpeg_draw_horiz_band ( s , ( s -> mb_y - 1 ) * 16 , 16 ) ;\n s -> first_slice_line = 0 ;\n }\n if ( v -> s . loop_filter ) ff_mpeg_draw_horiz_band ( s , ( s -> end_mb_y - 1 ) * 16 , 16 ) ;\n ff_er_add_slice ( & s -> er , 0 , 0 , s -> mb_width - 1 , s -> mb_height - 1 , ER_MB_END ) ;\n }"}
{"idx": 7154, "target": 0, "func": "static void useNormalConnectTimeout ( socket_handle_t sock ) {\n int res_rcv ;\n # ifdef _WIN32 const DWORD socket_timeout = 0 ;\n unsigned long non_blocking = 0 ;\n res_rcv = setsockopt ( sock , SOL_SOCKET , SO_RCVTIMEO , ( const char * ) & socket_timeout , sizeof ( socket_timeout ) ) ;\n ioctlsocket ( sock , FIONBIO , & non_blocking ) ;\n # else const struct timeval socket_timeout = {\n . tv_sec = SOCKET_RW_TIMEOUT_MS / 1000 , . tv_usec = ( SOCKET_RW_TIMEOUT_MS % 1000 ) * 1000 }\n ;\n res_rcv = setsockopt ( sock , SOL_SOCKET , SO_RCVTIMEO , & socket_timeout , sizeof ( socket_timeout ) ) ;\n # endif if ( res_rcv != 0 ) g_debug ( \"Can't set socket timeout, using default\" ) ;\n }"}
{"idx": 7155, "target": 0, "func": "static int loco_get_rice_param ( RICEContext * r ) {\n int cnt = 0 ;\n int val = r -> count ;\n while ( r -> sum > val && cnt < 9 ) {\n val <<= 1 ;\n cnt ++ ;\n }\n return cnt ;\n }"}
{"idx": 7156, "target": 0, "func": "static guint nlm_msg_res_unmatched_hash ( gconstpointer k ) {\n const nlm_msg_res_unmatched_data * umd = ( const nlm_msg_res_unmatched_data * ) k ;\n guint8 hash = 0 ;\n int i ;\n for ( i = 0 ;\n i < umd -> cookie_len ;\n i ++ ) {\n hash ^= umd -> cookie [ i ] ;\n }\n return hash ;\n }"}
{"idx": 7157, "target": 0, "func": "static int dissect_h245_ResponseMessage ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 407 \"../../asn1/h245/h245.cnf\" gint32 value ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_ResponseMessage , ResponseMessage_choice , & value ) ;\n if ( h245_shorttypes == TRUE ) {\n col_prepend_fstr ( actx -> pinfo -> cinfo , COL_INFO , \"%s \" , val_to_str ( value , h245_ResponseMessage_short_vals , \"<unknown>\" ) ) ;\n }\n else {\n col_prepend_fstr ( actx -> pinfo -> cinfo , COL_INFO , \"%s \" , val_to_str ( value , h245_ResponseMessage_vals , \"<unknown>\" ) ) ;\n }\n col_set_fence ( actx -> pinfo -> cinfo , COL_INFO ) ;\n if ( h245_pi != NULL ) {\n if ( strlen ( h245_pi -> frame_label ) == 0 ) {\n g_snprintf ( h245_pi -> frame_label , 50 , \"%s\" , val_to_str ( value , h245_ResponseMessage_short_vals , \"UKN\" ) ) ;\n }\n g_strlcat ( h245_pi -> comment , val_to_str ( value , h245_ResponseMessage_vals , \"<unknown>\" ) , 50 ) ;\n }\n return offset ;\n }"}
{"idx": 7158, "target": 0, "func": "static void _slurm_rpc_allocate_pack ( slurm_msg_t * msg ) {\n static int select_serial = - 1 ;\n static int active_rpc_cnt = 0 ;\n int error_code = SLURM_SUCCESS , inx , pack_cnt = - 1 ;\n DEF_TIMERS ;\n job_desc_msg_t * job_desc_msg ;\n List job_req_list = ( List ) msg -> data ;\n slurmctld_lock_t job_write_lock = {\n READ_LOCK , WRITE_LOCK , WRITE_LOCK , READ_LOCK , READ_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n gid_t gid = g_slurm_auth_get_gid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n uint32_t job_uid = NO_VAL ;\n struct job_record * job_ptr , * first_job_ptr = NULL ;\n char * err_msg = NULL , * * job_submit_user_msg = NULL ;\n ListIterator iter ;\n List submit_job_list = NULL ;\n uint32_t pack_job_id = 0 , pack_job_offset = 0 ;\n hostset_t jobid_hostset = NULL ;\n char tmp_str [ 32 ] ;\n List resp = NULL ;\n slurm_addr_t resp_addr ;\n char resp_host [ 16 ] ;\n uint16_t port ;\n START_TIMER ;\n if ( select_serial == - 1 ) {\n if ( xstrcmp ( slurmctld_conf . select_type , \"select/serial\" ) ) select_serial = 0 ;\n else select_serial = 1 ;\n }\n if ( slurmctld_config . submissions_disabled || ( select_serial == 1 ) ) {\n info ( \"Submissions disabled on system\" ) ;\n error_code = ESLURM_SUBMISSIONS_DISABLED ;\n goto send_msg ;\n }\n if ( ! _sched_backfill ( ) ) {\n error_code = ESLURM_NOT_SUPPORTED ;\n goto send_msg ;\n }\n if ( ! job_req_list || ( list_count ( job_req_list ) == 0 ) ) {\n info ( \"REQUEST_JOB_PACK_ALLOCATION from uid=%d with empty job list\" , uid ) ;\n error_code = SLURM_ERROR ;\n goto send_msg ;\n }\n if ( slurm_get_peer_addr ( msg -> conn_fd , & resp_addr ) == 0 ) {\n slurm_get_ip_str ( & resp_addr , & port , resp_host , sizeof ( resp_host ) ) ;\n }\n else {\n info ( \"REQUEST_JOB_PACK_ALLOCATION from uid=%d , can't get peer addr\" , uid ) ;\n error_code = SLURM_ERROR ;\n goto send_msg ;\n }\n debug2 ( \"sched: Processing RPC: REQUEST_JOB_PACK_ALLOCATION from uid=%d\" , uid ) ;\n pack_cnt = list_count ( job_req_list ) ;\n job_submit_user_msg = xmalloc ( sizeof ( char * ) * pack_cnt ) ;\n submit_job_list = list_create ( NULL ) ;\n _throttle_start ( & active_rpc_cnt ) ;\n lock_slurmctld ( job_write_lock ) ;\n inx = 0 ;\n iter = list_iterator_create ( job_req_list ) ;\n while ( ( job_desc_msg = ( job_desc_msg_t * ) list_next ( iter ) ) ) {\n if ( job_uid == NO_VAL ) job_uid = job_desc_msg -> user_id ;\n if ( ( error_code = _valid_id ( \"REQUEST_JOB_PACK_ALLOCATION\" , job_desc_msg , uid , gid ) ) ) {\n break ;\n }\n if ( ( job_desc_msg -> alloc_node == NULL ) || ( job_desc_msg -> alloc_node [ 0 ] == '\\0' ) ) {\n error_code = ESLURM_INVALID_NODE_NAME ;\n error ( \"REQUEST_JOB_PACK_ALLOCATION lacks alloc_node from uid=%d\" , uid ) ;\n break ;\n }\n if ( job_desc_msg -> array_inx ) {\n error_code = ESLURM_INVALID_ARRAY ;\n break ;\n }\n if ( job_desc_msg -> immediate ) {\n error_code = ESLURM_CAN_NOT_START_IMMEDIATELY ;\n break ;\n }\n job_desc_msg -> pack_job_offset = pack_job_offset ;\n error_code = validate_job_create_req ( job_desc_msg , uid , & job_submit_user_msg [ inx ++ ] ) ;\n if ( error_code ) break ;\n # if HAVE_ALPS_CRAY if ( allocated_session_in_use ( job_desc_msg ) ) {\n error_code = ESLURM_RESERVATION_BUSY ;\n error ( \"attempt to nest ALPS allocation on %s:%d by uid=%d\" , job_desc_msg -> alloc_node , job_desc_msg -> alloc_sid , uid ) ;\n break ;\n }\n # endif dump_job_desc ( job_desc_msg ) ;\n job_ptr = NULL ;\n if ( ! job_desc_msg -> resp_host ) job_desc_msg -> resp_host = xstrdup ( resp_host ) ;\n if ( pack_job_offset ) {\n job_desc_msg -> mail_type = 0 ;\n xfree ( job_desc_msg -> mail_user ) ;\n }\n job_desc_msg -> pack_job_offset = pack_job_offset ;\n error_code = job_allocate ( job_desc_msg , false , false , NULL , true , uid , & job_ptr , & err_msg , msg -> protocol_version ) ;\n if ( ! job_ptr ) {\n if ( error_code == SLURM_SUCCESS ) error_code = SLURM_ERROR ;\n break ;\n }\n if ( error_code && ( job_ptr -> job_state == JOB_FAILED ) ) break ;\n error_code = SLURM_SUCCESS ;\n if ( pack_job_id == 0 ) {\n pack_job_id = job_ptr -> job_id ;\n first_job_ptr = job_ptr ;\n }\n snprintf ( tmp_str , sizeof ( tmp_str ) , \"%u\" , job_ptr -> job_id ) ;\n if ( jobid_hostset ) hostset_insert ( jobid_hostset , tmp_str ) ;\n else jobid_hostset = hostset_create ( tmp_str ) ;\n job_ptr -> pack_job_id = pack_job_id ;\n job_ptr -> pack_job_offset = pack_job_offset ++ ;\n list_append ( submit_job_list , job_ptr ) ;\n }\n list_iterator_destroy ( iter ) ;\n if ( ( error_code == 0 ) && ( ! first_job_ptr ) ) {\n error ( \"%s: No error, but no pack_job_id\" , __func__ ) ;\n error_code = SLURM_ERROR ;\n }\n if ( ( error_code == SLURM_SUCCESS ) && ( accounting_enforce & ACCOUNTING_ENFORCE_LIMITS ) && ! acct_policy_validate_pack ( submit_job_list ) ) {\n info ( \"Pack job %u exceeded association/QOS limit for user %u\" , pack_job_id , job_uid ) ;\n error_code = ESLURM_ACCOUNTING_POLICY ;\n }\n if ( error_code ) {\n ( void ) list_for_each ( submit_job_list , _pack_job_cancel , NULL ) ;\n if ( first_job_ptr ) first_job_ptr -> pack_job_list = submit_job_list ;\n else FREE_NULL_LIST ( submit_job_list ) ;\n }\n else {\n resource_allocation_response_msg_t * alloc_msg ;\n ListIterator iter ;\n int buf_size = pack_job_offset * 16 ;\n char * tmp_str = xmalloc ( buf_size ) ;\n char * tmp_offset = tmp_str ;\n first_job_ptr -> pack_job_list = submit_job_list ;\n hostset_ranged_string ( jobid_hostset , buf_size , tmp_str ) ;\n if ( tmp_str [ 0 ] == '[' ) {\n tmp_offset = strchr ( tmp_str , ']' ) ;\n if ( tmp_offset ) tmp_offset [ 0 ] = '\\0' ;\n tmp_offset = tmp_str + 1 ;\n }\n inx = 0 ;\n iter = list_iterator_create ( submit_job_list ) ;\n while ( ( job_ptr = ( struct job_record * ) list_next ( iter ) ) ) {\n job_ptr -> pack_job_id_set = xstrdup ( tmp_offset ) ;\n if ( ! resp ) resp = list_create ( _del_alloc_pack_msg ) ;\n alloc_msg = xmalloc_nz ( sizeof ( resource_allocation_response_msg_t ) ) ;\n _build_alloc_msg ( job_ptr , alloc_msg , error_code , job_submit_user_msg [ inx ++ ] ) ;\n list_append ( resp , alloc_msg ) ;\n if ( slurmctld_conf . debug_flags & DEBUG_FLAG_HETERO_JOBS ) {\n char buf [ BUFSIZ ] ;\n info ( \"Submit %s\" , jobid2fmt ( job_ptr , buf , sizeof ( buf ) ) ) ;\n }\n }\n list_iterator_destroy ( iter ) ;\n xfree ( tmp_str ) ;\n }\n unlock_slurmctld ( job_write_lock ) ;\n _throttle_fini ( & active_rpc_cnt ) ;\n END_TIMER2 ( \"_slurm_rpc_allocate_pack\" ) ;\n if ( resp ) {\n slurm_msg_t response_msg ;\n slurm_msg_t_init ( & response_msg ) ;\n response_msg . conn = msg -> conn ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . msg_type = RESPONSE_JOB_PACK_ALLOCATION ;\n response_msg . data = resp ;\n if ( slurm_send_node_msg ( msg -> conn_fd , & response_msg ) < 0 ) _kill_job_on_msg_fail ( pack_job_id ) ;\n list_destroy ( resp ) ;\n }\n else {\n send_msg : info ( \"%s: %s \" , __func__ , slurm_strerror ( error_code ) ) ;\n if ( err_msg ) slurm_send_rc_err_msg ( msg , error_code , err_msg ) ;\n else slurm_send_rc_msg ( msg , error_code ) ;\n }\n xfree ( err_msg ) ;\n for ( inx = 0 ;\n inx < pack_cnt ;\n inx ++ ) xfree ( job_submit_user_msg [ inx ] ) ;\n xfree ( job_submit_user_msg ) ;\n if ( jobid_hostset ) hostset_destroy ( jobid_hostset ) ;\n schedule_job_save ( ) ;\n }"}
{"idx": 7159, "target": 0, "func": "static void useNonBlockingConnectTimeout ( socket_handle_t sock ) {\n int res_snd ;\n int res_rcv ;\n # ifdef _WIN32 const DWORD socket_timeout = SOCKET_RW_TIMEOUT_MS ;\n unsigned long non_blocking = 1 ;\n res_snd = setsockopt ( sock , SOL_SOCKET , SO_SNDTIMEO , ( const char * ) & socket_timeout , sizeof ( socket_timeout ) ) ;\n res_rcv = setsockopt ( sock , SOL_SOCKET , SO_RCVTIMEO , ( const char * ) & socket_timeout , sizeof ( socket_timeout ) ) ;\n ioctlsocket ( sock , FIONBIO , & non_blocking ) ;\n # else const struct timeval socket_timeout = {\n . tv_sec = SOCKET_RW_TIMEOUT_MS / 1000 , . tv_usec = ( SOCKET_RW_TIMEOUT_MS % 1000 ) * 1000 }\n ;\n res_snd = setsockopt ( sock , SOL_SOCKET , SO_SNDTIMEO , & socket_timeout , sizeof ( socket_timeout ) ) ;\n res_rcv = setsockopt ( sock , SOL_SOCKET , SO_RCVTIMEO , & socket_timeout , sizeof ( socket_timeout ) ) ;\n # endif if ( res_snd != 0 ) g_debug ( \"Can't set socket timeout, using default\" ) ;\n if ( res_rcv != 0 ) g_debug ( \"Can't set socket timeout, using default\" ) ;\n }"}
{"idx": 7160, "target": 0, "func": "static void dissect_zcl_appl_ctrl_ovrl_warning ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_appl_ctrl_warning_id , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n }"}
{"idx": 7161, "target": 0, "func": "struct archive_string * archive_strcat ( struct archive_string * as , const void * p ) {\n return archive_strncat ( as , p , 0x1000000 ) ;\n }"}
{"idx": 7162, "target": 0, "func": "static int dissect_h245_INTEGER_1_4095 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 4095U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 7163, "target": 0, "func": "TEST_P ( SlimmingPaintWebFrameTest , FrameViewScroll ) {\n DCHECK ( RuntimeEnabledFeatures : : SlimmingPaintV2Enabled ( ) ) ;\n InitializeWithHTML ( * WebView ( ) -> MainFrameImpl ( ) -> GetFrame ( ) , \"<style>\" \" #forceScroll {\n\" \" height: 2000px;\n\" \" width: 100px;\n\" \" }\n\" \"</style>\" \"<div id='forceScroll'></div>\" ) ;\n WebView ( ) -> UpdateAllLifecyclePhases ( ) ;\n auto * scrollable_area = GetLocalFrameView ( ) -> LayoutViewport ( ) ;\n EXPECT_NE ( nullptr , scrollable_area ) ;\n EXPECT_EQ ( ScrollHitTestLayerCount ( ) , 1u ) ;\n EXPECT_EQ ( ScrollOffset ( ) , scrollable_area -> GetScrollOffset ( ) ) ;\n ScrollHitTestLayerAt ( 0 ) -> SetScrollOffsetFromImplSide ( gfx : : ScrollOffset ( 0 , 1 ) ) ;\n WebView ( ) -> UpdateAllLifecyclePhases ( ) ;\n EXPECT_EQ ( ScrollOffset ( 0 , 1 ) , scrollable_area -> GetScrollOffset ( ) ) ;\n }"}
{"idx": 7164, "target": 0, "func": "void auth_client_request_continue ( struct auth_client_request * request , const char * data_base64 ) {\n struct const_iovec iov [ 3 ] ;\n const char * prefix ;\n prefix = t_strdup_printf ( \"CONT\\t%u\\t\" , request -> id ) ;\n iov [ 0 ] . iov_base = prefix ;\n iov [ 0 ] . iov_len = strlen ( prefix ) ;\n iov [ 1 ] . iov_base = data_base64 ;\n iov [ 1 ] . iov_len = strlen ( data_base64 ) ;\n iov [ 2 ] . iov_base = \"\\n\" ;\n iov [ 2 ] . iov_len = 1 ;\n if ( o_stream_sendv ( request -> conn -> output , iov , 3 ) < 0 ) i_error ( \"Error sending continue request to auth server: %m\" ) ;\n }"}
{"idx": 7165, "target": 0, "func": "static void dissect_q931_ia5_ie ( tvbuff_t * tvb , int offset , int len , proto_tree * tree , int hf_value ) {\n if ( len != 0 ) {\n proto_tree_add_item ( tree , hf_value , tvb , offset , len , ENC_ASCII | ENC_NA ) ;\n proto_item_append_text ( proto_tree_get_parent ( tree ) , \" '%s'\" , tvb_format_text ( tvb , offset , len ) ) ;\n }\n }"}
{"idx": 7166, "target": 0, "func": "void vp9_cyclic_refresh_set_rate_and_dist_sb ( CYCLIC_REFRESH * cr , int64_t rate_sb , int64_t dist_sb ) {\n cr -> projected_rate_sb = rate_sb ;\n cr -> projected_dist_sb = dist_sb ;\n }"}
{"idx": 7167, "target": 0, "func": "static inline void ip_tr_mc_map ( __be32 addr , char * buf ) {\n buf [ 0 ] = 0xC0 ;\n buf [ 1 ] = 0x00 ;\n buf [ 2 ] = 0x00 ;\n buf [ 3 ] = 0x04 ;\n buf [ 4 ] = 0x00 ;\n buf [ 5 ] = 0x00 ;\n }"}
{"idx": 7168, "target": 0, "func": "IN_PROC_BROWSER_TEST_P ( BrowserCloseManagerBrowserTest , TestMultipleWindows ) {\n browsers_ . push_back ( CreateBrowser ( browser ( ) -> profile ( ) ) ) ;\n ASSERT_NO_FATAL_FAILURE ( ui_test_utils : : NavigateToURL ( browsers_ [ 0 ] , embedded_test_server ( ) -> GetURL ( \"/beforeunload.html\" ) ) ) ;\n ASSERT_NO_FATAL_FAILURE ( ui_test_utils : : NavigateToURL ( browsers_ [ 1 ] , embedded_test_server ( ) -> GetURL ( \"/beforeunload.html\" ) ) ) ;\n PrepareForDialog ( browsers_ [ 0 ] ) ;\n PrepareForDialog ( browsers_ [ 1 ] ) ;\n {\n RepeatedNotificationObserver cancel_observer ( chrome : : NOTIFICATION_BROWSER_CLOSE_CANCELLED , 1 ) ;\n chrome : : CloseAllBrowsersAndQuit ( ) ;\n ASSERT_NO_FATAL_FAILURE ( CancelClose ( ) ) ;\n cancel_observer . Wait ( ) ;\n }\n EXPECT_FALSE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_EQ ( 1 , browsers_ [ 0 ] -> tab_strip_model ( ) -> count ( ) ) ;\n EXPECT_EQ ( 1 , browsers_ [ 1 ] -> tab_strip_model ( ) -> count ( ) ) ;\n {\n RepeatedNotificationObserver cancel_observer ( chrome : : NOTIFICATION_BROWSER_CLOSE_CANCELLED , 2 ) ;\n chrome : : CloseAllBrowsersAndQuit ( ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n ASSERT_NO_FATAL_FAILURE ( CancelClose ( ) ) ;\n cancel_observer . Wait ( ) ;\n }\n EXPECT_FALSE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_EQ ( 1 , browsers_ [ 0 ] -> tab_strip_model ( ) -> count ( ) ) ;\n EXPECT_EQ ( 1 , browsers_ [ 1 ] -> tab_strip_model ( ) -> count ( ) ) ;\n RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , 2 ) ;\n chrome : : CloseAllBrowsersAndQuit ( ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n close_observer . Wait ( ) ;\n EXPECT_TRUE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_TRUE ( BrowserList : : GetInstance ( ) -> empty ( ) ) ;\n }"}
{"idx": 7169, "target": 0, "func": "static void gst_asf_demux_reset ( GstASFDemux * demux , gboolean chain_reset ) {\n GST_LOG_OBJECT ( demux , \"resetting\" ) ;\n gst_segment_init ( & demux -> segment , GST_FORMAT_UNDEFINED ) ;\n demux -> segment_running = FALSE ;\n if ( demux -> adapter && ! chain_reset ) {\n gst_adapter_clear ( demux -> adapter ) ;\n g_object_unref ( demux -> adapter ) ;\n demux -> adapter = NULL ;\n }\n if ( demux -> taglist ) {\n gst_tag_list_unref ( demux -> taglist ) ;\n demux -> taglist = NULL ;\n }\n if ( demux -> metadata ) {\n gst_caps_unref ( demux -> metadata ) ;\n demux -> metadata = NULL ;\n }\n if ( demux -> global_metadata ) {\n gst_structure_free ( demux -> global_metadata ) ;\n demux -> global_metadata = NULL ;\n }\n if ( demux -> mut_ex_streams ) {\n g_slist_free ( demux -> mut_ex_streams ) ;\n demux -> mut_ex_streams = NULL ;\n }\n demux -> state = GST_ASF_DEMUX_STATE_HEADER ;\n g_free ( demux -> objpath ) ;\n demux -> objpath = NULL ;\n g_strfreev ( demux -> languages ) ;\n demux -> languages = NULL ;\n demux -> num_languages = 0 ;\n g_slist_foreach ( demux -> ext_stream_props , ( GFunc ) gst_mini_object_unref , NULL ) ;\n g_slist_free ( demux -> ext_stream_props ) ;\n demux -> ext_stream_props = NULL ;\n while ( demux -> old_num_streams > 0 ) {\n gst_asf_demux_free_stream ( demux , & demux -> old_stream [ demux -> old_num_streams - 1 ] ) ;\n -- demux -> old_num_streams ;\n }\n memset ( demux -> old_stream , 0 , sizeof ( demux -> old_stream ) ) ;\n demux -> old_num_streams = 0 ;\n if ( chain_reset ) {\n memcpy ( demux -> old_stream , demux -> stream , sizeof ( demux -> stream ) ) ;\n demux -> old_num_streams = demux -> num_streams ;\n demux -> num_streams = 0 ;\n }\n while ( demux -> num_streams > 0 ) {\n gst_asf_demux_free_stream ( demux , & demux -> stream [ demux -> num_streams - 1 ] ) ;\n -- demux -> num_streams ;\n }\n memset ( demux -> stream , 0 , sizeof ( demux -> stream ) ) ;\n if ( ! chain_reset ) {\n demux -> num_audio_streams = 0 ;\n demux -> num_video_streams = 0 ;\n demux -> have_group_id = FALSE ;\n demux -> group_id = G_MAXUINT ;\n }\n demux -> num_streams = 0 ;\n demux -> activated_streams = FALSE ;\n demux -> first_ts = GST_CLOCK_TIME_NONE ;\n demux -> segment_ts = GST_CLOCK_TIME_NONE ;\n demux -> in_gap = 0 ;\n if ( ! chain_reset ) gst_segment_init ( & demux -> in_segment , GST_FORMAT_UNDEFINED ) ;\n demux -> state = GST_ASF_DEMUX_STATE_HEADER ;\n demux -> seekable = FALSE ;\n demux -> broadcast = FALSE ;\n demux -> sidx_interval = 0 ;\n demux -> sidx_num_entries = 0 ;\n g_free ( demux -> sidx_entries ) ;\n demux -> sidx_entries = NULL ;\n demux -> speed_packets = 1 ;\n demux -> asf_3D_mode = GST_ASF_3D_NONE ;\n if ( chain_reset ) {\n GST_LOG_OBJECT ( demux , \"Restarting\" ) ;\n gst_segment_init ( & demux -> segment , GST_FORMAT_TIME ) ;\n demux -> need_newsegment = TRUE ;\n demux -> segment_seqnum = 0 ;\n demux -> segment_running = FALSE ;\n demux -> keyunit_sync = FALSE ;\n demux -> accurate = FALSE ;\n demux -> metadata = gst_caps_new_empty ( ) ;\n demux -> global_metadata = gst_structure_new_empty ( \"metadata\" ) ;\n demux -> data_size = 0 ;\n demux -> data_offset = 0 ;\n demux -> index_offset = 0 ;\n }\n else {\n demux -> base_offset = 0 ;\n }\n g_slist_free ( demux -> other_streams ) ;\n demux -> other_streams = NULL ;\n }"}
{"idx": 7170, "target": 0, "func": "static inline const guint8 * get_stringz_value ( wmem_allocator_t * scope , proto_tree * tree , tvbuff_t * tvb , gint start , gint length , gint * ret_length , const guint encoding ) {\n const guint8 * value ;\n if ( length < - 1 ) {\n report_type_length_mismatch ( tree , \"a string\" , length , TRUE ) ;\n }\n if ( length == - 1 ) {\n value = tvb_get_stringz_enc ( scope , tvb , start , & length , encoding ) ;\n }\n else if ( length == 0 ) {\n value = \"[Empty]\" ;\n }\n else {\n value = tvb_get_string_enc ( scope , tvb , start , length , encoding ) ;\n }\n * ret_length = length ;\n return value ;\n }"}
{"idx": 7171, "target": 0, "func": "static xmlLinkPtr xmlListLowerSearch ( xmlListPtr l , void * data ) {\n xmlLinkPtr lk ;\n if ( l == NULL ) return ( NULL ) ;\n for ( lk = l -> sentinel -> next ;\n lk != l -> sentinel && l -> linkCompare ( lk -> data , data ) < 0 ;\n lk = lk -> next ) ;\n return lk ;\n }"}
{"idx": 7172, "target": 0, "func": "FILE * __setmntent ( const char * file , const char * mode ) {\n size_t modelen = strlen ( mode ) ;\n char newmode [ modelen + 2 ] ;\n memcpy ( mempcpy ( newmode , mode , modelen ) , \"c\" , 2 ) ;\n FILE * result = fopen ( file , newmode ) ;\n if ( result != NULL ) __fsetlocking ( result , FSETLOCKING_BYCALLER ) ;\n return result ;\n }"}
{"idx": 7173, "target": 0, "func": "int dissect_h225_PresentationIndicator ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_PresentationIndicator , PresentationIndicator_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 7174, "target": 0, "func": "int ssl_choose_client_version ( SSL * s , int version ) {\n const version_info * vent ;\n const version_info * table ;\n switch ( s -> method -> version ) {\n default : if ( version != s -> version ) return SSL_R_WRONG_SSL_VERSION ;\n return 0 ;\n case TLS_ANY_VERSION : table = tls_version_table ;\n break ;\n case DTLS_ANY_VERSION : table = dtls_version_table ;\n break ;\n }\n for ( vent = table ;\n vent -> version != 0 ;\n ++ vent ) {\n const SSL_METHOD * method ;\n int err ;\n if ( version != vent -> version ) continue ;\n if ( vent -> cmeth == NULL ) break ;\n method = vent -> cmeth ( ) ;\n err = ssl_method_error ( s , method ) ;\n if ( err != 0 ) return err ;\n s -> method = method ;\n s -> version = version ;\n return 0 ;\n }\n return SSL_R_UNSUPPORTED_PROTOCOL ;\n }"}
{"idx": 7175, "target": 1, "func": "static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 7176, "target": 0, "func": "static void pop_end ( stroke_msg_t * msg , const char * label , stroke_end_t * end ) {\n pop_string ( msg , & end -> address ) ;\n pop_string ( msg , & end -> subnets ) ;\n pop_string ( msg , & end -> sourceip ) ;\n pop_string ( msg , & end -> dns ) ;\n pop_string ( msg , & end -> auth ) ;\n pop_string ( msg , & end -> auth2 ) ;\n pop_string ( msg , & end -> id ) ;\n pop_string ( msg , & end -> id2 ) ;\n pop_string ( msg , & end -> rsakey ) ;\n pop_string ( msg , & end -> cert ) ;\n pop_string ( msg , & end -> cert2 ) ;\n pop_string ( msg , & end -> ca ) ;\n pop_string ( msg , & end -> ca2 ) ;\n pop_string ( msg , & end -> groups ) ;\n pop_string ( msg , & end -> groups2 ) ;\n pop_string ( msg , & end -> cert_policy ) ;\n pop_string ( msg , & end -> updown ) ;\n DBG_OPT ( \" %s=%s\" , label , end -> address ) ;\n DBG_OPT ( \" %ssubnet=%s\" , label , end -> subnets ) ;\n DBG_OPT ( \" %ssourceip=%s\" , label , end -> sourceip ) ;\n DBG_OPT ( \" %sdns=%s\" , label , end -> dns ) ;\n DBG_OPT ( \" %sauth=%s\" , label , end -> auth ) ;\n DBG_OPT ( \" %sauth2=%s\" , label , end -> auth2 ) ;\n DBG_OPT ( \" %sid=%s\" , label , end -> id ) ;\n DBG_OPT ( \" %sid2=%s\" , label , end -> id2 ) ;\n DBG_OPT ( \" %srsakey=%s\" , label , end -> rsakey ) ;\n DBG_OPT ( \" %scert=%s\" , label , end -> cert ) ;\n DBG_OPT ( \" %scert2=%s\" , label , end -> cert2 ) ;\n DBG_OPT ( \" %sca=%s\" , label , end -> ca ) ;\n DBG_OPT ( \" %sca2=%s\" , label , end -> ca2 ) ;\n DBG_OPT ( \" %sgroups=%s\" , label , end -> groups ) ;\n DBG_OPT ( \" %sgroups2=%s\" , label , end -> groups2 ) ;\n DBG_OPT ( \" %supdown=%s\" , label , end -> updown ) ;\n }"}
{"idx": 7177, "target": 0, "func": "void TSFetchDestroy ( TSFetchSM fetch_sm ) {\n sdk_assert ( sdk_sanity_check_fetch_sm ( fetch_sm ) == TS_SUCCESS ) ;\n ( ( FetchSM * ) fetch_sm ) -> ext_destroy ( ) ;\n }"}
{"idx": 7178, "target": 0, "func": "void vp9_free_internal_frame_buffers ( InternalFrameBufferList * list ) {\n int i ;\n assert ( list != NULL ) ;\n for ( i = 0 ;\n i < list -> num_internal_frame_buffers ;\n ++ i ) {\n vpx_free ( list -> int_fb [ i ] . data ) ;\n list -> int_fb [ i ] . data = NULL ;\n }\n vpx_free ( list -> int_fb ) ;\n list -> int_fb = NULL ;\n }"}
{"idx": 7179, "target": 0, "func": "TEST_F ( ProfileInfoCacheTest , MigrateLegacyProfileNamesWithNewAvatarMenu ) {\n switches : : EnableNewAvatarMenuForTesting ( base : : CommandLine : : ForCurrentProcess ( ) ) ;\n EXPECT_EQ ( 0U , GetCache ( ) -> GetNumberOfProfiles ( ) ) ;\n base : : FilePath path_1 = GetProfilePath ( \"path_1\" ) ;\n GetCache ( ) -> AddProfileToCache ( path_1 , ASCIIToUTF16 ( \"Default Profile\" ) , base : : string16 ( ) , 0 , std : : string ( ) ) ;\n base : : FilePath path_2 = GetProfilePath ( \"path_2\" ) ;\n GetCache ( ) -> AddProfileToCache ( path_2 , ASCIIToUTF16 ( \"First user\" ) , base : : string16 ( ) , 1 , std : : string ( ) ) ;\n base : : string16 name_3 = ASCIIToUTF16 ( \"Lemonade\" ) ;\n base : : FilePath path_3 = GetProfilePath ( \"path_3\" ) ;\n GetCache ( ) -> AddProfileToCache ( path_3 , name_3 , base : : string16 ( ) , 2 , std : : string ( ) ) ;\n base : : string16 name_4 = ASCIIToUTF16 ( \"Batman\" ) ;\n base : : FilePath path_4 = GetProfilePath ( \"path_4\" ) ;\n GetCache ( ) -> AddProfileToCache ( path_4 , name_4 , base : : string16 ( ) , 3 , std : : string ( ) ) ;\n base : : string16 name_5 = ASCIIToUTF16 ( \"Person 2\" ) ;\n base : : FilePath path_5 = GetProfilePath ( \"path_5\" ) ;\n GetCache ( ) -> AddProfileToCache ( path_5 , name_5 , base : : string16 ( ) , 2 , std : : string ( ) ) ;\n EXPECT_EQ ( 5U , GetCache ( ) -> GetNumberOfProfiles ( ) ) ;\n ResetCache ( ) ;\n EXPECT_EQ ( ASCIIToUTF16 ( \"Person 1\" ) , GetCache ( ) -> GetNameOfProfileAtIndex ( GetCache ( ) -> GetIndexOfProfileWithPath ( path_1 ) ) ) ;\n EXPECT_EQ ( ASCIIToUTF16 ( \"Person 3\" ) , GetCache ( ) -> GetNameOfProfileAtIndex ( GetCache ( ) -> GetIndexOfProfileWithPath ( path_2 ) ) ) ;\n EXPECT_EQ ( name_3 , GetCache ( ) -> GetNameOfProfileAtIndex ( GetCache ( ) -> GetIndexOfProfileWithPath ( path_3 ) ) ) ;\n EXPECT_EQ ( name_4 , GetCache ( ) -> GetNameOfProfileAtIndex ( GetCache ( ) -> GetIndexOfProfileWithPath ( path_4 ) ) ) ;\n EXPECT_EQ ( name_5 , GetCache ( ) -> GetNameOfProfileAtIndex ( GetCache ( ) -> GetIndexOfProfileWithPath ( path_5 ) ) ) ;\n }"}
{"idx": 7180, "target": 0, "func": "inline static void _slurm_rpc_suspend ( slurm_msg_t * msg ) {\n int error_code = SLURM_SUCCESS ;\n DEF_TIMERS ;\n suspend_msg_t * sus_ptr = ( suspend_msg_t * ) msg -> data ;\n slurmctld_lock_t job_write_lock = {\n NO_LOCK , WRITE_LOCK , WRITE_LOCK , NO_LOCK , NO_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n struct job_record * job_ptr ;\n char * op ;\n START_TIMER ;\n switch ( sus_ptr -> op ) {\n case SUSPEND_JOB : op = \"suspend\" ;\n break ;\n case RESUME_JOB : op = \"resume\" ;\n break ;\n default : op = \"unknown\" ;\n }\n info ( \"Processing RPC: REQUEST_SUSPEND(%s) from uid=%u\" , op , ( unsigned int ) uid ) ;\n if ( ( sus_ptr -> job_id == NO_VAL ) && sus_ptr -> job_id_str ) sus_ptr -> job_id = strtol ( sus_ptr -> job_id_str , NULL , 10 ) ;\n lock_slurmctld ( job_write_lock ) ;\n job_ptr = find_job_record ( sus_ptr -> job_id ) ;\n if ( ! job_ptr && ! _route_msg_to_origin ( msg , NULL , sus_ptr -> job_id , uid ) ) {\n unlock_slurmctld ( job_write_lock ) ;\n return ;\n }\n if ( ! job_ptr ) error_code = ESLURM_INVALID_JOB_ID ;\n else if ( fed_mgr_cluster_rec && job_ptr -> fed_details && fed_mgr_is_origin_job ( job_ptr ) && IS_JOB_REVOKED ( job_ptr ) && job_ptr -> fed_details -> cluster_lock && ( job_ptr -> fed_details -> cluster_lock != fed_mgr_cluster_rec -> fed . id ) ) {\n slurmdb_cluster_rec_t * dst = fed_mgr_get_cluster_by_id ( job_ptr -> fed_details -> cluster_lock ) ;\n if ( dst ) {\n slurm_send_reroute_msg ( msg , dst ) ;\n info ( \"%s: %s job %d uid %d routed to %s\" , __func__ , rpc_num2string ( msg -> msg_type ) , job_ptr -> job_id , uid , dst -> name ) ;\n unlock_slurmctld ( job_write_lock ) ;\n END_TIMER2 ( \"_slurm_rpc_suspend\" ) ;\n return ;\n }\n error ( \"couldn't find cluster by cluster id %d\" , job_ptr -> fed_details -> cluster_lock ) ;\n error_code = ESLURM_INVALID_CLUSTER_NAME ;\n }\n else if ( sus_ptr -> job_id_str ) {\n error_code = job_suspend2 ( sus_ptr , uid , msg -> conn_fd , true , msg -> protocol_version ) ;\n }\n else {\n error_code = job_suspend ( sus_ptr , uid , msg -> conn_fd , true , msg -> protocol_version ) ;\n }\n unlock_slurmctld ( job_write_lock ) ;\n END_TIMER2 ( \"_slurm_rpc_suspend\" ) ;\n if ( ! sus_ptr -> job_id_str ) xstrfmtcat ( sus_ptr -> job_id_str , \"%u\" , sus_ptr -> job_id ) ;\n if ( error_code ) {\n info ( \"_slurm_rpc_suspend(%s) for %s %s\" , op , sus_ptr -> job_id_str , slurm_strerror ( error_code ) ) ;\n }\n else {\n info ( \"_slurm_rpc_suspend(%s) for %s %s\" , op , sus_ptr -> job_id_str , TIME_STR ) ;\n schedule_job_save ( ) ;\n if ( sus_ptr -> op == SUSPEND_JOB ) queue_job_scheduler ( ) ;\n }\n }"}
{"idx": 7181, "target": 0, "func": "static void selinux_sem_free_security ( struct sem_array * sma ) {\n ipc_free_security ( & sma -> sem_perm ) ;\n }"}
{"idx": 7182, "target": 0, "func": "static int get_dns_name_type_class ( tvbuff_t * tvb , int offset , int dns_data_offset , const guchar * * name_ret , int * name_len_ret , int * type_ret , int * class_ret ) {\n int len ;\n int name_len ;\n int type ;\n int dns_class ;\n int start_offset = offset ;\n name_len = get_dns_name ( tvb , offset , 0 , dns_data_offset , name_ret ) ;\n offset += name_len ;\n type = tvb_get_ntohs ( tvb , offset ) ;\n offset += 2 ;\n dns_class = tvb_get_ntohs ( tvb , offset ) ;\n offset += 2 ;\n * type_ret = type ;\n * class_ret = dns_class ;\n * name_len_ret = name_len ;\n len = offset - start_offset ;\n return len ;\n }"}
{"idx": 7183, "target": 0, "func": "void remove_tap_listener_h245dg_calls ( void ) {\n remove_tap_listener ( & ( the_tapinfo_struct . h245dg_dummy ) ) ;\n have_H245dg_tap_listener = FALSE ;\n }"}
{"idx": 7184, "target": 0, "func": "static void dissect_coap_opt_object_security ( tvbuff_t * tvb , proto_item * head_item , proto_tree * subtree , gint offset , gint opt_length , packet_info * pinfo , coap_info * coinfo , coap_common_dissect_t * dissect_hf ) {\n guint8 flag_byte = 0 ;\n gboolean non_compressed = FALSE ;\n gboolean expand = FALSE ;\n gboolean signature_present = FALSE ;\n gboolean kid_context_present = FALSE ;\n gboolean kid_present = FALSE ;\n guint8 piv_len = 0 ;\n guint8 kid_context_len = 0 ;\n guint8 kid_len = 0 ;\n coinfo -> object_security = TRUE ;\n coinfo -> oscore_info -> piv = NULL ;\n coinfo -> oscore_info -> piv_len = 0 ;\n coinfo -> oscore_info -> kid_context = NULL ;\n coinfo -> oscore_info -> kid_context_len = 0 ;\n coinfo -> oscore_info -> kid = NULL ;\n coinfo -> oscore_info -> kid_len = 0 ;\n if ( opt_length == 0 ) {\n proto_item_append_text ( head_item , \": 00 (no Flag Byte)\" ) ;\n }\n else {\n flag_byte = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( subtree , dissect_hf -> hf . opt_object_security_non_compressed , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n non_compressed = flag_byte & COAP_OBJECT_SECURITY_NON_COMPRESSED_MASK ;\n proto_tree_add_item ( subtree , dissect_hf -> hf . opt_object_security_expand , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n expand = flag_byte & COAP_OBJECT_SECURITY_EXPAND_MASK ;\n proto_tree_add_item ( subtree , dissect_hf -> hf . opt_object_security_signature , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n signature_present = flag_byte & COAP_OBJECT_SECURITY_SIGNATURE_MASK ;\n proto_tree_add_item ( subtree , dissect_hf -> hf . opt_object_security_kid_context_present , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n kid_context_present = flag_byte & COAP_OBJECT_SECURITY_KID_CONTEXT_MASK ;\n proto_tree_add_item ( subtree , dissect_hf -> hf . opt_object_security_kid_present , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n kid_present = flag_byte & COAP_OBJECT_SECURITY_KID_MASK ;\n proto_tree_add_item ( subtree , dissect_hf -> hf . opt_object_security_piv_len , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n piv_len = ( flag_byte & COAP_OBJECT_SECURITY_PIVLEN_MASK ) >> 0 ;\n kid_len = opt_length ;\n offset += 1 ;\n kid_len -= 1 ;\n if ( non_compressed || expand || signature_present ) {\n expert_add_info_format ( pinfo , subtree , & dissect_hf -> ei . opt_object_security_bad , \"Unsupported format\" ) ;\n }\n if ( piv_len > 0 ) {\n proto_tree_add_item ( subtree , dissect_hf -> hf . opt_object_security_piv , tvb , offset , piv_len , ENC_NA ) ;\n coinfo -> oscore_info -> piv = ( guint8 * ) tvb_memdup ( wmem_packet_scope ( ) , tvb , offset , piv_len ) ;\n coinfo -> oscore_info -> piv_len = piv_len ;\n offset += piv_len ;\n kid_len -= piv_len ;\n }\n if ( kid_context_present ) {\n proto_tree_add_item ( subtree , dissect_hf -> hf . opt_object_security_kid_context_len , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n kid_context_len = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n kid_len -= 1 ;\n proto_tree_add_item ( subtree , dissect_hf -> hf . opt_object_security_kid_context , tvb , offset , kid_context_len , ENC_NA ) ;\n coinfo -> oscore_info -> kid_context = ( guint8 * ) tvb_memdup ( wmem_packet_scope ( ) , tvb , offset , kid_context_len ) ;\n coinfo -> oscore_info -> kid_context_len = kid_context_len ;\n offset += kid_context_len ;\n kid_len -= kid_context_len ;\n }\n if ( kid_present ) {\n if ( kid_len > 0 ) {\n proto_tree_add_item ( subtree , dissect_hf -> hf . opt_object_security_kid , tvb , offset , kid_len , ENC_NA ) ;\n coinfo -> oscore_info -> kid = ( guint8 * ) tvb_memdup ( wmem_packet_scope ( ) , tvb , offset , kid_len ) ;\n coinfo -> oscore_info -> kid_len = kid_len ;\n }\n else {\n expert_add_info_format ( pinfo , subtree , & dissect_hf -> ei . opt_object_security_bad , \"Key ID flag is set but there are no remaining bytes to be processed\" ) ;\n }\n }\n proto_item_append_text ( head_item , \": Key ID:%s, Key ID Context:%s, Partial IV:%s\" , coinfo -> oscore_info -> kid == NULL ? nullstr : bytes_to_str ( wmem_packet_scope ( ) , coinfo -> oscore_info -> kid , coinfo -> oscore_info -> kid_len ) , coinfo -> oscore_info -> kid_context == NULL ? nullstr : bytes_to_str ( wmem_packet_scope ( ) , coinfo -> oscore_info -> kid_context , coinfo -> oscore_info -> kid_context_len ) , coinfo -> oscore_info -> piv == NULL ? nullstr : bytes_to_str ( wmem_packet_scope ( ) , coinfo -> oscore_info -> piv , coinfo -> oscore_info -> piv_len ) ) ;\n }\n }"}
{"idx": 7185, "target": 0, "func": "static void truespeech_update_filters ( TSContext * dec , int16_t * out , int quart ) {\n int i ;\n memmove ( dec -> filtbuf , & dec -> filtbuf [ 60 ] , 86 * sizeof ( * dec -> filtbuf ) ) ;\n for ( i = 0 ;\n i < 60 ;\n i ++ ) {\n dec -> filtbuf [ i + 86 ] = out [ i ] + dec -> newvec [ i ] - ( dec -> newvec [ i ] >> 3 ) ;\n out [ i ] += dec -> newvec [ i ] ;\n }\n }"}
{"idx": 7186, "target": 0, "func": "static void pdf_show_pattern ( fz_context * ctx , pdf_run_processor * pr , pdf_pattern * pat , pdf_gstate * pat_gstate , const fz_rect * area , int what ) {\n pdf_gstate * gstate ;\n int gparent_save ;\n fz_matrix ptm , invptm , gparent_save_ctm ;\n int x0 , y0 , x1 , y1 ;\n float fx0 , fy0 , fx1 , fy1 ;\n fz_rect local_area ;\n int id ;\n pdf_gsave ( ctx , pr ) ;\n gstate = pr -> gstate + pr -> gtop ;\n pdf_copy_pattern_gstate ( ctx , gstate , pat_gstate ) ;\n if ( pat -> ismask ) {\n pdf_unset_pattern ( ctx , pr , PDF_FILL ) ;\n pdf_unset_pattern ( ctx , pr , PDF_STROKE ) ;\n if ( what == PDF_FILL ) {\n pdf_drop_material ( ctx , & gstate -> stroke ) ;\n pdf_keep_material ( ctx , & gstate -> fill ) ;\n gstate -> stroke = gstate -> fill ;\n }\n if ( what == PDF_STROKE ) {\n pdf_drop_material ( ctx , & gstate -> fill ) ;\n pdf_keep_material ( ctx , & gstate -> stroke ) ;\n gstate -> fill = gstate -> stroke ;\n }\n id = 0 ;\n }\n else {\n pdf_unset_pattern ( ctx , pr , what ) ;\n id = pat -> id ;\n }\n if ( gstate -> softmask ) {\n pdf_drop_xobject ( ctx , gstate -> softmask ) ;\n gstate -> softmask = NULL ;\n }\n fz_concat ( & ptm , & pat -> matrix , & pat_gstate -> ctm ) ;\n fz_invert_matrix ( & invptm , & ptm ) ;\n gparent_save = pr -> gparent ;\n pr -> gparent = pr -> gtop - 1 ;\n gparent_save_ctm = pr -> gstate [ pr -> gparent ] . ctm ;\n pr -> gstate [ pr -> gparent ] . ctm = ptm ;\n fz_try ( ctx ) {\n local_area = * area ;\n fz_transform_rect ( & local_area , & invptm ) ;\n fx0 = ( local_area . x0 - pat -> bbox . x0 ) / pat -> xstep ;\n fy0 = ( local_area . y0 - pat -> bbox . y0 ) / pat -> ystep ;\n fx1 = ( local_area . x1 - pat -> bbox . x0 ) / pat -> xstep ;\n fy1 = ( local_area . y1 - pat -> bbox . y0 ) / pat -> ystep ;\n if ( fx0 > fx1 ) {\n float t = fx0 ;\n fx0 = fx1 ;\n fx1 = t ;\n }\n if ( fy0 > fy1 ) {\n float t = fy0 ;\n fy0 = fy1 ;\n fy1 = t ;\n }\n # ifdef TILE if ( fx1 - fx0 > 1 || fy1 - fy0 > 1 ) # else if ( 0 ) # endif {\n int cached = fz_begin_tile_id ( ctx , pr -> dev , & local_area , & pat -> bbox , pat -> xstep , pat -> ystep , & ptm , id ) ;\n if ( cached ) {\n fz_end_tile ( ctx , pr -> dev ) ;\n }\n else {\n gstate -> ctm = ptm ;\n pdf_gsave ( ctx , pr ) ;\n fz_try ( ctx ) pdf_process_contents ( ctx , ( pdf_processor * ) pr , pat -> document , pat -> resources , pat -> contents , NULL ) ;\n fz_always ( ctx ) {\n pdf_grestore ( ctx , pr ) ;\n fz_end_tile ( ctx , pr -> dev ) ;\n }\n fz_catch ( ctx ) fz_rethrow ( ctx ) ;\n }\n }\n else {\n int x , y ;\n x0 = floorf ( fx0 + 0.001f ) ;\n y0 = floorf ( fy0 + 0.001f ) ;\n x1 = ceilf ( fx1 - 0.001f ) ;\n y1 = ceilf ( fy1 - 0.001f ) ;\n if ( fx1 > fx0 && x1 == x0 ) x1 = x0 + 1 ;\n if ( fy1 > fy0 && y1 == y0 ) y1 = y0 + 1 ;\n for ( y = y0 ;\n y < y1 ;\n y ++ ) {\n for ( x = x0 ;\n x < x1 ;\n x ++ ) {\n gstate -> ctm = ptm ;\n fz_pre_translate ( & gstate -> ctm , x * pat -> xstep , y * pat -> ystep ) ;\n pdf_gsave ( ctx , pr ) ;\n fz_try ( ctx ) pdf_process_contents ( ctx , ( pdf_processor * ) pr , pat -> document , pat -> resources , pat -> contents , NULL ) ;\n fz_always ( ctx ) pdf_grestore ( ctx , pr ) ;\n fz_catch ( ctx ) fz_rethrow ( ctx ) ;\n }\n }\n }\n }\n fz_always ( ctx ) {\n pr -> gstate [ pr -> gparent ] . ctm = gparent_save_ctm ;\n pr -> gparent = gparent_save ;\n }\n fz_catch ( ctx ) {\n fz_rethrow ( ctx ) ;\n }\n pdf_grestore ( ctx , pr ) ;\n }"}
{"idx": 7187, "target": 0, "func": "SPL_METHOD ( SplFileObject , ftell ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n long ret = php_stream_tell ( intern -> u . file . stream ) ;\n if ( ret == - 1 ) {\n RETURN_FALSE ;\n }\n else {\n RETURN_LONG ( ret ) ;\n }\n }"}
{"idx": 7188, "target": 0, "func": "int ssl3_read_n ( SSL * s , int n , int max , int extend , int clearold ) {\n int i , len , left ;\n size_t align = 0 ;\n unsigned char * pkt ;\n SSL3_BUFFER * rb ;\n if ( n <= 0 ) return n ;\n rb = & s -> rlayer . rbuf ;\n if ( rb -> buf == NULL ) if ( ! ssl3_setup_read_buffer ( s ) ) return - 1 ;\n left = rb -> left ;\n # if defined ( SSL3_ALIGN_PAYLOAD ) && SSL3_ALIGN_PAYLOAD != 0 align = ( size_t ) rb -> buf + SSL3_RT_HEADER_LENGTH ;\n align = SSL3_ALIGN_PAYLOAD - 1 - ( ( align - 1 ) % SSL3_ALIGN_PAYLOAD ) ;\n # endif if ( ! extend ) {\n if ( left == 0 ) rb -> offset = align ;\n else if ( align != 0 && left >= SSL3_RT_HEADER_LENGTH ) {\n pkt = rb -> buf + rb -> offset ;\n if ( pkt [ 0 ] == SSL3_RT_APPLICATION_DATA && ( pkt [ 3 ] << 8 | pkt [ 4 ] ) >= 128 ) {\n memmove ( rb -> buf + align , pkt , left ) ;\n rb -> offset = align ;\n }\n }\n s -> rlayer . packet = rb -> buf + rb -> offset ;\n s -> rlayer . packet_length = 0 ;\n }\n if ( SSL_IS_DTLS ( s ) ) {\n if ( left == 0 && extend ) return 0 ;\n if ( left > 0 && n > left ) n = left ;\n }\n if ( left >= n ) {\n s -> rlayer . packet_length += n ;\n rb -> left = left - n ;\n rb -> offset += n ;\n return ( n ) ;\n }\n len = s -> rlayer . packet_length ;\n pkt = rb -> buf + align ;\n if ( s -> rlayer . packet != pkt && clearold == 1 ) {\n memmove ( pkt , s -> rlayer . packet , len + left ) ;\n s -> rlayer . packet = pkt ;\n rb -> offset = len + align ;\n }\n if ( n > ( int ) ( rb -> len - rb -> offset ) ) {\n SSLerr ( SSL_F_SSL3_READ_N , ERR_R_INTERNAL_ERROR ) ;\n return - 1 ;\n }\n if ( ! s -> rlayer . read_ahead && ! SSL_IS_DTLS ( s ) ) max = n ;\n else {\n if ( max < n ) max = n ;\n if ( max > ( int ) ( rb -> len - rb -> offset ) ) max = rb -> len - rb -> offset ;\n }\n while ( left < n ) {\n clear_sys_error ( ) ;\n if ( s -> rbio != NULL ) {\n s -> rwstate = SSL_READING ;\n i = BIO_read ( s -> rbio , pkt + len + left , max - left ) ;\n }\n else {\n SSLerr ( SSL_F_SSL3_READ_N , SSL_R_READ_BIO_NOT_SET ) ;\n i = - 1 ;\n }\n if ( i <= 0 ) {\n rb -> left = left ;\n if ( s -> mode & SSL_MODE_RELEASE_BUFFERS && ! SSL_IS_DTLS ( s ) ) if ( len + left == 0 ) ssl3_release_read_buffer ( s ) ;\n return ( i ) ;\n }\n left += i ;\n if ( SSL_IS_DTLS ( s ) ) {\n if ( n > left ) n = left ;\n }\n }\n rb -> offset += n ;\n rb -> left = left - n ;\n s -> rlayer . packet_length += n ;\n s -> rwstate = SSL_NOTHING ;\n return ( n ) ;\n }"}
{"idx": 7189, "target": 0, "func": "void vp9_setup_pred_block ( const MACROBLOCKD * xd , struct buf_2d dst [ MAX_MB_PLANE ] , const YV12_BUFFER_CONFIG * src , int mi_row , int mi_col , const struct scale_factors * scale , const struct scale_factors * scale_uv ) {\n int i ;\n dst [ 0 ] . buf = src -> y_buffer ;\n dst [ 0 ] . stride = src -> y_stride ;\n dst [ 1 ] . buf = src -> u_buffer ;\n dst [ 2 ] . buf = src -> v_buffer ;\n dst [ 1 ] . stride = dst [ 2 ] . stride = src -> uv_stride ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n ++ i ) {\n setup_pred_plane ( dst + i , dst [ i ] . buf , dst [ i ] . stride , mi_row , mi_col , i ? scale_uv : scale , xd -> plane [ i ] . subsampling_x , xd -> plane [ i ] . subsampling_y ) ;\n }\n }"}
{"idx": 7190, "target": 0, "func": "void kvm_synchronize_all_tsc ( void ) {\n CPUState * cpu ;\n if ( kvm_enabled ( ) ) {\n CPU_FOREACH ( cpu ) {\n run_on_cpu ( cpu , do_kvm_synchronize_tsc , RUN_ON_CPU_NULL ) ;\n }\n }\n }"}
{"idx": 7191, "target": 0, "func": "void vp8_update_zbin_extra ( VP8_COMP * cpi , MACROBLOCK * x ) {\n int i ;\n int QIndex = x -> q_index ;\n int zbin_extra ;\n zbin_extra = ZBIN_EXTRA_Y ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) x -> block [ i ] . zbin_extra = ( short ) zbin_extra ;\n zbin_extra = ZBIN_EXTRA_UV ;\n for ( i = 16 ;\n i < 24 ;\n i ++ ) x -> block [ i ] . zbin_extra = ( short ) zbin_extra ;\n zbin_extra = ZBIN_EXTRA_Y2 ;\n x -> block [ 24 ] . zbin_extra = ( short ) zbin_extra ;\n }"}
{"idx": 7192, "target": 0, "func": "static int qio_channel_websock_set_blocking ( QIOChannel * ioc , bool enabled , Error * * errp ) {\n QIOChannelWebsock * wioc = QIO_CHANNEL_WEBSOCK ( ioc ) ;\n qio_channel_set_blocking ( wioc -> master , enabled , errp ) ;\n return 0 ;\n }"}
{"idx": 7193, "target": 1, "func": "static void idct16 ( const int16_t * input , int16_t * output ) {\n int16_t step1 [ 16 ] , step2 [ 16 ] ;\n int temp1 , temp2 ;\n step1 [ 0 ] = input [ 0 / 2 ] ;\n step1 [ 1 ] = input [ 16 / 2 ] ;\n step1 [ 2 ] = input [ 8 / 2 ] ;\n step1 [ 3 ] = input [ 24 / 2 ] ;\n step1 [ 4 ] = input [ 4 / 2 ] ;\n step1 [ 5 ] = input [ 20 / 2 ] ;\n step1 [ 6 ] = input [ 12 / 2 ] ;\n step1 [ 7 ] = input [ 28 / 2 ] ;\n step1 [ 8 ] = input [ 2 / 2 ] ;\n step1 [ 9 ] = input [ 18 / 2 ] ;\n step1 [ 10 ] = input [ 10 / 2 ] ;\n step1 [ 11 ] = input [ 26 / 2 ] ;\n step1 [ 12 ] = input [ 6 / 2 ] ;\n step1 [ 13 ] = input [ 22 / 2 ] ;\n step1 [ 14 ] = input [ 14 / 2 ] ;\n step1 [ 15 ] = input [ 30 / 2 ] ;\n step2 [ 0 ] = step1 [ 0 ] ;\n step2 [ 1 ] = step1 [ 1 ] ;\n step2 [ 2 ] = step1 [ 2 ] ;\n step2 [ 3 ] = step1 [ 3 ] ;\n step2 [ 4 ] = step1 [ 4 ] ;\n step2 [ 5 ] = step1 [ 5 ] ;\n step2 [ 6 ] = step1 [ 6 ] ;\n step2 [ 7 ] = step1 [ 7 ] ;\n temp1 = step1 [ 8 ] * cospi_30_64 - step1 [ 15 ] * cospi_2_64 ;\n temp2 = step1 [ 8 ] * cospi_2_64 + step1 [ 15 ] * cospi_30_64 ;\n step2 [ 8 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 15 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = step1 [ 9 ] * cospi_14_64 - step1 [ 14 ] * cospi_18_64 ;\n temp2 = step1 [ 9 ] * cospi_18_64 + step1 [ 14 ] * cospi_14_64 ;\n step2 [ 9 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 14 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = step1 [ 10 ] * cospi_22_64 - step1 [ 13 ] * cospi_10_64 ;\n temp2 = step1 [ 10 ] * cospi_10_64 + step1 [ 13 ] * cospi_22_64 ;\n step2 [ 10 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 13 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = step1 [ 11 ] * cospi_6_64 - step1 [ 12 ] * cospi_26_64 ;\n temp2 = step1 [ 11 ] * cospi_26_64 + step1 [ 12 ] * cospi_6_64 ;\n step2 [ 11 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 12 ] = dct_const_round_shift ( temp2 ) ;\n step1 [ 0 ] = step2 [ 0 ] ;\n step1 [ 1 ] = step2 [ 1 ] ;\n step1 [ 2 ] = step2 [ 2 ] ;\n step1 [ 3 ] = step2 [ 3 ] ;\n temp1 = step2 [ 4 ] * cospi_28_64 - step2 [ 7 ] * cospi_4_64 ;\n temp2 = step2 [ 4 ] * cospi_4_64 + step2 [ 7 ] * cospi_28_64 ;\n step1 [ 4 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 7 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = step2 [ 5 ] * cospi_12_64 - step2 [ 6 ] * cospi_20_64 ;\n temp2 = step2 [ 5 ] * cospi_20_64 + step2 [ 6 ] * cospi_12_64 ;\n step1 [ 5 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 6 ] = dct_const_round_shift ( temp2 ) ;\n step1 [ 8 ] = step2 [ 8 ] + step2 [ 9 ] ;\n step1 [ 9 ] = step2 [ 8 ] - step2 [ 9 ] ;\n step1 [ 10 ] = - step2 [ 10 ] + step2 [ 11 ] ;\n step1 [ 11 ] = step2 [ 10 ] + step2 [ 11 ] ;\n step1 [ 12 ] = step2 [ 12 ] + step2 [ 13 ] ;\n step1 [ 13 ] = step2 [ 12 ] - step2 [ 13 ] ;\n step1 [ 14 ] = - step2 [ 14 ] + step2 [ 15 ] ;\n step1 [ 15 ] = step2 [ 14 ] + step2 [ 15 ] ;\n temp1 = ( step1 [ 0 ] + step1 [ 1 ] ) * cospi_16_64 ;\n temp2 = ( step1 [ 0 ] - step1 [ 1 ] ) * cospi_16_64 ;\n step2 [ 0 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 1 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = step1 [ 2 ] * cospi_24_64 - step1 [ 3 ] * cospi_8_64 ;\n temp2 = step1 [ 2 ] * cospi_8_64 + step1 [ 3 ] * cospi_24_64 ;\n step2 [ 2 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 3 ] = dct_const_round_shift ( temp2 ) ;\n step2 [ 4 ] = step1 [ 4 ] + step1 [ 5 ] ;\n step2 [ 5 ] = step1 [ 4 ] - step1 [ 5 ] ;\n step2 [ 6 ] = - step1 [ 6 ] + step1 [ 7 ] ;\n step2 [ 7 ] = step1 [ 6 ] + step1 [ 7 ] ;\n step2 [ 8 ] = step1 [ 8 ] ;\n step2 [ 15 ] = step1 [ 15 ] ;\n temp1 = - step1 [ 9 ] * cospi_8_64 + step1 [ 14 ] * cospi_24_64 ;\n temp2 = step1 [ 9 ] * cospi_24_64 + step1 [ 14 ] * cospi_8_64 ;\n step2 [ 9 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 14 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = - step1 [ 10 ] * cospi_24_64 - step1 [ 13 ] * cospi_8_64 ;\n temp2 = - step1 [ 10 ] * cospi_8_64 + step1 [ 13 ] * cospi_24_64 ;\n step2 [ 10 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 13 ] = dct_const_round_shift ( temp2 ) ;\n step2 [ 11 ] = step1 [ 11 ] ;\n step2 [ 12 ] = step1 [ 12 ] ;\n step1 [ 0 ] = step2 [ 0 ] + step2 [ 3 ] ;\n step1 [ 1 ] = step2 [ 1 ] + step2 [ 2 ] ;\n step1 [ 2 ] = step2 [ 1 ] - step2 [ 2 ] ;\n step1 [ 3 ] = step2 [ 0 ] - step2 [ 3 ] ;\n step1 [ 4 ] = step2 [ 4 ] ;\n temp1 = ( step2 [ 6 ] - step2 [ 5 ] ) * cospi_16_64 ;\n temp2 = ( step2 [ 5 ] + step2 [ 6 ] ) * cospi_16_64 ;\n step1 [ 5 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 6 ] = dct_const_round_shift ( temp2 ) ;\n step1 [ 7 ] = step2 [ 7 ] ;\n step1 [ 8 ] = step2 [ 8 ] + step2 [ 11 ] ;\n step1 [ 9 ] = step2 [ 9 ] + step2 [ 10 ] ;\n step1 [ 10 ] = step2 [ 9 ] - step2 [ 10 ] ;\n step1 [ 11 ] = step2 [ 8 ] - step2 [ 11 ] ;\n step1 [ 12 ] = - step2 [ 12 ] + step2 [ 15 ] ;\n step1 [ 13 ] = - step2 [ 13 ] + step2 [ 14 ] ;\n step1 [ 14 ] = step2 [ 13 ] + step2 [ 14 ] ;\n step1 [ 15 ] = step2 [ 12 ] + step2 [ 15 ] ;\n step2 [ 0 ] = step1 [ 0 ] + step1 [ 7 ] ;\n step2 [ 1 ] = step1 [ 1 ] + step1 [ 6 ] ;\n step2 [ 2 ] = step1 [ 2 ] + step1 [ 5 ] ;\n step2 [ 3 ] = step1 [ 3 ] + step1 [ 4 ] ;\n step2 [ 4 ] = step1 [ 3 ] - step1 [ 4 ] ;\n step2 [ 5 ] = step1 [ 2 ] - step1 [ 5 ] ;\n step2 [ 6 ] = step1 [ 1 ] - step1 [ 6 ] ;\n step2 [ 7 ] = step1 [ 0 ] - step1 [ 7 ] ;\n step2 [ 8 ] = step1 [ 8 ] ;\n step2 [ 9 ] = step1 [ 9 ] ;\n temp1 = ( - step1 [ 10 ] + step1 [ 13 ] ) * cospi_16_64 ;\n temp2 = ( step1 [ 10 ] + step1 [ 13 ] ) * cospi_16_64 ;\n step2 [ 10 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 13 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = ( - step1 [ 11 ] + step1 [ 12 ] ) * cospi_16_64 ;\n temp2 = ( step1 [ 11 ] + step1 [ 12 ] ) * cospi_16_64 ;\n step2 [ 11 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 12 ] = dct_const_round_shift ( temp2 ) ;\n step2 [ 14 ] = step1 [ 14 ] ;\n step2 [ 15 ] = step1 [ 15 ] ;\n output [ 0 ] = step2 [ 0 ] + step2 [ 15 ] ;\n output [ 1 ] = step2 [ 1 ] + step2 [ 14 ] ;\n output [ 2 ] = step2 [ 2 ] + step2 [ 13 ] ;\n output [ 3 ] = step2 [ 3 ] + step2 [ 12 ] ;\n output [ 4 ] = step2 [ 4 ] + step2 [ 11 ] ;\n output [ 5 ] = step2 [ 5 ] + step2 [ 10 ] ;\n output [ 6 ] = step2 [ 6 ] + step2 [ 9 ] ;\n output [ 7 ] = step2 [ 7 ] + step2 [ 8 ] ;\n output [ 8 ] = step2 [ 7 ] - step2 [ 8 ] ;\n output [ 9 ] = step2 [ 6 ] - step2 [ 9 ] ;\n output [ 10 ] = step2 [ 5 ] - step2 [ 10 ] ;\n output [ 11 ] = step2 [ 4 ] - step2 [ 11 ] ;\n output [ 12 ] = step2 [ 3 ] - step2 [ 12 ] ;\n output [ 13 ] = step2 [ 2 ] - step2 [ 13 ] ;\n output [ 14 ] = step2 [ 1 ] - step2 [ 14 ] ;\n output [ 15 ] = step2 [ 0 ] - step2 [ 15 ] ;\n }"}
{"idx": 7194, "target": 0, "func": "unsigned int vp9_sub_pixel_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp2 , W , dst , dst_stride , sse ) ;\n \\ }\n # define SUBPIX_AVG_VAR ( W , H ) unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 ) VAR ( 8 , 4 ) SUBPIX_VAR ( 8 , 4 ) SUBPIX_AVG_VAR ( 8 , 4 ) VAR ( 8 , 8 ) SUBPIX_VAR ( 8 , 8 ) SUBPIX_AVG_VAR ( 8 , 8 ) VAR ( 8 , 16 ) SUBPIX_VAR ( 8 , 16 )"}
{"idx": 7195, "target": 0, "func": "static int dissect_h245_INTEGER_0_9 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 9U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 7196, "target": 0, "func": "unsigned int vp9_sub_pixel_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp2 , W , dst , dst_stride , sse ) ;\n \\ }\n # define SUBPIX_AVG_VAR ( W , H ) unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 )"}
{"idx": 7197, "target": 0, "func": "static int dissect_h245_T_h223_al_type_al1Framed ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 294 \"../../asn1/h245/h245.cnf\" if ( h223_lc_params_temp ) h223_lc_params_temp -> al_type = al1Framed ;\n offset = dissect_per_null ( tvb , offset , actx , tree , hf_index ) ;\n return offset ;\n }"}
{"idx": 7198, "target": 0, "func": "static void * Type_MPEclut_Read ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number * nItems , cmsUInt32Number SizeOfTag ) {\n cmsStage * mpe = NULL ;\n cmsUInt16Number InputChans , OutputChans ;\n cmsUInt8Number Dimensions8 [ 16 ] ;\n cmsUInt32Number i , nMaxGrids , GridPoints [ MAX_INPUT_DIMENSIONS ] ;\n _cmsStageCLutData * clut ;\n if ( ! _cmsReadUInt16Number ( io , & InputChans ) ) return NULL ;\n if ( ! _cmsReadUInt16Number ( io , & OutputChans ) ) return NULL ;\n if ( InputChans == 0 ) goto Error ;\n if ( OutputChans == 0 ) goto Error ;\n if ( io -> Read ( io , Dimensions8 , sizeof ( cmsUInt8Number ) , 16 ) != 16 ) goto Error ;\n nMaxGrids = InputChans > MAX_INPUT_DIMENSIONS ? MAX_INPUT_DIMENSIONS : InputChans ;\n for ( i = 0 ;\n i < nMaxGrids ;\n i ++ ) GridPoints [ i ] = ( cmsUInt32Number ) Dimensions8 [ i ] ;\n mpe = cmsStageAllocCLutFloatGranular ( self -> ContextID , GridPoints , InputChans , OutputChans , NULL ) ;\n if ( mpe == NULL ) goto Error ;\n clut = ( _cmsStageCLutData * ) mpe -> Data ;\n for ( i = 0 ;\n i < clut -> nEntries ;\n i ++ ) {\n if ( ! _cmsReadFloat32Number ( io , & clut -> Tab . TFloat [ i ] ) ) goto Error ;\n }\n * nItems = 1 ;\n return mpe ;\n Error : * nItems = 0 ;\n if ( mpe != NULL ) cmsStageFree ( mpe ) ;\n return NULL ;\n cmsUNUSED_PARAMETER ( SizeOfTag ) ;\n }"}
{"idx": 7199, "target": 0, "func": "static inline int get_qscale ( MpegEncContext * s ) {\n int qscale = get_bits ( & s -> gb , 5 ) ;\n if ( s -> q_scale_type ) {\n return non_linear_qscale [ qscale ] ;\n }\n else {\n return qscale << 1 ;\n }\n }"}
{"idx": 7200, "target": 0, "func": "static void gic_dist_writew ( void * opaque , hwaddr offset , uint32_t value ) {\n gic_dist_writeb ( opaque , offset , value & 0xff ) ;\n gic_dist_writeb ( opaque , offset + 1 , value >> 8 ) ;\n }"}
{"idx": 7201, "target": 0, "func": "void irc_ctcp_recv ( struct t_irc_server * server , time_t date , const char * command , struct t_irc_channel * channel , const char * address , const char * nick , const char * remote_nick , char * arguments , char * message ) {\n char * pos_end , * pos_space , * pos_args ;\n const char * reply ;\n char * decoded_reply ;\n struct t_irc_channel * ptr_channel ;\n struct t_irc_nick * ptr_nick ;\n int nick_is_me ;\n while ( arguments && arguments [ 0 ] ) {\n pos_end = strrchr ( arguments + 1 , '\\01' ) ;\n if ( pos_end ) pos_end [ 0 ] = '\\0' ;\n pos_args = NULL ;\n pos_space = strchr ( arguments + 1 , ' ' ) ;\n if ( pos_space ) {\n pos_space [ 0 ] = '\\0' ;\n pos_args = pos_space + 1 ;\n while ( pos_args [ 0 ] == ' ' ) {\n pos_args ++ ;\n }\n }\n if ( strcmp ( arguments + 1 , \"ACTION\" ) == 0 ) {\n nick_is_me = ( irc_server_strcasecmp ( server , server -> nick , nick ) == 0 ) ;\n if ( channel ) {\n ptr_nick = irc_nick_search ( server , channel , nick ) ;\n irc_channel_nick_speaking_add ( channel , nick , ( pos_args ) ? weechat_string_has_highlight ( pos_args , server -> nick ) : 0 ) ;\n irc_channel_nick_speaking_time_remove_old ( channel ) ;\n irc_channel_nick_speaking_time_add ( server , channel , nick , time ( NULL ) ) ;\n weechat_printf_date_tags ( channel -> buffer , date , irc_protocol_tags ( command , ( nick_is_me ) ? \"irc_action,self_msg,notify_none,no_highlight\" : \"irc_action,notify_message\" , nick , address ) , \"%s%s%s%s%s%s%s\" , weechat_prefix ( \"action\" ) , irc_nick_mode_for_display ( server , ptr_nick , 0 ) , ( ptr_nick ) ? ptr_nick -> color : ( ( nick ) ? irc_nick_find_color ( nick ) : IRC_COLOR_CHAT_NICK ) , nick , ( pos_args ) ? IRC_COLOR_RESET : \"\" , ( pos_args ) ? \" \" : \"\" , ( pos_args ) ? pos_args : \"\" ) ;\n }\n else {\n ptr_channel = irc_channel_search ( server , remote_nick ) ;\n if ( ! ptr_channel ) {\n ptr_channel = irc_channel_new ( server , IRC_CHANNEL_TYPE_PRIVATE , remote_nick , 0 , 0 ) ;\n if ( ! ptr_channel ) {\n weechat_printf ( server -> buffer , _ ( \"%s%s: cannot create new private buffer \\\"%s\\\"\" ) , weechat_prefix ( \"error\" ) , IRC_PLUGIN_NAME , remote_nick ) ;\n }\n }\n if ( ptr_channel ) {\n if ( ! ptr_channel -> topic ) irc_channel_set_topic ( ptr_channel , address ) ;\n weechat_printf_date_tags ( ptr_channel -> buffer , date , irc_protocol_tags ( command , ( nick_is_me ) ? \"irc_action,self_msg,notify_none,no_highlight\" : \"irc_action,notify_private\" , nick , address ) , \"%s%s%s%s%s%s\" , weechat_prefix ( \"action\" ) , ( nick_is_me ) ? IRC_COLOR_CHAT_NICK_SELF : irc_nick_color_for_pv ( ptr_channel , nick ) , nick , ( pos_args ) ? IRC_COLOR_RESET : \"\" , ( pos_args ) ? \" \" : \"\" , ( pos_args ) ? pos_args : \"\" ) ;\n ( void ) weechat_hook_signal_send ( \"irc_pv\" , WEECHAT_HOOK_SIGNAL_STRING , message ) ;\n }\n }\n }\n else if ( strcmp ( arguments + 1 , \"PING\" ) == 0 ) {\n reply = irc_ctcp_get_reply ( server , arguments + 1 ) ;\n irc_ctcp_display_request ( server , date , command , channel , nick , address , arguments + 1 , pos_args , reply ) ;\n if ( ! reply || reply [ 0 ] ) {\n irc_ctcp_reply_to_nick ( server , command , channel , nick , arguments + 1 , pos_args ) ;\n }\n }\n else if ( strcmp ( arguments + 1 , \"DCC\" ) == 0 ) {\n irc_ctcp_recv_dcc ( server , nick , pos_args , message ) ;\n }\n else {\n reply = irc_ctcp_get_reply ( server , arguments + 1 ) ;\n if ( reply ) {\n irc_ctcp_display_request ( server , date , command , channel , nick , address , arguments + 1 , pos_args , reply ) ;\n if ( reply [ 0 ] ) {\n decoded_reply = irc_ctcp_replace_variables ( server , reply ) ;\n if ( decoded_reply ) {\n irc_ctcp_reply_to_nick ( server , command , channel , nick , arguments + 1 , decoded_reply ) ;\n free ( decoded_reply ) ;\n }\n }\n }\n else {\n if ( weechat_config_boolean ( irc_config_look_display_ctcp_unknown ) ) {\n weechat_printf_date_tags ( irc_msgbuffer_get_target_buffer ( server , nick , NULL , \"ctcp\" , ( channel ) ? channel -> buffer : NULL ) , date , irc_protocol_tags ( command , \"irc_ctcp\" , NULL , address ) , _ ( \"%sUnknown CTCP requested by %s%s%s: %s%s%s%s%s\" ) , weechat_prefix ( \"network\" ) , irc_nick_color_for_msg ( server , 0 , NULL , nick ) , nick , IRC_COLOR_RESET , IRC_COLOR_CHAT_CHANNEL , arguments + 1 , ( pos_args ) ? IRC_COLOR_RESET : \"\" , ( pos_args ) ? \" \" : \"\" , ( pos_args ) ? pos_args : \"\" ) ;\n }\n }\n }\n ( void ) weechat_hook_signal_send ( \"irc_ctcp\" , WEECHAT_HOOK_SIGNAL_STRING , message ) ;\n if ( pos_space ) pos_space [ 0 ] = ' ' ;\n if ( pos_end ) pos_end [ 0 ] = '\\01' ;\n arguments = ( pos_end ) ? pos_end + 1 : NULL ;\n }\n }"}
{"idx": 7202, "target": 0, "func": "static int fts_build_tokenized ( struct fts_mail_build_context * ctx , const unsigned char * data , size_t size , bool last ) {\n struct mail_user * user = ctx -> update_ctx -> backend -> ns -> user ;\n const struct fts_language * lang ;\n int ret ;\n if ( ctx -> cur_user_lang != NULL ) {\n }\n else if ( ( ret = fts_detect_language ( ctx , data , size , last , & lang ) ) < 0 ) {\n return - 1 ;\n }\n else if ( ret == 0 ) {\n return 0 ;\n }\n else {\n fts_mail_build_ctx_set_lang ( ctx , fts_user_language_find ( user , lang ) ) ;\n if ( ctx -> pending_input -> used > 0 ) {\n if ( fts_build_add_tokens_with_filter ( ctx , ctx -> pending_input -> data , ctx -> pending_input -> used ) < 0 ) return - 1 ;\n buffer_set_used_size ( ctx -> pending_input , 0 ) ;\n }\n }\n if ( fts_build_add_tokens_with_filter ( ctx , data , size ) < 0 ) return - 1 ;\n if ( last ) {\n if ( fts_build_add_tokens_with_filter ( ctx , NULL , 0 ) < 0 ) return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 7203, "target": 0, "func": "extern int name ( int ) __THROW __exctype ( isalnum ) ;\n __exctype ( isalpha )"}
{"idx": 7204, "target": 0, "func": "static int dwarf_elf_object_relocate_a_section ( void * obj_in , Dwarf_Half section_index , Dwarf_Debug dbg , int * error ) {\n int res = DW_DLV_ERROR ;\n dwarf_elf_object_access_internals_t * obj = 0 ;\n struct Dwarf_Section_s * relocatablesec = 0 ;\n if ( section_index == 0 ) {\n return DW_DLV_NO_ENTRY ;\n }\n obj = ( dwarf_elf_object_access_internals_t * ) obj_in ;\n res = find_section_to_relocate ( dbg , section_index , & relocatablesec , error ) ;\n if ( res != DW_DLV_OK ) {\n return res ;\n }\n if ( relocatablesec -> dss_reloc_index == 0 ) {\n * error = DW_DLE_RELOC_SECTION_MISSING_INDEX ;\n return DW_DLV_ERROR ;\n }\n res = dwarf_elf_object_access_load_section ( obj_in , relocatablesec -> dss_reloc_index , & relocatablesec -> dss_reloc_data , error ) ;\n if ( res != DW_DLV_OK ) {\n return res ;\n }\n if ( ! obj -> symtab ) {\n obj -> symtab = & dbg -> de_elf_symtab ;\n obj -> strtab = & dbg -> de_elf_strtab ;\n }\n if ( obj -> symtab -> dss_index != relocatablesec -> dss_reloc_link ) {\n * error = DW_DLE_RELOC_MISMATCH_RELOC_INDEX ;\n return DW_DLV_ERROR ;\n }\n if ( obj -> strtab -> dss_index != obj -> symtab -> dss_link ) {\n * error = DW_DLE_RELOC_MISMATCH_STRTAB_INDEX ;\n return DW_DLV_ERROR ;\n }\n if ( ! obj -> symtab -> dss_data ) {\n res = dwarf_elf_object_access_load_section ( obj_in , obj -> symtab -> dss_index , & obj -> symtab -> dss_data , error ) ;\n if ( res != DW_DLV_OK ) {\n return res ;\n }\n }\n if ( ! obj -> strtab -> dss_data ) {\n res = dwarf_elf_object_access_load_section ( obj_in , obj -> strtab -> dss_index , & obj -> strtab -> dss_data , error ) ;\n if ( res != DW_DLV_OK ) {\n return res ;\n }\n }\n res = loop_through_relocations ( dbg , obj , relocatablesec , error ) ;\n return res ;\n }"}
{"idx": 7205, "target": 0, "func": "CURLcode Curl_http ( struct connectdata * conn , bool * done ) {\n struct Curl_easy * data = conn -> data ;\n CURLcode result = CURLE_OK ;\n struct HTTP * http ;\n const char * ppath = data -> state . path ;\n bool paste_ftp_userpwd = FALSE ;\n char ftp_typecode [ sizeof ( \"/;\ntype=?\" ) ] = \"\" ;\n const char * host = conn -> host . name ;\n const char * te = \"\" ;\n const char * ptr ;\n const char * request ;\n Curl_HttpReq httpreq = data -> set . httpreq ;\n # if ! defined ( CURL_DISABLE_COOKIES ) char * addcookies = NULL ;\n # endif curl_off_t included_body = 0 ;\n const char * httpstring ;\n Curl_send_buffer * req_buffer ;\n curl_off_t postsize = 0 ;\n int seekerr = CURL_SEEKFUNC_OK ;\n * done = TRUE ;\n if ( conn -> httpversion < 20 ) {\n switch ( conn -> negnpn ) {\n case CURL_HTTP_VERSION_2 : conn -> httpversion = 20 ;\n result = Curl_http2_switched ( conn , NULL , 0 ) ;\n if ( result ) return result ;\n break ;\n case CURL_HTTP_VERSION_1_1 : break ;\n default : # ifdef USE_NGHTTP2 if ( conn -> data -> set . httpversion == CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE ) {\n DEBUGF ( infof ( data , \"HTTP/2 over clean TCP\\n\" ) ) ;\n conn -> httpversion = 20 ;\n result = Curl_http2_switched ( conn , NULL , 0 ) ;\n if ( result ) return result ;\n }\n # endif break ;\n }\n }\n else {\n result = Curl_http2_setup ( conn ) ;\n if ( result ) return result ;\n }\n http = data -> req . protop ;\n if ( ! data -> state . this_is_a_follow ) {\n free ( data -> state . first_host ) ;\n data -> state . first_host = strdup ( conn -> host . name ) ;\n if ( ! data -> state . first_host ) return CURLE_OUT_OF_MEMORY ;\n data -> state . first_remote_port = conn -> remote_port ;\n }\n http -> writebytecount = http -> readbytecount = 0 ;\n if ( ( conn -> handler -> protocol & ( PROTO_FAMILY_HTTP | CURLPROTO_FTP ) ) && data -> set . upload ) {\n httpreq = HTTPREQ_PUT ;\n }\n if ( data -> set . str [ STRING_CUSTOMREQUEST ] ) request = data -> set . str [ STRING_CUSTOMREQUEST ] ;\n else {\n if ( data -> set . opt_no_body ) request = \"HEAD\" ;\n else {\n DEBUGASSERT ( ( httpreq > HTTPREQ_NONE ) && ( httpreq < HTTPREQ_LAST ) ) ;\n switch ( httpreq ) {\n case HTTPREQ_POST : case HTTPREQ_POST_FORM : request = \"POST\" ;\n break ;\n case HTTPREQ_PUT : request = \"PUT\" ;\n break ;\n default : case HTTPREQ_GET : request = \"GET\" ;\n break ;\n case HTTPREQ_HEAD : request = \"HEAD\" ;\n break ;\n }\n }\n }\n if ( Curl_checkheaders ( conn , \"User-Agent:\" ) ) {\n free ( conn -> allocptr . uagent ) ;\n conn -> allocptr . uagent = NULL ;\n }\n result = Curl_http_output_auth ( conn , request , ppath , FALSE ) ;\n if ( result ) return result ;\n if ( ( data -> state . authhost . multi || data -> state . authproxy . multi ) && ( httpreq != HTTPREQ_GET ) && ( httpreq != HTTPREQ_HEAD ) ) {\n conn -> bits . authneg = TRUE ;\n }\n else conn -> bits . authneg = FALSE ;\n Curl_safefree ( conn -> allocptr . ref ) ;\n if ( data -> change . referer && ! Curl_checkheaders ( conn , \"Referer:\" ) ) {\n conn -> allocptr . ref = aprintf ( \"Referer: %s\\r\\n\" , data -> change . referer ) ;\n if ( ! conn -> allocptr . ref ) return CURLE_OUT_OF_MEMORY ;\n }\n else conn -> allocptr . ref = NULL ;\n # if ! defined ( CURL_DISABLE_COOKIES ) if ( data -> set . str [ STRING_COOKIE ] && ! Curl_checkheaders ( conn , \"Cookie:\" ) ) addcookies = data -> set . str [ STRING_COOKIE ] ;\n # endif if ( ! Curl_checkheaders ( conn , \"Accept-Encoding:\" ) && data -> set . str [ STRING_ENCODING ] ) {\n Curl_safefree ( conn -> allocptr . accept_encoding ) ;\n conn -> allocptr . accept_encoding = aprintf ( \"Accept-Encoding: %s\\r\\n\" , data -> set . str [ STRING_ENCODING ] ) ;\n if ( ! conn -> allocptr . accept_encoding ) return CURLE_OUT_OF_MEMORY ;\n }\n else {\n Curl_safefree ( conn -> allocptr . accept_encoding ) ;\n conn -> allocptr . accept_encoding = NULL ;\n }\n # ifdef HAVE_LIBZ if ( ! Curl_checkheaders ( conn , \"TE:\" ) && data -> set . http_transfer_encoding ) {\n char * cptr = Curl_checkheaders ( conn , \"Connection:\" ) ;\n # define TE_HEADER \"TE: gzip\\r\\n\" Curl_safefree ( conn -> allocptr . te ) ;\n conn -> allocptr . te = cptr ? aprintf ( \"%s, TE\\r\\n\" TE_HEADER , cptr ) : strdup ( \"Connection: TE\\r\\n\" TE_HEADER ) ;\n if ( ! conn -> allocptr . te ) return CURLE_OUT_OF_MEMORY ;\n }\n # endif ptr = Curl_checkheaders ( conn , \"Transfer-Encoding:\" ) ;\n if ( ptr ) {\n data -> req . upload_chunky = Curl_compareheader ( ptr , \"Transfer-Encoding:\" , \"chunked\" ) ;\n }\n else {\n if ( ( conn -> handler -> protocol & PROTO_FAMILY_HTTP ) && data -> set . upload && ( data -> state . infilesize == - 1 ) ) {\n if ( conn -> bits . authneg ) ;\n else if ( use_http_1_1plus ( data , conn ) ) {\n data -> req . upload_chunky = TRUE ;\n }\n else {\n failf ( data , \"Chunky upload is not supported by HTTP 1.0\" ) ;\n return CURLE_UPLOAD_FAILED ;\n }\n }\n else {\n data -> req . upload_chunky = FALSE ;\n }\n if ( data -> req . upload_chunky ) te = \"Transfer-Encoding: chunked\\r\\n\" ;\n }\n Curl_safefree ( conn -> allocptr . host ) ;\n ptr = Curl_checkheaders ( conn , \"Host:\" ) ;\n if ( ptr && ( ! data -> state . this_is_a_follow || Curl_raw_equal ( data -> state . first_host , conn -> host . name ) ) ) {\n # if ! defined ( CURL_DISABLE_COOKIES ) char * cookiehost = Curl_copy_header_value ( ptr ) ;\n if ( ! cookiehost ) return CURLE_OUT_OF_MEMORY ;\n if ( ! * cookiehost ) free ( cookiehost ) ;\n else {\n int startsearch = 0 ;\n if ( * cookiehost == '[' ) {\n char * closingbracket ;\n memmove ( cookiehost , cookiehost + 1 , strlen ( cookiehost ) - 1 ) ;\n closingbracket = strchr ( cookiehost , ']' ) ;\n if ( closingbracket ) * closingbracket = 0 ;\n }\n else {\n char * colon = strchr ( cookiehost + startsearch , ':' ) ;\n if ( colon ) * colon = 0 ;\n }\n Curl_safefree ( conn -> allocptr . cookiehost ) ;\n conn -> allocptr . cookiehost = cookiehost ;\n }\n # endif if ( strcmp ( \"Host:\" , ptr ) ) {\n conn -> allocptr . host = aprintf ( \"%s\\r\\n\" , ptr ) ;\n if ( ! conn -> allocptr . host ) return CURLE_OUT_OF_MEMORY ;\n }\n else conn -> allocptr . host = NULL ;\n }\n else {\n if ( ( ( conn -> given -> protocol & CURLPROTO_HTTPS ) && ( conn -> remote_port == PORT_HTTPS ) ) || ( ( conn -> given -> protocol & CURLPROTO_HTTP ) && ( conn -> remote_port == PORT_HTTP ) ) ) conn -> allocptr . host = aprintf ( \"Host: %s%s%s\\r\\n\" , conn -> bits . ipv6_ip ? \"[\" : \"\" , host , conn -> bits . ipv6_ip ? \"]\" : \"\" ) ;\n else conn -> allocptr . host = aprintf ( \"Host: %s%s%s:%hu\\r\\n\" , conn -> bits . ipv6_ip ? \"[\" : \"\" , host , conn -> bits . ipv6_ip ? \"]\" : \"\" , conn -> remote_port ) ;\n if ( ! conn -> allocptr . host ) return CURLE_OUT_OF_MEMORY ;\n }\n # ifndef CURL_DISABLE_PROXY if ( conn -> bits . httpproxy && ! conn -> bits . tunnel_proxy ) {\n if ( conn -> host . dispname != conn -> host . name ) {\n char * url = data -> change . url ;\n ptr = strstr ( url , conn -> host . dispname ) ;\n if ( ptr ) {\n size_t currlen = strlen ( conn -> host . dispname ) ;\n size_t newlen = strlen ( conn -> host . name ) ;\n size_t urllen = strlen ( url ) ;\n char * newurl ;\n newurl = malloc ( urllen + newlen - currlen + 1 ) ;\n if ( newurl ) {\n memcpy ( newurl , url , ptr - url ) ;\n memcpy ( newurl + ( ptr - url ) , conn -> host . name , newlen ) ;\n memcpy ( newurl + newlen + ( ptr - url ) , ptr + currlen , urllen - ( ptr - url ) - currlen + 1 ) ;\n if ( data -> change . url_alloc ) {\n Curl_safefree ( data -> change . url ) ;\n data -> change . url_alloc = FALSE ;\n }\n data -> change . url = newurl ;\n data -> change . url_alloc = TRUE ;\n }\n else return CURLE_OUT_OF_MEMORY ;\n }\n }\n ppath = data -> change . url ;\n if ( checkprefix ( \"ftp://\" , ppath ) ) {\n if ( data -> set . proxy_transfer_mode ) {\n char * type = strstr ( ppath , \";\ntype=\" ) ;\n if ( type && type [ 6 ] && type [ 7 ] == 0 ) {\n switch ( Curl_raw_toupper ( type [ 6 ] ) ) {\n case 'A' : case 'D' : case 'I' : break ;\n default : type = NULL ;\n }\n }\n if ( ! type ) {\n char * p = ftp_typecode ;\n if ( ! * data -> state . path && ppath [ strlen ( ppath ) - 1 ] != '/' ) {\n * p ++ = '/' ;\n }\n snprintf ( p , sizeof ( ftp_typecode ) - 1 , \";\ntype=%c\" , data -> set . prefer_ascii ? 'a' : 'i' ) ;\n }\n }\n if ( conn -> bits . user_passwd && ! conn -> bits . userpwd_in_url ) paste_ftp_userpwd = TRUE ;\n }\n }\n # endif if ( HTTPREQ_POST_FORM == httpreq ) {\n result = Curl_getformdata ( data , & http -> sendit , data -> set . httppost , Curl_checkheaders ( conn , \"Content-Type:\" ) , & http -> postsize ) ;\n if ( result ) return result ;\n }\n http -> p_accept = Curl_checkheaders ( conn , \"Accept:\" ) ? NULL : \"Accept: */*\\r\\n\" ;\n if ( ( ( HTTPREQ_POST == httpreq ) || ( HTTPREQ_POST_FORM == httpreq ) || ( HTTPREQ_PUT == httpreq ) ) && data -> state . resume_from ) {\n if ( data -> state . resume_from < 0 ) {\n data -> state . resume_from = 0 ;\n }\n if ( data -> state . resume_from && ! data -> state . this_is_a_follow ) {\n if ( conn -> seek_func ) {\n seekerr = conn -> seek_func ( conn -> seek_client , data -> state . resume_from , SEEK_SET ) ;\n }\n if ( seekerr != CURL_SEEKFUNC_OK ) {\n if ( seekerr != CURL_SEEKFUNC_CANTSEEK ) {\n failf ( data , \"Could not seek stream\" ) ;\n return CURLE_READ_ERROR ;\n }\n else {\n curl_off_t passed = 0 ;\n do {\n size_t readthisamountnow = ( data -> state . resume_from - passed > CURL_OFF_T_C ( BUFSIZE ) ) ? BUFSIZE : curlx_sotouz ( data -> state . resume_from - passed ) ;\n size_t actuallyread = data -> state . fread_func ( data -> state . buffer , 1 , readthisamountnow , data -> state . in ) ;\n passed += actuallyread ;\n if ( ( actuallyread == 0 ) || ( actuallyread > readthisamountnow ) ) {\n failf ( data , \"Could only read %\" CURL_FORMAT_CURL_OFF_T \" bytes from the input\" , passed ) ;\n return CURLE_READ_ERROR ;\n }\n }\n while ( passed < data -> state . resume_from ) ;\n }\n }\n if ( data -> state . infilesize > 0 ) {\n data -> state . infilesize -= data -> state . resume_from ;\n if ( data -> state . infilesize <= 0 ) {\n failf ( data , \"File already completely uploaded\" ) ;\n return CURLE_PARTIAL_FILE ;\n }\n }\n }\n }\n if ( data -> state . use_range ) {\n if ( ( ( httpreq == HTTPREQ_GET ) || ( httpreq == HTTPREQ_HEAD ) ) && ! Curl_checkheaders ( conn , \"Range:\" ) ) {\n free ( conn -> allocptr . rangeline ) ;\n conn -> allocptr . rangeline = aprintf ( \"Range: bytes=%s\\r\\n\" , data -> state . range ) ;\n }\n else if ( ( httpreq != HTTPREQ_GET ) && ! Curl_checkheaders ( conn , \"Content-Range:\" ) ) {\n free ( conn -> allocptr . rangeline ) ;\n if ( data -> set . set_resume_from < 0 ) {\n conn -> allocptr . rangeline = aprintf ( \"Content-Range: bytes 0-%\" CURL_FORMAT_CURL_OFF_T \"/%\" CURL_FORMAT_CURL_OFF_T \"\\r\\n\" , data -> state . infilesize - 1 , data -> state . infilesize ) ;\n }\n else if ( data -> state . resume_from ) {\n curl_off_t total_expected_size = data -> state . resume_from + data -> state . infilesize ;\n conn -> allocptr . rangeline = aprintf ( \"Content-Range: bytes %s%\" CURL_FORMAT_CURL_OFF_T \"/%\" CURL_FORMAT_CURL_OFF_T \"\\r\\n\" , data -> state . range , total_expected_size - 1 , total_expected_size ) ;\n }\n else {\n conn -> allocptr . rangeline = aprintf ( \"Content-Range: bytes %s/%\" CURL_FORMAT_CURL_OFF_T \"\\r\\n\" , data -> state . range , data -> state . infilesize ) ;\n }\n if ( ! conn -> allocptr . rangeline ) return CURLE_OUT_OF_MEMORY ;\n }\n }\n httpstring = use_http_1_1plus ( data , conn ) ? \"1.1\" : \"1.0\" ;\n req_buffer = Curl_add_buffer_init ( ) ;\n if ( ! req_buffer ) return CURLE_OUT_OF_MEMORY ;\n result = Curl_add_bufferf ( req_buffer , \"%s \" , request ) ;\n if ( result ) return result ;\n if ( paste_ftp_userpwd ) result = Curl_add_bufferf ( req_buffer , \"ftp://%s:%s@%s\" , conn -> user , conn -> passwd , ppath + sizeof ( \"ftp://\" ) - 1 ) ;\n else result = Curl_add_buffer ( req_buffer , ppath , strlen ( ppath ) ) ;\n if ( result ) return result ;\n result = Curl_add_bufferf ( req_buffer , \"%s\" \" HTTP/%s\\r\\n\" \"%s\" \"%s\" \"%s\" \"%s\" \"%s\" \"%s\" \"%s\" \"%s\" \"%s\" \"%s\" \"%s\" , ftp_typecode , httpstring , ( conn -> allocptr . host ? conn -> allocptr . host : \"\" ) , conn -> allocptr . proxyuserpwd ? conn -> allocptr . proxyuserpwd : \"\" , conn -> allocptr . userpwd ? conn -> allocptr . userpwd : \"\" , ( data -> state . use_range && conn -> allocptr . rangeline ) ? conn -> allocptr . rangeline : \"\" , ( data -> set . str [ STRING_USERAGENT ] && * data -> set . str [ STRING_USERAGENT ] && conn -> allocptr . uagent ) ? conn -> allocptr . uagent : \"\" , http -> p_accept ? http -> p_accept : \"\" , conn -> allocptr . te ? conn -> allocptr . te : \"\" , ( data -> set . str [ STRING_ENCODING ] && * data -> set . str [ STRING_ENCODING ] && conn -> allocptr . accept_encoding ) ? conn -> allocptr . accept_encoding : \"\" , ( data -> change . referer && conn -> allocptr . ref ) ? conn -> allocptr . ref : \"\" , ( conn -> bits . httpproxy && ! conn -> bits . tunnel_proxy && ! Curl_checkProxyheaders ( conn , \"Proxy-Connection:\" ) ) ? \"Proxy-Connection: Keep-Alive\\r\\n\" : \"\" , te ) ;\n Curl_safefree ( conn -> allocptr . userpwd ) ;\n switch ( data -> state . authproxy . picked ) {\n case CURLAUTH_NEGOTIATE : case CURLAUTH_NTLM : case CURLAUTH_NTLM_WB : Curl_safefree ( conn -> allocptr . proxyuserpwd ) ;\n break ;\n }\n if ( result ) return result ;\n if ( ! ( conn -> handler -> flags & PROTOPT_SSL ) && conn -> httpversion != 20 && ( data -> set . httpversion == CURL_HTTP_VERSION_2 ) ) {\n result = Curl_http2_request_upgrade ( req_buffer , conn ) ;\n if ( result ) return result ;\n }\n # if ! defined ( CURL_DISABLE_COOKIES ) if ( data -> cookies || addcookies ) {\n struct Cookie * co = NULL ;\n int count = 0 ;\n if ( data -> cookies ) {\n Curl_share_lock ( data , CURL_LOCK_DATA_COOKIE , CURL_LOCK_ACCESS_SINGLE ) ;\n co = Curl_cookie_getlist ( data -> cookies , conn -> allocptr . cookiehost ? conn -> allocptr . cookiehost : host , data -> state . path , ( conn -> handler -> protocol & CURLPROTO_HTTPS ) ? TRUE : FALSE ) ;\n Curl_share_unlock ( data , CURL_LOCK_DATA_COOKIE ) ;\n }\n if ( co ) {\n struct Cookie * store = co ;\n while ( co ) {\n if ( co -> value ) {\n if ( 0 == count ) {\n result = Curl_add_bufferf ( req_buffer , \"Cookie: \" ) ;\n if ( result ) break ;\n }\n result = Curl_add_bufferf ( req_buffer , \"%s%s=%s\" , count ? \";\n \" : \"\" , co -> name , co -> value ) ;\n if ( result ) break ;\n count ++ ;\n }\n co = co -> next ;\n }\n Curl_cookie_freelist ( store ) ;\n }\n if ( addcookies && ! result ) {\n if ( ! count ) result = Curl_add_bufferf ( req_buffer , \"Cookie: \" ) ;\n if ( ! result ) {\n result = Curl_add_bufferf ( req_buffer , \"%s%s\" , count ? \";\n \" : \"\" , addcookies ) ;\n count ++ ;\n }\n }\n if ( count && ! result ) result = Curl_add_buffer ( req_buffer , \"\\r\\n\" , 2 ) ;\n if ( result ) return result ;\n }\n # endif result = Curl_add_timecondition ( data , req_buffer ) ;\n if ( result ) return result ;\n result = Curl_add_custom_headers ( conn , FALSE , req_buffer ) ;\n if ( result ) return result ;\n http -> postdata = NULL ;\n Curl_pgrsSetUploadSize ( data , - 1 ) ;\n switch ( httpreq ) {\n case HTTPREQ_POST_FORM : if ( ! http -> sendit || conn -> bits . authneg ) {\n result = Curl_add_bufferf ( req_buffer , \"Content-Length: 0\\r\\n\\r\\n\" ) ;\n if ( result ) return result ;\n result = Curl_add_buffer_send ( req_buffer , conn , & data -> info . request_size , 0 , FIRSTSOCKET ) ;\n if ( result ) failf ( data , \"Failed sending POST request\" ) ;\n else Curl_setup_transfer ( conn , FIRSTSOCKET , - 1 , TRUE , & http -> readbytecount , - 1 , NULL ) ;\n break ;\n }\n if ( Curl_FormInit ( & http -> form , http -> sendit ) ) {\n failf ( data , \"Internal HTTP POST error!\" ) ;\n return CURLE_HTTP_POST_ERROR ;\n }\n http -> form . fread_func = data -> state . fread_func ;\n data -> state . fread_func = ( curl_read_callback ) Curl_FormReader ;\n data -> state . in = & http -> form ;\n http -> sending = HTTPSEND_BODY ;\n if ( ! data -> req . upload_chunky && ! Curl_checkheaders ( conn , \"Content-Length:\" ) ) {\n result = Curl_add_bufferf ( req_buffer , \"Content-Length: %\" CURL_FORMAT_CURL_OFF_T \"\\r\\n\" , http -> postsize ) ;\n if ( result ) return result ;\n }\n result = expect100 ( data , conn , req_buffer ) ;\n if ( result ) return result ;\n {\n char * contentType ;\n size_t linelength = 0 ;\n contentType = Curl_formpostheader ( ( void * ) & http -> form , & linelength ) ;\n if ( ! contentType ) {\n failf ( data , \"Could not get Content-Type header line!\" ) ;\n return CURLE_HTTP_POST_ERROR ;\n }\n result = Curl_add_buffer ( req_buffer , contentType , linelength ) ;\n if ( result ) return result ;\n }\n result = Curl_add_buffer ( req_buffer , \"\\r\\n\" , 2 ) ;\n if ( result ) return result ;\n Curl_pgrsSetUploadSize ( data , http -> postsize ) ;\n result = Curl_add_buffer_send ( req_buffer , conn , & data -> info . request_size , 0 , FIRSTSOCKET ) ;\n if ( result ) failf ( data , \"Failed sending POST request\" ) ;\n else Curl_setup_transfer ( conn , FIRSTSOCKET , - 1 , TRUE , & http -> readbytecount , FIRSTSOCKET , & http -> writebytecount ) ;\n if ( result ) {\n Curl_formclean ( & http -> sendit ) ;\n return result ;\n }\n result = Curl_convert_form ( data , http -> sendit ) ;\n if ( result ) {\n Curl_formclean ( & http -> sendit ) ;\n return result ;\n }\n break ;\n case HTTPREQ_PUT : if ( conn -> bits . authneg ) postsize = 0 ;\n else postsize = data -> state . infilesize ;\n if ( ( postsize != - 1 ) && ! data -> req . upload_chunky && ! Curl_checkheaders ( conn , \"Content-Length:\" ) ) {\n result = Curl_add_bufferf ( req_buffer , \"Content-Length: %\" CURL_FORMAT_CURL_OFF_T \"\\r\\n\" , postsize ) ;\n if ( result ) return result ;\n }\n if ( postsize != 0 ) {\n result = expect100 ( data , conn , req_buffer ) ;\n if ( result ) return result ;\n }\n result = Curl_add_buffer ( req_buffer , \"\\r\\n\" , 2 ) ;\n if ( result ) return result ;\n Curl_pgrsSetUploadSize ( data , postsize ) ;\n result = Curl_add_buffer_send ( req_buffer , conn , & data -> info . request_size , 0 , FIRSTSOCKET ) ;\n if ( result ) failf ( data , \"Failed sending PUT request\" ) ;\n else Curl_setup_transfer ( conn , FIRSTSOCKET , - 1 , TRUE , & http -> readbytecount , postsize ? FIRSTSOCKET : - 1 , postsize ? & http -> writebytecount : NULL ) ;\n if ( result ) return result ;\n break ;\n case HTTPREQ_POST : if ( conn -> bits . authneg ) postsize = 0 ;\n else {\n postsize = ( data -> state . infilesize != - 1 ) ? data -> state . infilesize : ( data -> set . postfields ? ( curl_off_t ) strlen ( data -> set . postfields ) : - 1 ) ;\n }\n if ( ( postsize != - 1 ) && ! data -> req . upload_chunky && ! Curl_checkheaders ( conn , \"Content-Length:\" ) ) {\n result = Curl_add_bufferf ( req_buffer , \"Content-Length: %\" CURL_FORMAT_CURL_OFF_T \"\\r\\n\" , postsize ) ;\n if ( result ) return result ;\n }\n if ( ! Curl_checkheaders ( conn , \"Content-Type:\" ) ) {\n result = Curl_add_bufferf ( req_buffer , \"Content-Type: application/\" \"x-www-form-urlencoded\\r\\n\" ) ;\n if ( result ) return result ;\n }\n ptr = Curl_checkheaders ( conn , \"Expect:\" ) ;\n if ( ptr ) {\n data -> state . expect100header = Curl_compareheader ( ptr , \"Expect:\" , \"100-continue\" ) ;\n }\n else if ( postsize > TINY_INITIAL_POST_SIZE || postsize < 0 ) {\n result = expect100 ( data , conn , req_buffer ) ;\n if ( result ) return result ;\n }\n else data -> state . expect100header = FALSE ;\n if ( data -> set . postfields ) {\n if ( conn -> httpversion != 20 && ! data -> state . expect100header && ( postsize < MAX_INITIAL_POST_SIZE ) ) {\n result = Curl_add_buffer ( req_buffer , \"\\r\\n\" , 2 ) ;\n if ( result ) return result ;\n if ( ! data -> req . upload_chunky ) {\n result = Curl_add_buffer ( req_buffer , data -> set . postfields , ( size_t ) postsize ) ;\n included_body = postsize ;\n }\n else {\n if ( postsize ) {\n result = Curl_add_bufferf ( req_buffer , \"%x\\r\\n\" , ( int ) postsize ) ;\n if ( ! result ) {\n result = Curl_add_buffer ( req_buffer , data -> set . postfields , ( size_t ) postsize ) ;\n if ( ! result ) result = Curl_add_buffer ( req_buffer , \"\\r\\n\" , 2 ) ;\n included_body = postsize + 2 ;\n }\n }\n if ( ! result ) result = Curl_add_buffer ( req_buffer , \"\\x30\\x0d\\x0a\\x0d\\x0a\" , 5 ) ;\n included_body += 5 ;\n }\n if ( result ) return result ;\n Curl_pgrsSetUploadSize ( data , postsize ) ;\n }\n else {\n http -> postsize = postsize ;\n http -> postdata = data -> set . postfields ;\n http -> sending = HTTPSEND_BODY ;\n data -> state . fread_func = ( curl_read_callback ) readmoredata ;\n data -> state . in = ( void * ) conn ;\n Curl_pgrsSetUploadSize ( data , http -> postsize ) ;\n result = Curl_add_buffer ( req_buffer , \"\\r\\n\" , 2 ) ;\n if ( result ) return result ;\n }\n }\n else {\n result = Curl_add_buffer ( req_buffer , \"\\r\\n\" , 2 ) ;\n if ( result ) return result ;\n if ( data -> req . upload_chunky && conn -> bits . authneg ) {\n result = Curl_add_buffer ( req_buffer , \"\\x30\\x0d\\x0a\\x0d\\x0a\" , 5 ) ;\n if ( result ) return result ;\n }\n else if ( data -> state . infilesize ) {\n Curl_pgrsSetUploadSize ( data , postsize ? postsize : - 1 ) ;\n if ( ! conn -> bits . authneg ) {\n http -> postdata = ( char * ) & http -> postdata ;\n http -> postsize = postsize ;\n }\n }\n }\n result = Curl_add_buffer_send ( req_buffer , conn , & data -> info . request_size , ( size_t ) included_body , FIRSTSOCKET ) ;\n if ( result ) failf ( data , \"Failed sending HTTP POST request\" ) ;\n else Curl_setup_transfer ( conn , FIRSTSOCKET , - 1 , TRUE , & http -> readbytecount , http -> postdata ? FIRSTSOCKET : - 1 , http -> postdata ? & http -> writebytecount : NULL ) ;\n break ;\n default : result = Curl_add_buffer ( req_buffer , \"\\r\\n\" , 2 ) ;\n if ( result ) return result ;\n result = Curl_add_buffer_send ( req_buffer , conn , & data -> info . request_size , 0 , FIRSTSOCKET ) ;\n if ( result ) failf ( data , \"Failed sending HTTP request\" ) ;\n else Curl_setup_transfer ( conn , FIRSTSOCKET , - 1 , TRUE , & http -> readbytecount , http -> postdata ? FIRSTSOCKET : - 1 , http -> postdata ? & http -> writebytecount : NULL ) ;\n }\n if ( result ) return result ;\n if ( http -> writebytecount ) {\n Curl_pgrsSetUploadCounter ( data , http -> writebytecount ) ;\n if ( Curl_pgrsUpdate ( conn ) ) result = CURLE_ABORTED_BY_CALLBACK ;\n if ( http -> writebytecount >= postsize ) {\n infof ( data , \"upload completely sent off: %\" CURL_FORMAT_CURL_OFF_T \" out of %\" CURL_FORMAT_CURL_OFF_T \" bytes\\n\" , http -> writebytecount , postsize ) ;\n data -> req . upload_done = TRUE ;\n data -> req . keepon &= ~ KEEP_SEND ;\n data -> req . exp100 = EXP100_SEND_DATA ;\n }\n }\n if ( ( conn -> httpversion == 20 ) && data -> req . upload_chunky ) data -> req . upload_chunky = FALSE ;\n return result ;\n }"}
{"idx": 7206, "target": 0, "func": "static int opt_show_ ## section ( const char * opt , const char * arg ) {\n mark_section_show_entries ( SECTION_ID_ ## target_section_id , 1 , NULL ) ;\n return 0 ;\n }\n DEFINE_OPT_SHOW_SECTION ( chapters , CHAPTERS ) DEFINE_OPT_SHOW_SECTION ( error , ERROR ) DEFINE_OPT_SHOW_SECTION ( format , FORMAT ) DEFINE_OPT_SHOW_SECTION ( frames , FRAMES ) DEFINE_OPT_SHOW_SECTION ( library_versions , LIBRARY_VERSIONS )"}
{"idx": 7207, "target": 0, "func": "static void _slurm_rpc_burst_buffer_info ( slurm_msg_t * msg ) {\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n void * resp_buffer = NULL ;\n int resp_buffer_size = 0 ;\n int error_code = SLURM_SUCCESS ;\n Buf buffer ;\n DEF_TIMERS ;\n START_TIMER ;\n debug2 ( \"Processing RPC: REQUEST_BURST_BUFFER_INFO from uid=%d\" , uid ) ;\n buffer = init_buf ( BUF_SIZE ) ;\n if ( validate_super_user ( uid ) ) uid = 0 ;\n error_code = bb_g_state_pack ( uid , buffer , msg -> protocol_version ) ;\n END_TIMER2 ( __func__ ) ;\n if ( error_code ) {\n debug ( \"_slurm_rpc_burst_buffer_info: %s\" , slurm_strerror ( error_code ) ) ;\n slurm_send_rc_msg ( msg , error_code ) ;\n }\n else {\n slurm_msg_t response_msg ;\n resp_buffer_size = get_buf_offset ( buffer ) ;\n resp_buffer = xfer_buf_data ( buffer ) ;\n slurm_msg_t_init ( & response_msg ) ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . address = msg -> address ;\n response_msg . conn = msg -> conn ;\n response_msg . msg_type = RESPONSE_BURST_BUFFER_INFO ;\n response_msg . data = resp_buffer ;\n response_msg . data_size = resp_buffer_size ;\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n xfree ( resp_buffer ) ;\n }\n }"}
{"idx": 7208, "target": 1, "func": "void rtp_add_address ( packet_info * pinfo , address * addr , int port , int other_port , const gchar * setup_method , guint32 setup_frame_number , gboolean is_video , GHashTable * rtp_dyn_payload ) {\n srtp_add_address ( pinfo , addr , port , other_port , setup_method , setup_frame_number , is_video , rtp_dyn_payload , NULL ) ;\n }"}
{"idx": 7209, "target": 0, "func": "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 ) {\n MotionEstContext * const c = & s -> me ;\n const int penalty_factor = c -> sub_penalty_factor ;\n int mx , my , dminh ;\n uint8_t * pix , * ptr ;\n int stride = c -> stride ;\n const int flags = c -> sub_flags ;\n LOAD_COMMON assert ( flags == 0 ) ;\n if ( c -> skip ) {\n * mx_ptr = 0 ;\n * my_ptr = 0 ;\n return dmin ;\n }\n pix = c -> src [ src_index ] [ 0 ] ;\n mx = * mx_ptr ;\n my = * my_ptr ;\n ptr = c -> ref [ ref_index ] [ 0 ] + ( my * stride ) + mx ;\n dminh = dmin ;\n if ( mx > xmin && mx < xmax && my > ymin && my < ymax ) {\n int dx = 0 , dy = 0 ;\n int d , pen_x , pen_y ;\n const int index = ( my << ME_MAP_SHIFT ) + mx ;\n const int t = score_map [ ( index - ( 1 << ME_MAP_SHIFT ) ) & ( ME_MAP_SIZE - 1 ) ] ;\n const int l = score_map [ ( index - 1 ) & ( ME_MAP_SIZE - 1 ) ] ;\n const int r = score_map [ ( index + 1 ) & ( ME_MAP_SIZE - 1 ) ] ;\n const int b = score_map [ ( index + ( 1 << ME_MAP_SHIFT ) ) & ( ME_MAP_SIZE - 1 ) ] ;\n mx <<= 1 ;\n my <<= 1 ;\n pen_x = pred_x + mx ;\n pen_y = pred_y + my ;\n ptr -= stride ;\n if ( t <= b ) {\n CHECK_SAD_HALF_MV ( y2 , 0 , - 1 ) if ( l <= r ) {\n CHECK_SAD_HALF_MV ( xy2 , - 1 , - 1 ) if ( t + r <= b + l ) {\n CHECK_SAD_HALF_MV ( xy2 , + 1 , - 1 ) ptr += stride ;\n }\n else {\n ptr += stride ;\n CHECK_SAD_HALF_MV ( xy2 , - 1 , + 1 ) }\n CHECK_SAD_HALF_MV ( x2 , - 1 , 0 ) }\n else {\n CHECK_SAD_HALF_MV ( xy2 , + 1 , - 1 ) if ( t + l <= b + r ) {\n CHECK_SAD_HALF_MV ( xy2 , - 1 , - 1 ) ptr += stride ;\n }\n else {\n ptr += stride ;\n CHECK_SAD_HALF_MV ( xy2 , + 1 , + 1 ) }\n CHECK_SAD_HALF_MV ( x2 , + 1 , 0 ) }\n }\n else {\n if ( l <= r ) {\n if ( t + l <= b + r ) {\n CHECK_SAD_HALF_MV ( xy2 , - 1 , - 1 ) ptr += stride ;\n }\n else {\n ptr += stride ;\n CHECK_SAD_HALF_MV ( xy2 , + 1 , + 1 ) }\n CHECK_SAD_HALF_MV ( x2 , - 1 , 0 ) CHECK_SAD_HALF_MV ( xy2 , - 1 , + 1 ) }\n else {\n if ( t + r <= b + l ) {\n CHECK_SAD_HALF_MV ( xy2 , + 1 , - 1 ) ptr += stride ;\n }\n else {\n ptr += stride ;\n CHECK_SAD_HALF_MV ( xy2 , - 1 , + 1 ) }\n CHECK_SAD_HALF_MV ( x2 , + 1 , 0 ) CHECK_SAD_HALF_MV ( xy2 , + 1 , + 1 ) }\n CHECK_SAD_HALF_MV ( y2 , 0 , + 1 ) }\n mx += dx ;\n my += dy ;\n }\n else {\n mx <<= 1 ;\n my <<= 1 ;\n }\n * mx_ptr = mx ;\n * my_ptr = my ;\n return dminh ;\n }"}
{"idx": 7210, "target": 1, "func": "static int mpc7_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size ;\n MPCContext * c = avctx -> priv_data ;\n GetBitContext gb ;\n int i , ch ;\n int mb = - 1 ;\n Band * bands = c -> bands ;\n int off , ret , last_frame , skip ;\n int bits_used , bits_avail ;\n memset ( bands , 0 , sizeof ( * bands ) * ( c -> maxbands + 1 ) ) ;\n buf_size = avpkt -> size & ~ 3 ;\n if ( buf_size <= 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"packet size is too small (%i bytes)\\n\" , avpkt -> size ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( buf_size != avpkt -> size ) {\n av_log ( avctx , AV_LOG_WARNING , \"packet size is not a multiple of 4. \" \"extra bytes at the end will be skipped.\\n\" ) ;\n }\n skip = buf [ 0 ] ;\n last_frame = buf [ 1 ] ;\n buf += 4 ;\n buf_size -= 4 ;\n frame -> nb_samples = last_frame ? c -> lastframelen : MPC_FRAME_SIZE ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n av_fast_padded_malloc ( & c -> bits , & c -> buf_size , buf_size ) ;\n if ( ! c -> bits ) return AVERROR ( ENOMEM ) ;\n c -> dsp . bswap_buf ( ( uint32_t * ) c -> bits , ( const uint32_t * ) buf , buf_size >> 2 ) ;\n init_get_bits ( & gb , c -> bits , buf_size * 8 ) ;\n skip_bits_long ( & gb , skip ) ;\n for ( i = 0 ;\n i <= c -> maxbands ;\n i ++ ) {\n for ( ch = 0 ;\n ch < 2 ;\n ch ++ ) {\n int t = 4 ;\n if ( i ) t = get_vlc2 ( & gb , hdr_vlc . table , MPC7_HDR_BITS , 1 ) - 5 ;\n if ( t == 4 ) bands [ i ] . res [ ch ] = get_bits ( & gb , 4 ) ;\n else bands [ i ] . res [ ch ] = av_clip ( bands [ i - 1 ] . res [ ch ] + t , 0 , 17 ) ;\n }\n if ( bands [ i ] . res [ 0 ] || bands [ i ] . res [ 1 ] ) {\n mb = i ;\n if ( c -> MSS ) bands [ i ] . msf = get_bits1 ( & gb ) ;\n }\n }\n for ( i = 0 ;\n i <= mb ;\n i ++ ) for ( ch = 0 ;\n ch < 2 ;\n ch ++ ) if ( bands [ i ] . res [ ch ] ) bands [ i ] . scfi [ ch ] = get_vlc2 ( & gb , scfi_vlc . table , MPC7_SCFI_BITS , 1 ) ;\n for ( i = 0 ;\n i <= mb ;\n i ++ ) {\n for ( ch = 0 ;\n ch < 2 ;\n ch ++ ) {\n if ( bands [ i ] . res [ ch ] ) {\n bands [ i ] . scf_idx [ ch ] [ 2 ] = c -> oldDSCF [ ch ] [ i ] ;\n bands [ i ] . scf_idx [ ch ] [ 0 ] = get_scale_idx ( & gb , bands [ i ] . scf_idx [ ch ] [ 2 ] ) ;\n switch ( bands [ i ] . scfi [ ch ] ) {\n case 0 : bands [ i ] . scf_idx [ ch ] [ 1 ] = get_scale_idx ( & gb , bands [ i ] . scf_idx [ ch ] [ 0 ] ) ;\n bands [ i ] . scf_idx [ ch ] [ 2 ] = get_scale_idx ( & gb , bands [ i ] . scf_idx [ ch ] [ 1 ] ) ;\n break ;\n case 1 : bands [ i ] . scf_idx [ ch ] [ 1 ] = get_scale_idx ( & gb , bands [ i ] . scf_idx [ ch ] [ 0 ] ) ;\n bands [ i ] . scf_idx [ ch ] [ 2 ] = bands [ i ] . scf_idx [ ch ] [ 1 ] ;\n break ;\n case 2 : bands [ i ] . scf_idx [ ch ] [ 1 ] = bands [ i ] . scf_idx [ ch ] [ 0 ] ;\n bands [ i ] . scf_idx [ ch ] [ 2 ] = get_scale_idx ( & gb , bands [ i ] . scf_idx [ ch ] [ 1 ] ) ;\n break ;\n case 3 : bands [ i ] . scf_idx [ ch ] [ 2 ] = bands [ i ] . scf_idx [ ch ] [ 1 ] = bands [ i ] . scf_idx [ ch ] [ 0 ] ;\n break ;\n }\n c -> oldDSCF [ ch ] [ i ] = bands [ i ] . scf_idx [ ch ] [ 2 ] ;\n }\n }\n }\n memset ( c -> Q , 0 , sizeof ( c -> Q ) ) ;\n off = 0 ;\n for ( i = 0 ;\n i < BANDS ;\n i ++ , off += SAMPLES_PER_BAND ) for ( ch = 0 ;\n ch < 2 ;\n ch ++ ) idx_to_quant ( c , & gb , bands [ i ] . res [ ch ] , c -> Q [ ch ] + off ) ;\n ff_mpc_dequantize_and_synth ( c , mb , ( int16_t * * ) frame -> extended_data , 2 ) ;\n bits_used = get_bits_count ( & gb ) ;\n bits_avail = buf_size * 8 ;\n if ( ! last_frame && ( ( bits_avail < bits_used ) || ( bits_used + 32 <= bits_avail ) ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error decoding frame: used %i of %i bits\\n\" , bits_used , bits_avail ) ;\n return - 1 ;\n }\n if ( c -> frames_to_skip ) {\n c -> frames_to_skip -- ;\n * got_frame_ptr = 0 ;\n return avpkt -> size ;\n }\n * got_frame_ptr = 1 ;\n return avpkt -> size ;\n }"}
{"idx": 7211, "target": 0, "func": "TEST ( IdlCompiler , ArrayTypes ) {\n base : : ListValue list ;\n list . AppendInteger ( 33 ) ;\n list . Append ( std : : make_unique < base : : ListValue > ( ) ) ;\n std : : unique_ptr < Function10 : : Params > f10_params = Function10 : : Params : : Create ( list ) ;\n ASSERT_TRUE ( f10_params != NULL ) ;\n EXPECT_EQ ( 33 , f10_params -> x ) ;\n EXPECT_TRUE ( f10_params -> y . empty ( ) ) ;\n list . Clear ( ) ;\n list . AppendInteger ( 33 ) ;\n std : : unique_ptr < base : : ListValue > sublist ( new base : : ListValue ) ;\n sublist -> AppendInteger ( 34 ) ;\n sublist -> AppendInteger ( 35 ) ;\n list . Append ( std : : move ( sublist ) ) ;\n f10_params = Function10 : : Params : : Create ( list ) ;\n ASSERT_TRUE ( f10_params != NULL ) ;\n EXPECT_EQ ( 33 , f10_params -> x ) ;\n ASSERT_EQ ( 2u , f10_params -> y . size ( ) ) ;\n EXPECT_EQ ( 34 , f10_params -> y [ 0 ] ) ;\n EXPECT_EQ ( 35 , f10_params -> y [ 1 ] ) ;\n list . Clear ( ) ;\n MyType1 a ;\n MyType1 b ;\n a . x = 5 ;\n b . x = 6 ;\n a . y = std : : string ( \"foo\" ) ;\n b . y = std : : string ( \"bar\" ) ;\n std : : unique_ptr < base : : ListValue > sublist2 ( new base : : ListValue ) ;\n sublist2 -> Append ( a . ToValue ( ) ) ;\n sublist2 -> Append ( b . ToValue ( ) ) ;\n list . Append ( std : : move ( sublist2 ) ) ;\n std : : unique_ptr < Function11 : : Params > f11_params = Function11 : : Params : : Create ( list ) ;\n ASSERT_TRUE ( f11_params != NULL ) ;\n ASSERT_EQ ( 2u , f11_params -> arg . size ( ) ) ;\n EXPECT_EQ ( 5 , f11_params -> arg [ 0 ] . x ) ;\n EXPECT_EQ ( \"foo\" , f11_params -> arg [ 0 ] . y ) ;\n EXPECT_EQ ( 6 , f11_params -> arg [ 1 ] . x ) ;\n EXPECT_EQ ( \"bar\" , f11_params -> arg [ 1 ] . y ) ;\n }"}
{"idx": 7212, "target": 0, "func": "static gs_memory_type_ptr_t i_object_type ( const gs_memory_t * mem , const void * obj ) {\n return ( ( const obj_header_t * ) obj - 1 ) -> o_type ;\n }"}
{"idx": 7213, "target": 0, "func": "static int isoent_cmp_node_joliet ( const struct archive_rb_node * n1 , const struct archive_rb_node * n2 ) {\n const struct idrent * e1 = ( const struct idrent * ) n1 ;\n const struct idrent * e2 = ( const struct idrent * ) n2 ;\n return ( isoent_cmp_joliet_identifier ( e2 -> isoent , e1 -> isoent ) ) ;\n }"}
{"idx": 7214, "target": 0, "func": "void PNGAPI png_set_IHDR ( png_structp png_ptr , png_infop info_ptr , png_uint_32 width , png_uint_32 height , int bit_depth , int color_type , int interlace_type , int compression_type , int filter_type ) {\n png_debug1 ( 1 , \"in %s storage function\" , \"IHDR\" ) ;\n if ( png_ptr == NULL || info_ptr == NULL ) return ;\n info_ptr -> width = width ;\n info_ptr -> height = height ;\n info_ptr -> bit_depth = ( png_byte ) bit_depth ;\n info_ptr -> color_type = ( png_byte ) color_type ;\n info_ptr -> compression_type = ( png_byte ) compression_type ;\n info_ptr -> filter_type = ( png_byte ) filter_type ;\n info_ptr -> interlace_type = ( png_byte ) interlace_type ;\n png_check_IHDR ( png_ptr , info_ptr -> width , info_ptr -> height , info_ptr -> bit_depth , info_ptr -> color_type , info_ptr -> interlace_type , info_ptr -> compression_type , info_ptr -> filter_type ) ;\n if ( info_ptr -> color_type == PNG_COLOR_TYPE_PALETTE ) info_ptr -> channels = 1 ;\n else if ( info_ptr -> color_type & PNG_COLOR_MASK_COLOR ) info_ptr -> channels = 3 ;\n else info_ptr -> channels = 1 ;\n if ( info_ptr -> color_type & PNG_COLOR_MASK_ALPHA ) info_ptr -> channels ++ ;\n info_ptr -> pixel_depth = ( png_byte ) ( info_ptr -> channels * info_ptr -> bit_depth ) ;\n if ( width > ( PNG_UINT_32_MAX >> 3 ) - 64 - 1 - 7 * 8 - 8 ) {\n info_ptr -> rowbytes = ( png_size_t ) 0 ;\n png_error ( png_ptr , \"Image width is too large for this architecture\" ) ;\n }\n else info_ptr -> rowbytes = PNG_ROWBYTES ( info_ptr -> pixel_depth , width ) ;\n }"}
{"idx": 7215, "target": 0, "func": "static void xhci_xfer_unmap ( XHCITransfer * xfer ) {\n usb_packet_unmap ( & xfer -> packet , & xfer -> sgl ) ;\n qemu_sglist_destroy ( & xfer -> sgl ) ;\n }"}
{"idx": 7216, "target": 0, "func": "static int SpoolssReplyOpenPrinter_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ;\n guint32 printerlocal ;\n char * name ;\n name = NULL ;\n offset = dissect_ndr_cvstring ( tvb , offset , pinfo , tree , di , drep , sizeof ( guint16 ) , hf_servername , TRUE , & name ) ;\n if ( ! pinfo -> fd -> flags . visited ) {\n if ( ! dcv -> se_data ) {\n if ( name ) {\n dcv -> se_data = wmem_strdup ( wmem_file_scope ( ) , name ) ;\n }\n }\n }\n if ( name ) col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , name ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_printerlocal , & printerlocal ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_printerdata_type , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_replyopenprinter_unk0 , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_replyopenprinter_unk1 , NULL ) ;\n return offset ;\n }"}
{"idx": 7217, "target": 0, "func": "afs_int32 SPR_GetCPS2 ( struct rx_call * call , afs_int32 aid , afs_int32 ahost , prlist * alist , afs_int32 * over ) {\n afs_int32 code ;\n afs_int32 cid = ANONYMOUSID ;\n code = getCPS2 ( call , aid , ahost , alist , over , & cid ) ;\n osi_auditU ( call , PTS_GetCPS2Event , code , AUD_ID , aid , AUD_HOST , htonl ( ahost ) , AUD_END ) ;\n ViceLog ( 125 , ( \"PTS_GetCPS2: code %d cid %d aid %d ahost %d\\n\" , code , cid , aid , ahost ) ) ;\n return code ;\n }"}
{"idx": 7218, "target": 0, "func": "void proto_register_btvdp_content_protection_header_scms_t ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_btvdp_l_bit , {\n \"L-bit\" , \"btvdp.content_protection_header.scms_t.l_bit\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btvdp_cp_bit , {\n \"Cp-bit\" , \"btvdp.content_protection_header.scms_t.cp_bit\" , FT_BOOLEAN , 8 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btvdp_reserved , {\n \"Reserved\" , \"btvdp.content_protection_header.scms_t.reserved\" , FT_BOOLEAN , 8 , NULL , 0xFC , NULL , HFILL }\n }\n }\n ;\n static gint * ett [ ] = {\n & ett_btvdp_cph_scms_t }\n ;\n proto_btvdp_cph_scms_t = proto_register_protocol ( \"Bluetooth VDP Content Protection Header SCMS-T\" , \"BT VDP Content Protection Header SCMS-T\" , \"btvdp_content_protection_header_scms_t\" ) ;\n proto_register_field_array ( proto_btvdp_cph_scms_t , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n register_dissector ( \"btvdp_content_protection_header_scms_t\" , dissect_vdp_cp_scms_t , proto_btvdp_cph_scms_t ) ;\n }"}
{"idx": 7219, "target": 1, "func": "xmlListPtr xmlListDup ( const xmlListPtr old ) {\n xmlListPtr cur ;\n if ( old == NULL ) return ( NULL ) ;\n if ( NULL == ( cur = xmlListCreate ( NULL , old -> linkCompare ) ) ) return ( NULL ) ;\n if ( 0 != xmlListCopy ( cur , old ) ) return NULL ;\n return cur ;\n }"}
{"idx": 7220, "target": 0, "func": "DumpOptions * NewDumpOptions ( void ) {\n DumpOptions * opts = ( DumpOptions * ) pg_malloc ( sizeof ( DumpOptions ) ) ;\n InitDumpOptions ( opts ) ;\n return opts ;\n }"}
{"idx": 7221, "target": 1, "func": "static void dissect_q931_pdu ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , gboolean is_over_ip ) {\n int offset = 0 ;\n proto_tree * q931_tree = NULL ;\n proto_tree * ie_tree = NULL ;\n proto_item * ti ;\n guint8 prot_discr ;\n guint8 call_ref_len ;\n guint8 call_ref [ 16 ] ;\n guint32 call_ref_val ;\n guint8 message_type , segmented_message_type ;\n guint8 info_element ;\n guint16 info_element_len ;\n gboolean first_frag , more_frags ;\n guint32 frag_len ;\n fragment_head * fd_head ;\n tvbuff_t * next_tvb = NULL ;\n q931_pi = wmem_new ( wmem_packet_scope ( ) , q931_packet_info ) ;\n reset_q931_packet_info ( q931_pi ) ;\n have_valid_q931_pi = TRUE ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"Q.931\" ) ;\n prot_discr = tvb_get_guint8 ( tvb , offset ) ;\n ti = proto_tree_add_item ( tree , proto_q931 , tvb , offset , - 1 , ENC_NA ) ;\n if ( tree ) {\n q931_tree = proto_item_add_subtree ( ti , ett_q931 ) ;\n dissect_q931_protocol_discriminator ( tvb , offset , q931_tree ) ;\n }\n offset += 1 ;\n call_ref_len = tvb_get_guint8 ( tvb , offset ) & 0xF ;\n if ( q931_tree != NULL ) proto_tree_add_uint ( q931_tree , hf_q931_call_ref_len , tvb , offset , 1 , call_ref_len ) ;\n offset += 1 ;\n switch ( call_ref_len ) {\n case 0 : call_ref_val = 0 ;\n break ;\n case 1 : call_ref_val = tvb_get_guint8 ( tvb , offset ) ;\n break ;\n case 2 : call_ref_val = tvb_get_ntohs ( tvb , offset ) ;\n break ;\n case 3 : call_ref_val = tvb_get_ntoh24 ( tvb , offset ) ;\n break ;\n default : call_ref_val = tvb_get_ntohl ( tvb , offset ) ;\n }\n if ( call_ref_len != 0 ) {\n tvb_memcpy ( tvb , call_ref , offset , call_ref_len ) ;\n if ( q931_tree != NULL ) {\n proto_tree_add_boolean ( q931_tree , hf_q931_call_ref_flag , tvb , offset , 1 , ( call_ref [ 0 ] & 0x80 ) != 0 ) ;\n call_ref [ 0 ] &= 0x7F ;\n proto_tree_add_bytes ( q931_tree , hf_q931_call_ref , tvb , offset , call_ref_len , call_ref ) ;\n }\n else {\n call_ref [ 0 ] &= 0x7F ;\n }\n memcpy ( & ( q931_pi -> crv ) , call_ref , call_ref_len > sizeof ( q931_pi -> crv ) ? sizeof ( q931_pi -> crv ) : call_ref_len ) ;\n offset += call_ref_len ;\n }\n message_type = tvb_get_guint8 ( tvb , offset ) ;\n if ( have_valid_q931_pi && q931_pi ) {\n q931_pi -> message_type = message_type ;\n }\n col_add_str ( pinfo -> cinfo , COL_INFO , get_message_name ( prot_discr , message_type ) ) ;\n if ( prot_discr == NLPID_DMS ) proto_tree_add_item ( q931_tree , hf_q931_maintenance_message_type , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n else proto_tree_add_item ( q931_tree , hf_q931_message_type , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset += 1 ;\n if ( ( message_type != Q931_SEGMENT ) || ! q931_reassembly || ( tvb_reported_length_remaining ( tvb , offset ) <= 4 ) ) {\n dissect_q931_IEs ( tvb , pinfo , tree , q931_tree , is_over_ip , offset , 0 ) ;\n return ;\n }\n info_element = tvb_get_guint8 ( tvb , offset ) ;\n info_element_len = tvb_get_guint8 ( tvb , offset + 1 ) ;\n if ( ( info_element != Q931_IE_SEGMENTED_MESSAGE ) || ( info_element_len < 2 ) ) {\n dissect_q931_IEs ( tvb , pinfo , tree , q931_tree , is_over_ip , offset , 0 ) ;\n return ;\n }\n ie_tree = proto_tree_add_subtree ( q931_tree , tvb , offset , 1 + 1 + info_element_len , ett_q931_ie [ info_element ] , NULL , val_to_str ( info_element , q931_info_element_vals [ 0 ] , \"Unknown information element (0x%02X)\" ) ) ;\n proto_tree_add_uint_format_value ( ie_tree , hf_q931_information_element , tvb , offset , 1 , info_element , \"%s\" , val_to_str ( info_element , q931_info_element_vals [ 0 ] , \"Unknown (0x%02X)\" ) ) ;\n proto_tree_add_item ( ie_tree , hf_q931_information_element_len , tvb , offset + 1 , 1 , ENC_NA ) ;\n dissect_q931_segmented_message_ie ( tvb , pinfo , offset + 2 , info_element_len , ie_tree , ti ) ;\n first_frag = ( tvb_get_guint8 ( tvb , offset + 2 ) & 0x80 ) != 0 ;\n more_frags = ( tvb_get_guint8 ( tvb , offset + 2 ) & 0x7F ) != 0 ;\n segmented_message_type = tvb_get_guint8 ( tvb , offset + 3 ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" of %s\" , val_to_str_ext ( segmented_message_type , & q931_message_type_vals_ext , \"Unknown message type (0x%02X)\" ) ) ;\n offset += 1 + 1 + info_element_len ;\n frag_len = tvb_reported_length_remaining ( tvb , offset ) ;\n if ( first_frag && fragment_get ( & q931_reassembly_table , pinfo , call_ref_val , NULL ) ) {\n fragment_end_seq_next ( & q931_reassembly_table , pinfo , call_ref_val , NULL ) ;\n }\n fd_head = fragment_add_seq_next ( & q931_reassembly_table , tvb , offset , pinfo , call_ref_val , NULL , frag_len , more_frags ) ;\n if ( fd_head ) {\n if ( pinfo -> num == fd_head -> reassembled_in ) {\n if ( fd_head -> next != NULL ) {\n next_tvb = tvb_new_chain ( tvb , fd_head -> tvb_data ) ;\n add_new_data_source ( pinfo , next_tvb , \"Reassembled Q.931 IEs\" ) ;\n if ( tree ) {\n proto_item * frag_tree_item ;\n show_fragment_seq_tree ( fd_head , & q931_frag_items , q931_tree , pinfo , next_tvb , & frag_tree_item ) ;\n }\n }\n else {\n next_tvb = tvb_new_subset_remaining ( tvb , offset ) ;\n }\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"%s [reassembled]\" , val_to_str_ext ( segmented_message_type , & q931_message_type_vals_ext , \"Unknown message type (0x%02X)\" ) ) ;\n }\n else {\n if ( tree ) proto_tree_add_uint ( q931_tree , hf_q931_reassembled_in , tvb , offset , frag_len , fd_head -> reassembled_in ) ;\n }\n }\n if ( next_tvb ) dissect_q931_IEs ( next_tvb , pinfo , tree , q931_tree , is_over_ip , 0 , 0 ) ;\n }"}
{"idx": 7222, "target": 0, "func": "void vp9_inc_frame_in_layer ( VP9_COMP * const cpi ) {\n LAYER_CONTEXT * const lc = ( cpi -> svc . number_temporal_layers > 1 && cpi -> oxcf . rc_mode == VPX_CBR ) ? & cpi -> svc . layer_context [ cpi -> svc . temporal_layer_id ] : & cpi -> svc . layer_context [ cpi -> svc . spatial_layer_id ] ;\n ++ lc -> current_video_frame_in_layer ;\n ++ lc -> frames_from_key_frame ;\n }"}
{"idx": 7223, "target": 0, "func": "void http_hdr_method_set ( HdrHeap * heap , HTTPHdrImpl * hh , const char * method , int16_t method_wks_idx , int method_length , bool must_copy ) {\n ink_assert ( hh -> m_polarity == HTTP_TYPE_REQUEST ) ;\n hh -> u . req . m_method_wks_idx = method_wks_idx ;\n mime_str_u16_set ( heap , method , method_length , & ( hh -> u . req . m_ptr_method ) , & ( hh -> u . req . m_len_method ) , must_copy ) ;\n }"}
{"idx": 7224, "target": 0, "func": "int X509_REQ_add1_attr_by_OBJ ( X509_REQ * req , const ASN1_OBJECT * obj , int type , const unsigned char * bytes , int len ) {\n if ( X509at_add1_attr_by_OBJ ( & req -> req_info -> attributes , obj , type , bytes , len ) ) return 1 ;\n return 0 ;\n }"}
{"idx": 7225, "target": 0, "func": "static void pk_transaction_get_files ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) {\n gboolean ret ;\n guint length ;\n g_autoptr ( GError ) error = NULL ;\n g_autofree gchar * * package_ids = NULL ;\n g_autofree gchar * package_ids_temp = NULL ;\n g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;\n g_return_if_fail ( transaction -> priv -> tid != NULL ) ;\n g_variant_get ( params , \"(^a&s)\" , & package_ids ) ;\n package_ids_temp = pk_package_ids_to_string ( package_ids ) ;\n g_debug ( \"GetFiles method called: %s\" , package_ids_temp ) ;\n if ( ! pk_backend_is_implemented ( transaction -> priv -> backend , PK_ROLE_ENUM_GET_FILES ) ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NOT_SUPPORTED , \"GetFiles not supported by backend\" ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n length = g_strv_length ( package_ids ) ;\n if ( length > PK_TRANSACTION_MAX_PACKAGES_TO_PROCESS ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NUMBER_OF_PACKAGES_INVALID , \"Too many packages to process (%i/%i)\" , length , PK_TRANSACTION_MAX_PACKAGES_TO_PROCESS ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n ret = pk_package_ids_check ( package_ids ) ;\n if ( ! ret ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_PACKAGE_ID_INVALID , \"The package id's '%s' are not valid\" , package_ids_temp ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n transaction -> priv -> cached_package_ids = g_strdupv ( package_ids ) ;\n pk_transaction_set_role ( transaction , PK_ROLE_ENUM_GET_FILES ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_READY ) ;\n out : pk_transaction_dbus_return ( context , error ) ;\n }"}
{"idx": 7226, "target": 0, "func": "static int superblock_doinit ( struct super_block * sb , void * data ) {\n int rc = 0 ;\n char * options = data ;\n struct security_mnt_opts opts ;\n security_init_mnt_opts ( & opts ) ;\n if ( ! data ) goto out ;\n BUG_ON ( sb -> s_type -> fs_flags & FS_BINARY_MOUNTDATA ) ;\n rc = selinux_parse_opts_str ( options , & opts ) ;\n if ( rc ) goto out_err ;\n out : rc = selinux_set_mnt_opts ( sb , & opts , 0 , NULL ) ;\n out_err : security_free_mnt_opts ( & opts ) ;\n return rc ;\n }"}
{"idx": 7227, "target": 0, "func": "static int test_force_behavior ( xd3_stream * stream , int ignore ) {\n int ret ;\n char buf [ TESTBUFSIZE ] ;\n test_setup ( ) ;\n snprintf_func ( buf , TESTBUFSIZE , \"cp /devull %s\" , TEST_TARGET_FILE ) ;\n if ( ( ret = do_cmd ( stream , buf ) ) ) {\n return ret ;\n }\n snprintf_func ( buf , TESTBUFSIZE , \"%s -e %s %s\" , program_name , TEST_TARGET_FILE , TEST_DELTA_FILE ) ;\n if ( ( ret = do_cmd ( stream , buf ) ) ) {\n return ret ;\n }\n snprintf_func ( buf , TESTBUFSIZE , \"%s -q -e %s %s \" , program_name , TEST_TARGET_FILE , TEST_DELTA_FILE ) ;\n if ( ( ret = do_fail ( stream , buf ) ) ) {\n return ret ;\n }\n snprintf_func ( buf , TESTBUFSIZE , \"%s -f -e %s %s\" , program_name , TEST_TARGET_FILE , TEST_DELTA_FILE ) ;\n if ( ( ret = do_cmd ( stream , buf ) ) ) {\n return ret ;\n }\n test_cleanup ( ) ;\n return 0 ;\n }"}
{"idx": 7228, "target": 0, "func": "static cmsBool ReadOneMLUC ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , _cmsDICelem * e , cmsUInt32Number i , cmsMLU * * mlu ) {\n cmsUInt32Number nItems = 0 ;\n if ( e -> Offsets [ i ] == 0 || e -> Sizes [ i ] == 0 ) {\n * mlu = NULL ;\n return TRUE ;\n }\n if ( ! io -> Seek ( io , e -> Offsets [ i ] ) ) return FALSE ;\n * mlu = ( cmsMLU * ) Type_MLU_Read ( self , io , & nItems , e -> Sizes [ i ] ) ;\n return * mlu != NULL ;\n }"}
{"idx": 7229, "target": 0, "func": "static int check_principals_line ( struct ssh * ssh , char * cp , const struct sshkey_cert * cert , const char * loc , struct sshauthopt * * authoptsp ) {\n u_int i , found = 0 ;\n char * ep , * line_opts ;\n const char * reason = NULL ;\n struct sshauthopt * opts = NULL ;\n if ( authoptsp != NULL ) * authoptsp = NULL ;\n ep = cp + strlen ( cp ) - 1 ;\n while ( ep > cp && ( * ep == '\\n' || * ep == ' ' || * ep == '\\t' ) ) * ep -- = '\\0' ;\n line_opts = NULL ;\n if ( ( ep = strrchr ( cp , ' ' ) ) != NULL || ( ep = strrchr ( cp , '\\t' ) ) != NULL ) {\n for ( ;\n * ep == ' ' || * ep == '\\t' ;\n ep ++ ) ;\n line_opts = cp ;\n cp = ep ;\n }\n if ( ( opts = sshauthopt_parse ( line_opts , & reason ) ) == NULL ) {\n debug ( \"%s: bad principals options: %s\" , loc , reason ) ;\n auth_debug_add ( \"%s: bad principals options: %s\" , loc , reason ) ;\n return - 1 ;\n }\n for ( i = 0 ;\n i < cert -> nprincipals ;\n i ++ ) {\n if ( strcmp ( cp , cert -> principals [ i ] ) != 0 ) continue ;\n debug3 ( \"%s: matched principal \\\"%.100s\\\"\" , loc , cert -> principals [ i ] ) ;\n found = 1 ;\n }\n if ( found && authoptsp != NULL ) {\n * authoptsp = opts ;\n opts = NULL ;\n }\n sshauthopt_free ( opts ) ;\n return found ? 0 : - 1 ;\n }"}
{"idx": 7230, "target": 1, "func": "static gboolean dissect_applemidi_heur ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n guint16 command ;\n conversation_t * p_conv ;\n encoding_name_and_rate_t * encoding_name_and_rate = NULL ;\n GHashTable * rtp_dyn_payload = NULL ;\n gint * key ;\n if ( tvb_length ( tvb ) < 4 ) return FALSE ;\n if ( ! test_applemidi ( tvb , & command , FALSE ) ) {\n return FALSE ;\n }\n encoding_name_and_rate = wmem_new ( wmem_file_scope ( ) , encoding_name_and_rate_t ) ;\n rtp_dyn_payload = g_hash_table_new ( g_int_hash , g_int_equal ) ;\n encoding_name_and_rate -> encoding_name = wmem_strdup ( wmem_file_scope ( ) , \"rtp-midi\" ) ;\n encoding_name_and_rate -> sample_rate = 10000 ;\n key = wmem_new ( wmem_file_scope ( ) , gint ) ;\n * key = 97 ;\n g_hash_table_insert ( rtp_dyn_payload , key , encoding_name_and_rate ) ;\n rtp_add_address ( pinfo , & pinfo -> src , pinfo -> srcport , 0 , APPLEMIDI_DISSECTOR_SHORTNAME , pinfo -> fd -> num , FALSE , rtp_dyn_payload ) ;\n p_conv = find_or_create_conversation ( pinfo ) ;\n conversation_set_dissector ( p_conv , applemidi_handle ) ;\n dissect_applemidi_common ( tvb , pinfo , tree , command ) ;\n return TRUE ;\n }"}
{"idx": 7231, "target": 0, "func": "static void save_request ( packet_info * pinfo , guint8 opcode , union request_parameters_union parameters , bluetooth_data_t * bluetooth_data ) {\n wmem_tree_key_t key [ 5 ] ;\n guint32 frame_number , curr_layer_num ;\n request_data_t * request_data ;\n frame_number = pinfo -> num ;\n curr_layer_num = pinfo -> curr_layer_num ;\n key [ 0 ] . length = 1 ;\n key [ 0 ] . key = & bluetooth_data -> interface_id ;\n key [ 1 ] . length = 1 ;\n key [ 1 ] . key = & bluetooth_data -> adapter_id ;\n key [ 2 ] . length = 1 ;\n key [ 2 ] . key = & curr_layer_num ;\n key [ 3 ] . length = 1 ;\n key [ 3 ] . key = & frame_number ;\n key [ 4 ] . length = 0 ;\n key [ 4 ] . key = NULL ;\n request_data = wmem_new ( wmem_file_scope ( ) , request_data_t ) ;\n request_data -> opcode = opcode ;\n request_data -> request_in_frame = frame_number ;\n request_data -> response_in_frame = 0 ;\n request_data -> parameters = parameters ;\n wmem_tree_insert32_array ( requests , key , request_data ) ;\n }"}
{"idx": 7232, "target": 0, "func": "file_transfer_t * imcb_file_send_start ( struct im_connection * ic , char * handle , char * file_name , size_t file_size ) {\n bee_t * bee = ic -> bee ;\n bee_user_t * bu = bee_user_by_handle ( bee , ic , handle ) ;\n if ( bee -> ui -> ft_in_start && bu ) {\n return bee -> ui -> ft_in_start ( bee , bu , file_name , file_size ) ;\n }\n else {\n return NULL ;\n }\n }"}
{"idx": 7233, "target": 0, "func": "void cpu_resume_from_signal ( CPUArchState * env1 , void * puc ) {\n # ifdef __linux__ struct ucontext * uc = puc ;\n # elif defined ( __OpenBSD__ ) struct sigcontext * uc = puc ;\n # endif if ( puc ) {\n # ifdef __linux__ # ifdef __ia64 sigprocmask ( SIG_SETMASK , ( sigset_t * ) & uc -> uc_sigmask , NULL ) ;\n # else sigprocmask ( SIG_SETMASK , & uc -> uc_sigmask , NULL ) ;\n # endif # elif defined ( __OpenBSD__ ) sigprocmask ( SIG_SETMASK , & uc -> sc_mask , NULL ) ;\n # endif }\n env1 -> exception_index = - 1 ;\n siglongjmp ( env1 -> jmp_env , 1 ) ;\n }"}
{"idx": 7234, "target": 0, "func": "int64_t vp9_rd_pick_inter_mode_sub8x8 ( VP9_COMP * cpi , MACROBLOCK * x , const TileInfo * const tile , int mi_row , int mi_col , int * returnrate , int64_t * returndistortion , BLOCK_SIZE bsize , PICK_MODE_CONTEXT * ctx , int64_t best_rd_so_far ) {\n VP9_COMMON * const cm = & cpi -> common ;\n RD_OPT * const rd_opt = & cpi -> rd ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n MB_MODE_INFO * const mbmi = & xd -> mi [ 0 ] . src_mi -> mbmi ;\n const struct segmentation * const seg = & cm -> seg ;\n MV_REFERENCE_FRAME ref_frame , second_ref_frame ;\n unsigned char segment_id = mbmi -> segment_id ;\n int comp_pred , i ;\n int_mv frame_mv [ MB_MODE_COUNT ] [ MAX_REF_FRAMES ] ;\n struct buf_2d yv12_mb [ 4 ] [ MAX_MB_PLANE ] ;\n static const int flag_list [ 4 ] = {\n 0 , VP9_LAST_FLAG , VP9_GOLD_FLAG , VP9_ALT_FLAG }\n ;\n int64_t best_rd = best_rd_so_far ;\n int64_t best_yrd = best_rd_so_far ;\n static const int64_t best_tx_diff [ TX_MODES ] = {\n 0 }\n ;\n int64_t best_pred_diff [ REFERENCE_MODES ] ;\n int64_t best_pred_rd [ REFERENCE_MODES ] ;\n int64_t best_filter_rd [ SWITCHABLE_FILTER_CONTEXTS ] ;\n int64_t best_filter_diff [ SWITCHABLE_FILTER_CONTEXTS ] ;\n MB_MODE_INFO best_mbmode ;\n int ref_index , best_ref_index = 0 ;\n unsigned int ref_costs_single [ MAX_REF_FRAMES ] , ref_costs_comp [ MAX_REF_FRAMES ] ;\n vp9_prob comp_mode_p ;\n INTERP_FILTER tmp_best_filter = SWITCHABLE ;\n int rate_uv_intra , rate_uv_tokenonly ;\n int64_t dist_uv ;\n int skip_uv ;\n PREDICTION_MODE mode_uv = DC_PRED ;\n const int intra_cost_penalty = * vp9_dc_quant ( cm -> base_qindex , cm -> y_dc_delta_q , cm -> bit_depth ) ;\n int_mv seg_mvs [ 4 ] [ MAX_REF_FRAMES ] ;\n b_mode_info best_bmodes [ 4 ] ;\n int best_skip2 = 0 ;\n int ref_frame_skip_mask [ 2 ] = {\n 0 }\n ;\n x -> skip_encode = cpi -> sf . skip_encode_frame && x -> q_index < QIDX_SKIP_THRESH ;\n vpx_memset ( x -> zcoeff_blk [ TX_4X4 ] , 0 , 4 ) ;\n vp9_zero ( best_mbmode ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n int j ;\n for ( j = 0 ;\n j < MAX_REF_FRAMES ;\n j ++ ) seg_mvs [ i ] [ j ] . as_int = INVALID_MV ;\n }\n estimate_ref_frame_costs ( cm , xd , segment_id , ref_costs_single , ref_costs_comp , & comp_mode_p ) ;\n for ( i = 0 ;\n i < REFERENCE_MODES ;\n ++ i ) best_pred_rd [ i ] = INT64_MAX ;\n for ( i = 0 ;\n i < SWITCHABLE_FILTER_CONTEXTS ;\n i ++ ) best_filter_rd [ i ] = INT64_MAX ;\n rate_uv_intra = INT_MAX ;\n * returnrate = INT_MAX ;\n for ( ref_frame = LAST_FRAME ;\n ref_frame <= ALTREF_FRAME ;\n ref_frame ++ ) {\n if ( cpi -> ref_frame_flags & flag_list [ ref_frame ] ) {\n setup_buffer_inter ( cpi , x , tile , ref_frame , bsize , mi_row , mi_col , frame_mv [ NEARESTMV ] , frame_mv [ NEARMV ] , yv12_mb ) ;\n }\n else {\n ref_frame_skip_mask [ 0 ] |= ( 1 << ref_frame ) ;\n ref_frame_skip_mask [ 1 ] |= SECOND_REF_FRAME_MASK ;\n }\n frame_mv [ NEWMV ] [ ref_frame ] . as_int = INVALID_MV ;\n frame_mv [ ZEROMV ] [ ref_frame ] . as_int = 0 ;\n }\n for ( ref_index = 0 ;\n ref_index < MAX_REFS ;\n ++ ref_index ) {\n int mode_excluded = 0 ;\n int64_t this_rd = INT64_MAX ;\n int disable_skip = 0 ;\n int compmode_cost = 0 ;\n int rate2 = 0 , rate_y = 0 , rate_uv = 0 ;\n int64_t distortion2 = 0 , distortion_y = 0 , distortion_uv = 0 ;\n int skippable = 0 ;\n int i ;\n int this_skip2 = 0 ;\n int64_t total_sse = INT_MAX ;\n int early_term = 0 ;\n ref_frame = vp9_ref_order [ ref_index ] . ref_frame [ 0 ] ;\n second_ref_frame = vp9_ref_order [ ref_index ] . ref_frame [ 1 ] ;\n if ( ref_index > 2 && cpi -> sf . mode_skip_start < MAX_MODES ) {\n if ( ref_index == 3 ) {\n switch ( best_mbmode . ref_frame [ 0 ] ) {\n case INTRA_FRAME : break ;\n case LAST_FRAME : ref_frame_skip_mask [ 0 ] |= ( 1 << GOLDEN_FRAME ) | ( 1 << ALTREF_FRAME ) ;\n ref_frame_skip_mask [ 1 ] |= SECOND_REF_FRAME_MASK ;\n break ;\n case GOLDEN_FRAME : ref_frame_skip_mask [ 0 ] |= ( 1 << LAST_FRAME ) | ( 1 << ALTREF_FRAME ) ;\n ref_frame_skip_mask [ 1 ] |= SECOND_REF_FRAME_MASK ;\n break ;\n case ALTREF_FRAME : ref_frame_skip_mask [ 0 ] |= ( 1 << GOLDEN_FRAME ) | ( 1 << LAST_FRAME ) ;\n break ;\n case NONE : case MAX_REF_FRAMES : assert ( 0 && \"Invalid Reference frame\" ) ;\n break ;\n }\n }\n }\n if ( ref_frame_skip_mask [ 0 ] & ( 1 << ref_frame ) && ref_frame_skip_mask [ 1 ] & ( 1 << MAX ( 0 , second_ref_frame ) ) ) continue ;\n if ( rd_less_than_thresh ( best_rd , rd_opt -> threshes [ segment_id ] [ bsize ] [ ref_index ] , rd_opt -> thresh_freq_fact [ bsize ] [ ref_index ] ) ) continue ;\n comp_pred = second_ref_frame > INTRA_FRAME ;\n if ( comp_pred ) {\n if ( ! cm -> allow_comp_inter_inter ) continue ;\n if ( ! ( cpi -> ref_frame_flags & flag_list [ second_ref_frame ] ) ) continue ;\n if ( vp9_segfeature_active ( seg , segment_id , SEG_LVL_REF_FRAME ) ) continue ;\n if ( ( cpi -> sf . mode_search_skip_flags & FLAG_SKIP_COMP_BESTINTRA ) && best_mbmode . ref_frame [ 0 ] == INTRA_FRAME ) continue ;\n }\n if ( ref_frame > INTRA_FRAME && vp9_is_scaled ( & cm -> frame_refs [ ref_frame - 1 ] . sf ) ) continue ;\n if ( second_ref_frame > INTRA_FRAME && vp9_is_scaled ( & cm -> frame_refs [ second_ref_frame - 1 ] . sf ) ) continue ;\n if ( comp_pred ) mode_excluded = cm -> reference_mode == SINGLE_REFERENCE ;\n else if ( ref_frame != INTRA_FRAME ) mode_excluded = cm -> reference_mode == COMPOUND_REFERENCE ;\n if ( vp9_segfeature_active ( seg , segment_id , SEG_LVL_REF_FRAME ) && vp9_get_segdata ( seg , segment_id , SEG_LVL_REF_FRAME ) != ( int ) ref_frame ) {\n continue ;\n }\n else if ( ! vp9_segfeature_active ( seg , segment_id , SEG_LVL_REF_FRAME ) ) {\n if ( cpi -> rc . is_src_frame_alt_ref && ( cpi -> oxcf . arnr_max_frames == 0 ) ) continue ;\n }\n mbmi -> tx_size = TX_4X4 ;\n mbmi -> uv_mode = DC_PRED ;\n mbmi -> ref_frame [ 0 ] = ref_frame ;\n mbmi -> ref_frame [ 1 ] = second_ref_frame ;\n mbmi -> interp_filter = cm -> interp_filter == SWITCHABLE ? EIGHTTAP : cm -> interp_filter ;\n x -> skip = 0 ;\n set_ref_ptrs ( cm , xd , ref_frame , second_ref_frame ) ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n i ++ ) {\n xd -> plane [ i ] . pre [ 0 ] = yv12_mb [ ref_frame ] [ i ] ;\n if ( comp_pred ) xd -> plane [ i ] . pre [ 1 ] = yv12_mb [ second_ref_frame ] [ i ] ;\n }\n if ( ref_frame == INTRA_FRAME ) {\n int rate ;\n if ( rd_pick_intra_sub_8x8_y_mode ( cpi , x , & rate , & rate_y , & distortion_y , best_rd ) >= best_rd ) continue ;\n rate2 += rate ;\n rate2 += intra_cost_penalty ;\n distortion2 += distortion_y ;\n if ( rate_uv_intra == INT_MAX ) {\n choose_intra_uv_mode ( cpi , ctx , bsize , TX_4X4 , & rate_uv_intra , & rate_uv_tokenonly , & dist_uv , & skip_uv , & mode_uv ) ;\n }\n rate2 += rate_uv_intra ;\n rate_uv = rate_uv_tokenonly ;\n distortion2 += dist_uv ;\n distortion_uv = dist_uv ;\n mbmi -> uv_mode = mode_uv ;\n }\n else {\n int rate ;\n int64_t distortion ;\n int64_t this_rd_thresh ;\n int64_t tmp_rd , tmp_best_rd = INT64_MAX , tmp_best_rdu = INT64_MAX ;\n int tmp_best_rate = INT_MAX , tmp_best_ratey = INT_MAX ;\n int64_t tmp_best_distortion = INT_MAX , tmp_best_sse , uv_sse ;\n int tmp_best_skippable = 0 ;\n int switchable_filter_index ;\n int_mv * second_ref = comp_pred ? & mbmi -> ref_mvs [ second_ref_frame ] [ 0 ] : NULL ;\n b_mode_info tmp_best_bmodes [ 16 ] ;\n MB_MODE_INFO tmp_best_mbmode ;\n BEST_SEG_INFO bsi [ SWITCHABLE_FILTERS ] ;\n int pred_exists = 0 ;\n int uv_skippable ;\n this_rd_thresh = ( ref_frame == LAST_FRAME ) ? rd_opt -> threshes [ segment_id ] [ bsize ] [ THR_LAST ] : rd_opt -> threshes [ segment_id ] [ bsize ] [ THR_ALTR ] ;\n this_rd_thresh = ( ref_frame == GOLDEN_FRAME ) ? rd_opt -> threshes [ segment_id ] [ bsize ] [ THR_GOLD ] : this_rd_thresh ;\n rd_opt -> mask_filter = 0 ;\n for ( i = 0 ;\n i < SWITCHABLE_FILTER_CONTEXTS ;\n ++ i ) rd_opt -> filter_cache [ i ] = INT64_MAX ;\n if ( cm -> interp_filter != BILINEAR ) {\n tmp_best_filter = EIGHTTAP ;\n if ( x -> source_variance < cpi -> sf . disable_filter_search_var_thresh ) {\n tmp_best_filter = EIGHTTAP ;\n }\n else if ( cpi -> sf . adaptive_pred_interp_filter == 1 && ctx -> pred_interp_filter < SWITCHABLE ) {\n tmp_best_filter = ctx -> pred_interp_filter ;\n }\n else if ( cpi -> sf . adaptive_pred_interp_filter == 2 ) {\n tmp_best_filter = ctx -> pred_interp_filter < SWITCHABLE ? ctx -> pred_interp_filter : 0 ;\n }\n else {\n for ( switchable_filter_index = 0 ;\n switchable_filter_index < SWITCHABLE_FILTERS ;\n ++ switchable_filter_index ) {\n int newbest , rs ;\n int64_t rs_rd ;\n mbmi -> interp_filter = switchable_filter_index ;\n tmp_rd = rd_pick_best_sub8x8_mode ( cpi , x , tile , & mbmi -> ref_mvs [ ref_frame ] [ 0 ] , second_ref , best_yrd , & rate , & rate_y , & distortion , & skippable , & total_sse , ( int ) this_rd_thresh , seg_mvs , bsi , switchable_filter_index , mi_row , mi_col ) ;\n if ( tmp_rd == INT64_MAX ) continue ;\n rs = vp9_get_switchable_rate ( cpi ) ;\n rs_rd = RDCOST ( x -> rdmult , x -> rddiv , rs , 0 ) ;\n rd_opt -> filter_cache [ switchable_filter_index ] = tmp_rd ;\n rd_opt -> filter_cache [ SWITCHABLE_FILTERS ] = MIN ( rd_opt -> filter_cache [ SWITCHABLE_FILTERS ] , tmp_rd + rs_rd ) ;\n if ( cm -> interp_filter == SWITCHABLE ) tmp_rd += rs_rd ;\n rd_opt -> mask_filter = MAX ( rd_opt -> mask_filter , tmp_rd ) ;\n newbest = ( tmp_rd < tmp_best_rd ) ;\n if ( newbest ) {\n tmp_best_filter = mbmi -> interp_filter ;\n tmp_best_rd = tmp_rd ;\n }\n if ( ( newbest && cm -> interp_filter == SWITCHABLE ) || ( mbmi -> interp_filter == cm -> interp_filter && cm -> interp_filter != SWITCHABLE ) ) {\n tmp_best_rdu = tmp_rd ;\n tmp_best_rate = rate ;\n tmp_best_ratey = rate_y ;\n tmp_best_distortion = distortion ;\n tmp_best_sse = total_sse ;\n tmp_best_skippable = skippable ;\n tmp_best_mbmode = * mbmi ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n tmp_best_bmodes [ i ] = xd -> mi [ 0 ] . src_mi -> bmi [ i ] ;\n x -> zcoeff_blk [ TX_4X4 ] [ i ] = ! x -> plane [ 0 ] . eobs [ i ] ;\n }\n pred_exists = 1 ;\n if ( switchable_filter_index == 0 && cpi -> sf . use_rd_breakout && best_rd < INT64_MAX ) {\n if ( tmp_best_rdu / 2 > best_rd ) {\n tmp_best_filter = mbmi -> interp_filter ;\n tmp_best_rdu = INT64_MAX ;\n break ;\n }\n }\n }\n }\n }\n }\n if ( tmp_best_rdu == INT64_MAX && pred_exists ) continue ;\n mbmi -> interp_filter = ( cm -> interp_filter == SWITCHABLE ? tmp_best_filter : cm -> interp_filter ) ;\n if ( ! pred_exists ) {\n tmp_rd = rd_pick_best_sub8x8_mode ( cpi , x , tile , & mbmi -> ref_mvs [ ref_frame ] [ 0 ] , second_ref , best_yrd , & rate , & rate_y , & distortion , & skippable , & total_sse , ( int ) this_rd_thresh , seg_mvs , bsi , 0 , mi_row , mi_col ) ;\n if ( tmp_rd == INT64_MAX ) continue ;\n }\n else {\n total_sse = tmp_best_sse ;\n rate = tmp_best_rate ;\n rate_y = tmp_best_ratey ;\n distortion = tmp_best_distortion ;\n skippable = tmp_best_skippable ;\n * mbmi = tmp_best_mbmode ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) xd -> mi [ 0 ] . src_mi -> bmi [ i ] = tmp_best_bmodes [ i ] ;\n }\n rate2 += rate ;\n distortion2 += distortion ;\n if ( cm -> interp_filter == SWITCHABLE ) rate2 += vp9_get_switchable_rate ( cpi ) ;\n if ( ! mode_excluded ) mode_excluded = comp_pred ? cm -> reference_mode == SINGLE_REFERENCE : cm -> reference_mode == COMPOUND_REFERENCE ;\n compmode_cost = vp9_cost_bit ( comp_mode_p , comp_pred ) ;\n tmp_best_rdu = best_rd - MIN ( RDCOST ( x -> rdmult , x -> rddiv , rate2 , distortion2 ) , RDCOST ( x -> rdmult , x -> rddiv , 0 , total_sse ) ) ;\n if ( tmp_best_rdu > 0 ) {\n vp9_build_inter_predictors_sbuv ( & x -> e_mbd , mi_row , mi_col , BLOCK_8X8 ) ;\n super_block_uvrd ( cpi , x , & rate_uv , & distortion_uv , & uv_skippable , & uv_sse , BLOCK_8X8 , tmp_best_rdu ) ;\n if ( rate_uv == INT_MAX ) continue ;\n rate2 += rate_uv ;\n distortion2 += distortion_uv ;\n skippable = skippable && uv_skippable ;\n total_sse += uv_sse ;\n }\n }\n if ( cm -> reference_mode == REFERENCE_MODE_SELECT ) rate2 += compmode_cost ;\n if ( second_ref_frame > INTRA_FRAME ) {\n rate2 += ref_costs_comp [ ref_frame ] ;\n }\n else {\n rate2 += ref_costs_single [ ref_frame ] ;\n }\n if ( ! disable_skip ) {\n if ( ref_frame != INTRA_FRAME && ! xd -> lossless ) {\n if ( RDCOST ( x -> rdmult , x -> rddiv , rate_y + rate_uv , distortion2 ) < RDCOST ( x -> rdmult , x -> rddiv , 0 , total_sse ) ) {\n rate2 += vp9_cost_bit ( vp9_get_skip_prob ( cm , xd ) , 0 ) ;\n }\n else {\n rate2 += vp9_cost_bit ( vp9_get_skip_prob ( cm , xd ) , 1 ) ;\n distortion2 = total_sse ;\n assert ( total_sse >= 0 ) ;\n rate2 -= ( rate_y + rate_uv ) ;\n rate_y = 0 ;\n rate_uv = 0 ;\n this_skip2 = 1 ;\n }\n }\n else {\n rate2 += vp9_cost_bit ( vp9_get_skip_prob ( cm , xd ) , 0 ) ;\n }\n this_rd = RDCOST ( x -> rdmult , x -> rddiv , rate2 , distortion2 ) ;\n }\n if ( ! disable_skip && ref_frame == INTRA_FRAME ) {\n for ( i = 0 ;\n i < REFERENCE_MODES ;\n ++ i ) best_pred_rd [ i ] = MIN ( best_pred_rd [ i ] , this_rd ) ;\n for ( i = 0 ;\n i < SWITCHABLE_FILTER_CONTEXTS ;\n i ++ ) best_filter_rd [ i ] = MIN ( best_filter_rd [ i ] , this_rd ) ;\n }\n if ( this_rd < best_rd || x -> skip ) {\n if ( ! mode_excluded ) {\n int max_plane = MAX_MB_PLANE ;\n best_ref_index = ref_index ;\n if ( ref_frame == INTRA_FRAME ) {\n mbmi -> mv [ 0 ] . as_int = 0 ;\n max_plane = 1 ;\n }\n * returnrate = rate2 ;\n * returndistortion = distortion2 ;\n best_rd = this_rd ;\n best_yrd = best_rd - RDCOST ( x -> rdmult , x -> rddiv , rate_uv , distortion_uv ) ;\n best_mbmode = * mbmi ;\n best_skip2 = this_skip2 ;\n if ( ! x -> select_tx_size ) swap_block_ptr ( x , ctx , 1 , 0 , 0 , max_plane ) ;\n vpx_memcpy ( ctx -> zcoeff_blk , x -> zcoeff_blk [ TX_4X4 ] , sizeof ( uint8_t ) * ctx -> num_4x4_blk ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) best_bmodes [ i ] = xd -> mi [ 0 ] . src_mi -> bmi [ i ] ;\n if ( ( cpi -> sf . mode_search_skip_flags & FLAG_EARLY_TERMINATE ) && ( ref_index > MIN_EARLY_TERM_INDEX ) ) {\n const int qstep = xd -> plane [ 0 ] . dequant [ 1 ] ;\n int scale = 4 ;\n if ( x -> source_variance < UINT_MAX ) {\n const int var_adjust = ( x -> source_variance < 16 ) ;\n scale -= var_adjust ;\n }\n if ( ref_frame > INTRA_FRAME && distortion2 * scale < qstep * qstep ) {\n early_term = 1 ;\n }\n }\n }\n }\n if ( ! disable_skip && ref_frame != INTRA_FRAME ) {\n int64_t single_rd , hybrid_rd , single_rate , hybrid_rate ;\n if ( cm -> reference_mode == REFERENCE_MODE_SELECT ) {\n single_rate = rate2 - compmode_cost ;\n hybrid_rate = rate2 ;\n }\n else {\n single_rate = rate2 ;\n hybrid_rate = rate2 + compmode_cost ;\n }\n single_rd = RDCOST ( x -> rdmult , x -> rddiv , single_rate , distortion2 ) ;\n hybrid_rd = RDCOST ( x -> rdmult , x -> rddiv , hybrid_rate , distortion2 ) ;\n if ( ! comp_pred && single_rd < best_pred_rd [ SINGLE_REFERENCE ] ) best_pred_rd [ SINGLE_REFERENCE ] = single_rd ;\n else if ( comp_pred && single_rd < best_pred_rd [ COMPOUND_REFERENCE ] ) best_pred_rd [ COMPOUND_REFERENCE ] = single_rd ;\n if ( hybrid_rd < best_pred_rd [ REFERENCE_MODE_SELECT ] ) best_pred_rd [ REFERENCE_MODE_SELECT ] = hybrid_rd ;\n }\n if ( ! mode_excluded && ! disable_skip && ref_frame != INTRA_FRAME && cm -> interp_filter != BILINEAR ) {\n int64_t ref = rd_opt -> filter_cache [ cm -> interp_filter == SWITCHABLE ? SWITCHABLE_FILTERS : cm -> interp_filter ] ;\n int64_t adj_rd ;\n for ( i = 0 ;\n i < SWITCHABLE_FILTER_CONTEXTS ;\n i ++ ) {\n if ( ref == INT64_MAX ) adj_rd = 0 ;\n else if ( rd_opt -> filter_cache [ i ] == INT64_MAX ) adj_rd = rd_opt -> mask_filter - ref + 10 ;\n else adj_rd = rd_opt -> filter_cache [ i ] - ref ;\n adj_rd += this_rd ;\n best_filter_rd [ i ] = MIN ( best_filter_rd [ i ] , adj_rd ) ;\n }\n }\n if ( early_term ) break ;\n if ( x -> skip && ! comp_pred ) break ;\n }\n if ( best_rd >= best_rd_so_far ) return INT64_MAX ;\n if ( cpi -> sf . use_uv_intra_rd_estimate ) {\n if ( best_mbmode . ref_frame [ 0 ] == INTRA_FRAME ) {\n * mbmi = best_mbmode ;\n rd_pick_intra_sbuv_mode ( cpi , x , ctx , & rate_uv_intra , & rate_uv_tokenonly , & dist_uv , & skip_uv , BLOCK_8X8 , TX_4X4 ) ;\n }\n }\n if ( best_rd == INT64_MAX ) {\n * returnrate = INT_MAX ;\n * returndistortion = INT64_MAX ;\n return best_rd ;\n }\n assert ( ( cm -> interp_filter == SWITCHABLE ) || ( cm -> interp_filter == best_mbmode . interp_filter ) || ! is_inter_block ( & best_mbmode ) ) ;\n update_rd_thresh_fact ( cpi , bsize , best_ref_index ) ;\n * mbmi = best_mbmode ;\n x -> skip |= best_skip2 ;\n if ( ! is_inter_block ( & best_mbmode ) ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) xd -> mi [ 0 ] . src_mi -> bmi [ i ] . as_mode = best_bmodes [ i ] . as_mode ;\n }\n else {\n for ( i = 0 ;\n i < 4 ;\n ++ i ) vpx_memcpy ( & xd -> mi [ 0 ] . src_mi -> bmi [ i ] , & best_bmodes [ i ] , sizeof ( b_mode_info ) ) ;\n mbmi -> mv [ 0 ] . as_int = xd -> mi [ 0 ] . src_mi -> bmi [ 3 ] . as_mv [ 0 ] . as_int ;\n mbmi -> mv [ 1 ] . as_int = xd -> mi [ 0 ] . src_mi -> bmi [ 3 ] . as_mv [ 1 ] . as_int ;\n }\n for ( i = 0 ;\n i < REFERENCE_MODES ;\n ++ i ) {\n if ( best_pred_rd [ i ] == INT64_MAX ) best_pred_diff [ i ] = INT_MIN ;\n else best_pred_diff [ i ] = best_rd - best_pred_rd [ i ] ;\n }\n if ( ! x -> skip ) {\n for ( i = 0 ;\n i < SWITCHABLE_FILTER_CONTEXTS ;\n i ++ ) {\n if ( best_filter_rd [ i ] == INT64_MAX ) best_filter_diff [ i ] = 0 ;\n else best_filter_diff [ i ] = best_rd - best_filter_rd [ i ] ;\n }\n if ( cm -> interp_filter == SWITCHABLE ) assert ( best_filter_diff [ SWITCHABLE_FILTERS ] == 0 ) ;\n }\n else {\n vp9_zero ( best_filter_diff ) ;\n }\n store_coding_context ( x , ctx , best_ref_index , best_pred_diff , best_tx_diff , best_filter_diff , 0 ) ;\n return best_rd ;\n }"}
{"idx": 7235, "target": 0, "func": "static void Type_MLU_Free ( struct _cms_typehandler_struct * self , void * Ptr ) {\n cmsMLUfree ( ( cmsMLU * ) Ptr ) ;\n return ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 7236, "target": 0, "func": "static void ctl_flushpkt ( u_char more ) {\n size_t i ;\n int dlen ;\n int sendlen ;\n int maclen ;\n int totlen ;\n keyid_t keyid ;\n dlen = datapt - rpkt . u . data ;\n if ( ! more && datanotbinflag && dlen + 2 < CTL_MAX_DATA_LEN ) {\n * datapt ++ = '\\r' ;\n * datapt ++ = '\\n' ;\n dlen += 2 ;\n }\n sendlen = dlen + CTL_HEADER_LEN ;\n while ( sendlen & 0x3 ) {\n * datapt ++ = '\\0' ;\n sendlen ++ ;\n }\n rpkt . r_m_e_op = CTL_RESPONSE | more | ( res_opcode & CTL_OP_MASK ) ;\n rpkt . count = htons ( ( u_short ) dlen ) ;\n rpkt . offset = htons ( ( u_short ) res_offset ) ;\n if ( res_async ) {\n for ( i = 0 ;\n i < COUNTOF ( ctl_traps ) ;\n i ++ ) {\n if ( TRAP_INUSE & ctl_traps [ i ] . tr_flags ) {\n rpkt . li_vn_mode = PKT_LI_VN_MODE ( sys_leap , ctl_traps [ i ] . tr_version , MODE_CONTROL ) ;\n rpkt . sequence = htons ( ctl_traps [ i ] . tr_sequence ) ;\n sendpkt ( & ctl_traps [ i ] . tr_addr , ctl_traps [ i ] . tr_localaddr , - 4 , ( struct pkt * ) & rpkt , sendlen ) ;\n if ( ! more ) ctl_traps [ i ] . tr_sequence ++ ;\n numasyncmsgs ++ ;\n }\n }\n }\n else {\n if ( res_authenticate && sys_authenticate ) {\n totlen = sendlen ;\n while ( totlen & 7 ) {\n * datapt ++ = '\\0' ;\n totlen ++ ;\n }\n keyid = htonl ( res_keyid ) ;\n memcpy ( datapt , & keyid , sizeof ( keyid ) ) ;\n maclen = authencrypt ( res_keyid , ( u_int32 * ) & rpkt , totlen ) ;\n sendpkt ( rmt_addr , lcl_inter , - 5 , ( struct pkt * ) & rpkt , totlen + maclen ) ;\n }\n else {\n sendpkt ( rmt_addr , lcl_inter , - 6 , ( struct pkt * ) & rpkt , sendlen ) ;\n }\n if ( more ) numctlfrags ++ ;\n else numctlresponses ++ ;\n }\n res_frags ++ ;\n res_offset += dlen ;\n datapt = rpkt . u . data ;\n }"}
{"idx": 7237, "target": 1, "func": "extern int as_mysql_job_start ( mysql_conn_t * mysql_conn , struct job_record * job_ptr ) {\n int rc = SLURM_SUCCESS ;\n char * nodes = NULL , * jname = NULL , * node_inx = NULL ;\n int track_steps = 0 ;\n char * block_id = NULL , * partition = NULL ;\n char * gres_req = NULL , * gres_alloc = NULL ;\n char temp_bit [ BUF_SIZE ] ;\n char * query = NULL ;\n int reinit = 0 ;\n time_t begin_time , check_time , start_time , submit_time ;\n uint32_t wckeyid = 0 ;\n uint32_t job_state ;\n int node_cnt = 0 ;\n uint32_t array_task_id = ( job_ptr -> array_job_id ) ? job_ptr -> array_task_id : NO_VAL ;\n uint64_t job_db_inx = job_ptr -> db_index ;\n job_array_struct_t * array_recs = job_ptr -> array_recs ;\n if ( ( ! job_ptr -> details || ! job_ptr -> details -> submit_time ) && ! job_ptr -> resize_time ) {\n error ( \"as_mysql_job_start: \" \"Not inputing this job, it has no submit time.\" ) ;\n return SLURM_ERROR ;\n }\n if ( check_connection ( mysql_conn ) != SLURM_SUCCESS ) return ESLURM_DB_CONNECTION ;\n debug2 ( \"as_mysql_slurmdb_job_start() called\" ) ;\n job_state = job_ptr -> job_state ;\n if ( job_ptr -> resize_time ) {\n begin_time = job_ptr -> resize_time ;\n submit_time = job_ptr -> resize_time ;\n start_time = job_ptr -> resize_time ;\n }\n else {\n begin_time = job_ptr -> details -> begin_time ;\n submit_time = job_ptr -> details -> submit_time ;\n start_time = job_ptr -> start_time ;\n }\n if ( job_ptr -> state_reason == WAIT_ARRAY_TASK_LIMIT ) begin_time = INFINITE ;\n if ( IS_JOB_RESIZING ( job_ptr ) ) {\n if ( ! job_ptr -> db_index ) {\n error ( \"We don't have a db_index for job %u, \" \"this should only happen when resizing \" \"jobs and the database interface was down.\" , job_ptr -> job_id ) ;\n job_ptr -> db_index = _get_db_index ( mysql_conn , job_ptr -> details -> submit_time , job_ptr -> job_id , job_ptr -> assoc_id ) ;\n }\n if ( job_ptr -> db_index ) as_mysql_job_complete ( mysql_conn , job_ptr ) ;\n job_state &= ( ~ JOB_RESIZING ) ;\n job_ptr -> db_index = 0 ;\n }\n job_state &= JOB_STATE_BASE ;\n if ( start_time ) check_time = start_time ;\n else if ( begin_time ) check_time = begin_time ;\n else check_time = submit_time ;\n slurm_mutex_lock ( & rollup_lock ) ;\n if ( check_time < global_last_rollup ) {\n MYSQL_RES * result = NULL ;\n MYSQL_ROW row ;\n query = xstrdup_printf ( \"select job_db_inx \" \"from \\\"%s_%s\\\" where id_job=%u and \" \"time_submit=%ld and time_eligible=%ld \" \"and time_start=%ld;\n\" , mysql_conn -> cluster_name , job_table , job_ptr -> job_id , submit_time , begin_time , start_time ) ;\n if ( debug_flags & DEBUG_FLAG_DB_JOB ) DB_DEBUG ( mysql_conn -> conn , \"query\\n%s\" , query ) ;\n if ( ! ( result = mysql_db_query_ret ( mysql_conn , query , 0 ) ) ) {\n xfree ( query ) ;\n slurm_mutex_unlock ( & rollup_lock ) ;\n return SLURM_ERROR ;\n }\n xfree ( query ) ;\n if ( ( row = mysql_fetch_row ( result ) ) ) {\n mysql_free_result ( result ) ;\n debug4 ( \"revieved an update for a \" \"job (%u) already known about\" , job_ptr -> job_id ) ;\n slurm_mutex_unlock ( & rollup_lock ) ;\n goto no_rollup_change ;\n }\n mysql_free_result ( result ) ;\n if ( job_ptr -> start_time ) debug ( \"Need to reroll usage from %s Job %u \" \"from %s started then and we are just \" \"now hearing about it.\" , slurm_ctime2 ( & check_time ) , job_ptr -> job_id , mysql_conn -> cluster_name ) ;\n else if ( begin_time ) debug ( \"Need to reroll usage from %s Job %u \" \"from %s became eligible then and we are just \" \"now hearing about it.\" , slurm_ctime2 ( & check_time ) , job_ptr -> job_id , mysql_conn -> cluster_name ) ;\n else debug ( \"Need to reroll usage from %s Job %u \" \"from %s was submitted then and we are just \" \"now hearing about it.\" , slurm_ctime2 ( & check_time ) , job_ptr -> job_id , mysql_conn -> cluster_name ) ;\n global_last_rollup = check_time ;\n slurm_mutex_unlock ( & rollup_lock ) ;\n query = xstrdup_printf ( \"update \\\"%s_%s\\\" set \" \"hourly_rollup=%ld, \" \"daily_rollup=%ld, monthly_rollup=%ld\" , mysql_conn -> cluster_name , last_ran_table , check_time , check_time , check_time ) ;\n if ( debug_flags & DEBUG_FLAG_DB_JOB ) DB_DEBUG ( mysql_conn -> conn , \"query\\n%s\" , query ) ;\n rc = mysql_db_query ( mysql_conn , query ) ;\n xfree ( query ) ;\n }\n else slurm_mutex_unlock ( & rollup_lock ) ;\n no_rollup_change : if ( job_ptr -> name && job_ptr -> name [ 0 ] ) jname = slurm_add_slash_to_quotes ( job_ptr -> name ) ;\n else {\n jname = xstrdup ( \"allocation\" ) ;\n track_steps = 1 ;\n }\n if ( job_ptr -> nodes && job_ptr -> nodes [ 0 ] ) nodes = job_ptr -> nodes ;\n else nodes = \"None assigned\" ;\n if ( job_ptr -> batch_flag ) track_steps = 1 ;\n if ( slurmdbd_conf ) {\n block_id = xstrdup ( job_ptr -> comment ) ;\n node_cnt = job_ptr -> total_nodes ;\n node_inx = job_ptr -> network ;\n }\n else {\n if ( job_ptr -> node_bitmap ) {\n node_inx = bit_fmt ( temp_bit , sizeof ( temp_bit ) , job_ptr -> node_bitmap ) ;\n }\n # ifdef HAVE_BG select_g_select_jobinfo_get ( job_ptr -> select_jobinfo , SELECT_JOBDATA_BLOCK_ID , & block_id ) ;\n select_g_select_jobinfo_get ( job_ptr -> select_jobinfo , SELECT_JOBDATA_NODE_CNT , & node_cnt ) ;\n # else node_cnt = job_ptr -> total_nodes ;\n # endif }\n if ( job_ptr -> assoc_id && ( ! job_ptr -> db_index || job_ptr -> wckey ) ) wckeyid = _get_wckeyid ( mysql_conn , & job_ptr -> wckey , job_ptr -> user_id , mysql_conn -> cluster_name , job_ptr -> assoc_id ) ;\n if ( ! IS_JOB_PENDING ( job_ptr ) && job_ptr -> part_ptr ) partition = slurm_add_slash_to_quotes ( job_ptr -> part_ptr -> name ) ;\n else if ( job_ptr -> partition ) partition = slurm_add_slash_to_quotes ( job_ptr -> partition ) ;\n if ( job_ptr -> gres_req ) gres_req = slurm_add_slash_to_quotes ( job_ptr -> gres_req ) ;\n if ( job_ptr -> gres_alloc ) gres_alloc = slurm_add_slash_to_quotes ( job_ptr -> gres_alloc ) ;\n if ( ! job_ptr -> db_index ) {\n query = xstrdup_printf ( \"insert into \\\"%s_%s\\\" \" \"(id_job, mod_time, id_array_job, id_array_task, \" \"id_assoc, id_qos, id_user, \" \"id_group, nodelist, id_resv, timelimit, \" \"time_eligible, time_submit, time_start, \" \"job_name, track_steps, state, priority, cpus_req, \" \"nodes_alloc, mem_req\" , mysql_conn -> cluster_name , job_table ) ;\n if ( wckeyid ) xstrcat ( query , \", id_wckey\" ) ;\n if ( job_ptr -> account ) xstrcat ( query , \", account\" ) ;\n if ( partition ) xstrcat ( query , \", `partition`\" ) ;\n if ( block_id ) xstrcat ( query , \", id_block\" ) ;\n if ( job_ptr -> wckey ) xstrcat ( query , \", wckey\" ) ;\n if ( node_inx ) xstrcat ( query , \", node_inx\" ) ;\n if ( gres_req ) xstrcat ( query , \", gres_req\" ) ;\n if ( gres_alloc ) xstrcat ( query , \", gres_alloc\" ) ;\n if ( array_recs && array_recs -> task_id_str ) xstrcat ( query , \", array_task_str, array_max_tasks, \" \"array_task_pending\" ) ;\n else xstrcat ( query , \", array_task_str, array_task_pending\" ) ;\n if ( job_ptr -> tres_alloc_str ) xstrcat ( query , \", tres_alloc\" ) ;\n if ( job_ptr -> tres_req_str ) xstrcat ( query , \", tres_req\" ) ;\n xstrfmtcat ( query , \") values (%u, UNIX_TIMESTAMP(), \" \"%u, %u, %u, %u, %u, %u, \" \"'%s', %u, %u, %ld, %ld, %ld, \" \"'%s', %u, %u, %u, %u, %u, %\" PRIu64 \"\" , job_ptr -> job_id , job_ptr -> array_job_id , array_task_id , job_ptr -> assoc_id , job_ptr -> qos_id , job_ptr -> user_id , job_ptr -> group_id , nodes , job_ptr -> resv_id , job_ptr -> time_limit , begin_time , submit_time , start_time , jname , track_steps , job_state , job_ptr -> priority , job_ptr -> details -> min_cpus , node_cnt , job_ptr -> details -> pn_min_memory ) ;\n if ( wckeyid ) xstrfmtcat ( query , \", %u\" , wckeyid ) ;\n if ( job_ptr -> account ) xstrfmtcat ( query , \", '%s'\" , job_ptr -> account ) ;\n if ( partition ) xstrfmtcat ( query , \", '%s'\" , partition ) ;\n if ( block_id ) xstrfmtcat ( query , \", '%s'\" , block_id ) ;\n if ( job_ptr -> wckey ) xstrfmtcat ( query , \", '%s'\" , job_ptr -> wckey ) ;\n if ( node_inx ) xstrfmtcat ( query , \", '%s'\" , node_inx ) ;\n if ( gres_req ) xstrfmtcat ( query , \", '%s'\" , gres_req ) ;\n if ( gres_alloc ) xstrfmtcat ( query , \", '%s'\" , gres_alloc ) ;\n if ( array_recs && array_recs -> task_id_str ) xstrfmtcat ( query , \", '%s', %u, %u\" , array_recs -> task_id_str , array_recs -> max_run_tasks , array_recs -> task_cnt ) ;\n else xstrcat ( query , \", NULL, 0\" ) ;\n if ( job_ptr -> tres_alloc_str ) xstrfmtcat ( query , \", '%s'\" , job_ptr -> tres_alloc_str ) ;\n if ( job_ptr -> tres_req_str ) xstrfmtcat ( query , \", '%s'\" , job_ptr -> tres_req_str ) ;\n xstrfmtcat ( query , \") on duplicate key update \" \"job_db_inx=LAST_INSERT_ID(job_db_inx), \" \"id_user=%u, id_group=%u, \" \"nodelist='%s', id_resv=%u, timelimit=%u, \" \"time_submit=%ld, time_eligible=%ld, \" \"time_start=%ld, mod_time=UNIX_TIMESTAMP(), \" \"job_name='%s', track_steps=%u, id_qos=%u, \" \"state=greatest(state, %u), priority=%u, \" \"cpus_req=%u, nodes_alloc=%u, \" \"mem_req=%\" PRIu64 \", id_array_job=%u, id_array_task=%u\" , job_ptr -> user_id , job_ptr -> group_id , nodes , job_ptr -> resv_id , job_ptr -> time_limit , submit_time , begin_time , start_time , jname , track_steps , job_ptr -> qos_id , job_state , job_ptr -> priority , job_ptr -> details -> min_cpus , node_cnt , job_ptr -> details -> pn_min_memory , job_ptr -> array_job_id , array_task_id ) ;\n if ( wckeyid ) xstrfmtcat ( query , \", id_wckey=%u\" , wckeyid ) ;\n if ( job_ptr -> account ) xstrfmtcat ( query , \", account='%s'\" , job_ptr -> account ) ;\n if ( partition ) xstrfmtcat ( query , \", `partition`='%s'\" , partition ) ;\n if ( block_id ) xstrfmtcat ( query , \", id_block='%s'\" , block_id ) ;\n if ( job_ptr -> wckey ) xstrfmtcat ( query , \", wckey='%s'\" , job_ptr -> wckey ) ;\n if ( node_inx ) xstrfmtcat ( query , \", node_inx='%s'\" , node_inx ) ;\n if ( gres_req ) xstrfmtcat ( query , \", gres_req='%s'\" , gres_req ) ;\n if ( gres_alloc ) xstrfmtcat ( query , \", gres_alloc='%s'\" , gres_alloc ) ;\n if ( array_recs && array_recs -> task_id_str ) xstrfmtcat ( query , \", array_task_str='%s', \" \"array_max_tasks=%u, array_task_pending=%u\" , array_recs -> task_id_str , array_recs -> max_run_tasks , array_recs -> task_cnt ) ;\n else xstrfmtcat ( query , \", array_task_str=NULL, \" \"array_task_pending=0\" ) ;\n if ( job_ptr -> tres_alloc_str ) xstrfmtcat ( query , \", tres_alloc='%s'\" , job_ptr -> tres_alloc_str ) ;\n if ( job_ptr -> tres_req_str ) xstrfmtcat ( query , \", tres_req='%s'\" , job_ptr -> tres_req_str ) ;\n if ( debug_flags & DEBUG_FLAG_DB_JOB ) DB_DEBUG ( mysql_conn -> conn , \"query\\n%s\" , query ) ;\n try_again : if ( ! ( job_ptr -> db_index = mysql_db_insert_ret_id ( mysql_conn , query ) ) ) {\n if ( ! reinit ) {\n error ( \"It looks like the storage has gone \" \"away trying to reconnect\" ) ;\n check_connection ( mysql_conn ) ;\n reinit = 1 ;\n goto try_again ;\n }\n else rc = SLURM_ERROR ;\n }\n }\n else {\n query = xstrdup_printf ( \"update \\\"%s_%s\\\" set nodelist='%s', \" , mysql_conn -> cluster_name , job_table , nodes ) ;\n if ( wckeyid ) xstrfmtcat ( query , \"id_wckey=%u, \" , wckeyid ) ;\n if ( job_ptr -> account ) xstrfmtcat ( query , \"account='%s', \" , job_ptr -> account ) ;\n if ( partition ) xstrfmtcat ( query , \"`partition`='%s', \" , partition ) ;\n if ( block_id ) xstrfmtcat ( query , \"id_block='%s', \" , block_id ) ;\n if ( job_ptr -> wckey ) xstrfmtcat ( query , \"wckey='%s', \" , job_ptr -> wckey ) ;\n if ( node_inx ) xstrfmtcat ( query , \"node_inx='%s', \" , node_inx ) ;\n if ( gres_req ) xstrfmtcat ( query , \"gres_req='%s', \" , gres_req ) ;\n if ( gres_alloc ) xstrfmtcat ( query , \"gres_alloc='%s', \" , gres_alloc ) ;\n if ( array_recs && array_recs -> task_id_str ) xstrfmtcat ( query , \"array_task_str='%s', \" \"array_max_tasks=%u, \" \"array_task_pending=%u, \" , array_recs -> task_id_str , array_recs -> max_run_tasks , array_recs -> task_cnt ) ;\n else xstrfmtcat ( query , \"array_task_str=NULL, \" \"array_task_pending=0, \" ) ;\n if ( job_ptr -> tres_alloc_str ) xstrfmtcat ( query , \"tres_alloc='%s', \" , job_ptr -> tres_alloc_str ) ;\n if ( job_ptr -> tres_req_str ) xstrfmtcat ( query , \"tres_req='%s', \" , job_ptr -> tres_req_str ) ;\n xstrfmtcat ( query , \"time_start=%ld, job_name='%s', state=%u, \" \"nodes_alloc=%u, id_qos=%u, \" \"id_assoc=%u, id_resv=%u, \" \"timelimit=%u, mem_req=%\" PRIu64 \", \" \"id_array_job=%u, id_array_task=%u, \" \"time_eligible=%ld, mod_time=UNIX_TIMESTAMP() \" \"where job_db_inx=%\" PRIu64 , start_time , jname , job_state , node_cnt , job_ptr -> qos_id , job_ptr -> assoc_id , job_ptr -> resv_id , job_ptr -> time_limit , job_ptr -> details -> pn_min_memory , job_ptr -> array_job_id , array_task_id , begin_time , job_ptr -> db_index ) ;\n if ( debug_flags & DEBUG_FLAG_DB_JOB ) DB_DEBUG ( mysql_conn -> conn , \"query\\n%s\" , query ) ;\n rc = mysql_db_query ( mysql_conn , query ) ;\n }\n xfree ( block_id ) ;\n xfree ( partition ) ;\n xfree ( gres_req ) ;\n xfree ( gres_alloc ) ;\n xfree ( jname ) ;\n xfree ( query ) ;\n if ( IS_JOB_RESIZING ( job_ptr ) ) {\n if ( IS_JOB_SUSPENDED ( job_ptr ) ) as_mysql_suspend ( mysql_conn , job_db_inx , job_ptr ) ;\n }\n return rc ;\n }"}
{"idx": 7238, "target": 0, "func": "int i2d_X509_CRL_bio ( BIO * bp , X509_CRL * crl ) {\n return ASN1_item_i2d_bio ( ASN1_ITEM_rptr ( X509_CRL ) , bp , crl ) ;\n }"}
{"idx": 7239, "target": 0, "func": "static int read_mv_component ( vp9_reader * r , const nmv_component * mvcomp , int usehp ) {\n int mag , d , fr , hp ;\n const int sign = vp9_read ( r , mvcomp -> sign ) ;\n const int mv_class = vp9_read_tree ( r , vp9_mv_class_tree , mvcomp -> classes ) ;\n const int class0 = mv_class == MV_CLASS_0 ;\n if ( class0 ) {\n d = vp9_read_tree ( r , vp9_mv_class0_tree , mvcomp -> class0 ) ;\n }\n else {\n int i ;\n const int n = mv_class + CLASS0_BITS - 1 ;\n d = 0 ;\n for ( i = 0 ;\n i < n ;\n ++ i ) d |= vp9_read ( r , mvcomp -> bits [ i ] ) << i ;\n }\n fr = vp9_read_tree ( r , vp9_mv_fp_tree , class0 ? mvcomp -> class0_fp [ d ] : mvcomp -> fp ) ;\n hp = usehp ? vp9_read ( r , class0 ? mvcomp -> class0_hp : mvcomp -> hp ) : 1 ;\n mag = vp9_get_mv_mag ( mv_class , ( d << 3 ) | ( fr << 1 ) | hp ) + 1 ;\n return sign ? - mag : mag ;\n }"}
{"idx": 7240, "target": 0, "func": "static FILE * Needs816Enc ( SplineFont * sf , int * tlen , EncMap * map , FILE * * apple , int * appletlen ) {\n FILE * sub ;\n const char * encname = map -> enc -> iconv_name != NULL ? map -> enc -> iconv_name : map -> enc -> enc_name ;\n EncMap * oldmap = map ;\n EncMap * applemap = NULL ;\n Encoding * enc ;\n * tlen = 0 ;\n if ( apple != NULL ) {\n * apple = NULL ;\n * appletlen = 0 ;\n }\n if ( sf -> cidmaster != NULL || sf -> subfontcnt != 0 ) return ( NULL ) ;\n if ( ( strstrmatch ( encname , \"big\" ) != NULL && strchr ( encname , '5' ) != NULL ) || strstrmatch ( encname , \"johab\" ) != NULL || strstrmatch ( encname , \"sjis\" ) != NULL || strstrmatch ( encname , \"cp932\" ) != NULL || strstrmatch ( encname , \"euc-kr\" ) != NULL || strstrmatch ( encname , \"euc-cn\" ) != NULL ) ;\n else if ( strstrmatch ( encname , \"2022\" ) != NULL && ( strstrmatch ( encname , \"JP2\" ) != NULL || strstrmatch ( encname , \"JP-2\" ) != NULL || strstrmatch ( encname , \"JP-3\" ) != NULL ) ) return ( NULL ) ;\n else if ( sf -> uni_interp >= ui_japanese && sf -> uni_interp <= ui_korean ) {\n enc = FindOrMakeEncoding ( sf -> uni_interp == ui_japanese ? \"sjis\" : sf -> uni_interp == ui_trad_chinese ? \"big5\" : sf -> uni_interp == ui_simp_chinese ? \"euc-cn\" : \"euc-kr\" ) ;\n if ( map -> enc != enc ) {\n map = EncMapFromEncoding ( sf , enc ) ;\n encname = map -> enc -> iconv_name != NULL ? map -> enc -> iconv_name : map -> enc -> enc_name ;\n }\n }\n else return ( NULL ) ;\n if ( strstrmatch ( encname , \"sjis\" ) != NULL ) {\n enc = FindOrMakeEncoding ( \"cp932\" ) ;\n if ( enc != NULL ) {\n applemap = map ;\n map = EncMapFromEncoding ( sf , enc ) ;\n }\n }\n else if ( strstrmatch ( encname , \"cp932\" ) != NULL ) applemap = EncMapFromEncoding ( sf , FindOrMakeEncoding ( \"sjis\" ) ) ;\n if ( applemap != NULL ) * apple = _Gen816Enc ( sf , appletlen , applemap ) ;\n sub = _Gen816Enc ( sf , tlen , map ) ;\n if ( applemap != NULL && applemap != oldmap ) EncMapFree ( applemap ) ;\n if ( map != oldmap ) EncMapFree ( map ) ;\n return ( sub ) ;\n }"}
{"idx": 7241, "target": 0, "func": "TSReturnCode TSUuidCopy ( TSUuid dest , const TSUuid src ) {\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) dest ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) src ) == TS_SUCCESS ) ;\n ATSUuid * d = ( ATSUuid * ) dest ;\n ATSUuid * s = ( ATSUuid * ) src ;\n if ( s -> valid ( ) ) {\n * d = * s ;\n return TS_SUCCESS ;\n }\n return TS_ERROR ;\n }"}
{"idx": 7242, "target": 0, "func": "void tb_invalidate_phys_page_range ( tb_page_addr_t start , tb_page_addr_t end , int is_cpu_write_access ) {\n TranslationBlock * tb , * tb_next , * saved_tb ;\n CPUState * cpu = current_cpu ;\n # if defined ( TARGET_HAS_PRECISE_SMC ) || ! defined ( CONFIG_USER_ONLY ) CPUArchState * env = NULL ;\n # endif tb_page_addr_t tb_start , tb_end ;\n PageDesc * p ;\n int n ;\n # ifdef TARGET_HAS_PRECISE_SMC int current_tb_not_found = is_cpu_write_access ;\n TranslationBlock * current_tb = NULL ;\n int current_tb_modified = 0 ;\n target_ulong current_pc = 0 ;\n target_ulong current_cs_base = 0 ;\n int current_flags = 0 ;\n # endif p = page_find ( start >> TARGET_PAGE_BITS ) ;\n if ( ! p ) {\n return ;\n }\n if ( ! p -> code_bitmap && ++ p -> code_write_count >= SMC_BITMAP_USE_THRESHOLD && is_cpu_write_access ) {\n build_page_bitmap ( p ) ;\n }\n # if defined ( TARGET_HAS_PRECISE_SMC ) || ! defined ( CONFIG_USER_ONLY ) if ( cpu != NULL ) {\n env = cpu -> env_ptr ;\n }\n # endif tb = p -> first_tb ;\n while ( tb != NULL ) {\n n = ( uintptr_t ) tb & 3 ;\n tb = ( TranslationBlock * ) ( ( uintptr_t ) tb & ~ 3 ) ;\n tb_next = tb -> page_next [ n ] ;\n if ( n == 0 ) {\n tb_start = tb -> page_addr [ 0 ] + ( tb -> pc & ~ TARGET_PAGE_MASK ) ;\n tb_end = tb_start + tb -> size ;\n }\n else {\n tb_start = tb -> page_addr [ 1 ] ;\n tb_end = tb_start + ( ( tb -> pc + tb -> size ) & ~ TARGET_PAGE_MASK ) ;\n }\n if ( ! ( tb_end <= start || tb_start >= end ) ) {\n # ifdef TARGET_HAS_PRECISE_SMC if ( current_tb_not_found ) {\n current_tb_not_found = 0 ;\n current_tb = NULL ;\n if ( env -> mem_io_pc ) {\n current_tb = tb_find_pc ( env -> mem_io_pc ) ;\n }\n }\n if ( current_tb == tb && ( current_tb -> cflags & CF_COUNT_MASK ) != 1 ) {\n current_tb_modified = 1 ;\n cpu_restore_state_from_tb ( current_tb , env , env -> mem_io_pc ) ;\n cpu_get_tb_cpu_state ( env , & current_pc , & current_cs_base , & current_flags ) ;\n }\n # endif saved_tb = NULL ;\n if ( cpu != NULL ) {\n saved_tb = cpu -> current_tb ;\n cpu -> current_tb = NULL ;\n }\n tb_phys_invalidate ( tb , - 1 ) ;\n if ( cpu != NULL ) {\n cpu -> current_tb = saved_tb ;\n if ( cpu -> interrupt_request && cpu -> current_tb ) {\n cpu_interrupt ( cpu , cpu -> interrupt_request ) ;\n }\n }\n }\n tb = tb_next ;\n }\n # if ! defined ( CONFIG_USER_ONLY ) if ( ! p -> first_tb ) {\n invalidate_page_bitmap ( p ) ;\n if ( is_cpu_write_access ) {\n tlb_unprotect_code_phys ( env , start , env -> mem_io_vaddr ) ;\n }\n }\n # endif # ifdef TARGET_HAS_PRECISE_SMC if ( current_tb_modified ) {\n cpu -> current_tb = NULL ;\n tb_gen_code ( env , current_pc , current_cs_base , current_flags , 1 ) ;\n cpu_resume_from_signal ( env , NULL ) ;\n }\n # endif }"}
{"idx": 7243, "target": 1, "func": "static vpx_codec_err_t parse_quantizer_values ( SvcContext * svc_ctx , const char * quantizer_values ) {\n char * input_string ;\n char * token ;\n const char * delim = \",\" ;\n char * save_ptr ;\n int found = 0 ;\n int i , q ;\n vpx_codec_err_t res = VPX_CODEC_OK ;\n SvcInternal * const si = get_svc_internal ( svc_ctx ) ;\n if ( quantizer_values == NULL || strlen ( quantizer_values ) == 0 ) {\n input_string = strdup ( DEFAULT_QUANTIZER_VALUES ) ;\n }\n else {\n input_string = strdup ( quantizer_values ) ;\n }\n token = strtok_r ( input_string , delim , & save_ptr ) ;\n for ( i = 0 ;\n i < svc_ctx -> spatial_layers ;\n ++ i ) {\n if ( token != NULL ) {\n q = atoi ( token ) ;\n if ( q <= 0 || q > 100 ) {\n svc_log ( svc_ctx , SVC_LOG_ERROR , \"svc-quantizer-values: invalid value %s\\n\" , token ) ;\n res = VPX_CODEC_INVALID_PARAM ;\n break ;\n }\n token = strtok_r ( NULL , delim , & save_ptr ) ;\n found = i + 1 ;\n }\n else {\n q = 0 ;\n }\n si -> quantizer [ i + VPX_SS_MAX_LAYERS - svc_ctx -> spatial_layers ] = q ;\n }\n if ( res == VPX_CODEC_OK && found != svc_ctx -> spatial_layers ) {\n svc_log ( svc_ctx , SVC_LOG_ERROR , \"svc: quantizers: %d values required, but only %d specified\\n\" , svc_ctx -> spatial_layers , found ) ;\n res = VPX_CODEC_INVALID_PARAM ;\n }\n free ( input_string ) ;\n return res ;\n }"}
{"idx": 7244, "target": 0, "func": "TEST_F ( ExtensionWelcomeNotificationTest , WelcomeNotificationPreviouslyDismissed ) {\n StartPreferenceSyncing ( ) ;\n SetBooleanPref ( prefs : : kWelcomeNotificationDismissed , true ) ;\n EXPECT_TRUE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissed ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissedLocal ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationPreviouslyPoppedUp ) ) ;\n ShowChromeNowNotification ( ) ;\n EXPECT_EQ ( message_center ( ) -> add_notification_calls ( ) , 0 ) ;\n EXPECT_EQ ( message_center ( ) -> remove_notification_calls ( ) , 0 ) ;\n EXPECT_EQ ( message_center ( ) -> notifications_with_shown_as_popup ( ) , 0 ) ;\n EXPECT_TRUE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissed ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissedLocal ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationPreviouslyPoppedUp ) ) ;\n }"}
{"idx": 7245, "target": 0, "func": "int jbig2_pattern_dictionary ( Jbig2Ctx * ctx , Jbig2Segment * segment , const byte * segment_data ) {\n Jbig2PatternDictParams params ;\n Jbig2ArithCx * GB_stats = NULL ;\n byte flags ;\n int offset = 0 ;\n if ( segment -> data_length < 7 ) {\n return jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"Segment too short\" ) ;\n }\n flags = segment_data [ 0 ] ;\n params . HDMMR = flags & 1 ;\n params . HDTEMPLATE = ( flags & 6 ) >> 1 ;\n params . HDPW = segment_data [ 1 ] ;\n params . HDPH = segment_data [ 2 ] ;\n params . GRAYMAX = jbig2_get_uint32 ( segment_data + 3 ) ;\n offset += 7 ;\n jbig2_error ( ctx , JBIG2_SEVERITY_INFO , segment -> number , \"pattern dictionary, flags=%02x, %d grays (%dx%d cell)\" , flags , params . GRAYMAX + 1 , params . HDPW , params . HDPH ) ;\n if ( params . HDMMR && params . HDTEMPLATE ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"HDTEMPLATE is %d when HDMMR is %d, contrary to spec\" , params . HDTEMPLATE , params . HDMMR ) ;\n }\n if ( flags & 0xf8 ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"Reserved flag bits non-zero\" ) ;\n }\n if ( ! params . HDMMR ) {\n int stats_size = jbig2_generic_stats_size ( ctx , params . HDTEMPLATE ) ;\n GB_stats = jbig2_new ( ctx , Jbig2ArithCx , stats_size ) ;\n if ( GB_stats == NULL ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"failed to allocate GB_stats in pattern dictionary\" ) ;\n return 0 ;\n }\n memset ( GB_stats , 0 , stats_size ) ;\n }\n segment -> result = jbig2_decode_pattern_dict ( ctx , segment , & params , segment_data + offset , segment -> data_length - offset , GB_stats ) ;\n if ( ! params . HDMMR ) {\n jbig2_free ( ctx -> allocator , GB_stats ) ;\n }\n return ( segment -> result != NULL ) ? 0 : - 1 ;\n }"}
{"idx": 7246, "target": 0, "func": "static void vc2_subband_dwt_97 ( VC2TransformContext * t , dwtcoef * data , ptrdiff_t stride , int width , int height ) {\n int x , y ;\n dwtcoef * datal = data , * synth = t -> buffer , * synthl = synth ;\n const ptrdiff_t synth_width = width << 1 ;\n const ptrdiff_t synth_height = height << 1 ;\n for ( y = 0 ;\n y < synth_height ;\n y ++ ) {\n for ( x = 0 ;\n x < synth_width ;\n x ++ ) synthl [ x ] = datal [ x ] << 1 ;\n synthl += synth_width ;\n datal += stride ;\n }\n synthl = synth ;\n for ( y = 0 ;\n y < synth_height ;\n y ++ ) {\n synthl [ 1 ] -= ( 8 * synthl [ 0 ] + 9 * synthl [ 2 ] - synthl [ 4 ] + 8 ) >> 4 ;\n for ( x = 1 ;\n x < width - 2 ;\n x ++ ) synthl [ 2 * x + 1 ] -= ( 9 * synthl [ 2 * x ] + 9 * synthl [ 2 * x + 2 ] - synthl [ 2 * x + 4 ] - synthl [ 2 * x - 2 ] + 8 ) >> 4 ;\n synthl [ synth_width - 1 ] -= ( 17 * synthl [ synth_width - 2 ] - synthl [ synth_width - 4 ] + 8 ) >> 4 ;\n synthl [ synth_width - 3 ] -= ( 8 * synthl [ synth_width - 2 ] + 9 * synthl [ synth_width - 4 ] - synthl [ synth_width - 6 ] + 8 ) >> 4 ;\n synthl [ 0 ] += ( synthl [ 1 ] + synthl [ 1 ] + 2 ) >> 2 ;\n for ( x = 1 ;\n x < width - 1 ;\n x ++ ) synthl [ 2 * x ] += ( synthl [ 2 * x - 1 ] + synthl [ 2 * x + 1 ] + 2 ) >> 2 ;\n synthl [ synth_width - 2 ] += ( synthl [ synth_width - 3 ] + synthl [ synth_width - 1 ] + 2 ) >> 2 ;\n synthl += synth_width ;\n }\n synthl = synth + synth_width ;\n for ( x = 0 ;\n x < synth_width ;\n x ++ ) synthl [ x ] -= ( 8 * synthl [ x - synth_width ] + 9 * synthl [ x + synth_width ] - synthl [ x + 3 * synth_width ] + 8 ) >> 4 ;\n synthl = synth + ( synth_width << 1 ) ;\n for ( y = 1 ;\n y < height - 2 ;\n y ++ ) {\n for ( x = 0 ;\n x < synth_width ;\n x ++ ) synthl [ x + synth_width ] -= ( 9 * synthl [ x ] + 9 * synthl [ x + 2 * synth_width ] - synthl [ x - 2 * synth_width ] - synthl [ x + 4 * synth_width ] + 8 ) >> 4 ;\n synthl += synth_width << 1 ;\n }\n synthl = synth + ( synth_height - 1 ) * synth_width ;\n for ( x = 0 ;\n x < synth_width ;\n x ++ ) {\n synthl [ x ] -= ( 17 * synthl [ x - synth_width ] - synthl [ x - 3 * synth_width ] + 8 ) >> 4 ;\n synthl [ x - 2 * synth_width ] -= ( 9 * synthl [ x - 3 * synth_width ] + 8 * synthl [ x - 1 * synth_width ] - synthl [ x - 5 * synth_width ] + 8 ) >> 4 ;\n }\n synthl = synth ;\n for ( x = 0 ;\n x < synth_width ;\n x ++ ) synthl [ x ] += ( synthl [ x + synth_width ] + synthl [ x + synth_width ] + 2 ) >> 2 ;\n synthl = synth + ( synth_width << 1 ) ;\n for ( y = 1 ;\n y < height - 1 ;\n y ++ ) {\n for ( x = 0 ;\n x < synth_width ;\n x ++ ) synthl [ x ] += ( synthl [ x - synth_width ] + synthl [ x + synth_width ] + 2 ) >> 2 ;\n synthl += synth_width << 1 ;\n }\n synthl = synth + ( synth_height - 2 ) * synth_width ;\n for ( x = 0 ;\n x < synth_width ;\n x ++ ) synthl [ x ] += ( synthl [ x - synth_width ] + synthl [ x + synth_width ] + 2 ) >> 2 ;\n deinterleave ( data , stride , width , height , synth ) ;\n }"}
{"idx": 7247, "target": 0, "func": "static int atrac1_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n AT1Ctx * q = avctx -> priv_data ;\n int ch , ret ;\n GetBitContext gb ;\n if ( buf_size < 212 * avctx -> channels ) {\n av_log ( avctx , AV_LOG_ERROR , \"Not enough data to decode!\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n frame -> nb_samples = AT1_SU_SAMPLES ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n for ( ch = 0 ;\n ch < avctx -> channels ;\n ch ++ ) {\n AT1SUCtx * su = & q -> SUs [ ch ] ;\n init_get_bits ( & gb , & buf [ 212 * ch ] , 212 * 8 ) ;\n ret = at1_parse_bsm ( & gb , su -> log2_block_count ) ;\n if ( ret < 0 ) return ret ;\n ret = at1_unpack_dequant ( & gb , su , q -> spec ) ;\n if ( ret < 0 ) return ret ;\n ret = at1_imdct_block ( su , q ) ;\n if ( ret < 0 ) return ret ;\n at1_subband_synthesis ( q , su , ( float * ) frame -> extended_data [ ch ] ) ;\n }\n * got_frame_ptr = 1 ;\n return avctx -> block_align ;\n }"}
{"idx": 7248, "target": 0, "func": "static void ToUpperCase ( char * s ) {\n while ( * s ) {\n * s = ( char ) toupper ( * s ) ;\n ++ s ;\n }\n }"}
{"idx": 7249, "target": 0, "func": "int test_gf2m_mod ( BIO * bp ) {\n BIGNUM * a , * b [ 2 ] , * c , * d , * e ;\n int i , j , ret = 0 ;\n int p0 [ ] = {\n 163 , 7 , 6 , 3 , 0 , - 1 }\n ;\n int p1 [ ] = {\n 193 , 15 , 0 , - 1 }\n ;\n a = BN_new ( ) ;\n b [ 0 ] = BN_new ( ) ;\n b [ 1 ] = BN_new ( ) ;\n c = BN_new ( ) ;\n d = BN_new ( ) ;\n e = BN_new ( ) ;\n BN_GF2m_arr2poly ( p0 , b [ 0 ] ) ;\n BN_GF2m_arr2poly ( p1 , b [ 1 ] ) ;\n for ( i = 0 ;\n i < num0 ;\n i ++ ) {\n BN_bntest_rand ( a , 1024 , 0 , 0 ) ;\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n BN_GF2m_mod ( c , a , b [ j ] ) ;\n # if 0 if ( bp != NULL ) {\n if ( ! results ) {\n BN_print ( bp , a ) ;\n BIO_puts ( bp , \" % \" ) ;\n BN_print ( bp , b [ j ] ) ;\n BIO_puts ( bp , \" - \" ) ;\n BN_print ( bp , c ) ;\n BIO_puts ( bp , \"\\n\" ) ;\n }\n }\n # endif BN_GF2m_add ( d , a , c ) ;\n BN_GF2m_mod ( e , d , b [ j ] ) ;\n if ( ! BN_is_zero ( e ) ) {\n fprintf ( stderr , \"GF(2^m) modulo test failed!\\n\" ) ;\n goto err ;\n }\n }\n }\n ret = 1 ;\n err : BN_free ( a ) ;\n BN_free ( b [ 0 ] ) ;\n BN_free ( b [ 1 ] ) ;\n BN_free ( c ) ;\n BN_free ( d ) ;\n BN_free ( e ) ;\n return ret ;\n }"}
{"idx": 7250, "target": 0, "func": "SPL_METHOD ( SplDoublyLinkedList , offsetExists ) {\n zval * zindex ;\n spl_dllist_object * intern ;\n long index ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"z\" , & zindex ) == FAILURE ) {\n return ;\n }\n intern = ( spl_dllist_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n index = spl_offset_convert_to_long ( zindex TSRMLS_CC ) ;\n RETURN_BOOL ( index >= 0 && index < intern -> llist -> count ) ;\n }"}
{"idx": 7251, "target": 0, "func": "static void rv34_pred_mv_b ( RV34DecContext * r , int block_type , int dir ) {\n MpegEncContext * s = & r -> s ;\n int mb_pos = s -> mb_x + s -> mb_y * s -> mb_stride ;\n int mv_pos = s -> mb_x * 2 + s -> mb_y * 2 * s -> b8_stride ;\n int A [ 2 ] = {\n 0 }\n , B [ 2 ] = {\n 0 }\n , C [ 2 ] = {\n 0 }\n ;\n int has_A = 0 , has_B = 0 , has_C = 0 ;\n int mx , my ;\n int i , j ;\n Picture * cur_pic = s -> current_picture_ptr ;\n const int mask = dir ? MB_TYPE_L1 : MB_TYPE_L0 ;\n int type = cur_pic -> mb_type [ mb_pos ] ;\n if ( ( r -> avail_cache [ 6 - 1 ] & type ) & mask ) {\n A [ 0 ] = cur_pic -> motion_val [ dir ] [ mv_pos - 1 ] [ 0 ] ;\n A [ 1 ] = cur_pic -> motion_val [ dir ] [ mv_pos - 1 ] [ 1 ] ;\n has_A = 1 ;\n }\n if ( ( r -> avail_cache [ 6 - 4 ] & type ) & mask ) {\n B [ 0 ] = cur_pic -> motion_val [ dir ] [ mv_pos - s -> b8_stride ] [ 0 ] ;\n B [ 1 ] = cur_pic -> motion_val [ dir ] [ mv_pos - s -> b8_stride ] [ 1 ] ;\n has_B = 1 ;\n }\n if ( r -> avail_cache [ 6 - 4 ] && ( r -> avail_cache [ 6 - 2 ] & type ) & mask ) {\n C [ 0 ] = cur_pic -> motion_val [ dir ] [ mv_pos - s -> b8_stride + 2 ] [ 0 ] ;\n C [ 1 ] = cur_pic -> motion_val [ dir ] [ mv_pos - s -> b8_stride + 2 ] [ 1 ] ;\n has_C = 1 ;\n }\n else if ( ( s -> mb_x + 1 ) == s -> mb_width && ( r -> avail_cache [ 6 - 5 ] & type ) & mask ) {\n C [ 0 ] = cur_pic -> motion_val [ dir ] [ mv_pos - s -> b8_stride - 1 ] [ 0 ] ;\n C [ 1 ] = cur_pic -> motion_val [ dir ] [ mv_pos - s -> b8_stride - 1 ] [ 1 ] ;\n has_C = 1 ;\n }\n rv34_pred_b_vector ( A , B , C , has_A , has_B , has_C , & mx , & my ) ;\n mx += r -> dmv [ dir ] [ 0 ] ;\n my += r -> dmv [ dir ] [ 1 ] ;\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n cur_pic -> motion_val [ dir ] [ mv_pos + i + j * s -> b8_stride ] [ 0 ] = mx ;\n cur_pic -> motion_val [ dir ] [ mv_pos + i + j * s -> b8_stride ] [ 1 ] = my ;\n }\n }\n if ( block_type == RV34_MB_B_BACKWARD || block_type == RV34_MB_B_FORWARD ) {\n ZERO8x2 ( cur_pic -> motion_val [ ! dir ] [ mv_pos ] , s -> b8_stride ) ;\n }\n }"}
{"idx": 7252, "target": 0, "func": "static int test_usize_t_overflow ( xd3_stream * stream , int unused ) {\n if ( USIZE_T_OVERFLOW ( USIZE_T_MAX , 0 ) ) {\n goto fail ;\n }\n if ( USIZE_T_OVERFLOW ( 0 , USIZE_T_MAX ) ) {\n goto fail ;\n }\n if ( USIZE_T_OVERFLOW ( USIZE_T_MAX / 2 , USIZE_T_MAX / 2 ) ) {\n goto fail ;\n }\n if ( USIZE_T_OVERFLOW ( USIZE_T_MAX / 2 , USIZE_T_MAX / 2 + 1 ) ) {\n goto fail ;\n }\n if ( ! USIZE_T_OVERFLOW ( USIZE_T_MAX , 1 ) ) {\n goto fail ;\n }\n if ( ! USIZE_T_OVERFLOW ( 1 , USIZE_T_MAX ) ) {\n goto fail ;\n }\n if ( ! USIZE_T_OVERFLOW ( USIZE_T_MAX / 2 + 1 , USIZE_T_MAX / 2 + 1 ) ) {\n goto fail ;\n }\n return 0 ;\n fail : stream -> msg = \"incorrect overflow computation\" ;\n return XD3_INTERNAL ;\n }"}
{"idx": 7253, "target": 0, "func": "TEST_F ( NativeBackendLibsecretTest , RemoveLoginsCreatedBetween ) {\n CheckRemoveLoginsBetween ( CREATED ) ;\n }"}
{"idx": 7254, "target": 0, "func": "static int dissect_h225_T_perCallInfo_item ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_T_perCallInfo_item , T_perCallInfo_item_sequence ) ;\n return offset ;\n }"}
{"idx": 7255, "target": 0, "func": "void cpu_gen_init ( void ) {\n tcg_context_init ( & tcg_ctx ) ;\n }"}
{"idx": 7256, "target": 1, "func": "static int ipvideo_decode_block_opcode_0x9_16 ( IpvideoContext * s ) {\n int x , y ;\n uint16_t P [ 4 ] ;\n uint16_t * pixel_ptr = ( uint16_t * ) s -> pixel_ptr ;\n for ( x = 0 ;\n x < 4 ;\n x ++ ) P [ x ] = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n if ( ! ( P [ 0 ] & 0x8000 ) ) {\n if ( ! ( P [ 2 ] & 0x8000 ) ) {\n for ( y = 0 ;\n y < 8 ;\n y ++ ) {\n int flags = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n for ( x = 0 ;\n x < 8 ;\n x ++ , flags >>= 2 ) * pixel_ptr ++ = P [ flags & 0x03 ] ;\n pixel_ptr += s -> line_inc ;\n }\n }\n else {\n uint32_t flags ;\n flags = bytestream2_get_le32 ( & s -> stream_ptr ) ;\n for ( y = 0 ;\n y < 8 ;\n y += 2 ) {\n for ( x = 0 ;\n x < 8 ;\n x += 2 , flags >>= 2 ) {\n pixel_ptr [ x ] = pixel_ptr [ x + 1 ] = pixel_ptr [ x + s -> stride ] = pixel_ptr [ x + 1 + s -> stride ] = P [ flags & 0x03 ] ;\n }\n pixel_ptr += s -> stride * 2 ;\n }\n }\n }\n else {\n uint64_t flags ;\n flags = bytestream2_get_le64 ( & s -> stream_ptr ) ;\n if ( ! ( P [ 2 ] & 0x8000 ) ) {\n for ( y = 0 ;\n y < 8 ;\n y ++ ) {\n for ( x = 0 ;\n x < 8 ;\n x += 2 , flags >>= 2 ) {\n pixel_ptr [ x ] = pixel_ptr [ x + 1 ] = P [ flags & 0x03 ] ;\n }\n pixel_ptr += s -> stride ;\n }\n }\n else {\n for ( y = 0 ;\n y < 8 ;\n y += 2 ) {\n for ( x = 0 ;\n x < 8 ;\n x ++ , flags >>= 2 ) {\n pixel_ptr [ x ] = pixel_ptr [ x + s -> stride ] = P [ flags & 0x03 ] ;\n }\n pixel_ptr += s -> stride * 2 ;\n }\n }\n }\n return 0 ;\n }"}
{"idx": 7257, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( MediaStreamPermissionTest , TestDenyingUserMedia ) {\n content : : WebContents * tab_contents = LoadTestPageInTab ( ) ;\n GetUserMediaAndDeny ( tab_contents ) ;\n }"}
{"idx": 7258, "target": 0, "func": "const char * http_hdr_method_get ( HTTPHdrImpl * hh , int * length ) {\n const char * str ;\n ink_assert ( hh -> m_polarity == HTTP_TYPE_REQUEST ) ;\n if ( hh -> u . req . m_method_wks_idx >= 0 ) {\n str = hdrtoken_index_to_wks ( hh -> u . req . m_method_wks_idx ) ;\n * length = hdrtoken_index_to_length ( hh -> u . req . m_method_wks_idx ) ;\n }\n else {\n str = hh -> u . req . m_ptr_method ;\n * length = hh -> u . req . m_len_method ;\n }\n return ( str ) ;\n }"}
{"idx": 7259, "target": 0, "func": "void rtp_dyn_payload_free ( rtp_dyn_payload_t * rtp_dyn_payload ) {\n if ( ! rtp_dyn_payload ) return ;\n if ( rtp_dyn_payload -> ref_count > 0 ) -- ( rtp_dyn_payload -> ref_count ) ;\n if ( rtp_dyn_payload -> ref_count == 0 ) {\n # ifdef DEBUG_CONVERSATION DPRINT ( ( \"free'ing the following rtp_dyn_payload:\" ) ) ;\n DINDENT ( ) ;\n rtp_dump_dyn_payload ( rtp_dyn_payload ) ;\n DENDENT ( ) ;\n # endif g_assert ( rtp_dyn_payloads ) ;\n if ( ! g_hash_table_remove ( rtp_dyn_payloads , rtp_dyn_payload ) ) {\n g_error ( \"rtp_dyn_payload not found in rtp_dyn_payloads table to remove!\" ) ;\n }\n if ( rtp_dyn_payload -> table ) g_hash_table_destroy ( rtp_dyn_payload -> table ) ;\n wmem_free ( wmem_file_scope ( ) , rtp_dyn_payload ) ;\n }\n }"}
{"idx": 7260, "target": 1, "func": "static int sbr_make_f_master ( AACContext * ac , SpectralBandReplication * sbr , SpectrumParameters * spectrum ) {\n unsigned int temp , max_qmf_subbands = 0 ;\n unsigned int start_min , stop_min ;\n int k ;\n const int8_t * sbr_offset_ptr ;\n int16_t stop_dk [ 13 ] ;\n if ( sbr -> sample_rate < 32000 ) {\n temp = 3000 ;\n }\n else if ( sbr -> sample_rate < 64000 ) {\n temp = 4000 ;\n }\n else temp = 5000 ;\n switch ( sbr -> sample_rate ) {\n case 16000 : sbr_offset_ptr = sbr_offset [ 0 ] ;\n break ;\n case 22050 : sbr_offset_ptr = sbr_offset [ 1 ] ;\n break ;\n case 24000 : sbr_offset_ptr = sbr_offset [ 2 ] ;\n break ;\n case 32000 : sbr_offset_ptr = sbr_offset [ 3 ] ;\n break ;\n case 44100 : case 48000 : case 64000 : sbr_offset_ptr = sbr_offset [ 4 ] ;\n break ;\n case 88200 : case 96000 : case 128000 : case 176400 : case 192000 : sbr_offset_ptr = sbr_offset [ 5 ] ;\n break ;\n default : av_log ( ac -> avctx , AV_LOG_ERROR , \"Unsupported sample rate for SBR: %d\\n\" , sbr -> sample_rate ) ;\n return - 1 ;\n }\n start_min = ( ( temp << 7 ) + ( sbr -> sample_rate >> 1 ) ) / sbr -> sample_rate ;\n stop_min = ( ( temp << 8 ) + ( sbr -> sample_rate >> 1 ) ) / sbr -> sample_rate ;\n sbr -> k [ 0 ] = start_min + sbr_offset_ptr [ spectrum -> bs_start_freq ] ;\n if ( spectrum -> bs_stop_freq < 14 ) {\n sbr -> k [ 2 ] = stop_min ;\n make_bands ( stop_dk , stop_min , 64 , 13 ) ;\n qsort ( stop_dk , 13 , sizeof ( stop_dk [ 0 ] ) , qsort_comparison_function_int16 ) ;\n for ( k = 0 ;\n k < spectrum -> bs_stop_freq ;\n k ++ ) sbr -> k [ 2 ] += stop_dk [ k ] ;\n }\n else if ( spectrum -> bs_stop_freq == 14 ) {\n sbr -> k [ 2 ] = 2 * sbr -> k [ 0 ] ;\n }\n else if ( spectrum -> bs_stop_freq == 15 ) {\n sbr -> k [ 2 ] = 3 * sbr -> k [ 0 ] ;\n }\n else {\n av_log ( ac -> avctx , AV_LOG_ERROR , \"Invalid bs_stop_freq: %d\\n\" , spectrum -> bs_stop_freq ) ;\n return - 1 ;\n }\n sbr -> k [ 2 ] = FFMIN ( 64 , sbr -> k [ 2 ] ) ;\n if ( sbr -> sample_rate <= 32000 ) {\n max_qmf_subbands = 48 ;\n }\n else if ( sbr -> sample_rate == 44100 ) {\n max_qmf_subbands = 35 ;\n }\n else if ( sbr -> sample_rate >= 48000 ) max_qmf_subbands = 32 ;\n else av_assert0 ( 0 ) ;\n if ( sbr -> k [ 2 ] - sbr -> k [ 0 ] > max_qmf_subbands ) {\n av_log ( ac -> avctx , AV_LOG_ERROR , \"Invalid bitstream, too many QMF subbands: %d\\n\" , sbr -> k [ 2 ] - sbr -> k [ 0 ] ) ;\n return - 1 ;\n }\n if ( ! spectrum -> bs_freq_scale ) {\n int dk , k2diff ;\n dk = spectrum -> bs_alter_scale + 1 ;\n sbr -> n_master = ( ( sbr -> k [ 2 ] - sbr -> k [ 0 ] + ( dk & 2 ) ) >> dk ) << 1 ;\n if ( check_n_master ( ac -> avctx , sbr -> n_master , sbr -> spectrum_params . bs_xover_band ) ) return - 1 ;\n for ( k = 1 ;\n k <= sbr -> n_master ;\n k ++ ) sbr -> f_master [ k ] = dk ;\n k2diff = sbr -> k [ 2 ] - sbr -> k [ 0 ] - sbr -> n_master * dk ;\n if ( k2diff < 0 ) {\n sbr -> f_master [ 1 ] -- ;\n sbr -> f_master [ 2 ] -= ( k2diff < - 1 ) ;\n }\n else if ( k2diff ) {\n sbr -> f_master [ sbr -> n_master ] ++ ;\n }\n sbr -> f_master [ 0 ] = sbr -> k [ 0 ] ;\n for ( k = 1 ;\n k <= sbr -> n_master ;\n k ++ ) sbr -> f_master [ k ] += sbr -> f_master [ k - 1 ] ;\n }\n else {\n int half_bands = 7 - spectrum -> bs_freq_scale ;\n int two_regions , num_bands_0 ;\n int vdk0_max , vdk1_min ;\n int16_t vk0 [ 49 ] ;\n if ( 49 * sbr -> k [ 2 ] > 110 * sbr -> k [ 0 ] ) {\n two_regions = 1 ;\n sbr -> k [ 1 ] = 2 * sbr -> k [ 0 ] ;\n }\n else {\n two_regions = 0 ;\n sbr -> k [ 1 ] = sbr -> k [ 2 ] ;\n }\n num_bands_0 = lrintf ( half_bands * log2f ( sbr -> k [ 1 ] / ( float ) sbr -> k [ 0 ] ) ) * 2 ;\n if ( num_bands_0 <= 0 ) {\n av_log ( ac -> avctx , AV_LOG_ERROR , \"Invalid num_bands_0: %d\\n\" , num_bands_0 ) ;\n return - 1 ;\n }\n vk0 [ 0 ] = 0 ;\n make_bands ( vk0 + 1 , sbr -> k [ 0 ] , sbr -> k [ 1 ] , num_bands_0 ) ;\n qsort ( vk0 + 1 , num_bands_0 , sizeof ( vk0 [ 1 ] ) , qsort_comparison_function_int16 ) ;\n vdk0_max = vk0 [ num_bands_0 ] ;\n vk0 [ 0 ] = sbr -> k [ 0 ] ;\n for ( k = 1 ;\n k <= num_bands_0 ;\n k ++ ) {\n if ( vk0 [ k ] <= 0 ) {\n av_log ( ac -> avctx , AV_LOG_ERROR , \"Invalid vDk0[%d]: %d\\n\" , k , vk0 [ k ] ) ;\n return - 1 ;\n }\n vk0 [ k ] += vk0 [ k - 1 ] ;\n }\n if ( two_regions ) {\n int16_t vk1 [ 49 ] ;\n float invwarp = spectrum -> bs_alter_scale ? 0.76923076923076923077f : 1.0f ;\n int num_bands_1 = lrintf ( half_bands * invwarp * log2f ( sbr -> k [ 2 ] / ( float ) sbr -> k [ 1 ] ) ) * 2 ;\n make_bands ( vk1 + 1 , sbr -> k [ 1 ] , sbr -> k [ 2 ] , num_bands_1 ) ;\n vdk1_min = array_min_int16 ( vk1 + 1 , num_bands_1 ) ;\n if ( vdk1_min < vdk0_max ) {\n int change ;\n qsort ( vk1 + 1 , num_bands_1 , sizeof ( vk1 [ 1 ] ) , qsort_comparison_function_int16 ) ;\n change = FFMIN ( vdk0_max - vk1 [ 1 ] , ( vk1 [ num_bands_1 ] - vk1 [ 1 ] ) >> 1 ) ;\n vk1 [ 1 ] += change ;\n vk1 [ num_bands_1 ] -= change ;\n }\n qsort ( vk1 + 1 , num_bands_1 , sizeof ( vk1 [ 1 ] ) , qsort_comparison_function_int16 ) ;\n vk1 [ 0 ] = sbr -> k [ 1 ] ;\n for ( k = 1 ;\n k <= num_bands_1 ;\n k ++ ) {\n if ( vk1 [ k ] <= 0 ) {\n av_log ( ac -> avctx , AV_LOG_ERROR , \"Invalid vDk1[%d]: %d\\n\" , k , vk1 [ k ] ) ;\n return - 1 ;\n }\n vk1 [ k ] += vk1 [ k - 1 ] ;\n }\n sbr -> n_master = num_bands_0 + num_bands_1 ;\n if ( check_n_master ( ac -> avctx , sbr -> n_master , sbr -> spectrum_params . bs_xover_band ) ) return - 1 ;\n memcpy ( & sbr -> f_master [ 0 ] , vk0 , ( num_bands_0 + 1 ) * sizeof ( sbr -> f_master [ 0 ] ) ) ;\n memcpy ( & sbr -> f_master [ num_bands_0 + 1 ] , vk1 + 1 , num_bands_1 * sizeof ( sbr -> f_master [ 0 ] ) ) ;\n }\n else {\n sbr -> n_master = num_bands_0 ;\n if ( check_n_master ( ac -> avctx , sbr -> n_master , sbr -> spectrum_params . bs_xover_band ) ) return - 1 ;\n memcpy ( sbr -> f_master , vk0 , ( num_bands_0 + 1 ) * sizeof ( sbr -> f_master [ 0 ] ) ) ;\n }\n }\n return 0 ;\n }"}
{"idx": 7261, "target": 0, "func": "static void spl_filesystem_tree_it_current_key ( zend_object_iterator * iter , zval * key TSRMLS_DC ) {\n spl_filesystem_object * object = spl_filesystem_iterator_to_object ( ( spl_filesystem_iterator * ) iter ) ;\n if ( SPL_FILE_DIR_KEY ( object , SPL_FILE_DIR_KEY_AS_FILENAME ) ) {\n ZVAL_STRING ( key , object -> u . dir . entry . d_name , 1 ) ;\n }\n else {\n spl_filesystem_object_get_file_name ( object TSRMLS_CC ) ;\n ZVAL_STRINGL ( key , object -> file_name , object -> file_name_len , 1 ) ;\n }\n }"}
{"idx": 7262, "target": 0, "func": "static int selinux_socket_unix_may_send ( struct socket * sock , struct socket * other ) {\n struct sk_security_struct * ssec = sock -> sk -> sk_security ;\n struct sk_security_struct * osec = other -> sk -> sk_security ;\n struct common_audit_data ad ;\n struct lsm_network_audit net = {\n 0 , }\n ;\n ad . type = LSM_AUDIT_DATA_NET ;\n ad . u . net = & net ;\n ad . u . net -> sk = other -> sk ;\n return avc_has_perm ( ssec -> sid , osec -> sid , osec -> sclass , SOCKET__SENDTO , & ad ) ;\n }"}
{"idx": 7263, "target": 1, "func": "static err_status_t srtp_unprotect_aead ( srtp_ctx_t * ctx , srtp_stream_ctx_t * stream , int delta , xtd_seq_num_t est , void * srtp_hdr , unsigned int * pkt_octet_len ) {\n srtp_hdr_t * hdr = ( srtp_hdr_t * ) srtp_hdr ;\n uint32_t * enc_start ;\n unsigned int enc_octet_len = 0 ;\n v128_t iv ;\n err_status_t status ;\n int tag_len ;\n unsigned int aad_len ;\n debug_print ( mod_srtp , \"function srtp_unprotect_aead\" , NULL ) ;\n # ifdef NO_64BIT_MATH debug_print2 ( mod_srtp , \"estimated u_packet index: %08x%08x\" , high32 ( est ) , low32 ( est ) ) ;\n # else debug_print ( mod_srtp , \"estimated u_packet index: %016llx\" , est ) ;\n # endif tag_len = auth_get_tag_length ( stream -> rtp_auth ) ;\n srtp_calc_aead_iv ( stream , & iv , & est , hdr ) ;\n status = cipher_set_iv ( stream -> rtp_cipher , & iv , direction_decrypt ) ;\n if ( status ) {\n return err_status_cipher_fail ;\n }\n enc_start = ( uint32_t * ) hdr + uint32s_in_rtp_header + hdr -> cc ;\n if ( hdr -> x == 1 ) {\n srtp_hdr_xtnd_t * xtn_hdr = ( srtp_hdr_xtnd_t * ) enc_start ;\n enc_start += ( ntohs ( xtn_hdr -> length ) + 1 ) ;\n }\n if ( ! ( ( uint8_t * ) enc_start < ( uint8_t * ) hdr + * pkt_octet_len ) ) return err_status_parse_err ;\n enc_octet_len = ( unsigned int ) ( * pkt_octet_len - ( ( uint8_t * ) enc_start - ( uint8_t * ) hdr ) ) ;\n if ( enc_octet_len < ( unsigned int ) tag_len ) {\n return err_status_cipher_fail ;\n }\n switch ( key_limit_update ( stream -> limit ) ) {\n case key_event_normal : break ;\n case key_event_soft_limit : srtp_handle_event ( ctx , stream , event_key_soft_limit ) ;\n break ;\n case key_event_hard_limit : srtp_handle_event ( ctx , stream , event_key_hard_limit ) ;\n return err_status_key_expired ;\n default : break ;\n }\n aad_len = ( uint8_t * ) enc_start - ( uint8_t * ) hdr ;\n status = cipher_set_aad ( stream -> rtp_cipher , ( uint8_t * ) hdr , aad_len ) ;\n if ( status ) {\n return ( err_status_cipher_fail ) ;\n }\n status = cipher_decrypt ( stream -> rtp_cipher , ( uint8_t * ) enc_start , & enc_octet_len ) ;\n if ( status ) {\n return status ;\n }\n if ( stream -> direction != dir_srtp_receiver ) {\n if ( stream -> direction == dir_unknown ) {\n stream -> direction = dir_srtp_receiver ;\n }\n else {\n srtp_handle_event ( ctx , stream , event_ssrc_collision ) ;\n }\n }\n if ( stream == ctx -> stream_template ) {\n srtp_stream_ctx_t * new_stream ;\n status = srtp_stream_clone ( ctx -> stream_template , hdr -> ssrc , & new_stream ) ;\n if ( status ) {\n return status ;\n }\n new_stream -> next = ctx -> stream_list ;\n ctx -> stream_list = new_stream ;\n stream = new_stream ;\n }\n rdbx_add_index ( & stream -> rtp_rdbx , delta ) ;\n * pkt_octet_len -= tag_len ;\n return err_status_ok ;\n }"}
{"idx": 7264, "target": 0, "func": "static int get_aq_c_strength ( int q_index , vpx_bit_depth_t bit_depth ) {\n const int base_quant = vp9_ac_quant ( q_index , 0 , bit_depth ) / 4 ;\n return ( base_quant > 20 ) + ( base_quant > 45 ) ;\n }"}
{"idx": 7265, "target": 0, "func": "void SFSetLayerWidthsStroked ( SplineFont * sf , real strokewidth ) {\n int i ;\n for ( i = 0 ;\n i < sf -> glyphcnt ;\n ++ i ) if ( sf -> glyphs [ i ] != NULL ) {\n SplineChar * sc = sf -> glyphs [ i ] ;\n sc -> layers [ ly_fore ] . dofill = false ;\n sc -> layers [ ly_fore ] . dostroke = true ;\n sc -> layers [ ly_fore ] . stroke_pen . width = strokewidth ;\n }\n }"}
{"idx": 7266, "target": 0, "func": "void ialloc_gc_prepare ( gs_ref_memory_t * mem ) {\n while ( mem -> streams != 0 ) {\n stream * s = mem -> streams ;\n mem -> streams = s -> next ;\n s -> prev = s -> next = 0 ;\n }\n }"}
{"idx": 7267, "target": 0, "func": "static void cmd_window_down ( void ) {\n MAIN_WINDOW_REC * rec ;\n rec = mainwindows_find_lower_right ( active_mainwin ) ;\n if ( rec == NULL ) rec = mainwindows_find_lower_right ( NULL ) ;\n if ( rec != NULL ) window_set_active ( rec -> active ) ;\n }"}
{"idx": 7268, "target": 0, "func": "static void unicode_escape ( char * buf , UTF16 character ) {\n const char * digits = \"0123456789abcdef\" ;\n buf [ 2 ] = digits [ character >> 12 ] ;\n buf [ 3 ] = digits [ ( character >> 8 ) & 0xf ] ;\n buf [ 4 ] = digits [ ( character >> 4 ) & 0xf ] ;\n buf [ 5 ] = digits [ character & 0xf ] ;\n }"}
{"idx": 7269, "target": 0, "func": "static double convert_numeric_to_scalar ( Datum value , Oid typid ) {\n switch ( typid ) {\n case BOOLOID : return ( double ) DatumGetBool ( value ) ;\n case INT2OID : return ( double ) DatumGetInt16 ( value ) ;\n case INT4OID : return ( double ) DatumGetInt32 ( value ) ;\n case INT8OID : return ( double ) DatumGetInt64 ( value ) ;\n case FLOAT4OID : return ( double ) DatumGetFloat4 ( value ) ;\n case FLOAT8OID : return ( double ) DatumGetFloat8 ( value ) ;\n case NUMERICOID : return ( double ) DatumGetFloat8 ( DirectFunctionCall1 ( numeric_float8_no_overflow , value ) ) ;\n case OIDOID : case REGPROCOID : case REGPROCEDUREOID : case REGOPEROID : case REGOPERATOROID : case REGCLASSOID : case REGTYPEOID : case REGCONFIGOID : case REGDICTIONARYOID : case REGROLEOID : case REGNAMESPACEOID : return ( double ) DatumGetObjectId ( value ) ;\n }\n elog ( ERROR , \"unsupported type: %u\" , typid ) ;\n return 0 ;\n }"}
{"idx": 7270, "target": 0, "func": "static guint32 lbmpdm_fetch_uint32_encoded ( tvbuff_t * tvb , int offset , int encoding ) {\n guint32 value = 0 ;\n if ( encoding == ENC_BIG_ENDIAN ) {\n value = tvb_get_ntohl ( tvb , offset ) ;\n }\n else {\n value = tvb_get_letohl ( tvb , offset ) ;\n }\n return ( value ) ;\n }"}
{"idx": 7271, "target": 0, "func": "static unsigned int variance8x8_neon ( const uint8_t * a , int a_stride , const uint8_t * b , int b_stride , unsigned int * sse ) {\n int sum ;\n variance_neon_w8 ( a , a_stride , b , b_stride , kWidth8 , kHeight8 , sse , & sum ) ;\n return * sse - ( ( ( int64_t ) sum * sum ) / ( kWidth8 * kHeight8 ) ) ;\n }"}
{"idx": 7272, "target": 0, "func": "TSReturnCode sdk_sanity_check_txn ( TSHttpTxn txnp ) {\n if ( ( txnp != nullptr ) && ( ( ( HttpSM * ) txnp ) -> magic == HTTP_SM_MAGIC_ALIVE ) ) {\n return TS_SUCCESS ;\n }\n return TS_ERROR ;\n }"}
{"idx": 7273, "target": 0, "func": "static inline bool is_consonant ( const hb_glyph_info_t & info ) {\n return is_one_of ( info , CONSONANT_FLAGS ) ;\n }"}
{"idx": 7274, "target": 0, "func": "static int fake_getaddrinfo ( const char * hostname , struct addrinfo * ai ) {\n struct hostent * he = NULL ;\n struct sockaddr_in * sa ;\n if ( hostname ) {\n he = gethostbyname ( hostname ) ;\n if ( ! he ) return ( - 1 ) ;\n }\n ai -> ai_family = he ? he -> h_addrtype : AF_INET ;\n ai -> ai_socktype = SOCK_STREAM ;\n ai -> ai_protocol = 0 ;\n ai -> ai_addrlen = sizeof ( struct sockaddr_in ) ;\n if ( NULL == ( ai -> ai_addr = malloc ( ai -> ai_addrlen ) ) ) return ( - 1 ) ;\n sa = ( struct sockaddr_in * ) ai -> ai_addr ;\n memset ( sa , 0 , ai -> ai_addrlen ) ;\n if ( he ) {\n sa -> sin_family = he -> h_addrtype ;\n memcpy ( & sa -> sin_addr , he -> h_addr_list [ 0 ] , he -> h_length ) ;\n }\n else {\n sa -> sin_family = AF_INET ;\n sa -> sin_addr . s_addr = INADDR_ANY ;\n }\n ai -> ai_next = NULL ;\n return ( 0 ) ;\n }"}
{"idx": 7275, "target": 0, "func": "bool get_attstatsslot ( HeapTuple statstuple , Oid atttype , int32 atttypmod , int reqkind , Oid reqop , Oid * actualop , Datum * * values , int * nvalues , float4 * * numbers , int * nnumbers ) {\n Form_pg_statistic stats = ( Form_pg_statistic ) GETSTRUCT ( statstuple ) ;\n int i , j ;\n Datum val ;\n bool isnull ;\n ArrayType * statarray ;\n Oid arrayelemtype ;\n int narrayelem ;\n HeapTuple typeTuple ;\n Form_pg_type typeForm ;\n for ( i = 0 ;\n i < STATISTIC_NUM_SLOTS ;\n i ++ ) {\n if ( ( & stats -> stakind1 ) [ i ] == reqkind && ( reqop == InvalidOid || ( & stats -> staop1 ) [ i ] == reqop ) ) break ;\n }\n if ( i >= STATISTIC_NUM_SLOTS ) return false ;\n if ( actualop ) * actualop = ( & stats -> staop1 ) [ i ] ;\n if ( values ) {\n val = SysCacheGetAttr ( STATRELATTINH , statstuple , Anum_pg_statistic_stavalues1 + i , & isnull ) ;\n if ( isnull ) elog ( ERROR , \"stavalues is null\" ) ;\n statarray = DatumGetArrayTypeP ( val ) ;\n arrayelemtype = ARR_ELEMTYPE ( statarray ) ;\n typeTuple = SearchSysCache1 ( TYPEOID , ObjectIdGetDatum ( arrayelemtype ) ) ;\n if ( ! HeapTupleIsValid ( typeTuple ) ) elog ( ERROR , \"cache lookup failed for type %u\" , arrayelemtype ) ;\n typeForm = ( Form_pg_type ) GETSTRUCT ( typeTuple ) ;\n deconstruct_array ( statarray , arrayelemtype , typeForm -> typlen , typeForm -> typbyval , typeForm -> typalign , values , NULL , nvalues ) ;\n if ( ! typeForm -> typbyval ) {\n for ( j = 0 ;\n j < * nvalues ;\n j ++ ) {\n ( * values ) [ j ] = datumCopy ( ( * values ) [ j ] , typeForm -> typbyval , typeForm -> typlen ) ;\n }\n }\n ReleaseSysCache ( typeTuple ) ;\n if ( ( Pointer ) statarray != DatumGetPointer ( val ) ) pfree ( statarray ) ;\n }\n if ( numbers ) {\n val = SysCacheGetAttr ( STATRELATTINH , statstuple , Anum_pg_statistic_stanumbers1 + i , & isnull ) ;\n if ( isnull ) elog ( ERROR , \"stanumbers is null\" ) ;\n statarray = DatumGetArrayTypeP ( val ) ;\n narrayelem = ARR_DIMS ( statarray ) [ 0 ] ;\n if ( ARR_NDIM ( statarray ) != 1 || narrayelem <= 0 || ARR_HASNULL ( statarray ) || ARR_ELEMTYPE ( statarray ) != FLOAT4OID ) elog ( ERROR , \"stanumbers is not a 1-D float4 array\" ) ;\n * numbers = ( float4 * ) palloc ( narrayelem * sizeof ( float4 ) ) ;\n memcpy ( * numbers , ARR_DATA_PTR ( statarray ) , narrayelem * sizeof ( float4 ) ) ;\n * nnumbers = narrayelem ;\n if ( ( Pointer ) statarray != DatumGetPointer ( val ) ) pfree ( statarray ) ;\n }\n return true ;\n }"}
{"idx": 7276, "target": 0, "func": "int SSAddPoints ( SplineSet * ss , int ptcnt , BasePoint * bp , char * flags ) {\n SplinePoint * sp , * first , * nextsp ;\n int startcnt = ptcnt ;\n if ( ss -> first -> prev != NULL && ss -> first -> prev -> from -> nextcpindex == startcnt ) {\n if ( flags != NULL ) flags [ ptcnt ] = 0 ;\n bp [ ptcnt ] . x = rint ( ss -> first -> prevcp . x ) ;\n bp [ ptcnt ++ ] . y = rint ( ss -> first -> prevcp . y ) ;\n }\n else if ( ss -> first -> ttfindex != ptcnt && ss -> first -> ttfindex != 0xfffe ) IError ( \"Unexpected point count in SSAddPoints\" ) ;\n first = NULL ;\n for ( sp = ss -> first ;\n sp != first ;\n ) {\n if ( sp -> ttfindex != 0xffff ) {\n if ( flags != NULL ) flags [ ptcnt ] = _On_Curve ;\n bp [ ptcnt ] . x = rint ( sp -> me . x ) ;\n bp [ ptcnt ] . y = rint ( sp -> me . y ) ;\n sp -> ttfindex = ptcnt ++ ;\n }\n else if ( ! SPInterpolate ( sp ) ) {\n if ( flags != NULL ) flags [ ptcnt ] = _On_Curve ;\n bp [ ptcnt ] . x = rint ( sp -> me . x ) ;\n bp [ ptcnt ] . y = rint ( sp -> me . y ) ;\n sp -> ttfindex = ptcnt ++ ;\n }\n nextsp = sp -> next != NULL ? sp -> next -> to : NULL ;\n if ( sp -> nextcpindex == startcnt ) break ;\n if ( ( sp -> nextcpindex != 0xffff && sp -> nextcpindex != 0xfffe ) || ! sp -> nonextcp ) {\n if ( flags != NULL ) flags [ ptcnt ] = 0 ;\n bp [ ptcnt ] . x = rint ( sp -> nextcp . x ) ;\n bp [ ptcnt ++ ] . y = rint ( sp -> nextcp . y ) ;\n }\n if ( nextsp == NULL ) break ;\n if ( first == NULL ) first = sp ;\n sp = nextsp ;\n }\n return ( ptcnt ) ;\n }"}
{"idx": 7277, "target": 0, "func": "const char * TSTrafficServerVersionGet ( void ) {\n return traffic_server_version ;\n }"}
{"idx": 7278, "target": 0, "func": "void xsltRegisterAllExtras ( void ) {\n xsltRegisterExtModuleFunction ( ( const xmlChar * ) \"node-set\" , XSLT_LIBXSLT_NAMESPACE , xsltFunctionNodeSet ) ;\n xsltRegisterExtModuleFunction ( ( const xmlChar * ) \"node-set\" , XSLT_SAXON_NAMESPACE , xsltFunctionNodeSet ) ;\n xsltRegisterExtModuleFunction ( ( const xmlChar * ) \"node-set\" , XSLT_XT_NAMESPACE , xsltFunctionNodeSet ) ;\n # ifdef WITH_LOCALTIME xsltRegisterExtModuleFunction ( ( const xmlChar * ) \"localTime\" , XSLT_NORM_SAXON_NAMESPACE , xsltFunctionLocalTime ) ;\n # endif xsltRegisterExtModuleElement ( ( const xmlChar * ) \"debug\" , XSLT_LIBXSLT_NAMESPACE , NULL , ( xsltTransformFunction ) xsltDebug ) ;\n xsltRegisterExtModuleElement ( ( const xmlChar * ) \"output\" , XSLT_SAXON_NAMESPACE , xsltDocumentComp , ( xsltTransformFunction ) xsltDocumentElem ) ;\n xsltRegisterExtModuleElement ( ( const xmlChar * ) \"write\" , XSLT_XALAN_NAMESPACE , xsltDocumentComp , ( xsltTransformFunction ) xsltDocumentElem ) ;\n xsltRegisterExtModuleElement ( ( const xmlChar * ) \"document\" , XSLT_XT_NAMESPACE , xsltDocumentComp , ( xsltTransformFunction ) xsltDocumentElem ) ;\n xsltRegisterExtModuleElement ( ( const xmlChar * ) \"document\" , XSLT_NAMESPACE , xsltDocumentComp , ( xsltTransformFunction ) xsltDocumentElem ) ;\n }"}
{"idx": 7279, "target": 1, "func": "static void sbr_hf_apply_noise_2 ( float ( * Y ) [ 2 ] , const float * s_m , const float * q_filt , int noise , int kx , int m_max ) {\n sbr_hf_apply_noise ( Y , s_m , q_filt , noise , - 1.0 , 0.0 , m_max ) ;\n }"}
{"idx": 7280, "target": 0, "func": "static int proc_reapurb ( struct usb_dev_state * ps , void __user * arg ) {\n struct async * as = reap_as ( ps ) ;\n if ( as ) {\n int retval ;\n snoop ( & ps -> dev -> dev , \"reap %p\\n\" , as -> userurb ) ;\n retval = processcompl ( as , ( void __user * __user * ) arg ) ;\n free_async ( as ) ;\n return retval ;\n }\n if ( signal_pending ( current ) ) return - EINTR ;\n return - ENODEV ;\n }"}
{"idx": 7281, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( HttpsEngagementPageLoadMetricsBrowserTest , Simple_Https ) {\n StartHttpsServer ( false ) ;\n base : : TimeDelta upper_bound = NavigateInForegroundAndCloseWithTiming ( https_test_server_ -> GetURL ( \"/simple.html\" ) ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpEngagementHistogram , 0 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementHistogram , 1 ) ;\n int32_t bucket_min = histogram_tester_ . GetAllSamples ( internal : : kHttpsEngagementHistogram ) [ 0 ] . min ;\n EXPECT_GE ( upper_bound . InMilliseconds ( ) , bucket_min ) ;\n EXPECT_LT ( 0 , bucket_min ) ;\n FakeUserMetricsUpload ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementSessionPercentage , 1 ) ;\n int32_t ratio_bucket = histogram_tester_ . GetAllSamples ( internal : : kHttpsEngagementSessionPercentage ) [ 0 ] . min ;\n EXPECT_EQ ( 100 , ratio_bucket ) ;\n }"}
{"idx": 7282, "target": 0, "func": "hb_script_t hb_ot_tag_to_script ( hb_tag_t tag ) {\n if ( unlikely ( ( tag & 0x000000FFu ) == '2' ) ) return hb_ot_new_tag_to_script ( tag ) ;\n return hb_ot_old_tag_to_script ( tag ) ;\n }"}
{"idx": 7283, "target": 0, "func": "void gx_ttfReader__destroy ( gx_ttfReader * self ) {\n gs_free_object ( self -> memory , self , \"gx_ttfReader__destroy\" ) ;\n }"}
{"idx": 7284, "target": 0, "func": "void really_die ( const char * msg ) {\n static int dying = 0 ;\n fflush ( stdout ) ;\n fprintf ( stderr , \"%s\" , msg ) ;\n fflush ( stderr ) ;\n if ( dying ) cleanup_and_exit ( 1 ) ;\n dying = 1 ;\n log_file . show_tail ( opt_tail_lines ) ;\n if ( cur_con && ! cur_con -> pending ) show_warnings_before_error ( cur_con -> mysql ) ;\n cleanup_and_exit ( 1 ) ;\n }"}
{"idx": 7285, "target": 0, "func": "static void qpeg_decode_intra ( QpegContext * qctx , uint8_t * dst , int stride , int width , int height ) {\n int i ;\n int code ;\n int c0 , c1 ;\n int run , copy ;\n int filled = 0 ;\n int rows_to_go ;\n rows_to_go = height ;\n height -- ;\n dst = dst + height * stride ;\n while ( ( bytestream2_get_bytes_left ( & qctx -> buffer ) > 0 ) && ( rows_to_go > 0 ) ) {\n code = bytestream2_get_byte ( & qctx -> buffer ) ;\n run = copy = 0 ;\n if ( code == 0xFC ) break ;\n if ( code >= 0xF8 ) {\n c0 = bytestream2_get_byte ( & qctx -> buffer ) ;\n c1 = bytestream2_get_byte ( & qctx -> buffer ) ;\n run = ( ( code & 0x7 ) << 16 ) + ( c0 << 8 ) + c1 + 2 ;\n }\n else if ( code >= 0xF0 ) {\n c0 = bytestream2_get_byte ( & qctx -> buffer ) ;\n run = ( ( code & 0xF ) << 8 ) + c0 + 2 ;\n }\n else if ( code >= 0xE0 ) {\n run = ( code & 0x1F ) + 2 ;\n }\n else if ( code >= 0xC0 ) {\n c0 = bytestream2_get_byte ( & qctx -> buffer ) ;\n c1 = bytestream2_get_byte ( & qctx -> buffer ) ;\n copy = ( ( code & 0x3F ) << 16 ) + ( c0 << 8 ) + c1 + 1 ;\n }\n else if ( code >= 0x80 ) {\n c0 = bytestream2_get_byte ( & qctx -> buffer ) ;\n copy = ( ( code & 0x7F ) << 8 ) + c0 + 1 ;\n }\n else {\n copy = code + 1 ;\n }\n if ( run ) {\n int p ;\n p = bytestream2_get_byte ( & qctx -> buffer ) ;\n for ( i = 0 ;\n i < run ;\n i ++ ) {\n dst [ filled ++ ] = p ;\n if ( filled >= width ) {\n filled = 0 ;\n dst -= stride ;\n rows_to_go -- ;\n if ( rows_to_go <= 0 ) break ;\n }\n }\n }\n else {\n for ( i = 0 ;\n i < copy ;\n i ++ ) {\n dst [ filled ++ ] = bytestream2_get_byte ( & qctx -> buffer ) ;\n if ( filled >= width ) {\n filled = 0 ;\n dst -= stride ;\n rows_to_go -- ;\n if ( rows_to_go <= 0 ) break ;\n }\n }\n }\n }\n }"}
{"idx": 7286, "target": 1, "func": "static void sbr_qmf_analysis ( AVFloatDSPContext * dsp , FFTContext * mdct , SBRDSPContext * sbrdsp , const float * in , float * x , float z [ 320 ] , float W [ 2 ] [ 32 ] [ 32 ] [ 2 ] , int buf_idx ) {\n int i ;\n memcpy ( x , x + 1024 , ( 320 - 32 ) * sizeof ( x [ 0 ] ) ) ;\n memcpy ( x + 288 , in , 1024 * sizeof ( x [ 0 ] ) ) ;\n for ( i = 0 ;\n i < 32 ;\n i ++ ) {\n dsp -> vector_fmul_reverse ( z , sbr_qmf_window_ds , x , 320 ) ;\n sbrdsp -> sum64x5 ( z ) ;\n sbrdsp -> qmf_pre_shuffle ( z ) ;\n mdct -> imdct_half ( mdct , z , z + 64 ) ;\n sbrdsp -> qmf_post_shuffle ( W [ buf_idx ] [ i ] , z ) ;\n x += 32 ;\n }\n }"}
{"idx": 7287, "target": 0, "func": "void mark_edges_uninteresting ( struct rev_info * revs , show_edge_fn show_edge ) {\n struct commit_list * list ;\n int i ;\n for ( list = revs -> commits ;\n list ;\n list = list -> next ) {\n struct commit * commit = list -> item ;\n if ( commit -> object . flags & UNINTERESTING ) {\n mark_tree_uninteresting ( commit -> tree ) ;\n if ( revs -> edge_hint_aggressive && ! ( commit -> object . flags & SHOWN ) ) {\n commit -> object . flags |= SHOWN ;\n show_edge ( commit ) ;\n }\n continue ;\n }\n mark_edge_parents_uninteresting ( commit , revs , show_edge ) ;\n }\n if ( revs -> edge_hint_aggressive ) {\n for ( i = 0 ;\n i < revs -> cmdline . nr ;\n i ++ ) {\n struct object * obj = revs -> cmdline . rev [ i ] . item ;\n struct commit * commit = ( struct commit * ) obj ;\n if ( obj -> type != OBJ_COMMIT || ! ( obj -> flags & UNINTERESTING ) ) continue ;\n mark_tree_uninteresting ( commit -> tree ) ;\n if ( ! ( obj -> flags & SHOWN ) ) {\n obj -> flags |= SHOWN ;\n show_edge ( commit ) ;\n }\n }\n }\n }"}
{"idx": 7288, "target": 0, "func": "static int get_current_cpu ( void ) {\n if ( ! current_cpu ) {\n return - 1 ;\n }\n return current_cpu -> cpu_index ;\n }"}
{"idx": 7289, "target": 1, "func": "static char * get_pid_environ_val ( pid_t pid , char * val ) {\n char temp [ 500 ] ;\n int i = 0 ;\n int foundit = 0 ;\n FILE * fp ;\n sprintf ( temp , \"/proc/%d/environ\" , pid ) ;\n fp = fopen ( temp , \"r\" ) ;\n if ( fp == NULL ) return NULL ;\n for ( ;\n ;\n ) {\n temp [ i ] = fgetc ( fp ) ;\n if ( foundit == 1 && ( temp [ i ] == 0 || temp [ i ] == '\\0' || temp [ i ] == EOF ) ) {\n char * ret ;\n temp [ i ] = 0 ;\n ret = malloc ( strlen ( temp ) + 10 ) ;\n sprintf ( ret , \"%s\" , temp ) ;\n fclose ( fp ) ;\n return ret ;\n }\n switch ( temp [ i ] ) {\n case EOF : fclose ( fp ) ;\n return NULL ;\n case '=' : temp [ i ] = 0 ;\n if ( ! strcmp ( temp , val ) ) {\n foundit = 1 ;\n }\n i = 0 ;\n break ;\n case '\\0' : i = 0 ;\n break ;\n default : i ++ ;\n }\n }\n }"}
{"idx": 7290, "target": 0, "func": "enum nss_status _nss_nis_getaliasent_r ( struct aliasent * alias , char * buffer , size_t buflen , int * errnop ) {\n enum nss_status status ;\n __libc_lock_lock ( lock ) ;\n status = internal_nis_getaliasent_r ( alias , buffer , buflen , errnop ) ;\n __libc_lock_unlock ( lock ) ;\n return status ;\n }"}
{"idx": 7291, "target": 0, "func": "static int run_simple_dialog_va ( CommonJob * job , gboolean ignore_close_box , GtkMessageType message_type , char * primary_text , char * secondary_text , const char * details_text , gboolean show_all , va_list varargs ) {\n RunSimpleDialogData * data ;\n int res ;\n const char * button_title ;\n GPtrArray * ptr_array ;\n g_timer_stop ( job -> time ) ;\n data = g_new0 ( RunSimpleDialogData , 1 ) ;\n data -> parent_window = & job -> parent_window ;\n data -> ignore_close_box = ignore_close_box ;\n data -> message_type = message_type ;\n data -> primary_text = primary_text ;\n data -> secondary_text = secondary_text ;\n data -> details_text = details_text ;\n data -> show_all = show_all ;\n data -> completed = FALSE ;\n g_mutex_init ( & data -> mutex ) ;\n g_cond_init ( & data -> cond ) ;\n ptr_array = g_ptr_array_new ( ) ;\n while ( ( button_title = va_arg ( varargs , const char * ) ) != NULL ) {\n g_ptr_array_add ( ptr_array , ( char * ) button_title ) ;\n }\n g_ptr_array_add ( ptr_array , NULL ) ;\n data -> button_titles = ( const char * * ) g_ptr_array_free ( ptr_array , FALSE ) ;\n nautilus_progress_info_pause ( job -> progress ) ;\n g_mutex_lock ( & data -> mutex ) ;\n g_main_context_invoke ( NULL , do_run_simple_dialog , data ) ;\n while ( ! data -> completed ) {\n g_cond_wait ( & data -> cond , & data -> mutex ) ;\n }\n nautilus_progress_info_resume ( job -> progress ) ;\n res = data -> result ;\n g_mutex_unlock ( & data -> mutex ) ;\n g_mutex_clear ( & data -> mutex ) ;\n g_cond_clear ( & data -> cond ) ;\n g_free ( data -> button_titles ) ;\n g_free ( data ) ;\n g_timer_continue ( job -> time ) ;\n g_free ( primary_text ) ;\n g_free ( secondary_text ) ;\n return res ;\n }"}
{"idx": 7292, "target": 0, "func": "static int call_ber_syntax_callback ( const char * syntax , tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree ) {\n tvbuff_t * next_tvb ;\n int len = 0 ;\n next_tvb = tvb_new_subset_remaining ( tvb , offset ) ;\n if ( syntax == NULL || ( len = dissector_try_string ( ber_syntax_dissector_table , syntax , next_tvb , pinfo , tree , NULL ) ) == 0 ) {\n proto_item * item = NULL ;\n if ( syntax == NULL ) {\n item = proto_tree_add_expert_format ( tree , pinfo , & ei_ber_no_oid , next_tvb , 0 , tvb_reported_length_remaining ( tvb , offset ) , \"BER: No syntax supplied to call_ber_syntax_callback\" ) ;\n }\n else {\n item = proto_tree_add_expert_format ( tree , pinfo , & ei_ber_syntax_not_implemented , next_tvb , 0 , tvb_reported_length_remaining ( tvb , offset ) , \"BER: Dissector for syntax:%s not implemented.\" \" Contact Wireshark developers if you want this supported\" , syntax ) ;\n }\n if ( decode_unexpected ) {\n proto_tree * unknown_tree = proto_item_add_subtree ( item , ett_ber_unknown ) ;\n dissect_unknown_ber ( pinfo , next_tvb , 0 , unknown_tree ) ;\n }\n len = tvb_reported_length_remaining ( tvb , offset ) ;\n }\n offset += len ;\n return offset ;\n }"}
{"idx": 7293, "target": 0, "func": "static void xps_sample_gradient_stops ( fz_shade * shade , struct stop * stops , int count ) {\n float offset , d ;\n int i , k ;\n k = 0 ;\n for ( i = 0 ;\n i < 256 ;\n i ++ ) {\n offset = i / 255.0f ;\n while ( k + 1 < count && offset > stops [ k + 1 ] . offset ) k ++ ;\n d = ( offset - stops [ k ] . offset ) / ( stops [ k + 1 ] . offset - stops [ k ] . offset ) ;\n shade -> function [ i ] [ 0 ] = lerp ( stops [ k ] . r , stops [ k + 1 ] . r , d ) ;\n shade -> function [ i ] [ 1 ] = lerp ( stops [ k ] . g , stops [ k + 1 ] . g , d ) ;\n shade -> function [ i ] [ 2 ] = lerp ( stops [ k ] . b , stops [ k + 1 ] . b , d ) ;\n shade -> function [ i ] [ 3 ] = lerp ( stops [ k ] . a , stops [ k + 1 ] . a , d ) ;\n }\n }"}
{"idx": 7294, "target": 0, "func": "static void idreg_class_init ( ObjectClass * klass , void * data ) {\n SysBusDeviceClass * k = SYS_BUS_DEVICE_CLASS ( klass ) ;\n k -> init = idreg_init1 ;\n }"}
{"idx": 7295, "target": 0, "func": "static int cred_has_capability ( const struct cred * cred , int cap , int audit , bool initns ) {\n struct common_audit_data ad ;\n struct av_decision avd ;\n u16 sclass ;\n u32 sid = cred_sid ( cred ) ;\n u32 av = CAP_TO_MASK ( cap ) ;\n int rc ;\n ad . type = LSM_AUDIT_DATA_CAP ;\n ad . u . cap = cap ;\n switch ( CAP_TO_INDEX ( cap ) ) {\n case 0 : sclass = initns ? SECCLASS_CAPABILITY : SECCLASS_CAP_USERNS ;\n break ;\n case 1 : sclass = initns ? SECCLASS_CAPABILITY2 : SECCLASS_CAP2_USERNS ;\n break ;\n default : printk ( KERN_ERR \"SELinux: out of range capability %d\\n\" , cap ) ;\n BUG ( ) ;\n return - EINVAL ;\n }\n rc = avc_has_perm_noaudit ( sid , sid , sclass , av , 0 , & avd ) ;\n if ( audit == SECURITY_CAP_AUDIT ) {\n int rc2 = avc_audit ( sid , sid , sclass , av , & avd , rc , & ad , 0 ) ;\n if ( rc2 ) return rc2 ;\n }\n return rc ;\n }"}
{"idx": 7296, "target": 0, "func": "static void remove_dithering ( AC3DecodeContext * s ) {\n int ch , i ;\n for ( ch = 1 ;\n ch <= s -> fbw_channels ;\n ch ++ ) {\n if ( ! s -> dither_flag [ ch ] && s -> channel_in_cpl [ ch ] ) {\n for ( i = s -> start_freq [ CPL_CH ] ;\n i < s -> end_freq [ CPL_CH ] ;\n i ++ ) {\n if ( ! s -> bap [ CPL_CH ] [ i ] ) s -> fixed_coeffs [ ch ] [ i ] = 0 ;\n }\n }\n }\n }"}
{"idx": 7297, "target": 0, "func": "int * __xmlLoadExtDtdDefaultValue ( void ) {\n if ( IS_MAIN_THREAD ) return ( & xmlLoadExtDtdDefaultValue ) ;\n else return ( & xmlGetGlobalState ( ) -> xmlLoadExtDtdDefaultValue ) ;\n }"}
{"idx": 7298, "target": 0, "func": "static int read_compressed_header ( VP9Decoder * pbi , const uint8_t * data , size_t partition_size ) {\n VP9_COMMON * const cm = & pbi -> common ;\n MACROBLOCKD * const xd = & pbi -> mb ;\n FRAME_CONTEXT * const fc = & cm -> fc ;\n vp9_reader r ;\n int k ;\n if ( vp9_reader_init ( & r , data , partition_size , pbi -> decrypt_cb , pbi -> decrypt_state ) ) vpx_internal_error ( & cm -> error , VPX_CODEC_MEM_ERROR , \"Failed to allocate bool decoder 0\" ) ;\n cm -> tx_mode = xd -> lossless ? ONLY_4X4 : read_tx_mode ( & r ) ;\n if ( cm -> tx_mode == TX_MODE_SELECT ) read_tx_mode_probs ( & fc -> tx_probs , & r ) ;\n read_coef_probs ( fc , cm -> tx_mode , & r ) ;\n for ( k = 0 ;\n k < SKIP_CONTEXTS ;\n ++ k ) vp9_diff_update_prob ( & r , & fc -> skip_probs [ k ] ) ;\n if ( ! frame_is_intra_only ( cm ) ) {\n nmv_context * const nmvc = & fc -> nmvc ;\n int i , j ;\n read_inter_mode_probs ( fc , & r ) ;\n if ( cm -> interp_filter == SWITCHABLE ) read_switchable_interp_probs ( fc , & r ) ;\n for ( i = 0 ;\n i < INTRA_INTER_CONTEXTS ;\n i ++ ) vp9_diff_update_prob ( & r , & fc -> intra_inter_prob [ i ] ) ;\n cm -> reference_mode = read_frame_reference_mode ( cm , & r ) ;\n if ( cm -> reference_mode != SINGLE_REFERENCE ) setup_compound_reference_mode ( cm ) ;\n read_frame_reference_mode_probs ( cm , & r ) ;\n for ( j = 0 ;\n j < BLOCK_SIZE_GROUPS ;\n j ++ ) for ( i = 0 ;\n i < INTRA_MODES - 1 ;\n ++ i ) vp9_diff_update_prob ( & r , & fc -> y_mode_prob [ j ] [ i ] ) ;\n for ( j = 0 ;\n j < PARTITION_CONTEXTS ;\n ++ j ) for ( i = 0 ;\n i < PARTITION_TYPES - 1 ;\n ++ i ) vp9_diff_update_prob ( & r , & fc -> partition_prob [ j ] [ i ] ) ;\n read_mv_probs ( nmvc , cm -> allow_high_precision_mv , & r ) ;\n }\n return vp9_reader_has_error ( & r ) ;\n }"}
{"idx": 7299, "target": 0, "func": "static int dissect_h225_SecurityCapabilities ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_SecurityCapabilities , SecurityCapabilities_sequence ) ;\n return offset ;\n }"}
{"idx": 7300, "target": 0, "func": "void ff_h263_encode_picture_header ( MpegEncContext * s , int picture_number ) {\n int format , coded_frame_rate , coded_frame_rate_base , i , temp_ref ;\n int best_clock_code = 1 ;\n int best_divisor = 60 ;\n int best_error = INT_MAX ;\n if ( s -> h263_plus ) {\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n int div , error ;\n div = ( s -> avctx -> time_base . num * 1800000LL + 500LL * s -> avctx -> time_base . den ) / ( ( 1000LL + i ) * s -> avctx -> time_base . den ) ;\n div = av_clip ( div , 1 , 127 ) ;\n error = FFABS ( s -> avctx -> time_base . num * 1800000LL - ( 1000LL + i ) * s -> avctx -> time_base . den * div ) ;\n if ( error < best_error ) {\n best_error = error ;\n best_divisor = div ;\n best_clock_code = i ;\n }\n }\n }\n s -> custom_pcf = best_clock_code != 1 || best_divisor != 60 ;\n coded_frame_rate = 1800000 ;\n coded_frame_rate_base = ( 1000 + best_clock_code ) * best_divisor ;\n avpriv_align_put_bits ( & s -> pb ) ;\n s -> ptr_lastgob = put_bits_ptr ( & s -> pb ) ;\n put_bits ( & s -> pb , 22 , 0x20 ) ;\n temp_ref = s -> picture_number * ( int64_t ) coded_frame_rate * s -> avctx -> time_base . num / ( coded_frame_rate_base * ( int64_t ) s -> avctx -> time_base . den ) ;\n put_sbits ( & s -> pb , 8 , temp_ref ) ;\n put_bits ( & s -> pb , 1 , 1 ) ;\n put_bits ( & s -> pb , 1 , 0 ) ;\n put_bits ( & s -> pb , 1 , 0 ) ;\n put_bits ( & s -> pb , 1 , 0 ) ;\n put_bits ( & s -> pb , 1 , 0 ) ;\n format = ff_match_2uint16 ( ff_h263_format , FF_ARRAY_ELEMS ( ff_h263_format ) , s -> width , s -> height ) ;\n if ( ! s -> h263_plus ) {\n put_bits ( & s -> pb , 3 , format ) ;\n put_bits ( & s -> pb , 1 , ( s -> pict_type == AV_PICTURE_TYPE_P ) ) ;\n put_bits ( & s -> pb , 1 , 0 ) ;\n put_bits ( & s -> pb , 1 , 0 ) ;\n put_bits ( & s -> pb , 1 , s -> obmc ) ;\n put_bits ( & s -> pb , 1 , 0 ) ;\n put_bits ( & s -> pb , 5 , s -> qscale ) ;\n put_bits ( & s -> pb , 1 , 0 ) ;\n }\n else {\n int ufep = 1 ;\n put_bits ( & s -> pb , 3 , 7 ) ;\n put_bits ( & s -> pb , 3 , ufep ) ;\n if ( format == 8 ) put_bits ( & s -> pb , 3 , 6 ) ;\n else put_bits ( & s -> pb , 3 , format ) ;\n put_bits ( & s -> pb , 1 , s -> custom_pcf ) ;\n put_bits ( & s -> pb , 1 , s -> umvplus ) ;\n put_bits ( & s -> pb , 1 , 0 ) ;\n put_bits ( & s -> pb , 1 , s -> obmc ) ;\n put_bits ( & s -> pb , 1 , s -> h263_aic ) ;\n put_bits ( & s -> pb , 1 , s -> loop_filter ) ;\n put_bits ( & s -> pb , 1 , s -> h263_slice_structured ) ;\n put_bits ( & s -> pb , 1 , 0 ) ;\n put_bits ( & s -> pb , 1 , 0 ) ;\n put_bits ( & s -> pb , 1 , s -> alt_inter_vlc ) ;\n put_bits ( & s -> pb , 1 , s -> modified_quant ) ;\n put_bits ( & s -> pb , 1 , 1 ) ;\n put_bits ( & s -> pb , 3 , 0 ) ;\n put_bits ( & s -> pb , 3 , s -> pict_type == AV_PICTURE_TYPE_P ) ;\n put_bits ( & s -> pb , 1 , 0 ) ;\n put_bits ( & s -> pb , 1 , 0 ) ;\n put_bits ( & s -> pb , 1 , s -> no_rounding ) ;\n put_bits ( & s -> pb , 2 , 0 ) ;\n put_bits ( & s -> pb , 1 , 1 ) ;\n put_bits ( & s -> pb , 1 , 0 ) ;\n if ( format == 8 ) {\n s -> aspect_ratio_info = ff_h263_aspect_to_info ( s -> avctx -> sample_aspect_ratio ) ;\n put_bits ( & s -> pb , 4 , s -> aspect_ratio_info ) ;\n put_bits ( & s -> pb , 9 , ( s -> width >> 2 ) - 1 ) ;\n put_bits ( & s -> pb , 1 , 1 ) ;\n put_bits ( & s -> pb , 9 , ( s -> height >> 2 ) ) ;\n if ( s -> aspect_ratio_info == FF_ASPECT_EXTENDED ) {\n put_bits ( & s -> pb , 8 , s -> avctx -> sample_aspect_ratio . num ) ;\n put_bits ( & s -> pb , 8 , s -> avctx -> sample_aspect_ratio . den ) ;\n }\n }\n if ( s -> custom_pcf ) {\n if ( ufep ) {\n put_bits ( & s -> pb , 1 , best_clock_code ) ;\n put_bits ( & s -> pb , 7 , best_divisor ) ;\n }\n put_sbits ( & s -> pb , 2 , temp_ref >> 8 ) ;\n }\n if ( s -> umvplus ) put_bits ( & s -> pb , 2 , 1 ) ;\n if ( s -> h263_slice_structured ) put_bits ( & s -> pb , 2 , 0 ) ;\n put_bits ( & s -> pb , 5 , s -> qscale ) ;\n }\n put_bits ( & s -> pb , 1 , 0 ) ;\n if ( s -> h263_slice_structured ) {\n put_bits ( & s -> pb , 1 , 1 ) ;\n assert ( s -> mb_x == 0 && s -> mb_y == 0 ) ;\n ff_h263_encode_mba ( s ) ;\n put_bits ( & s -> pb , 1 , 1 ) ;\n }\n if ( s -> h263_aic ) {\n s -> y_dc_scale_table = s -> c_dc_scale_table = ff_aic_dc_scale_table ;\n }\n else {\n s -> y_dc_scale_table = s -> c_dc_scale_table = ff_mpeg1_dc_scale_table ;\n }\n }"}
{"idx": 7301, "target": 0, "func": "static void clear_syllables ( const hb_ot_shape_plan_t * plan HB_UNUSED , hb_font_t * font HB_UNUSED , hb_buffer_t * buffer ) {\n hb_glyph_info_t * info = buffer -> info ;\n unsigned int count = buffer -> len ;\n for ( unsigned int i = 0 ;\n i < count ;\n i ++ ) info [ i ] . syllable ( ) = 0 ;\n }"}
{"idx": 7302, "target": 0, "func": "TEST_F ( ExtensionServiceSyncTest , GetSyncDataList ) {\n InitializeEmptyExtensionService ( ) ;\n InstallCRX ( data_dir ( ) . AppendASCII ( \"good.crx\" ) , INSTALL_NEW ) ;\n InstallCRX ( data_dir ( ) . AppendASCII ( \"page_action.crx\" ) , INSTALL_NEW ) ;\n InstallCRX ( data_dir ( ) . AppendASCII ( \"theme.crx\" ) , INSTALL_NEW ) ;\n InstallCRX ( data_dir ( ) . AppendASCII ( \"theme2.crx\" ) , INSTALL_NEW ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : APPS , syncer : : SyncDataList ( ) , base : : MakeUnique < syncer : : FakeSyncChangeProcessor > ( ) , base : : MakeUnique < syncer : : SyncErrorFactoryMock > ( ) ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , syncer : : SyncDataList ( ) , base : : MakeUnique < syncer : : FakeSyncChangeProcessor > ( ) , base : : MakeUnique < syncer : : SyncErrorFactoryMock > ( ) ) ;\n service ( ) -> DisableExtension ( page_action , extensions : : disable_reason : : DISABLE_USER_ACTION ) ;\n TerminateExtension ( theme2_crx ) ;\n EXPECT_EQ ( 0u , extension_sync_service ( ) -> GetAllSyncData ( syncer : : APPS ) . size ( ) ) ;\n EXPECT_EQ ( 2u , extension_sync_service ( ) -> GetAllSyncData ( syncer : : EXTENSIONS ) . size ( ) ) ;\n }"}
{"idx": 7303, "target": 0, "func": "static ACL_USER * find_acl_user ( const char * host , const char * user , my_bool exact ) {\n DBUG_ENTER ( \"find_acl_user\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"host: '%s' user: '%s'\" , host , user ) ) ;\n safe_mutex_assert_owner ( & acl_cache -> lock ) ;\n for ( uint i = 0 ;\n i < acl_users . elements ;\n i ++ ) {\n ACL_USER * acl_user = dynamic_element ( & acl_users , i , ACL_USER * ) ;\n DBUG_PRINT ( \"info\" , ( \"strcmp('%s','%s'), compare_hostname('%s','%s'),\" , user , acl_user -> user ? acl_user -> user : \"\" , host , acl_user -> host . hostname ? acl_user -> host . hostname : \"\" ) ) ;\n if ( ( ! acl_user -> user && ! user [ 0 ] ) || ( acl_user -> user && ! strcmp ( user , acl_user -> user ) ) ) {\n if ( exact ? ! my_strcasecmp ( system_charset_info , host , acl_user -> host . hostname ? acl_user -> host . hostname : \"\" ) : compare_hostname ( & acl_user -> host , host , host ) ) {\n DBUG_RETURN ( acl_user ) ;\n }\n }\n }\n DBUG_RETURN ( 0 ) ;\n }"}
{"idx": 7304, "target": 0, "func": "void do_get_replace_regex ( struct st_command * command ) {\n char * expr = command -> first_argument ;\n free_replace_regex ( ) ;\n if ( * expr == '$' ) {\n VAR * val = var_get ( expr , NULL , 0 , 1 ) ;\n expr = val ? val -> str_val : NULL ;\n }\n if ( expr && * expr && ! ( glob_replace_regex = init_replace_regex ( expr ) ) ) die ( \"Could not init replace_regex\" ) ;\n command -> last_argument = command -> end ;\n }"}
{"idx": 7305, "target": 0, "func": "void ialloc_free_state ( gs_ref_memory_t * iimem ) {\n clump_t * cp ;\n gs_memory_t * mem ;\n if ( iimem == NULL ) return ;\n cp = iimem -> root ;\n mem = iimem -> non_gc_memory ;\n if ( cp == NULL ) return ;\n gs_free_object ( mem , cp -> chead , \"ialloc_solo(allocation failure)\" ) ;\n gs_free_object ( mem , cp , \"ialloc_solo(allocation failure)\" ) ;\n }"}
{"idx": 7306, "target": 0, "func": "TEST_F ( TemplateURLParserTest , InvalidInput ) {\n struct DumbFilter : TemplateURLParser : : ParameterFilter {\n bool KeepParameter ( const std : : string & key , const std : : string & value ) override {\n return true ;\n }\n }\n filter ;\n constexpr char char_data [ ] = R \"( < OpenSearchDescription > < Url template = \")R:RRR?>RRR0\" type = \"application/x-suggestions+json\" > < Param name = \"name\" value = \"value\" / > < / Url > < / OpenSearchDescription > ) \";\n TemplateURLParser : : Parse ( SearchTermsData ( ) , char_data , arraysize ( char_data ) , & filter ) ;\n }"}
{"idx": 7307, "target": 0, "func": "static int dissect_rsl_ie_cbch_load_inf ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_item * item ;\n proto_tree * ie_tree ;\n guint8 ie_id ;\n guint8 octet ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_CBCH_LOAD_INF ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_ie_cbch_load_inf , NULL , \"CBCH Load Information IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n octet = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_cbch_load_type , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n item = proto_tree_add_item ( ie_tree , hf_rsl_msg_slt_cnt , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n if ( ( octet & 0x80 ) == 0x80 ) {\n proto_item_append_text ( item , \"The amount of SMSCB messages (1 to 15) that are needed immediately by BTS\" ) ;\n }\n else {\n proto_item_append_text ( item , \"The amount of delay in message slots (1 to 15) that is needed immediately by BTS\" ) ;\n }\n offset ++ ;\n return offset ;\n }"}
{"idx": 7308, "target": 0, "func": "static int decode_coeff ( RangeCoder * c , Model * m ) {\n int val , sign ;\n val = rac_get_model_sym ( c , m ) ;\n if ( val ) {\n sign = rac_get_bit ( c ) ;\n if ( val > 1 ) {\n val -- ;\n val = ( 1 << val ) + rac_get_bits ( c , val ) ;\n }\n if ( ! sign ) val = - val ;\n }\n return val ;\n }"}
{"idx": 7309, "target": 1, "func": "int64_t vp9_rd_pick_inter_mode_sb ( VP9_COMP * cpi , MACROBLOCK * x , const TileInfo * const tile , int mi_row , int mi_col , int * returnrate , int64_t * returndistortion , BLOCK_SIZE bsize , PICK_MODE_CONTEXT * ctx , int64_t best_rd_so_far ) {\n VP9_COMMON * const cm = & cpi -> common ;\n RD_OPT * const rd_opt = & cpi -> rd ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n MB_MODE_INFO * const mbmi = & xd -> mi [ 0 ] -> mbmi ;\n const struct segmentation * const seg = & cm -> seg ;\n struct macroblockd_plane * const pd = xd -> plane ;\n PREDICTION_MODE this_mode ;\n MV_REFERENCE_FRAME ref_frame , second_ref_frame ;\n unsigned char segment_id = mbmi -> segment_id ;\n int comp_pred , i , k ;\n int_mv frame_mv [ MB_MODE_COUNT ] [ MAX_REF_FRAMES ] ;\n struct buf_2d yv12_mb [ 4 ] [ MAX_MB_PLANE ] ;\n int_mv single_newmv [ MAX_REF_FRAMES ] = {\n {\n 0 }\n }\n ;\n INTERP_FILTER single_inter_filter [ MB_MODE_COUNT ] [ MAX_REF_FRAMES ] ;\n int single_skippable [ MB_MODE_COUNT ] [ MAX_REF_FRAMES ] ;\n static const int flag_list [ 4 ] = {\n 0 , VP9_LAST_FLAG , VP9_GOLD_FLAG , VP9_ALT_FLAG }\n ;\n int64_t best_rd = best_rd_so_far ;\n int64_t best_tx_rd [ TX_MODES ] ;\n int64_t best_tx_diff [ TX_MODES ] ;\n int64_t best_pred_diff [ REFERENCE_MODES ] ;\n int64_t best_pred_rd [ REFERENCE_MODES ] ;\n int64_t best_filter_rd [ SWITCHABLE_FILTER_CONTEXTS ] ;\n int64_t best_filter_diff [ SWITCHABLE_FILTER_CONTEXTS ] ;\n MB_MODE_INFO best_mbmode ;\n int best_mode_skippable = 0 ;\n int mode_index , best_mode_index = - 1 ;\n unsigned int ref_costs_single [ MAX_REF_FRAMES ] , ref_costs_comp [ MAX_REF_FRAMES ] ;\n vp9_prob comp_mode_p ;\n int64_t best_intra_rd = INT64_MAX ;\n int64_t best_inter_rd = INT64_MAX ;\n PREDICTION_MODE best_intra_mode = DC_PRED ;\n MV_REFERENCE_FRAME best_inter_ref_frame = LAST_FRAME ;\n int rate_uv_intra [ TX_SIZES ] , rate_uv_tokenonly [ TX_SIZES ] ;\n int64_t dist_uv [ TX_SIZES ] ;\n int skip_uv [ TX_SIZES ] ;\n PREDICTION_MODE mode_uv [ TX_SIZES ] ;\n int intra_cost_penalty = 20 * vp9_dc_quant ( cm -> base_qindex , cm -> y_dc_delta_q ) ;\n int best_skip2 = 0 ;\n int mode_skip_mask = 0 ;\n int mode_skip_start = cpi -> sf . mode_skip_start + 1 ;\n const int * const rd_threshes = rd_opt -> threshes [ segment_id ] [ bsize ] ;\n const int * const rd_thresh_freq_fact = rd_opt -> thresh_freq_fact [ bsize ] ;\n const int mode_search_skip_flags = cpi -> sf . mode_search_skip_flags ;\n const int intra_y_mode_mask = cpi -> sf . intra_y_mode_mask [ max_txsize_lookup [ bsize ] ] ;\n int inter_mode_mask = cpi -> sf . inter_mode_mask [ bsize ] ;\n vp9_zero ( best_mbmode ) ;\n x -> skip_encode = cpi -> sf . skip_encode_frame && x -> q_index < QIDX_SKIP_THRESH ;\n estimate_ref_frame_costs ( cm , xd , segment_id , ref_costs_single , ref_costs_comp , & comp_mode_p ) ;\n for ( i = 0 ;\n i < REFERENCE_MODES ;\n ++ i ) best_pred_rd [ i ] = INT64_MAX ;\n for ( i = 0 ;\n i < TX_MODES ;\n i ++ ) best_tx_rd [ i ] = INT64_MAX ;\n for ( i = 0 ;\n i < SWITCHABLE_FILTER_CONTEXTS ;\n i ++ ) best_filter_rd [ i ] = INT64_MAX ;\n for ( i = 0 ;\n i < TX_SIZES ;\n i ++ ) rate_uv_intra [ i ] = INT_MAX ;\n for ( i = 0 ;\n i < MAX_REF_FRAMES ;\n ++ i ) x -> pred_sse [ i ] = INT_MAX ;\n for ( i = 0 ;\n i < MB_MODE_COUNT ;\n ++ i ) {\n for ( k = 0 ;\n k < MAX_REF_FRAMES ;\n ++ k ) {\n single_inter_filter [ i ] [ k ] = SWITCHABLE ;\n single_skippable [ i ] [ k ] = 0 ;\n }\n }\n * returnrate = INT_MAX ;\n for ( ref_frame = LAST_FRAME ;\n ref_frame <= ALTREF_FRAME ;\n ++ ref_frame ) {\n x -> pred_mv_sad [ ref_frame ] = INT_MAX ;\n if ( cpi -> ref_frame_flags & flag_list [ ref_frame ] ) {\n setup_buffer_inter ( cpi , x , tile , ref_frame , bsize , mi_row , mi_col , frame_mv [ NEARESTMV ] , frame_mv [ NEARMV ] , yv12_mb ) ;\n }\n frame_mv [ NEWMV ] [ ref_frame ] . as_int = INVALID_MV ;\n frame_mv [ ZEROMV ] [ ref_frame ] . as_int = 0 ;\n }\n for ( ref_frame = LAST_FRAME ;\n ref_frame <= ALTREF_FRAME ;\n ++ ref_frame ) {\n static const int ref_frame_mask_all [ ] = {\n 0x0 , 0x123291 , 0x25c444 , 0x39b722 }\n ;\n static const int ref_frame_mask_fixedmv [ ] = {\n 0x0 , 0x121281 , 0x24c404 , 0x080102 }\n ;\n if ( ! ( cpi -> ref_frame_flags & flag_list [ ref_frame ] ) ) {\n mode_skip_mask |= ref_frame_mask_all [ ref_frame ] ;\n }\n else if ( cpi -> sf . reference_masking ) {\n for ( i = LAST_FRAME ;\n i <= ALTREF_FRAME ;\n ++ i ) {\n if ( ( x -> pred_mv_sad [ ref_frame ] >> 2 ) > x -> pred_mv_sad [ i ] ) {\n mode_skip_mask |= ref_frame_mask_fixedmv [ ref_frame ] ;\n break ;\n }\n }\n }\n if ( vp9_segfeature_active ( seg , segment_id , SEG_LVL_REF_FRAME ) && vp9_get_segdata ( seg , segment_id , SEG_LVL_REF_FRAME ) != ( int ) ref_frame ) {\n mode_skip_mask |= ref_frame_mask_all [ ref_frame ] ;\n }\n }\n if ( ! vp9_segfeature_active ( seg , segment_id , SEG_LVL_REF_FRAME ) ) {\n if ( cpi -> rc . is_src_frame_alt_ref && ( cpi -> oxcf . arnr_max_frames == 0 ) ) {\n mode_skip_mask = ~ ( ( 1 << THR_NEARESTA ) | ( 1 << THR_NEARA ) | ( 1 << THR_ZEROA ) ) ;\n if ( frame_mv [ NEARMV ] [ ALTREF_FRAME ] . as_int != 0 ) mode_skip_mask |= ( 1 << THR_NEARA ) ;\n if ( frame_mv [ NEARESTMV ] [ ALTREF_FRAME ] . as_int != 0 ) mode_skip_mask |= ( 1 << THR_NEARESTA ) ;\n }\n }\n if ( bsize > cpi -> sf . max_intra_bsize ) {\n const int all_intra_modes = ( 1 << THR_DC ) | ( 1 << THR_TM ) | ( 1 << THR_H_PRED ) | ( 1 << THR_V_PRED ) | ( 1 << THR_D135_PRED ) | ( 1 << THR_D207_PRED ) | ( 1 << THR_D153_PRED ) | ( 1 << THR_D63_PRED ) | ( 1 << THR_D117_PRED ) | ( 1 << THR_D45_PRED ) ;\n mode_skip_mask |= all_intra_modes ;\n }\n for ( mode_index = 0 ;\n mode_index < MAX_MODES ;\n ++ mode_index ) {\n int mode_excluded = 0 ;\n int64_t this_rd = INT64_MAX ;\n int disable_skip = 0 ;\n int compmode_cost = 0 ;\n int rate2 = 0 , rate_y = 0 , rate_uv = 0 ;\n int64_t distortion2 = 0 , distortion_y = 0 , distortion_uv = 0 ;\n int skippable = 0 ;\n int64_t tx_cache [ TX_MODES ] ;\n int i ;\n int this_skip2 = 0 ;\n int64_t total_sse = INT64_MAX ;\n int early_term = 0 ;\n this_mode = vp9_mode_order [ mode_index ] . mode ;\n ref_frame = vp9_mode_order [ mode_index ] . ref_frame [ 0 ] ;\n if ( ref_frame != INTRA_FRAME && ! ( inter_mode_mask & ( 1 << this_mode ) ) ) continue ;\n second_ref_frame = vp9_mode_order [ mode_index ] . ref_frame [ 1 ] ;\n if ( mode_index == mode_skip_start && best_mode_index >= 0 ) {\n switch ( vp9_mode_order [ best_mode_index ] . ref_frame [ 0 ] ) {\n case INTRA_FRAME : break ;\n case LAST_FRAME : mode_skip_mask |= LAST_FRAME_MODE_MASK ;\n break ;\n case GOLDEN_FRAME : mode_skip_mask |= GOLDEN_FRAME_MODE_MASK ;\n break ;\n case ALTREF_FRAME : mode_skip_mask |= ALT_REF_MODE_MASK ;\n break ;\n case NONE : case MAX_REF_FRAMES : assert ( 0 && \"Invalid Reference frame\" ) ;\n break ;\n }\n }\n if ( cpi -> sf . alt_ref_search_fp && cpi -> rc . is_src_frame_alt_ref ) {\n mode_skip_mask = 0 ;\n if ( ! ( ref_frame == ALTREF_FRAME && second_ref_frame == NONE ) ) continue ;\n }\n if ( mode_skip_mask & ( 1 << mode_index ) ) continue ;\n if ( rd_less_than_thresh ( best_rd , rd_threshes [ mode_index ] , rd_thresh_freq_fact [ mode_index ] ) ) continue ;\n if ( cpi -> sf . motion_field_mode_search ) {\n const int mi_width = MIN ( num_8x8_blocks_wide_lookup [ bsize ] , tile -> mi_col_end - mi_col ) ;\n const int mi_height = MIN ( num_8x8_blocks_high_lookup [ bsize ] , tile -> mi_row_end - mi_row ) ;\n const int bsl = mi_width_log2 ( bsize ) ;\n int cb_partition_search_ctrl = ( ( ( mi_row + mi_col ) >> bsl ) + get_chessboard_index ( cm -> current_video_frame ) ) & 0x1 ;\n MB_MODE_INFO * ref_mbmi ;\n int const_motion = 1 ;\n int skip_ref_frame = ! cb_partition_search_ctrl ;\n MV_REFERENCE_FRAME rf = NONE ;\n int_mv ref_mv ;\n ref_mv . as_int = INVALID_MV ;\n if ( ( mi_row - 1 ) >= tile -> mi_row_start ) {\n ref_mv = xd -> mi [ - xd -> mi_stride ] -> mbmi . mv [ 0 ] ;\n rf = xd -> mi [ - xd -> mi_stride ] -> mbmi . ref_frame [ 0 ] ;\n for ( i = 0 ;\n i < mi_width ;\n ++ i ) {\n ref_mbmi = & xd -> mi [ - xd -> mi_stride + i ] -> mbmi ;\n const_motion &= ( ref_mv . as_int == ref_mbmi -> mv [ 0 ] . as_int ) && ( ref_frame == ref_mbmi -> ref_frame [ 0 ] ) ;\n skip_ref_frame &= ( rf == ref_mbmi -> ref_frame [ 0 ] ) ;\n }\n }\n if ( ( mi_col - 1 ) >= tile -> mi_col_start ) {\n if ( ref_mv . as_int == INVALID_MV ) ref_mv = xd -> mi [ - 1 ] -> mbmi . mv [ 0 ] ;\n if ( rf == NONE ) rf = xd -> mi [ - 1 ] -> mbmi . ref_frame [ 0 ] ;\n for ( i = 0 ;\n i < mi_height ;\n ++ i ) {\n ref_mbmi = & xd -> mi [ i * xd -> mi_stride - 1 ] -> mbmi ;\n const_motion &= ( ref_mv . as_int == ref_mbmi -> mv [ 0 ] . as_int ) && ( ref_frame == ref_mbmi -> ref_frame [ 0 ] ) ;\n skip_ref_frame &= ( rf == ref_mbmi -> ref_frame [ 0 ] ) ;\n }\n }\n if ( skip_ref_frame && this_mode != NEARESTMV && this_mode != NEWMV ) if ( rf > INTRA_FRAME ) if ( ref_frame != rf ) continue ;\n if ( const_motion ) if ( this_mode == NEARMV || this_mode == ZEROMV ) continue ;\n }\n comp_pred = second_ref_frame > INTRA_FRAME ;\n if ( comp_pred ) {\n if ( ! cm -> allow_comp_inter_inter ) continue ;\n if ( ( mode_search_skip_flags & FLAG_SKIP_COMP_BESTINTRA ) && best_mode_index >= 0 && vp9_mode_order [ best_mode_index ] . ref_frame [ 0 ] == INTRA_FRAME ) continue ;\n if ( ( mode_search_skip_flags & FLAG_SKIP_COMP_REFMISMATCH ) && ref_frame != best_inter_ref_frame && second_ref_frame != best_inter_ref_frame ) continue ;\n mode_excluded = cm -> reference_mode == SINGLE_REFERENCE ;\n }\n else {\n if ( ref_frame != INTRA_FRAME ) mode_excluded = cm -> reference_mode == COMPOUND_REFERENCE ;\n }\n if ( ref_frame == INTRA_FRAME ) {\n if ( cpi -> sf . adaptive_mode_search ) if ( ( x -> source_variance << num_pels_log2_lookup [ bsize ] ) > best_intra_rd ) continue ;\n if ( ! ( intra_y_mode_mask & ( 1 << this_mode ) ) ) continue ;\n if ( this_mode != DC_PRED ) {\n const unsigned int skip_intra_var_thresh = 64 ;\n if ( ( mode_search_skip_flags & FLAG_SKIP_INTRA_LOWVAR ) && x -> source_variance < skip_intra_var_thresh ) continue ;\n if ( ( mode_search_skip_flags & FLAG_SKIP_INTRA_BESTINTER ) && ( this_mode >= D45_PRED && this_mode <= TM_PRED ) ) {\n if ( best_mode_index >= 0 && vp9_mode_order [ best_mode_index ] . ref_frame [ 0 ] > INTRA_FRAME ) continue ;\n }\n if ( mode_search_skip_flags & FLAG_SKIP_INTRA_DIRMISMATCH ) {\n if ( conditional_skipintra ( this_mode , best_intra_mode ) ) continue ;\n }\n }\n }\n else {\n const MV_REFERENCE_FRAME ref_frames [ 2 ] = {\n ref_frame , second_ref_frame }\n ;\n if ( ! check_best_zero_mv ( cpi , mbmi -> mode_context , frame_mv , inter_mode_mask , this_mode , ref_frames ) ) continue ;\n }\n mbmi -> mode = this_mode ;\n mbmi -> uv_mode = DC_PRED ;\n mbmi -> ref_frame [ 0 ] = ref_frame ;\n mbmi -> ref_frame [ 1 ] = second_ref_frame ;\n mbmi -> interp_filter = cm -> interp_filter == SWITCHABLE ? EIGHTTAP : cm -> interp_filter ;\n mbmi -> mv [ 0 ] . as_int = mbmi -> mv [ 1 ] . as_int = 0 ;\n x -> skip = 0 ;\n set_ref_ptrs ( cm , xd , ref_frame , second_ref_frame ) ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n i ++ ) {\n xd -> plane [ i ] . pre [ 0 ] = yv12_mb [ ref_frame ] [ i ] ;\n if ( comp_pred ) xd -> plane [ i ] . pre [ 1 ] = yv12_mb [ second_ref_frame ] [ i ] ;\n }\n for ( i = 0 ;\n i < TX_MODES ;\n ++ i ) tx_cache [ i ] = INT64_MAX ;\n if ( ref_frame == INTRA_FRAME ) {\n TX_SIZE uv_tx ;\n super_block_yrd ( cpi , x , & rate_y , & distortion_y , & skippable , NULL , bsize , tx_cache , best_rd ) ;\n if ( rate_y == INT_MAX ) continue ;\n uv_tx = get_uv_tx_size_impl ( mbmi -> tx_size , bsize , pd [ 1 ] . subsampling_x , pd [ 1 ] . subsampling_y ) ;\n if ( rate_uv_intra [ uv_tx ] == INT_MAX ) {\n choose_intra_uv_mode ( cpi , ctx , bsize , uv_tx , & rate_uv_intra [ uv_tx ] , & rate_uv_tokenonly [ uv_tx ] , & dist_uv [ uv_tx ] , & skip_uv [ uv_tx ] , & mode_uv [ uv_tx ] ) ;\n }\n rate_uv = rate_uv_tokenonly [ uv_tx ] ;\n distortion_uv = dist_uv [ uv_tx ] ;\n skippable = skippable && skip_uv [ uv_tx ] ;\n mbmi -> uv_mode = mode_uv [ uv_tx ] ;\n rate2 = rate_y + cpi -> mbmode_cost [ mbmi -> mode ] + rate_uv_intra [ uv_tx ] ;\n if ( this_mode != DC_PRED && this_mode != TM_PRED ) rate2 += intra_cost_penalty ;\n distortion2 = distortion_y + distortion_uv ;\n }\n else {\n this_rd = handle_inter_mode ( cpi , x , bsize , tx_cache , & rate2 , & distortion2 , & skippable , & rate_y , & distortion_y , & rate_uv , & distortion_uv , & disable_skip , frame_mv , mi_row , mi_col , single_newmv , single_inter_filter , single_skippable , & total_sse , best_rd ) ;\n if ( this_rd == INT64_MAX ) continue ;\n compmode_cost = vp9_cost_bit ( comp_mode_p , comp_pred ) ;\n if ( cm -> reference_mode == REFERENCE_MODE_SELECT ) rate2 += compmode_cost ;\n }\n if ( comp_pred ) {\n rate2 += ref_costs_comp [ ref_frame ] ;\n }\n else {\n rate2 += ref_costs_single [ ref_frame ] ;\n }\n if ( ! disable_skip ) {\n if ( skippable ) {\n vp9_prob skip_prob = vp9_get_skip_prob ( cm , xd ) ;\n rate2 -= ( rate_y + rate_uv ) ;\n rate_uv = 0 ;\n if ( skip_prob ) {\n int prob_skip_cost = vp9_cost_bit ( skip_prob , 1 ) ;\n rate2 += prob_skip_cost ;\n }\n }\n else if ( ref_frame != INTRA_FRAME && ! xd -> lossless ) {\n if ( RDCOST ( x -> rdmult , x -> rddiv , rate_y + rate_uv , distortion2 ) < RDCOST ( x -> rdmult , x -> rddiv , 0 , total_sse ) ) {\n rate2 += vp9_cost_bit ( vp9_get_skip_prob ( cm , xd ) , 0 ) ;\n }\n else {\n rate2 += vp9_cost_bit ( vp9_get_skip_prob ( cm , xd ) , 1 ) ;\n distortion2 = total_sse ;\n assert ( total_sse >= 0 ) ;\n rate2 -= ( rate_y + rate_uv ) ;\n rate_y = 0 ;\n rate_uv = 0 ;\n this_skip2 = 1 ;\n }\n }\n else {\n rate2 += vp9_cost_bit ( vp9_get_skip_prob ( cm , xd ) , 0 ) ;\n }\n this_rd = RDCOST ( x -> rdmult , x -> rddiv , rate2 , distortion2 ) ;\n }\n if ( ref_frame == INTRA_FRAME ) {\n if ( this_rd < best_intra_rd ) {\n best_intra_rd = this_rd ;\n best_intra_mode = mbmi -> mode ;\n }\n }\n else {\n if ( ! comp_pred && ! mode_excluded && this_rd < best_inter_rd ) {\n best_inter_rd = this_rd ;\n best_inter_ref_frame = ref_frame ;\n }\n }\n if ( ! disable_skip && ref_frame == INTRA_FRAME ) {\n for ( i = 0 ;\n i < REFERENCE_MODES ;\n ++ i ) best_pred_rd [ i ] = MIN ( best_pred_rd [ i ] , this_rd ) ;\n for ( i = 0 ;\n i < SWITCHABLE_FILTER_CONTEXTS ;\n i ++ ) best_filter_rd [ i ] = MIN ( best_filter_rd [ i ] , this_rd ) ;\n }\n if ( this_rd < best_rd || x -> skip ) {\n int max_plane = MAX_MB_PLANE ;\n if ( ! mode_excluded ) {\n best_mode_index = mode_index ;\n if ( ref_frame == INTRA_FRAME ) {\n mbmi -> mv [ 0 ] . as_int = 0 ;\n max_plane = 1 ;\n }\n else {\n best_intra_rd = x -> pred_sse [ ref_frame ] ;\n }\n * returnrate = rate2 ;\n * returndistortion = distortion2 ;\n best_rd = this_rd ;\n best_mbmode = * mbmi ;\n best_skip2 = this_skip2 ;\n best_mode_skippable = skippable ;\n if ( ! x -> select_tx_size ) swap_block_ptr ( x , ctx , 1 , 0 , 0 , max_plane ) ;\n vpx_memcpy ( ctx -> zcoeff_blk , x -> zcoeff_blk [ mbmi -> tx_size ] , sizeof ( uint8_t ) * ctx -> num_4x4_blk ) ;\n if ( ( mode_search_skip_flags & FLAG_EARLY_TERMINATE ) && ( mode_index > MIN_EARLY_TERM_INDEX ) ) {\n const int qstep = xd -> plane [ 0 ] . dequant [ 1 ] ;\n int scale = 4 ;\n if ( x -> source_variance < UINT_MAX ) {\n const int var_adjust = ( x -> source_variance < 16 ) ;\n scale -= var_adjust ;\n }\n if ( ref_frame > INTRA_FRAME && distortion2 * scale < qstep * qstep ) {\n early_term = 1 ;\n }\n }\n }\n }\n if ( ! disable_skip && ref_frame != INTRA_FRAME ) {\n int64_t single_rd , hybrid_rd , single_rate , hybrid_rate ;\n if ( cm -> reference_mode == REFERENCE_MODE_SELECT ) {\n single_rate = rate2 - compmode_cost ;\n hybrid_rate = rate2 ;\n }\n else {\n single_rate = rate2 ;\n hybrid_rate = rate2 + compmode_cost ;\n }\n single_rd = RDCOST ( x -> rdmult , x -> rddiv , single_rate , distortion2 ) ;\n hybrid_rd = RDCOST ( x -> rdmult , x -> rddiv , hybrid_rate , distortion2 ) ;\n if ( ! comp_pred ) {\n if ( single_rd < best_pred_rd [ SINGLE_REFERENCE ] ) {\n best_pred_rd [ SINGLE_REFERENCE ] = single_rd ;\n }\n }\n else {\n if ( single_rd < best_pred_rd [ COMPOUND_REFERENCE ] ) {\n best_pred_rd [ COMPOUND_REFERENCE ] = single_rd ;\n }\n }\n if ( hybrid_rd < best_pred_rd [ REFERENCE_MODE_SELECT ] ) best_pred_rd [ REFERENCE_MODE_SELECT ] = hybrid_rd ;\n if ( ! mode_excluded && cm -> interp_filter != BILINEAR ) {\n int64_t ref = rd_opt -> filter_cache [ cm -> interp_filter == SWITCHABLE ? SWITCHABLE_FILTERS : cm -> interp_filter ] ;\n for ( i = 0 ;\n i < SWITCHABLE_FILTER_CONTEXTS ;\n i ++ ) {\n int64_t adj_rd ;\n if ( ref == INT64_MAX ) adj_rd = 0 ;\n else if ( rd_opt -> filter_cache [ i ] == INT64_MAX ) adj_rd = rd_opt -> mask_filter - ref + 10 ;\n else adj_rd = rd_opt -> filter_cache [ i ] - ref ;\n adj_rd += this_rd ;\n best_filter_rd [ i ] = MIN ( best_filter_rd [ i ] , adj_rd ) ;\n }\n }\n }\n if ( bsize < BLOCK_32X32 ) {\n if ( bsize < BLOCK_16X16 ) tx_cache [ ALLOW_16X16 ] = tx_cache [ ALLOW_8X8 ] ;\n tx_cache [ ALLOW_32X32 ] = tx_cache [ ALLOW_16X16 ] ;\n }\n if ( ! mode_excluded && this_rd != INT64_MAX ) {\n for ( i = 0 ;\n i < TX_MODES && tx_cache [ i ] < INT64_MAX ;\n i ++ ) {\n int64_t adj_rd = INT64_MAX ;\n adj_rd = this_rd + tx_cache [ i ] - tx_cache [ cm -> tx_mode ] ;\n if ( adj_rd < best_tx_rd [ i ] ) best_tx_rd [ i ] = adj_rd ;\n }\n }\n if ( early_term ) break ;\n if ( x -> skip && ! comp_pred ) break ;\n }\n if ( best_mbmode . mode == NEWMV ) {\n const MV_REFERENCE_FRAME refs [ 2 ] = {\n best_mbmode . ref_frame [ 0 ] , best_mbmode . ref_frame [ 1 ] }\n ;\n int comp_pred_mode = refs [ 1 ] > INTRA_FRAME ;\n if ( frame_mv [ NEARESTMV ] [ refs [ 0 ] ] . as_int == best_mbmode . mv [ 0 ] . as_int && ( ( comp_pred_mode && frame_mv [ NEARESTMV ] [ refs [ 1 ] ] . as_int == best_mbmode . mv [ 1 ] . as_int ) || ! comp_pred_mode ) ) best_mbmode . mode = NEARESTMV ;\n else if ( frame_mv [ NEARMV ] [ refs [ 0 ] ] . as_int == best_mbmode . mv [ 0 ] . as_int && ( ( comp_pred_mode && frame_mv [ NEARMV ] [ refs [ 1 ] ] . as_int == best_mbmode . mv [ 1 ] . as_int ) || ! comp_pred_mode ) ) best_mbmode . mode = NEARMV ;\n else if ( best_mbmode . mv [ 0 ] . as_int == 0 && ( ( comp_pred_mode && best_mbmode . mv [ 1 ] . as_int == 0 ) || ! comp_pred_mode ) ) best_mbmode . mode = ZEROMV ;\n }\n if ( best_mode_index < 0 || best_rd >= best_rd_so_far ) return INT64_MAX ;\n if ( cpi -> sf . use_uv_intra_rd_estimate ) {\n if ( vp9_mode_order [ best_mode_index ] . ref_frame [ 0 ] == INTRA_FRAME ) {\n TX_SIZE uv_tx_size ;\n * mbmi = best_mbmode ;\n uv_tx_size = get_uv_tx_size ( mbmi , & xd -> plane [ 1 ] ) ;\n rd_pick_intra_sbuv_mode ( cpi , x , ctx , & rate_uv_intra [ uv_tx_size ] , & rate_uv_tokenonly [ uv_tx_size ] , & dist_uv [ uv_tx_size ] , & skip_uv [ uv_tx_size ] , bsize < BLOCK_8X8 ? BLOCK_8X8 : bsize , uv_tx_size ) ;\n }\n }\n assert ( ( cm -> interp_filter == SWITCHABLE ) || ( cm -> interp_filter == best_mbmode . interp_filter ) || ! is_inter_block ( & best_mbmode ) ) ;\n update_rd_thresh_fact ( cpi , bsize , best_mode_index ) ;\n * mbmi = best_mbmode ;\n x -> skip |= best_skip2 ;\n for ( i = 0 ;\n i < REFERENCE_MODES ;\n ++ i ) {\n if ( best_pred_rd [ i ] == INT64_MAX ) best_pred_diff [ i ] = INT_MIN ;\n else best_pred_diff [ i ] = best_rd - best_pred_rd [ i ] ;\n }\n if ( ! x -> skip ) {\n for ( i = 0 ;\n i < SWITCHABLE_FILTER_CONTEXTS ;\n i ++ ) {\n if ( best_filter_rd [ i ] == INT64_MAX ) best_filter_diff [ i ] = 0 ;\n else best_filter_diff [ i ] = best_rd - best_filter_rd [ i ] ;\n }\n if ( cm -> interp_filter == SWITCHABLE ) assert ( best_filter_diff [ SWITCHABLE_FILTERS ] == 0 ) ;\n for ( i = 0 ;\n i < TX_MODES ;\n i ++ ) {\n if ( best_tx_rd [ i ] == INT64_MAX ) best_tx_diff [ i ] = 0 ;\n else best_tx_diff [ i ] = best_rd - best_tx_rd [ i ] ;\n }\n }\n else {\n vp9_zero ( best_filter_diff ) ;\n vp9_zero ( best_tx_diff ) ;\n }\n set_ref_ptrs ( cm , xd , mbmi -> ref_frame [ 0 ] , mbmi -> ref_frame [ 1 ] ) ;\n store_coding_context ( x , ctx , best_mode_index , best_pred_diff , best_tx_diff , best_filter_diff , best_mode_skippable ) ;\n return best_rd ;\n }"}
{"idx": 7310, "target": 0, "func": "static Node * simplify_boolean_equality ( Oid opno , List * args ) {\n Node * leftop ;\n Node * rightop ;\n Assert ( list_length ( args ) == 2 ) ;\n leftop = linitial ( args ) ;\n rightop = lsecond ( args ) ;\n if ( leftop && IsA ( leftop , Const ) ) {\n Assert ( ! ( ( Const * ) leftop ) -> constisnull ) ;\n if ( opno == BooleanEqualOperator ) {\n if ( DatumGetBool ( ( ( Const * ) leftop ) -> constvalue ) ) return rightop ;\n else return negate_clause ( rightop ) ;\n }\n else {\n if ( DatumGetBool ( ( ( Const * ) leftop ) -> constvalue ) ) return negate_clause ( rightop ) ;\n else return rightop ;\n }\n }\n if ( rightop && IsA ( rightop , Const ) ) {\n Assert ( ! ( ( Const * ) rightop ) -> constisnull ) ;\n if ( opno == BooleanEqualOperator ) {\n if ( DatumGetBool ( ( ( Const * ) rightop ) -> constvalue ) ) return leftop ;\n else return negate_clause ( leftop ) ;\n }\n else {\n if ( DatumGetBool ( ( ( Const * ) rightop ) -> constvalue ) ) return negate_clause ( leftop ) ;\n else return leftop ;\n }\n }\n return NULL ;\n }"}
{"idx": 7311, "target": 0, "func": "static void virtio_pci_reset ( DeviceState * d ) {\n VirtIOPCIProxy * proxy = container_of ( d , VirtIOPCIProxy , pci_dev . qdev ) ;\n virtio_reset ( proxy -> vdev ) ;\n msix_reset ( & proxy -> pci_dev ) ;\n }"}
{"idx": 7312, "target": 0, "func": "static void test_field_flags ( ) {\n int rc ;\n MYSQL_RES * result ;\n MYSQL_FIELD * field ;\n unsigned int i ;\n myheader ( \"test_field_flags\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_field_flags\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_field_flags(id int NOT NULL AUTO_INCREMENT PRIMARY KEY, \\ id1 int NOT NULL, \\ id2 int UNIQUE, \\ id3 int, \\ id4 int NOT NULL, \\ id5 int, \\ KEY(id3, id4))\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"SELECT * FROM test_field_flags\" ) ;\n myquery ( rc ) ;\n result = mysql_use_result ( mysql ) ;\n mytest ( result ) ;\n mysql_field_seek ( result , 0 ) ;\n if ( ! opt_silent ) fputc ( '\\n' , stdout ) ;\n for ( i = 0 ;\n i < mysql_num_fields ( result ) ;\n i ++ ) {\n field = mysql_fetch_field ( result ) ;\n if ( ! opt_silent ) {\n fprintf ( stdout , \"\\n field:%d\" , i ) ;\n if ( field -> flags & NOT_NULL_FLAG ) fprintf ( stdout , \"\\n NOT_NULL_FLAG\" ) ;\n if ( field -> flags & PRI_KEY_FLAG ) fprintf ( stdout , \"\\n PRI_KEY_FLAG\" ) ;\n if ( field -> flags & UNIQUE_KEY_FLAG ) fprintf ( stdout , \"\\n UNIQUE_KEY_FLAG\" ) ;\n if ( field -> flags & MULTIPLE_KEY_FLAG ) fprintf ( stdout , \"\\n MULTIPLE_KEY_FLAG\" ) ;\n if ( field -> flags & AUTO_INCREMENT_FLAG ) fprintf ( stdout , \"\\n AUTO_INCREMENT_FLAG\" ) ;\n }\n }\n mysql_free_result ( result ) ;\n }"}
{"idx": 7313, "target": 0, "func": "static void splay_insert ( clump_t * cp , gs_ref_memory_t * mem ) {\n clump_t * node = NULL ;\n clump_t * * root = & mem -> root ;\n while ( * root ) {\n node = * root ;\n if ( PTR_LT ( cp -> cbase , node -> cbase ) ) {\n root = & node -> left ;\n }\n else {\n root = & node -> right ;\n }\n }\n * root = cp ;\n cp -> left = NULL ;\n cp -> right = NULL ;\n cp -> parent = node ;\n splay_move_to_root ( cp , mem ) ;\n }"}
{"idx": 7314, "target": 1, "func": "static int gdev_pdf_put_params_impl ( gx_device * dev , const gx_device_pdf * save_dev , gs_param_list * plist ) {\n int ecode , code ;\n gx_device_pdf * pdev = ( gx_device_pdf * ) dev ;\n float cl = ( float ) pdev -> CompatibilityLevel ;\n bool locked = pdev -> params . LockDistillerParams , ForOPDFRead ;\n gs_param_name param_name ;\n pdev -> pdf_memory = gs_memory_stable ( pdev -> memory ) ;\n {\n gs_param_string_array ppa ;\n gs_param_string pps ;\n code = param_read_string_array ( plist , ( param_name = \"pdfmark\" ) , & ppa ) ;\n switch ( code ) {\n case 0 : code = pdfwrite_pdf_open_document ( pdev ) ;\n if ( code < 0 ) return code ;\n code = pdfmark_process ( pdev , & ppa ) ;\n if ( code >= 0 ) return code ;\n default : param_signal_error ( plist , param_name , code ) ;\n return code ;\n case 1 : break ;\n }\n code = param_read_string_array ( plist , ( param_name = \"DSC\" ) , & ppa ) ;\n switch ( code ) {\n case 0 : code = pdfwrite_pdf_open_document ( pdev ) ;\n if ( code < 0 ) return code ;\n code = pdf_dsc_process ( pdev , & ppa ) ;\n if ( code >= 0 ) return code ;\n default : param_signal_error ( plist , param_name , code ) ;\n return code ;\n case 1 : break ;\n }\n code = param_read_string ( plist , ( param_name = \"pdfpagelabels\" ) , & pps ) ;\n switch ( code ) {\n case 0 : {\n if ( ! pdev -> ForOPDFRead ) {\n cos_dict_t * const pcd = pdev -> Catalog ;\n code = pdfwrite_pdf_open_document ( pdev ) ;\n if ( code < 0 ) return code ;\n code = cos_dict_put_string ( pcd , ( const byte * ) \"/PageLabels\" , 11 , pps . data , pps . size ) ;\n if ( code >= 0 ) return code ;\n }\n else return 0 ;\n }\n default : param_signal_error ( plist , param_name , code ) ;\n return code ;\n case 1 : break ;\n }\n }\n ecode = param_read_bool ( plist , \"LockDistillerParams\" , & locked ) ;\n if ( ecode < 0 ) param_signal_error ( plist , param_name , ecode ) ;\n {\n int efo = 1 ;\n ecode = param_put_int ( plist , ( param_name = \".EmbedFontObjects\" ) , & efo , ecode ) ;\n if ( ecode < 0 ) param_signal_error ( plist , param_name , ecode ) ;\n if ( efo != 1 ) param_signal_error ( plist , param_name , ecode = gs_error_rangecheck ) ;\n }\n {\n int cdv = CoreDistVersion ;\n ecode = param_put_int ( plist , ( param_name = \"CoreDistVersion\" ) , & cdv , ecode ) ;\n if ( ecode < 0 ) return gs_note_error ( ecode ) ;\n if ( cdv != CoreDistVersion ) param_signal_error ( plist , param_name , ecode = gs_error_rangecheck ) ;\n }\n switch ( code = param_read_float ( plist , ( param_name = \"CompatibilityLevel\" ) , & cl ) ) {\n default : ecode = code ;\n param_signal_error ( plist , param_name , ecode ) ;\n break ;\n case 0 : if ( ! ( locked && pdev -> params . LockDistillerParams ) ) {\n if ( cl < ( float ) 1.15 ) cl = ( float ) 1.1 ;\n else if ( cl < ( float ) 1.25 ) cl = ( float ) 1.2 ;\n else if ( cl < ( float ) 1.35 ) cl = ( float ) 1.3 ;\n else if ( cl < ( float ) 1.45 ) cl = ( float ) 1.4 ;\n else if ( cl < ( float ) 1.55 ) cl = ( float ) 1.5 ;\n else if ( cl < ( float ) 1.65 ) cl = ( float ) 1.6 ;\n else if ( cl < ( float ) 1.75 ) cl = ( float ) 1.7 ;\n else {\n cl = ( float ) 2.0 ;\n if ( pdev -> params . TransferFunctionInfo == tfi_Preserve ) pdev -> params . TransferFunctionInfo = tfi_Apply ;\n }\n }\n case 1 : break ;\n }\n {\n gs_memory_t * mem = plist -> memory ;\n plist -> memory = pdev -> pdf_memory ;\n code = gs_param_read_items ( plist , pdev , pdf_param_items ) ;\n if ( code < 0 || ( code = param_read_bool ( plist , \"ForOPDFRead\" , & ForOPDFRead ) ) < 0 ) {\n }\n if ( code == 0 && ! pdev -> is_ps2write && ! ( locked && pdev -> params . LockDistillerParams ) ) pdev -> ForOPDFRead = ForOPDFRead ;\n plist -> memory = mem ;\n }\n if ( code < 0 ) ecode = code ;\n {\n long fon = pdev -> FirstObjectNumber ;\n if ( fon != save_dev -> FirstObjectNumber ) {\n if ( fon <= 0 || fon > 0x7fff0000 || ( pdev -> next_id != 0 && pdev -> next_id != save_dev -> FirstObjectNumber + pdf_num_initial_ids ) ) {\n ecode = gs_error_rangecheck ;\n param_signal_error ( plist , \"FirstObjectNumber\" , ecode ) ;\n }\n }\n }\n {\n static const char * const pcm_names [ ] = {\n \"DeviceGray\" , \"DeviceRGB\" , \"DeviceCMYK\" , \"DeviceN\" , 0 }\n ;\n int pcm = - 1 ;\n ecode = param_put_enum ( plist , \"ProcessColorModel\" , & pcm , pcm_names , ecode ) ;\n if ( pcm >= 0 ) {\n pdf_set_process_color_model ( pdev , pcm ) ;\n rc_decrement ( pdev -> icc_struct , \"gdev_pdf_put_params_impl, ProcessColorModel changed\" ) ;\n pdev -> icc_struct = 0 ;\n }\n }\n if ( ecode < 0 ) goto fail ;\n if ( pdev -> is_ps2write && ( code = param_read_bool ( plist , \"ProduceDSC\" , & pdev -> ProduceDSC ) ) < 0 ) {\n param_signal_error ( plist , param_name , code ) ;\n }\n if ( pdev -> PDFA < 0 || pdev -> PDFA > 3 ) {\n ecode = gs_note_error ( gs_error_rangecheck ) ;\n param_signal_error ( plist , \"PDFA\" , ecode ) ;\n goto fail ;\n }\n if ( pdev -> PDFA != 0 && pdev -> AbortPDFAX ) pdev -> PDFA = 0 ;\n if ( pdev -> PDFX && pdev -> AbortPDFAX ) pdev -> PDFX = 0 ;\n if ( pdev -> PDFX && pdev -> PDFA != 0 ) {\n ecode = gs_note_error ( gs_error_rangecheck ) ;\n param_signal_error ( plist , \"PDFA\" , ecode ) ;\n goto fail ;\n }\n if ( pdev -> PDFX && pdev -> ForOPDFRead ) {\n ecode = gs_note_error ( gs_error_rangecheck ) ;\n param_signal_error ( plist , \"PDFX\" , ecode ) ;\n goto fail ;\n }\n if ( pdev -> PDFA != 0 && pdev -> ForOPDFRead ) {\n ecode = gs_note_error ( gs_error_rangecheck ) ;\n param_signal_error ( plist , \"PDFA\" , ecode ) ;\n goto fail ;\n }\n if ( pdev -> PDFA == 1 || pdev -> PDFX || pdev -> CompatibilityLevel < 1.4 ) {\n pdev -> HaveTransparency = false ;\n pdev -> PreserveSMask = false ;\n }\n if ( pdev -> PDFX ) cl = ( float ) 1.3 ;\n if ( pdev -> PDFA != 0 && cl < 1.4 ) cl = ( float ) 1.4 ;\n pdev -> version = ( cl < 1.2 ? psdf_version_level2 : psdf_version_ll3 ) ;\n if ( pdev -> ForOPDFRead ) {\n pdev -> ResourcesBeforeUsage = true ;\n pdev -> HaveCFF = false ;\n pdev -> HavePDFWidths = false ;\n pdev -> HaveStrokeColor = false ;\n cl = ( float ) 1.2 ;\n pdev -> MaxInlineImageSize = max_long ;\n pdev -> version = psdf_version_level2 ;\n }\n else {\n pdev -> ResourcesBeforeUsage = false ;\n pdev -> HaveCFF = true ;\n pdev -> HavePDFWidths = true ;\n pdev -> HaveStrokeColor = true ;\n }\n pdev -> ParamCompatibilityLevel = cl ;\n if ( cl < 1.2 ) {\n pdev -> HaveCFF = false ;\n }\n ecode = gdev_psdf_put_params ( dev , plist ) ;\n if ( ecode < 0 ) goto fail ;\n if ( pdev -> CompatibilityLevel > 1.7 && pdev -> params . TransferFunctionInfo == tfi_Preserve ) {\n pdev -> params . TransferFunctionInfo = tfi_Apply ;\n emprintf ( pdev -> memory , \"\\nIt is not possible to preserve transfer functions in PDF 2.0\\ntransfer functions will be applied instead\\n\" ) ;\n }\n if ( pdev -> params . ConvertCMYKImagesToRGB ) {\n if ( pdev -> params . ColorConversionStrategy == ccs_CMYK ) {\n emprintf ( pdev -> memory , \"ConvertCMYKImagesToRGB is not compatible with ColorConversionStrategy of CMYK\\n\" ) ;\n }\n else {\n if ( pdev -> params . ColorConversionStrategy == ccs_Gray ) {\n emprintf ( pdev -> memory , \"ConvertCMYKImagesToRGB is not compatible with ColorConversionStrategy of Gray\\n\" ) ;\n }\n else {\n if ( pdev -> icc_struct ) rc_decrement ( pdev -> icc_struct , \"reset default profile\\n\" ) ;\n pdf_set_process_color_model ( pdev , 1 ) ;\n ecode = gsicc_init_device_profile_struct ( ( gx_device * ) pdev , NULL , 0 ) ;\n if ( ecode < 0 ) goto fail ;\n }\n }\n }\n switch ( pdev -> params . ColorConversionStrategy ) {\n case ccs_ByObjectType : case ccs_LeaveColorUnchanged : break ;\n case ccs_UseDeviceDependentColor : case ccs_UseDeviceIndependentColor : case ccs_UseDeviceIndependentColorForImages : pdev -> params . TransferFunctionInfo = tfi_Apply ;\n break ;\n case ccs_CMYK : pdev -> params . TransferFunctionInfo = tfi_Apply ;\n if ( pdev -> icc_struct ) rc_decrement ( pdev -> icc_struct , \"reset default profile\\n\" ) ;\n pdf_set_process_color_model ( pdev , 2 ) ;\n ecode = gsicc_init_device_profile_struct ( ( gx_device * ) pdev , NULL , 0 ) ;\n if ( ecode < 0 ) goto fail ;\n break ;\n case ccs_Gray : pdev -> params . TransferFunctionInfo = tfi_Apply ;\n if ( pdev -> icc_struct ) rc_decrement ( pdev -> icc_struct , \"reset default profile\\n\" ) ;\n pdf_set_process_color_model ( pdev , 0 ) ;\n ecode = gsicc_init_device_profile_struct ( ( gx_device * ) pdev , NULL , 0 ) ;\n if ( ecode < 0 ) goto fail ;\n break ;\n case ccs_sRGB : case ccs_RGB : pdev -> params . TransferFunctionInfo = tfi_Apply ;\n if ( ! pdev -> params . ConvertCMYKImagesToRGB ) {\n if ( pdev -> icc_struct ) rc_decrement ( pdev -> icc_struct , \"reset default profile\\n\" ) ;\n pdf_set_process_color_model ( pdev , 1 ) ;\n ecode = gsicc_init_device_profile_struct ( ( gx_device * ) pdev , NULL , 0 ) ;\n if ( ecode < 0 ) goto fail ;\n }\n break ;\n default : break ;\n }\n if ( cl < 1.5f && pdev -> params . ColorImage . Filter != NULL && ! strcmp ( pdev -> params . ColorImage . Filter , \"JPXEncode\" ) ) {\n emprintf ( pdev -> memory , \"JPXEncode requires CompatibilityLevel >= 1.5 .\\n\" ) ;\n ecode = gs_note_error ( gs_error_rangecheck ) ;\n }\n if ( cl < 1.5f && pdev -> params . GrayImage . Filter != NULL && ! strcmp ( pdev -> params . GrayImage . Filter , \"JPXEncode\" ) ) {\n emprintf ( pdev -> memory , \"JPXEncode requires CompatibilityLevel >= 1.5 .\\n\" ) ;\n ecode = gs_note_error ( gs_error_rangecheck ) ;\n }\n if ( cl < 1.4f && pdev -> params . MonoImage . Filter != NULL && ! strcmp ( pdev -> params . MonoImage . Filter , \"JBIG2Encode\" ) ) {\n emprintf ( pdev -> memory , \"JBIG2Encode requires CompatibilityLevel >= 1.4 .\\n\" ) ;\n ecode = gs_note_error ( gs_error_rangecheck ) ;\n }\n if ( pdev -> HaveTrueTypes && pdev -> version == psdf_version_level2 ) {\n pdev -> version = psdf_version_level2_with_TT ;\n }\n if ( ecode < 0 ) goto fail ;\n if ( pdev -> FirstObjectNumber != save_dev -> FirstObjectNumber ) {\n if ( pdev -> xref . file != 0 ) {\n if ( gp_fseek_64 ( pdev -> xref . file , 0L , SEEK_SET ) != 0 ) {\n ecode = gs_error_ioerror ;\n goto fail ;\n }\n pdf_initialize_ids ( pdev ) ;\n }\n }\n pdev -> CompatibilityLevel = ( int ) ( cl * 10 + 0.5 ) / 10.0 ;\n if ( pdev -> OwnerPassword . size != save_dev -> OwnerPassword . size || ( pdev -> OwnerPassword . size != 0 && memcmp ( pdev -> OwnerPassword . data , save_dev -> OwnerPassword . data , pdev -> OwnerPassword . size ) != 0 ) ) {\n if ( pdev -> is_open ) {\n if ( pdev -> PageCount == 0 ) {\n gs_closedevice ( ( gx_device * ) save_dev ) ;\n return 0 ;\n }\n else emprintf ( pdev -> memory , \"Owner Password changed mid-job, ignoring.\\n\" ) ;\n }\n }\n if ( pdev -> Linearise && pdev -> is_ps2write ) {\n emprintf ( pdev -> memory , \"Can't linearise PostScript output, ignoring\\n\" ) ;\n pdev -> Linearise = false ;\n }\n if ( pdev -> Linearise && pdev -> OwnerPassword . size != 0 ) {\n emprintf ( pdev -> memory , \"Can't linearise encrypted PDF, ignoring\\n\" ) ;\n pdev -> Linearise = false ;\n }\n if ( pdev -> FlattenFonts ) pdev -> PreserveTrMode = false ;\n return 0 ;\n fail : pdev -> version = save_dev -> version ;\n pdf_set_process_color_model ( pdev , save_dev -> pcm_color_info_index ) ;\n pdev -> saved_fill_color = save_dev -> saved_fill_color ;\n pdev -> saved_stroke_color = save_dev -> saved_fill_color ;\n {\n const gs_param_item_t * ppi = pdf_param_items ;\n for ( ;\n ppi -> key ;\n ++ ppi ) memcpy ( ( char * ) pdev + ppi -> offset , ( char * ) save_dev + ppi -> offset , gs_param_type_sizes [ ppi -> type ] ) ;\n pdev -> ForOPDFRead = save_dev -> ForOPDFRead ;\n }\n return ecode ;\n }"}
{"idx": 7315, "target": 0, "func": "static void ctl_putint ( const char * tag , long ival ) {\n register char * cp ;\n register const char * cq ;\n char buffer [ 200 ] ;\n cp = buffer ;\n cq = tag ;\n while ( * cq != '\\0' ) * cp ++ = * cq ++ ;\n * cp ++ = '=' ;\n INSIST ( ( cp - buffer ) < ( int ) sizeof ( buffer ) ) ;\n snprintf ( cp , sizeof ( buffer ) - ( cp - buffer ) , \"%ld\" , ival ) ;\n cp += strlen ( cp ) ;\n ctl_putdata ( buffer , ( unsigned ) ( cp - buffer ) , 0 ) ;\n }"}
{"idx": 7316, "target": 0, "func": "static void pdf_end_group ( fz_context * ctx , pdf_run_processor * pr , softmask_save * softmask ) {\n pdf_gstate * gstate = pr -> gstate + pr -> gtop ;\n if ( gstate -> blendmode ) fz_end_group ( ctx , pr -> dev ) ;\n end_softmask ( ctx , pr , softmask ) ;\n }"}
{"idx": 7317, "target": 0, "func": "static int dissect_h225_T_tunnelledProtocolObjectID ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_object_identifier_str ( tvb , offset , actx , tree , hf_index , & tpOID ) ;\n return offset ;\n }"}
{"idx": 7318, "target": 0, "func": "static void sbr_neg_odd_64_c ( float * x ) {\n union av_intfloat32 * xi = ( union av_intfloat32 * ) x ;\n int i ;\n for ( i = 1 ;\n i < 64 ;\n i += 4 ) {\n xi [ i + 0 ] . i ^= 1U << 31 ;\n xi [ i + 2 ] . i ^= 1U << 31 ;\n }\n }"}
{"idx": 7319, "target": 0, "func": "static void write_inter_mode ( vp9_writer * w , PREDICTION_MODE mode , const vp9_prob * probs ) {\n assert ( is_inter_mode ( mode ) ) ;\n vp9_write_token ( w , vp9_inter_mode_tree , probs , & inter_mode_encodings [ INTER_OFFSET ( mode ) ] ) ;\n }"}
{"idx": 7320, "target": 0, "func": "TSReturnCode TSUrlClone ( TSMBuffer dest_bufp , TSMBuffer src_bufp , TSMLoc src_url , TSMLoc * locp ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( src_bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_mbuffer ( dest_bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_url_handle ( src_url ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( locp ) == TS_SUCCESS ) ;\n if ( ! isWriteable ( dest_bufp ) ) {\n return TS_ERROR ;\n }\n HdrHeap * s_heap , * d_heap ;\n URLImpl * s_url , * d_url ;\n s_heap = ( ( HdrHeapSDKHandle * ) src_bufp ) -> m_heap ;\n d_heap = ( ( HdrHeapSDKHandle * ) dest_bufp ) -> m_heap ;\n s_url = ( URLImpl * ) src_url ;\n d_url = url_copy ( s_url , s_heap , d_heap , ( s_heap != d_heap ) ) ;\n * locp = ( TSMLoc ) d_url ;\n return TS_SUCCESS ;\n }"}
{"idx": 7321, "target": 0, "func": "static void dtap_cc_congestion_control ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n guint8 oct ;\n proto_tree * subtree ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_FALSE ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , curr_offset << 3 , 4 , ENC_BIG_ENDIAN ) ;\n subtree = proto_tree_add_subtree ( tree , tvb , curr_offset , 1 , ett_gsm_dtap_elem [ DE_CONGESTION ] , NULL , val_to_str_ext_const ( DE_CONGESTION , & gsm_dtap_elem_strings_ext , \"\" ) ) ;\n proto_tree_add_uint_format_value ( subtree , hf_gsm_a_dtap_congestion_level , tvb , curr_offset , 1 , oct , \"%s\" , val_to_str_const ( oct & 0xF , gsm_a_dtap_congestion_level_vals , \"Reserved\" ) ) ;\n curr_offset ++ ;\n curr_len -- ;\n if ( ( signed ) curr_len <= 0 ) return ;\n ELEM_OPT_TLV ( 0x08 , GSM_A_PDU_TYPE_DTAP , DE_CAUSE , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 7322, "target": 1, "func": "static void show_object ( struct object * object , const struct name_path * path , const char * last , void * data ) {\n struct bitmap * base = data ;\n int bitmap_pos ;\n bitmap_pos = bitmap_position ( object -> oid . hash ) ;\n if ( bitmap_pos < 0 ) {\n char * name = path_name ( path , last ) ;\n bitmap_pos = ext_index_add_object ( object , name ) ;\n free ( name ) ;\n }\n bitmap_set ( base , bitmap_pos ) ;\n }"}
{"idx": 7323, "target": 0, "func": "void vp9_build_nmv_cost_table ( int * mvjoint , int * mvcost [ 2 ] , const nmv_context * ctx , int usehp ) {\n vp9_cost_tokens ( mvjoint , ctx -> joints , vp9_mv_joint_tree ) ;\n build_nmv_component_cost_table ( mvcost [ 0 ] , & ctx -> comps [ 0 ] , usehp ) ;\n build_nmv_component_cost_table ( mvcost [ 1 ] , & ctx -> comps [ 1 ] , usehp ) ;\n }"}
{"idx": 7324, "target": 0, "func": "static void x8_ac_compensation ( IntraX8Context * const w , int const direction , int const dc_level ) {\n MpegEncContext * const s = w -> s ;\n int t ;\n # define B ( x , y ) s -> block [ 0 ] [ s -> dsp . idct_permutation [ ( x ) + ( y ) * 8 ] ] # define T ( x ) ( ( x ) * dc_level + 0x8000 ) >> 16 ;\n switch ( direction ) {\n case 0 : t = T ( 3811 ) ;\n B ( 1 , 0 ) -= t ;\n B ( 0 , 1 ) -= t ;\n t = T ( 487 ) ;\n B ( 2 , 0 ) -= t ;\n B ( 0 , 2 ) -= t ;\n t = T ( 506 ) ;\n B ( 3 , 0 ) -= t ;\n B ( 0 , 3 ) -= t ;\n t = T ( 135 ) ;\n B ( 4 , 0 ) -= t ;\n B ( 0 , 4 ) -= t ;\n B ( 2 , 1 ) += t ;\n B ( 1 , 2 ) += t ;\n B ( 3 , 1 ) += t ;\n B ( 1 , 3 ) += t ;\n t = T ( 173 ) ;\n B ( 5 , 0 ) -= t ;\n B ( 0 , 5 ) -= t ;\n t = T ( 61 ) ;\n B ( 6 , 0 ) -= t ;\n B ( 0 , 6 ) -= t ;\n B ( 5 , 1 ) += t ;\n B ( 1 , 5 ) += t ;\n t = T ( 42 ) ;\n B ( 7 , 0 ) -= t ;\n B ( 0 , 7 ) -= t ;\n B ( 4 , 1 ) += t ;\n B ( 1 , 4 ) += t ;\n B ( 4 , 4 ) += t ;\n t = T ( 1084 ) ;\n B ( 1 , 1 ) += t ;\n s -> block_last_index [ 0 ] = FFMAX ( s -> block_last_index [ 0 ] , 7 * 8 ) ;\n break ;\n case 1 : B ( 0 , 1 ) -= T ( 6269 ) ;\n B ( 0 , 3 ) -= T ( 708 ) ;\n B ( 0 , 5 ) -= T ( 172 ) ;\n B ( 0 , 7 ) -= T ( 73 ) ;\n s -> block_last_index [ 0 ] = FFMAX ( s -> block_last_index [ 0 ] , 7 * 8 ) ;\n break ;\n case 2 : B ( 1 , 0 ) -= T ( 6269 ) ;\n B ( 3 , 0 ) -= T ( 708 ) ;\n B ( 5 , 0 ) -= T ( 172 ) ;\n B ( 7 , 0 ) -= T ( 73 ) ;\n s -> block_last_index [ 0 ] = FFMAX ( s -> block_last_index [ 0 ] , 7 ) ;\n break ;\n }\n # undef B # undef T }"}
{"idx": 7325, "target": 0, "func": "static void DecoderProcessAudio ( decoder_t * p_dec , block_t * p_block , bool b_flush ) {\n decoder_owner_sys_t * p_owner = ( decoder_owner_sys_t * ) p_dec -> p_owner ;\n if ( p_owner -> p_packetizer ) {\n block_t * p_packetized_block ;\n decoder_t * p_packetizer = p_owner -> p_packetizer ;\n while ( ( p_packetized_block = p_packetizer -> pf_packetize ( p_packetizer , p_block ? & p_block : NULL ) ) ) {\n if ( p_packetizer -> fmt_out . i_extra && ! p_dec -> fmt_in . i_extra ) {\n es_format_Clean ( & p_dec -> fmt_in ) ;\n es_format_Copy ( & p_dec -> fmt_in , & p_packetizer -> fmt_out ) ;\n }\n while ( p_packetized_block ) {\n block_t * p_next = p_packetized_block -> p_next ;\n p_packetized_block -> p_next = NULL ;\n DecoderDecodeAudio ( p_dec , p_packetized_block ) ;\n p_packetized_block = p_next ;\n }\n }\n if ( b_flush ) {\n block_t * p_null = DecoderBlockFlushNew ( ) ;\n if ( p_null ) DecoderDecodeAudio ( p_dec , p_null ) ;\n }\n }\n else {\n DecoderDecodeAudio ( p_dec , p_block ) ;\n }\n if ( b_flush && p_owner -> p_aout ) aout_DecFlush ( p_owner -> p_aout ) ;\n }"}
{"idx": 7326, "target": 0, "func": "static int getint ( jas_stream_t * in , int sgnd , int prec , long * val ) {\n long v ;\n int n ;\n int c ;\n n = ( prec + 7 ) / 8 ;\n v = 0 ;\n while ( -- n >= 0 ) {\n if ( ( c = jas_stream_getc ( in ) ) == EOF ) return - 1 ;\n v = ( v << 8 ) | c ;\n }\n v &= ( ( 1 << prec ) - 1 ) ;\n if ( sgnd ) {\n abort ( ) ;\n }\n else {\n * val = v ;\n }\n return 0 ;\n }"}
{"idx": 7327, "target": 0, "func": "static void directory_count_cancel ( NautilusDirectory * directory ) {\n if ( directory -> details -> count_in_progress != NULL ) {\n g_cancellable_cancel ( directory -> details -> count_in_progress -> cancellable ) ;\n directory -> details -> count_in_progress = NULL ;\n }\n }"}
{"idx": 7328, "target": 0, "func": "static void purple_logout ( struct im_connection * ic ) {\n struct purple_data * pd = ic -> proto_data ;\n if ( ! pd ) {\n return ;\n }\n while ( ic -> groupchats ) {\n imcb_chat_free ( ic -> groupchats -> data ) ;\n }\n if ( pd -> filetransfers ) {\n purple_transfer_cancel_all ( ic ) ;\n }\n purple_account_set_enabled ( pd -> account , \"BitlBee\" , FALSE ) ;\n purple_connections = g_slist_remove ( purple_connections , ic ) ;\n purple_accounts_remove ( pd -> account ) ;\n imcb_chat_list_free ( ic ) ;\n g_free ( pd -> chat_list_server ) ;\n g_hash_table_destroy ( pd -> input_requests ) ;\n g_free ( pd ) ;\n }"}
{"idx": 7329, "target": 0, "func": "static void cpu_request_exit ( void * opaque , int irq , int level ) {\n CPUState * cpu = current_cpu ;\n if ( cpu && level ) {\n cpu_exit ( cpu ) ;\n }\n }"}
{"idx": 7330, "target": 0, "func": "static const char * cmd_audit_engine ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = _dcfg ;\n if ( strcasecmp ( p1 , \"On\" ) == 0 ) dcfg -> auditlog_flag = AUDITLOG_ON ;\n else if ( strcasecmp ( p1 , \"Off\" ) == 0 ) dcfg -> auditlog_flag = AUDITLOG_OFF ;\n else if ( strcasecmp ( p1 , \"RelevantOnly\" ) == 0 ) dcfg -> auditlog_flag = AUDITLOG_RELEVANT ;\n else return ( const char * ) apr_psprintf ( cmd -> pool , \"ModSecurity: Unrecognised parameter value for SecAuditEngine: %s\" , p1 ) ;\n return NULL ;\n }"}
{"idx": 7331, "target": 0, "func": "static int32_t U_CALLCONV upvec_compareRows ( const void * context , const void * l , const void * r ) {\n const uint32_t * left = ( const uint32_t * ) l , * right = ( const uint32_t * ) r ;\n const UPropsVectors * pv = ( const UPropsVectors * ) context ;\n int32_t i , count , columns ;\n count = columns = pv -> columns ;\n i = 2 ;\n do {\n if ( left [ i ] != right [ i ] ) {\n return left [ i ] < right [ i ] ? - 1 : 1 ;\n }\n if ( ++ i == columns ) {\n i = 0 ;\n }\n }\n while ( -- count > 0 ) ;\n return 0 ;\n }"}
{"idx": 7332, "target": 0, "func": "int read_line ( char * buf , int size ) {\n char c , UNINIT_VAR ( last_quote ) , last_char = 0 ;\n char * p = buf , * buf_end = buf + size - 1 ;\n int skip_char = 0 ;\n my_bool have_slash = FALSE ;\n enum {\n R_NORMAL , R_Q , R_SLASH_IN_Q , R_COMMENT , R_LINE_START }\n state = R_LINE_START ;\n DBUG_ENTER ( \"read_line\" ) ;\n start_lineno = cur_file -> lineno ;\n DBUG_PRINT ( \"info\" , ( \"Starting to read at lineno: %d\" , start_lineno ) ) ;\n for ( ;\n p < buf_end ;\n ) {\n skip_char = 0 ;\n c = my_getc ( cur_file -> file ) ;\n if ( feof ( cur_file -> file ) ) {\n found_eof : if ( cur_file -> file != stdin ) {\n fclose ( cur_file -> file ) ;\n cur_file -> file = 0 ;\n }\n my_free ( cur_file -> file_name ) ;\n cur_file -> file_name = 0 ;\n if ( cur_file == file_stack ) {\n if ( cur_block != block_stack ) die ( \"Missing end of block\" ) ;\n * p = 0 ;\n DBUG_PRINT ( \"info\" , ( \"end of file at line %d\" , cur_file -> lineno ) ) ;\n DBUG_RETURN ( 1 ) ;\n }\n cur_file -- ;\n start_lineno = cur_file -> lineno ;\n continue ;\n }\n if ( c == '\\n' ) {\n cur_file -> lineno ++ ;\n if ( p != buf && * ( p - 1 ) == '\\r' ) p -- ;\n }\n switch ( state ) {\n case R_NORMAL : if ( end_of_query ( c ) ) {\n * p = 0 ;\n DBUG_PRINT ( \"exit\" , ( \"Found delimiter '%s' at line %d\" , delimiter , cur_file -> lineno ) ) ;\n DBUG_RETURN ( 0 ) ;\n }\n else if ( ( c == '{\n' && ( ! my_strnncoll_simple ( charset_info , ( const uchar * ) \"while\" , 5 , ( uchar * ) buf , min ( 5 , p - buf ) , 0 ) || ! my_strnncoll_simple ( charset_info , ( const uchar * ) \"if\" , 2 , ( uchar * ) buf , min ( 2 , p - buf ) , 0 ) ) ) ) {\n * p ++ = c ;\n * p = 0 ;\n DBUG_PRINT ( \"exit\" , ( \"Found '{\n' indicating start of block at line %d\" , cur_file -> lineno ) ) ;\n DBUG_RETURN ( 0 ) ;\n }\n else if ( c == '\\'' || c == '\"' || c == '`' ) {\n if ( ! have_slash ) {\n last_quote = c ;\n state = R_Q ;\n }\n }\n have_slash = ( c == '\\\\' ) ;\n break ;\n case R_COMMENT : if ( c == '\\n' ) {\n * p = 0 ;\n DBUG_PRINT ( \"exit\" , ( \"Found newline in comment at line: %d\" , cur_file -> lineno ) ) ;\n DBUG_RETURN ( 0 ) ;\n }\n break ;\n case R_LINE_START : if ( c == '#' || c == '-' ) {\n state = R_COMMENT ;\n }\n else if ( my_isspace ( charset_info , c ) ) {\n if ( c == '\\n' ) {\n if ( last_char == '\\n' ) {\n DBUG_PRINT ( \"info\" , ( \"Found two new lines in a row\" ) ) ;\n * p ++ = c ;\n * p = 0 ;\n DBUG_RETURN ( 0 ) ;\n }\n start_lineno = cur_file -> lineno ;\n DBUG_PRINT ( \"info\" , ( \"Query hasn't started yet, start_lineno: %d\" , start_lineno ) ) ;\n }\n skip_char = 1 ;\n }\n else if ( end_of_query ( c ) ) {\n * p = 0 ;\n DBUG_PRINT ( \"exit\" , ( \"Found delimiter '%s' at line: %d\" , delimiter , cur_file -> lineno ) ) ;\n DBUG_RETURN ( 0 ) ;\n }\n else if ( c == '}\n' ) {\n * p ++ = c ;\n * p = 0 ;\n DBUG_PRINT ( \"exit\" , ( \"Found '}\n' in begining of a line at line: %d\" , cur_file -> lineno ) ) ;\n DBUG_RETURN ( 0 ) ;\n }\n else if ( c == '\\'' || c == '\"' || c == '`' ) {\n last_quote = c ;\n state = R_Q ;\n }\n else state = R_NORMAL ;\n break ;\n case R_Q : if ( c == last_quote ) state = R_NORMAL ;\n else if ( c == '\\\\' ) state = R_SLASH_IN_Q ;\n break ;\n case R_SLASH_IN_Q : state = R_Q ;\n break ;\n }\n last_char = c ;\n if ( ! skip_char ) {\n # ifdef USE_MB int charlen = my_mbcharlen ( charset_info , ( unsigned char ) c ) ;\n if ( ( charlen > 1 ) && ( p + charlen ) <= buf_end ) {\n int i ;\n char * mb_start = p ;\n * p ++ = c ;\n for ( i = 1 ;\n i < charlen ;\n i ++ ) {\n c = my_getc ( cur_file -> file ) ;\n if ( feof ( cur_file -> file ) ) goto found_eof ;\n * p ++ = c ;\n }\n if ( ! my_ismbchar ( charset_info , mb_start , p ) ) {\n while ( p - 1 > mb_start ) my_ungetc ( * -- p ) ;\n }\n }\n else # endif * p ++ = c ;\n }\n }\n die ( \"The input buffer is too small for this query.x\\n\" \"check your query or increase MAX_QUERY and recompile\" ) ;\n DBUG_RETURN ( 0 ) ;\n }"}
{"idx": 7333, "target": 0, "func": "void ff_h264_direct_dist_scale_factor ( H264Context * const h ) {\n const int poc = h -> cur_pic_ptr -> field_poc [ h -> picture_structure == PICT_BOTTOM_FIELD ] ;\n const int poc1 = h -> ref_list [ 1 ] [ 0 ] . poc ;\n int i , field ;\n if ( FRAME_MBAFF ) for ( field = 0 ;\n field < 2 ;\n field ++ ) {\n const int poc = h -> cur_pic_ptr -> field_poc [ field ] ;\n const int poc1 = h -> ref_list [ 1 ] [ 0 ] . field_poc [ field ] ;\n for ( i = 0 ;\n i < 2 * h -> ref_count [ 0 ] ;\n i ++ ) h -> dist_scale_factor_field [ field ] [ i ^ field ] = get_scale_factor ( h , poc , poc1 , i + 16 ) ;\n }\n for ( i = 0 ;\n i < h -> ref_count [ 0 ] ;\n i ++ ) {\n h -> dist_scale_factor [ i ] = get_scale_factor ( h , poc , poc1 , i ) ;\n }\n }"}
{"idx": 7334, "target": 1, "func": "kadm5_ret_t kadm5_delete_policy ( void * server_handle , kadm5_policy_t name ) {\n kadm5_server_handle_t handle = server_handle ;\n osa_policy_ent_t entry ;\n int ret ;\n CHECK_HANDLE ( server_handle ) ;\n krb5_clear_error_message ( handle -> context ) ;\n if ( name == ( kadm5_policy_t ) NULL ) return EINVAL ;\n if ( strlen ( name ) == 0 ) return KADM5_BAD_POLICY ;\n ret = krb5_db_get_policy ( handle -> context , name , & entry ) ;\n if ( ret == KRB5_KDB_NOENTRY ) return KADM5_UNK_POLICY ;\n else if ( ret ) return ret ;\n if ( entry -> policy_refcnt != 0 ) {\n krb5_db_free_policy ( handle -> context , entry ) ;\n return KADM5_POLICY_REF ;\n }\n krb5_db_free_policy ( handle -> context , entry ) ;\n ret = krb5_db_delete_policy ( handle -> context , name ) ;\n if ( ret == KRB5_KDB_POLICY_REF ) ret = KADM5_POLICY_REF ;\n return ( ret == 0 ) ? KADM5_OK : ret ;\n }"}
{"idx": 7335, "target": 0, "func": "static struct cgroup_process_info * lxc_cgroup_process_info_get_self ( struct cgroup_meta_data * meta ) {\n struct cgroup_process_info * i ;\n i = lxc_cgroup_process_info_getx ( \"/proc/self/cgroup\" , meta ) ;\n if ( ! i ) i = lxc_cgroup_process_info_get ( getpid ( ) , meta ) ;\n return i ;\n }"}
{"idx": 7336, "target": 0, "func": "static int vorbis_parse_setup_hdr_modes ( vorbis_context * vc ) {\n GetBitContext * gb = & vc -> gb ;\n unsigned i ;\n vc -> mode_count = get_bits ( gb , 6 ) + 1 ;\n vc -> modes = av_mallocz ( vc -> mode_count * sizeof ( * vc -> modes ) ) ;\n if ( ! vc -> modes ) return AVERROR ( ENOMEM ) ;\n av_dlog ( NULL , \" There are %d modes.\\n\" , vc -> mode_count ) ;\n for ( i = 0 ;\n i < vc -> mode_count ;\n ++ i ) {\n vorbis_mode * mode_setup = & vc -> modes [ i ] ;\n mode_setup -> blockflag = get_bits1 ( gb ) ;\n mode_setup -> windowtype = get_bits ( gb , 16 ) ;\n mode_setup -> transformtype = get_bits ( gb , 16 ) ;\n GET_VALIDATED_INDEX ( mode_setup -> mapping , 8 , vc -> mapping_count ) ;\n av_dlog ( NULL , \" %u mode: blockflag %d, windowtype %d, transformtype %d, mapping %d\\n\" , i , mode_setup -> blockflag , mode_setup -> windowtype , mode_setup -> transformtype , mode_setup -> mapping ) ;\n }\n return 0 ;\n }"}
{"idx": 7337, "target": 0, "func": "static void prob_diff_update ( const vp9_tree_index * tree , vp9_prob probs [ ] , const unsigned int counts [ ] , int n , vp9_writer * w ) {\n int i ;\n unsigned int branch_ct [ 32 ] [ 2 ] ;\n assert ( n <= 32 ) ;\n vp9_tree_probs_from_distribution ( tree , branch_ct , counts ) ;\n for ( i = 0 ;\n i < n - 1 ;\n ++ i ) vp9_cond_prob_diff_update ( w , & probs [ i ] , branch_ct [ i ] ) ;\n }"}
{"idx": 7338, "target": 0, "func": "int tls1_generate_master_secret ( SSL * s , unsigned char * out , unsigned char * p , int len ) {\n unsigned char buff [ SSL_MAX_MASTER_KEY_LENGTH ] ;\n const void * co = NULL , * so = NULL ;\n int col = 0 , sol = 0 ;\n # ifdef KSSL_DEBUG printf ( \"tls1_generate_master_secret(%p,%p, %p, %d)\\n\" , s , out , p , len ) ;\n # endif # ifdef TLSEXT_TYPE_opaque_prf_input if ( s -> s3 -> client_opaque_prf_input != NULL && s -> s3 -> server_opaque_prf_input != NULL && s -> s3 -> client_opaque_prf_input_len > 0 && s -> s3 -> client_opaque_prf_input_len == s -> s3 -> server_opaque_prf_input_len ) {\n co = s -> s3 -> client_opaque_prf_input ;\n col = s -> s3 -> server_opaque_prf_input_len ;\n so = s -> s3 -> server_opaque_prf_input ;\n sol = s -> s3 -> client_opaque_prf_input_len ;\n }\n # endif tls1_PRF ( ssl_get_algorithm2 ( s ) , TLS_MD_MASTER_SECRET_CONST , TLS_MD_MASTER_SECRET_CONST_SIZE , s -> s3 -> client_random , SSL3_RANDOM_SIZE , co , col , s -> s3 -> server_random , SSL3_RANDOM_SIZE , so , sol , p , len , s -> session -> master_key , buff , sizeof buff ) ;\n # ifdef SSL_DEBUG fprintf ( stderr , \"Premaster Secret:\\n\" ) ;\n BIO_dump_fp ( stderr , ( char * ) p , len ) ;\n fprintf ( stderr , \"Client Random:\\n\" ) ;\n BIO_dump_fp ( stderr , ( char * ) s -> s3 -> client_random , SSL3_RANDOM_SIZE ) ;\n fprintf ( stderr , \"Server Random:\\n\" ) ;\n BIO_dump_fp ( stderr , ( char * ) s -> s3 -> server_random , SSL3_RANDOM_SIZE ) ;\n fprintf ( stderr , \"Master Secret:\\n\" ) ;\n BIO_dump_fp ( stderr , ( char * ) s -> session -> master_key , SSL3_MASTER_SECRET_SIZE ) ;\n # endif # ifdef KSSL_DEBUG printf ( \"tls1_generate_master_secret() complete\\n\" ) ;\n # endif return ( SSL3_MASTER_SECRET_SIZE ) ;\n }"}
{"idx": 7339, "target": 0, "func": "static void activate_callback ( GList * files , gpointer callback_data ) {\n ActivateParameters * parameters = callback_data ;\n GList * l , * next ;\n NautilusFile * file ;\n LaunchLocation * location ;\n parameters -> files_handle = NULL ;\n for ( l = parameters -> locations ;\n l != NULL ;\n l = next ) {\n location = l -> data ;\n file = location -> file ;\n next = l -> next ;\n if ( file_was_cancelled ( file ) ) {\n launch_location_free ( location ) ;\n parameters -> locations = g_list_delete_link ( parameters -> locations , l ) ;\n continue ;\n }\n if ( file_was_not_mounted ( file ) ) {\n if ( parameters -> tried_mounting ) {\n launch_location_free ( location ) ;\n parameters -> locations = g_list_delete_link ( parameters -> locations , l ) ;\n }\n else {\n parameters -> not_mounted = g_list_prepend ( parameters -> not_mounted , nautilus_file_ref ( file ) ) ;\n }\n continue ;\n }\n }\n if ( parameters -> not_mounted != NULL ) {\n activation_mount_not_mounted ( parameters ) ;\n }\n else {\n activate_files ( parameters ) ;\n }\n }"}
{"idx": 7340, "target": 0, "func": "void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 )"}
{"idx": 7341, "target": 0, "func": "static void ImportCMYKQuantum ( const Image * image , QuantumInfo * quantum_info , const MagickSizeType number_pixels , const unsigned char * magick_restrict p , Quantum * magick_restrict q , ExceptionInfo * exception ) {\n QuantumAny range ;\n register ssize_t x ;\n unsigned int pixel ;\n if ( image -> colorspace != CMYKColorspace ) {\n ( void ) ThrowMagickException ( exception , GetMagickModule ( ) , ImageError , \"ColorSeparatedImageRequired\" , \"`%s'\" , image -> filename ) ;\n return ;\n }\n switch ( quantum_info -> depth ) {\n case 8 : {\n unsigned char pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelRed ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelGreen ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelBlue ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelBlack ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 16 : {\n unsigned short pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelRed ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGreen ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlue ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlack ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelRed ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGreen ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlue ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlack ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 32 : {\n unsigned int pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n float pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlack ( image , ClampToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelRed ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGreen ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlue ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlack ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 64 : {\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n double pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelBlack ( image , ClampToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n default : {\n range = GetQuantumRange ( quantum_info -> depth ) ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlack ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n }"}
{"idx": 7342, "target": 0, "func": "static void U_CALLCONV ucnv_UTF8FromUTF8 ( UConverterFromUnicodeArgs * pFromUArgs , UConverterToUnicodeArgs * pToUArgs , UErrorCode * pErrorCode ) {\n UConverter * utf8 ;\n const uint8_t * source , * sourceLimit ;\n uint8_t * target ;\n int32_t targetCapacity ;\n int32_t count ;\n int8_t oldToULength , toULength , toULimit ;\n UChar32 c ;\n uint8_t b , t1 , t2 ;\n utf8 = pToUArgs -> converter ;\n source = ( uint8_t * ) pToUArgs -> source ;\n sourceLimit = ( uint8_t * ) pToUArgs -> sourceLimit ;\n target = ( uint8_t * ) pFromUArgs -> target ;\n targetCapacity = ( int32_t ) ( pFromUArgs -> targetLimit - pFromUArgs -> target ) ;\n c = ( UChar32 ) utf8 -> toUnicodeStatus ;\n if ( c != 0 ) {\n toULength = oldToULength = utf8 -> toULength ;\n toULimit = ( int8_t ) utf8 -> mode ;\n }\n else {\n toULength = oldToULength = toULimit = 0 ;\n }\n count = ( int32_t ) ( sourceLimit - source ) + oldToULength ;\n if ( count < toULimit ) {\n }\n else if ( targetCapacity < toULimit ) {\n * pErrorCode = U_USING_DEFAULT_WARNING ;\n return ;\n }\n else {\n int32_t i ;\n if ( count > targetCapacity ) {\n count = targetCapacity ;\n }\n i = 0 ;\n while ( i < 3 && i < ( count - toULimit ) ) {\n b = source [ count - oldToULength - i - 1 ] ;\n if ( U8_IS_TRAIL ( b ) ) {\n ++ i ;\n }\n else {\n if ( i < U8_COUNT_TRAIL_BYTES ( b ) ) {\n count -= i + 1 ;\n }\n break ;\n }\n }\n }\n if ( c != 0 ) {\n utf8 -> toUnicodeStatus = 0 ;\n utf8 -> toULength = 0 ;\n goto moreBytes ;\n }\n while ( count > 0 ) {\n b = * source ++ ;\n if ( ( int8_t ) b >= 0 ) {\n * target ++ = b ;\n -- count ;\n continue ;\n }\n else {\n if ( b > 0xe0 ) {\n if ( ( t1 = source [ 0 ] ) >= 0x80 && ( ( b < 0xed && ( t1 <= 0xbf ) ) || ( b == 0xed && ( t1 <= 0x9f ) ) ) && ( t2 = source [ 1 ] ) >= 0x80 && t2 <= 0xbf ) {\n source += 2 ;\n * target ++ = b ;\n * target ++ = t1 ;\n * target ++ = t2 ;\n count -= 3 ;\n continue ;\n }\n }\n else if ( b < 0xe0 ) {\n if ( b >= 0xc2 && ( t1 = * source ) >= 0x80 && t1 <= 0xbf ) {\n ++ source ;\n * target ++ = b ;\n * target ++ = t1 ;\n count -= 2 ;\n continue ;\n }\n }\n else if ( b == 0xe0 ) {\n if ( ( t1 = source [ 0 ] ) >= 0xa0 && t1 <= 0xbf && ( t2 = source [ 1 ] ) >= 0x80 && t2 <= 0xbf ) {\n source += 2 ;\n * target ++ = b ;\n * target ++ = t1 ;\n * target ++ = t2 ;\n count -= 3 ;\n continue ;\n }\n }\n oldToULength = 0 ;\n toULength = 1 ;\n toULimit = U8_COUNT_TRAIL_BYTES ( b ) + 1 ;\n c = b ;\n moreBytes : while ( toULength < toULimit ) {\n if ( source < sourceLimit ) {\n b = * source ;\n if ( U8_IS_TRAIL ( b ) ) {\n ++ source ;\n ++ toULength ;\n c = ( c << 6 ) + b ;\n }\n else {\n break ;\n }\n }\n else {\n source -= ( toULength - oldToULength ) ;\n while ( oldToULength < toULength ) {\n utf8 -> toUBytes [ oldToULength ++ ] = * source ++ ;\n }\n utf8 -> toUnicodeStatus = c ;\n utf8 -> toULength = toULength ;\n utf8 -> mode = toULimit ;\n pToUArgs -> source = ( char * ) source ;\n pFromUArgs -> target = ( char * ) target ;\n return ;\n }\n }\n if ( toULength == toULimit && ( toULength == 3 || toULength == 2 ) && ( c -= utf8_offsets [ toULength ] ) >= utf8_minLegal [ toULength ] && ( c <= 0xd7ff || 0xe000 <= c ) ) {\n }\n else if ( toULength == toULimit && toULength == 4 && ( 0x10000 <= ( c -= utf8_offsets [ 4 ] ) && c <= 0x10ffff ) ) {\n }\n else {\n source -= ( toULength - oldToULength ) ;\n while ( oldToULength < toULength ) {\n utf8 -> toUBytes [ oldToULength ++ ] = * source ++ ;\n }\n utf8 -> toULength = toULength ;\n pToUArgs -> source = ( char * ) source ;\n pFromUArgs -> target = ( char * ) target ;\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n return ;\n }\n {\n int8_t i ;\n for ( i = 0 ;\n i < oldToULength ;\n ++ i ) {\n * target ++ = utf8 -> toUBytes [ i ] ;\n }\n source -= ( toULength - oldToULength ) ;\n for ( ;\n i < toULength ;\n ++ i ) {\n * target ++ = * source ++ ;\n }\n count -= toULength ;\n }\n }\n }\n if ( U_SUCCESS ( * pErrorCode ) && source < sourceLimit ) {\n if ( target == ( const uint8_t * ) pFromUArgs -> targetLimit ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n else {\n b = * source ;\n toULimit = U8_COUNT_TRAIL_BYTES ( b ) + 1 ;\n if ( toULimit > ( sourceLimit - source ) ) {\n toULength = 0 ;\n c = b ;\n for ( ;\n ;\n ) {\n utf8 -> toUBytes [ toULength ++ ] = b ;\n if ( ++ source == sourceLimit ) {\n utf8 -> toUnicodeStatus = c ;\n utf8 -> toULength = toULength ;\n utf8 -> mode = toULimit ;\n break ;\n }\n else if ( ! U8_IS_TRAIL ( b = * source ) ) {\n utf8 -> toULength = toULength ;\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n c = ( c << 6 ) + b ;\n }\n }\n else {\n * pErrorCode = U_USING_DEFAULT_WARNING ;\n }\n }\n }\n pToUArgs -> source = ( char * ) source ;\n pFromUArgs -> target = ( char * ) target ;\n }"}
{"idx": 7343, "target": 0, "func": "static int dissect_h245_T_atm_AAL5_compressed ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_atm_AAL5_compressed , T_atm_AAL5_compressed_sequence ) ;\n return offset ;\n }"}
{"idx": 7344, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( MessageCenterNotificationsTest , BasicDelegate ) {\n # if defined ( OS_WIN ) && defined ( USE_ASH ) if ( base : : CommandLine : : ForCurrentProcess ( ) -> HasSwitch ( switches : : kAshBrowserTests ) ) return ;\n # endif TestDelegate * delegate ;\n manager ( ) -> Add ( CreateTestNotification ( \"hey\" , & delegate ) , profile ( ) ) ;\n EXPECT_EQ ( \"Display_\" , delegate -> log ( ) ) ;\n manager ( ) -> CancelById ( \"hey\" , NotificationUIManager : : GetProfileID ( profile ( ) ) ) ;\n EXPECT_EQ ( \"Display_Close_programmatically_\" , delegate -> log ( ) ) ;\n delegate -> Release ( ) ;\n }"}
{"idx": 7345, "target": 0, "func": "static void mac_cleanup ( void ) {\n g_hash_table_destroy ( mac_is_sdus ) ;\n g_hash_table_destroy ( mac_is_fragments ) ;\n }"}
{"idx": 7346, "target": 0, "func": "static void fts_build_parse_content_type ( struct fts_mail_build_context * ctx , const struct message_header_line * hdr ) {\n struct rfc822_parser_context parser ;\n string_t * content_type ;\n if ( ctx -> content_type != NULL ) return ;\n rfc822_parser_init ( & parser , hdr -> full_value , hdr -> full_value_len , NULL ) ;\n rfc822_skip_lwsp ( & parser ) ;\n T_BEGIN {\n content_type = t_str_new ( 64 ) ;\n ( void ) rfc822_parse_content_type ( & parser , content_type ) ;\n ctx -> content_type = str_lcase ( i_strdup ( str_c ( content_type ) ) ) ;\n }\n T_END ;\n rfc822_parser_deinit ( & parser ) ;\n }"}
{"idx": 7347, "target": 0, "func": "static void flat_print_section_header ( WriterContext * wctx ) {\n FlatContext * flat = wctx -> priv ;\n AVBPrint * buf = & wctx -> section_pbuf [ wctx -> level ] ;\n const struct section * section = wctx -> section [ wctx -> level ] ;\n const struct section * parent_section = wctx -> level ? wctx -> section [ wctx -> level - 1 ] : NULL ;\n av_bprint_clear ( buf ) ;\n if ( ! parent_section ) return ;\n av_bprintf ( buf , \"%s\" , wctx -> section_pbuf [ wctx -> level - 1 ] . str ) ;\n if ( flat -> hierarchical || ! ( section -> flags & ( SECTION_FLAG_IS_ARRAY | SECTION_FLAG_IS_WRAPPER ) ) ) {\n av_bprintf ( buf , \"%s%s\" , wctx -> section [ wctx -> level ] -> name , flat -> sep_str ) ;\n if ( parent_section -> flags & SECTION_FLAG_IS_ARRAY ) {\n int n = parent_section -> id == SECTION_ID_PACKETS_AND_FRAMES ? wctx -> nb_section_packet_frame : wctx -> nb_item [ wctx -> level - 1 ] ;\n av_bprintf ( buf , \"%d%s\" , n , flat -> sep_str ) ;\n }\n }\n }"}
{"idx": 7348, "target": 0, "func": "static int selinux_kernel_read_file ( struct file * file , enum kernel_read_file_id id ) {\n int rc = 0 ;\n switch ( id ) {\n case READING_MODULE : rc = selinux_kernel_module_from_file ( file ) ;\n break ;\n default : break ;\n }\n return rc ;\n }"}
{"idx": 7349, "target": 0, "func": "static VALUE ossl_asn1data_initialize ( VALUE self , VALUE value , VALUE tag , VALUE tag_class ) {\n if ( ! SYMBOL_P ( tag_class ) ) ossl_raise ( eASN1Error , \"invalid tag class\" ) ;\n if ( tag_class == sym_UNIVERSAL && NUM2INT ( tag ) > 31 ) ossl_raise ( eASN1Error , \"tag number for Universal too large\" ) ;\n ossl_asn1_set_tag ( self , tag ) ;\n ossl_asn1_set_value ( self , value ) ;\n ossl_asn1_set_tag_class ( self , tag_class ) ;\n ossl_asn1_set_infinite_length ( self , Qfalse ) ;\n return self ;\n }"}
{"idx": 7350, "target": 0, "func": "int qemuMonitorJSONMigrateCancel ( qemuMonitorPtr mon ) {\n int ret ;\n virJSONValuePtr cmd = qemuMonitorJSONMakeCommand ( \"migrate_cancel\" , NULL ) ;\n virJSONValuePtr reply = NULL ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 7351, "target": 0, "func": "static void init_temporal_layer_context ( VP8_COMP * cpi , VP8_CONFIG * oxcf , const int layer , double prev_layer_framerate ) {\n LAYER_CONTEXT * lc = & cpi -> layer_context [ layer ] ;\n lc -> framerate = cpi -> output_framerate / cpi -> oxcf . rate_decimator [ layer ] ;\n lc -> target_bandwidth = cpi -> oxcf . target_bitrate [ layer ] * 1000 ;\n lc -> starting_buffer_level_in_ms = oxcf -> starting_buffer_level ;\n lc -> optimal_buffer_level_in_ms = oxcf -> optimal_buffer_level ;\n lc -> maximum_buffer_size_in_ms = oxcf -> maximum_buffer_size ;\n lc -> starting_buffer_level = rescale ( ( int ) ( oxcf -> starting_buffer_level ) , lc -> target_bandwidth , 1000 ) ;\n if ( oxcf -> optimal_buffer_level == 0 ) lc -> optimal_buffer_level = lc -> target_bandwidth / 8 ;\n else lc -> optimal_buffer_level = rescale ( ( int ) ( oxcf -> optimal_buffer_level ) , lc -> target_bandwidth , 1000 ) ;\n if ( oxcf -> maximum_buffer_size == 0 ) lc -> maximum_buffer_size = lc -> target_bandwidth / 8 ;\n else lc -> maximum_buffer_size = rescale ( ( int ) ( oxcf -> maximum_buffer_size ) , lc -> target_bandwidth , 1000 ) ;\n if ( layer > 0 ) lc -> avg_frame_size_for_layer = ( int ) ( ( cpi -> oxcf . target_bitrate [ layer ] - cpi -> oxcf . target_bitrate [ layer - 1 ] ) * 1000 / ( lc -> framerate - prev_layer_framerate ) ) ;\n lc -> active_worst_quality = cpi -> oxcf . worst_allowed_q ;\n lc -> active_best_quality = cpi -> oxcf . best_allowed_q ;\n lc -> avg_frame_qindex = cpi -> oxcf . worst_allowed_q ;\n lc -> buffer_level = lc -> starting_buffer_level ;\n lc -> bits_off_target = lc -> starting_buffer_level ;\n lc -> total_actual_bits = 0 ;\n lc -> ni_av_qi = 0 ;\n lc -> ni_tot_qi = 0 ;\n lc -> ni_frames = 0 ;\n lc -> rate_correction_factor = 1.0 ;\n lc -> key_frame_rate_correction_factor = 1.0 ;\n lc -> gf_rate_correction_factor = 1.0 ;\n lc -> inter_frame_target = 0 ;\n }"}
{"idx": 7352, "target": 1, "func": "static int evhttp_parse_request_line ( struct evhttp_request * req , char * line ) {\n char * method ;\n char * uri ;\n char * version ;\n method = strsep ( & line , \" \" ) ;\n if ( line == NULL ) return ( - 1 ) ;\n uri = strsep ( & line , \" \" ) ;\n if ( line == NULL ) return ( - 1 ) ;\n version = strsep ( & line , \" \" ) ;\n if ( line != NULL ) return ( - 1 ) ;\n if ( strcmp ( method , \"GET\" ) == 0 ) {\n req -> type = EVHTTP_REQ_GET ;\n }\n else if ( strcmp ( method , \"POST\" ) == 0 ) {\n req -> type = EVHTTP_REQ_POST ;\n }\n else if ( strcmp ( method , \"HEAD\" ) == 0 ) {\n req -> type = EVHTTP_REQ_HEAD ;\n }\n else {\n event_debug ( ( \"%s: bad method %s on request %p from %s\" , __func__ , method , req , req -> remote_host ) ) ;\n return ( - 1 ) ;\n }\n if ( strcmp ( version , \"HTTP/1.0\" ) == 0 ) {\n req -> major = 1 ;\n req -> minor = 0 ;\n }\n else if ( strcmp ( version , \"HTTP/1.1\" ) == 0 ) {\n req -> major = 1 ;\n req -> minor = 1 ;\n }\n else {\n event_debug ( ( \"%s: bad version %s on request %p from %s\" , __func__ , version , req , req -> remote_host ) ) ;\n return ( - 1 ) ;\n }\n if ( ( req -> uri = strdup ( uri ) ) == NULL ) {\n event_debug ( ( \"%s: evhttp_decode_uri\" , __func__ ) ) ;\n return ( - 1 ) ;\n }\n if ( strlen ( req -> uri ) > 0 && req -> uri [ 0 ] != '/' ) req -> flags |= EVHTTP_PROXY_REQUEST ;\n return ( 0 ) ;\n }"}
{"idx": 7353, "target": 0, "func": "static void kadmin_addmodpol_usage ( char * func ) {\n fprintf ( stderr , _ ( \"usage;\n %s [options] policy\\n\" ) , func ) ;\n fprintf ( stderr , _ ( \"\\toptions are:\\n\" ) ) ;\n fprintf ( stderr , _ ( \"\\t\\t[-maxlife time] [-minlife time] [-minlength length]\\n\" \"\\t\\t[-minclasses number] [-history number]\\n\" \"\\t\\t[-maxfailure number] [-failurecountinterval time]\\n\" \"\\t\\t[-allowedkeysalts keysalts]\\n\" ) ) ;\n fprintf ( stderr , _ ( \"\\t\\t[-lockoutduration time]\\n\" ) ) ;\n }"}
{"idx": 7354, "target": 0, "func": "static inline MagickBooleanType IsPixelInfoGray ( const PixelInfo * restrict pixel_info ) {\n if ( ( pixel_info -> colorspace != GRAYColorspace ) && ( pixel_info -> colorspace != RGBColorspace ) ) return ( MagickFalse ) ;\n if ( ( AbsolutePixelValue ( pixel_info -> red - pixel_info -> green ) < MagickEpsilon ) && ( AbsolutePixelValue ( pixel_info -> green - pixel_info -> blue ) < MagickEpsilon ) ) return ( MagickTrue ) ;\n return ( MagickFalse ) ;\n }"}
{"idx": 7355, "target": 0, "func": "static xmlLinkPtr xmlListLinkSearch ( xmlListPtr l , void * data ) {\n xmlLinkPtr lk ;\n if ( l == NULL ) return ( NULL ) ;\n lk = xmlListLowerSearch ( l , data ) ;\n if ( lk == l -> sentinel ) return NULL ;\n else {\n if ( l -> linkCompare ( lk -> data , data ) == 0 ) return lk ;\n return NULL ;\n }\n }"}
{"idx": 7356, "target": 1, "func": "static void tokenize_b ( int plane , int block , BLOCK_SIZE plane_bsize , TX_SIZE tx_size , void * arg ) {\n struct tokenize_b_args * const args = arg ;\n VP9_COMP * cpi = args -> cpi ;\n MACROBLOCKD * xd = args -> xd ;\n TOKENEXTRA * * tp = args -> tp ;\n uint8_t token_cache [ 32 * 32 ] ;\n struct macroblock_plane * p = & cpi -> mb . plane [ plane ] ;\n struct macroblockd_plane * pd = & xd -> plane [ plane ] ;\n MB_MODE_INFO * mbmi = & xd -> mi [ 0 ] -> mbmi ;\n int pt ;\n int c ;\n TOKENEXTRA * t = * tp ;\n int eob = p -> eobs [ block ] ;\n const PLANE_TYPE type = pd -> plane_type ;\n const int16_t * qcoeff = BLOCK_OFFSET ( p -> qcoeff , block ) ;\n const int segment_id = mbmi -> segment_id ;\n const int16_t * scan , * nb ;\n const scan_order * so ;\n const int ref = is_inter_block ( mbmi ) ;\n unsigned int ( * const counts ) [ COEFF_CONTEXTS ] [ ENTROPY_TOKENS ] = cpi -> coef_counts [ tx_size ] [ type ] [ ref ] ;\n vp9_prob ( * const coef_probs ) [ COEFF_CONTEXTS ] [ UNCONSTRAINED_NODES ] = cpi -> common . fc . coef_probs [ tx_size ] [ type ] [ ref ] ;\n unsigned int ( * const eob_branch ) [ COEFF_CONTEXTS ] = cpi -> common . counts . eob_branch [ tx_size ] [ type ] [ ref ] ;\n const uint8_t * const band = get_band_translate ( tx_size ) ;\n const int seg_eob = get_tx_eob ( & cpi -> common . seg , segment_id , tx_size ) ;\n int aoff , loff ;\n txfrm_block_to_raster_xy ( plane_bsize , tx_size , block , & aoff , & loff ) ;\n pt = get_entropy_context ( tx_size , pd -> above_context + aoff , pd -> left_context + loff ) ;\n so = get_scan ( xd , tx_size , type , block ) ;\n scan = so -> scan ;\n nb = so -> neighbors ;\n c = 0 ;\n while ( c < eob ) {\n int v = 0 ;\n int skip_eob = 0 ;\n v = qcoeff [ scan [ c ] ] ;\n while ( ! v ) {\n add_token_no_extra ( & t , coef_probs [ band [ c ] ] [ pt ] , ZERO_TOKEN , skip_eob , counts [ band [ c ] ] [ pt ] ) ;\n eob_branch [ band [ c ] ] [ pt ] += ! skip_eob ;\n skip_eob = 1 ;\n token_cache [ scan [ c ] ] = 0 ;\n ++ c ;\n pt = get_coef_context ( nb , token_cache , c ) ;\n v = qcoeff [ scan [ c ] ] ;\n }\n add_token ( & t , coef_probs [ band [ c ] ] [ pt ] , vp9_dct_value_tokens_ptr [ v ] . extra , ( uint8_t ) vp9_dct_value_tokens_ptr [ v ] . token , ( uint8_t ) skip_eob , counts [ band [ c ] ] [ pt ] ) ;\n eob_branch [ band [ c ] ] [ pt ] += ! skip_eob ;\n token_cache [ scan [ c ] ] = vp9_pt_energy_class [ vp9_dct_value_tokens_ptr [ v ] . token ] ;\n ++ c ;\n pt = get_coef_context ( nb , token_cache , c ) ;\n }\n if ( c < seg_eob ) {\n add_token_no_extra ( & t , coef_probs [ band [ c ] ] [ pt ] , EOB_TOKEN , 0 , counts [ band [ c ] ] [ pt ] ) ;\n ++ eob_branch [ band [ c ] ] [ pt ] ;\n }\n * tp = t ;\n vp9_set_contexts ( xd , pd , plane_bsize , tx_size , c > 0 , aoff , loff ) ;\n }"}
{"idx": 7357, "target": 0, "func": "static int connect_to_db ( char * host , char * user , char * passwd ) {\n char buff [ 20 + FN_REFLEN ] ;\n DBUG_ENTER ( \"connect_to_db\" ) ;\n verbose_msg ( \"-- Connecting to %s...\\n\" , host ? host : \"localhost\" ) ;\n mysql_init ( & mysql_connection ) ;\n if ( opt_compress ) mysql_options ( & mysql_connection , MYSQL_OPT_COMPRESS , NullS ) ;\n # ifdef HAVE_OPENSSL if ( opt_use_ssl ) mysql_ssl_set ( & mysql_connection , opt_ssl_key , opt_ssl_cert , opt_ssl_ca , opt_ssl_capath , opt_ssl_cipher ) ;\n mysql_options ( & mysql_connection , MYSQL_OPT_SSL_VERIFY_SERVER_CERT , ( char * ) & opt_ssl_verify_server_cert ) ;\n # endif if ( opt_protocol ) mysql_options ( & mysql_connection , MYSQL_OPT_PROTOCOL , ( char * ) & opt_protocol ) ;\n # ifdef HAVE_SMEM if ( shared_memory_base_name ) mysql_options ( & mysql_connection , MYSQL_SHARED_MEMORY_BASE_NAME , shared_memory_base_name ) ;\n # endif mysql_options ( & mysql_connection , MYSQL_SET_CHARSET_NAME , default_charset ) ;\n if ( opt_plugin_dir && * opt_plugin_dir ) mysql_options ( & mysql_connection , MYSQL_PLUGIN_DIR , opt_plugin_dir ) ;\n if ( opt_default_auth && * opt_default_auth ) mysql_options ( & mysql_connection , MYSQL_DEFAULT_AUTH , opt_default_auth ) ;\n mysql = & mysql_connection ;\n if ( ! mysql_real_connect ( & mysql_connection , host , user , passwd , NULL , opt_mysql_port , opt_mysql_unix_port , 0 ) ) {\n DB_error ( & mysql_connection , \"when trying to connect\" ) ;\n DBUG_RETURN ( 1 ) ;\n }\n if ( ( mysql_get_server_version ( & mysql_connection ) < 40100 ) || ( opt_compatible_mode & 3 ) ) {\n opt_set_charset = 0 ;\n server_supports_switching_charsets = FALSE ;\n }\n mysql -> reconnect = 0 ;\n my_snprintf ( buff , sizeof ( buff ) , \"/*!40100 SET @@SQL_MODE='%s' */\" , compatible_mode_normal_str ) ;\n if ( mysql_query_with_error_report ( mysql , 0 , buff ) ) DBUG_RETURN ( 1 ) ;\n if ( opt_tz_utc ) {\n my_snprintf ( buff , sizeof ( buff ) , \"/*!40103 SET TIME_ZONE='+00:00' */\" ) ;\n if ( mysql_query_with_error_report ( mysql , 0 , buff ) ) DBUG_RETURN ( 1 ) ;\n }\n DBUG_RETURN ( 0 ) ;\n }"}
{"idx": 7358, "target": 0, "func": "IN_PROC_BROWSER_TEST_P ( BrowserCloseManagerBrowserTest , TestCloseWindowDuringShutdown ) {\n ASSERT_NO_FATAL_FAILURE ( ui_test_utils : : NavigateToURL ( browsers_ [ 0 ] , embedded_test_server ( ) -> GetURL ( \"/beforeunload.html\" ) ) ) ;\n browsers_ . push_back ( CreateBrowser ( browser ( ) -> profile ( ) ) ) ;\n ASSERT_NO_FATAL_FAILURE ( ui_test_utils : : NavigateToURL ( browsers_ [ 1 ] , embedded_test_server ( ) -> GetURL ( \"/beforeunload.html\" ) ) ) ;\n PrepareForDialog ( browsers_ [ 0 ] ) ;\n PrepareForDialog ( browsers_ [ 1 ] ) ;\n RepeatedNotificationObserver cancel_observer ( chrome : : NOTIFICATION_BROWSER_CLOSE_CANCELLED , 1 ) ;\n chrome : : CloseAllBrowsersAndQuit ( ) ;\n ASSERT_FALSE ( browsers_ [ 0 ] -> ShouldCloseWindow ( ) ) ;\n ASSERT_NO_FATAL_FAILURE ( CancelClose ( ) ) ;\n cancel_observer . Wait ( ) ;\n EXPECT_FALSE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_EQ ( 1 , browsers_ [ 0 ] -> tab_strip_model ( ) -> count ( ) ) ;\n EXPECT_EQ ( 1 , browsers_ [ 1 ] -> tab_strip_model ( ) -> count ( ) ) ;\n RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , 2 ) ;\n chrome : : CloseAllBrowsersAndQuit ( ) ;\n ASSERT_FALSE ( browsers_ [ 0 ] -> ShouldCloseWindow ( ) ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n close_observer . Wait ( ) ;\n EXPECT_TRUE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_TRUE ( BrowserList : : GetInstance ( ) -> empty ( ) ) ;\n }"}
{"idx": 7359, "target": 0, "func": "void keydb_disable_caching ( KEYDB_HANDLE hd ) {\n if ( hd ) hd -> no_caching = 1 ;\n }"}
{"idx": 7360, "target": 0, "func": "virLogOutputPtr virLogParseOutput ( const char * src ) {\n virLogOutputPtr ret = NULL ;\n char * * tokens = NULL ;\n char * abspath = NULL ;\n size_t count = 0 ;\n virLogPriority prio ;\n int dest ;\n bool isSUID = virIsSUID ( ) ;\n VIR_DEBUG ( \"output=%s\" , src ) ;\n if ( ! ( tokens = virStringSplitCount ( src , \":\" , 0 , & count ) ) || count < 2 ) {\n virReportError ( VIR_ERR_INVALID_ARG , _ ( \"Malformed format for output '%s'\" ) , src ) ;\n goto cleanup ;\n }\n if ( virStrToLong_uip ( tokens [ 0 ] , NULL , 10 , & prio ) < 0 || ( prio < VIR_LOG_DEBUG ) || ( prio > VIR_LOG_ERROR ) ) {\n virReportError ( VIR_ERR_INVALID_ARG , _ ( \"Invalid priority '%s' for output '%s'\" ) , tokens [ 0 ] , src ) ;\n goto cleanup ;\n }\n if ( ( dest = virLogDestinationTypeFromString ( tokens [ 1 ] ) ) < 0 ) {\n virReportError ( VIR_ERR_INVALID_ARG , _ ( \"Invalid destination '%s' for output '%s'\" ) , tokens [ 1 ] , src ) ;\n goto cleanup ;\n }\n if ( ( ( dest == VIR_LOG_TO_STDERR || dest == VIR_LOG_TO_JOURNALD ) && count != 2 ) || ( ( dest == VIR_LOG_TO_FILE || dest == VIR_LOG_TO_SYSLOG ) && count != 3 ) ) {\n virReportError ( VIR_ERR_INVALID_ARG , _ ( \"Output '%s' does not meet the format requirements \" \"for destination type '%s'\" ) , src , tokens [ 1 ] ) ;\n goto cleanup ;\n }\n if ( isSUID && dest != VIR_LOG_TO_STDERR ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"Running with SUID permits only destination of type \" \"'stderr'\" ) ) ;\n goto cleanup ;\n }\n switch ( ( virLogDestination ) dest ) {\n case VIR_LOG_TO_STDERR : ret = virLogNewOutputToStderr ( prio ) ;\n break ;\n case VIR_LOG_TO_SYSLOG : # if HAVE_SYSLOG_H ret = virLogNewOutputToSyslog ( prio , tokens [ 2 ] ) ;\n # endif break ;\n case VIR_LOG_TO_FILE : if ( virFileAbsPath ( tokens [ 2 ] , & abspath ) < 0 ) goto cleanup ;\n ret = virLogNewOutputToFile ( prio , abspath ) ;\n VIR_FREE ( abspath ) ;\n break ;\n case VIR_LOG_TO_JOURNALD : # if USE_JOURNALD ret = virLogNewOutputToJournald ( prio ) ;\n # endif break ;\n case VIR_LOG_TO_OUTPUT_LAST : break ;\n }\n cleanup : virStringListFree ( tokens ) ;\n return ret ;\n }"}
{"idx": 7361, "target": 0, "func": "static void stroke_user_creds ( private_stroke_socket_t * this , stroke_msg_t * msg , FILE * out ) {\n pop_string ( msg , & msg -> user_creds . name ) ;\n pop_string ( msg , & msg -> user_creds . username ) ;\n pop_string ( msg , & msg -> user_creds . password ) ;\n DBG1 ( DBG_CFG , \"received stroke: user-creds '%s'\" , msg -> user_creds . name ) ;\n this -> config -> set_user_credentials ( this -> config , msg , out ) ;\n }"}
{"idx": 7362, "target": 0, "func": "static void U_CALLCONV _UTF32Open ( UConverter * cnv , UConverterLoadArgs * pArgs , UErrorCode * pErrorCode ) {\n ( void ) pArgs ;\n ( void ) pErrorCode ;\n _UTF32Reset ( cnv , UCNV_RESET_BOTH ) ;\n }"}
{"idx": 7363, "target": 0, "func": "static void tgq_idct_put_mb_dconly ( TgqContext * s , AVFrame * frame , int mb_x , int mb_y , const int8_t * dc ) {\n int linesize = frame -> linesize [ 0 ] ;\n uint8_t * dest_y = frame -> data [ 0 ] + ( mb_y * 16 * linesize ) + mb_x * 16 ;\n uint8_t * dest_cb = frame -> data [ 1 ] + ( mb_y * 8 * frame -> linesize [ 1 ] ) + mb_x * 8 ;\n uint8_t * dest_cr = frame -> data [ 2 ] + ( mb_y * 8 * frame -> linesize [ 2 ] ) + mb_x * 8 ;\n tgq_dconly ( s , dest_y , linesize , dc [ 0 ] ) ;\n tgq_dconly ( s , dest_y + 8 , linesize , dc [ 1 ] ) ;\n tgq_dconly ( s , dest_y + 8 * linesize , linesize , dc [ 2 ] ) ;\n tgq_dconly ( s , dest_y + 8 * linesize + 8 , linesize , dc [ 3 ] ) ;\n if ( ! ( s -> avctx -> flags & CODEC_FLAG_GRAY ) ) {\n tgq_dconly ( s , dest_cb , frame -> linesize [ 1 ] , dc [ 4 ] ) ;\n tgq_dconly ( s , dest_cr , frame -> linesize [ 2 ] , dc [ 5 ] ) ;\n }\n }"}
{"idx": 7364, "target": 0, "func": "static MPI gen_k ( MPI p , int small_k ) {\n MPI k = mpi_alloc_secure ( 0 ) ;\n MPI temp = mpi_alloc ( mpi_get_nlimbs ( p ) ) ;\n MPI p_1 = mpi_copy ( p ) ;\n unsigned int orig_nbits = mpi_get_nbits ( p ) ;\n unsigned int nbits ;\n unsigned int nbytes ;\n char * rndbuf = NULL ;\n if ( small_k ) {\n nbits = wiener_map ( orig_nbits ) * 3 / 2 ;\n if ( nbits >= orig_nbits ) BUG ( ) ;\n }\n else nbits = orig_nbits ;\n nbytes = ( nbits + 7 ) / 8 ;\n if ( DBG_CIPHER ) log_debug ( \"choosing a random k of %u bits\" , nbits ) ;\n mpi_sub_ui ( p_1 , p , 1 ) ;\n for ( ;\n ;\n ) {\n if ( ! rndbuf || nbits < 32 ) {\n xfree ( rndbuf ) ;\n rndbuf = get_random_bits ( nbits , 1 , 1 ) ;\n }\n else {\n char * pp = get_random_bits ( 32 , 1 , 1 ) ;\n memcpy ( rndbuf , pp , 4 ) ;\n xfree ( pp ) ;\n }\n mpi_set_buffer ( k , rndbuf , nbytes , 0 ) ;\n for ( ;\n ;\n ) {\n if ( ! ( mpi_cmp ( k , p_1 ) < 0 ) ) {\n if ( DBG_CIPHER ) progress ( '+' ) ;\n break ;\n }\n if ( ! ( mpi_cmp_ui ( k , 0 ) > 0 ) ) {\n if ( DBG_CIPHER ) progress ( '-' ) ;\n break ;\n }\n if ( mpi_gcd ( temp , k , p_1 ) ) goto found ;\n mpi_add_ui ( k , k , 1 ) ;\n if ( DBG_CIPHER ) progress ( '.' ) ;\n }\n }\n found : xfree ( rndbuf ) ;\n if ( DBG_CIPHER ) progress ( '\\n' ) ;\n mpi_free ( p_1 ) ;\n mpi_free ( temp ) ;\n return k ;\n }"}
{"idx": 7365, "target": 0, "func": "TEST_F ( ExtensionServiceSyncTest , ProcessSyncDataNewExtension ) {\n InitializeEmptyExtensionService ( ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , syncer : : SyncDataList ( ) , base : : MakeUnique < syncer : : FakeSyncChangeProcessor > ( ) , base : : MakeUnique < syncer : : SyncErrorFactoryMock > ( ) ) ;\n const base : : FilePath path = data_dir ( ) . AppendASCII ( \"good.crx\" ) ;\n const ExtensionPrefs * prefs = ExtensionPrefs : : Get ( profile ( ) ) ;\n struct TestCase {\n const char * name ;\n bool sync_enabled ;\n int sync_disable_reasons ;\n int expect_disable_reasons ;\n bool expect_permissions_granted ;\n }\n test_cases [ ] = {\n {\n \"Standard\" , true , 0 , 0 , true }\n , {\n \"Disabled\" , false , extensions : : disable_reason : : DISABLE_USER_ACTION , extensions : : disable_reason : : DISABLE_USER_ACTION , true }\n , {\n \"Legacy\" , false , - 1 , extensions : : disable_reason : : DISABLE_USER_ACTION , true }\n , {\n \"PermissionsIncrease\" , false , extensions : : disable_reason : : DISABLE_PERMISSIONS_INCREASE , extensions : : disable_reason : : DISABLE_PERMISSIONS_INCREASE , false }\n , }\n ;\n for ( const TestCase & test_case : test_cases ) {\n SCOPED_TRACE ( test_case . name ) ;\n sync_pb : : EntitySpecifics specifics ;\n sync_pb : : ExtensionSpecifics * ext_specifics = specifics . mutable_extension ( ) ;\n ext_specifics -> set_id ( good_crx ) ;\n ext_specifics -> set_version ( base : : Version ( \"1\" ) . GetString ( ) ) ;\n ext_specifics -> set_enabled ( test_case . sync_enabled ) ;\n if ( test_case . sync_disable_reasons != - 1 ) ext_specifics -> set_disable_reasons ( test_case . sync_disable_reasons ) ;\n SyncChangeList list = MakeSyncChangeList ( good_crx , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n ASSERT_TRUE ( service ( ) -> pending_extension_manager ( ) -> IsIdPending ( good_crx ) ) ;\n UpdateExtension ( good_crx , path , test_case . sync_enabled ? ENABLED : DISABLED ) ;\n EXPECT_EQ ( test_case . expect_disable_reasons , prefs -> GetDisableReasons ( good_crx ) ) ;\n std : : unique_ptr < const PermissionSet > permissions = prefs -> GetGrantedPermissions ( good_crx ) ;\n EXPECT_EQ ( test_case . expect_permissions_granted , ! permissions -> IsEmpty ( ) ) ;\n ASSERT_FALSE ( service ( ) -> pending_extension_manager ( ) -> IsIdPending ( good_crx ) ) ;\n UninstallExtension ( good_crx , false , test_case . sync_enabled ? Extension : : ENABLED : Extension : : DISABLED ) ;\n }\n }\n TEST_F ( ExtensionServiceSyncTest , ProcessSyncDataTerminatedExtension ) {\n InitializeExtensionServiceWithUpdater ( ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , syncer : : SyncDataList ( ) , base : : MakeUnique < syncer : : FakeSyncChangeProcessor > ( ) , base : : MakeUnique < syncer : : SyncErrorFactoryMock > ( ) ) ;\n InstallCRX ( data_dir ( ) . AppendASCII ( \"good.crx\" ) , INSTALL_NEW ) ;\n TerminateExtension ( good_crx ) ;\n EXPECT_TRUE ( service ( ) -> IsExtensionEnabled ( good_crx ) ) ;\n EXPECT_FALSE ( extensions : : util : : IsIncognitoEnabled ( good_crx , profile ( ) ) ) ;\n sync_pb : : EntitySpecifics specifics ;\n sync_pb : : ExtensionSpecifics * ext_specifics = specifics . mutable_extension ( ) ;\n ext_specifics -> set_id ( good_crx ) ;\n ext_specifics -> set_version ( service ( ) -> GetInstalledExtension ( good_crx ) -> version ( ) -> GetString ( ) ) ;\n ext_specifics -> set_enabled ( false ) ;\n ext_specifics -> set_incognito_enabled ( true ) ;\n SyncChangeList list = MakeSyncChangeList ( good_crx , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_FALSE ( service ( ) -> IsExtensionEnabled ( good_crx ) ) ;\n EXPECT_TRUE ( extensions : : util : : IsIncognitoEnabled ( good_crx , profile ( ) ) ) ;\n EXPECT_FALSE ( service ( ) -> pending_extension_manager ( ) -> IsIdPending ( good_crx ) ) ;\n }\n TEST_F ( ExtensionServiceSyncTest , ProcessSyncDataVersionCheck ) {\n InitializeExtensionServiceWithUpdater ( ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , syncer : : SyncDataList ( ) , base : : MakeUnique < syncer : : FakeSyncChangeProcessor > ( ) , base : : MakeUnique < syncer : : SyncErrorFactoryMock > ( ) ) ;\n InstallCRX ( data_dir ( ) . AppendASCII ( \"good.crx\" ) , INSTALL_NEW ) ;\n EXPECT_TRUE ( service ( ) -> IsExtensionEnabled ( good_crx ) ) ;\n EXPECT_FALSE ( extensions : : util : : IsIncognitoEnabled ( good_crx , profile ( ) ) ) ;\n sync_pb : : EntitySpecifics specifics ;\n sync_pb : : ExtensionSpecifics * ext_specifics = specifics . mutable_extension ( ) ;\n ext_specifics -> set_id ( good_crx ) ;\n ext_specifics -> set_enabled ( true ) ;\n const base : : Version installed_version = * service ( ) -> GetInstalledExtension ( good_crx ) -> version ( ) ;\n {\n ext_specifics -> set_version ( installed_version . GetString ( ) ) ;\n SyncChangeList list = MakeSyncChangeList ( good_crx , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_FALSE ( service ( ) -> updater ( ) -> WillCheckSoon ( ) ) ;\n syncer : : SyncDataList data = extension_sync_service ( ) -> GetAllSyncData ( syncer : : EXTENSIONS ) ;\n ASSERT_EQ ( 1u , data . size ( ) ) ;\n std : : unique_ptr < ExtensionSyncData > extension_data = ExtensionSyncData : : CreateFromSyncData ( data [ 0 ] ) ;\n ASSERT_TRUE ( extension_data ) ;\n EXPECT_EQ ( installed_version , extension_data -> version ( ) ) ;\n }\n {\n ext_specifics -> set_version ( \"0.0.0.0\" ) ;\n SyncChangeList list = MakeSyncChangeList ( good_crx , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_FALSE ( service ( ) -> updater ( ) -> WillCheckSoon ( ) ) ;\n syncer : : SyncDataList data = extension_sync_service ( ) -> GetAllSyncData ( syncer : : EXTENSIONS ) ;\n ASSERT_EQ ( 1u , data . size ( ) ) ;\n std : : unique_ptr < ExtensionSyncData > extension_data = ExtensionSyncData : : CreateFromSyncData ( data [ 0 ] ) ;\n ASSERT_TRUE ( extension_data ) ;\n EXPECT_EQ ( installed_version , extension_data -> version ( ) ) ;\n }\n {\n const base : : Version new_version ( \"9.9.9.9\" ) ;\n ext_specifics -> set_version ( new_version . GetString ( ) ) ;\n SyncChangeList list = MakeSyncChangeList ( good_crx , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_TRUE ( service ( ) -> updater ( ) -> WillCheckSoon ( ) ) ;\n syncer : : SyncDataList data = extension_sync_service ( ) -> GetAllSyncData ( syncer : : EXTENSIONS ) ;\n ASSERT_EQ ( 1u , data . size ( ) ) ;\n std : : unique_ptr < ExtensionSyncData > extension_data = ExtensionSyncData : : CreateFromSyncData ( data [ 0 ] ) ;\n ASSERT_TRUE ( extension_data ) ;\n EXPECT_EQ ( new_version , extension_data -> version ( ) ) ;\n }\n EXPECT_FALSE ( service ( ) -> pending_extension_manager ( ) -> IsIdPending ( good_crx ) ) ;\n }\n TEST_F ( ExtensionServiceSyncTest , ProcessSyncDataNotInstalled ) {\n InitializeExtensionServiceWithUpdater ( ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , syncer : : SyncDataList ( ) , base : : MakeUnique < syncer : : FakeSyncChangeProcessor > ( ) , base : : MakeUnique < syncer : : SyncErrorFactoryMock > ( ) ) ;\n sync_pb : : EntitySpecifics specifics ;\n sync_pb : : ExtensionSpecifics * ext_specifics = specifics . mutable_extension ( ) ;\n ext_specifics -> set_id ( good_crx ) ;\n ext_specifics -> set_enabled ( false ) ;\n ext_specifics -> set_incognito_enabled ( true ) ;\n ext_specifics -> set_update_url ( \"http://www.google.com/\" ) ;\n ext_specifics -> set_version ( \"1.2.3.4\" ) ;\n SyncChangeList list = MakeSyncChangeList ( good_crx , specifics , SyncChange : : ACTION_UPDATE ) ;\n EXPECT_TRUE ( service ( ) -> IsExtensionEnabled ( good_crx ) ) ;\n EXPECT_FALSE ( extensions : : util : : IsIncognitoEnabled ( good_crx , profile ( ) ) ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_TRUE ( service ( ) -> updater ( ) -> WillCheckSoon ( ) ) ;\n EXPECT_FALSE ( service ( ) -> IsExtensionEnabled ( good_crx ) ) ;\n EXPECT_TRUE ( extensions : : util : : IsIncognitoEnabled ( good_crx , profile ( ) ) ) ;\n const extensions : : PendingExtensionInfo * info ;\n EXPECT_TRUE ( ( info = service ( ) -> pending_extension_manager ( ) -> GetById ( good_crx ) ) ) ;\n EXPECT_EQ ( ext_specifics -> update_url ( ) , info -> update_url ( ) . spec ( ) ) ;\n EXPECT_TRUE ( info -> is_from_sync ( ) ) ;\n EXPECT_EQ ( Manifest : : INTERNAL , info -> install_source ( ) ) ;\n }\n TEST_F ( ExtensionServiceSyncTest , ProcessSyncDataEnableDisable ) {\n InitializeEmptyExtensionService ( ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , syncer : : SyncDataList ( ) , base : : MakeUnique < syncer : : FakeSyncChangeProcessor > ( ) , base : : MakeUnique < syncer : : SyncErrorFactoryMock > ( ) ) ;\n const ExtensionPrefs * prefs = ExtensionPrefs : : Get ( profile ( ) ) ;\n struct TestCase {\n const char * name ;\n int previous_disable_reasons ;\n bool sync_enable ;\n int sync_disable_reasons ;\n int expect_disable_reasons ;\n }\n test_cases [ ] = {\n {\n \"NopEnable\" , 0 , true , 0 , 0 }\n , {\n \"NopDisable\" , extensions : : disable_reason : : DISABLE_USER_ACTION , false , extensions : : disable_reason : : DISABLE_USER_ACTION , extensions : : disable_reason : : DISABLE_USER_ACTION }\n , {\n \"Enable\" , extensions : : disable_reason : : DISABLE_USER_ACTION , true , 0 , 0 }\n , {\n \"Disable\" , 0 , false , extensions : : disable_reason : : DISABLE_USER_ACTION , extensions : : disable_reason : : DISABLE_USER_ACTION }\n , {\n \"AddDisableReason\" , extensions : : disable_reason : : DISABLE_REMOTE_INSTALL , false , extensions : : disable_reason : : DISABLE_REMOTE_INSTALL | extensions : : disable_reason : : DISABLE_USER_ACTION , extensions : : disable_reason : : DISABLE_REMOTE_INSTALL | extensions : : disable_reason : : DISABLE_USER_ACTION }\n , {\n \"RemoveDisableReason\" , extensions : : disable_reason : : DISABLE_REMOTE_INSTALL | extensions : : disable_reason : : DISABLE_USER_ACTION , false , extensions : : disable_reason : : DISABLE_USER_ACTION , extensions : : disable_reason : : DISABLE_USER_ACTION }\n , {\n \"PreserveLocalDisableReason\" , extensions : : disable_reason : : DISABLE_RELOAD , true , 0 , extensions : : disable_reason : : DISABLE_RELOAD }\n , {\n \"PreserveOnlyLocalDisableReason\" , extensions : : disable_reason : : DISABLE_USER_ACTION | extensions : : disable_reason : : DISABLE_RELOAD , true , 0 , extensions : : disable_reason : : DISABLE_RELOAD }\n , {\n \"M44Enable\" , extensions : : disable_reason : : DISABLE_USER_ACTION , true , - 1 , 0 }\n , {\n \"M44ReEnable\" , extensions : : disable_reason : : DISABLE_USER_ACTION , true , extensions : : disable_reason : : DISABLE_USER_ACTION , 0 }\n , {\n \"M44Disable\" , 0 , false , - 1 , extensions : : disable_reason : : DISABLE_USER_ACTION }\n , {\n \"M44ReDisable\" , 0 , false , 0 , extensions : : disable_reason : : DISABLE_USER_ACTION }\n , {\n \"M44AlreadyDisabledByUser\" , extensions : : disable_reason : : DISABLE_USER_ACTION , false , - 1 , extensions : : disable_reason : : DISABLE_USER_ACTION }\n , {\n \"M44AlreadyDisabledWithOtherReason\" , extensions : : disable_reason : : DISABLE_REMOTE_INSTALL , false , - 1 , extensions : : disable_reason : : DISABLE_REMOTE_INSTALL | extensions : : disable_reason : : DISABLE_USER_ACTION }\n , }\n ;\n for ( const TestCase & test_case : test_cases ) {\n SCOPED_TRACE ( test_case . name ) ;\n std : : string id ;\n std : : string version ;\n {\n const Extension * extension = InstallCRX ( data_dir ( ) . AppendASCII ( \"good.crx\" ) , INSTALL_NEW ) ;\n ASSERT_TRUE ( extension ) ;\n id = extension -> id ( ) ;\n version = extension -> VersionString ( ) ;\n }\n ASSERT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n if ( test_case . previous_disable_reasons ) {\n service ( ) -> DisableExtension ( id , test_case . previous_disable_reasons ) ;\n ASSERT_TRUE ( registry ( ) -> disabled_extensions ( ) . Contains ( id ) ) ;\n }\n sync_pb : : EntitySpecifics specifics ;\n sync_pb : : ExtensionSpecifics * ext_specifics = specifics . mutable_extension ( ) ;\n ext_specifics -> set_id ( id ) ;\n ext_specifics -> set_enabled ( test_case . sync_enable ) ;\n ext_specifics -> set_version ( version ) ;\n if ( test_case . sync_disable_reasons != - 1 ) ext_specifics -> set_disable_reasons ( test_case . sync_disable_reasons ) ;\n SyncChangeList list = MakeSyncChangeList ( good_crx , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n const bool expect_enabled = ! test_case . expect_disable_reasons ;\n EXPECT_EQ ( expect_enabled , service ( ) -> IsExtensionEnabled ( id ) ) ;\n EXPECT_EQ ( test_case . expect_disable_reasons , prefs -> GetDisableReasons ( id ) ) ;\n UninstallExtension ( id , false , expect_enabled ? Extension : : ENABLED : Extension : : DISABLED ) ;\n }\n }\n TEST_F ( ExtensionServiceSyncTest , ProcessSyncDataDeferredEnable ) {\n base : : CommandLine : : ForCurrentProcess ( ) -> AppendSwitchASCII ( switches : : kAppsGalleryUpdateURL , \"http://localhost/autoupdate/updates.xml\" ) ;\n InitializeEmptyExtensionService ( ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , syncer : : SyncDataList ( ) , base : : MakeUnique < syncer : : FakeSyncChangeProcessor > ( ) , base : : MakeUnique < syncer : : SyncErrorFactoryMock > ( ) ) ;\n base : : FilePath base_path = data_dir ( ) . AppendASCII ( \"permissions_increase\" ) ;\n base : : FilePath pem_path = base_path . AppendASCII ( \"permissions.pem\" ) ;\n base : : FilePath path = base_path . AppendASCII ( \"v1\" ) ;\n const Extension * extension = PackAndInstallCRX ( path , pem_path , INSTALL_NEW ) ;\n ASSERT_TRUE ( extension ) ;\n ASSERT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( extension -> id ( ) ) ) ;\n std : : string id = extension -> id ( ) ;\n path = base_path . AppendASCII ( \"v2\" ) ;\n PackCRXAndUpdateExtension ( id , path , pem_path , DISABLED ) ;\n sync_pb : : EntitySpecifics specifics ;\n sync_pb : : ExtensionSpecifics * ext_specifics = specifics . mutable_extension ( ) ;\n ext_specifics -> set_id ( id ) ;\n ext_specifics -> set_version ( \"3\" ) ;\n ext_specifics -> set_enabled ( true ) ;\n ext_specifics -> set_disable_reasons ( extensions : : disable_reason : : DISABLE_NONE ) ;\n SyncChangeList list = MakeSyncChangeList ( good_crx , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_TRUE ( registry ( ) -> disabled_extensions ( ) . Contains ( id ) ) ;\n path = base_path . AppendASCII ( \"v3\" ) ;\n PackCRXAndUpdateExtension ( id , path , pem_path , ENABLED ) ;\n }\n class ExtensionServiceSyncCustomGalleryTest : public ExtensionServiceSyncTest {\n public : void SetUp ( ) override {\n ExtensionServiceSyncTest : : SetUp ( ) ;\n base : : CommandLine : : ForCurrentProcess ( ) -> AppendSwitchASCII ( switches : : kAppsGalleryUpdateURL , \"http://localhost/autoupdate/updates.xml\" ) ;\n }\n }\n ;\n TEST_F ( ExtensionServiceSyncCustomGalleryTest , ProcessSyncDataPermissionApproval ) {\n InitializeEmptyExtensionService ( ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , syncer : : SyncDataList ( ) , base : : MakeUnique < syncer : : FakeSyncChangeProcessor > ( ) , base : : MakeUnique < syncer : : SyncErrorFactoryMock > ( ) ) ;\n const base : : FilePath base_path = data_dir ( ) . AppendASCII ( \"permissions_increase\" ) ;\n const base : : FilePath pem_path = base_path . AppendASCII ( \"permissions.pem\" ) ;\n const base : : FilePath path_v1 = base_path . AppendASCII ( \"v1\" ) ;\n const base : : FilePath path_v2 = base_path . AppendASCII ( \"v2\" ) ;\n base : : ScopedTempDir crx_dir ;\n ASSERT_TRUE ( crx_dir . CreateUniqueTempDir ( ) ) ;\n const base : : FilePath crx_path_v1 = crx_dir . GetPath ( ) . AppendASCII ( \"temp1.crx\" ) ;\n PackCRX ( path_v1 , pem_path , crx_path_v1 ) ;\n const base : : FilePath crx_path_v2 = crx_dir . GetPath ( ) . AppendASCII ( \"temp2.crx\" ) ;\n PackCRX ( path_v2 , pem_path , crx_path_v2 ) ;\n const std : : string v1 ( \"1\" ) ;\n const std : : string v2 ( \"2\" ) ;\n const ExtensionPrefs * prefs = ExtensionPrefs : : Get ( profile ( ) ) ;\n struct TestCase {\n const char * name ;\n const std : : string & sync_version ;\n int sync_disable_reasons ;\n int expect_disable_reasons ;\n bool expect_permissions_granted ;\n }\n test_cases [ ] = {\n {\n \"OldVersion\" , v1 , 0 , extensions : : disable_reason : : DISABLE_PERMISSIONS_INCREASE , false }\n , {\n \"Legacy\" , v2 , - 1 , extensions : : disable_reason : : DISABLE_PERMISSIONS_INCREASE , false }\n , {\n \"GrantPermissions\" , v2 , 0 , extensions : : disable_reason : : DISABLE_NONE , true }\n , }\n ;\n for ( const TestCase & test_case : test_cases ) {\n SCOPED_TRACE ( test_case . name ) ;\n std : : string id ;\n {\n const Extension * extension = InstallCRX ( crx_path_v1 , INSTALL_NEW ) ;\n ASSERT_TRUE ( extension ) ;\n ASSERT_EQ ( v1 , extension -> VersionString ( ) ) ;\n id = extension -> id ( ) ;\n }\n ASSERT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n std : : unique_ptr < const PermissionSet > granted_permissions_v1 = prefs -> GetGrantedPermissions ( id ) ;\n UpdateExtension ( id , crx_path_v2 , DISABLED ) ;\n {\n const Extension * extension = registry ( ) -> disabled_extensions ( ) . GetByID ( id ) ;\n ASSERT_TRUE ( extension ) ;\n ASSERT_EQ ( v2 , extension -> VersionString ( ) ) ;\n }\n ASSERT_TRUE ( prefs -> HasDisableReason ( id , extensions : : disable_reason : : DISABLE_PERMISSIONS_INCREASE ) ) ;\n std : : unique_ptr < const PermissionSet > granted_permissions_v2 = prefs -> GetGrantedPermissions ( id ) ;\n ASSERT_EQ ( * granted_permissions_v1 , * granted_permissions_v2 ) ;\n sync_pb : : EntitySpecifics specifics ;\n sync_pb : : ExtensionSpecifics * ext_specifics = specifics . mutable_extension ( ) ;\n ext_specifics -> set_id ( id ) ;\n ext_specifics -> set_enabled ( true ) ;\n ext_specifics -> set_version ( test_case . sync_version ) ;\n if ( test_case . sync_disable_reasons != - 1 ) ext_specifics -> set_disable_reasons ( test_case . sync_disable_reasons ) ;\n SyncChangeList list = MakeSyncChangeList ( good_crx , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n const bool expect_enabled = ! test_case . expect_disable_reasons ;\n EXPECT_EQ ( expect_enabled , service ( ) -> IsExtensionEnabled ( id ) ) ;\n EXPECT_EQ ( test_case . expect_disable_reasons , prefs -> GetDisableReasons ( id ) ) ;\n std : : unique_ptr < const PermissionSet > granted_permissions = prefs -> GetGrantedPermissions ( id ) ;\n if ( test_case . expect_permissions_granted ) {\n std : : unique_ptr < const PermissionSet > active_permissions = prefs -> GetActivePermissions ( id ) ;\n EXPECT_EQ ( * granted_permissions , * active_permissions ) ;\n }\n else {\n EXPECT_EQ ( * granted_permissions , * granted_permissions_v1 ) ;\n }\n UninstallExtension ( id , false , expect_enabled ? Extension : : ENABLED : Extension : : DISABLED ) ;\n }\n }\n TEST_F ( ExtensionServiceSyncTest , DontSyncThemes ) {\n InitializeEmptyExtensionService ( ) ;\n ProfileSyncServiceFactory : : GetForProfile ( profile ( ) ) -> SetFirstSetupComplete ( ) ;\n extension_sync_service ( ) ;\n service ( ) -> Init ( ) ;\n ASSERT_TRUE ( service ( ) -> is_ready ( ) ) ;\n syncer : : FakeSyncChangeProcessor * processor = new syncer : : FakeSyncChangeProcessor ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , syncer : : SyncDataList ( ) , base : : WrapUnique ( processor ) , base : : WrapUnique ( new syncer : : SyncErrorFactoryMock ) ) ;\n processor -> changes ( ) . clear ( ) ;\n InstallCRX ( data_dir ( ) . AppendASCII ( \"good.crx\" ) , INSTALL_NEW ) ;\n EXPECT_EQ ( 1u , processor -> changes ( ) . size ( ) ) ;\n processor -> changes ( ) . clear ( ) ;\n InstallCRX ( data_dir ( ) . AppendASCII ( \"theme.crx\" ) , INSTALL_NEW ) ;\n content : : WindowedNotificationObserver theme_change_observer ( chrome : : NOTIFICATION_BROWSER_THEME_CHANGED , content : : Source < ThemeService > ( ThemeServiceFactory : : GetForProfile ( profile ( ) ) ) ) ;\n theme_change_observer . Wait ( ) ;\n EXPECT_TRUE ( processor -> changes ( ) . empty ( ) ) ;\n }\n # if BUILDFLAG ( ENABLE_SUPERVISED_USERS ) class ExtensionServiceTestSupervised : public ExtensionServiceSyncCustomGalleryTest , public SupervisedUserService : : Delegate {\n public : ExtensionServiceTestSupervised ( ) : field_trial_list_ ( base : : MakeUnique < base : : MockEntropyProvider > ( ) ) {\n }\n void TearDown ( ) override {\n supervised_user_service ( ) -> SetDelegate ( nullptr ) ;\n ExtensionServiceSyncCustomGalleryTest : : TearDown ( ) ;\n }\n protected : void InitSupervisedUserInitiatedExtensionInstallFeature ( bool enabled ) {\n if ( enabled ) {\n scoped_feature_list_ . InitAndEnableFeature ( supervised_users : : kSupervisedUserInitiatedExtensionInstall ) ;\n }\n }\n bool IsPendingCustodianApproval ( const std : : string & extension_id ) {\n auto function = make_scoped_refptr ( new WebstorePrivateIsPendingCustodianApprovalFunction ( ) ) ;\n std : : unique_ptr < base : : Value > result ( RunFunctionAndReturnSingleResult ( function . get ( ) , \"[\\\"\" + extension_id + \"\\\"]\" , browser_context ( ) ) ) ;\n bool copy_bool_result = false ;\n EXPECT_TRUE ( result -> GetAsBoolean ( & copy_bool_result ) ) ;\n return copy_bool_result ;\n }\n void InitServices ( bool profile_is_supervised ) {\n ExtensionServiceInitParams params = CreateDefaultInitParams ( ) ;\n params . profile_is_supervised = profile_is_supervised ;\n if ( profile_is_supervised ) {\n params . pref_file = base : : FilePath ( ) ;\n }\n InitializeExtensionService ( params ) ;\n StartSyncing ( syncer : : EXTENSIONS ) ;\n supervised_user_service ( ) -> SetDelegate ( this ) ;\n supervised_user_service ( ) -> Init ( ) ;\n }\n std : : string InstallPermissionsTestExtension ( bool by_custodian ) {\n return InstallTestExtension ( permissions_increase , dir_path ( \"1\" ) , pem_path ( ) , by_custodian ) ;\n }\n void UpdatePermissionsTestExtension ( const std : : string & id , const std : : string & version , UpdateState expected_state ) {\n UpdateTestExtension ( dir_path ( version ) , pem_path ( ) , id , version , expected_state ) ;\n }\n std : : string InstallNoPermissionsTestExtension ( bool by_custodian ) {\n base : : FilePath base_path = data_dir ( ) . AppendASCII ( \"autoupdate\" ) ;\n base : : FilePath pem_path = base_path . AppendASCII ( \"key.pem\" ) ;\n base : : FilePath dir_path = base_path . AppendASCII ( \"v1\" ) ;\n return InstallTestExtension ( autoupdate , dir_path , pem_path , by_custodian ) ;\n }\n void UpdateNoPermissionsTestExtension ( const std : : string & id , const std : : string & version , UpdateState expected_state ) {\n base : : FilePath base_path = data_dir ( ) . AppendASCII ( \"autoupdate\" ) ;\n base : : FilePath pem_path = base_path . AppendASCII ( \"key.pem\" ) ;\n base : : FilePath dir_path = base_path . AppendASCII ( \"v\" + version ) ;\n UpdateTestExtension ( dir_path , pem_path , id , version , expected_state ) ;\n }\n std : : string InstallTestExtension ( const std : : string & id , const base : : FilePath & dir_path , const base : : FilePath & pem_path , bool by_custodian ) {\n InstallState expected_state = INSTALL_WITHOUT_LOAD ;\n if ( by_custodian ) {\n extensions : : util : : SetWasInstalledByCustodian ( id , profile ( ) , true ) ;\n expected_state = INSTALL_NEW ;\n }\n const Extension * extension = PackAndInstallCRX ( dir_path , pem_path , expected_state ) ;\n EXPECT_TRUE ( extension ) ;\n EXPECT_EQ ( extension -> id ( ) , id ) ;\n if ( by_custodian ) {\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n }\n else {\n CheckDisabledForCustodianApproval ( id ) ;\n }\n EXPECT_EQ ( * extension -> version ( ) , base : : Version ( \"1\" ) ) ;\n return id ;\n }\n void UpdateTestExtension ( const base : : FilePath & dir_path , const base : : FilePath & pem_path , const std : : string & id , const std : : string & version , const UpdateState & expected_state ) {\n PackCRXAndUpdateExtension ( id , dir_path , pem_path , expected_state ) ;\n const Extension * extension = registry ( ) -> GetInstalledExtension ( id ) ;\n ASSERT_TRUE ( extension ) ;\n EXPECT_EQ ( * extension -> version ( ) , base : : Version ( version ) ) ;\n }\n void SimulateCustodianApprovalChangeViaSync ( const std : : string & extension_id , const std : : string & version , SyncChange : : SyncChangeType type ) {\n std : : string key = SupervisedUserSettingsService : : MakeSplitSettingKey ( supervised_users : : kApprovedExtensions , extension_id ) ;\n syncer : : SyncData sync_data = SupervisedUserSettingsService : : CreateSyncDataForSetting ( key , base : : Value ( version ) ) ;\n SyncChangeList list ( 1 , SyncChange ( FROM_HERE , type , sync_data ) ) ;\n SupervisedUserSettingsService * supervised_user_settings_service = SupervisedUserSettingsServiceFactory : : GetForProfile ( profile ( ) ) ;\n supervised_user_settings_service -> ProcessSyncChanges ( FROM_HERE , list ) ;\n }\n void CheckDisabledForCustodianApproval ( const std : : string & extension_id ) {\n EXPECT_TRUE ( registry ( ) -> disabled_extensions ( ) . Contains ( extension_id ) ) ;\n ExtensionPrefs * extension_prefs = ExtensionPrefs : : Get ( profile ( ) ) ;\n EXPECT_TRUE ( extension_prefs -> HasDisableReason ( extension_id , extensions : : disable_reason : : DISABLE_CUSTODIAN_APPROVAL_REQUIRED ) ) ;\n }\n SupervisedUserService * supervised_user_service ( ) {\n return SupervisedUserServiceFactory : : GetForProfile ( profile ( ) ) ;\n }\n static std : : string RequestId ( const std : : string & extension_id , const std : : string & version ) {\n return SupervisedUserService : : GetExtensionRequestId ( extension_id , base : : Version ( version ) ) ;\n }\n private : bool SetActive ( bool active ) override {\n return true ;\n }\n base : : FilePath base_path ( ) const {\n return data_dir ( ) . AppendASCII ( \"permissions_increase\" ) ;\n }\n base : : FilePath dir_path ( const std : : string & version ) const {\n return base_path ( ) . AppendASCII ( \"v\" + version ) ;\n }\n base : : FilePath pem_path ( ) const {\n return base_path ( ) . AppendASCII ( \"permissions.pem\" ) ;\n }\n base : : FieldTrialList field_trial_list_ ;\n base : : test : : ScopedFeatureList scoped_feature_list_ ;\n }\n ;\n class MockPermissionRequestCreator : public PermissionRequestCreator {\n public : MockPermissionRequestCreator ( ) {\n }\n ~ MockPermissionRequestCreator ( ) override {\n }\n bool IsEnabled ( ) const override {\n return true ;\n }\n void CreateURLAccessRequest ( const GURL & url_requested , const SuccessCallback & callback ) override {\n FAIL ( ) ;\n }\n MOCK_METHOD2 ( CreateExtensionInstallRequest , void ( const std : : string & id , const SupervisedUserService : : SuccessCallback & callback ) ) ;\n MOCK_METHOD2 ( CreateExtensionUpdateRequest , void ( const std : : string & id , const SupervisedUserService : : SuccessCallback & callback ) ) ;\n private : DISALLOW_COPY_AND_ASSIGN ( MockPermissionRequestCreator ) ;\n }\n ;\n TEST_F ( ExtensionServiceTestSupervised , InstallOnlyAllowedByCustodian ) {\n InitServices ( true ) ;\n InitSupervisedUserInitiatedExtensionInstallFeature ( false ) ;\n extensions : : util : : SetWasInstalledByCustodian ( good2048 , profile ( ) , true ) ;\n base : : FilePath path1 = data_dir ( ) . AppendASCII ( \"good.crx\" ) ;\n base : : FilePath path2 = data_dir ( ) . AppendASCII ( \"good2048.crx\" ) ;\n const Extension * extensions [ ] = {\n InstallCRX ( path1 , INSTALL_FAILED ) , InstallCRX ( path2 , INSTALL_NEW ) }\n ;\n EXPECT_FALSE ( extensions [ 0 ] ) ;\n ASSERT_TRUE ( extensions [ 1 ] ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( extensions [ 1 ] -> id ( ) ) ) ;\n EXPECT_FALSE ( IsPendingCustodianApproval ( extensions [ 1 ] -> id ( ) ) ) ;\n }\n TEST_F ( ExtensionServiceTestSupervised , DelegatedAndPreinstalledExtensionIsSUFirst ) {\n InitServices ( false ) ;\n InitSupervisedUserInitiatedExtensionInstallFeature ( false ) ;\n base : : FilePath path = data_dir ( ) . AppendASCII ( \"good.crx\" ) ;\n const Extension * extension = InstallCRX ( path , INSTALL_NEW ) ;\n std : : string id = extension -> id ( ) ;\n const std : : string version ( \"1.0.0.0\" ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n profile ( ) -> AsTestingProfile ( ) -> SetSupervisedUserId ( supervised_users : : kChildAccountSUID ) ;\n EXPECT_FALSE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n sync_pb : : EntitySpecifics specifics ;\n sync_pb : : ExtensionSpecifics * ext_specifics = specifics . mutable_extension ( ) ;\n ext_specifics -> set_id ( id ) ;\n ext_specifics -> set_enabled ( true ) ;\n ext_specifics -> set_disable_reasons ( extensions : : disable_reason : : DISABLE_NONE ) ;\n ext_specifics -> set_installed_by_custodian ( true ) ;\n ext_specifics -> set_version ( version ) ;\n SyncChangeList list = MakeSyncChangeList ( id , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n EXPECT_TRUE ( extensions : : util : : WasInstalledByCustodian ( id , profile ( ) ) ) ;\n }\n TEST_F ( ExtensionServiceTestSupervised , DelegatedAndPreinstalledExtensionSyncFirst ) {\n InitServices ( false ) ;\n InitSupervisedUserInitiatedExtensionInstallFeature ( false ) ;\n base : : FilePath path = data_dir ( ) . AppendASCII ( \"good.crx\" ) ;\n const Extension * extension = InstallCRX ( path , INSTALL_NEW ) ;\n std : : string id = extension -> id ( ) ;\n const std : : string version ( \"1.0.0.0\" ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n sync_pb : : EntitySpecifics specifics ;\n sync_pb : : ExtensionSpecifics * ext_specifics = specifics . mutable_extension ( ) ;\n ext_specifics -> set_id ( id ) ;\n ext_specifics -> set_enabled ( true ) ;\n ext_specifics -> set_disable_reasons ( extensions : : disable_reason : : DISABLE_NONE ) ;\n ext_specifics -> set_installed_by_custodian ( true ) ;\n ext_specifics -> set_version ( version ) ;\n SyncChangeList list = MakeSyncChangeList ( id , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n EXPECT_TRUE ( extensions : : util : : WasInstalledByCustodian ( id , profile ( ) ) ) ;\n }\n TEST_F ( ExtensionServiceTestSupervised , InstallAllowedByCustodianAndSupervisedUser ) {\n InitServices ( true ) ;\n InitSupervisedUserInitiatedExtensionInstallFeature ( true ) ;\n extensions : : util : : SetWasInstalledByCustodian ( good2048 , profile ( ) , true ) ;\n base : : FilePath path1 = data_dir ( ) . AppendASCII ( \"good.crx\" ) ;\n base : : FilePath path2 = data_dir ( ) . AppendASCII ( \"good2048.crx\" ) ;\n const Extension * extensions [ ] = {\n InstallCRX ( path1 , INSTALL_WITHOUT_LOAD ) , InstallCRX ( path2 , INSTALL_NEW ) }\n ;\n ASSERT_TRUE ( extensions [ 0 ] ) ;\n ASSERT_TRUE ( extensions [ 1 ] ) ;\n EXPECT_TRUE ( registry ( ) -> disabled_extensions ( ) . Contains ( extensions [ 0 ] -> id ( ) ) ) ;\n EXPECT_TRUE ( IsPendingCustodianApproval ( extensions [ 0 ] -> id ( ) ) ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( extensions [ 1 ] -> id ( ) ) ) ;\n EXPECT_FALSE ( IsPendingCustodianApproval ( extensions [ 1 ] -> id ( ) ) ) ;\n }\n TEST_F ( ExtensionServiceTestSupervised , PreinstalledExtensionWithSUInitiatedInstalls ) {\n InitServices ( false ) ;\n InitSupervisedUserInitiatedExtensionInstallFeature ( true ) ;\n base : : FilePath path = data_dir ( ) . AppendASCII ( \"good.crx\" ) ;\n const Extension * extension = InstallCRX ( path , INSTALL_NEW ) ;\n std : : string id = extension -> id ( ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n MockPermissionRequestCreator * creator = new MockPermissionRequestCreator ;\n supervised_user_service ( ) -> AddPermissionRequestCreator ( base : : WrapUnique ( creator ) ) ;\n const std : : string version ( \"1.0.0.0\" ) ;\n EXPECT_CALL ( * creator , CreateExtensionInstallRequest ( RequestId ( good_crx , version ) , testing : : _ ) ) ;\n profile ( ) -> AsTestingProfile ( ) -> SetSupervisedUserId ( supervised_users : : kChildAccountSUID ) ;\n Mock : : VerifyAndClearExpectations ( creator ) ;\n CheckDisabledForCustodianApproval ( id ) ;\n EXPECT_TRUE ( IsPendingCustodianApproval ( id ) ) ;\n }\n TEST_F ( ExtensionServiceTestSupervised , PreinstalledExtensionWithoutSUInitiatedInstalls ) {\n InitServices ( false ) ;\n InitSupervisedUserInitiatedExtensionInstallFeature ( false ) ;\n base : : FilePath path = data_dir ( ) . AppendASCII ( \"good.crx\" ) ;\n const Extension * extension = InstallCRX ( path , INSTALL_NEW ) ;\n std : : string id = extension -> id ( ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n MockPermissionRequestCreator * creator = new MockPermissionRequestCreator ;\n supervised_user_service ( ) -> AddPermissionRequestCreator ( base : : WrapUnique ( creator ) ) ;\n const std : : string version ( \"1.0.0.0\" ) ;\n EXPECT_CALL ( * creator , CreateExtensionInstallRequest ( testing : : _ , testing : : _ ) ) . Times ( 0 ) ;\n profile ( ) -> AsTestingProfile ( ) -> SetSupervisedUserId ( supervised_users : : kChildAccountSUID ) ;\n EXPECT_TRUE ( registry ( ) -> disabled_extensions ( ) . Contains ( id ) ) ;\n EXPECT_EQ ( extensions : : disable_reason : : DISABLE_BLOCKED_BY_POLICY , ExtensionPrefs : : Get ( profile ( ) ) -> GetDisableReasons ( id ) ) ;\n }\n TEST_F ( ExtensionServiceTestSupervised , ExtensionApprovalBeforeInstallation ) {\n InitServices ( true ) ;\n InitSupervisedUserInitiatedExtensionInstallFeature ( true ) ;\n MockPermissionRequestCreator * creator = new MockPermissionRequestCreator ;\n supervised_user_service ( ) -> AddPermissionRequestCreator ( base : : WrapUnique ( creator ) ) ;\n std : : string id = good_crx ;\n std : : string version ( \"1.0.0.0\" ) ;\n SimulateCustodianApprovalChangeViaSync ( id , version , SyncChange : : ACTION_ADD ) ;\n base : : FilePath path = data_dir ( ) . AppendASCII ( \"good.crx\" ) ;\n InstallCRX ( path , INSTALL_NEW ) ;\n EXPECT_CALL ( * creator , CreateExtensionInstallRequest ( testing : : _ , testing : : _ ) ) . Times ( 0 ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n EXPECT_FALSE ( IsPendingCustodianApproval ( id ) ) ;\n }\n TEST_F ( ExtensionServiceTestSupervised , UpdateWithoutPermissionIncrease ) {\n InitServices ( true ) ;\n std : : string id = InstallNoPermissionsTestExtension ( true ) ;\n std : : string version2 ( \"2\" ) ;\n UpdateNoPermissionsTestExtension ( id , version2 , ENABLED ) ;\n const Extension * extension = registry ( ) -> enabled_extensions ( ) . GetByID ( id ) ;\n ASSERT_TRUE ( extension ) ;\n EXPECT_EQ ( * extension -> version ( ) , base : : Version ( version2 ) ) ;\n EXPECT_FALSE ( IsPendingCustodianApproval ( id ) ) ;\n }\n TEST_F ( ExtensionServiceTestSupervised , UpdateWithPermissionIncreaseApprovalOldVersion ) {\n InitServices ( true ) ;\n MockPermissionRequestCreator * creator = new MockPermissionRequestCreator ;\n supervised_user_service ( ) -> AddPermissionRequestCreator ( base : : WrapUnique ( creator ) ) ;\n const std : : string version1 ( \"1\" ) ;\n const std : : string version2 ( \"2\" ) ;\n std : : string id = InstallPermissionsTestExtension ( true ) ;\n EXPECT_CALL ( * creator , CreateExtensionUpdateRequest ( RequestId ( id , version2 ) , testing : : _ ) ) ;\n UpdatePermissionsTestExtension ( id , version2 , DISABLED ) ;\n Mock : : VerifyAndClearExpectations ( creator ) ;\n EXPECT_TRUE ( IsPendingCustodianApproval ( id ) ) ;\n sync_pb : : EntitySpecifics specifics ;\n sync_pb : : ExtensionSpecifics * ext_specifics = specifics . mutable_extension ( ) ;\n ext_specifics -> set_id ( id ) ;\n ext_specifics -> set_enabled ( true ) ;\n ext_specifics -> set_disable_reasons ( extensions : : disable_reason : : DISABLE_NONE ) ;\n ext_specifics -> set_installed_by_custodian ( true ) ;\n ext_specifics -> set_version ( version1 ) ;\n EXPECT_CALL ( * creator , CreateExtensionUpdateRequest ( RequestId ( id , version2 ) , testing : : _ ) ) ;\n SyncChangeList list = MakeSyncChangeList ( id , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_FALSE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n EXPECT_FALSE ( extension_sync_service ( ) -> HasPendingReenable ( id , base : : Version ( version1 ) ) ) ;\n EXPECT_FALSE ( extension_sync_service ( ) -> HasPendingReenable ( id , base : : Version ( version2 ) ) ) ;\n Mock : : VerifyAndClearExpectations ( creator ) ;\n EXPECT_TRUE ( IsPendingCustodianApproval ( id ) ) ;\n }\n TEST_F ( ExtensionServiceTestSupervised , UpdateWithPermissionIncreaseApprovalMatchingVersion ) {\n InitServices ( true ) ;\n MockPermissionRequestCreator * creator = new MockPermissionRequestCreator ;\n supervised_user_service ( ) -> AddPermissionRequestCreator ( base : : WrapUnique ( creator ) ) ;\n std : : string id = InstallPermissionsTestExtension ( true ) ;\n const std : : string version2 ( \"2\" ) ;\n EXPECT_CALL ( * creator , CreateExtensionUpdateRequest ( RequestId ( id , version2 ) , testing : : _ ) ) ;\n UpdatePermissionsTestExtension ( id , version2 , DISABLED ) ;\n Mock : : VerifyAndClearExpectations ( creator ) ;\n EXPECT_TRUE ( IsPendingCustodianApproval ( id ) ) ;\n sync_pb : : EntitySpecifics specifics ;\n sync_pb : : ExtensionSpecifics * ext_specifics = specifics . mutable_extension ( ) ;\n ext_specifics -> set_id ( id ) ;\n ext_specifics -> set_enabled ( true ) ;\n ext_specifics -> set_disable_reasons ( extensions : : disable_reason : : DISABLE_NONE ) ;\n ext_specifics -> set_installed_by_custodian ( true ) ;\n ext_specifics -> set_version ( version2 ) ;\n SyncChangeList list = MakeSyncChangeList ( id , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n EXPECT_FALSE ( IsPendingCustodianApproval ( id ) ) ;\n }\n TEST_F ( ExtensionServiceTestSupervised , UpdateWithPermissionIncreaseApprovalNewVersion ) {\n InitServices ( true ) ;\n MockPermissionRequestCreator * creator = new MockPermissionRequestCreator ;\n supervised_user_service ( ) -> AddPermissionRequestCreator ( base : : WrapUnique ( creator ) ) ;\n std : : string id = InstallPermissionsTestExtension ( true ) ;\n const std : : string version2 ( \"2\" ) ;\n EXPECT_CALL ( * creator , CreateExtensionUpdateRequest ( RequestId ( id , version2 ) , testing : : _ ) ) ;\n UpdatePermissionsTestExtension ( id , version2 , DISABLED ) ;\n Mock : : VerifyAndClearExpectations ( creator ) ;\n const std : : string version3 ( \"3\" ) ;\n sync_pb : : EntitySpecifics specifics ;\n sync_pb : : ExtensionSpecifics * ext_specifics = specifics . mutable_extension ( ) ;\n ext_specifics -> set_id ( id ) ;\n ext_specifics -> set_enabled ( true ) ;\n ext_specifics -> set_disable_reasons ( extensions : : disable_reason : : DISABLE_NONE ) ;\n ext_specifics -> set_installed_by_custodian ( true ) ;\n ext_specifics -> set_version ( version3 ) ;\n EXPECT_CALL ( * creator , CreateExtensionUpdateRequest ( RequestId ( id , version3 ) , testing : : _ ) ) . Times ( 0 ) ;\n SyncChangeList list = MakeSyncChangeList ( id , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_FALSE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n EXPECT_TRUE ( extension_sync_service ( ) -> HasPendingReenable ( id , base : : Version ( version3 ) ) ) ;\n UpdatePermissionsTestExtension ( id , version3 , ENABLED ) ;\n }\n TEST_F ( ExtensionServiceTestSupervised , SupervisedUserInitiatedInstalls ) {\n InitSupervisedUserInitiatedExtensionInstallFeature ( true ) ;\n InitServices ( true ) ;\n MockPermissionRequestCreator * creator = new MockPermissionRequestCreator ;\n supervised_user_service ( ) -> AddPermissionRequestCreator ( base : : WrapUnique ( creator ) ) ;\n base : : FilePath path = data_dir ( ) . AppendASCII ( \"good.crx\" ) ;\n std : : string version ( \"1.0.0.0\" ) ;\n EXPECT_CALL ( * creator , CreateExtensionInstallRequest ( RequestId ( good_crx , version ) , testing : : _ ) ) ;\n const Extension * extension = InstallCRX ( path , INSTALL_WITHOUT_LOAD ) ;\n ASSERT_TRUE ( extension ) ;\n ASSERT_EQ ( extension -> id ( ) , good_crx ) ;\n EXPECT_TRUE ( registry ( ) -> disabled_extensions ( ) . Contains ( good_crx ) ) ;\n Mock : : VerifyAndClearExpectations ( creator ) ;\n EXPECT_TRUE ( IsPendingCustodianApproval ( extension -> id ( ) ) ) ;\n SimulateCustodianApprovalChangeViaSync ( good_crx , version , SyncChange : : ACTION_ADD ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( good_crx ) ) ;\n EXPECT_FALSE ( IsPendingCustodianApproval ( extension -> id ( ) ) ) ;\n SimulateCustodianApprovalChangeViaSync ( good_crx , version , SyncChange : : ACTION_DELETE ) ;\n EXPECT_TRUE ( registry ( ) -> disabled_extensions ( ) . Contains ( good_crx ) ) ;\n EXPECT_TRUE ( IsPendingCustodianApproval ( extension -> id ( ) ) ) ;\n }\n TEST_F ( ExtensionServiceTestSupervised , UpdateSUInitiatedInstallWithoutPermissionIncrease ) {\n InitSupervisedUserInitiatedExtensionInstallFeature ( true ) ;\n InitServices ( true ) ;\n std : : string id = InstallNoPermissionsTestExtension ( false ) ;\n std : : string version1 ( \"1\" ) ;\n SimulateCustodianApprovalChangeViaSync ( id , version1 , SyncChange : : ACTION_ADD ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n std : : string version2 ( \"2\" ) ;\n UpdateNoPermissionsTestExtension ( id , version2 , ENABLED ) ;\n const Extension * extension = registry ( ) -> enabled_extensions ( ) . GetByID ( id ) ;\n ASSERT_TRUE ( extension ) ;\n EXPECT_EQ ( 1 , extension -> version ( ) -> CompareTo ( base : : Version ( version1 ) ) ) ;\n std : : string approved_version ;\n PrefService * pref_service = profile ( ) -> GetPrefs ( ) ;\n const base : : DictionaryValue * approved_extensions = pref_service -> GetDictionary ( prefs : : kSupervisedUserApprovedExtensions ) ;\n approved_extensions -> GetStringWithoutPathExpansion ( id , & approved_version ) ;\n EXPECT_EQ ( base : : Version ( approved_version ) , * extension -> version ( ) ) ;\n EXPECT_FALSE ( IsPendingCustodianApproval ( id ) ) ;\n }\n TEST_F ( ExtensionServiceTestSupervised , UpdateSUInitiatedInstallWithPermissionIncrease ) {\n InitSupervisedUserInitiatedExtensionInstallFeature ( true ) ;\n InitServices ( true ) ;\n std : : string id = InstallPermissionsTestExtension ( false ) ;\n std : : string version1 ( \"1\" ) ;\n SimulateCustodianApprovalChangeViaSync ( id , version1 , SyncChange : : ACTION_ADD ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n std : : string version3 ( \"3\" ) ;\n UpdatePermissionsTestExtension ( id , version3 , DISABLED ) ;\n EXPECT_FALSE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n EXPECT_TRUE ( ExtensionPrefs : : Get ( profile ( ) ) -> HasDisableReason ( id , extensions : : disable_reason : : DISABLE_PERMISSIONS_INCREASE ) ) ;\n std : : string version2 ( \"2\" ) ;\n SimulateCustodianApprovalChangeViaSync ( id , version2 , SyncChange : : ACTION_UPDATE ) ;\n EXPECT_FALSE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n EXPECT_TRUE ( ExtensionPrefs : : Get ( profile ( ) ) -> HasDisableReason ( id , extensions : : disable_reason : : DISABLE_PERMISSIONS_INCREASE ) ) ;\n EXPECT_TRUE ( ExtensionPrefs : : Get ( profile ( ) ) -> HasDisableReason ( id , extensions : : disable_reason : : DISABLE_CUSTODIAN_APPROVAL_REQUIRED ) ) ;\n EXPECT_TRUE ( IsPendingCustodianApproval ( id ) ) ;\n SimulateCustodianApprovalChangeViaSync ( id , version3 , SyncChange : : ACTION_UPDATE ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n EXPECT_FALSE ( IsPendingCustodianApproval ( id ) ) ;\n }\n TEST_F ( ExtensionServiceTestSupervised , UpdateSUInitiatedInstallWithPermissionIncreaseApprovalArrivesFirst ) {\n InitSupervisedUserInitiatedExtensionInstallFeature ( true ) ;\n InitServices ( true ) ;\n std : : string id = InstallPermissionsTestExtension ( false ) ;\n std : : string version1 ( \"1\" ) ;\n SimulateCustodianApprovalChangeViaSync ( id , version1 , SyncChange : : ACTION_ADD ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n std : : string version2 ( \"2\" ) ;\n SimulateCustodianApprovalChangeViaSync ( id , version2 , SyncChange : : ACTION_UPDATE ) ;\n CheckDisabledForCustodianApproval ( id ) ;\n UpdatePermissionsTestExtension ( id , version2 , ENABLED ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n EXPECT_FALSE ( IsPendingCustodianApproval ( id ) ) ;\n }\n TEST_F ( ExtensionServiceSyncTest , SyncUninstallByCustodianSkipsPolicy ) {\n InitializeEmptyExtensionService ( ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , syncer : : SyncDataList ( ) , base : : MakeUnique < syncer : : FakeSyncChangeProcessor > ( ) , base : : MakeUnique < syncer : : SyncErrorFactoryMock > ( ) ) ;\n extensions : : util : : SetWasInstalledByCustodian ( good2048 , profile ( ) , true ) ;\n base : : FilePath path1 = data_dir ( ) . AppendASCII ( \"good.crx\" ) ;\n base : : FilePath path2 = data_dir ( ) . AppendASCII ( \"good2048.crx\" ) ;\n const Extension * extensions [ ] = {\n InstallCRX ( path1 , INSTALL_NEW ) , InstallCRX ( path2 , INSTALL_NEW ) }\n ;\n extensions : : TestManagementPolicyProvider provider ( extensions : : TestManagementPolicyProvider : : PROHIBIT_MODIFY_STATUS ) ;\n ExtensionSystem : : Get ( browser_context ( ) ) -> management_policy ( ) -> RegisterProvider ( & provider ) ;\n SyncChangeList list ;\n for ( size_t i = 0 ;\n i < arraysize ( extensions ) ;\n i ++ ) {\n const std : : string & id = extensions [ i ] -> id ( ) ;\n sync_pb : : EntitySpecifics specifics ;\n sync_pb : : ExtensionSpecifics * ext_specifics = specifics . mutable_extension ( ) ;\n ext_specifics -> set_id ( id ) ;\n ext_specifics -> set_version ( \"1.0\" ) ;\n ext_specifics -> set_installed_by_custodian ( extensions : : util : : WasInstalledByCustodian ( id , profile ( ) ) ) ;\n syncer : : SyncData sync_data = syncer : : SyncData : : CreateLocalData ( id , \"Name\" , specifics ) ;\n list . push_back ( SyncChange ( FROM_HERE , SyncChange : : ACTION_DELETE , sync_data ) ) ;\n }\n std : : string extension_ids [ ] = {\n extensions [ 0 ] -> id ( ) , extensions [ 1 ] -> id ( ) }\n ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( extension_ids [ 0 ] ) ) ;\n EXPECT_FALSE ( registry ( ) -> GenerateInstalledExtensionsSet ( ) -> Contains ( extension_ids [ 1 ] ) ) ;\n }\n TEST_F ( ExtensionServiceSyncTest , SyncExtensionHasAllhostsWithheld ) {\n InitializeEmptyExtensionService ( ) ;\n StartSyncing ( syncer : : EXTENSIONS ) ;\n const std : : string kName ( \"extension\" ) ;\n scoped_refptr < const Extension > extension = extensions : : ExtensionBuilder ( kName ) . SetLocation ( Manifest : : INTERNAL ) . AddPermission ( \"*://*/*\" ) . Build ( ) ;\n service ( ) -> AddExtension ( extension . get ( ) ) ;\n service ( ) -> GrantPermissionsAndEnableExtension ( extension . get ( ) ) ;\n const std : : string id = extension -> id ( ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . GetByID ( id ) ) ;\n sync_pb : : EntitySpecifics specifics ;\n sync_pb : : ExtensionSpecifics * ext_specifics = specifics . mutable_extension ( ) ;\n ext_specifics -> set_id ( id ) ;\n ext_specifics -> set_name ( kName ) ;\n ext_specifics -> set_version ( \"1.0\" ) ;\n ext_specifics -> set_all_urls_enabled ( false ) ;\n ext_specifics -> set_enabled ( true ) ;\n SyncChangeList list = MakeSyncChangeList ( id , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n const Extension * enabled_extension = registry ( ) -> enabled_extensions ( ) . GetByID ( id ) ;\n ASSERT_TRUE ( enabled_extension ) ;\n ScriptingPermissionsModifier modifier ( profile ( ) , enabled_extension ) ;\n EXPECT_FALSE ( modifier . IsAllowedOnAllUrls ( ) ) ;\n EXPECT_TRUE ( modifier . HasSetAllowedOnAllUrls ( ) ) ;\n }\n # endif TEST_F ( ExtensionServiceSyncTest , AppToExtension ) {\n InitializeEmptyExtensionService ( ) ;\n service ( ) -> Init ( ) ;\n ASSERT_TRUE ( service ( ) -> is_ready ( ) ) ;\n const Extension * v1 = InstallCRX ( data_dir ( ) . AppendASCII ( \"sync_datatypes\" ) . AppendASCII ( \"v1.crx\" ) , INSTALL_NEW ) ;\n EXPECT_TRUE ( v1 -> is_app ( ) ) ;\n EXPECT_FALSE ( v1 -> is_extension ( ) ) ;\n std : : string id = v1 -> id ( ) ;\n StatefulChangeProcessor extensions_processor ( syncer : : ModelType : : EXTENSIONS ) ;\n StatefulChangeProcessor apps_processor ( syncer : : ModelType : : APPS ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , syncer : : SyncDataList ( ) , extensions_processor . GetWrapped ( ) , base : : WrapUnique ( new syncer : : SyncErrorFactoryMock ( ) ) ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : APPS , syncer : : SyncDataList ( ) , apps_processor . GetWrapped ( ) , base : : WrapUnique ( new syncer : : SyncErrorFactoryMock ( ) ) ) ;\n EXPECT_TRUE ( extensions_processor . changes ( ) . empty ( ) ) ;\n EXPECT_TRUE ( extensions_processor . data ( ) . empty ( ) ) ;\n EXPECT_EQ ( 1u , apps_processor . data ( ) . size ( ) ) ;\n ASSERT_EQ ( 1u , apps_processor . changes ( ) . size ( ) ) ;\n const SyncChange & app_change = apps_processor . changes ( ) [ 0 ] ;\n EXPECT_EQ ( SyncChange : : ACTION_ADD , app_change . change_type ( ) ) ;\n std : : unique_ptr < ExtensionSyncData > app_data = ExtensionSyncData : : CreateFromSyncData ( app_change . sync_data ( ) ) ;\n EXPECT_TRUE ( app_data -> is_app ( ) ) ;\n EXPECT_EQ ( id , app_data -> id ( ) ) ;\n EXPECT_EQ ( * v1 -> version ( ) , app_data -> version ( ) ) ;\n const Extension * v2 = InstallCRX ( data_dir ( ) . AppendASCII ( \"sync_datatypes\" ) . AppendASCII ( \"v2.crx\" ) , INSTALL_UPDATED ) ;\n EXPECT_FALSE ( v2 -> is_app ( ) ) ;\n EXPECT_TRUE ( v2 -> is_extension ( ) ) ;\n EXPECT_EQ ( id , v2 -> id ( ) ) ;\n ASSERT_EQ ( 1u , extensions_processor . changes ( ) . size ( ) ) ;\n const SyncChange & extension_change = extensions_processor . changes ( ) [ 0 ] ;\n EXPECT_EQ ( SyncChange : : ACTION_ADD , extension_change . change_type ( ) ) ;\n std : : unique_ptr < ExtensionSyncData > extension_data = ExtensionSyncData : : CreateFromSyncData ( extension_change . sync_data ( ) ) ;\n EXPECT_FALSE ( extension_data -> is_app ( ) ) ;\n EXPECT_EQ ( id , extension_data -> id ( ) ) ;\n EXPECT_EQ ( * v2 -> version ( ) , extension_data -> version ( ) ) ;\n syncer : : SyncDataList extensions_data = extensions_processor . GetAllSyncData ( syncer : : EXTENSIONS ) ;\n syncer : : SyncDataList apps_data = apps_processor . GetAllSyncData ( syncer : : APPS ) ;\n extension_sync_service ( ) -> StopSyncing ( syncer : : EXTENSIONS ) ;\n extension_sync_service ( ) -> StopSyncing ( syncer : : APPS ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , extensions_data , extensions_processor . GetWrapped ( ) , base : : WrapUnique ( new syncer : : SyncErrorFactoryMock ( ) ) ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : APPS , apps_data , apps_processor . GetWrapped ( ) , base : : WrapUnique ( new syncer : : SyncErrorFactoryMock ( ) ) ) ;\n bool found_delete = false ;\n for ( const auto & change : apps_processor . changes ( ) ) {\n if ( change . change_type ( ) == SyncChange : : ACTION_DELETE ) {\n std : : unique_ptr < ExtensionSyncData > data = ExtensionSyncData : : CreateFromSyncChange ( change ) ;\n if ( data -> id ( ) == id ) {\n found_delete = true ;\n break ;\n }\n }\n }\n EXPECT_TRUE ( found_delete ) ;\n EXPECT_EQ ( 1u , extensions_processor . data ( ) . size ( ) ) ;\n EXPECT_TRUE ( apps_processor . data ( ) . empty ( ) ) ;\n }"}
{"idx": 7366, "target": 1, "func": "static int dissect_q931_ie_cs0 ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n dissect_q931_IEs ( tvb , pinfo , NULL , tree , FALSE , 0 , 0 ) ;\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 7367, "target": 0, "func": "TEST_F ( SyncBookmarkDataTypeControllerTest , StartBookmarkModelNotReady ) {\n CreateBookmarkModel ( DONT_LOAD_MODEL ) ;\n SetStartExpectations ( ) ;\n SetAssociateExpectations ( ) ;\n EXPECT_CALL ( start_callback_ , Run ( DataTypeController : : OK , _ , _ ) ) ;\n bookmark_dtc_ -> LoadModels ( base : : Bind ( & ModelLoadCallbackMock : : Run , base : : Unretained ( & model_load_callback_ ) ) ) ;\n EXPECT_EQ ( DataTypeController : : MODEL_STARTING , bookmark_dtc_ -> state ( ) ) ;\n TestingPrefServiceSimple prefs ;\n bookmark_model_ -> Load ( & prefs , base : : FilePath ( ) , base : : ThreadTaskRunnerHandle : : Get ( ) , base : : ThreadTaskRunnerHandle : : Get ( ) ) ;\n bookmarks : : test : : WaitForBookmarkModelToLoad ( bookmark_model_ . get ( ) ) ;\n EXPECT_EQ ( DataTypeController : : MODEL_LOADED , bookmark_dtc_ -> state ( ) ) ;\n bookmark_dtc_ -> StartAssociating ( base : : Bind ( & StartCallbackMock : : Run , base : : Unretained ( & start_callback_ ) ) ) ;\n base : : MessageLoop : : current ( ) -> RunUntilIdle ( ) ;\n EXPECT_EQ ( DataTypeController : : RUNNING , bookmark_dtc_ -> state ( ) ) ;\n }"}
{"idx": 7368, "target": 0, "func": "void bitmap_writer_set_checksum ( unsigned char * sha1 ) {\n hashcpy ( writer . pack_checksum , sha1 ) ;\n }"}
{"idx": 7369, "target": 0, "func": "int libevt_record_values_clone ( libevt_record_values_t * * destination_record_values , libevt_record_values_t * source_record_values , libcerror_error_t * * error ) {\n static char * function = \"libevt_record_values_clone\" ;\n if ( destination_record_values == NULL ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_ARGUMENTS , LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE , \"%s: invalid destination record values.\" , function ) ;\n return ( - 1 ) ;\n }\n if ( * destination_record_values != NULL ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET , \"%s: invalid destination record values value already set.\" , function ) ;\n return ( - 1 ) ;\n }\n if ( source_record_values == NULL ) {\n * destination_record_values = NULL ;\n return ( 1 ) ;\n }\n * destination_record_values = memory_allocate_structure ( libevt_record_values_t ) ;\n if ( * destination_record_values == NULL ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_MEMORY , LIBCERROR_MEMORY_ERROR_INSUFFICIENT , \"%s: unable to create destination record values.\" , function ) ;\n goto on_error ;\n }\n if ( memory_copy ( * destination_record_values , source_record_values , sizeof ( libevt_record_values_t ) ) == NULL ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_MEMORY , LIBCERROR_MEMORY_ERROR_COPY_FAILED , \"%s: unable to copy source to destination record values.\" , function ) ;\n goto on_error ;\n }\n return ( 1 ) ;\n on_error : if ( * destination_record_values != NULL ) {\n memory_free ( * destination_record_values ) ;\n * destination_record_values = NULL ;\n }\n return ( - 1 ) ;\n }"}
{"idx": 7370, "target": 0, "func": "static void pdf_run_j ( fz_context * ctx , pdf_processor * proc , int linejoin ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_gstate * gstate = pdf_flush_text ( ctx , pr ) ;\n pr -> dev -> flags &= ~ FZ_DEVFLAG_LINEJOIN_UNDEFINED ;\n gstate -> stroke_state = fz_unshare_stroke_state ( ctx , gstate -> stroke_state ) ;\n gstate -> stroke_state -> linejoin = linejoin ;\n }"}
{"idx": 7371, "target": 0, "func": "SPL_METHOD ( SplFileObject , rewind ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n spl_filesystem_file_rewind ( getThis ( ) , intern TSRMLS_CC ) ;\n }"}
{"idx": 7372, "target": 0, "func": "static int tipc_cmd_show_stats_compat ( struct tipc_nl_compat_msg * msg ) {\n msg -> rep = tipc_tlv_alloc ( ULTRA_STRING_MAX_LEN ) ;\n if ( ! msg -> rep ) return - ENOMEM ;\n tipc_tlv_init ( msg -> rep , TIPC_TLV_ULTRA_STRING ) ;\n tipc_tlv_sprintf ( msg -> rep , \"TIPC version \" TIPC_MOD_VER \"\\n\" ) ;\n return 0 ;\n }"}
{"idx": 7373, "target": 0, "func": "int udpv6_getsockopt ( struct sock * sk , int level , int optname , char __user * optval , int __user * optlen ) {\n if ( level == SOL_UDP || level == SOL_UDPLITE ) return udp_lib_getsockopt ( sk , level , optname , optval , optlen ) ;\n return ipv6_getsockopt ( sk , level , optname , optval , optlen ) ;\n }"}
{"idx": 7374, "target": 0, "func": "static char * get_duplicate_name ( const char * name , int count_increment , int max_length ) {\n char * result ;\n char * name_base ;\n const char * suffix ;\n int count ;\n parse_previous_duplicate_name ( name , & name_base , & suffix , & count ) ;\n result = make_next_duplicate_name ( name_base , suffix , count + count_increment , max_length ) ;\n g_free ( name_base ) ;\n return result ;\n }"}
{"idx": 7375, "target": 0, "func": "static int dissect_pvfs2_statfs_response ( tvbuff_t * tvb , proto_tree * tree , int offset ) {\n offset += 4 ;\n offset = dissect_pvfs_fs_id ( tvb , tree , offset ) ;\n offset = dissect_pvfs_uint64 ( tvb , tree , offset , hf_pvfs_bytes_available , NULL ) ;\n offset = dissect_pvfs_uint64 ( tvb , tree , offset , hf_pvfs_bytes_total , NULL ) ;\n offset = dissect_pvfs_uint64 ( tvb , tree , offset , hf_pvfs_ram_bytes_total , NULL ) ;\n offset = dissect_pvfs_uint64 ( tvb , tree , offset , hf_pvfs_ram_bytes_free , NULL ) ;\n offset = dissect_pvfs_uint64 ( tvb , tree , offset , hf_pvfs_load_average_1s , NULL ) ;\n offset = dissect_pvfs_uint64 ( tvb , tree , offset , hf_pvfs_load_average_5s , NULL ) ;\n offset = dissect_pvfs_uint64 ( tvb , tree , offset , hf_pvfs_load_average_15s , NULL ) ;\n offset = dissect_pvfs_uint64 ( tvb , tree , offset , hf_pvfs_uptime_seconds , NULL ) ;\n offset = dissect_pvfs_uint64 ( tvb , tree , offset , hf_pvfs_handles_available , NULL ) ;\n offset = dissect_pvfs_uint64 ( tvb , tree , offset , hf_pvfs_handles_total , NULL ) ;\n return offset ;\n }"}
{"idx": 7376, "target": 0, "func": "static void test_free_active_base ( void ) {\n struct event_base * base1 ;\n struct event ev1 ;\n setup_test ( \"Free active base: \" ) ;\n base1 = event_init ( ) ;\n event_set ( & ev1 , pair [ 1 ] , EV_READ , simple_read_cb , & ev1 ) ;\n event_base_set ( base1 , & ev1 ) ;\n event_add ( & ev1 , NULL ) ;\n event_base_free ( base1 ) ;\n test_ok = 1 ;\n cleanup_test ( ) ;\n }"}
{"idx": 7377, "target": 0, "func": "static void test_prepare_simple ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n char query [ MAX_TEST_QUERY_LENGTH ] ;\n myheader ( \"test_prepare_simple\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_prepare_simple\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_prepare_simple(\" \"id int, name varchar(50))\" ) ;\n myquery ( rc ) ;\n strmov ( query , \"INSERT INTO test_prepare_simple VALUES(?, ?)\" ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 2 ) ;\n mysql_stmt_close ( stmt ) ;\n strmov ( query , \"UPDATE test_prepare_simple SET id=? \" \"WHERE id=? AND CONVERT(name USING utf8)= ?\" ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 3 ) ;\n mysql_stmt_close ( stmt ) ;\n strmov ( query , \"DELETE FROM test_prepare_simple WHERE id=10\" ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 0 ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n mysql_stmt_close ( stmt ) ;\n strmov ( query , \"DELETE FROM test_prepare_simple WHERE id=?\" ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 1 ) ;\n mysql_stmt_close ( stmt ) ;\n strmov ( query , \"SELECT * FROM test_prepare_simple WHERE id=? \" \"AND CONVERT(name USING utf8)= ?\" ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 2 ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n }"}
{"idx": 7378, "target": 0, "func": "static void ctl_putdblf ( const char * tag , int use_f , int precision , double d ) {\n char * cp ;\n const char * cq ;\n char buffer [ 200 ] ;\n cp = buffer ;\n cq = tag ;\n while ( * cq != '\\0' ) * cp ++ = * cq ++ ;\n * cp ++ = '=' ;\n INSIST ( ( size_t ) ( cp - buffer ) < sizeof ( buffer ) ) ;\n snprintf ( cp , sizeof ( buffer ) - ( cp - buffer ) , use_f ? \"%.*f\" : \"%.*g\" , precision , d ) ;\n cp += strlen ( cp ) ;\n ctl_putdata ( buffer , ( unsigned ) ( cp - buffer ) , 0 ) ;\n }"}
{"idx": 7379, "target": 0, "func": "static cmsBool Type_ProfileSequenceDesc_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) {\n cmsSEQ * Seq = ( cmsSEQ * ) Ptr ;\n cmsUInt32Number i ;\n if ( ! _cmsWriteUInt32Number ( io , Seq -> n ) ) return FALSE ;\n for ( i = 0 ;\n i < Seq -> n ;\n i ++ ) {\n cmsPSEQDESC * sec = & Seq -> seq [ i ] ;\n if ( ! _cmsWriteUInt32Number ( io , sec -> deviceMfg ) ) return FALSE ;\n if ( ! _cmsWriteUInt32Number ( io , sec -> deviceModel ) ) return FALSE ;\n if ( ! _cmsWriteUInt64Number ( io , & sec -> attributes ) ) return FALSE ;\n if ( ! _cmsWriteUInt32Number ( io , sec -> technology ) ) return FALSE ;\n if ( ! SaveDescription ( self , io , sec -> Manufacturer ) ) return FALSE ;\n if ( ! SaveDescription ( self , io , sec -> Model ) ) return FALSE ;\n }\n return TRUE ;\n cmsUNUSED_PARAMETER ( nItems ) ;\n }"}
{"idx": 7380, "target": 0, "func": "static void CheckMakeB ( BasePoint * test , BasePoint * good ) {\n if ( ! isfinite ( test -> x ) || test -> x > 100000 || test -> x < - 100000 ) {\n LogError ( _ ( \"Value out of bounds in spline.\\n\" ) ) ;\n if ( good != NULL ) test -> x = good -> x ;\n else test -> x = 0 ;\n }\n if ( ! isfinite ( test -> y ) || test -> y > 100000 || test -> y < - 100000 ) {\n LogError ( _ ( \"Value out of bounds in spline.\\n\" ) ) ;\n if ( good != NULL ) test -> y = good -> y ;\n else test -> y = 0 ;\n }\n }"}
{"idx": 7381, "target": 0, "func": "void parseArrayEnum ( proto_tree * tree , tvbuff_t * tvb , packet_info * pinfo , gint * pOffset , const char * szFieldName , const char * szTypeName , fctEnumParser pParserFunction , const gint idx ) {\n proto_item * ti ;\n proto_tree * subtree = proto_tree_add_subtree_format ( tree , tvb , * pOffset , - 1 , idx , & ti , \"%s: Array of %s\" , szFieldName , szTypeName ) ;\n int i ;\n gint32 iLen ;\n iLen = tvb_get_letohl ( tvb , * pOffset ) ;\n proto_tree_add_item ( subtree , hf_opcua_ArraySize , tvb , * pOffset , 4 , ENC_LITTLE_ENDIAN ) ;\n if ( iLen > MAX_ARRAY_LEN ) {\n proto_tree_add_expert_format ( subtree , pinfo , & ei_array_length , tvb , * pOffset , 4 , \"Array length %d too large to process\" , iLen ) ;\n return ;\n }\n * pOffset += 4 ;\n for ( i = 0 ;\n i < iLen ;\n i ++ ) {\n ( * pParserFunction ) ( subtree , tvb , pinfo , pOffset ) ;\n }\n proto_item_set_end ( ti , tvb , * pOffset ) ;\n }"}
{"idx": 7382, "target": 0, "func": "static void test_date_date ( ) {\n int rc ;\n myheader ( \"test_date_date\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_date\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_date(c1 DATE, \\ c2 DATE, \\ c3 DATE, \\ c4 DATE)\" ) ;\n myquery ( rc ) ;\n bind_date_conv ( 3 , FALSE ) ;\n }"}
{"idx": 7383, "target": 0, "func": "void test_bitmap_walk ( struct rev_info * revs ) {\n struct object * root ;\n struct bitmap * result = NULL ;\n khiter_t pos ;\n size_t result_popcnt ;\n struct bitmap_test_data tdata ;\n if ( prepare_bitmap_git ( ) ) die ( \"failed to load bitmap indexes\" ) ;\n if ( revs -> pending . nr != 1 ) die ( \"you must specify exactly one commit to test\" ) ;\n fprintf ( stderr , \"Bitmap v%d test (%d entries loaded)\\n\" , bitmap_git . version , bitmap_git . entry_count ) ;\n root = revs -> pending . objects [ 0 ] . item ;\n pos = kh_get_sha1 ( bitmap_git . bitmaps , root -> oid . hash ) ;\n if ( pos < kh_end ( bitmap_git . bitmaps ) ) {\n struct stored_bitmap * st = kh_value ( bitmap_git . bitmaps , pos ) ;\n struct ewah_bitmap * bm = lookup_stored_bitmap ( st ) ;\n fprintf ( stderr , \"Found bitmap for %s. %d bits / %08x checksum\\n\" , oid_to_hex ( & root -> oid ) , ( int ) bm -> bit_size , ewah_checksum ( bm ) ) ;\n result = ewah_to_bitmap ( bm ) ;\n }\n if ( result == NULL ) die ( \"Commit %s doesn't have an indexed bitmap\" , oid_to_hex ( & root -> oid ) ) ;\n revs -> tag_objects = 1 ;\n revs -> tree_objects = 1 ;\n revs -> blob_objects = 1 ;\n result_popcnt = bitmap_popcount ( result ) ;\n if ( prepare_revision_walk ( revs ) ) die ( \"revision walk setup failed\" ) ;\n tdata . base = bitmap_new ( ) ;\n tdata . prg = start_progress ( \"Verifying bitmap entries\" , result_popcnt ) ;\n tdata . seen = 0 ;\n traverse_commit_list ( revs , & test_show_commit , & test_show_object , & tdata ) ;\n stop_progress ( & tdata . prg ) ;\n if ( bitmap_equals ( result , tdata . base ) ) fprintf ( stderr , \"OK!\\n\" ) ;\n else fprintf ( stderr , \"Mismatch!\\n\" ) ;\n bitmap_free ( result ) ;\n }"}
{"idx": 7384, "target": 0, "func": "static int estimate_best_b_count ( MpegEncContext * s ) {\n AVCodec * codec = avcodec_find_encoder ( s -> avctx -> codec_id ) ;\n AVCodecContext * c = avcodec_alloc_context3 ( NULL ) ;\n AVFrame input [ FF_MAX_B_FRAMES + 2 ] ;\n const int scale = s -> avctx -> brd_scale ;\n int i , j , out_size , p_lambda , b_lambda , lambda2 ;\n int64_t best_rd = INT64_MAX ;\n int best_b_count = - 1 ;\n assert ( scale >= 0 && scale <= 3 ) ;\n p_lambda = s -> last_lambda_for [ AV_PICTURE_TYPE_P ] ;\n b_lambda = s -> last_lambda_for [ AV_PICTURE_TYPE_B ] ;\n if ( ! b_lambda ) b_lambda = p_lambda ;\n lambda2 = ( b_lambda * b_lambda + ( 1 << FF_LAMBDA_SHIFT ) / 2 ) >> FF_LAMBDA_SHIFT ;\n c -> width = s -> width >> scale ;\n c -> height = s -> height >> scale ;\n c -> flags = CODEC_FLAG_QSCALE | CODEC_FLAG_PSNR | CODEC_FLAG_INPUT_PRESERVED ;\n c -> flags |= s -> avctx -> flags & CODEC_FLAG_QPEL ;\n c -> mb_decision = s -> avctx -> mb_decision ;\n c -> me_cmp = s -> avctx -> me_cmp ;\n c -> mb_cmp = s -> avctx -> mb_cmp ;\n c -> me_sub_cmp = s -> avctx -> me_sub_cmp ;\n c -> pix_fmt = AV_PIX_FMT_YUV420P ;\n c -> time_base = s -> avctx -> time_base ;\n c -> max_b_frames = s -> max_b_frames ;\n if ( avcodec_open2 ( c , codec , NULL ) < 0 ) return - 1 ;\n for ( i = 0 ;\n i < s -> max_b_frames + 2 ;\n i ++ ) {\n int ysize = c -> width * c -> height ;\n int csize = ( c -> width / 2 ) * ( c -> height / 2 ) ;\n Picture pre_input , * pre_input_ptr = i ? s -> input_picture [ i - 1 ] : s -> next_picture_ptr ;\n avcodec_get_frame_defaults ( & input [ i ] ) ;\n input [ i ] . data [ 0 ] = av_malloc ( ysize + 2 * csize ) ;\n input [ i ] . data [ 1 ] = input [ i ] . data [ 0 ] + ysize ;\n input [ i ] . data [ 2 ] = input [ i ] . data [ 1 ] + csize ;\n input [ i ] . linesize [ 0 ] = c -> width ;\n input [ i ] . linesize [ 1 ] = input [ i ] . linesize [ 2 ] = c -> width / 2 ;\n if ( pre_input_ptr && ( ! i || s -> input_picture [ i - 1 ] ) ) {\n pre_input = * pre_input_ptr ;\n if ( ! pre_input . shared && i ) {\n pre_input . f . data [ 0 ] += INPLACE_OFFSET ;\n pre_input . f . data [ 1 ] += INPLACE_OFFSET ;\n pre_input . f . data [ 2 ] += INPLACE_OFFSET ;\n }\n s -> dsp . shrink [ scale ] ( input [ i ] . data [ 0 ] , input [ i ] . linesize [ 0 ] , pre_input . f . data [ 0 ] , pre_input . f . linesize [ 0 ] , c -> width , c -> height ) ;\n s -> dsp . shrink [ scale ] ( input [ i ] . data [ 1 ] , input [ i ] . linesize [ 1 ] , pre_input . f . data [ 1 ] , pre_input . f . linesize [ 1 ] , c -> width >> 1 , c -> height >> 1 ) ;\n s -> dsp . shrink [ scale ] ( input [ i ] . data [ 2 ] , input [ i ] . linesize [ 2 ] , pre_input . f . data [ 2 ] , pre_input . f . linesize [ 2 ] , c -> width >> 1 , c -> height >> 1 ) ;\n }\n }\n for ( j = 0 ;\n j < s -> max_b_frames + 1 ;\n j ++ ) {\n int64_t rd = 0 ;\n if ( ! s -> input_picture [ j ] ) break ;\n c -> error [ 0 ] = c -> error [ 1 ] = c -> error [ 2 ] = 0 ;\n input [ 0 ] . pict_type = AV_PICTURE_TYPE_I ;\n input [ 0 ] . quality = 1 * FF_QP2LAMBDA ;\n out_size = encode_frame ( c , & input [ 0 ] ) ;\n for ( i = 0 ;\n i < s -> max_b_frames + 1 ;\n i ++ ) {\n int is_p = i % ( j + 1 ) == j || i == s -> max_b_frames ;\n input [ i + 1 ] . pict_type = is_p ? AV_PICTURE_TYPE_P : AV_PICTURE_TYPE_B ;\n input [ i + 1 ] . quality = is_p ? p_lambda : b_lambda ;\n out_size = encode_frame ( c , & input [ i + 1 ] ) ;\n rd += ( out_size * lambda2 ) >> ( FF_LAMBDA_SHIFT - 3 ) ;\n }\n while ( out_size ) {\n out_size = encode_frame ( c , NULL ) ;\n rd += ( out_size * lambda2 ) >> ( FF_LAMBDA_SHIFT - 3 ) ;\n }\n rd += c -> error [ 0 ] + c -> error [ 1 ] + c -> error [ 2 ] ;\n if ( rd < best_rd ) {\n best_rd = rd ;\n best_b_count = j ;\n }\n }\n avcodec_close ( c ) ;\n av_freep ( & c ) ;\n for ( i = 0 ;\n i < s -> max_b_frames + 2 ;\n i ++ ) {\n av_freep ( & input [ i ] . data [ 0 ] ) ;\n }\n return best_b_count ;\n }"}
{"idx": 7385, "target": 0, "func": "static __inline__ int TLV_SET ( void * tlv , __u16 type , void * data , __u16 len ) {\n struct tlv_desc * tlv_ptr ;\n int tlv_len ;\n tlv_len = TLV_LENGTH ( len ) ;\n tlv_ptr = ( struct tlv_desc * ) tlv ;\n tlv_ptr -> tlv_type = htons ( type ) ;\n tlv_ptr -> tlv_len = htons ( tlv_len ) ;\n if ( len && data ) {\n memcpy ( TLV_DATA ( tlv_ptr ) , data , len ) ;\n memset ( TLV_DATA ( tlv_ptr ) + len , 0 , TLV_SPACE ( len ) - tlv_len ) ;\n }\n return TLV_SPACE ( len ) ;\n }"}
{"idx": 7386, "target": 0, "func": "static const UChar * fetchErrorName ( UErrorCode err ) {\n if ( ! gInfoMessages ) {\n gInfoMessages = ( UChar * * ) malloc ( ( U_ERROR_WARNING_LIMIT - U_ERROR_WARNING_START ) * sizeof ( UChar * ) ) ;\n memset ( gInfoMessages , 0 , ( U_ERROR_WARNING_LIMIT - U_ERROR_WARNING_START ) * sizeof ( UChar * ) ) ;\n }\n if ( ! gErrMessages ) {\n gErrMessages = ( UChar * * ) malloc ( U_ERROR_LIMIT * sizeof ( UChar * ) ) ;\n memset ( gErrMessages , 0 , U_ERROR_LIMIT * sizeof ( UChar * ) ) ;\n }\n if ( err >= 0 ) return gErrMessages [ err ] ;\n else return gInfoMessages [ err - U_ERROR_WARNING_START ] ;\n }"}
{"idx": 7387, "target": 0, "func": "static void eval_lpcenv ( TwinContext * tctx , const float * cos_vals , float * lpc ) {\n int i ;\n const ModeTab * mtab = tctx -> mtab ;\n int size_s = mtab -> size / mtab -> fmode [ FT_SHORT ] . sub ;\n for ( i = 0 ;\n i < size_s / 2 ;\n i ++ ) {\n float cos_i = tctx -> cos_tabs [ 0 ] [ i ] ;\n lpc [ i ] = eval_lpc_spectrum ( cos_vals , cos_i , mtab -> n_lsp ) ;\n lpc [ size_s - i - 1 ] = eval_lpc_spectrum ( cos_vals , - cos_i , mtab -> n_lsp ) ;\n }\n }"}
{"idx": 7388, "target": 0, "func": "static cmsBool Type_NamedColor_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) {\n cmsNAMEDCOLORLIST * NamedColorList = ( cmsNAMEDCOLORLIST * ) Ptr ;\n char prefix [ 33 ] ;\n char suffix [ 33 ] ;\n int i , nColors ;\n nColors = cmsNamedColorCount ( NamedColorList ) ;\n if ( ! _cmsWriteUInt32Number ( io , 0 ) ) return FALSE ;\n if ( ! _cmsWriteUInt32Number ( io , nColors ) ) return FALSE ;\n if ( ! _cmsWriteUInt32Number ( io , NamedColorList -> ColorantCount ) ) return FALSE ;\n strncpy ( prefix , ( const char * ) NamedColorList -> Prefix , 32 ) ;\n strncpy ( suffix , ( const char * ) NamedColorList -> Suffix , 32 ) ;\n suffix [ 32 ] = prefix [ 32 ] = 0 ;\n if ( ! io -> Write ( io , 32 , prefix ) ) return FALSE ;\n if ( ! io -> Write ( io , 32 , suffix ) ) return FALSE ;\n for ( i = 0 ;\n i < nColors ;\n i ++ ) {\n cmsUInt16Number PCS [ 3 ] ;\n cmsUInt16Number Colorant [ cmsMAXCHANNELS ] ;\n char Root [ 33 ] ;\n if ( ! cmsNamedColorInfo ( NamedColorList , i , Root , NULL , NULL , PCS , Colorant ) ) return 0 ;\n Root [ 32 ] = 0 ;\n if ( ! io -> Write ( io , 32 , Root ) ) return FALSE ;\n if ( ! _cmsWriteUInt16Array ( io , 3 , PCS ) ) return FALSE ;\n if ( ! _cmsWriteUInt16Array ( io , NamedColorList -> ColorantCount , Colorant ) ) return FALSE ;\n }\n return TRUE ;\n cmsUNUSED_PARAMETER ( nItems ) ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 7389, "target": 0, "func": "static char * f ( const char * format , ... ) {\n va_list va ;\n char * res ;\n va_start ( va , format ) ;\n res = eel_strdup_vprintf_with_custom ( handlers , format , va ) ;\n va_end ( va ) ;\n return res ;\n }"}
{"idx": 7390, "target": 0, "func": "int vp9_decode_block_tokens ( VP9_COMMON * cm , MACROBLOCKD * xd , int plane , int block , BLOCK_SIZE plane_bsize , int x , int y , TX_SIZE tx_size , vp9_reader * r ) {\n struct macroblockd_plane * const pd = & xd -> plane [ plane ] ;\n const int ctx = get_entropy_context ( tx_size , pd -> above_context + x , pd -> left_context + y ) ;\n const scan_order * so = get_scan ( xd , tx_size , pd -> plane_type , block ) ;\n const int eob = decode_coefs ( cm , xd , pd -> plane_type , BLOCK_OFFSET ( pd -> dqcoeff , block ) , tx_size , pd -> dequant , ctx , so -> scan , so -> neighbors , r ) ;\n vp9_set_contexts ( xd , pd , plane_bsize , tx_size , eob > 0 , x , y ) ;\n return eob ;\n }"}
{"idx": 7391, "target": 0, "func": "static int dissect_h245_MultiplexFormat ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_MultiplexFormat , MultiplexFormat_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 7392, "target": 0, "func": "static void reduce_dependencies ( ArchiveHandle * AH , TocEntry * te , TocEntry * ready_list ) {\n int i ;\n ahlog ( AH , 2 , \"reducing dependencies for %d\\n\" , te -> dumpId ) ;\n for ( i = 0 ;\n i < te -> nRevDeps ;\n i ++ ) {\n TocEntry * otherte = AH -> tocsByDumpId [ te -> revDeps [ i ] ] ;\n otherte -> depCount -- ;\n if ( otherte -> depCount == 0 && otherte -> par_prev != NULL ) {\n par_list_remove ( otherte ) ;\n par_list_append ( ready_list , otherte ) ;\n }\n }\n }"}
{"idx": 7393, "target": 1, "func": "hb_shape_plan_t * hb_shape_plan_create_cached ( hb_face_t * face , const hb_segment_properties_t * props , const hb_feature_t * user_features , unsigned int num_user_features , const char * const * shaper_list ) {\n DEBUG_MSG_FUNC ( SHAPE_PLAN , NULL , \"face=%p num_features=%d shaper_list=%p\" , face , num_user_features , shaper_list ) ;\n hb_shape_plan_proposal_t proposal = {\n * props , shaper_list , user_features , num_user_features , NULL }\n ;\n if ( shaper_list ) {\n for ( const char * const * shaper_item = shaper_list ;\n * shaper_item ;\n shaper_item ++ ) if ( 0 ) ;\n # define HB_SHAPER_IMPLEMENT ( shaper ) else if ( 0 == strcmp ( * shaper_item , # shaper ) && hb_ ## shaper ## _shaper_face_data_ensure ( face ) ) {\n proposal . shaper_func = _hb_ ## shaper ## _shape ;\n break ;\n }\n # include \"hb-shaper-list.hh\" # undef HB_SHAPER_IMPLEMENT if ( unlikely ( ! proposal . shaper_func ) ) return hb_shape_plan_get_empty ( ) ;\n }\n retry : hb_face_t : : plan_node_t * cached_plan_nodes = ( hb_face_t : : plan_node_t * ) hb_atomic_ptr_get ( & face -> shape_plans ) ;\n for ( hb_face_t : : plan_node_t * node = cached_plan_nodes ;\n node ;\n node = node -> next ) if ( hb_shape_plan_matches ( node -> shape_plan , & proposal ) ) {\n DEBUG_MSG_FUNC ( SHAPE_PLAN , node -> shape_plan , \"fulfilled from cache\" ) ;\n return hb_shape_plan_reference ( node -> shape_plan ) ;\n }\n hb_shape_plan_t * shape_plan = hb_shape_plan_create ( face , props , user_features , num_user_features , shaper_list ) ;\n if ( hb_non_global_user_features_present ( user_features , num_user_features ) ) return shape_plan ;\n hb_face_t : : plan_node_t * node = ( hb_face_t : : plan_node_t * ) calloc ( 1 , sizeof ( hb_face_t : : plan_node_t ) ) ;\n if ( unlikely ( ! node ) ) return shape_plan ;\n node -> shape_plan = shape_plan ;\n node -> next = cached_plan_nodes ;\n if ( ! hb_atomic_ptr_cmpexch ( & face -> shape_plans , cached_plan_nodes , node ) ) {\n hb_shape_plan_destroy ( shape_plan ) ;\n free ( node ) ;\n goto retry ;\n }\n DEBUG_MSG_FUNC ( SHAPE_PLAN , shape_plan , \"inserted into cache\" ) ;\n return hb_shape_plan_reference ( shape_plan ) ;\n }"}
{"idx": 7394, "target": 0, "func": "static void variance_neon_w8 ( const uint8_t * a , int a_stride , const uint8_t * b , int b_stride , int w , int h , unsigned int * sse , int * sum ) {\n int i , j ;\n int16x8_t v_sum = vdupq_n_s16 ( 0 ) ;\n int32x4_t v_sse_lo = vdupq_n_s32 ( 0 ) ;\n int32x4_t v_sse_hi = vdupq_n_s32 ( 0 ) ;\n for ( i = 0 ;\n i < h ;\n ++ i ) {\n for ( j = 0 ;\n j < w ;\n j += 8 ) {\n const uint8x8_t v_a = vld1_u8 ( & a [ j ] ) ;\n const uint8x8_t v_b = vld1_u8 ( & b [ j ] ) ;\n const uint16x8_t v_diff = vsubl_u8 ( v_a , v_b ) ;\n const int16x8_t sv_diff = vreinterpretq_s16_u16 ( v_diff ) ;\n v_sum = vaddq_s16 ( v_sum , sv_diff ) ;\n v_sse_lo = vmlal_s16 ( v_sse_lo , vget_low_s16 ( sv_diff ) , vget_low_s16 ( sv_diff ) ) ;\n v_sse_hi = vmlal_s16 ( v_sse_hi , vget_high_s16 ( sv_diff ) , vget_high_s16 ( sv_diff ) ) ;\n }\n a += a_stride ;\n b += b_stride ;\n }\n * sum = horizontal_add_s16x8 ( v_sum ) ;\n * sse = ( unsigned int ) horizontal_add_s32x4 ( vaddq_s32 ( v_sse_lo , v_sse_hi ) ) ;\n }"}
{"idx": 7395, "target": 0, "func": "static guint find_tail ( body_parts * * body_parts_array , guint16 tsn ) {\n guint length = 0 ;\n for ( tsn = ( tsn + 1 ) % MAX_TSN ;\n body_parts_array [ tsn ] -> middle != NULL ;\n tsn = ( tsn + 1 ) % MAX_TSN ) length += body_parts_array [ tsn ] -> middle -> length ;\n if ( body_parts_array [ tsn ] -> tail != NULL ) return length + body_parts_array [ tsn ] -> tail -> length ;\n return 0 ;\n }"}
{"idx": 7396, "target": 0, "func": "static int ipvideo_decode_block_opcode_0xA_16 ( IpvideoContext * s , AVFrame * frame ) {\n int x , y ;\n uint16_t P [ 8 ] ;\n int flags = 0 ;\n uint16_t * pixel_ptr = ( uint16_t * ) s -> pixel_ptr ;\n for ( x = 0 ;\n x < 4 ;\n x ++ ) P [ x ] = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n if ( ! ( P [ 0 ] & 0x8000 ) ) {\n for ( y = 0 ;\n y < 16 ;\n y ++ ) {\n if ( ! ( y & 3 ) ) {\n if ( y ) for ( x = 0 ;\n x < 4 ;\n x ++ ) P [ x ] = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n flags = bytestream2_get_le32 ( & s -> stream_ptr ) ;\n }\n for ( x = 0 ;\n x < 4 ;\n x ++ , flags >>= 2 ) * pixel_ptr ++ = P [ flags & 0x03 ] ;\n pixel_ptr += s -> stride - 4 ;\n if ( y == 7 ) pixel_ptr -= 8 * s -> stride - 4 ;\n }\n }\n else {\n int vert ;\n uint64_t flags = bytestream2_get_le64 ( & s -> stream_ptr ) ;\n for ( x = 4 ;\n x < 8 ;\n x ++ ) P [ x ] = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n vert = ! ( P [ 4 ] & 0x8000 ) ;\n for ( y = 0 ;\n y < 16 ;\n y ++ ) {\n for ( x = 0 ;\n x < 4 ;\n x ++ , flags >>= 2 ) * pixel_ptr ++ = P [ flags & 0x03 ] ;\n if ( vert ) {\n pixel_ptr += s -> stride - 4 ;\n if ( y == 7 ) pixel_ptr -= 8 * s -> stride - 4 ;\n }\n else if ( y & 1 ) pixel_ptr += s -> line_inc ;\n if ( y == 7 ) {\n memcpy ( P , P + 4 , 8 ) ;\n flags = bytestream2_get_le64 ( & s -> stream_ptr ) ;\n }\n }\n }\n return 0 ;\n }"}
{"idx": 7397, "target": 0, "func": "extern int as_mysql_cluster_tres ( mysql_conn_t * mysql_conn , char * cluster_nodes , char * * tres_str_in , time_t event_time ) {\n char * query ;\n int rc = SLURM_SUCCESS ;\n int first = 0 ;\n MYSQL_RES * result = NULL ;\n MYSQL_ROW row ;\n xassert ( tres_str_in ) ;\n if ( check_connection ( mysql_conn ) != SLURM_SUCCESS ) return ESLURM_DB_CONNECTION ;\n if ( ! mysql_conn -> cluster_name ) {\n error ( \"%s:%d no cluster name\" , THIS_FILE , __LINE__ ) ;\n return SLURM_ERROR ;\n }\n query = xstrdup_printf ( \"select tres, cluster_nodes from \\\"%s_%s\\\" where \" \"time_end=0 and node_name='' and state=0 limit 1\" , mysql_conn -> cluster_name , event_table ) ;\n if ( ! ( result = mysql_db_query_ret ( mysql_conn , query , 0 ) ) ) {\n xfree ( query ) ;\n if ( mysql_errno ( mysql_conn -> db_conn ) == ER_NO_SUCH_TABLE ) rc = ESLURM_ACCESS_DENIED ;\n else rc = SLURM_ERROR ;\n return rc ;\n }\n xfree ( query ) ;\n if ( ! ( row = mysql_fetch_row ( result ) ) ) {\n debug ( \"We don't have an entry for this machine %s \" \"most likely a first time running.\" , mysql_conn -> cluster_name ) ;\n if ( ! * tres_str_in ) {\n rc = 0 ;\n goto end_it ;\n }\n first = 1 ;\n goto add_it ;\n }\n if ( ! * tres_str_in ) {\n * tres_str_in = xstrdup ( row [ 0 ] ) ;\n goto end_it ;\n }\n else if ( xstrcmp ( * tres_str_in , row [ 0 ] ) ) {\n debug ( \"%s has changed tres from %s to %s\" , mysql_conn -> cluster_name , row [ 0 ] , * tres_str_in ) ;\n }\n else {\n if ( debug_flags & DEBUG_FLAG_DB_EVENT ) DB_DEBUG ( mysql_conn -> conn , \"We have the same tres as before for %s, \" \"no need to update the database.\" , mysql_conn -> cluster_name ) ;\n if ( cluster_nodes ) {\n if ( ! row [ 1 ] [ 0 ] ) {\n debug ( \"Adding cluster nodes '%s' to \" \"last instance of cluster '%s'.\" , cluster_nodes , mysql_conn -> cluster_name ) ;\n query = xstrdup_printf ( \"update \\\"%s_%s\\\" set \" \"cluster_nodes='%s' \" \"where time_end=0 and node_name=''\" , mysql_conn -> cluster_name , event_table , cluster_nodes ) ;\n ( void ) mysql_db_query ( mysql_conn , query ) ;\n xfree ( query ) ;\n goto update_it ;\n }\n else if ( ! xstrcmp ( cluster_nodes , row [ 1 ] ) ) {\n if ( debug_flags & DEBUG_FLAG_DB_EVENT ) DB_DEBUG ( mysql_conn -> conn , \"we have the same nodes \" \"in the cluster \" \"as before no need to \" \"update the database.\" ) ;\n goto update_it ;\n }\n }\n goto end_it ;\n }\n query = xstrdup_printf ( \"update \\\"%s_%s\\\" set time_end=%ld where time_end=0\" , mysql_conn -> cluster_name , event_table , event_time ) ;\n rc = mysql_db_query ( mysql_conn , query ) ;\n xfree ( query ) ;\n first = 1 ;\n if ( rc != SLURM_SUCCESS ) goto end_it ;\n add_it : query = xstrdup_printf ( \"insert into \\\"%s_%s\\\" (cluster_nodes, tres, \" \"time_start, reason) \" \"values ('%s', '%s', %ld, 'Cluster Registered TRES');\n\" , mysql_conn -> cluster_name , event_table , cluster_nodes , * tres_str_in , event_time ) ;\n ( void ) mysql_db_query ( mysql_conn , query ) ;\n xfree ( query ) ;\n update_it : query = xstrdup_printf ( \"update \\\"%s_%s\\\" set time_end=%ld where time_end=0 \" \"and state=%u and node_name='';\n\" , mysql_conn -> cluster_name , event_table , event_time , NODE_STATE_DOWN ) ;\n rc = mysql_db_query ( mysql_conn , query ) ;\n xfree ( query ) ;\n end_it : mysql_free_result ( result ) ;\n if ( first && rc == SLURM_SUCCESS ) rc = ACCOUNTING_FIRST_REG ;\n return rc ;\n }"}
{"idx": 7398, "target": 0, "func": "int BIO_vprintf ( BIO * bio , const char * format , va_list args ) {\n int ret ;\n size_t retlen ;\n char hugebuf [ 1024 * 2 ] ;\n char * hugebufp = hugebuf ;\n size_t hugebufsize = sizeof ( hugebuf ) ;\n char * dynbuf = NULL ;\n int ignored ;\n dynbuf = NULL ;\n CRYPTO_push_info ( \"doapr()\" ) ;\n if ( ! _dopr ( & hugebufp , & dynbuf , & hugebufsize , & retlen , & ignored , format , args ) ) {\n OPENSSL_free ( dynbuf ) ;\n return - 1 ;\n }\n if ( dynbuf ) {\n ret = BIO_write ( bio , dynbuf , ( int ) retlen ) ;\n OPENSSL_free ( dynbuf ) ;\n }\n else {\n ret = BIO_write ( bio , hugebuf , ( int ) retlen ) ;\n }\n CRYPTO_pop_info ( ) ;\n return ( ret ) ;\n }"}
{"idx": 7399, "target": 0, "func": "static inline Quantum GetPixelAlpha ( const Image * restrict image , const Quantum * restrict pixel ) {\n if ( image -> channel_map [ AlphaPixelChannel ] . traits == UndefinedPixelTrait ) return ( OpaqueAlpha ) ;\n return ( pixel [ image -> channel_map [ AlphaPixelChannel ] . offset ] ) ;\n }"}
{"idx": 7400, "target": 0, "func": "static void cancel_filesystem_info_for_file ( NautilusDirectory * directory , NautilusFile * file ) {\n if ( directory -> details -> filesystem_info_state != NULL && directory -> details -> filesystem_info_state -> file == file ) {\n filesystem_info_cancel ( directory ) ;\n }\n }"}
{"idx": 7401, "target": 0, "func": "static PyObject * authGSSServerTargetName ( PyObject * self , PyObject * args ) {\n gss_server_state * state ;\n PyObject * pystate ;\n if ( ! PyArg_ParseTuple ( args , \"O\" , & pystate ) ) return NULL ;\n # if PY_MAJOR_VERSION >= 3 if ( ! PyCapsule_CheckExact ( pystate ) ) {\n # else if ( ! PyCObject_Check ( pystate ) ) {\n # endif PyErr_SetString ( PyExc_TypeError , \"Expected a context object\" ) ;\n return NULL ;\n }\n # if PY_MAJOR_VERSION >= 3 state = PyCapsule_GetPointer ( pystate , NULL ) ;\n # else state = ( gss_client_state * ) PyCObject_AsVoidPtr ( pystate ) ;\n # endif if ( state == NULL ) return NULL ;\n return Py_BuildValue ( \"s\" , state -> targetname ) ;\n }"}
{"idx": 7402, "target": 0, "func": "TEST_F ( TemplateURLTest , ReplaceSearchTermsInURLPath ) {\n TemplateURLData data ;\n data . SetURL ( \"http://term-in-path.com/begin/{\nsearchTerms}\n/end\" ) ;\n TemplateURL url ( data ) ;\n TemplateURLRef : : SearchTermsArgs search_terms ( ASCIIToUTF16 ( \"Bob Morane\" ) ) ;\n GURL result ;\n EXPECT_TRUE ( url . ReplaceSearchTermsInURL ( GURL ( \"http://term-in-path.com/begin/something/end\" ) , search_terms , search_terms_data_ , & result ) ) ;\n EXPECT_EQ ( GURL ( \"http://term-in-path.com/begin/Bob%20Morane/end\" ) , result ) ;\n EXPECT_TRUE ( url . ReplaceSearchTermsInURL ( GURL ( \"http://term-in-path.com/begin/1%202%203/end\" ) , search_terms , search_terms_data_ , & result ) ) ;\n EXPECT_EQ ( GURL ( \"http://term-in-path.com/begin/Bob%20Morane/end\" ) , result ) ;\n result = GURL ( \"http://should.not.change.com\" ) ;\n EXPECT_FALSE ( url . ReplaceSearchTermsInURL ( GURL ( \"http://term-in-path.com/about\" ) , search_terms , search_terms_data_ , & result ) ) ;\n EXPECT_EQ ( GURL ( \"http://should.not.change.com\" ) , result ) ;\n }"}
{"idx": 7403, "target": 1, "func": "Selectivity scalararraysel_containment ( PlannerInfo * root , Node * leftop , Node * rightop , Oid elemtype , bool isEquality , bool useOr , int varRelid ) {\n Selectivity selec ;\n VariableStatData vardata ;\n Datum constval ;\n TypeCacheEntry * typentry ;\n FmgrInfo * cmpfunc ;\n examine_variable ( root , rightop , varRelid , & vardata ) ;\n if ( ! vardata . rel ) {\n ReleaseVariableStats ( vardata ) ;\n return - 1.0 ;\n }\n if ( ! IsA ( leftop , Const ) ) {\n ReleaseVariableStats ( vardata ) ;\n return - 1.0 ;\n }\n if ( ( ( Const * ) leftop ) -> constisnull ) {\n ReleaseVariableStats ( vardata ) ;\n return ( Selectivity ) 0.0 ;\n }\n constval = ( ( Const * ) leftop ) -> constvalue ;\n typentry = lookup_type_cache ( elemtype , TYPECACHE_CMP_PROC_FINFO ) ;\n if ( ! OidIsValid ( typentry -> cmp_proc_finfo . fn_oid ) ) {\n ReleaseVariableStats ( vardata ) ;\n return - 1.0 ;\n }\n cmpfunc = & typentry -> cmp_proc_finfo ;\n if ( ! isEquality ) useOr = ! useOr ;\n if ( HeapTupleIsValid ( vardata . statsTuple ) ) {\n Form_pg_statistic stats ;\n Datum * values ;\n int nvalues ;\n float4 * numbers ;\n int nnumbers ;\n float4 * hist ;\n int nhist ;\n stats = ( Form_pg_statistic ) GETSTRUCT ( vardata . statsTuple ) ;\n if ( get_attstatsslot ( vardata . statsTuple , elemtype , vardata . atttypmod , STATISTIC_KIND_MCELEM , InvalidOid , NULL , & values , & nvalues , & numbers , & nnumbers ) ) {\n if ( useOr || ! get_attstatsslot ( vardata . statsTuple , elemtype , vardata . atttypmod , STATISTIC_KIND_DECHIST , InvalidOid , NULL , NULL , NULL , & hist , & nhist ) ) {\n hist = NULL ;\n nhist = 0 ;\n }\n if ( useOr ) selec = mcelem_array_contain_overlap_selec ( values , nvalues , numbers , nnumbers , & constval , 1 , OID_ARRAY_CONTAINS_OP , cmpfunc ) ;\n else selec = mcelem_array_contained_selec ( values , nvalues , numbers , nnumbers , & constval , 1 , hist , nhist , OID_ARRAY_CONTAINED_OP , cmpfunc ) ;\n if ( hist ) free_attstatsslot ( elemtype , NULL , 0 , hist , nhist ) ;\n free_attstatsslot ( elemtype , values , nvalues , numbers , nnumbers ) ;\n }\n else {\n if ( useOr ) selec = mcelem_array_contain_overlap_selec ( NULL , 0 , NULL , 0 , & constval , 1 , OID_ARRAY_CONTAINS_OP , cmpfunc ) ;\n else selec = mcelem_array_contained_selec ( NULL , 0 , NULL , 0 , & constval , 1 , NULL , 0 , OID_ARRAY_CONTAINED_OP , cmpfunc ) ;\n }\n selec *= ( 1.0 - stats -> stanullfrac ) ;\n }\n else {\n if ( useOr ) selec = mcelem_array_contain_overlap_selec ( NULL , 0 , NULL , 0 , & constval , 1 , OID_ARRAY_CONTAINS_OP , cmpfunc ) ;\n else selec = mcelem_array_contained_selec ( NULL , 0 , NULL , 0 , & constval , 1 , NULL , 0 , OID_ARRAY_CONTAINED_OP , cmpfunc ) ;\n }\n ReleaseVariableStats ( vardata ) ;\n if ( ! isEquality ) selec = 1.0 - selec ;\n CLAMP_PROBABILITY ( selec ) ;\n return selec ;\n }"}
{"idx": 7404, "target": 0, "func": "static Flag decBiStr ( const char * targ , const char * str1 , const char * str2 ) {\n for ( ;\n ;\n targ ++ , str1 ++ , str2 ++ ) {\n if ( * targ != * str1 && * targ != * str2 ) return 0 ;\n if ( * targ == '\\0' ) break ;\n }\n return 1 ;\n }"}
{"idx": 7405, "target": 0, "func": "void decoder_LinkPicture ( decoder_t * p_decoder , picture_t * p_picture ) {\n p_decoder -> pf_picture_link ( p_decoder , p_picture ) ;\n }"}
{"idx": 7406, "target": 0, "func": "void register_pk_elg_progress ( void ( * cb ) ( void * , int ) , void * cb_data ) {\n progress_cb = cb ;\n progress_cb_data = cb_data ;\n }"}
{"idx": 7407, "target": 0, "func": "static int key_pol_get_resp ( struct sock * sk , struct xfrm_policy * xp , const struct sadb_msg * hdr , int dir ) {\n int err ;\n struct sk_buff * out_skb ;\n struct sadb_msg * out_hdr ;\n err = 0 ;\n out_skb = pfkey_xfrm_policy2msg_prep ( xp ) ;\n if ( IS_ERR ( out_skb ) ) {\n err = PTR_ERR ( out_skb ) ;\n goto out ;\n }\n err = pfkey_xfrm_policy2msg ( out_skb , xp , dir ) ;\n if ( err < 0 ) goto out ;\n out_hdr = ( struct sadb_msg * ) out_skb -> data ;\n out_hdr -> sadb_msg_version = hdr -> sadb_msg_version ;\n out_hdr -> sadb_msg_type = hdr -> sadb_msg_type ;\n out_hdr -> sadb_msg_satype = 0 ;\n out_hdr -> sadb_msg_errno = 0 ;\n out_hdr -> sadb_msg_seq = hdr -> sadb_msg_seq ;\n out_hdr -> sadb_msg_pid = hdr -> sadb_msg_pid ;\n pfkey_broadcast ( out_skb , GFP_ATOMIC , BROADCAST_ONE , sk , xp_net ( xp ) ) ;\n err = 0 ;\n out : return err ;\n }"}
{"idx": 7408, "target": 0, "func": "static void _slurm_rpc_resv_show ( slurm_msg_t * msg ) {\n resv_info_request_msg_t * resv_req_msg = ( resv_info_request_msg_t * ) msg -> data ;\n DEF_TIMERS ;\n slurmctld_lock_t node_read_lock = {\n NO_LOCK , NO_LOCK , READ_LOCK , NO_LOCK , NO_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n slurm_msg_t response_msg ;\n char * dump ;\n int dump_size ;\n START_TIMER ;\n debug2 ( \"Processing RPC: REQUEST_RESERVATION_INFO from uid=%d\" , uid ) ;\n if ( ( resv_req_msg -> last_update - 1 ) >= last_resv_update ) {\n debug2 ( \"_slurm_rpc_resv_show, no change\" ) ;\n slurm_send_rc_msg ( msg , SLURM_NO_CHANGE_IN_DATA ) ;\n }\n else {\n lock_slurmctld ( node_read_lock ) ;\n show_resv ( & dump , & dump_size , uid , msg -> protocol_version ) ;\n unlock_slurmctld ( node_read_lock ) ;\n END_TIMER2 ( \"_slurm_rpc_resv_show\" ) ;\n slurm_msg_t_init ( & response_msg ) ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . address = msg -> address ;\n response_msg . conn = msg -> conn ;\n response_msg . msg_type = RESPONSE_RESERVATION_INFO ;\n response_msg . data = dump ;\n response_msg . data_size = dump_size ;\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n xfree ( dump ) ;\n }\n }"}
{"idx": 7409, "target": 0, "func": "void proto_reg_handoff_btgatt ( void ) {\n const struct uuid_dissectors_t {\n const gchar * const uuid ;\n gchar * const short_name ;\n int ( * const dissect_func ) ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) ;\n }\n uuid_dissectors [ ] = {\n {\n \"6e400001-b5a3-f393-e0a9-e50e24dcca9e\" , \"Nordic UART Service\" , NULL }\n , {\n \"6e400002-b5a3-f393-e0a9-e50e24dcca9e\" , \"Nordic UART Tx\" , dissect_btgatt_nordic_uart_tx }\n , {\n \"6e400003-b5a3-f393-e0a9-e50e24dcca9e\" , \"Nordic UART Rx\" , dissect_btgatt_nordic_uart_rx }\n , {\n \"00001530-1212-efde-1523-785feabcd123\" , \"Nordic DFU Service\" , NULL }\n , {\n \"00001531-1212-efde-1523-785feabcd123\" , \"Nordic DFU Control Point\" , dissect_btgatt_nordic_dfu_control_point }\n , {\n \"00001532-1212-efde-1523-785feabcd123\" , \"Nordic DFU Packet\" , dissect_btgatt_nordic_dfu_packet }\n , {\n \"e95d0753-251d-470a-a062-fa1922dfa9a8\" , \"micro:bit Accelerometer Service\" , NULL }\n , {\n \"e95dca4b-251d-470a-a062-fa1922dfa9a8\" , \"micro:bit Accelerometer Data\" , dissect_btgatt_microbit_accelerometer_data }\n , {\n \"e95dfb24-251d-470a-a062-fa1922dfa9a8\" , \"micro:bit Accelerometer Period\" , dissect_btgatt_microbit_accelerometer_period }\n , {\n \"e95df2d8-251d-470a-a062-fa1922dfa9a8\" , \"micro:bit Magnetometer Service\" , NULL }\n , {\n \"e95dfb11-251d-470a-a062-fa1922dfa9a8\" , \"micro:bit Magnetometer Data\" , dissect_btgatt_microbit_magnetometer_data }\n , {\n \"e95d386c-251d-470a-a062-fa1922dfa9a8\" , \"micro:bit Magnetometer Period\" , dissect_btgatt_microbit_magnetometer_period }\n , {\n \"e95d9715-251d-470a-a062-fa1922dfa9a8\" , \"micro:bit Magnetometer Bearing\" , dissect_btgatt_microbit_magnetometer_bearing }\n , {\n \"e95d9882-251d-470a-a062-fa1922dfa9a8\" , \"micro:bit Button Service\" , NULL }\n , {\n \"e95dda90-251d-470a-a062-fa1922dfa9a8\" , \"micro:bit Button A State\" , dissect_btgatt_microbit_button_a_state }\n , {\n \"e95dda91-251d-470a-a062-fa1922dfa9a8\" , \"micro:bit Button B State\" , dissect_btgatt_microbit_button_b_state }\n , {\n \"e95d127b-251d-470a-a062-fa1922dfa9a8\" , \"micro:bit IO Pin Service\" , NULL }\n , {\n \"e95d8d00-251d-470a-a062-fa1922dfa9a8\" , \"micro:bit Pin Data\" , dissect_btgatt_microbit_pin_data }\n , {\n \"e95d5899-251d-470a-a062-fa1922dfa9a8\" , \"micro:bit Pin AD Configuration\" , dissect_btgatt_microbit_pin_ad_config }\n , {\n \"e95db9fe-251d-470a-a062-fa1922dfa9a8\" , \"micro:bit Pin IO Configuration\" , dissect_btgatt_microbit_pin_io_config }\n , {\n \"e95dd822-251d-470a-a062-fa1922dfa9a8\" , \"micro:bit PWM Control\" , dissect_btgatt_microbit_pwm_control }\n , {\n \"e95dd91d-251d-470a-a062-fa1922dfa9a8\" , \"micro:bit LED Service\" , NULL }\n , {\n \"e95d7b77-251d-470a-a062-fa1922dfa9a8\" , \"micro:bit LED Matrix State\" , dissect_btgatt_microbit_led_matrix }\n , {\n \"e95d93ee-251d-470a-a062-fa1922dfa9a8\" , \"micro:bit LED Text\" , dissect_btgatt_microbit_led_text }\n , {\n \"e95d0d2d-251d-470a-a062-fa1922dfa9a8\" , \"micro:bit Scrolling Delay\" , dissect_btgatt_microbit_scrolling_delay }\n , {\n \"e95d93af-251d-470a-a062-fa1922dfa9a8\" , \"micro:bit Event Service\" , NULL }\n , {\n \"e95db84c-251d-470a-a062-fa1922dfa9a8\" , \"micro:bit MicroBit Requirements\" , dissect_btgatt_microbit_microbit_requirements }\n , {\n \"e95d9775-251d-470a-a062-fa1922dfa9a8\" , \"micro:bit MicroBit Event\" , dissect_btgatt_microbit_microbit_event }\n , {\n \"e95d23c4-251d-470a-a062-fa1922dfa9a8\" , \"micro:bit Client Requirements\" , dissect_btgatt_microbit_client_requirements }\n , {\n \"e95d5404-251d-470a-a062-fa1922dfa9a8\" , \"micro:bit Client Event\" , dissect_btgatt_microbit_client_event }\n , {\n \"e95d93b0-251d-470a-a062-fa1922dfa9a8\" , \"micro:bit DFU Control Service\" , NULL }\n , {\n \"e95d93b1-251d-470a-a062-fa1922dfa9a8\" , \"micro:bit DFU Control\" , dissect_btgatt_microbit_dfu_control }\n , {\n \"e95d6100-251d-470a-a062-fa1922dfa9a8\" , \"micro:bit Temperature Service\" , NULL }\n , {\n \"e95d9250-251d-470a-a062-fa1922dfa9a8\" , \"micro:bit Temperature\" , dissect_btgatt_microbit_temperature_value }\n , {\n \"e95d1b25-251d-470a-a062-fa1922dfa9a8\" , \"micro:bit Temperature Period\" , dissect_btgatt_microbit_temperature_period }\n , {\n NULL , NULL , NULL }\n , }\n ;\n for ( gint i = 0 ;\n uuid_dissectors [ i ] . uuid ;\n i ++ ) {\n wmem_tree_insert_string ( bluetooth_uuids , uuid_dissectors [ i ] . uuid , uuid_dissectors [ i ] . short_name , 0 ) ;\n if ( uuid_dissectors [ i ] . dissect_func ) {\n dissector_handle_t handle = create_dissector_handle ( uuid_dissectors [ i ] . dissect_func , proto_btgatt ) ;\n dissector_add_string ( \"bluetooth.uuid\" , uuid_dissectors [ i ] . uuid , handle ) ;\n }\n }\n }"}
{"idx": 7410, "target": 0, "func": "SPL_METHOD ( SplDoublyLinkedList , current ) {\n spl_dllist_object * intern = ( spl_dllist_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n spl_ptr_llist_element * element = intern -> traverse_pointer ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n if ( element == NULL || element -> data == NULL ) {\n RETURN_NULL ( ) ;\n }\n else {\n zval * data = ( zval * ) element -> data ;\n RETURN_ZVAL ( data , 1 , 0 ) ;\n }\n }"}
{"idx": 7411, "target": 0, "func": "static long uptomult ( long x , long y ) {\n assert ( x >= 0 ) ;\n return ( ( x + y - 1 ) / y ) * y ;\n }"}
{"idx": 7412, "target": 0, "func": "static UBool sameScript ( UScriptCode scriptOne , UScriptCode scriptTwo ) {\n return scriptOne <= USCRIPT_INHERITED || scriptTwo <= USCRIPT_INHERITED || scriptOne == scriptTwo ;\n }"}
{"idx": 7413, "target": 0, "func": "static struct passwd * check_user ( const char * user ) {\n # if ! defined ( __WIN__ ) struct passwd * tmp_user_info ;\n uid_t user_id = geteuid ( ) ;\n if ( user_id ) {\n if ( user ) {\n tmp_user_info = getpwnam ( user ) ;\n if ( ( ! tmp_user_info || user_id != tmp_user_info -> pw_uid ) && global_system_variables . log_warnings ) sql_print_warning ( \"One can only use the --user switch if running as root\\n\" ) ;\n }\n return NULL ;\n }\n if ( ! user ) {\n if ( ! opt_bootstrap && ! opt_help ) {\n sql_print_error ( \"Fatal error: Please consult the Knowledge Base \" \"to find out how to run mysqld as root!\\n\" ) ;\n unireg_abort ( 1 ) ;\n }\n return NULL ;\n }\n if ( ! strcmp ( user , \"root\" ) ) return NULL ;\n if ( ! ( tmp_user_info = getpwnam ( user ) ) ) {\n const char * pos ;\n for ( pos = user ;\n my_isdigit ( mysqld_charset , * pos ) ;\n pos ++ ) ;\n if ( * pos ) goto err ;\n if ( ! ( tmp_user_info = getpwuid ( atoi ( user ) ) ) ) goto err ;\n }\n return tmp_user_info ;\n err : sql_print_error ( \"Fatal error: Can't change to run as user '%s' ;\n Please check that the user exists!\\n\" , user ) ;\n unireg_abort ( 1 ) ;\n # endif return NULL ;\n }"}
{"idx": 7414, "target": 0, "func": "static int matroska_parse_cluster_incremental ( MatroskaDemuxContext * matroska ) {\n EbmlList * blocks_list ;\n MatroskaBlock * blocks ;\n int i , res ;\n res = ebml_parse ( matroska , matroska_cluster_incremental_parsing , & matroska -> current_cluster ) ;\n if ( res == 1 ) {\n if ( matroska -> current_cluster_pos ) ebml_level_end ( matroska ) ;\n ebml_free ( matroska_cluster , & matroska -> current_cluster ) ;\n memset ( & matroska -> current_cluster , 0 , sizeof ( MatroskaCluster ) ) ;\n matroska -> current_cluster_num_blocks = 0 ;\n matroska -> current_cluster_pos = avio_tell ( matroska -> ctx -> pb ) ;\n matroska -> prev_pkt = NULL ;\n if ( matroska -> current_id ) matroska -> current_cluster_pos -= 4 ;\n res = ebml_parse ( matroska , matroska_clusters_incremental , & matroska -> current_cluster ) ;\n if ( res == 1 ) res = ebml_parse ( matroska , matroska_cluster_incremental_parsing , & matroska -> current_cluster ) ;\n }\n if ( ! res && matroska -> current_cluster_num_blocks < matroska -> current_cluster . blocks . nb_elem ) {\n blocks_list = & matroska -> current_cluster . blocks ;\n blocks = blocks_list -> elem ;\n matroska -> current_cluster_num_blocks = blocks_list -> nb_elem ;\n i = blocks_list -> nb_elem - 1 ;\n if ( blocks [ i ] . bin . size > 0 && blocks [ i ] . bin . data ) {\n int is_keyframe = blocks [ i ] . non_simple ? ! blocks [ i ] . reference : - 1 ;\n if ( ! blocks [ i ] . non_simple ) blocks [ i ] . duration = AV_NOPTS_VALUE ;\n res = matroska_parse_block ( matroska , blocks [ i ] . bin . data , blocks [ i ] . bin . size , blocks [ i ] . bin . pos , matroska -> current_cluster . timecode , blocks [ i ] . duration , is_keyframe , matroska -> current_cluster_pos ) ;\n }\n }\n if ( res < 0 ) matroska -> done = 1 ;\n return res ;\n }"}
{"idx": 7415, "target": 0, "func": "static void e1000e_set_eecd ( E1000ECore * core , int index , uint32_t val ) {\n static const uint32_t ro_bits = E1000_EECD_PRES | E1000_EECD_AUTO_RD | E1000_EECD_SIZE_EX_MASK ;\n core -> mac [ EECD ] = ( core -> mac [ EECD ] & ro_bits ) | ( val & ~ ro_bits ) ;\n }"}
{"idx": 7416, "target": 0, "func": "static int tipc_nl_compat_handle ( struct tipc_nl_compat_msg * msg ) {\n struct tipc_nl_compat_cmd_dump dump ;\n struct tipc_nl_compat_cmd_doit doit ;\n memset ( & dump , 0 , sizeof ( dump ) ) ;\n memset ( & doit , 0 , sizeof ( doit ) ) ;\n switch ( msg -> cmd ) {\n case TIPC_CMD_NOOP : msg -> rep = tipc_tlv_alloc ( 0 ) ;\n if ( ! msg -> rep ) return - ENOMEM ;\n return 0 ;\n case TIPC_CMD_GET_BEARER_NAMES : msg -> rep_size = MAX_BEARERS * TLV_SPACE ( TIPC_MAX_BEARER_NAME ) ;\n dump . dumpit = tipc_nl_bearer_dump ;\n dump . format = tipc_nl_compat_bearer_dump ;\n return tipc_nl_compat_dumpit ( & dump , msg ) ;\n case TIPC_CMD_ENABLE_BEARER : msg -> req_type = TIPC_TLV_BEARER_CONFIG ;\n doit . doit = tipc_nl_bearer_enable ;\n doit . transcode = tipc_nl_compat_bearer_enable ;\n return tipc_nl_compat_doit ( & doit , msg ) ;\n case TIPC_CMD_DISABLE_BEARER : msg -> req_type = TIPC_TLV_BEARER_NAME ;\n doit . doit = tipc_nl_bearer_disable ;\n doit . transcode = tipc_nl_compat_bearer_disable ;\n return tipc_nl_compat_doit ( & doit , msg ) ;\n case TIPC_CMD_SHOW_LINK_STATS : msg -> req_type = TIPC_TLV_LINK_NAME ;\n msg -> rep_size = ULTRA_STRING_MAX_LEN ;\n msg -> rep_type = TIPC_TLV_ULTRA_STRING ;\n dump . dumpit = tipc_nl_node_dump_link ;\n dump . format = tipc_nl_compat_link_stat_dump ;\n return tipc_nl_compat_dumpit ( & dump , msg ) ;\n case TIPC_CMD_GET_LINKS : msg -> req_type = TIPC_TLV_NET_ADDR ;\n msg -> rep_size = ULTRA_STRING_MAX_LEN ;\n dump . dumpit = tipc_nl_node_dump_link ;\n dump . format = tipc_nl_compat_link_dump ;\n return tipc_nl_compat_dumpit ( & dump , msg ) ;\n case TIPC_CMD_SET_LINK_TOL : case TIPC_CMD_SET_LINK_PRI : case TIPC_CMD_SET_LINK_WINDOW : msg -> req_type = TIPC_TLV_LINK_CONFIG ;\n doit . doit = tipc_nl_node_set_link ;\n doit . transcode = tipc_nl_compat_link_set ;\n return tipc_nl_compat_doit ( & doit , msg ) ;\n case TIPC_CMD_RESET_LINK_STATS : msg -> req_type = TIPC_TLV_LINK_NAME ;\n doit . doit = tipc_nl_node_reset_link_stats ;\n doit . transcode = tipc_nl_compat_link_reset_stats ;\n return tipc_nl_compat_doit ( & doit , msg ) ;\n case TIPC_CMD_SHOW_NAME_TABLE : msg -> req_type = TIPC_TLV_NAME_TBL_QUERY ;\n msg -> rep_size = ULTRA_STRING_MAX_LEN ;\n msg -> rep_type = TIPC_TLV_ULTRA_STRING ;\n dump . header = tipc_nl_compat_name_table_dump_header ;\n dump . dumpit = tipc_nl_name_table_dump ;\n dump . format = tipc_nl_compat_name_table_dump ;\n return tipc_nl_compat_dumpit ( & dump , msg ) ;\n case TIPC_CMD_SHOW_PORTS : msg -> rep_size = ULTRA_STRING_MAX_LEN ;\n msg -> rep_type = TIPC_TLV_ULTRA_STRING ;\n dump . dumpit = tipc_nl_sk_dump ;\n dump . format = tipc_nl_compat_sk_dump ;\n return tipc_nl_compat_dumpit ( & dump , msg ) ;\n case TIPC_CMD_GET_MEDIA_NAMES : msg -> rep_size = MAX_MEDIA * TLV_SPACE ( TIPC_MAX_MEDIA_NAME ) ;\n dump . dumpit = tipc_nl_media_dump ;\n dump . format = tipc_nl_compat_media_dump ;\n return tipc_nl_compat_dumpit ( & dump , msg ) ;\n case TIPC_CMD_GET_NODES : msg -> rep_size = ULTRA_STRING_MAX_LEN ;\n dump . dumpit = tipc_nl_node_dump ;\n dump . format = tipc_nl_compat_node_dump ;\n return tipc_nl_compat_dumpit ( & dump , msg ) ;\n case TIPC_CMD_SET_NODE_ADDR : msg -> req_type = TIPC_TLV_NET_ADDR ;\n doit . doit = tipc_nl_net_set ;\n doit . transcode = tipc_nl_compat_net_set ;\n return tipc_nl_compat_doit ( & doit , msg ) ;\n case TIPC_CMD_SET_NETID : msg -> req_type = TIPC_TLV_UNSIGNED ;\n doit . doit = tipc_nl_net_set ;\n doit . transcode = tipc_nl_compat_net_set ;\n return tipc_nl_compat_doit ( & doit , msg ) ;\n case TIPC_CMD_GET_NETID : msg -> rep_size = sizeof ( u32 ) ;\n dump . dumpit = tipc_nl_net_dump ;\n dump . format = tipc_nl_compat_net_dump ;\n return tipc_nl_compat_dumpit ( & dump , msg ) ;\n case TIPC_CMD_SHOW_STATS : return tipc_cmd_show_stats_compat ( msg ) ;\n }\n return - EOPNOTSUPP ;\n }"}
{"idx": 7417, "target": 0, "func": "const char * proto_get_protocol_short_name ( const protocol_t * protocol ) {\n if ( protocol == NULL ) return \"(none)\" ;\n return protocol -> short_name ;\n }"}
{"idx": 7418, "target": 0, "func": "static int no_cleanup ( i_ctx_t * i_ctx_p ) {\n return 0 ;\n }"}
{"idx": 7419, "target": 0, "func": "void bitmap_writer_finish ( struct pack_idx_entry * * index , uint32_t index_nr , const char * filename , uint16_t options ) {\n static char tmp_file [ PATH_MAX ] ;\n static uint16_t default_version = 1 ;\n static uint16_t flags = BITMAP_OPT_FULL_DAG ;\n struct sha1file * f ;\n struct bitmap_disk_header header ;\n int fd = odb_mkstemp ( tmp_file , sizeof ( tmp_file ) , \"pack/tmp_bitmap_XXXXXX\" ) ;\n if ( fd < 0 ) die_errno ( \"unable to create '%s'\" , tmp_file ) ;\n f = sha1fd ( fd , tmp_file ) ;\n memcpy ( header . magic , BITMAP_IDX_SIGNATURE , sizeof ( BITMAP_IDX_SIGNATURE ) ) ;\n header . version = htons ( default_version ) ;\n header . options = htons ( flags | options ) ;\n header . entry_count = htonl ( writer . selected_nr ) ;\n hashcpy ( header . checksum , writer . pack_checksum ) ;\n sha1write ( f , & header , sizeof ( header ) ) ;\n dump_bitmap ( f , writer . commits ) ;\n dump_bitmap ( f , writer . trees ) ;\n dump_bitmap ( f , writer . blobs ) ;\n dump_bitmap ( f , writer . tags ) ;\n write_selected_commits_v1 ( f , index , index_nr ) ;\n if ( options & BITMAP_OPT_HASH_CACHE ) write_hash_cache ( f , index , index_nr ) ;\n sha1close ( f , NULL , CSUM_FSYNC ) ;\n if ( adjust_shared_perm ( tmp_file ) ) die_errno ( \"unable to make temporary bitmap file readable\" ) ;\n if ( rename ( tmp_file , filename ) ) die_errno ( \"unable to rename temporary bitmap file to '%s'\" , filename ) ;\n }"}
{"idx": 7420, "target": 1, "func": "static void cmv_decode_inter ( CmvContext * s , const uint8_t * buf , const uint8_t * buf_end ) {\n const uint8_t * raw = buf + ( s -> avctx -> width * s -> avctx -> height / 16 ) ;\n int x , y , i ;\n i = 0 ;\n for ( y = 0 ;\n y < s -> avctx -> height / 4 ;\n y ++ ) for ( x = 0 ;\n x < s -> avctx -> width / 4 && buf_end - buf > i ;\n x ++ ) {\n if ( buf [ i ] == 0xFF ) {\n unsigned char * dst = s -> frame . data [ 0 ] + ( y * 4 ) * s -> frame . linesize [ 0 ] + x * 4 ;\n if ( raw + 16 < buf_end && * raw == 0xFF ) {\n raw ++ ;\n memcpy ( dst , raw , 4 ) ;\n memcpy ( dst + s -> frame . linesize [ 0 ] , raw + 4 , 4 ) ;\n memcpy ( dst + 2 * s -> frame . linesize [ 0 ] , raw + 8 , 4 ) ;\n memcpy ( dst + 3 * s -> frame . linesize [ 0 ] , raw + 12 , 4 ) ;\n raw += 16 ;\n }\n else if ( raw < buf_end ) {\n int xoffset = ( * raw & 0xF ) - 7 ;\n int yoffset = ( ( * raw >> 4 ) ) - 7 ;\n if ( s -> last2_frame . data [ 0 ] ) cmv_motcomp ( s -> frame . data [ 0 ] , s -> frame . linesize [ 0 ] , s -> last2_frame . data [ 0 ] , s -> last2_frame . linesize [ 0 ] , x * 4 , y * 4 , xoffset , yoffset , s -> avctx -> width , s -> avctx -> height ) ;\n raw ++ ;\n }\n }\n else {\n int xoffset = ( buf [ i ] & 0xF ) - 7 ;\n int yoffset = ( ( buf [ i ] >> 4 ) ) - 7 ;\n cmv_motcomp ( s -> frame . data [ 0 ] , s -> frame . linesize [ 0 ] , s -> last_frame . data [ 0 ] , s -> last_frame . linesize [ 0 ] , x * 4 , y * 4 , xoffset , yoffset , s -> avctx -> width , s -> avctx -> height ) ;\n }\n i ++ ;\n }\n }"}
{"idx": 7421, "target": 0, "func": "int evutil_vsnprintf ( char * buf , size_t buflen , const char * format , va_list ap ) {\n # ifdef _MSC_VER int r = _vsnprintf ( buf , buflen , format , ap ) ;\n buf [ buflen - 1 ] = '\\0' ;\n if ( r >= 0 ) return r ;\n else return _vscprintf ( format , ap ) ;\n # else int r = vsnprintf ( buf , buflen , format , ap ) ;\n buf [ buflen - 1 ] = '\\0' ;\n return r ;\n # endif }"}
{"idx": 7422, "target": 0, "func": "static bool is_outer_table ( TABLE_LIST * table , SELECT_LEX * select ) {\n DBUG_ASSERT ( table -> select_lex != select ) ;\n TABLE_LIST * tl ;\n if ( table -> belong_to_view && table -> belong_to_view -> select_lex == select ) return FALSE ;\n for ( tl = select -> master_unit ( ) -> derived ;\n tl && tl -> is_merged_derived ( ) ;\n select = tl -> select_lex , tl = select -> master_unit ( ) -> derived ) {\n if ( tl -> select_lex == table -> select_lex ) return FALSE ;\n }\n return TRUE ;\n }"}
{"idx": 7423, "target": 0, "func": "static void typhoon_set_isa_irq ( void * opaque , int irq , int level ) {\n typhoon_set_irq ( opaque , 55 , level ) ;\n }"}
{"idx": 7424, "target": 0, "func": "static int sort_key_read ( MI_SORT_PARAM * sort_param , void * key ) {\n int error ;\n SORT_INFO * sort_info = sort_param -> sort_info ;\n MI_INFO * info = sort_info -> info ;\n DBUG_ENTER ( \"sort_key_read\" ) ;\n if ( ( error = sort_get_next_record ( sort_param ) ) ) DBUG_RETURN ( error ) ;\n if ( info -> state -> records == sort_info -> max_records ) {\n mi_check_print_error ( sort_info -> param , \"Key %d - Found too many records;\n Can't continue\" , sort_param -> key + 1 ) ;\n DBUG_RETURN ( 1 ) ;\n }\n sort_param -> real_key_length = ( info -> s -> rec_reflength + _mi_make_key ( info , sort_param -> key , ( uchar * ) key , sort_param -> record , sort_param -> filepos ) ) ;\n # ifdef HAVE_purify bzero ( key + sort_param -> real_key_length , ( sort_param -> key_length - sort_param -> real_key_length ) ) ;\n # endif DBUG_RETURN ( sort_write_record ( sort_param ) ) ;\n }"}
{"idx": 7425, "target": 0, "func": "static int test_no_output ( xd3_stream * stream , int ignore ) {\n int ret ;\n char buf [ TESTBUFSIZE ] ;\n test_setup ( ) ;\n snprintf_func ( buf , TESTBUFSIZE , \"touch %s && chmod 0000 %s\" , TEST_NOPERM_FILE , TEST_NOPERM_FILE ) ;\n if ( ( ret = do_cmd ( stream , buf ) ) ) {\n return ret ;\n }\n if ( ( ret = test_make_inputs ( stream , NULL , NULL ) ) ) {\n return ret ;\n }\n snprintf_func ( buf , TESTBUFSIZE , \"%s -q -f -e %s %s\" , program_name , TEST_TARGET_FILE , TEST_NOPERM_FILE ) ;\n if ( ( ret = do_fail ( stream , buf ) ) ) {\n return ret ;\n }\n snprintf_func ( buf , TESTBUFSIZE , \"%s -J -e %s %s\" , program_name , TEST_TARGET_FILE , TEST_NOPERM_FILE ) ;\n if ( ( ret = do_cmd ( stream , buf ) ) ) {\n return ret ;\n }\n snprintf_func ( buf , TESTBUFSIZE , \"%s -e %s %s\" , program_name , TEST_TARGET_FILE , TEST_DELTA_FILE ) ;\n if ( ( ret = do_cmd ( stream , buf ) ) ) {\n return ret ;\n }\n snprintf_func ( buf , TESTBUFSIZE , \"%s -q -f -d %s %s\" , program_name , TEST_DELTA_FILE , TEST_NOPERM_FILE ) ;\n if ( ( ret = do_fail ( stream , buf ) ) ) {\n return ret ;\n }\n snprintf_func ( buf , TESTBUFSIZE , \"%s -J -d %s %s\" , program_name , TEST_DELTA_FILE , TEST_NOPERM_FILE ) ;\n if ( ( ret = do_cmd ( stream , buf ) ) ) {\n return ret ;\n }\n test_cleanup ( ) ;\n return 0 ;\n }"}
{"idx": 7426, "target": 0, "func": "static LZWInfo * RelinquishLZWInfo ( LZWInfo * lzw_info ) {\n if ( lzw_info -> table [ 0 ] != ( size_t * ) NULL ) lzw_info -> table [ 0 ] = ( size_t * ) RelinquishMagickMemory ( lzw_info -> table [ 0 ] ) ;\n if ( lzw_info -> table [ 1 ] != ( size_t * ) NULL ) lzw_info -> table [ 1 ] = ( size_t * ) RelinquishMagickMemory ( lzw_info -> table [ 1 ] ) ;\n if ( lzw_info -> stack != ( LZWStack * ) NULL ) {\n if ( lzw_info -> stack -> codes != ( size_t * ) NULL ) lzw_info -> stack -> codes = ( size_t * ) RelinquishMagickMemory ( lzw_info -> stack -> codes ) ;\n lzw_info -> stack = ( LZWStack * ) RelinquishMagickMemory ( lzw_info -> stack ) ;\n }\n lzw_info = ( LZWInfo * ) RelinquishMagickMemory ( lzw_info ) ;\n return ( ( LZWInfo * ) NULL ) ;\n }"}
{"idx": 7427, "target": 0, "func": "static int vvalue_tvb_lpwstr_len ( tvbuff_t * tvb , int offset , int length , void * val ) {\n struct data_str * str = ( struct data_str * ) val ;\n const gchar * ptr ;\n int len ;\n if ( length == 0 ) {\n ptr = tvb_get_stringz_enc ( wmem_packet_scope ( ) , tvb , offset , & len , ENC_UTF_16 | ENC_LITTLE_ENDIAN ) ;\n }\n else {\n ptr = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset , length , ENC_UTF_16 | ENC_LITTLE_ENDIAN ) ;\n len = length ;\n }\n str -> str = ptr ;\n return len ;\n }"}
{"idx": 7428, "target": 0, "func": "void pdf_drop_xobject ( fz_context * ctx , pdf_xobject * xobj ) {\n fz_drop_storable ( ctx , & xobj -> storable ) ;\n }"}
{"idx": 7429, "target": 1, "func": "TEST_F ( ProfileInfoCacheTest , DownloadHighResAvatarTest ) {\n switches : : EnableNewAvatarMenuForTesting ( base : : CommandLine : : ForCurrentProcess ( ) ) ;\n EXPECT_EQ ( 0U , GetCache ( ) -> GetNumberOfProfiles ( ) ) ;\n base : : FilePath path_1 = GetProfilePath ( \"path_1\" ) ;\n GetCache ( ) -> AddProfileToCache ( path_1 , ASCIIToUTF16 ( \"name_1\" ) , base : : string16 ( ) , 0 , std : : string ( ) ) ;\n EXPECT_EQ ( 1U , GetCache ( ) -> GetNumberOfProfiles ( ) ) ;\n base : : RunLoop ( ) . RunUntilIdle ( ) ;\n EXPECT_EQ ( 0U , GetCache ( ) -> cached_avatar_images_ . size ( ) ) ;\n EXPECT_EQ ( 1U , GetCache ( ) -> avatar_images_downloads_in_progress_ . size ( ) ) ;\n EXPECT_FALSE ( GetCache ( ) -> GetHighResAvatarOfProfileAtIndex ( 0 ) ) ;\n const size_t kIconIndex = 0 ;\n ProfileAvatarDownloader avatar_downloader ( kIconIndex , GetCache ( ) -> GetPathOfProfileAtIndex ( 0 ) , GetCache ( ) ) ;\n SkBitmap bitmap ;\n bitmap . allocN32Pixels ( 2 , 2 ) ;\n bitmap . eraseColor ( SK_ColorGREEN ) ;\n avatar_downloader . OnFetchComplete ( GURL ( \"http://www.google.com/avatar.png\" ) , & bitmap ) ;\n EXPECT_EQ ( 0U , GetCache ( ) -> avatar_images_downloads_in_progress_ . size ( ) ) ;\n std : : string file_name = profiles : : GetDefaultAvatarIconFileNameAtIndex ( kIconIndex ) ;\n EXPECT_EQ ( 1U , GetCache ( ) -> cached_avatar_images_ . size ( ) ) ;\n EXPECT_TRUE ( GetCache ( ) -> GetHighResAvatarOfProfileAtIndex ( 0 ) ) ;\n EXPECT_EQ ( GetCache ( ) -> cached_avatar_images_ [ file_name ] , GetCache ( ) -> GetHighResAvatarOfProfileAtIndex ( 0 ) ) ;\n base : : RunLoop ( ) . RunUntilIdle ( ) ;\n base : : FilePath icon_path = profiles : : GetPathOfHighResAvatarAtIndex ( kIconIndex ) ;\n EXPECT_NE ( std : : string : : npos , icon_path . MaybeAsASCII ( ) . find ( file_name ) ) ;\n EXPECT_TRUE ( base : : PathExists ( icon_path ) ) ;\n EXPECT_TRUE ( base : : DeleteFile ( icon_path , true ) ) ;\n EXPECT_FALSE ( base : : PathExists ( icon_path ) ) ;\n }"}
{"idx": 7430, "target": 0, "func": "static void import_palette ( CDXLVideoContext * c , uint32_t * new_palette ) {\n int i ;\n for ( i = 0 ;\n i < c -> palette_size / 2 ;\n i ++ ) {\n unsigned rgb = AV_RB16 ( & c -> palette [ i * 2 ] ) ;\n unsigned r = ( ( rgb >> 8 ) & 0xF ) * 0x11 ;\n unsigned g = ( ( rgb >> 4 ) & 0xF ) * 0x11 ;\n unsigned b = ( rgb & 0xF ) * 0x11 ;\n AV_WN32 ( & new_palette [ i ] , ( r << 16 ) | ( g << 8 ) | b ) ;\n }\n }"}
{"idx": 7431, "target": 0, "func": "void set_alloc_limit ( size_t size ) {\n alloc_limit = size ;\n }"}
{"idx": 7432, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( SessionRestorePageLoadMetricsBrowserTest , SingleTabSessionRestore ) {\n ui_test_utils : : NavigateToURL ( browser ( ) , GetTestURL ( ) ) ;\n SessionRestorePaintWaiter session_restore_paint_waiter ;\n QuitBrowserAndRestore ( browser ( ) ) ;\n session_restore_paint_waiter . WaitForForegroundTabs ( 1 ) ;\n ExpectFirstPaintMetricsTotalCount ( 1 ) ;\n }"}
{"idx": 7433, "target": 0, "func": "static void wma_lsp_to_curve_init ( WMACodecContext * s , int frame_len ) {\n float wdel , a , b ;\n int i , e , m ;\n wdel = M_PI / frame_len ;\n for ( i = 0 ;\n i < frame_len ;\n i ++ ) s -> lsp_cos_table [ i ] = 2.0f * cos ( wdel * i ) ;\n for ( i = 0 ;\n i < 256 ;\n i ++ ) {\n e = i - 126 ;\n s -> lsp_pow_e_table [ i ] = pow ( 2.0 , e * - 0.25 ) ;\n }\n b = 1.0 ;\n for ( i = ( 1 << LSP_POW_BITS ) - 1 ;\n i >= 0 ;\n i -- ) {\n m = ( 1 << LSP_POW_BITS ) + i ;\n a = ( float ) m * ( 0.5 / ( 1 << LSP_POW_BITS ) ) ;\n a = pow ( a , - 0.25 ) ;\n s -> lsp_pow_m_table1 [ i ] = 2 * a - b ;\n s -> lsp_pow_m_table2 [ i ] = b - a ;\n b = a ;\n }\n }"}
{"idx": 7434, "target": 1, "func": "static void test_rfc2231_parser ( void ) {\n const char * input = \";\n key4*=us-ascii''foo\" \";\n key*2=ba%\" \";\n key2*0=a\" \";\n key3*0*=us-ascii'en'xyz\" \";\n key*0=\\\"foo\\\"\" \";\n key2*1*=b%25\" \";\n key3*1=plop%\" \";\n key*1=baz\" ;\n const char * output [ ] = {\n \"key\" , \"foobazba%\" , \"key2*\" , \"''ab%25\" , \"key3*\" , \"us-ascii'en'xyzplop%25\" , \"key4*\" , \"us-ascii''foo\" , NULL }\n ;\n struct rfc822_parser_context parser ;\n const char * const * result ;\n unsigned int i ;\n test_begin ( \"rfc2231 parser\" ) ;\n rfc822_parser_init ( & parser , ( const void * ) input , strlen ( input ) , NULL ) ;\n test_assert ( rfc2231_parse ( & parser , & result ) == 0 ) ;\n for ( i = 0 ;\n output [ i ] != NULL && result [ i ] != NULL ;\n i ++ ) test_assert ( strcmp ( output [ i ] , result [ i ] ) == 0 ) ;\n test_assert ( output [ i ] == NULL && result [ i ] == NULL ) ;\n test_end ( ) ;\n }"}
{"idx": 7435, "target": 1, "func": "void ff_h264_fill_mbaff_ref_list ( H264Context * h ) {\n int list , i , j ;\n for ( list = 0 ;\n list < 2 ;\n list ++ ) {\n for ( i = 0 ;\n i < h -> ref_count [ list ] ;\n i ++ ) {\n Picture * frame = & h -> ref_list [ list ] [ i ] ;\n Picture * field = & h -> ref_list [ list ] [ 16 + 2 * i ] ;\n field [ 0 ] = * frame ;\n for ( j = 0 ;\n j < 3 ;\n j ++ ) field [ 0 ] . f . linesize [ j ] <<= 1 ;\n field [ 0 ] . f . reference = PICT_TOP_FIELD ;\n field [ 0 ] . poc = field [ 0 ] . field_poc [ 0 ] ;\n field [ 1 ] = field [ 0 ] ;\n for ( j = 0 ;\n j < 3 ;\n j ++ ) field [ 1 ] . f . data [ j ] += frame -> f . linesize [ j ] ;\n field [ 1 ] . f . reference = PICT_BOTTOM_FIELD ;\n field [ 1 ] . poc = field [ 1 ] . field_poc [ 1 ] ;\n h -> luma_weight [ 16 + 2 * i ] [ list ] [ 0 ] = h -> luma_weight [ 16 + 2 * i + 1 ] [ list ] [ 0 ] = h -> luma_weight [ i ] [ list ] [ 0 ] ;\n h -> luma_weight [ 16 + 2 * i ] [ list ] [ 1 ] = h -> luma_weight [ 16 + 2 * i + 1 ] [ list ] [ 1 ] = h -> luma_weight [ i ] [ list ] [ 1 ] ;\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n h -> chroma_weight [ 16 + 2 * i ] [ list ] [ j ] [ 0 ] = h -> chroma_weight [ 16 + 2 * i + 1 ] [ list ] [ j ] [ 0 ] = h -> chroma_weight [ i ] [ list ] [ j ] [ 0 ] ;\n h -> chroma_weight [ 16 + 2 * i ] [ list ] [ j ] [ 1 ] = h -> chroma_weight [ 16 + 2 * i + 1 ] [ list ] [ j ] [ 1 ] = h -> chroma_weight [ i ] [ list ] [ j ] [ 1 ] ;\n }\n }\n }\n }"}
{"idx": 7436, "target": 0, "func": "void dissect_ber_oid_NULL_callback ( tvbuff_t * tvb _U_ , packet_info * pinfo _U_ , proto_tree * tree _U_ ) {\n return ;\n }"}
{"idx": 7437, "target": 0, "func": "static void test_distinct ( ) {\n MYSQL_STMT * stmt ;\n int rc , i ;\n const char * query = \"SELECT 2+count(distinct b), group_concat(a) FROM t1 group by a\" ;\n myheader ( \"test_distinct\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE t1 (a int , b int);\n\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t1 values (1, 1), (2, 2), (3, 3), (4, 4), (5, 5), \\ (1, 10), (2, 20), (3, 30), (4, 40), (5, 50);\n\" ) ;\n myquery ( rc ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( rc == 5 ) ;\n mysql_stmt_close ( stmt ) ;\n }\n rc = mysql_query ( mysql , \"DROP TABLE t1\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 7438, "target": 0, "func": "static void map_doit ( void * a ) {\n struct map_args * args = ( struct map_args * ) a ;\n int type = ( args -> mode == __RTLD_OPENEXEC ) ? lt_executable : lt_library ;\n args -> map = _dl_map_object ( args -> loader , args -> str , type , 0 , args -> mode , LM_ID_BASE ) ;\n }"}
{"idx": 7439, "target": 0, "func": "static void clamp_lab_icc ( const fz_colorspace * cs , const float * src , float * dst ) {\n dst [ 0 ] = ( fz_clamp ( src [ 0 ] , 0 , 100 ) ) / 100.0f ;\n dst [ 1 ] = ( fz_clamp ( src [ 1 ] , - 128 , 127 ) + 128.0f ) / 256 ;\n dst [ 2 ] = ( fz_clamp ( src [ 2 ] , - 128 , 127 ) + 128.0f ) / 256 ;\n }"}
{"idx": 7440, "target": 0, "func": "static void pk_transaction_install_files ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) {\n gboolean ret ;\n GError * error_local = NULL ;\n guint length ;\n guint i ;\n PkBitfield transaction_flags ;\n g_autoptr ( GError ) error = NULL ;\n g_autofree gchar * content_type = NULL ;\n g_autofree gchar * * full_paths = NULL ;\n g_autofree gchar * full_paths_temp = NULL ;\n g_autofree gchar * transaction_flags_temp = NULL ;\n g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;\n g_return_if_fail ( transaction -> priv -> tid != NULL ) ;\n g_variant_get ( params , \"(t^a&s)\" , & transaction_flags , & full_paths ) ;\n full_paths_temp = pk_package_ids_to_string ( full_paths ) ;\n transaction_flags_temp = pk_transaction_flag_bitfield_to_string ( transaction_flags ) ;\n g_debug ( \"InstallFiles method called: %s (transaction_flags: %s)\" , full_paths_temp , transaction_flags_temp ) ;\n if ( ! pk_backend_is_implemented ( transaction -> priv -> backend , PK_ROLE_ENUM_INSTALL_FILES ) ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NOT_SUPPORTED , \"InstallFiles not supported by backend\" ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n length = g_strv_length ( full_paths ) ;\n for ( i = 0 ;\n i < length ;\n i ++ ) {\n ret = g_file_test ( full_paths [ i ] , G_FILE_TEST_EXISTS ) ;\n if ( ! ret ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NO_SUCH_FILE , \"No such file %s\" , full_paths [ i ] ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n content_type = pk_transaction_get_content_type_for_file ( full_paths [ i ] , & error_local ) ;\n if ( content_type == NULL ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NOT_SUPPORTED , \"Failed to get content type for file %s\" , full_paths [ i ] ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n ret = pk_transaction_is_supported_content_type ( transaction , content_type ) ;\n if ( ! ret ) {\n if ( g_strcmp0 ( \"application/x-app-package\" , content_type ) == 0 || g_str_has_suffix ( full_paths [ i ] , \".ipk\" ) == TRUE ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_MIME_TYPE_NOT_SUPPORTED , \"Listaller is required to install %s\" , full_paths [ i ] ) ;\n }\n else {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_MIME_TYPE_NOT_SUPPORTED , \"MIME type '%s' not supported %s\" , content_type , full_paths [ i ] ) ;\n }\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n }\n transaction -> priv -> cached_transaction_flags = transaction_flags ;\n transaction -> priv -> cached_full_paths = g_strdupv ( full_paths ) ;\n pk_transaction_set_role ( transaction , PK_ROLE_ENUM_INSTALL_FILES ) ;\n pk_transaction_emit_property_changed ( transaction , \"TransactionFlags\" , g_variant_new_uint64 ( transaction_flags ) ) ;\n ret = pk_transaction_obtain_authorization ( transaction , PK_ROLE_ENUM_INSTALL_FILES , & error ) ;\n if ( ! ret ) {\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n out : pk_transaction_dbus_return ( context , error ) ;\n }"}
{"idx": 7441, "target": 0, "func": "PyObject * PyString_DecodeEscape ( const char * s , Py_ssize_t len , const char * errors , Py_ssize_t unicode , const char * recode_encoding ) {\n int c ;\n char * p , * buf ;\n const char * end ;\n PyObject * v ;\n Py_ssize_t newlen ;\n if ( recode_encoding && ( len > PY_SSIZE_T_MAX / 4 ) ) {\n PyErr_SetString ( PyExc_OverflowError , \"string is too large\" ) ;\n return NULL ;\n }\n newlen = recode_encoding ? 4 * len : len ;\n v = PyString_FromStringAndSize ( ( char * ) NULL , newlen ) ;\n if ( v == NULL ) return NULL ;\n p = buf = PyString_AsString ( v ) ;\n end = s + len ;\n while ( s < end ) {\n if ( * s != '\\\\' ) {\n non_esc : # ifdef Py_USING_UNICODE if ( recode_encoding && ( * s & 0x80 ) ) {\n PyObject * u , * w ;\n char * r ;\n const char * t ;\n Py_ssize_t rn ;\n t = s ;\n while ( t < end && ( * t & 0x80 ) ) t ++ ;\n u = PyUnicode_DecodeUTF8 ( s , t - s , errors ) ;\n if ( ! u ) goto failed ;\n w = PyUnicode_AsEncodedString ( u , recode_encoding , errors ) ;\n Py_DECREF ( u ) ;\n if ( ! w ) goto failed ;\n assert ( PyString_Check ( w ) ) ;\n r = PyString_AS_STRING ( w ) ;\n rn = PyString_GET_SIZE ( w ) ;\n Py_MEMCPY ( p , r , rn ) ;\n p += rn ;\n Py_DECREF ( w ) ;\n s = t ;\n }\n else {\n * p ++ = * s ++ ;\n }\n # else * p ++ = * s ++ ;\n # endif continue ;\n }\n s ++ ;\n if ( s == end ) {\n PyErr_SetString ( PyExc_ValueError , \"Trailing \\\\ in string\" ) ;\n goto failed ;\n }\n switch ( * s ++ ) {\n case '\\n' : break ;\n case '\\\\' : * p ++ = '\\\\' ;\n break ;\n case '\\'' : * p ++ = '\\'' ;\n break ;\n case '\\\"' : * p ++ = '\\\"' ;\n break ;\n case 'b' : * p ++ = '\\b' ;\n break ;\n case 'f' : * p ++ = '\\014' ;\n break ;\n case 't' : * p ++ = '\\t' ;\n break ;\n case 'n' : * p ++ = '\\n' ;\n break ;\n case 'r' : * p ++ = '\\r' ;\n break ;\n case 'v' : * p ++ = '\\013' ;\n break ;\n case 'a' : * p ++ = '\\007' ;\n break ;\n case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : c = s [ - 1 ] - '0' ;\n if ( s < end && '0' <= * s && * s <= '7' ) {\n c = ( c << 3 ) + * s ++ - '0' ;\n if ( s < end && '0' <= * s && * s <= '7' ) c = ( c << 3 ) + * s ++ - '0' ;\n }\n * p ++ = c ;\n break ;\n case 'x' : if ( s + 1 < end && isxdigit ( Py_CHARMASK ( s [ 0 ] ) ) && isxdigit ( Py_CHARMASK ( s [ 1 ] ) ) ) {\n unsigned int x = 0 ;\n c = Py_CHARMASK ( * s ) ;\n s ++ ;\n if ( isdigit ( c ) ) x = c - '0' ;\n else if ( islower ( c ) ) x = 10 + c - 'a' ;\n else x = 10 + c - 'A' ;\n x = x << 4 ;\n c = Py_CHARMASK ( * s ) ;\n s ++ ;\n if ( isdigit ( c ) ) x += c - '0' ;\n else if ( islower ( c ) ) x += 10 + c - 'a' ;\n else x += 10 + c - 'A' ;\n * p ++ = x ;\n break ;\n }\n if ( ! errors || strcmp ( errors , \"strict\" ) == 0 ) {\n PyErr_SetString ( PyExc_ValueError , \"invalid \\\\x escape\" ) ;\n goto failed ;\n }\n if ( strcmp ( errors , \"replace\" ) == 0 ) {\n * p ++ = '?' ;\n }\n else if ( strcmp ( errors , \"ignore\" ) == 0 ) ;\n else {\n PyErr_Format ( PyExc_ValueError , \"decoding error;\n \" \"unknown error handling code: %.400s\" , errors ) ;\n goto failed ;\n }\n if ( s < end && isxdigit ( Py_CHARMASK ( s [ 0 ] ) ) ) s ++ ;\n break ;\n # ifndef Py_USING_UNICODE case 'u' : case 'U' : case 'N' : if ( unicode ) {\n PyErr_SetString ( PyExc_ValueError , \"Unicode escapes not legal \" \"when Unicode disabled\" ) ;\n goto failed ;\n }\n # endif default : * p ++ = '\\\\' ;\n s -- ;\n goto non_esc ;\n }\n }\n if ( p - buf < newlen ) _PyString_Resize ( & v , p - buf ) ;\n return v ;\n failed : Py_DECREF ( v ) ;\n return NULL ;\n }"}
{"idx": 7442, "target": 0, "func": "static void dissect_q931_protocol_discriminator ( tvbuff_t * tvb , int offset , proto_tree * tree ) {\n unsigned int discriminator = tvb_get_guint8 ( tvb , offset ) ;\n if ( discriminator == NLPID_DMS ) {\n proto_tree_add_uint_format_value ( tree , hf_q931_discriminator , tvb , offset , 1 , discriminator , \"Maintenance messages\" ) ;\n }\n else if ( discriminator == NLPID_Q_931 ) {\n proto_tree_add_uint_format_value ( tree , hf_q931_discriminator , tvb , offset , 1 , discriminator , \"Q.931\" ) ;\n }\n else if ( discriminator == NLPID_Q_2931 ) {\n proto_tree_add_uint_format_value ( tree , hf_q931_discriminator , tvb , offset , 1 , discriminator , \"Q.2931\" ) ;\n }\n else if ( ( discriminator >= 16 && discriminator < 63 ) || ( ( discriminator >= 80 ) && ( discriminator < 254 ) ) ) {\n proto_tree_add_uint_format_value ( tree , hf_q931_discriminator , tvb , offset , 1 , discriminator , \"Network layer or layer 3 protocol (0x%02X)\" , discriminator ) ;\n }\n else if ( discriminator >= 64 && discriminator <= 79 ) {\n proto_tree_add_uint_format_value ( tree , hf_q931_discriminator , tvb , offset , 1 , discriminator , \"National use (0x%02X)\" , discriminator ) ;\n }\n else {\n proto_tree_add_uint_format_value ( tree , hf_q931_discriminator , tvb , offset , 1 , discriminator , \"Reserved (0x%02X)\" , discriminator ) ;\n }\n }"}
{"idx": 7443, "target": 0, "func": "static gboolean has_invalid_xml_char ( char * str ) {\n gunichar c ;\n while ( * str != 0 ) {\n c = g_utf8_get_char ( str ) ;\n if ( ! ( c == 0x9 || c == 0xA || c == 0xD || ( c >= 0x20 && c <= 0xD7FF ) || ( c >= 0xE000 && c <= 0xFFFD ) || ( c >= 0x10000 && c <= 0x10FFFF ) ) ) {\n return TRUE ;\n }\n str = g_utf8_next_char ( str ) ;\n }\n return FALSE ;\n }"}
{"idx": 7444, "target": 0, "func": "bool id_h ( connection_t * c ) {\n char name [ MAX_STRING_SIZE ] ;\n if ( sscanf ( c -> buffer , \"%*d \" MAX_STRING \" %d\" , name , & c -> protocol_version ) != 2 ) {\n logger ( LOG_ERR , \"Got bad %s from %s (%s)\" , \"ID\" , c -> name , c -> hostname ) ;\n return false ;\n }\n if ( ! check_id ( name ) || ! strcmp ( name , myself -> name ) ) {\n logger ( LOG_ERR , \"Got bad %s from %s (%s): %s\" , \"ID\" , c -> name , c -> hostname , \"invalid name\" ) ;\n return false ;\n }\n if ( c -> outgoing ) {\n if ( strcmp ( c -> name , name ) ) {\n logger ( LOG_ERR , \"Peer %s is %s instead of %s\" , c -> hostname , name , c -> name ) ;\n return false ;\n }\n }\n else {\n if ( c -> name ) {\n free ( c -> name ) ;\n }\n c -> name = xstrdup ( name ) ;\n }\n if ( c -> protocol_version != myself -> connection -> protocol_version ) {\n logger ( LOG_ERR , \"Peer %s (%s) uses incompatible version %d\" , c -> name , c -> hostname , c -> protocol_version ) ;\n return false ;\n }\n if ( bypass_security ) {\n if ( ! c -> config_tree ) {\n init_configuration ( & c -> config_tree ) ;\n }\n c -> allow_request = ACK ;\n if ( ! c -> outgoing ) {\n send_id ( c ) ;\n }\n return send_ack ( c ) ;\n }\n if ( ! c -> config_tree ) {\n init_configuration ( & c -> config_tree ) ;\n if ( ! read_connection_config ( c ) ) {\n logger ( LOG_ERR , \"Peer %s had unknown identity (%s)\" , c -> hostname , c -> name ) ;\n return false ;\n }\n }\n if ( ! read_rsa_public_key ( c ) ) {\n return false ;\n }\n c -> allow_request = METAKEY ;\n if ( ! c -> outgoing ) {\n send_id ( c ) ;\n }\n return send_metakey ( c ) ;\n }"}
{"idx": 7445, "target": 0, "func": "TEST_F ( WebUsbDetectorTest , UsbDeviceAddedAndRemoved ) {\n base : : string16 product_name = base : : UTF8ToUTF16 ( kProductName_1 ) ;\n GURL landing_page ( kLandingPage_1 ) ;\n scoped_refptr < device : : MockUsbDevice > device ( new device : : MockUsbDevice ( 0 , 1 , \"Google\" , kProductName_1 , \"002\" , landing_page ) ) ;\n std : : string guid = device -> guid ( ) ;\n Initialize ( ) ;\n device_client_ . usb_service ( ) -> AddDevice ( device ) ;\n message_center : : Notification * notification = message_center_ -> FindVisibleNotificationById ( guid ) ;\n ASSERT_TRUE ( notification != nullptr ) ;\n base : : string16 expected_title = base : : ASCIIToUTF16 ( \"Google Product A detected\" ) ;\n EXPECT_EQ ( expected_title , notification -> title ( ) ) ;\n base : : string16 expected_message = base : : ASCIIToUTF16 ( \"Go to www.google.com to connect.\" ) ;\n EXPECT_EQ ( expected_message , notification -> message ( ) ) ;\n EXPECT_TRUE ( notification -> delegate ( ) != nullptr ) ;\n device_client_ . usb_service ( ) -> RemoveDevice ( device ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid ) == nullptr ) ;\n }"}
{"idx": 7446, "target": 0, "func": "static int decode_udvm_address_operand ( guint8 * buff , guint operand_address , guint16 * value , guint current_address ) {\n guint32 result ;\n guint16 value1 ;\n gint next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & value1 ) ;\n result = value1 & 0xffff ;\n result = result + current_address ;\n * value = result & 0xffff ;\n return next_operand_address ;\n }"}
{"idx": 7447, "target": 0, "func": "void fe_sendint64 ( int64 i , char * buf ) {\n uint32 n32 ;\n n32 = ( uint32 ) ( i >> 32 ) ;\n n32 = htonl ( n32 ) ;\n memcpy ( & buf [ 0 ] , & n32 , 4 ) ;\n n32 = ( uint32 ) i ;\n n32 = htonl ( n32 ) ;\n memcpy ( & buf [ 4 ] , & n32 , 4 ) ;\n }"}
{"idx": 7448, "target": 0, "func": "static void decode_filter_coeffs ( TAKDecContext * s , int filter_order , int size , int filter_quant , int16_t * filter ) {\n GetBitContext * gb = & s -> gb ;\n int i , j , a , b ;\n int filter_tmp [ MAX_PREDICTORS ] ;\n int16_t predictors [ MAX_PREDICTORS ] ;\n predictors [ 0 ] = get_sbits ( gb , 10 ) ;\n predictors [ 1 ] = get_sbits ( gb , 10 ) ;\n predictors [ 2 ] = get_sbits ( gb , size ) << ( 10 - size ) ;\n predictors [ 3 ] = get_sbits ( gb , size ) << ( 10 - size ) ;\n if ( filter_order > 4 ) {\n int av_uninit ( code_size ) ;\n int code_size_base = size - get_bits1 ( gb ) ;\n for ( i = 4 ;\n i < filter_order ;\n i ++ ) {\n if ( ! ( i & 3 ) ) code_size = code_size_base - get_bits ( gb , 2 ) ;\n predictors [ i ] = get_sbits ( gb , code_size ) << ( 10 - size ) ;\n }\n }\n filter_tmp [ 0 ] = predictors [ 0 ] << 6 ;\n for ( i = 1 ;\n i < filter_order ;\n i ++ ) {\n int * p1 = & filter_tmp [ 0 ] ;\n int * p2 = & filter_tmp [ i - 1 ] ;\n for ( j = 0 ;\n j < ( i + 1 ) / 2 ;\n j ++ ) {\n int tmp = * p1 + ( predictors [ i ] * * p2 + 256 >> 9 ) ;\n * p2 = * p2 + ( predictors [ i ] * * p1 + 256 >> 9 ) ;\n * p1 = tmp ;\n p1 ++ ;\n p2 -- ;\n }\n filter_tmp [ i ] = predictors [ i ] << 6 ;\n }\n a = 1 << ( 32 - ( 15 - filter_quant ) ) ;\n b = 1 << ( ( 15 - filter_quant ) - 1 ) ;\n for ( i = 0 , j = filter_order - 1 ;\n i < filter_order / 2 ;\n i ++ , j -- ) {\n filter [ j ] = a - ( ( filter_tmp [ i ] + b ) >> ( 15 - filter_quant ) ) ;\n filter [ i ] = a - ( ( filter_tmp [ j ] + b ) >> ( 15 - filter_quant ) ) ;\n }\n }"}
{"idx": 7449, "target": 1, "func": "static int parse_picture_segment ( AVCodecContext * avctx , const uint8_t * buf , int buf_size ) {\n PGSSubContext * ctx = avctx -> priv_data ;\n uint8_t sequence_desc ;\n unsigned int rle_bitmap_len , width , height ;\n uint16_t picture_id ;\n if ( buf_size <= 4 ) return - 1 ;\n buf_size -= 4 ;\n picture_id = bytestream_get_be16 ( & buf ) ;\n buf ++ ;\n sequence_desc = bytestream_get_byte ( & buf ) ;\n if ( ! ( sequence_desc & 0x80 ) ) {\n if ( buf_size > ctx -> pictures [ picture_id ] . rle_remaining_len ) return - 1 ;\n memcpy ( ctx -> pictures [ picture_id ] . rle + ctx -> pictures [ picture_id ] . rle_data_len , buf , buf_size ) ;\n ctx -> pictures [ picture_id ] . rle_data_len += buf_size ;\n ctx -> pictures [ picture_id ] . rle_remaining_len -= buf_size ;\n return 0 ;\n }\n if ( buf_size <= 7 ) return - 1 ;\n buf_size -= 7 ;\n rle_bitmap_len = bytestream_get_be24 ( & buf ) - 2 * 2 ;\n width = bytestream_get_be16 ( & buf ) ;\n height = bytestream_get_be16 ( & buf ) ;\n if ( avctx -> width < width || avctx -> height < height ) {\n av_log ( avctx , AV_LOG_ERROR , \"Bitmap dimensions larger than video.\\n\" ) ;\n return - 1 ;\n }\n ctx -> pictures [ picture_id ] . w = width ;\n ctx -> pictures [ picture_id ] . h = height ;\n av_fast_malloc ( & ctx -> pictures [ picture_id ] . rle , & ctx -> pictures [ picture_id ] . rle_buffer_size , rle_bitmap_len ) ;\n if ( ! ctx -> pictures [ picture_id ] . rle ) return - 1 ;\n memcpy ( ctx -> pictures [ picture_id ] . rle , buf , buf_size ) ;\n ctx -> pictures [ picture_id ] . rle_data_len = buf_size ;\n ctx -> pictures [ picture_id ] . rle_remaining_len = rle_bitmap_len - buf_size ;\n return 0 ;\n }"}
{"idx": 7450, "target": 0, "func": "int write_output ( void ) {\n int fd ;\n struct filter_op * fop ;\n struct filter_header fh ;\n size_t ninst , i ;\n u_char * data ;\n ninst = compile_tree ( & fop ) ;\n if ( fop == NULL ) return - E_NOTHANDLED ;\n if ( ninst == 0 ) return - E_INVALID ;\n fd = open ( EF_GBL_OPTIONS -> output_file , O_CREAT | O_RDWR | O_TRUNC | O_BINARY , 0644 ) ;\n ON_ERROR ( fd , - 1 , \"Can't create file %s\" , EF_GBL_OPTIONS -> output_file ) ;\n fprintf ( stdout , \" Writing output to \\'%s\\' \" , EF_GBL_OPTIONS -> output_file ) ;\n fflush ( stdout ) ;\n fh . magic = htons ( EC_FILTER_MAGIC ) ;\n strncpy ( fh . version , EC_VERSION , sizeof ( fh . version ) ) ;\n fh . data = sizeof ( fh ) ;\n data = create_data_segment ( & fh , fop , ninst ) ;\n write ( fd , & fh , sizeof ( struct filter_header ) ) ;\n write ( fd , data , fh . code - fh . data ) ;\n for ( i = 0 ;\n i <= ninst ;\n i ++ ) {\n print_progress_bar ( & fop [ i ] ) ;\n write ( fd , & fop [ i ] , sizeof ( struct filter_op ) ) ;\n }\n close ( fd ) ;\n fprintf ( stdout , \" done.\\n\\n\" ) ;\n fprintf ( stdout , \" -> Script encoded into %d instructions.\\n\\n\" , ( int ) ( i - 1 ) ) ;\n return E_SUCCESS ;\n }"}
{"idx": 7451, "target": 0, "func": "static void State_free ( void * ptr ) {\n JSON_Generator_State * state = ptr ;\n if ( state -> indent ) ruby_xfree ( state -> indent ) ;\n if ( state -> space ) ruby_xfree ( state -> space ) ;\n if ( state -> space_before ) ruby_xfree ( state -> space_before ) ;\n if ( state -> object_nl ) ruby_xfree ( state -> object_nl ) ;\n if ( state -> array_nl ) ruby_xfree ( state -> array_nl ) ;\n if ( state -> array_delim ) fbuffer_free ( state -> array_delim ) ;\n if ( state -> object_delim ) fbuffer_free ( state -> object_delim ) ;\n if ( state -> object_delim2 ) fbuffer_free ( state -> object_delim2 ) ;\n ruby_xfree ( state ) ;\n }"}
{"idx": 7452, "target": 0, "func": "void s390_virtio_device_update_status ( VirtIOS390Device * dev ) {\n VirtIODevice * vdev = dev -> vdev ;\n uint32_t features ;\n vdev -> status = ldub_phys ( dev -> dev_offs + VIRTIO_DEV_OFFS_STATUS ) ;\n features = ldl_phys ( dev -> feat_offs ) ;\n if ( vdev -> set_features ) {\n vdev -> set_features ( vdev , features ) ;\n }\n vdev -> guest_features = features ;\n }"}
{"idx": 7453, "target": 0, "func": "proto_tree * ptvcursor_push_subtree ( ptvcursor_t * ptvc , proto_item * it , gint ett_subtree ) {\n subtree_lvl * subtree ;\n if ( ptvc -> pushed_tree_index >= ptvc -> pushed_tree_max ) ptvcursor_new_subtree_levels ( ptvc ) ;\n subtree = ptvc -> pushed_tree + ptvc -> pushed_tree_index ;\n subtree -> tree = ptvc -> tree ;\n subtree -> it = NULL ;\n ptvc -> pushed_tree_index ++ ;\n return ptvcursor_set_subtree ( ptvc , it , ett_subtree ) ;\n }"}
{"idx": 7454, "target": 0, "func": "static void parse_content_disposition ( struct attachment_istream * astream , const struct message_header_line * hdr ) {\n i_free ( astream -> part . content_disposition ) ;\n astream -> part . content_disposition = i_strndup ( hdr -> full_value , hdr -> full_value_len ) ;\n }"}
{"idx": 7455, "target": 0, "func": "static int dissect_h245_Ind_multiplex ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_Ind_multiplex , Ind_multiplex_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 7456, "target": 1, "func": "static UConverter * _HZ_SafeClone ( const UConverter * cnv , void * stackBuffer , int32_t * pBufferSize , UErrorCode * status ) {\n struct cloneHZStruct * localClone ;\n int32_t size , bufferSizeNeeded = sizeof ( struct cloneHZStruct ) ;\n if ( U_FAILURE ( * status ) ) {\n return 0 ;\n }\n if ( * pBufferSize == 0 ) {\n * pBufferSize = bufferSizeNeeded ;\n return 0 ;\n }\n localClone = ( struct cloneHZStruct * ) stackBuffer ;\n uprv_memcpy ( & localClone -> mydata , cnv -> extraInfo , sizeof ( UConverterDataHZ ) ) ;\n localClone -> cnv . extraInfo = & localClone -> mydata ;\n localClone -> cnv . isExtraLocal = TRUE ;\n size = ( int32_t ) ( sizeof ( UConverter ) + sizeof ( UAlignedMemory ) ) ;\n ( ( UConverterDataHZ * ) localClone -> cnv . extraInfo ) -> gbConverter = ucnv_safeClone ( ( ( UConverterDataHZ * ) cnv -> extraInfo ) -> gbConverter , & localClone -> subCnv , & size , status ) ;\n return & localClone -> cnv ;\n }"}
{"idx": 7457, "target": 1, "func": "static void generate_psnr_packet ( VP9_COMP * cpi ) {\n struct vpx_codec_cx_pkt pkt ;\n int i ;\n PSNR_STATS psnr ;\n calc_psnr ( cpi -> Source , cpi -> common . frame_to_show , & psnr ) ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) {\n pkt . data . psnr . samples [ i ] = psnr . samples [ i ] ;\n pkt . data . psnr . sse [ i ] = psnr . sse [ i ] ;\n pkt . data . psnr . psnr [ i ] = psnr . psnr [ i ] ;\n }\n pkt . kind = VPX_CODEC_PSNR_PKT ;\n vpx_codec_pkt_list_add ( cpi -> output_pkt_list , & pkt ) ;\n }"}
{"idx": 7458, "target": 0, "func": "static void dumpoper ( FILE * cfff , int oper ) {\n if ( oper != - 1 ) {\n if ( oper >= 256 ) putc ( oper >> 8 , cfff ) ;\n putc ( oper & 0xff , cfff ) ;\n }\n }"}
{"idx": 7459, "target": 0, "func": "static GstFlowReturn gst_asf_demux_process_file ( GstASFDemux * demux , guint8 * data , guint64 size ) {\n guint64 creation_time G_GNUC_UNUSED ;\n guint64 file_size G_GNUC_UNUSED ;\n guint64 send_time G_GNUC_UNUSED ;\n guint64 packets_count , play_time , preroll ;\n guint32 flags , min_pktsize , max_pktsize , min_bitrate G_GNUC_UNUSED ;\n if ( size < ( 16 + 8 + 8 + 8 + 8 + 8 + 8 + 4 + 4 + 4 + 4 ) ) goto not_enough_data ;\n gst_asf_demux_skip_bytes ( 16 , & data , & size ) ;\n file_size = gst_asf_demux_get_uint64 ( & data , & size ) ;\n creation_time = gst_asf_demux_get_uint64 ( & data , & size ) ;\n packets_count = gst_asf_demux_get_uint64 ( & data , & size ) ;\n play_time = gst_asf_demux_get_uint64 ( & data , & size ) ;\n send_time = gst_asf_demux_get_uint64 ( & data , & size ) ;\n preroll = gst_asf_demux_get_uint64 ( & data , & size ) ;\n flags = gst_asf_demux_get_uint32 ( & data , & size ) ;\n min_pktsize = gst_asf_demux_get_uint32 ( & data , & size ) ;\n max_pktsize = gst_asf_demux_get_uint32 ( & data , & size ) ;\n min_bitrate = gst_asf_demux_get_uint32 ( & data , & size ) ;\n demux -> broadcast = ! ! ( flags & 0x01 ) ;\n demux -> seekable = ! ! ( flags & 0x02 ) ;\n GST_DEBUG_OBJECT ( demux , \"min_pktsize = %u\" , min_pktsize ) ;\n GST_DEBUG_OBJECT ( demux , \"flags::broadcast = %d\" , demux -> broadcast ) ;\n GST_DEBUG_OBJECT ( demux , \"flags::seekable = %d\" , demux -> seekable ) ;\n if ( demux -> broadcast ) {\n play_time = 0 ;\n file_size = 0 ;\n }\n if ( min_pktsize != max_pktsize ) goto non_fixed_packet_size ;\n demux -> packet_size = max_pktsize ;\n if ( ( play_time * 100 ) >= ( preroll * GST_MSECOND ) ) demux -> play_time = ( play_time * 100 ) - ( preroll * GST_MSECOND ) ;\n else demux -> play_time = 0 ;\n demux -> preroll = preroll * GST_MSECOND ;\n demux -> latency = demux -> preroll ;\n if ( demux -> play_time == 0 ) demux -> seekable = FALSE ;\n GST_DEBUG_OBJECT ( demux , \"play_time %\" GST_TIME_FORMAT , GST_TIME_ARGS ( demux -> play_time ) ) ;\n GST_DEBUG_OBJECT ( demux , \"preroll %\" GST_TIME_FORMAT , GST_TIME_ARGS ( demux -> preroll ) ) ;\n if ( demux -> play_time > 0 ) {\n demux -> segment . duration = demux -> play_time ;\n }\n GST_INFO ( \"object is a file with %\" G_GUINT64_FORMAT \" data packets\" , packets_count ) ;\n GST_INFO ( \"preroll = %\" G_GUINT64_FORMAT , demux -> preroll ) ;\n demux -> saw_file_header = TRUE ;\n return GST_FLOW_OK ;\n non_fixed_packet_size : {\n GST_ELEMENT_ERROR ( demux , STREAM , DEMUX , ( NULL ) , ( \"packet size must be fixed\" ) ) ;\n return GST_FLOW_ERROR ;\n }\n not_enough_data : {\n GST_ELEMENT_ERROR ( demux , STREAM , DEMUX , ( NULL ) , ( \"short read parsing FILE object\" ) ) ;\n return GST_FLOW_ERROR ;\n }\n }"}
{"idx": 7460, "target": 0, "func": "static int collated_compare ( const void * a , const void * b ) {\n const char * const s1 = * ( const char * const * const ) a ;\n const char * const s2 = * ( const char * const * const ) b ;\n if ( s1 == s2 ) return 0 ;\n if ( s1 == NULL ) return 1 ;\n if ( s2 == NULL ) return - 1 ;\n return strcoll ( s1 , s2 ) ;\n }"}
{"idx": 7461, "target": 0, "func": "static int decode_hextile ( VmncContext * c , uint8_t * dst , const uint8_t * src , int ssize , int w , int h , int stride ) {\n int i , j , k ;\n int bg = 0 , fg = 0 , rects , color , flags , xy , wh ;\n const int bpp = c -> bpp2 ;\n uint8_t * dst2 ;\n int bw = 16 , bh = 16 ;\n const uint8_t * ssrc = src ;\n for ( j = 0 ;\n j < h ;\n j += 16 ) {\n dst2 = dst ;\n bw = 16 ;\n if ( j + 16 > h ) bh = h - j ;\n for ( i = 0 ;\n i < w ;\n i += 16 , dst2 += 16 * bpp ) {\n if ( src - ssrc >= ssize ) {\n av_log ( c -> avctx , AV_LOG_ERROR , \"Premature end of data!\\n\" ) ;\n return - 1 ;\n }\n if ( i + 16 > w ) bw = w - i ;\n flags = * src ++ ;\n if ( flags & HT_RAW ) {\n if ( src - ssrc > ssize - bw * bh * bpp ) {\n av_log ( c -> avctx , AV_LOG_ERROR , \"Premature end of data!\\n\" ) ;\n return - 1 ;\n }\n paint_raw ( dst2 , bw , bh , src , bpp , c -> bigendian , stride ) ;\n src += bw * bh * bpp ;\n }\n else {\n if ( flags & HT_BKG ) {\n bg = vmnc_get_pixel ( src , bpp , c -> bigendian ) ;\n src += bpp ;\n }\n if ( flags & HT_FG ) {\n fg = vmnc_get_pixel ( src , bpp , c -> bigendian ) ;\n src += bpp ;\n }\n rects = 0 ;\n if ( flags & HT_SUB ) rects = * src ++ ;\n color = ! ! ( flags & HT_CLR ) ;\n paint_rect ( dst2 , 0 , 0 , bw , bh , bg , bpp , stride ) ;\n if ( src - ssrc > ssize - rects * ( color * bpp + 2 ) ) {\n av_log ( c -> avctx , AV_LOG_ERROR , \"Premature end of data!\\n\" ) ;\n return - 1 ;\n }\n for ( k = 0 ;\n k < rects ;\n k ++ ) {\n if ( color ) {\n fg = vmnc_get_pixel ( src , bpp , c -> bigendian ) ;\n src += bpp ;\n }\n xy = * src ++ ;\n wh = * src ++ ;\n paint_rect ( dst2 , xy >> 4 , xy & 0xF , ( wh >> 4 ) + 1 , ( wh & 0xF ) + 1 , fg , bpp , stride ) ;\n }\n }\n }\n dst += stride * 16 ;\n }\n return src - ssrc ;\n }"}
{"idx": 7462, "target": 0, "func": "static int mp_decode_layer2 ( MPADecodeContext * s ) {\n int sblimit ;\n const unsigned char * alloc_table ;\n int table , bit_alloc_bits , i , j , ch , bound , v ;\n unsigned char bit_alloc [ MPA_MAX_CHANNELS ] [ SBLIMIT ] ;\n unsigned char scale_code [ MPA_MAX_CHANNELS ] [ SBLIMIT ] ;\n unsigned char scale_factors [ MPA_MAX_CHANNELS ] [ SBLIMIT ] [ 3 ] , * sf ;\n int scale , qindex , bits , steps , k , l , m , b ;\n table = ff_mpa_l2_select_table ( s -> bit_rate / 1000 , s -> nb_channels , s -> sample_rate , s -> lsf ) ;\n sblimit = ff_mpa_sblimit_table [ table ] ;\n alloc_table = ff_mpa_alloc_tables [ table ] ;\n if ( s -> mode == MPA_JSTEREO ) bound = ( s -> mode_ext + 1 ) * 4 ;\n else bound = sblimit ;\n av_dlog ( s -> avctx , \"bound=%d sblimit=%d\\n\" , bound , sblimit ) ;\n if ( bound > sblimit ) bound = sblimit ;\n j = 0 ;\n for ( i = 0 ;\n i < bound ;\n i ++ ) {\n bit_alloc_bits = alloc_table [ j ] ;\n for ( ch = 0 ;\n ch < s -> nb_channels ;\n ch ++ ) bit_alloc [ ch ] [ i ] = get_bits ( & s -> gb , bit_alloc_bits ) ;\n j += 1 << bit_alloc_bits ;\n }\n for ( i = bound ;\n i < sblimit ;\n i ++ ) {\n bit_alloc_bits = alloc_table [ j ] ;\n v = get_bits ( & s -> gb , bit_alloc_bits ) ;\n bit_alloc [ 0 ] [ i ] = v ;\n bit_alloc [ 1 ] [ i ] = v ;\n j += 1 << bit_alloc_bits ;\n }\n for ( i = 0 ;\n i < sblimit ;\n i ++ ) {\n for ( ch = 0 ;\n ch < s -> nb_channels ;\n ch ++ ) {\n if ( bit_alloc [ ch ] [ i ] ) scale_code [ ch ] [ i ] = get_bits ( & s -> gb , 2 ) ;\n }\n }\n for ( i = 0 ;\n i < sblimit ;\n i ++ ) {\n for ( ch = 0 ;\n ch < s -> nb_channels ;\n ch ++ ) {\n if ( bit_alloc [ ch ] [ i ] ) {\n sf = scale_factors [ ch ] [ i ] ;\n switch ( scale_code [ ch ] [ i ] ) {\n default : case 0 : sf [ 0 ] = get_bits ( & s -> gb , 6 ) ;\n sf [ 1 ] = get_bits ( & s -> gb , 6 ) ;\n sf [ 2 ] = get_bits ( & s -> gb , 6 ) ;\n break ;\n case 2 : sf [ 0 ] = get_bits ( & s -> gb , 6 ) ;\n sf [ 1 ] = sf [ 0 ] ;\n sf [ 2 ] = sf [ 0 ] ;\n break ;\n case 1 : sf [ 0 ] = get_bits ( & s -> gb , 6 ) ;\n sf [ 2 ] = get_bits ( & s -> gb , 6 ) ;\n sf [ 1 ] = sf [ 0 ] ;\n break ;\n case 3 : sf [ 0 ] = get_bits ( & s -> gb , 6 ) ;\n sf [ 2 ] = get_bits ( & s -> gb , 6 ) ;\n sf [ 1 ] = sf [ 2 ] ;\n break ;\n }\n }\n }\n }\n for ( k = 0 ;\n k < 3 ;\n k ++ ) {\n for ( l = 0 ;\n l < 12 ;\n l += 3 ) {\n j = 0 ;\n for ( i = 0 ;\n i < bound ;\n i ++ ) {\n bit_alloc_bits = alloc_table [ j ] ;\n for ( ch = 0 ;\n ch < s -> nb_channels ;\n ch ++ ) {\n b = bit_alloc [ ch ] [ i ] ;\n if ( b ) {\n scale = scale_factors [ ch ] [ i ] [ k ] ;\n qindex = alloc_table [ j + b ] ;\n bits = ff_mpa_quant_bits [ qindex ] ;\n if ( bits < 0 ) {\n int v2 ;\n v = get_bits ( & s -> gb , - bits ) ;\n v2 = division_tabs [ qindex ] [ v ] ;\n steps = ff_mpa_quant_steps [ qindex ] ;\n s -> sb_samples [ ch ] [ k * 12 + l + 0 ] [ i ] = l2_unscale_group ( steps , v2 & 15 , scale ) ;\n s -> sb_samples [ ch ] [ k * 12 + l + 1 ] [ i ] = l2_unscale_group ( steps , ( v2 >> 4 ) & 15 , scale ) ;\n s -> sb_samples [ ch ] [ k * 12 + l + 2 ] [ i ] = l2_unscale_group ( steps , v2 >> 8 , scale ) ;\n }\n else {\n for ( m = 0 ;\n m < 3 ;\n m ++ ) {\n v = get_bits ( & s -> gb , bits ) ;\n v = l1_unscale ( bits - 1 , v , scale ) ;\n s -> sb_samples [ ch ] [ k * 12 + l + m ] [ i ] = v ;\n }\n }\n }\n else {\n s -> sb_samples [ ch ] [ k * 12 + l + 0 ] [ i ] = 0 ;\n s -> sb_samples [ ch ] [ k * 12 + l + 1 ] [ i ] = 0 ;\n s -> sb_samples [ ch ] [ k * 12 + l + 2 ] [ i ] = 0 ;\n }\n }\n j += 1 << bit_alloc_bits ;\n }\n for ( i = bound ;\n i < sblimit ;\n i ++ ) {\n bit_alloc_bits = alloc_table [ j ] ;\n b = bit_alloc [ 0 ] [ i ] ;\n if ( b ) {\n int mant , scale0 , scale1 ;\n scale0 = scale_factors [ 0 ] [ i ] [ k ] ;\n scale1 = scale_factors [ 1 ] [ i ] [ k ] ;\n qindex = alloc_table [ j + b ] ;\n bits = ff_mpa_quant_bits [ qindex ] ;\n if ( bits < 0 ) {\n v = get_bits ( & s -> gb , - bits ) ;\n steps = ff_mpa_quant_steps [ qindex ] ;\n mant = v % steps ;\n v = v / steps ;\n s -> sb_samples [ 0 ] [ k * 12 + l + 0 ] [ i ] = l2_unscale_group ( steps , mant , scale0 ) ;\n s -> sb_samples [ 1 ] [ k * 12 + l + 0 ] [ i ] = l2_unscale_group ( steps , mant , scale1 ) ;\n mant = v % steps ;\n v = v / steps ;\n s -> sb_samples [ 0 ] [ k * 12 + l + 1 ] [ i ] = l2_unscale_group ( steps , mant , scale0 ) ;\n s -> sb_samples [ 1 ] [ k * 12 + l + 1 ] [ i ] = l2_unscale_group ( steps , mant , scale1 ) ;\n s -> sb_samples [ 0 ] [ k * 12 + l + 2 ] [ i ] = l2_unscale_group ( steps , v , scale0 ) ;\n s -> sb_samples [ 1 ] [ k * 12 + l + 2 ] [ i ] = l2_unscale_group ( steps , v , scale1 ) ;\n }\n else {\n for ( m = 0 ;\n m < 3 ;\n m ++ ) {\n mant = get_bits ( & s -> gb , bits ) ;\n s -> sb_samples [ 0 ] [ k * 12 + l + m ] [ i ] = l1_unscale ( bits - 1 , mant , scale0 ) ;\n s -> sb_samples [ 1 ] [ k * 12 + l + m ] [ i ] = l1_unscale ( bits - 1 , mant , scale1 ) ;\n }\n }\n }\n else {\n s -> sb_samples [ 0 ] [ k * 12 + l + 0 ] [ i ] = 0 ;\n s -> sb_samples [ 0 ] [ k * 12 + l + 1 ] [ i ] = 0 ;\n s -> sb_samples [ 0 ] [ k * 12 + l + 2 ] [ i ] = 0 ;\n s -> sb_samples [ 1 ] [ k * 12 + l + 0 ] [ i ] = 0 ;\n s -> sb_samples [ 1 ] [ k * 12 + l + 1 ] [ i ] = 0 ;\n s -> sb_samples [ 1 ] [ k * 12 + l + 2 ] [ i ] = 0 ;\n }\n j += 1 << bit_alloc_bits ;\n }\n for ( i = sblimit ;\n i < SBLIMIT ;\n i ++ ) {\n for ( ch = 0 ;\n ch < s -> nb_channels ;\n ch ++ ) {\n s -> sb_samples [ ch ] [ k * 12 + l + 0 ] [ i ] = 0 ;\n s -> sb_samples [ ch ] [ k * 12 + l + 1 ] [ i ] = 0 ;\n s -> sb_samples [ ch ] [ k * 12 + l + 2 ] [ i ] = 0 ;\n }\n }\n }\n }\n return 3 * 12 ;\n }"}
{"idx": 7463, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl )"}
{"idx": 7464, "target": 0, "func": "static void test_long_data_str ( ) {\n MYSQL_STMT * stmt ;\n int rc , i ;\n char data [ 255 ] ;\n long length ;\n ulong length1 ;\n MYSQL_RES * result ;\n MYSQL_BIND my_bind [ 2 ] ;\n my_bool is_null [ 2 ] ;\n char query [ MAX_TEST_QUERY_LENGTH ] ;\n myheader ( \"test_long_data_str\" ) ;\n rc = mysql_autocommit ( mysql , TRUE ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_long_data_str\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_long_data_str(id int, longstr long varchar)\" ) ;\n myquery ( rc ) ;\n strmov ( query , \"INSERT INTO test_long_data_str VALUES(?, ?)\" ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 2 ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer = ( void * ) & length ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 0 ] . is_null = & is_null [ 0 ] ;\n is_null [ 0 ] = 0 ;\n length = 0 ;\n my_bind [ 1 ] . buffer = data ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 1 ] . length = & length1 ;\n my_bind [ 1 ] . is_null = & is_null [ 1 ] ;\n is_null [ 1 ] = 0 ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n length = 40 ;\n strmov ( data , \"MySQL AB\" ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n rc = mysql_stmt_send_long_data ( stmt , 1 , ( char * ) data , 5 ) ;\n check_execute ( stmt , rc ) ;\n }\n rc = mysql_stmt_execute ( stmt ) ;\n if ( ! opt_silent ) fprintf ( stdout , \" mysql_stmt_execute() returned %d\\n\" , rc ) ;\n check_execute ( stmt , rc ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"SELECT LENGTH(longstr), longstr FROM test_long_data_str\" ) ;\n myquery ( rc ) ;\n result = mysql_store_result ( mysql ) ;\n mytest ( result ) ;\n rc = my_process_result_set ( result ) ;\n DIE_UNLESS ( rc == 1 ) ;\n mysql_free_result ( result ) ;\n sprintf ( data , \"%d\" , i * 5 ) ;\n verify_col_data ( \"test_long_data_str\" , \"LENGTH(longstr)\" , data ) ;\n data [ 0 ] = '\\0' ;\n while ( i -- ) strxmov ( data , data , \"MySQL\" , NullS ) ;\n verify_col_data ( \"test_long_data_str\" , \"longstr\" , data ) ;\n rc = mysql_query ( mysql , \"DROP TABLE test_long_data_str\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 7465, "target": 1, "func": "static void read_sbr_noise ( SpectralBandReplication * sbr , GetBitContext * gb , SBRData * ch_data , int ch ) {\n int i , j ;\n VLC_TYPE ( * t_huff ) [ 2 ] , ( * f_huff ) [ 2 ] ;\n int t_lav , f_lav ;\n int delta = ( ch == 1 && sbr -> bs_coupling == 1 ) + 1 ;\n if ( sbr -> bs_coupling && ch ) {\n t_huff = vlc_sbr [ T_HUFFMAN_NOISE_BAL_3_0DB ] . table ;\n t_lav = vlc_sbr_lav [ T_HUFFMAN_NOISE_BAL_3_0DB ] ;\n f_huff = vlc_sbr [ F_HUFFMAN_ENV_BAL_3_0DB ] . table ;\n f_lav = vlc_sbr_lav [ F_HUFFMAN_ENV_BAL_3_0DB ] ;\n }\n else {\n t_huff = vlc_sbr [ T_HUFFMAN_NOISE_3_0DB ] . table ;\n t_lav = vlc_sbr_lav [ T_HUFFMAN_NOISE_3_0DB ] ;\n f_huff = vlc_sbr [ F_HUFFMAN_ENV_3_0DB ] . table ;\n f_lav = vlc_sbr_lav [ F_HUFFMAN_ENV_3_0DB ] ;\n }\n for ( i = 0 ;\n i < ch_data -> bs_num_noise ;\n i ++ ) {\n if ( ch_data -> bs_df_noise [ i ] ) {\n for ( j = 0 ;\n j < sbr -> n_q ;\n j ++ ) ch_data -> noise_facs [ i + 1 ] [ j ] = ch_data -> noise_facs [ i ] [ j ] + delta * ( get_vlc2 ( gb , t_huff , 9 , 2 ) - t_lav ) ;\n }\n else {\n ch_data -> noise_facs [ i + 1 ] [ 0 ] = delta * get_bits ( gb , 5 ) ;\n for ( j = 1 ;\n j < sbr -> n_q ;\n j ++ ) ch_data -> noise_facs [ i + 1 ] [ j ] = ch_data -> noise_facs [ i + 1 ] [ j - 1 ] + delta * ( get_vlc2 ( gb , f_huff , 9 , 3 ) - f_lav ) ;\n }\n }\n memcpy ( ch_data -> noise_facs [ 0 ] , ch_data -> noise_facs [ ch_data -> bs_num_noise ] , sizeof ( ch_data -> noise_facs [ 0 ] ) ) ;\n }"}
{"idx": 7466, "target": 0, "func": "static uint32_t PPC_io_readb ( target_phys_addr_t addr ) {\n uint32_t ret = cpu_inb ( NULL , addr - PPC_IO_BASE ) ;\n # if 0 if ( ( addr < 0x800003F0 || addr > 0x80000400 ) && ( addr < 0x80000074 || addr > 0x80000077 ) && ( addr < 0x80000020 || addr > 0x80000021 ) && ( addr < 0x800000a0 || addr > 0x800000a1 ) && ( addr < 0x800001f0 || addr > 0x800001f7 ) && ( addr < 0x80000170 || addr > 0x80000177 ) && ( addr < 0x8000060 || addr > 0x8000064 ) ) # endif {\n PPC_IO_DPRINTF ( \"0x%08x <= 0x%02x\\n\" , addr - PPC_IO_BASE , ret ) ;\n }\n return ret ;\n }"}
{"idx": 7467, "target": 0, "func": "TSReturnCode TSMimeHdrFieldValueUintInsert ( TSMBuffer bufp , TSMLoc hdr , TSMLoc field , int idx , unsigned int value ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( hdr ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( hdr ) == TS_SUCCESS ) ) ;\n sdk_assert ( sdk_sanity_check_field_handle ( field , hdr ) == TS_SUCCESS ) ;\n if ( ! isWriteable ( bufp ) ) {\n return TS_ERROR ;\n }\n char tmp [ 16 ] ;\n int len = mime_format_uint ( tmp , value , sizeof ( tmp ) ) ;\n TSMimeFieldValueInsert ( bufp , field , tmp , len , idx ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 7468, "target": 0, "func": "static int find_unused_picture ( MpegEncContext * s , int shared ) {\n int i ;\n if ( shared ) {\n for ( i = 0 ;\n i < MAX_PICTURE_COUNT ;\n i ++ ) {\n if ( s -> picture [ i ] . f . data [ 0 ] == NULL ) return i ;\n }\n }\n else {\n for ( i = 0 ;\n i < MAX_PICTURE_COUNT ;\n i ++ ) {\n if ( pic_is_unused ( s , & s -> picture [ i ] ) ) return i ;\n }\n }\n return AVERROR_INVALIDDATA ;\n }"}
{"idx": 7469, "target": 0, "func": "static void dca_exss_parse_header ( DCAContext * s ) {\n int ss_index ;\n int blownup ;\n int num_audiop = 1 ;\n int num_assets = 1 ;\n int active_ss_mask [ 8 ] ;\n int i , j ;\n if ( get_bits_left ( & s -> gb ) < 52 ) return ;\n skip_bits ( & s -> gb , 8 ) ;\n ss_index = get_bits ( & s -> gb , 2 ) ;\n blownup = get_bits1 ( & s -> gb ) ;\n skip_bits ( & s -> gb , 8 + 4 * blownup ) ;\n skip_bits ( & s -> gb , 16 + 4 * blownup ) ;\n s -> static_fields = get_bits1 ( & s -> gb ) ;\n if ( s -> static_fields ) {\n skip_bits ( & s -> gb , 2 ) ;\n skip_bits ( & s -> gb , 3 ) ;\n if ( get_bits1 ( & s -> gb ) ) skip_bits_long ( & s -> gb , 36 ) ;\n num_audiop = get_bits ( & s -> gb , 3 ) + 1 ;\n if ( num_audiop > 1 ) {\n av_log_ask_for_sample ( s -> avctx , \"Multiple DTS-HD audio presentations.\" ) ;\n return ;\n }\n num_assets = get_bits ( & s -> gb , 3 ) + 1 ;\n if ( num_assets > 1 ) {\n av_log_ask_for_sample ( s -> avctx , \"Multiple DTS-HD audio assets.\" ) ;\n return ;\n }\n for ( i = 0 ;\n i < num_audiop ;\n i ++ ) active_ss_mask [ i ] = get_bits ( & s -> gb , ss_index + 1 ) ;\n for ( i = 0 ;\n i < num_audiop ;\n i ++ ) for ( j = 0 ;\n j <= ss_index ;\n j ++ ) if ( active_ss_mask [ i ] & ( 1 << j ) ) skip_bits ( & s -> gb , 8 ) ;\n s -> mix_metadata = get_bits1 ( & s -> gb ) ;\n if ( s -> mix_metadata ) {\n int mix_out_mask_size ;\n skip_bits ( & s -> gb , 2 ) ;\n mix_out_mask_size = ( get_bits ( & s -> gb , 2 ) + 1 ) << 2 ;\n s -> num_mix_configs = get_bits ( & s -> gb , 2 ) + 1 ;\n for ( i = 0 ;\n i < s -> num_mix_configs ;\n i ++ ) {\n int mix_out_mask = get_bits ( & s -> gb , mix_out_mask_size ) ;\n s -> mix_config_num_ch [ i ] = dca_exss_mask2count ( mix_out_mask ) ;\n }\n }\n }\n for ( i = 0 ;\n i < num_assets ;\n i ++ ) skip_bits_long ( & s -> gb , 16 + 4 * blownup ) ;\n for ( i = 0 ;\n i < num_assets ;\n i ++ ) {\n if ( dca_exss_parse_asset_header ( s ) ) return ;\n }\n }"}
{"idx": 7470, "target": 0, "func": "static int vorbis_parse_setup_hdr_mappings ( vorbis_context * vc ) {\n GetBitContext * gb = & vc -> gb ;\n unsigned i , j ;\n vc -> mapping_count = get_bits ( gb , 6 ) + 1 ;\n vc -> mappings = av_mallocz ( vc -> mapping_count * sizeof ( * vc -> mappings ) ) ;\n if ( ! vc -> mappings ) return AVERROR ( ENOMEM ) ;\n av_dlog ( NULL , \" There are %d mappings. \\n\" , vc -> mapping_count ) ;\n for ( i = 0 ;\n i < vc -> mapping_count ;\n ++ i ) {\n vorbis_mapping * mapping_setup = & vc -> mappings [ i ] ;\n if ( get_bits ( gb , 16 ) ) {\n av_log ( vc -> avctx , AV_LOG_ERROR , \"Other mappings than type 0 are not compliant with the Vorbis I specification. \\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( get_bits1 ( gb ) ) {\n mapping_setup -> submaps = get_bits ( gb , 4 ) + 1 ;\n }\n else {\n mapping_setup -> submaps = 1 ;\n }\n if ( get_bits1 ( gb ) ) {\n mapping_setup -> coupling_steps = get_bits ( gb , 8 ) + 1 ;\n mapping_setup -> magnitude = av_mallocz ( mapping_setup -> coupling_steps * sizeof ( * mapping_setup -> magnitude ) ) ;\n mapping_setup -> angle = av_mallocz ( mapping_setup -> coupling_steps * sizeof ( * mapping_setup -> angle ) ) ;\n if ( ! mapping_setup -> angle || ! mapping_setup -> magnitude ) return AVERROR ( ENOMEM ) ;\n for ( j = 0 ;\n j < mapping_setup -> coupling_steps ;\n ++ j ) {\n GET_VALIDATED_INDEX ( mapping_setup -> magnitude [ j ] , ilog ( vc -> audio_channels - 1 ) , vc -> audio_channels ) GET_VALIDATED_INDEX ( mapping_setup -> angle [ j ] , ilog ( vc -> audio_channels - 1 ) , vc -> audio_channels ) }\n }\n else {\n mapping_setup -> coupling_steps = 0 ;\n }\n av_dlog ( NULL , \" %u mapping coupling steps: %d\\n\" , i , mapping_setup -> coupling_steps ) ;\n if ( get_bits ( gb , 2 ) ) {\n av_log ( vc -> avctx , AV_LOG_ERROR , \"%u. mapping setup data invalid.\\n\" , i ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( mapping_setup -> submaps > 1 ) {\n mapping_setup -> mux = av_mallocz ( vc -> audio_channels * sizeof ( * mapping_setup -> mux ) ) ;\n if ( ! mapping_setup -> mux ) return AVERROR ( ENOMEM ) ;\n for ( j = 0 ;\n j < vc -> audio_channels ;\n ++ j ) mapping_setup -> mux [ j ] = get_bits ( gb , 4 ) ;\n }\n for ( j = 0 ;\n j < mapping_setup -> submaps ;\n ++ j ) {\n skip_bits ( gb , 8 ) ;\n GET_VALIDATED_INDEX ( mapping_setup -> submap_floor [ j ] , 8 , vc -> floor_count ) GET_VALIDATED_INDEX ( mapping_setup -> submap_residue [ j ] , 8 , vc -> residue_count ) av_dlog ( NULL , \" %u mapping %u submap : floor %d, residue %d\\n\" , i , j , mapping_setup -> submap_floor [ j ] , mapping_setup -> submap_residue [ j ] ) ;\n }\n }\n return 0 ;\n }"}
{"idx": 7471, "target": 0, "func": "static void pdf_run_xobject ( fz_context * ctx , pdf_run_processor * proc , pdf_xobject * xobj , pdf_obj * page_resources , const fz_matrix * transform , int is_smask ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_gstate * gstate = NULL ;\n int oldtop = 0 ;\n int oldbot = - 1 ;\n fz_matrix local_transform = * transform ;\n softmask_save softmask = {\n NULL }\n ;\n int gparent_save ;\n fz_matrix gparent_save_ctm ;\n int cleanup_state = 0 ;\n char errmess [ 256 ] = \"\" ;\n pdf_obj * resources ;\n fz_rect xobj_bbox ;\n fz_matrix xobj_matrix ;\n int transparency = 0 ;\n pdf_document * doc ;\n fz_colorspace * cs = NULL ;\n fz_default_colorspaces * saved_def_cs = NULL ;\n if ( xobj == NULL || pdf_mark_obj ( ctx , xobj -> obj ) ) return ;\n fz_var ( cleanup_state ) ;\n fz_var ( gstate ) ;\n fz_var ( oldtop ) ;\n fz_var ( oldbot ) ;\n fz_var ( cs ) ;\n fz_var ( saved_def_cs ) ;\n gparent_save = pr -> gparent ;\n pr -> gparent = pr -> gtop ;\n oldtop = pr -> gtop ;\n fz_try ( ctx ) {\n pdf_gsave ( ctx , pr ) ;\n gstate = pr -> gstate + pr -> gtop ;\n pdf_xobject_bbox ( ctx , xobj , & xobj_bbox ) ;\n pdf_xobject_matrix ( ctx , xobj , & xobj_matrix ) ;\n transparency = pdf_xobject_transparency ( ctx , xobj ) ;\n fz_concat ( & local_transform , & xobj_matrix , & local_transform ) ;\n fz_concat ( & gstate -> ctm , & local_transform , & gstate -> ctm ) ;\n gparent_save_ctm = pr -> gstate [ pr -> gparent ] . ctm ;\n pr -> gstate [ pr -> gparent ] . ctm = gstate -> ctm ;\n if ( transparency ) {\n fz_rect bbox ;\n int isolated = pdf_xobject_isolated ( ctx , xobj ) ;\n bbox = xobj_bbox ;\n fz_transform_rect ( & bbox , & gstate -> ctm ) ;\n cleanup_state = 1 ;\n gstate = begin_softmask ( ctx , pr , & softmask ) ;\n cleanup_state = 2 ;\n if ( isolated ) cs = pdf_xobject_colorspace ( ctx , xobj ) ;\n fz_begin_group ( ctx , pr -> dev , & bbox , cs , ( is_smask ? 1 : isolated ) , pdf_xobject_knockout ( ctx , xobj ) , gstate -> blendmode , gstate -> fill . alpha ) ;\n gstate -> blendmode = 0 ;\n gstate -> stroke . alpha = 1 ;\n gstate -> fill . alpha = 1 ;\n }\n cleanup_state = 3 ;\n pdf_gsave ( ctx , pr ) ;\n fz_moveto ( ctx , pr -> path , xobj_bbox . x0 , xobj_bbox . y0 ) ;\n fz_lineto ( ctx , pr -> path , xobj_bbox . x1 , xobj_bbox . y0 ) ;\n fz_lineto ( ctx , pr -> path , xobj_bbox . x1 , xobj_bbox . y1 ) ;\n fz_lineto ( ctx , pr -> path , xobj_bbox . x0 , xobj_bbox . y1 ) ;\n fz_closepath ( ctx , pr -> path ) ;\n pr -> clip = 1 ;\n pdf_show_path ( ctx , pr , 0 , 0 , 0 , 0 ) ;\n resources = pdf_xobject_resources ( ctx , xobj ) ;\n if ( ! resources ) resources = page_resources ;\n saved_def_cs = pr -> default_cs ;\n pr -> default_cs = NULL ;\n pr -> default_cs = pdf_update_default_colorspaces ( ctx , saved_def_cs , resources ) ;\n if ( pr -> default_cs != saved_def_cs ) fz_set_default_colorspaces ( ctx , pr -> dev , pr -> default_cs ) ;\n doc = pdf_get_bound_document ( ctx , xobj -> obj ) ;\n oldbot = pr -> gbot ;\n pr -> gbot = pr -> gtop ;\n pdf_process_contents ( ctx , ( pdf_processor * ) pr , doc , resources , xobj -> obj , NULL ) ;\n }\n fz_always ( ctx ) {\n fz_drop_colorspace ( ctx , cs ) ;\n if ( saved_def_cs ) {\n fz_drop_default_colorspaces ( ctx , pr -> default_cs ) ;\n pr -> default_cs = saved_def_cs ;\n fz_try ( ctx ) {\n fz_set_default_colorspaces ( ctx , pr -> dev , pr -> default_cs ) ;\n }\n fz_catch ( ctx ) {\n strcpy ( errmess , fz_caught_message ( ctx ) ) ;\n }\n }\n if ( oldbot != - 1 ) {\n while ( pr -> gtop > pr -> gbot ) {\n pdf_grestore ( ctx , pr ) ;\n }\n pr -> gbot = oldbot ;\n }\n if ( cleanup_state >= 3 ) pdf_grestore ( ctx , pr ) ;\n if ( transparency ) {\n if ( cleanup_state >= 2 ) {\n fz_try ( ctx ) {\n fz_end_group ( ctx , pr -> dev ) ;\n }\n fz_catch ( ctx ) {\n if ( errmess [ 0 ] ) fz_warn ( ctx , \"%s\" , errmess ) ;\n strcpy ( errmess , fz_caught_message ( ctx ) ) ;\n }\n }\n if ( cleanup_state >= 1 ) {\n fz_try ( ctx ) {\n end_softmask ( ctx , pr , & softmask ) ;\n }\n fz_catch ( ctx ) {\n if ( errmess [ 0 ] ) fz_warn ( ctx , \"%s\" , errmess ) ;\n strcpy ( errmess , fz_caught_message ( ctx ) ) ;\n }\n }\n }\n pr -> gstate [ pr -> gparent ] . ctm = gparent_save_ctm ;\n pr -> gparent = gparent_save ;\n while ( oldtop < pr -> gtop ) pdf_grestore ( ctx , pr ) ;\n pdf_unmark_obj ( ctx , xobj -> obj ) ;\n }\n fz_catch ( ctx ) {\n fz_rethrow ( ctx ) ;\n }\n if ( errmess [ 0 ] ) fz_throw ( ctx , FZ_ERROR_GENERIC , \"%s\" , errmess ) ;\n }"}
{"idx": 7472, "target": 0, "func": "static int dissect_h245_H2250LogicalChannelAckParameters ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_H2250LogicalChannelAckParameters , H2250LogicalChannelAckParameters_sequence ) ;\n return offset ;\n }"}
{"idx": 7473, "target": 0, "func": "static int32_t U_CALLCONV uprv_copyArray64 ( const UDataSwapper * ds , const void * inData , int32_t length , void * outData , UErrorCode * pErrorCode ) {\n if ( pErrorCode == NULL || U_FAILURE ( * pErrorCode ) ) {\n return 0 ;\n }\n if ( ds == NULL || inData == NULL || length < 0 || ( length & 7 ) != 0 || outData == NULL ) {\n * pErrorCode = U_ILLEGAL_ARGUMENT_ERROR ;\n return 0 ;\n }\n if ( length > 0 && inData != outData ) {\n uprv_memcpy ( outData , inData , length ) ;\n }\n return length ;\n }"}
{"idx": 7474, "target": 0, "func": "void TSCacheHttpInfoDestroy ( TSCacheHttpInfo infop ) {\n ( ( CacheHTTPInfo * ) infop ) -> destroy ( ) ;\n }"}
{"idx": 7475, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n KmvcContext * const ctx = avctx -> priv_data ;\n AVFrame * frame = data ;\n uint8_t * out , * src ;\n int i , ret ;\n int header ;\n int blocksize ;\n const uint8_t * pal = av_packet_get_side_data ( avpkt , AV_PKT_DATA_PALETTE , NULL ) ;\n bytestream2_init ( & ctx -> g , avpkt -> data , avpkt -> size ) ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n header = bytestream2_get_byte ( & ctx -> g ) ;\n if ( bytestream2_peek_byte ( & ctx -> g ) == 127 ) {\n bytestream2_skip ( & ctx -> g , 3 ) ;\n for ( i = 0 ;\n i < 127 ;\n i ++ ) {\n ctx -> pal [ i + ( header & 0x81 ) ] = bytestream2_get_be24 ( & ctx -> g ) ;\n bytestream2_skip ( & ctx -> g , 1 ) ;\n }\n bytestream2_seek ( & ctx -> g , - 127 * 4 - 3 , SEEK_CUR ) ;\n }\n if ( header & KMVC_KEYFRAME ) {\n frame -> key_frame = 1 ;\n frame -> pict_type = AV_PICTURE_TYPE_I ;\n }\n else {\n frame -> key_frame = 0 ;\n frame -> pict_type = AV_PICTURE_TYPE_P ;\n }\n if ( header & KMVC_PALETTE ) {\n frame -> palette_has_changed = 1 ;\n for ( i = 1 ;\n i <= ctx -> palsize ;\n i ++ ) {\n ctx -> pal [ i ] = bytestream2_get_be24 ( & ctx -> g ) ;\n }\n }\n if ( pal ) {\n frame -> palette_has_changed = 1 ;\n memcpy ( ctx -> pal , pal , AVPALETTE_SIZE ) ;\n }\n if ( ctx -> setpal ) {\n ctx -> setpal = 0 ;\n frame -> palette_has_changed = 1 ;\n }\n memcpy ( frame -> data [ 1 ] , ctx -> pal , 1024 ) ;\n blocksize = bytestream2_get_byte ( & ctx -> g ) ;\n if ( blocksize != 8 && blocksize != 127 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Block size = %i\\n\" , blocksize ) ;\n return AVERROR_INVALIDDATA ;\n }\n memset ( ctx -> cur , 0 , 320 * 200 ) ;\n switch ( header & KMVC_METHOD ) {\n case 0 : case 1 : memcpy ( ctx -> cur , ctx -> prev , 320 * 200 ) ;\n break ;\n case 3 : kmvc_decode_intra_8x8 ( ctx , avctx -> width , avctx -> height ) ;\n break ;\n case 4 : kmvc_decode_inter_8x8 ( ctx , avctx -> width , avctx -> height ) ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"Unknown compression method %i\\n\" , header & KMVC_METHOD ) ;\n return AVERROR_INVALIDDATA ;\n }\n out = frame -> data [ 0 ] ;\n src = ctx -> cur ;\n for ( i = 0 ;\n i < avctx -> height ;\n i ++ ) {\n memcpy ( out , src , avctx -> width ) ;\n src += 320 ;\n out += frame -> linesize [ 0 ] ;\n }\n if ( ctx -> cur == ctx -> frm0 ) {\n ctx -> cur = ctx -> frm1 ;\n ctx -> prev = ctx -> frm0 ;\n }\n else {\n ctx -> cur = ctx -> frm0 ;\n ctx -> prev = ctx -> frm1 ;\n }\n * got_frame = 1 ;\n return avpkt -> size ;\n }"}
{"idx": 7476, "target": 0, "func": "void proto_reg_handoff_zbee_zcl_appl_ctrl ( void ) {\n dissector_handle_t appl_ctrl_handle ;\n appl_ctrl_handle = find_dissector ( ZBEE_PROTOABBREV_ZCL_APPLCTRL ) ;\n dissector_add_uint ( \"zbee.zcl.cluster\" , ZBEE_ZCL_CID_APPLIANCE_CONTROL , appl_ctrl_handle ) ;\n zbee_zcl_init_cluster ( proto_zbee_zcl_appl_ctrl , ett_zbee_zcl_appl_ctrl , ZBEE_ZCL_CID_APPLIANCE_CONTROL , hf_zbee_zcl_appl_ctrl_attr_id , hf_zbee_zcl_appl_ctrl_srv_rx_cmd_id , hf_zbee_zcl_appl_ctrl_srv_tx_cmd_id , ( zbee_zcl_fn_attr_data ) dissect_zcl_appl_ctrl_attr_data ) ;\n }"}
{"idx": 7477, "target": 0, "func": "static cmsBool Read16bitTables ( cmsContext ContextID , cmsIOHANDLER * io , cmsPipeline * lut , int nChannels , int nEntries ) {\n int i ;\n cmsToneCurve * Tables [ cmsMAXCHANNELS ] ;\n if ( nEntries <= 0 ) return TRUE ;\n if ( nEntries < 2 ) return FALSE ;\n if ( nChannels > cmsMAXCHANNELS ) return FALSE ;\n memset ( Tables , 0 , sizeof ( Tables ) ) ;\n for ( i = 0 ;\n i < nChannels ;\n i ++ ) {\n Tables [ i ] = cmsBuildTabulatedToneCurve16 ( ContextID , nEntries , NULL ) ;\n if ( Tables [ i ] == NULL ) goto Error ;\n if ( ! _cmsReadUInt16Array ( io , nEntries , Tables [ i ] -> Table16 ) ) goto Error ;\n }\n if ( ! cmsPipelineInsertStage ( lut , cmsAT_END , cmsStageAllocToneCurves ( ContextID , nChannels , Tables ) ) ) goto Error ;\n for ( i = 0 ;\n i < nChannels ;\n i ++ ) cmsFreeToneCurve ( Tables [ i ] ) ;\n return TRUE ;\n Error : for ( i = 0 ;\n i < nChannels ;\n i ++ ) {\n if ( Tables [ i ] ) cmsFreeToneCurve ( Tables [ i ] ) ;\n }\n return FALSE ;\n }"}
{"idx": 7478, "target": 0, "func": "void _gcry_mpi_set_buffer ( gcry_mpi_t a , const void * buffer_arg , unsigned int nbytes , int sign ) {\n const unsigned char * buffer = ( const unsigned char * ) buffer_arg ;\n const unsigned char * p ;\n mpi_limb_t alimb ;\n int nlimbs ;\n int i ;\n if ( mpi_is_immutable ( a ) ) {\n mpi_immutable_failed ( ) ;\n return ;\n }\n nlimbs = ( nbytes + BYTES_PER_MPI_LIMB - 1 ) / BYTES_PER_MPI_LIMB ;\n RESIZE_IF_NEEDED ( a , nlimbs ) ;\n a -> sign = sign ;\n for ( i = 0 , p = buffer + nbytes - 1 ;\n p >= buffer + BYTES_PER_MPI_LIMB ;\n ) {\n # if BYTES_PER_MPI_LIMB == 4 alimb = * p -- ;\n alimb |= * p -- << 8 ;\n alimb |= * p -- << 16 ;\n alimb |= * p -- << 24 ;\n # elif BYTES_PER_MPI_LIMB == 8 alimb = ( mpi_limb_t ) * p -- ;\n alimb |= ( mpi_limb_t ) * p -- << 8 ;\n alimb |= ( mpi_limb_t ) * p -- << 16 ;\n alimb |= ( mpi_limb_t ) * p -- << 24 ;\n alimb |= ( mpi_limb_t ) * p -- << 32 ;\n alimb |= ( mpi_limb_t ) * p -- << 40 ;\n alimb |= ( mpi_limb_t ) * p -- << 48 ;\n alimb |= ( mpi_limb_t ) * p -- << 56 ;\n # else # error please implement for this limb size . # endif a -> d [ i ++ ] = alimb ;\n }\n if ( p >= buffer ) {\n # if BYTES_PER_MPI_LIMB == 4 alimb = * p -- ;\n if ( p >= buffer ) alimb |= * p -- << 8 ;\n if ( p >= buffer ) alimb |= * p -- << 16 ;\n if ( p >= buffer ) alimb |= * p -- << 24 ;\n # elif BYTES_PER_MPI_LIMB == 8 alimb = ( mpi_limb_t ) * p -- ;\n if ( p >= buffer ) alimb |= ( mpi_limb_t ) * p -- << 8 ;\n if ( p >= buffer ) alimb |= ( mpi_limb_t ) * p -- << 16 ;\n if ( p >= buffer ) alimb |= ( mpi_limb_t ) * p -- << 24 ;\n if ( p >= buffer ) alimb |= ( mpi_limb_t ) * p -- << 32 ;\n if ( p >= buffer ) alimb |= ( mpi_limb_t ) * p -- << 40 ;\n if ( p >= buffer ) alimb |= ( mpi_limb_t ) * p -- << 48 ;\n if ( p >= buffer ) alimb |= ( mpi_limb_t ) * p -- << 56 ;\n # else # error please implement for this limb size . # endif a -> d [ i ++ ] = alimb ;\n }\n a -> nlimbs = i ;\n gcry_assert ( i == nlimbs ) ;\n }"}
{"idx": 7479, "target": 1, "func": "static void reindex_all_databases ( const char * maintenance_db , const char * host , const char * port , const char * username , enum trivalue prompt_password , const char * progname , bool echo , bool quiet , bool verbose ) {\n PGconn * conn ;\n PGresult * result ;\n int i ;\n conn = connectMaintenanceDatabase ( maintenance_db , host , port , username , prompt_password , progname ) ;\n result = executeQuery ( conn , \"SELECT datname FROM pg_database WHERE datallowconn ORDER BY 1;\n\" , progname , echo ) ;\n PQfinish ( conn ) ;\n for ( i = 0 ;\n i < PQntuples ( result ) ;\n i ++ ) {\n char * dbname = PQgetvalue ( result , i , 0 ) ;\n if ( ! quiet ) {\n printf ( _ ( \"%s: reindexing database \\\"%s\\\"\\n\" ) , progname , dbname ) ;\n fflush ( stdout ) ;\n }\n reindex_one_database ( dbname , dbname , \"DATABASE\" , host , port , username , prompt_password , progname , echo , verbose ) ;\n }\n PQclear ( result ) ;\n }"}
{"idx": 7480, "target": 0, "func": "void evhttp_connection_set_timeout ( struct evhttp_connection * evcon , int timeout_in_secs ) {\n evcon -> timeout = timeout_in_secs ;\n }"}
{"idx": 7481, "target": 0, "func": "static ossl_inline LHASH_OF ( type ) * lh_ ## type ## _new ( unsigned long ( * hfn ) ( const type * ) , int ( * cfn ) ( const type * , const type * ) ) {\n return ( LHASH_OF ( type ) * ) OPENSSL_LH_new ( ( OPENSSL_LH_HASHFUNC ) hfn , ( OPENSSL_LH_COMPFUNC ) cfn ) ;\n }\n static ossl_inline void lh_ ## type ## _free ( LHASH_OF ( type ) * lh ) {\n OPENSSL_LH_free ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline type * lh_ ## type ## _insert ( LHASH_OF ( type ) * lh , type * d ) {\n return ( type * ) OPENSSL_LH_insert ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline type * lh_ ## type ## _delete ( LHASH_OF ( type ) * lh , const type * d ) {\n return ( type * ) OPENSSL_LH_delete ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline type * lh_ ## type ## _retrieve ( LHASH_OF ( type ) * lh , const type * d ) {\n return ( type * ) OPENSSL_LH_retrieve ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline int lh_ ## type ## _error ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_error ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _num_items ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_num_items ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _node_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _node_usage_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_usage_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING )"}
{"idx": 7482, "target": 1, "func": "int strescape ( char * dst , char * src ) {\n char * olddst = dst ;\n int c ;\n int val ;\n while ( ( c = * src ++ ) != '\\0' ) {\n if ( c == '\\\\' ) {\n switch ( ( c = * src ++ ) ) {\n case '\\0' : goto strend ;\n default : * dst ++ = ( char ) c ;\n break ;\n case 'n' : * dst ++ = '\\n' ;\n break ;\n case 'r' : * dst ++ = '\\r' ;\n break ;\n case 'b' : * dst ++ = '\\b' ;\n break ;\n case 't' : * dst ++ = '\\t' ;\n break ;\n case 'f' : * dst ++ = '\\f' ;\n break ;\n case 'v' : * dst ++ = '\\v' ;\n break ;\n case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : val = c - '0' ;\n c = * src ++ ;\n if ( c >= '0' && c <= '7' ) {\n val = ( val << 3 ) | ( c - '0' ) ;\n c = * src ++ ;\n if ( c >= '0' && c <= '7' ) val = ( val << 3 ) | ( c - '0' ) ;\n else -- src ;\n }\n else -- src ;\n * dst ++ = ( char ) val ;\n break ;\n case 'x' : val = 'x' ;\n c = hextoint ( * src ++ ) ;\n if ( c >= 0 ) {\n val = c ;\n c = hextoint ( * src ++ ) ;\n if ( c >= 0 ) val = ( val << 4 ) + c ;\n else -- src ;\n }\n else -- src ;\n * dst ++ = ( char ) val ;\n break ;\n }\n }\n else if ( c == 8 || c == 263 ) dst -- ;\n else * dst ++ = ( char ) c ;\n }\n strend : * dst = '\\0' ;\n return ( dst - olddst ) ;\n }"}
{"idx": 7483, "target": 0, "func": "static int encode_thread ( AVCodecContext * c , void * arg ) {\n MpegEncContext * s = * ( void * * ) arg ;\n int mb_x , mb_y , pdif = 0 ;\n int chr_h = 16 >> s -> chroma_y_shift ;\n int i , j ;\n MpegEncContext best_s , backup_s ;\n uint8_t bit_buf [ 2 ] [ MAX_MB_BYTES ] ;\n uint8_t bit_buf2 [ 2 ] [ MAX_MB_BYTES ] ;\n uint8_t bit_buf_tex [ 2 ] [ MAX_MB_BYTES ] ;\n PutBitContext pb [ 2 ] , pb2 [ 2 ] , tex_pb [ 2 ] ;\n ff_check_alignment ( ) ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n init_put_bits ( & pb [ i ] , bit_buf [ i ] , MAX_MB_BYTES ) ;\n init_put_bits ( & pb2 [ i ] , bit_buf2 [ i ] , MAX_MB_BYTES ) ;\n init_put_bits ( & tex_pb [ i ] , bit_buf_tex [ i ] , MAX_MB_BYTES ) ;\n }\n s -> last_bits = put_bits_count ( & s -> pb ) ;\n s -> mv_bits = 0 ;\n s -> misc_bits = 0 ;\n s -> i_tex_bits = 0 ;\n s -> p_tex_bits = 0 ;\n s -> i_count = 0 ;\n s -> f_count = 0 ;\n s -> b_count = 0 ;\n s -> skip_count = 0 ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n s -> last_dc [ i ] = 128 << s -> intra_dc_precision ;\n s -> current_picture . f . error [ i ] = 0 ;\n }\n s -> mb_skip_run = 0 ;\n memset ( s -> last_mv , 0 , sizeof ( s -> last_mv ) ) ;\n s -> last_mv_dir = 0 ;\n switch ( s -> codec_id ) {\n case AV_CODEC_ID_H263 : case AV_CODEC_ID_H263P : case AV_CODEC_ID_FLV1 : if ( CONFIG_H263_ENCODER ) s -> gob_index = ff_h263_get_gob_height ( s ) ;\n break ;\n case AV_CODEC_ID_MPEG4 : if ( CONFIG_MPEG4_ENCODER && s -> partitioned_frame ) ff_mpeg4_init_partitions ( s ) ;\n break ;\n }\n s -> resync_mb_x = 0 ;\n s -> resync_mb_y = 0 ;\n s -> first_slice_line = 1 ;\n s -> ptr_lastgob = s -> pb . buf ;\n for ( mb_y = s -> start_mb_y ;\n mb_y < s -> end_mb_y ;\n mb_y ++ ) {\n s -> mb_x = 0 ;\n s -> mb_y = mb_y ;\n ff_set_qscale ( s , s -> qscale ) ;\n ff_init_block_index ( s ) ;\n for ( mb_x = 0 ;\n mb_x < s -> mb_width ;\n mb_x ++ ) {\n int xy = mb_y * s -> mb_stride + mb_x ;\n int mb_type = s -> mb_type [ xy ] ;\n int dmin = INT_MAX ;\n int dir ;\n if ( s -> pb . buf_end - s -> pb . buf - ( put_bits_count ( & s -> pb ) >> 3 ) < MAX_MB_BYTES ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"encoded frame too large\\n\" ) ;\n return - 1 ;\n }\n if ( s -> data_partitioning ) {\n if ( s -> pb2 . buf_end - s -> pb2 . buf - ( put_bits_count ( & s -> pb2 ) >> 3 ) < MAX_MB_BYTES || s -> tex_pb . buf_end - s -> tex_pb . buf - ( put_bits_count ( & s -> tex_pb ) >> 3 ) < MAX_MB_BYTES ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"encoded frame too large\\n\" ) ;\n return - 1 ;\n }\n }\n s -> mb_x = mb_x ;\n s -> mb_y = mb_y ;\n ff_update_block_index ( s ) ;\n if ( CONFIG_H261_ENCODER && s -> codec_id == AV_CODEC_ID_H261 ) {\n ff_h261_reorder_mb_index ( s ) ;\n xy = s -> mb_y * s -> mb_stride + s -> mb_x ;\n mb_type = s -> mb_type [ xy ] ;\n }\n if ( s -> rtp_mode ) {\n int current_packet_size , is_gob_start ;\n current_packet_size = ( ( put_bits_count ( & s -> pb ) + 7 ) >> 3 ) - ( s -> ptr_lastgob - s -> pb . buf ) ;\n is_gob_start = s -> avctx -> rtp_payload_size && current_packet_size >= s -> avctx -> rtp_payload_size && mb_y + mb_x > 0 ;\n if ( s -> start_mb_y == mb_y && mb_y > 0 && mb_x == 0 ) is_gob_start = 1 ;\n switch ( s -> codec_id ) {\n case AV_CODEC_ID_H263 : case AV_CODEC_ID_H263P : if ( ! s -> h263_slice_structured ) if ( s -> mb_x || s -> mb_y % s -> gob_index ) is_gob_start = 0 ;\n break ;\n case AV_CODEC_ID_MPEG2VIDEO : if ( s -> mb_x == 0 && s -> mb_y != 0 ) is_gob_start = 1 ;\n case AV_CODEC_ID_MPEG1VIDEO : if ( s -> mb_skip_run ) is_gob_start = 0 ;\n break ;\n }\n if ( is_gob_start ) {\n if ( s -> start_mb_y != mb_y || mb_x != 0 ) {\n write_slice_end ( s ) ;\n if ( CONFIG_MPEG4_ENCODER && s -> codec_id == AV_CODEC_ID_MPEG4 && s -> partitioned_frame ) {\n ff_mpeg4_init_partitions ( s ) ;\n }\n }\n assert ( ( put_bits_count ( & s -> pb ) & 7 ) == 0 ) ;\n current_packet_size = put_bits_ptr ( & s -> pb ) - s -> ptr_lastgob ;\n if ( s -> avctx -> error_rate && s -> resync_mb_x + s -> resync_mb_y > 0 ) {\n int r = put_bits_count ( & s -> pb ) / 8 + s -> picture_number + 16 + s -> mb_x + s -> mb_y ;\n int d = 100 / s -> avctx -> error_rate ;\n if ( r % d == 0 ) {\n current_packet_size = 0 ;\n s -> pb . buf_ptr = s -> ptr_lastgob ;\n assert ( put_bits_ptr ( & s -> pb ) == s -> ptr_lastgob ) ;\n }\n }\n if ( s -> avctx -> rtp_callback ) {\n int number_mb = ( mb_y - s -> resync_mb_y ) * s -> mb_width + mb_x - s -> resync_mb_x ;\n s -> avctx -> rtp_callback ( s -> avctx , s -> ptr_lastgob , current_packet_size , number_mb ) ;\n }\n update_mb_info ( s , 1 ) ;\n switch ( s -> codec_id ) {\n case AV_CODEC_ID_MPEG4 : if ( CONFIG_MPEG4_ENCODER ) {\n ff_mpeg4_encode_video_packet_header ( s ) ;\n ff_mpeg4_clean_buffers ( s ) ;\n }\n break ;\n case AV_CODEC_ID_MPEG1VIDEO : case AV_CODEC_ID_MPEG2VIDEO : if ( CONFIG_MPEG1VIDEO_ENCODER || CONFIG_MPEG2VIDEO_ENCODER ) {\n ff_mpeg1_encode_slice_header ( s ) ;\n ff_mpeg1_clean_buffers ( s ) ;\n }\n break ;\n case AV_CODEC_ID_H263 : case AV_CODEC_ID_H263P : if ( CONFIG_H263_ENCODER ) ff_h263_encode_gob_header ( s , mb_y ) ;\n break ;\n }\n if ( s -> flags & CODEC_FLAG_PASS1 ) {\n int bits = put_bits_count ( & s -> pb ) ;\n s -> misc_bits += bits - s -> last_bits ;\n s -> last_bits = bits ;\n }\n s -> ptr_lastgob += current_packet_size ;\n s -> first_slice_line = 1 ;\n s -> resync_mb_x = mb_x ;\n s -> resync_mb_y = mb_y ;\n }\n }\n if ( ( s -> resync_mb_x == s -> mb_x ) && s -> resync_mb_y + 1 == s -> mb_y ) {\n s -> first_slice_line = 0 ;\n }\n s -> mb_skipped = 0 ;\n s -> dquant = 0 ;\n update_mb_info ( s , 0 ) ;\n if ( mb_type & ( mb_type - 1 ) || ( s -> mpv_flags & FF_MPV_FLAG_QP_RD ) ) {\n int next_block = 0 ;\n int pb_bits_count , pb2_bits_count , tex_pb_bits_count ;\n copy_context_before_encode ( & backup_s , s , - 1 ) ;\n backup_s . pb = s -> pb ;\n best_s . data_partitioning = s -> data_partitioning ;\n best_s . partitioned_frame = s -> partitioned_frame ;\n if ( s -> data_partitioning ) {\n backup_s . pb2 = s -> pb2 ;\n backup_s . tex_pb = s -> tex_pb ;\n }\n if ( mb_type & CANDIDATE_MB_TYPE_INTER ) {\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n s -> mb_intra = 0 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = s -> p_mv_table [ xy ] [ 0 ] ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = s -> p_mv_table [ xy ] [ 1 ] ;\n encode_mb_hq ( s , & backup_s , & best_s , CANDIDATE_MB_TYPE_INTER , pb , pb2 , tex_pb , & dmin , & next_block , s -> mv [ 0 ] [ 0 ] [ 0 ] , s -> mv [ 0 ] [ 0 ] [ 1 ] ) ;\n }\n if ( mb_type & CANDIDATE_MB_TYPE_INTER_I ) {\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_FIELD ;\n s -> mb_intra = 0 ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n j = s -> field_select [ 0 ] [ i ] = s -> p_field_select_table [ i ] [ xy ] ;\n s -> mv [ 0 ] [ i ] [ 0 ] = s -> p_field_mv_table [ i ] [ j ] [ xy ] [ 0 ] ;\n s -> mv [ 0 ] [ i ] [ 1 ] = s -> p_field_mv_table [ i ] [ j ] [ xy ] [ 1 ] ;\n }\n encode_mb_hq ( s , & backup_s , & best_s , CANDIDATE_MB_TYPE_INTER_I , pb , pb2 , tex_pb , & dmin , & next_block , 0 , 0 ) ;\n }\n if ( mb_type & CANDIDATE_MB_TYPE_SKIPPED ) {\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n s -> mb_intra = 0 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = 0 ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = 0 ;\n encode_mb_hq ( s , & backup_s , & best_s , CANDIDATE_MB_TYPE_SKIPPED , pb , pb2 , tex_pb , & dmin , & next_block , s -> mv [ 0 ] [ 0 ] [ 0 ] , s -> mv [ 0 ] [ 0 ] [ 1 ] ) ;\n }\n if ( mb_type & CANDIDATE_MB_TYPE_INTER4V ) {\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_8X8 ;\n s -> mb_intra = 0 ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n s -> mv [ 0 ] [ i ] [ 0 ] = s -> current_picture . motion_val [ 0 ] [ s -> block_index [ i ] ] [ 0 ] ;\n s -> mv [ 0 ] [ i ] [ 1 ] = s -> current_picture . motion_val [ 0 ] [ s -> block_index [ i ] ] [ 1 ] ;\n }\n encode_mb_hq ( s , & backup_s , & best_s , CANDIDATE_MB_TYPE_INTER4V , pb , pb2 , tex_pb , & dmin , & next_block , 0 , 0 ) ;\n }\n if ( mb_type & CANDIDATE_MB_TYPE_FORWARD ) {\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n s -> mb_intra = 0 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = s -> b_forw_mv_table [ xy ] [ 0 ] ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = s -> b_forw_mv_table [ xy ] [ 1 ] ;\n encode_mb_hq ( s , & backup_s , & best_s , CANDIDATE_MB_TYPE_FORWARD , pb , pb2 , tex_pb , & dmin , & next_block , s -> mv [ 0 ] [ 0 ] [ 0 ] , s -> mv [ 0 ] [ 0 ] [ 1 ] ) ;\n }\n if ( mb_type & CANDIDATE_MB_TYPE_BACKWARD ) {\n s -> mv_dir = MV_DIR_BACKWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n s -> mb_intra = 0 ;\n s -> mv [ 1 ] [ 0 ] [ 0 ] = s -> b_back_mv_table [ xy ] [ 0 ] ;\n s -> mv [ 1 ] [ 0 ] [ 1 ] = s -> b_back_mv_table [ xy ] [ 1 ] ;\n encode_mb_hq ( s , & backup_s , & best_s , CANDIDATE_MB_TYPE_BACKWARD , pb , pb2 , tex_pb , & dmin , & next_block , s -> mv [ 1 ] [ 0 ] [ 0 ] , s -> mv [ 1 ] [ 0 ] [ 1 ] ) ;\n }\n if ( mb_type & CANDIDATE_MB_TYPE_BIDIR ) {\n s -> mv_dir = MV_DIR_FORWARD | MV_DIR_BACKWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n s -> mb_intra = 0 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = s -> b_bidir_forw_mv_table [ xy ] [ 0 ] ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = s -> b_bidir_forw_mv_table [ xy ] [ 1 ] ;\n s -> mv [ 1 ] [ 0 ] [ 0 ] = s -> b_bidir_back_mv_table [ xy ] [ 0 ] ;\n s -> mv [ 1 ] [ 0 ] [ 1 ] = s -> b_bidir_back_mv_table [ xy ] [ 1 ] ;\n encode_mb_hq ( s , & backup_s , & best_s , CANDIDATE_MB_TYPE_BIDIR , pb , pb2 , tex_pb , & dmin , & next_block , 0 , 0 ) ;\n }\n if ( mb_type & CANDIDATE_MB_TYPE_FORWARD_I ) {\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_FIELD ;\n s -> mb_intra = 0 ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n j = s -> field_select [ 0 ] [ i ] = s -> b_field_select_table [ 0 ] [ i ] [ xy ] ;\n s -> mv [ 0 ] [ i ] [ 0 ] = s -> b_field_mv_table [ 0 ] [ i ] [ j ] [ xy ] [ 0 ] ;\n s -> mv [ 0 ] [ i ] [ 1 ] = s -> b_field_mv_table [ 0 ] [ i ] [ j ] [ xy ] [ 1 ] ;\n }\n encode_mb_hq ( s , & backup_s , & best_s , CANDIDATE_MB_TYPE_FORWARD_I , pb , pb2 , tex_pb , & dmin , & next_block , 0 , 0 ) ;\n }\n if ( mb_type & CANDIDATE_MB_TYPE_BACKWARD_I ) {\n s -> mv_dir = MV_DIR_BACKWARD ;\n s -> mv_type = MV_TYPE_FIELD ;\n s -> mb_intra = 0 ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n j = s -> field_select [ 1 ] [ i ] = s -> b_field_select_table [ 1 ] [ i ] [ xy ] ;\n s -> mv [ 1 ] [ i ] [ 0 ] = s -> b_field_mv_table [ 1 ] [ i ] [ j ] [ xy ] [ 0 ] ;\n s -> mv [ 1 ] [ i ] [ 1 ] = s -> b_field_mv_table [ 1 ] [ i ] [ j ] [ xy ] [ 1 ] ;\n }\n encode_mb_hq ( s , & backup_s , & best_s , CANDIDATE_MB_TYPE_BACKWARD_I , pb , pb2 , tex_pb , & dmin , & next_block , 0 , 0 ) ;\n }\n if ( mb_type & CANDIDATE_MB_TYPE_BIDIR_I ) {\n s -> mv_dir = MV_DIR_FORWARD | MV_DIR_BACKWARD ;\n s -> mv_type = MV_TYPE_FIELD ;\n s -> mb_intra = 0 ;\n for ( dir = 0 ;\n dir < 2 ;\n dir ++ ) {\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n j = s -> field_select [ dir ] [ i ] = s -> b_field_select_table [ dir ] [ i ] [ xy ] ;\n s -> mv [ dir ] [ i ] [ 0 ] = s -> b_field_mv_table [ dir ] [ i ] [ j ] [ xy ] [ 0 ] ;\n s -> mv [ dir ] [ i ] [ 1 ] = s -> b_field_mv_table [ dir ] [ i ] [ j ] [ xy ] [ 1 ] ;\n }\n }\n encode_mb_hq ( s , & backup_s , & best_s , CANDIDATE_MB_TYPE_BIDIR_I , pb , pb2 , tex_pb , & dmin , & next_block , 0 , 0 ) ;\n }\n if ( mb_type & CANDIDATE_MB_TYPE_INTRA ) {\n s -> mv_dir = 0 ;\n s -> mv_type = MV_TYPE_16X16 ;\n s -> mb_intra = 1 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = 0 ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = 0 ;\n encode_mb_hq ( s , & backup_s , & best_s , CANDIDATE_MB_TYPE_INTRA , pb , pb2 , tex_pb , & dmin , & next_block , 0 , 0 ) ;\n if ( s -> h263_pred || s -> h263_aic ) {\n if ( best_s . mb_intra ) s -> mbintra_table [ mb_x + mb_y * s -> mb_stride ] = 1 ;\n else ff_clean_intra_table_entries ( s ) ;\n }\n }\n if ( ( s -> mpv_flags & FF_MPV_FLAG_QP_RD ) && dmin < INT_MAX ) {\n if ( best_s . mv_type == MV_TYPE_16X16 ) {\n const int last_qp = backup_s . qscale ;\n int qpi , qp , dc [ 6 ] ;\n int16_t ac [ 6 ] [ 16 ] ;\n const int mvdir = ( best_s . mv_dir & MV_DIR_BACKWARD ) ? 1 : 0 ;\n static const int dquant_tab [ 4 ] = {\n - 1 , 1 , - 2 , 2 }\n ;\n assert ( backup_s . dquant == 0 ) ;\n s -> mv_dir = best_s . mv_dir ;\n s -> mv_type = MV_TYPE_16X16 ;\n s -> mb_intra = best_s . mb_intra ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = best_s . mv [ 0 ] [ 0 ] [ 0 ] ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = best_s . mv [ 0 ] [ 0 ] [ 1 ] ;\n s -> mv [ 1 ] [ 0 ] [ 0 ] = best_s . mv [ 1 ] [ 0 ] [ 0 ] ;\n s -> mv [ 1 ] [ 0 ] [ 1 ] = best_s . mv [ 1 ] [ 0 ] [ 1 ] ;\n qpi = s -> pict_type == AV_PICTURE_TYPE_B ? 2 : 0 ;\n for ( ;\n qpi < 4 ;\n qpi ++ ) {\n int dquant = dquant_tab [ qpi ] ;\n qp = last_qp + dquant ;\n if ( qp < s -> avctx -> qmin || qp > s -> avctx -> qmax ) continue ;\n backup_s . dquant = dquant ;\n if ( s -> mb_intra && s -> dc_val [ 0 ] ) {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n dc [ i ] = s -> dc_val [ 0 ] [ s -> block_index [ i ] ] ;\n memcpy ( ac [ i ] , s -> ac_val [ 0 ] [ s -> block_index [ i ] ] , sizeof ( int16_t ) * 16 ) ;\n }\n }\n encode_mb_hq ( s , & backup_s , & best_s , CANDIDATE_MB_TYPE_INTER , pb , pb2 , tex_pb , & dmin , & next_block , s -> mv [ mvdir ] [ 0 ] [ 0 ] , s -> mv [ mvdir ] [ 0 ] [ 1 ] ) ;\n if ( best_s . qscale != qp ) {\n if ( s -> mb_intra && s -> dc_val [ 0 ] ) {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n s -> dc_val [ 0 ] [ s -> block_index [ i ] ] = dc [ i ] ;\n memcpy ( s -> ac_val [ 0 ] [ s -> block_index [ i ] ] , ac [ i ] , sizeof ( int16_t ) * 16 ) ;\n }\n }\n }\n }\n }\n }\n if ( CONFIG_MPEG4_ENCODER && mb_type & CANDIDATE_MB_TYPE_DIRECT ) {\n int mx = s -> b_direct_mv_table [ xy ] [ 0 ] ;\n int my = s -> b_direct_mv_table [ xy ] [ 1 ] ;\n backup_s . dquant = 0 ;\n s -> mv_dir = MV_DIR_FORWARD | MV_DIR_BACKWARD | MV_DIRECT ;\n s -> mb_intra = 0 ;\n ff_mpeg4_set_direct_mv ( s , mx , my ) ;\n encode_mb_hq ( s , & backup_s , & best_s , CANDIDATE_MB_TYPE_DIRECT , pb , pb2 , tex_pb , & dmin , & next_block , mx , my ) ;\n }\n if ( CONFIG_MPEG4_ENCODER && mb_type & CANDIDATE_MB_TYPE_DIRECT0 ) {\n backup_s . dquant = 0 ;\n s -> mv_dir = MV_DIR_FORWARD | MV_DIR_BACKWARD | MV_DIRECT ;\n s -> mb_intra = 0 ;\n ff_mpeg4_set_direct_mv ( s , 0 , 0 ) ;\n encode_mb_hq ( s , & backup_s , & best_s , CANDIDATE_MB_TYPE_DIRECT , pb , pb2 , tex_pb , & dmin , & next_block , 0 , 0 ) ;\n }\n if ( ! best_s . mb_intra && s -> mpv_flags & FF_MPV_FLAG_SKIP_RD ) {\n int coded = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) coded |= s -> block_last_index [ i ] ;\n if ( coded ) {\n int mx , my ;\n memcpy ( s -> mv , best_s . mv , sizeof ( s -> mv ) ) ;\n if ( CONFIG_MPEG4_ENCODER && best_s . mv_dir & MV_DIRECT ) {\n mx = my = 0 ;\n ff_mpeg4_set_direct_mv ( s , mx , my ) ;\n }\n else if ( best_s . mv_dir & MV_DIR_BACKWARD ) {\n mx = s -> mv [ 1 ] [ 0 ] [ 0 ] ;\n my = s -> mv [ 1 ] [ 0 ] [ 1 ] ;\n }\n else {\n mx = s -> mv [ 0 ] [ 0 ] [ 0 ] ;\n my = s -> mv [ 0 ] [ 0 ] [ 1 ] ;\n }\n s -> mv_dir = best_s . mv_dir ;\n s -> mv_type = best_s . mv_type ;\n s -> mb_intra = 0 ;\n backup_s . dquant = 0 ;\n s -> skipdct = 1 ;\n encode_mb_hq ( s , & backup_s , & best_s , CANDIDATE_MB_TYPE_INTER , pb , pb2 , tex_pb , & dmin , & next_block , mx , my ) ;\n s -> skipdct = 0 ;\n }\n }\n s -> current_picture . qscale_table [ xy ] = best_s . qscale ;\n copy_context_after_encode ( s , & best_s , - 1 ) ;\n pb_bits_count = put_bits_count ( & s -> pb ) ;\n flush_put_bits ( & s -> pb ) ;\n avpriv_copy_bits ( & backup_s . pb , bit_buf [ next_block ^ 1 ] , pb_bits_count ) ;\n s -> pb = backup_s . pb ;\n if ( s -> data_partitioning ) {\n pb2_bits_count = put_bits_count ( & s -> pb2 ) ;\n flush_put_bits ( & s -> pb2 ) ;\n avpriv_copy_bits ( & backup_s . pb2 , bit_buf2 [ next_block ^ 1 ] , pb2_bits_count ) ;\n s -> pb2 = backup_s . pb2 ;\n tex_pb_bits_count = put_bits_count ( & s -> tex_pb ) ;\n flush_put_bits ( & s -> tex_pb ) ;\n avpriv_copy_bits ( & backup_s . tex_pb , bit_buf_tex [ next_block ^ 1 ] , tex_pb_bits_count ) ;\n s -> tex_pb = backup_s . tex_pb ;\n }\n s -> last_bits = put_bits_count ( & s -> pb ) ;\n if ( CONFIG_H263_ENCODER && s -> out_format == FMT_H263 && s -> pict_type != AV_PICTURE_TYPE_B ) ff_h263_update_motion_val ( s ) ;\n if ( next_block == 0 ) {\n s -> dsp . put_pixels_tab [ 0 ] [ 0 ] ( s -> dest [ 0 ] , s -> rd_scratchpad , s -> linesize , 16 ) ;\n s -> dsp . put_pixels_tab [ 1 ] [ 0 ] ( s -> dest [ 1 ] , s -> rd_scratchpad + 16 * s -> linesize , s -> uvlinesize , 8 ) ;\n s -> dsp . put_pixels_tab [ 1 ] [ 0 ] ( s -> dest [ 2 ] , s -> rd_scratchpad + 16 * s -> linesize + 8 , s -> uvlinesize , 8 ) ;\n }\n if ( s -> avctx -> mb_decision == FF_MB_DECISION_BITS ) ff_MPV_decode_mb ( s , s -> block ) ;\n }\n else {\n int motion_x = 0 , motion_y = 0 ;\n s -> mv_type = MV_TYPE_16X16 ;\n switch ( mb_type ) {\n case CANDIDATE_MB_TYPE_INTRA : s -> mv_dir = 0 ;\n s -> mb_intra = 1 ;\n motion_x = s -> mv [ 0 ] [ 0 ] [ 0 ] = 0 ;\n motion_y = s -> mv [ 0 ] [ 0 ] [ 1 ] = 0 ;\n break ;\n case CANDIDATE_MB_TYPE_INTER : s -> mv_dir = MV_DIR_FORWARD ;\n s -> mb_intra = 0 ;\n motion_x = s -> mv [ 0 ] [ 0 ] [ 0 ] = s -> p_mv_table [ xy ] [ 0 ] ;\n motion_y = s -> mv [ 0 ] [ 0 ] [ 1 ] = s -> p_mv_table [ xy ] [ 1 ] ;\n break ;\n case CANDIDATE_MB_TYPE_INTER_I : s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_FIELD ;\n s -> mb_intra = 0 ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n j = s -> field_select [ 0 ] [ i ] = s -> p_field_select_table [ i ] [ xy ] ;\n s -> mv [ 0 ] [ i ] [ 0 ] = s -> p_field_mv_table [ i ] [ j ] [ xy ] [ 0 ] ;\n s -> mv [ 0 ] [ i ] [ 1 ] = s -> p_field_mv_table [ i ] [ j ] [ xy ] [ 1 ] ;\n }\n break ;\n case CANDIDATE_MB_TYPE_INTER4V : s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_8X8 ;\n s -> mb_intra = 0 ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n s -> mv [ 0 ] [ i ] [ 0 ] = s -> current_picture . motion_val [ 0 ] [ s -> block_index [ i ] ] [ 0 ] ;\n s -> mv [ 0 ] [ i ] [ 1 ] = s -> current_picture . motion_val [ 0 ] [ s -> block_index [ i ] ] [ 1 ] ;\n }\n break ;\n case CANDIDATE_MB_TYPE_DIRECT : if ( CONFIG_MPEG4_ENCODER ) {\n s -> mv_dir = MV_DIR_FORWARD | MV_DIR_BACKWARD | MV_DIRECT ;\n s -> mb_intra = 0 ;\n motion_x = s -> b_direct_mv_table [ xy ] [ 0 ] ;\n motion_y = s -> b_direct_mv_table [ xy ] [ 1 ] ;\n ff_mpeg4_set_direct_mv ( s , motion_x , motion_y ) ;\n }\n break ;\n case CANDIDATE_MB_TYPE_DIRECT0 : if ( CONFIG_MPEG4_ENCODER ) {\n s -> mv_dir = MV_DIR_FORWARD | MV_DIR_BACKWARD | MV_DIRECT ;\n s -> mb_intra = 0 ;\n ff_mpeg4_set_direct_mv ( s , 0 , 0 ) ;\n }\n break ;\n case CANDIDATE_MB_TYPE_BIDIR : s -> mv_dir = MV_DIR_FORWARD | MV_DIR_BACKWARD ;\n s -> mb_intra = 0 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = s -> b_bidir_forw_mv_table [ xy ] [ 0 ] ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = s -> b_bidir_forw_mv_table [ xy ] [ 1 ] ;\n s -> mv [ 1 ] [ 0 ] [ 0 ] = s -> b_bidir_back_mv_table [ xy ] [ 0 ] ;\n s -> mv [ 1 ] [ 0 ] [ 1 ] = s -> b_bidir_back_mv_table [ xy ] [ 1 ] ;\n break ;\n case CANDIDATE_MB_TYPE_BACKWARD : s -> mv_dir = MV_DIR_BACKWARD ;\n s -> mb_intra = 0 ;\n motion_x = s -> mv [ 1 ] [ 0 ] [ 0 ] = s -> b_back_mv_table [ xy ] [ 0 ] ;\n motion_y = s -> mv [ 1 ] [ 0 ] [ 1 ] = s -> b_back_mv_table [ xy ] [ 1 ] ;\n break ;\n case CANDIDATE_MB_TYPE_FORWARD : s -> mv_dir = MV_DIR_FORWARD ;\n s -> mb_intra = 0 ;\n motion_x = s -> mv [ 0 ] [ 0 ] [ 0 ] = s -> b_forw_mv_table [ xy ] [ 0 ] ;\n motion_y = s -> mv [ 0 ] [ 0 ] [ 1 ] = s -> b_forw_mv_table [ xy ] [ 1 ] ;\n break ;\n case CANDIDATE_MB_TYPE_FORWARD_I : s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_FIELD ;\n s -> mb_intra = 0 ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n j = s -> field_select [ 0 ] [ i ] = s -> b_field_select_table [ 0 ] [ i ] [ xy ] ;\n s -> mv [ 0 ] [ i ] [ 0 ] = s -> b_field_mv_table [ 0 ] [ i ] [ j ] [ xy ] [ 0 ] ;\n s -> mv [ 0 ] [ i ] [ 1 ] = s -> b_field_mv_table [ 0 ] [ i ] [ j ] [ xy ] [ 1 ] ;\n }\n break ;\n case CANDIDATE_MB_TYPE_BACKWARD_I : s -> mv_dir = MV_DIR_BACKWARD ;\n s -> mv_type = MV_TYPE_FIELD ;\n s -> mb_intra = 0 ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n j = s -> field_select [ 1 ] [ i ] = s -> b_field_select_table [ 1 ] [ i ] [ xy ] ;\n s -> mv [ 1 ] [ i ] [ 0 ] = s -> b_field_mv_table [ 1 ] [ i ] [ j ] [ xy ] [ 0 ] ;\n s -> mv [ 1 ] [ i ] [ 1 ] = s -> b_field_mv_table [ 1 ] [ i ] [ j ] [ xy ] [ 1 ] ;\n }\n break ;\n case CANDIDATE_MB_TYPE_BIDIR_I : s -> mv_dir = MV_DIR_FORWARD | MV_DIR_BACKWARD ;\n s -> mv_type = MV_TYPE_FIELD ;\n s -> mb_intra = 0 ;\n for ( dir = 0 ;\n dir < 2 ;\n dir ++ ) {\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n j = s -> field_select [ dir ] [ i ] = s -> b_field_select_table [ dir ] [ i ] [ xy ] ;\n s -> mv [ dir ] [ i ] [ 0 ] = s -> b_field_mv_table [ dir ] [ i ] [ j ] [ xy ] [ 0 ] ;\n s -> mv [ dir ] [ i ] [ 1 ] = s -> b_field_mv_table [ dir ] [ i ] [ j ] [ xy ] [ 1 ] ;\n }\n }\n break ;\n default : av_log ( s -> avctx , AV_LOG_ERROR , \"illegal MB type\\n\" ) ;\n }\n encode_mb ( s , motion_x , motion_y ) ;\n s -> last_mv_dir = s -> mv_dir ;\n if ( CONFIG_H263_ENCODER && s -> out_format == FMT_H263 && s -> pict_type != AV_PICTURE_TYPE_B ) ff_h263_update_motion_val ( s ) ;\n ff_MPV_decode_mb ( s , s -> block ) ;\n }\n if ( s -> mb_intra ) {\n s -> p_mv_table [ xy ] [ 0 ] = 0 ;\n s -> p_mv_table [ xy ] [ 1 ] = 0 ;\n }\n if ( s -> flags & CODEC_FLAG_PSNR ) {\n int w = 16 ;\n int h = 16 ;\n if ( s -> mb_x * 16 + 16 > s -> width ) w = s -> width - s -> mb_x * 16 ;\n if ( s -> mb_y * 16 + 16 > s -> height ) h = s -> height - s -> mb_y * 16 ;\n s -> current_picture . f . error [ 0 ] += sse ( s , s -> new_picture . f . data [ 0 ] + s -> mb_x * 16 + s -> mb_y * s -> linesize * 16 , s -> dest [ 0 ] , w , h , s -> linesize ) ;\n s -> current_picture . f . error [ 1 ] += sse ( s , s -> new_picture . f . data [ 1 ] + s -> mb_x * 8 + s -> mb_y * s -> uvlinesize * chr_h , s -> dest [ 1 ] , w >> 1 , h >> s -> chroma_y_shift , s -> uvlinesize ) ;\n s -> current_picture . f . error [ 2 ] += sse ( s , s -> new_picture . f . data [ 2 ] + s -> mb_x * 8 + s -> mb_y * s -> uvlinesize * chr_h , s -> dest [ 2 ] , w >> 1 , h >> s -> chroma_y_shift , s -> uvlinesize ) ;\n }\n if ( s -> loop_filter ) {\n if ( CONFIG_H263_ENCODER && s -> out_format == FMT_H263 ) ff_h263_loop_filter ( s ) ;\n }\n av_dlog ( s -> avctx , \"MB %d %d bits\\n\" , s -> mb_x + s -> mb_y * s -> mb_stride , put_bits_count ( & s -> pb ) ) ;\n }\n }\n / ot beautiful here but we must write it before flushing so it has to be here if ( CONFIG_MSMPEG4_ENCODER && s -> msmpeg4_version && s -> msmpeg4_version < 4 && s -> pict_type == AV_PICTURE_TYPE_I ) ff_msmpeg4_encode_ext_header ( s ) ;\n write_slice_end ( s ) ;\n if ( s -> avctx -> rtp_callback ) {\n int number_mb = ( mb_y - s -> resync_mb_y ) * s -> mb_width - s -> resync_mb_x ;\n pdif = put_bits_ptr ( & s -> pb ) - s -> ptr_lastgob ;\n emms_c ( ) ;\n s -> avctx -> rtp_callback ( s -> avctx , s -> ptr_lastgob , pdif , number_mb ) ;\n }\n return 0 ;\n }"}
{"idx": 7484, "target": 0, "func": "TEST_F ( SoundContentSettingObserverTest , AudioMutingUpdatesWithContentSetting ) {\n EXPECT_FALSE ( web_contents ( ) -> IsAudioMuted ( ) ) ;\n ChangeSoundContentSettingTo ( CONTENT_SETTING_BLOCK ) ;\n EXPECT_TRUE ( web_contents ( ) -> IsAudioMuted ( ) ) ;\n ChangeSoundContentSettingTo ( CONTENT_SETTING_ALLOW ) ;\n EXPECT_FALSE ( web_contents ( ) -> IsAudioMuted ( ) ) ;\n ChangeSoundContentSettingTo ( CONTENT_SETTING_DEFAULT ) ;\n EXPECT_FALSE ( web_contents ( ) -> IsAudioMuted ( ) ) ;\n ChangeDefaultSoundContentSettingTo ( CONTENT_SETTING_BLOCK ) ;\n EXPECT_TRUE ( web_contents ( ) -> IsAudioMuted ( ) ) ;\n ChangeSoundContentSettingTo ( CONTENT_SETTING_ALLOW ) ;\n EXPECT_FALSE ( web_contents ( ) -> IsAudioMuted ( ) ) ;\n ChangeSoundContentSettingTo ( CONTENT_SETTING_DEFAULT ) ;\n EXPECT_TRUE ( web_contents ( ) -> IsAudioMuted ( ) ) ;\n ChangeDefaultSoundContentSettingTo ( CONTENT_SETTING_ALLOW ) ;\n EXPECT_FALSE ( web_contents ( ) -> IsAudioMuted ( ) ) ;\n }"}
{"idx": 7485, "target": 0, "func": "void e1000e_core_write ( E1000ECore * core , hwaddr addr , uint64_t val , unsigned size ) {\n uint16_t index = e1000e_get_reg_index_with_offset ( mac_reg_access , addr ) ;\n if ( index < E1000E_NWRITEOPS && e1000e_macreg_writeops [ index ] ) {\n if ( mac_reg_access [ index ] & MAC_ACCESS_PARTIAL ) {\n trace_e1000e_wrn_regs_write_trivial ( index << 2 ) ;\n }\n trace_e1000e_core_write ( index << 2 , size , val ) ;\n e1000e_macreg_writeops [ index ] ( core , index , val ) ;\n }\n else if ( index < E1000E_NREADOPS && e1000e_macreg_readops [ index ] ) {\n trace_e1000e_wrn_regs_write_ro ( index << 2 , size , val ) ;\n }\n else {\n trace_e1000e_wrn_regs_write_unknown ( index << 2 , size , val ) ;\n }\n }"}
{"idx": 7486, "target": 0, "func": "static void * Type_Curve_Dup ( struct _cms_typehandler_struct * self , const void * Ptr , cmsUInt32Number n ) {\n return ( void * ) cmsDupToneCurve ( ( cmsToneCurve * ) Ptr ) ;\n cmsUNUSED_PARAMETER ( n ) ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 7487, "target": 0, "func": "static void gsm_a_dtap_ss_stat_init ( new_stat_tap_ui * new_stat , new_stat_tap_gui_init_cb gui_callback , void * gui_data ) {\n gsm_a_stat_init ( new_stat , gui_callback , gui_data , \"GSM A-I/F DTAP Supplementary Services Statistics\" , gsm_a_dtap_msg_ss_strings ) ;\n }"}
{"idx": 7488, "target": 1, "func": "int main ( int argc , char * * argv ) {\n int ArgIndex ;\n int NumErrs = 0 ;\n char * Args [ MAXARGS ] ;\n int aindex = 0 ;\n int rc ;\n int pid ;\n char tmpJobID [ PBS_MAXCLTJOBID ] ;\n char JobID [ PBS_MAXCLTJOBID ] ;\n char ServerName [ MAXSERVERNAME ] ;\n int DoBackground = 0 ;\n tmpJobID [ 0 ] = '\\0' ;\n # define GETOPT_ARGS \"bj:\" while ( ( ArgIndex = getopt ( argc , argv , GETOPT_ARGS ) ) != EOF ) {\n switch ( ArgIndex ) {\n case 'b' : DoBackground = 1 ;\n break ;\n case 'j' : strncpy ( tmpJobID , optarg , sizeof ( tmpJobID ) ) ;\n if ( tmpJobID [ PBS_MAXCLTJOBID - 1 ] != '\\0' ) {\n fprintf ( stderr , \"pbs_track: given job ID too large (> %d)\\n\" , PBS_MAXCLTJOBID ) ;\n exit ( - 1 ) ;\n }\n break ;\n default : NumErrs ++ ;\n break ;\n }\n }\n if ( ( NumErrs > 0 ) || ( optind >= argc ) || ( tmpJobID [ 0 ] == '\\0' ) ) {\n static char Usage [ ] = \"USAGE: pbs_track [-j <JOBID>] [-b] -- a.out arg1 arg2 ... argN\\n\" ;\n fprintf ( stderr , \"%s\" , Usage ) ;\n exit ( 2 ) ;\n }\n if ( getenv ( NO_SERVER_SUFFIX ) != NULL ) {\n snprintf ( JobID , sizeof ( JobID ) , \"%s\" , tmpJobID ) ;\n }\n else {\n if ( get_server ( tmpJobID , JobID , sizeof ( JobID ) , ServerName , sizeof ( ServerName ) ) ) {\n fprintf ( stderr , \"pbs_track: illegally formed job identifier: '%s'\\n\" , JobID ) ;\n exit ( 1 ) ;\n }\n }\n aindex = 0 ;\n for ( ;\n optind < argc ;\n optind ++ ) {\n Args [ aindex ++ ] = strdup ( argv [ optind ] ) ;\n printf ( \"Got arg: %s\\n\" , Args [ aindex - 1 ] ) ;\n }\n Args [ aindex ] = NULL ;\n pid = 1 ;\n if ( DoBackground == 1 ) {\n printf ( \"FORKING!\\n\" ) ;\n pid = fork ( ) ;\n }\n if ( ( DoBackground == 0 ) || ( pid == 0 ) ) {\n rc = tm_adopt ( JobID , TM_ADOPT_JOBID , getpid ( ) ) ;\n switch ( rc ) {\n case TM_SUCCESS : break ;\n case TM_ENOTFOUND : fprintf ( stderr , \"pbs_track: MOM could not find job %s\\n\" , JobID ) ;\n break ;\n case TM_ESYSTEM : case TM_ENOTCONNECTED : fprintf ( stderr , \"pbs_track: error occurred while trying to communication with pbs_mom: %s (%d)\\n\" , pbse_to_txt ( rc ) , rc ) ;\n break ;\n default : fprintf ( stderr , \"pbs_track: unexpected error %s (%d) occurred\\n\" , pbse_to_txt ( rc ) , rc ) ;\n break ;\n }\n if ( rc != TM_SUCCESS ) {\n exit ( - 1 ) ;\n }\n if ( execvp ( Args [ 0 ] , Args ) == - 1 ) {\n fprintf ( stderr , \"execvp failed with error %d, message:\\n%s\\n\" , errno , strerror ( errno ) ) ;\n }\n }\n else if ( pid > 0 ) {\n fclose ( stdin ) ;\n fclose ( stdout ) ;\n fclose ( stderr ) ;\n }\n else if ( pid < 0 ) {\n fprintf ( stderr , \"pbs_track: could not fork (%d:%s)\\n\" , errno , strerror ( errno ) ) ;\n }\n exit ( 0 ) ;\n }"}
{"idx": 7489, "target": 0, "func": "int vp9_full_range_search_c ( const MACROBLOCK * x , const search_site_config * cfg , MV * ref_mv , MV * best_mv , int search_param , int sad_per_bit , int * num00 , const vp9_variance_fn_ptr_t * fn_ptr , const MV * center_mv ) {\n const MACROBLOCKD * const xd = & x -> e_mbd ;\n const struct buf_2d * const what = & x -> plane [ 0 ] . src ;\n const struct buf_2d * const in_what = & xd -> plane [ 0 ] . pre [ 0 ] ;\n const int range = 64 ;\n const MV fcenter_mv = {\n center_mv -> row >> 3 , center_mv -> col >> 3 }\n ;\n unsigned int best_sad = INT_MAX ;\n int r , c , i ;\n int start_col , end_col , start_row , end_row ;\n ( void ) cfg ;\n ( void ) search_param ;\n clamp_mv ( ref_mv , x -> mv_col_min , x -> mv_col_max , x -> mv_row_min , x -> mv_row_max ) ;\n * best_mv = * ref_mv ;\n * num00 = 11 ;\n best_sad = fn_ptr -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , ref_mv ) , in_what -> stride ) + mvsad_err_cost ( x , ref_mv , & fcenter_mv , sad_per_bit ) ;\n start_row = MAX ( - range , x -> mv_row_min - ref_mv -> row ) ;\n start_col = MAX ( - range , x -> mv_col_min - ref_mv -> col ) ;\n end_row = MIN ( range , x -> mv_row_max - ref_mv -> row ) ;\n end_col = MIN ( range , x -> mv_col_max - ref_mv -> col ) ;\n for ( r = start_row ;\n r <= end_row ;\n ++ r ) {\n for ( c = start_col ;\n c <= end_col ;\n c += 4 ) {\n if ( c + 3 <= end_col ) {\n unsigned int sads [ 4 ] ;\n const uint8_t * addrs [ 4 ] ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) {\n const MV mv = {\n ref_mv -> row + r , ref_mv -> col + c + i }\n ;\n addrs [ i ] = get_buf_from_mv ( in_what , & mv ) ;\n }\n fn_ptr -> sdx4df ( what -> buf , what -> stride , addrs , in_what -> stride , sads ) ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) {\n if ( sads [ i ] < best_sad ) {\n const MV mv = {\n ref_mv -> row + r , ref_mv -> col + c + i }\n ;\n const unsigned int sad = sads [ i ] + mvsad_err_cost ( x , & mv , & fcenter_mv , sad_per_bit ) ;\n if ( sad < best_sad ) {\n best_sad = sad ;\n * best_mv = mv ;\n }\n }\n }\n }\n else {\n for ( i = 0 ;\n i < end_col - c ;\n ++ i ) {\n const MV mv = {\n ref_mv -> row + r , ref_mv -> col + c + i }\n ;\n unsigned int sad = fn_ptr -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , & mv ) , in_what -> stride ) ;\n if ( sad < best_sad ) {\n sad += mvsad_err_cost ( x , & mv , & fcenter_mv , sad_per_bit ) ;\n if ( sad < best_sad ) {\n best_sad = sad ;\n * best_mv = mv ;\n }\n }\n }\n }\n }\n }\n return best_sad ;\n }"}
{"idx": 7490, "target": 0, "func": "static bool init_global_datetime_format ( timestamp_type format_type , DATE_TIME_FORMAT * format ) {\n format -> format . length = strlen ( format -> format . str ) ;\n if ( parse_date_time_format ( format_type , format ) ) {\n fprintf ( stderr , \"Wrong date/time format specifier: %s\\n\" , format -> format . str ) ;\n return true ;\n }\n return false ;\n }"}
{"idx": 7491, "target": 0, "func": "static int dissect_rsl_ie_uic ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_tree * ie_tree ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_UIC ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_ie_uic , NULL , \"UIC IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_uic , tvb , offset , 1 , ENC_NA ) ;\n offset ++ ;\n return offset ;\n }"}
{"idx": 7492, "target": 0, "func": "static void sig_complete_window ( GList * * list , WINDOW_REC * window , const char * word , const char * linestart , int * want_space ) {\n WINDOW_REC * win ;\n WI_ITEM_REC * item ;\n GSList * tmp ;\n int len ;\n g_return_if_fail ( list != NULL ) ;\n g_return_if_fail ( word != NULL ) ;\n len = strlen ( word ) ;\n for ( tmp = windows ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n win = tmp -> data ;\n item = win -> active ;\n if ( win -> name != NULL && g_ascii_strncasecmp ( win -> name , word , len ) == 0 ) * list = g_list_append ( * list , g_strdup ( win -> name ) ) ;\n if ( item != NULL && g_ascii_strncasecmp ( item -> visible_name , word , len ) == 0 ) * list = g_list_append ( * list , g_strdup ( item -> visible_name ) ) ;\n }\n if ( * list != NULL ) signal_stop ( ) ;\n }"}
{"idx": 7493, "target": 0, "func": "static inline int __ipv6_addr_src_scope ( int type ) {\n return ( type == IPV6_ADDR_ANY ) ? __IPV6_ADDR_SCOPE_INVALID : ( type >> 16 ) ;\n }"}
{"idx": 7494, "target": 0, "func": "static int xhci_fire_ctl_transfer ( XHCIState * xhci , XHCITransfer * xfer ) {\n XHCITRB * trb_setup , * trb_status ;\n uint8_t bmRequestType ;\n trb_setup = & xfer -> trbs [ 0 ] ;\n trb_status = & xfer -> trbs [ xfer -> trb_count - 1 ] ;\n trace_usb_xhci_xfer_start ( xfer , xfer -> epctx -> slotid , xfer -> epctx -> epid , xfer -> streamid ) ;\n if ( TRB_TYPE ( * trb_status ) == TR_EVDATA && xfer -> trb_count > 2 ) {\n trb_status -- ;\n }\n if ( TRB_TYPE ( * trb_setup ) != TR_SETUP ) {\n DPRINTF ( \"xhci: ep0 first TD not SETUP: %d\\n\" , TRB_TYPE ( * trb_setup ) ) ;\n return - 1 ;\n }\n if ( TRB_TYPE ( * trb_status ) != TR_STATUS ) {\n DPRINTF ( \"xhci: ep0 last TD not STATUS: %d\\n\" , TRB_TYPE ( * trb_status ) ) ;\n return - 1 ;\n }\n if ( ! ( trb_setup -> control & TRB_TR_IDT ) ) {\n DPRINTF ( \"xhci: Setup TRB doesn't have IDT set\\n\" ) ;\n return - 1 ;\n }\n if ( ( trb_setup -> status & 0x1ffff ) != 8 ) {\n DPRINTF ( \"xhci: Setup TRB has bad length (%d)\\n\" , ( trb_setup -> status & 0x1ffff ) ) ;\n return - 1 ;\n }\n bmRequestType = trb_setup -> parameter ;\n xfer -> in_xfer = bmRequestType & USB_DIR_IN ;\n xfer -> iso_xfer = false ;\n xfer -> timed_xfer = false ;\n if ( xhci_setup_packet ( xfer ) < 0 ) {\n return - 1 ;\n }\n xfer -> packet . parameter = trb_setup -> parameter ;\n usb_handle_packet ( xfer -> packet . ep -> dev , & xfer -> packet ) ;\n xhci_try_complete_packet ( xfer ) ;\n return 0 ;\n }"}
{"idx": 7495, "target": 0, "func": "static void make_lpc_coefs ( float * lpc , const float * refl , int order ) {\n float buf [ 100 ] ;\n float * next , * cur ;\n int m , i ;\n next = buf ;\n cur = lpc ;\n for ( m = 0 ;\n m < order ;\n m ++ ) {\n next [ m ] = refl [ m ] ;\n for ( i = 0 ;\n i < m ;\n i ++ ) next [ i ] = cur [ i ] + refl [ m ] * cur [ m - i - 1 ] ;\n FFSWAP ( float * , next , cur ) ;\n }\n if ( cur != lpc ) memcpy ( lpc , cur , sizeof ( * lpc ) * order ) ;\n }"}
{"idx": 7496, "target": 0, "func": "void open_input_file ( struct VpxInputContext * input ) {\n input -> file = strcmp ( input -> filename , \"-\" ) ? fopen ( input -> filename , \"rb\" ) : set_binary_mode ( stdin ) ;\n if ( ! input -> file ) fatal ( \"Failed to open input file\" ) ;\n if ( ! fseeko ( input -> file , 0 , SEEK_END ) ) {\n input -> length = ftello ( input -> file ) ;\n rewind ( input -> file ) ;\n }\n input -> detect . buf_read = fread ( input -> detect . buf , 1 , 4 , input -> file ) ;\n input -> detect . position = 0 ;\n if ( input -> detect . buf_read == 4 && file_is_y4m ( input -> detect . buf ) ) {\n if ( y4m_input_open ( & input -> y4m , input -> file , input -> detect . buf , 4 , input -> only_i420 ) >= 0 ) {\n input -> file_type = FILE_TYPE_Y4M ;\n input -> width = input -> y4m . pic_w ;\n input -> height = input -> y4m . pic_h ;\n input -> framerate . numerator = input -> y4m . fps_n ;\n input -> framerate . denominator = input -> y4m . fps_d ;\n input -> fmt = input -> y4m . vpx_fmt ;\n input -> bit_depth = input -> y4m . bit_depth ;\n }\n else fatal ( \"Unsupported Y4M stream.\" ) ;\n }\n else if ( input -> detect . buf_read == 4 && fourcc_is_ivf ( input -> detect . buf ) ) {\n fatal ( \"IVF is not supported as input.\" ) ;\n }\n else {\n input -> file_type = FILE_TYPE_RAW ;\n }\n }"}
{"idx": 7497, "target": 0, "func": "static Selectivity mcelem_array_selec ( ArrayType * array , TypeCacheEntry * typentry , Datum * mcelem , int nmcelem , float4 * numbers , int nnumbers , float4 * hist , int nhist , Oid operator , FmgrInfo * cmpfunc ) {\n Selectivity selec ;\n int num_elems ;\n Datum * elem_values ;\n bool * elem_nulls ;\n bool null_present ;\n int nonnull_nitems ;\n int i ;\n deconstruct_array ( array , typentry -> type_id , typentry -> typlen , typentry -> typbyval , typentry -> typalign , & elem_values , & elem_nulls , & num_elems ) ;\n nonnull_nitems = 0 ;\n null_present = false ;\n for ( i = 0 ;\n i < num_elems ;\n i ++ ) {\n if ( elem_nulls [ i ] ) null_present = true ;\n else elem_values [ nonnull_nitems ++ ] = elem_values [ i ] ;\n }\n if ( null_present && operator == OID_ARRAY_CONTAINS_OP ) {\n pfree ( elem_values ) ;\n pfree ( elem_nulls ) ;\n return ( Selectivity ) 0.0 ;\n }\n qsort_arg ( elem_values , nonnull_nitems , sizeof ( Datum ) , element_compare , cmpfunc ) ;\n if ( operator == OID_ARRAY_CONTAINS_OP || operator == OID_ARRAY_OVERLAP_OP ) selec = mcelem_array_contain_overlap_selec ( mcelem , nmcelem , numbers , nnumbers , elem_values , nonnull_nitems , operator , cmpfunc ) ;\n else if ( operator == OID_ARRAY_CONTAINED_OP ) selec = mcelem_array_contained_selec ( mcelem , nmcelem , numbers , nnumbers , elem_values , nonnull_nitems , hist , nhist , operator , cmpfunc ) ;\n else {\n elog ( ERROR , \"arraycontsel called for unrecognized operator %u\" , operator ) ;\n selec = 0.0 ;\n }\n pfree ( elem_values ) ;\n pfree ( elem_nulls ) ;\n return selec ;\n }"}
{"idx": 7498, "target": 0, "func": "static void mainwindows_resize_smaller ( int ydiff ) {\n MAIN_WINDOW_REC * rec ;\n GSList * sorted , * tmp ;\n int space ;\n sorted = NULL ;\n for ( rec = mainwindows_find_lower ( NULL ) ;\n rec != NULL ;\n rec = mainwindows_find_lower ( rec ) ) {\n sorted = g_slist_prepend ( sorted , rec ) ;\n }\n if ( sorted == NULL ) return ;\n for ( ;\n ;\n ) {\n int skip_active = FALSE ;\n space = 0 ;\n for ( tmp = sorted ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n int min ;\n GSList * line , * ltmp ;\n rec = tmp -> data ;\n line = mainwindows_get_line ( rec ) ;\n min = screen_height - ydiff ;\n for ( ltmp = line ;\n ltmp != NULL ;\n ltmp = ltmp -> next ) {\n int lmin ;\n MAIN_WINDOW_REC * win = ltmp -> data ;\n if ( win == active_mainwin && tmp == sorted ) skip_active = TRUE ;\n lmin = MAIN_WINDOW_TEXT_HEIGHT ( win ) - WINDOW_MIN_SIZE ;\n if ( lmin < min ) min = lmin ;\n }\n g_slist_free ( line ) ;\n space += min ;\n }\n if ( space >= - ydiff ) break ;\n rec = sorted -> data ;\n if ( skip_active && sorted -> next != NULL ) rec = sorted -> next -> data ;\n sorted = g_slist_remove ( sorted , rec ) ;\n if ( sorted != NULL ) {\n GSList * line , * ltmp ;\n line = mainwindows_get_line ( rec ) ;\n for ( ltmp = line ;\n ltmp != NULL ;\n ltmp = ltmp -> next ) {\n MAIN_WINDOW_REC * win = ltmp -> data ;\n mainwindow_destroy ( win ) ;\n }\n g_slist_free ( line ) ;\n }\n else {\n GSList * line , * ltmp ;\n line = mainwindows_get_line ( rec ) ;\n for ( ltmp = line ;\n ltmp != NULL ;\n ltmp = ltmp -> next ) {\n MAIN_WINDOW_REC * win = ltmp -> data ;\n win -> last_line += ydiff ;\n mainwindow_resize ( win , 0 , ydiff ) ;\n }\n g_slist_free ( line ) ;\n return ;\n }\n }\n for ( tmp = sorted ;\n tmp != NULL && ydiff < 0 ;\n tmp = tmp -> next ) {\n int min ;\n GSList * line , * ltmp ;\n rec = tmp -> data ;\n line = mainwindows_get_line ( rec ) ;\n min = screen_height - ydiff ;\n for ( ltmp = line ;\n ltmp != NULL ;\n ltmp = ltmp -> next ) {\n int lmin ;\n MAIN_WINDOW_REC * win = ltmp -> data ;\n lmin = MAIN_WINDOW_TEXT_HEIGHT ( win ) - WINDOW_MIN_SIZE ;\n if ( lmin < min ) min = lmin ;\n }\n space = min ;\n if ( space == 0 ) {\n for ( ltmp = line ;\n ltmp != NULL ;\n ltmp = ltmp -> next ) {\n MAIN_WINDOW_REC * win = ltmp -> data ;\n mainwindow_resize ( win , 0 , 0 ) ;\n win -> size_dirty = TRUE ;\n win -> first_line += ydiff ;\n win -> last_line += ydiff ;\n signal_emit ( \"mainwindow moved\" , 1 , win ) ;\n }\n }\n else {\n if ( space > - ydiff ) space = - ydiff ;\n for ( ltmp = line ;\n ltmp != NULL ;\n ltmp = ltmp -> next ) {\n MAIN_WINDOW_REC * win = ltmp -> data ;\n win -> last_line += ydiff ;\n win -> first_line += ydiff + space ;\n mainwindow_resize ( win , 0 , - space ) ;\n }\n ydiff += space ;\n }\n g_slist_free ( line ) ;\n }\n g_slist_free ( sorted ) ;\n }"}
{"idx": 7499, "target": 0, "func": "static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_null ( void ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_null ( ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_reserve ( sk_ ## t1 ## _compfunc compare , int n ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_reserve ( ( OPENSSL_sk_compfunc ) compare , n ) ;\n }\n static ossl_inline int sk_ ## t1 ## _reserve ( STACK_OF ( t1 ) * sk , int n ) {\n return OPENSSL_sk_reserve ( ( OPENSSL_STACK * ) sk , n ) ;\n }\n static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 7500, "target": 0, "func": "static void generate_json_fixnum ( FBuffer * buffer , VALUE Vstate , JSON_Generator_State * state , VALUE obj ) {\n fbuffer_append_long ( buffer , FIX2LONG ( obj ) ) ;\n }"}
{"idx": 7501, "target": 0, "func": "PHP_FUNCTION ( locale_get_display_name ) {\n get_icu_disp_value_src_php ( DISP_NAME , INTERNAL_FUNCTION_PARAM_PASSTHRU ) ;\n }"}
{"idx": 7502, "target": 0, "func": "static void dump_page_info ( Jbig2Ctx * ctx , Jbig2Segment * segment , Jbig2Page * page ) {\n if ( page -> x_resolution == 0 ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_INFO , segment -> number , \"page %d image is %dx%d (unknown res)\" , page -> number , page -> width , page -> height ) ;\n }\n else if ( page -> x_resolution == page -> y_resolution ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_INFO , segment -> number , \"page %d image is %dx%d (%d ppm)\" , page -> number , page -> width , page -> height , page -> x_resolution ) ;\n }\n else {\n jbig2_error ( ctx , JBIG2_SEVERITY_INFO , segment -> number , \"page %d image is %dx%d (%dx%d ppm)\" , page -> number , page -> width , page -> height , page -> x_resolution , page -> y_resolution ) ;\n }\n if ( page -> striped ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_INFO , segment -> number , \"\\tmaximum stripe size: %d\" , page -> stripe_size ) ;\n }\n }"}
{"idx": 7503, "target": 1, "func": "VP9Decoder * vp9_decoder_create ( ) {\n VP9Decoder * const pbi = vpx_memalign ( 32 , sizeof ( * pbi ) ) ;\n VP9_COMMON * const cm = pbi ? & pbi -> common : NULL ;\n if ( ! cm ) return NULL ;\n vp9_zero ( * pbi ) ;\n if ( setjmp ( cm -> error . jmp ) ) {\n cm -> error . setjmp = 0 ;\n vp9_decoder_remove ( pbi ) ;\n return NULL ;\n }\n cm -> error . setjmp = 1 ;\n initialize_dec ( ) ;\n vpx_memset ( & cm -> ref_frame_map , - 1 , sizeof ( cm -> ref_frame_map ) ) ;\n cm -> current_video_frame = 0 ;\n pbi -> ready_for_new_data = 1 ;\n cm -> bit_depth = VPX_BITS_8 ;\n vp9_init_dequantizer ( cm ) ;\n vp9_loop_filter_init ( cm ) ;\n cm -> error . setjmp = 0 ;\n vp9_get_worker_interface ( ) -> init ( & pbi -> lf_worker ) ;\n return pbi ;\n }"}
{"idx": 7504, "target": 0, "func": "static inline void NVRAM_set_word ( m48t59_t * nvram , uint32_t addr , uint16_t value ) {\n m48t59_set_addr ( nvram , addr ) ;\n m48t59_write ( nvram , value >> 8 ) ;\n m48t59_set_addr ( nvram , addr + 1 ) ;\n m48t59_write ( nvram , value & 0xFF ) ;\n }"}
{"idx": 7505, "target": 0, "func": "PHP_FUNCTION ( uwsgi_cache_set ) {\n char * key = NULL ;\n int keylen ;\n char * value = NULL ;\n int vallen ;\n uint64_t expires = 0 ;\n char * cache = NULL ;\n int cachelen = 0 ;\n if ( ! uwsgi . caches ) RETURN_NULL ( ) ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"ss|ls\" , & key , & keylen , & value , & vallen , & expires , & cache , & cachelen ) == FAILURE ) {\n RETURN_NULL ( ) ;\n }\n if ( ! uwsgi_cache_magic_set ( key , keylen , value , vallen , expires , 0 , cache ) ) {\n RETURN_TRUE ;\n }\n RETURN_NULL ( ) ;\n }"}
{"idx": 7506, "target": 0, "func": "static byte * i_alloc_byte_array_immovable ( gs_memory_t * mem , uint num_elements , uint elt_size , client_name_t cname ) {\n gs_ref_memory_t * const imem = ( gs_ref_memory_t * ) mem ;\n obj_header_t * obj ;\n ulong lsize ;\n # ifdef MEMENTO if ( Memento_failThisEvent ( ) ) return NULL ;\n # endif if ( alloc_array_check_size ( num_elements , elt_size , & lsize ) == false ) return NULL ;\n obj = alloc_obj ( imem , lsize , & st_bytes , ALLOC_IMMOVABLE | ALLOC_DIRECT , cname ) ;\n if_debug6m ( 'A' , mem , \"[a%d|+b.]%s -bytes-*(%lu=%u*%u) = 0x%lx\\n\" , alloc_trace_space ( imem ) , client_name_string ( cname ) , ( ulong ) num_elements * elt_size , num_elements , elt_size , ( ulong ) obj ) ;\n return ( byte * ) obj ;\n }"}
{"idx": 7507, "target": 0, "func": "static void nb_resync_indicator ( tvbuff_t * tvb , int offset , proto_tree * tree , const char * cmd_str ) {\n guint16 resync_indicator = tvb_get_letohs ( tvb , offset + NB_DATA2 ) ;\n switch ( resync_indicator ) {\n case 0x0000 : proto_tree_add_uint_format_value ( tree , hf_netb_resync_indicator , tvb , offset + NB_DATA2 , 2 , resync_indicator , \"No re-sync\" ) ;\n break ;\n case 0x0001 : proto_tree_add_uint_format_value ( tree , hf_netb_resync_indicator , tvb , offset + NB_DATA2 , 2 , resync_indicator , \"First '%s' following 'Receive Outstanding'\" , cmd_str ) ;\n break ;\n default : proto_tree_add_item ( tree , hf_netb_resync_indicator , tvb , offset + NB_DATA2 , 2 , ENC_LITTLE_ENDIAN ) ;\n break ;\n }\n }"}
{"idx": 7508, "target": 0, "func": "static int dissect_h245_QOSMode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_QOSMode , QOSMode_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 7509, "target": 0, "func": "static int context_init ( H264Context * h ) {\n ERContext * er = & h -> er ;\n int mb_array_size = h -> mb_height * h -> mb_stride ;\n int y_size = ( 2 * h -> mb_width + 1 ) * ( 2 * h -> mb_height + 1 ) ;\n int c_size = h -> mb_stride * ( h -> mb_height + 1 ) ;\n int yc_size = y_size + 2 * c_size ;\n int x , y , i ;\n FF_ALLOCZ_OR_GOTO ( h -> avctx , h -> top_borders [ 0 ] , h -> mb_width * 16 * 3 * sizeof ( uint8_t ) * 2 , fail ) FF_ALLOCZ_OR_GOTO ( h -> avctx , h -> top_borders [ 1 ] , h -> mb_width * 16 * 3 * sizeof ( uint8_t ) * 2 , fail ) h -> ref_cache [ 0 ] [ scan8 [ 5 ] + 1 ] = h -> ref_cache [ 0 ] [ scan8 [ 7 ] + 1 ] = h -> ref_cache [ 0 ] [ scan8 [ 13 ] + 1 ] = h -> ref_cache [ 1 ] [ scan8 [ 5 ] + 1 ] = h -> ref_cache [ 1 ] [ scan8 [ 7 ] + 1 ] = h -> ref_cache [ 1 ] [ scan8 [ 13 ] + 1 ] = PART_NOT_AVAILABLE ;\n if ( CONFIG_ERROR_RESILIENCE ) {\n er -> avctx = h -> avctx ;\n er -> dsp = & h -> dsp ;\n er -> decode_mb = h264_er_decode_mb ;\n er -> opaque = h ;\n er -> quarter_sample = 1 ;\n er -> mb_num = h -> mb_num ;\n er -> mb_width = h -> mb_width ;\n er -> mb_height = h -> mb_height ;\n er -> mb_stride = h -> mb_stride ;\n er -> b8_stride = h -> mb_width * 2 + 1 ;\n FF_ALLOCZ_OR_GOTO ( h -> avctx , er -> mb_index2xy , ( h -> mb_num + 1 ) * sizeof ( int ) , fail ) ;\n for ( y = 0 ;\n y < h -> mb_height ;\n y ++ ) for ( x = 0 ;\n x < h -> mb_width ;\n x ++ ) er -> mb_index2xy [ x + y * h -> mb_width ] = x + y * h -> mb_stride ;\n er -> mb_index2xy [ h -> mb_height * h -> mb_width ] = ( h -> mb_height - 1 ) * h -> mb_stride + h -> mb_width ;\n FF_ALLOCZ_OR_GOTO ( h -> avctx , er -> error_status_table , mb_array_size * sizeof ( uint8_t ) , fail ) ;\n FF_ALLOC_OR_GOTO ( h -> avctx , er -> mbintra_table , mb_array_size , fail ) ;\n memset ( er -> mbintra_table , 1 , mb_array_size ) ;\n FF_ALLOCZ_OR_GOTO ( h -> avctx , er -> mbskip_table , mb_array_size + 2 , fail ) ;\n FF_ALLOC_OR_GOTO ( h -> avctx , er -> er_temp_buffer , h -> mb_height * h -> mb_stride , fail ) ;\n FF_ALLOCZ_OR_GOTO ( h -> avctx , h -> dc_val_base , yc_size * sizeof ( int16_t ) , fail ) ;\n er -> dc_val [ 0 ] = h -> dc_val_base + h -> mb_width * 2 + 2 ;\n er -> dc_val [ 1 ] = h -> dc_val_base + y_size + h -> mb_stride + 1 ;\n er -> dc_val [ 2 ] = er -> dc_val [ 1 ] + c_size ;\n for ( i = 0 ;\n i < yc_size ;\n i ++ ) h -> dc_val_base [ i ] = 1024 ;\n }\n return 0 ;\n fail : return AVERROR ( ENOMEM ) ;\n }"}
{"idx": 7510, "target": 0, "func": "int min_heap_reserve ( min_heap_t * s , unsigned n ) {\n if ( s -> a < n ) {\n struct event * * p ;\n unsigned a = s -> a ? s -> a * 2 : 8 ;\n if ( a < n ) a = n ;\n if ( ! ( p = ( struct event * * ) realloc ( s -> p , a * sizeof * p ) ) ) return - 1 ;\n s -> p = p ;\n s -> a = a ;\n }\n return 0 ;\n }"}
{"idx": 7511, "target": 0, "func": "static int proc_allowed_congestion_control ( ctl_table * ctl , int write , void __user * buffer , size_t * lenp , loff_t * ppos ) {\n ctl_table tbl = {\n . maxlen = TCP_CA_BUF_MAX }\n ;\n int ret ;\n tbl . data = kmalloc ( tbl . maxlen , GFP_USER ) ;\n if ( ! tbl . data ) return - ENOMEM ;\n tcp_get_allowed_congestion_control ( tbl . data , tbl . maxlen ) ;\n ret = proc_dostring ( & tbl , write , buffer , lenp , ppos ) ;\n if ( write && ret == 0 ) ret = tcp_set_allowed_congestion_control ( tbl . data ) ;\n kfree ( tbl . data ) ;\n return ret ;\n }"}
{"idx": 7512, "target": 0, "func": "static int vorbis_parse_setup_hdr_floors ( vorbis_context * vc ) {\n GetBitContext * gb = & vc -> gb ;\n int i , j , k , ret ;\n vc -> floor_count = get_bits ( gb , 6 ) + 1 ;\n vc -> floors = av_mallocz ( vc -> floor_count * sizeof ( * vc -> floors ) ) ;\n if ( ! vc -> floors ) return AVERROR ( ENOMEM ) ;\n for ( i = 0 ;\n i < vc -> floor_count ;\n ++ i ) {\n vorbis_floor * floor_setup = & vc -> floors [ i ] ;\n floor_setup -> floor_type = get_bits ( gb , 16 ) ;\n av_dlog ( NULL , \" %d. floor type %d \\n\" , i , floor_setup -> floor_type ) ;\n if ( floor_setup -> floor_type == 1 ) {\n int maximum_class = - 1 ;\n unsigned rangebits , rangemax , floor1_values = 2 ;\n floor_setup -> decode = vorbis_floor1_decode ;\n floor_setup -> data . t1 . partitions = get_bits ( gb , 5 ) ;\n av_dlog ( NULL , \" %d.floor: %d partitions \\n\" , i , floor_setup -> data . t1 . partitions ) ;\n for ( j = 0 ;\n j < floor_setup -> data . t1 . partitions ;\n ++ j ) {\n floor_setup -> data . t1 . partition_class [ j ] = get_bits ( gb , 4 ) ;\n if ( floor_setup -> data . t1 . partition_class [ j ] > maximum_class ) maximum_class = floor_setup -> data . t1 . partition_class [ j ] ;\n av_dlog ( NULL , \" %d. floor %d partition class %d \\n\" , i , j , floor_setup -> data . t1 . partition_class [ j ] ) ;\n }\n av_dlog ( NULL , \" maximum class %d \\n\" , maximum_class ) ;\n for ( j = 0 ;\n j <= maximum_class ;\n ++ j ) {\n floor_setup -> data . t1 . class_dimensions [ j ] = get_bits ( gb , 3 ) + 1 ;\n floor_setup -> data . t1 . class_subclasses [ j ] = get_bits ( gb , 2 ) ;\n av_dlog ( NULL , \" %d floor %d class dim: %d subclasses %d \\n\" , i , j , floor_setup -> data . t1 . class_dimensions [ j ] , floor_setup -> data . t1 . class_subclasses [ j ] ) ;\n if ( floor_setup -> data . t1 . class_subclasses [ j ] ) {\n GET_VALIDATED_INDEX ( floor_setup -> data . t1 . class_masterbook [ j ] , 8 , vc -> codebook_count ) av_dlog ( NULL , \" masterbook: %d \\n\" , floor_setup -> data . t1 . class_masterbook [ j ] ) ;\n }\n for ( k = 0 ;\n k < ( 1 << floor_setup -> data . t1 . class_subclasses [ j ] ) ;\n ++ k ) {\n int16_t bits = get_bits ( gb , 8 ) - 1 ;\n if ( bits != - 1 ) VALIDATE_INDEX ( bits , vc -> codebook_count ) floor_setup -> data . t1 . subclass_books [ j ] [ k ] = bits ;\n av_dlog ( NULL , \" book %d. : %d \\n\" , k , floor_setup -> data . t1 . subclass_books [ j ] [ k ] ) ;\n }\n }\n floor_setup -> data . t1 . multiplier = get_bits ( gb , 2 ) + 1 ;\n floor_setup -> data . t1 . x_list_dim = 2 ;\n for ( j = 0 ;\n j < floor_setup -> data . t1 . partitions ;\n ++ j ) floor_setup -> data . t1 . x_list_dim += floor_setup -> data . t1 . class_dimensions [ floor_setup -> data . t1 . partition_class [ j ] ] ;\n floor_setup -> data . t1 . list = av_mallocz ( floor_setup -> data . t1 . x_list_dim * sizeof ( * floor_setup -> data . t1 . list ) ) ;\n if ( ! floor_setup -> data . t1 . list ) return AVERROR ( ENOMEM ) ;\n rangebits = get_bits ( gb , 4 ) ;\n rangemax = ( 1 << rangebits ) ;\n if ( rangemax > vc -> blocksize [ 1 ] / 2 ) {\n av_log ( vc -> avctx , AV_LOG_ERROR , \"Floor value is too large for blocksize: %u (%\" PRIu32 \")\\n\" , rangemax , vc -> blocksize [ 1 ] / 2 ) ;\n return AVERROR_INVALIDDATA ;\n }\n floor_setup -> data . t1 . list [ 0 ] . x = 0 ;\n floor_setup -> data . t1 . list [ 1 ] . x = rangemax ;\n for ( j = 0 ;\n j < floor_setup -> data . t1 . partitions ;\n ++ j ) {\n for ( k = 0 ;\n k < floor_setup -> data . t1 . class_dimensions [ floor_setup -> data . t1 . partition_class [ j ] ] ;\n ++ k , ++ floor1_values ) {\n floor_setup -> data . t1 . list [ floor1_values ] . x = get_bits ( gb , rangebits ) ;\n av_dlog ( NULL , \" %u. floor1 Y coord. %d\\n\" , floor1_values , floor_setup -> data . t1 . list [ floor1_values ] . x ) ;\n }\n }\n if ( ff_vorbis_ready_floor1_list ( vc -> avctx , floor_setup -> data . t1 . list , floor_setup -> data . t1 . x_list_dim ) ) {\n return AVERROR_INVALIDDATA ;\n }\n }\n else if ( floor_setup -> floor_type == 0 ) {\n unsigned max_codebook_dim = 0 ;\n floor_setup -> decode = vorbis_floor0_decode ;\n floor_setup -> data . t0 . order = get_bits ( gb , 8 ) ;\n if ( ! floor_setup -> data . t0 . order ) {\n av_log ( vc -> avctx , AV_LOG_ERROR , \"Floor 0 order is 0.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n floor_setup -> data . t0 . rate = get_bits ( gb , 16 ) ;\n if ( ! floor_setup -> data . t0 . rate ) {\n av_log ( vc -> avctx , AV_LOG_ERROR , \"Floor 0 rate is 0.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n floor_setup -> data . t0 . bark_map_size = get_bits ( gb , 16 ) ;\n if ( ! floor_setup -> data . t0 . bark_map_size ) {\n av_log ( vc -> avctx , AV_LOG_ERROR , \"Floor 0 bark map size is 0.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n floor_setup -> data . t0 . amplitude_bits = get_bits ( gb , 6 ) ;\n floor_setup -> data . t0 . amplitude_offset = get_bits ( gb , 8 ) ;\n floor_setup -> data . t0 . num_books = get_bits ( gb , 4 ) + 1 ;\n floor_setup -> data . t0 . book_list = av_malloc ( floor_setup -> data . t0 . num_books ) ;\n if ( ! floor_setup -> data . t0 . book_list ) return AVERROR ( ENOMEM ) ;\n {\n int idx ;\n unsigned book_idx ;\n for ( idx = 0 ;\n idx < floor_setup -> data . t0 . num_books ;\n ++ idx ) {\n GET_VALIDATED_INDEX ( book_idx , 8 , vc -> codebook_count ) floor_setup -> data . t0 . book_list [ idx ] = book_idx ;\n if ( vc -> codebooks [ book_idx ] . dimensions > max_codebook_dim ) max_codebook_dim = vc -> codebooks [ book_idx ] . dimensions ;\n }\n }\n if ( ( ret = create_map ( vc , i ) ) < 0 ) return ret ;\n floor_setup -> data . t0 . lsp = av_malloc ( ( floor_setup -> data . t0 . order + 1 + max_codebook_dim ) * sizeof ( * floor_setup -> data . t0 . lsp ) ) ;\n if ( ! floor_setup -> data . t0 . lsp ) return AVERROR ( ENOMEM ) ;\n av_dlog ( NULL , \"floor0 order: %u\\n\" , floor_setup -> data . t0 . order ) ;\n av_dlog ( NULL , \"floor0 rate: %u\\n\" , floor_setup -> data . t0 . rate ) ;\n av_dlog ( NULL , \"floor0 bark map size: %u\\n\" , floor_setup -> data . t0 . bark_map_size ) ;\n av_dlog ( NULL , \"floor0 amplitude bits: %u\\n\" , floor_setup -> data . t0 . amplitude_bits ) ;\n av_dlog ( NULL , \"floor0 amplitude offset: %u\\n\" , floor_setup -> data . t0 . amplitude_offset ) ;\n av_dlog ( NULL , \"floor0 number of books: %u\\n\" , floor_setup -> data . t0 . num_books ) ;\n av_dlog ( NULL , \"floor0 book list pointer: %p\\n\" , floor_setup -> data . t0 . book_list ) ;\n {\n int idx ;\n for ( idx = 0 ;\n idx < floor_setup -> data . t0 . num_books ;\n ++ idx ) {\n av_dlog ( NULL , \" Book %d: %u\\n\" , idx + 1 , floor_setup -> data . t0 . book_list [ idx ] ) ;\n }\n }\n }\n else {\n av_log ( vc -> avctx , AV_LOG_ERROR , \"Invalid floor type!\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n return 0 ;\n }"}
{"idx": 7513, "target": 1, "func": "static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 7514, "target": 1, "func": "static HashTable * spl_filesystem_object_get_debug_info ( zval * obj , int * is_temp TSRMLS_DC ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( obj TSRMLS_CC ) ;\n HashTable * rv ;\n zval * tmp , zrv ;\n char * pnstr , * path ;\n int pnlen , path_len ;\n char stmp [ 2 ] ;\n * is_temp = 1 ;\n if ( ! intern -> std . properties ) {\n rebuild_object_properties ( & intern -> std ) ;\n }\n ALLOC_HASHTABLE ( rv ) ;\n ZEND_INIT_SYMTABLE_EX ( rv , zend_hash_num_elements ( intern -> std . properties ) + 3 , 0 ) ;\n INIT_PZVAL ( & zrv ) ;\n Z_ARRVAL ( zrv ) = rv ;\n zend_hash_copy ( rv , intern -> std . properties , ( copy_ctor_func_t ) zval_add_ref , ( void * ) & tmp , sizeof ( zval * ) ) ;\n pnstr = spl_gen_private_prop_name ( spl_ce_SplFileInfo , \"pathName\" , sizeof ( \"pathName\" ) - 1 , & pnlen TSRMLS_CC ) ;\n path = spl_filesystem_object_get_pathname ( intern , & path_len TSRMLS_CC ) ;\n add_assoc_stringl_ex ( & zrv , pnstr , pnlen + 1 , path , path_len , 1 ) ;\n efree ( pnstr ) ;\n if ( intern -> file_name ) {\n pnstr = spl_gen_private_prop_name ( spl_ce_SplFileInfo , \"fileName\" , sizeof ( \"fileName\" ) - 1 , & pnlen TSRMLS_CC ) ;\n spl_filesystem_object_get_path ( intern , & path_len TSRMLS_CC ) ;\n if ( path_len && path_len < intern -> file_name_len ) {\n add_assoc_stringl_ex ( & zrv , pnstr , pnlen + 1 , intern -> file_name + path_len + 1 , intern -> file_name_len - ( path_len + 1 ) , 1 ) ;\n }\n else {\n add_assoc_stringl_ex ( & zrv , pnstr , pnlen + 1 , intern -> file_name , intern -> file_name_len , 1 ) ;\n }\n efree ( pnstr ) ;\n }\n if ( intern -> type == SPL_FS_DIR ) {\n # ifdef HAVE_GLOB pnstr = spl_gen_private_prop_name ( spl_ce_DirectoryIterator , \"glob\" , sizeof ( \"glob\" ) - 1 , & pnlen TSRMLS_CC ) ;\n if ( php_stream_is ( intern -> u . dir . dirp , & php_glob_stream_ops ) ) {\n add_assoc_stringl_ex ( & zrv , pnstr , pnlen + 1 , intern -> _path , intern -> _path_len , 1 ) ;\n }\n else {\n add_assoc_bool_ex ( & zrv , pnstr , pnlen + 1 , 0 ) ;\n }\n efree ( pnstr ) ;\n # endif pnstr = spl_gen_private_prop_name ( spl_ce_RecursiveDirectoryIterator , \"subPathName\" , sizeof ( \"subPathName\" ) - 1 , & pnlen TSRMLS_CC ) ;\n if ( intern -> u . dir . sub_path ) {\n add_assoc_stringl_ex ( & zrv , pnstr , pnlen + 1 , intern -> u . dir . sub_path , intern -> u . dir . sub_path_len , 1 ) ;\n }\n else {\n add_assoc_stringl_ex ( & zrv , pnstr , pnlen + 1 , \"\" , 0 , 1 ) ;\n }\n efree ( pnstr ) ;\n }\n if ( intern -> type == SPL_FS_FILE ) {\n pnstr = spl_gen_private_prop_name ( spl_ce_SplFileObject , \"openMode\" , sizeof ( \"openMode\" ) - 1 , & pnlen TSRMLS_CC ) ;\n add_assoc_stringl_ex ( & zrv , pnstr , pnlen + 1 , intern -> u . file . open_mode , intern -> u . file . open_mode_len , 1 ) ;\n efree ( pnstr ) ;\n stmp [ 1 ] = '\\0' ;\n stmp [ 0 ] = intern -> u . file . delimiter ;\n pnstr = spl_gen_private_prop_name ( spl_ce_SplFileObject , \"delimiter\" , sizeof ( \"delimiter\" ) - 1 , & pnlen TSRMLS_CC ) ;\n add_assoc_stringl_ex ( & zrv , pnstr , pnlen + 1 , stmp , 1 , 1 ) ;\n efree ( pnstr ) ;\n stmp [ 0 ] = intern -> u . file . enclosure ;\n pnstr = spl_gen_private_prop_name ( spl_ce_SplFileObject , \"enclosure\" , sizeof ( \"enclosure\" ) - 1 , & pnlen TSRMLS_CC ) ;\n add_assoc_stringl_ex ( & zrv , pnstr , pnlen + 1 , stmp , 1 , 1 ) ;\n efree ( pnstr ) ;\n }\n return rv ;\n }"}
{"idx": 7515, "target": 0, "func": "static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 7516, "target": 0, "func": "static int SpoolssReplyOpenPrinter_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ;\n e_ctx_hnd policy_hnd ;\n proto_item * hnd_item ;\n guint32 status ;\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , & policy_hnd , & hnd_item , TRUE , FALSE ) ;\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , & status ) ;\n if ( status == 0 ) {\n const char * pol_name ;\n if ( dcv -> se_data ) {\n pol_name = wmem_strdup_printf ( wmem_packet_scope ( ) , \"ReplyOpenPrinter(%s)\" , ( char * ) dcv -> se_data ) ;\n }\n else {\n pol_name = \"Unknown ReplyOpenPrinter() handle\" ;\n }\n if ( ! pinfo -> fd -> flags . visited ) {\n dcerpc_store_polhnd_name ( & policy_hnd , pinfo , pol_name ) ;\n }\n if ( hnd_item ) proto_item_append_text ( hnd_item , \": %s\" , pol_name ) ;\n }\n return offset ;\n }"}
{"idx": 7517, "target": 0, "func": "static int decode_cabac_mb_skip ( H264Context * h , int mb_x , int mb_y ) {\n int mba_xy , mbb_xy ;\n int ctx = 0 ;\n if ( FRAME_MBAFF ) {\n int mb_xy = mb_x + ( mb_y & ~ 1 ) * h -> mb_stride ;\n mba_xy = mb_xy - 1 ;\n if ( ( mb_y & 1 ) && h -> slice_table [ mba_xy ] == h -> slice_num && MB_FIELD == ! ! IS_INTERLACED ( h -> cur_pic . mb_type [ mba_xy ] ) ) mba_xy += h -> mb_stride ;\n if ( MB_FIELD ) {\n mbb_xy = mb_xy - h -> mb_stride ;\n if ( ! ( mb_y & 1 ) && h -> slice_table [ mbb_xy ] == h -> slice_num && IS_INTERLACED ( h -> cur_pic . mb_type [ mbb_xy ] ) ) mbb_xy -= h -> mb_stride ;\n }\n else mbb_xy = mb_x + ( mb_y - 1 ) * h -> mb_stride ;\n }\n else {\n int mb_xy = h -> mb_xy ;\n mba_xy = mb_xy - 1 ;\n mbb_xy = mb_xy - ( h -> mb_stride << FIELD_PICTURE ) ;\n }\n if ( h -> slice_table [ mba_xy ] == h -> slice_num && ! IS_SKIP ( h -> cur_pic . mb_type [ mba_xy ] ) ) ctx ++ ;\n if ( h -> slice_table [ mbb_xy ] == h -> slice_num && ! IS_SKIP ( h -> cur_pic . mb_type [ mbb_xy ] ) ) ctx ++ ;\n if ( h -> slice_type_nos == AV_PICTURE_TYPE_B ) ctx += 13 ;\n return get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 11 + ctx ] ) ;\n }"}
{"idx": 7518, "target": 0, "func": "const char * TSHttpHdrReasonLookup ( TSHttpStatus status ) {\n return http_hdr_reason_lookup ( ( HTTPStatus ) status ) ;\n }"}
{"idx": 7519, "target": 0, "func": "static char * other_decode_bitfield_value ( char * buf , const guint64 val , const guint64 mask , const int width ) {\n int i ;\n guint64 bit ;\n char * p ;\n i = 0 ;\n p = buf ;\n bit = G_GUINT64_CONSTANT ( 1 ) << ( width - 1 ) ;\n for ( ;\n ;\n ) {\n if ( mask & bit ) {\n if ( val & bit ) * p ++ = '1' ;\n else * p ++ = '0' ;\n }\n else {\n * p ++ = '.' ;\n }\n bit >>= 1 ;\n i ++ ;\n if ( i >= width ) break ;\n if ( i % 4 == 0 ) * p ++ = ' ' ;\n }\n * p = '\\0' ;\n return p ;\n }"}
{"idx": 7520, "target": 1, "func": "static __inline __uint64_t __uint64_identity ( __uint64_t __x ) {\n return __x ;\n }"}
{"idx": 7521, "target": 0, "func": "static int dissect_h245_V76LCP_mode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_V76LCP_mode , V76LCP_mode_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 7522, "target": 0, "func": "static gboolean dissect_rtp_heur_common ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data , gboolean check_destport ) {\n guint8 octet1 ;\n unsigned int version ;\n unsigned int offset = 0 ;\n if ( ! global_rtp_heur ) return FALSE ;\n octet1 = tvb_get_guint8 ( tvb , offset ) ;\n version = RTP_VERSION ( octet1 ) ;\n if ( version == 0 ) {\n if ( ! ( tvb_memeql ( tvb , 4 , \"ZRTP\" , 4 ) ) ) {\n call_dissector_only ( zrtp_handle , tvb , pinfo , tree , NULL ) ;\n return TRUE ;\n }\n else {\n switch ( global_rtp_version0_type ) {\n case RTP0_STUN : return call_dissector_only ( stun_heur_handle , tvb , pinfo , tree , NULL ) ;\n case RTP0_CLASSICSTUN : return call_dissector_only ( classicstun_heur_handle , tvb , pinfo , tree , NULL ) ;\n case RTP0_T38 : call_dissector_only ( t38_handle , tvb , pinfo , tree , NULL ) ;\n return TRUE ;\n case RTP0_SPRT : call_dissector_only ( sprt_handle , tvb , pinfo , tree , NULL ) ;\n return TRUE ;\n case RTP0_INVALID : default : return FALSE ;\n }\n }\n }\n else if ( version != 2 ) {\n return FALSE ;\n }\n if ( check_destport && ( ( pinfo -> destport % 2 ) != 0 ) ) {\n return FALSE ;\n }\n dissect_rtp ( tvb , pinfo , tree , data ) ;\n return TRUE ;\n }"}
{"idx": 7523, "target": 0, "func": "static inline void tswap64s ( uint64_t * s ) {\n }"}
{"idx": 7524, "target": 0, "func": "static guint16 de_setup_cont ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ ) {\n dtap_cc_setup ( tvb , tree , pinfo , offset , len ) ;\n return ( len ) ;\n }"}
{"idx": 7525, "target": 0, "func": "char * FLTGetExpressionForValuesRanges ( layerObj * lp , const char * item , const char * value , int forcecharcter ) {\n int bIscharacter , bSqlLayer = MS_FALSE ;\n char * pszExpression = NULL , * pszEscapedStr = NULL , * pszTmpExpression = NULL ;\n char * * paszElements = NULL , * * papszRangeElements = NULL ;\n int numelements , i , nrangeelements ;\n if ( lp && item && value ) {\n if ( strstr ( value , \"/\" ) == NULL ) {\n paszElements = msStringSplit ( value , ',' , & numelements ) ;\n if ( paszElements && numelements > 0 ) {\n if ( forcecharcter ) bIscharacter = MS_TRUE ;\n bIscharacter = ! FLTIsNumeric ( paszElements [ 0 ] ) ;\n pszTmpExpression = msStringConcatenate ( pszTmpExpression , \"(\" ) ;\n for ( i = 0 ;\n i < numelements ;\n i ++ ) {\n pszTmpExpression = msStringConcatenate ( pszTmpExpression , \"(\" ) ;\n if ( bSqlLayer ) pszTmpExpression = msStringConcatenate ( pszTmpExpression , item ) ;\n else {\n if ( bIscharacter ) pszTmpExpression = msStringConcatenate ( pszTmpExpression , \"\\\"\" ) ;\n pszTmpExpression = msStringConcatenate ( pszTmpExpression , \"[\" ) ;\n pszTmpExpression = msStringConcatenate ( pszTmpExpression , item ) ;\n pszTmpExpression = msStringConcatenate ( pszTmpExpression , \"]\" ) ;\n if ( bIscharacter ) pszTmpExpression = msStringConcatenate ( pszTmpExpression , \"\\\"\" ) ;\n }\n if ( bIscharacter ) {\n if ( bSqlLayer ) pszTmpExpression = msStringConcatenate ( pszTmpExpression , \" = '\" ) ;\n else pszTmpExpression = msStringConcatenate ( pszTmpExpression , \" = \\\"\" ) ;\n }\n else pszTmpExpression = msStringConcatenate ( pszTmpExpression , \" = \" ) ;\n pszEscapedStr = msLayerEscapeSQLParam ( lp , paszElements [ i ] ) ;\n pszTmpExpression = msStringConcatenate ( pszTmpExpression , pszEscapedStr ) ;\n if ( bIscharacter ) {\n if ( bSqlLayer ) pszTmpExpression = msStringConcatenate ( pszTmpExpression , \"'\" ) ;\n else pszTmpExpression = msStringConcatenate ( pszTmpExpression , \"\\\"\" ) ;\n }\n pszTmpExpression = msStringConcatenate ( pszTmpExpression , \")\" ) ;\n msFree ( pszEscapedStr ) ;\n pszEscapedStr = NULL ;\n if ( pszExpression != NULL ) pszExpression = msStringConcatenate ( pszExpression , \" OR \" ) ;\n pszExpression = msStringConcatenate ( pszExpression , pszTmpExpression ) ;\n msFree ( pszTmpExpression ) ;\n pszTmpExpression = NULL ;\n }\n pszExpression = msStringConcatenate ( pszExpression , \")\" ) ;\n }\n msFreeCharArray ( paszElements , numelements ) ;\n }\n else {\n paszElements = msStringSplit ( value , ',' , & numelements ) ;\n if ( paszElements && numelements > 0 ) {\n pszTmpExpression = msStringConcatenate ( pszTmpExpression , \"(\" ) ;\n for ( i = 0 ;\n i < numelements ;\n i ++ ) {\n papszRangeElements = msStringSplit ( paszElements [ i ] , '/' , & nrangeelements ) ;\n if ( papszRangeElements && nrangeelements > 0 ) {\n pszTmpExpression = msStringConcatenate ( pszTmpExpression , \"(\" ) ;\n if ( nrangeelements == 2 || nrangeelements == 3 ) {\n if ( bSqlLayer ) pszTmpExpression = msStringConcatenate ( pszTmpExpression , item ) ;\n else {\n pszTmpExpression = msStringConcatenate ( pszTmpExpression , \"[\" ) ;\n pszTmpExpression = msStringConcatenate ( pszTmpExpression , item ) ;\n pszTmpExpression = msStringConcatenate ( pszTmpExpression , \"]\" ) ;\n }\n pszTmpExpression = msStringConcatenate ( pszTmpExpression , \" >= \" ) ;\n pszEscapedStr = msLayerEscapeSQLParam ( lp , papszRangeElements [ 0 ] ) ;\n pszTmpExpression = msStringConcatenate ( pszTmpExpression , pszEscapedStr ) ;\n msFree ( pszEscapedStr ) ;\n pszEscapedStr = NULL ;\n pszTmpExpression = msStringConcatenate ( pszTmpExpression , \" AND \" ) ;\n if ( bSqlLayer ) pszTmpExpression = msStringConcatenate ( pszTmpExpression , item ) ;\n else {\n pszTmpExpression = msStringConcatenate ( pszTmpExpression , \"[\" ) ;\n pszTmpExpression = msStringConcatenate ( pszTmpExpression , item ) ;\n pszTmpExpression = msStringConcatenate ( pszTmpExpression , \"]\" ) ;\n }\n pszTmpExpression = msStringConcatenate ( pszTmpExpression , \" <= \" ) ;\n pszEscapedStr = msLayerEscapeSQLParam ( lp , papszRangeElements [ 1 ] ) ;\n pszTmpExpression = msStringConcatenate ( pszTmpExpression , pszEscapedStr ) ;\n msFree ( pszEscapedStr ) ;\n pszEscapedStr = NULL ;\n pszTmpExpression = msStringConcatenate ( pszTmpExpression , \")\" ) ;\n }\n else if ( nrangeelements == 1 ) {\n pszTmpExpression = msStringConcatenate ( pszTmpExpression , \"(\" ) ;\n if ( bSqlLayer ) pszTmpExpression = msStringConcatenate ( pszTmpExpression , item ) ;\n else {\n pszTmpExpression = msStringConcatenate ( pszTmpExpression , \"[\" ) ;\n pszTmpExpression = msStringConcatenate ( pszTmpExpression , item ) ;\n pszTmpExpression = msStringConcatenate ( pszTmpExpression , \"]\" ) ;\n }\n pszTmpExpression = msStringConcatenate ( pszTmpExpression , \" = \" ) ;\n pszEscapedStr = msLayerEscapeSQLParam ( lp , papszRangeElements [ 0 ] ) ;\n pszTmpExpression = msStringConcatenate ( pszTmpExpression , pszEscapedStr ) ;\n msFree ( pszEscapedStr ) ;\n pszEscapedStr = NULL ;\n pszTmpExpression = msStringConcatenate ( pszTmpExpression , \")\" ) ;\n }\n if ( pszExpression != NULL ) pszExpression = msStringConcatenate ( pszExpression , \" OR \" ) ;\n pszExpression = msStringConcatenate ( pszExpression , pszTmpExpression ) ;\n msFree ( pszTmpExpression ) ;\n pszTmpExpression = NULL ;\n }\n msFreeCharArray ( papszRangeElements , nrangeelements ) ;\n }\n pszExpression = msStringConcatenate ( pszExpression , \")\" ) ;\n }\n msFreeCharArray ( paszElements , numelements ) ;\n }\n }\n msFree ( pszTmpExpression ) ;\n return pszExpression ;\n }"}
{"idx": 7526, "target": 0, "func": "void vp9_decode_frame ( VP9Decoder * pbi , const uint8_t * data , const uint8_t * data_end , const uint8_t * * p_data_end ) {\n VP9_COMMON * const cm = & pbi -> common ;\n MACROBLOCKD * const xd = & pbi -> mb ;\n struct vp9_read_bit_buffer rb = {\n NULL , NULL , 0 , NULL , 0 }\n ;\n uint8_t clear_data [ MAX_VP9_HEADER_SIZE ] ;\n const size_t first_partition_size = read_uncompressed_header ( pbi , init_read_bit_buffer ( pbi , & rb , data , data_end , clear_data ) ) ;\n const int tile_rows = 1 << cm -> log2_tile_rows ;\n const int tile_cols = 1 << cm -> log2_tile_cols ;\n YV12_BUFFER_CONFIG * const new_fb = get_frame_new_buffer ( cm ) ;\n xd -> cur_buf = new_fb ;\n if ( ! first_partition_size ) {\n * p_data_end = data + ( cm -> profile <= PROFILE_2 ? 1 : 2 ) ;\n return ;\n }\n data += vp9_rb_bytes_read ( & rb ) ;\n if ( ! read_is_valid ( data , first_partition_size , data_end ) ) vpx_internal_error ( & cm -> error , VPX_CODEC_CORRUPT_FRAME , \"Truncated packet or corrupt header length\" ) ;\n init_macroblockd ( cm , & pbi -> mb ) ;\n if ( ! cm -> error_resilient_mode ) set_prev_mi ( cm ) ;\n else cm -> prev_mi = NULL ;\n setup_plane_dequants ( cm , xd , cm -> base_qindex ) ;\n vp9_setup_block_planes ( xd , cm -> subsampling_x , cm -> subsampling_y ) ;\n cm -> fc = cm -> frame_contexts [ cm -> frame_context_idx ] ;\n vp9_zero ( cm -> counts ) ;\n vp9_zero ( xd -> dqcoeff ) ;\n xd -> corrupted = 0 ;\n new_fb -> corrupted = read_compressed_header ( pbi , data , first_partition_size ) ;\n if ( pbi -> max_threads > 1 && tile_rows == 1 && tile_cols > 1 && cm -> frame_parallel_decoding_mode ) {\n * p_data_end = decode_tiles_mt ( pbi , data + first_partition_size , data_end ) ;\n if ( ! xd -> corrupted ) {\n vp9_loop_filter_frame_mt ( new_fb , pbi , cm , cm -> lf . filter_level , 0 ) ;\n }\n }\n else {\n * p_data_end = decode_tiles ( pbi , data + first_partition_size , data_end ) ;\n }\n new_fb -> corrupted |= xd -> corrupted ;\n if ( ! new_fb -> corrupted ) {\n if ( ! cm -> error_resilient_mode && ! cm -> frame_parallel_decoding_mode ) {\n vp9_adapt_coef_probs ( cm ) ;\n if ( ! frame_is_intra_only ( cm ) ) {\n vp9_adapt_mode_probs ( cm ) ;\n vp9_adapt_mv_probs ( cm , cm -> allow_high_precision_mv ) ;\n }\n }\n else {\n debug_check_frame_counts ( cm ) ;\n }\n }\n else {\n vpx_internal_error ( & cm -> error , VPX_CODEC_CORRUPT_FRAME , \"Decode failed. Frame data is corrupted.\" ) ;\n }\n if ( cm -> refresh_frame_context ) cm -> frame_contexts [ cm -> frame_context_idx ] = cm -> fc ;\n }"}
{"idx": 7527, "target": 0, "func": "static int dtls1_preprocess_fragment ( SSL * s , struct hm_header_st * msg_hdr ) {\n size_t frag_off , frag_len , msg_len ;\n msg_len = msg_hdr -> msg_len ;\n frag_off = msg_hdr -> frag_off ;\n frag_len = msg_hdr -> frag_len ;\n if ( ( frag_off + frag_len ) > msg_len ) {\n SSLerr ( SSL_F_DTLS1_PREPROCESS_FRAGMENT , SSL_R_EXCESSIVE_MESSAGE_SIZE ) ;\n return SSL_AD_ILLEGAL_PARAMETER ;\n }\n if ( s -> d1 -> r_msg_hdr . frag_off == 0 ) {\n if ( ! BUF_MEM_grow_clean ( s -> init_buf , msg_len + DTLS1_HM_HEADER_LENGTH ) ) {\n SSLerr ( SSL_F_DTLS1_PREPROCESS_FRAGMENT , ERR_R_BUF_LIB ) ;\n return SSL_AD_INTERNAL_ERROR ;\n }\n s -> s3 -> tmp . message_size = msg_len ;\n s -> d1 -> r_msg_hdr . msg_len = msg_len ;\n s -> s3 -> tmp . message_type = msg_hdr -> type ;\n s -> d1 -> r_msg_hdr . type = msg_hdr -> type ;\n s -> d1 -> r_msg_hdr . seq = msg_hdr -> seq ;\n }\n else if ( msg_len != s -> d1 -> r_msg_hdr . msg_len ) {\n SSLerr ( SSL_F_DTLS1_PREPROCESS_FRAGMENT , SSL_R_EXCESSIVE_MESSAGE_SIZE ) ;\n return SSL_AD_ILLEGAL_PARAMETER ;\n }\n return 0 ;\n }"}
{"idx": 7528, "target": 0, "func": "inline void mime_hdr_set_accelerator_slotnum ( MIMEHdrImpl * mh , int32_t slot_id , uint32_t slot_num ) {\n ink_assert ( ( slot_id != MIME_SLOTID_NONE ) && ( slot_id < 32 ) ) ;\n ink_assert ( slot_num < 16 ) ;\n uint32_t word_index = slot_id / 8 ;\n uint32_t word = mh -> m_slot_accelerators [ word_index ] ;\n uint32_t nybble = slot_id % 8 ;\n uint32_t shift = nybble * 4 ;\n uint32_t mask = ~ ( MIME_FIELD_SLOTNUM_MASK << shift ) ;\n uint32_t graft = ( slot_num << shift ) ;\n uint32_t new_word = ( word & mask ) | graft ;\n mh -> m_slot_accelerators [ word_index ] = new_word ;\n }"}
{"idx": 7529, "target": 0, "func": "static void steamdiscover_dissect_body_authresponse ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , gint offset , gint bytes_left ) {\n gint len ;\n gint64 value ;\n protobuf_desc_t pb = {\n tvb , offset , bytes_left }\n ;\n protobuf_tag_t tag = {\n 0 , 0 , 0 }\n ;\n while ( protobuf_iter_next ( & pb , & tag ) ) {\n switch ( tag . field_number ) {\n case STEAMDISCOVER_FN_AUTHRESPONSE_AUTHRESULT : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_uint64 ( tree , hf_steam_ihs_discovery_body_authresponse_authresult , pb . tvb , pb . offset , len , ( guint64 ) value ) ;\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"%s Result=%\" G_GUINT64_FORMAT \"(%s)\" , hf_steam_ihs_discovery_header_msgtype_strings [ STEAMDISCOVER_MSGTYPE_DEVICEAUTHORIZATIONRESPONSE ] . strptr , ( guint64 ) value , val64_to_str_const ( ( guint64 ) value , hf_steam_ihs_discovery_body_authresponse_authresult_strings , \"Unknown\" ) ) ;\n break ;\n default : len = protobuf_dissect_unknown_field ( & pb , & tag , pinfo , tree , NULL ) ;\n break ;\n }\n protobuf_seek_forward ( & pb , len ) ;\n }\n }"}
{"idx": 7530, "target": 0, "func": "static int cirrus_vga_read_cr ( CirrusVGAState * s , unsigned reg_index ) {\n switch ( reg_index ) {\n case 0x00 : case 0x01 : case 0x02 : case 0x03 : case 0x04 : case 0x05 : case 0x06 : case 0x07 : case 0x08 : case 0x09 : case 0x0a : case 0x0b : case 0x0c : case 0x0d : case 0x0e : case 0x0f : case 0x10 : case 0x11 : case 0x12 : case 0x13 : case 0x14 : case 0x15 : case 0x16 : case 0x17 : case 0x18 : return s -> vga . cr [ s -> vga . cr_index ] ;\n case 0x24 : return ( s -> vga . ar_flip_flop << 7 ) ;\n case 0x19 : case 0x1a : case 0x1b : case 0x1c : case 0x1d : case 0x22 : case 0x25 : case 0x27 : return s -> vga . cr [ s -> vga . cr_index ] ;\n case 0x26 : return s -> vga . ar_index & 0x3f ;\n break ;\n default : # ifdef DEBUG_CIRRUS printf ( \"cirrus: inport cr_index %02x\\n\" , reg_index ) ;\n # endif return 0xff ;\n }\n }"}
{"idx": 7531, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( ProfileBrowserTest , URLFetcherUsingExtensionContextDuringShutdown ) {\n StartActiveFetcherDuringProfileShutdownTest ( browser ( ) -> profile ( ) -> GetRequestContextForExtensions ( ) ) ;\n }"}
{"idx": 7532, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ExtensionPreferenceApiTest , OnChangeSplitWithNoOTRProfile ) {\n PrefService * prefs = profile_ -> GetPrefs ( ) ;\n prefs -> SetBoolean ( prefs : : kBlockThirdPartyCookies , true ) ;\n extensions : : ResultCatcher catcher ;\n ExtensionTestMessageListener loaded_incognito_test_listener ( \"incognito loaded\" , false ) ;\n ExtensionTestMessageListener change_pref_listener ( \"change pref value\" , false ) ;\n ASSERT_TRUE ( LoadExtensionIncognito ( test_data_dir_ . AppendASCII ( \"preference\" ) . AppendASCII ( \"onchange_split_regular_only\" ) ) ) ;\n ASSERT_TRUE ( change_pref_listener . WaitUntilSatisfied ( ) ) ;\n prefs -> SetBoolean ( prefs : : kBlockThirdPartyCookies , false ) ;\n EXPECT_TRUE ( catcher . GetNextResult ( ) ) << catcher . message ( ) ;\n EXPECT_FALSE ( loaded_incognito_test_listener . was_satisfied ( ) ) ;\n EXPECT_FALSE ( profile_ -> HasOffTheRecordProfile ( ) ) ;\n }"}
{"idx": 7533, "target": 0, "func": "int qemuMonitorTextGetStatus ( qemuMonitorPtr mon , bool * running , virDomainPausedReason * reason ) {\n char * reply ;\n int ret = - 1 ;\n if ( reason ) * reason = VIR_DOMAIN_PAUSED_UNKNOWN ;\n if ( qemuMonitorHMPCommand ( mon , \"info status\" , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , _ ( \"cannot get status info\" ) ) ;\n return - 1 ;\n }\n if ( strstr ( reply , \"running\" ) ) {\n * running = true ;\n }\n else if ( strstr ( reply , \"paused\" ) ) {\n char * status ;\n if ( ( status = strchr ( reply , '(' ) ) ) {\n char * end = strchr ( status , ')' ) ;\n if ( end ) * end = '\\0' ;\n else status = NULL ;\n }\n if ( ! status ) VIR_DEBUG ( \"info status was missing status details\" ) ;\n else if ( reason ) * reason = qemuMonitorVMStatusToPausedReason ( status ) ;\n * running = false ;\n }\n else {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"unexpected reply from info status: %s\" ) , reply ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( reply ) ;\n return ret ;\n }"}
{"idx": 7534, "target": 1, "func": "static int dsa_priv_decode ( EVP_PKEY * pkey , PKCS8_PRIV_KEY_INFO * p8 ) {\n const unsigned char * p , * pm ;\n int pklen , pmlen ;\n int ptype ;\n void * pval ;\n ASN1_STRING * pstr ;\n X509_ALGOR * palg ;\n ASN1_INTEGER * privkey = NULL ;\n BN_CTX * ctx = NULL ;\n STACK_OF ( ASN1_TYPE ) * ndsa = NULL ;\n DSA * dsa = NULL ;\n if ( ! PKCS8_pkey_get0 ( NULL , & p , & pklen , & palg , p8 ) ) return 0 ;\n X509_ALGOR_get0 ( NULL , & ptype , & pval , palg ) ;\n if ( * p == ( V_ASN1_SEQUENCE | V_ASN1_CONSTRUCTED ) ) {\n ASN1_TYPE * t1 , * t2 ;\n if ( ( ndsa = d2i_ASN1_SEQUENCE_ANY ( NULL , & p , pklen ) ) == NULL ) goto decerr ;\n if ( sk_ASN1_TYPE_num ( ndsa ) != 2 ) goto decerr ;\n t1 = sk_ASN1_TYPE_value ( ndsa , 0 ) ;\n t2 = sk_ASN1_TYPE_value ( ndsa , 1 ) ;\n if ( t1 -> type == V_ASN1_SEQUENCE ) {\n p8 -> broken = PKCS8_EMBEDDED_PARAM ;\n pval = t1 -> value . ptr ;\n }\n else if ( ptype == V_ASN1_SEQUENCE ) p8 -> broken = PKCS8_NS_DB ;\n else goto decerr ;\n if ( t2 -> type != V_ASN1_INTEGER ) goto decerr ;\n privkey = t2 -> value . integer ;\n }\n else {\n const unsigned char * q = p ;\n if ( ( privkey = d2i_ASN1_INTEGER ( NULL , & p , pklen ) ) == NULL ) goto decerr ;\n if ( privkey -> type == V_ASN1_NEG_INTEGER ) {\n p8 -> broken = PKCS8_NEG_PRIVKEY ;\n ASN1_STRING_clear_free ( privkey ) ;\n if ( ( privkey = d2i_ASN1_UINTEGER ( NULL , & q , pklen ) ) == NULL ) goto decerr ;\n }\n if ( ptype != V_ASN1_SEQUENCE ) goto decerr ;\n }\n pstr = pval ;\n pm = pstr -> data ;\n pmlen = pstr -> length ;\n if ( ( dsa = d2i_DSAparams ( NULL , & pm , pmlen ) ) == NULL ) goto decerr ;\n if ( ( dsa -> priv_key = BN_secure_new ( ) ) == NULL || ! ASN1_INTEGER_to_BN ( privkey , dsa -> priv_key ) ) {\n DSAerr ( DSA_F_DSA_PRIV_DECODE , DSA_R_BN_ERROR ) ;\n goto dsaerr ;\n }\n if ( ( dsa -> pub_key = BN_new ( ) ) == NULL ) {\n DSAerr ( DSA_F_DSA_PRIV_DECODE , ERR_R_MALLOC_FAILURE ) ;\n goto dsaerr ;\n }\n if ( ( ctx = BN_CTX_new ( ) ) == NULL ) {\n DSAerr ( DSA_F_DSA_PRIV_DECODE , ERR_R_MALLOC_FAILURE ) ;\n goto dsaerr ;\n }\n if ( ! BN_mod_exp ( dsa -> pub_key , dsa -> g , dsa -> priv_key , dsa -> p , ctx ) ) {\n DSAerr ( DSA_F_DSA_PRIV_DECODE , DSA_R_BN_ERROR ) ;\n goto dsaerr ;\n }\n EVP_PKEY_assign_DSA ( pkey , dsa ) ;\n BN_CTX_free ( ctx ) ;\n if ( ndsa ) sk_ASN1_TYPE_pop_free ( ndsa , ASN1_TYPE_free ) ;\n else ASN1_STRING_clear_free ( privkey ) ;\n return 1 ;\n decerr : DSAerr ( DSA_F_DSA_PRIV_DECODE , DSA_R_DECODE_ERROR ) ;\n dsaerr : BN_CTX_free ( ctx ) ;\n ASN1_STRING_clear_free ( privkey ) ;\n sk_ASN1_TYPE_pop_free ( ndsa , ASN1_TYPE_free ) ;\n DSA_free ( dsa ) ;\n return 0 ;\n }"}
{"idx": 7535, "target": 0, "func": "static int unpack ( const uint8_t * src , const uint8_t * src_end , uint8_t * dst , int width , int height ) {\n uint8_t * dst_end = dst + width * height ;\n int size , size1 , size2 , offset , run ;\n uint8_t * dst_start = dst ;\n if ( src [ 0 ] & 0x01 ) src += 5 ;\n else src += 2 ;\n if ( src + 3 > src_end ) return AVERROR_INVALIDDATA ;\n size = AV_RB24 ( src ) ;\n src += 3 ;\n while ( size > 0 && src < src_end ) {\n size1 = ( src [ 0 ] & 3 ) ;\n if ( src [ 0 ] & 0x80 ) {\n if ( src [ 0 ] & 0x40 ) {\n if ( src [ 0 ] & 0x20 ) {\n if ( src [ 0 ] < 0xFC ) size1 = ( ( ( src [ 0 ] & 31 ) + 1 ) << 2 ) ;\n src ++ ;\n size2 = 0 ;\n }\n else {\n offset = ( ( src [ 0 ] & 0x10 ) << 12 ) + AV_RB16 ( & src [ 1 ] ) + 1 ;\n size2 = ( ( src [ 0 ] & 0xC ) << 6 ) + src [ 3 ] + 5 ;\n src += 4 ;\n }\n }\n else {\n size1 = ( ( src [ 1 ] & 0xC0 ) >> 6 ) ;\n offset = ( AV_RB16 ( & src [ 1 ] ) & 0x3FFF ) + 1 ;\n size2 = ( src [ 0 ] & 0x3F ) + 4 ;\n src += 3 ;\n }\n }\n else {\n offset = ( ( src [ 0 ] & 0x60 ) << 3 ) + src [ 1 ] + 1 ;\n size2 = ( ( src [ 0 ] & 0x1C ) >> 2 ) + 3 ;\n src += 2 ;\n }\n if ( size1 > src_end - src ) break ;\n if ( size1 > 0 ) {\n size -= size1 ;\n run = FFMIN ( size1 , dst_end - dst ) ;\n memcpy ( dst , src , run ) ;\n dst += run ;\n src += run ;\n }\n if ( size2 > 0 ) {\n if ( dst - dst_start < offset ) return 0 ;\n size -= size2 ;\n run = FFMIN ( size2 , dst_end - dst ) ;\n av_memcpy_backptr ( dst , offset , run ) ;\n dst += run ;\n }\n }\n return 0 ;\n }"}
{"idx": 7536, "target": 0, "func": "static void pdf_run_k ( fz_context * ctx , pdf_processor * proc , float c , float m , float y , float k ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n float color [ 4 ] = {\n c , m , y , k }\n ;\n pr -> dev -> flags &= ~ FZ_DEVFLAG_FILLCOLOR_UNDEFINED ;\n pdf_set_colorspace ( ctx , pr , PDF_FILL , fz_device_cmyk ( ctx ) ) ;\n pdf_set_color ( ctx , pr , PDF_FILL , color ) ;\n }"}
{"idx": 7537, "target": 0, "func": "static void ptvcursor_new_subtree_levels ( ptvcursor_t * ptvc ) {\n subtree_lvl * pushed_tree ;\n DISSECTOR_ASSERT ( ptvc -> pushed_tree_max <= SUBTREE_MAX_LEVELS - SUBTREE_ONCE_ALLOCATION_NUMBER ) ;\n ptvc -> pushed_tree_max += SUBTREE_ONCE_ALLOCATION_NUMBER ;\n pushed_tree = ( subtree_lvl * ) wmem_alloc ( wmem_packet_scope ( ) , sizeof ( subtree_lvl ) * ptvc -> pushed_tree_max ) ;\n DISSECTOR_ASSERT ( pushed_tree != NULL ) ;\n if ( ptvc -> pushed_tree ) memcpy ( pushed_tree , ptvc -> pushed_tree , ptvc -> pushed_tree_max - SUBTREE_ONCE_ALLOCATION_NUMBER ) ;\n ptvc -> pushed_tree = pushed_tree ;\n }"}
{"idx": 7538, "target": 0, "func": "static UChar32 U_CALLCONV T_UConverter_getNextUChar_UTF32_BE ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n const uint8_t * mySource ;\n UChar32 myUChar ;\n int32_t length ;\n mySource = ( const uint8_t * ) args -> source ;\n if ( mySource >= ( const uint8_t * ) args -> sourceLimit ) {\n * err = U_INDEX_OUTOFBOUNDS_ERROR ;\n return 0xffff ;\n }\n length = ( int32_t ) ( ( const uint8_t * ) args -> sourceLimit - mySource ) ;\n if ( length < 4 ) {\n uprv_memcpy ( args -> converter -> toUBytes , mySource , length ) ;\n args -> converter -> toULength = ( int8_t ) length ;\n args -> source = ( const char * ) ( mySource + length ) ;\n * err = U_TRUNCATED_CHAR_FOUND ;\n return 0xffff ;\n }\n myUChar = ( ( UChar32 ) mySource [ 0 ] << 24 ) | ( ( UChar32 ) mySource [ 1 ] << 16 ) | ( ( UChar32 ) mySource [ 2 ] << 8 ) | ( ( UChar32 ) mySource [ 3 ] ) ;\n args -> source = ( const char * ) ( mySource + 4 ) ;\n if ( ( uint32_t ) myUChar <= MAXIMUM_UTF && ! U_IS_SURROGATE ( myUChar ) ) {\n return myUChar ;\n }\n uprv_memcpy ( args -> converter -> toUBytes , mySource , 4 ) ;\n args -> converter -> toULength = 4 ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n return 0xffff ;\n }"}
{"idx": 7539, "target": 0, "func": "static void tgq_calculate_qtable ( TgqContext * s , int quant ) {\n int i , j ;\n const int a = ( 14 * ( 100 - quant ) ) / 100 + 1 ;\n const int b = ( 11 * ( 100 - quant ) ) / 100 + 4 ;\n for ( j = 0 ;\n j < 8 ;\n j ++ ) for ( i = 0 ;\n i < 8 ;\n i ++ ) s -> qtable [ j * 8 + i ] = ( ( a * ( j + i ) / ( 7 + 7 ) + b ) * ff_inv_aanscales [ j * 8 + i ] ) >> ( 14 - 4 ) ;\n }"}
{"idx": 7540, "target": 1, "func": "TEST ( ExtensionCSPValidator , IsSecure ) {\n EXPECT_TRUE ( CheckSanitizeCSP ( std : : string ( ) , OPTIONS_ALLOW_UNSAFE_EVAL , \"script-src 'self';\n object-src 'self';\n\" , MissingSecureSrcWarning ( \"script-src\" ) , MissingSecureSrcWarning ( \"object-src\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"img-src https://google.com\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"img-src https://google.com;\n script-src 'self';\n object-src 'self';\n\" , MissingSecureSrcWarning ( \"script-src\" ) , MissingSecureSrcWarning ( \"object-src\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"script-src a b\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"script-src;\n object-src 'self';\n\" , InsecureValueWarning ( \"script-src\" , \"a\" ) , InsecureValueWarning ( \"script-src\" , \"b\" ) , MissingSecureSrcWarning ( \"object-src\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src *\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src;\n\" , InsecureValueWarning ( \"default-src\" , \"*\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self';\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'none';\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' ftp://google.com\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"ftp://google.com\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' https://google.com;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src *;\n default-src 'self'\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src;\n default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"*\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self';\n default-src *;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src 'self';\n default-src;\n\" ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self';\n default-src *;\n script-src *;\n script-src 'self'\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src 'self';\n default-src;\n script-src;\n script-src 'self';\n\" , InsecureValueWarning ( \"script-src\" , \"*\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self';\n default-src *;\n script-src 'self';\n script-src *;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src 'self';\n default-src;\n script-src 'self';\n script-src;\n\" ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src *;\n script-src 'self'\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src;\n script-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"*\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src *;\n script-src 'self';\n img-src 'self'\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src;\n script-src 'self';\n img-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"*\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src *;\n script-src 'self';\n object-src 'self';\n\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src;\n script-src 'self';\n object-src 'self';\n\" ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"script-src 'self';\n object-src 'self';\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'unsafe-eval';\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'unsafe-eval'\" , OPTIONS_NONE , \"default-src;\n\" , InsecureValueWarning ( \"default-src\" , \"'unsafe-eval'\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'unsafe-inline'\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src;\n\" , InsecureValueWarning ( \"default-src\" , \"'unsafe-inline'\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'unsafe-inline' 'none'\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src 'none';\n\" , InsecureValueWarning ( \"default-src\" , \"'unsafe-inline'\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' http://google.com\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"http://google.com\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' https://google.com;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' chrome://resources;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' chrome-extension://aabbcc;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' chrome-extension-resource://aabbcc;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' https:\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"https:\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' http:\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"http:\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' google.com\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"google.com\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' *\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"*\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' *:*\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"*:*\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' *:*/\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"*:*/\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' *:*/path\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"*:*/path\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' https://\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"https://\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' https://*:*\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"https://*:*\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' https://*:*/\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"https://*:*/\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' https://*:*/path\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"https://*:*/path\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' https://*.com\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"https://*.com\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' https://*.*.google.com/\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"https://*.*.google.com/\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' https://*.*.google.com:*/\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"https://*.*.google.com:*/\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' https://www.*.google.com/\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"https://www.*.google.com/\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' https://www.*.google.com:*/\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"https://www.*.google.com:*/\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' chrome://*\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"chrome://*\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' chrome-extension://*\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"chrome-extension://*\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' chrome-extension://\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"chrome-extension://\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' https://*.google.com;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' https://*.google.com:1;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' https://*.google.com:*;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' https://*.google.com:1/;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' https://*.google.com:*/;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' http://127.0.0.1;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' http://localhost;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' http://lOcAlHoSt;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src 'self' http://lOcAlHoSt;\n\" ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' http://127.0.0.1:9999;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' http://localhost:8888;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' http://127.0.0.1.example.com\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"http://127.0.0.1.example.com\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' http://localhost.example.com\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"http://localhost.example.com\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' blob:;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' blob:http://example.com/XXX\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"blob:http://example.com/XXX\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' filesystem:;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' filesystem:http://example.com/XX\" , OPTIONS_ALLOW_UNSAFE_EVAL , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"filesystem:http://example.com/XX\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' https://*.googleapis.com;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src 'self' https://x.googleapis.com;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"script-src 'self';\n object-src *\" , OPTIONS_NONE , \"script-src 'self';\n object-src;\n\" , InsecureValueWarning ( \"object-src\" , \"*\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"script-src 'self';\n object-src *\" , OPTIONS_ALLOW_INSECURE_OBJECT_SRC , \"script-src 'self';\n object-src;\n\" , InsecureValueWarning ( \"object-src\" , \"*\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"script-src 'self';\n object-src *;\n plugin-types application/pdf;\n\" , OPTIONS_ALLOW_INSECURE_OBJECT_SRC ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"script-src 'self';\n object-src *;\n \" \"plugin-types application/x-shockwave-flash\" , OPTIONS_ALLOW_INSECURE_OBJECT_SRC , \"script-src 'self';\n object-src;\n \" \"plugin-types application/x-shockwave-flash;\n\" , InsecureValueWarning ( \"object-src\" , \"*\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"script-src 'self';\n object-src *;\n \" \"plugin-types application/x-shockwave-flash application/pdf;\n\" , OPTIONS_ALLOW_INSECURE_OBJECT_SRC , \"script-src 'self';\n object-src;\n \" \"plugin-types application/x-shockwave-flash application/pdf;\n\" , InsecureValueWarning ( \"object-src\" , \"*\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"script-src 'self';\n object-src http://www.example.com;\n \" \"plugin-types application/pdf;\n\" , OPTIONS_ALLOW_INSECURE_OBJECT_SRC ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"object-src http://www.example.com blob:;\n script-src 'self';\n \" \"plugin-types application/pdf;\n\" , OPTIONS_ALLOW_INSECURE_OBJECT_SRC ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"script-src 'self';\n object-src http://*.example.com;\n \" \"plugin-types application/pdf;\n\" , OPTIONS_ALLOW_INSECURE_OBJECT_SRC ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"script-src *;\n object-src *;\n plugin-types application/pdf;\n\" , OPTIONS_ALLOW_INSECURE_OBJECT_SRC , \"script-src;\n object-src *;\n plugin-types application/pdf;\n\" , InsecureValueWarning ( \"script-src\" , \"*\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src;\n script-src\" \" 'sha256-hndjYvzUzy2Ykuad81Cwsl1FOXX/qYs/aDVyUyNZwBw='\" \" 'sha384-bSVm1i3sjPBRM4TwZtYTDjk9JxZMExYHWbFmP1SxDhJH4ue0Wu9OPOkY5hcqRcS\" \"t'\" \" 'sha512-440MmBLtj9Kp5Bqloogn9BqGDylY8vFsv5/zXL1zH2fJVssCoskRig4gyM+9Kqw\" \"vCSapSz5CVoUGHQcxv43UQg==';\n\" , OPTIONS_NONE ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src;\n script-src 'sha1-eYyYGmKWdhpUewohaXk9o8IaLSw=';\n\" , OPTIONS_NONE , \"default-src;\n script-src;\n\" , InsecureValueWarning ( \"script-src\" , \"'sha1-eYyYGmKWdhpUewohaXk9o8IaLSw='\" ) ) ) ;\n EXPECT_TRUE ( CheckSanitizeCSP ( \"default-src;\n script-src 'sha256-hndjYvzUzy2Ykuad81Cwsl1FOXX/qYs/aDVyUyNZ\" \"wBw= sha256-qznLcsROx4GACP2dm0UCKCzCG+HiZ1guq6ZZDob/Tng=';\n\" , OPTIONS_NONE , \"default-src;\n script-src;\n\" , InsecureValueWarning ( \"script-src\" , \"'sha256-hndjYvzUzy2Ykuad81Cwsl1FOXX/qYs/aDVyUyNZwBw=\" ) , InsecureValueWarning ( \"script-src\" , \"sha256-qznLcsROx4GACP2dm0UCKCzCG+HiZ1guq6ZZDob/Tng='\" ) ) ) ;\n }"}
{"idx": 7541, "target": 0, "func": "static void encode_subband ( VC2EncContext * s , PutBitContext * pb , int sx , int sy , SubBand * b , int quant ) {\n int x , y ;\n const int left = b -> width * ( sx + 0 ) / s -> num_x ;\n const int right = b -> width * ( sx + 1 ) / s -> num_x ;\n const int top = b -> height * ( sy + 0 ) / s -> num_y ;\n const int bottom = b -> height * ( sy + 1 ) / s -> num_y ;\n const int qfactor = ff_dirac_qscale_tab [ quant ] ;\n const uint8_t * len_lut = & s -> coef_lut_len [ quant * COEF_LUT_TAB ] ;\n const uint32_t * val_lut = & s -> coef_lut_val [ quant * COEF_LUT_TAB ] ;\n dwtcoef * coeff = b -> buf + top * b -> stride ;\n for ( y = top ;\n y < bottom ;\n y ++ ) {\n for ( x = left ;\n x < right ;\n x ++ ) {\n const int neg = coeff [ x ] < 0 ;\n uint32_t c_abs = FFABS ( coeff [ x ] ) ;\n if ( c_abs < COEF_LUT_TAB ) {\n put_bits ( pb , len_lut [ c_abs ] , val_lut [ c_abs ] | neg ) ;\n }\n else {\n c_abs = QUANT ( c_abs , qfactor ) ;\n put_vc2_ue_uint ( pb , c_abs ) ;\n if ( c_abs ) put_bits ( pb , 1 , neg ) ;\n }\n }\n coeff += b -> stride ;\n }\n }"}
{"idx": 7542, "target": 0, "func": "METHOD ( x509_t , create_name_constraint_enumerator , enumerator_t * , private_x509_cert_t * this , bool perm ) {\n if ( perm ) {\n return this -> permitted_names -> create_enumerator ( this -> permitted_names ) ;\n }\n return this -> excluded_names -> create_enumerator ( this -> excluded_names ) ;\n }"}
{"idx": 7543, "target": 0, "func": "static char * unescape_word ( struct Curl_easy * data , const char * inputbuff ) {\n char * newp ;\n char * dictp ;\n char * ptr ;\n size_t len ;\n char ch ;\n int olen = 0 ;\n CURLcode result = Curl_urldecode ( data , inputbuff , 0 , & newp , & len , FALSE ) ;\n if ( ! newp || result ) return NULL ;\n dictp = malloc ( ( ( size_t ) len ) * 2 + 1 ) ;\n if ( dictp ) {\n for ( ptr = newp ;\n ( ch = * ptr ) != 0 ;\n ptr ++ ) {\n if ( ( ch <= 32 ) || ( ch == 127 ) || ( ch == '\\'' ) || ( ch == '\\\"' ) || ( ch == '\\\\' ) ) {\n dictp [ olen ++ ] = '\\\\' ;\n }\n dictp [ olen ++ ] = ch ;\n }\n dictp [ olen ] = 0 ;\n }\n free ( newp ) ;\n return dictp ;\n }"}
{"idx": 7544, "target": 0, "func": "int gdev_mem_open_scan_lines ( gx_device_memory * mdev , int setup_height ) {\n bool line_pointers_adjacent = true ;\n ulong size ;\n if ( setup_height < 0 || setup_height > mdev -> height ) return_error ( gs_error_rangecheck ) ;\n if ( mdev -> bitmap_memory != 0 ) {\n int align ;\n if ( gdev_mem_bitmap_size ( mdev , & size ) < 0 ) return_error ( gs_error_VMerror ) ;\n if ( ( uint ) size != size ) return_error ( gs_error_limitcheck ) ;\n mdev -> base = gs_alloc_bytes ( mdev -> bitmap_memory , ( uint ) size , \"mem_open\" ) ;\n if ( mdev -> base == 0 ) return_error ( gs_error_VMerror ) ;\n # ifdef PACIFY_VALGRIND memset ( mdev -> base , 0x00 , size ) ;\n # endif align = 1 << mdev -> log2_align_mod ;\n mdev -> base += ( - ( int ) ( intptr_t ) mdev -> base ) & ( align - 1 ) ;\n mdev -> foreign_bits = false ;\n }\n else if ( mdev -> line_pointer_memory != 0 ) {\n mdev -> line_ptrs = ( byte * * ) gs_alloc_byte_array ( mdev -> line_pointer_memory , mdev -> height , sizeof ( byte * ) * ( mdev -> is_planar ? mdev -> color_info . num_components : 1 ) , \"gdev_mem_open_scan_lines\" ) ;\n if ( mdev -> line_ptrs == 0 ) return_error ( gs_error_VMerror ) ;\n mdev -> foreign_line_pointers = false ;\n line_pointers_adjacent = false ;\n }\n if ( line_pointers_adjacent ) {\n int code ;\n if ( mdev -> base == 0 ) return_error ( gs_error_rangecheck ) ;\n code = gdev_mem_bits_size ( mdev , mdev -> width , mdev -> height , & size ) ;\n if ( code < 0 ) return code ;\n mdev -> line_ptrs = ( byte * * ) ( mdev -> base + size ) ;\n }\n mdev -> raster = gx_device_raster ( ( gx_device * ) mdev , 1 ) ;\n return gdev_mem_set_line_ptrs ( mdev , NULL , 0 , NULL , setup_height ) ;\n }"}
{"idx": 7545, "target": 0, "func": "static const char * cmd_hash_param ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n if ( dcfg == NULL ) return NULL ;\n if ( p1 == NULL ) return NULL ;\n dcfg -> crypto_param_name = p1 ;\n return NULL ;\n }"}
{"idx": 7546, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( AppApiTest , MAYBE_ReloadAppAfterCrash ) {\n extensions : : ProcessMap * process_map = extensions : : ProcessMap : : Get ( browser ( ) -> profile ( ) ) ;\n ASSERT_TRUE ( LoadExtension ( test_data_dir_ . AppendASCII ( \"app_process\" ) ) ) ;\n GURL base_url = GetTestBaseURL ( \"app_process\" ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , base_url . Resolve ( \"path1/empty.html\" ) ) ;\n WebContents * contents = browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 0 ) ;\n EXPECT_TRUE ( process_map -> Contains ( contents -> GetRenderProcessHost ( ) -> GetID ( ) ) ) ;\n bool is_installed = false ;\n ASSERT_TRUE ( content : : ExecuteScriptAndExtractBool ( contents , \"window.domAutomationController.send(chrome.app.isInstalled)\" , & is_installed ) ) ;\n ASSERT_TRUE ( is_installed ) ;\n content : : CrashTab ( browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) ) ;\n content : : WindowedNotificationObserver observer ( content : : NOTIFICATION_LOAD_STOP , content : : Source < NavigationController > ( & browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) -> GetController ( ) ) ) ;\n chrome : : Reload ( browser ( ) , WindowOpenDisposition : : CURRENT_TAB ) ;\n observer . Wait ( ) ;\n ASSERT_TRUE ( content : : ExecuteScriptAndExtractBool ( contents , \"window.domAutomationController.send(chrome.app.isInstalled)\" , & is_installed ) ) ;\n ASSERT_TRUE ( is_installed ) ;\n }"}
{"idx": 7547, "target": 0, "func": "void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 ) sadMxN ( 16 , 32 ) sadMxNx4D ( 16 , 32 ) sadMxN ( 16 , 16 ) sadMxNxK ( 16 , 16 , 3 ) sadMxNxK ( 16 , 16 , 8 ) sadMxNx4D ( 16 , 16 ) sadMxN ( 16 , 8 ) sadMxNxK ( 16 , 8 , 3 ) sadMxNxK ( 16 , 8 , 8 ) sadMxNx4D ( 16 , 8 ) sadMxN ( 8 , 16 ) sadMxNxK ( 8 , 16 , 3 ) sadMxNxK ( 8 , 16 , 8 ) sadMxNx4D ( 8 , 16 ) sadMxN ( 8 , 8 ) sadMxNxK ( 8 , 8 , 3 ) sadMxNxK ( 8 , 8 , 8 ) sadMxNx4D ( 8 , 8 ) sadMxN ( 8 , 4 ) sadMxNxK ( 8 , 4 , 8 ) sadMxNx4D ( 8 , 4 ) sadMxN ( 4 , 8 ) sadMxNxK ( 4 , 8 , 8 ) sadMxNx4D ( 4 , 8 ) sadMxN ( 4 , 4 ) sadMxNxK ( 4 , 4 , 3 )"}
{"idx": 7548, "target": 0, "func": "static inline void decode_dc_coeffs ( GetBitContext * gb , int16_t * out , int nblocks ) {\n int16_t prev_dc ;\n int i , sign ;\n int16_t delta ;\n unsigned int code ;\n code = decode_vlc_codeword ( gb , FIRST_DC_CB ) ;\n out [ 0 ] = prev_dc = TOSIGNED ( code ) ;\n out += 64 ;\n delta = 3 ;\n for ( i = 1 ;\n i < nblocks ;\n i ++ , out += 64 ) {\n code = decode_vlc_codeword ( gb , ff_prores_dc_codebook [ FFMIN ( FFABS ( delta ) , 3 ) ] ) ;\n sign = - ( ( ( delta >> 15 ) & 1 ) ^ ( code & 1 ) ) ;\n delta = ( ( ( code + 1 ) >> 1 ) ^ sign ) - sign ;\n prev_dc += delta ;\n out [ 0 ] = prev_dc ;\n }\n }"}
{"idx": 7549, "target": 1, "func": "static gboolean logcat_read_packet ( struct logcat_phdr * logcat , FILE_T fh , struct wtap_pkthdr * phdr , Buffer * buf , int * err , gchar * * err_info ) {\n gint bytes_read ;\n gint packet_size ;\n guint16 payload_length ;\n guint tmp [ 2 ] ;\n guint8 * pd ;\n bytes_read = file_read ( & tmp , 2 , fh ) ;\n if ( bytes_read != 2 ) {\n * err = file_error ( fh , err_info ) ;\n if ( * err == 0 && bytes_read != 0 ) * err = WTAP_ERR_SHORT_READ ;\n return FALSE ;\n }\n payload_length = pletoh16 ( tmp ) ;\n if ( logcat -> version == 1 ) {\n packet_size = 5 * 4 + payload_length ;\n }\n else if ( logcat -> version == 2 ) {\n packet_size = 6 * 4 + payload_length ;\n }\n else {\n return FALSE ;\n }\n buffer_assure_space ( buf , packet_size ) ;\n pd = buffer_start_ptr ( buf ) ;\n memcpy ( pd , tmp , 2 ) ;\n bytes_read = file_read ( pd + 2 , packet_size - 2 , fh ) ;\n if ( bytes_read != packet_size - 2 ) {\n * err = file_error ( fh , err_info ) ;\n if ( * err == 0 ) * err = WTAP_ERR_SHORT_READ ;\n return FALSE ;\n }\n phdr -> rec_type = REC_TYPE_PACKET ;\n phdr -> presence_flags = WTAP_HAS_TS ;\n phdr -> ts . secs = ( time_t ) pletoh32 ( pd + 12 ) ;\n phdr -> ts . nsecs = ( int ) pletoh32 ( pd + 16 ) ;\n phdr -> caplen = packet_size ;\n phdr -> len = packet_size ;\n phdr -> pseudo_header . logcat . version = logcat -> version ;\n return TRUE ;\n }"}
{"idx": 7550, "target": 0, "func": "static gint prompt_empty_trash ( GtkWindow * parent_window ) {\n gint result ;\n GtkWidget * dialog ;\n GdkScreen * screen ;\n screen = NULL ;\n if ( parent_window != NULL ) {\n screen = gtk_widget_get_screen ( GTK_WIDGET ( parent_window ) ) ;\n }\n dialog = gtk_message_dialog_new ( NULL , GTK_DIALOG_MODAL , GTK_MESSAGE_QUESTION , GTK_BUTTONS_NONE , _ ( \"Do you want to empty the trash before you unmount?\" ) ) ;\n gtk_message_dialog_format_secondary_text ( GTK_MESSAGE_DIALOG ( dialog ) , _ ( \"In order to regain the \" \"free space on this volume \" \"the trash must be emptied. \" \"All trashed items on the volume \" \"will be permanently lost.\" ) ) ;\n gtk_dialog_add_buttons ( GTK_DIALOG ( dialog ) , _ ( \"Do _not Empty Trash\" ) , GTK_RESPONSE_REJECT , CANCEL , GTK_RESPONSE_CANCEL , _ ( \"Empty _Trash\" ) , GTK_RESPONSE_ACCEPT , NULL ) ;\n gtk_dialog_set_default_response ( GTK_DIALOG ( dialog ) , GTK_RESPONSE_ACCEPT ) ;\n gtk_window_set_title ( GTK_WINDOW ( dialog ) , \"\" ) ;\n gtk_window_set_skip_taskbar_hint ( GTK_WINDOW ( dialog ) , TRUE ) ;\n if ( screen ) {\n gtk_window_set_screen ( GTK_WINDOW ( dialog ) , screen ) ;\n }\n atk_object_set_role ( gtk_widget_get_accessible ( dialog ) , ATK_ROLE_ALERT ) ;\n gtk_window_set_wmclass ( GTK_WINDOW ( dialog ) , \"empty_trash\" , \"Nautilus\" ) ;\n gtk_widget_realize ( dialog ) ;\n if ( screen != NULL ) {\n gdk_window_set_transient_for ( gtk_widget_get_window ( GTK_WIDGET ( dialog ) ) , gdk_screen_get_root_window ( screen ) ) ;\n }\n result = gtk_dialog_run ( GTK_DIALOG ( dialog ) ) ;\n gtk_widget_destroy ( dialog ) ;\n return result ;\n }"}
{"idx": 7551, "target": 0, "func": "static int read_access_unit ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n MLPDecodeContext * m = avctx -> priv_data ;\n GetBitContext gb ;\n unsigned int length , substr ;\n unsigned int substream_start ;\n unsigned int header_size = 4 ;\n unsigned int substr_header_size = 0 ;\n uint8_t substream_parity_present [ MAX_SUBSTREAMS ] ;\n uint16_t substream_data_len [ MAX_SUBSTREAMS ] ;\n uint8_t parity_bits ;\n int ret ;\n if ( buf_size < 4 ) return 0 ;\n length = ( AV_RB16 ( buf ) & 0xfff ) * 2 ;\n if ( length < 4 || length > buf_size ) return AVERROR_INVALIDDATA ;\n init_get_bits ( & gb , ( buf + 4 ) , ( length - 4 ) * 8 ) ;\n m -> is_major_sync_unit = 0 ;\n if ( show_bits_long ( & gb , 31 ) == ( 0xf8726fba >> 1 ) ) {\n if ( read_major_sync ( m , & gb ) < 0 ) goto error ;\n m -> is_major_sync_unit = 1 ;\n header_size += 28 ;\n }\n if ( ! m -> params_valid ) {\n av_log ( m -> avctx , AV_LOG_WARNING , \"Stream parameters not seen;\n skipping frame.\\n\" ) ;\n * got_frame_ptr = 0 ;\n return length ;\n }\n substream_start = 0 ;\n for ( substr = 0 ;\n substr < m -> num_substreams ;\n substr ++ ) {\n int extraword_present , checkdata_present , end , nonrestart_substr ;\n extraword_present = get_bits1 ( & gb ) ;\n nonrestart_substr = get_bits1 ( & gb ) ;\n checkdata_present = get_bits1 ( & gb ) ;\n skip_bits1 ( & gb ) ;\n end = get_bits ( & gb , 12 ) * 2 ;\n substr_header_size += 2 ;\n if ( extraword_present ) {\n if ( m -> avctx -> codec_id == AV_CODEC_ID_MLP ) {\n av_log ( m -> avctx , AV_LOG_ERROR , \"There must be no extraword for MLP.\\n\" ) ;\n goto error ;\n }\n skip_bits ( & gb , 16 ) ;\n substr_header_size += 2 ;\n }\n if ( ! ( nonrestart_substr ^ m -> is_major_sync_unit ) ) {\n av_log ( m -> avctx , AV_LOG_ERROR , \"Invalid nonrestart_substr.\\n\" ) ;\n goto error ;\n }\n if ( end + header_size + substr_header_size > length ) {\n av_log ( m -> avctx , AV_LOG_ERROR , \"Indicated length of substream %d data goes off end of \" \"packet.\\n\" , substr ) ;\n end = length - header_size - substr_header_size ;\n }\n if ( end < substream_start ) {\n av_log ( avctx , AV_LOG_ERROR , \"Indicated end offset of substream %d data \" \"is smaller than calculated start offset.\\n\" , substr ) ;\n goto error ;\n }\n if ( substr > m -> max_decoded_substream ) continue ;\n substream_parity_present [ substr ] = checkdata_present ;\n substream_data_len [ substr ] = end - substream_start ;\n substream_start = end ;\n }\n parity_bits = ff_mlp_calculate_parity ( buf , 4 ) ;\n parity_bits ^= ff_mlp_calculate_parity ( buf + header_size , substr_header_size ) ;\n if ( ( ( ( parity_bits >> 4 ) ^ parity_bits ) & 0xF ) != 0xF ) {\n av_log ( avctx , AV_LOG_ERROR , \"Parity check failed.\\n\" ) ;\n goto error ;\n }\n buf += header_size + substr_header_size ;\n for ( substr = 0 ;\n substr <= m -> max_decoded_substream ;\n substr ++ ) {\n SubStream * s = & m -> substream [ substr ] ;\n init_get_bits ( & gb , buf , substream_data_len [ substr ] * 8 ) ;\n m -> matrix_changed = 0 ;\n memset ( m -> filter_changed , 0 , sizeof ( m -> filter_changed ) ) ;\n s -> blockpos = 0 ;\n do {\n if ( get_bits1 ( & gb ) ) {\n if ( get_bits1 ( & gb ) ) {\n if ( read_restart_header ( m , & gb , buf , substr ) < 0 ) goto next_substr ;\n s -> restart_seen = 1 ;\n }\n if ( ! s -> restart_seen ) goto next_substr ;\n if ( read_decoding_params ( m , & gb , substr ) < 0 ) goto next_substr ;\n }\n if ( ! s -> restart_seen ) goto next_substr ;\n if ( ( ret = read_block_data ( m , & gb , substr ) ) < 0 ) return ret ;\n if ( get_bits_count ( & gb ) >= substream_data_len [ substr ] * 8 ) goto substream_length_mismatch ;\n }\n while ( ! get_bits1 ( & gb ) ) ;\n skip_bits ( & gb , ( - get_bits_count ( & gb ) ) & 15 ) ;\n if ( substream_data_len [ substr ] * 8 - get_bits_count ( & gb ) >= 32 ) {\n int shorten_by ;\n if ( get_bits ( & gb , 16 ) != 0xD234 ) return AVERROR_INVALIDDATA ;\n shorten_by = get_bits ( & gb , 16 ) ;\n if ( m -> avctx -> codec_id == AV_CODEC_ID_TRUEHD && shorten_by & 0x2000 ) s -> blockpos -= FFMIN ( shorten_by & 0x1FFF , s -> blockpos ) ;\n else if ( m -> avctx -> codec_id == AV_CODEC_ID_MLP && shorten_by != 0xD234 ) return AVERROR_INVALIDDATA ;\n if ( substr == m -> max_decoded_substream ) av_log ( m -> avctx , AV_LOG_INFO , \"End of stream indicated.\\n\" ) ;\n }\n if ( substream_parity_present [ substr ] ) {\n uint8_t parity , checksum ;\n if ( substream_data_len [ substr ] * 8 - get_bits_count ( & gb ) != 16 ) goto substream_length_mismatch ;\n parity = ff_mlp_calculate_parity ( buf , substream_data_len [ substr ] - 2 ) ;\n checksum = ff_mlp_checksum8 ( buf , substream_data_len [ substr ] - 2 ) ;\n if ( ( get_bits ( & gb , 8 ) ^ parity ) != 0xa9 ) av_log ( m -> avctx , AV_LOG_ERROR , \"Substream %d parity check failed.\\n\" , substr ) ;\n if ( get_bits ( & gb , 8 ) != checksum ) av_log ( m -> avctx , AV_LOG_ERROR , \"Substream %d checksum failed.\\n\" , substr ) ;\n }\n if ( substream_data_len [ substr ] * 8 != get_bits_count ( & gb ) ) goto substream_length_mismatch ;\n next_substr : if ( ! s -> restart_seen ) av_log ( m -> avctx , AV_LOG_ERROR , \"No restart header present in substream %d.\\n\" , substr ) ;\n buf += substream_data_len [ substr ] ;\n }\n rematrix_channels ( m , m -> max_decoded_substream ) ;\n if ( ( ret = output_data ( m , m -> max_decoded_substream , data , got_frame_ptr ) ) < 0 ) return ret ;\n return length ;\n substream_length_mismatch : av_log ( m -> avctx , AV_LOG_ERROR , \"substream %d length mismatch\\n\" , substr ) ;\n return AVERROR_INVALIDDATA ;\n error : m -> params_valid = 0 ;\n return AVERROR_INVALIDDATA ;\n }"}
{"idx": 7552, "target": 0, "func": "void pdf_process_glyph ( fz_context * ctx , pdf_processor * proc , pdf_document * doc , pdf_obj * rdb , fz_buffer * contents ) {\n pdf_csi csi ;\n pdf_lexbuf buf ;\n fz_stream * stm = NULL ;\n fz_var ( stm ) ;\n if ( ! contents ) return ;\n pdf_lexbuf_init ( ctx , & buf , PDF_LEXBUF_SMALL ) ;\n pdf_init_csi ( ctx , & csi , doc , rdb , & buf , NULL ) ;\n fz_try ( ctx ) {\n stm = fz_open_buffer ( ctx , contents ) ;\n pdf_process_stream ( ctx , proc , & csi , stm ) ;\n pdf_process_end ( ctx , proc , & csi ) ;\n }\n fz_always ( ctx ) {\n fz_drop_stream ( ctx , stm ) ;\n pdf_clear_stack ( ctx , & csi ) ;\n pdf_lexbuf_fin ( ctx , & buf ) ;\n }\n fz_catch ( ctx ) {\n fz_rethrow ( ctx ) ;\n }\n }"}
{"idx": 7553, "target": 0, "func": "static inline void key_alloc_serial ( struct key * key ) {\n struct rb_node * parent , * * p ;\n struct key * xkey ;\n do {\n get_random_bytes ( & key -> serial , sizeof ( key -> serial ) ) ;\n key -> serial >>= 1 ;\n }\n while ( key -> serial < 3 ) ;\n spin_lock ( & key_serial_lock ) ;\n attempt_insertion : parent = NULL ;\n p = & key_serial_tree . rb_node ;\n while ( * p ) {\n parent = * p ;\n xkey = rb_entry ( parent , struct key , serial_node ) ;\n if ( key -> serial < xkey -> serial ) p = & ( * p ) -> rb_left ;\n else if ( key -> serial > xkey -> serial ) p = & ( * p ) -> rb_right ;\n else goto serial_exists ;\n }\n rb_link_node ( & key -> serial_node , parent , p ) ;\n rb_insert_color ( & key -> serial_node , & key_serial_tree ) ;\n spin_unlock ( & key_serial_lock ) ;\n return ;\n serial_exists : for ( ;\n ;\n ) {\n key -> serial ++ ;\n if ( key -> serial < 3 ) {\n key -> serial = 3 ;\n goto attempt_insertion ;\n }\n parent = rb_next ( parent ) ;\n if ( ! parent ) goto attempt_insertion ;\n xkey = rb_entry ( parent , struct key , serial_node ) ;\n if ( key -> serial < xkey -> serial ) goto attempt_insertion ;\n }\n }"}
{"idx": 7554, "target": 0, "func": "GList * nautilus_mime_types_group_get_mimetypes ( gint group_index ) {\n GList * mimetypes ;\n gint i ;\n g_return_val_if_fail ( group_index < G_N_ELEMENTS ( mimetype_groups ) , NULL ) ;\n mimetypes = NULL ;\n for ( i = 0 ;\n mimetype_groups [ group_index ] . mimetypes [ i ] ;\n i ++ ) {\n mimetypes = g_list_append ( mimetypes , mimetype_groups [ group_index ] . mimetypes [ i ] ) ;\n }\n return mimetypes ;\n }"}
{"idx": 7555, "target": 0, "func": "void hashcostestimate ( PlannerInfo * root , IndexPath * path , double loop_count , Cost * indexStartupCost , Cost * indexTotalCost , Selectivity * indexSelectivity , double * indexCorrelation ) {\n List * qinfos ;\n GenericCosts costs ;\n qinfos = deconstruct_indexquals ( path ) ;\n MemSet ( & costs , 0 , sizeof ( costs ) ) ;\n genericcostestimate ( root , path , loop_count , qinfos , & costs ) ;\n * indexStartupCost = costs . indexStartupCost ;\n * indexTotalCost = costs . indexTotalCost ;\n * indexSelectivity = costs . indexSelectivity ;\n * indexCorrelation = costs . indexCorrelation ;\n }"}
{"idx": 7556, "target": 0, "func": "static inline bool is_halant_or_coeng ( const hb_glyph_info_t & info ) {\n return is_one_of ( info , HALANT_OR_COENG_FLAGS ) ;\n }"}
{"idx": 7557, "target": 0, "func": "static inline int encode_bgra_bitstream ( HYuvContext * s , int count , int planes ) {\n int i ;\n if ( s -> pb . buf_end - s -> pb . buf - ( put_bits_count ( & s -> pb ) >> 3 ) < 4 * planes * count ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"encoded frame too large\\n\" ) ;\n return - 1 ;\n }\n # define LOAD3 \\ int g = s -> temp [ 0 ] [ planes == 3 ? 3 * i + 1 : 4 * i + G ] ;\n \\ int b = ( s -> temp [ 0 ] [ planes == 3 ? 3 * i + 2 : 4 * i + B ] - g ) & 0xff ;\n \\ int r = ( s -> temp [ 0 ] [ planes == 3 ? 3 * i + 0 : 4 * i + R ] - g ) & 0xff ;\n \\ int a = s -> temp [ 0 ] [ planes * i + A ] ;\n # define STAT3 \\ s -> stats [ 0 ] [ b ] ++ ;\n \\ s -> stats [ 1 ] [ g ] ++ ;\n \\ s -> stats [ 2 ] [ r ] ++ ;\n \\ if ( planes == 4 ) s -> stats [ 2 ] [ a ] ++ ;\n # define WRITE3 \\ put_bits ( & s -> pb , s -> len [ 1 ] [ g ] , s -> bits [ 1 ] [ g ] ) ;\n \\ put_bits ( & s -> pb , s -> len [ 0 ] [ b ] , s -> bits [ 0 ] [ b ] ) ;\n \\ put_bits ( & s -> pb , s -> len [ 2 ] [ r ] , s -> bits [ 2 ] [ r ] ) ;\n \\ if ( planes == 4 ) put_bits ( & s -> pb , s -> len [ 2 ] [ a ] , s -> bits [ 2 ] [ a ] ) ;\n if ( ( s -> flags & CODEC_FLAG_PASS1 ) && ( s -> avctx -> flags2 & CODEC_FLAG2_NO_OUTPUT ) ) {\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n LOAD3 ;\n STAT3 ;\n }\n }\n else if ( s -> context || ( s -> flags & CODEC_FLAG_PASS1 ) ) {\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n LOAD3 ;\n STAT3 ;\n WRITE3 ;\n }\n }\n else {\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n LOAD3 ;\n WRITE3 ;\n }\n }\n return 0 ;\n }"}
{"idx": 7558, "target": 0, "func": "static int pxa2xx_i2c_tx ( I2CSlave * i2c , uint8_t data ) {\n PXA2xxI2CSlaveState * slave = FROM_I2C_SLAVE ( PXA2xxI2CSlaveState , i2c ) ;\n PXA2xxI2CState * s = slave -> host ;\n if ( ( s -> control & ( 1 << 14 ) ) || ! ( s -> control & ( 1 << 6 ) ) ) return 1 ;\n if ( ! ( s -> status & ( 1 << 0 ) ) ) {\n s -> status |= 1 << 7 ;\n s -> data = data ;\n }\n pxa2xx_i2c_update ( s ) ;\n return 1 ;\n }"}
{"idx": 7559, "target": 0, "func": "static proto_item * ber_proto_tree_add_item ( packet_info * pinfo , proto_tree * tree , const int hfindex , tvbuff_t * tvb , const gint start , gint length , const guint encoding ) {\n header_field_info * hfinfo ;\n hfinfo = proto_registrar_get_nth ( ( guint ) hfindex ) ;\n if ( hfinfo != NULL ) {\n switch ( hfinfo -> type ) {\n case FT_BOOLEAN : case FT_UINT8 : case FT_UINT16 : case FT_UINT24 : case FT_UINT32 : case FT_INT8 : case FT_INT16 : case FT_INT24 : case FT_INT32 : if ( ( length != 1 ) && ( length != 2 ) && ( length != 3 ) && ( length != 4 ) ) return ber_add_bad_length_error ( pinfo , tree , hfinfo -> name , tvb , start , length ) ;\n break ;\n case FT_IPv4 : if ( length != FT_IPv4_LEN ) return ber_add_bad_length_error ( pinfo , tree , hfinfo -> name , tvb , start , length ) ;\n break ;\n case FT_IPXNET : if ( length != FT_IPXNET_LEN ) return ber_add_bad_length_error ( pinfo , tree , hfinfo -> name , tvb , start , length ) ;\n break ;\n case FT_IPv6 : if ( ( length < 0 ) || ( length > FT_IPv6_LEN ) ) return ber_add_bad_length_error ( pinfo , tree , hfinfo -> name , tvb , start , length ) ;\n break ;\n case FT_ETHER : if ( length != FT_ETHER_LEN ) return ber_add_bad_length_error ( pinfo , tree , hfinfo -> name , tvb , start , length ) ;\n break ;\n case FT_GUID : if ( length != FT_GUID_LEN ) return ber_add_bad_length_error ( pinfo , tree , hfinfo -> name , tvb , start , length ) ;\n break ;\n case FT_FLOAT : if ( length != 4 ) return ber_add_bad_length_error ( pinfo , tree , hfinfo -> name , tvb , start , length ) ;\n break ;\n case FT_DOUBLE : if ( length != 8 ) return ber_add_bad_length_error ( pinfo , tree , hfinfo -> name , tvb , start , length ) ;\n break ;\n case FT_ABSOLUTE_TIME : case FT_RELATIVE_TIME : if ( ( length != 4 ) && ( length != 8 ) ) return ber_add_bad_length_error ( pinfo , tree , hfinfo -> name , tvb , start , length ) ;\n break ;\n default : break ;\n }\n }\n return proto_tree_add_item ( tree , hfindex , tvb , start , length , encoding ) ;\n }"}
{"idx": 7560, "target": 0, "func": "void xsltFreeLocales ( void ) {\n # ifdef XSLT_LOCALE_WINAPI xmlRMutexLock ( xsltLocaleMutex ) ;\n xmlFree ( xsltLocaleList ) ;\n xsltLocaleList = NULL ;\n xmlRMutexUnlock ( xsltLocaleMutex ) ;\n # endif }"}
{"idx": 7561, "target": 1, "func": "static void vga_draw_line16_le ( VGACommonState * s1 , uint8_t * d , const uint8_t * s , int width ) {\n int w ;\n uint32_t v , r , g , b ;\n w = width ;\n do {\n v = lduw_le_p ( ( void * ) s ) ;\n r = ( v >> 8 ) & 0xf8 ;\n g = ( v >> 3 ) & 0xfc ;\n b = ( v << 3 ) & 0xf8 ;\n ( ( uint32_t * ) d ) [ 0 ] = rgb_to_pixel32 ( r , g , b ) ;\n s += 2 ;\n d += 4 ;\n }\n while ( -- w != 0 ) ;\n }"}
{"idx": 7562, "target": 0, "func": "static int auth_server_connection_input_line ( struct auth_server_connection * conn , const char * line ) {\n const char * const * args ;\n if ( conn -> client -> debug ) i_debug ( \"auth input: %s\" , line ) ;\n args = t_strsplit_tabescaped ( line ) ;\n if ( args [ 0 ] == NULL ) {\n i_error ( \"Auth server sent empty line\" ) ;\n return - 1 ;\n }\n if ( strcmp ( args [ 0 ] , \"OK\" ) == 0 ) return auth_server_input_ok ( conn , args + 1 ) ;\n else if ( strcmp ( args [ 0 ] , \"CONT\" ) == 0 ) return auth_server_input_cont ( conn , args + 1 ) ;\n else if ( strcmp ( args [ 0 ] , \"FAIL\" ) == 0 ) return auth_server_input_fail ( conn , args + 1 ) ;\n else if ( strcmp ( args [ 0 ] , \"MECH\" ) == 0 ) return auth_server_input_mech ( conn , args + 1 ) ;\n else if ( strcmp ( args [ 0 ] , \"SPID\" ) == 0 ) return auth_server_input_spid ( conn , args + 1 ) ;\n else if ( strcmp ( args [ 0 ] , \"CUID\" ) == 0 ) return auth_server_input_cuid ( conn , args + 1 ) ;\n else if ( strcmp ( args [ 0 ] , \"COOKIE\" ) == 0 ) return auth_server_input_cookie ( conn , args + 1 ) ;\n else if ( strcmp ( args [ 0 ] , \"DONE\" ) == 0 ) return auth_server_input_done ( conn ) ;\n else {\n i_error ( \"Auth server sent unknown command: %s\" , args [ 0 ] ) ;\n return - 1 ;\n }\n }"}
{"idx": 7563, "target": 1, "func": "static inline void rv34_mc ( RV34DecContext * r , const int block_type , const int xoff , const int yoff , int mv_off , const int width , const int height , int dir , const int thirdpel , int weighted , qpel_mc_func ( * qpel_mc ) [ 16 ] , h264_chroma_mc_func ( * chroma_mc ) ) {\n MpegEncContext * s = & r -> s ;\n uint8_t * Y , * U , * V , * srcY , * srcU , * srcV ;\n int dxy , mx , my , umx , umy , lx , ly , uvmx , uvmy , src_x , src_y , uvsrc_x , uvsrc_y ;\n int mv_pos = s -> mb_x * 2 + s -> mb_y * 2 * s -> b8_stride + mv_off ;\n int is16x16 = 1 ;\n if ( thirdpel ) {\n int chroma_mx , chroma_my ;\n mx = ( s -> current_picture_ptr -> f . motion_val [ dir ] [ mv_pos ] [ 0 ] + ( 3 << 24 ) ) / 3 - ( 1 << 24 ) ;\n my = ( s -> current_picture_ptr -> f . motion_val [ dir ] [ mv_pos ] [ 1 ] + ( 3 << 24 ) ) / 3 - ( 1 << 24 ) ;\n lx = ( s -> current_picture_ptr -> f . motion_val [ dir ] [ mv_pos ] [ 0 ] + ( 3 << 24 ) ) % 3 ;\n ly = ( s -> current_picture_ptr -> f . motion_val [ dir ] [ mv_pos ] [ 1 ] + ( 3 << 24 ) ) % 3 ;\n chroma_mx = s -> current_picture_ptr -> f . motion_val [ dir ] [ mv_pos ] [ 0 ] / 2 ;\n chroma_my = s -> current_picture_ptr -> f . motion_val [ dir ] [ mv_pos ] [ 1 ] / 2 ;\n umx = ( chroma_mx + ( 3 << 24 ) ) / 3 - ( 1 << 24 ) ;\n umy = ( chroma_my + ( 3 << 24 ) ) / 3 - ( 1 << 24 ) ;\n uvmx = chroma_coeffs [ ( chroma_mx + ( 3 << 24 ) ) % 3 ] ;\n uvmy = chroma_coeffs [ ( chroma_my + ( 3 << 24 ) ) % 3 ] ;\n }\n else {\n int cx , cy ;\n mx = s -> current_picture_ptr -> f . motion_val [ dir ] [ mv_pos ] [ 0 ] >> 2 ;\n my = s -> current_picture_ptr -> f . motion_val [ dir ] [ mv_pos ] [ 1 ] >> 2 ;\n lx = s -> current_picture_ptr -> f . motion_val [ dir ] [ mv_pos ] [ 0 ] & 3 ;\n ly = s -> current_picture_ptr -> f . motion_val [ dir ] [ mv_pos ] [ 1 ] & 3 ;\n cx = s -> current_picture_ptr -> f . motion_val [ dir ] [ mv_pos ] [ 0 ] / 2 ;\n cy = s -> current_picture_ptr -> f . motion_val [ dir ] [ mv_pos ] [ 1 ] / 2 ;\n umx = cx >> 2 ;\n umy = cy >> 2 ;\n uvmx = ( cx & 3 ) << 1 ;\n uvmy = ( cy & 3 ) << 1 ;\n if ( uvmx == 6 && uvmy == 6 ) uvmx = uvmy = 4 ;\n }\n if ( HAVE_THREADS && ( s -> avctx -> active_thread_type & FF_THREAD_FRAME ) ) {\n int mb_row = s -> mb_y + ( ( yoff + my + 5 + 8 * height ) >> 4 ) ;\n AVFrame * f = dir ? & s -> next_picture_ptr -> f : & s -> last_picture_ptr -> f ;\n ff_thread_await_progress ( f , mb_row , 0 ) ;\n }\n dxy = ly * 4 + lx ;\n srcY = dir ? s -> next_picture_ptr -> f . data [ 0 ] : s -> last_picture_ptr -> f . data [ 0 ] ;\n srcU = dir ? s -> next_picture_ptr -> f . data [ 1 ] : s -> last_picture_ptr -> f . data [ 1 ] ;\n srcV = dir ? s -> next_picture_ptr -> f . data [ 2 ] : s -> last_picture_ptr -> f . data [ 2 ] ;\n src_x = s -> mb_x * 16 + xoff + mx ;\n src_y = s -> mb_y * 16 + yoff + my ;\n uvsrc_x = s -> mb_x * 8 + ( xoff >> 1 ) + umx ;\n uvsrc_y = s -> mb_y * 8 + ( yoff >> 1 ) + umy ;\n srcY += src_y * s -> linesize + src_x ;\n srcU += uvsrc_y * s -> uvlinesize + uvsrc_x ;\n srcV += uvsrc_y * s -> uvlinesize + uvsrc_x ;\n if ( s -> h_edge_pos - ( width << 3 ) < 6 || s -> v_edge_pos - ( height << 3 ) < 6 || ( unsigned ) ( src_x - ! ! lx * 2 ) > s -> h_edge_pos - ! ! lx * 2 - ( width << 3 ) - 4 || ( unsigned ) ( src_y - ! ! ly * 2 ) > s -> v_edge_pos - ! ! ly * 2 - ( height << 3 ) - 4 ) {\n uint8_t * uvbuf = s -> edge_emu_buffer + 22 * s -> linesize ;\n srcY -= 2 + 2 * s -> linesize ;\n s -> vdsp . emulated_edge_mc ( s -> edge_emu_buffer , srcY , s -> linesize , ( width << 3 ) + 6 , ( height << 3 ) + 6 , src_x - 2 , src_y - 2 , s -> h_edge_pos , s -> v_edge_pos ) ;\n srcY = s -> edge_emu_buffer + 2 + 2 * s -> linesize ;\n s -> vdsp . emulated_edge_mc ( uvbuf , srcU , s -> uvlinesize , ( width << 2 ) + 1 , ( height << 2 ) + 1 , uvsrc_x , uvsrc_y , s -> h_edge_pos >> 1 , s -> v_edge_pos >> 1 ) ;\n s -> vdsp . emulated_edge_mc ( uvbuf + 16 , srcV , s -> uvlinesize , ( width << 2 ) + 1 , ( height << 2 ) + 1 , uvsrc_x , uvsrc_y , s -> h_edge_pos >> 1 , s -> v_edge_pos >> 1 ) ;\n srcU = uvbuf ;\n srcV = uvbuf + 16 ;\n }\n if ( ! weighted ) {\n Y = s -> dest [ 0 ] + xoff + yoff * s -> linesize ;\n U = s -> dest [ 1 ] + ( xoff >> 1 ) + ( yoff >> 1 ) * s -> uvlinesize ;\n V = s -> dest [ 2 ] + ( xoff >> 1 ) + ( yoff >> 1 ) * s -> uvlinesize ;\n }\n else {\n Y = r -> tmp_b_block_y [ dir ] + xoff + yoff * s -> linesize ;\n U = r -> tmp_b_block_uv [ dir * 2 ] + ( xoff >> 1 ) + ( yoff >> 1 ) * s -> uvlinesize ;\n V = r -> tmp_b_block_uv [ dir * 2 + 1 ] + ( xoff >> 1 ) + ( yoff >> 1 ) * s -> uvlinesize ;\n }\n if ( block_type == RV34_MB_P_16x8 ) {\n qpel_mc [ 1 ] [ dxy ] ( Y , srcY , s -> linesize ) ;\n Y += 8 ;\n srcY += 8 ;\n }\n else if ( block_type == RV34_MB_P_8x16 ) {\n qpel_mc [ 1 ] [ dxy ] ( Y , srcY , s -> linesize ) ;\n Y += 8 * s -> linesize ;\n srcY += 8 * s -> linesize ;\n }\n is16x16 = ( block_type != RV34_MB_P_8x8 ) && ( block_type != RV34_MB_P_16x8 ) && ( block_type != RV34_MB_P_8x16 ) ;\n qpel_mc [ ! is16x16 ] [ dxy ] ( Y , srcY , s -> linesize ) ;\n chroma_mc [ 2 - width ] ( U , srcU , s -> uvlinesize , height * 4 , uvmx , uvmy ) ;\n chroma_mc [ 2 - width ] ( V , srcV , s -> uvlinesize , height * 4 , uvmx , uvmy ) ;\n }"}
{"idx": 7564, "target": 0, "func": "static void dissect_cip_s_supervisor_data ( proto_tree * item_tree , tvbuff_t * tvb , int offset , int item_length , packet_info * pinfo ) {\n proto_item * pi , * rrsc_item ;\n proto_tree * rrsc_tree , * cmd_data_tree , * bitmap_tree ;\n int req_path_size ;\n int temp_data ;\n guint8 service , gen_status , add_stat_size ;\n cip_req_info_t * preq_info ;\n cip_simple_request_info_t req_data ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"CIPS Supervisor\" ) ;\n service = tvb_get_guint8 ( tvb , offset ) ;\n rrsc_tree = proto_tree_add_subtree ( item_tree , tvb , offset , 1 , ett_ssupervisor_rrsc , & rrsc_item , \"Service: \" ) ;\n proto_tree_add_item ( rrsc_tree , hf_cip_reqrsp , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_item_append_text ( rrsc_item , \"%s (%s)\" , val_to_str ( ( service & 0x7F ) , cip_sc_vals_ssupervisor , \"Unknown Service (0x%02x)\" ) , val_to_str_const ( ( service & 0x80 ) >> 7 , cip_sc_rr , \"\" ) ) ;\n proto_tree_add_item ( rrsc_tree , hf_cip_ssupervisor_sc , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n preq_info = ( cip_req_info_t * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_cip , 0 ) ;\n if ( ( preq_info != NULL ) && ( preq_info -> ciaData != NULL ) ) {\n memcpy ( & req_data , preq_info -> ciaData , sizeof ( cip_simple_request_info_t ) ) ;\n }\n else {\n req_data . iClass = ( guint32 ) - 1 ;\n req_data . iInstance = ( guint32 ) - 1 ;\n req_data . iAttribute = ( guint32 ) - 1 ;\n req_data . iMember = ( guint32 ) - 1 ;\n }\n if ( service & 0x80 ) {\n gen_status = tvb_get_guint8 ( tvb , offset + 2 ) ;\n add_stat_size = tvb_get_guint8 ( tvb , offset + 3 ) * 2 ;\n if ( ( item_length - 4 - add_stat_size ) != 0 ) {\n cmd_data_tree = proto_tree_add_subtree ( item_tree , tvb , offset + 4 + add_stat_size , item_length - 4 - add_stat_size , ett_ssupervisor_cmd_data , NULL , \"Command Specific Data\" ) ;\n if ( gen_status == CI_GRC_SUCCESS || gen_status == CI_GRC_SERVICE_ERROR ) {\n switch ( service & 0x7F ) {\n case SC_SSUPER_VALIDATE_CONFIGURATION : proto_tree_add_item ( cmd_data_tree , hf_cip_ssupervisor_validate_configuration_sccrc , tvb , offset + 4 + add_stat_size , 4 , ENC_LITTLE_ENDIAN ) ;\n dissect_cipsafety_ssn ( cmd_data_tree , tvb , pinfo , offset + 4 + add_stat_size + 4 , hf_cip_ssupervisor_validate_configuration_scts_timestamp , hf_cip_ssupervisor_validate_configuration_scts_date , hf_cip_ssupervisor_validate_configuration_scts_time ) ;\n break ;\n }\n }\n else if ( ( gen_status == 0xD0 ) && ( ( service & 0x7F ) == SC_SSUPER_VALIDATE_CONFIGURATION ) ) {\n if ( add_stat_size > 0 ) {\n proto_tree_add_item ( cmd_data_tree , hf_cip_ssupervisor_validate_configuration_ext_error , tvb , offset + 4 , 2 , ENC_LITTLE_ENDIAN ) ;\n }\n }\n else {\n proto_tree_add_item ( cmd_data_tree , hf_cip_data , tvb , offset + 4 + add_stat_size , item_length - 4 - add_stat_size , ENC_NA ) ;\n }\n }\n }\n else {\n req_path_size = tvb_get_guint8 ( tvb , offset + 1 ) * 2 ;\n if ( ( item_length - req_path_size - 2 ) != 0 ) {\n cmd_data_tree = proto_tree_add_subtree ( item_tree , tvb , offset + 2 + req_path_size , item_length - req_path_size - 2 , ett_ssupervisor_cmd_data , NULL , \"Command Specific Data\" ) ;\n switch ( service ) {\n case SC_SSUPER_RECOVER : proto_tree_add_item ( cmd_data_tree , hf_cip_ssupervisor_recover_data , tvb , offset + 2 + req_path_size , item_length - req_path_size - 2 , ENC_NA ) ;\n break ;\n case SC_SSUPER_PERFORM_DIAGNOSTICS : proto_tree_add_item ( cmd_data_tree , hf_cip_ssupervisor_perform_diag_data , tvb , offset + 2 + req_path_size , item_length - req_path_size - 2 , ENC_NA ) ;\n break ;\n case SC_SSUPER_CONFIGURE_REQUEST : proto_tree_add_item ( cmd_data_tree , hf_cip_ssupervisor_configure_request_password , tvb , offset + 2 + req_path_size , 16 , ENC_NA ) ;\n pi = proto_tree_add_item ( cmd_data_tree , hf_cip_ssupervisor_configure_request_tunid , tvb , offset + 2 + req_path_size + 16 , 10 , ENC_NA ) ;\n dissect_unid ( tvb , pinfo , offset + 2 + req_path_size + 16 , pi , \"TUNID SSN\" , hf_cip_ssupervisor_configure_request_tunid_ssn_timestamp , hf_cip_ssupervisor_configure_request_tunid_ssn_date , hf_cip_ssupervisor_configure_request_tunid_ssn_time , hf_cip_ssupervisor_configure_request_tunid_macid , ett_ssupervisor_configure_request_tunid , ett_ssupervisor_configure_request_tunid_ssn ) ;\n pi = proto_tree_add_item ( cmd_data_tree , hf_cip_ssupervisor_configure_request_ounid , tvb , offset + 2 + req_path_size + 26 , 10 , ENC_NA ) ;\n dissect_unid ( tvb , pinfo , offset + 2 + req_path_size + 16 , pi , \"OUNID SSN\" , hf_cip_ssupervisor_configure_request_ounid_ssn_timestamp , hf_cip_ssupervisor_configure_request_ounid_ssn_date , hf_cip_ssupervisor_configure_request_ounid_ssn_time , hf_cip_ssupervisor_configure_request_ounid_macid , ett_ssupervisor_configure_request_ounid , ett_ssupervisor_configure_request_ounid_ssn ) ;\n break ;\n case SC_SSUPER_VALIDATE_CONFIGURATION : proto_tree_add_item ( cmd_data_tree , hf_cip_ssupervisor_validate_configuration_sccrc , tvb , offset + 2 + req_path_size , 4 , ENC_LITTLE_ENDIAN ) ;\n dissect_cipsafety_ssn ( cmd_data_tree , tvb , pinfo , offset + 2 + req_path_size + 4 , hf_cip_ssupervisor_validate_configuration_scts_timestamp , hf_cip_ssupervisor_validate_configuration_scts_date , hf_cip_ssupervisor_validate_configuration_scts_time ) ;\n break ;\n case SC_SSUPER_SET_PASSWORD : proto_tree_add_item ( cmd_data_tree , hf_cip_ssupervisor_set_password_current_password , tvb , offset + 2 + req_path_size , 16 , ENC_NA ) ;\n proto_tree_add_item ( cmd_data_tree , hf_cip_ssupervisor_set_password_new_password , tvb , offset + 2 + req_path_size + 16 , 16 , ENC_NA ) ;\n break ;\n case SC_SSUPER_CONFIGURATION_LOCK : proto_tree_add_item ( cmd_data_tree , hf_cip_ssupervisor_configure_lock_value , tvb , offset + 2 + req_path_size + 1 , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( cmd_data_tree , hf_cip_ssupervisor_configure_lock_password , tvb , offset + 2 + req_path_size + 1 , 16 , ENC_NA ) ;\n pi = proto_tree_add_item ( cmd_data_tree , hf_cip_ssupervisor_configure_lock_tunid , tvb , offset + 2 + req_path_size + 17 , 10 , ENC_NA ) ;\n dissect_unid ( tvb , pinfo , offset + 2 + req_path_size + 17 , pi , \"TUNID SSN\" , hf_cip_ssupervisor_configure_lock_tunid_ssn_timestamp , hf_cip_ssupervisor_configure_lock_tunid_ssn_date , hf_cip_ssupervisor_configure_lock_tunid_ssn_time , hf_cip_ssupervisor_configure_lock_tunid_macid , ett_ssupervisor_configure_lock_tunid , ett_ssupervisor_configure_lock_tunid_ssn ) ;\n break ;\n case SC_SSUPER_MODE_CHANGE : proto_tree_add_item ( cmd_data_tree , hf_cip_ssupervisor_mode_change_value , tvb , offset + 2 + req_path_size + 1 , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( cmd_data_tree , hf_cip_ssupervisor_mode_change_password , tvb , offset + 2 + req_path_size + 1 , 16 , ENC_NA ) ;\n break ;\n case SC_SSUPER_SAFETY_RESET : proto_tree_add_item ( cmd_data_tree , hf_cip_ssupervisor_reset_type , tvb , offset + 2 + req_path_size + 1 , 1 , ENC_LITTLE_ENDIAN ) ;\n temp_data = tvb_get_guint8 ( tvb , offset + 2 + req_path_size + 1 ) ;\n proto_tree_add_item ( cmd_data_tree , hf_cip_ssupervisor_reset_password , tvb , offset + 2 + req_path_size + 1 , 16 , ENC_NA ) ;\n pi = proto_tree_add_item ( cmd_data_tree , hf_cip_ssupervisor_reset_tunid , tvb , offset + 2 + req_path_size + 17 , 10 , ENC_NA ) ;\n dissect_unid ( tvb , pinfo , offset + 2 + req_path_size + 17 , pi , \"TUNID SSN\" , hf_cip_ssupervisor_reset_tunid_tunid_ssn_timestamp , hf_cip_ssupervisor_reset_tunid_tunid_ssn_date , hf_cip_ssupervisor_reset_tunid_tunid_ssn_time , hf_cip_ssupervisor_reset_tunid_macid , ett_ssupervisor_reset_tunid , ett_ssupervisor_reset_tunid_ssn ) ;\n if ( temp_data == 2 ) {\n pi = proto_tree_add_item ( cmd_data_tree , hf_cip_ssupervisor_reset_attr_bitmap , tvb , offset + 2 + req_path_size + 27 , 1 , ENC_LITTLE_ENDIAN ) ;\n bitmap_tree = proto_item_add_subtree ( pi , ett_cip_ssupervisor_reset_attr_bitmap ) ;\n proto_tree_add_item ( bitmap_tree , hf_cip_ssupervisor_reset_attr_bitmap_macid , tvb , offset + 2 + req_path_size + 27 , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( bitmap_tree , hf_cip_ssupervisor_reset_attr_bitmap_baudrate , tvb , offset + 2 + req_path_size + 27 , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( bitmap_tree , hf_cip_ssupervisor_reset_attr_bitmap_tunid , tvb , offset + 2 + req_path_size + 27 , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( bitmap_tree , hf_cip_ssupervisor_reset_attr_bitmap_password , tvb , offset + 2 + req_path_size + 27 , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( bitmap_tree , hf_cip_ssupervisor_reset_attr_bitmap_cfunid , tvb , offset + 2 + req_path_size + 27 , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( bitmap_tree , hf_cip_ssupervisor_reset_attr_bitmap_ocpunid , tvb , offset + 2 + req_path_size + 27 , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( bitmap_tree , hf_cip_ssupervisor_reset_attr_bitmap_reserved , tvb , offset + 2 + req_path_size + 27 , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( bitmap_tree , hf_cip_ssupervisor_reset_attr_bitmap_extended , tvb , offset + 2 + req_path_size + 27 , 1 , ENC_LITTLE_ENDIAN ) ;\n }\n break ;\n case SC_SSUPER_RESET_PASSWORD : proto_tree_add_item ( cmd_data_tree , hf_cip_ssupervisor_reset_password_data_size , tvb , offset + 2 + req_path_size , 1 , ENC_LITTLE_ENDIAN ) ;\n temp_data = tvb_get_guint8 ( tvb , offset + 2 + req_path_size ) ;\n proto_tree_add_item ( cmd_data_tree , hf_cip_ssupervisor_reset_password_data , tvb , offset + 2 + req_path_size + 1 , temp_data , ENC_NA ) ;\n break ;\n case SC_SSUPER_PROPOSE_TUNID : pi = proto_tree_add_item ( cmd_data_tree , hf_cip_ssupervisor_propose_tunid_tunid , tvb , offset + 2 + req_path_size , 10 , ENC_NA ) ;\n dissect_unid ( tvb , pinfo , offset + 2 + req_path_size , pi , \"TUNID SSN\" , hf_cip_ssupervisor_propose_tunid_tunid_ssn_timestamp , hf_cip_ssupervisor_propose_tunid_tunid_ssn_date , hf_cip_ssupervisor_propose_tunid_tunid_ssn_time , hf_cip_ssupervisor_propose_tunid_tunid_macid , ett_ssupervisor_propose_tunid , ett_ssupervisor_propose_tunid_ssn ) ;\n break ;\n case SC_SSUPER_APPLY_TUNID : pi = proto_tree_add_item ( cmd_data_tree , hf_cip_ssupervisor_apply_tunid_tunid , tvb , offset + 2 + req_path_size , 10 , ENC_NA ) ;\n dissect_unid ( tvb , pinfo , offset + 2 + req_path_size , pi , \"TUNID SSN\" , hf_cip_ssupervisor_apply_tunid_tunid_ssn_timestamp , hf_cip_ssupervisor_apply_tunid_tunid_ssn_date , hf_cip_ssupervisor_apply_tunid_tunid_ssn_time , hf_cip_ssupervisor_apply_tunid_tunid_macid , ett_ssupervisor_apply_tunid , ett_ssupervisor_apply_tunid_ssn ) ;\n break ;\n default : proto_tree_add_item ( cmd_data_tree , hf_cip_data , tvb , offset + 2 + req_path_size , item_length - req_path_size - 2 , ENC_NA ) ;\n }\n }\n }\n add_cip_service_to_info_column ( pinfo , service , cip_sc_vals_ssupervisor ) ;\n }"}
{"idx": 7565, "target": 0, "func": "void putshort ( FILE * file , int sval ) {\n if ( sval < - 32768 || sval > 65535 ) if ( ! short_too_long_warned ) {\n IError ( _ ( \"Attempt to output %d into a 16-bit field. It will be truncated and the file may not be useful.\" ) , sval ) ;\n short_too_long_warned = 1 ;\n }\n putc ( ( sval >> 8 ) & 0xff , file ) ;\n putc ( sval & 0xff , file ) ;\n }"}
{"idx": 7566, "target": 0, "func": "static int dissect_h245_RemoveConnectionReq ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_RemoveConnectionReq , RemoveConnectionReq_sequence ) ;\n return offset ;\n }"}
{"idx": 7567, "target": 0, "func": "TEST_F ( TemplateURLParserTest , NoCrashOnEmptyAttributes ) {\n ASSERT_NO_FATAL_FAILURE ( ParseFile ( \"url_with_no_attributes.xml\" , nullptr ) ) ;\n }"}
{"idx": 7568, "target": 0, "func": "static PyObject * authGSSClientResponse ( PyObject * self , PyObject * args ) {\n gss_client_state * state ;\n PyObject * pystate ;\n if ( ! PyArg_ParseTuple ( args , \"O\" , & pystate ) ) return NULL ;\n # if PY_MAJOR_VERSION >= 3 if ( ! PyCapsule_CheckExact ( pystate ) ) {\n # else if ( ! PyCObject_Check ( pystate ) ) {\n # endif PyErr_SetString ( PyExc_TypeError , \"Expected a context object\" ) ;\n return NULL ;\n }\n # if PY_MAJOR_VERSION >= 3 state = PyCapsule_GetPointer ( pystate , NULL ) ;\n # else state = ( gss_client_state * ) PyCObject_AsVoidPtr ( pystate ) ;\n # endif if ( state == NULL ) return NULL ;\n return Py_BuildValue ( \"s\" , state -> response ) ;\n }"}
{"idx": 7569, "target": 0, "func": "static floatx80 cpu_set_fp80 ( uint64_t mant , uint16_t upper ) {\n CPU_LDoubleU temp ;\n temp . l . upper = upper ;\n temp . l . lower = mant ;\n return temp . d ;\n }"}
{"idx": 7570, "target": 0, "func": "TEST_F ( BrowsingDataRemoverImplTest , ClearHttpAuthCache_RemoveCookies ) {\n net : : HttpNetworkSession * http_session = content : : BrowserContext : : GetDefaultStoragePartition ( GetBrowserContext ( ) ) -> GetURLRequestContext ( ) -> GetURLRequestContext ( ) -> http_transaction_factory ( ) -> GetSession ( ) ;\n DCHECK ( http_session ) ;\n net : : HttpAuthCache * http_auth_cache = http_session -> http_auth_cache ( ) ;\n http_auth_cache -> Add ( kOrigin1 , kTestRealm , net : : HttpAuth : : AUTH_SCHEME_BASIC , \"test challenge\" , net : : AuthCredentials ( base : : ASCIIToUTF16 ( \"foo\" ) , base : : ASCIIToUTF16 ( \"bar\" ) ) , \"/\" ) ;\n CHECK ( http_auth_cache -> Lookup ( kOrigin1 , kTestRealm , net : : HttpAuth : : AUTH_SCHEME_BASIC ) ) ;\n BlockUntilBrowsingDataRemoved ( base : : Time ( ) , base : : Time : : Max ( ) , BrowsingDataRemover : : REMOVE_COOKIES , false ) ;\n EXPECT_EQ ( nullptr , http_auth_cache -> Lookup ( kOrigin1 , kTestRealm , net : : HttpAuth : : AUTH_SCHEME_BASIC ) ) ;\n }"}
{"idx": 7571, "target": 0, "func": "int archprintf ( Archive * AH , const char * fmt , ... ) {\n char * p ;\n size_t len = 128 ;\n size_t cnt ;\n for ( ;\n ;\n ) {\n va_list args ;\n p = ( char * ) pg_malloc ( len ) ;\n va_start ( args , fmt ) ;\n cnt = pvsnprintf ( p , len , fmt , args ) ;\n va_end ( args ) ;\n if ( cnt < len ) break ;\n free ( p ) ;\n len = cnt ;\n }\n WriteData ( AH , p , cnt ) ;\n free ( p ) ;\n return ( int ) cnt ;\n }"}
{"idx": 7572, "target": 0, "func": "static Expr * inline_function ( Oid funcid , Oid result_type , Oid result_collid , Oid input_collid , List * args , bool funcvariadic , HeapTuple func_tuple , eval_const_expressions_context * context ) {\n Form_pg_proc funcform = ( Form_pg_proc ) GETSTRUCT ( func_tuple ) ;\n char * src ;\n Datum tmp ;\n bool isNull ;\n bool modifyTargetList ;\n MemoryContext oldcxt ;\n MemoryContext mycxt ;\n inline_error_callback_arg callback_arg ;\n ErrorContextCallback sqlerrcontext ;\n FuncExpr * fexpr ;\n SQLFunctionParseInfoPtr pinfo ;\n ParseState * pstate ;\n List * raw_parsetree_list ;\n Query * querytree ;\n Node * newexpr ;\n int * usecounts ;\n ListCell * arg ;\n int i ;\n if ( funcform -> prolang != SQLlanguageId || funcform -> prosecdef || funcform -> proretset || funcform -> prorettype == RECORDOID || ! heap_attisnull ( func_tuple , Anum_pg_proc_proconfig ) || funcform -> pronargs != list_length ( args ) ) return NULL ;\n if ( list_member_oid ( context -> active_fns , funcid ) ) return NULL ;\n if ( pg_proc_aclcheck ( funcid , GetUserId ( ) , ACL_EXECUTE ) != ACLCHECK_OK ) return NULL ;\n if ( FmgrHookIsNeeded ( funcid ) ) return NULL ;\n mycxt = AllocSetContextCreate ( CurrentMemoryContext , \"inline_function\" , ALLOCSET_DEFAULT_MINSIZE , ALLOCSET_DEFAULT_INITSIZE , ALLOCSET_DEFAULT_MAXSIZE ) ;\n oldcxt = MemoryContextSwitchTo ( mycxt ) ;\n tmp = SysCacheGetAttr ( PROCOID , func_tuple , Anum_pg_proc_prosrc , & isNull ) ;\n if ( isNull ) elog ( ERROR , \"null prosrc for function %u\" , funcid ) ;\n src = TextDatumGetCString ( tmp ) ;\n callback_arg . proname = NameStr ( funcform -> proname ) ;\n callback_arg . prosrc = src ;\n sqlerrcontext . callback = sql_inline_error_callback ;\n sqlerrcontext . arg = ( void * ) & callback_arg ;\n sqlerrcontext . previous = error_context_stack ;\n error_context_stack = & sqlerrcontext ;\n fexpr = makeNode ( FuncExpr ) ;\n fexpr -> funcid = funcid ;\n fexpr -> funcresulttype = result_type ;\n fexpr -> funcretset = false ;\n fexpr -> funcvariadic = funcvariadic ;\n fexpr -> funcformat = COERCE_EXPLICIT_CALL ;\n fexpr -> funccollid = result_collid ;\n fexpr -> inputcollid = input_collid ;\n fexpr -> args = args ;\n fexpr -> location = - 1 ;\n pinfo = prepare_sql_fn_parse_info ( func_tuple , ( Node * ) fexpr , input_collid ) ;\n raw_parsetree_list = pg_parse_query ( src ) ;\n if ( list_length ( raw_parsetree_list ) != 1 ) goto fail ;\n pstate = make_parsestate ( NULL ) ;\n pstate -> p_sourcetext = src ;\n sql_fn_parser_setup ( pstate , pinfo ) ;\n querytree = transformTopLevelStmt ( pstate , linitial ( raw_parsetree_list ) ) ;\n free_parsestate ( pstate ) ;\n if ( ! IsA ( querytree , Query ) || querytree -> commandType != CMD_SELECT || querytree -> utilityStmt || querytree -> hasAggs || querytree -> hasWindowFuncs || querytree -> hasSubLinks || querytree -> cteList || querytree -> rtable || querytree -> jointree -> fromlist || querytree -> jointree -> quals || querytree -> groupClause || querytree -> groupingSets || querytree -> havingQual || querytree -> windowClause || querytree -> distinctClause || querytree -> sortClause || querytree -> limitOffset || querytree -> limitCount || querytree -> setOperations || list_length ( querytree -> targetList ) != 1 ) goto fail ;\n if ( check_sql_fn_retval ( funcid , result_type , list_make1 ( querytree ) , & modifyTargetList , NULL ) ) goto fail ;\n newexpr = ( Node * ) ( ( TargetEntry * ) linitial ( querytree -> targetList ) ) -> expr ;\n Assert ( exprType ( newexpr ) == result_type ) ;\n Assert ( ! modifyTargetList ) ;\n if ( expression_returns_set ( newexpr ) ) goto fail ;\n if ( funcform -> provolatile == PROVOLATILE_IMMUTABLE && contain_mutable_functions ( newexpr ) ) goto fail ;\n else if ( funcform -> provolatile == PROVOLATILE_STABLE && contain_volatile_functions ( newexpr ) ) goto fail ;\n if ( funcform -> proisstrict && contain_nonstrict_functions ( newexpr ) ) goto fail ;\n if ( contain_context_dependent_node ( ( Node * ) args ) ) goto fail ;\n usecounts = ( int * ) palloc0 ( funcform -> pronargs * sizeof ( int ) ) ;\n newexpr = substitute_actual_parameters ( newexpr , funcform -> pronargs , args , usecounts ) ;\n i = 0 ;\n foreach ( arg , args ) {\n Node * param = lfirst ( arg ) ;\n if ( usecounts [ i ] == 0 ) {\n if ( funcform -> proisstrict ) goto fail ;\n }\n else if ( usecounts [ i ] != 1 ) {\n QualCost eval_cost ;\n if ( contain_subplans ( param ) ) goto fail ;\n cost_qual_eval ( & eval_cost , list_make1 ( param ) , NULL ) ;\n if ( eval_cost . startup + eval_cost . per_tuple > 10 * cpu_operator_cost ) goto fail ;\n if ( contain_volatile_functions ( param ) ) goto fail ;\n }\n i ++ ;\n }\n MemoryContextSwitchTo ( oldcxt ) ;\n newexpr = copyObject ( newexpr ) ;\n MemoryContextDelete ( mycxt ) ;\n if ( OidIsValid ( result_collid ) ) {\n Oid exprcoll = exprCollation ( newexpr ) ;\n if ( OidIsValid ( exprcoll ) && exprcoll != result_collid ) {\n CollateExpr * newnode = makeNode ( CollateExpr ) ;\n newnode -> arg = ( Expr * ) newexpr ;\n newnode -> collOid = result_collid ;\n newnode -> location = - 1 ;\n newexpr = ( Node * ) newnode ;\n }\n }\n if ( context -> root ) record_plan_function_dependency ( context -> root , funcid ) ;\n context -> active_fns = lcons_oid ( funcid , context -> active_fns ) ;\n newexpr = eval_const_expressions_mutator ( newexpr , context ) ;\n context -> active_fns = list_delete_first ( context -> active_fns ) ;\n error_context_stack = sqlerrcontext . previous ;\n return ( Expr * ) newexpr ;\n fail : MemoryContextSwitchTo ( oldcxt ) ;\n MemoryContextDelete ( mycxt ) ;\n error_context_stack = sqlerrcontext . previous ;\n return NULL ;\n }"}
{"idx": 7573, "target": 0, "func": "int qemuAgentGetInterfaces ( qemuAgentPtr mon , virDomainInterfacePtr * * ifaces ) {\n int ret = - 1 ;\n size_t i , j ;\n ssize_t size = - 1 ;\n virJSONValuePtr cmd = NULL ;\n virJSONValuePtr reply = NULL ;\n virJSONValuePtr ret_array = NULL ;\n size_t ifaces_count = 0 ;\n size_t addrs_count = 0 ;\n virDomainInterfacePtr * ifaces_ret = NULL ;\n virHashTablePtr ifaces_store = NULL ;\n char * * ifname = NULL ;\n if ( ! ( ifaces_store = virHashCreate ( ifaces_count , NULL ) ) ) {\n virHashFree ( ifaces_store ) ;\n return - 1 ;\n }\n if ( ! ( cmd = qemuAgentMakeCommand ( \"guest-network-get-interfaces\" , NULL ) ) ) goto cleanup ;\n if ( qemuAgentCommand ( mon , cmd , & reply , false , VIR_DOMAIN_QEMU_AGENT_COMMAND_BLOCK ) < 0 || qemuAgentCheckError ( cmd , reply ) < 0 ) {\n goto cleanup ;\n }\n if ( ! ( ret_array = virJSONValueObjectGet ( reply , \"return\" ) ) ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"qemu agent didn't provide 'return' field\" ) ) ;\n goto cleanup ;\n }\n if ( ( size = virJSONValueArraySize ( ret_array ) ) < 0 ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"qemu agent didn't return an array of interfaces\" ) ) ;\n goto cleanup ;\n }\n for ( i = 0 ;\n i < size ;\n i ++ ) {\n virJSONValuePtr tmp_iface = virJSONValueArrayGet ( ret_array , i ) ;\n virJSONValuePtr ip_addr_arr = NULL ;\n const char * hwaddr , * ifname_s , * name = NULL ;\n ssize_t ip_addr_arr_size ;\n virDomainInterfacePtr iface = NULL ;\n if ( ! tmp_iface ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"qemu agent reply missing interface entry in array\" ) ) ;\n goto error ;\n }\n name = virJSONValueObjectGetString ( tmp_iface , \"name\" ) ;\n if ( ! name ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"qemu agent didn't provide 'name' field\" ) ) ;\n goto error ;\n }\n ifname = virStringSplit ( name , \":\" , 2 ) ;\n ifname_s = ifname [ 0 ] ;\n iface = virHashLookup ( ifaces_store , ifname_s ) ;\n if ( ! iface ) {\n if ( VIR_EXPAND_N ( ifaces_ret , ifaces_count , 1 ) < 0 ) goto error ;\n if ( VIR_ALLOC ( ifaces_ret [ ifaces_count - 1 ] ) < 0 ) goto error ;\n if ( virHashAddEntry ( ifaces_store , ifname_s , ifaces_ret [ ifaces_count - 1 ] ) < 0 ) goto error ;\n iface = ifaces_ret [ ifaces_count - 1 ] ;\n iface -> naddrs = 0 ;\n if ( VIR_STRDUP ( iface -> name , ifname_s ) < 0 ) goto error ;\n hwaddr = virJSONValueObjectGetString ( tmp_iface , \"hardware-address\" ) ;\n if ( VIR_STRDUP ( iface -> hwaddr , hwaddr ) < 0 ) goto error ;\n }\n virStringListFree ( ifname ) ;\n ip_addr_arr = virJSONValueObjectGet ( tmp_iface , \"ip-addresses\" ) ;\n if ( ! ip_addr_arr ) continue ;\n if ( ( ip_addr_arr_size = virJSONValueArraySize ( ip_addr_arr ) ) < 0 ) goto error ;\n addrs_count = iface -> naddrs ;\n for ( j = 0 ;\n j < ip_addr_arr_size ;\n j ++ ) {\n const char * type , * addr ;\n virJSONValuePtr ip_addr_obj = virJSONValueArrayGet ( ip_addr_arr , j ) ;\n virDomainIPAddressPtr ip_addr ;\n if ( VIR_EXPAND_N ( iface -> addrs , addrs_count , 1 ) < 0 ) goto error ;\n ip_addr = & iface -> addrs [ addrs_count - 1 ] ;\n if ( ! ip_addr_obj ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"qemu agent reply missing IP addr in array\" ) ) ;\n goto error ;\n }\n type = virJSONValueObjectGetString ( ip_addr_obj , \"ip-address-type\" ) ;\n if ( ! type ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"qemu agent didn't provide 'ip-address-type'\" \" field for interface '%s'\" ) , name ) ;\n goto error ;\n }\n else if ( STREQ ( type , \"ipv4\" ) ) {\n ip_addr -> type = VIR_IP_ADDR_TYPE_IPV4 ;\n }\n else if ( STREQ ( type , \"ipv6\" ) ) {\n ip_addr -> type = VIR_IP_ADDR_TYPE_IPV6 ;\n }\n else {\n virReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"unknown ip address type '%s'\" ) , type ) ;\n goto error ;\n }\n addr = virJSONValueObjectGetString ( ip_addr_obj , \"ip-address\" ) ;\n if ( ! addr ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"qemu agent didn't provide 'ip-address'\" \" field for interface '%s'\" ) , name ) ;\n goto error ;\n }\n if ( VIR_STRDUP ( ip_addr -> addr , addr ) < 0 ) goto error ;\n if ( virJSONValueObjectGetNumberUint ( ip_addr_obj , \"prefix\" , & ip_addr -> prefix ) < 0 ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"malformed 'prefix' field\" ) ) ;\n goto error ;\n }\n }\n iface -> naddrs = addrs_count ;\n }\n VIR_STEAL_PTR ( * ifaces , ifaces_ret ) ;\n ret = ifaces_count ;\n cleanup : virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n virHashFree ( ifaces_store ) ;\n return ret ;\n error : if ( ifaces_ret ) {\n for ( i = 0 ;\n i < ifaces_count ;\n i ++ ) virDomainInterfaceFree ( ifaces_ret [ i ] ) ;\n }\n VIR_FREE ( ifaces_ret ) ;\n virStringListFree ( ifname ) ;\n goto cleanup ;\n }"}
{"idx": 7574, "target": 0, "func": "int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 )"}
{"idx": 7575, "target": 1, "func": "static __always_inline __u32 __le32_to_cpup ( const __le32 * p ) {\n return ( __u32 ) * p ;\n }"}
{"idx": 7576, "target": 0, "func": "static void * set_bootinfo_tag ( void * addr , uint32_t tag , uint32_t size , void * data ) {\n char * pos = addr ;\n put_long ( pos , tag ) ;\n pos += 4 ;\n put_long ( pos , size + 8 ) ;\n pos += 4 ;\n memcpy ( pos , data , size ) ;\n pos += size ;\n return pos ;\n }"}
{"idx": 7577, "target": 0, "func": "static int dcc_ctcp_resume_parse ( int type , const char * data , const char * nick , FILE_DCC_REC * * dcc , uoff_t * size , int * pasv_id ) {\n char * * params ;\n int paramcount , fileparams ;\n int port ;\n params = g_strsplit ( data , \" \" , - 1 ) ;\n paramcount = g_strv_length ( params ) ;\n if ( paramcount < 3 ) return 0 ;\n fileparams = get_file_params_count_resume ( params , paramcount ) ;\n if ( paramcount >= fileparams + 2 ) {\n port = atoi ( params [ fileparams ] ) ;\n * size = str_to_uofft ( params [ fileparams + 1 ] ) ;\n * pasv_id = ( ( port == 0 ) && ( paramcount == fileparams + 3 ) ) ? atoi ( params [ fileparams + 2 ] ) : - 1 ;\n * dcc = dcc_resume_find ( type , nick , port ) ;\n g_strfreev ( params ) ;\n return ( ( * dcc != NULL ) && ( ( * dcc ) -> pasv_id == * pasv_id ) ) ;\n }\n g_strfreev ( params ) ;\n return FALSE ;\n }"}
{"idx": 7578, "target": 0, "func": "static void test_bug6096 ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_RES * query_result , * stmt_metadata ;\n const char * stmt_text ;\n MYSQL_BIND my_bind [ 12 ] ;\n MYSQL_FIELD * query_field_list , * stmt_field_list ;\n ulong query_field_count , stmt_field_count ;\n int rc ;\n my_bool update_max_length = TRUE ;\n uint i ;\n myheader ( \"test_bug6096\" ) ;\n stmt_text = \"drop table if exists t1\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n mysql_query ( mysql , \"set sql_mode=''\" ) ;\n stmt_text = \"create table t1 (c_tinyint tinyint, c_smallint smallint, \" \" c_mediumint mediumint, c_int int, \" \" c_bigint bigint, c_float float, \" \" c_double double, c_varchar varchar(20), \" \" c_char char(20), c_time time, c_date date, \" \" c_datetime datetime)\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt_text = \"insert into t1 values (-100, -20000, 30000000, 4, 8, 1.0, \" \"2.0, 'abc', 'def', now(), now(), now())\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt_text = \"select * from t1\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n query_result = mysql_store_result ( mysql ) ;\n query_field_list = mysql_fetch_fields ( query_result ) ;\n query_field_count = mysql_num_fields ( query_result ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n mysql_stmt_attr_set ( stmt , STMT_ATTR_UPDATE_MAX_LENGTH , ( void * ) & update_max_length ) ;\n mysql_stmt_store_result ( stmt ) ;\n stmt_metadata = mysql_stmt_result_metadata ( stmt ) ;\n stmt_field_list = mysql_fetch_fields ( stmt_metadata ) ;\n stmt_field_count = mysql_num_fields ( stmt_metadata ) ;\n DIE_UNLESS ( stmt_field_count == query_field_count ) ;\n if ( ! opt_silent ) {\n printf ( \" ------------------------------------------------------------\\n\" ) ;\n printf ( \" | Metadata \\n\" ) ;\n printf ( \" ------------------------------------------------------------\\n\" ) ;\n printf ( \" | Query | Prepared statement \\n\" ) ;\n printf ( \" ------------------------------------------------------------\\n\" ) ;\n printf ( \" field name | length | max_length | length | max_length\\n\" ) ;\n printf ( \" ------------------------------------------------------------\\n\" ) ;\n for ( i = 0 ;\n i < query_field_count ;\n ++ i ) {\n MYSQL_FIELD * f1 = & query_field_list [ i ] , * f2 = & stmt_field_list [ i ] ;\n printf ( \" %-11s | %9lu | %10lu | %9lu | %10lu \\n\" , f1 -> name , f1 -> length , f1 -> max_length , f2 -> length , f2 -> max_length ) ;\n DIE_UNLESS ( f1 -> length == f2 -> length ) ;\n }\n printf ( \" ---------------------------------------------------------------\\n\" ) ;\n }\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n for ( i = 0 ;\n i < stmt_field_count ;\n ++ i ) {\n my_bind [ i ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ i ] . buffer_length = stmt_field_list [ i ] . max_length + 1 ;\n my_bind [ i ] . buffer = malloc ( my_bind [ i ] . buffer_length ) ;\n }\n mysql_stmt_bind_result ( stmt , my_bind ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n for ( i = 0 ;\n i < stmt_field_count ;\n ++ i ) free ( my_bind [ i ] . buffer ) ;\n mysql_stmt_close ( stmt ) ;\n mysql_free_result ( query_result ) ;\n mysql_free_result ( stmt_metadata ) ;\n stmt_text = \"drop table t1\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n }"}
{"idx": 7579, "target": 0, "func": "void jpc_enc_tile_destroy ( jpc_enc_tile_t * tile ) {\n jpc_enc_tcmpt_t * tcmpt ;\n uint_fast16_t cmptno ;\n if ( tile -> tcmpts ) {\n for ( cmptno = 0 , tcmpt = tile -> tcmpts ;\n cmptno < tile -> numtcmpts ;\n ++ cmptno , ++ tcmpt ) {\n tcmpt_destroy ( tcmpt ) ;\n }\n jas_free ( tile -> tcmpts ) ;\n }\n if ( tile -> lyrsizes ) {\n jas_free ( tile -> lyrsizes ) ;\n }\n if ( tile -> pi ) {\n jpc_pi_destroy ( tile -> pi ) ;\n }\n jas_free ( tile ) ;\n }"}
{"idx": 7580, "target": 0, "func": "unsigned int dtls1_min_mtu ( SSL * s ) {\n return dtls1_link_min_mtu ( ) - BIO_dgram_get_mtu_overhead ( SSL_get_wbio ( s ) ) ;\n }"}
{"idx": 7581, "target": 0, "func": "xmlDeregisterNodeFunc xmlDeregisterNodeDefault ( xmlDeregisterNodeFunc func ) {\n xmlDeregisterNodeFunc old = xmlDeregisterNodeDefaultValue ;\n __xmlRegisterCallbacks = 1 ;\n xmlDeregisterNodeDefaultValue = func ;\n return ( old ) ;\n }"}
{"idx": 7582, "target": 1, "func": "static void optimize_b ( MACROBLOCK * mb , int ib , int type , ENTROPY_CONTEXT * a , ENTROPY_CONTEXT * l ) {\n BLOCK * b ;\n BLOCKD * d ;\n vp8_token_state tokens [ 17 ] [ 2 ] ;\n unsigned best_mask [ 2 ] ;\n const short * dequant_ptr ;\n const short * coeff_ptr ;\n short * qcoeff_ptr ;\n short * dqcoeff_ptr ;\n int eob ;\n int i0 ;\n int rc ;\n int x ;\n int sz = 0 ;\n int next ;\n int rdmult ;\n int rddiv ;\n int final_eob ;\n int rd_cost0 ;\n int rd_cost1 ;\n int rate0 ;\n int rate1 ;\n int error0 ;\n int error1 ;\n int t0 ;\n int t1 ;\n int best ;\n int band ;\n int pt ;\n int i ;\n int err_mult = plane_rd_mult [ type ] ;\n b = & mb -> block [ ib ] ;\n d = & mb -> e_mbd . block [ ib ] ;\n # if 0 vp8_strict_quantize_b ( b , d ) ;\n # endif dequant_ptr = d -> dequant ;\n coeff_ptr = b -> coeff ;\n qcoeff_ptr = d -> qcoeff ;\n dqcoeff_ptr = d -> dqcoeff ;\n i0 = ! type ;\n eob = * d -> eob ;\n rdmult = mb -> rdmult * err_mult ;\n if ( mb -> e_mbd . mode_info_context -> mbmi . ref_frame == INTRA_FRAME ) rdmult = ( rdmult * 9 ) >> 4 ;\n rddiv = mb -> rddiv ;\n best_mask [ 0 ] = best_mask [ 1 ] = 0 ;\n tokens [ eob ] [ 0 ] . rate = 0 ;\n tokens [ eob ] [ 0 ] . error = 0 ;\n tokens [ eob ] [ 0 ] . next = 16 ;\n tokens [ eob ] [ 0 ] . token = DCT_EOB_TOKEN ;\n tokens [ eob ] [ 0 ] . qc = 0 ;\n * ( tokens [ eob ] + 1 ) = * ( tokens [ eob ] + 0 ) ;\n next = eob ;\n for ( i = eob ;\n i -- > i0 ;\n ) {\n int base_bits ;\n int d2 ;\n int dx ;\n rc = vp8_default_zig_zag1d [ i ] ;\n x = qcoeff_ptr [ rc ] ;\n if ( x ) {\n int shortcut = 0 ;\n error0 = tokens [ next ] [ 0 ] . error ;\n error1 = tokens [ next ] [ 1 ] . error ;\n rate0 = tokens [ next ] [ 0 ] . rate ;\n rate1 = tokens [ next ] [ 1 ] . rate ;\n t0 = ( vp8_dct_value_tokens_ptr + x ) -> Token ;\n if ( next < 16 ) {\n band = vp8_coef_bands [ i + 1 ] ;\n pt = vp8_prev_token_class [ t0 ] ;\n rate0 += mb -> token_costs [ type ] [ band ] [ pt ] [ tokens [ next ] [ 0 ] . token ] ;\n rate1 += mb -> token_costs [ type ] [ band ] [ pt ] [ tokens [ next ] [ 1 ] . token ] ;\n }\n rd_cost0 = RDCOST ( rdmult , rddiv , rate0 , error0 ) ;\n rd_cost1 = RDCOST ( rdmult , rddiv , rate1 , error1 ) ;\n if ( rd_cost0 == rd_cost1 ) {\n rd_cost0 = RDTRUNC ( rdmult , rddiv , rate0 , error0 ) ;\n rd_cost1 = RDTRUNC ( rdmult , rddiv , rate1 , error1 ) ;\n }\n best = rd_cost1 < rd_cost0 ;\n base_bits = * ( vp8_dct_value_cost_ptr + x ) ;\n dx = dqcoeff_ptr [ rc ] - coeff_ptr [ rc ] ;\n d2 = dx * dx ;\n tokens [ i ] [ 0 ] . rate = base_bits + ( best ? rate1 : rate0 ) ;\n tokens [ i ] [ 0 ] . error = d2 + ( best ? error1 : error0 ) ;\n tokens [ i ] [ 0 ] . next = next ;\n tokens [ i ] [ 0 ] . token = t0 ;\n tokens [ i ] [ 0 ] . qc = x ;\n best_mask [ 0 ] |= best << i ;\n rate0 = tokens [ next ] [ 0 ] . rate ;\n rate1 = tokens [ next ] [ 1 ] . rate ;\n if ( ( abs ( x ) * dequant_ptr [ rc ] > abs ( coeff_ptr [ rc ] ) ) && ( abs ( x ) * dequant_ptr [ rc ] < abs ( coeff_ptr [ rc ] ) + dequant_ptr [ rc ] ) ) shortcut = 1 ;\n else shortcut = 0 ;\n if ( shortcut ) {\n sz = - ( x < 0 ) ;\n x -= 2 * sz + 1 ;\n }\n if ( ! x ) {\n t0 = tokens [ next ] [ 0 ] . token == DCT_EOB_TOKEN ? DCT_EOB_TOKEN : ZERO_TOKEN ;\n t1 = tokens [ next ] [ 1 ] . token == DCT_EOB_TOKEN ? DCT_EOB_TOKEN : ZERO_TOKEN ;\n }\n else {\n t0 = t1 = ( vp8_dct_value_tokens_ptr + x ) -> Token ;\n }\n if ( next < 16 ) {\n band = vp8_coef_bands [ i + 1 ] ;\n if ( t0 != DCT_EOB_TOKEN ) {\n pt = vp8_prev_token_class [ t0 ] ;\n rate0 += mb -> token_costs [ type ] [ band ] [ pt ] [ tokens [ next ] [ 0 ] . token ] ;\n }\n if ( t1 != DCT_EOB_TOKEN ) {\n pt = vp8_prev_token_class [ t1 ] ;\n rate1 += mb -> token_costs [ type ] [ band ] [ pt ] [ tokens [ next ] [ 1 ] . token ] ;\n }\n }\n rd_cost0 = RDCOST ( rdmult , rddiv , rate0 , error0 ) ;\n rd_cost1 = RDCOST ( rdmult , rddiv , rate1 , error1 ) ;\n if ( rd_cost0 == rd_cost1 ) {\n rd_cost0 = RDTRUNC ( rdmult , rddiv , rate0 , error0 ) ;\n rd_cost1 = RDTRUNC ( rdmult , rddiv , rate1 , error1 ) ;\n }\n best = rd_cost1 < rd_cost0 ;\n base_bits = * ( vp8_dct_value_cost_ptr + x ) ;\n if ( shortcut ) {\n dx -= ( dequant_ptr [ rc ] + sz ) ^ sz ;\n d2 = dx * dx ;\n }\n tokens [ i ] [ 1 ] . rate = base_bits + ( best ? rate1 : rate0 ) ;\n tokens [ i ] [ 1 ] . error = d2 + ( best ? error1 : error0 ) ;\n tokens [ i ] [ 1 ] . next = next ;\n tokens [ i ] [ 1 ] . token = best ? t1 : t0 ;\n tokens [ i ] [ 1 ] . qc = x ;\n best_mask [ 1 ] |= best << i ;\n next = i ;\n }\n else {\n band = vp8_coef_bands [ i + 1 ] ;\n t0 = tokens [ next ] [ 0 ] . token ;\n t1 = tokens [ next ] [ 1 ] . token ;\n if ( t0 != DCT_EOB_TOKEN ) {\n tokens [ next ] [ 0 ] . rate += mb -> token_costs [ type ] [ band ] [ 0 ] [ t0 ] ;\n tokens [ next ] [ 0 ] . token = ZERO_TOKEN ;\n }\n if ( t1 != DCT_EOB_TOKEN ) {\n tokens [ next ] [ 1 ] . rate += mb -> token_costs [ type ] [ band ] [ 0 ] [ t1 ] ;\n tokens [ next ] [ 1 ] . token = ZERO_TOKEN ;\n }\n }\n }\n band = vp8_coef_bands [ i + 1 ] ;\n VP8_COMBINEENTROPYCONTEXTS ( pt , * a , * l ) ;\n rate0 = tokens [ next ] [ 0 ] . rate ;\n rate1 = tokens [ next ] [ 1 ] . rate ;\n error0 = tokens [ next ] [ 0 ] . error ;\n error1 = tokens [ next ] [ 1 ] . error ;\n t0 = tokens [ next ] [ 0 ] . token ;\n t1 = tokens [ next ] [ 1 ] . token ;\n rate0 += mb -> token_costs [ type ] [ band ] [ pt ] [ t0 ] ;\n rate1 += mb -> token_costs [ type ] [ band ] [ pt ] [ t1 ] ;\n rd_cost0 = RDCOST ( rdmult , rddiv , rate0 , error0 ) ;\n rd_cost1 = RDCOST ( rdmult , rddiv , rate1 , error1 ) ;\n if ( rd_cost0 == rd_cost1 ) {\n rd_cost0 = RDTRUNC ( rdmult , rddiv , rate0 , error0 ) ;\n rd_cost1 = RDTRUNC ( rdmult , rddiv , rate1 , error1 ) ;\n }\n best = rd_cost1 < rd_cost0 ;\n final_eob = i0 - 1 ;\n for ( i = next ;\n i < eob ;\n i = next ) {\n x = tokens [ i ] [ best ] . qc ;\n if ( x ) final_eob = i ;\n rc = vp8_default_zig_zag1d [ i ] ;\n qcoeff_ptr [ rc ] = x ;\n dqcoeff_ptr [ rc ] = x * dequant_ptr [ rc ] ;\n next = tokens [ i ] [ best ] . next ;\n best = ( best_mask [ best ] >> i ) & 1 ;\n }\n final_eob ++ ;\n * a = * l = ( final_eob != ! type ) ;\n * d -> eob = ( char ) final_eob ;\n }"}
{"idx": 7583, "target": 0, "func": "static int dissect_h245_ExtendedVideoCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_ExtendedVideoCapability , ExtendedVideoCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 7584, "target": 1, "func": "static void fmtint ( char * * sbuffer , char * * buffer , size_t * currlen , size_t * maxlen , LLONG value , int base , int min , int max , int flags ) {\n int signvalue = 0 ;\n const char * prefix = \"\" ;\n unsigned LLONG uvalue ;\n char convert [ DECIMAL_SIZE ( value ) + 3 ] ;\n int place = 0 ;\n int spadlen = 0 ;\n int zpadlen = 0 ;\n int caps = 0 ;\n if ( max < 0 ) max = 0 ;\n uvalue = value ;\n if ( ! ( flags & DP_F_UNSIGNED ) ) {\n if ( value < 0 ) {\n signvalue = '-' ;\n uvalue = - value ;\n }\n else if ( flags & DP_F_PLUS ) signvalue = '+' ;\n else if ( flags & DP_F_SPACE ) signvalue = ' ' ;\n }\n if ( flags & DP_F_NUM ) {\n if ( base == 8 ) prefix = \"0\" ;\n if ( base == 16 ) prefix = \"0x\" ;\n }\n if ( flags & DP_F_UP ) caps = 1 ;\n do {\n convert [ place ++ ] = ( caps ? \"0123456789ABCDEF\" : \"0123456789abcdef\" ) [ uvalue % ( unsigned ) base ] ;\n uvalue = ( uvalue / ( unsigned ) base ) ;\n }\n while ( uvalue && ( place < ( int ) sizeof ( convert ) ) ) ;\n if ( place == sizeof ( convert ) ) place -- ;\n convert [ place ] = 0 ;\n zpadlen = max - place ;\n spadlen = min - OSSL_MAX ( max , place ) - ( signvalue ? 1 : 0 ) - strlen ( prefix ) ;\n if ( zpadlen < 0 ) zpadlen = 0 ;\n if ( spadlen < 0 ) spadlen = 0 ;\n if ( flags & DP_F_ZERO ) {\n zpadlen = OSSL_MAX ( zpadlen , spadlen ) ;\n spadlen = 0 ;\n }\n if ( flags & DP_F_MINUS ) spadlen = - spadlen ;\n while ( spadlen > 0 ) {\n doapr_outch ( sbuffer , buffer , currlen , maxlen , ' ' ) ;\n -- spadlen ;\n }\n if ( signvalue ) doapr_outch ( sbuffer , buffer , currlen , maxlen , signvalue ) ;\n while ( * prefix ) {\n doapr_outch ( sbuffer , buffer , currlen , maxlen , * prefix ) ;\n prefix ++ ;\n }\n if ( zpadlen > 0 ) {\n while ( zpadlen > 0 ) {\n doapr_outch ( sbuffer , buffer , currlen , maxlen , '0' ) ;\n -- zpadlen ;\n }\n }\n while ( place > 0 ) doapr_outch ( sbuffer , buffer , currlen , maxlen , convert [ -- place ] ) ;\n while ( spadlen < 0 ) {\n doapr_outch ( sbuffer , buffer , currlen , maxlen , ' ' ) ;\n ++ spadlen ;\n }\n return ;\n }"}
{"idx": 7585, "target": 0, "func": "gboolean lbmpdm_verify_payload ( tvbuff_t * tvb , int offset , int * encoding , int * length ) {\n guint8 next_header ;\n guint32 len = 0 ;\n if ( ! tvb_bytes_exist ( tvb , offset , L_LBMPDM_MSG_HDR_T ) ) {\n return ( FALSE ) ;\n }\n if ( ! check_lbmpdm_encoding ( tvb , offset , encoding ) ) {\n return ( FALSE ) ;\n }\n next_header = tvb_get_guint8 ( tvb , offset + O_LBMPDM_MSG_HDR_T_NEXT_HDR ) ;\n switch ( next_header ) {\n case PDM_HDR_TYPE_DATA : case PDM_HDR_TYPE_OFSTTBLE : case PDM_HDR_TYPE_DEFN : case PDM_HDR_TYPE_EOM : break ;\n default : return ( FALSE ) ;\n break ;\n }\n len = lbmpdm_fetch_uint32_encoded ( tvb , offset + O_LBMPDM_MSG_HDR_T_LEN , * encoding ) ;\n if ( len > G_MAXINT ) {\n return ( FALSE ) ;\n }\n * length = ( int ) len ;\n return ( TRUE ) ;\n }"}
{"idx": 7586, "target": 0, "func": "REGRESSION_TEST ( SDK_API_TSCache ) ( RegressionTest * test , int , int * pstatus ) {\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n SDK_Cache_test = test ;\n SDK_Cache_pstatus = pstatus ;\n int is_ready = 0 ;\n TSCacheReady ( & is_ready ) ;\n if ( ! is_ready ) {\n SDK_RPRINT ( test , \"TSCacheReady\" , \"TestCase1\" , TC_FAIL , \"cache is not ready\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n return ;\n }\n else {\n SDK_RPRINT ( test , \"TSCacheReady\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n char key_name [ ] = \"key_for_regression_test\" ;\n TSCacheKey key = TSCacheKeyCreate ( ) ;\n TSCacheKey key_cmp = TSCacheKeyCreate ( ) ;\n SDK_RPRINT ( test , \"TSCacheKeyCreate\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n TSCacheKeyDigestSet ( key , key_name , strlen ( key_name ) ) ;\n TSCacheKeyDigestSet ( key_cmp , key_name , strlen ( key_name ) ) ;\n # if 0 if ( memcmp ( key , key_cmp , sizeof ( TSCacheKey ) ) != 0 ) {\n SDK_RPRINT ( test , \"TSCacheKeySetDigest\" , \"TestCase1\" , TC_FAIL , \"digest is wrong\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n TSCacheKeyDestroy ( key ) ;\n TSCacheKeyDestroy ( key_cmp ) ;\n return ;\n }\n else {\n SDK_RPRINT ( test , \"TSCacheKeySetDigest\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n TSCacheKeyDestroy ( key_cmp ) ;\n }\n # endif for ( int i = 0 ;\n i < ( OBJECT_SIZE - 1 ) ;\n i ++ ) {\n content [ i ] = 'a' ;\n }\n content [ OBJECT_SIZE - 1 ] = '\\0' ;\n TSCont contp = TSContCreate ( cache_handler , TSMutexCreate ( ) ) ;\n CacheVConnStruct * cache_vconn = ( CacheVConnStruct * ) TSmalloc ( sizeof ( CacheVConnStruct ) ) ;\n cache_vconn -> key = key ;\n TSContDataSet ( contp , cache_vconn ) ;\n TSCacheWrite ( contp , key ) ;\n }"}
{"idx": 7587, "target": 0, "func": "static GstStateChangeReturn gst_asf_demux_change_state ( GstElement * element , GstStateChange transition ) {\n GstASFDemux * demux = GST_ASF_DEMUX ( element ) ;\n GstStateChangeReturn ret = GST_STATE_CHANGE_SUCCESS ;\n switch ( transition ) {\n case GST_STATE_CHANGE_NULL_TO_READY : {\n gst_segment_init ( & demux -> segment , GST_FORMAT_TIME ) ;\n demux -> need_newsegment = TRUE ;\n demux -> segment_running = FALSE ;\n demux -> keyunit_sync = FALSE ;\n demux -> accurate = FALSE ;\n demux -> adapter = gst_adapter_new ( ) ;\n demux -> metadata = gst_caps_new_empty ( ) ;\n demux -> global_metadata = gst_structure_new_empty ( \"metadata\" ) ;\n demux -> data_size = 0 ;\n demux -> data_offset = 0 ;\n demux -> index_offset = 0 ;\n demux -> base_offset = 0 ;\n demux -> flowcombiner = gst_flow_combiner_new ( ) ;\n break ;\n }\n default : break ;\n }\n ret = GST_ELEMENT_CLASS ( parent_class ) -> change_state ( element , transition ) ;\n if ( ret == GST_STATE_CHANGE_FAILURE ) return ret ;\n switch ( transition ) {\n case GST_STATE_CHANGE_PAUSED_TO_READY : gst_asf_demux_reset ( demux , FALSE ) ;\n break ;\n case GST_STATE_CHANGE_READY_TO_NULL : gst_asf_demux_reset ( demux , FALSE ) ;\n gst_flow_combiner_free ( demux -> flowcombiner ) ;\n demux -> flowcombiner = NULL ;\n break ;\n default : break ;\n }\n return ret ;\n }"}
{"idx": 7588, "target": 0, "func": "static void U_CALLCONV _CompoundTextOpen ( UConverter * cnv , UConverterLoadArgs * pArgs , UErrorCode * errorCode ) {\n cnv -> extraInfo = uprv_malloc ( sizeof ( UConverterDataCompoundText ) ) ;\n if ( cnv -> extraInfo != NULL ) {\n UConverterDataCompoundText * myConverterData = ( UConverterDataCompoundText * ) cnv -> extraInfo ;\n UConverterNamePieces stackPieces ;\n UConverterLoadArgs stackArgs = UCNV_LOAD_ARGS_INITIALIZER ;\n myConverterData -> myConverterArray [ COMPOUND_TEXT_SINGLE_0 ] = NULL ;\n myConverterData -> myConverterArray [ COMPOUND_TEXT_SINGLE_1 ] = ucnv_loadSharedData ( \"icu-internal-compound-s1\" , & stackPieces , & stackArgs , errorCode ) ;\n myConverterData -> myConverterArray [ COMPOUND_TEXT_SINGLE_2 ] = ucnv_loadSharedData ( \"icu-internal-compound-s2\" , & stackPieces , & stackArgs , errorCode ) ;\n myConverterData -> myConverterArray [ COMPOUND_TEXT_SINGLE_3 ] = ucnv_loadSharedData ( \"icu-internal-compound-s3\" , & stackPieces , & stackArgs , errorCode ) ;\n myConverterData -> myConverterArray [ COMPOUND_TEXT_DOUBLE_1 ] = ucnv_loadSharedData ( \"icu-internal-compound-d1\" , & stackPieces , & stackArgs , errorCode ) ;\n myConverterData -> myConverterArray [ COMPOUND_TEXT_DOUBLE_2 ] = ucnv_loadSharedData ( \"icu-internal-compound-d2\" , & stackPieces , & stackArgs , errorCode ) ;\n myConverterData -> myConverterArray [ COMPOUND_TEXT_DOUBLE_3 ] = ucnv_loadSharedData ( \"icu-internal-compound-d3\" , & stackPieces , & stackArgs , errorCode ) ;\n myConverterData -> myConverterArray [ COMPOUND_TEXT_DOUBLE_4 ] = ucnv_loadSharedData ( \"icu-internal-compound-d4\" , & stackPieces , & stackArgs , errorCode ) ;\n myConverterData -> myConverterArray [ COMPOUND_TEXT_DOUBLE_5 ] = ucnv_loadSharedData ( \"icu-internal-compound-d5\" , & stackPieces , & stackArgs , errorCode ) ;\n myConverterData -> myConverterArray [ COMPOUND_TEXT_DOUBLE_6 ] = ucnv_loadSharedData ( \"icu-internal-compound-d6\" , & stackPieces , & stackArgs , errorCode ) ;\n myConverterData -> myConverterArray [ COMPOUND_TEXT_DOUBLE_7 ] = ucnv_loadSharedData ( \"icu-internal-compound-d7\" , & stackPieces , & stackArgs , errorCode ) ;\n myConverterData -> myConverterArray [ COMPOUND_TEXT_TRIPLE_DOUBLE ] = ucnv_loadSharedData ( \"icu-internal-compound-t\" , & stackPieces , & stackArgs , errorCode ) ;\n myConverterData -> myConverterArray [ IBM_915 ] = ucnv_loadSharedData ( \"ibm-915_P100-1995\" , & stackPieces , & stackArgs , errorCode ) ;\n myConverterData -> myConverterArray [ IBM_916 ] = ucnv_loadSharedData ( \"ibm-916_P100-1995\" , & stackPieces , & stackArgs , errorCode ) ;\n myConverterData -> myConverterArray [ IBM_914 ] = ucnv_loadSharedData ( \"ibm-914_P100-1995\" , & stackPieces , & stackArgs , errorCode ) ;\n myConverterData -> myConverterArray [ IBM_874 ] = ucnv_loadSharedData ( \"ibm-874_P100-1995\" , & stackPieces , & stackArgs , errorCode ) ;\n myConverterData -> myConverterArray [ IBM_912 ] = ucnv_loadSharedData ( \"ibm-912_P100-1995\" , & stackPieces , & stackArgs , errorCode ) ;\n myConverterData -> myConverterArray [ IBM_913 ] = ucnv_loadSharedData ( \"ibm-913_P100-2000\" , & stackPieces , & stackArgs , errorCode ) ;\n myConverterData -> myConverterArray [ ISO_8859_14 ] = ucnv_loadSharedData ( \"iso-8859_14-1998\" , & stackPieces , & stackArgs , errorCode ) ;\n myConverterData -> myConverterArray [ IBM_923 ] = ucnv_loadSharedData ( \"ibm-923_P100-1998\" , & stackPieces , & stackArgs , errorCode ) ;\n if ( U_FAILURE ( * errorCode ) || pArgs -> onlyTestIsLoadable ) {\n _CompoundTextClose ( cnv ) ;\n return ;\n }\n myConverterData -> state = ( COMPOUND_TEXT_CONVERTERS ) 0 ;\n }\n else {\n * errorCode = U_MEMORY_ALLOCATION_ERROR ;\n }\n }"}
{"idx": 7589, "target": 0, "func": "void uwsgi_php_append_config ( char * filename ) {\n size_t file_size = 0 ;\n char * file_content = uwsgi_open_and_read ( filename , & file_size , 1 , NULL ) ;\n uwsgi_sapi_module . ini_entries = realloc ( uwsgi_sapi_module . ini_entries , uphp . ini_size + file_size ) ;\n memcpy ( uwsgi_sapi_module . ini_entries + uphp . ini_size , file_content , file_size ) ;\n uphp . ini_size += file_size - 1 ;\n free ( file_content ) ;\n }"}
{"idx": 7590, "target": 0, "func": "void ff_ivi_init_static_vlc ( void ) {\n int i ;\n static VLC_TYPE table_data [ 8192 * 16 ] [ 2 ] ;\n static int initialized_vlcs = 0 ;\n if ( initialized_vlcs ) return ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n ivi_mb_vlc_tabs [ i ] . table = table_data + i * 2 * 8192 ;\n ivi_mb_vlc_tabs [ i ] . table_allocated = 8192 ;\n ivi_create_huff_from_desc ( & ff_ivi_mb_huff_desc [ i ] , & ivi_mb_vlc_tabs [ i ] , 1 ) ;\n ivi_blk_vlc_tabs [ i ] . table = table_data + ( i * 2 + 1 ) * 8192 ;\n ivi_blk_vlc_tabs [ i ] . table_allocated = 8192 ;\n ivi_create_huff_from_desc ( & ff_ivi_blk_huff_desc [ i ] , & ivi_blk_vlc_tabs [ i ] , 1 ) ;\n }\n initialized_vlcs = 1 ;\n }"}
{"idx": 7591, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( WebRtcApprtcBrowserTest , MAYBE_MANUAL_FirefoxApprtcInteropTest ) {\n DetectErrorsInJavaScript ( ) ;\n ASSERT_TRUE ( LaunchApprtcInstanceOnLocalhost ( \"9999\" ) ) ;\n ASSERT_TRUE ( LaunchColliderOnLocalHost ( \"http://localhost:9999\" , \"8089\" ) ) ;\n while ( ! LocalApprtcInstanceIsUp ( ) ) DVLOG ( 1 ) << \"Waiting for AppRTC to come up...\" ;\n GURL room_url = GURL ( \"http://localhost:9999/r/some_room\" \"?wshpp=localhost:8089&wstls=false\" \"&firefox_fake_device=1\" ) ;\n chrome : : AddTabAt ( browser ( ) , GURL ( ) , - 1 , true ) ;\n content : : WebContents * chrome_tab = browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) ;\n PermissionBubbleManager : : FromWebContents ( chrome_tab ) -> set_auto_response_for_test ( PermissionBubbleManager : : ACCEPT_ALL ) ;\n InfoBarResponder infobar_responder ( InfoBarService : : FromWebContents ( chrome_tab ) , InfoBarResponder : : ACCEPT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , room_url ) ;\n ASSERT_TRUE ( LaunchFirefoxWithUrl ( room_url ) ) ;\n ASSERT_TRUE ( WaitForCallToComeUp ( chrome_tab ) ) ;\n ASSERT_TRUE ( DetectRemoteVideoPlaying ( chrome_tab ) ) ;\n }"}
{"idx": 7592, "target": 0, "func": "static __inline__ unsigned int tipc_cluster ( __u32 addr ) {\n return ( addr & TIPC_CLUSTER_MASK ) >> TIPC_CLUSTER_OFFSET ;\n }"}
{"idx": 7593, "target": 0, "func": "static hb_bool_t hb_shape_plan_matches ( const hb_shape_plan_t * shape_plan , const hb_shape_plan_proposal_t * proposal ) {\n return hb_segment_properties_equal ( & shape_plan -> props , & proposal -> props ) && hb_shape_plan_user_features_match ( shape_plan , proposal ) && ( ( shape_plan -> default_shaper_list && proposal -> shaper_list == NULL ) || ( shape_plan -> shaper_func == proposal -> shaper_func ) ) ;\n }"}
{"idx": 7594, "target": 0, "func": "void _TIFFmemset ( tdata_t p , int v , tsize_t c ) {\n memset ( p , v , ( size_t ) c ) ;\n }"}
{"idx": 7595, "target": 0, "func": "int ff_h264_handle_aggregated_packet ( AVFormatContext * ctx , PayloadContext * data , AVPacket * pkt , const uint8_t * buf , int len , int skip_between , int * nal_counters , int nal_mask ) {\n int pass = 0 ;\n int total_length = 0 ;\n uint8_t * dst = NULL ;\n int ret ;\n for ( pass = 0 ;\n pass < 2 ;\n pass ++ ) {\n const uint8_t * src = buf ;\n int src_len = len ;\n while ( src_len > 2 ) {\n uint16_t nal_size = AV_RB16 ( src ) ;\n src += 2 ;\n src_len -= 2 ;\n if ( nal_size <= src_len ) {\n if ( pass == 0 ) {\n total_length += sizeof ( start_sequence ) + nal_size ;\n }\n else {\n memcpy ( dst , start_sequence , sizeof ( start_sequence ) ) ;\n dst += sizeof ( start_sequence ) ;\n memcpy ( dst , src , nal_size ) ;\n if ( nal_counters ) nal_counters [ ( * src ) & nal_mask ] ++ ;\n dst += nal_size ;\n }\n }\n else {\n av_log ( ctx , AV_LOG_ERROR , \"nal size exceeds length: %d %d\\n\" , nal_size , src_len ) ;\n return AVERROR_INVALIDDATA ;\n }\n src += nal_size + skip_between ;\n src_len -= nal_size + skip_between ;\n }\n if ( pass == 0 ) {\n if ( ( ret = av_new_packet ( pkt , total_length ) ) < 0 ) return ret ;\n dst = pkt -> data ;\n }\n }\n return 0 ;\n }"}
{"idx": 7596, "target": 0, "func": "static int selinux_parse_skb ( struct sk_buff * skb , struct common_audit_data * ad , char * * _addrp , int src , u8 * proto ) {\n char * addrp ;\n int ret ;\n switch ( ad -> u . net -> family ) {\n case PF_INET : ret = selinux_parse_skb_ipv4 ( skb , ad , proto ) ;\n if ( ret ) goto parse_error ;\n addrp = ( char * ) ( src ? & ad -> u . net -> v4info . saddr : & ad -> u . net -> v4info . daddr ) ;\n goto okay ;\n # if IS_ENABLED ( CONFIG_IPV6 ) case PF_INET6 : ret = selinux_parse_skb_ipv6 ( skb , ad , proto ) ;\n if ( ret ) goto parse_error ;\n addrp = ( char * ) ( src ? & ad -> u . net -> v6info . saddr : & ad -> u . net -> v6info . daddr ) ;\n goto okay ;\n # endif default : addrp = NULL ;\n goto okay ;\n }\n parse_error : printk ( KERN_WARNING \"SELinux: failure in selinux_parse_skb(),\" \" unable to parse packet\\n\" ) ;\n return ret ;\n okay : if ( _addrp ) * _addrp = addrp ;\n return 0 ;\n }"}
{"idx": 7597, "target": 0, "func": "proto_item * proto_tree_add_ipxnet_format_value ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , guint32 value , const char * format , ... ) {\n proto_item * pi ;\n va_list ap ;\n pi = proto_tree_add_ipxnet ( tree , hfindex , tvb , start , length , value ) ;\n if ( pi != tree ) {\n va_start ( ap , format ) ;\n proto_tree_set_representation_value ( pi , format , ap ) ;\n va_end ( ap ) ;\n }\n return pi ;\n }"}
{"idx": 7598, "target": 0, "func": "static int find_section_to_relocate ( Dwarf_Debug dbg , Dwarf_Half section_index , struct Dwarf_Section_s * * relocatablesec , int * error ) {\n MATCH_REL_SEC ( section_index , dbg -> de_debug_info , relocatablesec ) ;\n MATCH_REL_SEC ( section_index , dbg -> de_debug_abbrev , relocatablesec ) ;\n MATCH_REL_SEC ( section_index , dbg -> de_debug_line , relocatablesec ) ;\n MATCH_REL_SEC ( section_index , dbg -> de_debug_loc , relocatablesec ) ;\n MATCH_REL_SEC ( section_index , dbg -> de_debug_aranges , relocatablesec ) ;\n MATCH_REL_SEC ( section_index , dbg -> de_debug_macinfo , relocatablesec ) ;\n MATCH_REL_SEC ( section_index , dbg -> de_debug_pubnames , relocatablesec ) ;\n MATCH_REL_SEC ( section_index , dbg -> de_debug_ranges , relocatablesec ) ;\n MATCH_REL_SEC ( section_index , dbg -> de_debug_frame , relocatablesec ) ;\n MATCH_REL_SEC ( section_index , dbg -> de_debug_frame_eh_gnu , relocatablesec ) ;\n MATCH_REL_SEC ( section_index , dbg -> de_debug_pubtypes , relocatablesec ) ;\n MATCH_REL_SEC ( section_index , dbg -> de_debug_funcnames , relocatablesec ) ;\n MATCH_REL_SEC ( section_index , dbg -> de_debug_typenames , relocatablesec ) ;\n MATCH_REL_SEC ( section_index , dbg -> de_debug_varnames , relocatablesec ) ;\n MATCH_REL_SEC ( section_index , dbg -> de_debug_weaknames , relocatablesec ) ;\n MATCH_REL_SEC ( section_index , dbg -> de_debug_types , relocatablesec ) ;\n * error = DW_DLE_RELOC_SECTION_MISMATCH ;\n return DW_DLV_ERROR ;\n }"}
{"idx": 7599, "target": 1, "func": "extern int name ( int ) __THROW __exctype ( isalnum ) ;\n __exctype ( isalpha ) ;\n __exctype ( iscntrl )"}
{"idx": 7600, "target": 0, "func": "void evbuffer_setcb ( struct evbuffer * buffer , void ( * cb ) ( struct evbuffer * , size_t , size_t , void * ) , void * cbarg ) {\n buffer -> cb = cb ;\n buffer -> cbarg = cbarg ;\n }"}
{"idx": 7601, "target": 0, "func": "int keyring_insert_keyblock ( KEYRING_HANDLE hd , KBNODE kb ) {\n int rc ;\n const char * fname ;\n if ( ! hd ) fname = NULL ;\n else if ( hd -> found . kr ) {\n fname = hd -> found . kr -> fname ;\n if ( hd -> found . kr -> read_only ) return gpg_error ( GPG_ERR_EACCES ) ;\n }\n else if ( hd -> current . kr ) {\n fname = hd -> current . kr -> fname ;\n if ( hd -> current . kr -> read_only ) return gpg_error ( GPG_ERR_EACCES ) ;\n }\n else fname = hd -> resource ? hd -> resource -> fname : NULL ;\n if ( ! fname ) return GPG_ERR_GENERAL ;\n iobuf_close ( hd -> current . iobuf ) ;\n hd -> current . iobuf = NULL ;\n rc = do_copy ( 1 , fname , kb , 0 , 0 ) ;\n if ( ! rc && kr_offtbl ) {\n update_offset_hash_table_from_kb ( kr_offtbl , kb , 0 ) ;\n }\n return rc ;\n }"}
{"idx": 7602, "target": 0, "func": "static inline int get_scale ( GetBitContext * gb , int level , int value , int log2range ) {\n if ( level < 5 ) {\n value += get_bitalloc ( gb , & dca_scalefactor , level ) ;\n value = av_clip ( value , 0 , ( 1 << log2range ) - 1 ) ;\n }\n else if ( level < 8 ) {\n if ( level + 1 > log2range ) {\n skip_bits ( gb , level + 1 - log2range ) ;\n value = get_bits ( gb , log2range ) ;\n }\n else {\n value = get_bits ( gb , level + 1 ) ;\n }\n }\n return value ;\n }"}
{"idx": 7603, "target": 0, "func": "static void qemu_tcg_init_cpu_signals ( void ) {\n sigset_t set ;\n struct sigaction sigact ;\n memset ( & sigact , 0 , sizeof ( sigact ) ) ;\n sigact . sa_handler = cpu_signal ;\n sigaction ( SIG_IPI , & sigact , NULL ) ;\n sigemptyset ( & set ) ;\n sigaddset ( & set , SIG_IPI ) ;\n pthread_sigmask ( SIG_UNBLOCK , & set , NULL ) ;\n }"}
{"idx": 7604, "target": 0, "func": "static int dissect_h245_QOSClass ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_QOSClass , QOSClass_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 7605, "target": 0, "func": "static void get_options ( register int * argc , register char * * * argv ) {\n int ho_error ;\n if ( load_defaults ( \"my\" , load_default_groups , argc , argv ) ) exit ( 1 ) ;\n default_argv = * argv ;\n if ( isatty ( fileno ( stdout ) ) ) check_param . testflag |= T_WRITE_LOOP ;\n if ( ( ho_error = handle_options ( argc , argv , my_long_options , get_one_option ) ) ) exit ( ho_error ) ;\n if ( ( check_param . testflag & T_UPDATE_STATE ) && ( check_param . testflag & T_REP_ANY ) ) check_param . testflag |= T_CALC_CHECKSUM ;\n if ( * argc == 0 ) {\n usage ( ) ;\n exit ( - 1 ) ;\n }\n if ( ( check_param . testflag & T_UNPACK ) && ( check_param . testflag & ( T_QUICK | T_SORT_RECORDS ) ) ) {\n ( void ) fprintf ( stderr , \"%s: --unpack can't be used with --quick or --sort-records\\n\" , my_progname_short ) ;\n exit ( 1 ) ;\n }\n if ( ( check_param . testflag & T_READONLY ) && ( check_param . testflag & ( T_REP_ANY | T_STATISTICS | T_AUTO_INC | T_SORT_RECORDS | T_SORT_INDEX | T_FORCE_CREATE ) ) ) {\n ( void ) fprintf ( stderr , \"%s: Can't use --readonly when repairing or sorting\\n\" , my_progname_short ) ;\n exit ( 1 ) ;\n }\n if ( init_tmpdir ( & myisamchk_tmpdir , opt_tmpdir ) ) exit ( 1 ) ;\n check_param . tmpdir = & myisamchk_tmpdir ;\n check_param . key_cache_block_size = opt_key_cache_block_size ;\n if ( set_collation_name ) if ( ! ( set_collation = get_charset_by_name ( set_collation_name , MYF ( MY_WME ) ) ) ) exit ( 1 ) ;\n myisam_block_size = ( uint ) 1 << my_bit_log2 ( opt_myisam_block_size ) ;\n return ;\n }"}
{"idx": 7606, "target": 0, "func": "void vp9_pick_inter_mode ( VP9_COMP * cpi , MACROBLOCK * x , const TileInfo * const tile , int mi_row , int mi_col , int * returnrate , int64_t * returndistortion , BLOCK_SIZE bsize , PICK_MODE_CONTEXT * ctx ) {\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n MB_MODE_INFO * const mbmi = & xd -> mi [ 0 ] . src_mi -> mbmi ;\n struct macroblockd_plane * const pd = & xd -> plane [ 0 ] ;\n PREDICTION_MODE best_mode = ZEROMV ;\n MV_REFERENCE_FRAME ref_frame , best_ref_frame = LAST_FRAME ;\n TX_SIZE best_tx_size = MIN ( max_txsize_lookup [ bsize ] , tx_mode_to_biggest_tx_size [ cm -> tx_mode ] ) ;\n INTERP_FILTER best_pred_filter = EIGHTTAP ;\n int_mv frame_mv [ MB_MODE_COUNT ] [ MAX_REF_FRAMES ] ;\n struct buf_2d yv12_mb [ 4 ] [ MAX_MB_PLANE ] ;\n static const int flag_list [ 4 ] = {\n 0 , VP9_LAST_FLAG , VP9_GOLD_FLAG , VP9_ALT_FLAG }\n ;\n int64_t best_rd = INT64_MAX ;\n int64_t this_rd = INT64_MAX ;\n uint8_t skip_txfm = 0 ;\n int rate = INT_MAX ;\n int64_t dist = INT64_MAX ;\n unsigned int var_y = UINT_MAX ;\n unsigned int sse_y = UINT_MAX ;\n const int intra_cost_penalty = * vp9_dc_quant ( cm -> base_qindex , cm -> y_dc_delta_q , cm -> bit_depth ) ;\n const int64_t inter_mode_thresh = RDCOST ( x -> rdmult , x -> rddiv , intra_cost_penalty , 0 ) ;\n const int intra_mode_cost = 50 ;\n const int8_t segment_id = mbmi -> segment_id ;\n const int * const rd_threshes = cpi -> rd . threshes [ segment_id ] [ bsize ] ;\n const int * const rd_thresh_freq_fact = cpi -> rd . thresh_freq_fact [ bsize ] ;\n INTERP_FILTER filter_ref = cm -> interp_filter ;\n const int bsl = mi_width_log2 ( bsize ) ;\n const int pred_filter_search = cm -> interp_filter == SWITCHABLE ? ( ( ( mi_row + mi_col ) >> bsl ) + get_chessboard_index ( cm -> current_video_frame ) ) & 0x1 : 0 ;\n int const_motion [ MAX_REF_FRAMES ] = {\n 0 }\n ;\n const int bh = num_4x4_blocks_high_lookup [ bsize ] << 2 ;\n const int bw = num_4x4_blocks_wide_lookup [ bsize ] << 2 ;\n PRED_BUFFER tmp [ 4 ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , pred_buf , 3 * 64 * 64 ) ;\n struct buf_2d orig_dst = pd -> dst ;\n PRED_BUFFER * best_pred = NULL ;\n PRED_BUFFER * this_mode_pred = NULL ;\n if ( cpi -> sf . reuse_inter_pred_sby ) {\n int i ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n tmp [ i ] . data = & pred_buf [ bw * bh * i ] ;\n tmp [ i ] . stride = bw ;\n tmp [ i ] . in_use = 0 ;\n }\n tmp [ 3 ] . data = pd -> dst . buf ;\n tmp [ 3 ] . stride = pd -> dst . stride ;\n tmp [ 3 ] . in_use = 0 ;\n }\n x -> skip_encode = cpi -> sf . skip_encode_frame && x -> q_index < QIDX_SKIP_THRESH ;\n x -> skip = 0 ;\n * returnrate = INT_MAX ;\n * returndistortion = INT64_MAX ;\n vpx_memset ( mbmi , 0 , sizeof ( MB_MODE_INFO ) ) ;\n mbmi -> sb_type = bsize ;\n mbmi -> ref_frame [ 0 ] = NONE ;\n mbmi -> ref_frame [ 1 ] = NONE ;\n mbmi -> tx_size = MIN ( max_txsize_lookup [ bsize ] , tx_mode_to_biggest_tx_size [ cm -> tx_mode ] ) ;\n mbmi -> interp_filter = cm -> interp_filter == SWITCHABLE ? EIGHTTAP : cm -> interp_filter ;\n mbmi -> segment_id = segment_id ;\n for ( ref_frame = LAST_FRAME ;\n ref_frame <= ALTREF_FRAME ;\n ++ ref_frame ) {\n PREDICTION_MODE this_mode ;\n x -> pred_mv_sad [ ref_frame ] = INT_MAX ;\n frame_mv [ NEWMV ] [ ref_frame ] . as_int = INVALID_MV ;\n frame_mv [ ZEROMV ] [ ref_frame ] . as_int = 0 ;\n if ( xd -> up_available ) filter_ref = xd -> mi [ - xd -> mi_stride ] . src_mi -> mbmi . interp_filter ;\n else if ( xd -> left_available ) filter_ref = xd -> mi [ - 1 ] . src_mi -> mbmi . interp_filter ;\n if ( cpi -> ref_frame_flags & flag_list [ ref_frame ] ) {\n const YV12_BUFFER_CONFIG * yv12 = get_ref_frame_buffer ( cpi , ref_frame ) ;\n int_mv * const candidates = mbmi -> ref_mvs [ ref_frame ] ;\n const struct scale_factors * const sf = & cm -> frame_refs [ ref_frame - 1 ] . sf ;\n vp9_setup_pred_block ( xd , yv12_mb [ ref_frame ] , yv12 , mi_row , mi_col , sf , sf ) ;\n if ( ! cm -> error_resilient_mode ) vp9_find_mv_refs ( cm , xd , tile , xd -> mi [ 0 ] . src_mi , ref_frame , candidates , mi_row , mi_col ) ;\n else const_motion [ ref_frame ] = mv_refs_rt ( cm , xd , tile , xd -> mi [ 0 ] . src_mi , ref_frame , candidates , mi_row , mi_col ) ;\n vp9_find_best_ref_mvs ( xd , cm -> allow_high_precision_mv , candidates , & frame_mv [ NEARESTMV ] [ ref_frame ] , & frame_mv [ NEARMV ] [ ref_frame ] ) ;\n if ( ! vp9_is_scaled ( sf ) && bsize >= BLOCK_8X8 ) vp9_mv_pred ( cpi , x , yv12_mb [ ref_frame ] [ 0 ] . buf , yv12 -> y_stride , ref_frame , bsize ) ;\n }\n else {\n continue ;\n }\n xd -> plane [ 0 ] . pre [ 0 ] = yv12_mb [ ref_frame ] [ 0 ] ;\n clamp_mv2 ( & frame_mv [ NEARESTMV ] [ ref_frame ] . as_mv , xd ) ;\n clamp_mv2 ( & frame_mv [ NEARMV ] [ ref_frame ] . as_mv , xd ) ;\n mbmi -> ref_frame [ 0 ] = ref_frame ;\n for ( this_mode = NEARESTMV ;\n this_mode <= NEWMV ;\n ++ this_mode ) {\n int rate_mv = 0 ;\n int mode_rd_thresh ;\n if ( const_motion [ ref_frame ] && ( this_mode == NEARMV || this_mode == ZEROMV ) ) continue ;\n if ( ! ( cpi -> sf . inter_mode_mask [ bsize ] & ( 1 << this_mode ) ) ) continue ;\n mode_rd_thresh = rd_threshes [ mode_idx [ ref_frame - LAST_FRAME ] [ INTER_OFFSET ( this_mode ) ] ] ;\n if ( rd_less_than_thresh ( best_rd , mode_rd_thresh , rd_thresh_freq_fact [ this_mode ] ) ) continue ;\n if ( this_mode == NEWMV ) {\n if ( this_rd < ( int64_t ) ( 1 << num_pels_log2_lookup [ bsize ] ) ) continue ;\n if ( ! combined_motion_search ( cpi , x , bsize , mi_row , mi_col , & frame_mv [ NEWMV ] [ ref_frame ] , & rate_mv , best_rd ) ) continue ;\n }\n if ( this_mode != NEARESTMV && frame_mv [ this_mode ] [ ref_frame ] . as_int == frame_mv [ NEARESTMV ] [ ref_frame ] . as_int ) continue ;\n mbmi -> mode = this_mode ;\n mbmi -> mv [ 0 ] . as_int = frame_mv [ this_mode ] [ ref_frame ] . as_int ;\n if ( cpi -> sf . reuse_inter_pred_sby ) {\n if ( this_mode == NEARESTMV ) {\n this_mode_pred = & tmp [ 3 ] ;\n }\n else {\n this_mode_pred = & tmp [ get_pred_buffer ( tmp , 3 ) ] ;\n pd -> dst . buf = this_mode_pred -> data ;\n pd -> dst . stride = bw ;\n }\n }\n if ( ( this_mode == NEWMV || filter_ref == SWITCHABLE ) && pred_filter_search && ( ( mbmi -> mv [ 0 ] . as_mv . row & 0x07 ) != 0 || ( mbmi -> mv [ 0 ] . as_mv . col & 0x07 ) != 0 ) ) {\n int pf_rate [ 3 ] ;\n int64_t pf_dist [ 3 ] ;\n unsigned int pf_var [ 3 ] ;\n unsigned int pf_sse [ 3 ] ;\n TX_SIZE pf_tx_size [ 3 ] ;\n int64_t best_cost = INT64_MAX ;\n INTERP_FILTER best_filter = SWITCHABLE , filter ;\n PRED_BUFFER * current_pred = this_mode_pred ;\n for ( filter = EIGHTTAP ;\n filter <= EIGHTTAP_SHARP ;\n ++ filter ) {\n int64_t cost ;\n mbmi -> interp_filter = filter ;\n vp9_build_inter_predictors_sby ( xd , mi_row , mi_col , bsize ) ;\n model_rd_for_sb_y ( cpi , bsize , x , xd , & pf_rate [ filter ] , & pf_dist [ filter ] , & pf_var [ filter ] , & pf_sse [ filter ] ) ;\n cost = RDCOST ( x -> rdmult , x -> rddiv , vp9_get_switchable_rate ( cpi ) + pf_rate [ filter ] , pf_dist [ filter ] ) ;\n pf_tx_size [ filter ] = mbmi -> tx_size ;\n if ( cost < best_cost ) {\n best_filter = filter ;\n best_cost = cost ;\n skip_txfm = x -> skip_txfm [ 0 ] ;\n if ( cpi -> sf . reuse_inter_pred_sby ) {\n if ( this_mode_pred != current_pred ) {\n free_pred_buffer ( this_mode_pred ) ;\n this_mode_pred = current_pred ;\n }\n if ( filter < EIGHTTAP_SHARP ) {\n current_pred = & tmp [ get_pred_buffer ( tmp , 3 ) ] ;\n pd -> dst . buf = current_pred -> data ;\n pd -> dst . stride = bw ;\n }\n }\n }\n }\n if ( cpi -> sf . reuse_inter_pred_sby && this_mode_pred != current_pred ) free_pred_buffer ( current_pred ) ;\n mbmi -> interp_filter = best_filter ;\n mbmi -> tx_size = pf_tx_size [ mbmi -> interp_filter ] ;\n rate = pf_rate [ mbmi -> interp_filter ] ;\n dist = pf_dist [ mbmi -> interp_filter ] ;\n var_y = pf_var [ mbmi -> interp_filter ] ;\n sse_y = pf_sse [ mbmi -> interp_filter ] ;\n x -> skip_txfm [ 0 ] = skip_txfm ;\n }\n else {\n mbmi -> interp_filter = ( filter_ref == SWITCHABLE ) ? EIGHTTAP : filter_ref ;\n vp9_build_inter_predictors_sby ( xd , mi_row , mi_col , bsize ) ;\n model_rd_for_sb_y ( cpi , bsize , x , xd , & rate , & dist , & var_y , & sse_y ) ;\n }\n rate += rate_mv ;\n rate += cpi -> inter_mode_cost [ mbmi -> mode_context [ ref_frame ] ] [ INTER_OFFSET ( this_mode ) ] ;\n this_rd = RDCOST ( x -> rdmult , x -> rddiv , rate , dist ) ;\n if ( cpi -> allow_encode_breakout ) {\n encode_breakout_test ( cpi , x , bsize , mi_row , mi_col , ref_frame , this_mode , var_y , sse_y , yv12_mb , & rate , & dist ) ;\n if ( x -> skip ) {\n rate += rate_mv ;\n this_rd = RDCOST ( x -> rdmult , x -> rddiv , rate , dist ) ;\n }\n }\n # if CONFIG_VP9_TEMPORAL_DENOISING if ( cpi -> oxcf . noise_sensitivity > 0 ) {\n vp9_denoiser_update_frame_stats ( mbmi , sse_y , this_mode , ctx ) ;\n }\n # else ( void ) ctx ;\n # endif if ( this_rd < best_rd || x -> skip ) {\n best_rd = this_rd ;\n * returnrate = rate ;\n * returndistortion = dist ;\n best_mode = this_mode ;\n best_pred_filter = mbmi -> interp_filter ;\n best_tx_size = mbmi -> tx_size ;\n best_ref_frame = ref_frame ;\n skip_txfm = x -> skip_txfm [ 0 ] ;\n if ( cpi -> sf . reuse_inter_pred_sby ) {\n free_pred_buffer ( best_pred ) ;\n best_pred = this_mode_pred ;\n }\n }\n else {\n if ( cpi -> sf . reuse_inter_pred_sby ) free_pred_buffer ( this_mode_pred ) ;\n }\n if ( x -> skip ) break ;\n }\n if ( best_rd < INT64_MAX ) break ;\n }\n if ( best_pred != NULL && cpi -> sf . reuse_inter_pred_sby && best_pred -> data != orig_dst . buf ) {\n pd -> dst = orig_dst ;\n vp9_convolve_copy ( best_pred -> data , bw , pd -> dst . buf , pd -> dst . stride , NULL , 0 , NULL , 0 , bw , bh ) ;\n }\n mbmi -> mode = best_mode ;\n mbmi -> interp_filter = best_pred_filter ;\n mbmi -> tx_size = best_tx_size ;\n mbmi -> ref_frame [ 0 ] = best_ref_frame ;\n mbmi -> mv [ 0 ] . as_int = frame_mv [ best_mode ] [ best_ref_frame ] . as_int ;\n xd -> mi [ 0 ] . src_mi -> bmi [ 0 ] . as_mv [ 0 ] . as_int = mbmi -> mv [ 0 ] . as_int ;\n x -> skip_txfm [ 0 ] = skip_txfm ;\n if ( ! x -> skip && best_rd > inter_mode_thresh && bsize <= cpi -> sf . max_intra_bsize ) {\n PREDICTION_MODE this_mode ;\n struct estimate_block_intra_args args = {\n cpi , x , DC_PRED , 0 , 0 }\n ;\n const TX_SIZE intra_tx_size = MIN ( max_txsize_lookup [ bsize ] , tx_mode_to_biggest_tx_size [ cpi -> common . tx_mode ] ) ;\n if ( cpi -> sf . reuse_inter_pred_sby ) {\n pd -> dst . buf = tmp [ 0 ] . data ;\n pd -> dst . stride = bw ;\n }\n for ( this_mode = DC_PRED ;\n this_mode <= DC_PRED ;\n ++ this_mode ) {\n const TX_SIZE saved_tx_size = mbmi -> tx_size ;\n args . mode = this_mode ;\n args . rate = 0 ;\n args . dist = 0 ;\n mbmi -> tx_size = intra_tx_size ;\n vp9_foreach_transformed_block_in_plane ( xd , bsize , 0 , estimate_block_intra , & args ) ;\n mbmi -> tx_size = saved_tx_size ;\n rate = args . rate ;\n dist = args . dist ;\n rate += cpi -> mbmode_cost [ this_mode ] ;\n rate += intra_cost_penalty ;\n this_rd = RDCOST ( x -> rdmult , x -> rddiv , rate , dist ) ;\n if ( this_rd + intra_mode_cost < best_rd ) {\n best_rd = this_rd ;\n * returnrate = rate ;\n * returndistortion = dist ;\n mbmi -> mode = this_mode ;\n mbmi -> tx_size = intra_tx_size ;\n mbmi -> ref_frame [ 0 ] = INTRA_FRAME ;\n mbmi -> uv_mode = this_mode ;\n mbmi -> mv [ 0 ] . as_int = INVALID_MV ;\n }\n else {\n x -> skip_txfm [ 0 ] = skip_txfm ;\n }\n }\n if ( cpi -> sf . reuse_inter_pred_sby ) pd -> dst = orig_dst ;\n }\n }"}
{"idx": 7607, "target": 0, "func": "void ff_h264_direct_ref_list_init ( H264Context * const h ) {\n Picture * const ref1 = & h -> ref_list [ 1 ] [ 0 ] ;\n Picture * const cur = h -> cur_pic_ptr ;\n int list , j , field ;\n int sidx = ( h -> picture_structure & 1 ) ^ 1 ;\n int ref1sidx = ( ref1 -> reference & 1 ) ^ 1 ;\n for ( list = 0 ;\n list < 2 ;\n list ++ ) {\n cur -> ref_count [ sidx ] [ list ] = h -> ref_count [ list ] ;\n for ( j = 0 ;\n j < h -> ref_count [ list ] ;\n j ++ ) cur -> ref_poc [ sidx ] [ list ] [ j ] = 4 * h -> ref_list [ list ] [ j ] . frame_num + ( h -> ref_list [ list ] [ j ] . reference & 3 ) ;\n }\n if ( h -> picture_structure == PICT_FRAME ) {\n memcpy ( cur -> ref_count [ 1 ] , cur -> ref_count [ 0 ] , sizeof ( cur -> ref_count [ 0 ] ) ) ;\n memcpy ( cur -> ref_poc [ 1 ] , cur -> ref_poc [ 0 ] , sizeof ( cur -> ref_poc [ 0 ] ) ) ;\n }\n cur -> mbaff = FRAME_MBAFF ;\n h -> col_fieldoff = 0 ;\n if ( h -> picture_structure == PICT_FRAME ) {\n int cur_poc = h -> cur_pic_ptr -> poc ;\n int * col_poc = h -> ref_list [ 1 ] -> field_poc ;\n h -> col_parity = ( FFABS ( col_poc [ 0 ] - cur_poc ) >= FFABS ( col_poc [ 1 ] - cur_poc ) ) ;\n ref1sidx = sidx = h -> col_parity ;\n }\n else if ( ! ( h -> picture_structure & h -> ref_list [ 1 ] [ 0 ] . reference ) && ! h -> ref_list [ 1 ] [ 0 ] . mbaff ) {\n h -> col_fieldoff = 2 * h -> ref_list [ 1 ] [ 0 ] . reference - 3 ;\n }\n if ( h -> slice_type_nos != AV_PICTURE_TYPE_B || h -> direct_spatial_mv_pred ) return ;\n for ( list = 0 ;\n list < 2 ;\n list ++ ) {\n fill_colmap ( h , h -> map_col_to_list0 , list , sidx , ref1sidx , 0 ) ;\n if ( FRAME_MBAFF ) for ( field = 0 ;\n field < 2 ;\n field ++ ) fill_colmap ( h , h -> map_col_to_list0_field [ field ] , list , field , field , 1 ) ;\n }\n }"}
{"idx": 7608, "target": 0, "func": "void parseArraySimple ( proto_tree * tree , tvbuff_t * tvb , packet_info * pinfo , gint * pOffset , const char * szFieldName , const char * szTypeName , int hfIndex , fctSimpleTypeParser pParserFunction , const gint idx ) {\n proto_item * ti ;\n proto_tree * subtree = proto_tree_add_subtree_format ( tree , tvb , * pOffset , - 1 , idx , & ti , \"%s: Array of %s\" , szFieldName , szTypeName ) ;\n int i ;\n gint32 iLen ;\n iLen = tvb_get_letohl ( tvb , * pOffset ) ;\n proto_tree_add_item ( subtree , hf_opcua_ArraySize , tvb , * pOffset , 4 , ENC_LITTLE_ENDIAN ) ;\n if ( iLen > MAX_ARRAY_LEN ) {\n proto_tree_add_expert_format ( subtree , pinfo , & ei_array_length , tvb , * pOffset , 4 , \"Array length %d too large to process\" , iLen ) ;\n return ;\n }\n * pOffset += 4 ;\n for ( i = 0 ;\n i < iLen ;\n i ++ ) {\n proto_item * arrayItem = ( * pParserFunction ) ( subtree , tvb , pinfo , pOffset , hfIndex ) ;\n if ( arrayItem != NULL ) {\n proto_item_prepend_text ( arrayItem , \"[%i]: \" , i ) ;\n }\n }\n proto_item_set_end ( ti , tvb , * pOffset ) ;\n }"}
{"idx": 7609, "target": 0, "func": "static int parse_global_var ( AVFormatContext * avctx , AVStream * st , const char * name , int size ) {\n MvContext * mv = avctx -> priv_data ;\n AVIOContext * pb = avctx -> pb ;\n if ( ! strcmp ( name , \"__NUM_I_TRACKS\" ) ) {\n mv -> nb_video_tracks = var_read_int ( pb , size ) ;\n }\n else if ( ! strcmp ( name , \"__NUM_A_TRACKS\" ) ) {\n mv -> nb_audio_tracks = var_read_int ( pb , size ) ;\n }\n else if ( ! strcmp ( name , \"COMMENT\" ) || ! strcmp ( name , \"TITLE\" ) ) {\n var_read_metadata ( avctx , name , size ) ;\n }\n else if ( ! strcmp ( name , \"LOOP_MODE\" ) || ! strcmp ( name , \"NUM_LOOPS\" ) || ! strcmp ( name , \"OPTIMIZED\" ) ) {\n avio_skip ( pb , size ) ;\n }\n else return AVERROR_INVALIDDATA ;\n return 0 ;\n }"}
{"idx": 7610, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , NoDocumentWriteScript ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : FIRST_CONTENTFUL_PAINT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/page_load_metrics/document_write_no_script.html\" ) ) ;\n waiter -> Wait ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramFirstContentfulPaint , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramDocWriteBlockParseStartToFirstContentfulPaint , 0 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramDocWriteBlockCount , 0 ) ;\n }"}
{"idx": 7611, "target": 0, "func": "static void report_preparing_move_progress ( CopyMoveJob * move_job , int total , int left ) {\n CommonJob * job ;\n job = ( CommonJob * ) move_job ;\n nautilus_progress_info_take_status ( job -> progress , f ( _ ( \"Preparing to move to \u201c%B\u201d\" ) , move_job -> destination ) ) ;\n nautilus_progress_info_take_details ( job -> progress , f ( ngettext ( \"Preparing to move %'d file\" , \"Preparing to move %'d files\" , left ) , left ) ) ;\n nautilus_progress_info_pulse_progress ( job -> progress ) ;\n }"}
{"idx": 7612, "target": 0, "func": "int archive_read_support_format_cpio ( struct archive * _a ) {\n struct archive_read * a = ( struct archive_read * ) _a ;\n struct cpio * cpio ;\n int r ;\n archive_check_magic ( _a , ARCHIVE_READ_MAGIC , ARCHIVE_STATE_NEW , \"archive_read_support_format_cpio\" ) ;\n cpio = ( struct cpio * ) calloc ( 1 , sizeof ( * cpio ) ) ;\n if ( cpio == NULL ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate cpio data\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n cpio -> magic = CPIO_MAGIC ;\n r = __archive_read_register_format ( a , cpio , \"cpio\" , archive_read_format_cpio_bid , archive_read_format_cpio_options , archive_read_format_cpio_read_header , archive_read_format_cpio_read_data , archive_read_format_cpio_skip , NULL , archive_read_format_cpio_cleanup , NULL , NULL ) ;\n if ( r != ARCHIVE_OK ) free ( cpio ) ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 7613, "target": 0, "func": "static uint64_t pxa2xx_mm_read ( void * opaque , hwaddr addr , unsigned size ) {\n PXA2xxState * s = ( PXA2xxState * ) opaque ;\n switch ( addr ) {\n case MDCNFG ... SA1110 : if ( ( addr & 3 ) == 0 ) return s -> mm_regs [ addr >> 2 ] ;\n default : printf ( \"%s: Bad register \" REG_FMT \"\\n\" , __FUNCTION__ , addr ) ;\n break ;\n }\n return 0 ;\n }"}
{"idx": 7614, "target": 0, "func": "static int ipvideo_decode_block_opcode_0xC_16 ( IpvideoContext * s , AVFrame * frame ) {\n int x , y ;\n uint16_t * pixel_ptr = ( uint16_t * ) s -> pixel_ptr ;\n for ( y = 0 ;\n y < 8 ;\n y += 2 ) {\n for ( x = 0 ;\n x < 8 ;\n x += 2 ) {\n pixel_ptr [ x ] = pixel_ptr [ x + 1 ] = pixel_ptr [ x + s -> stride ] = pixel_ptr [ x + 1 + s -> stride ] = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n }\n pixel_ptr += s -> stride * 2 ;\n }\n return 0 ;\n }"}
{"idx": 7615, "target": 1, "func": "void vp9_xform_quant ( MACROBLOCK * x , int plane , int block , BLOCK_SIZE plane_bsize , TX_SIZE tx_size ) {\n MACROBLOCKD * const xd = & x -> e_mbd ;\n const struct macroblock_plane * const p = & x -> plane [ plane ] ;\n const struct macroblockd_plane * const pd = & xd -> plane [ plane ] ;\n const scan_order * const scan_order = & vp9_default_scan_orders [ tx_size ] ;\n int16_t * const coeff = BLOCK_OFFSET ( p -> coeff , block ) ;\n int16_t * const qcoeff = BLOCK_OFFSET ( p -> qcoeff , block ) ;\n int16_t * const dqcoeff = BLOCK_OFFSET ( pd -> dqcoeff , block ) ;\n uint16_t * const eob = & p -> eobs [ block ] ;\n const int diff_stride = 4 * num_4x4_blocks_wide_lookup [ plane_bsize ] ;\n int i , j ;\n const int16_t * src_diff ;\n txfrm_block_to_raster_xy ( plane_bsize , tx_size , block , & i , & j ) ;\n src_diff = & p -> src_diff [ 4 * ( j * diff_stride + i ) ] ;\n switch ( tx_size ) {\n case TX_32X32 : fdct32x32 ( x -> use_lp32x32fdct , src_diff , coeff , diff_stride ) ;\n vp9_quantize_b_32x32 ( coeff , 1024 , x -> skip_block , p -> zbin , p -> round , p -> quant , p -> quant_shift , qcoeff , dqcoeff , pd -> dequant , p -> zbin_extra , eob , scan_order -> scan , scan_order -> iscan ) ;\n break ;\n case TX_16X16 : vp9_fdct16x16 ( src_diff , coeff , diff_stride ) ;\n vp9_quantize_b ( coeff , 256 , x -> skip_block , p -> zbin , p -> round , p -> quant , p -> quant_shift , qcoeff , dqcoeff , pd -> dequant , p -> zbin_extra , eob , scan_order -> scan , scan_order -> iscan ) ;\n break ;\n case TX_8X8 : vp9_fdct8x8 ( src_diff , coeff , diff_stride ) ;\n vp9_quantize_b ( coeff , 64 , x -> skip_block , p -> zbin , p -> round , p -> quant , p -> quant_shift , qcoeff , dqcoeff , pd -> dequant , p -> zbin_extra , eob , scan_order -> scan , scan_order -> iscan ) ;\n break ;\n case TX_4X4 : x -> fwd_txm4x4 ( src_diff , coeff , diff_stride ) ;\n vp9_quantize_b ( coeff , 16 , x -> skip_block , p -> zbin , p -> round , p -> quant , p -> quant_shift , qcoeff , dqcoeff , pd -> dequant , p -> zbin_extra , eob , scan_order -> scan , scan_order -> iscan ) ;\n break ;\n default : assert ( 0 ) ;\n break ;\n }\n }"}
{"idx": 7616, "target": 0, "func": "int encode_const ( char * string , struct filter_op * fop ) {\n char * p ;\n memset ( fop , 0 , sizeof ( struct filter_op ) ) ;\n if ( ! strncmp ( string , \"0x\" , 2 ) && isxdigit ( ( int ) string [ 2 ] ) ) {\n fop -> op . test . value = strtoul ( string , NULL , 16 ) ;\n return E_SUCCESS ;\n }\n else if ( isdigit ( ( int ) string [ 0 ] ) ) {\n fop -> op . test . value = strtoul ( string , NULL , 10 ) ;\n return E_SUCCESS ;\n }\n else if ( string [ 0 ] == '\\'' && string [ strlen ( string ) - 1 ] == '\\'' ) {\n struct ip_addr ipaddr ;\n p = strchr ( string + 1 , '\\'' ) ;\n * p = '\\0' ;\n if ( ip_addr_pton ( string + 1 , & ipaddr ) == E_SUCCESS ) {\n switch ( ntohs ( ipaddr . addr_type ) ) {\n case AF_INET : fop -> op . test . value = ntohl ( ipaddr . addr32 [ 0 ] ) ;\n break ;\n case AF_INET6 : ip_addr_cpy ( ( u_char * ) & fop -> op . test . ipaddr , & ipaddr ) ;\n break ;\n default : return - E_FATAL ;\n }\n }\n else {\n return - E_FATAL ;\n }\n return E_SUCCESS ;\n }\n else if ( string [ 0 ] == '\\\"' && string [ strlen ( string ) - 1 ] == '\\\"' ) {\n p = strchr ( string + 1 , '\\\"' ) ;\n * p = '\\0' ;\n fop -> op . test . string = ( u_char * ) strdup ( string + 1 ) ;\n fop -> op . test . slen = strescape ( ( char * ) fop -> op . test . string , ( char * ) fop -> op . test . string , strlen ( fop -> op . test . string ) + 1 ) ;\n return E_SUCCESS ;\n }\n else if ( isalpha ( ( int ) string [ 0 ] ) ) {\n return get_constant ( string , & fop -> op . test . value ) ;\n }\n return - E_NOTFOUND ;\n }"}
{"idx": 7617, "target": 0, "func": "static ASN1_BOOLEAN obj_to_asn1bool ( VALUE obj ) {\n if ( NIL_P ( obj ) ) ossl_raise ( rb_eTypeError , \"Can't convert nil into Boolean\" ) ;\n return RTEST ( obj ) ? 0xff : 0x0 ;\n }"}
{"idx": 7618, "target": 0, "func": "void proto_reg_handoff_adb ( void ) {\n adb_service_handle = find_dissector_add_dependency ( \"adb_service\" , proto_adb ) ;\n dissector_add_for_decode_as ( \"tcp.port\" , adb_handle ) ;\n dissector_add_for_decode_as ( \"usb.device\" , adb_handle ) ;\n dissector_add_for_decode_as ( \"usb.product\" , adb_handle ) ;\n dissector_add_for_decode_as ( \"usb.protocol\" , adb_handle ) ;\n proto_tcp = proto_get_id_by_filter_name ( \"tcp\" ) ;\n proto_usb = proto_get_id_by_filter_name ( \"usb\" ) ;\n }"}
{"idx": 7619, "target": 0, "func": "static void dissect_q931_pl_window_size_ie ( tvbuff_t * tvb , int offset , int len , proto_tree * tree ) {\n if ( len == 0 ) return ;\n proto_tree_add_item ( tree , hf_q931_pl_window_size_forward_value , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset += 1 ;\n len -= 1 ;\n if ( len == 0 ) return ;\n proto_tree_add_item ( tree , hf_q931_pl_window_size_backward_value , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n }"}
{"idx": 7620, "target": 0, "func": "static enum fetch_step vbf_stp_condfetch ( struct worker * wrk , struct busyobj * bo ) {\n CHECK_OBJ_NOTNULL ( wrk , WORKER_MAGIC ) ;\n CHECK_OBJ_NOTNULL ( bo , BUSYOBJ_MAGIC ) ;\n AZ ( vbf_beresp2obj ( bo ) ) ;\n if ( ObjHasAttr ( bo -> wrk , bo -> stale_oc , OA_ESIDATA ) ) AZ ( ObjCopyAttr ( bo -> wrk , bo -> fetch_objcore , bo -> stale_oc , OA_ESIDATA ) ) ;\n AZ ( ObjCopyAttr ( bo -> wrk , bo -> fetch_objcore , bo -> stale_oc , OA_FLAGS ) ) ;\n AZ ( ObjCopyAttr ( bo -> wrk , bo -> fetch_objcore , bo -> stale_oc , OA_GZIPBITS ) ) ;\n if ( bo -> do_stream ) {\n ObjSetState ( wrk , bo -> fetch_objcore , BOS_PREP_STREAM ) ;\n HSH_Unbusy ( wrk , bo -> fetch_objcore ) ;\n ObjSetState ( wrk , bo -> fetch_objcore , BOS_STREAM ) ;\n }\n if ( ObjIterate ( wrk , bo -> stale_oc , bo , vbf_objiterator , 0 ) ) ( void ) VFP_Error ( bo -> vfc , \"Template object failed\" ) ;\n if ( bo -> stale_oc -> flags & OC_F_FAILED ) ( void ) VFP_Error ( bo -> vfc , \"Template object failed\" ) ;\n if ( bo -> vfc -> failed ) {\n VDI_Finish ( bo -> wrk , bo ) ;\n wrk -> stats -> fetch_failed ++ ;\n return ( F_STP_FAIL ) ;\n }\n return ( F_STP_FETCHEND ) ;\n }"}
{"idx": 7621, "target": 0, "func": "rfbClientPtr rfbNewUDPClient ( rfbScreenInfoPtr rfbScreen ) {\n return ( ( rfbScreen -> udpClient = rfbNewTCPOrUDPClient ( rfbScreen , rfbScreen -> udpSock , TRUE ) ) ) ;\n }"}
{"idx": 7622, "target": 0, "func": "static void http_chunked_trickle_cb ( int fd , short events , void * arg ) {\n struct evbuffer * evb = evbuffer_new ( ) ;\n struct chunk_req_state * state = arg ;\n struct timeval when = {\n 0 , 0 }\n ;\n evbuffer_add_printf ( evb , \"%s\" , CHUNKS [ state -> i ] ) ;\n evhttp_send_reply_chunk ( state -> req , evb ) ;\n evbuffer_free ( evb ) ;\n if ( ++ state -> i < sizeof ( CHUNKS ) / sizeof ( CHUNKS [ 0 ] ) ) {\n event_once ( - 1 , EV_TIMEOUT , http_chunked_trickle_cb , state , & when ) ;\n }\n else {\n evhttp_send_reply_end ( state -> req ) ;\n free ( state ) ;\n }\n }"}
{"idx": 7623, "target": 0, "func": "int reg_replace ( char * * buf_p , int * buf_len_p , char * pattern , char * replace , char * string , int icase ) {\n my_regex_t r ;\n my_regmatch_t * subs ;\n char * replace_end ;\n char * buf = * buf_p ;\n int len ;\n int buf_len , need_buf_len ;\n int cflags = REG_EXTENDED ;\n int err_code ;\n char * res_p , * str_p , * str_end ;\n buf_len = * buf_len_p ;\n len = strlen ( string ) ;\n str_end = string + len ;\n need_buf_len = len * 2 + 1 ;\n res_p = buf ;\n SECURE_REG_BUF if ( icase ) cflags |= REG_ICASE ;\n if ( ( err_code = my_regcomp ( & r , pattern , cflags , & my_charset_latin1 ) ) ) {\n check_regerr ( & r , err_code ) ;\n return 1 ;\n }\n subs = ( my_regmatch_t * ) my_malloc ( sizeof ( my_regmatch_t ) * ( r . re_nsub + 1 ) , MYF ( MY_WME + MY_FAE ) ) ;\n * res_p = 0 ;\n str_p = string ;\n replace_end = replace + strlen ( replace ) ;\n while ( ! err_code ) {\n err_code = my_regexec ( & r , str_p , r . re_nsub + 1 , subs , ( str_p == string ) ? REG_NOTBOL : 0 ) ;\n if ( err_code && err_code != REG_NOMATCH ) {\n check_regerr ( & r , err_code ) ;\n my_regfree ( & r ) ;\n return 1 ;\n }\n if ( ! err_code ) {\n char * expr_p = replace ;\n int c ;\n need_buf_len = ( res_p - buf ) + ( int ) subs [ 0 ] . rm_so ;\n while ( expr_p < replace_end ) {\n int back_ref_num = - 1 ;\n c = * expr_p ;\n if ( c == '\\\\' && expr_p + 1 < replace_end ) {\n back_ref_num = ( int ) ( expr_p [ 1 ] - '0' ) ;\n }\n if ( back_ref_num >= 0 && back_ref_num <= ( int ) r . re_nsub ) {\n regoff_t start_off , end_off ;\n if ( ( start_off = subs [ back_ref_num ] . rm_so ) > - 1 && ( end_off = subs [ back_ref_num ] . rm_eo ) > - 1 ) {\n need_buf_len += ( int ) ( end_off - start_off ) ;\n }\n expr_p += 2 ;\n }\n else {\n expr_p ++ ;\n need_buf_len ++ ;\n }\n }\n need_buf_len ++ ;\n SECURE_REG_BUF if ( subs [ 0 ] . rm_so ) {\n memcpy ( res_p , str_p , ( size_t ) subs [ 0 ] . rm_so ) ;\n res_p += subs [ 0 ] . rm_so ;\n }\n expr_p = replace ;\n while ( expr_p < replace_end ) {\n int back_ref_num = - 1 ;\n c = * expr_p ;\n if ( c == '\\\\' && expr_p + 1 < replace_end ) {\n back_ref_num = expr_p [ 1 ] - '0' ;\n }\n if ( back_ref_num >= 0 && back_ref_num <= ( int ) r . re_nsub ) {\n regoff_t start_off , end_off ;\n if ( ( start_off = subs [ back_ref_num ] . rm_so ) > - 1 && ( end_off = subs [ back_ref_num ] . rm_eo ) > - 1 ) {\n int block_len = ( int ) ( end_off - start_off ) ;\n memcpy ( res_p , str_p + start_off , block_len ) ;\n res_p += block_len ;\n }\n expr_p += 2 ;\n }\n else {\n * res_p ++ = * expr_p ++ ;\n }\n }\n if ( subs [ 0 ] . rm_so == subs [ 0 ] . rm_eo ) {\n if ( str_p + subs [ 0 ] . rm_so >= str_end ) break ;\n str_p += subs [ 0 ] . rm_eo ;\n * res_p ++ = * str_p ++ ;\n }\n else {\n str_p += subs [ 0 ] . rm_eo ;\n }\n }\n else {\n int left_in_str = str_end - str_p ;\n need_buf_len = ( res_p - buf ) + left_in_str ;\n SECURE_REG_BUF memcpy ( res_p , str_p , left_in_str ) ;\n res_p += left_in_str ;\n str_p = str_end ;\n }\n }\n my_free ( subs ) ;\n my_regfree ( & r ) ;\n * res_p = 0 ;\n * buf_p = buf ;\n * buf_len_p = buf_len ;\n return 0 ;\n }"}
{"idx": 7624, "target": 0, "func": "clump_t * clump_splay_walk_bwd ( clump_splay_walker * sw ) {\n clump_t * cp = sw -> cp ;\n int from = sw -> from ;\n if ( cp == NULL ) return NULL ;\n while ( 1 ) {\n if ( from == SPLAY_FROM_ABOVE ) {\n if ( cp -> right ) {\n cp = cp -> right ;\n from = SPLAY_FROM_ABOVE ;\n continue ;\n }\n from = SPLAY_FROM_RIGHT ;\n if ( cp == sw -> end ) cp = NULL ;\n break ;\n }\n if ( from == SPLAY_FROM_RIGHT ) {\n if ( cp -> left ) {\n cp = cp -> left ;\n from = SPLAY_FROM_ABOVE ;\n continue ;\n }\n from = SPLAY_FROM_LEFT ;\n }\n if ( from == SPLAY_FROM_LEFT ) {\n clump_t * old = cp ;\n cp = cp -> parent ;\n from = ( cp == NULL || cp -> left != old ? SPLAY_FROM_RIGHT : SPLAY_FROM_LEFT ) ;\n if ( from == SPLAY_FROM_RIGHT ) {\n if ( cp == sw -> end ) cp = NULL ;\n break ;\n }\n }\n }\n sw -> cp = cp ;\n sw -> from = from ;\n return cp ;\n }"}
{"idx": 7625, "target": 0, "func": "static int xsltCheckWritePath ( xsltSecurityPrefsPtr sec , xsltTransformContextPtr ctxt , const char * path ) {\n int ret ;\n xsltSecurityCheck check ;\n char * directory ;\n check = xsltGetSecurityPrefs ( sec , XSLT_SECPREF_WRITE_FILE ) ;\n if ( check != NULL ) {\n ret = check ( sec , ctxt , path ) ;\n if ( ret == 0 ) {\n xsltTransformError ( ctxt , NULL , NULL , \"File write for %s refused\\n\" , path ) ;\n return ( 0 ) ;\n }\n }\n directory = xmlParserGetDirectory ( path ) ;\n if ( directory != NULL ) {\n ret = xsltCheckFilename ( directory ) ;\n if ( ret == 0 ) {\n check = xsltGetSecurityPrefs ( sec , XSLT_SECPREF_CREATE_DIRECTORY ) ;\n if ( check != NULL ) {\n ret = check ( sec , ctxt , directory ) ;\n if ( ret == 0 ) {\n xsltTransformError ( ctxt , NULL , NULL , \"Directory creation for %s refused\\n\" , path ) ;\n xmlFree ( directory ) ;\n return ( 0 ) ;\n }\n }\n ret = xsltCheckWritePath ( sec , ctxt , directory ) ;\n if ( ret == 1 ) ret = mkdir ( directory , 0755 ) ;\n }\n xmlFree ( directory ) ;\n if ( ret < 0 ) return ( ret ) ;\n }\n return ( 1 ) ;\n }"}
{"idx": 7626, "target": 0, "func": "static int _fix_java ( const char * in , char * out ) {\n int i , j ;\n for ( i = 0 , j = 7 ;\n i < j ;\n i ++ , j -- ) {\n out [ i ] = in [ j ] ;\n out [ j ] = in [ i ] ;\n }\n for ( i = 8 , j = 15 ;\n i < j ;\n i ++ , j -- ) {\n out [ i ] = in [ j ] ;\n out [ j ] = in [ i ] ;\n }\n return 0 ;\n }"}
{"idx": 7627, "target": 0, "func": "static iax_call_data * iax_lookup_call ( packet_info * pinfo , guint32 scallno , guint32 dcallno , gboolean * reversed_p ) {\n gboolean reversed = FALSE ;\n iax_call_data * iax_call = NULL ;\n guint src_circuit_id ;\n # ifdef DEBUG_HASHING gchar * srcstr , * dststr ;\n # endif # ifdef DEBUG_HASHING srcstr = address_to_str ( NULL , & pinfo -> src ) ;\n dststr = address_to_str ( NULL , & pinfo -> dst ) ;\n g_debug ( \"++ iax_lookup_circuit_details: Looking up circuit for frame %u, \" \"from {\n%s:%u:%u}\n to {\n%s:%u:%u}\n\" , pinfo -> fd -> num , srcstr , pinfo -> srcport , scallno , dststr , pinfo -> destport , dcallno ) ;\n wmem_free ( NULL , srcstr ) ;\n wmem_free ( NULL , dststr ) ;\n # endif src_circuit_id = iax_circuit_lookup ( & pinfo -> src , pinfo -> ptype , pinfo -> srcport , scallno ) ;\n if ( dcallno != 0 ) {\n guint dst_circuit_id ;\n # ifdef DEBUG_HASHING g_debug ( \"++ dcallno non-zero, looking up destination circuit\" ) ;\n # endif dst_circuit_id = iax_circuit_lookup ( & pinfo -> dst , pinfo -> ptype , pinfo -> destport , dcallno ) ;\n iax_call = iax_lookup_call_from_dest ( pinfo , NULL , src_circuit_id , dst_circuit_id , pinfo -> fd -> num , & reversed ) ;\n }\n else {\n circuit_t * src_circuit ;\n src_circuit = find_circuit ( CT_IAX2 , src_circuit_id , pinfo -> fd -> num ) ;\n if ( src_circuit ) {\n iax_call = ( iax_call_data * ) circuit_get_proto_data ( src_circuit , proto_iax2 ) ;\n DISSECTOR_ASSERT ( iax_call ) ;\n if ( is_forward_circuit ( src_circuit_id , iax_call ) ) reversed = FALSE ;\n else if ( is_reverse_circuit ( src_circuit_id , iax_call ) ) reversed = TRUE ;\n else {\n DISSECTOR_ASSERT_NOT_REACHED ( ) ;\n }\n }\n }\n if ( reversed_p ) * reversed_p = reversed ;\n # ifdef DEBUG_HASHING if ( iax_call ) {\n g_debug ( \"++ Found call for packet: id %u, reversed=%c\" , iax_call -> forward_circuit_ids [ 0 ] , reversed ? '1' : '0' ) ;\n }\n else {\n g_debug ( \"++ Call not found. Must have missed the NEW packet?\" ) ;\n }\n # endif return iax_call ;\n }"}
{"idx": 7628, "target": 0, "func": "static int vvalue_tvb_blob ( tvbuff_t * tvb , int offset , void * val ) {\n struct data_blob * blob = ( struct data_blob * ) val ;\n guint32 len = tvb_get_letohl ( tvb , offset ) ;\n blob -> size = len ;\n blob -> data = ( guint8 * ) tvb_memdup ( wmem_packet_scope ( ) , tvb , offset + 4 , len ) ;\n return 4 + len ;\n }"}
{"idx": 7629, "target": 0, "func": "static inline size_t size_code_gen_buffer ( size_t tb_size ) {\n if ( tb_size == 0 ) {\n # ifdef USE_STATIC_CODE_GEN_BUFFER tb_size = DEFAULT_CODE_GEN_BUFFER_SIZE ;\n # else tb_size = ( unsigned long ) ( ram_size / 4 ) ;\n # endif }\n if ( tb_size < MIN_CODE_GEN_BUFFER_SIZE ) {\n tb_size = MIN_CODE_GEN_BUFFER_SIZE ;\n }\n if ( tb_size > MAX_CODE_GEN_BUFFER_SIZE ) {\n tb_size = MAX_CODE_GEN_BUFFER_SIZE ;\n }\n tcg_ctx . code_gen_buffer_size = tb_size ;\n return tb_size ;\n }"}
{"idx": 7630, "target": 0, "func": "static int gx_ttfReader__LoadGlyph ( ttfReader * self , int glyph_index , const byte * * p , int * size ) {\n gx_ttfReader * r = ( gx_ttfReader * ) self ;\n gs_font_type42 * pfont = r -> pfont ;\n int code ;\n if ( r -> extra_glyph_index != - 1 ) return 0 ;\n r -> glyph_data . memory = pfont -> memory ;\n code = pfont -> data . get_outline ( pfont , ( uint ) glyph_index , & r -> glyph_data ) ;\n r -> extra_glyph_index = glyph_index ;\n r -> pos = 0 ;\n if ( code < 0 ) r -> error = code ;\n else if ( code > 0 ) {\n r -> error = gs_note_error ( gs_error_unregistered ) ;\n }\n else {\n * p = r -> glyph_data . bits . data ;\n * size = r -> glyph_data . bits . size ;\n }\n return 2 ;\n }"}
{"idx": 7631, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( SiteDetailsBrowserTest , ExtensionWithTwoWebIframes ) {\n scoped_refptr < TestMemoryDetails > details = new TestMemoryDetails ( ) ;\n details -> StartFetchAndWait ( ) ;\n const Extension * extension = CreateExtension ( \"Test Extension\" , false ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , extension -> GetResourceURL ( \"/two_http_iframes.html\" ) ) ;\n details = new TestMemoryDetails ( ) ;\n details -> StartFetchAndWait ( ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.CurrentRendererProcessCount\" ) , HasOneSample ( GetRenderProcessCount ( ) ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateNothingProcessCountEstimate\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountEstimate\" ) , HasOneSample ( 2 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountLowerBound\" ) , HasOneSample ( 2 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountNoLimit\" ) , HasOneSample ( 2 ) ) ;\n EXPECT_THAT ( GetRenderProcessCount ( ) , DependingOnPolicy ( 1 , 3 , 3 ) ) ;\n EXPECT_THAT ( details -> GetOutOfProcessIframeCount ( ) , DependingOnPolicy ( 0 , 2 , 2 ) ) ;\n }"}
{"idx": 7632, "target": 0, "func": "static int mace_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n int16_t * * samples ;\n MACEContext * ctx = avctx -> priv_data ;\n int i , j , k , l , ret ;\n int is_mace3 = ( avctx -> codec_id == AV_CODEC_ID_MACE3 ) ;\n frame -> nb_samples = 3 * ( buf_size << ( 1 - is_mace3 ) ) / avctx -> channels ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n samples = ( int16_t * * ) frame -> extended_data ;\n for ( i = 0 ;\n i < avctx -> channels ;\n i ++ ) {\n int16_t * output = samples [ i ] ;\n for ( j = 0 ;\n j < buf_size / ( avctx -> channels << is_mace3 ) ;\n j ++ ) for ( k = 0 ;\n k < ( 1 << is_mace3 ) ;\n k ++ ) {\n uint8_t pkt = buf [ ( i << is_mace3 ) + ( j * avctx -> channels << is_mace3 ) + k ] ;\n uint8_t val [ 2 ] [ 3 ] = {\n {\n pkt >> 5 , ( pkt >> 3 ) & 3 , pkt & 7 }\n , {\n pkt & 7 , ( pkt >> 3 ) & 3 , pkt >> 5 }\n }\n ;\n for ( l = 0 ;\n l < 3 ;\n l ++ ) {\n if ( is_mace3 ) chomp3 ( & ctx -> chd [ i ] , output , val [ 1 ] [ l ] , l ) ;\n else chomp6 ( & ctx -> chd [ i ] , output , val [ 0 ] [ l ] , l ) ;\n output += 1 << ( 1 - is_mace3 ) ;\n }\n }\n }\n * got_frame_ptr = 1 ;\n return buf_size ;\n }"}
{"idx": 7633, "target": 0, "func": "extern int name ( int ) __THROW __exctype ( isalnum ) ;\n __exctype ( isalpha ) ;\n __exctype ( iscntrl ) ;\n __exctype ( isdigit ) ;\n __exctype ( islower )"}
{"idx": 7634, "target": 0, "func": "extern int as_mysql_suspend ( mysql_conn_t * mysql_conn , uint64_t old_db_inx , struct job_record * job_ptr ) {\n char * query = NULL ;\n int rc = SLURM_SUCCESS ;\n time_t submit_time ;\n uint64_t job_db_inx ;\n if ( check_connection ( mysql_conn ) != SLURM_SUCCESS ) return ESLURM_DB_CONNECTION ;\n if ( job_ptr -> resize_time ) submit_time = job_ptr -> resize_time ;\n else submit_time = job_ptr -> details -> submit_time ;\n if ( ! job_ptr -> db_index ) {\n if ( ! ( job_ptr -> db_index = _get_db_index ( mysql_conn , submit_time , job_ptr -> job_id , job_ptr -> assoc_id ) ) ) {\n if ( as_mysql_job_start ( mysql_conn , job_ptr ) == SLURM_ERROR ) {\n error ( \"couldn't suspend job %u\" , job_ptr -> job_id ) ;\n return SLURM_SUCCESS ;\n }\n }\n }\n if ( IS_JOB_RESIZING ( job_ptr ) ) {\n if ( ! old_db_inx ) {\n error ( \"No old db inx given for job %u cluster %s, \" \"can't update suspend table.\" , job_ptr -> job_id , mysql_conn -> cluster_name ) ;\n return SLURM_ERROR ;\n }\n job_db_inx = old_db_inx ;\n xstrfmtcat ( query , \"update \\\"%s_%s\\\" set time_end=%d where \" \"job_db_inx=%\" PRIu64 \" && time_end=0;\n\" , mysql_conn -> cluster_name , suspend_table , ( int ) job_ptr -> suspend_time , job_db_inx ) ;\n }\n else job_db_inx = job_ptr -> db_index ;\n xstrfmtcat ( query , \"update \\\"%s_%s\\\" set time_suspended=%d-time_suspended, \" \"state=%d where job_db_inx=%\" PRIu64 \";\n\" , mysql_conn -> cluster_name , job_table , ( int ) job_ptr -> suspend_time , job_ptr -> job_state & JOB_STATE_BASE , job_db_inx ) ;\n if ( IS_JOB_SUSPENDED ( job_ptr ) ) xstrfmtcat ( query , \"insert into \\\"%s_%s\\\" (job_db_inx, id_assoc, \" \"time_start, time_end) \" \"values (%\" PRIu64 \", %u, %d, 0);\n\" , mysql_conn -> cluster_name , suspend_table , job_ptr -> db_index , job_ptr -> assoc_id , ( int ) job_ptr -> suspend_time ) ;\n else xstrfmtcat ( query , \"update \\\"%s_%s\\\" set time_end=%d where \" \"job_db_inx=%\" PRIu64 \" && time_end=0;\n\" , mysql_conn -> cluster_name , suspend_table , ( int ) job_ptr -> suspend_time , job_ptr -> db_index ) ;\n if ( debug_flags & DEBUG_FLAG_DB_JOB ) DB_DEBUG ( mysql_conn -> conn , \"query\\n%s\" , query ) ;\n rc = mysql_db_query ( mysql_conn , query ) ;\n xfree ( query ) ;\n if ( rc != SLURM_ERROR ) {\n xstrfmtcat ( query , \"update \\\"%s_%s\\\" set \" \"time_suspended=%u-time_suspended, \" \"state=%d where job_db_inx=%\" PRIu64 \" and time_end=0\" , mysql_conn -> cluster_name , step_table , ( int ) job_ptr -> suspend_time , job_ptr -> job_state , job_ptr -> db_index ) ;\n rc = mysql_db_query ( mysql_conn , query ) ;\n xfree ( query ) ;\n }\n return rc ;\n }"}
{"idx": 7635, "target": 0, "func": "void evhttp_send_reply_chunk ( struct evhttp_request * req , struct evbuffer * databuf ) {\n struct evhttp_connection * evcon = req -> evcon ;\n if ( evcon == NULL ) return ;\n if ( req -> chunked ) {\n evbuffer_add_printf ( evcon -> output_buffer , \"%x\\r\\n\" , ( unsigned ) EVBUFFER_LENGTH ( databuf ) ) ;\n }\n evbuffer_add_buffer ( evcon -> output_buffer , databuf ) ;\n if ( req -> chunked ) {\n evbuffer_add ( evcon -> output_buffer , \"\\r\\n\" , 2 ) ;\n }\n evhttp_write_buffer ( evcon , NULL , NULL ) ;\n }"}
{"idx": 7636, "target": 1, "func": "static void predict_and_reconstruct_intra_block ( int plane , int block , BLOCK_SIZE plane_bsize , TX_SIZE tx_size , void * arg ) {\n struct intra_args * const args = ( struct intra_args * ) arg ;\n VP9_COMMON * const cm = args -> cm ;\n MACROBLOCKD * const xd = args -> xd ;\n struct macroblockd_plane * const pd = & xd -> plane [ plane ] ;\n MODE_INFO * const mi = xd -> mi [ 0 ] ;\n const PREDICTION_MODE mode = ( plane == 0 ) ? get_y_mode ( mi , block ) : mi -> mbmi . uv_mode ;\n int x , y ;\n uint8_t * dst ;\n txfrm_block_to_raster_xy ( plane_bsize , tx_size , block , & x , & y ) ;\n dst = & pd -> dst . buf [ 4 * y * pd -> dst . stride + 4 * x ] ;\n vp9_predict_intra_block ( xd , block >> ( tx_size << 1 ) , b_width_log2 ( plane_bsize ) , tx_size , mode , dst , pd -> dst . stride , dst , pd -> dst . stride , x , y , plane ) ;\n if ( ! mi -> mbmi . skip ) {\n const int eob = vp9_decode_block_tokens ( cm , xd , plane , block , plane_bsize , x , y , tx_size , args -> r ) ;\n inverse_transform_block ( xd , plane , block , tx_size , dst , pd -> dst . stride , eob ) ;\n }\n }"}
{"idx": 7637, "target": 0, "func": "static int dissect_h245_T_object ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_object_identifier_str ( tvb , offset , actx , tree , hf_index , & nsiOID ) ;\n return offset ;\n }"}
{"idx": 7638, "target": 0, "func": "static void icc_conv_color ( fz_context * ctx , fz_color_converter * cc , float * dstv , const float * srcv ) {\n const fz_colorspace * dsts = cc -> ds ;\n int src_n = cc -> n ;\n int dst_n = dsts -> n ;\n fz_icclink * link = ( fz_icclink * ) cc -> link ;\n int i ;\n unsigned short dstv_s [ FZ_MAX_COLORS ] ;\n unsigned short srcv_s [ FZ_MAX_COLORS ] ;\n if ( link == NULL ) {\n dstv [ 0 ] = 0 ;\n dstv [ 1 ] = 0 ;\n dstv [ 2 ] = 0 ;\n dstv [ 3 ] = 1 - srcv [ 0 ] ;\n }\n else if ( link -> is_identity ) {\n for ( i = 0 ;\n i < src_n ;\n i ++ ) dstv [ i ] = srcv [ i ] ;\n }\n else {\n for ( i = 0 ;\n i < src_n ;\n i ++ ) srcv_s [ i ] = srcv [ i ] * 65535 ;\n fz_cmm_transform_color ( ctx , link , dstv_s , srcv_s ) ;\n for ( i = 0 ;\n i < dst_n ;\n i ++ ) dstv [ i ] = fz_clamp ( ( float ) dstv_s [ i ] / 65535.0f , 0 , 1 ) ;\n }\n }"}
{"idx": 7639, "target": 0, "func": "static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 7640, "target": 0, "func": "static unsigned int xhci_get_slot ( XHCIState * xhci , XHCIEvent * event , XHCITRB * trb ) {\n unsigned int slotid ;\n slotid = ( trb -> control >> TRB_CR_SLOTID_SHIFT ) & TRB_CR_SLOTID_MASK ;\n if ( slotid < 1 || slotid > xhci -> numslots ) {\n DPRINTF ( \"xhci: bad slot id %d\\n\" , slotid ) ;\n event -> ccode = CC_TRB_ERROR ;\n return 0 ;\n }\n else if ( ! xhci -> slots [ slotid - 1 ] . enabled ) {\n DPRINTF ( \"xhci: slot id %d not enabled\\n\" , slotid ) ;\n event -> ccode = CC_SLOT_NOT_ENABLED_ERROR ;\n return 0 ;\n }\n return slotid ;\n }"}
{"idx": 7641, "target": 0, "func": "int lcc_network_buffer_set_security_level ( lcc_network_buffer_t * nb , lcc_security_level_t level , const char * username , const char * password ) {\n char * username_copy ;\n char * password_copy ;\n if ( level == NONE ) {\n free ( nb -> username ) ;\n free ( nb -> password ) ;\n nb -> username = NULL ;\n nb -> password = NULL ;\n nb -> seclevel = NONE ;\n lcc_network_buffer_initialize ( nb ) ;\n return ( 0 ) ;\n }\n if ( ! have_gcrypt ( ) ) return ( ENOTSUP ) ;\n username_copy = strdup ( username ) ;\n password_copy = strdup ( password ) ;\n if ( ( username_copy == NULL ) || ( password_copy == NULL ) ) {\n free ( username_copy ) ;\n free ( password_copy ) ;\n return ( ENOMEM ) ;\n }\n free ( nb -> username ) ;\n free ( nb -> password ) ;\n nb -> username = username_copy ;\n nb -> password = password_copy ;\n nb -> seclevel = level ;\n lcc_network_buffer_initialize ( nb ) ;\n return ( 0 ) ;\n }"}
{"idx": 7642, "target": 0, "func": "static void stroke_route ( private_stroke_socket_t * this , stroke_msg_t * msg , FILE * out ) {\n pop_string ( msg , & msg -> route . name ) ;\n DBG1 ( DBG_CFG , \"received stroke: route '%s'\" , msg -> route . name ) ;\n this -> control -> route ( this -> control , msg , out ) ;\n }"}
{"idx": 7643, "target": 0, "func": "int event_base_loop ( struct event_base * base , int flags ) {\n const struct eventop * evsel = base -> evsel ;\n void * evbase = base -> evbase ;\n struct timeval tv ;\n struct timeval * tv_p ;\n int res , done ;\n base -> tv_cache . tv_sec = 0 ;\n if ( base -> sig . ev_signal_added ) evsignal_base = base ;\n done = 0 ;\n while ( ! done ) {\n if ( base -> event_gotterm ) {\n base -> event_gotterm = 0 ;\n break ;\n }\n if ( base -> event_break ) {\n base -> event_break = 0 ;\n break ;\n }\n while ( event_gotsig ) {\n event_gotsig = 0 ;\n if ( event_sigcb ) {\n res = ( * event_sigcb ) ( ) ;\n if ( res == - 1 ) {\n errno = EINTR ;\n return ( - 1 ) ;\n }\n }\n }\n timeout_correct ( base , & tv ) ;\n tv_p = & tv ;\n if ( ! base -> event_count_active && ! ( flags & EVLOOP_NONBLOCK ) ) {\n timeout_next ( base , & tv_p ) ;\n }\n else {\n evutil_timerclear ( & tv ) ;\n }\n if ( ! event_haveevents ( base ) ) {\n event_debug ( ( \"%s: no events registered.\" , __func__ ) ) ;\n return ( 1 ) ;\n }\n gettime ( base , & base -> event_tv ) ;\n base -> tv_cache . tv_sec = 0 ;\n res = evsel -> dispatch ( base , evbase , tv_p ) ;\n if ( res == - 1 ) return ( - 1 ) ;\n gettime ( base , & base -> tv_cache ) ;\n timeout_process ( base ) ;\n if ( base -> event_count_active ) {\n event_process_active ( base ) ;\n if ( ! base -> event_count_active && ( flags & EVLOOP_ONCE ) ) done = 1 ;\n }\n else if ( flags & EVLOOP_NONBLOCK ) done = 1 ;\n }\n base -> tv_cache . tv_sec = 0 ;\n event_debug ( ( \"%s: asked to terminate loop.\" , __func__ ) ) ;\n return ( 0 ) ;\n }"}
{"idx": 7644, "target": 0, "func": "static char * formboundary ( struct SessionHandle * data ) {\n return aprintf ( \"------------------------%08x%08x\" , Curl_rand ( data ) , Curl_rand ( data ) ) ;\n }"}
{"idx": 7645, "target": 0, "func": "vpx_codec_err_t vpx_svc_encode ( SvcContext * svc_ctx , vpx_codec_ctx_t * codec_ctx , struct vpx_image * rawimg , vpx_codec_pts_t pts , int64_t duration , int deadline ) {\n vpx_codec_err_t res ;\n vpx_codec_iter_t iter ;\n const vpx_codec_cx_pkt_t * cx_pkt ;\n SvcInternal * const si = get_svc_internal ( svc_ctx ) ;\n if ( svc_ctx == NULL || codec_ctx == NULL || si == NULL ) {\n return VPX_CODEC_INVALID_PARAM ;\n }\n svc_log_reset ( svc_ctx ) ;\n res = vpx_codec_encode ( codec_ctx , rawimg , pts , ( uint32_t ) duration , 0 , deadline ) ;\n if ( res != VPX_CODEC_OK ) {\n return res ;\n }\n iter = NULL ;\n while ( ( cx_pkt = vpx_codec_get_cx_data ( codec_ctx , & iter ) ) ) {\n switch ( cx_pkt -> kind ) {\n # if CONFIG_SPATIAL_SVC case VPX_CODEC_SPATIAL_SVC_LAYER_PSNR : {\n int i ;\n for ( i = 0 ;\n i < svc_ctx -> spatial_layers ;\n ++ i ) {\n int j ;\n svc_log ( svc_ctx , SVC_LOG_DEBUG , \"SVC frame: %d, layer: %d, PSNR(Total/Y/U/V): \" \"%2.3f %2.3f %2.3f %2.3f \\n\" , si -> psnr_pkt_received , i , cx_pkt -> data . layer_psnr [ i ] . psnr [ 0 ] , cx_pkt -> data . layer_psnr [ i ] . psnr [ 1 ] , cx_pkt -> data . layer_psnr [ i ] . psnr [ 2 ] , cx_pkt -> data . layer_psnr [ i ] . psnr [ 3 ] ) ;\n svc_log ( svc_ctx , SVC_LOG_DEBUG , \"SVC frame: %d, layer: %d, SSE(Total/Y/U/V): \" \"%2.3f %2.3f %2.3f %2.3f \\n\" , si -> psnr_pkt_received , i , cx_pkt -> data . layer_psnr [ i ] . sse [ 0 ] , cx_pkt -> data . layer_psnr [ i ] . sse [ 1 ] , cx_pkt -> data . layer_psnr [ i ] . sse [ 2 ] , cx_pkt -> data . layer_psnr [ i ] . sse [ 3 ] ) ;\n for ( j = 0 ;\n j < COMPONENTS ;\n ++ j ) {\n si -> psnr_sum [ i ] [ j ] += cx_pkt -> data . layer_psnr [ i ] . psnr [ j ] ;\n si -> sse_sum [ i ] [ j ] += cx_pkt -> data . layer_psnr [ i ] . sse [ j ] ;\n }\n }\n ++ si -> psnr_pkt_received ;\n break ;\n }\n case VPX_CODEC_SPATIAL_SVC_LAYER_SIZES : {\n int i ;\n for ( i = 0 ;\n i < svc_ctx -> spatial_layers ;\n ++ i ) si -> bytes_sum [ i ] += cx_pkt -> data . layer_sizes [ i ] ;\n break ;\n }\n # endif default : {\n break ;\n }\n }\n }\n return VPX_CODEC_OK ;\n }"}
{"idx": 7646, "target": 0, "func": "int64 fe_recvint64 ( char * buf ) {\n int64 result ;\n uint32 h32 ;\n uint32 l32 ;\n memcpy ( & h32 , buf , 4 ) ;\n memcpy ( & l32 , buf + 4 , 4 ) ;\n h32 = ntohl ( h32 ) ;\n l32 = ntohl ( l32 ) ;\n result = h32 ;\n result <<= 32 ;\n result |= l32 ;\n return result ;\n }"}
{"idx": 7647, "target": 1, "func": "static void parse_content_type ( struct message_search_context * ctx , struct message_header_line * hdr ) {\n struct rfc822_parser_context parser ;\n string_t * content_type ;\n rfc822_parser_init ( & parser , hdr -> full_value , hdr -> full_value_len , NULL ) ;\n rfc822_skip_lwsp ( & parser ) ;\n content_type = t_str_new ( 64 ) ;\n ( void ) rfc822_parse_content_type ( & parser , content_type ) ;\n ctx -> content_type_text = strncasecmp ( str_c ( content_type ) , \"text/\" , 5 ) == 0 || strncasecmp ( str_c ( content_type ) , \"message/\" , 8 ) == 0 ;\n }"}
{"idx": 7648, "target": 0, "func": "const char * pkg_writeCharListWrap ( FileStream * s , CharList * l , const char * delim , const char * brk , int32_t quote ) {\n int32_t ln = 0 ;\n char buffer [ 1024 ] ;\n while ( l != NULL ) {\n if ( l -> str ) {\n uprv_strncpy ( buffer , l -> str , 1020 ) ;\n buffer [ 1019 ] = 0 ;\n if ( quote < 0 ) {\n if ( buffer [ uprv_strlen ( buffer ) - 1 ] == '\"' ) {\n buffer [ uprv_strlen ( buffer ) - 1 ] = '\\0' ;\n }\n if ( buffer [ 0 ] == '\"' ) {\n uprv_strcpy ( buffer , buffer + 1 ) ;\n }\n }\n else if ( quote > 0 ) {\n if ( l -> str [ 0 ] != '\"' ) {\n uprv_strcpy ( buffer , \"\\\"\" ) ;\n uprv_strncat ( buffer , l -> str , 1020 ) ;\n }\n if ( l -> str [ uprv_strlen ( l -> str ) - 1 ] != '\"' ) {\n uprv_strcat ( buffer , \"\\\"\" ) ;\n }\n }\n T_FileStream_write ( s , buffer , ( int32_t ) uprv_strlen ( buffer ) ) ;\n ln += ( int32_t ) uprv_strlen ( l -> str ) ;\n }\n if ( l -> next && delim ) {\n if ( ln > 60 && brk ) {\n ln = 0 ;\n T_FileStream_write ( s , brk , ( int32_t ) uprv_strlen ( brk ) ) ;\n }\n T_FileStream_write ( s , delim , ( int32_t ) uprv_strlen ( delim ) ) ;\n }\n l = l -> next ;\n }\n return NULL ;\n }"}
{"idx": 7649, "target": 0, "func": "static void xml_print_str ( WriterContext * wctx , const char * key , const char * value ) {\n AVBPrint buf ;\n XMLContext * xml = wctx -> priv ;\n const struct section * section = wctx -> section [ wctx -> level ] ;\n av_bprint_init ( & buf , 1 , AV_BPRINT_SIZE_UNLIMITED ) ;\n if ( section -> flags & SECTION_FLAG_HAS_VARIABLE_FIELDS ) {\n XML_INDENT ( ) ;\n printf ( \"<%s key=\\\"%s\\\"\" , section -> element_name , xml_escape_str ( & buf , key , wctx ) ) ;\n av_bprint_clear ( & buf ) ;\n printf ( \" value=\\\"%s\\\"/>\\n\" , xml_escape_str ( & buf , value , wctx ) ) ;\n }\n else {\n if ( wctx -> nb_item [ wctx -> level ] ) printf ( \" \" ) ;\n printf ( \"%s=\\\"%s\\\"\" , key , xml_escape_str ( & buf , value , wctx ) ) ;\n }\n av_bprint_finalize ( & buf , NULL ) ;\n }"}
{"idx": 7650, "target": 0, "func": "static int checktz ( const char * check ) {\n unsigned int i ;\n const struct tzinfo * what ;\n bool found = FALSE ;\n what = tz ;\n for ( i = 0 ;\n i < sizeof ( tz ) / sizeof ( tz [ 0 ] ) ;\n i ++ ) {\n if ( Curl_raw_equal ( check , what -> name ) ) {\n found = TRUE ;\n break ;\n }\n what ++ ;\n }\n return found ? what -> offset * 60 : - 1 ;\n }"}
{"idx": 7651, "target": 1, "func": "static void read_intra_frame_mode_info ( VP9_COMMON * const cm , MACROBLOCKD * const xd , int mi_row , int mi_col , vp9_reader * r ) {\n MODE_INFO * const mi = xd -> mi [ 0 ] ;\n MB_MODE_INFO * const mbmi = & mi -> mbmi ;\n const MODE_INFO * above_mi = xd -> mi [ - cm -> mi_stride ] ;\n const MODE_INFO * left_mi = xd -> left_available ? xd -> mi [ - 1 ] : NULL ;\n const BLOCK_SIZE bsize = mbmi -> sb_type ;\n int i ;\n mbmi -> segment_id = read_intra_segment_id ( cm , xd , mi_row , mi_col , r ) ;\n mbmi -> skip = read_skip ( cm , xd , mbmi -> segment_id , r ) ;\n mbmi -> tx_size = read_tx_size ( cm , xd , cm -> tx_mode , bsize , 1 , r ) ;\n mbmi -> ref_frame [ 0 ] = INTRA_FRAME ;\n mbmi -> ref_frame [ 1 ] = NONE ;\n switch ( bsize ) {\n case BLOCK_4X4 : for ( i = 0 ;\n i < 4 ;\n ++ i ) mi -> bmi [ i ] . as_mode = read_intra_mode ( r , get_y_mode_probs ( mi , above_mi , left_mi , i ) ) ;\n mbmi -> mode = mi -> bmi [ 3 ] . as_mode ;\n break ;\n case BLOCK_4X8 : mi -> bmi [ 0 ] . as_mode = mi -> bmi [ 2 ] . as_mode = read_intra_mode ( r , get_y_mode_probs ( mi , above_mi , left_mi , 0 ) ) ;\n mi -> bmi [ 1 ] . as_mode = mi -> bmi [ 3 ] . as_mode = mbmi -> mode = read_intra_mode ( r , get_y_mode_probs ( mi , above_mi , left_mi , 1 ) ) ;\n break ;\n case BLOCK_8X4 : mi -> bmi [ 0 ] . as_mode = mi -> bmi [ 1 ] . as_mode = read_intra_mode ( r , get_y_mode_probs ( mi , above_mi , left_mi , 0 ) ) ;\n mi -> bmi [ 2 ] . as_mode = mi -> bmi [ 3 ] . as_mode = mbmi -> mode = read_intra_mode ( r , get_y_mode_probs ( mi , above_mi , left_mi , 2 ) ) ;\n break ;\n default : mbmi -> mode = read_intra_mode ( r , get_y_mode_probs ( mi , above_mi , left_mi , 0 ) ) ;\n }\n mbmi -> uv_mode = read_intra_mode ( r , vp9_kf_uv_mode_prob [ mbmi -> mode ] ) ;\n }"}
{"idx": 7652, "target": 0, "func": "enum ftenum proto_registrar_get_ftype ( const int n ) {\n header_field_info * hfinfo ;\n PROTO_REGISTRAR_GET_NTH ( n , hfinfo ) ;\n return hfinfo -> type ;\n }"}
{"idx": 7653, "target": 1, "func": "void * xmlHashLookup3 ( xmlHashTablePtr table , const xmlChar * name , const xmlChar * name2 , const xmlChar * name3 ) {\n unsigned long key ;\n xmlHashEntryPtr entry ;\n if ( table == NULL ) return ( NULL ) ;\n if ( name == NULL ) return ( NULL ) ;\n key = xmlHashComputeKey ( table , name , name2 , name3 ) ;\n if ( table -> table [ key ] . valid == 0 ) return ( NULL ) ;\n if ( table -> dict ) {\n for ( entry = & ( table -> table [ key ] ) ;\n entry != NULL ;\n entry = entry -> next ) {\n if ( ( entry -> name == name ) && ( entry -> name2 == name2 ) && ( entry -> name3 == name3 ) ) return ( entry -> payload ) ;\n }\n }\n for ( entry = & ( table -> table [ key ] ) ;\n entry != NULL ;\n entry = entry -> next ) {\n if ( ( xmlStrEqual ( entry -> name , name ) ) && ( xmlStrEqual ( entry -> name2 , name2 ) ) && ( xmlStrEqual ( entry -> name3 , name3 ) ) ) return ( entry -> payload ) ;\n }\n return ( NULL ) ;\n }"}
{"idx": 7654, "target": 0, "func": "static void rds_recv_rcvbuf_delta ( struct rds_sock * rs , struct sock * sk , struct rds_cong_map * map , int delta , __be16 port ) {\n int now_congested ;\n if ( delta == 0 ) return ;\n rs -> rs_rcv_bytes += delta ;\n now_congested = rs -> rs_rcv_bytes > rds_sk_rcvbuf ( rs ) ;\n rdsdebug ( \"rs %p (%pI4:%u) recv bytes %d buf %d \" \"now_cong %d delta %d\\n\" , rs , & rs -> rs_bound_addr , ntohs ( rs -> rs_bound_port ) , rs -> rs_rcv_bytes , rds_sk_rcvbuf ( rs ) , now_congested , delta ) ;\n if ( ! rs -> rs_congested && now_congested ) {\n rs -> rs_congested = 1 ;\n rds_cong_set_bit ( map , port ) ;\n rds_cong_queue_updates ( map ) ;\n }\n else if ( rs -> rs_congested && ( rs -> rs_rcv_bytes < ( rds_sk_rcvbuf ( rs ) / 2 ) ) ) {\n rs -> rs_congested = 0 ;\n rds_cong_clear_bit ( map , port ) ;\n rds_cong_queue_updates ( map ) ;\n }\n }"}
{"idx": 7655, "target": 1, "func": "static __inline __uint32_t __uint32_identity ( __uint32_t __x ) {\n return __x ;\n }"}
{"idx": 7656, "target": 0, "func": "static void gic_dist_writeb ( void * opaque , hwaddr offset , uint32_t value ) {\n GICState * s = ( GICState * ) opaque ;\n int irq ;\n int i ;\n int cpu ;\n cpu = gic_get_current_cpu ( s ) ;\n if ( offset < 0x100 ) {\n if ( offset == 0 ) {\n s -> enabled = ( value & 1 ) ;\n DPRINTF ( \"Distribution %sabled\\n\" , s -> enabled ? \"En\" : \"Dis\" ) ;\n }\n else if ( offset < 4 ) {\n }\n else if ( offset >= 0x80 ) {\n }\n else {\n goto bad_reg ;\n }\n }\n else if ( offset < 0x180 ) {\n irq = ( offset - 0x100 ) * 8 + GIC_BASE_IRQ ;\n if ( irq >= s -> num_irq ) goto bad_reg ;\n if ( irq < 16 ) value = 0xff ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n if ( value & ( 1 << i ) ) {\n int mask = ( irq < GIC_INTERNAL ) ? ( 1 << cpu ) : GIC_TARGET ( irq + i ) ;\n int cm = ( irq < GIC_INTERNAL ) ? ( 1 << cpu ) : ALL_CPU_MASK ;\n if ( ! GIC_TEST_ENABLED ( irq + i , cm ) ) {\n DPRINTF ( \"Enabled IRQ %d\\n\" , irq + i ) ;\n }\n GIC_SET_ENABLED ( irq + i , cm ) ;\n if ( GIC_TEST_LEVEL ( irq + i , mask ) && ! GIC_TEST_TRIGGER ( irq + i ) ) {\n DPRINTF ( \"Set %d pending mask %x\\n\" , irq + i , mask ) ;\n GIC_SET_PENDING ( irq + i , mask ) ;\n }\n }\n }\n }\n else if ( offset < 0x200 ) {\n irq = ( offset - 0x180 ) * 8 + GIC_BASE_IRQ ;\n if ( irq >= s -> num_irq ) goto bad_reg ;\n if ( irq < 16 ) value = 0 ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n if ( value & ( 1 << i ) ) {\n int cm = ( irq < GIC_INTERNAL ) ? ( 1 << cpu ) : ALL_CPU_MASK ;\n if ( GIC_TEST_ENABLED ( irq + i , cm ) ) {\n DPRINTF ( \"Disabled IRQ %d\\n\" , irq + i ) ;\n }\n GIC_CLEAR_ENABLED ( irq + i , cm ) ;\n }\n }\n }\n else if ( offset < 0x280 ) {\n irq = ( offset - 0x200 ) * 8 + GIC_BASE_IRQ ;\n if ( irq >= s -> num_irq ) goto bad_reg ;\n if ( irq < 16 ) irq = 0 ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n if ( value & ( 1 << i ) ) {\n GIC_SET_PENDING ( irq + i , GIC_TARGET ( irq + i ) ) ;\n }\n }\n }\n else if ( offset < 0x300 ) {\n irq = ( offset - 0x280 ) * 8 + GIC_BASE_IRQ ;\n if ( irq >= s -> num_irq ) goto bad_reg ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n if ( value & ( 1 << i ) ) {\n GIC_CLEAR_PENDING ( irq + i , ALL_CPU_MASK ) ;\n }\n }\n }\n else if ( offset < 0x400 ) {\n goto bad_reg ;\n }\n else if ( offset < 0x800 ) {\n irq = ( offset - 0x400 ) + GIC_BASE_IRQ ;\n if ( irq >= s -> num_irq ) goto bad_reg ;\n if ( irq < GIC_INTERNAL ) {\n s -> priority1 [ irq ] [ cpu ] = value ;\n }\n else {\n s -> priority2 [ irq - GIC_INTERNAL ] = value ;\n }\n }\n else if ( offset < 0xc00 ) {\n if ( s -> num_cpu != 1 || s -> revision == REV_11MPCORE ) {\n irq = ( offset - 0x800 ) + GIC_BASE_IRQ ;\n if ( irq >= s -> num_irq ) {\n goto bad_reg ;\n }\n if ( irq < 29 ) {\n value = 0 ;\n }\n else if ( irq < GIC_INTERNAL ) {\n value = ALL_CPU_MASK ;\n }\n s -> irq_target [ irq ] = value & ALL_CPU_MASK ;\n }\n }\n else if ( offset < 0xf00 ) {\n irq = ( offset - 0xc00 ) * 4 + GIC_BASE_IRQ ;\n if ( irq >= s -> num_irq ) goto bad_reg ;\n if ( irq < GIC_INTERNAL ) value |= 0xaa ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n if ( value & ( 1 << ( i * 2 ) ) ) {\n GIC_SET_MODEL ( irq + i ) ;\n }\n else {\n GIC_CLEAR_MODEL ( irq + i ) ;\n }\n if ( value & ( 2 << ( i * 2 ) ) ) {\n GIC_SET_TRIGGER ( irq + i ) ;\n }\n else {\n GIC_CLEAR_TRIGGER ( irq + i ) ;\n }\n }\n }\n else {\n goto bad_reg ;\n }\n gic_update ( s ) ;\n return ;\n bad_reg : qemu_log_mask ( LOG_GUEST_ERROR , \"gic_dist_writeb: Bad offset %x\\n\" , ( int ) offset ) ;\n }"}
{"idx": 7657, "target": 0, "func": "static void sig_chat_protocol_unknown ( const char * protocol ) {\n g_return_if_fail ( protocol != NULL ) ;\n printformat ( NULL , NULL , MSGLEVEL_CLIENTERROR , TXT_UNKNOWN_CHAT_PROTOCOL , protocol ) ;\n }"}
{"idx": 7658, "target": 0, "func": "static const char * event_name ( XHCIEvent * event ) {\n return lookup_name ( event -> ccode , TRBCCode_names , ARRAY_SIZE ( TRBCCode_names ) ) ;\n }"}
{"idx": 7659, "target": 0, "func": "TEST_F ( NativeBackendLibsecretTest , BasicListLogins ) {\n NativeBackendLibsecret backend ( 42 ) ;\n VerifiedAdd ( & backend , form_google_ ) ;\n ScopedVector < autofill : : PasswordForm > form_list ;\n EXPECT_TRUE ( backend . GetAutofillableLogins ( & form_list ) ) ;\n ASSERT_EQ ( 1u , form_list . size ( ) ) ;\n EXPECT_EQ ( form_google_ , * form_list [ 0 ] ) ;\n EXPECT_EQ ( 1u , global_mock_libsecret_items -> size ( ) ) ;\n if ( ! global_mock_libsecret_items -> empty ( ) ) CheckMockSecretItem ( ( * global_mock_libsecret_items ) [ 0 ] , form_google_ , \"chrome-42\" ) ;\n }"}
{"idx": 7660, "target": 0, "func": "static bool master_service_settings_check ( void * _set , pool_t pool ATTR_UNUSED , const char * * error_r ) {\n struct master_service_settings * set = _set ;\n int facility ;\n if ( * set -> log_path == '\\0' ) {\n set -> log_path = \"syslog\" ;\n }\n if ( ! syslog_facility_find ( set -> syslog_facility , & facility ) ) {\n * error_r = t_strdup_printf ( \"Unknown syslog_facility: %s\" , set -> syslog_facility ) ;\n return FALSE ;\n }\n return TRUE ;\n }"}
{"idx": 7661, "target": 0, "func": "static void add_pbase_object ( struct tree_desc * tree , const char * name , int cmplen , const char * fullname ) {\n struct name_entry entry ;\n int cmp ;\n while ( tree_entry ( tree , & entry ) ) {\n if ( S_ISGITLINK ( entry . mode ) ) continue ;\n cmp = tree_entry_len ( & entry ) != cmplen ? 1 : memcmp ( name , entry . path , cmplen ) ;\n if ( cmp > 0 ) continue ;\n if ( cmp < 0 ) return ;\n if ( name [ cmplen ] != '/' ) {\n add_object_entry ( entry . sha1 , object_type ( entry . mode ) , fullname , 1 ) ;\n return ;\n }\n if ( S_ISDIR ( entry . mode ) ) {\n struct tree_desc sub ;\n struct pbase_tree_cache * tree ;\n const char * down = name + cmplen + 1 ;\n int downlen = name_cmp_len ( down ) ;\n tree = pbase_tree_get ( entry . sha1 ) ;\n if ( ! tree ) return ;\n init_tree_desc ( & sub , tree -> tree_data , tree -> tree_size ) ;\n add_pbase_object ( & sub , down , downlen , fullname ) ;\n pbase_tree_put ( tree ) ;\n }\n }\n }"}
{"idx": 7662, "target": 0, "func": "static int addXMLCommand ( XMLRPCCmd * xml ) {\n if ( XMLRPCCMD == NULL ) XMLRPCCMD = mowgli_patricia_create ( strcasecanon ) ;\n mowgli_patricia_add ( XMLRPCCMD , xml -> name , xml ) ;\n return XMLRPC_ERR_OK ;\n }"}
{"idx": 7663, "target": 0, "func": "static void scale_and_extend_frame_nonnormative ( const YV12_BUFFER_CONFIG * src , YV12_BUFFER_CONFIG * dst ) {\n int i ;\n const uint8_t * const srcs [ 3 ] = {\n src -> y_buffer , src -> u_buffer , src -> v_buffer }\n ;\n const int src_strides [ 3 ] = {\n src -> y_stride , src -> uv_stride , src -> uv_stride }\n ;\n const int src_widths [ 3 ] = {\n src -> y_crop_width , src -> uv_crop_width , src -> uv_crop_width }\n ;\n const int src_heights [ 3 ] = {\n src -> y_crop_height , src -> uv_crop_height , src -> uv_crop_height }\n ;\n uint8_t * const dsts [ 3 ] = {\n dst -> y_buffer , dst -> u_buffer , dst -> v_buffer }\n ;\n const int dst_strides [ 3 ] = {\n dst -> y_stride , dst -> uv_stride , dst -> uv_stride }\n ;\n const int dst_widths [ 3 ] = {\n dst -> y_crop_width , dst -> uv_crop_width , dst -> uv_crop_width }\n ;\n const int dst_heights [ 3 ] = {\n dst -> y_crop_height , dst -> uv_crop_height , dst -> uv_crop_height }\n ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n ++ i ) vp9_resize_plane ( srcs [ i ] , src_heights [ i ] , src_widths [ i ] , src_strides [ i ] , dsts [ i ] , dst_heights [ i ] , dst_widths [ i ] , dst_strides [ i ] ) ;\n vp9_extend_frame_borders ( dst ) ;\n }"}
{"idx": 7664, "target": 0, "func": "TSReturnCode TSUrlCreate ( TSMBuffer bufp , TSMLoc * locp ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( locp ) == TS_SUCCESS ) ;\n if ( isWriteable ( bufp ) ) {\n HdrHeap * heap = ( ( HdrHeapSDKHandle * ) bufp ) -> m_heap ;\n * locp = ( TSMLoc ) url_create ( heap ) ;\n return TS_SUCCESS ;\n }\n return TS_ERROR ;\n }"}
{"idx": 7665, "target": 0, "func": "static int fts_build_unstructured_header ( struct fts_mail_build_context * ctx , const struct message_header_line * hdr ) {\n const unsigned char * data = hdr -> full_value ;\n unsigned char * buf = NULL ;\n unsigned int i ;\n int ret ;\n for ( i = 0 ;\n i < hdr -> full_value_len ;\n i ++ ) {\n if ( data [ i ] == '\\0' ) {\n if ( buf == NULL ) {\n buf = i_malloc ( hdr -> full_value_len ) ;\n memcpy ( buf , data , i ) ;\n data = buf ;\n }\n buf [ i ] = ' ' ;\n }\n else if ( buf != NULL ) {\n buf [ i ] = data [ i ] ;\n }\n }\n ret = fts_build_data ( ctx , data , hdr -> full_value_len , TRUE ) ;\n i_free ( buf ) ;\n return ret ;\n }"}
{"idx": 7666, "target": 0, "func": "static void pci_cirrus_vga_realize ( PCIDevice * dev , Error * * errp ) {\n PCICirrusVGAState * d = PCI_CIRRUS_VGA ( dev ) ;\n CirrusVGAState * s = & d -> cirrus_vga ;\n PCIDeviceClass * pc = PCI_DEVICE_GET_CLASS ( dev ) ;\n int16_t device_id = pc -> device_id ;\n if ( s -> vga . vram_size_mb != 4 && s -> vga . vram_size_mb != 8 && s -> vga . vram_size_mb != 16 ) {\n error_setg ( errp , \"Invalid cirrus_vga ram size '%u'\" , s -> vga . vram_size_mb ) ;\n return ;\n }\n vga_common_init ( & s -> vga , OBJECT ( dev ) , true ) ;\n cirrus_init_common ( s , OBJECT ( dev ) , device_id , 1 , pci_address_space ( dev ) , pci_address_space_io ( dev ) ) ;\n s -> vga . con = graphic_console_init ( DEVICE ( dev ) , 0 , s -> vga . hw_ops , & s -> vga ) ;\n memory_region_init ( & s -> pci_bar , OBJECT ( dev ) , \"cirrus-pci-bar0\" , 0x2000000 ) ;\n memory_region_add_subregion ( & s -> pci_bar , 0 , & s -> cirrus_linear_io ) ;\n memory_region_add_subregion ( & s -> pci_bar , 0x1000000 , & s -> cirrus_linear_bitblt_io ) ;\n pci_register_bar ( & d -> dev , 0 , PCI_BASE_ADDRESS_MEM_PREFETCH , & s -> pci_bar ) ;\n if ( device_id == CIRRUS_ID_CLGD5446 ) {\n pci_register_bar ( & d -> dev , 1 , 0 , & s -> cirrus_mmio_io ) ;\n }\n }"}
{"idx": 7667, "target": 0, "func": "static inline void decode_subblock1 ( int16_t * dst , int code , GetBitContext * gb , VLC * vlc , int q ) {\n int coeff = modulo_three_table [ code ] >> 6 ;\n decode_coeff ( dst , coeff , 3 , gb , vlc , q ) ;\n }"}
{"idx": 7668, "target": 0, "func": "SPL_METHOD ( DirectoryIterator , current ) {\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n RETURN_ZVAL ( getThis ( ) , 1 , 0 ) ;\n }"}
{"idx": 7669, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( ProfileBrowserTest , URLFetcherUsingMainContextDuringIncognitoTeardown ) {\n Browser * incognito_browser = OpenURLOffTheRecord ( browser ( ) -> profile ( ) , GURL ( \"about:blank\" ) ) ;\n RunURLFetcherActiveDuringIncognitoTeardownTest ( incognito_browser , incognito_browser -> profile ( ) -> GetRequestContext ( ) ) ;\n }"}
{"idx": 7670, "target": 0, "func": "enum nss_status CONCAT ( _nss_files_end , ENTNAME ) ( void ) {\n __libc_lock_lock ( lock ) ;\n internal_endent ( ) ;\n keep_stream = 0 ;\n __libc_lock_unlock ( lock ) ;\n return NSS_STATUS_SUCCESS ;\n }"}
{"idx": 7671, "target": 0, "func": "static VALUE cState_space ( VALUE self ) {\n GET_STATE ( self ) ;\n return state -> space ? rb_str_new ( state -> space , state -> space_len ) : rb_str_new2 ( \"\" ) ;\n }"}
{"idx": 7672, "target": 1, "func": "TEST_F ( ExternalProtocolHandlerTest , TestClearProfileState ) {\n base : : DictionaryValue prefs ;\n prefs . SetBoolean ( \"tel\" , true ) ;\n profile_ -> GetPrefs ( ) -> Set ( prefs : : kExcludedSchemes , prefs ) ;\n EXPECT_FALSE ( profile_ -> GetPrefs ( ) -> GetDictionary ( prefs : : kExcludedSchemes ) -> empty ( ) ) ;\n ExternalProtocolHandler : : ClearData ( profile_ . get ( ) ) ;\n EXPECT_TRUE ( profile_ -> GetPrefs ( ) -> GetDictionary ( prefs : : kExcludedSchemes ) -> empty ( ) ) ;\n }"}
{"idx": 7673, "target": 0, "func": "static bool_t _xdr_kadm5_principal_ent_rec ( XDR * xdrs , kadm5_principal_ent_rec * objp , int v ) {\n unsigned int n ;\n if ( ! xdr_krb5_principal ( xdrs , & objp -> principal ) ) {\n return ( FALSE ) ;\n }\n if ( ! xdr_krb5_timestamp ( xdrs , & objp -> princ_expire_time ) ) {\n return ( FALSE ) ;\n }\n if ( ! xdr_krb5_timestamp ( xdrs , & objp -> last_pwd_change ) ) {\n return ( FALSE ) ;\n }\n if ( ! xdr_krb5_timestamp ( xdrs , & objp -> pw_expiration ) ) {\n return ( FALSE ) ;\n }\n if ( ! xdr_krb5_deltat ( xdrs , & objp -> max_life ) ) {\n return ( FALSE ) ;\n }\n if ( ! xdr_nulltype ( xdrs , ( void * * ) & objp -> mod_name , xdr_krb5_principal ) ) {\n return ( FALSE ) ;\n }\n if ( ! xdr_krb5_timestamp ( xdrs , & objp -> mod_date ) ) {\n return ( FALSE ) ;\n }\n if ( ! xdr_krb5_flags ( xdrs , & objp -> attributes ) ) {\n return ( FALSE ) ;\n }\n if ( ! xdr_krb5_kvno ( xdrs , & objp -> kvno ) ) {\n return ( FALSE ) ;\n }\n if ( ! xdr_krb5_kvno ( xdrs , & objp -> mkvno ) ) {\n return ( FALSE ) ;\n }\n if ( ! xdr_nullstring ( xdrs , & objp -> policy ) ) {\n return ( FALSE ) ;\n }\n if ( ! xdr_long ( xdrs , & objp -> aux_attributes ) ) {\n return ( FALSE ) ;\n }\n if ( ! xdr_krb5_deltat ( xdrs , & objp -> max_renewable_life ) ) {\n return ( FALSE ) ;\n }\n if ( ! xdr_krb5_timestamp ( xdrs , & objp -> last_success ) ) {\n return ( FALSE ) ;\n }\n if ( ! xdr_krb5_timestamp ( xdrs , & objp -> last_failed ) ) {\n return ( FALSE ) ;\n }\n if ( ! xdr_krb5_kvno ( xdrs , & objp -> fail_auth_count ) ) {\n return ( FALSE ) ;\n }\n if ( ! xdr_krb5_int16 ( xdrs , & objp -> n_key_data ) ) {\n return ( FALSE ) ;\n }\n if ( ! xdr_krb5_int16 ( xdrs , & objp -> n_tl_data ) ) {\n return ( FALSE ) ;\n }\n if ( ! xdr_nulltype ( xdrs , ( void * * ) & objp -> tl_data , xdr_krb5_tl_data ) ) {\n return FALSE ;\n }\n n = objp -> n_key_data ;\n if ( ! xdr_array ( xdrs , ( caddr_t * ) & objp -> key_data , & n , ~ 0 , sizeof ( krb5_key_data ) , xdr_krb5_key_data_nocontents ) ) {\n return ( FALSE ) ;\n }\n return ( TRUE ) ;\n }"}
{"idx": 7674, "target": 1, "func": "static UBool action_setRunsOnly ( UBiDiTransform * pTransform , UErrorCode * pErrorCode ) {\n ubidi_setReorderingMode ( pTransform -> pBidi , UBIDI_REORDER_RUNS_ONLY ) ;\n return FALSE ;\n }"}
{"idx": 7675, "target": 0, "func": "static int check_key_name ( const char * name , const Py_ssize_t name_length ) {\n int i ;\n if ( name_length > 0 && name [ 0 ] == '$' ) {\n PyObject * InvalidDocument = _error ( \"InvalidDocument\" ) ;\n # if PY_MAJOR_VERSION >= 3 PyObject * errmsg = PyUnicode_FromFormat ( \"key '%s' must not start with '$'\" , name ) ;\n PyErr_SetObject ( InvalidDocument , errmsg ) ;\n # else PyObject * errmsg = PyString_FromFormat ( \"key '%s' must not start with '$'\" , name ) ;\n PyErr_SetString ( InvalidDocument , PyString_AsString ( errmsg ) ) ;\n # endif Py_DECREF ( errmsg ) ;\n Py_DECREF ( InvalidDocument ) ;\n return 0 ;\n }\n for ( i = 0 ;\n i < name_length ;\n i ++ ) {\n if ( name [ i ] == '.' ) {\n PyObject * InvalidDocument = _error ( \"InvalidDocument\" ) ;\n # if PY_MAJOR_VERSION >= 3 PyObject * errmsg = PyUnicode_FromFormat ( \"key '%s' must not contain '.'\" , name ) ;\n PyErr_SetObject ( InvalidDocument , errmsg ) ;\n # else PyObject * errmsg = PyString_FromFormat ( \"key '%s' must not contain '.'\" , name ) ;\n PyErr_SetString ( InvalidDocument , PyString_AsString ( errmsg ) ) ;\n # endif Py_DECREF ( errmsg ) ;\n Py_DECREF ( InvalidDocument ) ;\n return 0 ;\n }\n }\n return 1 ;\n }"}
{"idx": 7676, "target": 0, "func": "int event_once ( int fd , short events , void ( * callback ) ( int , short , void * ) , void * arg , const struct timeval * tv ) {\n return event_base_once ( current_base , fd , events , callback , arg , tv ) ;\n }"}
{"idx": 7677, "target": 0, "func": "static int evhttp_decode_uri_internal ( const char * uri , size_t length , char * ret , int always_decode_plus ) {\n char c ;\n int i , j , in_query = always_decode_plus ;\n for ( i = j = 0 ;\n uri [ i ] != '\\0' ;\n i ++ ) {\n c = uri [ i ] ;\n if ( c == '?' ) {\n in_query = 1 ;\n }\n else if ( c == '+' && in_query ) {\n c = ' ' ;\n }\n else if ( c == '%' && isxdigit ( ( unsigned char ) uri [ i + 1 ] ) && isxdigit ( ( unsigned char ) uri [ i + 2 ] ) ) {\n char tmp [ ] = {\n uri [ i + 1 ] , uri [ i + 2 ] , '\\0' }\n ;\n c = ( char ) strtol ( tmp , NULL , 16 ) ;\n i += 2 ;\n }\n ret [ j ++ ] = c ;\n }\n ret [ j ] = '\\0' ;\n return ( j ) ;\n }"}
{"idx": 7678, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ContentFaviconDriverTest , AssociateIconWithInitialPageDespite300ResponseAndMetaRefreshTagTo300 ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n GURL url_with_meta_refresh_tag = embedded_test_server ( ) -> GetURL ( \"/favicon/page_with_meta_refresh_tag_to_server_redirect.html\" ) ;\n GURL url = embedded_test_server ( ) -> GetURL ( \"/server-redirect?\" + url_with_meta_refresh_tag . spec ( ) ) ;\n GURL landing_url = embedded_test_server ( ) -> GetURL ( \"/favicon/page_with_favicon.html\" ) ;\n PendingTaskWaiter waiter ( web_contents ( ) ) ;\n waiter . AlsoRequireUrl ( landing_url ) ;\n ui_test_utils : : NavigateToURLWithDisposition ( browser ( ) , url , WindowOpenDisposition : : CURRENT_TAB , ui_test_utils : : BROWSER_TEST_NONE ) ;\n waiter . Wait ( ) ;\n EXPECT_NE ( nullptr , GetFaviconForPageURL ( url , favicon_base : : IconType : : kFavicon ) . bitmap_data ) ;\n EXPECT_NE ( nullptr , GetFaviconForPageURL ( landing_url , favicon_base : : IconType : : kFavicon ) . bitmap_data ) ;\n }"}
{"idx": 7679, "target": 0, "func": "int tls_construct_new_session_ticket ( SSL * s ) {\n unsigned char * senc = NULL ;\n EVP_CIPHER_CTX * ctx ;\n HMAC_CTX * hctx = NULL ;\n unsigned char * p , * macstart ;\n const unsigned char * const_p ;\n int len , slen_full , slen ;\n SSL_SESSION * sess ;\n unsigned int hlen ;\n SSL_CTX * tctx = s -> initial_ctx ;\n unsigned char iv [ EVP_MAX_IV_LENGTH ] ;\n unsigned char key_name [ TLSEXT_KEYNAME_LENGTH ] ;\n int iv_len ;\n slen_full = i2d_SSL_SESSION ( s -> session , NULL ) ;\n if ( slen_full == 0 || slen_full > 0xFF00 ) {\n ossl_statem_set_error ( s ) ;\n return 0 ;\n }\n senc = OPENSSL_malloc ( slen_full ) ;\n if ( senc == NULL ) {\n ossl_statem_set_error ( s ) ;\n return 0 ;\n }\n ctx = EVP_CIPHER_CTX_new ( ) ;\n hctx = HMAC_CTX_new ( ) ;\n p = senc ;\n if ( ! i2d_SSL_SESSION ( s -> session , & p ) ) goto err ;\n const_p = senc ;\n sess = d2i_SSL_SESSION ( NULL , & const_p , slen_full ) ;\n if ( sess == NULL ) goto err ;\n sess -> session_id_length = 0 ;\n slen = i2d_SSL_SESSION ( sess , NULL ) ;\n if ( slen == 0 || slen > slen_full ) {\n SSL_SESSION_free ( sess ) ;\n goto err ;\n }\n p = senc ;\n if ( ! i2d_SSL_SESSION ( sess , & p ) ) {\n SSL_SESSION_free ( sess ) ;\n goto err ;\n }\n SSL_SESSION_free ( sess ) ;\n if ( ! BUF_MEM_grow ( s -> init_buf , SSL_HM_HEADER_LENGTH ( s ) + 6 + sizeof ( key_name ) + EVP_MAX_IV_LENGTH + EVP_MAX_BLOCK_LENGTH + EVP_MAX_MD_SIZE + slen ) ) goto err ;\n p = ssl_handshake_start ( s ) ;\n if ( tctx -> tlsext_ticket_key_cb ) {\n int ret = tctx -> tlsext_ticket_key_cb ( s , key_name , iv , ctx , hctx , 1 ) ;\n if ( ret == 0 ) {\n l2n ( 0 , p ) ;\n s2n ( 0 , p ) ;\n if ( ! ssl_set_handshake_header ( s , SSL3_MT_NEWSESSION_TICKET , p - ssl_handshake_start ( s ) ) ) goto err ;\n OPENSSL_free ( senc ) ;\n EVP_CIPHER_CTX_free ( ctx ) ;\n HMAC_CTX_free ( hctx ) ;\n return 1 ;\n }\n if ( ret < 0 ) goto err ;\n iv_len = EVP_CIPHER_CTX_iv_length ( ctx ) ;\n }\n else {\n const EVP_CIPHER * cipher = EVP_aes_256_cbc ( ) ;\n iv_len = EVP_CIPHER_iv_length ( cipher ) ;\n if ( RAND_bytes ( iv , iv_len ) <= 0 ) goto err ;\n if ( ! EVP_EncryptInit_ex ( ctx , cipher , NULL , tctx -> tlsext_tick_aes_key , iv ) ) goto err ;\n if ( ! HMAC_Init_ex ( hctx , tctx -> tlsext_tick_hmac_key , sizeof ( tctx -> tlsext_tick_hmac_key ) , EVP_sha256 ( ) , NULL ) ) goto err ;\n memcpy ( key_name , tctx -> tlsext_tick_key_name , sizeof ( tctx -> tlsext_tick_key_name ) ) ;\n }\n l2n ( s -> hit ? 0 : s -> session -> timeout , p ) ;\n p += 2 ;\n macstart = p ;\n memcpy ( p , key_name , sizeof ( key_name ) ) ;\n p += sizeof ( key_name ) ;\n memcpy ( p , iv , iv_len ) ;\n p += iv_len ;\n if ( ! EVP_EncryptUpdate ( ctx , p , & len , senc , slen ) ) goto err ;\n p += len ;\n if ( ! EVP_EncryptFinal ( ctx , p , & len ) ) goto err ;\n p += len ;\n if ( ! HMAC_Update ( hctx , macstart , p - macstart ) ) goto err ;\n if ( ! HMAC_Final ( hctx , p , & hlen ) ) goto err ;\n EVP_CIPHER_CTX_free ( ctx ) ;\n HMAC_CTX_free ( hctx ) ;\n ctx = NULL ;\n hctx = NULL ;\n p += hlen ;\n len = p - ssl_handshake_start ( s ) ;\n p = ssl_handshake_start ( s ) + 4 ;\n s2n ( len - 6 , p ) ;\n if ( ! ssl_set_handshake_header ( s , SSL3_MT_NEWSESSION_TICKET , len ) ) goto err ;\n OPENSSL_free ( senc ) ;\n return 1 ;\n err : OPENSSL_free ( senc ) ;\n EVP_CIPHER_CTX_free ( ctx ) ;\n HMAC_CTX_free ( hctx ) ;\n ossl_statem_set_error ( s ) ;\n return 0 ;\n }"}
{"idx": 7680, "target": 1, "func": "static int cdxl_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * pkt ) {\n CDXLVideoContext * c = avctx -> priv_data ;\n AVFrame * const p = & c -> frame ;\n int ret , w , h , encoding , aligned_width , buf_size = pkt -> size ;\n const uint8_t * buf = pkt -> data ;\n if ( buf_size < 32 ) return AVERROR_INVALIDDATA ;\n encoding = buf [ 1 ] & 7 ;\n c -> format = buf [ 1 ] & 0xE0 ;\n w = AV_RB16 ( & buf [ 14 ] ) ;\n h = AV_RB16 ( & buf [ 16 ] ) ;\n c -> bpp = buf [ 19 ] ;\n c -> palette_size = AV_RB16 ( & buf [ 20 ] ) ;\n c -> palette = buf + 32 ;\n c -> video = c -> palette + c -> palette_size ;\n c -> video_size = buf_size - c -> palette_size - 32 ;\n if ( c -> palette_size > 512 ) return AVERROR_INVALIDDATA ;\n if ( buf_size < c -> palette_size + 32 ) return AVERROR_INVALIDDATA ;\n if ( c -> bpp < 1 ) return AVERROR_INVALIDDATA ;\n if ( c -> format != BIT_PLANAR && c -> format != BIT_LINE ) {\n av_log_ask_for_sample ( avctx , \"unsupported pixel format: 0x%0x\\n\" , c -> format ) ;\n return AVERROR_PATCHWELCOME ;\n }\n if ( ( ret = av_image_check_size ( w , h , 0 , avctx ) ) < 0 ) return ret ;\n if ( w != avctx -> width || h != avctx -> height ) avcodec_set_dimensions ( avctx , w , h ) ;\n aligned_width = FFALIGN ( c -> avctx -> width , 16 ) ;\n c -> padded_bits = aligned_width - c -> avctx -> width ;\n if ( c -> video_size < aligned_width * avctx -> height * c -> bpp / 8 ) return AVERROR_INVALIDDATA ;\n if ( ! encoding && c -> palette_size && c -> bpp <= 8 ) {\n avctx -> pix_fmt = AV_PIX_FMT_PAL8 ;\n }\n else if ( encoding == 1 && ( c -> bpp == 6 || c -> bpp == 8 ) ) {\n if ( c -> palette_size != ( 1 << ( c -> bpp - 1 ) ) ) return AVERROR_INVALIDDATA ;\n avctx -> pix_fmt = AV_PIX_FMT_BGR24 ;\n }\n else {\n av_log_ask_for_sample ( avctx , \"unsupported encoding %d and bpp %d\\n\" , encoding , c -> bpp ) ;\n return AVERROR_PATCHWELCOME ;\n }\n if ( p -> data [ 0 ] ) avctx -> release_buffer ( avctx , p ) ;\n p -> reference = 0 ;\n if ( ( ret = ff_get_buffer ( avctx , p ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n p -> pict_type = AV_PICTURE_TYPE_I ;\n if ( encoding ) {\n av_fast_padded_malloc ( & c -> new_video , & c -> new_video_size , h * w + FF_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( ! c -> new_video ) return AVERROR ( ENOMEM ) ;\n if ( c -> bpp == 8 ) cdxl_decode_ham8 ( c ) ;\n else cdxl_decode_ham6 ( c ) ;\n }\n else {\n cdxl_decode_rgb ( c ) ;\n }\n * got_frame = 1 ;\n * ( AVFrame * ) data = c -> frame ;\n return buf_size ;\n }"}
{"idx": 7681, "target": 0, "func": "void vp9_disable_segfeature ( struct segmentation * seg , int segment_id , SEG_LVL_FEATURES feature_id ) {\n seg -> feature_mask [ segment_id ] &= ~ ( 1 << feature_id ) ;\n }"}
{"idx": 7682, "target": 0, "func": "static int dissect_h225_H245Control ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_H245Control , H245Control_sequence_of ) ;\n return offset ;\n }"}
{"idx": 7683, "target": 0, "func": "int min_heap_push ( min_heap_t * s , struct event * e ) {\n if ( min_heap_reserve ( s , s -> n + 1 ) ) return - 1 ;\n min_heap_shift_up_ ( s , s -> n ++ , e ) ;\n return 0 ;\n }"}
{"idx": 7684, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n RALFContext * ctx = avctx -> priv_data ;\n AVFrame * frame = data ;\n int16_t * samples0 ;\n int16_t * samples1 ;\n int ret ;\n GetBitContext gb ;\n int table_size , table_bytes , i ;\n const uint8_t * src , * block_pointer ;\n int src_size ;\n int bytes_left ;\n if ( ctx -> has_pkt ) {\n ctx -> has_pkt = 0 ;\n table_bytes = ( AV_RB16 ( avpkt -> data ) + 7 ) >> 3 ;\n if ( table_bytes + 3 > avpkt -> size || avpkt -> size > RALF_MAX_PKT_SIZE ) {\n av_log ( avctx , AV_LOG_ERROR , \"Wrong packet's breath smells of wrong data!\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( memcmp ( ctx -> pkt , avpkt -> data , 2 + table_bytes ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Wrong packet tails are wrong!\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n src = ctx -> pkt ;\n src_size = RALF_MAX_PKT_SIZE + avpkt -> size ;\n memcpy ( ctx -> pkt + RALF_MAX_PKT_SIZE , avpkt -> data + 2 + table_bytes , avpkt -> size - 2 - table_bytes ) ;\n }\n else {\n if ( avpkt -> size == RALF_MAX_PKT_SIZE ) {\n memcpy ( ctx -> pkt , avpkt -> data , avpkt -> size ) ;\n ctx -> has_pkt = 1 ;\n * got_frame_ptr = 0 ;\n return avpkt -> size ;\n }\n src = avpkt -> data ;\n src_size = avpkt -> size ;\n }\n frame -> nb_samples = ctx -> max_frame_size ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Me fail get_buffer()? That's unpossible!\\n\" ) ;\n return ret ;\n }\n samples0 = ( int16_t * ) frame -> data [ 0 ] ;\n samples1 = ( int16_t * ) frame -> data [ 1 ] ;\n if ( src_size < 5 ) {\n av_log ( avctx , AV_LOG_ERROR , \"too short packets are too short!\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n table_size = AV_RB16 ( src ) ;\n table_bytes = ( table_size + 7 ) >> 3 ;\n if ( src_size < table_bytes + 3 ) {\n av_log ( avctx , AV_LOG_ERROR , \"short packets are short!\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n init_get_bits ( & gb , src + 2 , table_size ) ;\n ctx -> num_blocks = 0 ;\n while ( get_bits_left ( & gb ) > 0 ) {\n ctx -> block_size [ ctx -> num_blocks ] = get_bits ( & gb , 15 ) ;\n if ( get_bits1 ( & gb ) ) {\n ctx -> block_pts [ ctx -> num_blocks ] = get_bits ( & gb , 9 ) ;\n }\n else {\n ctx -> block_pts [ ctx -> num_blocks ] = 0 ;\n }\n ctx -> num_blocks ++ ;\n }\n block_pointer = src + table_bytes + 2 ;\n bytes_left = src_size - table_bytes - 2 ;\n ctx -> sample_offset = 0 ;\n for ( i = 0 ;\n i < ctx -> num_blocks ;\n i ++ ) {\n if ( bytes_left < ctx -> block_size [ i ] ) {\n av_log ( avctx , AV_LOG_ERROR , \"I'm pedaling backwards\\n\" ) ;\n break ;\n }\n init_get_bits ( & gb , block_pointer , ctx -> block_size [ i ] * 8 ) ;\n if ( decode_block ( avctx , & gb , samples0 + ctx -> sample_offset , samples1 + ctx -> sample_offset ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Sir, I got carsick in your office. Not decoding the rest of packet.\\n\" ) ;\n break ;\n }\n block_pointer += ctx -> block_size [ i ] ;\n bytes_left -= ctx -> block_size [ i ] ;\n }\n frame -> nb_samples = ctx -> sample_offset ;\n * got_frame_ptr = ctx -> sample_offset > 0 ;\n return avpkt -> size ;\n }"}
{"idx": 7685, "target": 1, "func": "void xps_parse_glyphs ( xps_document * doc , const fz_matrix * ctm , char * base_uri , xps_resource * dict , fz_xml * root ) {\n fz_xml * node ;\n char * fill_uri ;\n char * opacity_mask_uri ;\n char * bidi_level_att ;\n char * fill_att ;\n char * font_size_att ;\n char * font_uri_att ;\n char * origin_x_att ;\n char * origin_y_att ;\n char * is_sideways_att ;\n char * indices_att ;\n char * unicode_att ;\n char * style_att ;\n char * transform_att ;\n char * clip_att ;\n char * opacity_att ;\n char * opacity_mask_att ;\n char * navigate_uri_att ;\n fz_xml * transform_tag = NULL ;\n fz_xml * clip_tag = NULL ;\n fz_xml * fill_tag = NULL ;\n fz_xml * opacity_mask_tag = NULL ;\n char * fill_opacity_att = NULL ;\n xps_part * part ;\n fz_font * font ;\n char partname [ 1024 ] ;\n char fakename [ 1024 ] ;\n char * subfont ;\n float font_size = 10 ;\n int subfontid = 0 ;\n int is_sideways = 0 ;\n int bidi_level = 0 ;\n fz_text * text ;\n fz_rect area ;\n fz_matrix local_ctm = * ctm ;\n bidi_level_att = fz_xml_att ( root , \"BidiLevel\" ) ;\n fill_att = fz_xml_att ( root , \"Fill\" ) ;\n font_size_att = fz_xml_att ( root , \"FontRenderingEmSize\" ) ;\n font_uri_att = fz_xml_att ( root , \"FontUri\" ) ;\n origin_x_att = fz_xml_att ( root , \"OriginX\" ) ;\n origin_y_att = fz_xml_att ( root , \"OriginY\" ) ;\n is_sideways_att = fz_xml_att ( root , \"IsSideways\" ) ;\n indices_att = fz_xml_att ( root , \"Indices\" ) ;\n unicode_att = fz_xml_att ( root , \"UnicodeString\" ) ;\n style_att = fz_xml_att ( root , \"StyleSimulations\" ) ;\n transform_att = fz_xml_att ( root , \"RenderTransform\" ) ;\n clip_att = fz_xml_att ( root , \"Clip\" ) ;\n opacity_att = fz_xml_att ( root , \"Opacity\" ) ;\n opacity_mask_att = fz_xml_att ( root , \"OpacityMask\" ) ;\n navigate_uri_att = fz_xml_att ( root , \"FixedPage.NavigateUri\" ) ;\n for ( node = fz_xml_down ( root ) ;\n node ;\n node = fz_xml_next ( node ) ) {\n if ( ! strcmp ( fz_xml_tag ( node ) , \"Glyphs.RenderTransform\" ) ) transform_tag = fz_xml_down ( node ) ;\n if ( ! strcmp ( fz_xml_tag ( node ) , \"Glyphs.OpacityMask\" ) ) opacity_mask_tag = fz_xml_down ( node ) ;\n if ( ! strcmp ( fz_xml_tag ( node ) , \"Glyphs.Clip\" ) ) clip_tag = fz_xml_down ( node ) ;\n if ( ! strcmp ( fz_xml_tag ( node ) , \"Glyphs.Fill\" ) ) fill_tag = fz_xml_down ( node ) ;\n }\n fill_uri = base_uri ;\n opacity_mask_uri = base_uri ;\n xps_resolve_resource_reference ( doc , dict , & transform_att , & transform_tag , NULL ) ;\n xps_resolve_resource_reference ( doc , dict , & clip_att , & clip_tag , NULL ) ;\n xps_resolve_resource_reference ( doc , dict , & fill_att , & fill_tag , & fill_uri ) ;\n xps_resolve_resource_reference ( doc , dict , & opacity_mask_att , & opacity_mask_tag , & opacity_mask_uri ) ;\n if ( ! font_size_att || ! font_uri_att || ! origin_x_att || ! origin_y_att ) {\n fz_warn ( doc -> ctx , \"missing attributes in glyphs element\" ) ;\n return ;\n }\n if ( ! indices_att && ! unicode_att ) return ;\n if ( is_sideways_att ) is_sideways = ! strcmp ( is_sideways_att , \"true\" ) ;\n if ( bidi_level_att ) bidi_level = atoi ( bidi_level_att ) ;\n xps_resolve_url ( partname , base_uri , font_uri_att , sizeof partname ) ;\n subfont = strrchr ( partname , '#' ) ;\n if ( subfont ) {\n subfontid = atoi ( subfont + 1 ) ;\n * subfont = 0 ;\n }\n fz_strlcpy ( fakename , partname , sizeof fakename ) ;\n if ( style_att ) {\n if ( ! strcmp ( style_att , \"BoldSimulation\" ) ) fz_strlcat ( fakename , \"#Bold\" , sizeof fakename ) ;\n else if ( ! strcmp ( style_att , \"ItalicSimulation\" ) ) fz_strlcat ( fakename , \"#Italic\" , sizeof fakename ) ;\n else if ( ! strcmp ( style_att , \"BoldItalicSimulation\" ) ) fz_strlcat ( fakename , \"#BoldItalic\" , sizeof fakename ) ;\n }\n font = xps_lookup_font ( doc , fakename ) ;\n if ( ! font ) {\n fz_try ( doc -> ctx ) {\n part = xps_read_part ( doc , partname ) ;\n }\n fz_catch ( doc -> ctx ) {\n fz_rethrow_if ( doc -> ctx , FZ_ERROR_TRYLATER ) ;\n fz_warn ( doc -> ctx , \"cannot find font resource part '%s'\" , partname ) ;\n return ;\n }\n if ( strstr ( part -> name , \".odttf\" ) ) xps_deobfuscate_font_resource ( doc , part ) ;\n if ( strstr ( part -> name , \".ODTTF\" ) ) xps_deobfuscate_font_resource ( doc , part ) ;\n fz_try ( doc -> ctx ) {\n fz_buffer * buf = fz_new_buffer_from_data ( doc -> ctx , part -> data , part -> size ) ;\n font = fz_new_font_from_buffer ( doc -> ctx , NULL , buf , subfontid , 1 ) ;\n fz_drop_buffer ( doc -> ctx , buf ) ;\n }\n fz_catch ( doc -> ctx ) {\n fz_rethrow_if ( doc -> ctx , FZ_ERROR_TRYLATER ) ;\n fz_warn ( doc -> ctx , \"cannot load font resource '%s'\" , partname ) ;\n xps_free_part ( doc , part ) ;\n return ;\n }\n if ( style_att ) {\n font -> ft_bold = ! ! strstr ( style_att , \"Bold\" ) ;\n font -> ft_italic = ! ! strstr ( style_att , \"Italic\" ) ;\n }\n xps_select_best_font_encoding ( doc , font ) ;\n xps_insert_font ( doc , fakename , font ) ;\n fz_free ( doc -> ctx , part -> name ) ;\n fz_free ( doc -> ctx , part ) ;\n }\n if ( transform_att || transform_tag ) {\n fz_matrix transform ;\n if ( transform_att ) xps_parse_render_transform ( doc , transform_att , & transform ) ;\n if ( transform_tag ) xps_parse_matrix_transform ( doc , transform_tag , & transform ) ;\n fz_concat ( & local_ctm , & transform , & local_ctm ) ;\n }\n if ( clip_att || clip_tag ) xps_clip ( doc , & local_ctm , dict , clip_att , clip_tag ) ;\n font_size = fz_atof ( font_size_att ) ;\n text = xps_parse_glyphs_imp ( doc , & local_ctm , font , font_size , fz_atof ( origin_x_att ) , fz_atof ( origin_y_att ) , is_sideways , bidi_level , indices_att , unicode_att ) ;\n fz_bound_text ( doc -> ctx , text , NULL , & local_ctm , & area ) ;\n if ( navigate_uri_att ) xps_add_link ( doc , & area , base_uri , navigate_uri_att ) ;\n xps_begin_opacity ( doc , & local_ctm , & area , opacity_mask_uri , dict , opacity_att , opacity_mask_tag ) ;\n if ( fill_tag && ! strcmp ( fz_xml_tag ( fill_tag ) , \"SolidColorBrush\" ) ) {\n fill_opacity_att = fz_xml_att ( fill_tag , \"Opacity\" ) ;\n fill_att = fz_xml_att ( fill_tag , \"Color\" ) ;\n fill_tag = NULL ;\n }\n if ( fill_att ) {\n float samples [ 32 ] ;\n fz_colorspace * colorspace ;\n xps_parse_color ( doc , base_uri , fill_att , & colorspace , samples ) ;\n if ( fill_opacity_att ) samples [ 0 ] *= fz_atof ( fill_opacity_att ) ;\n xps_set_color ( doc , colorspace , samples ) ;\n fz_fill_text ( doc -> dev , text , & local_ctm , doc -> colorspace , doc -> color , doc -> alpha ) ;\n }\n if ( fill_tag ) {\n fz_clip_text ( doc -> dev , text , & local_ctm , 0 ) ;\n xps_parse_brush ( doc , & local_ctm , & area , fill_uri , dict , fill_tag ) ;\n fz_pop_clip ( doc -> dev ) ;\n }\n xps_end_opacity ( doc , opacity_mask_uri , dict , opacity_att , opacity_mask_tag ) ;\n fz_free_text ( doc -> ctx , text ) ;\n if ( clip_att || clip_tag ) fz_pop_clip ( doc -> dev ) ;\n fz_drop_font ( doc -> ctx , font ) ;\n }"}
{"idx": 7686, "target": 0, "func": "void vp9_iht16x16_add ( TX_TYPE tx_type , const tran_low_t * input , uint8_t * dest , int stride , int eob ) {\n if ( tx_type == DCT_DCT ) {\n vp9_idct16x16_add ( input , dest , stride , eob ) ;\n }\n else {\n vp9_iht16x16_256_add ( input , dest , stride , tx_type ) ;\n }\n }"}
{"idx": 7687, "target": 1, "func": "static int ipvideo_decode_block_opcode_0xD ( IpvideoContext * s ) {\n int y ;\n unsigned char P [ 2 ] ;\n for ( y = 0 ;\n y < 8 ;\n y ++ ) {\n if ( ! ( y & 3 ) ) {\n P [ 0 ] = bytestream2_get_byte ( & s -> stream_ptr ) ;\n P [ 1 ] = bytestream2_get_byte ( & s -> stream_ptr ) ;\n }\n memset ( s -> pixel_ptr , P [ 0 ] , 4 ) ;\n memset ( s -> pixel_ptr + 4 , P [ 1 ] , 4 ) ;\n s -> pixel_ptr += s -> stride ;\n }\n return 0 ;\n }"}
{"idx": 7688, "target": 0, "func": "static void show_subtitle ( WriterContext * w , AVSubtitle * sub , AVStream * stream , AVFormatContext * fmt_ctx ) {\n AVBPrint pbuf ;\n av_bprint_init ( & pbuf , 1 , AV_BPRINT_SIZE_UNLIMITED ) ;\n writer_print_section_header ( w , SECTION_ID_SUBTITLE ) ;\n print_str ( \"media_type\" , \"subtitle\" ) ;\n print_ts ( \"pts\" , sub -> pts ) ;\n print_time ( \"pts_time\" , sub -> pts , & AV_TIME_BASE_Q ) ;\n print_int ( \"format\" , sub -> format ) ;\n print_int ( \"start_display_time\" , sub -> start_display_time ) ;\n print_int ( \"end_display_time\" , sub -> end_display_time ) ;\n print_int ( \"num_rects\" , sub -> num_rects ) ;\n writer_print_section_footer ( w ) ;\n av_bprint_finalize ( & pbuf , NULL ) ;\n fflush ( stdout ) ;\n }"}
{"idx": 7689, "target": 0, "func": "static gpointer init_common ( gsize job_size , GtkWindow * parent_window ) {\n CommonJob * common ;\n GdkScreen * screen ;\n common = g_malloc0 ( job_size ) ;\n if ( parent_window ) {\n common -> parent_window = parent_window ;\n g_object_add_weak_pointer ( G_OBJECT ( common -> parent_window ) , ( gpointer * ) & common -> parent_window ) ;\n }\n common -> progress = nautilus_progress_info_new ( ) ;\n common -> cancellable = nautilus_progress_info_get_cancellable ( common -> progress ) ;\n common -> time = g_timer_new ( ) ;\n common -> inhibit_cookie = 0 ;\n common -> screen_num = 0 ;\n if ( parent_window ) {\n screen = gtk_widget_get_screen ( GTK_WIDGET ( parent_window ) ) ;\n common -> screen_num = gdk_screen_get_number ( screen ) ;\n }\n return common ;\n }"}
{"idx": 7690, "target": 0, "func": "static int vbf_beresp2obj ( struct busyobj * bo ) {\n unsigned l , l2 ;\n const char * b ;\n uint8_t * bp ;\n struct vsb * vary = NULL ;\n int varyl = 0 ;\n l = 0 ;\n if ( ! ( bo -> fetch_objcore -> flags & OC_F_PRIVATE ) ) {\n varyl = VRY_Create ( bo , & vary ) ;\n if ( varyl > 0 ) {\n AN ( vary ) ;\n assert ( varyl == VSB_len ( vary ) ) ;\n l += PRNDUP ( ( intptr_t ) varyl ) ;\n }\n else if ( varyl < 0 ) {\n VSLb ( bo -> vsl , SLT_Error , \"Illegal 'Vary' header from backend, \" \"making this a pass.\" ) ;\n bo -> uncacheable = 1 ;\n AZ ( vary ) ;\n }\n else AZ ( vary ) ;\n }\n l2 = http_EstimateWS ( bo -> beresp , bo -> uncacheable ? HTTPH_A_PASS : HTTPH_A_INS ) ;\n l += l2 ;\n if ( bo -> uncacheable ) bo -> fetch_objcore -> flags |= OC_F_PASS ;\n if ( ! vbf_allocobj ( bo , l ) ) return ( - 1 ) ;\n if ( vary != NULL ) {\n AN ( ObjSetAttr ( bo -> wrk , bo -> fetch_objcore , OA_VARY , varyl , VSB_data ( vary ) ) ) ;\n VSB_destroy ( & vary ) ;\n }\n AZ ( ObjSetU32 ( bo -> wrk , bo -> fetch_objcore , OA_VXID , VXID ( bo -> vsl -> wid ) ) ) ;\n bo -> beresp -> logtag = SLT_ObjMethod ;\n bp = ObjSetAttr ( bo -> wrk , bo -> fetch_objcore , OA_HEADERS , l2 , NULL ) ;\n AN ( bp ) ;\n HTTP_Encode ( bo -> beresp , bp , l2 , bo -> uncacheable ? HTTPH_A_PASS : HTTPH_A_INS ) ;\n if ( http_GetHdr ( bo -> beresp , H_Last_Modified , & b ) ) AZ ( ObjSetDouble ( bo -> wrk , bo -> fetch_objcore , OA_LASTMODIFIED , VTIM_parse ( b ) ) ) ;\n else AZ ( ObjSetDouble ( bo -> wrk , bo -> fetch_objcore , OA_LASTMODIFIED , floor ( bo -> fetch_objcore -> t_origin ) ) ) ;\n return ( 0 ) ;\n }"}
{"idx": 7691, "target": 0, "func": "static inline void write_IRQreg_ilr ( OpenPICState * opp , int n_IRQ , uint32_t val ) {\n if ( opp -> flags & OPENPIC_FLAG_ILR ) {\n IRQSource * src = & opp -> src [ n_IRQ ] ;\n src -> output = inttgt_to_output ( val & ILR_INTTGT_MASK ) ;\n DPRINTF ( \"Set ILR %d to 0x%08x, output %d\\n\" , n_IRQ , src -> idr , src -> output ) ;\n }\n }"}
{"idx": 7692, "target": 0, "func": "static void apply_loop_filter ( Vp3DecodeContext * s , int plane , int ystart , int yend ) {\n int x , y ;\n int * bounding_values = s -> bounding_values_array + 127 ;\n int width = s -> fragment_width [ ! ! plane ] ;\n int height = s -> fragment_height [ ! ! plane ] ;\n int fragment = s -> fragment_start [ plane ] + ystart * width ;\n int stride = s -> current_frame . f -> linesize [ plane ] ;\n uint8_t * plane_data = s -> current_frame . f -> data [ plane ] ;\n if ( ! s -> flipped_image ) stride = - stride ;\n plane_data += s -> data_offset [ plane ] + 8 * ystart * stride ;\n for ( y = ystart ;\n y < yend ;\n y ++ ) {\n for ( x = 0 ;\n x < width ;\n x ++ ) {\n if ( s -> all_fragments [ fragment ] . coding_method != MODE_COPY ) {\n if ( x > 0 ) {\n s -> vp3dsp . h_loop_filter ( plane_data + 8 * x , stride , bounding_values ) ;\n }\n if ( y > 0 ) {\n s -> vp3dsp . v_loop_filter ( plane_data + 8 * x , stride , bounding_values ) ;\n }\n if ( ( x < width - 1 ) && ( s -> all_fragments [ fragment + 1 ] . coding_method == MODE_COPY ) ) {\n s -> vp3dsp . h_loop_filter ( plane_data + 8 * x + 8 , stride , bounding_values ) ;\n }\n if ( ( y < height - 1 ) && ( s -> all_fragments [ fragment + width ] . coding_method == MODE_COPY ) ) {\n s -> vp3dsp . v_loop_filter ( plane_data + 8 * x + 8 * stride , stride , bounding_values ) ;\n }\n }\n fragment ++ ;\n }\n plane_data += 8 * stride ;\n }\n }"}
{"idx": 7693, "target": 0, "func": "static void lsf_decode_fp ( float * lsfnew , float * lsf_history , const SiprParameters * parm ) {\n int i ;\n float lsf_tmp [ LP_FILTER_ORDER ] ;\n dequant ( lsf_tmp , parm -> vq_indexes , lsf_codebooks ) ;\n for ( i = 0 ;\n i < LP_FILTER_ORDER ;\n i ++ ) lsfnew [ i ] = lsf_history [ i ] * 0.33 + lsf_tmp [ i ] + mean_lsf [ i ] ;\n ff_sort_nearly_sorted_floats ( lsfnew , LP_FILTER_ORDER - 1 ) ;\n ff_set_min_dist_lsf ( lsfnew , LSFQ_DIFF_MIN , LP_FILTER_ORDER - 1 ) ;\n lsfnew [ 9 ] = FFMIN ( lsfnew [ LP_FILTER_ORDER - 1 ] , 1.3 * M_PI ) ;\n memcpy ( lsf_history , lsf_tmp , LP_FILTER_ORDER * sizeof ( * lsf_history ) ) ;\n for ( i = 0 ;\n i < LP_FILTER_ORDER - 1 ;\n i ++ ) lsfnew [ i ] = cos ( lsfnew [ i ] ) ;\n lsfnew [ LP_FILTER_ORDER - 1 ] *= 6.153848 / M_PI ;\n }"}
{"idx": 7694, "target": 1, "func": "int evutil_make_socket_nonblocking ( int fd ) {\n # ifdef WIN32 {\n unsigned long nonblocking = 1 ;\n ioctlsocket ( fd , FIONBIO , ( unsigned long * ) & nonblocking ) ;\n }\n # else if ( fcntl ( fd , F_SETFL , O_NONBLOCK ) == - 1 ) {\n event_warn ( \"fcntl(O_NONBLOCK)\" ) ;\n return - 1 ;\n }\n # endif return 0 ;\n }"}
{"idx": 7695, "target": 0, "func": "static cmsBool AllocArray ( cmsContext ContextID , _cmsDICarray * a , cmsUInt32Number Count , cmsUInt32Number Length ) {\n memset ( a , 0 , sizeof ( _cmsDICarray ) ) ;\n if ( ! AllocElem ( ContextID , & a -> Name , Count ) ) goto Error ;\n if ( ! AllocElem ( ContextID , & a -> Value , Count ) ) goto Error ;\n if ( Length > 16 ) {\n if ( ! AllocElem ( ContextID , & a -> DisplayName , Count ) ) goto Error ;\n }\n if ( Length > 24 ) {\n if ( ! AllocElem ( ContextID , & a -> DisplayValue , Count ) ) goto Error ;\n }\n return TRUE ;\n Error : FreeArray ( a ) ;\n return FALSE ;\n }"}
{"idx": 7696, "target": 0, "func": "static int get_qzbin_factor ( int q , vpx_bit_depth_t bit_depth ) {\n const int quant = vp9_dc_quant ( q , 0 , bit_depth ) ;\n # if CONFIG_VP9_HIGHBITDEPTH switch ( bit_depth ) {\n case VPX_BITS_8 : return q == 0 ? 64 : ( quant < 148 ? 84 : 80 ) ;\n case VPX_BITS_10 : return q == 0 ? 64 : ( quant < 592 ? 84 : 80 ) ;\n case VPX_BITS_12 : return q == 0 ? 64 : ( quant < 2368 ? 84 : 80 ) ;\n default : assert ( 0 && \"bit_depth should be VPX_BITS_8, VPX_BITS_10 or VPX_BITS_12\" ) ;\n return - 1 ;\n }\n # else ( void ) bit_depth ;\n return q == 0 ? 64 : ( quant < 148 ? 84 : 80 ) ;\n # endif }"}
{"idx": 7697, "target": 0, "func": "static void free_months ( UChar * months [ ] ) {\n free_symbols ( months , MONTH_COUNT - 1 ) ;\n }"}
{"idx": 7698, "target": 0, "func": "static void pred_spatial_direct_motion ( H264Context * const h , int * mb_type ) {\n int b8_stride = 2 ;\n int b4_stride = h -> b_stride ;\n int mb_xy = h -> mb_xy , mb_y = h -> mb_y ;\n int mb_type_col [ 2 ] ;\n const int16_t ( * l1mv0 ) [ 2 ] , ( * l1mv1 ) [ 2 ] ;\n const int8_t * l1ref0 , * l1ref1 ;\n const int is_b8x8 = IS_8X8 ( * mb_type ) ;\n unsigned int sub_mb_type = MB_TYPE_L0L1 ;\n int i8 , i4 ;\n int ref [ 2 ] ;\n int mv [ 2 ] ;\n int list ;\n assert ( h -> ref_list [ 1 ] [ 0 ] . reference & 3 ) ;\n await_reference_mb_row ( h , & h -> ref_list [ 1 ] [ 0 ] , h -> mb_y + ! ! IS_INTERLACED ( * mb_type ) ) ;\n # define MB_TYPE_16x16_OR_INTRA ( MB_TYPE_16x16 | MB_TYPE_INTRA4x4 | MB_TYPE_INTRA16x16 | MB_TYPE_INTRA_PCM ) for ( list = 0 ;\n list < 2 ;\n list ++ ) {\n int left_ref = h -> ref_cache [ list ] [ scan8 [ 0 ] - 1 ] ;\n int top_ref = h -> ref_cache [ list ] [ scan8 [ 0 ] - 8 ] ;\n int refc = h -> ref_cache [ list ] [ scan8 [ 0 ] - 8 + 4 ] ;\n const int16_t * C = h -> mv_cache [ list ] [ scan8 [ 0 ] - 8 + 4 ] ;\n if ( refc == PART_NOT_AVAILABLE ) {\n refc = h -> ref_cache [ list ] [ scan8 [ 0 ] - 8 - 1 ] ;\n C = h -> mv_cache [ list ] [ scan8 [ 0 ] - 8 - 1 ] ;\n }\n ref [ list ] = FFMIN3 ( ( unsigned ) left_ref , ( unsigned ) top_ref , ( unsigned ) refc ) ;\n if ( ref [ list ] >= 0 ) {\n const int16_t * const A = h -> mv_cache [ list ] [ scan8 [ 0 ] - 1 ] ;\n const int16_t * const B = h -> mv_cache [ list ] [ scan8 [ 0 ] - 8 ] ;\n int match_count = ( left_ref == ref [ list ] ) + ( top_ref == ref [ list ] ) + ( refc == ref [ list ] ) ;\n if ( match_count > 1 ) {\n mv [ list ] = pack16to32 ( mid_pred ( A [ 0 ] , B [ 0 ] , C [ 0 ] ) , mid_pred ( A [ 1 ] , B [ 1 ] , C [ 1 ] ) ) ;\n }\n else {\n assert ( match_count == 1 ) ;\n if ( left_ref == ref [ list ] ) {\n mv [ list ] = AV_RN32A ( A ) ;\n }\n else if ( top_ref == ref [ list ] ) {\n mv [ list ] = AV_RN32A ( B ) ;\n }\n else {\n mv [ list ] = AV_RN32A ( C ) ;\n }\n }\n }\n else {\n int mask = ~ ( MB_TYPE_L0 << ( 2 * list ) ) ;\n mv [ list ] = 0 ;\n ref [ list ] = - 1 ;\n if ( ! is_b8x8 ) * mb_type &= mask ;\n sub_mb_type &= mask ;\n }\n }\n if ( ref [ 0 ] < 0 && ref [ 1 ] < 0 ) {\n ref [ 0 ] = ref [ 1 ] = 0 ;\n if ( ! is_b8x8 ) * mb_type |= MB_TYPE_L0L1 ;\n sub_mb_type |= MB_TYPE_L0L1 ;\n }\n if ( ! ( is_b8x8 | mv [ 0 ] | mv [ 1 ] ) ) {\n fill_rectangle ( & h -> ref_cache [ 0 ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , ( uint8_t ) ref [ 0 ] , 1 ) ;\n fill_rectangle ( & h -> ref_cache [ 1 ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , ( uint8_t ) ref [ 1 ] , 1 ) ;\n fill_rectangle ( & h -> mv_cache [ 0 ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , 0 , 4 ) ;\n fill_rectangle ( & h -> mv_cache [ 1 ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , 0 , 4 ) ;\n * mb_type = ( * mb_type & ~ ( MB_TYPE_8x8 | MB_TYPE_16x8 | MB_TYPE_8x16 | MB_TYPE_P1L0 | MB_TYPE_P1L1 ) ) | MB_TYPE_16x16 | MB_TYPE_DIRECT2 ;\n return ;\n }\n if ( IS_INTERLACED ( h -> ref_list [ 1 ] [ 0 ] . mb_type [ mb_xy ] ) ) {\n if ( ! IS_INTERLACED ( * mb_type ) ) {\n mb_y = ( h -> mb_y & ~ 1 ) + h -> col_parity ;\n mb_xy = h -> mb_x + ( ( h -> mb_y & ~ 1 ) + h -> col_parity ) * h -> mb_stride ;\n b8_stride = 0 ;\n }\n else {\n mb_y += h -> col_fieldoff ;\n mb_xy += h -> mb_stride * h -> col_fieldoff ;\n }\n goto single_col ;\n }\n else {\n if ( IS_INTERLACED ( * mb_type ) ) {\n mb_y = h -> mb_y & ~ 1 ;\n mb_xy = h -> mb_x + ( h -> mb_y & ~ 1 ) * h -> mb_stride ;\n mb_type_col [ 0 ] = h -> ref_list [ 1 ] [ 0 ] . mb_type [ mb_xy ] ;\n mb_type_col [ 1 ] = h -> ref_list [ 1 ] [ 0 ] . mb_type [ mb_xy + h -> mb_stride ] ;\n b8_stride = 2 + 4 * h -> mb_stride ;\n b4_stride *= 6 ;\n if ( IS_INTERLACED ( mb_type_col [ 0 ] ) != IS_INTERLACED ( mb_type_col [ 1 ] ) ) {\n mb_type_col [ 0 ] &= ~ MB_TYPE_INTERLACED ;\n mb_type_col [ 1 ] &= ~ MB_TYPE_INTERLACED ;\n }\n sub_mb_type |= MB_TYPE_16x16 | MB_TYPE_DIRECT2 ;\n if ( ( mb_type_col [ 0 ] & MB_TYPE_16x16_OR_INTRA ) && ( mb_type_col [ 1 ] & MB_TYPE_16x16_OR_INTRA ) && ! is_b8x8 ) {\n * mb_type |= MB_TYPE_16x8 | MB_TYPE_DIRECT2 ;\n }\n else {\n * mb_type |= MB_TYPE_8x8 ;\n }\n }\n else {\n single_col : mb_type_col [ 0 ] = mb_type_col [ 1 ] = h -> ref_list [ 1 ] [ 0 ] . mb_type [ mb_xy ] ;\n sub_mb_type |= MB_TYPE_16x16 | MB_TYPE_DIRECT2 ;\n if ( ! is_b8x8 && ( mb_type_col [ 0 ] & MB_TYPE_16x16_OR_INTRA ) ) {\n * mb_type |= MB_TYPE_16x16 | MB_TYPE_DIRECT2 ;\n }\n else if ( ! is_b8x8 && ( mb_type_col [ 0 ] & ( MB_TYPE_16x8 | MB_TYPE_8x16 ) ) ) {\n * mb_type |= MB_TYPE_DIRECT2 | ( mb_type_col [ 0 ] & ( MB_TYPE_16x8 | MB_TYPE_8x16 ) ) ;\n }\n else {\n if ( ! h -> sps . direct_8x8_inference_flag ) {\n sub_mb_type += ( MB_TYPE_8x8 - MB_TYPE_16x16 ) ;\n }\n * mb_type |= MB_TYPE_8x8 ;\n }\n }\n }\n await_reference_mb_row ( h , & h -> ref_list [ 1 ] [ 0 ] , mb_y ) ;\n l1mv0 = & h -> ref_list [ 1 ] [ 0 ] . motion_val [ 0 ] [ h -> mb2b_xy [ mb_xy ] ] ;\n l1mv1 = & h -> ref_list [ 1 ] [ 0 ] . motion_val [ 1 ] [ h -> mb2b_xy [ mb_xy ] ] ;\n l1ref0 = & h -> ref_list [ 1 ] [ 0 ] . ref_index [ 0 ] [ 4 * mb_xy ] ;\n l1ref1 = & h -> ref_list [ 1 ] [ 0 ] . ref_index [ 1 ] [ 4 * mb_xy ] ;\n if ( ! b8_stride ) {\n if ( h -> mb_y & 1 ) {\n l1ref0 += 2 ;\n l1ref1 += 2 ;\n l1mv0 += 2 * b4_stride ;\n l1mv1 += 2 * b4_stride ;\n }\n }\n if ( IS_INTERLACED ( * mb_type ) != IS_INTERLACED ( mb_type_col [ 0 ] ) ) {\n int n = 0 ;\n for ( i8 = 0 ;\n i8 < 4 ;\n i8 ++ ) {\n int x8 = i8 & 1 ;\n int y8 = i8 >> 1 ;\n int xy8 = x8 + y8 * b8_stride ;\n int xy4 = 3 * x8 + y8 * b4_stride ;\n int a , b ;\n if ( is_b8x8 && ! IS_DIRECT ( h -> sub_mb_type [ i8 ] ) ) continue ;\n h -> sub_mb_type [ i8 ] = sub_mb_type ;\n fill_rectangle ( & h -> ref_cache [ 0 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , ( uint8_t ) ref [ 0 ] , 1 ) ;\n fill_rectangle ( & h -> ref_cache [ 1 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , ( uint8_t ) ref [ 1 ] , 1 ) ;\n if ( ! IS_INTRA ( mb_type_col [ y8 ] ) && ! h -> ref_list [ 1 ] [ 0 ] . long_ref && ( ( l1ref0 [ xy8 ] == 0 && FFABS ( l1mv0 [ xy4 ] [ 0 ] ) <= 1 && FFABS ( l1mv0 [ xy4 ] [ 1 ] ) <= 1 ) || ( l1ref0 [ xy8 ] < 0 && l1ref1 [ xy8 ] == 0 && FFABS ( l1mv1 [ xy4 ] [ 0 ] ) <= 1 && FFABS ( l1mv1 [ xy4 ] [ 1 ] ) <= 1 ) ) ) {\n a = b = 0 ;\n if ( ref [ 0 ] > 0 ) a = mv [ 0 ] ;\n if ( ref [ 1 ] > 0 ) b = mv [ 1 ] ;\n n ++ ;\n }\n else {\n a = mv [ 0 ] ;\n b = mv [ 1 ] ;\n }\n fill_rectangle ( & h -> mv_cache [ 0 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , a , 4 ) ;\n fill_rectangle ( & h -> mv_cache [ 1 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , b , 4 ) ;\n }\n if ( ! is_b8x8 && ! ( n & 3 ) ) * mb_type = ( * mb_type & ~ ( MB_TYPE_8x8 | MB_TYPE_16x8 | MB_TYPE_8x16 | MB_TYPE_P1L0 | MB_TYPE_P1L1 ) ) | MB_TYPE_16x16 | MB_TYPE_DIRECT2 ;\n }\n else if ( IS_16X16 ( * mb_type ) ) {\n int a , b ;\n fill_rectangle ( & h -> ref_cache [ 0 ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , ( uint8_t ) ref [ 0 ] , 1 ) ;\n fill_rectangle ( & h -> ref_cache [ 1 ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , ( uint8_t ) ref [ 1 ] , 1 ) ;\n if ( ! IS_INTRA ( mb_type_col [ 0 ] ) && ! h -> ref_list [ 1 ] [ 0 ] . long_ref && ( ( l1ref0 [ 0 ] == 0 && FFABS ( l1mv0 [ 0 ] [ 0 ] ) <= 1 && FFABS ( l1mv0 [ 0 ] [ 1 ] ) <= 1 ) || ( l1ref0 [ 0 ] < 0 && l1ref1 [ 0 ] == 0 && FFABS ( l1mv1 [ 0 ] [ 0 ] ) <= 1 && FFABS ( l1mv1 [ 0 ] [ 1 ] ) <= 1 && h -> x264_build > 33U ) ) ) {\n a = b = 0 ;\n if ( ref [ 0 ] > 0 ) a = mv [ 0 ] ;\n if ( ref [ 1 ] > 0 ) b = mv [ 1 ] ;\n }\n else {\n a = mv [ 0 ] ;\n b = mv [ 1 ] ;\n }\n fill_rectangle ( & h -> mv_cache [ 0 ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , a , 4 ) ;\n fill_rectangle ( & h -> mv_cache [ 1 ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , b , 4 ) ;\n }\n else {\n int n = 0 ;\n for ( i8 = 0 ;\n i8 < 4 ;\n i8 ++ ) {\n const int x8 = i8 & 1 ;\n const int y8 = i8 >> 1 ;\n if ( is_b8x8 && ! IS_DIRECT ( h -> sub_mb_type [ i8 ] ) ) continue ;\n h -> sub_mb_type [ i8 ] = sub_mb_type ;\n fill_rectangle ( & h -> mv_cache [ 0 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , mv [ 0 ] , 4 ) ;\n fill_rectangle ( & h -> mv_cache [ 1 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , mv [ 1 ] , 4 ) ;\n fill_rectangle ( & h -> ref_cache [ 0 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , ( uint8_t ) ref [ 0 ] , 1 ) ;\n fill_rectangle ( & h -> ref_cache [ 1 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , ( uint8_t ) ref [ 1 ] , 1 ) ;\n assert ( b8_stride == 2 ) ;\n if ( ! IS_INTRA ( mb_type_col [ 0 ] ) && ! h -> ref_list [ 1 ] [ 0 ] . long_ref && ( l1ref0 [ i8 ] == 0 || ( l1ref0 [ i8 ] < 0 && l1ref1 [ i8 ] == 0 && h -> x264_build > 33U ) ) ) {\n const int16_t ( * l1mv ) [ 2 ] = l1ref0 [ i8 ] == 0 ? l1mv0 : l1mv1 ;\n if ( IS_SUB_8X8 ( sub_mb_type ) ) {\n const int16_t * mv_col = l1mv [ x8 * 3 + y8 * 3 * b4_stride ] ;\n if ( FFABS ( mv_col [ 0 ] ) <= 1 && FFABS ( mv_col [ 1 ] ) <= 1 ) {\n if ( ref [ 0 ] == 0 ) fill_rectangle ( & h -> mv_cache [ 0 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , 0 , 4 ) ;\n if ( ref [ 1 ] == 0 ) fill_rectangle ( & h -> mv_cache [ 1 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , 0 , 4 ) ;\n n += 4 ;\n }\n }\n else {\n int m = 0 ;\n for ( i4 = 0 ;\n i4 < 4 ;\n i4 ++ ) {\n const int16_t * mv_col = l1mv [ x8 * 2 + ( i4 & 1 ) + ( y8 * 2 + ( i4 >> 1 ) ) * b4_stride ] ;\n if ( FFABS ( mv_col [ 0 ] ) <= 1 && FFABS ( mv_col [ 1 ] ) <= 1 ) {\n if ( ref [ 0 ] == 0 ) AV_ZERO32 ( h -> mv_cache [ 0 ] [ scan8 [ i8 * 4 + i4 ] ] ) ;\n if ( ref [ 1 ] == 0 ) AV_ZERO32 ( h -> mv_cache [ 1 ] [ scan8 [ i8 * 4 + i4 ] ] ) ;\n m ++ ;\n }\n }\n if ( ! ( m & 3 ) ) h -> sub_mb_type [ i8 ] += MB_TYPE_16x16 - MB_TYPE_8x8 ;\n n += m ;\n }\n }\n }\n if ( ! is_b8x8 && ! ( n & 15 ) ) * mb_type = ( * mb_type & ~ ( MB_TYPE_8x8 | MB_TYPE_16x8 | MB_TYPE_8x16 | MB_TYPE_P1L0 | MB_TYPE_P1L1 ) ) | MB_TYPE_16x16 | MB_TYPE_DIRECT2 ;\n }\n }"}
{"idx": 7699, "target": 0, "func": "static int32_t u_printf_percent_handler ( const u_printf_stream_handler * handler , void * context , ULocaleBundle * formatBundle , const u_printf_spec_info * info , const ufmt_args * args ) {\n double num = ( double ) ( args [ 0 ] . doubleValue ) ;\n UNumberFormat * format ;\n UChar result [ UPRINTF_BUFFER_SIZE ] ;\n UChar prefixBuffer [ UPRINTF_BUFFER_SIZE ] ;\n int32_t prefixBufferLen = sizeof ( prefixBuffer ) ;\n int32_t minDecimalDigits ;\n int32_t maxDecimalDigits ;\n int32_t resultLen ;\n UErrorCode status = U_ZERO_ERROR ;\n prefixBuffer [ 0 ] = 0 ;\n format = u_locbund_getNumberFormat ( formatBundle , UNUM_PERCENT ) ;\n if ( format == 0 ) return 0 ;\n minDecimalDigits = unum_getAttribute ( format , UNUM_MIN_FRACTION_DIGITS ) ;\n maxDecimalDigits = unum_getAttribute ( format , UNUM_MAX_FRACTION_DIGITS ) ;\n if ( info -> fPrecision != - 1 ) {\n unum_setAttribute ( format , UNUM_FRACTION_DIGITS , info -> fPrecision ) ;\n }\n else if ( info -> fAlt ) {\n unum_setAttribute ( format , UNUM_FRACTION_DIGITS , 6 ) ;\n }\n else {\n unum_setAttribute ( format , UNUM_FRACTION_DIGITS , 6 ) ;\n }\n if ( info -> fShowSign ) {\n u_printf_set_sign ( format , info , prefixBuffer , & prefixBufferLen , & status ) ;\n }\n resultLen = unum_formatDouble ( format , num , result , UPRINTF_BUFFER_SIZE , 0 , & status ) ;\n if ( U_FAILURE ( status ) ) {\n resultLen = 0 ;\n }\n unum_setAttribute ( format , UNUM_MIN_FRACTION_DIGITS , minDecimalDigits ) ;\n unum_setAttribute ( format , UNUM_MAX_FRACTION_DIGITS , maxDecimalDigits ) ;\n if ( info -> fShowSign ) {\n UErrorCode localStatus = U_ZERO_ERROR ;\n u_printf_reset_sign ( format , info , prefixBuffer , & prefixBufferLen , & localStatus ) ;\n }\n return handler -> pad_and_justify ( context , info , result , resultLen ) ;\n }"}
{"idx": 7700, "target": 0, "func": "static void dummy_fdc_tc ( void * opaque , int irq , int level ) {\n }"}
{"idx": 7701, "target": 0, "func": "int qemuAgentShutdown ( qemuAgentPtr mon , qemuAgentShutdownMode mode ) {\n int ret = - 1 ;\n virJSONValuePtr cmd ;\n virJSONValuePtr reply = NULL ;\n cmd = qemuAgentMakeCommand ( \"guest-shutdown\" , \"s:mode\" , qemuAgentShutdownModeTypeToString ( mode ) , NULL ) ;\n if ( ! cmd ) return - 1 ;\n if ( mode == QEMU_AGENT_SHUTDOWN_REBOOT ) mon -> await_event = QEMU_AGENT_EVENT_RESET ;\n else mon -> await_event = QEMU_AGENT_EVENT_SHUTDOWN ;\n ret = qemuAgentCommand ( mon , cmd , & reply , false , VIR_DOMAIN_QEMU_AGENT_COMMAND_SHUTDOWN ) ;\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 7702, "target": 0, "func": "static void test_bug40365 ( void ) {\n uint rc , i ;\n MYSQL_STMT * stmt = 0 ;\n MYSQL_BIND my_bind [ 2 ] ;\n my_bool is_null [ 2 ] = {\n 0 }\n ;\n MYSQL_TIME tm [ 2 ] ;\n DBUG_ENTER ( \"test_bug40365\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE t1(c1 DATETIME, \\ c2 DATE)\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"INSERT INTO t1 VALUES(?, ?)\" ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 2 ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_DATETIME ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_DATE ;\n for ( i = 0 ;\n i < ( int ) array_elements ( my_bind ) ;\n i ++ ) {\n my_bind [ i ] . buffer = ( void * ) & tm [ i ] ;\n my_bind [ i ] . is_null = & is_null [ i ] ;\n }\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n for ( i = 0 ;\n i < ( int ) array_elements ( my_bind ) ;\n i ++ ) {\n tm [ i ] . neg = 0 ;\n tm [ i ] . second_part = 0 ;\n tm [ i ] . year = 2009 ;\n tm [ i ] . month = 2 ;\n tm [ i ] . day = 29 ;\n tm [ i ] . hour = 0 ;\n tm [ i ] . minute = 0 ;\n tm [ i ] . second = 0 ;\n }\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n mysql_stmt_close ( stmt ) ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT * FROM t1\" ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_store_result ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n\" ) ;\n for ( i = 0 ;\n i < array_elements ( my_bind ) ;\n i ++ ) {\n if ( ! opt_silent ) fprintf ( stdout , \"\\ntime[%d]: %02d-%02d-%02d \" , i , tm [ i ] . year , tm [ i ] . month , tm [ i ] . day ) ;\n DIE_UNLESS ( tm [ i ] . year == 0 ) ;\n DIE_UNLESS ( tm [ i ] . month == 0 ) ;\n DIE_UNLESS ( tm [ i ] . day == 0 ) ;\n }\n mysql_stmt_close ( stmt ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 7703, "target": 1, "func": "static int dissect_ipmi_trace ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n guint block_type , chn_num , data_type , tmp ;\n tvbuff_t * next_tvb ;\n if ( tvb_captured_length ( tvb ) < 11 ) {\n call_data_dissector ( tvb , pinfo , tree ) ;\n return tvb_captured_length ( tvb ) ;\n }\n tmp = tvb_get_guint8 ( tvb , 0 ) ;\n block_type = ( tmp >> 4 ) & 3 ;\n chn_num = tmp & 0xF ;\n data_type = tvb_get_guint8 ( tvb , 7 ) ;\n col_add_fstr ( pinfo -> cinfo , COL_DEF_SRC , \"Channel %d\" , chn_num ) ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , val_to_str ( data_type , str_protocol_types , \"Reserved (0x%02x)\" ) ) ;\n col_clear ( pinfo -> cinfo , COL_INFO ) ;\n if ( block_type == HPM2_TRACE_PACKET_DATA ) {\n col_set_str ( pinfo -> cinfo , COL_INFO , \"Trace Packet Data\" ) ;\n }\n else if ( block_type == HPM2_CHN_STATE_NOTIFY ) {\n col_set_str ( pinfo -> cinfo , COL_INFO , \"Channel State Change Notification\" ) ;\n }\n else if ( block_type == HPM2_EMBED_ASCII_MSG ) {\n char str [ 257 ] ;\n guint str_len = tvb_get_guint8 ( tvb , 10 ) ;\n if ( str_len ) {\n tvb_memcpy ( tvb , str , 11 , str_len ) ;\n str [ str_len ] = 0 ;\n col_add_str ( pinfo -> cinfo , COL_INFO , str ) ;\n }\n }\n else {\n col_set_str ( pinfo -> cinfo , COL_INFO , \"Reserved\" ) ;\n }\n if ( tree ) {\n proto_item * ti ;\n proto_tree * trace_tree ;\n proto_tree * stamp_tree ;\n nstime_t timestamp ;\n ti = proto_tree_add_item ( tree , proto_ipmi_trace , tvb , 0 , - 1 , ENC_NA ) ;\n trace_tree = proto_item_add_subtree ( ti , ett_ipmi_trace ) ;\n proto_tree_add_bitmask ( trace_tree , tvb , 0 , hf_trace_block_type , ett_trace_block_type , bits_trace_block_type , ENC_LITTLE_ENDIAN ) ;\n timestamp . secs = tvb_get_letohl ( tvb , 1 ) ;\n timestamp . nsecs = ( int ) tvb_get_letohs ( tvb , 5 ) * 1000000 ;\n ti = proto_tree_add_time ( trace_tree , hf_trace_timestamp , tvb , 1 , 6 , & timestamp ) ;\n stamp_tree = proto_item_add_subtree ( ti , ett_trace_timestamp ) ;\n proto_tree_add_item ( stamp_tree , hf_trace_timestamp_sec , tvb , 1 , 4 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( stamp_tree , hf_trace_timestamp_msec , tvb , 5 , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( trace_tree , hf_trace_data_type , tvb , 7 , 1 , ENC_LITTLE_ENDIAN ) ;\n if ( data_type == IPMI_PROTO_IPMB_1_0 ) {\n proto_tree_add_bitmask ( trace_tree , tvb , 8 , hf_trace_protocol_data , ett_trace_protocol_data , bits_ipmb_protocol_data , ENC_LITTLE_ENDIAN ) ;\n }\n else if ( data_type == IPMI_PROTO_KCS || data_type == IPMI_PROTO_SMIC || data_type == IPMI_PROTO_BT_10 || data_type == IPMI_PROTO_BT_15 ) {\n proto_tree_add_bitmask ( trace_tree , tvb , 8 , hf_trace_protocol_data , ett_trace_protocol_data , bits_host_protocol_data , ENC_LITTLE_ENDIAN ) ;\n }\n else {\n proto_tree_add_item ( trace_tree , hf_trace_protocol_data , tvb , 8 , 2 , ENC_LITTLE_ENDIAN ) ;\n }\n proto_tree_add_item ( trace_tree , hf_trace_data_len , tvb , 10 , 1 , ENC_LITTLE_ENDIAN ) ;\n }\n next_tvb = tvb_new_subset_remaining ( tvb , 11 ) ;\n if ( block_type == HPM2_TRACE_PACKET_DATA ) {\n ipmi_dissect_arg_t arg ;\n arg . context = IPMI_E_NONE ;\n arg . channel = chn_num ;\n arg . flags = tvb_get_guint8 ( tvb , 8 ) ;\n if ( ! dissector_try_uint_new ( proto_dissector_table , data_type , next_tvb , pinfo , tree , TRUE , & arg ) ) {\n call_data_dissector ( next_tvb , pinfo , tree ) ;\n }\n }\n else if ( block_type == HPM2_CHN_STATE_NOTIFY && data_type == IPMI_PROTO_IPMB_1_0 ) {\n dissect_ipmb_state_notify ( next_tvb , tree ) ;\n }\n else {\n call_data_dissector ( next_tvb , pinfo , tree ) ;\n }\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 7704, "target": 0, "func": "static vpx_codec_err_t ctrl_set_tile_rows ( vpx_codec_alg_priv_t * ctx , va_list args ) {\n struct vp9_extracfg extra_cfg = ctx -> extra_cfg ;\n extra_cfg . tile_rows = CAST ( VP9E_SET_TILE_ROWS , args ) ;\n return update_extra_cfg ( ctx , & extra_cfg ) ;\n }"}
{"idx": 7705, "target": 0, "func": "TSParseResult TSMimeHdrParse ( TSMimeParser parser , TSMBuffer bufp , TSMLoc obj , const char * * start , const char * end ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( obj ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( obj ) == TS_SUCCESS ) ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) start ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) * start ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) end ) == TS_SUCCESS ) ;\n if ( ! isWriteable ( bufp ) ) {\n return TS_PARSE_ERROR ;\n }\n MIMEHdrImpl * mh = _hdr_mloc_to_mime_hdr_impl ( obj ) ;\n return ( TSParseResult ) mime_parser_parse ( ( MIMEParser * ) parser , ( ( HdrHeapSDKHandle * ) bufp ) -> m_heap , mh , start , end , false , false ) ;\n }"}
{"idx": 7706, "target": 0, "func": "static void loopfilter_frame ( VP9_COMP * cpi , VP9_COMMON * cm ) {\n MACROBLOCKD * xd = & cpi -> mb . e_mbd ;\n struct loopfilter * lf = & cm -> lf ;\n if ( xd -> lossless ) {\n lf -> filter_level = 0 ;\n }\n else {\n struct vpx_usec_timer timer ;\n vp9_clear_system_state ( ) ;\n vpx_usec_timer_start ( & timer ) ;\n vp9_pick_filter_level ( cpi -> Source , cpi , cpi -> sf . lpf_pick ) ;\n vpx_usec_timer_mark ( & timer ) ;\n cpi -> time_pick_lpf += vpx_usec_timer_elapsed ( & timer ) ;\n }\n if ( lf -> filter_level > 0 ) {\n vp9_loop_filter_frame ( cm -> frame_to_show , cm , xd , lf -> filter_level , 0 , 0 ) ;\n }\n vp9_extend_frame_inner_borders ( cm -> frame_to_show ) ;\n }"}
{"idx": 7707, "target": 0, "func": "static int open_pack_bitmap_1 ( struct packed_git * packfile ) {\n int fd ;\n struct stat st ;\n char * idx_name ;\n if ( open_pack_index ( packfile ) ) return - 1 ;\n idx_name = pack_bitmap_filename ( packfile ) ;\n fd = git_open_noatime ( idx_name ) ;\n free ( idx_name ) ;\n if ( fd < 0 ) return - 1 ;\n if ( fstat ( fd , & st ) ) {\n close ( fd ) ;\n return - 1 ;\n }\n if ( bitmap_git . pack ) {\n warning ( \"ignoring extra bitmap file: %s\" , packfile -> pack_name ) ;\n close ( fd ) ;\n return - 1 ;\n }\n bitmap_git . pack = packfile ;\n bitmap_git . map_size = xsize_t ( st . st_size ) ;\n bitmap_git . map = xmmap ( NULL , bitmap_git . map_size , PROT_READ , MAP_PRIVATE , fd , 0 ) ;\n bitmap_git . map_pos = 0 ;\n close ( fd ) ;\n if ( load_bitmap_header ( & bitmap_git ) < 0 ) {\n munmap ( bitmap_git . map , bitmap_git . map_size ) ;\n bitmap_git . map = NULL ;\n bitmap_git . map_size = 0 ;\n return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 7708, "target": 0, "func": "TEST ( ExtensionCSPValidator , IsSandboxed ) {\n EXPECT_FALSE ( ContentSecurityPolicyIsSandboxed ( std : : string ( ) , Manifest : : TYPE_EXTENSION ) ) ;\n EXPECT_FALSE ( ContentSecurityPolicyIsSandboxed ( \"img-src https://google.com\" , Manifest : : TYPE_EXTENSION ) ) ;\n EXPECT_TRUE ( ContentSecurityPolicyIsSandboxed ( \"sandbox\" , Manifest : : TYPE_EXTENSION ) ) ;\n EXPECT_TRUE ( ContentSecurityPolicyIsSandboxed ( \"sandbox allow-scripts\" , Manifest : : TYPE_EXTENSION ) ) ;\n EXPECT_FALSE ( ContentSecurityPolicyIsSandboxed ( \"sandbox allow-same-origin\" , Manifest : : TYPE_EXTENSION ) ) ;\n EXPECT_TRUE ( ContentSecurityPolicyIsSandboxed ( \"sandbox;\n img-src https://google.com\" , Manifest : : TYPE_EXTENSION ) ) ;\n EXPECT_TRUE ( ContentSecurityPolicyIsSandboxed ( \"sandbox allow-top-navigation\" , Manifest : : TYPE_EXTENSION ) ) ;\n EXPECT_FALSE ( ContentSecurityPolicyIsSandboxed ( \"sandbox allow-top-navigation\" , Manifest : : TYPE_PLATFORM_APP ) ) ;\n EXPECT_TRUE ( ContentSecurityPolicyIsSandboxed ( \"sandbox allow-popups\" , Manifest : : TYPE_EXTENSION ) ) ;\n EXPECT_TRUE ( ContentSecurityPolicyIsSandboxed ( \"sandbox allow-popups\" , Manifest : : TYPE_PLATFORM_APP ) ) ;\n }"}
{"idx": 7709, "target": 0, "func": "static int ni_prepare_read ( AVFormatContext * s ) {\n AVIContext * avi = s -> priv_data ;\n int best_stream_index = 0 ;\n AVStream * best_st = NULL ;\n AVIStream * best_ast ;\n int64_t best_ts = INT64_MAX ;\n int i ;\n for ( i = 0 ;\n i < s -> nb_streams ;\n i ++ ) {\n AVStream * st = s -> streams [ i ] ;\n AVIStream * ast = st -> priv_data ;\n int64_t ts = ast -> frame_offset ;\n int64_t last_ts ;\n if ( ! st -> nb_index_entries ) continue ;\n last_ts = st -> index_entries [ st -> nb_index_entries - 1 ] . timestamp ;\n if ( ! ast -> remaining && ts > last_ts ) continue ;\n ts = av_rescale_q ( ts , st -> time_base , ( AVRational ) {\n FFMAX ( 1 , ast -> sample_size ) , AV_TIME_BASE }\n ) ;\n av_log ( s , AV_LOG_TRACE , \"%\" PRId64 \" %d/%d %\" PRId64 \"\\n\" , ts , st -> time_base . num , st -> time_base . den , ast -> frame_offset ) ;\n if ( ts < best_ts ) {\n best_ts = ts ;\n best_st = st ;\n best_stream_index = i ;\n }\n }\n if ( ! best_st ) return AVERROR_EOF ;\n best_ast = best_st -> priv_data ;\n best_ts = best_ast -> frame_offset ;\n if ( best_ast -> remaining ) {\n i = av_index_search_timestamp ( best_st , best_ts , AVSEEK_FLAG_ANY | AVSEEK_FLAG_BACKWARD ) ;\n }\n else {\n i = av_index_search_timestamp ( best_st , best_ts , AVSEEK_FLAG_ANY ) ;\n if ( i >= 0 ) best_ast -> frame_offset = best_st -> index_entries [ i ] . timestamp ;\n }\n if ( i >= 0 ) {\n int64_t pos = best_st -> index_entries [ i ] . pos ;\n pos += best_ast -> packet_size - best_ast -> remaining ;\n if ( avio_seek ( s -> pb , pos + 8 , SEEK_SET ) < 0 ) return AVERROR_EOF ;\n av_assert0 ( best_ast -> remaining <= best_ast -> packet_size ) ;\n avi -> stream_index = best_stream_index ;\n if ( ! best_ast -> remaining ) best_ast -> packet_size = best_ast -> remaining = best_st -> index_entries [ i ] . size ;\n }\n else return AVERROR_EOF ;\n return 0 ;\n }"}
{"idx": 7710, "target": 0, "func": "static void gen_acb_excitation ( int16_t * vector , int16_t * prev_excitation , int pitch_lag , G723_1_Subframe * subfrm , enum Rate cur_rate ) {\n int16_t residual [ SUBFRAME_LEN + PITCH_ORDER - 1 ] ;\n const int16_t * cb_ptr ;\n int lag = pitch_lag + subfrm -> ad_cb_lag - 1 ;\n int i ;\n int sum ;\n get_residual ( residual , prev_excitation , lag ) ;\n if ( cur_rate == RATE_6300 && pitch_lag < SUBFRAME_LEN - 2 ) cb_ptr = adaptive_cb_gain85 ;\n else cb_ptr = adaptive_cb_gain170 ;\n cb_ptr += subfrm -> ad_cb_gain * 20 ;\n for ( i = 0 ;\n i < SUBFRAME_LEN ;\n i ++ ) {\n sum = dot_product ( residual + i , cb_ptr , PITCH_ORDER ) ;\n vector [ i ] = av_sat_dadd32 ( 1 << 15 , sum ) >> 16 ;\n }\n }"}
{"idx": 7711, "target": 0, "func": "TEST_F ( ExtensionWelcomeNotificationTest , DismissWelcomeNotification ) {\n StartPreferenceSyncing ( ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissed ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissedLocal ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationPreviouslyPoppedUp ) ) ;\n ShowChromeNowNotification ( ) ;\n message_center ( ) -> CloseCurrentNotification ( ) ;\n FlushMessageLoop ( ) ;\n EXPECT_EQ ( message_center ( ) -> add_notification_calls ( ) , 1 ) ;\n EXPECT_EQ ( message_center ( ) -> remove_notification_calls ( ) , 1 ) ;\n EXPECT_EQ ( message_center ( ) -> notifications_with_shown_as_popup ( ) , 0 ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissed ) ) ;\n EXPECT_TRUE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissedLocal ) ) ;\n EXPECT_TRUE ( GetBooleanPref ( prefs : : kWelcomeNotificationPreviouslyPoppedUp ) ) ;\n }"}
{"idx": 7712, "target": 0, "func": "static gpgme_error_t default_inq_cb ( engine_uiserver_t uiserver , const char * line ) {\n if ( ! strncmp ( line , \"PINENTRY_LAUNCHED\" , 17 ) && ( line [ 17 ] == ' ' || ! line [ 17 ] ) ) {\n _gpgme_allow_set_foreground_window ( ( pid_t ) strtoul ( line + 17 , NULL , 10 ) ) ;\n }\n return 0 ;\n }"}
{"idx": 7713, "target": 0, "func": "static inline uint32_t le32_to_cpu ( uint32_t v ) {\n return v ;\n }"}
{"idx": 7714, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n int field , ret ;\n AVFrame * pic = data ;\n const uint8_t * buf = avpkt -> data ;\n const uint8_t * buf_end = buf + avpkt -> size ;\n if ( avpkt -> size < avctx -> width * 2 * avctx -> height + 4 + 2 * 8 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Packet is too small.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( bytestream_get_le32 ( & buf ) != MKTAG ( 'F' , 'R' , 'W' , '1' ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"incorrect marker\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ( ret = ff_get_buffer ( avctx , pic , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n pic -> pict_type = AV_PICTURE_TYPE_I ;\n pic -> key_frame = 1 ;\n pic -> interlaced_frame = 1 ;\n pic -> top_field_first = 1 ;\n for ( field = 0 ;\n field < 2 ;\n field ++ ) {\n int i ;\n int field_h = ( avctx -> height + ! field ) >> 1 ;\n int field_size , min_field_size = avctx -> width * 2 * field_h ;\n uint8_t * dst = pic -> data [ 0 ] ;\n if ( buf_end - buf < 8 ) return AVERROR_INVALIDDATA ;\n buf += 4 ;\n field_size = bytestream_get_le32 ( & buf ) ;\n if ( field_size < min_field_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"Field size %i is too small (required %i)\\n\" , field_size , min_field_size ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( buf_end - buf < field_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"Packet is too small, need %i, have %i\\n\" , field_size , ( int ) ( buf_end - buf ) ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( field ) dst += pic -> linesize [ 0 ] ;\n for ( i = 0 ;\n i < field_h ;\n i ++ ) {\n memcpy ( dst , buf , avctx -> width * 2 ) ;\n buf += avctx -> width * 2 ;\n dst += pic -> linesize [ 0 ] << 1 ;\n }\n buf += field_size - min_field_size ;\n }\n * got_frame = 1 ;\n return avpkt -> size ;\n }"}
{"idx": 7715, "target": 0, "func": "static void read_ordlist ( struct recvbuf * rbufp , int restrict_mask ) {\n const char ifstats_s [ ] = \"ifstats\" ;\n const size_t ifstats_chars = COUNTOF ( ifstats_s ) - 1 ;\n const char addr_rst_s [ ] = \"addr_restrictions\" ;\n const size_t a_r_chars = COUNTOF ( addr_rst_s ) - 1 ;\n struct ntp_control * cpkt ;\n u_short qdata_octets ;\n cpkt = ( struct ntp_control * ) & rbufp -> recv_pkt ;\n qdata_octets = ntohs ( cpkt -> count ) ;\n if ( 0 == qdata_octets || ( ifstats_chars == qdata_octets && ! memcmp ( ifstats_s , cpkt -> u . data , ifstats_chars ) ) ) {\n read_ifstats ( rbufp ) ;\n return ;\n }\n if ( a_r_chars == qdata_octets && ! memcmp ( addr_rst_s , cpkt -> u . data , a_r_chars ) ) {\n read_addr_restrictions ( rbufp ) ;\n return ;\n }\n ctl_error ( CERR_UNKNOWNVAR ) ;\n }"}
{"idx": 7716, "target": 0, "func": "int read_command ( struct st_command * * command_ptr ) {\n char * p = read_command_buf ;\n struct st_command * command ;\n DBUG_ENTER ( \"read_command\" ) ;\n if ( parser . current_line < parser . read_lines ) {\n get_dynamic ( & q_lines , ( uchar * ) command_ptr , parser . current_line ) ;\n DBUG_RETURN ( 0 ) ;\n }\n if ( ! ( * command_ptr = command = ( struct st_command * ) my_malloc ( sizeof ( * command ) , MYF ( MY_WME | MY_ZEROFILL ) ) ) || insert_dynamic ( & q_lines , ( uchar * ) & command ) ) die ( \"Out of memory\" ) ;\n command -> type = Q_UNKNOWN ;\n read_command_buf [ 0 ] = 0 ;\n if ( read_line ( read_command_buf , sizeof ( read_command_buf ) ) ) {\n check_eol_junk ( read_command_buf ) ;\n DBUG_RETURN ( 1 ) ;\n }\n if ( opt_result_format_version == 1 ) convert_to_format_v1 ( read_command_buf ) ;\n DBUG_PRINT ( \"info\" , ( \"query: '%s'\" , read_command_buf ) ) ;\n if ( * p == '#' ) {\n command -> type = Q_COMMENT ;\n }\n else if ( p [ 0 ] == '-' && p [ 1 ] == '-' ) {\n command -> type = Q_COMMENT_WITH_COMMAND ;\n p += 2 ;\n }\n else if ( * p == '\\n' ) {\n command -> type = Q_EMPTY_LINE ;\n }\n while ( * p && my_isspace ( charset_info , * p ) ) p ++ ;\n if ( ! ( command -> query_buf = command -> query = my_strdup ( p , MYF ( MY_WME ) ) ) ) die ( \"Out of memory\" ) ;\n p = command -> query ;\n while ( * p && ! my_isspace ( charset_info , * p ) && * p != '(' && ! is_delimiter ( p ) ) p ++ ;\n command -> first_word_len = ( uint ) ( p - command -> query ) ;\n DBUG_PRINT ( \"info\" , ( \"first_word: %.*s\" , command -> first_word_len , command -> query ) ) ;\n while ( * p && my_isspace ( charset_info , * p ) ) p ++ ;\n command -> first_argument = p ;\n command -> end = strend ( command -> query ) ;\n command -> query_len = ( command -> end - command -> query ) ;\n parser . read_lines ++ ;\n DBUG_RETURN ( 0 ) ;\n }"}
{"idx": 7717, "target": 0, "func": "static int dissect_SEC_DESC_BUF ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n proto_tree * subtree ;\n guint32 len ;\n subtree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_SEC_DESC_BUF , NULL , \"Security descriptor buffer\" ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_secdescbuf_maxlen , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_secdescbuf_undoc , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_secdescbuf_len , & len ) ;\n dissect_nt_sec_desc ( tvb , offset , pinfo , subtree , drep , TRUE , len , & spoolss_printer_access_mask_info ) ;\n offset += len ;\n return offset ;\n }"}
{"idx": 7718, "target": 0, "func": "static char * ts_unix_format ( netdissect_options * ndo # ifndef HAVE_PCAP_SET_TSTAMP_PRECISION _U_ # endif , int sec , int usec , char * buf ) {\n const char * format ;\n # ifdef HAVE_PCAP_SET_TSTAMP_PRECISION switch ( ndo -> ndo_tstamp_precision ) {\n case PCAP_TSTAMP_PRECISION_MICRO : format = \"%u.%06u\" ;\n break ;\n case PCAP_TSTAMP_PRECISION_NANO : format = \"%u.%09u\" ;\n break ;\n default : format = \"%u.{\nunknown}\n\" ;\n break ;\n }\n # else format = \"%u.%06u\" ;\n # endif snprintf ( buf , TS_BUF_SIZE , format , ( unsigned ) sec , ( unsigned ) usec ) ;\n return buf ;\n }"}
{"idx": 7719, "target": 0, "func": "static int wb_consume ( struct archive_write * a , size_t size ) {\n struct iso9660 * iso9660 = ( struct iso9660 * ) a -> format_data ;\n if ( size > iso9660 -> wbuff_remaining || iso9660 -> wbuff_remaining == 0 ) {\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"Internal Programing error: iso9660:wb_consume()\" \" size=%jd, wbuff_remaining=%jd\" , ( intmax_t ) size , ( intmax_t ) iso9660 -> wbuff_remaining ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n iso9660 -> wbuff_remaining -= size ;\n if ( iso9660 -> wbuff_remaining < LOGICAL_BLOCK_SIZE ) return ( wb_write_out ( a ) ) ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 7720, "target": 0, "func": "static void cirrus_vga_ioport_write ( void * opaque , hwaddr addr , uint64_t val , unsigned size ) {\n CirrusVGAState * c = opaque ;\n VGACommonState * s = & c -> vga ;\n int index ;\n addr += 0x3b0 ;\n if ( vga_ioport_invalid ( s , addr ) ) {\n return ;\n }\n trace_vga_cirrus_write_io ( addr , val ) ;\n switch ( addr ) {\n case 0x3c0 : if ( s -> ar_flip_flop == 0 ) {\n val &= 0x3f ;\n s -> ar_index = val ;\n }\n else {\n index = s -> ar_index & 0x1f ;\n switch ( index ) {\n case 0x00 ... 0x0f : s -> ar [ index ] = val & 0x3f ;\n break ;\n case 0x10 : s -> ar [ index ] = val & ~ 0x10 ;\n break ;\n case 0x11 : s -> ar [ index ] = val ;\n break ;\n case 0x12 : s -> ar [ index ] = val & ~ 0xc0 ;\n break ;\n case 0x13 : s -> ar [ index ] = val & ~ 0xf0 ;\n break ;\n case 0x14 : s -> ar [ index ] = val & ~ 0xf0 ;\n break ;\n default : break ;\n }\n }\n s -> ar_flip_flop ^= 1 ;\n break ;\n case 0x3c2 : s -> msr = val & ~ 0x10 ;\n s -> update_retrace_info ( s ) ;\n break ;\n case 0x3c4 : s -> sr_index = val ;\n break ;\n case 0x3c5 : # ifdef DEBUG_VGA_REG printf ( \"vga: write SR%x = 0x%02\" PRIu64 \"\\n\" , s -> sr_index , val ) ;\n # endif cirrus_vga_write_sr ( c , val ) ;\n break ;\n case 0x3c6 : cirrus_write_hidden_dac ( c , val ) ;\n break ;\n case 0x3c7 : s -> dac_read_index = val ;\n s -> dac_sub_index = 0 ;\n s -> dac_state = 3 ;\n break ;\n case 0x3c8 : s -> dac_write_index = val ;\n s -> dac_sub_index = 0 ;\n s -> dac_state = 0 ;\n break ;\n case 0x3c9 : cirrus_vga_write_palette ( c , val ) ;\n break ;\n case 0x3ce : s -> gr_index = val ;\n break ;\n case 0x3cf : # ifdef DEBUG_VGA_REG printf ( \"vga: write GR%x = 0x%02\" PRIu64 \"\\n\" , s -> gr_index , val ) ;\n # endif cirrus_vga_write_gr ( c , s -> gr_index , val ) ;\n break ;\n case 0x3b4 : case 0x3d4 : s -> cr_index = val ;\n break ;\n case 0x3b5 : case 0x3d5 : # ifdef DEBUG_VGA_REG printf ( \"vga: write CR%x = 0x%02\" PRIu64 \"\\n\" , s -> cr_index , val ) ;\n # endif cirrus_vga_write_cr ( c , val ) ;\n break ;\n case 0x3ba : case 0x3da : s -> fcr = val & 0x10 ;\n break ;\n }\n }"}
{"idx": 7721, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( VirtualKeyboardBrowserTest , TypingTest ) {\n RunTest ( base : : FilePath ( FILE_PATH_LITERAL ( \"typing_test.js\" ) ) ) ;\n }"}
{"idx": 7722, "target": 0, "func": "static void _slurm_rpc_job_alloc_info ( slurm_msg_t * msg ) {\n int error_code = SLURM_SUCCESS ;\n slurm_msg_t response_msg ;\n struct job_record * job_ptr ;\n DEF_TIMERS ;\n job_alloc_info_msg_t * job_info_msg = ( job_alloc_info_msg_t * ) msg -> data ;\n resource_allocation_response_msg_t * job_info_resp_msg ;\n slurmctld_lock_t job_read_lock = {\n READ_LOCK , READ_LOCK , READ_LOCK , NO_LOCK , NO_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n START_TIMER ;\n debug2 ( \"Processing RPC: REQUEST_JOB_ALLOCATION_INFO from uid=%d\" , uid ) ;\n lock_slurmctld ( job_read_lock ) ;\n error_code = job_alloc_info ( uid , job_info_msg -> job_id , & job_ptr ) ;\n END_TIMER2 ( \"_slurm_rpc_job_alloc_info\" ) ;\n if ( error_code || ( job_ptr == NULL ) || ( job_ptr -> job_resrcs == NULL ) ) {\n unlock_slurmctld ( job_read_lock ) ;\n debug2 ( \"%s: JobId=%u, uid=%u: %s\" , __func__ , job_info_msg -> job_id , uid , slurm_strerror ( error_code ) ) ;\n slurm_send_rc_msg ( msg , error_code ) ;\n }\n else {\n debug ( \"%s: JobId=%u NodeList=%s %s\" , __func__ , job_info_msg -> job_id , job_ptr -> nodes , TIME_STR ) ;\n job_info_resp_msg = build_job_info_resp ( job_ptr ) ;\n set_remote_working_response ( job_info_resp_msg , job_ptr , job_info_msg -> req_cluster ) ;\n unlock_slurmctld ( job_read_lock ) ;\n slurm_msg_t_init ( & response_msg ) ;\n if ( msg -> msg_type == DEFUNCT_REQUEST_JOB_ALLOCATION_INFO_LITE ) response_msg . msg_type = DEFUNCT_RESPONSE_JOB_ALLOCATION_INFO_LITE ;\n else response_msg . msg_type = RESPONSE_JOB_ALLOCATION_INFO ;\n response_msg . data = job_info_resp_msg ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n job_info_resp_msg -> working_cluster_rec = NULL ;\n slurm_free_resource_allocation_response_msg_members ( job_info_resp_msg ) ;\n xfree ( job_info_resp_msg ) ;\n }\n }"}
{"idx": 7723, "target": 0, "func": "static void get_bin_version ( ClusterInfo * cluster ) {\n char cmd [ MAXPGPATH ] , cmd_output [ MAX_STRING ] ;\n FILE * output ;\n int pre_dot , post_dot ;\n snprintf ( cmd , sizeof ( cmd ) , \"\\\"%s/pg_ctl\\\" --version\" , cluster -> bindir ) ;\n if ( ( output = popen ( cmd , \"r\" ) ) == NULL || fgets ( cmd_output , sizeof ( cmd_output ) , output ) == NULL ) pg_fatal ( \"Could not get pg_ctl version data using %s: %s\\n\" , cmd , getErrorText ( ) ) ;\n pclose ( output ) ;\n if ( strchr ( cmd_output , '\\n' ) != NULL ) * strchr ( cmd_output , '\\n' ) = '\\0' ;\n if ( sscanf ( cmd_output , \"%*s %*s %d.%d\" , & pre_dot , & post_dot ) != 2 ) pg_fatal ( \"could not get version from %s\\n\" , cmd ) ;\n cluster -> bin_version = ( pre_dot * 100 + post_dot ) * 100 ;\n }"}
{"idx": 7724, "target": 1, "func": "static void cpu_halt_signal ( void * opaque , int irq , int level ) {\n if ( level && cpu_single_env ) {\n cpu_interrupt ( CPU ( sparc_env_get_cpu ( cpu_single_env ) ) , CPU_INTERRUPT_HALT ) ;\n }\n }"}
{"idx": 7725, "target": 1, "func": "static __always_inline __le64 __cpu_to_le64p ( const __u64 * p ) {\n return ( __le64 ) * p ;\n }"}
{"idx": 7726, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , IgnoreEquivalentProtocolHandler ) {\n ProtocolHandler ph1 = CreateProtocolHandler ( \"test\" , GURL ( \"http://test/%s\" ) ) ;\n ProtocolHandler ph2 = CreateProtocolHandler ( \"test\" , GURL ( \"http://test/%s\" ) ) ;\n registry ( ) -> OnIgnoreRegisterProtocolHandler ( ph1 ) ;\n ASSERT_TRUE ( registry ( ) -> IsIgnored ( ph1 ) ) ;\n ASSERT_TRUE ( registry ( ) -> HasIgnoredEquivalent ( ph2 ) ) ;\n registry ( ) -> RemoveIgnoredHandler ( ph1 ) ;\n ASSERT_FALSE ( registry ( ) -> IsIgnored ( ph1 ) ) ;\n ASSERT_FALSE ( registry ( ) -> HasIgnoredEquivalent ( ph2 ) ) ;\n }"}
{"idx": 7727, "target": 1, "func": "static void set_fixed_partitioning ( VP9_COMP * cpi , const TileInfo * const tile , MODE_INFO * * mi_8x8 , int mi_row , int mi_col , BLOCK_SIZE bsize ) {\n VP9_COMMON * const cm = & cpi -> common ;\n const int mis = cm -> mi_stride ;\n const int row8x8_remaining = tile -> mi_row_end - mi_row ;\n const int col8x8_remaining = tile -> mi_col_end - mi_col ;\n int block_row , block_col ;\n MODE_INFO * mi_upper_left = cm -> mi + mi_row * mis + mi_col ;\n int bh = num_8x8_blocks_high_lookup [ bsize ] ;\n int bw = num_8x8_blocks_wide_lookup [ bsize ] ;\n assert ( ( row8x8_remaining > 0 ) && ( col8x8_remaining > 0 ) ) ;\n if ( ( col8x8_remaining >= MI_BLOCK_SIZE ) && ( row8x8_remaining >= MI_BLOCK_SIZE ) ) {\n for ( block_row = 0 ;\n block_row < MI_BLOCK_SIZE ;\n block_row += bh ) {\n for ( block_col = 0 ;\n block_col < MI_BLOCK_SIZE ;\n block_col += bw ) {\n int index = block_row * mis + block_col ;\n mi_8x8 [ index ] = mi_upper_left + index ;\n mi_8x8 [ index ] -> mbmi . sb_type = bsize ;\n }\n }\n }\n else {\n set_partial_b64x64_partition ( mi_upper_left , mis , bh , bw , row8x8_remaining , col8x8_remaining , bsize , mi_8x8 ) ;\n }\n }"}
{"idx": 7728, "target": 0, "func": "int qemuMonitorTextOpenGraphics ( qemuMonitorPtr mon , const char * protocol , const char * fdname , bool skipauth ) {\n char * cmd = NULL ;\n char * reply = NULL ;\n int ret = - 1 ;\n if ( virAsprintf ( & cmd , \"add_client %s %s %d\" , protocol , fdname , skipauth ? 0 : 1 ) < 0 ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , _ ( \"adding graphics client failed\" ) ) ;\n goto cleanup ;\n }\n if ( STRNEQ ( reply , \"\" ) ) goto cleanup ;\n ret = 0 ;\n cleanup : VIR_FREE ( reply ) ;\n VIR_FREE ( cmd ) ;\n return ret ;\n }"}
{"idx": 7729, "target": 0, "func": "static void e1000e_set_12bit ( E1000ECore * core , int index , uint32_t val ) {\n core -> mac [ index ] = val & 0xfff ;\n }"}
{"idx": 7730, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( HostedAppTest , ShouldShowLocationBarForHTTPBookmarkApp ) {\n base : : CommandLine : : ForCurrentProcess ( ) -> AppendSwitch ( switches : : kEnableNewBookmarkApps ) ;\n SetupApp ( \"app\" , true ) ;\n NavigateAndCheckForLocationBar ( app_browser_ , \"http://www.example.com/empty.html\" , false ) ;\n NavigateAndCheckForLocationBar ( app_browser_ , \"http://www.example.com/blah\" , false ) ;\n NavigateAndCheckForLocationBar ( app_browser_ , \"https://www.example.com/blah\" , false ) ;\n NavigateAndCheckForLocationBar ( app_browser_ , \"http://www.foo.com/blah\" , true ) ;\n NavigateAndCheckForLocationBar ( app_browser_ , \"http://www.example.com/blah\" , false ) ;\n }"}
{"idx": 7731, "target": 0, "func": "void vp9_fht16x16_c ( const int16_t * input , tran_low_t * output , int stride , int tx_type ) {\n if ( tx_type == DCT_DCT ) {\n vp9_fdct16x16_c ( input , output , stride ) ;\n }\n else {\n tran_low_t out [ 256 ] ;\n tran_low_t * outptr = & out [ 0 ] ;\n int i , j ;\n tran_low_t temp_in [ 16 ] , temp_out [ 16 ] ;\n const transform_2d ht = FHT_16 [ tx_type ] ;\n for ( i = 0 ;\n i < 16 ;\n ++ i ) {\n for ( j = 0 ;\n j < 16 ;\n ++ j ) temp_in [ j ] = input [ j * stride + i ] * 4 ;\n ht . cols ( temp_in , temp_out ) ;\n for ( j = 0 ;\n j < 16 ;\n ++ j ) outptr [ j * 16 + i ] = ( temp_out [ j ] + 1 + ( temp_out [ j ] < 0 ) ) >> 2 ;\n }\n for ( i = 0 ;\n i < 16 ;\n ++ i ) {\n for ( j = 0 ;\n j < 16 ;\n ++ j ) temp_in [ j ] = out [ j + i * 16 ] ;\n ht . rows ( temp_in , temp_out ) ;\n for ( j = 0 ;\n j < 16 ;\n ++ j ) output [ j + i * 16 ] = temp_out [ j ] ;\n }\n }\n }"}
{"idx": 7732, "target": 0, "func": "static int selinux_inode_listxattr ( struct dentry * dentry ) {\n const struct cred * cred = current_cred ( ) ;\n return dentry_has_perm ( cred , dentry , FILE__GETATTR ) ;\n }"}
{"idx": 7733, "target": 0, "func": "static bool hyperv_vapic_enable_needed ( void * opaque ) {\n X86CPU * cpu = opaque ;\n CPUX86State * env = & cpu -> env ;\n return env -> msr_hv_vapic != 0 ;\n }"}
{"idx": 7734, "target": 0, "func": "static void U_CALLCONV ucnv_toUnicode_UTF8_OFFSETS_LOGIC ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n UConverter * cnv = args -> converter ;\n const unsigned char * mySource = ( unsigned char * ) args -> source ;\n UChar * myTarget = args -> target ;\n int32_t * myOffsets = args -> offsets ;\n int32_t offsetNum = 0 ;\n const unsigned char * sourceLimit = ( unsigned char * ) args -> sourceLimit ;\n const UChar * targetLimit = args -> targetLimit ;\n unsigned char * toUBytes = cnv -> toUBytes ;\n UBool isCESU8 = hasCESU8Data ( cnv ) ;\n uint32_t ch , ch2 = 0 ;\n int32_t i , inBytes ;\n if ( cnv -> toUnicodeStatus && myTarget < targetLimit ) {\n inBytes = cnv -> mode ;\n i = cnv -> toULength ;\n cnv -> toULength = 0 ;\n ch = cnv -> toUnicodeStatus ;\n cnv -> toUnicodeStatus = 0 ;\n goto morebytes ;\n }\n while ( mySource < sourceLimit && myTarget < targetLimit ) {\n ch = * ( mySource ++ ) ;\n if ( ch < 0x80 ) {\n * ( myTarget ++ ) = ( UChar ) ch ;\n * ( myOffsets ++ ) = offsetNum ++ ;\n }\n else {\n toUBytes [ 0 ] = ( char ) ch ;\n inBytes = bytesFromUTF8 [ ch ] ;\n i = 1 ;\n morebytes : while ( i < inBytes ) {\n if ( mySource < sourceLimit ) {\n toUBytes [ i ] = ( char ) ( ch2 = * mySource ) ;\n if ( ! U8_IS_TRAIL ( ch2 ) ) {\n break ;\n }\n ch = ( ch << 6 ) + ch2 ;\n ++ mySource ;\n i ++ ;\n }\n else {\n cnv -> toUnicodeStatus = ch ;\n cnv -> mode = inBytes ;\n cnv -> toULength = ( int8_t ) i ;\n goto donefornow ;\n }\n }\n ch -= offsetsFromUTF8 [ inBytes ] ;\n if ( i == inBytes && ch <= MAXIMUM_UTF && ch >= utf8_minChar32 [ i ] && ( isCESU8 ? i <= 3 : ! U_IS_SURROGATE ( ch ) ) ) {\n if ( ch <= MAXIMUM_UCS2 ) {\n * ( myTarget ++ ) = ( UChar ) ch ;\n * ( myOffsets ++ ) = offsetNum ;\n }\n else {\n ch -= HALF_BASE ;\n * ( myTarget ++ ) = ( UChar ) ( ( ch >> HALF_SHIFT ) + SURROGATE_HIGH_START ) ;\n * ( myOffsets ++ ) = offsetNum ;\n ch = ( ch & HALF_MASK ) + SURROGATE_LOW_START ;\n if ( myTarget < targetLimit ) {\n * ( myTarget ++ ) = ( UChar ) ch ;\n * ( myOffsets ++ ) = offsetNum ;\n }\n else {\n cnv -> UCharErrorBuffer [ 0 ] = ( UChar ) ch ;\n cnv -> UCharErrorBufferLength = 1 ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n offsetNum += i ;\n }\n else {\n cnv -> toULength = ( int8_t ) i ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n }\n }\n donefornow : if ( mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS ( * err ) ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n args -> target = myTarget ;\n args -> source = ( const char * ) mySource ;\n args -> offsets = myOffsets ;\n }"}
{"idx": 7735, "target": 0, "func": "const char * evdns_err_to_string ( int err ) {\n switch ( err ) {\n case DNS_ERR_NONE : return \"no error\" ;\n case DNS_ERR_FORMAT : return \"misformatted query\" ;\n case DNS_ERR_SERVERFAILED : return \"server failed\" ;\n case DNS_ERR_NOTEXIST : return \"name does not exist\" ;\n case DNS_ERR_NOTIMPL : return \"query not implemented\" ;\n case DNS_ERR_REFUSED : return \"refused\" ;\n case DNS_ERR_TRUNCATED : return \"reply truncated or ill-formed\" ;\n case DNS_ERR_UNKNOWN : return \"unknown\" ;\n case DNS_ERR_TIMEOUT : return \"request timed out\" ;\n case DNS_ERR_SHUTDOWN : return \"dns subsystem shut down\" ;\n default : return \"[Unknown error code]\" ;\n }\n }"}
{"idx": 7736, "target": 0, "func": "int qemuMonitorJSONLoadSnapshot ( qemuMonitorPtr mon , const char * name ) {\n int ret ;\n virJSONValuePtr cmd ;\n virJSONValuePtr reply = NULL ;\n cmd = qemuMonitorJSONMakeCommand ( \"loadvm\" , \"s:name\" , name , NULL ) ;\n if ( ! cmd ) return - 1 ;\n if ( ( ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ) < 0 ) goto cleanup ;\n if ( qemuMonitorJSONHasError ( reply , \"CommandNotFound\" ) && qemuMonitorCheckHMP ( mon , \"loadvm\" ) ) {\n VIR_DEBUG ( \"loadvm command not found, trying HMP\" ) ;\n ret = qemuMonitorTextLoadSnapshot ( mon , name ) ;\n goto cleanup ;\n }\n ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n cleanup : virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 7737, "target": 0, "func": "static void selinux_sk_getsecid ( struct sock * sk , u32 * secid ) {\n if ( ! sk ) * secid = SECINITSID_ANY_SOCKET ;\n else {\n struct sk_security_struct * sksec = sk -> sk_security ;\n * secid = sksec -> sid ;\n }\n }"}
{"idx": 7738, "target": 0, "func": "static void dissect_zcl_color_control_move_to_color ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_color_X , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_color_Y , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_transit_time , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n }"}
{"idx": 7739, "target": 0, "func": "static void gx_ttfReader__ReleaseGlyph ( ttfReader * self , int glyph_index ) {\n gx_ttfReader * r = ( gx_ttfReader * ) self ;\n if ( r -> extra_glyph_index != glyph_index ) return ;\n r -> extra_glyph_index = - 1 ;\n gs_glyph_data_free ( & r -> glyph_data , \"gx_ttfReader__ReleaseExtraGlyph\" ) ;\n }"}
{"idx": 7740, "target": 0, "func": "rfbBool rfbSendRectEncodingRaw ( rfbClientPtr cl , int x , int y , int w , int h ) {\n rfbFramebufferUpdateRectHeader rect ;\n int nlines ;\n int bytesPerLine = w * ( cl -> format . bitsPerPixel / 8 ) ;\n char * fbptr = ( cl -> scaledScreen -> frameBuffer + ( cl -> scaledScreen -> paddedWidthInBytes * y ) + ( x * ( cl -> scaledScreen -> bitsPerPixel / 8 ) ) ) ;\n if ( cl -> ublen > 0 ) {\n if ( ! rfbSendUpdateBuf ( cl ) ) return FALSE ;\n }\n rect . r . x = Swap16IfLE ( x ) ;\n rect . r . y = Swap16IfLE ( y ) ;\n rect . r . w = Swap16IfLE ( w ) ;\n rect . r . h = Swap16IfLE ( h ) ;\n rect . encoding = Swap32IfLE ( rfbEncodingRaw ) ;\n memcpy ( & cl -> updateBuf [ cl -> ublen ] , ( char * ) & rect , sz_rfbFramebufferUpdateRectHeader ) ;\n cl -> ublen += sz_rfbFramebufferUpdateRectHeader ;\n rfbStatRecordEncodingSent ( cl , rfbEncodingRaw , sz_rfbFramebufferUpdateRectHeader + bytesPerLine * h , sz_rfbFramebufferUpdateRectHeader + bytesPerLine * h ) ;\n nlines = ( UPDATE_BUF_SIZE - cl -> ublen ) / bytesPerLine ;\n while ( TRUE ) {\n if ( nlines > h ) nlines = h ;\n ( * cl -> translateFn ) ( cl -> translateLookupTable , & ( cl -> screen -> serverFormat ) , & cl -> format , fbptr , & cl -> updateBuf [ cl -> ublen ] , cl -> scaledScreen -> paddedWidthInBytes , w , nlines ) ;\n cl -> ublen += nlines * bytesPerLine ;\n h -= nlines ;\n if ( h == 0 ) return TRUE ;\n if ( ! rfbSendUpdateBuf ( cl ) ) return FALSE ;\n fbptr += ( cl -> scaledScreen -> paddedWidthInBytes * nlines ) ;\n nlines = ( UPDATE_BUF_SIZE - cl -> ublen ) / bytesPerLine ;\n if ( nlines == 0 ) {\n rfbErr ( \"rfbSendRectEncodingRaw: send buffer too small for %d \" \"bytes per line\\n\" , bytesPerLine ) ;\n rfbCloseClient ( cl ) ;\n return FALSE ;\n }\n }\n }"}
{"idx": 7741, "target": 0, "func": "void vp8_new_framerate ( VP8_COMP * cpi , double framerate ) {\n if ( framerate < .1 ) framerate = 30 ;\n cpi -> framerate = framerate ;\n cpi -> output_framerate = framerate ;\n cpi -> per_frame_bandwidth = ( int ) ( cpi -> oxcf . target_bandwidth / cpi -> output_framerate ) ;\n cpi -> av_per_frame_bandwidth = cpi -> per_frame_bandwidth ;\n cpi -> min_frame_bandwidth = ( int ) ( cpi -> av_per_frame_bandwidth * cpi -> oxcf . two_pass_vbrmin_section / 100 ) ;\n cpi -> max_gf_interval = ( ( int ) ( cpi -> output_framerate / 2.0 ) + 2 ) ;\n if ( cpi -> max_gf_interval < 12 ) cpi -> max_gf_interval = 12 ;\n cpi -> twopass . static_scene_max_gf_interval = cpi -> key_frame_frequency >> 1 ;\n if ( cpi -> oxcf . play_alternate && cpi -> oxcf . lag_in_frames ) {\n if ( cpi -> max_gf_interval > cpi -> oxcf . lag_in_frames - 1 ) cpi -> max_gf_interval = cpi -> oxcf . lag_in_frames - 1 ;\n if ( cpi -> twopass . static_scene_max_gf_interval > cpi -> oxcf . lag_in_frames - 1 ) cpi -> twopass . static_scene_max_gf_interval = cpi -> oxcf . lag_in_frames - 1 ;\n }\n if ( cpi -> max_gf_interval > cpi -> twopass . static_scene_max_gf_interval ) cpi -> max_gf_interval = cpi -> twopass . static_scene_max_gf_interval ;\n }"}
{"idx": 7742, "target": 0, "func": "static void bprint_bytes ( AVBPrint * bp , const uint8_t * ubuf , size_t ubuf_size ) {\n int i ;\n av_bprintf ( bp , \"0X\" ) ;\n for ( i = 0 ;\n i < ubuf_size ;\n i ++ ) av_bprintf ( bp , \"%02X\" , ubuf [ i ] ) ;\n }"}
{"idx": 7743, "target": 0, "func": "static void vapic_class_init ( ObjectClass * klass , void * data ) {\n SysBusDeviceClass * sc = SYS_BUS_DEVICE_CLASS ( klass ) ;\n DeviceClass * dc = DEVICE_CLASS ( klass ) ;\n dc -> no_user = 1 ;\n dc -> reset = vapic_reset ;\n dc -> vmsd = & vmstate_vapic ;\n sc -> init = vapic_init ;\n }"}
{"idx": 7744, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ContentFaviconDriverTest , AssociateIconWithInitialPageDespiteMetaRefreshTagAndLandingPageCached ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n GURL url_with_meta_refresh_tag = embedded_test_server ( ) -> GetURL ( \"/favicon/page_with_meta_refresh_tag.html\" ) ;\n GURL landing_url = embedded_test_server ( ) -> GetURL ( \"/favicon/page_with_favicon.html\" ) ;\n {\n PendingTaskWaiter waiter ( web_contents ( ) ) ;\n ui_test_utils : : NavigateToURLWithDisposition ( browser ( ) , landing_url , WindowOpenDisposition : : CURRENT_TAB , ui_test_utils : : BROWSER_TEST_NONE ) ;\n waiter . Wait ( ) ;\n }\n ASSERT_NE ( nullptr , GetFaviconForPageURL ( landing_url , favicon_base : : IconType : : kFavicon ) . bitmap_data ) ;\n PendingTaskWaiter waiter ( web_contents ( ) ) ;\n waiter . AlsoRequireUrl ( landing_url ) ;\n ui_test_utils : : NavigateToURLWithDisposition ( browser ( ) , url_with_meta_refresh_tag , WindowOpenDisposition : : CURRENT_TAB , ui_test_utils : : BROWSER_TEST_NONE ) ;\n waiter . Wait ( ) ;\n EXPECT_NE ( nullptr , GetFaviconForPageURL ( url_with_meta_refresh_tag , favicon_base : : IconType : : kFavicon ) . bitmap_data ) ;\n EXPECT_NE ( nullptr , GetFaviconForPageURL ( landing_url , favicon_base : : IconType : : kFavicon ) . bitmap_data ) ;\n }"}
{"idx": 7745, "target": 0, "func": "int compare_files2 ( File fd1 , const char * filename2 ) {\n int error = RESULT_OK ;\n File fd2 ;\n size_t fd1_length , fd2_length ;\n DYNAMIC_STRING fd1_result , fd2_result ;\n if ( ( fd2 = my_open ( filename2 , O_RDONLY , MYF ( 0 ) ) ) < 0 ) {\n my_close ( fd1 , MYF ( 0 ) ) ;\n die ( \"Failed to open second file: '%s'\" , filename2 ) ;\n }\n fd1_length = ( size_t ) my_seek ( fd1 , 0 , SEEK_END , MYF ( 0 ) ) ;\n fd2_length = ( size_t ) my_seek ( fd2 , 0 , SEEK_END , MYF ( 0 ) ) ;\n if ( init_dynamic_string ( & fd1_result , 0 , fd1_length , 0 ) || init_dynamic_string ( & fd2_result , 0 , fd2_length , 0 ) ) die ( \"Out of memory when allocating data for result\" ) ;\n fd1_result . length = fd1_length ;\n fd2_result . length = fd2_length ;\n ( void ) my_seek ( fd1 , 0 , SEEK_SET , MYF ( 0 ) ) ;\n ( void ) my_seek ( fd2 , 0 , SEEK_SET , MYF ( 0 ) ) ;\n if ( my_read ( fd1 , ( uchar * ) fd1_result . str , fd1_length , MYF ( MY_WME | MY_NABP ) ) ) die ( \"Error when reading data from result file\" ) ;\n if ( my_read ( fd2 , ( uchar * ) fd2_result . str , fd2_length , MYF ( MY_WME | MY_NABP ) ) ) die ( \"Error when reading data from result file\" ) ;\n if ( global_subst && ( fd1_length != fd2_length || memcmp ( fd1_result . str , fd2_result . str , fd1_length ) ) ) {\n uint global_subst_from_len = strlen ( global_subst_from ) ;\n uint global_subst_to_len = strlen ( global_subst_to ) ;\n while ( replace ( & fd1_result , global_subst_from , global_subst_from_len , global_subst_to , global_subst_to_len ) == 0 ) ;\n }\n if ( fd1_result . length != fd2_result . length ) error = RESULT_LENGTH_MISMATCH ;\n else if ( ( memcmp ( fd1_result . str , fd2_result . str , fd1_result . length ) ) ) error = RESULT_CONTENT_MISMATCH ;\n my_close ( fd2 , MYF ( 0 ) ) ;\n dynstr_free ( & fd1_result ) ;\n dynstr_free ( & fd2_result ) ;\n return error ;\n }"}
{"idx": 7746, "target": 0, "func": "static inline int pic_is_unused ( MpegEncContext * s , Picture * pic ) {\n if ( pic -> f . data [ 0 ] == NULL ) return 1 ;\n if ( pic -> needs_realloc && ! ( pic -> reference & DELAYED_PIC_REF ) ) return 1 ;\n return 0 ;\n }"}
{"idx": 7747, "target": 0, "func": "static void write_interp_filter ( INTERP_FILTER filter , struct vp9_write_bit_buffer * wb ) {\n const int filter_to_literal [ ] = {\n 1 , 0 , 2 , 3 }\n ;\n vp9_wb_write_bit ( wb , filter == SWITCHABLE ) ;\n if ( filter != SWITCHABLE ) vp9_wb_write_literal ( wb , filter_to_literal [ filter ] , 2 ) ;\n }"}
{"idx": 7748, "target": 0, "func": "static inline void init_mv4_ref ( MotionEstContext * c ) {\n const int stride = c -> stride ;\n c -> ref [ 1 ] [ 0 ] = c -> ref [ 0 ] [ 0 ] + 8 ;\n c -> ref [ 2 ] [ 0 ] = c -> ref [ 0 ] [ 0 ] + 8 * stride ;\n c -> ref [ 3 ] [ 0 ] = c -> ref [ 2 ] [ 0 ] + 8 ;\n c -> src [ 1 ] [ 0 ] = c -> src [ 0 ] [ 0 ] + 8 ;\n c -> src [ 2 ] [ 0 ] = c -> src [ 0 ] [ 0 ] + 8 * stride ;\n c -> src [ 3 ] [ 0 ] = c -> src [ 2 ] [ 0 ] + 8 ;\n }"}
{"idx": 7749, "target": 0, "func": "static gcry_err_code_t oaep_encode ( gcry_mpi_t * r_result , unsigned int nbits , int algo , const unsigned char * value , size_t valuelen , const unsigned char * label , size_t labellen , const void * random_override , size_t random_override_len ) {\n gcry_err_code_t rc = 0 ;\n gcry_error_t err ;\n unsigned char * frame = NULL ;\n size_t nframe = ( nbits + 7 ) / 8 ;\n unsigned char * p ;\n size_t hlen ;\n size_t n ;\n * r_result = NULL ;\n if ( ! label || ! labellen ) {\n label = ( const unsigned char * ) \"\" ;\n labellen = 0 ;\n }\n hlen = gcry_md_get_algo_dlen ( algo ) ;\n if ( valuelen > nframe - 2 * hlen - 2 || ! nframe ) {\n return GPG_ERR_TOO_SHORT ;\n }\n frame = gcry_calloc_secure ( 1 , nframe ) ;\n if ( ! frame ) return gpg_err_code_from_syserror ( ) ;\n gcry_md_hash_buffer ( algo , frame + 1 + hlen , label , labellen ) ;\n n = nframe - valuelen - 1 ;\n frame [ n ] = 0x01 ;\n memcpy ( frame + n + 1 , value , valuelen ) ;\n if ( random_override ) {\n if ( random_override_len != hlen ) {\n gcry_free ( frame ) ;\n return GPG_ERR_INV_ARG ;\n }\n memcpy ( frame + 1 , random_override , hlen ) ;\n }\n else gcry_randomize ( frame + 1 , hlen , GCRY_STRONG_RANDOM ) ;\n {\n unsigned char * dmask ;\n dmask = gcry_malloc_secure ( nframe - hlen - 1 ) ;\n if ( ! dmask ) {\n rc = gpg_err_code_from_syserror ( ) ;\n gcry_free ( frame ) ;\n return rc ;\n }\n rc = mgf1 ( dmask , nframe - hlen - 1 , frame + 1 , hlen , algo ) ;\n if ( rc ) {\n gcry_free ( dmask ) ;\n gcry_free ( frame ) ;\n return rc ;\n }\n for ( n = 1 + hlen , p = dmask ;\n n < nframe ;\n n ++ ) frame [ n ] ^= * p ++ ;\n gcry_free ( dmask ) ;\n }\n {\n unsigned char * smask ;\n smask = gcry_malloc_secure ( hlen ) ;\n if ( ! smask ) {\n rc = gpg_err_code_from_syserror ( ) ;\n gcry_free ( frame ) ;\n return rc ;\n }\n rc = mgf1 ( smask , hlen , frame + 1 + hlen , nframe - hlen - 1 , algo ) ;\n if ( rc ) {\n gcry_free ( smask ) ;\n gcry_free ( frame ) ;\n return rc ;\n }\n for ( n = 1 , p = smask ;\n n < 1 + hlen ;\n n ++ ) frame [ n ] ^= * p ++ ;\n gcry_free ( smask ) ;\n }\n err = gcry_mpi_scan ( r_result , GCRYMPI_FMT_USG , frame , nframe , NULL ) ;\n if ( err ) rc = gcry_err_code ( err ) ;\n else if ( DBG_CIPHER ) log_mpidump ( \"OAEP encoded data\" , * r_result ) ;\n gcry_free ( frame ) ;\n return rc ;\n }"}
{"idx": 7750, "target": 0, "func": "static int openpic_load ( QEMUFile * f , void * opaque , int version_id ) {\n OpenPICState * opp = ( OpenPICState * ) opaque ;\n unsigned int i ;\n if ( version_id != 1 ) {\n return - EINVAL ;\n }\n qemu_get_be32s ( f , & opp -> gcr ) ;\n qemu_get_be32s ( f , & opp -> vir ) ;\n qemu_get_be32s ( f , & opp -> pir ) ;\n qemu_get_be32s ( f , & opp -> spve ) ;\n qemu_get_be32s ( f , & opp -> tfrr ) ;\n qemu_get_be32s ( f , & opp -> nb_cpus ) ;\n for ( i = 0 ;\n i < opp -> nb_cpus ;\n i ++ ) {\n qemu_get_sbe32s ( f , & opp -> dst [ i ] . ctpr ) ;\n openpic_load_IRQ_queue ( f , & opp -> dst [ i ] . raised ) ;\n openpic_load_IRQ_queue ( f , & opp -> dst [ i ] . servicing ) ;\n qemu_get_buffer ( f , ( uint8_t * ) & opp -> dst [ i ] . outputs_active , sizeof ( opp -> dst [ i ] . outputs_active ) ) ;\n }\n for ( i = 0 ;\n i < OPENPIC_MAX_TMR ;\n i ++ ) {\n qemu_get_be32s ( f , & opp -> timers [ i ] . tccr ) ;\n qemu_get_be32s ( f , & opp -> timers [ i ] . tbcr ) ;\n }\n for ( i = 0 ;\n i < opp -> max_irq ;\n i ++ ) {\n uint32_t val ;\n val = qemu_get_be32 ( f ) ;\n write_IRQreg_idr ( opp , i , val ) ;\n val = qemu_get_be32 ( f ) ;\n write_IRQreg_ivpr ( opp , i , val ) ;\n qemu_get_be32s ( f , & opp -> src [ i ] . ivpr ) ;\n qemu_get_be32s ( f , & opp -> src [ i ] . idr ) ;\n qemu_get_be32s ( f , & opp -> src [ i ] . destmask ) ;\n qemu_get_sbe32s ( f , & opp -> src [ i ] . last_cpu ) ;\n qemu_get_sbe32s ( f , & opp -> src [ i ] . pending ) ;\n }\n return 0 ;\n }"}
{"idx": 7751, "target": 0, "func": "static void _hb_ ## name ## _destroy ( hb_ ## name ## _t * l ) {\n free ( l ) ;\n }\n HB_DEFINE_BOXED_TYPE ( name , _hb_ ## name ## _reference , _hb_ ## name ## _destroy ) ;\n HB_DEFINE_OBJECT_TYPE ( buffer ) HB_DEFINE_OBJECT_TYPE ( blob ) HB_DEFINE_OBJECT_TYPE ( face ) HB_DEFINE_OBJECT_TYPE ( font ) HB_DEFINE_OBJECT_TYPE ( font_funcs ) HB_DEFINE_OBJECT_TYPE ( set ) HB_DEFINE_OBJECT_TYPE ( shape_plan ) HB_DEFINE_OBJECT_TYPE ( unicode_funcs ) HB_DEFINE_VALUE_TYPE ( feature ) HB_DEFINE_VALUE_TYPE ( glyph_info ) HB_DEFINE_VALUE_TYPE ( glyph_position ) HB_DEFINE_VALUE_TYPE ( segment_properties ) HB_DEFINE_VALUE_TYPE ( user_data_key )"}
{"idx": 7752, "target": 0, "func": "static ngx_int_t create_request ( ngx_http_request_t * r ) {\n u_char ch ;\n const char * helper_agent_request_socket_password_data ;\n unsigned int helper_agent_request_socket_password_len ;\n u_char buf [ sizeof ( \"4294967296\" ) + 1 ] ;\n size_t len , size , key_len , val_len ;\n const u_char * app_type_string ;\n size_t app_type_string_len ;\n int server_name_len ;\n ngx_str_t escaped_uri ;\n ngx_str_t * union_station_filters = NULL ;\n void * tmp ;\n ngx_uint_t i , n ;\n ngx_buf_t * b ;\n ngx_chain_t * cl , * body ;\n ngx_list_part_t * part ;\n ngx_table_elt_t * header ;\n ngx_http_script_code_pt code ;\n ngx_http_script_engine_t e , le ;\n ngx_http_core_srv_conf_t * cscf ;\n passenger_loc_conf_t * slcf ;\n passenger_context_t * context ;\n ngx_http_script_len_code_pt lcode ;\n cscf = ngx_http_get_module_srv_conf ( r , ngx_http_core_module ) ;\n slcf = ngx_http_get_module_loc_conf ( r , ngx_http_passenger_module ) ;\n context = ngx_http_get_module_ctx ( r , ngx_http_passenger_module ) ;\n if ( context == NULL ) {\n return NGX_HTTP_INTERNAL_SERVER_ERROR ;\n }\n app_type_string = ( const u_char * ) pp_get_app_type_name ( context -> app_type ) ;\n app_type_string_len = strlen ( ( const char * ) app_type_string ) + 1 ;\n escaped_uri . len = * ngx_escape_uri ( NULL , r -> uri . data , r -> uri . len , NGX_ESCAPE_URI ) + r -> uri . len ;\n escaped_uri . data = ngx_pnalloc ( r -> pool , escaped_uri . len + 1 ) ;\n escaped_uri . data [ escaped_uri . len ] = '\\0' ;\n ngx_escape_uri ( escaped_uri . data , r -> uri . data , r -> uri . len , NGX_ESCAPE_URI ) ;\n len = 0 ;\n if ( r -> headers_in . content_length_n >= 0 ) {\n len += sizeof ( \"CONTENT_LENGTH\" ) + uint_to_str ( r -> headers_in . content_length_n , buf , sizeof ( buf ) ) + 1 ;\n }\n len += sizeof ( \"DOCUMENT_ROOT\" ) + context -> public_dir . len + 1 ;\n if ( context -> base_uri . len > 0 ) {\n len += sizeof ( \"SCRIPT_NAME\" ) + context -> base_uri . len + 1 ;\n len += sizeof ( \"RAILS_RELATIVE_URL_ROOT\" ) + context -> base_uri . len + 1 ;\n len += sizeof ( \"PATH_INFO\" ) + escaped_uri . len - context -> base_uri . len + 1 ;\n }\n else {\n len += sizeof ( \"SCRIPT_NAME\" ) + sizeof ( \"\" ) ;\n len += sizeof ( \"PATH_INFO\" ) + escaped_uri . len + 1 ;\n }\n len += sizeof ( \"REQUEST_URI\" ) + escaped_uri . len + 1 ;\n if ( r -> args . len > 0 ) {\n len += 1 + r -> args . len ;\n }\n if ( r -> headers_in . host != NULL ) {\n tmp = memchr ( r -> headers_in . host -> value . data , ':' , r -> headers_in . host -> value . len ) ;\n if ( tmp == NULL ) {\n server_name_len = r -> headers_in . host -> value . len ;\n }\n else {\n server_name_len = ( int ) ( ( const u_char * ) tmp - r -> headers_in . host -> value . data ) ;\n }\n }\n else {\n server_name_len = cscf -> server_name . len ;\n }\n len += sizeof ( \"SERVER_NAME\" ) + server_name_len + 1 ;\n if ( r -> headers_in . content_type != NULL && r -> headers_in . content_type -> value . len > 0 ) {\n len += sizeof ( \"CONTENT_TYPE\" ) + r -> headers_in . content_type -> value . len + 1 ;\n }\n # if ( NGX_HTTP_SSL ) if ( r -> http_connection -> ssl ) {\n len += sizeof ( \"HTTPS\" ) + sizeof ( \"on\" ) ;\n }\n # endif len += slcf -> options_cache . len ;\n len += sizeof ( \"PASSENGER_APP_TYPE\" ) + app_type_string_len ;\n if ( slcf -> union_station_filters != NGX_CONF_UNSET_PTR && slcf -> union_station_filters -> nelts > 0 ) {\n len += sizeof ( \"UNION_STATION_FILTERS\" ) ;\n union_station_filters = ( ngx_str_t * ) slcf -> union_station_filters -> elts ;\n for ( i = 0 ;\n i < slcf -> union_station_filters -> nelts ;\n i ++ ) {\n if ( i != 0 ) {\n len ++ ;\n }\n len += union_station_filters [ i ] . len ;\n }\n len ++ ;\n }\n if ( slcf -> vars_len ) {\n ngx_memzero ( & le , sizeof ( ngx_http_script_engine_t ) ) ;\n ngx_http_script_flush_no_cacheable_variables ( r , slcf -> flushes ) ;\n le . flushed = 1 ;\n le . ip = slcf -> vars_len -> elts ;\n le . request = r ;\n while ( * ( uintptr_t * ) le . ip ) {\n lcode = * ( ngx_http_script_len_code_pt * ) le . ip ;\n key_len = lcode ( & le ) ;\n for ( val_len = 0 ;\n * ( uintptr_t * ) le . ip ;\n val_len += lcode ( & le ) ) {\n lcode = * ( ngx_http_script_len_code_pt * ) le . ip ;\n }\n le . ip += sizeof ( uintptr_t ) ;\n len += key_len + val_len ;\n }\n }\n if ( slcf -> upstream_config . pass_request_headers ) {\n part = & r -> headers_in . headers . part ;\n header = part -> elts ;\n for ( i = 0 ;\n ;\n i ++ ) {\n if ( i >= part -> nelts ) {\n if ( part -> next == NULL ) {\n break ;\n }\n part = part -> next ;\n header = part -> elts ;\n i = 0 ;\n }\n if ( ! header_is_transfer_encoding ( & header [ i ] . key ) && ! header_contains_non_alphanumdash ( & header [ i ] . key ) ) {\n len += sizeof ( \"HTTP_\" ) - 1 + header [ i ] . key . len + 1 + header [ i ] . value . len + 1 ;\n }\n }\n }\n helper_agent_request_socket_password_data = pp_agents_starter_get_request_socket_password ( pp_agents_starter , & helper_agent_request_socket_password_len ) ;\n size = helper_agent_request_socket_password_len + len + 10 + 1 + 1 ;\n b = ngx_create_temp_buf ( r -> pool , size ) ;\n if ( b == NULL ) {\n return NGX_ERROR ;\n }\n cl = ngx_alloc_chain_link ( r -> pool ) ;\n if ( cl == NULL ) {\n return NGX_ERROR ;\n }\n cl -> buf = b ;\n b -> last = ngx_copy ( b -> last , helper_agent_request_socket_password_data , helper_agent_request_socket_password_len ) ;\n b -> last = ngx_snprintf ( b -> last , 10 , \"%ui\" , len ) ;\n * b -> last ++ = ( u_char ) ':' ;\n if ( r -> headers_in . content_length_n >= 0 ) {\n b -> last = ngx_copy ( b -> last , \"CONTENT_LENGTH\" , sizeof ( \"CONTENT_LENGTH\" ) ) ;\n b -> last = ngx_snprintf ( b -> last , 10 , \"%O\" , r -> headers_in . content_length_n ) ;\n * b -> last ++ = ( u_char ) 0 ;\n }\n b -> last = ngx_copy ( b -> last , \"DOCUMENT_ROOT\" , sizeof ( \"DOCUMENT_ROOT\" ) ) ;\n b -> last = ngx_copy ( b -> last , context -> public_dir . data , context -> public_dir . len + 1 ) ;\n if ( context -> base_uri . len > 0 ) {\n b -> last = ngx_copy ( b -> last , \"SCRIPT_NAME\" , sizeof ( \"SCRIPT_NAME\" ) ) ;\n b -> last = ngx_copy ( b -> last , context -> base_uri . data , context -> base_uri . len + 1 ) ;\n b -> last = ngx_copy ( b -> last , \"RAILS_RELATIVE_URL_ROOT\" , sizeof ( \"RAILS_RELATIVE_URL_ROOT\" ) ) ;\n b -> last = ngx_copy ( b -> last , context -> base_uri . data , context -> base_uri . len + 1 ) ;\n b -> last = ngx_copy ( b -> last , \"PATH_INFO\" , sizeof ( \"PATH_INFO\" ) ) ;\n b -> last = ngx_copy ( b -> last , escaped_uri . data + context -> base_uri . len , escaped_uri . len - context -> base_uri . len ) ;\n b -> last = ngx_copy ( b -> last , \"\" , 1 ) ;\n }\n else {\n b -> last = ngx_copy ( b -> last , \"SCRIPT_NAME\" , sizeof ( \"SCRIPT_NAME\" ) ) ;\n b -> last = ngx_copy ( b -> last , \"\" , sizeof ( \"\" ) ) ;\n b -> last = ngx_copy ( b -> last , \"PATH_INFO\" , sizeof ( \"PATH_INFO\" ) ) ;\n b -> last = ngx_copy ( b -> last , escaped_uri . data , escaped_uri . len ) ;\n b -> last = ngx_copy ( b -> last , \"\" , 1 ) ;\n }\n b -> last = ngx_copy ( b -> last , \"REQUEST_URI\" , sizeof ( \"REQUEST_URI\" ) ) ;\n b -> last = ngx_copy ( b -> last , escaped_uri . data , escaped_uri . len ) ;\n if ( r -> args . len > 0 ) {\n b -> last = ngx_copy ( b -> last , \"?\" , 1 ) ;\n b -> last = ngx_copy ( b -> last , r -> args . data , r -> args . len ) ;\n }\n b -> last = ngx_copy ( b -> last , \"\" , 1 ) ;\n b -> last = ngx_copy ( b -> last , \"SERVER_NAME\" , sizeof ( \"SERVER_NAME\" ) ) ;\n if ( r -> headers_in . host != NULL ) {\n b -> last = ngx_copy ( b -> last , r -> headers_in . host -> value . data , server_name_len ) ;\n }\n else {\n b -> last = ngx_copy ( b -> last , cscf -> server_name . data , server_name_len ) ;\n }\n b -> last = ngx_copy ( b -> last , \"\" , 1 ) ;\n if ( r -> headers_in . content_type != NULL && r -> headers_in . content_type -> value . len > 0 ) {\n b -> last = ngx_copy ( b -> last , \"CONTENT_TYPE\" , sizeof ( \"CONTENT_TYPE\" ) ) ;\n b -> last = ngx_copy ( b -> last , r -> headers_in . content_type -> value . data , r -> headers_in . content_type -> value . len ) ;\n b -> last = ngx_copy ( b -> last , \"\" , 1 ) ;\n }\n # if ( NGX_HTTP_SSL ) if ( r -> http_connection -> ssl ) {\n b -> last = ngx_copy ( b -> last , \"HTTPS\" , sizeof ( \"HTTPS\" ) ) ;\n b -> last = ngx_copy ( b -> last , \"on\" , sizeof ( \"on\" ) ) ;\n }\n # endif b -> last = ngx_copy ( b -> last , slcf -> options_cache . data , slcf -> options_cache . len ) ;\n b -> last = ngx_copy ( b -> last , \"PASSENGER_APP_TYPE\" , sizeof ( \"PASSENGER_APP_TYPE\" ) ) ;\n b -> last = ngx_copy ( b -> last , app_type_string , app_type_string_len ) ;\n if ( slcf -> union_station_filters != NGX_CONF_UNSET_PTR && slcf -> union_station_filters -> nelts > 0 ) {\n b -> last = ngx_copy ( b -> last , \"UNION_STATION_FILTERS\" , sizeof ( \"UNION_STATION_FILTERS\" ) ) ;\n for ( i = 0 ;\n i < slcf -> union_station_filters -> nelts ;\n i ++ ) {\n if ( i != 0 ) {\n b -> last = ngx_copy ( b -> last , \"\\1\" , 1 ) ;\n }\n b -> last = ngx_copy ( b -> last , union_station_filters [ i ] . data , union_station_filters [ i ] . len ) ;\n }\n b -> last = ngx_copy ( b -> last , \"\\0\" , 1 ) ;\n }\n if ( slcf -> vars_len ) {\n ngx_memzero ( & e , sizeof ( ngx_http_script_engine_t ) ) ;\n e . ip = slcf -> vars -> elts ;\n e . pos = b -> last ;\n e . request = r ;\n e . flushed = 1 ;\n le . ip = slcf -> vars_len -> elts ;\n while ( * ( uintptr_t * ) le . ip ) {\n lcode = * ( ngx_http_script_len_code_pt * ) le . ip ;\n ( void ) lcode ( & le ) ;\n for ( val_len = 0 ;\n * ( uintptr_t * ) le . ip ;\n val_len += lcode ( & le ) ) {\n lcode = * ( ngx_http_script_len_code_pt * ) le . ip ;\n }\n le . ip += sizeof ( uintptr_t ) ;\n while ( * ( uintptr_t * ) e . ip ) {\n code = * ( ngx_http_script_code_pt * ) e . ip ;\n code ( ( ngx_http_script_engine_t * ) & e ) ;\n }\n e . ip += sizeof ( uintptr_t ) ;\n }\n b -> last = e . pos ;\n }\n if ( slcf -> upstream_config . pass_request_headers ) {\n part = & r -> headers_in . headers . part ;\n header = part -> elts ;\n for ( i = 0 ;\n ;\n i ++ ) {\n if ( i >= part -> nelts ) {\n if ( part -> next == NULL ) {\n break ;\n }\n part = part -> next ;\n header = part -> elts ;\n i = 0 ;\n }\n if ( header_contains_non_alphanumdash ( & header [ i ] . key ) ) {\n continue ;\n }\n if ( header_is_transfer_encoding ( & header [ i ] . key ) ) {\n continue ;\n }\n b -> last = ngx_cpymem ( b -> last , \"HTTP_\" , sizeof ( \"HTTP_\" ) - 1 ) ;\n for ( n = 0 ;\n n < header [ i ] . key . len ;\n n ++ ) {\n ch = header [ i ] . key . data [ n ] ;\n if ( ch >= 'a' && ch <= 'z' ) {\n ch &= ~ 0x20 ;\n }\n else if ( ch == '-' ) {\n ch = '_' ;\n }\n * b -> last ++ = ch ;\n }\n * b -> last ++ = ( u_char ) 0 ;\n b -> last = ngx_copy ( b -> last , header [ i ] . value . data , header [ i ] . value . len ) ;\n * b -> last ++ = ( u_char ) 0 ;\n }\n }\n * b -> last ++ = ( u_char ) ',' ;\n if ( slcf -> upstream_config . pass_request_body ) {\n body = r -> upstream -> request_bufs ;\n r -> upstream -> request_bufs = cl ;\n while ( body ) {\n b = ngx_alloc_buf ( r -> pool ) ;\n if ( b == NULL ) {\n return NGX_ERROR ;\n }\n ngx_memcpy ( b , body -> buf , sizeof ( ngx_buf_t ) ) ;\n cl -> next = ngx_alloc_chain_link ( r -> pool ) ;\n if ( cl -> next == NULL ) {\n return NGX_ERROR ;\n }\n cl = cl -> next ;\n cl -> buf = b ;\n body = body -> next ;\n }\n b -> flush = 1 ;\n }\n else {\n r -> upstream -> request_bufs = cl ;\n }\n cl -> next = NULL ;\n return NGX_OK ;\n }"}
{"idx": 7753, "target": 0, "func": "int tls1_mac ( SSL * ssl , SSL3_RECORD * rec , unsigned char * md , int send ) {\n unsigned char * seq ;\n EVP_MD_CTX * hash ;\n size_t md_size ;\n int i ;\n EVP_MD_CTX * hmac = NULL , * mac_ctx ;\n unsigned char header [ 13 ] ;\n int stream_mac = ( send ? ( ssl -> mac_flags & SSL_MAC_FLAG_WRITE_MAC_STREAM ) : ( ssl -> mac_flags & SSL_MAC_FLAG_READ_MAC_STREAM ) ) ;\n int t ;\n if ( send ) {\n seq = RECORD_LAYER_get_write_sequence ( & ssl -> rlayer ) ;\n hash = ssl -> write_hash ;\n }\n else {\n seq = RECORD_LAYER_get_read_sequence ( & ssl -> rlayer ) ;\n hash = ssl -> read_hash ;\n }\n t = EVP_MD_CTX_size ( hash ) ;\n OPENSSL_assert ( t >= 0 ) ;\n md_size = t ;\n if ( stream_mac ) {\n mac_ctx = hash ;\n }\n else {\n hmac = EVP_MD_CTX_new ( ) ;\n if ( hmac == NULL || ! EVP_MD_CTX_copy ( hmac , hash ) ) return - 1 ;\n mac_ctx = hmac ;\n }\n if ( SSL_IS_DTLS ( ssl ) ) {\n unsigned char dtlsseq [ 8 ] , * p = dtlsseq ;\n s2n ( send ? DTLS_RECORD_LAYER_get_w_epoch ( & ssl -> rlayer ) : DTLS_RECORD_LAYER_get_r_epoch ( & ssl -> rlayer ) , p ) ;\n memcpy ( p , & seq [ 2 ] , 6 ) ;\n memcpy ( header , dtlsseq , 8 ) ;\n }\n else memcpy ( header , seq , 8 ) ;\n header [ 8 ] = rec -> type ;\n header [ 9 ] = ( unsigned char ) ( ssl -> version >> 8 ) ;\n header [ 10 ] = ( unsigned char ) ( ssl -> version ) ;\n header [ 11 ] = ( rec -> length ) >> 8 ;\n header [ 12 ] = ( rec -> length ) & 0xff ;\n if ( ! send && ! SSL_USE_ETM ( ssl ) && EVP_CIPHER_CTX_mode ( ssl -> enc_read_ctx ) == EVP_CIPH_CBC_MODE && ssl3_cbc_record_digest_supported ( mac_ctx ) ) {\n if ( ssl3_cbc_digest_record ( mac_ctx , md , & md_size , header , rec -> input , rec -> length + md_size , rec -> orig_len , ssl -> s3 -> read_mac_secret , ssl -> s3 -> read_mac_secret_size , 0 ) <= 0 ) {\n EVP_MD_CTX_free ( hmac ) ;\n return - 1 ;\n }\n }\n else {\n if ( EVP_DigestSignUpdate ( mac_ctx , header , sizeof ( header ) ) <= 0 || EVP_DigestSignUpdate ( mac_ctx , rec -> input , rec -> length ) <= 0 || EVP_DigestSignFinal ( mac_ctx , md , & md_size ) <= 0 ) {\n EVP_MD_CTX_free ( hmac ) ;\n return - 1 ;\n }\n if ( ! send && ! SSL_USE_ETM ( ssl ) && FIPS_mode ( ) ) if ( ! tls_fips_digest_extra ( ssl -> enc_read_ctx , mac_ctx , rec -> input , rec -> length , rec -> orig_len ) ) {\n EVP_MD_CTX_free ( hmac ) ;\n return - 1 ;\n }\n }\n EVP_MD_CTX_free ( hmac ) ;\n # ifdef SSL_DEBUG fprintf ( stderr , \"seq=\" ) ;\n {\n int z ;\n for ( z = 0 ;\n z < 8 ;\n z ++ ) fprintf ( stderr , \"%02X \" , seq [ z ] ) ;\n fprintf ( stderr , \"\\n\" ) ;\n }\n fprintf ( stderr , \"rec=\" ) ;\n {\n unsigned int z ;\n for ( z = 0 ;\n z < rec -> length ;\n z ++ ) fprintf ( stderr , \"%02X \" , rec -> data [ z ] ) ;\n fprintf ( stderr , \"\\n\" ) ;\n }\n # endif if ( ! SSL_IS_DTLS ( ssl ) ) {\n for ( i = 7 ;\n i >= 0 ;\n i -- ) {\n ++ seq [ i ] ;\n if ( seq [ i ] != 0 ) break ;\n }\n }\n # ifdef SSL_DEBUG {\n unsigned int z ;\n for ( z = 0 ;\n z < md_size ;\n z ++ ) fprintf ( stderr , \"%02X \" , md [ z ] ) ;\n fprintf ( stderr , \"\\n\" ) ;\n }\n # endif return ( md_size ) ;\n }"}
{"idx": 7754, "target": 0, "func": "static void deep_count_load ( DeepCountState * state , GFile * location ) {\n state -> deep_count_location = g_object_ref ( location ) ;\n # ifdef DEBUG_LOAD_DIRECTORY g_message ( \"load_directory called to get deep file count for %p\" , location ) ;\n # endif g_file_enumerate_children_async ( state -> deep_count_location , G_FILE_ATTRIBUTE_STANDARD_NAME \",\" G_FILE_ATTRIBUTE_STANDARD_TYPE \",\" G_FILE_ATTRIBUTE_STANDARD_SIZE \",\" G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN \",\" G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP \",\" G_FILE_ATTRIBUTE_ID_FILESYSTEM \",\" G_FILE_ATTRIBUTE_UNIX_INODE , G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS , G_PRIORITY_LOW , state -> cancellable , deep_count_callback , state ) ;\n }"}
{"idx": 7755, "target": 0, "func": "void hb_blob_make_immutable ( hb_blob_t * blob ) {\n if ( hb_object_is_inert ( blob ) ) return ;\n blob -> immutable = true ;\n }"}
{"idx": 7756, "target": 0, "func": "static int decode_coeffs ( WMAProDecodeCtx * s , int c ) {\n static const uint32_t fval_tab [ 16 ] = {\n 0x00000000 , 0x3f800000 , 0x40000000 , 0x40400000 , 0x40800000 , 0x40a00000 , 0x40c00000 , 0x40e00000 , 0x41000000 , 0x41100000 , 0x41200000 , 0x41300000 , 0x41400000 , 0x41500000 , 0x41600000 , 0x41700000 , }\n ;\n int vlctable ;\n VLC * vlc ;\n WMAProChannelCtx * ci = & s -> channel [ c ] ;\n int rl_mode = 0 ;\n int cur_coeff = 0 ;\n int num_zeros = 0 ;\n const uint16_t * run ;\n const float * level ;\n av_dlog ( s -> avctx , \"decode coefficients for channel %i\\n\" , c ) ;\n vlctable = get_bits1 ( & s -> gb ) ;\n vlc = & coef_vlc [ vlctable ] ;\n if ( vlctable ) {\n run = coef1_run ;\n level = coef1_level ;\n }\n else {\n run = coef0_run ;\n level = coef0_level ;\n }\n while ( ( s -> transmit_num_vec_coeffs || ! rl_mode ) && ( cur_coeff + 3 < ci -> num_vec_coeffs ) ) {\n uint32_t vals [ 4 ] ;\n int i ;\n unsigned int idx ;\n idx = get_vlc2 ( & s -> gb , vec4_vlc . table , VLCBITS , VEC4MAXDEPTH ) ;\n if ( idx == HUFF_VEC4_SIZE - 1 ) {\n for ( i = 0 ;\n i < 4 ;\n i += 2 ) {\n idx = get_vlc2 ( & s -> gb , vec2_vlc . table , VLCBITS , VEC2MAXDEPTH ) ;\n if ( idx == HUFF_VEC2_SIZE - 1 ) {\n uint32_t v0 , v1 ;\n v0 = get_vlc2 ( & s -> gb , vec1_vlc . table , VLCBITS , VEC1MAXDEPTH ) ;\n if ( v0 == HUFF_VEC1_SIZE - 1 ) v0 += ff_wma_get_large_val ( & s -> gb ) ;\n v1 = get_vlc2 ( & s -> gb , vec1_vlc . table , VLCBITS , VEC1MAXDEPTH ) ;\n if ( v1 == HUFF_VEC1_SIZE - 1 ) v1 += ff_wma_get_large_val ( & s -> gb ) ;\n vals [ i ] = av_float2int ( v0 ) ;\n vals [ i + 1 ] = av_float2int ( v1 ) ;\n }\n else {\n vals [ i ] = fval_tab [ symbol_to_vec2 [ idx ] >> 4 ] ;\n vals [ i + 1 ] = fval_tab [ symbol_to_vec2 [ idx ] & 0xF ] ;\n }\n }\n }\n else {\n vals [ 0 ] = fval_tab [ symbol_to_vec4 [ idx ] >> 12 ] ;\n vals [ 1 ] = fval_tab [ ( symbol_to_vec4 [ idx ] >> 8 ) & 0xF ] ;\n vals [ 2 ] = fval_tab [ ( symbol_to_vec4 [ idx ] >> 4 ) & 0xF ] ;\n vals [ 3 ] = fval_tab [ symbol_to_vec4 [ idx ] & 0xF ] ;\n }\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n if ( vals [ i ] ) {\n uint32_t sign = get_bits1 ( & s -> gb ) - 1 ;\n AV_WN32A ( & ci -> coeffs [ cur_coeff ] , vals [ i ] ^ sign << 31 ) ;\n num_zeros = 0 ;\n }\n else {\n ci -> coeffs [ cur_coeff ] = 0 ;\n rl_mode |= ( ++ num_zeros > s -> subframe_len >> 8 ) ;\n }\n ++ cur_coeff ;\n }\n }\n if ( cur_coeff < s -> subframe_len ) {\n memset ( & ci -> coeffs [ cur_coeff ] , 0 , sizeof ( * ci -> coeffs ) * ( s -> subframe_len - cur_coeff ) ) ;\n if ( ff_wma_run_level_decode ( s -> avctx , & s -> gb , vlc , level , run , 1 , ci -> coeffs , cur_coeff , s -> subframe_len , s -> subframe_len , s -> esc_len , 0 ) ) return AVERROR_INVALIDDATA ;\n }\n return 0 ;\n }"}
{"idx": 7757, "target": 1, "func": "static int check_n_master ( AVCodecContext * avctx , int n_master , int bs_xover_band ) {\n if ( n_master <= 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid n_master: %d\\n\" , n_master ) ;\n return - 1 ;\n }\n if ( bs_xover_band >= n_master ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid bitstream, crossover band index beyond array bounds: %d\\n\" , bs_xover_band ) ;\n return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 7758, "target": 0, "func": "void print_resource_usage ( const gs_main_instance * minst , gs_dual_memory_t * dmem , const char * msg ) {\n ulong used = 0 ;\n long utime [ 2 ] ;\n int i ;\n gs_memory_status_t status ;\n gp_get_realtime ( utime ) ;\n for ( i = 0 ;\n i < countof ( dmem -> spaces_indexed ) ;\n ++ i ) {\n gs_ref_memory_t * mem = dmem -> spaces_indexed [ i ] ;\n if ( mem != 0 && ( i == 0 || mem != dmem -> spaces_indexed [ i - 1 ] ) ) {\n gs_ref_memory_t * mem_stable = ( gs_ref_memory_t * ) gs_memory_stable ( ( gs_memory_t * ) mem ) ;\n gs_memory_status ( ( gs_memory_t * ) mem , & status ) ;\n used += status . used ;\n if ( mem_stable != mem ) {\n gs_memory_status ( ( gs_memory_t * ) mem_stable , & status ) ;\n used += status . used ;\n }\n }\n }\n gs_memory_status ( minst -> heap , & status ) ;\n dmprintf5 ( minst -> heap , \"%% %s time = %g, memory allocated = %lu, used = %lu, max_used = %lu\\n\" , msg , utime [ 0 ] - minst -> base_time [ 0 ] + ( utime [ 1 ] - minst -> base_time [ 1 ] ) / 1000000000.0 , status . allocated , used , status . max_used ) ;\n }"}
{"idx": 7759, "target": 0, "func": "static void resolv_conf_parse_line ( char * const start , int flags ) {\n char * strtok_state ;\n static const char * const delims = \" \\t\" ;\n # define NEXT_TOKEN strtok_r ( NULL , delims , & strtok_state ) char * const first_token = strtok_r ( start , delims , & strtok_state ) ;\n if ( ! first_token ) return ;\n if ( ! strcmp ( first_token , \"nameserver\" ) && ( flags & DNS_OPTION_NAMESERVERS ) ) {\n const char * const nameserver = NEXT_TOKEN ;\n struct in_addr ina ;\n if ( nameserver && inet_aton ( nameserver , & ina ) ) {\n evdns_nameserver_add ( ina . s_addr ) ;\n }\n }\n else if ( ! strcmp ( first_token , \"domain\" ) && ( flags & DNS_OPTION_SEARCH ) ) {\n const char * const domain = NEXT_TOKEN ;\n if ( domain ) {\n search_postfix_clear ( ) ;\n search_postfix_add ( domain ) ;\n }\n }\n else if ( ! strcmp ( first_token , \"search\" ) && ( flags & DNS_OPTION_SEARCH ) ) {\n const char * domain ;\n search_postfix_clear ( ) ;\n while ( ( domain = NEXT_TOKEN ) ) {\n search_postfix_add ( domain ) ;\n }\n search_reverse ( ) ;\n }\n else if ( ! strcmp ( first_token , \"options\" ) ) {\n const char * option ;\n while ( ( option = NEXT_TOKEN ) ) {\n const char * val = strchr ( option , ':' ) ;\n evdns_set_option ( option , val ? val + 1 : \"\" , flags ) ;\n }\n }\n # undef NEXT_TOKEN }"}
{"idx": 7760, "target": 0, "func": "static void dump_lo_buf ( ArchiveHandle * AH ) {\n if ( AH -> connection ) {\n size_t res ;\n res = lo_write ( AH -> connection , AH -> loFd , AH -> lo_buf , AH -> lo_buf_used ) ;\n ahlog ( AH , 5 , ngettext ( \"wrote %lu byte of large object data (result = %lu)\\n\" , \"wrote %lu bytes of large object data (result = %lu)\\n\" , AH -> lo_buf_used ) , ( unsigned long ) AH -> lo_buf_used , ( unsigned long ) res ) ;\n if ( res != AH -> lo_buf_used ) exit_horribly ( modulename , \"could not write to large object (result: %lu, expected: %lu)\\n\" , ( unsigned long ) res , ( unsigned long ) AH -> lo_buf_used ) ;\n }\n else {\n PQExpBuffer buf = createPQExpBuffer ( ) ;\n appendByteaLiteralAHX ( buf , ( const unsigned char * ) AH -> lo_buf , AH -> lo_buf_used , AH ) ;\n AH -> writingBlob = 0 ;\n ahprintf ( AH , \"SELECT pg_catalog.lowrite(0, %s);\n\\n\" , buf -> data ) ;\n AH -> writingBlob = 1 ;\n destroyPQExpBuffer ( buf ) ;\n }\n AH -> lo_buf_used = 0 ;\n }"}
{"idx": 7761, "target": 0, "func": "static void test_priorities ( int npriorities ) {\n char buf [ 32 ] ;\n struct test_pri_event one , two ;\n struct timeval tv ;\n evutil_snprintf ( buf , sizeof ( buf ) , \"Testing Priorities %d: \" , npriorities ) ;\n setup_test ( buf ) ;\n event_base_priority_init ( global_base , npriorities ) ;\n memset ( & one , 0 , sizeof ( one ) ) ;\n memset ( & two , 0 , sizeof ( two ) ) ;\n timeout_set ( & one . ev , test_priorities_cb , & one ) ;\n if ( event_priority_set ( & one . ev , 0 ) == - 1 ) {\n fprintf ( stderr , \"%s: failed to set priority\" , __func__ ) ;\n exit ( 1 ) ;\n }\n timeout_set ( & two . ev , test_priorities_cb , & two ) ;\n if ( event_priority_set ( & two . ev , npriorities - 1 ) == - 1 ) {\n fprintf ( stderr , \"%s: failed to set priority\" , __func__ ) ;\n exit ( 1 ) ;\n }\n evutil_timerclear ( & tv ) ;\n if ( event_add ( & one . ev , & tv ) == - 1 ) exit ( 1 ) ;\n if ( event_add ( & two . ev , & tv ) == - 1 ) exit ( 1 ) ;\n event_dispatch ( ) ;\n event_del ( & one . ev ) ;\n event_del ( & two . ev ) ;\n if ( npriorities == 1 ) {\n if ( one . count == 3 && two . count == 3 ) test_ok = 1 ;\n }\n else if ( npriorities == 2 ) {\n if ( one . count == 3 && two . count == 1 ) test_ok = 1 ;\n }\n else {\n if ( one . count == 3 && two . count == 0 ) test_ok = 1 ;\n }\n cleanup_test ( ) ;\n }"}
{"idx": 7762, "target": 0, "func": "static int tipc_nl_compat_bearer_enable ( struct tipc_nl_compat_cmd_doit * cmd , struct sk_buff * skb , struct tipc_nl_compat_msg * msg ) {\n struct nlattr * prop ;\n struct nlattr * bearer ;\n struct tipc_bearer_config * b ;\n b = ( struct tipc_bearer_config * ) TLV_DATA ( msg -> req ) ;\n bearer = nla_nest_start ( skb , TIPC_NLA_BEARER ) ;\n if ( ! bearer ) return - EMSGSIZE ;\n if ( nla_put_string ( skb , TIPC_NLA_BEARER_NAME , b -> name ) ) return - EMSGSIZE ;\n if ( nla_put_u32 ( skb , TIPC_NLA_BEARER_DOMAIN , ntohl ( b -> disc_domain ) ) ) return - EMSGSIZE ;\n if ( ntohl ( b -> priority ) <= TIPC_MAX_LINK_PRI ) {\n prop = nla_nest_start ( skb , TIPC_NLA_BEARER_PROP ) ;\n if ( ! prop ) return - EMSGSIZE ;\n if ( nla_put_u32 ( skb , TIPC_NLA_PROP_PRIO , ntohl ( b -> priority ) ) ) return - EMSGSIZE ;\n nla_nest_end ( skb , prop ) ;\n }\n nla_nest_end ( skb , bearer ) ;\n return 0 ;\n }"}
{"idx": 7763, "target": 0, "func": "static cmsBool Type_UcrBg_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) {\n cmsUcrBg * Value = ( cmsUcrBg * ) Ptr ;\n cmsUInt32Number TextSize ;\n char * Text ;\n if ( ! _cmsWriteUInt32Number ( io , Value -> Ucr -> nEntries ) ) return FALSE ;\n if ( ! _cmsWriteUInt16Array ( io , Value -> Ucr -> nEntries , Value -> Ucr -> Table16 ) ) return FALSE ;\n if ( ! _cmsWriteUInt32Number ( io , Value -> Bg -> nEntries ) ) return FALSE ;\n if ( ! _cmsWriteUInt16Array ( io , Value -> Bg -> nEntries , Value -> Bg -> Table16 ) ) return FALSE ;\n TextSize = cmsMLUgetASCII ( Value -> Desc , cmsNoLanguage , cmsNoCountry , NULL , 0 ) ;\n Text = ( char * ) _cmsMalloc ( self -> ContextID , TextSize ) ;\n if ( cmsMLUgetASCII ( Value -> Desc , cmsNoLanguage , cmsNoCountry , Text , TextSize ) != TextSize ) return FALSE ;\n if ( ! io -> Write ( io , TextSize , Text ) ) return FALSE ;\n _cmsFree ( self -> ContextID , Text ) ;\n return TRUE ;\n cmsUNUSED_PARAMETER ( nItems ) ;\n }"}
{"idx": 7764, "target": 0, "func": "void t38_add_address ( packet_info * pinfo , address * addr , int port , int other_port , const gchar * setup_method , guint32 setup_frame_number ) {\n address null_addr ;\n conversation_t * p_conversation ;\n t38_conv * p_conversation_data = NULL ;\n if ( ( pinfo -> fd -> flags . visited ) || ( t38_udp_handle == NULL ) ) {\n return ;\n }\n SET_ADDRESS ( & null_addr , AT_NONE , 0 , NULL ) ;\n p_conversation = find_conversation ( setup_frame_number , addr , & null_addr , PT_UDP , port , other_port , NO_ADDR_B | ( ! other_port ? NO_PORT_B : 0 ) ) ;\n if ( ! p_conversation || p_conversation -> setup_frame != setup_frame_number ) {\n p_conversation = conversation_new ( setup_frame_number , addr , & null_addr , PT_UDP , ( guint32 ) port , ( guint32 ) other_port , NO_ADDR2 | ( ! other_port ? NO_PORT2 : 0 ) ) ;\n }\n conversation_set_dissector ( p_conversation , t38_udp_handle ) ;\n p_conversation_data = ( t38_conv * ) conversation_get_proto_data ( p_conversation , proto_t38 ) ;\n if ( ! p_conversation_data ) {\n p_conversation_data = wmem_new ( wmem_file_scope ( ) , t38_conv ) ;\n conversation_add_proto_data ( p_conversation , proto_t38 , p_conversation_data ) ;\n }\n g_strlcpy ( p_conversation_data -> setup_method , setup_method , MAX_T38_SETUP_METHOD_SIZE ) ;\n p_conversation_data -> setup_frame_number = setup_frame_number ;\n p_conversation_data -> src_t38_info . reass_ID = 0 ;\n p_conversation_data -> src_t38_info . reass_start_seqnum = - 1 ;\n p_conversation_data -> src_t38_info . reass_data_type = 0 ;\n p_conversation_data -> src_t38_info . last_seqnum = - 1 ;\n p_conversation_data -> src_t38_info . packet_lost = 0 ;\n p_conversation_data -> src_t38_info . burst_lost = 0 ;\n p_conversation_data -> src_t38_info . time_first_t4_data = 0 ;\n p_conversation_data -> src_t38_info . additional_hdlc_data_field_counter = 0 ;\n p_conversation_data -> src_t38_info . seqnum_prev_data_field = - 1 ;\n p_conversation_data -> dst_t38_info . reass_ID = 0 ;\n p_conversation_data -> dst_t38_info . reass_start_seqnum = - 1 ;\n p_conversation_data -> dst_t38_info . reass_data_type = 0 ;\n p_conversation_data -> dst_t38_info . last_seqnum = - 1 ;\n p_conversation_data -> dst_t38_info . packet_lost = 0 ;\n p_conversation_data -> dst_t38_info . burst_lost = 0 ;\n p_conversation_data -> dst_t38_info . time_first_t4_data = 0 ;\n p_conversation_data -> dst_t38_info . additional_hdlc_data_field_counter = 0 ;\n p_conversation_data -> dst_t38_info . seqnum_prev_data_field = - 1 ;\n }"}
{"idx": 7765, "target": 0, "func": "static gboolean gsm_a_dtap_gmm_stat_packet ( void * tapdata , packet_info * pinfo _U_ , epan_dissect_t * edt _U_ , const void * gatr_ptr ) {\n return gsm_a_stat_packet ( tapdata , gatr_ptr , BSSAP_PDU_TYPE_DTAP , PD_GMM ) ;\n }"}
{"idx": 7766, "target": 0, "func": "static void evhttp_connection_start_detectclose ( struct evhttp_connection * evcon ) {\n evcon -> flags |= EVHTTP_CON_CLOSEDETECT ;\n if ( event_initialized ( & evcon -> close_ev ) ) event_del ( & evcon -> close_ev ) ;\n event_set ( & evcon -> close_ev , evcon -> fd , EV_READ , evhttp_detect_close_cb , evcon ) ;\n EVHTTP_BASE_SET ( evcon , & evcon -> close_ev ) ;\n event_add ( & evcon -> close_ev , NULL ) ;\n }"}
{"idx": 7767, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , UseCounterCSSPropertiesMixedContent ) {\n net : : EmbeddedTestServer https_server ( net : : EmbeddedTestServer : : TYPE_HTTPS ) ;\n https_server . AddDefaultHandlers ( base : : FilePath ( FILE_PATH_LITERAL ( \"chrome/test/data\" ) ) ) ;\n ASSERT_TRUE ( https_server . Start ( ) ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : LOAD_EVENT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , https_server . GetURL ( \"/page_load_metrics/use_counter_features.html\" ) ) ;\n waiter -> Wait ( ) ;\n NavigateToUntrackedUrl ( ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kCssPropertiesHistogramName , 6 , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kCssPropertiesHistogramName , 7 , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kCssPropertiesHistogramName , blink : : mojom : : kTotalPagesMeasuredCSSSampleId , 1 ) ;\n }"}
{"idx": 7768, "target": 0, "func": "void fz_colorspace_name_colorant ( fz_context * ctx , fz_colorspace * cs , int i , const char * name ) {\n if ( ! cs ) return ;\n if ( i < 0 || i >= cs -> n ) fz_throw ( ctx , FZ_ERROR_GENERIC , \"Attempt to name out of range colorant\" ) ;\n fz_free ( ctx , cs -> colorant [ i ] ) ;\n cs -> colorant [ i ] = NULL ;\n if ( name ) {\n cs -> colorant [ i ] = fz_strdup ( ctx , name ) ;\n if ( cs -> type == FZ_COLORSPACE_SEPARATION ) {\n if ( i == 0 ) {\n if ( strcmp ( name , \"Cyan\" ) == 0 || strcmp ( name , \"Magenta\" ) == 0 || strcmp ( name , \"Yellow\" ) == 0 || strcmp ( name , \"Black\" ) == 0 ) {\n cs -> flags |= FZ_CS_HAS_CMYK ;\n }\n }\n else {\n if ( ( cs -> flags & FZ_CS_HAS_CMYK_AND_SPOTS ) != FZ_CS_HAS_CMYK_AND_SPOTS ) {\n if ( strcmp ( name , \"Cyan\" ) == 0 || strcmp ( name , \"Magenta\" ) == 0 || strcmp ( name , \"Yellow\" ) == 0 || strcmp ( name , \"Black\" ) == 0 ) cs -> flags |= FZ_CS_HAS_CMYK ;\n else cs -> flags |= FZ_CS_HAS_SPOTS ;\n }\n }\n }\n }\n }"}
{"idx": 7769, "target": 0, "func": "int ImagingPcdDecode ( Imaging im , ImagingCodecState state , UINT8 * buf , int bytes ) {\n int x ;\n int chunk ;\n UINT8 * out ;\n UINT8 * ptr ;\n ptr = buf ;\n chunk = 3 * state -> xsize ;\n for ( ;\n ;\n ) {\n if ( bytes < chunk ) return ptr - buf ;\n out = state -> buffer ;\n for ( x = 0 ;\n x < state -> xsize ;\n x ++ ) {\n out [ 0 ] = ptr [ x ] ;\n out [ 1 ] = ptr [ ( x + 4 * state -> xsize ) / 2 ] ;\n out [ 2 ] = ptr [ ( x + 5 * state -> xsize ) / 2 ] ;\n out += 3 ;\n }\n state -> shuffle ( ( UINT8 * ) im -> image [ state -> y ] , state -> buffer , state -> xsize ) ;\n if ( ++ state -> y >= state -> ysize ) return - 1 ;\n out = state -> buffer ;\n for ( x = 0 ;\n x < state -> xsize ;\n x ++ ) {\n out [ 0 ] = ptr [ x + state -> xsize ] ;\n out [ 1 ] = ptr [ ( x + 4 * state -> xsize ) / 2 ] ;\n out [ 2 ] = ptr [ ( x + 5 * state -> xsize ) / 2 ] ;\n out += 3 ;\n }\n state -> shuffle ( ( UINT8 * ) im -> image [ state -> y ] , state -> buffer , state -> xsize ) ;\n if ( ++ state -> y >= state -> ysize ) return - 1 ;\n ptr += chunk ;\n bytes -= chunk ;\n }\n }"}
{"idx": 7770, "target": 0, "func": "int ff_MPV_frame_start ( MpegEncContext * s , AVCodecContext * avctx ) {\n int i , ret ;\n Picture * pic ;\n s -> mb_skipped = 0 ;\n if ( s -> out_format != FMT_H264 || s -> codec_id == AV_CODEC_ID_SVQ3 ) {\n if ( s -> pict_type != AV_PICTURE_TYPE_B && s -> last_picture_ptr && s -> last_picture_ptr != s -> next_picture_ptr && s -> last_picture_ptr -> f . data [ 0 ] ) {\n ff_mpeg_unref_picture ( s , s -> last_picture_ptr ) ;\n }\n if ( ! s -> encoding ) {\n for ( i = 0 ;\n i < MAX_PICTURE_COUNT ;\n i ++ ) {\n if ( & s -> picture [ i ] != s -> last_picture_ptr && & s -> picture [ i ] != s -> next_picture_ptr && s -> picture [ i ] . reference && ! s -> picture [ i ] . needs_realloc ) {\n if ( ! ( avctx -> active_thread_type & FF_THREAD_FRAME ) ) av_log ( avctx , AV_LOG_ERROR , \"releasing zombie picture\\n\" ) ;\n ff_mpeg_unref_picture ( s , & s -> picture [ i ] ) ;\n }\n }\n }\n }\n if ( ! s -> encoding ) {\n ff_release_unused_pictures ( s , 1 ) ;\n if ( s -> current_picture_ptr && s -> current_picture_ptr -> f . data [ 0 ] == NULL ) {\n pic = s -> current_picture_ptr ;\n }\n else {\n i = ff_find_unused_picture ( s , 0 ) ;\n if ( i < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"no frame buffer available\\n\" ) ;\n return i ;\n }\n pic = & s -> picture [ i ] ;\n }\n pic -> reference = 0 ;\n if ( ! s -> droppable ) {\n if ( s -> codec_id == AV_CODEC_ID_H264 ) pic -> reference = s -> picture_structure ;\n else if ( s -> pict_type != AV_PICTURE_TYPE_B ) pic -> reference = 3 ;\n }\n pic -> f . coded_picture_number = s -> coded_picture_number ++ ;\n if ( ff_alloc_picture ( s , pic , 0 ) < 0 ) return - 1 ;\n s -> current_picture_ptr = pic ;\n s -> current_picture_ptr -> f . top_field_first = s -> top_field_first ;\n if ( s -> codec_id == AV_CODEC_ID_MPEG1VIDEO || s -> codec_id == AV_CODEC_ID_MPEG2VIDEO ) {\n if ( s -> picture_structure != PICT_FRAME ) s -> current_picture_ptr -> f . top_field_first = ( s -> picture_structure == PICT_TOP_FIELD ) == s -> first_field ;\n }\n s -> current_picture_ptr -> f . interlaced_frame = ! s -> progressive_frame && ! s -> progressive_sequence ;\n s -> current_picture_ptr -> field_picture = s -> picture_structure != PICT_FRAME ;\n }\n s -> current_picture_ptr -> f . pict_type = s -> pict_type ;\n s -> current_picture_ptr -> f . key_frame = s -> pict_type == AV_PICTURE_TYPE_I ;\n ff_mpeg_unref_picture ( s , & s -> current_picture ) ;\n if ( ( ret = ff_mpeg_ref_picture ( s , & s -> current_picture , s -> current_picture_ptr ) ) < 0 ) return ret ;\n if ( s -> codec_id != AV_CODEC_ID_H264 && s -> pict_type != AV_PICTURE_TYPE_B ) {\n s -> last_picture_ptr = s -> next_picture_ptr ;\n if ( ! s -> droppable ) s -> next_picture_ptr = s -> current_picture_ptr ;\n }\n av_dlog ( s -> avctx , \"L%p N%p C%p L%p N%p C%p type:%d drop:%d\\n\" , s -> last_picture_ptr , s -> next_picture_ptr , s -> current_picture_ptr , s -> last_picture_ptr ? s -> last_picture_ptr -> f . data [ 0 ] : NULL , s -> next_picture_ptr ? s -> next_picture_ptr -> f . data [ 0 ] : NULL , s -> current_picture_ptr ? s -> current_picture_ptr -> f . data [ 0 ] : NULL , s -> pict_type , s -> droppable ) ;\n if ( s -> codec_id != AV_CODEC_ID_H264 ) {\n if ( ( s -> last_picture_ptr == NULL || s -> last_picture_ptr -> f . data [ 0 ] == NULL ) && ( s -> pict_type != AV_PICTURE_TYPE_I || s -> picture_structure != PICT_FRAME ) ) {\n int h_chroma_shift , v_chroma_shift ;\n av_pix_fmt_get_chroma_sub_sample ( s -> avctx -> pix_fmt , & h_chroma_shift , & v_chroma_shift ) ;\n if ( s -> pict_type != AV_PICTURE_TYPE_I ) av_log ( avctx , AV_LOG_ERROR , \"warning: first frame is no keyframe\\n\" ) ;\n else if ( s -> picture_structure != PICT_FRAME ) av_log ( avctx , AV_LOG_INFO , \"allocate dummy last picture for field based first keyframe\\n\" ) ;\n i = ff_find_unused_picture ( s , 0 ) ;\n if ( i < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"no frame buffer available\\n\" ) ;\n return i ;\n }\n s -> last_picture_ptr = & s -> picture [ i ] ;\n if ( ff_alloc_picture ( s , s -> last_picture_ptr , 0 ) < 0 ) {\n s -> last_picture_ptr = NULL ;\n return - 1 ;\n }\n memset ( s -> last_picture_ptr -> f . data [ 0 ] , 0 , avctx -> height * s -> last_picture_ptr -> f . linesize [ 0 ] ) ;\n memset ( s -> last_picture_ptr -> f . data [ 1 ] , 0x80 , ( avctx -> height >> v_chroma_shift ) * s -> last_picture_ptr -> f . linesize [ 1 ] ) ;\n memset ( s -> last_picture_ptr -> f . data [ 2 ] , 0x80 , ( avctx -> height >> v_chroma_shift ) * s -> last_picture_ptr -> f . linesize [ 2 ] ) ;\n ff_thread_report_progress ( & s -> last_picture_ptr -> tf , INT_MAX , 0 ) ;\n ff_thread_report_progress ( & s -> last_picture_ptr -> tf , INT_MAX , 1 ) ;\n }\n if ( ( s -> next_picture_ptr == NULL || s -> next_picture_ptr -> f . data [ 0 ] == NULL ) && s -> pict_type == AV_PICTURE_TYPE_B ) {\n i = ff_find_unused_picture ( s , 0 ) ;\n if ( i < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"no frame buffer available\\n\" ) ;\n return i ;\n }\n s -> next_picture_ptr = & s -> picture [ i ] ;\n if ( ff_alloc_picture ( s , s -> next_picture_ptr , 0 ) < 0 ) {\n s -> next_picture_ptr = NULL ;\n return - 1 ;\n }\n ff_thread_report_progress ( & s -> next_picture_ptr -> tf , INT_MAX , 0 ) ;\n ff_thread_report_progress ( & s -> next_picture_ptr -> tf , INT_MAX , 1 ) ;\n }\n }\n if ( s -> codec_id != AV_CODEC_ID_H264 ) {\n if ( s -> last_picture_ptr ) {\n ff_mpeg_unref_picture ( s , & s -> last_picture ) ;\n if ( s -> last_picture_ptr -> f . data [ 0 ] && ( ret = ff_mpeg_ref_picture ( s , & s -> last_picture , s -> last_picture_ptr ) ) < 0 ) return ret ;\n }\n if ( s -> next_picture_ptr ) {\n ff_mpeg_unref_picture ( s , & s -> next_picture ) ;\n if ( s -> next_picture_ptr -> f . data [ 0 ] && ( ret = ff_mpeg_ref_picture ( s , & s -> next_picture , s -> next_picture_ptr ) ) < 0 ) return ret ;\n }\n assert ( s -> pict_type == AV_PICTURE_TYPE_I || ( s -> last_picture_ptr && s -> last_picture_ptr -> f . data [ 0 ] ) ) ;\n }\n if ( s -> picture_structure != PICT_FRAME && s -> out_format != FMT_H264 ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n if ( s -> picture_structure == PICT_BOTTOM_FIELD ) {\n s -> current_picture . f . data [ i ] += s -> current_picture . f . linesize [ i ] ;\n }\n s -> current_picture . f . linesize [ i ] *= 2 ;\n s -> last_picture . f . linesize [ i ] *= 2 ;\n s -> next_picture . f . linesize [ i ] *= 2 ;\n }\n }\n s -> err_recognition = avctx -> err_recognition ;\n if ( s -> mpeg_quant || s -> codec_id == AV_CODEC_ID_MPEG2VIDEO ) {\n s -> dct_unquantize_intra = s -> dct_unquantize_mpeg2_intra ;\n s -> dct_unquantize_inter = s -> dct_unquantize_mpeg2_inter ;\n }\n else if ( s -> out_format == FMT_H263 || s -> out_format == FMT_H261 ) {\n s -> dct_unquantize_intra = s -> dct_unquantize_h263_intra ;\n s -> dct_unquantize_inter = s -> dct_unquantize_h263_inter ;\n }\n else {\n s -> dct_unquantize_intra = s -> dct_unquantize_mpeg1_intra ;\n s -> dct_unquantize_inter = s -> dct_unquantize_mpeg1_inter ;\n }\n if ( s -> dct_error_sum ) {\n assert ( s -> avctx -> noise_reduction && s -> encoding ) ;\n update_noise_reduction ( s ) ;\n }\n if ( CONFIG_MPEG_XVMC_DECODER && s -> avctx -> xvmc_acceleration ) return ff_xvmc_field_start ( s , avctx ) ;\n return 0 ;\n }"}
{"idx": 7771, "target": 0, "func": "static int dissect_h225_H324Caps ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_H324Caps , H324Caps_sequence ) ;\n return offset ;\n }"}
{"idx": 7772, "target": 0, "func": "void pop_estack ( i_ctx_t * i_ctx_p , uint count ) {\n uint idx = 0 ;\n uint popped = 0 ;\n esfile_clear_cache ( ) ;\n for ( ;\n idx < count ;\n idx ++ ) {\n ref * ep = ref_stack_index ( & e_stack , idx - popped ) ;\n if ( r_is_estack_mark ( ep ) ) {\n ref_stack_pop ( & e_stack , idx + 1 - popped ) ;\n popped = idx + 1 ;\n ( * real_opproc ( ep ) ) ( i_ctx_p ) ;\n }\n }\n ref_stack_pop ( & e_stack , count - popped ) ;\n }"}
{"idx": 7773, "target": 0, "func": "void ff_fix_long_p_mvs ( MpegEncContext * s ) {\n MotionEstContext * const c = & s -> me ;\n const int f_code = s -> f_code ;\n int y , range ;\n assert ( s -> pict_type == AV_PICTURE_TYPE_P ) ;\n range = ( ( ( s -> out_format == FMT_MPEG1 || s -> msmpeg4_version ) ? 8 : 16 ) << f_code ) ;\n assert ( range <= 16 || ! s -> msmpeg4_version ) ;\n assert ( range <= 256 || ! ( s -> codec_id == AV_CODEC_ID_MPEG2VIDEO && s -> avctx -> strict_std_compliance >= FF_COMPLIANCE_NORMAL ) ) ;\n if ( c -> avctx -> me_range && range > c -> avctx -> me_range ) range = c -> avctx -> me_range ;\n if ( s -> flags & CODEC_FLAG_4MV ) {\n const int wrap = s -> b8_stride ;\n for ( y = 0 ;\n y < s -> mb_height ;\n y ++ ) {\n int xy = y * 2 * wrap ;\n int i = y * s -> mb_stride ;\n int x ;\n for ( x = 0 ;\n x < s -> mb_width ;\n x ++ ) {\n if ( s -> mb_type [ i ] & CANDIDATE_MB_TYPE_INTER4V ) {\n int block ;\n for ( block = 0 ;\n block < 4 ;\n block ++ ) {\n int off = ( block & 1 ) + ( block >> 1 ) * wrap ;\n int mx = s -> current_picture . motion_val [ 0 ] [ xy + off ] [ 0 ] ;\n int my = s -> current_picture . motion_val [ 0 ] [ xy + off ] [ 1 ] ;\n if ( mx >= range || mx < - range || my >= range || my < - range ) {\n s -> mb_type [ i ] &= ~ CANDIDATE_MB_TYPE_INTER4V ;\n s -> mb_type [ i ] |= CANDIDATE_MB_TYPE_INTRA ;\n s -> current_picture . mb_type [ i ] = CANDIDATE_MB_TYPE_INTRA ;\n }\n }\n }\n xy += 2 ;\n i ++ ;\n }\n }\n }\n }"}
{"idx": 7774, "target": 0, "func": "static int rawv6_push_pending_frames ( struct sock * sk , struct flowi * fl , struct raw6_sock * rp ) {\n struct sk_buff * skb ;\n int err = 0 ;\n int offset ;\n int len ;\n int total_len ;\n __wsum tmp_csum ;\n __sum16 csum ;\n if ( ! rp -> checksum ) goto send ;\n if ( ( skb = skb_peek ( & sk -> sk_write_queue ) ) == NULL ) goto out ;\n offset = rp -> offset ;\n total_len = inet_sk ( sk ) -> cork . length - ( skb_network_header ( skb ) - skb -> data ) ;\n if ( offset >= total_len - 1 ) {\n err = - EINVAL ;\n ip6_flush_pending_frames ( sk ) ;\n goto out ;\n }\n if ( skb_queue_len ( & sk -> sk_write_queue ) == 1 ) {\n tmp_csum = skb -> csum ;\n }\n else {\n struct sk_buff * csum_skb = NULL ;\n tmp_csum = 0 ;\n skb_queue_walk ( & sk -> sk_write_queue , skb ) {\n tmp_csum = csum_add ( tmp_csum , skb -> csum ) ;\n if ( csum_skb ) continue ;\n len = skb -> len - skb_transport_offset ( skb ) ;\n if ( offset >= len ) {\n offset -= len ;\n continue ;\n }\n csum_skb = skb ;\n }\n skb = csum_skb ;\n }\n offset += skb_transport_offset ( skb ) ;\n if ( skb_copy_bits ( skb , offset , & csum , 2 ) ) BUG ( ) ;\n if ( unlikely ( csum ) ) tmp_csum = csum_sub ( tmp_csum , csum_unfold ( csum ) ) ;\n csum = csum_ipv6_magic ( & fl -> fl6_src , & fl -> fl6_dst , total_len , fl -> proto , tmp_csum ) ;\n if ( csum == 0 && fl -> proto == IPPROTO_UDP ) csum = CSUM_MANGLED_0 ;\n if ( skb_store_bits ( skb , offset , & csum , 2 ) ) BUG ( ) ;\n send : err = ip6_push_pending_frames ( sk ) ;\n out : return err ;\n }"}
{"idx": 7775, "target": 0, "func": "static int newlacon ( struct vars * v , struct state * begin , struct state * end , int latype ) {\n int n ;\n struct subre * newlacons ;\n struct subre * sub ;\n if ( v -> nlacons == 0 ) {\n n = 1 ;\n newlacons = ( struct subre * ) MALLOC ( 2 * sizeof ( struct subre ) ) ;\n }\n else {\n n = v -> nlacons ;\n newlacons = ( struct subre * ) REALLOC ( v -> lacons , ( n + 1 ) * sizeof ( struct subre ) ) ;\n }\n if ( newlacons == NULL ) {\n ERR ( REG_ESPACE ) ;\n return 0 ;\n }\n v -> lacons = newlacons ;\n v -> nlacons = n + 1 ;\n sub = & v -> lacons [ n ] ;\n sub -> begin = begin ;\n sub -> end = end ;\n sub -> subno = latype ;\n ZAPCNFA ( sub -> cnfa ) ;\n return n ;\n }"}
{"idx": 7776, "target": 0, "func": "static void test_view_where ( ) {\n MYSQL_STMT * stmt ;\n int rc , i ;\n const char * query = \"select v1.c,v2.c from v1, v2\" ;\n myheader ( \"test_view_where\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS t1,v1,v2\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP VIEW IF EXISTS v1,v2,t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE t1 (a int, b int)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t1 values (1,2), (1,3), (2,4), (2,5), (3,10)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create view v1 (c) as select b from t1 where a<3\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create view v2 (c) as select b from t1 where a>=3\" ) ;\n myquery ( rc ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n rc = mysql_stmt_prepare ( stmt , query , strlen ( query ) ) ;\n check_execute ( stmt , rc ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( 4 == rc ) ;\n }\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"DROP TABLE t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP VIEW v1, v2\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 7777, "target": 0, "func": "static const char * none_escape_str ( AVBPrint * dst , const char * src , const char sep , void * log_ctx ) {\n return src ;\n }"}
{"idx": 7778, "target": 0, "func": "static void vapic_write ( void * opaque , hwaddr addr , uint64_t data , unsigned int size ) {\n CPUState * cs = current_cpu ;\n X86CPU * cpu = X86_CPU ( cs ) ;\n CPUX86State * env = & cpu -> env ;\n hwaddr rom_paddr ;\n VAPICROMState * s = opaque ;\n cpu_synchronize_state ( cs ) ;\n switch ( size ) {\n case 2 : if ( s -> state == VAPIC_INACTIVE ) {\n rom_paddr = ( env -> segs [ R_CS ] . base + env -> eip ) & ROM_BLOCK_MASK ;\n s -> rom_state_paddr = rom_paddr + data ;\n s -> state = VAPIC_STANDBY ;\n }\n if ( vapic_prepare ( s ) < 0 ) {\n s -> state = VAPIC_INACTIVE ;\n break ;\n }\n break ;\n case 1 : if ( kvm_enabled ( ) ) {\n pause_all_vcpus ( ) ;\n patch_byte ( env , env -> eip - 2 , 0x66 ) ;\n patch_byte ( env , env -> eip - 1 , 0x90 ) ;\n resume_all_vcpus ( ) ;\n }\n if ( s -> state == VAPIC_ACTIVE ) {\n break ;\n }\n if ( update_rom_mapping ( s , env , env -> eip ) < 0 ) {\n break ;\n }\n if ( find_real_tpr_addr ( s , env ) < 0 ) {\n break ;\n }\n vapic_enable ( s , env ) ;\n break ;\n default : case 4 : if ( ! kvm_irqchip_in_kernel ( ) ) {\n apic_poll_irq ( env -> apic_state ) ;\n }\n break ;\n }\n }"}
{"idx": 7779, "target": 0, "func": "static int dissect_h245_EnhancementOptions ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_EnhancementOptions , EnhancementOptions_sequence ) ;\n return offset ;\n }"}
{"idx": 7780, "target": 0, "func": "xsltLocaleChar * xsltStrxfrm ( xsltLocale locale , const xmlChar * string ) {\n # ifdef XSLT_LOCALE_NONE return ( NULL ) ;\n # else size_t xstrlen , r ;\n xsltLocaleChar * xstr ;\n # ifdef XSLT_LOCALE_XLOCALE xstrlen = strxfrm_l ( NULL , ( const char * ) string , 0 , locale ) + 1 ;\n xstr = ( xsltLocaleChar * ) xmlMalloc ( xstrlen ) ;\n if ( xstr == NULL ) {\n xsltTransformError ( NULL , NULL , NULL , \"xsltStrxfrm : out of memory error\\n\" ) ;\n return ( NULL ) ;\n }\n r = strxfrm_l ( ( char * ) xstr , ( const char * ) string , xstrlen , locale ) ;\n # endif # ifdef XSLT_LOCALE_WINAPI xstrlen = MultiByteToWideChar ( CP_UTF8 , 0 , string , - 1 , NULL , 0 ) ;\n if ( xstrlen == 0 ) {\n xsltTransformError ( NULL , NULL , NULL , \"xsltStrxfrm : MultiByteToWideChar check failed\\n\" ) ;\n return ( NULL ) ;\n }\n xstr = ( xsltLocaleChar * ) xmlMalloc ( xstrlen * sizeof ( xsltLocaleChar ) ) ;\n if ( xstr == NULL ) {\n xsltTransformError ( NULL , NULL , NULL , \"xsltStrxfrm : out of memory\\n\" ) ;\n return ( NULL ) ;\n }\n r = MultiByteToWideChar ( CP_UTF8 , 0 , string , - 1 , xstr , xstrlen ) ;\n if ( r == 0 ) {\n xsltTransformError ( NULL , NULL , NULL , \"xsltStrxfrm : MultiByteToWideChar failed\\n\" ) ;\n xmlFree ( xstr ) ;\n return ( NULL ) ;\n }\n return ( xstr ) ;\n # endif if ( r >= xstrlen ) {\n xsltTransformError ( NULL , NULL , NULL , \"xsltStrxfrm : strxfrm failed\\n\" ) ;\n xmlFree ( xstr ) ;\n return ( NULL ) ;\n }\n return ( xstr ) ;\n # endif }"}
{"idx": 7781, "target": 0, "func": "static void sql_inline_error_callback ( void * arg ) {\n inline_error_callback_arg * callback_arg = ( inline_error_callback_arg * ) arg ;\n int syntaxerrposition ;\n syntaxerrposition = geterrposition ( ) ;\n if ( syntaxerrposition > 0 ) {\n errposition ( 0 ) ;\n internalerrposition ( syntaxerrposition ) ;\n internalerrquery ( callback_arg -> prosrc ) ;\n }\n errcontext ( \"SQL function \\\"%s\\\" during inlining\" , callback_arg -> proname ) ;\n }"}
{"idx": 7782, "target": 0, "func": "static int dissect_h245_ParameterIdentifier ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 744 \"../../asn1/h245/h245.cnf\" gef_ctx_t * gefx ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_ParameterIdentifier , ParameterIdentifier_choice , NULL ) ;\n # line 746 \"../../asn1/h245/h245.cnf\" gef_ctx_update_key ( gef_ctx_get ( actx -> private_data ) ) ;\n gefx = gef_ctx_get ( actx -> private_data ) ;\n if ( gefx ) {\n dissector_try_string ( gef_name_dissector_table , gefx -> key , tvb_new_subset ( tvb , offset >> 3 , 0 , 0 ) , actx -> pinfo , tree , actx ) ;\n }\n actx -> private_data = gefx ;\n return offset ;\n }"}
{"idx": 7783, "target": 0, "func": "static void dissect_rsvp_gen_uni ( proto_tree * ti , packet_info * pinfo , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int type , rsvp_conversation_info * rsvph ) {\n int offset2 = offset + 4 ;\n int mylen , i , j , k , l ;\n proto_item * ti2 = NULL , * len_item ;\n proto_tree * rsvp_gen_uni_subtree , * rsvp_session_subtree , * rsvp_template_subtree ;\n int s_len , s_class , s_type , sobj_len , nsap_len ;\n int offset3 ;\n proto_item_set_text ( ti , \"GENERALIZED UNI: \" ) ;\n mylen = obj_length - 4 ;\n switch ( type ) {\n case 1 : {\n const char * c ;\n proto_tree_add_uint ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type ) ;\n for ( i = 1 , l = 0 ;\n l < mylen ;\n i ++ ) {\n sobj_len = tvb_get_ntohs ( tvb , offset2 + l ) ;\n j = tvb_get_guint8 ( tvb , offset2 + l + 2 ) ;\n switch ( j ) {\n case 1 : case 2 : c = ( j == 1 ) ? \"Source\" : \"Destination\" ;\n k = tvb_get_guint8 ( tvb , offset2 + l + 3 ) ;\n switch ( k ) {\n case 1 : rsvp_gen_uni_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset2 + l , 8 , TREE ( TT_GEN_UNI_SUBOBJ ) , NULL , \"%s IPv4 TNA: %s\" , c , tvb_ip_to_str ( tvb , offset2 + l + 4 ) ) ;\n proto_tree_add_uint_format_value ( rsvp_gen_uni_subtree , hf_rsvp_class , tvb , offset2 + l + 2 , 1 , j , \"%d (%s)\" , j , c ) ;\n proto_tree_add_uint_format_value ( rsvp_gen_uni_subtree , hf_rsvp_type , tvb , offset2 + l + 3 , 1 , k , \"1 (IPv4)\" ) ;\n proto_tree_add_uint ( rsvp_gen_uni_subtree , hf_rsvp_class_length , tvb , offset2 + l , 2 , sobj_len ) ;\n if ( j == 1 ) proto_tree_add_item ( rsvp_gen_uni_subtree , hf_rsvp_filter [ RSVPF_GUNI_SRC_IPV4 ] , tvb , offset2 + l + 4 , 4 , ENC_BIG_ENDIAN ) ;\n else proto_tree_add_item ( rsvp_gen_uni_subtree , hf_rsvp_filter [ RSVPF_GUNI_DST_IPV4 ] , tvb , offset2 + l + 4 , 4 , ENC_BIG_ENDIAN ) ;\n if ( i < 4 ) {\n proto_item_append_text ( ti , \"%s IPv4 TNA: %s\" , c , tvb_ip_to_str ( tvb , offset2 + l + 4 ) ) ;\n }\n break ;\n case 2 : rsvp_gen_uni_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset2 + l , 20 , TREE ( TT_GEN_UNI_SUBOBJ ) , NULL , \"%s IPv6 TNA:\" , c ) ;\n proto_tree_add_uint_format_value ( rsvp_gen_uni_subtree , hf_rsvp_class , tvb , offset2 + l + 2 , 1 , j , \"%d (%s)\" , j , c ) ;\n proto_tree_add_uint_format_value ( rsvp_gen_uni_subtree , hf_rsvp_type , tvb , offset2 + l + 3 , 1 , k , \"2 (IPv6)\" ) ;\n proto_tree_add_uint ( rsvp_gen_uni_subtree , hf_rsvp_class_length , tvb , offset2 + l , 2 , sobj_len ) ;\n if ( j == 1 ) proto_tree_add_item ( rsvp_gen_uni_subtree , hf_rsvp_filter [ RSVPF_GUNI_SRC_IPV6 ] , tvb , offset2 + l + 4 , 16 , ENC_NA ) ;\n else proto_tree_add_item ( rsvp_gen_uni_subtree , hf_rsvp_filter [ RSVPF_GUNI_DST_IPV6 ] , tvb , offset2 + l + 4 , 16 , ENC_NA ) ;\n if ( i < 4 ) {\n proto_item_append_text ( ti , \"%s IPv6 TNA: %s\" , c , tvb_ip6_to_str ( tvb , offset2 + l + 4 ) ) ;\n }\n break ;\n case 3 : rsvp_gen_uni_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset2 + l , tvb_get_ntohs ( tvb , offset2 + l ) , TREE ( TT_GEN_UNI_SUBOBJ ) , NULL , \"%s NSAP TNA: \" , c ) ;\n nsap_len = tvb_get_guint8 ( tvb , offset2 + l + 4 ) ;\n proto_tree_add_uint_format_value ( rsvp_gen_uni_subtree , hf_rsvp_class , tvb , offset2 + l + 2 , 1 , j , \"%d (%s)\" , j , c ) ;\n proto_tree_add_uint_format_value ( rsvp_gen_uni_subtree , hf_rsvp_type , tvb , offset2 + l + 3 , 1 , k , \"3 (NSAP)\" ) ;\n proto_tree_add_uint ( rsvp_gen_uni_subtree , hf_rsvp_class_length , tvb , offset2 + l , 2 , sobj_len ) ;\n proto_tree_add_item ( rsvp_gen_uni_subtree , hf_rsvp_nsap_length , tvb , offset2 + l + 4 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_string ( rsvp_gen_uni_subtree , hf_rsvp_nsap_address , tvb , offset2 + l + 5 , sobj_len - 4 , print_nsap_net ( tvb , offset2 + l + 5 , nsap_len ) ) ;\n if ( i < 4 ) {\n proto_item_append_text ( ti , \"%s NSAP TNA: %s\" , c , print_nsap_net ( tvb , offset2 + l + 5 , nsap_len ) ) ;\n }\n break ;\n default : rsvp_gen_uni_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset2 + l , tvb_get_ntohs ( tvb , offset2 + l ) , TREE ( TT_GEN_UNI_SUBOBJ ) , NULL , \"%s UNKNOWN TNA\" , c ) ;\n proto_tree_add_uint_format_value ( rsvp_gen_uni_subtree , hf_rsvp_class , tvb , offset2 + l + 2 , 1 , j , \"%d (%s)\" , j , c ) ;\n proto_tree_add_uint_format_value ( rsvp_gen_uni_subtree , hf_rsvp_type , tvb , offset2 + l + 3 , 1 , k , \"%d (UNKNOWN)\" , k ) ;\n proto_tree_add_uint ( rsvp_gen_uni_subtree , hf_rsvp_class_length , tvb , offset2 + l , 2 , sobj_len ) ;\n proto_tree_add_item ( rsvp_gen_uni_subtree , hf_rsvp_gen_uni_data , tvb , offset2 + l + 4 , sobj_len - 4 , ENC_NA ) ;\n if ( i < 4 ) {\n proto_item_append_text ( ti , \"%s UNKNOWN\" , c ) ;\n }\n break ;\n }\n break ;\n case 3 : k = tvb_get_guint8 ( tvb , offset2 + l + 3 ) ;\n switch ( k ) {\n default : case 1 : rsvp_gen_uni_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset2 + l , tvb_get_ntohs ( tvb , offset2 + l ) , TREE ( TT_GEN_UNI_SUBOBJ ) , & ti2 , \"Diversity Subobject\" ) ;\n proto_tree_add_uint_format_value ( rsvp_gen_uni_subtree , hf_rsvp_class , tvb , offset2 + l + 2 , 1 , j , \"%d (Diversity)\" , j ) ;\n proto_tree_add_uint ( rsvp_gen_uni_subtree , hf_rsvp_type , tvb , offset2 + l + 3 , 1 , k ) ;\n proto_tree_add_uint ( rsvp_gen_uni_subtree , hf_rsvp_class_length , tvb , offset2 + l , 2 , sobj_len ) ;\n proto_tree_add_item ( rsvp_gen_uni_subtree , hf_rsvp_class_diversity , tvb , offset2 + l + 4 , 1 , ENC_NA ) ;\n s_len = tvb_get_ntohs ( tvb , offset2 + l + 8 ) ;\n s_class = tvb_get_guint8 ( tvb , offset2 + l + 10 ) ;\n s_type = tvb_get_guint8 ( tvb , offset2 + l + 11 ) ;\n rsvp_session_subtree = proto_tree_add_subtree ( rsvp_gen_uni_subtree , tvb , offset2 + l + 8 , s_len , TREE ( rsvp_class_to_tree_type ( s_class ) ) , & ti2 , \"Session\" ) ;\n len_item = proto_tree_add_uint ( rsvp_session_subtree , hf_rsvp_length , tvb , offset2 + l + 8 , 2 , s_len ) ;\n if ( s_len < 4 ) {\n expert_add_info_format ( pinfo , len_item , & ei_rsvp_invalid_length , \"Length: %u (bogus, must be >= 4)\" , s_len ) ;\n break ;\n }\n proto_tree_add_uint ( rsvp_session_subtree , hf_rsvp_filter [ RSVPF_OBJECT ] , tvb , offset2 + 8 + l + 10 , 1 , s_class ) ;\n dissect_rsvp_session ( ti2 , rsvp_session_subtree , tvb , offset2 + l + 8 , s_len , s_class , s_type , rsvph ) ;\n offset3 = offset2 + s_len ;\n s_len = tvb_get_ntohs ( tvb , offset3 + l + 8 ) ;\n s_class = tvb_get_guint8 ( tvb , offset3 + l + 10 ) ;\n s_type = tvb_get_guint8 ( tvb , offset3 + l + 11 ) ;\n rsvp_template_subtree = proto_tree_add_subtree ( rsvp_gen_uni_subtree , tvb , offset3 + l + 8 , s_len , TREE ( rsvp_class_to_tree_type ( s_class ) ) , & ti2 , \"Template\" ) ;\n proto_tree_add_uint ( rsvp_template_subtree , hf_rsvp_length , tvb , offset3 + l + 8 , 2 , s_len ) ;\n if ( s_len < 4 ) {\n expert_add_info_format ( pinfo , len_item , & ei_rsvp_invalid_length , \"Length: %u (bogus, must be >= 4)\" , s_len ) ;\n break ;\n }\n proto_tree_add_uint ( rsvp_template_subtree , hf_rsvp_filter [ RSVPF_OBJECT ] , tvb , offset3 + 8 + l + 10 , 1 , s_class ) ;\n dissect_rsvp_template_filter ( ti2 , rsvp_template_subtree , tvb , offset3 + l + 8 , s_len , s_class , s_type , rsvph ) ;\n if ( i < 4 ) {\n proto_item_append_text ( ti , \"Diversity\" ) ;\n }\n break ;\n }\n break ;\n case 4 : k = tvb_get_guint8 ( tvb , offset2 + l + 3 ) ;\n if ( k == 1 ) rsvp_gen_uni_subtree = proto_tree_add_subtree ( rsvp_object_tree , tvb , offset2 + l , sobj_len , TREE ( TT_GEN_UNI_SUBOBJ ) , & ti2 , \"Egress Label Subobject\" ) ;\n else if ( k == 2 ) rsvp_gen_uni_subtree = proto_tree_add_subtree ( rsvp_object_tree , tvb , offset2 + l , sobj_len , TREE ( TT_GEN_UNI_SUBOBJ ) , & ti2 , \"SPC Label Subobject\" ) ;\n else rsvp_gen_uni_subtree = proto_tree_add_subtree ( rsvp_object_tree , tvb , offset2 + l , sobj_len , TREE ( TT_GEN_UNI_SUBOBJ ) , & ti2 , \"Unknown Label Subobject\" ) ;\n proto_tree_add_uint_format_value ( rsvp_gen_uni_subtree , hf_rsvp_class , tvb , offset2 + l + 2 , 1 , j , \"%d (Egress/SPC Label)\" , j ) ;\n proto_tree_add_uint ( rsvp_gen_uni_subtree , hf_rsvp_type , tvb , offset2 + l + 3 , 1 , k ) ;\n proto_tree_add_uint ( rsvp_gen_uni_subtree , hf_rsvp_class_length , tvb , offset2 + l , 2 , sobj_len ) ;\n proto_tree_add_item ( rsvp_gen_uni_subtree , hf_rsvp_gen_uni_direction , tvb , offset + l + 2 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_gen_uni_subtree , hf_rsvp_egress_label_type , tvb , offset2 + l + 7 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_gen_uni_subtree , hf_rsvp_gen_uni_logical_port_id , tvb , offset2 + l + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti2 , \": %s, Label type %d, Port ID %d, Label \" , tvb_get_guint8 ( tvb , offset2 + l + 4 ) & 0x80 ? \"Upstream\" : \"Downstream\" , tvb_get_guint8 ( tvb , offset2 + l + 7 ) , tvb_get_ntohl ( tvb , offset2 + l + 8 ) ) ;\n for ( j = 12 ;\n j < sobj_len ;\n j += 4 ) {\n proto_tree_add_item ( rsvp_gen_uni_subtree , hf_rsvp_egress_label , tvb , offset2 + l + j , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti2 , \"%u \" , tvb_get_ntohl ( tvb , offset2 + l + j ) ) ;\n }\n if ( i < 4 ) {\n if ( k == 1 ) proto_item_append_text ( ti , \"Egress Label\" ) ;\n else if ( k == 2 ) proto_item_append_text ( ti , \"SPC Label\" ) ;\n }\n break ;\n case 5 : k = tvb_get_guint8 ( tvb , offset2 + l + 3 ) ;\n switch ( k ) {\n default : case 1 : rsvp_gen_uni_subtree = proto_tree_add_subtree ( rsvp_object_tree , tvb , offset2 + l , sobj_len , TREE ( TT_GEN_UNI_SUBOBJ ) , & ti2 , \"Service Level Subobject\" ) ;\n proto_tree_add_uint_format_value ( rsvp_gen_uni_subtree , hf_rsvp_class , tvb , offset2 + l + 2 , 1 , j , \"%d (Service Level)\" , j ) ;\n proto_tree_add_uint ( rsvp_gen_uni_subtree , hf_rsvp_type , tvb , offset2 + l + 3 , 1 , k ) ;\n proto_tree_add_uint ( rsvp_gen_uni_subtree , hf_rsvp_class_length , tvb , offset2 + l , 2 , sobj_len ) ;\n proto_tree_add_item ( rsvp_gen_uni_subtree , hf_rsvp_gen_uni_service_level , tvb , offset2 + l + 4 , 1 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti2 , \": %u\" , tvb_get_guint8 ( tvb , offset2 + l + 4 ) ) ;\n if ( i < 4 ) {\n proto_item_append_text ( ti , \"Service Level %d\" , tvb_get_guint8 ( tvb , offset2 + l + 4 ) ) ;\n }\n break ;\n }\n break ;\n default : rsvp_gen_uni_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset2 + l , sobj_len , TREE ( TT_GEN_UNI_SUBOBJ ) , NULL , \"Unknown subobject: %u\" , j ) ;\n proto_tree_add_uint_format_value ( rsvp_gen_uni_subtree , hf_rsvp_type , tvb , offset2 + l , 1 , j , \"%u (Unknown)\" , j ) ;\n proto_tree_add_item ( rsvp_gen_uni_subtree , hf_rsvp_class_length , tvb , offset2 + l + 1 , 1 , ENC_BIG_ENDIAN ) ;\n break ;\n }\n if ( tvb_get_guint8 ( tvb , offset2 + l + 1 ) < 1 ) {\n proto_tree_add_expert_format ( rsvp_gen_uni_subtree , pinfo , & ei_rsvp_invalid_length , tvb , offset2 + l + 1 , 1 , \"Invalid length: %u\" , tvb_get_guint8 ( tvb , offset2 + l + 1 ) ) ;\n return ;\n }\n l += tvb_get_guint8 ( tvb , offset2 + l + 1 ) ;\n if ( l < mylen ) {\n if ( i < 4 ) proto_item_append_text ( ti , \", \" ) ;\n else if ( i == 4 ) proto_item_append_text ( ti , \"...\" ) ;\n }\n }\n break ;\n }\n default : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"Unknown (%u)\" , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_gen_uni_data , tvb , offset2 , mylen , ENC_NA ) ;\n break ;\n }\n }"}
{"idx": 7784, "target": 0, "func": "void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 )"}
{"idx": 7785, "target": 0, "func": "static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 7786, "target": 0, "func": "static void stroke_add_ca ( private_stroke_socket_t * this , stroke_msg_t * msg , FILE * out ) {\n pop_string ( msg , & msg -> add_ca . name ) ;\n DBG1 ( DBG_CFG , \"received stroke: add ca '%s'\" , msg -> add_ca . name ) ;\n pop_string ( msg , & msg -> add_ca . cacert ) ;\n pop_string ( msg , & msg -> add_ca . crluri ) ;\n pop_string ( msg , & msg -> add_ca . crluri2 ) ;\n pop_string ( msg , & msg -> add_ca . ocspuri ) ;\n pop_string ( msg , & msg -> add_ca . ocspuri2 ) ;\n pop_string ( msg , & msg -> add_ca . certuribase ) ;\n DBG2 ( DBG_CFG , \"ca %s\" , msg -> add_ca . name ) ;\n DBG_OPT ( \" cacert=%s\" , msg -> add_ca . cacert ) ;\n DBG_OPT ( \" crluri=%s\" , msg -> add_ca . crluri ) ;\n DBG_OPT ( \" crluri2=%s\" , msg -> add_ca . crluri2 ) ;\n DBG_OPT ( \" ocspuri=%s\" , msg -> add_ca . ocspuri ) ;\n DBG_OPT ( \" ocspuri2=%s\" , msg -> add_ca . ocspuri2 ) ;\n DBG_OPT ( \" certuribase=%s\" , msg -> add_ca . certuribase ) ;\n this -> ca -> add ( this -> ca , msg ) ;\n }"}
{"idx": 7787, "target": 0, "func": "static int mp_gradient ( MotionPixelsContext * mp , int component , int v ) {\n int delta ;\n delta = ( v - 7 ) * mp -> gradient_scale [ component ] ;\n mp -> gradient_scale [ component ] = ( v == 0 || v == 14 ) ? 2 : 1 ;\n return delta ;\n }"}
{"idx": 7788, "target": 0, "func": "static void cleanup_unknown_header_ext ( BlockDriverState * bs ) {\n BDRVQcowState * s = bs -> opaque ;\n Qcow2UnknownHeaderExtension * uext , * next ;\n QLIST_FOREACH_SAFE ( uext , & s -> unknown_header_ext , next , next ) {\n QLIST_REMOVE ( uext , next ) ;\n g_free ( uext ) ;\n }\n }"}
{"idx": 7789, "target": 0, "func": "static int mp_get_vlc ( MotionPixelsContext * mp , GetBitContext * gb ) {\n int i ;\n i = ( mp -> codes_count == 1 ) ? 0 : get_vlc2 ( gb , mp -> vlc . table , mp -> max_codes_bits , 1 ) ;\n return mp -> codes [ i ] . delta ;\n }"}
{"idx": 7790, "target": 0, "func": "static cmsBool Type_MPEclut_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) {\n cmsUInt8Number Dimensions8 [ 16 ] ;\n cmsUInt32Number i ;\n cmsStage * mpe = ( cmsStage * ) Ptr ;\n _cmsStageCLutData * clut = ( _cmsStageCLutData * ) mpe -> Data ;\n if ( mpe -> InputChannels > MAX_INPUT_DIMENSIONS ) return FALSE ;\n if ( clut -> HasFloatValues == FALSE ) return FALSE ;\n if ( ! _cmsWriteUInt16Number ( io , ( cmsUInt16Number ) mpe -> InputChannels ) ) return FALSE ;\n if ( ! _cmsWriteUInt16Number ( io , ( cmsUInt16Number ) mpe -> OutputChannels ) ) return FALSE ;\n memset ( Dimensions8 , 0 , sizeof ( Dimensions8 ) ) ;\n for ( i = 0 ;\n i < mpe -> InputChannels ;\n i ++ ) Dimensions8 [ i ] = ( cmsUInt8Number ) clut -> Params -> nSamples [ i ] ;\n if ( ! io -> Write ( io , 16 , Dimensions8 ) ) return FALSE ;\n for ( i = 0 ;\n i < clut -> nEntries ;\n i ++ ) {\n if ( ! _cmsWriteFloat32Number ( io , clut -> Tab . TFloat [ i ] ) ) return FALSE ;\n }\n return TRUE ;\n cmsUNUSED_PARAMETER ( nItems ) ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 7791, "target": 0, "func": "static void U_CALLCONV _UTF16BEOpen ( UConverter * cnv , UConverterLoadArgs * pArgs , UErrorCode * pErrorCode ) {\n ( void ) pArgs ;\n if ( UCNV_GET_VERSION ( cnv ) <= 1 ) {\n _UTF16BEReset ( cnv , UCNV_RESET_BOTH ) ;\n }\n else {\n * pErrorCode = U_ILLEGAL_ARGUMENT_ERROR ;\n }\n }"}
{"idx": 7792, "target": 0, "func": "int qemuMonitorJSONOpenGraphics ( qemuMonitorPtr mon , const char * protocol , const char * fdname , bool skipauth ) {\n int ret ;\n virJSONValuePtr cmd , reply = NULL ;\n cmd = qemuMonitorJSONMakeCommand ( \"add_client\" , \"s:protocol\" , protocol , \"s:fdname\" , fdname , \"b:skipauth\" , skipauth , NULL ) ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 7793, "target": 0, "func": "static guint16 de_allowed_act ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n curr_offset = offset ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_ccbs_activation , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( curr_offset << 3 ) + 1 , 7 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n EXTRANEOUS_DATA_CHECK ( len , curr_offset - offset , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n return ( len ) ;\n }"}
{"idx": 7794, "target": 0, "func": "static void png_filter_row ( PNGDSPContext * dsp , uint8_t * dst , int filter_type , uint8_t * src , uint8_t * last , int size , int bpp ) {\n int i , p , r , g , b , a ;\n switch ( filter_type ) {\n case PNG_FILTER_VALUE_NONE : memcpy ( dst , src , size ) ;\n break ;\n case PNG_FILTER_VALUE_SUB : for ( i = 0 ;\n i < bpp ;\n i ++ ) {\n dst [ i ] = src [ i ] ;\n }\n if ( bpp == 4 ) {\n p = * ( int * ) dst ;\n for ( ;\n i < size ;\n i += bpp ) {\n int s = * ( int * ) ( src + i ) ;\n p = ( ( s & 0x7f7f7f7f ) + ( p & 0x7f7f7f7f ) ) ^ ( ( s ^ p ) & 0x80808080 ) ;\n * ( int * ) ( dst + i ) = p ;\n }\n }\n else {\n # define OP_SUB ( x , s , l ) x + s UNROLL_FILTER ( OP_SUB ) ;\n }\n break ;\n case PNG_FILTER_VALUE_UP : dsp -> add_bytes_l2 ( dst , src , last , size ) ;\n break ;\n case PNG_FILTER_VALUE_AVG : for ( i = 0 ;\n i < bpp ;\n i ++ ) {\n p = ( last [ i ] >> 1 ) ;\n dst [ i ] = p + src [ i ] ;\n }\n # define OP_AVG ( x , s , l ) ( ( ( x + l ) >> 1 ) + s ) & 0xff UNROLL_FILTER ( OP_AVG ) ;\n break ;\n case PNG_FILTER_VALUE_PAETH : for ( i = 0 ;\n i < bpp ;\n i ++ ) {\n p = last [ i ] ;\n dst [ i ] = p + src [ i ] ;\n }\n if ( bpp > 1 && size > 4 ) {\n int w = bpp == 4 ? size : size - 3 ;\n dsp -> add_paeth_prediction ( dst + i , src + i , last + i , w - i , bpp ) ;\n i = w ;\n }\n ff_add_png_paeth_prediction ( dst + i , src + i , last + i , size - i , bpp ) ;\n break ;\n }\n }"}
{"idx": 7795, "target": 0, "func": "static void curses_connection_inject_file ( void ) {\n wdg_t * fop ;\n DEBUG_MSG ( \"curses_connection_inject_file\" ) ;\n wdg_create_object ( & fop , WDG_FILE , WDG_OBJ_WANT_FOCUS | WDG_OBJ_FOCUS_MODAL ) ;\n wdg_set_title ( fop , \"Select a file to inject...\" , WDG_ALIGN_LEFT ) ;\n wdg_set_color ( fop , WDG_COLOR_SCREEN , EC_COLOR ) ;\n wdg_set_color ( fop , WDG_COLOR_WINDOW , EC_COLOR_MENU ) ;\n wdg_set_color ( fop , WDG_COLOR_FOCUS , EC_COLOR_FOCUS ) ;\n wdg_set_color ( fop , WDG_COLOR_TITLE , EC_COLOR_TITLE ) ;\n wdg_file_set_callback ( fop , inject_file ) ;\n wdg_draw_object ( fop ) ;\n wdg_set_focus ( fop ) ;\n }"}
{"idx": 7796, "target": 1, "func": "static void evhttp_handle_request ( struct evhttp_request * req , void * arg ) {\n struct evhttp * http = arg ;\n struct evhttp_cb * cb = NULL ;\n if ( req -> uri == NULL ) {\n evhttp_send_error ( req , HTTP_BADREQUEST , \"Bad Request\" ) ;\n return ;\n }\n if ( ( cb = evhttp_dispatch_callback ( & http -> callbacks , req ) ) != NULL ) {\n ( * cb -> cb ) ( req , cb -> cbarg ) ;\n return ;\n }\n if ( http -> gencb ) {\n ( * http -> gencb ) ( req , http -> gencbarg ) ;\n return ;\n }\n else {\n # define ERR_FORMAT \"<html><head>\" \"<title>404 Not Found</title>\" \"</head><body>\" \"<h1>Not Found</h1>\" \"<p>The requested URL %s was not found on this server.</p>\" \"</body></html>\\n\" char * escaped_html = evhttp_htmlescape ( req -> uri ) ;\n struct evbuffer * buf = evbuffer_new ( ) ;\n evhttp_response_code ( req , HTTP_NOTFOUND , \"Not Found\" ) ;\n evbuffer_add_printf ( buf , ERR_FORMAT , escaped_html ) ;\n free ( escaped_html ) ;\n evhttp_send_page ( req , buf ) ;\n evbuffer_free ( buf ) ;\n # undef ERR_FORMAT }\n }"}
{"idx": 7797, "target": 0, "func": "int vp9_get_preview_raw_frame ( VP9_COMP * cpi , YV12_BUFFER_CONFIG * dest , vp9_ppflags_t * flags ) {\n VP9_COMMON * cm = & cpi -> common ;\n # if ! CONFIG_VP9_POSTPROC ( void ) flags ;\n # endif if ( ! cm -> show_frame ) {\n return - 1 ;\n }\n else {\n int ret ;\n # if CONFIG_VP9_POSTPROC ret = vp9_post_proc_frame ( cm , dest , flags ) ;\n # else if ( cm -> frame_to_show ) {\n * dest = * cm -> frame_to_show ;\n dest -> y_width = cm -> width ;\n dest -> y_height = cm -> height ;\n dest -> uv_width = cm -> width >> cm -> subsampling_x ;\n dest -> uv_height = cm -> height >> cm -> subsampling_y ;\n ret = 0 ;\n }\n else {\n ret = - 1 ;\n }\n # endif vp9_clear_system_state ( ) ;\n return ret ;\n }\n }"}
{"idx": 7798, "target": 1, "func": "zend_function * spl_filesystem_object_get_method_check ( zval * * object_ptr , char * method , int method_len , const struct _zend_literal * key TSRMLS_DC ) {\n spl_filesystem_object * fsobj = zend_object_store_get_object ( * object_ptr TSRMLS_CC ) ;\n if ( fsobj -> u . dir . entry . d_name [ 0 ] == '\\0' && fsobj -> orig_path == NULL ) {\n method = \"_bad_state_ex\" ;\n method_len = sizeof ( \"_bad_state_ex\" ) - 1 ;\n key = NULL ;\n }\n return zend_get_std_object_handlers ( ) -> get_method ( object_ptr , method , method_len , key TSRMLS_CC ) ;\n }"}
{"idx": 7799, "target": 0, "func": "static void cmd_server_remove ( const char * data ) {\n SERVER_SETUP_REC * rec ;\n char * addr , * port , * chatnet ;\n void * free_arg ;\n if ( ! cmd_get_params ( data , & free_arg , 3 , & addr , & port , & chatnet ) ) return ;\n if ( * addr == '\\0' ) cmd_param_error ( CMDERR_NOT_ENOUGH_PARAMS ) ;\n if ( * port == '\\0' ) {\n if ( * chatnet == '\\0' ) rec = server_setup_find ( addr , - 1 , NULL ) ;\n else rec = server_setup_find ( addr , - 1 , chatnet ) ;\n }\n else {\n if ( * chatnet == '\\0' ) rec = server_setup_find ( addr , atoi ( port ) , NULL ) ;\n else rec = server_setup_find ( addr , atoi ( port ) , chatnet ) ;\n }\n if ( rec == NULL ) printformat ( NULL , NULL , MSGLEVEL_CLIENTNOTICE , TXT_SETUPSERVER_NOT_FOUND , addr , port ) ;\n else {\n server_setup_remove ( rec ) ;\n printformat ( NULL , NULL , MSGLEVEL_CLIENTNOTICE , TXT_SETUPSERVER_REMOVED , addr , port ) ;\n }\n cmd_params_free ( free_arg ) ;\n }"}
{"idx": 7800, "target": 0, "func": "static void decode_slice_plane ( ProresContext * ctx , ProresThreadData * td , const uint8_t * buf , int data_size , uint16_t * out_ptr , int linesize , int mbs_per_slice , int blocks_per_mb , int plane_size_factor , const int16_t * qmat , int is_chroma ) {\n GetBitContext gb ;\n int16_t * block_ptr ;\n int mb_num , blocks_per_slice ;\n blocks_per_slice = mbs_per_slice * blocks_per_mb ;\n memset ( td -> blocks , 0 , 8 * 4 * 64 * sizeof ( * td -> blocks ) ) ;\n init_get_bits ( & gb , buf , data_size << 3 ) ;\n decode_dc_coeffs ( & gb , td -> blocks , blocks_per_slice ) ;\n decode_ac_coeffs ( & gb , td -> blocks , blocks_per_slice , plane_size_factor , ctx -> scantable . permutated ) ;\n block_ptr = td -> blocks ;\n if ( ! is_chroma ) {\n for ( mb_num = 0 ;\n mb_num < mbs_per_slice ;\n mb_num ++ , out_ptr += blocks_per_mb * 4 ) {\n ctx -> dsp . idct_put ( out_ptr , linesize , block_ptr , qmat ) ;\n block_ptr += 64 ;\n if ( blocks_per_mb > 2 ) {\n ctx -> dsp . idct_put ( out_ptr + 8 , linesize , block_ptr , qmat ) ;\n block_ptr += 64 ;\n }\n ctx -> dsp . idct_put ( out_ptr + linesize * 4 , linesize , block_ptr , qmat ) ;\n block_ptr += 64 ;\n if ( blocks_per_mb > 2 ) {\n ctx -> dsp . idct_put ( out_ptr + linesize * 4 + 8 , linesize , block_ptr , qmat ) ;\n block_ptr += 64 ;\n }\n }\n }\n else {\n for ( mb_num = 0 ;\n mb_num < mbs_per_slice ;\n mb_num ++ , out_ptr += blocks_per_mb * 4 ) {\n ctx -> dsp . idct_put ( out_ptr , linesize , block_ptr , qmat ) ;\n block_ptr += 64 ;\n ctx -> dsp . idct_put ( out_ptr + linesize * 4 , linesize , block_ptr , qmat ) ;\n block_ptr += 64 ;\n if ( blocks_per_mb > 2 ) {\n ctx -> dsp . idct_put ( out_ptr + 8 , linesize , block_ptr , qmat ) ;\n block_ptr += 64 ;\n ctx -> dsp . idct_put ( out_ptr + linesize * 4 + 8 , linesize , block_ptr , qmat ) ;\n block_ptr += 64 ;\n }\n }\n }\n }"}
{"idx": 7801, "target": 0, "func": "static void fast_gray_to_cmyk ( fz_context * ctx , fz_pixmap * dst , fz_pixmap * src , fz_colorspace * prf , const fz_default_colorspaces * default_cs , const fz_color_params * color_params , int copy_spots ) {\n unsigned char * s = src -> samples ;\n unsigned char * d = dst -> samples ;\n size_t w = src -> w ;\n int h = src -> h ;\n int sn = src -> n ;\n int ss = src -> s ;\n int sa = src -> alpha ;\n int dn = dst -> n ;\n int ds = dst -> s ;\n int da = dst -> alpha ;\n ptrdiff_t d_line_inc = dst -> stride - w * dn ;\n ptrdiff_t s_line_inc = src -> stride - w * sn ;\n if ( ( copy_spots && ss != ds ) || ( ! da && sa ) ) {\n assert ( \"This should never happen\" == NULL ) ;\n fz_throw ( ctx , FZ_ERROR_GENERIC , \"Cannot convert between incompatible pixmaps\" ) ;\n }\n if ( ( int ) w < 0 || h < 0 ) return ;\n if ( d_line_inc == 0 && s_line_inc == 0 ) {\n w *= h ;\n h = 1 ;\n }\n if ( ss == 0 && ds == 0 ) {\n if ( da ) {\n if ( sa ) {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n d [ 0 ] = 0 ;\n d [ 1 ] = 0 ;\n d [ 2 ] = 0 ;\n d [ 3 ] = 255 - s [ 0 ] ;\n d [ 4 ] = s [ 1 ] ;\n s += 2 ;\n d += 5 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n else {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n d [ 0 ] = 0 ;\n d [ 1 ] = 0 ;\n d [ 2 ] = 0 ;\n d [ 3 ] = 255 - s [ 0 ] ;\n d [ 4 ] = 255 ;\n s ++ ;\n d += 5 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n }\n else {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n d [ 0 ] = 0 ;\n d [ 1 ] = 0 ;\n d [ 2 ] = 0 ;\n d [ 3 ] = 255 - s [ 0 ] ;\n s ++ ;\n d += 4 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n }\n else if ( copy_spots ) {\n int i ;\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n d [ 0 ] = 0 ;\n d [ 1 ] = 0 ;\n d [ 2 ] = 0 ;\n d [ 3 ] = 255 - s [ 0 ] ;\n s += 1 ;\n d += 4 ;\n for ( i = ss ;\n i > 0 ;\n i -- ) * d ++ = * s ++ ;\n if ( da ) * d ++ = sa ? * s ++ : 255 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n else {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n d [ 0 ] = 0 ;\n d [ 1 ] = 0 ;\n d [ 2 ] = 0 ;\n d [ 3 ] = 255 - s [ 0 ] ;\n s += sn ;\n d += dn ;\n if ( da ) d [ - 1 ] = sa ? s [ - 1 ] : 255 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n }"}
{"idx": 7802, "target": 0, "func": "static void tupledesc_match ( TupleDesc dst_tupdesc , TupleDesc src_tupdesc ) {\n int i ;\n if ( dst_tupdesc -> natts != src_tupdesc -> natts ) ereport ( ERROR , ( errcode ( ERRCODE_DATATYPE_MISMATCH ) , errmsg ( \"function return row and query-specified return row do not match\" ) , errdetail_plural ( \"Returned row contains %d attribute, but query expects %d.\" , \"Returned row contains %d attributes, but query expects %d.\" , src_tupdesc -> natts , src_tupdesc -> natts , dst_tupdesc -> natts ) ) ) ;\n for ( i = 0 ;\n i < dst_tupdesc -> natts ;\n i ++ ) {\n Form_pg_attribute dattr = dst_tupdesc -> attrs [ i ] ;\n Form_pg_attribute sattr = src_tupdesc -> attrs [ i ] ;\n if ( IsBinaryCoercible ( sattr -> atttypid , dattr -> atttypid ) ) continue ;\n if ( ! dattr -> attisdropped ) ereport ( ERROR , ( errcode ( ERRCODE_DATATYPE_MISMATCH ) , errmsg ( \"function return row and query-specified return row do not match\" ) , errdetail ( \"Returned type %s at ordinal position %d, but query expects %s.\" , format_type_be ( sattr -> atttypid ) , i + 1 , format_type_be ( dattr -> atttypid ) ) ) ) ;\n if ( dattr -> attlen != sattr -> attlen || dattr -> attalign != sattr -> attalign ) ereport ( ERROR , ( errcode ( ERRCODE_DATATYPE_MISMATCH ) , errmsg ( \"function return row and query-specified return row do not match\" ) , errdetail ( \"Physical storage mismatch on dropped attribute at ordinal position %d.\" , i + 1 ) ) ) ;\n }\n }"}
{"idx": 7803, "target": 1, "func": "static int ipvideo_decode_block_opcode_0x0 ( IpvideoContext * s ) {\n return copy_from ( s , & s -> last_frame , 0 , 0 ) ;\n }"}
{"idx": 7804, "target": 1, "func": "int unupack ( int upack , char * dest , uint32_t dsize , char * buff , uint32_t vma , uint32_t ep , uint32_t base , uint32_t va , int file ) {\n int j , searchval ;\n char * loc_esi , * loc_edi = NULL , * loc_ebx , * end_edi , * save_edi , * alvalue ;\n char * paddr , * pushed_esi , * save2 ;\n uint32_t save1 , save3 , loc_ecx , count , shlsize , original_ep , ret , loc_ebx_u ;\n struct cli_exe_section section ;\n int upack_version = UPACK_399 ;\n if ( upack ) {\n uint32_t aljump , shroff , lngjmpoff ;\n if ( buff [ 5 ] == '\\xff' && buff [ 6 ] == '\\x36' ) upack_version = UPACK_0297729 ;\n loc_esi = dest + ( cli_readint32 ( buff + 1 ) - vma ) ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , loc_esi , 12 ) ) return - 1 ;\n original_ep = cli_readint32 ( loc_esi ) ;\n loc_esi += 4 ;\n loc_esi += 4 ;\n original_ep -= vma ;\n cli_dbgmsg ( \"Upack: EP: %08x original: %08X || %08x\\n\" , ep , original_ep , cli_readint32 ( loc_esi - 8 ) ) ;\n if ( upack_version == UPACK_399 ) {\n loc_edi = dest + ( cli_readint32 ( loc_esi ) - vma ) ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , dest + ep + 0xa , 2 ) || dest [ ep + 0xa ] != '\\xeb' ) return - 1 ;\n loc_esi = dest + * ( dest + ep + 0xb ) + ep + 0xc ;\n alvalue = loc_esi + 0x1a ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , alvalue , 2 ) || * alvalue != '\\xeb' ) return - 1 ;\n alvalue ++ ;\n alvalue += ( * alvalue & 0xff ) + 1 + 0xa ;\n lngjmpoff = 8 ;\n }\n else {\n if ( ! CLI_ISCONTAINED ( dest , dsize , dest + ep + 7 , 5 ) || dest [ ep + 7 ] != '\\xe9' ) return - 1 ;\n loc_esi = dest + cli_readint32 ( dest + ep + 8 ) + ep + 0xc ;\n alvalue = loc_esi + 0x25 ;\n lngjmpoff = 10 ;\n }\n if ( ! CLI_ISCONTAINED ( dest , dsize , alvalue , 2 ) || * alvalue != '\\xb5' ) return - 1 ;\n alvalue ++ ;\n count = * alvalue & 0xff ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , alvalue , lngjmpoff + 5 ) || * ( alvalue + lngjmpoff ) != '\\xe9' ) return - 1 ;\n shlsize = cli_readint32 ( alvalue + lngjmpoff + 1 ) ;\n if ( upack_version == UPACK_399 ) shlsize = shlsize + ( loc_esi - dest ) + * ( loc_esi + 0x1b ) + 0x1c + 0x018 ;\n else shlsize = shlsize + ( loc_esi - dest ) + 0x035 ;\n alvalue = dest + shlsize + 43 ;\n aljump = 8 ;\n shroff = 24 ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , alvalue - 1 , 2 ) || * ( alvalue - 1 ) != '\\xe3' ) {\n alvalue = dest + shlsize + 46 ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , alvalue - 1 , 2 ) || * ( alvalue - 1 ) != '\\xe3' ) return - 1 ;\n else {\n if ( upack_version != UPACK_0297729 ) upack_version = UPACK_0151477 ;\n aljump = 7 ;\n shroff = 26 ;\n }\n }\n alvalue += ( * alvalue & 0xff ) + 1 ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , alvalue , aljump + 5 ) || * ( alvalue + aljump ) != '\\xe9' ) return - 1 ;\n ret = cli_readint32 ( alvalue + aljump + 1 ) ;\n alvalue += ret + aljump + 1 + 4 + 27 ;\n if ( upack_version == UPACK_0297729 ) alvalue += 2 ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , dest + shlsize + shroff , 3 ) || * ( dest + shlsize + shroff ) != '\\xc1' || * ( dest + shlsize + shroff + 1 ) != '\\xed' ) return - 1 ;\n shlsize = ( * ( dest + shlsize + shroff + 2 ) ) & 0xff ;\n count *= 0x100 ;\n if ( shlsize < 2 || shlsize > 8 ) {\n cli_dbgmsg ( \"Upack: context bits out of bounds\\n\" ) ;\n return - 1 ;\n }\n cli_dbgmsg ( \"Upack: Context Bits parameter used with lzma: %02x, %02x\\n\" , shlsize , count ) ;\n if ( upack_version == UPACK_0297729 ) {\n if ( ! CLI_ISCONTAINED ( dest , dsize , loc_esi + 6 , 10 ) || * ( loc_esi + 6 ) != '\\xbe' || * ( loc_esi + 11 ) != '\\xbf' ) return - 1 ;\n if ( ( uint32_t ) cli_readint32 ( loc_esi + 7 ) < base || ( uint32_t ) cli_readint32 ( loc_esi + 7 ) > vma ) return - 1 ;\n loc_edi = dest + ( cli_readint32 ( loc_esi + 12 ) - vma ) ;\n loc_esi = dest + ( cli_readint32 ( loc_esi + 7 ) - base ) ;\n }\n else {\n if ( ! CLI_ISCONTAINED ( dest , dsize , loc_esi + 7 , 5 ) || * ( loc_esi + 7 ) != '\\xbe' ) return - 1 ;\n loc_esi = dest + ( cli_readint32 ( loc_esi + 8 ) - vma ) ;\n }\n if ( upack_version == UPACK_0297729 ) {\n if ( ! CLI_ISCONTAINED ( dest , dsize , loc_edi , ( 0x58 + 24 + 4 * count ) ) || ! CLI_ISCONTAINED ( dest , dsize , loc_esi , ( 0x58 + 0x64 + 4 ) ) ) return - 1 ;\n for ( j = 0 ;\n j < 0x16 ;\n j ++ , loc_esi += 4 , loc_edi += 4 ) cli_writeint32 ( loc_edi , cli_readint32 ( loc_esi ) ) ;\n }\n else {\n if ( ! CLI_ISCONTAINED ( dest , dsize , loc_edi , ( 0x9c + 24 + 4 * count ) ) || ! CLI_ISCONTAINED ( dest , dsize , loc_esi , ( 0x9c + 0x34 + 4 ) ) ) return - 1 ;\n for ( j = 0 ;\n j < 0x27 ;\n j ++ , loc_esi += 4 , loc_edi += 4 ) cli_writeint32 ( loc_edi , cli_readint32 ( loc_esi ) ) ;\n }\n save3 = cli_readint32 ( loc_esi + 4 ) ;\n paddr = dest + ( ( uint32_t ) cli_readint32 ( loc_edi - 4 ) ) - vma ;\n loc_ebx = loc_edi ;\n cli_writeint32 ( loc_edi , 0xffffffff ) ;\n loc_edi += 4 ;\n cli_writeint32 ( loc_edi , 0 ) ;\n loc_edi += 4 ;\n for ( j = 0 ;\n j < 4 ;\n j ++ , loc_edi += 4 ) cli_writeint32 ( loc_edi , ( 1 ) ) ;\n for ( j = 0 ;\n ( unsigned int ) j < count ;\n j ++ , loc_edi += 4 ) cli_writeint32 ( loc_edi , 0x400 ) ;\n loc_edi = dest + cli_readint32 ( loc_esi + 0xc ) - vma ;\n if ( upack_version == UPACK_0297729 ) loc_edi = dest + vma - base ;\n pushed_esi = loc_edi ;\n end_edi = dest + cli_readint32 ( loc_esi + 0x34 ) - vma ;\n if ( upack_version == UPACK_0297729 ) {\n end_edi = dest + cli_readint32 ( loc_esi + 0x64 ) - vma ;\n save3 = cli_readint32 ( loc_esi + 0x40 ) ;\n }\n cli_dbgmsg ( \"Upack: data initialized, before upack lzma call!\\n\" ) ;\n if ( ( ret = ( uint32_t ) unupack399 ( dest , dsize , 0 , loc_ebx , 0 , loc_edi , end_edi , shlsize , paddr ) ) == 0xffffffff ) return - 1 ;\n }\n else {\n int ep_jmp_offs , rep_stosd_count_offs , context_bits_offs ;\n loc_esi = dest + vma + ep ;\n if ( buff [ 0 ] == '\\xbe' && buff [ 5 ] == '\\xad' && buff [ 6 ] == '\\x8b' && buff [ 7 ] == '\\xf8' ) upack_version = UPACK_11_12 ;\n if ( upack_version == UPACK_11_12 ) {\n ep_jmp_offs = 0x1a4 ;\n rep_stosd_count_offs = 0x1b ;\n context_bits_offs = 0x41 ;\n alvalue = loc_esi + 0x184 ;\n }\n else {\n ep_jmp_offs = 0x217 ;\n rep_stosd_count_offs = 0x3a ;\n context_bits_offs = 0x5f ;\n alvalue = loc_esi + 0x1c1 ;\n }\n if ( ! CLI_ISCONTAINED ( dest , dsize , loc_esi , ep_jmp_offs + 4 ) ) return - 1 ;\n save1 = cli_readint32 ( loc_esi + ep_jmp_offs ) ;\n original_ep = ( loc_esi - dest ) + ep_jmp_offs + 4 ;\n original_ep += ( int32_t ) save1 ;\n cli_dbgmsg ( \"Upack: EP: %08x original %08x\\n\" , ep , original_ep ) ;\n count = ( * ( loc_esi + rep_stosd_count_offs ) ) & 0xff ;\n shlsize = ( * ( loc_esi + context_bits_offs ) ) & 0xff ;\n shlsize = 8 - shlsize ;\n if ( shlsize < 2 || shlsize > 8 ) {\n cli_dbgmsg ( \"Upack: context bits out of bounds\\n\" ) ;\n return - 1 ;\n }\n count *= 0x100 ;\n cli_dbgmsg ( \"Upack: Context Bits parameter used with lzma: %02x, %02x\\n\" , shlsize , count ) ;\n if ( upack_version == UPACK_399 ) {\n loc_esi += 4 ;\n loc_ecx = cli_readint32 ( loc_esi + 2 ) ;\n cli_writeint32 ( loc_esi + 2 , 0 ) ;\n if ( ! loc_ecx ) {\n cli_dbgmsg ( \"Upack: something's wrong, report back\\n\" ) ;\n return - 1 ;\n }\n loc_esi -= ( loc_ecx - 2 ) ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , loc_esi , 12 ) ) return - 1 ;\n cli_dbgmsg ( \"Upack: %p %p %08x %08x\\n\" , loc_esi , dest , cli_readint32 ( loc_esi ) , base ) ;\n loc_ebx_u = loc_esi - ( dest + cli_readint32 ( loc_esi ) - base ) ;\n cli_dbgmsg ( \"Upack: EBX: %08x\\n\" , loc_ebx_u ) ;\n loc_esi += 4 ;\n save2 = loc_edi = dest + cli_readint32 ( loc_esi ) - base ;\n cli_dbgmsg ( \"Upack: DEST: %08x, %08x\\n\" , cli_readint32 ( loc_esi ) , cli_readint32 ( loc_esi ) - base ) ;\n loc_esi += 4 ;\n j = cli_readint32 ( loc_esi ) ;\n if ( j < 0 ) {\n cli_dbgmsg ( \"Upack: probably hand-crafted data, report back\\n\" ) ;\n return - 1 ;\n }\n loc_esi += 4 ;\n cli_dbgmsg ( \"Upack: ecx counter: %08x\\n\" , j ) ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , loc_esi , ( j * 4 ) ) || ! CLI_ISCONTAINED ( dest , dsize , loc_edi , ( ( j + count ) * 4 ) ) ) return - 1 ;\n for ( ;\n j -- ;\n loc_edi += 4 , loc_esi += 4 ) cli_writeint32 ( loc_edi , cli_readint32 ( loc_esi ) ) ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , save2 , 8 ) ) return - 1 ;\n loc_ecx = cli_readint32 ( save2 ) ;\n save2 += 4 ;\n loc_esi = save2 ;\n do {\n loc_esi += loc_ebx_u ;\n loc_esi += 4 ;\n }\n while ( -- loc_ecx ) ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , loc_esi , 4 ) ) return - 1 ;\n save1 = cli_readint32 ( loc_esi ) ;\n loc_esi += 4 ;\n for ( j = 0 ;\n ( uint32_t ) j < count ;\n j ++ , loc_edi += 4 ) cli_writeint32 ( loc_edi , ( save1 ) ) ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , ( loc_esi + 0x10 ) , 4 ) ) return - 1 ;\n cli_writeint32 ( loc_esi + 0x10 , ( uint32_t ) cli_readint32 ( loc_esi + 0x10 ) + loc_ebx_u ) ;\n loc_ebx = loc_esi + 0x14 ;\n loc_esi = save2 ;\n save_edi = loc_edi = dest + ( ( uint32_t ) cli_readint32 ( loc_esi ) - base ) ;\n loc_esi += 4 ;\n cli_dbgmsg ( \"Upack: before_fixing\\n\" ) ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , loc_ebx - 4 , ( 12 + 4 * 4 ) ) || ! CLI_ISCONTAINED ( dest , dsize , loc_esi + 0x24 , 4 ) || ! CLI_ISCONTAINED ( dest , dsize , loc_esi + 0x40 , 4 ) ) return - 1 ;\n for ( j = 2 ;\n j < 6 ;\n j ++ ) cli_writeint32 ( loc_ebx + ( j << 2 ) , cli_readint32 ( loc_ebx + ( j << 2 ) ) ) ;\n paddr = dest + cli_readint32 ( loc_ebx - 4 ) - base ;\n save1 = loc_ecx ;\n pushed_esi = loc_edi ;\n end_edi = dest + cli_readint32 ( loc_esi + 0x24 ) - base ;\n vma = cli_readint32 ( loc_ebx ) ;\n cli_writeint32 ( loc_ebx , cli_readint32 ( loc_ebx + 4 ) ) ;\n cli_writeint32 ( ( loc_ebx + 4 ) , vma ) ;\n }\n else if ( upack_version == UPACK_11_12 ) {\n cli_dbgmsg ( \"Upack v 1.1/1.2\\n\" ) ;\n loc_esi = dest + 0x148 ;\n loc_edi = dest + cli_readint32 ( loc_esi ) - base ;\n loc_esi += 4 ;\n save_edi = loc_edi ;\n paddr = dest + ( ( uint32_t ) cli_readint32 ( loc_esi ) ) - base ;\n loc_esi += 4 ;\n loc_edi += 4 ;\n loc_ebx = loc_edi ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , loc_edi , ( ( 6 + count ) * 4 ) ) ) return - 1 ;\n cli_writeint32 ( loc_edi , 0xffffffff ) ;\n loc_edi += 4 ;\n cli_writeint32 ( loc_edi , 0 ) ;\n loc_edi += 4 ;\n for ( j = 0 ;\n j < 4 ;\n j ++ , loc_edi += 4 ) cli_writeint32 ( loc_edi , ( 1 ) ) ;\n for ( j = 0 ;\n ( uint32_t ) j < count ;\n j ++ , loc_edi += 4 ) cli_writeint32 ( loc_edi , 0x400 ) ;\n loc_edi = dest + cli_readint32 ( loc_esi ) - base ;\n pushed_esi = loc_edi ;\n loc_esi += 4 ;\n loc_ecx = 0 ;\n loc_esi += 4 ;\n end_edi = dest + cli_readint32 ( loc_esi - 0x28 ) - base ;\n loc_esi = save_edi ;\n }\n cli_dbgmsg ( \"Upack: data initialized, before upack lzma call!\\n\" ) ;\n if ( ( ret = ( uint32_t ) unupack399 ( dest , dsize , loc_ecx , loc_ebx , loc_ecx , loc_edi , end_edi , shlsize , paddr ) ) == 0xffffffff ) return - 1 ;\n if ( upack_version == UPACK_399 ) save3 = cli_readint32 ( loc_esi + 0x40 ) ;\n else if ( upack_version == UPACK_11_12 ) save3 = cli_readint32 ( dest + vma + ep + 0x174 ) ;\n }\n loc_ecx = 0 ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , alvalue , 1 ) ) {\n cli_dbgmsg ( \"Upack: alvalue out of bounds\\n\" ) ;\n return - 1 ;\n }\n searchval = * alvalue & 0xff ;\n cli_dbgmsg ( \"Upack: loops: %08x search value: %02x\\n\" , save3 , searchval ) ;\n while ( save3 ) {\n if ( ! CLI_ISCONTAINED ( dest , dsize , pushed_esi + loc_ecx , 1 ) ) {\n cli_dbgmsg ( \"Upack: callfixerr %p %08x = %p, %p\\n\" , dest , dsize , dest + dsize , pushed_esi + loc_ecx ) ;\n return - 1 ;\n }\n if ( pushed_esi [ loc_ecx ] == '\\xe8' || pushed_esi [ loc_ecx ] == '\\xe9' ) {\n char * adr = ( pushed_esi + loc_ecx + 1 ) ;\n loc_ecx ++ ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , adr , 4 ) ) {\n cli_dbgmsg ( \"Upack: callfixerr\\n\" ) ;\n return - 1 ;\n }\n if ( ( cli_readint32 ( adr ) & 0xff ) != searchval ) continue ;\n cli_writeint32 ( adr , EC32 ( CE32 ( ( uint32_t ) ( cli_readint32 ( adr ) & 0xffffff00 ) ) ) - loc_ecx - 4 ) ;\n loc_ecx += 4 ;\n save3 -- ;\n }\n else loc_ecx ++ ;\n }\n section . raw = 0 ;\n section . rva = va ;\n section . rsz = end_edi - loc_edi ;\n section . vsz = end_edi - loc_edi ;\n if ( ! cli_rebuildpe ( dest + ( upack ? 0 : va ) , & section , 1 , base , original_ep , 0 , 0 , file ) ) {\n cli_dbgmsg ( \"Upack: Rebuilding failed\\n\" ) ;\n return 0 ;\n }\n return 1 ;\n }"}
{"idx": 7805, "target": 0, "func": "static void Type_vcgt_Free ( struct _cms_typehandler_struct * self , void * Ptr ) {\n cmsFreeToneCurveTriple ( ( cmsToneCurve * * ) Ptr ) ;\n _cmsFree ( self -> ContextID , Ptr ) ;\n }"}
{"idx": 7806, "target": 0, "func": "char * TSMatcherExtractIPRange ( char * match_str , sockaddr * addr1 , sockaddr * addr2 ) {\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) match_str ) == TS_SUCCESS ) ;\n return ( char * ) ExtractIpRange ( match_str , addr1 , addr2 ) ;\n }"}
{"idx": 7807, "target": 0, "func": "static void schedule_call_ready_callbacks ( NautilusDirectory * directory ) {\n if ( directory -> details -> call_ready_idle_id == 0 ) {\n directory -> details -> call_ready_idle_id = g_idle_add ( call_ready_callbacks_at_idle , directory ) ;\n }\n }"}
{"idx": 7808, "target": 0, "func": "static void fill_label_number ( field_info * fi , gchar * label_str , gboolean is_signed ) {\n header_field_info * hfinfo = fi -> hfinfo ;\n guint32 value ;\n char buf [ 32 ] ;\n const char * out ;\n if ( is_signed ) value = fvalue_get_sinteger ( & fi -> value ) ;\n else value = fvalue_get_uinteger ( & fi -> value ) ;\n if ( hfinfo -> display == BASE_CUSTOM ) {\n gchar tmp [ ITEM_LABEL_LENGTH ] ;\n const custom_fmt_func_t fmtfunc = ( const custom_fmt_func_t ) hfinfo -> strings ;\n DISSECTOR_ASSERT ( fmtfunc ) ;\n fmtfunc ( tmp , value ) ;\n label_fill ( label_str , 0 , hfinfo , tmp ) ;\n }\n else if ( hfinfo -> strings && hfinfo -> type != FT_FRAMENUM ) {\n const char * val_str = hf_try_val_to_str_const ( value , hfinfo , \"Unknown\" ) ;\n out = hfinfo_number_vals_format ( hfinfo , buf , value ) ;\n if ( out == NULL ) label_fill ( label_str , 0 , hfinfo , val_str ) ;\n else label_fill_descr ( label_str , 0 , hfinfo , val_str , out ) ;\n }\n else if ( IS_BASE_PORT ( hfinfo -> display ) ) {\n gchar tmp [ ITEM_LABEL_LENGTH ] ;\n port_with_resolution_to_str_buf ( tmp , sizeof ( tmp ) , display_to_port_type ( ( field_display_e ) hfinfo -> display ) , value ) ;\n label_fill ( label_str , 0 , hfinfo , tmp ) ;\n }\n else {\n out = hfinfo_number_value_format ( hfinfo , buf , value ) ;\n label_fill ( label_str , 0 , hfinfo , out ) ;\n }\n }"}
{"idx": 7809, "target": 0, "func": "static int selinux_inode_getxattr ( struct dentry * dentry , const char * name ) {\n const struct cred * cred = current_cred ( ) ;\n return dentry_has_perm ( cred , dentry , FILE__GETATTR ) ;\n }"}
{"idx": 7810, "target": 0, "func": "static int dsa_cb ( int operation , ASN1_VALUE * * pval , const ASN1_ITEM * it , void * exarg ) {\n if ( operation == ASN1_OP_NEW_PRE ) {\n * pval = ( ASN1_VALUE * ) DSA_new ( ) ;\n if ( * pval ) return 2 ;\n return 0 ;\n }\n else if ( operation == ASN1_OP_FREE_PRE ) {\n DSA_free ( ( DSA * ) * pval ) ;\n * pval = NULL ;\n return 2 ;\n }\n return 1 ;\n }"}
{"idx": 7811, "target": 0, "func": "static struct subre * subre ( struct vars * v , int op , int flags , struct state * begin , struct state * end ) {\n struct subre * ret = v -> treefree ;\n if ( STACK_TOO_DEEP ( v -> re ) ) {\n ERR ( REG_ETOOBIG ) ;\n return NULL ;\n }\n if ( ret != NULL ) v -> treefree = ret -> left ;\n else {\n ret = ( struct subre * ) MALLOC ( sizeof ( struct subre ) ) ;\n if ( ret == NULL ) {\n ERR ( REG_ESPACE ) ;\n return NULL ;\n }\n ret -> chain = v -> treechain ;\n v -> treechain = ret ;\n }\n assert ( strchr ( \"=b|.*(\" , op ) != NULL ) ;\n ret -> op = op ;\n ret -> flags = flags ;\n ret -> id = 0 ;\n ret -> subno = 0 ;\n ret -> min = ret -> max = 1 ;\n ret -> left = NULL ;\n ret -> right = NULL ;\n ret -> begin = begin ;\n ret -> end = end ;\n ZAPCNFA ( ret -> cnfa ) ;\n return ret ;\n }"}
{"idx": 7812, "target": 1, "func": "static int mpeg_decode_mb ( MpegEncContext * s , int16_t block [ 12 ] [ 64 ] ) {\n int i , j , k , cbp , val , mb_type , motion_type ;\n const int mb_block_count = 4 + ( 1 << s -> chroma_format ) ;\n av_dlog ( s -> avctx , \"decode_mb: x=%d y=%d\\n\" , s -> mb_x , s -> mb_y ) ;\n assert ( s -> mb_skipped == 0 ) ;\n if ( s -> mb_skip_run -- != 0 ) {\n if ( s -> pict_type == AV_PICTURE_TYPE_P ) {\n s -> mb_skipped = 1 ;\n s -> current_picture . f . mb_type [ s -> mb_x + s -> mb_y * s -> mb_stride ] = MB_TYPE_SKIP | MB_TYPE_L0 | MB_TYPE_16x16 ;\n }\n else {\n int mb_type ;\n if ( s -> mb_x ) mb_type = s -> current_picture . f . mb_type [ s -> mb_x + s -> mb_y * s -> mb_stride - 1 ] ;\n else mb_type = s -> current_picture . f . mb_type [ s -> mb_width + ( s -> mb_y - 1 ) * s -> mb_stride - 1 ] ;\n if ( IS_INTRA ( mb_type ) ) return - 1 ;\n s -> current_picture . f . mb_type [ s -> mb_x + s -> mb_y * s -> mb_stride ] = mb_type | MB_TYPE_SKIP ;\n if ( ( s -> mv [ 0 ] [ 0 ] [ 0 ] | s -> mv [ 0 ] [ 0 ] [ 1 ] | s -> mv [ 1 ] [ 0 ] [ 0 ] | s -> mv [ 1 ] [ 0 ] [ 1 ] ) == 0 ) s -> mb_skipped = 1 ;\n }\n return 0 ;\n }\n switch ( s -> pict_type ) {\n default : case AV_PICTURE_TYPE_I : if ( get_bits1 ( & s -> gb ) == 0 ) {\n if ( get_bits1 ( & s -> gb ) == 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"invalid mb type in I Frame at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n mb_type = MB_TYPE_QUANT | MB_TYPE_INTRA ;\n }\n else {\n mb_type = MB_TYPE_INTRA ;\n }\n break ;\n case AV_PICTURE_TYPE_P : mb_type = get_vlc2 ( & s -> gb , mb_ptype_vlc . table , MB_PTYPE_VLC_BITS , 1 ) ;\n if ( mb_type < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"invalid mb type in P Frame at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n mb_type = ptype2mb_type [ mb_type ] ;\n break ;\n case AV_PICTURE_TYPE_B : mb_type = get_vlc2 ( & s -> gb , mb_btype_vlc . table , MB_BTYPE_VLC_BITS , 1 ) ;\n if ( mb_type < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"invalid mb type in B Frame at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n mb_type = btype2mb_type [ mb_type ] ;\n break ;\n }\n av_dlog ( s -> avctx , \"mb_type=%x\\n\" , mb_type ) ;\n if ( IS_INTRA ( mb_type ) ) {\n s -> dsp . clear_blocks ( s -> block [ 0 ] ) ;\n if ( ! s -> chroma_y_shift ) {\n s -> dsp . clear_blocks ( s -> block [ 6 ] ) ;\n }\n if ( s -> picture_structure == PICT_FRAME && ! s -> frame_pred_frame_dct ) {\n s -> interlaced_dct = get_bits1 ( & s -> gb ) ;\n }\n if ( IS_QUANT ( mb_type ) ) s -> qscale = get_qscale ( s ) ;\n if ( s -> concealment_motion_vectors ) {\n if ( s -> picture_structure != PICT_FRAME ) skip_bits1 ( & s -> gb ) ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = s -> last_mv [ 0 ] [ 0 ] [ 0 ] = s -> last_mv [ 0 ] [ 1 ] [ 0 ] = mpeg_decode_motion ( s , s -> mpeg_f_code [ 0 ] [ 0 ] , s -> last_mv [ 0 ] [ 0 ] [ 0 ] ) ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = s -> last_mv [ 0 ] [ 0 ] [ 1 ] = s -> last_mv [ 0 ] [ 1 ] [ 1 ] = mpeg_decode_motion ( s , s -> mpeg_f_code [ 0 ] [ 1 ] , s -> last_mv [ 0 ] [ 0 ] [ 1 ] ) ;\n skip_bits1 ( & s -> gb ) ;\n }\n else memset ( s -> last_mv , 0 , sizeof ( s -> last_mv ) ) ;\n s -> mb_intra = 1 ;\n if ( CONFIG_MPEG_XVMC_DECODER && s -> avctx -> xvmc_acceleration > 1 ) {\n ff_xvmc_pack_pblocks ( s , - 1 ) ;\n if ( s -> swap_uv ) {\n exchange_uv ( s ) ;\n }\n }\n if ( s -> codec_id == AV_CODEC_ID_MPEG2VIDEO ) {\n if ( s -> flags2 & CODEC_FLAG2_FAST ) {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n mpeg2_fast_decode_block_intra ( s , * s -> pblocks [ i ] , i ) ;\n }\n }\n else {\n for ( i = 0 ;\n i < mb_block_count ;\n i ++ ) {\n if ( mpeg2_decode_block_intra ( s , * s -> pblocks [ i ] , i ) < 0 ) return - 1 ;\n }\n }\n }\n else {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( mpeg1_decode_block_intra ( s , * s -> pblocks [ i ] , i ) < 0 ) return - 1 ;\n }\n }\n }\n else {\n if ( mb_type & MB_TYPE_ZERO_MV ) {\n assert ( mb_type & MB_TYPE_CBP ) ;\n s -> mv_dir = MV_DIR_FORWARD ;\n if ( s -> picture_structure == PICT_FRAME ) {\n if ( ! s -> frame_pred_frame_dct ) s -> interlaced_dct = get_bits1 ( & s -> gb ) ;\n s -> mv_type = MV_TYPE_16X16 ;\n }\n else {\n s -> mv_type = MV_TYPE_FIELD ;\n mb_type |= MB_TYPE_INTERLACED ;\n s -> field_select [ 0 ] [ 0 ] = s -> picture_structure - 1 ;\n }\n if ( IS_QUANT ( mb_type ) ) s -> qscale = get_qscale ( s ) ;\n s -> last_mv [ 0 ] [ 0 ] [ 0 ] = 0 ;\n s -> last_mv [ 0 ] [ 0 ] [ 1 ] = 0 ;\n s -> last_mv [ 0 ] [ 1 ] [ 0 ] = 0 ;\n s -> last_mv [ 0 ] [ 1 ] [ 1 ] = 0 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = 0 ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = 0 ;\n }\n else {\n assert ( mb_type & MB_TYPE_L0L1 ) ;\n if ( s -> frame_pred_frame_dct ) motion_type = MT_FRAME ;\n else {\n motion_type = get_bits ( & s -> gb , 2 ) ;\n if ( s -> picture_structure == PICT_FRAME && HAS_CBP ( mb_type ) ) s -> interlaced_dct = get_bits1 ( & s -> gb ) ;\n }\n if ( IS_QUANT ( mb_type ) ) s -> qscale = get_qscale ( s ) ;\n s -> mv_dir = ( mb_type >> 13 ) & 3 ;\n av_dlog ( s -> avctx , \"motion_type=%d\\n\" , motion_type ) ;\n switch ( motion_type ) {\n case MT_FRAME : if ( s -> picture_structure == PICT_FRAME ) {\n mb_type |= MB_TYPE_16x16 ;\n s -> mv_type = MV_TYPE_16X16 ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n if ( USES_LIST ( mb_type , i ) ) {\n s -> mv [ i ] [ 0 ] [ 0 ] = s -> last_mv [ i ] [ 0 ] [ 0 ] = s -> last_mv [ i ] [ 1 ] [ 0 ] = mpeg_decode_motion ( s , s -> mpeg_f_code [ i ] [ 0 ] , s -> last_mv [ i ] [ 0 ] [ 0 ] ) ;\n s -> mv [ i ] [ 0 ] [ 1 ] = s -> last_mv [ i ] [ 0 ] [ 1 ] = s -> last_mv [ i ] [ 1 ] [ 1 ] = mpeg_decode_motion ( s , s -> mpeg_f_code [ i ] [ 1 ] , s -> last_mv [ i ] [ 0 ] [ 1 ] ) ;\n if ( s -> full_pel [ i ] ) {\n s -> mv [ i ] [ 0 ] [ 0 ] <<= 1 ;\n s -> mv [ i ] [ 0 ] [ 1 ] <<= 1 ;\n }\n }\n }\n }\n else {\n mb_type |= MB_TYPE_16x8 | MB_TYPE_INTERLACED ;\n s -> mv_type = MV_TYPE_16X8 ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n if ( USES_LIST ( mb_type , i ) ) {\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n s -> field_select [ i ] [ j ] = get_bits1 ( & s -> gb ) ;\n for ( k = 0 ;\n k < 2 ;\n k ++ ) {\n val = mpeg_decode_motion ( s , s -> mpeg_f_code [ i ] [ k ] , s -> last_mv [ i ] [ j ] [ k ] ) ;\n s -> last_mv [ i ] [ j ] [ k ] = val ;\n s -> mv [ i ] [ j ] [ k ] = val ;\n }\n }\n }\n }\n }\n break ;\n case MT_FIELD : s -> mv_type = MV_TYPE_FIELD ;\n if ( s -> picture_structure == PICT_FRAME ) {\n mb_type |= MB_TYPE_16x8 | MB_TYPE_INTERLACED ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n if ( USES_LIST ( mb_type , i ) ) {\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n s -> field_select [ i ] [ j ] = get_bits1 ( & s -> gb ) ;\n val = mpeg_decode_motion ( s , s -> mpeg_f_code [ i ] [ 0 ] , s -> last_mv [ i ] [ j ] [ 0 ] ) ;\n s -> last_mv [ i ] [ j ] [ 0 ] = val ;\n s -> mv [ i ] [ j ] [ 0 ] = val ;\n av_dlog ( s -> avctx , \"fmx=%d\\n\" , val ) ;\n val = mpeg_decode_motion ( s , s -> mpeg_f_code [ i ] [ 1 ] , s -> last_mv [ i ] [ j ] [ 1 ] >> 1 ) ;\n s -> last_mv [ i ] [ j ] [ 1 ] = val << 1 ;\n s -> mv [ i ] [ j ] [ 1 ] = val ;\n av_dlog ( s -> avctx , \"fmy=%d\\n\" , val ) ;\n }\n }\n }\n }\n else {\n mb_type |= MB_TYPE_16x16 | MB_TYPE_INTERLACED ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n if ( USES_LIST ( mb_type , i ) ) {\n s -> field_select [ i ] [ 0 ] = get_bits1 ( & s -> gb ) ;\n for ( k = 0 ;\n k < 2 ;\n k ++ ) {\n val = mpeg_decode_motion ( s , s -> mpeg_f_code [ i ] [ k ] , s -> last_mv [ i ] [ 0 ] [ k ] ) ;\n s -> last_mv [ i ] [ 0 ] [ k ] = val ;\n s -> last_mv [ i ] [ 1 ] [ k ] = val ;\n s -> mv [ i ] [ 0 ] [ k ] = val ;\n }\n }\n }\n }\n break ;\n case MT_DMV : s -> mv_type = MV_TYPE_DMV ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n if ( USES_LIST ( mb_type , i ) ) {\n int dmx , dmy , mx , my , m ;\n const int my_shift = s -> picture_structure == PICT_FRAME ;\n mx = mpeg_decode_motion ( s , s -> mpeg_f_code [ i ] [ 0 ] , s -> last_mv [ i ] [ 0 ] [ 0 ] ) ;\n s -> last_mv [ i ] [ 0 ] [ 0 ] = mx ;\n s -> last_mv [ i ] [ 1 ] [ 0 ] = mx ;\n dmx = get_dmv ( s ) ;\n my = mpeg_decode_motion ( s , s -> mpeg_f_code [ i ] [ 1 ] , s -> last_mv [ i ] [ 0 ] [ 1 ] >> my_shift ) ;\n dmy = get_dmv ( s ) ;\n s -> last_mv [ i ] [ 0 ] [ 1 ] = my << my_shift ;\n s -> last_mv [ i ] [ 1 ] [ 1 ] = my << my_shift ;\n s -> mv [ i ] [ 0 ] [ 0 ] = mx ;\n s -> mv [ i ] [ 0 ] [ 1 ] = my ;\n s -> mv [ i ] [ 1 ] [ 0 ] = mx ;\n s -> mv [ i ] [ 1 ] [ 1 ] = my ;\n if ( s -> picture_structure == PICT_FRAME ) {\n mb_type |= MB_TYPE_16x16 | MB_TYPE_INTERLACED ;\n m = s -> top_field_first ? 1 : 3 ;\n s -> mv [ i ] [ 2 ] [ 0 ] = ( ( mx * m + ( mx > 0 ) ) >> 1 ) + dmx ;\n s -> mv [ i ] [ 2 ] [ 1 ] = ( ( my * m + ( my > 0 ) ) >> 1 ) + dmy - 1 ;\n m = 4 - m ;\n s -> mv [ i ] [ 3 ] [ 0 ] = ( ( mx * m + ( mx > 0 ) ) >> 1 ) + dmx ;\n s -> mv [ i ] [ 3 ] [ 1 ] = ( ( my * m + ( my > 0 ) ) >> 1 ) + dmy + 1 ;\n }\n else {\n mb_type |= MB_TYPE_16x16 ;\n s -> mv [ i ] [ 2 ] [ 0 ] = ( ( mx + ( mx > 0 ) ) >> 1 ) + dmx ;\n s -> mv [ i ] [ 2 ] [ 1 ] = ( ( my + ( my > 0 ) ) >> 1 ) + dmy ;\n if ( s -> picture_structure == PICT_TOP_FIELD ) s -> mv [ i ] [ 2 ] [ 1 ] -- ;\n else s -> mv [ i ] [ 2 ] [ 1 ] ++ ;\n }\n }\n }\n break ;\n default : av_log ( s -> avctx , AV_LOG_ERROR , \"00 motion_type at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n }\n s -> mb_intra = 0 ;\n if ( HAS_CBP ( mb_type ) ) {\n s -> dsp . clear_blocks ( s -> block [ 0 ] ) ;\n cbp = get_vlc2 ( & s -> gb , mb_pat_vlc . table , MB_PAT_VLC_BITS , 1 ) ;\n if ( mb_block_count > 6 ) {\n cbp <<= mb_block_count - 6 ;\n cbp |= get_bits ( & s -> gb , mb_block_count - 6 ) ;\n s -> dsp . clear_blocks ( s -> block [ 6 ] ) ;\n }\n if ( cbp <= 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"invalid cbp at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n if ( CONFIG_MPEG_XVMC_DECODER && s -> avctx -> xvmc_acceleration > 1 ) {\n ff_xvmc_pack_pblocks ( s , cbp ) ;\n if ( s -> swap_uv ) {\n exchange_uv ( s ) ;\n }\n }\n if ( s -> codec_id == AV_CODEC_ID_MPEG2VIDEO ) {\n if ( s -> flags2 & CODEC_FLAG2_FAST ) {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( cbp & 32 ) {\n mpeg2_fast_decode_block_non_intra ( s , * s -> pblocks [ i ] , i ) ;\n }\n else {\n s -> block_last_index [ i ] = - 1 ;\n }\n cbp += cbp ;\n }\n }\n else {\n cbp <<= 12 - mb_block_count ;\n for ( i = 0 ;\n i < mb_block_count ;\n i ++ ) {\n if ( cbp & ( 1 << 11 ) ) {\n if ( mpeg2_decode_block_non_intra ( s , * s -> pblocks [ i ] , i ) < 0 ) return - 1 ;\n }\n else {\n s -> block_last_index [ i ] = - 1 ;\n }\n cbp += cbp ;\n }\n }\n }\n else {\n if ( s -> flags2 & CODEC_FLAG2_FAST ) {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( cbp & 32 ) {\n mpeg1_fast_decode_block_inter ( s , * s -> pblocks [ i ] , i ) ;\n }\n else {\n s -> block_last_index [ i ] = - 1 ;\n }\n cbp += cbp ;\n }\n }\n else {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( cbp & 32 ) {\n if ( mpeg1_decode_block_inter ( s , * s -> pblocks [ i ] , i ) < 0 ) return - 1 ;\n }\n else {\n s -> block_last_index [ i ] = - 1 ;\n }\n cbp += cbp ;\n }\n }\n }\n }\n else {\n for ( i = 0 ;\n i < 12 ;\n i ++ ) s -> block_last_index [ i ] = - 1 ;\n }\n }\n s -> current_picture . f . mb_type [ s -> mb_x + s -> mb_y * s -> mb_stride ] = mb_type ;\n return 0 ;\n }"}
{"idx": 7813, "target": 0, "func": "static void unref_picture ( H264Context * h , Picture * pic ) {\n int off = offsetof ( Picture , tf ) + sizeof ( pic -> tf ) ;\n int i ;\n if ( ! pic -> f . buf [ 0 ] ) return ;\n ff_thread_release_buffer ( h -> avctx , & pic -> tf ) ;\n av_buffer_unref ( & pic -> hwaccel_priv_buf ) ;\n av_buffer_unref ( & pic -> qscale_table_buf ) ;\n av_buffer_unref ( & pic -> mb_type_buf ) ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n av_buffer_unref ( & pic -> motion_val_buf [ i ] ) ;\n av_buffer_unref ( & pic -> ref_index_buf [ i ] ) ;\n }\n memset ( ( uint8_t * ) pic + off , 0 , sizeof ( * pic ) - off ) ;\n }"}
{"idx": 7814, "target": 0, "func": "static int aes_gcm_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n if ( ! iv && ! key ) return 1 ;\n if ( key ) {\n do {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) HWAES_encrypt ) ;\n # ifdef HWAES_ctr32_encrypt_blocks gctx -> ctr = ( ctr128_f ) HWAES_ctr32_encrypt_blocks ;\n # else gctx -> ctr = NULL ;\n # endif break ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE ) {\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) AES_encrypt ) ;\n gctx -> ctr = ( ctr128_f ) bsaes_ctr32_encrypt_blocks ;\n break ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) vpaes_encrypt ) ;\n gctx -> ctr = NULL ;\n break ;\n }\n else # endif ( void ) 0 ;\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) AES_encrypt ) ;\n # ifdef AES_CTR_ASM gctx -> ctr = ( ctr128_f ) AES_ctr32_encrypt ;\n # else gctx -> ctr = NULL ;\n # endif }\n while ( 0 ) ;\n if ( iv == NULL && gctx -> iv_set ) iv = gctx -> iv ;\n if ( iv ) {\n CRYPTO_gcm128_setiv ( & gctx -> gcm , iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n }\n gctx -> key_set = 1 ;\n }\n else {\n if ( gctx -> key_set ) CRYPTO_gcm128_setiv ( & gctx -> gcm , iv , gctx -> ivlen ) ;\n else memcpy ( gctx -> iv , iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n gctx -> iv_gen = 0 ;\n }\n return 1 ;\n }"}
{"idx": 7815, "target": 0, "func": "static void * prplcb_notify_message ( PurpleNotifyMsgType type , const char * title , const char * primary , const char * secondary ) {\n char * text = g_strdup_printf ( \"%s%s - %s%s%s\" , ( type == PURPLE_NOTIFY_MSG_ERROR ) ? \"Error: \" : \"\" , title , primary ? : \"\" , ( primary && secondary ) ? \" - \" : \"\" , secondary ? : \"\" ) ;\n if ( local_bee -> ui -> log ) {\n local_bee -> ui -> log ( local_bee , \"purple\" , text ) ;\n }\n g_free ( text ) ;\n return NULL ;\n }"}
{"idx": 7816, "target": 0, "func": "static void cbracket ( struct vars * v , struct state * lp , struct state * rp ) {\n struct state * left = newstate ( v -> nfa ) ;\n struct state * right = newstate ( v -> nfa ) ;\n NOERR ( ) ;\n bracket ( v , left , right ) ;\n if ( v -> cflags & REG_NLSTOP ) newarc ( v -> nfa , PLAIN , v -> nlcolor , left , right ) ;\n NOERR ( ) ;\n assert ( lp -> nouts == 0 ) ;\n colorcomplement ( v -> nfa , v -> cm , PLAIN , left , lp , rp ) ;\n NOERR ( ) ;\n dropstate ( v -> nfa , left ) ;\n assert ( right -> nins == 0 ) ;\n freestate ( v -> nfa , right ) ;\n }"}
{"idx": 7817, "target": 0, "func": "static inline void vc1_pred_b_mv ( VC1Context * v , int dmv_x [ 2 ] , int dmv_y [ 2 ] , int direct , int mvtype ) {\n MpegEncContext * s = & v -> s ;\n int xy , wrap , off = 0 ;\n int16_t * A , * B , * C ;\n int px , py ;\n int sum ;\n int r_x , r_y ;\n const uint8_t * is_intra = v -> mb_type [ 0 ] ;\n r_x = v -> range_x ;\n r_y = v -> range_y ;\n dmv_x [ 0 ] <<= 1 - s -> quarter_sample ;\n dmv_y [ 0 ] <<= 1 - s -> quarter_sample ;\n dmv_x [ 1 ] <<= 1 - s -> quarter_sample ;\n dmv_y [ 1 ] <<= 1 - s -> quarter_sample ;\n wrap = s -> b8_stride ;\n xy = s -> block_index [ 0 ] ;\n if ( s -> mb_intra ) {\n s -> current_picture . motion_val [ 0 ] [ xy + v -> blocks_off ] [ 0 ] = s -> current_picture . motion_val [ 0 ] [ xy + v -> blocks_off ] [ 1 ] = s -> current_picture . motion_val [ 1 ] [ xy + v -> blocks_off ] [ 0 ] = s -> current_picture . motion_val [ 1 ] [ xy + v -> blocks_off ] [ 1 ] = 0 ;\n return ;\n }\n if ( ! v -> field_mode ) {\n s -> mv [ 0 ] [ 0 ] [ 0 ] = scale_mv ( s -> next_picture . motion_val [ 1 ] [ xy ] [ 0 ] , v -> bfraction , 0 , s -> quarter_sample ) ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = scale_mv ( s -> next_picture . motion_val [ 1 ] [ xy ] [ 1 ] , v -> bfraction , 0 , s -> quarter_sample ) ;\n s -> mv [ 1 ] [ 0 ] [ 0 ] = scale_mv ( s -> next_picture . motion_val [ 1 ] [ xy ] [ 0 ] , v -> bfraction , 1 , s -> quarter_sample ) ;\n s -> mv [ 1 ] [ 0 ] [ 1 ] = scale_mv ( s -> next_picture . motion_val [ 1 ] [ xy ] [ 1 ] , v -> bfraction , 1 , s -> quarter_sample ) ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = av_clip ( s -> mv [ 0 ] [ 0 ] [ 0 ] , - 60 - ( s -> mb_x << 6 ) , ( s -> mb_width << 6 ) - 4 - ( s -> mb_x << 6 ) ) ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = av_clip ( s -> mv [ 0 ] [ 0 ] [ 1 ] , - 60 - ( s -> mb_y << 6 ) , ( s -> mb_height << 6 ) - 4 - ( s -> mb_y << 6 ) ) ;\n s -> mv [ 1 ] [ 0 ] [ 0 ] = av_clip ( s -> mv [ 1 ] [ 0 ] [ 0 ] , - 60 - ( s -> mb_x << 6 ) , ( s -> mb_width << 6 ) - 4 - ( s -> mb_x << 6 ) ) ;\n s -> mv [ 1 ] [ 0 ] [ 1 ] = av_clip ( s -> mv [ 1 ] [ 0 ] [ 1 ] , - 60 - ( s -> mb_y << 6 ) , ( s -> mb_height << 6 ) - 4 - ( s -> mb_y << 6 ) ) ;\n }\n if ( direct ) {\n s -> current_picture . motion_val [ 0 ] [ xy + v -> blocks_off ] [ 0 ] = s -> mv [ 0 ] [ 0 ] [ 0 ] ;\n s -> current_picture . motion_val [ 0 ] [ xy + v -> blocks_off ] [ 1 ] = s -> mv [ 0 ] [ 0 ] [ 1 ] ;\n s -> current_picture . motion_val [ 1 ] [ xy + v -> blocks_off ] [ 0 ] = s -> mv [ 1 ] [ 0 ] [ 0 ] ;\n s -> current_picture . motion_val [ 1 ] [ xy + v -> blocks_off ] [ 1 ] = s -> mv [ 1 ] [ 0 ] [ 1 ] ;\n return ;\n }\n if ( ( mvtype == BMV_TYPE_FORWARD ) || ( mvtype == BMV_TYPE_INTERPOLATED ) ) {\n C = s -> current_picture . motion_val [ 0 ] [ xy - 2 ] ;\n A = s -> current_picture . motion_val [ 0 ] [ xy - wrap * 2 ] ;\n off = ( s -> mb_x == ( s -> mb_width - 1 ) ) ? - 2 : 2 ;\n B = s -> current_picture . motion_val [ 0 ] [ xy - wrap * 2 + off ] ;\n if ( ! s -> mb_x ) C [ 0 ] = C [ 1 ] = 0 ;\n if ( ! s -> first_slice_line ) {\n if ( s -> mb_width == 1 ) {\n px = A [ 0 ] ;\n py = A [ 1 ] ;\n }\n else {\n px = mid_pred ( A [ 0 ] , B [ 0 ] , C [ 0 ] ) ;\n py = mid_pred ( A [ 1 ] , B [ 1 ] , C [ 1 ] ) ;\n }\n }\n else if ( s -> mb_x ) {\n px = C [ 0 ] ;\n py = C [ 1 ] ;\n }\n else {\n px = py = 0 ;\n }\n {\n int qx , qy , X , Y ;\n if ( v -> profile < PROFILE_ADVANCED ) {\n qx = ( s -> mb_x << 5 ) ;\n qy = ( s -> mb_y << 5 ) ;\n X = ( s -> mb_width << 5 ) - 4 ;\n Y = ( s -> mb_height << 5 ) - 4 ;\n if ( qx + px < - 28 ) px = - 28 - qx ;\n if ( qy + py < - 28 ) py = - 28 - qy ;\n if ( qx + px > X ) px = X - qx ;\n if ( qy + py > Y ) py = Y - qy ;\n }\n else {\n qx = ( s -> mb_x << 6 ) ;\n qy = ( s -> mb_y << 6 ) ;\n X = ( s -> mb_width << 6 ) - 4 ;\n Y = ( s -> mb_height << 6 ) - 4 ;\n if ( qx + px < - 60 ) px = - 60 - qx ;\n if ( qy + py < - 60 ) py = - 60 - qy ;\n if ( qx + px > X ) px = X - qx ;\n if ( qy + py > Y ) py = Y - qy ;\n }\n }\n if ( 0 && ! s -> first_slice_line && s -> mb_x ) {\n if ( is_intra [ xy - wrap ] ) sum = FFABS ( px ) + FFABS ( py ) ;\n else sum = FFABS ( px - A [ 0 ] ) + FFABS ( py - A [ 1 ] ) ;\n if ( sum > 32 ) {\n if ( get_bits1 ( & s -> gb ) ) {\n px = A [ 0 ] ;\n py = A [ 1 ] ;\n }\n else {\n px = C [ 0 ] ;\n py = C [ 1 ] ;\n }\n }\n else {\n if ( is_intra [ xy - 2 ] ) sum = FFABS ( px ) + FFABS ( py ) ;\n else sum = FFABS ( px - C [ 0 ] ) + FFABS ( py - C [ 1 ] ) ;\n if ( sum > 32 ) {\n if ( get_bits1 ( & s -> gb ) ) {\n px = A [ 0 ] ;\n py = A [ 1 ] ;\n }\n else {\n px = C [ 0 ] ;\n py = C [ 1 ] ;\n }\n }\n }\n }\n s -> mv [ 0 ] [ 0 ] [ 0 ] = ( ( px + dmv_x [ 0 ] + r_x ) & ( ( r_x << 1 ) - 1 ) ) - r_x ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = ( ( py + dmv_y [ 0 ] + r_y ) & ( ( r_y << 1 ) - 1 ) ) - r_y ;\n }\n if ( ( mvtype == BMV_TYPE_BACKWARD ) || ( mvtype == BMV_TYPE_INTERPOLATED ) ) {\n C = s -> current_picture . motion_val [ 1 ] [ xy - 2 ] ;\n A = s -> current_picture . motion_val [ 1 ] [ xy - wrap * 2 ] ;\n off = ( s -> mb_x == ( s -> mb_width - 1 ) ) ? - 2 : 2 ;\n B = s -> current_picture . motion_val [ 1 ] [ xy - wrap * 2 + off ] ;\n if ( ! s -> mb_x ) C [ 0 ] = C [ 1 ] = 0 ;\n if ( ! s -> first_slice_line ) {\n if ( s -> mb_width == 1 ) {\n px = A [ 0 ] ;\n py = A [ 1 ] ;\n }\n else {\n px = mid_pred ( A [ 0 ] , B [ 0 ] , C [ 0 ] ) ;\n py = mid_pred ( A [ 1 ] , B [ 1 ] , C [ 1 ] ) ;\n }\n }\n else if ( s -> mb_x ) {\n px = C [ 0 ] ;\n py = C [ 1 ] ;\n }\n else {\n px = py = 0 ;\n }\n {\n int qx , qy , X , Y ;\n if ( v -> profile < PROFILE_ADVANCED ) {\n qx = ( s -> mb_x << 5 ) ;\n qy = ( s -> mb_y << 5 ) ;\n X = ( s -> mb_width << 5 ) - 4 ;\n Y = ( s -> mb_height << 5 ) - 4 ;\n if ( qx + px < - 28 ) px = - 28 - qx ;\n if ( qy + py < - 28 ) py = - 28 - qy ;\n if ( qx + px > X ) px = X - qx ;\n if ( qy + py > Y ) py = Y - qy ;\n }\n else {\n qx = ( s -> mb_x << 6 ) ;\n qy = ( s -> mb_y << 6 ) ;\n X = ( s -> mb_width << 6 ) - 4 ;\n Y = ( s -> mb_height << 6 ) - 4 ;\n if ( qx + px < - 60 ) px = - 60 - qx ;\n if ( qy + py < - 60 ) py = - 60 - qy ;\n if ( qx + px > X ) px = X - qx ;\n if ( qy + py > Y ) py = Y - qy ;\n }\n }\n if ( 0 && ! s -> first_slice_line && s -> mb_x ) {\n if ( is_intra [ xy - wrap ] ) sum = FFABS ( px ) + FFABS ( py ) ;\n else sum = FFABS ( px - A [ 0 ] ) + FFABS ( py - A [ 1 ] ) ;\n if ( sum > 32 ) {\n if ( get_bits1 ( & s -> gb ) ) {\n px = A [ 0 ] ;\n py = A [ 1 ] ;\n }\n else {\n px = C [ 0 ] ;\n py = C [ 1 ] ;\n }\n }\n else {\n if ( is_intra [ xy - 2 ] ) sum = FFABS ( px ) + FFABS ( py ) ;\n else sum = FFABS ( px - C [ 0 ] ) + FFABS ( py - C [ 1 ] ) ;\n if ( sum > 32 ) {\n if ( get_bits1 ( & s -> gb ) ) {\n px = A [ 0 ] ;\n py = A [ 1 ] ;\n }\n else {\n px = C [ 0 ] ;\n py = C [ 1 ] ;\n }\n }\n }\n }\n s -> mv [ 1 ] [ 0 ] [ 0 ] = ( ( px + dmv_x [ 1 ] + r_x ) & ( ( r_x << 1 ) - 1 ) ) - r_x ;\n s -> mv [ 1 ] [ 0 ] [ 1 ] = ( ( py + dmv_y [ 1 ] + r_y ) & ( ( r_y << 1 ) - 1 ) ) - r_y ;\n }\n s -> current_picture . motion_val [ 0 ] [ xy ] [ 0 ] = s -> mv [ 0 ] [ 0 ] [ 0 ] ;\n s -> current_picture . motion_val [ 0 ] [ xy ] [ 1 ] = s -> mv [ 0 ] [ 0 ] [ 1 ] ;\n s -> current_picture . motion_val [ 1 ] [ xy ] [ 0 ] = s -> mv [ 1 ] [ 0 ] [ 0 ] ;\n s -> current_picture . motion_val [ 1 ] [ xy ] [ 1 ] = s -> mv [ 1 ] [ 0 ] [ 1 ] ;\n }"}
{"idx": 7818, "target": 0, "func": "static inline void tm2_hi_res_block ( TM2Context * ctx , AVFrame * pic , int bx , int by ) {\n int i ;\n int deltas [ 16 ] ;\n TM2_INIT_POINTERS ( ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n deltas [ i ] = GET_TOK ( ctx , TM2_C_HI ) ;\n deltas [ i + 4 ] = GET_TOK ( ctx , TM2_C_HI ) ;\n }\n tm2_high_chroma ( U , Ustride , clast , ctx -> CD , deltas ) ;\n tm2_high_chroma ( V , Vstride , clast + 2 , ctx -> CD + 2 , deltas + 4 ) ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) deltas [ i ] = GET_TOK ( ctx , TM2_L_HI ) ;\n tm2_apply_deltas ( ctx , Y , Ystride , deltas , last ) ;\n }"}
{"idx": 7819, "target": 0, "func": "static int32_t u_printf_scidbl_handler ( const u_printf_stream_handler * handler , void * context , ULocaleBundle * formatBundle , const u_printf_spec_info * info , const ufmt_args * args ) {\n u_printf_spec_info scidbl_info ;\n double num = args [ 0 ] . doubleValue ;\n int32_t retVal ;\n UNumberFormat * format ;\n int32_t maxSigDecimalDigits , significantDigits ;\n memcpy ( & scidbl_info , info , sizeof ( u_printf_spec_info ) ) ;\n if ( scidbl_info . fPrecision == - 1 && num == uprv_trunc ( num ) ) {\n scidbl_info . fSpec = 0x0066 ;\n scidbl_info . fPrecision = 0 ;\n retVal = u_printf_double_handler ( handler , context , formatBundle , & scidbl_info , args ) ;\n }\n else if ( num < 0.0001 || ( scidbl_info . fPrecision < 1 && 1000000.0 <= num ) || ( scidbl_info . fPrecision != - 1 && num > uprv_pow10 ( scidbl_info . fPrecision ) ) ) {\n scidbl_info . fSpec = scidbl_info . fSpec - 2 ;\n if ( scidbl_info . fPrecision == - 1 ) {\n scidbl_info . fPrecision = 5 ;\n }\n retVal = u_printf_scientific_handler ( handler , context , formatBundle , & scidbl_info , args ) ;\n }\n else {\n format = u_locbund_getNumberFormat ( formatBundle , UNUM_DECIMAL ) ;\n if ( format == NULL ) {\n return 0 ;\n }\n maxSigDecimalDigits = unum_getAttribute ( format , UNUM_MAX_SIGNIFICANT_DIGITS ) ;\n significantDigits = scidbl_info . fPrecision ;\n scidbl_info . fSpec = 0x0066 ;\n if ( significantDigits == - 1 ) {\n significantDigits = 6 ;\n }\n unum_setAttribute ( format , UNUM_SIGNIFICANT_DIGITS_USED , TRUE ) ;\n unum_setAttribute ( format , UNUM_MAX_SIGNIFICANT_DIGITS , significantDigits ) ;\n retVal = u_printf_double_handler ( handler , context , formatBundle , & scidbl_info , args ) ;\n unum_setAttribute ( format , UNUM_MAX_SIGNIFICANT_DIGITS , maxSigDecimalDigits ) ;\n unum_setAttribute ( format , UNUM_SIGNIFICANT_DIGITS_USED , FALSE ) ;\n }\n return retVal ;\n }"}
{"idx": 7820, "target": 0, "func": "static const char * proto_avp ( diam_ctx_t * c , diam_avp_t * a , tvbuff_t * tvb , diam_sub_dis_t * diam_sub_dis_inf ) {\n proto_avp_t * t = ( proto_avp_t * ) a -> type_data ;\n col_set_writable ( c -> pinfo -> cinfo , FALSE ) ;\n if ( ! t -> handle ) {\n t -> handle = find_dissector ( t -> name ) ;\n if ( ! t -> handle ) t -> handle = data_handle ;\n }\n TRY {\n call_dissector_with_data ( t -> handle , tvb , c -> pinfo , c -> tree , diam_sub_dis_inf ) ;\n }\n CATCH_NONFATAL_ERRORS {\n show_exception ( tvb , c -> pinfo , c -> tree , EXCEPT_CODE , GET_MESSAGE ) ;\n }\n ENDTRY ;\n return \"\" ;\n }"}
{"idx": 7821, "target": 0, "func": "static void show_object ( struct object * object , const char * name , void * data ) {\n struct bitmap * base = data ;\n int bitmap_pos ;\n bitmap_pos = bitmap_position ( object -> oid . hash ) ;\n if ( bitmap_pos < 0 ) bitmap_pos = ext_index_add_object ( object , name ) ;\n bitmap_set ( base , bitmap_pos ) ;\n }"}
{"idx": 7822, "target": 0, "func": "static UChar32 U_CALLCONV ucnv_getNextUChar_UTF8 ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n UConverter * cnv ;\n const uint8_t * sourceInitial ;\n const uint8_t * source ;\n uint16_t extraBytesToWrite ;\n uint8_t myByte ;\n UChar32 ch ;\n int8_t i , isLegalSequence ;\n cnv = args -> converter ;\n sourceInitial = source = ( const uint8_t * ) args -> source ;\n if ( source >= ( const uint8_t * ) args -> sourceLimit ) {\n * err = U_INDEX_OUTOFBOUNDS_ERROR ;\n return 0xffff ;\n }\n myByte = ( uint8_t ) * ( source ++ ) ;\n if ( myByte < 0x80 ) {\n args -> source = ( const char * ) source ;\n return ( UChar32 ) myByte ;\n }\n extraBytesToWrite = ( uint16_t ) bytesFromUTF8 [ myByte ] ;\n if ( extraBytesToWrite == 0 ) {\n cnv -> toUBytes [ 0 ] = myByte ;\n cnv -> toULength = 1 ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n args -> source = ( const char * ) source ;\n return 0xffff ;\n }\n if ( ( ( const char * ) source + extraBytesToWrite - 1 ) > args -> sourceLimit ) {\n cnv -> toUBytes [ 0 ] = myByte ;\n i = 1 ;\n * err = U_TRUNCATED_CHAR_FOUND ;\n while ( source < ( const uint8_t * ) args -> sourceLimit ) {\n if ( U8_IS_TRAIL ( myByte = * source ) ) {\n cnv -> toUBytes [ i ++ ] = myByte ;\n ++ source ;\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n }\n cnv -> toULength = i ;\n args -> source = ( const char * ) source ;\n return 0xffff ;\n }\n isLegalSequence = 1 ;\n ch = myByte << 6 ;\n switch ( extraBytesToWrite ) {\n case 6 : ch += ( myByte = * source ) ;\n ch <<= 6 ;\n if ( ! U8_IS_TRAIL ( myByte ) ) {\n isLegalSequence = 0 ;\n break ;\n }\n ++ source ;\n U_FALLTHROUGH ;\n case 5 : ch += ( myByte = * source ) ;\n ch <<= 6 ;\n if ( ! U8_IS_TRAIL ( myByte ) ) {\n isLegalSequence = 0 ;\n break ;\n }\n ++ source ;\n U_FALLTHROUGH ;\n case 4 : ch += ( myByte = * source ) ;\n ch <<= 6 ;\n if ( ! U8_IS_TRAIL ( myByte ) ) {\n isLegalSequence = 0 ;\n break ;\n }\n ++ source ;\n U_FALLTHROUGH ;\n case 3 : ch += ( myByte = * source ) ;\n ch <<= 6 ;\n if ( ! U8_IS_TRAIL ( myByte ) ) {\n isLegalSequence = 0 ;\n break ;\n }\n ++ source ;\n U_FALLTHROUGH ;\n case 2 : ch += ( myByte = * source ) ;\n if ( ! U8_IS_TRAIL ( myByte ) ) {\n isLegalSequence = 0 ;\n break ;\n }\n ++ source ;\n }\n ;\n ch -= offsetsFromUTF8 [ extraBytesToWrite ] ;\n args -> source = ( const char * ) source ;\n if ( isLegalSequence && ( uint32_t ) ch <= MAXIMUM_UTF && ( uint32_t ) ch >= utf8_minChar32 [ extraBytesToWrite ] && ! U_IS_SURROGATE ( ch ) ) {\n return ch ;\n }\n for ( i = 0 ;\n sourceInitial < source ;\n ++ i ) {\n cnv -> toUBytes [ i ] = * sourceInitial ++ ;\n }\n cnv -> toULength = i ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n return 0xffff ;\n }"}
{"idx": 7823, "target": 0, "func": "struct evhttp * evhttp_new ( struct event_base * base ) {\n struct evhttp * http = evhttp_new_object ( ) ;\n http -> base = base ;\n return ( http ) ;\n }"}
{"idx": 7824, "target": 0, "func": "static void get_one_value_callback ( gpointer key , gpointer value , gpointer callback_data ) {\n gpointer * returned_value ;\n returned_value = callback_data ;\n * returned_value = value ;\n }"}
{"idx": 7825, "target": 0, "func": "static gint dissect_gatt_uuid ( proto_tree * tree , packet_info * pinfo , tvbuff_t * tvb , gint offset ) {\n proto_item * sub_item ;\n bluetooth_uuid_t sub_uuid ;\n if ( tvb_reported_length_remaining ( tvb , offset ) == 2 ) {\n proto_tree_add_item ( tree , hf_btatt_uuid16 , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n sub_uuid = get_uuid ( tvb , offset , 2 ) ;\n offset += 2 ;\n }\n else if ( tvb_reported_length_remaining ( tvb , offset ) == 16 ) {\n sub_item = proto_tree_add_item ( tree , hf_btatt_uuid128 , tvb , offset , 16 , ENC_NA ) ;\n sub_uuid = get_uuid ( tvb , offset , 16 ) ;\n proto_item_append_text ( sub_item , \" (%s)\" , print_uuid ( & sub_uuid ) ) ;\n offset += 16 ;\n }\n else {\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_bad_data ) ;\n offset = tvb_captured_length ( tvb ) ;\n }\n return offset ;\n }"}
{"idx": 7826, "target": 0, "func": "SPL_METHOD ( SplFileObject , fseek ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n long pos , whence = SEEK_SET ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"l|l\" , & pos , & whence ) == FAILURE ) {\n return ;\n }\n spl_filesystem_file_free_line ( intern TSRMLS_CC ) ;\n RETURN_LONG ( php_stream_seek ( intern -> u . file . stream , pos , whence ) ) ;\n }"}
{"idx": 7827, "target": 0, "func": "char * get_attname ( Oid relid , AttrNumber attnum ) {\n HeapTuple tp ;\n tp = SearchSysCache2 ( ATTNUM , ObjectIdGetDatum ( relid ) , Int16GetDatum ( attnum ) ) ;\n if ( HeapTupleIsValid ( tp ) ) {\n Form_pg_attribute att_tup = ( Form_pg_attribute ) GETSTRUCT ( tp ) ;\n char * result ;\n result = pstrdup ( NameStr ( att_tup -> attname ) ) ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }\n else return NULL ;\n }"}
{"idx": 7828, "target": 0, "func": "static void addFile ( const char * filename , const char * name , const char * source , UBool sourceTOC , UBool verbose ) {\n char * s ;\n uint32_t length ;\n char * fullPath = NULL ;\n if ( fileCount == fileMax ) {\n fileMax += CHUNK_FILE_COUNT ;\n files = ( File * ) uprv_realloc ( files , fileMax * sizeof ( files [ 0 ] ) ) ;\n if ( files == NULL ) {\n fprintf ( stderr , \"pkgdata/gencmn: Could not allocate %u bytes for %d files\\n\" , ( unsigned int ) ( fileMax * sizeof ( files [ 0 ] ) ) , fileCount ) ;\n exit ( U_MEMORY_ALLOCATION_ERROR ) ;\n }\n }\n if ( ! sourceTOC ) {\n FileStream * file ;\n if ( uprv_pathIsAbsolute ( filename ) ) {\n fprintf ( stderr , \"gencmn: Error: absolute path encountered. Old style paths are not supported. Use relative paths such as 'fur.res' or 'translit%cfur.res'.\\n\\tBad path: '%s'\\n\" , U_FILE_SEP_CHAR , filename ) ;\n exit ( U_ILLEGAL_ARGUMENT_ERROR ) ;\n }\n fullPath = pathToFullPath ( filename , source ) ;\n length = ( uint32_t ) ( uprv_strlen ( filename ) + 1 + uprv_strlen ( name ) + 1 ) ;\n s = allocString ( length ) ;\n uprv_strcpy ( s , name ) ;\n uprv_strcat ( s , U_TREE_ENTRY_SEP_STRING ) ;\n uprv_strcat ( s , filename ) ;\n fixDirToTreePath ( s ) ;\n files [ fileCount ] . basename = s ;\n files [ fileCount ] . basenameLength = length ;\n files [ fileCount ] . pathname = fullPath ;\n basenameTotal += length ;\n file = T_FileStream_open ( fullPath , \"rb\" ) ;\n if ( file == NULL ) {\n fprintf ( stderr , \"gencmn: unable to open listed file %s\\n\" , fullPath ) ;\n exit ( U_FILE_ACCESS_ERROR ) ;\n }\n length = T_FileStream_size ( file ) ;\n if ( T_FileStream_error ( file ) || length <= 20 ) {\n fprintf ( stderr , \"gencmn: unable to get length of listed file %s\\n\" , fullPath ) ;\n exit ( U_FILE_ACCESS_ERROR ) ;\n }\n T_FileStream_close ( file ) ;\n if ( maxSize && length > maxSize ) {\n if ( verbose ) {\n printf ( \"%s ignored (size %ld > %ld)\\n\" , fullPath , ( long ) length , ( long ) maxSize ) ;\n }\n return ;\n }\n files [ fileCount ] . fileSize = length ;\n }\n else {\n char * t ;\n length = ( uint32_t ) ( uprv_strlen ( filename ) + 1 + uprv_strlen ( name ) + 1 ) ;\n s = allocString ( length ) ;\n uprv_strcpy ( s , name ) ;\n uprv_strcat ( s , U_TREE_ENTRY_SEP_STRING ) ;\n uprv_strcat ( s , filename ) ;\n fixDirToTreePath ( s ) ;\n files [ fileCount ] . basename = s ;\n t = files [ fileCount ] . pathname = allocString ( length ) ;\n while ( -- length > 0 ) {\n if ( * s == '.' || * s == '-' || * s == '/' ) {\n * t = '_' ;\n }\n else {\n * t = * s ;\n }\n ++ s ;\n ++ t ;\n }\n * t = 0 ;\n }\n ++ fileCount ;\n }"}
{"idx": 7829, "target": 0, "func": "static void init_uni_h263_rl_tab ( RLTable * rl , uint32_t * bits_tab , uint8_t * len_tab ) {\n int slevel , run , last ;\n assert ( MAX_LEVEL >= 64 ) ;\n assert ( MAX_RUN >= 63 ) ;\n for ( slevel = - 64 ;\n slevel < 64 ;\n slevel ++ ) {\n if ( slevel == 0 ) continue ;\n for ( run = 0 ;\n run < 64 ;\n run ++ ) {\n for ( last = 0 ;\n last <= 1 ;\n last ++ ) {\n const int index = UNI_MPEG4_ENC_INDEX ( last , run , slevel + 64 ) ;\n int level = slevel < 0 ? - slevel : slevel ;\n int sign = slevel < 0 ? 1 : 0 ;\n int bits , len , code ;\n len_tab [ index ] = 100 ;\n code = get_rl_index ( rl , last , run , level ) ;\n bits = rl -> table_vlc [ code ] [ 0 ] ;\n len = rl -> table_vlc [ code ] [ 1 ] ;\n bits = bits * 2 + sign ;\n len ++ ;\n if ( code != rl -> n && len < len_tab [ index ] ) {\n if ( bits_tab ) bits_tab [ index ] = bits ;\n len_tab [ index ] = len ;\n }\n bits = rl -> table_vlc [ rl -> n ] [ 0 ] ;\n len = rl -> table_vlc [ rl -> n ] [ 1 ] ;\n bits = bits * 2 + last ;\n len ++ ;\n bits = bits * 64 + run ;\n len += 6 ;\n bits = bits * 256 + ( level & 0xff ) ;\n len += 8 ;\n if ( len < len_tab [ index ] ) {\n if ( bits_tab ) bits_tab [ index ] = bits ;\n len_tab [ index ] = len ;\n }\n }\n }\n }\n }"}
{"idx": 7830, "target": 0, "func": "static void pbase_tree_put ( struct pbase_tree_cache * cache ) {\n if ( ! cache -> temporary ) {\n cache -> ref -- ;\n return ;\n }\n free ( cache -> tree_data ) ;\n free ( cache ) ;\n }"}
{"idx": 7831, "target": 0, "func": "void TSHttpSsnArgSet ( TSHttpSsn ssnp , int arg_idx , void * arg ) {\n sdk_assert ( sdk_sanity_check_http_ssn ( ssnp ) == TS_SUCCESS ) ;\n sdk_assert ( arg_idx >= 0 && arg_idx < HTTP_SSN_TXN_MAX_USER_ARG ) ;\n ProxyClientSession * cs = reinterpret_cast < ProxyClientSession * > ( ssnp ) ;\n cs -> set_user_arg ( arg_idx , arg ) ;\n }"}
{"idx": 7832, "target": 0, "func": "png_uint_32 PNGAPI png_permit_mng_features ( png_structp png_ptr , png_uint_32 mng_features ) {\n png_debug ( 1 , \"in png_permit_mng_features\" ) ;\n if ( png_ptr == NULL ) return ( png_uint_32 ) 0 ;\n png_ptr -> mng_features_permitted = ( png_byte ) ( mng_features & PNG_ALL_MNG_FEATURES ) ;\n return ( png_uint_32 ) png_ptr -> mng_features_permitted ;\n }"}
{"idx": 7833, "target": 0, "func": "static int pcm_bluray_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * src = avpkt -> data ;\n int buf_size = avpkt -> size ;\n GetByteContext gb ;\n int num_source_channels , channel , retval ;\n int sample_size , samples ;\n int16_t * dst16 ;\n int32_t * dst32 ;\n if ( buf_size < 4 ) {\n av_log ( avctx , AV_LOG_ERROR , \"PCM packet too small\\n\" ) ;\n return - 1 ;\n }\n if ( pcm_bluray_parse_header ( avctx , src ) ) return - 1 ;\n src += 4 ;\n buf_size -= 4 ;\n bytestream2_init ( & gb , src , buf_size ) ;\n num_source_channels = FFALIGN ( avctx -> channels , 2 ) ;\n sample_size = ( num_source_channels * ( avctx -> sample_fmt == AV_SAMPLE_FMT_S16 ? 16 : 24 ) ) >> 3 ;\n samples = buf_size / sample_size ;\n frame -> nb_samples = samples ;\n if ( ( retval = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return retval ;\n }\n dst16 = ( int16_t * ) frame -> data [ 0 ] ;\n dst32 = ( int32_t * ) frame -> data [ 0 ] ;\n if ( samples ) {\n switch ( avctx -> channel_layout ) {\n case AV_CH_LAYOUT_STEREO : case AV_CH_LAYOUT_4POINT0 : case AV_CH_LAYOUT_2_2 : samples *= num_source_channels ;\n if ( AV_SAMPLE_FMT_S16 == avctx -> sample_fmt ) {\n # if HAVE_BIGENDIAN bytestream2_get_buffer ( & gb , dst16 , buf_size ) ;\n # else do {\n * dst16 ++ = bytestream2_get_be16u ( & gb ) ;\n }\n while ( -- samples ) ;\n # endif }\n else {\n do {\n * dst32 ++ = bytestream2_get_be24u ( & gb ) << 8 ;\n }\n while ( -- samples ) ;\n }\n break ;\n case AV_CH_LAYOUT_MONO : case AV_CH_LAYOUT_SURROUND : case AV_CH_LAYOUT_2_1 : case AV_CH_LAYOUT_5POINT0 : if ( AV_SAMPLE_FMT_S16 == avctx -> sample_fmt ) {\n do {\n # if HAVE_BIGENDIAN bytestream2_get_buffer ( & gb , dst16 , avctx -> channels * 2 ) ;\n dst16 += avctx -> channels ;\n # else channel = avctx -> channels ;\n do {\n * dst16 ++ = bytestream2_get_be16u ( & gb ) ;\n }\n while ( -- channel ) ;\n # endif bytestream2_skip ( & gb , 2 ) ;\n }\n while ( -- samples ) ;\n }\n else {\n do {\n channel = avctx -> channels ;\n do {\n * dst32 ++ = bytestream2_get_be24u ( & gb ) << 8 ;\n }\n while ( -- channel ) ;\n bytestream2_skip ( & gb , 3 ) ;\n }\n while ( -- samples ) ;\n }\n break ;\n case AV_CH_LAYOUT_5POINT1 : if ( AV_SAMPLE_FMT_S16 == avctx -> sample_fmt ) {\n do {\n dst16 [ 0 ] = bytestream2_get_be16u ( & gb ) ;\n dst16 [ 1 ] = bytestream2_get_be16u ( & gb ) ;\n dst16 [ 2 ] = bytestream2_get_be16u ( & gb ) ;\n dst16 [ 4 ] = bytestream2_get_be16u ( & gb ) ;\n dst16 [ 5 ] = bytestream2_get_be16u ( & gb ) ;\n dst16 [ 3 ] = bytestream2_get_be16u ( & gb ) ;\n dst16 += 6 ;\n }\n while ( -- samples ) ;\n }\n else {\n do {\n dst32 [ 0 ] = bytestream2_get_be24u ( & gb ) << 8 ;\n dst32 [ 1 ] = bytestream2_get_be24u ( & gb ) << 8 ;\n dst32 [ 2 ] = bytestream2_get_be24u ( & gb ) << 8 ;\n dst32 [ 4 ] = bytestream2_get_be24u ( & gb ) << 8 ;\n dst32 [ 5 ] = bytestream2_get_be24u ( & gb ) << 8 ;\n dst32 [ 3 ] = bytestream2_get_be24u ( & gb ) << 8 ;\n dst32 += 6 ;\n }\n while ( -- samples ) ;\n }\n break ;\n case AV_CH_LAYOUT_7POINT0 : if ( AV_SAMPLE_FMT_S16 == avctx -> sample_fmt ) {\n do {\n dst16 [ 0 ] = bytestream2_get_be16u ( & gb ) ;\n dst16 [ 1 ] = bytestream2_get_be16u ( & gb ) ;\n dst16 [ 2 ] = bytestream2_get_be16u ( & gb ) ;\n dst16 [ 5 ] = bytestream2_get_be16u ( & gb ) ;\n dst16 [ 3 ] = bytestream2_get_be16u ( & gb ) ;\n dst16 [ 4 ] = bytestream2_get_be16u ( & gb ) ;\n dst16 [ 6 ] = bytestream2_get_be16u ( & gb ) ;\n dst16 += 7 ;\n bytestream2_skip ( & gb , 2 ) ;\n }\n while ( -- samples ) ;\n }\n else {\n do {\n dst32 [ 0 ] = bytestream2_get_be24u ( & gb ) << 8 ;\n dst32 [ 1 ] = bytestream2_get_be24u ( & gb ) << 8 ;\n dst32 [ 2 ] = bytestream2_get_be24u ( & gb ) << 8 ;\n dst32 [ 5 ] = bytestream2_get_be24u ( & gb ) << 8 ;\n dst32 [ 3 ] = bytestream2_get_be24u ( & gb ) << 8 ;\n dst32 [ 4 ] = bytestream2_get_be24u ( & gb ) << 8 ;\n dst32 [ 6 ] = bytestream2_get_be24u ( & gb ) << 8 ;\n dst32 += 7 ;\n bytestream2_skip ( & gb , 3 ) ;\n }\n while ( -- samples ) ;\n }\n break ;\n case AV_CH_LAYOUT_7POINT1 : if ( AV_SAMPLE_FMT_S16 == avctx -> sample_fmt ) {\n do {\n dst16 [ 0 ] = bytestream2_get_be16u ( & gb ) ;\n dst16 [ 1 ] = bytestream2_get_be16u ( & gb ) ;\n dst16 [ 2 ] = bytestream2_get_be16u ( & gb ) ;\n dst16 [ 6 ] = bytestream2_get_be16u ( & gb ) ;\n dst16 [ 4 ] = bytestream2_get_be16u ( & gb ) ;\n dst16 [ 5 ] = bytestream2_get_be16u ( & gb ) ;\n dst16 [ 7 ] = bytestream2_get_be16u ( & gb ) ;\n dst16 [ 3 ] = bytestream2_get_be16u ( & gb ) ;\n dst16 += 8 ;\n }\n while ( -- samples ) ;\n }\n else {\n do {\n dst32 [ 0 ] = bytestream2_get_be24u ( & gb ) << 8 ;\n dst32 [ 1 ] = bytestream2_get_be24u ( & gb ) << 8 ;\n dst32 [ 2 ] = bytestream2_get_be24u ( & gb ) << 8 ;\n dst32 [ 6 ] = bytestream2_get_be24u ( & gb ) << 8 ;\n dst32 [ 4 ] = bytestream2_get_be24u ( & gb ) << 8 ;\n dst32 [ 5 ] = bytestream2_get_be24u ( & gb ) << 8 ;\n dst32 [ 7 ] = bytestream2_get_be24u ( & gb ) << 8 ;\n dst32 [ 3 ] = bytestream2_get_be24u ( & gb ) << 8 ;\n dst32 += 8 ;\n }\n while ( -- samples ) ;\n }\n break ;\n }\n }\n * got_frame_ptr = 1 ;\n retval = bytestream2_tell ( & gb ) ;\n if ( avctx -> debug & FF_DEBUG_BITSTREAM ) av_dlog ( avctx , \"pcm_bluray_decode_frame: decoded %d -> %d bytes\\n\" , retval , buf_size ) ;\n return retval + 4 ;\n }"}
{"idx": 7834, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( SessionRestorePageLoadMetricsBrowserTest , MultipleTabsSessionRestore ) {\n ui_test_utils : : NavigateToURL ( browser ( ) , GetTestURL ( ) ) ;\n ui_test_utils : : NavigateToURLWithDisposition ( browser ( ) , GetTestURL ( ) , WindowOpenDisposition : : NEW_BACKGROUND_TAB , ui_test_utils : : BROWSER_TEST_WAIT_FOR_NAVIGATION ) ;\n SessionRestorePaintWaiter session_restore_paint_waiter ;\n Browser * new_browser = QuitBrowserAndRestore ( browser ( ) ) ;\n TabStripModel * tab_strip = new_browser -> tab_strip_model ( ) ;\n ASSERT_TRUE ( tab_strip ) ;\n ASSERT_EQ ( 2 , tab_strip -> count ( ) ) ;\n session_restore_paint_waiter . WaitForForegroundTabs ( 1 ) ;\n ASSERT_NO_FATAL_FAILURE ( WaitForTabsToLoad ( new_browser ) ) ;\n ExpectFirstPaintMetricsTotalCount ( 1 ) ;\n }"}
{"idx": 7835, "target": 0, "func": "static bool has_lock_conflicts ( TocEntry * te1 , TocEntry * te2 ) {\n int j , k ;\n for ( j = 0 ;\n j < te1 -> nLockDeps ;\n j ++ ) {\n for ( k = 0 ;\n k < te2 -> nDeps ;\n k ++ ) {\n if ( te1 -> lockDeps [ j ] == te2 -> dependencies [ k ] ) return true ;\n }\n }\n return false ;\n }"}
{"idx": 7836, "target": 0, "func": "static const char * float32_avp ( diam_ctx_t * c , diam_avp_t * a , tvbuff_t * tvb , diam_sub_dis_t * diam_sub_dis_inf _U_ ) {\n char * label = NULL ;\n proto_item * pi ;\n gint length = tvb_reported_length ( tvb ) ;\n if ( length == 4 ) {\n if ( c -> tree ) {\n pi = proto_tree_add_item ( c -> tree , a -> hf_value , tvb , 0 , length , ENC_BIG_ENDIAN ) ;\n label = ( char * ) wmem_alloc ( wmem_packet_scope ( ) , ITEM_LABEL_LENGTH + 1 ) ;\n proto_item_fill_label ( PITEM_FINFO ( pi ) , label ) ;\n label = strstr ( label , \": \" ) + 2 ;\n }\n }\n else {\n pi = proto_tree_add_bytes_format ( c -> tree , hf_diameter_avp_data_wrong_length , tvb , 0 , length , NULL , \"Error! Bad Float32 Length\" ) ;\n expert_add_info_format ( c -> pinfo , pi , & ei_diameter_avp_len , \"Bad Float32 Length (%u)\" , length ) ;\n PROTO_ITEM_SET_GENERATED ( pi ) ;\n }\n return label ;\n }"}
{"idx": 7837, "target": 0, "func": "static void deep_count_more_files_callback ( GObject * source_object , GAsyncResult * res , gpointer user_data ) {\n DeepCountState * state ;\n NautilusDirectory * directory ;\n GList * files , * l ;\n GFileInfo * info ;\n state = user_data ;\n if ( state -> directory == NULL ) {\n deep_count_state_free ( state ) ;\n return ;\n }\n directory = nautilus_directory_ref ( state -> directory ) ;\n g_assert ( directory -> details -> deep_count_in_progress != NULL ) ;\n g_assert ( directory -> details -> deep_count_in_progress == state ) ;\n files = g_file_enumerator_next_files_finish ( state -> enumerator , res , NULL ) ;\n for ( l = files ;\n l != NULL ;\n l = l -> next ) {\n info = l -> data ;\n deep_count_one ( state , info ) ;\n g_object_unref ( info ) ;\n }\n if ( files == NULL ) {\n g_file_enumerator_close_async ( state -> enumerator , 0 , NULL , NULL , NULL ) ;\n g_object_unref ( state -> enumerator ) ;\n state -> enumerator = NULL ;\n deep_count_next_dir ( state ) ;\n }\n else {\n g_file_enumerator_next_files_async ( state -> enumerator , DIRECTORY_LOAD_ITEMS_PER_CALLBACK , G_PRIORITY_LOW , state -> cancellable , deep_count_more_files_callback , state ) ;\n }\n g_list_free ( files ) ;\n nautilus_directory_unref ( directory ) ;\n }"}
{"idx": 7838, "target": 0, "func": "void nautilus_directory_monitor_add_internal ( NautilusDirectory * directory , NautilusFile * file , gconstpointer client , gboolean monitor_hidden_files , NautilusFileAttributes file_attributes , NautilusDirectoryCallback callback , gpointer callback_data ) {\n Monitor * monitor ;\n GList * file_list ;\n char * file_uri = NULL ;\n char * dir_uri = NULL ;\n g_assert ( NAUTILUS_IS_DIRECTORY ( directory ) ) ;\n if ( file != NULL ) {\n file_uri = nautilus_file_get_uri ( file ) ;\n }\n if ( directory != NULL ) {\n dir_uri = nautilus_directory_get_uri ( directory ) ;\n }\n nautilus_profile_start ( \"uri %s file-uri %s client %p\" , dir_uri , file_uri , client ) ;\n g_free ( dir_uri ) ;\n g_free ( file_uri ) ;\n remove_monitor ( directory , file , client ) ;\n monitor = g_new ( Monitor , 1 ) ;\n monitor -> file = file ;\n monitor -> monitor_hidden_files = monitor_hidden_files ;\n monitor -> client = client ;\n monitor -> request = nautilus_directory_set_up_request ( file_attributes ) ;\n if ( file == NULL ) {\n REQUEST_SET_TYPE ( monitor -> request , REQUEST_FILE_LIST ) ;\n }\n directory -> details -> monitor_list = g_list_prepend ( directory -> details -> monitor_list , monitor ) ;\n request_counter_add_request ( directory -> details -> monitor_counters , monitor -> request ) ;\n if ( callback != NULL ) {\n file_list = nautilus_directory_get_file_list ( directory ) ;\n ( * callback ) ( directory , file_list , callback_data ) ;\n nautilus_file_list_free ( file_list ) ;\n }\n if ( directory -> details -> monitor == NULL ) {\n directory -> details -> monitor = nautilus_monitor_directory ( directory -> details -> location ) ;\n }\n if ( REQUEST_WANTS_TYPE ( monitor -> request , REQUEST_FILE_INFO ) && directory -> details -> mime_db_monitor == 0 ) {\n directory -> details -> mime_db_monitor = g_signal_connect_object ( nautilus_signaller_get_current ( ) , \"mime-data-changed\" , G_CALLBACK ( mime_db_changed_callback ) , directory , 0 ) ;\n }\n if ( file != NULL ) {\n nautilus_directory_add_file_to_work_queue ( directory , file ) ;\n }\n else {\n add_all_files_to_work_queue ( directory ) ;\n }\n nautilus_directory_async_state_changed ( directory ) ;\n nautilus_profile_end ( NULL ) ;\n }"}
{"idx": 7839, "target": 0, "func": "static int bind_socket_ai ( struct addrinfo * ai , int reuse ) {\n int fd , on = 1 , r ;\n int serrno ;\n fd = socket ( AF_INET , SOCK_STREAM , 0 ) ;\n if ( fd == - 1 ) {\n event_warn ( \"socket\" ) ;\n return ( - 1 ) ;\n }\n if ( evutil_make_socket_nonblocking ( fd ) < 0 ) goto out ;\n # ifndef WIN32 if ( fcntl ( fd , F_SETFD , 1 ) == - 1 ) {\n event_warn ( \"fcntl(F_SETFD)\" ) ;\n goto out ;\n }\n # endif setsockopt ( fd , SOL_SOCKET , SO_KEEPALIVE , ( void * ) & on , sizeof ( on ) ) ;\n if ( reuse ) {\n setsockopt ( fd , SOL_SOCKET , SO_REUSEADDR , ( void * ) & on , sizeof ( on ) ) ;\n }\n if ( ai != NULL ) {\n r = bind ( fd , ai -> ai_addr , ai -> ai_addrlen ) ;\n if ( r == - 1 ) goto out ;\n }\n return ( fd ) ;\n out : serrno = EVUTIL_SOCKET_ERROR ( ) ;\n EVUTIL_CLOSESOCKET ( fd ) ;\n EVUTIL_SET_SOCKET_ERROR ( serrno ) ;\n return ( - 1 ) ;\n }"}
{"idx": 7840, "target": 0, "func": "MIMEField * _mime_hdr_field_list_search_by_string ( MIMEHdrImpl * mh , const char * field_name_str , int field_name_len ) {\n MIMEFieldBlockImpl * fblock ;\n MIMEField * field , * too_far_field ;\n ink_assert ( mh ) ;\n for ( fblock = & ( mh -> m_first_fblock ) ;\n fblock != nullptr ;\n fblock = fblock -> m_next ) {\n field = & ( fblock -> m_field_slots [ 0 ] ) ;\n too_far_field = & ( fblock -> m_field_slots [ fblock -> m_freetop ] ) ;\n while ( field < too_far_field ) {\n if ( field -> is_live ( ) && ( field_name_len == field -> m_len_name ) && ( strncasecmp ( field -> m_ptr_name , field_name_str , field_name_len ) == 0 ) ) {\n return field ;\n }\n ++ field ;\n }\n }\n return nullptr ;\n }"}
{"idx": 7841, "target": 0, "func": "static cmsBool Type_Measurement_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) {\n cmsICCMeasurementConditions * mc = ( cmsICCMeasurementConditions * ) Ptr ;\n if ( ! _cmsWriteUInt32Number ( io , mc -> Observer ) ) return FALSE ;\n if ( ! _cmsWriteXYZNumber ( io , & mc -> Backing ) ) return FALSE ;\n if ( ! _cmsWriteUInt32Number ( io , mc -> Geometry ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , mc -> Flare ) ) return FALSE ;\n if ( ! _cmsWriteUInt32Number ( io , mc -> IlluminantType ) ) return FALSE ;\n return TRUE ;\n cmsUNUSED_PARAMETER ( nItems ) ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 7842, "target": 0, "func": "static int dissect_h245_CertSelectionCriteria ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h245_CertSelectionCriteria , CertSelectionCriteria_sequence_of , 1 , 16 , FALSE ) ;\n return offset ;\n }"}
{"idx": 7843, "target": 0, "func": "my_bool grant_reload ( THD * thd ) {\n TABLE_LIST tables [ 2 ] ;\n HASH old_column_priv_hash ;\n MEM_ROOT old_mem ;\n my_bool return_val = 1 ;\n DBUG_ENTER ( \"grant_reload\" ) ;\n if ( ! initialized ) DBUG_RETURN ( 0 ) ;\n bzero ( ( char * ) tables , sizeof ( tables ) ) ;\n tables [ 0 ] . alias = tables [ 0 ] . table_name = ( char * ) \"tables_priv\" ;\n tables [ 1 ] . alias = tables [ 1 ] . table_name = ( char * ) \"columns_priv\" ;\n tables [ 0 ] . db = tables [ 1 ] . db = ( char * ) \"mysql\" ;\n tables [ 0 ] . next_local = tables [ 0 ] . next_global = tables + 1 ;\n tables [ 0 ] . lock_type = tables [ 1 ] . lock_type = TL_READ ;\n tables [ 0 ] . skip_temporary = tables [ 1 ] . skip_temporary = TRUE ;\n if ( simple_open_n_lock_tables ( thd , tables ) ) goto end ;\n rw_wrlock ( & LOCK_grant ) ;\n old_column_priv_hash = column_priv_hash ;\n old_mem = memex ;\n init_sql_alloc ( & memex , ACL_ALLOC_BLOCK_SIZE , 0 ) ;\n if ( ( return_val = grant_load ( thd , tables ) ) ) {\n DBUG_PRINT ( \"error\" , ( \"Reverting to old privileges\" ) ) ;\n grant_free ( ) ;\n column_priv_hash = old_column_priv_hash ;\n memex = old_mem ;\n }\n else {\n hash_free ( & old_column_priv_hash ) ;\n free_root ( & old_mem , MYF ( 0 ) ) ;\n }\n rw_unlock ( & LOCK_grant ) ;\n close_thread_tables ( thd ) ;\n if ( grant_reload_procs_priv ( thd ) ) return_val = 1 ;\n rw_wrlock ( & LOCK_grant ) ;\n grant_version ++ ;\n rw_unlock ( & LOCK_grant ) ;\n end : DBUG_RETURN ( return_val ) ;\n }"}
{"idx": 7844, "target": 1, "func": "static int optimize_b ( MACROBLOCK * mb , int plane , int block , TX_SIZE tx_size , int ctx ) {\n MACROBLOCKD * const xd = & mb -> e_mbd ;\n struct macroblock_plane * const p = & mb -> plane [ plane ] ;\n struct macroblockd_plane * const pd = & xd -> plane [ plane ] ;\n const int ref = is_inter_block ( & xd -> mi [ 0 ] -> mbmi ) ;\n vp9_token_state tokens [ 1025 ] [ 2 ] ;\n unsigned best_index [ 1025 ] [ 2 ] ;\n uint8_t token_cache [ 1024 ] ;\n const int16_t * const coeff = BLOCK_OFFSET ( mb -> plane [ plane ] . coeff , block ) ;\n int16_t * const qcoeff = BLOCK_OFFSET ( p -> qcoeff , block ) ;\n int16_t * const dqcoeff = BLOCK_OFFSET ( pd -> dqcoeff , block ) ;\n const int eob = p -> eobs [ block ] ;\n const PLANE_TYPE type = pd -> plane_type ;\n const int default_eob = 16 << ( tx_size << 1 ) ;\n const int mul = 1 + ( tx_size == TX_32X32 ) ;\n const int16_t * dequant_ptr = pd -> dequant ;\n const uint8_t * const band_translate = get_band_translate ( tx_size ) ;\n const scan_order * const so = get_scan ( xd , tx_size , type , block ) ;\n const int16_t * const scan = so -> scan ;\n const int16_t * const nb = so -> neighbors ;\n int next = eob , sz = 0 ;\n int64_t rdmult = mb -> rdmult * plane_rd_mult [ type ] , rddiv = mb -> rddiv ;\n int64_t rd_cost0 , rd_cost1 ;\n int rate0 , rate1 , error0 , error1 , t0 , t1 ;\n int best , band , pt , i , final_eob ;\n assert ( ( ! type && ! plane ) || ( type && plane ) ) ;\n assert ( eob <= default_eob ) ;\n if ( ! ref ) rdmult = ( rdmult * 9 ) >> 4 ;\n tokens [ eob ] [ 0 ] . rate = 0 ;\n tokens [ eob ] [ 0 ] . error = 0 ;\n tokens [ eob ] [ 0 ] . next = default_eob ;\n tokens [ eob ] [ 0 ] . token = EOB_TOKEN ;\n tokens [ eob ] [ 0 ] . qc = 0 ;\n tokens [ eob ] [ 1 ] = tokens [ eob ] [ 0 ] ;\n for ( i = 0 ;\n i < eob ;\n i ++ ) token_cache [ scan [ i ] ] = vp9_pt_energy_class [ vp9_dct_value_tokens_ptr [ qcoeff [ scan [ i ] ] ] . token ] ;\n for ( i = eob ;\n i -- > 0 ;\n ) {\n int base_bits , d2 , dx ;\n const int rc = scan [ i ] ;\n int x = qcoeff [ rc ] ;\n if ( x ) {\n int shortcut = 0 ;\n error0 = tokens [ next ] [ 0 ] . error ;\n error1 = tokens [ next ] [ 1 ] . error ;\n rate0 = tokens [ next ] [ 0 ] . rate ;\n rate1 = tokens [ next ] [ 1 ] . rate ;\n t0 = ( vp9_dct_value_tokens_ptr + x ) -> token ;\n if ( next < default_eob ) {\n band = band_translate [ i + 1 ] ;\n pt = trellis_get_coeff_context ( scan , nb , i , t0 , token_cache ) ;\n rate0 += mb -> token_costs [ tx_size ] [ type ] [ ref ] [ band ] [ 0 ] [ pt ] [ tokens [ next ] [ 0 ] . token ] ;\n rate1 += mb -> token_costs [ tx_size ] [ type ] [ ref ] [ band ] [ 0 ] [ pt ] [ tokens [ next ] [ 1 ] . token ] ;\n }\n UPDATE_RD_COST ( ) ;\n best = rd_cost1 < rd_cost0 ;\n base_bits = vp9_dct_value_cost_ptr [ x ] ;\n dx = mul * ( dqcoeff [ rc ] - coeff [ rc ] ) ;\n d2 = dx * dx ;\n tokens [ i ] [ 0 ] . rate = base_bits + ( best ? rate1 : rate0 ) ;\n tokens [ i ] [ 0 ] . error = d2 + ( best ? error1 : error0 ) ;\n tokens [ i ] [ 0 ] . next = next ;\n tokens [ i ] [ 0 ] . token = t0 ;\n tokens [ i ] [ 0 ] . qc = x ;\n best_index [ i ] [ 0 ] = best ;\n rate0 = tokens [ next ] [ 0 ] . rate ;\n rate1 = tokens [ next ] [ 1 ] . rate ;\n if ( ( abs ( x ) * dequant_ptr [ rc != 0 ] > abs ( coeff [ rc ] ) * mul ) && ( abs ( x ) * dequant_ptr [ rc != 0 ] < abs ( coeff [ rc ] ) * mul + dequant_ptr [ rc != 0 ] ) ) shortcut = 1 ;\n else shortcut = 0 ;\n if ( shortcut ) {\n sz = - ( x < 0 ) ;\n x -= 2 * sz + 1 ;\n }\n if ( ! x ) {\n t0 = tokens [ next ] [ 0 ] . token == EOB_TOKEN ? EOB_TOKEN : ZERO_TOKEN ;\n t1 = tokens [ next ] [ 1 ] . token == EOB_TOKEN ? EOB_TOKEN : ZERO_TOKEN ;\n }\n else {\n t0 = t1 = ( vp9_dct_value_tokens_ptr + x ) -> token ;\n }\n if ( next < default_eob ) {\n band = band_translate [ i + 1 ] ;\n if ( t0 != EOB_TOKEN ) {\n pt = trellis_get_coeff_context ( scan , nb , i , t0 , token_cache ) ;\n rate0 += mb -> token_costs [ tx_size ] [ type ] [ ref ] [ band ] [ ! x ] [ pt ] [ tokens [ next ] [ 0 ] . token ] ;\n }\n if ( t1 != EOB_TOKEN ) {\n pt = trellis_get_coeff_context ( scan , nb , i , t1 , token_cache ) ;\n rate1 += mb -> token_costs [ tx_size ] [ type ] [ ref ] [ band ] [ ! x ] [ pt ] [ tokens [ next ] [ 1 ] . token ] ;\n }\n }\n UPDATE_RD_COST ( ) ;\n best = rd_cost1 < rd_cost0 ;\n base_bits = vp9_dct_value_cost_ptr [ x ] ;\n if ( shortcut ) {\n dx -= ( dequant_ptr [ rc != 0 ] + sz ) ^ sz ;\n d2 = dx * dx ;\n }\n tokens [ i ] [ 1 ] . rate = base_bits + ( best ? rate1 : rate0 ) ;\n tokens [ i ] [ 1 ] . error = d2 + ( best ? error1 : error0 ) ;\n tokens [ i ] [ 1 ] . next = next ;\n tokens [ i ] [ 1 ] . token = best ? t1 : t0 ;\n tokens [ i ] [ 1 ] . qc = x ;\n best_index [ i ] [ 1 ] = best ;\n next = i ;\n }\n else {\n band = band_translate [ i + 1 ] ;\n t0 = tokens [ next ] [ 0 ] . token ;\n t1 = tokens [ next ] [ 1 ] . token ;\n if ( t0 != EOB_TOKEN ) {\n tokens [ next ] [ 0 ] . rate += mb -> token_costs [ tx_size ] [ type ] [ ref ] [ band ] [ 1 ] [ 0 ] [ t0 ] ;\n tokens [ next ] [ 0 ] . token = ZERO_TOKEN ;\n }\n if ( t1 != EOB_TOKEN ) {\n tokens [ next ] [ 1 ] . rate += mb -> token_costs [ tx_size ] [ type ] [ ref ] [ band ] [ 1 ] [ 0 ] [ t1 ] ;\n tokens [ next ] [ 1 ] . token = ZERO_TOKEN ;\n }\n best_index [ i ] [ 0 ] = best_index [ i ] [ 1 ] = 0 ;\n }\n }\n band = band_translate [ i + 1 ] ;\n rate0 = tokens [ next ] [ 0 ] . rate ;\n rate1 = tokens [ next ] [ 1 ] . rate ;\n error0 = tokens [ next ] [ 0 ] . error ;\n error1 = tokens [ next ] [ 1 ] . error ;\n t0 = tokens [ next ] [ 0 ] . token ;\n t1 = tokens [ next ] [ 1 ] . token ;\n rate0 += mb -> token_costs [ tx_size ] [ type ] [ ref ] [ band ] [ 0 ] [ ctx ] [ t0 ] ;\n rate1 += mb -> token_costs [ tx_size ] [ type ] [ ref ] [ band ] [ 0 ] [ ctx ] [ t1 ] ;\n UPDATE_RD_COST ( ) ;\n best = rd_cost1 < rd_cost0 ;\n final_eob = - 1 ;\n vpx_memset ( qcoeff , 0 , sizeof ( * qcoeff ) * ( 16 << ( tx_size * 2 ) ) ) ;\n vpx_memset ( dqcoeff , 0 , sizeof ( * dqcoeff ) * ( 16 << ( tx_size * 2 ) ) ) ;\n for ( i = next ;\n i < eob ;\n i = next ) {\n const int x = tokens [ i ] [ best ] . qc ;\n const int rc = scan [ i ] ;\n if ( x ) {\n final_eob = i ;\n }\n qcoeff [ rc ] = x ;\n dqcoeff [ rc ] = ( x * dequant_ptr [ rc != 0 ] ) / mul ;\n next = tokens [ i ] [ best ] . next ;\n best = best_index [ i ] [ best ] ;\n }\n final_eob ++ ;\n mb -> plane [ plane ] . eobs [ block ] = final_eob ;\n return final_eob ;\n }"}
{"idx": 7845, "target": 0, "func": "static gboolean dissect_usb_ms_bulk_heur ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n const gchar usbc [ ] = {\n 0x55 , 0x53 , 0x42 , 0x43 }\n ;\n const gchar usbs [ ] = {\n 0x55 , 0x53 , 0x42 , 0x53 }\n ;\n if ( tvb_reported_length ( tvb ) < 4 ) return FALSE ;\n if ( tvb_memeql ( tvb , 0 , usbc , sizeof ( usbc ) ) == 0 || tvb_memeql ( tvb , 0 , usbs , sizeof ( usbs ) ) == 0 ) {\n dissect_usb_ms_bulk ( tvb , pinfo , tree , data ) ;\n return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 7846, "target": 0, "func": "struct event_base * event_base_new ( void ) {\n int i ;\n struct event_base * base ;\n if ( ( base = calloc ( 1 , sizeof ( struct event_base ) ) ) == NULL ) event_err ( 1 , \"%s: calloc\" , __func__ ) ;\n event_sigcb = NULL ;\n event_gotsig = 0 ;\n gettime ( base , & base -> event_tv ) ;\n min_heap_ctor ( & base -> timeheap ) ;\n TAILQ_INIT ( & base -> eventqueue ) ;\n base -> sig . ev_signal_pair [ 0 ] = - 1 ;\n base -> sig . ev_signal_pair [ 1 ] = - 1 ;\n base -> evbase = NULL ;\n for ( i = 0 ;\n eventops [ i ] && ! base -> evbase ;\n i ++ ) {\n base -> evsel = eventops [ i ] ;\n base -> evbase = base -> evsel -> init ( base ) ;\n }\n if ( base -> evbase == NULL ) event_errx ( 1 , \"%s: no event mechanism available\" , __func__ ) ;\n if ( evutil_getenv ( \"EVENT_SHOW_METHOD\" ) ) event_msgx ( \"libevent using: %s\\n\" , base -> evsel -> name ) ;\n event_base_priority_init ( base , 1 ) ;\n return ( base ) ;\n }"}
{"idx": 7847, "target": 0, "func": "static void MCFUNC ( hl_motion ) ( H264Context * h , uint8_t * dest_y , uint8_t * dest_cb , uint8_t * dest_cr , qpel_mc_func ( * qpix_put ) [ 16 ] , h264_chroma_mc_func ( * chroma_put ) , qpel_mc_func ( * qpix_avg ) [ 16 ] , h264_chroma_mc_func ( * chroma_avg ) , h264_weight_func * weight_op , h264_biweight_func * weight_avg ) {\n const int mb_xy = h -> mb_xy ;\n const int mb_type = h -> cur_pic . mb_type [ mb_xy ] ;\n assert ( IS_INTER ( mb_type ) ) ;\n if ( HAVE_THREADS && ( h -> avctx -> active_thread_type & FF_THREAD_FRAME ) ) await_references ( h ) ;\n prefetch_motion ( h , 0 , PIXEL_SHIFT , CHROMA_IDC ) ;\n if ( IS_16X16 ( mb_type ) ) {\n mc_part ( h , 0 , 1 , 16 , 0 , dest_y , dest_cb , dest_cr , 0 , 0 , qpix_put [ 0 ] , chroma_put [ 0 ] , qpix_avg [ 0 ] , chroma_avg [ 0 ] , weight_op , weight_avg , IS_DIR ( mb_type , 0 , 0 ) , IS_DIR ( mb_type , 0 , 1 ) ) ;\n }\n else if ( IS_16X8 ( mb_type ) ) {\n mc_part ( h , 0 , 0 , 8 , 8 << PIXEL_SHIFT , dest_y , dest_cb , dest_cr , 0 , 0 , qpix_put [ 1 ] , chroma_put [ 0 ] , qpix_avg [ 1 ] , chroma_avg [ 0 ] , weight_op , weight_avg , IS_DIR ( mb_type , 0 , 0 ) , IS_DIR ( mb_type , 0 , 1 ) ) ;\n mc_part ( h , 8 , 0 , 8 , 8 << PIXEL_SHIFT , dest_y , dest_cb , dest_cr , 0 , 4 , qpix_put [ 1 ] , chroma_put [ 0 ] , qpix_avg [ 1 ] , chroma_avg [ 0 ] , weight_op , weight_avg , IS_DIR ( mb_type , 1 , 0 ) , IS_DIR ( mb_type , 1 , 1 ) ) ;\n }\n else if ( IS_8X16 ( mb_type ) ) {\n mc_part ( h , 0 , 0 , 16 , 8 * h -> mb_linesize , dest_y , dest_cb , dest_cr , 0 , 0 , qpix_put [ 1 ] , chroma_put [ 1 ] , qpix_avg [ 1 ] , chroma_avg [ 1 ] , & weight_op [ 1 ] , & weight_avg [ 1 ] , IS_DIR ( mb_type , 0 , 0 ) , IS_DIR ( mb_type , 0 , 1 ) ) ;\n mc_part ( h , 4 , 0 , 16 , 8 * h -> mb_linesize , dest_y , dest_cb , dest_cr , 4 , 0 , qpix_put [ 1 ] , chroma_put [ 1 ] , qpix_avg [ 1 ] , chroma_avg [ 1 ] , & weight_op [ 1 ] , & weight_avg [ 1 ] , IS_DIR ( mb_type , 1 , 0 ) , IS_DIR ( mb_type , 1 , 1 ) ) ;\n }\n else {\n int i ;\n assert ( IS_8X8 ( mb_type ) ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n const int sub_mb_type = h -> sub_mb_type [ i ] ;\n const int n = 4 * i ;\n int x_offset = ( i & 1 ) << 2 ;\n int y_offset = ( i & 2 ) << 1 ;\n if ( IS_SUB_8X8 ( sub_mb_type ) ) {\n mc_part ( h , n , 1 , 8 , 0 , dest_y , dest_cb , dest_cr , x_offset , y_offset , qpix_put [ 1 ] , chroma_put [ 1 ] , qpix_avg [ 1 ] , chroma_avg [ 1 ] , & weight_op [ 1 ] , & weight_avg [ 1 ] , IS_DIR ( sub_mb_type , 0 , 0 ) , IS_DIR ( sub_mb_type , 0 , 1 ) ) ;\n }\n else if ( IS_SUB_8X4 ( sub_mb_type ) ) {\n mc_part ( h , n , 0 , 4 , 4 << PIXEL_SHIFT , dest_y , dest_cb , dest_cr , x_offset , y_offset , qpix_put [ 2 ] , chroma_put [ 1 ] , qpix_avg [ 2 ] , chroma_avg [ 1 ] , & weight_op [ 1 ] , & weight_avg [ 1 ] , IS_DIR ( sub_mb_type , 0 , 0 ) , IS_DIR ( sub_mb_type , 0 , 1 ) ) ;\n mc_part ( h , n + 2 , 0 , 4 , 4 << PIXEL_SHIFT , dest_y , dest_cb , dest_cr , x_offset , y_offset + 2 , qpix_put [ 2 ] , chroma_put [ 1 ] , qpix_avg [ 2 ] , chroma_avg [ 1 ] , & weight_op [ 1 ] , & weight_avg [ 1 ] , IS_DIR ( sub_mb_type , 0 , 0 ) , IS_DIR ( sub_mb_type , 0 , 1 ) ) ;\n }\n else if ( IS_SUB_4X8 ( sub_mb_type ) ) {\n mc_part ( h , n , 0 , 8 , 4 * h -> mb_linesize , dest_y , dest_cb , dest_cr , x_offset , y_offset , qpix_put [ 2 ] , chroma_put [ 2 ] , qpix_avg [ 2 ] , chroma_avg [ 2 ] , & weight_op [ 2 ] , & weight_avg [ 2 ] , IS_DIR ( sub_mb_type , 0 , 0 ) , IS_DIR ( sub_mb_type , 0 , 1 ) ) ;\n mc_part ( h , n + 1 , 0 , 8 , 4 * h -> mb_linesize , dest_y , dest_cb , dest_cr , x_offset + 2 , y_offset , qpix_put [ 2 ] , chroma_put [ 2 ] , qpix_avg [ 2 ] , chroma_avg [ 2 ] , & weight_op [ 2 ] , & weight_avg [ 2 ] , IS_DIR ( sub_mb_type , 0 , 0 ) , IS_DIR ( sub_mb_type , 0 , 1 ) ) ;\n }\n else {\n int j ;\n assert ( IS_SUB_4X4 ( sub_mb_type ) ) ;\n for ( j = 0 ;\n j < 4 ;\n j ++ ) {\n int sub_x_offset = x_offset + 2 * ( j & 1 ) ;\n int sub_y_offset = y_offset + ( j & 2 ) ;\n mc_part ( h , n + j , 1 , 4 , 0 , dest_y , dest_cb , dest_cr , sub_x_offset , sub_y_offset , qpix_put [ 2 ] , chroma_put [ 2 ] , qpix_avg [ 2 ] , chroma_avg [ 2 ] , & weight_op [ 2 ] , & weight_avg [ 2 ] , IS_DIR ( sub_mb_type , 0 , 0 ) , IS_DIR ( sub_mb_type , 0 , 1 ) ) ;\n }\n }\n }\n }\n prefetch_motion ( h , 1 , PIXEL_SHIFT , CHROMA_IDC ) ;\n }"}
{"idx": 7848, "target": 0, "func": "int proto_get_id ( const protocol_t * protocol ) {\n return protocol -> proto_id ;\n }"}
{"idx": 7849, "target": 0, "func": "static void dissect_rsvp_call_id ( proto_tree * ti , packet_info * pinfo , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int c_type ) {\n int type = 0 ;\n const char * str ;\n int offset2 = offset + 4 ;\n int offset3 , offset4 , len ;\n proto_tree * ti2 = NULL ;\n proto_item_set_text ( ti , \"CALL-ID: \" ) ;\n switch ( c_type ) {\n case 0 : proto_item_append_text ( ti , \"Empty\" ) ;\n proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , c_type , \"Empty (%u)\" , c_type ) ;\n if ( obj_length > 4 ) proto_tree_add_item ( rsvp_object_tree , hf_rsvp_call_id_data , tvb , offset2 , obj_length - 4 , ENC_NA ) ;\n break ;\n case 1 : case 2 : type = tvb_get_guint8 ( tvb , offset2 ) ;\n if ( c_type == 1 ) {\n offset3 = offset2 + 4 ;\n len = obj_length - 16 ;\n proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , c_type , \"1 (operator specific)\" ) ;\n ti2 = proto_tree_add_item ( rsvp_object_tree , hf_rsvp_call_id_address_type , tvb , offset2 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_call_id_reserved , tvb , offset2 + 1 , 3 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \"Operator-Specific. Addr Type: %s. \" , val_to_str ( type , address_type_vals , \"Unknown (%u)\" ) ) ;\n }\n else {\n offset3 = offset2 + 16 ;\n len = obj_length - 28 ;\n proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , c_type , \"2 (globally unique)\" ) ;\n ti2 = proto_tree_add_item ( rsvp_object_tree , hf_rsvp_call_id_address_type , tvb , offset2 , 1 , ENC_BIG_ENDIAN ) ;\n str = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset2 + 1 , 3 , ENC_ASCII ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_call_id_international_segment , tvb , offset2 + 1 , 3 , ENC_NA | ENC_ASCII ) ;\n proto_item_append_text ( ti , \"Globally-Unique. Addr Type: %s. Intl Segment: %s. \" , val_to_str ( type , address_type_vals , \"Unknown (%u)\" ) , str ) ;\n str = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset2 + 4 , 12 , ENC_ASCII ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_call_id_national_segment , tvb , offset2 + 4 , 12 , ENC_NA | ENC_ASCII ) ;\n proto_item_append_text ( ti , \"Natl Segment: %s. \" , str ) ;\n }\n switch ( type ) {\n case 1 : offset4 = offset3 + 4 ;\n str = tvb_ip_to_str ( tvb , offset3 ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_filter [ RSVPF_CALL_ID_SRC_ADDR_IPV4 ] , tvb , offset3 , 4 , ENC_BIG_ENDIAN ) ;\n break ;\n case 2 : offset4 = offset3 + 16 ;\n str = tvb_ip6_to_str ( tvb , offset3 ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_filter [ RSVPF_CALL_ID_SRC_ADDR_IPV6 ] , tvb , offset3 , 16 , ENC_NA ) ;\n break ;\n case 3 : offset4 = offset3 + 20 ;\n str = print_nsap_net ( tvb , offset3 , 20 ) ;\n proto_tree_add_string ( rsvp_object_tree , hf_rsvp_source_transport_network_addr , tvb , offset3 , 20 , str ) ;\n break ;\n case 4 : offset4 = offset3 + 6 ;\n str = tvb_ether_to_str ( tvb , offset3 ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_callid_srcaddr_ether , tvb , offset3 , 6 , ENC_NA ) ;\n break ;\n case 0x7F : offset4 = offset3 + len ;\n str = tvb_bytes_to_str ( wmem_packet_scope ( ) , tvb , offset3 , len ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_callid_srcaddr_bytes , tvb , offset3 , len , ENC_NA ) ;\n break ;\n default : offset4 = offset3 + len ;\n str = \"???\" ;\n expert_add_info ( pinfo , ti2 , & ei_rsvp_call_id_address_type ) ;\n break ;\n }\n proto_item_append_text ( ti , \"Src: %s. \" , str ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_call_id_local_identifier , tvb , offset4 , 8 , ENC_NA ) ;\n proto_item_append_text ( ti , \"Local ID: %s. \" , tvb_bytes_to_str ( wmem_packet_scope ( ) , tvb , offset4 , 8 ) ) ;\n break ;\n default : proto_item_append_text ( ti , \" Unknown\" ) ;\n proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , c_type , \"Unknown (%u)\" , c_type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_call_id_data , tvb , offset2 , obj_length - 4 , ENC_NA ) ;\n break ;\n }\n }"}
{"idx": 7850, "target": 1, "func": "void aes_crypt_ecb ( aes_context * ctx , int mode , const unsigned char input [ 16 ] , unsigned char output [ 16 ] ) {\n int i ;\n unsigned long * RK , X0 , X1 , X2 , X3 , Y0 , Y1 , Y2 , Y3 ;\n # if defined ( XYSSL_PADLOCK_C ) && defined ( XYSSL_HAVE_X86 ) if ( padlock_supports ( PADLOCK_ACE ) ) {\n if ( padlock_xcryptecb ( ctx , mode , input , output ) == 0 ) return ;\n }\n # endif RK = ctx -> rk ;\n GET_ULONG_LE ( X0 , input , 0 ) ;\n X0 ^= * RK ++ ;\n GET_ULONG_LE ( X1 , input , 4 ) ;\n X1 ^= * RK ++ ;\n GET_ULONG_LE ( X2 , input , 8 ) ;\n X2 ^= * RK ++ ;\n GET_ULONG_LE ( X3 , input , 12 ) ;\n X3 ^= * RK ++ ;\n if ( mode == AES_DECRYPT ) {\n for ( i = ( ctx -> nr >> 1 ) - 1 ;\n i > 0 ;\n i -- ) {\n AES_RROUND ( Y0 , Y1 , Y2 , Y3 , X0 , X1 , X2 , X3 ) ;\n AES_RROUND ( X0 , X1 , X2 , X3 , Y0 , Y1 , Y2 , Y3 ) ;\n }\n AES_RROUND ( Y0 , Y1 , Y2 , Y3 , X0 , X1 , X2 , X3 ) ;\n X0 = * RK ++ ^ ( RSb [ ( Y0 ) & 0xFF ] ) ^ ( RSb [ ( Y3 >> 8 ) & 0xFF ] << 8 ) ^ ( RSb [ ( Y2 >> 16 ) & 0xFF ] << 16 ) ^ ( ( ( unsigned int ) RSb [ ( Y1 >> 24 ) & 0xFF ] ) << 24 ) ;\n X1 = * RK ++ ^ ( RSb [ ( Y1 ) & 0xFF ] ) ^ ( RSb [ ( Y0 >> 8 ) & 0xFF ] << 8 ) ^ ( RSb [ ( Y3 >> 16 ) & 0xFF ] << 16 ) ^ ( ( ( unsigned int ) RSb [ ( Y2 >> 24 ) & 0xFF ] ) << 24 ) ;\n X2 = * RK ++ ^ ( RSb [ ( Y2 ) & 0xFF ] ) ^ ( RSb [ ( Y1 >> 8 ) & 0xFF ] << 8 ) ^ ( RSb [ ( Y0 >> 16 ) & 0xFF ] << 16 ) ^ ( ( ( unsigned int ) RSb [ ( Y3 >> 24 ) & 0xFF ] ) << 24 ) ;\n X3 = * RK ++ ^ ( RSb [ ( Y3 ) & 0xFF ] ) ^ ( RSb [ ( Y2 >> 8 ) & 0xFF ] << 8 ) ^ ( RSb [ ( Y1 >> 16 ) & 0xFF ] << 16 ) ^ ( ( ( unsigned int ) RSb [ ( Y0 >> 24 ) & 0xFF ] ) << 24 ) ;\n }\n else {\n for ( i = ( ctx -> nr >> 1 ) - 1 ;\n i > 0 ;\n i -- ) {\n AES_FROUND ( Y0 , Y1 , Y2 , Y3 , X0 , X1 , X2 , X3 ) ;\n AES_FROUND ( X0 , X1 , X2 , X3 , Y0 , Y1 , Y2 , Y3 ) ;\n }\n AES_FROUND ( Y0 , Y1 , Y2 , Y3 , X0 , X1 , X2 , X3 ) ;\n X0 = * RK ++ ^ ( FSb [ ( Y0 ) & 0xFF ] ) ^ ( FSb [ ( Y1 >> 8 ) & 0xFF ] << 8 ) ^ ( FSb [ ( Y2 >> 16 ) & 0xFF ] << 16 ) ^ ( ( ( unsigned int ) FSb [ ( Y3 >> 24 ) & 0xFF ] ) << 24 ) ;\n X1 = * RK ++ ^ ( FSb [ ( Y1 ) & 0xFF ] ) ^ ( FSb [ ( Y2 >> 8 ) & 0xFF ] << 8 ) ^ ( FSb [ ( Y3 >> 16 ) & 0xFF ] << 16 ) ^ ( ( ( unsigned int ) FSb [ ( Y0 >> 24 ) & 0xFF ] ) << 24 ) ;\n X2 = * RK ++ ^ ( FSb [ ( Y2 ) & 0xFF ] ) ^ ( FSb [ ( Y3 >> 8 ) & 0xFF ] << 8 ) ^ ( FSb [ ( Y0 >> 16 ) & 0xFF ] << 16 ) ^ ( ( ( unsigned int ) FSb [ ( Y1 >> 24 ) & 0xFF ] ) << 24 ) ;\n X3 = * RK ++ ^ ( FSb [ ( Y3 ) & 0xFF ] ) ^ ( FSb [ ( Y0 >> 8 ) & 0xFF ] << 8 ) ^ ( FSb [ ( Y1 >> 16 ) & 0xFF ] << 16 ) ^ ( ( ( unsigned int ) FSb [ ( Y2 >> 24 ) & 0xFF ] ) << 24 ) ;\n }\n PUT_ULONG_LE ( X0 , output , 0 ) ;\n PUT_ULONG_LE ( X1 , output , 4 ) ;\n PUT_ULONG_LE ( X2 , output , 8 ) ;\n PUT_ULONG_LE ( X3 , output , 12 ) ;\n }"}
{"idx": 7851, "target": 0, "func": "static int cin_decode_huffman ( const unsigned char * src , int src_size , unsigned char * dst , int dst_size ) {\n int b , huff_code = 0 ;\n unsigned char huff_code_table [ 15 ] ;\n unsigned char * dst_cur = dst ;\n unsigned char * dst_end = dst + dst_size ;\n const unsigned char * src_end = src + src_size ;\n memcpy ( huff_code_table , src , 15 ) ;\n src += 15 ;\n while ( src < src_end ) {\n huff_code = * src ++ ;\n if ( ( huff_code >> 4 ) == 15 ) {\n b = huff_code << 4 ;\n huff_code = * src ++ ;\n * dst_cur ++ = b | ( huff_code >> 4 ) ;\n }\n else * dst_cur ++ = huff_code_table [ huff_code >> 4 ] ;\n if ( dst_cur >= dst_end ) break ;\n huff_code &= 15 ;\n if ( huff_code == 15 ) {\n * dst_cur ++ = * src ++ ;\n }\n else * dst_cur ++ = huff_code_table [ huff_code ] ;\n if ( dst_cur >= dst_end ) break ;\n }\n return dst_cur - dst ;\n }"}
{"idx": 7852, "target": 1, "func": "static int ipvideo_decode_block_opcode_0x6_16 ( IpvideoContext * s ) {\n signed char x , y ;\n x = bytestream2_get_byte ( & s -> stream_ptr ) ;\n y = bytestream2_get_byte ( & s -> stream_ptr ) ;\n av_dlog ( NULL , \" motion bytes = %d, %d\\n\" , x , y ) ;\n return copy_from ( s , & s -> second_last_frame , x , y ) ;\n }"}
{"idx": 7853, "target": 0, "func": "static void set_default_kf_interval ( struct stream_state * stream , struct VpxEncoderConfig * global ) {\n if ( ! stream -> config . have_kf_max_dist ) {\n double framerate = ( double ) global -> framerate . num / global -> framerate . den ;\n if ( framerate > 0.0 ) stream -> config . cfg . kf_max_dist = ( unsigned int ) ( 5.0 * framerate ) ;\n }\n }"}
{"idx": 7854, "target": 1, "func": "static void fill_slice_long ( AVCodecContext * avctx , DXVA_Slice_H264_Long * slice , unsigned position , unsigned size ) {\n const H264Context * h = avctx -> priv_data ;\n struct dxva_context * ctx = avctx -> hwaccel_context ;\n unsigned list ;\n memset ( slice , 0 , sizeof ( * slice ) ) ;\n slice -> BSNALunitDataLocation = position ;\n slice -> SliceBytesInBuffer = size ;\n slice -> wBadSliceChopping = 0 ;\n slice -> first_mb_in_slice = ( h -> mb_y >> FIELD_OR_MBAFF_PICTURE ) * h -> mb_width + h -> mb_x ;\n slice -> NumMbsForSlice = 0 ;\n slice -> BitOffsetToSliceData = get_bits_count ( & h -> gb ) ;\n slice -> slice_type = ff_h264_get_slice_type ( h ) ;\n if ( h -> slice_type_fixed ) slice -> slice_type += 5 ;\n slice -> luma_log2_weight_denom = h -> luma_log2_weight_denom ;\n slice -> chroma_log2_weight_denom = h -> chroma_log2_weight_denom ;\n if ( h -> list_count > 0 ) slice -> num_ref_idx_l0_active_minus1 = h -> ref_count [ 0 ] - 1 ;\n if ( h -> list_count > 1 ) slice -> num_ref_idx_l1_active_minus1 = h -> ref_count [ 1 ] - 1 ;\n slice -> slice_alpha_c0_offset_div2 = h -> slice_alpha_c0_offset / 2 - 26 ;\n slice -> slice_beta_offset_div2 = h -> slice_beta_offset / 2 - 26 ;\n slice -> Reserved8Bits = 0 ;\n for ( list = 0 ;\n list < 2 ;\n list ++ ) {\n unsigned i ;\n for ( i = 0 ;\n i < FF_ARRAY_ELEMS ( slice -> RefPicList [ list ] ) ;\n i ++ ) {\n if ( list < h -> list_count && i < h -> ref_count [ list ] ) {\n const Picture * r = & h -> ref_list [ list ] [ i ] ;\n unsigned plane ;\n fill_picture_entry ( & slice -> RefPicList [ list ] [ i ] , ff_dxva2_get_surface_index ( ctx , r ) , r -> f . reference == PICT_BOTTOM_FIELD ) ;\n for ( plane = 0 ;\n plane < 3 ;\n plane ++ ) {\n int w , o ;\n if ( plane == 0 && h -> luma_weight_flag [ list ] ) {\n w = h -> luma_weight [ i ] [ list ] [ 0 ] ;\n o = h -> luma_weight [ i ] [ list ] [ 1 ] ;\n }\n else if ( plane >= 1 && h -> chroma_weight_flag [ list ] ) {\n w = h -> chroma_weight [ i ] [ list ] [ plane - 1 ] [ 0 ] ;\n o = h -> chroma_weight [ i ] [ list ] [ plane - 1 ] [ 1 ] ;\n }\n else {\n w = 1 << ( plane == 0 ? h -> luma_log2_weight_denom : h -> chroma_log2_weight_denom ) ;\n o = 0 ;\n }\n slice -> Weights [ list ] [ i ] [ plane ] [ 0 ] = w ;\n slice -> Weights [ list ] [ i ] [ plane ] [ 1 ] = o ;\n }\n }\n else {\n unsigned plane ;\n slice -> RefPicList [ list ] [ i ] . bPicEntry = 0xff ;\n for ( plane = 0 ;\n plane < 3 ;\n plane ++ ) {\n slice -> Weights [ list ] [ i ] [ plane ] [ 0 ] = 0 ;\n slice -> Weights [ list ] [ i ] [ plane ] [ 1 ] = 0 ;\n }\n }\n }\n }\n slice -> slice_qs_delta = 0 ;\n slice -> slice_qp_delta = h -> qscale - h -> pps . init_qp ;\n slice -> redundant_pic_cnt = h -> redundant_pic_count ;\n if ( h -> slice_type == AV_PICTURE_TYPE_B ) slice -> direct_spatial_mv_pred_flag = h -> direct_spatial_mv_pred ;\n slice -> cabac_init_idc = h -> pps . cabac ? h -> cabac_init_idc : 0 ;\n if ( h -> deblocking_filter < 2 ) slice -> disable_deblocking_filter_idc = 1 - h -> deblocking_filter ;\n else slice -> disable_deblocking_filter_idc = h -> deblocking_filter ;\n slice -> slice_id = h -> current_slice - 1 ;\n }"}
{"idx": 7855, "target": 0, "func": "void jbig2_free_segment ( Jbig2Ctx * ctx , Jbig2Segment * segment ) {\n if ( segment -> referred_to_segments != NULL ) {\n jbig2_free ( ctx -> allocator , segment -> referred_to_segments ) ;\n }\n switch ( segment -> flags & 63 ) {\n case 0 : if ( segment -> result != NULL ) jbig2_sd_release ( ctx , ( Jbig2SymbolDict * ) segment -> result ) ;\n break ;\n case 4 : case 40 : if ( segment -> result != NULL ) jbig2_image_release ( ctx , ( Jbig2Image * ) segment -> result ) ;\n break ;\n case 16 : if ( segment -> result != NULL ) jbig2_hd_release ( ctx , ( Jbig2PatternDict * ) segment -> result ) ;\n break ;\n case 53 : if ( segment -> result != NULL ) jbig2_table_free ( ctx , ( Jbig2HuffmanParams * ) segment -> result ) ;\n break ;\n case 62 : if ( segment -> result != NULL ) jbig2_metadata_free ( ctx , ( Jbig2Metadata * ) segment -> result ) ;\n break ;\n default : break ;\n }\n jbig2_free ( ctx -> allocator , segment ) ;\n }"}
{"idx": 7856, "target": 1, "func": "static Gif_Stream * read_gif ( Gif_Reader * grr , int read_flags , const char * landmark , Gif_ReadErrorHandler handler ) {\n Gif_Stream * gfs ;\n Gif_Image * gfi ;\n Gif_Context gfc ;\n int unknown_block_type = 0 ;\n if ( gifgetc ( grr ) != 'G' || gifgetc ( grr ) != 'I' || gifgetc ( grr ) != 'F' ) return 0 ;\n ( void ) gifgetc ( grr ) ;\n ( void ) gifgetc ( grr ) ;\n ( void ) gifgetc ( grr ) ;\n gfs = Gif_NewStream ( ) ;\n gfi = Gif_NewImage ( ) ;\n gfc . stream = gfs ;\n gfc . prefix = Gif_NewArray ( Gif_Code , GIF_MAX_CODE ) ;\n gfc . suffix = Gif_NewArray ( uint8_t , GIF_MAX_CODE ) ;\n gfc . length = Gif_NewArray ( uint16_t , GIF_MAX_CODE ) ;\n gfc . handler = handler ;\n gfc . gfi = gfi ;\n gfc . errors [ 0 ] = gfc . errors [ 1 ] = 0 ;\n if ( ! gfs || ! gfi || ! gfc . prefix || ! gfc . suffix || ! gfc . length ) goto done ;\n gfs -> landmark = landmark ;\n GIF_DEBUG ( ( \"\\nGIF \" ) ) ;\n if ( ! read_logical_screen_descriptor ( gfs , grr ) ) goto done ;\n GIF_DEBUG ( ( \"logscrdesc \" ) ) ;\n while ( ! gifeof ( grr ) ) {\n uint8_t block = gifgetbyte ( grr ) ;\n switch ( block ) {\n case ',' : GIF_DEBUG ( ( \"imageread %d \" , gfs -> nimages ) ) ;\n gfi -> identifier = last_name ;\n last_name = 0 ;\n if ( ! Gif_AddImage ( gfs , gfi ) ) goto done ;\n else if ( ! read_image ( grr , & gfc , gfi , read_flags ) ) {\n Gif_RemoveImage ( gfs , gfs -> nimages - 1 ) ;\n goto done ;\n }\n gfc . gfi = gfi = Gif_NewImage ( ) ;\n if ( ! gfi ) goto done ;\n break ;\n case ';\n' : GIF_DEBUG ( ( \"term\\n\" ) ) ;\n goto done ;\n case '!' : block = gifgetbyte ( grr ) ;\n GIF_DEBUG ( ( \"ext(0x%02X) \" , block ) ) ;\n switch ( block ) {\n case 0xF9 : read_graphic_control_extension ( & gfc , gfi , grr ) ;\n break ;\n case 0xCE : last_name = suck_data ( last_name , 0 , grr ) ;\n break ;\n case 0xFE : if ( ! read_comment_extension ( gfi , grr ) ) goto done ;\n break ;\n case 0xFF : read_application_extension ( & gfc , grr ) ;\n break ;\n default : read_unknown_extension ( & gfc , grr , block , 0 , 0 ) ;\n break ;\n }\n break ;\n default : if ( ! unknown_block_type ) {\n char buf [ 256 ] ;\n sprintf ( buf , \"unknown block type %d at file offset %u\" , block , grr -> pos - 1 ) ;\n gif_read_error ( & gfc , 1 , buf ) ;\n unknown_block_type = 1 ;\n }\n break ;\n }\n }\n done : if ( gfs && gfi ) {\n Gif_Extension * gfex ;\n gfs -> end_comment = gfi -> comment ;\n gfi -> comment = 0 ;\n gfs -> end_extension_list = gfi -> extension_list ;\n gfi -> extension_list = 0 ;\n for ( gfex = gfs -> end_extension_list ;\n gfex ;\n gfex = gfex -> next ) gfex -> image = NULL ;\n }\n Gif_DeleteImage ( gfi ) ;\n Gif_DeleteArray ( last_name ) ;\n Gif_DeleteArray ( gfc . prefix ) ;\n Gif_DeleteArray ( gfc . suffix ) ;\n Gif_DeleteArray ( gfc . length ) ;\n gfc . gfi = 0 ;\n if ( gfs ) gfs -> errors = gfc . errors [ 1 ] ;\n if ( gfs && gfc . errors [ 1 ] == 0 && ! ( read_flags & GIF_READ_TRAILING_GARBAGE_OK ) && ! grr -> eofer ( grr ) ) gif_read_error ( & gfc , 0 , \"trailing garbage after GIF ignored\" ) ;\n gif_read_error ( & gfc , - 1 , 0 ) ;\n return gfs ;\n }"}
{"idx": 7857, "target": 0, "func": "static afs_int32 Delete ( struct rx_call * call , afs_int32 aid , afs_int32 * cid ) {\n afs_int32 code ;\n struct ubik_trans * tt ;\n struct prentry tentry ;\n afs_int32 loc , nptr ;\n int count ;\n code = Initdb ( ) ;\n if ( code ) return code ;\n if ( code != PRSUCCESS ) return code ;\n if ( aid == SYSADMINID || aid == ANYUSERID || aid == AUTHUSERID || aid == ANONYMOUSID ) return PRPERM ;\n code = ubik_BeginTrans ( dbase , UBIK_WRITETRANS , & tt ) ;\n if ( code ) return code ;\n code = ubik_SetLock ( tt , 1 , 1 , LOCKWRITE ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = read_DbHeader ( tt ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = WhoIsThis ( call , tt , cid ) ;\n if ( code ) ABORT_WITH ( tt , PRPERM ) ;\n loc = FindByID ( tt , aid ) ;\n if ( loc == 0 ) ABORT_WITH ( tt , PRNOENT ) ;\n code = pr_ReadEntry ( tt , 0 , loc , & tentry ) ;\n if ( code ) ABORT_WITH ( tt , PRDBFAIL ) ;\n if ( tentry . owner != * cid && ! IsAMemberOf ( tt , * cid , SYSADMINID ) && ! IsAMemberOf ( tt , * cid , tentry . owner ) && ! pr_noAuth ) ABORT_WITH ( tt , PRPERM ) ;\n nptr = tentry . next ;\n while ( nptr != 0 ) {\n struct contentry centry ;\n int i ;\n code = pr_ReadCoEntry ( tt , 0 , nptr , & centry ) ;\n if ( code != 0 ) ABORT_WITH ( tt , PRDBFAIL ) ;\n for ( i = 0 ;\n i < COSIZE ;\n i ++ ) {\n if ( centry . entries [ i ] == PRBADID ) continue ;\n if ( centry . entries [ i ] == 0 ) break ;\n # if defined ( SUPERGROUPS ) if ( aid < 0 && centry . entries [ i ] < 0 ) code = RemoveFromSGEntry ( tt , aid , centry . entries [ i ] ) ;\n else # endif code = RemoveFromEntry ( tt , aid , centry . entries [ i ] ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n tentry . count -- ;\n # ifndef AFS_PTHREAD_ENV if ( ( i & 3 ) == 0 ) IOMGR_Poll ( ) ;\n # endif }\n tentry . next = centry . next ;\n code = FreeBlock ( tt , nptr ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = pr_WriteEntry ( tt , 0 , loc , & tentry ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = ubik_EndTrans ( tt ) ;\n if ( code ) return code ;\n # ifndef AFS_PTHREAD_ENV IOMGR_Poll ( ) ;\n # endif code = ubik_BeginTrans ( dbase , UBIK_WRITETRANS , & tt ) ;\n if ( code ) return code ;\n code = ubik_SetLock ( tt , 1 , 1 , LOCKWRITE ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n loc = FindByID ( tt , aid ) ;\n if ( loc == 0 ) ABORT_WITH ( tt , PRNOENT ) ;\n code = pr_ReadEntry ( tt , 0 , loc , & tentry ) ;\n if ( code ) ABORT_WITH ( tt , PRDBFAIL ) ;\n nptr = tentry . next ;\n }\n # if defined ( SUPERGROUPS ) {\n struct prentryg * tentryg = ( struct prentryg * ) & tentry ;\n nptr = tentryg -> nextsg ;\n while ( nptr != 0 ) {\n struct contentry centry ;\n int i ;\n code = pr_ReadCoEntry ( tt , 0 , nptr , & centry ) ;\n if ( code != 0 ) ABORT_WITH ( tt , PRDBFAIL ) ;\n for ( i = 0 ;\n i < COSIZE ;\n i ++ ) {\n if ( centry . entries [ i ] == PRBADID ) continue ;\n if ( centry . entries [ i ] == 0 ) break ;\n code = RemoveFromEntry ( tt , aid , centry . entries [ i ] ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n tentryg -> countsg -- ;\n # ifndef AFS_PTHREAD_ENV if ( ( i & 3 ) == 0 ) IOMGR_Poll ( ) ;\n # endif }\n tentryg -> nextsg = centry . next ;\n code = FreeBlock ( tt , nptr ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = pr_WriteEntry ( tt , 0 , loc , & tentry ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = ubik_EndTrans ( tt ) ;\n if ( code ) return code ;\n # ifndef AFS_PTHREAD_ENV IOMGR_Poll ( ) ;\n # endif code = ubik_BeginTrans ( dbase , UBIK_WRITETRANS , & tt ) ;\n if ( code ) return code ;\n code = ubik_SetLock ( tt , 1 , 1 , LOCKWRITE ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n loc = FindByID ( tt , aid ) ;\n if ( loc == 0 ) ABORT_WITH ( tt , PRNOENT ) ;\n code = pr_ReadEntry ( tt , 0 , loc , & tentry ) ;\n if ( code ) ABORT_WITH ( tt , PRDBFAIL ) ;\n nptr = tentryg -> nextsg ;\n }\n }\n # endif count = 0 ;\n nptr = tentry . owned ;\n while ( nptr != 0 ) {\n struct prentry nentry ;\n code = pr_ReadEntry ( tt , 0 , nptr , & nentry ) ;\n if ( code ) ABORT_WITH ( tt , PRDBFAIL ) ;\n nptr = tentry . owned = nentry . nextOwned ;\n if ( nentry . id != tentry . id ) {\n code = AddToOrphan ( tt , nentry . id ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n count ++ ;\n # ifndef AFS_PTHREAD_ENV if ( ( count & 3 ) == 0 ) IOMGR_Poll ( ) ;\n # endif }\n if ( count < 50 ) continue ;\n code = pr_WriteEntry ( tt , 0 , loc , & tentry ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = ubik_EndTrans ( tt ) ;\n if ( code ) return code ;\n # ifndef AFS_PTHREAD_ENV IOMGR_Poll ( ) ;\n # endif code = ubik_BeginTrans ( dbase , UBIK_WRITETRANS , & tt ) ;\n if ( code ) return code ;\n code = ubik_SetLock ( tt , 1 , 1 , LOCKWRITE ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n loc = FindByID ( tt , aid ) ;\n if ( loc == 0 ) ABORT_WITH ( tt , PRNOENT ) ;\n code = pr_ReadEntry ( tt , 0 , loc , & tentry ) ;\n if ( code ) ABORT_WITH ( tt , PRDBFAIL ) ;\n nptr = tentry . owned ;\n }\n code = DeleteEntry ( tt , & tentry , loc ) ;\n if ( code != PRSUCCESS ) ABORT_WITH ( tt , code ) ;\n code = ubik_EndTrans ( tt ) ;\n if ( code ) return code ;\n return PRSUCCESS ;\n }"}
{"idx": 7858, "target": 1, "func": "static void handle_raw_ping ( struct query * q , int dns_fd , int userid ) {\n if ( check_user_and_ip ( userid , q ) != 0 ) {\n return ;\n }\n users [ userid ] . last_pkt = time ( NULL ) ;\n memcpy ( & ( users [ userid ] . q ) , q , sizeof ( struct query ) ) ;\n if ( debug >= 1 ) {\n fprintf ( stderr , \"IN ping raw, from user %d\\n\" , userid ) ;\n }\n send_raw ( dns_fd , NULL , 0 , userid , RAW_HDR_CMD_PING , q ) ;\n }"}
{"idx": 7859, "target": 0, "func": "proto_item * proto_tree_add_time_format ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , nstime_t * value_ptr , const char * format , ... ) {\n proto_item * pi ;\n va_list ap ;\n pi = proto_tree_add_time ( tree , hfindex , tvb , start , length , value_ptr ) ;\n if ( pi != tree ) {\n TRY_TO_FAKE_THIS_REPR ( pi ) ;\n va_start ( ap , format ) ;\n proto_tree_set_representation ( pi , format , ap ) ;\n va_end ( ap ) ;\n }\n return pi ;\n }"}
{"idx": 7860, "target": 0, "func": "static int dissect_btgatt_microbit_microbit_requirements ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , void * data ) {\n btatt_data_t * att_data = ( btatt_data_t * ) data ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) return - 1 ;\n proto_tree_add_item ( tree , hf_gatt_microbit_microbit_requirements , tvb , 0 , tvb_captured_length ( tvb ) , ENC_NA ) ;\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 7861, "target": 0, "func": "xsltDocumentPtr xsltLoadStyleDocument ( xsltStylesheetPtr style , const xmlChar * URI ) {\n xsltDocumentPtr ret ;\n xmlDocPtr doc ;\n xsltSecurityPrefsPtr sec ;\n if ( ( style == NULL ) || ( URI == NULL ) ) return ( NULL ) ;\n sec = xsltGetDefaultSecurityPrefs ( ) ;\n if ( sec != NULL ) {\n int res ;\n res = xsltCheckRead ( sec , NULL , URI ) ;\n if ( res == 0 ) {\n xsltTransformError ( NULL , NULL , NULL , \"xsltLoadStyleDocument: read rights for %s denied\\n\" , URI ) ;\n return ( NULL ) ;\n }\n }\n ret = style -> docList ;\n while ( ret != NULL ) {\n if ( ( ret -> doc != NULL ) && ( ret -> doc -> URL != NULL ) && ( xmlStrEqual ( ret -> doc -> URL , URI ) ) ) return ( ret ) ;\n ret = ret -> next ;\n }\n doc = xsltDocDefaultLoader ( URI , style -> dict , XSLT_PARSE_OPTIONS , ( void * ) style , XSLT_LOAD_STYLESHEET ) ;\n if ( doc == NULL ) return ( NULL ) ;\n ret = xsltNewStyleDocument ( style , doc ) ;\n return ( ret ) ;\n }"}
{"idx": 7862, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , DisallowRegisteringExternallyHandledProtocols ) {\n delegate ( ) -> RegisterExternalHandler ( \"test\" ) ;\n ASSERT_FALSE ( registry ( ) -> CanSchemeBeOverridden ( \"test\" ) ) ;\n }"}
{"idx": 7863, "target": 0, "func": "static int h261_decode_mb_skipped ( H261Context * h , int mba1 , int mba2 ) {\n MpegEncContext * const s = & h -> s ;\n int i ;\n s -> mb_intra = 0 ;\n for ( i = mba1 ;\n i < mba2 ;\n i ++ ) {\n int j , xy ;\n s -> mb_x = ( ( h -> gob_number - 1 ) % 2 ) * 11 + i % 11 ;\n s -> mb_y = ( ( h -> gob_number - 1 ) / 2 ) * 3 + i / 11 ;\n xy = s -> mb_x + s -> mb_y * s -> mb_stride ;\n ff_init_block_index ( s ) ;\n ff_update_block_index ( s ) ;\n for ( j = 0 ;\n j < 6 ;\n j ++ ) s -> block_last_index [ j ] = - 1 ;\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n s -> current_picture . mb_type [ xy ] = MB_TYPE_SKIP | MB_TYPE_16x16 | MB_TYPE_L0 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = 0 ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = 0 ;\n s -> mb_skipped = 1 ;\n h -> mtype &= ~ MB_TYPE_H261_FIL ;\n ff_MPV_decode_mb ( s , s -> block ) ;\n }\n return 0 ;\n }"}
{"idx": 7864, "target": 0, "func": "TSReturnCode compare_field_values ( RegressionTest * test , TSMBuffer bufp1 , TSMLoc hdr_loc1 , TSMLoc field_loc1 , TSMBuffer bufp2 , TSMLoc hdr_loc2 , TSMLoc field_loc2 ) {\n int no_of_values1 ;\n int no_of_values2 ;\n int i ;\n const char * str1 = nullptr ;\n const char * str2 = nullptr ;\n int length1 = 0 ;\n int length2 = 0 ;\n no_of_values1 = TSMimeHdrFieldValuesCount ( bufp1 , hdr_loc1 , field_loc1 ) ;\n no_of_values2 = TSMimeHdrFieldValuesCount ( bufp2 , hdr_loc2 , field_loc2 ) ;\n if ( no_of_values1 != no_of_values2 ) {\n SDK_RPRINT ( test , \"compare_field_values\" , \"TestCase\" , TC_FAIL , \"Field Values not equal\" ) ;\n return TS_ERROR ;\n }\n for ( i = 0 ;\n i < no_of_values1 ;\n i ++ ) {\n str1 = TSMimeHdrFieldValueStringGet ( bufp1 , hdr_loc1 , field_loc1 , i , & length1 ) ;\n str2 = TSMimeHdrFieldValueStringGet ( bufp2 , hdr_loc2 , field_loc2 , i , & length2 ) ;\n if ( ! ( ( length1 == length2 ) && ( strncmp ( str1 , str2 , length1 ) == 0 ) ) ) {\n SDK_RPRINT ( test , \"compare_field_values\" , \"TestCase\" , TC_FAIL , \"Field Value %d differ from each other\" , i ) ;\n return TS_ERROR ;\n }\n }\n return TS_SUCCESS ;\n }"}
{"idx": 7865, "target": 0, "func": "void vp9_update_reference ( VP9_COMP * cpi , int ref_frame_flags ) {\n cpi -> ext_refresh_golden_frame = ( ref_frame_flags & VP9_GOLD_FLAG ) != 0 ;\n cpi -> ext_refresh_alt_ref_frame = ( ref_frame_flags & VP9_ALT_FLAG ) != 0 ;\n cpi -> ext_refresh_last_frame = ( ref_frame_flags & VP9_LAST_FLAG ) != 0 ;\n cpi -> ext_refresh_frame_flags_pending = 1 ;\n }"}
{"idx": 7866, "target": 0, "func": "void Gif_SetErrorHandler ( Gif_ReadErrorHandler handler ) {\n default_error_handler = handler ;\n }"}
{"idx": 7867, "target": 0, "func": "PyObject * PyString_Repr ( PyObject * obj , int smartquotes ) {\n register PyStringObject * op = ( PyStringObject * ) obj ;\n size_t newsize ;\n PyObject * v ;\n if ( Py_SIZE ( op ) > ( PY_SSIZE_T_MAX - 2 ) / 4 ) {\n PyErr_SetString ( PyExc_OverflowError , \"string is too large to make repr\" ) ;\n return NULL ;\n }\n newsize = 2 + 4 * Py_SIZE ( op ) ;\n v = PyString_FromStringAndSize ( ( char * ) NULL , newsize ) ;\n if ( v == NULL ) {\n return NULL ;\n }\n else {\n register Py_ssize_t i ;\n register char c ;\n register char * p ;\n int quote ;\n quote = '\\'' ;\n if ( smartquotes && memchr ( op -> ob_sval , '\\'' , Py_SIZE ( op ) ) && ! memchr ( op -> ob_sval , '\"' , Py_SIZE ( op ) ) ) quote = '\"' ;\n p = PyString_AS_STRING ( v ) ;\n * p ++ = quote ;\n for ( i = 0 ;\n i < Py_SIZE ( op ) ;\n i ++ ) {\n assert ( newsize - ( p - PyString_AS_STRING ( v ) ) >= 5 ) ;\n c = op -> ob_sval [ i ] ;\n if ( c == quote || c == '\\\\' ) * p ++ = '\\\\' , * p ++ = c ;\n else if ( c == '\\t' ) * p ++ = '\\\\' , * p ++ = 't' ;\n else if ( c == '\\n' ) * p ++ = '\\\\' , * p ++ = 'n' ;\n else if ( c == '\\r' ) * p ++ = '\\\\' , * p ++ = 'r' ;\n else if ( c < ' ' || c >= 0x7f ) {\n sprintf ( p , \"\\\\x%02x\" , c & 0xff ) ;\n p += 4 ;\n }\n else * p ++ = c ;\n }\n assert ( newsize - ( p - PyString_AS_STRING ( v ) ) >= 1 ) ;\n * p ++ = quote ;\n * p = '\\0' ;\n if ( _PyString_Resize ( & v , ( p - PyString_AS_STRING ( v ) ) ) ) return NULL ;\n return v ;\n }\n }"}
{"idx": 7868, "target": 0, "func": "static void get_hfi_length ( header_field_info * hfinfo , tvbuff_t * tvb , const gint start , gint * length , gint * item_length ) {\n gint length_remaining ;\n DISSECTOR_ASSERT ( tvb != NULL || * length == 0 ) ;\n if ( * length == - 1 ) {\n switch ( hfinfo -> type ) {\n case FT_PROTOCOL : case FT_NONE : case FT_BYTES : case FT_STRING : case FT_STRINGZPAD : * length = tvb_captured_length ( tvb ) ? tvb_ensure_captured_length_remaining ( tvb , start ) : 0 ;\n DISSECTOR_ASSERT ( * length >= 0 ) ;\n break ;\n case FT_STRINGZ : break ;\n default : THROW ( ReportedBoundsError ) ;\n DISSECTOR_ASSERT_NOT_REACHED ( ) ;\n }\n * item_length = * length ;\n }\n else {\n * item_length = * length ;\n if ( hfinfo -> type == FT_PROTOCOL || hfinfo -> type == FT_NONE ) {\n if ( tvb ) {\n length_remaining = tvb_captured_length_remaining ( tvb , start ) ;\n if ( * item_length < 0 || ( * item_length > 0 && ( length_remaining < * item_length ) ) ) * item_length = length_remaining ;\n }\n }\n if ( * item_length < 0 ) {\n THROW ( ReportedBoundsError ) ;\n }\n }\n }"}
{"idx": 7869, "target": 0, "func": "static int s390_virtio_net_init ( VirtIOS390Device * dev ) {\n VirtIODevice * vdev ;\n vdev = virtio_net_init ( ( DeviceState * ) dev , & dev -> nic ) ;\n if ( ! vdev ) {\n return - 1 ;\n }\n return s390_virtio_device_init ( dev , vdev ) ;\n }"}
{"idx": 7870, "target": 0, "func": "int web_server_init ( ) {\n int ret = 0 ;\n if ( bWebServerState == WEB_SERVER_DISABLED ) {\n media_list_init ( ) ;\n membuffer_init ( & gDocumentRootDir ) ;\n glob_alias_init ( ) ;\n pVirtualDirList = NULL ;\n virtualDirCallback . get_info = NULL ;\n virtualDirCallback . open = NULL ;\n virtualDirCallback . read = NULL ;\n virtualDirCallback . write = NULL ;\n virtualDirCallback . seek = NULL ;\n virtualDirCallback . close = NULL ;\n if ( ithread_mutex_init ( & gWebMutex , NULL ) == - 1 ) ret = UPNP_E_OUTOF_MEMORY ;\n else bWebServerState = WEB_SERVER_ENABLED ;\n }\n return ret ;\n }"}
{"idx": 7871, "target": 0, "func": "static inline void uprv_arrayCopy ( const int8_t * src , int8_t * dst , int32_t count ) {\n uprv_memcpy ( dst , src , ( size_t ) count * sizeof ( * src ) ) ;\n }"}
{"idx": 7872, "target": 0, "func": "void InitDumpOptions ( DumpOptions * opts ) {\n memset ( opts , 0 , sizeof ( DumpOptions ) ) ;\n opts -> include_everything = true ;\n opts -> dumpSections = DUMP_UNSECTIONED ;\n }"}
{"idx": 7873, "target": 0, "func": "static void stop_server ( char * prefix , char * port ) {\n char * path = NULL ;\n int pid , path_size = strlen ( prefix ) + strlen ( port ) + 20 ;\n path = ss_malloc ( path_size ) ;\n snprintf ( path , path_size , \"%s/.shadowsocks_%s.pid\" , prefix , port ) ;\n FILE * f = fopen ( path , \"r\" ) ;\n if ( f == NULL ) {\n if ( verbose ) {\n LOGE ( \"unable to open pid file\" ) ;\n }\n ss_free ( path ) ;\n return ;\n }\n if ( fscanf ( f , \"%d\" , & pid ) != EOF ) {\n kill ( pid , SIGTERM ) ;\n }\n fclose ( f ) ;\n ss_free ( path ) ;\n }"}
{"idx": 7874, "target": 1, "func": "static void * kq_init ( struct event_base * base ) {\n int i , kq ;\n struct kqop * kqueueop ;\n if ( evutil_getenv ( \"EVENT_NOKQUEUE\" ) ) return ( NULL ) ;\n if ( ! ( kqueueop = calloc ( 1 , sizeof ( struct kqop ) ) ) ) return ( NULL ) ;\n if ( ( kq = kqueue ( ) ) == - 1 ) {\n event_warn ( \"kqueue\" ) ;\n free ( kqueueop ) ;\n return ( NULL ) ;\n }\n kqueueop -> kq = kq ;\n kqueueop -> pid = getpid ( ) ;\n kqueueop -> changes = malloc ( NEVENT * sizeof ( struct kevent ) ) ;\n if ( kqueueop -> changes == NULL ) {\n free ( kqueueop ) ;\n return ( NULL ) ;\n }\n kqueueop -> events = malloc ( NEVENT * sizeof ( struct kevent ) ) ;\n if ( kqueueop -> events == NULL ) {\n free ( kqueueop -> changes ) ;\n free ( kqueueop ) ;\n return ( NULL ) ;\n }\n kqueueop -> nevents = NEVENT ;\n for ( i = 0 ;\n i < NSIG ;\n ++ i ) {\n TAILQ_INIT ( & kqueueop -> evsigevents [ i ] ) ;\n }\n kqueueop -> changes [ 0 ] . ident = - 1 ;\n kqueueop -> changes [ 0 ] . filter = EVFILT_READ ;\n kqueueop -> changes [ 0 ] . flags = EV_ADD ;\n if ( kevent ( kq , kqueueop -> changes , 1 , kqueueop -> events , NEVENT , NULL ) != 1 || kqueueop -> events [ 0 ] . ident != - 1 || kqueueop -> events [ 0 ] . flags != EV_ERROR ) {\n event_warn ( \"%s: detected broken kqueue;\n not using.\" , __func__ ) ;\n free ( kqueueop -> changes ) ;\n free ( kqueueop -> events ) ;\n free ( kqueueop ) ;\n close ( kq ) ;\n return ( NULL ) ;\n }\n return ( kqueueop ) ;\n }"}
{"idx": 7875, "target": 0, "func": "static const char * cpio_rename ( const char * name ) {\n static char buff [ 1024 ] ;\n FILE * t ;\n char * p , * ret ;\n # if defined ( _WIN32 ) && ! defined ( __CYGWIN__ ) FILE * to ;\n t = fopen ( \"CONIN$\" , \"r\" ) ;\n if ( t == NULL ) return ( name ) ;\n to = fopen ( \"CONOUT$\" , \"w\" ) ;\n if ( to == NULL ) {\n fclose ( t ) ;\n return ( name ) ;\n }\n fprintf ( to , \"%s (Enter/./(new name))? \" , name ) ;\n fclose ( to ) ;\n # else t = fopen ( \"/dev/tty\" , \"r+\" ) ;\n if ( t == NULL ) return ( name ) ;\n fprintf ( t , \"%s (Enter/./(new name))? \" , name ) ;\n fflush ( t ) ;\n # endif p = fgets ( buff , sizeof ( buff ) , t ) ;\n fclose ( t ) ;\n if ( p == NULL ) return ( NULL ) ;\n while ( * p == ' ' || * p == '\\t' ) ++ p ;\n if ( * p == '\\n' || * p == '\\0' ) return ( NULL ) ;\n if ( * p == '.' && p [ 1 ] == '\\n' ) return ( name ) ;\n ret = p ;\n while ( * p != '\\0' && * p != '\\n' ) ++ p ;\n * p = '\\0' ;\n return ( ret ) ;\n }"}
{"idx": 7876, "target": 0, "func": "static void idr_resolve ( struct idr * idr , void ( * fsetnum ) ( unsigned char * p , int num ) ) {\n struct idrent * n ;\n unsigned char * p ;\n for ( n = idr -> wait_list . first ;\n n != NULL ;\n n = n -> wnext ) {\n idr_extend_identifier ( n , idr -> num_size , idr -> null_size ) ;\n p = ( unsigned char * ) n -> isoent -> identifier + n -> noff ;\n do {\n fsetnum ( p , n -> avail -> rename_num ++ ) ;\n }\n while ( ! __archive_rb_tree_insert_node ( & ( idr -> rbtree ) , & ( n -> rbnode ) ) ) ;\n }\n }"}
{"idx": 7877, "target": 0, "func": "static int kvm_assign_irq_internal ( KVMState * s , uint32_t dev_id , uint32_t irq_type , uint32_t guest_irq ) {\n struct kvm_assigned_irq assigned_irq = {\n . assigned_dev_id = dev_id , . guest_irq = guest_irq , . flags = irq_type , }\n ;\n if ( kvm_check_extension ( s , KVM_CAP_ASSIGN_DEV_IRQ ) ) {\n return kvm_vm_ioctl ( s , KVM_ASSIGN_DEV_IRQ , & assigned_irq ) ;\n }\n else {\n return kvm_vm_ioctl ( s , KVM_ASSIGN_IRQ , & assigned_irq ) ;\n }\n }"}
{"idx": 7878, "target": 0, "func": "bool challenge_h ( connection_t * c ) {\n char buffer [ MAX_STRING_SIZE ] ;\n int len ;\n if ( sscanf ( c -> buffer , \"%*d \" MAX_STRING , buffer ) != 1 ) {\n logger ( LOG_ERR , \"Got bad %s from %s (%s)\" , \"CHALLENGE\" , c -> name , c -> hostname ) ;\n return false ;\n }\n len = RSA_size ( myself -> connection -> rsa_key ) ;\n if ( strlen ( buffer ) != ( size_t ) len * 2 ) {\n logger ( LOG_ERR , \"Possible intruder %s (%s): %s\" , c -> name , c -> hostname , \"wrong challenge length\" ) ;\n return false ;\n }\n c -> mychallenge = xrealloc ( c -> mychallenge , len ) ;\n if ( ! hex2bin ( buffer , c -> mychallenge , len ) ) {\n logger ( LOG_ERR , \"Got bad %s from %s(%s): %s\" , \"CHALLENGE\" , c -> name , c -> hostname , \"invalid challenge\" ) ;\n return false ;\n }\n c -> allow_request = CHAL_REPLY ;\n if ( c -> outgoing ) {\n return send_chal_reply ( c ) ;\n }\n else {\n return true ;\n }\n }"}
{"idx": 7879, "target": 0, "func": "static PHP_MINIT_FUNCTION ( zip ) {\n # ifdef PHP_ZIP_USE_OO zend_class_entry ce ;\n memcpy ( & zip_object_handlers , zend_get_std_object_handlers ( ) , sizeof ( zend_object_handlers ) ) ;\n zip_object_handlers . clone_obj = NULL ;\n zip_object_handlers . get_property_ptr_ptr = php_zip_get_property_ptr_ptr ;\n zip_object_handlers . get_gc = php_zip_get_gc ;\n zip_object_handlers . get_properties = php_zip_get_properties ;\n zip_object_handlers . read_property = php_zip_read_property ;\n zip_object_handlers . has_property = php_zip_has_property ;\n INIT_CLASS_ENTRY ( ce , \"ZipArchive\" , zip_class_functions ) ;\n ce . create_object = php_zip_object_new ;\n zip_class_entry = zend_register_internal_class ( & ce TSRMLS_CC ) ;\n zend_hash_init ( & zip_prop_handlers , 0 , NULL , NULL , 1 ) ;\n php_zip_register_prop_handler ( & zip_prop_handlers , \"status\" , php_zip_status , NULL , NULL , IS_LONG TSRMLS_CC ) ;\n php_zip_register_prop_handler ( & zip_prop_handlers , \"statusSys\" , php_zip_status_sys , NULL , NULL , IS_LONG TSRMLS_CC ) ;\n php_zip_register_prop_handler ( & zip_prop_handlers , \"numFiles\" , php_zip_get_num_files , NULL , NULL , IS_LONG TSRMLS_CC ) ;\n php_zip_register_prop_handler ( & zip_prop_handlers , \"filename\" , NULL , NULL , php_zipobj_get_filename , IS_STRING TSRMLS_CC ) ;\n php_zip_register_prop_handler ( & zip_prop_handlers , \"comment\" , NULL , php_zipobj_get_zip_comment , NULL , IS_STRING TSRMLS_CC ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CREATE\" , ZIP_CREATE ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"EXCL\" , ZIP_EXCL ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CHECKCONS\" , ZIP_CHECKCONS ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"OVERWRITE\" , ZIP_OVERWRITE ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"FL_NOCASE\" , ZIP_FL_NOCASE ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"FL_NODIR\" , ZIP_FL_NODIR ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"FL_COMPRESSED\" , ZIP_FL_COMPRESSED ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"FL_UNCHANGED\" , ZIP_FL_UNCHANGED ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_DEFAULT\" , ZIP_CM_DEFAULT ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_STORE\" , ZIP_CM_STORE ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_SHRINK\" , ZIP_CM_SHRINK ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_REDUCE_1\" , ZIP_CM_REDUCE_1 ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_REDUCE_2\" , ZIP_CM_REDUCE_2 ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_REDUCE_3\" , ZIP_CM_REDUCE_3 ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_REDUCE_4\" , ZIP_CM_REDUCE_4 ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_IMPLODE\" , ZIP_CM_IMPLODE ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_DEFLATE\" , ZIP_CM_DEFLATE ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_DEFLATE64\" , ZIP_CM_DEFLATE64 ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_PKWARE_IMPLODE\" , ZIP_CM_PKWARE_IMPLODE ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_BZIP2\" , ZIP_CM_BZIP2 ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_LZMA\" , ZIP_CM_LZMA ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_TERSE\" , ZIP_CM_TERSE ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_LZ77\" , ZIP_CM_LZ77 ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_WAVPACK\" , ZIP_CM_WAVPACK ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_PPMD\" , ZIP_CM_PPMD ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_OK\" , ZIP_ER_OK ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_MULTIDISK\" , ZIP_ER_MULTIDISK ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_RENAME\" , ZIP_ER_RENAME ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_CLOSE\" , ZIP_ER_CLOSE ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_SEEK\" , ZIP_ER_SEEK ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_READ\" , ZIP_ER_READ ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_WRITE\" , ZIP_ER_WRITE ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_CRC\" , ZIP_ER_CRC ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_ZIPCLOSED\" , ZIP_ER_ZIPCLOSED ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_NOENT\" , ZIP_ER_NOENT ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_EXISTS\" , ZIP_ER_EXISTS ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_OPEN\" , ZIP_ER_OPEN ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_TMPOPEN\" , ZIP_ER_TMPOPEN ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_ZLIB\" , ZIP_ER_ZLIB ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_MEMORY\" , ZIP_ER_MEMORY ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_CHANGED\" , ZIP_ER_CHANGED ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_COMPNOTSUPP\" , ZIP_ER_COMPNOTSUPP ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_EOF\" , ZIP_ER_EOF ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_INVAL\" , ZIP_ER_INVAL ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_NOZIP\" , ZIP_ER_NOZIP ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_INTERNAL\" , ZIP_ER_INTERNAL ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_INCONS\" , ZIP_ER_INCONS ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_REMOVE\" , ZIP_ER_REMOVE ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_DELETED\" , ZIP_ER_DELETED ) ;\n php_register_url_stream_wrapper ( \"zip\" , & php_stream_zip_wrapper TSRMLS_CC ) ;\n # endif le_zip_dir = zend_register_list_destructors_ex ( php_zip_free_dir , NULL , le_zip_dir_name , module_number ) ;\n le_zip_entry = zend_register_list_destructors_ex ( php_zip_free_entry , NULL , le_zip_entry_name , module_number ) ;\n return SUCCESS ;\n }"}
{"idx": 7880, "target": 0, "func": "static int dissect_h225_T_messageContent_item ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 770 \"./asn1/h225/h225.cnf\" tvbuff_t * next_tvb = NULL ;\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , NO_BOUND , NO_BOUND , FALSE , & next_tvb ) ;\n next_tvb_add_handle ( & tp_list , next_tvb , ( h225_tp_in_tree ) ? tree : NULL , tp_handle ) ;\n return offset ;\n }"}
{"idx": 7881, "target": 0, "func": "void * merge_directory_configs ( apr_pool_t * mp , void * _parent , void * _child ) {\n directory_config * parent = ( directory_config * ) _parent ;\n directory_config * child = ( directory_config * ) _child ;\n directory_config * merged = create_directory_config ( mp , NULL ) ;\n # ifdef DEBUG_CONF ap_log_perror ( APLOG_MARK , APLOG_STARTUP | APLOG_NOERRNO , 0 , mp , \"Merge parent %pp child %pp RESULT %pp\" , _parent , _child , merged ) ;\n # endif if ( merged == NULL ) return NULL ;\n merged -> is_enabled = ( child -> is_enabled == NOT_SET ? parent -> is_enabled : child -> is_enabled ) ;\n merged -> reqbody_access = ( child -> reqbody_access == NOT_SET ? parent -> reqbody_access : child -> reqbody_access ) ;\n merged -> reqbody_buffering = ( child -> reqbody_buffering == NOT_SET ? parent -> reqbody_buffering : child -> reqbody_buffering ) ;\n merged -> reqbody_inmemory_limit = ( child -> reqbody_inmemory_limit == NOT_SET ? parent -> reqbody_inmemory_limit : child -> reqbody_inmemory_limit ) ;\n merged -> reqbody_limit = ( child -> reqbody_limit == NOT_SET ? parent -> reqbody_limit : child -> reqbody_limit ) ;\n merged -> reqbody_no_files_limit = ( child -> reqbody_no_files_limit == NOT_SET ? parent -> reqbody_no_files_limit : child -> reqbody_no_files_limit ) ;\n merged -> resbody_access = ( child -> resbody_access == NOT_SET ? parent -> resbody_access : child -> resbody_access ) ;\n merged -> of_limit = ( child -> of_limit == NOT_SET ? parent -> of_limit : child -> of_limit ) ;\n merged -> if_limit_action = ( child -> if_limit_action == NOT_SET ? parent -> if_limit_action : child -> if_limit_action ) ;\n merged -> of_limit_action = ( child -> of_limit_action == NOT_SET ? parent -> of_limit_action : child -> of_limit_action ) ;\n merged -> reqintercept_oe = ( child -> reqintercept_oe == NOT_SET ? parent -> reqintercept_oe : child -> reqintercept_oe ) ;\n if ( child -> of_mime_types != NOT_SET_P ) {\n if ( child -> of_mime_types_cleared == 1 ) {\n merged -> of_mime_types = child -> of_mime_types ;\n merged -> of_mime_types_cleared = 1 ;\n }\n else {\n if ( parent -> of_mime_types == NOT_SET_P ) {\n merged -> of_mime_types = child -> of_mime_types ;\n merged -> of_mime_types_cleared = NOT_SET ;\n }\n else {\n merged -> of_mime_types = apr_table_overlay ( mp , parent -> of_mime_types , child -> of_mime_types ) ;\n if ( merged -> of_mime_types == NULL ) return NULL ;\n }\n }\n }\n else {\n if ( child -> of_mime_types_cleared == 1 ) {\n merged -> of_mime_types_cleared = 1 ;\n }\n else {\n merged -> of_mime_types = parent -> of_mime_types ;\n merged -> of_mime_types_cleared = parent -> of_mime_types_cleared ;\n }\n }\n if ( child -> debuglog_fd == NOT_SET_P ) {\n merged -> debuglog_name = parent -> debuglog_name ;\n merged -> debuglog_fd = parent -> debuglog_fd ;\n }\n else {\n merged -> debuglog_name = child -> debuglog_name ;\n merged -> debuglog_fd = child -> debuglog_fd ;\n }\n merged -> debuglog_level = ( child -> debuglog_level == NOT_SET ? parent -> debuglog_level : child -> debuglog_level ) ;\n merged -> cookie_format = ( child -> cookie_format == NOT_SET ? parent -> cookie_format : child -> cookie_format ) ;\n merged -> argument_separator = ( child -> argument_separator == NOT_SET ? parent -> argument_separator : child -> argument_separator ) ;\n merged -> cookiev0_separator = ( child -> cookiev0_separator == NOT_SET_P ? parent -> cookiev0_separator : child -> cookiev0_separator ) ;\n if ( ( child -> rule_inheritance == NOT_SET ) || ( child -> rule_inheritance == 1 ) ) {\n merged -> rule_inheritance = parent -> rule_inheritance ;\n if ( ( child -> ruleset == NULL ) && ( parent -> ruleset == NULL ) ) {\n # ifdef DEBUG_CONF ap_log_perror ( APLOG_MARK , APLOG_STARTUP | APLOG_NOERRNO , 0 , mp , \"No rules in this context.\" ) ;\n # endif }\n else if ( child -> ruleset == NULL ) {\n # ifdef DEBUG_CONF ap_log_perror ( APLOG_MARK , APLOG_STARTUP | APLOG_NOERRNO , 0 , mp , \"Using parent rules in this context.\" ) ;\n # endif merged -> ruleset = msre_ruleset_create ( parent -> ruleset -> engine , mp ) ;\n copy_rules ( mp , parent -> ruleset , merged -> ruleset , child -> rule_exceptions ) ;\n }\n else if ( parent -> ruleset == NULL ) {\n # ifdef DEBUG_CONF ap_log_perror ( APLOG_MARK , APLOG_STARTUP | APLOG_NOERRNO , 0 , mp , \"Using child rules in this context.\" ) ;\n # endif merged -> ruleset = msre_ruleset_create ( child -> ruleset -> engine , mp ) ;\n merged -> ruleset -> phase_request_headers = apr_array_copy ( mp , child -> ruleset -> phase_request_headers ) ;\n merged -> ruleset -> phase_request_body = apr_array_copy ( mp , child -> ruleset -> phase_request_body ) ;\n merged -> ruleset -> phase_response_headers = apr_array_copy ( mp , child -> ruleset -> phase_response_headers ) ;\n merged -> ruleset -> phase_response_body = apr_array_copy ( mp , child -> ruleset -> phase_response_body ) ;\n merged -> ruleset -> phase_logging = apr_array_copy ( mp , child -> ruleset -> phase_logging ) ;\n }\n else {\n # ifdef DEBUG_CONF ap_log_perror ( APLOG_MARK , APLOG_STARTUP | APLOG_NOERRNO , 0 , mp , \"Using parent then child rules in this context.\" ) ;\n # endif merged -> ruleset = msre_ruleset_create ( parent -> ruleset -> engine , mp ) ;\n copy_rules ( mp , parent -> ruleset , merged -> ruleset , child -> rule_exceptions ) ;\n apr_array_cat ( merged -> ruleset -> phase_request_headers , child -> ruleset -> phase_request_headers ) ;\n apr_array_cat ( merged -> ruleset -> phase_request_body , child -> ruleset -> phase_request_body ) ;\n apr_array_cat ( merged -> ruleset -> phase_response_headers , child -> ruleset -> phase_response_headers ) ;\n apr_array_cat ( merged -> ruleset -> phase_response_body , child -> ruleset -> phase_response_body ) ;\n apr_array_cat ( merged -> ruleset -> phase_logging , child -> ruleset -> phase_logging ) ;\n }\n }\n else {\n merged -> rule_inheritance = 0 ;\n if ( child -> ruleset != NULL ) {\n merged -> ruleset = msre_ruleset_create ( child -> ruleset -> engine , mp ) ;\n merged -> ruleset -> phase_request_headers = apr_array_copy ( mp , child -> ruleset -> phase_request_headers ) ;\n merged -> ruleset -> phase_request_body = apr_array_copy ( mp , child -> ruleset -> phase_request_body ) ;\n merged -> ruleset -> phase_response_headers = apr_array_copy ( mp , child -> ruleset -> phase_response_headers ) ;\n merged -> ruleset -> phase_response_body = apr_array_copy ( mp , child -> ruleset -> phase_response_body ) ;\n merged -> ruleset -> phase_logging = apr_array_copy ( mp , child -> ruleset -> phase_logging ) ;\n }\n }\n merged -> rule_exceptions = apr_array_append ( mp , parent -> rule_exceptions , child -> rule_exceptions ) ;\n merged -> hash_method = apr_array_append ( mp , parent -> hash_method , child -> hash_method ) ;\n merged -> auditlog_flag = ( child -> auditlog_flag == NOT_SET ? parent -> auditlog_flag : child -> auditlog_flag ) ;\n merged -> auditlog_type = ( child -> auditlog_type == NOT_SET ? parent -> auditlog_type : child -> auditlog_type ) ;\n merged -> max_rule_time = ( child -> max_rule_time == NOT_SET ? parent -> max_rule_time : child -> max_rule_time ) ;\n merged -> auditlog_dirperms = ( child -> auditlog_dirperms == NOT_SET ? parent -> auditlog_dirperms : child -> auditlog_dirperms ) ;\n merged -> auditlog_fileperms = ( child -> auditlog_fileperms == NOT_SET ? parent -> auditlog_fileperms : child -> auditlog_fileperms ) ;\n if ( child -> auditlog_fd != NOT_SET_P ) {\n merged -> auditlog_fd = child -> auditlog_fd ;\n merged -> auditlog_name = child -> auditlog_name ;\n }\n else {\n merged -> auditlog_fd = parent -> auditlog_fd ;\n merged -> auditlog_name = parent -> auditlog_name ;\n }\n if ( child -> auditlog2_fd != NOT_SET_P ) {\n merged -> auditlog2_fd = child -> auditlog2_fd ;\n merged -> auditlog2_name = child -> auditlog2_name ;\n }\n else {\n merged -> auditlog2_fd = parent -> auditlog2_fd ;\n merged -> auditlog2_name = parent -> auditlog2_name ;\n }\n merged -> auditlog_storage_dir = ( child -> auditlog_storage_dir == NOT_SET_P ? parent -> auditlog_storage_dir : child -> auditlog_storage_dir ) ;\n merged -> auditlog_parts = ( child -> auditlog_parts == NOT_SET_P ? parent -> auditlog_parts : child -> auditlog_parts ) ;\n merged -> auditlog_relevant_regex = ( child -> auditlog_relevant_regex == NOT_SET_P ? parent -> auditlog_relevant_regex : child -> auditlog_relevant_regex ) ;\n merged -> tmp_dir = ( child -> tmp_dir == NOT_SET_P ? parent -> tmp_dir : child -> tmp_dir ) ;\n merged -> upload_dir = ( child -> upload_dir == NOT_SET_P ? parent -> upload_dir : child -> upload_dir ) ;\n merged -> upload_keep_files = ( child -> upload_keep_files == NOT_SET ? parent -> upload_keep_files : child -> upload_keep_files ) ;\n merged -> upload_validates_files = ( child -> upload_validates_files == NOT_SET ? parent -> upload_validates_files : child -> upload_validates_files ) ;\n merged -> upload_filemode = ( child -> upload_filemode == NOT_SET ? parent -> upload_filemode : child -> upload_filemode ) ;\n merged -> upload_file_limit = ( child -> upload_file_limit == NOT_SET ? parent -> upload_file_limit : child -> upload_file_limit ) ;\n merged -> data_dir = ( child -> data_dir == NOT_SET_P ? parent -> data_dir : child -> data_dir ) ;\n merged -> webappid = ( child -> webappid == NOT_SET_P ? parent -> webappid : child -> webappid ) ;\n merged -> sensor_id = ( child -> sensor_id == NOT_SET_P ? parent -> sensor_id : child -> sensor_id ) ;\n merged -> httpBlkey = ( child -> httpBlkey == NOT_SET_P ? parent -> httpBlkey : child -> httpBlkey ) ;\n merged -> content_injection_enabled = ( child -> content_injection_enabled == NOT_SET ? parent -> content_injection_enabled : child -> content_injection_enabled ) ;\n merged -> stream_inbody_inspection = ( child -> stream_inbody_inspection == NOT_SET ? parent -> stream_inbody_inspection : child -> stream_inbody_inspection ) ;\n merged -> stream_outbody_inspection = ( child -> stream_outbody_inspection == NOT_SET ? parent -> stream_outbody_inspection : child -> stream_outbody_inspection ) ;\n merged -> geo = ( child -> geo == NOT_SET_P ? parent -> geo : child -> geo ) ;\n merged -> gsb = ( child -> gsb == NOT_SET_P ? parent -> gsb : child -> gsb ) ;\n merged -> u_map = ( child -> u_map == NOT_SET_P ? parent -> u_map : child -> u_map ) ;\n merged -> cache_trans = ( child -> cache_trans == NOT_SET ? parent -> cache_trans : child -> cache_trans ) ;\n merged -> cache_trans_incremental = ( child -> cache_trans_incremental == NOT_SET ? parent -> cache_trans_incremental : child -> cache_trans_incremental ) ;\n merged -> cache_trans_min = ( child -> cache_trans_min == ( apr_size_t ) NOT_SET ? parent -> cache_trans_min : child -> cache_trans_min ) ;\n merged -> cache_trans_max = ( child -> cache_trans_max == ( apr_size_t ) NOT_SET ? parent -> cache_trans_max : child -> cache_trans_max ) ;\n merged -> cache_trans_maxitems = ( child -> cache_trans_maxitems == ( apr_size_t ) NOT_SET ? parent -> cache_trans_maxitems : child -> cache_trans_maxitems ) ;\n merged -> component_signatures = apr_array_append ( mp , parent -> component_signatures , child -> component_signatures ) ;\n merged -> request_encoding = ( child -> request_encoding == NOT_SET_P ? parent -> request_encoding : child -> request_encoding ) ;\n merged -> disable_backend_compression = ( child -> disable_backend_compression == NOT_SET ? parent -> disable_backend_compression : child -> disable_backend_compression ) ;\n merged -> col_timeout = ( child -> col_timeout == NOT_SET ? parent -> col_timeout : child -> col_timeout ) ;\n merged -> crypto_key = ( child -> crypto_key == NOT_SET_P ? parent -> crypto_key : child -> crypto_key ) ;\n merged -> crypto_key_len = ( child -> crypto_key_len == NOT_SET ? parent -> crypto_key_len : child -> crypto_key_len ) ;\n merged -> crypto_key_add = ( child -> crypto_key_add == NOT_SET ? parent -> crypto_key_add : child -> crypto_key_add ) ;\n merged -> crypto_param_name = ( child -> crypto_param_name == NOT_SET_P ? parent -> crypto_param_name : child -> crypto_param_name ) ;\n merged -> hash_is_enabled = ( child -> hash_is_enabled == NOT_SET ? parent -> hash_is_enabled : child -> hash_is_enabled ) ;\n merged -> hash_enforcement = ( child -> hash_enforcement == NOT_SET ? parent -> hash_enforcement : child -> hash_enforcement ) ;\n merged -> crypto_hash_href_rx = ( child -> crypto_hash_href_rx == NOT_SET ? parent -> crypto_hash_href_rx : child -> crypto_hash_href_rx ) ;\n merged -> crypto_hash_faction_rx = ( child -> crypto_hash_faction_rx == NOT_SET ? parent -> crypto_hash_faction_rx : child -> crypto_hash_faction_rx ) ;\n merged -> crypto_hash_location_rx = ( child -> crypto_hash_location_rx == NOT_SET ? parent -> crypto_hash_location_rx : child -> crypto_hash_location_rx ) ;\n merged -> crypto_hash_iframesrc_rx = ( child -> crypto_hash_iframesrc_rx == NOT_SET ? parent -> crypto_hash_iframesrc_rx : child -> crypto_hash_iframesrc_rx ) ;\n merged -> crypto_hash_framesrc_rx = ( child -> crypto_hash_framesrc_rx == NOT_SET ? parent -> crypto_hash_framesrc_rx : child -> crypto_hash_framesrc_rx ) ;\n merged -> crypto_hash_href_pm = ( child -> crypto_hash_href_pm == NOT_SET ? parent -> crypto_hash_href_pm : child -> crypto_hash_href_pm ) ;\n merged -> crypto_hash_faction_pm = ( child -> crypto_hash_faction_pm == NOT_SET ? parent -> crypto_hash_faction_pm : child -> crypto_hash_faction_pm ) ;\n merged -> crypto_hash_location_pm = ( child -> crypto_hash_location_pm == NOT_SET ? parent -> crypto_hash_location_pm : child -> crypto_hash_location_pm ) ;\n merged -> crypto_hash_iframesrc_pm = ( child -> crypto_hash_iframesrc_pm == NOT_SET ? parent -> crypto_hash_iframesrc_pm : child -> crypto_hash_iframesrc_pm ) ;\n merged -> crypto_hash_framesrc_pm = ( child -> crypto_hash_framesrc_pm == NOT_SET ? parent -> crypto_hash_framesrc_pm : child -> crypto_hash_framesrc_pm ) ;\n merged -> xml_external_entity = ( child -> xml_external_entity == NOT_SET ? parent -> xml_external_entity : child -> xml_external_entity ) ;\n return merged ;\n }"}
{"idx": 7882, "target": 0, "func": "METHOD ( certificate_t , get_encoding , bool , private_x509_cert_t * this , cred_encoding_type_t type , chunk_t * encoding ) {\n if ( type == CERT_ASN1_DER ) {\n * encoding = chunk_clone ( this -> encoding ) ;\n return TRUE ;\n }\n return lib -> encoding -> encode ( lib -> encoding , type , NULL , encoding , CRED_PART_X509_ASN1_DER , this -> encoding , CRED_PART_END ) ;\n }"}
{"idx": 7883, "target": 1, "func": "static void UConverter_fromUnicode_CompoundText_OFFSETS ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n UConverter * cnv = args -> converter ;\n uint8_t * target = ( uint8_t * ) args -> target ;\n const uint8_t * targetLimit = ( const uint8_t * ) args -> targetLimit ;\n const UChar * source = args -> source ;\n const UChar * sourceLimit = args -> sourceLimit ;\n UChar32 sourceChar ;\n UBool useFallback = cnv -> useFallback ;\n uint8_t tmpTargetBuffer [ 7 ] ;\n int32_t tmpTargetBufferLength = 0 ;\n COMPOUND_TEXT_CONVERTERS currentState , tmpState ;\n uint32_t pValue ;\n int32_t pValueLength = 0 ;\n int32_t i , n , j ;\n UConverterDataCompoundText * myConverterData = ( UConverterDataCompoundText * ) cnv -> extraInfo ;\n currentState = myConverterData -> state ;\n if ( ( sourceChar = cnv -> fromUChar32 ) != 0 && target < targetLimit ) {\n goto getTrail ;\n }\n while ( source < sourceLimit ) {\n if ( target < targetLimit ) {\n sourceChar = * ( source ++ ) ;\n if ( U16_IS_SURROGATE ( sourceChar ) ) {\n if ( U16_IS_SURROGATE_LEAD ( sourceChar ) ) {\n getTrail : if ( source < sourceLimit ) {\n UChar trail = ( UChar ) * source ;\n if ( U16_IS_TRAIL ( trail ) ) {\n source ++ ;\n sourceChar = U16_GET_SUPPLEMENTARY ( sourceChar , trail ) ;\n cnv -> fromUChar32 = 0x00 ;\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n cnv -> fromUChar32 = sourceChar ;\n break ;\n }\n }\n else {\n cnv -> fromUChar32 = sourceChar ;\n break ;\n }\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n cnv -> fromUChar32 = sourceChar ;\n break ;\n }\n }\n tmpTargetBufferLength = 0 ;\n tmpState = getState ( sourceChar ) ;\n if ( tmpState != DO_SEARCH && currentState != tmpState ) {\n currentState = tmpState ;\n for ( i = 0 ;\n escSeqCompoundText [ currentState ] [ i ] != 0 ;\n i ++ ) {\n tmpTargetBuffer [ tmpTargetBufferLength ++ ] = escSeqCompoundText [ currentState ] [ i ] ;\n }\n }\n if ( tmpState == DO_SEARCH ) {\n for ( i = 1 ;\n i < SEARCH_LENGTH ;\n i ++ ) {\n pValueLength = ucnv_MBCSFromUChar32 ( myConverterData -> myConverterArray [ i ] , sourceChar , & pValue , useFallback ) ;\n if ( pValueLength > 0 ) {\n tmpState = ( COMPOUND_TEXT_CONVERTERS ) i ;\n if ( currentState != tmpState ) {\n currentState = tmpState ;\n for ( j = 0 ;\n escSeqCompoundText [ currentState ] [ j ] != 0 ;\n j ++ ) {\n tmpTargetBuffer [ tmpTargetBufferLength ++ ] = escSeqCompoundText [ currentState ] [ j ] ;\n }\n }\n for ( n = ( pValueLength - 1 ) ;\n n >= 0 ;\n n -- ) {\n tmpTargetBuffer [ tmpTargetBufferLength ++ ] = ( uint8_t ) ( pValue >> ( n * 8 ) ) ;\n }\n break ;\n }\n }\n }\n else if ( tmpState == COMPOUND_TEXT_SINGLE_0 ) {\n tmpTargetBuffer [ tmpTargetBufferLength ++ ] = ( uint8_t ) sourceChar ;\n }\n else {\n pValueLength = ucnv_MBCSFromUChar32 ( myConverterData -> myConverterArray [ currentState ] , sourceChar , & pValue , useFallback ) ;\n if ( pValueLength > 0 ) {\n for ( n = ( pValueLength - 1 ) ;\n n >= 0 ;\n n -- ) {\n tmpTargetBuffer [ tmpTargetBufferLength ++ ] = ( uint8_t ) ( pValue >> ( n * 8 ) ) ;\n }\n }\n }\n for ( i = 0 ;\n i < tmpTargetBufferLength ;\n i ++ ) {\n if ( target < targetLimit ) {\n * target ++ = tmpTargetBuffer [ i ] ;\n }\n else {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n if ( * err == U_BUFFER_OVERFLOW_ERROR ) {\n for ( ;\n i < tmpTargetBufferLength ;\n i ++ ) {\n args -> converter -> charErrorBuffer [ args -> converter -> charErrorBufferLength ++ ] = tmpTargetBuffer [ i ] ;\n }\n }\n }\n else {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n myConverterData -> state = currentState ;\n args -> source = source ;\n args -> target = ( char * ) target ;\n }"}
{"idx": 7884, "target": 0, "func": "int rtp_get_fmt ( vlc_object_t * obj , es_format_t * p_fmt , const char * mux , rtp_format_t * rtp_fmt ) {\n assert ( p_fmt != NULL || mux != NULL ) ;\n rtp_fmt -> payload_type = 96 ;\n rtp_fmt -> cat = mux != NULL ? VIDEO_ES : p_fmt -> i_cat ;\n if ( rtp_fmt -> cat == AUDIO_ES ) {\n rtp_fmt -> clock_rate = p_fmt -> audio . i_rate ;\n rtp_fmt -> channels = p_fmt -> audio . i_channels ;\n }\n else rtp_fmt -> clock_rate = 90000 ;\n rtp_fmt -> bitrate = p_fmt != NULL ? p_fmt -> i_bitrate / 1000 : 0 ;\n rtp_fmt -> fmtp = NULL ;\n if ( mux != NULL ) {\n if ( strncmp ( mux , \"ts\" , 2 ) == 0 ) {\n rtp_fmt -> payload_type = 33 ;\n rtp_fmt -> ptname = \"MP2T\" ;\n }\n else rtp_fmt -> ptname = \"MP2P\" ;\n return VLC_SUCCESS ;\n }\n switch ( p_fmt -> i_codec ) {\n case VLC_CODEC_MULAW : if ( p_fmt -> audio . i_channels == 1 && p_fmt -> audio . i_rate == 8000 ) rtp_fmt -> payload_type = 0 ;\n rtp_fmt -> ptname = \"PCMU\" ;\n rtp_fmt -> pf_packetize = rtp_packetize_pcm ;\n break ;\n case VLC_CODEC_ALAW : if ( p_fmt -> audio . i_channels == 1 && p_fmt -> audio . i_rate == 8000 ) rtp_fmt -> payload_type = 8 ;\n rtp_fmt -> ptname = \"PCMA\" ;\n rtp_fmt -> pf_packetize = rtp_packetize_pcm ;\n break ;\n case VLC_CODEC_S16B : case VLC_CODEC_S16L : if ( p_fmt -> audio . i_channels == 1 && p_fmt -> audio . i_rate == 44100 ) {\n rtp_fmt -> payload_type = 11 ;\n }\n else if ( p_fmt -> audio . i_channels == 2 && p_fmt -> audio . i_rate == 44100 ) {\n rtp_fmt -> payload_type = 10 ;\n }\n rtp_fmt -> ptname = \"L16\" ;\n if ( p_fmt -> i_codec == VLC_CODEC_S16B ) rtp_fmt -> pf_packetize = rtp_packetize_pcm ;\n else rtp_fmt -> pf_packetize = rtp_packetize_swab ;\n break ;\n case VLC_CODEC_U8 : rtp_fmt -> ptname = \"L8\" ;\n rtp_fmt -> pf_packetize = rtp_packetize_pcm ;\n break ;\n case VLC_CODEC_S24B : rtp_fmt -> ptname = \"L24\" ;\n rtp_fmt -> pf_packetize = rtp_packetize_pcm ;\n break ;\n case VLC_CODEC_MPGA : rtp_fmt -> payload_type = 14 ;\n rtp_fmt -> ptname = \"MPA\" ;\n rtp_fmt -> clock_rate = 90000 ;\n rtp_fmt -> pf_packetize = rtp_packetize_mpa ;\n break ;\n case VLC_CODEC_MPGV : rtp_fmt -> payload_type = 32 ;\n rtp_fmt -> ptname = \"MPV\" ;\n rtp_fmt -> pf_packetize = rtp_packetize_mpv ;\n break ;\n case VLC_CODEC_ADPCM_G726 : switch ( p_fmt -> i_bitrate / 1000 ) {\n case 16 : rtp_fmt -> ptname = \"G726-16\" ;\n rtp_fmt -> pf_packetize = rtp_packetize_g726_16 ;\n break ;\n case 24 : rtp_fmt -> ptname = \"G726-24\" ;\n rtp_fmt -> pf_packetize = rtp_packetize_g726_24 ;\n break ;\n case 32 : rtp_fmt -> ptname = \"G726-32\" ;\n rtp_fmt -> pf_packetize = rtp_packetize_g726_32 ;\n break ;\n case 40 : rtp_fmt -> ptname = \"G726-40\" ;\n rtp_fmt -> pf_packetize = rtp_packetize_g726_40 ;\n break ;\n default : msg_Err ( obj , \"cannot add this stream (unsupported \" \"G.726 bit rate: %u)\" , p_fmt -> i_bitrate ) ;\n return VLC_EGENERIC ;\n }\n break ;\n case VLC_CODEC_A52 : rtp_fmt -> ptname = \"ac3\" ;\n rtp_fmt -> pf_packetize = rtp_packetize_ac3 ;\n break ;\n case VLC_CODEC_H263 : rtp_fmt -> ptname = \"H263-1998\" ;\n rtp_fmt -> pf_packetize = rtp_packetize_h263 ;\n break ;\n case VLC_CODEC_H264 : rtp_fmt -> ptname = \"H264\" ;\n rtp_fmt -> pf_packetize = rtp_packetize_h264 ;\n rtp_fmt -> fmtp = NULL ;\n if ( p_fmt -> i_extra > 0 ) {\n uint8_t * p_buffer = p_fmt -> p_extra ;\n int i_buffer = p_fmt -> i_extra ;\n char * p_64_sps = NULL ;\n char * p_64_pps = NULL ;\n char hexa [ 6 + 1 ] ;\n while ( i_buffer > 4 ) {\n int i_offset = 0 ;\n int i_size = 0 ;\n while ( p_buffer [ 0 ] != 0 || p_buffer [ 1 ] != 0 || p_buffer [ 2 ] != 1 ) {\n p_buffer ++ ;\n i_buffer -- ;\n if ( i_buffer == 0 ) break ;\n }\n if ( i_buffer < 4 || memcmp ( p_buffer , \"\\x00\\x00\\x01\" , 3 ) ) {\n msg_Dbg ( obj , \"No startcode found..\" ) ;\n break ;\n }\n p_buffer += 3 ;\n i_buffer -= 3 ;\n const int i_nal_type = p_buffer [ 0 ] & 0x1f ;\n msg_Dbg ( obj , \"we found a startcode for NAL with TYPE:%d\" , i_nal_type ) ;\n i_size = i_buffer ;\n for ( i_offset = 0 ;\n i_offset + 2 < i_buffer ;\n i_offset ++ ) {\n if ( ! memcmp ( p_buffer + i_offset , \"\\x00\\x00\\x01\" , 3 ) ) {\n while ( i_offset > 0 && 0 == p_buffer [ i_offset - 1 ] ) i_offset -- ;\n i_size = i_offset ;\n break ;\n }\n }\n if ( i_size == 0 ) {\n msg_Dbg ( obj , \"No-info found in nal \" ) ;\n continue ;\n }\n if ( i_nal_type == 7 ) {\n free ( p_64_sps ) ;\n p_64_sps = vlc_b64_encode_binary ( p_buffer , i_size ) ;\n sprintf_hexa ( hexa , & p_buffer [ 1 ] , 3 ) ;\n }\n else if ( i_nal_type == 8 ) {\n free ( p_64_pps ) ;\n p_64_pps = vlc_b64_encode_binary ( p_buffer , i_size ) ;\n }\n i_buffer -= i_size ;\n p_buffer += i_size ;\n }\n if ( p_64_sps && p_64_pps && ( asprintf ( & rtp_fmt -> fmtp , \"packetization-mode=1;\nprofile-level-id=%s;\n\" \"sprop-parameter-sets=%s,%s;\n\" , hexa , p_64_sps , p_64_pps ) == - 1 ) ) rtp_fmt -> fmtp = NULL ;\n free ( p_64_sps ) ;\n free ( p_64_pps ) ;\n }\n if ( rtp_fmt -> fmtp == NULL ) rtp_fmt -> fmtp = strdup ( \"packetization-mode=1\" ) ;\n break ;\n case VLC_CODEC_MP4V : {\n rtp_fmt -> ptname = \"MP4V-ES\" ;\n rtp_fmt -> pf_packetize = rtp_packetize_split ;\n if ( p_fmt -> i_extra > 0 ) {\n char hexa [ 2 * p_fmt -> i_extra + 1 ] ;\n sprintf_hexa ( hexa , p_fmt -> p_extra , p_fmt -> i_extra ) ;\n if ( asprintf ( & rtp_fmt -> fmtp , \"profile-level-id=3;\n config=%s;\n\" , hexa ) == - 1 ) rtp_fmt -> fmtp = NULL ;\n }\n break ;\n }\n case VLC_CODEC_MP4A : {\n if ( ! var_InheritBool ( obj , \"sout-rtp-mp4a-latm\" ) ) {\n char hexa [ 2 * p_fmt -> i_extra + 1 ] ;\n rtp_fmt -> ptname = \"mpeg4-generic\" ;\n rtp_fmt -> pf_packetize = rtp_packetize_mp4a ;\n sprintf_hexa ( hexa , p_fmt -> p_extra , p_fmt -> i_extra ) ;\n if ( asprintf ( & rtp_fmt -> fmtp , \"streamtype=5;\n profile-level-id=15;\n \" \"mode=AAC-hbr;\n config=%s;\n SizeLength=13;\n \" \"IndexLength=3;\n IndexDeltaLength=3;\n Profile=1;\n\" , hexa ) == - 1 ) rtp_fmt -> fmtp = NULL ;\n }\n else {\n char hexa [ 13 ] ;\n int i ;\n unsigned char config [ 6 ] ;\n unsigned int aacsrates [ 15 ] = {\n 96000 , 88200 , 64000 , 48000 , 44100 , 32000 , 24000 , 22050 , 16000 , 12000 , 11025 , 8000 , 7350 , 0 , 0 }\n ;\n for ( i = 0 ;\n i < 15 ;\n i ++ ) if ( p_fmt -> audio . i_rate == aacsrates [ i ] ) break ;\n config [ 0 ] = 0x40 ;\n config [ 1 ] = 0 ;\n config [ 2 ] = 0x20 | i ;\n config [ 3 ] = p_fmt -> audio . i_channels << 4 ;\n config [ 4 ] = 0x3f ;\n config [ 5 ] = 0xc0 ;\n rtp_fmt -> ptname = \"MP4A-LATM\" ;\n rtp_fmt -> pf_packetize = rtp_packetize_mp4a_latm ;\n sprintf_hexa ( hexa , config , 6 ) ;\n if ( asprintf ( & rtp_fmt -> fmtp , \"profile-level-id=15;\n \" \"object=2;\n cpresent=0;\n config=%s\" , hexa ) == - 1 ) rtp_fmt -> fmtp = NULL ;\n }\n break ;\n }\n case VLC_CODEC_AMR_NB : rtp_fmt -> ptname = \"AMR\" ;\n rtp_fmt -> fmtp = strdup ( \"octet-align=1\" ) ;\n rtp_fmt -> pf_packetize = rtp_packetize_amr ;\n break ;\n case VLC_CODEC_AMR_WB : rtp_fmt -> ptname = \"AMR-WB\" ;\n rtp_fmt -> fmtp = strdup ( \"octet-align=1\" ) ;\n rtp_fmt -> pf_packetize = rtp_packetize_amr ;\n break ;\n case VLC_CODEC_SPEEX : rtp_fmt -> ptname = \"SPEEX\" ;\n rtp_fmt -> pf_packetize = rtp_packetize_spx ;\n break ;\n case VLC_CODEC_VORBIS : rtp_fmt -> ptname = \"vorbis\" ;\n rtp_fmt -> pf_packetize = rtp_packetize_xiph ;\n if ( p_fmt -> i_extra > 0 ) {\n rtp_fmt -> fmtp = NULL ;\n char * config = rtp_xiph_b64_oob_config ( p_fmt -> p_extra , p_fmt -> i_extra , NULL ) ;\n if ( config == NULL ) break ;\n if ( asprintf ( & rtp_fmt -> fmtp , \"configuration=%s;\n\" , config ) == - 1 ) rtp_fmt -> fmtp = NULL ;\n free ( config ) ;\n }\n break ;\n case VLC_CODEC_THEORA : rtp_fmt -> ptname = \"theora\" ;\n rtp_fmt -> pf_packetize = rtp_packetize_xiph ;\n if ( p_fmt -> i_extra > 0 ) {\n rtp_fmt -> fmtp = NULL ;\n uint8_t pixel_fmt , c1 , c2 ;\n char * config = rtp_xiph_b64_oob_config ( p_fmt -> p_extra , p_fmt -> i_extra , & pixel_fmt ) ;\n if ( config == NULL ) break ;\n if ( pixel_fmt == 1 ) {\n free ( config ) ;\n break ;\n }\n switch ( pixel_fmt ) {\n case 0 : c1 = 2 ;\n c2 = 0 ;\n break ;\n case 2 : c1 = c2 = 2 ;\n break ;\n case 3 : c1 = c2 = 4 ;\n break ;\n default : assert ( 0 ) ;\n }\n if ( asprintf ( & rtp_fmt -> fmtp , \"sampling=YCbCr-4:%d:%d;\n width=%d;\n height=%d;\n \" \"delivery-method=inline;\n configuration=%s;\n \" \"delivery-method=in_band;\n\" , c1 , c2 , p_fmt -> video . i_width , p_fmt -> video . i_height , config ) == - 1 ) rtp_fmt -> fmtp = NULL ;\n free ( config ) ;\n }\n break ;\n case VLC_CODEC_ITU_T140 : rtp_fmt -> ptname = \"t140\" ;\n rtp_fmt -> clock_rate = 1000 ;\n rtp_fmt -> pf_packetize = rtp_packetize_t140 ;\n break ;\n case VLC_CODEC_GSM : rtp_fmt -> payload_type = 3 ;\n rtp_fmt -> ptname = \"GSM\" ;\n rtp_fmt -> pf_packetize = rtp_packetize_split ;\n break ;\n case VLC_CODEC_OPUS : if ( p_fmt -> audio . i_channels > 2 ) {\n msg_Err ( obj , \"Multistream opus not supported in RTP\" \" (having %d channels input)\" , p_fmt -> audio . i_channels ) ;\n return VLC_EGENERIC ;\n }\n rtp_fmt -> ptname = \"opus\" ;\n rtp_fmt -> pf_packetize = rtp_packetize_simple ;\n rtp_fmt -> clock_rate = 48000 ;\n rtp_fmt -> channels = 2 ;\n if ( p_fmt -> audio . i_channels == 2 ) rtp_fmt -> fmtp = strdup ( \"sprop-stereo=1\" ) ;\n break ;\n case VLC_CODEC_VP8 : rtp_fmt -> ptname = \"VP8\" ;\n rtp_fmt -> pf_packetize = rtp_packetize_vp8 ;\n break ;\n case VLC_CODEC_MJPG : case VLC_CODEC_JPEG : rtp_fmt -> ptname = \"JPEG\" ;\n rtp_fmt -> payload_type = 26 ;\n rtp_fmt -> pf_packetize = rtp_packetize_jpeg ;\n break ;\n default : msg_Err ( obj , \"cannot add this stream (unsupported \" \"codec: %4.4s)\" , ( char * ) & p_fmt -> i_codec ) ;\n return VLC_EGENERIC ;\n }\n return VLC_SUCCESS ;\n }"}
{"idx": 7885, "target": 1, "func": "void vpx_svc_release ( SvcContext * svc_ctx ) {\n SvcInternal * si ;\n if ( svc_ctx == NULL ) return ;\n si = ( SvcInternal * ) svc_ctx -> internal ;\n if ( si != NULL ) {\n fd_free ( si -> frame_temp ) ;\n fd_free_list ( si -> frame_list ) ;\n if ( si -> rc_stats_buf ) {\n free ( si -> rc_stats_buf ) ;\n }\n free ( si ) ;\n svc_ctx -> internal = NULL ;\n }\n }"}
{"idx": 7886, "target": 0, "func": "static int SpoolssReplyClosePrinter_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , NULL , NULL , FALSE , TRUE ) ;\n return offset ;\n }"}
{"idx": 7887, "target": 0, "func": "static void pdf_process_grestore ( fz_context * ctx , pdf_processor * proc , pdf_csi * csi ) {\n if ( csi -> gstate > 0 ) {\n if ( proc -> op_Q ) proc -> op_Q ( ctx , proc ) ;\n -- csi -> gstate ;\n }\n }"}
{"idx": 7888, "target": 0, "func": "static void trash_file ( CommonJob * job , GFile * file , gboolean * skipped_file , SourceInfo * source_info , TransferInfo * transfer_info , gboolean toplevel , GList * * to_delete ) {\n GError * error ;\n char * primary , * secondary , * details ;\n int response ;\n if ( should_skip_file ( job , file ) ) {\n * skipped_file = TRUE ;\n return ;\n }\n error = NULL ;\n if ( g_file_trash ( file , job -> cancellable , & error ) ) {\n transfer_info -> num_files ++ ;\n nautilus_file_changes_queue_file_removed ( file ) ;\n if ( job -> undo_info != NULL ) {\n nautilus_file_undo_info_trash_add_file ( NAUTILUS_FILE_UNDO_INFO_TRASH ( job -> undo_info ) , file ) ;\n }\n report_trash_progress ( job , source_info , transfer_info ) ;\n return ;\n }\n if ( job -> skip_all_error ) {\n * skipped_file = TRUE ;\n goto skip ;\n }\n if ( job -> delete_all ) {\n * to_delete = g_list_prepend ( * to_delete , file ) ;\n goto skip ;\n }\n primary = f ( _ ( \"\u201c%B\u201d can\u2019t be put in the trash. Do you want to delete it immediately?\" ) , file ) ;\n details = NULL ;\n secondary = NULL ;\n if ( ! IS_IO_ERROR ( error , NOT_SUPPORTED ) ) {\n details = error -> message ;\n }\n else if ( ! g_file_is_native ( file ) ) {\n secondary = f ( _ ( \"This remote location does not support sending items to the trash.\" ) ) ;\n }\n response = run_question ( job , primary , secondary , details , ( source_info -> num_files - transfer_info -> num_files ) > 1 , CANCEL , SKIP_ALL , SKIP , DELETE_ALL , DELETE , NULL ) ;\n if ( response == 0 || response == GTK_RESPONSE_DELETE_EVENT ) {\n ( ( DeleteJob * ) job ) -> user_cancel = TRUE ;\n abort_job ( job ) ;\n }\n else if ( response == 1 ) {\n * skipped_file = TRUE ;\n job -> skip_all_error = TRUE ;\n }\n else if ( response == 2 ) {\n * skipped_file = TRUE ;\n job -> skip_all_error = TRUE ;\n }\n else if ( response == 3 ) {\n * to_delete = g_list_prepend ( * to_delete , file ) ;\n job -> delete_all = TRUE ;\n }\n else if ( response == 4 ) {\n * to_delete = g_list_prepend ( * to_delete , file ) ;\n }\n skip : g_error_free ( error ) ;\n }"}
{"idx": 7889, "target": 1, "func": "static void preview_obmc ( MpegEncContext * s ) {\n GetBitContext gb = s -> gb ;\n int cbpc , i , pred_x , pred_y , mx , my ;\n int16_t * mot_val ;\n const int xy = s -> mb_x + 1 + s -> mb_y * s -> mb_stride ;\n const int stride = s -> b8_stride * 2 ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) s -> block_index [ i ] += 2 ;\n for ( i = 4 ;\n i < 6 ;\n i ++ ) s -> block_index [ i ] += 1 ;\n s -> mb_x ++ ;\n assert ( s -> pict_type == AV_PICTURE_TYPE_P ) ;\n do {\n if ( get_bits1 ( & s -> gb ) ) {\n mot_val = s -> current_picture . f . motion_val [ 0 ] [ s -> block_index [ 0 ] ] ;\n mot_val [ 0 ] = mot_val [ 2 ] = mot_val [ 0 + stride ] = mot_val [ 2 + stride ] = 0 ;\n mot_val [ 1 ] = mot_val [ 3 ] = mot_val [ 1 + stride ] = mot_val [ 3 + stride ] = 0 ;\n s -> current_picture . f . mb_type [ xy ] = MB_TYPE_SKIP | MB_TYPE_16x16 | MB_TYPE_L0 ;\n goto end ;\n }\n cbpc = get_vlc2 ( & s -> gb , ff_h263_inter_MCBPC_vlc . table , INTER_MCBPC_VLC_BITS , 2 ) ;\n }\n while ( cbpc == 20 ) ;\n if ( cbpc & 4 ) {\n s -> current_picture . f . mb_type [ xy ] = MB_TYPE_INTRA ;\n }\n else {\n get_vlc2 ( & s -> gb , ff_h263_cbpy_vlc . table , CBPY_VLC_BITS , 1 ) ;\n if ( cbpc & 8 ) {\n if ( s -> modified_quant ) {\n if ( get_bits1 ( & s -> gb ) ) skip_bits ( & s -> gb , 1 ) ;\n else skip_bits ( & s -> gb , 5 ) ;\n }\n else skip_bits ( & s -> gb , 2 ) ;\n }\n if ( ( cbpc & 16 ) == 0 ) {\n s -> current_picture . f . mb_type [ xy ] = MB_TYPE_16x16 | MB_TYPE_L0 ;\n mot_val = ff_h263_pred_motion ( s , 0 , 0 , & pred_x , & pred_y ) ;\n if ( s -> umvplus ) mx = h263p_decode_umotion ( s , pred_x ) ;\n else mx = ff_h263_decode_motion ( s , pred_x , 1 ) ;\n if ( s -> umvplus ) my = h263p_decode_umotion ( s , pred_y ) ;\n else my = ff_h263_decode_motion ( s , pred_y , 1 ) ;\n mot_val [ 0 ] = mot_val [ 2 ] = mot_val [ 0 + stride ] = mot_val [ 2 + stride ] = mx ;\n mot_val [ 1 ] = mot_val [ 3 ] = mot_val [ 1 + stride ] = mot_val [ 3 + stride ] = my ;\n }\n else {\n s -> current_picture . f . mb_type [ xy ] = MB_TYPE_8x8 | MB_TYPE_L0 ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n mot_val = ff_h263_pred_motion ( s , i , 0 , & pred_x , & pred_y ) ;\n if ( s -> umvplus ) mx = h263p_decode_umotion ( s , pred_x ) ;\n else mx = ff_h263_decode_motion ( s , pred_x , 1 ) ;\n if ( s -> umvplus ) my = h263p_decode_umotion ( s , pred_y ) ;\n else my = ff_h263_decode_motion ( s , pred_y , 1 ) ;\n if ( s -> umvplus && ( mx - pred_x ) == 1 && ( my - pred_y ) == 1 ) skip_bits1 ( & s -> gb ) ;\n mot_val [ 0 ] = mx ;\n mot_val [ 1 ] = my ;\n }\n }\n }\n end : for ( i = 0 ;\n i < 4 ;\n i ++ ) s -> block_index [ i ] -= 2 ;\n for ( i = 4 ;\n i < 6 ;\n i ++ ) s -> block_index [ i ] -= 1 ;\n s -> mb_x -- ;\n s -> gb = gb ;\n }"}
{"idx": 7890, "target": 0, "func": "void check_eol_junk_line ( const char * line ) {\n const char * p = line ;\n DBUG_ENTER ( \"check_eol_junk_line\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"line: %s\" , line ) ) ;\n if ( * p && ! strncmp ( p , delimiter , delimiter_length ) ) die ( \"Extra delimiter \\\"%s\\\" found\" , delimiter ) ;\n if ( * p && * p != '#' ) {\n if ( * p == '\\n' ) die ( \"Missing delimiter\" ) ;\n die ( \"End of line junk detected: \\\"%s\\\"\" , p ) ;\n }\n DBUG_VOID_RETURN ;\n }"}
{"idx": 7891, "target": 0, "func": "fz_xml * xps_lookup_alternate_content ( fz_xml * node ) {\n for ( node = fz_xml_down ( node ) ;\n node ;\n node = fz_xml_next ( node ) ) {\n if ( ! strcmp ( fz_xml_tag ( node ) , \"mc:Choice\" ) && fz_xml_att ( node , \"Requires\" ) ) {\n char list [ 64 ] ;\n char * next = list , * item ;\n fz_strlcpy ( list , fz_xml_att ( node , \"Requires\" ) , sizeof ( list ) ) ;\n while ( ( item = fz_strsep ( & next , \" \\t\\r\\n\" ) ) != NULL && ( ! * item || ! strcmp ( item , \"xps\" ) ) ) ;\n if ( ! item ) return fz_xml_down ( node ) ;\n }\n else if ( ! strcmp ( fz_xml_tag ( node ) , \"mc:Fallback\" ) ) return fz_xml_down ( node ) ;\n }\n return NULL ;\n }"}
{"idx": 7892, "target": 0, "func": "static int init_ralf_vlc ( VLC * vlc , const uint8_t * data , int elems ) {\n uint8_t lens [ MAX_ELEMS ] ;\n uint16_t codes [ MAX_ELEMS ] ;\n int counts [ 17 ] , prefixes [ 18 ] ;\n int i , cur_len ;\n int max_bits = 0 ;\n int nb = 0 ;\n for ( i = 0 ;\n i <= 16 ;\n i ++ ) counts [ i ] = 0 ;\n for ( i = 0 ;\n i < elems ;\n i ++ ) {\n cur_len = ( nb ? * data & 0xF : * data >> 4 ) + 1 ;\n counts [ cur_len ] ++ ;\n max_bits = FFMAX ( max_bits , cur_len ) ;\n lens [ i ] = cur_len ;\n data += nb ;\n nb ^= 1 ;\n }\n prefixes [ 1 ] = 0 ;\n for ( i = 1 ;\n i <= 16 ;\n i ++ ) prefixes [ i + 1 ] = ( prefixes [ i ] + counts [ i ] ) << 1 ;\n for ( i = 0 ;\n i < elems ;\n i ++ ) codes [ i ] = prefixes [ lens [ i ] ] ++ ;\n return ff_init_vlc_sparse ( vlc , FFMIN ( max_bits , 9 ) , elems , lens , 1 , 1 , codes , 2 , 2 , NULL , 0 , 0 , 0 ) ;\n }"}
{"idx": 7893, "target": 0, "func": "static void erase_line ( AVCodecContext * avctx , int xoffset , int xlength ) {\n AnsiContext * s = avctx -> priv_data ;\n int i ;\n for ( i = 0 ;\n i < s -> font_height ;\n i ++ ) memset ( s -> frame -> data [ 0 ] + ( s -> y + i ) * s -> frame -> linesize [ 0 ] + xoffset , DEFAULT_BG_COLOR , xlength ) ;\n }"}
{"idx": 7894, "target": 0, "func": "static void ucln_destructor ( ) {\n UCLN_CLEAN_ME_UP ;\n }"}
{"idx": 7895, "target": 0, "func": "static int dissect_h245_H222Capability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_H222Capability , H222Capability_sequence ) ;\n return offset ;\n }"}
{"idx": 7896, "target": 0, "func": "static void U_CALLCONV T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n const UChar * mySource = args -> source ;\n unsigned char * myTarget ;\n int32_t * myOffsets ;\n const UChar * sourceLimit = args -> sourceLimit ;\n const unsigned char * targetLimit = ( unsigned char * ) args -> targetLimit ;\n UChar32 ch , ch2 ;\n unsigned int indexToWrite ;\n unsigned char temp [ sizeof ( uint32_t ) ] ;\n int32_t offsetNum = 0 ;\n if ( mySource >= sourceLimit ) {\n return ;\n }\n if ( args -> converter -> fromUnicodeStatus == UCNV_NEED_TO_WRITE_BOM ) {\n static const char bom [ ] = {\n ( char ) 0xff , ( char ) 0xfe , 0 , 0 }\n ;\n ucnv_fromUWriteBytes ( args -> converter , bom , 4 , & args -> target , args -> targetLimit , & args -> offsets , - 1 , err ) ;\n args -> converter -> fromUnicodeStatus = 0 ;\n }\n myTarget = ( unsigned char * ) args -> target ;\n myOffsets = args -> offsets ;\n temp [ 3 ] = 0 ;\n if ( args -> converter -> fromUChar32 ) {\n ch = args -> converter -> fromUChar32 ;\n args -> converter -> fromUChar32 = 0 ;\n goto lowsurogate ;\n }\n while ( mySource < sourceLimit && myTarget < targetLimit ) {\n ch = * ( mySource ++ ) ;\n if ( U16_IS_SURROGATE ( ch ) ) {\n if ( U16_IS_LEAD ( ch ) ) {\n lowsurogate : if ( mySource < sourceLimit ) {\n ch2 = * mySource ;\n if ( U16_IS_TRAIL ( ch2 ) ) {\n ch = ( ( ch - SURROGATE_HIGH_START ) << HALF_SHIFT ) + ch2 + SURROGATE_LOW_BASE ;\n mySource ++ ;\n }\n else {\n args -> converter -> fromUChar32 = ch ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n }\n else {\n args -> converter -> fromUChar32 = ch ;\n if ( args -> flush ) {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n break ;\n }\n }\n else {\n args -> converter -> fromUChar32 = ch ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n }\n temp [ 2 ] = ( uint8_t ) ( ch >> 16 & 0x1F ) ;\n temp [ 1 ] = ( uint8_t ) ( ch >> 8 ) ;\n temp [ 0 ] = ( uint8_t ) ( ch ) ;\n for ( indexToWrite = 0 ;\n indexToWrite <= sizeof ( uint32_t ) - 1 ;\n indexToWrite ++ ) {\n if ( myTarget < targetLimit ) {\n * ( myTarget ++ ) = temp [ indexToWrite ] ;\n * ( myOffsets ++ ) = offsetNum ;\n }\n else {\n args -> converter -> charErrorBuffer [ args -> converter -> charErrorBufferLength ++ ] = temp [ indexToWrite ] ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n offsetNum = offsetNum + 1 + ( temp [ 2 ] != 0 ) ;\n }\n if ( mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS ( * err ) ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n args -> target = ( char * ) myTarget ;\n args -> source = mySource ;\n args -> offsets = myOffsets ;\n }"}
{"idx": 7897, "target": 0, "func": "static inline char * upcase_string ( char * dst , size_t dst_size , const char * src ) {\n int i ;\n for ( i = 0 ;\n src [ i ] && i < dst_size - 1 ;\n i ++ ) dst [ i ] = av_toupper ( src [ i ] ) ;\n dst [ i ] = 0 ;\n return dst ;\n }"}
{"idx": 7898, "target": 0, "func": "static FILE * _Gen816Enc ( SplineFont * sf , int * tlen , EncMap * map ) {\n int i , j , complained , pos , k , subheadindex , jj , isbig5 = false ;\n uint16 table [ 256 ] ;\n struct subhead subheads [ 128 ] ;\n uint16 * glyphs ;\n uint16 tempglyphs [ 256 ] ;\n int base , lbase , basebound , subheadcnt , planesize , plane0size ;\n int base2 , base2bound ;\n FILE * sub ;\n const char * encname = map -> enc -> iconv_name != NULL ? map -> enc -> iconv_name : map -> enc -> enc_name ;\n * tlen = 0 ;\n base2 = - 1 ;\n base2bound = - 2 ;\n if ( map -> enc -> is_tradchinese && strstrmatch ( encname , \"hkscs\" ) != NULL ) {\n base = 0x81 ;\n basebound = 0xfe ;\n subheadcnt = basebound - base + 1 ;\n lbase = 0x40 ;\n planesize = 191 ;\n }\n else if ( map -> enc -> is_tradchinese || sf -> uni_interp == ui_trad_chinese ) {\n base = 0xa1 ;\n basebound = 0xf9 ;\n subheadcnt = basebound - base + 1 ;\n lbase = 0x40 ;\n planesize = 191 ;\n isbig5 = true ;\n }\n else if ( strstrmatch ( encname , \"euc\" ) != NULL ) {\n base = 0xa1 ;\n basebound = 0xfd ;\n lbase = 0xa1 ;\n subheadcnt = basebound - base + 1 ;\n planesize = 0xfe - lbase + 1 ;\n }\n else if ( strstrmatch ( encname , \"johab\" ) != NULL ) {\n base = 0x84 ;\n basebound = 0xf9 ;\n lbase = 0x31 ;\n subheadcnt = basebound - base + 1 ;\n planesize = 0xfe - 0x31 + 1 ;\n }\n else if ( strstrmatch ( encname , \"sjis\" ) != NULL || strstrmatch ( encname , \"cp932\" ) != NULL ) {\n base = 129 ;\n basebound = 159 ;\n lbase = 64 ;\n planesize = 252 - lbase + 1 ;\n base2 = 0xe0 ;\n for ( base2bound = 0xfc00 ;\n base2bound > 0xefff ;\n -- base2bound ) if ( base2bound < map -> enccount && map -> map [ base2bound ] != - 1 && SCWorthOutputting ( sf -> glyphs [ map -> map [ base2bound ] ] ) ) break ;\n base2bound >>= 8 ;\n subheadcnt = basebound - base + 1 + base2bound - base2 + 1 ;\n }\n else {\n IError ( \"Unsupported 8/16 encoding %s\\n\" , map -> enc -> enc_name ) ;\n return ( NULL ) ;\n }\n plane0size = base2 == - 1 ? base : base2 ;\n i = 0 ;\n if ( base2 != - 1 ) {\n for ( i = basebound ;\n i < base2 && i < map -> enccount ;\n ++ i ) if ( map -> map [ i ] == - 1 ) continue ;\n else if ( SCWorthOutputting ( sf -> glyphs [ map -> map [ i ] ] ) ) break ;\n if ( i == base2 || i == map -> enccount ) i = 0 ;\n }\n if ( i == 0 ) {\n for ( i = 0 ;\n i < base && i < map -> enccount ;\n ++ i ) if ( map -> map [ i ] == - 1 ) continue ;\n else if ( SCWorthOutputting ( sf -> glyphs [ map -> map [ i ] ] ) ) break ;\n }\n if ( base2 != - 1 ) {\n for ( i = base ;\n i <= basebound && i < map -> enccount ;\n ++ i ) if ( map -> map [ i ] != - 1 && SCWorthOutputting ( sf -> glyphs [ map -> map [ i ] ] ) ) {\n ff_post_error ( _ ( \"Bad Encoding\" ) , _ ( \"There is a single byte character (%d) using one of the slots needed for double byte characters\" ) , i ) ;\n break ;\n }\n if ( i == basebound + 1 ) for ( i = base2 ;\n i < 256 && i < map -> enccount ;\n ++ i ) if ( map -> map [ i ] != - 1 && SCWorthOutputting ( sf -> glyphs [ map -> map [ i ] ] ) ) {\n ff_post_error ( _ ( \"Bad Encoding\" ) , _ ( \"There is a single byte character (%d) using one of the slots needed for double byte characters\" ) , i ) ;\n break ;\n }\n }\n else {\n for ( i = base ;\n i <= 256 && i < map -> enccount ;\n ++ i ) if ( map -> map [ i ] != - 1 && SCWorthOutputting ( sf -> glyphs [ map -> map [ i ] ] ) ) {\n ff_post_error ( _ ( \"Bad Encoding\" ) , _ ( \"There is a single byte character (%d) using one of the slots needed for double byte characters\" ) , i ) ;\n break ;\n }\n }\n for ( i = 256 ;\n i < ( base << 8 ) && i < map -> enccount ;\n ++ i ) if ( map -> map [ i ] != - 1 && SCWorthOutputting ( sf -> glyphs [ map -> map [ i ] ] ) ) {\n ff_post_error ( _ ( \"Bad Encoding\" ) , _ ( \"There is a character (%d) which cannot be encoded\" ) , i ) ;\n break ;\n }\n if ( i == ( base << 8 ) && base2 == - 1 ) for ( i = ( ( basebound + 1 ) << 8 ) ;\n i < 0x10000 && i < map -> enccount ;\n ++ i ) if ( map -> map [ i ] != - 1 && SCWorthOutputting ( sf -> glyphs [ map -> map [ i ] ] ) ) {\n ff_post_error ( _ ( \"Bad Encoding\" ) , _ ( \"There is a character (%d) which cannot be encoded\" ) , i ) ;\n break ;\n }\n memset ( table , '\\0' , sizeof ( table ) ) ;\n for ( i = base ;\n i <= basebound ;\n ++ i ) table [ i ] = 8 * ( i - base + 1 ) ;\n for ( i = base2 ;\n i <= base2bound ;\n ++ i ) table [ i ] = 8 * ( i - base2 + basebound - base + 1 + 1 ) ;\n memset ( subheads , '\\0' , sizeof ( subheads ) ) ;\n subheads [ 0 ] . first = 0 ;\n subheads [ 0 ] . cnt = plane0size ;\n for ( i = 1 ;\n i < subheadcnt + 1 ;\n ++ i ) {\n subheads [ i ] . first = lbase ;\n subheads [ i ] . cnt = planesize ;\n }\n glyphs = calloc ( subheadcnt * planesize + plane0size , sizeof ( uint16 ) ) ;\n subheads [ 0 ] . rangeoff = 0 ;\n for ( i = 0 ;\n i < plane0size && i < map -> enccount ;\n ++ i ) if ( map -> map [ i ] != - 1 && sf -> glyphs [ map -> map [ i ] ] != NULL && sf -> glyphs [ map -> map [ i ] ] -> ttf_glyph != - 1 ) glyphs [ i ] = sf -> glyphs [ map -> map [ i ] ] -> ttf_glyph ;\n pos = 1 ;\n complained = false ;\n subheadindex = 1 ;\n for ( jj = 0 ;\n jj < 2 || ( base2 == - 1 && jj < 1 ) ;\n ++ jj ) for ( j = ( ( jj == 0 ? base : base2 ) << 8 ) ;\n j <= ( ( jj == 0 ? basebound : base2bound ) << 8 ) ;\n j += 0x100 ) {\n for ( i = 0 ;\n i < lbase ;\n ++ i ) if ( ! complained && map -> map [ i + j ] != - 1 && SCWorthOutputting ( sf -> glyphs [ map -> map [ i + j ] ] ) ) {\n ff_post_error ( _ ( \"Bad Encoding\" ) , _ ( \"There is a character (%d) which is not normally in the encoding\" ) , i + j ) ;\n complained = true ;\n }\n if ( isbig5 ) {\n for ( i = 0x7f ;\n i < 0xa1 ;\n ++ i ) if ( ! complained && map -> map [ i + j ] != - 1 && SCWorthOutputting ( sf -> glyphs [ map -> map [ i + j ] ] ) ) {\n ff_post_error ( _ ( \"Bad Encoding\" ) , _ ( \"There is a character (%d) which is not normally in the encoding\" ) , i + j ) ;\n complained = true ;\n }\n }\n memset ( tempglyphs , 0 , sizeof ( tempglyphs ) ) ;\n for ( i = 0 ;\n i < planesize ;\n ++ i ) if ( map -> map [ j + lbase + i ] != - 1 && sf -> glyphs [ map -> map [ j + lbase + i ] ] != NULL && sf -> glyphs [ map -> map [ j + lbase + i ] ] -> ttf_glyph != - 1 ) tempglyphs [ i ] = sf -> glyphs [ map -> map [ j + lbase + i ] ] -> ttf_glyph ;\n for ( i = 1 ;\n i < pos ;\n ++ i ) {\n int delta = 0 ;\n for ( k = 0 ;\n k < planesize ;\n ++ k ) if ( tempglyphs [ k ] == 0 && glyphs [ plane0size + ( i - 1 ) * planesize + k ] == 0 ) ;\n else if ( tempglyphs [ k ] == 0 || glyphs [ plane0size + ( i - 1 ) * planesize + k ] == 0 ) break ;\n else if ( delta == 0 ) delta = ( uint16 ) ( tempglyphs [ k ] - glyphs [ plane0size + ( i - 1 ) * planesize + k ] ) ;\n else if ( tempglyphs [ k ] == ( uint16 ) ( glyphs [ plane0size + ( i - 1 ) * planesize + k ] + delta ) ) ;\n else break ;\n if ( k == planesize ) {\n subheads [ subheadindex ] . delta = delta ;\n subheads [ subheadindex ] . rangeoff = plane0size + ( i - 1 ) * planesize ;\n break ;\n }\n }\n if ( subheads [ subheadindex ] . rangeoff == 0 ) {\n memcpy ( glyphs + ( pos - 1 ) * planesize + plane0size , tempglyphs , planesize * sizeof ( uint16 ) ) ;\n subheads [ subheadindex ] . rangeoff = plane0size + ( pos ++ - 1 ) * planesize ;\n }\n ++ subheadindex ;\n }\n for ( i = 0 ;\n i < subheadcnt + 1 ;\n ++ i ) subheads [ i ] . rangeoff = subheads [ i ] . rangeoff * sizeof ( uint16 ) + ( subheadcnt - i ) * sizeof ( struct subhead ) + sizeof ( uint16 ) ;\n sub = tmpfile ( ) ;\n if ( sub == NULL ) return ( NULL ) ;\n putshort ( sub , 2 ) ;\n putshort ( sub , 0 ) ;\n putshort ( sub , 0 ) ;\n for ( i = 0 ;\n i < 256 ;\n ++ i ) putshort ( sub , table [ i ] ) ;\n for ( i = 0 ;\n i < subheadcnt + 1 ;\n ++ i ) {\n putshort ( sub , subheads [ i ] . first ) ;\n putshort ( sub , subheads [ i ] . cnt ) ;\n putshort ( sub , subheads [ i ] . delta ) ;\n putshort ( sub , subheads [ i ] . rangeoff ) ;\n }\n for ( i = 0 ;\n i < ( pos - 1 ) * planesize + plane0size ;\n ++ i ) putshort ( sub , glyphs [ i ] ) ;\n free ( glyphs ) ;\n * tlen = ftell ( sub ) ;\n fseek ( sub , 2 , SEEK_SET ) ;\n putshort ( sub , * tlen ) ;\n rewind ( sub ) ;\n return ( sub ) ;\n }"}
{"idx": 7899, "target": 0, "func": "const char * fmtQualifiedId ( int remoteVersion , const char * schema , const char * id ) {\n PQExpBuffer id_return ;\n PQExpBuffer lcl_pqexp = createPQExpBuffer ( ) ;\n if ( remoteVersion >= 70300 && schema && * schema ) {\n appendPQExpBuffer ( lcl_pqexp , \"%s.\" , fmtId ( schema ) ) ;\n }\n appendPQExpBufferStr ( lcl_pqexp , fmtId ( id ) ) ;\n id_return = getLocalPQExpBuffer ( ) ;\n appendPQExpBufferStr ( id_return , lcl_pqexp -> data ) ;\n destroyPQExpBuffer ( lcl_pqexp ) ;\n return id_return -> data ;\n }"}
{"idx": 7900, "target": 1, "func": "static __always_inline __u16 __be16_to_cpup ( const __be16 * p ) {\n return __swab16p ( ( __u16 * ) p ) ;\n }"}
{"idx": 7901, "target": 0, "func": "static void http_dispatcher_test ( void ) {\n short port = - 1 ;\n struct evhttp_connection * evcon = NULL ;\n struct evhttp_request * req = NULL ;\n test_ok = 0 ;\n fprintf ( stdout , \"Testing HTTP Dispatcher: \" ) ;\n http = http_setup ( & port , NULL ) ;\n evcon = evhttp_connection_new ( \"127.0.0.1\" , port ) ;\n if ( evcon == NULL ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n evhttp_connection_set_local_address ( evcon , \"127.0.0.1\" ) ;\n req = evhttp_request_new ( http_dispatcher_test_done , NULL ) ;\n if ( req == NULL ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n evhttp_add_header ( req -> output_headers , \"Host\" , \"somehost\" ) ;\n if ( evhttp_make_request ( evcon , req , EVHTTP_REQ_GET , \"/?arg=val\" ) == - 1 ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n event_dispatch ( ) ;\n evhttp_connection_free ( evcon ) ;\n evhttp_free ( http ) ;\n if ( test_ok != 1 ) {\n fprintf ( stdout , \"FAILED: %d\\n\" , test_ok ) ;\n exit ( 1 ) ;\n }\n fprintf ( stdout , \"OK\\n\" ) ;\n }"}
{"idx": 7902, "target": 0, "func": "static bfd_boolean srec_get_section_contents ( bfd * abfd , asection * section , void * location , file_ptr offset , bfd_size_type count ) {\n if ( count == 0 ) return TRUE ;\n if ( offset + count < count || offset + count > section -> size ) {\n bfd_set_error ( bfd_error_invalid_operation ) ;\n return FALSE ;\n }\n if ( section -> used_by_bfd == NULL ) {\n section -> used_by_bfd = bfd_alloc ( abfd , section -> size ) ;\n if ( section -> used_by_bfd == NULL ) return FALSE ;\n if ( ! srec_read_section ( abfd , section , ( bfd_byte * ) section -> used_by_bfd ) ) return FALSE ;\n }\n memcpy ( location , ( bfd_byte * ) section -> used_by_bfd + offset , ( size_t ) count ) ;\n return TRUE ;\n }"}
{"idx": 7903, "target": 0, "func": "static void parse_global_config ( struct VpxEncoderConfig * global , char * * argv ) {\n char * * argi , * * argj ;\n struct arg arg ;\n memset ( global , 0 , sizeof ( * global ) ) ;\n global -> codec = get_vpx_encoder_by_index ( 0 ) ;\n global -> passes = 0 ;\n global -> color_type = I420 ;\n global -> deadline = VPX_DL_GOOD_QUALITY ;\n for ( argi = argj = argv ;\n ( * argj = * argi ) ;\n argi += arg . argv_step ) {\n arg . argv_step = 1 ;\n if ( arg_match ( & arg , & codecarg , argi ) ) {\n global -> codec = get_vpx_encoder_by_name ( arg . val ) ;\n if ( ! global -> codec ) die ( \"Error: Unrecognized argument (%s) to --codec\\n\" , arg . val ) ;\n }\n else if ( arg_match ( & arg , & passes , argi ) ) {\n global -> passes = arg_parse_uint ( & arg ) ;\n if ( global -> passes < 1 || global -> passes > 2 ) die ( \"Error: Invalid number of passes (%d)\\n\" , global -> passes ) ;\n }\n else if ( arg_match ( & arg , & pass_arg , argi ) ) {\n global -> pass = arg_parse_uint ( & arg ) ;\n if ( global -> pass < 1 || global -> pass > 2 ) die ( \"Error: Invalid pass selected (%d)\\n\" , global -> pass ) ;\n }\n else if ( arg_match ( & arg , & usage , argi ) ) global -> usage = arg_parse_uint ( & arg ) ;\n else if ( arg_match ( & arg , & deadline , argi ) ) global -> deadline = arg_parse_uint ( & arg ) ;\n else if ( arg_match ( & arg , & best_dl , argi ) ) global -> deadline = VPX_DL_BEST_QUALITY ;\n else if ( arg_match ( & arg , & good_dl , argi ) ) global -> deadline = VPX_DL_GOOD_QUALITY ;\n else if ( arg_match ( & arg , & rt_dl , argi ) ) global -> deadline = VPX_DL_REALTIME ;\n else if ( arg_match ( & arg , & use_yv12 , argi ) ) global -> color_type = YV12 ;\n else if ( arg_match ( & arg , & use_i420 , argi ) ) global -> color_type = I420 ;\n else if ( arg_match ( & arg , & use_i422 , argi ) ) global -> color_type = I422 ;\n else if ( arg_match ( & arg , & use_i444 , argi ) ) global -> color_type = I444 ;\n else if ( arg_match ( & arg , & quietarg , argi ) ) global -> quiet = 1 ;\n else if ( arg_match ( & arg , & verbosearg , argi ) ) global -> verbose = 1 ;\n else if ( arg_match ( & arg , & limit , argi ) ) global -> limit = arg_parse_uint ( & arg ) ;\n else if ( arg_match ( & arg , & skip , argi ) ) global -> skip_frames = arg_parse_uint ( & arg ) ;\n else if ( arg_match ( & arg , & psnrarg , argi ) ) global -> show_psnr = 1 ;\n else if ( arg_match ( & arg , & recontest , argi ) ) global -> test_decode = arg_parse_enum_or_int ( & arg ) ;\n else if ( arg_match ( & arg , & framerate , argi ) ) {\n global -> framerate = arg_parse_rational ( & arg ) ;\n validate_positive_rational ( arg . name , & global -> framerate ) ;\n global -> have_framerate = 1 ;\n }\n else if ( arg_match ( & arg , & out_part , argi ) ) global -> out_part = 1 ;\n else if ( arg_match ( & arg , & debugmode , argi ) ) global -> debug = 1 ;\n else if ( arg_match ( & arg , & q_hist_n , argi ) ) global -> show_q_hist_buckets = arg_parse_uint ( & arg ) ;\n else if ( arg_match ( & arg , & rate_hist_n , argi ) ) global -> show_rate_hist_buckets = arg_parse_uint ( & arg ) ;\n else if ( arg_match ( & arg , & disable_warnings , argi ) ) global -> disable_warnings = 1 ;\n else if ( arg_match ( & arg , & disable_warning_prompt , argi ) ) global -> disable_warning_prompt = 1 ;\n else if ( arg_match ( & arg , & experimental_bitstream , argi ) ) global -> experimental_bitstream = 1 ;\n else argj ++ ;\n }\n if ( global -> pass ) {\n if ( global -> pass > global -> passes ) {\n warn ( \"Assuming --pass=%d implies --passes=%d\\n\" , global -> pass , global -> pass ) ;\n global -> passes = global -> pass ;\n }\n }\n if ( global -> passes == 0 ) {\n # if CONFIG_VP9_ENCODER if ( global -> codec != NULL && global -> codec -> name != NULL ) global -> passes = ( strcmp ( global -> codec -> name , \"vp9\" ) == 0 && global -> deadline != VPX_DL_REALTIME ) ? 2 : 1 ;\n # else global -> passes = 1 ;\n # endif }\n if ( global -> deadline == VPX_DL_REALTIME && global -> passes > 1 ) {\n warn ( \"Enforcing one-pass encoding in realtime mode\\n\" ) ;\n global -> passes = 1 ;\n }\n }"}
{"idx": 7904, "target": 0, "func": "static my_bool grant_load ( THD * thd , TABLE_LIST * tables ) {\n MEM_ROOT * memex_ptr ;\n my_bool return_val = 1 ;\n TABLE * t_table = 0 , * c_table = 0 ;\n bool check_no_resolve = specialflag & SPECIAL_NO_RESOLVE ;\n MEM_ROOT * * save_mem_root_ptr = my_pthread_getspecific_ptr ( MEM_ROOT * * , THR_MALLOC ) ;\n ulong old_sql_mode = thd -> variables . sql_mode ;\n DBUG_ENTER ( \"grant_load\" ) ;\n thd -> variables . sql_mode &= ~ MODE_PAD_CHAR_TO_FULL_LENGTH ;\n ( void ) hash_init ( & column_priv_hash , & my_charset_utf8_bin , 0 , 0 , 0 , ( hash_get_key ) get_grant_table , ( hash_free_key ) free_grant_table , 0 ) ;\n t_table = tables [ 0 ] . table ;\n c_table = tables [ 1 ] . table ;\n t_table -> file -> ha_index_init ( 0 , 1 ) ;\n t_table -> use_all_columns ( ) ;\n c_table -> use_all_columns ( ) ;\n if ( ! t_table -> file -> index_first ( t_table -> record [ 0 ] ) ) {\n memex_ptr = & memex ;\n my_pthread_setspecific_ptr ( THR_MALLOC , & memex_ptr ) ;\n do {\n GRANT_TABLE * mem_check ;\n if ( ! ( mem_check = new ( memex_ptr ) GRANT_TABLE ( t_table , c_table ) ) ) {\n goto end_unlock ;\n }\n if ( check_no_resolve ) {\n if ( hostname_requires_resolving ( mem_check -> host . hostname ) ) {\n sql_print_warning ( \"'tables_priv' entry '%s %s@%s' \" \"ignored in --skip-name-resolve mode.\" , mem_check -> tname , mem_check -> user ? mem_check -> user : \"\" , mem_check -> host . hostname ? mem_check -> host . hostname : \"\" ) ;\n continue ;\n }\n }\n if ( ! mem_check -> ok ( ) ) delete mem_check ;\n else if ( my_hash_insert ( & column_priv_hash , ( uchar * ) mem_check ) ) {\n delete mem_check ;\n goto end_unlock ;\n }\n }\n while ( ! t_table -> file -> index_next ( t_table -> record [ 0 ] ) ) ;\n }\n return_val = 0 ;\n end_unlock : thd -> variables . sql_mode = old_sql_mode ;\n t_table -> file -> ha_index_end ( ) ;\n my_pthread_setspecific_ptr ( THR_MALLOC , save_mem_root_ptr ) ;\n DBUG_RETURN ( return_val ) ;\n }"}
{"idx": 7905, "target": 0, "func": "static int dissect_h245_DialingInformationNumber ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_DialingInformationNumber , DialingInformationNumber_sequence ) ;\n return offset ;\n }"}
{"idx": 7906, "target": 1, "func": "static Asn1Generic * DecodeAsn1DerIA5String ( const unsigned char * buffer , uint32_t max_size , uint8_t depth , uint32_t * errcode ) {\n const unsigned char * d_ptr = buffer ;\n uint32_t length , numbytes ;\n Asn1Generic * a ;\n unsigned char c ;\n d_ptr ++ ;\n c = d_ptr [ 0 ] ;\n if ( ( c & ( 1 << 7 ) ) >> 7 == 0 ) {\n length = c ;\n d_ptr ++ ;\n }\n else {\n numbytes = c & 0x7f ;\n d_ptr ++ ;\n if ( DecodeAsn1BuildValue ( & d_ptr , & length , numbytes , errcode ) == - 1 ) {\n return NULL ;\n }\n }\n if ( length > max_size ) return NULL ;\n a = Asn1GenericNew ( ) ;\n if ( a == NULL ) return NULL ;\n a -> type = ASN1_IA5STRING ;\n a -> strlen = length ;\n a -> str = SCMalloc ( length + 1 ) ;\n if ( a -> str == NULL ) {\n SCFree ( a ) ;\n return NULL ;\n }\n strlcpy ( a -> str , ( const char * ) d_ptr , length + 1 ) ;\n d_ptr += length ;\n a -> length = ( d_ptr - buffer ) ;\n return a ;\n }"}
{"idx": 7907, "target": 0, "func": "static void config_system_opts ( config_tree * ptree ) {\n apply_enable_disable ( ptree -> enable_opts , 1 ) ;\n apply_enable_disable ( ptree -> disable_opts , 0 ) ;\n }"}
{"idx": 7908, "target": 0, "func": "static gchar get_priority ( const guint8 priority ) {\n static gchar priorities [ ] = \"??VDIWEFS\" ;\n if ( priority >= ( guint8 ) sizeof ( priorities ) ) return '?' ;\n return priorities [ priority ] ;\n }"}
{"idx": 7909, "target": 0, "func": "static void isofile_init_entry_data_file_list ( struct iso9660 * iso9660 ) {\n iso9660 -> data_file_list . first = NULL ;\n iso9660 -> data_file_list . last = & ( iso9660 -> data_file_list . first ) ;\n }"}
{"idx": 7910, "target": 0, "func": "TEST_F ( BudgetManagerTest , TestUniqueOrigin ) {\n const blink : : mojom : : BudgetOperationType type = blink : : mojom : : BudgetOperationType : : SILENT_PUSH ;\n SetOrigin ( url : : Origin ( GURL ( \"file://example.com:443/etc/passwd\" ) ) ) ;\n ASSERT_FALSE ( ReserveBudget ( type ) ) ;\n ASSERT_EQ ( blink : : mojom : : BudgetServiceErrorType : : NOT_SUPPORTED , error_ ) ;\n ASSERT_FALSE ( ConsumeBudget ( type ) ) ;\n }"}
{"idx": 7911, "target": 0, "func": "static void stroke_export ( private_stroke_socket_t * this , stroke_msg_t * msg , FILE * out ) {\n pop_string ( msg , & msg -> export . selector ) ;\n if ( msg -> export . flags & EXPORT_X509 ) {\n enumerator_t * enumerator ;\n identification_t * id ;\n certificate_t * cert ;\n id = identification_create_from_string ( msg -> export . selector ) ;\n enumerator = lib -> credmgr -> create_cert_enumerator ( lib -> credmgr , CERT_X509 , KEY_ANY , id , FALSE ) ;\n while ( enumerator -> enumerate ( enumerator , & cert ) ) {\n print_pem_cert ( out , cert ) ;\n }\n enumerator -> destroy ( enumerator ) ;\n id -> destroy ( id ) ;\n }\n if ( msg -> export . flags & ( EXPORT_CONN_CERT | EXPORT_CONN_CHAIN ) ) {\n enumerator_t * sas , * auths , * certs ;\n ike_sa_t * ike_sa ;\n auth_cfg_t * auth ;\n certificate_t * cert ;\n auth_rule_t rule ;\n sas = charon -> ike_sa_manager -> create_enumerator ( charon -> ike_sa_manager , TRUE ) ;\n while ( sas -> enumerate ( sas , & ike_sa ) ) {\n if ( streq ( msg -> export . selector , ike_sa -> get_name ( ike_sa ) ) ) {\n auths = ike_sa -> create_auth_cfg_enumerator ( ike_sa , FALSE ) ;\n while ( auths -> enumerate ( auths , & auth ) ) {\n bool got_subject = FALSE ;\n certs = auth -> create_enumerator ( auth ) ;\n while ( certs -> enumerate ( certs , & rule , & cert ) ) {\n switch ( rule ) {\n case AUTH_RULE_CA_CERT : case AUTH_RULE_IM_CERT : if ( msg -> export . flags & EXPORT_CONN_CHAIN ) {\n print_pem_cert ( out , cert ) ;\n }\n break ;\n case AUTH_RULE_SUBJECT_CERT : if ( ! got_subject ) {\n print_pem_cert ( out , cert ) ;\n got_subject = TRUE ;\n }\n break ;\n default : break ;\n }\n }\n certs -> destroy ( certs ) ;\n }\n auths -> destroy ( auths ) ;\n }\n }\n sas -> destroy ( sas ) ;\n }\n }"}
{"idx": 7912, "target": 0, "func": "static int dissect_h245_Nlpid ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_Nlpid , Nlpid_sequence ) ;\n return offset ;\n }"}
{"idx": 7913, "target": 0, "func": "proto_item * proto_tree_add_bytes_item ( proto_tree * tree , int hfindex , tvbuff_t * tvb , const gint start , gint length , const guint encoding , GByteArray * retval , gint * endoff , gint * err ) {\n field_info * new_fi ;\n GByteArray * bytes = retval ;\n GByteArray * created_bytes = NULL ;\n gint saved_err = 0 ;\n guint32 n = 0 ;\n header_field_info * hfinfo ;\n gboolean generate = ( bytes || tree ) ? TRUE : FALSE ;\n PROTO_REGISTRAR_GET_NTH ( hfindex , hfinfo ) ;\n DISSECTOR_ASSERT_HINT ( hfinfo != NULL , \"Not passed hfi!\" ) ;\n DISSECTOR_ASSERT_HINT ( validate_proto_tree_add_bytes_ftype ( hfinfo -> type ) , \"Called proto_tree_add_bytes_item but not a bytes-based FT_XXX type\" ) ;\n if ( length < - 1 || length == 0 ) {\n REPORT_DISSECTOR_BUG ( wmem_strdup_printf ( wmem_packet_scope ( ) , \"Invalid length %d passed to proto_tree_add_bytes_item for %s\" , length , ftype_name ( hfinfo -> type ) ) ) ;\n }\n if ( encoding & ENC_STR_NUM ) {\n REPORT_DISSECTOR_BUG ( \"Decoding number strings for byte arrays is not supported\" ) ;\n }\n if ( generate && ( encoding & ENC_STR_HEX ) ) {\n if ( hfinfo -> type == FT_UINT_BYTES ) {\n REPORT_DISSECTOR_BUG ( \"proto_tree_add_bytes_item called for \" \"FT_UINT_BYTES type, but as ENC_STR_HEX\" ) ;\n }\n if ( ! bytes ) {\n bytes = created_bytes = g_byte_array_new ( ) ;\n }\n bytes = tvb_get_string_bytes ( tvb , start , length , encoding , bytes , endoff ) ;\n saved_err = errno ;\n }\n else if ( generate ) {\n tvb_ensure_bytes_exist ( tvb , start , length ) ;\n if ( ! bytes ) {\n bytes = created_bytes = g_byte_array_new ( ) ;\n }\n if ( hfinfo -> type == FT_UINT_BYTES ) {\n n = length ;\n length = get_uint_value ( tree , tvb , start , n , encoding ) ;\n g_byte_array_append ( bytes , tvb_get_ptr ( tvb , start + n , length ) , length ) ;\n }\n else if ( length > 0 ) {\n g_byte_array_append ( bytes , tvb_get_ptr ( tvb , start , length ) , length ) ;\n }\n if ( endoff ) * endoff = start + n + length ;\n }\n if ( err ) * err = saved_err ;\n CHECK_FOR_NULL_TREE_AND_FREE ( tree , {\n if ( created_bytes ) g_byte_array_free ( created_bytes , TRUE ) ;\n created_bytes = NULL ;\n bytes = NULL ;\n }\n ) ;\n TRY_TO_FAKE_THIS_ITEM_OR_FREE ( tree , hfinfo -> id , hfinfo , {\n if ( created_bytes ) g_byte_array_free ( created_bytes , TRUE ) ;\n created_bytes = NULL ;\n bytes = NULL ;\n }\n ) ;\n new_fi = new_field_info ( tree , hfinfo , tvb , start , n + length ) ;\n if ( encoding & ENC_STRING ) {\n if ( saved_err == ERANGE ) expert_add_info ( NULL , tree , & ei_number_string_decoding_erange_error ) ;\n else if ( ! bytes || saved_err != 0 ) expert_add_info ( NULL , tree , & ei_number_string_decoding_failed_error ) ;\n if ( bytes ) proto_tree_set_bytes_gbytearray ( new_fi , bytes ) ;\n else proto_tree_set_bytes ( new_fi , NULL , 0 ) ;\n if ( created_bytes ) g_byte_array_free ( created_bytes , TRUE ) ;\n }\n else {\n proto_tree_set_bytes_tvb ( new_fi , tvb , start + n , length ) ;\n FI_SET_FLAG ( new_fi , ( encoding & ENC_LITTLE_ENDIAN ) ? FI_LITTLE_ENDIAN : FI_BIG_ENDIAN ) ;\n }\n return proto_tree_add_node ( tree , new_fi ) ;\n }"}
{"idx": 7914, "target": 1, "func": "static VALUE cState_object_nl_set ( VALUE self , VALUE object_nl ) {\n unsigned long len ;\n GET_STATE ( self ) ;\n Check_Type ( object_nl , T_STRING ) ;\n len = RSTRING_LEN ( object_nl ) ;\n if ( len == 0 ) {\n if ( state -> object_nl ) {\n ruby_xfree ( state -> object_nl ) ;\n state -> object_nl = NULL ;\n }\n }\n else {\n if ( state -> object_nl ) ruby_xfree ( state -> object_nl ) ;\n state -> object_nl = strdup ( RSTRING_PTR ( object_nl ) ) ;\n state -> object_nl_len = len ;\n }\n return Qnil ;\n }"}
{"idx": 7915, "target": 0, "func": "static void generate_psnr_packet ( VP9_COMP * cpi ) {\n struct vpx_codec_cx_pkt pkt ;\n int i ;\n PSNR_STATS psnr ;\n calc_psnr ( cpi -> Source , cpi -> common . frame_to_show , & psnr ) ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) {\n pkt . data . psnr . samples [ i ] = psnr . samples [ i ] ;\n pkt . data . psnr . sse [ i ] = psnr . sse [ i ] ;\n pkt . data . psnr . psnr [ i ] = psnr . psnr [ i ] ;\n }\n pkt . kind = VPX_CODEC_PSNR_PKT ;\n if ( is_two_pass_svc ( cpi ) ) cpi -> svc . layer_context [ cpi -> svc . spatial_layer_id ] . psnr_pkt = pkt . data . psnr ;\n else vpx_codec_pkt_list_add ( cpi -> output_pkt_list , & pkt ) ;\n }"}
{"idx": 7916, "target": 1, "func": "inline const OldUChar * toOldUCharPtr ( const char16_t * p ) {\n # ifdef U_ALIASING_BARRIER U_ALIASING_BARRIER ( p ) ;\n # endif return reinterpret_cast < const OldUChar * > ( p ) ;\n }"}
{"idx": 7917, "target": 0, "func": "int gs_gstate_putdeviceparams ( gs_gstate * pgs , gx_device * dev , gs_param_list * plist ) {\n int code ;\n gx_device * dev2 ;\n if ( dev ) dev2 = dev ;\n else dev2 = pgs -> device ;\n code = gs_putdeviceparams ( dev2 , plist ) ;\n if ( code >= 0 ) gs_gstate_update_device ( pgs , dev2 ) ;\n return code ;\n }"}
{"idx": 7918, "target": 1, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING )"}
{"idx": 7919, "target": 0, "func": "static void curses_connection_purge ( void * conn ) {\n ( void ) conn ;\n DEBUG_MSG ( \"curses_connection_purge\" ) ;\n conntrack_purge ( ) ;\n refresh_connections ( ) ;\n }"}
{"idx": 7920, "target": 0, "func": "static int do_16x16_motion_search ( VP9_COMP * cpi , const MV * ref_mv , int_mv * dst_mv , int mb_row , int mb_col ) {\n MACROBLOCK * const x = & cpi -> mb ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n unsigned int err , tmp_err ;\n MV tmp_mv ;\n err = vp9_sad16x16 ( x -> plane [ 0 ] . src . buf , x -> plane [ 0 ] . src . stride , xd -> plane [ 0 ] . pre [ 0 ] . buf , xd -> plane [ 0 ] . pre [ 0 ] . stride ) ;\n dst_mv -> as_int = 0 ;\n tmp_err = do_16x16_motion_iteration ( cpi , ref_mv , & tmp_mv , mb_row , mb_col ) ;\n if ( tmp_err < err ) {\n err = tmp_err ;\n dst_mv -> as_mv = tmp_mv ;\n }\n if ( ref_mv -> row != 0 || ref_mv -> col != 0 ) {\n unsigned int tmp_err ;\n MV zero_ref_mv = {\n 0 , 0 }\n , tmp_mv ;\n tmp_err = do_16x16_motion_iteration ( cpi , & zero_ref_mv , & tmp_mv , mb_row , mb_col ) ;\n if ( tmp_err < err ) {\n dst_mv -> as_mv = tmp_mv ;\n err = tmp_err ;\n }\n }\n return err ;\n }"}
{"idx": 7921, "target": 0, "func": "static void get_sb_partition_size_range ( MACROBLOCKD * xd , MODE_INFO * mi_8x8 , BLOCK_SIZE * min_block_size , BLOCK_SIZE * max_block_size , int bs_hist [ BLOCK_SIZES ] ) {\n int sb_width_in_blocks = MI_BLOCK_SIZE ;\n int sb_height_in_blocks = MI_BLOCK_SIZE ;\n int i , j ;\n int index = 0 ;\n for ( i = 0 ;\n i < sb_height_in_blocks ;\n ++ i ) {\n for ( j = 0 ;\n j < sb_width_in_blocks ;\n ++ j ) {\n MODE_INFO * mi = mi_8x8 [ index + j ] . src_mi ;\n BLOCK_SIZE sb_type = mi ? mi -> mbmi . sb_type : 0 ;\n bs_hist [ sb_type ] ++ ;\n * min_block_size = MIN ( * min_block_size , sb_type ) ;\n * max_block_size = MAX ( * max_block_size , sb_type ) ;\n }\n index += xd -> mi_stride ;\n }\n }"}
{"idx": 7922, "target": 0, "func": "static int dissect_h245_SET_SIZE_1_16_OF_H263ModeComboFlags ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_set_of ( tvb , offset , actx , tree , hf_index , ett_h245_SET_SIZE_1_16_OF_H263ModeComboFlags , SET_SIZE_1_16_OF_H263ModeComboFlags_set_of , 1 , 16 , FALSE ) ;\n return offset ;\n }"}
{"idx": 7923, "target": 0, "func": "SPL_METHOD ( SplDoublyLinkedList , push ) {\n zval * value ;\n spl_dllist_object * intern ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"z\" , & value ) == FAILURE ) {\n return ;\n }\n SEPARATE_ARG_IF_REF ( value ) ;\n intern = ( spl_dllist_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n spl_ptr_llist_push ( intern -> llist , value TSRMLS_CC ) ;\n RETURN_TRUE ;\n }"}
{"idx": 7924, "target": 1, "func": "void vp9_iht4x4_add ( TX_TYPE tx_type , const int16_t * input , uint8_t * dest , int stride , int eob ) {\n if ( tx_type == DCT_DCT ) vp9_idct4x4_add ( input , dest , stride , eob ) ;\n else vp9_iht4x4_16_add ( input , dest , stride , tx_type ) ;\n }"}
{"idx": 7925, "target": 0, "func": "static void cycle_packfile ( void ) {\n end_packfile ( ) ;\n start_packfile ( ) ;\n }"}
{"idx": 7926, "target": 0, "func": "static int amrwb_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AMRWBContext * ctx = avctx -> priv_data ;\n AVFrame * frame = data ;\n AMRWBFrame * cf = & ctx -> frame ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n int expected_fr_size , header_size ;\n float * buf_out ;\n float spare_vector [ AMRWB_SFR_SIZE ] ;\n float fixed_gain_factor ;\n float * synth_fixed_vector ;\n float synth_fixed_gain ;\n float voice_fac , stab_fac ;\n float synth_exc [ AMRWB_SFR_SIZE ] ;\n float hb_exc [ AMRWB_SFR_SIZE_16k ] ;\n float hb_samples [ AMRWB_SFR_SIZE_16k ] ;\n float hb_gain ;\n int sub , i , ret ;\n frame -> nb_samples = 4 * AMRWB_SFR_SIZE_16k ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n buf_out = ( float * ) frame -> data [ 0 ] ;\n header_size = decode_mime_header ( ctx , buf ) ;\n if ( ctx -> fr_cur_mode > MODE_SID ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid mode %d\\n\" , ctx -> fr_cur_mode ) ;\n return AVERROR_INVALIDDATA ;\n }\n expected_fr_size = ( ( cf_sizes_wb [ ctx -> fr_cur_mode ] + 7 ) >> 3 ) + 1 ;\n if ( buf_size < expected_fr_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"Frame too small (%d bytes). Truncated file?\\n\" , buf_size ) ;\n * got_frame_ptr = 0 ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ! ctx -> fr_quality || ctx -> fr_cur_mode > MODE_SID ) av_log ( avctx , AV_LOG_ERROR , \"Encountered a bad or corrupted frame\\n\" ) ;\n if ( ctx -> fr_cur_mode == MODE_SID ) {\n av_log_missing_feature ( avctx , \"SID mode\" , 1 ) ;\n return AVERROR_PATCHWELCOME ;\n }\n ff_amr_bit_reorder ( ( uint16_t * ) & ctx -> frame , sizeof ( AMRWBFrame ) , buf + header_size , amr_bit_orderings_by_mode [ ctx -> fr_cur_mode ] ) ;\n if ( ctx -> fr_cur_mode == MODE_6k60 ) {\n decode_isf_indices_36b ( cf -> isp_id , ctx -> isf_cur ) ;\n }\n else {\n decode_isf_indices_46b ( cf -> isp_id , ctx -> isf_cur ) ;\n }\n isf_add_mean_and_past ( ctx -> isf_cur , ctx -> isf_q_past ) ;\n ff_set_min_dist_lsf ( ctx -> isf_cur , MIN_ISF_SPACING , LP_ORDER - 1 ) ;\n stab_fac = stability_factor ( ctx -> isf_cur , ctx -> isf_past_final ) ;\n ctx -> isf_cur [ LP_ORDER - 1 ] *= 2.0 ;\n ff_acelp_lsf2lspd ( ctx -> isp [ 3 ] , ctx -> isf_cur , LP_ORDER ) ;\n if ( ctx -> first_frame ) {\n ctx -> first_frame = 0 ;\n memcpy ( ctx -> isp_sub4_past , ctx -> isp [ 3 ] , LP_ORDER * sizeof ( double ) ) ;\n }\n interpolate_isp ( ctx -> isp , ctx -> isp_sub4_past ) ;\n for ( sub = 0 ;\n sub < 4 ;\n sub ++ ) ff_amrwb_lsp2lpc ( ctx -> isp [ sub ] , ctx -> lp_coef [ sub ] , LP_ORDER ) ;\n for ( sub = 0 ;\n sub < 4 ;\n sub ++ ) {\n const AMRWBSubFrame * cur_subframe = & cf -> subframe [ sub ] ;\n float * sub_buf = buf_out + sub * AMRWB_SFR_SIZE_16k ;\n decode_pitch_vector ( ctx , cur_subframe , sub ) ;\n decode_fixed_vector ( ctx -> fixed_vector , cur_subframe -> pul_ih , cur_subframe -> pul_il , ctx -> fr_cur_mode ) ;\n pitch_sharpening ( ctx , ctx -> fixed_vector ) ;\n decode_gains ( cur_subframe -> vq_gain , ctx -> fr_cur_mode , & fixed_gain_factor , & ctx -> pitch_gain [ 0 ] ) ;\n ctx -> fixed_gain [ 0 ] = ff_amr_set_fixed_gain ( fixed_gain_factor , avpriv_scalarproduct_float_c ( ctx -> fixed_vector , ctx -> fixed_vector , AMRWB_SFR_SIZE ) / AMRWB_SFR_SIZE , ctx -> prediction_error , ENERGY_MEAN , energy_pred_fac ) ;\n voice_fac = voice_factor ( ctx -> pitch_vector , ctx -> pitch_gain [ 0 ] , ctx -> fixed_vector , ctx -> fixed_gain [ 0 ] ) ;\n ctx -> tilt_coef = voice_fac * 0.25 + 0.25 ;\n for ( i = 0 ;\n i < AMRWB_SFR_SIZE ;\n i ++ ) {\n ctx -> excitation [ i ] *= ctx -> pitch_gain [ 0 ] ;\n ctx -> excitation [ i ] += ctx -> fixed_gain [ 0 ] * ctx -> fixed_vector [ i ] ;\n ctx -> excitation [ i ] = truncf ( ctx -> excitation [ i ] ) ;\n }\n synth_fixed_gain = noise_enhancer ( ctx -> fixed_gain [ 0 ] , & ctx -> prev_tr_gain , voice_fac , stab_fac ) ;\n synth_fixed_vector = anti_sparseness ( ctx , ctx -> fixed_vector , spare_vector ) ;\n pitch_enhancer ( synth_fixed_vector , voice_fac ) ;\n synthesis ( ctx , ctx -> lp_coef [ sub ] , synth_exc , synth_fixed_gain , synth_fixed_vector , & ctx -> samples_az [ LP_ORDER ] ) ;\n de_emphasis ( & ctx -> samples_up [ UPS_MEM_SIZE ] , & ctx -> samples_az [ LP_ORDER ] , PREEMPH_FAC , ctx -> demph_mem ) ;\n ff_acelp_apply_order_2_transfer_function ( & ctx -> samples_up [ UPS_MEM_SIZE ] , & ctx -> samples_up [ UPS_MEM_SIZE ] , hpf_zeros , hpf_31_poles , hpf_31_gain , ctx -> hpf_31_mem , AMRWB_SFR_SIZE ) ;\n upsample_5_4 ( sub_buf , & ctx -> samples_up [ UPS_FIR_SIZE ] , AMRWB_SFR_SIZE_16k ) ;\n ff_acelp_apply_order_2_transfer_function ( hb_samples , & ctx -> samples_up [ UPS_MEM_SIZE ] , hpf_zeros , hpf_400_poles , hpf_400_gain , ctx -> hpf_400_mem , AMRWB_SFR_SIZE ) ;\n hb_gain = find_hb_gain ( ctx , hb_samples , cur_subframe -> hb_gain , cf -> vad ) ;\n scaled_hb_excitation ( ctx , hb_exc , synth_exc , hb_gain ) ;\n hb_synthesis ( ctx , sub , & ctx -> samples_hb [ LP_ORDER_16k ] , hb_exc , ctx -> isf_cur , ctx -> isf_past_final ) ;\n hb_fir_filter ( hb_samples , bpf_6_7_coef , ctx -> bpf_6_7_mem , & ctx -> samples_hb [ LP_ORDER_16k ] ) ;\n if ( ctx -> fr_cur_mode == MODE_23k85 ) hb_fir_filter ( hb_samples , lpf_7_coef , ctx -> lpf_7_mem , hb_samples ) ;\n for ( i = 0 ;\n i < AMRWB_SFR_SIZE_16k ;\n i ++ ) sub_buf [ i ] = ( sub_buf [ i ] + hb_samples [ i ] ) * ( 1.0f / ( 1 << 15 ) ) ;\n update_sub_state ( ctx ) ;\n }\n memcpy ( ctx -> isp_sub4_past , ctx -> isp [ 3 ] , LP_ORDER * sizeof ( ctx -> isp [ 3 ] [ 0 ] ) ) ;\n memcpy ( ctx -> isf_past_final , ctx -> isf_cur , LP_ORDER * sizeof ( float ) ) ;\n * got_frame_ptr = 1 ;\n return expected_fr_size ;\n }"}
{"idx": 7927, "target": 0, "func": "static int ogg_read_packet ( AVFormatContext * s , AVPacket * pkt ) {\n struct ogg * ogg ;\n struct ogg_stream * os ;\n int idx , ret ;\n int pstart , psize ;\n int64_t fpos , pts , dts ;\n if ( s -> io_repositioned ) {\n ogg_reset ( s ) ;\n s -> io_repositioned = 0 ;\n }\n retry : do {\n ret = ogg_packet ( s , & idx , & pstart , & psize , & fpos ) ;\n if ( ret < 0 ) return ret ;\n }\n while ( idx < 0 || ! s -> streams [ idx ] ) ;\n ogg = s -> priv_data ;\n os = ogg -> streams + idx ;\n pts = ogg_calc_pts ( s , idx , & dts ) ;\n ogg_validate_keyframe ( s , idx , pstart , psize ) ;\n if ( os -> keyframe_seek && ! ( os -> pflags & AV_PKT_FLAG_KEY ) ) goto retry ;\n os -> keyframe_seek = 0 ;\n ret = av_new_packet ( pkt , psize ) ;\n if ( ret < 0 ) return ret ;\n pkt -> stream_index = idx ;\n memcpy ( pkt -> data , os -> buf + pstart , psize ) ;\n pkt -> pts = pts ;\n pkt -> dts = dts ;\n pkt -> flags = os -> pflags ;\n pkt -> duration = os -> pduration ;\n pkt -> pos = fpos ;\n if ( os -> end_trimming ) {\n uint8_t * side_data = av_packet_new_side_data ( pkt , AV_PKT_DATA_SKIP_SAMPLES , 10 ) ;\n if ( ! side_data ) goto fail ;\n AV_WL32 ( side_data + 4 , os -> end_trimming ) ;\n os -> end_trimming = 0 ;\n }\n if ( os -> new_metadata ) {\n uint8_t * side_data = av_packet_new_side_data ( pkt , AV_PKT_DATA_METADATA_UPDATE , os -> new_metadata_size ) ;\n if ( ! side_data ) goto fail ;\n memcpy ( side_data , os -> new_metadata , os -> new_metadata_size ) ;\n av_freep ( & os -> new_metadata ) ;\n os -> new_metadata_size = 0 ;\n }\n return psize ;\n fail : av_packet_unref ( pkt ) ;\n return AVERROR ( ENOMEM ) ;\n }"}
{"idx": 7928, "target": 0, "func": "int jas_stream_rewind ( jas_stream_t * stream ) {\n return jas_stream_seek ( stream , 0 , SEEK_SET ) ;\n }"}
{"idx": 7929, "target": 0, "func": "void proto_register_usb_ms ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_usb_ms_dCBWSignature , {\n \"Signature\" , \"usbms.dCBWSignature\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_usb_ms_dCBWTag , {\n \"Tag\" , \"usbms.dCBWTag\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_usb_ms_dCBWDataTransferLength , {\n \"DataTransferLength\" , \"usbms.dCBWDataTransferLength\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_usb_ms_dCBWFlags , {\n \"Flags\" , \"usbms.dCBWFlags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_usb_ms_dCBWTarget , {\n \"Target\" , \"usbms.dCBWTarget\" , FT_UINT8 , BASE_HEX_DEC , NULL , 0x70 , \"Target Number when enabling multi-target mode\" , HFILL }\n }\n , {\n & hf_usb_ms_dCBWLUN , {\n \"LUN\" , \"usbms.dCBWLUN\" , FT_UINT8 , BASE_HEX , NULL , 0x0f , NULL , HFILL }\n }\n , {\n & hf_usb_ms_dCBWCBLength , {\n \"CDB Length\" , \"usbms.dCBWCBLength\" , FT_UINT8 , BASE_HEX , NULL , 0x1f , NULL , HFILL }\n }\n , {\n & hf_usb_ms_dCSWSignature , {\n \"Signature\" , \"usbms.dCSWSignature\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_usb_ms_dCSWDataResidue , {\n \"DataResidue\" , \"usbms.dCSWDataResidue\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_usb_ms_dCSWStatus , {\n \"Status\" , \"usbms.dCSWStatus\" , FT_UINT8 , BASE_HEX , VALS ( status_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_usb_ms_request , {\n \"bRequest\" , \"usbms.setup.bRequest\" , FT_UINT8 , BASE_HEX , VALS ( setup_request_names_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_usb_ms_value , {\n \"wValue\" , \"usbms.setup.wValue\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_usb_ms_index , {\n \"wIndex\" , \"usbms.setup.wIndex\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_usb_ms_length , {\n \"wLength\" , \"usbms.setup.wLength\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_usb_ms_maxlun , {\n \"Max LUN\" , \"usbms.setup.maxlun\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , }\n ;\n static gint * usb_ms_subtrees [ ] = {\n & ett_usb_ms , }\n ;\n proto_usb_ms = proto_register_protocol ( \"USB Mass Storage\" , \"USBMS\" , \"usbms\" ) ;\n proto_register_field_array ( proto_usb_ms , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( usb_ms_subtrees , array_length ( usb_ms_subtrees ) ) ;\n register_dissector ( \"usbms\" , dissect_usb_ms_bulk , proto_usb_ms ) ;\n }"}
{"idx": 7930, "target": 0, "func": "void proto_register_t38 ( void ) {\n static hf_register_info hf [ ] = {\n # line 1 \"../../asn1/t38/packet-t38-hfarr.c\" {\n & hf_t38_IFPPacket_PDU , {\n \"IFPPacket\" , \"t38.IFPPacket_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_t38_UDPTLPacket_PDU , {\n \"UDPTLPacket\" , \"t38.UDPTLPacket_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_t38_type_of_msg , {\n \"type-of-msg\" , \"t38.type_of_msg\" , FT_UINT32 , BASE_DEC , VALS ( t38_Type_of_msg_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_t38_data_field , {\n \"data-field\" , \"t38.data_field\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_t38_t30_indicator , {\n \"t30-indicator\" , \"t38.t30_indicator\" , FT_UINT32 , BASE_DEC , VALS ( t38_T30_indicator_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_t38_t30_data , {\n \"t30-data\" , \"t38.t30_data\" , FT_UINT32 , BASE_DEC , VALS ( t38_T30_data_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_t38_Data_Field_item , {\n \"Data-Field item\" , \"t38.Data_Field_item_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_t38_field_type , {\n \"field-type\" , \"t38.field_type\" , FT_UINT32 , BASE_DEC , VALS ( t38_T_field_type_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_t38_field_data , {\n \"field-data\" , \"t38.field_data\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_t38_seq_number , {\n \"seq-number\" , \"t38.seq_number\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_t38_primary_ifp_packet , {\n \"primary-ifp-packet\" , \"t38.primary_ifp_packet_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_t38_error_recovery , {\n \"error-recovery\" , \"t38.error_recovery\" , FT_UINT32 , BASE_DEC , VALS ( t38_T_error_recovery_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_t38_secondary_ifp_packets , {\n \"secondary-ifp-packets\" , \"t38.secondary_ifp_packets\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_t38_secondary_ifp_packets_item , {\n \"secondary-ifp-packets item\" , \"t38.secondary_ifp_packets_item_element\" , FT_NONE , BASE_NONE , NULL , 0 , \"OpenType_IFPPacket\" , HFILL }\n }\n , {\n & hf_t38_fec_info , {\n \"fec-info\" , \"t38.fec_info_element\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_t38_fec_npackets , {\n \"fec-npackets\" , \"t38.fec_npackets\" , FT_INT32 , BASE_DEC , NULL , 0 , \"INTEGER\" , HFILL }\n }\n , {\n & hf_t38_fec_data , {\n \"fec-data\" , \"t38.fec_data\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_t38_fec_data_item , {\n \"fec-data item\" , \"t38.fec_data_item\" , FT_BYTES , BASE_NONE , NULL , 0 , \"OCTET_STRING\" , HFILL }\n }\n , # line 659 \"../../asn1/t38/packet-t38-template.c\" {\n & hf_t38_setup , {\n \"Stream setup\" , \"t38.setup\" , FT_STRING , BASE_NONE , NULL , 0x0 , \"Stream setup, method and frame number\" , HFILL }\n }\n , {\n & hf_t38_setup_frame , {\n \"Stream frame\" , \"t38.setup-frame\" , FT_FRAMENUM , BASE_NONE , NULL , 0x0 , \"Frame that set up this stream\" , HFILL }\n }\n , {\n & hf_t38_setup_method , {\n \"Stream Method\" , \"t38.setup-method\" , FT_STRING , BASE_NONE , NULL , 0x0 , \"Method used to set up this stream\" , HFILL }\n }\n , {\n & hf_t38_fragments , {\n \"Message fragments\" , \"t38.fragments\" , FT_NONE , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_t38_fragment , {\n \"Message fragment\" , \"t38.fragment\" , FT_FRAMENUM , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_t38_fragment_overlap , {\n \"Message fragment overlap\" , \"t38.fragment.overlap\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_t38_fragment_overlap_conflicts , {\n \"Message fragment overlapping with conflicting data\" , \"t38.fragment.overlap.conflicts\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_t38_fragment_multiple_tails , {\n \"Message has multiple tail fragments\" , \"t38.fragment.multiple_tails\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_t38_fragment_too_long_fragment , {\n \"Message fragment too long\" , \"t38.fragment.too_long_fragment\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_t38_fragment_error , {\n \"Message defragmentation error\" , \"t38.fragment.error\" , FT_FRAMENUM , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_t38_fragment_count , {\n \"Message fragment count\" , \"t38.fragment.count\" , FT_UINT32 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_t38_reassembled_in , {\n \"Reassembled in\" , \"t38.reassembled.in\" , FT_FRAMENUM , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_t38_reassembled_length , {\n \"Reassembled T38 length\" , \"t38.reassembled.length\" , FT_UINT32 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , }\n ;\n static gint * ett [ ] = {\n & ett_t38 , # line 1 \"../../asn1/t38/packet-t38-ettarr.c\" & ett_t38_IFPPacket , & ett_t38_Type_of_msg , & ett_t38_Data_Field , & ett_t38_Data_Field_item , & ett_t38_UDPTLPacket , & ett_t38_T_error_recovery , & ett_t38_T_secondary_ifp_packets , & ett_t38_T_fec_info , & ett_t38_T_fec_data , # line 706 \"../../asn1/t38/packet-t38-template.c\" & ett_t38_setup , & ett_data_fragment , & ett_data_fragments }\n ;\n static ei_register_info ei [ ] = {\n {\n & ei_t38_malformed , {\n \"t38.malformed\" , PI_MALFORMED , PI_ERROR , \"Malformed packet\" , EXPFILL }\n }\n , }\n ;\n module_t * t38_module ;\n expert_module_t * expert_t38 ;\n proto_t38 = proto_register_protocol ( \"T.38\" , \"T.38\" , \"t38\" ) ;\n proto_register_field_array ( proto_t38 , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n expert_t38 = expert_register_protocol ( proto_t38 ) ;\n expert_register_field_array ( expert_t38 , ei , array_length ( ei ) ) ;\n register_dissector ( \"t38_udp\" , dissect_t38_udp , proto_t38 ) ;\n register_init_routine ( t38_defragment_init ) ;\n register_cleanup_routine ( t38_defragment_cleanup ) ;\n t38_tap = register_tap ( \"t38\" ) ;\n t38_module = prefs_register_protocol ( proto_t38 , proto_reg_handoff_t38 ) ;\n prefs_register_bool_preference ( t38_module , \"use_pre_corrigendum_asn1_specification\" , \"Use the Pre-Corrigendum ASN.1 specification\" , \"Whether the T.38 dissector should decode using the Pre-Corrigendum T.38 \" \"ASN.1 specification (1998).\" , & use_pre_corrigendum_asn1_specification ) ;\n prefs_register_bool_preference ( t38_module , \"dissect_possible_rtpv2_packets_as_rtp\" , \"Dissect possible RTP version 2 packets with RTP dissector\" , \"Whether a UDP packet that looks like RTP version 2 packet will \" \"be dissected as RTP packet or T.38 packet. If enabled there is a risk that T.38 UDPTL \" \"packets with sequence number higher than 32767 may be dissected as RTP.\" , & dissect_possible_rtpv2_packets_as_rtp ) ;\n prefs_register_uint_preference ( t38_module , \"tcp.port\" , \"T.38 TCP Port\" , \"Set the TCP port for T.38 messages\" , 10 , & global_t38_tcp_port ) ;\n prefs_register_uint_preference ( t38_module , \"udp.port\" , \"T.38 UDP Port\" , \"Set the UDP port for T.38 messages\" , 10 , & global_t38_udp_port ) ;\n prefs_register_bool_preference ( t38_module , \"reassembly\" , \"Reassemble T.38 PDUs over TPKT over TCP\" , \"Whether the dissector should reassemble T.38 PDUs spanning multiple TCP segments \" \"when TPKT is used over TCP. \" \"To use this option, you must also enable \\\"Allow subdissectors to reassemble \" \"TCP streams\\\" in the TCP protocol settings.\" , & t38_tpkt_reassembly ) ;\n prefs_register_enum_preference ( t38_module , \"tpkt_usage\" , \"TPKT used over TCP\" , \"Whether T.38 is used with TPKT for TCP\" , ( gint * ) & t38_tpkt_usage , t38_tpkt_options , FALSE ) ;\n prefs_register_bool_preference ( t38_module , \"show_setup_info\" , \"Show stream setup information\" , \"Where available, show which protocol and frame caused \" \"this T.38 stream to be created\" , & global_t38_show_setup_info ) ;\n }"}
{"idx": 7931, "target": 0, "func": "static void cmd_window_dright ( void ) {\n MAIN_WINDOW_REC * rec ;\n rec = mainwindows_find_right ( active_mainwin , FALSE ) ;\n if ( rec == NULL ) rec = mainwindows_find_right ( active_mainwin , TRUE ) ;\n if ( rec != NULL ) window_set_active ( rec -> active ) ;\n }"}
{"idx": 7932, "target": 0, "func": "static int svq1_encode_frame ( AVCodecContext * avctx , AVPacket * pkt , const AVFrame * pict , int * got_packet ) {\n SVQ1Context * const s = avctx -> priv_data ;\n AVFrame * const p = & s -> picture ;\n AVFrame temp ;\n int i , ret ;\n if ( ! pkt -> data && ( ret = av_new_packet ( pkt , s -> y_block_width * s -> y_block_height * MAX_MB_BYTES * 3 + FF_MIN_BUFFER_SIZE ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error getting output packet.\\n\" ) ;\n return ret ;\n }\n if ( avctx -> pix_fmt != AV_PIX_FMT_YUV410P ) {\n av_log ( avctx , AV_LOG_ERROR , \"unsupported pixel format\\n\" ) ;\n return - 1 ;\n }\n if ( ! s -> current_picture . data [ 0 ] ) {\n ff_get_buffer ( avctx , & s -> current_picture , 0 ) ;\n ff_get_buffer ( avctx , & s -> last_picture , 0 ) ;\n s -> scratchbuf = av_malloc ( s -> current_picture . linesize [ 0 ] * 16 * 2 ) ;\n }\n temp = s -> current_picture ;\n s -> current_picture = s -> last_picture ;\n s -> last_picture = temp ;\n init_put_bits ( & s -> pb , pkt -> data , pkt -> size ) ;\n * p = * pict ;\n p -> pict_type = avctx -> gop_size && avctx -> frame_number % avctx -> gop_size ? AV_PICTURE_TYPE_P : AV_PICTURE_TYPE_I ;\n p -> key_frame = p -> pict_type == AV_PICTURE_TYPE_I ;\n svq1_write_header ( s , p -> pict_type ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) if ( svq1_encode_plane ( s , i , s -> picture . data [ i ] , s -> last_picture . data [ i ] , s -> current_picture . data [ i ] , s -> frame_width / ( i ? 4 : 1 ) , s -> frame_height / ( i ? 4 : 1 ) , s -> picture . linesize [ i ] , s -> current_picture . linesize [ i ] ) < 0 ) return - 1 ;\n while ( put_bits_count ( & s -> pb ) & 31 ) put_bits ( & s -> pb , 1 , 0 ) ;\n flush_put_bits ( & s -> pb ) ;\n pkt -> size = put_bits_count ( & s -> pb ) / 8 ;\n if ( p -> pict_type == AV_PICTURE_TYPE_I ) pkt -> flags |= AV_PKT_FLAG_KEY ;\n * got_packet = 1 ;\n return 0 ;\n }"}
{"idx": 7933, "target": 0, "func": "void TSStatIntDecrement ( int id , TSMgmtInt amount ) {\n RecDecrRawStat ( api_rsb , nullptr , id , amount ) ;\n }"}
{"idx": 7934, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n const uint8_t * buf_end = avpkt -> data + avpkt -> size ;\n int buf_size = avpkt -> size ;\n QdrawContext * const a = avctx -> priv_data ;\n AVFrame * const p = & a -> pic ;\n uint8_t * outdata ;\n int colors ;\n int i , ret ;\n uint32_t * pal ;\n int r , g , b ;\n if ( p -> data [ 0 ] ) avctx -> release_buffer ( avctx , p ) ;\n p -> reference = 0 ;\n if ( ( ret = ff_get_buffer ( avctx , p ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n p -> pict_type = AV_PICTURE_TYPE_I ;\n p -> key_frame = 1 ;\n outdata = a -> pic . data [ 0 ] ;\n if ( buf_end - buf < 0x68 + 4 ) return AVERROR_INVALIDDATA ;\n buf += 0x68 ;\n colors = AV_RB32 ( buf ) ;\n buf += 4 ;\n if ( colors < 0 || colors > 256 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error color count - %i(0x%X)\\n\" , colors , colors ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( buf_end - buf < ( colors + 1 ) * 8 ) return AVERROR_INVALIDDATA ;\n pal = ( uint32_t * ) p -> data [ 1 ] ;\n for ( i = 0 ;\n i <= colors ;\n i ++ ) {\n unsigned int idx ;\n idx = AV_RB16 ( buf ) ;\n buf += 2 ;\n if ( idx > 255 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Palette index out of range: %u\\n\" , idx ) ;\n buf += 6 ;\n continue ;\n }\n r = * buf ++ ;\n buf ++ ;\n g = * buf ++ ;\n buf ++ ;\n b = * buf ++ ;\n buf ++ ;\n pal [ idx ] = ( r << 16 ) | ( g << 8 ) | b ;\n }\n p -> palette_has_changed = 1 ;\n if ( buf_end - buf < 18 ) return AVERROR_INVALIDDATA ;\n buf += 18 ;\n for ( i = 0 ;\n i < avctx -> height ;\n i ++ ) {\n int size , left , code , pix ;\n const uint8_t * next ;\n uint8_t * out ;\n int tsize = 0 ;\n out = outdata ;\n size = AV_RB16 ( buf ) ;\n buf += 2 ;\n if ( buf_end - buf < size ) return AVERROR_INVALIDDATA ;\n left = size ;\n next = buf + size ;\n while ( left > 0 ) {\n code = * buf ++ ;\n if ( code & 0x80 ) {\n pix = * buf ++ ;\n if ( ( out + ( 257 - code ) ) > ( outdata + a -> pic . linesize [ 0 ] ) ) break ;\n memset ( out , pix , 257 - code ) ;\n out += 257 - code ;\n tsize += 257 - code ;\n left -= 2 ;\n }\n else {\n if ( ( out + code ) > ( outdata + a -> pic . linesize [ 0 ] ) ) break ;\n if ( buf_end - buf < code + 1 ) return AVERROR_INVALIDDATA ;\n memcpy ( out , buf , code + 1 ) ;\n out += code + 1 ;\n buf += code + 1 ;\n left -= 2 + code ;\n tsize += code + 1 ;\n }\n }\n buf = next ;\n outdata += a -> pic . linesize [ 0 ] ;\n }\n * got_frame = 1 ;\n * ( AVFrame * ) data = a -> pic ;\n return buf_size ;\n }"}
{"idx": 7935, "target": 1, "func": "static void cblk_destroy ( jpc_enc_cblk_t * cblk ) {\n uint_fast16_t passno ;\n jpc_enc_pass_t * pass ;\n if ( cblk -> passes ) {\n for ( passno = 0 , pass = cblk -> passes ;\n passno < cblk -> numpasses ;\n ++ passno , ++ pass ) {\n pass_destroy ( pass ) ;\n }\n jas_free ( cblk -> passes ) ;\n }\n if ( cblk -> stream ) {\n jas_stream_close ( cblk -> stream ) ;\n }\n if ( cblk -> mqenc ) {\n jpc_mqenc_destroy ( cblk -> mqenc ) ;\n }\n if ( cblk -> data ) {\n jas_seq2d_destroy ( cblk -> data ) ;\n }\n if ( cblk -> flags ) {\n jas_seq2d_destroy ( cblk -> flags ) ;\n }\n }"}
{"idx": 7936, "target": 0, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DIRECTORYSTRING ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DISPLAYTEXT ) DECLARE_ASN1_FUNCTIONS ( ASN1_PRINTABLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_T61STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_IA5STRING )"}
{"idx": 7937, "target": 0, "func": "int EVP_DecodeUpdate ( EVP_ENCODE_CTX * ctx , unsigned char * out , int * outl , const unsigned char * in , int inl ) {\n int seof = 0 , eof = 0 , rv = - 1 , ret = 0 , i , v , tmp , n , decoded_len ;\n unsigned char * d ;\n n = ctx -> num ;\n d = ctx -> enc_data ;\n if ( n > 0 && d [ n - 1 ] == '=' ) {\n eof ++ ;\n if ( n > 1 && d [ n - 2 ] == '=' ) eof ++ ;\n }\n if ( inl == 0 ) {\n rv = 0 ;\n goto end ;\n }\n for ( i = 0 ;\n i < inl ;\n i ++ ) {\n tmp = * ( in ++ ) ;\n v = conv_ascii2bin ( tmp ) ;\n if ( v == B64_ERROR ) {\n rv = - 1 ;\n goto end ;\n }\n if ( tmp == '=' ) {\n eof ++ ;\n }\n else if ( eof > 0 && B64_BASE64 ( v ) ) {\n rv = - 1 ;\n goto end ;\n }\n if ( eof > 2 ) {\n rv = - 1 ;\n goto end ;\n }\n if ( v == B64_EOF ) {\n seof = 1 ;\n goto tail ;\n }\n if ( B64_BASE64 ( v ) ) {\n if ( n >= 64 ) {\n rv = - 1 ;\n goto end ;\n }\n OPENSSL_assert ( n < ( int ) sizeof ( ctx -> enc_data ) ) ;\n d [ n ++ ] = tmp ;\n }\n if ( n == 64 ) {\n decoded_len = EVP_DecodeBlock ( out , d , n ) ;\n n = 0 ;\n if ( decoded_len < 0 || eof > decoded_len ) {\n rv = - 1 ;\n goto end ;\n }\n ret += decoded_len - eof ;\n out += decoded_len - eof ;\n }\n }\n tail : if ( n > 0 ) {\n if ( ( n & 3 ) == 0 ) {\n decoded_len = EVP_DecodeBlock ( out , d , n ) ;\n n = 0 ;\n if ( decoded_len < 0 || eof > decoded_len ) {\n rv = - 1 ;\n goto end ;\n }\n ret += ( decoded_len - eof ) ;\n }\n else if ( seof ) {\n rv = - 1 ;\n goto end ;\n }\n }\n rv = seof || ( n == 0 && eof ) ? 0 : 1 ;\n end : * outl = ret ;\n ctx -> num = n ;\n return ( rv ) ;\n }"}
{"idx": 7938, "target": 0, "func": "static void pushfogio ( IO * wrapper , FILE * fog ) {\n _IO * io = calloc ( 1 , sizeof ( _IO ) ) ;\n io -> prev = wrapper -> top ;\n io -> fog = fog ;\n io -> backedup = EOF ;\n io -> cnt = 1 ;\n io -> isloop = false ;\n wrapper -> top = io ;\n }"}
{"idx": 7939, "target": 0, "func": "static void file_list_cancel ( NautilusDirectory * directory ) {\n directory_load_cancel ( directory ) ;\n if ( directory -> details -> dequeue_pending_idle_id != 0 ) {\n g_source_remove ( directory -> details -> dequeue_pending_idle_id ) ;\n directory -> details -> dequeue_pending_idle_id = 0 ;\n }\n if ( directory -> details -> pending_file_info != NULL ) {\n g_list_free_full ( directory -> details -> pending_file_info , g_object_unref ) ;\n directory -> details -> pending_file_info = NULL ;\n }\n }"}
{"idx": 7940, "target": 1, "func": "unsigned long # define BN_LONG long # define BN_BITS 128 # define BN_BYTES 8 # define BN_BITS2 64 # define BN_BITS4 32 # define BN_MASK ( 0xffffffffffffffffffffffffffffffffLL ) # define BN_MASK2 ( 0xffffffffffffffffL ) # define BN_MASK2l ( 0xffffffffL ) # define BN_MASK2h ( 0xffffffff00000000L ) # define BN_MASK2h1 ( 0xffffffff80000000L ) # define BN_TBIT ( 0x8000000000000000L ) # define BN_DEC_CONV ( 10000000000000000000UL ) # define BN_DEC_FMT1 \"%lu\" # define BN_DEC_FMT2 \"%019lu\" # define BN_DEC_NUM 19 # define BN_HEX_FMT1 \"%lX\" # define BN_HEX_FMT2 \"%016lX\" # endif # ifdef SIXTY_FOUR_BIT # undef BN_LLONG # undef BN_ULLONG # define BN_ULONG unsigned long long # define BN_LONG long long # define BN_BITS 128 # define BN_BYTES 8 # define BN_BITS2 64 # define BN_BITS4 32 # define BN_MASK2 ( 0xffffffffffffffffLL ) # define BN_MASK2l ( 0xffffffffL ) # define BN_MASK2h ( 0xffffffff00000000LL ) # define BN_MASK2h1 ( 0xffffffff80000000LL ) # define BN_TBIT ( 0x8000000000000000LL ) # define BN_DEC_CONV ( 10000000000000000000ULL ) # define BN_DEC_FMT1 \"%llu\" # define BN_DEC_FMT2 \"%019llu\" # define BN_DEC_NUM 19 # define BN_HEX_FMT1 \"%llX\" # define BN_HEX_FMT2 \"%016llX\" # endif # ifdef THIRTY_TWO_BIT # ifdef BN_LLONG # if defined ( _WIN32 ) && ! defined ( __GNUC__ ) # define BN_ULLONG unsigned __int64 # define BN_MASK ( 0xffffffffffffffffI64 ) # else # define BN_ULLONG unsigned long long # define BN_MASK ( 0xffffffffffffffffLL ) # endif # endif # define BN_ULONG unsigned int # define BN_LONG int # define BN_BITS 64 # define BN_BYTES 4 # define BN_BITS2 32 # define BN_BITS4 16 # define BN_MASK2 ( 0xffffffffL ) # define BN_MASK2l ( 0xffff ) # define BN_MASK2h1 ( 0xffff8000L ) # define BN_MASK2h ( 0xffff0000L ) # define BN_TBIT ( 0x80000000L ) # define BN_DEC_CONV ( 1000000000L ) # define BN_DEC_FMT1 \"%u\" # define BN_DEC_FMT2 \"%09u\" # define BN_DEC_NUM 9 # define BN_HEX_FMT1 \"%X\" # define BN_HEX_FMT2 \"%08X\" # endif # define BN_DEFAULT_BITS 1280 # define BN_FLG_MALLOCED 0x01 # define BN_FLG_STATIC_DATA 0x02 # define BN_FLG_CONSTTIME 0x04 # ifndef OPENSSL_NO_DEPRECATED # define BN_FLG_EXP_CONSTTIME BN_FLG_CONSTTIME # endif # ifndef OPENSSL_NO_DEPRECATED # define BN_FLG_FREE 0x8000 # endif # define BN_set_flags ( b , n ) ( ( b ) -> flags |= ( n ) ) # define BN_get_flags ( b , n ) ( ( b ) -> flags & ( n ) ) # define BN_with_flags ( dest , b , n ) ( ( dest ) -> d = ( b ) -> d , \\ ( dest ) -> top = ( b ) -> top , \\ ( dest ) -> dmax = ( b ) -> dmax , \\ ( dest ) -> neg = ( b ) -> neg , \\ ( dest ) -> flags = ( ( ( dest ) -> flags & BN_FLG_MALLOCED ) \\ | ( ( b ) -> flags & ~ BN_FLG_MALLOCED ) \\ | BN_FLG_STATIC_DATA \\ | ( n ) ) ) # if 0 typedef struct bignum_st BIGNUM ;\n typedef struct bignum_ctx BN_CTX ;\n typedef struct bn_blinding_st BN_BLINDING ;\n typedef struct bn_mont_ctx_st BN_MONT_CTX ;\n typedef struct bn_recp_ctx_st BN_RECP_CTX ;\n typedef struct bn_gencb_st BN_GENCB ;\n # endif struct bignum_st {\n BN_ULONG * d ;\n int top ;\n int dmax ;\n int neg ;\n int flags ;\n }\n ;\n struct bn_mont_ctx_st {\n int ri ;\n BIGNUM RR ;\n BIGNUM N ;\n BIGNUM Ni ;\n BN_ULONG n0 [ 2 ] ;\n int flags ;\n }\n ;\n struct bn_recp_ctx_st {\n BIGNUM N ;\n BIGNUM Nr ;\n int num_bits ;\n int shift ;\n int flags ;\n }\n ;\n struct bn_gencb_st {\n unsigned int ver ;\n void * arg ;\n union {\n void ( * cb_1 ) ( int , int , void * ) ;\n int ( * cb_2 ) ( int , int , BN_GENCB * ) ;\n }\n cb ;\n }\n ;\n int BN_GENCB_call ( BN_GENCB * cb , int a , int b ) ;\n # define BN_GENCB_set_old ( gencb , callback , cb_arg ) {\n \\ BN_GENCB * tmp_gencb = ( gencb ) ;\n \\ tmp_gencb -> ver = 1 ;\n \\ tmp_gencb -> arg = ( cb_arg ) ;\n \\ tmp_gencb -> cb . cb_1 = ( callback ) ;\n }\n # define BN_GENCB_set ( gencb , callback , cb_arg ) {\n \\ BN_GENCB * tmp_gencb = ( gencb ) ;\n \\ tmp_gencb -> ver = 2 ;\n \\ tmp_gencb -> arg = ( cb_arg ) ;\n \\ tmp_gencb -> cb . cb_2 = ( callback ) ;\n }\n # define BN_prime_checks 0 # define BN_prime_checks_for_size ( b ) ( ( b ) >= 1300 ? 2 : \\ ( b ) >= 850 ? 3 : \\ ( b ) >= 650 ? 4 : \\ ( b ) >= 550 ? 5 : \\ ( b ) >= 450 ? 6 : \\ ( b ) >= 400 ? 7 : \\ ( b ) >= 350 ? 8 : \\ ( b ) >= 300 ? 9 : \\ ( b ) >= 250 ? 12 : \\ ( b ) >= 200 ? 15 : \\ ( b ) >= 150 ? 18 : \\ 27 ) # define BN_num_bytes ( a ) ( ( BN_num_bits ( a ) + 7 ) / 8 ) # define BN_abs_is_word ( a , w ) ( ( ( ( a ) -> top == 1 ) && ( ( a ) -> d [ 0 ] == ( BN_ULONG ) ( w ) ) ) || \\ ( ( ( w ) == 0 ) && ( ( a ) -> top == 0 ) ) ) # define BN_is_zero ( a ) ( ( a ) -> top == 0 ) # define BN_is_one ( a ) ( BN_abs_is_word ( ( a ) , 1 ) && ! ( a ) -> neg ) # define BN_is_word ( a , w ) ( BN_abs_is_word ( ( a ) , ( w ) ) && ( ! ( w ) || ! ( a ) -> neg ) ) # define BN_is_odd ( a ) ( ( ( a ) -> top > 0 ) && ( ( a ) -> d [ 0 ] & 1 ) ) # define BN_one ( a ) ( BN_set_word ( ( a ) , 1 ) ) # define BN_zero_ex ( a ) \\ do {\n \\ BIGNUM * _tmp_bn = ( a ) ;\n \\ _tmp_bn -> top = 0 ;\n \\ _tmp_bn -> neg = 0 ;\n \\ }\n while ( 0 ) # ifdef OPENSSL_NO_DEPRECATED # define BN_zero ( a ) BN_zero_ex ( a ) # else # define BN_zero ( a ) ( BN_set_word ( ( a ) , 0 ) ) # endif const BIGNUM * BN_value_one ( void ) ;\n char * BN_options ( void ) ;\n BN_CTX * BN_CTX_new ( void ) ;\n # ifndef OPENSSL_NO_DEPRECATED void BN_CTX_init ( BN_CTX * c ) ;\n # endif void BN_CTX_free ( BN_CTX * c ) ;\n void BN_CTX_start ( BN_CTX * ctx ) ;\n BIGNUM * BN_CTX_get ( BN_CTX * ctx ) ;\n void BN_CTX_end ( BN_CTX * ctx ) ;\n int BN_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_pseudo_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_pseudo_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_num_bits ( const BIGNUM * a ) ;\n int BN_num_bits_word ( BN_ULONG l ) ;\n BIGNUM * BN_new ( void ) ;\n void BN_init ( BIGNUM * ) ;\n void BN_clear_free ( BIGNUM * a ) ;\n BIGNUM * BN_copy ( BIGNUM * a , const BIGNUM * b ) ;\n void BN_swap ( BIGNUM * a , BIGNUM * b ) ;\n BIGNUM * BN_bin2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2bin ( const BIGNUM * a , unsigned char * to ) ;\n BIGNUM * BN_mpi2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2mpi ( const BIGNUM * a , unsigned char * to ) ;\n int BN_sub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_usub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_uadd ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n int BN_sqr ( BIGNUM * r , const BIGNUM * a , BN_CTX * ctx ) ;\n void BN_set_negative ( BIGNUM * b , int n ) ;\n # define BN_is_negative ( a ) ( ( a ) -> neg != 0 ) int BN_div ( BIGNUM * dv , BIGNUM * rem , const BIGNUM * m , const BIGNUM * d , BN_CTX * ctx ) ;\n # define BN_mod ( rem , m , d , ctx ) BN_div ( NULL , ( rem ) , ( m ) , ( d ) , ( ctx ) ) int BN_nnmod ( BIGNUM * r , const BIGNUM * m , const BIGNUM * d , BN_CTX * ctx ) ;\n int BN_mod_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_add_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m ) ;\n int BN_mod_sub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_sub_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m ) ;\n int BN_mod_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_sqr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift1 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift1_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m ) ;\n int BN_mod_lshift ( BIGNUM * r , const BIGNUM * a , int n , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift_quick ( BIGNUM * r , const BIGNUM * a , int n , const BIGNUM * m ) ;\n BN_ULONG BN_mod_word ( const BIGNUM * a , BN_ULONG w ) ;\n BN_ULONG BN_div_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_mul_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_add_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_sub_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_set_word ( BIGNUM * a , BN_ULONG w ) ;\n BN_ULONG BN_get_word ( const BIGNUM * a ) ;\n int BN_cmp ( const BIGNUM * a , const BIGNUM * b ) ;\n void BN_free ( BIGNUM * a ) ;\n int BN_is_bit_set ( const BIGNUM * a , int n ) ;\n int BN_lshift ( BIGNUM * r , const BIGNUM * a , int n ) ;\n int BN_lshift1 ( BIGNUM * r , const BIGNUM * a ) ;\n int BN_exp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_mod_exp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_exp_mont ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) ;\n int BN_mod_exp_mont_consttime ( BIGNUM * rr , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * in_mont ) ;\n int BN_mod_exp_mont_word ( BIGNUM * r , BN_ULONG a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) ;\n int BN_mod_exp2_mont ( BIGNUM * r , const BIGNUM * a1 , const BIGNUM * p1 , const BIGNUM * a2 , const BIGNUM * p2 , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) ;\n int BN_mod_exp_simple ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mask_bits ( BIGNUM * a , int n ) ;\n # ifndef OPENSSL_NO_FP_API int BN_print_fp ( FILE * fp , const BIGNUM * a ) ;\n # endif # ifdef HEADER_BIO_H int BN_print ( BIO * fp , const BIGNUM * a ) ;\n # else int BN_print ( void * fp , const BIGNUM * a ) ;\n # endif int BN_reciprocal ( BIGNUM * r , const BIGNUM * m , int len , BN_CTX * ctx ) ;\n int BN_rshift ( BIGNUM * r , const BIGNUM * a , int n ) ;\n int BN_rshift1 ( BIGNUM * r , const BIGNUM * a ) ;\n void BN_clear ( BIGNUM * a ) ;\n BIGNUM * BN_dup ( const BIGNUM * a ) ;\n int BN_ucmp ( const BIGNUM * a , const BIGNUM * b ) ;\n int BN_set_bit ( BIGNUM * a , int n ) ;\n int BN_clear_bit ( BIGNUM * a , int n ) ;\n char * BN_bn2hex ( const BIGNUM * a ) ;\n char * BN_bn2dec ( const BIGNUM * a ) ;\n int BN_hex2bn ( BIGNUM * * a , const char * str ) ;\n int BN_dec2bn ( BIGNUM * * a , const char * str ) ;\n int BN_asc2bn ( BIGNUM * * a , const char * str ) ;\n int BN_gcd ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n int BN_kronecker ( const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n BIGNUM * BN_mod_inverse ( BIGNUM * ret , const BIGNUM * a , const BIGNUM * n , BN_CTX * ctx ) ;\n BIGNUM * BN_mod_sqrt ( BIGNUM * ret , const BIGNUM * a , const BIGNUM * n , BN_CTX * ctx ) ;\n # ifndef OPENSSL_NO_DEPRECATED BIGNUM * BN_generate_prime ( BIGNUM * ret , int bits , int safe , const BIGNUM * add , const BIGNUM * rem , void ( * callback ) ( int , int , void * ) , void * cb_arg ) ;\n int BN_is_prime ( const BIGNUM * p , int nchecks , void ( * callback ) ( int , int , void * ) , BN_CTX * ctx , void * cb_arg ) ;\n int BN_is_prime_fasttest ( const BIGNUM * p , int nchecks , void ( * callback ) ( int , int , void * ) , BN_CTX * ctx , void * cb_arg , int do_trial_division ) ;\n # endif int BN_generate_prime_ex ( BIGNUM * ret , int bits , int safe , const BIGNUM * add , const BIGNUM * rem , BN_GENCB * cb ) ;\n int BN_is_prime_ex ( const BIGNUM * p , int nchecks , BN_CTX * ctx , BN_GENCB * cb ) ;\n int BN_is_prime_fasttest_ex ( const BIGNUM * p , int nchecks , BN_CTX * ctx , int do_trial_division , BN_GENCB * cb ) ;\n int BN_X931_generate_Xpq ( BIGNUM * Xp , BIGNUM * Xq , int nbits , BN_CTX * ctx ) ;\n int BN_X931_derive_prime_ex ( BIGNUM * p , BIGNUM * p1 , BIGNUM * p2 , const BIGNUM * Xp , const BIGNUM * Xp1 , const BIGNUM * Xp2 , const BIGNUM * e , BN_CTX * ctx , BN_GENCB * cb ) ;\n int BN_X931_generate_prime_ex ( BIGNUM * p , BIGNUM * p1 , BIGNUM * p2 , BIGNUM * Xp1 , BIGNUM * Xp2 , const BIGNUM * Xp , const BIGNUM * e , BN_CTX * ctx , BN_GENCB * cb ) ;\n BN_MONT_CTX * BN_MONT_CTX_new ( void ) ;\n void BN_MONT_CTX_init ( BN_MONT_CTX * ctx ) ;\n int BN_mod_mul_montgomery ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_MONT_CTX * mont , BN_CTX * ctx ) ;\n # define BN_to_montgomery ( r , a , mont , ctx ) BN_mod_mul_montgomery ( \\ ( r ) , ( a ) , & ( ( mont ) -> RR ) , ( mont ) , ( ctx ) ) int BN_from_montgomery ( BIGNUM * r , const BIGNUM * a , BN_MONT_CTX * mont , BN_CTX * ctx ) ;\n void BN_MONT_CTX_free ( BN_MONT_CTX * mont ) ;\n int BN_MONT_CTX_set ( BN_MONT_CTX * mont , const BIGNUM * mod , BN_CTX * ctx ) ;\n BN_MONT_CTX * BN_MONT_CTX_copy ( BN_MONT_CTX * to , BN_MONT_CTX * from ) ;\n BN_MONT_CTX * BN_MONT_CTX_set_locked ( BN_MONT_CTX * * pmont , int lock , const BIGNUM * mod , BN_CTX * ctx ) ;\n # define BN_BLINDING_NO_UPDATE 0x00000001 # define BN_BLINDING_NO_RECREATE 0x00000002 BN_BLINDING * BN_BLINDING_new ( const BIGNUM * A , const BIGNUM * Ai , BIGNUM * mod ) ;\n void BN_BLINDING_free ( BN_BLINDING * b ) ;\n int BN_BLINDING_update ( BN_BLINDING * b , BN_CTX * ctx ) ;\n int BN_BLINDING_convert ( BIGNUM * n , BN_BLINDING * b , BN_CTX * ctx ) ;\n int BN_BLINDING_invert ( BIGNUM * n , BN_BLINDING * b , BN_CTX * ctx ) ;\n int BN_BLINDING_convert_ex ( BIGNUM * n , BIGNUM * r , BN_BLINDING * b , BN_CTX * ) ;\n int BN_BLINDING_invert_ex ( BIGNUM * n , const BIGNUM * r , BN_BLINDING * b , BN_CTX * ) ;\n # ifndef OPENSSL_NO_DEPRECATED unsigned long BN_BLINDING_get_thread_id ( const BN_BLINDING * ) ;\n void BN_BLINDING_set_thread_id ( BN_BLINDING * , unsigned long ) ;\n # endif CRYPTO_THREADID * BN_BLINDING_thread_id ( BN_BLINDING * ) ;\n unsigned long BN_BLINDING_get_flags ( const BN_BLINDING * ) ;\n void BN_BLINDING_set_flags ( BN_BLINDING * , unsigned long ) ;\n BN_BLINDING * BN_BLINDING_create_param ( BN_BLINDING * b , const BIGNUM * e , BIGNUM * m , BN_CTX * ctx , int ( * bn_mod_exp ) ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) , BN_MONT_CTX * m_ctx ) ;\n # ifndef OPENSSL_NO_DEPRECATED void BN_set_params ( int mul , int high , int low , int mont ) ;\n int BN_get_params ( int which ) ;\n # endif void BN_RECP_CTX_init ( BN_RECP_CTX * recp ) ;\n BN_RECP_CTX * BN_RECP_CTX_new ( void ) ;\n void BN_RECP_CTX_free ( BN_RECP_CTX * recp ) ;\n int BN_RECP_CTX_set ( BN_RECP_CTX * recp , const BIGNUM * rdiv , BN_CTX * ctx ) ;\n int BN_mod_mul_reciprocal ( BIGNUM * r , const BIGNUM * x , const BIGNUM * y , BN_RECP_CTX * recp , BN_CTX * ctx ) ;\n int BN_mod_exp_recp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_div_recp ( BIGNUM * dv , BIGNUM * rem , const BIGNUM * m , BN_RECP_CTX * recp , BN_CTX * ctx ) ;\n # ifndef OPENSSL_NO_EC2M int BN_GF2m_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n # define BN_GF2m_sub ( r , a , b ) BN_GF2m_add ( r , a , b ) int BN_GF2m_mod ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p ) ;\n int BN_GF2m_mod_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_inv ( BIGNUM * r , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_div ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_exp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqrt ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_solve_quad ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n # define BN_GF2m_cmp ( a , b ) BN_ucmp ( ( a ) , ( b ) ) int BN_GF2m_mod_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] ) ;\n int BN_GF2m_mod_mul_arr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqr_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_inv_arr ( BIGNUM * r , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_div_arr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_exp_arr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqrt_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_solve_quad_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_poly2arr ( const BIGNUM * a , int p [ ] , int max ) ;\n int BN_GF2m_arr2poly ( const int p [ ] , BIGNUM * a ) ;\n # endif int BN_nist_mod_192 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_224 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_256 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_384 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_521 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n const BIGNUM * BN_get0_nist_prime_192 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_224 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_256 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_384 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_521 ( void ) ;\n int ( * BN_nist_mod_func ( const BIGNUM * p ) ) ( BIGNUM * r , const BIGNUM * a , const BIGNUM * field , BN_CTX * ctx ) ;\n int BN_generate_dsa_nonce ( BIGNUM * out , const BIGNUM * range , const BIGNUM * priv , const unsigned char * message , size_t message_len , BN_CTX * ctx ) ;\n # define bn_expand ( a , bits ) ( ( ( ( ( ( bits + BN_BITS2 - 1 ) ) / BN_BITS2 ) ) <= ( a ) -> dmax ) ? \\ ( a ) : bn_expand2 ( ( a ) , ( bits + BN_BITS2 - 1 ) / BN_BITS2 ) ) # define bn_wexpand ( a , words ) ( ( ( words ) <= ( a ) -> dmax ) ? ( a ) : bn_expand2 ( ( a ) , ( words ) ) ) BIGNUM * bn_expand2 ( BIGNUM * a , int words ) ;\n # ifndef OPENSSL_NO_DEPRECATED BIGNUM * bn_dup_expand ( const BIGNUM * a , int words ) ;\n # endif # ifdef BN_DEBUG # include < assert . h > # ifdef BN_DEBUG_RAND # ifndef RAND_pseudo_bytes int RAND_pseudo_bytes ( unsigned char * buf , int num ) ;\n # define BN_DEBUG_TRIX # endif # define bn_pollute ( a ) \\ do {\n \\ const BIGNUM * _bnum1 = ( a ) ;\n \\ if ( _bnum1 -> top < _bnum1 -> dmax ) {\n \\ unsigned char _tmp_char ;\n \\ \\ BN_ULONG * _not_const ;\n \\ memcpy ( & _not_const , & _bnum1 -> d , sizeof ( BN_ULONG * ) ) ;\n \\ RAND_pseudo_bytes ( & _tmp_char , 1 ) ;\n \\ memset ( ( unsigned char * ) ( _not_const + _bnum1 -> top ) , _tmp_char , \\ ( _bnum1 -> dmax - _bnum1 -> top ) * sizeof ( BN_ULONG ) ) ;\n \\ }\n \\ }\n while ( 0 ) # ifdef BN_DEBUG_TRIX # undef RAND_pseudo_bytes # endif # else # define bn_pollute ( a ) # endif # define bn_check_top ( a ) \\ do {\n \\ const BIGNUM * _bnum2 = ( a ) ;\n \\ if ( _bnum2 != NULL ) {\n \\ assert ( ( _bnum2 -> top == 0 ) || \\ ( _bnum2 -> d [ _bnum2 -> top - 1 ] != 0 ) ) ;\n \\ bn_pollute ( _bnum2 ) ;\n \\ }\n \\ }\n while ( 0 ) # define bn_fix_top ( a ) bn_check_top ( a ) # else # define bn_pollute ( a ) # define bn_check_top ( a ) # define bn_fix_top ( a ) bn_correct_top ( a ) # endif # define bn_correct_top ( a ) \\ {\n \\ BN_ULONG * ftl ;\n \\ int tmp_top = ( a ) -> top ;\n \\ if ( tmp_top > 0 ) \\ {\n \\ for ( ftl = & ( ( a ) -> d [ tmp_top - 1 ] ) ;\n tmp_top > 0 ;\n tmp_top -- ) \\ if ( * ( ftl -- ) ) break ;\n \\ ( a ) -> top = tmp_top ;\n \\ }\n \\ bn_pollute ( a ) ;\n \\ }\n BN_ULONG bn_mul_add_words ( BN_ULONG * rp , const BN_ULONG * ap , int num , BN_ULONG w )"}
{"idx": 7941, "target": 0, "func": "static int peer_has_ufo ( VirtIONet * n ) {\n if ( ! peer_has_vnet_hdr ( n ) ) return 0 ;\n n -> has_ufo = tap_has_ufo ( n -> nic -> nc . peer ) ;\n return n -> has_ufo ;\n }"}
{"idx": 7942, "target": 0, "func": "static void test_evutil_strtoll ( void ) {\n const char * s ;\n char * endptr ;\n setup_test ( \"evutil_stroll: \" ) ;\n test_ok = 0 ;\n if ( evutil_strtoll ( \"5000000000\" , NULL , 10 ) != ( ( ev_int64_t ) 5000000 ) * 1000 ) goto err ;\n if ( evutil_strtoll ( \"-5000000000\" , NULL , 10 ) != ( ( ev_int64_t ) 5000000 ) * - 1000 ) goto err ;\n s = \" 99999stuff\" ;\n if ( evutil_strtoll ( s , & endptr , 10 ) != ( ev_int64_t ) 99999 ) goto err ;\n if ( endptr != s + 6 ) goto err ;\n if ( evutil_strtoll ( \"foo\" , NULL , 10 ) != 0 ) goto err ;\n test_ok = 1 ;\n err : cleanup_test ( ) ;\n }"}
{"idx": 7943, "target": 0, "func": "static int dissect_h245_Cmd_aal1 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_Cmd_aal1 , Cmd_aal1_sequence ) ;\n return offset ;\n }"}
{"idx": 7944, "target": 0, "func": "static void loop_filter_rows_mt ( const YV12_BUFFER_CONFIG * const frame_buffer , VP9_COMMON * const cm , struct macroblockd_plane planes [ MAX_MB_PLANE ] , int start , int stop , int y_only , VP9LfSync * const lf_sync , int num_lf_workers ) {\n const int num_planes = y_only ? 1 : MAX_MB_PLANE ;\n int r , c ;\n const int sb_cols = mi_cols_aligned_to_sb ( cm -> mi_cols ) >> MI_BLOCK_SIZE_LOG2 ;\n for ( r = start ;\n r < stop ;\n r += num_lf_workers ) {\n const int mi_row = r << MI_BLOCK_SIZE_LOG2 ;\n MODE_INFO * const mi = cm -> mi + mi_row * cm -> mi_stride ;\n for ( c = 0 ;\n c < sb_cols ;\n ++ c ) {\n const int mi_col = c << MI_BLOCK_SIZE_LOG2 ;\n LOOP_FILTER_MASK lfm ;\n int plane ;\n sync_read ( lf_sync , r , c ) ;\n vp9_setup_dst_planes ( planes , frame_buffer , mi_row , mi_col ) ;\n vp9_setup_mask ( cm , mi_row , mi_col , mi + mi_col , cm -> mi_stride , & lfm ) ;\n for ( plane = 0 ;\n plane < num_planes ;\n ++ plane ) {\n vp9_filter_block_plane ( cm , & planes [ plane ] , mi_row , & lfm ) ;\n }\n sync_write ( lf_sync , r , c , sb_cols ) ;\n }\n }\n }"}
{"idx": 7945, "target": 0, "func": "void vp9_idct16x16_add ( const tran_low_t * input , uint8_t * dest , int stride , int eob ) {\n if ( eob == 1 ) vp9_idct16x16_1_add ( input , dest , stride ) ;\n else if ( eob <= 10 ) vp9_idct16x16_10_add ( input , dest , stride ) ;\n else vp9_idct16x16_256_add ( input , dest , stride ) ;\n }"}
{"idx": 7946, "target": 0, "func": "static inline void evhttp_send ( struct evhttp_request * req , struct evbuffer * databuf ) {\n struct evhttp_connection * evcon = req -> evcon ;\n if ( evcon == NULL ) {\n evhttp_request_free ( req ) ;\n return ;\n }\n assert ( TAILQ_FIRST ( & evcon -> requests ) == req ) ;\n req -> userdone = 1 ;\n if ( databuf != NULL ) evbuffer_add_buffer ( req -> output_buffer , databuf ) ;\n evhttp_make_header ( evcon , req ) ;\n evhttp_write_buffer ( evcon , evhttp_send_done , NULL ) ;\n }"}
{"idx": 7947, "target": 1, "func": "static void update_state ( VP9_COMP * cpi , PICK_MODE_CONTEXT * ctx , int mi_row , int mi_col , BLOCK_SIZE bsize , int output_enabled ) {\n int i , x_idx , y ;\n VP9_COMMON * const cm = & cpi -> common ;\n RD_OPT * const rd_opt = & cpi -> rd ;\n MACROBLOCK * const x = & cpi -> mb ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n struct macroblock_plane * const p = x -> plane ;\n struct macroblockd_plane * const pd = xd -> plane ;\n MODE_INFO * mi = & ctx -> mic ;\n MB_MODE_INFO * const mbmi = & xd -> mi [ 0 ] -> mbmi ;\n MODE_INFO * mi_addr = xd -> mi [ 0 ] ;\n const struct segmentation * const seg = & cm -> seg ;\n const int mis = cm -> mi_stride ;\n const int mi_width = num_8x8_blocks_wide_lookup [ bsize ] ;\n const int mi_height = num_8x8_blocks_high_lookup [ bsize ] ;\n int max_plane ;\n assert ( mi -> mbmi . sb_type == bsize ) ;\n * mi_addr = * mi ;\n if ( seg -> enabled && output_enabled ) {\n if ( cpi -> oxcf . aq_mode == COMPLEXITY_AQ ) {\n const uint8_t * const map = seg -> update_map ? cpi -> segmentation_map : cm -> last_frame_seg_map ;\n mi_addr -> mbmi . segment_id = vp9_get_segment_id ( cm , map , bsize , mi_row , mi_col ) ;\n }\n if ( cpi -> oxcf . aq_mode == CYCLIC_REFRESH_AQ ) {\n vp9_cyclic_refresh_update_segment ( cpi , & xd -> mi [ 0 ] -> mbmi , mi_row , mi_col , bsize , 1 ) ;\n }\n }\n max_plane = is_inter_block ( mbmi ) ? MAX_MB_PLANE : 1 ;\n for ( i = 0 ;\n i < max_plane ;\n ++ i ) {\n p [ i ] . coeff = ctx -> coeff_pbuf [ i ] [ 1 ] ;\n p [ i ] . qcoeff = ctx -> qcoeff_pbuf [ i ] [ 1 ] ;\n pd [ i ] . dqcoeff = ctx -> dqcoeff_pbuf [ i ] [ 1 ] ;\n p [ i ] . eobs = ctx -> eobs_pbuf [ i ] [ 1 ] ;\n }\n for ( i = max_plane ;\n i < MAX_MB_PLANE ;\n ++ i ) {\n p [ i ] . coeff = ctx -> coeff_pbuf [ i ] [ 2 ] ;\n p [ i ] . qcoeff = ctx -> qcoeff_pbuf [ i ] [ 2 ] ;\n pd [ i ] . dqcoeff = ctx -> dqcoeff_pbuf [ i ] [ 2 ] ;\n p [ i ] . eobs = ctx -> eobs_pbuf [ i ] [ 2 ] ;\n }\n for ( y = 0 ;\n y < mi_height ;\n y ++ ) for ( x_idx = 0 ;\n x_idx < mi_width ;\n x_idx ++ ) if ( ( xd -> mb_to_right_edge >> ( 3 + MI_SIZE_LOG2 ) ) + mi_width > x_idx && ( xd -> mb_to_bottom_edge >> ( 3 + MI_SIZE_LOG2 ) ) + mi_height > y ) {\n xd -> mi [ x_idx + y * mis ] = mi_addr ;\n }\n if ( cpi -> oxcf . aq_mode ) vp9_init_plane_quantizers ( cpi , x ) ;\n if ( bsize < BLOCK_32X32 ) {\n if ( bsize < BLOCK_16X16 ) ctx -> tx_rd_diff [ ALLOW_16X16 ] = ctx -> tx_rd_diff [ ALLOW_8X8 ] ;\n ctx -> tx_rd_diff [ ALLOW_32X32 ] = ctx -> tx_rd_diff [ ALLOW_16X16 ] ;\n }\n if ( is_inter_block ( mbmi ) && mbmi -> sb_type < BLOCK_8X8 ) {\n mbmi -> mv [ 0 ] . as_int = mi -> bmi [ 3 ] . as_mv [ 0 ] . as_int ;\n mbmi -> mv [ 1 ] . as_int = mi -> bmi [ 3 ] . as_mv [ 1 ] . as_int ;\n }\n x -> skip = ctx -> skip ;\n vpx_memcpy ( x -> zcoeff_blk [ mbmi -> tx_size ] , ctx -> zcoeff_blk , sizeof ( uint8_t ) * ctx -> num_4x4_blk ) ;\n if ( ! output_enabled ) return ;\n if ( ! vp9_segfeature_active ( & cm -> seg , mbmi -> segment_id , SEG_LVL_SKIP ) ) {\n for ( i = 0 ;\n i < TX_MODES ;\n i ++ ) rd_opt -> tx_select_diff [ i ] += ctx -> tx_rd_diff [ i ] ;\n }\n # if CONFIG_INTERNAL_STATS if ( frame_is_intra_only ( cm ) ) {\n static const int kf_mode_index [ ] = {\n THR_DC , THR_V_PRED , THR_H_PRED , THR_D45_PRED , THR_D135_PRED , THR_D117_PRED , THR_D153_PRED , THR_D207_PRED , THR_D63_PRED , THR_TM , }\n ;\n ++ cpi -> mode_chosen_counts [ kf_mode_index [ mbmi -> mode ] ] ;\n }\n else {\n ++ cpi -> mode_chosen_counts [ ctx -> best_mode_index ] ;\n }\n # endif if ( ! frame_is_intra_only ( cm ) ) {\n if ( is_inter_block ( mbmi ) ) {\n vp9_update_mv_count ( cm , xd ) ;\n if ( cm -> interp_filter == SWITCHABLE ) {\n const int ctx = vp9_get_pred_context_switchable_interp ( xd ) ;\n ++ cm -> counts . switchable_interp [ ctx ] [ mbmi -> interp_filter ] ;\n }\n }\n rd_opt -> comp_pred_diff [ SINGLE_REFERENCE ] += ctx -> single_pred_diff ;\n rd_opt -> comp_pred_diff [ COMPOUND_REFERENCE ] += ctx -> comp_pred_diff ;\n rd_opt -> comp_pred_diff [ REFERENCE_MODE_SELECT ] += ctx -> hybrid_pred_diff ;\n for ( i = 0 ;\n i < SWITCHABLE_FILTER_CONTEXTS ;\n ++ i ) rd_opt -> filter_diff [ i ] += ctx -> best_filter_diff [ i ] ;\n }\n }"}
{"idx": 7948, "target": 0, "func": "void vp9_encode_block_intra ( MACROBLOCK * x , int plane , int block , BLOCK_SIZE plane_bsize , TX_SIZE tx_size , int8_t * skip ) {\n struct encode_b_args arg = {\n x , NULL , skip }\n ;\n encode_block_intra ( plane , block , plane_bsize , tx_size , & arg ) ;\n }"}
{"idx": 7949, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ClientHintsBrowserTest , ClientHintsHttpsIncognito ) {\n for ( size_t i = 0 ;\n i < 2 ;\n ++ i ) {\n base : : HistogramTester histogram_tester ;\n Browser * incognito = CreateIncognitoBrowser ( ) ;\n ui_test_utils : : NavigateToURL ( incognito , accept_ch_with_lifetime_url ( ) ) ;\n histogram_tester . ExpectUniqueSample ( \"ClientHints.UpdateEventCount\" , 1 , 1 ) ;\n content : : FetchHistogramsFromChildProcesses ( ) ;\n SubprocessMetricsProvider : : MergeHistogramDeltasForTesting ( ) ;\n histogram_tester . ExpectUniqueSample ( \"ClientHints.UpdateSize\" , 3 , 1 ) ;\n EXPECT_LE ( 1u , histogram_tester . GetAllSamples ( \"ClientHints.CountRulesReceived\" ) . size ( ) ) ;\n for ( const auto & bucket : histogram_tester . GetAllSamples ( \"ClientHints.CountRulesReceived\" ) ) {\n EXPECT_EQ ( 0 , bucket . min ) ;\n }\n histogram_tester . ExpectUniqueSample ( \"ClientHints.PersistDuration\" , * 1000 , 1 ) ;\n CloseBrowserSynchronously ( incognito ) ;\n }\n }"}
{"idx": 7950, "target": 0, "func": "static inline uint32_t e1000e_ring_len ( E1000ECore * core , const E1000E_RingInfo * r ) {\n return core -> mac [ r -> dlen ] ;\n }"}
{"idx": 7951, "target": 0, "func": "static inline void put_dct ( MpegEncContext * s , int16_t * block , int i , uint8_t * dest , int line_size , int qscale ) {\n s -> dct_unquantize_intra ( s , block , i , qscale ) ;\n s -> dsp . idct_put ( dest , line_size , block ) ;\n }"}
{"idx": 7952, "target": 0, "func": "static hb_bool_t hb_icu_unicode_decompose ( hb_unicode_funcs_t * ufuncs HB_UNUSED , hb_codepoint_t ab , hb_codepoint_t * a , hb_codepoint_t * b , void * user_data HB_UNUSED ) {\n # if U_ICU_VERSION_MAJOR_NUM >= 49 {\n UChar decomposed [ 4 ] ;\n int len ;\n UErrorCode icu_err = U_ZERO_ERROR ;\n len = unorm2_getRawDecomposition ( normalizer , ab , decomposed , ARRAY_LENGTH ( decomposed ) , & icu_err ) ;\n if ( U_FAILURE ( icu_err ) || len < 0 ) return false ;\n len = u_countChar32 ( decomposed , len ) ;\n if ( len == 1 ) {\n U16_GET_UNSAFE ( decomposed , 0 , * a ) ;\n * b = 0 ;\n return * a != ab ;\n }\n else if ( len == 2 ) {\n len = 0 ;\n U16_NEXT_UNSAFE ( decomposed , len , * a ) ;\n U16_NEXT_UNSAFE ( decomposed , len , * b ) ;\n }\n return true ;\n }\n # endif UChar utf16 [ 2 ] , normalized [ 2 * HB_UNICODE_MAX_DECOMPOSITION_LEN + 1 ] ;\n unsigned int len ;\n hb_bool_t ret , err ;\n UErrorCode icu_err ;\n len = 0 ;\n err = false ;\n U16_APPEND ( utf16 , len , ARRAY_LENGTH ( utf16 ) , ab , err ) ;\n if ( err ) return false ;\n icu_err = U_ZERO_ERROR ;\n len = unorm_normalize ( utf16 , len , UNORM_NFD , 0 , normalized , ARRAY_LENGTH ( normalized ) , & icu_err ) ;\n if ( U_FAILURE ( icu_err ) ) return false ;\n len = u_countChar32 ( normalized , len ) ;\n if ( len == 1 ) {\n U16_GET_UNSAFE ( normalized , 0 , * a ) ;\n * b = 0 ;\n ret = * a != ab ;\n }\n else if ( len == 2 ) {\n len = 0 ;\n U16_NEXT_UNSAFE ( normalized , len , * a ) ;\n U16_NEXT_UNSAFE ( normalized , len , * b ) ;\n UChar recomposed [ 20 ] ;\n icu_err = U_ZERO_ERROR ;\n unorm_normalize ( normalized , len , UNORM_NFC , 0 , recomposed , ARRAY_LENGTH ( recomposed ) , & icu_err ) ;\n if ( U_FAILURE ( icu_err ) ) return false ;\n hb_codepoint_t c ;\n U16_GET_UNSAFE ( recomposed , 0 , c ) ;\n if ( c != * a && c != ab ) {\n * a = c ;\n * b = 0 ;\n }\n ret = true ;\n }\n else {\n U16_PREV_UNSAFE ( normalized , len , * b ) ;\n UChar recomposed [ 18 * 2 ] ;\n icu_err = U_ZERO_ERROR ;\n len = unorm_normalize ( normalized , len , UNORM_NFC , 0 , recomposed , ARRAY_LENGTH ( recomposed ) , & icu_err ) ;\n if ( U_FAILURE ( icu_err ) ) return false ;\n if ( unlikely ( u_countChar32 ( recomposed , len ) != 1 ) ) return false ;\n U16_GET_UNSAFE ( recomposed , 0 , * a ) ;\n ret = true ;\n }\n return ret ;\n }"}
{"idx": 7953, "target": 0, "func": "double estimate_num_groups ( PlannerInfo * root , List * groupExprs , double input_rows , List * * pgset ) {\n List * varinfos = NIL ;\n double numdistinct ;\n ListCell * l ;\n int i ;\n input_rows = clamp_row_est ( input_rows ) ;\n if ( groupExprs == NIL || ( pgset && list_length ( * pgset ) < 1 ) ) return 1.0 ;\n numdistinct = 1.0 ;\n i = 0 ;\n foreach ( l , groupExprs ) {\n Node * groupexpr = ( Node * ) lfirst ( l ) ;\n VariableStatData vardata ;\n List * varshere ;\n ListCell * l2 ;\n if ( pgset && ! list_member_int ( * pgset , i ++ ) ) continue ;\n if ( exprType ( groupexpr ) == BOOLOID ) {\n numdistinct *= 2.0 ;\n continue ;\n }\n examine_variable ( root , groupexpr , 0 , & vardata ) ;\n if ( HeapTupleIsValid ( vardata . statsTuple ) || vardata . isunique ) {\n varinfos = add_unique_group_var ( root , varinfos , groupexpr , & vardata ) ;\n ReleaseVariableStats ( vardata ) ;\n continue ;\n }\n ReleaseVariableStats ( vardata ) ;\n varshere = pull_var_clause ( groupexpr , PVC_RECURSE_AGGREGATES | PVC_RECURSE_WINDOWFUNCS | PVC_RECURSE_PLACEHOLDERS ) ;\n if ( varshere == NIL ) {\n if ( contain_volatile_functions ( groupexpr ) ) return input_rows ;\n continue ;\n }\n foreach ( l2 , varshere ) {\n Node * var = ( Node * ) lfirst ( l2 ) ;\n examine_variable ( root , var , 0 , & vardata ) ;\n varinfos = add_unique_group_var ( root , varinfos , var , & vardata ) ;\n ReleaseVariableStats ( vardata ) ;\n }\n }\n if ( varinfos == NIL ) {\n if ( numdistinct > input_rows ) numdistinct = input_rows ;\n return numdistinct ;\n }\n do {\n GroupVarInfo * varinfo1 = ( GroupVarInfo * ) linitial ( varinfos ) ;\n RelOptInfo * rel = varinfo1 -> rel ;\n double reldistinct = varinfo1 -> ndistinct ;\n double relmaxndistinct = reldistinct ;\n int relvarcount = 1 ;\n List * newvarinfos = NIL ;\n for_each_cell ( l , lnext ( list_head ( varinfos ) ) ) {\n GroupVarInfo * varinfo2 = ( GroupVarInfo * ) lfirst ( l ) ;\n if ( varinfo2 -> rel == varinfo1 -> rel ) {\n reldistinct *= varinfo2 -> ndistinct ;\n if ( relmaxndistinct < varinfo2 -> ndistinct ) relmaxndistinct = varinfo2 -> ndistinct ;\n relvarcount ++ ;\n }\n else {\n newvarinfos = lcons ( varinfo2 , newvarinfos ) ;\n }\n }\n Assert ( rel -> reloptkind == RELOPT_BASEREL ) ;\n if ( rel -> tuples > 0 ) {\n double clamp = rel -> tuples ;\n if ( relvarcount > 1 ) {\n clamp *= 0.1 ;\n if ( clamp < relmaxndistinct ) {\n clamp = relmaxndistinct ;\n if ( clamp > rel -> tuples ) clamp = rel -> tuples ;\n }\n }\n if ( reldistinct > clamp ) reldistinct = clamp ;\n if ( reldistinct > 0 && rel -> rows < rel -> tuples ) {\n reldistinct *= ( 1 - pow ( ( rel -> tuples - rel -> rows ) / rel -> tuples , rel -> tuples / reldistinct ) ) ;\n }\n reldistinct = clamp_row_est ( reldistinct ) ;\n numdistinct *= reldistinct ;\n }\n varinfos = newvarinfos ;\n }\n while ( varinfos != NIL ) ;\n numdistinct = ceil ( numdistinct ) ;\n if ( numdistinct > input_rows ) numdistinct = input_rows ;\n if ( numdistinct < 1.0 ) numdistinct = 1.0 ;\n return numdistinct ;\n }"}
{"idx": 7954, "target": 0, "func": "static void test_mysql_insert_id ( ) {\n my_ulonglong res ;\n int rc ;\n myheader ( \"test_mysql_insert_id\" ) ;\n rc = mysql_query ( mysql , \"drop table if exists t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t1 (f1 int, f2 varchar(255), key(f1))\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t1 values (1,'a')\" ) ;\n myquery ( rc ) ;\n res = mysql_insert_id ( mysql ) ;\n DIE_UNLESS ( res == 0 ) ;\n rc = mysql_query ( mysql , \"insert into t1 values (null,'b')\" ) ;\n myquery ( rc ) ;\n res = mysql_insert_id ( mysql ) ;\n DIE_UNLESS ( res == 0 ) ;\n rc = mysql_query ( mysql , \"insert into t1 select 5,'c'\" ) ;\n myquery ( rc ) ;\n res = mysql_insert_id ( mysql ) ;\n DIE_UNLESS ( res == 0 ) ;\n rc = mysql_query ( mysql , \"create table t2 (f1 int not null primary key auto_increment, f2 varchar(255))\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t2 values (null,'b')\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t1 select 5,'c'\" ) ;\n myquery ( rc ) ;\n res = mysql_insert_id ( mysql ) ;\n DIE_UNLESS ( res == 0 ) ;\n rc = mysql_query ( mysql , \"drop table t2\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t1 select null,'d'\" ) ;\n myquery ( rc ) ;\n res = mysql_insert_id ( mysql ) ;\n DIE_UNLESS ( res == 0 ) ;\n rc = mysql_query ( mysql , \"insert into t1 values (null,last_insert_id(300))\" ) ;\n myquery ( rc ) ;\n res = mysql_insert_id ( mysql ) ;\n DIE_UNLESS ( res == 300 ) ;\n rc = mysql_query ( mysql , \"insert into t1 select null,last_insert_id(400)\" ) ;\n myquery ( rc ) ;\n res = mysql_insert_id ( mysql ) ;\n DIE_UNLESS ( res == 400 ) ;\n rc = mysql_query ( mysql , \"create table t2 (f1 int not null primary key auto_increment, f2 varchar(255))\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t2 values (1,'a')\" ) ;\n myquery ( rc ) ;\n res = mysql_insert_id ( mysql ) ;\n DIE_UNLESS ( res == 1 ) ;\n rc = mysql_query ( mysql , \"insert into t1 values (10,'e')\" ) ;\n myquery ( rc ) ;\n res = mysql_insert_id ( mysql ) ;\n DIE_UNLESS ( res == 0 ) ;\n rc = mysql_query ( mysql , \"insert into t2 values (null,'b')\" ) ;\n myquery ( rc ) ;\n res = mysql_insert_id ( mysql ) ;\n DIE_UNLESS ( res == 2 ) ;\n rc = mysql_query ( mysql , \"insert into t2 select 5,'c'\" ) ;\n myquery ( rc ) ;\n res = mysql_insert_id ( mysql ) ;\n DIE_UNLESS ( res == 5 ) ;\n rc = mysql_query ( mysql , \"insert into t2 select null,'d'\" ) ;\n myquery ( rc ) ;\n res = mysql_insert_id ( mysql ) ;\n DIE_UNLESS ( res == 6 ) ;\n rc = mysql_query ( mysql , \"insert into t2 values (10,'a'),(11,'b')\" ) ;\n myquery ( rc ) ;\n res = mysql_insert_id ( mysql ) ;\n DIE_UNLESS ( res == 11 ) ;\n rc = mysql_query ( mysql , \"insert into t2 select 12,'a' union select 13,'b'\" ) ;\n myquery ( rc ) ;\n res = mysql_insert_id ( mysql ) ;\n DIE_UNLESS ( res == 13 ) ;\n rc = mysql_query ( mysql , \"insert into t2 values (null,'a'),(null,'b')\" ) ;\n myquery ( rc ) ;\n res = mysql_insert_id ( mysql ) ;\n DIE_UNLESS ( res == 14 ) ;\n rc = mysql_query ( mysql , \"insert into t2 select null,'a' union select null,'b'\" ) ;\n myquery ( rc ) ;\n res = mysql_insert_id ( mysql ) ;\n DIE_UNLESS ( res == 16 ) ;\n rc = mysql_query ( mysql , \"insert into t2 select 12,'a' union select 13,'b'\" ) ;\n myquery_r ( rc ) ;\n rc = mysql_query ( mysql , \"insert ignore into t2 select 12,'a' union select 13,'b'\" ) ;\n myquery ( rc ) ;\n res = mysql_insert_id ( mysql ) ;\n DIE_UNLESS ( res == 0 ) ;\n rc = mysql_query ( mysql , \"insert into t2 values (12,'a'),(13,'b')\" ) ;\n myquery_r ( rc ) ;\n res = mysql_insert_id ( mysql ) ;\n DIE_UNLESS ( res == 0 ) ;\n rc = mysql_query ( mysql , \"insert ignore into t2 values (12,'a'),(13,'b')\" ) ;\n myquery ( rc ) ;\n res = mysql_insert_id ( mysql ) ;\n DIE_UNLESS ( res == 0 ) ;\n rc = mysql_query ( mysql , \"insert into t2 values (null,'e'),(12,'a'),(13,'b')\" ) ;\n myquery_r ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t2 values (null,'e'),(12,'a'),(13,'b'),(25,'g')\" ) ;\n myquery_r ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t2 values (null,last_insert_id(300))\" ) ;\n myquery ( rc ) ;\n res = mysql_insert_id ( mysql ) ;\n DIE_UNLESS ( res == 20 ) ;\n rc = mysql_query ( mysql , \"drop table t2\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t2 (f1 int not null primary key \" \"auto_increment, f2 varchar(255), unique (f2))\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t2 values (null,'e')\" ) ;\n res = mysql_insert_id ( mysql ) ;\n DIE_UNLESS ( res == 1 ) ;\n rc = mysql_query ( mysql , \"insert ignore into t2 values (null,'e'),(null,'a'),(null,'e')\" ) ;\n myquery ( rc ) ;\n res = mysql_insert_id ( mysql ) ;\n DIE_UNLESS ( res == 2 ) ;\n rc = mysql_query ( mysql , \"insert ignore into t2 values (null,'e'),(12,'c'),(null,'d')\" ) ;\n myquery ( rc ) ;\n res = mysql_insert_id ( mysql ) ;\n DIE_UNLESS ( res == 13 ) ;\n rc = mysql_query ( mysql , \"update t2 set f1=14 where f1=12\" ) ;\n myquery ( rc ) ;\n res = mysql_insert_id ( mysql ) ;\n DIE_UNLESS ( res == 0 ) ;\n rc = mysql_query ( mysql , \"update t2 set f1=0 where f1=14\" ) ;\n myquery ( rc ) ;\n res = mysql_insert_id ( mysql ) ;\n DIE_UNLESS ( res == 0 ) ;\n rc = mysql_query ( mysql , \"update t2 set f2=last_insert_id(372) where f1=0\" ) ;\n myquery ( rc ) ;\n res = mysql_insert_id ( mysql ) ;\n DIE_UNLESS ( res == 372 ) ;\n rc = mysql_query ( mysql , \"insert into t2 values (null,'g')\" ) ;\n myquery ( rc ) ;\n res = mysql_insert_id ( mysql ) ;\n DIE_UNLESS ( res == 15 ) ;\n rc = mysql_query ( mysql , \"update t2 set f2=(@li:=last_insert_id()) where f1=15\" ) ;\n myquery ( rc ) ;\n res = mysql_insert_id ( mysql ) ;\n DIE_UNLESS ( res == 0 ) ;\n rc = mysql_query ( mysql , \"insert into t2 values (null,@li) on duplicate key \" \"update f2=concat('we updated ',f2)\" ) ;\n myquery ( rc ) ;\n res = mysql_insert_id ( mysql ) ;\n DIE_UNLESS ( res == 15 ) ;\n rc = mysql_query ( mysql , \"drop table t1,t2\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 7955, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n RALFContext * ctx = avctx -> priv_data ;\n AVFrame * frame = data ;\n int16_t * samples0 ;\n int16_t * samples1 ;\n int ret ;\n GetBitContext gb ;\n int table_size , table_bytes , i ;\n const uint8_t * src , * block_pointer ;\n int src_size ;\n int bytes_left ;\n if ( ctx -> has_pkt ) {\n ctx -> has_pkt = 0 ;\n table_bytes = ( AV_RB16 ( avpkt -> data ) + 7 ) >> 3 ;\n if ( table_bytes + 3 > avpkt -> size || avpkt -> size > RALF_MAX_PKT_SIZE ) {\n av_log ( avctx , AV_LOG_ERROR , \"Wrong packet's breath smells of wrong data!\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( memcmp ( ctx -> pkt , avpkt -> data , 2 + table_bytes ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Wrong packet tails are wrong!\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n src = ctx -> pkt ;\n src_size = RALF_MAX_PKT_SIZE + avpkt -> size ;\n memcpy ( ctx -> pkt + RALF_MAX_PKT_SIZE , avpkt -> data + 2 + table_bytes , avpkt -> size - 2 - table_bytes ) ;\n }\n else {\n if ( avpkt -> size == RALF_MAX_PKT_SIZE ) {\n memcpy ( ctx -> pkt , avpkt -> data , avpkt -> size ) ;\n ctx -> has_pkt = 1 ;\n * got_frame_ptr = 0 ;\n return avpkt -> size ;\n }\n src = avpkt -> data ;\n src_size = avpkt -> size ;\n }\n frame -> nb_samples = ctx -> max_frame_size ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Me fail get_buffer()? That's unpossible!\\n\" ) ;\n return ret ;\n }\n samples0 = ( int16_t * ) frame -> data [ 0 ] ;\n samples1 = ( int16_t * ) frame -> data [ 1 ] ;\n if ( src_size < 5 ) {\n av_log ( avctx , AV_LOG_ERROR , \"too short packets are too short!\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n table_size = AV_RB16 ( src ) ;\n table_bytes = ( table_size + 7 ) >> 3 ;\n if ( src_size < table_bytes + 3 ) {\n av_log ( avctx , AV_LOG_ERROR , \"short packets are short!\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n init_get_bits ( & gb , src + 2 , table_size ) ;\n ctx -> num_blocks = 0 ;\n while ( get_bits_left ( & gb ) > 0 ) {\n ctx -> block_size [ ctx -> num_blocks ] = get_bits ( & gb , 15 ) ;\n if ( get_bits1 ( & gb ) ) {\n ctx -> block_pts [ ctx -> num_blocks ] = get_bits ( & gb , 9 ) ;\n }\n else {\n ctx -> block_pts [ ctx -> num_blocks ] = 0 ;\n }\n ctx -> num_blocks ++ ;\n }\n block_pointer = src + table_bytes + 2 ;\n bytes_left = src_size - table_bytes - 2 ;\n ctx -> sample_offset = 0 ;\n for ( i = 0 ;\n i < ctx -> num_blocks ;\n i ++ ) {\n if ( bytes_left < ctx -> block_size [ i ] ) {\n av_log ( avctx , AV_LOG_ERROR , \"I'm pedaling backwards\\n\" ) ;\n break ;\n }\n init_get_bits ( & gb , block_pointer , ctx -> block_size [ i ] * 8 ) ;\n if ( decode_block ( avctx , & gb , samples0 + ctx -> sample_offset , samples1 + ctx -> sample_offset ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Sir, I got carsick in your office. Not decoding the rest of packet.\\n\" ) ;\n break ;\n }\n block_pointer += ctx -> block_size [ i ] ;\n bytes_left -= ctx -> block_size [ i ] ;\n }\n frame -> nb_samples = ctx -> sample_offset ;\n * got_frame_ptr = ctx -> sample_offset > 0 ;\n return avpkt -> size ;\n }"}
{"idx": 7956, "target": 0, "func": "static void update_golden_frame_stats ( VP8_COMP * cpi ) {\n VP8_COMMON * cm = & cpi -> common ;\n if ( cm -> refresh_golden_frame ) {\n if ( ! cpi -> auto_gold ) cpi -> frames_till_gf_update_due = DEFAULT_GF_INTERVAL ;\n if ( ( cpi -> pass != 2 ) && ( cpi -> frames_till_gf_update_due > 0 ) ) {\n cpi -> current_gf_interval = cpi -> frames_till_gf_update_due ;\n if ( ( cm -> frame_type != KEY_FRAME ) && ! cpi -> source_alt_ref_active ) {\n cpi -> gf_overspend_bits += ( cpi -> projected_frame_size - cpi -> inter_frame_target ) ;\n }\n cpi -> non_gf_bitrate_adjustment = cpi -> gf_overspend_bits / cpi -> frames_till_gf_update_due ;\n }\n vpx_memset ( cpi -> gf_active_flags , 1 , ( cm -> mb_rows * cm -> mb_cols ) ) ;\n cpi -> gf_active_count = cm -> mb_rows * cm -> mb_cols ;\n cm -> refresh_golden_frame = 0 ;\n cpi -> frames_since_golden = 0 ;\n cpi -> recent_ref_frame_usage [ INTRA_FRAME ] = 1 ;\n cpi -> recent_ref_frame_usage [ LAST_FRAME ] = 1 ;\n cpi -> recent_ref_frame_usage [ GOLDEN_FRAME ] = 1 ;\n cpi -> recent_ref_frame_usage [ ALTREF_FRAME ] = 1 ;\n if ( cpi -> oxcf . fixed_q >= 0 && cpi -> oxcf . play_alternate && ! cpi -> common . refresh_alt_ref_frame ) {\n cpi -> source_alt_ref_pending = 1 ;\n cpi -> frames_till_gf_update_due = cpi -> baseline_gf_interval ;\n }\n if ( ! cpi -> source_alt_ref_pending ) cpi -> source_alt_ref_active = 0 ;\n if ( cpi -> frames_till_gf_update_due > 0 ) cpi -> frames_till_gf_update_due -- ;\n }\n else if ( ! cpi -> common . refresh_alt_ref_frame ) {\n if ( cpi -> frames_till_gf_update_due > 0 ) cpi -> frames_till_gf_update_due -- ;\n if ( cpi -> frames_till_alt_ref_frame ) cpi -> frames_till_alt_ref_frame -- ;\n cpi -> frames_since_golden ++ ;\n if ( cpi -> frames_since_golden > 1 ) {\n cpi -> recent_ref_frame_usage [ INTRA_FRAME ] += cpi -> mb . count_mb_ref_frame_usage [ INTRA_FRAME ] ;\n cpi -> recent_ref_frame_usage [ LAST_FRAME ] += cpi -> mb . count_mb_ref_frame_usage [ LAST_FRAME ] ;\n cpi -> recent_ref_frame_usage [ GOLDEN_FRAME ] += cpi -> mb . count_mb_ref_frame_usage [ GOLDEN_FRAME ] ;\n cpi -> recent_ref_frame_usage [ ALTREF_FRAME ] += cpi -> mb . count_mb_ref_frame_usage [ ALTREF_FRAME ] ;\n }\n }\n }"}
{"idx": 7957, "target": 1, "func": "int parse_CCategorizationSpec ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree , const char * fmt , ... ) {\n proto_item * item ;\n proto_tree * tree ;\n const char * txt ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CCategorizationSpec , & item , txt ) ;\n offset = parse_CColumnSet ( tvb , offset , tree , \"csColumns\" ) ;\n offset = parse_CCategSpec ( tvb , offset , tree , pad_tree , \"Spec\" ) ;\n offset = parse_CAggregSet ( tvb , offset , tree , pad_tree , \"AggregSet\" ) ;\n offset = parse_CSortAggregSet ( tvb , offset , tree , pad_tree , \"SortAggregSet\" ) ;\n offset = parse_CInGroupSortAggregSets ( tvb , offset , tree , pad_tree , \"InGroupSortAggregSets\" ) ;\n proto_tree_add_item ( tree , hf_mswsp_categorizationspec_cmaxres , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 7958, "target": 0, "func": "static void y4m_convert_42xmpeg2_42xjpeg ( y4m_input * _y4m , unsigned char * _dst , unsigned char * _aux ) {\n int c_w ;\n int c_h ;\n int c_sz ;\n int pli ;\n _dst += _y4m -> pic_w * _y4m -> pic_h ;\n c_w = ( _y4m -> pic_w + _y4m -> dst_c_dec_h - 1 ) / _y4m -> dst_c_dec_h ;\n c_h = ( _y4m -> pic_h + _y4m -> dst_c_dec_v - 1 ) / _y4m -> dst_c_dec_v ;\n c_sz = c_w * c_h ;\n for ( pli = 1 ;\n pli < 3 ;\n pli ++ ) {\n y4m_42xmpeg2_42xjpeg_helper ( _dst , _aux , c_w , c_h ) ;\n _dst += c_sz ;\n _aux += c_sz ;\n }\n }"}
{"idx": 7959, "target": 0, "func": "static void e1000e_set_fcrth ( E1000ECore * core , int index , uint32_t val ) {\n core -> mac [ FCRTH ] = val & 0xFFF8 ;\n }"}
{"idx": 7960, "target": 0, "func": "static void empty_trash_thread_func ( GTask * task , gpointer source_object , gpointer task_data , GCancellable * cancellable ) {\n EmptyTrashJob * job = task_data ;\n CommonJob * common ;\n GList * l ;\n gboolean confirmed ;\n common = ( CommonJob * ) job ;\n nautilus_progress_info_start ( job -> common . progress ) ;\n if ( job -> should_confirm ) {\n confirmed = confirm_empty_trash ( common ) ;\n }\n else {\n confirmed = TRUE ;\n }\n if ( confirmed ) {\n for ( l = job -> trash_dirs ;\n l != NULL && ! job_aborted ( common ) ;\n l = l -> next ) {\n delete_trash_file ( common , l -> data , FALSE , TRUE ) ;\n }\n }\n }"}
{"idx": 7961, "target": 0, "func": "static int dissect_h225_CallTerminationCause ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_CallTerminationCause , CallTerminationCause_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 7962, "target": 0, "func": "static inline __s32 ceph_seq_cmp ( __u32 a , __u32 b ) {\n return ( __s32 ) a - ( __s32 ) b ;\n }"}
{"idx": 7963, "target": 0, "func": "DEFINE_TEST ( test_write_disk_secure ) {\n # if defined ( _WIN32 ) && ! defined ( __CYGWIN__ ) skipping ( \"archive_write_disk security checks not supported on Windows\" ) ;\n # else struct archive * a ;\n struct archive_entry * ae ;\n struct stat st ;\n assertUmask ( UMASK ) ;\n assert ( ( a = archive_write_disk_new ( ) ) != NULL ) ;\n assert ( ( ae = archive_entry_new ( ) ) != NULL ) ;\n archive_entry_copy_pathname ( ae , \"dir\" ) ;\n archive_entry_set_mode ( ae , S_IFDIR | 0777 ) ;\n assert ( 0 == archive_write_header ( a , ae ) ) ;\n archive_entry_free ( ae ) ;\n assert ( 0 == archive_write_finish_entry ( a ) ) ;\n assert ( ( ae = archive_entry_new ( ) ) != NULL ) ;\n archive_entry_copy_pathname ( ae , \"link_to_dir\" ) ;\n archive_entry_set_mode ( ae , S_IFLNK | 0777 ) ;\n archive_entry_set_symlink ( ae , \"dir\" ) ;\n archive_write_disk_set_options ( a , 0 ) ;\n assert ( 0 == archive_write_header ( a , ae ) ) ;\n assert ( 0 == archive_write_finish_entry ( a ) ) ;\n assert ( archive_entry_clear ( ae ) != NULL ) ;\n archive_entry_copy_pathname ( ae , \"link_to_dir/filea\" ) ;\n archive_entry_set_mode ( ae , S_IFREG | 0777 ) ;\n assert ( 0 == archive_write_header ( a , ae ) ) ;\n assert ( 0 == archive_write_finish_entry ( a ) ) ;\n assert ( archive_entry_clear ( ae ) != NULL ) ;\n archive_entry_copy_pathname ( ae , \"link_to_dir/fileb\" ) ;\n archive_entry_set_mode ( ae , S_IFREG | 0777 ) ;\n archive_write_disk_set_options ( a , ARCHIVE_EXTRACT_SECURE_SYMLINKS ) ;\n failure ( \"Extracting a file through a symlink should fail here.\" ) ;\n assertEqualInt ( ARCHIVE_FAILED , archive_write_header ( a , ae ) ) ;\n archive_entry_free ( ae ) ;\n assert ( 0 == archive_write_finish_entry ( a ) ) ;\n assert ( ( ae = archive_entry_new ( ) ) != NULL ) ;\n archive_entry_copy_pathname ( ae , \"link_to_dir2\" ) ;\n archive_entry_set_mode ( ae , S_IFLNK | 0777 ) ;\n archive_entry_set_symlink ( ae , \"dir\" ) ;\n archive_write_disk_set_options ( a , 0 ) ;\n assert ( 0 == archive_write_header ( a , ae ) ) ;\n assert ( 0 == archive_write_finish_entry ( a ) ) ;\n assert ( archive_entry_clear ( ae ) != NULL ) ;\n archive_entry_copy_pathname ( ae , \"link_to_dir2/filec\" ) ;\n archive_entry_set_mode ( ae , S_IFREG | 0777 ) ;\n archive_write_disk_set_options ( a , ARCHIVE_EXTRACT_SECURE_SYMLINKS | ARCHIVE_EXTRACT_UNLINK ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_write_header ( a , ae ) ) ;\n archive_entry_free ( ae ) ;\n assert ( 0 == archive_write_finish_entry ( a ) ) ;\n assert ( ( ae = archive_entry_new ( ) ) != NULL ) ;\n archive_entry_copy_pathname ( ae , \"link_to_dir3\" ) ;\n archive_entry_set_mode ( ae , S_IFLNK | 0777 ) ;\n archive_entry_set_symlink ( ae , \"dir\" ) ;\n archive_write_disk_set_options ( a , 0 ) ;\n assert ( 0 == archive_write_header ( a , ae ) ) ;\n assert ( 0 == archive_write_finish_entry ( a ) ) ;\n assert ( archive_entry_clear ( ae ) != NULL ) ;\n archive_entry_copy_pathname ( ae , \"link_to_dir3\" ) ;\n archive_entry_set_mode ( ae , S_IFDIR | 0777 ) ;\n assert ( 0 == archive_write_header ( a , ae ) ) ;\n assert ( 0 == archive_write_finish_entry ( a ) ) ;\n assertEqualInt ( 0 , lstat ( \"link_to_dir3\" , & st ) ) ;\n assert ( S_ISLNK ( st . st_mode ) ) ;\n archive_entry_free ( ae ) ;\n assert ( ( ae = archive_entry_new ( ) ) != NULL ) ;\n archive_entry_copy_pathname ( ae , \"link_to_dir4\" ) ;\n archive_entry_set_mode ( ae , S_IFLNK | 0777 ) ;\n archive_entry_set_symlink ( ae , \"nonexistent_dir\" ) ;\n archive_write_disk_set_options ( a , 0 ) ;\n assert ( 0 == archive_write_header ( a , ae ) ) ;\n assert ( 0 == archive_write_finish_entry ( a ) ) ;\n assert ( archive_entry_clear ( ae ) != NULL ) ;\n archive_entry_copy_pathname ( ae , \"link_to_dir4\" ) ;\n archive_entry_set_mode ( ae , S_IFDIR | 0777 ) ;\n assert ( 0 == archive_write_header ( a , ae ) ) ;\n assert ( 0 == archive_write_finish_entry ( a ) ) ;\n assertEqualInt ( 0 , lstat ( \"link_to_dir4\" , & st ) ) ;\n assert ( S_ISDIR ( st . st_mode ) ) ;\n archive_entry_free ( ae ) ;\n assert ( ( ae = archive_entry_new ( ) ) != NULL ) ;\n archive_entry_copy_pathname ( ae , \"non_dir\" ) ;\n archive_entry_set_mode ( ae , S_IFREG | 0777 ) ;\n archive_write_disk_set_options ( a , 0 ) ;\n assert ( 0 == archive_write_header ( a , ae ) ) ;\n assert ( 0 == archive_write_finish_entry ( a ) ) ;\n archive_entry_copy_pathname ( ae , \"link_to_dir5\" ) ;\n archive_entry_set_mode ( ae , S_IFLNK | 0777 ) ;\n archive_entry_set_symlink ( ae , \"non_dir\" ) ;\n archive_write_disk_set_options ( a , 0 ) ;\n assert ( 0 == archive_write_header ( a , ae ) ) ;\n assert ( 0 == archive_write_finish_entry ( a ) ) ;\n assert ( archive_entry_clear ( ae ) != NULL ) ;\n archive_entry_copy_pathname ( ae , \"link_to_dir5\" ) ;\n archive_entry_set_mode ( ae , S_IFDIR | 0777 ) ;\n assert ( 0 == archive_write_header ( a , ae ) ) ;\n assert ( 0 == archive_write_finish_entry ( a ) ) ;\n assertEqualInt ( 0 , lstat ( \"link_to_dir5\" , & st ) ) ;\n assert ( S_ISDIR ( st . st_mode ) ) ;\n archive_entry_free ( ae ) ;\n assert ( ( ae = archive_entry_new ( ) ) != NULL ) ;\n archive_entry_copy_pathname ( ae , \"/tmp/libarchive_test-test_write_disk_secure-absolute_path.tmp\" ) ;\n archive_entry_set_mode ( ae , S_IFREG | 0777 ) ;\n assert ( 0 == archive_write_header ( a , ae ) ) ;\n assert ( 0 == archive_write_finish_entry ( a ) ) ;\n assertFileExists ( \"/tmp/libarchive_test-test_write_disk_secure-absolute_path.tmp\" ) ;\n assert ( 0 == unlink ( \"/tmp/libarchive_test-test_write_disk_secure-absolute_path.tmp\" ) ) ;\n assert ( archive_entry_clear ( ae ) != NULL ) ;\n archive_entry_copy_pathname ( ae , \"/tmp/libarchive_test-test_write_disk_secure-absolute_path.tmp\" ) ;\n archive_entry_set_mode ( ae , S_IFREG | 0777 ) ;\n archive_write_disk_set_options ( a , ARCHIVE_EXTRACT_SECURE_NOABSOLUTEPATHS ) ;\n failure ( \"Extracting an absolute path should fail here.\" ) ;\n assertEqualInt ( ARCHIVE_FAILED , archive_write_header ( a , ae ) ) ;\n archive_entry_free ( ae ) ;\n assert ( 0 == archive_write_finish_entry ( a ) ) ;\n assertFileNotExists ( \"/tmp/libarchive_test-test_write_disk_secure-absolute_path.tmp\" ) ;\n assertEqualInt ( ARCHIVE_OK , archive_write_free ( a ) ) ;\n assert ( 0 == lstat ( \"dir\" , & st ) ) ;\n failure ( \"dir: st.st_mode=%o\" , st . st_mode ) ;\n assert ( ( st . st_mode & 0777 ) == 0755 ) ;\n assert ( 0 == lstat ( \"link_to_dir\" , & st ) ) ;\n failure ( \"link_to_dir: st.st_mode=%o\" , st . st_mode ) ;\n assert ( S_ISLNK ( st . st_mode ) ) ;\n # if HAVE_LCHMOD failure ( \"link_to_dir: st.st_mode=%o\" , st . st_mode ) ;\n assert ( ( st . st_mode & 07777 ) == 0755 ) ;\n # endif assert ( 0 == lstat ( \"dir/filea\" , & st ) ) ;\n failure ( \"dir/filea: st.st_mode=%o\" , st . st_mode ) ;\n assert ( ( st . st_mode & 07777 ) == 0755 ) ;\n failure ( \"dir/fileb: This file should not have been created\" ) ;\n assert ( 0 != lstat ( \"dir/fileb\" , & st ) ) ;\n assert ( 0 == lstat ( \"link_to_dir2\" , & st ) ) ;\n failure ( \"link_to_dir2 should have been re-created as a true dir\" ) ;\n assert ( S_ISDIR ( st . st_mode ) ) ;\n failure ( \"link_to_dir2: Implicit dir creation should obey umask, but st.st_mode=%o\" , st . st_mode ) ;\n assert ( ( st . st_mode & 0777 ) == 0755 ) ;\n assert ( 0 == lstat ( \"link_to_dir2/filec\" , & st ) ) ;\n assert ( S_ISREG ( st . st_mode ) ) ;\n failure ( \"link_to_dir2/filec: st.st_mode=%o\" , st . st_mode ) ;\n assert ( ( st . st_mode & 07777 ) == 0755 ) ;\n # endif }"}
{"idx": 7964, "target": 0, "func": "static fz_path * xps_parse_abbreviated_geometry ( xps_document * doc , char * geom , int * fill_rule ) {\n fz_path * path ;\n char * * args ;\n char * * pargs ;\n char * s = geom ;\n fz_point pt ;\n int i , n ;\n int cmd , old ;\n float x1 , y1 , x2 , y2 , x3 , y3 ;\n float smooth_x , smooth_y ;\n int reset_smooth ;\n path = fz_new_path ( doc -> ctx ) ;\n args = fz_malloc_array ( doc -> ctx , strlen ( geom ) + 1 , sizeof ( char * ) ) ;\n pargs = args ;\n while ( * s ) {\n if ( ( * s >= 'A' && * s <= 'Z' ) || ( * s >= 'a' && * s <= 'z' ) ) {\n * pargs ++ = s ++ ;\n }\n else if ( ( * s >= '0' && * s <= '9' ) || * s == '.' || * s == '+' || * s == '-' || * s == 'e' || * s == 'E' ) {\n * pargs ++ = s ;\n while ( ( * s >= '0' && * s <= '9' ) || * s == '.' || * s == '+' || * s == '-' || * s == 'e' || * s == 'E' ) s ++ ;\n }\n else {\n s ++ ;\n }\n }\n * pargs = s ;\n n = pargs - args ;\n i = 0 ;\n old = 0 ;\n reset_smooth = 1 ;\n smooth_x = 0 ;\n smooth_y = 0 ;\n while ( i < n ) {\n cmd = args [ i ] [ 0 ] ;\n if ( cmd == '+' || cmd == '.' || cmd == '-' || ( cmd >= '0' && cmd <= '9' ) ) cmd = old ;\n else i ++ ;\n if ( reset_smooth ) {\n smooth_x = 0 ;\n smooth_y = 0 ;\n }\n reset_smooth = 1 ;\n switch ( cmd ) {\n case 'F' : if ( i >= n ) break ;\n * fill_rule = atoi ( args [ i ] ) ;\n i ++ ;\n break ;\n case 'M' : if ( i + 1 >= n ) break ;\n fz_moveto ( doc -> ctx , path , fz_atof ( args [ i ] ) , fz_atof ( args [ i + 1 ] ) ) ;\n i += 2 ;\n break ;\n case 'm' : if ( i + 1 >= n ) break ;\n pt = fz_currentpoint ( doc -> ctx , path ) ;\n fz_moveto ( doc -> ctx , path , pt . x + fz_atof ( args [ i ] ) , pt . y + fz_atof ( args [ i + 1 ] ) ) ;\n i += 2 ;\n break ;\n case 'L' : if ( i + 1 >= n ) break ;\n fz_lineto ( doc -> ctx , path , fz_atof ( args [ i ] ) , fz_atof ( args [ i + 1 ] ) ) ;\n i += 2 ;\n break ;\n case 'l' : if ( i + 1 >= n ) break ;\n pt = fz_currentpoint ( doc -> ctx , path ) ;\n fz_lineto ( doc -> ctx , path , pt . x + fz_atof ( args [ i ] ) , pt . y + fz_atof ( args [ i + 1 ] ) ) ;\n i += 2 ;\n break ;\n case 'H' : if ( i >= n ) break ;\n pt = fz_currentpoint ( doc -> ctx , path ) ;\n fz_lineto ( doc -> ctx , path , fz_atof ( args [ i ] ) , pt . y ) ;\n i += 1 ;\n break ;\n case 'h' : if ( i >= n ) break ;\n pt = fz_currentpoint ( doc -> ctx , path ) ;\n fz_lineto ( doc -> ctx , path , pt . x + fz_atof ( args [ i ] ) , pt . y ) ;\n i += 1 ;\n break ;\n case 'V' : if ( i >= n ) break ;\n pt = fz_currentpoint ( doc -> ctx , path ) ;\n fz_lineto ( doc -> ctx , path , pt . x , fz_atof ( args [ i ] ) ) ;\n i += 1 ;\n break ;\n case 'v' : if ( i >= n ) break ;\n pt = fz_currentpoint ( doc -> ctx , path ) ;\n fz_lineto ( doc -> ctx , path , pt . x , pt . y + fz_atof ( args [ i ] ) ) ;\n i += 1 ;\n break ;\n case 'C' : if ( i + 5 >= n ) break ;\n x1 = fz_atof ( args [ i + 0 ] ) ;\n y1 = fz_atof ( args [ i + 1 ] ) ;\n x2 = fz_atof ( args [ i + 2 ] ) ;\n y2 = fz_atof ( args [ i + 3 ] ) ;\n x3 = fz_atof ( args [ i + 4 ] ) ;\n y3 = fz_atof ( args [ i + 5 ] ) ;\n fz_curveto ( doc -> ctx , path , x1 , y1 , x2 , y2 , x3 , y3 ) ;\n i += 6 ;\n reset_smooth = 0 ;\n smooth_x = x3 - x2 ;\n smooth_y = y3 - y2 ;\n break ;\n case 'c' : if ( i + 5 >= n ) break ;\n pt = fz_currentpoint ( doc -> ctx , path ) ;\n x1 = fz_atof ( args [ i + 0 ] ) + pt . x ;\n y1 = fz_atof ( args [ i + 1 ] ) + pt . y ;\n x2 = fz_atof ( args [ i + 2 ] ) + pt . x ;\n y2 = fz_atof ( args [ i + 3 ] ) + pt . y ;\n x3 = fz_atof ( args [ i + 4 ] ) + pt . x ;\n y3 = fz_atof ( args [ i + 5 ] ) + pt . y ;\n fz_curveto ( doc -> ctx , path , x1 , y1 , x2 , y2 , x3 , y3 ) ;\n i += 6 ;\n reset_smooth = 0 ;\n smooth_x = x3 - x2 ;\n smooth_y = y3 - y2 ;\n break ;\n case 'S' : if ( i + 3 >= n ) break ;\n pt = fz_currentpoint ( doc -> ctx , path ) ;\n x1 = fz_atof ( args [ i + 0 ] ) ;\n y1 = fz_atof ( args [ i + 1 ] ) ;\n x2 = fz_atof ( args [ i + 2 ] ) ;\n y2 = fz_atof ( args [ i + 3 ] ) ;\n fz_curveto ( doc -> ctx , path , pt . x + smooth_x , pt . y + smooth_y , x1 , y1 , x2 , y2 ) ;\n i += 4 ;\n reset_smooth = 0 ;\n smooth_x = x2 - x1 ;\n smooth_y = y2 - y1 ;\n break ;\n case 's' : if ( i + 3 >= n ) break ;\n pt = fz_currentpoint ( doc -> ctx , path ) ;\n x1 = fz_atof ( args [ i + 0 ] ) + pt . x ;\n y1 = fz_atof ( args [ i + 1 ] ) + pt . y ;\n x2 = fz_atof ( args [ i + 2 ] ) + pt . x ;\n y2 = fz_atof ( args [ i + 3 ] ) + pt . y ;\n fz_curveto ( doc -> ctx , path , pt . x + smooth_x , pt . y + smooth_y , x1 , y1 , x2 , y2 ) ;\n i += 4 ;\n reset_smooth = 0 ;\n smooth_x = x2 - x1 ;\n smooth_y = y2 - y1 ;\n break ;\n case 'Q' : if ( i + 3 >= n ) break ;\n pt = fz_currentpoint ( doc -> ctx , path ) ;\n x1 = fz_atof ( args [ i + 0 ] ) ;\n y1 = fz_atof ( args [ i + 1 ] ) ;\n x2 = fz_atof ( args [ i + 2 ] ) ;\n y2 = fz_atof ( args [ i + 3 ] ) ;\n fz_curveto ( doc -> ctx , path , ( pt . x + 2 * x1 ) / 3 , ( pt . y + 2 * y1 ) / 3 , ( x2 + 2 * x1 ) / 3 , ( y2 + 2 * y1 ) / 3 , x2 , y2 ) ;\n i += 4 ;\n break ;\n case 'q' : if ( i + 3 >= n ) break ;\n pt = fz_currentpoint ( doc -> ctx , path ) ;\n x1 = fz_atof ( args [ i + 0 ] ) + pt . x ;\n y1 = fz_atof ( args [ i + 1 ] ) + pt . y ;\n x2 = fz_atof ( args [ i + 2 ] ) + pt . x ;\n y2 = fz_atof ( args [ i + 3 ] ) + pt . y ;\n fz_curveto ( doc -> ctx , path , ( pt . x + 2 * x1 ) / 3 , ( pt . y + 2 * y1 ) / 3 , ( x2 + 2 * x1 ) / 3 , ( y2 + 2 * y1 ) / 3 , x2 , y2 ) ;\n i += 4 ;\n break ;\n case 'A' : if ( i + 6 >= n ) break ;\n xps_draw_arc ( doc -> ctx , path , fz_atof ( args [ i + 0 ] ) , fz_atof ( args [ i + 1 ] ) , fz_atof ( args [ i + 2 ] ) , atoi ( args [ i + 3 ] ) , atoi ( args [ i + 4 ] ) , fz_atof ( args [ i + 5 ] ) , fz_atof ( args [ i + 6 ] ) ) ;\n i += 7 ;\n break ;\n case 'a' : if ( i + 6 >= n ) break ;\n pt = fz_currentpoint ( doc -> ctx , path ) ;\n xps_draw_arc ( doc -> ctx , path , fz_atof ( args [ i + 0 ] ) , fz_atof ( args [ i + 1 ] ) , fz_atof ( args [ i + 2 ] ) , atoi ( args [ i + 3 ] ) , atoi ( args [ i + 4 ] ) , fz_atof ( args [ i + 5 ] ) + pt . x , fz_atof ( args [ i + 6 ] ) + pt . y ) ;\n i += 7 ;\n break ;\n case 'Z' : case 'z' : fz_closepath ( doc -> ctx , path ) ;\n break ;\n default : fz_warn ( doc -> ctx , \"ignoring invalid command '%c'\" , cmd ) ;\n while ( i < n && ( args [ i ] [ 0 ] == '+' || args [ i ] [ 0 ] == '.' || args [ i ] [ 0 ] == '-' || ( args [ i ] [ 0 ] >= '0' && args [ i ] [ 0 ] <= '9' ) ) ) i ++ ;\n break ;\n }\n old = cmd ;\n }\n fz_free ( doc -> ctx , args ) ;\n return path ;\n }"}
{"idx": 7965, "target": 0, "func": "void vp9_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint8_t * dst , ptrdiff_t stride , const uint8_t * above , const uint8_t * left ) {\n type ## _predictor ( dst , stride , size , above , left ) ;\n }\n # if CONFIG_VP9_HIGHBITDEPTH # define intra_pred_high_sized ( type , size ) void vp9_high_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint16_t * dst , ptrdiff_t stride , const uint16_t * above , const uint16_t * left , int bd ) {\n high_ ## type ## _predictor ( dst , stride , size , above , left , bd ) ;\n }\n # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) intra_pred_high_sized ( type , 4 ) intra_pred_high_sized ( type , 8 ) intra_pred_high_sized ( type , 16 ) intra_pred_high_sized ( type , 32 ) # else # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) # endif # if CONFIG_VP9_HIGHBITDEPTH static INLINE void high_d207_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) above ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) {\n dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n }\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) {\n dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n }\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n }\n static INLINE void high_d63_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) {\n dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n }\n dst += stride ;\n }\n }\n static INLINE void high_d45_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) {\n dst [ c ] = r + c + 2 < bs * 2 ? ROUND_POWER_OF_TWO ( above [ r + c ] + above [ r + c + 1 ] * 2 + above [ r + c + 2 ] , 2 ) : above [ bs * 2 - 1 ] ;\n }\n dst += stride ;\n }\n }\n static INLINE void high_d117_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] , 1 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 3 ;\n r < bs ;\n ++ r ) dst [ ( r - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ r - 3 ] + left [ r - 2 ] * 2 + left [ r - 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - 2 * stride + c - 1 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_d135_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - stride + c - 1 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_d153_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] , 1 ) ;\n for ( r = 1 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 1 ] + left [ r ] , 1 ) ;\n dst ++ ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] * 2 + above [ c + 1 ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = dst [ - stride + c - 2 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_v_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memcpy ( dst , above , bs * sizeof ( uint16_t ) ) ;\n dst += stride ;\n }\n }\n static INLINE void high_h_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) above ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , left [ r ] , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_tm_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n int ytop_left = above [ - 1 ] ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = clip_pixel_high ( left [ r ] + above [ c ] - ytop_left , bd ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_128_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) above ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , 128 << ( bd - 8 ) , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_left_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) above ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += left [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_top_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) left ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += above [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n const int count = 2 * bs ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) {\n sum += above [ i ] ;\n sum += left [ i ] ;\n }\n expected_dc = ( sum + ( count >> 1 ) ) / count ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n # endif static INLINE void d207_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n intra_pred_allsizes ( d207 ) static INLINE void d63_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d63 ) static INLINE void d45_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r + c + 2 < bs * 2 ? ROUND_POWER_OF_TWO ( above [ r + c ] + above [ r + c + 1 ] * 2 + above [ r + c + 2 ] , 2 ) : above [ bs * 2 - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d45 ) static INLINE void d117_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] , 1 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 3 ;\n r < bs ;\n ++ r ) dst [ ( r - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ r - 3 ] + left [ r - 2 ] * 2 + left [ r - 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - 2 * stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d117 ) static INLINE void d135_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d135 ) static INLINE void d153_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] , 1 ) ;\n for ( r = 1 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 1 ] + left [ r ] , 1 ) ;\n dst ++ ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] * 2 + above [ c + 1 ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = dst [ - stride + c - 2 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d153 ) static INLINE void v_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memcpy ( dst , above , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( v ) static INLINE void h_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset ( dst , left [ r ] , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( h ) static INLINE void tm_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n int ytop_left = above [ - 1 ] ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = clip_pixel ( left [ r ] + above [ c ] - ytop_left ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( tm )"}
{"idx": 7966, "target": 0, "func": "static void dealloc_compressor_data ( VP8_COMP * cpi ) {\n vpx_free ( cpi -> tplist ) ;\n cpi -> tplist = NULL ;\n vpx_free ( cpi -> lfmv ) ;\n cpi -> lfmv = 0 ;\n vpx_free ( cpi -> lf_ref_frame_sign_bias ) ;\n cpi -> lf_ref_frame_sign_bias = 0 ;\n vpx_free ( cpi -> lf_ref_frame ) ;\n cpi -> lf_ref_frame = 0 ;\n vpx_free ( cpi -> segmentation_map ) ;\n cpi -> segmentation_map = 0 ;\n vpx_free ( cpi -> active_map ) ;\n cpi -> active_map = 0 ;\n vp8_de_alloc_frame_buffers ( & cpi -> common ) ;\n vp8_yv12_de_alloc_frame_buffer ( & cpi -> pick_lf_lvl_frame ) ;\n vp8_yv12_de_alloc_frame_buffer ( & cpi -> scaled_source ) ;\n dealloc_raw_frame_buffers ( cpi ) ;\n vpx_free ( cpi -> tok ) ;\n cpi -> tok = 0 ;\n vpx_free ( cpi -> gf_active_flags ) ;\n cpi -> gf_active_flags = 0 ;\n vpx_free ( cpi -> mb_activity_map ) ;\n cpi -> mb_activity_map = 0 ;\n vpx_free ( cpi -> mb . pip ) ;\n cpi -> mb . pip = 0 ;\n # if CONFIG_MULTITHREAD vpx_free ( cpi -> mt_current_mb_col ) ;\n cpi -> mt_current_mb_col = NULL ;\n # endif }"}
{"idx": 7967, "target": 0, "func": "REGRESSION_TEST ( SDK_API_TSThreadInit ) ( RegressionTest * test , int , int * pstatus ) {\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n SDK_ThreadInit_test = test ;\n SDK_ThreadInit_pstatus = pstatus ;\n pthread_t curr_tid , new_tid ;\n curr_tid = pthread_self ( ) ;\n int ret ;\n errno = 0 ;\n ret = pthread_create ( & new_tid , nullptr , pthread_start_func , ( void * ) ( intptr_t ) curr_tid ) ;\n if ( ret != 0 ) {\n thread_init_err_count ++ ;\n SDK_RPRINT ( test , \"TSThreadInit\" , \"TestCase1\" , TC_FAIL , \"can't create pthread\" ) ;\n }\n else {\n SDK_RPRINT ( test , \"TSThreadInit\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n }"}
{"idx": 7968, "target": 0, "func": "static void usb_ohci_reset_sysbus ( DeviceState * dev ) {\n OHCISysBusState * s = SYSBUS_OHCI ( dev ) ;\n OHCIState * ohci = & s -> ohci ;\n ohci_hard_reset ( ohci ) ;\n }"}
{"idx": 7969, "target": 0, "func": "static void free_blob ( gpointer data , gpointer user_data _U_ ) {\n g_free ( data ) ;\n }"}
{"idx": 7970, "target": 0, "func": "static int main_version ( void ) {\n XPR ( NTR \"Xdelta version 3.0.8, Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Joshua MacDonald\\n\" ) ;\n XPR ( NTR \"Xdelta comes with ABSOLUTELY NO WARRANTY.\\n\" ) ;\n XPR ( NTR \"This is free software, and you are welcome to redistribute it\\n\" ) ;\n XPR ( NTR \"under certain conditions;\n see \\\"COPYING\\\" for details.\\n\" ) ;\n return EXIT_SUCCESS ;\n }"}
{"idx": 7971, "target": 1, "func": "static void cdxl_decode_ham8 ( CDXLVideoContext * c ) {\n AVCodecContext * avctx = c -> avctx ;\n uint32_t new_palette [ 64 ] , r , g , b ;\n uint8_t * ptr , * out , index , op ;\n int x , y ;\n ptr = c -> new_video ;\n out = c -> frame . data [ 0 ] ;\n import_palette ( c , new_palette ) ;\n import_format ( c , avctx -> width , c -> new_video ) ;\n for ( y = 0 ;\n y < avctx -> height ;\n y ++ ) {\n r = new_palette [ 0 ] & 0xFF0000 ;\n g = new_palette [ 0 ] & 0xFF00 ;\n b = new_palette [ 0 ] & 0xFF ;\n for ( x = 0 ;\n x < avctx -> width ;\n x ++ ) {\n index = * ptr ++ ;\n op = index >> 6 ;\n index &= 63 ;\n switch ( op ) {\n case 0 : r = new_palette [ index ] & 0xFF0000 ;\n g = new_palette [ index ] & 0xFF00 ;\n b = new_palette [ index ] & 0xFF ;\n break ;\n case 1 : b = ( index << 2 ) | ( b & 3 ) ;\n break ;\n case 2 : r = ( index << 18 ) | ( r & ( 3 << 16 ) ) ;\n break ;\n case 3 : g = ( index << 10 ) | ( g & ( 3 << 8 ) ) ;\n break ;\n }\n AV_WL24 ( out + x * 3 , r | g | b ) ;\n }\n out += c -> frame . linesize [ 0 ] ;\n }\n }"}
{"idx": 7972, "target": 0, "func": "static int ipvideo_decode_block_opcode_0x7_16 ( IpvideoContext * s , AVFrame * frame ) {\n int x , y ;\n uint16_t P [ 2 ] ;\n unsigned int flags ;\n uint16_t * pixel_ptr = ( uint16_t * ) s -> pixel_ptr ;\n P [ 0 ] = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n P [ 1 ] = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n if ( ! ( P [ 0 ] & 0x8000 ) ) {\n for ( y = 0 ;\n y < 8 ;\n y ++ ) {\n flags = bytestream2_get_byte ( & s -> stream_ptr ) | 0x100 ;\n for ( ;\n flags != 1 ;\n flags >>= 1 ) * pixel_ptr ++ = P [ flags & 1 ] ;\n pixel_ptr += s -> line_inc ;\n }\n }\n else {\n flags = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n for ( y = 0 ;\n y < 8 ;\n y += 2 ) {\n for ( x = 0 ;\n x < 8 ;\n x += 2 , flags >>= 1 ) {\n pixel_ptr [ x ] = pixel_ptr [ x + 1 ] = pixel_ptr [ x + s -> stride ] = pixel_ptr [ x + 1 + s -> stride ] = P [ flags & 1 ] ;\n }\n pixel_ptr += s -> stride * 2 ;\n }\n }\n return 0 ;\n }"}
{"idx": 7973, "target": 0, "func": "SPL_METHOD ( SplFileObject , getMaxLineLen ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n RETURN_LONG ( ( long ) intern -> u . file . max_line_len ) ;\n }"}
{"idx": 7974, "target": 0, "func": "static TRBCCode xhci_disable_ep ( XHCIState * xhci , unsigned int slotid , unsigned int epid ) {\n XHCISlot * slot ;\n XHCIEPContext * epctx ;\n trace_usb_xhci_ep_disable ( slotid , epid ) ;\n assert ( slotid >= 1 && slotid <= xhci -> numslots ) ;\n assert ( epid >= 1 && epid <= 31 ) ;\n slot = & xhci -> slots [ slotid - 1 ] ;\n if ( ! slot -> eps [ epid - 1 ] ) {\n DPRINTF ( \"xhci: slot %d ep %d already disabled\\n\" , slotid , epid ) ;\n return CC_SUCCESS ;\n }\n xhci_ep_nuke_xfers ( xhci , slotid , epid , 0 ) ;\n epctx = slot -> eps [ epid - 1 ] ;\n if ( epctx -> nr_pstreams ) {\n xhci_free_streams ( epctx ) ;\n }\n if ( xhci -> dcbaap_low || xhci -> dcbaap_high ) {\n xhci_set_ep_state ( xhci , epctx , NULL , EP_DISABLED ) ;\n }\n timer_free ( epctx -> kick_timer ) ;\n g_free ( epctx ) ;\n slot -> eps [ epid - 1 ] = NULL ;\n return CC_SUCCESS ;\n }"}
{"idx": 7975, "target": 0, "func": "PKCS8_PRIV_KEY_INFO * d2i_PKCS8_PRIV_KEY_INFO_bio ( BIO * bp , PKCS8_PRIV_KEY_INFO * * p8inf ) {\n return ASN1_d2i_bio_of ( PKCS8_PRIV_KEY_INFO , PKCS8_PRIV_KEY_INFO_new , d2i_PKCS8_PRIV_KEY_INFO , bp , p8inf ) ;\n }"}
{"idx": 7976, "target": 0, "func": "int xmlThrDefLineNumbersDefaultValue ( int v ) {\n int ret ;\n xmlMutexLock ( xmlThrDefMutex ) ;\n ret = xmlLineNumbersDefaultValueThrDef ;\n xmlLineNumbersDefaultValueThrDef = v ;\n xmlMutexUnlock ( xmlThrDefMutex ) ;\n return ret ;\n }"}
{"idx": 7977, "target": 0, "func": "static void trash_or_delete_internal ( GList * files , GtkWindow * parent_window , gboolean try_trash , NautilusDeleteCallback done_callback , gpointer done_callback_data ) {\n GTask * task ;\n DeleteJob * job ;\n job = op_job_new ( DeleteJob , parent_window ) ;\n job -> files = g_list_copy_deep ( files , ( GCopyFunc ) g_object_ref , NULL ) ;\n job -> try_trash = try_trash ;\n job -> user_cancel = FALSE ;\n job -> done_callback = done_callback ;\n job -> done_callback_data = done_callback_data ;\n if ( try_trash ) {\n inhibit_power_manager ( ( CommonJob * ) job , _ ( \"Trashing Files\" ) ) ;\n }\n else {\n inhibit_power_manager ( ( CommonJob * ) job , _ ( \"Deleting Files\" ) ) ;\n }\n if ( ! nautilus_file_undo_manager_is_operating ( ) && try_trash ) {\n job -> common . undo_info = nautilus_file_undo_info_trash_new ( g_list_length ( files ) ) ;\n }\n task = g_task_new ( NULL , NULL , delete_task_done , job ) ;\n g_task_set_task_data ( task , job , NULL ) ;\n g_task_run_in_thread ( task , delete_task_thread_func ) ;\n g_object_unref ( task ) ;\n }"}
{"idx": 7978, "target": 0, "func": "static int selinux_socket_setsockopt ( struct socket * sock , int level , int optname ) {\n int err ;\n err = sock_has_perm ( current , sock -> sk , SOCKET__SETOPT ) ;\n if ( err ) return err ;\n return selinux_netlbl_socket_setsockopt ( sock , level , optname ) ;\n }"}
{"idx": 7979, "target": 1, "func": "static void fadst8 ( const int16_t * input , int16_t * output ) {\n int s0 , s1 , s2 , s3 , s4 , s5 , s6 , s7 ;\n int x0 = input [ 7 ] ;\n int x1 = input [ 0 ] ;\n int x2 = input [ 5 ] ;\n int x3 = input [ 2 ] ;\n int x4 = input [ 3 ] ;\n int x5 = input [ 4 ] ;\n int x6 = input [ 1 ] ;\n int x7 = input [ 6 ] ;\n s0 = cospi_2_64 * x0 + cospi_30_64 * x1 ;\n s1 = cospi_30_64 * x0 - cospi_2_64 * x1 ;\n s2 = cospi_10_64 * x2 + cospi_22_64 * x3 ;\n s3 = cospi_22_64 * x2 - cospi_10_64 * x3 ;\n s4 = cospi_18_64 * x4 + cospi_14_64 * x5 ;\n s5 = cospi_14_64 * x4 - cospi_18_64 * x5 ;\n s6 = cospi_26_64 * x6 + cospi_6_64 * x7 ;\n s7 = cospi_6_64 * x6 - cospi_26_64 * x7 ;\n x0 = fdct_round_shift ( s0 + s4 ) ;\n x1 = fdct_round_shift ( s1 + s5 ) ;\n x2 = fdct_round_shift ( s2 + s6 ) ;\n x3 = fdct_round_shift ( s3 + s7 ) ;\n x4 = fdct_round_shift ( s0 - s4 ) ;\n x5 = fdct_round_shift ( s1 - s5 ) ;\n x6 = fdct_round_shift ( s2 - s6 ) ;\n x7 = fdct_round_shift ( s3 - s7 ) ;\n s0 = x0 ;\n s1 = x1 ;\n s2 = x2 ;\n s3 = x3 ;\n s4 = cospi_8_64 * x4 + cospi_24_64 * x5 ;\n s5 = cospi_24_64 * x4 - cospi_8_64 * x5 ;\n s6 = - cospi_24_64 * x6 + cospi_8_64 * x7 ;\n s7 = cospi_8_64 * x6 + cospi_24_64 * x7 ;\n x0 = s0 + s2 ;\n x1 = s1 + s3 ;\n x2 = s0 - s2 ;\n x3 = s1 - s3 ;\n x4 = fdct_round_shift ( s4 + s6 ) ;\n x5 = fdct_round_shift ( s5 + s7 ) ;\n x6 = fdct_round_shift ( s4 - s6 ) ;\n x7 = fdct_round_shift ( s5 - s7 ) ;\n s2 = cospi_16_64 * ( x2 + x3 ) ;\n s3 = cospi_16_64 * ( x2 - x3 ) ;\n s6 = cospi_16_64 * ( x6 + x7 ) ;\n s7 = cospi_16_64 * ( x6 - x7 ) ;\n x2 = fdct_round_shift ( s2 ) ;\n x3 = fdct_round_shift ( s3 ) ;\n x6 = fdct_round_shift ( s6 ) ;\n x7 = fdct_round_shift ( s7 ) ;\n output [ 0 ] = x0 ;\n output [ 1 ] = - x4 ;\n output [ 2 ] = x6 ;\n output [ 3 ] = - x2 ;\n output [ 4 ] = x3 ;\n output [ 5 ] = - x7 ;\n output [ 6 ] = x5 ;\n output [ 7 ] = - x1 ;\n }"}
{"idx": 7980, "target": 1, "func": "static int vp8_decode ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n VP8Context * ctx = avctx -> priv_data ;\n AVFrame * picture = data ;\n const void * iter = NULL ;\n struct vpx_image * img ;\n if ( vpx_codec_decode ( & ctx -> decoder , avpkt -> data , avpkt -> size , NULL , 0 ) != VPX_CODEC_OK ) {\n const char * error = vpx_codec_error ( & ctx -> decoder ) ;\n const char * detail = vpx_codec_error_detail ( & ctx -> decoder ) ;\n av_log ( avctx , AV_LOG_ERROR , \"Failed to decode frame: %s\\n\" , error ) ;\n if ( detail ) av_log ( avctx , AV_LOG_ERROR , \" Additional information: %s\\n\" , detail ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ( img = vpx_codec_get_frame ( & ctx -> decoder , & iter ) ) ) {\n if ( img -> fmt != VPX_IMG_FMT_I420 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Unsupported output colorspace (%d)\\n\" , img -> fmt ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ( int ) img -> d_w != avctx -> width || ( int ) img -> d_h != avctx -> height ) {\n av_log ( avctx , AV_LOG_INFO , \"dimension change! %dx%d -> %dx%d\\n\" , avctx -> width , avctx -> height , img -> d_w , img -> d_h ) ;\n if ( av_image_check_size ( img -> d_w , img -> d_h , 0 , avctx ) ) return AVERROR_INVALIDDATA ;\n avcodec_set_dimensions ( avctx , img -> d_w , img -> d_h ) ;\n }\n picture -> data [ 0 ] = img -> planes [ 0 ] ;\n picture -> data [ 1 ] = img -> planes [ 1 ] ;\n picture -> data [ 2 ] = img -> planes [ 2 ] ;\n picture -> data [ 3 ] = NULL ;\n picture -> linesize [ 0 ] = img -> stride [ 0 ] ;\n picture -> linesize [ 1 ] = img -> stride [ 1 ] ;\n picture -> linesize [ 2 ] = img -> stride [ 2 ] ;\n picture -> linesize [ 3 ] = 0 ;\n * got_frame = 1 ;\n }\n return avpkt -> size ;\n }"}
{"idx": 7981, "target": 0, "func": "unsigned int vp9_get_mb_ss_c ( const int16_t * src_ptr ) {\n unsigned int i , sum = 0 ;\n for ( i = 0 ;\n i < 256 ;\n ++ i ) {\n sum += src_ptr [ i ] * src_ptr [ i ] ;\n }\n return sum ;\n }"}
{"idx": 7982, "target": 0, "func": "static void skip ( const char * * date ) {\n while ( * * date && ! ISALNUM ( * * date ) ) ( * date ) ++ ;\n }"}
{"idx": 7983, "target": 0, "func": "jas_image_t * jas_image_create0 ( ) {\n jas_image_t * image ;\n if ( ! ( image = jas_malloc ( sizeof ( jas_image_t ) ) ) ) {\n return 0 ;\n }\n image -> tlx_ = 0 ;\n image -> tly_ = 0 ;\n image -> brx_ = 0 ;\n image -> bry_ = 0 ;\n image -> clrspc_ = JAS_CLRSPC_UNKNOWN ;\n image -> numcmpts_ = 0 ;\n image -> maxcmpts_ = 0 ;\n image -> cmpts_ = 0 ;\n image -> inmem_ = true ;\n image -> cmprof_ = 0 ;\n return image ;\n }"}
{"idx": 7984, "target": 0, "func": "static void timerblock_tick ( void * opaque ) {\n TimerBlock * tb = ( TimerBlock * ) opaque ;\n tb -> status = 1 ;\n if ( tb -> control & 2 ) {\n tb -> count = tb -> load ;\n timerblock_reload ( tb , 0 ) ;\n }\n else {\n tb -> count = 0 ;\n }\n timerblock_update_irq ( tb ) ;\n }"}
{"idx": 7985, "target": 0, "func": "TEST_F ( ImmersiveModeControllerAshTest , TabAndBrowserFullscreen ) {\n AddTab ( browser ( ) , GURL ( \"about:blank\" ) ) ;\n ash : : ShelfLayoutManager * shelf = ash : : Shell : : GetPrimaryRootWindowController ( ) -> GetShelfLayoutManager ( ) ;\n ASSERT_EQ ( ash : : SHELF_VISIBLE , shelf -> visibility_state ( ) ) ;\n ToggleFullscreen ( ) ;\n ASSERT_TRUE ( controller ( ) -> IsEnabled ( ) ) ;\n EXPECT_EQ ( ash : : SHELF_AUTO_HIDE , shelf -> visibility_state ( ) ) ;\n EXPECT_FALSE ( controller ( ) -> ShouldHideTabIndicators ( ) ) ;\n SetTabFullscreen ( true ) ;\n ASSERT_TRUE ( controller ( ) -> IsEnabled ( ) ) ;\n EXPECT_EQ ( ash : : SHELF_HIDDEN , shelf -> visibility_state ( ) ) ;\n EXPECT_TRUE ( controller ( ) -> ShouldHideTabIndicators ( ) ) ;\n SetTabFullscreen ( false ) ;\n ASSERT_TRUE ( controller ( ) -> IsEnabled ( ) ) ;\n EXPECT_EQ ( ash : : SHELF_AUTO_HIDE , shelf -> visibility_state ( ) ) ;\n EXPECT_FALSE ( controller ( ) -> ShouldHideTabIndicators ( ) ) ;\n SetTabFullscreen ( true ) ;\n ToggleFullscreen ( ) ;\n ASSERT_FALSE ( controller ( ) -> IsEnabled ( ) ) ;\n EXPECT_EQ ( ash : : SHELF_VISIBLE , shelf -> visibility_state ( ) ) ;\n EXPECT_TRUE ( controller ( ) -> ShouldHideTabIndicators ( ) ) ;\n }"}
{"idx": 7986, "target": 0, "func": "static uint64_t dma_dummy_read ( void * opaque , hwaddr addr , unsigned size ) {\n return 0xff ;\n }"}
{"idx": 7987, "target": 0, "func": "TEST_F ( TemplateURLTest , URLRefTestIndices2 ) {\n TemplateURLData data ;\n data . SetURL ( \"http://foo{\nsearchTerms}\nx{\nstartIndex}\ny{\nstartPage}\n\" ) ;\n TemplateURL url ( data ) ;\n EXPECT_TRUE ( url . url_ref ( ) . IsValid ( search_terms_data_ ) ) ;\n ASSERT_TRUE ( url . url_ref ( ) . SupportsReplacement ( search_terms_data_ ) ) ;\n GURL result ( url . url_ref ( ) . ReplaceSearchTerms ( TemplateURLRef : : SearchTermsArgs ( ASCIIToUTF16 ( \"X\" ) ) , search_terms_data_ ) ) ;\n ASSERT_TRUE ( result . is_valid ( ) ) ;\n EXPECT_EQ ( \"http://fooxx1y1/\" , result . spec ( ) ) ;\n }"}
{"idx": 7988, "target": 0, "func": "static struct evhttp_cb * evhttp_dispatch_callback ( struct httpcbq * callbacks , struct evhttp_request * req ) {\n struct evhttp_cb * cb ;\n size_t offset = 0 ;\n char * p = strchr ( req -> uri , '?' ) ;\n if ( p != NULL ) offset = ( size_t ) ( p - req -> uri ) ;\n TAILQ_FOREACH ( cb , callbacks , next ) {\n int res = 0 ;\n if ( p == NULL ) {\n res = strcmp ( cb -> what , req -> uri ) == 0 ;\n }\n else {\n res = ( ( strncmp ( cb -> what , req -> uri , offset ) == 0 ) && ( cb -> what [ offset ] == '\\0' ) ) ;\n }\n if ( res ) return ( cb ) ;\n }\n return ( NULL ) ;\n }"}
{"idx": 7989, "target": 0, "func": "void nautilus_directory_schedule_dequeue_pending ( NautilusDirectory * directory ) {\n if ( directory -> details -> dequeue_pending_idle_id == 0 ) {\n directory -> details -> dequeue_pending_idle_id = g_idle_add ( dequeue_pending_idle_callback , directory ) ;\n }\n }"}
{"idx": 7990, "target": 0, "func": "static gboolean gsm_a_dtap_rr_stat_packet ( void * tapdata , packet_info * pinfo _U_ , epan_dissect_t * edt _U_ , const void * gatr_ptr ) {\n return gsm_a_stat_packet ( tapdata , gatr_ptr , BSSAP_PDU_TYPE_DTAP , PD_RR ) ;\n }"}
{"idx": 7991, "target": 1, "func": "static int com_use ( String * buffer __attribute__ ( ( unused ) ) , char * line ) {\n char * tmp , buff [ FN_REFLEN + 1 ] ;\n int select_db ;\n bzero ( buff , sizeof ( buff ) ) ;\n strmake_buf ( buff , line ) ;\n tmp = get_arg ( buff , 0 ) ;\n if ( ! tmp || ! * tmp ) {\n put_info ( \"USE must be followed by a database name\" , INFO_ERROR ) ;\n return 0 ;\n }\n get_current_db ( ) ;\n if ( ! current_db || cmp_database ( charset_info , current_db , tmp ) ) {\n if ( one_database ) {\n skip_updates = 1 ;\n select_db = 0 ;\n }\n else select_db = 2 ;\n }\n else {\n skip_updates = 0 ;\n select_db = 1 ;\n }\n if ( select_db ) {\n if ( ! connected && reconnect ( ) ) return opt_reconnect ? - 1 : 1 ;\n if ( mysql_select_db ( & mysql , tmp ) ) {\n if ( mysql_errno ( & mysql ) != CR_SERVER_GONE_ERROR ) return put_error ( & mysql ) ;\n if ( reconnect ( ) ) return opt_reconnect ? - 1 : 1 ;\n if ( mysql_select_db ( & mysql , tmp ) ) return put_error ( & mysql ) ;\n }\n my_free ( current_db ) ;\n current_db = my_strdup ( tmp , MYF ( MY_WME ) ) ;\n # ifdef HAVE_READLINE if ( select_db > 1 ) build_completion_hash ( opt_rehash , 1 ) ;\n # endif }\n put_info ( \"Database changed\" , INFO_INFO ) ;\n return 0 ;\n }"}
{"idx": 7992, "target": 0, "func": "mbfl_string * mbfl_mime_header_decode ( mbfl_string * string , mbfl_string * result , enum mbfl_no_encoding outcode ) {\n int n ;\n unsigned char * p ;\n struct mime_header_decoder_data * pd ;\n mbfl_string_init ( result ) ;\n result -> no_language = string -> no_language ;\n result -> no_encoding = outcode ;\n pd = mime_header_decoder_new ( outcode ) ;\n if ( pd == NULL ) {\n return NULL ;\n }\n n = string -> len ;\n p = string -> val ;\n while ( n > 0 ) {\n mime_header_decoder_collector ( * p ++ , pd ) ;\n n -- ;\n }\n result = mime_header_decoder_result ( pd , result ) ;\n mime_header_decoder_delete ( pd ) ;\n return result ;\n }"}
{"idx": 7993, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( SingleClientSessionsSyncTest , MAYBE_Sanity ) {\n ASSERT_TRUE ( SetupSync ( ) ) << \"SetupSync() failed.\" ;\n ASSERT_TRUE ( CheckInitialState ( 0 ) ) ;\n ScopedWindowMap old_windows ;\n ASSERT_TRUE ( OpenTabAndGetLocalWindows ( 0 , GURL ( \"http://127.0.0.1/bubba\" ) , old_windows . GetMutable ( ) ) ) ;\n ASSERT_TRUE ( AwaitCommitActivityCompletion ( GetSyncService ( ( 0 ) ) ) ) ;\n SyncedSessionVector sessions ;\n ASSERT_FALSE ( GetSessionData ( 0 , & sessions ) ) ;\n ASSERT_EQ ( 0U , sessions . size ( ) ) ;\n ScopedWindowMap new_windows ;\n ASSERT_TRUE ( GetLocalWindows ( 0 , new_windows . GetMutable ( ) ) ) ;\n ASSERT_TRUE ( WindowsMatch ( * old_windows . Get ( ) , * new_windows . Get ( ) ) ) ;\n }"}
{"idx": 7994, "target": 1, "func": "void vp9_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint8_t * dst , ptrdiff_t stride , const uint8_t * above , const uint8_t * left ) {\n type ## _predictor ( dst , stride , size , above , left ) ;\n }\n # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) static INLINE void d207_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n intra_pred_allsizes ( d207 ) static INLINE void d63_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d63 ) static INLINE void d45_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r + c + 2 < bs * 2 ? ROUND_POWER_OF_TWO ( above [ r + c ] + above [ r + c + 1 ] * 2 + above [ r + c + 2 ] , 2 ) : above [ bs * 2 - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d45 ) static INLINE void d117_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] , 1 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 3 ;\n r < bs ;\n ++ r ) dst [ ( r - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ r - 3 ] + left [ r - 2 ] * 2 + left [ r - 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - 2 * stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d117 ) static INLINE void d135_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d135 ) static INLINE void d153_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] , 1 ) ;\n for ( r = 1 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 1 ] + left [ r ] , 1 ) ;\n dst ++ ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] * 2 + above [ c + 1 ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = dst [ - stride + c - 2 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d153 )"}
{"idx": 7995, "target": 0, "func": "static void evdns_requests_pump_waiting_queue ( void ) {\n while ( global_requests_inflight < global_max_requests_inflight && global_requests_waiting ) {\n struct request * req ;\n assert ( req_waiting_head ) ;\n if ( req_waiting_head -> next == req_waiting_head ) {\n req = req_waiting_head ;\n req_waiting_head = NULL ;\n }\n else {\n req = req_waiting_head ;\n req -> next -> prev = req -> prev ;\n req -> prev -> next = req -> next ;\n req_waiting_head = req -> next ;\n }\n global_requests_waiting -- ;\n global_requests_inflight ++ ;\n req -> ns = nameserver_pick ( ) ;\n request_trans_id_set ( req , transaction_id_pick ( ) ) ;\n evdns_request_insert ( req , & req_head ) ;\n evdns_request_transmit ( req ) ;\n evdns_transmit ( ) ;\n }\n }"}
{"idx": 7996, "target": 0, "func": "IN_PROC_BROWSER_TEST_P ( BrowserCloseManagerBrowserTest , DISABLED_TestBeforeUnloadAndDownloads ) {\n ASSERT_NO_FATAL_FAILURE ( CreateStalledDownload ( browser ( ) ) ) ;\n ASSERT_NO_FATAL_FAILURE ( ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/beforeunload.html\" ) ) ) ;\n PrepareForDialog ( browser ( ) ) ;\n content : : WindowedNotificationObserver cancel_observer ( chrome : : NOTIFICATION_BROWSER_CLOSE_CANCELLED , content : : NotificationService : : AllSources ( ) ) ;\n TestBrowserCloseManager : : AttemptClose ( TestBrowserCloseManager : : USER_CHOICE_USER_CANCELS_CLOSE ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n cancel_observer . Wait ( ) ;\n EXPECT_FALSE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , 1 ) ;\n TestBrowserCloseManager : : AttemptClose ( TestBrowserCloseManager : : USER_CHOICE_USER_ALLOWS_CLOSE ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n close_observer . Wait ( ) ;\n EXPECT_TRUE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_TRUE ( BrowserList : : GetInstance ( ) -> empty ( ) ) ;\n }"}
{"idx": 7997, "target": 0, "func": "int fz_colorspace_is_device ( fz_context * ctx , const fz_colorspace * cs ) {\n return cs && ( cs -> flags & FZ_COLORSPACE_IS_DEVICE ) ;\n }"}
{"idx": 7998, "target": 0, "func": "static int get_value_cached ( GetBitContext * gb , int vec_pos , uint8_t * vec , int vec_size , int component , int shift , int * prev ) {\n if ( vec_pos < vec_size ) return vec [ vec_pos ] ;\n if ( ! get_bits1 ( gb ) ) return prev [ component ] ;\n prev [ component ] = get_bits ( gb , 8 - shift ) << shift ;\n return prev [ component ] ;\n }"}
{"idx": 7999, "target": 1, "func": "static void joint_motion_search ( VP9_COMP * cpi , MACROBLOCK * x , BLOCK_SIZE bsize , int_mv * frame_mv , int mi_row , int mi_col , int_mv single_newmv [ MAX_REF_FRAMES ] , int * rate_mv ) {\n const int pw = 4 * num_4x4_blocks_wide_lookup [ bsize ] ;\n const int ph = 4 * num_4x4_blocks_high_lookup [ bsize ] ;\n MACROBLOCKD * xd = & x -> e_mbd ;\n MB_MODE_INFO * mbmi = & xd -> mi [ 0 ] -> mbmi ;\n const int refs [ 2 ] = {\n mbmi -> ref_frame [ 0 ] , mbmi -> ref_frame [ 1 ] < 0 ? 0 : mbmi -> ref_frame [ 1 ] }\n ;\n int_mv ref_mv [ 2 ] ;\n int ite , ref ;\n uint8_t * second_pred = vpx_memalign ( 16 , pw * ph * sizeof ( uint8_t ) ) ;\n const InterpKernel * kernel = vp9_get_interp_kernel ( mbmi -> interp_filter ) ;\n struct buf_2d backup_yv12 [ 2 ] [ MAX_MB_PLANE ] ;\n struct buf_2d scaled_first_yv12 = xd -> plane [ 0 ] . pre [ 0 ] ;\n int last_besterr [ 2 ] = {\n INT_MAX , INT_MAX }\n ;\n const YV12_BUFFER_CONFIG * const scaled_ref_frame [ 2 ] = {\n vp9_get_scaled_ref_frame ( cpi , mbmi -> ref_frame [ 0 ] ) , vp9_get_scaled_ref_frame ( cpi , mbmi -> ref_frame [ 1 ] ) }\n ;\n for ( ref = 0 ;\n ref < 2 ;\n ++ ref ) {\n ref_mv [ ref ] = mbmi -> ref_mvs [ refs [ ref ] ] [ 0 ] ;\n if ( scaled_ref_frame [ ref ] ) {\n int i ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n i ++ ) backup_yv12 [ ref ] [ i ] = xd -> plane [ i ] . pre [ ref ] ;\n vp9_setup_pre_planes ( xd , ref , scaled_ref_frame [ ref ] , mi_row , mi_col , NULL ) ;\n }\n frame_mv [ refs [ ref ] ] . as_int = single_newmv [ refs [ ref ] ] . as_int ;\n }\n for ( ite = 0 ;\n ite < 4 ;\n ite ++ ) {\n struct buf_2d ref_yv12 [ 2 ] ;\n int bestsme = INT_MAX ;\n int sadpb = x -> sadperbit16 ;\n MV tmp_mv ;\n int search_range = 3 ;\n int tmp_col_min = x -> mv_col_min ;\n int tmp_col_max = x -> mv_col_max ;\n int tmp_row_min = x -> mv_row_min ;\n int tmp_row_max = x -> mv_row_max ;\n int id = ite % 2 ;\n ref_yv12 [ 0 ] = xd -> plane [ 0 ] . pre [ 0 ] ;\n ref_yv12 [ 1 ] = xd -> plane [ 0 ] . pre [ 1 ] ;\n vp9_build_inter_predictor ( ref_yv12 [ ! id ] . buf , ref_yv12 [ ! id ] . stride , second_pred , pw , & frame_mv [ refs [ ! id ] ] . as_mv , & xd -> block_refs [ ! id ] -> sf , pw , ph , 0 , kernel , MV_PRECISION_Q3 , mi_col * MI_SIZE , mi_row * MI_SIZE ) ;\n if ( id ) xd -> plane [ 0 ] . pre [ 0 ] = ref_yv12 [ id ] ;\n vp9_set_mv_search_range ( x , & ref_mv [ id ] . as_mv ) ;\n tmp_mv = frame_mv [ refs [ id ] ] . as_mv ;\n tmp_mv . col >>= 3 ;\n tmp_mv . row >>= 3 ;\n bestsme = vp9_refining_search_8p_c ( x , & tmp_mv , sadpb , search_range , & cpi -> fn_ptr [ bsize ] , & ref_mv [ id ] . as_mv , second_pred ) ;\n if ( bestsme < INT_MAX ) bestsme = vp9_get_mvpred_av_var ( x , & tmp_mv , & ref_mv [ id ] . as_mv , second_pred , & cpi -> fn_ptr [ bsize ] , 1 ) ;\n x -> mv_col_min = tmp_col_min ;\n x -> mv_col_max = tmp_col_max ;\n x -> mv_row_min = tmp_row_min ;\n x -> mv_row_max = tmp_row_max ;\n if ( bestsme < INT_MAX ) {\n int dis ;\n unsigned int sse ;\n bestsme = cpi -> find_fractional_mv_step ( x , & tmp_mv , & ref_mv [ id ] . as_mv , cpi -> common . allow_high_precision_mv , x -> errorperbit , & cpi -> fn_ptr [ bsize ] , 0 , cpi -> sf . mv . subpel_iters_per_step , NULL , x -> nmvjointcost , x -> mvcost , & dis , & sse , second_pred , pw , ph ) ;\n }\n if ( id ) xd -> plane [ 0 ] . pre [ 0 ] = scaled_first_yv12 ;\n if ( bestsme < last_besterr [ id ] ) {\n frame_mv [ refs [ id ] ] . as_mv = tmp_mv ;\n last_besterr [ id ] = bestsme ;\n }\n else {\n break ;\n }\n }\n * rate_mv = 0 ;\n for ( ref = 0 ;\n ref < 2 ;\n ++ ref ) {\n if ( scaled_ref_frame [ ref ] ) {\n int i ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n i ++ ) xd -> plane [ i ] . pre [ ref ] = backup_yv12 [ ref ] [ i ] ;\n }\n * rate_mv += vp9_mv_bit_cost ( & frame_mv [ refs [ ref ] ] . as_mv , & mbmi -> ref_mvs [ refs [ ref ] ] [ 0 ] . as_mv , x -> nmvjointcost , x -> mvcost , MV_COST_WEIGHT ) ;\n }\n vpx_free ( second_pred ) ;\n }"}
{"idx": 8000, "target": 0, "func": "int zcvi ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n float fval ;\n switch ( r_type ( op ) ) {\n case t_integer : return 0 ;\n case t_real : fval = op -> value . realval ;\n break ;\n default : return_op_typecheck ( op ) ;\n case t_string : {\n ref str , token ;\n int code ;\n ref_assign ( & str , op ) ;\n code = gs_scan_string_token ( i_ctx_p , & str , & token ) ;\n if ( code > 0 ) code = gs_note_error ( gs_error_syntaxerror ) ;\n if ( code < 0 ) return code ;\n switch ( r_type ( & token ) ) {\n case t_integer : * op = token ;\n return 0 ;\n case t_real : fval = token . value . realval ;\n break ;\n default : return_error ( gs_error_typecheck ) ;\n }\n }\n }\n if ( ! REAL_CAN_BE_INT ( fval ) ) return_error ( gs_error_rangecheck ) ;\n make_int ( op , ( long ) fval ) ;\n return 0 ;\n }"}
{"idx": 8001, "target": 0, "func": "static void keyblock_cache_clear ( void ) {\n keyblock_cache . state = KEYBLOCK_CACHE_EMPTY ;\n xfree ( keyblock_cache . sigstatus ) ;\n keyblock_cache . sigstatus = NULL ;\n iobuf_close ( keyblock_cache . iobuf ) ;\n keyblock_cache . iobuf = NULL ;\n }"}
{"idx": 8002, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( TabDragCaptureLostTest , ReleaseCaptureOnDrag ) {\n AddTabAndResetBrowser ( browser ( ) ) ;\n TabStrip * tab_strip = GetTabStripForBrowser ( browser ( ) ) ;\n gfx : : Point tab_1_center ( GetCenterInScreenCoordinates ( tab_strip -> tab_at ( 1 ) ) ) ;\n ASSERT_TRUE ( ui_test_utils : : SendMouseMoveSync ( tab_1_center ) && ui_test_utils : : SendMouseEventsSync ( ui_controls : : LEFT , ui_controls : : DOWN ) ) ;\n gfx : : Point tab_0_center ( GetCenterInScreenCoordinates ( tab_strip -> tab_at ( 0 ) ) ) ;\n TestDesktopBrowserFrameAura * frame = static_cast < TestDesktopBrowserFrameAura * > ( BrowserView : : GetBrowserViewForBrowser ( browser ( ) ) -> GetWidget ( ) -> native_widget_private ( ) ) ;\n frame -> ReleaseCaptureOnNextClear ( ) ;\n ASSERT_TRUE ( ui_test_utils : : SendMouseMoveSync ( tab_0_center ) ) ;\n EXPECT_FALSE ( tab_strip -> IsDragSessionActive ( ) ) ;\n }"}
{"idx": 8003, "target": 0, "func": "static int dissect_h245_T_rtpPayloadType ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 932 \"../../asn1/h245/h245.cnf\" unsigned int pt ;\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 127U , & pt , FALSE ) ;\n if ( ( rfc_number == 2198 ) && upcoming_channel ) {\n upcoming_channel -> rfc2198 = pt ;\n }\n return offset ;\n }"}
{"idx": 8004, "target": 0, "func": "static struct mskwajd_header * kwajd_open ( struct mskwaj_decompressor * base , const char * filename ) {\n struct mskwaj_decompressor_p * self = ( struct mskwaj_decompressor_p * ) base ;\n struct mskwajd_header * hdr ;\n struct mspack_system * sys ;\n struct mspack_file * fh ;\n if ( ! self ) return NULL ;\n sys = self -> system ;\n fh = sys -> open ( sys , filename , MSPACK_SYS_OPEN_READ ) ;\n hdr = ( struct mskwajd_header * ) sys -> alloc ( sys , sizeof ( struct mskwajd_header_p ) ) ;\n if ( fh && hdr ) {\n ( ( struct mskwajd_header_p * ) hdr ) -> fh = fh ;\n self -> error = kwajd_read_headers ( sys , fh , hdr ) ;\n }\n else {\n if ( ! fh ) self -> error = MSPACK_ERR_OPEN ;\n if ( ! hdr ) self -> error = MSPACK_ERR_NOMEMORY ;\n }\n if ( self -> error ) {\n if ( fh ) sys -> close ( fh ) ;\n if ( hdr ) sys -> free ( hdr ) ;\n hdr = NULL ;\n }\n return hdr ;\n }"}
{"idx": 8005, "target": 0, "func": "static inline uint32_t replicate32 ( uint32_t a ) {\n # if HAVE_BIGENDIAN a &= 0xFF00FF00UL ;\n a |= a >> 8 ;\n # else a &= 0x00FF00FFUL ;\n a |= a << 8 ;\n # endif return a ;\n }"}
{"idx": 8006, "target": 0, "func": "static usize_t main_get_winsize ( main_file * ifile ) {\n xoff_t file_size = 0 ;\n usize_t size = option_winsize ;\n static shortbuf iszbuf ;\n if ( main_file_stat ( ifile , & file_size ) == 0 ) {\n size = ( usize_t ) min ( file_size , ( xoff_t ) size ) ;\n }\n size = max ( size , XD3_ALLOCSIZE ) ;\n if ( option_verbose > 1 ) {\n XPR ( NT \"input %s window size %s\\n\" , ifile -> filename , main_format_bcnt ( size , & iszbuf ) ) ;\n }\n return size ;\n }"}
{"idx": 8007, "target": 0, "func": "static void usage ( void ) {\n DBUG_ENTER ( \"usage\" ) ;\n if ( ! ( default_charset_info = get_charset_by_csname ( default_character_set_name , MY_CS_PRIMARY , MYF ( MY_WME ) ) ) ) exit ( 1 ) ;\n if ( ! default_collation_name ) default_collation_name = ( char * ) default_charset_info -> name ;\n print_version ( ) ;\n puts ( ORACLE_WELCOME_COPYRIGHT_NOTICE ( \"2000\" ) ) ;\n puts ( \"Starts the MariaDB database server.\\n\" ) ;\n printf ( \"Usage: %s [OPTIONS]\\n\" , my_progname ) ;\n if ( ! opt_verbose ) puts ( \"\\nFor more help options (several pages), use mysqld --verbose --help.\" ) ;\n else {\n # ifdef __WIN__ puts ( \"NT and Win32 specific options:\\n\\ --install Install the default service (NT).\\n\\ --install-manual Install the default service started manually (NT).\\n\\ --install service_name Install an optional service (NT).\\n\\ --install-manual service_name Install an optional service started manually (NT).\\n\\ --remove Remove the default service from the service list (NT).\\n\\ --remove service_name Remove the service_name from the service list (NT).\\n\\ --enable-named-pipe Only to be used for the default server (NT).\\n\\ --standalone Dummy option to start as a standalone server (NT).\\ \" ) ;\n puts ( \"\" ) ;\n # endif print_defaults ( MYSQL_CONFIG_NAME , load_default_groups ) ;\n puts ( \"\" ) ;\n set_ports ( ) ;\n print_help ( ) ;\n if ( ! plugins_are_initialized ) {\n puts ( \"\\n\\ Plugins have parameters that are not reflected in this list\\n\\ because execution stopped before plugins were initialized.\" ) ;\n }\n puts ( \"\\n\\ To see what values a running MySQL server is using, type\\n\\ 'mysqladmin variables' instead of 'mysqld --verbose --help'.\" ) ;\n }\n DBUG_VOID_RETURN ;\n }"}
{"idx": 8008, "target": 0, "func": "static int dissect_h245_INTEGER_1_65535 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 65535U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 8009, "target": 0, "func": "static void e1000e_set_tctl ( E1000ECore * core , int index , uint32_t val ) {\n E1000E_TxRing txr ;\n core -> mac [ index ] = val ;\n if ( core -> mac [ TARC0 ] & E1000_TARC_ENABLE ) {\n e1000e_tx_ring_init ( core , & txr , 0 ) ;\n e1000e_start_xmit ( core , & txr ) ;\n }\n if ( core -> mac [ TARC1 ] & E1000_TARC_ENABLE ) {\n e1000e_tx_ring_init ( core , & txr , 1 ) ;\n e1000e_start_xmit ( core , & txr ) ;\n }\n }"}
{"idx": 8010, "target": 0, "func": "static void rac_normalise ( RangeCoder * c ) {\n for ( ;\n ;\n ) {\n c -> range <<= 8 ;\n c -> low <<= 8 ;\n if ( c -> src < c -> src_end ) {\n c -> low |= * c -> src ++ ;\n }\n else if ( ! c -> low ) {\n c -> got_error = 1 ;\n return ;\n }\n if ( c -> range >= RAC_BOTTOM ) return ;\n }\n }"}
{"idx": 8011, "target": 1, "func": "WRITE_CLASS_ENCODER ( CephXServiceTicketRequest ) struct CephXAuthorizeReply {\n uint64_t nonce_plus_one ;\n void encode ( bufferlist & bl ) const {\n __u8 struct_v = 1 ;\n : : encode ( struct_v , bl ) ;\n : : encode ( nonce_plus_one , bl ) ;\n }\n void decode ( bufferlist : : iterator & bl ) {\n __u8 struct_v ;\n : : decode ( struct_v , bl ) ;\n : : decode ( nonce_plus_one , bl ) ;\n }\n }\n ;\n WRITE_CLASS_ENCODER ( CephXAuthorizeReply ) struct CephXAuthorizer : public AuthAuthorizer {\n private : CephContext * cct ;\n public : uint64_t nonce ;\n explicit CephXAuthorizer ( CephContext * cct_ ) : AuthAuthorizer ( CEPH_AUTH_CEPHX ) , cct ( cct_ ) , nonce ( 0 ) {\n }\n bool build_authorizer ( ) ;\n bool verify_reply ( bufferlist : : iterator & reply ) override ;\n }"}
{"idx": 8012, "target": 0, "func": "static inline void uprv_arrayCopy ( const double * src , double * dst , int32_t count ) {\n uprv_memcpy ( dst , src , ( size_t ) count * sizeof ( * src ) ) ;\n }"}
{"idx": 8013, "target": 0, "func": "static void astream_add_body ( struct attachment_istream * astream , const struct message_block * block ) {\n struct attachment_istream_part * part = & astream -> part ;\n buffer_t * part_buf ;\n size_t new_size ;\n switch ( part -> state ) {\n case MAIL_ATTACHMENT_STATE_NO : stream_add_data ( astream , block -> data , block -> size ) ;\n break ;\n case MAIL_ATTACHMENT_STATE_MAYBE : if ( part -> part_buf == NULL ) {\n part -> part_buf = buffer_create_dynamic ( default_pool , astream -> set . min_size ) ;\n }\n part_buf = part -> part_buf ;\n new_size = part_buf -> used + block -> size ;\n if ( new_size < astream -> set . min_size ) {\n buffer_append ( part_buf , block -> data , block -> size ) ;\n break ;\n }\n if ( astream_open_output ( astream ) < 0 ) {\n part -> state = MAIL_ATTACHMENT_STATE_NO ;\n stream_add_data ( astream , part_buf -> data , part_buf -> used ) ;\n stream_add_data ( astream , block -> data , block -> size ) ;\n break ;\n }\n part -> state = MAIL_ATTACHMENT_STATE_YES ;\n astream_try_base64_decode ( part , part_buf -> data , part_buf -> used ) ;\n hash_format_loop ( astream -> set . hash_format , part_buf -> data , part_buf -> used ) ;\n o_stream_nsend ( part -> temp_output , part_buf -> data , part_buf -> used ) ;\n buffer_set_used_size ( part_buf , 0 ) ;\n case MAIL_ATTACHMENT_STATE_YES : astream_try_base64_decode ( part , block -> data , block -> size ) ;\n hash_format_loop ( astream -> set . hash_format , block -> data , block -> size ) ;\n o_stream_nsend ( part -> temp_output , block -> data , block -> size ) ;\n break ;\n }\n }"}
{"idx": 8014, "target": 0, "func": "static int kalman_smoothen ( WMAVoiceContext * s , int pitch , const float * in , float * out , int size ) {\n int n ;\n float optimal_gain = 0 , dot ;\n const float * ptr = & in [ - FFMAX ( s -> min_pitch_val , pitch - 3 ) ] , * end = & in [ - FFMIN ( s -> max_pitch_val , pitch + 3 ) ] , * best_hist_ptr ;\n do {\n dot = avpriv_scalarproduct_float_c ( in , ptr , size ) ;\n if ( dot > optimal_gain ) {\n optimal_gain = dot ;\n best_hist_ptr = ptr ;\n }\n }\n while ( -- ptr >= end ) ;\n if ( optimal_gain <= 0 ) return - 1 ;\n dot = avpriv_scalarproduct_float_c ( best_hist_ptr , best_hist_ptr , size ) ;\n if ( dot <= 0 ) return - 1 ;\n if ( optimal_gain <= dot ) {\n dot = dot / ( dot + 0.6 * optimal_gain ) ;\n }\n else dot = 0.625 ;\n for ( n = 0 ;\n n < size ;\n n ++ ) out [ n ] = best_hist_ptr [ n ] + dot * ( in [ n ] - best_hist_ptr [ n ] ) ;\n return 0 ;\n }"}
{"idx": 8015, "target": 0, "func": "static int pfkey_send_notify ( struct xfrm_state * x , const struct km_event * c ) {\n struct net * net = x ? xs_net ( x ) : c -> net ;\n struct netns_pfkey * net_pfkey = net_generic ( net , pfkey_net_id ) ;\n if ( atomic_read ( & net_pfkey -> socks_nr ) == 0 ) return 0 ;\n switch ( c -> event ) {\n case XFRM_MSG_EXPIRE : return key_notify_sa_expire ( x , c ) ;\n case XFRM_MSG_DELSA : case XFRM_MSG_NEWSA : case XFRM_MSG_UPDSA : return key_notify_sa ( x , c ) ;\n case XFRM_MSG_FLUSHSA : return key_notify_sa_flush ( c ) ;\n case XFRM_MSG_NEWAE : break ;\n default : pr_err ( \"pfkey: Unknown SA event %d\\n\" , c -> event ) ;\n break ;\n }\n return 0 ;\n }"}
{"idx": 8016, "target": 0, "func": "int X509_NAME_digest ( const X509_NAME * data , const EVP_MD * type , unsigned char * md , unsigned int * len ) {\n return ( ASN1_item_digest ( ASN1_ITEM_rptr ( X509_NAME ) , type , ( char * ) data , md , len ) ) ;\n }"}
{"idx": 8017, "target": 0, "func": "static void test_bind_result ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n int nData ;\n ulong length1 ;\n char szData [ 100 ] ;\n MYSQL_BIND my_bind [ 2 ] ;\n my_bool is_null [ 2 ] ;\n myheader ( \"test_bind_result\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_bind_result\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_bind_result(col1 int , col2 varchar(50))\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_bind_result VALUES(10, 'venu')\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_bind_result VALUES(20, 'MySQL')\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_bind_result(col2) VALUES('monty')\" ) ;\n myquery ( rc ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 0 ] . buffer = ( void * ) & nData ;\n my_bind [ 0 ] . is_null = & is_null [ 0 ] ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 1 ] . buffer = szData ;\n my_bind [ 1 ] . buffer_length = sizeof ( szData ) ;\n my_bind [ 1 ] . length = & length1 ;\n my_bind [ 1 ] . is_null = & is_null [ 1 ] ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT * FROM test_bind_result\" ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n row 1: %d, %s(%lu)\" , nData , szData , length1 ) ;\n DIE_UNLESS ( nData == 10 ) ;\n DIE_UNLESS ( strcmp ( szData , \"venu\" ) == 0 ) ;\n DIE_UNLESS ( length1 == 4 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n row 2: %d, %s(%lu)\" , nData , szData , length1 ) ;\n DIE_UNLESS ( nData == 20 ) ;\n DIE_UNLESS ( strcmp ( szData , \"MySQL\" ) == 0 ) ;\n DIE_UNLESS ( length1 == 5 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent && is_null [ 0 ] ) fprintf ( stdout , \"\\n row 3: NULL, %s(%lu)\" , szData , length1 ) ;\n DIE_UNLESS ( is_null [ 0 ] ) ;\n DIE_UNLESS ( strcmp ( szData , \"monty\" ) == 0 ) ;\n DIE_UNLESS ( length1 == 5 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 8018, "target": 0, "func": "static void set_mode_info_seg_skip ( MACROBLOCK * x , TX_MODE tx_mode , int * rate , int64_t * dist , BLOCK_SIZE bsize ) {\n MACROBLOCKD * const xd = & x -> e_mbd ;\n MB_MODE_INFO * const mbmi = & xd -> mi [ 0 ] . src_mi -> mbmi ;\n INTERP_FILTER filter_ref ;\n if ( xd -> up_available ) filter_ref = xd -> mi [ - xd -> mi_stride ] . src_mi -> mbmi . interp_filter ;\n else if ( xd -> left_available ) filter_ref = xd -> mi [ - 1 ] . src_mi -> mbmi . interp_filter ;\n else filter_ref = EIGHTTAP ;\n mbmi -> sb_type = bsize ;\n mbmi -> mode = ZEROMV ;\n mbmi -> tx_size = MIN ( max_txsize_lookup [ bsize ] , tx_mode_to_biggest_tx_size [ tx_mode ] ) ;\n mbmi -> skip = 1 ;\n mbmi -> uv_mode = DC_PRED ;\n mbmi -> ref_frame [ 0 ] = LAST_FRAME ;\n mbmi -> ref_frame [ 1 ] = NONE ;\n mbmi -> mv [ 0 ] . as_int = 0 ;\n mbmi -> interp_filter = filter_ref ;\n xd -> mi [ 0 ] . src_mi -> bmi [ 0 ] . as_mv [ 0 ] . as_int = 0 ;\n x -> skip = 1 ;\n * rate = 0 ;\n * dist = 0 ;\n }"}
{"idx": 8019, "target": 0, "func": "int evbuffer_expand ( struct evbuffer * buf , size_t datlen ) {\n size_t used = buf -> misalign + buf -> off ;\n assert ( buf -> totallen >= used ) ;\n if ( buf -> totallen - used >= datlen ) return ( 0 ) ;\n if ( datlen > SIZE_MAX - buf -> off ) return ( - 1 ) ;\n if ( buf -> totallen - buf -> off >= datlen ) {\n evbuffer_align ( buf ) ;\n }\n else {\n void * newbuf ;\n size_t length = buf -> totallen ;\n size_t need = buf -> off + datlen ;\n if ( length < 256 ) length = 256 ;\n if ( need < SIZE_MAX / 2 ) {\n while ( length < need ) {\n length <<= 1 ;\n }\n }\n else {\n length = need ;\n }\n if ( buf -> orig_buffer != buf -> buffer ) evbuffer_align ( buf ) ;\n if ( ( newbuf = realloc ( buf -> buffer , length ) ) == NULL ) return ( - 1 ) ;\n buf -> orig_buffer = buf -> buffer = newbuf ;\n buf -> totallen = length ;\n }\n return ( 0 ) ;\n }"}
{"idx": 8020, "target": 0, "func": "static void write_crash_report ( const char * err ) {\n char * loc = git_pathdup ( \"fast_import_crash_%\" PRIuMAX , ( uintmax_t ) getpid ( ) ) ;\n FILE * rpt = fopen ( loc , \"w\" ) ;\n struct branch * b ;\n unsigned long lu ;\n struct recent_command * rc ;\n if ( ! rpt ) {\n error ( \"can't write crash report %s: %s\" , loc , strerror ( errno ) ) ;\n free ( loc ) ;\n return ;\n }\n fprintf ( stderr , \"fast-import: dumping crash report to %s\\n\" , loc ) ;\n fprintf ( rpt , \"fast-import crash report:\\n\" ) ;\n fprintf ( rpt , \" fast-import process: %\" PRIuMAX \"\\n\" , ( uintmax_t ) getpid ( ) ) ;\n fprintf ( rpt , \" parent process : %\" PRIuMAX \"\\n\" , ( uintmax_t ) getppid ( ) ) ;\n fprintf ( rpt , \" at %s\\n\" , show_date ( time ( NULL ) , 0 , DATE_MODE ( LOCAL ) ) ) ;\n fputc ( '\\n' , rpt ) ;\n fputs ( \"fatal: \" , rpt ) ;\n fputs ( err , rpt ) ;\n fputc ( '\\n' , rpt ) ;\n fputc ( '\\n' , rpt ) ;\n fputs ( \"Most Recent Commands Before Crash\\n\" , rpt ) ;\n fputs ( \"---------------------------------\\n\" , rpt ) ;\n for ( rc = cmd_hist . next ;\n rc != & cmd_hist ;\n rc = rc -> next ) {\n if ( rc -> next == & cmd_hist ) fputs ( \"* \" , rpt ) ;\n else fputs ( \" \" , rpt ) ;\n fputs ( rc -> buf , rpt ) ;\n fputc ( '\\n' , rpt ) ;\n }\n fputc ( '\\n' , rpt ) ;\n fputs ( \"Active Branch LRU\\n\" , rpt ) ;\n fputs ( \"-----------------\\n\" , rpt ) ;\n fprintf ( rpt , \" active_branches = %lu cur, %lu max\\n\" , cur_active_branches , max_active_branches ) ;\n fputc ( '\\n' , rpt ) ;\n fputs ( \" pos clock name\\n\" , rpt ) ;\n fputs ( \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\\n\" , rpt ) ;\n for ( b = active_branches , lu = 0 ;\n b ;\n b = b -> active_next_branch ) fprintf ( rpt , \" %2lu) %6\" PRIuMAX \" %s\\n\" , ++ lu , b -> last_commit , b -> name ) ;\n fputc ( '\\n' , rpt ) ;\n fputs ( \"Inactive Branches\\n\" , rpt ) ;\n fputs ( \"-----------------\\n\" , rpt ) ;\n for ( lu = 0 ;\n lu < branch_table_sz ;\n lu ++ ) {\n for ( b = branch_table [ lu ] ;\n b ;\n b = b -> table_next_branch ) write_branch_report ( rpt , b ) ;\n }\n if ( first_tag ) {\n struct tag * tg ;\n fputc ( '\\n' , rpt ) ;\n fputs ( \"Annotated Tags\\n\" , rpt ) ;\n fputs ( \"--------------\\n\" , rpt ) ;\n for ( tg = first_tag ;\n tg ;\n tg = tg -> next_tag ) {\n fputs ( sha1_to_hex ( tg -> sha1 ) , rpt ) ;\n fputc ( ' ' , rpt ) ;\n fputs ( tg -> name , rpt ) ;\n fputc ( '\\n' , rpt ) ;\n }\n }\n fputc ( '\\n' , rpt ) ;\n fputs ( \"Marks\\n\" , rpt ) ;\n fputs ( \"-----\\n\" , rpt ) ;\n if ( export_marks_file ) fprintf ( rpt , \" exported to %s\\n\" , export_marks_file ) ;\n else dump_marks_helper ( rpt , 0 , marks ) ;\n fputc ( '\\n' , rpt ) ;\n fputs ( \"-------------------\\n\" , rpt ) ;\n fputs ( \"END OF CRASH REPORT\\n\" , rpt ) ;\n fclose ( rpt ) ;\n free ( loc ) ;\n }"}
{"idx": 8021, "target": 0, "func": "static bool cpu_thread_is_idle ( CPUState * cpu ) {\n if ( cpu -> stop || cpu -> queued_work_first ) {\n return false ;\n }\n if ( cpu -> stopped || ! runstate_is_running ( ) ) {\n return true ;\n }\n if ( ! cpu -> halted || qemu_cpu_has_work ( cpu ) || kvm_halt_in_kernel ( ) ) {\n return false ;\n }\n return true ;\n }"}
{"idx": 8022, "target": 0, "func": "static int unpack_bitstream ( G723_1_Context * p , const uint8_t * buf , int buf_size ) {\n GetBitContext gb ;\n int ad_cb_len ;\n int temp , info_bits , i ;\n init_get_bits ( & gb , buf , buf_size * 8 ) ;\n info_bits = get_bits ( & gb , 2 ) ;\n if ( info_bits == 3 ) {\n p -> cur_frame_type = UNTRANSMITTED_FRAME ;\n return 0 ;\n }\n p -> lsp_index [ 2 ] = get_bits ( & gb , 8 ) ;\n p -> lsp_index [ 1 ] = get_bits ( & gb , 8 ) ;\n p -> lsp_index [ 0 ] = get_bits ( & gb , 8 ) ;\n if ( info_bits == 2 ) {\n p -> cur_frame_type = SID_FRAME ;\n p -> subframe [ 0 ] . amp_index = get_bits ( & gb , 6 ) ;\n return 0 ;\n }\n p -> cur_rate = info_bits ? RATE_5300 : RATE_6300 ;\n p -> cur_frame_type = ACTIVE_FRAME ;\n p -> pitch_lag [ 0 ] = get_bits ( & gb , 7 ) ;\n if ( p -> pitch_lag [ 0 ] > 123 ) return - 1 ;\n p -> pitch_lag [ 0 ] += PITCH_MIN ;\n p -> subframe [ 1 ] . ad_cb_lag = get_bits ( & gb , 2 ) ;\n p -> pitch_lag [ 1 ] = get_bits ( & gb , 7 ) ;\n if ( p -> pitch_lag [ 1 ] > 123 ) return - 1 ;\n p -> pitch_lag [ 1 ] += PITCH_MIN ;\n p -> subframe [ 3 ] . ad_cb_lag = get_bits ( & gb , 2 ) ;\n p -> subframe [ 0 ] . ad_cb_lag = 1 ;\n p -> subframe [ 2 ] . ad_cb_lag = 1 ;\n for ( i = 0 ;\n i < SUBFRAMES ;\n i ++ ) {\n temp = get_bits ( & gb , 12 ) ;\n ad_cb_len = 170 ;\n p -> subframe [ i ] . dirac_train = 0 ;\n if ( p -> cur_rate == RATE_6300 && p -> pitch_lag [ i >> 1 ] < SUBFRAME_LEN - 2 ) {\n p -> subframe [ i ] . dirac_train = temp >> 11 ;\n temp &= 0x7FF ;\n ad_cb_len = 85 ;\n }\n p -> subframe [ i ] . ad_cb_gain = FASTDIV ( temp , GAIN_LEVELS ) ;\n if ( p -> subframe [ i ] . ad_cb_gain < ad_cb_len ) {\n p -> subframe [ i ] . amp_index = temp - p -> subframe [ i ] . ad_cb_gain * GAIN_LEVELS ;\n }\n else {\n return - 1 ;\n }\n }\n p -> subframe [ 0 ] . grid_index = get_bits ( & gb , 1 ) ;\n p -> subframe [ 1 ] . grid_index = get_bits ( & gb , 1 ) ;\n p -> subframe [ 2 ] . grid_index = get_bits ( & gb , 1 ) ;\n p -> subframe [ 3 ] . grid_index = get_bits ( & gb , 1 ) ;\n if ( p -> cur_rate == RATE_6300 ) {\n skip_bits ( & gb , 1 ) ;\n temp = get_bits ( & gb , 13 ) ;\n p -> subframe [ 0 ] . pulse_pos = temp / 810 ;\n temp -= p -> subframe [ 0 ] . pulse_pos * 810 ;\n p -> subframe [ 1 ] . pulse_pos = FASTDIV ( temp , 90 ) ;\n temp -= p -> subframe [ 1 ] . pulse_pos * 90 ;\n p -> subframe [ 2 ] . pulse_pos = FASTDIV ( temp , 9 ) ;\n p -> subframe [ 3 ] . pulse_pos = temp - p -> subframe [ 2 ] . pulse_pos * 9 ;\n p -> subframe [ 0 ] . pulse_pos = ( p -> subframe [ 0 ] . pulse_pos << 16 ) + get_bits ( & gb , 16 ) ;\n p -> subframe [ 1 ] . pulse_pos = ( p -> subframe [ 1 ] . pulse_pos << 14 ) + get_bits ( & gb , 14 ) ;\n p -> subframe [ 2 ] . pulse_pos = ( p -> subframe [ 2 ] . pulse_pos << 16 ) + get_bits ( & gb , 16 ) ;\n p -> subframe [ 3 ] . pulse_pos = ( p -> subframe [ 3 ] . pulse_pos << 14 ) + get_bits ( & gb , 14 ) ;\n p -> subframe [ 0 ] . pulse_sign = get_bits ( & gb , 6 ) ;\n p -> subframe [ 1 ] . pulse_sign = get_bits ( & gb , 5 ) ;\n p -> subframe [ 2 ] . pulse_sign = get_bits ( & gb , 6 ) ;\n p -> subframe [ 3 ] . pulse_sign = get_bits ( & gb , 5 ) ;\n }\n else {\n p -> subframe [ 0 ] . pulse_pos = get_bits ( & gb , 12 ) ;\n p -> subframe [ 1 ] . pulse_pos = get_bits ( & gb , 12 ) ;\n p -> subframe [ 2 ] . pulse_pos = get_bits ( & gb , 12 ) ;\n p -> subframe [ 3 ] . pulse_pos = get_bits ( & gb , 12 ) ;\n p -> subframe [ 0 ] . pulse_sign = get_bits ( & gb , 4 ) ;\n p -> subframe [ 1 ] . pulse_sign = get_bits ( & gb , 4 ) ;\n p -> subframe [ 2 ] . pulse_sign = get_bits ( & gb , 4 ) ;\n p -> subframe [ 3 ] . pulse_sign = get_bits ( & gb , 4 ) ;\n }\n return 0 ;\n }"}
{"idx": 8023, "target": 0, "func": "static int dissect_h225_NonStandardProtocol ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_NonStandardProtocol , NonStandardProtocol_sequence ) ;\n return offset ;\n }"}
{"idx": 8024, "target": 0, "func": "static void jbig2_set_bits ( byte * line , uint32_t x0 , uint32_t x1 ) {\n uint32_t a0 , a1 , b0 , b1 , a ;\n a0 = x0 >> 3 ;\n a1 = x1 >> 3 ;\n b0 = x0 & 7 ;\n b1 = x1 & 7 ;\n if ( a0 == a1 ) {\n line [ a0 ] |= lm [ b0 ] & rm [ b1 ] ;\n }\n else {\n line [ a0 ] |= lm [ b0 ] ;\n for ( a = a0 + 1 ;\n a < a1 ;\n a ++ ) line [ a ] = 0xFF ;\n if ( b1 ) line [ a1 ] |= rm [ b1 ] ;\n }\n }"}
{"idx": 8025, "target": 0, "func": "gx_device * gx_device_enum_ptr ( gx_device * dev ) {\n if ( dev == 0 || dev -> memory == 0 ) return 0 ;\n return dev ;\n }"}
{"idx": 8026, "target": 0, "func": "int vp9_use_as_reference ( VP9_COMP * cpi , int ref_frame_flags ) {\n if ( ref_frame_flags > 7 ) return - 1 ;\n cpi -> ref_frame_flags = ref_frame_flags ;\n return 0 ;\n }"}
{"idx": 8027, "target": 0, "func": "GType hb_gobject_ ## name ## _get_type ( void ) \\ {\n static gsize type_id = 0 ;\n if ( g_once_init_enter ( & type_id ) ) {\n GType id = g_boxed_type_register_static ( g_intern_static_string ( \"hb_\" # name \"_t\" ) , ( GBoxedCopyFunc ) copy_func , ( GBoxedFreeFunc ) free_func ) ;\n g_once_init_leave ( & type_id , id ) ;\n }\n return type_id ;\n \\ }\n # define HB_DEFINE_OBJECT_TYPE ( name ) HB_DEFINE_BOXED_TYPE ( name , hb_ ## name ## _reference , hb_ ## name ## _destroy ) ;\n # define HB_DEFINE_VALUE_TYPE ( name ) static hb_ ## name ## _t * _hb_ ## name ## _reference ( const hb_ ## name ## _t * l ) {\n hb_ ## name ## _t * c = ( hb_ ## name ## _t * ) calloc ( 1 , sizeof ( hb_ ## name ## _t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * l ;\n return c ;\n }\n static void _hb_ ## name ## _destroy ( hb_ ## name ## _t * l ) {\n free ( l ) ;\n }\n HB_DEFINE_BOXED_TYPE ( name , _hb_ ## name ## _reference , _hb_ ## name ## _destroy ) ;\n HB_DEFINE_OBJECT_TYPE ( buffer )"}
{"idx": 8028, "target": 0, "func": "void vp9_iht4x4_16_add_sse2 ( const int16_t * input , uint8_t * dest , int stride , int tx_type ) {\n __m128i in [ 2 ] ;\n const __m128i zero = _mm_setzero_si128 ( ) ;\n const __m128i eight = _mm_set1_epi16 ( 8 ) ;\n in [ 0 ] = _mm_loadu_si128 ( ( const __m128i * ) ( input ) ) ;\n in [ 1 ] = _mm_loadu_si128 ( ( const __m128i * ) ( input + 8 ) ) ;\n switch ( tx_type ) {\n case 0 : idct4_sse2 ( in ) ;\n idct4_sse2 ( in ) ;\n break ;\n case 1 : idct4_sse2 ( in ) ;\n iadst4_sse2 ( in ) ;\n break ;\n case 2 : iadst4_sse2 ( in ) ;\n idct4_sse2 ( in ) ;\n break ;\n case 3 : iadst4_sse2 ( in ) ;\n iadst4_sse2 ( in ) ;\n break ;\n default : assert ( 0 ) ;\n break ;\n }\n in [ 0 ] = _mm_add_epi16 ( in [ 0 ] , eight ) ;\n in [ 1 ] = _mm_add_epi16 ( in [ 1 ] , eight ) ;\n in [ 0 ] = _mm_srai_epi16 ( in [ 0 ] , 4 ) ;\n in [ 1 ] = _mm_srai_epi16 ( in [ 1 ] , 4 ) ;\n {\n __m128i d0 = _mm_cvtsi32_si128 ( * ( const int * ) ( dest ) ) ;\n __m128i d2 = _mm_cvtsi32_si128 ( * ( const int * ) ( dest + stride * 2 ) ) ;\n d0 = _mm_unpacklo_epi32 ( d0 , _mm_cvtsi32_si128 ( * ( const int * ) ( dest + stride ) ) ) ;\n d2 = _mm_unpacklo_epi32 ( d2 , _mm_cvtsi32_si128 ( * ( const int * ) ( dest + stride * 3 ) ) ) ;\n d0 = _mm_unpacklo_epi8 ( d0 , zero ) ;\n d2 = _mm_unpacklo_epi8 ( d2 , zero ) ;\n d0 = _mm_add_epi16 ( d0 , in [ 0 ] ) ;\n d2 = _mm_add_epi16 ( d2 , in [ 1 ] ) ;\n d0 = _mm_packus_epi16 ( d0 , d2 ) ;\n * ( int * ) dest = _mm_cvtsi128_si32 ( d0 ) ;\n d0 = _mm_srli_si128 ( d0 , 4 ) ;\n * ( int * ) ( dest + stride ) = _mm_cvtsi128_si32 ( d0 ) ;\n d0 = _mm_srli_si128 ( d0 , 4 ) ;\n * ( int * ) ( dest + stride * 2 ) = _mm_cvtsi128_si32 ( d0 ) ;\n d0 = _mm_srli_si128 ( d0 , 4 ) ;\n * ( int * ) ( dest + stride * 3 ) = _mm_cvtsi128_si32 ( d0 ) ;\n }\n }"}
{"idx": 8029, "target": 0, "func": "static inline int padr_match ( PCNetState * s , const uint8_t * buf , int size ) {\n struct qemu_ether_header * hdr = ( void * ) buf ;\n uint8_t padr [ 6 ] = {\n s -> csr [ 12 ] & 0xff , s -> csr [ 12 ] >> 8 , s -> csr [ 13 ] & 0xff , s -> csr [ 13 ] >> 8 , s -> csr [ 14 ] & 0xff , s -> csr [ 14 ] >> 8 }\n ;\n int result = ( ! CSR_DRCVPA ( s ) ) && ! memcmp ( hdr -> ether_dhost , padr , 6 ) ;\n # ifdef PCNET_DEBUG_MATCH printf ( \"packet dhost=%02x:%02x:%02x:%02x:%02x:%02x, \" \"padr=%02x:%02x:%02x:%02x:%02x:%02x\\n\" , hdr -> ether_dhost [ 0 ] , hdr -> ether_dhost [ 1 ] , hdr -> ether_dhost [ 2 ] , hdr -> ether_dhost [ 3 ] , hdr -> ether_dhost [ 4 ] , hdr -> ether_dhost [ 5 ] , padr [ 0 ] , padr [ 1 ] , padr [ 2 ] , padr [ 3 ] , padr [ 4 ] , padr [ 5 ] ) ;\n printf ( \"padr_match result=%d\\n\" , result ) ;\n # endif return result ;\n }"}
{"idx": 8030, "target": 0, "func": "static void read_coef_probs ( FRAME_CONTEXT * fc , TX_MODE tx_mode , vp9_reader * r ) {\n const TX_SIZE max_tx_size = tx_mode_to_biggest_tx_size [ tx_mode ] ;\n TX_SIZE tx_size ;\n for ( tx_size = TX_4X4 ;\n tx_size <= max_tx_size ;\n ++ tx_size ) read_coef_probs_common ( fc -> coef_probs [ tx_size ] , r ) ;\n }"}
{"idx": 8031, "target": 0, "func": "static gboolean gst_asf_demux_pull_data ( GstASFDemux * demux , guint64 offset , guint size , GstBuffer * * p_buf , GstFlowReturn * p_flow ) {\n gsize buffer_size ;\n GstFlowReturn flow ;\n GST_LOG_OBJECT ( demux , \"pulling buffer at %\" G_GUINT64_FORMAT \"+%u\" , offset , size ) ;\n flow = gst_pad_pull_range ( demux -> sinkpad , offset , size , p_buf ) ;\n if ( G_LIKELY ( p_flow ) ) * p_flow = flow ;\n if ( G_UNLIKELY ( flow != GST_FLOW_OK ) ) {\n GST_DEBUG_OBJECT ( demux , \"flow %s pulling buffer at %\" G_GUINT64_FORMAT \"+%u\" , gst_flow_get_name ( flow ) , offset , size ) ;\n * p_buf = NULL ;\n return FALSE ;\n }\n g_assert ( * p_buf != NULL ) ;\n buffer_size = gst_buffer_get_size ( * p_buf ) ;\n if ( G_UNLIKELY ( buffer_size < size ) ) {\n GST_DEBUG_OBJECT ( demux , \"short read pulling buffer at %\" G_GUINT64_FORMAT \"+%u (got only %\" G_GSIZE_FORMAT \" bytes)\" , offset , size , buffer_size ) ;\n gst_buffer_unref ( * p_buf ) ;\n if ( G_LIKELY ( p_flow ) ) * p_flow = GST_FLOW_EOS ;\n * p_buf = NULL ;\n return FALSE ;\n }\n return TRUE ;\n }"}
{"idx": 8032, "target": 1, "func": "static int avs_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n const uint8_t * buf_end = avpkt -> data + avpkt -> size ;\n int buf_size = avpkt -> size ;\n AvsContext * const avs = avctx -> priv_data ;\n AVFrame * picture = data ;\n AVFrame * const p = & avs -> picture ;\n const uint8_t * table , * vect ;\n uint8_t * out ;\n int i , j , x , y , stride , ret , vect_w = 3 , vect_h = 3 ;\n AvsVideoSubType sub_type ;\n AvsBlockType type ;\n GetBitContext change_map ;\n if ( ( ret = avctx -> reget_buffer ( avctx , p ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n p -> reference = 1 ;\n p -> pict_type = AV_PICTURE_TYPE_P ;\n p -> key_frame = 0 ;\n out = avs -> picture . data [ 0 ] ;\n stride = avs -> picture . linesize [ 0 ] ;\n if ( buf_end - buf < 4 ) return AVERROR_INVALIDDATA ;\n sub_type = buf [ 0 ] ;\n type = buf [ 1 ] ;\n buf += 4 ;\n if ( type == AVS_PALETTE ) {\n int first , last ;\n uint32_t * pal = ( uint32_t * ) avs -> picture . data [ 1 ] ;\n first = AV_RL16 ( buf ) ;\n last = first + AV_RL16 ( buf + 2 ) ;\n if ( first >= 256 || last > 256 || buf_end - buf < 4 + 4 + 3 * ( last - first ) ) return AVERROR_INVALIDDATA ;\n buf += 4 ;\n for ( i = first ;\n i < last ;\n i ++ , buf += 3 ) pal [ i ] = ( buf [ 0 ] << 18 ) | ( buf [ 1 ] << 10 ) | ( buf [ 2 ] << 2 ) ;\n sub_type = buf [ 0 ] ;\n type = buf [ 1 ] ;\n buf += 4 ;\n }\n if ( type != AVS_VIDEO ) return AVERROR_INVALIDDATA ;\n switch ( sub_type ) {\n case AVS_I_FRAME : p -> pict_type = AV_PICTURE_TYPE_I ;\n p -> key_frame = 1 ;\n case AVS_P_FRAME_3X3 : vect_w = 3 ;\n vect_h = 3 ;\n break ;\n case AVS_P_FRAME_2X2 : vect_w = 2 ;\n vect_h = 2 ;\n break ;\n case AVS_P_FRAME_2X3 : vect_w = 2 ;\n vect_h = 3 ;\n break ;\n default : return AVERROR_INVALIDDATA ;\n }\n if ( buf_end - buf < 256 * vect_w * vect_h ) return AVERROR_INVALIDDATA ;\n table = buf + ( 256 * vect_w * vect_h ) ;\n if ( sub_type != AVS_I_FRAME ) {\n int map_size = ( ( 318 / vect_w + 7 ) / 8 ) * ( 198 / vect_h ) ;\n if ( buf_end - table < map_size ) return AVERROR_INVALIDDATA ;\n init_get_bits ( & change_map , table , map_size * 8 ) ;\n table += map_size ;\n }\n for ( y = 0 ;\n y < 198 ;\n y += vect_h ) {\n for ( x = 0 ;\n x < 318 ;\n x += vect_w ) {\n if ( sub_type == AVS_I_FRAME || get_bits1 ( & change_map ) ) {\n if ( buf_end - table < 1 ) return AVERROR_INVALIDDATA ;\n vect = & buf [ * table ++ * ( vect_w * vect_h ) ] ;\n for ( j = 0 ;\n j < vect_w ;\n j ++ ) {\n out [ ( y + 0 ) * stride + x + j ] = vect [ ( 0 * vect_w ) + j ] ;\n out [ ( y + 1 ) * stride + x + j ] = vect [ ( 1 * vect_w ) + j ] ;\n if ( vect_h == 3 ) out [ ( y + 2 ) * stride + x + j ] = vect [ ( 2 * vect_w ) + j ] ;\n }\n }\n }\n if ( sub_type != AVS_I_FRAME ) align_get_bits ( & change_map ) ;\n }\n * picture = avs -> picture ;\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 8033, "target": 1, "func": "static void tgq_idct_put_mb ( TgqContext * s , int16_t ( * block ) [ 64 ] , int mb_x , int mb_y ) {\n int linesize = s -> frame . linesize [ 0 ] ;\n uint8_t * dest_y = s -> frame . data [ 0 ] + ( mb_y * 16 * linesize ) + mb_x * 16 ;\n uint8_t * dest_cb = s -> frame . data [ 1 ] + ( mb_y * 8 * s -> frame . linesize [ 1 ] ) + mb_x * 8 ;\n uint8_t * dest_cr = s -> frame . data [ 2 ] + ( mb_y * 8 * s -> frame . linesize [ 2 ] ) + mb_x * 8 ;\n ff_ea_idct_put_c ( dest_y , linesize , block [ 0 ] ) ;\n ff_ea_idct_put_c ( dest_y + 8 , linesize , block [ 1 ] ) ;\n ff_ea_idct_put_c ( dest_y + 8 * linesize , linesize , block [ 2 ] ) ;\n ff_ea_idct_put_c ( dest_y + 8 * linesize + 8 , linesize , block [ 3 ] ) ;\n if ( ! ( s -> avctx -> flags & CODEC_FLAG_GRAY ) ) {\n ff_ea_idct_put_c ( dest_cb , s -> frame . linesize [ 1 ] , block [ 4 ] ) ;\n ff_ea_idct_put_c ( dest_cr , s -> frame . linesize [ 2 ] , block [ 5 ] ) ;\n }\n }"}
{"idx": 8034, "target": 0, "func": "static int vaapi_h264_end_frame ( AVCodecContext * avctx ) {\n struct vaapi_context * const vactx = avctx -> hwaccel_context ;\n H264Context * const h = avctx -> priv_data ;\n int ret ;\n av_dlog ( avctx , \"vaapi_h264_end_frame()\\n\" ) ;\n ret = ff_vaapi_commit_slices ( vactx ) ;\n if ( ret < 0 ) goto finish ;\n ret = ff_vaapi_render_picture ( vactx , ff_vaapi_get_surface_id ( h -> cur_pic_ptr ) ) ;\n if ( ret < 0 ) goto finish ;\n ff_h264_draw_horiz_band ( h , 0 , h -> avctx -> height ) ;\n finish : ff_vaapi_common_end_frame ( avctx ) ;\n return ret ;\n }"}
{"idx": 8035, "target": 0, "func": "static int qcow2_set_key ( BlockDriverState * bs , const char * key ) {\n BDRVQcowState * s = bs -> opaque ;\n uint8_t keybuf [ 16 ] ;\n int len , i ;\n memset ( keybuf , 0 , 16 ) ;\n len = strlen ( key ) ;\n if ( len > 16 ) len = 16 ;\n for ( i = 0 ;\n i < len ;\n i ++ ) {\n keybuf [ i ] = key [ i ] ;\n }\n s -> crypt_method = s -> crypt_method_header ;\n if ( AES_set_encrypt_key ( keybuf , 128 , & s -> aes_encrypt_key ) != 0 ) return - 1 ;\n if ( AES_set_decrypt_key ( keybuf , 128 , & s -> aes_decrypt_key ) != 0 ) return - 1 ;\n # if 0 {\n uint8_t in [ 16 ] ;\n uint8_t out [ 16 ] ;\n uint8_t tmp [ 16 ] ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) in [ i ] = i ;\n AES_encrypt ( in , tmp , & s -> aes_encrypt_key ) ;\n AES_decrypt ( tmp , out , & s -> aes_decrypt_key ) ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) printf ( \" %02x\" , tmp [ i ] ) ;\n printf ( \"\\n\" ) ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) printf ( \" %02x\" , out [ i ] ) ;\n printf ( \"\\n\" ) ;\n }\n # endif return 0 ;\n }"}
{"idx": 8036, "target": 0, "func": "extern bool validate_super_user ( uid_t uid ) {\n # ifndef NDEBUG if ( drop_priv ) return false ;\n # endif if ( ( uid == 0 ) || ( uid == slurmctld_conf . slurm_user_id ) || assoc_mgr_get_admin_level ( acct_db_conn , uid ) >= SLURMDB_ADMIN_SUPER_USER ) return true ;\n else return false ;\n }"}
{"idx": 8037, "target": 0, "func": "TEST_F ( TtsControllerTest , TestGetMatchingVoice ) {\n std : : unique_ptr < TestableTtsController > tts_controller = std : : make_unique < TestableTtsController > ( ) ;\n # if defined ( OS_CHROMEOS ) TestingPrefServiceSimple pref_service_ ;\n std : : unique_ptr < base : : DictionaryValue > lang_to_voices = std : : make_unique < base : : DictionaryValue > ( ) ;\n lang_to_voices -> SetKey ( \"es\" , base : : Value ( \"{\n\\\"name\\\":\\\"Voice7\\\",\\\"extension\\\":\\\"id7\\\"}\n\" ) ) ;\n lang_to_voices -> SetKey ( \"noLanguage\" , base : : Value ( \"{\n\\\"name\\\":\\\"Android\\\",\\\"extension\\\":\\\"\\\"}\n\" ) ) ;\n pref_service_ . registry ( ) -> RegisterDictionaryPref ( prefs : : kTextToSpeechLangToVoiceName , std : : move ( lang_to_voices ) ) ;\n tts_controller -> pref_service_ = & pref_service_ ;\n # endif {\n Utterance utterance ( nullptr ) ;\n std : : vector < VoiceData > voices ;\n EXPECT_EQ ( - 1 , tts_controller -> GetMatchingVoice ( & utterance , voices ) ) ;\n }\n {\n Utterance utterance ( nullptr ) ;\n std : : vector < VoiceData > voices ;\n voices . push_back ( VoiceData ( ) ) ;\n voices . push_back ( VoiceData ( ) ) ;\n EXPECT_EQ ( 0 , tts_controller -> GetMatchingVoice ( & utterance , voices ) ) ;\n }\n {\n Utterance utterance ( nullptr ) ;\n std : : vector < VoiceData > voices ;\n VoiceData fr_voice ;\n fr_voice . lang = \"fr\" ;\n voices . push_back ( fr_voice ) ;\n VoiceData en_voice ;\n en_voice . lang = \"en\" ;\n voices . push_back ( en_voice ) ;\n VoiceData de_voice ;\n de_voice . lang = \"de\" ;\n voices . push_back ( de_voice ) ;\n EXPECT_EQ ( 1 , tts_controller -> GetMatchingVoice ( & utterance , voices ) ) ;\n }\n {\n std : : vector < VoiceData > voices ;\n VoiceData voice0 ;\n voices . push_back ( voice0 ) ;\n VoiceData voice1 ;\n voice1 . events . insert ( TTS_EVENT_WORD ) ;\n voices . push_back ( voice1 ) ;\n VoiceData voice2 ;\n voice2 . lang = \"de-DE\" ;\n voices . push_back ( voice2 ) ;\n VoiceData voice3 ;\n voice3 . lang = \"fr-CA\" ;\n voices . push_back ( voice3 ) ;\n VoiceData voice4 ;\n voice4 . name = \"Voice4\" ;\n voices . push_back ( voice4 ) ;\n VoiceData voice5 ;\n voice5 . extension_id = \"id5\" ;\n voices . push_back ( voice5 ) ;\n VoiceData voice6 ;\n voice6 . extension_id = \"id7\" ;\n voice6 . name = \"Voice6\" ;\n voice6 . lang = \"es-es\" ;\n voices . push_back ( voice6 ) ;\n VoiceData voice7 ;\n voice7 . extension_id = \"id7\" ;\n voice7 . name = \"Voice7\" ;\n voice7 . lang = \"es-mx\" ;\n voices . push_back ( voice7 ) ;\n VoiceData voice8 ;\n voice8 . extension_id = \"\" ;\n voice8 . name = \"Android\" ;\n voice8 . lang = \"\" ;\n voice8 . native = true ;\n voices . push_back ( voice8 ) ;\n Utterance utterance ( nullptr ) ;\n EXPECT_EQ ( 0 , tts_controller -> GetMatchingVoice ( & utterance , voices ) ) ;\n std : : set < TtsEventType > types ;\n types . insert ( TTS_EVENT_WORD ) ;\n utterance . set_required_event_types ( types ) ;\n EXPECT_EQ ( 1 , tts_controller -> GetMatchingVoice ( & utterance , voices ) ) ;\n utterance . set_lang ( \"de-DE\" ) ;\n EXPECT_EQ ( 2 , tts_controller -> GetMatchingVoice ( & utterance , voices ) ) ;\n utterance . set_lang ( \"fr-FR\" ) ;\n EXPECT_EQ ( 3 , tts_controller -> GetMatchingVoice ( & utterance , voices ) ) ;\n utterance . set_voice_name ( \"Voice4\" ) ;\n EXPECT_EQ ( 4 , tts_controller -> GetMatchingVoice ( & utterance , voices ) ) ;\n utterance . set_voice_name ( \"\" ) ;\n utterance . set_extension_id ( \"id5\" ) ;\n EXPECT_EQ ( 5 , tts_controller -> GetMatchingVoice ( & utterance , voices ) ) ;\n # if defined ( OS_CHROMEOS ) utterance . set_extension_id ( \"\" ) ;\n utterance . set_lang ( \"es-es\" ) ;\n EXPECT_EQ ( 6 , tts_controller -> GetMatchingVoice ( & utterance , voices ) ) ;\n utterance . set_extension_id ( \"\" ) ;\n utterance . set_lang ( \"es-ar\" ) ;\n EXPECT_EQ ( 7 , tts_controller -> GetMatchingVoice ( & utterance , voices ) ) ;\n utterance . set_voice_name ( \"Android\" ) ;\n utterance . set_extension_id ( \"\" ) ;\n utterance . set_lang ( \"\" ) ;\n EXPECT_EQ ( 8 , tts_controller -> GetMatchingVoice ( & utterance , voices ) ) ;\n # endif }\n }"}
{"idx": 8038, "target": 0, "func": "char * Curl_checkheaders ( const struct connectdata * conn , const char * thisheader ) {\n struct curl_slist * head ;\n size_t thislen = strlen ( thisheader ) ;\n struct Curl_easy * data = conn -> data ;\n for ( head = data -> set . headers ;\n head ;\n head = head -> next ) {\n if ( Curl_raw_nequal ( head -> data , thisheader , thislen ) ) return head -> data ;\n }\n return NULL ;\n }"}
{"idx": 8039, "target": 0, "func": "static void curses_connection_kill ( void * conn ) {\n struct conn_tail * c = ( struct conn_tail * ) conn ;\n DEBUG_MSG ( \"curses_connection_kill\" ) ;\n switch ( user_kill ( c -> co ) ) {\n case E_SUCCESS : c -> co -> status = CONN_KILLED ;\n curses_message ( \"The connection was killed !!\" ) ;\n break ;\n case - E_FATAL : curses_message ( \"Cannot kill UDP connections !!\" ) ;\n break ;\n }\n }"}
{"idx": 8040, "target": 0, "func": "void register_ber_oid_name ( const char * oid , const char * name ) {\n oid_add_from_string ( name , oid ) ;\n }"}
{"idx": 8041, "target": 0, "func": "static void evdns_request_insert ( struct request * req , struct request * * head ) {\n if ( ! * head ) {\n * head = req ;\n req -> next = req -> prev = req ;\n return ;\n }\n req -> prev = ( * head ) -> prev ;\n req -> prev -> next = req ;\n req -> next = * head ;\n ( * head ) -> prev = req ;\n }"}
{"idx": 8042, "target": 0, "func": "void mutt_rfc2047_encode ( char * * pd , const char * specials , int col , const char * charsets ) {\n char * e = NULL ;\n size_t elen ;\n if ( ! Charset || ! * pd ) return ;\n if ( ! charsets || ! * charsets ) charsets = \"utf-8\" ;\n rfc2047_encode ( * pd , strlen ( * pd ) , col , Charset , charsets , & e , & elen , specials ) ;\n FREE ( pd ) ;\n * pd = e ;\n }"}
{"idx": 8043, "target": 1, "func": "static void sbr_turnoff ( SpectralBandReplication * sbr ) {\n sbr -> start = 0 ;\n sbr -> kx [ 1 ] = 32 ;\n sbr -> m [ 1 ] = 0 ;\n sbr -> data [ 0 ] . e_a [ 1 ] = sbr -> data [ 1 ] . e_a [ 1 ] = - 1 ;\n memset ( & sbr -> spectrum_params , - 1 , sizeof ( SpectrumParameters ) ) ;\n }"}
{"idx": 8044, "target": 0, "func": "static const char * cmd_argument_separator ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n if ( strlen ( p1 ) != 1 ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid argument separator: %s\" , p1 ) ;\n }\n dcfg -> argument_separator = p1 [ 0 ] ;\n return NULL ;\n }"}
{"idx": 8045, "target": 1, "func": "static int get_kf_active_quality ( const RATE_CONTROL * const rc , int q ) {\n return get_active_quality ( q , rc -> kf_boost , kf_low , kf_high , kf_low_motion_minq , kf_high_motion_minq ) ;\n }"}
{"idx": 8046, "target": 0, "func": "static inline int16_t inverse_quant ( G726Context * c , int i ) {\n int dql , dex , dqt ;\n dql = c -> tbls . iquant [ i ] + ( c -> y >> 2 ) ;\n dex = ( dql >> 7 ) & 0xf ;\n dqt = ( 1 << 7 ) + ( dql & 0x7f ) ;\n return ( dql < 0 ) ? 0 : ( ( dqt << dex ) >> 7 ) ;\n }"}
{"idx": 8047, "target": 1, "func": "void ff_copy_picture ( Picture * dst , Picture * src ) {\n * dst = * src ;\n dst -> f . type = FF_BUFFER_TYPE_COPY ;\n }"}
{"idx": 8048, "target": 0, "func": "void tb_phys_invalidate ( TranslationBlock * tb , tb_page_addr_t page_addr ) {\n CPUArchState * env ;\n PageDesc * p ;\n unsigned int h , n1 ;\n tb_page_addr_t phys_pc ;\n TranslationBlock * tb1 , * tb2 ;\n phys_pc = tb -> page_addr [ 0 ] + ( tb -> pc & ~ TARGET_PAGE_MASK ) ;\n h = tb_phys_hash_func ( phys_pc ) ;\n tb_hash_remove ( & tcg_ctx . tb_ctx . tb_phys_hash [ h ] , tb ) ;\n if ( tb -> page_addr [ 0 ] != page_addr ) {\n p = page_find ( tb -> page_addr [ 0 ] >> TARGET_PAGE_BITS ) ;\n tb_page_remove ( & p -> first_tb , tb ) ;\n invalidate_page_bitmap ( p ) ;\n }\n if ( tb -> page_addr [ 1 ] != - 1 && tb -> page_addr [ 1 ] != page_addr ) {\n p = page_find ( tb -> page_addr [ 1 ] >> TARGET_PAGE_BITS ) ;\n tb_page_remove ( & p -> first_tb , tb ) ;\n invalidate_page_bitmap ( p ) ;\n }\n tcg_ctx . tb_ctx . tb_invalidated_flag = 1 ;\n h = tb_jmp_cache_hash_func ( tb -> pc ) ;\n for ( env = first_cpu ;\n env != NULL ;\n env = env -> next_cpu ) {\n if ( env -> tb_jmp_cache [ h ] == tb ) {\n env -> tb_jmp_cache [ h ] = NULL ;\n }\n }\n tb_jmp_remove ( tb , 0 ) ;\n tb_jmp_remove ( tb , 1 ) ;\n tb1 = tb -> jmp_first ;\n for ( ;\n ;\n ) {\n n1 = ( uintptr_t ) tb1 & 3 ;\n if ( n1 == 2 ) {\n break ;\n }\n tb1 = ( TranslationBlock * ) ( ( uintptr_t ) tb1 & ~ 3 ) ;\n tb2 = tb1 -> jmp_next [ n1 ] ;\n tb_reset_jump ( tb1 , n1 ) ;\n tb1 -> jmp_next [ n1 ] = NULL ;\n tb1 = tb2 ;\n }\n tb -> jmp_first = ( TranslationBlock * ) ( ( uintptr_t ) tb | 2 ) ;\n tcg_ctx . tb_ctx . tb_phys_invalidate_count ++ ;\n }"}
{"idx": 8049, "target": 0, "func": "static void test_prepare_ext ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n char * sql ;\n int nData = 1 ;\n char tData = 1 ;\n short sData = 10 ;\n longlong bData = 20 ;\n MYSQL_BIND my_bind [ 6 ] ;\n char query [ MAX_TEST_QUERY_LENGTH ] ;\n myheader ( \"test_prepare_ext\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_prepare_ext\" ) ;\n myquery ( rc ) ;\n sql = ( char * ) \"CREATE TABLE test_prepare_ext\" \"(\" \" c1 tinyint,\" \" c2 smallint,\" \" c3 mediumint,\" \" c4 int,\" \" c5 integer,\" \" c6 bigint,\" \" c7 float,\" \" c8 double,\" \" c9 double precision,\" \" c10 real,\" \" c11 decimal(7, 4),\" \" c12 numeric(8, 4),\" \" c13 date,\" \" c14 datetime,\" \" c15 timestamp,\" \" c16 time,\" \" c17 year,\" \" c18 bit,\" \" c19 bool,\" \" c20 char,\" \" c21 char(10),\" \" c22 varchar(30),\" \" c23 tinyblob,\" \" c24 tinytext,\" \" c25 blob,\" \" c26 text,\" \" c27 mediumblob,\" \" c28 mediumtext,\" \" c29 longblob,\" \" c30 longtext,\" \" c31 enum('one', 'two', 'three'),\" \" c32 set('monday', 'tuesday', 'wednesday'))\" ;\n rc = mysql_query ( mysql , sql ) ;\n myquery ( rc ) ;\n strmov ( query , ( char * ) \"INSERT INTO test_prepare_ext(c1, c2, c3, c4, c5, c6) VALUES(?, ?, ?, ?, ?, ?)\" ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 6 ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_TINY ;\n my_bind [ 0 ] . buffer = ( void * ) & tData ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_SHORT ;\n my_bind [ 1 ] . buffer = ( void * ) & sData ;\n my_bind [ 2 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 2 ] . buffer = ( void * ) & nData ;\n my_bind [ 3 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 3 ] . buffer = ( void * ) & nData ;\n my_bind [ 4 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 4 ] . buffer = ( void * ) & nData ;\n my_bind [ 5 ] . buffer_type = MYSQL_TYPE_LONGLONG ;\n my_bind [ 5 ] . buffer = ( void * ) & bData ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n for ( nData = 0 ;\n nData < 10 ;\n nData ++ , tData ++ , sData ++ , bData ++ ) {\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n }\n mysql_stmt_close ( stmt ) ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT c1, c2, c3, c4, c5, c6 \" \"FROM test_prepare_ext\" ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( nData == rc ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 8050, "target": 0, "func": "static void e1000e_intrmgr_pci_unint ( E1000ECore * core ) {\n int i ;\n timer_del ( core -> radv . timer ) ;\n timer_free ( core -> radv . timer ) ;\n timer_del ( core -> rdtr . timer ) ;\n timer_free ( core -> rdtr . timer ) ;\n timer_del ( core -> raid . timer ) ;\n timer_free ( core -> raid . timer ) ;\n timer_del ( core -> tadv . timer ) ;\n timer_free ( core -> tadv . timer ) ;\n timer_del ( core -> tidv . timer ) ;\n timer_free ( core -> tidv . timer ) ;\n timer_del ( core -> itr . timer ) ;\n timer_free ( core -> itr . timer ) ;\n for ( i = 0 ;\n i < E1000E_MSIX_VEC_NUM ;\n i ++ ) {\n timer_del ( core -> eitr [ i ] . timer ) ;\n timer_free ( core -> eitr [ i ] . timer ) ;\n }\n }"}
{"idx": 8051, "target": 0, "func": "static void mp_read_codes_table ( MotionPixelsContext * mp , GetBitContext * gb ) {\n if ( mp -> codes_count == 1 ) {\n mp -> codes [ 0 ] . delta = get_bits ( gb , 4 ) ;\n }\n else {\n int i ;\n mp -> max_codes_bits = get_bits ( gb , 4 ) ;\n for ( i = 0 ;\n i < mp -> codes_count ;\n ++ i ) mp -> codes [ i ] . delta = get_bits ( gb , 4 ) ;\n mp -> current_codes_count = 0 ;\n mp_get_code ( mp , gb , 0 , 0 ) ;\n }\n }"}
{"idx": 8052, "target": 0, "func": "static void dissect_ber_syntax ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree ) {\n ( void ) dissect_unknown_ber ( pinfo , tvb , 0 , tree ) ;\n }"}
{"idx": 8053, "target": 0, "func": "void Init_generator ( void ) {\n rb_require ( \"json/common\" ) ;\n mJSON = rb_define_module ( \"JSON\" ) ;\n mExt = rb_define_module_under ( mJSON , \"Ext\" ) ;\n mGenerator = rb_define_module_under ( mExt , \"Generator\" ) ;\n eGeneratorError = rb_path2class ( \"JSON::GeneratorError\" ) ;\n eNestingError = rb_path2class ( \"JSON::NestingError\" ) ;\n cState = rb_define_class_under ( mGenerator , \"State\" , rb_cObject ) ;\n rb_define_alloc_func ( cState , cState_s_allocate ) ;\n rb_define_singleton_method ( cState , \"from_state\" , cState_from_state_s , 1 ) ;\n rb_define_method ( cState , \"initialize\" , cState_initialize , - 1 ) ;\n rb_define_method ( cState , \"initialize_copy\" , cState_init_copy , 1 ) ;\n rb_define_method ( cState , \"indent\" , cState_indent , 0 ) ;\n rb_define_method ( cState , \"indent=\" , cState_indent_set , 1 ) ;\n rb_define_method ( cState , \"space\" , cState_space , 0 ) ;\n rb_define_method ( cState , \"space=\" , cState_space_set , 1 ) ;\n rb_define_method ( cState , \"space_before\" , cState_space_before , 0 ) ;\n rb_define_method ( cState , \"space_before=\" , cState_space_before_set , 1 ) ;\n rb_define_method ( cState , \"object_nl\" , cState_object_nl , 0 ) ;\n rb_define_method ( cState , \"object_nl=\" , cState_object_nl_set , 1 ) ;\n rb_define_method ( cState , \"array_nl\" , cState_array_nl , 0 ) ;\n rb_define_method ( cState , \"array_nl=\" , cState_array_nl_set , 1 ) ;\n rb_define_method ( cState , \"max_nesting\" , cState_max_nesting , 0 ) ;\n rb_define_method ( cState , \"max_nesting=\" , cState_max_nesting_set , 1 ) ;\n rb_define_method ( cState , \"check_circular?\" , cState_check_circular_p , 0 ) ;\n rb_define_method ( cState , \"allow_nan?\" , cState_allow_nan_p , 0 ) ;\n rb_define_method ( cState , \"ascii_only?\" , cState_ascii_only_p , 0 ) ;\n rb_define_method ( cState , \"depth\" , cState_depth , 0 ) ;\n rb_define_method ( cState , \"depth=\" , cState_depth_set , 1 ) ;\n rb_define_method ( cState , \"buffer_initial_length\" , cState_buffer_initial_length , 0 ) ;\n rb_define_method ( cState , \"buffer_initial_length=\" , cState_buffer_initial_length_set , 1 ) ;\n rb_define_method ( cState , \"configure\" , cState_configure , 1 ) ;\n rb_define_alias ( cState , \"merge\" , \"configure\" ) ;\n rb_define_method ( cState , \"to_h\" , cState_to_h , 0 ) ;\n rb_define_alias ( cState , \"to_hash\" , \"to_h\" ) ;\n rb_define_method ( cState , \"[]\" , cState_aref , 1 ) ;\n rb_define_method ( cState , \"[]=\" , cState_aset , 2 ) ;\n rb_define_method ( cState , \"generate\" , cState_generate , 1 ) ;\n mGeneratorMethods = rb_define_module_under ( mGenerator , \"GeneratorMethods\" ) ;\n mObject = rb_define_module_under ( mGeneratorMethods , \"Object\" ) ;\n rb_define_method ( mObject , \"to_json\" , mObject_to_json , - 1 ) ;\n mHash = rb_define_module_under ( mGeneratorMethods , \"Hash\" ) ;\n rb_define_method ( mHash , \"to_json\" , mHash_to_json , - 1 ) ;\n mArray = rb_define_module_under ( mGeneratorMethods , \"Array\" ) ;\n rb_define_method ( mArray , \"to_json\" , mArray_to_json , - 1 ) ;\n # ifdef RUBY_INTEGER_UNIFICATION mInteger = rb_define_module_under ( mGeneratorMethods , \"Integer\" ) ;\n rb_define_method ( mInteger , \"to_json\" , mInteger_to_json , - 1 ) ;\n # else mFixnum = rb_define_module_under ( mGeneratorMethods , \"Fixnum\" ) ;\n rb_define_method ( mFixnum , \"to_json\" , mFixnum_to_json , - 1 ) ;\n mBignum = rb_define_module_under ( mGeneratorMethods , \"Bignum\" ) ;\n rb_define_method ( mBignum , \"to_json\" , mBignum_to_json , - 1 ) ;\n # endif mFloat = rb_define_module_under ( mGeneratorMethods , \"Float\" ) ;\n rb_define_method ( mFloat , \"to_json\" , mFloat_to_json , - 1 ) ;\n mString = rb_define_module_under ( mGeneratorMethods , \"String\" ) ;\n rb_define_singleton_method ( mString , \"included\" , mString_included_s , 1 ) ;\n rb_define_method ( mString , \"to_json\" , mString_to_json , - 1 ) ;\n rb_define_method ( mString , \"to_json_raw\" , mString_to_json_raw , - 1 ) ;\n rb_define_method ( mString , \"to_json_raw_object\" , mString_to_json_raw_object , 0 ) ;\n mString_Extend = rb_define_module_under ( mString , \"Extend\" ) ;\n rb_define_method ( mString_Extend , \"json_create\" , mString_Extend_json_create , 1 ) ;\n mTrueClass = rb_define_module_under ( mGeneratorMethods , \"TrueClass\" ) ;\n rb_define_method ( mTrueClass , \"to_json\" , mTrueClass_to_json , - 1 ) ;\n mFalseClass = rb_define_module_under ( mGeneratorMethods , \"FalseClass\" ) ;\n rb_define_method ( mFalseClass , \"to_json\" , mFalseClass_to_json , - 1 ) ;\n mNilClass = rb_define_module_under ( mGeneratorMethods , \"NilClass\" ) ;\n rb_define_method ( mNilClass , \"to_json\" , mNilClass_to_json , - 1 ) ;\n CRegexp_MULTILINE = rb_const_get ( rb_cRegexp , rb_intern ( \"MULTILINE\" ) ) ;\n i_to_s = rb_intern ( \"to_s\" ) ;\n i_to_json = rb_intern ( \"to_json\" ) ;\n i_new = rb_intern ( \"new\" ) ;\n i_indent = rb_intern ( \"indent\" ) ;\n i_space = rb_intern ( \"space\" ) ;\n i_space_before = rb_intern ( \"space_before\" ) ;\n i_object_nl = rb_intern ( \"object_nl\" ) ;\n i_array_nl = rb_intern ( \"array_nl\" ) ;\n i_max_nesting = rb_intern ( \"max_nesting\" ) ;\n i_allow_nan = rb_intern ( \"allow_nan\" ) ;\n i_ascii_only = rb_intern ( \"ascii_only\" ) ;\n i_depth = rb_intern ( \"depth\" ) ;\n i_buffer_initial_length = rb_intern ( \"buffer_initial_length\" ) ;\n i_pack = rb_intern ( \"pack\" ) ;\n i_unpack = rb_intern ( \"unpack\" ) ;\n i_create_id = rb_intern ( \"create_id\" ) ;\n i_extend = rb_intern ( \"extend\" ) ;\n i_key_p = rb_intern ( \"key?\" ) ;\n i_aref = rb_intern ( \"[]\" ) ;\n i_send = rb_intern ( \"__send__\" ) ;\n i_respond_to_p = rb_intern ( \"respond_to?\" ) ;\n i_match = rb_intern ( \"match\" ) ;\n i_keys = rb_intern ( \"keys\" ) ;\n i_dup = rb_intern ( \"dup\" ) ;\n # ifdef HAVE_RUBY_ENCODING_H CEncoding_UTF_8 = rb_funcall ( rb_path2class ( \"Encoding\" ) , rb_intern ( \"find\" ) , 1 , rb_str_new2 ( \"utf-8\" ) ) ;\n i_encoding = rb_intern ( \"encoding\" ) ;\n i_encode = rb_intern ( \"encode\" ) ;\n # endif i_SAFE_STATE_PROTOTYPE = rb_intern ( \"SAFE_STATE_PROTOTYPE\" ) ;\n CJSON_SAFE_STATE_PROTOTYPE = Qnil ;\n }"}
{"idx": 8054, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( DownloadNotificationTest , DISABLED_DownloadDangerousFile ) {\n GURL download_url ( embedded_test_server ( ) -> GetURL ( \"/downloads/dangerous/dangerous.swf\" ) ) ;\n content : : DownloadTestObserverTerminal download_terminal_observer ( GetDownloadManager ( browser ( ) ) , 1u , content : : DownloadTestObserver : : ON_DANGEROUS_DOWNLOAD_IGNORE ) ;\n CreateDownloadForBrowserAndURL ( browser ( ) , download_url ) ;\n base : : FilePath filename = download_item ( ) -> GetFileNameToReportUser ( ) ;\n EXPECT_EQ ( download : : DOWNLOAD_DANGER_TYPE_DANGEROUS_FILE , download_item ( ) -> GetDangerType ( ) ) ;\n EXPECT_TRUE ( download_item ( ) -> IsDangerous ( ) ) ;\n display_service_ -> SimulateClick ( NotificationHandler : : Type : : TRANSIENT , notification_id ( ) , 1 , base : : nullopt ) ;\n EXPECT_TRUE ( notification ( ) ) ;\n EXPECT_EQ ( download : : DOWNLOAD_DANGER_TYPE_USER_VALIDATED , download_item ( ) -> GetDangerType ( ) ) ;\n EXPECT_FALSE ( download_item ( ) -> IsDangerous ( ) ) ;\n download_terminal_observer . WaitForFinished ( ) ;\n EXPECT_FALSE ( download_item ( ) -> IsDangerous ( ) ) ;\n EXPECT_EQ ( download : : DownloadItem : : COMPLETE , download_item ( ) -> GetState ( ) ) ;\n EXPECT_TRUE ( base : : PathExists ( GetDownloadPath ( ) . Append ( filename . BaseName ( ) ) ) ) ;\n }"}
{"idx": 8055, "target": 0, "func": "static int __udp6_lib_mcast_deliver ( struct net * net , struct sk_buff * skb , struct in6_addr * saddr , struct in6_addr * daddr , struct udp_table * udptable ) {\n struct sock * sk , * stack [ 256 / sizeof ( struct sock * ) ] ;\n const struct udphdr * uh = udp_hdr ( skb ) ;\n struct udp_hslot * hslot = udp_hashslot ( udptable , net , ntohs ( uh -> dest ) ) ;\n int dif ;\n unsigned int i , count = 0 ;\n spin_lock ( & hslot -> lock ) ;\n sk = sk_nulls_head ( & hslot -> head ) ;\n dif = inet6_iif ( skb ) ;\n sk = udp_v6_mcast_next ( net , sk , uh -> dest , daddr , uh -> source , saddr , dif ) ;\n while ( sk ) {\n stack [ count ++ ] = sk ;\n sk = udp_v6_mcast_next ( net , sk_nulls_next ( sk ) , uh -> dest , daddr , uh -> source , saddr , dif ) ;\n if ( unlikely ( count == ARRAY_SIZE ( stack ) ) ) {\n if ( ! sk ) break ;\n flush_stack ( stack , count , skb , ~ 0 ) ;\n count = 0 ;\n }\n }\n for ( i = 0 ;\n i < count ;\n i ++ ) sock_hold ( stack [ i ] ) ;\n spin_unlock ( & hslot -> lock ) ;\n if ( count ) {\n flush_stack ( stack , count , skb , count - 1 ) ;\n for ( i = 0 ;\n i < count ;\n i ++ ) sock_put ( stack [ i ] ) ;\n }\n else {\n kfree_skb ( skb ) ;\n }\n return 0 ;\n }"}
{"idx": 8056, "target": 0, "func": "TSReturnCode TSMimeHdrFieldValueDelete ( TSMBuffer bufp , TSMLoc hdr , TSMLoc field , int idx ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( hdr ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( hdr ) == TS_SUCCESS ) ) ;\n sdk_assert ( sdk_sanity_check_field_handle ( field , hdr ) == TS_SUCCESS ) ;\n sdk_assert ( idx >= 0 ) ;\n if ( ! isWriteable ( bufp ) ) {\n return TS_ERROR ;\n }\n MIMEFieldSDKHandle * handle = ( MIMEFieldSDKHandle * ) field ;\n HdrHeap * heap = ( ( HdrHeapSDKHandle * ) bufp ) -> m_heap ;\n mime_field_value_delete_comma_val ( heap , handle -> mh , handle -> field_ptr , idx ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 8057, "target": 0, "func": "static void end_tee ( ) {\n my_fclose ( OUTFILE , MYF ( 0 ) ) ;\n OUTFILE = 0 ;\n opt_outfile = 0 ;\n return ;\n }"}
{"idx": 8058, "target": 0, "func": "static zend_object_value spl_filesystem_object_new_check ( zend_class_entry * class_type TSRMLS_DC ) {\n zend_object_value ret = spl_filesystem_object_new_ex ( class_type , NULL TSRMLS_CC ) ;\n ret . handlers = & spl_filesystem_object_check_handlers ;\n return ret ;\n }"}
{"idx": 8059, "target": 0, "func": "static void sig_complete_tag ( GList * * list , WINDOW_REC * window , const char * word , const char * line , int * want_space ) {\n g_return_if_fail ( list != NULL ) ;\n g_return_if_fail ( word != NULL ) ;\n * list = completion_get_servertags ( word ) ;\n if ( * list != NULL ) signal_stop ( ) ;\n }"}
{"idx": 8060, "target": 0, "func": "static void exsltSaxonShutdown ( xsltTransformContextPtr ctxt ATTRIBUTE_UNUSED , const xmlChar * URI ATTRIBUTE_UNUSED , xmlHashTablePtr data ) {\n xmlHashFree ( data , ( xmlHashDeallocator ) xmlXPathFreeCompExpr ) ;\n }"}
{"idx": 8061, "target": 0, "func": "void curl_free ( void * p ) {\n free ( p ) ;\n }"}
{"idx": 8062, "target": 0, "func": "static int init_context_frame ( MpegEncContext * s ) {\n int y_size , c_size , yc_size , i , mb_array_size , mv_table_size , x , y ;\n s -> mb_width = ( s -> width + 15 ) / 16 ;\n s -> mb_stride = s -> mb_width + 1 ;\n s -> b8_stride = s -> mb_width * 2 + 1 ;\n s -> b4_stride = s -> mb_width * 4 + 1 ;\n mb_array_size = s -> mb_height * s -> mb_stride ;\n mv_table_size = ( s -> mb_height + 2 ) * s -> mb_stride + 1 ;\n s -> h_edge_pos = s -> mb_width * 16 ;\n s -> v_edge_pos = s -> mb_height * 16 ;\n s -> mb_num = s -> mb_width * s -> mb_height ;\n s -> block_wrap [ 0 ] = s -> block_wrap [ 1 ] = s -> block_wrap [ 2 ] = s -> block_wrap [ 3 ] = s -> b8_stride ;\n s -> block_wrap [ 4 ] = s -> block_wrap [ 5 ] = s -> mb_stride ;\n y_size = s -> b8_stride * ( 2 * s -> mb_height + 1 ) ;\n c_size = s -> mb_stride * ( s -> mb_height + 1 ) ;\n yc_size = y_size + 2 * c_size ;\n FF_ALLOCZ_OR_GOTO ( s -> avctx , s -> mb_index2xy , ( s -> mb_num + 1 ) * sizeof ( int ) , fail ) ;\n for ( y = 0 ;\n y < s -> mb_height ;\n y ++ ) for ( x = 0 ;\n x < s -> mb_width ;\n x ++ ) s -> mb_index2xy [ x + y * s -> mb_width ] = x + y * s -> mb_stride ;\n s -> mb_index2xy [ s -> mb_height * s -> mb_width ] = ( s -> mb_height - 1 ) * s -> mb_stride + s -> mb_width ;\n if ( s -> encoding ) {\n FF_ALLOCZ_OR_GOTO ( s -> avctx , s -> p_mv_table_base , mv_table_size * 2 * sizeof ( int16_t ) , fail ) ;\n FF_ALLOCZ_OR_GOTO ( s -> avctx , s -> b_forw_mv_table_base , mv_table_size * 2 * sizeof ( int16_t ) , fail ) ;\n FF_ALLOCZ_OR_GOTO ( s -> avctx , s -> b_back_mv_table_base , mv_table_size * 2 * sizeof ( int16_t ) , fail ) ;\n FF_ALLOCZ_OR_GOTO ( s -> avctx , s -> b_bidir_forw_mv_table_base , mv_table_size * 2 * sizeof ( int16_t ) , fail ) ;\n FF_ALLOCZ_OR_GOTO ( s -> avctx , s -> b_bidir_back_mv_table_base , mv_table_size * 2 * sizeof ( int16_t ) , fail ) ;\n FF_ALLOCZ_OR_GOTO ( s -> avctx , s -> b_direct_mv_table_base , mv_table_size * 2 * sizeof ( int16_t ) , fail ) ;\n s -> p_mv_table = s -> p_mv_table_base + s -> mb_stride + 1 ;\n s -> b_forw_mv_table = s -> b_forw_mv_table_base + s -> mb_stride + 1 ;\n s -> b_back_mv_table = s -> b_back_mv_table_base + s -> mb_stride + 1 ;\n s -> b_bidir_forw_mv_table = s -> b_bidir_forw_mv_table_base + s -> mb_stride + 1 ;\n s -> b_bidir_back_mv_table = s -> b_bidir_back_mv_table_base + s -> mb_stride + 1 ;\n s -> b_direct_mv_table = s -> b_direct_mv_table_base + s -> mb_stride + 1 ;\n FF_ALLOCZ_OR_GOTO ( s -> avctx , s -> mb_type , mb_array_size * sizeof ( uint16_t ) , fail ) ;\n FF_ALLOCZ_OR_GOTO ( s -> avctx , s -> lambda_table , mb_array_size * sizeof ( int ) , fail ) ;\n FF_ALLOC_OR_GOTO ( s -> avctx , s -> cplx_tab , mb_array_size * sizeof ( float ) , fail ) ;\n FF_ALLOC_OR_GOTO ( s -> avctx , s -> bits_tab , mb_array_size * sizeof ( float ) , fail ) ;\n }\n if ( s -> codec_id == AV_CODEC_ID_MPEG4 || ( s -> flags & CODEC_FLAG_INTERLACED_ME ) ) {\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n int j , k ;\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n for ( k = 0 ;\n k < 2 ;\n k ++ ) {\n FF_ALLOCZ_OR_GOTO ( s -> avctx , s -> b_field_mv_table_base [ i ] [ j ] [ k ] , mv_table_size * 2 * sizeof ( int16_t ) , fail ) ;\n s -> b_field_mv_table [ i ] [ j ] [ k ] = s -> b_field_mv_table_base [ i ] [ j ] [ k ] + s -> mb_stride + 1 ;\n }\n FF_ALLOCZ_OR_GOTO ( s -> avctx , s -> b_field_select_table [ i ] [ j ] , mb_array_size * 2 * sizeof ( uint8_t ) , fail ) ;\n FF_ALLOCZ_OR_GOTO ( s -> avctx , s -> p_field_mv_table_base [ i ] [ j ] , mv_table_size * 2 * sizeof ( int16_t ) , fail ) ;\n s -> p_field_mv_table [ i ] [ j ] = s -> p_field_mv_table_base [ i ] [ j ] + s -> mb_stride + 1 ;\n }\n FF_ALLOCZ_OR_GOTO ( s -> avctx , s -> p_field_select_table [ i ] , mb_array_size * 2 * sizeof ( uint8_t ) , fail ) ;\n }\n }\n if ( s -> out_format == FMT_H263 ) {\n FF_ALLOCZ_OR_GOTO ( s -> avctx , s -> coded_block_base , y_size , fail ) ;\n s -> coded_block = s -> coded_block_base + s -> b8_stride + 1 ;\n FF_ALLOCZ_OR_GOTO ( s -> avctx , s -> cbp_table , mb_array_size * sizeof ( uint8_t ) , fail ) ;\n FF_ALLOCZ_OR_GOTO ( s -> avctx , s -> pred_dir_table , mb_array_size * sizeof ( uint8_t ) , fail ) ;\n }\n if ( s -> h263_pred || s -> h263_plus || ! s -> encoding ) {\n FF_ALLOCZ_OR_GOTO ( s -> avctx , s -> dc_val_base , yc_size * sizeof ( int16_t ) , fail ) ;\n s -> dc_val [ 0 ] = s -> dc_val_base + s -> b8_stride + 1 ;\n s -> dc_val [ 1 ] = s -> dc_val_base + y_size + s -> mb_stride + 1 ;\n s -> dc_val [ 2 ] = s -> dc_val [ 1 ] + c_size ;\n for ( i = 0 ;\n i < yc_size ;\n i ++ ) s -> dc_val_base [ i ] = 1024 ;\n }\n FF_ALLOCZ_OR_GOTO ( s -> avctx , s -> mbintra_table , mb_array_size , fail ) ;\n memset ( s -> mbintra_table , 1 , mb_array_size ) ;\n FF_ALLOCZ_OR_GOTO ( s -> avctx , s -> mbskip_table , mb_array_size + 2 , fail ) ;\n if ( ( s -> avctx -> debug & ( FF_DEBUG_VIS_QP | FF_DEBUG_VIS_MB_TYPE ) ) || s -> avctx -> debug_mv ) {\n s -> visualization_buffer [ 0 ] = av_malloc ( ( s -> mb_width * 16 + 2 * EDGE_WIDTH ) * s -> mb_height * 16 + 2 * EDGE_WIDTH ) ;\n s -> visualization_buffer [ 1 ] = av_malloc ( ( s -> mb_width * 16 + 2 * EDGE_WIDTH ) * s -> mb_height * 16 + 2 * EDGE_WIDTH ) ;\n s -> visualization_buffer [ 2 ] = av_malloc ( ( s -> mb_width * 16 + 2 * EDGE_WIDTH ) * s -> mb_height * 16 + 2 * EDGE_WIDTH ) ;\n }\n return init_er ( s ) ;\n fail : return AVERROR ( ENOMEM ) ;\n }"}
{"idx": 8063, "target": 0, "func": "static void build_completion_hash ( bool rehash , bool write_info ) {\n COMMANDS * cmd = commands ;\n MYSQL_RES * databases = 0 , * tables = 0 ;\n MYSQL_RES * fields ;\n static char * * * field_names = 0 ;\n MYSQL_ROW database_row , table_row ;\n MYSQL_FIELD * sql_field ;\n char buf [ NAME_LEN * 2 + 2 ] ;\n int i , j , num_fields ;\n DBUG_ENTER ( \"build_completion_hash\" ) ;\n if ( status . batch || quick || ! current_db ) DBUG_VOID_RETURN ;\n if ( ! rehash ) DBUG_VOID_RETURN ;\n if ( field_names ) field_names = 0 ;\n completion_hash_clean ( & ht ) ;\n free_root ( & hash_mem_root , MYF ( 0 ) ) ;\n while ( cmd -> name ) {\n add_word ( & ht , ( char * ) cmd -> name ) ;\n cmd ++ ;\n }\n if ( mysql_query ( & mysql , \"show databases\" ) == 0 ) {\n if ( ! ( databases = mysql_store_result ( & mysql ) ) ) put_info ( mysql_error ( & mysql ) , INFO_INFO ) ;\n else {\n while ( ( database_row = mysql_fetch_row ( databases ) ) ) {\n char * str = strdup_root ( & hash_mem_root , ( char * ) database_row [ 0 ] ) ;\n if ( str ) add_word ( & ht , ( char * ) str ) ;\n }\n mysql_free_result ( databases ) ;\n }\n }\n if ( mysql_query ( & mysql , \"show tables\" ) == 0 ) {\n if ( ! ( tables = mysql_store_result ( & mysql ) ) ) put_info ( mysql_error ( & mysql ) , INFO_INFO ) ;\n else {\n if ( mysql_num_rows ( tables ) > 0 && ! opt_silent && write_info ) {\n tee_fprintf ( stdout , \"\\ Reading table information for completion of table and column names\\n\\ You can turn off this feature to get a quicker startup with -A\\n\\n\" ) ;\n }\n while ( ( table_row = mysql_fetch_row ( tables ) ) ) {\n char * str = strdup_root ( & hash_mem_root , ( char * ) table_row [ 0 ] ) ;\n if ( str && ! completion_hash_exists ( & ht , ( char * ) str , ( uint ) strlen ( str ) ) ) add_word ( & ht , str ) ;\n }\n }\n }\n if ( ! tables ) {\n DBUG_VOID_RETURN ;\n }\n mysql_data_seek ( tables , 0 ) ;\n if ( ! ( field_names = ( char * * * ) alloc_root ( & hash_mem_root , sizeof ( char * * ) * ( uint ) ( mysql_num_rows ( tables ) + 1 ) ) ) ) {\n mysql_free_result ( tables ) ;\n DBUG_VOID_RETURN ;\n }\n i = 0 ;\n while ( ( table_row = mysql_fetch_row ( tables ) ) ) {\n if ( ( fields = mysql_list_fields ( & mysql , ( const char * ) table_row [ 0 ] , NullS ) ) ) {\n num_fields = mysql_num_fields ( fields ) ;\n if ( ! ( field_names [ i ] = ( char * * ) alloc_root ( & hash_mem_root , sizeof ( char * ) * ( num_fields * 2 + 1 ) ) ) ) {\n mysql_free_result ( fields ) ;\n break ;\n }\n field_names [ i ] [ num_fields * 2 ] = '\\0' ;\n j = 0 ;\n while ( ( sql_field = mysql_fetch_field ( fields ) ) ) {\n sprintf ( buf , \"%.64s.%.64s\" , table_row [ 0 ] , sql_field -> name ) ;\n field_names [ i ] [ j ] = strdup_root ( & hash_mem_root , buf ) ;\n add_word ( & ht , field_names [ i ] [ j ] ) ;\n field_names [ i ] [ num_fields + j ] = strdup_root ( & hash_mem_root , sql_field -> name ) ;\n if ( ! completion_hash_exists ( & ht , field_names [ i ] [ num_fields + j ] , ( uint ) strlen ( field_names [ i ] [ num_fields + j ] ) ) ) add_word ( & ht , field_names [ i ] [ num_fields + j ] ) ;\n j ++ ;\n }\n mysql_free_result ( fields ) ;\n }\n else field_names [ i ] = 0 ;\n i ++ ;\n }\n mysql_free_result ( tables ) ;\n field_names [ i ] = 0 ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 8064, "target": 0, "func": "static void pxa2xx_ssp_fifo_update ( PXA2xxSSPState * s ) {\n s -> sssr &= ~ ( 0xf << 12 ) ;\n s -> sssr &= ~ ( 0xf << 8 ) ;\n s -> sssr &= ~ SSSR_TFS ;\n s -> sssr &= ~ SSSR_TNF ;\n if ( s -> enable ) {\n s -> sssr |= ( ( s -> rx_level - 1 ) & 0xf ) << 12 ;\n if ( s -> rx_level >= SSCR1_RFT ( s -> sscr [ 1 ] ) ) s -> sssr |= SSSR_RFS ;\n else s -> sssr &= ~ SSSR_RFS ;\n if ( s -> rx_level ) s -> sssr |= SSSR_RNE ;\n else s -> sssr &= ~ SSSR_RNE ;\n s -> sssr |= SSSR_TFS ;\n s -> sssr |= SSSR_TNF ;\n }\n pxa2xx_ssp_int_update ( s ) ;\n }"}
{"idx": 8065, "target": 0, "func": "gpg_error_t keydb_insert_keyblock ( KEYDB_HANDLE hd , kbnode_t kb ) {\n gpg_error_t err ;\n int idx ;\n if ( ! hd ) return gpg_error ( GPG_ERR_INV_ARG ) ;\n keyblock_cache_clear ( ) ;\n if ( opt . dry_run ) return 0 ;\n if ( hd -> found >= 0 && hd -> found < hd -> used ) idx = hd -> found ;\n else if ( hd -> current >= 0 && hd -> current < hd -> used ) idx = hd -> current ;\n else return gpg_error ( GPG_ERR_GENERAL ) ;\n err = lock_all ( hd ) ;\n if ( err ) return err ;\n switch ( hd -> active [ idx ] . type ) {\n case KEYDB_RESOURCE_TYPE_NONE : err = gpg_error ( GPG_ERR_GENERAL ) ;\n break ;\n case KEYDB_RESOURCE_TYPE_KEYRING : err = keyring_insert_keyblock ( hd -> active [ idx ] . u . kr , kb ) ;\n break ;\n case KEYDB_RESOURCE_TYPE_KEYBOX : {\n iobuf_t iobuf ;\n u32 * sigstatus ;\n err = build_keyblock_image ( kb , & iobuf , & sigstatus ) ;\n if ( ! err ) {\n err = keybox_insert_keyblock ( hd -> active [ idx ] . u . kb , iobuf_get_temp_buffer ( iobuf ) , iobuf_get_temp_length ( iobuf ) , sigstatus ) ;\n xfree ( sigstatus ) ;\n iobuf_close ( iobuf ) ;\n }\n }\n break ;\n }\n unlock_all ( hd ) ;\n return err ;\n }"}
{"idx": 8066, "target": 0, "func": "static int dissect_CPMSendNotifyOut ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * parent_tree , gboolean in _U_ , void * data _U_ ) {\n gint offset = 16 ;\n proto_item * item ;\n proto_tree * tree ;\n col_append_str ( pinfo -> cinfo , COL_INFO , \"SendNotify\" ) ;\n item = proto_tree_add_item ( parent_tree , hf_mswsp_msg , tvb , offset , - 1 , ENC_NA ) ;\n tree = proto_item_add_subtree ( item , ett_mswsp_msg ) ;\n proto_item_set_text ( item , \"GetSendNotifyOut\" ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmsendnotify_watchnotify , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 8067, "target": 0, "func": "static gboolean is_last_sysex_packet_in_tvb ( tvbuff_t * tvb , gint offset ) {\n gboolean last = TRUE ;\n gint length = tvb_reported_length ( tvb ) ;\n offset += 4 ;\n while ( offset < length ) {\n guint8 code = tvb_get_guint8 ( tvb , offset ) ;\n code &= 0x0F ;\n if ( is_sysex_code ( code ) ) {\n last = FALSE ;\n break ;\n }\n offset += 4 ;\n }\n return last ;\n }"}
{"idx": 8068, "target": 0, "func": "static void decode_lsp ( TwinContext * tctx , int lpc_idx1 , uint8_t * lpc_idx2 , int lpc_hist_idx , float * lsp , float * hist ) {\n const ModeTab * mtab = tctx -> mtab ;\n int i , j ;\n const float * cb = mtab -> lspcodebook ;\n const float * cb2 = cb + ( 1 << mtab -> lsp_bit1 ) * mtab -> n_lsp ;\n const float * cb3 = cb2 + ( 1 << mtab -> lsp_bit2 ) * mtab -> n_lsp ;\n const int8_t funny_rounding [ 4 ] = {\n - 2 , mtab -> lsp_split == 4 ? - 2 : 1 , mtab -> lsp_split == 4 ? - 2 : 1 , 0 }\n ;\n j = 0 ;\n for ( i = 0 ;\n i < mtab -> lsp_split ;\n i ++ ) {\n int chunk_end = ( ( i + 1 ) * mtab -> n_lsp + funny_rounding [ i ] ) / mtab -> lsp_split ;\n for ( ;\n j < chunk_end ;\n j ++ ) lsp [ j ] = cb [ lpc_idx1 * mtab -> n_lsp + j ] + cb2 [ lpc_idx2 [ i ] * mtab -> n_lsp + j ] ;\n }\n rearrange_lsp ( mtab -> n_lsp , lsp , 0.0001 ) ;\n for ( i = 0 ;\n i < mtab -> n_lsp ;\n i ++ ) {\n float tmp1 = 1. - cb3 [ lpc_hist_idx * mtab -> n_lsp + i ] ;\n float tmp2 = hist [ i ] * cb3 [ lpc_hist_idx * mtab -> n_lsp + i ] ;\n hist [ i ] = lsp [ i ] ;\n lsp [ i ] = lsp [ i ] * tmp1 + tmp2 ;\n }\n rearrange_lsp ( mtab -> n_lsp , lsp , 0.0001 ) ;\n rearrange_lsp ( mtab -> n_lsp , lsp , 0.000095 ) ;\n ff_sort_nearly_sorted_floats ( lsp , mtab -> n_lsp ) ;\n }"}
{"idx": 8069, "target": 0, "func": "int virLogSetDefaultOutput ( const char * filename , bool godaemon , bool privileged ) {\n if ( ! godaemon ) return virLogSetDefaultOutputToStderr ( ) ;\n if ( access ( \"/run/systemd/journal/socket\" , W_OK ) >= 0 ) return virLogSetDefaultOutputToJournald ( ) ;\n return virLogSetDefaultOutputToFile ( filename , privileged ) ;\n }"}
{"idx": 8070, "target": 0, "func": "void ff_convert_matrix ( DSPContext * dsp , int ( * qmat ) [ 64 ] , uint16_t ( * qmat16 ) [ 2 ] [ 64 ] , const uint16_t * quant_matrix , int bias , int qmin , int qmax , int intra ) {\n int qscale ;\n int shift = 0 ;\n for ( qscale = qmin ;\n qscale <= qmax ;\n qscale ++ ) {\n int i ;\n if ( dsp -> fdct == ff_jpeg_fdct_islow_8 || dsp -> fdct == ff_jpeg_fdct_islow_10 || dsp -> fdct == ff_faandct ) {\n for ( i = 0 ;\n i < 64 ;\n i ++ ) {\n const int j = dsp -> idct_permutation [ i ] ;\n qmat [ qscale ] [ i ] = ( int ) ( ( UINT64_C ( 1 ) << QMAT_SHIFT ) / ( qscale * quant_matrix [ j ] ) ) ;\n }\n }\n else if ( dsp -> fdct == ff_fdct_ifast ) {\n for ( i = 0 ;\n i < 64 ;\n i ++ ) {\n const int j = dsp -> idct_permutation [ i ] ;\n qmat [ qscale ] [ i ] = ( int ) ( ( UINT64_C ( 1 ) << ( QMAT_SHIFT + 14 ) ) / ( ff_aanscales [ i ] * qscale * quant_matrix [ j ] ) ) ;\n }\n }\n else {\n for ( i = 0 ;\n i < 64 ;\n i ++ ) {\n const int j = dsp -> idct_permutation [ i ] ;\n qmat [ qscale ] [ i ] = ( int ) ( ( UINT64_C ( 1 ) << QMAT_SHIFT ) / ( qscale * quant_matrix [ j ] ) ) ;\n qmat16 [ qscale ] [ 0 ] [ i ] = ( 1 << QMAT_SHIFT_MMX ) / ( qscale * quant_matrix [ j ] ) ;\n if ( qmat16 [ qscale ] [ 0 ] [ i ] == 0 || qmat16 [ qscale ] [ 0 ] [ i ] == 128 * 256 ) qmat16 [ qscale ] [ 0 ] [ i ] = 128 * 256 - 1 ;\n qmat16 [ qscale ] [ 1 ] [ i ] = ROUNDED_DIV ( bias << ( 16 - QUANT_BIAS_SHIFT ) , qmat16 [ qscale ] [ 0 ] [ i ] ) ;\n }\n }\n for ( i = intra ;\n i < 64 ;\n i ++ ) {\n int64_t max = 8191 ;\n if ( dsp -> fdct == ff_fdct_ifast ) {\n max = ( 8191LL * ff_aanscales [ i ] ) >> 14 ;\n }\n while ( ( ( max * qmat [ qscale ] [ i ] ) >> shift ) > INT_MAX ) {\n shift ++ ;\n }\n }\n }\n if ( shift ) {\n av_log ( NULL , AV_LOG_INFO , \"Warning, QMAT_SHIFT is larger than %d, overflows possible\\n\" , QMAT_SHIFT - shift ) ;\n }\n }"}
{"idx": 8071, "target": 1, "func": "static __always_inline __u32 __be32_to_cpup ( const __be32 * p ) {\n return __swab32p ( ( __u32 * ) p ) ;\n }"}
{"idx": 8072, "target": 0, "func": "int qemuMonitorJSONAddPCINetwork ( qemuMonitorPtr mon ATTRIBUTE_UNUSED , const char * nicstr ATTRIBUTE_UNUSED , virDomainDevicePCIAddress * guestAddr ATTRIBUTE_UNUSED ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"pci_add not suppported in JSON mode\" ) ) ;\n return - 1 ;\n }"}
{"idx": 8073, "target": 0, "func": "static int gs_run_init_file ( gs_main_instance * minst , int * pexit_code , ref * perror_object ) {\n i_ctx_t * i_ctx_p = minst -> i_ctx_p ;\n ref ifile ;\n ref first_token ;\n int code ;\n scanner_state state ;\n gs_main_set_lib_paths ( minst ) ;\n code = gs_main_run_file_open ( minst , gs_init_file , & ifile ) ;\n if ( code < 0 ) {\n * pexit_code = 255 ;\n return code ;\n }\n gs_scanner_init ( & state , & ifile ) ;\n code = gs_scan_token ( i_ctx_p , & first_token , & state ) ;\n if ( code != 0 || ! r_has_type ( & first_token , t_integer ) ) {\n emprintf1 ( minst -> heap , \"Initialization file %s does not begin with an integer.\\n\" , gs_init_file ) ;\n * pexit_code = 255 ;\n return_error ( gs_error_Fatal ) ;\n }\n * ++ osp = first_token ;\n r_set_attrs ( & ifile , a_executable ) ;\n return gs_main_interpret ( minst , & ifile , minst -> user_errors , pexit_code , perror_object ) ;\n }"}
{"idx": 8074, "target": 0, "func": "static int dissect_s_validator_timeout_multiplier ( packet_info * pinfo , proto_tree * tree , proto_item * item , tvbuff_t * tvb , int offset , int total_len ) {\n int i , size ;\n proto_tree_add_item ( tree , hf_cip_svalidator_timeout_multiplier_size , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n size = tvb_get_guint8 ( tvb , offset ) ;\n if ( total_len < size + 1 ) {\n expert_add_info ( pinfo , item , & ei_mal_svalidator_timeout_multiplier ) ;\n return total_len ;\n }\n for ( i = 0 ;\n i < size ;\n i ++ ) {\n proto_tree_add_item ( tree , hf_cip_svalidator_timeout_multiplier_item , tvb , offset + 1 + i , 1 , ENC_LITTLE_ENDIAN ) ;\n }\n return ( size + 1 ) ;\n }"}
{"idx": 8075, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ExtensionPreferenceApiTest , MAYBE_Standard ) {\n PrefService * prefs = profile_ -> GetPrefs ( ) ;\n prefs -> SetBoolean ( prefs : : kAlternateErrorPagesEnabled , false ) ;\n prefs -> SetBoolean ( autofill : : prefs : : kAutofillEnabledDeprecated , false ) ;\n prefs -> SetBoolean ( autofill : : prefs : : kAutofillCreditCardEnabled , false ) ;\n prefs -> SetBoolean ( autofill : : prefs : : kAutofillProfileEnabled , false ) ;\n prefs -> SetBoolean ( prefs : : kBlockThirdPartyCookies , true ) ;\n prefs -> SetBoolean ( prefs : : kEnableHyperlinkAuditing , false ) ;\n prefs -> SetBoolean ( prefs : : kEnableReferrers , false ) ;\n prefs -> SetBoolean ( prefs : : kOfferTranslateEnabled , false ) ;\n prefs -> SetInteger ( prefs : : kNetworkPredictionOptions , chrome_browser_net : : NETWORK_PREDICTION_NEVER ) ;\n prefs -> SetBoolean ( password_manager : : prefs : : kCredentialsEnableService , false ) ;\n prefs -> SetBoolean ( prefs : : kSafeBrowsingEnabled , false ) ;\n prefs -> SetBoolean ( prefs : : kSearchSuggestEnabled , false ) ;\n prefs -> SetBoolean ( prefs : : kWebRTCMultipleRoutesEnabled , false ) ;\n prefs -> SetBoolean ( prefs : : kWebRTCNonProxiedUdpEnabled , false ) ;\n prefs -> SetString ( prefs : : kWebRTCIPHandlingPolicy , content : : kWebRTCIPHandlingDefaultPublicInterfaceOnly ) ;\n const char kExtensionPath [ ] = \"preference/standard\" ;\n EXPECT_TRUE ( RunExtensionSubtest ( kExtensionPath , \"test.html\" ) ) << message_ ;\n CheckPreferencesSet ( ) ;\n ReloadExtension ( last_loaded_extension_id ( ) ) ;\n CheckPreferencesSet ( ) ;\n extensions : : TestExtensionRegistryObserver observer ( extensions : : ExtensionRegistry : : Get ( profile_ ) , last_loaded_extension_id ( ) ) ;\n UninstallExtension ( last_loaded_extension_id ( ) ) ;\n observer . WaitForExtensionUninstalled ( ) ;\n CheckPreferencesCleared ( ) ;\n LoadExtension ( test_data_dir_ . AppendASCII ( kExtensionPath ) ) ;\n CheckPreferencesCleared ( ) ;\n }"}
{"idx": 8076, "target": 0, "func": "static CompositeOperator GIMPBlendModeToCompositeOperator ( size_t blendMode ) {\n switch ( blendMode ) {\n case GIMP_NORMAL_MODE : return ( OverCompositeOp ) ;\n case GIMP_DISSOLVE_MODE : return ( DissolveCompositeOp ) ;\n case GIMP_MULTIPLY_MODE : return ( MultiplyCompositeOp ) ;\n case GIMP_SCREEN_MODE : return ( ScreenCompositeOp ) ;\n case GIMP_OVERLAY_MODE : return ( OverlayCompositeOp ) ;\n case GIMP_DIFFERENCE_MODE : return ( DifferenceCompositeOp ) ;\n case GIMP_ADDITION_MODE : return ( ModulusAddCompositeOp ) ;\n case GIMP_SUBTRACT_MODE : return ( ModulusSubtractCompositeOp ) ;\n case GIMP_DARKEN_ONLY_MODE : return ( DarkenCompositeOp ) ;\n case GIMP_LIGHTEN_ONLY_MODE : return ( LightenCompositeOp ) ;\n case GIMP_HUE_MODE : return ( HueCompositeOp ) ;\n case GIMP_SATURATION_MODE : return ( SaturateCompositeOp ) ;\n case GIMP_COLOR_MODE : return ( ColorizeCompositeOp ) ;\n case GIMP_DODGE_MODE : return ( ColorDodgeCompositeOp ) ;\n case GIMP_BURN_MODE : return ( ColorBurnCompositeOp ) ;\n case GIMP_HARDLIGHT_MODE : return ( HardLightCompositeOp ) ;\n case GIMP_DIVIDE_MODE : return ( DivideDstCompositeOp ) ;\n case GIMP_BEHIND_MODE : return ( OverCompositeOp ) ;\n case GIMP_VALUE_MODE : return ( OverCompositeOp ) ;\n default : return ( OverCompositeOp ) ;\n }\n }"}
{"idx": 8077, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( BluetoothChooserBrowserTest , InvokeDialog_ConnectedBubble ) {\n set_status ( FakeBluetoothChooserController : : BluetoothStatus : : IDLE ) ;\n AddConnectedDevice ( ) ;\n RunDialog ( ) ;\n }"}
{"idx": 8078, "target": 0, "func": "static void get_str8 ( AVIOContext * pb , char * buf , int buf_size ) {\n get_strl ( pb , buf , buf_size , avio_r8 ( pb ) ) ;\n }"}
{"idx": 8079, "target": 0, "func": "static int ohci_service_iso_td ( OHCIState * ohci , struct ohci_ed * ed , int completion ) {\n int dir ;\n size_t len = 0 ;\n const char * str = NULL ;\n int pid ;\n int ret ;\n int i ;\n USBDevice * dev ;\n USBEndpoint * ep ;\n struct ohci_iso_td iso_td ;\n uint32_t addr ;\n uint16_t starting_frame ;\n int16_t relative_frame_number ;\n int frame_count ;\n uint32_t start_offset , next_offset , end_offset = 0 ;\n uint32_t start_addr , end_addr ;\n addr = ed -> head & OHCI_DPTR_MASK ;\n if ( ohci_read_iso_td ( ohci , addr , & iso_td ) ) {\n trace_usb_ohci_iso_td_read_failed ( addr ) ;\n ohci_die ( ohci ) ;\n return 1 ;\n }\n starting_frame = OHCI_BM ( iso_td . flags , TD_SF ) ;\n frame_count = OHCI_BM ( iso_td . flags , TD_FC ) ;\n relative_frame_number = USUB ( ohci -> frame_number , starting_frame ) ;\n trace_usb_ohci_iso_td_head ( ed -> head & OHCI_DPTR_MASK , ed -> tail & OHCI_DPTR_MASK , iso_td . flags , iso_td . bp , iso_td . next , iso_td . be , ohci -> frame_number , starting_frame , frame_count , relative_frame_number ) ;\n trace_usb_ohci_iso_td_head_offset ( iso_td . offset [ 0 ] , iso_td . offset [ 1 ] , iso_td . offset [ 2 ] , iso_td . offset [ 3 ] , iso_td . offset [ 4 ] , iso_td . offset [ 5 ] , iso_td . offset [ 6 ] , iso_td . offset [ 7 ] ) ;\n if ( relative_frame_number < 0 ) {\n trace_usb_ohci_iso_td_relative_frame_number_neg ( relative_frame_number ) ;\n return 1 ;\n }\n else if ( relative_frame_number > frame_count ) {\n trace_usb_ohci_iso_td_relative_frame_number_big ( relative_frame_number , frame_count ) ;\n OHCI_SET_BM ( iso_td . flags , TD_CC , OHCI_CC_DATAOVERRUN ) ;\n ed -> head &= ~ OHCI_DPTR_MASK ;\n ed -> head |= ( iso_td . next & OHCI_DPTR_MASK ) ;\n iso_td . next = ohci -> done ;\n ohci -> done = addr ;\n i = OHCI_BM ( iso_td . flags , TD_DI ) ;\n if ( i < ohci -> done_count ) ohci -> done_count = i ;\n if ( ohci_put_iso_td ( ohci , addr , & iso_td ) ) {\n ohci_die ( ohci ) ;\n return 1 ;\n }\n return 0 ;\n }\n dir = OHCI_BM ( ed -> flags , ED_D ) ;\n switch ( dir ) {\n case OHCI_TD_DIR_IN : str = \"in\" ;\n pid = USB_TOKEN_IN ;\n break ;\n case OHCI_TD_DIR_OUT : str = \"out\" ;\n pid = USB_TOKEN_OUT ;\n break ;\n case OHCI_TD_DIR_SETUP : str = \"setup\" ;\n pid = USB_TOKEN_SETUP ;\n break ;\n default : trace_usb_ohci_iso_td_bad_direction ( dir ) ;\n return 1 ;\n }\n if ( ! iso_td . bp || ! iso_td . be ) {\n trace_usb_ohci_iso_td_bad_bp_be ( iso_td . bp , iso_td . be ) ;\n return 1 ;\n }\n start_offset = iso_td . offset [ relative_frame_number ] ;\n next_offset = iso_td . offset [ relative_frame_number + 1 ] ;\n if ( ! ( OHCI_BM ( start_offset , TD_PSW_CC ) & 0xe ) || ( ( relative_frame_number < frame_count ) && ! ( OHCI_BM ( next_offset , TD_PSW_CC ) & 0xe ) ) ) {\n trace_usb_ohci_iso_td_bad_cc_not_accessed ( start_offset , next_offset ) ;\n return 1 ;\n }\n if ( ( relative_frame_number < frame_count ) && ( start_offset > next_offset ) ) {\n trace_usb_ohci_iso_td_bad_cc_overrun ( start_offset , next_offset ) ;\n return 1 ;\n }\n if ( ( start_offset & 0x1000 ) == 0 ) {\n start_addr = ( iso_td . bp & OHCI_PAGE_MASK ) | ( start_offset & OHCI_OFFSET_MASK ) ;\n }\n else {\n start_addr = ( iso_td . be & OHCI_PAGE_MASK ) | ( start_offset & OHCI_OFFSET_MASK ) ;\n }\n if ( relative_frame_number < frame_count ) {\n end_offset = next_offset - 1 ;\n if ( ( end_offset & 0x1000 ) == 0 ) {\n end_addr = ( iso_td . bp & OHCI_PAGE_MASK ) | ( end_offset & OHCI_OFFSET_MASK ) ;\n }\n else {\n end_addr = ( iso_td . be & OHCI_PAGE_MASK ) | ( end_offset & OHCI_OFFSET_MASK ) ;\n }\n }\n else {\n end_addr = iso_td . be ;\n }\n if ( ( start_addr & OHCI_PAGE_MASK ) != ( end_addr & OHCI_PAGE_MASK ) ) {\n len = ( end_addr & OHCI_OFFSET_MASK ) + 0x1001 - ( start_addr & OHCI_OFFSET_MASK ) ;\n }\n else {\n len = end_addr - start_addr + 1 ;\n }\n if ( len && dir != OHCI_TD_DIR_IN ) {\n if ( ohci_copy_iso_td ( ohci , start_addr , end_addr , ohci -> usb_buf , len , DMA_DIRECTION_TO_DEVICE ) ) {\n ohci_die ( ohci ) ;\n return 1 ;\n }\n }\n if ( ! completion ) {\n bool int_req = relative_frame_number == frame_count && OHCI_BM ( iso_td . flags , TD_DI ) == 0 ;\n dev = ohci_find_device ( ohci , OHCI_BM ( ed -> flags , ED_FA ) ) ;\n ep = usb_ep_get ( dev , pid , OHCI_BM ( ed -> flags , ED_EN ) ) ;\n usb_packet_setup ( & ohci -> usb_packet , pid , ep , 0 , addr , false , int_req ) ;\n usb_packet_addbuf ( & ohci -> usb_packet , ohci -> usb_buf , len ) ;\n usb_handle_packet ( dev , & ohci -> usb_packet ) ;\n if ( ohci -> usb_packet . status == USB_RET_ASYNC ) {\n usb_device_flush_ep_queue ( dev , ep ) ;\n return 1 ;\n }\n }\n if ( ohci -> usb_packet . status == USB_RET_SUCCESS ) {\n ret = ohci -> usb_packet . actual_length ;\n }\n else {\n ret = ohci -> usb_packet . status ;\n }\n trace_usb_ohci_iso_td_so ( start_offset , end_offset , start_addr , end_addr , str , len , ret ) ;\n if ( dir == OHCI_TD_DIR_IN && ret >= 0 && ret <= len ) {\n if ( ohci_copy_iso_td ( ohci , start_addr , end_addr , ohci -> usb_buf , ret , DMA_DIRECTION_FROM_DEVICE ) ) {\n ohci_die ( ohci ) ;\n return 1 ;\n }\n OHCI_SET_BM ( iso_td . offset [ relative_frame_number ] , TD_PSW_CC , OHCI_CC_NOERROR ) ;\n OHCI_SET_BM ( iso_td . offset [ relative_frame_number ] , TD_PSW_SIZE , ret ) ;\n }\n else if ( dir == OHCI_TD_DIR_OUT && ret == len ) {\n OHCI_SET_BM ( iso_td . offset [ relative_frame_number ] , TD_PSW_CC , OHCI_CC_NOERROR ) ;\n OHCI_SET_BM ( iso_td . offset [ relative_frame_number ] , TD_PSW_SIZE , 0 ) ;\n }\n else {\n if ( ret > ( ssize_t ) len ) {\n trace_usb_ohci_iso_td_data_overrun ( ret , len ) ;\n OHCI_SET_BM ( iso_td . offset [ relative_frame_number ] , TD_PSW_CC , OHCI_CC_DATAOVERRUN ) ;\n OHCI_SET_BM ( iso_td . offset [ relative_frame_number ] , TD_PSW_SIZE , len ) ;\n }\n else if ( ret >= 0 ) {\n trace_usb_ohci_iso_td_data_underrun ( ret ) ;\n OHCI_SET_BM ( iso_td . offset [ relative_frame_number ] , TD_PSW_CC , OHCI_CC_DATAUNDERRUN ) ;\n }\n else {\n switch ( ret ) {\n case USB_RET_IOERROR : case USB_RET_NODEV : OHCI_SET_BM ( iso_td . offset [ relative_frame_number ] , TD_PSW_CC , OHCI_CC_DEVICENOTRESPONDING ) ;\n OHCI_SET_BM ( iso_td . offset [ relative_frame_number ] , TD_PSW_SIZE , 0 ) ;\n break ;\n case USB_RET_NAK : case USB_RET_STALL : trace_usb_ohci_iso_td_nak ( ret ) ;\n OHCI_SET_BM ( iso_td . offset [ relative_frame_number ] , TD_PSW_CC , OHCI_CC_STALL ) ;\n OHCI_SET_BM ( iso_td . offset [ relative_frame_number ] , TD_PSW_SIZE , 0 ) ;\n break ;\n default : trace_usb_ohci_iso_td_bad_response ( ret ) ;\n OHCI_SET_BM ( iso_td . offset [ relative_frame_number ] , TD_PSW_CC , OHCI_CC_UNDEXPETEDPID ) ;\n break ;\n }\n }\n }\n if ( relative_frame_number == frame_count ) {\n OHCI_SET_BM ( iso_td . flags , TD_CC , OHCI_CC_NOERROR ) ;\n ed -> head &= ~ OHCI_DPTR_MASK ;\n ed -> head |= ( iso_td . next & OHCI_DPTR_MASK ) ;\n iso_td . next = ohci -> done ;\n ohci -> done = addr ;\n i = OHCI_BM ( iso_td . flags , TD_DI ) ;\n if ( i < ohci -> done_count ) ohci -> done_count = i ;\n }\n if ( ohci_put_iso_td ( ohci , addr , & iso_td ) ) {\n ohci_die ( ohci ) ;\n }\n return 1 ;\n }"}
{"idx": 8080, "target": 0, "func": "TSReturnCode TSMgmtStringGet ( const char * var_name , TSMgmtString * result ) {\n RecString tmp = nullptr ;\n ( void ) RecGetRecordString_Xmalloc ( ( char * ) var_name , & tmp ) ;\n if ( tmp ) {\n * result = tmp ;\n return TS_SUCCESS ;\n }\n return TS_ERROR ;\n }"}
{"idx": 8081, "target": 1, "func": "int X509_verify ( X509 * a , EVP_PKEY * r ) {\n return ( ASN1_item_verify ( ASN1_ITEM_rptr ( X509_CINF ) , a -> sig_alg , a -> signature , a -> cert_info , r ) ) ;\n }"}
{"idx": 8082, "target": 0, "func": "static void fast_cmyk_to_rgb ( fz_context * ctx , fz_pixmap * dst , fz_pixmap * src , fz_colorspace * prf , const fz_default_colorspaces * default_cs , const fz_color_params * color_params , int copy_spots ) {\n unsigned char * s = src -> samples ;\n unsigned char * d = dst -> samples ;\n size_t w = src -> w ;\n int h = src -> h ;\n int sn = src -> n ;\n int ss = src -> s ;\n int sa = src -> alpha ;\n int dn = dst -> n ;\n int ds = dst -> s ;\n int da = dst -> alpha ;\n ptrdiff_t d_line_inc = dst -> stride - w * dn ;\n ptrdiff_t s_line_inc = src -> stride - w * sn ;\n unsigned int C , M , Y , K ;\n unsigned char r , g , b ;\n if ( ( copy_spots && ss != ds ) || ( ! da && sa ) ) {\n assert ( \"This should never happen\" == NULL ) ;\n fz_throw ( ctx , FZ_ERROR_GENERIC , \"Cannot convert between incompatible pixmaps\" ) ;\n }\n if ( ( int ) w < 0 || h < 0 ) return ;\n C = 0 ;\n M = 0 ;\n Y = 0 ;\n K = 0 ;\n r = 255 ;\n g = 255 ;\n b = 255 ;\n if ( d_line_inc == 0 && s_line_inc == 0 ) {\n w *= h ;\n h = 1 ;\n }\n if ( ss == 0 && ds == 0 ) {\n if ( da ) {\n if ( sa ) {\n # ifdef ARCH_ARM if ( h == 1 ) {\n fast_cmyk_to_rgb_ARM ( d , s , w ) ;\n return ;\n }\n # endif while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n cached_cmyk_conv ( & r , & g , & b , & C , & M , & Y , & K , s [ 0 ] , s [ 1 ] , s [ 2 ] , s [ 3 ] ) ;\n d [ 0 ] = r ;\n d [ 1 ] = g ;\n d [ 2 ] = b ;\n d [ 3 ] = s [ 4 ] ;\n s += 5 ;\n d += 4 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n else {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n cached_cmyk_conv ( & r , & g , & b , & C , & M , & Y , & K , s [ 0 ] , s [ 1 ] , s [ 2 ] , s [ 3 ] ) ;\n d [ 0 ] = r ;\n d [ 1 ] = g ;\n d [ 2 ] = b ;\n d [ 3 ] = 255 ;\n s += 4 ;\n d += 4 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n }\n else {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n cached_cmyk_conv ( & r , & g , & b , & C , & M , & Y , & K , s [ 0 ] , s [ 1 ] , s [ 2 ] , s [ 3 ] ) ;\n d [ 0 ] = r ;\n d [ 1 ] = g ;\n d [ 2 ] = b ;\n s += 4 ;\n d += 3 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n }\n else if ( copy_spots ) {\n while ( h -- ) {\n int i ;\n size_t ww = w ;\n while ( ww -- ) {\n cached_cmyk_conv ( & r , & g , & b , & C , & M , & Y , & K , s [ 0 ] , s [ 1 ] , s [ 2 ] , s [ 3 ] ) ;\n d [ 0 ] = r ;\n d [ 1 ] = g ;\n d [ 2 ] = b ;\n s += 4 ;\n d += 3 ;\n for ( i = ss ;\n i > 0 ;\n i -- ) * d ++ = * s ++ ;\n if ( da ) * d ++ = sa ? * s ++ : 255 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n else {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n cached_cmyk_conv ( & r , & g , & b , & C , & M , & Y , & K , s [ 0 ] , s [ 1 ] , s [ 2 ] , s [ 3 ] ) ;\n d [ 0 ] = r ;\n d [ 1 ] = g ;\n d [ 2 ] = b ;\n s += sn ;\n d += dn ;\n if ( da ) d [ - 1 ] = sa ? s [ - 1 ] : 255 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n }"}
{"idx": 8083, "target": 0, "func": "static int read_channel_params ( MLPDecodeContext * m , unsigned int substr , GetBitContext * gbp , unsigned int ch ) {\n SubStream * s = & m -> substream [ substr ] ;\n ChannelParams * cp = & s -> channel_params [ ch ] ;\n FilterParams * fir = & cp -> filter_params [ FIR ] ;\n FilterParams * iir = & cp -> filter_params [ IIR ] ;\n int ret ;\n if ( s -> param_presence_flags & PARAM_FIR ) if ( get_bits1 ( gbp ) ) if ( ( ret = read_filter_params ( m , gbp , substr , ch , FIR ) ) < 0 ) return ret ;\n if ( s -> param_presence_flags & PARAM_IIR ) if ( get_bits1 ( gbp ) ) if ( ( ret = read_filter_params ( m , gbp , substr , ch , IIR ) ) < 0 ) return ret ;\n if ( fir -> order + iir -> order > 8 ) {\n av_log ( m -> avctx , AV_LOG_ERROR , \"Total filter orders too high.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( fir -> order && iir -> order && fir -> shift != iir -> shift ) {\n av_log ( m -> avctx , AV_LOG_ERROR , \"FIR and IIR filters must use the same precision.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ! fir -> order && iir -> order ) fir -> shift = iir -> shift ;\n if ( s -> param_presence_flags & PARAM_HUFFOFFSET ) if ( get_bits1 ( gbp ) ) cp -> huff_offset = get_sbits ( gbp , 15 ) ;\n cp -> codebook = get_bits ( gbp , 2 ) ;\n cp -> huff_lsbs = get_bits ( gbp , 5 ) ;\n if ( cp -> huff_lsbs > 24 ) {\n av_log ( m -> avctx , AV_LOG_ERROR , \"Invalid huff_lsbs.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n cp -> sign_huff_offset = calculate_sign_huff ( m , substr , ch ) ;\n return 0 ;\n }"}
{"idx": 8084, "target": 0, "func": "unsigned int TSrandom ( ) {\n return this_ethread ( ) -> generator . random ( ) ;\n }"}
{"idx": 8085, "target": 0, "func": "static void _doSetWithOids ( ArchiveHandle * AH , const bool withOids ) {\n PQExpBuffer cmd = createPQExpBuffer ( ) ;\n appendPQExpBuffer ( cmd , \"SET default_with_oids = %s;\n\" , withOids ? \"true\" : \"false\" ) ;\n if ( RestoringToDB ( AH ) ) {\n PGresult * res ;\n res = PQexec ( AH -> connection , cmd -> data ) ;\n if ( ! res || PQresultStatus ( res ) != PGRES_COMMAND_OK ) warn_or_exit_horribly ( AH , modulename , \"could not set default_with_oids: %s\" , PQerrorMessage ( AH -> connection ) ) ;\n PQclear ( res ) ;\n }\n else ahprintf ( AH , \"%s\\n\\n\" , cmd -> data ) ;\n destroyPQExpBuffer ( cmd ) ;\n }"}
{"idx": 8086, "target": 1, "func": "void vp8_mbpost_proc_across_ip_c ( unsigned char * src , int pitch , int rows , int cols , int flimit ) {\n int r , c , i ;\n unsigned char * s = src ;\n unsigned char d [ 16 ] ;\n for ( r = 0 ;\n r < rows ;\n r ++ ) {\n int sumsq = 0 ;\n int sum = 0 ;\n for ( i = - 8 ;\n i < 0 ;\n i ++ ) s [ i ] = s [ 0 ] ;\n for ( i = cols ;\n i < cols + 17 ;\n i ++ ) s [ i ] = s [ cols - 1 ] ;\n for ( i = - 8 ;\n i <= 6 ;\n i ++ ) {\n sumsq += s [ i ] * s [ i ] ;\n sum += s [ i ] ;\n d [ i + 8 ] = 0 ;\n }\n for ( c = 0 ;\n c < cols + 8 ;\n c ++ ) {\n int x = s [ c + 7 ] - s [ c - 8 ] ;\n int y = s [ c + 7 ] + s [ c - 8 ] ;\n sum += x ;\n sumsq += x * y ;\n d [ c & 15 ] = s [ c ] ;\n if ( sumsq * 15 - sum * sum < flimit ) {\n d [ c & 15 ] = ( 8 + sum + s [ c ] ) >> 4 ;\n }\n s [ c - 8 ] = d [ ( c - 8 ) & 15 ] ;\n }\n s += pitch ;\n }\n }"}
{"idx": 8087, "target": 0, "func": "int fz_colorspace_is_rgb ( fz_context * ctx , const fz_colorspace * cs ) {\n return cs && cs -> type == FZ_COLORSPACE_RGB ;\n }"}
{"idx": 8088, "target": 0, "func": "TSReturnCode TSHttpHdrStatusSet ( TSMBuffer bufp , TSMLoc obj , TSHttpStatus status ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_http_hdr_handle ( obj ) == TS_SUCCESS ) ;\n if ( ! isWriteable ( bufp ) ) {\n return TS_ERROR ;\n }\n HTTPHdr h ;\n SET_HTTP_HDR ( h , bufp , obj ) ;\n ink_assert ( h . m_http -> m_type == HDR_HEAP_OBJ_HTTP_HEADER ) ;\n h . status_set ( ( HTTPStatus ) status ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 8089, "target": 0, "func": "static int arith_get_bits ( ArithCoder * c , int bits ) {\n int range = c -> high - c -> low + 1 ;\n int val = ( ( ( c -> value - c -> low + 1 ) << bits ) - 1 ) / range ;\n int prob = range * val ;\n c -> high = ( ( prob + range ) >> bits ) + c -> low - 1 ;\n c -> low += prob >> bits ;\n arith_normalise ( c ) ;\n return val ;\n }"}
{"idx": 8090, "target": 0, "func": "static void pdf_run_cs ( fz_context * ctx , pdf_processor * proc , const char * name , fz_colorspace * colorspace ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pr -> dev -> flags &= ~ FZ_DEVFLAG_FILLCOLOR_UNDEFINED ;\n if ( ! strcmp ( name , \"Pattern\" ) ) pdf_set_pattern ( ctx , pr , PDF_FILL , NULL , NULL ) ;\n else pdf_set_colorspace ( ctx , pr , PDF_FILL , colorspace ) ;\n }"}
{"idx": 8091, "target": 1, "func": "static void _ASCIIToUnicodeWithOffsets ( UConverterToUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n const uint8_t * source , * sourceLimit ;\n UChar * target , * oldTarget ;\n int32_t targetCapacity , length ;\n int32_t * offsets ;\n int32_t sourceIndex ;\n uint8_t c ;\n source = ( const uint8_t * ) pArgs -> source ;\n sourceLimit = ( const uint8_t * ) pArgs -> sourceLimit ;\n target = oldTarget = pArgs -> target ;\n targetCapacity = ( int32_t ) ( pArgs -> targetLimit - pArgs -> target ) ;\n offsets = pArgs -> offsets ;\n sourceIndex = 0 ;\n length = ( int32_t ) ( sourceLimit - source ) ;\n if ( length < targetCapacity ) {\n targetCapacity = length ;\n }\n if ( targetCapacity >= 8 ) {\n int32_t count , loops ;\n UChar oredChars ;\n loops = count = targetCapacity >> 3 ;\n do {\n oredChars = target [ 0 ] = source [ 0 ] ;\n oredChars |= target [ 1 ] = source [ 1 ] ;\n oredChars |= target [ 2 ] = source [ 2 ] ;\n oredChars |= target [ 3 ] = source [ 3 ] ;\n oredChars |= target [ 4 ] = source [ 4 ] ;\n oredChars |= target [ 5 ] = source [ 5 ] ;\n oredChars |= target [ 6 ] = source [ 6 ] ;\n oredChars |= target [ 7 ] = source [ 7 ] ;\n if ( oredChars > 0x7f ) {\n break ;\n }\n source += 8 ;\n target += 8 ;\n }\n while ( -- count > 0 ) ;\n count = loops - count ;\n targetCapacity -= count * 8 ;\n if ( offsets != NULL ) {\n oldTarget += count * 8 ;\n while ( count > 0 ) {\n offsets [ 0 ] = sourceIndex ++ ;\n offsets [ 1 ] = sourceIndex ++ ;\n offsets [ 2 ] = sourceIndex ++ ;\n offsets [ 3 ] = sourceIndex ++ ;\n offsets [ 4 ] = sourceIndex ++ ;\n offsets [ 5 ] = sourceIndex ++ ;\n offsets [ 6 ] = sourceIndex ++ ;\n offsets [ 7 ] = sourceIndex ++ ;\n offsets += 8 ;\n -- count ;\n }\n }\n }\n c = 0 ;\n while ( targetCapacity > 0 && ( c = * source ++ ) <= 0x7f ) {\n * target ++ = c ;\n -- targetCapacity ;\n }\n if ( c > 0x7f ) {\n UConverter * cnv = pArgs -> converter ;\n cnv -> toUBytes [ 0 ] = c ;\n cnv -> toULength = 1 ;\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n }\n else if ( source < sourceLimit && target >= pArgs -> targetLimit ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n if ( offsets != NULL ) {\n size_t count = target - oldTarget ;\n while ( count > 0 ) {\n * offsets ++ = sourceIndex ++ ;\n -- count ;\n }\n }\n pArgs -> source = ( const char * ) source ;\n pArgs -> target = target ;\n pArgs -> offsets = offsets ;\n }"}
{"idx": 8092, "target": 0, "func": "void ff_set_qscale ( MpegEncContext * s , int qscale ) {\n if ( qscale < 1 ) qscale = 1 ;\n else if ( qscale > 31 ) qscale = 31 ;\n s -> qscale = qscale ;\n s -> chroma_qscale = s -> chroma_qscale_table [ qscale ] ;\n s -> y_dc_scale = s -> y_dc_scale_table [ qscale ] ;\n s -> c_dc_scale = s -> c_dc_scale_table [ s -> chroma_qscale ] ;\n }"}
{"idx": 8093, "target": 1, "func": "static const char * _UTF7GetName ( const UConverter * cnv ) {\n switch ( cnv -> fromUnicodeStatus >> 28 ) {\n case 1 : return \"UTF-7,version=1\" ;\n default : return \"UTF-7\" ;\n }\n }"}
{"idx": 8094, "target": 0, "func": "static int file_alloc_security ( struct file * file ) {\n struct file_security_struct * fsec ;\n u32 sid = current_sid ( ) ;\n fsec = kmem_cache_zalloc ( file_security_cache , GFP_KERNEL ) ;\n if ( ! fsec ) return - ENOMEM ;\n fsec -> sid = sid ;\n fsec -> fown_sid = sid ;\n file -> f_security = fsec ;\n return 0 ;\n }"}
{"idx": 8095, "target": 0, "func": "int i2d_EC_PUBKEY_bio ( BIO * bp , EC_KEY * ecdsa ) {\n return ASN1_i2d_bio_of ( EC_KEY , i2d_EC_PUBKEY , bp , ecdsa ) ;\n }"}
{"idx": 8096, "target": 0, "func": "static int kvm_put_msr_feature_control ( X86CPU * cpu ) {\n int ret ;\n if ( ! has_msr_feature_control ) {\n return 0 ;\n }\n ret = kvm_put_one_msr ( cpu , MSR_IA32_FEATURE_CONTROL , cpu -> env . msr_ia32_feature_control ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n assert ( ret == 1 ) ;\n return 0 ;\n }"}
{"idx": 8097, "target": 0, "func": "static bool GetQueryResult ( PGconn * conn , const char * progname ) {\n PGresult * result ;\n SetCancelConn ( conn ) ;\n while ( ( result = PQgetResult ( conn ) ) != NULL ) {\n if ( PQresultStatus ( result ) != PGRES_COMMAND_OK ) {\n char * sqlState = PQresultErrorField ( result , PG_DIAG_SQLSTATE ) ;\n fprintf ( stderr , _ ( \"%s: vacuuming of database \\\"%s\\\" failed: %s\" ) , progname , PQdb ( conn ) , PQerrorMessage ( conn ) ) ;\n if ( sqlState && strcmp ( sqlState , ERRCODE_UNDEFINED_TABLE ) != 0 ) {\n PQclear ( result ) ;\n return false ;\n }\n }\n PQclear ( result ) ;\n }\n ResetCancelConn ( ) ;\n return true ;\n }"}
{"idx": 8098, "target": 0, "func": "void PNGAPI png_set_sCAL ( png_structp png_ptr , png_infop info_ptr , int unit , double width , double height ) {\n png_debug1 ( 1 , \"in %s storage function\" , \"sCAL\" ) ;\n if ( png_ptr == NULL || info_ptr == NULL ) return ;\n info_ptr -> scal_unit = ( png_byte ) unit ;\n info_ptr -> scal_pixel_width = width ;\n info_ptr -> scal_pixel_height = height ;\n info_ptr -> valid |= PNG_INFO_sCAL ;\n }"}
{"idx": 8099, "target": 0, "func": "static int dissect_udvm_multitype_operand ( tvbuff_t * udvm_tvb , proto_tree * sigcomp_udvm_tree , gint offset , gboolean is_addr _U_ , gint * start_offset , guint16 * value , gboolean * is_memory_address ) {\n guint bytecode ;\n guint display_bytecode ;\n guint16 operand ;\n guint32 result ;\n guint test_bits ;\n * is_memory_address = FALSE ;\n bytecode = tvb_get_guint8 ( udvm_tvb , offset ) ;\n test_bits = ( bytecode & 0xc0 ) >> 6 ;\n switch ( test_bits ) {\n case 0 : display_bytecode = bytecode & 0xc0 ;\n if ( display_udvm_bytecode ) proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_multitype_bytecode , udvm_tvb , offset , 1 , display_bytecode ) ;\n operand = ( bytecode & 0x3f ) ;\n * value = operand ;\n * start_offset = offset ;\n offset ++ ;\n break ;\n case 1 : display_bytecode = bytecode & 0xc0 ;\n if ( display_udvm_bytecode ) proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_multitype_bytecode , udvm_tvb , offset , 1 , display_bytecode ) ;\n operand = ( bytecode & 0x3f ) * 2 ;\n * is_memory_address = TRUE ;\n * value = operand ;\n * start_offset = offset ;\n offset ++ ;\n break ;\n case 2 : test_bits = ( bytecode & 0xe0 ) >> 5 ;\n if ( test_bits == 5 ) {\n display_bytecode = bytecode & 0xe0 ;\n if ( display_udvm_bytecode ) proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_multitype_bytecode , udvm_tvb , offset , 1 , display_bytecode ) ;\n operand = tvb_get_ntohs ( udvm_tvb , offset ) & 0x1fff ;\n * value = operand ;\n * start_offset = offset ;\n offset = offset + 2 ;\n }\n else {\n test_bits = ( bytecode & 0xf0 ) >> 4 ;\n if ( test_bits == 9 ) {\n display_bytecode = bytecode & 0xf0 ;\n if ( display_udvm_bytecode ) proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_multitype_bytecode , udvm_tvb , offset , 1 , display_bytecode ) ;\n operand = ( tvb_get_ntohs ( udvm_tvb , offset ) & 0x0fff ) + 61440 ;\n * start_offset = offset ;\n * value = operand ;\n offset = offset + 2 ;\n }\n else {\n test_bits = ( bytecode & 0x08 ) >> 3 ;\n if ( test_bits == 1 ) {\n display_bytecode = bytecode & 0xf8 ;\n if ( display_udvm_bytecode ) proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_multitype_bytecode , udvm_tvb , offset , 1 , display_bytecode ) ;\n result = ( guint32 ) pow ( 2 , ( bytecode & 0x07 ) + 8 ) ;\n operand = result & 0xffff ;\n * start_offset = offset ;\n * value = operand ;\n offset ++ ;\n }\n else {\n test_bits = ( bytecode & 0x0e ) >> 1 ;\n if ( test_bits == 3 ) {\n display_bytecode = bytecode & 0xfe ;\n if ( display_udvm_bytecode ) proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_multitype_bytecode , udvm_tvb , offset , 1 , display_bytecode ) ;\n result = ( guint32 ) pow ( 2 , ( bytecode & 0x01 ) + 6 ) ;\n operand = result & 0xffff ;\n * start_offset = offset ;\n * value = operand ;\n offset ++ ;\n }\n else {\n display_bytecode = bytecode ;\n if ( display_udvm_bytecode ) proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_multitype_bytecode , udvm_tvb , offset , 1 , display_bytecode ) ;\n if ( ( bytecode & 0x01 ) == 1 ) * is_memory_address = TRUE ;\n offset ++ ;\n operand = tvb_get_ntohs ( udvm_tvb , offset ) ;\n * value = operand ;\n * start_offset = offset ;\n offset = offset + 2 ;\n }\n }\n }\n }\n break ;\n case 3 : test_bits = ( bytecode & 0x20 ) >> 5 ;\n if ( test_bits == 1 ) {\n display_bytecode = bytecode & 0xe0 ;\n if ( display_udvm_bytecode ) proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_multitype_bytecode , udvm_tvb , offset , 1 , display_bytecode ) ;\n operand = ( bytecode & 0x1f ) + 65504 ;\n * start_offset = offset ;\n * value = operand ;\n offset ++ ;\n }\n else {\n display_bytecode = bytecode & 0xe0 ;\n if ( display_udvm_bytecode ) proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_multitype_bytecode , udvm_tvb , offset , 1 , display_bytecode ) ;\n operand = ( tvb_get_ntohs ( udvm_tvb , offset ) & 0x1fff ) ;\n * is_memory_address = TRUE ;\n * start_offset = offset ;\n * value = operand ;\n offset = offset + 2 ;\n }\n default : break ;\n }\n return offset ;\n }"}
{"idx": 8100, "target": 0, "func": "static int dissect_rsl_ie_smscb_ch_ind ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_tree * ie_tree ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_SMSCB_CH_IND ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_ie_smscb_ch_ind , NULL , \"SMSCB Channel Indicator IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_ch_ind , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n return offset ;\n }"}
{"idx": 8101, "target": 0, "func": "static int best_effort_strncat_from_utf16 ( struct archive_string * as , const void * _p , size_t bytes , struct archive_string_conv * sc , int be ) {\n const char * utf16 = ( const char * ) _p ;\n char * mbs ;\n uint32_t uc ;\n int n , ret ;\n ( void ) sc ;\n ret = 0 ;\n if ( archive_string_ensure ( as , as -> length + bytes + 1 ) == NULL ) return ( - 1 ) ;\n mbs = as -> s + as -> length ;\n while ( ( n = utf16_to_unicode ( & uc , utf16 , bytes , be ) ) != 0 ) {\n if ( n < 0 ) {\n n *= - 1 ;\n ret = - 1 ;\n }\n bytes -= n ;\n utf16 += n ;\n if ( uc > 127 ) {\n * mbs ++ = '?' ;\n ret = - 1 ;\n }\n else * mbs ++ = ( char ) uc ;\n }\n as -> length = mbs - as -> s ;\n as -> s [ as -> length ] = '\\0' ;\n return ( ret ) ;\n }"}
{"idx": 8102, "target": 0, "func": "static int selinux_inode_setsecurity ( struct inode * inode , const char * name , const void * value , size_t size , int flags ) {\n struct inode_security_struct * isec = inode_security_novalidate ( inode ) ;\n u32 newsid ;\n int rc ;\n if ( strcmp ( name , XATTR_SELINUX_SUFFIX ) ) return - EOPNOTSUPP ;\n if ( ! value || ! size ) return - EACCES ;\n rc = security_context_to_sid ( value , size , & newsid , GFP_KERNEL ) ;\n if ( rc ) return rc ;\n spin_lock ( & isec -> lock ) ;\n isec -> sclass = inode_mode_to_security_class ( inode -> i_mode ) ;\n isec -> sid = newsid ;\n isec -> initialized = LABEL_INITIALIZED ;\n spin_unlock ( & isec -> lock ) ;\n return 0 ;\n }"}
{"idx": 8103, "target": 0, "func": "static int s390_virtio_busdev_init ( DeviceState * dev , DeviceInfo * info ) {\n VirtIOS390DeviceInfo * _info = ( VirtIOS390DeviceInfo * ) info ;\n VirtIOS390Device * _dev = ( VirtIOS390Device * ) dev ;\n return _info -> init ( _dev ) ;\n }"}
{"idx": 8104, "target": 0, "func": "static int writer_open ( WriterContext * * wctx , const Writer * writer , const char * args , const struct section * sections , int nb_sections ) {\n int i , ret = 0 ;\n if ( ! ( * wctx = av_mallocz ( sizeof ( WriterContext ) ) ) ) {\n ret = AVERROR ( ENOMEM ) ;\n goto fail ;\n }\n if ( ! ( ( * wctx ) -> priv = av_mallocz ( writer -> priv_size ) ) ) {\n ret = AVERROR ( ENOMEM ) ;\n goto fail ;\n }\n ( * wctx ) -> class = & writer_class ;\n ( * wctx ) -> writer = writer ;\n ( * wctx ) -> level = - 1 ;\n ( * wctx ) -> sections = sections ;\n ( * wctx ) -> nb_sections = nb_sections ;\n av_opt_set_defaults ( * wctx ) ;\n if ( writer -> priv_class ) {\n void * priv_ctx = ( * wctx ) -> priv ;\n * ( ( const AVClass * * ) priv_ctx ) = writer -> priv_class ;\n av_opt_set_defaults ( priv_ctx ) ;\n }\n if ( args ) {\n AVDictionary * opts = NULL ;\n AVDictionaryEntry * opt = NULL ;\n if ( ( ret = av_dict_parse_string ( & opts , args , \"=\" , \":\" , 0 ) ) < 0 ) {\n av_log ( * wctx , AV_LOG_ERROR , \"Failed to parse option string '%s' provided to writer context\\n\" , args ) ;\n av_dict_free ( & opts ) ;\n goto fail ;\n }\n while ( ( opt = av_dict_get ( opts , \"\" , opt , AV_DICT_IGNORE_SUFFIX ) ) ) {\n if ( ( ret = av_opt_set ( * wctx , opt -> key , opt -> value , AV_OPT_SEARCH_CHILDREN ) ) < 0 ) {\n av_log ( * wctx , AV_LOG_ERROR , \"Failed to set option '%s' with value '%s' provided to writer context\\n\" , opt -> key , opt -> value ) ;\n av_dict_free ( & opts ) ;\n goto fail ;\n }\n }\n av_dict_free ( & opts ) ;\n }\n {\n const uint8_t * p = ( * wctx ) -> string_validation_replacement ;\n const uint8_t * endp = p + strlen ( p ) ;\n while ( * p ) {\n const uint8_t * p0 = p ;\n int32_t code ;\n ret = av_utf8_decode ( & code , & p , endp , ( * wctx ) -> string_validation_utf8_flags ) ;\n if ( ret < 0 ) {\n AVBPrint bp ;\n av_bprint_init ( & bp , 0 , AV_BPRINT_SIZE_AUTOMATIC ) ;\n bprint_bytes ( & bp , p0 , p - p0 ) , av_log ( wctx , AV_LOG_ERROR , \"Invalid UTF8 sequence %s found in string validation replace '%s'\\n\" , bp . str , ( * wctx ) -> string_validation_replacement ) ;\n return ret ;\n }\n }\n }\n for ( i = 0 ;\n i < SECTION_MAX_NB_LEVELS ;\n i ++ ) av_bprint_init ( & ( * wctx ) -> section_pbuf [ i ] , 1 , AV_BPRINT_SIZE_UNLIMITED ) ;\n if ( ( * wctx ) -> writer -> init ) ret = ( * wctx ) -> writer -> init ( * wctx ) ;\n if ( ret < 0 ) goto fail ;\n return 0 ;\n fail : writer_close ( wctx ) ;\n return ret ;\n }"}
{"idx": 8105, "target": 0, "func": "static float tilt_factor ( float * lpc_n , float * lpc_d ) {\n float rh0 , rh1 ;\n float impulse_buffer [ LP_FILTER_ORDER + AMR_TILT_RESPONSE ] = {\n 0 }\n ;\n float * hf = impulse_buffer + LP_FILTER_ORDER ;\n hf [ 0 ] = 1.0 ;\n memcpy ( hf + 1 , lpc_n , sizeof ( float ) * LP_FILTER_ORDER ) ;\n ff_celp_lp_synthesis_filterf ( hf , lpc_d , hf , AMR_TILT_RESPONSE , LP_FILTER_ORDER ) ;\n rh0 = avpriv_scalarproduct_float_c ( hf , hf , AMR_TILT_RESPONSE ) ;\n rh1 = avpriv_scalarproduct_float_c ( hf , hf + 1 , AMR_TILT_RESPONSE - 1 ) ;\n return rh1 >= 0.0 ? rh1 / rh0 * AMR_TILT_GAMMA_T : 0.0 ;\n }"}
{"idx": 8106, "target": 0, "func": "uint32_t mt_random ( mtrand * mt ) {\n uint32_t y ;\n unsigned long mag01 [ 2 ] ;\n mag01 [ 0 ] = 0 ;\n mag01 [ 1 ] = MATRIX_A ;\n if ( mt -> mt_index_ >= MT_LEN ) {\n int kk ;\n for ( kk = 0 ;\n kk < MT_LEN - MT_IA ;\n kk ++ ) {\n y = ( mt -> mt_buffer_ [ kk ] & UPPER_MASK ) | ( mt -> mt_buffer_ [ kk + 1 ] & LOWER_MASK ) ;\n mt -> mt_buffer_ [ kk ] = mt -> mt_buffer_ [ kk + MT_IA ] ^ ( y >> 1 ) ^ mag01 [ y & 0x1UL ] ;\n }\n for ( ;\n kk < MT_LEN - 1 ;\n kk ++ ) {\n y = ( mt -> mt_buffer_ [ kk ] & UPPER_MASK ) | ( mt -> mt_buffer_ [ kk + 1 ] & LOWER_MASK ) ;\n mt -> mt_buffer_ [ kk ] = mt -> mt_buffer_ [ kk + ( MT_IA - MT_LEN ) ] ^ ( y >> 1 ) ^ mag01 [ y & 0x1UL ] ;\n }\n y = ( mt -> mt_buffer_ [ MT_LEN - 1 ] & UPPER_MASK ) | ( mt -> mt_buffer_ [ 0 ] & LOWER_MASK ) ;\n mt -> mt_buffer_ [ MT_LEN - 1 ] = mt -> mt_buffer_ [ MT_IA - 1 ] ^ ( y >> 1 ) ^ mag01 [ y & 0x1UL ] ;\n mt -> mt_index_ = 0 ;\n }\n y = mt -> mt_buffer_ [ mt -> mt_index_ ++ ] ;\n y ^= ( y >> 11 ) ;\n y ^= ( y << 7 ) & 0x9d2c5680UL ;\n y ^= ( y << 15 ) & 0xefc60000UL ;\n y ^= ( y >> 18 ) ;\n return y ;\n }"}
{"idx": 8107, "target": 0, "func": "static Dwarf_Bool is_64bit_abs_reloc ( unsigned int type , Dwarf_Half machine ) {\n Dwarf_Bool r = 0 ;\n switch ( machine ) {\n # if defined ( EM_MIPS ) && defined ( R_MIPS_64 ) case EM_MIPS : r = ( 0 # if defined ( R_MIPS_64 ) | ( type == R_MIPS_64 ) # endif # if defined ( R_MIPS_32 ) | ( type == R_MIPS_32 ) # endif # if defined ( R_MIPS_TLS_DTPREL64 ) | ( type == R_MIPS_TLS_DTPREL64 ) # endif ) ;\n break ;\n # endif # if defined ( EM_SPARC32PLUS ) && defined ( R_SPARC_UA64 ) case EM_SPARC32PLUS : r = ( type == R_SPARC_UA64 ) ;\n break ;\n # endif # if defined ( EM_SPARCV9 ) && defined ( R_SPARC_UA64 ) case EM_SPARCV9 : r = ( 0 # if defined ( R_SPARC_UA64 ) | ( type == R_SPARC_UA64 ) # endif # if defined ( R_SPARC_TLS_DTPOFF64 ) | ( type == R_SPARC_TLS_DTPOFF64 ) # endif ) ;\n break ;\n # endif # if defined ( EM_SPARC ) && defined ( R_SPARC_UA64 ) case EM_SPARC : r = ( 0 # if defined ( R_SPARC_UA64 ) | ( type == R_SPARC_UA64 ) # endif # if defined ( R_SPARC_TLS_DTPOFF64 ) | ( type == R_SPARC_TLS_DTPOFF64 ) # endif ) ;\n break ;\n # endif # if defined ( EM_IA_64 ) && defined ( R_IA64_SECREL64LSB ) case EM_IA_64 : r = ( 0 # if defined ( R_IA64_SECREL64LSB ) | ( type == R_IA64_SECREL64LSB ) # endif # if defined ( R_IA64_SECREL32LSB ) | ( type == R_IA64_SECREL32LSB ) # endif # if defined ( R_IA64_DIR64LSB ) | ( type == R_IA64_DIR64LSB ) # endif # if defined ( R_IA64_DTPREL64LSB ) | ( type == R_IA64_DTPREL64LSB ) # endif # if defined ( R_IA64_REL32LSB ) | ( type == R_IA64_REL32LSB ) # endif ) ;\n break ;\n # endif # if defined ( EM_PPC64 ) && defined ( R_PPC64_ADDR64 ) case EM_PPC64 : r = ( 0 # if defined ( R_PPC64_ADDR64 ) | ( type == R_PPC64_ADDR64 ) # endif # if defined ( R_PPC64_DTPREL64 ) | ( type == R_PPC64_DTPREL64 ) # endif ) ;\n break ;\n # endif # if defined ( EM_S390 ) && defined ( R_390_64 ) case EM_S390 : r = ( 0 # if defined ( R_390_64 ) | ( type == R_390_64 ) # endif # if defined ( R_390_TLS_LDO64 ) | ( type == R_390_TLS_LDO64 ) # endif ) ;\n break ;\n # endif # if defined ( EM_X86_64 ) && defined ( R_X86_64_64 ) # if defined ( EM_K10M ) case EM_K10M : # endif # if defined ( EM_L10M ) case EM_L10M : # endif case EM_X86_64 : r = ( 0 # if defined ( R_X86_64_64 ) | ( type == R_X86_64_64 ) # endif # if defined ( R_X86_64_DTPOFF32 ) | ( type == R_X86_64_DTPOFF64 ) # endif ) ;\n break ;\n # endif # if defined ( EM_AARCH64 ) && defined ( R_AARCH64_ABS64 ) case EM_AARCH64 : r = ( 0 # if defined ( R_AARCH64_ABS64 ) | ( type == R_AARCH64_ABS64 ) # endif ) ;\n break ;\n # endif }\n return r ;\n }"}
{"idx": 8108, "target": 0, "func": "static int h264_set_parameter_from_sps ( H264Context * h ) {\n if ( h -> flags & CODEC_FLAG_LOW_DELAY || ( h -> sps . bitstream_restriction_flag && ! h -> sps . num_reorder_frames ) ) {\n if ( h -> avctx -> has_b_frames > 1 || h -> delayed_pic [ 0 ] ) av_log ( h -> avctx , AV_LOG_WARNING , \"Delayed frames seen. \" \"Reenabling low delay requires a codec flush.\\n\" ) ;\n else h -> low_delay = 1 ;\n }\n if ( h -> avctx -> has_b_frames < 2 ) h -> avctx -> has_b_frames = ! h -> low_delay ;\n if ( h -> sps . bit_depth_luma != h -> sps . bit_depth_chroma ) {\n avpriv_request_sample ( h -> avctx , \"Different chroma and luma bit depth\" ) ;\n return AVERROR_PATCHWELCOME ;\n }\n if ( h -> avctx -> bits_per_raw_sample != h -> sps . bit_depth_luma || h -> cur_chroma_format_idc != h -> sps . chroma_format_idc ) {\n if ( h -> avctx -> codec && h -> avctx -> codec -> capabilities & CODEC_CAP_HWACCEL_VDPAU && ( h -> sps . bit_depth_luma != 8 || h -> sps . chroma_format_idc > 1 ) ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"VDPAU decoding does not support video colorspace.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( h -> sps . bit_depth_luma >= 8 && h -> sps . bit_depth_luma <= 14 && h -> sps . bit_depth_luma != 11 && h -> sps . bit_depth_luma != 13 ) {\n h -> avctx -> bits_per_raw_sample = h -> sps . bit_depth_luma ;\n h -> cur_chroma_format_idc = h -> sps . chroma_format_idc ;\n h -> pixel_shift = h -> sps . bit_depth_luma > 8 ;\n ff_h264dsp_init ( & h -> h264dsp , h -> sps . bit_depth_luma , h -> sps . chroma_format_idc ) ;\n ff_h264chroma_init ( & h -> h264chroma , h -> sps . bit_depth_chroma ) ;\n ff_h264qpel_init ( & h -> h264qpel , h -> sps . bit_depth_luma ) ;\n ff_h264_pred_init ( & h -> hpc , h -> avctx -> codec_id , h -> sps . bit_depth_luma , h -> sps . chroma_format_idc ) ;\n if ( CONFIG_ERROR_RESILIENCE ) ff_dsputil_init ( & h -> dsp , h -> avctx ) ;\n ff_videodsp_init ( & h -> vdsp , h -> sps . bit_depth_luma ) ;\n }\n else {\n av_log ( h -> avctx , AV_LOG_ERROR , \"Unsupported bit depth: %d\\n\" , h -> sps . bit_depth_luma ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n return 0 ;\n }"}
{"idx": 8109, "target": 0, "func": "static void kwajd_close ( struct mskwaj_decompressor * base , struct mskwajd_header * hdr ) {\n struct mskwaj_decompressor_p * self = ( struct mskwaj_decompressor_p * ) base ;\n struct mskwajd_header_p * hdr_p = ( struct mskwajd_header_p * ) hdr ;\n if ( ! self || ! self -> system ) return ;\n self -> system -> close ( hdr_p -> fh ) ;\n self -> system -> free ( hdr ) ;\n self -> error = MSPACK_ERR_OK ;\n }"}
{"idx": 8110, "target": 0, "func": "static inline void rm_ac3_swap_bytes ( AVStream * st , AVPacket * pkt ) {\n uint8_t * ptr ;\n int j ;\n if ( st -> codecpar -> codec_id == AV_CODEC_ID_AC3 ) {\n ptr = pkt -> data ;\n for ( j = 0 ;\n j < pkt -> size ;\n j += 2 ) {\n FFSWAP ( int , ptr [ 0 ] , ptr [ 1 ] ) ;\n ptr += 2 ;\n }\n }\n }"}
{"idx": 8111, "target": 0, "func": "static void ehci_data_class_init ( ObjectClass * klass , void * data ) {\n PCIDeviceClass * k = PCI_DEVICE_CLASS ( klass ) ;\n DeviceClass * dc = DEVICE_CLASS ( klass ) ;\n EHCIPCIInfo * i = data ;\n k -> vendor_id = i -> vendor_id ;\n k -> device_id = i -> device_id ;\n k -> revision = i -> revision ;\n set_bit ( DEVICE_CATEGORY_USB , dc -> categories ) ;\n if ( i -> companion ) {\n dc -> hotpluggable = false ;\n }\n }"}
{"idx": 8112, "target": 0, "func": "static int decode_exponents ( GetBitContext * gbc , int exp_strategy , int ngrps , uint8_t absexp , int8_t * dexps ) {\n int i , j , grp , group_size ;\n int dexp [ 256 ] ;\n int expacc , prevexp ;\n group_size = exp_strategy + ( exp_strategy == EXP_D45 ) ;\n for ( grp = 0 , i = 0 ;\n grp < ngrps ;\n grp ++ ) {\n expacc = get_bits ( gbc , 7 ) ;\n dexp [ i ++ ] = ungroup_3_in_7_bits_tab [ expacc ] [ 0 ] ;\n dexp [ i ++ ] = ungroup_3_in_7_bits_tab [ expacc ] [ 1 ] ;\n dexp [ i ++ ] = ungroup_3_in_7_bits_tab [ expacc ] [ 2 ] ;\n }\n prevexp = absexp ;\n for ( i = 0 , j = 0 ;\n i < ngrps * 3 ;\n i ++ ) {\n prevexp += dexp [ i ] - 2 ;\n if ( prevexp > 24U ) return - 1 ;\n switch ( group_size ) {\n case 4 : dexps [ j ++ ] = prevexp ;\n dexps [ j ++ ] = prevexp ;\n case 2 : dexps [ j ++ ] = prevexp ;\n case 1 : dexps [ j ++ ] = prevexp ;\n }\n }\n return 0 ;\n }"}
{"idx": 8113, "target": 0, "func": "static void test_subqueries ( ) {\n MYSQL_STMT * stmt ;\n int rc , i ;\n const char * query = \"SELECT (SELECT SUM(a+b) FROM t2 where t1.b=t2.b GROUP BY t1.a LIMIT 1) as scalar_s, exists (select 1 from t2 where t2.a/2=t1.a) as exists_s, a in (select a+3 from t2) as in_s, (a-1, b-1) in (select a, b from t2) as in_row_s FROM t1, (select a x, b y from t2) tt WHERE x=a\" ;\n myheader ( \"test_subqueries\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS t1, t2\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE t1 (a int , b int);\n\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t1 values (1, 1), (2, 2), (3, 3), (4, 4), (5, 5);\n\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t2 select * from t1;\n\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( rc == 5 ) ;\n }\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"DROP TABLE t1, t2\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 8114, "target": 0, "func": "size_t _TSstrlcat ( char * dst , const char * str , size_t siz ) {\n return ink_strlcat ( dst , str , siz ) ;\n }"}
{"idx": 8115, "target": 0, "func": "static int usbfs_increase_memory_usage ( unsigned amount ) {\n unsigned lim ;\n lim = ACCESS_ONCE ( usbfs_memory_mb ) ;\n if ( lim == 0 || lim > ( USBFS_XFER_MAX >> 20 ) ) lim = USBFS_XFER_MAX ;\n else lim <<= 20 ;\n atomic_add ( amount , & usbfs_memory_usage ) ;\n if ( atomic_read ( & usbfs_memory_usage ) <= lim ) return 0 ;\n atomic_sub ( amount , & usbfs_memory_usage ) ;\n return - ENOMEM ;\n }"}
{"idx": 8116, "target": 0, "func": "void TSHttpAltInfoQualitySet ( TSHttpAltInfo infop , float quality ) {\n sdk_assert ( sdk_sanity_check_alt_info ( infop ) == TS_SUCCESS ) ;\n HttpAltInfo * info = ( HttpAltInfo * ) infop ;\n info -> m_qvalue = quality ;\n }"}
{"idx": 8117, "target": 0, "func": "static int dissect_usb_video_endpoint_descriptor ( proto_tree * parent_tree , tvbuff_t * tvb , guint8 descriptor_len ) {\n proto_tree * tree = NULL ;\n int offset = 0 ;\n guint8 subtype ;\n subtype = tvb_get_guint8 ( tvb , offset + 2 ) ;\n if ( parent_tree ) {\n const gchar * subtype_str ;\n subtype_str = val_to_str ( subtype , vc_ep_descriptor_subtypes , \"Unknown (0x%x)\" ) ;\n tree = proto_tree_add_subtree_format ( parent_tree , tvb , offset , descriptor_len , ett_descriptor_video_endpoint , NULL , \"VIDEO CONTROL ENDPOINT DESCRIPTOR [%s]\" , subtype_str ) ;\n }\n dissect_usb_descriptor_header ( tree , tvb , offset , & vid_descriptor_type_vals_ext ) ;\n proto_tree_add_item ( tree , hf_usb_vid_epdesc_subtype , tvb , offset + 2 , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n if ( subtype == EP_INTERRUPT ) {\n proto_tree_add_item ( tree , hf_usb_vid_epdesc_max_transfer_sz , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( offset < descriptor_len ) proto_tree_add_item ( tree , hf_usb_vid_descriptor_data , tvb , offset , descriptor_len - offset , ENC_NA ) ;\n return descriptor_len ;\n }"}
{"idx": 8118, "target": 0, "func": "int jbig2_decode_halftone_region ( Jbig2Ctx * ctx , Jbig2Segment * segment , Jbig2HalftoneRegionParams * params , const byte * data , const size_t size , Jbig2Image * image , Jbig2ArithCx * GB_stats ) {\n uint32_t HBPP ;\n uint32_t HNUMPATS ;\n uint8_t * * GI ;\n Jbig2Image * HSKIP = NULL ;\n Jbig2PatternDict * HPATS ;\n uint32_t i ;\n uint32_t mg , ng ;\n int32_t x , y ;\n uint8_t gray_val ;\n memset ( image -> data , params -> HDEFPIXEL , image -> stride * image -> height ) ;\n if ( params -> HENABLESKIP == 1 ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"unhandled option HENABLESKIP\" ) ;\n }\n HPATS = jbig2_decode_ht_region_get_hpats ( ctx , segment ) ;\n if ( ! HPATS ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"no pattern dictionary found, skipping halftone image\" ) ;\n return - 1 ;\n }\n HNUMPATS = HPATS -> n_patterns ;\n HBPP = 0 ;\n while ( HNUMPATS > ( 1U << ++ HBPP ) ) ;\n GI = jbig2_decode_gray_scale_image ( ctx , segment , data , size , params -> HMMR , params -> HGW , params -> HGH , HBPP , params -> HENABLESKIP , HSKIP , params -> HTEMPLATE , GB_stats ) ;\n if ( ! GI ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"unable to acquire gray-scale image, skipping halftone image\" ) ;\n return - 1 ;\n }\n for ( mg = 0 ;\n mg < params -> HGH ;\n ++ mg ) {\n for ( ng = 0 ;\n ng < params -> HGW ;\n ++ ng ) {\n x = ( params -> HGX + mg * params -> HRY + ng * params -> HRX ) >> 8 ;\n y = ( params -> HGY + mg * params -> HRX - ng * params -> HRY ) >> 8 ;\n gray_val = GI [ ng ] [ mg ] ;\n if ( gray_val >= HNUMPATS ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"gray-scale image uses value %d which larger than pattern dictionary\" , gray_val ) ;\n gray_val = HNUMPATS - 1 ;\n }\n jbig2_image_compose ( ctx , image , HPATS -> patterns [ gray_val ] , x , y , params -> op ) ;\n }\n }\n for ( i = 0 ;\n i < params -> HGW ;\n ++ i ) {\n jbig2_free ( ctx -> allocator , GI [ i ] ) ;\n }\n jbig2_free ( ctx -> allocator , GI ) ;\n return 0 ;\n }"}
{"idx": 8119, "target": 0, "func": "void free_sums ( struct sum_struct * s ) {\n if ( s -> sums ) free ( s -> sums ) ;\n free ( s ) ;\n }"}
{"idx": 8120, "target": 0, "func": "void vp8_mbpost_proc_across_ip_c ( unsigned char * src , int pitch , int rows , int cols , int flimit ) {\n int r , c , i ;\n unsigned char * s = src ;\n unsigned char d [ 16 ] ;\n for ( r = 0 ;\n r < rows ;\n r ++ ) {\n int sumsq = 0 ;\n int sum = 0 ;\n for ( i = - 8 ;\n i < 0 ;\n i ++ ) s [ i ] = s [ 0 ] ;\n for ( i = 0 ;\n i < 17 ;\n i ++ ) s [ i + cols ] = s [ cols - 1 ] ;\n for ( i = - 8 ;\n i <= 6 ;\n i ++ ) {\n sumsq += s [ i ] * s [ i ] ;\n sum += s [ i ] ;\n d [ i + 8 ] = 0 ;\n }\n for ( c = 0 ;\n c < cols + 8 ;\n c ++ ) {\n int x = s [ c + 7 ] - s [ c - 8 ] ;\n int y = s [ c + 7 ] + s [ c - 8 ] ;\n sum += x ;\n sumsq += x * y ;\n d [ c & 15 ] = s [ c ] ;\n if ( sumsq * 15 - sum * sum < flimit ) {\n d [ c & 15 ] = ( 8 + sum + s [ c ] ) >> 4 ;\n }\n s [ c - 8 ] = d [ ( c - 8 ) & 15 ] ;\n }\n s += pitch ;\n }\n }"}
{"idx": 8121, "target": 0, "func": "static void IRQ_check ( OpenPICState * opp , IRQQueue * q ) {\n int irq = - 1 ;\n int next = - 1 ;\n int priority = - 1 ;\n for ( ;\n ;\n ) {\n irq = find_next_bit ( q -> queue , opp -> max_irq , irq + 1 ) ;\n if ( irq == opp -> max_irq ) {\n break ;\n }\n DPRINTF ( \"IRQ_check: irq %d set ivpr_pr=%d pr=%d\\n\" , irq , IVPR_PRIORITY ( opp -> src [ irq ] . ivpr ) , priority ) ;\n if ( IVPR_PRIORITY ( opp -> src [ irq ] . ivpr ) > priority ) {\n next = irq ;\n priority = IVPR_PRIORITY ( opp -> src [ irq ] . ivpr ) ;\n }\n }\n q -> next = next ;\n q -> priority = priority ;\n }"}
{"idx": 8122, "target": 0, "func": "static int dissect_h245_RTPH263VideoRedundancyEncoding ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_RTPH263VideoRedundancyEncoding , RTPH263VideoRedundancyEncoding_sequence ) ;\n return offset ;\n }"}
{"idx": 8123, "target": 0, "func": "static void uprint ( const UChar * s , int32_t sourceLen , FILE * f , UErrorCode * status ) {\n UConverter * converter ;\n char buf [ BUF_SIZE ] ;\n const UChar * mySource ;\n const UChar * mySourceEnd ;\n char * myTarget ;\n int32_t arraySize ;\n if ( s == 0 ) return ;\n mySource = s ;\n mySourceEnd = mySource + sourceLen ;\n myTarget = buf ;\n arraySize = BUF_SIZE ;\n converter = ucnv_open ( 0 , status ) ;\n if ( U_FAILURE ( * status ) ) goto finish ;\n do {\n * status = U_ZERO_ERROR ;\n ucnv_fromUnicode ( converter , & myTarget , myTarget + arraySize , & mySource , mySourceEnd , NULL , TRUE , status ) ;\n fwrite ( buf , sizeof ( char ) , myTarget - buf , f ) ;\n myTarget = buf ;\n arraySize = BUF_SIZE ;\n }\n while ( * status == U_BUFFER_OVERFLOW_ERROR ) ;\n finish : ucnv_close ( converter ) ;\n }"}
{"idx": 8124, "target": 0, "func": "int vp9_fast_hex_search ( const MACROBLOCK * x , MV * ref_mv , int search_param , int sad_per_bit , int do_init_search , int * sad_list , const vp9_variance_fn_ptr_t * vfp , int use_mvcost , const MV * center_mv , MV * best_mv ) {\n return vp9_hex_search ( x , ref_mv , MAX ( MAX_MVSEARCH_STEPS - 2 , search_param ) , sad_per_bit , do_init_search , sad_list , vfp , use_mvcost , center_mv , best_mv ) ;\n }"}
{"idx": 8125, "target": 0, "func": "static void _PPC_ioB_write ( target_phys_addr_t addr , uint32_t value ) {\n }"}
{"idx": 8126, "target": 0, "func": "static int virtio_net_handle_rx_mode ( VirtIONet * n , uint8_t cmd , VirtQueueElement * elem ) {\n uint8_t on ;\n if ( elem -> out_num != 2 || elem -> out_sg [ 1 ] . iov_len != sizeof ( on ) ) {\n error_report ( \"virtio-net ctrl invalid rx mode command\" ) ;\n exit ( 1 ) ;\n }\n on = ldub_p ( elem -> out_sg [ 1 ] . iov_base ) ;\n if ( cmd == VIRTIO_NET_CTRL_RX_MODE_PROMISC ) n -> promisc = on ;\n else if ( cmd == VIRTIO_NET_CTRL_RX_MODE_ALLMULTI ) n -> allmulti = on ;\n else if ( cmd == VIRTIO_NET_CTRL_RX_MODE_ALLUNI ) n -> alluni = on ;\n else if ( cmd == VIRTIO_NET_CTRL_RX_MODE_NOMULTI ) n -> nomulti = on ;\n else if ( cmd == VIRTIO_NET_CTRL_RX_MODE_NOUNI ) n -> nouni = on ;\n else if ( cmd == VIRTIO_NET_CTRL_RX_MODE_NOBCAST ) n -> nobcast = on ;\n else return VIRTIO_NET_ERR ;\n return VIRTIO_NET_OK ;\n }"}
{"idx": 8127, "target": 0, "func": "static void test_bug11172 ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND bind_in [ 1 ] , bind_out [ 2 ] ;\n MYSQL_TIME hired ;\n int rc ;\n const char * stmt_text ;\n int i = 0 , id ;\n ulong type ;\n myheader ( \"test_bug11172\" ) ;\n mysql_query ( mysql , \"drop table if exists t1\" ) ;\n mysql_query ( mysql , \"create table t1 (id integer not null primary key,\" \"hired date not null)\" ) ;\n rc = mysql_query ( mysql , \"insert into t1 (id, hired) values (1, '1933-08-24'), \" \"(2, '1965-01-01'), (3, '1949-08-17'), (4, '1945-07-07'), \" \"(5, '1941-05-15'), (6, '1978-09-15'), (7, '1936-03-28')\" ) ;\n myquery ( rc ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n stmt_text = \"SELECT id, hired FROM t1 WHERE hired=?\" ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt , rc ) ;\n type = ( ulong ) CURSOR_TYPE_READ_ONLY ;\n mysql_stmt_attr_set ( stmt , STMT_ATTR_CURSOR_TYPE , ( const void * ) & type ) ;\n memset ( bind_in , 0 , sizeof ( bind_in ) ) ;\n memset ( bind_out , 0 , sizeof ( bind_out ) ) ;\n memset ( & hired , 0 , sizeof ( hired ) ) ;\n hired . year = 1965 ;\n hired . month = 1 ;\n hired . day = 1 ;\n bind_in [ 0 ] . buffer_type = MYSQL_TYPE_DATE ;\n bind_in [ 0 ] . buffer = ( void * ) & hired ;\n bind_in [ 0 ] . buffer_length = sizeof ( hired ) ;\n bind_out [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n bind_out [ 0 ] . buffer = ( void * ) & id ;\n bind_out [ 1 ] = bind_in [ 0 ] ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n rc = mysql_stmt_bind_param ( stmt , bind_in ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_bind_result ( stmt , bind_out ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n while ( ( rc = mysql_stmt_fetch ( stmt ) ) == 0 ) {\n if ( ! opt_silent ) printf ( \"fetched data %d:%d-%d-%d\\n\" , id , hired . year , hired . month , hired . day ) ;\n }\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n if ( ! mysql_stmt_free_result ( stmt ) ) mysql_stmt_reset ( stmt ) ;\n }\n mysql_stmt_close ( stmt ) ;\n mysql_rollback ( mysql ) ;\n mysql_rollback ( mysql ) ;\n rc = mysql_query ( mysql , \"drop table t1\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 8128, "target": 0, "func": "static int rstacktoodeep ( void ) {\n return stack_is_too_deep ( ) ;\n }"}
{"idx": 8129, "target": 0, "func": "static hb_unicode_combining_class_t hb_icu_unicode_combining_class ( hb_unicode_funcs_t * ufuncs HB_UNUSED , hb_codepoint_t unicode , void * user_data HB_UNUSED ) {\n return ( hb_unicode_combining_class_t ) u_getCombiningClass ( unicode ) ;\n }"}
{"idx": 8130, "target": 0, "func": "static void libopenjpeg_copy_to_packed8 ( AVFrame * picture , opj_image_t * image ) {\n uint8_t * img_ptr ;\n int index , x , y , c ;\n for ( y = 0 ;\n y < picture -> height ;\n y ++ ) {\n index = y * picture -> width ;\n img_ptr = picture -> data [ 0 ] + y * picture -> linesize [ 0 ] ;\n for ( x = 0 ;\n x < picture -> width ;\n x ++ , index ++ ) {\n for ( c = 0 ;\n c < image -> numcomps ;\n c ++ ) {\n * img_ptr ++ = image -> comps [ c ] . data [ index ] ;\n }\n }\n }\n }"}
{"idx": 8131, "target": 0, "func": "static void vmsvga_io_write ( void * opaque , hwaddr addr , uint64_t data , unsigned size ) {\n struct vmsvga_state_s * s = opaque ;\n switch ( addr ) {\n case SVGA_IO_MUL * SVGA_INDEX_PORT : vmsvga_index_write ( s , addr , data ) ;\n break ;\n case SVGA_IO_MUL * SVGA_VALUE_PORT : vmsvga_value_write ( s , addr , data ) ;\n break ;\n case SVGA_IO_MUL * SVGA_BIOS_PORT : vmsvga_bios_write ( s , addr , data ) ;\n break ;\n }\n }"}
{"idx": 8132, "target": 1, "func": "static int yop_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n YopDecContext * s = avctx -> priv_data ;\n int tag , firstcolor , is_odd_frame ;\n int ret , i , x , y ;\n uint32_t * palette ;\n if ( avpkt -> size < 4 + 3 * s -> num_pal_colors ) {\n av_log ( avctx , AV_LOG_ERROR , \"Packet too small.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( s -> frame . data [ 0 ] ) avctx -> release_buffer ( avctx , & s -> frame ) ;\n ret = ff_get_buffer ( avctx , & s -> frame ) ;\n if ( ret < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( ! avctx -> frame_number ) memset ( s -> frame . data [ 1 ] , 0 , AVPALETTE_SIZE ) ;\n s -> dstbuf = s -> frame . data [ 0 ] ;\n s -> dstptr = s -> frame . data [ 0 ] ;\n s -> srcptr = avpkt -> data + 4 ;\n s -> src_end = avpkt -> data + avpkt -> size ;\n s -> low_nibble = NULL ;\n is_odd_frame = avpkt -> data [ 0 ] ;\n firstcolor = s -> first_color [ is_odd_frame ] ;\n palette = ( uint32_t * ) s -> frame . data [ 1 ] ;\n for ( i = 0 ;\n i < s -> num_pal_colors ;\n i ++ , s -> srcptr += 3 ) palette [ i + firstcolor ] = ( s -> srcptr [ 0 ] << 18 ) | ( s -> srcptr [ 1 ] << 10 ) | ( s -> srcptr [ 2 ] << 2 ) ;\n s -> frame . palette_has_changed = 1 ;\n for ( y = 0 ;\n y < avctx -> height ;\n y += 2 ) {\n for ( x = 0 ;\n x < avctx -> width ;\n x += 2 ) {\n if ( s -> srcptr - avpkt -> data >= avpkt -> size ) {\n av_log ( avctx , AV_LOG_ERROR , \"Packet too small.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n tag = yop_get_next_nibble ( s ) ;\n if ( tag != 0xf ) {\n ret = yop_paint_block ( s , tag ) ;\n if ( ret < 0 ) return ret ;\n }\n else {\n tag = yop_get_next_nibble ( s ) ;\n ret = yop_copy_previous_block ( s , tag ) ;\n if ( ret < 0 ) {\n avctx -> release_buffer ( avctx , & s -> frame ) ;\n return ret ;\n }\n }\n s -> dstptr += 2 ;\n }\n s -> dstptr += 2 * s -> frame . linesize [ 0 ] - x ;\n }\n * got_frame = 1 ;\n * ( AVFrame * ) data = s -> frame ;\n return avpkt -> size ;\n }"}
{"idx": 8133, "target": 0, "func": "static int dissect_h245_SEQUENCE_SIZE_1_256_OF_RedundancyEncodingCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h245_SEQUENCE_SIZE_1_256_OF_RedundancyEncodingCapability , SEQUENCE_SIZE_1_256_OF_RedundancyEncodingCapability_sequence_of , 1 , 256 , FALSE ) ;\n return offset ;\n }"}
{"idx": 8134, "target": 1, "func": "kadm5_ret_t kadm5_modify_principal ( void * server_handle , kadm5_principal_ent_t entry , long mask ) {\n int ret , ret2 , i ;\n kadm5_policy_ent_rec pol ;\n krb5_boolean have_pol = FALSE ;\n krb5_db_entry * kdb ;\n krb5_tl_data * tl_data_orig ;\n osa_princ_ent_rec adb ;\n kadm5_server_handle_t handle = server_handle ;\n CHECK_HANDLE ( server_handle ) ;\n krb5_clear_error_message ( handle -> context ) ;\n if ( ( mask & KADM5_PRINCIPAL ) || ( mask & KADM5_LAST_PWD_CHANGE ) || ( mask & KADM5_MOD_TIME ) || ( mask & KADM5_MOD_NAME ) || ( mask & KADM5_MKVNO ) || ( mask & KADM5_AUX_ATTRIBUTES ) || ( mask & KADM5_KEY_DATA ) || ( mask & KADM5_LAST_SUCCESS ) || ( mask & KADM5_LAST_FAILED ) ) return KADM5_BAD_MASK ;\n if ( ( mask & ~ ALL_PRINC_MASK ) ) return KADM5_BAD_MASK ;\n if ( ( mask & KADM5_POLICY ) && ( mask & KADM5_POLICY_CLR ) ) return KADM5_BAD_MASK ;\n if ( entry == ( kadm5_principal_ent_t ) NULL ) return EINVAL ;\n if ( mask & KADM5_TL_DATA ) {\n tl_data_orig = entry -> tl_data ;\n while ( tl_data_orig ) {\n if ( tl_data_orig -> tl_data_type < 256 ) return KADM5_BAD_TL_TYPE ;\n tl_data_orig = tl_data_orig -> tl_data_next ;\n }\n }\n ret = kdb_get_entry ( handle , entry -> principal , & kdb , & adb ) ;\n if ( ret ) return ( ret ) ;\n if ( ( mask & KADM5_POLICY ) ) {\n ret = get_policy ( handle , entry -> policy , & pol , & have_pol ) ;\n if ( ret ) goto done ;\n adb . aux_attributes |= KADM5_POLICY ;\n if ( adb . policy ) free ( adb . policy ) ;\n adb . policy = strdup ( entry -> policy ) ;\n }\n if ( have_pol ) {\n if ( pol . pw_max_life ) {\n ret = krb5_dbe_lookup_last_pwd_change ( handle -> context , kdb , & ( kdb -> pw_expiration ) ) ;\n if ( ret ) goto done ;\n kdb -> pw_expiration += pol . pw_max_life ;\n }\n else {\n kdb -> pw_expiration = 0 ;\n }\n }\n if ( ( mask & KADM5_POLICY_CLR ) && ( adb . aux_attributes & KADM5_POLICY ) ) {\n free ( adb . policy ) ;\n adb . policy = NULL ;\n adb . aux_attributes &= ~ KADM5_POLICY ;\n kdb -> pw_expiration = 0 ;\n }\n if ( ( mask & KADM5_ATTRIBUTES ) ) kdb -> attributes = entry -> attributes ;\n if ( ( mask & KADM5_MAX_LIFE ) ) kdb -> max_life = entry -> max_life ;\n if ( ( mask & KADM5_PRINC_EXPIRE_TIME ) ) kdb -> expiration = entry -> princ_expire_time ;\n if ( mask & KADM5_PW_EXPIRATION ) kdb -> pw_expiration = entry -> pw_expiration ;\n if ( mask & KADM5_MAX_RLIFE ) kdb -> max_renewable_life = entry -> max_renewable_life ;\n if ( ( mask & KADM5_KVNO ) ) {\n for ( i = 0 ;\n i < kdb -> n_key_data ;\n i ++ ) kdb -> key_data [ i ] . key_data_kvno = entry -> kvno ;\n }\n if ( mask & KADM5_TL_DATA ) {\n krb5_tl_data * tl ;\n for ( tl = entry -> tl_data ;\n tl ;\n tl = tl -> tl_data_next ) {\n ret = krb5_dbe_update_tl_data ( handle -> context , kdb , tl ) ;\n if ( ret ) {\n goto done ;\n }\n }\n }\n if ( mask & KADM5_FAIL_AUTH_COUNT ) {\n if ( entry -> fail_auth_count != 0 ) {\n ret = KADM5_BAD_SERVER_PARAMS ;\n goto done ;\n }\n kdb -> fail_auth_count = 0 ;\n }\n kdb -> mask = mask ;\n ret = k5_kadm5_hook_modify ( handle -> context , handle -> hook_handles , KADM5_HOOK_STAGE_PRECOMMIT , entry , mask ) ;\n if ( ret ) goto done ;\n ret = kdb_put_entry ( handle , kdb , & adb ) ;\n if ( ret ) goto done ;\n ( void ) k5_kadm5_hook_modify ( handle -> context , handle -> hook_handles , KADM5_HOOK_STAGE_POSTCOMMIT , entry , mask ) ;\n ret = KADM5_OK ;\n done : if ( have_pol ) {\n ret2 = kadm5_free_policy_ent ( handle -> lhandle , & pol ) ;\n ret = ret ? ret : ret2 ;\n }\n kdb_free_entry ( handle , kdb , & adb ) ;\n return ret ;\n }"}
{"idx": 8135, "target": 0, "func": "static float get_float ( GetBitContext * gb ) {\n int power = get_bits ( gb , 5 ) ;\n float f = ldexpf ( get_bits_long ( gb , 23 ) , power - 23 ) ;\n if ( get_bits1 ( gb ) ) f = - f ;\n return f ;\n }"}
{"idx": 8136, "target": 0, "func": "int DMA_read_memory ( int nchan , void * buf , int pos , int size ) {\n return 0 ;\n }"}
{"idx": 8137, "target": 1, "func": "static int dissect_u3v ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n gint offset = 0 ;\n proto_tree * u3v_tree = NULL , * ccd_tree_flag , * u3v_telegram_tree = NULL , * ccd_tree = NULL ;\n gint data_length = 0 ;\n gint req_id = 0 ;\n gint command_id = - 1 ;\n gint status = 0 ;\n guint prefix = 0 ;\n proto_item * ti = NULL ;\n proto_item * item = NULL ;\n const char * command_string ;\n usb_conv_info_t * usb_conv_info ;\n gint stream_detected = FALSE ;\n gint control_detected = FALSE ;\n u3v_conv_info_t * u3v_conv_info = NULL ;\n gencp_transaction_t * gencp_trans = NULL ;\n usb_conv_info = ( usb_conv_info_t * ) data ;\n u3v_conv_info = ( u3v_conv_info_t * ) usb_conv_info -> class_data ;\n if ( ! u3v_conv_info ) {\n u3v_conv_info = wmem_new0 ( wmem_file_scope ( ) , u3v_conv_info_t ) ;\n usb_conv_info -> class_data = u3v_conv_info ;\n }\n prefix = tvb_get_letohl ( tvb , 0 ) ;\n if ( ( tvb_reported_length ( tvb ) >= 4 ) && ( ( U3V_CONTROL_PREFIX == prefix ) || ( U3V_EVENT_PREFIX == prefix ) ) ) {\n control_detected = TRUE ;\n }\n if ( ( ( tvb_reported_length ( tvb ) >= 4 ) && ( ( U3V_STREAM_LEADER_PREFIX == prefix ) || ( U3V_STREAM_TRAILER_PREFIX == prefix ) ) ) || ( usb_conv_info -> endpoint == u3v_conv_info -> ep_stream ) ) {\n stream_detected = TRUE ;\n }\n if ( control_detected || stream_detected ) {\n if ( usb_conv_info -> interfaceClass == IF_CLASS_UNKNOWN && usb_conv_info -> interfaceSubclass == IF_SUBCLASS_UNKNOWN ) {\n usb_conv_info -> interfaceClass = IF_CLASS_MISCELLANEOUS ;\n usb_conv_info -> interfaceSubclass = IF_SUBCLASS_MISC_U3V ;\n }\n }\n if ( control_detected ) {\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"U3V\" ) ;\n col_clear ( pinfo -> cinfo , COL_INFO ) ;\n ti = proto_tree_add_item ( tree , proto_u3v , tvb , offset , - 1 , ENC_NA ) ;\n u3v_tree = proto_item_add_subtree ( ti , ett_u3v ) ;\n prefix = tvb_get_letohl ( tvb , offset ) ;\n command_id = tvb_get_letohs ( tvb , offset + 6 ) ;\n if ( ( prefix == U3V_CONTROL_PREFIX || prefix == U3V_EVENT_PREFIX ) && ( ( command_id % 2 ) == 0 ) ) {\n command_string = val_to_str ( command_id , command_names , \"Unknown Command (0x%x)\" ) ;\n item = proto_tree_add_item ( u3v_tree , hf_u3v_ccd_cmd , tvb , offset , 8 , ENC_NA ) ;\n proto_item_append_text ( item , \": %s\" , command_string ) ;\n ccd_tree = proto_item_add_subtree ( item , ett_u3v_cmd ) ;\n proto_tree_add_item ( ccd_tree , hf_u3v_gencp_prefix , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n item = proto_tree_add_item ( ccd_tree , hf_u3v_flag , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n ccd_tree_flag = proto_item_add_subtree ( item , ett_u3v_flags ) ;\n proto_tree_add_item ( ccd_tree_flag , hf_u3v_acknowledge_required_flag , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"> %s \" , command_string ) ;\n }\n else if ( prefix == U3V_CONTROL_PREFIX && ( ( command_id % 2 ) == 1 ) ) {\n command_string = val_to_str ( command_id , command_names , \"Unknown Acknowledge (0x%x)\" ) ;\n item = proto_tree_add_item ( u3v_tree , hf_u3v_ccd_ack , tvb , offset , 8 , ENC_NA ) ;\n proto_item_append_text ( item , \": %s\" , command_string ) ;\n ccd_tree = proto_item_add_subtree ( item , ett_u3v_ack ) ;\n proto_tree_add_item ( ccd_tree , hf_u3v_gencp_prefix , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( ccd_tree , hf_u3v_status , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n status = tvb_get_letohs ( tvb , offset ) ;\n offset += 2 ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"< %s %s\" , command_string , val_to_str ( status , status_names_short , \"Unknown status (0x%04X)\" ) ) ;\n }\n else {\n return 0 ;\n }\n proto_tree_add_item ( ccd_tree , hf_u3v_command_id , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( ccd_tree , hf_u3v_length , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n data_length = tvb_get_letohs ( tvb , offset ) ;\n offset += 2 ;\n proto_tree_add_item ( ccd_tree , hf_u3v_request_id , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n req_id = tvb_get_letohs ( tvb , offset ) ;\n offset += 2 ;\n u3v_telegram_tree = proto_item_add_subtree ( u3v_tree , ett_u3v ) ;\n if ( ! PINFO_FD_VISITED ( pinfo ) ) {\n if ( ( command_id % 2 ) == 0 ) {\n gencp_trans = wmem_new ( wmem_file_scope ( ) , gencp_transaction_t ) ;\n gencp_trans -> cmd_frame = pinfo -> fd -> num ;\n gencp_trans -> ack_frame = 0 ;\n gencp_trans -> cmd_time = pinfo -> fd -> abs_ts ;\n p_add_proto_data ( wmem_file_scope ( ) , pinfo , proto_u3v , req_id , gencp_trans ) ;\n u3v_conv_info -> trans_info = gencp_trans ;\n }\n else {\n gencp_trans = u3v_conv_info -> trans_info ;\n if ( gencp_trans ) {\n gencp_trans -> ack_frame = pinfo -> fd -> num ;\n p_add_proto_data ( wmem_file_scope ( ) , pinfo , proto_u3v , req_id , gencp_trans ) ;\n }\n }\n }\n else {\n gencp_trans = ( gencp_transaction_t * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_u3v , req_id ) ;\n }\n if ( ! gencp_trans ) {\n gencp_trans = wmem_new ( wmem_packet_scope ( ) , gencp_transaction_t ) ;\n gencp_trans -> cmd_frame = 0 ;\n gencp_trans -> ack_frame = 0 ;\n gencp_trans -> cmd_time = pinfo -> fd -> abs_ts ;\n }\n switch ( command_id ) {\n case U3V_READMEM_CMD : dissect_u3v_read_mem_cmd ( u3v_telegram_tree , tvb , pinfo , offset , data_length , u3v_conv_info , gencp_trans ) ;\n break ;\n case U3V_WRITEMEM_CMD : dissect_u3v_write_mem_cmd ( u3v_telegram_tree , tvb , pinfo , offset , data_length , u3v_conv_info , gencp_trans ) ;\n break ;\n case U3V_EVENT_CMD : dissect_u3v_event_cmd ( u3v_telegram_tree , tvb , pinfo , offset , data_length ) ;\n break ;\n case U3V_READMEM_ACK : if ( U3V_STATUS_GENCP_SUCCESS == status ) {\n dissect_u3v_read_mem_ack ( u3v_telegram_tree , tvb , pinfo , offset , data_length , u3v_conv_info , gencp_trans ) ;\n }\n break ;\n case U3V_WRITEMEM_ACK : dissect_u3v_write_mem_ack ( u3v_telegram_tree , tvb , pinfo , offset , data_length , u3v_conv_info , gencp_trans ) ;\n break ;\n case U3V_PENDING_ACK : dissect_u3v_pending_ack ( u3v_telegram_tree , tvb , pinfo , offset , data_length , u3v_conv_info , gencp_trans ) ;\n break ;\n default : proto_tree_add_item ( u3v_telegram_tree , hf_u3v_payloaddata , tvb , offset , data_length , ENC_NA ) ;\n break ;\n }\n return data_length + 12 ;\n }\n else if ( stream_detected ) {\n u3v_conv_info = ( u3v_conv_info_t * ) usb_conv_info -> class_data ;\n u3v_conv_info -> ep_stream = usb_conv_info -> endpoint ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"U3V\" ) ;\n col_clear ( pinfo -> cinfo , COL_INFO ) ;\n ti = proto_tree_add_item ( tree , proto_u3v , tvb , offset , - 1 , ENC_NA ) ;\n u3v_tree = proto_item_add_subtree ( ti , ett_u3v ) ;\n if ( tvb_captured_length ( tvb ) >= 4 ) {\n prefix = tvb_get_letohl ( tvb , offset ) ;\n switch ( prefix ) {\n case U3V_STREAM_LEADER_PREFIX : dissect_u3v_stream_leader ( u3v_tree , tvb , pinfo , usb_conv_info ) ;\n break ;\n case U3V_STREAM_TRAILER_PREFIX : dissect_u3v_stream_trailer ( u3v_tree , tvb , pinfo , usb_conv_info ) ;\n break ;\n default : dissect_u3v_stream_payload ( u3v_tree , tvb , pinfo , usb_conv_info ) ;\n break ;\n }\n }\n return tvb_captured_length ( tvb ) ;\n }\n return 0 ;\n }"}
{"idx": 8138, "target": 0, "func": "void mime_field_value_set_comma_val ( HdrHeap * heap , MIMEHdrImpl * mh , MIMEField * field , int idx , const char * new_piece_str , int new_piece_len ) {\n int len ;\n Str * cell ;\n StrList list ( false ) ;\n HttpCompat : : parse_tok_list ( & list , 0 , field -> m_ptr_value , field -> m_len_value , ',' ) ;\n if ( ( idx < 0 ) || ( idx >= list . count ) ) {\n return ;\n }\n cell = list . get_idx ( idx ) ;\n ink_assert ( cell != nullptr ) ;\n cell -> str = new_piece_str ;\n cell -> len = new_piece_len ;\n field -> m_ptr_value = mime_field_value_str_from_strlist ( heap , & len , & list ) ;\n field -> m_len_value = len ;\n field -> m_n_v_raw_printable = 0 ;\n if ( field -> is_live ( ) && field -> is_cooked ( ) ) {\n mh -> recompute_cooked_stuff ( field ) ;\n }\n }"}
{"idx": 8139, "target": 0, "func": "VP9Decoder * vp9_decoder_create ( ) {\n VP9Decoder * const pbi = vpx_memalign ( 32 , sizeof ( * pbi ) ) ;\n VP9_COMMON * const cm = pbi ? & pbi -> common : NULL ;\n if ( ! cm ) return NULL ;\n vp9_zero ( * pbi ) ;\n if ( setjmp ( cm -> error . jmp ) ) {\n cm -> error . setjmp = 0 ;\n vp9_decoder_remove ( pbi ) ;\n return NULL ;\n }\n cm -> error . setjmp = 1 ;\n pbi -> need_resync = 1 ;\n initialize_dec ( ) ;\n vpx_memset ( & cm -> ref_frame_map , - 1 , sizeof ( cm -> ref_frame_map ) ) ;\n cm -> current_video_frame = 0 ;\n pbi -> ready_for_new_data = 1 ;\n cm -> bit_depth = VPX_BITS_8 ;\n vp9_init_dequantizer ( cm ) ;\n vp9_loop_filter_init ( cm ) ;\n cm -> error . setjmp = 0 ;\n vp9_get_worker_interface ( ) -> init ( & pbi -> lf_worker ) ;\n return pbi ;\n }"}
{"idx": 8140, "target": 0, "func": "static struct xfrm_state * pfkey_msg2xfrm_state ( struct net * net , const struct sadb_msg * hdr , void * const * ext_hdrs ) {\n struct xfrm_state * x ;\n const struct sadb_lifetime * lifetime ;\n const struct sadb_sa * sa ;\n const struct sadb_key * key ;\n const struct sadb_x_sec_ctx * sec_ctx ;\n uint16_t proto ;\n int err ;\n sa = ext_hdrs [ SADB_EXT_SA - 1 ] ;\n if ( ! sa || ! present_and_same_family ( ext_hdrs [ SADB_EXT_ADDRESS_SRC - 1 ] , ext_hdrs [ SADB_EXT_ADDRESS_DST - 1 ] ) ) return ERR_PTR ( - EINVAL ) ;\n if ( hdr -> sadb_msg_satype == SADB_SATYPE_ESP && ! ext_hdrs [ SADB_EXT_KEY_ENCRYPT - 1 ] ) return ERR_PTR ( - EINVAL ) ;\n if ( hdr -> sadb_msg_satype == SADB_SATYPE_AH && ! ext_hdrs [ SADB_EXT_KEY_AUTH - 1 ] ) return ERR_PTR ( - EINVAL ) ;\n if ( ! ! ext_hdrs [ SADB_EXT_LIFETIME_HARD - 1 ] != ! ! ext_hdrs [ SADB_EXT_LIFETIME_SOFT - 1 ] ) return ERR_PTR ( - EINVAL ) ;\n proto = pfkey_satype2proto ( hdr -> sadb_msg_satype ) ;\n if ( proto == 0 ) return ERR_PTR ( - EINVAL ) ;\n err = - ENOBUFS ;\n if ( sa -> sadb_sa_auth > SADB_AALG_MAX || ( hdr -> sadb_msg_satype == SADB_X_SATYPE_IPCOMP && sa -> sadb_sa_encrypt > SADB_X_CALG_MAX ) || sa -> sadb_sa_encrypt > SADB_EALG_MAX ) return ERR_PTR ( - EINVAL ) ;\n key = ext_hdrs [ SADB_EXT_KEY_AUTH - 1 ] ;\n if ( key != NULL && sa -> sadb_sa_auth != SADB_X_AALG_NULL && ( ( key -> sadb_key_bits + 7 ) / 8 == 0 || ( key -> sadb_key_bits + 7 ) / 8 > key -> sadb_key_len * sizeof ( uint64_t ) ) ) return ERR_PTR ( - EINVAL ) ;\n key = ext_hdrs [ SADB_EXT_KEY_ENCRYPT - 1 ] ;\n if ( key != NULL && sa -> sadb_sa_encrypt != SADB_EALG_NULL && ( ( key -> sadb_key_bits + 7 ) / 8 == 0 || ( key -> sadb_key_bits + 7 ) / 8 > key -> sadb_key_len * sizeof ( uint64_t ) ) ) return ERR_PTR ( - EINVAL ) ;\n x = xfrm_state_alloc ( net ) ;\n if ( x == NULL ) return ERR_PTR ( - ENOBUFS ) ;\n x -> id . proto = proto ;\n x -> id . spi = sa -> sadb_sa_spi ;\n x -> props . replay_window = sa -> sadb_sa_replay ;\n if ( sa -> sadb_sa_flags & SADB_SAFLAGS_NOECN ) x -> props . flags |= XFRM_STATE_NOECN ;\n if ( sa -> sadb_sa_flags & SADB_SAFLAGS_DECAP_DSCP ) x -> props . flags |= XFRM_STATE_DECAP_DSCP ;\n if ( sa -> sadb_sa_flags & SADB_SAFLAGS_NOPMTUDISC ) x -> props . flags |= XFRM_STATE_NOPMTUDISC ;\n lifetime = ext_hdrs [ SADB_EXT_LIFETIME_HARD - 1 ] ;\n if ( lifetime != NULL ) {\n x -> lft . hard_packet_limit = _KEY2X ( lifetime -> sadb_lifetime_allocations ) ;\n x -> lft . hard_byte_limit = _KEY2X ( lifetime -> sadb_lifetime_bytes ) ;\n x -> lft . hard_add_expires_seconds = lifetime -> sadb_lifetime_addtime ;\n x -> lft . hard_use_expires_seconds = lifetime -> sadb_lifetime_usetime ;\n }\n lifetime = ext_hdrs [ SADB_EXT_LIFETIME_SOFT - 1 ] ;\n if ( lifetime != NULL ) {\n x -> lft . soft_packet_limit = _KEY2X ( lifetime -> sadb_lifetime_allocations ) ;\n x -> lft . soft_byte_limit = _KEY2X ( lifetime -> sadb_lifetime_bytes ) ;\n x -> lft . soft_add_expires_seconds = lifetime -> sadb_lifetime_addtime ;\n x -> lft . soft_use_expires_seconds = lifetime -> sadb_lifetime_usetime ;\n }\n sec_ctx = ext_hdrs [ SADB_X_EXT_SEC_CTX - 1 ] ;\n if ( sec_ctx != NULL ) {\n struct xfrm_user_sec_ctx * uctx = pfkey_sadb2xfrm_user_sec_ctx ( sec_ctx ) ;\n if ( ! uctx ) goto out ;\n err = security_xfrm_state_alloc ( x , uctx ) ;\n kfree ( uctx ) ;\n if ( err ) goto out ;\n }\n key = ext_hdrs [ SADB_EXT_KEY_AUTH - 1 ] ;\n if ( sa -> sadb_sa_auth ) {\n int keysize = 0 ;\n struct xfrm_algo_desc * a = xfrm_aalg_get_byid ( sa -> sadb_sa_auth ) ;\n if ( ! a || ! a -> pfkey_supported ) {\n err = - ENOSYS ;\n goto out ;\n }\n if ( key ) keysize = ( key -> sadb_key_bits + 7 ) / 8 ;\n x -> aalg = kmalloc ( sizeof ( * x -> aalg ) + keysize , GFP_KERNEL ) ;\n if ( ! x -> aalg ) goto out ;\n strcpy ( x -> aalg -> alg_name , a -> name ) ;\n x -> aalg -> alg_key_len = 0 ;\n if ( key ) {\n x -> aalg -> alg_key_len = key -> sadb_key_bits ;\n memcpy ( x -> aalg -> alg_key , key + 1 , keysize ) ;\n }\n x -> aalg -> alg_trunc_len = a -> uinfo . auth . icv_truncbits ;\n x -> props . aalgo = sa -> sadb_sa_auth ;\n }\n if ( sa -> sadb_sa_encrypt ) {\n if ( hdr -> sadb_msg_satype == SADB_X_SATYPE_IPCOMP ) {\n struct xfrm_algo_desc * a = xfrm_calg_get_byid ( sa -> sadb_sa_encrypt ) ;\n if ( ! a || ! a -> pfkey_supported ) {\n err = - ENOSYS ;\n goto out ;\n }\n x -> calg = kmalloc ( sizeof ( * x -> calg ) , GFP_KERNEL ) ;\n if ( ! x -> calg ) goto out ;\n strcpy ( x -> calg -> alg_name , a -> name ) ;\n x -> props . calgo = sa -> sadb_sa_encrypt ;\n }\n else {\n int keysize = 0 ;\n struct xfrm_algo_desc * a = xfrm_ealg_get_byid ( sa -> sadb_sa_encrypt ) ;\n if ( ! a || ! a -> pfkey_supported ) {\n err = - ENOSYS ;\n goto out ;\n }\n key = ( struct sadb_key * ) ext_hdrs [ SADB_EXT_KEY_ENCRYPT - 1 ] ;\n if ( key ) keysize = ( key -> sadb_key_bits + 7 ) / 8 ;\n x -> ealg = kmalloc ( sizeof ( * x -> ealg ) + keysize , GFP_KERNEL ) ;\n if ( ! x -> ealg ) goto out ;\n strcpy ( x -> ealg -> alg_name , a -> name ) ;\n x -> ealg -> alg_key_len = 0 ;\n if ( key ) {\n x -> ealg -> alg_key_len = key -> sadb_key_bits ;\n memcpy ( x -> ealg -> alg_key , key + 1 , keysize ) ;\n }\n x -> props . ealgo = sa -> sadb_sa_encrypt ;\n }\n }\n x -> props . family = pfkey_sadb_addr2xfrm_addr ( ( struct sadb_address * ) ext_hdrs [ SADB_EXT_ADDRESS_SRC - 1 ] , & x -> props . saddr ) ;\n if ( ! x -> props . family ) {\n err = - EAFNOSUPPORT ;\n goto out ;\n }\n pfkey_sadb_addr2xfrm_addr ( ( struct sadb_address * ) ext_hdrs [ SADB_EXT_ADDRESS_DST - 1 ] , & x -> id . daddr ) ;\n if ( ext_hdrs [ SADB_X_EXT_SA2 - 1 ] ) {\n const struct sadb_x_sa2 * sa2 = ext_hdrs [ SADB_X_EXT_SA2 - 1 ] ;\n int mode = pfkey_mode_to_xfrm ( sa2 -> sadb_x_sa2_mode ) ;\n if ( mode < 0 ) {\n err = - EINVAL ;\n goto out ;\n }\n x -> props . mode = mode ;\n x -> props . reqid = sa2 -> sadb_x_sa2_reqid ;\n }\n if ( ext_hdrs [ SADB_EXT_ADDRESS_PROXY - 1 ] ) {\n const struct sadb_address * addr = ext_hdrs [ SADB_EXT_ADDRESS_PROXY - 1 ] ;\n x -> sel . family = pfkey_sadb_addr2xfrm_addr ( addr , & x -> sel . saddr ) ;\n x -> sel . prefixlen_s = addr -> sadb_address_prefixlen ;\n }\n if ( ! x -> sel . family ) x -> sel . family = x -> props . family ;\n if ( ext_hdrs [ SADB_X_EXT_NAT_T_TYPE - 1 ] ) {\n const struct sadb_x_nat_t_type * n_type ;\n struct xfrm_encap_tmpl * natt ;\n x -> encap = kmalloc ( sizeof ( * x -> encap ) , GFP_KERNEL ) ;\n if ( ! x -> encap ) goto out ;\n natt = x -> encap ;\n n_type = ext_hdrs [ SADB_X_EXT_NAT_T_TYPE - 1 ] ;\n natt -> encap_type = n_type -> sadb_x_nat_t_type_type ;\n if ( ext_hdrs [ SADB_X_EXT_NAT_T_SPORT - 1 ] ) {\n const struct sadb_x_nat_t_port * n_port = ext_hdrs [ SADB_X_EXT_NAT_T_SPORT - 1 ] ;\n natt -> encap_sport = n_port -> sadb_x_nat_t_port_port ;\n }\n if ( ext_hdrs [ SADB_X_EXT_NAT_T_DPORT - 1 ] ) {\n const struct sadb_x_nat_t_port * n_port = ext_hdrs [ SADB_X_EXT_NAT_T_DPORT - 1 ] ;\n natt -> encap_dport = n_port -> sadb_x_nat_t_port_port ;\n }\n memset ( & natt -> encap_oa , 0 , sizeof ( natt -> encap_oa ) ) ;\n }\n err = xfrm_init_state ( x ) ;\n if ( err ) goto out ;\n x -> km . seq = hdr -> sadb_msg_seq ;\n return x ;\n out : x -> km . state = XFRM_STATE_DEAD ;\n xfrm_state_put ( x ) ;\n return ERR_PTR ( err ) ;\n }"}
{"idx": 8141, "target": 1, "func": "void * xcalloc ( size_t num , size_t size ) {\n void * ptr = malloc ( num * size ) ;\n if ( ptr ) {\n memset ( ptr , '\\0' , ( num * size ) ) ;\n }\n return ptr ;\n }"}
{"idx": 8142, "target": 0, "func": "int decode_msg ( struct sip_msg * msg , char * code , unsigned int len ) {\n unsigned short int h ;\n char * myerror = NULL ;\n memcpy ( & h , & code [ 2 ] , 2 ) ;\n h = ntohs ( h ) ;\n msg -> buf = & code [ h ] ;\n memcpy ( & h , & code [ 4 ] , 2 ) ;\n h = ntohs ( h ) ;\n msg -> len = h ;\n if ( parse_headers ( msg , HDR_EOH_F , 0 ) < 0 ) {\n myerror = \"in parse_headers\" ;\n goto error ;\n }\n error : LM_ERR ( \"(%s)\\n\" , myerror ) ;\n return - 1 ;\n }"}
{"idx": 8143, "target": 0, "func": "Jbig2Segment * jbig2_find_segment ( Jbig2Ctx * ctx , uint32_t number ) {\n int index , index_max = ctx -> segment_index - 1 ;\n const Jbig2Ctx * global_ctx = ctx -> global_ctx ;\n for ( index = index_max ;\n index >= 0 ;\n index -- ) if ( ctx -> segments [ index ] -> number == number ) return ( ctx -> segments [ index ] ) ;\n if ( global_ctx ) for ( index = global_ctx -> segment_index - 1 ;\n index >= 0 ;\n index -- ) if ( global_ctx -> segments [ index ] -> number == number ) return ( global_ctx -> segments [ index ] ) ;\n return NULL ;\n }"}
{"idx": 8144, "target": 0, "func": "static __inline__ void TLV_LIST_INIT ( struct tlv_list_desc * list , void * data , __u32 space ) {\n list -> tlv_ptr = ( struct tlv_desc * ) data ;\n list -> tlv_space = space ;\n }"}
{"idx": 8145, "target": 0, "func": "static int proc_setintf ( struct usb_dev_state * ps , void __user * arg ) {\n struct usbdevfs_setinterface setintf ;\n int ret ;\n if ( copy_from_user ( & setintf , arg , sizeof ( setintf ) ) ) return - EFAULT ;\n ret = checkintf ( ps , setintf . interface ) ;\n if ( ret ) return ret ;\n destroy_async_on_interface ( ps , setintf . interface ) ;\n return usb_set_interface ( ps -> dev , setintf . interface , setintf . altsetting ) ;\n }"}
{"idx": 8146, "target": 0, "func": "static void ehci_pci_register_types ( void ) {\n TypeInfo ehci_type_info = {\n . parent = TYPE_PCI_EHCI , . class_init = ehci_data_class_init , }\n ;\n int i ;\n type_register_static ( & ehci_pci_type_info ) ;\n for ( i = 0 ;\n i < ARRAY_SIZE ( ehci_pci_info ) ;\n i ++ ) {\n ehci_type_info . name = ehci_pci_info [ i ] . name ;\n ehci_type_info . class_data = ehci_pci_info + i ;\n type_register ( & ehci_type_info ) ;\n }\n }"}
{"idx": 8147, "target": 0, "func": "static int match_principals_file ( struct ssh * ssh , struct passwd * pw , char * file , struct sshkey_cert * cert , struct sshauthopt * * authoptsp ) {\n FILE * f ;\n int success ;\n if ( authoptsp != NULL ) * authoptsp = NULL ;\n temporarily_use_uid ( pw ) ;\n debug ( \"trying authorized principals file %s\" , file ) ;\n if ( ( f = auth_openprincipals ( file , pw , options . strict_modes ) ) == NULL ) {\n restore_uid ( ) ;\n return 0 ;\n }\n success = process_principals ( ssh , f , file , cert , authoptsp ) ;\n fclose ( f ) ;\n restore_uid ( ) ;\n return success ;\n }"}
{"idx": 8148, "target": 0, "func": "void vp9_idct16x16_256_add_sse2 ( const int16_t * input , uint8_t * dest , int stride ) {\n const __m128i rounding = _mm_set1_epi32 ( DCT_CONST_ROUNDING ) ;\n const __m128i final_rounding = _mm_set1_epi16 ( 1 << 5 ) ;\n const __m128i zero = _mm_setzero_si128 ( ) ;\n const __m128i stg2_0 = pair_set_epi16 ( cospi_30_64 , - cospi_2_64 ) ;\n const __m128i stg2_1 = pair_set_epi16 ( cospi_2_64 , cospi_30_64 ) ;\n const __m128i stg2_2 = pair_set_epi16 ( cospi_14_64 , - cospi_18_64 ) ;\n const __m128i stg2_3 = pair_set_epi16 ( cospi_18_64 , cospi_14_64 ) ;\n const __m128i stg2_4 = pair_set_epi16 ( cospi_22_64 , - cospi_10_64 ) ;\n const __m128i stg2_5 = pair_set_epi16 ( cospi_10_64 , cospi_22_64 ) ;\n const __m128i stg2_6 = pair_set_epi16 ( cospi_6_64 , - cospi_26_64 ) ;\n const __m128i stg2_7 = pair_set_epi16 ( cospi_26_64 , cospi_6_64 ) ;\n const __m128i stg3_0 = pair_set_epi16 ( cospi_28_64 , - cospi_4_64 ) ;\n const __m128i stg3_1 = pair_set_epi16 ( cospi_4_64 , cospi_28_64 ) ;\n const __m128i stg3_2 = pair_set_epi16 ( cospi_12_64 , - cospi_20_64 ) ;\n const __m128i stg3_3 = pair_set_epi16 ( cospi_20_64 , cospi_12_64 ) ;\n const __m128i stg4_0 = pair_set_epi16 ( cospi_16_64 , cospi_16_64 ) ;\n const __m128i stg4_1 = pair_set_epi16 ( cospi_16_64 , - cospi_16_64 ) ;\n const __m128i stg4_2 = pair_set_epi16 ( cospi_24_64 , - cospi_8_64 ) ;\n const __m128i stg4_3 = pair_set_epi16 ( cospi_8_64 , cospi_24_64 ) ;\n const __m128i stg4_4 = pair_set_epi16 ( - cospi_8_64 , cospi_24_64 ) ;\n const __m128i stg4_5 = pair_set_epi16 ( cospi_24_64 , cospi_8_64 ) ;\n const __m128i stg4_6 = pair_set_epi16 ( - cospi_24_64 , - cospi_8_64 ) ;\n const __m128i stg4_7 = pair_set_epi16 ( - cospi_8_64 , cospi_24_64 ) ;\n const __m128i stg6_0 = pair_set_epi16 ( - cospi_16_64 , cospi_16_64 ) ;\n __m128i in [ 16 ] , l [ 16 ] , r [ 16 ] , * curr1 ;\n __m128i stp1_0 , stp1_1 , stp1_2 , stp1_3 , stp1_4 , stp1_5 , stp1_6 , stp1_7 , stp1_8 , stp1_9 , stp1_10 , stp1_11 , stp1_12 , stp1_13 , stp1_14 , stp1_15 , stp1_8_0 , stp1_12_0 ;\n __m128i stp2_0 , stp2_1 , stp2_2 , stp2_3 , stp2_4 , stp2_5 , stp2_6 , stp2_7 , stp2_8 , stp2_9 , stp2_10 , stp2_11 , stp2_12 , stp2_13 , stp2_14 , stp2_15 ;\n __m128i tmp0 , tmp1 , tmp2 , tmp3 , tmp4 , tmp5 , tmp6 , tmp7 ;\n int i ;\n curr1 = l ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n in [ 0 ] = _mm_load_si128 ( ( const __m128i * ) input ) ;\n in [ 8 ] = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 1 ) ) ;\n in [ 1 ] = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 2 ) ) ;\n in [ 9 ] = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 3 ) ) ;\n in [ 2 ] = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 4 ) ) ;\n in [ 10 ] = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 5 ) ) ;\n in [ 3 ] = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 6 ) ) ;\n in [ 11 ] = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 7 ) ) ;\n in [ 4 ] = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 8 ) ) ;\n in [ 12 ] = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 9 ) ) ;\n in [ 5 ] = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 10 ) ) ;\n in [ 13 ] = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 11 ) ) ;\n in [ 6 ] = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 12 ) ) ;\n in [ 14 ] = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 13 ) ) ;\n in [ 7 ] = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 14 ) ) ;\n in [ 15 ] = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 15 ) ) ;\n array_transpose_8x8 ( in , in ) ;\n array_transpose_8x8 ( in + 8 , in + 8 ) ;\n IDCT16 curr1 [ 0 ] = _mm_add_epi16 ( stp2_0 , stp1_15 ) ;\n curr1 [ 1 ] = _mm_add_epi16 ( stp2_1 , stp1_14 ) ;\n curr1 [ 2 ] = _mm_add_epi16 ( stp2_2 , stp2_13 ) ;\n curr1 [ 3 ] = _mm_add_epi16 ( stp2_3 , stp2_12 ) ;\n curr1 [ 4 ] = _mm_add_epi16 ( stp2_4 , stp2_11 ) ;\n curr1 [ 5 ] = _mm_add_epi16 ( stp2_5 , stp2_10 ) ;\n curr1 [ 6 ] = _mm_add_epi16 ( stp2_6 , stp1_9 ) ;\n curr1 [ 7 ] = _mm_add_epi16 ( stp2_7 , stp1_8 ) ;\n curr1 [ 8 ] = _mm_sub_epi16 ( stp2_7 , stp1_8 ) ;\n curr1 [ 9 ] = _mm_sub_epi16 ( stp2_6 , stp1_9 ) ;\n curr1 [ 10 ] = _mm_sub_epi16 ( stp2_5 , stp2_10 ) ;\n curr1 [ 11 ] = _mm_sub_epi16 ( stp2_4 , stp2_11 ) ;\n curr1 [ 12 ] = _mm_sub_epi16 ( stp2_3 , stp2_12 ) ;\n curr1 [ 13 ] = _mm_sub_epi16 ( stp2_2 , stp2_13 ) ;\n curr1 [ 14 ] = _mm_sub_epi16 ( stp2_1 , stp1_14 ) ;\n curr1 [ 15 ] = _mm_sub_epi16 ( stp2_0 , stp1_15 ) ;\n curr1 = r ;\n input += 128 ;\n }\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n array_transpose_8x8 ( l + i * 8 , in ) ;\n array_transpose_8x8 ( r + i * 8 , in + 8 ) ;\n IDCT16 in [ 0 ] = _mm_add_epi16 ( stp2_0 , stp1_15 ) ;\n in [ 1 ] = _mm_add_epi16 ( stp2_1 , stp1_14 ) ;\n in [ 2 ] = _mm_add_epi16 ( stp2_2 , stp2_13 ) ;\n in [ 3 ] = _mm_add_epi16 ( stp2_3 , stp2_12 ) ;\n in [ 4 ] = _mm_add_epi16 ( stp2_4 , stp2_11 ) ;\n in [ 5 ] = _mm_add_epi16 ( stp2_5 , stp2_10 ) ;\n in [ 6 ] = _mm_add_epi16 ( stp2_6 , stp1_9 ) ;\n in [ 7 ] = _mm_add_epi16 ( stp2_7 , stp1_8 ) ;\n in [ 8 ] = _mm_sub_epi16 ( stp2_7 , stp1_8 ) ;\n in [ 9 ] = _mm_sub_epi16 ( stp2_6 , stp1_9 ) ;\n in [ 10 ] = _mm_sub_epi16 ( stp2_5 , stp2_10 ) ;\n in [ 11 ] = _mm_sub_epi16 ( stp2_4 , stp2_11 ) ;\n in [ 12 ] = _mm_sub_epi16 ( stp2_3 , stp2_12 ) ;\n in [ 13 ] = _mm_sub_epi16 ( stp2_2 , stp2_13 ) ;\n in [ 14 ] = _mm_sub_epi16 ( stp2_1 , stp1_14 ) ;\n in [ 15 ] = _mm_sub_epi16 ( stp2_0 , stp1_15 ) ;\n in [ 0 ] = _mm_adds_epi16 ( in [ 0 ] , final_rounding ) ;\n in [ 1 ] = _mm_adds_epi16 ( in [ 1 ] , final_rounding ) ;\n in [ 2 ] = _mm_adds_epi16 ( in [ 2 ] , final_rounding ) ;\n in [ 3 ] = _mm_adds_epi16 ( in [ 3 ] , final_rounding ) ;\n in [ 4 ] = _mm_adds_epi16 ( in [ 4 ] , final_rounding ) ;\n in [ 5 ] = _mm_adds_epi16 ( in [ 5 ] , final_rounding ) ;\n in [ 6 ] = _mm_adds_epi16 ( in [ 6 ] , final_rounding ) ;\n in [ 7 ] = _mm_adds_epi16 ( in [ 7 ] , final_rounding ) ;\n in [ 8 ] = _mm_adds_epi16 ( in [ 8 ] , final_rounding ) ;\n in [ 9 ] = _mm_adds_epi16 ( in [ 9 ] , final_rounding ) ;\n in [ 10 ] = _mm_adds_epi16 ( in [ 10 ] , final_rounding ) ;\n in [ 11 ] = _mm_adds_epi16 ( in [ 11 ] , final_rounding ) ;\n in [ 12 ] = _mm_adds_epi16 ( in [ 12 ] , final_rounding ) ;\n in [ 13 ] = _mm_adds_epi16 ( in [ 13 ] , final_rounding ) ;\n in [ 14 ] = _mm_adds_epi16 ( in [ 14 ] , final_rounding ) ;\n in [ 15 ] = _mm_adds_epi16 ( in [ 15 ] , final_rounding ) ;\n in [ 0 ] = _mm_srai_epi16 ( in [ 0 ] , 6 ) ;\n in [ 1 ] = _mm_srai_epi16 ( in [ 1 ] , 6 ) ;\n in [ 2 ] = _mm_srai_epi16 ( in [ 2 ] , 6 ) ;\n in [ 3 ] = _mm_srai_epi16 ( in [ 3 ] , 6 ) ;\n in [ 4 ] = _mm_srai_epi16 ( in [ 4 ] , 6 ) ;\n in [ 5 ] = _mm_srai_epi16 ( in [ 5 ] , 6 ) ;\n in [ 6 ] = _mm_srai_epi16 ( in [ 6 ] , 6 ) ;\n in [ 7 ] = _mm_srai_epi16 ( in [ 7 ] , 6 ) ;\n in [ 8 ] = _mm_srai_epi16 ( in [ 8 ] , 6 ) ;\n in [ 9 ] = _mm_srai_epi16 ( in [ 9 ] , 6 ) ;\n in [ 10 ] = _mm_srai_epi16 ( in [ 10 ] , 6 ) ;\n in [ 11 ] = _mm_srai_epi16 ( in [ 11 ] , 6 ) ;\n in [ 12 ] = _mm_srai_epi16 ( in [ 12 ] , 6 ) ;\n in [ 13 ] = _mm_srai_epi16 ( in [ 13 ] , 6 ) ;\n in [ 14 ] = _mm_srai_epi16 ( in [ 14 ] , 6 ) ;\n in [ 15 ] = _mm_srai_epi16 ( in [ 15 ] , 6 ) ;\n RECON_AND_STORE ( dest , in [ 0 ] ) ;\n RECON_AND_STORE ( dest , in [ 1 ] ) ;\n RECON_AND_STORE ( dest , in [ 2 ] ) ;\n RECON_AND_STORE ( dest , in [ 3 ] ) ;\n RECON_AND_STORE ( dest , in [ 4 ] ) ;\n RECON_AND_STORE ( dest , in [ 5 ] ) ;\n RECON_AND_STORE ( dest , in [ 6 ] ) ;\n RECON_AND_STORE ( dest , in [ 7 ] ) ;\n RECON_AND_STORE ( dest , in [ 8 ] ) ;\n RECON_AND_STORE ( dest , in [ 9 ] ) ;\n RECON_AND_STORE ( dest , in [ 10 ] ) ;\n RECON_AND_STORE ( dest , in [ 11 ] ) ;\n RECON_AND_STORE ( dest , in [ 12 ] ) ;\n RECON_AND_STORE ( dest , in [ 13 ] ) ;\n RECON_AND_STORE ( dest , in [ 14 ] ) ;\n RECON_AND_STORE ( dest , in [ 15 ] ) ;\n dest += 8 - ( stride * 16 ) ;\n }\n }"}
{"idx": 8149, "target": 0, "func": "static void restore_time_zone ( FILE * sql_file , const char * delimiter ) {\n fprintf ( sql_file , \"/*!50003 SET time_zone = @saved_time_zone */ %s\\n\" , ( const char * ) delimiter ) ;\n }"}
{"idx": 8150, "target": 0, "func": "TSMBuffer TSMBufferCreate ( void ) {\n TSMBuffer bufp ;\n HdrHeapSDKHandle * new_heap = new HdrHeapSDKHandle ;\n new_heap -> m_heap = new_HdrHeap ( ) ;\n bufp = ( TSMBuffer ) new_heap ;\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n return bufp ;\n }"}
{"idx": 8151, "target": 0, "func": "inline bool is_delimiter_command ( char * name , ulong len ) {\n return ( len >= DELIMITER_NAME_LEN && ! my_strnncoll ( charset_info , ( uchar * ) name , DELIMITER_NAME_LEN , ( uchar * ) DELIMITER_NAME , DELIMITER_NAME_LEN ) ) ;\n }"}
{"idx": 8152, "target": 0, "func": "void ff_init_qscale_tab ( MpegEncContext * s ) {\n int8_t * const qscale_table = s -> current_picture . qscale_table ;\n int i ;\n for ( i = 0 ;\n i < s -> mb_num ;\n i ++ ) {\n unsigned int lam = s -> lambda_table [ s -> mb_index2xy [ i ] ] ;\n int qp = ( lam * 139 + FF_LAMBDA_SCALE * 64 ) >> ( FF_LAMBDA_SHIFT + 7 ) ;\n qscale_table [ s -> mb_index2xy [ i ] ] = av_clip ( qp , s -> avctx -> qmin , s -> avctx -> qmax ) ;\n }\n }"}
{"idx": 8153, "target": 0, "func": "static void s_aos_reset ( stream * s ) {\n s -> position = 0 ;\n s -> srptr = s -> srlimit = s -> cbuf - 1 ;\n s -> end_status = 0 ;\n }"}
{"idx": 8154, "target": 0, "func": "int elg_encrypt ( int algo , MPI * resarr , MPI data , MPI * pkey ) {\n ELG_public_key pk ;\n if ( ! is_ELGAMAL ( algo ) ) return G10ERR_PUBKEY_ALGO ;\n if ( ! data || ! pkey [ 0 ] || ! pkey [ 1 ] || ! pkey [ 2 ] ) return G10ERR_BAD_MPI ;\n pk . p = pkey [ 0 ] ;\n pk . g = pkey [ 1 ] ;\n pk . y = pkey [ 2 ] ;\n resarr [ 0 ] = mpi_alloc ( mpi_get_nlimbs ( pk . p ) ) ;\n resarr [ 1 ] = mpi_alloc ( mpi_get_nlimbs ( pk . p ) ) ;\n do_encrypt ( resarr [ 0 ] , resarr [ 1 ] , data , & pk ) ;\n return 0 ;\n }"}
{"idx": 8155, "target": 0, "func": "int tm_publish ( char * name , void * info , int len , tm_event_t * event ) {\n int rc = TM_SUCCESS ;\n struct tcp_chan * chan = NULL ;\n if ( ! init_done ) return TM_BADINIT ;\n * event = new_event ( ) ;\n if ( startcom ( TM_POSTINFO , * event , & chan ) != DIS_SUCCESS ) return TM_ESYSTEM ;\n if ( diswst ( chan , name ) != DIS_SUCCESS ) {\n rc = TM_ESYSTEM ;\n goto tm_publish_cleanup ;\n }\n if ( diswcs ( chan , ( char * ) info , len ) != DIS_SUCCESS ) {\n rc = TM_ESYSTEM ;\n goto tm_publish_cleanup ;\n }\n DIS_tcp_wflush ( chan ) ;\n add_event ( * event , TM_ERROR_NODE , TM_POSTINFO , NULL ) ;\n tm_publish_cleanup : if ( chan != NULL ) DIS_tcp_cleanup ( chan ) ;\n return rc ;\n }"}
{"idx": 8156, "target": 1, "func": "const EVP_CIPHER * EVP_aes_ ## keylen ## _ ## mode ( void ) \\ {\n return & aes_ ## keylen ## _ ## mode ;\n }\n # 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_CAPABLE ( OPENSSL_armcap_P & ARMV7_NEON ) # endif # if defined ( VPAES_ASM ) # define VPAES_CAPABLE ( OPENSSL_armcap_P & ARMV7_NEON ) # endif # define HWAES_CAPABLE ( OPENSSL_armcap_P & ARMV8_AES ) # define HWAES_set_encrypt_key aes_v8_set_encrypt_key # define HWAES_set_decrypt_key aes_v8_set_decrypt_key # define HWAES_encrypt aes_v8_encrypt # define HWAES_decrypt aes_v8_decrypt # define HWAES_cbc_encrypt aes_v8_cbc_encrypt # define HWAES_ctr32_encrypt_blocks aes_v8_ctr32_encrypt_blocks # endif # endif # if defined ( HWAES_CAPABLE ) int HWAES_set_encrypt_key ( const unsigned char * userKey , const int bits , AES_KEY * key ) ;\n int HWAES_set_decrypt_key ( const unsigned char * userKey , const int bits , AES_KEY * key ) ;\n void HWAES_encrypt ( const unsigned char * in , unsigned char * out , const AES_KEY * key ) ;\n void HWAES_decrypt ( const unsigned char * in , unsigned char * out , const AES_KEY * key ) ;\n void HWAES_cbc_encrypt ( const unsigned char * in , unsigned char * out , size_t length , const AES_KEY * key , unsigned char * ivec , const int enc ) ;\n void HWAES_ctr32_encrypt_blocks ( const unsigned char * in , unsigned char * out , size_t len , const AES_KEY * key , const unsigned char ivec [ 16 ] ) ;\n void HWAES_xts_encrypt ( const unsigned char * inp , unsigned char * out , size_t len , const AES_KEY * key1 , const AES_KEY * key2 , const unsigned char iv [ 16 ] ) ;\n void HWAES_xts_decrypt ( const unsigned char * inp , unsigned char * out , size_t len , const AES_KEY * key1 , const AES_KEY * key2 , const unsigned char iv [ 16 ] ) ;\n # endif # define BLOCK_CIPHER_generic_pack ( nid , keylen , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 16 , 16 , cbc , cbc , CBC , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 16 , 0 , ecb , ecb , ECB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , ofb128 , ofb , OFB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb128 , cfb , CFB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb1 , cfb1 , CFB , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb8 , cfb8 , CFB , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , ctr , ctr , CTR , flags ) static int aes_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n int ret , mode ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n mode = EVP_CIPHER_CTX_mode ( ctx ) ;\n if ( ( mode == EVP_CIPH_ECB_MODE || mode == EVP_CIPH_CBC_MODE ) && ! enc ) {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_decrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n # endif }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CBC_MODE ) {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = ( cbc128_f ) bsaes_cbc_encrypt ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n }\n }\n else # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_encrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n else # endif # ifdef HWAES_ctr32_encrypt_blocks if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) HWAES_ctr32_encrypt_blocks ;\n else # endif ( void ) 0 ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CTR_MODE ) {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . ctr = ( ctr128_f ) bsaes_ctr32_encrypt_blocks ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n # ifdef AES_CTR_ASM if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) AES_ctr32_encrypt ;\n # endif }\n if ( ret < 0 ) {\n EVPerr ( EVP_F_AES_INIT_KEY , EVP_R_AES_KEY_SETUP_FAILED ) ;\n return 0 ;\n }\n return 1 ;\n }\n static int aes_cbc_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( dat -> stream . cbc ) ( * dat -> stream . cbc ) ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_encrypting ( ctx ) ) ;\n else if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) CRYPTO_cbc128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , dat -> block ) ;\n else CRYPTO_cbc128_decrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , dat -> block ) ;\n return 1 ;\n }\n static int aes_ecb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n size_t bl = EVP_CIPHER_CTX_block_size ( ctx ) ;\n size_t i ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( len < bl ) return 1 ;\n for ( i = 0 , len -= bl ;\n i <= len ;\n i += bl ) ( * dat -> block ) ( in + i , out + i , & dat -> ks ) ;\n return 1 ;\n }\n static int aes_ofb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_ofb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb8_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_8_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb1_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( EVP_CIPHER_CTX_test_flags ( ctx , EVP_CIPH_FLAG_LENGTH_BITS ) ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n while ( len >= MAXBITCHUNK ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , MAXBITCHUNK * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n len -= MAXBITCHUNK ;\n }\n if ( len ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n }\n return 1 ;\n }\n static int aes_ctr_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n unsigned int num = EVP_CIPHER_CTX_num ( ctx ) ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( dat -> stream . ctr ) CRYPTO_ctr128_encrypt_ctr32 ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> stream . ctr ) ;\n else CRYPTO_ctr128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n BLOCK_CIPHER_generic_pack ( NID_aes , 128 , 0 ) BLOCK_CIPHER_generic_pack ( NID_aes , 192 , 0 ) BLOCK_CIPHER_generic_pack ( NID_aes , 256 , 0 ) static int aes_gcm_cleanup ( EVP_CIPHER_CTX * c ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , c ) ;\n OPENSSL_cleanse ( & gctx -> gcm , sizeof ( gctx -> gcm ) ) ;\n if ( gctx -> iv != EVP_CIPHER_CTX_iv_noconst ( c ) ) OPENSSL_free ( gctx -> iv ) ;\n return 1 ;\n }\n static void ctr64_inc ( unsigned char * counter ) {\n int n = 8 ;\n unsigned char c ;\n do {\n -- n ;\n c = counter [ n ] ;\n ++ c ;\n counter [ n ] = c ;\n if ( c ) return ;\n }\n while ( n ) ;\n }\n static int aes_gcm_ctrl ( EVP_CIPHER_CTX * c , int type , int arg , void * ptr ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , c ) ;\n switch ( type ) {\n case EVP_CTRL_INIT : gctx -> key_set = 0 ;\n gctx -> iv_set = 0 ;\n gctx -> ivlen = EVP_CIPHER_CTX_iv_length ( c ) ;\n gctx -> iv = EVP_CIPHER_CTX_iv_noconst ( c ) ;\n gctx -> taglen = - 1 ;\n gctx -> iv_gen = 0 ;\n gctx -> tls_aad_len = - 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_IVLEN : if ( arg <= 0 ) return 0 ;\n if ( ( arg > EVP_MAX_IV_LENGTH ) && ( arg > gctx -> ivlen ) ) {\n if ( gctx -> iv != EVP_CIPHER_CTX_iv_noconst ( c ) ) OPENSSL_free ( gctx -> iv ) ;\n gctx -> iv = OPENSSL_malloc ( arg ) ;\n if ( gctx -> iv == NULL ) return 0 ;\n }\n gctx -> ivlen = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_TAG : if ( arg <= 0 || arg > 16 || EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n gctx -> taglen = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_GET_TAG : if ( arg <= 0 || arg > 16 || ! EVP_CIPHER_CTX_encrypting ( c ) || gctx -> taglen < 0 ) return 0 ;\n memcpy ( ptr , EVP_CIPHER_CTX_buf_noconst ( c ) , arg ) ;\n return 1 ;\n case EVP_CTRL_GCM_SET_IV_FIXED : if ( arg == - 1 ) {\n memcpy ( gctx -> iv , ptr , gctx -> ivlen ) ;\n gctx -> iv_gen = 1 ;\n return 1 ;\n }\n if ( ( arg < 4 ) || ( gctx -> ivlen - arg ) < 8 ) return 0 ;\n if ( arg ) memcpy ( gctx -> iv , ptr , arg ) ;\n if ( EVP_CIPHER_CTX_encrypting ( c ) && RAND_bytes ( gctx -> iv + arg , gctx -> ivlen - arg ) <= 0 ) return 0 ;\n gctx -> iv_gen = 1 ;\n return 1 ;\n case EVP_CTRL_GCM_IV_GEN : if ( gctx -> iv_gen == 0 || gctx -> key_set == 0 ) return 0 ;\n CRYPTO_gcm128_setiv ( & gctx -> gcm , gctx -> iv , gctx -> ivlen ) ;\n if ( arg <= 0 || arg > gctx -> ivlen ) arg = gctx -> ivlen ;\n memcpy ( ptr , gctx -> iv + gctx -> ivlen - arg , arg ) ;\n ctr64_inc ( gctx -> iv + gctx -> ivlen - 8 ) ;\n gctx -> iv_set = 1 ;\n return 1 ;\n case EVP_CTRL_GCM_SET_IV_INV : if ( gctx -> iv_gen == 0 || gctx -> key_set == 0 || EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( gctx -> iv + gctx -> ivlen - arg , ptr , arg ) ;\n CRYPTO_gcm128_setiv ( & gctx -> gcm , gctx -> iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_TLS1_AAD : if ( arg != EVP_AEAD_TLS1_AAD_LEN ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n gctx -> tls_aad_len = arg ;\n {\n unsigned int len = EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] << 8 | EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] ;\n len -= EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n if ( ! EVP_CIPHER_CTX_encrypting ( c ) ) len -= EVP_GCM_TLS_TAG_LEN ;\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] = len >> 8 ;\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] = len & 0xff ;\n }\n return EVP_GCM_TLS_TAG_LEN ;\n case EVP_CTRL_COPY : {\n EVP_CIPHER_CTX * out = ptr ;\n EVP_AES_GCM_CTX * gctx_out = EVP_C_DATA ( EVP_AES_GCM_CTX , out ) ;\n if ( gctx -> gcm . key ) {\n if ( gctx -> gcm . key != & gctx -> ks ) return 0 ;\n gctx_out -> gcm . key = & gctx_out -> ks ;\n }\n if ( gctx -> iv == EVP_CIPHER_CTX_iv_noconst ( c ) ) gctx_out -> iv = EVP_CIPHER_CTX_iv_noconst ( out ) ;\n else {\n gctx_out -> iv = OPENSSL_malloc ( gctx -> ivlen ) ;\n if ( gctx_out -> iv == NULL ) return 0 ;\n memcpy ( gctx_out -> iv , gctx -> iv , gctx -> ivlen ) ;\n }\n return 1 ;\n }\n default : return - 1 ;\n }\n }\n static int aes_gcm_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n if ( ! iv && ! key ) return 1 ;\n if ( key ) {\n do {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) HWAES_encrypt ) ;\n # ifdef HWAES_ctr32_encrypt_blocks gctx -> ctr = ( ctr128_f ) HWAES_ctr32_encrypt_blocks ;\n # else gctx -> ctr = NULL ;\n # endif break ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE ) {\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) AES_encrypt ) ;\n gctx -> ctr = ( ctr128_f ) bsaes_ctr32_encrypt_blocks ;\n break ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) vpaes_encrypt ) ;\n gctx -> ctr = NULL ;\n break ;\n }\n else # endif ( void ) 0 ;\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) AES_encrypt ) ;\n # ifdef AES_CTR_ASM gctx -> ctr = ( ctr128_f ) AES_ctr32_encrypt ;\n # else gctx -> ctr = NULL ;\n # endif }\n while ( 0 ) ;\n if ( iv == NULL && gctx -> iv_set ) iv = gctx -> iv ;\n if ( iv ) {\n CRYPTO_gcm128_setiv ( & gctx -> gcm , iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n }\n gctx -> key_set = 1 ;\n }\n else {\n if ( gctx -> key_set ) CRYPTO_gcm128_setiv ( & gctx -> gcm , iv , gctx -> ivlen ) ;\n else memcpy ( gctx -> iv , iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n gctx -> iv_gen = 0 ;\n }\n return 1 ;\n }\n static int aes_gcm_tls_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n int rv = - 1 ;\n if ( out != in || len < ( EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ) ) return - 1 ;\n if ( EVP_CIPHER_CTX_ctrl ( ctx , EVP_CIPHER_CTX_encrypting ( ctx ) ? EVP_CTRL_GCM_IV_GEN : EVP_CTRL_GCM_SET_IV_INV , EVP_GCM_TLS_EXPLICIT_IV_LEN , out ) <= 0 ) goto err ;\n if ( CRYPTO_gcm128_aad ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , gctx -> tls_aad_len ) ) goto err ;\n in += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n out += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n len -= EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ;\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 32 && AES_GCM_ASM ( gctx ) ) {\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_encrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) goto err ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 32 && AES_GCM_ASM2 ( gctx ) ) {\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) goto err ;\n }\n out += len ;\n CRYPTO_gcm128_tag ( & gctx -> gcm , out , EVP_GCM_TLS_TAG_LEN ) ;\n rv = len + EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ;\n }\n else {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 16 && AES_GCM_ASM ( gctx ) ) {\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_decrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) goto err ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 16 && AES_GCM_ASM2 ( gctx ) ) {\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) goto err ;\n }\n CRYPTO_gcm128_tag ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , EVP_GCM_TLS_TAG_LEN ) ;\n if ( CRYPTO_memcmp ( EVP_CIPHER_CTX_buf_noconst ( ctx ) , in + len , EVP_GCM_TLS_TAG_LEN ) ) {\n OPENSSL_cleanse ( out , len ) ;\n goto err ;\n }\n rv = len ;\n }\n err : gctx -> iv_set = 0 ;\n gctx -> tls_aad_len = - 1 ;\n return rv ;\n }\n static int aes_gcm_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n if ( ! gctx -> key_set ) return - 1 ;\n if ( gctx -> tls_aad_len >= 0 ) return aes_gcm_tls_cipher ( ctx , out , in , len ) ;\n if ( ! gctx -> iv_set ) return - 1 ;\n if ( in ) {\n if ( out == NULL ) {\n if ( CRYPTO_gcm128_aad ( & gctx -> gcm , in , len ) ) return - 1 ;\n }\n else if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 32 && AES_GCM_ASM ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_encrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) return - 1 ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 32 && AES_GCM_ASM2 ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) return - 1 ;\n }\n }\n else {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 16 && AES_GCM_ASM ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_decrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) return - 1 ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 16 && AES_GCM_ASM2 ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) return - 1 ;\n }\n }\n return len ;\n }\n else {\n if ( ! EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> taglen < 0 ) return - 1 ;\n if ( CRYPTO_gcm128_finish ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , gctx -> taglen ) != 0 ) return - 1 ;\n gctx -> iv_set = 0 ;\n return 0 ;\n }\n CRYPTO_gcm128_tag ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , 16 ) ;\n gctx -> taglen = 16 ;\n gctx -> iv_set = 0 ;\n return 0 ;\n }\n }\n # define CUSTOM_FLAGS ( EVP_CIPH_FLAG_DEFAULT_ASN1 \\ | EVP_CIPH_CUSTOM_IV | EVP_CIPH_FLAG_CUSTOM_CIPHER \\ | EVP_CIPH_ALWAYS_CALL_INIT | EVP_CIPH_CTRL_INIT \\ | EVP_CIPH_CUSTOM_COPY ) BLOCK_CIPHER_custom ( NID_aes , 128 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 192 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 256 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) static int aes_xts_ctrl ( EVP_CIPHER_CTX * c , int type , int arg , void * ptr ) {\n EVP_AES_XTS_CTX * xctx = EVP_C_DATA ( EVP_AES_XTS_CTX , c ) ;\n if ( type == EVP_CTRL_COPY ) {\n EVP_CIPHER_CTX * out = ptr ;\n EVP_AES_XTS_CTX * xctx_out = EVP_C_DATA ( EVP_AES_XTS_CTX , out ) ;\n if ( xctx -> xts . key1 ) {\n if ( xctx -> xts . key1 != & xctx -> ks1 ) return 0 ;\n xctx_out -> xts . key1 = & xctx_out -> ks1 ;\n }\n if ( xctx -> xts . key2 ) {\n if ( xctx -> xts . key2 != & xctx -> ks2 ) return 0 ;\n xctx_out -> xts . key2 = & xctx_out -> ks2 ;\n }\n return 1 ;\n }\n else if ( type != EVP_CTRL_INIT ) return - 1 ;\n xctx -> xts . key1 = NULL ;\n xctx -> xts . key2 = NULL ;\n return 1 ;\n }\n static int aes_xts_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n EVP_AES_XTS_CTX * xctx = EVP_C_DATA ( EVP_AES_XTS_CTX , ctx ) ;\n if ( ! iv && ! key ) return 1 ;\n if ( key ) do {\n # ifdef AES_XTS_ASM xctx -> stream = enc ? AES_xts_encrypt : AES_xts_decrypt ;\n # else xctx -> stream = NULL ;\n # endif # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n if ( enc ) {\n HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) HWAES_encrypt ;\n # ifdef HWAES_xts_encrypt xctx -> stream = HWAES_xts_encrypt ;\n # endif }\n else {\n HWAES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) HWAES_decrypt ;\n # ifdef HWAES_xts_decrypt xctx -> stream = HWAES_xts_decrypt ;\n # endif }\n HWAES_set_encrypt_key ( key + EVP_CIPHER_CTX_key_length ( ctx ) / 2 , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks2 . ks ) ;\n xctx -> xts . block2 = ( block128_f ) HWAES_encrypt ;\n xctx -> xts . key1 = & xctx -> ks1 ;\n break ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE ) xctx -> stream = enc ? bsaes_xts_encrypt : bsaes_xts_decrypt ;\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n if ( enc ) {\n vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) vpaes_encrypt ;\n }\n else {\n vpaes_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) vpaes_decrypt ;\n }\n vpaes_set_encrypt_key ( key + EVP_CIPHER_CTX_key_length ( ctx ) / 2 , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks2 . ks ) ;\n xctx -> xts . block2 = ( block128_f ) vpaes_encrypt ;\n xctx -> xts . key1 = & xctx -> ks1 ;\n break ;\n }\n else # endif ( void ) 0 ;\n if ( enc ) {\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) AES_encrypt ;\n }\n else {\n AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) AES_decrypt ;\n }\n AES_set_encrypt_key ( key + EVP_CIPHER_CTX_key_length ( ctx ) / 2 , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks2 . ks ) ;\n xctx -> xts . block2 = ( block128_f ) AES_encrypt ;\n xctx -> xts . key1 = & xctx -> ks1 ;\n }\n while ( 0 ) ;\n if ( iv ) {\n xctx -> xts . key2 = & xctx -> ks2 ;\n memcpy ( EVP_CIPHER_CTX_iv_noconst ( ctx ) , iv , 16 ) ;\n }\n return 1 ;\n }\n static int aes_xts_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_XTS_CTX * xctx = EVP_C_DATA ( EVP_AES_XTS_CTX , ctx ) ;\n if ( ! xctx -> xts . key1 || ! xctx -> xts . key2 ) return 0 ;\n if ( ! out || ! in || len < AES_BLOCK_SIZE ) return 0 ;\n if ( xctx -> stream ) ( * xctx -> stream ) ( in , out , len , xctx -> xts . key1 , xctx -> xts . key2 , EVP_CIPHER_CTX_iv_noconst ( ctx ) ) ;\n else if ( CRYPTO_xts128_encrypt ( & xctx -> xts , EVP_CIPHER_CTX_iv_noconst ( ctx ) , in , out , len , EVP_CIPHER_CTX_encrypting ( ctx ) ) ) return 0 ;\n return 1 ;\n }\n # define aes_xts_cleanup NULL # define XTS_FLAGS ( EVP_CIPH_FLAG_DEFAULT_ASN1 | EVP_CIPH_CUSTOM_IV \\ | EVP_CIPH_ALWAYS_CALL_INIT | EVP_CIPH_CTRL_INIT \\ | EVP_CIPH_CUSTOM_COPY ) BLOCK_CIPHER_custom ( NID_aes , 128 , 1 , 16 , xts , XTS , XTS_FLAGS )"}
{"idx": 8157, "target": 0, "func": "static int set_property ( const char * name , const char * value , void * opaque ) {\n DeviceState * dev = opaque ;\n if ( strcmp ( name , \"driver\" ) == 0 ) return 0 ;\n if ( strcmp ( name , \"bus\" ) == 0 ) return 0 ;\n if ( qdev_prop_parse ( dev , name , value ) == - 1 ) {\n qemu_error ( \"can't set property \\\"%s\\\" to \\\"%s\\\" for \\\"%s\\\"\\n\" , name , value , dev -> info -> name ) ;\n return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 8158, "target": 0, "func": "bool gs_is_null_device ( gx_device * dev ) {\n return dev -> procs . fill_path == gs_null_device . procs . fill_path ;\n }"}
{"idx": 8159, "target": 0, "func": "static const char * server_version_string ( MYSQL * con ) {\n if ( server_version == NULL ) {\n MYSQL_RES * result ;\n if ( ! mysql_query ( con , \"select @@version_comment limit 1\" ) && ( result = mysql_use_result ( con ) ) ) {\n MYSQL_ROW cur = mysql_fetch_row ( result ) ;\n if ( cur && cur [ 0 ] ) {\n size_t len = strlen ( mysql_get_server_info ( con ) ) + strlen ( cur [ 0 ] ) + 2 ;\n if ( ( server_version = ( char * ) my_malloc ( len , MYF ( MY_WME ) ) ) ) {\n char * bufp ;\n bufp = strmov ( server_version , mysql_get_server_info ( con ) ) ;\n bufp = strmov ( bufp , \" \" ) ;\n ( void ) strmov ( bufp , cur [ 0 ] ) ;\n }\n }\n mysql_free_result ( result ) ;\n }\n if ( server_version == NULL ) server_version = my_strdup ( mysql_get_server_info ( con ) , MYF ( MY_WME ) ) ;\n }\n return server_version ? server_version : \"\" ;\n }"}
{"idx": 8160, "target": 0, "func": "void nautilus_file_operations_trash_or_delete ( GList * files , GtkWindow * parent_window , NautilusDeleteCallback done_callback , gpointer done_callback_data ) {\n trash_or_delete_internal ( files , parent_window , TRUE , done_callback , done_callback_data ) ;\n }"}
{"idx": 8161, "target": 0, "func": "TSReturnCode TSMimeHdrClone ( TSMBuffer dest_bufp , TSMBuffer src_bufp , TSMLoc src_hdr , TSMLoc * locp ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( dest_bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_mbuffer ( src_bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_mime_hdr_handle ( src_hdr ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_http_hdr_handle ( src_hdr ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) locp ) == TS_SUCCESS ) ;\n if ( ! isWriteable ( dest_bufp ) ) {\n return TS_ERROR ;\n }\n HdrHeap * s_heap , * d_heap ;\n MIMEHdrImpl * s_mh , * d_mh ;\n s_heap = ( ( HdrHeapSDKHandle * ) src_bufp ) -> m_heap ;\n d_heap = ( ( HdrHeapSDKHandle * ) dest_bufp ) -> m_heap ;\n s_mh = _hdr_mloc_to_mime_hdr_impl ( src_hdr ) ;\n d_mh = mime_hdr_clone ( s_mh , s_heap , d_heap , ( s_heap != d_heap ) ) ;\n * locp = ( TSMLoc ) d_mh ;\n return TS_SUCCESS ;\n }"}
{"idx": 8162, "target": 0, "func": "TEST_F ( SoundContentSettingObserverTest , DontUnmuteWhenMutedByExtension ) {\n EXPECT_FALSE ( web_contents ( ) -> IsAudioMuted ( ) ) ;\n SetMuteStateForReason ( true , TabMutedReason : : EXTENSION ) ;\n EXPECT_TRUE ( web_contents ( ) -> IsAudioMuted ( ) ) ;\n NavigateAndCommit ( GURL ( kURL2 ) ) ;\n EXPECT_TRUE ( web_contents ( ) -> IsAudioMuted ( ) ) ;\n }"}
{"idx": 8163, "target": 0, "func": "static gboolean gst_asf_demux_check_chained_asf ( GstASFDemux * demux ) {\n guint64 off = demux -> data_offset + ( demux -> packet * demux -> packet_size ) ;\n GstFlowReturn ret = GST_FLOW_OK ;\n GstBuffer * buf = NULL ;\n gboolean header = FALSE ;\n if ( gst_asf_demux_pull_data ( demux , off , ASF_OBJECT_HEADER_SIZE , & buf , & ret ) ) {\n g_assert ( buf != NULL ) ;\n if ( gst_asf_demux_check_buffer_is_header ( demux , buf ) ) {\n GST_DEBUG_OBJECT ( demux , \"new base offset: %\" G_GUINT64_FORMAT , off ) ;\n demux -> base_offset = off ;\n header = TRUE ;\n }\n gst_buffer_unref ( buf ) ;\n }\n return header ;\n }"}
{"idx": 8164, "target": 0, "func": "TSReturnCode TSMimeHdrFieldsClear ( TSMBuffer bufp , TSMLoc obj ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( obj ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( obj ) == TS_SUCCESS ) ) ;\n if ( ! isWriteable ( bufp ) ) {\n return TS_ERROR ;\n }\n MIMEHdrImpl * mh = _hdr_mloc_to_mime_hdr_impl ( obj ) ;\n mime_hdr_fields_clear ( ( ( HdrHeapSDKHandle * ) bufp ) -> m_heap , mh ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 8165, "target": 0, "func": "int PEM_write_ ## name ( FILE * fp , type * x ) ;\n # define DECLARE_PEM_write_fp_const ( name , type ) int PEM_write_ ## name ( FILE * fp , const type * x ) ;\n # define DECLARE_PEM_write_cb_fp ( name , type ) int PEM_write_ ## name ( FILE * fp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # endif # define DECLARE_PEM_read_bio ( name , type ) type * PEM_read_bio_ ## name ( BIO * bp , type * * x , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ )"}
{"idx": 8166, "target": 0, "func": "static private_x509_cert_t * create_empty ( void ) {\n private_x509_cert_t * this ;\n INIT ( this , . public = {\n . interface = {\n . interface = {\n . get_type = _get_type , . get_subject = _get_subject , . get_issuer = _get_issuer , . has_subject = _has_subject , . has_issuer = _has_issuer , . issued_by = _issued_by , . get_public_key = _get_public_key , . get_validity = _get_validity , . get_encoding = _get_encoding , . equals = _equals , . get_ref = _get_ref , . destroy = _destroy , }\n , . get_flags = _get_flags , . get_serial = _get_serial , . get_subjectKeyIdentifier = _get_subjectKeyIdentifier , . get_authKeyIdentifier = _get_authKeyIdentifier , . get_constraint = _get_constraint , . create_subjectAltName_enumerator = _create_subjectAltName_enumerator , . create_crl_uri_enumerator = _create_crl_uri_enumerator , . create_ocsp_uri_enumerator = _create_ocsp_uri_enumerator , . create_ipAddrBlock_enumerator = _create_ipAddrBlock_enumerator , . create_name_constraint_enumerator = _create_name_constraint_enumerator , . create_cert_policy_enumerator = _create_cert_policy_enumerator , . create_policy_mapping_enumerator = _create_policy_mapping_enumerator , }\n , }\n , . version = 1 , . subjectAltNames = linked_list_create ( ) , . crl_uris = linked_list_create ( ) , . ocsp_uris = linked_list_create ( ) , . ipAddrBlocks = linked_list_create ( ) , . permitted_names = linked_list_create ( ) , . excluded_names = linked_list_create ( ) , . cert_policies = linked_list_create ( ) , . policy_mappings = linked_list_create ( ) , . pathLenConstraint = X509_NO_CONSTRAINT , . require_explicit = X509_NO_CONSTRAINT , . inhibit_mapping = X509_NO_CONSTRAINT , . inhibit_any = X509_NO_CONSTRAINT , . ref = 1 , ) ;\n return this ;\n }"}
{"idx": 8167, "target": 0, "func": "static int dissect_NOTIFY_OPTION ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ;\n proto_item * item ;\n proto_tree * subtree ;\n guint16 type ;\n guint32 count ;\n subtree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_NOTIFY_OPTION , & item , \"Notify Option\" ) ;\n offset = dissect_ndr_uint16 ( tvb , offset , pinfo , subtree , di , drep , hf_notify_option_type , & type ) ;\n proto_item_append_text ( item , \": %s\" , val_to_str ( type , printer_notify_types , \"Unknown (%d)\" ) ) ;\n offset = dissect_ndr_uint16 ( tvb , offset , pinfo , subtree , di , drep , hf_notify_option_reserved1 , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_notify_option_reserved2 , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_notify_option_reserved3 , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_notify_option_count , & count ) ;\n proto_item_append_text ( item , \", %d %s\" , count , notify_plural ( count ) ) ;\n dcv -> private_data = GINT_TO_POINTER ( ( int ) type ) ;\n offset = dissect_ndr_pointer ( tvb , offset , pinfo , subtree , di , drep , dissect_NOTIFY_OPTION_DATA , NDR_POINTER_UNIQUE , \"Notify Option Data\" , - 1 ) ;\n return offset ;\n }"}
{"idx": 8168, "target": 0, "func": "static int chacha_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char user_key [ CHACHA_KEY_SIZE ] , const unsigned char iv [ CHACHA_CTR_SIZE ] , int enc ) {\n EVP_CHACHA_KEY * key = data ( ctx ) ;\n unsigned int i ;\n if ( user_key ) for ( i = 0 ;\n i < CHACHA_KEY_SIZE ;\n i += 4 ) {\n key -> key . d [ i / 4 ] = CHACHA_U8TOU32 ( user_key + i ) ;\n }\n if ( iv ) for ( i = 0 ;\n i < CHACHA_CTR_SIZE ;\n i += 4 ) {\n key -> counter [ i / 4 ] = CHACHA_U8TOU32 ( iv + i ) ;\n }\n key -> partial_len = 0 ;\n return 1 ;\n }"}
{"idx": 8169, "target": 0, "func": "int qemuAssignDeviceMemoryAlias ( virDomainDefPtr def , virDomainMemoryDefPtr mem ) {\n size_t i ;\n int maxidx = 0 ;\n int idx ;\n for ( i = 0 ;\n i < def -> nmems ;\n i ++ ) {\n if ( ( idx = qemuDomainDeviceAliasIndex ( & def -> mems [ i ] -> info , \"dimm\" ) ) >= maxidx ) maxidx = idx + 1 ;\n }\n if ( virAsprintf ( & mem -> info . alias , \"dimm%d\" , maxidx ) < 0 ) return - 1 ;\n return 0 ;\n }"}
{"idx": 8170, "target": 0, "func": "int av_image_check_size ( unsigned int w , unsigned int h , int log_offset , void * log_ctx ) {\n ImgUtils imgutils = {\n & imgutils_class , log_offset , log_ctx }\n ;\n if ( ( int ) w > 0 && ( int ) h > 0 && ( w + 128 ) * ( uint64_t ) ( h + 128 ) < INT_MAX / 8 ) return 0 ;\n av_log ( & imgutils , AV_LOG_ERROR , \"Picture size %ux%u is invalid\\n\" , w , h ) ;\n return AVERROR ( EINVAL ) ;\n }"}
{"idx": 8171, "target": 0, "func": "static const bfd_target * srec_object_p ( bfd * abfd ) {\n void * tdata_save ;\n bfd_byte b [ 4 ] ;\n srec_init ( ) ;\n if ( bfd_seek ( abfd , ( file_ptr ) 0 , SEEK_SET ) != 0 || bfd_bread ( b , ( bfd_size_type ) 4 , abfd ) != 4 ) return NULL ;\n if ( b [ 0 ] != 'S' || ! ISHEX ( b [ 1 ] ) || ! ISHEX ( b [ 2 ] ) || ! ISHEX ( b [ 3 ] ) ) {\n bfd_set_error ( bfd_error_wrong_format ) ;\n return NULL ;\n }\n tdata_save = abfd -> tdata . any ;\n if ( ! srec_mkobject ( abfd ) || ! srec_scan ( abfd ) ) {\n if ( abfd -> tdata . any != tdata_save && abfd -> tdata . any != NULL ) bfd_release ( abfd , abfd -> tdata . any ) ;\n abfd -> tdata . any = tdata_save ;\n return NULL ;\n }\n if ( abfd -> symcount > 0 ) abfd -> flags |= HAS_SYMS ;\n return abfd -> xvec ;\n }"}
{"idx": 8172, "target": 0, "func": "int gs_main_init2 ( gs_main_instance * minst ) {\n i_ctx_t * i_ctx_p ;\n int code = gs_main_init1 ( minst ) ;\n int initial_init_level = minst -> init_done ;\n if ( code < 0 ) return code ;\n code = gs_main_init2aux ( minst ) ;\n if ( code < 0 ) return code ;\n i_ctx_p = minst -> i_ctx_p ;\n if ( initial_init_level < 2 ) {\n gx_device * pdev = gs_currentdevice ( minst -> i_ctx_p -> pgs ) ;\n gx_device_printer * ppdev = ( gx_device_printer * ) pdev ;\n if ( minst -> saved_pages_test_mode ) {\n if ( ( dev_proc ( pdev , dev_spec_op ) ( pdev , gxdso_supports_saved_pages , NULL , 0 ) <= 0 ) ) {\n minst -> saved_pages_test_mode = false ;\n }\n else {\n if ( ( code = gx_saved_pages_param_process ( ppdev , ( byte * ) \"begin\" , 5 ) ) < 0 ) return code ;\n if ( code > 0 ) if ( ( code = gs_erasepage ( minst -> i_ctx_p -> pgs ) ) < 0 ) return code ;\n }\n }\n else if ( minst -> saved_pages_initial_arg != NULL ) {\n if ( dev_proc ( pdev , dev_spec_op ) ( pdev , gxdso_supports_saved_pages , NULL , 0 ) <= 0 ) {\n outprintf ( minst -> heap , \" --saved-pages not supported by the '%s' device.\\n\" , pdev -> dname ) ;\n return gs_error_Fatal ;\n }\n code = gx_saved_pages_param_process ( ppdev , ( byte * ) minst -> saved_pages_initial_arg , strlen ( minst -> saved_pages_initial_arg ) ) ;\n if ( code > 0 ) if ( ( code = gs_erasepage ( minst -> i_ctx_p -> pgs ) ) < 0 ) return code ;\n }\n }\n if ( gs_debug_c ( ':' ) ) print_resource_usage ( minst , & gs_imemory , \"Start\" ) ;\n gp_readline_init ( & minst -> readline_data , imemory_system ) ;\n return 0 ;\n }"}
{"idx": 8173, "target": 0, "func": "void ufile_flush_io ( UFILE * f ) {\n if ( ( ! f ) || ( ! f -> fFile ) ) {\n return ;\n }\n u_file_write_flush ( NULL , 0 , f , TRUE , FALSE ) ;\n }"}
{"idx": 8174, "target": 1, "func": "static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_null ( void ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_null ( ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_reserve ( sk_ ## t1 ## _compfunc compare , int n ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_reserve ( ( OPENSSL_sk_compfunc ) compare , n ) ;\n }\n static ossl_inline int sk_ ## t1 ## _reserve ( STACK_OF ( t1 ) * sk , int n ) {\n return OPENSSL_sk_reserve ( ( OPENSSL_STACK * ) sk , n ) ;\n }\n static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 8175, "target": 0, "func": "static int ec_asn1_group2curve ( const EC_GROUP * group , X9_62_CURVE * curve ) {\n int ok = 0 , nid ;\n BIGNUM * tmp_1 = NULL , * tmp_2 = NULL ;\n unsigned char * buffer_1 = NULL , * buffer_2 = NULL , * a_buf = NULL , * b_buf = NULL ;\n size_t len_1 , len_2 ;\n unsigned char char_zero = 0 ;\n if ( ! group || ! curve || ! curve -> a || ! curve -> b ) return 0 ;\n if ( ( tmp_1 = BN_new ( ) ) == NULL || ( tmp_2 = BN_new ( ) ) == NULL ) {\n ECerr ( EC_F_EC_ASN1_GROUP2CURVE , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n nid = EC_METHOD_get_field_type ( EC_GROUP_method_of ( group ) ) ;\n if ( nid == NID_X9_62_prime_field ) {\n if ( ! EC_GROUP_get_curve_GFp ( group , NULL , tmp_1 , tmp_2 , NULL ) ) {\n ECerr ( EC_F_EC_ASN1_GROUP2CURVE , ERR_R_EC_LIB ) ;\n goto err ;\n }\n }\n else {\n if ( ! EC_GROUP_get_curve_GF2m ( group , NULL , tmp_1 , tmp_2 , NULL ) ) {\n ECerr ( EC_F_EC_ASN1_GROUP2CURVE , ERR_R_EC_LIB ) ;\n goto err ;\n }\n }\n len_1 = ( size_t ) BN_num_bytes ( tmp_1 ) ;\n len_2 = ( size_t ) BN_num_bytes ( tmp_2 ) ;\n if ( len_1 == 0 ) {\n a_buf = & char_zero ;\n len_1 = 1 ;\n }\n else {\n if ( ( buffer_1 = OPENSSL_malloc ( len_1 ) ) == NULL ) {\n ECerr ( EC_F_EC_ASN1_GROUP2CURVE , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n if ( ( len_1 = BN_bn2bin ( tmp_1 , buffer_1 ) ) == 0 ) {\n ECerr ( EC_F_EC_ASN1_GROUP2CURVE , ERR_R_BN_LIB ) ;\n goto err ;\n }\n a_buf = buffer_1 ;\n }\n if ( len_2 == 0 ) {\n b_buf = & char_zero ;\n len_2 = 1 ;\n }\n else {\n if ( ( buffer_2 = OPENSSL_malloc ( len_2 ) ) == NULL ) {\n ECerr ( EC_F_EC_ASN1_GROUP2CURVE , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n if ( ( len_2 = BN_bn2bin ( tmp_2 , buffer_2 ) ) == 0 ) {\n ECerr ( EC_F_EC_ASN1_GROUP2CURVE , ERR_R_BN_LIB ) ;\n goto err ;\n }\n b_buf = buffer_2 ;\n }\n if ( ! M_ASN1_OCTET_STRING_set ( curve -> a , a_buf , len_1 ) || ! M_ASN1_OCTET_STRING_set ( curve -> b , b_buf , len_2 ) ) {\n ECerr ( EC_F_EC_ASN1_GROUP2CURVE , ERR_R_ASN1_LIB ) ;\n goto err ;\n }\n if ( group -> seed ) {\n if ( ! curve -> seed ) if ( ( curve -> seed = ASN1_BIT_STRING_new ( ) ) == NULL ) {\n ECerr ( EC_F_EC_ASN1_GROUP2CURVE , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n curve -> seed -> flags &= ~ ( ASN1_STRING_FLAG_BITS_LEFT | 0x07 ) ;\n curve -> seed -> flags |= ASN1_STRING_FLAG_BITS_LEFT ;\n if ( ! ASN1_BIT_STRING_set ( curve -> seed , group -> seed , ( int ) group -> seed_len ) ) {\n ECerr ( EC_F_EC_ASN1_GROUP2CURVE , ERR_R_ASN1_LIB ) ;\n goto err ;\n }\n }\n else {\n if ( curve -> seed ) {\n ASN1_BIT_STRING_free ( curve -> seed ) ;\n curve -> seed = NULL ;\n }\n }\n ok = 1 ;\n err : if ( buffer_1 ) OPENSSL_free ( buffer_1 ) ;\n if ( buffer_2 ) OPENSSL_free ( buffer_2 ) ;\n if ( tmp_1 ) BN_free ( tmp_1 ) ;\n if ( tmp_2 ) BN_free ( tmp_2 ) ;\n return ( ok ) ;\n }"}
{"idx": 8176, "target": 0, "func": "TSReturnCode TSHttpAltInfoCachedReqGet ( TSHttpAltInfo infop , TSMBuffer * bufp , TSMLoc * obj ) {\n sdk_assert ( sdk_sanity_check_alt_info ( infop ) == TS_SUCCESS ) ;\n HttpAltInfo * info = ( HttpAltInfo * ) infop ;\n * ( reinterpret_cast < HTTPHdr * * > ( bufp ) ) = & info -> m_cached_req ;\n * obj = reinterpret_cast < TSMLoc > ( info -> m_cached_req . m_http ) ;\n return sdk_sanity_check_mbuffer ( * bufp ) ;\n }"}
{"idx": 8177, "target": 0, "func": "static int dissect_btgatt_microbit_pin_io_config ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , void * data ) {\n btatt_data_t * att_data = ( btatt_data_t * ) data ;\n proto_item * sub_item ;\n proto_tree * sub_tree ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) return - 1 ;\n sub_item = proto_tree_add_item ( tree , hf_gatt_microbit_pin_io_config , tvb , 0 , 3 , ENC_LITTLE_ENDIAN ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btgatt_microbit_pin_io_config ) ;\n proto_tree_add_bitmask_list ( sub_tree , tvb , 0 , 3 , hfx_btgatt_microbit_io_pins , ENC_LITTLE_ENDIAN ) ;\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 8178, "target": 0, "func": "static void nlm_print_msgres_request ( packet_info * pinfo , proto_tree * tree , tvbuff_t * tvb ) {\n nlm_msg_res_matched_data * md ;\n md = ( nlm_msg_res_matched_data * ) g_hash_table_lookup ( nlm_msg_res_matched , GINT_TO_POINTER ( pinfo -> fd -> num ) ) ;\n if ( md ) {\n proto_tree_add_uint ( tree , hf_nlm_reply_in , tvb , 0 , 0 , md -> rep_frame ) ;\n }\n }"}
{"idx": 8179, "target": 0, "func": "int gs_output_page ( gs_gstate * pgs , int num_copies , int flush ) {\n gx_device * dev = gs_currentdevice ( pgs ) ;\n cmm_dev_profile_t * dev_profile ;\n int code ;\n code = gs_gsave ( pgs ) ;\n if ( code < 0 ) return code ;\n if ( ( ( code = gs_newpath ( pgs ) ) < 0 ) || ( ( code = gs_moveto ( pgs , 0.0 , 0.0 ) ) < 0 ) || ( ( code = gs_setgray ( pgs , 0.0 ) ) < 0 ) || ( ( code = gs_fill ( pgs ) ) < 0 ) ) {\n gs_grestore ( pgs ) ;\n return code ;\n }\n code = gs_grestore ( pgs ) ;\n if ( code < 0 ) return code ;\n if ( dev -> IgnoreNumCopies ) num_copies = 1 ;\n if ( ( code = ( * dev_proc ( dev , output_page ) ) ( dev , num_copies , flush ) ) < 0 ) return code ;\n code = dev_proc ( dev , get_profile ) ( dev , & ( dev_profile ) ) ;\n if ( code < 0 ) return code ;\n if ( dev_profile -> graydetection && ! dev_profile -> pageneutralcolor ) {\n dev_profile -> pageneutralcolor = true ;\n code = gsicc_mcm_begin_monitor ( pgs -> icc_link_cache , dev ) ;\n }\n return code ;\n }"}
{"idx": 8180, "target": 0, "func": "proto_item * parseUInt16 ( proto_tree * tree , tvbuff_t * tvb , packet_info * pinfo _U_ , gint * pOffset , int hfIndex ) {\n proto_item * item = proto_tree_add_item ( tree , hfIndex , tvb , * pOffset , 2 , ENC_LITTLE_ENDIAN ) ;\n * pOffset += 2 ;\n return item ;\n }"}
{"idx": 8181, "target": 0, "func": "bool ack_h ( connection_t * c ) {\n char hisport [ MAX_STRING_SIZE ] ;\n int weight , mtu ;\n uint32_t options ;\n node_t * n ;\n bool choice ;\n if ( sscanf ( c -> buffer , \"%*d \" MAX_STRING \" %d %x\" , hisport , & weight , & options ) != 3 ) {\n logger ( LOG_ERR , \"Got bad %s from %s (%s)\" , \"ACK\" , c -> name , c -> hostname ) ;\n return false ;\n }\n n = lookup_node ( c -> name ) ;\n if ( ! n ) {\n n = new_node ( ) ;\n n -> name = xstrdup ( c -> name ) ;\n node_add ( n ) ;\n }\n else {\n if ( n -> connection ) {\n ifdebug ( CONNECTIONS ) logger ( LOG_DEBUG , \"Established a second connection with %s (%s), closing old connection\" , n -> name , n -> hostname ) ;\n terminate_connection ( n -> connection , false ) ;\n graph ( ) ;\n }\n }\n n -> connection = c ;\n c -> node = n ;\n if ( ! ( c -> options & options & OPTION_PMTU_DISCOVERY ) ) {\n c -> options &= ~ OPTION_PMTU_DISCOVERY ;\n options &= ~ OPTION_PMTU_DISCOVERY ;\n }\n c -> options |= options ;\n if ( get_config_int ( lookup_config ( c -> config_tree , \"PMTU\" ) , & mtu ) && mtu < n -> mtu ) {\n n -> mtu = mtu ;\n }\n if ( get_config_int ( lookup_config ( config_tree , \"PMTU\" ) , & mtu ) && mtu < n -> mtu ) {\n n -> mtu = mtu ;\n }\n if ( get_config_bool ( lookup_config ( c -> config_tree , \"ClampMSS\" ) , & choice ) ) {\n if ( choice ) {\n c -> options |= OPTION_CLAMP_MSS ;\n }\n else {\n c -> options &= ~ OPTION_CLAMP_MSS ;\n }\n }\n c -> allow_request = ALL ;\n c -> status . active = true ;\n ifdebug ( CONNECTIONS ) logger ( LOG_NOTICE , \"Connection with %s (%s) activated\" , c -> name , c -> hostname ) ;\n send_everything ( c ) ;\n c -> edge = new_edge ( ) ;\n c -> edge -> from = myself ;\n c -> edge -> to = n ;\n sockaddrcpy ( & c -> edge -> address , & c -> address ) ;\n sockaddr_setport ( & c -> edge -> address , hisport ) ;\n c -> edge -> weight = ( weight + c -> estimated_weight ) / 2 ;\n c -> edge -> connection = c ;\n c -> edge -> options = c -> options ;\n edge_add ( c -> edge ) ;\n if ( tunnelserver ) {\n send_add_edge ( c , c -> edge ) ;\n }\n else {\n send_add_edge ( everyone , c -> edge ) ;\n }\n graph ( ) ;\n return true ;\n }"}
{"idx": 8182, "target": 0, "func": "static int kexinit ( LIBSSH2_SESSION * session ) {\n size_t data_len = 62 ;\n size_t kex_len , hostkey_len = 0 ;\n size_t crypt_cs_len , crypt_sc_len ;\n size_t comp_cs_len , comp_sc_len ;\n size_t mac_cs_len , mac_sc_len ;\n size_t lang_cs_len , lang_sc_len ;\n unsigned char * data , * s ;\n int rc ;\n if ( session -> kexinit_state == libssh2_NB_state_idle ) {\n kex_len = LIBSSH2_METHOD_PREFS_LEN ( session -> kex_prefs , libssh2_kex_methods ) ;\n hostkey_len = LIBSSH2_METHOD_PREFS_LEN ( session -> hostkey_prefs , libssh2_hostkey_methods ( ) ) ;\n crypt_cs_len = LIBSSH2_METHOD_PREFS_LEN ( session -> local . crypt_prefs , libssh2_crypt_methods ( ) ) ;\n crypt_sc_len = LIBSSH2_METHOD_PREFS_LEN ( session -> remote . crypt_prefs , libssh2_crypt_methods ( ) ) ;\n mac_cs_len = LIBSSH2_METHOD_PREFS_LEN ( session -> local . mac_prefs , _libssh2_mac_methods ( ) ) ;\n mac_sc_len = LIBSSH2_METHOD_PREFS_LEN ( session -> remote . mac_prefs , _libssh2_mac_methods ( ) ) ;\n comp_cs_len = LIBSSH2_METHOD_PREFS_LEN ( session -> local . comp_prefs , _libssh2_comp_methods ( session ) ) ;\n comp_sc_len = LIBSSH2_METHOD_PREFS_LEN ( session -> remote . comp_prefs , _libssh2_comp_methods ( session ) ) ;\n lang_cs_len = LIBSSH2_METHOD_PREFS_LEN ( session -> local . lang_prefs , NULL ) ;\n lang_sc_len = LIBSSH2_METHOD_PREFS_LEN ( session -> remote . lang_prefs , NULL ) ;\n data_len += kex_len + hostkey_len + crypt_cs_len + crypt_sc_len + comp_cs_len + comp_sc_len + mac_cs_len + mac_sc_len + lang_cs_len + lang_sc_len ;\n s = data = LIBSSH2_ALLOC ( session , data_len ) ;\n if ( ! data ) {\n return _libssh2_error ( session , LIBSSH2_ERROR_ALLOC , \"Unable to allocate memory\" ) ;\n }\n * ( s ++ ) = SSH_MSG_KEXINIT ;\n _libssh2_random ( s , 16 ) ;\n s += 16 ;\n LIBSSH2_METHOD_PREFS_STR ( s , kex_len , session -> kex_prefs , libssh2_kex_methods ) ;\n LIBSSH2_METHOD_PREFS_STR ( s , hostkey_len , session -> hostkey_prefs , libssh2_hostkey_methods ( ) ) ;\n LIBSSH2_METHOD_PREFS_STR ( s , crypt_cs_len , session -> local . crypt_prefs , libssh2_crypt_methods ( ) ) ;\n LIBSSH2_METHOD_PREFS_STR ( s , crypt_sc_len , session -> remote . crypt_prefs , libssh2_crypt_methods ( ) ) ;\n LIBSSH2_METHOD_PREFS_STR ( s , mac_cs_len , session -> local . mac_prefs , _libssh2_mac_methods ( ) ) ;\n LIBSSH2_METHOD_PREFS_STR ( s , mac_sc_len , session -> remote . mac_prefs , _libssh2_mac_methods ( ) ) ;\n LIBSSH2_METHOD_PREFS_STR ( s , comp_cs_len , session -> local . comp_prefs , _libssh2_comp_methods ( session ) ) ;\n LIBSSH2_METHOD_PREFS_STR ( s , comp_sc_len , session -> remote . comp_prefs , _libssh2_comp_methods ( session ) ) ;\n LIBSSH2_METHOD_PREFS_STR ( s , lang_cs_len , session -> local . lang_prefs , NULL ) ;\n LIBSSH2_METHOD_PREFS_STR ( s , lang_sc_len , session -> remote . lang_prefs , NULL ) ;\n * ( s ++ ) = 0 ;\n _libssh2_htonu32 ( s , 0 ) ;\n # ifdef LIBSSH2DEBUG {\n unsigned char * p = data + 21 ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Sent KEX: %s\" , p ) ;\n p += kex_len + 4 ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Sent HOSTKEY: %s\" , p ) ;\n p += hostkey_len + 4 ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Sent CRYPT_CS: %s\" , p ) ;\n p += crypt_cs_len + 4 ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Sent CRYPT_SC: %s\" , p ) ;\n p += crypt_sc_len + 4 ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Sent MAC_CS: %s\" , p ) ;\n p += mac_cs_len + 4 ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Sent MAC_SC: %s\" , p ) ;\n p += mac_sc_len + 4 ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Sent COMP_CS: %s\" , p ) ;\n p += comp_cs_len + 4 ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Sent COMP_SC: %s\" , p ) ;\n p += comp_sc_len + 4 ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Sent LANG_CS: %s\" , p ) ;\n p += lang_cs_len + 4 ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Sent LANG_SC: %s\" , p ) ;\n p += lang_sc_len + 4 ;\n }\n # endif session -> kexinit_state = libssh2_NB_state_created ;\n }\n else {\n data = session -> kexinit_data ;\n data_len = session -> kexinit_data_len ;\n session -> kexinit_data = NULL ;\n session -> kexinit_data_len = 0 ;\n }\n rc = _libssh2_transport_send ( session , data , data_len , NULL , 0 ) ;\n if ( rc == LIBSSH2_ERROR_EAGAIN ) {\n session -> kexinit_data = data ;\n session -> kexinit_data_len = data_len ;\n return rc ;\n }\n else if ( rc ) {\n LIBSSH2_FREE ( session , data ) ;\n session -> kexinit_state = libssh2_NB_state_idle ;\n return _libssh2_error ( session , rc , \"Unable to send KEXINIT packet to remote host\" ) ;\n }\n if ( session -> local . kexinit ) {\n LIBSSH2_FREE ( session , session -> local . kexinit ) ;\n }\n session -> local . kexinit = data ;\n session -> local . kexinit_len = data_len ;\n session -> kexinit_state = libssh2_NB_state_idle ;\n return 0 ;\n }"}
{"idx": 8183, "target": 0, "func": "static int T38_packet ( void * ptr _U_ , packet_info * pinfo , epan_dissect_t * edt _U_ , const void * T38info ) {\n voip_calls_tapinfo_t * tapinfo = & the_tapinfo_struct ;\n voip_calls_info_t * callsinfo = NULL ;\n voip_calls_info_t * tmp_listinfo ;\n GList * voip_calls_graph_list ;\n GList * list ;\n gchar * frame_label = NULL ;\n gchar * comment = NULL ;\n seq_analysis_item_t * tmp_gai , * gai = NULL ;\n guint16 line_style = 2 ;\n double duration ;\n int conv_num = - 1 ;\n const t38_packet_info * pi = ( const t38_packet_info * ) T38info ;\n if ( pi -> setup_frame_number != 0 ) {\n voip_calls_graph_list = g_list_first ( tapinfo -> graph_analysis -> list ) ;\n while ( voip_calls_graph_list ) {\n tmp_gai = ( seq_analysis_item_t * ) voip_calls_graph_list -> data ;\n if ( pi -> setup_frame_number == tmp_gai -> fd -> num ) {\n gai = tmp_gai ;\n break ;\n }\n voip_calls_graph_list = g_list_next ( voip_calls_graph_list ) ;\n }\n if ( gai ) conv_num = ( int ) gai -> conv_num ;\n }\n if ( ( pi -> setup_frame_number == 0 ) || ( gai == NULL ) ) {\n list = g_list_first ( tapinfo -> callsinfo_list ) ;\n while ( list ) {\n tmp_listinfo = ( voip_calls_info_t * ) list -> data ;\n if ( tmp_listinfo -> protocol == MEDIA_T38 ) {\n callsinfo = ( voip_calls_info_t * ) ( list -> data ) ;\n break ;\n }\n list = g_list_next ( list ) ;\n }\n if ( callsinfo == NULL ) {\n callsinfo = ( voip_calls_info_t * ) g_malloc0 ( sizeof ( voip_calls_info_t ) ) ;\n callsinfo -> call_active_state = VOIP_ACTIVE ;\n callsinfo -> call_state = VOIP_UNKNOWN ;\n callsinfo -> from_identity = g_strdup ( \"T38 Media only\" ) ;\n callsinfo -> to_identity = g_strdup ( \"T38 Media only\" ) ;\n COPY_ADDRESS ( & ( callsinfo -> initial_speaker ) , & ( pinfo -> src ) ) ;\n callsinfo -> selected = FALSE ;\n callsinfo -> start_fd = pinfo -> fd ;\n callsinfo -> start_rel_ts = pinfo -> rel_ts ;\n callsinfo -> protocol = MEDIA_T38 ;\n callsinfo -> prot_info = NULL ;\n callsinfo -> free_prot_info = NULL ;\n callsinfo -> npackets = 0 ;\n callsinfo -> call_num = tapinfo -> ncalls ++ ;\n tapinfo -> callsinfo_list = g_list_prepend ( tapinfo -> callsinfo_list , callsinfo ) ;\n }\n callsinfo -> stop_fd = pinfo -> fd ;\n callsinfo -> stop_rel_ts = pinfo -> rel_ts ;\n ++ ( callsinfo -> npackets ) ;\n ++ ( tapinfo -> npackets ) ;\n conv_num = ( int ) callsinfo -> call_num ;\n }\n if ( conv_num == - 1 ) {\n return 0 ;\n }\n if ( pi -> type_msg == 0 ) {\n frame_label = g_strdup ( val_to_str ( pi -> t30ind_value , t38_T30_indicator_vals , \"Ukn (0x%02X)\" ) ) ;\n comment = g_strdup_printf ( \"t38:t30 Ind:%s\" , val_to_str ( pi -> t30ind_value , t38_T30_indicator_vals , \"Ukn (0x%02X)\" ) ) ;\n line_style = 1 ;\n }\n else if ( pi -> type_msg == 1 ) {\n switch ( pi -> Data_Field_field_type_value ) {\n case 0 : break ;\n case 2 : case 4 : frame_label = g_strdup_printf ( \"%s %s\" , val_to_str_ext ( pi -> t30_Facsimile_Control & 0x7F , & t30_facsimile_control_field_vals_short_ext , \"Ukn (0x%02X)\" ) , pi -> desc ) ;\n comment = g_strdup_printf ( \"t38:%s:HDLC:%s\" , val_to_str ( pi -> data_value , t38_T30_data_vals , \"Ukn (0x%02X)\" ) , val_to_str_ext ( pi -> t30_Facsimile_Control & 0x7F , & t30_facsimile_control_field_vals_ext , \"Ukn (0x%02X)\" ) ) ;\n break ;\n case 3 : case 5 : frame_label = g_strdup ( pi -> Data_Field_field_type_value == 3 ? \"fcs-BAD\" : \"fcs-BAD-sig-end\" ) ;\n comment = g_strdup_printf ( \"WARNING: received t38:%s:HDLC:%s\" , val_to_str ( pi -> data_value , t38_T30_data_vals , \"Ukn (0x%02X)\" ) , pi -> Data_Field_field_type_value == 3 ? \"fcs-BAD\" : \"fcs-BAD-sig-end\" ) ;\n break ;\n case 7 : duration = nstime_to_sec ( & pinfo -> rel_ts ) - pi -> time_first_t4_data ;\n frame_label = g_strdup_printf ( \"t4-non-ecm-data:%s\" , val_to_str ( pi -> data_value , t38_T30_data_vals , \"Ukn (0x%02X)\" ) ) ;\n comment = g_strdup_printf ( \"t38:t4-non-ecm-data:%s Duration: %.2fs %s\" , val_to_str ( pi -> data_value , t38_T30_data_vals , \"Ukn (0x%02X)\" ) , duration , pi -> desc_comment ) ;\n insert_to_graph_t38 ( tapinfo , pinfo , frame_label , comment , ( guint16 ) conv_num , & ( pinfo -> src ) , & ( pinfo -> dst ) , line_style , pi -> frame_num_first_t4_data ) ;\n break ;\n }\n }\n if ( frame_label && ! ( pi -> Data_Field_field_type_value == 7 && pi -> type_msg == 1 ) ) {\n add_to_graph ( tapinfo , pinfo , frame_label , comment , ( guint16 ) conv_num , & ( pinfo -> src ) , & ( pinfo -> dst ) , line_style ) ;\n }\n g_free ( comment ) ;\n g_free ( frame_label ) ;\n tapinfo -> redraw = TRUE ;\n return 1 ;\n }"}
{"idx": 8184, "target": 0, "func": "void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 ) sadMxN ( 16 , 32 ) sadMxNx4D ( 16 , 32 ) sadMxN ( 16 , 16 ) sadMxNxK ( 16 , 16 , 3 )"}
{"idx": 8185, "target": 0, "func": "struct key * key_lookup ( key_serial_t id ) {\n struct rb_node * n ;\n struct key * key ;\n spin_lock ( & key_serial_lock ) ;\n n = key_serial_tree . rb_node ;\n while ( n ) {\n key = rb_entry ( n , struct key , serial_node ) ;\n if ( id < key -> serial ) n = n -> rb_left ;\n else if ( id > key -> serial ) n = n -> rb_right ;\n else goto found ;\n }\n not_found : key = ERR_PTR ( - ENOKEY ) ;\n goto error ;\n found : if ( atomic_read ( & key -> usage ) == 0 ) goto not_found ;\n __key_get ( key ) ;\n error : spin_unlock ( & key_serial_lock ) ;\n return key ;\n }"}
{"idx": 8186, "target": 0, "func": "static int dissect_usb_vid_control_info ( proto_tree * tree , tvbuff_t * tvb , int offset ) {\n static const int * capability_bits [ ] = {\n & hf_usb_vid_control_info_D [ 0 ] , & hf_usb_vid_control_info_D [ 1 ] , & hf_usb_vid_control_info_D [ 2 ] , & hf_usb_vid_control_info_D [ 3 ] , & hf_usb_vid_control_info_D [ 4 ] , & hf_usb_vid_control_info_D [ 5 ] , & hf_usb_vid_control_info_D [ 6 ] , NULL }\n ;\n DISSECTOR_ASSERT ( array_length ( capability_bits ) == ( 1 + array_length ( hf_usb_vid_control_info_D ) ) ) ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_usb_vid_control_info , ett_control_capabilities , capability_bits , ENC_NA ) ;\n return offset + 1 ;\n }"}
{"idx": 8187, "target": 0, "func": "static cmsBool Type_ParametricCurve_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) {\n cmsToneCurve * Curve = ( cmsToneCurve * ) Ptr ;\n int i , nParams , typen ;\n static const int ParamsByType [ ] = {\n 0 , 1 , 3 , 4 , 5 , 7 }\n ;\n typen = Curve -> Segments [ 0 ] . Type ;\n if ( Curve -> nSegments > 1 || typen < 1 ) {\n cmsSignalError ( self -> ContextID , cmsERROR_UNKNOWN_EXTENSION , \"Multisegment or Inverted parametric curves cannot be written\" ) ;\n return FALSE ;\n }\n if ( typen > 5 ) {\n cmsSignalError ( self -> ContextID , cmsERROR_UNKNOWN_EXTENSION , \"Unsupported parametric curve\" ) ;\n return FALSE ;\n }\n nParams = ParamsByType [ typen ] ;\n if ( ! _cmsWriteUInt16Number ( io , ( cmsUInt16Number ) ( Curve -> Segments [ 0 ] . Type - 1 ) ) ) return FALSE ;\n if ( ! _cmsWriteUInt16Number ( io , 0 ) ) return FALSE ;\n for ( i = 0 ;\n i < nParams ;\n i ++ ) {\n if ( ! _cmsWrite15Fixed16Number ( io , Curve -> Segments [ 0 ] . Params [ i ] ) ) return FALSE ;\n }\n return TRUE ;\n cmsUNUSED_PARAMETER ( nItems ) ;\n }"}
{"idx": 8188, "target": 0, "func": "static unsigned int hc_str ( const char * s , size_t len ) {\n unsigned int r = 0 ;\n while ( len -- > 0 ) r = r * 31 + * s ++ ;\n return r ;\n }"}
{"idx": 8189, "target": 0, "func": "static void close_detect_done ( struct evhttp_request * req , void * arg ) {\n struct timeval tv ;\n if ( req == NULL || req -> response_code != HTTP_OK ) {\n fprintf ( stderr , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n test_ok = 1 ;\n timerclear ( & tv ) ;\n tv . tv_sec = 3 ;\n event_loopexit ( & tv ) ;\n }"}
{"idx": 8190, "target": 0, "func": "static void cmd_window_dleft ( void ) {\n MAIN_WINDOW_REC * rec ;\n rec = mainwindows_find_left ( active_mainwin , FALSE ) ;\n if ( rec == NULL ) rec = mainwindows_find_left ( active_mainwin , TRUE ) ;\n if ( rec != NULL ) window_set_active ( rec -> active ) ;\n }"}
{"idx": 8191, "target": 0, "func": "int dissect_h245_UnicastAddress ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_UnicastAddress , UnicastAddress_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 8192, "target": 0, "func": "static char * rfc2047_decode_word ( const char * s , size_t len , enum ContentEncoding enc ) {\n const char * it = s ;\n const char * end = s + len ;\n if ( enc == ENCQUOTEDPRINTABLE ) {\n struct Buffer buf = {\n 0 }\n ;\n for ( ;\n it < end ;\n ++ it ) {\n if ( * it == '_' ) {\n mutt_buffer_addch ( & buf , ' ' ) ;\n }\n else if ( ( * it == '=' ) && ( ! ( it [ 1 ] & ~ 127 ) && hexval ( it [ 1 ] ) != - 1 ) && ( ! ( it [ 2 ] & ~ 127 ) && hexval ( it [ 2 ] ) != - 1 ) ) {\n mutt_buffer_addch ( & buf , ( hexval ( it [ 1 ] ) << 4 ) | hexval ( it [ 2 ] ) ) ;\n it += 2 ;\n }\n else {\n mutt_buffer_addch ( & buf , * it ) ;\n }\n }\n mutt_buffer_addch ( & buf , '\\0' ) ;\n return buf . data ;\n }\n else if ( enc == ENCBASE64 ) {\n const int olen = 3 * len / 4 + 1 ;\n char * out = mutt_mem_malloc ( olen ) ;\n int dlen = mutt_b64_decode ( out , it , olen ) ;\n if ( dlen == - 1 ) {\n FREE ( & out ) ;\n return NULL ;\n }\n out [ dlen ] = '\\0' ;\n return out ;\n }\n assert ( 0 ) ;\n return NULL ;\n }"}
{"idx": 8193, "target": 0, "func": "static UChar32 U_CALLCONV _ASCIIGetNextUChar ( UConverterToUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n const uint8_t * source ;\n uint8_t b ;\n source = ( const uint8_t * ) pArgs -> source ;\n if ( source < ( const uint8_t * ) pArgs -> sourceLimit ) {\n b = * source ++ ;\n pArgs -> source = ( const char * ) source ;\n if ( b <= 0x7f ) {\n return b ;\n }\n else {\n UConverter * cnv = pArgs -> converter ;\n cnv -> toUBytes [ 0 ] = b ;\n cnv -> toULength = 1 ;\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n return 0xffff ;\n }\n }\n * pErrorCode = U_INDEX_OUTOFBOUNDS_ERROR ;\n return 0xffff ;\n }"}
{"idx": 8194, "target": 0, "func": "bool check_grant_routine ( THD * thd , ulong want_access , TABLE_LIST * procs , bool is_proc , bool no_errors ) {\n TABLE_LIST * table ;\n Security_context * sctx = thd -> security_ctx ;\n char * user = sctx -> priv_user ;\n char * host = sctx -> priv_host ;\n DBUG_ENTER ( \"check_grant_routine\" ) ;\n want_access &= ~ sctx -> master_access ;\n if ( ! want_access ) DBUG_RETURN ( 0 ) ;\n rw_rdlock ( & LOCK_grant ) ;\n for ( table = procs ;\n table ;\n table = table -> next_global ) {\n GRANT_NAME * grant_proc ;\n if ( ( grant_proc = routine_hash_search ( host , sctx -> ip , table -> db , user , table -> table_name , is_proc , 0 ) ) ) table -> grant . privilege |= grant_proc -> privs ;\n if ( want_access & ~ table -> grant . privilege ) {\n want_access &= ~ table -> grant . privilege ;\n goto err ;\n }\n }\n rw_unlock ( & LOCK_grant ) ;\n DBUG_RETURN ( 0 ) ;\n err : rw_unlock ( & LOCK_grant ) ;\n if ( ! no_errors ) {\n char buff [ 1024 ] ;\n const char * command = \"\" ;\n if ( table ) strxmov ( buff , table -> db , \".\" , table -> table_name , NullS ) ;\n if ( want_access & EXECUTE_ACL ) command = \"execute\" ;\n else if ( want_access & ALTER_PROC_ACL ) command = \"alter routine\" ;\n else if ( want_access & GRANT_ACL ) command = \"grant\" ;\n my_error ( ER_PROCACCESS_DENIED_ERROR , MYF ( 0 ) , command , user , host , table ? buff : \"unknown\" ) ;\n }\n DBUG_RETURN ( 1 ) ;\n }"}
{"idx": 8195, "target": 0, "func": "static void convert_to_icc_base ( fz_context * ctx , fz_colorspace * srcs , float * src_f , float * des_f ) {\n float temp_f [ FZ_MAX_COLORS ] ;\n fz_colorspace * base_cs = srcs -> get_base ( srcs ) ;\n if ( fz_colorspace_is_icc ( ctx , base_cs ) || fz_colorspace_is_cal ( ctx , base_cs ) || fz_colorspace_is_lab ( ctx , base_cs ) ) srcs -> to_ccs ( ctx , srcs , src_f , des_f ) ;\n else {\n srcs -> to_ccs ( ctx , srcs , src_f , temp_f ) ;\n convert_to_icc_base ( ctx , base_cs , temp_f , des_f ) ;\n }\n }"}
{"idx": 8196, "target": 0, "func": "static int32_t doWriteReverse ( const UChar * src , int32_t srcLength , UChar * dest , int32_t destSize , uint16_t options , UErrorCode * pErrorCode ) {\n int32_t i , j ;\n UChar32 c ;\n switch ( options & ( UBIDI_REMOVE_BIDI_CONTROLS | UBIDI_DO_MIRRORING | UBIDI_KEEP_BASE_COMBINING ) ) {\n case 0 : if ( destSize < srcLength ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n return srcLength ;\n }\n destSize = srcLength ;\n do {\n i = srcLength ;\n U16_BACK_1 ( src , 0 , srcLength ) ;\n j = srcLength ;\n do {\n * dest ++ = src [ j ++ ] ;\n }\n while ( j < i ) ;\n }\n while ( srcLength > 0 ) ;\n break ;\n case UBIDI_KEEP_BASE_COMBINING : if ( destSize < srcLength ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n return srcLength ;\n }\n destSize = srcLength ;\n do {\n i = srcLength ;\n do {\n U16_PREV ( src , 0 , srcLength , c ) ;\n }\n while ( srcLength > 0 && IS_COMBINING ( u_charType ( c ) ) ) ;\n j = srcLength ;\n do {\n * dest ++ = src [ j ++ ] ;\n }\n while ( j < i ) ;\n }\n while ( srcLength > 0 ) ;\n break ;\n default : if ( ! ( options & UBIDI_REMOVE_BIDI_CONTROLS ) ) {\n i = srcLength ;\n }\n else {\n int32_t length = srcLength ;\n UChar ch ;\n i = 0 ;\n do {\n ch = * src ++ ;\n if ( ! IS_BIDI_CONTROL_CHAR ( ch ) ) {\n ++ i ;\n }\n }\n while ( -- length > 0 ) ;\n src -= srcLength ;\n }\n if ( destSize < i ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n return i ;\n }\n destSize = i ;\n do {\n i = srcLength ;\n U16_PREV ( src , 0 , srcLength , c ) ;\n if ( options & UBIDI_KEEP_BASE_COMBINING ) {\n while ( srcLength > 0 && IS_COMBINING ( u_charType ( c ) ) ) {\n U16_PREV ( src , 0 , srcLength , c ) ;\n }\n }\n if ( options & UBIDI_REMOVE_BIDI_CONTROLS && IS_BIDI_CONTROL_CHAR ( c ) ) {\n continue ;\n }\n j = srcLength ;\n if ( options & UBIDI_DO_MIRRORING ) {\n int32_t k = 0 ;\n c = u_charMirror ( c ) ;\n U16_APPEND_UNSAFE ( dest , k , c ) ;\n dest += k ;\n j += k ;\n }\n while ( j < i ) {\n * dest ++ = src [ j ++ ] ;\n }\n }\n while ( srcLength > 0 ) ;\n break ;\n }\n return destSize ;\n }"}
{"idx": 8197, "target": 0, "func": "static uint16_t U_CALLCONV uprv_readDirectUInt16 ( uint16_t x ) {\n return x ;\n }"}
{"idx": 8198, "target": 0, "func": "static inline struct extr_rec * extra_last_record ( struct isoent * isoent ) {\n if ( isoent -> extr_rec_list . first == NULL ) return ( NULL ) ;\n return ( ( struct extr_rec * ) ( void * ) ( ( char * ) ( isoent -> extr_rec_list . last ) - offsetof ( struct extr_rec , next ) ) ) ;\n }"}
{"idx": 8199, "target": 0, "func": "static PyObject * datetime_from_millis ( long long millis ) {\n int diff = ( int ) ( ( ( millis % 1000 ) + 1000 ) % 1000 ) ;\n int microseconds = diff * 1000 ;\n Time64_T seconds = ( millis - diff ) / 1000 ;\n struct TM timeinfo ;\n gmtime64_r ( & seconds , & timeinfo ) ;\n return PyDateTime_FromDateAndTime ( timeinfo . tm_year + 1900 , timeinfo . tm_mon + 1 , timeinfo . tm_mday , timeinfo . tm_hour , timeinfo . tm_min , timeinfo . tm_sec , microseconds ) ;\n }"}
{"idx": 8200, "target": 0, "func": "static void field_escape ( DYNAMIC_STRING * in , const char * from ) {\n uint end_backslashes = 0 ;\n dynstr_append_checked ( in , \"'\" ) ;\n while ( * from ) {\n dynstr_append_mem_checked ( in , from , 1 ) ;\n if ( * from == '\\\\' ) end_backslashes ^= 1 ;\n else {\n if ( * from == '\\'' && ! end_backslashes ) {\n dynstr_append_checked ( in , \"\\'\" ) ;\n }\n end_backslashes = 0 ;\n }\n from ++ ;\n }\n if ( end_backslashes ) dynstr_append_checked ( in , \"\\\\\" ) ;\n dynstr_append_checked ( in , \"'\" ) ;\n }"}
{"idx": 8201, "target": 0, "func": "static OFCondition parsePresentationContext ( unsigned char type , PRV_PRESENTATIONCONTEXTITEM * context , unsigned char * buf , unsigned long * itemLength , unsigned long availData ) {\n unsigned long length ;\n unsigned long presentationLength ;\n OFCondition cond = EC_Normal ;\n DUL_SUBITEM * subItem ;\n if ( availData < 8 ) return makeLengthError ( \"presentation context\" , availData , 8 ) ;\n if ( ( context -> transferSyntaxList = LST_Create ( ) ) == NULL ) return EC_MemoryExhausted ;\n * itemLength = 0 ;\n context -> type = * buf ++ ;\n context -> rsv1 = * buf ++ ;\n EXTRACT_SHORT_BIG ( buf , context -> length ) ;\n buf += 2 ;\n context -> contextID = * buf ++ ;\n context -> rsv2 = * buf ++ ;\n context -> result = * buf ++ ;\n context -> rsv3 = * buf ++ ;\n length = context -> length ;\n * itemLength = 2 + 2 + length ;\n if ( availData - 4 < length || length < 4 ) return makeLengthError ( \"presentation context\" , availData , 4 , length ) ;\n DCMNET_TRACE ( \"Parsing Presentation Context: (\" << STD_NAMESPACE hex << STD_NAMESPACE setfill ( '0' ) << STD_NAMESPACE setw ( 2 ) << ( unsigned int ) context -> type << STD_NAMESPACE dec << \"), Length: \" << ( unsigned long ) context -> length << OFendl << \"Presentation Context ID: \" << STD_NAMESPACE hex << STD_NAMESPACE setfill ( '0' ) << STD_NAMESPACE setw ( 2 ) << ( unsigned int ) context -> contextID << STD_NAMESPACE dec ) ;\n presentationLength = length - 4 ;\n if ( ! ( ( type == DUL_TYPEPRESENTATIONCONTEXTAC ) && ( context -> result != DUL_PRESENTATION_ACCEPT ) ) ) {\n while ( presentationLength > 0 ) {\n DCMNET_TRACE ( \"Parsing remaining \" << presentationLength << \" bytes of Presentation Context\" << OFendl << \"Next item type: \" << STD_NAMESPACE hex << STD_NAMESPACE setfill ( '0' ) << STD_NAMESPACE setw ( 2 ) << ( unsigned int ) * buf ) ;\n switch ( * buf ) {\n case DUL_TYPEABSTRACTSYNTAX : cond = parseSubItem ( & context -> abstractSyntax , buf , & length , presentationLength ) ;\n if ( cond . bad ( ) ) return cond ;\n buf += length ;\n presentationLength -= length ;\n DCMNET_TRACE ( \"Successfully parsed Abstract Syntax\" ) ;\n break ;\n case DUL_TYPETRANSFERSYNTAX : subItem = ( DUL_SUBITEM * ) malloc ( sizeof ( DUL_SUBITEM ) ) ;\n if ( subItem == NULL ) return EC_MemoryExhausted ;\n cond = parseSubItem ( subItem , buf , & length , presentationLength ) ;\n if ( cond . bad ( ) ) return cond ;\n LST_Enqueue ( & context -> transferSyntaxList , ( LST_NODE * ) subItem ) ;\n buf += length ;\n presentationLength -= length ;\n DCMNET_TRACE ( \"Successfully parsed Transfer Syntax\" ) ;\n break ;\n default : cond = parseDummy ( buf , & length , presentationLength ) ;\n buf += length ;\n if ( ! OFStandard : : safeSubtract ( presentationLength , length , presentationLength ) ) return makeUnderflowError ( \"unknown presentation context type\" , presentationLength , length ) ;\n break ;\n }\n }\n }\n return EC_Normal ;\n }"}
{"idx": 8202, "target": 0, "func": "static int btatt_call_dissector_by_dissector_name_with_data ( const char * dissector_name , tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n dissector_handle_t handle ;\n handle = find_dissector ( dissector_name ) ;\n if ( handle != NULL ) return call_dissector_with_data ( handle , tvb , pinfo , tree , data ) ;\n else return call_data_dissector ( tvb , pinfo , tree ) ;\n }"}
{"idx": 8203, "target": 0, "func": "int __udp6_lib_rcv ( struct sk_buff * skb , struct udp_table * udptable , int proto ) {\n struct net * net = dev_net ( skb -> dev ) ;\n struct sock * sk ;\n struct udphdr * uh ;\n struct in6_addr * saddr , * daddr ;\n u32 ulen = 0 ;\n if ( ! pskb_may_pull ( skb , sizeof ( struct udphdr ) ) ) goto short_packet ;\n saddr = & ipv6_hdr ( skb ) -> saddr ;\n daddr = & ipv6_hdr ( skb ) -> daddr ;\n uh = udp_hdr ( skb ) ;\n ulen = ntohs ( uh -> len ) ;\n if ( ulen > skb -> len ) goto short_packet ;\n if ( proto == IPPROTO_UDP ) {\n if ( ulen == 0 ) ulen = skb -> len ;\n if ( ulen < sizeof ( * uh ) ) goto short_packet ;\n if ( ulen < skb -> len ) {\n if ( pskb_trim_rcsum ( skb , ulen ) ) goto short_packet ;\n saddr = & ipv6_hdr ( skb ) -> saddr ;\n daddr = & ipv6_hdr ( skb ) -> daddr ;\n uh = udp_hdr ( skb ) ;\n }\n }\n if ( udp6_csum_init ( skb , uh , proto ) ) goto discard ;\n if ( ipv6_addr_is_multicast ( daddr ) ) return __udp6_lib_mcast_deliver ( net , skb , saddr , daddr , udptable ) ;\n sk = __udp6_lib_lookup_skb ( skb , uh -> source , uh -> dest , udptable ) ;\n if ( sk == NULL ) {\n if ( ! xfrm6_policy_check ( NULL , XFRM_POLICY_IN , skb ) ) goto discard ;\n if ( udp_lib_checksum_complete ( skb ) ) goto discard ;\n UDP6_INC_STATS_BH ( net , UDP_MIB_NOPORTS , proto == IPPROTO_UDPLITE ) ;\n icmpv6_send ( skb , ICMPV6_DEST_UNREACH , ICMPV6_PORT_UNREACH , 0 ) ;\n kfree_skb ( skb ) ;\n return 0 ;\n }\n if ( sk_rcvqueues_full ( sk , skb ) ) {\n sock_put ( sk ) ;\n goto discard ;\n }\n bh_lock_sock ( sk ) ;\n if ( ! sock_owned_by_user ( sk ) ) udpv6_queue_rcv_skb ( sk , skb ) ;\n else if ( sk_add_backlog ( sk , skb ) ) {\n atomic_inc ( & sk -> sk_drops ) ;\n bh_unlock_sock ( sk ) ;\n sock_put ( sk ) ;\n goto discard ;\n }\n bh_unlock_sock ( sk ) ;\n sock_put ( sk ) ;\n return 0 ;\n short_packet : LIMIT_NETDEBUG ( KERN_DEBUG \"UDP%sv6: short packet: %d/%u\\n\" , proto == IPPROTO_UDPLITE ? \"-Lite\" : \"\" , ulen , skb -> len ) ;\n discard : UDP6_INC_STATS_BH ( net , UDP_MIB_INERRORS , proto == IPPROTO_UDPLITE ) ;\n kfree_skb ( skb ) ;\n return 0 ;\n }"}
{"idx": 8204, "target": 0, "func": "static int dissect_h245_IS11172_multichannelType ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_IS11172_multichannelType , IS11172_multichannelType_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 8205, "target": 0, "func": "static void await_references ( H264Context * h ) {\n const int mb_xy = h -> mb_xy ;\n const int mb_type = h -> cur_pic . mb_type [ mb_xy ] ;\n int refs [ 2 ] [ 48 ] ;\n int nrefs [ 2 ] = {\n 0 }\n ;\n int ref , list ;\n memset ( refs , - 1 , sizeof ( refs ) ) ;\n if ( IS_16X16 ( mb_type ) ) {\n get_lowest_part_y ( h , refs , 0 , 16 , 0 , IS_DIR ( mb_type , 0 , 0 ) , IS_DIR ( mb_type , 0 , 1 ) , nrefs ) ;\n }\n else if ( IS_16X8 ( mb_type ) ) {\n get_lowest_part_y ( h , refs , 0 , 8 , 0 , IS_DIR ( mb_type , 0 , 0 ) , IS_DIR ( mb_type , 0 , 1 ) , nrefs ) ;\n get_lowest_part_y ( h , refs , 8 , 8 , 8 , IS_DIR ( mb_type , 1 , 0 ) , IS_DIR ( mb_type , 1 , 1 ) , nrefs ) ;\n }\n else if ( IS_8X16 ( mb_type ) ) {\n get_lowest_part_y ( h , refs , 0 , 16 , 0 , IS_DIR ( mb_type , 0 , 0 ) , IS_DIR ( mb_type , 0 , 1 ) , nrefs ) ;\n get_lowest_part_y ( h , refs , 4 , 16 , 0 , IS_DIR ( mb_type , 1 , 0 ) , IS_DIR ( mb_type , 1 , 1 ) , nrefs ) ;\n }\n else {\n int i ;\n av_assert2 ( IS_8X8 ( mb_type ) ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n const int sub_mb_type = h -> sub_mb_type [ i ] ;\n const int n = 4 * i ;\n int y_offset = ( i & 2 ) << 2 ;\n if ( IS_SUB_8X8 ( sub_mb_type ) ) {\n get_lowest_part_y ( h , refs , n , 8 , y_offset , IS_DIR ( sub_mb_type , 0 , 0 ) , IS_DIR ( sub_mb_type , 0 , 1 ) , nrefs ) ;\n }\n else if ( IS_SUB_8X4 ( sub_mb_type ) ) {\n get_lowest_part_y ( h , refs , n , 4 , y_offset , IS_DIR ( sub_mb_type , 0 , 0 ) , IS_DIR ( sub_mb_type , 0 , 1 ) , nrefs ) ;\n get_lowest_part_y ( h , refs , n + 2 , 4 , y_offset + 4 , IS_DIR ( sub_mb_type , 0 , 0 ) , IS_DIR ( sub_mb_type , 0 , 1 ) , nrefs ) ;\n }\n else if ( IS_SUB_4X8 ( sub_mb_type ) ) {\n get_lowest_part_y ( h , refs , n , 8 , y_offset , IS_DIR ( sub_mb_type , 0 , 0 ) , IS_DIR ( sub_mb_type , 0 , 1 ) , nrefs ) ;\n get_lowest_part_y ( h , refs , n + 1 , 8 , y_offset , IS_DIR ( sub_mb_type , 0 , 0 ) , IS_DIR ( sub_mb_type , 0 , 1 ) , nrefs ) ;\n }\n else {\n int j ;\n av_assert2 ( IS_SUB_4X4 ( sub_mb_type ) ) ;\n for ( j = 0 ;\n j < 4 ;\n j ++ ) {\n int sub_y_offset = y_offset + 2 * ( j & 2 ) ;\n get_lowest_part_y ( h , refs , n + j , 4 , sub_y_offset , IS_DIR ( sub_mb_type , 0 , 0 ) , IS_DIR ( sub_mb_type , 0 , 1 ) , nrefs ) ;\n }\n }\n }\n }\n for ( list = h -> list_count - 1 ;\n list >= 0 ;\n list -- ) for ( ref = 0 ;\n ref < 48 && nrefs [ list ] ;\n ref ++ ) {\n int row = refs [ list ] [ ref ] ;\n if ( row >= 0 ) {\n Picture * ref_pic = & h -> ref_list [ list ] [ ref ] ;\n int ref_field = ref_pic -> reference - 1 ;\n int ref_field_picture = ref_pic -> field_picture ;\n int pic_height = 16 * h -> mb_height >> ref_field_picture ;\n row <<= MB_MBAFF ( h ) ;\n nrefs [ list ] -- ;\n if ( ! FIELD_PICTURE ( h ) && ref_field_picture ) {\n ff_thread_await_progress ( & ref_pic -> tf , FFMIN ( ( row >> 1 ) - ! ( row & 1 ) , pic_height - 1 ) , 1 ) ;\n ff_thread_await_progress ( & ref_pic -> tf , FFMIN ( ( row >> 1 ) , pic_height - 1 ) , 0 ) ;\n }\n else if ( FIELD_PICTURE ( h ) && ! ref_field_picture ) {\n ff_thread_await_progress ( & ref_pic -> tf , FFMIN ( row * 2 + ref_field , pic_height - 1 ) , 0 ) ;\n }\n else if ( FIELD_PICTURE ( h ) ) {\n ff_thread_await_progress ( & ref_pic -> tf , FFMIN ( row , pic_height - 1 ) , ref_field ) ;\n }\n else {\n ff_thread_await_progress ( & ref_pic -> tf , FFMIN ( row , pic_height - 1 ) , 0 ) ;\n }\n }\n }\n }"}
{"idx": 8206, "target": 0, "func": "static int test_decompress_text ( xd3_stream * stream , uint8_t * enc , usize_t enc_size , usize_t test_desize ) {\n xd3_config cfg ;\n char decoded [ sizeof ( test_text ) ] ;\n uint8_t * apphead ;\n usize_t apphead_size ;\n usize_t decoded_size ;\n const char * msg ;\n int ret ;\n usize_t pos = 0 ;\n int flags = stream -> flags ;\n usize_t take ;\n input : take = min ( enc_size - pos , test_desize ) ;\n CHECK ( take > 0 ) ;\n xd3_avail_input ( stream , enc + pos , take ) ;\n again : ret = xd3_decode_input ( stream ) ;\n pos += take ;\n take = 0 ;\n switch ( ret ) {\n case XD3_OUTPUT : break ;\n case XD3_WINSTART : case XD3_GOTHEADER : goto again ;\n case XD3_INPUT : if ( pos < enc_size ) {\n goto input ;\n }\n case XD3_WINFINISH : default : goto fail ;\n }\n CHECK ( ret == XD3_OUTPUT ) ;\n CHECK ( pos == enc_size ) ;\n if ( stream -> avail_out != sizeof ( test_text ) ) {\n stream -> msg = \"incorrect output size\" ;\n ret = XD3_INTERNAL ;\n goto fail ;\n }\n decoded_size = stream -> avail_out ;\n memcpy ( decoded , stream -> next_out , stream -> avail_out ) ;\n xd3_consume_output ( stream ) ;\n if ( ( ret = xd3_get_appheader ( stream , & apphead , & apphead_size ) ) ) {\n goto fail ;\n }\n if ( apphead_size != strlen ( ( char * ) test_apphead ) || memcmp ( apphead , test_apphead , strlen ( ( char * ) test_apphead ) ) != 0 ) {\n stream -> msg = \"incorrect appheader\" ;\n ret = XD3_INTERNAL ;\n goto fail ;\n }\n if ( ( ret = xd3_decode_input ( stream ) ) != XD3_WINFINISH || ( ret = xd3_close_stream ( stream ) ) != 0 ) {\n goto fail ;\n }\n if ( decoded_size != sizeof ( test_text ) || memcmp ( decoded , test_text , sizeof ( test_text ) ) != 0 ) {\n stream -> msg = \"incorrect output text\" ;\n ret = EIO ;\n }\n fail : msg = stream -> msg ;\n xd3_free_stream ( stream ) ;\n xd3_init_config ( & cfg , flags ) ;\n xd3_config_stream ( stream , & cfg ) ;\n stream -> msg = msg ;\n return ret ;\n }"}
{"idx": 8207, "target": 0, "func": "static Dwarf_Small dwarf_elf_object_access_get_pointer_size ( void * obj_in ) {\n dwarf_elf_object_access_internals_t * obj = ( dwarf_elf_object_access_internals_t * ) obj_in ;\n return obj -> pointer_size ;\n }"}
{"idx": 8208, "target": 0, "func": "static void http_dispatcher_test_done ( struct evhttp_request * req , void * arg ) {\n const char * what = \"DISPATCHER_TEST\" ;\n if ( req -> response_code != HTTP_OK ) {\n fprintf ( stderr , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n if ( evhttp_find_header ( req -> input_headers , \"Content-Type\" ) == NULL ) {\n fprintf ( stderr , \"FAILED (content type)\\n\" ) ;\n exit ( 1 ) ;\n }\n if ( EVBUFFER_LENGTH ( req -> input_buffer ) != strlen ( what ) ) {\n fprintf ( stderr , \"FAILED (length %zu vs %zu)\\n\" , EVBUFFER_LENGTH ( req -> input_buffer ) , strlen ( what ) ) ;\n exit ( 1 ) ;\n }\n if ( memcmp ( EVBUFFER_DATA ( req -> input_buffer ) , what , strlen ( what ) ) != 0 ) {\n fprintf ( stderr , \"FAILED (data)\\n\" ) ;\n exit ( 1 ) ;\n }\n test_ok = 1 ;\n event_loopexit ( NULL ) ;\n }"}
{"idx": 8209, "target": 0, "func": "static void update_state ( VP9_COMP * cpi , PICK_MODE_CONTEXT * ctx , int mi_row , int mi_col , BLOCK_SIZE bsize , int output_enabled ) {\n int i , x_idx , y ;\n VP9_COMMON * const cm = & cpi -> common ;\n RD_OPT * const rd_opt = & cpi -> rd ;\n MACROBLOCK * const x = & cpi -> mb ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n struct macroblock_plane * const p = x -> plane ;\n struct macroblockd_plane * const pd = xd -> plane ;\n MODE_INFO * mi = & ctx -> mic ;\n MB_MODE_INFO * const mbmi = & xd -> mi [ 0 ] . src_mi -> mbmi ;\n MODE_INFO * mi_addr = & xd -> mi [ 0 ] ;\n const struct segmentation * const seg = & cm -> seg ;\n const int mis = cm -> mi_stride ;\n const int mi_width = num_8x8_blocks_wide_lookup [ bsize ] ;\n const int mi_height = num_8x8_blocks_high_lookup [ bsize ] ;\n int max_plane ;\n assert ( mi -> mbmi . sb_type == bsize ) ;\n * mi_addr = * mi ;\n mi_addr -> src_mi = mi_addr ;\n if ( seg -> enabled && output_enabled ) {\n if ( cpi -> oxcf . aq_mode == COMPLEXITY_AQ ) {\n const uint8_t * const map = seg -> update_map ? cpi -> segmentation_map : cm -> last_frame_seg_map ;\n mi_addr -> mbmi . segment_id = vp9_get_segment_id ( cm , map , bsize , mi_row , mi_col ) ;\n }\n if ( cpi -> oxcf . aq_mode == CYCLIC_REFRESH_AQ ) {\n vp9_cyclic_refresh_update_segment ( cpi , & xd -> mi [ 0 ] . src_mi -> mbmi , mi_row , mi_col , bsize , 1 ) ;\n }\n }\n max_plane = is_inter_block ( mbmi ) ? MAX_MB_PLANE : 1 ;\n for ( i = 0 ;\n i < max_plane ;\n ++ i ) {\n p [ i ] . coeff = ctx -> coeff_pbuf [ i ] [ 1 ] ;\n p [ i ] . qcoeff = ctx -> qcoeff_pbuf [ i ] [ 1 ] ;\n pd [ i ] . dqcoeff = ctx -> dqcoeff_pbuf [ i ] [ 1 ] ;\n p [ i ] . eobs = ctx -> eobs_pbuf [ i ] [ 1 ] ;\n }\n for ( i = max_plane ;\n i < MAX_MB_PLANE ;\n ++ i ) {\n p [ i ] . coeff = ctx -> coeff_pbuf [ i ] [ 2 ] ;\n p [ i ] . qcoeff = ctx -> qcoeff_pbuf [ i ] [ 2 ] ;\n pd [ i ] . dqcoeff = ctx -> dqcoeff_pbuf [ i ] [ 2 ] ;\n p [ i ] . eobs = ctx -> eobs_pbuf [ i ] [ 2 ] ;\n }\n for ( y = 0 ;\n y < mi_height ;\n y ++ ) for ( x_idx = 0 ;\n x_idx < mi_width ;\n x_idx ++ ) if ( ( xd -> mb_to_right_edge >> ( 3 + MI_SIZE_LOG2 ) ) + mi_width > x_idx && ( xd -> mb_to_bottom_edge >> ( 3 + MI_SIZE_LOG2 ) ) + mi_height > y ) {\n xd -> mi [ x_idx + y * mis ] . src_mi = mi_addr ;\n }\n if ( cpi -> oxcf . aq_mode ) vp9_init_plane_quantizers ( cpi , x ) ;\n if ( bsize < BLOCK_32X32 ) {\n if ( bsize < BLOCK_16X16 ) ctx -> tx_rd_diff [ ALLOW_16X16 ] = ctx -> tx_rd_diff [ ALLOW_8X8 ] ;\n ctx -> tx_rd_diff [ ALLOW_32X32 ] = ctx -> tx_rd_diff [ ALLOW_16X16 ] ;\n }\n if ( is_inter_block ( mbmi ) && mbmi -> sb_type < BLOCK_8X8 ) {\n mbmi -> mv [ 0 ] . as_int = mi -> bmi [ 3 ] . as_mv [ 0 ] . as_int ;\n mbmi -> mv [ 1 ] . as_int = mi -> bmi [ 3 ] . as_mv [ 1 ] . as_int ;\n }\n x -> skip = ctx -> skip ;\n vpx_memcpy ( x -> zcoeff_blk [ mbmi -> tx_size ] , ctx -> zcoeff_blk , sizeof ( uint8_t ) * ctx -> num_4x4_blk ) ;\n if ( ! output_enabled ) return ;\n if ( ! vp9_segfeature_active ( & cm -> seg , mbmi -> segment_id , SEG_LVL_SKIP ) ) {\n for ( i = 0 ;\n i < TX_MODES ;\n i ++ ) rd_opt -> tx_select_diff [ i ] += ctx -> tx_rd_diff [ i ] ;\n }\n # if CONFIG_INTERNAL_STATS if ( frame_is_intra_only ( cm ) ) {\n static const int kf_mode_index [ ] = {\n THR_DC , THR_V_PRED , THR_H_PRED , THR_D45_PRED , THR_D135_PRED , THR_D117_PRED , THR_D153_PRED , THR_D207_PRED , THR_D63_PRED , THR_TM , }\n ;\n ++ cpi -> mode_chosen_counts [ kf_mode_index [ mbmi -> mode ] ] ;\n }\n else {\n ++ cpi -> mode_chosen_counts [ ctx -> best_mode_index ] ;\n }\n # endif if ( ! frame_is_intra_only ( cm ) ) {\n if ( is_inter_block ( mbmi ) ) {\n vp9_update_mv_count ( cm , xd ) ;\n if ( cm -> interp_filter == SWITCHABLE ) {\n const int ctx = vp9_get_pred_context_switchable_interp ( xd ) ;\n ++ cm -> counts . switchable_interp [ ctx ] [ mbmi -> interp_filter ] ;\n }\n }\n rd_opt -> comp_pred_diff [ SINGLE_REFERENCE ] += ctx -> single_pred_diff ;\n rd_opt -> comp_pred_diff [ COMPOUND_REFERENCE ] += ctx -> comp_pred_diff ;\n rd_opt -> comp_pred_diff [ REFERENCE_MODE_SELECT ] += ctx -> hybrid_pred_diff ;\n for ( i = 0 ;\n i < SWITCHABLE_FILTER_CONTEXTS ;\n ++ i ) rd_opt -> filter_diff [ i ] += ctx -> best_filter_diff [ i ] ;\n }\n }"}
{"idx": 8210, "target": 1, "func": "static void first_pass_motion_search ( VP9_COMP * cpi , MACROBLOCK * x , const MV * ref_mv , MV * best_mv , int * best_motion_err ) {\n MACROBLOCKD * const xd = & x -> e_mbd ;\n MV tmp_mv = {\n 0 , 0 }\n ;\n MV ref_mv_full = {\n ref_mv -> row >> 3 , ref_mv -> col >> 3 }\n ;\n int num00 , tmp_err , n ;\n const BLOCK_SIZE bsize = xd -> mi [ 0 ] -> mbmi . sb_type ;\n vp9_variance_fn_ptr_t v_fn_ptr = cpi -> fn_ptr [ bsize ] ;\n const int new_mv_mode_penalty = 256 ;\n int step_param = 3 ;\n int further_steps = ( MAX_MVSEARCH_STEPS - 1 ) - step_param ;\n const int sr = get_search_range ( & cpi -> common ) ;\n step_param += sr ;\n further_steps -= sr ;\n v_fn_ptr . vf = get_block_variance_fn ( bsize ) ;\n tmp_err = cpi -> diamond_search_sad ( x , & cpi -> ss_cfg , & ref_mv_full , & tmp_mv , step_param , x -> sadperbit16 , & num00 , & v_fn_ptr , ref_mv ) ;\n if ( tmp_err < INT_MAX ) tmp_err = vp9_get_mvpred_var ( x , & tmp_mv , ref_mv , & v_fn_ptr , 1 ) ;\n if ( tmp_err < INT_MAX - new_mv_mode_penalty ) tmp_err += new_mv_mode_penalty ;\n if ( tmp_err < * best_motion_err ) {\n * best_motion_err = tmp_err ;\n * best_mv = tmp_mv ;\n }\n n = num00 ;\n num00 = 0 ;\n while ( n < further_steps ) {\n ++ n ;\n if ( num00 ) {\n -- num00 ;\n }\n else {\n tmp_err = cpi -> diamond_search_sad ( x , & cpi -> ss_cfg , & ref_mv_full , & tmp_mv , step_param + n , x -> sadperbit16 , & num00 , & v_fn_ptr , ref_mv ) ;\n if ( tmp_err < INT_MAX ) tmp_err = vp9_get_mvpred_var ( x , & tmp_mv , ref_mv , & v_fn_ptr , 1 ) ;\n if ( tmp_err < INT_MAX - new_mv_mode_penalty ) tmp_err += new_mv_mode_penalty ;\n if ( tmp_err < * best_motion_err ) {\n * best_motion_err = tmp_err ;\n * best_mv = tmp_mv ;\n }\n }\n }\n }"}
{"idx": 8211, "target": 0, "func": "static int decode_vop_header ( MpegEncContext * s , GetBitContext * gb ) {\n int time_incr , time_increment ;\n s -> pict_type = get_bits ( gb , 2 ) + AV_PICTURE_TYPE_I ;\n if ( s -> pict_type == AV_PICTURE_TYPE_B && s -> low_delay && s -> vol_control_parameters == 0 && ! ( s -> flags & CODEC_FLAG_LOW_DELAY ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"low_delay flag incorrectly, clearing it\\n\" ) ;\n s -> low_delay = 0 ;\n }\n s -> partitioned_frame = s -> data_partitioning && s -> pict_type != AV_PICTURE_TYPE_B ;\n if ( s -> partitioned_frame ) s -> decode_mb = mpeg4_decode_partitioned_mb ;\n else s -> decode_mb = mpeg4_decode_mb ;\n time_incr = 0 ;\n while ( get_bits1 ( gb ) != 0 ) time_incr ++ ;\n check_marker ( gb , \"before time_increment\" ) ;\n if ( s -> time_increment_bits == 0 || ! ( show_bits ( gb , s -> time_increment_bits + 1 ) & 1 ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"hmm, seems the headers are not complete, trying to guess time_increment_bits\\n\" ) ;\n for ( s -> time_increment_bits = 1 ;\n s -> time_increment_bits < 16 ;\n s -> time_increment_bits ++ ) {\n if ( s -> pict_type == AV_PICTURE_TYPE_P || ( s -> pict_type == AV_PICTURE_TYPE_S && s -> vol_sprite_usage == GMC_SPRITE ) ) {\n if ( ( show_bits ( gb , s -> time_increment_bits + 6 ) & 0x37 ) == 0x30 ) break ;\n }\n else if ( ( show_bits ( gb , s -> time_increment_bits + 5 ) & 0x1F ) == 0x18 ) break ;\n }\n av_log ( s -> avctx , AV_LOG_ERROR , \"my guess is %d bits ;\n)\\n\" , s -> time_increment_bits ) ;\n }\n if ( IS_3IV1 ) time_increment = get_bits1 ( gb ) ;\n else time_increment = get_bits ( gb , s -> time_increment_bits ) ;\n if ( s -> pict_type != AV_PICTURE_TYPE_B ) {\n s -> last_time_base = s -> time_base ;\n s -> time_base += time_incr ;\n s -> time = s -> time_base * s -> avctx -> time_base . den + time_increment ;\n if ( s -> workaround_bugs & FF_BUG_UMP4 ) {\n if ( s -> time < s -> last_non_b_time ) {\n s -> time_base ++ ;\n s -> time += s -> avctx -> time_base . den ;\n }\n }\n s -> pp_time = s -> time - s -> last_non_b_time ;\n s -> last_non_b_time = s -> time ;\n }\n else {\n s -> time = ( s -> last_time_base + time_incr ) * s -> avctx -> time_base . den + time_increment ;\n s -> pb_time = s -> pp_time - ( s -> last_non_b_time - s -> time ) ;\n if ( s -> pp_time <= s -> pb_time || s -> pp_time <= s -> pp_time - s -> pb_time || s -> pp_time <= 0 ) {\n return FRAME_SKIPPED ;\n }\n ff_mpeg4_init_direct_mv ( s ) ;\n if ( s -> t_frame == 0 ) s -> t_frame = s -> pb_time ;\n if ( s -> t_frame == 0 ) s -> t_frame = 1 ;\n s -> pp_field_time = ( ROUNDED_DIV ( s -> last_non_b_time , s -> t_frame ) - ROUNDED_DIV ( s -> last_non_b_time - s -> pp_time , s -> t_frame ) ) * 2 ;\n s -> pb_field_time = ( ROUNDED_DIV ( s -> time , s -> t_frame ) - ROUNDED_DIV ( s -> last_non_b_time - s -> pp_time , s -> t_frame ) ) * 2 ;\n if ( ! s -> progressive_sequence ) {\n if ( s -> pp_field_time <= s -> pb_field_time || s -> pb_field_time <= 1 ) return FRAME_SKIPPED ;\n }\n }\n if ( s -> avctx -> time_base . num ) s -> current_picture_ptr -> f . pts = ( s -> time + s -> avctx -> time_base . num / 2 ) / s -> avctx -> time_base . num ;\n else s -> current_picture_ptr -> f . pts = AV_NOPTS_VALUE ;\n if ( s -> avctx -> debug & FF_DEBUG_PTS ) av_log ( s -> avctx , AV_LOG_DEBUG , \"MPEG4 PTS: %\" PRId64 \"\\n\" , s -> current_picture_ptr -> f . pts ) ;\n check_marker ( gb , \"before vop_coded\" ) ;\n if ( get_bits1 ( gb ) != 1 ) {\n if ( s -> avctx -> debug & FF_DEBUG_PICT_INFO ) av_log ( s -> avctx , AV_LOG_ERROR , \"vop not coded\\n\" ) ;\n return FRAME_SKIPPED ;\n }\n if ( s -> shape != BIN_ONLY_SHAPE && ( s -> pict_type == AV_PICTURE_TYPE_P || ( s -> pict_type == AV_PICTURE_TYPE_S && s -> vol_sprite_usage == GMC_SPRITE ) ) ) {\n s -> no_rounding = get_bits1 ( gb ) ;\n }\n else {\n s -> no_rounding = 0 ;\n }\n if ( s -> shape != RECT_SHAPE ) {\n if ( s -> vol_sprite_usage != 1 || s -> pict_type != AV_PICTURE_TYPE_I ) {\n skip_bits ( gb , 13 ) ;\n skip_bits1 ( gb ) ;\n skip_bits ( gb , 13 ) ;\n skip_bits1 ( gb ) ;\n skip_bits ( gb , 13 ) ;\n skip_bits1 ( gb ) ;\n skip_bits ( gb , 13 ) ;\n }\n skip_bits1 ( gb ) ;\n if ( get_bits1 ( gb ) != 0 ) {\n skip_bits ( gb , 8 ) ;\n }\n }\n if ( s -> shape != BIN_ONLY_SHAPE ) {\n skip_bits_long ( gb , s -> cplx_estimation_trash_i ) ;\n if ( s -> pict_type != AV_PICTURE_TYPE_I ) skip_bits_long ( gb , s -> cplx_estimation_trash_p ) ;\n if ( s -> pict_type == AV_PICTURE_TYPE_B ) skip_bits_long ( gb , s -> cplx_estimation_trash_b ) ;\n s -> intra_dc_threshold = ff_mpeg4_dc_threshold [ get_bits ( gb , 3 ) ] ;\n if ( ! s -> progressive_sequence ) {\n s -> top_field_first = get_bits1 ( gb ) ;\n s -> alternate_scan = get_bits1 ( gb ) ;\n }\n else s -> alternate_scan = 0 ;\n }\n if ( s -> alternate_scan ) {\n ff_init_scantable ( s -> dsp . idct_permutation , & s -> inter_scantable , ff_alternate_vertical_scan ) ;\n ff_init_scantable ( s -> dsp . idct_permutation , & s -> intra_scantable , ff_alternate_vertical_scan ) ;\n ff_init_scantable ( s -> dsp . idct_permutation , & s -> intra_h_scantable , ff_alternate_vertical_scan ) ;\n ff_init_scantable ( s -> dsp . idct_permutation , & s -> intra_v_scantable , ff_alternate_vertical_scan ) ;\n }\n else {\n ff_init_scantable ( s -> dsp . idct_permutation , & s -> inter_scantable , ff_zigzag_direct ) ;\n ff_init_scantable ( s -> dsp . idct_permutation , & s -> intra_scantable , ff_zigzag_direct ) ;\n ff_init_scantable ( s -> dsp . idct_permutation , & s -> intra_h_scantable , ff_alternate_horizontal_scan ) ;\n ff_init_scantable ( s -> dsp . idct_permutation , & s -> intra_v_scantable , ff_alternate_vertical_scan ) ;\n }\n if ( s -> pict_type == AV_PICTURE_TYPE_S && ( s -> vol_sprite_usage == STATIC_SPRITE || s -> vol_sprite_usage == GMC_SPRITE ) ) {\n mpeg4_decode_sprite_trajectory ( s , gb ) ;\n if ( s -> sprite_brightness_change ) av_log ( s -> avctx , AV_LOG_ERROR , \"sprite_brightness_change not supported\\n\" ) ;\n if ( s -> vol_sprite_usage == STATIC_SPRITE ) av_log ( s -> avctx , AV_LOG_ERROR , \"static sprite not supported\\n\" ) ;\n }\n if ( s -> shape != BIN_ONLY_SHAPE ) {\n s -> chroma_qscale = s -> qscale = get_bits ( gb , s -> quant_precision ) ;\n if ( s -> qscale == 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Error, header damaged or not MPEG4 header (qscale=0)\\n\" ) ;\n return - 1 ;\n }\n if ( s -> pict_type != AV_PICTURE_TYPE_I ) {\n s -> f_code = get_bits ( gb , 3 ) ;\n if ( s -> f_code == 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Error, header damaged or not MPEG4 header (f_code=0)\\n\" ) ;\n return - 1 ;\n }\n }\n else s -> f_code = 1 ;\n if ( s -> pict_type == AV_PICTURE_TYPE_B ) {\n s -> b_code = get_bits ( gb , 3 ) ;\n }\n else s -> b_code = 1 ;\n if ( s -> avctx -> debug & FF_DEBUG_PICT_INFO ) {\n av_log ( s -> avctx , AV_LOG_DEBUG , \"qp:%d fc:%d,%d %s size:%d pro:%d alt:%d top:%d %spel part:%d resync:%d w:%d a:%d rnd:%d vot:%d%s dc:%d ce:%d/%d/%d\\n\" , s -> qscale , s -> f_code , s -> b_code , s -> pict_type == AV_PICTURE_TYPE_I ? \"I\" : ( s -> pict_type == AV_PICTURE_TYPE_P ? \"P\" : ( s -> pict_type == AV_PICTURE_TYPE_B ? \"B\" : \"S\" ) ) , gb -> size_in_bits , s -> progressive_sequence , s -> alternate_scan , s -> top_field_first , s -> quarter_sample ? \"q\" : \"h\" , s -> data_partitioning , s -> resync_marker , s -> num_sprite_warping_points , s -> sprite_warping_accuracy , 1 - s -> no_rounding , s -> vo_type , s -> vol_control_parameters ? \" VOLC\" : \" \" , s -> intra_dc_threshold , s -> cplx_estimation_trash_i , s -> cplx_estimation_trash_p , s -> cplx_estimation_trash_b ) ;\n }\n if ( ! s -> scalability ) {\n if ( s -> shape != RECT_SHAPE && s -> pict_type != AV_PICTURE_TYPE_I ) {\n skip_bits1 ( gb ) ;\n }\n }\n else {\n if ( s -> enhancement_type ) {\n int load_backward_shape = get_bits1 ( gb ) ;\n if ( load_backward_shape ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"load backward shape isn't supported\\n\" ) ;\n }\n }\n skip_bits ( gb , 2 ) ;\n }\n }\n if ( s -> vo_type == 0 && s -> vol_control_parameters == 0 && s -> divx_version == - 1 && s -> picture_number == 0 ) {\n av_log ( s -> avctx , AV_LOG_WARNING , \"looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag\\n\" ) ;\n s -> low_delay = 1 ;\n }\n s -> picture_number ++ ;\n s -> y_dc_scale_table = ff_mpeg4_y_dc_scale_table ;\n s -> c_dc_scale_table = ff_mpeg4_c_dc_scale_table ;\n if ( s -> workaround_bugs & FF_BUG_EDGE ) {\n s -> h_edge_pos = s -> width ;\n s -> v_edge_pos = s -> height ;\n }\n return 0 ;\n }"}
{"idx": 8212, "target": 0, "func": "static UBool _isExtensionSubtags ( const char * s , int32_t len ) {\n const char * p = s ;\n const char * pSubtag = NULL ;\n if ( len < 0 ) {\n len = ( int32_t ) uprv_strlen ( s ) ;\n }\n while ( ( p - s ) < len ) {\n if ( * p == SEP ) {\n if ( pSubtag == NULL ) {\n return FALSE ;\n }\n if ( ! _isExtensionSubtag ( pSubtag , ( int32_t ) ( p - pSubtag ) ) ) {\n return FALSE ;\n }\n pSubtag = NULL ;\n }\n else if ( pSubtag == NULL ) {\n pSubtag = p ;\n }\n p ++ ;\n }\n if ( pSubtag == NULL ) {\n return FALSE ;\n }\n return _isExtensionSubtag ( pSubtag , ( int32_t ) ( p - pSubtag ) ) ;\n }"}
{"idx": 8213, "target": 1, "func": "static gchar get_priority ( const guint8 * priority ) {\n static gchar priorities [ ] = \"??VDIWEFS\" ;\n if ( * priority >= ( guint8 ) sizeof ( priorities ) ) return '?' ;\n return priorities [ ( int ) * priority ] ;\n }"}
{"idx": 8214, "target": 0, "func": "static inline bool alloc_array_check_size ( ulong num_elements , ulong elt_size , ulong * lsize ) {\n int64_t s = ( int64_t ) num_elements * elt_size ;\n if ( s > max_uint ) {\n return false ;\n }\n * lsize = ( ulong ) s ;\n return true ;\n }"}
{"idx": 8215, "target": 0, "func": "static int dissect_h225_GroupID ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_GroupID , GroupID_sequence ) ;\n return offset ;\n }"}
{"idx": 8216, "target": 0, "func": "static PyObject * authGSSClientWrap ( PyObject * self , PyObject * args ) {\n gss_client_state * state ;\n PyObject * pystate ;\n char * challenge = NULL ;\n char * user = NULL ;\n int protect = 0 ;\n int result = 0 ;\n if ( ! PyArg_ParseTuple ( args , \"Os|zi\" , & pystate , & challenge , & user , & protect ) ) return NULL ;\n # if PY_MAJOR_VERSION >= 3 if ( ! PyCapsule_CheckExact ( pystate ) ) {\n # else if ( ! PyCObject_Check ( pystate ) ) {\n # endif PyErr_SetString ( PyExc_TypeError , \"Expected a context object\" ) ;\n return NULL ;\n }\n # if PY_MAJOR_VERSION >= 3 state = PyCapsule_GetPointer ( pystate , NULL ) ;\n # else state = ( gss_client_state * ) PyCObject_AsVoidPtr ( pystate ) ;\n # endif if ( state == NULL ) return NULL ;\n result = authenticate_gss_client_wrap ( state , challenge , user , protect ) ;\n if ( result == AUTH_GSS_ERROR ) return NULL ;\n return Py_BuildValue ( \"i\" , result ) ;\n }"}
{"idx": 8217, "target": 0, "func": "static void copy_node_types ( cmap_splay * node , void * arg ) {\n pdf_cmap * cmap = ( pdf_cmap * ) arg ;\n if ( node -> many ) {\n assert ( node -> low == node -> high ) ;\n cmap -> mranges [ cmap -> mlen ] . low = node -> low ;\n cmap -> mranges [ cmap -> mlen ] . out = node -> out ;\n cmap -> mlen ++ ;\n }\n else if ( node -> low <= 0xffff && node -> high <= 0xFFFF && node -> out <= 0xFFFF ) {\n cmap -> ranges [ cmap -> rlen ] . low = node -> low ;\n cmap -> ranges [ cmap -> rlen ] . high = node -> high ;\n cmap -> ranges [ cmap -> rlen ] . out = node -> out ;\n cmap -> rlen ++ ;\n }\n else {\n cmap -> xranges [ cmap -> xlen ] . low = node -> low ;\n cmap -> xranges [ cmap -> xlen ] . high = node -> high ;\n cmap -> xranges [ cmap -> xlen ] . out = node -> out ;\n cmap -> xlen ++ ;\n }\n }"}
{"idx": 8218, "target": 0, "func": "static int _warc_cleanup ( struct archive_read * a ) {\n struct warc_s * w = a -> format -> data ;\n if ( w -> pool . len > 0U ) {\n free ( w -> pool . str ) ;\n }\n archive_string_free ( & w -> sver ) ;\n free ( w ) ;\n a -> format -> data = NULL ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 8219, "target": 0, "func": "const char * proto_field_display_to_string ( int field_display ) {\n return val_to_str_const ( field_display , hf_display , \"Unknown\" ) ;\n }"}
{"idx": 8220, "target": 0, "func": "unsigned int dtls1_min_mtu ( void ) {\n return ( g_probable_mtu [ ( sizeof ( g_probable_mtu ) / sizeof ( g_probable_mtu [ 0 ] ) ) - 1 ] ) ;\n }"}
{"idx": 8221, "target": 0, "func": "int jpc_pi_next ( jpc_pi_t * pi ) {\n jpc_pchg_t * pchg ;\n int ret ;\n for ( ;\n ;\n ) {\n pi -> valid = false ;\n if ( ! pi -> pchg ) {\n ++ pi -> pchgno ;\n pi -> compno = 0 ;\n pi -> rlvlno = 0 ;\n pi -> prcno = 0 ;\n pi -> lyrno = 0 ;\n pi -> prgvolfirst = true ;\n if ( pi -> pchgno < jpc_pchglist_numpchgs ( pi -> pchglist ) ) {\n pi -> pchg = jpc_pchglist_get ( pi -> pchglist , pi -> pchgno ) ;\n }\n else if ( pi -> pchgno == jpc_pchglist_numpchgs ( pi -> pchglist ) ) {\n pi -> pchg = & pi -> defaultpchg ;\n }\n else {\n return 1 ;\n }\n }\n pchg = pi -> pchg ;\n switch ( pchg -> prgord ) {\n case JPC_COD_LRCPPRG : ret = jpc_pi_nextlrcp ( pi ) ;\n break ;\n case JPC_COD_RLCPPRG : ret = jpc_pi_nextrlcp ( pi ) ;\n break ;\n case JPC_COD_RPCLPRG : ret = jpc_pi_nextrpcl ( pi ) ;\n break ;\n case JPC_COD_PCRLPRG : ret = jpc_pi_nextpcrl ( pi ) ;\n break ;\n case JPC_COD_CPRLPRG : ret = jpc_pi_nextcprl ( pi ) ;\n break ;\n default : ret = - 1 ;\n break ;\n }\n if ( ! ret ) {\n pi -> valid = true ;\n ++ pi -> pktno ;\n return 0 ;\n }\n pi -> pchg = 0 ;\n }\n }"}
{"idx": 8222, "target": 0, "func": "static void _slurm_rpc_dump_nodes ( slurm_msg_t * msg ) {\n DEF_TIMERS ;\n char * dump ;\n int dump_size ;\n slurm_msg_t response_msg ;\n node_info_request_msg_t * node_req_msg = ( node_info_request_msg_t * ) msg -> data ;\n slurmctld_lock_t node_write_lock = {\n READ_LOCK , NO_LOCK , WRITE_LOCK , READ_LOCK , NO_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n START_TIMER ;\n debug3 ( \"Processing RPC: REQUEST_NODE_INFO from uid=%d\" , uid ) ;\n if ( ( slurmctld_conf . private_data & PRIVATE_DATA_NODES ) && ( ! validate_operator ( uid ) ) ) {\n error ( \"Security violation, REQUEST_NODE_INFO RPC from uid=%d\" , uid ) ;\n slurm_send_rc_msg ( msg , ESLURM_ACCESS_DENIED ) ;\n return ;\n }\n lock_slurmctld ( node_write_lock ) ;\n select_g_select_nodeinfo_set_all ( ) ;\n if ( ( node_req_msg -> last_update - 1 ) >= last_node_update ) {\n unlock_slurmctld ( node_write_lock ) ;\n debug3 ( \"_slurm_rpc_dump_nodes, no change\" ) ;\n slurm_send_rc_msg ( msg , SLURM_NO_CHANGE_IN_DATA ) ;\n }\n else {\n pack_all_node ( & dump , & dump_size , node_req_msg -> show_flags , uid , msg -> protocol_version ) ;\n unlock_slurmctld ( node_write_lock ) ;\n END_TIMER2 ( \"_slurm_rpc_dump_nodes\" ) ;\n # if 0 info ( \"_slurm_rpc_dump_nodes, size=%d %s\" , dump_size , TIME_STR ) ;\n # endif slurm_msg_t_init ( & response_msg ) ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . address = msg -> address ;\n response_msg . conn = msg -> conn ;\n response_msg . msg_type = RESPONSE_NODE_INFO ;\n response_msg . data = dump ;\n response_msg . data_size = dump_size ;\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n xfree ( dump ) ;\n }\n }"}
{"idx": 8223, "target": 1, "func": "int key_reject_and_link ( struct key * key , unsigned timeout , unsigned error , struct key * keyring , struct key * authkey ) {\n struct assoc_array_edit * edit ;\n struct timespec now ;\n int ret , awaken , link_ret = 0 ;\n key_check ( key ) ;\n key_check ( keyring ) ;\n awaken = 0 ;\n ret = - EBUSY ;\n if ( keyring ) {\n if ( keyring -> restrict_link ) return - EPERM ;\n link_ret = __key_link_begin ( keyring , & key -> index_key , & edit ) ;\n }\n mutex_lock ( & key_construction_mutex ) ;\n if ( ! test_bit ( KEY_FLAG_INSTANTIATED , & key -> flags ) ) {\n atomic_inc ( & key -> user -> nikeys ) ;\n key -> reject_error = - error ;\n smp_wmb ( ) ;\n set_bit ( KEY_FLAG_NEGATIVE , & key -> flags ) ;\n set_bit ( KEY_FLAG_INSTANTIATED , & key -> flags ) ;\n now = current_kernel_time ( ) ;\n key -> expiry = now . tv_sec + timeout ;\n key_schedule_gc ( key -> expiry + key_gc_delay ) ;\n if ( test_and_clear_bit ( KEY_FLAG_USER_CONSTRUCT , & key -> flags ) ) awaken = 1 ;\n ret = 0 ;\n if ( keyring && link_ret == 0 ) __key_link ( key , & edit ) ;\n if ( authkey ) key_revoke ( authkey ) ;\n }\n mutex_unlock ( & key_construction_mutex ) ;\n if ( keyring ) __key_link_end ( keyring , & key -> index_key , edit ) ;\n if ( awaken ) wake_up_bit ( & key -> flags , KEY_FLAG_USER_CONSTRUCT ) ;\n return ret == 0 ? link_ret : ret ;\n }"}
{"idx": 8224, "target": 0, "func": "static void xsltFreeAttrVT ( xsltAttrVTPtr avt ) {\n int i ;\n if ( avt == NULL ) return ;\n if ( avt -> strstart == 1 ) {\n for ( i = 0 ;\n i < avt -> nb_seg ;\n i += 2 ) if ( avt -> segments [ i ] != NULL ) xmlFree ( ( xmlChar * ) avt -> segments [ i ] ) ;\n for ( i = 1 ;\n i < avt -> nb_seg ;\n i += 2 ) xmlXPathFreeCompExpr ( ( xmlXPathCompExprPtr ) avt -> segments [ i ] ) ;\n }\n else {\n for ( i = 0 ;\n i < avt -> nb_seg ;\n i += 2 ) xmlXPathFreeCompExpr ( ( xmlXPathCompExprPtr ) avt -> segments [ i ] ) ;\n for ( i = 1 ;\n i < avt -> nb_seg ;\n i += 2 ) if ( avt -> segments [ i ] != NULL ) xmlFree ( ( xmlChar * ) avt -> segments [ i ] ) ;\n }\n if ( avt -> nsList != NULL ) xmlFree ( avt -> nsList ) ;\n xmlFree ( avt ) ;\n }"}
{"idx": 8225, "target": 0, "func": "TSMLoc TSMimeHdrFieldGet ( TSMBuffer bufp , TSMLoc hdr_obj , int idx ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( hdr_obj ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( hdr_obj ) == TS_SUCCESS ) ) ;\n sdk_assert ( idx >= 0 ) ;\n MIMEHdrImpl * mh = _hdr_mloc_to_mime_hdr_impl ( hdr_obj ) ;\n MIMEField * f = mime_hdr_field_get ( mh , idx ) ;\n if ( f == nullptr ) {\n return TS_NULL_MLOC ;\n }\n MIMEFieldSDKHandle * h = sdk_alloc_field_handle ( bufp , mh ) ;\n h -> field_ptr = f ;\n return reinterpret_cast < TSMLoc > ( h ) ;\n }"}
{"idx": 8226, "target": 0, "func": "static int dissect_lock ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , int version , int offset , rpc_call_info_value * civ ) {\n proto_item * lock_item = NULL ;\n proto_tree * lock_tree = NULL ;\n guint32 fh_hash , svid , start_offset = 0 , end_offset = 0 ;\n if ( tree ) {\n lock_item = proto_tree_add_item ( tree , hf_nlm_lock , tvb , offset , - 1 , ENC_NA ) ;\n if ( lock_item ) lock_tree = proto_item_add_subtree ( lock_item , ett_nlm_lock ) ;\n }\n offset = dissect_rpc_string ( tvb , lock_tree , hf_nlm_lock_caller_name , offset , NULL ) ;\n offset = dissect_nfs3_fh ( tvb , offset , pinfo , lock_tree , \"fh\" , & fh_hash , civ ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" FH:0x%08x\" , fh_hash ) ;\n offset = dissect_rpc_data ( tvb , lock_tree , hf_nlm_lock_owner , offset ) ;\n svid = tvb_get_ntohl ( tvb , offset ) ;\n offset = dissect_rpc_uint32 ( tvb , lock_tree , hf_nlm_lock_svid , offset ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" svid:%d\" , svid ) ;\n if ( version == 4 ) {\n start_offset = tvb_get_ntohl ( tvb , offset ) ;\n offset = dissect_rpc_uint64 ( tvb , lock_tree , hf_nlm_lock_l_offset64 , offset ) ;\n end_offset = tvb_get_ntohl ( tvb , offset ) ;\n offset = dissect_rpc_uint64 ( tvb , lock_tree , hf_nlm_lock_l_len64 , offset ) ;\n }\n else {\n start_offset = tvb_get_ntohl ( tvb , offset ) ;\n offset = dissect_rpc_uint32 ( tvb , lock_tree , hf_nlm_lock_l_offset , offset ) ;\n end_offset = tvb_get_ntohl ( tvb , offset ) ;\n offset = dissect_rpc_uint32 ( tvb , lock_tree , hf_nlm_lock_l_len , offset ) ;\n }\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" pos:%d-%d\" , start_offset , end_offset ) ;\n return offset ;\n }"}
{"idx": 8227, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , MAYBE_DeniedProtocolIsntHandledUntilAccepted ) {\n registry ( ) -> OnDenyRegisterProtocolHandler ( test_protocol_handler ( ) ) ;\n ASSERT_FALSE ( registry ( ) -> IsHandledProtocol ( \"test\" ) ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( test_protocol_handler ( ) ) ;\n ASSERT_TRUE ( registry ( ) -> IsHandledProtocol ( \"test\" ) ) ;\n }"}
{"idx": 8228, "target": 0, "func": "void free_pointer_array ( POINTER_ARRAY * pa ) {\n if ( pa -> typelib . count ) {\n pa -> typelib . count = 0 ;\n my_free ( pa -> typelib . type_names ) ;\n pa -> typelib . type_names = 0 ;\n my_free ( pa -> str ) ;\n }\n }"}
{"idx": 8229, "target": 0, "func": "static gboolean nbd_accept ( QIOChannel * ioc , GIOCondition cond , gpointer opaque ) {\n QIOChannelSocket * cioc ;\n cioc = qio_channel_socket_accept ( QIO_CHANNEL_SOCKET ( ioc ) , NULL ) ;\n if ( ! cioc ) {\n return TRUE ;\n }\n if ( state >= TERMINATE ) {\n object_unref ( OBJECT ( cioc ) ) ;\n return TRUE ;\n }\n nb_fds ++ ;\n nbd_update_server_watch ( ) ;\n nbd_client_new ( newproto ? NULL : exp , cioc , tlscreds , NULL , nbd_client_closed ) ;\n object_unref ( OBJECT ( cioc ) ) ;\n return TRUE ;\n }"}
{"idx": 8230, "target": 0, "func": "int i2d_ ## name ( type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;\n int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING )"}
{"idx": 8231, "target": 0, "func": "static int SpoolssEnumPrinterKey_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n offset = dissect_spoolss_keybuffer ( tvb , offset , pinfo , tree , di , drep ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_needed , NULL ) ;\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 8232, "target": 0, "func": "static void initial_reordering_standalone_cluster ( const hb_ot_shape_plan_t * plan , hb_face_t * face , hb_buffer_t * buffer , unsigned int start , unsigned int end ) {\n if ( hb_options ( ) . uniscribe_bug_compatible ) {\n if ( buffer -> info [ end - 1 ] . indic_category ( ) == OT_DOTTEDCIRCLE ) return ;\n }\n initial_reordering_consonant_syllable ( plan , face , buffer , start , end ) ;\n }"}
{"idx": 8233, "target": 0, "func": "static Image * ReadLABELImage ( const ImageInfo * image_info , ExceptionInfo * exception ) {\n char geometry [ MaxTextExtent ] , * property ;\n const char * label ;\n DrawInfo * draw_info ;\n Image * image ;\n MagickBooleanType status ;\n TypeMetric metrics ;\n size_t height , width ;\n assert ( image_info != ( const ImageInfo * ) NULL ) ;\n assert ( image_info -> signature == MagickSignature ) ;\n if ( image_info -> debug != MagickFalse ) ( void ) LogMagickEvent ( TraceEvent , GetMagickModule ( ) , \"%s\" , image_info -> filename ) ;\n assert ( exception != ( ExceptionInfo * ) NULL ) ;\n assert ( exception -> signature == MagickSignature ) ;\n image = AcquireImage ( image_info ) ;\n ( void ) ResetImagePage ( image , \"0x0+0+0\" ) ;\n property = InterpretImageProperties ( image_info , image , image_info -> filename ) ;\n ( void ) SetImageProperty ( image , \"label\" , property ) ;\n property = DestroyString ( property ) ;\n label = GetImageProperty ( image , \"label\" ) ;\n draw_info = CloneDrawInfo ( image_info , ( DrawInfo * ) NULL ) ;\n draw_info -> text = ConstantString ( label ) ;\n metrics . width = 0 ;\n metrics . ascent = 0.0 ;\n status = GetMultilineTypeMetrics ( image , draw_info , & metrics ) ;\n if ( ( image -> columns == 0 ) && ( image -> rows == 0 ) ) {\n image -> columns = ( size_t ) floor ( metrics . width + draw_info -> stroke_width + 0.5 ) ;\n image -> rows = ( size_t ) floor ( metrics . height + draw_info -> stroke_width + 0.5 ) ;\n }\n else if ( ( strlen ( label ) > 0 ) && ( ( ( image -> columns == 0 ) || ( image -> rows == 0 ) ) || ( fabs ( image_info -> pointsize ) < MagickEpsilon ) ) ) {\n double high , low ;\n for ( ;\n ;\n draw_info -> pointsize *= 2.0 ) {\n ( void ) FormatLocaleString ( geometry , MaxTextExtent , \"%+g%+g\" , - metrics . bounds . x1 , metrics . ascent ) ;\n if ( draw_info -> gravity == UndefinedGravity ) ( void ) CloneString ( & draw_info -> geometry , geometry ) ;\n ( void ) GetMultilineTypeMetrics ( image , draw_info , & metrics ) ;\n width = ( size_t ) floor ( metrics . width + draw_info -> stroke_width + 0.5 ) ;\n height = ( size_t ) floor ( metrics . height + draw_info -> stroke_width + 0.5 ) ;\n if ( ( image -> columns != 0 ) && ( image -> rows != 0 ) ) {\n if ( ( width >= image -> columns ) && ( height >= image -> rows ) ) break ;\n }\n else if ( ( ( image -> columns != 0 ) && ( width >= image -> columns ) ) || ( ( image -> rows != 0 ) && ( height >= image -> rows ) ) ) break ;\n }\n high = draw_info -> pointsize ;\n for ( low = 1.0 ;\n ( high - low ) > 0.5 ;\n ) {\n draw_info -> pointsize = ( low + high ) / 2.0 ;\n ( void ) FormatLocaleString ( geometry , MaxTextExtent , \"%+g%+g\" , - metrics . bounds . x1 , metrics . ascent ) ;\n if ( draw_info -> gravity == UndefinedGravity ) ( void ) CloneString ( & draw_info -> geometry , geometry ) ;\n ( void ) GetMultilineTypeMetrics ( image , draw_info , & metrics ) ;\n width = ( size_t ) floor ( metrics . width + draw_info -> stroke_width + 0.5 ) ;\n height = ( size_t ) floor ( metrics . height + draw_info -> stroke_width + 0.5 ) ;\n if ( ( image -> columns != 0 ) && ( image -> rows != 0 ) ) {\n if ( ( width < image -> columns ) && ( height < image -> rows ) ) low = draw_info -> pointsize + 0.5 ;\n else high = draw_info -> pointsize - 0.5 ;\n }\n else if ( ( ( image -> columns != 0 ) && ( width < image -> columns ) ) || ( ( image -> rows != 0 ) && ( height < image -> rows ) ) ) low = draw_info -> pointsize + 0.5 ;\n else high = draw_info -> pointsize - 0.5 ;\n }\n draw_info -> pointsize = ( low + high ) / 2.0 - 0.5 ;\n }\n status = GetMultilineTypeMetrics ( image , draw_info , & metrics ) ;\n if ( status == MagickFalse ) {\n draw_info = DestroyDrawInfo ( draw_info ) ;\n InheritException ( exception , & image -> exception ) ;\n image = DestroyImageList ( image ) ;\n return ( ( Image * ) NULL ) ;\n }\n if ( image -> columns == 0 ) image -> columns = ( size_t ) floor ( metrics . width + draw_info -> stroke_width + 0.5 ) ;\n if ( image -> columns == 0 ) image -> columns = ( size_t ) floor ( draw_info -> pointsize + draw_info -> stroke_width + 0.5 ) ;\n if ( image -> rows == 0 ) image -> rows = ( size_t ) floor ( metrics . ascent - metrics . descent + draw_info -> stroke_width + 0.5 ) ;\n if ( image -> rows == 0 ) image -> rows = ( size_t ) floor ( draw_info -> pointsize + draw_info -> stroke_width + 0.5 ) ;\n status = SetImageExtent ( image , image -> columns , image -> rows ) ;\n if ( status == MagickFalse ) {\n draw_info = DestroyDrawInfo ( draw_info ) ;\n InheritException ( exception , & image -> exception ) ;\n return ( DestroyImageList ( image ) ) ;\n }\n if ( SetImageBackgroundColor ( image ) == MagickFalse ) {\n draw_info = DestroyDrawInfo ( draw_info ) ;\n InheritException ( exception , & image -> exception ) ;\n image = DestroyImageList ( image ) ;\n return ( ( Image * ) NULL ) ;\n }\n ( void ) FormatLocaleString ( geometry , MaxTextExtent , \"%+g%+g\" , draw_info -> direction == RightToLeftDirection ? image -> columns - metrics . bounds . x2 : 0.0 , draw_info -> gravity == UndefinedGravity ? metrics . ascent : 0.0 ) ;\n ( void ) CloneString ( & draw_info -> geometry , geometry ) ;\n status = AnnotateImage ( image , draw_info ) ;\n if ( image_info -> pointsize == 0.0 ) {\n char pointsize [ MaxTextExtent ] ;\n ( void ) FormatLocaleString ( pointsize , MaxTextExtent , \"%.20g\" , draw_info -> pointsize ) ;\n ( void ) SetImageProperty ( image , \"label:pointsize\" , pointsize ) ;\n }\n draw_info = DestroyDrawInfo ( draw_info ) ;\n if ( status == MagickFalse ) {\n image = DestroyImageList ( image ) ;\n return ( ( Image * ) NULL ) ;\n }\n return ( GetFirstImageInList ( image ) ) ;\n }"}
{"idx": 8234, "target": 1, "func": "static u16 transaction_id_pick ( void ) {\n for ( ;\n ;\n ) {\n const struct request * req = req_head , * started_at ;\n u16 trans_id = trans_id_function ( ) ;\n if ( trans_id == 0xffff ) continue ;\n req = started_at = req_head ;\n if ( req ) {\n do {\n if ( req -> trans_id == trans_id ) break ;\n req = req -> next ;\n }\n while ( req != started_at ) ;\n }\n if ( req == started_at ) return trans_id ;\n }\n }"}
{"idx": 8235, "target": 0, "func": "static char * convert_mime_hdr_to_string ( TSMBuffer bufp , TSMLoc hdr_loc ) {\n TSIOBuffer output_buffer ;\n TSIOBufferReader reader ;\n int64_t total_avail ;\n TSIOBufferBlock block ;\n const char * block_start ;\n int64_t block_avail ;\n char * output_string ;\n int output_len ;\n output_buffer = TSIOBufferCreate ( ) ;\n if ( ! output_buffer ) {\n TSError ( \"[InkAPITest] couldn't allocate IOBuffer\" ) ;\n }\n reader = TSIOBufferReaderAlloc ( output_buffer ) ;\n TSMimeHdrPrint ( bufp , hdr_loc , output_buffer ) ;\n total_avail = TSIOBufferReaderAvail ( reader ) ;\n output_string = ( char * ) TSmalloc ( total_avail + 1 ) ;\n output_len = 0 ;\n block = TSIOBufferReaderStart ( reader ) ;\n while ( block ) {\n block_start = TSIOBufferBlockReadStart ( block , reader , & block_avail ) ;\n if ( block_avail == 0 ) {\n break ;\n }\n memcpy ( output_string + output_len , block_start , block_avail ) ;\n output_len += block_avail ;\n TSIOBufferReaderConsume ( reader , block_avail ) ;\n block = TSIOBufferReaderStart ( reader ) ;\n }\n output_string [ output_len ] = '\\0' ;\n output_len ++ ;\n TSIOBufferReaderFree ( reader ) ;\n TSIOBufferDestroy ( output_buffer ) ;\n return output_string ;\n }"}
{"idx": 8236, "target": 0, "func": "TSReturnCode sdk_sanity_check_http_ssn ( TSHttpSsn ssnp ) {\n if ( ssnp == nullptr ) {\n return TS_ERROR ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 8237, "target": 0, "func": "static int dissect_t38_T30_indicator ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_enumerated ( tvb , offset , actx , tree , hf_index , 16 , & T30ind_value , TRUE , 7 , NULL ) ;\n # line 29 \"../../asn1/t38/t38.cnf\" if ( primary_part ) {\n col_append_fstr ( actx -> pinfo -> cinfo , COL_INFO , \" t30ind: %s\" , val_to_str ( T30ind_value , t38_T30_indicator_vals , \"<unknown>\" ) ) ;\n }\n if ( primary_part ) t38_info -> t30ind_value = T30ind_value ;\n return offset ;\n }"}
{"idx": 8238, "target": 0, "func": "static int dxva2_h264_decode_slice ( AVCodecContext * avctx , const uint8_t * buffer , uint32_t size ) {\n const H264Context * h = avctx -> priv_data ;\n struct dxva_context * ctx = avctx -> hwaccel_context ;\n const Picture * current_picture = h -> cur_pic_ptr ;\n struct dxva2_picture_context * ctx_pic = current_picture -> hwaccel_picture_private ;\n unsigned position ;\n if ( ctx_pic -> slice_count >= MAX_SLICES ) return - 1 ;\n if ( ! ctx_pic -> bitstream ) ctx_pic -> bitstream = buffer ;\n ctx_pic -> bitstream_size += size ;\n position = buffer - ctx_pic -> bitstream ;\n if ( is_slice_short ( ctx ) ) fill_slice_short ( & ctx_pic -> slice_short [ ctx_pic -> slice_count ] , position , size ) ;\n else fill_slice_long ( avctx , & ctx_pic -> slice_long [ ctx_pic -> slice_count ] , position , size ) ;\n ctx_pic -> slice_count ++ ;\n if ( h -> slice_type != AV_PICTURE_TYPE_I && h -> slice_type != AV_PICTURE_TYPE_SI ) ctx_pic -> pp . wBitFields &= ~ ( 1 << 15 ) ;\n return 0 ;\n }"}
{"idx": 8239, "target": 0, "func": "static void pdf_copy_gstate ( fz_context * ctx , pdf_gstate * gs , pdf_gstate * old ) {\n pdf_drop_gstate ( ctx , gs ) ;\n * gs = * old ;\n pdf_keep_gstate ( ctx , gs ) ;\n }"}
{"idx": 8240, "target": 0, "func": "proto_item * proto_tree_add_item_new_ret_length ( proto_tree * tree , header_field_info * hfinfo , tvbuff_t * tvb , const gint start , gint length , const guint encoding , gint * lenretval ) {\n field_info * new_fi ;\n gint item_length ;\n proto_item * item ;\n DISSECTOR_ASSERT_HINT ( hfinfo != NULL , \"Not passed hfi!\" ) ;\n get_hfi_length ( hfinfo , tvb , start , & length , & item_length ) ;\n test_length ( hfinfo , tvb , start , item_length ) ;\n if ( ! tree ) {\n * lenretval = get_full_length ( hfinfo , tvb , start , length , item_length , encoding ) ;\n return NULL ;\n }\n TRY_TO_FAKE_THIS_ITEM ( tree , hfinfo -> id , hfinfo ) ;\n new_fi = new_field_info ( tree , hfinfo , tvb , start , item_length ) ;\n item = proto_tree_new_item ( new_fi , tree , tvb , start , length , encoding ) ;\n * lenretval = new_fi -> length ;\n return item ;\n }"}
{"idx": 8241, "target": 0, "func": "err_status_t srtp_kdf_generate ( srtp_kdf_t * kdf , srtp_prf_label label , uint8_t * key , unsigned int length ) {\n v128_t nonce ;\n err_status_t status ;\n v128_set_to_zero ( & nonce ) ;\n nonce . v8 [ 7 ] = label ;\n status = cipher_set_iv ( kdf -> cipher , & nonce , direction_encrypt ) ;\n if ( status ) return status ;\n octet_string_set_to_zero ( key , length ) ;\n status = cipher_encrypt ( kdf -> cipher , key , & length ) ;\n if ( status ) return status ;\n return err_status_ok ;\n }"}
{"idx": 8242, "target": 0, "func": "static int parse_one_option ( const char * option ) {\n if ( skip_prefix ( option , \"max-pack-size=\" , & option ) ) {\n unsigned long v ;\n if ( ! git_parse_ulong ( option , & v ) ) return 0 ;\n if ( v < 8192 ) {\n warning ( \"max-pack-size is now in bytes, assuming --max-pack-size=%lum\" , v ) ;\n v *= 1024 * 1024 ;\n }\n else if ( v < 1024 * 1024 ) {\n warning ( \"minimum max-pack-size is 1 MiB\" ) ;\n v = 1024 * 1024 ;\n }\n max_packsize = v ;\n }\n else if ( skip_prefix ( option , \"big-file-threshold=\" , & option ) ) {\n unsigned long v ;\n if ( ! git_parse_ulong ( option , & v ) ) return 0 ;\n big_file_threshold = v ;\n }\n else if ( skip_prefix ( option , \"depth=\" , & option ) ) {\n option_depth ( option ) ;\n }\n else if ( skip_prefix ( option , \"active-branches=\" , & option ) ) {\n option_active_branches ( option ) ;\n }\n else if ( skip_prefix ( option , \"export-pack-edges=\" , & option ) ) {\n option_export_pack_edges ( option ) ;\n }\n else if ( starts_with ( option , \"quiet\" ) ) {\n show_stats = 0 ;\n }\n else if ( starts_with ( option , \"stats\" ) ) {\n show_stats = 1 ;\n }\n else {\n return 0 ;\n }\n return 1 ;\n }"}
{"idx": 8243, "target": 0, "func": "static void pll_delete ( struct proclistlist * pll ) {\n free ( pll -> proclist ) ;\n free ( pll ) ;\n }"}
{"idx": 8244, "target": 0, "func": "int kvm_arch_get_registers ( CPUState * cs ) {\n X86CPU * cpu = X86_CPU ( cs ) ;\n int ret ;\n assert ( cpu_is_stopped ( cs ) || qemu_cpu_is_self ( cs ) ) ;\n ret = kvm_get_vcpu_events ( cpu ) ;\n if ( ret < 0 ) {\n goto out ;\n }\n ret = kvm_get_mp_state ( cpu ) ;\n if ( ret < 0 ) {\n goto out ;\n }\n ret = kvm_getput_regs ( cpu , 0 ) ;\n if ( ret < 0 ) {\n goto out ;\n }\n ret = kvm_get_xsave ( cpu ) ;\n if ( ret < 0 ) {\n goto out ;\n }\n ret = kvm_get_xcrs ( cpu ) ;\n if ( ret < 0 ) {\n goto out ;\n }\n ret = kvm_get_sregs ( cpu ) ;\n if ( ret < 0 ) {\n goto out ;\n }\n ret = kvm_get_msrs ( cpu ) ;\n if ( ret < 0 ) {\n goto out ;\n }\n ret = kvm_get_apic ( cpu ) ;\n if ( ret < 0 ) {\n goto out ;\n }\n ret = kvm_get_debugregs ( cpu ) ;\n if ( ret < 0 ) {\n goto out ;\n }\n ret = 0 ;\n out : cpu_sync_bndcs_hflags ( & cpu -> env ) ;\n return ret ;\n }"}
{"idx": 8245, "target": 0, "func": "static ULanguageTag * ultag_parse ( const char * tag , int32_t tagLen , int32_t * parsedLen , UErrorCode * status ) {\n ULanguageTag * t ;\n char * tagBuf ;\n int16_t next ;\n char * pSubtag , * pNext , * pLastGoodPosition ;\n int32_t subtagLen ;\n int32_t extlangIdx ;\n ExtensionListEntry * pExtension ;\n char * pExtValueSubtag , * pExtValueSubtagEnd ;\n int32_t i ;\n UBool privateuseVar = FALSE ;\n int32_t grandfatheredLen = 0 ;\n if ( parsedLen != NULL ) {\n * parsedLen = 0 ;\n }\n if ( U_FAILURE ( * status ) ) {\n return NULL ;\n }\n if ( tagLen < 0 ) {\n tagLen = ( int32_t ) uprv_strlen ( tag ) ;\n }\n tagBuf = ( char * ) uprv_malloc ( tagLen + 1 ) ;\n if ( tagBuf == NULL ) {\n * status = U_MEMORY_ALLOCATION_ERROR ;\n return NULL ;\n }\n uprv_memcpy ( tagBuf , tag , tagLen ) ;\n * ( tagBuf + tagLen ) = 0 ;\n t = ( ULanguageTag * ) uprv_malloc ( sizeof ( ULanguageTag ) ) ;\n if ( t == NULL ) {\n uprv_free ( tagBuf ) ;\n * status = U_MEMORY_ALLOCATION_ERROR ;\n return NULL ;\n }\n _initializeULanguageTag ( t ) ;\n t -> buf = tagBuf ;\n if ( tagLen < MINLEN ) {\n return t ;\n }\n for ( i = 0 ;\n GRANDFATHERED [ i ] != NULL ;\n i += 2 ) {\n if ( uprv_stricmp ( GRANDFATHERED [ i ] , tagBuf ) == 0 ) {\n int32_t newTagLength ;\n grandfatheredLen = tagLen ;\n newTagLength = uprv_strlen ( GRANDFATHERED [ i + 1 ] ) ;\n if ( tagLen < newTagLength ) {\n uprv_free ( tagBuf ) ;\n tagBuf = ( char * ) uprv_malloc ( newTagLength + 1 ) ;\n if ( tagBuf == NULL ) {\n * status = U_MEMORY_ALLOCATION_ERROR ;\n ultag_close ( t ) ;\n return NULL ;\n }\n t -> buf = tagBuf ;\n tagLen = newTagLength ;\n }\n uprv_strcpy ( t -> buf , GRANDFATHERED [ i + 1 ] ) ;\n break ;\n }\n }\n next = LANG | PRIV ;\n pNext = pLastGoodPosition = tagBuf ;\n extlangIdx = 0 ;\n pExtension = NULL ;\n pExtValueSubtag = NULL ;\n pExtValueSubtagEnd = NULL ;\n while ( pNext ) {\n char * pSep ;\n pSubtag = pNext ;\n pSep = pSubtag ;\n while ( * pSep ) {\n if ( * pSep == SEP ) {\n break ;\n }\n pSep ++ ;\n }\n if ( * pSep == 0 ) {\n pNext = NULL ;\n }\n else {\n pNext = pSep + 1 ;\n }\n subtagLen = ( int32_t ) ( pSep - pSubtag ) ;\n if ( next & LANG ) {\n if ( _isLanguageSubtag ( pSubtag , subtagLen ) ) {\n * pSep = 0 ;\n t -> language = T_CString_toLowerCase ( pSubtag ) ;\n pLastGoodPosition = pSep ;\n next = EXTL | SCRT | REGN | VART | EXTS | PRIV ;\n continue ;\n }\n }\n if ( next & EXTL ) {\n if ( _isExtlangSubtag ( pSubtag , subtagLen ) ) {\n * pSep = 0 ;\n t -> extlang [ extlangIdx ++ ] = T_CString_toLowerCase ( pSubtag ) ;\n pLastGoodPosition = pSep ;\n if ( extlangIdx < 3 ) {\n next = EXTL | SCRT | REGN | VART | EXTS | PRIV ;\n }\n else {\n next = SCRT | REGN | VART | EXTS | PRIV ;\n }\n continue ;\n }\n }\n if ( next & SCRT ) {\n if ( _isScriptSubtag ( pSubtag , subtagLen ) ) {\n char * p = pSubtag ;\n * pSep = 0 ;\n * p = uprv_toupper ( * p ) ;\n p ++ ;\n for ( ;\n * p ;\n p ++ ) {\n * p = uprv_tolower ( * p ) ;\n }\n t -> script = pSubtag ;\n pLastGoodPosition = pSep ;\n next = REGN | VART | EXTS | PRIV ;\n continue ;\n }\n }\n if ( next & REGN ) {\n if ( _isRegionSubtag ( pSubtag , subtagLen ) ) {\n * pSep = 0 ;\n t -> region = T_CString_toUpperCase ( pSubtag ) ;\n pLastGoodPosition = pSep ;\n next = VART | EXTS | PRIV ;\n continue ;\n }\n }\n if ( next & VART ) {\n if ( _isVariantSubtag ( pSubtag , subtagLen ) || ( privateuseVar && _isPrivateuseVariantSubtag ( pSubtag , subtagLen ) ) ) {\n VariantListEntry * var ;\n UBool isAdded ;\n var = ( VariantListEntry * ) uprv_malloc ( sizeof ( VariantListEntry ) ) ;\n if ( var == NULL ) {\n * status = U_MEMORY_ALLOCATION_ERROR ;\n goto error ;\n }\n * pSep = 0 ;\n var -> variant = T_CString_toUpperCase ( pSubtag ) ;\n isAdded = _addVariantToList ( & ( t -> variants ) , var ) ;\n if ( ! isAdded ) {\n uprv_free ( var ) ;\n break ;\n }\n pLastGoodPosition = pSep ;\n next = VART | EXTS | PRIV ;\n continue ;\n }\n }\n if ( next & EXTS ) {\n if ( _isExtensionSingleton ( pSubtag , subtagLen ) ) {\n if ( pExtension != NULL ) {\n if ( pExtValueSubtag == NULL || pExtValueSubtagEnd == NULL ) {\n uprv_free ( pExtension ) ;\n pExtension = NULL ;\n break ;\n }\n * pExtValueSubtagEnd = 0 ;\n pExtension -> value = T_CString_toLowerCase ( pExtValueSubtag ) ;\n if ( _addExtensionToList ( & ( t -> extensions ) , pExtension , FALSE ) ) {\n pLastGoodPosition = pExtValueSubtagEnd ;\n }\n else {\n uprv_free ( pExtension ) ;\n pExtension = NULL ;\n break ;\n }\n }\n pExtension = ( ExtensionListEntry * ) uprv_malloc ( sizeof ( ExtensionListEntry ) ) ;\n if ( pExtension == NULL ) {\n * status = U_MEMORY_ALLOCATION_ERROR ;\n goto error ;\n }\n * pSep = 0 ;\n pExtension -> key = T_CString_toLowerCase ( pSubtag ) ;\n pExtension -> value = NULL ;\n pExtValueSubtag = NULL ;\n pExtValueSubtagEnd = NULL ;\n next = EXTV ;\n continue ;\n }\n }\n if ( next & EXTV ) {\n if ( _isExtensionSubtag ( pSubtag , subtagLen ) ) {\n if ( pExtValueSubtag == NULL ) {\n pExtValueSubtag = pSubtag ;\n }\n pExtValueSubtagEnd = pSep ;\n next = EXTS | EXTV | PRIV ;\n continue ;\n }\n }\n if ( next & PRIV ) {\n if ( uprv_tolower ( * pSubtag ) == PRIVATEUSE ) {\n char * pPrivuseVal ;\n if ( pExtension != NULL ) {\n if ( pExtValueSubtag == NULL || pExtValueSubtagEnd == NULL ) {\n uprv_free ( pExtension ) ;\n pExtension = NULL ;\n break ;\n }\n else {\n * pExtValueSubtagEnd = 0 ;\n pExtension -> value = T_CString_toLowerCase ( pExtValueSubtag ) ;\n if ( _addExtensionToList ( & ( t -> extensions ) , pExtension , FALSE ) ) {\n pLastGoodPosition = pExtValueSubtagEnd ;\n pExtension = NULL ;\n }\n else {\n uprv_free ( pExtension ) ;\n pExtension = NULL ;\n break ;\n }\n }\n }\n if ( pNext == NULL ) {\n break ;\n }\n pPrivuseVal = pNext ;\n while ( pNext ) {\n pSubtag = pNext ;\n pSep = pSubtag ;\n while ( * pSep ) {\n if ( * pSep == SEP ) {\n break ;\n }\n pSep ++ ;\n }\n if ( * pSep == 0 ) {\n pNext = NULL ;\n }\n else {\n pNext = pSep + 1 ;\n }\n subtagLen = ( int32_t ) ( pSep - pSubtag ) ;\n if ( uprv_strncmp ( pSubtag , PRIVUSE_VARIANT_PREFIX , uprv_strlen ( PRIVUSE_VARIANT_PREFIX ) ) == 0 ) {\n * pSep = 0 ;\n next = VART ;\n privateuseVar = TRUE ;\n break ;\n }\n else if ( _isPrivateuseValueSubtag ( pSubtag , subtagLen ) ) {\n pLastGoodPosition = pSep ;\n }\n else {\n break ;\n }\n }\n if ( next == VART ) {\n continue ;\n }\n if ( pLastGoodPosition - pPrivuseVal > 0 ) {\n * pLastGoodPosition = 0 ;\n t -> privateuse = T_CString_toLowerCase ( pPrivuseVal ) ;\n }\n break ;\n }\n break ;\n }\n break ;\n }\n if ( pExtension != NULL ) {\n if ( pExtValueSubtag == NULL || pExtValueSubtagEnd == NULL ) {\n uprv_free ( pExtension ) ;\n }\n else {\n * pExtValueSubtagEnd = 0 ;\n pExtension -> value = T_CString_toLowerCase ( pExtValueSubtag ) ;\n if ( _addExtensionToList ( & ( t -> extensions ) , pExtension , FALSE ) ) {\n pLastGoodPosition = pExtValueSubtagEnd ;\n }\n else {\n uprv_free ( pExtension ) ;\n }\n }\n }\n if ( parsedLen != NULL ) {\n * parsedLen = ( grandfatheredLen > 0 ) ? grandfatheredLen : ( int32_t ) ( pLastGoodPosition - t -> buf ) ;\n }\n return t ;\n error : ultag_close ( t ) ;\n return NULL ;\n }"}
{"idx": 8246, "target": 0, "func": "void fe_ircnet_deinit ( void ) {\n command_unbind ( \"ircnet\" , ( SIGNAL_FUNC ) cmd_network ) ;\n command_unbind ( \"network\" , ( SIGNAL_FUNC ) cmd_network ) ;\n command_unbind ( \"network list\" , ( SIGNAL_FUNC ) cmd_network_list ) ;\n command_unbind ( \"network add\" , ( SIGNAL_FUNC ) cmd_network_add ) ;\n command_unbind ( \"network modify\" , ( SIGNAL_FUNC ) cmd_network_modify ) ;\n command_unbind ( \"network remove\" , ( SIGNAL_FUNC ) cmd_network_remove ) ;\n }"}
{"idx": 8247, "target": 0, "func": "static bool vmxnet_tx_pkt_parse_headers ( struct VmxnetTxPkt * pkt ) {\n struct iovec * l2_hdr , * l3_hdr ;\n size_t bytes_read ;\n size_t full_ip6hdr_len ;\n uint16_t l3_proto ;\n assert ( pkt ) ;\n l2_hdr = & pkt -> vec [ VMXNET_TX_PKT_L2HDR_FRAG ] ;\n l3_hdr = & pkt -> vec [ VMXNET_TX_PKT_L3HDR_FRAG ] ;\n bytes_read = iov_to_buf ( pkt -> raw , pkt -> raw_frags , 0 , l2_hdr -> iov_base , ETH_MAX_L2_HDR_LEN ) ;\n if ( bytes_read < sizeof ( struct eth_header ) ) {\n l2_hdr -> iov_len = 0 ;\n return false ;\n }\n l2_hdr -> iov_len = sizeof ( struct eth_header ) ;\n switch ( be16_to_cpu ( PKT_GET_ETH_HDR ( l2_hdr -> iov_base ) -> h_proto ) ) {\n case ETH_P_VLAN : l2_hdr -> iov_len += sizeof ( struct vlan_header ) ;\n break ;\n case ETH_P_DVLAN : l2_hdr -> iov_len += 2 * sizeof ( struct vlan_header ) ;\n break ;\n }\n if ( bytes_read < l2_hdr -> iov_len ) {\n l2_hdr -> iov_len = 0 ;\n return false ;\n }\n l3_proto = eth_get_l3_proto ( l2_hdr -> iov_base , l2_hdr -> iov_len ) ;\n switch ( l3_proto ) {\n case ETH_P_IP : l3_hdr -> iov_base = g_malloc ( ETH_MAX_IP4_HDR_LEN ) ;\n bytes_read = iov_to_buf ( pkt -> raw , pkt -> raw_frags , l2_hdr -> iov_len , l3_hdr -> iov_base , sizeof ( struct ip_header ) ) ;\n if ( bytes_read < sizeof ( struct ip_header ) ) {\n l3_hdr -> iov_len = 0 ;\n return false ;\n }\n l3_hdr -> iov_len = IP_HDR_GET_LEN ( l3_hdr -> iov_base ) ;\n pkt -> l4proto = ( ( struct ip_header * ) l3_hdr -> iov_base ) -> ip_p ;\n bytes_read = iov_to_buf ( pkt -> raw , pkt -> raw_frags , l2_hdr -> iov_len + sizeof ( struct ip_header ) , l3_hdr -> iov_base + sizeof ( struct ip_header ) , l3_hdr -> iov_len - sizeof ( struct ip_header ) ) ;\n if ( bytes_read < l3_hdr -> iov_len - sizeof ( struct ip_header ) ) {\n l3_hdr -> iov_len = 0 ;\n return false ;\n }\n break ;\n case ETH_P_IPV6 : if ( ! eth_parse_ipv6_hdr ( pkt -> raw , pkt -> raw_frags , l2_hdr -> iov_len , & pkt -> l4proto , & full_ip6hdr_len ) ) {\n l3_hdr -> iov_len = 0 ;\n return false ;\n }\n l3_hdr -> iov_base = g_malloc ( full_ip6hdr_len ) ;\n bytes_read = iov_to_buf ( pkt -> raw , pkt -> raw_frags , l2_hdr -> iov_len , l3_hdr -> iov_base , full_ip6hdr_len ) ;\n if ( bytes_read < full_ip6hdr_len ) {\n l3_hdr -> iov_len = 0 ;\n return false ;\n }\n else {\n l3_hdr -> iov_len = full_ip6hdr_len ;\n }\n break ;\n default : l3_hdr -> iov_len = 0 ;\n break ;\n }\n vmxnet_tx_pkt_calculate_hdr_len ( pkt ) ;\n pkt -> packet_type = get_eth_packet_type ( l2_hdr -> iov_base ) ;\n return true ;\n }"}
{"idx": 8248, "target": 0, "func": "TEST_F ( ProcessUtilTest , KillSlowChild ) {\n const std : : string signal_file = ProcessUtilTest : : GetSignalFilePath ( kSignalFileSlow ) ;\n remove ( signal_file . c_str ( ) ) ;\n base : : Process process = SpawnChild ( \"SlowChildProcess\" ) ;\n ASSERT_TRUE ( process . IsValid ( ) ) ;\n SignalChildren ( signal_file . c_str ( ) ) ;\n EXPECT_TRUE ( base : : WaitForSingleProcess ( process . Handle ( ) , TestTimeouts : : action_max_timeout ( ) ) ) ;\n remove ( signal_file . c_str ( ) ) ;\n }"}
{"idx": 8249, "target": 0, "func": "int print_msg_junit_test ( char * code , FILE * fd , char header , char segregationLevel ) {\n unsigned short int i , j , l , m , msglen ;\n int k ;\n char r , * msg ;\n unsigned char * payload ;\n payload = ( unsigned char * ) code ;\n memcpy ( & i , code , 2 ) ;\n memcpy ( & j , & code [ MSG_START_IDX ] , 2 ) ;\n memcpy ( & msglen , & code [ MSG_LEN_IDX ] , 2 ) ;\n i = ntohs ( i ) ;\n j = ntohs ( j ) ;\n msglen = ntohs ( msglen ) ;\n if ( header == 0 ) {\n fwrite ( code , 1 , j + msglen , fd ) ;\n fwrite ( & theSignal , 1 , 4 , fd ) ;\n return 0 ;\n }\n msg = ( char * ) & payload [ j ] ;\n r = ( i < 100 ) ? 1 : 0 ;\n if ( r ) {\n if ( segregationLevel & ALSO_RURI ) {\n k = htonl ( 50 ) ;\n fwrite ( & k , 1 , 4 , fd ) ;\n fwrite ( msg , 1 , 50 , fd ) ;\n k = htonl ( ( long ) payload [ REQUEST_URI_IDX ] ) ;\n fwrite ( & k , 1 , 4 , fd ) ;\n fwrite ( & payload [ REQUEST_URI_IDX + 1 ] , 1 , payload [ REQUEST_URI_IDX ] , fd ) ;\n fwrite ( & theSignal , 1 , 4 , fd ) ;\n }\n i = REQUEST_URI_IDX + 1 + payload [ REQUEST_URI_IDX ] ;\n }\n else {\n i = REQUEST_URI_IDX ;\n }\n j = payload [ i ] ;\n i ++ ;\n for ( k = i ;\n k < i + ( j * 3 ) ;\n k += 3 ) {\n memcpy ( & l , & payload [ k + 1 ] , 2 ) ;\n memcpy ( & m , & payload [ k + 4 ] , 2 ) ;\n l = ntohs ( l ) ;\n m = ntohs ( m ) ;\n if ( header == ( char ) payload [ k ] || ( header == 'U' && ( payload [ k ] == 'f' || payload [ k ] == 't' || payload [ k ] == 'm' || payload [ k ] == 'o' || payload [ k ] == 'p' ) ) ) dump_headers_test ( msg , msglen , & payload [ i + ( j * 3 ) + l + 3 ] , m - l , payload [ k ] , fd , segregationLevel ) ;\n }\n return 1 ;\n }"}
{"idx": 8250, "target": 0, "func": "int qemuMonitorTextSetLink ( qemuMonitorPtr mon , const char * name , enum virDomainNetInterfaceLinkState state ) {\n char * info = NULL ;\n char * cmd = NULL ;\n const char * st_str = NULL ;\n if ( state == VIR_DOMAIN_NET_INTERFACE_LINK_STATE_DOWN ) st_str = \"off\" ;\n else st_str = \"on\" ;\n if ( virAsprintf ( & cmd , \"set_link %s %s\" , name , st_str ) < 0 ) {\n virReportOOMError ( ) ;\n goto error ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & info ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , _ ( \"set_link operation failed\" ) ) ;\n goto error ;\n }\n if ( strstr ( info , \"\\nunknown \" ) ) {\n qemuReportError ( VIR_ERR_NO_SUPPORT , \"%s\" , _ ( \"\\'set_link\\' not supported by this qemu\" ) ) ;\n goto error ;\n }\n if ( strstr ( info , \"\\nDevice \" ) ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , _ ( \"device name rejected\" ) ) ;\n goto error ;\n }\n VIR_FREE ( info ) ;\n VIR_FREE ( cmd ) ;\n return 0 ;\n error : VIR_FREE ( info ) ;\n VIR_FREE ( cmd ) ;\n return - 1 ;\n }"}
{"idx": 8251, "target": 0, "func": "static int isofile_gen_utility_names ( struct archive_write * a , struct isofile * file ) {\n struct iso9660 * iso9660 ;\n const char * pathname ;\n char * p , * dirname , * slash ;\n size_t len ;\n int ret = ARCHIVE_OK ;\n iso9660 = a -> format_data ;\n archive_string_empty ( & ( file -> parentdir ) ) ;\n archive_string_empty ( & ( file -> basename ) ) ;\n archive_string_empty ( & ( file -> basename_utf16 ) ) ;\n archive_string_empty ( & ( file -> symlink ) ) ;\n pathname = archive_entry_pathname ( file -> entry ) ;\n if ( pathname == NULL || pathname [ 0 ] == '\\0' ) {\n file -> dircnt = 0 ;\n return ( ret ) ;\n }\n if ( iso9660 -> opt . joliet ) {\n const char * u16 , * ulast ;\n size_t u16len , ulen_last ;\n if ( iso9660 -> sconv_to_utf16be == NULL ) {\n iso9660 -> sconv_to_utf16be = archive_string_conversion_to_charset ( & ( a -> archive ) , \"UTF-16BE\" , 1 ) ;\n if ( iso9660 -> sconv_to_utf16be == NULL ) return ( ARCHIVE_FATAL ) ;\n iso9660 -> sconv_from_utf16be = archive_string_conversion_from_charset ( & ( a -> archive ) , \"UTF-16BE\" , 1 ) ;\n if ( iso9660 -> sconv_from_utf16be == NULL ) return ( ARCHIVE_FATAL ) ;\n }\n if ( 0 > archive_entry_pathname_l ( file -> entry , & u16 , & u16len , iso9660 -> sconv_to_utf16be ) ) {\n if ( errno == ENOMEM ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate memory for UTF-16BE\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"A filename cannot be converted to UTF-16BE;\n\" \"You should disable making Joliet extension\" ) ;\n ret = ARCHIVE_WARN ;\n }\n while ( u16len >= 2 ) {\n # if defined ( _WIN32 ) || defined ( __CYGWIN__ ) if ( u16 [ u16len - 2 ] == 0 && ( u16 [ u16len - 1 ] == '/' || u16 [ u16len - 1 ] == '\\\\' ) ) # else if ( u16 [ u16len - 2 ] == 0 && u16 [ u16len - 1 ] == '/' ) # endif {\n u16len -= 2 ;\n }\n else break ;\n }\n ulast = u16 ;\n u16len >>= 1 ;\n ulen_last = u16len ;\n while ( u16len > 0 ) {\n # if defined ( _WIN32 ) || defined ( __CYGWIN__ ) if ( u16 [ 0 ] == 0 && ( u16 [ 1 ] == '/' || u16 [ 1 ] == '\\\\' ) ) # else if ( u16 [ 0 ] == 0 && u16 [ 1 ] == '/' ) # endif {\n ulast = u16 + 2 ;\n ulen_last = u16len - 1 ;\n }\n u16 += 2 ;\n u16len -- ;\n }\n ulen_last <<= 1 ;\n if ( archive_string_ensure ( & ( file -> basename_utf16 ) , ulen_last ) == NULL ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate memory for UTF-16BE\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n memcpy ( file -> basename_utf16 . s , ulast , ulen_last ) ;\n file -> basename_utf16 . length = ulen_last ;\n }\n archive_strcpy ( & ( file -> parentdir ) , pathname ) ;\n # if defined ( _WIN32 ) || defined ( __CYGWIN__ ) if ( cleanup_backslash_1 ( file -> parentdir . s ) != 0 ) {\n const wchar_t * wp = archive_entry_pathname_w ( file -> entry ) ;\n struct archive_wstring ws ;\n if ( wp != NULL ) {\n int r ;\n archive_string_init ( & ws ) ;\n archive_wstrcpy ( & ws , wp ) ;\n cleanup_backslash_2 ( ws . s ) ;\n archive_string_empty ( & ( file -> parentdir ) ) ;\n r = archive_string_append_from_wcs ( & ( file -> parentdir ) , ws . s , ws . length ) ;\n archive_wstring_free ( & ws ) ;\n if ( r < 0 && errno == ENOMEM ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate memory\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n }\n }\n # endif len = file -> parentdir . length ;\n p = dirname = file -> parentdir . s ;\n while ( * p ) {\n if ( p [ 0 ] == '/' ) {\n p ++ ;\n len -- ;\n }\n else if ( p [ 0 ] != '.' ) break ;\n else if ( p [ 1 ] == '.' && p [ 2 ] == '/' ) {\n p += 3 ;\n len -= 3 ;\n }\n else if ( p [ 1 ] == '/' || ( p [ 1 ] == '.' && p [ 2 ] == '\\0' ) ) {\n p += 2 ;\n len -= 2 ;\n }\n else if ( p [ 1 ] == '\\0' ) {\n p ++ ;\n len -- ;\n }\n else break ;\n }\n if ( p != dirname ) {\n memmove ( dirname , p , len + 1 ) ;\n p = dirname ;\n }\n while ( len > 0 ) {\n size_t ll = len ;\n if ( len > 0 && p [ len - 1 ] == '/' ) {\n p [ len - 1 ] = '\\0' ;\n len -- ;\n }\n if ( len > 1 && p [ len - 2 ] == '/' && p [ len - 1 ] == '.' ) {\n p [ len - 2 ] = '\\0' ;\n len -= 2 ;\n }\n if ( len > 2 && p [ len - 3 ] == '/' && p [ len - 2 ] == '.' && p [ len - 1 ] == '.' ) {\n p [ len - 3 ] = '\\0' ;\n len -= 3 ;\n }\n if ( ll == len ) break ;\n }\n while ( * p ) {\n if ( p [ 0 ] == '/' ) {\n if ( p [ 1 ] == '/' ) strcpy ( p , p + 1 ) ;\n else if ( p [ 1 ] == '.' && p [ 2 ] == '/' ) strcpy ( p , p + 2 ) ;\n else if ( p [ 1 ] == '.' && p [ 2 ] == '.' && p [ 3 ] == '/' ) {\n char * rp = p - 1 ;\n while ( rp >= dirname ) {\n if ( * rp == '/' ) break ;\n -- rp ;\n }\n if ( rp > dirname ) {\n strcpy ( rp , p + 3 ) ;\n p = rp ;\n }\n else {\n strcpy ( dirname , p + 4 ) ;\n p = dirname ;\n }\n }\n else p ++ ;\n }\n else p ++ ;\n }\n p = dirname ;\n len = strlen ( p ) ;\n if ( archive_entry_filetype ( file -> entry ) == AE_IFLNK ) {\n pathname = archive_entry_symlink ( file -> entry ) ;\n archive_strcpy ( & ( file -> symlink ) , pathname ) ;\n # if defined ( _WIN32 ) || defined ( __CYGWIN__ ) if ( archive_strlen ( & ( file -> symlink ) ) > 0 && cleanup_backslash_1 ( file -> symlink . s ) != 0 ) {\n const wchar_t * wp = archive_entry_symlink_w ( file -> entry ) ;\n struct archive_wstring ws ;\n if ( wp != NULL ) {\n int r ;\n archive_string_init ( & ws ) ;\n archive_wstrcpy ( & ws , wp ) ;\n cleanup_backslash_2 ( ws . s ) ;\n archive_string_empty ( & ( file -> symlink ) ) ;\n r = archive_string_append_from_wcs ( & ( file -> symlink ) , ws . s , ws . length ) ;\n archive_wstring_free ( & ws ) ;\n if ( r < 0 && errno == ENOMEM ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate memory\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n }\n }\n # endif }\n slash = NULL ;\n file -> dircnt = 0 ;\n for ( ;\n * p != '\\0' ;\n p ++ ) if ( * p == '/' ) {\n slash = p ;\n file -> dircnt ++ ;\n }\n if ( slash == NULL ) {\n file -> parentdir . length = len ;\n archive_string_copy ( & ( file -> basename ) , & ( file -> parentdir ) ) ;\n archive_string_empty ( & ( file -> parentdir ) ) ;\n * file -> parentdir . s = '\\0' ;\n return ( ret ) ;\n }\n * slash = '\\0' ;\n file -> parentdir . length = slash - dirname ;\n archive_strcpy ( & ( file -> basename ) , slash + 1 ) ;\n if ( archive_entry_filetype ( file -> entry ) == AE_IFDIR ) file -> dircnt ++ ;\n return ( ret ) ;\n }"}
{"idx": 8252, "target": 0, "func": "sig_handler mysql_end ( int sig ) {\n # ifndef _WIN32 signal ( SIGQUIT , SIG_IGN ) ;\n signal ( SIGINT , SIG_IGN ) ;\n # endif mysql_close ( & mysql ) ;\n # ifdef HAVE_READLINE if ( ! status . batch && ! quick && ! opt_html && ! opt_xml && histfile && histfile [ 0 ] ) {\n if ( verbose ) tee_fprintf ( stdout , \"Writing history-file %s\\n\" , histfile ) ;\n if ( ! write_history ( histfile_tmp ) ) my_rename ( histfile_tmp , histfile , MYF ( MY_WME ) ) ;\n }\n batch_readline_end ( status . line_buff ) ;\n completion_hash_free ( & ht ) ;\n free_root ( & hash_mem_root , MYF ( 0 ) ) ;\n # endif if ( sig >= 0 ) put_info ( sig ? \"Aborted\" : \"Bye\" , INFO_RESULT ) ;\n glob_buffer . free ( ) ;\n old_buffer . free ( ) ;\n processed_prompt . free ( ) ;\n my_free ( server_version ) ;\n my_free ( opt_password ) ;\n my_free ( opt_mysql_unix_port ) ;\n my_free ( histfile ) ;\n my_free ( histfile_tmp ) ;\n my_free ( current_db ) ;\n my_free ( current_host ) ;\n my_free ( current_user ) ;\n my_free ( full_username ) ;\n my_free ( part_username ) ;\n my_free ( default_prompt ) ;\n # ifdef HAVE_SMEM my_free ( shared_memory_base_name ) ;\n # endif my_free ( current_prompt ) ;\n while ( embedded_server_arg_count > 1 ) my_free ( embedded_server_args [ -- embedded_server_arg_count ] ) ;\n mysql_server_end ( ) ;\n free_defaults ( defaults_argv ) ;\n my_end ( my_end_arg ) ;\n exit ( status . exit_status ) ;\n }"}
{"idx": 8253, "target": 0, "func": "static int avi_read_header ( AVFormatContext * s ) {\n AVIContext * avi = s -> priv_data ;\n AVIOContext * pb = s -> pb ;\n unsigned int tag , tag1 , handler ;\n int codec_type , stream_index , frame_period ;\n unsigned int size ;\n int i ;\n AVStream * st ;\n AVIStream * ast = NULL ;\n int avih_width = 0 , avih_height = 0 ;\n int amv_file_format = 0 ;\n uint64_t list_end = 0 ;\n int64_t pos ;\n int ret ;\n AVDictionaryEntry * dict_entry ;\n avi -> stream_index = - 1 ;\n ret = get_riff ( s , pb ) ;\n if ( ret < 0 ) return ret ;\n av_log ( avi , AV_LOG_DEBUG , \"use odml:%d\\n\" , avi -> use_odml ) ;\n avi -> io_fsize = avi -> fsize = avio_size ( pb ) ;\n if ( avi -> fsize <= 0 || avi -> fsize < avi -> riff_end ) avi -> fsize = avi -> riff_end == 8 ? INT64_MAX : avi -> riff_end ;\n stream_index = - 1 ;\n codec_type = - 1 ;\n frame_period = 0 ;\n for ( ;\n ;\n ) {\n if ( avio_feof ( pb ) ) goto fail ;\n tag = avio_rl32 ( pb ) ;\n size = avio_rl32 ( pb ) ;\n print_tag ( \"tag\" , tag , size ) ;\n switch ( tag ) {\n case MKTAG ( 'L' , 'I' , 'S' , 'T' ) : list_end = avio_tell ( pb ) + size ;\n tag1 = avio_rl32 ( pb ) ;\n print_tag ( \"list\" , tag1 , 0 ) ;\n if ( tag1 == MKTAG ( 'm' , 'o' , 'v' , 'i' ) ) {\n avi -> movi_list = avio_tell ( pb ) - 4 ;\n if ( size ) avi -> movi_end = avi -> movi_list + size + ( size & 1 ) ;\n else avi -> movi_end = avi -> fsize ;\n av_log ( NULL , AV_LOG_TRACE , \"movi end=%\" PRIx64 \"\\n\" , avi -> movi_end ) ;\n goto end_of_header ;\n }\n else if ( tag1 == MKTAG ( 'I' , 'N' , 'F' , 'O' ) ) ff_read_riff_info ( s , size - 4 ) ;\n else if ( tag1 == MKTAG ( 'n' , 'c' , 'd' , 't' ) ) avi_read_nikon ( s , list_end ) ;\n break ;\n case MKTAG ( 'I' , 'D' , 'I' , 'T' ) : {\n unsigned char date [ 64 ] = {\n 0 }\n ;\n size += ( size & 1 ) ;\n size -= avio_read ( pb , date , FFMIN ( size , sizeof ( date ) - 1 ) ) ;\n avio_skip ( pb , size ) ;\n avi_metadata_creation_time ( & s -> metadata , date ) ;\n break ;\n }\n case MKTAG ( 'd' , 'm' , 'l' , 'h' ) : avi -> is_odml = 1 ;\n avio_skip ( pb , size + ( size & 1 ) ) ;\n break ;\n case MKTAG ( 'a' , 'm' , 'v' , 'h' ) : amv_file_format = 1 ;\n case MKTAG ( 'a' , 'v' , 'i' , 'h' ) : frame_period = avio_rl32 ( pb ) ;\n avio_rl32 ( pb ) ;\n avio_rl32 ( pb ) ;\n avi -> non_interleaved |= avio_rl32 ( pb ) & AVIF_MUSTUSEINDEX ;\n avio_skip ( pb , 2 * 4 ) ;\n avio_rl32 ( pb ) ;\n avio_rl32 ( pb ) ;\n avih_width = avio_rl32 ( pb ) ;\n avih_height = avio_rl32 ( pb ) ;\n avio_skip ( pb , size - 10 * 4 ) ;\n break ;\n case MKTAG ( 's' , 't' , 'r' , 'h' ) : tag1 = avio_rl32 ( pb ) ;\n handler = avio_rl32 ( pb ) ;\n if ( tag1 == MKTAG ( 'p' , 'a' , 'd' , 's' ) ) {\n avio_skip ( pb , size - 8 ) ;\n break ;\n }\n else {\n stream_index ++ ;\n st = avformat_new_stream ( s , NULL ) ;\n if ( ! st ) goto fail ;\n st -> id = stream_index ;\n ast = av_mallocz ( sizeof ( AVIStream ) ) ;\n if ( ! ast ) goto fail ;\n st -> priv_data = ast ;\n }\n if ( amv_file_format ) tag1 = stream_index ? MKTAG ( 'a' , 'u' , 'd' , 's' ) : MKTAG ( 'v' , 'i' , 'd' , 's' ) ;\n print_tag ( \"strh\" , tag1 , - 1 ) ;\n if ( tag1 == MKTAG ( 'i' , 'a' , 'v' , 's' ) || tag1 == MKTAG ( 'i' , 'v' , 'a' , 's' ) ) {\n int64_t dv_dur ;\n if ( s -> nb_streams != 1 ) goto fail ;\n if ( handler != MKTAG ( 'd' , 'v' , 's' , 'd' ) && handler != MKTAG ( 'd' , 'v' , 'h' , 'd' ) && handler != MKTAG ( 'd' , 'v' , 's' , 'l' ) ) goto fail ;\n ast = s -> streams [ 0 ] -> priv_data ;\n av_freep ( & s -> streams [ 0 ] -> codecpar -> extradata ) ;\n av_freep ( & s -> streams [ 0 ] -> codecpar ) ;\n # if FF_API_LAVF_AVCTX FF_DISABLE_DEPRECATION_WARNINGS av_freep ( & s -> streams [ 0 ] -> codec ) ;\n FF_ENABLE_DEPRECATION_WARNINGS # endif if ( s -> streams [ 0 ] -> info ) av_freep ( & s -> streams [ 0 ] -> info -> duration_error ) ;\n av_freep ( & s -> streams [ 0 ] -> info ) ;\n if ( s -> streams [ 0 ] -> internal ) av_freep ( & s -> streams [ 0 ] -> internal -> avctx ) ;\n av_freep ( & s -> streams [ 0 ] -> internal ) ;\n av_freep ( & s -> streams [ 0 ] ) ;\n s -> nb_streams = 0 ;\n if ( CONFIG_DV_DEMUXER ) {\n avi -> dv_demux = avpriv_dv_init_demux ( s ) ;\n if ( ! avi -> dv_demux ) goto fail ;\n }\n else goto fail ;\n s -> streams [ 0 ] -> priv_data = ast ;\n avio_skip ( pb , 3 * 4 ) ;\n ast -> scale = avio_rl32 ( pb ) ;\n ast -> rate = avio_rl32 ( pb ) ;\n avio_skip ( pb , 4 ) ;\n dv_dur = avio_rl32 ( pb ) ;\n if ( ast -> scale > 0 && ast -> rate > 0 && dv_dur > 0 ) {\n dv_dur *= AV_TIME_BASE ;\n s -> duration = av_rescale ( dv_dur , ast -> scale , ast -> rate ) ;\n }\n stream_index = s -> nb_streams - 1 ;\n avio_skip ( pb , size - 9 * 4 ) ;\n break ;\n }\n av_assert0 ( stream_index < s -> nb_streams ) ;\n ast -> handler = handler ;\n avio_rl32 ( pb ) ;\n avio_rl16 ( pb ) ;\n avio_rl16 ( pb ) ;\n avio_rl32 ( pb ) ;\n ast -> scale = avio_rl32 ( pb ) ;\n ast -> rate = avio_rl32 ( pb ) ;\n if ( ! ( ast -> scale && ast -> rate ) ) {\n av_log ( s , AV_LOG_WARNING , \"scale/rate is %\" PRIu32 \"/%\" PRIu32 \" which is invalid. \" \"(This file has been generated by broken software.)\\n\" , ast -> scale , ast -> rate ) ;\n if ( frame_period ) {\n ast -> rate = 1000000 ;\n ast -> scale = frame_period ;\n }\n else {\n ast -> rate = 25 ;\n ast -> scale = 1 ;\n }\n }\n avpriv_set_pts_info ( st , 64 , ast -> scale , ast -> rate ) ;\n ast -> cum_len = avio_rl32 ( pb ) ;\n st -> nb_frames = avio_rl32 ( pb ) ;\n st -> start_time = 0 ;\n avio_rl32 ( pb ) ;\n avio_rl32 ( pb ) ;\n if ( ast -> cum_len * ast -> scale / ast -> rate > 3600 ) {\n av_log ( s , AV_LOG_ERROR , \"crazy start time, iam scared, giving up\\n\" ) ;\n ast -> cum_len = 0 ;\n }\n ast -> sample_size = avio_rl32 ( pb ) ;\n ast -> cum_len *= FFMAX ( 1 , ast -> sample_size ) ;\n av_log ( s , AV_LOG_TRACE , \"%\" PRIu32 \" %\" PRIu32 \" %d\\n\" , ast -> rate , ast -> scale , ast -> sample_size ) ;\n switch ( tag1 ) {\n case MKTAG ( 'v' , 'i' , 'd' , 's' ) : codec_type = AVMEDIA_TYPE_VIDEO ;\n ast -> sample_size = 0 ;\n st -> avg_frame_rate = av_inv_q ( st -> time_base ) ;\n break ;\n case MKTAG ( 'a' , 'u' , 'd' , 's' ) : codec_type = AVMEDIA_TYPE_AUDIO ;\n break ;\n case MKTAG ( 't' , 'x' , 't' , 's' ) : codec_type = AVMEDIA_TYPE_SUBTITLE ;\n break ;\n case MKTAG ( 'd' , 'a' , 't' , 's' ) : codec_type = AVMEDIA_TYPE_DATA ;\n break ;\n default : av_log ( s , AV_LOG_INFO , \"unknown stream type %X\\n\" , tag1 ) ;\n }\n if ( ast -> sample_size < 0 ) {\n if ( s -> error_recognition & AV_EF_EXPLODE ) {\n av_log ( s , AV_LOG_ERROR , \"Invalid sample_size %d at stream %d\\n\" , ast -> sample_size , stream_index ) ;\n goto fail ;\n }\n av_log ( s , AV_LOG_WARNING , \"Invalid sample_size %d at stream %d \" \"setting it to 0\\n\" , ast -> sample_size , stream_index ) ;\n ast -> sample_size = 0 ;\n }\n if ( ast -> sample_size == 0 ) {\n st -> duration = st -> nb_frames ;\n if ( st -> duration > 0 && avi -> io_fsize > 0 && avi -> riff_end > avi -> io_fsize ) {\n av_log ( s , AV_LOG_DEBUG , \"File is truncated adjusting duration\\n\" ) ;\n st -> duration = av_rescale ( st -> duration , avi -> io_fsize , avi -> riff_end ) ;\n }\n }\n ast -> frame_offset = ast -> cum_len ;\n avio_skip ( pb , size - 12 * 4 ) ;\n break ;\n case MKTAG ( 's' , 't' , 'r' , 'f' ) : if ( ! size && ( codec_type == AVMEDIA_TYPE_AUDIO || codec_type == AVMEDIA_TYPE_VIDEO ) ) break ;\n if ( stream_index >= ( unsigned ) s -> nb_streams || avi -> dv_demux ) {\n avio_skip ( pb , size ) ;\n }\n else {\n uint64_t cur_pos = avio_tell ( pb ) ;\n unsigned esize ;\n if ( cur_pos < list_end ) size = FFMIN ( size , list_end - cur_pos ) ;\n st = s -> streams [ stream_index ] ;\n if ( st -> codecpar -> codec_type != AVMEDIA_TYPE_UNKNOWN ) {\n avio_skip ( pb , size ) ;\n break ;\n }\n switch ( codec_type ) {\n case AVMEDIA_TYPE_VIDEO : if ( amv_file_format ) {\n st -> codecpar -> width = avih_width ;\n st -> codecpar -> height = avih_height ;\n st -> codecpar -> codec_type = AVMEDIA_TYPE_VIDEO ;\n st -> codecpar -> codec_id = AV_CODEC_ID_AMV ;\n avio_skip ( pb , size ) ;\n break ;\n }\n tag1 = ff_get_bmp_header ( pb , st , & esize ) ;\n if ( tag1 == MKTAG ( 'D' , 'X' , 'S' , 'B' ) || tag1 == MKTAG ( 'D' , 'X' , 'S' , 'A' ) ) {\n st -> codecpar -> codec_type = AVMEDIA_TYPE_SUBTITLE ;\n st -> codecpar -> codec_tag = tag1 ;\n st -> codecpar -> codec_id = AV_CODEC_ID_XSUB ;\n break ;\n }\n if ( size > 10 * 4 && size < ( 1 << 30 ) && size < avi -> fsize ) {\n if ( esize == size - 1 && ( esize & 1 ) ) {\n st -> codecpar -> extradata_size = esize - 10 * 4 ;\n }\n else st -> codecpar -> extradata_size = size - 10 * 4 ;\n if ( st -> codecpar -> extradata ) {\n av_log ( s , AV_LOG_WARNING , \"New extradata in strf chunk, freeing previous one.\\n\" ) ;\n av_freep ( & st -> codecpar -> extradata ) ;\n }\n if ( ff_get_extradata ( s , st -> codecpar , pb , st -> codecpar -> extradata_size ) < 0 ) return AVERROR ( ENOMEM ) ;\n }\n if ( st -> codecpar -> extradata_size & 1 ) avio_r8 ( pb ) ;\n if ( st -> codecpar -> extradata_size && ( st -> codecpar -> bits_per_coded_sample <= 8 ) ) {\n int pal_size = ( 1 << st -> codecpar -> bits_per_coded_sample ) << 2 ;\n const uint8_t * pal_src ;\n pal_size = FFMIN ( pal_size , st -> codecpar -> extradata_size ) ;\n pal_src = st -> codecpar -> extradata + st -> codecpar -> extradata_size - pal_size ;\n if ( pal_src - st -> codecpar -> extradata >= 9 && ! memcmp ( st -> codecpar -> extradata + st -> codecpar -> extradata_size - 9 , \"BottomUp\" , 9 ) ) pal_src -= 9 ;\n for ( i = 0 ;\n i < pal_size / 4 ;\n i ++ ) ast -> pal [ i ] = 0xFFU << 24 | AV_RL32 ( pal_src + 4 * i ) ;\n ast -> has_pal = 1 ;\n }\n print_tag ( \"video\" , tag1 , 0 ) ;\n st -> codecpar -> codec_type = AVMEDIA_TYPE_VIDEO ;\n st -> codecpar -> codec_tag = tag1 ;\n st -> codecpar -> codec_id = ff_codec_get_id ( ff_codec_bmp_tags , tag1 ) ;\n if ( ! st -> codecpar -> codec_id ) {\n st -> codecpar -> codec_id = ff_codec_get_id ( ff_codec_movvideo_tags , tag1 ) ;\n if ( st -> codecpar -> codec_id ) av_log ( s , AV_LOG_WARNING , \"mov tag found in avi (fourcc %s)\\n\" , av_fourcc2str ( tag1 ) ) ;\n }\n st -> need_parsing = AVSTREAM_PARSE_HEADERS ;\n if ( st -> codecpar -> codec_id == AV_CODEC_ID_MPEG4 && ast -> handler == MKTAG ( 'X' , 'V' , 'I' , 'D' ) ) st -> codecpar -> codec_tag = MKTAG ( 'X' , 'V' , 'I' , 'D' ) ;\n if ( st -> codecpar -> codec_tag == MKTAG ( 'V' , 'S' , 'S' , 'H' ) ) st -> need_parsing = AVSTREAM_PARSE_FULL ;\n if ( st -> codecpar -> codec_id == AV_CODEC_ID_RV40 ) st -> need_parsing = AVSTREAM_PARSE_NONE ;\n if ( st -> codecpar -> codec_tag == 0 && st -> codecpar -> height > 0 && st -> codecpar -> extradata_size < 1U << 30 ) {\n st -> codecpar -> extradata_size += 9 ;\n if ( ( ret = av_reallocp ( & st -> codecpar -> extradata , st -> codecpar -> extradata_size + AV_INPUT_BUFFER_PADDING_SIZE ) ) < 0 ) {\n st -> codecpar -> extradata_size = 0 ;\n return ret ;\n }\n else memcpy ( st -> codecpar -> extradata + st -> codecpar -> extradata_size - 9 , \"BottomUp\" , 9 ) ;\n }\n st -> codecpar -> height = FFABS ( st -> codecpar -> height ) ;\n break ;\n case AVMEDIA_TYPE_AUDIO : ret = ff_get_wav_header ( s , pb , st -> codecpar , size , 0 ) ;\n if ( ret < 0 ) return ret ;\n ast -> dshow_block_align = st -> codecpar -> block_align ;\n if ( ast -> sample_size && st -> codecpar -> block_align && ast -> sample_size != st -> codecpar -> block_align ) {\n av_log ( s , AV_LOG_WARNING , \"sample size (%d) != block align (%d)\\n\" , ast -> sample_size , st -> codecpar -> block_align ) ;\n ast -> sample_size = st -> codecpar -> block_align ;\n }\n if ( size & 1 ) avio_skip ( pb , 1 ) ;\n st -> need_parsing = AVSTREAM_PARSE_TIMESTAMPS ;\n if ( st -> codecpar -> codec_id == AV_CODEC_ID_AAC && st -> codecpar -> extradata_size ) st -> need_parsing = AVSTREAM_PARSE_NONE ;\n if ( st -> codecpar -> codec_id == AV_CODEC_ID_FLAC ) st -> need_parsing = AVSTREAM_PARSE_NONE ;\n if ( ast -> handler == AV_RL32 ( \"Axan\" ) ) {\n st -> codecpar -> codec_id = AV_CODEC_ID_XAN_DPCM ;\n st -> codecpar -> codec_tag = 0 ;\n ast -> dshow_block_align = 0 ;\n }\n if ( amv_file_format ) {\n st -> codecpar -> codec_id = AV_CODEC_ID_ADPCM_IMA_AMV ;\n ast -> dshow_block_align = 0 ;\n }\n if ( ( st -> codecpar -> codec_id == AV_CODEC_ID_AAC || st -> codecpar -> codec_id == AV_CODEC_ID_FLAC || st -> codecpar -> codec_id == AV_CODEC_ID_MP2 ) && ast -> dshow_block_align <= 4 && ast -> dshow_block_align ) {\n av_log ( s , AV_LOG_DEBUG , \"overriding invalid dshow_block_align of %d\\n\" , ast -> dshow_block_align ) ;\n ast -> dshow_block_align = 0 ;\n }\n if ( st -> codecpar -> codec_id == AV_CODEC_ID_AAC && ast -> dshow_block_align == 1024 && ast -> sample_size == 1024 || st -> codecpar -> codec_id == AV_CODEC_ID_AAC && ast -> dshow_block_align == 4096 && ast -> sample_size == 4096 || st -> codecpar -> codec_id == AV_CODEC_ID_MP3 && ast -> dshow_block_align == 1152 && ast -> sample_size == 1152 ) {\n av_log ( s , AV_LOG_DEBUG , \"overriding sample_size\\n\" ) ;\n ast -> sample_size = 0 ;\n }\n break ;\n case AVMEDIA_TYPE_SUBTITLE : st -> codecpar -> codec_type = AVMEDIA_TYPE_SUBTITLE ;\n st -> request_probe = 1 ;\n avio_skip ( pb , size ) ;\n break ;\n default : st -> codecpar -> codec_type = AVMEDIA_TYPE_DATA ;\n st -> codecpar -> codec_id = AV_CODEC_ID_NONE ;\n st -> codecpar -> codec_tag = 0 ;\n avio_skip ( pb , size ) ;\n break ;\n }\n }\n break ;\n case MKTAG ( 's' , 't' , 'r' , 'd' ) : if ( stream_index >= ( unsigned ) s -> nb_streams || s -> streams [ stream_index ] -> codecpar -> extradata_size || s -> streams [ stream_index ] -> codecpar -> codec_tag == MKTAG ( 'H' , '2' , '6' , '4' ) ) {\n avio_skip ( pb , size ) ;\n }\n else {\n uint64_t cur_pos = avio_tell ( pb ) ;\n if ( cur_pos < list_end ) size = FFMIN ( size , list_end - cur_pos ) ;\n st = s -> streams [ stream_index ] ;\n if ( size < ( 1 << 30 ) ) {\n if ( st -> codecpar -> extradata ) {\n av_log ( s , AV_LOG_WARNING , \"New extradata in strd chunk, freeing previous one.\\n\" ) ;\n av_freep ( & st -> codecpar -> extradata ) ;\n }\n if ( ff_get_extradata ( s , st -> codecpar , pb , size ) < 0 ) return AVERROR ( ENOMEM ) ;\n }\n if ( st -> codecpar -> extradata_size & 1 ) avio_r8 ( pb ) ;\n ret = avi_extract_stream_metadata ( s , st ) ;\n if ( ret < 0 ) {\n av_log ( s , AV_LOG_WARNING , \"could not decoding EXIF data in stream header.\\n\" ) ;\n }\n }\n break ;\n case MKTAG ( 'i' , 'n' , 'd' , 'x' ) : pos = avio_tell ( pb ) ;\n if ( ( pb -> seekable & AVIO_SEEKABLE_NORMAL ) && ! ( s -> flags & AVFMT_FLAG_IGNIDX ) && avi -> use_odml && read_odml_index ( s , 0 ) < 0 && ( s -> error_recognition & AV_EF_EXPLODE ) ) goto fail ;\n avio_seek ( pb , pos + size , SEEK_SET ) ;\n break ;\n case MKTAG ( 'v' , 'p' , 'r' , 'p' ) : if ( stream_index < ( unsigned ) s -> nb_streams && size > 9 * 4 ) {\n AVRational active , active_aspect ;\n st = s -> streams [ stream_index ] ;\n avio_rl32 ( pb ) ;\n avio_rl32 ( pb ) ;\n avio_rl32 ( pb ) ;\n avio_rl32 ( pb ) ;\n avio_rl32 ( pb ) ;\n active_aspect . den = avio_rl16 ( pb ) ;\n active_aspect . num = avio_rl16 ( pb ) ;\n active . num = avio_rl32 ( pb ) ;\n active . den = avio_rl32 ( pb ) ;\n avio_rl32 ( pb ) ;\n if ( active_aspect . num && active_aspect . den && active . num && active . den ) {\n st -> sample_aspect_ratio = av_div_q ( active_aspect , active ) ;\n av_log ( s , AV_LOG_TRACE , \"vprp %d/%d %d/%d\\n\" , active_aspect . num , active_aspect . den , active . num , active . den ) ;\n }\n size -= 9 * 4 ;\n }\n avio_skip ( pb , size ) ;\n break ;\n case MKTAG ( 's' , 't' , 'r' , 'n' ) : if ( s -> nb_streams ) {\n ret = avi_read_tag ( s , s -> streams [ s -> nb_streams - 1 ] , tag , size ) ;\n if ( ret < 0 ) return ret ;\n break ;\n }\n default : if ( size > 1000000 ) {\n av_log ( s , AV_LOG_ERROR , \"Something went wrong during header parsing, \" \"tag %s has size %u, \" \"I will ignore it and try to continue anyway.\\n\" , av_fourcc2str ( tag ) , size ) ;\n if ( s -> error_recognition & AV_EF_EXPLODE ) goto fail ;\n avi -> movi_list = avio_tell ( pb ) - 4 ;\n avi -> movi_end = avi -> fsize ;\n goto end_of_header ;\n }\n case MKTAG ( 'i' , 'd' , 'x' , '1' ) : size += ( size & 1 ) ;\n avio_skip ( pb , size ) ;\n break ;\n }\n }\n end_of_header : if ( stream_index != s -> nb_streams - 1 ) {\n fail : return AVERROR_INVALIDDATA ;\n }\n if ( ! avi -> index_loaded && ( pb -> seekable & AVIO_SEEKABLE_NORMAL ) ) avi_load_index ( s ) ;\n calculate_bitrate ( s ) ;\n avi -> index_loaded |= 1 ;\n if ( ( ret = guess_ni_flag ( s ) ) < 0 ) return ret ;\n avi -> non_interleaved |= ret | ( s -> flags & AVFMT_FLAG_SORT_DTS ) ;\n dict_entry = av_dict_get ( s -> metadata , \"ISFT\" , NULL , 0 ) ;\n if ( dict_entry && ! strcmp ( dict_entry -> value , \"PotEncoder\" ) ) for ( i = 0 ;\n i < s -> nb_streams ;\n i ++ ) {\n AVStream * st = s -> streams [ i ] ;\n if ( st -> codecpar -> codec_id == AV_CODEC_ID_MPEG1VIDEO || st -> codecpar -> codec_id == AV_CODEC_ID_MPEG2VIDEO ) st -> need_parsing = AVSTREAM_PARSE_FULL ;\n }\n for ( i = 0 ;\n i < s -> nb_streams ;\n i ++ ) {\n AVStream * st = s -> streams [ i ] ;\n if ( st -> nb_index_entries ) break ;\n }\n if ( avi -> dv_demux ) avi -> non_interleaved = 0 ;\n if ( i == s -> nb_streams && avi -> non_interleaved ) {\n av_log ( s , AV_LOG_WARNING , \"Non-interleaved AVI without index, switching to interleaved\\n\" ) ;\n avi -> non_interleaved = 0 ;\n }\n if ( avi -> non_interleaved ) {\n av_log ( s , AV_LOG_INFO , \"non-interleaved AVI\\n\" ) ;\n clean_index ( s ) ;\n }\n ff_metadata_conv_ctx ( s , NULL , avi_metadata_conv ) ;\n ff_metadata_conv_ctx ( s , NULL , ff_riff_info_conv ) ;\n return 0 ;\n }"}
{"idx": 8254, "target": 0, "func": "static int ts_lua_http_client_packet_tos_set ( lua_State * L ) {\n int value ;\n ts_lua_http_ctx * http_ctx ;\n GET_HTTP_CONTEXT ( http_ctx , L ) ;\n value = luaL_checkinteger ( L , 1 ) ;\n TSDebug ( TS_LUA_DEBUG_TAG , \"client packet tos set\" ) ;\n TSHttpTxnClientPacketTosSet ( http_ctx -> txnp , value ) ;\n return 0 ;\n }"}
{"idx": 8255, "target": 0, "func": "static my_bool get_one_option ( int optid , const struct my_option * opt __attribute__ ( ( unused ) ) , char * argument ) {\n switch ( optid ) {\n case 'p' : if ( argument == disabled_my_option ) argument = ( char * ) \"\" ;\n if ( argument ) {\n char * start = argument ;\n my_free ( opt_password ) ;\n opt_password = my_strdup ( argument , MYF ( MY_FAE ) ) ;\n while ( * argument ) * argument ++ = 'x' ;\n if ( * start ) start [ 1 ] = 0 ;\n tty_password = 0 ;\n }\n else tty_password = 1 ;\n break ;\n case 'r' : if ( ! ( md_result_file = my_fopen ( argument , O_WRONLY | FILE_BINARY , MYF ( MY_WME ) ) ) ) exit ( 1 ) ;\n break ;\n case 'W' : # ifdef __WIN__ opt_protocol = MYSQL_PROTOCOL_PIPE ;\n # endif break ;\n case 'N' : opt_set_charset = 0 ;\n break ;\n case 'T' : opt_disable_keys = 0 ;\n if ( strlen ( argument ) >= FN_REFLEN ) {\n die ( EX_USAGE , \"Input filename too long: %s\" , argument ) ;\n }\n break ;\n case '#' : DBUG_PUSH ( argument ? argument : default_dbug_option ) ;\n debug_check_flag = 1 ;\n break ;\n # include < sslopt - case . h > case 'V' : print_version ( ) ;\n exit ( 0 ) ;\n case 'X' : opt_xml = 1 ;\n extended_insert = opt_drop = opt_lock = opt_disable_keys = opt_autocommit = opt_create_db = 0 ;\n break ;\n case 'i' : opt_comments_used = 1 ;\n break ;\n case 'I' : case '?' : usage ( ) ;\n exit ( 0 ) ;\n case ( int ) OPT_MASTER_DATA : if ( ! argument ) opt_master_data = MYSQL_OPT_MASTER_DATA_EFFECTIVE_SQL ;\n break ;\n case ( int ) OPT_MYSQLDUMP_SLAVE_DATA : if ( ! argument ) opt_slave_data = MYSQL_OPT_SLAVE_DATA_EFFECTIVE_SQL ;\n break ;\n case ( int ) OPT_OPTIMIZE : extended_insert = opt_drop = opt_lock = quick = create_options = opt_disable_keys = lock_tables = opt_set_charset = 1 ;\n break ;\n case ( int ) OPT_SKIP_OPTIMIZATION : extended_insert = opt_drop = opt_lock = quick = create_options = opt_disable_keys = lock_tables = opt_set_charset = 0 ;\n break ;\n case ( int ) OPT_COMPACT : if ( opt_compact ) {\n opt_comments = opt_drop = opt_disable_keys = opt_lock = 0 ;\n opt_set_charset = 0 ;\n }\n break ;\n case ( int ) OPT_TABLES : opt_databases = 0 ;\n break ;\n case ( int ) OPT_IGNORE_TABLE : {\n if ( ! strchr ( argument , '.' ) ) {\n fprintf ( stderr , \"Illegal use of option --ignore-table=<database>.<table>\\n\" ) ;\n exit ( 1 ) ;\n }\n if ( my_hash_insert ( & ignore_table , ( uchar * ) my_strdup ( argument , MYF ( 0 ) ) ) ) exit ( EX_EOM ) ;\n break ;\n }\n case ( int ) OPT_COMPATIBLE : {\n char buff [ 255 ] ;\n char * end = compatible_mode_normal_str ;\n int i ;\n ulong mode ;\n uint err_len ;\n opt_quoted = 1 ;\n opt_set_charset = 0 ;\n opt_compatible_mode_str = argument ;\n opt_compatible_mode = find_set ( & compatible_mode_typelib , argument , strlen ( argument ) , & err_ptr , & err_len ) ;\n if ( err_len ) {\n strmake ( buff , err_ptr , min ( sizeof ( buff ) - 1 , err_len ) ) ;\n fprintf ( stderr , \"Invalid mode to --compatible: %s\\n\" , buff ) ;\n exit ( 1 ) ;\n }\n # if ! defined ( DBUG_OFF ) {\n size_t size_for_sql_mode = 0 ;\n const char * * ptr ;\n for ( ptr = compatible_mode_names ;\n * ptr ;\n ptr ++ ) size_for_sql_mode += strlen ( * ptr ) ;\n size_for_sql_mode += sizeof ( compatible_mode_names ) - 1 ;\n DBUG_ASSERT ( sizeof ( compatible_mode_normal_str ) >= size_for_sql_mode ) ;\n }\n # endif mode = opt_compatible_mode ;\n for ( i = 0 , mode = opt_compatible_mode ;\n mode ;\n mode >>= 1 , i ++ ) {\n if ( mode & 1 ) {\n end = strmov ( end , compatible_mode_names [ i ] ) ;\n end = strmov ( end , \",\" ) ;\n }\n }\n if ( end != compatible_mode_normal_str ) end [ - 1 ] = 0 ;\n if ( default_charset == mysql_universal_client_charset ) default_charset = ( char * ) MYSQL_DEFAULT_CHARSET_NAME ;\n break ;\n }\n case ( int ) OPT_MYSQL_PROTOCOL : opt_protocol = find_type_or_exit ( argument , & sql_protocol_typelib , opt -> name ) ;\n break ;\n }\n return 0 ;\n }"}
{"idx": 8256, "target": 0, "func": "static int rm_read_header_old ( AVFormatContext * s ) {\n RMDemuxContext * rm = s -> priv_data ;\n AVStream * st ;\n rm -> old_format = 1 ;\n st = avformat_new_stream ( s , NULL ) ;\n if ( ! st ) return - 1 ;\n st -> priv_data = ff_rm_alloc_rmstream ( ) ;\n if ( ! st -> priv_data ) return AVERROR ( ENOMEM ) ;\n return rm_read_audio_stream_info ( s , s -> pb , st , st -> priv_data , 1 ) ;\n }"}
{"idx": 8257, "target": 0, "func": "bool qemu_cpu_has_work ( CPUState * cpu ) {\n return cpu_has_work ( cpu ) ;\n }"}
{"idx": 8258, "target": 0, "func": "static int32_t U_CALLCONV compareMappingsUnicodeFirst ( const void * context , const void * left , const void * right ) {\n return compareMappings ( ( UCMTable * ) context , ( const UCMapping * ) left , ( UCMTable * ) context , ( const UCMapping * ) right , TRUE ) ;\n }"}
{"idx": 8259, "target": 0, "func": "static inline void pxa2xx_fir_update ( PXA2xxFIrState * s ) {\n static const int tresh [ 4 ] = {\n 8 , 16 , 32 , 0 }\n ;\n int intr = 0 ;\n if ( ( s -> control [ 0 ] & ( 1 << 4 ) ) && s -> rx_len >= tresh [ s -> control [ 2 ] & 3 ] ) s -> status [ 0 ] |= 1 << 4 ;\n else s -> status [ 0 ] &= ~ ( 1 << 4 ) ;\n if ( s -> control [ 0 ] & ( 1 << 3 ) ) s -> status [ 0 ] |= 1 << 3 ;\n else s -> status [ 0 ] &= ~ ( 1 << 3 ) ;\n if ( s -> rx_len ) s -> status [ 1 ] |= 1 << 2 ;\n else s -> status [ 1 ] &= ~ ( 1 << 2 ) ;\n if ( s -> control [ 0 ] & ( 1 << 4 ) ) s -> status [ 1 ] |= 1 << 0 ;\n else s -> status [ 1 ] &= ~ ( 1 << 0 ) ;\n intr |= ( s -> control [ 0 ] & ( 1 << 5 ) ) && ( s -> status [ 0 ] & ( 1 << 4 ) ) ;\n intr |= ( s -> control [ 0 ] & ( 1 << 6 ) ) && ( s -> status [ 0 ] & ( 1 << 3 ) ) ;\n intr |= ( s -> control [ 2 ] & ( 1 << 4 ) ) && ( s -> status [ 0 ] & ( 1 << 6 ) ) ;\n intr |= ( s -> control [ 0 ] & ( 1 << 2 ) ) && ( s -> status [ 0 ] & ( 1 << 1 ) ) ;\n intr |= s -> status [ 0 ] & 0x25 ;\n qemu_set_irq ( s -> rx_dma , ( s -> status [ 0 ] >> 4 ) & 1 ) ;\n qemu_set_irq ( s -> tx_dma , ( s -> status [ 0 ] >> 3 ) & 1 ) ;\n qemu_set_irq ( s -> irq , intr && s -> enable ) ;\n }"}
{"idx": 8260, "target": 1, "func": "static void setup_frame_size_with_refs ( VP9_COMMON * cm , struct vp9_read_bit_buffer * rb ) {\n int width , height ;\n int found = 0 , i ;\n int has_valid_ref_frame = 0 ;\n for ( i = 0 ;\n i < REFS_PER_FRAME ;\n ++ i ) {\n if ( vp9_rb_read_bit ( rb ) ) {\n YV12_BUFFER_CONFIG * const buf = cm -> frame_refs [ i ] . buf ;\n width = buf -> y_crop_width ;\n height = buf -> y_crop_height ;\n if ( buf -> corrupted ) {\n vpx_internal_error ( & cm -> error , VPX_CODEC_CORRUPT_FRAME , \"Frame reference is corrupt\" ) ;\n }\n found = 1 ;\n break ;\n }\n }\n if ( ! found ) vp9_read_frame_size ( rb , & width , & height ) ;\n if ( width <= 0 || height <= 0 ) vpx_internal_error ( & cm -> error , VPX_CODEC_CORRUPT_FRAME , \"Invalid frame size\" ) ;\n for ( i = 0 ;\n i < REFS_PER_FRAME ;\n ++ i ) {\n RefBuffer * const ref_frame = & cm -> frame_refs [ i ] ;\n has_valid_ref_frame |= valid_ref_frame_size ( ref_frame -> buf -> y_crop_width , ref_frame -> buf -> y_crop_height , width , height ) ;\n }\n if ( ! has_valid_ref_frame ) vpx_internal_error ( & cm -> error , VPX_CODEC_CORRUPT_FRAME , \"Referenced frame has invalid size\" ) ;\n resize_context_buffers ( cm , width , height ) ;\n setup_display_size ( cm , rb ) ;\n if ( vp9_realloc_frame_buffer ( get_frame_new_buffer ( cm ) , cm -> width , cm -> height , cm -> subsampling_x , cm -> subsampling_y , # if CONFIG_VP9_HIGHBITDEPTH cm -> use_highbitdepth , # endif VP9_DEC_BORDER_IN_PIXELS , & cm -> frame_bufs [ cm -> new_fb_idx ] . raw_frame_buffer , cm -> get_fb_cb , cm -> cb_priv ) ) {\n vpx_internal_error ( & cm -> error , VPX_CODEC_MEM_ERROR , \"Failed to allocate frame buffer\" ) ;\n }\n }"}
{"idx": 8261, "target": 0, "func": "static void setupRestoreWorker ( Archive * AHX ) {\n ArchiveHandle * AH = ( ArchiveHandle * ) AHX ;\n ( AH -> ReopenPtr ) ( AH ) ;\n }"}
{"idx": 8262, "target": 0, "func": "static int dissect_CPMGetRowsetNotify ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * parent_tree , gboolean in , void * data _U_ ) {\n gint offset = 16 ;\n proto_item * item ;\n proto_tree * tree ;\n col_append_str ( pinfo -> cinfo , COL_INFO , \"GetRowsetNotify\" ) ;\n if ( ! in ) {\n item = proto_tree_add_item ( parent_tree , hf_mswsp_msg , tvb , offset , - 1 , ENC_NA ) ;\n tree = proto_item_add_subtree ( item , ett_mswsp_msg ) ;\n proto_item_set_text ( item , \"GetRowsetNotifyOut\" ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrowsetnotify_wid , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrowsetnotify_moreevents , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrowsetnotify_eventtype , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrowsetnotify_rowsetitemstate , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrowsetnotify_changeditemstate , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrowsetnotify_rowsetevent , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrowsetnotify_rowseteventdata1 , tvb , offset , 8 , ENC_LITTLE_ENDIAN ) ;\n offset += 8 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrowsetnotify_rowseteventdata2 , tvb , offset , 8 , ENC_LITTLE_ENDIAN ) ;\n }\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 8263, "target": 1, "func": "int xmlListCopy ( xmlListPtr cur , const xmlListPtr old ) {\n xmlLinkPtr lk ;\n if ( ( old == NULL ) || ( cur == NULL ) ) return ( 1 ) ;\n for ( lk = old -> sentinel -> next ;\n lk != old -> sentinel ;\n lk = lk -> next ) {\n if ( 0 != xmlListInsert ( cur , lk -> data ) ) {\n xmlListDelete ( cur ) ;\n return ( 1 ) ;\n }\n }\n return ( 0 ) ;\n }"}
{"idx": 8264, "target": 0, "func": "int encode_offset ( char * string , struct filter_op * fop ) {\n char * str , * p , * q , * tok ;\n int ret ;\n memset ( fop , 0 , sizeof ( struct filter_op ) ) ;\n str = strdup ( string ) ;\n p = ec_strtok ( str , \".\" , & tok ) ;\n q = ec_strtok ( NULL , \".\" , & tok ) ;\n if ( q == NULL ) return - E_NOTFOUND ;\n ret = get_virtualpointer ( p , q , & fop -> op . test . level , & fop -> op . test . offset , & fop -> op . test . size ) ;\n SAFE_FREE ( str ) ;\n return ret ;\n }"}
{"idx": 8265, "target": 0, "func": "void vp9_rd_pick_intra_mode_sb ( VP9_COMP * cpi , MACROBLOCK * x , int * returnrate , int64_t * returndist , BLOCK_SIZE bsize , PICK_MODE_CONTEXT * ctx , int64_t best_rd ) {\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n struct macroblockd_plane * const pd = xd -> plane ;\n int rate_y = 0 , rate_uv = 0 , rate_y_tokenonly = 0 , rate_uv_tokenonly = 0 ;\n int y_skip = 0 , uv_skip = 0 ;\n int64_t dist_y = 0 , dist_uv = 0 , tx_cache [ TX_MODES ] = {\n 0 }\n ;\n TX_SIZE max_uv_tx_size ;\n x -> skip_encode = 0 ;\n ctx -> skip = 0 ;\n xd -> mi [ 0 ] . src_mi -> mbmi . ref_frame [ 0 ] = INTRA_FRAME ;\n if ( bsize >= BLOCK_8X8 ) {\n if ( rd_pick_intra_sby_mode ( cpi , x , & rate_y , & rate_y_tokenonly , & dist_y , & y_skip , bsize , tx_cache , best_rd ) >= best_rd ) {\n * returnrate = INT_MAX ;\n return ;\n }\n max_uv_tx_size = get_uv_tx_size_impl ( xd -> mi [ 0 ] . src_mi -> mbmi . tx_size , bsize , pd [ 1 ] . subsampling_x , pd [ 1 ] . subsampling_y ) ;\n rd_pick_intra_sbuv_mode ( cpi , x , ctx , & rate_uv , & rate_uv_tokenonly , & dist_uv , & uv_skip , bsize , max_uv_tx_size ) ;\n }\n else {\n y_skip = 0 ;\n if ( rd_pick_intra_sub_8x8_y_mode ( cpi , x , & rate_y , & rate_y_tokenonly , & dist_y , best_rd ) >= best_rd ) {\n * returnrate = INT_MAX ;\n return ;\n }\n max_uv_tx_size = get_uv_tx_size_impl ( xd -> mi [ 0 ] . src_mi -> mbmi . tx_size , bsize , pd [ 1 ] . subsampling_x , pd [ 1 ] . subsampling_y ) ;\n rd_pick_intra_sbuv_mode ( cpi , x , ctx , & rate_uv , & rate_uv_tokenonly , & dist_uv , & uv_skip , BLOCK_8X8 , max_uv_tx_size ) ;\n }\n if ( y_skip && uv_skip ) {\n * returnrate = rate_y + rate_uv - rate_y_tokenonly - rate_uv_tokenonly + vp9_cost_bit ( vp9_get_skip_prob ( cm , xd ) , 1 ) ;\n * returndist = dist_y + dist_uv ;\n vp9_zero ( ctx -> tx_rd_diff ) ;\n }\n else {\n int i ;\n * returnrate = rate_y + rate_uv + vp9_cost_bit ( vp9_get_skip_prob ( cm , xd ) , 0 ) ;\n * returndist = dist_y + dist_uv ;\n if ( cpi -> sf . tx_size_search_method == USE_FULL_RD ) for ( i = 0 ;\n i < TX_MODES ;\n i ++ ) {\n if ( tx_cache [ i ] < INT64_MAX && tx_cache [ cm -> tx_mode ] < INT64_MAX ) ctx -> tx_rd_diff [ i ] = tx_cache [ i ] - tx_cache [ cm -> tx_mode ] ;\n else ctx -> tx_rd_diff [ i ] = 0 ;\n }\n }\n ctx -> mic = * xd -> mi [ 0 ] . src_mi ;\n }"}
{"idx": 8266, "target": 0, "func": "static inline bool e1000e_rx_use_ps_descriptor ( E1000ECore * core ) {\n return ! e1000e_rx_use_legacy_descriptor ( core ) && ( core -> mac [ RCTL ] & E1000_RCTL_DTYP_PS ) ;\n }"}
{"idx": 8267, "target": 0, "func": "static int decode_cabac_mb_intra4x4_pred_mode ( H264Context * h , int pred_mode ) {\n int mode = 0 ;\n if ( get_cabac ( & h -> cabac , & h -> cabac_state [ 68 ] ) ) return pred_mode ;\n mode += 1 * get_cabac ( & h -> cabac , & h -> cabac_state [ 69 ] ) ;\n mode += 2 * get_cabac ( & h -> cabac , & h -> cabac_state [ 69 ] ) ;\n mode += 4 * get_cabac ( & h -> cabac , & h -> cabac_state [ 69 ] ) ;\n return mode + ( mode >= pred_mode ) ;\n }"}
{"idx": 8268, "target": 0, "func": "int dtls1_process_record ( SSL * s , DTLS1_BITMAP * bitmap ) {\n int i , al ;\n int enc_err ;\n SSL_SESSION * sess ;\n SSL3_RECORD * rr ;\n unsigned int mac_size ;\n unsigned char md [ EVP_MAX_MD_SIZE ] ;\n rr = RECORD_LAYER_get_rrec ( & s -> rlayer ) ;\n sess = s -> session ;\n rr -> input = & ( RECORD_LAYER_get_packet ( & s -> rlayer ) [ DTLS1_RT_HEADER_LENGTH ] ) ;\n if ( rr -> length > SSL3_RT_MAX_ENCRYPTED_LENGTH ) {\n al = SSL_AD_RECORD_OVERFLOW ;\n SSLerr ( SSL_F_DTLS1_PROCESS_RECORD , SSL_R_ENCRYPTED_LENGTH_TOO_LONG ) ;\n goto f_err ;\n }\n rr -> data = rr -> input ;\n rr -> orig_len = rr -> length ;\n enc_err = s -> method -> ssl3_enc -> enc ( s , rr , 1 , 0 ) ;\n if ( enc_err == 0 ) {\n rr -> length = 0 ;\n RECORD_LAYER_reset_packet_length ( & s -> rlayer ) ;\n goto err ;\n }\n # ifdef SSL_DEBUG printf ( \"dec %d\\n\" , rr -> length ) ;\n {\n unsigned int z ;\n for ( z = 0 ;\n z < rr -> length ;\n z ++ ) printf ( \"%02X%c\" , rr -> data [ z ] , ( ( z + 1 ) % 16 ) ? ' ' : '\\n' ) ;\n }\n printf ( \"\\n\" ) ;\n # endif if ( ( sess != NULL ) && ( s -> enc_read_ctx != NULL ) && ( EVP_MD_CTX_md ( s -> read_hash ) != NULL ) ) {\n unsigned char * mac = NULL ;\n unsigned char mac_tmp [ EVP_MAX_MD_SIZE ] ;\n mac_size = EVP_MD_CTX_size ( s -> read_hash ) ;\n OPENSSL_assert ( mac_size <= EVP_MAX_MD_SIZE ) ;\n if ( rr -> orig_len < mac_size || ( EVP_CIPHER_CTX_mode ( s -> enc_read_ctx ) == EVP_CIPH_CBC_MODE && rr -> orig_len < mac_size + 1 ) ) {\n al = SSL_AD_DECODE_ERROR ;\n SSLerr ( SSL_F_DTLS1_PROCESS_RECORD , SSL_R_LENGTH_TOO_SHORT ) ;\n goto f_err ;\n }\n if ( EVP_CIPHER_CTX_mode ( s -> enc_read_ctx ) == EVP_CIPH_CBC_MODE ) {\n mac = mac_tmp ;\n ssl3_cbc_copy_mac ( mac_tmp , rr , mac_size ) ;\n rr -> length -= mac_size ;\n }\n else {\n rr -> length -= mac_size ;\n mac = & rr -> data [ rr -> length ] ;\n }\n i = s -> method -> ssl3_enc -> mac ( s , rr , md , 0 ) ;\n if ( i < 0 || mac == NULL || CRYPTO_memcmp ( md , mac , ( size_t ) mac_size ) != 0 ) enc_err = - 1 ;\n if ( rr -> length > SSL3_RT_MAX_COMPRESSED_LENGTH + mac_size ) enc_err = - 1 ;\n }\n if ( enc_err < 0 ) {\n rr -> length = 0 ;\n RECORD_LAYER_reset_packet_length ( & s -> rlayer ) ;\n goto err ;\n }\n if ( s -> expand != NULL ) {\n if ( rr -> length > SSL3_RT_MAX_COMPRESSED_LENGTH ) {\n al = SSL_AD_RECORD_OVERFLOW ;\n SSLerr ( SSL_F_DTLS1_PROCESS_RECORD , SSL_R_COMPRESSED_LENGTH_TOO_LONG ) ;\n goto f_err ;\n }\n if ( ! ssl3_do_uncompress ( s , rr ) ) {\n al = SSL_AD_DECOMPRESSION_FAILURE ;\n SSLerr ( SSL_F_DTLS1_PROCESS_RECORD , SSL_R_BAD_DECOMPRESSION ) ;\n goto f_err ;\n }\n }\n if ( rr -> length > SSL3_RT_MAX_PLAIN_LENGTH ) {\n al = SSL_AD_RECORD_OVERFLOW ;\n SSLerr ( SSL_F_DTLS1_PROCESS_RECORD , SSL_R_DATA_LENGTH_TOO_LONG ) ;\n goto f_err ;\n }\n rr -> off = 0 ;\n RECORD_LAYER_reset_packet_length ( & s -> rlayer ) ;\n dtls1_record_bitmap_update ( s , bitmap ) ;\n return ( 1 ) ;\n f_err : ssl3_send_alert ( s , SSL3_AL_FATAL , al ) ;\n err : return ( 0 ) ;\n }"}
{"idx": 8269, "target": 1, "func": "static inline int svq3_mc_dir ( SVQ3Context * s , int size , int mode , int dir , int avg ) {\n int i , j , k , mx , my , dx , dy , x , y ;\n H264Context * h = & s -> h ;\n const int part_width = ( ( size & 5 ) == 4 ) ? 4 : 16 >> ( size & 1 ) ;\n const int part_height = 16 >> ( ( unsigned ) ( size + 1 ) / 3 ) ;\n const int extra_width = ( mode == PREDICT_MODE ) ? - 16 * 6 : 0 ;\n const int h_edge_pos = 6 * ( s -> h_edge_pos - part_width ) - extra_width ;\n const int v_edge_pos = 6 * ( s -> v_edge_pos - part_height ) - extra_width ;\n for ( i = 0 ;\n i < 16 ;\n i += part_height ) for ( j = 0 ;\n j < 16 ;\n j += part_width ) {\n const int b_xy = ( 4 * h -> mb_x + ( j >> 2 ) ) + ( 4 * h -> mb_y + ( i >> 2 ) ) * h -> b_stride ;\n int dxy ;\n x = 16 * h -> mb_x + j ;\n y = 16 * h -> mb_y + i ;\n k = ( j >> 2 & 1 ) + ( i >> 1 & 2 ) + ( j >> 1 & 4 ) + ( i & 8 ) ;\n if ( mode != PREDICT_MODE ) {\n pred_motion ( h , k , part_width >> 2 , dir , 1 , & mx , & my ) ;\n }\n else {\n mx = s -> next_pic -> f . motion_val [ 0 ] [ b_xy ] [ 0 ] << 1 ;\n my = s -> next_pic -> f . motion_val [ 0 ] [ b_xy ] [ 1 ] << 1 ;\n if ( dir == 0 ) {\n mx = mx * h -> frame_num_offset / h -> prev_frame_num_offset + 1 >> 1 ;\n my = my * h -> frame_num_offset / h -> prev_frame_num_offset + 1 >> 1 ;\n }\n else {\n mx = mx * ( h -> frame_num_offset - h -> prev_frame_num_offset ) / h -> prev_frame_num_offset + 1 >> 1 ;\n my = my * ( h -> frame_num_offset - h -> prev_frame_num_offset ) / h -> prev_frame_num_offset + 1 >> 1 ;\n }\n }\n mx = av_clip ( mx , extra_width - 6 * x , h_edge_pos - 6 * x ) ;\n my = av_clip ( my , extra_width - 6 * y , v_edge_pos - 6 * y ) ;\n if ( mode == PREDICT_MODE ) {\n dx = dy = 0 ;\n }\n else {\n dy = svq3_get_se_golomb ( & h -> gb ) ;\n dx = svq3_get_se_golomb ( & h -> gb ) ;\n if ( dx == INVALID_VLC || dy == INVALID_VLC ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"invalid MV vlc\\n\" ) ;\n return - 1 ;\n }\n }\n if ( mode == THIRDPEL_MODE ) {\n int fx , fy ;\n mx = ( mx + 1 >> 1 ) + dx ;\n my = ( my + 1 >> 1 ) + dy ;\n fx = ( unsigned ) ( mx + 0x3000 ) / 3 - 0x1000 ;\n fy = ( unsigned ) ( my + 0x3000 ) / 3 - 0x1000 ;\n dxy = ( mx - 3 * fx ) + 4 * ( my - 3 * fy ) ;\n svq3_mc_dir_part ( s , x , y , part_width , part_height , fx , fy , dxy , 1 , dir , avg ) ;\n mx += mx ;\n my += my ;\n }\n else if ( mode == HALFPEL_MODE || mode == PREDICT_MODE ) {\n mx = ( unsigned ) ( mx + 1 + 0x3000 ) / 3 + dx - 0x1000 ;\n my = ( unsigned ) ( my + 1 + 0x3000 ) / 3 + dy - 0x1000 ;\n dxy = ( mx & 1 ) + 2 * ( my & 1 ) ;\n svq3_mc_dir_part ( s , x , y , part_width , part_height , mx >> 1 , my >> 1 , dxy , 0 , dir , avg ) ;\n mx *= 3 ;\n my *= 3 ;\n }\n else {\n mx = ( unsigned ) ( mx + 3 + 0x6000 ) / 6 + dx - 0x1000 ;\n my = ( unsigned ) ( my + 3 + 0x6000 ) / 6 + dy - 0x1000 ;\n svq3_mc_dir_part ( s , x , y , part_width , part_height , mx , my , 0 , 0 , dir , avg ) ;\n mx *= 6 ;\n my *= 6 ;\n }\n if ( mode != PREDICT_MODE ) {\n int32_t mv = pack16to32 ( mx , my ) ;\n if ( part_height == 8 && i < 8 ) {\n AV_WN32A ( h -> mv_cache [ dir ] [ scan8 [ k ] + 1 * 8 ] , mv ) ;\n if ( part_width == 8 && j < 8 ) AV_WN32A ( h -> mv_cache [ dir ] [ scan8 [ k ] + 1 + 1 * 8 ] , mv ) ;\n }\n if ( part_width == 8 && j < 8 ) AV_WN32A ( h -> mv_cache [ dir ] [ scan8 [ k ] + 1 ] , mv ) ;\n if ( part_width == 4 || part_height == 4 ) AV_WN32A ( h -> mv_cache [ dir ] [ scan8 [ k ] ] , mv ) ;\n }\n fill_rectangle ( h -> cur_pic . f . motion_val [ dir ] [ b_xy ] , part_width >> 2 , part_height >> 2 , h -> b_stride , pack16to32 ( mx , my ) , 4 ) ;\n }\n return 0 ;\n }"}
{"idx": 8270, "target": 0, "func": "hb_bool_t hb_set_set_user_data ( hb_set_t * set , hb_user_data_key_t * key , void * data , hb_destroy_func_t destroy , hb_bool_t replace ) {\n return hb_object_set_user_data ( set , key , data , destroy , replace ) ;\n }"}
{"idx": 8271, "target": 0, "func": "static inline u32 open_file_to_av ( struct file * file ) {\n u32 av = file_to_av ( file ) ;\n if ( selinux_policycap_openperm ) av |= FILE__OPEN ;\n return av ;\n }"}
{"idx": 8272, "target": 0, "func": "int # ifdef GLOB_ATTRIBUTE GLOB_ATTRIBUTE # endif glob ( pattern , flags , errfunc , pglob ) const char * pattern ;\n int flags ;\n int ( * errfunc ) ( const char * , int ) ;\n glob_t * pglob ;\n {\n const char * filename ;\n char * dirname = NULL ;\n size_t dirlen ;\n int status ;\n size_t oldcount ;\n int meta ;\n int dirname_modified ;\n int malloc_dirname = 0 ;\n glob_t dirs ;\n int retval = 0 ;\n # ifdef _LIBC size_t alloca_used = 0 ;\n # endif if ( pattern == NULL || pglob == NULL || ( flags & ~ __GLOB_FLAGS ) != 0 ) {\n __set_errno ( EINVAL ) ;\n return - 1 ;\n }\n if ( ! ( flags & GLOB_DOOFFS ) ) pglob -> gl_offs = 0 ;\n if ( flags & GLOB_BRACE ) {\n const char * begin ;\n if ( flags & GLOB_NOESCAPE ) begin = strchr ( pattern , '{\n' ) ;\n else {\n begin = pattern ;\n while ( 1 ) {\n if ( * begin == '\\0' ) {\n begin = NULL ;\n break ;\n }\n if ( * begin == '\\\\' && begin [ 1 ] != '\\0' ) ++ begin ;\n else if ( * begin == '{\n' ) break ;\n ++ begin ;\n }\n }\n if ( begin != NULL ) {\n size_t firstc ;\n char * alt_start ;\n const char * p ;\n const char * next ;\n const char * rest ;\n size_t rest_len ;\n char * onealt ;\n size_t pattern_len = strlen ( pattern ) - 1 ;\n # ifdef _LIBC int alloca_onealt = __libc_use_alloca ( alloca_used + pattern_len ) ;\n if ( alloca_onealt ) onealt = alloca_account ( pattern_len , alloca_used ) ;\n else # endif {\n onealt = ( char * ) malloc ( pattern_len ) ;\n if ( onealt == NULL ) {\n if ( ! ( flags & GLOB_APPEND ) ) {\n pglob -> gl_pathc = 0 ;\n pglob -> gl_pathv = NULL ;\n }\n return GLOB_NOSPACE ;\n }\n }\n alt_start = mempcpy ( onealt , pattern , begin - pattern ) ;\n next = next_brace_sub ( begin + 1 , flags ) ;\n if ( next == NULL ) {\n illegal_brace : # ifdef _LIBC if ( __builtin_expect ( ! alloca_onealt , 0 ) ) # endif free ( onealt ) ;\n return glob ( pattern , flags & ~ GLOB_BRACE , errfunc , pglob ) ;\n }\n rest = next ;\n while ( * rest != '}\n' ) {\n rest = next_brace_sub ( rest + 1 , flags ) ;\n if ( rest == NULL ) goto illegal_brace ;\n }\n rest_len = strlen ( ++ rest ) + 1 ;\n if ( ! ( flags & GLOB_APPEND ) ) {\n pglob -> gl_pathc = 0 ;\n pglob -> gl_pathv = NULL ;\n }\n firstc = pglob -> gl_pathc ;\n p = begin + 1 ;\n while ( 1 ) {\n int result ;\n mempcpy ( mempcpy ( alt_start , p , next - p ) , rest , rest_len ) ;\n result = glob ( onealt , ( ( flags & ~ ( GLOB_NOCHECK | GLOB_NOMAGIC ) ) | GLOB_APPEND ) , errfunc , pglob ) ;\n if ( result && result != GLOB_NOMATCH ) {\n # ifdef _LIBC if ( __builtin_expect ( ! alloca_onealt , 0 ) ) # endif free ( onealt ) ;\n if ( ! ( flags & GLOB_APPEND ) ) {\n globfree ( pglob ) ;\n pglob -> gl_pathc = 0 ;\n }\n return result ;\n }\n if ( * next == '}\n' ) break ;\n p = next + 1 ;\n next = next_brace_sub ( p , flags ) ;\n assert ( next != NULL ) ;\n }\n # ifdef _LIBC if ( __builtin_expect ( ! alloca_onealt , 0 ) ) # endif free ( onealt ) ;\n if ( pglob -> gl_pathc != firstc ) return 0 ;\n else if ( ! ( flags & ( GLOB_NOCHECK | GLOB_NOMAGIC ) ) ) return GLOB_NOMATCH ;\n }\n }\n if ( ! ( flags & GLOB_APPEND ) ) {\n pglob -> gl_pathc = 0 ;\n if ( ! ( flags & GLOB_DOOFFS ) ) pglob -> gl_pathv = NULL ;\n else {\n size_t i ;\n pglob -> gl_pathv = ( char * * ) malloc ( ( pglob -> gl_offs + 1 ) * sizeof ( char * ) ) ;\n if ( pglob -> gl_pathv == NULL ) return GLOB_NOSPACE ;\n for ( i = 0 ;\n i <= pglob -> gl_offs ;\n ++ i ) pglob -> gl_pathv [ i ] = NULL ;\n }\n }\n oldcount = pglob -> gl_pathc + pglob -> gl_offs ;\n filename = strrchr ( pattern , '/' ) ;\n # if defined __MSDOS__ || defined WINDOWS32 if ( filename == NULL ) filename = strchr ( pattern , ':' ) ;\n # endif dirname_modified = 0 ;\n if ( filename == NULL ) {\n if ( ( flags & ( GLOB_TILDE | GLOB_TILDE_CHECK ) ) && pattern [ 0 ] == '~' ) {\n dirname = ( char * ) pattern ;\n dirlen = strlen ( pattern ) ;\n filename = NULL ;\n }\n else {\n if ( __builtin_expect ( pattern [ 0 ] == '\\0' , 0 ) ) {\n dirs . gl_pathv = NULL ;\n goto no_matches ;\n }\n filename = pattern ;\n # ifdef _AMIGA dirname = ( char * ) \"\" ;\n # else dirname = ( char * ) \".\" ;\n # endif dirlen = 0 ;\n }\n }\n else if ( filename == pattern || ( filename == pattern + 1 && pattern [ 0 ] == '\\\\' && ( flags & GLOB_NOESCAPE ) == 0 ) ) {\n dirname = ( char * ) \"/\" ;\n dirlen = 1 ;\n ++ filename ;\n }\n else {\n char * newp ;\n dirlen = filename - pattern ;\n # if defined __MSDOS__ || defined WINDOWS32 if ( * filename == ':' || ( filename > pattern + 1 && filename [ - 1 ] == ':' ) ) {\n char * drive_spec ;\n ++ dirlen ;\n drive_spec = ( char * ) __alloca ( dirlen + 1 ) ;\n * ( ( char * ) mempcpy ( drive_spec , pattern , dirlen ) ) = '\\0' ;\n if ( __glob_pattern_p ( drive_spec , ! ( flags & GLOB_NOESCAPE ) ) ) return GLOB_NOMATCH ;\n }\n # endif # ifdef _LIBC if ( __libc_use_alloca ( alloca_used + dirlen + 1 ) ) newp = alloca_account ( dirlen + 1 , alloca_used ) ;\n else # endif {\n newp = malloc ( dirlen + 1 ) ;\n if ( newp == NULL ) return GLOB_NOSPACE ;\n malloc_dirname = 1 ;\n }\n * ( ( char * ) mempcpy ( newp , pattern , dirlen ) ) = '\\0' ;\n dirname = newp ;\n ++ filename ;\n if ( filename [ 0 ] == '\\0' # if defined __MSDOS__ || defined WINDOWS32 && dirname [ dirlen - 1 ] != ':' && ( dirlen < 3 || dirname [ dirlen - 2 ] != ':' || dirname [ dirlen - 1 ] != '/' ) # endif && dirlen > 1 ) {\n int orig_flags = flags ;\n if ( ! ( flags & GLOB_NOESCAPE ) && dirname [ dirlen - 1 ] == '\\\\' ) {\n char * p = ( char * ) & dirname [ dirlen - 1 ] ;\n while ( p > dirname && p [ - 1 ] == '\\\\' ) -- p ;\n if ( ( & dirname [ dirlen ] - p ) & 1 ) {\n * ( char * ) & dirname [ -- dirlen ] = '\\0' ;\n flags &= ~ ( GLOB_NOCHECK | GLOB_NOMAGIC ) ;\n }\n }\n int val = glob ( dirname , flags | GLOB_MARK , errfunc , pglob ) ;\n if ( val == 0 ) pglob -> gl_flags = ( ( pglob -> gl_flags & ~ GLOB_MARK ) | ( flags & GLOB_MARK ) ) ;\n else if ( val == GLOB_NOMATCH && flags != orig_flags ) {\n dirs . gl_pathv = NULL ;\n flags = orig_flags ;\n oldcount = pglob -> gl_pathc + pglob -> gl_offs ;\n goto no_matches ;\n }\n retval = val ;\n goto out ;\n }\n }\n # ifndef VMS if ( ( flags & ( GLOB_TILDE | GLOB_TILDE_CHECK ) ) && dirname [ 0 ] == '~' ) {\n if ( dirname [ 1 ] == '\\0' || dirname [ 1 ] == '/' || ( ! ( flags & GLOB_NOESCAPE ) && dirname [ 1 ] == '\\\\' && ( dirname [ 2 ] == '\\0' || dirname [ 2 ] == '/' ) ) ) {\n char * home_dir = getenv ( \"HOME\" ) ;\n int malloc_home_dir = 0 ;\n # ifdef _AMIGA if ( home_dir == NULL || home_dir [ 0 ] == '\\0' ) home_dir = \"SYS:\" ;\n # else # ifdef WINDOWS32 if ( home_dir == NULL || home_dir [ 0 ] == '\\0' ) home_dir = \"c:/users/default\" ;\n # else if ( home_dir == NULL || home_dir [ 0 ] == '\\0' ) {\n int success ;\n char * name ;\n size_t buflen = GET_LOGIN_NAME_MAX ( ) + 1 ;\n if ( buflen == 0 ) buflen = 20 ;\n name = alloca_account ( buflen , alloca_used ) ;\n success = getlogin_r ( name , buflen ) == 0 ;\n if ( success ) {\n struct passwd * p ;\n # if defined HAVE_GETPWNAM_R || defined _LIBC long int pwbuflen = GETPW_R_SIZE_MAX ( ) ;\n char * pwtmpbuf ;\n struct passwd pwbuf ;\n int malloc_pwtmpbuf = 0 ;\n int save = errno ;\n # ifndef _LIBC if ( pwbuflen == - 1 ) pwbuflen = 1024 ;\n # endif if ( __libc_use_alloca ( alloca_used + pwbuflen ) ) pwtmpbuf = alloca_account ( pwbuflen , alloca_used ) ;\n else {\n pwtmpbuf = malloc ( pwbuflen ) ;\n if ( pwtmpbuf == NULL ) {\n retval = GLOB_NOSPACE ;\n goto out ;\n }\n malloc_pwtmpbuf = 1 ;\n }\n while ( getpwnam_r ( name , & pwbuf , pwtmpbuf , pwbuflen , & p ) != 0 ) {\n if ( errno != ERANGE ) {\n p = NULL ;\n break ;\n }\n if ( ! malloc_pwtmpbuf && __libc_use_alloca ( alloca_used + 2 * pwbuflen ) ) pwtmpbuf = extend_alloca_account ( pwtmpbuf , pwbuflen , 2 * pwbuflen , alloca_used ) ;\n else {\n char * newp = realloc ( malloc_pwtmpbuf ? pwtmpbuf : NULL , 2 * pwbuflen ) ;\n if ( newp == NULL ) {\n if ( __builtin_expect ( malloc_pwtmpbuf , 0 ) ) free ( pwtmpbuf ) ;\n retval = GLOB_NOSPACE ;\n goto out ;\n }\n pwtmpbuf = newp ;\n pwbuflen = 2 * pwbuflen ;\n malloc_pwtmpbuf = 1 ;\n }\n __set_errno ( save ) ;\n }\n # else p = getpwnam ( name ) ;\n # endif if ( p != NULL ) {\n if ( ! malloc_pwtmpbuf ) home_dir = p -> pw_dir ;\n else {\n size_t home_dir_len = strlen ( p -> pw_dir ) + 1 ;\n if ( __libc_use_alloca ( alloca_used + home_dir_len ) ) home_dir = alloca_account ( home_dir_len , alloca_used ) ;\n else {\n home_dir = malloc ( home_dir_len ) ;\n if ( home_dir == NULL ) {\n free ( pwtmpbuf ) ;\n retval = GLOB_NOSPACE ;\n goto out ;\n }\n malloc_home_dir = 1 ;\n }\n memcpy ( home_dir , p -> pw_dir , home_dir_len ) ;\n free ( pwtmpbuf ) ;\n }\n }\n }\n }\n if ( home_dir == NULL || home_dir [ 0 ] == '\\0' ) {\n if ( flags & GLOB_TILDE_CHECK ) {\n if ( __builtin_expect ( malloc_home_dir , 0 ) ) free ( home_dir ) ;\n retval = GLOB_NOMATCH ;\n goto out ;\n }\n else home_dir = ( char * ) \"~\" ;\n }\n # endif # endif if ( dirname [ 1 ] == '\\0' ) {\n if ( __builtin_expect ( malloc_dirname , 0 ) ) free ( dirname ) ;\n dirname = home_dir ;\n dirlen = strlen ( dirname ) ;\n malloc_dirname = malloc_home_dir ;\n }\n else {\n char * newp ;\n size_t home_len = strlen ( home_dir ) ;\n int use_alloca = __libc_use_alloca ( alloca_used + home_len + dirlen ) ;\n if ( use_alloca ) newp = alloca_account ( home_len + dirlen , alloca_used ) ;\n else {\n newp = malloc ( home_len + dirlen ) ;\n if ( newp == NULL ) {\n if ( __builtin_expect ( malloc_home_dir , 0 ) ) free ( home_dir ) ;\n retval = GLOB_NOSPACE ;\n goto out ;\n }\n }\n mempcpy ( mempcpy ( newp , home_dir , home_len ) , & dirname [ 1 ] , dirlen ) ;\n if ( __builtin_expect ( malloc_dirname , 0 ) ) free ( dirname ) ;\n dirname = newp ;\n dirlen += home_len - 1 ;\n malloc_dirname = ! use_alloca ;\n }\n dirname_modified = 1 ;\n }\n # if ! defined _AMIGA && ! defined WINDOWS32 else {\n char * end_name = strchr ( dirname , '/' ) ;\n char * user_name ;\n int malloc_user_name = 0 ;\n const char * home_dir ;\n char * unescape = NULL ;\n if ( ! ( flags & GLOB_NOESCAPE ) ) {\n if ( end_name == NULL ) {\n unescape = strchr ( dirname , '\\\\' ) ;\n if ( unescape ) end_name = strchr ( unescape , '\\0' ) ;\n }\n else unescape = memchr ( dirname , '\\\\' , end_name - dirname ) ;\n }\n if ( end_name == NULL ) user_name = dirname + 1 ;\n else {\n char * newp ;\n if ( __libc_use_alloca ( alloca_used + ( end_name - dirname ) ) ) newp = alloca_account ( end_name - dirname , alloca_used ) ;\n else {\n newp = malloc ( end_name - dirname ) ;\n if ( newp == NULL ) {\n retval = GLOB_NOSPACE ;\n goto out ;\n }\n malloc_user_name = 1 ;\n }\n if ( unescape != NULL ) {\n char * p = mempcpy ( newp , dirname + 1 , unescape - dirname - 1 ) ;\n char * q = unescape ;\n while ( * q != '\\0' ) {\n if ( * q == '\\\\' ) {\n if ( q [ 1 ] == '\\0' ) {\n if ( filename == NULL ) * p ++ = '\\\\' ;\n break ;\n }\n ++ q ;\n }\n * p ++ = * q ++ ;\n }\n * p = '\\0' ;\n }\n else * ( ( char * ) mempcpy ( newp , dirname + 1 , end_name - dirname ) ) = '\\0' ;\n user_name = newp ;\n }\n {\n struct passwd * p ;\n # if defined HAVE_GETPWNAM_R || defined _LIBC long int buflen = GETPW_R_SIZE_MAX ( ) ;\n char * pwtmpbuf ;\n int malloc_pwtmpbuf = 0 ;\n struct passwd pwbuf ;\n int save = errno ;\n # ifndef _LIBC if ( buflen == - 1 ) buflen = 1024 ;\n # endif if ( __libc_use_alloca ( alloca_used + buflen ) ) pwtmpbuf = alloca_account ( buflen , alloca_used ) ;\n else {\n pwtmpbuf = malloc ( buflen ) ;\n if ( pwtmpbuf == NULL ) {\n nomem_getpw : if ( __builtin_expect ( malloc_user_name , 0 ) ) free ( user_name ) ;\n retval = GLOB_NOSPACE ;\n goto out ;\n }\n malloc_pwtmpbuf = 1 ;\n }\n while ( getpwnam_r ( user_name , & pwbuf , pwtmpbuf , buflen , & p ) != 0 ) {\n if ( errno != ERANGE ) {\n p = NULL ;\n break ;\n }\n if ( ! malloc_pwtmpbuf && __libc_use_alloca ( alloca_used + 2 * buflen ) ) pwtmpbuf = extend_alloca_account ( pwtmpbuf , buflen , 2 * buflen , alloca_used ) ;\n else {\n char * newp = realloc ( malloc_pwtmpbuf ? pwtmpbuf : NULL , 2 * buflen ) ;\n if ( newp == NULL ) {\n if ( __builtin_expect ( malloc_pwtmpbuf , 0 ) ) free ( pwtmpbuf ) ;\n goto nomem_getpw ;\n }\n pwtmpbuf = newp ;\n malloc_pwtmpbuf = 1 ;\n }\n __set_errno ( save ) ;\n }\n # else p = getpwnam ( user_name ) ;\n # endif if ( __builtin_expect ( malloc_user_name , 0 ) ) free ( user_name ) ;\n if ( p != NULL ) {\n size_t home_len = strlen ( p -> pw_dir ) ;\n size_t rest_len = end_name == NULL ? 0 : strlen ( end_name ) ;\n if ( __builtin_expect ( malloc_dirname , 0 ) ) free ( dirname ) ;\n malloc_dirname = 0 ;\n if ( __libc_use_alloca ( alloca_used + home_len + rest_len + 1 ) ) dirname = alloca_account ( home_len + rest_len + 1 , alloca_used ) ;\n else {\n dirname = malloc ( home_len + rest_len + 1 ) ;\n if ( dirname == NULL ) {\n if ( __builtin_expect ( malloc_pwtmpbuf , 0 ) ) free ( pwtmpbuf ) ;\n retval = GLOB_NOSPACE ;\n goto out ;\n }\n malloc_dirname = 1 ;\n }\n * ( ( char * ) mempcpy ( mempcpy ( dirname , p -> pw_dir , home_len ) , end_name , rest_len ) ) = '\\0' ;\n dirlen = home_len + rest_len ;\n dirname_modified = 1 ;\n if ( __builtin_expect ( malloc_pwtmpbuf , 0 ) ) free ( pwtmpbuf ) ;\n }\n else {\n if ( __builtin_expect ( malloc_pwtmpbuf , 0 ) ) free ( pwtmpbuf ) ;\n if ( flags & GLOB_TILDE_CHECK ) return GLOB_NOMATCH ;\n }\n }\n }\n # endif }\n # endif if ( filename == NULL ) {\n struct stat st ;\n struct_stat64 st64 ;\n if ( ( flags & GLOB_NOCHECK ) || ( ( ( __builtin_expect ( flags & GLOB_ALTDIRFUNC , 0 ) ) ? ( ( * pglob -> gl_stat ) ( dirname , & st ) == 0 && S_ISDIR ( st . st_mode ) ) : ( __stat64 ( dirname , & st64 ) == 0 && S_ISDIR ( st64 . st_mode ) ) ) ) ) {\n int newcount = pglob -> gl_pathc + pglob -> gl_offs ;\n char * * new_gl_pathv ;\n new_gl_pathv = ( char * * ) realloc ( pglob -> gl_pathv , ( newcount + 1 + 1 ) * sizeof ( char * ) ) ;\n if ( new_gl_pathv == NULL ) {\n nospace : free ( pglob -> gl_pathv ) ;\n pglob -> gl_pathv = NULL ;\n pglob -> gl_pathc = 0 ;\n return GLOB_NOSPACE ;\n }\n pglob -> gl_pathv = new_gl_pathv ;\n if ( flags & GLOB_MARK ) {\n char * p ;\n pglob -> gl_pathv [ newcount ] = malloc ( dirlen + 2 ) ;\n if ( pglob -> gl_pathv [ newcount ] == NULL ) goto nospace ;\n p = mempcpy ( pglob -> gl_pathv [ newcount ] , dirname , dirlen ) ;\n p [ 0 ] = '/' ;\n p [ 1 ] = '\\0' ;\n }\n else {\n pglob -> gl_pathv [ newcount ] = strdup ( dirname ) ;\n if ( pglob -> gl_pathv [ newcount ] == NULL ) goto nospace ;\n }\n pglob -> gl_pathv [ ++ newcount ] = NULL ;\n ++ pglob -> gl_pathc ;\n pglob -> gl_flags = flags ;\n return 0 ;\n }\n return GLOB_NOMATCH ;\n }\n meta = __glob_pattern_type ( dirname , ! ( flags & GLOB_NOESCAPE ) ) ;\n if ( meta & 5 ) {\n size_t i ;\n if ( ! ( flags & GLOB_NOESCAPE ) && dirlen > 0 && dirname [ dirlen - 1 ] == '\\\\' ) {\n char * p = ( char * ) & dirname [ dirlen - 1 ] ;\n while ( p > dirname && p [ - 1 ] == '\\\\' ) -- p ;\n if ( ( & dirname [ dirlen ] - p ) & 1 ) * ( char * ) & dirname [ -- dirlen ] = '\\0' ;\n }\n if ( __builtin_expect ( ( flags & GLOB_ALTDIRFUNC ) != 0 , 0 ) ) {\n dirs . gl_opendir = pglob -> gl_opendir ;\n dirs . gl_readdir = pglob -> gl_readdir ;\n dirs . gl_closedir = pglob -> gl_closedir ;\n dirs . gl_stat = pglob -> gl_stat ;\n dirs . gl_lstat = pglob -> gl_lstat ;\n }\n status = glob ( dirname , ( ( flags & ( GLOB_ERR | GLOB_NOESCAPE | GLOB_ALTDIRFUNC ) ) | GLOB_NOSORT | GLOB_ONLYDIR ) , errfunc , & dirs ) ;\n if ( status != 0 ) {\n if ( ( flags & GLOB_NOCHECK ) == 0 || status != GLOB_NOMATCH ) return status ;\n goto no_matches ;\n }\n for ( i = 0 ;\n i < dirs . gl_pathc ;\n ++ i ) {\n int old_pathc ;\n # ifdef SHELL {\n extern int interrupt_state ;\n if ( interrupt_state ) {\n globfree ( & dirs ) ;\n return GLOB_ABORTED ;\n }\n }\n # endif old_pathc = pglob -> gl_pathc ;\n status = glob_in_dir ( filename , dirs . gl_pathv [ i ] , ( ( flags | GLOB_APPEND ) & ~ ( GLOB_NOCHECK | GLOB_NOMAGIC ) ) , errfunc , pglob , alloca_used ) ;\n if ( status == GLOB_NOMATCH ) continue ;\n if ( status != 0 ) {\n globfree ( & dirs ) ;\n globfree ( pglob ) ;\n pglob -> gl_pathc = 0 ;\n return status ;\n }\n if ( prefix_array ( dirs . gl_pathv [ i ] , & pglob -> gl_pathv [ old_pathc + pglob -> gl_offs ] , pglob -> gl_pathc - old_pathc ) ) {\n globfree ( & dirs ) ;\n globfree ( pglob ) ;\n pglob -> gl_pathc = 0 ;\n return GLOB_NOSPACE ;\n }\n }\n flags |= GLOB_MAGCHAR ;\n if ( pglob -> gl_pathc + pglob -> gl_offs == oldcount ) {\n no_matches : if ( flags & GLOB_NOCHECK ) {\n int newcount = pglob -> gl_pathc + pglob -> gl_offs ;\n char * * new_gl_pathv ;\n new_gl_pathv = ( char * * ) realloc ( pglob -> gl_pathv , ( newcount + 2 ) * sizeof ( char * ) ) ;\n if ( new_gl_pathv == NULL ) {\n globfree ( & dirs ) ;\n return GLOB_NOSPACE ;\n }\n pglob -> gl_pathv = new_gl_pathv ;\n pglob -> gl_pathv [ newcount ] = __strdup ( pattern ) ;\n if ( pglob -> gl_pathv [ newcount ] == NULL ) {\n globfree ( & dirs ) ;\n globfree ( pglob ) ;\n pglob -> gl_pathc = 0 ;\n return GLOB_NOSPACE ;\n }\n ++ pglob -> gl_pathc ;\n ++ newcount ;\n pglob -> gl_pathv [ newcount ] = NULL ;\n pglob -> gl_flags = flags ;\n }\n else {\n globfree ( & dirs ) ;\n return GLOB_NOMATCH ;\n }\n }\n globfree ( & dirs ) ;\n }\n else {\n int old_pathc = pglob -> gl_pathc ;\n int orig_flags = flags ;\n if ( meta & 2 ) {\n char * p = strchr ( dirname , '\\\\' ) , * q ;\n q = p ;\n do {\n if ( * p == '\\\\' ) {\n * q = * ++ p ;\n -- dirlen ;\n }\n else * q = * p ;\n ++ q ;\n }\n while ( * p ++ != '\\0' ) ;\n dirname_modified = 1 ;\n }\n if ( dirname_modified ) flags &= ~ ( GLOB_NOCHECK | GLOB_NOMAGIC ) ;\n status = glob_in_dir ( filename , dirname , flags , errfunc , pglob , alloca_used ) ;\n if ( status != 0 ) {\n if ( status == GLOB_NOMATCH && flags != orig_flags && pglob -> gl_pathc + pglob -> gl_offs == oldcount ) {\n dirs . gl_pathv = NULL ;\n flags = orig_flags ;\n goto no_matches ;\n }\n return status ;\n }\n if ( dirlen > 0 ) {\n if ( prefix_array ( dirname , & pglob -> gl_pathv [ old_pathc + pglob -> gl_offs ] , pglob -> gl_pathc - old_pathc ) ) {\n globfree ( pglob ) ;\n pglob -> gl_pathc = 0 ;\n return GLOB_NOSPACE ;\n }\n }\n }\n if ( flags & GLOB_MARK ) {\n size_t i ;\n struct stat st ;\n struct_stat64 st64 ;\n for ( i = oldcount ;\n i < pglob -> gl_pathc + pglob -> gl_offs ;\n ++ i ) if ( ( __builtin_expect ( flags & GLOB_ALTDIRFUNC , 0 ) ? ( ( * pglob -> gl_stat ) ( pglob -> gl_pathv [ i ] , & st ) == 0 && S_ISDIR ( st . st_mode ) ) : ( __stat64 ( pglob -> gl_pathv [ i ] , & st64 ) == 0 && S_ISDIR ( st64 . st_mode ) ) ) ) {\n size_t len = strlen ( pglob -> gl_pathv [ i ] ) + 2 ;\n char * new = realloc ( pglob -> gl_pathv [ i ] , len ) ;\n if ( new == NULL ) {\n globfree ( pglob ) ;\n pglob -> gl_pathc = 0 ;\n return GLOB_NOSPACE ;\n }\n strcpy ( & new [ len - 2 ] , \"/\" ) ;\n pglob -> gl_pathv [ i ] = new ;\n }\n }\n if ( ! ( flags & GLOB_NOSORT ) ) {\n qsort ( & pglob -> gl_pathv [ oldcount ] , pglob -> gl_pathc + pglob -> gl_offs - oldcount , sizeof ( char * ) , collated_compare ) ;\n }\n out : if ( __builtin_expect ( malloc_dirname , 0 ) ) free ( dirname ) ;\n return retval ;\n }"}
{"idx": 8273, "target": 0, "func": "static int dissect_h245_T_unsignedMin ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 783 \"../../asn1/h245/h245.cnf\" guint32 value ;\n guint8 * buf ;\n tvbuff_t * value_tvb ;\n gef_ctx_t * gefx ;\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 65535U , & value , FALSE ) ;\n gefx = gef_ctx_get ( actx -> private_data ) ;\n if ( gefx ) {\n buf = ( guint8 * ) wmem_new ( actx -> pinfo -> pool , guint16 ) ;\n phton16 ( buf , value ) ;\n value_tvb = tvb_new_child_real_data ( tvb , buf , sizeof ( guint16 ) , sizeof ( guint16 ) ) ;\n add_new_data_source ( actx -> pinfo , value_tvb , \"unsignedMin\" ) ;\n dissector_try_string ( gef_content_dissector_table , gefx -> key , value_tvb , actx -> pinfo , tree , actx ) ;\n }\n return offset ;\n }"}
{"idx": 8274, "target": 0, "func": "int virLogSetFilters ( const char * src ) {\n int ret = - 1 ;\n int nfilters = 0 ;\n virLogFilterPtr * filters = NULL ;\n if ( virLogInitialize ( ) < 0 ) return - 1 ;\n if ( src && ( nfilters = virLogParseFilters ( src , & filters ) ) < 0 ) goto cleanup ;\n if ( virLogDefineFilters ( filters , nfilters ) < 0 ) goto cleanup ;\n filters = NULL ;\n ret = 0 ;\n cleanup : virLogFilterListFree ( filters , nfilters ) ;\n return ret ;\n }"}
{"idx": 8275, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( SingleClientSessionsSyncTest , TimestampMatchesHistory ) {\n ASSERT_TRUE ( SetupSync ( ) ) << \"SetupSync() failed.\" ;\n ASSERT_TRUE ( CheckInitialState ( 0 ) ) ;\n const GURL url ( \"data:text/html,<html><title>Test</title></html>\" ) ;\n ScopedWindowMap windows ;\n ASSERT_TRUE ( OpenTabAndGetLocalWindows ( 0 , url , windows . GetMutable ( ) ) ) ;\n int found_navigations = 0 ;\n for ( SessionWindowMap : : const_iterator it = windows . Get ( ) -> begin ( ) ;\n it != windows . Get ( ) -> end ( ) ;\n ++ it ) {\n for ( std : : vector < sessions : : SessionTab * > : : const_iterator it2 = it -> second -> tabs . begin ( ) ;\n it2 != it -> second -> tabs . end ( ) ;\n ++ it2 ) {\n for ( std : : vector < sessions : : SerializedNavigationEntry > : : const_iterator it3 = ( * it2 ) -> navigations . begin ( ) ;\n it3 != ( * it2 ) -> navigations . end ( ) ;\n ++ it3 ) {\n const base : : Time timestamp = it3 -> timestamp ( ) ;\n history : : URLRow virtual_row ;\n ASSERT_TRUE ( GetUrlFromClient ( 0 , it3 -> virtual_url ( ) , & virtual_row ) ) ;\n const base : : Time history_timestamp = virtual_row . last_visit ( ) ;\n ASSERT_EQ ( timestamp , history_timestamp ) ;\n ++ found_navigations ;\n }\n }\n }\n ASSERT_EQ ( 1 , found_navigations ) ;\n }"}
{"idx": 8276, "target": 0, "func": "void unsigned_relts_print ( netdissect_options * ndo , uint32_t secs ) {\n static const char * lengths [ ] = {\n \"y\" , \"w\" , \"d\" , \"h\" , \"m\" , \"s\" }\n ;\n static const u_int seconds [ ] = {\n 31536000 , 604800 , 86400 , 3600 , 60 , 1 }\n ;\n const char * * l = lengths ;\n const u_int * s = seconds ;\n if ( secs == 0 ) {\n ND_PRINT ( ( ndo , \"0s\" ) ) ;\n return ;\n }\n while ( secs > 0 ) {\n if ( secs >= * s ) {\n ND_PRINT ( ( ndo , \"%d%s\" , secs / * s , * l ) ) ;\n secs -= ( secs / * s ) * * s ;\n }\n s ++ ;\n l ++ ;\n }\n }"}
{"idx": 8277, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( MimeHandlerViewTest , PostMessage ) {\n RunTest ( \"test_postmessage.html\" ) ;\n }"}
{"idx": 8278, "target": 0, "func": "static int test_recode_command2 ( xd3_stream * stream , int has_source , int variant , int change ) {\n int has_adler32 = ( variant & 0x1 ) != 0 ;\n int has_apphead = ( variant & 0x2 ) != 0 ;\n int has_secondary = ( variant & 0x4 ) != 0 ;\n int change_adler32 = ( change & 0x1 ) != 0 ;\n int change_apphead = ( change & 0x2 ) != 0 ;\n int change_secondary = ( change & 0x4 ) != 0 ;\n int recoded_adler32 = change_adler32 ? ! has_adler32 : has_adler32 ;\n int recoded_apphead = change_apphead ? ! has_apphead : has_apphead ;\n int recoded_secondary = change_secondary ? ! has_secondary : has_secondary ;\n char ecmd [ TESTBUFSIZE ] , recmd [ TESTBUFSIZE ] , dcmd [ TESTBUFSIZE ] ;\n xoff_t tsize , ssize ;\n int ret ;\n test_setup ( ) ;\n if ( ( ret = test_make_inputs ( stream , has_source ? & ssize : NULL , & tsize ) ) ) {\n return ret ;\n }\n snprintf_func ( ecmd , TESTBUFSIZE , \"%s %s -f %s %s %s %s %s %s %s\" , program_name , test_softcfg_str , has_adler32 ? \"\" : \"-n \" , has_apphead ? \"-A=encode_apphead \" : \"-A= \" , has_secondary ? \"-S djw \" : \"-S none \" , has_source ? \"-s \" : \"\" , has_source ? TEST_SOURCE_FILE : \"\" , TEST_TARGET_FILE , TEST_DELTA_FILE ) ;\n if ( ( ret = system ( ecmd ) ) != 0 ) {\n XPR ( NT \"encode command: %s\\n\" , ecmd ) ;\n stream -> msg = \"encode cmd failed\" ;\n return XD3_INTERNAL ;\n }\n snprintf_func ( recmd , TESTBUFSIZE , \"%s recode %s -f %s %s %s %s %s\" , program_name , test_softcfg_str , recoded_adler32 ? \"\" : \"-n \" , ! change_apphead ? \"\" : ( recoded_apphead ? \"-A=recode_apphead \" : \"-A= \" ) , recoded_secondary ? \"-S djw \" : \"-S none \" , TEST_DELTA_FILE , TEST_COPY_FILE ) ;\n if ( ( ret = system ( recmd ) ) != 0 ) {\n XPR ( NT \"recode command: %s\\n\" , recmd ) ;\n stream -> msg = \"recode cmd failed\" ;\n return XD3_INTERNAL ;\n }\n if ( ( ret = check_vcdiff_header ( stream , TEST_COPY_FILE , \"VCDIFF window indicator\" , \"VCD_SOURCE\" , has_source ) ) ) {\n return ret ;\n }\n if ( ( ret = check_vcdiff_header ( stream , TEST_COPY_FILE , \"VCDIFF header indicator\" , \"VCD_SECONDARY\" , recoded_secondary ) ) ) {\n return ret ;\n }\n if ( ( ret = check_vcdiff_header ( stream , TEST_COPY_FILE , \"VCDIFF window indicator\" , \"VCD_ADLER32\" , has_adler32 && recoded_adler32 ) ) ) {\n return ret ;\n }\n if ( ! change_apphead ) {\n if ( ( ret = check_vcdiff_header ( stream , TEST_COPY_FILE , \"VCDIFF header indicator\" , \"VCD_APPHEADER\" , has_apphead ) ) ) {\n return ret ;\n }\n if ( ( ret = check_vcdiff_header ( stream , TEST_COPY_FILE , \"VCDIFF application header\" , \"encode_apphead\" , has_apphead ) ) ) {\n return ret ;\n }\n }\n else {\n if ( ( ret = check_vcdiff_header ( stream , TEST_COPY_FILE , \"VCDIFF header indicator\" , \"VCD_APPHEADER\" , recoded_apphead ) ) ) {\n return ret ;\n }\n if ( recoded_apphead && ( ret = check_vcdiff_header ( stream , TEST_COPY_FILE , \"VCDIFF application header\" , \"recode_apphead\" , 1 ) ) ) {\n return ret ;\n }\n }\n snprintf_func ( dcmd , TESTBUFSIZE , \"%s -fd %s %s %s %s \" , program_name , has_source ? \"-s \" : \"\" , has_source ? TEST_SOURCE_FILE : \"\" , TEST_COPY_FILE , TEST_RECON_FILE ) ;\n if ( ( ret = system ( dcmd ) ) != 0 ) {\n XPR ( NT \"decode command: %s\\n\" , dcmd ) ;\n stream -> msg = \"decode cmd failed\" ;\n return XD3_INTERNAL ;\n }\n if ( ( ret = test_compare_files ( TEST_TARGET_FILE , TEST_RECON_FILE ) ) ) {\n return ret ;\n }\n return 0 ;\n }"}
{"idx": 8279, "target": 1, "func": "static Asn1Generic * DecodeAsn1DerSequence ( const unsigned char * buffer , uint32_t max_size , uint8_t depth , uint32_t * errcode ) {\n const unsigned char * d_ptr = buffer ;\n uint32_t d_length , parsed_bytes , numbytes , el_max_size ;\n uint8_t c ;\n uint32_t seq_index ;\n Asn1Generic * node ;\n d_ptr ++ ;\n node = Asn1GenericNew ( ) ;\n if ( node == NULL ) return NULL ;\n node -> type = ASN1_SEQUENCE ;\n c = d_ptr [ 0 ] ;\n if ( ( c & ( 1 << 7 ) ) >> 7 == 0 ) {\n d_length = c ;\n d_ptr ++ ;\n }\n else {\n numbytes = c & 0x7f ;\n d_ptr ++ ;\n if ( DecodeAsn1BuildValue ( & d_ptr , & d_length , numbytes , errcode ) == - 1 ) {\n SCFree ( node ) ;\n return NULL ;\n }\n }\n node -> length = d_length + ( d_ptr - buffer ) ;\n if ( node -> length > max_size ) {\n SCFree ( node ) ;\n return NULL ;\n }\n parsed_bytes = 0 ;\n seq_index = 0 ;\n while ( parsed_bytes < d_length ) {\n el_max_size = max_size - ( d_ptr - buffer ) ;\n Asn1Generic * child = DecodeAsn1DerGeneric ( d_ptr , el_max_size , depth , seq_index , errcode ) ;\n if ( child == NULL ) {\n break ;\n }\n int ret = Asn1SequenceAppend ( node , child ) ;\n if ( ret == - 1 ) {\n DerFree ( child ) ;\n break ;\n }\n parsed_bytes += child -> length ;\n d_ptr += child -> length ;\n seq_index ++ ;\n }\n return ( Asn1Generic * ) node ;\n }"}
{"idx": 8280, "target": 0, "func": "void TSCacheHttpInfoReqSet ( TSCacheHttpInfo infop , TSMBuffer bufp , TSMLoc obj ) {\n HTTPHdr h ;\n SET_HTTP_HDR ( h , bufp , obj ) ;\n CacheHTTPInfo * info = ( CacheHTTPInfo * ) infop ;\n info -> request_set ( & h ) ;\n }"}
{"idx": 8281, "target": 0, "func": "static int dissect_h245_T_videoFastUpdateGOB ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_videoFastUpdateGOB , T_videoFastUpdateGOB_sequence ) ;\n return offset ;\n }"}
{"idx": 8282, "target": 1, "func": "static int glob_in_dir ( const char * pattern , const char * directory , int flags , int ( * errfunc ) ( const char * , int ) , glob_t * pglob ) {\n size_t dirlen = strlen ( directory ) ;\n void * stream = NULL ;\n struct globnames {\n struct globnames * next ;\n size_t count ;\n char * name [ 64 ] ;\n }\n ;\n # define INITIAL_COUNT sizeof ( init_names . name ) / sizeof ( init_names . name [ 0 ] ) struct globnames init_names ;\n struct globnames * names = & init_names ;\n struct globnames * names_alloca = & init_names ;\n size_t nfound = 0 ;\n size_t allocasize = sizeof ( init_names ) ;\n size_t cur = 0 ;\n int meta ;\n int save ;\n init_names . next = NULL ;\n init_names . count = INITIAL_COUNT ;\n meta = __glob_pattern_type ( pattern , ! ( flags & GLOB_NOESCAPE ) ) ;\n if ( meta == 0 && ( flags & ( GLOB_NOCHECK | GLOB_NOMAGIC ) ) ) {\n flags |= GLOB_NOCHECK ;\n }\n else if ( meta == 0 ) {\n struct stat st ;\n struct_stat64 st64 ;\n size_t patlen = strlen ( pattern ) ;\n char * fullname = ( char * ) __alloca ( dirlen + 1 + patlen + 1 ) ;\n mempcpy ( mempcpy ( mempcpy ( fullname , directory , dirlen ) , \"/\" , 1 ) , pattern , patlen + 1 ) ;\n if ( ( __builtin_expect ( flags & GLOB_ALTDIRFUNC , 0 ) ? ( * pglob -> gl_stat ) ( fullname , & st ) : __stat64 ( fullname , & st64 ) ) == 0 ) flags |= GLOB_NOCHECK ;\n }\n else {\n stream = ( __builtin_expect ( flags & GLOB_ALTDIRFUNC , 0 ) ? ( * pglob -> gl_opendir ) ( directory ) : opendir ( directory ) ) ;\n if ( stream == NULL ) {\n if ( errno != ENOTDIR && ( ( errfunc != NULL && ( * errfunc ) ( directory , errno ) ) || ( flags & GLOB_ERR ) ) ) return GLOB_ABORTED ;\n }\n else {\n # ifdef _LIBC int dfd = ( __builtin_expect ( flags & GLOB_ALTDIRFUNC , 0 ) ? - 1 : dirfd ( ( DIR * ) stream ) ) ;\n # endif int fnm_flags = ( ( ! ( flags & GLOB_PERIOD ) ? FNM_PERIOD : 0 ) | ( ( flags & GLOB_NOESCAPE ) ? FNM_NOESCAPE : 0 ) # if defined _AMIGA || defined VMS | FNM_CASEFOLD # endif ) ;\n flags |= GLOB_MAGCHAR ;\n while ( 1 ) {\n const char * name ;\n size_t len ;\n # if defined _LIBC && ! defined COMPILE_GLOB64 struct dirent64 * d ;\n union {\n struct dirent64 d64 ;\n char room [ offsetof ( struct dirent64 , d_name [ 0 ] ) + NAME_MAX + 1 ] ;\n }\n d64buf ;\n if ( __builtin_expect ( flags & GLOB_ALTDIRFUNC , 0 ) ) {\n struct dirent * d32 = ( * pglob -> gl_readdir ) ( stream ) ;\n if ( d32 != NULL ) {\n CONVERT_DIRENT_DIRENT64 ( & d64buf . d64 , d32 ) ;\n d = & d64buf . d64 ;\n }\n else d = NULL ;\n }\n else d = __readdir64 ( stream ) ;\n # else struct dirent * d = ( __builtin_expect ( flags & GLOB_ALTDIRFUNC , 0 ) ? ( ( struct dirent * ) ( * pglob -> gl_readdir ) ( stream ) ) : __readdir ( stream ) ) ;\n # endif if ( d == NULL ) break ;\n if ( ! REAL_DIR_ENTRY ( d ) ) continue ;\n if ( ( flags & GLOB_ONLYDIR ) && ! DIRENT_MIGHT_BE_DIR ( d ) ) continue ;\n name = d -> d_name ;\n if ( fnmatch ( pattern , name , fnm_flags ) == 0 ) {\n if ( ! DIRENT_MIGHT_BE_SYMLINK ( d ) || link_exists_p ( dfd , directory , dirlen , name , pglob , flags ) ) {\n if ( cur == names -> count ) {\n struct globnames * newnames ;\n size_t count = names -> count * 2 ;\n size_t size = ( sizeof ( struct globnames ) + ( ( count - INITIAL_COUNT ) * sizeof ( char * ) ) ) ;\n allocasize += size ;\n if ( __libc_use_alloca ( allocasize ) ) newnames = names_alloca = __alloca ( size ) ;\n else if ( ( newnames = malloc ( size ) ) == NULL ) goto memory_error ;\n newnames -> count = count ;\n newnames -> next = names ;\n names = newnames ;\n cur = 0 ;\n }\n len = NAMLEN ( d ) ;\n names -> name [ cur ] = ( char * ) malloc ( len + 1 ) ;\n if ( names -> name [ cur ] == NULL ) goto memory_error ;\n * ( ( char * ) mempcpy ( names -> name [ cur ++ ] , name , len ) ) = '\\0' ;\n ++ nfound ;\n }\n }\n }\n }\n }\n if ( nfound == 0 && ( flags & GLOB_NOCHECK ) ) {\n size_t len = strlen ( pattern ) ;\n nfound = 1 ;\n names -> name [ cur ] = ( char * ) malloc ( len + 1 ) ;\n if ( names -> name [ cur ] == NULL ) goto memory_error ;\n * ( ( char * ) mempcpy ( names -> name [ cur ++ ] , pattern , len ) ) = '\\0' ;\n }\n int result = GLOB_NOMATCH ;\n if ( nfound != 0 ) {\n result = 0 ;\n char * * new_gl_pathv ;\n new_gl_pathv = ( char * * ) realloc ( pglob -> gl_pathv , ( pglob -> gl_pathc + pglob -> gl_offs + nfound + 1 ) * sizeof ( char * ) ) ;\n if ( new_gl_pathv == NULL ) {\n memory_error : while ( 1 ) {\n struct globnames * old = names ;\n for ( size_t i = 0 ;\n i < cur ;\n ++ i ) free ( names -> name [ i ] ) ;\n names = names -> next ;\n if ( names == NULL ) {\n assert ( old == & init_names ) ;\n break ;\n }\n cur = names -> count ;\n if ( old == names_alloca ) names_alloca = names ;\n else free ( old ) ;\n }\n result = GLOB_NOSPACE ;\n }\n else {\n while ( 1 ) {\n struct globnames * old = names ;\n for ( size_t i = 0 ;\n i < cur ;\n ++ i ) new_gl_pathv [ pglob -> gl_offs + pglob -> gl_pathc ++ ] = names -> name [ i ] ;\n names = names -> next ;\n if ( names == NULL ) {\n assert ( old == & init_names ) ;\n break ;\n }\n cur = names -> count ;\n if ( old == names_alloca ) names_alloca = names ;\n else free ( old ) ;\n }\n pglob -> gl_pathv = new_gl_pathv ;\n pglob -> gl_pathv [ pglob -> gl_offs + pglob -> gl_pathc ] = NULL ;\n pglob -> gl_flags = flags ;\n }\n }\n if ( stream != NULL ) {\n save = errno ;\n if ( __builtin_expect ( flags & GLOB_ALTDIRFUNC , 0 ) ) ( * pglob -> gl_closedir ) ( stream ) ;\n else closedir ( stream ) ;\n __set_errno ( save ) ;\n }\n return result ;\n }"}
{"idx": 8283, "target": 0, "func": "static void dissect_rtmpt ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , rtmpt_conv_t * rconv , int cdir , rtmpt_packet_t * tp ) {\n gint offset = 0 ;\n gchar * sDesc = NULL ;\n gint deschasopcode = FALSE ;\n gboolean haveETS = FALSE ;\n guint32 iBodyOffset = 0 ;\n guint32 iBodyRemain = 0 ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"RTMP\" ) ;\n RTMPT_DEBUG ( \"Dissect: frame=%u visited=%d len=%d tree=%p\\n\" , pinfo -> num , pinfo -> fd -> flags . visited , tvb_reported_length_remaining ( tvb , offset ) , tree ) ;\n col_clear ( pinfo -> cinfo , COL_INFO ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) < 1 ) return ;\n if ( tp -> id <= RTMPT_ID_MAX ) {\n if ( tp -> fmt < 3 && tvb_reported_length_remaining ( tvb , offset ) >= tp -> bhlen + 3 && tvb_get_ntoh24 ( tvb , offset + tp -> bhlen ) == 0xffffff ) {\n haveETS = TRUE ;\n }\n iBodyOffset = offset + tp -> bhlen + tp -> mhlen ;\n iBodyRemain = tvb_reported_length_remaining ( tvb , iBodyOffset ) ;\n if ( tp -> cmd == RTMPT_TYPE_CHUNK_SIZE && tp -> len >= 4 && iBodyRemain >= 4 ) {\n guint32 newchunksize = tvb_get_ntohl ( tvb , iBodyOffset ) ;\n if ( newchunksize < rtmpt_max_packet_size ) {\n wmem_tree_insert32 ( rconv -> chunksize [ cdir ] , tp -> lastseq , GINT_TO_POINTER ( newchunksize ) ) ;\n }\n }\n if ( ! PINFO_FD_VISITED ( pinfo ) ) {\n if ( tp -> cmd == RTMPT_TYPE_COMMAND_AMF0 || tp -> cmd == RTMPT_TYPE_COMMAND_AMF3 || tp -> cmd == RTMPT_TYPE_DATA_AMF0 || tp -> cmd == RTMPT_TYPE_DATA_AMF3 ) {\n guint32 soff = 0 ;\n if ( tp -> cmd == RTMPT_TYPE_COMMAND_AMF3 || tp -> cmd == RTMPT_TYPE_DATA_AMF3 ) {\n soff = 1 ;\n }\n tp -> txid = rtmpt_get_amf_txid ( tvb , iBodyOffset + soff ) ;\n if ( tp -> txid != 0 ) {\n RTMPT_DEBUG ( \"got txid=%d\\n\" , tp -> txid ) ;\n wmem_tree_insert32 ( rconv -> txids [ cdir ] , tp -> txid , GINT_TO_POINTER ( pinfo -> num ) ) ;\n }\n }\n }\n }\n if ( tp -> id <= RTMPT_ID_MAX ) {\n sDesc = rtmpt_get_packet_desc ( tvb , iBodyOffset , iBodyRemain , rconv , cdir , tp , & deschasopcode ) ;\n }\n if ( tp -> id > RTMPT_ID_MAX ) {\n col_append_sep_fstr ( pinfo -> cinfo , COL_INFO , \"|\" , \"%s\" , val_to_str ( tp -> id , rtmpt_handshake_vals , \"Unknown (0x%01x)\" ) ) ;\n col_set_fence ( pinfo -> cinfo , COL_INFO ) ;\n }\n else if ( sDesc ) {\n col_append_sep_fstr ( pinfo -> cinfo , COL_INFO , \"|\" , \"%s\" , sDesc ) ;\n col_set_fence ( pinfo -> cinfo , COL_INFO ) ;\n }\n else {\n col_append_sep_fstr ( pinfo -> cinfo , COL_INFO , \"|\" , \"%s\" , val_to_str ( tp -> cmd , rtmpt_opcode_vals , \"Unknown (0x%01x)\" ) ) ;\n col_set_fence ( pinfo -> cinfo , COL_INFO ) ;\n }\n if ( tree ) {\n proto_tree * rtmpt_tree = NULL ;\n proto_tree * rtmptroot_tree = NULL ;\n proto_item * ti ;\n ti = proto_tree_add_item ( tree , proto_rtmpt , tvb , offset , - 1 , ENC_NA ) ;\n if ( tp -> id > RTMPT_ID_MAX ) {\n proto_item_append_text ( ti , \" (%s)\" , val_to_str ( tp -> id , rtmpt_handshake_vals , \"Unknown (0x%01x)\" ) ) ;\n rtmptroot_tree = proto_item_add_subtree ( ti , ett_rtmpt ) ;\n rtmpt_tree = proto_tree_add_subtree ( rtmptroot_tree , tvb , offset , - 1 , ett_rtmpt_handshake , NULL , val_to_str ( tp -> id , rtmpt_handshake_vals , \"Unknown (0x%01x)\" ) ) ;\n if ( tp -> id == RTMPT_TYPE_HANDSHAKE_1 ) {\n proto_tree_add_item ( rtmpt_tree , hf_rtmpt_handshake_c0 , tvb , 0 , 1 , ENC_NA ) ;\n proto_tree_add_item ( rtmpt_tree , hf_rtmpt_handshake_c1 , tvb , 1 , 1536 , ENC_NA ) ;\n }\n else if ( tp -> id == RTMPT_TYPE_HANDSHAKE_2 ) {\n proto_tree_add_item ( rtmpt_tree , hf_rtmpt_handshake_s0 , tvb , 0 , 1 , ENC_NA ) ;\n proto_tree_add_item ( rtmpt_tree , hf_rtmpt_handshake_s1 , tvb , 1 , 1536 , ENC_NA ) ;\n proto_tree_add_item ( rtmpt_tree , hf_rtmpt_handshake_s2 , tvb , 1537 , 1536 , ENC_NA ) ;\n }\n else if ( tp -> id == RTMPT_TYPE_HANDSHAKE_3 ) {\n proto_tree_add_item ( rtmpt_tree , hf_rtmpt_handshake_c2 , tvb , 0 , 1536 , ENC_NA ) ;\n }\n return ;\n }\n if ( sDesc && deschasopcode ) {\n proto_item_append_text ( ti , \" (%s)\" , sDesc ) ;\n }\n else if ( sDesc ) {\n proto_item_append_text ( ti , \" (%s %s)\" , val_to_str ( tp -> cmd , rtmpt_opcode_vals , \"Unknown (0x%01x)\" ) , sDesc ) ;\n }\n else {\n proto_item_append_text ( ti , \" (%s)\" , val_to_str ( tp -> cmd , rtmpt_opcode_vals , \"Unknown (0x%01x)\" ) ) ;\n }\n rtmptroot_tree = proto_item_add_subtree ( ti , ett_rtmpt ) ;\n if ( tp -> otherframe != 0 ) {\n proto_tree_add_uint ( rtmptroot_tree , tp -> isresponse ? hf_rtmpt_function_response : hf_rtmpt_function_call , tvb , offset , tp -> bhlen + tp -> mhlen + tp -> len , tp -> otherframe ) ;\n }\n rtmpt_tree = proto_tree_add_subtree ( rtmptroot_tree , tvb , offset , tp -> bhlen + tp -> mhlen , ett_rtmpt_header , NULL , RTMPT_TEXT_RTMP_HEADER ) ;\n if ( tp -> fmt <= 3 ) proto_tree_add_item ( rtmpt_tree , hf_rtmpt_header_format , tvb , offset + 0 , 1 , ENC_BIG_ENDIAN ) ;\n if ( tp -> fmt <= 3 ) proto_tree_add_item ( rtmpt_tree , hf_rtmpt_header_csid , tvb , offset + 0 , tp -> bhlen , ENC_BIG_ENDIAN ) ;\n if ( tp -> fmt <= 2 ) {\n if ( tp -> fmt > 0 ) {\n proto_tree_add_item ( rtmpt_tree , hf_rtmpt_header_timestamp_delta , tvb , offset + tp -> bhlen , 3 , ENC_BIG_ENDIAN ) ;\n }\n else {\n proto_tree_add_item ( rtmpt_tree , hf_rtmpt_header_timestamp , tvb , offset + tp -> bhlen , 3 , ENC_BIG_ENDIAN ) ;\n }\n if ( haveETS ) {\n proto_tree_add_item ( rtmpt_tree , hf_rtmpt_header_ets , tvb , offset + tp -> bhlen + tp -> mhlen - 4 , 4 , ENC_BIG_ENDIAN ) ;\n }\n }\n if ( ( tp -> fmt > 0 && ! haveETS ) || tp -> fmt == 3 ) {\n proto_tree_add_uint_format_value ( rtmpt_tree , hf_rtmpt_header_timestamp , tvb , offset + tp -> bhlen , 0 , tp -> ts , \"%d (calculated)\" , tp -> ts ) ;\n }\n if ( tp -> fmt <= 1 ) proto_tree_add_item ( rtmpt_tree , hf_rtmpt_header_body_size , tvb , offset + tp -> bhlen + 3 , 3 , ENC_BIG_ENDIAN ) ;\n if ( tp -> fmt <= 1 ) proto_tree_add_item ( rtmpt_tree , hf_rtmpt_header_typeid , tvb , offset + tp -> bhlen + 6 , 1 , ENC_BIG_ENDIAN ) ;\n if ( tp -> fmt <= 0 ) proto_tree_add_item ( rtmpt_tree , hf_rtmpt_header_streamid , tvb , offset + tp -> bhlen + 7 , 4 , ENC_LITTLE_ENDIAN ) ;\n if ( tp -> len == 0 ) return ;\n offset = iBodyOffset ;\n rtmpt_tree = proto_tree_add_subtree ( rtmptroot_tree , tvb , offset , - 1 , ett_rtmpt_body , NULL , RTMPT_TEXT_RTMP_BODY ) ;\n switch ( tp -> cmd ) {\n case RTMPT_TYPE_CHUNK_SIZE : case RTMPT_TYPE_ABORT_MESSAGE : case RTMPT_TYPE_ACKNOWLEDGEMENT : case RTMPT_TYPE_UCM : case RTMPT_TYPE_WINDOW : case RTMPT_TYPE_PEER_BANDWIDTH : dissect_rtmpt_body_scm ( tvb , offset , rtmpt_tree , tp -> cmd ) ;\n break ;\n case RTMPT_TYPE_COMMAND_AMF0 : case RTMPT_TYPE_DATA_AMF0 : dissect_rtmpt_body_command ( tvb , offset , rtmpt_tree , FALSE ) ;\n break ;\n case RTMPT_TYPE_COMMAND_AMF3 : case RTMPT_TYPE_DATA_AMF3 : dissect_rtmpt_body_command ( tvb , offset , rtmpt_tree , TRUE ) ;\n break ;\n case RTMPT_TYPE_AUDIO_DATA : dissect_rtmpt_body_audio ( tvb , offset , rtmpt_tree ) ;\n break ;\n case RTMPT_TYPE_VIDEO_DATA : dissect_rtmpt_body_video ( tvb , offset , rtmpt_tree ) ;\n break ;\n case RTMPT_TYPE_AGGREGATE : dissect_rtmpt_body_aggregate ( tvb , offset , rtmpt_tree ) ;\n break ;\n }\n }\n }"}
{"idx": 8284, "target": 0, "func": "static void apply_frame_size ( VP9_COMMON * cm , int width , int height ) {\n # if CONFIG_SIZE_LIMIT if ( width > DECODE_WIDTH_LIMIT || height > DECODE_HEIGHT_LIMIT ) vpx_internal_error ( & cm -> error , VPX_CODEC_CORRUPT_FRAME , \"Width and height beyond allowed size.\" ) ;\n # endif if ( cm -> width != width || cm -> height != height ) {\n if ( width > cm -> width || height > cm -> height ) {\n if ( vp9_resize_frame_buffers ( cm , width , height ) ) vpx_internal_error ( & cm -> error , VPX_CODEC_MEM_ERROR , \"Failed to allocate frame buffers\" ) ;\n }\n cm -> width = width ;\n cm -> height = height ;\n vp9_update_frame_size ( cm ) ;\n }\n if ( vp9_realloc_frame_buffer ( get_frame_new_buffer ( cm ) , cm -> width , cm -> height , cm -> subsampling_x , cm -> subsampling_y , VP9_DEC_BORDER_IN_PIXELS , & cm -> frame_bufs [ cm -> new_fb_idx ] . raw_frame_buffer , cm -> get_fb_cb , cm -> cb_priv ) ) {\n vpx_internal_error ( & cm -> error , VPX_CODEC_MEM_ERROR , \"Failed to allocate frame buffer\" ) ;\n }\n }"}
{"idx": 8285, "target": 0, "func": "int tm_destroy_event ( tm_event_t * event ) {\n if ( ! init_done ) return TM_BADINIT ;\n return TM_ENOTIMPLEMENTED ;\n }"}
{"idx": 8286, "target": 0, "func": "static int pubkey_get_npkey ( int algorithm ) {\n gcry_module_t pubkey ;\n int npkey = 0 ;\n REGISTER_DEFAULT_PUBKEYS ;\n ath_mutex_lock ( & pubkeys_registered_lock ) ;\n pubkey = _gcry_module_lookup_id ( pubkeys_registered , algorithm ) ;\n if ( pubkey ) {\n npkey = strlen ( ( ( gcry_pk_spec_t * ) pubkey -> spec ) -> elements_pkey ) ;\n _gcry_module_release ( pubkey ) ;\n }\n ath_mutex_unlock ( & pubkeys_registered_lock ) ;\n return npkey ;\n }"}
{"idx": 8287, "target": 0, "func": "static inline void SetPixelBlue ( const Image * restrict image , const Quantum blue , Quantum * restrict pixel ) {\n pixel [ image -> channel_map [ BluePixelChannel ] . offset ] = blue ;\n }"}
{"idx": 8288, "target": 0, "func": "static int dissect_h245_RFC2733Data ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_RFC2733Data , RFC2733Data_sequence ) ;\n return offset ;\n }"}
{"idx": 8289, "target": 0, "func": "int _evsignal_restore_handler ( struct event_base * base , int evsignal ) {\n int ret = 0 ;\n struct evsignal_info * sig = & base -> sig ;\n # ifdef HAVE_SIGACTION struct sigaction * sh ;\n # else ev_sighandler_t * sh ;\n # endif sh = sig -> sh_old [ evsignal ] ;\n sig -> sh_old [ evsignal ] = NULL ;\n # ifdef HAVE_SIGACTION if ( sigaction ( evsignal , sh , NULL ) == - 1 ) {\n event_warn ( \"sigaction\" ) ;\n ret = - 1 ;\n }\n # else if ( signal ( evsignal , * sh ) == SIG_ERR ) {\n event_warn ( \"signal\" ) ;\n ret = - 1 ;\n }\n # endif free ( sh ) ;\n return ret ;\n }"}
{"idx": 8290, "target": 0, "func": "static double rfc1867_size ( tvbuff_t * tvb , int offset ) {\n guint8 val ;\n double size ;\n guint32 exponent ;\n val = tvb_get_guint8 ( tvb , offset ) ;\n size = ( val & 0xF0 ) >> 4 ;\n exponent = ( val & 0x0F ) ;\n while ( exponent != 0 ) {\n size *= 10 ;\n exponent -- ;\n }\n return size / 100 ;\n }"}
{"idx": 8291, "target": 0, "func": "TEST_F ( ExtensionWelcomeNotificationTest , FirstRunShowRegularNotification ) {\n StartPreferenceSyncing ( ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissed ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissedLocal ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationPreviouslyPoppedUp ) ) ;\n ShowRegularNotification ( ) ;\n EXPECT_EQ ( message_center ( ) -> add_notification_calls ( ) , 0 ) ;\n EXPECT_EQ ( message_center ( ) -> remove_notification_calls ( ) , 0 ) ;\n EXPECT_EQ ( message_center ( ) -> notifications_with_shown_as_popup ( ) , 0 ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissed ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissedLocal ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationPreviouslyPoppedUp ) ) ;\n }"}
{"idx": 8292, "target": 0, "func": "static void _slurm_rpc_update_powercap ( slurm_msg_t * msg ) {\n int error_code = SLURM_SUCCESS ;\n DEF_TIMERS ;\n bool valid_cap = false ;\n uint32_t min , max , orig_cap ;\n update_powercap_msg_t * ptr = ( update_powercap_msg_t * ) msg -> data ;\n slurmctld_lock_t config_write_lock = {\n WRITE_LOCK , NO_LOCK , READ_LOCK , NO_LOCK , NO_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n START_TIMER ;\n debug2 ( \"Processing RPC: REQUEST_UPDATE_POWERCAP from uid=%d\" , uid ) ;\n if ( ! validate_super_user ( uid ) ) {\n error_code = ESLURM_USER_ID_MISSING ;\n error ( \"Security violation, UPDATE_POWERCAP RPC from uid=%d\" , uid ) ;\n }\n if ( error_code == SLURM_SUCCESS ) {\n lock_slurmctld ( config_write_lock ) ;\n if ( ptr -> power_cap == 0 || ptr -> power_cap == INFINITE ) {\n valid_cap = true ;\n }\n else if ( ! power_layout_ready ( ) ) {\n valid_cap = true ;\n }\n else {\n orig_cap = powercap_get_cluster_current_cap ( ) ;\n powercap_set_cluster_cap ( INFINITE ) ;\n min = powercap_get_cluster_min_watts ( ) ;\n max = powercap_get_cluster_max_watts ( ) ;\n if ( min <= ptr -> power_cap && max >= ptr -> power_cap ) valid_cap = true ;\n else powercap_set_cluster_cap ( orig_cap ) ;\n }\n if ( valid_cap ) powercap_set_cluster_cap ( ptr -> power_cap ) ;\n else error_code = ESLURM_INVALID_POWERCAP ;\n unlock_slurmctld ( config_write_lock ) ;\n END_TIMER2 ( \"_slurm_rpc_update_powercap\" ) ;\n }\n if ( error_code ) {\n info ( \"_slurm_rpc_update_powercap: %s\" , slurm_strerror ( error_code ) ) ;\n slurm_send_rc_msg ( msg , error_code ) ;\n }\n else {\n debug2 ( \"_slurm_rpc_update_powercap complete %s\" , TIME_STR ) ;\n slurm_send_rc_msg ( msg , SLURM_SUCCESS ) ;\n if ( ! LOTS_OF_AGENTS ) schedule ( 0 ) ;\n save_all_state ( ) ;\n }\n }"}
{"idx": 8293, "target": 0, "func": "static int dissect_h245_T_route ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h245_T_route , T_route_sequence_of ) ;\n return offset ;\n }"}
{"idx": 8294, "target": 0, "func": "static void h223_lc_init_dir ( int dir ) {\n if ( h223_pending_olc_reqs [ dir ] ) g_hash_table_destroy ( h223_pending_olc_reqs [ dir ] ) ;\n h223_pending_olc_reqs [ dir ] = g_hash_table_new ( g_direct_hash , g_direct_equal ) ;\n }"}
{"idx": 8295, "target": 0, "func": "static int add_to_include_set ( struct include_data * data , const unsigned char * sha1 , int bitmap_pos ) {\n khiter_t hash_pos ;\n if ( data -> seen && bitmap_get ( data -> seen , bitmap_pos ) ) return 0 ;\n if ( bitmap_get ( data -> base , bitmap_pos ) ) return 0 ;\n hash_pos = kh_get_sha1 ( bitmap_git . bitmaps , sha1 ) ;\n if ( hash_pos < kh_end ( bitmap_git . bitmaps ) ) {\n struct stored_bitmap * st = kh_value ( bitmap_git . bitmaps , hash_pos ) ;\n bitmap_or_ewah ( data -> base , lookup_stored_bitmap ( st ) ) ;\n return 0 ;\n }\n bitmap_set ( data -> base , bitmap_pos ) ;\n return 1 ;\n }"}
{"idx": 8296, "target": 0, "func": "static char * lxc_cgroup_get_hierarchy_path_data ( const char * subsystem , struct cgfs_data * d ) {\n struct cgroup_process_info * info = d -> info ;\n info = find_info_for_subsystem ( info , subsystem ) ;\n if ( ! info ) return NULL ;\n return info -> cgroup_path ;\n }"}
{"idx": 8297, "target": 0, "func": "static int decode_scale_factors ( WMAProDecodeCtx * s ) {\n int i ;\n for ( i = 0 ;\n i < s -> channels_for_cur_subframe ;\n i ++ ) {\n int c = s -> channel_indexes_for_cur_subframe [ i ] ;\n int * sf ;\n int * sf_end ;\n s -> channel [ c ] . scale_factors = s -> channel [ c ] . saved_scale_factors [ ! s -> channel [ c ] . scale_factor_idx ] ;\n sf_end = s -> channel [ c ] . scale_factors + s -> num_bands ;\n if ( s -> channel [ c ] . reuse_sf ) {\n const int8_t * sf_offsets = s -> sf_offsets [ s -> table_idx ] [ s -> channel [ c ] . table_idx ] ;\n int b ;\n for ( b = 0 ;\n b < s -> num_bands ;\n b ++ ) s -> channel [ c ] . scale_factors [ b ] = s -> channel [ c ] . saved_scale_factors [ s -> channel [ c ] . scale_factor_idx ] [ * sf_offsets ++ ] ;\n }\n if ( ! s -> channel [ c ] . cur_subframe || get_bits1 ( & s -> gb ) ) {\n if ( ! s -> channel [ c ] . reuse_sf ) {\n int val ;\n s -> channel [ c ] . scale_factor_step = get_bits ( & s -> gb , 2 ) + 1 ;\n val = 45 / s -> channel [ c ] . scale_factor_step ;\n for ( sf = s -> channel [ c ] . scale_factors ;\n sf < sf_end ;\n sf ++ ) {\n val += get_vlc2 ( & s -> gb , sf_vlc . table , SCALEVLCBITS , SCALEMAXDEPTH ) - 60 ;\n * sf = val ;\n }\n }\n else {\n int i ;\n for ( i = 0 ;\n i < s -> num_bands ;\n i ++ ) {\n int idx ;\n int skip ;\n int val ;\n int sign ;\n idx = get_vlc2 ( & s -> gb , sf_rl_vlc . table , VLCBITS , SCALERLMAXDEPTH ) ;\n if ( ! idx ) {\n uint32_t code = get_bits ( & s -> gb , 14 ) ;\n val = code >> 6 ;\n sign = ( code & 1 ) - 1 ;\n skip = ( code & 0x3f ) >> 1 ;\n }\n else if ( idx == 1 ) {\n break ;\n }\n else {\n skip = scale_rl_run [ idx ] ;\n val = scale_rl_level [ idx ] ;\n sign = get_bits1 ( & s -> gb ) - 1 ;\n }\n i += skip ;\n if ( i >= s -> num_bands ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"invalid scale factor coding\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n s -> channel [ c ] . scale_factors [ i ] += ( val ^ sign ) - sign ;\n }\n }\n s -> channel [ c ] . scale_factor_idx = ! s -> channel [ c ] . scale_factor_idx ;\n s -> channel [ c ] . table_idx = s -> table_idx ;\n s -> channel [ c ] . reuse_sf = 1 ;\n }\n s -> channel [ c ] . max_scale_factor = s -> channel [ c ] . scale_factors [ 0 ] ;\n for ( sf = s -> channel [ c ] . scale_factors + 1 ;\n sf < sf_end ;\n sf ++ ) {\n s -> channel [ c ] . max_scale_factor = FFMAX ( s -> channel [ c ] . max_scale_factor , * sf ) ;\n }\n }\n return 0 ;\n }"}
{"idx": 8298, "target": 0, "func": "TEST_F ( ExternalProtocolHandlerTest , DISABLED_TestLaunchSchemeUnknownChromeDefault ) {\n DoTest ( ExternalProtocolHandler : : UNKNOWN , shell_integration : : IS_DEFAULT , Action : : BLOCK ) ;\n }"}
{"idx": 8299, "target": 0, "func": "static int zforgetsave ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n alloc_save_t * asave ;\n vm_save_t * vmsave ;\n int code = restore_check_operand ( op , & asave , idmemory ) ;\n if ( code < 0 ) return 0 ;\n vmsave = alloc_save_client_data ( asave ) ;\n restore_fix_stack ( i_ctx_p , & o_stack , asave , false ) ;\n restore_fix_stack ( i_ctx_p , & e_stack , asave , false ) ;\n restore_fix_stack ( i_ctx_p , & d_stack , asave , false ) ;\n {\n gs_gstate * pgs = igs ;\n gs_gstate * last ;\n while ( gs_gstate_saved ( last = gs_gstate_saved ( pgs ) ) != 0 ) pgs = last ;\n gs_gstate_swap_saved ( last , vmsave -> gsave ) ;\n gs_grestore ( last ) ;\n gs_grestore ( last ) ;\n }\n code = alloc_forget_save_in ( idmemory , asave ) ;\n if ( code < 0 ) return code ;\n {\n uint space = icurrent_space ;\n ialloc_set_space ( idmemory , avm_local ) ;\n vmsave -> gsave = 0 ;\n ifree_object ( vmsave , \"zrestore\" ) ;\n ialloc_set_space ( idmemory , space ) ;\n }\n pop ( 1 ) ;\n return 0 ;\n }"}
{"idx": 8300, "target": 0, "func": "static int http_RecvPostMessage ( http_parser_t * parser , SOCKINFO * info , char * filename , struct SendInstruction * Instr ) {\n size_t Data_Buf_Size = 1024 ;\n char Buf [ 1024 ] ;\n int Timeout = - 1 ;\n FILE * Fp ;\n parse_status_t status = PARSE_OK ;\n int ok_on_close = FALSE ;\n size_t entity_offset = 0 ;\n int num_read = 0 ;\n int ret_code = HTTP_OK ;\n if ( Instr && Instr -> IsVirtualFile ) {\n Fp = ( virtualDirCallback . open ) ( filename , UPNP_WRITE ) ;\n if ( Fp == NULL ) return HTTP_INTERNAL_SERVER_ERROR ;\n }\n else {\n # ifdef UPNP_ENABLE_POST_WRITE Fp = fopen ( filename , \"wb\" ) ;\n if ( Fp == NULL ) return HTTP_UNAUTHORIZED ;\n # else return HTTP_NOT_FOUND ;\n # endif }\n parser -> position = POS_ENTITY ;\n do {\n if ( parser -> position != POS_COMPLETE ) status = parser_parse_entity ( parser ) ;\n if ( status == PARSE_INCOMPLETE_ENTITY ) {\n ok_on_close = TRUE ;\n }\n else if ( ( status != PARSE_SUCCESS ) && ( status != PARSE_CONTINUE_1 ) && ( status != PARSE_INCOMPLETE ) ) {\n ret_code = HTTP_BAD_REQUEST ;\n goto ExitFunction ;\n }\n while ( entity_offset + Data_Buf_Size > parser -> msg . entity . length && parser -> position != POS_COMPLETE ) {\n num_read = sock_read ( info , Buf , sizeof ( Buf ) , & Timeout ) ;\n if ( num_read > 0 ) {\n if ( membuffer_append ( & parser -> msg . msg , Buf , ( size_t ) num_read ) != 0 ) {\n parser -> http_error_code = HTTP_INTERNAL_SERVER_ERROR ;\n ret_code = HTTP_INTERNAL_SERVER_ERROR ;\n goto ExitFunction ;\n }\n status = parser_parse_entity ( parser ) ;\n if ( status == PARSE_INCOMPLETE_ENTITY ) {\n ok_on_close = TRUE ;\n }\n else if ( ( status != PARSE_SUCCESS ) && ( status != PARSE_CONTINUE_1 ) && ( status != PARSE_INCOMPLETE ) ) {\n ret_code = HTTP_BAD_REQUEST ;\n goto ExitFunction ;\n }\n }\n else if ( num_read == 0 ) {\n if ( ok_on_close ) {\n UpnpPrintf ( UPNP_INFO , HTTP , __FILE__ , __LINE__ , \"<<< (RECVD) <<<\\n%s\\n-----------------\\n\" , parser -> msg . msg . buf ) ;\n print_http_headers ( & parser -> msg ) ;\n parser -> position = POS_COMPLETE ;\n }\n else {\n parser -> http_error_code = HTTP_BAD_REQUEST ;\n ret_code = HTTP_BAD_REQUEST ;\n goto ExitFunction ;\n }\n }\n else {\n ret_code = HTTP_SERVICE_UNAVAILABLE ;\n goto ExitFunction ;\n }\n }\n if ( ( entity_offset + Data_Buf_Size ) > parser -> msg . entity . length ) {\n Data_Buf_Size = parser -> msg . entity . length - entity_offset ;\n }\n memcpy ( Buf , & parser -> msg . msg . buf [ parser -> entity_start_position + entity_offset ] , Data_Buf_Size ) ;\n entity_offset += Data_Buf_Size ;\n if ( Instr && Instr -> IsVirtualFile ) {\n int n = virtualDirCallback . write ( Fp , Buf , Data_Buf_Size ) ;\n if ( n < 0 ) {\n ret_code = HTTP_INTERNAL_SERVER_ERROR ;\n goto ExitFunction ;\n }\n }\n else {\n size_t n = fwrite ( Buf , 1 , Data_Buf_Size , Fp ) ;\n if ( n != Data_Buf_Size ) {\n ret_code = HTTP_INTERNAL_SERVER_ERROR ;\n goto ExitFunction ;\n }\n }\n }\n while ( parser -> position != POS_COMPLETE || entity_offset != parser -> msg . entity . length ) ;\n ExitFunction : if ( Instr && Instr -> IsVirtualFile ) {\n virtualDirCallback . close ( Fp ) ;\n }\n else {\n fclose ( Fp ) ;\n }\n return ret_code ;\n }"}
{"idx": 8301, "target": 0, "func": "bool acl_getroot_no_password ( Security_context * sctx , char * user , char * host , char * ip , char * db ) {\n int res = 1 ;\n uint i ;\n ACL_USER * acl_user = 0 ;\n DBUG_ENTER ( \"acl_getroot_no_password\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"Host: '%s', Ip: '%s', User: '%s', db: '%s'\" , ( host ? host : \"(NULL)\" ) , ( ip ? ip : \"(NULL)\" ) , user , ( db ? db : \"(NULL)\" ) ) ) ;\n sctx -> user = user ;\n sctx -> host = host ;\n sctx -> ip = ip ;\n sctx -> host_or_ip = host ? host : ( ip ? ip : \"\" ) ;\n if ( ! initialized ) {\n sctx -> skip_grants ( ) ;\n DBUG_RETURN ( FALSE ) ;\n }\n VOID ( pthread_mutex_lock ( & acl_cache -> lock ) ) ;\n sctx -> master_access = 0 ;\n sctx -> db_access = 0 ;\n sctx -> priv_user = ( char * ) \"\" ;\n * sctx -> priv_host = 0 ;\n for ( i = 0 ;\n i < acl_users . elements ;\n i ++ ) {\n ACL_USER * acl_user_tmp = dynamic_element ( & acl_users , i , ACL_USER * ) ;\n if ( ( ! acl_user_tmp -> user && ! user [ 0 ] ) || ( acl_user_tmp -> user && strcmp ( user , acl_user_tmp -> user ) == 0 ) ) {\n if ( compare_hostname ( & acl_user_tmp -> host , host , ip ) ) {\n acl_user = acl_user_tmp ;\n res = 0 ;\n break ;\n }\n }\n }\n if ( acl_user ) {\n for ( i = 0 ;\n i < acl_dbs . elements ;\n i ++ ) {\n ACL_DB * acl_db = dynamic_element ( & acl_dbs , i , ACL_DB * ) ;\n if ( ! acl_db -> user || ( user && user [ 0 ] && ! strcmp ( user , acl_db -> user ) ) ) {\n if ( compare_hostname ( & acl_db -> host , host , ip ) ) {\n if ( ! acl_db -> db || ( db && ! wild_compare ( db , acl_db -> db , 0 ) ) ) {\n sctx -> db_access = acl_db -> access ;\n break ;\n }\n }\n }\n }\n sctx -> master_access = acl_user -> access ;\n sctx -> priv_user = acl_user -> user ? user : ( char * ) \"\" ;\n if ( acl_user -> host . hostname ) strmake ( sctx -> priv_host , acl_user -> host . hostname , MAX_HOSTNAME - 1 ) ;\n else * sctx -> priv_host = 0 ;\n }\n VOID ( pthread_mutex_unlock ( & acl_cache -> lock ) ) ;\n DBUG_RETURN ( res ) ;\n }"}
{"idx": 8302, "target": 0, "func": "void rtp_init_tap ( void ) {\n GString * error_string ;\n if ( have_RTP_tap_listener == FALSE ) {\n error_string = register_tap_listener ( \"rtp\" , & ( the_tapinfo_rtp_struct . rtp_dummy ) , NULL , 0 , voip_rtp_reset , RTP_packet , RTP_packet_draw ) ;\n if ( error_string != NULL ) {\n simple_dialog ( ESD_TYPE_ERROR , ESD_BTN_OK , \"%s\" , error_string -> str ) ;\n g_string_free ( error_string , TRUE ) ;\n exit ( 1 ) ;\n }\n have_RTP_tap_listener = TRUE ;\n }\n }"}
{"idx": 8303, "target": 0, "func": "static int date_compare ( const void * _a , const void * _b ) {\n struct commit * a = * ( struct commit * * ) _a ;\n struct commit * b = * ( struct commit * * ) _b ;\n return ( long ) b -> date - ( long ) a -> date ;\n }"}
{"idx": 8304, "target": 0, "func": "void qio_channel_websock_handshake ( QIOChannelWebsock * ioc , QIOTaskFunc func , gpointer opaque , GDestroyNotify destroy ) {\n QIOTask * task ;\n task = qio_task_new ( OBJECT ( ioc ) , func , opaque , destroy ) ;\n trace_qio_channel_websock_handshake_start ( ioc ) ;\n trace_qio_channel_websock_handshake_pending ( ioc , G_IO_IN ) ;\n qio_channel_add_watch ( ioc -> master , G_IO_IN , qio_channel_websock_handshake_io , task , NULL ) ;\n }"}
{"idx": 8305, "target": 0, "func": "static void cmv_decode_intra ( CmvContext * s , AVFrame * frame , const uint8_t * buf , const uint8_t * buf_end ) {\n unsigned char * dst = frame -> data [ 0 ] ;\n int i ;\n for ( i = 0 ;\n i < s -> avctx -> height && buf_end - buf >= s -> avctx -> width ;\n i ++ ) {\n memcpy ( dst , buf , s -> avctx -> width ) ;\n dst += frame -> linesize [ 0 ] ;\n buf += s -> avctx -> width ;\n }\n }"}
{"idx": 8306, "target": 1, "func": "static void * linux_udev_event_thread_main ( void * arg ) {\n char dummy ;\n int r ;\n struct udev_device * udev_dev ;\n struct pollfd fds [ ] = {\n {\n . fd = udev_control_pipe [ 0 ] , . events = POLLIN }\n , {\n . fd = udev_monitor_fd , . events = POLLIN }\n , }\n ;\n usbi_dbg ( \"udev event thread entering.\" ) ;\n while ( poll ( fds , 2 , - 1 ) >= 0 ) {\n if ( fds [ 0 ] . revents & POLLIN ) {\n r = usbi_read ( udev_control_pipe [ 0 ] , & dummy , sizeof ( dummy ) ) ;\n if ( r <= 0 ) {\n usbi_warn ( NULL , \"udev control pipe read failed\" ) ;\n }\n break ;\n }\n if ( fds [ 1 ] . revents & POLLIN ) {\n usbi_mutex_static_lock ( & linux_hotplug_lock ) ;\n udev_dev = udev_monitor_receive_device ( udev_monitor ) ;\n if ( udev_dev ) udev_hotplug_event ( udev_dev ) ;\n usbi_mutex_static_unlock ( & linux_hotplug_lock ) ;\n }\n }\n usbi_dbg ( \"udev event thread exiting\" ) ;\n return NULL ;\n }"}
{"idx": 8307, "target": 0, "func": "void evhttp_connection_set_retries ( struct evhttp_connection * evcon , int retry_max ) {\n evcon -> retry_max = retry_max ;\n }"}
{"idx": 8308, "target": 0, "func": "static UBool U_CALLCONV _enumTypeRange ( const void * context , UChar32 start , UChar32 end , uint32_t value ) {\n return ( ( struct _EnumTypeCallback * ) context ) -> enumRange ( ( ( struct _EnumTypeCallback * ) context ) -> context , start , end + 1 , ( UCharCategory ) value ) ;\n }"}
{"idx": 8309, "target": 0, "func": "static int dissect_h245_T_frameToThreadMapping ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_frameToThreadMapping , T_frameToThreadMapping_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 8310, "target": 0, "func": "static int remote_exists ( const char * path ) {\n char * url = xstrfmt ( \"%s%s\" , repo -> url , path ) ;\n int ret ;\n switch ( http_get_strbuf ( url , NULL , NULL ) ) {\n case HTTP_OK : ret = 1 ;\n break ;\n case HTTP_MISSING_TARGET : ret = 0 ;\n break ;\n case HTTP_ERROR : error ( \"unable to access '%s': %s\" , url , curl_errorstr ) ;\n default : ret = - 1 ;\n }\n free ( url ) ;\n return ret ;\n }"}
{"idx": 8311, "target": 0, "func": "static inline void SetPixelMagentaTraits ( Image * image , const PixelTrait traits ) {\n image -> channel_map [ MagentaPixelChannel ] . traits = traits ;\n }"}
{"idx": 8312, "target": 0, "func": "TEST_F ( ExtensionServiceSyncTest , GetSyncDataDisableReasons ) {\n InitializeEmptyExtensionService ( ) ;\n const Extension * extension = InstallCRX ( data_dir ( ) . AppendASCII ( \"good.crx\" ) , INSTALL_NEW ) ;\n ASSERT_TRUE ( extension ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , syncer : : SyncDataList ( ) , base : : MakeUnique < syncer : : FakeSyncChangeProcessor > ( ) , base : : MakeUnique < syncer : : SyncErrorFactoryMock > ( ) ) ;\n {\n syncer : : SyncDataList list = extension_sync_service ( ) -> GetAllSyncData ( syncer : : EXTENSIONS ) ;\n ASSERT_EQ ( list . size ( ) , 1U ) ;\n std : : unique_ptr < ExtensionSyncData > data = ExtensionSyncData : : CreateFromSyncData ( list [ 0 ] ) ;\n ASSERT_TRUE ( data . get ( ) ) ;\n EXPECT_TRUE ( data -> enabled ( ) ) ;\n EXPECT_TRUE ( data -> supports_disable_reasons ( ) ) ;\n EXPECT_EQ ( extensions : : disable_reason : : DISABLE_NONE , data -> disable_reasons ( ) ) ;\n }\n service ( ) -> DisableExtension ( good_crx , extensions : : disable_reason : : DISABLE_USER_ACTION ) ;\n {\n syncer : : SyncDataList list = extension_sync_service ( ) -> GetAllSyncData ( syncer : : EXTENSIONS ) ;\n ASSERT_EQ ( list . size ( ) , 1U ) ;\n std : : unique_ptr < ExtensionSyncData > data = ExtensionSyncData : : CreateFromSyncData ( list [ 0 ] ) ;\n ASSERT_TRUE ( data . get ( ) ) ;\n EXPECT_FALSE ( data -> enabled ( ) ) ;\n EXPECT_TRUE ( data -> supports_disable_reasons ( ) ) ;\n EXPECT_EQ ( extensions : : disable_reason : : DISABLE_USER_ACTION , data -> disable_reasons ( ) ) ;\n }\n service ( ) -> EnableExtension ( good_crx ) ;\n service ( ) -> DisableExtension ( good_crx , extensions : : disable_reason : : DISABLE_RELOAD ) ;\n {\n syncer : : SyncDataList list = extension_sync_service ( ) -> GetAllSyncData ( syncer : : EXTENSIONS ) ;\n ASSERT_EQ ( list . size ( ) , 1U ) ;\n std : : unique_ptr < ExtensionSyncData > data = ExtensionSyncData : : CreateFromSyncData ( list [ 0 ] ) ;\n ASSERT_TRUE ( data . get ( ) ) ;\n EXPECT_TRUE ( data -> enabled ( ) ) ;\n EXPECT_TRUE ( data -> supports_disable_reasons ( ) ) ;\n EXPECT_EQ ( extensions : : disable_reason : : DISABLE_NONE , data -> disable_reasons ( ) ) ;\n }\n service ( ) -> EnableExtension ( good_crx ) ;\n service ( ) -> DisableExtension ( good_crx , extensions : : disable_reason : : DISABLE_USER_ACTION | extensions : : disable_reason : : DISABLE_RELOAD ) ;\n {\n syncer : : SyncDataList list = extension_sync_service ( ) -> GetAllSyncData ( syncer : : EXTENSIONS ) ;\n ASSERT_EQ ( list . size ( ) , 1U ) ;\n std : : unique_ptr < ExtensionSyncData > data = ExtensionSyncData : : CreateFromSyncData ( list [ 0 ] ) ;\n ASSERT_TRUE ( data . get ( ) ) ;\n EXPECT_FALSE ( data -> enabled ( ) ) ;\n EXPECT_TRUE ( data -> supports_disable_reasons ( ) ) ;\n EXPECT_EQ ( extensions : : disable_reason : : DISABLE_USER_ACTION , data -> disable_reasons ( ) ) ;\n }\n service ( ) -> EnableExtension ( good_crx ) ;\n }"}
{"idx": 8313, "target": 0, "func": "static void * gfi_unpack_entry ( struct object_entry * oe , unsigned long * sizep ) {\n enum object_type type ;\n struct packed_git * p = all_packs [ oe -> pack_id ] ;\n if ( p == pack_data && p -> pack_size < ( pack_size + 20 ) ) {\n close_pack_windows ( p ) ;\n sha1flush ( pack_file ) ;\n p -> pack_size = pack_size + 20 ;\n }\n return unpack_entry ( p , oe -> idx . offset , & type , sizep ) ;\n }"}
{"idx": 8314, "target": 0, "func": "static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 8315, "target": 0, "func": "static int SpoolssStartDocPrinter_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_job_id , NULL ) ;\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 8316, "target": 0, "func": "static void png_put_interlaced_row ( uint8_t * dst , int width , int bits_per_pixel , int pass , int color_type , const uint8_t * src ) {\n int x , mask , dsp_mask , j , src_x , b , bpp ;\n uint8_t * d ;\n const uint8_t * s ;\n mask = ff_png_pass_mask [ pass ] ;\n dsp_mask = png_pass_dsp_mask [ pass ] ;\n switch ( bits_per_pixel ) {\n case 1 : if ( pass == 0 ) memset ( dst , 0 , ( width + 7 ) >> 3 ) ;\n src_x = 0 ;\n for ( x = 0 ;\n x < width ;\n x ++ ) {\n j = ( x & 7 ) ;\n if ( ( dsp_mask << j ) & 0x80 ) {\n b = ( src [ src_x >> 3 ] >> ( 7 - ( src_x & 7 ) ) ) & 1 ;\n dst [ x >> 3 ] |= b << ( 7 - j ) ;\n }\n if ( ( mask << j ) & 0x80 ) src_x ++ ;\n }\n break ;\n default : bpp = bits_per_pixel >> 3 ;\n d = dst ;\n s = src ;\n if ( color_type == PNG_COLOR_TYPE_RGB_ALPHA ) {\n for ( x = 0 ;\n x < width ;\n x ++ ) {\n j = x & 7 ;\n if ( ( dsp_mask << j ) & 0x80 ) {\n * ( uint32_t * ) d = ( s [ 3 ] << 24 ) | ( s [ 0 ] << 16 ) | ( s [ 1 ] << 8 ) | s [ 2 ] ;\n }\n d += bpp ;\n if ( ( mask << j ) & 0x80 ) s += bpp ;\n }\n }\n else {\n for ( x = 0 ;\n x < width ;\n x ++ ) {\n j = x & 7 ;\n if ( ( dsp_mask << j ) & 0x80 ) {\n memcpy ( d , s , bpp ) ;\n }\n d += bpp ;\n if ( ( mask << j ) & 0x80 ) s += bpp ;\n }\n }\n break ;\n }\n }"}
{"idx": 8317, "target": 1, "func": "const xmlChar * xsltEvalStaticAttrValueTemplate ( xsltStylesheetPtr style , xmlNodePtr inst , const xmlChar * name , const xmlChar * ns , int * found ) {\n const xmlChar * ret ;\n xmlChar * expr ;\n if ( ( style == NULL ) || ( inst == NULL ) || ( name == NULL ) ) return ( NULL ) ;\n expr = xsltGetNsProp ( inst , name , ns ) ;\n if ( expr == NULL ) {\n * found = 0 ;\n return ( NULL ) ;\n }\n * found = 1 ;\n ret = xmlStrchr ( expr , '{\n' ) ;\n if ( ret != NULL ) {\n xmlFree ( expr ) ;\n return ( NULL ) ;\n }\n ret = xmlDictLookup ( style -> dict , expr , - 1 ) ;\n xmlFree ( expr ) ;\n return ( ret ) ;\n }"}
{"idx": 8318, "target": 0, "func": "static void nameserver_probe_callback ( int result , char type , int count , int ttl , void * addresses , void * arg ) {\n struct nameserver * const ns = ( struct nameserver * ) arg ;\n ( void ) type ;\n ( void ) count ;\n ( void ) ttl ;\n ( void ) addresses ;\n if ( result == DNS_ERR_NONE || result == DNS_ERR_NOTEXIST ) {\n nameserver_up ( ns ) ;\n }\n else nameserver_probe_failed ( ns ) ;\n }"}
{"idx": 8319, "target": 0, "func": "int av_image_get_linesize ( enum PixelFormat pix_fmt , int width , int plane ) {\n const AVPixFmtDescriptor * desc = & av_pix_fmt_descriptors [ pix_fmt ] ;\n int max_step [ 4 ] ;\n int max_step_comp [ 4 ] ;\n int s ;\n if ( desc -> flags & PIX_FMT_BITSTREAM ) return ( width * ( desc -> comp [ 0 ] . step_minus1 + 1 ) + 7 ) >> 3 ;\n av_image_fill_max_pixsteps ( max_step , max_step_comp , desc ) ;\n s = ( max_step_comp [ plane ] == 1 || max_step_comp [ plane ] == 2 ) ? desc -> log2_chroma_w : 0 ;\n return max_step [ plane ] * ( ( ( width + ( 1 << s ) - 1 ) ) >> s ) ;\n }"}
{"idx": 8320, "target": 0, "func": "TEST_F ( ExtensionServiceSyncTest , ProcessSyncDataUninstall ) {\n InitializeEmptyExtensionService ( ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , syncer : : SyncDataList ( ) , base : : MakeUnique < syncer : : FakeSyncChangeProcessor > ( ) , base : : MakeUnique < syncer : : SyncErrorFactoryMock > ( ) ) ;\n sync_pb : : EntitySpecifics specifics ;\n sync_pb : : ExtensionSpecifics * ext_specifics = specifics . mutable_extension ( ) ;\n ext_specifics -> set_id ( good_crx ) ;\n ext_specifics -> set_version ( \"1.0\" ) ;\n SyncChangeList list = MakeSyncChangeList ( good_crx , specifics , SyncChange : : ACTION_DELETE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_FALSE ( service ( ) -> GetExtensionById ( good_crx , true ) ) ;\n base : : FilePath extension_path = data_dir ( ) . AppendASCII ( \"good.crx\" ) ;\n InstallCRX ( extension_path , INSTALL_NEW ) ;\n EXPECT_TRUE ( service ( ) -> GetExtensionById ( good_crx , true ) ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_FALSE ( service ( ) -> GetExtensionById ( good_crx , true ) ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_FALSE ( service ( ) -> GetExtensionById ( good_crx , true ) ) ;\n }"}
{"idx": 8321, "target": 0, "func": "static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 8322, "target": 0, "func": "static void ber_check_length ( guint32 length , gint32 min_len , gint32 max_len , asn1_ctx_t * actx , proto_item * item , gboolean bit ) {\n if ( ( min_len != - 1 ) && ( length < ( guint32 ) min_len ) ) {\n expert_add_info_format ( actx -> pinfo , item , & ei_ber_size_constraint_string , \"Size constraint: %sstring too short: %d (%d .. %d)\" , bit ? \"bit \" : \"\" , length , min_len , max_len ) ;\n }\n else if ( ( max_len != - 1 ) && ( length > ( guint32 ) max_len ) ) {\n expert_add_info_format ( actx -> pinfo , item , & ei_ber_size_constraint_string , \"Size constraint: %sstring too long: %d (%d .. %d)\" , bit ? \"bit \" : \"\" , length , min_len , max_len ) ;\n }\n }"}
{"idx": 8323, "target": 0, "func": "static int svq3_decode_mb ( SVQ3Context * s , unsigned int mb_type ) {\n H264Context * h = & s -> h ;\n int i , j , k , m , dir , mode ;\n int cbp = 0 ;\n uint32_t vlc ;\n int8_t * top , * left ;\n const int mb_xy = h -> mb_xy ;\n const int b_xy = 4 * h -> mb_x + 4 * h -> mb_y * h -> b_stride ;\n h -> top_samples_available = ( h -> mb_y == 0 ) ? 0x33FF : 0xFFFF ;\n h -> left_samples_available = ( h -> mb_x == 0 ) ? 0x5F5F : 0xFFFF ;\n h -> topright_samples_available = 0xFFFF ;\n if ( mb_type == 0 ) {\n if ( h -> pict_type == AV_PICTURE_TYPE_P || s -> next_pic -> mb_type [ mb_xy ] == - 1 ) {\n svq3_mc_dir_part ( s , 16 * h -> mb_x , 16 * h -> mb_y , 16 , 16 , 0 , 0 , 0 , 0 , 0 , 0 ) ;\n if ( h -> pict_type == AV_PICTURE_TYPE_B ) svq3_mc_dir_part ( s , 16 * h -> mb_x , 16 * h -> mb_y , 16 , 16 , 0 , 0 , 0 , 0 , 1 , 1 ) ;\n mb_type = MB_TYPE_SKIP ;\n }\n else {\n mb_type = FFMIN ( s -> next_pic -> mb_type [ mb_xy ] , 6 ) ;\n if ( svq3_mc_dir ( s , mb_type , PREDICT_MODE , 0 , 0 ) < 0 ) return - 1 ;\n if ( svq3_mc_dir ( s , mb_type , PREDICT_MODE , 1 , 1 ) < 0 ) return - 1 ;\n mb_type = MB_TYPE_16x16 ;\n }\n }\n else if ( mb_type < 8 ) {\n if ( s -> thirdpel_flag && s -> halfpel_flag == ! get_bits1 ( & h -> gb ) ) mode = THIRDPEL_MODE ;\n else if ( s -> halfpel_flag && s -> thirdpel_flag == ! get_bits1 ( & h -> gb ) ) mode = HALFPEL_MODE ;\n else mode = FULLPEL_MODE ;\n for ( m = 0 ;\n m < 2 ;\n m ++ ) {\n if ( h -> mb_x > 0 && h -> intra4x4_pred_mode [ h -> mb2br_xy [ mb_xy - 1 ] + 6 ] != - 1 ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) AV_COPY32 ( h -> mv_cache [ m ] [ scan8 [ 0 ] - 1 + i * 8 ] , h -> cur_pic . motion_val [ m ] [ b_xy - 1 + i * h -> b_stride ] ) ;\n }\n else {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) AV_ZERO32 ( h -> mv_cache [ m ] [ scan8 [ 0 ] - 1 + i * 8 ] ) ;\n }\n if ( h -> mb_y > 0 ) {\n memcpy ( h -> mv_cache [ m ] [ scan8 [ 0 ] - 1 * 8 ] , h -> cur_pic . motion_val [ m ] [ b_xy - h -> b_stride ] , 4 * 2 * sizeof ( int16_t ) ) ;\n memset ( & h -> ref_cache [ m ] [ scan8 [ 0 ] - 1 * 8 ] , ( h -> intra4x4_pred_mode [ h -> mb2br_xy [ mb_xy - h -> mb_stride ] ] == - 1 ) ? PART_NOT_AVAILABLE : 1 , 4 ) ;\n if ( h -> mb_x < h -> mb_width - 1 ) {\n AV_COPY32 ( h -> mv_cache [ m ] [ scan8 [ 0 ] + 4 - 1 * 8 ] , h -> cur_pic . motion_val [ m ] [ b_xy - h -> b_stride + 4 ] ) ;\n h -> ref_cache [ m ] [ scan8 [ 0 ] + 4 - 1 * 8 ] = ( h -> intra4x4_pred_mode [ h -> mb2br_xy [ mb_xy - h -> mb_stride + 1 ] + 6 ] == - 1 || h -> intra4x4_pred_mode [ h -> mb2br_xy [ mb_xy - h -> mb_stride ] ] == - 1 ) ? PART_NOT_AVAILABLE : 1 ;\n }\n else h -> ref_cache [ m ] [ scan8 [ 0 ] + 4 - 1 * 8 ] = PART_NOT_AVAILABLE ;\n if ( h -> mb_x > 0 ) {\n AV_COPY32 ( h -> mv_cache [ m ] [ scan8 [ 0 ] - 1 - 1 * 8 ] , h -> cur_pic . motion_val [ m ] [ b_xy - h -> b_stride - 1 ] ) ;\n h -> ref_cache [ m ] [ scan8 [ 0 ] - 1 - 1 * 8 ] = ( h -> intra4x4_pred_mode [ h -> mb2br_xy [ mb_xy - h -> mb_stride - 1 ] + 3 ] == - 1 ) ? PART_NOT_AVAILABLE : 1 ;\n }\n else h -> ref_cache [ m ] [ scan8 [ 0 ] - 1 - 1 * 8 ] = PART_NOT_AVAILABLE ;\n }\n else memset ( & h -> ref_cache [ m ] [ scan8 [ 0 ] - 1 * 8 - 1 ] , PART_NOT_AVAILABLE , 8 ) ;\n if ( h -> pict_type != AV_PICTURE_TYPE_B ) break ;\n }\n if ( h -> pict_type == AV_PICTURE_TYPE_P ) {\n if ( svq3_mc_dir ( s , mb_type - 1 , mode , 0 , 0 ) < 0 ) return - 1 ;\n }\n else {\n if ( mb_type != 2 ) {\n if ( svq3_mc_dir ( s , 0 , mode , 0 , 0 ) < 0 ) return - 1 ;\n }\n else {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) memset ( h -> cur_pic . motion_val [ 0 ] [ b_xy + i * h -> b_stride ] , 0 , 4 * 2 * sizeof ( int16_t ) ) ;\n }\n if ( mb_type != 1 ) {\n if ( svq3_mc_dir ( s , 0 , mode , 1 , mb_type == 3 ) < 0 ) return - 1 ;\n }\n else {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) memset ( h -> cur_pic . motion_val [ 1 ] [ b_xy + i * h -> b_stride ] , 0 , 4 * 2 * sizeof ( int16_t ) ) ;\n }\n }\n mb_type = MB_TYPE_16x16 ;\n }\n else if ( mb_type == 8 || mb_type == 33 ) {\n memset ( h -> intra4x4_pred_mode_cache , - 1 , 8 * 5 * sizeof ( int8_t ) ) ;\n if ( mb_type == 8 ) {\n if ( h -> mb_x > 0 ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) h -> intra4x4_pred_mode_cache [ scan8 [ 0 ] - 1 + i * 8 ] = h -> intra4x4_pred_mode [ h -> mb2br_xy [ mb_xy - 1 ] + 6 - i ] ;\n if ( h -> intra4x4_pred_mode_cache [ scan8 [ 0 ] - 1 ] == - 1 ) h -> left_samples_available = 0x5F5F ;\n }\n if ( h -> mb_y > 0 ) {\n h -> intra4x4_pred_mode_cache [ 4 + 8 * 0 ] = h -> intra4x4_pred_mode [ h -> mb2br_xy [ mb_xy - h -> mb_stride ] + 0 ] ;\n h -> intra4x4_pred_mode_cache [ 5 + 8 * 0 ] = h -> intra4x4_pred_mode [ h -> mb2br_xy [ mb_xy - h -> mb_stride ] + 1 ] ;\n h -> intra4x4_pred_mode_cache [ 6 + 8 * 0 ] = h -> intra4x4_pred_mode [ h -> mb2br_xy [ mb_xy - h -> mb_stride ] + 2 ] ;\n h -> intra4x4_pred_mode_cache [ 7 + 8 * 0 ] = h -> intra4x4_pred_mode [ h -> mb2br_xy [ mb_xy - h -> mb_stride ] + 3 ] ;\n if ( h -> intra4x4_pred_mode_cache [ 4 + 8 * 0 ] == - 1 ) h -> top_samples_available = 0x33FF ;\n }\n for ( i = 0 ;\n i < 16 ;\n i += 2 ) {\n vlc = svq3_get_ue_golomb ( & h -> gb ) ;\n if ( vlc >= 25 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"luma prediction:%d\\n\" , vlc ) ;\n return - 1 ;\n }\n left = & h -> intra4x4_pred_mode_cache [ scan8 [ i ] - 1 ] ;\n top = & h -> intra4x4_pred_mode_cache [ scan8 [ i ] - 8 ] ;\n left [ 1 ] = svq3_pred_1 [ top [ 0 ] + 1 ] [ left [ 0 ] + 1 ] [ svq3_pred_0 [ vlc ] [ 0 ] ] ;\n left [ 2 ] = svq3_pred_1 [ top [ 1 ] + 1 ] [ left [ 1 ] + 1 ] [ svq3_pred_0 [ vlc ] [ 1 ] ] ;\n if ( left [ 1 ] == - 1 || left [ 2 ] == - 1 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"weird prediction\\n\" ) ;\n return - 1 ;\n }\n }\n }\n else {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) memset ( & h -> intra4x4_pred_mode_cache [ scan8 [ 0 ] + 8 * i ] , DC_PRED , 4 ) ;\n }\n write_back_intra_pred_mode ( h ) ;\n if ( mb_type == 8 ) {\n ff_h264_check_intra4x4_pred_mode ( h ) ;\n h -> top_samples_available = ( h -> mb_y == 0 ) ? 0x33FF : 0xFFFF ;\n h -> left_samples_available = ( h -> mb_x == 0 ) ? 0x5F5F : 0xFFFF ;\n }\n else {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) memset ( & h -> intra4x4_pred_mode_cache [ scan8 [ 0 ] + 8 * i ] , DC_128_PRED , 4 ) ;\n h -> top_samples_available = 0x33FF ;\n h -> left_samples_available = 0x5F5F ;\n }\n mb_type = MB_TYPE_INTRA4x4 ;\n }\n else {\n dir = i_mb_type_info [ mb_type - 8 ] . pred_mode ;\n dir = ( dir >> 1 ) ^ 3 * ( dir & 1 ) ^ 1 ;\n if ( ( h -> intra16x16_pred_mode = ff_h264_check_intra_pred_mode ( h , dir , 0 ) ) == - 1 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"check_intra_pred_mode = -1\\n\" ) ;\n return - 1 ;\n }\n cbp = i_mb_type_info [ mb_type - 8 ] . cbp ;\n mb_type = MB_TYPE_INTRA16x16 ;\n }\n if ( ! IS_INTER ( mb_type ) && h -> pict_type != AV_PICTURE_TYPE_I ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) memset ( h -> cur_pic . motion_val [ 0 ] [ b_xy + i * h -> b_stride ] , 0 , 4 * 2 * sizeof ( int16_t ) ) ;\n if ( h -> pict_type == AV_PICTURE_TYPE_B ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) memset ( h -> cur_pic . motion_val [ 1 ] [ b_xy + i * h -> b_stride ] , 0 , 4 * 2 * sizeof ( int16_t ) ) ;\n }\n }\n if ( ! IS_INTRA4x4 ( mb_type ) ) {\n memset ( h -> intra4x4_pred_mode + h -> mb2br_xy [ mb_xy ] , DC_PRED , 8 ) ;\n }\n if ( ! IS_SKIP ( mb_type ) || h -> pict_type == AV_PICTURE_TYPE_B ) {\n memset ( h -> non_zero_count_cache + 8 , 0 , 14 * 8 * sizeof ( uint8_t ) ) ;\n h -> dsp . clear_blocks ( h -> mb + 0 ) ;\n h -> dsp . clear_blocks ( h -> mb + 384 ) ;\n }\n if ( ! IS_INTRA16x16 ( mb_type ) && ( ! IS_SKIP ( mb_type ) || h -> pict_type == AV_PICTURE_TYPE_B ) ) {\n if ( ( vlc = svq3_get_ue_golomb ( & h -> gb ) ) >= 48 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"cbp_vlc=%d\\n\" , vlc ) ;\n return - 1 ;\n }\n cbp = IS_INTRA ( mb_type ) ? golomb_to_intra4x4_cbp [ vlc ] : golomb_to_inter_cbp [ vlc ] ;\n }\n if ( IS_INTRA16x16 ( mb_type ) || ( h -> pict_type != AV_PICTURE_TYPE_I && s -> adaptive_quant && cbp ) ) {\n h -> qscale += svq3_get_se_golomb ( & h -> gb ) ;\n if ( h -> qscale > 31u ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"qscale:%d\\n\" , h -> qscale ) ;\n return - 1 ;\n }\n }\n if ( IS_INTRA16x16 ( mb_type ) ) {\n AV_ZERO128 ( h -> mb_luma_dc [ 0 ] + 0 ) ;\n AV_ZERO128 ( h -> mb_luma_dc [ 0 ] + 8 ) ;\n if ( svq3_decode_block ( & h -> gb , h -> mb_luma_dc [ 0 ] , 0 , 1 ) ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"error while decoding intra luma dc\\n\" ) ;\n return - 1 ;\n }\n }\n if ( cbp ) {\n const int index = IS_INTRA16x16 ( mb_type ) ? 1 : 0 ;\n const int type = ( ( h -> qscale < 24 && IS_INTRA4x4 ( mb_type ) ) ? 2 : 1 ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) if ( ( cbp & ( 1 << i ) ) ) {\n for ( j = 0 ;\n j < 4 ;\n j ++ ) {\n k = index ? ( 1 * ( j & 1 ) + 2 * ( i & 1 ) + 2 * ( j & 2 ) + 4 * ( i & 2 ) ) : ( 4 * i + j ) ;\n h -> non_zero_count_cache [ scan8 [ k ] ] = 1 ;\n if ( svq3_decode_block ( & h -> gb , & h -> mb [ 16 * k ] , index , type ) ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"error while decoding block\\n\" ) ;\n return - 1 ;\n }\n }\n }\n if ( ( cbp & 0x30 ) ) {\n for ( i = 1 ;\n i < 3 ;\n ++ i ) if ( svq3_decode_block ( & h -> gb , & h -> mb [ 16 * 16 * i ] , 0 , 3 ) ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"error while decoding chroma dc block\\n\" ) ;\n return - 1 ;\n }\n if ( ( cbp & 0x20 ) ) {\n for ( i = 1 ;\n i < 3 ;\n i ++ ) {\n for ( j = 0 ;\n j < 4 ;\n j ++ ) {\n k = 16 * i + j ;\n h -> non_zero_count_cache [ scan8 [ k ] ] = 1 ;\n if ( svq3_decode_block ( & h -> gb , & h -> mb [ 16 * k ] , 1 , 1 ) ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"error while decoding chroma ac block\\n\" ) ;\n return - 1 ;\n }\n }\n }\n }\n }\n }\n h -> cbp = cbp ;\n h -> cur_pic . mb_type [ mb_xy ] = mb_type ;\n if ( IS_INTRA ( mb_type ) ) h -> chroma_pred_mode = ff_h264_check_intra_pred_mode ( h , DC_PRED8x8 , 1 ) ;\n return 0 ;\n }"}
{"idx": 8324, "target": 0, "func": "void http_hdr_status_set ( HTTPHdrImpl * hh , HTTPStatus status ) {\n ink_assert ( hh -> m_polarity == HTTP_TYPE_RESPONSE ) ;\n hh -> u . resp . m_status = status ;\n }"}
{"idx": 8325, "target": 0, "func": "static int32_t compareUnicode ( UCMTable * lTable , const UCMapping * l , UCMTable * rTable , const UCMapping * r ) {\n const UChar32 * lu , * ru ;\n int32_t result , i , length ;\n if ( l -> uLen == 1 && r -> uLen == 1 ) {\n return l -> u - r -> u ;\n }\n lu = UCM_GET_CODE_POINTS ( lTable , l ) ;\n ru = UCM_GET_CODE_POINTS ( rTable , r ) ;\n if ( l -> uLen <= r -> uLen ) {\n length = l -> uLen ;\n }\n else {\n length = r -> uLen ;\n }\n for ( i = 0 ;\n i < length ;\n ++ i ) {\n result = lu [ i ] - ru [ i ] ;\n if ( result != 0 ) {\n return result ;\n }\n }\n return l -> uLen - r -> uLen ;\n }"}
{"idx": 8326, "target": 0, "func": "void usage_exit ( ) {\n int i ;\n fprintf ( stderr , \"Usage: %s <options> filename\\n\\n\" \"Options:\\n\" , exec_name ) ;\n arg_show_usage ( stderr , all_args ) ;\n # if CONFIG_VP8_DECODER fprintf ( stderr , \"\\nVP8 Postprocessing Options:\\n\" ) ;\n arg_show_usage ( stderr , vp8_pp_args ) ;\n # endif fprintf ( stderr , \"\\nOutput File Patterns:\\n\\n\" \" The -o argument specifies the name of the file(s) to \" \"write to. If the\\n argument does not include any escape \" \"characters, the output will be\\n written to a single file. \" \"Otherwise, the filename will be calculated by\\n expanding \" \"the following escape characters:\\n\" ) ;\n fprintf ( stderr , \"\\n\\t%%w - Frame width\" \"\\n\\t%%h - Frame height\" \"\\n\\t%%<n> - Frame number, zero padded to <n> places (1..9)\" \"\\n\\n Pattern arguments are only supported in conjunction \" \"with the --yv12 and\\n --i420 options. If the -o option is \" \"not specified, the output will be\\n directed to stdout.\\n\" ) ;\n fprintf ( stderr , \"\\nIncluded decoders:\\n\\n\" ) ;\n for ( i = 0 ;\n i < get_vpx_decoder_count ( ) ;\n ++ i ) {\n const VpxInterface * const decoder = get_vpx_decoder_by_index ( i ) ;\n fprintf ( stderr , \" %-6s - %s\\n\" , decoder -> name , vpx_codec_iface_name ( decoder -> codec_interface ( ) ) ) ;\n }\n exit ( EXIT_FAILURE ) ;\n }"}
{"idx": 8327, "target": 0, "func": "static ossl_inline type * lh_ ## type ## _retrieve ( LHASH_OF ( type ) * lh , const type * d ) {\n return ( type * ) OPENSSL_LH_retrieve ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline int lh_ ## type ## _error ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_error ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _num_items ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_num_items ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _node_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _node_usage_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_usage_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING ) ;\n # ifdef _MSC_VER # pragma warning ( push ) # pragma warning ( disable : 4090 ) # endif DEFINE_LHASH_OF ( OPENSSL_CSTRING )"}
{"idx": 8328, "target": 0, "func": "int tmx_check_pretran ( sip_msg_t * msg ) {\n unsigned int chid ;\n unsigned int slotid ;\n int dsize ;\n struct via_param * vbr ;\n str scallid ;\n str scseqmet ;\n str scseqnum ;\n str sftag ;\n str svbranch = {\n NULL , 0 }\n ;\n pretran_t * it ;\n if ( _tmx_ptran_table == NULL ) {\n LM_ERR ( \"pretran hash table not initialized yet\\n\" ) ;\n return - 1 ;\n }\n if ( get_route_type ( ) != REQUEST_ROUTE ) {\n LM_ERR ( \"invalid usage - not in request route\\n\" ) ;\n return - 1 ;\n }\n if ( msg -> first_line . type != SIP_REQUEST ) {\n LM_ERR ( \"invalid usage - not a sip request\\n\" ) ;\n return - 1 ;\n }\n if ( parse_headers ( msg , HDR_FROM_F | HDR_VIA1_F | HDR_CALLID_F | HDR_CSEQ_F , 0 ) < 0 ) {\n LM_ERR ( \"failed to parse required headers\\n\" ) ;\n return - 1 ;\n }\n if ( msg -> cseq == NULL || msg -> cseq -> parsed == NULL ) {\n LM_ERR ( \"failed to parse cseq headers\\n\" ) ;\n return - 1 ;\n }\n if ( get_cseq ( msg ) -> method_id == METHOD_ACK || get_cseq ( msg ) -> method_id == METHOD_CANCEL ) {\n LM_DBG ( \"no pre-transaction management for ACK or CANCEL\\n\" ) ;\n return - 1 ;\n }\n if ( msg -> via1 == 0 ) {\n LM_ERR ( \"failed to get Via header\\n\" ) ;\n return - 1 ;\n }\n if ( parse_from_header ( msg ) < 0 || get_from ( msg ) -> tag_value . len == 0 ) {\n LM_ERR ( \"failed to get From header\\n\" ) ;\n return - 1 ;\n }\n if ( msg -> callid == NULL || msg -> callid -> body . s == NULL ) {\n LM_ERR ( \"failed to parse callid headers\\n\" ) ;\n return - 1 ;\n }\n vbr = msg -> via1 -> branch ;\n scallid = msg -> callid -> body ;\n trim ( & scallid ) ;\n scseqmet = get_cseq ( msg ) -> method ;\n trim ( & scseqmet ) ;\n scseqnum = get_cseq ( msg ) -> number ;\n trim ( & scseqnum ) ;\n sftag = get_from ( msg ) -> tag_value ;\n trim ( & sftag ) ;\n chid = get_hash1_raw ( msg -> callid -> body . s , msg -> callid -> body . len ) ;\n slotid = chid & ( _tmx_ptran_size - 1 ) ;\n if ( unlikely ( _tmx_proc_ptran == NULL ) ) {\n _tmx_proc_ptran = ( pretran_t * ) shm_malloc ( sizeof ( pretran_t ) ) ;\n if ( _tmx_proc_ptran == NULL ) {\n LM_ERR ( \"not enough memory for pretran structure\\n\" ) ;\n return - 1 ;\n }\n memset ( _tmx_proc_ptran , 0 , sizeof ( pretran_t ) ) ;\n _tmx_proc_ptran -> pid = my_pid ( ) ;\n }\n dsize = scallid . len + scseqnum . len + scseqmet . len + sftag . len + 4 ;\n if ( likely ( vbr != NULL ) ) {\n svbranch = vbr -> value ;\n trim ( & svbranch ) ;\n dsize += svbranch . len + 1 ;\n }\n if ( dsize < 256 ) dsize = 256 ;\n tmx_pretran_unlink ( ) ;\n if ( dsize > _tmx_proc_ptran -> dbuf . len ) {\n if ( _tmx_proc_ptran -> dbuf . s ) shm_free ( _tmx_proc_ptran -> dbuf . s ) ;\n _tmx_proc_ptran -> dbuf . s = ( char * ) shm_malloc ( dsize ) ;\n if ( _tmx_proc_ptran -> dbuf . s == NULL ) {\n LM_ERR ( \"not enough memory for pretran data\\n\" ) ;\n return - 1 ;\n }\n _tmx_proc_ptran -> dbuf . len = dsize ;\n }\n _tmx_proc_ptran -> hid = chid ;\n _tmx_proc_ptran -> cseqmetid = ( get_cseq ( msg ) ) -> method_id ;\n _tmx_proc_ptran -> callid . s = _tmx_proc_ptran -> dbuf . s ;\n memcpy ( _tmx_proc_ptran -> callid . s , scallid . s , scallid . len ) ;\n _tmx_proc_ptran -> callid . len = scallid . len ;\n _tmx_proc_ptran -> callid . s [ _tmx_proc_ptran -> callid . len ] = '\\0' ;\n _tmx_proc_ptran -> ftag . s = _tmx_proc_ptran -> callid . s + _tmx_proc_ptran -> callid . len + 1 ;\n memcpy ( _tmx_proc_ptran -> ftag . s , sftag . s , sftag . len ) ;\n _tmx_proc_ptran -> ftag . len = sftag . len ;\n _tmx_proc_ptran -> ftag . s [ _tmx_proc_ptran -> ftag . len ] = '\\0' ;\n _tmx_proc_ptran -> cseqnum . s = _tmx_proc_ptran -> ftag . s + _tmx_proc_ptran -> ftag . len + 1 ;\n memcpy ( _tmx_proc_ptran -> cseqnum . s , scseqnum . s , scseqnum . len ) ;\n _tmx_proc_ptran -> cseqnum . len = scseqnum . len ;\n _tmx_proc_ptran -> cseqnum . s [ _tmx_proc_ptran -> cseqnum . len ] = '\\0' ;\n _tmx_proc_ptran -> cseqmet . s = _tmx_proc_ptran -> cseqnum . s + _tmx_proc_ptran -> cseqnum . len + 1 ;\n memcpy ( _tmx_proc_ptran -> cseqmet . s , scseqmet . s , scseqmet . len ) ;\n _tmx_proc_ptran -> cseqmet . len = scseqmet . len ;\n _tmx_proc_ptran -> cseqmet . s [ _tmx_proc_ptran -> cseqmet . len ] = '\\0' ;\n if ( likely ( vbr != NULL ) ) {\n _tmx_proc_ptran -> vbranch . s = _tmx_proc_ptran -> cseqmet . s + _tmx_proc_ptran -> cseqmet . len + 1 ;\n memcpy ( _tmx_proc_ptran -> vbranch . s , svbranch . s , svbranch . len ) ;\n _tmx_proc_ptran -> vbranch . len = svbranch . len ;\n _tmx_proc_ptran -> vbranch . s [ _tmx_proc_ptran -> vbranch . len ] = '\\0' ;\n }\n else {\n _tmx_proc_ptran -> vbranch . s = NULL ;\n _tmx_proc_ptran -> vbranch . len = 0 ;\n }\n lock_get ( & _tmx_ptran_table [ slotid ] . lock ) ;\n it = _tmx_ptran_table [ slotid ] . plist ;\n tmx_pretran_link_safe ( slotid ) ;\n for ( ;\n it != NULL ;\n it = it -> next ) {\n if ( _tmx_proc_ptran -> hid != it -> hid || _tmx_proc_ptran -> cseqmetid != it -> cseqmetid || _tmx_proc_ptran -> callid . len != it -> callid . len || _tmx_proc_ptran -> ftag . len != it -> ftag . len || _tmx_proc_ptran -> cseqmet . len != it -> cseqmet . len || _tmx_proc_ptran -> cseqnum . len != it -> cseqnum . len ) continue ;\n if ( _tmx_proc_ptran -> vbranch . s != NULL && it -> vbranch . s != NULL ) {\n if ( _tmx_proc_ptran -> vbranch . len != it -> vbranch . len ) continue ;\n if ( _tmx_proc_ptran -> vbranch . s [ it -> vbranch . len - 1 ] != it -> vbranch . s [ it -> vbranch . len - 1 ] ) continue ;\n if ( memcmp ( _tmx_proc_ptran -> vbranch . s , it -> vbranch . s , it -> vbranch . len ) != 0 ) continue ;\n }\n if ( memcmp ( _tmx_proc_ptran -> callid . s , it -> callid . s , it -> callid . len ) != 0 || memcmp ( _tmx_proc_ptran -> ftag . s , it -> ftag . s , it -> ftag . len ) != 0 || memcmp ( _tmx_proc_ptran -> cseqnum . s , it -> cseqnum . s , it -> cseqnum . len ) != 0 ) continue ;\n if ( ( it -> cseqmetid == METHOD_OTHER || it -> cseqmetid == METHOD_UNDEF ) && memcmp ( _tmx_proc_ptran -> cseqmet . s , it -> cseqmet . s , it -> cseqmet . len ) != 0 ) continue ;\n LM_DBG ( \"matched another pre-transaction by pid %d for [%.*s]\\n\" , it -> pid , it -> callid . len , it -> callid . s ) ;\n lock_release ( & _tmx_ptran_table [ slotid ] . lock ) ;\n return 1 ;\n }\n lock_release ( & _tmx_ptran_table [ slotid ] . lock ) ;\n return 0 ;\n }"}
{"idx": 8329, "target": 0, "func": "inline static void _slurm_rpc_accounting_update_msg ( slurm_msg_t * msg ) {\n static int active_rpc_cnt = 0 ;\n int rc = SLURM_SUCCESS ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n accounting_update_msg_t * update_ptr = ( accounting_update_msg_t * ) msg -> data ;\n DEF_TIMERS ;\n START_TIMER ;\n debug2 ( \"Processing RPC: ACCOUNTING_UPDATE_MSG from uid=%d\" , uid ) ;\n if ( ! validate_super_user ( uid ) ) {\n error ( \"Update Association request from non-super user uid=%d\" , uid ) ;\n slurm_send_rc_msg ( msg , EACCES ) ;\n return ;\n }\n slurm_send_rc_msg ( msg , rc ) ;\n _throttle_start ( & active_rpc_cnt ) ;\n if ( update_ptr -> update_list && list_count ( update_ptr -> update_list ) ) {\n slurmdb_update_object_t * object ;\n slurmdb_update_type_t fed_type = SLURMDB_UPDATE_FEDS ;\n if ( ( object = list_find_first ( update_ptr -> update_list , _find_update_object_in_list , & fed_type ) ) ) {\n # if HAVE_SYS_PRCTL_H if ( prctl ( PR_SET_NAME , \"fedmgr\" , NULL , NULL , NULL ) < 0 ) {\n error ( \"%s: cannot set my name to %s %m\" , __func__ , \"fedmgr\" ) ;\n }\n # endif fed_mgr_update_feds ( object ) ;\n }\n rc = assoc_mgr_update ( update_ptr -> update_list , 0 ) ;\n }\n _throttle_fini ( & active_rpc_cnt ) ;\n END_TIMER2 ( \"_slurm_rpc_accounting_update_msg\" ) ;\n if ( rc != SLURM_SUCCESS ) error ( \"assoc_mgr_update gave error: %s\" , slurm_strerror ( rc ) ) ;\n }"}
{"idx": 8330, "target": 0, "func": "int _zip_dirent_read ( struct zip_dirent * zde , FILE * fp , unsigned char * * bufp , zip_uint32_t * leftp , int local , struct zip_error * error ) {\n unsigned char buf [ CDENTRYSIZE ] ;\n unsigned char * cur ;\n unsigned short dostime , dosdate ;\n zip_uint32_t size ;\n if ( local ) size = LENTRYSIZE ;\n else size = CDENTRYSIZE ;\n if ( leftp && ( * leftp < size ) ) {\n _zip_error_set ( error , ZIP_ER_NOZIP , 0 ) ;\n return - 1 ;\n }\n if ( bufp ) {\n cur = * bufp ;\n }\n else {\n if ( ( fread ( buf , 1 , size , fp ) < size ) ) {\n _zip_error_set ( error , ZIP_ER_READ , errno ) ;\n return - 1 ;\n }\n cur = buf ;\n }\n if ( memcmp ( cur , ( local ? LOCAL_MAGIC : CENTRAL_MAGIC ) , 4 ) != 0 ) {\n _zip_error_set ( error , ZIP_ER_NOZIP , 0 ) ;\n return - 1 ;\n }\n cur += 4 ;\n if ( ! local ) zde -> version_madeby = _zip_read2 ( & cur ) ;\n else zde -> version_madeby = 0 ;\n zde -> version_needed = _zip_read2 ( & cur ) ;\n zde -> bitflags = _zip_read2 ( & cur ) ;\n zde -> comp_method = _zip_read2 ( & cur ) ;\n dostime = _zip_read2 ( & cur ) ;\n dosdate = _zip_read2 ( & cur ) ;\n zde -> last_mod = _zip_d2u_time ( dostime , dosdate ) ;\n zde -> crc = _zip_read4 ( & cur ) ;\n zde -> comp_size = _zip_read4 ( & cur ) ;\n zde -> uncomp_size = _zip_read4 ( & cur ) ;\n zde -> filename_len = _zip_read2 ( & cur ) ;\n zde -> extrafield_len = _zip_read2 ( & cur ) ;\n if ( local ) {\n zde -> comment_len = 0 ;\n zde -> disk_number = 0 ;\n zde -> int_attrib = 0 ;\n zde -> ext_attrib = 0 ;\n zde -> offset = 0 ;\n }\n else {\n zde -> comment_len = _zip_read2 ( & cur ) ;\n zde -> disk_number = _zip_read2 ( & cur ) ;\n zde -> int_attrib = _zip_read2 ( & cur ) ;\n zde -> ext_attrib = _zip_read4 ( & cur ) ;\n zde -> offset = _zip_read4 ( & cur ) ;\n }\n zde -> filename = NULL ;\n zde -> extrafield = NULL ;\n zde -> comment = NULL ;\n size += zde -> filename_len + zde -> extrafield_len + zde -> comment_len ;\n if ( leftp && ( * leftp < size ) ) {\n _zip_error_set ( error , ZIP_ER_NOZIP , 0 ) ;\n return - 1 ;\n }\n if ( bufp ) {\n if ( zde -> filename_len ) {\n zde -> filename = _zip_readstr ( & cur , zde -> filename_len , 1 , error ) ;\n if ( ! zde -> filename ) return - 1 ;\n }\n if ( zde -> extrafield_len ) {\n zde -> extrafield = _zip_readstr ( & cur , zde -> extrafield_len , 0 , error ) ;\n if ( ! zde -> extrafield ) return - 1 ;\n }\n if ( zde -> comment_len ) {\n zde -> comment = _zip_readstr ( & cur , zde -> comment_len , 0 , error ) ;\n if ( ! zde -> comment ) return - 1 ;\n }\n }\n else {\n if ( zde -> filename_len ) {\n zde -> filename = _zip_readfpstr ( fp , zde -> filename_len , 1 , error ) ;\n if ( ! zde -> filename ) return - 1 ;\n }\n if ( zde -> extrafield_len ) {\n zde -> extrafield = _zip_readfpstr ( fp , zde -> extrafield_len , 0 , error ) ;\n if ( ! zde -> extrafield ) return - 1 ;\n }\n if ( zde -> comment_len ) {\n zde -> comment = _zip_readfpstr ( fp , zde -> comment_len , 0 , error ) ;\n if ( ! zde -> comment ) return - 1 ;\n }\n }\n if ( bufp ) * bufp = cur ;\n if ( leftp ) * leftp -= size ;\n return 0 ;\n }"}
{"idx": 8331, "target": 0, "func": "int ff_pred_weight_table ( H264Context * h ) {\n int list , i ;\n int luma_def , chroma_def ;\n h -> use_weight = 0 ;\n h -> use_weight_chroma = 0 ;\n h -> luma_log2_weight_denom = get_ue_golomb ( & h -> gb ) ;\n if ( h -> sps . chroma_format_idc ) h -> chroma_log2_weight_denom = get_ue_golomb ( & h -> gb ) ;\n luma_def = 1 << h -> luma_log2_weight_denom ;\n chroma_def = 1 << h -> chroma_log2_weight_denom ;\n for ( list = 0 ;\n list < 2 ;\n list ++ ) {\n h -> luma_weight_flag [ list ] = 0 ;\n h -> chroma_weight_flag [ list ] = 0 ;\n for ( i = 0 ;\n i < h -> ref_count [ list ] ;\n i ++ ) {\n int luma_weight_flag , chroma_weight_flag ;\n luma_weight_flag = get_bits1 ( & h -> gb ) ;\n if ( luma_weight_flag ) {\n h -> luma_weight [ i ] [ list ] [ 0 ] = get_se_golomb ( & h -> gb ) ;\n h -> luma_weight [ i ] [ list ] [ 1 ] = get_se_golomb ( & h -> gb ) ;\n if ( h -> luma_weight [ i ] [ list ] [ 0 ] != luma_def || h -> luma_weight [ i ] [ list ] [ 1 ] != 0 ) {\n h -> use_weight = 1 ;\n h -> luma_weight_flag [ list ] = 1 ;\n }\n }\n else {\n h -> luma_weight [ i ] [ list ] [ 0 ] = luma_def ;\n h -> luma_weight [ i ] [ list ] [ 1 ] = 0 ;\n }\n if ( h -> sps . chroma_format_idc ) {\n chroma_weight_flag = get_bits1 ( & h -> gb ) ;\n if ( chroma_weight_flag ) {\n int j ;\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n h -> chroma_weight [ i ] [ list ] [ j ] [ 0 ] = get_se_golomb ( & h -> gb ) ;\n h -> chroma_weight [ i ] [ list ] [ j ] [ 1 ] = get_se_golomb ( & h -> gb ) ;\n if ( h -> chroma_weight [ i ] [ list ] [ j ] [ 0 ] != chroma_def || h -> chroma_weight [ i ] [ list ] [ j ] [ 1 ] != 0 ) {\n h -> use_weight_chroma = 1 ;\n h -> chroma_weight_flag [ list ] = 1 ;\n }\n }\n }\n else {\n int j ;\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n h -> chroma_weight [ i ] [ list ] [ j ] [ 0 ] = chroma_def ;\n h -> chroma_weight [ i ] [ list ] [ j ] [ 1 ] = 0 ;\n }\n }\n }\n }\n if ( h -> slice_type_nos != AV_PICTURE_TYPE_B ) break ;\n }\n h -> use_weight = h -> use_weight || h -> use_weight_chroma ;\n return 0 ;\n }"}
{"idx": 8332, "target": 0, "func": "static inline double U_EXPORT2 utimer_getElapsedSeconds ( UTimer * timer ) {\n UTimer temp ;\n utimer_getTime ( & temp ) ;\n return uprv_delta ( timer , & temp ) ;\n }"}
{"idx": 8333, "target": 0, "func": "void show_progress ( int frame_in , int frame_out , uint64_t dx_time ) {\n fprintf ( stderr , \"%d decoded frames/%d showed frames in %\" PRId64 \" us (%.2f fps)\\r\" , frame_in , frame_out , dx_time , ( double ) frame_out * 1000000.0 / ( double ) dx_time ) ;\n }"}
{"idx": 8334, "target": 0, "func": "char * fz_rendering_intent_name ( int ri ) {\n if ( ri >= 0 && ri < nelem ( fz_intent_names ) ) return ( char * ) fz_intent_names [ ri ] ;\n return \"RelativeColorimetric\" ;\n }"}
{"idx": 8335, "target": 0, "func": "static void * get_delta ( struct object_entry * entry ) {\n unsigned long size , base_size , delta_size ;\n void * buf , * base_buf , * delta_buf ;\n enum object_type type ;\n buf = read_sha1_file ( entry -> idx . sha1 , & type , & size ) ;\n if ( ! buf ) die ( \"unable to read %s\" , sha1_to_hex ( entry -> idx . sha1 ) ) ;\n base_buf = read_sha1_file ( entry -> delta -> idx . sha1 , & type , & base_size ) ;\n if ( ! base_buf ) die ( \"unable to read %s\" , sha1_to_hex ( entry -> delta -> idx . sha1 ) ) ;\n delta_buf = diff_delta ( base_buf , base_size , buf , size , & delta_size , 0 ) ;\n if ( ! delta_buf || delta_size != entry -> delta_size ) die ( \"delta size changed\" ) ;\n free ( buf ) ;\n free ( base_buf ) ;\n return delta_buf ;\n }"}
{"idx": 8336, "target": 0, "func": "static gcry_err_code_t pkcs1_decode_for_encryption ( unsigned char * * r_result , size_t * r_resultlen , unsigned int nbits , gcry_mpi_t value ) {\n gcry_error_t err ;\n unsigned char * frame = NULL ;\n size_t nframe = ( nbits + 7 ) / 8 ;\n size_t n ;\n * r_result = NULL ;\n if ( ! ( frame = gcry_malloc_secure ( nframe ) ) ) return gpg_err_code_from_syserror ( ) ;\n err = gcry_mpi_print ( GCRYMPI_FMT_USG , frame , nframe , & n , value ) ;\n if ( err ) {\n gcry_free ( frame ) ;\n return gcry_err_code ( err ) ;\n }\n nframe = n ;\n if ( nframe < 4 ) {\n gcry_free ( frame ) ;\n return GPG_ERR_ENCODING_PROBLEM ;\n }\n n = 0 ;\n if ( ! frame [ 0 ] ) n ++ ;\n if ( frame [ n ++ ] != 0x02 ) {\n gcry_free ( frame ) ;\n return GPG_ERR_ENCODING_PROBLEM ;\n }\n for ( ;\n n < nframe && frame [ n ] != 0x00 ;\n n ++ ) ;\n if ( n + 1 >= nframe ) {\n gcry_free ( frame ) ;\n return GPG_ERR_ENCODING_PROBLEM ;\n }\n n ++ ;\n memmove ( frame , frame + n , nframe - n ) ;\n * r_result = frame ;\n * r_resultlen = nframe - n ;\n if ( DBG_CIPHER ) log_printhex ( \"value extracted from PKCS#1 block type 2 encoded data\" , * r_result , * r_resultlen ) ;\n return 0 ;\n }"}
{"idx": 8337, "target": 0, "func": "static int rtp_packetize_g726_40 ( sout_stream_id_sys_t * id , block_t * in ) {\n return rtp_packetize_g726 ( id , in , 8 ) ;\n }"}
{"idx": 8338, "target": 0, "func": "static void U_CALLCONV _UTF16LEFromUnicodeWithOffsets ( UConverterFromUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n UConverter * cnv ;\n const UChar * source ;\n char * target ;\n int32_t * offsets ;\n uint32_t targetCapacity , length , sourceIndex ;\n UChar c , trail ;\n char overflow [ 4 ] ;\n source = pArgs -> source ;\n length = ( int32_t ) ( pArgs -> sourceLimit - source ) ;\n if ( length <= 0 ) {\n return ;\n }\n cnv = pArgs -> converter ;\n if ( cnv -> fromUnicodeStatus == UCNV_NEED_TO_WRITE_BOM ) {\n static const char bom [ ] = {\n ( char ) 0xff , ( char ) 0xfe }\n ;\n ucnv_fromUWriteBytes ( cnv , bom , 2 , & pArgs -> target , pArgs -> targetLimit , & pArgs -> offsets , - 1 , pErrorCode ) ;\n cnv -> fromUnicodeStatus = 0 ;\n }\n target = pArgs -> target ;\n if ( target >= pArgs -> targetLimit ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n return ;\n }\n targetCapacity = ( uint32_t ) ( pArgs -> targetLimit - pArgs -> target ) ;\n offsets = pArgs -> offsets ;\n sourceIndex = 0 ;\n if ( ( c = ( UChar ) cnv -> fromUChar32 ) != 0 && U16_IS_TRAIL ( trail = * source ) && targetCapacity >= 4 ) {\n ++ source ;\n -- length ;\n target [ 0 ] = ( uint8_t ) c ;\n target [ 1 ] = ( uint8_t ) ( c >> 8 ) ;\n target [ 2 ] = ( uint8_t ) trail ;\n target [ 3 ] = ( uint8_t ) ( trail >> 8 ) ;\n target += 4 ;\n targetCapacity -= 4 ;\n if ( offsets != NULL ) {\n * offsets ++ = - 1 ;\n * offsets ++ = - 1 ;\n * offsets ++ = - 1 ;\n * offsets ++ = - 1 ;\n }\n sourceIndex = 1 ;\n cnv -> fromUChar32 = c = 0 ;\n }\n if ( c == 0 ) {\n uint32_t count = 2 * length ;\n if ( count > targetCapacity ) {\n count = targetCapacity & ~ 1 ;\n }\n targetCapacity -= count ;\n count >>= 1 ;\n length -= count ;\n if ( offsets == NULL ) {\n while ( count > 0 ) {\n c = * source ++ ;\n if ( U16_IS_SINGLE ( c ) ) {\n target [ 0 ] = ( uint8_t ) c ;\n target [ 1 ] = ( uint8_t ) ( c >> 8 ) ;\n target += 2 ;\n }\n else if ( U16_IS_SURROGATE_LEAD ( c ) && count >= 2 && U16_IS_TRAIL ( trail = * source ) ) {\n ++ source ;\n -- count ;\n target [ 0 ] = ( uint8_t ) c ;\n target [ 1 ] = ( uint8_t ) ( c >> 8 ) ;\n target [ 2 ] = ( uint8_t ) trail ;\n target [ 3 ] = ( uint8_t ) ( trail >> 8 ) ;\n target += 4 ;\n }\n else {\n break ;\n }\n -- count ;\n }\n }\n else {\n while ( count > 0 ) {\n c = * source ++ ;\n if ( U16_IS_SINGLE ( c ) ) {\n target [ 0 ] = ( uint8_t ) c ;\n target [ 1 ] = ( uint8_t ) ( c >> 8 ) ;\n target += 2 ;\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ++ ;\n }\n else if ( U16_IS_SURROGATE_LEAD ( c ) && count >= 2 && U16_IS_TRAIL ( trail = * source ) ) {\n ++ source ;\n -- count ;\n target [ 0 ] = ( uint8_t ) c ;\n target [ 1 ] = ( uint8_t ) ( c >> 8 ) ;\n target [ 2 ] = ( uint8_t ) trail ;\n target [ 3 ] = ( uint8_t ) ( trail >> 8 ) ;\n target += 4 ;\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ;\n sourceIndex += 2 ;\n }\n else {\n break ;\n }\n -- count ;\n }\n }\n if ( count == 0 ) {\n if ( length > 0 && targetCapacity > 0 ) {\n if ( U16_IS_SINGLE ( c = * source ++ ) ) {\n overflow [ 0 ] = ( char ) c ;\n overflow [ 1 ] = ( char ) ( c >> 8 ) ;\n length = 2 ;\n c = 0 ;\n }\n }\n else {\n length = 0 ;\n c = 0 ;\n }\n }\n else {\n targetCapacity += 2 * count ;\n }\n }\n else {\n length = 0 ;\n }\n if ( c != 0 ) {\n length = 0 ;\n if ( U16_IS_SURROGATE_LEAD ( c ) ) {\n if ( source < pArgs -> sourceLimit ) {\n if ( U16_IS_TRAIL ( trail = * source ) ) {\n ++ source ;\n overflow [ 0 ] = ( char ) c ;\n overflow [ 1 ] = ( char ) ( c >> 8 ) ;\n overflow [ 2 ] = ( char ) trail ;\n overflow [ 3 ] = ( char ) ( trail >> 8 ) ;\n length = 4 ;\n c = 0 ;\n }\n else {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n else {\n }\n }\n else {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n }\n cnv -> fromUChar32 = c ;\n }\n if ( length > 0 ) {\n ucnv_fromUWriteBytes ( cnv , overflow , length , & target , pArgs -> targetLimit , & offsets , sourceIndex , pErrorCode ) ;\n targetCapacity = ( uint32_t ) ( pArgs -> targetLimit - ( char * ) target ) ;\n }\n if ( U_SUCCESS ( * pErrorCode ) && source < pArgs -> sourceLimit && targetCapacity == 0 ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n pArgs -> source = source ;\n pArgs -> target = target ;\n pArgs -> offsets = offsets ;\n }"}
{"idx": 8339, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n VBDecContext * const c = avctx -> priv_data ;\n uint8_t * outptr , * srcptr ;\n int i , j , ret ;\n int flags ;\n uint32_t size ;\n int offset = 0 ;\n bytestream2_init ( & c -> stream , avpkt -> data , avpkt -> size ) ;\n if ( c -> pic . data [ 0 ] ) avctx -> release_buffer ( avctx , & c -> pic ) ;\n c -> pic . reference = 1 ;\n if ( ( ret = ff_get_buffer ( avctx , & c -> pic ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n flags = bytestream2_get_le16 ( & c -> stream ) ;\n if ( flags & VB_HAS_GMC ) {\n i = ( int16_t ) bytestream2_get_le16 ( & c -> stream ) ;\n j = ( int16_t ) bytestream2_get_le16 ( & c -> stream ) ;\n offset = i + j * avctx -> width ;\n }\n if ( flags & VB_HAS_VIDEO ) {\n size = bytestream2_get_le32 ( & c -> stream ) ;\n vb_decode_framedata ( c , offset ) ;\n bytestream2_skip ( & c -> stream , size - 4 ) ;\n }\n if ( flags & VB_HAS_PALETTE ) {\n size = bytestream2_get_le32 ( & c -> stream ) ;\n vb_decode_palette ( c , size ) ;\n }\n memcpy ( c -> pic . data [ 1 ] , c -> pal , AVPALETTE_SIZE ) ;\n c -> pic . palette_has_changed = flags & VB_HAS_PALETTE ;\n outptr = c -> pic . data [ 0 ] ;\n srcptr = c -> frame ;\n for ( i = 0 ;\n i < avctx -> height ;\n i ++ ) {\n memcpy ( outptr , srcptr , avctx -> width ) ;\n srcptr += avctx -> width ;\n outptr += c -> pic . linesize [ 0 ] ;\n }\n FFSWAP ( uint8_t * , c -> frame , c -> prev_frame ) ;\n * got_frame = 1 ;\n * ( AVFrame * ) data = c -> pic ;\n return avpkt -> size ;\n }"}
{"idx": 8340, "target": 0, "func": "static void rd_pick_sb_modes ( VP9_COMP * cpi , const TileInfo * const tile , int mi_row , int mi_col , int * totalrate , int64_t * totaldist , BLOCK_SIZE bsize , PICK_MODE_CONTEXT * ctx , int64_t best_rd , int block ) {\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCK * const x = & cpi -> mb ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n MB_MODE_INFO * mbmi ;\n struct macroblock_plane * const p = x -> plane ;\n struct macroblockd_plane * const pd = xd -> plane ;\n const AQ_MODE aq_mode = cpi -> oxcf . aq_mode ;\n int i , orig_rdmult ;\n double rdmult_ratio ;\n vp9_clear_system_state ( ) ;\n rdmult_ratio = 1.0 ;\n x -> use_lp32x32fdct = 1 ;\n if ( bsize < BLOCK_8X8 ) {\n if ( block != 0 ) {\n * totalrate = 0 ;\n * totaldist = 0 ;\n return ;\n }\n }\n set_offsets ( cpi , tile , mi_row , mi_col , bsize ) ;\n mbmi = & xd -> mi [ 0 ] . src_mi -> mbmi ;\n mbmi -> sb_type = bsize ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n ++ i ) {\n p [ i ] . coeff = ctx -> coeff_pbuf [ i ] [ 0 ] ;\n p [ i ] . qcoeff = ctx -> qcoeff_pbuf [ i ] [ 0 ] ;\n pd [ i ] . dqcoeff = ctx -> dqcoeff_pbuf [ i ] [ 0 ] ;\n p [ i ] . eobs = ctx -> eobs_pbuf [ i ] [ 0 ] ;\n }\n ctx -> is_coded = 0 ;\n ctx -> skippable = 0 ;\n x -> skip_recode = 0 ;\n mbmi -> skip = 0 ;\n x -> source_variance = get_sby_perpixel_variance ( cpi , & x -> plane [ 0 ] . src , bsize ) ;\n orig_rdmult = x -> rdmult ;\n if ( aq_mode == VARIANCE_AQ ) {\n const int energy = bsize <= BLOCK_16X16 ? x -> mb_energy : vp9_block_energy ( cpi , x , bsize ) ;\n if ( cm -> frame_type == KEY_FRAME || cpi -> refresh_alt_ref_frame || ( cpi -> refresh_golden_frame && ! cpi -> rc . is_src_frame_alt_ref ) ) {\n mbmi -> segment_id = vp9_vaq_segment_id ( energy ) ;\n }\n else {\n const uint8_t * const map = cm -> seg . update_map ? cpi -> segmentation_map : cm -> last_frame_seg_map ;\n mbmi -> segment_id = vp9_get_segment_id ( cm , map , bsize , mi_row , mi_col ) ;\n }\n rdmult_ratio = vp9_vaq_rdmult_ratio ( energy ) ;\n vp9_init_plane_quantizers ( cpi , x ) ;\n vp9_clear_system_state ( ) ;\n x -> rdmult = ( int ) round ( x -> rdmult * rdmult_ratio ) ;\n }\n else if ( aq_mode == COMPLEXITY_AQ ) {\n const int mi_offset = mi_row * cm -> mi_cols + mi_col ;\n unsigned char complexity = cpi -> complexity_map [ mi_offset ] ;\n const int is_edge = ( mi_row <= 1 ) || ( mi_row >= ( cm -> mi_rows - 2 ) ) || ( mi_col <= 1 ) || ( mi_col >= ( cm -> mi_cols - 2 ) ) ;\n if ( ! is_edge && ( complexity > 128 ) ) x -> rdmult += ( ( x -> rdmult * ( complexity - 128 ) ) / 256 ) ;\n }\n else if ( aq_mode == CYCLIC_REFRESH_AQ ) {\n const uint8_t * const map = cm -> seg . update_map ? cpi -> segmentation_map : cm -> last_frame_seg_map ;\n if ( vp9_get_segment_id ( cm , map , bsize , mi_row , mi_col ) ) x -> rdmult = vp9_cyclic_refresh_get_rdmult ( cpi -> cyclic_refresh ) ;\n }\n if ( frame_is_intra_only ( cm ) ) {\n vp9_rd_pick_intra_mode_sb ( cpi , x , totalrate , totaldist , bsize , ctx , best_rd ) ;\n }\n else {\n if ( bsize >= BLOCK_8X8 ) {\n if ( vp9_segfeature_active ( & cm -> seg , mbmi -> segment_id , SEG_LVL_SKIP ) ) vp9_rd_pick_inter_mode_sb_seg_skip ( cpi , x , totalrate , totaldist , bsize , ctx , best_rd ) ;\n else vp9_rd_pick_inter_mode_sb ( cpi , x , tile , mi_row , mi_col , totalrate , totaldist , bsize , ctx , best_rd ) ;\n }\n else {\n vp9_rd_pick_inter_mode_sub8x8 ( cpi , x , tile , mi_row , mi_col , totalrate , totaldist , bsize , ctx , best_rd ) ;\n }\n }\n x -> rdmult = orig_rdmult ;\n if ( aq_mode == VARIANCE_AQ && * totalrate != INT_MAX ) {\n vp9_clear_system_state ( ) ;\n * totalrate = ( int ) round ( * totalrate * rdmult_ratio ) ;\n }\n }"}
{"idx": 8341, "target": 0, "func": "void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 ) sadMxN ( 16 , 32 ) sadMxNx4D ( 16 , 32 ) sadMxN ( 16 , 16 ) sadMxNxK ( 16 , 16 , 3 ) sadMxNxK ( 16 , 16 , 8 ) sadMxNx4D ( 16 , 16 ) sadMxN ( 16 , 8 ) sadMxNxK ( 16 , 8 , 3 ) sadMxNxK ( 16 , 8 , 8 ) sadMxNx4D ( 16 , 8 ) sadMxN ( 8 , 16 ) sadMxNxK ( 8 , 16 , 3 )"}
{"idx": 8342, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( DownloadExtensionTest , MAYBE_DownloadExtensionTest_OnDeterminingFilename_ReservedFilename ) {\n GoOnTheRecord ( ) ;\n LoadExtension ( \"downloads_split\" ) ;\n AddFilenameDeterminer ( ) ;\n ASSERT_TRUE ( StartEmbeddedTestServer ( ) ) ;\n std : : string download_url = embedded_test_server ( ) -> GetURL ( \"/slow?0\" ) . spec ( ) ;\n std : : unique_ptr < base : : Value > result ( RunFunctionAndReturnResult ( new DownloadsDownloadFunction ( ) , base : : StringPrintf ( \"[{\n\\\"url\\\": \\\"%s\\\"}\n]\" , download_url . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( result . get ( ) ) ;\n int result_id = - 1 ;\n ASSERT_TRUE ( result -> GetAsInteger ( & result_id ) ) ;\n DownloadItem * item = GetCurrentManager ( ) -> GetDownload ( result_id ) ;\n ASSERT_TRUE ( item ) ;\n ScopedCancellingItem canceller ( item ) ;\n ASSERT_EQ ( download_url , item -> GetOriginalUrl ( ) . spec ( ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnCreated : : kEventName , base : : StringPrintf ( \"[{\n\\\"danger\\\": \\\"safe\\\",\" \" \\\"incognito\\\": false,\" \" \\\"id\\\": %d,\" \" \\\"mime\\\": \\\"text/plain\\\",\" \" \\\"paused\\\": false,\" \" \\\"url\\\": \\\"%s\\\"}\n]\" , result_id , download_url . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnDeterminingFilename : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"filename\\\":\\\"slow.txt\\\"}\n]\" , result_id ) ) ) ;\n ASSERT_TRUE ( item -> GetTargetFilePath ( ) . empty ( ) ) ;\n ASSERT_EQ ( DownloadItem : : IN_PROGRESS , item -> GetState ( ) ) ;\n std : : string error ;\n ASSERT_FALSE ( ExtensionDownloadsEventRouter : : DetermineFilename ( browser ( ) -> profile ( ) , false , GetExtensionId ( ) , result_id , base : : FilePath ( FILE_PATH_LITERAL ( \"con.foo\" ) ) , downloads : : FILENAME_CONFLICT_ACTION_UNIQUIFY , & error ) ) ;\n EXPECT_STREQ ( errors : : kInvalidFilename , error . c_str ( ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnChanged : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"filename\\\": {\n\" \" \\\"previous\\\": \\\"\\\",\" \" \\\"current\\\": \\\"%s\\\"}\n}\n]\" , result_id , GetFilename ( \"slow.txt\" ) . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnChanged : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"state\\\": {\n\" \" \\\"previous\\\": \\\"in_progress\\\",\" \" \\\"current\\\": \\\"complete\\\"}\n}\n]\" , result_id ) ) ) ;\n }"}
{"idx": 8343, "target": 0, "func": "void exsltSaxonRegister ( void ) {\n xsltRegisterExtModule ( SAXON_NAMESPACE , ( xsltExtInitFunction ) exsltSaxonInit , ( xsltExtShutdownFunction ) exsltSaxonShutdown ) ;\n xsltRegisterExtModuleFunction ( ( const xmlChar * ) \"expression\" , SAXON_NAMESPACE , exsltSaxonExpressionFunction ) ;\n xsltRegisterExtModuleFunction ( ( const xmlChar * ) \"eval\" , SAXON_NAMESPACE , exsltSaxonEvalFunction ) ;\n xsltRegisterExtModuleFunction ( ( const xmlChar * ) \"evaluate\" , SAXON_NAMESPACE , exsltSaxonEvaluateFunction ) ;\n xsltRegisterExtModuleFunction ( ( const xmlChar * ) \"line-number\" , SAXON_NAMESPACE , exsltSaxonLineNumberFunction ) ;\n xsltRegisterExtModuleFunction ( ( const xmlChar * ) \"systemId\" , SAXON_NAMESPACE , exsltSaxonSystemIdFunction ) ;\n }"}
{"idx": 8344, "target": 0, "func": "char * TSMatcherLineName ( TSMatcherLine ml , int element ) {\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) ml ) == TS_SUCCESS ) ;\n return ( ( ( matcher_line * ) ml ) -> line ) [ 0 ] [ element ] ;\n }"}
{"idx": 8345, "target": 0, "func": "int kvm_device_intx_set_mask ( KVMState * s , uint32_t dev_id , bool masked ) {\n struct kvm_assigned_pci_dev dev_data = {\n . assigned_dev_id = dev_id , . flags = masked ? KVM_DEV_ASSIGN_MASK_INTX : 0 , }\n ;\n return kvm_vm_ioctl ( s , KVM_ASSIGN_SET_INTX_MASK , & dev_data ) ;\n }"}
{"idx": 8346, "target": 0, "func": "Selectivity rowcomparesel ( PlannerInfo * root , RowCompareExpr * clause , int varRelid , JoinType jointype , SpecialJoinInfo * sjinfo ) {\n Selectivity s1 ;\n Oid opno = linitial_oid ( clause -> opnos ) ;\n Oid inputcollid = linitial_oid ( clause -> inputcollids ) ;\n List * opargs ;\n bool is_join_clause ;\n opargs = list_make2 ( linitial ( clause -> largs ) , linitial ( clause -> rargs ) ) ;\n if ( varRelid != 0 ) {\n is_join_clause = false ;\n }\n else if ( sjinfo == NULL ) {\n is_join_clause = false ;\n }\n else {\n is_join_clause = ( NumRelids ( ( Node * ) opargs ) > 1 ) ;\n }\n if ( is_join_clause ) {\n s1 = join_selectivity ( root , opno , opargs , inputcollid , jointype , sjinfo ) ;\n }\n else {\n s1 = restriction_selectivity ( root , opno , opargs , inputcollid , varRelid ) ;\n }\n return s1 ;\n }"}
{"idx": 8347, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( DownloadNotificationTest , DownloadMultipleFilesOneByOne ) {\n CreateDownload ( ) ;\n download : : DownloadItem * first_download_item = download_item ( ) ;\n std : : string first_notification_id = notification_id ( ) ;\n CompleteTheDownload ( ) ;\n EXPECT_EQ ( download : : DownloadItem : : COMPLETE , first_download_item -> GetState ( ) ) ;\n EXPECT_TRUE ( notification ( ) ) ;\n GURL url ( net : : URLRequestSlowDownloadJob : : kKnownSizeUrl ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , url ) ;\n WaitForDownloadNotification ( ) ;\n auto notifications = GetDownloadNotifications ( ) ;\n ASSERT_EQ ( 2u , notifications . size ( ) ) ;\n std : : string second_notification_id = notifications [ ( notifications [ 0 ] . id ( ) == notification_id ( ) ? 1 : 0 ) ] . id ( ) ;\n EXPECT_FALSE ( second_notification_id . empty ( ) ) ;\n ASSERT_TRUE ( GetNotification ( second_notification_id ) ) ;\n std : : vector < download : : DownloadItem * > downloads ;\n GetDownloadManager ( browser ( ) ) -> GetAllDownloads ( & downloads ) ;\n EXPECT_EQ ( 2u , downloads . size ( ) ) ;\n EXPECT_TRUE ( first_download_item == downloads [ 0 ] || first_download_item == downloads [ 1 ] ) ;\n download : : DownloadItem * second_download_item = downloads [ first_download_item == downloads [ 0 ] ? 1 : 0 ] ;\n EXPECT_EQ ( download : : DownloadItem : : IN_PROGRESS , second_download_item -> GetState ( ) ) ;\n CompleteTheDownload ( ) ;\n EXPECT_EQ ( 2u , GetDownloadNotifications ( ) . size ( ) ) ;\n }"}
{"idx": 8348, "target": 0, "func": "static const gchar * get_control_selector_name ( guint8 entity_id , guint8 control_sel , usb_conv_info_t * usb_conv_info ) {\n const gchar * control_name = NULL ;\n value_string_ext * selectors = NULL ;\n selectors = get_control_selector_values ( entity_id , usb_conv_info ) ;\n if ( selectors ) control_name = try_val_to_str_ext ( control_sel , selectors ) ;\n return control_name ;\n }"}
{"idx": 8349, "target": 0, "func": "static PK11SymKey * import_symmetric_key ( struct crypto_instance * instance , enum sym_key_type key_type ) {\n SECItem key_item ;\n PK11SlotInfo * slot ;\n PK11SymKey * res_key ;\n CK_MECHANISM_TYPE cipher ;\n CK_ATTRIBUTE_TYPE operation ;\n CK_MECHANISM_TYPE wrap_mechanism ;\n int wrap_key_len ;\n PK11SymKey * wrap_key ;\n PK11Context * wrap_key_crypt_context ;\n SECItem tmp_sec_item ;\n SECItem wrapped_key ;\n int wrapped_key_len ;\n unsigned char wrapped_key_data [ MAX_WRAPPED_KEY_LEN ] ;\n int case_processed ;\n memset ( & key_item , 0 , sizeof ( key_item ) ) ;\n slot = NULL ;\n wrap_key = NULL ;\n res_key = NULL ;\n wrap_key_crypt_context = NULL ;\n key_item . type = siBuffer ;\n key_item . data = instance -> private_key ;\n case_processed = 0 ;\n switch ( key_type ) {\n case SYM_KEY_TYPE_CRYPT : key_item . len = cipher_key_len [ instance -> crypto_cipher_type ] ;\n cipher = cipher_to_nss [ instance -> crypto_cipher_type ] ;\n operation = CKA_ENCRYPT | CKA_DECRYPT ;\n case_processed = 1 ;\n break ;\n case SYM_KEY_TYPE_HASH : key_item . len = instance -> private_key_len ;\n cipher = hash_to_nss [ instance -> crypto_hash_type ] ;\n operation = CKA_SIGN ;\n case_processed = 1 ;\n break ;\n }\n if ( ! case_processed ) {\n log_printf ( instance -> log_level_error , \"Unknown key_type\" ) ;\n goto exit_res_key ;\n }\n slot = PK11_GetBestSlot ( cipher , NULL ) ;\n if ( slot == NULL ) {\n log_printf ( instance -> log_level_security , \"Unable to find security slot (%d): %s\" , PR_GetError ( ) , PR_ErrorToString ( PR_GetError ( ) , PR_LANGUAGE_I_DEFAULT ) ) ;\n goto exit_res_key ;\n }\n wrap_mechanism = PK11_GetBestWrapMechanism ( slot ) ;\n wrap_key_len = PK11_GetBestKeyLength ( slot , wrap_mechanism ) ;\n wrap_key = PK11_KeyGen ( slot , wrap_mechanism , NULL , wrap_key_len , NULL ) ;\n if ( wrap_key == NULL ) {\n log_printf ( instance -> log_level_security , \"Unable to generate wrapping key (%d): %s\" , PR_GetError ( ) , PR_ErrorToString ( PR_GetError ( ) , PR_LANGUAGE_I_DEFAULT ) ) ;\n goto exit_res_key ;\n }\n memset ( & tmp_sec_item , 0 , sizeof ( tmp_sec_item ) ) ;\n wrap_key_crypt_context = PK11_CreateContextBySymKey ( wrap_mechanism , CKA_ENCRYPT , wrap_key , & tmp_sec_item ) ;\n if ( wrap_key_crypt_context == NULL ) {\n log_printf ( instance -> log_level_security , \"Unable to create encrypt context (%d): %s\" , PR_GetError ( ) , PR_ErrorToString ( PR_GetError ( ) , PR_LANGUAGE_I_DEFAULT ) ) ;\n goto exit_res_key ;\n }\n wrapped_key_len = ( int ) sizeof ( wrapped_key_data ) ;\n if ( PK11_CipherOp ( wrap_key_crypt_context , wrapped_key_data , & wrapped_key_len , sizeof ( wrapped_key_data ) , key_item . data , key_item . len ) != SECSuccess ) {\n log_printf ( instance -> log_level_security , \"Unable to encrypt authkey (%d): %s\" , PR_GetError ( ) , PR_ErrorToString ( PR_GetError ( ) , PR_LANGUAGE_I_DEFAULT ) ) ;\n goto exit_res_key ;\n }\n if ( PK11_Finalize ( wrap_key_crypt_context ) != SECSuccess ) {\n log_printf ( instance -> log_level_security , \"Unable to finalize encryption of authkey (%d): %s\" , PR_GetError ( ) , PR_ErrorToString ( PR_GetError ( ) , PR_LANGUAGE_I_DEFAULT ) ) ;\n goto exit_res_key ;\n }\n memset ( & tmp_sec_item , 0 , sizeof ( tmp_sec_item ) ) ;\n wrapped_key . data = wrapped_key_data ;\n wrapped_key . len = wrapped_key_len ;\n res_key = PK11_UnwrapSymKey ( wrap_key , wrap_mechanism , & tmp_sec_item , & wrapped_key , cipher , operation , key_item . len ) ;\n if ( res_key == NULL ) {\n log_printf ( instance -> log_level_security , \"Failure to import key into NSS (%d): %s\" , PR_GetError ( ) , PR_ErrorToString ( PR_GetError ( ) , PR_LANGUAGE_I_DEFAULT ) ) ;\n goto exit_res_key ;\n }\n exit_res_key : if ( wrap_key_crypt_context != NULL ) {\n PK11_DestroyContext ( wrap_key_crypt_context , PR_TRUE ) ;\n }\n if ( wrap_key != NULL ) {\n PK11_FreeSymKey ( wrap_key ) ;\n }\n if ( slot != NULL ) {\n PK11_FreeSlot ( slot ) ;\n }\n return ( res_key ) ;\n }"}
{"idx": 8350, "target": 0, "func": "static void read_bitdepth_colorspace_sampling ( VP9_COMMON * cm , struct vp9_read_bit_buffer * rb ) {\n if ( cm -> profile >= PROFILE_2 ) cm -> bit_depth = vp9_rb_read_bit ( rb ) ? VPX_BITS_12 : VPX_BITS_10 ;\n cm -> color_space = ( COLOR_SPACE ) vp9_rb_read_literal ( rb , 3 ) ;\n if ( cm -> color_space != SRGB ) {\n vp9_rb_read_bit ( rb ) ;\n if ( cm -> profile == PROFILE_1 || cm -> profile == PROFILE_3 ) {\n cm -> subsampling_x = vp9_rb_read_bit ( rb ) ;\n cm -> subsampling_y = vp9_rb_read_bit ( rb ) ;\n if ( cm -> subsampling_x == 1 && cm -> subsampling_y == 1 ) vpx_internal_error ( & cm -> error , VPX_CODEC_UNSUP_BITSTREAM , \"4:2:0 color not supported in profile 1 or 3\" ) ;\n if ( vp9_rb_read_bit ( rb ) ) vpx_internal_error ( & cm -> error , VPX_CODEC_UNSUP_BITSTREAM , \"Reserved bit set\" ) ;\n }\n else {\n cm -> subsampling_y = cm -> subsampling_x = 1 ;\n }\n }\n else {\n if ( cm -> profile == PROFILE_1 || cm -> profile == PROFILE_3 ) {\n cm -> subsampling_y = cm -> subsampling_x = 0 ;\n if ( vp9_rb_read_bit ( rb ) ) vpx_internal_error ( & cm -> error , VPX_CODEC_UNSUP_BITSTREAM , \"Reserved bit set\" ) ;\n }\n else {\n vpx_internal_error ( & cm -> error , VPX_CODEC_UNSUP_BITSTREAM , \"4:4:4 color not supported in profile 0 or 2\" ) ;\n }\n }\n }"}
{"idx": 8351, "target": 0, "func": "static int dissect_h225_AdmissionConfirm ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_AdmissionConfirm , AdmissionConfirm_sequence ) ;\n return offset ;\n }"}
{"idx": 8352, "target": 0, "func": "static void dissect_zcl_part_multiack ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n guint tvb_len = tvb_reported_length ( tvb ) ;\n guint i = 0 ;\n guint8 options ;\n guint16 first_frame_id ;\n guint16 nack_id ;\n static const int * ack_opts [ ] = {\n & hf_zbee_zcl_part_ack_opt_nack_id_len , & hf_zbee_zcl_part_ack_opt_res , NULL }\n ;\n options = tvb_get_guint8 ( tvb , * offset ) ;\n proto_tree_add_bitmask ( tree , tvb , * offset , hf_zbee_zcl_part_ack_opt , ett_zbee_zcl_part_ack_opts , ack_opts , ENC_NA ) ;\n * offset += 1 ;\n if ( ( options & ZBEE_ZCL_PART_ACK_OPT_NACK_LEN ) == 0 ) {\n first_frame_id = ( guint16 ) tvb_get_guint8 ( tvb , * offset ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_part_first_frame_id , tvb , * offset , 1 , ( first_frame_id & 0xFF ) ) ;\n * offset += 1 ;\n }\n else {\n first_frame_id = tvb_get_letohs ( tvb , * offset ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_part_first_frame_id , tvb , * offset , 2 , first_frame_id ) ;\n * offset += 2 ;\n }\n while ( * offset < tvb_len && i < ZBEE_ZCL_PART_NUM_NACK_ID_ETT ) {\n if ( ( options & ZBEE_ZCL_PART_ACK_OPT_NACK_LEN ) == 0 ) {\n nack_id = ( guint16 ) tvb_get_guint8 ( tvb , * offset ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_part_nack_id , tvb , * offset , 1 , ( nack_id & 0xFF ) ) ;\n * offset += 1 ;\n }\n else {\n nack_id = tvb_get_letohs ( tvb , * offset ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_part_nack_id , tvb , * offset , 2 , nack_id ) ;\n * offset += 2 ;\n }\n i ++ ;\n }\n }"}
{"idx": 8353, "target": 0, "func": "const char * netbios_name_type_descr ( int name_type ) {\n return val_to_str_ext_const ( name_type , & nb_name_type_vals_ext , \"Unknown\" ) ;\n }"}
{"idx": 8354, "target": 0, "func": "static void * Type_U16Fixed16_Dup ( struct _cms_typehandler_struct * self , const void * Ptr , cmsUInt32Number n ) {\n return _cmsDupMem ( self -> ContextID , Ptr , n * sizeof ( cmsFloat64Number ) ) ;\n }"}
{"idx": 8355, "target": 0, "func": "static void make_error_message ( char * buf , size_t len , const char * fmt , va_list args ) {\n char * s = buf , * end = buf + len ;\n s += my_snprintf ( s , end - s , \"mysqltest: \" ) ;\n if ( cur_file && cur_file != file_stack ) {\n s += my_snprintf ( s , end - s , \"In included file \\\"%s\\\": \\n\" , cur_file -> file_name ) ;\n s += print_file_stack ( s , end ) ;\n }\n if ( start_lineno > 0 ) s += my_snprintf ( s , end - s , \"At line %u: \" , start_lineno ) ;\n if ( ! fmt ) fmt = \"unknown error\" ;\n s += my_vsnprintf ( s , end - s , fmt , args ) ;\n s += my_snprintf ( s , end - s , \"\\n\" , start_lineno ) ;\n }"}
{"idx": 8356, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ContentSettingBubbleDialogTest , InvokeDialog_mediastream_mic ) {\n RunDialog ( ) ;\n }"}
{"idx": 8357, "target": 0, "func": "static int get_image_bps ( const vpx_image_t * img ) {\n switch ( img -> fmt ) {\n case VPX_IMG_FMT_YV12 : case VPX_IMG_FMT_I420 : return 12 ;\n case VPX_IMG_FMT_I422 : return 16 ;\n case VPX_IMG_FMT_I444 : return 24 ;\n case VPX_IMG_FMT_I42016 : return 24 ;\n case VPX_IMG_FMT_I42216 : return 32 ;\n case VPX_IMG_FMT_I44416 : return 48 ;\n default : assert ( 0 && \"Invalid image format\" ) ;\n break ;\n }\n return 0 ;\n }"}
{"idx": 8358, "target": 0, "func": "static bool ps2_keyboard_ledstate_needed ( void * opaque ) {\n PS2KbdState * s = opaque ;\n return s -> ledstate != 0 ;\n }"}
{"idx": 8359, "target": 0, "func": "int dissect_ber_real ( gboolean implicit_tag , asn1_ctx_t * actx , proto_tree * tree , tvbuff_t * tvb , int offset , gint hf_id _U_ , double * value ) {\n gint8 ber_class ;\n gboolean pc ;\n gint32 tag ;\n guint32 val_length = 0 , len_remain , end_offset ;\n double val = 0 ;\n proto_item * cause ;\n if ( ! implicit_tag ) {\n offset = dissect_ber_identifier ( actx -> pinfo , tree , tvb , offset , & ber_class , & pc , & tag ) ;\n offset = dissect_ber_length ( actx -> pinfo , tree , tvb , offset , & val_length , NULL ) ;\n end_offset = offset + val_length ;\n }\n else {\n get_last_ber_identifier ( & ber_class , & pc , & tag ) ;\n get_last_ber_length ( & val_length , NULL ) ;\n end_offset = offset + val_length ;\n len_remain = ( guint32 ) tvb_reported_length_remaining ( tvb , offset ) ;\n if ( len_remain < val_length ) {\n cause = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset , val_length , \"illegal_length\" , \"length:%u longer than tvb_reported_length_remaining:%d\" , val_length , len_remain ) ;\n expert_add_info ( actx -> pinfo , cause , & ei_ber_error_length ) ;\n return end_offset ;\n }\n }\n if ( pc ) {\n cause = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset - 2 , 1 , \"wrong_tag\" , \"REAL class must be encoded as primitive\" ) ;\n expert_add_info ( actx -> pinfo , cause , & ei_ber_error_length ) ;\n }\n val = asn1_get_real ( tvb_get_ptr ( tvb , offset , val_length ) , val_length ) ;\n actx -> created_item = proto_tree_add_double ( tree , hf_id , tvb , end_offset - val_length , val_length , val ) ;\n if ( value ) * value = val ;\n return end_offset ;\n }"}
{"idx": 8360, "target": 0, "func": "static int run_warning ( CommonJob * job , char * primary_text , char * secondary_text , const char * details_text , gboolean show_all , ... ) {\n va_list varargs ;\n int res ;\n va_start ( varargs , show_all ) ;\n res = run_simple_dialog_va ( job , FALSE , GTK_MESSAGE_WARNING , primary_text , secondary_text , details_text , show_all , varargs ) ;\n va_end ( varargs ) ;\n return res ;\n }"}
{"idx": 8361, "target": 0, "func": "static void xhci_port_write ( void * ptr , hwaddr reg , uint64_t val , unsigned size ) {\n XHCIPort * port = ptr ;\n uint32_t portsc , notify ;\n trace_usb_xhci_port_write ( port -> portnr , reg , val ) ;\n switch ( reg ) {\n case 0x00 : if ( val & PORTSC_WPR ) {\n xhci_port_reset ( port , true ) ;\n break ;\n }\n if ( val & PORTSC_PR ) {\n xhci_port_reset ( port , false ) ;\n break ;\n }\n portsc = port -> portsc ;\n notify = 0 ;\n portsc &= ~ ( val & ( PORTSC_CSC | PORTSC_PEC | PORTSC_WRC | PORTSC_OCC | PORTSC_PRC | PORTSC_PLC | PORTSC_CEC ) ) ;\n if ( val & PORTSC_LWS ) {\n uint32_t old_pls = get_field ( port -> portsc , PORTSC_PLS ) ;\n uint32_t new_pls = get_field ( val , PORTSC_PLS ) ;\n switch ( new_pls ) {\n case PLS_U0 : if ( old_pls != PLS_U0 ) {\n set_field ( & portsc , new_pls , PORTSC_PLS ) ;\n trace_usb_xhci_port_link ( port -> portnr , new_pls ) ;\n notify = PORTSC_PLC ;\n }\n break ;\n case PLS_U3 : if ( old_pls < PLS_U3 ) {\n set_field ( & portsc , new_pls , PORTSC_PLS ) ;\n trace_usb_xhci_port_link ( port -> portnr , new_pls ) ;\n }\n break ;\n case PLS_RESUME : break ;\n default : DPRINTF ( \"%s: ignore pls write (old %d, new %d)\\n\" , __func__ , old_pls , new_pls ) ;\n break ;\n }\n }\n portsc &= ~ ( PORTSC_PP | PORTSC_WCE | PORTSC_WDE | PORTSC_WOE ) ;\n portsc |= ( val & ( PORTSC_PP | PORTSC_WCE | PORTSC_WDE | PORTSC_WOE ) ) ;\n port -> portsc = portsc ;\n if ( notify ) {\n xhci_port_notify ( port , notify ) ;\n }\n break ;\n case 0x04 : case 0x08 : default : trace_usb_xhci_unimplemented ( \"port write\" , reg ) ;\n }\n }"}
{"idx": 8362, "target": 0, "func": "TEST_F ( WebFrameSimTest , TestScrollFocusedEditableElementIntoView ) {\n WebView ( ) . Resize ( WebSize ( 500 , 300 ) ) ;\n WebView ( ) . SetDefaultPageScaleLimits ( 1.f , 4 ) ;\n WebView ( ) . EnableFakePageScaleAnimationForTesting ( true ) ;\n WebView ( ) . GetPage ( ) -> GetSettings ( ) . SetTextAutosizingEnabled ( false ) ;\n WebView ( ) . GetPage ( ) -> GetSettings ( ) . SetViewportEnabled ( false ) ;\n WebView ( ) . GetSettings ( ) -> SetAutoZoomFocusedNodeToLegibleScale ( true ) ;\n SimRequest request ( \"https://example.com/test.html\" , \"text/html\" ) ;\n LoadURL ( \"https://example.com/test.html\" ) ;\n request . Complete ( R \"HTML( < ! DOCTYPE html > < style > : : - webkit - scrollbar {\n width : 0px ;\n height : 0px ;\n }\n body {\n margin : 0px ;\n }\n input {\n border : 0 ;\n padding : 0 ;\n position : absolute ;\n left : 200px ;\n top : 600px ;\n width : 100px ;\n height : 20px ;\n }\n # content {\n background : silver ;\n width : 500px ;\n height : 600px ;\n }\n < / style > < div id = \"content\" > a < / div > < input type = \"text\" > ) HTML \");\n Compositor ( ) . BeginFrame ( ) ;\n WebView ( ) . AdvanceFocus ( false ) ;\n LocalFrame * frame = ToLocalFrame ( WebView ( ) . GetPage ( ) -> MainFrame ( ) ) ;\n LocalFrameView * frame_view = frame -> View ( ) ;\n VisualViewport & visual_viewport = frame -> GetPage ( ) -> GetVisualViewport ( ) ;\n FloatRect inputRect ( 200 , 600 , 100 , 20 ) ;\n frame_view -> GetScrollableArea ( ) -> SetScrollOffset ( ScrollOffset ( 0 , 0 ) , kProgrammaticScroll ) ;\n ASSERT_EQ ( FloatPoint ( ) , visual_viewport . VisibleRectInDocument ( ) . Location ( ) ) ;\n WebView ( ) . MainFrameImpl ( ) -> FrameWidget ( ) -> ScrollFocusedEditableElementIntoView ( ) ;\n EXPECT_EQ ( 1 , WebView ( ) . FakePageScaleAnimationPageScaleForTesting ( ) ) ;\n frame_view -> LayoutViewport ( ) -> SetScrollOffset ( ToFloatSize ( FloatPoint ( WebView ( ) . FakePageScaleAnimationTargetPositionForTesting ( ) ) ) , kProgrammaticScroll ) ;\n EXPECT_TRUE ( visual_viewport . VisibleRectInDocument ( ) . Contains ( inputRect ) ) ;\n WebView ( ) . EnableFakePageScaleAnimationForTesting ( true ) ;\n WebView ( ) . MainFrameImpl ( ) -> FrameWidget ( ) -> ScrollFocusedEditableElementIntoView ( ) ;\n EXPECT_EQ ( 0 , WebView ( ) . FakePageScaleAnimationPageScaleForTesting ( ) ) ;\n EXPECT_EQ ( IntPoint ( ) , WebView ( ) . FakePageScaleAnimationTargetPositionForTesting ( ) ) ;\n WebView ( ) . ResizeVisualViewport ( IntSize ( 200 , 100 ) ) ;\n ASSERT_FALSE ( visual_viewport . VisibleRectInDocument ( ) . Contains ( inputRect ) ) ;\n WebView ( ) . MainFrameImpl ( ) -> FrameWidget ( ) -> ScrollFocusedEditableElementIntoView ( ) ;\n frame_view -> GetScrollableArea ( ) -> SetScrollOffset ( ToFloatSize ( FloatPoint ( WebView ( ) . FakePageScaleAnimationTargetPositionForTesting ( ) ) ) , kProgrammaticScroll ) ;\n EXPECT_TRUE ( visual_viewport . VisibleRectInDocument ( ) . Contains ( inputRect ) ) ;\n EXPECT_EQ ( 1 , WebView ( ) . FakePageScaleAnimationPageScaleForTesting ( ) ) ;\n }"}
{"idx": 8363, "target": 0, "func": "static inline void IRQ_resetbit ( IRQQueue * q , int n_IRQ ) {\n clear_bit ( n_IRQ , q -> queue ) ;\n }"}
{"idx": 8364, "target": 0, "func": "static void pdf_run_dquote ( fz_context * ctx , pdf_processor * proc , float aw , float ac , char * string , int string_len ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_gstate * gstate = pr -> gstate + pr -> gtop ;\n gstate -> text . word_space = aw ;\n gstate -> text . char_space = ac ;\n pdf_tos_newline ( & pr -> tos , gstate -> text . leading ) ;\n pdf_show_string ( ctx , pr , ( unsigned char * ) string , string_len ) ;\n }"}
{"idx": 8365, "target": 0, "func": "static int file_compare_by_mime_type ( NautilusFile * file_a , NautilusFile * file_b ) {\n char * mime_type_a , * mime_type_b ;\n int ret ;\n mime_type_a = nautilus_file_get_mime_type ( file_a ) ;\n mime_type_b = nautilus_file_get_mime_type ( file_b ) ;\n ret = strcmp ( mime_type_a , mime_type_b ) ;\n g_free ( mime_type_a ) ;\n g_free ( mime_type_b ) ;\n return ret ;\n }"}
{"idx": 8366, "target": 0, "func": "static void print_blob_as_hex ( FILE * output_file , const char * str , ulong len ) {\n const char * ptr = str , * end = ptr + len ;\n for ( ;\n ptr < end ;\n ptr ++ ) fprintf ( output_file , \"%02X\" , * ( ( uchar * ) ptr ) ) ;\n check_io ( output_file ) ;\n }"}
{"idx": 8367, "target": 0, "func": "RegProcedure get_oprjoin ( Oid opno ) {\n HeapTuple tp ;\n tp = SearchSysCache1 ( OPEROID , ObjectIdGetDatum ( opno ) ) ;\n if ( HeapTupleIsValid ( tp ) ) {\n Form_pg_operator optup = ( Form_pg_operator ) GETSTRUCT ( tp ) ;\n RegProcedure result ;\n result = optup -> oprjoin ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }\n else return ( RegProcedure ) InvalidOid ;\n }"}
{"idx": 8368, "target": 0, "func": "void pdf_drop_processor ( fz_context * ctx , pdf_processor * proc ) {\n if ( proc ) {\n if ( proc -> close_processor ) fz_warn ( ctx , \"dropping unclosed PDF processor\" ) ;\n if ( proc -> drop_processor ) proc -> drop_processor ( ctx , proc ) ;\n }\n fz_free ( ctx , proc ) ;\n }"}
{"idx": 8369, "target": 0, "func": "static int dissect_h245_OLC_fw_lcn ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_h245_LogicalChannelNumber ( tvb , offset , actx , tree , hf_index ) ;\n # line 163 \"../../asn1/h245/h245.cnf\" if ( upcoming_olc ) upcoming_olc -> fwd_lc_num = h245_lc_temp ;\n h223_fw_lc_num = h245_lc_temp ;\n return offset ;\n }"}
{"idx": 8370, "target": 0, "func": "int tls1_mac ( SSL * ssl , unsigned char * md , int send ) {\n SSL3_RECORD * rec ;\n unsigned char * seq ;\n EVP_MD_CTX * hash ;\n size_t md_size , orig_len ;\n int i ;\n EVP_MD_CTX hmac , * mac_ctx ;\n unsigned char header [ 13 ] ;\n int stream_mac = ( send ? ( ssl -> mac_flags & SSL_MAC_FLAG_WRITE_MAC_STREAM ) : ( ssl -> mac_flags & SSL_MAC_FLAG_READ_MAC_STREAM ) ) ;\n int t ;\n if ( send ) {\n rec = & ( ssl -> s3 -> wrec ) ;\n seq = & ( ssl -> s3 -> write_sequence [ 0 ] ) ;\n hash = ssl -> write_hash ;\n }\n else {\n rec = & ( ssl -> s3 -> rrec ) ;\n seq = & ( ssl -> s3 -> read_sequence [ 0 ] ) ;\n hash = ssl -> read_hash ;\n }\n t = EVP_MD_CTX_size ( hash ) ;\n OPENSSL_assert ( t >= 0 ) ;\n md_size = t ;\n if ( stream_mac ) {\n mac_ctx = hash ;\n }\n else {\n EVP_MD_CTX_copy ( & hmac , hash ) ;\n mac_ctx = & hmac ;\n }\n if ( ssl -> version == DTLS1_VERSION || ssl -> version == DTLS1_BAD_VER ) {\n unsigned char dtlsseq [ 8 ] , * p = dtlsseq ;\n s2n ( send ? ssl -> d1 -> w_epoch : ssl -> d1 -> r_epoch , p ) ;\n memcpy ( p , & seq [ 2 ] , 6 ) ;\n memcpy ( header , dtlsseq , 8 ) ;\n }\n else memcpy ( header , seq , 8 ) ;\n orig_len = rec -> length + md_size + ( ( unsigned int ) rec -> type >> 8 ) ;\n rec -> type &= 0xff ;\n header [ 8 ] = rec -> type ;\n header [ 9 ] = ( unsigned char ) ( ssl -> version >> 8 ) ;\n header [ 10 ] = ( unsigned char ) ( ssl -> version ) ;\n header [ 11 ] = ( rec -> length ) >> 8 ;\n header [ 12 ] = ( rec -> length ) & 0xff ;\n if ( ! send && EVP_CIPHER_CTX_mode ( ssl -> enc_read_ctx ) == EVP_CIPH_CBC_MODE && ssl3_cbc_record_digest_supported ( mac_ctx ) ) {\n ssl3_cbc_digest_record ( mac_ctx , md , & md_size , header , rec -> input , rec -> length + md_size , orig_len , ssl -> s3 -> read_mac_secret , ssl -> s3 -> read_mac_secret_size , 0 ) ;\n }\n else {\n EVP_DigestSignUpdate ( mac_ctx , header , sizeof ( header ) ) ;\n EVP_DigestSignUpdate ( mac_ctx , rec -> input , rec -> length ) ;\n t = EVP_DigestSignFinal ( mac_ctx , md , & md_size ) ;\n OPENSSL_assert ( t > 0 ) ;\n # ifdef OPENSSL_FIPS if ( ! send && FIPS_mode ( ) ) tls_fips_digest_extra ( ssl -> enc_read_ctx , mac_ctx , rec -> input , rec -> length , orig_len ) ;\n # endif }\n if ( ! stream_mac ) EVP_MD_CTX_cleanup ( & hmac ) ;\n # ifdef TLS_DEBUG printf ( \"sec=\" ) ;\n {\n unsigned int z ;\n for ( z = 0 ;\n z < md_size ;\n z ++ ) printf ( \"%02X \" , mac_sec [ z ] ) ;\n printf ( \"\\n\" ) ;\n }\n printf ( \"seq=\" ) ;\n {\n int z ;\n for ( z = 0 ;\n z < 8 ;\n z ++ ) printf ( \"%02X \" , seq [ z ] ) ;\n printf ( \"\\n\" ) ;\n }\n printf ( \"buf=\" ) ;\n {\n int z ;\n for ( z = 0 ;\n z < 5 ;\n z ++ ) printf ( \"%02X \" , buf [ z ] ) ;\n printf ( \"\\n\" ) ;\n }\n printf ( \"rec=\" ) ;\n {\n unsigned int z ;\n for ( z = 0 ;\n z < rec -> length ;\n z ++ ) printf ( \"%02X \" , buf [ z ] ) ;\n printf ( \"\\n\" ) ;\n }\n # endif if ( ssl -> version != DTLS1_VERSION && ssl -> version != DTLS1_BAD_VER ) {\n for ( i = 7 ;\n i >= 0 ;\n i -- ) {\n ++ seq [ i ] ;\n if ( seq [ i ] != 0 ) break ;\n }\n }\n # ifdef TLS_DEBUG {\n unsigned int z ;\n for ( z = 0 ;\n z < md_size ;\n z ++ ) printf ( \"%02X \" , md [ z ] ) ;\n printf ( \"\\n\" ) ;\n }\n # endif return ( md_size ) ;\n }"}
{"idx": 8371, "target": 0, "func": "void jpc_ft_invlift_colgrp ( jpc_fix_t * a , int numrows , int stride , int parity ) {\n jpc_fix_t * lptr ;\n jpc_fix_t * hptr ;\n register jpc_fix_t * lptr2 ;\n register jpc_fix_t * hptr2 ;\n register int n ;\n register int i ;\n int llen ;\n llen = ( numrows + 1 - parity ) >> 1 ;\n if ( numrows > 1 ) {\n lptr = & a [ 0 ] ;\n hptr = & a [ llen * stride ] ;\n if ( ! parity ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n lptr2 [ 0 ] -= jpc_fix_asr ( hptr2 [ 0 ] + 1 , 1 ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n lptr += stride ;\n }\n n = llen - ( ! parity ) - ( parity != ( numrows & 1 ) ) ;\n while ( n -- > 0 ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n lptr2 [ 0 ] -= jpc_fix_asr ( hptr2 [ 0 ] + hptr2 [ stride ] + 2 , 2 ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n lptr += stride ;\n hptr += stride ;\n }\n if ( parity != ( numrows & 1 ) ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n lptr2 [ 0 ] -= jpc_fix_asr ( hptr2 [ 0 ] + 1 , 1 ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n }\n lptr = & a [ 0 ] ;\n hptr = & a [ llen * stride ] ;\n if ( parity ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n hptr2 [ 0 ] += lptr2 [ 0 ] ;\n ++ hptr2 ;\n ++ lptr2 ;\n }\n hptr += stride ;\n }\n n = numrows - llen - parity - ( parity == ( numrows & 1 ) ) ;\n while ( n -- > 0 ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n hptr2 [ 0 ] += jpc_fix_asr ( lptr2 [ 0 ] + lptr2 [ stride ] , 1 ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n hptr += stride ;\n lptr += stride ;\n }\n if ( parity == ( numrows & 1 ) ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n hptr2 [ 0 ] += lptr2 [ 0 ] ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n }\n }\n else {\n if ( parity ) {\n lptr2 = & a [ 0 ] ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n lptr2 [ 0 ] = jpc_fix_asr ( lptr2 [ 0 ] , 1 ) ;\n ++ lptr2 ;\n }\n }\n }\n }"}
{"idx": 8372, "target": 0, "func": "static void prplcb_conv_write ( PurpleConversation * conv , const char * who , const char * alias , const char * message , PurpleMessageFlags flags , time_t mtime ) {\n if ( flags & PURPLE_MESSAGE_SEND ) {\n handle_conv_msg ( conv , who , message , OPT_SELFMESSAGE , mtime ) ;\n }\n }"}
{"idx": 8373, "target": 0, "func": "static int g722_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n G722Context * c = avctx -> priv_data ;\n AVFrame * frame = data ;\n int16_t * out_buf ;\n int j , ret ;\n const int skip = 8 - c -> bits_per_codeword ;\n const int16_t * quantizer_table = low_inv_quants [ skip ] ;\n GetBitContext gb ;\n frame -> nb_samples = avpkt -> size * 2 ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n out_buf = ( int16_t * ) frame -> data [ 0 ] ;\n init_get_bits ( & gb , avpkt -> data , avpkt -> size * 8 ) ;\n for ( j = 0 ;\n j < avpkt -> size ;\n j ++ ) {\n int ilow , ihigh , rlow , rhigh , dhigh ;\n int xout1 , xout2 ;\n ihigh = get_bits ( & gb , 2 ) ;\n ilow = get_bits ( & gb , 6 - skip ) ;\n skip_bits ( & gb , skip ) ;\n rlow = av_clip ( ( c -> band [ 0 ] . scale_factor * quantizer_table [ ilow ] >> 10 ) + c -> band [ 0 ] . s_predictor , - 16384 , 16383 ) ;\n ff_g722_update_low_predictor ( & c -> band [ 0 ] , ilow >> ( 2 - skip ) ) ;\n dhigh = c -> band [ 1 ] . scale_factor * ff_g722_high_inv_quant [ ihigh ] >> 10 ;\n rhigh = av_clip ( dhigh + c -> band [ 1 ] . s_predictor , - 16384 , 16383 ) ;\n ff_g722_update_high_predictor ( & c -> band [ 1 ] , dhigh , ihigh ) ;\n c -> prev_samples [ c -> prev_samples_pos ++ ] = rlow + rhigh ;\n c -> prev_samples [ c -> prev_samples_pos ++ ] = rlow - rhigh ;\n ff_g722_apply_qmf ( c -> prev_samples + c -> prev_samples_pos - 24 , & xout1 , & xout2 ) ;\n * out_buf ++ = av_clip_int16 ( xout1 >> 11 ) ;\n * out_buf ++ = av_clip_int16 ( xout2 >> 11 ) ;\n if ( c -> prev_samples_pos >= PREV_SAMPLES_BUF_SIZE ) {\n memmove ( c -> prev_samples , c -> prev_samples + c -> prev_samples_pos - 22 , 22 * sizeof ( c -> prev_samples [ 0 ] ) ) ;\n c -> prev_samples_pos = 22 ;\n }\n }\n * got_frame_ptr = 1 ;\n return avpkt -> size ;\n }"}
{"idx": 8374, "target": 0, "func": "static char * StrStr ( char * s1 , const char * s2 ) {\n char * Str1 ;\n char * Str2 ;\n const char * Ptr ;\n char * ret = NULL ;\n Str1 = strdup ( s1 ) ;\n if ( ! Str1 ) goto error1 ;\n Str2 = strdup ( s2 ) ;\n if ( ! Str2 ) goto error2 ;\n ToUpperCase ( Str1 ) ;\n ToUpperCase ( Str2 ) ;\n Ptr = strstr ( Str1 , Str2 ) ;\n if ( ! Ptr ) ret = NULL ;\n else ret = s1 + ( Ptr - Str1 ) ;\n free ( Str2 ) ;\n error2 : free ( Str1 ) ;\n error1 : return ret ;\n }"}
{"idx": 8375, "target": 1, "func": "int uwsgi_php_init ( void ) {\n struct uwsgi_string_list * pset = uphp . set ;\n struct uwsgi_string_list * append_config = uphp . append_config ;\n # ifdef ZTS tsrm_startup ( 1 , 1 , 0 , NULL ) ;\n # endif sapi_startup ( & uwsgi_sapi_module ) ;\n while ( append_config ) {\n uwsgi_php_append_config ( append_config -> value ) ;\n append_config = append_config -> next ;\n }\n while ( pset ) {\n uwsgi_php_set ( pset -> value ) ;\n pset = pset -> next ;\n }\n if ( uphp . dump_config ) {\n uwsgi_log ( \"--- PHP custom config ---\\n\\n\" ) ;\n uwsgi_log ( \"%s\\n\" , uwsgi_sapi_module . ini_entries ) ;\n uwsgi_log ( \"--- end of PHP custom config ---\\n\" ) ;\n }\n if ( uphp . docroot ) {\n char * orig_docroot = uphp . docroot ;\n uphp . docroot = uwsgi_expand_path ( uphp . docroot , strlen ( uphp . docroot ) , NULL ) ;\n if ( ! uphp . docroot ) {\n uwsgi_log ( \"unable to set php docroot to %s\\n\" , orig_docroot ) ;\n exit ( 1 ) ;\n }\n }\n if ( uphp . sapi_name ) {\n uwsgi_sapi_module . name = uphp . sapi_name ;\n }\n uwsgi_sapi_module . startup ( & uwsgi_sapi_module ) ;\n uwsgi_log ( \"PHP %s initialized\\n\" , PHP_VERSION ) ;\n return 0 ;\n }"}
{"idx": 8376, "target": 0, "func": "const char * dbug_print_item ( Item * item ) {\n char * buf = dbug_item_print_buf ;\n String str ( buf , sizeof ( dbug_item_print_buf ) , & my_charset_bin ) ;\n str . length ( 0 ) ;\n if ( ! item ) return \"(Item*)NULL\" ;\n item -> print ( & str , QT_ORDINARY ) ;\n if ( str . c_ptr ( ) == buf ) return buf ;\n else return \"Couldn't fit into buffer\" ;\n }"}
{"idx": 8377, "target": 0, "func": "void vp9_rc_get_one_pass_vbr_params ( VP9_COMP * cpi ) {\n VP9_COMMON * const cm = & cpi -> common ;\n RATE_CONTROL * const rc = & cpi -> rc ;\n int target ;\n if ( ! cpi -> refresh_alt_ref_frame && ( cm -> current_video_frame == 0 || ( cpi -> frame_flags & FRAMEFLAGS_KEY ) || rc -> frames_to_key == 0 || ( cpi -> oxcf . auto_key && 0 ) ) ) {\n cm -> frame_type = KEY_FRAME ;\n rc -> this_key_frame_forced = cm -> current_video_frame != 0 && rc -> frames_to_key == 0 ;\n rc -> frames_to_key = cpi -> oxcf . key_freq ;\n rc -> kf_boost = DEFAULT_KF_BOOST ;\n rc -> source_alt_ref_active = 0 ;\n }\n else {\n cm -> frame_type = INTER_FRAME ;\n }\n if ( rc -> frames_till_gf_update_due == 0 ) {\n rc -> baseline_gf_interval = DEFAULT_GF_INTERVAL ;\n rc -> frames_till_gf_update_due = rc -> baseline_gf_interval ;\n if ( rc -> frames_till_gf_update_due > rc -> frames_to_key ) rc -> frames_till_gf_update_due = rc -> frames_to_key ;\n cpi -> refresh_golden_frame = 1 ;\n rc -> source_alt_ref_pending = USE_ALTREF_FOR_ONE_PASS ;\n rc -> gfu_boost = DEFAULT_GF_BOOST ;\n }\n if ( cm -> frame_type == KEY_FRAME ) target = calc_iframe_target_size_one_pass_vbr ( cpi ) ;\n else target = calc_pframe_target_size_one_pass_vbr ( cpi ) ;\n vp9_rc_set_frame_target ( cpi , target ) ;\n }"}
{"idx": 8378, "target": 0, "func": "void proto_deregister_field ( const int parent , gint hf_id ) {\n header_field_info * hfi ;\n protocol_t * proto ;\n guint i ;\n g_free ( last_field_name ) ;\n last_field_name = NULL ;\n if ( hf_id == - 1 || hf_id == 0 ) return ;\n proto = find_protocol_by_id ( parent ) ;\n if ( ! proto || proto -> fields -> len == 0 ) {\n return ;\n }\n for ( i = 0 ;\n i < proto -> fields -> len ;\n i ++ ) {\n hfi = ( header_field_info * ) g_ptr_array_index ( proto -> fields , i ) ;\n if ( hfi -> id == hf_id ) {\n g_hash_table_steal ( gpa_name_map , hfi -> abbrev ) ;\n g_ptr_array_remove_index_fast ( proto -> fields , i ) ;\n g_ptr_array_add ( deregistered_fields , gpa_hfinfo . hfi [ hf_id ] ) ;\n return ;\n }\n }\n }"}
{"idx": 8379, "target": 0, "func": "IN_PROC_BROWSER_TEST_P ( BrowserCloseManagerBrowserTest , PRE_TestSessionRestore ) {\n ASSERT_NO_FATAL_FAILURE ( ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/beforeunload.html\" ) ) ) ;\n AddBlankTabAndShow ( browser ( ) ) ;\n ASSERT_NO_FATAL_FAILURE ( ui_test_utils : : NavigateToURL ( browser ( ) , GURL ( chrome : : kChromeUIAboutURL ) ) ) ;\n PrepareForDialog ( browser ( ) ) ;\n RepeatedNotificationObserver cancel_observer ( chrome : : NOTIFICATION_BROWSER_CLOSE_CANCELLED , 1 ) ;\n chrome : : CloseAllBrowsersAndQuit ( ) ;\n ASSERT_NO_FATAL_FAILURE ( CancelClose ( ) ) ;\n cancel_observer . Wait ( ) ;\n EXPECT_FALSE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n browser ( ) -> tab_strip_model ( ) -> CloseWebContentsAt ( 1 , TabStripModel : : CLOSE_USER_GESTURE ) ;\n content : : TestNavigationObserver navigation_observer ( browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) , 1 ) ;\n ASSERT_NO_FATAL_FAILURE ( NavigateToURLWithDisposition ( browser ( ) , GURL ( chrome : : kChromeUIVersionURL ) , WindowOpenDisposition : : CURRENT_TAB , ui_test_utils : : BROWSER_TEST_NONE ) ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n navigation_observer . Wait ( ) ;\n RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , 1 ) ;\n chrome : : CloseAllBrowsersAndQuit ( ) ;\n close_observer . Wait ( ) ;\n EXPECT_TRUE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_TRUE ( BrowserList : : GetInstance ( ) -> empty ( ) ) ;\n }"}
{"idx": 8380, "target": 0, "func": "static void test_select ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n char szData [ 25 ] ;\n int nData = 1 ;\n MYSQL_BIND my_bind [ 2 ] ;\n ulong length [ 2 ] ;\n char query [ MAX_TEST_QUERY_LENGTH ] ;\n myheader ( \"test_select\" ) ;\n rc = mysql_autocommit ( mysql , TRUE ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_select\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_select(id int, name varchar(50))\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_select VALUES(10, 'venu')\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_select VALUES(20, 'mysql')\" ) ;\n myquery ( rc ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n strmov ( query , \"SELECT * FROM test_select WHERE id= ? \" \"AND CONVERT(name USING utf8) =?\" ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 2 ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n nData = 10 ;\n strmov ( szData , ( char * ) \"venu\" ) ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 1 ] . buffer = ( void * ) szData ;\n my_bind [ 1 ] . buffer_length = 4 ;\n my_bind [ 1 ] . length = & length [ 1 ] ;\n length [ 1 ] = 4 ;\n my_bind [ 0 ] . buffer = ( void * ) & nData ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( rc == 1 ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 8381, "target": 0, "func": "VALUE rb_dlhandle_sym ( VALUE self , VALUE sym ) {\n void ( * func ) ( ) ;\n struct dl_handle * dlhandle ;\n void * handle ;\n const char * name ;\n const char * err ;\n int i ;\n # if defined ( HAVE_DLERROR ) # define CHECK_DLERROR if ( err = dlerror ( ) ) {\n func = 0 ;\n }\n # else # define CHECK_DLERROR # endif rb_secure ( 2 ) ;\n name = SafeStringValuePtr ( sym ) ;\n Data_Get_Struct ( self , struct dl_handle , dlhandle ) ;\n if ( ! dlhandle -> open ) {\n rb_raise ( rb_eDLError , \"closed handle\" ) ;\n }\n handle = dlhandle -> ptr ;\n func = dlsym ( handle , name ) ;\n CHECK_DLERROR ;\n # if defined ( FUNC_STDCALL ) if ( ! func ) {\n int len = strlen ( name ) ;\n char * name_n ;\n # if defined ( __CYGWIN__ ) || defined ( _WIN32 ) || defined ( __MINGW32__ ) {\n char * name_a = ( char * ) xmalloc ( len + 2 ) ;\n strcpy ( name_a , name ) ;\n name_n = name_a ;\n name_a [ len ] = 'A' ;\n name_a [ len + 1 ] = '\\0' ;\n func = dlsym ( handle , name_a ) ;\n CHECK_DLERROR ;\n if ( func ) goto found ;\n name_n = xrealloc ( name_a , len + 6 ) ;\n }\n # else name_n = ( char * ) xmalloc ( len + 6 ) ;\n # endif memcpy ( name_n , name , len ) ;\n name_n [ len ++ ] = '@' ;\n for ( i = 0 ;\n i < 256 ;\n i += 4 ) {\n sprintf ( name_n + len , \"%d\" , i ) ;\n func = dlsym ( handle , name_n ) ;\n CHECK_DLERROR ;\n if ( func ) break ;\n }\n if ( func ) goto found ;\n name_n [ len - 1 ] = 'A' ;\n name_n [ len ++ ] = '@' ;\n for ( i = 0 ;\n i < 256 ;\n i += 4 ) {\n sprintf ( name_n + len , \"%d\" , i ) ;\n func = dlsym ( handle , name_n ) ;\n CHECK_DLERROR ;\n if ( func ) break ;\n }\n found : xfree ( name_n ) ;\n }\n # endif if ( ! func ) {\n rb_raise ( rb_eDLError , \"unknown symbol \\\"%s\\\"\" , name ) ;\n }\n return PTR2NUM ( func ) ;\n }"}
{"idx": 8382, "target": 0, "func": "static int com_clear ( String * buffer , char * line __attribute__ ( ( unused ) ) ) {\n # ifdef HAVE_READLINE if ( status . add_to_history ) fix_history ( buffer ) ;\n # endif buffer -> length ( 0 ) ;\n return 0 ;\n }"}
{"idx": 8383, "target": 0, "func": "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_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_broadcastMyLogicalChannelResponse , T_broadcastMyLogicalChannelResponse_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 8384, "target": 0, "func": "int EndBlob ( Archive * AHX , Oid oid ) {\n ArchiveHandle * AH = ( ArchiveHandle * ) AHX ;\n if ( AH -> EndBlobPtr ) ( * AH -> EndBlobPtr ) ( AH , AH -> currToc , oid ) ;\n return 1 ;\n }"}
{"idx": 8385, "target": 0, "func": "static inline bool is_ra ( hb_codepoint_t u ) {\n for ( unsigned int i = 0 ;\n i < ARRAY_LENGTH ( ra_chars ) ;\n i ++ ) if ( u == ra_chars [ i ] ) return true ;\n return false ;\n }"}
{"idx": 8386, "target": 1, "func": "static char * fstrndup ( const char * ptr , unsigned long len ) {\n char * result ;\n if ( len <= 0 ) return NULL ;\n result = ALLOC_N ( char , len ) ;\n memccpy ( result , ptr , 0 , len ) ;\n return result ;\n }"}
{"idx": 8387, "target": 0, "func": "static int32_t u_printf_scientific_handler ( const u_printf_stream_handler * handler , void * context , ULocaleBundle * formatBundle , const u_printf_spec_info * info , const ufmt_args * args ) {\n double num = ( double ) ( args [ 0 ] . doubleValue ) ;\n UNumberFormat * format ;\n UChar result [ UPRINTF_BUFFER_SIZE ] ;\n UChar prefixBuffer [ UPRINTF_BUFFER_SIZE ] ;\n int32_t prefixBufferLen = sizeof ( prefixBuffer ) ;\n int32_t minDecimalDigits ;\n int32_t maxDecimalDigits ;\n UErrorCode status = U_ZERO_ERROR ;\n UChar srcExpBuf [ UPRINTF_SYMBOL_BUFFER_SIZE ] ;\n int32_t srcLen , expLen ;\n int32_t resultLen ;\n UChar expBuf [ UPRINTF_SYMBOL_BUFFER_SIZE ] ;\n prefixBuffer [ 0 ] = 0 ;\n format = u_locbund_getNumberFormat ( formatBundle , UNUM_SCIENTIFIC ) ;\n if ( format == 0 ) return 0 ;\n srcLen = unum_getSymbol ( format , UNUM_EXPONENTIAL_SYMBOL , srcExpBuf , sizeof ( srcExpBuf ) , & status ) ;\n if ( info -> fSpec == ( UChar ) 0x65 ) {\n expLen = u_strToLower ( expBuf , ( int32_t ) sizeof ( expBuf ) , srcExpBuf , srcLen , formatBundle -> fLocale , & status ) ;\n }\n else {\n expLen = u_strToUpper ( expBuf , ( int32_t ) sizeof ( expBuf ) , srcExpBuf , srcLen , formatBundle -> fLocale , & status ) ;\n }\n unum_setSymbol ( format , UNUM_EXPONENTIAL_SYMBOL , expBuf , expLen , & status ) ;\n minDecimalDigits = unum_getAttribute ( format , UNUM_MIN_FRACTION_DIGITS ) ;\n maxDecimalDigits = unum_getAttribute ( format , UNUM_MAX_FRACTION_DIGITS ) ;\n if ( info -> fPrecision != - 1 ) {\n if ( info -> fOrigSpec == ( UChar ) 0x65 || info -> fOrigSpec == ( UChar ) 0x45 ) {\n unum_setAttribute ( format , UNUM_FRACTION_DIGITS , info -> fPrecision ) ;\n }\n else {\n unum_setAttribute ( format , UNUM_MIN_FRACTION_DIGITS , 1 ) ;\n unum_setAttribute ( format , UNUM_MAX_FRACTION_DIGITS , info -> fPrecision ) ;\n }\n }\n else if ( info -> fAlt ) {\n unum_setAttribute ( format , UNUM_FRACTION_DIGITS , 6 ) ;\n }\n else {\n unum_setAttribute ( format , UNUM_FRACTION_DIGITS , 6 ) ;\n }\n if ( info -> fShowSign ) {\n u_printf_set_sign ( format , info , prefixBuffer , & prefixBufferLen , & status ) ;\n }\n resultLen = unum_formatDouble ( format , num , result , UPRINTF_BUFFER_SIZE , 0 , & status ) ;\n if ( U_FAILURE ( status ) ) {\n resultLen = 0 ;\n }\n unum_setAttribute ( format , UNUM_MIN_FRACTION_DIGITS , minDecimalDigits ) ;\n unum_setAttribute ( format , UNUM_MAX_FRACTION_DIGITS , maxDecimalDigits ) ;\n if ( info -> fShowSign ) {\n UErrorCode localStatus = U_ZERO_ERROR ;\n u_printf_reset_sign ( format , info , prefixBuffer , & prefixBufferLen , & localStatus ) ;\n }\n return handler -> pad_and_justify ( context , info , result , resultLen ) ;\n }"}
{"idx": 8388, "target": 1, "func": "static void model_rd_for_sb ( VP9_COMP * cpi , BLOCK_SIZE bsize , MACROBLOCK * x , MACROBLOCKD * xd , int * out_rate_sum , int64_t * out_dist_sum ) {\n int i ;\n int64_t rate_sum = 0 ;\n int64_t dist_sum = 0 ;\n const int ref = xd -> mi [ 0 ] -> mbmi . ref_frame [ 0 ] ;\n unsigned int sse ;\n unsigned int var = 0 ;\n unsigned int sum_sse = 0 ;\n const int shift = 8 ;\n int rate ;\n int64_t dist ;\n x -> pred_sse [ ref ] = 0 ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n ++ i ) {\n struct macroblock_plane * const p = & x -> plane [ i ] ;\n struct macroblockd_plane * const pd = & xd -> plane [ i ] ;\n const BLOCK_SIZE bs = get_plane_block_size ( bsize , pd ) ;\n const TX_SIZE max_tx_size = max_txsize_lookup [ bs ] ;\n const BLOCK_SIZE unit_size = txsize_to_bsize [ max_tx_size ] ;\n int bw = 1 << ( b_width_log2_lookup [ bs ] - b_width_log2_lookup [ unit_size ] ) ;\n int bh = 1 << ( b_height_log2_lookup [ bs ] - b_width_log2_lookup [ unit_size ] ) ;\n int idx , idy ;\n int lw = b_width_log2_lookup [ unit_size ] + 2 ;\n int lh = b_height_log2_lookup [ unit_size ] + 2 ;\n sum_sse = 0 ;\n for ( idy = 0 ;\n idy < bh ;\n ++ idy ) {\n for ( idx = 0 ;\n idx < bw ;\n ++ idx ) {\n uint8_t * src = p -> src . buf + ( idy * p -> src . stride << lh ) + ( idx << lw ) ;\n uint8_t * dst = pd -> dst . buf + ( idy * pd -> dst . stride << lh ) + ( idx << lh ) ;\n int block_idx = ( idy << 1 ) + idx ;\n var = cpi -> fn_ptr [ unit_size ] . vf ( src , p -> src . stride , dst , pd -> dst . stride , & sse ) ;\n x -> bsse [ ( i << 2 ) + block_idx ] = sse ;\n sum_sse += sse ;\n if ( ! x -> select_tx_size ) {\n if ( x -> bsse [ ( i << 2 ) + block_idx ] < p -> quant_thred [ 0 ] >> shift ) x -> skip_txfm [ ( i << 2 ) + block_idx ] = 1 ;\n else if ( var < p -> quant_thred [ 1 ] >> shift ) x -> skip_txfm [ ( i << 2 ) + block_idx ] = 2 ;\n else x -> skip_txfm [ ( i << 2 ) + block_idx ] = 0 ;\n }\n if ( i == 0 ) x -> pred_sse [ ref ] += sse ;\n }\n }\n if ( cpi -> oxcf . speed > 4 ) {\n int64_t rate ;\n int64_t dist ;\n int64_t square_error = sse ;\n int quantizer = ( pd -> dequant [ 1 ] >> 3 ) ;\n if ( quantizer < 120 ) rate = ( square_error * ( 280 - quantizer ) ) >> 8 ;\n else rate = 0 ;\n dist = ( square_error * quantizer ) >> 8 ;\n rate_sum += rate ;\n dist_sum += dist ;\n }\n else {\n vp9_model_rd_from_var_lapndz ( sum_sse , 1 << num_pels_log2_lookup [ bs ] , pd -> dequant [ 1 ] >> 3 , & rate , & dist ) ;\n rate_sum += rate ;\n dist_sum += dist ;\n }\n }\n * out_rate_sum = ( int ) rate_sum ;\n * out_dist_sum = dist_sum << 4 ;\n }"}
{"idx": 8389, "target": 0, "func": "static void init_bit_tree ( vp9_tree_index * p , int n ) {\n int i = 0 ;\n while ( ++ i < n ) {\n p [ 0 ] = p [ 1 ] = i << 1 ;\n p += 2 ;\n }\n p [ 0 ] = p [ 1 ] = 0 ;\n }"}
{"idx": 8390, "target": 1, "func": "static ossl_inline void lh_ ## type ## _stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING ) ;\n # ifdef _MSC_VER # pragma warning ( push ) # pragma warning ( disable : 4090 ) # endif DEFINE_LHASH_OF ( OPENSSL_CSTRING )"}
{"idx": 8391, "target": 0, "func": "void _cmsAllocMPETypePluginChunk ( struct _cmsContext_struct * ctx , const struct _cmsContext_struct * src ) {\n if ( src != NULL ) {\n DupTagTypeList ( ctx , src , MPEPlugin ) ;\n }\n else {\n static _cmsTagTypePluginChunkType TagTypePluginChunk = {\n NULL }\n ;\n ctx -> chunks [ MPEPlugin ] = _cmsSubAllocDup ( ctx -> MemPool , & TagTypePluginChunk , sizeof ( _cmsTagTypePluginChunkType ) ) ;\n }\n }"}
{"idx": 8392, "target": 0, "func": "static inline int base_key_length ( const cipher_type_t * cipher , int key_length ) {\n switch ( cipher -> id ) {\n case AES_128_ICM : case AES_192_ICM : case AES_256_ICM : return key_length - 14 ;\n break ;\n case AES_128_GCM : return 16 ;\n break ;\n case AES_256_GCM : return 32 ;\n break ;\n default : return key_length ;\n break ;\n }\n }"}
{"idx": 8393, "target": 0, "func": "static int fts_build_add_tokens_with_filter ( struct fts_mail_build_context * ctx , const unsigned char * data , size_t size ) {\n struct fts_tokenizer * tokenizer = ctx -> cur_user_lang -> index_tokenizer ;\n struct fts_filter * filter = ctx -> cur_user_lang -> filter ;\n const char * token , * error ;\n int ret = 1 , ret2 ;\n while ( ret > 0 ) T_BEGIN {\n ret = ret2 = fts_tokenizer_next ( tokenizer , data , size , & token , & error ) ;\n if ( ret2 > 0 && filter != NULL ) ret2 = fts_filter_filter ( filter , & token , & error ) ;\n if ( ret2 < 0 ) i_error ( \"fts: Couldn't create indexable tokens: %s\" , error ) ;\n if ( ret2 > 0 ) {\n if ( fts_backend_update_build_more ( ctx -> update_ctx , ( const void * ) token , strlen ( token ) ) < 0 ) ret = - 1 ;\n }\n }\n T_END ;\n return ret ;\n }"}
{"idx": 8394, "target": 1, "func": "static int mpeg4_decode_partition_a ( MpegEncContext * s ) {\n int mb_num ;\n static const int8_t quant_tab [ 4 ] = {\n - 1 , - 2 , 1 , 2 }\n ;\n mb_num = 0 ;\n s -> first_slice_line = 1 ;\n for ( ;\n s -> mb_y < s -> mb_height ;\n s -> mb_y ++ ) {\n ff_init_block_index ( s ) ;\n for ( ;\n s -> mb_x < s -> mb_width ;\n s -> mb_x ++ ) {\n const int xy = s -> mb_x + s -> mb_y * s -> mb_stride ;\n int cbpc ;\n int dir = 0 ;\n mb_num ++ ;\n ff_update_block_index ( s ) ;\n if ( s -> mb_x == s -> resync_mb_x && s -> mb_y == s -> resync_mb_y + 1 ) s -> first_slice_line = 0 ;\n if ( s -> pict_type == AV_PICTURE_TYPE_I ) {\n int i ;\n do {\n if ( show_bits_long ( & s -> gb , 19 ) == DC_MARKER ) {\n return mb_num - 1 ;\n }\n cbpc = get_vlc2 ( & s -> gb , ff_h263_intra_MCBPC_vlc . table , INTRA_MCBPC_VLC_BITS , 2 ) ;\n if ( cbpc < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"cbpc corrupted at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n }\n while ( cbpc == 8 ) ;\n s -> cbp_table [ xy ] = cbpc & 3 ;\n s -> current_picture . f . mb_type [ xy ] = MB_TYPE_INTRA ;\n s -> mb_intra = 1 ;\n if ( cbpc & 4 ) {\n ff_set_qscale ( s , s -> qscale + quant_tab [ get_bits ( & s -> gb , 2 ) ] ) ;\n }\n s -> current_picture . f . qscale_table [ xy ] = s -> qscale ;\n s -> mbintra_table [ xy ] = 1 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n int dc_pred_dir ;\n int dc = mpeg4_decode_dc ( s , i , & dc_pred_dir ) ;\n if ( dc < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"DC corrupted at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n dir <<= 1 ;\n if ( dc_pred_dir ) dir |= 1 ;\n }\n s -> pred_dir_table [ xy ] = dir ;\n }\n else {\n int mx , my , pred_x , pred_y , bits ;\n int16_t * const mot_val = s -> current_picture . f . motion_val [ 0 ] [ s -> block_index [ 0 ] ] ;\n const int stride = s -> b8_stride * 2 ;\n try_again : bits = show_bits ( & s -> gb , 17 ) ;\n if ( bits == MOTION_MARKER ) {\n return mb_num - 1 ;\n }\n skip_bits1 ( & s -> gb ) ;\n if ( bits & 0x10000 ) {\n if ( s -> pict_type == AV_PICTURE_TYPE_S && s -> vol_sprite_usage == GMC_SPRITE ) {\n s -> current_picture . f . mb_type [ xy ] = MB_TYPE_SKIP | MB_TYPE_16x16 | MB_TYPE_GMC | MB_TYPE_L0 ;\n mx = get_amv ( s , 0 ) ;\n my = get_amv ( s , 1 ) ;\n }\n else {\n s -> current_picture . f . mb_type [ xy ] = MB_TYPE_SKIP | MB_TYPE_16x16 | MB_TYPE_L0 ;\n mx = my = 0 ;\n }\n mot_val [ 0 ] = mot_val [ 2 ] = mot_val [ 0 + stride ] = mot_val [ 2 + stride ] = mx ;\n mot_val [ 1 ] = mot_val [ 3 ] = mot_val [ 1 + stride ] = mot_val [ 3 + stride ] = my ;\n if ( s -> mbintra_table [ xy ] ) ff_clean_intra_table_entries ( s ) ;\n continue ;\n }\n cbpc = get_vlc2 ( & s -> gb , ff_h263_inter_MCBPC_vlc . table , INTER_MCBPC_VLC_BITS , 2 ) ;\n if ( cbpc < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"cbpc corrupted at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n if ( cbpc == 20 ) goto try_again ;\n s -> cbp_table [ xy ] = cbpc & ( 8 + 3 ) ;\n s -> mb_intra = ( ( cbpc & 4 ) != 0 ) ;\n if ( s -> mb_intra ) {\n s -> current_picture . f . mb_type [ xy ] = MB_TYPE_INTRA ;\n s -> mbintra_table [ xy ] = 1 ;\n mot_val [ 0 ] = mot_val [ 2 ] = mot_val [ 0 + stride ] = mot_val [ 2 + stride ] = 0 ;\n mot_val [ 1 ] = mot_val [ 3 ] = mot_val [ 1 + stride ] = mot_val [ 3 + stride ] = 0 ;\n }\n else {\n if ( s -> mbintra_table [ xy ] ) ff_clean_intra_table_entries ( s ) ;\n if ( s -> pict_type == AV_PICTURE_TYPE_S && s -> vol_sprite_usage == GMC_SPRITE && ( cbpc & 16 ) == 0 ) s -> mcsel = get_bits1 ( & s -> gb ) ;\n else s -> mcsel = 0 ;\n if ( ( cbpc & 16 ) == 0 ) {\n ff_h263_pred_motion ( s , 0 , 0 , & pred_x , & pred_y ) ;\n if ( ! s -> mcsel ) {\n mx = ff_h263_decode_motion ( s , pred_x , s -> f_code ) ;\n if ( mx >= 0xffff ) return - 1 ;\n my = ff_h263_decode_motion ( s , pred_y , s -> f_code ) ;\n if ( my >= 0xffff ) return - 1 ;\n s -> current_picture . f . mb_type [ xy ] = MB_TYPE_16x16 | MB_TYPE_L0 ;\n }\n else {\n mx = get_amv ( s , 0 ) ;\n my = get_amv ( s , 1 ) ;\n s -> current_picture . f . mb_type [ xy ] = MB_TYPE_16x16 | MB_TYPE_GMC | MB_TYPE_L0 ;\n }\n mot_val [ 0 ] = mot_val [ 2 ] = mot_val [ 0 + stride ] = mot_val [ 2 + stride ] = mx ;\n mot_val [ 1 ] = mot_val [ 3 ] = mot_val [ 1 + stride ] = mot_val [ 3 + stride ] = my ;\n }\n else {\n int i ;\n s -> current_picture . f . mb_type [ xy ] = MB_TYPE_8x8 | MB_TYPE_L0 ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n int16_t * mot_val = ff_h263_pred_motion ( s , i , 0 , & pred_x , & pred_y ) ;\n mx = ff_h263_decode_motion ( s , pred_x , s -> f_code ) ;\n if ( mx >= 0xffff ) return - 1 ;\n my = ff_h263_decode_motion ( s , pred_y , s -> f_code ) ;\n if ( my >= 0xffff ) return - 1 ;\n mot_val [ 0 ] = mx ;\n mot_val [ 1 ] = my ;\n }\n }\n }\n }\n }\n s -> mb_x = 0 ;\n }\n return mb_num ;\n }"}
{"idx": 8395, "target": 0, "func": "static int ipc_has_perm ( struct kern_ipc_perm * ipc_perms , u32 perms ) {\n struct ipc_security_struct * isec ;\n struct common_audit_data ad ;\n u32 sid = current_sid ( ) ;\n isec = ipc_perms -> security ;\n ad . type = LSM_AUDIT_DATA_IPC ;\n ad . u . ipc_id = ipc_perms -> key ;\n return avc_has_perm ( sid , isec -> sid , isec -> sclass , perms , & ad ) ;\n }"}
{"idx": 8396, "target": 0, "func": "int luaD_poscall ( lua_State * L , StkId firstResult ) {\n StkId res ;\n int wanted , i ;\n CallInfo * ci ;\n if ( L -> hookmask & LUA_MASKRET ) firstResult = callrethooks ( L , firstResult ) ;\n ci = L -> ci -- ;\n res = ci -> func ;\n wanted = ci -> nresults ;\n L -> base = ( ci - 1 ) -> base ;\n L -> savedpc = ( ci - 1 ) -> savedpc ;\n for ( i = wanted ;\n i != 0 && firstResult < L -> top ;\n i -- ) setobjs2s ( L , res ++ , firstResult ++ ) ;\n while ( i -- > 0 ) setnilvalue ( res ++ ) ;\n L -> top = res ;\n return ( wanted - LUA_MULTRET ) ;\n }"}
{"idx": 8397, "target": 0, "func": "static int kex_method_diffie_hellman_group_exchange_sha256_key_exchange ( LIBSSH2_SESSION * session , key_exchange_state_low_t * key_state ) {\n unsigned long p_len , g_len ;\n int ret = 0 ;\n int rc ;\n if ( key_state -> state == libssh2_NB_state_idle ) {\n key_state -> p = _libssh2_bn_init ( ) ;\n key_state -> g = _libssh2_bn_init ( ) ;\n # ifdef LIBSSH2_DH_GEX_NEW key_state -> request [ 0 ] = SSH_MSG_KEX_DH_GEX_REQUEST ;\n _libssh2_htonu32 ( key_state -> request + 1 , LIBSSH2_DH_GEX_MINGROUP ) ;\n _libssh2_htonu32 ( key_state -> request + 5 , LIBSSH2_DH_GEX_OPTGROUP ) ;\n _libssh2_htonu32 ( key_state -> request + 9 , LIBSSH2_DH_GEX_MAXGROUP ) ;\n key_state -> request_len = 13 ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Initiating Diffie-Hellman Group-Exchange (New Method SHA256)\" ) ;\n # else key_state -> request [ 0 ] = SSH_MSG_KEX_DH_GEX_REQUEST_OLD ;\n _libssh2_htonu32 ( key_state -> request + 1 , LIBSSH2_DH_GEX_OPTGROUP ) ;\n key_state -> request_len = 5 ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Initiating Diffie-Hellman Group-Exchange (Old Method SHA256)\" ) ;\n # endif key_state -> state = libssh2_NB_state_created ;\n }\n if ( key_state -> state == libssh2_NB_state_created ) {\n rc = _libssh2_transport_send ( session , key_state -> request , key_state -> request_len , NULL , 0 ) ;\n if ( rc == LIBSSH2_ERROR_EAGAIN ) {\n return rc ;\n }\n else if ( rc ) {\n ret = _libssh2_error ( session , rc , \"Unable to send Group Exchange Request SHA256\" ) ;\n goto dh_gex_clean_exit ;\n }\n key_state -> state = libssh2_NB_state_sent ;\n }\n if ( key_state -> state == libssh2_NB_state_sent ) {\n rc = _libssh2_packet_require ( session , SSH_MSG_KEX_DH_GEX_GROUP , & key_state -> data , & key_state -> data_len , 0 , NULL , 0 , & key_state -> req_state ) ;\n if ( rc == LIBSSH2_ERROR_EAGAIN ) {\n return rc ;\n }\n else if ( rc ) {\n ret = _libssh2_error ( session , rc , \"Timeout waiting for GEX_GROUP reply SHA256\" ) ;\n goto dh_gex_clean_exit ;\n }\n key_state -> state = libssh2_NB_state_sent1 ;\n }\n if ( key_state -> state == libssh2_NB_state_sent1 ) {\n unsigned char * s = key_state -> data + 1 ;\n p_len = _libssh2_ntohu32 ( s ) ;\n s += 4 ;\n _libssh2_bn_from_bin ( key_state -> p , p_len , s ) ;\n s += p_len ;\n g_len = _libssh2_ntohu32 ( s ) ;\n s += 4 ;\n _libssh2_bn_from_bin ( key_state -> g , g_len , s ) ;\n ret = diffie_hellman_sha256 ( session , key_state -> g , key_state -> p , p_len , SSH_MSG_KEX_DH_GEX_INIT , SSH_MSG_KEX_DH_GEX_REPLY , key_state -> data + 1 , key_state -> data_len - 1 , & key_state -> exchange_state ) ;\n if ( ret == LIBSSH2_ERROR_EAGAIN ) {\n return ret ;\n }\n LIBSSH2_FREE ( session , key_state -> data ) ;\n }\n dh_gex_clean_exit : key_state -> state = libssh2_NB_state_idle ;\n _libssh2_bn_free ( key_state -> g ) ;\n key_state -> g = NULL ;\n _libssh2_bn_free ( key_state -> p ) ;\n key_state -> p = NULL ;\n return ret ;\n }"}
{"idx": 8398, "target": 0, "func": "static void show_frame ( WriterContext * w , AVFrame * frame , AVStream * stream , AVFormatContext * fmt_ctx ) {\n AVBPrint pbuf ;\n char val_str [ 128 ] ;\n const char * s ;\n int i ;\n av_bprint_init ( & pbuf , 1 , AV_BPRINT_SIZE_UNLIMITED ) ;\n writer_print_section_header ( w , SECTION_ID_FRAME ) ;\n s = av_get_media_type_string ( stream -> codecpar -> codec_type ) ;\n if ( s ) print_str ( \"media_type\" , s ) ;\n else print_str_opt ( \"media_type\" , \"unknown\" ) ;\n print_int ( \"stream_index\" , stream -> index ) ;\n print_int ( \"key_frame\" , frame -> key_frame ) ;\n print_ts ( \"pkt_pts\" , frame -> pts ) ;\n print_time ( \"pkt_pts_time\" , frame -> pts , & stream -> time_base ) ;\n print_ts ( \"pkt_dts\" , frame -> pkt_dts ) ;\n print_time ( \"pkt_dts_time\" , frame -> pkt_dts , & stream -> time_base ) ;\n print_ts ( \"best_effort_timestamp\" , frame -> best_effort_timestamp ) ;\n print_time ( \"best_effort_timestamp_time\" , frame -> best_effort_timestamp , & stream -> time_base ) ;\n print_duration_ts ( \"pkt_duration\" , frame -> pkt_duration ) ;\n print_duration_time ( \"pkt_duration_time\" , frame -> pkt_duration , & stream -> time_base ) ;\n if ( frame -> pkt_pos != - 1 ) print_fmt ( \"pkt_pos\" , \"%\" PRId64 , frame -> pkt_pos ) ;\n else print_str_opt ( \"pkt_pos\" , \"N/A\" ) ;\n if ( frame -> pkt_size != - 1 ) print_val ( \"pkt_size\" , frame -> pkt_size , unit_byte_str ) ;\n else print_str_opt ( \"pkt_size\" , \"N/A\" ) ;\n switch ( stream -> codecpar -> codec_type ) {\n AVRational sar ;\n case AVMEDIA_TYPE_VIDEO : print_int ( \"width\" , frame -> width ) ;\n print_int ( \"height\" , frame -> height ) ;\n s = av_get_pix_fmt_name ( frame -> format ) ;\n if ( s ) print_str ( \"pix_fmt\" , s ) ;\n else print_str_opt ( \"pix_fmt\" , \"unknown\" ) ;\n sar = av_guess_sample_aspect_ratio ( fmt_ctx , stream , frame ) ;\n if ( sar . num ) {\n print_q ( \"sample_aspect_ratio\" , sar , ':' ) ;\n }\n else {\n print_str_opt ( \"sample_aspect_ratio\" , \"N/A\" ) ;\n }\n print_fmt ( \"pict_type\" , \"%c\" , av_get_picture_type_char ( frame -> pict_type ) ) ;\n print_int ( \"coded_picture_number\" , frame -> coded_picture_number ) ;\n print_int ( \"display_picture_number\" , frame -> display_picture_number ) ;\n print_int ( \"interlaced_frame\" , frame -> interlaced_frame ) ;\n print_int ( \"top_field_first\" , frame -> top_field_first ) ;\n print_int ( \"repeat_pict\" , frame -> repeat_pict ) ;\n if ( frame -> color_range != AVCOL_RANGE_UNSPECIFIED ) print_str ( \"color_range\" , av_color_range_name ( frame -> color_range ) ) ;\n else print_str_opt ( \"color_range\" , av_color_range_name ( frame -> color_range ) ) ;\n if ( frame -> colorspace != AVCOL_SPC_UNSPECIFIED ) print_str ( \"color_space\" , av_color_space_name ( frame -> colorspace ) ) ;\n else print_str_opt ( \"color_space\" , av_color_space_name ( frame -> colorspace ) ) ;\n print_primaries ( w , frame -> color_primaries ) ;\n if ( frame -> color_trc != AVCOL_TRC_UNSPECIFIED ) print_str ( \"color_transfer\" , av_color_transfer_name ( frame -> color_trc ) ) ;\n else print_str_opt ( \"color_transfer\" , av_color_transfer_name ( frame -> color_trc ) ) ;\n if ( frame -> chroma_location != AVCHROMA_LOC_UNSPECIFIED ) print_str ( \"chroma_location\" , av_chroma_location_name ( frame -> chroma_location ) ) ;\n else print_str_opt ( \"chroma_location\" , av_chroma_location_name ( frame -> chroma_location ) ) ;\n break ;\n case AVMEDIA_TYPE_AUDIO : s = av_get_sample_fmt_name ( frame -> format ) ;\n if ( s ) print_str ( \"sample_fmt\" , s ) ;\n else print_str_opt ( \"sample_fmt\" , \"unknown\" ) ;\n print_int ( \"nb_samples\" , frame -> nb_samples ) ;\n print_int ( \"channels\" , frame -> channels ) ;\n if ( frame -> channel_layout ) {\n av_bprint_clear ( & pbuf ) ;\n av_bprint_channel_layout ( & pbuf , frame -> channels , frame -> channel_layout ) ;\n print_str ( \"channel_layout\" , pbuf . str ) ;\n }\n else print_str_opt ( \"channel_layout\" , \"unknown\" ) ;\n break ;\n }\n if ( do_show_frame_tags ) show_tags ( w , frame -> metadata , SECTION_ID_FRAME_TAGS ) ;\n if ( do_show_log ) show_log ( w , SECTION_ID_FRAME_LOGS , SECTION_ID_FRAME_LOG , do_show_log ) ;\n if ( frame -> nb_side_data ) {\n writer_print_section_header ( w , SECTION_ID_FRAME_SIDE_DATA_LIST ) ;\n for ( i = 0 ;\n i < frame -> nb_side_data ;\n i ++ ) {\n AVFrameSideData * sd = frame -> side_data [ i ] ;\n const char * name ;\n writer_print_section_header ( w , SECTION_ID_FRAME_SIDE_DATA ) ;\n name = av_frame_side_data_name ( sd -> type ) ;\n print_str ( \"side_data_type\" , name ? name : \"unknown\" ) ;\n if ( sd -> type == AV_FRAME_DATA_DISPLAYMATRIX && sd -> size >= 9 * 4 ) {\n writer_print_integers ( w , \"displaymatrix\" , sd -> data , 9 , \" %11d\" , 3 , 4 , 1 ) ;\n print_int ( \"rotation\" , av_display_rotation_get ( ( int32_t * ) sd -> data ) ) ;\n }\n else if ( sd -> type == AV_FRAME_DATA_GOP_TIMECODE && sd -> size >= 8 ) {\n char tcbuf [ AV_TIMECODE_STR_SIZE ] ;\n av_timecode_make_mpeg_tc_string ( tcbuf , * ( int64_t * ) ( sd -> data ) ) ;\n print_str ( \"timecode\" , tcbuf ) ;\n }\n else if ( sd -> type == AV_FRAME_DATA_MASTERING_DISPLAY_METADATA ) {\n AVMasteringDisplayMetadata * metadata = ( AVMasteringDisplayMetadata * ) sd -> data ;\n if ( metadata -> has_primaries ) {\n print_q ( \"red_x\" , metadata -> display_primaries [ 0 ] [ 0 ] , '/' ) ;\n print_q ( \"red_y\" , metadata -> display_primaries [ 0 ] [ 1 ] , '/' ) ;\n print_q ( \"green_x\" , metadata -> display_primaries [ 1 ] [ 0 ] , '/' ) ;\n print_q ( \"green_y\" , metadata -> display_primaries [ 1 ] [ 1 ] , '/' ) ;\n print_q ( \"blue_x\" , metadata -> display_primaries [ 2 ] [ 0 ] , '/' ) ;\n print_q ( \"blue_y\" , metadata -> display_primaries [ 2 ] [ 1 ] , '/' ) ;\n print_q ( \"white_point_x\" , metadata -> white_point [ 0 ] , '/' ) ;\n print_q ( \"white_point_y\" , metadata -> white_point [ 1 ] , '/' ) ;\n }\n if ( metadata -> has_luminance ) {\n print_q ( \"min_luminance\" , metadata -> min_luminance , '/' ) ;\n print_q ( \"max_luminance\" , metadata -> max_luminance , '/' ) ;\n }\n }\n else if ( sd -> type == AV_FRAME_DATA_CONTENT_LIGHT_LEVEL ) {\n AVContentLightMetadata * metadata = ( AVContentLightMetadata * ) sd -> data ;\n print_int ( \"max_content\" , metadata -> MaxCLL ) ;\n print_int ( \"max_average\" , metadata -> MaxFALL ) ;\n }\n else if ( sd -> type == AV_FRAME_DATA_ICC_PROFILE ) {\n AVDictionaryEntry * tag = av_dict_get ( sd -> metadata , \"name\" , NULL , AV_DICT_MATCH_CASE ) ;\n if ( tag ) print_str ( tag -> key , tag -> value ) ;\n print_int ( \"size\" , sd -> size ) ;\n }\n writer_print_section_footer ( w ) ;\n }\n writer_print_section_footer ( w ) ;\n }\n writer_print_section_footer ( w ) ;\n av_bprint_finalize ( & pbuf , NULL ) ;\n fflush ( stdout ) ;\n }"}
{"idx": 8399, "target": 1, "func": "static void set_partial_b64x64_partition ( MODE_INFO * mi , int mis , int bh_in , int bw_in , int row8x8_remaining , int col8x8_remaining , BLOCK_SIZE bsize , MODE_INFO * * mi_8x8 ) {\n int bh = bh_in ;\n int r , c ;\n for ( r = 0 ;\n r < MI_BLOCK_SIZE ;\n r += bh ) {\n int bw = bw_in ;\n for ( c = 0 ;\n c < MI_BLOCK_SIZE ;\n c += bw ) {\n const int index = r * mis + c ;\n mi_8x8 [ index ] = mi + index ;\n mi_8x8 [ index ] -> mbmi . sb_type = find_partition_size ( bsize , row8x8_remaining - r , col8x8_remaining - c , & bh , & bw ) ;\n }\n }\n }"}
{"idx": 8400, "target": 0, "func": "int main ( void ) {\n static void ( * test_functions [ ] ) ( void ) = {\n test_rfc822_parse_quoted_string , test_rfc822_parse_content_param , NULL }\n ;\n return test_run ( test_functions ) ;\n }"}
{"idx": 8401, "target": 0, "func": "static void vmsvga_class_init ( ObjectClass * klass , void * data ) {\n DeviceClass * dc = DEVICE_CLASS ( klass ) ;\n PCIDeviceClass * k = PCI_DEVICE_CLASS ( klass ) ;\n k -> init = pci_vmsvga_initfn ;\n k -> romfile = \"vgabios-vmware.bin\" ;\n k -> vendor_id = PCI_VENDOR_ID_VMWARE ;\n k -> device_id = SVGA_PCI_DEVICE_ID ;\n k -> class_id = PCI_CLASS_DISPLAY_VGA ;\n k -> subsystem_vendor_id = PCI_VENDOR_ID_VMWARE ;\n k -> subsystem_id = SVGA_PCI_DEVICE_ID ;\n dc -> reset = vmsvga_reset ;\n dc -> vmsd = & vmstate_vmware_vga ;\n dc -> props = vga_vmware_properties ;\n dc -> hotpluggable = false ;\n set_bit ( DEVICE_CATEGORY_DISPLAY , dc -> categories ) ;\n }"}
{"idx": 8402, "target": 0, "func": "static void macio_ide_register_types ( void ) {\n type_register_static ( & macio_ide_type_info ) ;\n }"}
{"idx": 8403, "target": 0, "func": "static gint dissect_attribute_value ( proto_tree * tree , proto_item * patron_item , packet_info * pinfo , tvbuff_t * old_tvb , gint old_offset , gint length , guint16 handle , bluetooth_uuid_t uuid , btatt_data_t * att_data ) {\n proto_item * sub_item ;\n proto_tree * sub_tree = NULL ;\n tvbuff_t * tvb ;\n gint offset = 0 ;\n bluetooth_uuid_t sub_uuid ;\n bluetooth_uuid_t service_uuid ;\n guint16 sub_handle ;\n guint32 value ;\n guint32 flags ;\n guint32 operator_value ;\n guint32 opcode ;\n guint32 operand_offset ;\n const gint * * hfs ;\n bluetooth_data_t * bluetooth_data = NULL ;\n tvb = tvb_new_subset_length_caplen ( old_tvb , old_offset , length , length ) ;\n DISSECTOR_ASSERT ( att_data ) ;\n bluetooth_data = att_data -> bluetooth_data ;\n if ( p_get_proto_data ( pinfo -> pool , pinfo , proto_btatt , PROTO_DATA_BTATT_HANDLE ) == NULL ) {\n guint16 * value_data ;\n value_data = wmem_new ( wmem_file_scope ( ) , guint16 ) ;\n * value_data = handle ;\n p_add_proto_data ( pinfo -> pool , pinfo , proto_btatt , PROTO_DATA_BTATT_HANDLE , value_data ) ;\n }\n if ( btatt_dissect_attribute_handle ( handle , tvb , pinfo , tree , att_data ) ) return old_offset + length ;\n if ( p_get_proto_data ( pinfo -> pool , pinfo , proto_bluetooth , PROTO_DATA_BLUETOOTH_SERVICE_UUID ) == NULL ) {\n guint8 * value_data ;\n value_data = wmem_strdup ( wmem_file_scope ( ) , print_numeric_uuid ( & uuid ) ) ;\n p_add_proto_data ( pinfo -> pool , pinfo , proto_bluetooth , PROTO_DATA_BLUETOOTH_SERVICE_UUID , value_data ) ;\n }\n if ( dissector_try_string ( bluetooth_uuid_table , print_numeric_uuid ( & uuid ) , tvb , pinfo , tree , att_data ) ) return old_offset + length ;\n else if ( ! uuid . bt_uuid ) {\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) return old_offset ;\n proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n return old_offset + tvb_captured_length ( tvb ) ;\n }\n service_uuid = get_service_uuid_from_handle ( pinfo , handle , bluetooth_data ) ;\n switch ( uuid . bt_uuid ) {\n case 0x2800 : case 0x2801 : if ( is_readable_request ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_READ_BY_GROUP_TYPE_REQUEST ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_READ_BY_GROUP_TYPE_RESPONSE ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n if ( tvb_reported_length_remaining ( tvb , offset ) == 2 ) {\n proto_tree_add_item ( tree , hf_btatt_uuid16 , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n sub_uuid = get_uuid ( tvb , offset , 2 ) ;\n proto_item_append_text ( patron_item , \", UUID: %s\" , print_uuid ( & sub_uuid ) ) ;\n offset += 2 ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , print_uuid ( & sub_uuid ) ) ;\n save_handle ( pinfo , sub_uuid , handle , ATTRIBUTE_TYPE_SERVICE , bluetooth_data ) ;\n }\n else if ( tvb_reported_length_remaining ( tvb , offset ) == 16 ) {\n proto_tree_add_item ( tree , hf_btatt_uuid128 , tvb , offset , 16 , ENC_NA ) ;\n sub_uuid = get_uuid ( tvb , offset , 16 ) ;\n proto_item_append_text ( patron_item , \", UUID128: %s\" , print_uuid ( & sub_uuid ) ) ;\n offset += 16 ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , print_uuid ( & sub_uuid ) ) ;\n save_handle ( pinfo , sub_uuid , handle , ATTRIBUTE_TYPE_SERVICE , bluetooth_data ) ;\n }\n else {\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_bad_data ) ;\n offset = tvb_captured_length ( tvb ) ;\n }\n break ;\n case 0x2802 : if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n offset = dissect_handle ( tree , pinfo , hf_btatt_included_service_handle , tvb , offset , bluetooth_data , NULL , HANDLE_TVB ) ;\n sub_handle = tvb_get_guint16 ( tvb , offset - 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_btatt_ending_handle , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_uuid16 , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n sub_uuid = get_uuid ( tvb , offset , 2 ) ;\n proto_item_append_text ( patron_item , \", Included Handle: 0x%04x, UUID: %s\" , sub_handle , print_uuid ( & sub_uuid ) ) ;\n offset += 2 ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , print_uuid ( & sub_uuid ) ) ;\n save_handle ( pinfo , sub_uuid , sub_handle , ATTRIBUTE_TYPE_OTHER , bluetooth_data ) ;\n break ;\n case 0x2803 : if ( is_readable_request ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_READ_BY_TYPE_REQUEST ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_READ_BY_TYPE_RESPONSE ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_characteristic_properties , ett_btatt_characteristic_properties , hfx_btatt_characteristic_properties , ENC_NA ) ;\n offset += 1 ;\n offset = dissect_handle ( tree , pinfo , hf_btatt_characteristic_value_handle , tvb , offset , bluetooth_data , NULL , HANDLE_TVB ) ;\n sub_handle = tvb_get_guint16 ( tvb , offset - 2 , ENC_LITTLE_ENDIAN ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) == 16 ) {\n proto_tree_add_item ( tree , hf_btatt_uuid128 , tvb , offset , 16 , ENC_NA ) ;\n sub_uuid = get_uuid ( tvb , offset , 16 ) ;\n proto_item_append_text ( patron_item , \", Characteristic Handle: 0x%04x, UUID128: %s\" , tvb_get_guint16 ( tvb , offset - 2 , ENC_LITTLE_ENDIAN ) , print_uuid ( & sub_uuid ) ) ;\n offset += 16 ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , print_uuid ( & sub_uuid ) ) ;\n save_handle ( pinfo , sub_uuid , sub_handle , ATTRIBUTE_TYPE_CHARACTERISTIC , bluetooth_data ) ;\n }\n else if ( tvb_reported_length_remaining ( tvb , offset ) == 2 ) {\n proto_tree_add_item ( tree , hf_btatt_uuid16 , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n sub_uuid = get_uuid ( tvb , offset , 2 ) ;\n proto_item_append_text ( patron_item , \", Characteristic Handle: 0x%04x, UUID: %s\" , sub_handle , print_uuid ( & sub_uuid ) ) ;\n offset += 2 ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , print_uuid ( & sub_uuid ) ) ;\n save_handle ( pinfo , sub_uuid , sub_handle , ATTRIBUTE_TYPE_CHARACTERISTIC , bluetooth_data ) ;\n }\n else {\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_bad_data ) ;\n offset = tvb_captured_length ( tvb ) ;\n }\n break ;\n case 0x2900 : if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_characteristic_extended_properties , ett_btatt_value , hfx_btatt_characteristic_extended_properties , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2901 : if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_characteristic_user_description , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2902 : if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_characteristic_configuration_client , ett_btatt_value , hfx_btatt_characteristic_configuration_client , ENC_LITTLE_ENDIAN ) ;\n value = tvb_get_guint16 ( tvb , offset , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n {\n bluetooth_uuid_t characteristic_uuid ;\n characteristic_uuid = get_characteristic_uuid_from_handle ( pinfo , handle , bluetooth_data ) ;\n if ( value & 0x1 ) switch ( characteristic_uuid . bt_uuid ) {\n case 0x2A05 : case 0x2A1C : case 0x2A21 : case 0x2A35 : case 0x2A52 : case 0x2A55 : case 0x2A66 : case 0x2A6B : case 0x2A99 : case 0x2A9C : case 0x2A9D : case 0x2A9F : case 0x2ABC : case 0x2AC5 : case 0x2AC6 : case 0x2AC8 : case 0x2AC9 : case 0x2ACC : case 0x2AD4 : case 0x2AD5 : case 0x2AD6 : case 0x2AD7 : case 0x2AD8 : case 0x2AD9 : expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n break ;\n case 0x2A18 : case 0x2A19 : case 0x2A1E : case 0x2A22 : case 0x2A2C : case 0x2A2B : case 0x2A31 : case 0x2A33 : case 0x2A34 : case 0x2A36 : case 0x2A37 : case 0x2A3F : case 0x2A45 : case 0x2A46 : case 0x2A4D : case 0x2A53 : case 0x2A56 : case 0x2A58 : case 0x2A5A : case 0x2A5B : case 0x2A63 : case 0x2A64 : case 0x2A67 : case 0x2A68 : case 0x2A6C : case 0x2A6D : case 0x2A6E : case 0x2A6F : case 0x2A70 : case 0x2A71 : case 0x2A72 : case 0x2A73 : case 0x2A74 : case 0x2A75 : case 0x2A76 : case 0x2A77 : case 0x2A78 : case 0x2A79 : case 0x2A7A : case 0x2A7B : case 0x2AA0 : case 0x2AA1 : case 0x2AA3 : case 0x2AA7 : case 0x2AB8 : case 0x2ACD : case 0x2ACE : case 0x2ACF : case 0x2AD0 : case 0x2AD1 : case 0x2AD2 : case 0x2AD3 : case 0x2ADA : default : break ;\n }\n if ( value & 0x2 ) switch ( characteristic_uuid . bt_uuid ) {\n case 0x2A18 : case 0x2A19 : case 0x2A1E : case 0x2A22 : case 0x2A2B : case 0x2A2C : case 0x2A31 : case 0x2A33 : case 0x2A34 : case 0x2A36 : case 0x2A37 : case 0x2A3F : case 0x2A45 : case 0x2A46 : case 0x2A4D : case 0x2A53 : case 0x2A5B : case 0x2A63 : case 0x2A64 : case 0x2A67 : case 0x2A68 : case 0x2A6C : case 0x2A6D : case 0x2A6E : case 0x2A6F : case 0x2A70 : case 0x2A71 : case 0x2A72 : case 0x2A73 : case 0x2A74 : case 0x2A75 : case 0x2A76 : case 0x2A77 : case 0x2A78 : case 0x2A79 : case 0x2A7A : case 0x2A7B : case 0x2AA0 : case 0x2AA1 : case 0x2AA3 : case 0x2AA7 : case 0x2AB8 : case 0x2AC9 : case 0x2ACC : case 0x2ACD : case 0x2ACE : case 0x2ACF : case 0x2AD0 : case 0x2AD1 : case 0x2AD2 : case 0x2AD3 : case 0x2AD4 : case 0x2AD5 : case 0x2AD6 : case 0x2AD7 : case 0x2AD8 : case 0x2ADA : expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n break ;\n case 0x2A05 : case 0x2A1C : case 0x2A21 : case 0x2A35 : case 0x2A52 : case 0x2A55 : case 0x2A56 : case 0x2A58 : case 0x2A5A : case 0x2A66 : case 0x2A6B : case 0x2A99 : case 0x2A9C : case 0x2A9D : case 0x2A9F : case 0x2ABC : case 0x2AC5 : case 0x2AC6 : case 0x2AC8 : case 0x2AD9 : default : break ;\n }\n if ( value > 0x3 ) expert_add_info ( pinfo , tree , & ei_btatt_bad_data ) ;\n }\n break ;\n case 0x2903 : if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_characteristic_configuration_server , ett_btatt_value , hfx_btatt_characteristic_configuration_server , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2904 : if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_characteristic_presentation_format , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_characteristic_presentation_exponent , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_characteristic_presentation_unit , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_characteristic_presentation_namespace , tvb , offset , 1 , ENC_NA ) ;\n value = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n if ( value == 0x01 ) proto_tree_add_item ( tree , hf_btatt_characteristic_presentation_namespace_description_btsig , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n else proto_tree_add_item ( tree , hf_btatt_characteristic_presentation_namespace_description , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2905 : if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_none_format ( tree , hf_btatt_handles_info , tvb , offset , tvb_captured_length ( tvb ) , \"Handles (%i items)\" , tvb_captured_length ( tvb ) / 2 ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n while ( offset < ( gint64 ) tvb_captured_length ( tvb ) ) {\n offset = dissect_handle ( sub_tree , pinfo , hf_btatt_handle , tvb , offset , bluetooth_data , NULL , HANDLE_TVB ) ;\n }\n break ;\n case 0x2906 : {\n bluetooth_uuid_t characteristic_uuid ;\n guint8 * characteristic_dissector_name ;\n dissector_handle_t characteristic_dissector ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n characteristic_uuid = get_characteristic_uuid_from_handle ( pinfo , handle , bluetooth_data ) ;\n characteristic_dissector_name = wmem_strdup_printf ( wmem_packet_scope ( ) , \"btgatt.uuid0x%s\" , print_numeric_uuid ( & characteristic_uuid ) ) ;\n characteristic_dissector = find_dissector ( characteristic_dissector_name ) ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_valid_range_lower_inclusive_value , tvb , offset , tvb_reported_length_remaining ( tvb , offset ) / 2 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n if ( characteristic_dissector ) call_dissector_with_data ( characteristic_dissector , tvb_new_subset_length_caplen ( tvb , offset , tvb_reported_length_remaining ( tvb , offset ) / 2 , tvb_reported_length_remaining ( tvb , offset ) / 2 ) , pinfo , sub_tree , att_data ) ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_valid_range_upper_inclusive_value , tvb , offset + tvb_reported_length_remaining ( tvb , offset ) / 2 , tvb_reported_length_remaining ( tvb , offset ) / 2 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n if ( characteristic_dissector ) call_dissector_with_data ( characteristic_dissector , tvb_new_subset_length_caplen ( tvb , offset + tvb_reported_length_remaining ( tvb , offset ) / 2 , tvb_reported_length_remaining ( tvb , offset ) / 2 , tvb_reported_length_remaining ( tvb , offset ) / 2 ) , pinfo , sub_tree , att_data ) ;\n offset += tvb_reported_length_remaining ( tvb , offset ) ;\n }\n break ;\n case 0x2907 : if ( service_uuid . bt_uuid == GATT_SERVICE_HUMAN_INTERFACE_DEVICE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n if ( tvb_reported_length_remaining ( tvb , offset ) == 2 ) {\n proto_tree_add_item ( tree , hf_btatt_uuid16 , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n else if ( tvb_reported_length_remaining ( tvb , offset ) == 16 ) {\n proto_tree_add_item ( tree , hf_btatt_uuid128 , tvb , offset , 16 , ENC_NA ) ;\n offset += 16 ;\n }\n else {\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_bad_data ) ;\n offset = tvb_captured_length ( tvb ) ;\n }\n break ;\n case 0x2908 : if ( service_uuid . bt_uuid == GATT_SERVICE_HUMAN_INTERFACE_DEVICE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_report_reference_report_id , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_report_reference_report_type , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2909 : if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_number_of_digitals , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x290A : if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_value_trigger_setting_condition , tvb , offset , 1 , ENC_NA ) ;\n value = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n if ( value >= 1 && value <= 3 ) {\n proto_tree_add_item ( tree , hf_btatt_value_trigger_setting_analog , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n else if ( value == 4 ) {\n btatt_call_dissector_by_dissector_name_with_data ( \"btgatt.uuid0x2a56\" , tvb_new_subset_length_caplen ( tvb , offset , 1 , 1 ) , pinfo , tree , att_data ) ;\n offset += 1 ;\n }\n else if ( value == 5 || value == 6 ) {\n proto_tree_add_item ( tree , hf_btatt_value_trigger_setting_analog_one , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_value_trigger_setting_analog_two , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x290B : if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_esp_trigger_logic , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x290C : if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_esp_flags , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_esp_sampling_function , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_esp_measurement_period , tvb , offset , 3 , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n proto_tree_add_item ( tree , hf_btatt_esp_update_interval , tvb , offset , 3 , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n proto_tree_add_item ( tree , hf_btatt_esp_application , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_esp_measurement_uncertainty , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x290D : if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_esp_condition , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_esp_operand , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x290E : if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_time_trigger_setting_condition , tvb , offset , 1 , ENC_NA ) ;\n value = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n if ( value == 0 ) {\n proto_tree_add_item ( tree , hf_btatt_time_trigger_setting_value , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n else if ( value == 1 || value == 2 ) {\n proto_tree_add_item ( tree , hf_btatt_time_trigger_setting_value_time_interval , tvb , offset , 3 , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n }\n else if ( value == 3 ) {\n proto_tree_add_item ( tree , hf_btatt_time_trigger_setting_value_count , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x2A00 : if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_device_name , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2A01 : if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n switch ( ( tvb_get_guint16 ( tvb , offset , ENC_LITTLE_ENDIAN ) & 0xFFC0 ) >> 6 ) {\n case 0x003 : hfs = hfx_btatt_appearance_watch ;\n break ;\n case 0x00C : hfs = hfx_btatt_appearance_thermometer ;\n break ;\n case 0x00D : hfs = hfx_btatt_appearance_heart_rate ;\n break ;\n case 0x00E : hfs = hfx_btatt_appearance_blood_pressure ;\n break ;\n case 0x00F : hfs = hfx_btatt_appearance_hid ;\n break ;\n case 0x011 : hfs = hfx_btatt_appearance_running_walking_sensor ;\n break ;\n case 0x012 : hfs = hfx_btatt_appearance_cycling ;\n break ;\n case 0x031 : hfs = hfx_btatt_appearance_pulse_oximeter ;\n break ;\n case 0x033 : hfs = hfx_btatt_appearance_personal_mobility_device ;\n break ;\n case 0x035 : hfs = hfx_btatt_appearance_insulin_pump ;\n break ;\n case 0x051 : hfs = hfx_btatt_appearance_outdoor_sports_activity ;\n break ;\n default : hfs = hfx_btatt_appearance ;\n }\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_appearance , ett_btatt_value , hfs , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A02 : if ( service_uuid . bt_uuid == GATT_SERVICE_GENERIC_ACCESS_PROFILE ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_peripheral_privacy_flag , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A03 : if ( service_uuid . bt_uuid == GATT_SERVICE_GENERIC_ACCESS_PROFILE ) {\n if ( is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n offset = dissect_bd_addr ( hf_btatt_reconnection_address , pinfo , tree , tvb , offset , FALSE , bluetooth_data -> interface_id , bluetooth_data -> adapter_id , NULL ) ;\n break ;\n case 0x2A04 : if ( service_uuid . bt_uuid == GATT_SERVICE_GENERIC_ACCESS_PROFILE ) {\n if ( ! ( is_readable_request ( att_data -> opcode ) || is_readable_response ( att_data -> opcode ) ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_minimum_connection_interval , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_maximum_connection_interval , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_slave_latency , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_connection_supervision_timeout_multiplier , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A05 : if ( service_uuid . bt_uuid == GATT_SERVICE_GENERIC_ATTRIBUTE_PROFILE ) {\n if ( att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_starting_handle , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_ending_handle , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A06 : if ( service_uuid . bt_uuid == GATT_SERVICE_IMMEDIATE_ALERT ) {\n if ( att_data -> opcode != ATT_OPCODE_WRITE_COMMAND ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n else if ( service_uuid . bt_uuid == GATT_SERVICE_LINK_LOSS ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_alert_level , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A07 : if ( service_uuid . bt_uuid == GATT_SERVICE_TX_POWER ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_tx_power_level , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A08 : if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_year , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_month , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_day , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_hours , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_minutes , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_seconds , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A09 : if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_day_of_week , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A0A : case 0x2A0B : case 0x2A0C : case 0x2A2B : if ( uuid . bt_uuid == 0x2A2B ) {\n if ( service_uuid . bt_uuid == GATT_SERVICE_CURRENT_TIME_SERVICE ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_year , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_month , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_day , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_hours , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_minutes , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_seconds , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_day_of_week , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n if ( uuid . bt_uuid == 0x2A0C || uuid . bt_uuid == 0x2A2B ) {\n proto_tree_add_item ( tree , hf_btatt_fractions256 , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n else if ( uuid . bt_uuid == 0x2A0B ) {\n proto_tree_add_item ( tree , hf_btatt_fractions100 , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( uuid . bt_uuid == 0x2A2B ) {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_time_adjust_reason , ett_btatt_value , hfx_btatt_time_adjust_reason , ENC_NA ) ;\n offset += 1 ;\n }\n break ;\n case 0x2A0D : if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_dst_offset , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A0E : if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_timezone , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A0F : case 0x2A10 : if ( service_uuid . bt_uuid == GATT_SERVICE_CURRENT_TIME_SERVICE ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n if ( uuid . bt_uuid == 0x2A10 ) {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_timezone_information , ett_btatt_value , hfx_btatt_timezone_information , ENC_NA ) ;\n offset += 1 ;\n }\n proto_tree_add_item ( tree , hf_btatt_timezone , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_dst_offset , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A11 : if ( service_uuid . bt_uuid == GATT_SERVICE_NEXT_DST_CHANGE_SERVICE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_year , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_month , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_day , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_hours , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_minutes , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_seconds , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_dst_offset , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A12 : if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_time_accuracy , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A13 : if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_time_source , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A14 : if ( service_uuid . bt_uuid == GATT_SERVICE_CURRENT_TIME_SERVICE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_time_source , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_time_accuracy , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_time_days_since_update , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_time_hours_since_update , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A15 : if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n btatt_call_dissector_by_dissector_name_with_data ( \"btgatt.uuid0x2A0C\" , tvb_new_subset_length_caplen ( tvb , offset , 9 , 9 ) , pinfo , tree , att_data ) ;\n offset += 9 ;\n btatt_call_dissector_by_dissector_name_with_data ( \"btgatt.uuid0x2A0F\" , tvb_new_subset_length_caplen ( tvb , offset , 2 , 2 ) , pinfo , tree , att_data ) ;\n offset += 2 ;\n btatt_call_dissector_by_dissector_name_with_data ( \"btgatt.uuid0x2A14\" , tvb_new_subset_length_caplen ( tvb , offset , 4 , 4 ) , pinfo , tree , att_data ) ;\n offset += 4 ;\n break ;\n case 0x2A16 : if ( service_uuid . bt_uuid == GATT_SERVICE_REFERENCE_TIME_UPDATE_SERVICE ) {\n if ( att_data -> opcode != ATT_OPCODE_WRITE_COMMAND ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_time_update_control_point , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A17 : if ( service_uuid . bt_uuid == GATT_SERVICE_REFERENCE_TIME_UPDATE_SERVICE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_time_current_state , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_time_result , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A18 : if ( service_uuid . bt_uuid == GATT_SERVICE_GLUCOSE ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_glucose_measurement_flags , ett_btatt_value , hfx_btatt_glucose_measurement_flags , ENC_NA ) ;\n flags = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_glucose_measurement_sequence_number , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_glucose_measurement_base_time , tvb , offset , 7 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n proto_tree_add_item ( sub_tree , hf_btatt_year , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_month , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_day , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_hours , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_minutes , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_seconds , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n if ( flags & 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_glucose_measurement_time_offset , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( ( flags & 0x02 ) && ! ( flags & 0x04 ) ) {\n proto_tree_add_item ( tree , hf_btatt_glucose_measurement_glucose_concentration_kg_per_l , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( ( flags & 0x02 ) && ( flags & 0x04 ) ) {\n proto_tree_add_item ( tree , hf_btatt_glucose_measurement_glucose_concentration_mol_per_l , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x02 ) {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_glucose_measurement_type_and_sample_location , ett_btatt_value , hfx_btatt_glucose_measurement_type_and_sample_location , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x08 ) {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_glucose_measurement_sensor_status_annunciation , ett_btatt_value , hfx_btatt_glucose_measurement_sensor_status_annunciation , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x2A19 : {\n if ( service_uuid . bt_uuid == GATT_SERVICE_BATTERY_SERVICE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n guint32 battery_level ;\n sub_item = proto_tree_add_item_ret_uint ( tree , hf_btatt_battery_level , tvb , offset , 1 , ENC_NA , & battery_level ) ;\n if ( battery_level > 100 ) expert_add_info ( pinfo , sub_item , & ei_btatt_bad_data ) ;\n offset += 1 ;\n }\n break ;\n case 0x2A1A : if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_battery_power_state , ett_btatt_value , hfx_btatt_battery_power_state , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A1B : {\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n guint32 battery_level ;\n sub_item = proto_tree_add_item_ret_uint ( tree , hf_btatt_battery_level , tvb , offset , 1 , ENC_NA , & battery_level ) ;\n if ( battery_level > 100 ) expert_add_info ( pinfo , sub_item , & ei_btatt_bad_data ) ;\n offset += 1 ;\n if ( tvb_reported_length_remaining ( tvb , offset ) >= 1 ) {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_battery_power_state , ett_btatt_value , hfx_btatt_battery_power_state , ENC_NA ) ;\n offset += 1 ;\n }\n }\n break ;\n case 0x2A1C : case 0x2A1E : if ( uuid . bt_uuid == 0x2A1C ) {\n if ( service_uuid . bt_uuid == GATT_SERVICE_HEALTH_THERMOMETER ) {\n if ( att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n }\n else if ( uuid . bt_uuid == 0x2A1E ) {\n if ( service_uuid . bt_uuid == GATT_SERVICE_HEALTH_THERMOMETER ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_temperature_measurement_flags , ett_btatt_value , hfx_btatt_temperature_measurement_flags , ENC_NA ) ;\n flags = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n if ( flags & 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_temperature_measurement_value_celsius , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n }\n else {\n proto_tree_add_item ( tree , hf_btatt_temperature_measurement_value_fahrenheit , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n }\n if ( flags & 0x02 ) {\n sub_item = proto_tree_add_item ( tree , hf_btatt_temperature_measurement_timestamp , tvb , offset , 7 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n proto_tree_add_item ( sub_tree , hf_btatt_year , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_month , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_day , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_hours , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_minutes , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_seconds , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x04 ) {\n proto_tree_add_item ( tree , hf_btatt_temperature_type , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n break ;\n case 0x2A1D : if ( service_uuid . bt_uuid == GATT_SERVICE_HEALTH_THERMOMETER ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_temperature_type , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A21 : if ( service_uuid . bt_uuid == GATT_SERVICE_HEALTH_THERMOMETER ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_measurement_interval , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A22 : if ( service_uuid . bt_uuid == GATT_SERVICE_HUMAN_INTERFACE_DEVICE ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n call_dissector_with_data ( usb_hid_boot_keyboard_input_report_handle , tvb_new_subset_remaining ( tvb , offset ) , pinfo , tree , NULL ) ;\n offset += tvb_reported_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2A23 : if ( service_uuid . bt_uuid == GATT_SERVICE_DEVICE_INFORMATION ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_system_id_manufacturer_identifier , tvb , offset , 5 , ENC_LITTLE_ENDIAN ) ;\n offset += 5 ;\n proto_tree_add_item ( tree , hf_btatt_system_id_organizationally_unique_identifier , tvb , offset , 3 , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n break ;\n case 0x2A24 : if ( service_uuid . bt_uuid == GATT_SERVICE_DEVICE_INFORMATION ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_model_number_string , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2A25 : if ( service_uuid . bt_uuid == GATT_SERVICE_DEVICE_INFORMATION ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_serial_number_string , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2A26 : if ( service_uuid . bt_uuid == GATT_SERVICE_DEVICE_INFORMATION ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_firmware_revision_string , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2A27 : if ( service_uuid . bt_uuid == GATT_SERVICE_DEVICE_INFORMATION ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_hardware_revision_string , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2A28 : if ( service_uuid . bt_uuid == GATT_SERVICE_DEVICE_INFORMATION ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_software_revision_string , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2A29 : if ( service_uuid . bt_uuid == GATT_SERVICE_DEVICE_INFORMATION ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_manufacturer_string , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2A2A : {\n guint16 count ;\n guint16 list_length = 0 ;\n if ( service_uuid . bt_uuid == GATT_SERVICE_DEVICE_INFORMATION ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_regulatory_certification_data_list_count , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n count = tvb_get_guint16 ( tvb , offset , ENC_LITTLE_ENDIAN ) ;\n list_length += 2 ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_regulatory_certification_data_list_length , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n list_length += 2 ;\n offset += 2 ;\n while ( count -- ) {\n proto_item * authorizing_body_data_item ;\n proto_tree * authorizing_body_data_tree ;\n guint8 item_type ;\n guint16 item_length ;\n guint16 certification_data_list_count = 0 ;\n guint16 certification_data_list_length = 0 ;\n proto_item * list_length_item ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_regulatory_certification_data_list_item , tvb , offset , 0 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n proto_tree_add_item ( sub_tree , hf_btatt_regulatory_certification_data_list_item_body , tvb , offset , 1 , ENC_NA ) ;\n list_length += 1 ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_regulatory_certification_data_list_item_body_structure_type , tvb , offset , 1 , ENC_NA ) ;\n item_type = tvb_get_guint8 ( tvb , offset ) ;\n list_length += 1 ;\n offset += 1 ;\n list_length_item = proto_tree_add_item ( sub_tree , hf_btatt_regulatory_certification_data_list_item_body_structure_length , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n item_length = tvb_get_guint16 ( tvb , offset , ENC_LITTLE_ENDIAN ) ;\n list_length += 2 + item_length ;\n offset += 2 ;\n if ( item_type == 0x01 ) {\n authorizing_body_data_item = proto_tree_add_item ( sub_tree , hf_btatt_regulatory_certification_data_list_item_authorizing_body_data , tvb , offset , item_length , ENC_NA ) ;\n authorizing_body_data_tree = proto_item_add_subtree ( authorizing_body_data_item , ett_btatt_list ) ;\n if ( item_length > 0 ) {\n proto_tree_add_item ( authorizing_body_data_tree , hf_btatt_regulatory_certification_data_list_item_authorizing_body_data_major_ig_version , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( item_length > 1 ) {\n proto_tree_add_item ( authorizing_body_data_tree , hf_btatt_regulatory_certification_data_list_item_authorizing_body_data_minor_ig_version , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( item_length > 2 ) {\n proto_tree_add_item ( authorizing_body_data_tree , hf_btatt_regulatory_certification_data_list_item_authorizing_body_data_certification_data_list_count , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n certification_data_list_count = tvb_get_guint16 ( tvb , offset , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( item_length > 4 ) {\n proto_tree_add_item ( authorizing_body_data_tree , hf_btatt_regulatory_certification_data_list_item_authorizing_body_data_certification_data_list_length , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n certification_data_list_length = tvb_get_guint16 ( tvb , offset , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( item_length > 6 && certification_data_list_count ) {\n proto_item * certification_data_list_item ;\n proto_tree * certification_data_list_tree ;\n certification_data_list_item = proto_tree_add_item ( sub_tree , hf_btatt_regulatory_certification_data_list_item_authorizing_body_data_certification_data_list , tvb , offset , certification_data_list_length , ENC_NA ) ;\n certification_data_list_tree = proto_item_add_subtree ( certification_data_list_item , ett_btatt_list ) ;\n while ( certification_data_list_count -- ) {\n proto_tree_add_item ( certification_data_list_tree , hf_btatt_regulatory_certification_data_list_item_authorizing_body_data_certified_device_class , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n }\n }\n else if ( item_type == 0x02 ) {\n proto_tree_add_item ( sub_tree , hf_btatt_regulatory_certification_data_list_item_regulation_bit_field_type , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n else {\n proto_tree_add_item ( sub_tree , hf_btatt_regulatory_certification_data_list_item_data , tvb , offset , item_length , ENC_NA ) ;\n offset += item_length ;\n }\n proto_item_set_len ( sub_item , 1 + 1 + 2 + item_length ) ;\n if ( list_length != length ) expert_add_info ( pinfo , list_length_item , & ei_btatt_invalid_length ) ;\n }\n }\n break ;\n case 0x2A2C : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_magnetic_declination , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A31 : if ( service_uuid . bt_uuid == GATT_SERVICE_SCAN_PARAMETERS ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_scan_refresh , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A32 : if ( service_uuid . bt_uuid == GATT_SERVICE_HUMAN_INTERFACE_DEVICE ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_WRITE_COMMAND ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n call_dissector_with_data ( usb_hid_boot_keyboard_output_report_handle , tvb_new_subset_remaining ( tvb , offset ) , pinfo , tree , NULL ) ;\n offset += tvb_reported_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2A33 : if ( service_uuid . bt_uuid == GATT_SERVICE_HUMAN_INTERFACE_DEVICE ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n call_dissector_with_data ( usb_hid_boot_mouse_input_report_handle , tvb_new_subset_remaining ( tvb , offset ) , pinfo , tree , NULL ) ;\n offset += tvb_reported_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2A34 : if ( service_uuid . bt_uuid == GATT_SERVICE_GLUCOSE ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_glucose_measurement_context_flags , ett_btatt_value , hfx_btatt_glucose_measurement_context_flags , ENC_NA ) ;\n flags = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_glucose_measurement_context_sequence_number , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( flags & 0x80 ) {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_glucose_measurement_context_extended_flags , ett_btatt_value , hfx_btatt_glucose_measurement_context_extended_flags , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_glucose_measurement_context_carbohydrate_id , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_glucose_measurement_context_carbohydrate_kg , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x02 ) {\n proto_tree_add_item ( tree , hf_btatt_glucose_measurement_context_meal , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x04 ) {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_glucose_measurement_context_tester_health , ett_btatt_value , hfx_btatt_glucose_measurement_context_tester_health , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x08 ) {\n proto_tree_add_item ( tree , hf_btatt_glucose_measurement_context_exercise_duration , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_glucose_measurement_context_exercise_intensity , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x10 ) {\n proto_tree_add_item ( tree , hf_btatt_glucose_measurement_context_medication_id , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n if ( flags & 0x20 ) {\n proto_tree_add_item ( tree , hf_btatt_glucose_measurement_context_medication_l , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n else {\n proto_tree_add_item ( tree , hf_btatt_glucose_measurement_context_medication_kg , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n }\n if ( flags & 0x40 ) {\n proto_tree_add_item ( tree , hf_btatt_glucose_measurement_context_hba1c , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x2A35 : case 0x2A36 : if ( uuid . bt_uuid == 0x2A35 ) {\n if ( service_uuid . bt_uuid == GATT_SERVICE_BLOOD_PRESSURE ) {\n if ( att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n }\n else if ( uuid . bt_uuid == 0x2A36 ) {\n if ( service_uuid . bt_uuid == GATT_SERVICE_BLOOD_PRESSURE ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_blood_pressure_measurement_flags , ett_btatt_value , hfx_btatt_blood_pressure_measurement_flags , ENC_NA ) ;\n flags = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n if ( flags & 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_blood_pressure_measurement_compound_value_systolic_kpa , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_blood_pressure_measurement_compound_value_diastolic_kpa , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_blood_pressure_measurement_compound_value_mean_arterial_pressure_kpa , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n else {\n proto_tree_add_item ( tree , hf_btatt_blood_pressure_measurement_compound_value_systolic_mmhg , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_blood_pressure_measurement_compound_value_diastolic_mmhg , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_blood_pressure_measurement_compound_value_mean_arterial_pressure_mmhg , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x02 ) {\n sub_item = proto_tree_add_item ( tree , hf_btatt_blood_pressure_measurement_timestamp , tvb , offset , 7 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n proto_tree_add_item ( sub_tree , hf_btatt_year , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_month , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_day , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_hours , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_minutes , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_seconds , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x04 ) {\n proto_tree_add_item ( tree , hf_btatt_blood_pressure_measurement_pulse_rate , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x08 ) {\n proto_tree_add_item ( tree , hf_btatt_blood_pressure_measurement_user_id , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x10 ) {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_blood_pressure_measurement_status , ett_btatt_value , hfx_btatt_blood_pressure_measurement_status , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x2A37 : if ( service_uuid . bt_uuid == GATT_SERVICE_HEART_RATE ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_heart_rate_measurement_flags , ett_btatt_value , hfx_btatt_heart_rate_measurement_flags , ENC_NA ) ;\n flags = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n if ( flags & 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_heart_rate_measurement_value_16 , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n else {\n proto_tree_add_item ( tree , hf_btatt_heart_rate_measurement_value_8 , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x08 ) {\n proto_tree_add_item ( tree , hf_btatt_heart_rate_measurement_energy_expended , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x10 ) {\n guint interval_count = 0 ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_heart_rate_measurement_rr_intervals , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n while ( tvb_reported_length_remaining ( tvb , offset ) ) {\n proto_tree_add_item ( sub_tree , hf_btatt_heart_rate_measurement_rr_interval , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n interval_count += 1 ;\n }\n proto_item_append_text ( sub_item , \" [count = %2u]\" , interval_count ) ;\n }\n break ;\n case 0x2A38 : if ( service_uuid . bt_uuid == GATT_SERVICE_HEART_RATE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_body_sensor_location , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A39 : if ( service_uuid . bt_uuid == GATT_SERVICE_HEART_RATE ) {\n if ( is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_heart_rate_control_point , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A3F : if ( service_uuid . bt_uuid == GATT_SERVICE_PHONE_ALERT_STATUS_SERVICE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_alert_status , ett_btatt_value , hfx_btatt_alert_status , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A40 : if ( service_uuid . bt_uuid == GATT_SERVICE_PHONE_ALERT_STATUS_SERVICE ) {\n if ( att_data -> opcode != ATT_OPCODE_WRITE_COMMAND ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_ringer_control_point , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A41 : if ( service_uuid . bt_uuid == GATT_SERVICE_PHONE_ALERT_STATUS_SERVICE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_ringer_setting , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A42 : case 0x2A47 : case 0x2A48 : if ( uuid . bt_uuid == 0x2A47 || uuid . bt_uuid == 0x2A48 ) {\n if ( service_uuid . bt_uuid == GATT_SERVICE_ALERT_NOTIFICATION_SERVICE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_alert_category_id_bitmask_1 , ett_btatt_value , hfx_btatt_alert_category_id_bitmask_1 , ENC_NA ) ;\n offset += 1 ;\n if ( tvb_reported_length_remaining ( tvb , offset ) >= 1 ) {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_alert_category_id_bitmask_2 , ett_btatt_value , hfx_btatt_alert_category_id_bitmask_2 , ENC_NA ) ;\n offset += 1 ;\n }\n break ;\n case 0x2A43 : if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_alert_category_id , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A44 : if ( service_uuid . bt_uuid == GATT_SERVICE_ALERT_NOTIFICATION_SERVICE ) {\n if ( is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_alert_command_id , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_alert_category_id , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A45 : if ( service_uuid . bt_uuid == GATT_SERVICE_ALERT_NOTIFICATION_SERVICE ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_alert_category_id , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_alert_unread_count , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A46 : if ( service_uuid . bt_uuid == GATT_SERVICE_ALERT_NOTIFICATION_SERVICE ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_alert_category_id , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_alert_number_of_new_alert , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n proto_tree_add_item ( tree , hf_btatt_alert_text_string_information , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n }\n break ;\n case 0x2A49 : if ( service_uuid . bt_uuid == GATT_SERVICE_BLOOD_PRESSURE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_blood_pressure_feature , ett_btatt_value , hfx_btatt_blood_pressure_feature , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A4A : if ( service_uuid . bt_uuid == GATT_SERVICE_HUMAN_INTERFACE_DEVICE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_hogp_bcd_hid , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_hogp_b_country_code , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_hogp_flags , ett_btatt_value , hfx_btatt_hogp_flags , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A4B : if ( service_uuid . bt_uuid == GATT_SERVICE_HUMAN_INTERFACE_DEVICE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n offset = dissect_usb_hid_get_report_descriptor ( pinfo , tree , tvb , offset , NULL ) ;\n break ;\n case 0x2A4C : if ( service_uuid . bt_uuid == GATT_SERVICE_HUMAN_INTERFACE_DEVICE ) {\n if ( att_data -> opcode != ATT_OPCODE_WRITE_COMMAND ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_hogp_hid_control_point_command , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A4D : if ( service_uuid . bt_uuid == GATT_SERVICE_HUMAN_INTERFACE_DEVICE ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_WRITE_COMMAND && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_undecoded ) ;\n offset = tvb_captured_length ( tvb ) ;\n break ;\n case 0x2A4E : if ( service_uuid . bt_uuid == GATT_SERVICE_HUMAN_INTERFACE_DEVICE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_WRITE_COMMAND ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_hogp_protocol_mode , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A4F : if ( service_uuid . bt_uuid == GATT_SERVICE_SCAN_PARAMETERS ) {\n if ( att_data -> opcode != ATT_OPCODE_WRITE_COMMAND ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_le_scan_interval , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_le_scan_window , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A50 : if ( service_uuid . bt_uuid == GATT_SERVICE_DEVICE_INFORMATION ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_pnp_id_vendor_id_source , tvb , offset , 1 , ENC_NA ) ;\n value = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n if ( value == 1 ) proto_tree_add_item ( tree , hf_btatt_pnp_id_vendor_id_bluetooth_sig , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n else if ( value == 2 ) proto_tree_add_item ( tree , hf_btatt_pnp_id_vendor_id_usb_forum , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n else proto_tree_add_item ( tree , hf_btatt_pnp_id_vendor_id , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_pnp_id_product_id , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_pnp_id_product_version , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A51 : if ( service_uuid . bt_uuid == GATT_SERVICE_GLUCOSE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_glucose_feature , ett_btatt_value , hfx_btatt_glucose_feature , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A52 : if ( service_uuid . bt_uuid == GATT_SERVICE_GLUCOSE || service_uuid . bt_uuid == GATT_SERVICE_CONTINUOUS_GLUCOSE_MONITORING || service_uuid . bt_uuid == GATT_SERVICE_PULSE_OXIMETER ) {\n if ( is_writeable_response ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_record_access_control_point_opcode , tvb , offset , 1 , ENC_NA ) ;\n opcode = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_record_access_control_point_operator , tvb , offset , 1 , ENC_NA ) ;\n operator_value = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_record_access_control_point_operand , tvb , offset , 0 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n operand_offset = offset ;\n switch ( opcode ) {\n case 1 : case 2 : case 4 : switch ( operator_value ) {\n case 0 : case 1 : case 5 : case 6 : break ;\n case 2 : proto_tree_add_item ( sub_tree , hf_btatt_record_access_control_point_operand_filter_type , tvb , offset , 1 , ENC_NA ) ;\n value = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n if ( value == 0x01 ) {\n proto_tree_add_item ( sub_tree , hf_btatt_record_access_control_point_operand_max_time_offset , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n else {\n proto_tree_add_item ( sub_tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n offset = tvb_captured_length ( tvb ) ;\n }\n break ;\n case 3 : proto_tree_add_item ( sub_tree , hf_btatt_record_access_control_point_operand_filter_type , tvb , offset , 1 , ENC_NA ) ;\n value = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n if ( value == 0x01 ) {\n proto_tree_add_item ( sub_tree , hf_btatt_record_access_control_point_operand_min_time_offset , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n else {\n proto_tree_add_item ( sub_tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n offset = tvb_captured_length ( tvb ) ;\n }\n break ;\n case 4 : proto_tree_add_item ( sub_tree , hf_btatt_record_access_control_point_operand_filter_type , tvb , offset , 1 , ENC_NA ) ;\n value = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n if ( value == 0x01 ) {\n proto_tree_add_item ( sub_tree , hf_btatt_record_access_control_point_operand_min_time_offset , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_record_access_control_point_operand_max_time_offset , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n else {\n proto_tree_add_item ( sub_tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n offset = tvb_captured_length ( tvb ) ;\n }\n break ;\n }\n break ;\n case 3 : break ;\n case 5 : proto_tree_add_item ( sub_tree , hf_btatt_record_access_control_point_operand_number_of_records , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 6 : proto_tree_add_item ( sub_tree , hf_btatt_record_access_control_point_request_opcode , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_record_access_control_point_response_code , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n }\n ;\n proto_item_set_len ( sub_item , offset - operand_offset ) ;\n break ;\n case 0x2A53 : if ( service_uuid . bt_uuid == GATT_SERVICE_RUNNING_SPEED_AND_CADENCE ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_rsc_measurement_flags , ett_btatt_value , hfx_btatt_rsc_measurement_flags , ENC_NA ) ;\n flags = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_rsc_measurement_instantaneous_speed , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_rsc_measurement_instantaneous_cadence , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n if ( flags & 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_rsc_measurement_instantaneous_stride_length , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x02 ) {\n proto_tree_add_item ( tree , hf_btatt_rsc_measurement_total_distance , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n }\n break ;\n case 0x2A54 : if ( service_uuid . bt_uuid == GATT_SERVICE_RUNNING_SPEED_AND_CADENCE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_rsc_feature , ett_btatt_value , hfx_btatt_rsc_feature , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A55 : if ( service_uuid . bt_uuid == GATT_SERVICE_RUNNING_SPEED_AND_CADENCE || service_uuid . bt_uuid == GATT_SERVICE_CYCLING_SPEED_AND_CADENCE ) {\n if ( is_writeable_response ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_sc_control_point_opcode , tvb , offset , 1 , ENC_NA ) ;\n opcode = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n switch ( opcode ) {\n case 1 : proto_tree_add_item ( tree , hf_btatt_sc_control_point_cumulative_value , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n break ;\n case 3 : proto_tree_add_item ( tree , hf_btatt_sensor_location , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 16 : proto_tree_add_item ( tree , hf_btatt_sc_control_point_request_opcode , tvb , offset , 1 , ENC_NA ) ;\n value = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_sc_control_point_response_value , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n if ( value == 0x04 && tvb_get_guint8 ( tvb , offset ) == 0x01 ) {\n while ( tvb_captured_length_remaining ( tvb , offset ) ) {\n proto_tree_add_item ( tree , hf_btatt_sensor_location , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n }\n break ;\n case 2 : case 4 : break ;\n }\n break ;\n case 0x2A56 : if ( service_uuid . bt_uuid == GATT_SERVICE_AUTOMATION_IO ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_WRITE_COMMAND && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_digital , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A58 : if ( service_uuid . bt_uuid == GATT_SERVICE_AUTOMATION_IO ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_WRITE_COMMAND && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_analog , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A5A : if ( service_uuid . bt_uuid == GATT_SERVICE_AUTOMATION_IO ) {\n if ( is_readable_request ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n btatt_call_dissector_by_dissector_name_with_data ( \"btgatt.uuid0x2a56\" , tvb_new_subset_length_caplen ( tvb , offset , 1 , 1 ) , pinfo , tree , att_data ) ;\n offset += 1 ;\n btatt_call_dissector_by_dissector_name_with_data ( \"btgatt.uuid0x2a58\" , tvb_new_subset_length_caplen ( tvb , offset , 2 , 2 ) , pinfo , tree , att_data ) ;\n offset += 2 ;\n break ;\n case 0x2A5B : if ( service_uuid . bt_uuid == GATT_SERVICE_CYCLING_SPEED_AND_CADENCE ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_csc_measurement_flags , ett_btatt_value , hfx_btatt_csc_measurement_flags , ENC_NA ) ;\n flags = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n if ( flags & 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_csc_measurement_cumulative_wheel_revolutions , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_btatt_csc_measurement_last_event_time , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x02 ) {\n proto_tree_add_item ( tree , hf_btatt_csc_measurement_cumulative_crank_revolutions , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_csc_measurement_last_event_time , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x2A5C : if ( service_uuid . bt_uuid == GATT_SERVICE_CYCLING_SPEED_AND_CADENCE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_csc_feature , ett_btatt_value , hfx_btatt_csc_feature , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A5D : if ( service_uuid . bt_uuid == GATT_SERVICE_RUNNING_SPEED_AND_CADENCE || service_uuid . bt_uuid == GATT_SERVICE_CYCLING_SPEED_AND_CADENCE || service_uuid . bt_uuid == GATT_SERVICE_CYCLING_POWER ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_sensor_location , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A5E : if ( service_uuid . bt_uuid == GATT_SERVICE_PULSE_OXIMETER ) {\n if ( att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_plx_spot_check_measurement_flags , ett_btatt_value , hfx_btatt_plx_spot_check_measurement_flags , ENC_NA ) ;\n flags = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_plx_spo2pr_spot_check , tvb , offset , 4 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_value ) ;\n proto_tree_add_item ( sub_tree , hf_btatt_plx_spo2 , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_plx_pulse_rate , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( flags & 0x01 ) {\n sub_item = proto_tree_add_item ( tree , hf_btatt_plx_spot_check_measurement_timestamp , tvb , offset , 7 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_value ) ;\n btatt_call_dissector_by_dissector_name_with_data ( \"btgatt.uuid0x2a08\" , tvb_new_subset_length_caplen ( tvb , offset , 7 , 7 ) , pinfo , sub_tree , att_data ) ;\n offset += 7 ;\n }\n if ( flags & 0x02 ) {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_plx_measurement_status , ett_btatt_value , hfx_btatt_plx_measurement_status , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x04 ) {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_plx_device_and_sensor_status , ett_btatt_value , hfx_btatt_plx_device_and_sensor_status , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n }\n if ( flags & 0x08 ) {\n proto_tree_add_item ( tree , hf_btatt_plx_pulse_amplitude_index , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x2A5F : if ( service_uuid . bt_uuid == GATT_SERVICE_PULSE_OXIMETER ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_plx_continuous_measurement_flags , ett_btatt_value , hfx_btatt_plx_continuous_measurement_flags , ENC_NA ) ;\n flags = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_plx_spo2pr_normal , tvb , offset , 4 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_value ) ;\n proto_tree_add_item ( sub_tree , hf_btatt_plx_spo2 , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_plx_pulse_rate , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( flags & 0x01 ) {\n sub_item = proto_tree_add_item ( tree , hf_btatt_plx_spo2pr_fast , tvb , offset , 4 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_value ) ;\n proto_tree_add_item ( sub_tree , hf_btatt_plx_spo2 , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_plx_pulse_rate , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x02 ) {\n sub_item = proto_tree_add_item ( tree , hf_btatt_plx_spo2pr_slow , tvb , offset , 4 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_value ) ;\n proto_tree_add_item ( sub_tree , hf_btatt_plx_spo2 , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_plx_pulse_rate , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x04 ) {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_plx_measurement_status , ett_btatt_value , hfx_btatt_plx_measurement_status , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x08 ) {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_plx_device_and_sensor_status , ett_btatt_value , hfx_btatt_plx_device_and_sensor_status , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n }\n if ( flags & 0x10 ) {\n proto_tree_add_item ( tree , hf_btatt_plx_pulse_amplitude_index , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x2A60 : if ( service_uuid . bt_uuid == GATT_SERVICE_PULSE_OXIMETER ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_plx_features_supported_features , ett_btatt_value , hfx_btatt_plx_features_supported_features , ENC_LITTLE_ENDIAN ) ;\n flags = tvb_get_guint16 ( tvb , offset , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( flags & 0x01 ) {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_plx_measurement_status , ett_btatt_value , hfx_btatt_plx_measurement_status , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x02 ) {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_plx_device_and_sensor_status , ett_btatt_value , hfx_btatt_plx_device_and_sensor_status , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n }\n break ;\n case 0x2A63 : if ( service_uuid . bt_uuid == GATT_SERVICE_CYCLING_POWER ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_cycling_power_measurement_flags , ett_btatt_value , hfx_btatt_cycling_power_measurement_flags , ENC_LITTLE_ENDIAN ) ;\n flags = tvb_get_guint16 ( tvb , offset , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_cycling_power_measurement_instantaneous_power , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( flags & 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_measurement_pedal_power_balance , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x04 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_measurement_accumulated_torque , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x10 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_measurement_wheel_revolution_data_cumulative_wheel_revolutions , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_btatt_cycling_power_measurement_wheel_revolution_data_last_wheel_event_time , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x20 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_measurement_crank_revolution_data_cumulative_crank_revolutions , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_cycling_power_measurement_crank_revolution_data_last_crank_event_time , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x40 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_measurement_extreme_force_magnitudes_maximum_force_magnitude , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_cycling_power_measurement_extreme_force_magnitudes_minimum_force_magnitude , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x80 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_measurement_extreme_torque_magnitudes_maximum_torque_magnitude , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_cycling_power_measurement_extreme_torque_magnitudes_minimum_torque_magnitude , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x100 ) {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_cycling_power_measurement_extreme_angles , ett_btatt_value , hfx_btatt_cycling_power_measurement_extreme_angles , ENC_NA ) ;\n offset += 3 ;\n }\n if ( flags & 0x200 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_measurement_top_dead_spot_angle , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x400 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_measurement_bottom_dead_spot_angle , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x800 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_measurement_accumulated_energy , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x2A64 : if ( service_uuid . bt_uuid == GATT_SERVICE_CYCLING_POWER ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_cycling_power_vector_flags , ett_btatt_value , hfx_btatt_cycling_power_vector_flags , ENC_NA ) ;\n flags = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n if ( flags & 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_vector_crank_revolution_data_cumulative_crank_revolutions , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_cycling_power_vector_crank_revolution_data_last_crank_event_time , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x02 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_vector_first_crank_measurement_angle , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x04 ) {\n while ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_vector_instantaneous_force_magnitude_array , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n }\n if ( flags & 0x08 ) {\n while ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_vector_instantaneous_torque_magnitude_array , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n }\n break ;\n case 0x2A65 : if ( service_uuid . bt_uuid == GATT_SERVICE_CYCLING_POWER ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_cycling_power_feature , ett_btatt_value , hfx_btatt_cycling_power_feature , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n break ;\n case 0x2A66 : if ( service_uuid . bt_uuid == GATT_SERVICE_CYCLING_POWER ) {\n if ( is_writeable_response ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_cycling_power_control_point_opcode , tvb , offset , 1 , ENC_NA ) ;\n opcode = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n switch ( opcode ) {\n case 1 : proto_tree_add_item ( tree , hf_btatt_cycling_power_control_point_cumulative_value , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n break ;\n case 2 : proto_tree_add_item ( tree , hf_btatt_cycling_power_control_point_sensor_location , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 4 : proto_tree_add_item ( tree , hf_btatt_cycling_power_control_point_crank_length , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 6 : proto_tree_add_item ( tree , hf_btatt_cycling_power_control_point_chain_length , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 8 : proto_tree_add_item ( tree , hf_btatt_cycling_power_control_point_chain_weight , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 10 : proto_tree_add_item ( tree , hf_btatt_cycling_power_control_point_span_length , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 13 : proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_cycling_power_control_point_content_mask , ett_btatt_value , hfx_btatt_cycling_power_control_point_content_mask , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 3 : case 5 : case 7 : case 9 : case 11 : case 12 : case 14 : case 15 : break ;\n case 32 : proto_tree_add_item ( tree , hf_btatt_cycling_power_control_point_request_opcode , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_cycling_power_control_point_response_value , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n switch ( tvb_get_guint8 ( tvb , offset - 2 ) ) {\n case 1 : case 2 : case 4 : case 6 : case 8 : case 10 : case 13 : break ;\n case 3 : if ( tvb_get_guint8 ( tvb , offset - 1 ) == 0x01 ) {\n while ( tvb_captured_length_remaining ( tvb , offset ) ) {\n proto_tree_add_item ( tree , hf_btatt_sensor_location , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n }\n break ;\n case 5 : if ( tvb_get_guint8 ( tvb , offset - 1 ) == 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_control_point_crank_length , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 7 : if ( tvb_get_guint8 ( tvb , offset - 1 ) == 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_control_point_chain_length , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 9 : if ( tvb_get_guint8 ( tvb , offset - 1 ) == 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_control_point_chain_weight , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 11 : if ( tvb_get_guint8 ( tvb , offset - 1 ) == 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_control_point_span_length , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 12 : if ( tvb_get_guint8 ( tvb , offset - 1 ) == 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_control_point_start_offset_compensation , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 14 : if ( tvb_get_guint8 ( tvb , offset - 1 ) == 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_control_point_sampling_rate , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n break ;\n case 15 : if ( tvb_get_guint8 ( tvb , offset - 1 ) == 0x01 ) {\n sub_item = proto_tree_add_item ( tree , hf_btatt_cycling_power_control_point_factory_calibration_date , tvb , offset , 7 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n proto_tree_add_item ( sub_tree , hf_btatt_year , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_month , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_day , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_hours , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_minutes , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_seconds , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n break ;\n }\n break ;\n }\n break ;\n case 0x2A67 : if ( service_uuid . bt_uuid == GATT_SERVICE_LOCATION_AND_NAVIGATION ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_location_and_speed_flags , ett_btatt_value , hfx_btatt_location_and_speed_flags , ENC_LITTLE_ENDIAN ) ;\n flags = tvb_get_guint16 ( tvb , offset , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( flags & 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_location_and_speed_instantaneous_speed , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x02 ) {\n proto_tree_add_item ( tree , hf_btatt_location_and_speed_total_distance , tvb , offset , 3 , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n }\n if ( flags & 0x04 ) {\n proto_tree_add_item ( tree , hf_btatt_location_and_speed_location_latitude , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_btatt_location_and_speed_location_longitude , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n }\n if ( flags & 0x08 ) {\n proto_tree_add_item ( tree , hf_btatt_location_and_speed_elevation , tvb , offset , 3 , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n }\n if ( flags & 0x10 ) {\n proto_tree_add_item ( tree , hf_btatt_location_and_speed_heading , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x20 ) {\n proto_tree_add_item ( tree , hf_btatt_location_and_speed_rolling_time , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x40 ) {\n sub_item = proto_tree_add_item ( tree , hf_btatt_location_and_speed_utc_time , tvb , offset , 7 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n proto_tree_add_item ( sub_tree , hf_btatt_year , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_month , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_day , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_hours , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_minutes , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_seconds , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n break ;\n case 0x2A68 : if ( service_uuid . bt_uuid == GATT_SERVICE_LOCATION_AND_NAVIGATION ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_navigation_flags , ett_btatt_value , hfx_btatt_navigation_flags , ENC_LITTLE_ENDIAN ) ;\n flags = tvb_get_guint16 ( tvb , offset , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_navigation_bearing , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_navigation_heading , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( flags & 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_navigation_remaining_distance , tvb , offset , 3 , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n }\n if ( flags & 0x02 ) {\n proto_tree_add_item ( tree , hf_btatt_navigation_remaining_vertical_distance , tvb , offset , 3 , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n }\n if ( flags & 0x04 ) {\n sub_item = proto_tree_add_item ( tree , hf_btatt_navigation_estimated_time_of_arrival , tvb , offset , 7 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n proto_tree_add_item ( sub_tree , hf_btatt_year , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_month , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_day , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_hours , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_minutes , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_seconds , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n break ;\n case 0x2A69 : if ( service_uuid . bt_uuid == GATT_SERVICE_LOCATION_AND_NAVIGATION ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_position_quality_flags , ett_btatt_value , hfx_btatt_position_quality_flags , ENC_LITTLE_ENDIAN ) ;\n flags = tvb_get_guint16 ( tvb , offset , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( flags & 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_position_quality_number_of_beacons_in_solution , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x02 ) {\n proto_tree_add_item ( tree , hf_btatt_position_quality_number_of_beacons_in_view , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x04 ) {\n proto_tree_add_item ( tree , hf_btatt_position_quality_time_to_first_fix , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x08 ) {\n proto_tree_add_item ( tree , hf_btatt_position_quality_ehpe , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n }\n if ( flags & 0x10 ) {\n proto_tree_add_item ( tree , hf_btatt_position_quality_evpe , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n }\n if ( flags & 0x20 ) {\n proto_tree_add_item ( tree , hf_btatt_position_quality_hdop , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x40 ) {\n proto_tree_add_item ( tree , hf_btatt_position_quality_vdop , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n break ;\n case 0x2A6A : if ( service_uuid . bt_uuid == GATT_SERVICE_LOCATION_AND_NAVIGATION ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_ln_feature , ett_btatt_value , hfx_btatt_ln_feature , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n break ;\n case 0x2A6B : if ( service_uuid . bt_uuid == GATT_SERVICE_LOCATION_AND_NAVIGATION ) {\n if ( is_writeable_response ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_ln_control_point_opcode , tvb , offset , 1 , ENC_NA ) ;\n opcode = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n switch ( opcode ) {\n case 1 : proto_tree_add_item ( tree , hf_btatt_ln_control_point_cumulative_value , tvb , offset , 3 , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n break ;\n case 2 : proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_ln_control_point_content_mask , ett_btatt_value , hfx_btatt_ln_control_point_content_mask , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 3 : proto_tree_add_item ( tree , hf_btatt_ln_control_point_navigation_control , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 4 : break ;\n case 5 : case 6 : proto_tree_add_item ( tree , hf_btatt_ln_control_point_route_number , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 7 : proto_tree_add_item ( tree , hf_btatt_ln_control_point_fix_rate , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 8 : proto_tree_add_item ( tree , hf_btatt_ln_control_point_elevation , tvb , offset , 3 , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n break ;\n case 32 : proto_tree_add_item ( tree , hf_btatt_ln_control_point_request_opcode , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_ln_control_point_response_value , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n switch ( tvb_get_guint8 ( tvb , offset - 2 ) ) {\n case 1 : case 2 : case 3 : case 6 : case 7 : case 8 : break ;\n case 4 : proto_tree_add_item ( tree , hf_btatt_ln_control_point_response_value_number_of_routes , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 5 : proto_tree_add_item ( tree , hf_btatt_ln_control_point_response_value_name_of_route , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n }\n break ;\n }\n break ;\n case 0x2A6C : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_elevation , tvb , offset , 3 , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n break ;\n case 0x2A6D : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_pressure , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n break ;\n case 0x2A6E : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_temperature , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A6F : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_humidity , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A70 : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_true_wind_speed , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A71 : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_true_wind_direction , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A72 : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_apparent_wind_speed , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A73 : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_apparent_wind_direction , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A74 : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_gust_factor , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A75 : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_pollen_concentration , tvb , offset , 3 , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n break ;\n case 0x2A76 : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_uv_index , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A77 : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_irradiance , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A78 : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_rainfall , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A79 : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_wind_chill , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A7A : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_heart_index , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A7B : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_dew_point , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A7D : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_descriptor_value_changed_flags , ett_btatt_value , hfx_btatt_descriptor_value_changed_flags , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( tvb_reported_length_remaining ( tvb , offset ) == 2 ) {\n proto_tree_add_item ( tree , hf_btatt_uuid16 , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n else if ( tvb_reported_length_remaining ( tvb , offset ) == 16 ) {\n proto_tree_add_item ( tree , hf_btatt_uuid128 , tvb , offset , 16 , ENC_NA ) ;\n offset += 16 ;\n }\n else {\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_bad_data ) ;\n offset = tvb_captured_length ( tvb ) ;\n }\n break ;\n case 0x2A7E : if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_aerobic_heart_rate_lower_limit , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A7F : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_aerobic_threshold , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A80 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_age , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A81 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_anaerobic_heart_rate_lower_limit , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A82 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_anaerobic_heart_rate_upper_limit , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A83 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_anaerobic_threshold , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A84 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_aerobic_heart_rate_upper_limit , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A85 : case 0x2A86 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_year , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_month , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_day , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A87 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_email_address , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2A88 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_fat_burn_heart_rate_lower_limit , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A89 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_fat_burn_heart_rate_upper_limit , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A8A : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_first_name , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2A8B : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_five_zone_heart_rate_limits_very_light_light_limit , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_five_zone_heart_rate_limits_light_moderate_limit , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_five_zone_heart_rate_limits_moderate_hard_limit , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_five_zone_heart_rate_limits_hard_maximum_limit , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A8C : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_gender , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A8D : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_heart_rate_max , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A8E : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_height , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A8F : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_hip_circumference , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A90 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_last_name , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2A91 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_maximum_recommended_heart_rate , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A92 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_resting_heart_rate , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A93 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_sport_type_for_aerobic_and_anaerobic_thresholds , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A94 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_three_zone_heart_rate_limits_light_moderate , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_three_zone_heart_rate_limits_moderate_hard , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A95 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_two_zone_heart_rate_limit_fat_burn_fitness , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A96 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_vo2_max , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A97 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_waist_circumference , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A98 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_weight , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A99 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_database_change_increment , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n break ;\n case 0x2A9A : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_user_index , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A9B : if ( service_uuid . bt_uuid == GATT_SERVICE_BODY_COMPOSITION ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_body_composition_feature , ett_btatt_value , hfx_btatt_body_composition_feature , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n break ;\n case 0x2A9C : if ( service_uuid . bt_uuid == GATT_SERVICE_BODY_COMPOSITION ) {\n if ( att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_body_composition_measurement_flags , ett_btatt_value , hfx_btatt_body_composition_measurement_flags , ENC_LITTLE_ENDIAN ) ;\n flags = tvb_get_guint16 ( tvb , offset , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_body_composition_measurement_body_fat_percentage , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( flags & 0x02 ) {\n sub_item = proto_tree_add_item ( tree , hf_btatt_body_composition_measurement_timestamp , tvb , offset , 7 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n proto_tree_add_item ( sub_tree , hf_btatt_year , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_month , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_day , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_hours , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_minutes , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_seconds , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x04 ) {\n proto_tree_add_item ( tree , hf_btatt_body_composition_measurement_user_id , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x08 ) {\n proto_tree_add_item ( sub_tree , hf_btatt_body_composition_measurement_basal_metabolism , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x10 ) {\n proto_tree_add_item ( sub_tree , hf_btatt_body_composition_measurement_muscle_percentage , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x20 ) {\n if ( flags & 0x01 ) proto_tree_add_item ( sub_tree , hf_btatt_body_composition_measurement_muscle_mass_lb , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n else proto_tree_add_item ( sub_tree , hf_btatt_body_composition_measurement_muscle_mass_kg , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x40 ) {\n if ( flags & 0x01 ) proto_tree_add_item ( sub_tree , hf_btatt_body_composition_measurement_fat_free_mass_lb , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n else proto_tree_add_item ( sub_tree , hf_btatt_body_composition_measurement_fat_free_mass_kg , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x80 ) {\n if ( flags & 0x01 ) proto_tree_add_item ( sub_tree , hf_btatt_body_composition_measurement_soft_lean_mass_lb , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n else proto_tree_add_item ( sub_tree , hf_btatt_body_composition_measurement_soft_lean_mass_kg , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x100 ) {\n if ( flags & 0x01 ) proto_tree_add_item ( sub_tree , hf_btatt_body_composition_measurement_body_water_mass_lb , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n else proto_tree_add_item ( sub_tree , hf_btatt_body_composition_measurement_body_water_mass_kg , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x200 ) {\n proto_tree_add_item ( sub_tree , hf_btatt_body_composition_measurement_impedance , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x400 ) {\n if ( flags & 0x01 ) proto_tree_add_item ( sub_tree , hf_btatt_body_composition_measurement_weight_lb , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n else proto_tree_add_item ( sub_tree , hf_btatt_body_composition_measurement_weight_kg , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x800 ) {\n if ( flags & 0x01 ) proto_tree_add_item ( sub_tree , hf_btatt_body_composition_measurement_height_inches , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n else proto_tree_add_item ( sub_tree , hf_btatt_body_composition_measurement_height_meter , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x2A9D : if ( service_uuid . bt_uuid == GATT_SERVICE_WEIGHT_SCALE ) {\n if ( is_writeable_response ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_weight_measurement_flags , ett_btatt_value , hfx_btatt_weight_measurement_flags , ENC_NA ) ;\n flags = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n if ( flags & 0x01 ) proto_tree_add_item ( tree , hf_btatt_weight_measurement_weight_lb , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n else proto_tree_add_item ( tree , hf_btatt_weight_measurement_weight_kg , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( flags & 0x02 ) {\n sub_item = proto_tree_add_item ( tree , hf_btatt_weight_measurement_timestamp , tvb , offset , 7 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n proto_tree_add_item ( sub_tree , hf_btatt_year , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_month , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_day , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_hours , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_minutes , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_seconds , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x04 ) {\n proto_tree_add_item ( tree , hf_btatt_weight_measurement_user_id , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x08 ) {\n proto_tree_add_item ( sub_tree , hf_btatt_weight_measurement_bmi , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( flags & 0x01 ) proto_tree_add_item ( sub_tree , hf_btatt_weight_measurement_height_in , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n else proto_tree_add_item ( sub_tree , hf_btatt_weight_measurement_height_m , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x2A9E : if ( service_uuid . bt_uuid == GATT_SERVICE_WEIGHT_SCALE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_weight_scale_feature , ett_btatt_value , hfx_btatt_weight_scale_feature , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n break ;\n case 0x2A9F : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_writeable_response ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_user_control_point_opcode , tvb , offset , 1 , ENC_NA ) ;\n opcode = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n switch ( opcode ) {\n case 0x01 : sub_item = proto_tree_add_item ( tree , hf_btatt_user_control_point_consent_code , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n value = tvb_get_guint16 ( tvb , offset , ENC_LITTLE_ENDIAN ) ;\n if ( value > 9999 ) expert_add_info ( pinfo , sub_item , & ei_btatt_consent_out_of_bounds ) ;\n offset += 2 ;\n break ;\n case 0x02 : proto_tree_add_item ( tree , hf_btatt_user_index , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_user_control_point_consent_code , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n value = tvb_get_guint16 ( tvb , offset , ENC_LITTLE_ENDIAN ) ;\n if ( value > 9999 ) expert_add_info ( pinfo , sub_item , & ei_btatt_consent_out_of_bounds ) ;\n offset += 2 ;\n break ;\n case 0x03 : break ;\n case 0x20 : proto_tree_add_item ( tree , hf_btatt_user_control_point_request_opcode , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_user_control_point_response_value , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n if ( tvb_get_guint8 ( tvb , offset - 2 ) == 0x01 && tvb_get_guint8 ( tvb , offset - 1 ) == 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_user_index , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n break ;\n }\n break ;\n case 0x2AA0 : case 0x2AA1 : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_magnetic_flux_density_x , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_magnetic_flux_density_y , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( uuid . bt_uuid == 0x2AA1 ) {\n proto_tree_add_item ( tree , hf_btatt_magnetic_flux_density_z , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x2AA2 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_language , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2AA3 : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_barometric_pressure_trend , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2AA4 : if ( service_uuid . bt_uuid == GATT_SERVICE_BOND_MANAGEMENT ) {\n if ( is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_bond_management_control_point_opcode , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n proto_tree_add_item ( tree , hf_btatt_bond_management_control_point_authorization_code , tvb , offset , length - 1 , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_reported_length_remaining ( tvb , offset ) ;\n }\n break ;\n case 0x2AA5 : if ( service_uuid . bt_uuid == GATT_SERVICE_BOND_MANAGEMENT ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_bond_management_feature , ett_btatt_value , hfx_btatt_bond_management_feature , ENC_LITTLE_ENDIAN ) ;\n flags = tvb_get_guint24 ( tvb , offset , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n if ( flags & 0x800000 ) {\n do {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_bond_management_feature_nth , ett_btatt_value , hfx_btatt_bond_management_feature_nth , ENC_LITTLE_ENDIAN ) ;\n offset += 1 ;\n }\n while ( tvb_get_guint8 ( tvb , offset - 1 ) & 0x80 ) ;\n }\n break ;\n case 0x2AA6 : if ( service_uuid . bt_uuid == GATT_SERVICE_GENERIC_ACCESS_PROFILE ) {\n if ( ! ( is_readable_request ( att_data -> opcode ) || is_readable_response ( att_data -> opcode ) ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_central_address_resolution , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2AA7 : if ( service_uuid . bt_uuid == GATT_SERVICE_CONTINUOUS_GLUCOSE_MONITORING ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_cgm_measurement_size , tvb , offset , 1 , ENC_NA ) ;\n if ( tvb_get_guint8 ( tvb , offset ) >= 6 ) expert_add_info ( pinfo , sub_item , & ei_btatt_cgm_size_too_small ) ;\n offset += 1 ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_cgm_measurement_flags , ett_btatt_value , hfx_btatt_cgm_measurement_flags , ENC_NA ) ;\n flags = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_cgm_measurement_glucose_concentration , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_cgm_measurement_time_offset , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( flags & 0xE0 ) {\n value = 0 ;\n if ( flags & 0x80 ) value += 1 ;\n if ( flags & 0x40 ) value += 1 ;\n if ( flags & 0x20 ) value += 1 ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_cgm_sensor_status_annunciation , tvb , offset , value , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n }\n if ( flags & 0x80 ) {\n proto_tree_add_bitmask ( sub_tree , tvb , offset , hf_btatt_cgm_sensor_status_annunciation_status , ett_btatt_value , hfx_btatt_cgm_sensor_status_annunciation_status , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x40 ) {\n proto_tree_add_bitmask ( sub_tree , tvb , offset , hf_btatt_cgm_sensor_status_annunciation_cal_temp , ett_btatt_value , hfx_btatt_cgm_sensor_status_annunciation_cal_temp , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x20 ) {\n proto_tree_add_bitmask ( sub_tree , tvb , offset , hf_btatt_cgm_sensor_status_annunciation_warning , ett_btatt_value , hfx_btatt_cgm_sensor_status_annunciation_warning , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_cgm_measurement_trend_information , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x02 ) {\n proto_tree_add_item ( tree , hf_btatt_cgm_measurement_quality , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( tvb_reported_length_remaining ( tvb , offset ) >= 2 ) {\n proto_tree_add_item ( tree , hf_btatt_cgm_e2e_crc , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x2AA8 : if ( service_uuid . bt_uuid == GATT_SERVICE_CONTINUOUS_GLUCOSE_MONITORING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_cgm_feature_feature , ett_btatt_value , hfx_btatt_cgm_feature_feature , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_cgm_type_and_sample_location , ett_btatt_value , hfx_btatt_cgm_type_and_sample_location , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_cgm_e2e_crc , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2AA9 : if ( service_uuid . bt_uuid == GATT_SERVICE_CONTINUOUS_GLUCOSE_MONITORING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_cgm_time_offset , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_cgm_status , tvb , offset , 3 , ENC_LITTLE_ENDIAN ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n proto_tree_add_bitmask ( sub_tree , tvb , offset , hf_btatt_cgm_sensor_status_annunciation_status , ett_btatt_value , hfx_btatt_cgm_sensor_status_annunciation_status , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_bitmask ( sub_tree , tvb , offset , hf_btatt_cgm_sensor_status_annunciation_cal_temp , ett_btatt_value , hfx_btatt_cgm_sensor_status_annunciation_cal_temp , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_bitmask ( sub_tree , tvb , offset , hf_btatt_cgm_sensor_status_annunciation_warning , ett_btatt_value , hfx_btatt_cgm_sensor_status_annunciation_warning , ENC_NA ) ;\n offset += 1 ;\n if ( tvb_reported_length_remaining ( tvb , offset ) >= 2 ) {\n proto_tree_add_item ( tree , hf_btatt_cgm_e2e_crc , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x2AAA : if ( service_uuid . bt_uuid == GATT_SERVICE_CONTINUOUS_GLUCOSE_MONITORING ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_cgm_session_start_time , tvb , offset , 7 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n proto_tree_add_item ( sub_tree , hf_btatt_year , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_month , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_day , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_hours , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_minutes , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_seconds , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_timezone , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_dst_offset , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n if ( tvb_reported_length_remaining ( tvb , offset ) >= 2 ) {\n proto_tree_add_item ( tree , hf_btatt_cgm_e2e_crc , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x2AAB : if ( service_uuid . bt_uuid == GATT_SERVICE_CONTINUOUS_GLUCOSE_MONITORING ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_cgm_session_run_time , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( tvb_reported_length_remaining ( tvb , offset ) >= 2 ) {\n proto_tree_add_item ( tree , hf_btatt_cgm_e2e_crc , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x2AAC : if ( service_uuid . bt_uuid == GATT_SERVICE_CONTINUOUS_GLUCOSE_MONITORING ) {\n if ( is_writeable_response ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_cgm_specific_ops_control_point_opcode , tvb , offset , 1 , ENC_NA ) ;\n opcode = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_cgm_specific_ops_control_point_operand , tvb , offset , 0 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n operand_offset = offset ;\n switch ( opcode ) {\n case 1 : proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_operand_communication_interval , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 2 : case 8 : case 11 : case 14 : case 17 : case 20 : case 23 : case 25 : case 26 : case 27 : break ;\n case 4 : proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_calibration_glucose_concentration , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_calibration_time , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_bitmask ( sub_tree , tvb , offset , hf_btatt_cgm_type_and_sample_location , ett_btatt_value , hfx_btatt_cgm_type_and_sample_location , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_next_calibration_time , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_calibration_data_record_number , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_bitmask ( sub_tree , tvb , offset , hf_btatt_cgm_specific_ops_control_point_calibration_status , ett_btatt_value , hfx_btatt_cgm_specific_ops_control_point_calibration_status , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 5 : proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_operand_calibration_data_record_number , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 7 : case 10 : case 13 : case 16 : proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_operand_alert_level , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 19 : case 22 : proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_operand_alert_level_rate , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 3 : case 6 : case 9 : case 12 : case 15 : case 18 : case 21 : case 24 : expert_add_info ( pinfo , sub_item , & ei_btatt_opcode_invalid_request ) ;\n break ;\n case 28 : proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_request_opcode , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_response_code , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n switch ( tvb_get_guint8 ( tvb , offset - 2 ) ) {\n case 1 : case 2 : case 4 : case 5 : case 7 : case 8 : case 10 : case 11 : case 13 : case 14 : case 16 : case 17 : case 19 : case 20 : case 22 : case 23 : case 25 : case 26 : case 27 : expert_add_info ( pinfo , sub_item , & ei_btatt_opcode_invalid_response ) ;\n break ;\n case 3 : proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_operand_communication_interval , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 6 : proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_calibration_glucose_concentration , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_calibration_time , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_bitmask ( sub_tree , tvb , offset , hf_btatt_cgm_type_and_sample_location , ett_btatt_value , hfx_btatt_cgm_type_and_sample_location , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_next_calibration_time , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_calibration_data_record_number , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_bitmask ( sub_tree , tvb , offset , hf_btatt_cgm_specific_ops_control_point_calibration_status , ett_btatt_value , hfx_btatt_cgm_specific_ops_control_point_calibration_status , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 9 : case 12 : case 15 : case 18 : proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_operand_alert_level , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 21 : case 24 : proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_operand_alert_level_rate , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n }\n break ;\n }\n ;\n proto_item_set_len ( sub_item , offset - operand_offset ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) >= 2 ) {\n proto_tree_add_item ( tree , hf_btatt_cgm_e2e_crc , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x2AAD : if ( service_uuid . bt_uuid == GATT_SERVICE_INDOOR_POSITIONING ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_WRITE_COMMAND ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_indoor_positioning_configuration , ett_btatt_value , hfx_btatt_indoor_positioning_configuration , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2AAE : if ( service_uuid . bt_uuid == GATT_SERVICE_INDOOR_POSITIONING ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_WRITE_COMMAND ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_latitude , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n break ;\n case 0x2AAF : if ( service_uuid . bt_uuid == GATT_SERVICE_INDOOR_POSITIONING ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_WRITE_COMMAND ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_longitude , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n break ;\n case 0x2AB0 : if ( service_uuid . bt_uuid == GATT_SERVICE_INDOOR_POSITIONING ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_WRITE_COMMAND ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_local_north_coordinate , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2AB1 : if ( service_uuid . bt_uuid == GATT_SERVICE_INDOOR_POSITIONING ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_WRITE_COMMAND ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_local_east_coordinate , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2AB2 : if ( service_uuid . bt_uuid == GATT_SERVICE_INDOOR_POSITIONING ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_WRITE_COMMAND ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_floor_number , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2AB3 : if ( service_uuid . bt_uuid == GATT_SERVICE_INDOOR_POSITIONING ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_WRITE_COMMAND ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_altitude , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2AB4 : if ( service_uuid . bt_uuid == GATT_SERVICE_INDOOR_POSITIONING ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_WRITE_COMMAND ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_uncertainty , ett_btatt_value , hfx_btatt_uncertainty , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2AB5 : if ( service_uuid . bt_uuid == GATT_SERVICE_INDOOR_POSITIONING ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_WRITE_COMMAND ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_location_name , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2AB6 : if ( service_uuid . bt_uuid == GATT_SERVICE_HTTP_PROXY ) {\n if ( is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_uri , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2AB7 : if ( service_uuid . bt_uuid == GATT_SERVICE_HTTP_PROXY ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_http_headers , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_value ) ;\n call_dissector ( http_handle , tvb_new_subset_remaining ( tvb , offset ) , pinfo , sub_tree ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2AB8 : if ( service_uuid . bt_uuid == GATT_SERVICE_HTTP_PROXY ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_http_status_code , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_http_data_status , ett_btatt_value , hfx_btatt_http_data_status , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2AB9 : if ( service_uuid . bt_uuid == GATT_SERVICE_HTTP_PROXY ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_http_entity_body , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2ABA : if ( service_uuid . bt_uuid == GATT_SERVICE_HTTP_PROXY ) {\n if ( is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_http_control_point_opcode , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2ABB : if ( service_uuid . bt_uuid == GATT_SERVICE_HTTP_PROXY ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_https_security , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2ABC : if ( service_uuid . bt_uuid == GATT_SERVICE_TRANSPORT_DISCOVERY ) {\n if ( is_writeable_response ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_tds_opcode , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n if ( att_data -> opcode == 0x1B || att_data -> opcode == 0x1D ) {\n proto_tree_add_item ( tree , hf_btatt_tds_result_code , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n else {\n proto_tree_add_item ( tree , hf_btatt_tds_organization_id , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n proto_tree_add_item ( tree , hf_btatt_tds_data , tvb , offset , tvb_reported_length_remaining ( tvb , offset ) , ENC_NA ) ;\n offset += tvb_reported_length_remaining ( tvb , offset ) ;\n }\n break ;\n case 0x2ABD : if ( service_uuid . bt_uuid == GATT_SERVICE_OBJECT_TRANSFER ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_ots_feature_oacp , ett_btatt_value , hfx_btatt_ots_feature_oacp , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_ots_feature_olcp , ett_btatt_value , hfx_btatt_ots_feature_olcp , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n break ;\n case 0x2ABE : if ( service_uuid . bt_uuid == GATT_SERVICE_OBJECT_TRANSFER ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_ots_object_name , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2ABF : if ( service_uuid . bt_uuid == GATT_SERVICE_OBJECT_TRANSFER ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n offset = dissect_gatt_uuid ( tree , pinfo , tvb , offset ) ;\n break ;\n case 0x2AC0 : if ( service_uuid . bt_uuid == GATT_SERVICE_OBJECT_TRANSFER ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_ots_current_size , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_btatt_ots_allocated_size , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n break ;\n case 0x2AC1 : if ( service_uuid . bt_uuid == GATT_SERVICE_OBJECT_TRANSFER ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_ots_object_first_created , tvb , offset , 7 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_value ) ;\n btatt_call_dissector_by_dissector_name_with_data ( \"btgatt.uuid0x2a08\" , tvb_new_subset_length_caplen ( tvb , offset , 7 , 7 ) , pinfo , sub_tree , att_data ) ;\n offset += 7 ;\n break ;\n case 0x2AC2 : if ( service_uuid . bt_uuid == GATT_SERVICE_OBJECT_TRANSFER ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_ots_object_last_modified , tvb , offset , 7 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_value ) ;\n btatt_call_dissector_by_dissector_name_with_data ( \"btgatt.uuid0x2a08\" , tvb_new_subset_length_caplen ( tvb , offset , 7 , 7 ) , pinfo , sub_tree , att_data ) ;\n offset += 7 ;\n break ;\n case 0x2AC3 : if ( service_uuid . bt_uuid == GATT_SERVICE_OBJECT_TRANSFER ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_ots_object_id , tvb , offset , 6 , ENC_LITTLE_ENDIAN ) ;\n offset += 6 ;\n break ;\n case 0x2AC4 : if ( service_uuid . bt_uuid == GATT_SERVICE_OBJECT_TRANSFER ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_ots_properties , ett_btatt_value , hfx_btatt_ots_properties , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n break ;\n case 0x2AC5 : if ( service_uuid . bt_uuid == GATT_SERVICE_OBJECT_TRANSFER ) {\n if ( is_writeable_response ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_ots_action_opcode , tvb , offset , 1 , ENC_NA ) ;\n opcode = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n switch ( opcode ) {\n case 0x01 : proto_tree_add_item ( tree , hf_btatt_ots_size , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n offset = dissect_gatt_uuid ( tree , pinfo , tvb , offset ) ;\n break ;\n case 0x02 : case 0x07 : break ;\n case 0x03 : case 0x05 : case 0x06 : proto_tree_add_item ( tree , hf_btatt_ots_offset , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_btatt_ots_length , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n break ;\n case 0x04 : if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n proto_tree_add_item ( tree , hf_btatt_ots_execute_data , tvb , offset , tvb_reported_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_reported_length_remaining ( tvb , offset ) ;\n }\n break ;\n case 0x60 : proto_tree_add_item ( tree , hf_btatt_ots_action_response_opcode , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_ots_action_result_code , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n switch ( tvb_get_guint8 ( tvb , offset ) ) {\n case 0x01 : case 0x02 : case 0x05 : case 0x06 : case 0x07 : case 0x60 : break ;\n case 0x03 : proto_tree_add_checksum ( tree , tvb , offset , hf_btatt_ots_checksum , - 1 , NULL , pinfo , 0 , ENC_BIG_ENDIAN , PROTO_CHECKSUM_NO_FLAGS ) ;\n offset += 4 ;\n break ;\n case 0x04 : if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n proto_tree_add_item ( tree , hf_btatt_ots_execute_data , tvb , offset , tvb_reported_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_reported_length_remaining ( tvb , offset ) ;\n }\n break ;\n }\n }\n break ;\n case 0x2AC6 : if ( service_uuid . bt_uuid == GATT_SERVICE_OBJECT_TRANSFER ) {\n if ( is_writeable_response ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_ots_list_opcode , tvb , offset , 1 , ENC_NA ) ;\n opcode = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n switch ( opcode ) {\n case 0x01 : case 0x02 : case 0x03 : case 0x04 : case 0x07 : case 0x08 : break ;\n case 0x05 : proto_tree_add_item ( tree , hf_btatt_ots_object_id , tvb , offset , 6 , ENC_LITTLE_ENDIAN ) ;\n offset += 6 ;\n break ;\n case 0x06 : proto_tree_add_item ( tree , hf_btatt_ots_list_order , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x70 : proto_tree_add_item ( tree , hf_btatt_ots_list_response_opcode , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_ots_list_result_code , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n switch ( tvb_get_guint8 ( tvb , offset - 2 ) ) {\n case 0x01 : case 0x02 : case 0x03 : case 0x04 : case 0x05 : case 0x06 : case 0x08 : case 0x70 : break ;\n case 0x07 : proto_tree_add_item ( tree , hf_btatt_ots_list_total_number_of_objects , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n }\n }\n break ;\n case 0x2AC7 : if ( service_uuid . bt_uuid == GATT_SERVICE_OBJECT_TRANSFER ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_ots_filter , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n switch ( tvb_get_guint8 ( tvb , offset - 1 ) ) {\n case 0x00 : case 0x0A : break ;\n case 0x01 : case 0x02 : case 0x03 : case 0x04 : proto_tree_add_item ( tree , hf_btatt_ots_name_string , tvb , offset , tvb_reported_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_reported_length_remaining ( tvb , offset ) ;\n break ;\n case 0x05 : offset = dissect_gatt_uuid ( tree , pinfo , tvb , offset ) ;\n break ;\n case 0x06 : case 0x07 : btatt_call_dissector_by_dissector_name_with_data ( \"btgatt.uuid0x2a08\" , tvb_new_subset_length_caplen ( tvb , offset , 7 , 7 ) , pinfo , tree , att_data ) ;\n offset += 7 ;\n btatt_call_dissector_by_dissector_name_with_data ( \"btgatt.uuid0x2a08\" , tvb_new_subset_length_caplen ( tvb , offset , 7 , 7 ) , pinfo , tree , att_data ) ;\n offset += 7 ;\n break ;\n case 0x08 : case 0x09 : proto_tree_add_item ( tree , hf_btatt_ots_size_from , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_btatt_ots_size_to , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n break ;\n }\n break ;\n case 0x2AC8 : if ( service_uuid . bt_uuid == GATT_SERVICE_OBJECT_TRANSFER ) {\n if ( att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_ots_flags , ett_btatt_value , hfx_btatt_ots_flags , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_ots_object_id , tvb , offset , 6 , ENC_LITTLE_ENDIAN ) ;\n offset += 6 ;\n break ;\n case 0x2AC9 : if ( service_uuid . bt_uuid == GATT_SERVICE_GENERIC_ACCESS_PROFILE ) {\n if ( ! ( is_readable_request ( att_data -> opcode ) || is_readable_response ( att_data -> opcode ) ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_resolvable_private_address , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2ACC : if ( service_uuid . bt_uuid == GATT_SERVICE_FITNESS_MACHINE ) {\n if ( ! ( is_readable_request ( att_data -> opcode ) || is_readable_response ( att_data -> opcode ) ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_undecoded ) ;\n offset = tvb_captured_length ( tvb ) ;\n break ;\n case 0x2ACD : if ( service_uuid . bt_uuid == GATT_SERVICE_FITNESS_MACHINE ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_undecoded ) ;\n offset = tvb_captured_length ( tvb ) ;\n break ;\n case 0x2ACE : if ( service_uuid . bt_uuid == GATT_SERVICE_FITNESS_MACHINE ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_undecoded ) ;\n offset = tvb_captured_length ( tvb ) ;\n break ;\n case 0x2ACF : if ( service_uuid . bt_uuid == GATT_SERVICE_FITNESS_MACHINE ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_undecoded ) ;\n offset = tvb_captured_length ( tvb ) ;\n break ;\n case 0x2AD0 : if ( service_uuid . bt_uuid == GATT_SERVICE_FITNESS_MACHINE ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_undecoded ) ;\n offset = tvb_captured_length ( tvb ) ;\n break ;\n case 0x2AD1 : if ( service_uuid . bt_uuid == GATT_SERVICE_FITNESS_MACHINE ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_undecoded ) ;\n offset = tvb_captured_length ( tvb ) ;\n break ;\n case 0x2AD2 : if ( service_uuid . bt_uuid == GATT_SERVICE_FITNESS_MACHINE ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_undecoded ) ;\n offset = tvb_captured_length ( tvb ) ;\n break ;\n case 0x2AD3 : if ( service_uuid . bt_uuid == GATT_SERVICE_FITNESS_MACHINE ) {\n if ( ! ( is_readable_request ( att_data -> opcode ) || is_readable_response ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_undecoded ) ;\n offset = tvb_captured_length ( tvb ) ;\n break ;\n case 0x2AD4 : if ( service_uuid . bt_uuid == GATT_SERVICE_FITNESS_MACHINE ) {\n if ( ! ( is_readable_request ( att_data -> opcode ) || is_readable_response ( att_data -> opcode ) ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_undecoded ) ;\n offset = tvb_captured_length ( tvb ) ;\n break ;\n case 0x2AD5 : if ( service_uuid . bt_uuid == GATT_SERVICE_FITNESS_MACHINE ) {\n if ( ! ( is_readable_request ( att_data -> opcode ) || is_readable_response ( att_data -> opcode ) ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_undecoded ) ;\n offset = tvb_captured_length ( tvb ) ;\n break ;\n case 0x2AD6 : if ( service_uuid . bt_uuid == GATT_SERVICE_FITNESS_MACHINE ) {\n if ( ! ( is_readable_request ( att_data -> opcode ) || is_readable_response ( att_data -> opcode ) ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_undecoded ) ;\n offset = tvb_captured_length ( tvb ) ;\n break ;\n case 0x2AD7 : if ( service_uuid . bt_uuid == GATT_SERVICE_FITNESS_MACHINE ) {\n if ( ! ( is_readable_request ( att_data -> opcode ) || is_readable_response ( att_data -> opcode ) ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_undecoded ) ;\n offset = tvb_captured_length ( tvb ) ;\n break ;\n case 0x2AD8 : if ( service_uuid . bt_uuid == GATT_SERVICE_FITNESS_MACHINE ) {\n if ( ! ( is_readable_request ( att_data -> opcode ) || is_readable_response ( att_data -> opcode ) ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_undecoded ) ;\n offset = tvb_captured_length ( tvb ) ;\n break ;\n case 0x2AD9 : if ( service_uuid . bt_uuid == GATT_SERVICE_FITNESS_MACHINE ) {\n if ( is_writeable_response ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_undecoded ) ;\n offset = tvb_captured_length ( tvb ) ;\n break ;\n case 0x2ADA : if ( service_uuid . bt_uuid == GATT_SERVICE_FITNESS_MACHINE ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_undecoded ) ;\n offset = tvb_captured_length ( tvb ) ;\n break ;\n case 0x2A1F : case 0x2A20 : case 0x2A2F : case 0x2A30 : case 0x2A3A : case 0x2A3B : case 0x2A3C : case 0x2A3D : case 0x2A3E : case 0x2A57 : case 0x2A59 : case 0x2ADB : case 0x2ADC : case 0x2ADD : case 0x2ADE : case 0x2AE0 : case 0x2AE1 : case 0x2AE2 : case 0x2AE3 : case 0x2AE4 : case 0x2AE5 : case 0x2AE6 : case 0x2AE7 : case 0x2AE8 : case 0x2AE9 : case 0x2AEA : case 0x2AEB : case 0x2AEC : case 0x2AED : case 0x2AEE : case 0x2AEF : case 0x2AF0 : case 0x2AF1 : case 0x2AF2 : case 0x2AF3 : case 0x2AF4 : case 0x2AF5 : case 0x2AF6 : case 0x2AF7 : case 0x2AF8 : case 0x2AF9 : case 0x2AFA : case 0x2AFB : case 0x2AFC : case 0x2AFD : case 0x2AFE : case 0x2AFF : case 0x2B00 : case 0x2B01 : case 0x2B02 : case 0x2B03 : case 0x2B04 : case 0x2B05 : case 0x2B06 : case 0x2B07 : case 0x2B08 : case 0x2B09 : case 0x2B0A : case 0x2B0B : case 0x2B0C : case 0x2B0D : case 0x2B0E : case 0x2B0F : case 0x2B10 : case 0x2B11 : case 0x2B12 : case 0x2B13 : case 0x2B14 : case 0x2B15 : case 0x2B16 : case 0x2B17 : case 0x2B18 : case 0x2B19 : case 0x2B1A : case 0x2B1B : case 0x2B1C : case 0x2B1D : case 0x2B1E : case 0x2B1F : default : if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n offset = tvb_captured_length ( tvb ) ;\n }\n return old_offset + offset ;\n }"}
{"idx": 8404, "target": 0, "func": "static int dissect_h245_T_secondaryEncodingMode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_secondaryEncodingMode , T_secondaryEncodingMode_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 8405, "target": 0, "func": "static size_t wrap_fread ( void * ptr , size_t size , size_t nmemb , FILE * stream ) {\n return fread ( ptr , size , nmemb , stream ) ;\n }"}
{"idx": 8406, "target": 0, "func": "void TSVConnCacheHttpInfoSet ( TSVConn connp , TSCacheHttpInfo infop ) {\n sdk_assert ( sdk_sanity_check_iocore_structure ( connp ) == TS_SUCCESS ) ;\n CacheVC * vc = ( CacheVC * ) connp ;\n if ( vc -> base_stat == cache_scan_active_stat ) {\n vc -> set_http_info ( ( CacheHTTPInfo * ) infop ) ;\n }\n }"}
{"idx": 8407, "target": 0, "func": "static GstFlowReturn gst_asf_demux_process_simple_index ( GstASFDemux * demux , guint8 * data , guint64 size ) {\n GstClockTime interval ;\n guint32 count , i ;\n if ( size < ( 16 + 8 + 4 + 4 ) ) goto not_enough_data ;\n gst_asf_demux_skip_bytes ( 16 , & data , & size ) ;\n interval = gst_asf_demux_get_uint64 ( & data , & size ) * ( GstClockTime ) 100 ;\n gst_asf_demux_skip_bytes ( 4 , & data , & size ) ;\n count = gst_asf_demux_get_uint32 ( & data , & size ) ;\n if ( count > 0 ) {\n demux -> sidx_interval = interval ;\n demux -> sidx_num_entries = count ;\n g_free ( demux -> sidx_entries ) ;\n demux -> sidx_entries = g_new0 ( AsfSimpleIndexEntry , count ) ;\n for ( i = 0 ;\n i < count ;\n ++ i ) {\n if ( G_UNLIKELY ( size < 6 ) ) {\n demux -> sidx_num_entries -= ( count - i ) ;\n break ;\n }\n demux -> sidx_entries [ i ] . packet = gst_asf_demux_get_uint32 ( & data , & size ) ;\n demux -> sidx_entries [ i ] . count = gst_asf_demux_get_uint16 ( & data , & size ) ;\n GST_LOG_OBJECT ( demux , \"%\" GST_TIME_FORMAT \" = packet %4u count : %2d\" , GST_TIME_ARGS ( i * interval ) , demux -> sidx_entries [ i ] . packet , demux -> sidx_entries [ i ] . count ) ;\n }\n }\n else {\n GST_DEBUG_OBJECT ( demux , \"simple index object with 0 entries\" ) ;\n }\n return GST_FLOW_OK ;\n not_enough_data : {\n GST_WARNING_OBJECT ( demux , \"short read parsing simple index object!\" ) ;\n return GST_FLOW_OK ;\n }\n }"}
{"idx": 8408, "target": 0, "func": "static int add_ref_tag ( const char * path , const struct object_id * oid , int flag , void * cb_data ) {\n struct object_id peeled ;\n if ( starts_with ( path , \"refs/tags/\" ) && ! peel_ref ( path , peeled . hash ) && packlist_find ( & to_pack , peeled . hash , NULL ) ) add_object_entry ( oid -> hash , OBJ_TAG , NULL , 0 ) ;\n return 0 ;\n }"}
{"idx": 8409, "target": 1, "func": "static ssize_t virtio_net_receive ( VLANClientState * nc , const uint8_t * buf , size_t size ) {\n VirtIONet * n = DO_UPCAST ( NICState , nc , nc ) -> opaque ;\n struct virtio_net_hdr_mrg_rxbuf * mhdr = NULL ;\n size_t guest_hdr_len , offset , i , host_hdr_len ;\n if ( ! virtio_net_can_receive ( & n -> nic -> nc ) ) return - 1 ;\n guest_hdr_len = n -> mergeable_rx_bufs ? sizeof ( struct virtio_net_hdr_mrg_rxbuf ) : sizeof ( struct virtio_net_hdr ) ;\n host_hdr_len = n -> has_vnet_hdr ? sizeof ( struct virtio_net_hdr ) : 0 ;\n if ( ! virtio_net_has_buffers ( n , size + guest_hdr_len - host_hdr_len ) ) return 0 ;\n if ( ! receive_filter ( n , buf , size ) ) return size ;\n offset = i = 0 ;\n while ( offset < size ) {\n VirtQueueElement elem ;\n int len , total ;\n struct iovec sg [ VIRTQUEUE_MAX_SIZE ] ;\n total = 0 ;\n if ( virtqueue_pop ( n -> rx_vq , & elem ) == 0 ) {\n if ( i == 0 ) return - 1 ;\n error_report ( \"virtio-net unexpected empty queue: \" \"i %zd mergeable %d offset %zd, size %zd, \" \"guest hdr len %zd, host hdr len %zd guest features 0x%x\" , i , n -> mergeable_rx_bufs , offset , size , guest_hdr_len , host_hdr_len , n -> vdev . guest_features ) ;\n exit ( 1 ) ;\n }\n if ( elem . in_num < 1 ) {\n error_report ( \"virtio-net receive queue contains no in buffers\" ) ;\n exit ( 1 ) ;\n }\n if ( ! n -> mergeable_rx_bufs && elem . in_sg [ 0 ] . iov_len != guest_hdr_len ) {\n error_report ( \"virtio-net header not in first element\" ) ;\n exit ( 1 ) ;\n }\n memcpy ( & sg , & elem . in_sg [ 0 ] , sizeof ( sg [ 0 ] ) * elem . in_num ) ;\n if ( i == 0 ) {\n if ( n -> mergeable_rx_bufs ) mhdr = ( struct virtio_net_hdr_mrg_rxbuf * ) sg [ 0 ] . iov_base ;\n offset += receive_header ( n , sg , elem . in_num , buf + offset , size - offset , guest_hdr_len ) ;\n total += guest_hdr_len ;\n }\n len = iov_from_buf ( sg , elem . in_num , buf + offset , 0 , size - offset ) ;\n total += len ;\n offset += len ;\n if ( ! n -> mergeable_rx_bufs && offset < size ) {\n # if 0 error_report ( \"virtio-net truncated non-mergeable packet: \" \"i %zd mergeable %d offset %zd, size %zd, \" \"guest hdr len %zd, host hdr len %zd\" , i , n -> mergeable_rx_bufs , offset , size , guest_hdr_len , host_hdr_len ) ;\n # endif return size ;\n }\n virtqueue_fill ( n -> rx_vq , & elem , total , i ++ ) ;\n }\n if ( mhdr ) {\n stw_p ( & mhdr -> num_buffers , i ) ;\n }\n virtqueue_flush ( n -> rx_vq , i ) ;\n virtio_notify ( & n -> vdev , n -> rx_vq ) ;\n return size ;\n }"}
{"idx": 8410, "target": 0, "func": "static int dissect_nlm_freeall ( tvbuff_t * tvb , int offset , packet_info * pinfo _U_ , proto_tree * tree , int version _U_ ) {\n guint32 nlm_stat ;\n offset = dissect_rpc_string ( tvb , tree , hf_nlm_share_name , offset , NULL ) ;\n nlm_stat = tvb_get_ntohl ( tvb , offset ) ;\n if ( nlm_stat ) {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" %s\" , val_to_str ( nlm_stat , names_nlm_stats , \"Unknown Status (%u)\" ) ) ;\n }\n offset = dissect_rpc_uint32 ( tvb , tree , hf_nlm_stat , offset ) ;\n return offset ;\n }"}
{"idx": 8411, "target": 1, "func": "static void parse_command_line ( int argc , const char * * argv_ , AppInput * app_input , SvcContext * svc_ctx , vpx_codec_enc_cfg_t * enc_cfg ) {\n struct arg arg = {\n 0 }\n ;\n char * * argv = NULL ;\n char * * argi = NULL ;\n char * * argj = NULL ;\n vpx_codec_err_t res ;\n int passes = 0 ;\n int pass = 0 ;\n const char * fpf_file_name = NULL ;\n unsigned int min_bitrate = 0 ;\n unsigned int max_bitrate = 0 ;\n svc_ctx -> log_level = SVC_LOG_DEBUG ;\n svc_ctx -> spatial_layers = default_spatial_layers ;\n svc_ctx -> temporal_layers = default_temporal_layers ;\n res = vpx_codec_enc_config_default ( vpx_codec_vp9_cx ( ) , enc_cfg , 0 ) ;\n if ( res ) {\n die ( \"Failed to get config: %s\\n\" , vpx_codec_err_to_string ( res ) ) ;\n }\n enc_cfg -> g_w = default_width ;\n enc_cfg -> g_h = default_height ;\n enc_cfg -> g_timebase . num = default_timebase_num ;\n enc_cfg -> g_timebase . den = default_timebase_den ;\n enc_cfg -> rc_target_bitrate = default_bitrate ;\n enc_cfg -> kf_min_dist = default_kf_dist ;\n enc_cfg -> kf_max_dist = default_kf_dist ;\n enc_cfg -> rc_end_usage = VPX_CQ ;\n app_input -> frames_to_code = default_frames_to_code ;\n app_input -> frames_to_skip = default_frames_to_skip ;\n argv = argv_dup ( argc - 1 , argv_ + 1 ) ;\n for ( argi = argj = argv ;\n ( * argj = * argi ) ;\n argi += arg . argv_step ) {\n arg . argv_step = 1 ;\n if ( arg_match ( & arg , & frames_arg , argi ) ) {\n app_input -> frames_to_code = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & width_arg , argi ) ) {\n enc_cfg -> g_w = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & height_arg , argi ) ) {\n enc_cfg -> g_h = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & timebase_arg , argi ) ) {\n enc_cfg -> g_timebase = arg_parse_rational ( & arg ) ;\n }\n else if ( arg_match ( & arg , & bitrate_arg , argi ) ) {\n enc_cfg -> rc_target_bitrate = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & skip_frames_arg , argi ) ) {\n app_input -> frames_to_skip = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & spatial_layers_arg , argi ) ) {\n svc_ctx -> spatial_layers = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & temporal_layers_arg , argi ) ) {\n svc_ctx -> temporal_layers = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & kf_dist_arg , argi ) ) {\n enc_cfg -> kf_min_dist = arg_parse_uint ( & arg ) ;\n enc_cfg -> kf_max_dist = enc_cfg -> kf_min_dist ;\n }\n else if ( arg_match ( & arg , & scale_factors_arg , argi ) ) {\n vpx_svc_set_scale_factors ( svc_ctx , arg . val ) ;\n }\n else if ( arg_match ( & arg , & quantizers_arg , argi ) ) {\n vpx_svc_set_quantizers ( svc_ctx , arg . val ) ;\n }\n else if ( arg_match ( & arg , & passes_arg , argi ) ) {\n passes = arg_parse_uint ( & arg ) ;\n if ( passes < 1 || passes > 2 ) {\n die ( \"Error: Invalid number of passes (%d)\\n\" , passes ) ;\n }\n }\n else if ( arg_match ( & arg , & pass_arg , argi ) ) {\n pass = arg_parse_uint ( & arg ) ;\n if ( pass < 1 || pass > 2 ) {\n die ( \"Error: Invalid pass selected (%d)\\n\" , pass ) ;\n }\n }\n else if ( arg_match ( & arg , & fpf_name_arg , argi ) ) {\n fpf_file_name = arg . val ;\n }\n else if ( arg_match ( & arg , & min_q_arg , argi ) ) {\n enc_cfg -> rc_min_quantizer = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & max_q_arg , argi ) ) {\n enc_cfg -> rc_max_quantizer = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & min_bitrate_arg , argi ) ) {\n min_bitrate = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & max_bitrate_arg , argi ) ) {\n max_bitrate = arg_parse_uint ( & arg ) ;\n }\n else {\n ++ argj ;\n }\n }\n if ( passes == 0 || passes == 1 ) {\n if ( pass ) {\n fprintf ( stderr , \"pass is ignored since there's only one pass\\n\" ) ;\n }\n enc_cfg -> g_pass = VPX_RC_ONE_PASS ;\n }\n else {\n if ( pass == 0 ) {\n die ( \"pass must be specified when passes is 2\\n\" ) ;\n }\n if ( fpf_file_name == NULL ) {\n die ( \"fpf must be specified when passes is 2\\n\" ) ;\n }\n if ( pass == 1 ) {\n enc_cfg -> g_pass = VPX_RC_FIRST_PASS ;\n if ( ! stats_open_file ( & app_input -> rc_stats , fpf_file_name , 0 ) ) {\n fatal ( \"Failed to open statistics store\" ) ;\n }\n }\n else {\n enc_cfg -> g_pass = VPX_RC_LAST_PASS ;\n if ( ! stats_open_file ( & app_input -> rc_stats , fpf_file_name , 1 ) ) {\n fatal ( \"Failed to open statistics store\" ) ;\n }\n enc_cfg -> rc_twopass_stats_in = stats_get ( & app_input -> rc_stats ) ;\n }\n app_input -> passes = passes ;\n app_input -> pass = pass ;\n }\n if ( enc_cfg -> rc_target_bitrate > 0 ) {\n if ( min_bitrate > 0 ) {\n enc_cfg -> rc_2pass_vbr_minsection_pct = min_bitrate * 100 / enc_cfg -> rc_target_bitrate ;\n }\n if ( max_bitrate > 0 ) {\n enc_cfg -> rc_2pass_vbr_maxsection_pct = max_bitrate * 100 / enc_cfg -> rc_target_bitrate ;\n }\n }\n for ( argi = argv ;\n * argi ;\n ++ argi ) if ( argi [ 0 ] [ 0 ] == '-' && strlen ( argi [ 0 ] ) > 1 ) die ( \"Error: Unrecognized option %s\\n\" , * argi ) ;\n if ( argv [ 0 ] == NULL || argv [ 1 ] == 0 ) {\n usage_exit ( ) ;\n }\n app_input -> input_filename = argv [ 0 ] ;\n app_input -> output_filename = argv [ 1 ] ;\n free ( argv ) ;\n if ( enc_cfg -> g_w < 16 || enc_cfg -> g_w % 2 || enc_cfg -> g_h < 16 || enc_cfg -> g_h % 2 ) die ( \"Invalid resolution: %d x %d\\n\" , enc_cfg -> g_w , enc_cfg -> g_h ) ;\n printf ( \"Codec %s\\nframes: %d, skip: %d\\n\" \"layers: %d\\n\" \"width %d, height: %d,\\n\" \"num: %d, den: %d, bitrate: %d,\\n\" \"gop size: %d\\n\" , vpx_codec_iface_name ( vpx_codec_vp9_cx ( ) ) , app_input -> frames_to_code , app_input -> frames_to_skip , svc_ctx -> spatial_layers , enc_cfg -> g_w , enc_cfg -> g_h , enc_cfg -> g_timebase . num , enc_cfg -> g_timebase . den , enc_cfg -> rc_target_bitrate , enc_cfg -> kf_max_dist ) ;\n }"}
{"idx": 8412, "target": 1, "func": "static int split_field_copy ( Picture * dest , Picture * src , int parity , int id_add ) {\n int match = ! ! ( src -> f . reference & parity ) ;\n if ( match ) {\n * dest = * src ;\n if ( parity != PICT_FRAME ) {\n pic_as_field ( dest , parity ) ;\n dest -> pic_id *= 2 ;\n dest -> pic_id += id_add ;\n }\n }\n return match ;\n }"}
{"idx": 8413, "target": 0, "func": "static void GenericMPEfree ( struct _cms_typehandler_struct * self , void * Ptr ) {\n cmsStageFree ( ( cmsStage * ) Ptr ) ;\n return ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 8414, "target": 0, "func": "static gboolean find_finfo ( proto_node * node , gpointer data ) {\n field_info * fi = PNODE_FINFO ( node ) ;\n if ( fi && fi -> hfinfo ) {\n if ( fi -> hfinfo -> id == ( ( ffdata_t * ) data ) -> id ) {\n g_ptr_array_add ( ( ( ffdata_t * ) data ) -> array , fi ) ;\n }\n }\n return FALSE ;\n }"}
{"idx": 8415, "target": 0, "func": "static int encode_hq_slice ( AVCodecContext * avctx , void * arg ) {\n SliceArgs * slice_dat = arg ;\n VC2EncContext * s = slice_dat -> ctx ;\n PutBitContext * pb = & slice_dat -> pb ;\n const int slice_x = slice_dat -> x ;\n const int slice_y = slice_dat -> y ;\n const int quant_idx = slice_dat -> quant_idx ;\n const int slice_bytes_max = slice_dat -> bytes ;\n uint8_t quants [ MAX_DWT_LEVELS ] [ 4 ] ;\n int p , level , orientation ;\n memset ( put_bits_ptr ( pb ) , 0 , s -> prefix_bytes ) ;\n skip_put_bytes ( pb , s -> prefix_bytes ) ;\n put_bits ( pb , 8 , quant_idx ) ;\n for ( level = 0 ;\n level < s -> wavelet_depth ;\n level ++ ) for ( orientation = ! ! level ;\n orientation < 4 ;\n orientation ++ ) quants [ level ] [ orientation ] = FFMAX ( quant_idx - s -> quant [ level ] [ orientation ] , 0 ) ;\n for ( p = 0 ;\n p < 3 ;\n p ++ ) {\n int bytes_start , bytes_len , pad_s , pad_c ;\n bytes_start = put_bits_count ( pb ) >> 3 ;\n put_bits ( pb , 8 , 0 ) ;\n for ( level = 0 ;\n level < s -> wavelet_depth ;\n level ++ ) {\n for ( orientation = ! ! level ;\n orientation < 4 ;\n orientation ++ ) {\n encode_subband ( s , pb , slice_x , slice_y , & s -> plane [ p ] . band [ level ] [ orientation ] , quants [ level ] [ orientation ] ) ;\n }\n }\n avpriv_align_put_bits ( pb ) ;\n bytes_len = ( put_bits_count ( pb ) >> 3 ) - bytes_start - 1 ;\n if ( p == 2 ) {\n int len_diff = slice_bytes_max - ( put_bits_count ( pb ) >> 3 ) ;\n pad_s = FFALIGN ( ( bytes_len + len_diff ) , s -> size_scaler ) / s -> size_scaler ;\n pad_c = ( pad_s * s -> size_scaler ) - bytes_len ;\n }\n else {\n pad_s = FFALIGN ( bytes_len , s -> size_scaler ) / s -> size_scaler ;\n pad_c = ( pad_s * s -> size_scaler ) - bytes_len ;\n }\n pb -> buf [ bytes_start ] = pad_s ;\n flush_put_bits ( pb ) ;\n memset ( put_bits_ptr ( pb ) , 0xFF , pad_c ) ;\n skip_put_bytes ( pb , pad_c ) ;\n }\n return 0 ;\n }"}
{"idx": 8416, "target": 0, "func": "size_t print_file_stack ( char * s , const char * end ) {\n char * start = s ;\n struct st_test_file * err_file = cur_file ;\n if ( err_file == file_stack ) return 0 ;\n for ( ;\n ;\n ) {\n err_file -- ;\n s += my_snprintf ( s , end - s , \"included from %s at line %d:\\n\" , err_file -> file_name , err_file -> lineno ) ;\n if ( err_file == file_stack ) break ;\n }\n return s - start ;\n }"}
{"idx": 8417, "target": 0, "func": "Datum icregexeqsel ( PG_FUNCTION_ARGS ) {\n PG_RETURN_FLOAT8 ( patternsel ( fcinfo , Pattern_Type_Regex_IC , false ) ) ;\n }"}
{"idx": 8418, "target": 0, "func": "int vp9_init_search_range ( int size ) {\n int sr = 0 ;\n size = MAX ( 16 , size ) ;\n while ( ( size << sr ) < MAX_FULL_PEL_VAL ) sr ++ ;\n sr = MIN ( sr , MAX_MVSEARCH_STEPS - 2 ) ;\n return sr ;\n }"}
{"idx": 8419, "target": 0, "func": "int * __xmlIndentTreeOutput ( void ) {\n if ( IS_MAIN_THREAD ) return ( & xmlIndentTreeOutput ) ;\n else return ( & xmlGetGlobalState ( ) -> xmlIndentTreeOutput ) ;\n }"}
{"idx": 8420, "target": 0, "func": "static void xps_select_best_font_encoding ( xps_document * doc , fz_font * font ) {\n static struct {\n int pid , eid ;\n }\n xps_cmap_list [ ] = {\n {\n 3 , 10 }\n , {\n 3 , 1 }\n , {\n 3 , 5 }\n , {\n 3 , 4 }\n , {\n 3 , 3 }\n , {\n 3 , 2 }\n , {\n 3 , 0 }\n , {\n 1 , 0 }\n , {\n - 1 , - 1 }\n , }\n ;\n int i , k , n , pid , eid ;\n n = xps_count_font_encodings ( font ) ;\n for ( k = 0 ;\n xps_cmap_list [ k ] . pid != - 1 ;\n k ++ ) {\n for ( i = 0 ;\n i < n ;\n i ++ ) {\n xps_identify_font_encoding ( font , i , & pid , & eid ) ;\n if ( pid == xps_cmap_list [ k ] . pid && eid == xps_cmap_list [ k ] . eid ) {\n xps_select_font_encoding ( font , i ) ;\n return ;\n }\n }\n }\n fz_warn ( doc -> ctx , \"cannot find a suitable cmap\" ) ;\n }"}
{"idx": 8421, "target": 0, "func": "BusState * qbus_create ( BusInfo * info , DeviceState * parent , const char * name ) {\n BusState * bus ;\n bus = qemu_mallocz ( info -> size ) ;\n bus -> qdev_allocated = 1 ;\n qbus_create_inplace ( bus , info , parent , name ) ;\n return bus ;\n }"}
{"idx": 8422, "target": 0, "func": "static int check_user_and_ip ( int userid , struct query * q ) {\n struct sockaddr_in * tempin ;\n if ( userid < 0 || userid >= created_users ) {\n return 1 ;\n }\n if ( ! users [ userid ] . active || users [ userid ] . disabled ) {\n return 1 ;\n }\n if ( users [ userid ] . last_pkt + 60 < time ( NULL ) ) {\n return 1 ;\n }\n if ( ! check_ip ) {\n return 0 ;\n }\n tempin = ( struct sockaddr_in * ) & ( q -> from ) ;\n return memcmp ( & ( users [ userid ] . host ) , & ( tempin -> sin_addr ) , sizeof ( struct in_addr ) ) ;\n }"}
{"idx": 8423, "target": 0, "func": "static int dissect_h245_H261VideoMode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_H261VideoMode , H261VideoMode_sequence ) ;\n return offset ;\n }"}
{"idx": 8424, "target": 1, "func": "void vp9_lpf_horizontal_8_dual_sse2 ( uint8_t * s , int p , const uint8_t * _blimit0 , const uint8_t * _limit0 , const uint8_t * _thresh0 , const uint8_t * _blimit1 , const uint8_t * _limit1 , const uint8_t * _thresh1 ) {\n DECLARE_ALIGNED_ARRAY ( 16 , unsigned char , flat_op2 , 16 ) ;\n DECLARE_ALIGNED_ARRAY ( 16 , unsigned char , flat_op1 , 16 ) ;\n DECLARE_ALIGNED_ARRAY ( 16 , unsigned char , flat_op0 , 16 ) ;\n DECLARE_ALIGNED_ARRAY ( 16 , unsigned char , flat_oq2 , 16 ) ;\n DECLARE_ALIGNED_ARRAY ( 16 , unsigned char , flat_oq1 , 16 ) ;\n DECLARE_ALIGNED_ARRAY ( 16 , unsigned char , flat_oq0 , 16 ) ;\n const __m128i zero = _mm_set1_epi16 ( 0 ) ;\n const __m128i blimit = _mm_unpacklo_epi64 ( _mm_load_si128 ( ( const __m128i * ) _blimit0 ) , _mm_load_si128 ( ( const __m128i * ) _blimit1 ) ) ;\n const __m128i limit = _mm_unpacklo_epi64 ( _mm_load_si128 ( ( const __m128i * ) _limit0 ) , _mm_load_si128 ( ( const __m128i * ) _limit1 ) ) ;\n const __m128i thresh = _mm_unpacklo_epi64 ( _mm_load_si128 ( ( const __m128i * ) _thresh0 ) , _mm_load_si128 ( ( const __m128i * ) _thresh1 ) ) ;\n __m128i mask , hev , flat ;\n __m128i p3 , p2 , p1 , p0 , q0 , q1 , q2 , q3 ;\n p3 = _mm_loadu_si128 ( ( __m128i * ) ( s - 4 * p ) ) ;\n p2 = _mm_loadu_si128 ( ( __m128i * ) ( s - 3 * p ) ) ;\n p1 = _mm_loadu_si128 ( ( __m128i * ) ( s - 2 * p ) ) ;\n p0 = _mm_loadu_si128 ( ( __m128i * ) ( s - 1 * p ) ) ;\n q0 = _mm_loadu_si128 ( ( __m128i * ) ( s - 0 * p ) ) ;\n q1 = _mm_loadu_si128 ( ( __m128i * ) ( s + 1 * p ) ) ;\n q2 = _mm_loadu_si128 ( ( __m128i * ) ( s + 2 * p ) ) ;\n q3 = _mm_loadu_si128 ( ( __m128i * ) ( s + 3 * p ) ) ;\n {\n const __m128i abs_p1p0 = _mm_or_si128 ( _mm_subs_epu8 ( p1 , p0 ) , _mm_subs_epu8 ( p0 , p1 ) ) ;\n const __m128i abs_q1q0 = _mm_or_si128 ( _mm_subs_epu8 ( q1 , q0 ) , _mm_subs_epu8 ( q0 , q1 ) ) ;\n const __m128i one = _mm_set1_epi8 ( 1 ) ;\n const __m128i fe = _mm_set1_epi8 ( 0xfe ) ;\n const __m128i ff = _mm_cmpeq_epi8 ( abs_p1p0 , abs_p1p0 ) ;\n __m128i abs_p0q0 = _mm_or_si128 ( _mm_subs_epu8 ( p0 , q0 ) , _mm_subs_epu8 ( q0 , p0 ) ) ;\n __m128i abs_p1q1 = _mm_or_si128 ( _mm_subs_epu8 ( p1 , q1 ) , _mm_subs_epu8 ( q1 , p1 ) ) ;\n __m128i work ;\n flat = _mm_max_epu8 ( abs_p1p0 , abs_q1q0 ) ;\n hev = _mm_subs_epu8 ( flat , thresh ) ;\n hev = _mm_xor_si128 ( _mm_cmpeq_epi8 ( hev , zero ) , ff ) ;\n abs_p0q0 = _mm_adds_epu8 ( abs_p0q0 , abs_p0q0 ) ;\n abs_p1q1 = _mm_srli_epi16 ( _mm_and_si128 ( abs_p1q1 , fe ) , 1 ) ;\n mask = _mm_subs_epu8 ( _mm_adds_epu8 ( abs_p0q0 , abs_p1q1 ) , blimit ) ;\n mask = _mm_xor_si128 ( _mm_cmpeq_epi8 ( mask , zero ) , ff ) ;\n mask = _mm_max_epu8 ( flat , mask ) ;\n work = _mm_max_epu8 ( _mm_or_si128 ( _mm_subs_epu8 ( p2 , p1 ) , _mm_subs_epu8 ( p1 , p2 ) ) , _mm_or_si128 ( _mm_subs_epu8 ( p3 , p2 ) , _mm_subs_epu8 ( p2 , p3 ) ) ) ;\n mask = _mm_max_epu8 ( work , mask ) ;\n work = _mm_max_epu8 ( _mm_or_si128 ( _mm_subs_epu8 ( q2 , q1 ) , _mm_subs_epu8 ( q1 , q2 ) ) , _mm_or_si128 ( _mm_subs_epu8 ( q3 , q2 ) , _mm_subs_epu8 ( q2 , q3 ) ) ) ;\n mask = _mm_max_epu8 ( work , mask ) ;\n mask = _mm_subs_epu8 ( mask , limit ) ;\n mask = _mm_cmpeq_epi8 ( mask , zero ) ;\n work = _mm_max_epu8 ( _mm_or_si128 ( _mm_subs_epu8 ( p2 , p0 ) , _mm_subs_epu8 ( p0 , p2 ) ) , _mm_or_si128 ( _mm_subs_epu8 ( q2 , q0 ) , _mm_subs_epu8 ( q0 , q2 ) ) ) ;\n flat = _mm_max_epu8 ( work , flat ) ;\n work = _mm_max_epu8 ( _mm_or_si128 ( _mm_subs_epu8 ( p3 , p0 ) , _mm_subs_epu8 ( p0 , p3 ) ) , _mm_or_si128 ( _mm_subs_epu8 ( q3 , q0 ) , _mm_subs_epu8 ( q0 , q3 ) ) ) ;\n flat = _mm_max_epu8 ( work , flat ) ;\n flat = _mm_subs_epu8 ( flat , one ) ;\n flat = _mm_cmpeq_epi8 ( flat , zero ) ;\n flat = _mm_and_si128 ( flat , mask ) ;\n }\n {\n const __m128i four = _mm_set1_epi16 ( 4 ) ;\n unsigned char * src = s ;\n int i = 0 ;\n do {\n __m128i workp_a , workp_b , workp_shft ;\n p3 = _mm_unpacklo_epi8 ( _mm_loadl_epi64 ( ( __m128i * ) ( src - 4 * p ) ) , zero ) ;\n p2 = _mm_unpacklo_epi8 ( _mm_loadl_epi64 ( ( __m128i * ) ( src - 3 * p ) ) , zero ) ;\n p1 = _mm_unpacklo_epi8 ( _mm_loadl_epi64 ( ( __m128i * ) ( src - 2 * p ) ) , zero ) ;\n p0 = _mm_unpacklo_epi8 ( _mm_loadl_epi64 ( ( __m128i * ) ( src - 1 * p ) ) , zero ) ;\n q0 = _mm_unpacklo_epi8 ( _mm_loadl_epi64 ( ( __m128i * ) ( src - 0 * p ) ) , zero ) ;\n q1 = _mm_unpacklo_epi8 ( _mm_loadl_epi64 ( ( __m128i * ) ( src + 1 * p ) ) , zero ) ;\n q2 = _mm_unpacklo_epi8 ( _mm_loadl_epi64 ( ( __m128i * ) ( src + 2 * p ) ) , zero ) ;\n q3 = _mm_unpacklo_epi8 ( _mm_loadl_epi64 ( ( __m128i * ) ( src + 3 * p ) ) , zero ) ;\n workp_a = _mm_add_epi16 ( _mm_add_epi16 ( p3 , p3 ) , _mm_add_epi16 ( p2 , p1 ) ) ;\n workp_a = _mm_add_epi16 ( _mm_add_epi16 ( workp_a , four ) , p0 ) ;\n workp_b = _mm_add_epi16 ( _mm_add_epi16 ( q0 , p2 ) , p3 ) ;\n workp_shft = _mm_srli_epi16 ( _mm_add_epi16 ( workp_a , workp_b ) , 3 ) ;\n _mm_storel_epi64 ( ( __m128i * ) & flat_op2 [ i * 8 ] , _mm_packus_epi16 ( workp_shft , workp_shft ) ) ;\n workp_b = _mm_add_epi16 ( _mm_add_epi16 ( q0 , q1 ) , p1 ) ;\n workp_shft = _mm_srli_epi16 ( _mm_add_epi16 ( workp_a , workp_b ) , 3 ) ;\n _mm_storel_epi64 ( ( __m128i * ) & flat_op1 [ i * 8 ] , _mm_packus_epi16 ( workp_shft , workp_shft ) ) ;\n workp_a = _mm_add_epi16 ( _mm_sub_epi16 ( workp_a , p3 ) , q2 ) ;\n workp_b = _mm_add_epi16 ( _mm_sub_epi16 ( workp_b , p1 ) , p0 ) ;\n workp_shft = _mm_srli_epi16 ( _mm_add_epi16 ( workp_a , workp_b ) , 3 ) ;\n _mm_storel_epi64 ( ( __m128i * ) & flat_op0 [ i * 8 ] , _mm_packus_epi16 ( workp_shft , workp_shft ) ) ;\n workp_a = _mm_add_epi16 ( _mm_sub_epi16 ( workp_a , p3 ) , q3 ) ;\n workp_b = _mm_add_epi16 ( _mm_sub_epi16 ( workp_b , p0 ) , q0 ) ;\n workp_shft = _mm_srli_epi16 ( _mm_add_epi16 ( workp_a , workp_b ) , 3 ) ;\n _mm_storel_epi64 ( ( __m128i * ) & flat_oq0 [ i * 8 ] , _mm_packus_epi16 ( workp_shft , workp_shft ) ) ;\n workp_a = _mm_add_epi16 ( _mm_sub_epi16 ( workp_a , p2 ) , q3 ) ;\n workp_b = _mm_add_epi16 ( _mm_sub_epi16 ( workp_b , q0 ) , q1 ) ;\n workp_shft = _mm_srli_epi16 ( _mm_add_epi16 ( workp_a , workp_b ) , 3 ) ;\n _mm_storel_epi64 ( ( __m128i * ) & flat_oq1 [ i * 8 ] , _mm_packus_epi16 ( workp_shft , workp_shft ) ) ;\n workp_a = _mm_add_epi16 ( _mm_sub_epi16 ( workp_a , p1 ) , q3 ) ;\n workp_b = _mm_add_epi16 ( _mm_sub_epi16 ( workp_b , q1 ) , q2 ) ;\n workp_shft = _mm_srli_epi16 ( _mm_add_epi16 ( workp_a , workp_b ) , 3 ) ;\n _mm_storel_epi64 ( ( __m128i * ) & flat_oq2 [ i * 8 ] , _mm_packus_epi16 ( workp_shft , workp_shft ) ) ;\n src += 8 ;\n }\n while ( ++ i < 2 ) ;\n }\n {\n const __m128i t4 = _mm_set1_epi8 ( 4 ) ;\n const __m128i t3 = _mm_set1_epi8 ( 3 ) ;\n const __m128i t80 = _mm_set1_epi8 ( 0x80 ) ;\n const __m128i te0 = _mm_set1_epi8 ( 0xe0 ) ;\n const __m128i t1f = _mm_set1_epi8 ( 0x1f ) ;\n const __m128i t1 = _mm_set1_epi8 ( 0x1 ) ;\n const __m128i t7f = _mm_set1_epi8 ( 0x7f ) ;\n const __m128i ps1 = _mm_xor_si128 ( _mm_loadu_si128 ( ( __m128i * ) ( s - 2 * p ) ) , t80 ) ;\n const __m128i ps0 = _mm_xor_si128 ( _mm_loadu_si128 ( ( __m128i * ) ( s - 1 * p ) ) , t80 ) ;\n const __m128i qs0 = _mm_xor_si128 ( _mm_loadu_si128 ( ( __m128i * ) ( s + 0 * p ) ) , t80 ) ;\n const __m128i qs1 = _mm_xor_si128 ( _mm_loadu_si128 ( ( __m128i * ) ( s + 1 * p ) ) , t80 ) ;\n __m128i filt ;\n __m128i work_a ;\n __m128i filter1 , filter2 ;\n filt = _mm_and_si128 ( _mm_subs_epi8 ( ps1 , qs1 ) , hev ) ;\n work_a = _mm_subs_epi8 ( qs0 , ps0 ) ;\n filt = _mm_adds_epi8 ( filt , work_a ) ;\n filt = _mm_adds_epi8 ( filt , work_a ) ;\n filt = _mm_adds_epi8 ( filt , work_a ) ;\n filt = _mm_and_si128 ( filt , mask ) ;\n filter1 = _mm_adds_epi8 ( filt , t4 ) ;\n filter2 = _mm_adds_epi8 ( filt , t3 ) ;\n work_a = _mm_cmpgt_epi8 ( zero , filter1 ) ;\n filter1 = _mm_srli_epi16 ( filter1 , 3 ) ;\n work_a = _mm_and_si128 ( work_a , te0 ) ;\n filter1 = _mm_and_si128 ( filter1 , t1f ) ;\n filter1 = _mm_or_si128 ( filter1 , work_a ) ;\n work_a = _mm_cmpgt_epi8 ( zero , filter2 ) ;\n filter2 = _mm_srli_epi16 ( filter2 , 3 ) ;\n work_a = _mm_and_si128 ( work_a , te0 ) ;\n filter2 = _mm_and_si128 ( filter2 , t1f ) ;\n filter2 = _mm_or_si128 ( filter2 , work_a ) ;\n filt = _mm_adds_epi8 ( filter1 , t1 ) ;\n work_a = _mm_cmpgt_epi8 ( zero , filt ) ;\n filt = _mm_srli_epi16 ( filt , 1 ) ;\n work_a = _mm_and_si128 ( work_a , t80 ) ;\n filt = _mm_and_si128 ( filt , t7f ) ;\n filt = _mm_or_si128 ( filt , work_a ) ;\n filt = _mm_andnot_si128 ( hev , filt ) ;\n work_a = _mm_xor_si128 ( _mm_subs_epi8 ( qs0 , filter1 ) , t80 ) ;\n q0 = _mm_load_si128 ( ( __m128i * ) flat_oq0 ) ;\n work_a = _mm_andnot_si128 ( flat , work_a ) ;\n q0 = _mm_and_si128 ( flat , q0 ) ;\n q0 = _mm_or_si128 ( work_a , q0 ) ;\n work_a = _mm_xor_si128 ( _mm_subs_epi8 ( qs1 , filt ) , t80 ) ;\n q1 = _mm_load_si128 ( ( __m128i * ) flat_oq1 ) ;\n work_a = _mm_andnot_si128 ( flat , work_a ) ;\n q1 = _mm_and_si128 ( flat , q1 ) ;\n q1 = _mm_or_si128 ( work_a , q1 ) ;\n work_a = _mm_loadu_si128 ( ( __m128i * ) ( s + 2 * p ) ) ;\n q2 = _mm_load_si128 ( ( __m128i * ) flat_oq2 ) ;\n work_a = _mm_andnot_si128 ( flat , work_a ) ;\n q2 = _mm_and_si128 ( flat , q2 ) ;\n q2 = _mm_or_si128 ( work_a , q2 ) ;\n work_a = _mm_xor_si128 ( _mm_adds_epi8 ( ps0 , filter2 ) , t80 ) ;\n p0 = _mm_load_si128 ( ( __m128i * ) flat_op0 ) ;\n work_a = _mm_andnot_si128 ( flat , work_a ) ;\n p0 = _mm_and_si128 ( flat , p0 ) ;\n p0 = _mm_or_si128 ( work_a , p0 ) ;\n work_a = _mm_xor_si128 ( _mm_adds_epi8 ( ps1 , filt ) , t80 ) ;\n p1 = _mm_load_si128 ( ( __m128i * ) flat_op1 ) ;\n work_a = _mm_andnot_si128 ( flat , work_a ) ;\n p1 = _mm_and_si128 ( flat , p1 ) ;\n p1 = _mm_or_si128 ( work_a , p1 ) ;\n work_a = _mm_loadu_si128 ( ( __m128i * ) ( s - 3 * p ) ) ;\n p2 = _mm_load_si128 ( ( __m128i * ) flat_op2 ) ;\n work_a = _mm_andnot_si128 ( flat , work_a ) ;\n p2 = _mm_and_si128 ( flat , p2 ) ;\n p2 = _mm_or_si128 ( work_a , p2 ) ;\n _mm_storeu_si128 ( ( __m128i * ) ( s - 3 * p ) , p2 ) ;\n _mm_storeu_si128 ( ( __m128i * ) ( s - 2 * p ) , p1 ) ;\n _mm_storeu_si128 ( ( __m128i * ) ( s - 1 * p ) , p0 ) ;\n _mm_storeu_si128 ( ( __m128i * ) ( s + 0 * p ) , q0 ) ;\n _mm_storeu_si128 ( ( __m128i * ) ( s + 1 * p ) , q1 ) ;\n _mm_storeu_si128 ( ( __m128i * ) ( s + 2 * p ) , q2 ) ;\n }\n }"}
{"idx": 8425, "target": 0, "func": "int lcc_network_buffer_add_value ( lcc_network_buffer_t * nb , const lcc_value_list_t * vl ) {\n int status ;\n if ( ( nb == NULL ) || ( vl == NULL ) ) return ( EINVAL ) ;\n status = nb_add_value_list ( nb , vl ) ;\n return ( status ) ;\n }"}
{"idx": 8426, "target": 0, "func": "proto_item * proto_tree_add_bitmask_with_flags ( proto_tree * parent_tree , tvbuff_t * tvb , const guint offset , const int hf_hdr , const gint ett , const int * * fields , const guint encoding , const int flags ) {\n proto_item * item = NULL ;\n header_field_info * hf ;\n int len ;\n guint64 value ;\n PROTO_REGISTRAR_GET_NTH ( hf_hdr , hf ) ;\n DISSECTOR_ASSERT_FIELD_TYPE_IS_INTEGRAL ( hf ) ;\n if ( parent_tree ) {\n len = ftype_length ( hf -> type ) ;\n item = proto_tree_add_item ( parent_tree , hf_hdr , tvb , offset , len , encoding ) ;\n value = get_uint64_value ( parent_tree , tvb , offset , len , encoding ) ;\n proto_item_add_bitmask_tree ( item , tvb , offset , len , ett , fields , flags , FALSE , FALSE , NULL , value ) ;\n }\n return item ;\n }"}
{"idx": 8427, "target": 0, "func": "static VALUE cState_space_before_set ( VALUE self , VALUE space_before ) {\n unsigned long len ;\n GET_STATE ( self ) ;\n Check_Type ( space_before , T_STRING ) ;\n len = RSTRING_LEN ( space_before ) ;\n if ( len == 0 ) {\n if ( state -> space_before ) {\n ruby_xfree ( state -> space_before ) ;\n state -> space_before = NULL ;\n state -> space_before_len = 0 ;\n }\n }\n else {\n if ( state -> space_before ) ruby_xfree ( state -> space_before ) ;\n state -> space_before = fstrndup ( RSTRING_PTR ( space_before ) , len ) ;\n state -> space_before_len = len ;\n }\n return Qnil ;\n }"}
{"idx": 8428, "target": 0, "func": "void evhttp_write_buffer ( struct evhttp_connection * evcon , void ( * cb ) ( struct evhttp_connection * , void * ) , void * arg ) {\n event_debug ( ( \"%s: preparing to write buffer\\n\" , __func__ ) ) ;\n evcon -> cb = cb ;\n evcon -> cb_arg = arg ;\n if ( event_pending ( & evcon -> ev , EV_WRITE | EV_TIMEOUT , NULL ) ) event_del ( & evcon -> ev ) ;\n event_set ( & evcon -> ev , evcon -> fd , EV_WRITE , evhttp_write , evcon ) ;\n EVHTTP_BASE_SET ( evcon , & evcon -> ev ) ;\n evhttp_add_event ( & evcon -> ev , evcon -> timeout , HTTP_WRITE_TIMEOUT ) ;\n }"}
{"idx": 8429, "target": 0, "func": "static int noise_motion_thresh ( BLOCK_SIZE bs , int increase_denoising ) {\n ( void ) bs ;\n ( void ) increase_denoising ;\n return 25 * 25 ;\n }"}
{"idx": 8430, "target": 0, "func": "static void Type_Measurement_Free ( struct _cms_typehandler_struct * self , void * Ptr ) {\n _cmsFree ( self -> ContextID , Ptr ) ;\n }"}
{"idx": 8431, "target": 0, "func": "bool get_func_leakproof ( Oid funcid ) {\n HeapTuple tp ;\n bool result ;\n tp = SearchSysCache1 ( PROCOID , ObjectIdGetDatum ( funcid ) ) ;\n if ( ! HeapTupleIsValid ( tp ) ) elog ( ERROR , \"cache lookup failed for function %u\" , funcid ) ;\n result = ( ( Form_pg_proc ) GETSTRUCT ( tp ) ) -> proleakproof ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }"}
{"idx": 8432, "target": 0, "func": "const char * TSConfigDirGet ( void ) {\n static std : : string sysconfdir = RecConfigReadConfigDir ( ) ;\n return sysconfdir . c_str ( ) ;\n }"}
{"idx": 8433, "target": 0, "func": "static int dissect_mac_fdd_rach ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n guint8 tctf ;\n guint8 chan ;\n guint16 bitoffs = 0 ;\n tvbuff_t * next_tvb ;\n proto_tree * rach_tree = NULL ;\n proto_item * channel_type ;\n umts_mac_info * macinf ;\n fp_info * fpinf ;\n rlc_info * rlcinf ;\n proto_item * ti = NULL ;\n guint8 c_t ;\n tctf = tvb_get_bits8 ( tvb , 0 , 2 ) ;\n bitoffs += 2 ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"MAC\" ) ;\n col_set_str ( pinfo -> cinfo , COL_INFO , val_to_str_const ( tctf , rach_fdd_tctf_vals , \"Unknown TCTF\" ) ) ;\n ti = proto_tree_add_item ( tree , proto_umts_mac , tvb , 0 , - 1 , ENC_NA ) ;\n rach_tree = proto_item_add_subtree ( ti , ett_mac_rach ) ;\n macinf = ( umts_mac_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_umts_mac , 0 ) ;\n fpinf = ( fp_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_fp , 0 ) ;\n rlcinf = ( rlc_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_rlc , 0 ) ;\n if ( ! macinf || ! fpinf ) {\n proto_tree_add_expert ( rach_tree , pinfo , & ei_mac_per_frame_info_missing , tvb , 0 , - 1 ) ;\n return 1 ;\n }\n proto_tree_add_bits_item ( rach_tree , hf_mac_rach_fdd_tctf , tvb , 0 , 2 , ENC_BIG_ENDIAN ) ;\n if ( tctf == TCTF_DCCH_DTCH_RACH_FDD ) {\n macinf -> ctmux [ fpinf -> cur_tb ] = 1 ;\n bitoffs = tree_add_common_dcch_dtch_fields ( tvb , pinfo , rach_tree , bitoffs , fpinf , macinf , rlcinf ) ;\n }\n chan = fpinf -> cur_chan ;\n switch ( tctf ) {\n case TCTF_CCCH_RACH_FDD : proto_item_append_text ( ti , \" (CCCH)\" ) ;\n channel_type = proto_tree_add_uint ( rach_tree , hf_mac_channel , tvb , 0 , 0 , MAC_CCCH ) ;\n PROTO_ITEM_SET_GENERATED ( channel_type ) ;\n next_tvb = tvb_new_octet_aligned ( tvb , bitoffs , fpinf -> chan_tf_size [ chan ] - bitoffs ) ;\n add_new_data_source ( pinfo , next_tvb , \"Octet-Aligned CCCH Data\" ) ;\n call_dissector_with_data ( rlc_ccch_handle , next_tvb , pinfo , tree , data ) ;\n break ;\n case TCTF_DCCH_DTCH_RACH_FDD : c_t = tvb_get_bits8 ( tvb , bitoffs - 4 , 4 ) ;\n if ( c_t == 15 ) {\n expert_add_info ( pinfo , NULL , & ei_mac_reserved_c_t ) ;\n break ;\n }\n rlcinf -> mode [ chan ] = lchId_rlc_map [ c_t + 1 ] ;\n macinf -> content [ chan ] = lchId_type_table [ c_t + 1 ] ;\n rlcinf -> rbid [ chan ] = c_t + 1 ;\n switch ( macinf -> content [ chan ] ) {\n case MAC_CONTENT_DCCH : proto_item_append_text ( ti , \" (DCCH)\" ) ;\n channel_type = proto_tree_add_uint ( rach_tree , hf_mac_channel , tvb , 0 , 0 , MAC_DCCH ) ;\n PROTO_ITEM_SET_GENERATED ( channel_type ) ;\n next_tvb = tvb_new_octet_aligned ( tvb , bitoffs , fpinf -> chan_tf_size [ chan ] - bitoffs ) ;\n add_new_data_source ( pinfo , next_tvb , \"Octet-Aligned DCCH Data\" ) ;\n call_dissector_with_data ( rlc_dcch_handle , next_tvb , pinfo , tree , data ) ;\n break ;\n case MAC_CONTENT_PS_DTCH : proto_item_append_text ( ti , \" (PS DTCH)\" ) ;\n channel_type = proto_tree_add_uint ( rach_tree , hf_mac_channel , tvb , 0 , 0 , MAC_DTCH ) ;\n PROTO_ITEM_SET_GENERATED ( channel_type ) ;\n next_tvb = tvb_new_octet_aligned ( tvb , bitoffs , fpinf -> chan_tf_size [ chan ] - bitoffs ) ;\n add_new_data_source ( pinfo , next_tvb , \"Octet-Aligned DTCH Data\" ) ;\n call_dissector_with_data ( rlc_ps_dtch_handle , next_tvb , pinfo , tree , data ) ;\n break ;\n case MAC_CONTENT_CS_DTCH : proto_item_append_text ( ti , \" (CS DTCH)\" ) ;\n break ;\n default : proto_item_append_text ( ti , \" (Unknown RACH DCCH/DTCH Content)\" ) ;\n expert_add_info_format ( pinfo , NULL , & ei_mac_unknown_content , \"Unknown RACH DCCH/DTCH Content\" ) ;\n }\n break ;\n default : proto_item_append_text ( ti , \" (Unknown RACH TCTF)\" ) ;\n expert_add_info_format ( pinfo , NULL , & ei_mac_rach_tctf_unknown , \"Unknown RACH TCTF\" ) ;\n }\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 8434, "target": 0, "func": "static void pcnet_s_reset ( PCNetState * s ) {\n trace_pcnet_s_reset ( s ) ;\n s -> rdra = 0 ;\n s -> tdra = 0 ;\n s -> rap = 0 ;\n s -> bcr [ BCR_BSBC ] &= ~ 0x0080 ;\n s -> csr [ 0 ] = 0x0004 ;\n s -> csr [ 3 ] = 0x0000 ;\n s -> csr [ 4 ] = 0x0115 ;\n s -> csr [ 5 ] = 0x0000 ;\n s -> csr [ 6 ] = 0x0000 ;\n s -> csr [ 8 ] = 0 ;\n s -> csr [ 9 ] = 0 ;\n s -> csr [ 10 ] = 0 ;\n s -> csr [ 11 ] = 0 ;\n s -> csr [ 12 ] = le16_to_cpu ( ( ( uint16_t * ) & s -> prom [ 0 ] ) [ 0 ] ) ;\n s -> csr [ 13 ] = le16_to_cpu ( ( ( uint16_t * ) & s -> prom [ 0 ] ) [ 1 ] ) ;\n s -> csr [ 14 ] = le16_to_cpu ( ( ( uint16_t * ) & s -> prom [ 0 ] ) [ 2 ] ) ;\n s -> csr [ 15 ] &= 0x21c4 ;\n s -> csr [ 72 ] = 1 ;\n s -> csr [ 74 ] = 1 ;\n s -> csr [ 76 ] = 1 ;\n s -> csr [ 78 ] = 1 ;\n s -> csr [ 80 ] = 0x1410 ;\n s -> csr [ 88 ] = 0x1003 ;\n s -> csr [ 89 ] = 0x0262 ;\n s -> csr [ 94 ] = 0x0000 ;\n s -> csr [ 100 ] = 0x0200 ;\n s -> csr [ 103 ] = 0x0105 ;\n s -> csr [ 112 ] = 0x0000 ;\n s -> csr [ 114 ] = 0x0000 ;\n s -> csr [ 122 ] = 0x0000 ;\n s -> csr [ 124 ] = 0x0000 ;\n s -> tx_busy = 0 ;\n }"}
{"idx": 8435, "target": 0, "func": "my_bool grant_init ( ) {\n THD * thd ;\n my_bool return_val ;\n DBUG_ENTER ( \"grant_init\" ) ;\n if ( ! ( thd = new THD ) ) DBUG_RETURN ( 1 ) ;\n thd -> thread_stack = ( char * ) & thd ;\n thd -> store_globals ( ) ;\n lex_start ( thd ) ;\n return_val = grant_reload ( thd ) ;\n delete thd ;\n my_pthread_setspecific_ptr ( THR_THD , 0 ) ;\n DBUG_RETURN ( return_val ) ;\n }"}
{"idx": 8436, "target": 0, "func": "static void svc_log_reset ( SvcContext * svc_ctx ) {\n SvcInternal * const si = ( SvcInternal * ) svc_ctx -> internal ;\n si -> message_buffer [ 0 ] = '\\0' ;\n }"}
{"idx": 8437, "target": 0, "func": "TSReturnCode TSMimeHdrFieldValueIntInsert ( TSMBuffer bufp , TSMLoc hdr , TSMLoc field , int idx , int value ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( hdr ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( hdr ) == TS_SUCCESS ) ) ;\n sdk_assert ( sdk_sanity_check_field_handle ( field , hdr ) == TS_SUCCESS ) ;\n if ( ! isWriteable ( bufp ) ) {\n return TS_ERROR ;\n }\n char tmp [ 16 ] ;\n int len = mime_format_int ( tmp , value , sizeof ( tmp ) ) ;\n TSMimeFieldValueInsert ( bufp , field , tmp , len , idx ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 8438, "target": 0, "func": "static int set_str_a_characters_bp ( struct archive_write * a , unsigned char * bp , int from , int to , const char * s , enum vdc vdc ) {\n int r ;\n switch ( vdc ) {\n case VDC_STD : set_str ( bp + from , s , to - from + 1 , 0x20 , a_characters_map ) ;\n r = ARCHIVE_OK ;\n break ;\n case VDC_LOWERCASE : set_str ( bp + from , s , to - from + 1 , 0x20 , a1_characters_map ) ;\n r = ARCHIVE_OK ;\n break ;\n case VDC_UCS2 : case VDC_UCS2_DIRECT : r = set_str_utf16be ( a , bp + from , s , to - from + 1 , 0x0020 , vdc ) ;\n break ;\n default : r = ARCHIVE_FATAL ;\n }\n return ( r ) ;\n }"}
{"idx": 8439, "target": 0, "func": "static int dissect_NOTIFY_OPTIONS_ARRAY ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n offset = dissect_ndr_ucarray ( tvb , offset , pinfo , tree , di , drep , dissect_NOTIFY_OPTION ) ;\n return offset ;\n }"}
{"idx": 8440, "target": 1, "func": "xmlChar * xsltEvalAttrValueTemplate ( xsltTransformContextPtr ctxt , xmlNodePtr inst , const xmlChar * name , const xmlChar * ns ) {\n xmlChar * ret ;\n xmlChar * expr ;\n if ( ( ctxt == NULL ) || ( inst == NULL ) || ( name == NULL ) ) return ( NULL ) ;\n expr = xsltGetNsProp ( inst , name , ns ) ;\n if ( expr == NULL ) return ( NULL ) ;\n ret = xsltAttrTemplateValueProcessNode ( ctxt , expr , inst ) ;\n # ifdef WITH_XSLT_DEBUG_TEMPLATES XSLT_TRACE ( ctxt , XSLT_TRACE_TEMPLATES , xsltGenericDebug ( xsltGenericDebugContext , \"xsltEvalAttrValueTemplate: %s returns %s\\n\" , expr , ret ) ) ;\n # endif if ( expr != NULL ) xmlFree ( expr ) ;\n return ( ret ) ;\n }"}
{"idx": 8441, "target": 0, "func": "static inline int pfkey_init_proc ( struct net * net ) {\n return 0 ;\n }"}
{"idx": 8442, "target": 0, "func": "static void cleanup_key_data ( context , count , data ) krb5_context context ;\n int count ;\n krb5_key_data * data ;\n {\n int i , j ;\n for ( i = 0 ;\n i < count ;\n i ++ ) for ( j = 0 ;\n j < data [ i ] . key_data_ver ;\n j ++ ) if ( data [ i ] . key_data_length [ j ] ) krb5_db_free ( context , data [ i ] . key_data_contents [ j ] ) ;\n krb5_db_free ( context , data ) ;\n }"}
{"idx": 8443, "target": 0, "func": "struct mskwaj_decompressor * mspack_create_kwaj_decompressor ( struct mspack_system * sys ) {\n struct mskwaj_decompressor_p * self = NULL ;\n if ( ! sys ) sys = mspack_default_system ;\n if ( ! mspack_valid_system ( sys ) ) return NULL ;\n if ( ( self = ( struct mskwaj_decompressor_p * ) sys -> alloc ( sys , sizeof ( struct mskwaj_decompressor_p ) ) ) ) {\n self -> base . open = & kwajd_open ;\n self -> base . close = & kwajd_close ;\n self -> base . extract = & kwajd_extract ;\n self -> base . decompress = & kwajd_decompress ;\n self -> base . last_error = & kwajd_error ;\n self -> system = sys ;\n self -> error = MSPACK_ERR_OK ;\n }\n return ( struct mskwaj_decompressor * ) self ;\n }"}
{"idx": 8444, "target": 0, "func": "static vpx_codec_err_t ctrl_set_tuning ( vpx_codec_alg_priv_t * ctx , va_list args ) {\n struct vp9_extracfg extra_cfg = ctx -> extra_cfg ;\n extra_cfg . tuning = CAST ( VP8E_SET_TUNING , args ) ;\n return update_extra_cfg ( ctx , & extra_cfg ) ;\n }"}
{"idx": 8445, "target": 0, "func": "static void imdct_and_window ( TwinContext * tctx , enum FrameType ftype , int wtype , float * in , float * prev , int ch ) {\n FFTContext * mdct = & tctx -> mdct_ctx [ ftype ] ;\n const ModeTab * mtab = tctx -> mtab ;\n int bsize = mtab -> size / mtab -> fmode [ ftype ] . sub ;\n int size = mtab -> size ;\n float * buf1 = tctx -> tmp_buf ;\n int j ;\n int wsize ;\n float * out = tctx -> curr_frame + 2 * ch * mtab -> size ;\n float * out2 = out ;\n float * prev_buf ;\n int first_wsize ;\n static const uint8_t wtype_to_wsize [ ] = {\n 0 , 0 , 2 , 2 , 2 , 1 , 0 , 1 , 1 }\n ;\n int types_sizes [ ] = {\n mtab -> size / mtab -> fmode [ FT_LONG ] . sub , mtab -> size / mtab -> fmode [ FT_MEDIUM ] . sub , mtab -> size / ( 2 * mtab -> fmode [ FT_SHORT ] . sub ) , }\n ;\n wsize = types_sizes [ wtype_to_wsize [ wtype ] ] ;\n first_wsize = wsize ;\n prev_buf = prev + ( size - bsize ) / 2 ;\n for ( j = 0 ;\n j < mtab -> fmode [ ftype ] . sub ;\n j ++ ) {\n int sub_wtype = ftype == FT_MEDIUM ? 8 : wtype ;\n if ( ! j && wtype == 4 ) sub_wtype = 4 ;\n else if ( j == mtab -> fmode [ ftype ] . sub - 1 && wtype == 7 ) sub_wtype = 7 ;\n wsize = types_sizes [ wtype_to_wsize [ sub_wtype ] ] ;\n mdct -> imdct_half ( mdct , buf1 + bsize * j , in + bsize * j ) ;\n tctx -> fdsp . vector_fmul_window ( out2 , prev_buf + ( bsize - wsize ) / 2 , buf1 + bsize * j , ff_sine_windows [ av_log2 ( wsize ) ] , wsize / 2 ) ;\n out2 += wsize ;\n memcpy ( out2 , buf1 + bsize * j + wsize / 2 , ( bsize - wsize / 2 ) * sizeof ( float ) ) ;\n out2 += ftype == FT_MEDIUM ? ( bsize - wsize ) / 2 : bsize - wsize ;\n prev_buf = buf1 + bsize * j + bsize / 2 ;\n }\n tctx -> last_block_pos [ ch ] = ( size + first_wsize ) / 2 ;\n }"}
{"idx": 8446, "target": 0, "func": "TEST_F ( BudgetDatabaseTest , GetBudgetNoBudgetOrSES ) {\n GetBudgetDetails ( ) ;\n ASSERT_TRUE ( success_ ) ;\n ASSERT_EQ ( 2U , prediction_ . size ( ) ) ;\n EXPECT_EQ ( 0 , prediction_ [ 0 ] -> budget_at ) ;\n }"}
{"idx": 8447, "target": 0, "func": "static int ebml_parse ( MatroskaDemuxContext * matroska , EbmlSyntax * syntax , void * data ) {\n if ( ! matroska -> current_id ) {\n uint64_t id ;\n int res = ebml_read_num ( matroska , matroska -> ctx -> pb , 4 , & id ) ;\n if ( res < 0 ) return res ;\n matroska -> current_id = id | 1 << 7 * res ;\n }\n return ebml_parse_id ( matroska , syntax , matroska -> current_id , data ) ;\n }"}
{"idx": 8448, "target": 0, "func": "void get_dirname ( char * dirname , const char * filename ) {\n const char * lastSlash = uprv_strrchr ( filename , U_FILE_SEP_CHAR ) + 1 ;\n if ( lastSlash > filename ) {\n uprv_strncpy ( dirname , filename , ( lastSlash - filename ) ) ;\n * ( dirname + ( lastSlash - filename ) ) = '\\0' ;\n }\n else {\n * dirname = '\\0' ;\n }\n }"}
{"idx": 8449, "target": 0, "func": "int inCPS ( prlist CPS , afs_int32 id ) {\n int i ;\n for ( i = ( CPS . prlist_len - 1 ) ;\n i >= 0 ;\n i -- ) {\n if ( CPS . prlist_val [ i ] == id ) return ( 1 ) ;\n }\n return ( 0 ) ;\n }"}
{"idx": 8450, "target": 0, "func": "void ff_svq3_add_idct_c ( uint8_t * dst , int16_t * block , int stride , int qp , int dc ) {\n const int qmul = svq3_dequant_coeff [ qp ] ;\n int i ;\n if ( dc ) {\n dc = 13 * 13 * ( dc == 1 ? 1538 * block [ 0 ] : qmul * ( block [ 0 ] >> 3 ) / 2 ) ;\n block [ 0 ] = 0 ;\n }\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n const int z0 = 13 * ( block [ 0 + 4 * i ] + block [ 2 + 4 * i ] ) ;\n const int z1 = 13 * ( block [ 0 + 4 * i ] - block [ 2 + 4 * i ] ) ;\n const int z2 = 7 * block [ 1 + 4 * i ] - 17 * block [ 3 + 4 * i ] ;\n const int z3 = 17 * block [ 1 + 4 * i ] + 7 * block [ 3 + 4 * i ] ;\n block [ 0 + 4 * i ] = z0 + z3 ;\n block [ 1 + 4 * i ] = z1 + z2 ;\n block [ 2 + 4 * i ] = z1 - z2 ;\n block [ 3 + 4 * i ] = z0 - z3 ;\n }\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n const int z0 = 13 * ( block [ i + 4 * 0 ] + block [ i + 4 * 2 ] ) ;\n const int z1 = 13 * ( block [ i + 4 * 0 ] - block [ i + 4 * 2 ] ) ;\n const int z2 = 7 * block [ i + 4 * 1 ] - 17 * block [ i + 4 * 3 ] ;\n const int z3 = 17 * block [ i + 4 * 1 ] + 7 * block [ i + 4 * 3 ] ;\n const int rr = ( dc + 0x80000 ) ;\n dst [ i + stride * 0 ] = av_clip_uint8 ( dst [ i + stride * 0 ] + ( ( z0 + z3 ) * qmul + rr >> 20 ) ) ;\n dst [ i + stride * 1 ] = av_clip_uint8 ( dst [ i + stride * 1 ] + ( ( z1 + z2 ) * qmul + rr >> 20 ) ) ;\n dst [ i + stride * 2 ] = av_clip_uint8 ( dst [ i + stride * 2 ] + ( ( z1 - z2 ) * qmul + rr >> 20 ) ) ;\n dst [ i + stride * 3 ] = av_clip_uint8 ( dst [ i + stride * 3 ] + ( ( z0 - z3 ) * qmul + rr >> 20 ) ) ;\n }\n }"}
{"idx": 8451, "target": 0, "func": "static void test_multiplesignal ( void ) {\n struct event ev_one , ev_two ;\n struct itimerval itv ;\n setup_test ( \"Multiple signal: \" ) ;\n signal_set ( & ev_one , SIGALRM , signal_cb , & ev_one ) ;\n signal_add ( & ev_one , NULL ) ;\n signal_set ( & ev_two , SIGALRM , signal_cb , & ev_two ) ;\n signal_add ( & ev_two , NULL ) ;\n memset ( & itv , 0 , sizeof ( itv ) ) ;\n itv . it_value . tv_sec = 1 ;\n if ( setitimer ( ITIMER_REAL , & itv , NULL ) == - 1 ) goto skip_simplesignal ;\n event_dispatch ( ) ;\n skip_simplesignal : if ( signal_del ( & ev_one ) == - 1 ) test_ok = 0 ;\n if ( signal_del ( & ev_two ) == - 1 ) test_ok = 0 ;\n cleanup_test ( ) ;\n }"}
{"idx": 8452, "target": 0, "func": "static int dxva2_h264_end_frame ( AVCodecContext * avctx ) {\n H264Context * h = avctx -> priv_data ;\n struct dxva2_picture_context * ctx_pic = h -> cur_pic_ptr -> hwaccel_picture_private ;\n int ret ;\n if ( ctx_pic -> slice_count <= 0 || ctx_pic -> bitstream_size <= 0 ) return - 1 ;\n ret = ff_dxva2_common_end_frame ( avctx , h -> cur_pic_ptr , & ctx_pic -> pp , sizeof ( ctx_pic -> pp ) , & ctx_pic -> qm , sizeof ( ctx_pic -> qm ) , commit_bitstream_and_slice_buffer ) ;\n if ( ! ret ) ff_h264_draw_horiz_band ( h , 0 , h -> avctx -> height ) ;\n return ret ;\n }"}
{"idx": 8453, "target": 0, "func": "static int has_sha1_pack_kept_or_nonlocal ( const unsigned char * sha1 ) {\n static struct packed_git * last_found = ( void * ) 1 ;\n struct packed_git * p ;\n p = ( last_found != ( void * ) 1 ) ? last_found : packed_git ;\n while ( p ) {\n if ( ( ! p -> pack_local || p -> pack_keep ) && find_pack_entry_one ( sha1 , p ) ) {\n last_found = p ;\n return 1 ;\n }\n if ( p == last_found ) p = packed_git ;\n else p = p -> next ;\n if ( p == last_found ) p = p -> next ;\n }\n return 0 ;\n }"}
{"idx": 8454, "target": 0, "func": "int main ( int argc , char * * argv ) {\n int frame_cnt = 0 ;\n FILE * outfile = NULL ;\n vpx_codec_ctx_t codec ;\n VpxVideoReader * reader = NULL ;\n const VpxInterface * decoder = NULL ;\n const VpxVideoInfo * info = NULL ;\n exec_name = argv [ 0 ] ;\n if ( argc != 3 ) die ( \"Invalid number of arguments.\" ) ;\n reader = vpx_video_reader_open ( argv [ 1 ] ) ;\n if ( ! reader ) die ( \"Failed to open %s for reading.\" , argv [ 1 ] ) ;\n if ( ! ( outfile = fopen ( argv [ 2 ] , \"wb\" ) ) ) die ( \"Failed to open %s for writing.\" , argv [ 2 ] ) ;\n info = vpx_video_reader_get_info ( reader ) ;\n decoder = get_vpx_decoder_by_fourcc ( info -> codec_fourcc ) ;\n if ( ! decoder ) die ( \"Unknown input codec.\" ) ;\n printf ( \"Using %s\\n\" , vpx_codec_iface_name ( decoder -> codec_interface ( ) ) ) ;\n if ( vpx_codec_dec_init ( & codec , decoder -> codec_interface ( ) , NULL , 0 ) ) die_codec ( & codec , \"Failed to initialize decoder.\" ) ;\n while ( vpx_video_reader_read_frame ( reader ) ) {\n vpx_codec_iter_t iter = NULL ;\n vpx_image_t * img = NULL ;\n size_t frame_size = 0 ;\n const unsigned char * frame = vpx_video_reader_get_frame ( reader , & frame_size ) ;\n if ( vpx_codec_decode ( & codec , frame , ( unsigned int ) frame_size , NULL , 0 ) ) die_codec ( & codec , \"Failed to decode frame.\" ) ;\n while ( ( img = vpx_codec_get_frame ( & codec , & iter ) ) != NULL ) {\n vpx_img_write ( img , outfile ) ;\n ++ frame_cnt ;\n }\n }\n printf ( \"Processed %d frames.\\n\" , frame_cnt ) ;\n if ( vpx_codec_destroy ( & codec ) ) die_codec ( & codec , \"Failed to destroy codec\" ) ;\n printf ( \"Play: ffplay -f rawvideo -pix_fmt yuv420p -s %dx%d %s\\n\" , info -> frame_width , info -> frame_height , argv [ 2 ] ) ;\n vpx_video_reader_close ( reader ) ;\n fclose ( outfile ) ;\n return EXIT_SUCCESS ;\n }"}
{"idx": 8455, "target": 0, "func": "static int unscaled_value ( int val , const struct scale_factors * sf ) {\n ( void ) sf ;\n return val ;\n }"}
{"idx": 8456, "target": 0, "func": "int mime_header_decoder_feed ( int c , struct mime_header_decoder_data * pd ) {\n return mime_header_decoder_collector ( c , pd ) ;\n }"}
{"idx": 8457, "target": 0, "func": "void proto_reg_handoff_zbee_zcl_on_off ( void ) {\n dissector_handle_t on_off_handle ;\n on_off_handle = find_dissector ( ZBEE_PROTOABBREV_ZCL_ONOFF ) ;\n dissector_add_uint ( \"zbee.zcl.cluster\" , ZBEE_ZCL_CID_ON_OFF , on_off_handle ) ;\n zbee_zcl_init_cluster ( proto_zbee_zcl_on_off , ett_zbee_zcl_on_off , ZBEE_ZCL_CID_ON_OFF , hf_zbee_zcl_on_off_attr_id , hf_zbee_zcl_on_off_srv_rx_cmd_id , - 1 , ( zbee_zcl_fn_attr_data ) dissect_zcl_on_off_attr_data ) ;\n }"}
{"idx": 8458, "target": 0, "func": "gboolean rtp_dyn_payload_remove ( rtp_dyn_payload_t * rtp_dyn_payload , const guint8 pt ) {\n return ( rtp_dyn_payload && rtp_dyn_payload -> table && g_hash_table_remove ( rtp_dyn_payload -> table , GUINT_TO_POINTER ( pt ) ) ) ;\n }"}
{"idx": 8459, "target": 0, "func": "rfbClientPtr rfbReverseConnection ( rfbScreenInfoPtr rfbScreen , char * host , int port ) {\n int sock ;\n rfbClientPtr cl ;\n if ( ( sock = rfbConnect ( rfbScreen , host , port ) ) < 0 ) return ( rfbClientPtr ) NULL ;\n cl = rfbNewClient ( rfbScreen , sock ) ;\n if ( cl ) {\n cl -> reverseConnection = TRUE ;\n }\n return cl ;\n }"}
{"idx": 8460, "target": 0, "func": "rfbBool rfbSendFileTransferMessage ( rfbClientPtr cl , uint8_t contentType , uint8_t contentParam , uint32_t size , uint32_t length , const char * buffer ) {\n rfbFileTransferMsg ft ;\n ft . type = rfbFileTransfer ;\n ft . contentType = contentType ;\n ft . contentParam = contentParam ;\n ft . pad = 0 ;\n ft . size = Swap32IfLE ( size ) ;\n ft . length = Swap32IfLE ( length ) ;\n FILEXFER_ALLOWED_OR_CLOSE_AND_RETURN ( \"\" , cl , FALSE ) ;\n LOCK ( cl -> sendMutex ) ;\n if ( rfbWriteExact ( cl , ( char * ) & ft , sz_rfbFileTransferMsg ) < 0 ) {\n rfbLogPerror ( \"rfbSendFileTransferMessage: write\" ) ;\n rfbCloseClient ( cl ) ;\n UNLOCK ( cl -> sendMutex ) ;\n return FALSE ;\n }\n if ( length > 0 ) {\n if ( rfbWriteExact ( cl , buffer , length ) < 0 ) {\n rfbLogPerror ( \"rfbSendFileTransferMessage: write\" ) ;\n rfbCloseClient ( cl ) ;\n UNLOCK ( cl -> sendMutex ) ;\n return FALSE ;\n }\n }\n UNLOCK ( cl -> sendMutex ) ;\n rfbStatRecordMessageSent ( cl , rfbFileTransfer , sz_rfbFileTransferMsg + length , sz_rfbFileTransferMsg + length ) ;\n return TRUE ;\n }"}
{"idx": 8461, "target": 0, "func": "static void executeCommand ( PGconn * conn , const char * query ) {\n PGresult * res ;\n if ( verbose ) fprintf ( stderr , _ ( \"%s: executing %s\\n\" ) , progname , query ) ;\n res = PQexec ( conn , query ) ;\n if ( ! res || PQresultStatus ( res ) != PGRES_COMMAND_OK ) {\n fprintf ( stderr , _ ( \"%s: query failed: %s\" ) , progname , PQerrorMessage ( conn ) ) ;\n fprintf ( stderr , _ ( \"%s: query was: %s\\n\" ) , progname , query ) ;\n PQfinish ( conn ) ;\n exit_nicely ( 1 ) ;\n }\n PQclear ( res ) ;\n }"}
{"idx": 8462, "target": 0, "func": "void vp9_quantize_dc_32x32 ( const tran_low_t * coeff_ptr , int skip_block , const int16_t * round_ptr , const int16_t quant , tran_low_t * qcoeff_ptr , tran_low_t * dqcoeff_ptr , const int16_t dequant_ptr , uint16_t * eob_ptr ) {\n const int rc = 0 ;\n const int coeff = coeff_ptr [ rc ] ;\n const int coeff_sign = ( coeff >> 31 ) ;\n const int abs_coeff = ( coeff ^ coeff_sign ) - coeff_sign ;\n int tmp , eob = - 1 ;\n if ( ! skip_block ) {\n tmp = clamp ( abs_coeff + round_ptr [ rc != 0 ] , INT16_MIN , INT16_MAX ) ;\n tmp = ( tmp * quant ) >> 15 ;\n qcoeff_ptr [ rc ] = ( tmp ^ coeff_sign ) - coeff_sign ;\n dqcoeff_ptr [ rc ] = qcoeff_ptr [ rc ] * dequant_ptr / 2 ;\n if ( tmp ) eob = 0 ;\n }\n * eob_ptr = eob + 1 ;\n }"}
{"idx": 8463, "target": 0, "func": "static int dissect_h225_SEQUENCE_OF_CallsAvailable ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_SEQUENCE_OF_CallsAvailable , SEQUENCE_OF_CallsAvailable_sequence_of ) ;\n return offset ;\n }"}
{"idx": 8464, "target": 0, "func": "void report_event ( int err , struct peer * peer , const char * str ) {\n char statstr [ NTP_MAXSTRLEN ] ;\n int i ;\n size_t len ;\n if ( peer == NULL ) {\n if ( ctl_sys_last_event != ( u_char ) err ) ctl_sys_num_events = 0 ;\n if ( ctl_sys_num_events >= CTL_SYS_MAXEVENTS ) return ;\n ctl_sys_last_event = ( u_char ) err ;\n ctl_sys_num_events ++ ;\n snprintf ( statstr , sizeof ( statstr ) , \"0.0.0.0 %04x %02x %s\" , ctlsysstatus ( ) , err , eventstr ( err ) ) ;\n if ( str != NULL ) {\n len = strlen ( statstr ) ;\n snprintf ( statstr + len , sizeof ( statstr ) - len , \" %s\" , str ) ;\n }\n NLOG ( NLOG_SYSEVENT ) msyslog ( LOG_INFO , \"%s\" , statstr ) ;\n }\n else {\n const char * src ;\n u_char errlast ;\n errlast = ( u_char ) err & ~ PEER_EVENT ;\n if ( peer -> last_event == errlast ) peer -> num_events = 0 ;\n if ( peer -> num_events >= CTL_PEER_MAXEVENTS ) return ;\n peer -> last_event = errlast ;\n peer -> num_events ++ ;\n if ( ISREFCLOCKADR ( & peer -> srcadr ) ) src = refnumtoa ( & peer -> srcadr ) ;\n else src = stoa ( & peer -> srcadr ) ;\n snprintf ( statstr , sizeof ( statstr ) , \"%s %04x %02x %s\" , src , ctlpeerstatus ( peer ) , err , eventstr ( err ) ) ;\n if ( str != NULL ) {\n len = strlen ( statstr ) ;\n snprintf ( statstr + len , sizeof ( statstr ) - len , \" %s\" , str ) ;\n }\n NLOG ( NLOG_PEEREVENT ) msyslog ( LOG_INFO , \"%s\" , statstr ) ;\n }\n record_proto_stats ( statstr ) ;\n # if DEBUG if ( debug ) printf ( \"event at %lu %s\\n\" , current_time , statstr ) ;\n # endif if ( num_ctl_traps <= 0 ) return ;\n res_opcode = CTL_OP_ASYNCMSG ;\n res_offset = 0 ;\n res_async = TRUE ;\n res_authenticate = FALSE ;\n datapt = rpkt . u . data ;\n dataend = & rpkt . u . data [ CTL_MAX_DATA_LEN ] ;\n if ( ! ( err & PEER_EVENT ) ) {\n rpkt . associd = 0 ;\n rpkt . status = htons ( ctlsysstatus ( ) ) ;\n for ( i = 1 ;\n i <= CS_VARLIST ;\n i ++ ) ctl_putsys ( i ) ;\n }\n else {\n INSIST ( peer != NULL ) ;\n rpkt . associd = htons ( peer -> associd ) ;\n rpkt . status = htons ( ctlpeerstatus ( peer ) ) ;\n for ( i = 1 ;\n i <= CP_MAX_NOAUTOKEY ;\n i ++ ) ctl_putpeer ( i , peer ) ;\n # ifdef REFCLOCK if ( err == PEVNT_CLOCK ) {\n struct refclockstat cs ;\n struct ctl_var * kv ;\n cs . kv_list = NULL ;\n refclock_control ( & peer -> srcadr , NULL , & cs ) ;\n ctl_puthex ( \"refclockstatus\" , ctlclkstatus ( & cs ) ) ;\n for ( i = 1 ;\n i <= CC_MAXCODE ;\n i ++ ) ctl_putclock ( i , & cs , FALSE ) ;\n for ( kv = cs . kv_list ;\n kv != NULL && ! ( EOV & kv -> flags ) ;\n kv ++ ) if ( DEF & kv -> flags ) ctl_putdata ( kv -> text , strlen ( kv -> text ) , FALSE ) ;\n free_varlist ( cs . kv_list ) ;\n }\n # endif }\n ctl_flushpkt ( 0 ) ;\n }"}
{"idx": 8465, "target": 0, "func": "static int handle_grant_struct ( enum enum_acl_lists struct_no , bool drop , LEX_USER * user_from , LEX_USER * user_to ) {\n int result = 0 ;\n uint idx ;\n uint elements ;\n const char * user ;\n const char * host ;\n ACL_USER * acl_user = NULL ;\n ACL_DB * acl_db = NULL ;\n GRANT_NAME * grant_name = NULL ;\n Dynamic_array < GRANT_NAME * > acl_grant_name ;\n HASH * grant_name_hash = NULL ;\n DBUG_ENTER ( \"handle_grant_struct\" ) ;\n DBUG_PRINT ( \"info\" , ( \"scan struct: %u search: '%s'@'%s'\" , struct_no , user_from -> user . str , user_from -> host . str ) ) ;\n LINT_INIT ( user ) ;\n LINT_INIT ( host ) ;\n safe_mutex_assert_owner ( & acl_cache -> lock ) ;\n switch ( struct_no ) {\n case USER_ACL : elements = acl_users . elements ;\n break ;\n case DB_ACL : elements = acl_dbs . elements ;\n break ;\n case COLUMN_PRIVILEGES_HASH : elements = column_priv_hash . records ;\n grant_name_hash = & column_priv_hash ;\n break ;\n case PROC_PRIVILEGES_HASH : elements = proc_priv_hash . records ;\n grant_name_hash = & proc_priv_hash ;\n break ;\n case FUNC_PRIVILEGES_HASH : elements = func_priv_hash . records ;\n grant_name_hash = & func_priv_hash ;\n break ;\n default : return - 1 ;\n }\n # ifdef EXTRA_DEBUG DBUG_PRINT ( \"loop\" , ( \"scan struct: %u search user: '%s' host: '%s'\" , struct_no , user_from -> user . str , user_from -> host . str ) ) ;\n # endif for ( idx = 0 ;\n idx < elements ;\n idx ++ ) {\n switch ( struct_no ) {\n case USER_ACL : acl_user = dynamic_element ( & acl_users , idx , ACL_USER * ) ;\n user = acl_user -> user ;\n host = acl_user -> host . hostname ;\n break ;\n case DB_ACL : acl_db = dynamic_element ( & acl_dbs , idx , ACL_DB * ) ;\n user = acl_db -> user ;\n host = acl_db -> host . hostname ;\n break ;\n case COLUMN_PRIVILEGES_HASH : case PROC_PRIVILEGES_HASH : case FUNC_PRIVILEGES_HASH : grant_name = ( GRANT_NAME * ) hash_element ( grant_name_hash , idx ) ;\n user = grant_name -> user ;\n host = grant_name -> host . hostname ;\n break ;\n default : MY_ASSERT_UNREACHABLE ( ) ;\n }\n if ( ! user ) user = \"\" ;\n if ( ! host ) host = \"\" ;\n # ifdef EXTRA_DEBUG DBUG_PRINT ( \"loop\" , ( \"scan struct: %u index: %u user: '%s' host: '%s'\" , struct_no , idx , user , host ) ) ;\n # endif if ( strcmp ( user_from -> user . str , user ) || my_strcasecmp ( system_charset_info , user_from -> host . str , host ) ) continue ;\n result = 1 ;\n if ( drop ) {\n switch ( struct_no ) {\n case USER_ACL : delete_dynamic_element ( & acl_users , idx ) ;\n elements -- ;\n idx -- ;\n break ;\n case DB_ACL : delete_dynamic_element ( & acl_dbs , idx ) ;\n elements -- ;\n idx -- ;\n break ;\n case COLUMN_PRIVILEGES_HASH : case PROC_PRIVILEGES_HASH : case FUNC_PRIVILEGES_HASH : if ( acl_grant_name . append ( grant_name ) ) DBUG_RETURN ( - 1 ) ;\n break ;\n }\n }\n else if ( user_to ) {\n switch ( struct_no ) {\n case USER_ACL : acl_user -> user = strdup_root ( & mem , user_to -> user . str ) ;\n acl_user -> host . hostname = strdup_root ( & mem , user_to -> host . str ) ;\n break ;\n case DB_ACL : acl_db -> user = strdup_root ( & mem , user_to -> user . str ) ;\n acl_db -> host . hostname = strdup_root ( & mem , user_to -> host . str ) ;\n break ;\n case COLUMN_PRIVILEGES_HASH : case PROC_PRIVILEGES_HASH : case FUNC_PRIVILEGES_HASH : if ( acl_grant_name . append ( grant_name ) ) DBUG_RETURN ( - 1 ) ;\n break ;\n }\n }\n else {\n break ;\n }\n }\n if ( drop || user_to ) {\n for ( int i = 0 ;\n i < acl_grant_name . elements ( ) ;\n ++ i ) {\n grant_name = acl_grant_name . at ( i ) ;\n if ( drop ) {\n my_hash_delete ( grant_name_hash , ( uchar * ) grant_name ) ;\n }\n else {\n char * old_key = grant_name -> hash_key ;\n size_t old_key_length = grant_name -> key_length ;\n grant_name -> set_user_details ( user_to -> host . str , grant_name -> db , user_to -> user . str , grant_name -> tname , TRUE ) ;\n my_hash_update ( grant_name_hash , ( uchar * ) grant_name , ( uchar * ) old_key , old_key_length ) ;\n }\n }\n }\n # ifdef EXTRA_DEBUG DBUG_PRINT ( \"loop\" , ( \"scan struct: %u result %d\" , struct_no , result ) ) ;\n # endif DBUG_RETURN ( result ) ;\n }"}
{"idx": 8466, "target": 0, "func": "static gboolean call_list_find ( call_list * list , guint16 scallno ) {\n for ( ;\n list ;\n list = list -> next ) {\n if ( list -> scallno == scallno ) {\n return TRUE ;\n }\n }\n return FALSE ;\n }"}
{"idx": 8467, "target": 0, "func": "static void req_nonce ( struct recvbuf * rbufp , int restrict_mask ) {\n char buf [ 64 ] ;\n generate_nonce ( rbufp , buf , sizeof ( buf ) ) ;\n ctl_putunqstr ( \"nonce\" , buf , strlen ( buf ) ) ;\n ctl_flushpkt ( 0 ) ;\n }"}
{"idx": 8468, "target": 0, "func": "static inline int vc1_i_pred_dc ( MpegEncContext * s , int overlap , int pq , int n , int16_t * * dc_val_ptr , int * dir_ptr ) {\n int a , b , c , wrap , pred , scale ;\n int16_t * dc_val ;\n static const uint16_t dcpred [ 32 ] = {\n - 1 , 1024 , 512 , 341 , 256 , 205 , 171 , 146 , 128 , 114 , 102 , 93 , 85 , 79 , 73 , 68 , 64 , 60 , 57 , 54 , 51 , 49 , 47 , 45 , 43 , 41 , 39 , 38 , 37 , 35 , 34 , 33 }\n ;\n if ( n < 4 ) scale = s -> y_dc_scale ;\n else scale = s -> c_dc_scale ;\n wrap = s -> block_wrap [ n ] ;\n dc_val = s -> dc_val [ 0 ] + s -> block_index [ n ] ;\n c = dc_val [ - 1 ] ;\n b = dc_val [ - 1 - wrap ] ;\n a = dc_val [ - wrap ] ;\n if ( pq < 9 || ! overlap ) {\n if ( s -> first_slice_line && ( n != 2 && n != 3 ) ) b = a = dcpred [ scale ] ;\n if ( s -> mb_x == 0 && ( n != 1 && n != 3 ) ) b = c = dcpred [ scale ] ;\n }\n else {\n if ( s -> first_slice_line && ( n != 2 && n != 3 ) ) b = a = 0 ;\n if ( s -> mb_x == 0 && ( n != 1 && n != 3 ) ) b = c = 0 ;\n }\n if ( abs ( a - b ) <= abs ( b - c ) ) {\n pred = c ;\n * dir_ptr = 1 ;\n }\n else {\n pred = a ;\n * dir_ptr = 0 ;\n }\n * dc_val_ptr = & dc_val [ 0 ] ;\n return pred ;\n }"}
{"idx": 8469, "target": 1, "func": "static void _SCSUOpen ( UConverter * cnv , UConverterLoadArgs * pArgs , UErrorCode * pErrorCode ) {\n const char * locale = pArgs -> locale ;\n if ( pArgs -> onlyTestIsLoadable ) {\n return ;\n }\n cnv -> extraInfo = uprv_malloc ( sizeof ( SCSUData ) ) ;\n if ( cnv -> extraInfo != NULL ) {\n if ( locale != NULL && locale [ 0 ] == 'j' && locale [ 1 ] == 'a' && ( locale [ 2 ] == 0 || locale [ 2 ] == '_' ) ) {\n ( ( SCSUData * ) cnv -> extraInfo ) -> locale = l_ja ;\n }\n else {\n ( ( SCSUData * ) cnv -> extraInfo ) -> locale = lGeneric ;\n }\n _SCSUReset ( cnv , UCNV_RESET_BOTH ) ;\n }\n else {\n * pErrorCode = U_MEMORY_ALLOCATION_ERROR ;\n }\n cnv -> subUChars [ 0 ] = 0xfffd ;\n cnv -> subCharLen = - 1 ;\n }"}
{"idx": 8470, "target": 0, "func": "static void U_CALLCONV _UTF32ToUnicodeWithOffsets ( UConverterToUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n UConverter * cnv = pArgs -> converter ;\n const char * source = pArgs -> source ;\n const char * sourceLimit = pArgs -> sourceLimit ;\n int32_t * offsets = pArgs -> offsets ;\n int32_t state , offsetDelta ;\n char b ;\n state = cnv -> mode ;\n offsetDelta = 0 ;\n while ( source < sourceLimit && U_SUCCESS ( * pErrorCode ) ) {\n switch ( state ) {\n case 0 : b = * source ;\n if ( b == 0 ) {\n state = 1 ;\n }\n else if ( b == ( char ) 0xff ) {\n state = 5 ;\n }\n else {\n state = 8 ;\n continue ;\n }\n ++ source ;\n break ;\n case 1 : case 2 : case 3 : case 5 : case 6 : case 7 : if ( * source == utf32BOM [ state ] ) {\n ++ state ;\n ++ source ;\n if ( state == 4 ) {\n state = 8 ;\n offsetDelta = ( int32_t ) ( source - pArgs -> source ) ;\n }\n else if ( state == 8 ) {\n state = 9 ;\n offsetDelta = ( int32_t ) ( source - pArgs -> source ) ;\n }\n }\n else {\n int32_t count = ( int32_t ) ( source - pArgs -> source ) ;\n source = pArgs -> source ;\n if ( count == ( state & 3 ) ) {\n }\n else {\n UBool oldFlush = pArgs -> flush ;\n pArgs -> source = utf32BOM + ( state & 4 ) ;\n pArgs -> sourceLimit = pArgs -> source + ( ( state & 3 ) - count ) ;\n pArgs -> flush = FALSE ;\n T_UConverter_toUnicode_UTF32_BE ( pArgs , pErrorCode ) ;\n pArgs -> sourceLimit = sourceLimit ;\n pArgs -> flush = oldFlush ;\n }\n state = 8 ;\n continue ;\n }\n break ;\n case 8 : pArgs -> source = source ;\n if ( offsets == NULL ) {\n T_UConverter_toUnicode_UTF32_BE ( pArgs , pErrorCode ) ;\n }\n else {\n T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC ( pArgs , pErrorCode ) ;\n }\n source = pArgs -> source ;\n break ;\n case 9 : pArgs -> source = source ;\n if ( offsets == NULL ) {\n T_UConverter_toUnicode_UTF32_LE ( pArgs , pErrorCode ) ;\n }\n else {\n T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC ( pArgs , pErrorCode ) ;\n }\n source = pArgs -> source ;\n break ;\n default : break ;\n }\n }\n if ( offsets != NULL && offsetDelta != 0 ) {\n int32_t * offsetsLimit = pArgs -> offsets ;\n while ( offsets < offsetsLimit ) {\n * offsets ++ += offsetDelta ;\n }\n }\n pArgs -> source = source ;\n if ( source == sourceLimit && pArgs -> flush ) {\n switch ( state ) {\n case 0 : break ;\n case 8 : T_UConverter_toUnicode_UTF32_BE ( pArgs , pErrorCode ) ;\n break ;\n case 9 : T_UConverter_toUnicode_UTF32_LE ( pArgs , pErrorCode ) ;\n break ;\n default : pArgs -> source = utf32BOM + ( state & 4 ) ;\n pArgs -> sourceLimit = pArgs -> source + ( state & 3 ) ;\n T_UConverter_toUnicode_UTF32_BE ( pArgs , pErrorCode ) ;\n pArgs -> source = source ;\n pArgs -> sourceLimit = sourceLimit ;\n state = 8 ;\n break ;\n }\n }\n cnv -> mode = state ;\n }"}
{"idx": 8471, "target": 0, "func": "static void composite_free ( tvbuff_t * tvb ) {\n struct tvb_composite * composite_tvb = ( struct tvb_composite * ) tvb ;\n tvb_comp_t * composite = & composite_tvb -> composite ;\n g_slist_free ( composite -> tvbs ) ;\n g_free ( composite -> start_offsets ) ;\n g_free ( composite -> end_offsets ) ;\n if ( tvb -> real_data ) {\n g_free ( ( gpointer ) tvb -> real_data ) ;\n }\n }"}
{"idx": 8472, "target": 0, "func": "static void tscc2_idct4_put ( int * in , int q [ 3 ] , uint8_t * dst , int stride ) {\n int i ;\n int tblk [ 4 * 4 ] ;\n int t0 , t1 , t2 , t3 ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n t0 = DEQUANT ( q [ 0 + ( i & 1 ) ] , in [ 0 * 4 + i ] ) ;\n t1 = DEQUANT ( q [ 1 + ( i & 1 ) ] , in [ 1 * 4 + i ] ) ;\n t2 = DEQUANT ( q [ 0 + ( i & 1 ) ] , in [ 2 * 4 + i ] ) ;\n t3 = DEQUANT ( q [ 1 + ( i & 1 ) ] , in [ 3 * 4 + i ] ) ;\n DCT1D ( tblk [ 0 * 4 + i ] , tblk [ 1 * 4 + i ] , tblk [ 2 * 4 + i ] , tblk [ 3 * 4 + i ] , t0 , t1 , t2 , t3 , COL_OP ) ;\n }\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n DCT1D ( dst [ 0 ] , dst [ 1 ] , dst [ 2 ] , dst [ 3 ] , tblk [ i * 4 + 0 ] , tblk [ i * 4 + 1 ] , tblk [ i * 4 + 2 ] , tblk [ i * 4 + 3 ] , ROW_OP ) ;\n dst += stride ;\n }\n }"}
{"idx": 8473, "target": 0, "func": "static void extension_info_start ( NautilusDirectory * directory , NautilusFile * file , gboolean * doing_io ) {\n NautilusInfoProvider * provider ;\n NautilusOperationResult result ;\n NautilusOperationHandle * handle ;\n GClosure * update_complete ;\n if ( directory -> details -> extension_info_in_progress != NULL ) {\n * doing_io = TRUE ;\n return ;\n }\n if ( ! is_needy ( file , lacks_extension_info , REQUEST_EXTENSION_INFO ) ) {\n return ;\n }\n * doing_io = TRUE ;\n if ( ! async_job_start ( directory , \"extension info\" ) ) {\n return ;\n }\n provider = file -> details -> pending_info_providers -> data ;\n update_complete = g_cclosure_new ( G_CALLBACK ( info_provider_callback ) , directory , NULL ) ;\n g_closure_set_marshal ( update_complete , g_cclosure_marshal_generic ) ;\n result = nautilus_info_provider_update_file_info ( provider , NAUTILUS_FILE_INFO ( file ) , update_complete , & handle ) ;\n g_closure_unref ( update_complete ) ;\n if ( result == NAUTILUS_OPERATION_COMPLETE || result == NAUTILUS_OPERATION_FAILED ) {\n finish_info_provider ( directory , file , provider ) ;\n async_job_end ( directory , \"extension info\" ) ;\n }\n else {\n directory -> details -> extension_info_in_progress = handle ;\n directory -> details -> extension_info_provider = provider ;\n directory -> details -> extension_info_file = file ;\n }\n }"}
{"idx": 8474, "target": 0, "func": "void ff_h263_show_pict_info ( MpegEncContext * s ) {\n if ( s -> avctx -> debug & FF_DEBUG_PICT_INFO ) {\n av_log ( s -> avctx , AV_LOG_DEBUG , \"qp:%d %c size:%d rnd:%d%s%s%s%s%s%s%s%s%s %d/%d\\n\" , s -> qscale , av_get_picture_type_char ( s -> pict_type ) , s -> gb . size_in_bits , 1 - s -> no_rounding , s -> obmc ? \" AP\" : \"\" , s -> umvplus ? \" UMV\" : \"\" , s -> h263_long_vectors ? \" LONG\" : \"\" , s -> h263_plus ? \" +\" : \"\" , s -> h263_aic ? \" AIC\" : \"\" , s -> alt_inter_vlc ? \" AIV\" : \"\" , s -> modified_quant ? \" MQ\" : \"\" , s -> loop_filter ? \" LOOP\" : \"\" , s -> h263_slice_structured ? \" SS\" : \"\" , s -> avctx -> time_base . den , s -> avctx -> time_base . num ) ;\n }\n }"}
{"idx": 8475, "target": 0, "func": "static void ivi_huff_desc_copy ( IVIHuffDesc * dst , const IVIHuffDesc * src ) {\n dst -> num_rows = src -> num_rows ;\n memcpy ( dst -> xbits , src -> xbits , src -> num_rows ) ;\n }"}
{"idx": 8476, "target": 0, "func": "static void pdf_run_Tf ( fz_context * ctx , pdf_processor * proc , const char * name , pdf_font_desc * font , float size ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_gstate * gstate = pr -> gstate + pr -> gtop ;\n pdf_drop_font ( ctx , gstate -> text . font ) ;\n gstate -> text . font = pdf_keep_font ( ctx , font ) ;\n gstate -> text . size = size ;\n }"}
{"idx": 8477, "target": 0, "func": "int ff_mpeg1_decode_block_intra ( MpegEncContext * s , int16_t * block , int n ) {\n return mpeg1_decode_block_intra ( s , block , n ) ;\n }"}
{"idx": 8478, "target": 0, "func": "static void rtp_dyn_payload_value_destroy ( gpointer data ) {\n encoding_name_and_rate_t * encoding_name_and_rate_pt = ( encoding_name_and_rate_t * ) data ;\n wmem_free ( wmem_file_scope ( ) , encoding_name_and_rate_pt -> encoding_name ) ;\n wmem_free ( wmem_file_scope ( ) , encoding_name_and_rate_pt ) ;\n }"}
{"idx": 8479, "target": 0, "func": "void vp9_rc_set_frame_target ( VP9_COMP * cpi , int target ) {\n const VP9_COMMON * const cm = & cpi -> common ;\n RATE_CONTROL * const rc = & cpi -> rc ;\n rc -> this_frame_target = target ;\n rc -> sb64_target_rate = ( ( int64_t ) rc -> this_frame_target * 64 * 64 ) / ( cm -> width * cm -> height ) ;\n }"}
{"idx": 8480, "target": 0, "func": "void xmlListReverseWalk ( xmlListPtr l , xmlListWalker walker , const void * user ) {\n xmlLinkPtr lk ;\n if ( ( l == NULL ) || ( walker == NULL ) ) return ;\n for ( lk = l -> sentinel -> prev ;\n lk != l -> sentinel ;\n lk = lk -> prev ) {\n if ( ( walker ( lk -> data , user ) ) == 0 ) break ;\n }\n }"}
{"idx": 8481, "target": 0, "func": "static int dissect_h245_T_t120SetupProcedure ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_t120SetupProcedure , T_t120SetupProcedure_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 8482, "target": 0, "func": "void vp8_mbpost_proc_down_c ( unsigned char * dst , int pitch , int rows , int cols , int flimit ) {\n int r , c , i ;\n const short * rv3 = & vp8_rv [ 63 & rand ( ) ] ;\n for ( c = 0 ;\n c < cols ;\n c ++ ) {\n unsigned char * s = & dst [ c ] ;\n int sumsq = 0 ;\n int sum = 0 ;\n unsigned char d [ 16 ] ;\n const short * rv2 = rv3 + ( ( c * 17 ) & 127 ) ;\n for ( i = - 8 ;\n i < 0 ;\n i ++ ) s [ i * pitch ] = s [ 0 ] ;\n for ( i = 0 ;\n i < 17 ;\n i ++ ) s [ ( i + rows ) * pitch ] = s [ ( rows - 1 ) * pitch ] ;\n for ( i = - 8 ;\n i <= 6 ;\n i ++ ) {\n sumsq += s [ i * pitch ] * s [ i * pitch ] ;\n sum += s [ i * pitch ] ;\n }\n for ( r = 0 ;\n r < rows + 8 ;\n r ++ ) {\n sumsq += s [ 7 * pitch ] * s [ 7 * pitch ] - s [ - 8 * pitch ] * s [ - 8 * pitch ] ;\n sum += s [ 7 * pitch ] - s [ - 8 * pitch ] ;\n d [ r & 15 ] = s [ 0 ] ;\n if ( sumsq * 15 - sum * sum < flimit ) {\n d [ r & 15 ] = ( rv2 [ r & 127 ] + sum + s [ 0 ] ) >> 4 ;\n }\n if ( r >= 8 ) s [ - 8 * pitch ] = d [ ( r - 8 ) & 15 ] ;\n s += pitch ;\n }\n }\n }"}
{"idx": 8483, "target": 0, "func": "static void ctx_exit_on_error ( vpx_codec_ctx_t * ctx , const char * s , ... ) {\n va_list ap ;\n va_start ( ap , s ) ;\n warn_or_exit_on_errorv ( ctx , 1 , s , ap ) ;\n va_end ( ap ) ;\n }"}
{"idx": 8484, "target": 0, "func": "static void test_join ( ) {\n MYSQL_STMT * stmt ;\n int rc , i , j ;\n const char * query [ ] = {\n \"SELECT * FROM t2 join t1 on (t1.a=t2.a)\" , \"SELECT * FROM t2 natural join t1\" , \"SELECT * FROM t2 join t1 using(a)\" , \"SELECT * FROM t2 left join t1 on(t1.a=t2.a)\" , \"SELECT * FROM t2 natural left join t1\" , \"SELECT * FROM t2 left join t1 using(a)\" , \"SELECT * FROM t2 right join t1 on(t1.a=t2.a)\" , \"SELECT * FROM t2 natural right join t1\" , \"SELECT * FROM t2 right join t1 using(a)\" }\n ;\n myheader ( \"test_join\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS t1, t2\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE t1 (a int , b int);\n\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t1 values (1, 1), (2, 2), (3, 3), (4, 4), (5, 5);\n\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE t2 (a int , c int);\n\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t2 values (1, 1), (2, 2), (3, 3), (4, 4), (5, 5);\n\" ) ;\n myquery ( rc ) ;\n for ( j = 0 ;\n j < 9 ;\n j ++ ) {\n stmt = mysql_simple_prepare ( mysql , query [ j ] ) ;\n check_stmt ( stmt ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( rc == 5 ) ;\n }\n mysql_stmt_close ( stmt ) ;\n }\n rc = mysql_query ( mysql , \"DROP TABLE t1, t2\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 8485, "target": 0, "func": "static char * emnc10_opaque_binary_attr ( tvbuff_t * tvb , guint32 offset , guint8 token , guint8 codepage , guint32 * length ) {\n guint32 data_len = tvb_get_guintvar ( tvb , offset , length ) ;\n char * str = NULL ;\n switch ( codepage ) {\n case 0 : switch ( token ) {\n case 0x05 : str = date_time_from_opaque ( tvb , offset + * length , data_len ) ;\n break ;\n default : break ;\n }\n break ;\n default : break ;\n }\n if ( str == NULL ) {\n str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"(%d bytes of unparsed opaque data)\" , data_len ) ;\n }\n * length += data_len ;\n return str ;\n }"}
{"idx": 8486, "target": 0, "func": "static int dissect_h245_Scope ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_Scope , Scope_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 8487, "target": 0, "func": "tdata_t _TIFFmalloc ( tsize_t s ) {\n if ( s == 0 ) return ( ( void * ) NULL ) ;\n return ( malloc ( ( size_t ) s ) ) ;\n }"}
{"idx": 8488, "target": 0, "func": "static int dissect_zbee_zcl_appl_ctrl ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n proto_tree * payload_tree ;\n zbee_zcl_packet * zcl ;\n guint offset = 0 ;\n guint8 cmd_id ;\n gint rem_len ;\n if ( data == NULL ) return 0 ;\n zcl = ( zbee_zcl_packet * ) data ;\n cmd_id = zcl -> cmd_id ;\n if ( zcl -> direction == ZBEE_ZCL_FCF_TO_SERVER ) {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"%s, Seq: %u\" , val_to_str_const ( cmd_id , zbee_zcl_appl_ctrl_srv_rx_cmd_names , \"Unknown Command\" ) , zcl -> tran_seqno ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_appl_ctrl_srv_rx_cmd_id , tvb , offset , 1 , cmd_id ) ;\n rem_len = tvb_reported_length_remaining ( tvb , ++ offset ) ;\n if ( rem_len > 0 ) {\n payload_tree = proto_tree_add_subtree ( tree , tvb , offset , rem_len , ett_zbee_zcl_appl_ctrl , NULL , \"Payload\" ) ;\n switch ( cmd_id ) {\n case ZBEE_ZCL_CMD_ID_APPL_CTRL_EXECUTION_CMD : dissect_zcl_appl_ctrl_exec_cmd ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_APPL_CTRL_SIGNAL_STATE : case ZBEE_ZCL_CMD_ID_APPL_CTRL_OVERLOAD_PAUSE_RESUME : case ZBEE_ZCL_CMD_ID_APPL_CTRL_OVERLOAD_PAUSE : break ;\n case ZBEE_ZCL_CMD_ID_APPL_CTRL_WRITE_FUNCS : dissect_zcl_appl_ctrl_wr_funcs ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_APPL_CTRL_OVERLOAD_WARNING : dissect_zcl_appl_ctrl_ovrl_warning ( tvb , payload_tree , & offset ) ;\n break ;\n default : break ;\n }\n }\n }\n else {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"%s, Seq: %u\" , val_to_str_const ( cmd_id , zbee_zcl_appl_ctrl_srv_tx_cmd_names , \"Unknown Command\" ) , zcl -> tran_seqno ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_appl_ctrl_srv_tx_cmd_id , tvb , offset , 1 , cmd_id ) ;\n rem_len = tvb_reported_length_remaining ( tvb , ++ offset ) ;\n if ( rem_len > 0 ) {\n payload_tree = proto_tree_add_subtree ( tree , tvb , offset , rem_len , ett_zbee_zcl_appl_ctrl , NULL , \"Payload\" ) ;\n switch ( cmd_id ) {\n case ZBEE_ZCL_CMD_ID_APPL_CTRL_SIGNAL_STATE_RSP : case ZBEE_ZCL_CMD_ID_APPL_CTRL_SIGNAL_STATE_NOTIF : dissect_zcl_appl_ctrl_signal_state_rsp ( tvb , payload_tree , & offset ) ;\n break ;\n default : break ;\n }\n }\n }\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 8489, "target": 0, "func": "static int64_t rd_pick_intra_sub_8x8_y_mode ( VP9_COMP * cpi , MACROBLOCK * mb , int * rate , int * rate_y , int64_t * distortion , int64_t best_rd ) {\n int i , j ;\n const MACROBLOCKD * const xd = & mb -> e_mbd ;\n MODE_INFO * const mic = xd -> mi [ 0 ] . src_mi ;\n const MODE_INFO * above_mi = xd -> mi [ - xd -> mi_stride ] . src_mi ;\n const MODE_INFO * left_mi = xd -> left_available ? xd -> mi [ - 1 ] . src_mi : NULL ;\n const BLOCK_SIZE bsize = xd -> mi [ 0 ] . src_mi -> mbmi . sb_type ;\n const int num_4x4_blocks_wide = num_4x4_blocks_wide_lookup [ bsize ] ;\n const int num_4x4_blocks_high = num_4x4_blocks_high_lookup [ bsize ] ;\n int idx , idy ;\n int cost = 0 ;\n int64_t total_distortion = 0 ;\n int tot_rate_y = 0 ;\n int64_t total_rd = 0 ;\n ENTROPY_CONTEXT t_above [ 4 ] , t_left [ 4 ] ;\n const int * bmode_costs = cpi -> mbmode_cost ;\n vpx_memcpy ( t_above , xd -> plane [ 0 ] . above_context , sizeof ( t_above ) ) ;\n vpx_memcpy ( t_left , xd -> plane [ 0 ] . left_context , sizeof ( t_left ) ) ;\n for ( idy = 0 ;\n idy < 2 ;\n idy += num_4x4_blocks_high ) {\n for ( idx = 0 ;\n idx < 2 ;\n idx += num_4x4_blocks_wide ) {\n PREDICTION_MODE best_mode = DC_PRED ;\n int r = INT_MAX , ry = INT_MAX ;\n int64_t d = INT64_MAX , this_rd = INT64_MAX ;\n i = idy * 2 + idx ;\n if ( cpi -> common . frame_type == KEY_FRAME ) {\n const PREDICTION_MODE A = vp9_above_block_mode ( mic , above_mi , i ) ;\n const PREDICTION_MODE L = vp9_left_block_mode ( mic , left_mi , i ) ;\n bmode_costs = cpi -> y_mode_costs [ A ] [ L ] ;\n }\n this_rd = rd_pick_intra4x4block ( cpi , mb , i , & best_mode , bmode_costs , t_above + idx , t_left + idy , & r , & ry , & d , bsize , best_rd - total_rd ) ;\n if ( this_rd >= best_rd - total_rd ) return INT64_MAX ;\n total_rd += this_rd ;\n cost += r ;\n total_distortion += d ;\n tot_rate_y += ry ;\n mic -> bmi [ i ] . as_mode = best_mode ;\n for ( j = 1 ;\n j < num_4x4_blocks_high ;\n ++ j ) mic -> bmi [ i + j * 2 ] . as_mode = best_mode ;\n for ( j = 1 ;\n j < num_4x4_blocks_wide ;\n ++ j ) mic -> bmi [ i + j ] . as_mode = best_mode ;\n if ( total_rd >= best_rd ) return INT64_MAX ;\n }\n }\n * rate = cost ;\n * rate_y = tot_rate_y ;\n * distortion = total_distortion ;\n mic -> mbmi . mode = mic -> bmi [ 3 ] . as_mode ;\n return RDCOST ( mb -> rdmult , mb -> rddiv , cost , total_distortion ) ;\n }"}
{"idx": 8490, "target": 0, "func": "void * ASN1_item_d2i_fp ( const ASN1_ITEM * it , FILE * in , void * x ) {\n BIO * b ;\n char * ret ;\n if ( ( b = BIO_new ( BIO_s_file ( ) ) ) == NULL ) {\n ASN1err ( ASN1_F_ASN1_ITEM_D2I_FP , ERR_R_BUF_LIB ) ;\n return ( NULL ) ;\n }\n BIO_set_fp ( b , in , BIO_NOCLOSE ) ;\n ret = ASN1_item_d2i_bio ( it , b , x ) ;\n BIO_free ( b ) ;\n return ( ret ) ;\n }"}
{"idx": 8491, "target": 0, "func": "void * hb_blob_get_user_data ( hb_blob_t * blob , hb_user_data_key_t * key ) {\n return hb_object_get_user_data ( blob , key ) ;\n }"}
{"idx": 8492, "target": 0, "func": "int qemuMonitorTextMigrate ( qemuMonitorPtr mon , unsigned int flags , const char * dest ) {\n char * cmd = NULL ;\n char * info = NULL ;\n int ret = - 1 ;\n char * safedest = qemuMonitorEscapeArg ( dest ) ;\n virBuffer extra = VIR_BUFFER_INITIALIZER ;\n char * extrastr = NULL ;\n if ( ! safedest ) {\n virReportOOMError ( ) ;\n return - 1 ;\n }\n if ( flags & QEMU_MONITOR_MIGRATE_BACKGROUND ) virBufferAddLit ( & extra , \" -d\" ) ;\n if ( flags & QEMU_MONITOR_MIGRATE_NON_SHARED_DISK ) virBufferAddLit ( & extra , \" -b\" ) ;\n if ( flags & QEMU_MONITOR_MIGRATE_NON_SHARED_INC ) virBufferAddLit ( & extra , \" -i\" ) ;\n if ( virBufferError ( & extra ) ) {\n virBufferFreeAndReset ( & extra ) ;\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n extrastr = virBufferContentAndReset ( & extra ) ;\n if ( virAsprintf ( & cmd , \"migrate %s\\\"%s\\\"\" , extrastr ? extrastr : \"\" , safedest ) < 0 ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & info ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"unable to start migration to %s\" ) , dest ) ;\n goto cleanup ;\n }\n if ( strstr ( info , \"fail\" ) != NULL ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"migration to '%s' failed: %s\" ) , dest , info ) ;\n goto cleanup ;\n }\n if ( strstr ( info , \"unknown command:\" ) ) {\n qemuReportError ( VIR_ERR_OPERATION_INVALID , _ ( \"migration to '%s' not supported by this qemu: %s\" ) , dest , info ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( extrastr ) ;\n VIR_FREE ( safedest ) ;\n VIR_FREE ( info ) ;\n VIR_FREE ( cmd ) ;\n return ret ;\n }"}
{"idx": 8493, "target": 0, "func": "static SplineSet * SCttfApprox ( SplineChar * sc , int layer ) {\n SplineSet * head = NULL , * last , * ss , * tss ;\n RefChar * ref ;\n for ( ss = sc -> layers [ layer ] . splines ;\n ss != NULL ;\n ss = ss -> next ) {\n tss = sc -> layers [ layer ] . order2 ? SplinePointListCopy1 ( ss ) : SSttfApprox ( ss ) ;\n if ( head == NULL ) head = tss ;\n else last -> next = tss ;\n last = tss ;\n }\n for ( ref = sc -> layers [ layer ] . refs ;\n ref != NULL ;\n ref = ref -> next ) {\n for ( ss = ref -> layers [ 0 ] . splines ;\n ss != NULL ;\n ss = ss -> next ) {\n tss = sc -> layers [ layer ] . order2 ? SplinePointListCopy1 ( ss ) : SSttfApprox ( ss ) ;\n if ( head == NULL ) head = tss ;\n else last -> next = tss ;\n last = tss ;\n }\n }\n return ( head ) ;\n }"}
{"idx": 8494, "target": 0, "func": "static int evhttp_is_connection_keepalive ( struct evkeyvalq * headers ) {\n const char * connection = evhttp_find_header ( headers , \"Connection\" ) ;\n return ( connection != NULL && strncasecmp ( connection , \"keep-alive\" , 10 ) == 0 ) ;\n }"}
{"idx": 8495, "target": 0, "func": "int mime_hdr_field_slotnum ( MIMEHdrImpl * mh , MIMEField * field ) {\n int slots_so_far ;\n MIMEFieldBlockImpl * fblock ;\n slots_so_far = 0 ;\n for ( fblock = & ( mh -> m_first_fblock ) ;\n fblock != nullptr ;\n fblock = fblock -> m_next ) {\n if ( fblock -> contains ( field ) ) {\n MIMEField * first = & ( fblock -> m_field_slots [ 0 ] ) ;\n ptrdiff_t block_slot = field - first ;\n return slots_so_far + block_slot ;\n }\n slots_so_far += MIME_FIELD_BLOCK_SLOTS ;\n }\n return - 1 ;\n }"}
{"idx": 8496, "target": 1, "func": "void vp9_fwht4x4_c ( const int16_t * input , int16_t * output , int stride ) {\n int i ;\n int a1 , b1 , c1 , d1 , e1 ;\n const int16_t * ip = input ;\n int16_t * op = output ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n a1 = ip [ 0 * stride ] ;\n b1 = ip [ 1 * stride ] ;\n c1 = ip [ 2 * stride ] ;\n d1 = ip [ 3 * stride ] ;\n a1 += b1 ;\n d1 = d1 - c1 ;\n e1 = ( a1 - d1 ) >> 1 ;\n b1 = e1 - b1 ;\n c1 = e1 - c1 ;\n a1 -= c1 ;\n d1 += b1 ;\n op [ 0 ] = a1 ;\n op [ 4 ] = c1 ;\n op [ 8 ] = d1 ;\n op [ 12 ] = b1 ;\n ip ++ ;\n op ++ ;\n }\n ip = output ;\n op = output ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n a1 = ip [ 0 ] ;\n b1 = ip [ 1 ] ;\n c1 = ip [ 2 ] ;\n d1 = ip [ 3 ] ;\n a1 += b1 ;\n d1 -= c1 ;\n e1 = ( a1 - d1 ) >> 1 ;\n b1 = e1 - b1 ;\n c1 = e1 - c1 ;\n a1 -= c1 ;\n d1 += b1 ;\n op [ 0 ] = a1 * UNIT_QUANT_FACTOR ;\n op [ 1 ] = c1 * UNIT_QUANT_FACTOR ;\n op [ 2 ] = d1 * UNIT_QUANT_FACTOR ;\n op [ 3 ] = b1 * UNIT_QUANT_FACTOR ;\n ip += 4 ;\n op += 4 ;\n }\n }"}
{"idx": 8497, "target": 0, "func": "static int select_input_picture ( MpegEncContext * s ) {\n int i , ret ;\n for ( i = 1 ;\n i < MAX_PICTURE_COUNT ;\n i ++ ) s -> reordered_input_picture [ i - 1 ] = s -> reordered_input_picture [ i ] ;\n s -> reordered_input_picture [ MAX_PICTURE_COUNT - 1 ] = NULL ;\n if ( s -> reordered_input_picture [ 0 ] == NULL && s -> input_picture [ 0 ] ) {\n if ( s -> next_picture_ptr == NULL || s -> intra_only ) {\n s -> reordered_input_picture [ 0 ] = s -> input_picture [ 0 ] ;\n s -> reordered_input_picture [ 0 ] -> f . pict_type = AV_PICTURE_TYPE_I ;\n s -> reordered_input_picture [ 0 ] -> f . coded_picture_number = s -> coded_picture_number ++ ;\n }\n else {\n int b_frames ;\n if ( s -> avctx -> frame_skip_threshold || s -> avctx -> frame_skip_factor ) {\n if ( s -> picture_in_gop_number < s -> gop_size && skip_check ( s , s -> input_picture [ 0 ] , s -> next_picture_ptr ) ) {\n av_frame_unref ( & s -> input_picture [ 0 ] -> f ) ;\n emms_c ( ) ;\n ff_vbv_update ( s , 0 ) ;\n goto no_output_pic ;\n }\n }\n if ( s -> flags & CODEC_FLAG_PASS2 ) {\n for ( i = 0 ;\n i < s -> max_b_frames + 1 ;\n i ++ ) {\n int pict_num = s -> input_picture [ 0 ] -> f . display_picture_number + i ;\n if ( pict_num >= s -> rc_context . num_entries ) break ;\n if ( ! s -> input_picture [ i ] ) {\n s -> rc_context . entry [ pict_num - 1 ] . new_pict_type = AV_PICTURE_TYPE_P ;\n break ;\n }\n s -> input_picture [ i ] -> f . pict_type = s -> rc_context . entry [ pict_num ] . new_pict_type ;\n }\n }\n if ( s -> avctx -> b_frame_strategy == 0 ) {\n b_frames = s -> max_b_frames ;\n while ( b_frames && ! s -> input_picture [ b_frames ] ) b_frames -- ;\n }\n else if ( s -> avctx -> b_frame_strategy == 1 ) {\n for ( i = 1 ;\n i < s -> max_b_frames + 1 ;\n i ++ ) {\n if ( s -> input_picture [ i ] && s -> input_picture [ i ] -> b_frame_score == 0 ) {\n s -> input_picture [ i ] -> b_frame_score = get_intra_count ( s , s -> input_picture [ i ] -> f . data [ 0 ] , s -> input_picture [ i - 1 ] -> f . data [ 0 ] , s -> linesize ) + 1 ;\n }\n }\n for ( i = 0 ;\n i < s -> max_b_frames + 1 ;\n i ++ ) {\n if ( s -> input_picture [ i ] == NULL || s -> input_picture [ i ] -> b_frame_score - 1 > s -> mb_num / s -> avctx -> b_sensitivity ) break ;\n }\n b_frames = FFMAX ( 0 , i - 1 ) ;\n for ( i = 0 ;\n i < b_frames + 1 ;\n i ++ ) {\n s -> input_picture [ i ] -> b_frame_score = 0 ;\n }\n }\n else if ( s -> avctx -> b_frame_strategy == 2 ) {\n b_frames = estimate_best_b_count ( s ) ;\n }\n else {\n av_log ( s -> avctx , AV_LOG_ERROR , \"illegal b frame strategy\\n\" ) ;\n b_frames = 0 ;\n }\n emms_c ( ) ;\n for ( i = b_frames - 1 ;\n i >= 0 ;\n i -- ) {\n int type = s -> input_picture [ i ] -> f . pict_type ;\n if ( type && type != AV_PICTURE_TYPE_B ) b_frames = i ;\n }\n if ( s -> input_picture [ b_frames ] -> f . pict_type == AV_PICTURE_TYPE_B && b_frames == s -> max_b_frames ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"warning, too many b frames in a row\\n\" ) ;\n }\n if ( s -> picture_in_gop_number + b_frames >= s -> gop_size ) {\n if ( ( s -> mpv_flags & FF_MPV_FLAG_STRICT_GOP ) && s -> gop_size > s -> picture_in_gop_number ) {\n b_frames = s -> gop_size - s -> picture_in_gop_number - 1 ;\n }\n else {\n if ( s -> flags & CODEC_FLAG_CLOSED_GOP ) b_frames = 0 ;\n s -> input_picture [ b_frames ] -> f . pict_type = AV_PICTURE_TYPE_I ;\n }\n }\n if ( ( s -> flags & CODEC_FLAG_CLOSED_GOP ) && b_frames && s -> input_picture [ b_frames ] -> f . pict_type == AV_PICTURE_TYPE_I ) b_frames -- ;\n s -> reordered_input_picture [ 0 ] = s -> input_picture [ b_frames ] ;\n if ( s -> reordered_input_picture [ 0 ] -> f . pict_type != AV_PICTURE_TYPE_I ) s -> reordered_input_picture [ 0 ] -> f . pict_type = AV_PICTURE_TYPE_P ;\n s -> reordered_input_picture [ 0 ] -> f . coded_picture_number = s -> coded_picture_number ++ ;\n for ( i = 0 ;\n i < b_frames ;\n i ++ ) {\n s -> reordered_input_picture [ i + 1 ] = s -> input_picture [ i ] ;\n s -> reordered_input_picture [ i + 1 ] -> f . pict_type = AV_PICTURE_TYPE_B ;\n s -> reordered_input_picture [ i + 1 ] -> f . coded_picture_number = s -> coded_picture_number ++ ;\n }\n }\n }\n no_output_pic : if ( s -> reordered_input_picture [ 0 ] ) {\n s -> reordered_input_picture [ 0 ] -> reference = s -> reordered_input_picture [ 0 ] -> f . pict_type != AV_PICTURE_TYPE_B ? 3 : 0 ;\n ff_mpeg_unref_picture ( s , & s -> new_picture ) ;\n if ( ( ret = ff_mpeg_ref_picture ( s , & s -> new_picture , s -> reordered_input_picture [ 0 ] ) ) ) return ret ;\n if ( s -> reordered_input_picture [ 0 ] -> shared || s -> avctx -> rc_buffer_size ) {\n Picture * pic ;\n int i = ff_find_unused_picture ( s , 0 ) ;\n if ( i < 0 ) return i ;\n pic = & s -> picture [ i ] ;\n pic -> reference = s -> reordered_input_picture [ 0 ] -> reference ;\n if ( ff_alloc_picture ( s , pic , 0 ) < 0 ) {\n return - 1 ;\n }\n copy_picture_attributes ( s , & pic -> f , & s -> reordered_input_picture [ 0 ] -> f ) ;\n av_frame_unref ( & s -> reordered_input_picture [ 0 ] -> f ) ;\n s -> reordered_input_picture [ 0 ] -> shared = 0 ;\n s -> current_picture_ptr = pic ;\n }\n else {\n s -> current_picture_ptr = s -> reordered_input_picture [ 0 ] ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n s -> new_picture . f . data [ i ] += INPLACE_OFFSET ;\n }\n }\n ff_mpeg_unref_picture ( s , & s -> current_picture ) ;\n if ( ( ret = ff_mpeg_ref_picture ( s , & s -> current_picture , s -> current_picture_ptr ) ) < 0 ) return ret ;\n s -> picture_number = s -> new_picture . f . display_picture_number ;\n }\n else {\n ff_mpeg_unref_picture ( s , & s -> new_picture ) ;\n }\n return 0 ;\n }"}
{"idx": 8498, "target": 0, "func": "static void set_temporal_layer_pattern ( int layering_mode , vpx_codec_enc_cfg_t * cfg , int * layer_flags , int * flag_periodicity ) {\n switch ( layering_mode ) {\n case 0 : {\n int ids [ 1 ] = {\n 0 }\n ;\n cfg -> ts_periodicity = 1 ;\n * flag_periodicity = 1 ;\n cfg -> ts_number_layers = 1 ;\n cfg -> ts_rate_decimator [ 0 ] = 1 ;\n memcpy ( cfg -> ts_layer_id , ids , sizeof ( ids ) ) ;\n layer_flags [ 0 ] = VPX_EFLAG_FORCE_KF | VP8_EFLAG_NO_UPD_GF | VP8_EFLAG_NO_UPD_ARF ;\n break ;\n }\n case 1 : {\n int ids [ 2 ] = {\n 0 , 1 }\n ;\n cfg -> ts_periodicity = 2 ;\n * flag_periodicity = 2 ;\n cfg -> ts_number_layers = 2 ;\n cfg -> ts_rate_decimator [ 0 ] = 2 ;\n cfg -> ts_rate_decimator [ 1 ] = 1 ;\n memcpy ( cfg -> ts_layer_id , ids , sizeof ( ids ) ) ;\n # if 1 layer_flags [ 0 ] = VPX_EFLAG_FORCE_KF | VP8_EFLAG_NO_UPD_GF | VP8_EFLAG_NO_UPD_ARF | VP8_EFLAG_NO_REF_GF | VP8_EFLAG_NO_REF_ARF ;\n layer_flags [ 1 ] = VP8_EFLAG_NO_UPD_ARF | VP8_EFLAG_NO_UPD_LAST | VP8_EFLAG_NO_REF_ARF ;\n # else layer_flags [ 0 ] = VPX_EFLAG_FORCE_KF | VP8_EFLAG_NO_UPD_GF | VP8_EFLAG_NO_UPD_ARF | VP8_EFLAG_NO_REF_GF | VP8_EFLAG_NO_REF_ARF ;\n layer_flags [ 1 ] = VP8_EFLAG_NO_UPD_ARF | VP8_EFLAG_NO_UPD_LAST | VP8_EFLAG_NO_REF_ARF | VP8_EFLAG_NO_REF_LAST ;\n # endif break ;\n }\n case 2 : {\n int ids [ 3 ] = {\n 0 , 1 , 1 }\n ;\n cfg -> ts_periodicity = 3 ;\n * flag_periodicity = 3 ;\n cfg -> ts_number_layers = 2 ;\n cfg -> ts_rate_decimator [ 0 ] = 3 ;\n cfg -> ts_rate_decimator [ 1 ] = 1 ;\n memcpy ( cfg -> ts_layer_id , ids , sizeof ( ids ) ) ;\n layer_flags [ 0 ] = VPX_EFLAG_FORCE_KF | VP8_EFLAG_NO_REF_GF | VP8_EFLAG_NO_REF_ARF | VP8_EFLAG_NO_UPD_GF | VP8_EFLAG_NO_UPD_ARF ;\n layer_flags [ 1 ] = layer_flags [ 2 ] = VP8_EFLAG_NO_REF_GF | VP8_EFLAG_NO_REF_ARF | VP8_EFLAG_NO_UPD_ARF | VP8_EFLAG_NO_UPD_LAST ;\n break ;\n }\n case 3 : {\n int ids [ 6 ] = {\n 0 , 2 , 2 , 1 , 2 , 2 }\n ;\n cfg -> ts_periodicity = 6 ;\n * flag_periodicity = 6 ;\n cfg -> ts_number_layers = 3 ;\n cfg -> ts_rate_decimator [ 0 ] = 6 ;\n cfg -> ts_rate_decimator [ 1 ] = 3 ;\n cfg -> ts_rate_decimator [ 2 ] = 1 ;\n memcpy ( cfg -> ts_layer_id , ids , sizeof ( ids ) ) ;\n layer_flags [ 0 ] = VPX_EFLAG_FORCE_KF | VP8_EFLAG_NO_REF_GF | VP8_EFLAG_NO_REF_ARF | VP8_EFLAG_NO_UPD_GF | VP8_EFLAG_NO_UPD_ARF ;\n layer_flags [ 3 ] = VP8_EFLAG_NO_REF_ARF | VP8_EFLAG_NO_UPD_ARF | VP8_EFLAG_NO_UPD_LAST ;\n layer_flags [ 1 ] = layer_flags [ 2 ] = layer_flags [ 4 ] = layer_flags [ 5 ] = VP8_EFLAG_NO_UPD_GF | VP8_EFLAG_NO_UPD_LAST ;\n break ;\n }\n case 4 : {\n int ids [ 4 ] = {\n 0 , 2 , 1 , 2 }\n ;\n cfg -> ts_periodicity = 4 ;\n * flag_periodicity = 4 ;\n cfg -> ts_number_layers = 3 ;\n cfg -> ts_rate_decimator [ 0 ] = 4 ;\n cfg -> ts_rate_decimator [ 1 ] = 2 ;\n cfg -> ts_rate_decimator [ 2 ] = 1 ;\n memcpy ( cfg -> ts_layer_id , ids , sizeof ( ids ) ) ;\n layer_flags [ 0 ] = VPX_EFLAG_FORCE_KF | VP8_EFLAG_NO_REF_GF | VP8_EFLAG_NO_REF_ARF | VP8_EFLAG_NO_UPD_GF | VP8_EFLAG_NO_UPD_ARF ;\n layer_flags [ 2 ] = VP8_EFLAG_NO_REF_GF | VP8_EFLAG_NO_REF_ARF | VP8_EFLAG_NO_UPD_ARF | VP8_EFLAG_NO_UPD_LAST ;\n layer_flags [ 1 ] = layer_flags [ 3 ] = VP8_EFLAG_NO_REF_ARF | VP8_EFLAG_NO_UPD_LAST | VP8_EFLAG_NO_UPD_GF | VP8_EFLAG_NO_UPD_ARF ;\n break ;\n }\n case 5 : {\n int ids [ 4 ] = {\n 0 , 2 , 1 , 2 }\n ;\n cfg -> ts_periodicity = 4 ;\n * flag_periodicity = 4 ;\n cfg -> ts_number_layers = 3 ;\n cfg -> ts_rate_decimator [ 0 ] = 4 ;\n cfg -> ts_rate_decimator [ 1 ] = 2 ;\n cfg -> ts_rate_decimator [ 2 ] = 1 ;\n memcpy ( cfg -> ts_layer_id , ids , sizeof ( ids ) ) ;\n layer_flags [ 0 ] = VPX_EFLAG_FORCE_KF | VP8_EFLAG_NO_REF_GF | VP8_EFLAG_NO_REF_ARF | VP8_EFLAG_NO_UPD_GF | VP8_EFLAG_NO_UPD_ARF ;\n layer_flags [ 2 ] = VP8_EFLAG_NO_REF_ARF | VP8_EFLAG_NO_UPD_LAST | VP8_EFLAG_NO_UPD_ARF ;\n layer_flags [ 1 ] = layer_flags [ 3 ] = VP8_EFLAG_NO_REF_ARF | VP8_EFLAG_NO_UPD_LAST | VP8_EFLAG_NO_UPD_GF | VP8_EFLAG_NO_UPD_ARF ;\n break ;\n }\n case 6 : {\n int ids [ 4 ] = {\n 0 , 2 , 1 , 2 }\n ;\n cfg -> ts_periodicity = 4 ;\n * flag_periodicity = 4 ;\n cfg -> ts_number_layers = 3 ;\n cfg -> ts_rate_decimator [ 0 ] = 4 ;\n cfg -> ts_rate_decimator [ 1 ] = 2 ;\n cfg -> ts_rate_decimator [ 2 ] = 1 ;\n memcpy ( cfg -> ts_layer_id , ids , sizeof ( ids ) ) ;\n layer_flags [ 0 ] = VPX_EFLAG_FORCE_KF | VP8_EFLAG_NO_REF_GF | VP8_EFLAG_NO_REF_ARF | VP8_EFLAG_NO_UPD_GF | VP8_EFLAG_NO_UPD_ARF ;\n layer_flags [ 2 ] = VP8_EFLAG_NO_REF_ARF | VP8_EFLAG_NO_UPD_LAST | VP8_EFLAG_NO_UPD_ARF ;\n layer_flags [ 1 ] = layer_flags [ 3 ] = VP8_EFLAG_NO_UPD_LAST | VP8_EFLAG_NO_UPD_GF ;\n break ;\n }\n case 7 : {\n int ids [ 16 ] = {\n 0 , 4 , 3 , 4 , 2 , 4 , 3 , 4 , 1 , 4 , 3 , 4 , 2 , 4 , 3 , 4 }\n ;\n cfg -> ts_periodicity = 16 ;\n * flag_periodicity = 16 ;\n cfg -> ts_number_layers = 5 ;\n cfg -> ts_rate_decimator [ 0 ] = 16 ;\n cfg -> ts_rate_decimator [ 1 ] = 8 ;\n cfg -> ts_rate_decimator [ 2 ] = 4 ;\n cfg -> ts_rate_decimator [ 3 ] = 2 ;\n cfg -> ts_rate_decimator [ 4 ] = 1 ;\n memcpy ( cfg -> ts_layer_id , ids , sizeof ( ids ) ) ;\n layer_flags [ 0 ] = VPX_EFLAG_FORCE_KF ;\n layer_flags [ 1 ] = layer_flags [ 3 ] = layer_flags [ 5 ] = layer_flags [ 7 ] = layer_flags [ 9 ] = layer_flags [ 11 ] = layer_flags [ 13 ] = layer_flags [ 15 ] = VP8_EFLAG_NO_UPD_LAST | VP8_EFLAG_NO_UPD_GF | VP8_EFLAG_NO_UPD_ARF ;\n layer_flags [ 2 ] = layer_flags [ 6 ] = layer_flags [ 10 ] = layer_flags [ 14 ] = VP8_EFLAG_NO_UPD_ARF | VP8_EFLAG_NO_UPD_GF ;\n layer_flags [ 4 ] = layer_flags [ 12 ] = VP8_EFLAG_NO_REF_LAST | VP8_EFLAG_NO_UPD_ARF ;\n layer_flags [ 8 ] = VP8_EFLAG_NO_REF_LAST | VP8_EFLAG_NO_REF_GF ;\n break ;\n }\n case 8 : {\n int ids [ 2 ] = {\n 0 , 1 }\n ;\n cfg -> ts_periodicity = 2 ;\n * flag_periodicity = 8 ;\n cfg -> ts_number_layers = 2 ;\n cfg -> ts_rate_decimator [ 0 ] = 2 ;\n cfg -> ts_rate_decimator [ 1 ] = 1 ;\n memcpy ( cfg -> ts_layer_id , ids , sizeof ( ids ) ) ;\n layer_flags [ 0 ] = VPX_EFLAG_FORCE_KF | VP8_EFLAG_NO_REF_GF | VP8_EFLAG_NO_UPD_ARF ;\n layer_flags [ 1 ] = VP8_EFLAG_NO_REF_GF | VP8_EFLAG_NO_UPD_LAST | VP8_EFLAG_NO_UPD_ARF ;\n layer_flags [ 2 ] = VP8_EFLAG_NO_REF_GF | VP8_EFLAG_NO_UPD_GF | VP8_EFLAG_NO_UPD_ARF ;\n layer_flags [ 3 ] = VP8_EFLAG_NO_UPD_ARF | VP8_EFLAG_NO_UPD_LAST | VP8_EFLAG_NO_UPD_ENTROPY ;\n layer_flags [ 4 ] = layer_flags [ 2 ] ;\n layer_flags [ 5 ] = layer_flags [ 3 ] ;\n layer_flags [ 6 ] = layer_flags [ 4 ] ;\n layer_flags [ 7 ] = layer_flags [ 5 ] ;\n break ;\n }\n case 9 : {\n int ids [ 4 ] = {\n 0 , 2 , 1 , 2 }\n ;\n cfg -> ts_periodicity = 4 ;\n * flag_periodicity = 8 ;\n cfg -> ts_number_layers = 3 ;\n cfg -> ts_rate_decimator [ 0 ] = 4 ;\n cfg -> ts_rate_decimator [ 1 ] = 2 ;\n cfg -> ts_rate_decimator [ 2 ] = 1 ;\n memcpy ( cfg -> ts_layer_id , ids , sizeof ( ids ) ) ;\n layer_flags [ 0 ] = VPX_EFLAG_FORCE_KF | VP8_EFLAG_NO_REF_GF | VP8_EFLAG_NO_REF_ARF | VP8_EFLAG_NO_UPD_GF | VP8_EFLAG_NO_UPD_ARF ;\n layer_flags [ 1 ] = VP8_EFLAG_NO_REF_GF | VP8_EFLAG_NO_REF_ARF | VP8_EFLAG_NO_UPD_LAST | VP8_EFLAG_NO_UPD_GF ;\n layer_flags [ 2 ] = VP8_EFLAG_NO_REF_GF | VP8_EFLAG_NO_REF_ARF | VP8_EFLAG_NO_UPD_LAST | VP8_EFLAG_NO_UPD_ARF ;\n layer_flags [ 3 ] = layer_flags [ 5 ] = VP8_EFLAG_NO_UPD_LAST | VP8_EFLAG_NO_UPD_GF ;\n layer_flags [ 4 ] = VP8_EFLAG_NO_REF_GF | VP8_EFLAG_NO_REF_ARF | VP8_EFLAG_NO_UPD_GF | VP8_EFLAG_NO_UPD_ARF ;\n layer_flags [ 6 ] = VP8_EFLAG_NO_REF_ARF | VP8_EFLAG_NO_UPD_LAST | VP8_EFLAG_NO_UPD_ARF ;\n layer_flags [ 7 ] = VP8_EFLAG_NO_UPD_LAST | VP8_EFLAG_NO_UPD_GF | VP8_EFLAG_NO_UPD_ARF | VP8_EFLAG_NO_UPD_ENTROPY ;\n break ;\n }\n case 10 : {\n int ids [ 4 ] = {\n 0 , 2 , 1 , 2 }\n ;\n cfg -> ts_periodicity = 4 ;\n * flag_periodicity = 8 ;\n cfg -> ts_number_layers = 3 ;\n cfg -> ts_rate_decimator [ 0 ] = 4 ;\n cfg -> ts_rate_decimator [ 1 ] = 2 ;\n cfg -> ts_rate_decimator [ 2 ] = 1 ;\n memcpy ( cfg -> ts_layer_id , ids , sizeof ( ids ) ) ;\n layer_flags [ 0 ] = VPX_EFLAG_FORCE_KF | VP8_EFLAG_NO_UPD_ARF | VP8_EFLAG_NO_REF_GF ;\n layer_flags [ 1 ] = VP8_EFLAG_NO_REF_GF | VP8_EFLAG_NO_UPD_GF | VP8_EFLAG_NO_UPD_ARF | VP8_EFLAG_NO_UPD_LAST | VP8_EFLAG_NO_UPD_ENTROPY ;\n layer_flags [ 2 ] = VP8_EFLAG_NO_REF_GF | VP8_EFLAG_NO_UPD_ARF | VP8_EFLAG_NO_UPD_LAST ;\n layer_flags [ 3 ] = VP8_EFLAG_NO_UPD_GF | VP8_EFLAG_NO_UPD_ARF | VP8_EFLAG_NO_UPD_LAST | VP8_EFLAG_NO_UPD_ENTROPY ;\n layer_flags [ 4 ] = VP8_EFLAG_NO_UPD_GF | VP8_EFLAG_NO_UPD_ARF | VP8_EFLAG_NO_REF_GF ;\n layer_flags [ 5 ] = layer_flags [ 3 ] ;\n layer_flags [ 6 ] = VP8_EFLAG_NO_UPD_ARF | VP8_EFLAG_NO_UPD_LAST ;\n layer_flags [ 7 ] = layer_flags [ 3 ] ;\n break ;\n }\n case 11 : default : {\n int ids [ 4 ] = {\n 0 , 2 , 1 , 2 }\n ;\n cfg -> ts_periodicity = 4 ;\n * flag_periodicity = 8 ;\n cfg -> ts_number_layers = 3 ;\n cfg -> ts_rate_decimator [ 0 ] = 4 ;\n cfg -> ts_rate_decimator [ 1 ] = 2 ;\n cfg -> ts_rate_decimator [ 2 ] = 1 ;\n memcpy ( cfg -> ts_layer_id , ids , sizeof ( ids ) ) ;\n layer_flags [ 0 ] = VP8_EFLAG_NO_UPD_GF | VP8_EFLAG_NO_UPD_ARF | VP8_EFLAG_NO_REF_GF ;\n layer_flags [ 4 ] = layer_flags [ 0 ] ;\n layer_flags [ 2 ] = VP8_EFLAG_NO_UPD_ARF | VP8_EFLAG_NO_UPD_LAST ;\n layer_flags [ 6 ] = layer_flags [ 2 ] ;\n layer_flags [ 1 ] = VP8_EFLAG_NO_UPD_GF | VP8_EFLAG_NO_UPD_ARF | VP8_EFLAG_NO_UPD_LAST | VP8_EFLAG_NO_UPD_ENTROPY ;\n layer_flags [ 3 ] = layer_flags [ 1 ] ;\n layer_flags [ 5 ] = layer_flags [ 1 ] ;\n layer_flags [ 7 ] = layer_flags [ 1 ] ;\n break ;\n }\n }\n }"}
{"idx": 8499, "target": 0, "func": "static inline uint8_t cirrus_src ( CirrusVGAState * s , uint32_t srcaddr ) {\n if ( s -> cirrus_srccounter ) {\n return s -> cirrus_bltbuf [ srcaddr & ( CIRRUS_BLTBUFSIZE - 1 ) ] ;\n }\n else {\n return s -> vga . vram_ptr [ srcaddr & s -> cirrus_addr_mask ] ;\n }\n }"}
{"idx": 8500, "target": 0, "func": "static char * checkpe ( char * dst , uint32_t dsize , char * pehdr , uint32_t * valign , unsigned int * sectcnt ) {\n char * sections ;\n if ( ! CLI_ISCONTAINED ( dst , dsize , pehdr , 0xf8 ) ) return NULL ;\n if ( cli_readint32 ( pehdr ) != 0x4550 ) return NULL ;\n if ( ! ( * valign = cli_readint32 ( pehdr + 0x38 ) ) ) return NULL ;\n sections = pehdr + 0xf8 ;\n if ( ! ( * sectcnt = ( unsigned char ) pehdr [ 6 ] + ( unsigned char ) pehdr [ 7 ] * 256 ) ) return NULL ;\n if ( ! CLI_ISCONTAINED ( dst , dsize , sections , * sectcnt * 0x28 ) ) return NULL ;\n return sections ;\n }"}
{"idx": 8501, "target": 0, "func": "int evhttp_bind_socket ( struct evhttp * http , const char * address , u_short port ) {\n int fd ;\n int res ;\n if ( ( fd = bind_socket ( address , port , 1 ) ) == - 1 ) return ( - 1 ) ;\n if ( listen ( fd , 128 ) == - 1 ) {\n event_warn ( \"%s: listen\" , __func__ ) ;\n EVUTIL_CLOSESOCKET ( fd ) ;\n return ( - 1 ) ;\n }\n res = evhttp_accept_socket ( http , fd ) ;\n if ( res != - 1 ) event_debug ( ( \"Bound to port %d - Awaiting connections ... \" , port ) ) ;\n return ( res ) ;\n }"}
{"idx": 8502, "target": 0, "func": "int SRP_create_verifier_BN ( const char * user , const char * pass , BIGNUM * * salt , BIGNUM * * verifier , BIGNUM * N , BIGNUM * g ) {\n int result = 0 ;\n BIGNUM * x = NULL ;\n BN_CTX * bn_ctx = BN_CTX_new ( ) ;\n unsigned char tmp2 [ MAX_LEN ] ;\n BIGNUM * salttmp = NULL ;\n if ( ( user == NULL ) || ( pass == NULL ) || ( salt == NULL ) || ( verifier == NULL ) || ( N == NULL ) || ( g == NULL ) || ( bn_ctx == NULL ) ) goto err ;\n srp_bn_print ( N ) ;\n srp_bn_print ( g ) ;\n if ( * salt == NULL ) {\n if ( RAND_pseudo_bytes ( tmp2 , SRP_RANDOM_SALT_LEN ) < 0 ) goto err ;\n salttmp = BN_bin2bn ( tmp2 , SRP_RANDOM_SALT_LEN , NULL ) ;\n }\n else {\n salttmp = * salt ;\n }\n x = SRP_Calc_x ( salttmp , user , pass ) ;\n * verifier = BN_new ( ) ;\n if ( * verifier == NULL ) goto err ;\n if ( ! BN_mod_exp ( * verifier , g , x , N , bn_ctx ) ) {\n BN_clear_free ( * verifier ) ;\n goto err ;\n }\n srp_bn_print ( * verifier ) ;\n result = 1 ;\n * salt = salttmp ;\n err : if ( * salt != salttmp ) BN_clear_free ( salttmp ) ;\n BN_clear_free ( x ) ;\n BN_CTX_free ( bn_ctx ) ;\n return result ;\n }"}
{"idx": 8503, "target": 0, "func": "static void async_removepending ( struct async * as ) {\n struct usb_dev_state * ps = as -> ps ;\n unsigned long flags ;\n spin_lock_irqsave ( & ps -> lock , flags ) ;\n list_del_init ( & as -> asynclist ) ;\n spin_unlock_irqrestore ( & ps -> lock , flags ) ;\n }"}
{"idx": 8504, "target": 0, "func": "static inline void mv_pred_direct ( AVSContext * h , cavs_vector * pmv_fw , cavs_vector * col_mv ) {\n cavs_vector * pmv_bw = pmv_fw + MV_BWD_OFFS ;\n int den = h -> direct_den [ col_mv -> ref ] ;\n int m = col_mv -> x >> 31 ;\n pmv_fw -> dist = h -> dist [ 1 ] ;\n pmv_bw -> dist = h -> dist [ 0 ] ;\n pmv_fw -> ref = 1 ;\n pmv_bw -> ref = 0 ;\n pmv_fw -> x = ( ( ( den + ( den * col_mv -> x * pmv_fw -> dist ^ m ) - m - 1 ) >> 14 ) ^ m ) - m ;\n pmv_bw -> x = m - ( ( ( den + ( den * col_mv -> x * pmv_bw -> dist ^ m ) - m - 1 ) >> 14 ) ^ m ) ;\n m = col_mv -> y >> 31 ;\n pmv_fw -> y = ( ( ( den + ( den * col_mv -> y * pmv_fw -> dist ^ m ) - m - 1 ) >> 14 ) ^ m ) - m ;\n pmv_bw -> y = m - ( ( ( den + ( den * col_mv -> y * pmv_bw -> dist ^ m ) - m - 1 ) >> 14 ) ^ m ) ;\n }"}
{"idx": 8505, "target": 0, "func": "void srtp_add_address ( packet_info * pinfo , address * addr , int port , int other_port , const gchar * setup_method , guint32 setup_frame_number , gboolean is_video _U_ , rtp_dyn_payload_t * rtp_dyn_payload , struct srtp_info * srtp_info ) {\n address null_addr ;\n conversation_t * p_conv ;\n struct _rtp_conversation_info * p_conv_data = NULL ;\n if ( ( pinfo -> fd -> flags . visited ) || ( rtp_handle == NULL ) ) {\n return ;\n }\n DPRINT ( ( \"#%u: %srtp_add_address(%s, %u, %u, %s, %u)\" , pinfo -> fd -> num , ( srtp_info ) ? \"s\" : \"\" , ep_address_to_str ( addr ) , port , other_port , setup_method , setup_frame_number ) ) ;\n DINDENT ( ) ;\n SET_ADDRESS ( & null_addr , AT_NONE , 0 , NULL ) ;\n p_conv = find_conversation ( setup_frame_number , addr , & null_addr , PT_UDP , port , other_port , NO_ADDR_B | ( ! other_port ? NO_PORT_B : 0 ) ) ;\n DENDENT ( ) ;\n DPRINT ( ( \"did %sfind conversation\" , p_conv ? \"\" : \"NOT \" ) ) ;\n if ( ! p_conv || p_conv -> setup_frame != setup_frame_number ) {\n p_conv = conversation_new ( setup_frame_number , addr , & null_addr , PT_UDP , ( guint32 ) port , ( guint32 ) other_port , NO_ADDR2 | ( ! other_port ? NO_PORT2 : 0 ) ) ;\n }\n conversation_set_dissector ( p_conv , rtp_handle ) ;\n p_conv_data = ( struct _rtp_conversation_info * ) conversation_get_proto_data ( p_conv , proto_rtp ) ;\n if ( ! p_conv_data ) {\n DPRINT ( ( \"creating new conversation data\" ) ) ;\n p_conv_data = wmem_new ( wmem_file_scope ( ) , struct _rtp_conversation_info ) ;\n p_conv_data -> rtp_dyn_payload = NULL ;\n p_conv_data -> extended_seqno = 0x10000 ;\n p_conv_data -> rtp_conv_info = wmem_new ( wmem_file_scope ( ) , rtp_private_conv_info ) ;\n p_conv_data -> rtp_conv_info -> multisegment_pdus = wmem_tree_new ( wmem_file_scope ( ) ) ;\n DINDENT ( ) ;\n conversation_add_proto_data ( p_conv , proto_rtp , p_conv_data ) ;\n DENDENT ( ) ;\n }\n # ifdef DEBUG_CONVERSATION else {\n DPRINT ( ( \"conversation already exists\" ) ) ;\n }\n # endif if ( p_conv_data -> rtp_dyn_payload != rtp_dyn_payload ) {\n rtp_dyn_payload_free ( p_conv_data -> rtp_dyn_payload ) ;\n p_conv_data -> rtp_dyn_payload = rtp_dyn_payload_ref ( rtp_dyn_payload ) ;\n }\n else {\n DPRINT ( ( \"passed-in rtp_dyn_payload is the same as in the conversation\" ) ) ;\n }\n g_strlcpy ( p_conv_data -> method , setup_method , MAX_RTP_SETUP_METHOD_SIZE + 1 ) ;\n p_conv_data -> frame_number = setup_frame_number ;\n p_conv_data -> is_video = is_video ;\n p_conv_data -> srtp_info = srtp_info ;\n p_conv_data -> bta2dp_info = NULL ;\n p_conv_data -> btvdp_info = NULL ;\n }"}
{"idx": 8506, "target": 0, "func": "void vp9_entropy_mv_init ( ) {\n vp9_tokens_from_tree ( mv_joint_encodings , vp9_mv_joint_tree ) ;\n vp9_tokens_from_tree ( mv_class_encodings , vp9_mv_class_tree ) ;\n vp9_tokens_from_tree ( mv_class0_encodings , vp9_mv_class0_tree ) ;\n vp9_tokens_from_tree ( mv_fp_encodings , vp9_mv_fp_tree ) ;\n }"}
{"idx": 8507, "target": 0, "func": "PyObject * PyString_FromFormatV ( const char * format , va_list vargs ) {\n va_list count ;\n Py_ssize_t n = 0 ;\n const char * f ;\n char * s ;\n PyObject * string ;\n # ifdef VA_LIST_IS_ARRAY Py_MEMCPY ( count , vargs , sizeof ( va_list ) ) ;\n # else # ifdef __va_copy __va_copy ( count , vargs ) ;\n # else count = vargs ;\n # endif # endif for ( f = format ;\n * f ;\n f ++ ) {\n if ( * f == '%' ) {\n # ifdef HAVE_LONG_LONG int longlongflag = 0 ;\n # endif const char * p = f ;\n while ( * ++ f && * f != '%' && ! isalpha ( Py_CHARMASK ( * f ) ) ) ;\n if ( * f == 'l' ) {\n if ( f [ 1 ] == 'd' || f [ 1 ] == 'u' ) {\n ++ f ;\n }\n # ifdef HAVE_LONG_LONG else if ( f [ 1 ] == 'l' && ( f [ 2 ] == 'd' || f [ 2 ] == 'u' ) ) {\n longlongflag = 1 ;\n f += 2 ;\n }\n # endif }\n else if ( * f == 'z' && ( f [ 1 ] == 'd' || f [ 1 ] == 'u' ) ) {\n ++ f ;\n }\n switch ( * f ) {\n case 'c' : ( void ) va_arg ( count , int ) ;\n case '%' : n ++ ;\n break ;\n case 'd' : case 'u' : case 'i' : case 'x' : ( void ) va_arg ( count , int ) ;\n # ifdef HAVE_LONG_LONG if ( longlongflag ) n += 2 + ( SIZEOF_LONG_LONG * 53 - 1 ) / 22 ;\n else # endif n += 20 ;\n break ;\n case 's' : s = va_arg ( count , char * ) ;\n n += strlen ( s ) ;\n break ;\n case 'p' : ( void ) va_arg ( count , int ) ;\n n += 19 ;\n break ;\n default : n += strlen ( p ) ;\n goto expand ;\n }\n }\n else n ++ ;\n }\n expand : string = PyString_FromStringAndSize ( NULL , n ) ;\n if ( ! string ) return NULL ;\n s = PyString_AsString ( string ) ;\n for ( f = format ;\n * f ;\n f ++ ) {\n if ( * f == '%' ) {\n const char * p = f ++ ;\n Py_ssize_t i ;\n int longflag = 0 ;\n # ifdef HAVE_LONG_LONG int longlongflag = 0 ;\n # endif int size_tflag = 0 ;\n n = 0 ;\n while ( isdigit ( Py_CHARMASK ( * f ) ) ) n = ( n * 10 ) + * f ++ - '0' ;\n if ( * f == '.' ) {\n f ++ ;\n n = 0 ;\n while ( isdigit ( Py_CHARMASK ( * f ) ) ) n = ( n * 10 ) + * f ++ - '0' ;\n }\n while ( * f && * f != '%' && ! isalpha ( Py_CHARMASK ( * f ) ) ) f ++ ;\n if ( * f == 'l' ) {\n if ( f [ 1 ] == 'd' || f [ 1 ] == 'u' ) {\n longflag = 1 ;\n ++ f ;\n }\n # ifdef HAVE_LONG_LONG else if ( f [ 1 ] == 'l' && ( f [ 2 ] == 'd' || f [ 2 ] == 'u' ) ) {\n longlongflag = 1 ;\n f += 2 ;\n }\n # endif }\n else if ( * f == 'z' && ( f [ 1 ] == 'd' || f [ 1 ] == 'u' ) ) {\n size_tflag = 1 ;\n ++ f ;\n }\n switch ( * f ) {\n case 'c' : * s ++ = va_arg ( vargs , int ) ;\n break ;\n case 'd' : if ( longflag ) sprintf ( s , \"%ld\" , va_arg ( vargs , long ) ) ;\n # ifdef HAVE_LONG_LONG else if ( longlongflag ) sprintf ( s , \"%\" PY_FORMAT_LONG_LONG \"d\" , va_arg ( vargs , PY_LONG_LONG ) ) ;\n # endif else if ( size_tflag ) sprintf ( s , \"%\" PY_FORMAT_SIZE_T \"d\" , va_arg ( vargs , Py_ssize_t ) ) ;\n else sprintf ( s , \"%d\" , va_arg ( vargs , int ) ) ;\n s += strlen ( s ) ;\n break ;\n case 'u' : if ( longflag ) sprintf ( s , \"%lu\" , va_arg ( vargs , unsigned long ) ) ;\n # ifdef HAVE_LONG_LONG else if ( longlongflag ) sprintf ( s , \"%\" PY_FORMAT_LONG_LONG \"u\" , va_arg ( vargs , PY_LONG_LONG ) ) ;\n # endif else if ( size_tflag ) sprintf ( s , \"%\" PY_FORMAT_SIZE_T \"u\" , va_arg ( vargs , size_t ) ) ;\n else sprintf ( s , \"%u\" , va_arg ( vargs , unsigned int ) ) ;\n s += strlen ( s ) ;\n break ;\n case 'i' : sprintf ( s , \"%i\" , va_arg ( vargs , int ) ) ;\n s += strlen ( s ) ;\n break ;\n case 'x' : sprintf ( s , \"%x\" , va_arg ( vargs , int ) ) ;\n s += strlen ( s ) ;\n break ;\n case 's' : p = va_arg ( vargs , char * ) ;\n i = strlen ( p ) ;\n if ( n > 0 && i > n ) i = n ;\n Py_MEMCPY ( s , p , i ) ;\n s += i ;\n break ;\n case 'p' : sprintf ( s , \"%p\" , va_arg ( vargs , void * ) ) ;\n if ( s [ 1 ] == 'X' ) s [ 1 ] = 'x' ;\n else if ( s [ 1 ] != 'x' ) {\n memmove ( s + 2 , s , strlen ( s ) + 1 ) ;\n s [ 0 ] = '0' ;\n s [ 1 ] = 'x' ;\n }\n s += strlen ( s ) ;\n break ;\n case '%' : * s ++ = '%' ;\n break ;\n default : strcpy ( s , p ) ;\n s += strlen ( s ) ;\n goto end ;\n }\n }\n else * s ++ = * f ;\n }\n end : if ( _PyString_Resize ( & string , s - PyString_AS_STRING ( string ) ) ) return NULL ;\n return string ;\n }"}
{"idx": 8508, "target": 0, "func": "static int decode_slice ( struct AVCodecContext * avctx , void * arg ) {\n H264Context * h = * ( void * * ) arg ;\n int lf_x_start = h -> mb_x ;\n h -> mb_skip_run = - 1 ;\n av_assert0 ( h -> block_offset [ 15 ] == ( 4 * ( ( scan8 [ 15 ] - scan8 [ 0 ] ) & 7 ) << h -> pixel_shift ) + 4 * h -> linesize * ( ( scan8 [ 15 ] - scan8 [ 0 ] ) >> 3 ) ) ;\n h -> is_complex = FRAME_MBAFF ( h ) || h -> picture_structure != PICT_FRAME || avctx -> codec_id != AV_CODEC_ID_H264 || ( CONFIG_GRAY && ( h -> flags & CODEC_FLAG_GRAY ) ) ;\n if ( ! ( h -> avctx -> active_thread_type & FF_THREAD_SLICE ) && h -> picture_structure == PICT_FRAME && h -> er . error_status_table ) {\n const int start_i = av_clip ( h -> resync_mb_x + h -> resync_mb_y * h -> mb_width , 0 , h -> mb_num - 1 ) ;\n if ( start_i ) {\n int prev_status = h -> er . error_status_table [ h -> er . mb_index2xy [ start_i - 1 ] ] ;\n prev_status &= ~ VP_START ;\n if ( prev_status != ( ER_MV_END | ER_DC_END | ER_AC_END ) ) h -> er . error_occurred = 1 ;\n }\n }\n if ( h -> pps . cabac ) {\n align_get_bits ( & h -> gb ) ;\n ff_init_cabac_decoder ( & h -> cabac , h -> gb . buffer + get_bits_count ( & h -> gb ) / 8 , ( get_bits_left ( & h -> gb ) + 7 ) / 8 ) ;\n ff_h264_init_cabac_states ( h ) ;\n for ( ;\n ;\n ) {\n int ret = ff_h264_decode_mb_cabac ( h ) ;\n int eos ;\n if ( ret >= 0 ) ff_h264_hl_decode_mb ( h ) ;\n if ( ret >= 0 && FRAME_MBAFF ( h ) ) {\n h -> mb_y ++ ;\n ret = ff_h264_decode_mb_cabac ( h ) ;\n if ( ret >= 0 ) ff_h264_hl_decode_mb ( h ) ;\n h -> mb_y -- ;\n }\n eos = get_cabac_terminate ( & h -> cabac ) ;\n if ( ( h -> workaround_bugs & FF_BUG_TRUNCATED ) && h -> cabac . bytestream > h -> cabac . bytestream_end + 2 ) {\n er_add_slice ( h , h -> resync_mb_x , h -> resync_mb_y , h -> mb_x - 1 , h -> mb_y , ER_MB_END ) ;\n if ( h -> mb_x >= lf_x_start ) loop_filter ( h , lf_x_start , h -> mb_x + 1 ) ;\n return 0 ;\n }\n if ( h -> cabac . bytestream > h -> cabac . bytestream_end + 2 ) av_log ( h -> avctx , AV_LOG_DEBUG , \"bytestream overread %td\\n\" , h -> cabac . bytestream_end - h -> cabac . bytestream ) ;\n if ( ret < 0 || h -> cabac . bytestream > h -> cabac . bytestream_end + 4 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"error while decoding MB %d %d, bytestream (%td)\\n\" , h -> mb_x , h -> mb_y , h -> cabac . bytestream_end - h -> cabac . bytestream ) ;\n er_add_slice ( h , h -> resync_mb_x , h -> resync_mb_y , h -> mb_x , h -> mb_y , ER_MB_ERROR ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ++ h -> mb_x >= h -> mb_width ) {\n loop_filter ( h , lf_x_start , h -> mb_x ) ;\n h -> mb_x = lf_x_start = 0 ;\n decode_finish_row ( h ) ;\n ++ h -> mb_y ;\n if ( FIELD_OR_MBAFF_PICTURE ( h ) ) {\n ++ h -> mb_y ;\n if ( FRAME_MBAFF ( h ) && h -> mb_y < h -> mb_height ) predict_field_decoding_flag ( h ) ;\n }\n }\n if ( eos || h -> mb_y >= h -> mb_height ) {\n tprintf ( h -> avctx , \"slice end %d %d\\n\" , get_bits_count ( & h -> gb ) , h -> gb . size_in_bits ) ;\n er_add_slice ( h , h -> resync_mb_x , h -> resync_mb_y , h -> mb_x - 1 , h -> mb_y , ER_MB_END ) ;\n if ( h -> mb_x > lf_x_start ) loop_filter ( h , lf_x_start , h -> mb_x ) ;\n return 0 ;\n }\n }\n }\n else {\n for ( ;\n ;\n ) {\n int ret = ff_h264_decode_mb_cavlc ( h ) ;\n if ( ret >= 0 ) ff_h264_hl_decode_mb ( h ) ;\n if ( ret >= 0 && FRAME_MBAFF ( h ) ) {\n h -> mb_y ++ ;\n ret = ff_h264_decode_mb_cavlc ( h ) ;\n if ( ret >= 0 ) ff_h264_hl_decode_mb ( h ) ;\n h -> mb_y -- ;\n }\n if ( ret < 0 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"error while decoding MB %d %d\\n\" , h -> mb_x , h -> mb_y ) ;\n er_add_slice ( h , h -> resync_mb_x , h -> resync_mb_y , h -> mb_x , h -> mb_y , ER_MB_ERROR ) ;\n return ret ;\n }\n if ( ++ h -> mb_x >= h -> mb_width ) {\n loop_filter ( h , lf_x_start , h -> mb_x ) ;\n h -> mb_x = lf_x_start = 0 ;\n decode_finish_row ( h ) ;\n ++ h -> mb_y ;\n if ( FIELD_OR_MBAFF_PICTURE ( h ) ) {\n ++ h -> mb_y ;\n if ( FRAME_MBAFF ( h ) && h -> mb_y < h -> mb_height ) predict_field_decoding_flag ( h ) ;\n }\n if ( h -> mb_y >= h -> mb_height ) {\n tprintf ( h -> avctx , \"slice end %d %d\\n\" , get_bits_count ( & h -> gb ) , h -> gb . size_in_bits ) ;\n if ( get_bits_left ( & h -> gb ) == 0 || get_bits_left ( & h -> gb ) > 0 && ! ( h -> avctx -> err_recognition & AV_EF_AGGRESSIVE ) ) {\n er_add_slice ( h , h -> resync_mb_x , h -> resync_mb_y , h -> mb_x - 1 , h -> mb_y , ER_MB_END ) ;\n return 0 ;\n }\n else {\n er_add_slice ( h , h -> resync_mb_x , h -> resync_mb_y , h -> mb_x , h -> mb_y , ER_MB_END ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n }\n if ( get_bits_left ( & h -> gb ) <= 0 && h -> mb_skip_run <= 0 ) {\n tprintf ( h -> avctx , \"slice end %d %d\\n\" , get_bits_count ( & h -> gb ) , h -> gb . size_in_bits ) ;\n if ( get_bits_left ( & h -> gb ) == 0 ) {\n er_add_slice ( h , h -> resync_mb_x , h -> resync_mb_y , h -> mb_x - 1 , h -> mb_y , ER_MB_END ) ;\n if ( h -> mb_x > lf_x_start ) loop_filter ( h , lf_x_start , h -> mb_x ) ;\n return 0 ;\n }\n else {\n er_add_slice ( h , h -> resync_mb_x , h -> resync_mb_y , h -> mb_x , h -> mb_y , ER_MB_ERROR ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n }\n }\n }"}
{"idx": 8509, "target": 0, "func": "void * my_str_malloc_mysqld ( size_t size ) {\n return my_malloc ( size , MYF ( MY_FAE ) ) ;\n }"}
{"idx": 8510, "target": 0, "func": "int PEM_write_ ## name ( FILE * fp , type * x ) ;\n # define DECLARE_PEM_write_fp_const ( name , type ) int PEM_write_ ## name ( FILE * fp , const type * x ) ;\n # define DECLARE_PEM_write_cb_fp ( name , type ) int PEM_write_ ## name ( FILE * fp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # endif # define DECLARE_PEM_read_bio ( name , type ) type * PEM_read_bio_ ## name ( BIO * bp , type * * x , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 )"}
{"idx": 8511, "target": 0, "func": "void internal_clear_bit ( REP_SET * set , uint bit ) {\n set -> bits [ bit / WORD_BIT ] &= ~ ( 1 << ( bit % WORD_BIT ) ) ;\n return ;\n }"}
{"idx": 8512, "target": 1, "func": "int main ( int argc , char * argv [ ] ) {\n libettercap_init ( ) ;\n ef_globals_alloc ( ) ;\n select_text_interface ( ) ;\n libettercap_ui_init ( ) ;\n fprintf ( stdout , \"\\n\" EC_COLOR_BOLD \"%s %s\" EC_COLOR_END \" copyright %s %s\\n\\n\" , PROGRAM , EC_VERSION , EC_COPYRIGHT , EC_AUTHORS ) ;\n EF_GBL -> lineno = 1 ;\n parse_options ( argc , argv ) ;\n if ( EF_GBL_OPTIONS -> source_file ) {\n yyin = fopen ( EF_GBL_OPTIONS -> source_file , \"r\" ) ;\n if ( yyin == NULL ) FATAL_ERROR ( \"Input file not found !\" ) ;\n }\n else {\n FATAL_ERROR ( \"No source file.\" ) ;\n }\n setbuf ( yyin , NULL ) ;\n setbuf ( stdout , NULL ) ;\n setbuf ( stderr , NULL ) ;\n load_tables ( ) ;\n load_constants ( ) ;\n fprintf ( stdout , \"\\n Parsing source file \\'%s\\' \" , EF_GBL_OPTIONS -> source_file ) ;\n fflush ( stdout ) ;\n ef_debug ( 1 , \"\\n\" ) ;\n if ( yyparse ( ) == 0 ) fprintf ( stdout , \" done.\\n\\n\" ) ;\n else fprintf ( stdout , \"\\n\\nThe script contains errors...\\n\\n\" ) ;\n if ( write_output ( ) != E_SUCCESS ) FATAL_ERROR ( \"Cannot write output file (%s)\" , EF_GBL_OPTIONS -> output_file ) ;\n ef_globals_free ( ) ;\n return 0 ;\n }"}
{"idx": 8513, "target": 0, "func": "static const char * cmd_pcre_match_limit_recursion ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n long val ;\n if ( cmd -> server -> is_virtual ) {\n return \"ModSecurity: SecPcreMatchLimitRecursion not allowed in VirtualHost\" ;\n }\n val = atol ( p1 ) ;\n if ( val <= 0 ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid setting for \" \"SecPcreMatchLimitRecursion: %s\" , p1 ) ;\n }\n msc_pcre_match_limit_recursion = ( unsigned long int ) val ;\n return NULL ;\n }"}
{"idx": 8514, "target": 0, "func": "int CalculateCrc ( const unsigned char * buf , int size ) {\n CrcGenerateTable ( ) ;\n unsigned int crc = 0xffffffffL ;\n crc = ~ CrcCalc ( buf , size ) ;\n return crc ;\n }"}
{"idx": 8515, "target": 0, "func": "static int dissect_h245_T_entryDataType ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_entryDataType , T_entryDataType_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 8516, "target": 0, "func": "int fz_colorspace_is_device_gray ( fz_context * ctx , const fz_colorspace * cs ) {\n return fz_colorspace_is_device ( ctx , cs ) && fz_colorspace_is_gray ( ctx , cs ) ;\n }"}
{"idx": 8517, "target": 1, "func": "static int _ar_read_header ( struct archive_read * a , struct archive_entry * entry , struct ar * ar , const char * h , size_t * unconsumed ) {\n char filename [ AR_name_size + 1 ] ;\n uint64_t number ;\n size_t bsd_name_length , entry_size ;\n char * p , * st ;\n const void * b ;\n int r ;\n if ( strncmp ( h + AR_fmag_offset , \"`\\n\" , 2 ) != 0 ) {\n archive_set_error ( & a -> archive , EINVAL , \"Incorrect file header signature\" ) ;\n return ( ARCHIVE_WARN ) ;\n }\n strncpy ( filename , h + AR_name_offset , AR_name_size ) ;\n filename [ AR_name_size ] = '\\0' ;\n if ( a -> archive . archive_format == ARCHIVE_FORMAT_AR ) {\n if ( strncmp ( filename , \"#1/\" , 3 ) == 0 ) a -> archive . archive_format = ARCHIVE_FORMAT_AR_BSD ;\n else if ( strchr ( filename , '/' ) != NULL ) a -> archive . archive_format = ARCHIVE_FORMAT_AR_GNU ;\n else if ( strncmp ( filename , \"__.SYMDEF\" , 9 ) == 0 ) a -> archive . archive_format = ARCHIVE_FORMAT_AR_BSD ;\n }\n if ( a -> archive . archive_format == ARCHIVE_FORMAT_AR_GNU ) a -> archive . archive_format_name = \"ar (GNU/SVR4)\" ;\n else if ( a -> archive . archive_format == ARCHIVE_FORMAT_AR_BSD ) a -> archive . archive_format_name = \"ar (BSD)\" ;\n else a -> archive . archive_format_name = \"ar\" ;\n p = filename + AR_name_size - 1 ;\n while ( p >= filename && * p == ' ' ) {\n * p = '\\0' ;\n p -- ;\n }\n if ( filename [ 0 ] != '/' && * p == '/' ) * p = '\\0' ;\n if ( strcmp ( filename , \"//\" ) == 0 ) {\n ar_parse_common_header ( ar , entry , h ) ;\n archive_entry_copy_pathname ( entry , filename ) ;\n archive_entry_set_filetype ( entry , AE_IFREG ) ;\n number = ar_atol10 ( h + AR_size_offset , AR_size_size ) ;\n if ( number > SIZE_MAX ) {\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"Filename table too large\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n entry_size = ( size_t ) number ;\n if ( entry_size == 0 ) {\n archive_set_error ( & a -> archive , EINVAL , \"Invalid string table\" ) ;\n return ( ARCHIVE_WARN ) ;\n }\n if ( ar -> strtab != NULL ) {\n archive_set_error ( & a -> archive , EINVAL , \"More than one string tables exist\" ) ;\n return ( ARCHIVE_WARN ) ;\n }\n st = malloc ( entry_size ) ;\n if ( st == NULL ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate filename table buffer\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n ar -> strtab = st ;\n ar -> strtab_size = entry_size ;\n if ( * unconsumed ) {\n __archive_read_consume ( a , * unconsumed ) ;\n * unconsumed = 0 ;\n }\n if ( ( b = __archive_read_ahead ( a , entry_size , NULL ) ) == NULL ) return ( ARCHIVE_FATAL ) ;\n memcpy ( st , b , entry_size ) ;\n __archive_read_consume ( a , entry_size ) ;\n ar -> entry_bytes_remaining = 0 ;\n archive_entry_set_size ( entry , ar -> entry_bytes_remaining ) ;\n return ( ar_parse_gnu_filename_table ( a ) ) ;\n }\n if ( filename [ 0 ] == '/' && filename [ 1 ] >= '0' && filename [ 1 ] <= '9' ) {\n number = ar_atol10 ( h + AR_name_offset + 1 , AR_name_size - 1 ) ;\n if ( ar -> strtab == NULL || number > ar -> strtab_size ) {\n archive_set_error ( & a -> archive , EINVAL , \"Can't find long filename for entry\" ) ;\n archive_entry_copy_pathname ( entry , filename ) ;\n ar_parse_common_header ( ar , entry , h ) ;\n return ( ARCHIVE_WARN ) ;\n }\n archive_entry_copy_pathname ( entry , & ar -> strtab [ ( size_t ) number ] ) ;\n return ( ar_parse_common_header ( ar , entry , h ) ) ;\n }\n if ( strncmp ( filename , \"#1/\" , 3 ) == 0 ) {\n ar_parse_common_header ( ar , entry , h ) ;\n number = ar_atol10 ( h + AR_name_offset + 3 , AR_name_size - 3 ) ;\n bsd_name_length = ( size_t ) number ;\n if ( number > ( uint64_t ) ( bsd_name_length + 1 ) || ( int64_t ) bsd_name_length > ar -> entry_bytes_remaining ) {\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"Bad input file size\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n ar -> entry_bytes_remaining -= bsd_name_length ;\n archive_entry_set_size ( entry , ar -> entry_bytes_remaining ) ;\n if ( * unconsumed ) {\n __archive_read_consume ( a , * unconsumed ) ;\n * unconsumed = 0 ;\n }\n if ( ( b = __archive_read_ahead ( a , bsd_name_length , NULL ) ) == NULL ) {\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"Truncated input file\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n p = ( char * ) malloc ( bsd_name_length + 1 ) ;\n if ( p == NULL ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate fname buffer\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n strncpy ( p , b , bsd_name_length ) ;\n p [ bsd_name_length ] = '\\0' ;\n __archive_read_consume ( a , bsd_name_length ) ;\n archive_entry_copy_pathname ( entry , p ) ;\n free ( p ) ;\n return ( ARCHIVE_OK ) ;\n }\n if ( strcmp ( filename , \"/\" ) == 0 ) {\n archive_entry_copy_pathname ( entry , \"/\" ) ;\n r = ar_parse_common_header ( ar , entry , h ) ;\n archive_entry_set_filetype ( entry , AE_IFREG ) ;\n return ( r ) ;\n }\n if ( strcmp ( filename , \"__.SYMDEF\" ) == 0 ) {\n archive_entry_copy_pathname ( entry , filename ) ;\n return ( ar_parse_common_header ( ar , entry , h ) ) ;\n }\n archive_entry_copy_pathname ( entry , filename ) ;\n return ( ar_parse_common_header ( ar , entry , h ) ) ;\n }"}
{"idx": 8518, "target": 0, "func": "void TSFetchWriteData ( TSFetchSM fetch_sm , const void * data , size_t len ) {\n sdk_assert ( sdk_sanity_check_fetch_sm ( fetch_sm ) == TS_SUCCESS ) ;\n ( ( FetchSM * ) fetch_sm ) -> ext_write_data ( data , len ) ;\n }"}
{"idx": 8519, "target": 0, "func": "static int dissect_h245_MultiplePayloadStream ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MultiplePayloadStream , MultiplePayloadStream_sequence ) ;\n return offset ;\n }"}
{"idx": 8520, "target": 0, "func": "void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 )"}
{"idx": 8521, "target": 0, "func": "static inline void qemu_get_8s ( QEMUFile * f , uint8_t * pv ) {\n * pv = qemu_get_byte ( f ) ;\n }"}
{"idx": 8522, "target": 1, "func": "static int proc_connectinfo ( struct usb_dev_state * ps , void __user * arg ) {\n struct usbdevfs_connectinfo ci = {\n . devnum = ps -> dev -> devnum , . slow = ps -> dev -> speed == USB_SPEED_LOW }\n ;\n if ( copy_to_user ( arg , & ci , sizeof ( ci ) ) ) return - EFAULT ;\n return 0 ;\n }"}
{"idx": 8523, "target": 0, "func": "static void TestLenient8Iterator ( ) {\n static const UChar text [ ] = {\n 0x61 , 0x62 , 0x63 , 0xdffd , 0xd801 , 0xdffd , 0xd801 , 0xdffd , 0x78 , 0x79 , 0x7a , 0 }\n ;\n static const uint8_t bytes [ ] = {\n 0x61 , 0x62 , 0x63 , 0xed , 0xbf , 0xbd , 0xf0 , 0x90 , 0x9f , 0xbd , 0xed , 0xa0 , 0x81 , 0xed , 0xbf , 0xbd , 0x78 , 0x79 , 0x7a , 0 }\n ;\n UCharIterator iter1 , iter2 ;\n UChar32 c1 , c2 ;\n int32_t length ;\n puts ( \"test a UCharIterator for lenient 8-bit Unicode (accept single surrogates)\" ) ;\n uiter_setString ( & iter1 , text , - 1 ) ;\n uiter_setLenient8 ( & iter2 , ( const char * ) bytes , sizeof ( bytes ) - 1 ) ;\n compareIterators ( & iter1 , \"UTF16Iterator\" , & iter2 , \"Lenient8Iterator\" ) ;\n uiter_setLenient8 ( & iter2 , ( const char * ) bytes , - 1 ) ;\n compareIterators ( & iter1 , \"UTF16Iterator\" , & iter2 , \"Lenient8Iterator_1\" ) ;\n length = UPRV_LENGTHOF ( text ) - 1 ;\n uiter_setLenient8 ( & iter1 , ( const char * ) bytes , - 1 ) ;\n testIteratorState ( & iter1 , & iter2 , \"Lenient8IteratorState\" , length / 2 ) ;\n testIteratorState ( & iter1 , & iter2 , \"Lenient8IteratorStatePlus1\" , length / 2 + 1 ) ;\n puts ( \"no output so far means that the lenient-8 iterator works fine\" ) ;\n puts ( \"iterate forward:\\nUTF-16\\tlenient-8\" ) ;\n uiter_setString ( & iter1 , text , - 1 ) ;\n iter1 . move ( & iter1 , 0 , UITER_START ) ;\n iter2 . move ( & iter2 , 0 , UITER_START ) ;\n for ( ;\n ;\n ) {\n c1 = iter1 . next ( & iter1 ) ;\n c2 = iter2 . next ( & iter2 ) ;\n if ( c1 < 0 && c2 < 0 ) {\n break ;\n }\n if ( c1 < 0 ) {\n printf ( \"\\t%04x\\n\" , c2 ) ;\n }\n else if ( c2 < 0 ) {\n printf ( \"%04x\\n\" , c1 ) ;\n }\n else {\n printf ( \"%04x\\t%04x\\n\" , c1 , c2 ) ;\n }\n }\n }"}
{"idx": 8524, "target": 0, "func": "static int checkHttpTxnIncomingAddrGet ( SocketTest * test , void * data ) {\n uint16_t port ;\n HttpProxyPort * proxy_port = HttpProxyPort : : findHttp ( AF_INET ) ;\n TSHttpTxn txnp = ( TSHttpTxn ) data ;\n sockaddr const * ptr = TSHttpTxnIncomingAddrGet ( txnp ) ;\n if ( nullptr == proxy_port ) {\n SDK_RPRINT ( test -> regtest , \"TSHttpTxnIncomingPortGet\" , \"TestCase1\" , TC_FAIL , \"TSHttpTxnIncomingAddrGet failed to find configured HTTP port.\" ) ;\n test -> test_client_incoming_port_get = false ;\n return TS_EVENT_CONTINUE ;\n }\n if ( nullptr == ptr ) {\n SDK_RPRINT ( test -> regtest , \"TSHttpTxnIncomingPortGet\" , \"TestCase1\" , TC_FAIL , \"TSHttpTxnIncomingAddrGet returns 0 pointer\" ) ;\n test -> test_client_incoming_port_get = false ;\n return TS_EVENT_CONTINUE ;\n }\n port = ats_ip_port_host_order ( ptr ) ;\n TSDebug ( UTDBG_TAG , \"TS HTTP port = %x, Txn incoming client port %x\" , proxy_port -> m_port , port ) ;\n if ( port == proxy_port -> m_port ) {\n SDK_RPRINT ( test -> regtest , \"TSHttpTxnIncomingAddrGet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test -> test_client_incoming_port_get = true ;\n }\n else {\n SDK_RPRINT ( test -> regtest , \"TSHttpTxnIncomingAddrGet\" , \"TestCase1\" , TC_FAIL , \"Value's Mismatch. From Function: %d Expected value: %d\" , port , proxy_port -> m_port ) ;\n test -> test_client_incoming_port_get = false ;\n }\n return TS_EVENT_CONTINUE ;\n }"}
{"idx": 8525, "target": 0, "func": "static void DebugRepaint ( ttfFont * ttf ) {\n }"}
{"idx": 8526, "target": 0, "func": "static int vvalue_tvb_vector_internal ( tvbuff_t * tvb , int offset , struct vt_vector * val , struct vtype_data * type , guint num ) {\n const int offset_in = offset ;\n const gboolean varsize = ( type -> size == - 1 ) ;\n const guint elsize = varsize ? ( guint ) sizeof ( struct data_blob ) : ( guint ) type -> size ;\n guint8 * data ;\n int len ;\n guint i ;\n if ( ( guint64 ) elsize * ( guint64 ) num > G_MAXUINT ) {\n THROW ( ReportedBoundsError ) ;\n }\n tvb_ensure_bytes_exist ( tvb , offset , elsize * num ) ;\n data = ( guint8 * ) wmem_alloc ( wmem_packet_scope ( ) , elsize * num ) ;\n val -> len = num ;\n val -> u . vt_ui1 = data ;\n DISSECTOR_ASSERT ( ( void * ) & val -> u == ( ( void * ) & val -> u . vt_ui1 ) ) ;\n for ( i = 0 ;\n i < num ;\n i ++ ) {\n DISSECTOR_ASSERT_HINT ( type -> tvb_get != 0 , \"type that we don't know yet how to handle, please submit a bug with trace\" ) ;\n len = type -> tvb_get ( tvb , offset , data ) ;\n data += elsize ;\n offset += len ;\n if ( varsize && ( offset % 4 ) ) {\n int padding = 4 - ( offset % 4 ) ;\n offset += padding ;\n }\n }\n return offset - offset_in ;\n }"}
{"idx": 8527, "target": 0, "func": "static int selinux_shm_shmctl ( struct shmid_kernel * shp , int cmd ) {\n int perms ;\n int err ;\n switch ( cmd ) {\n case IPC_INFO : case SHM_INFO : return task_has_system ( current , SYSTEM__IPC_INFO ) ;\n case IPC_STAT : case SHM_STAT : perms = SHM__GETATTR | SHM__ASSOCIATE ;\n break ;\n case IPC_SET : perms = SHM__SETATTR ;\n break ;\n case SHM_LOCK : case SHM_UNLOCK : perms = SHM__LOCK ;\n break ;\n case IPC_RMID : perms = SHM__DESTROY ;\n break ;\n default : return 0 ;\n }\n err = ipc_has_perm ( & shp -> shm_perm , perms ) ;\n return err ;\n }"}
{"idx": 8528, "target": 0, "func": "enum nss_status _nss_dns_gethostbyname_r ( const char * name , struct hostent * result , char * buffer , size_t buflen , int * errnop , int * h_errnop ) {\n enum nss_status status = NSS_STATUS_NOTFOUND ;\n if ( _res . options & RES_USE_INET6 ) status = _nss_dns_gethostbyname3_r ( name , AF_INET6 , result , buffer , buflen , errnop , h_errnop , NULL , NULL ) ;\n if ( status == NSS_STATUS_NOTFOUND ) status = _nss_dns_gethostbyname3_r ( name , AF_INET , result , buffer , buflen , errnop , h_errnop , NULL , NULL ) ;\n return status ;\n }"}
{"idx": 8529, "target": 0, "func": "static void mpc8544_guts_register_types ( void ) {\n type_register_static ( & mpc8544_guts_info ) ;\n }"}
{"idx": 8530, "target": 0, "func": "static void write_guest_rom_state ( VAPICROMState * s ) {\n cpu_physical_memory_rw ( s -> rom_state_paddr , ( void * ) & s -> rom_state , sizeof ( GuestROMState ) , 1 ) ;\n }"}
{"idx": 8531, "target": 0, "func": "static void setup_frame_size ( VP9_COMMON * cm , struct vp9_read_bit_buffer * rb ) {\n int width , height ;\n vp9_read_frame_size ( rb , & width , & height ) ;\n resize_context_buffers ( cm , width , height ) ;\n setup_display_size ( cm , rb ) ;\n if ( vp9_realloc_frame_buffer ( get_frame_new_buffer ( cm ) , cm -> width , cm -> height , cm -> subsampling_x , cm -> subsampling_y , # if CONFIG_VP9_HIGHBITDEPTH cm -> use_highbitdepth , # endif VP9_DEC_BORDER_IN_PIXELS , & cm -> frame_bufs [ cm -> new_fb_idx ] . raw_frame_buffer , cm -> get_fb_cb , cm -> cb_priv ) ) {\n vpx_internal_error ( & cm -> error , VPX_CODEC_MEM_ERROR , \"Failed to allocate frame buffer\" ) ;\n }\n cm -> frame_bufs [ cm -> new_fb_idx ] . buf . bit_depth = ( unsigned int ) cm -> bit_depth ;\n }"}
{"idx": 8532, "target": 0, "func": "static void CloseDecoder ( vlc_object_t * p_this ) {\n decoder_t * p_dec = ( decoder_t * ) p_this ;\n decoder_sys_t * p_sys = p_dec -> p_sys ;\n if ( p_sys -> iconv_handle != ( vlc_iconv_t ) - 1 ) vlc_iconv_close ( p_sys -> iconv_handle ) ;\n free ( p_sys ) ;\n }"}
{"idx": 8533, "target": 1, "func": "int evbuffer_add_vprintf ( struct evbuffer * buf , const char * fmt , va_list ap ) {\n char * buffer ;\n size_t space ;\n size_t oldoff = buf -> off ;\n int sz ;\n va_list aq ;\n evbuffer_expand ( buf , 64 ) ;\n for ( ;\n ;\n ) {\n size_t used = buf -> misalign + buf -> off ;\n buffer = ( char * ) buf -> buffer + buf -> off ;\n assert ( buf -> totallen >= used ) ;\n space = buf -> totallen - used ;\n # ifndef va_copy # define va_copy ( dst , src ) memcpy ( & ( dst ) , & ( src ) , sizeof ( va_list ) ) # endif va_copy ( aq , ap ) ;\n sz = evutil_vsnprintf ( buffer , space , fmt , aq ) ;\n va_end ( aq ) ;\n if ( sz < 0 ) return ( - 1 ) ;\n if ( ( size_t ) sz < space ) {\n buf -> off += sz ;\n if ( buf -> cb != NULL ) ( * buf -> cb ) ( buf , oldoff , buf -> off , buf -> cbarg ) ;\n return ( sz ) ;\n }\n if ( evbuffer_expand ( buf , sz + 1 ) == - 1 ) return ( - 1 ) ;\n }\n }"}
{"idx": 8534, "target": 0, "func": "static void delete_pid_file ( myf flags ) {\n # ifndef EMBEDDED_LIBRARY if ( pid_file_created ) {\n mysql_file_delete ( key_file_pid , pidfile_name , flags ) ;\n pid_file_created = false ;\n }\n # endif return ;\n }"}
{"idx": 8535, "target": 0, "func": "int dissect_h245_MulticastAddress ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_MulticastAddress , MulticastAddress_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 8536, "target": 0, "func": "static void append_transform ( struct qcms_modular_transform * transform , struct qcms_modular_transform * * * next_transform ) {\n * * next_transform = transform ;\n while ( transform ) {\n * next_transform = & ( transform -> next_transform ) ;\n transform = transform -> next_transform ;\n }\n }"}
{"idx": 8537, "target": 0, "func": "static my_bool query_int_variable ( MYSQL * con , const char * var_name , int * var_value ) {\n char str [ 32 ] ;\n my_bool is_null = query_str_variable ( con , var_name , str , sizeof ( str ) ) ;\n if ( ! is_null ) * var_value = atoi ( str ) ;\n return is_null ;\n }"}
{"idx": 8538, "target": 0, "func": "static int dissect_h245_SEQUENCE_OF_GenericParameter ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h245_SEQUENCE_OF_GenericParameter , SEQUENCE_OF_GenericParameter_sequence_of ) ;\n return offset ;\n }"}
{"idx": 8539, "target": 0, "func": "void cpu_enable_ticks ( void ) {\n if ( ! timers_state . cpu_ticks_enabled ) {\n timers_state . cpu_ticks_offset -= cpu_get_real_ticks ( ) ;\n timers_state . cpu_clock_offset -= get_clock ( ) ;\n timers_state . cpu_ticks_enabled = 1 ;\n }\n }"}
{"idx": 8540, "target": 0, "func": "static void pdf_run_Ts ( fz_context * ctx , pdf_processor * proc , float rise ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_gstate * gstate = pr -> gstate + pr -> gtop ;\n gstate -> text . rise = rise ;\n }"}
{"idx": 8541, "target": 0, "func": "int main ( int argc , char * argv [ ] ) {\n static char buffer [ BUFFER_SIZE ] ;\n int32_t arg ;\n if ( argc <= 1 ) {\n printf ( \"Usage: %s [filename]...\\n\" , argv [ 0 ] ) ;\n return - 1 ;\n }\n for ( arg = 1 ;\n arg < argc ;\n arg += 1 ) {\n FILE * file ;\n char * filename = argv [ arg ] ;\n int32_t inputLength , match , matchCount = 0 ;\n UCharsetDetector * csd ;\n const UCharsetMatch * * csm ;\n UErrorCode status = U_ZERO_ERROR ;\n if ( arg > 1 ) {\n printf ( \"\\n\" ) ;\n }\n file = fopen ( filename , \"rb\" ) ;\n if ( file == NULL ) {\n printf ( \"Cannot open file \\\"%s\\\"\\n\\n\" , filename ) ;\n continue ;\n }\n printf ( \"%s:\\n\" , filename ) ;\n inputLength = ( int32_t ) fread ( buffer , 1 , BUFFER_SIZE , file ) ;\n fclose ( file ) ;\n csd = ucsdet_open ( & status ) ;\n ucsdet_setText ( csd , buffer , inputLength , & status ) ;\n csm = ucsdet_detectAll ( csd , & matchCount , & status ) ;\n for ( match = 0 ;\n match < matchCount ;\n match += 1 ) {\n const char * name = ucsdet_getName ( csm [ match ] , & status ) ;\n const char * lang = ucsdet_getLanguage ( csm [ match ] , & status ) ;\n int32_t confidence = ucsdet_getConfidence ( csm [ match ] , & status ) ;\n if ( lang == NULL || strlen ( lang ) == 0 ) {\n lang = \"**\" ;\n }\n printf ( \"%s (%s) %d\\n\" , name , lang , confidence ) ;\n }\n ucsdet_close ( csd ) ;\n }\n return 0 ;\n }"}
{"idx": 8542, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( SupervisedUserNavigationThrottleTest , NoNavigationObserverBlock ) {\n Profile * profile = browser ( ) -> profile ( ) ;\n SupervisedUserSettingsService * supervised_user_settings_service = SupervisedUserSettingsServiceFactory : : GetForProfile ( profile ) ;\n supervised_user_settings_service -> SetLocalSetting ( supervised_users : : kContentPackDefaultFilteringBehavior , std : : unique_ptr < base : : Value > ( new base : : Value ( SupervisedUserURLFilter : : BLOCK ) ) ) ;\n std : : unique_ptr < WebContents > web_contents ( WebContents : : Create ( WebContents : : CreateParams ( profile ) ) ) ;\n NavigationController & controller = web_contents -> GetController ( ) ;\n content : : TestNavigationObserver observer ( web_contents . get ( ) ) ;\n controller . LoadURL ( GURL ( \"http://www.example.com\" ) , content : : Referrer ( ) , ui : : PAGE_TRANSITION_TYPED , std : : string ( ) ) ;\n observer . Wait ( ) ;\n content : : NavigationEntry * entry = controller . GetActiveEntry ( ) ;\n ASSERT_TRUE ( entry ) ;\n EXPECT_EQ ( content : : PAGE_TYPE_NORMAL , entry -> GetPageType ( ) ) ;\n EXPECT_FALSE ( observer . last_navigation_succeeded ( ) ) ;\n }"}
{"idx": 8543, "target": 0, "func": "static int pubkey_get_nenc ( int algorithm ) {\n gcry_module_t pubkey ;\n int nenc = 0 ;\n REGISTER_DEFAULT_PUBKEYS ;\n ath_mutex_lock ( & pubkeys_registered_lock ) ;\n pubkey = _gcry_module_lookup_id ( pubkeys_registered , algorithm ) ;\n if ( pubkey ) {\n nenc = strlen ( ( ( gcry_pk_spec_t * ) pubkey -> spec ) -> elements_enc ) ;\n _gcry_module_release ( pubkey ) ;\n }\n ath_mutex_unlock ( & pubkeys_registered_lock ) ;\n return nenc ;\n }"}
{"idx": 8544, "target": 0, "func": "static void fill_picture_parameters ( struct dxva_context * ctx , const H264Context * h , DXVA_PicParams_H264 * pp ) {\n const Picture * current_picture = h -> cur_pic_ptr ;\n int i , j ;\n memset ( pp , 0 , sizeof ( * pp ) ) ;\n fill_picture_entry ( & pp -> CurrPic , ff_dxva2_get_surface_index ( ctx , current_picture ) , h -> picture_structure == PICT_BOTTOM_FIELD ) ;\n pp -> UsedForReferenceFlags = 0 ;\n pp -> NonExistingFrameFlags = 0 ;\n for ( i = 0 , j = 0 ;\n i < FF_ARRAY_ELEMS ( pp -> RefFrameList ) ;\n i ++ ) {\n const Picture * r ;\n if ( j < h -> short_ref_count ) {\n r = h -> short_ref [ j ++ ] ;\n }\n else {\n r = NULL ;\n while ( ! r && j < h -> short_ref_count + 16 ) r = h -> long_ref [ j ++ - h -> short_ref_count ] ;\n }\n if ( r ) {\n fill_picture_entry ( & pp -> RefFrameList [ i ] , ff_dxva2_get_surface_index ( ctx , r ) , r -> long_ref != 0 ) ;\n if ( ( r -> reference & PICT_TOP_FIELD ) && r -> field_poc [ 0 ] != INT_MAX ) pp -> FieldOrderCntList [ i ] [ 0 ] = r -> field_poc [ 0 ] ;\n if ( ( r -> reference & PICT_BOTTOM_FIELD ) && r -> field_poc [ 1 ] != INT_MAX ) pp -> FieldOrderCntList [ i ] [ 1 ] = r -> field_poc [ 1 ] ;\n pp -> FrameNumList [ i ] = r -> long_ref ? r -> pic_id : r -> frame_num ;\n if ( r -> reference & PICT_TOP_FIELD ) pp -> UsedForReferenceFlags |= 1 << ( 2 * i + 0 ) ;\n if ( r -> reference & PICT_BOTTOM_FIELD ) pp -> UsedForReferenceFlags |= 1 << ( 2 * i + 1 ) ;\n }\n else {\n pp -> RefFrameList [ i ] . bPicEntry = 0xff ;\n pp -> FieldOrderCntList [ i ] [ 0 ] = 0 ;\n pp -> FieldOrderCntList [ i ] [ 1 ] = 0 ;\n pp -> FrameNumList [ i ] = 0 ;\n }\n }\n pp -> wFrameWidthInMbsMinus1 = h -> mb_width - 1 ;\n pp -> wFrameHeightInMbsMinus1 = h -> mb_height - 1 ;\n pp -> num_ref_frames = h -> sps . ref_frame_count ;\n pp -> wBitFields = ( ( h -> picture_structure != PICT_FRAME ) << 0 ) | ( ( h -> sps . mb_aff && ( h -> picture_structure == PICT_FRAME ) ) << 1 ) | ( h -> sps . residual_color_transform_flag << 2 ) | ( 0 << 3 ) | ( h -> sps . chroma_format_idc << 4 ) | ( ( h -> nal_ref_idc != 0 ) << 6 ) | ( h -> pps . constrained_intra_pred << 7 ) | ( h -> pps . weighted_pred << 8 ) | ( h -> pps . weighted_bipred_idc << 9 ) | ( 1 << 11 ) | ( h -> sps . frame_mbs_only_flag << 12 ) | ( h -> pps . transform_8x8_mode << 13 ) | ( ( h -> sps . level_idc >= 31 ) << 14 ) | ( 1 << 15 ) ;\n pp -> bit_depth_luma_minus8 = h -> sps . bit_depth_luma - 8 ;\n pp -> bit_depth_chroma_minus8 = h -> sps . bit_depth_chroma - 8 ;\n if ( ctx -> workaround & FF_DXVA2_WORKAROUND_SCALING_LIST_ZIGZAG ) pp -> Reserved16Bits = 0 ;\n else pp -> Reserved16Bits = 3 ;\n pp -> StatusReportFeedbackNumber = 1 + ctx -> report_id ++ ;\n pp -> CurrFieldOrderCnt [ 0 ] = 0 ;\n if ( ( h -> picture_structure & PICT_TOP_FIELD ) && current_picture -> field_poc [ 0 ] != INT_MAX ) pp -> CurrFieldOrderCnt [ 0 ] = current_picture -> field_poc [ 0 ] ;\n pp -> CurrFieldOrderCnt [ 1 ] = 0 ;\n if ( ( h -> picture_structure & PICT_BOTTOM_FIELD ) && current_picture -> field_poc [ 1 ] != INT_MAX ) pp -> CurrFieldOrderCnt [ 1 ] = current_picture -> field_poc [ 1 ] ;\n pp -> pic_init_qs_minus26 = h -> pps . init_qs - 26 ;\n pp -> chroma_qp_index_offset = h -> pps . chroma_qp_index_offset [ 0 ] ;\n pp -> second_chroma_qp_index_offset = h -> pps . chroma_qp_index_offset [ 1 ] ;\n pp -> ContinuationFlag = 1 ;\n pp -> pic_init_qp_minus26 = h -> pps . init_qp - 26 ;\n pp -> num_ref_idx_l0_active_minus1 = h -> pps . ref_count [ 0 ] - 1 ;\n pp -> num_ref_idx_l1_active_minus1 = h -> pps . ref_count [ 1 ] - 1 ;\n pp -> Reserved8BitsA = 0 ;\n pp -> frame_num = h -> frame_num ;\n pp -> log2_max_frame_num_minus4 = h -> sps . log2_max_frame_num - 4 ;\n pp -> pic_order_cnt_type = h -> sps . poc_type ;\n if ( h -> sps . poc_type == 0 ) pp -> log2_max_pic_order_cnt_lsb_minus4 = h -> sps . log2_max_poc_lsb - 4 ;\n else if ( h -> sps . poc_type == 1 ) pp -> delta_pic_order_always_zero_flag = h -> sps . delta_pic_order_always_zero_flag ;\n pp -> direct_8x8_inference_flag = h -> sps . direct_8x8_inference_flag ;\n pp -> entropy_coding_mode_flag = h -> pps . cabac ;\n pp -> pic_order_present_flag = h -> pps . pic_order_present ;\n pp -> num_slice_groups_minus1 = h -> pps . slice_group_count - 1 ;\n pp -> slice_group_map_type = h -> pps . mb_slice_group_map_type ;\n pp -> deblocking_filter_control_present_flag = h -> pps . deblocking_filter_parameters_present ;\n pp -> redundant_pic_cnt_present_flag = h -> pps . redundant_pic_cnt_present ;\n pp -> Reserved8BitsB = 0 ;\n pp -> slice_group_change_rate_minus1 = 0 ;\n }"}
{"idx": 8545, "target": 0, "func": "void RecordsConfigIterate ( RecordElementCallback callback , void * data ) {\n for ( unsigned i = 0 ;\n i < countof ( RecordsConfig ) ;\n ++ i ) {\n callback ( & RecordsConfig [ i ] , data ) ;\n }\n }"}
{"idx": 8546, "target": 0, "func": "static Datum ExecEvalCase ( CaseExprState * caseExpr , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n List * clauses = caseExpr -> args ;\n ListCell * clause ;\n Datum save_datum ;\n bool save_isNull ;\n if ( isDone ) * isDone = ExprSingleResult ;\n save_datum = econtext -> caseValue_datum ;\n save_isNull = econtext -> caseValue_isNull ;\n if ( caseExpr -> arg ) {\n bool arg_isNull ;\n econtext -> caseValue_datum = ExecEvalExpr ( caseExpr -> arg , econtext , & arg_isNull , NULL ) ;\n econtext -> caseValue_isNull = arg_isNull ;\n }\n foreach ( clause , clauses ) {\n CaseWhenState * wclause = lfirst ( clause ) ;\n Datum clause_value ;\n bool clause_isNull ;\n clause_value = ExecEvalExpr ( wclause -> expr , econtext , & clause_isNull , NULL ) ;\n if ( DatumGetBool ( clause_value ) && ! clause_isNull ) {\n econtext -> caseValue_datum = save_datum ;\n econtext -> caseValue_isNull = save_isNull ;\n return ExecEvalExpr ( wclause -> result , econtext , isNull , isDone ) ;\n }\n }\n econtext -> caseValue_datum = save_datum ;\n econtext -> caseValue_isNull = save_isNull ;\n if ( caseExpr -> defresult ) {\n return ExecEvalExpr ( caseExpr -> defresult , econtext , isNull , isDone ) ;\n }\n * isNull = true ;\n return ( Datum ) 0 ;\n }"}
{"idx": 8547, "target": 0, "func": "guint16 de_cld_party_bcd_num ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len , gchar * add_string , int string_len ) {\n const gchar * extr_addr ;\n de_bcd_num ( tvb , tree , pinfo , offset , len , hf_gsm_a_dtap_cld_party_bcd_num , & extr_addr ) ;\n if ( extr_addr ) {\n if ( sccp_assoc && ! sccp_assoc -> called_party ) {\n sccp_assoc -> called_party = wmem_strdup ( wmem_file_scope ( ) , extr_addr ) ;\n }\n if ( add_string ) g_snprintf ( add_string , string_len , \" - (%s)\" , extr_addr ) ;\n }\n return ( len ) ;\n }"}
{"idx": 8548, "target": 0, "func": "static int dissect_h225_OCTET_STRING_SIZE_1_256 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 1 , 256 , FALSE , NULL ) ;\n return offset ;\n }"}
{"idx": 8549, "target": 0, "func": "unsigned int vp9_variance ## W ## x ## H ## _c ( const uint8_t * a , int a_stride , const uint8_t * b , int b_stride , unsigned int * sse ) {\n int sum ;\n variance ( a , a_stride , b , b_stride , W , H , sse , & sum ) ;\n return * sse - ( ( ( int64_t ) sum * sum ) / ( W * H ) ) ;\n \\ }\n # define SUBPIX_VAR ( W , H ) unsigned int vp9_sub_pixel_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp2 , W , dst , dst_stride , sse ) ;\n \\ }\n # define SUBPIX_AVG_VAR ( W , H ) unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 ) VAR ( 8 , 4 ) SUBPIX_VAR ( 8 , 4 ) SUBPIX_AVG_VAR ( 8 , 4 ) VAR ( 8 , 8 ) SUBPIX_VAR ( 8 , 8 ) SUBPIX_AVG_VAR ( 8 , 8 ) VAR ( 8 , 16 ) SUBPIX_VAR ( 8 , 16 ) SUBPIX_AVG_VAR ( 8 , 16 ) VAR ( 16 , 8 ) SUBPIX_VAR ( 16 , 8 ) SUBPIX_AVG_VAR ( 16 , 8 ) VAR ( 16 , 16 ) SUBPIX_VAR ( 16 , 16 ) SUBPIX_AVG_VAR ( 16 , 16 ) VAR ( 16 , 32 ) SUBPIX_VAR ( 16 , 32 ) SUBPIX_AVG_VAR ( 16 , 32 ) VAR ( 32 , 16 ) SUBPIX_VAR ( 32 , 16 ) SUBPIX_AVG_VAR ( 32 , 16 ) VAR ( 32 , 32 )"}
{"idx": 8550, "target": 0, "func": "static char * _get_user_from_associd ( mysql_conn_t * mysql_conn , char * cluster , uint32_t associd ) {\n char * user = NULL ;\n char * query = NULL ;\n MYSQL_RES * result = NULL ;\n MYSQL_ROW row ;\n query = xstrdup_printf ( \"select user from \\\"%s_%s\\\" where id_assoc=%u\" , cluster , assoc_table , associd ) ;\n debug4 ( \"%d(%s:%d) query\\n%s\" , mysql_conn -> conn , THIS_FILE , __LINE__ , query ) ;\n if ( ! ( result = mysql_db_query_ret ( mysql_conn , query , 0 ) ) ) {\n xfree ( query ) ;\n return NULL ;\n }\n xfree ( query ) ;\n if ( ( row = mysql_fetch_row ( result ) ) && row [ 0 ] [ 0 ] ) user = xstrdup ( row [ 0 ] ) ;\n mysql_free_result ( result ) ;\n return user ;\n }"}
{"idx": 8551, "target": 0, "func": "static int check_mailbox ( struct Context * ctx ) {\n struct NntpData * nntp_data = ctx -> data ;\n struct NntpServer * nserv = nntp_data -> nserv ;\n time_t now = time ( NULL ) ;\n int rc , ret = 0 ;\n void * hc = NULL ;\n if ( nserv -> check_time + NntpPoll > now ) return 0 ;\n mutt_message ( _ ( \"Checking for new messages...\" ) ) ;\n if ( nntp_newsrc_parse ( nserv ) < 0 ) return - 1 ;\n nserv -> check_time = now ;\n rc = nntp_group_poll ( nntp_data , 0 ) ;\n if ( rc < 0 ) {\n nntp_newsrc_close ( nserv ) ;\n return - 1 ;\n }\n if ( rc ) nntp_active_save_cache ( nserv ) ;\n if ( nntp_data -> last_message < nntp_data -> last_loaded ) {\n for ( int i = 0 ;\n i < ctx -> msgcount ;\n i ++ ) mutt_header_free ( & ctx -> hdrs [ i ] ) ;\n ctx -> msgcount = 0 ;\n ctx -> tagged = 0 ;\n if ( nntp_data -> last_message < nntp_data -> last_loaded ) {\n nntp_data -> last_loaded = nntp_data -> first_message - 1 ;\n if ( NntpContext && nntp_data -> last_message - nntp_data -> last_loaded > NntpContext ) nntp_data -> last_loaded = nntp_data -> last_message - NntpContext ;\n }\n ret = MUTT_REOPENED ;\n }\n if ( nserv -> newsrc_modified ) {\n # ifdef USE_HCACHE unsigned char * messages = NULL ;\n char buf [ 16 ] ;\n void * hdata = NULL ;\n struct Header * hdr = NULL ;\n anum_t first = nntp_data -> first_message ;\n if ( NntpContext && nntp_data -> last_message - first + 1 > NntpContext ) first = nntp_data -> last_message - NntpContext + 1 ;\n messages = mutt_mem_calloc ( nntp_data -> last_loaded - first + 1 , sizeof ( unsigned char ) ) ;\n hc = nntp_hcache_open ( nntp_data ) ;\n nntp_hcache_update ( nntp_data , hc ) ;\n # endif int j = 0 ;\n anum_t anum ;\n for ( int i = 0 ;\n i < ctx -> msgcount ;\n i ++ ) {\n bool flagged = false ;\n anum = NHDR ( ctx -> hdrs [ i ] ) -> article_num ;\n # ifdef USE_HCACHE if ( hc ) {\n if ( anum >= first && anum <= nntp_data -> last_loaded ) messages [ anum - first ] = 1 ;\n snprintf ( buf , sizeof ( buf ) , \"%u\" , anum ) ;\n hdata = mutt_hcache_fetch ( hc , buf , strlen ( buf ) ) ;\n if ( hdata ) {\n bool deleted ;\n mutt_debug ( 2 , \"#1 mutt_hcache_fetch %s\\n\" , buf ) ;\n hdr = mutt_hcache_restore ( hdata ) ;\n mutt_hcache_free ( hc , & hdata ) ;\n hdr -> data = 0 ;\n deleted = hdr -> deleted ;\n flagged = hdr -> flagged ;\n mutt_header_free ( & hdr ) ;\n if ( deleted ) {\n mutt_set_flag ( ctx , ctx -> hdrs [ i ] , MUTT_TAG , 0 ) ;\n mutt_header_free ( & ctx -> hdrs [ i ] ) ;\n continue ;\n }\n }\n }\n # endif if ( ! ctx -> hdrs [ i ] -> changed ) {\n ctx -> hdrs [ i ] -> flagged = flagged ;\n ctx -> hdrs [ i ] -> read = false ;\n ctx -> hdrs [ i ] -> old = false ;\n nntp_article_status ( ctx , ctx -> hdrs [ i ] , NULL , anum ) ;\n if ( ! ctx -> hdrs [ i ] -> read ) nntp_parse_xref ( ctx , ctx -> hdrs [ i ] ) ;\n }\n ctx -> hdrs [ j ++ ] = ctx -> hdrs [ i ] ;\n }\n # ifdef USE_HCACHE ctx -> msgcount = j ;\n for ( anum = first ;\n anum <= nntp_data -> last_loaded ;\n anum ++ ) {\n if ( messages [ anum - first ] ) continue ;\n snprintf ( buf , sizeof ( buf ) , \"%u\" , anum ) ;\n hdata = mutt_hcache_fetch ( hc , buf , strlen ( buf ) ) ;\n if ( hdata ) {\n mutt_debug ( 2 , \"#2 mutt_hcache_fetch %s\\n\" , buf ) ;\n if ( ctx -> msgcount >= ctx -> hdrmax ) mx_alloc_memory ( ctx ) ;\n ctx -> hdrs [ ctx -> msgcount ] = hdr = mutt_hcache_restore ( hdata ) ;\n mutt_hcache_free ( hc , & hdata ) ;\n hdr -> data = 0 ;\n if ( hdr -> deleted ) {\n mutt_header_free ( & hdr ) ;\n if ( nntp_data -> bcache ) {\n mutt_debug ( 2 , \"mutt_bcache_del %s\\n\" , buf ) ;\n mutt_bcache_del ( nntp_data -> bcache , buf ) ;\n }\n continue ;\n }\n ctx -> msgcount ++ ;\n hdr -> read = false ;\n hdr -> old = false ;\n hdr -> data = mutt_mem_calloc ( 1 , sizeof ( struct NntpHeaderData ) ) ;\n NHDR ( hdr ) -> article_num = anum ;\n nntp_article_status ( ctx , hdr , NULL , anum ) ;\n if ( ! hdr -> read ) nntp_parse_xref ( ctx , hdr ) ;\n }\n }\n FREE ( & messages ) ;\n # endif nserv -> newsrc_modified = false ;\n ret = MUTT_REOPENED ;\n }\n if ( ret == MUTT_REOPENED ) {\n if ( ctx -> subj_hash ) mutt_hash_destroy ( & ctx -> subj_hash ) ;\n if ( ctx -> id_hash ) mutt_hash_destroy ( & ctx -> id_hash ) ;\n mutt_clear_threads ( ctx ) ;\n ctx -> vcount = 0 ;\n ctx -> deleted = 0 ;\n ctx -> new = 0 ;\n ctx -> unread = 0 ;\n ctx -> flagged = 0 ;\n ctx -> changed = false ;\n ctx -> id_hash = NULL ;\n ctx -> subj_hash = NULL ;\n mx_update_context ( ctx , ctx -> msgcount ) ;\n }\n if ( nntp_data -> last_message > nntp_data -> last_loaded ) {\n int oldmsgcount = ctx -> msgcount ;\n bool quiet = ctx -> quiet ;\n ctx -> quiet = true ;\n # ifdef USE_HCACHE if ( ! hc ) {\n hc = nntp_hcache_open ( nntp_data ) ;\n nntp_hcache_update ( nntp_data , hc ) ;\n }\n # endif rc = nntp_fetch_headers ( ctx , hc , nntp_data -> last_loaded + 1 , nntp_data -> last_message , 0 ) ;\n ctx -> quiet = quiet ;\n if ( rc >= 0 ) nntp_data -> last_loaded = nntp_data -> last_message ;\n if ( ret == 0 && ctx -> msgcount > oldmsgcount ) ret = MUTT_NEW_MAIL ;\n }\n # ifdef USE_HCACHE mutt_hcache_close ( hc ) ;\n # endif if ( ret ) nntp_newsrc_close ( nserv ) ;\n mutt_clear_error ( ) ;\n return ret ;\n }"}
{"idx": 8552, "target": 0, "func": "int dissect_ber_identifier ( packet_info * pinfo _U_ , proto_tree * tree , tvbuff_t * tvb , int offset , gint8 * ber_class , gboolean * pc , gint32 * tag ) {\n int old_offset = offset ;\n gint8 tmp_class ;\n gboolean tmp_pc ;\n gint32 tmp_tag ;\n offset = get_ber_identifier ( tvb , offset , & tmp_class , & tmp_pc , & tmp_tag ) ;\n if ( show_internal_ber_fields ) {\n proto_tree_add_uint ( tree , hf_ber_id_class , tvb , old_offset , 1 , tmp_class << 6 ) ;\n proto_tree_add_boolean ( tree , hf_ber_id_pc , tvb , old_offset , 1 , ( tmp_pc ) ? 0x20 : 0x00 ) ;\n if ( tmp_tag > 0x1F ) {\n if ( tmp_class == BER_CLASS_UNI ) {\n proto_tree_add_uint ( tree , hf_ber_id_uni_tag_ext , tvb , old_offset + 1 , offset - ( old_offset + 1 ) , tmp_tag ) ;\n }\n else {\n proto_tree_add_uint ( tree , hf_ber_id_tag_ext , tvb , old_offset + 1 , offset - ( old_offset + 1 ) , tmp_tag ) ;\n }\n }\n else {\n if ( tmp_class == BER_CLASS_UNI ) {\n proto_tree_add_uint ( tree , hf_ber_id_uni_tag , tvb , old_offset , 1 , tmp_tag ) ;\n }\n else {\n proto_tree_add_uint ( tree , hf_ber_id_tag , tvb , old_offset , 1 , tmp_tag ) ;\n }\n }\n }\n if ( ber_class ) * ber_class = tmp_class ;\n if ( pc ) * pc = tmp_pc ;\n if ( tag ) * tag = tmp_tag ;\n return offset ;\n }"}
{"idx": 8553, "target": 0, "func": "static void isofile_add_entry ( struct iso9660 * iso9660 , struct isofile * file ) {\n file -> allnext = NULL ;\n * iso9660 -> all_file_list . last = file ;\n iso9660 -> all_file_list . last = & ( file -> allnext ) ;\n }"}
{"idx": 8554, "target": 0, "func": "static void dump_tags ( void ) {\n static const char * msg = \"fast-import\" ;\n struct tag * t ;\n struct strbuf ref_name = STRBUF_INIT ;\n struct strbuf err = STRBUF_INIT ;\n struct ref_transaction * transaction ;\n transaction = ref_transaction_begin ( & err ) ;\n if ( ! transaction ) {\n failure |= error ( \"%s\" , err . buf ) ;\n goto cleanup ;\n }\n for ( t = first_tag ;\n t ;\n t = t -> next_tag ) {\n strbuf_reset ( & ref_name ) ;\n strbuf_addf ( & ref_name , \"refs/tags/%s\" , t -> name ) ;\n if ( ref_transaction_update ( transaction , ref_name . buf , t -> sha1 , NULL , 0 , msg , & err ) ) {\n failure |= error ( \"%s\" , err . buf ) ;\n goto cleanup ;\n }\n }\n if ( ref_transaction_commit ( transaction , & err ) ) failure |= error ( \"%s\" , err . buf ) ;\n cleanup : ref_transaction_free ( transaction ) ;\n strbuf_release ( & ref_name ) ;\n strbuf_release ( & err ) ;\n }"}
{"idx": 8555, "target": 0, "func": "static int dissect_usb_video_streaming_interface_descriptor ( proto_tree * parent_tree , tvbuff_t * tvb , guint8 descriptor_len ) {\n proto_tree * tree ;\n int offset = 0 ;\n const gchar * subtype_str ;\n guint8 subtype ;\n subtype = tvb_get_guint8 ( tvb , offset + 2 ) ;\n subtype_str = val_to_str_ext ( subtype , & vs_if_descriptor_subtypes_ext , \"Unknown (0x%x)\" ) ;\n tree = proto_tree_add_subtree_format ( parent_tree , tvb , offset , descriptor_len , ett_descriptor_video_streaming , NULL , \"VIDEO STREAMING INTERFACE DESCRIPTOR [%s]\" , subtype_str ) ;\n dissect_usb_descriptor_header ( tree , tvb , offset , & vid_descriptor_type_vals_ext ) ;\n proto_tree_add_item ( tree , hf_usb_vid_streaming_ifdesc_subtype , tvb , offset + 2 , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n switch ( subtype ) {\n case VS_INPUT_HEADER : offset = dissect_usb_video_streaming_input_header ( tree , tvb , offset ) ;\n break ;\n case VS_FORMAT_UNCOMPRESSED : case VS_FORMAT_MJPEG : case VS_FORMAT_FRAME_BASED : offset = dissect_usb_video_format ( tree , tvb , offset , subtype ) ;\n break ;\n case VS_FRAME_UNCOMPRESSED : case VS_FRAME_MJPEG : case VS_FRAME_FRAME_BASED : offset = dissect_usb_video_frame ( tree , tvb , offset , subtype ) ;\n break ;\n case VS_COLORFORMAT : offset = dissect_usb_video_colorformat ( tree , tvb , offset ) ;\n break ;\n default : break ;\n }\n if ( offset < descriptor_len ) proto_tree_add_item ( tree , hf_usb_vid_descriptor_data , tvb , offset , descriptor_len - offset , ENC_NA ) ;\n return descriptor_len ;\n }"}
{"idx": 8556, "target": 0, "func": "void gic_set_pending_private ( GICState * s , int cpu , int irq ) {\n int cm = 1 << cpu ;\n if ( GIC_TEST_PENDING ( irq , cm ) ) return ;\n DPRINTF ( \"Set %d pending cpu %d\\n\" , irq , cpu ) ;\n GIC_SET_PENDING ( irq , cm ) ;\n gic_update ( s ) ;\n }"}
{"idx": 8557, "target": 0, "func": "static int dissect_h245_GenericMessage ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 605 \"../../asn1/h245/h245.cnf\" void * priv_data = actx -> private_data ;\n gef_ctx_t * gefx ;\n gefx = gef_ctx_get ( actx -> private_data ) ;\n if ( ! gefx ) {\n gefx = gef_ctx_alloc ( NULL , \"GenericMessage\" ) ;\n actx -> private_data = gefx ;\n }\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_GenericMessage , GenericMessage_sequence ) ;\n # line 615 \"../../asn1/h245/h245.cnf\" actx -> private_data = priv_data ;\n return offset ;\n }"}
{"idx": 8558, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( HttpsEngagementPageLoadMetricsBrowserTest , BackgroundThenForeground_Https ) {\n StartHttpsServer ( false ) ;\n base : : TimeDelta upper_bound = NavigateInBackgroundAndCloseInForegroundWithTiming ( https_test_server_ -> GetURL ( \"/simple.html\" ) ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpEngagementHistogram , 0 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementHistogram , 1 ) ;\n int32_t bucket_min = histogram_tester_ . GetAllSamples ( internal : : kHttpsEngagementHistogram ) [ 0 ] . min ;\n EXPECT_GE ( upper_bound . InMilliseconds ( ) , bucket_min ) ;\n EXPECT_LT ( 0 , bucket_min ) ;\n }"}
{"idx": 8559, "target": 0, "func": "static void dtap_gcc_term ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n ELEM_MAND_LV ( GSM_A_PDU_TYPE_DTAP , DE_GCC_CAUSE , NULL ) ;\n }"}
{"idx": 8560, "target": 0, "func": "static char * xmlrpc_write_header ( int length ) {\n char buf [ 512 ] ;\n time_t ts ;\n char timebuf [ 64 ] ;\n struct tm tm ;\n * buf = '\\0' ;\n ts = time ( NULL ) ;\n tm = * localtime ( & ts ) ;\n strftime ( timebuf , sizeof timebuf , \"%Y-%m-%d %H:%M:%S\" , & tm ) ;\n snprintf ( buf , sizeof buf , \"HTTP/1.1 200 OK\\r\\nConnection: close\\r\\n\" \"Content-Length: %d\\r\\n\" \"Content-Type: text/xml\\r\\n\" \"Date: %s\\r\\n\" \"Server: Atheme/%s\\r\\n\\r\\n\" , length , timebuf , PACKAGE_VERSION ) ;\n return sstrdup ( buf ) ;\n }"}
{"idx": 8561, "target": 0, "func": "static void vc1_decode_ac_coeff ( VC1Context * v , int * last , int * skip , int * value , int codingset ) {\n GetBitContext * gb = & v -> s . gb ;\n int index , escape , run = 0 , level = 0 , lst = 0 ;\n index = get_vlc2 ( gb , ff_vc1_ac_coeff_table [ codingset ] . table , AC_VLC_BITS , 3 ) ;\n if ( index != ff_vc1_ac_sizes [ codingset ] - 1 ) {\n run = vc1_index_decode_table [ codingset ] [ index ] [ 0 ] ;\n level = vc1_index_decode_table [ codingset ] [ index ] [ 1 ] ;\n lst = index >= vc1_last_decode_table [ codingset ] || get_bits_left ( gb ) < 0 ;\n if ( get_bits1 ( gb ) ) level = - level ;\n }\n else {\n escape = decode210 ( gb ) ;\n if ( escape != 2 ) {\n index = get_vlc2 ( gb , ff_vc1_ac_coeff_table [ codingset ] . table , AC_VLC_BITS , 3 ) ;\n run = vc1_index_decode_table [ codingset ] [ index ] [ 0 ] ;\n level = vc1_index_decode_table [ codingset ] [ index ] [ 1 ] ;\n lst = index >= vc1_last_decode_table [ codingset ] ;\n if ( escape == 0 ) {\n if ( lst ) level += vc1_last_delta_level_table [ codingset ] [ run ] ;\n else level += vc1_delta_level_table [ codingset ] [ run ] ;\n }\n else {\n if ( lst ) run += vc1_last_delta_run_table [ codingset ] [ level ] + 1 ;\n else run += vc1_delta_run_table [ codingset ] [ level ] + 1 ;\n }\n if ( get_bits1 ( gb ) ) level = - level ;\n }\n else {\n int sign ;\n lst = get_bits1 ( gb ) ;\n if ( v -> s . esc3_level_length == 0 ) {\n if ( v -> pq < 8 || v -> dquantfrm ) {\n v -> s . esc3_level_length = get_bits ( gb , 3 ) ;\n if ( ! v -> s . esc3_level_length ) v -> s . esc3_level_length = get_bits ( gb , 2 ) + 8 ;\n }\n else {\n v -> s . esc3_level_length = get_unary ( gb , 1 , 6 ) + 2 ;\n }\n v -> s . esc3_run_length = 3 + get_bits ( gb , 2 ) ;\n }\n run = get_bits ( gb , v -> s . esc3_run_length ) ;\n sign = get_bits1 ( gb ) ;\n level = get_bits ( gb , v -> s . esc3_level_length ) ;\n if ( sign ) level = - level ;\n }\n }\n * last = lst ;\n * skip = run ;\n * value = level ;\n }"}
{"idx": 8562, "target": 0, "func": "static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 8563, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ContentFaviconDriverTest , AssociateIconWithInitialPageDespiteLocationOverrideToOtherPage ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n GURL url = embedded_test_server ( ) -> GetURL ( \"/favicon/page_with_location_override_to_other_page.html\" ) ;\n GURL landing_url = embedded_test_server ( ) -> GetURL ( \"/favicon/page_with_favicon.html\" ) ;\n PendingTaskWaiter waiter ( web_contents ( ) ) ;\n waiter . AlsoRequireUrl ( landing_url ) ;\n ui_test_utils : : NavigateToURLWithDisposition ( browser ( ) , url , WindowOpenDisposition : : CURRENT_TAB , ui_test_utils : : BROWSER_TEST_NONE ) ;\n waiter . Wait ( ) ;\n EXPECT_NE ( nullptr , GetFaviconForPageURL ( url , favicon_base : : IconType : : kFavicon ) . bitmap_data ) ;\n EXPECT_NE ( nullptr , GetFaviconForPageURL ( landing_url , favicon_base : : IconType : : kFavicon ) . bitmap_data ) ;\n }"}
{"idx": 8564, "target": 0, "func": "TSReturnCode TSHttpTxnServerRespGet ( TSHttpTxn txnp , TSMBuffer * bufp , TSMLoc * obj ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) obj ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n HTTPHdr * hptr = & ( sm -> t_state . hdr_info . server_response ) ;\n if ( hptr -> valid ( ) ) {\n * ( reinterpret_cast < HTTPHdr * * > ( bufp ) ) = hptr ;\n * obj = reinterpret_cast < TSMLoc > ( hptr -> m_http ) ;\n sdk_assert ( sdk_sanity_check_mbuffer ( * bufp ) == TS_SUCCESS ) ;\n return TS_SUCCESS ;\n }\n return TS_ERROR ;\n }"}
{"idx": 8565, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ExtensionPreferenceApiTest , OnChange ) {\n EXPECT_TRUE ( RunExtensionTestIncognito ( \"preference/onchange\" ) ) << message_ ;\n }"}
{"idx": 8566, "target": 0, "func": "gboolean logcat_text_time_dump_open ( wtap_dumper * wdh , int * err _U_ ) {\n struct dumper_t * dumper ;\n dumper = ( struct dumper_t * ) g_malloc ( sizeof ( struct dumper_t ) ) ;\n dumper -> type = DUMP_TIME ;\n wdh -> priv = dumper ;\n wdh -> subtype_write = logcat_dump_text ;\n wdh -> subtype_close = NULL ;\n return TRUE ;\n }"}
{"idx": 8567, "target": 0, "func": "static int write_VD ( struct archive_write * a , struct vdd * vdd ) {\n struct iso9660 * iso9660 ;\n unsigned char * bp ;\n uint16_t volume_set_size = 1 ;\n char identifier [ 256 ] ;\n enum VD_type vdt ;\n enum vdc vdc ;\n unsigned char vd_ver , fst_ver ;\n int r ;\n iso9660 = a -> format_data ;\n switch ( vdd -> vdd_type ) {\n case VDD_JOLIET : vdt = VDT_SUPPLEMENTARY ;\n vd_ver = fst_ver = 1 ;\n vdc = VDC_UCS2 ;\n break ;\n case VDD_ENHANCED : vdt = VDT_SUPPLEMENTARY ;\n vd_ver = fst_ver = 2 ;\n vdc = VDC_LOWERCASE ;\n break ;\n case VDD_PRIMARY : default : vdt = VDT_PRIMARY ;\n vd_ver = fst_ver = 1 ;\n # ifdef COMPAT_MKISOFS vdc = VDC_LOWERCASE ;\n # else vdc = VDC_STD ;\n # endif break ;\n }\n bp = wb_buffptr ( a ) - 1 ;\n set_VD_bp ( bp , vdt , vd_ver ) ;\n set_unused_field_bp ( bp , 8 , 8 ) ;\n get_system_identitier ( identifier , sizeof ( identifier ) ) ;\n r = set_str_a_characters_bp ( a , bp , 9 , 40 , identifier , vdc ) ;\n if ( r != ARCHIVE_OK ) return ( r ) ;\n r = set_str_d_characters_bp ( a , bp , 41 , 72 , iso9660 -> volume_identifier . s , vdc ) ;\n if ( r != ARCHIVE_OK ) return ( r ) ;\n set_unused_field_bp ( bp , 73 , 80 ) ;\n set_num_733 ( bp + 81 , iso9660 -> volume_space_size ) ;\n if ( vdd -> vdd_type == VDD_JOLIET ) {\n bp [ 89 ] = 0x25 ;\n bp [ 90 ] = 0x2F ;\n bp [ 91 ] = 0x45 ;\n memset ( bp + 92 , 0 , 120 - 92 + 1 ) ;\n }\n else {\n set_unused_field_bp ( bp , 89 , 120 ) ;\n }\n set_num_723 ( bp + 121 , volume_set_size ) ;\n set_num_723 ( bp + 125 , iso9660 -> volume_sequence_number ) ;\n set_num_723 ( bp + 129 , LOGICAL_BLOCK_SIZE ) ;\n set_num_733 ( bp + 133 , vdd -> path_table_size ) ;\n set_num_731 ( bp + 141 , vdd -> location_type_L_path_table ) ;\n set_num_731 ( bp + 145 , 0 ) ;\n set_num_732 ( bp + 149 , vdd -> location_type_M_path_table ) ;\n set_num_732 ( bp + 153 , 0 ) ;\n set_directory_record ( bp + 157 , 190 - 157 + 1 , vdd -> rootent , iso9660 , DIR_REC_VD , vdd -> vdd_type ) ;\n r = set_str_d_characters_bp ( a , bp , 191 , 318 , \"\" , vdc ) ;\n if ( r != ARCHIVE_OK ) return ( r ) ;\n r = set_file_identifier ( bp , 319 , 446 , vdc , a , vdd , & ( iso9660 -> publisher_identifier ) , \"Publisher File\" , 1 , A_CHAR ) ;\n if ( r != ARCHIVE_OK ) return ( r ) ;\n r = set_file_identifier ( bp , 447 , 574 , vdc , a , vdd , & ( iso9660 -> data_preparer_identifier ) , \"Data Preparer File\" , 1 , A_CHAR ) ;\n if ( r != ARCHIVE_OK ) return ( r ) ;\n r = set_file_identifier ( bp , 575 , 702 , vdc , a , vdd , & ( iso9660 -> application_identifier ) , \"Application File\" , 1 , A_CHAR ) ;\n if ( r != ARCHIVE_OK ) return ( r ) ;\n r = set_file_identifier ( bp , 703 , 739 , vdc , a , vdd , & ( iso9660 -> copyright_file_identifier ) , \"Copyright File\" , 0 , D_CHAR ) ;\n if ( r != ARCHIVE_OK ) return ( r ) ;\n r = set_file_identifier ( bp , 740 , 776 , vdc , a , vdd , & ( iso9660 -> abstract_file_identifier ) , \"Abstract File\" , 0 , D_CHAR ) ;\n if ( r != ARCHIVE_OK ) return ( r ) ;\n r = set_file_identifier ( bp , 777 , 813 , vdc , a , vdd , & ( iso9660 -> bibliographic_file_identifier ) , \"Bibliongraphic File\" , 0 , D_CHAR ) ;\n if ( r != ARCHIVE_OK ) return ( r ) ;\n set_date_time ( bp + 814 , iso9660 -> birth_time ) ;\n set_date_time ( bp + 831 , iso9660 -> birth_time ) ;\n set_date_time_null ( bp + 848 ) ;\n set_date_time ( bp + 865 , iso9660 -> birth_time ) ;\n bp [ 882 ] = fst_ver ;\n bp [ 883 ] = 0 ;\n memset ( bp + 884 , 0x20 , 1395 - 884 + 1 ) ;\n set_unused_field_bp ( bp , 1396 , LOGICAL_BLOCK_SIZE ) ;\n return ( wb_consume ( a , LOGICAL_BLOCK_SIZE ) ) ;\n }"}
{"idx": 8568, "target": 0, "func": "static int dissect_h245_QOSDescriptor ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_QOSDescriptor , QOSDescriptor_sequence ) ;\n return offset ;\n }"}
{"idx": 8569, "target": 0, "func": "static int dissect_mac_fdd_fach ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n guint8 hdr , tctf ;\n guint16 bitoffs = 0 ;\n guint16 tctf_len , chan ;\n proto_tree * fach_tree = NULL ;\n proto_item * channel_type ;\n tvbuff_t * next_tvb ;\n umts_mac_info * macinf ;\n fp_info * fpinf ;\n rlc_info * rlcinf ;\n struct rrc_info * rrcinf ;\n proto_item * ti = NULL ;\n gint c_t ;\n hdr = tvb_get_guint8 ( tvb , 0 ) ;\n tctf = fach_fdd_tctf ( hdr , & bitoffs ) ;\n tctf_len = bitoffs ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"MAC\" ) ;\n col_set_str ( pinfo -> cinfo , COL_INFO , val_to_str_const ( tctf , fach_fdd_tctf_vals , \"Unknown TCTF\" ) ) ;\n ti = proto_tree_add_item ( tree , proto_umts_mac , tvb , 0 , - 1 , ENC_NA ) ;\n fach_tree = proto_item_add_subtree ( ti , ett_mac_fach ) ;\n macinf = ( umts_mac_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_umts_mac , 0 ) ;\n fpinf = ( fp_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_fp , 0 ) ;\n rlcinf = ( rlc_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_rlc , 0 ) ;\n if ( ! macinf || ! fpinf ) {\n proto_tree_add_expert ( fach_tree , pinfo , & ei_mac_per_frame_info_missing , tvb , 0 , - 1 ) ;\n return 1 ;\n }\n proto_tree_add_bits_item ( fach_tree , hf_mac_fach_fdd_tctf , tvb , 0 , tctf_len , ENC_BIG_ENDIAN ) ;\n if ( tctf == TCTF_DCCH_DTCH_FACH_FDD ) {\n macinf -> ctmux [ fpinf -> cur_tb ] = 1 ;\n bitoffs = tree_add_common_dcch_dtch_fields ( tvb , pinfo , fach_tree , bitoffs , fpinf , macinf , rlcinf ) ;\n }\n chan = fpinf -> cur_chan ;\n switch ( tctf ) {\n case TCTF_CCCH_FACH_FDD : proto_item_append_text ( ti , \" (CCCH)\" ) ;\n channel_type = proto_tree_add_uint ( fach_tree , hf_mac_channel , tvb , 0 , 0 , MAC_CCCH ) ;\n PROTO_ITEM_SET_GENERATED ( channel_type ) ;\n next_tvb = tvb_new_subset_remaining ( tvb , 1 ) ;\n call_dissector_with_data ( rlc_ccch_handle , next_tvb , pinfo , tree , data ) ;\n break ;\n case TCTF_DCCH_DTCH_FACH_FDD : c_t = tvb_get_bits8 ( tvb , bitoffs - 4 , 4 ) ;\n if ( c_t == 15 ) {\n expert_add_info ( pinfo , NULL , & ei_mac_reserved_c_t ) ;\n break ;\n }\n rlcinf -> mode [ fpinf -> cur_tb ] = lchId_rlc_map [ c_t + 1 ] ;\n macinf -> content [ fpinf -> cur_tb ] = lchId_type_table [ c_t + 1 ] ;\n switch ( macinf -> content [ fpinf -> cur_tb ] ) {\n case MAC_CONTENT_DCCH : proto_item_append_text ( ti , \" (DCCH)\" ) ;\n channel_type = proto_tree_add_uint ( fach_tree , hf_mac_channel , tvb , 0 , 0 , MAC_DCCH ) ;\n PROTO_ITEM_SET_GENERATED ( channel_type ) ;\n next_tvb = tvb_new_octet_aligned ( tvb , bitoffs , fpinf -> chan_tf_size [ chan ] - bitoffs ) ;\n add_new_data_source ( pinfo , next_tvb , \"Octet-Aligned DCCH Data\" ) ;\n call_dissector_with_data ( rlc_dcch_handle , next_tvb , pinfo , tree , data ) ;\n break ;\n case MAC_CONTENT_PS_DTCH : proto_item_append_text ( ti , \" (PS DTCH)\" ) ;\n channel_type = proto_tree_add_uint ( fach_tree , hf_mac_channel , tvb , 0 , 0 , MAC_DTCH ) ;\n PROTO_ITEM_SET_GENERATED ( channel_type ) ;\n next_tvb = tvb_new_octet_aligned ( tvb , bitoffs , fpinf -> chan_tf_size [ chan ] - bitoffs ) ;\n add_new_data_source ( pinfo , next_tvb , \"Octet-Aligned DCCH Data\" ) ;\n call_dissector_with_data ( rlc_ps_dtch_handle , next_tvb , pinfo , tree , data ) ;\n break ;\n case MAC_CONTENT_CS_DTCH : proto_item_append_text ( ti , \" (CS DTCH)\" ) ;\n expert_add_info ( pinfo , NULL , & ei_mac_cs_dtch_not_implemented ) ;\n break ;\n default : proto_item_append_text ( ti , \" (Unknown FACH Content\" ) ;\n expert_add_info_format ( pinfo , NULL , & ei_mac_unknown_content , \"Unknown FACH Content for this transportblock\" ) ;\n }\n break ;\n case TCTF_CTCH_FACH_FDD : proto_item_append_text ( ti , \" (CTCH)\" ) ;\n channel_type = proto_tree_add_uint ( fach_tree , hf_mac_channel , tvb , 0 , 0 , MAC_CTCH ) ;\n PROTO_ITEM_SET_GENERATED ( channel_type ) ;\n next_tvb = tvb_new_subset_remaining ( tvb , 1 ) ;\n call_dissector_with_data ( rlc_ctch_handle , next_tvb , pinfo , tree , data ) ;\n break ;\n case TCTF_BCCH_FACH_FDD : proto_item_append_text ( ti , \" (BCCH)\" ) ;\n channel_type = proto_tree_add_uint ( fach_tree , hf_mac_channel , tvb , 0 , 0 , MAC_BCCH ) ;\n PROTO_ITEM_SET_GENERATED ( channel_type ) ;\n next_tvb = tvb_new_octet_aligned ( tvb , 2 , ( tvb_reported_length ( tvb ) * 8 ) - 2 ) ;\n add_new_data_source ( pinfo , next_tvb , \"Octet-Aligned BCCH Data\" ) ;\n rrcinf = ( rrc_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_rrc , 0 ) ;\n if ( ! rrcinf ) {\n rrcinf = wmem_new0 ( wmem_file_scope ( ) , struct rrc_info ) ;\n p_add_proto_data ( wmem_file_scope ( ) , pinfo , proto_rrc , 0 , rrcinf ) ;\n }\n rrcinf -> msgtype [ fpinf -> cur_tb ] = RRC_MESSAGE_TYPE_BCCH_FACH ;\n call_dissector_with_data ( rrc_handle , next_tvb , pinfo , tree , data ) ;\n break ;\n case TCTF_MSCH_FACH_FDD : case TCTF_MCCH_FACH_FDD : case TCTF_MTCH_FACH_FDD : expert_add_info ( pinfo , NULL , & ei_mac_fach_content_type_unknown ) ;\n break ;\n default : proto_item_append_text ( ti , \" (Unknown FACH Content)\" ) ;\n expert_add_info_format ( pinfo , NULL , & ei_mac_unknown_content , \" Unknown FACH Content\" ) ;\n break ;\n }\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 8570, "target": 0, "func": "static gcry_err_code_t sexp_elements_extract_ecc ( gcry_sexp_t key_sexp , const char * element_names , gcry_mpi_t * elements , pk_extra_spec_t * extraspec , int want_private ) {\n gcry_err_code_t err = 0 ;\n int idx ;\n const char * name ;\n gcry_sexp_t list ;\n for ( name = element_names , idx = 0 ;\n * name ;\n name ++ , idx ++ ) elements [ idx ] = NULL ;\n gcry_assert ( idx >= 5 ) ;\n if ( idx == 5 ) elements [ 5 ] = NULL ;\n for ( name = element_names , idx = 0 ;\n * name && ! err ;\n name ++ , idx ++ ) {\n list = gcry_sexp_find_token ( key_sexp , name , 1 ) ;\n if ( ! list ) elements [ idx ] = NULL ;\n else {\n elements [ idx ] = gcry_sexp_nth_mpi ( list , 1 , GCRYMPI_FMT_USG ) ;\n gcry_sexp_release ( list ) ;\n if ( ! elements [ idx ] ) {\n err = GPG_ERR_INV_OBJ ;\n goto leave ;\n }\n }\n }\n list = gcry_sexp_find_token ( key_sexp , \"curve\" , 5 ) ;\n if ( list ) {\n if ( extraspec -> get_param ) {\n char * curve ;\n gcry_mpi_t params [ 6 ] ;\n for ( idx = 0 ;\n idx < DIM ( params ) ;\n idx ++ ) params [ idx ] = NULL ;\n curve = _gcry_sexp_nth_string ( list , 1 ) ;\n gcry_sexp_release ( list ) ;\n if ( ! curve ) {\n err = GPG_ERR_INV_OBJ ;\n goto leave ;\n }\n err = extraspec -> get_param ( curve , params ) ;\n gcry_free ( curve ) ;\n if ( err ) goto leave ;\n for ( idx = 0 ;\n idx < DIM ( params ) ;\n idx ++ ) {\n if ( ! elements [ idx ] ) elements [ idx ] = params [ idx ] ;\n else mpi_free ( params [ idx ] ) ;\n }\n }\n else {\n gcry_sexp_release ( list ) ;\n err = GPG_ERR_INV_OBJ ;\n goto leave ;\n }\n }\n for ( name = element_names , idx = 0 ;\n * name ;\n name ++ , idx ++ ) if ( ! elements [ idx ] ) {\n if ( want_private && * name == 'q' ) ;\n else {\n err = GPG_ERR_NO_OBJ ;\n goto leave ;\n }\n }\n leave : if ( err ) {\n for ( name = element_names , idx = 0 ;\n * name ;\n name ++ , idx ++ ) if ( elements [ idx ] ) mpi_free ( elements [ idx ] ) ;\n }\n return err ;\n }"}
{"idx": 8571, "target": 1, "func": "static int64_t rd_sbuv_dcpred ( const VP9_COMP * cpi , MACROBLOCK * x , int * rate , int * rate_tokenonly , int64_t * distortion , int * skippable , BLOCK_SIZE bsize ) {\n const VP9_COMMON * cm = & cpi -> common ;\n int64_t unused ;\n x -> e_mbd . mi [ 0 ] -> mbmi . uv_mode = DC_PRED ;\n super_block_uvrd ( cpi , x , rate_tokenonly , distortion , skippable , & unused , bsize , INT64_MAX ) ;\n * rate = * rate_tokenonly + cpi -> intra_uv_mode_cost [ cm -> frame_type ] [ DC_PRED ] ;\n return RDCOST ( x -> rdmult , x -> rddiv , * rate , * distortion ) ;\n }"}
{"idx": 8572, "target": 0, "func": "static GMount * get_mount_at ( GFile * target ) {\n GVolumeMonitor * monitor ;\n GFile * root ;\n GList * mounts , * l ;\n GMount * found ;\n monitor = g_volume_monitor_get ( ) ;\n mounts = g_volume_monitor_get_mounts ( monitor ) ;\n found = NULL ;\n for ( l = mounts ;\n l != NULL ;\n l = l -> next ) {\n GMount * mount = G_MOUNT ( l -> data ) ;\n if ( g_mount_is_shadowed ( mount ) ) {\n continue ;\n }\n root = g_mount_get_root ( mount ) ;\n if ( g_file_equal ( target , root ) ) {\n found = g_object_ref ( mount ) ;\n break ;\n }\n g_object_unref ( root ) ;\n }\n g_list_free_full ( mounts , g_object_unref ) ;\n g_object_unref ( monitor ) ;\n return found ;\n }"}
{"idx": 8573, "target": 0, "func": "static int32_t ucnv_internalConvert ( UConverter * outConverter , UConverter * inConverter , char * target , int32_t targetCapacity , const char * source , int32_t sourceLength , UErrorCode * pErrorCode ) {\n UChar pivotBuffer [ CHUNK_SIZE ] ;\n UChar * pivot , * pivot2 ;\n char * myTarget ;\n const char * sourceLimit ;\n const char * targetLimit ;\n int32_t targetLength = 0 ;\n if ( sourceLength < 0 ) {\n sourceLimit = uprv_strchr ( source , 0 ) ;\n }\n else {\n sourceLimit = source + sourceLength ;\n }\n if ( source == sourceLimit ) {\n return u_terminateChars ( target , targetCapacity , 0 , pErrorCode ) ;\n }\n pivot = pivot2 = pivotBuffer ;\n myTarget = target ;\n targetLength = 0 ;\n if ( targetCapacity > 0 ) {\n targetLimit = target + targetCapacity ;\n ucnv_convertEx ( outConverter , inConverter , & myTarget , targetLimit , & source , sourceLimit , pivotBuffer , & pivot , & pivot2 , pivotBuffer + CHUNK_SIZE , FALSE , TRUE , pErrorCode ) ;\n targetLength = ( int32_t ) ( myTarget - target ) ;\n }\n if ( * pErrorCode == U_BUFFER_OVERFLOW_ERROR || targetCapacity == 0 ) {\n char targetBuffer [ CHUNK_SIZE ] ;\n targetLimit = targetBuffer + CHUNK_SIZE ;\n do {\n * pErrorCode = U_ZERO_ERROR ;\n myTarget = targetBuffer ;\n ucnv_convertEx ( outConverter , inConverter , & myTarget , targetLimit , & source , sourceLimit , pivotBuffer , & pivot , & pivot2 , pivotBuffer + CHUNK_SIZE , FALSE , TRUE , pErrorCode ) ;\n targetLength += ( int32_t ) ( myTarget - targetBuffer ) ;\n }\n while ( * pErrorCode == U_BUFFER_OVERFLOW_ERROR ) ;\n return u_terminateChars ( target , targetCapacity , targetLength , pErrorCode ) ;\n }\n return targetLength ;\n }"}
{"idx": 8574, "target": 0, "func": "static void set_permissions_task_done ( GObject * source_object , GAsyncResult * res , gpointer user_data ) {\n SetPermissionsJob * job ;\n job = user_data ;\n g_object_unref ( job -> file ) ;\n if ( job -> done_callback ) {\n job -> done_callback ( ! job_aborted ( ( CommonJob * ) job ) , job -> done_callback_data ) ;\n }\n finalize_common ( ( CommonJob * ) job ) ;\n }"}
{"idx": 8575, "target": 0, "func": "gboolean proto_registrar_dump_fieldcount ( void ) {\n guint32 i ;\n header_field_info * hfinfo ;\n guint32 deregistered_count = 0 ;\n guint32 same_name_count = 0 ;\n guint32 protocol_count = 0 ;\n for ( i = 0 ;\n i < gpa_hfinfo . len ;\n i ++ ) {\n if ( gpa_hfinfo . hfi [ i ] == NULL ) {\n deregistered_count ++ ;\n continue ;\n }\n PROTO_REGISTRAR_GET_NTH ( i , hfinfo ) ;\n if ( proto_registrar_is_protocol ( i ) ) protocol_count ++ ;\n if ( hfinfo -> same_name_prev_id != - 1 ) same_name_count ++ ;\n }\n ws_debug_printf ( \"There are %u header fields registered, of which:\\n\" \"\\t%u are deregistered\\n\" \"\\t%u are protocols\\n\" \"\\t%u have the same name as another field\\n\\n\" , gpa_hfinfo . len , deregistered_count , protocol_count , same_name_count ) ;\n ws_debug_printf ( \"%d fields were pre-allocated.\\n%s\" , PROTO_PRE_ALLOC_HF_FIELDS_MEM , ( gpa_hfinfo . allocated_len > PROTO_PRE_ALLOC_HF_FIELDS_MEM ) ? \"* * Please increase PROTO_PRE_ALLOC_HF_FIELDS_MEM (in epan/proto.c)! * *\\n\\n\" : \"\\n\" ) ;\n ws_debug_printf ( \"The header field table consumes %u KiB of memory.\\n\" , ( unsigned int ) ( gpa_hfinfo . allocated_len * sizeof ( header_field_info * ) / 1024 ) ) ;\n ws_debug_printf ( \"The fields themselves consume %u KiB of memory.\\n\" , ( unsigned int ) ( gpa_hfinfo . len * sizeof ( header_field_info ) / 1024 ) ) ;\n return ( gpa_hfinfo . allocated_len > PROTO_PRE_ALLOC_HF_FIELDS_MEM ) ;\n }"}
{"idx": 8576, "target": 0, "func": "static void thumbnail_start ( NautilusDirectory * directory , NautilusFile * file , gboolean * doing_io ) {\n GFile * location ;\n ThumbnailState * state ;\n if ( directory -> details -> thumbnail_state != NULL ) {\n * doing_io = TRUE ;\n return ;\n }\n if ( ! is_needy ( file , lacks_thumbnail , REQUEST_THUMBNAIL ) ) {\n return ;\n }\n * doing_io = TRUE ;\n if ( ! async_job_start ( directory , \"thumbnail\" ) ) {\n return ;\n }\n state = g_new0 ( ThumbnailState , 1 ) ;\n state -> directory = directory ;\n state -> file = file ;\n state -> cancellable = g_cancellable_new ( ) ;\n if ( file -> details -> thumbnail_wants_original ) {\n state -> tried_original = TRUE ;\n state -> trying_original = TRUE ;\n location = nautilus_file_get_location ( file ) ;\n }\n else {\n location = g_file_new_for_path ( file -> details -> thumbnail_path ) ;\n }\n directory -> details -> thumbnail_state = state ;\n g_file_load_contents_async ( location , state -> cancellable , thumbnail_read_callback , state ) ;\n g_object_unref ( location ) ;\n }"}
{"idx": 8577, "target": 0, "func": "int tm_obit ( tm_task_id tid , int * obitval , tm_event_t * event ) {\n int rc = TM_SUCCESS ;\n task_info * tp ;\n struct tcp_chan * chan = NULL ;\n if ( ! init_done ) {\n rc = TM_BADINIT ;\n goto tm_obit_cleanup ;\n }\n if ( ( tp = find_task ( tid ) ) == NULL ) {\n rc = TM_ENOTFOUND ;\n goto tm_obit_cleanup ;\n }\n * event = new_event ( ) ;\n if ( startcom ( TM_OBIT , * event , & chan ) != DIS_SUCCESS ) {\n rc = TM_ESYSTEM ;\n goto tm_obit_cleanup ;\n }\n if ( diswsi ( chan , tp -> t_node ) != DIS_SUCCESS ) {\n rc = TM_ESYSTEM ;\n goto tm_obit_cleanup ;\n }\n if ( diswsi ( chan , tid ) != DIS_SUCCESS ) {\n rc = TM_ESYSTEM ;\n goto tm_obit_cleanup ;\n }\n DIS_tcp_wflush ( chan ) ;\n add_event ( * event , tp -> t_node , TM_OBIT , ( void * ) obitval ) ;\n tm_obit_cleanup : if ( chan != NULL ) DIS_tcp_cleanup ( chan ) ;\n return rc ;\n }"}
{"idx": 8578, "target": 0, "func": "static int compare_indic_order ( const hb_glyph_info_t * pa , const hb_glyph_info_t * pb ) {\n int a = pa -> indic_position ( ) ;\n int b = pb -> indic_position ( ) ;\n return a < b ? - 1 : a == b ? 0 : + 1 ;\n }"}
{"idx": 8579, "target": 0, "func": "static int archive_string_append_unicode ( struct archive_string * as , const void * _p , size_t len , struct archive_string_conv * sc ) {\n const char * s ;\n char * p , * endp ;\n uint32_t uc ;\n size_t w ;\n int n , ret = 0 , ts , tm ;\n int ( * parse ) ( uint32_t * , const char * , size_t ) ;\n size_t ( * unparse ) ( char * , size_t , uint32_t ) ;\n if ( sc -> flag & SCONV_TO_UTF16BE ) {\n unparse = unicode_to_utf16be ;\n ts = 2 ;\n }\n else if ( sc -> flag & SCONV_TO_UTF16LE ) {\n unparse = unicode_to_utf16le ;\n ts = 2 ;\n }\n else if ( sc -> flag & SCONV_TO_UTF8 ) {\n unparse = unicode_to_utf8 ;\n ts = 1 ;\n }\n else {\n if ( sc -> flag & SCONV_FROM_UTF16BE ) {\n unparse = unicode_to_utf16be ;\n ts = 2 ;\n }\n else if ( sc -> flag & SCONV_FROM_UTF16LE ) {\n unparse = unicode_to_utf16le ;\n ts = 2 ;\n }\n else {\n unparse = unicode_to_utf8 ;\n ts = 1 ;\n }\n }\n if ( sc -> flag & SCONV_FROM_UTF16BE ) {\n parse = utf16be_to_unicode ;\n tm = 1 ;\n }\n else if ( sc -> flag & SCONV_FROM_UTF16LE ) {\n parse = utf16le_to_unicode ;\n tm = 1 ;\n }\n else {\n parse = cesu8_to_unicode ;\n tm = ts ;\n }\n if ( archive_string_ensure ( as , as -> length + len * tm + ts ) == NULL ) return ( - 1 ) ;\n s = ( const char * ) _p ;\n p = as -> s + as -> length ;\n endp = as -> s + as -> buffer_length - ts ;\n while ( ( n = parse ( & uc , s , len ) ) != 0 ) {\n if ( n < 0 ) {\n n *= - 1 ;\n ret = - 1 ;\n }\n s += n ;\n len -= n ;\n while ( ( w = unparse ( p , endp - p , uc ) ) == 0 ) {\n as -> length = p - as -> s ;\n if ( archive_string_ensure ( as , as -> buffer_length + len * tm + ts ) == NULL ) return ( - 1 ) ;\n p = as -> s + as -> length ;\n endp = as -> s + as -> buffer_length - ts ;\n }\n p += w ;\n }\n as -> length = p - as -> s ;\n as -> s [ as -> length ] = '\\0' ;\n if ( ts == 2 ) as -> s [ as -> length + 1 ] = '\\0' ;\n return ( ret ) ;\n }"}
{"idx": 8580, "target": 0, "func": "void rfbIncrClientRef ( rfbClientPtr cl ) {\n }"}
{"idx": 8581, "target": 0, "func": "static int jbig2_decode_generic_template1_TPGDON ( Jbig2Ctx * ctx , Jbig2Segment * segment , const Jbig2GenericRegionParams * params , Jbig2ArithState * as , Jbig2Image * image , Jbig2ArithCx * GB_stats ) {\n const int GBW = image -> width ;\n const int GBH = image -> height ;\n uint32_t CONTEXT ;\n int x , y ;\n bool bit ;\n int LTP = 0 ;\n for ( y = 0 ;\n y < GBH ;\n y ++ ) {\n bit = jbig2_arith_decode ( as , & GB_stats [ 0x0795 ] ) ;\n if ( bit < 0 ) return - 1 ;\n LTP ^= bit ;\n if ( ! LTP ) {\n for ( x = 0 ;\n x < GBW ;\n x ++ ) {\n CONTEXT = jbig2_image_get_pixel ( image , x - 1 , y ) ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 2 , y ) << 1 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 3 , y ) << 2 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x + params -> gbat [ 0 ] , y + params -> gbat [ 1 ] ) << 3 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x + 2 , y - 1 ) << 4 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x + 1 , y - 1 ) << 5 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x , y - 1 ) << 6 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 1 , y - 1 ) << 7 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 2 , y - 1 ) << 8 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x + 2 , y - 2 ) << 9 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x + 1 , y - 2 ) << 10 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x , y - 2 ) << 11 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 1 , y - 2 ) << 12 ;\n bit = jbig2_arith_decode ( as , & GB_stats [ CONTEXT ] ) ;\n if ( bit < 0 ) return - 1 ;\n jbig2_image_set_pixel ( image , x , y , bit ) ;\n }\n }\n else {\n copy_prev_row ( image , y ) ;\n }\n }\n return 0 ;\n }"}
{"idx": 8582, "target": 1, "func": "int dissect_h225_RasMessage ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 292 \"./asn1/h225/h225.cnf\" gint32 rasmessage_value ;\n h225_packet_info * h225_pi ;\n call_id_guid = NULL ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_RasMessage , RasMessage_choice , & rasmessage_value ) ;\n col_add_fstr ( actx -> pinfo -> cinfo , COL_INFO , \"RAS: %s \" , val_to_str ( rasmessage_value , h225_RasMessage_vals , \"<unknown>\" ) ) ;\n h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> msg_tag = rasmessage_value ;\n if ( call_id_guid ) {\n h225_pi -> guid = * call_id_guid ;\n }\n }\n return offset ;\n }"}
{"idx": 8583, "target": 0, "func": "static void rgb_to_gray ( fz_context * ctx , const fz_colorspace * cs , const float * rgb , float * gray ) {\n float r = rgb [ 0 ] ;\n float g = rgb [ 1 ] ;\n float b = rgb [ 2 ] ;\n gray [ 0 ] = r * 0.3f + g * 0.59f + b * 0.11f ;\n }"}
{"idx": 8584, "target": 0, "func": "static int ide_nop_int ( IDEDMA * dma , int x ) {\n return 0 ;\n }"}
{"idx": 8585, "target": 0, "func": "static Datum ExecEvalBooleanTest ( GenericExprState * bstate , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n BooleanTest * btest = ( BooleanTest * ) bstate -> xprstate . expr ;\n Datum result ;\n result = ExecEvalExpr ( bstate -> arg , econtext , isNull , isDone ) ;\n if ( isDone && * isDone == ExprEndResult ) return result ;\n switch ( btest -> booltesttype ) {\n case IS_TRUE : if ( * isNull ) {\n * isNull = false ;\n return BoolGetDatum ( false ) ;\n }\n else if ( DatumGetBool ( result ) ) return BoolGetDatum ( true ) ;\n else return BoolGetDatum ( false ) ;\n case IS_NOT_TRUE : if ( * isNull ) {\n * isNull = false ;\n return BoolGetDatum ( true ) ;\n }\n else if ( DatumGetBool ( result ) ) return BoolGetDatum ( false ) ;\n else return BoolGetDatum ( true ) ;\n case IS_FALSE : if ( * isNull ) {\n * isNull = false ;\n return BoolGetDatum ( false ) ;\n }\n else if ( DatumGetBool ( result ) ) return BoolGetDatum ( false ) ;\n else return BoolGetDatum ( true ) ;\n case IS_NOT_FALSE : if ( * isNull ) {\n * isNull = false ;\n return BoolGetDatum ( true ) ;\n }\n else if ( DatumGetBool ( result ) ) return BoolGetDatum ( true ) ;\n else return BoolGetDatum ( false ) ;\n case IS_UNKNOWN : if ( * isNull ) {\n * isNull = false ;\n return BoolGetDatum ( true ) ;\n }\n else return BoolGetDatum ( false ) ;\n case IS_NOT_UNKNOWN : if ( * isNull ) {\n * isNull = false ;\n return BoolGetDatum ( false ) ;\n }\n else return BoolGetDatum ( true ) ;\n default : elog ( ERROR , \"unrecognized booltesttype: %d\" , ( int ) btest -> booltesttype ) ;\n return ( Datum ) 0 ;\n }\n }"}
{"idx": 8586, "target": 1, "func": "void vp9_quantize_fp_c ( const int16_t * coeff_ptr , intptr_t count , int skip_block , const int16_t * zbin_ptr , const int16_t * round_ptr , const int16_t * quant_ptr , const int16_t * quant_shift_ptr , int16_t * qcoeff_ptr , int16_t * dqcoeff_ptr , const int16_t * dequant_ptr , int zbin_oq_value , uint16_t * eob_ptr , const int16_t * scan , const int16_t * iscan ) {\n int i , eob = - 1 ;\n ( void ) zbin_ptr ;\n ( void ) quant_shift_ptr ;\n ( void ) zbin_oq_value ;\n ( void ) iscan ;\n vpx_memset ( qcoeff_ptr , 0 , count * sizeof ( int16_t ) ) ;\n vpx_memset ( dqcoeff_ptr , 0 , count * sizeof ( int16_t ) ) ;\n if ( ! skip_block ) {\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n const int rc = scan [ i ] ;\n const int coeff = coeff_ptr [ rc ] ;\n const int coeff_sign = ( coeff >> 31 ) ;\n const int abs_coeff = ( coeff ^ coeff_sign ) - coeff_sign ;\n int tmp = clamp ( abs_coeff + round_ptr [ rc != 0 ] , INT16_MIN , INT16_MAX ) ;\n tmp = ( tmp * quant_ptr [ rc != 0 ] ) >> 16 ;\n qcoeff_ptr [ rc ] = ( tmp ^ coeff_sign ) - coeff_sign ;\n dqcoeff_ptr [ rc ] = qcoeff_ptr [ rc ] * dequant_ptr [ rc != 0 ] ;\n if ( tmp ) eob = i ;\n }\n }\n * eob_ptr = eob + 1 ;\n }"}
{"idx": 8587, "target": 0, "func": "BN_ULONG bn_div_words ( BN_ULONG h , BN_ULONG l , BN_ULONG d ) {\n BN_ULONG dh , dl , q , ret = 0 , th , tl , t ;\n int i , count = 2 ;\n if ( d == 0 ) return ( BN_MASK2 ) ;\n i = BN_num_bits_word ( d ) ;\n assert ( ( i == BN_BITS2 ) || ( h <= ( BN_ULONG ) 1 << i ) ) ;\n i = BN_BITS2 - i ;\n if ( h >= d ) h -= d ;\n if ( i ) {\n d <<= i ;\n h = ( h << i ) | ( l >> ( BN_BITS2 - i ) ) ;\n l <<= i ;\n }\n dh = ( d & BN_MASK2h ) >> BN_BITS4 ;\n dl = ( d & BN_MASK2l ) ;\n for ( ;\n ;\n ) {\n if ( ( h >> BN_BITS4 ) == dh ) q = BN_MASK2l ;\n else q = h / dh ;\n th = q * dh ;\n tl = dl * q ;\n for ( ;\n ;\n ) {\n t = h - th ;\n if ( ( t & BN_MASK2h ) || ( ( tl ) <= ( ( t << BN_BITS4 ) | ( ( l & BN_MASK2h ) >> BN_BITS4 ) ) ) ) break ;\n q -- ;\n th -= dh ;\n tl -= dl ;\n }\n t = ( tl >> BN_BITS4 ) ;\n tl = ( tl << BN_BITS4 ) & BN_MASK2h ;\n th += t ;\n if ( l < tl ) th ++ ;\n l -= tl ;\n if ( h < th ) {\n h += d ;\n q -- ;\n }\n h -= th ;\n if ( -- count == 0 ) break ;\n ret = q << BN_BITS4 ;\n h = ( ( h << BN_BITS4 ) | ( l >> BN_BITS4 ) ) & BN_MASK2 ;\n l = ( l & BN_MASK2l ) << BN_BITS4 ;\n }\n ret |= q ;\n return ( ret ) ;\n }"}
{"idx": 8588, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( HttpsEngagementPageLoadMetricsBrowserTest , SameOrigin_Http ) {\n StartHttpServer ( ) ;\n NavigateTwiceInTabAndClose ( http_test_server_ -> GetURL ( \"/simple.html\" ) , http_test_server_ -> GetURL ( \"/empty.html\" ) ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpEngagementHistogram , 2 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementHistogram , 0 ) ;\n FakeUserMetricsUpload ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementSessionPercentage , 1 ) ;\n int32_t ratio_bucket = histogram_tester_ . GetAllSamples ( internal : : kHttpsEngagementSessionPercentage ) [ 0 ] . min ;\n EXPECT_EQ ( 0 , ratio_bucket ) ;\n }"}
{"idx": 8589, "target": 0, "func": "int dtls1_send_hello_request ( SSL * s ) {\n unsigned char * p ;\n if ( s -> state == SSL3_ST_SW_HELLO_REQ_A ) {\n p = ( unsigned char * ) s -> init_buf -> data ;\n p = dtls1_set_message_header ( s , p , SSL3_MT_HELLO_REQUEST , 0 , 0 , 0 ) ;\n s -> state = SSL3_ST_SW_HELLO_REQ_B ;\n s -> init_num = DTLS1_HM_HEADER_LENGTH ;\n s -> init_off = 0 ;\n }\n return ( dtls1_do_write ( s , SSL3_RT_HANDSHAKE ) ) ;\n }"}
{"idx": 8590, "target": 0, "func": "int dissect_ber_choice ( asn1_ctx_t * actx , proto_tree * parent_tree , tvbuff_t * tvb , int offset , const ber_choice_t * choice , gint hf_id , gint ett_id , gint * branch_taken ) {\n gint8 ber_class ;\n gboolean pc , ind , imp_tag = FALSE ;\n gint32 tag ;\n guint32 len ;\n proto_tree * tree = parent_tree ;\n proto_item * item = NULL ;\n int end_offset , start_offset , count ;\n int hoffset = offset ;\n gint length ;\n tvbuff_t * next_tvb ;\n gboolean first_pass ;\n header_field_info * hfinfo ;\n const ber_choice_t * ch ;\n # ifdef DEBUG_BER_CHOICE {\n const char * name ;\n if ( hf_id >= 0 ) {\n hfinfo = proto_registrar_get_nth ( hf_id ) ;\n name = hfinfo -> name ;\n }\n else {\n name = \"unnamed\" ;\n }\n if ( tvb_reported_length_remaining ( tvb , offset ) > 3 ) {\n printf ( \"CHOICE dissect_ber_choice(%s) entered offset:%d len:%d %02x:%02x:%02x\\n\" , name , offset , tvb_reported_length_remaining ( tvb , offset ) , tvb_get_guint8 ( tvb , offset ) , tvb_get_guint8 ( tvb , offset + 1 ) , tvb_get_guint8 ( tvb , offset + 2 ) ) ;\n }\n else {\n printf ( \"CHOICE dissect_ber_choice(%s) entered len:%d\\n\" , name , tvb_reported_length_remaining ( tvb , offset ) ) ;\n }\n }\n # endif start_offset = offset ;\n if ( branch_taken ) {\n * branch_taken = - 1 ;\n }\n if ( tvb_reported_length_remaining ( tvb , offset ) == 0 ) {\n item = proto_tree_add_string_format_value ( parent_tree , hf_ber_error , tvb , offset , 0 , \"empty_choice\" , \"Empty choice was found\" ) ;\n expert_add_info ( actx -> pinfo , item , & ei_ber_empty_choice ) ;\n return offset ;\n }\n offset = get_ber_identifier ( tvb , offset , & ber_class , & pc , & tag ) ;\n offset = get_ber_length ( tvb , offset , & len , & ind ) ;\n end_offset = offset + len ;\n if ( hf_id >= 0 ) {\n hfinfo = proto_registrar_get_nth ( hf_id ) ;\n switch ( hfinfo -> type ) {\n case FT_UINT8 : case FT_UINT16 : case FT_UINT24 : case FT_UINT32 : break ;\n default : proto_tree_add_expert_format ( tree , actx -> pinfo , & ei_hf_field_not_integer_type , tvb , offset , len , \"dissect_ber_choice(): frame:%u offset:%d Was passed an HF field that was not integer type : %s\" , actx -> pinfo -> fd -> num , offset , hfinfo -> abbrev ) ;\n return end_offset ;\n }\n }\n ch = choice ;\n first_pass = TRUE ;\n while ( ch -> func || first_pass ) {\n if ( branch_taken ) {\n ( * branch_taken ) ++ ;\n }\n if ( ! ch -> func ) {\n first_pass = FALSE ;\n ch = choice ;\n if ( branch_taken ) {\n * branch_taken = - 1 ;\n }\n continue ;\n }\n # ifdef DEBUG_BER_CHOICE printf ( \"CHOICE testing potential subdissector class[%p]:%d:(expected)%d tag:%d:(expected)%d flags:%d\\n\" , ch , ber_class , ch -> ber_class , tag , ch -> tag , ch -> flags ) ;\n # endif if ( ( first_pass && ( ( ( ch -> ber_class == ber_class ) && ( ch -> tag == tag ) ) || ( ( ch -> ber_class == ber_class ) && ( ch -> tag == - 1 ) && ( ch -> flags & BER_FLAGS_NOOWNTAG ) ) ) ) || ( ! first_pass && ( ( ( ch -> ber_class == BER_CLASS_ANY ) && ( ch -> tag == - 1 ) ) ) ) ) {\n if ( ! ( ch -> flags & BER_FLAGS_NOOWNTAG ) ) {\n hoffset = dissect_ber_identifier ( actx -> pinfo , tree , tvb , start_offset , NULL , NULL , NULL ) ;\n hoffset = dissect_ber_length ( actx -> pinfo , tree , tvb , hoffset , NULL , NULL ) ;\n start_offset = hoffset ;\n if ( ind ) {\n length = len - 2 ;\n }\n else {\n length = len ;\n }\n }\n else {\n length = end_offset - hoffset ;\n }\n if ( hf_id >= 0 ) {\n if ( parent_tree ) {\n item = proto_tree_add_uint ( parent_tree , hf_id , tvb , hoffset , end_offset - hoffset , ch -> value ) ;\n tree = proto_item_add_subtree ( item , ett_id ) ;\n }\n }\n # ifdef REMOVED if ( first_pass ) next_tvb = ber_tvb_new_subset_length ( tvb , hoffset , length ) ;\n else next_tvb = tvb ;\n # endif next_tvb = ber_tvb_new_subset_length ( tvb , hoffset , length ) ;\n # ifdef DEBUG_BER_CHOICE {\n const char * name ;\n if ( hf_id >= 0 ) {\n hfinfo = proto_registrar_get_nth ( hf_id ) ;\n name = hfinfo -> name ;\n }\n else {\n name = \"unnamed\" ;\n }\n if ( tvb_reported_length_remaining ( next_tvb , 0 ) > 3 ) {\n printf ( \"CHOICE dissect_ber_choice(%s) calling subdissector start_offset:%d offset:%d len:%d %02x:%02x:%02x\\n\" , name , start_offset , offset , tvb_reported_length_remaining ( next_tvb , 0 ) , tvb_get_guint8 ( next_tvb , 0 ) , tvb_get_guint8 ( next_tvb , 1 ) , tvb_get_guint8 ( next_tvb , 2 ) ) ;\n }\n else {\n printf ( \"CHOICE dissect_ber_choice(%s) calling subdissector len:%d\\n\" , name , tvb_reported_length ( next_tvb ) ) ;\n }\n }\n # endif if ( next_tvb == NULL ) {\n THROW ( ReportedBoundsError ) ;\n }\n imp_tag = FALSE ;\n if ( ( ch -> flags & BER_FLAGS_IMPLTAG ) ) imp_tag = TRUE ;\n count = ch -> func ( imp_tag , next_tvb , 0 , actx , tree , * ch -> p_id ) ;\n # ifdef DEBUG_BER_CHOICE {\n const char * name ;\n if ( hf_id >= 0 ) {\n hfinfo = proto_registrar_get_nth ( hf_id ) ;\n name = hfinfo -> name ;\n }\n else {\n name = \"unnamed\" ;\n }\n printf ( \"CHOICE dissect_ber_choice(%s) subdissector ate %d bytes\\n\" , name , count ) ;\n }\n # endif if ( ( count == 0 ) && ( ( ( ch -> ber_class == ber_class ) && ( ch -> tag == - 1 ) && ( ch -> flags & BER_FLAGS_NOOWNTAG ) ) || ! first_pass ) ) {\n ch ++ ;\n # ifdef DEBUG_BER_CHOICE {\n const char * name ;\n if ( hf_id >= 0 ) {\n hfinfo = proto_registrar_get_nth ( hf_id ) ;\n name = hfinfo -> name ;\n }\n else {\n name = \"unnamed\" ;\n }\n printf ( \"CHOICE dissect_ber_choice(%s) trying again\\n\" , name ) ;\n }\n # endif continue ;\n }\n if ( ! ( ch -> flags & BER_FLAGS_NOOWNTAG ) ) {\n if ( ind ) {\n if ( show_internal_ber_fields ) {\n proto_tree_add_item ( tree , hf_ber_choice_eoc , tvb , end_offset - 2 , 2 , ENC_NA ) ;\n }\n }\n }\n return end_offset ;\n }\n ch ++ ;\n }\n if ( branch_taken ) {\n * branch_taken = - 1 ;\n }\n # ifdef REMOVED item = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset , len , \"missing_choice_field\" , \"This choice field was not found.\" ) ;\n expert_add_info ( actx -> pinfo , item , & ei_ber_choice_not_found ) ;\n return end_offset ;\n # endif return start_offset ;\n }"}
{"idx": 8591, "target": 0, "func": "static int selinux_inode_follow_link ( struct dentry * dentry , struct inode * inode , bool rcu ) {\n const struct cred * cred = current_cred ( ) ;\n struct common_audit_data ad ;\n struct inode_security_struct * isec ;\n u32 sid ;\n validate_creds ( cred ) ;\n ad . type = LSM_AUDIT_DATA_DENTRY ;\n ad . u . dentry = dentry ;\n sid = cred_sid ( cred ) ;\n isec = inode_security_rcu ( inode , rcu ) ;\n if ( IS_ERR ( isec ) ) return PTR_ERR ( isec ) ;\n return avc_has_perm_flags ( sid , isec -> sid , isec -> sclass , FILE__READ , & ad , rcu ? MAY_NOT_BLOCK : 0 ) ;\n }"}
{"idx": 8592, "target": 0, "func": "static const char * debug_ntoa ( u32 address ) {\n static char buf [ 32 ] ;\n u32 a = ntohl ( address ) ;\n evutil_snprintf ( buf , sizeof ( buf ) , \"%d.%d.%d.%d\" , ( int ) ( u8 ) ( ( a >> 24 ) & 0xff ) , ( int ) ( u8 ) ( ( a >> 16 ) & 0xff ) , ( int ) ( u8 ) ( ( a >> 8 ) & 0xff ) , ( int ) ( u8 ) ( ( a ) & 0xff ) ) ;\n return buf ;\n }"}
{"idx": 8593, "target": 0, "func": "bool appendReloptionsArray ( PQExpBuffer buffer , const char * reloptions , const char * prefix , int encoding , bool std_strings ) {\n char * * options ;\n int noptions ;\n int i ;\n if ( ! parsePGArray ( reloptions , & options , & noptions ) ) {\n if ( options ) free ( options ) ;\n return false ;\n }\n for ( i = 0 ;\n i < noptions ;\n i ++ ) {\n char * option = options [ i ] ;\n char * name ;\n char * separator ;\n char * value ;\n name = option ;\n separator = strchr ( option , '=' ) ;\n if ( separator ) {\n * separator = '\\0' ;\n value = separator + 1 ;\n }\n else value = \"\" ;\n if ( i > 0 ) appendPQExpBufferStr ( buffer , \", \" ) ;\n appendPQExpBuffer ( buffer , \"%s%s=\" , prefix , fmtId ( name ) ) ;\n if ( strcmp ( fmtId ( value ) , value ) == 0 ) appendPQExpBufferStr ( buffer , value ) ;\n else appendStringLiteral ( buffer , value , encoding , std_strings ) ;\n }\n if ( options ) free ( options ) ;\n return true ;\n }"}
{"idx": 8594, "target": 0, "func": "SPL_METHOD ( FilesystemIterator , getFlags ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n RETURN_LONG ( intern -> flags & ( SPL_FILE_DIR_KEY_MODE_MASK | SPL_FILE_DIR_CURRENT_MODE_MASK | SPL_FILE_DIR_OTHERS_MASK ) ) ;\n }"}
{"idx": 8595, "target": 1, "func": "static void ucnv_toUnicode_UTF8 ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n UConverter * cnv = args -> converter ;\n const unsigned char * mySource = ( unsigned char * ) args -> source ;\n UChar * myTarget = args -> target ;\n const unsigned char * sourceLimit = ( unsigned char * ) args -> sourceLimit ;\n const UChar * targetLimit = args -> targetLimit ;\n unsigned char * toUBytes = cnv -> toUBytes ;\n UBool isCESU8 = hasCESU8Data ( cnv ) ;\n uint32_t ch , ch2 = 0 ;\n int32_t i , inBytes ;\n if ( cnv -> toUnicodeStatus && myTarget < targetLimit ) {\n inBytes = cnv -> mode ;\n i = cnv -> toULength ;\n cnv -> toULength = 0 ;\n ch = cnv -> toUnicodeStatus ;\n cnv -> toUnicodeStatus = 0 ;\n goto morebytes ;\n }\n while ( mySource < sourceLimit && myTarget < targetLimit ) {\n ch = * ( mySource ++ ) ;\n if ( ch < 0x80 ) {\n * ( myTarget ++ ) = ( UChar ) ch ;\n }\n else {\n toUBytes [ 0 ] = ( char ) ch ;\n inBytes = bytesFromUTF8 [ ch ] ;\n i = 1 ;\n morebytes : while ( i < inBytes ) {\n if ( mySource < sourceLimit ) {\n toUBytes [ i ] = ( char ) ( ch2 = * mySource ) ;\n if ( ! U8_IS_TRAIL ( ch2 ) ) {\n break ;\n }\n ch = ( ch << 6 ) + ch2 ;\n ++ mySource ;\n i ++ ;\n }\n else {\n cnv -> toUnicodeStatus = ch ;\n cnv -> mode = inBytes ;\n cnv -> toULength = ( int8_t ) i ;\n goto donefornow ;\n }\n }\n ch -= offsetsFromUTF8 [ inBytes ] ;\n if ( i == inBytes && ch <= MAXIMUM_UTF && ch >= utf8_minChar32 [ i ] && ( isCESU8 ? i <= 3 : ! U_IS_SURROGATE ( ch ) ) ) {\n if ( ch <= MAXIMUM_UCS2 ) {\n * ( myTarget ++ ) = ( UChar ) ch ;\n }\n else {\n ch -= HALF_BASE ;\n * ( myTarget ++ ) = ( UChar ) ( ( ch >> HALF_SHIFT ) + SURROGATE_HIGH_START ) ;\n ch = ( ch & HALF_MASK ) + SURROGATE_LOW_START ;\n if ( myTarget < targetLimit ) {\n * ( myTarget ++ ) = ( UChar ) ch ;\n }\n else {\n cnv -> UCharErrorBuffer [ 0 ] = ( UChar ) ch ;\n cnv -> UCharErrorBufferLength = 1 ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n }\n else {\n cnv -> toULength = ( int8_t ) i ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n }\n }\n donefornow : if ( mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS ( * err ) ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n args -> target = myTarget ;\n args -> source = ( const char * ) mySource ;\n }"}
{"idx": 8596, "target": 0, "func": "static int autocorr_max ( const int16_t * buf , int offset , int * ccr_max , int pitch_lag , int length , int dir ) {\n int limit , ccr , lag = 0 ;\n int i ;\n pitch_lag = FFMIN ( PITCH_MAX - 3 , pitch_lag ) ;\n if ( dir > 0 ) limit = FFMIN ( FRAME_LEN + PITCH_MAX - offset - length , pitch_lag + 3 ) ;\n else limit = pitch_lag + 3 ;\n for ( i = pitch_lag - 3 ;\n i <= limit ;\n i ++ ) {\n ccr = dot_product ( buf , buf + dir * i , length ) ;\n if ( ccr > * ccr_max ) {\n * ccr_max = ccr ;\n lag = i ;\n }\n }\n return lag ;\n }"}
{"idx": 8597, "target": 0, "func": "static int dissect_h225_SEQUENCE_SIZE_1_256_OF_QOSCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_SEQUENCE_SIZE_1_256_OF_QOSCapability , SEQUENCE_SIZE_1_256_OF_QOSCapability_sequence_of , 1 , 256 , FALSE ) ;\n return offset ;\n }"}
{"idx": 8598, "target": 0, "func": "static void show_psnr ( struct stream_state * stream ) {\n int i ;\n double ovpsnr ;\n if ( ! stream -> psnr_count ) return ;\n fprintf ( stderr , \"Stream %d PSNR (Overall/Avg/Y/U/V)\" , stream -> index ) ;\n ovpsnr = sse_to_psnr ( ( double ) stream -> psnr_samples_total , 255.0 , ( double ) stream -> psnr_sse_total ) ;\n fprintf ( stderr , \" %.3f\" , ovpsnr ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n fprintf ( stderr , \" %.3f\" , stream -> psnr_totals [ i ] / stream -> psnr_count ) ;\n }\n fprintf ( stderr , \"\\n\" ) ;\n }"}
{"idx": 8599, "target": 0, "func": "const char * srtp_get_version_string ( ) {\n return SRTP_VER_STRING ;\n }"}
{"idx": 8600, "target": 0, "func": "void proto_reg_handoff_mpa ( void ) {\n heur_dissector_add ( \"tcp\" , dissect_iwarp_mpa , \"IWARP_MPA over TCP\" , \"iwarp_mpa_tcp\" , proto_iwarp_mpa , HEURISTIC_ENABLE ) ;\n ddp_rdmap_handle = find_dissector_add_dependency ( \"iwarp_ddp_rdmap\" , proto_iwarp_mpa ) ;\n }"}
{"idx": 8601, "target": 0, "func": "struct login_settings * login_settings_read ( pool_t pool , const struct ip_addr * local_ip , const struct ip_addr * remote_ip , const char * local_name , const struct master_service_ssl_settings * * ssl_set_r , void * * * other_settings_r ) {\n struct master_service_settings_input input ;\n const char * error ;\n const struct setting_parser_context * parser ;\n void * const * cache_sets ;\n void * * sets ;\n unsigned int i , count ;\n i_zero ( & input ) ;\n input . roots = login_set_roots ;\n input . module = login_binary -> process_name ;\n input . service = login_binary -> protocol ;\n input . local_name = local_name ;\n if ( local_ip != NULL ) input . local_ip = * local_ip ;\n if ( remote_ip != NULL ) input . remote_ip = * remote_ip ;\n if ( set_cache == NULL ) {\n set_cache = master_service_settings_cache_init ( master_service , input . module , input . service ) ;\n if ( master_service_get_service_count ( master_service ) > 1 ) master_service_settings_cache_init_filter ( set_cache ) ;\n }\n if ( master_service_settings_cache_read ( set_cache , & input , NULL , & parser , & error ) < 0 ) i_fatal ( \"Error reading configuration: %s\" , error ) ;\n cache_sets = master_service_settings_parser_get_others ( master_service , parser ) ;\n for ( count = 0 ;\n input . roots [ count ] != NULL ;\n count ++ ) ;\n i_assert ( cache_sets [ count ] == NULL ) ;\n sets = p_new ( pool , void * , count + 1 ) ;\n for ( i = 0 ;\n i < count ;\n i ++ ) sets [ i ] = login_setting_dup ( pool , input . roots [ i ] , cache_sets [ i ] ) ;\n settings_var_expand ( & login_setting_parser_info , sets [ 0 ] , pool , login_set_var_expand_table ( & input ) ) ;\n * ssl_set_r = login_setting_dup ( pool , & master_service_ssl_setting_parser_info , settings_parser_get_list ( parser ) [ 1 ] ) ;\n * other_settings_r = sets + 1 ;\n return sets [ 0 ] ;\n }"}
{"idx": 8602, "target": 0, "func": "static void spoolss_job_specific_rights ( tvbuff_t * tvb , gint offset , proto_tree * tree , guint32 access ) {\n proto_tree_add_boolean ( tree , hf_job_access_admin , tvb , offset , 4 , access ) ;\n }"}
{"idx": 8603, "target": 0, "func": "void tree_expanded_set ( int tree_type , gboolean value ) {\n g_assert ( tree_type >= 0 && tree_type < num_tree_types ) ;\n if ( value ) tree_is_expanded [ tree_type >> 5 ] |= ( 1U << ( tree_type & 31 ) ) ;\n else tree_is_expanded [ tree_type >> 5 ] &= ~ ( 1U << ( tree_type & 31 ) ) ;\n }"}
{"idx": 8604, "target": 0, "func": "static int dissect_h225_Language ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_Language , Language_sequence_of ) ;\n return offset ;\n }"}
{"idx": 8605, "target": 0, "func": "VALUE ossl_cipher_new ( const EVP_CIPHER * cipher ) {\n VALUE ret ;\n EVP_CIPHER_CTX * ctx ;\n ret = ossl_cipher_alloc ( cCipher ) ;\n AllocCipher ( ret , ctx ) ;\n if ( EVP_CipherInit_ex ( ctx , cipher , NULL , NULL , NULL , - 1 ) != 1 ) ossl_raise ( eCipherError , NULL ) ;\n return ret ;\n }"}
{"idx": 8606, "target": 0, "func": "static void U_CALLCONV T_UConverter_toUnicode_UTF32_LE ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n const unsigned char * mySource = ( unsigned char * ) args -> source ;\n UChar * myTarget = args -> target ;\n const unsigned char * sourceLimit = ( unsigned char * ) args -> sourceLimit ;\n const UChar * targetLimit = args -> targetLimit ;\n unsigned char * toUBytes = args -> converter -> toUBytes ;\n uint32_t ch , i ;\n if ( args -> converter -> toUnicodeStatus && myTarget < targetLimit ) {\n i = args -> converter -> toULength ;\n args -> converter -> toULength = 0 ;\n ch = args -> converter -> toUnicodeStatus - 1 ;\n args -> converter -> toUnicodeStatus = 0 ;\n goto morebytes ;\n }\n while ( mySource < sourceLimit && myTarget < targetLimit ) {\n i = 0 ;\n ch = 0 ;\n morebytes : while ( i < sizeof ( uint32_t ) ) {\n if ( mySource < sourceLimit ) {\n ch |= ( ( uint8_t ) ( * mySource ) ) << ( i * 8 ) ;\n toUBytes [ i ++ ] = ( char ) * ( mySource ++ ) ;\n }\n else {\n args -> converter -> toUnicodeStatus = ch + 1 ;\n args -> converter -> toULength = ( int8_t ) i ;\n goto donefornow ;\n }\n }\n if ( ch <= MAXIMUM_UTF && ! U_IS_SURROGATE ( ch ) ) {\n if ( ch <= MAXIMUM_UCS2 ) {\n * ( myTarget ++ ) = ( UChar ) ch ;\n }\n else {\n * ( myTarget ++ ) = U16_LEAD ( ch ) ;\n ch = U16_TRAIL ( ch ) ;\n if ( myTarget < targetLimit ) {\n * ( myTarget ++ ) = ( UChar ) ch ;\n }\n else {\n args -> converter -> UCharErrorBuffer [ 0 ] = ( UChar ) ch ;\n args -> converter -> UCharErrorBufferLength = 1 ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n }\n else {\n args -> converter -> toULength = ( int8_t ) i ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n }\n donefornow : if ( mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS ( * err ) ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n args -> target = myTarget ;\n args -> source = ( const char * ) mySource ;\n }"}
{"idx": 8607, "target": 0, "func": "int ehci_create_ich9_with_companions ( PCIBus * bus , int slot ) {\n const struct ehci_companions * comp ;\n PCIDevice * ehci , * uhci ;\n BusState * usbbus ;\n const char * name ;\n int i ;\n switch ( slot ) {\n case 0x1d : name = \"ich9-usb-ehci1\" ;\n comp = ich9_1d ;\n break ;\n case 0x1a : name = \"ich9-usb-ehci2\" ;\n comp = ich9_1a ;\n break ;\n default : return - 1 ;\n }\n ehci = pci_create_multifunction ( bus , PCI_DEVFN ( slot , 7 ) , true , name ) ;\n qdev_init_nofail ( & ehci -> qdev ) ;\n usbbus = QLIST_FIRST ( & ehci -> qdev . child_bus ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n uhci = pci_create_multifunction ( bus , PCI_DEVFN ( slot , comp [ i ] . func ) , true , comp [ i ] . name ) ;\n qdev_prop_set_string ( & uhci -> qdev , \"masterbus\" , usbbus -> name ) ;\n qdev_prop_set_uint32 ( & uhci -> qdev , \"firstport\" , comp [ i ] . port ) ;\n qdev_init_nofail ( & uhci -> qdev ) ;\n }\n return 0 ;\n }"}
{"idx": 8608, "target": 0, "func": "static int dissect_h245_H223AnnexCCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_H223AnnexCCapability , H223AnnexCCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 8609, "target": 0, "func": "static int row_call_method ( const char * method , INTERNAL_FUNCTION_PARAMETERS ) {\n return FAILURE ;\n }"}
{"idx": 8610, "target": 0, "func": "void finish_connecting ( connection_t * c ) {\n ifdebug ( CONNECTIONS ) logger ( LOG_INFO , \"Connected to %s (%s)\" , c -> name , c -> hostname ) ;\n c -> last_ping_time = now ;\n send_id ( c ) ;\n }"}
{"idx": 8611, "target": 0, "func": "static int DecodeAsn1BuildValue ( const unsigned char * * d_ptr , uint32_t * val , uint8_t numbytes , uint32_t * errcode ) {\n int i ;\n uint32_t value = 0 ;\n if ( numbytes > 4 ) {\n if ( errcode ) * errcode = ERR_DER_INVALID_SIZE ;\n value = 0xffffffff ;\n * val = value ;\n return - 1 ;\n }\n else {\n for ( i = 0 ;\n i < numbytes ;\n i ++ ) {\n value = value << 8 | ( * d_ptr ) [ 0 ] ;\n ( * d_ptr ) ++ ;\n }\n }\n * val = value ;\n return 0 ;\n }"}
{"idx": 8612, "target": 0, "func": "static inline guint64 get_int64_value ( proto_tree * tree , tvbuff_t * tvb , gint start , guint length , const guint encoding ) {\n guint64 value = get_uint64_value ( tree , tvb , start , length , encoding ) ;\n switch ( length ) {\n case 7 : value = ws_sign_ext64 ( value , 56 ) ;\n break ;\n case 6 : value = ws_sign_ext64 ( value , 48 ) ;\n break ;\n case 5 : value = ws_sign_ext64 ( value , 40 ) ;\n break ;\n case 4 : value = ws_sign_ext64 ( value , 32 ) ;\n break ;\n case 3 : value = ws_sign_ext64 ( value , 24 ) ;\n break ;\n case 2 : value = ws_sign_ext64 ( value , 16 ) ;\n break ;\n case 1 : value = ws_sign_ext64 ( value , 8 ) ;\n break ;\n }\n return value ;\n }"}
{"idx": 8613, "target": 0, "func": "void proto_reg_handoff_cipsafety ( void ) {\n dissector_handle_t cip_class_s_supervisor_handle ;\n cip_class_s_supervisor_handle = create_dissector_handle ( dissect_cip_class_s_supervisor , proto_cip_class_s_supervisor ) ;\n dissector_add_uint ( \"cip.class.iface\" , CI_CLS_SAFETY_SUPERVISOR , cip_class_s_supervisor_handle ) ;\n cip_class_s_validator_handle = create_dissector_handle ( dissect_cip_class_s_validator , proto_cip_class_s_validator ) ;\n dissector_add_uint ( \"cip.class.iface\" , CI_CLS_SAFETY_VALIDATOR , cip_class_s_validator_handle ) ;\n heur_dissector_add ( \"cip.sc\" , dissect_class_svalidator_heur , \"CIP Safety Validator\" , \"s_validator_cip\" , proto_cip_class_s_validator , HEURISTIC_ENABLE ) ;\n dissector_add_for_decode_as ( \"enip.io\" , cipsafety_handle ) ;\n proto_cip = proto_get_id_by_filter_name ( \"cip\" ) ;\n subdissector_class_table = find_dissector_table ( \"cip.class.iface\" ) ;\n }"}
{"idx": 8614, "target": 0, "func": "static void add_rr_to_tree ( proto_tree * rr_tree , tvbuff_t * tvb , int offset , const guchar * name , int namelen , int type , packet_info * pinfo , gboolean is_mdns ) {\n proto_item * ttl_item ;\n gchar * * srv_rr_info ;\n if ( type == T_SRV ) {\n srv_rr_info = g_strsplit ( name , \".\" , 3 ) ;\n proto_tree_add_string ( rr_tree , hf_dns_srv_service , tvb , offset , namelen , srv_rr_info [ 0 ] ) ;\n if ( srv_rr_info [ 1 ] ) {\n proto_tree_add_string ( rr_tree , hf_dns_srv_proto , tvb , offset , namelen , srv_rr_info [ 1 ] ) ;\n if ( srv_rr_info [ 2 ] ) {\n proto_tree_add_string ( rr_tree , hf_dns_srv_name , tvb , offset , namelen , srv_rr_info [ 2 ] ) ;\n }\n }\n g_strfreev ( srv_rr_info ) ;\n }\n else {\n proto_tree_add_string ( rr_tree , hf_dns_rr_name , tvb , offset , namelen , name ) ;\n }\n offset += namelen ;\n proto_tree_add_item ( rr_tree , hf_dns_rr_type , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n offset += 2 ;\n if ( is_mdns ) {\n proto_tree_add_item ( rr_tree , hf_dns_rr_class_mdns , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rr_tree , hf_dns_rr_cache_flush , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n }\n else {\n proto_tree_add_item ( rr_tree , hf_dns_rr_class , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n }\n offset += 2 ;\n ttl_item = proto_tree_add_item ( rr_tree , hf_dns_rr_ttl , tvb , offset , 4 , ENC_BIG_ENDIAN | ENC_TIME_TIMESPEC ) ;\n if ( tvb_get_ntohl ( tvb , offset ) & 0x80000000 ) {\n expert_add_info ( pinfo , ttl_item , & ei_ttl_negative ) ;\n }\n offset += 4 ;\n proto_tree_add_item ( rr_tree , hf_dns_rr_len , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n }"}
{"idx": 8615, "target": 0, "func": "static void dissect_rsvp_error ( proto_item * ti , packet_info * pinfo , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int type ) {\n int offset2 = offset + 4 ;\n int offset3 = 0 ;\n guint8 error_flags ;\n guint8 error_code ;\n guint16 error_val ;\n proto_tree * ti2 = NULL , * rsvp_error_subtree ;\n switch ( type ) {\n case 1 : {\n proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"1 - IPv4\" ) ;\n if ( obj_length > 4 ) {\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_error_error_node_ipv4 , tvb , offset2 , 4 , ENC_BIG_ENDIAN ) ;\n offset3 = offset2 + 4 ;\n }\n break ;\n }\n case 2 : {\n proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"2 - IPv6\" ) ;\n if ( obj_length > 4 ) {\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_error_error_node_ipv6 , tvb , offset2 , 16 , ENC_NA ) ;\n offset3 = offset2 + 16 ;\n }\n break ;\n }\n case 3 : {\n proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"3 - IPv4 IF-ID\" ) ;\n if ( obj_length > 4 ) {\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_error_error_node_ipv4 , tvb , offset2 , 4 , ENC_BIG_ENDIAN ) ;\n offset3 = offset2 + 4 ;\n }\n break ;\n }\n case 4 : {\n proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"4 - IPv6 IF-ID\" ) ;\n if ( obj_length > 16 ) {\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_error_error_node_ipv6 , tvb , offset2 , 16 , ENC_NA ) ;\n offset3 = offset2 + 16 ;\n }\n break ;\n }\n default : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"Unknown (%u)\" , type ) ;\n if ( obj_length > 4 ) {\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_error_data , tvb , offset2 , obj_length - 4 , ENC_NA ) ;\n }\n return ;\n }\n if ( obj_length > 4 ) {\n error_flags = tvb_get_guint8 ( tvb , offset3 ) ;\n ti2 = proto_tree_add_item ( rsvp_object_tree , hf_rsvp_error_flags , tvb , offset3 , 1 , ENC_BIG_ENDIAN ) ;\n rsvp_error_subtree = proto_item_add_subtree ( ti2 , TREE ( TT_ERROR_FLAGS ) ) ;\n proto_tree_add_item ( rsvp_error_subtree , hf_rsvp_error_flags_path_state_removed , tvb , offset3 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_error_subtree , hf_rsvp_error_flags_not_guilty , tvb , offset3 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_error_subtree , hf_rsvp_error_flags_in_place , tvb , offset3 , 1 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti2 , \" %s %s %s\" , ( error_flags & ( 1U << 2 ) ) ? \"Path-State-Removed\" : \"\" , ( error_flags & ( 1U << 1 ) ) ? \"NotGuilty\" : \"\" , ( error_flags & ( 1U << 0 ) ) ? \"InPlace\" : \"\" ) ;\n error_code = tvb_get_guint8 ( tvb , offset3 + 1 ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_error_error_code , tvb , offset3 + 1 , 1 , ENC_BIG_ENDIAN ) ;\n error_val = dissect_rsvp_error_value ( rsvp_object_tree , tvb , offset3 + 2 , error_code ) ;\n switch ( type ) {\n case 1 : proto_item_set_text ( ti , \"ERROR: IPv4, Error code: %s, Value: %d, Error Node: %s\" , val_to_str_ext ( error_code , & rsvp_error_codes_ext , \"Unknown (%d)\" ) , error_val , tvb_ip_to_str ( tvb , offset2 ) ) ;\n break ;\n case 3 : proto_item_set_text ( ti , \"ERROR: IPv4 IF-ID, Error code: %s, Value: %d, Control Node: %s. \" , val_to_str_ext ( error_code , & rsvp_error_codes_ext , \"Unknown (%d)\" ) , error_val , tvb_ip_to_str ( tvb , offset2 ) ) ;\n dissect_rsvp_ifid_tlv ( ti , pinfo , rsvp_object_tree , tvb , offset + 12 , obj_length - 12 , TREE ( TT_ERROR_SUBOBJ ) ) ;\n break ;\n }\n }\n }"}
{"idx": 8616, "target": 0, "func": "static void dissect_zcl_pwr_prof_pwrprofstatersp ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree * sub_tree = NULL ;\n guint i ;\n guint8 power_profile_count ;\n power_profile_count = MIN ( tvb_get_guint8 ( tvb , * offset ) , ZBEE_ZCL_PWR_PROF_NUM_PWR_PROF_ETT ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_pwr_prof_count , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n for ( i = 0 ;\n i < power_profile_count ;\n i ++ ) {\n sub_tree = proto_tree_add_subtree_format ( tree , tvb , * offset , 1 , ett_zbee_zcl_pwr_prof_pwrprofiles [ i ] , NULL , \"Power Profile #%u\" , i ) ;\n dissect_zcl_power_profile ( tvb , sub_tree , offset ) ;\n }\n }"}
{"idx": 8617, "target": 0, "func": "static void vga_draw_cursor_line ( uint8_t * d1 , const uint8_t * src1 , int poffset , int w , unsigned int color0 , unsigned int color1 , unsigned int color_xor ) {\n const uint8_t * plane0 , * plane1 ;\n int x , b0 , b1 ;\n uint8_t * d ;\n d = d1 ;\n plane0 = src1 ;\n plane1 = src1 + poffset ;\n for ( x = 0 ;\n x < w ;\n x ++ ) {\n b0 = ( plane0 [ x >> 3 ] >> ( 7 - ( x & 7 ) ) ) & 1 ;\n b1 = ( plane1 [ x >> 3 ] >> ( 7 - ( x & 7 ) ) ) & 1 ;\n switch ( b0 | ( b1 << 1 ) ) {\n case 0 : break ;\n case 1 : ( ( uint32_t * ) d ) [ 0 ] ^= color_xor ;\n break ;\n case 2 : ( ( uint32_t * ) d ) [ 0 ] = color0 ;\n break ;\n case 3 : ( ( uint32_t * ) d ) [ 0 ] = color1 ;\n break ;\n }\n d += 4 ;\n }\n }"}
{"idx": 8618, "target": 0, "func": "static void matroska_execute_seekhead ( MatroskaDemuxContext * matroska ) {\n EbmlList * seekhead_list = & matroska -> seekhead ;\n int64_t before_pos = avio_tell ( matroska -> ctx -> pb ) ;\n int i ;\n if ( ! matroska -> ctx -> pb -> seekable || ( matroska -> ctx -> flags & AVFMT_FLAG_IGNIDX ) ) return ;\n for ( i = 0 ;\n i < seekhead_list -> nb_elem ;\n i ++ ) {\n MatroskaSeekhead * seekhead = seekhead_list -> elem ;\n if ( seekhead [ i ] . pos <= before_pos ) continue ;\n if ( seekhead [ i ] . id == MATROSKA_ID_CUES ) {\n matroska -> cues_parsing_deferred = 1 ;\n continue ;\n }\n if ( matroska_parse_seekhead_entry ( matroska , i ) < 0 ) break ;\n }\n }"}
{"idx": 8619, "target": 0, "func": "static int SpoolssGetPrinterData_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ;\n char * value_name ;\n proto_item * hidden_item ;\n hidden_item = proto_tree_add_uint ( tree , hf_printerdata , tvb , offset , 0 , 1 ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , NULL , NULL , FALSE , FALSE ) ;\n value_name = NULL ;\n offset = dissect_ndr_cvstring ( tvb , offset , pinfo , tree , di , drep , sizeof ( guint16 ) , hf_printerdata_value , TRUE , value_name ? NULL : & value_name ) ;\n if ( ! pinfo -> fd -> flags . visited ) {\n if ( ! dcv -> se_data ) {\n if ( value_name ) {\n dcv -> se_data = wmem_strdup ( wmem_file_scope ( ) , value_name ) ;\n }\n }\n }\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , value_name ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_offered , NULL ) ;\n return offset ;\n }"}
{"idx": 8620, "target": 0, "func": "static int sort_record_index ( MI_SORT_PARAM * sort_param , MI_INFO * info , MI_KEYDEF * keyinfo , my_off_t page , uchar * buff , uint sort_key , File new_file , my_bool update_index ) {\n uint nod_flag , used_length , key_length ;\n uchar * temp_buff , * keypos , * endpos ;\n my_off_t next_page , rec_pos ;\n uchar lastkey [ MI_MAX_KEY_BUFF ] ;\n char llbuff [ 22 ] ;\n SORT_INFO * sort_info = sort_param -> sort_info ;\n MI_CHECK * param = sort_info -> param ;\n DBUG_ENTER ( \"sort_record_index\" ) ;\n nod_flag = mi_test_if_nod ( buff ) ;\n temp_buff = 0 ;\n if ( nod_flag ) {\n if ( ! ( temp_buff = ( uchar * ) my_alloca ( ( uint ) keyinfo -> block_length ) ) ) {\n mi_check_print_error ( param , \"Not Enough memory\" ) ;\n DBUG_RETURN ( - 1 ) ;\n }\n }\n used_length = mi_getint ( buff ) ;\n keypos = buff + 2 + nod_flag ;\n endpos = buff + used_length ;\n for ( ;\n ;\n ) {\n if ( nod_flag ) {\n next_page = _mi_kpos ( nod_flag , keypos ) ;\n if ( my_pread ( info -> s -> kfile , ( uchar * ) temp_buff , ( uint ) keyinfo -> block_length , next_page , MYF ( MY_NABP + MY_WME ) ) ) {\n mi_check_print_error ( param , \"Can't read keys from filepos: %s\" , llstr ( next_page , llbuff ) ) ;\n goto err ;\n }\n if ( sort_record_index ( sort_param , info , keyinfo , next_page , temp_buff , sort_key , new_file , update_index ) ) goto err ;\n }\n if ( keypos >= endpos || ( key_length = ( * keyinfo -> get_key ) ( keyinfo , nod_flag , & keypos , lastkey ) ) == 0 ) break ;\n rec_pos = _mi_dpos ( info , 0 , lastkey + key_length ) ;\n if ( ( * info -> s -> read_rnd ) ( info , sort_param -> record , rec_pos , 0 ) ) {\n mi_check_print_error ( param , \"%d when reading datafile\" , my_errno ) ;\n goto err ;\n }\n if ( rec_pos != sort_param -> filepos && update_index ) {\n _mi_dpointer ( info , keypos - nod_flag - info -> s -> rec_reflength , sort_param -> filepos ) ;\n if ( movepoint ( info , sort_param -> record , rec_pos , sort_param -> filepos , sort_key ) ) {\n mi_check_print_error ( param , \"%d when updating key-pointers\" , my_errno ) ;\n goto err ;\n }\n }\n if ( sort_write_record ( sort_param ) ) goto err ;\n }\n bzero ( ( uchar * ) buff + used_length , keyinfo -> block_length - used_length ) ;\n if ( my_pwrite ( info -> s -> kfile , ( uchar * ) buff , ( uint ) keyinfo -> block_length , page , param -> myf_rw ) ) {\n mi_check_print_error ( param , \"%d when updating keyblock\" , my_errno ) ;\n goto err ;\n }\n if ( temp_buff ) my_afree ( ( uchar * ) temp_buff ) ;\n DBUG_RETURN ( 0 ) ;\n err : if ( temp_buff ) my_afree ( ( uchar * ) temp_buff ) ;\n DBUG_RETURN ( 1 ) ;\n }"}
{"idx": 8621, "target": 0, "func": "static bool cache_thread ( ) {\n mysql_mutex_assert_owner ( & LOCK_thread_count ) ;\n if ( cached_thread_count < thread_cache_size && ! abort_loop && ! kill_cached_threads ) {\n DBUG_PRINT ( \"info\" , ( \"Adding thread to cache\" ) ) ;\n cached_thread_count ++ ;\n # ifdef HAVE_PSI_INTERFACE if ( likely ( PSI_server != NULL ) ) PSI_server -> delete_current_thread ( ) ;\n # endif while ( ! abort_loop && ! wake_thread && ! kill_cached_threads ) mysql_cond_wait ( & COND_thread_cache , & LOCK_thread_count ) ;\n cached_thread_count -- ;\n if ( kill_cached_threads ) mysql_cond_signal ( & COND_flush_thread_cache ) ;\n if ( wake_thread ) {\n THD * thd ;\n wake_thread -- ;\n thd = thread_cache . get ( ) ;\n thd -> thread_stack = ( char * ) & thd ;\n ( void ) thd -> store_globals ( ) ;\n # ifdef HAVE_PSI_INTERFACE if ( likely ( PSI_server != NULL ) ) {\n PSI_thread * psi = PSI_server -> new_thread ( key_thread_one_connection , thd , thd -> thread_id ) ;\n if ( likely ( psi != NULL ) ) PSI_server -> set_thread ( psi ) ;\n }\n # endif thd -> mysys_var -> abort = 0 ;\n thd -> thr_create_utime = microsecond_interval_timer ( ) ;\n thd -> start_utime = thd -> thr_create_utime ;\n threads . append ( thd ) ;\n return ( 1 ) ;\n }\n }\n return ( 0 ) ;\n }"}
{"idx": 8622, "target": 0, "func": "static void fast_cmyk_to_bgr ( fz_context * ctx , fz_pixmap * dst , fz_pixmap * src , fz_colorspace * prf , const fz_default_colorspaces * default_cs , const fz_color_params * color_params , int copy_spots ) {\n unsigned char * s = src -> samples ;\n unsigned char * d = dst -> samples ;\n size_t w = src -> w ;\n int h = src -> h ;\n int sn = src -> n ;\n int ss = src -> s ;\n int sa = src -> alpha ;\n int dn = dst -> n ;\n int ds = dst -> s ;\n int da = dst -> alpha ;\n ptrdiff_t d_line_inc = dst -> stride - w * dn ;\n ptrdiff_t s_line_inc = src -> stride - w * sn ;\n unsigned int C , M , Y , K ;\n unsigned char r , g , b ;\n if ( ( copy_spots && ss != ds ) || ( ! da && sa ) ) {\n assert ( \"This should never happen\" == NULL ) ;\n fz_throw ( ctx , FZ_ERROR_GENERIC , \"Cannot convert between incompatible pixmaps\" ) ;\n }\n if ( ( int ) w < 0 || h < 0 ) return ;\n C = 0 ;\n M = 0 ;\n Y = 0 ;\n K = 0 ;\n r = 255 ;\n g = 255 ;\n b = 255 ;\n if ( d_line_inc == 0 && s_line_inc == 0 ) {\n w *= h ;\n h = 1 ;\n }\n if ( ss == 0 && ds == 0 ) {\n if ( da ) {\n if ( sa ) {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n cached_cmyk_conv ( & r , & g , & b , & C , & M , & Y , & K , s [ 0 ] , s [ 1 ] , s [ 2 ] , s [ 3 ] ) ;\n d [ 0 ] = b ;\n d [ 1 ] = g ;\n d [ 2 ] = r ;\n d [ 3 ] = s [ 4 ] ;\n s += 5 ;\n d += 4 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n else {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n cached_cmyk_conv ( & r , & g , & b , & C , & M , & Y , & K , s [ 0 ] , s [ 1 ] , s [ 2 ] , s [ 3 ] ) ;\n d [ 0 ] = b ;\n d [ 1 ] = g ;\n d [ 2 ] = r ;\n d [ 3 ] = 255 ;\n s += 4 ;\n d += 4 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n }\n else {\n assert ( src -> alpha == 0 ) ;\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n cached_cmyk_conv ( & r , & g , & b , & C , & M , & Y , & K , s [ 0 ] , s [ 1 ] , s [ 2 ] , s [ 3 ] ) ;\n d [ 0 ] = b ;\n d [ 1 ] = g ;\n d [ 2 ] = r ;\n s += 4 ;\n d += 3 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n }\n else if ( copy_spots ) {\n while ( h -- ) {\n int i ;\n size_t ww = w ;\n while ( ww -- ) {\n cached_cmyk_conv ( & r , & g , & b , & C , & M , & Y , & K , s [ 0 ] , s [ 1 ] , s [ 2 ] , s [ 3 ] ) ;\n d [ 0 ] = b ;\n d [ 1 ] = g ;\n d [ 2 ] = r ;\n s += 4 ;\n d += 3 ;\n for ( i = ss ;\n i > 0 ;\n i -- ) * d ++ = * s ++ ;\n if ( da ) * d ++ = sa ? * s ++ : 255 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n else {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n cached_cmyk_conv ( & r , & g , & b , & C , & M , & Y , & K , s [ 0 ] , s [ 1 ] , s [ 2 ] , s [ 3 ] ) ;\n d [ 0 ] = b ;\n d [ 1 ] = g ;\n d [ 2 ] = r ;\n s += sn ;\n d += dn ;\n if ( da ) d [ - 1 ] = sa ? s [ - 1 ] : 255 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n }"}
{"idx": 8623, "target": 0, "func": "static void desegment_iax ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * iax2_tree , proto_tree * tree , gboolean video , iax_packet_data * iax_packet ) {\n iax_call_data * iax_call = iax_packet -> call_data ;\n iax_call_dirdata * dirdata ;\n gpointer value = NULL ;\n guint32 frag_offset = 0 ;\n fragment_head * fd_head ;\n gboolean must_desegment = FALSE ;\n DISSECTOR_ASSERT ( iax_call ) ;\n pinfo -> can_desegment = 2 ;\n pinfo -> desegment_offset = 0 ;\n pinfo -> desegment_len = 0 ;\n # ifdef DEBUG_DESEGMENT g_debug ( \"dissecting packet %u\" , pinfo -> fd -> num ) ;\n # endif dirdata = & ( iax_call -> dirdata [ ! ! ( iax_packet -> reversed ) ] ) ;\n if ( ( ! pinfo -> fd -> flags . visited && ( dirdata -> current_frag_bytes > 0 ) ) || ( ( value = g_hash_table_lookup ( iax_fid_table , GUINT_TO_POINTER ( pinfo -> fd -> num ) ) ) != NULL ) ) {\n guint32 fid ;\n guint32 frag_len = tvb_reported_length ( tvb ) ;\n gboolean complete ;\n # ifdef DEBUG_DESEGMENT g_debug ( \"visited: %i;\n c_f_b: %u;\n hash: %u->%u\" , pinfo -> fd -> flags . visited ? 1 : 0 , dirdata -> current_frag_bytes , pinfo -> fd -> num , dirdata -> current_frag_id ) ;\n # endif if ( ! pinfo -> fd -> flags . visited ) {\n guint32 tot_len ;\n fid = dirdata -> current_frag_id ;\n tot_len = dirdata -> current_frag_minlen ;\n DISSECTOR_ASSERT ( g_hash_table_lookup ( iax_fid_table , GUINT_TO_POINTER ( pinfo -> fd -> num ) ) == NULL ) ;\n g_hash_table_insert ( iax_fid_table , GUINT_TO_POINTER ( pinfo -> fd -> num ) , GUINT_TO_POINTER ( fid ) ) ;\n frag_offset = dirdata -> current_frag_bytes ;\n dirdata -> current_frag_bytes += frag_len ;\n complete = dirdata -> current_frag_bytes > tot_len ;\n # ifdef DEBUG_DESEGMENT g_debug ( \"hash: %u->%u;\n frag_offset: %u;\n c_f_b: %u;\n totlen: %u\" , pinfo -> fd -> num , fid , frag_offset , dirdata -> current_frag_bytes , tot_len ) ;\n # endif }\n else {\n fid = GPOINTER_TO_UINT ( value ) ;\n dirdata -> current_frag_bytes = 0 ;\n complete = FALSE ;\n }\n fd_head = fragment_add ( & iax_reassembly_table , tvb , 0 , pinfo , fid , NULL , frag_offset , frag_len , ! complete ) ;\n if ( fd_head && ( pinfo -> fd -> num == fd_head -> reassembled_in ) ) {\n gint32 old_len ;\n tvbuff_t * next_tvb = tvb_new_chain ( tvb , fd_head -> tvb_data ) ;\n add_new_data_source ( pinfo , next_tvb , \"Reassembled IAX2\" ) ;\n process_iax_pdu ( next_tvb , pinfo , tree , video , iax_packet ) ;\n old_len = ( gint32 ) ( tvb_reported_length ( next_tvb ) - frag_len ) ;\n if ( pinfo -> desegment_len && ( pinfo -> desegment_offset < old_len ) ) {\n fragment_set_partial_reassembly ( & iax_reassembly_table , pinfo , fid , NULL ) ;\n if ( pinfo -> desegment_len == DESEGMENT_ONE_MORE_SEGMENT ) {\n dirdata -> current_frag_minlen = fd_head -> datalen + 1 ;\n }\n else {\n dirdata -> current_frag_minlen = fd_head -> datalen + pinfo -> desegment_len ;\n }\n }\n else {\n proto_item * iax_tree_item , * frag_tree_item ;\n show_fragment_tree ( fd_head , & iax2_fragment_items , tree , pinfo , next_tvb , & frag_tree_item ) ;\n iax_tree_item = proto_item_get_parent ( proto_tree_get_parent ( iax2_tree ) ) ;\n if ( frag_tree_item && iax_tree_item ) proto_tree_move_item ( tree , iax_tree_item , frag_tree_item ) ;\n dirdata -> current_frag_minlen = dirdata -> current_frag_id = dirdata -> current_frag_bytes = 0 ;\n if ( pinfo -> desegment_len ) {\n must_desegment = TRUE ;\n pinfo -> desegment_offset -= old_len ;\n }\n fd_head = NULL ;\n }\n }\n }\n else {\n process_iax_pdu ( tvb , pinfo , tree , video , iax_packet ) ;\n if ( pinfo -> desegment_len ) {\n must_desegment = TRUE ;\n }\n fd_head = NULL ;\n }\n if ( must_desegment ) {\n guint32 fid = pinfo -> fd -> num ;\n guint32 deseg_offset = pinfo -> desegment_offset ;\n guint32 frag_len = tvb_reported_length_remaining ( tvb , deseg_offset ) ;\n dirdata -> current_frag_id = fid ;\n dirdata -> current_frag_bytes = frag_len ;\n if ( pinfo -> desegment_len == DESEGMENT_ONE_MORE_SEGMENT ) {\n dirdata -> current_frag_minlen = frag_len + 1 ;\n }\n else {\n dirdata -> current_frag_minlen = frag_len + pinfo -> desegment_len ;\n }\n fd_head = fragment_add ( & iax_reassembly_table , tvb , deseg_offset , pinfo , fid , NULL , 0 , frag_len , TRUE ) ;\n # ifdef DEBUG_DESEGMENT g_debug ( \"Start offset of undissected bytes: %u;\n \" \"Bytes remaining in this segment: %u;\n min required bytes: %u\\n\" , deseg_offset , frag_len , frag_len + pinfo -> desegment_len ) ;\n # endif }\n if ( fd_head != NULL ) {\n guint32 deseg_offset = pinfo -> desegment_offset ;\n if ( fd_head -> reassembled_in != 0 && ! ( fd_head -> flags & FD_PARTIAL_REASSEMBLY ) ) {\n proto_item * iax_tree_item ;\n iax_tree_item = proto_tree_add_uint ( tree , hf_iax2_reassembled_in , tvb , deseg_offset , tvb_reported_length_remaining ( tvb , deseg_offset ) , fd_head -> reassembled_in ) ;\n PROTO_ITEM_SET_GENERATED ( iax_tree_item ) ;\n }\n else {\n proto_tree_add_item ( tree , hf_iax2_fragment_unfinished , tvb , deseg_offset , - 1 , ENC_NA ) ;\n }\n if ( pinfo -> desegment_offset == 0 ) {\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"IAX2\" ) ;\n col_set_str ( pinfo -> cinfo , COL_INFO , \"[IAX2 segment of a reassembled PDU]\" ) ;\n }\n }\n pinfo -> can_desegment = 0 ;\n pinfo -> desegment_offset = 0 ;\n pinfo -> desegment_len = 0 ;\n }"}
{"idx": 8624, "target": 0, "func": "int TSAIONBytesGet ( TSAIOCallback data ) {\n AIOCallback * pAIO = ( AIOCallback * ) data ;\n return ( int ) pAIO -> aio_result ;\n }"}
{"idx": 8625, "target": 1, "func": "static int find_unused_picture ( MpegEncContext * s , int shared ) {\n int i ;\n if ( shared ) {\n for ( i = s -> picture_range_start ;\n i < s -> picture_range_end ;\n i ++ ) {\n if ( s -> picture [ i ] . f . data [ 0 ] == NULL && s -> picture [ i ] . f . type == 0 ) return i ;\n }\n }\n else {\n for ( i = s -> picture_range_start ;\n i < s -> picture_range_end ;\n i ++ ) {\n if ( pic_is_unused ( s , & s -> picture [ i ] ) && s -> picture [ i ] . f . type != 0 ) return i ;\n }\n for ( i = s -> picture_range_start ;\n i < s -> picture_range_end ;\n i ++ ) {\n if ( pic_is_unused ( s , & s -> picture [ i ] ) ) return i ;\n }\n }\n return AVERROR_INVALIDDATA ;\n }"}
{"idx": 8626, "target": 0, "func": "static int dissect_h245_EncryptionUpdateDirection ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_EncryptionUpdateDirection , EncryptionUpdateDirection_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 8627, "target": 0, "func": "static void dequant_lsp16r ( GetBitContext * gb , double * i_lsps , const double * old , double * a1 , double * a2 , int q_mode ) {\n static const uint16_t vec_sizes [ 3 ] = {\n 128 , 128 , 128 }\n ;\n static const double mul_lsf [ 3 ] = {\n 1.2232979501e-3 , 1.4062241527e-3 , 1.6114744851e-3 }\n ;\n static const double base_lsf [ 3 ] = {\n M_PI * - 5.5830e-2 , M_PI * - 5.2908e-2 , M_PI * - 5.4776e-2 }\n ;\n const float ( * ipol_tab ) [ 2 ] [ 16 ] = q_mode ? wmavoice_lsp16_intercoeff_b : wmavoice_lsp16_intercoeff_a ;\n uint16_t interpol , v [ 3 ] ;\n int n ;\n dequant_lsp16i ( gb , i_lsps ) ;\n interpol = get_bits ( gb , 5 ) ;\n v [ 0 ] = get_bits ( gb , 7 ) ;\n v [ 1 ] = get_bits ( gb , 7 ) ;\n v [ 2 ] = get_bits ( gb , 7 ) ;\n for ( n = 0 ;\n n < 16 ;\n n ++ ) {\n double delta = old [ n ] - i_lsps [ n ] ;\n a1 [ n ] = ipol_tab [ interpol ] [ 0 ] [ n ] * delta + i_lsps [ n ] ;\n a1 [ 16 + n ] = ipol_tab [ interpol ] [ 1 ] [ n ] * delta + i_lsps [ n ] ;\n }\n dequant_lsps ( a2 , 10 , v , vec_sizes , 1 , wmavoice_dq_lsp16r1 , mul_lsf , base_lsf ) ;\n dequant_lsps ( & a2 [ 10 ] , 10 , & v [ 1 ] , & vec_sizes [ 1 ] , 1 , wmavoice_dq_lsp16r2 , & mul_lsf [ 1 ] , & base_lsf [ 1 ] ) ;\n dequant_lsps ( & a2 [ 20 ] , 12 , & v [ 2 ] , & vec_sizes [ 2 ] , 1 , wmavoice_dq_lsp16r3 , & mul_lsf [ 2 ] , & base_lsf [ 2 ] ) ;\n }"}
{"idx": 8628, "target": 0, "func": "void xmlHashScan3 ( xmlHashTablePtr table , const xmlChar * name , const xmlChar * name2 , const xmlChar * name3 , xmlHashScanner f , void * data ) {\n xmlHashScanFull3 ( table , name , name2 , name3 , ( xmlHashScannerFull ) f , data ) ;\n }"}
{"idx": 8629, "target": 0, "func": "static int asf_write_header ( AVFormatContext * s ) {\n ASFContext * asf = s -> priv_data ;\n s -> packet_size = PACKET_SIZE ;\n s -> max_interleave_delta = 0 ;\n asf -> nb_packets = 0 ;\n asf -> index_ptr = av_malloc ( sizeof ( ASFIndex ) * ASF_INDEX_BLOCK ) ;\n if ( ! asf -> index_ptr ) return AVERROR ( ENOMEM ) ;\n asf -> nb_index_memory_alloc = ASF_INDEX_BLOCK ;\n asf -> maximum_packet = 0 ;\n if ( asf_write_header1 ( s , 0 , DATA_HEADER_SIZE ) < 0 ) {\n av_freep ( & asf -> index_ptr ) ;\n return - 1 ;\n }\n avio_flush ( s -> pb ) ;\n asf -> packet_nb_payloads = 0 ;\n asf -> packet_timestamp_start = - 1 ;\n asf -> packet_timestamp_end = - 1 ;\n ffio_init_context ( & asf -> pb , asf -> packet_buf , s -> packet_size , 1 , NULL , NULL , NULL , NULL ) ;\n if ( s -> avoid_negative_ts < 0 ) s -> avoid_negative_ts = 1 ;\n return 0 ;\n }"}
{"idx": 8630, "target": 0, "func": "static PyObject * string_item ( PyStringObject * a , register Py_ssize_t i ) {\n char pchar ;\n PyObject * v ;\n if ( i < 0 || i >= Py_SIZE ( a ) ) {\n PyErr_SetString ( PyExc_IndexError , \"string index out of range\" ) ;\n return NULL ;\n }\n pchar = a -> ob_sval [ i ] ;\n v = ( PyObject * ) characters [ pchar & UCHAR_MAX ] ;\n if ( v == NULL ) v = PyString_FromStringAndSize ( & pchar , 1 ) ;\n else {\n # ifdef COUNT_ALLOCS one_strings ++ ;\n # endif Py_INCREF ( v ) ;\n }\n return v ;\n }"}
{"idx": 8631, "target": 0, "func": "static void test_bug15510 ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n const char * query = \"select 1 from dual where 1/0\" ;\n myheader ( \"test_bug15510\" ) ;\n rc = mysql_query ( mysql , \"set @@sql_mode='ERROR_FOR_DIVISION_BY_ZERO'\" ) ;\n myquery ( rc ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n rc = mysql_stmt_prepare ( stmt , query , strlen ( query ) ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( mysql_warning_count ( mysql ) ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"set @@sql_mode=''\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 8632, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize ) ;\n DECL_PIOCTL ( PGetCacheSize ) ;\n DECL_PIOCTL ( PRemoveCallBack ) ;\n DECL_PIOCTL ( PNewCell ) ;\n DECL_PIOCTL ( PNewAlias ) ;\n DECL_PIOCTL ( PListCells ) ;\n DECL_PIOCTL ( PListAliases ) ;\n DECL_PIOCTL ( PRemoveMount ) ;\n DECL_PIOCTL ( PGetCellStatus ) ;\n DECL_PIOCTL ( PSetCellStatus ) ;\n DECL_PIOCTL ( PFlushVolumeData ) ;\n DECL_PIOCTL ( PFlushAllVolumeData ) ;\n DECL_PIOCTL ( PGetVnodeXStatus ) ;\n DECL_PIOCTL ( PGetVnodeXStatus2 ) ;\n DECL_PIOCTL ( PSetSysName ) ;\n DECL_PIOCTL ( PSetSPrefs ) ;\n DECL_PIOCTL ( PSetSPrefs33 ) ;\n DECL_PIOCTL ( PGetSPrefs ) ;\n DECL_PIOCTL ( PExportAfs ) ;\n DECL_PIOCTL ( PGag ) ;\n DECL_PIOCTL ( PTwiddleRx ) ;\n DECL_PIOCTL ( PGetInitParams ) ;\n DECL_PIOCTL ( PGetRxkcrypt ) ;\n DECL_PIOCTL ( PSetRxkcrypt )"}
{"idx": 8633, "target": 0, "func": "static void pdf_copy_pattern_gstate ( fz_context * ctx , pdf_gstate * gs , const pdf_gstate * old ) {\n gs -> ctm = old -> ctm ;\n pdf_drop_font ( ctx , gs -> text . font ) ;\n gs -> text . font = pdf_keep_font ( ctx , old -> text . font ) ;\n pdf_drop_xobject ( ctx , gs -> softmask ) ;\n gs -> softmask = pdf_keep_xobject ( ctx , old -> softmask ) ;\n fz_drop_stroke_state ( ctx , gs -> stroke_state ) ;\n gs -> stroke_state = fz_keep_stroke_state ( ctx , old -> stroke_state ) ;\n }"}
{"idx": 8634, "target": 0, "func": "static bool gincost_opexpr ( PlannerInfo * root , IndexOptInfo * index , IndexQualInfo * qinfo , GinQualCounts * counts ) {\n int indexcol = qinfo -> indexcol ;\n Oid clause_op = qinfo -> clause_op ;\n Node * operand = qinfo -> other_operand ;\n if ( ! qinfo -> varonleft ) {\n clause_op = get_commutator ( clause_op ) ;\n }\n operand = estimate_expression_value ( root , operand ) ;\n if ( IsA ( operand , RelabelType ) ) operand = ( Node * ) ( ( RelabelType * ) operand ) -> arg ;\n if ( ! IsA ( operand , Const ) ) {\n counts -> exactEntries ++ ;\n counts -> searchEntries ++ ;\n return true ;\n }\n if ( ( ( Const * ) operand ) -> constisnull ) return false ;\n return gincost_pattern ( index , indexcol , clause_op , ( ( Const * ) operand ) -> constvalue , counts ) ;\n }"}
{"idx": 8635, "target": 0, "func": "void check_cluster_versions ( void ) {\n prep_status ( \"Checking cluster versions\" ) ;\n old_cluster . major_version = get_major_server_version ( & old_cluster ) ;\n new_cluster . major_version = get_major_server_version ( & new_cluster ) ;\n if ( GET_MAJOR_VERSION ( old_cluster . major_version ) < 804 ) pg_fatal ( \"This utility can only upgrade from PostgreSQL version 8.4 and later.\\n\" ) ;\n if ( GET_MAJOR_VERSION ( new_cluster . major_version ) != GET_MAJOR_VERSION ( PG_VERSION_NUM ) ) pg_fatal ( \"This utility can only upgrade to PostgreSQL version %s.\\n\" , PG_MAJORVERSION ) ;\n if ( old_cluster . major_version > new_cluster . major_version ) pg_fatal ( \"This utility cannot be used to downgrade to older major PostgreSQL versions.\\n\" ) ;\n get_bin_version ( & old_cluster ) ;\n get_bin_version ( & new_cluster ) ;\n if ( GET_MAJOR_VERSION ( old_cluster . major_version ) != GET_MAJOR_VERSION ( old_cluster . bin_version ) ) pg_fatal ( \"Old cluster data and binary directories are from different major versions.\\n\" ) ;\n if ( GET_MAJOR_VERSION ( new_cluster . major_version ) != GET_MAJOR_VERSION ( new_cluster . bin_version ) ) pg_fatal ( \"New cluster data and binary directories are from different major versions.\\n\" ) ;\n check_ok ( ) ;\n }"}
{"idx": 8636, "target": 0, "func": "static int spl_filesystem_file_read ( spl_filesystem_object * intern , int silent TSRMLS_DC ) {\n char * buf ;\n size_t line_len = 0 ;\n long line_add = ( intern -> u . file . current_line || intern -> u . file . current_zval ) ? 1 : 0 ;\n spl_filesystem_file_free_line ( intern TSRMLS_CC ) ;\n if ( php_stream_eof ( intern -> u . file . stream ) ) {\n if ( ! silent ) {\n zend_throw_exception_ex ( spl_ce_RuntimeException , 0 TSRMLS_CC , \"Cannot read from file %s\" , intern -> file_name ) ;\n }\n return FAILURE ;\n }\n if ( intern -> u . file . max_line_len > 0 ) {\n buf = safe_emalloc ( ( intern -> u . file . max_line_len + 1 ) , sizeof ( char ) , 0 ) ;\n if ( php_stream_get_line ( intern -> u . file . stream , buf , intern -> u . file . max_line_len + 1 , & line_len ) == NULL ) {\n efree ( buf ) ;\n buf = NULL ;\n }\n else {\n buf [ line_len ] = '\\0' ;\n }\n }\n else {\n buf = php_stream_get_line ( intern -> u . file . stream , NULL , 0 , & line_len ) ;\n }\n if ( ! buf ) {\n intern -> u . file . current_line = estrdup ( \"\" ) ;\n intern -> u . file . current_line_len = 0 ;\n }\n else {\n if ( SPL_HAS_FLAG ( intern -> flags , SPL_FILE_OBJECT_DROP_NEW_LINE ) ) {\n line_len = strcspn ( buf , \"\\r\\n\" ) ;\n buf [ line_len ] = '\\0' ;\n }\n intern -> u . file . current_line = buf ;\n intern -> u . file . current_line_len = line_len ;\n }\n intern -> u . file . current_line_num += line_add ;\n return SUCCESS ;\n }"}
{"idx": 8637, "target": 0, "func": "static Gif_Colormap * read_color_table ( int size , Gif_Reader * grr ) {\n Gif_Colormap * gfcm = Gif_NewFullColormap ( size , size ) ;\n Gif_Color * c ;\n if ( ! gfcm ) return 0 ;\n GIF_DEBUG ( ( \"colormap(%d) \" , size ) ) ;\n for ( c = gfcm -> col ;\n size ;\n size -- , c ++ ) {\n c -> gfc_red = gifgetbyte ( grr ) ;\n c -> gfc_green = gifgetbyte ( grr ) ;\n c -> gfc_blue = gifgetbyte ( grr ) ;\n c -> haspixel = 0 ;\n }\n return gfcm ;\n }"}
{"idx": 8638, "target": 1, "func": "static void qcms_transform_module_clut ( struct qcms_modular_transform * transform , float * src , float * dest , size_t length ) {\n size_t i ;\n int xy_len = 1 ;\n int x_len = transform -> grid_size ;\n int len = x_len * x_len ;\n float * r_table = transform -> r_clut ;\n float * g_table = transform -> g_clut ;\n float * b_table = transform -> b_clut ;\n for ( i = 0 ;\n i < length ;\n i ++ ) {\n float device_r = * src ++ ;\n float device_g = * src ++ ;\n float device_b = * src ++ ;\n float linear_r = lut_interp_linear_float ( device_r , transform -> input_clut_table_r , transform -> input_clut_table_length ) ;\n float linear_g = lut_interp_linear_float ( device_g , transform -> input_clut_table_g , transform -> input_clut_table_length ) ;\n float linear_b = lut_interp_linear_float ( device_b , transform -> input_clut_table_b , transform -> input_clut_table_length ) ;\n int x = floor ( linear_r * ( transform -> grid_size - 1 ) ) ;\n int y = floor ( linear_g * ( transform -> grid_size - 1 ) ) ;\n int z = floor ( linear_b * ( transform -> grid_size - 1 ) ) ;\n int x_n = ceil ( linear_r * ( transform -> grid_size - 1 ) ) ;\n int y_n = ceil ( linear_g * ( transform -> grid_size - 1 ) ) ;\n int z_n = ceil ( linear_b * ( transform -> grid_size - 1 ) ) ;\n float x_d = linear_r * ( transform -> grid_size - 1 ) - x ;\n float y_d = linear_g * ( transform -> grid_size - 1 ) - y ;\n float z_d = linear_b * ( transform -> grid_size - 1 ) - z ;\n float r_x1 = lerp ( CLU ( r_table , x , y , z ) , CLU ( r_table , x_n , y , z ) , x_d ) ;\n float r_x2 = lerp ( CLU ( r_table , x , y_n , z ) , CLU ( r_table , x_n , y_n , z ) , x_d ) ;\n float r_y1 = lerp ( r_x1 , r_x2 , y_d ) ;\n float r_x3 = lerp ( CLU ( r_table , x , y , z_n ) , CLU ( r_table , x_n , y , z_n ) , x_d ) ;\n float r_x4 = lerp ( CLU ( r_table , x , y_n , z_n ) , CLU ( r_table , x_n , y_n , z_n ) , x_d ) ;\n float r_y2 = lerp ( r_x3 , r_x4 , y_d ) ;\n float clut_r = lerp ( r_y1 , r_y2 , z_d ) ;\n float g_x1 = lerp ( CLU ( g_table , x , y , z ) , CLU ( g_table , x_n , y , z ) , x_d ) ;\n float g_x2 = lerp ( CLU ( g_table , x , y_n , z ) , CLU ( g_table , x_n , y_n , z ) , x_d ) ;\n float g_y1 = lerp ( g_x1 , g_x2 , y_d ) ;\n float g_x3 = lerp ( CLU ( g_table , x , y , z_n ) , CLU ( g_table , x_n , y , z_n ) , x_d ) ;\n float g_x4 = lerp ( CLU ( g_table , x , y_n , z_n ) , CLU ( g_table , x_n , y_n , z_n ) , x_d ) ;\n float g_y2 = lerp ( g_x3 , g_x4 , y_d ) ;\n float clut_g = lerp ( g_y1 , g_y2 , z_d ) ;\n float b_x1 = lerp ( CLU ( b_table , x , y , z ) , CLU ( b_table , x_n , y , z ) , x_d ) ;\n float b_x2 = lerp ( CLU ( b_table , x , y_n , z ) , CLU ( b_table , x_n , y_n , z ) , x_d ) ;\n float b_y1 = lerp ( b_x1 , b_x2 , y_d ) ;\n float b_x3 = lerp ( CLU ( b_table , x , y , z_n ) , CLU ( b_table , x_n , y , z_n ) , x_d ) ;\n float b_x4 = lerp ( CLU ( b_table , x , y_n , z_n ) , CLU ( b_table , x_n , y_n , z_n ) , x_d ) ;\n float b_y2 = lerp ( b_x3 , b_x4 , y_d ) ;\n float clut_b = lerp ( b_y1 , b_y2 , z_d ) ;\n float pcs_r = lut_interp_linear_float ( clut_r , transform -> output_clut_table_r , transform -> output_clut_table_length ) ;\n float pcs_g = lut_interp_linear_float ( clut_g , transform -> output_clut_table_g , transform -> output_clut_table_length ) ;\n float pcs_b = lut_interp_linear_float ( clut_b , transform -> output_clut_table_b , transform -> output_clut_table_length ) ;\n * dest ++ = clamp_float ( pcs_r ) ;\n * dest ++ = clamp_float ( pcs_g ) ;\n * dest ++ = clamp_float ( pcs_b ) ;\n }\n }"}
{"idx": 8639, "target": 0, "func": "static float spot1_dummy ( double x , double y ) {\n return ( x + y ) / 2 ;\n }"}
{"idx": 8640, "target": 0, "func": "static int opt_show_ ## section ( const char * opt , const char * arg ) {\n mark_section_show_entries ( SECTION_ID_ ## target_section_id , 1 , NULL ) ;\n return 0 ;\n }\n DEFINE_OPT_SHOW_SECTION ( chapters , CHAPTERS ) DEFINE_OPT_SHOW_SECTION ( error , ERROR ) DEFINE_OPT_SHOW_SECTION ( format , FORMAT ) DEFINE_OPT_SHOW_SECTION ( frames , FRAMES ) DEFINE_OPT_SHOW_SECTION ( library_versions , LIBRARY_VERSIONS ) DEFINE_OPT_SHOW_SECTION ( packets , PACKETS ) DEFINE_OPT_SHOW_SECTION ( pixel_formats , PIXEL_FORMATS ) DEFINE_OPT_SHOW_SECTION ( program_version , PROGRAM_VERSION ) DEFINE_OPT_SHOW_SECTION ( streams , STREAMS ) DEFINE_OPT_SHOW_SECTION ( programs , PROGRAMS )"}
{"idx": 8641, "target": 0, "func": "static int dissect_h245_T_specificRequest ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_specificRequest , T_specificRequest_sequence ) ;\n return offset ;\n }"}
{"idx": 8642, "target": 0, "func": "static int pxa2xx_ssp_load ( QEMUFile * f , void * opaque , int version_id ) {\n PXA2xxSSPState * s = ( PXA2xxSSPState * ) opaque ;\n int i ;\n s -> enable = qemu_get_be32 ( f ) ;\n qemu_get_be32s ( f , & s -> sscr [ 0 ] ) ;\n qemu_get_be32s ( f , & s -> sscr [ 1 ] ) ;\n qemu_get_be32s ( f , & s -> sspsp ) ;\n qemu_get_be32s ( f , & s -> ssto ) ;\n qemu_get_be32s ( f , & s -> ssitr ) ;\n qemu_get_be32s ( f , & s -> sssr ) ;\n qemu_get_8s ( f , & s -> sstsa ) ;\n qemu_get_8s ( f , & s -> ssrsa ) ;\n qemu_get_8s ( f , & s -> ssacd ) ;\n s -> rx_level = qemu_get_byte ( f ) ;\n s -> rx_start = 0 ;\n for ( i = 0 ;\n i < s -> rx_level ;\n i ++ ) s -> rx_fifo [ i ] = qemu_get_byte ( f ) ;\n return 0 ;\n }"}
{"idx": 8643, "target": 0, "func": "static int dissect_h225_SEQUENCE_OF_AdmissionConfirm ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_SEQUENCE_OF_AdmissionConfirm , SEQUENCE_OF_AdmissionConfirm_sequence_of ) ;\n return offset ;\n }"}
{"idx": 8644, "target": 0, "func": "static int mxpeg_decode_app ( MXpegDecodeContext * s , const uint8_t * buf_ptr , int buf_size ) {\n int len ;\n if ( buf_size < 2 ) return 0 ;\n len = AV_RB16 ( buf_ptr ) ;\n skip_bits ( & s -> jpg . gb , 8 * FFMIN ( len , buf_size ) ) ;\n return 0 ;\n }"}
{"idx": 8645, "target": 0, "func": "static int SpoolssAddPrinterDriver_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 8646, "target": 0, "func": "MPI mpi_alloc_set_ui ( unsigned long u ) {\n # ifdef M_DEBUG MPI w = mpi_debug_alloc ( 1 , \"alloc_set_ui\" ) ;\n # else MPI w = mpi_alloc ( 1 ) ;\n # endif w -> d [ 0 ] = u ;\n w -> nlimbs = u ? 1 : 0 ;\n w -> sign = 0 ;\n return w ;\n }"}
{"idx": 8647, "target": 0, "func": "static uint32_t e1000e_intmgr_collect_delayed_causes ( E1000ECore * core ) {\n uint32_t res ;\n if ( msix_enabled ( core -> owner ) ) {\n assert ( core -> delayed_causes == 0 ) ;\n return 0 ;\n }\n res = core -> delayed_causes ;\n core -> delayed_causes = 0 ;\n e1000e_intrmgr_stop_delay_timers ( core ) ;\n return res ;\n }"}
{"idx": 8648, "target": 1, "func": "static void sbr_make_f_tablelim ( SpectralBandReplication * sbr ) {\n int k ;\n if ( sbr -> bs_limiter_bands > 0 ) {\n static const float bands_warped [ 3 ] = {\n 1.32715174233856803909f , 1.18509277094158210129f , 1.11987160404675912501f }\n ;\n const float lim_bands_per_octave_warped = bands_warped [ sbr -> bs_limiter_bands - 1 ] ;\n int16_t patch_borders [ 7 ] ;\n uint16_t * in = sbr -> f_tablelim + 1 , * out = sbr -> f_tablelim ;\n patch_borders [ 0 ] = sbr -> kx [ 1 ] ;\n for ( k = 1 ;\n k <= sbr -> num_patches ;\n k ++ ) patch_borders [ k ] = patch_borders [ k - 1 ] + sbr -> patch_num_subbands [ k - 1 ] ;\n memcpy ( sbr -> f_tablelim , sbr -> f_tablelow , ( sbr -> n [ 0 ] + 1 ) * sizeof ( sbr -> f_tablelow [ 0 ] ) ) ;\n if ( sbr -> num_patches > 1 ) memcpy ( sbr -> f_tablelim + sbr -> n [ 0 ] + 1 , patch_borders + 1 , ( sbr -> num_patches - 1 ) * sizeof ( patch_borders [ 0 ] ) ) ;\n qsort ( sbr -> f_tablelim , sbr -> num_patches + sbr -> n [ 0 ] , sizeof ( sbr -> f_tablelim [ 0 ] ) , qsort_comparison_function_int16 ) ;\n sbr -> n_lim = sbr -> n [ 0 ] + sbr -> num_patches - 1 ;\n while ( out < sbr -> f_tablelim + sbr -> n_lim ) {\n if ( * in >= * out * lim_bands_per_octave_warped ) {\n * ++ out = * in ++ ;\n }\n else if ( * in == * out || ! in_table_int16 ( patch_borders , sbr -> num_patches , * in ) ) {\n in ++ ;\n sbr -> n_lim -- ;\n }\n else if ( ! in_table_int16 ( patch_borders , sbr -> num_patches , * out ) ) {\n * out = * in ++ ;\n sbr -> n_lim -- ;\n }\n else {\n * ++ out = * in ++ ;\n }\n }\n }\n else {\n sbr -> f_tablelim [ 0 ] = sbr -> f_tablelow [ 0 ] ;\n sbr -> f_tablelim [ 1 ] = sbr -> f_tablelow [ sbr -> n [ 0 ] ] ;\n sbr -> n_lim = 1 ;\n }\n }"}
{"idx": 8649, "target": 0, "func": "char * Curl_copy_header_value ( const char * header ) {\n const char * start ;\n const char * end ;\n char * value ;\n size_t len ;\n DEBUGASSERT ( header ) ;\n while ( * header && ( * header != ':' ) ) ++ header ;\n if ( * header ) ++ header ;\n start = header ;\n while ( * start && ISSPACE ( * start ) ) start ++ ;\n end = strchr ( start , '\\r' ) ;\n if ( ! end ) end = strchr ( start , '\\n' ) ;\n if ( ! end ) end = strchr ( start , '\\0' ) ;\n if ( ! end ) return NULL ;\n while ( ( end > start ) && ISSPACE ( * end ) ) end -- ;\n len = end - start + 1 ;\n value = malloc ( len + 1 ) ;\n if ( ! value ) return NULL ;\n memcpy ( value , start , len ) ;\n value [ len ] = 0 ;\n return value ;\n }"}
{"idx": 8650, "target": 0, "func": "static int dissect_h225_DisengageReason ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 648 \"./asn1/h225/h225.cnf\" gint32 value ;\n h225_packet_info * h225_pi ;\n h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_DisengageReason , DisengageReason_choice , & value ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> reason = value ;\n }\n return offset ;\n }"}
{"idx": 8651, "target": 1, "func": "TEST ( BuildTime , TimeLooksValid ) {\n # if defined ( DONT_EMBED_BUILD_METADATA ) char build_time [ ] = \"08:00:00\" ;\n # else char build_time [ ] = __TIME__ ;\n # endif EXPECT_EQ ( 8u , strlen ( build_time ) ) ;\n EXPECT_EQ ( ':' , build_time [ 2 ] ) ;\n EXPECT_EQ ( ':' , build_time [ 5 ] ) ;\n }"}
{"idx": 8652, "target": 0, "func": "float4 get_func_rows ( Oid funcid ) {\n HeapTuple tp ;\n float4 result ;\n tp = SearchSysCache1 ( PROCOID , ObjectIdGetDatum ( funcid ) ) ;\n if ( ! HeapTupleIsValid ( tp ) ) elog ( ERROR , \"cache lookup failed for function %u\" , funcid ) ;\n result = ( ( Form_pg_proc ) GETSTRUCT ( tp ) ) -> prorows ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }"}
{"idx": 8653, "target": 0, "func": "static void pxa2xx_i2c_class_init ( ObjectClass * klass , void * data ) {\n DeviceClass * dc = DEVICE_CLASS ( klass ) ;\n SysBusDeviceClass * k = SYS_BUS_DEVICE_CLASS ( klass ) ;\n k -> init = pxa2xx_i2c_initfn ;\n dc -> desc = \"PXA2xx I2C Bus Controller\" ;\n dc -> vmsd = & vmstate_pxa2xx_i2c ;\n dc -> props = pxa2xx_i2c_properties ;\n }"}
{"idx": 8654, "target": 0, "func": "static void cmd_channel_remove ( const char * data ) {\n CHANNEL_SETUP_REC * rec ;\n char * chatnet , * channel ;\n void * free_arg ;\n if ( ! cmd_get_params ( data , & free_arg , 2 , & channel , & chatnet ) ) return ;\n if ( * chatnet == '\\0' || * channel == '\\0' ) cmd_param_error ( CMDERR_NOT_ENOUGH_PARAMS ) ;\n rec = channel_setup_find ( channel , chatnet ) ;\n if ( rec == NULL ) printformat ( NULL , NULL , MSGLEVEL_CLIENTNOTICE , TXT_CHANSETUP_NOT_FOUND , channel , chatnet ) ;\n else {\n printformat ( NULL , NULL , MSGLEVEL_CLIENTNOTICE , TXT_CHANSETUP_REMOVED , channel , chatnet ) ;\n channel_setup_remove ( rec ) ;\n }\n cmd_params_free ( free_arg ) ;\n }"}
{"idx": 8655, "target": 0, "func": "static int modify_grant_table ( TABLE * table , Field * host_field , Field * user_field , LEX_USER * user_to ) {\n int error ;\n DBUG_ENTER ( \"modify_grant_table\" ) ;\n if ( user_to ) {\n store_record ( table , record [ 1 ] ) ;\n host_field -> store ( user_to -> host . str , user_to -> host . length , system_charset_info ) ;\n user_field -> store ( user_to -> user . str , user_to -> user . length , system_charset_info ) ;\n if ( ( error = table -> file -> ha_update_row ( table -> record [ 1 ] , table -> record [ 0 ] ) ) && error != HA_ERR_RECORD_IS_THE_SAME ) table -> file -> print_error ( error , MYF ( 0 ) ) ;\n else error = 0 ;\n }\n else {\n if ( ( error = table -> file -> ha_delete_row ( table -> record [ 0 ] ) ) ) table -> file -> print_error ( error , MYF ( 0 ) ) ;\n }\n DBUG_RETURN ( error ) ;\n }"}
{"idx": 8656, "target": 0, "func": "static uchar * get_grant_table ( GRANT_NAME * buff , size_t * length , my_bool not_used __attribute__ ( ( unused ) ) ) {\n * length = buff -> key_length ;\n return ( uchar * ) buff -> hash_key ;\n }"}
{"idx": 8657, "target": 0, "func": "static int truemotion1_decode_header ( TrueMotion1Context * s ) {\n int i , ret ;\n int width_shift = 0 ;\n int new_pix_fmt ;\n struct frame_header header ;\n uint8_t header_buffer [ 128 ] = {\n 0 }\n ;\n const uint8_t * sel_vector_table ;\n header . header_size = ( ( s -> buf [ 0 ] >> 5 ) | ( s -> buf [ 0 ] << 3 ) ) & 0x7f ;\n if ( s -> buf [ 0 ] < 0x10 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"invalid header size (%d)\\n\" , s -> buf [ 0 ] ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( i = 1 ;\n i < header . header_size ;\n i ++ ) header_buffer [ i - 1 ] = s -> buf [ i ] ^ s -> buf [ i + 1 ] ;\n header . compression = header_buffer [ 0 ] ;\n header . deltaset = header_buffer [ 1 ] ;\n header . vectable = header_buffer [ 2 ] ;\n header . ysize = AV_RL16 ( & header_buffer [ 3 ] ) ;\n header . xsize = AV_RL16 ( & header_buffer [ 5 ] ) ;\n header . checksum = AV_RL16 ( & header_buffer [ 7 ] ) ;\n header . version = header_buffer [ 9 ] ;\n header . header_type = header_buffer [ 10 ] ;\n header . flags = header_buffer [ 11 ] ;\n header . control = header_buffer [ 12 ] ;\n if ( header . version >= 2 ) {\n if ( header . header_type > 3 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"invalid header type (%d)\\n\" , header . header_type ) ;\n return AVERROR_INVALIDDATA ;\n }\n else if ( ( header . header_type == 2 ) || ( header . header_type == 3 ) ) {\n s -> flags = header . flags ;\n if ( ! ( s -> flags & FLAG_INTERFRAME ) ) s -> flags |= FLAG_KEYFRAME ;\n }\n else s -> flags = FLAG_KEYFRAME ;\n }\n else s -> flags = FLAG_KEYFRAME ;\n if ( s -> flags & FLAG_SPRITE ) {\n av_log_ask_for_sample ( s -> avctx , \"SPRITE frame found.\\n\" ) ;\n return AVERROR_PATCHWELCOME ;\n }\n else {\n s -> w = header . xsize ;\n s -> h = header . ysize ;\n if ( header . header_type < 2 ) {\n if ( ( s -> w < 213 ) && ( s -> h >= 176 ) ) {\n s -> flags |= FLAG_INTERPOLATED ;\n av_log_ask_for_sample ( s -> avctx , \"INTERPOLATION selected.\\n\" ) ;\n }\n }\n }\n if ( header . compression >= 17 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"invalid compression type (%d)\\n\" , header . compression ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ( header . deltaset != s -> last_deltaset ) || ( header . vectable != s -> last_vectable ) ) select_delta_tables ( s , header . deltaset ) ;\n if ( ( header . compression & 1 ) && header . header_type ) sel_vector_table = pc_tbl2 ;\n else {\n if ( header . vectable > 0 && header . vectable < 4 ) sel_vector_table = tables [ header . vectable - 1 ] ;\n else {\n av_log ( s -> avctx , AV_LOG_ERROR , \"invalid vector table id (%d)\\n\" , header . vectable ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n if ( compression_types [ header . compression ] . algorithm == ALGO_RGB24H ) {\n new_pix_fmt = AV_PIX_FMT_RGB32 ;\n width_shift = 1 ;\n }\n else new_pix_fmt = AV_PIX_FMT_RGB555 ;\n s -> w >>= width_shift ;\n if ( ( ret = av_image_check_size ( s -> w , s -> h , 0 , s -> avctx ) ) < 0 ) return ret ;\n if ( s -> w != s -> avctx -> width || s -> h != s -> avctx -> height || new_pix_fmt != s -> avctx -> pix_fmt ) {\n av_frame_unref ( & s -> frame ) ;\n s -> avctx -> sample_aspect_ratio = ( AVRational ) {\n 1 << width_shift , 1 }\n ;\n s -> avctx -> pix_fmt = new_pix_fmt ;\n avcodec_set_dimensions ( s -> avctx , s -> w , s -> h ) ;\n av_fast_malloc ( & s -> vert_pred , & s -> vert_pred_size , s -> avctx -> width * sizeof ( unsigned int ) ) ;\n }\n s -> mb_change_bits_row_size = ( ( s -> avctx -> width >> ( 2 - width_shift ) ) + 7 ) >> 3 ;\n if ( ( header . deltaset != s -> last_deltaset ) || ( header . vectable != s -> last_vectable ) ) {\n if ( compression_types [ header . compression ] . algorithm == ALGO_RGB24H ) gen_vector_table24 ( s , sel_vector_table ) ;\n else if ( s -> avctx -> pix_fmt == AV_PIX_FMT_RGB555 ) gen_vector_table15 ( s , sel_vector_table ) ;\n else gen_vector_table16 ( s , sel_vector_table ) ;\n }\n s -> mb_change_bits = s -> buf + header . header_size ;\n if ( s -> flags & FLAG_KEYFRAME ) {\n s -> index_stream = s -> mb_change_bits ;\n }\n else {\n s -> index_stream = s -> mb_change_bits + ( s -> mb_change_bits_row_size * ( s -> avctx -> height >> 2 ) ) ;\n }\n s -> index_stream_size = s -> size - ( s -> index_stream - s -> buf ) ;\n s -> last_deltaset = header . deltaset ;\n s -> last_vectable = header . vectable ;\n s -> compression = header . compression ;\n s -> block_width = compression_types [ header . compression ] . block_width ;\n s -> block_height = compression_types [ header . compression ] . block_height ;\n s -> block_type = compression_types [ header . compression ] . block_type ;\n if ( s -> avctx -> debug & FF_DEBUG_PICT_INFO ) av_log ( s -> avctx , AV_LOG_INFO , \"tables: %d / %d c:%d %dx%d t:%d %s%s%s%s\\n\" , s -> last_deltaset , s -> last_vectable , s -> compression , s -> block_width , s -> block_height , s -> block_type , s -> flags & FLAG_KEYFRAME ? \" KEY\" : \"\" , s -> flags & FLAG_INTERFRAME ? \" INTER\" : \"\" , s -> flags & FLAG_SPRITE ? \" SPRITE\" : \"\" , s -> flags & FLAG_INTERPOLATED ? \" INTERPOL\" : \"\" ) ;\n return header . header_size ;\n }"}
{"idx": 8658, "target": 0, "func": "void getconfig ( int argc , char * * argv ) {\n char line [ MAXLINE ] ;\n # ifdef DEBUG atexit ( free_all_config_trees ) ;\n # endif # ifndef SYS_WINNT config_file = CONFIG_FILE ;\n # else temp = CONFIG_FILE ;\n if ( ! ExpandEnvironmentStrings ( ( LPCTSTR ) temp , ( LPTSTR ) config_file_storage , ( DWORD ) sizeof ( config_file_storage ) ) ) {\n msyslog ( LOG_ERR , \"ExpandEnvironmentStrings CONFIG_FILE failed: %m\\n\" ) ;\n exit ( 1 ) ;\n }\n config_file = config_file_storage ;\n temp = ALT_CONFIG_FILE ;\n if ( ! ExpandEnvironmentStrings ( ( LPCTSTR ) temp , ( LPTSTR ) alt_config_file_storage , ( DWORD ) sizeof ( alt_config_file_storage ) ) ) {\n msyslog ( LOG_ERR , \"ExpandEnvironmentStrings ALT_CONFIG_FILE failed: %m\\n\" ) ;\n exit ( 1 ) ;\n }\n alt_config_file = alt_config_file_storage ;\n # endif snprintf ( line , sizeof ( line ) , \"daemon_version=\\\"%s\\\"\" , Version ) ;\n set_sys_var ( line , strlen ( line ) + 1 , RO ) ;\n set_tod_using = & ntpd_set_tod_using ;\n # ifndef SYS_WINNT strncpy ( line , \"settimeofday=\\\"UNKNOWN\\\"\" , sizeof ( line ) ) ;\n set_sys_var ( line , strlen ( line ) + 1 , RO ) ;\n # endif getCmdOpts ( argc , argv ) ;\n init_syntax_tree ( & cfgt ) ;\n curr_include_level = 0 ;\n if ( ( fp [ curr_include_level ] = F_OPEN ( FindConfig ( config_file ) , \"r\" ) ) == NULL # ifdef HAVE_NETINFO && check_netinfo && ! ( config_netinfo = get_netinfo_config ( ) ) # endif ) {\n msyslog ( LOG_INFO , \"getconfig: Couldn't open <%s>\" , FindConfig ( config_file ) ) ;\n # ifndef SYS_WINNT io_open_sockets ( ) ;\n return ;\n # else if ( ( fp [ curr_include_level ] = F_OPEN ( FindConfig ( alt_config_file ) , \"r\" ) ) == NULL ) {\n msyslog ( LOG_INFO , \"getconfig: Couldn't open <%s>\" , FindConfig ( alt_config_file ) ) ;\n io_open_sockets ( ) ;\n return ;\n }\n cfgt . source . value . s = estrdup ( alt_config_file ) ;\n # endif }\n else cfgt . source . value . s = estrdup ( config_file ) ;\n # ifdef DEBUG yydebug = ! ! ( debug >= 5 ) ;\n # endif ip_file = fp [ curr_include_level ] ;\n yyparse ( ) ;\n DPRINTF ( 1 , ( \"Finished Parsing!!\\n\" ) ) ;\n cfgt . source . attr = CONF_SOURCE_FILE ;\n cfgt . timestamp = time ( NULL ) ;\n save_and_apply_config_tree ( ) ;\n while ( curr_include_level != - 1 ) FCLOSE ( fp [ curr_include_level -- ] ) ;\n # ifdef HAVE_NETINFO if ( config_netinfo ) free_netinfo_config ( config_netinfo ) ;\n # endif }"}
{"idx": 8659, "target": 0, "func": "static int dump_trigger ( FILE * sql_file , MYSQL_RES * show_create_trigger_rs , const char * db_name , const char * db_cl_name ) {\n MYSQL_ROW row ;\n char * query_str ;\n int db_cl_altered = FALSE ;\n DBUG_ENTER ( \"dump_trigger\" ) ;\n while ( ( row = mysql_fetch_row ( show_create_trigger_rs ) ) ) {\n if ( opt_xml ) {\n print_xml_row ( sql_file , \"trigger\" , show_create_trigger_rs , & row , \"SQL Original Statement\" ) ;\n check_io ( sql_file ) ;\n continue ;\n }\n query_str = cover_definer_clause ( row [ 2 ] , strlen ( row [ 2 ] ) , C_STRING_WITH_LEN ( \"50017\" ) , C_STRING_WITH_LEN ( \"50003\" ) , C_STRING_WITH_LEN ( \" TRIGGER\" ) ) ;\n if ( switch_db_collation ( sql_file , db_name , \";\n\" , db_cl_name , row [ 5 ] , & db_cl_altered ) ) DBUG_RETURN ( TRUE ) ;\n switch_cs_variables ( sql_file , \";\n\" , row [ 3 ] , row [ 3 ] , row [ 4 ] ) ;\n switch_sql_mode ( sql_file , \";\n\" , row [ 1 ] ) ;\n fprintf ( sql_file , \"DELIMITER ;\n;\n\\n\" \"/*!50003 %s */;\n;\n\\n\" \"DELIMITER ;\n\\n\" , ( const char * ) ( query_str != NULL ? query_str : row [ 2 ] ) ) ;\n restore_sql_mode ( sql_file , \";\n\" ) ;\n restore_cs_variables ( sql_file , \";\n\" ) ;\n if ( db_cl_altered ) {\n if ( restore_db_collation ( sql_file , db_name , \";\n\" , db_cl_name ) ) DBUG_RETURN ( TRUE ) ;\n }\n my_free ( query_str ) ;\n }\n DBUG_RETURN ( FALSE ) ;\n }"}
{"idx": 8660, "target": 1, "func": "static gpg_error_t parse_keyblock_image ( iobuf_t iobuf , int pk_no , int uid_no , const u32 * sigstatus , kbnode_t * r_keyblock ) {\n gpg_error_t err ;\n PACKET * pkt ;\n kbnode_t keyblock = NULL ;\n kbnode_t node , * tail ;\n int in_cert , save_mode ;\n u32 n_sigs ;\n int pk_count , uid_count ;\n * r_keyblock = NULL ;\n pkt = xtrymalloc ( sizeof * pkt ) ;\n if ( ! pkt ) return gpg_error_from_syserror ( ) ;\n init_packet ( pkt ) ;\n save_mode = set_packet_list_mode ( 0 ) ;\n in_cert = 0 ;\n n_sigs = 0 ;\n tail = NULL ;\n pk_count = uid_count = 0 ;\n while ( ( err = parse_packet ( iobuf , pkt ) ) != - 1 ) {\n if ( gpg_err_code ( err ) == GPG_ERR_UNKNOWN_PACKET ) {\n free_packet ( pkt ) ;\n init_packet ( pkt ) ;\n continue ;\n }\n if ( err ) {\n log_error ( \"parse_keyblock_image: read error: %s\\n\" , gpg_strerror ( err ) ) ;\n err = gpg_error ( GPG_ERR_INV_KEYRING ) ;\n break ;\n }\n if ( pkt -> pkttype == PKT_COMPRESSED ) {\n log_error ( \"skipped compressed packet in keybox blob\\n\" ) ;\n free_packet ( pkt ) ;\n init_packet ( pkt ) ;\n continue ;\n }\n if ( pkt -> pkttype == PKT_RING_TRUST ) {\n log_info ( \"skipped ring trust packet in keybox blob\\n\" ) ;\n free_packet ( pkt ) ;\n init_packet ( pkt ) ;\n continue ;\n }\n if ( ! in_cert && pkt -> pkttype != PKT_PUBLIC_KEY ) {\n log_error ( \"parse_keyblock_image: first packet in a keybox blob \" \"is not a public key packet\\n\" ) ;\n err = gpg_error ( GPG_ERR_INV_KEYRING ) ;\n break ;\n }\n if ( in_cert && ( pkt -> pkttype == PKT_PUBLIC_KEY || pkt -> pkttype == PKT_SECRET_KEY ) ) {\n log_error ( \"parse_keyblock_image: \" \"multiple keyblocks in a keybox blob\\n\" ) ;\n err = gpg_error ( GPG_ERR_INV_KEYRING ) ;\n break ;\n }\n in_cert = 1 ;\n if ( pkt -> pkttype == PKT_SIGNATURE && sigstatus ) {\n PKT_signature * sig = pkt -> pkt . signature ;\n n_sigs ++ ;\n if ( n_sigs > sigstatus [ 0 ] ) {\n log_error ( \"parse_keyblock_image: \" \"more signatures than found in the meta data\\n\" ) ;\n err = gpg_error ( GPG_ERR_INV_KEYRING ) ;\n break ;\n }\n if ( sigstatus [ n_sigs ] ) {\n sig -> flags . checked = 1 ;\n if ( sigstatus [ n_sigs ] == 1 ) ;\n else if ( sigstatus [ n_sigs ] == 2 ) ;\n else if ( sigstatus [ n_sigs ] < 0x10000000 ) ;\n else {\n sig -> flags . valid = 1 ;\n }\n }\n }\n node = new_kbnode ( pkt ) ;\n switch ( pkt -> pkttype ) {\n case PKT_PUBLIC_KEY : case PKT_PUBLIC_SUBKEY : case PKT_SECRET_KEY : case PKT_SECRET_SUBKEY : if ( ++ pk_count == pk_no ) node -> flag |= 1 ;\n break ;\n case PKT_USER_ID : if ( ++ uid_count == uid_no ) node -> flag |= 2 ;\n break ;\n default : break ;\n }\n if ( ! keyblock ) keyblock = node ;\n else * tail = node ;\n tail = & node -> next ;\n pkt = xtrymalloc ( sizeof * pkt ) ;\n if ( ! pkt ) {\n err = gpg_error_from_syserror ( ) ;\n break ;\n }\n init_packet ( pkt ) ;\n }\n set_packet_list_mode ( save_mode ) ;\n if ( err == - 1 && keyblock ) err = 0 ;\n if ( ! err && sigstatus && n_sigs != sigstatus [ 0 ] ) {\n log_error ( \"parse_keyblock_image: signature count does not match\\n\" ) ;\n err = gpg_error ( GPG_ERR_INV_KEYRING ) ;\n }\n if ( err ) release_kbnode ( keyblock ) ;\n else * r_keyblock = keyblock ;\n free_packet ( pkt ) ;\n xfree ( pkt ) ;\n return err ;\n }"}
{"idx": 8661, "target": 0, "func": "int zexec ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n int code ;\n check_op ( 1 ) ;\n code = check_for_exec ( op ) ;\n if ( code < 0 ) {\n return code ;\n }\n if ( ! r_has_attr ( op , a_executable ) ) {\n return 0 ;\n }\n check_estack ( 1 ) ;\n ++ esp ;\n ref_assign ( esp , op ) ;\n esfile_check_cache ( ) ;\n pop ( 1 ) ;\n return o_push_estack ;\n }"}
{"idx": 8662, "target": 0, "func": "static void encode_nonrd_sb_row ( VP9_COMP * cpi , const TileInfo * const tile , int mi_row , TOKENEXTRA * * tp ) {\n SPEED_FEATURES * const sf = & cpi -> sf ;\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCK * const x = & cpi -> mb ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n int mi_col ;\n vpx_memset ( & xd -> left_context , 0 , sizeof ( xd -> left_context ) ) ;\n vpx_memset ( xd -> left_seg_context , 0 , sizeof ( xd -> left_seg_context ) ) ;\n for ( mi_col = tile -> mi_col_start ;\n mi_col < tile -> mi_col_end ;\n mi_col += MI_BLOCK_SIZE ) {\n int dummy_rate = 0 ;\n int64_t dummy_dist = 0 ;\n const int idx_str = cm -> mi_stride * mi_row + mi_col ;\n MODE_INFO * mi = cm -> mi + idx_str ;\n MODE_INFO * prev_mi = ( cm -> prev_mip + cm -> mi_stride + 1 + idx_str ) -> src_mi ;\n BLOCK_SIZE bsize ;\n x -> in_static_area = 0 ;\n x -> source_variance = UINT_MAX ;\n vp9_zero ( x -> pred_mv ) ;\n switch ( sf -> partition_search_type ) {\n case VAR_BASED_PARTITION : choose_partitioning ( cpi , tile , mi_row , mi_col ) ;\n nonrd_use_partition ( cpi , tile , mi , tp , mi_row , mi_col , BLOCK_64X64 , 1 , & dummy_rate , & dummy_dist , cpi -> pc_root ) ;\n break ;\n case SOURCE_VAR_BASED_PARTITION : set_source_var_based_partition ( cpi , tile , mi , mi_row , mi_col ) ;\n nonrd_use_partition ( cpi , tile , mi , tp , mi_row , mi_col , BLOCK_64X64 , 1 , & dummy_rate , & dummy_dist , cpi -> pc_root ) ;\n break ;\n case VAR_BASED_FIXED_PARTITION : case FIXED_PARTITION : bsize = sf -> partition_search_type == FIXED_PARTITION ? sf -> always_this_block_size : get_nonrd_var_based_fixed_partition ( cpi , mi_row , mi_col ) ;\n set_fixed_partitioning ( cpi , tile , mi , mi_row , mi_col , bsize ) ;\n nonrd_use_partition ( cpi , tile , mi , tp , mi_row , mi_col , BLOCK_64X64 , 1 , & dummy_rate , & dummy_dist , cpi -> pc_root ) ;\n break ;\n case REFERENCE_PARTITION : if ( sf -> partition_check || ! ( x -> in_static_area = is_background ( cpi , tile , mi_row , mi_col ) ) ) {\n set_modeinfo_offsets ( cm , xd , mi_row , mi_col ) ;\n auto_partition_range ( cpi , tile , mi_row , mi_col , & sf -> min_partition_size , & sf -> max_partition_size ) ;\n nonrd_pick_partition ( cpi , tile , tp , mi_row , mi_col , BLOCK_64X64 , & dummy_rate , & dummy_dist , 1 , INT64_MAX , cpi -> pc_root ) ;\n }\n else {\n copy_partitioning ( cm , mi , prev_mi ) ;\n nonrd_use_partition ( cpi , tile , mi , tp , mi_row , mi_col , BLOCK_64X64 , 1 , & dummy_rate , & dummy_dist , cpi -> pc_root ) ;\n }\n break ;\n default : assert ( 0 ) ;\n break ;\n }\n }\n }"}
{"idx": 8663, "target": 0, "func": "static int tm2_decode_blocks ( TM2Context * ctx , AVFrame * p ) {\n int i , j ;\n int w = ctx -> avctx -> width , h = ctx -> avctx -> height , bw = w >> 2 , bh = h >> 2 , cw = w >> 1 ;\n int type ;\n int keyframe = 1 ;\n int * Y , * U , * V ;\n uint8_t * dst ;\n for ( i = 0 ;\n i < TM2_NUM_STREAMS ;\n i ++ ) ctx -> tok_ptrs [ i ] = 0 ;\n if ( ctx -> tok_lens [ TM2_TYPE ] < bw * bh ) {\n av_log ( ctx -> avctx , AV_LOG_ERROR , \"Got %i tokens for %i blocks\\n\" , ctx -> tok_lens [ TM2_TYPE ] , bw * bh ) ;\n return AVERROR_INVALIDDATA ;\n }\n memset ( ctx -> last , 0 , 4 * bw * sizeof ( int ) ) ;\n memset ( ctx -> clast , 0 , 4 * bw * sizeof ( int ) ) ;\n for ( j = 0 ;\n j < bh ;\n j ++ ) {\n memset ( ctx -> D , 0 , 4 * sizeof ( int ) ) ;\n memset ( ctx -> CD , 0 , 4 * sizeof ( int ) ) ;\n for ( i = 0 ;\n i < bw ;\n i ++ ) {\n type = GET_TOK ( ctx , TM2_TYPE ) ;\n switch ( type ) {\n case TM2_HI_RES : tm2_hi_res_block ( ctx , p , i , j ) ;\n break ;\n case TM2_MED_RES : tm2_med_res_block ( ctx , p , i , j ) ;\n break ;\n case TM2_LOW_RES : tm2_low_res_block ( ctx , p , i , j ) ;\n break ;\n case TM2_NULL_RES : tm2_null_res_block ( ctx , p , i , j ) ;\n break ;\n case TM2_UPDATE : tm2_update_block ( ctx , p , i , j ) ;\n keyframe = 0 ;\n break ;\n case TM2_STILL : tm2_still_block ( ctx , p , i , j ) ;\n keyframe = 0 ;\n break ;\n case TM2_MOTION : tm2_motion_block ( ctx , p , i , j ) ;\n keyframe = 0 ;\n break ;\n default : av_log ( ctx -> avctx , AV_LOG_ERROR , \"Skipping unknown block type %i\\n\" , type ) ;\n }\n }\n }\n Y = ( ctx -> cur ? ctx -> Y2 : ctx -> Y1 ) ;\n U = ( ctx -> cur ? ctx -> U2 : ctx -> U1 ) ;\n V = ( ctx -> cur ? ctx -> V2 : ctx -> V1 ) ;\n dst = p -> data [ 0 ] ;\n for ( j = 0 ;\n j < h ;\n j ++ ) {\n for ( i = 0 ;\n i < w ;\n i ++ ) {\n int y = Y [ i ] , u = U [ i >> 1 ] , v = V [ i >> 1 ] ;\n dst [ 3 * i + 0 ] = av_clip_uint8 ( y + v ) ;\n dst [ 3 * i + 1 ] = av_clip_uint8 ( y ) ;\n dst [ 3 * i + 2 ] = av_clip_uint8 ( y + u ) ;\n }\n Y [ - 4 ] = Y [ - 3 ] = Y [ - 2 ] = Y [ - 1 ] = Y [ 0 ] ;\n Y [ w + 3 ] = Y [ w + 2 ] = Y [ w + 1 ] = Y [ w ] = Y [ w - 1 ] ;\n if ( j == 0 ) {\n memcpy ( Y - 4 - 1 * ctx -> y_stride , Y - 4 , ctx -> y_stride ) ;\n memcpy ( Y - 4 - 2 * ctx -> y_stride , Y - 4 , ctx -> y_stride ) ;\n memcpy ( Y - 4 - 3 * ctx -> y_stride , Y - 4 , ctx -> y_stride ) ;\n memcpy ( Y - 4 - 4 * ctx -> y_stride , Y - 4 , ctx -> y_stride ) ;\n }\n else if ( j == h - 1 ) {\n memcpy ( Y - 4 + 1 * ctx -> y_stride , Y - 4 , ctx -> y_stride ) ;\n memcpy ( Y - 4 + 2 * ctx -> y_stride , Y - 4 , ctx -> y_stride ) ;\n memcpy ( Y - 4 + 3 * ctx -> y_stride , Y - 4 , ctx -> y_stride ) ;\n memcpy ( Y - 4 + 4 * ctx -> y_stride , Y - 4 , ctx -> y_stride ) ;\n }\n Y += ctx -> y_stride ;\n if ( j & 1 ) {\n U [ - 2 ] = U [ - 1 ] = U [ 0 ] ;\n V [ - 2 ] = V [ - 1 ] = V [ 0 ] ;\n U [ cw + 1 ] = U [ cw ] = U [ cw - 1 ] ;\n V [ cw + 1 ] = V [ cw ] = V [ cw - 1 ] ;\n if ( j == 1 ) {\n memcpy ( U - 2 - 1 * ctx -> uv_stride , U - 2 , ctx -> uv_stride ) ;\n memcpy ( V - 2 - 1 * ctx -> uv_stride , V - 2 , ctx -> uv_stride ) ;\n memcpy ( U - 2 - 2 * ctx -> uv_stride , U - 2 , ctx -> uv_stride ) ;\n memcpy ( V - 2 - 2 * ctx -> uv_stride , V - 2 , ctx -> uv_stride ) ;\n }\n else if ( j == h - 1 ) {\n memcpy ( U - 2 + 1 * ctx -> uv_stride , U - 2 , ctx -> uv_stride ) ;\n memcpy ( V - 2 + 1 * ctx -> uv_stride , V - 2 , ctx -> uv_stride ) ;\n memcpy ( U - 2 + 2 * ctx -> uv_stride , U - 2 , ctx -> uv_stride ) ;\n memcpy ( V - 2 + 2 * ctx -> uv_stride , V - 2 , ctx -> uv_stride ) ;\n }\n U += ctx -> uv_stride ;\n V += ctx -> uv_stride ;\n }\n dst += p -> linesize [ 0 ] ;\n }\n return keyframe ;\n }"}
{"idx": 8664, "target": 0, "func": "int qemuMonitorJSONGetAllPCIAddresses ( qemuMonitorPtr mon ATTRIBUTE_UNUSED , qemuMonitorPCIAddress * * addrs ATTRIBUTE_UNUSED ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"query-pci not suppported in JSON mode\" ) ) ;\n return - 1 ;\n }"}
{"idx": 8665, "target": 0, "func": "static void voip_rtp_reset ( void * ptr _U_ ) {\n voip_rtp_tapinfo_t * tapinfo = & the_tapinfo_rtp_struct ;\n GList * list ;\n list = g_list_first ( tapinfo -> list ) ;\n while ( list ) {\n g_free ( list -> data ) ;\n list = g_list_next ( list ) ;\n }\n g_list_free ( tapinfo -> list ) ;\n tapinfo -> list = NULL ;\n tapinfo -> nstreams = 0 ;\n return ;\n }"}
{"idx": 8666, "target": 0, "func": "static int vapic_enable ( VAPICROMState * s , CPUX86State * env ) {\n int cpu_number = get_kpcr_number ( env ) ;\n hwaddr vapic_paddr ;\n static const uint8_t enabled = 1 ;\n if ( cpu_number < 0 ) {\n return - 1 ;\n }\n vapic_paddr = s -> vapic_paddr + ( ( ( hwaddr ) cpu_number ) << VAPIC_CPU_SHIFT ) ;\n cpu_physical_memory_rw ( vapic_paddr + offsetof ( VAPICState , enabled ) , ( void * ) & enabled , sizeof ( enabled ) , 1 ) ;\n apic_enable_vapic ( env -> apic_state , vapic_paddr ) ;\n s -> state = VAPIC_ACTIVE ;\n return 0 ;\n }"}
{"idx": 8667, "target": 0, "func": "static inline void decompose_multi_char_cluster ( const hb_ot_shape_normalize_context_t * c , unsigned int end , bool short_circuit ) {\n hb_buffer_t * const buffer = c -> buffer ;\n for ( unsigned int i = buffer -> idx ;\n i < end ;\n i ++ ) if ( unlikely ( buffer -> unicode -> is_variation_selector ( buffer -> info [ i ] . codepoint ) ) ) {\n handle_variation_selector_cluster ( c , end , short_circuit ) ;\n return ;\n }\n while ( buffer -> idx < end ) decompose_current_character ( c , short_circuit ) ;\n }"}
{"idx": 8668, "target": 0, "func": "static void gtkui_connection_data_attach ( void ) {\n if ( curr_conn ) {\n conntrack_hook_conn_del ( curr_conn , split_print_po ) ;\n conntrack_hook_conn_del ( curr_conn , join_print_po ) ;\n }\n gtk_widget_destroy ( data_window ) ;\n textview1 = NULL ;\n textview2 = NULL ;\n textview3 = NULL ;\n data_window = NULL ;\n gtkui_connection_data_split ( ) ;\n }"}
{"idx": 8669, "target": 0, "func": "unsigned int vp9_vaq_segment_id ( int energy ) {\n ENERGY_IN_BOUNDS ( energy ) ;\n return SEGMENT_ID ( energy ) ;\n }"}
{"idx": 8670, "target": 0, "func": "char * get_constraint_name ( Oid conoid ) {\n HeapTuple tp ;\n tp = SearchSysCache1 ( CONSTROID , ObjectIdGetDatum ( conoid ) ) ;\n if ( HeapTupleIsValid ( tp ) ) {\n Form_pg_constraint contup = ( Form_pg_constraint ) GETSTRUCT ( tp ) ;\n char * result ;\n result = pstrdup ( NameStr ( contup -> conname ) ) ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }\n else return NULL ;\n }"}
{"idx": 8671, "target": 0, "func": "static Asn1Generic * DecodeAsn1DerNull ( const unsigned char * buffer , uint32_t size , uint8_t depth , uint32_t * errcode ) {\n const unsigned char * d_ptr = buffer ;\n uint8_t numbytes ;\n uint32_t value ;\n Asn1Generic * a ;\n numbytes = d_ptr [ 1 ] ;\n d_ptr += 2 ;\n if ( DecodeAsn1BuildValue ( & d_ptr , & value , numbytes , errcode ) == - 1 ) {\n return NULL ;\n }\n a = Asn1GenericNew ( ) ;\n if ( a == NULL ) return NULL ;\n a -> type = ASN1_NULL ;\n a -> length = ( d_ptr - buffer ) ;\n a -> value = 0 ;\n return a ;\n }"}
{"idx": 8672, "target": 0, "func": "static void dct_unquantize_mpeg2_intra_bitexact ( MpegEncContext * s , int16_t * block , int n , int qscale ) {\n int i , level , nCoeffs ;\n const uint16_t * quant_matrix ;\n int sum = - 1 ;\n if ( s -> alternate_scan ) nCoeffs = 63 ;\n else nCoeffs = s -> block_last_index [ n ] ;\n if ( n < 4 ) block [ 0 ] = block [ 0 ] * s -> y_dc_scale ;\n else block [ 0 ] = block [ 0 ] * s -> c_dc_scale ;\n quant_matrix = s -> intra_matrix ;\n for ( i = 1 ;\n i <= nCoeffs ;\n i ++ ) {\n int j = s -> intra_scantable . permutated [ i ] ;\n level = block [ j ] ;\n if ( level ) {\n if ( level < 0 ) {\n level = - level ;\n level = ( int ) ( level * qscale * quant_matrix [ j ] ) >> 3 ;\n level = - level ;\n }\n else {\n level = ( int ) ( level * qscale * quant_matrix [ j ] ) >> 3 ;\n }\n block [ j ] = level ;\n sum += level ;\n }\n }\n block [ 63 ] ^= sum & 1 ;\n }"}
{"idx": 8673, "target": 0, "func": "hb_bool_t hb_shape_plan_set_user_data ( hb_shape_plan_t * shape_plan , hb_user_data_key_t * key , void * data , hb_destroy_func_t destroy , hb_bool_t replace ) {\n return hb_object_set_user_data ( shape_plan , key , data , destroy , replace ) ;\n }"}
{"idx": 8674, "target": 1, "func": "static ossl_inline int lh_ ## type ## _error ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_error ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _num_items ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_num_items ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _node_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _node_usage_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_usage_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING ) ;\n # ifdef _MSC_VER # pragma warning ( push ) # pragma warning ( disable : 4090 ) # endif DEFINE_LHASH_OF ( OPENSSL_CSTRING )"}
{"idx": 8675, "target": 0, "func": "static int jbig2_decode_generic_template2a ( Jbig2Ctx * ctx , Jbig2Segment * segment , const Jbig2GenericRegionParams * params , Jbig2ArithState * as , Jbig2Image * image , Jbig2ArithCx * GB_stats ) {\n const int GBW = image -> width ;\n const int GBH = image -> height ;\n const int rowstride = image -> stride ;\n int x , y ;\n byte * gbreg_line = ( byte * ) image -> data ;\n # ifdef OUTPUT_PBM printf ( \"P4\\n%d %d\\n\" , GBW , GBH ) ;\n # endif if ( GBW <= 0 ) return 0 ;\n for ( y = 0 ;\n y < GBH ;\n y ++ ) {\n uint32_t CONTEXT ;\n uint32_t line_m1 ;\n uint32_t line_m2 ;\n int padded_width = ( GBW + 7 ) & - 8 ;\n line_m1 = ( y >= 1 ) ? gbreg_line [ - rowstride ] : 0 ;\n line_m2 = ( y >= 2 ) ? gbreg_line [ - ( rowstride << 1 ) ] << 4 : 0 ;\n CONTEXT = ( ( line_m1 >> 3 ) & 0x78 ) | ( ( line_m1 >> 2 ) & 0x4 ) | ( ( line_m2 >> 3 ) & 0x380 ) ;\n for ( x = 0 ;\n x < padded_width ;\n x += 8 ) {\n byte result = 0 ;\n int x_minor ;\n int minor_width = GBW - x > 8 ? 8 : GBW - x ;\n if ( y >= 1 ) line_m1 = ( line_m1 << 8 ) | ( x + 8 < GBW ? gbreg_line [ - rowstride + ( x >> 3 ) + 1 ] : 0 ) ;\n if ( y >= 2 ) line_m2 = ( line_m2 << 8 ) | ( x + 8 < GBW ? gbreg_line [ - ( rowstride << 1 ) + ( x >> 3 ) + 1 ] << 4 : 0 ) ;\n for ( x_minor = 0 ;\n x_minor < minor_width ;\n x_minor ++ ) {\n bool bit ;\n bit = jbig2_arith_decode ( as , & GB_stats [ CONTEXT ] ) ;\n if ( bit < 0 ) return - 1 ;\n result |= bit << ( 7 - x_minor ) ;\n CONTEXT = ( ( CONTEXT & 0x1b9 ) << 1 ) | bit | ( ( line_m1 >> ( 10 - x_minor ) ) & 0x8 ) | ( ( line_m1 >> ( 9 - x_minor ) ) & 0x4 ) | ( ( line_m2 >> ( 10 - x_minor ) ) & 0x80 ) ;\n }\n gbreg_line [ x >> 3 ] = result ;\n }\n # ifdef OUTPUT_PBM fwrite ( gbreg_line , 1 , rowstride , stdout ) ;\n # endif gbreg_line += rowstride ;\n }\n return 0 ;\n }"}
{"idx": 8676, "target": 0, "func": "static bool ps2_keyboard_need_high_bit_needed ( void * opaque ) {\n PS2KbdState * s = opaque ;\n return s -> need_high_bit != 0 ;\n }"}
{"idx": 8677, "target": 0, "func": "static guint32 rtmpt_get_amf_txid ( tvbuff_t * tvb , gint offset ) {\n guint32 remain = tvb_reported_length_remaining ( tvb , offset ) ;\n if ( remain > 0 ) {\n guint32 itemlen = rtmpt_get_amf_length ( tvb , offset ) ;\n if ( remain < itemlen ) return 0 ;\n offset += itemlen ;\n remain -= itemlen ;\n }\n if ( remain >= 9 ) {\n guint8 iObjType = tvb_get_guint8 ( tvb , offset ) ;\n if ( iObjType == AMF0_NUMBER ) {\n return ( guint32 ) tvb_get_ntohieee_double ( tvb , offset + 1 ) ;\n }\n }\n return 0 ;\n }"}
{"idx": 8678, "target": 0, "func": "TEST ( DownloadPrefsTest , AutoOpenCheckIsCaseInsensitive ) {\n content : : TestBrowserThreadBundle threads_are_required_for_testing_profile ;\n TestingProfile profile ;\n profile . GetPrefs ( ) -> SetString ( prefs : : kDownloadExtensionsToOpen , \"txt:Foo:BAR\" ) ;\n DownloadPrefs prefs ( & profile ) ;\n EXPECT_TRUE ( prefs . IsAutoOpenEnabledBasedOnExtension ( base : : FilePath ( FILE_PATH_LITERAL ( \"x.txt\" ) ) ) ) ;\n EXPECT_TRUE ( prefs . IsAutoOpenEnabledBasedOnExtension ( base : : FilePath ( FILE_PATH_LITERAL ( \"x.TXT\" ) ) ) ) ;\n EXPECT_TRUE ( prefs . IsAutoOpenEnabledBasedOnExtension ( base : : FilePath ( FILE_PATH_LITERAL ( \"x.foo\" ) ) ) ) ;\n EXPECT_TRUE ( prefs . IsAutoOpenEnabledBasedOnExtension ( base : : FilePath ( FILE_PATH_LITERAL ( \"x.Bar\" ) ) ) ) ;\n }"}
{"idx": 8679, "target": 0, "func": "static void spl_dllist_it_rewind ( zend_object_iterator * iter TSRMLS_DC ) {\n spl_dllist_it * iterator = ( spl_dllist_it * ) iter ;\n spl_dllist_object * object = iterator -> object ;\n spl_ptr_llist * llist = object -> llist ;\n spl_dllist_it_helper_rewind ( & iterator -> traverse_pointer , & iterator -> traverse_position , llist , object -> flags TSRMLS_CC ) ;\n }"}
{"idx": 8680, "target": 0, "func": "extern int as_mysql_flush_jobs_on_cluster ( mysql_conn_t * mysql_conn , time_t event_time ) {\n int rc = SLURM_SUCCESS ;\n MYSQL_RES * result = NULL ;\n MYSQL_ROW row ;\n char * query = NULL ;\n char * id_char = NULL ;\n char * suspended_char = NULL ;\n if ( check_connection ( mysql_conn ) != SLURM_SUCCESS ) return ESLURM_DB_CONNECTION ;\n query = xstrdup_printf ( \"select distinct t1.job_db_inx, t1.state from \\\"%s_%s\\\" \" \"as t1 where t1.time_end=0;\n\" , mysql_conn -> cluster_name , job_table ) ;\n if ( debug_flags & DEBUG_FLAG_DB_JOB ) DB_DEBUG ( mysql_conn -> conn , \"query\\n%s\" , query ) ;\n if ( ! ( result = mysql_db_query_ret ( mysql_conn , query , 0 ) ) ) {\n xfree ( query ) ;\n return SLURM_ERROR ;\n }\n xfree ( query ) ;\n while ( ( row = mysql_fetch_row ( result ) ) ) {\n int state = slurm_atoul ( row [ 1 ] ) ;\n if ( state == JOB_SUSPENDED ) {\n if ( suspended_char ) xstrfmtcat ( suspended_char , \", %s\" , row [ 0 ] ) ;\n else xstrfmtcat ( suspended_char , \"job_db_inx in (%s\" , row [ 0 ] ) ;\n }\n if ( id_char ) xstrfmtcat ( id_char , \", %s\" , row [ 0 ] ) ;\n else xstrfmtcat ( id_char , \"job_db_inx in (%s\" , row [ 0 ] ) ;\n }\n mysql_free_result ( result ) ;\n if ( suspended_char ) {\n xstrfmtcat ( suspended_char , \")\" ) ;\n xstrfmtcat ( query , \"update \\\"%s_%s\\\" set \" \"time_suspended=%ld-time_suspended \" \"where %s;\n\" , mysql_conn -> cluster_name , job_table , event_time , suspended_char ) ;\n xstrfmtcat ( query , \"update \\\"%s_%s\\\" set \" \"time_suspended=%ld-time_suspended \" \"where %s;\n\" , mysql_conn -> cluster_name , step_table , event_time , suspended_char ) ;\n xstrfmtcat ( query , \"update \\\"%s_%s\\\" set time_end=%ld where (%s) \" \"&& time_end=0;\n\" , mysql_conn -> cluster_name , suspend_table , event_time , suspended_char ) ;\n xfree ( suspended_char ) ;\n }\n if ( id_char ) {\n xstrfmtcat ( id_char , \")\" ) ;\n xstrfmtcat ( query , \"update \\\"%s_%s\\\" set state=%d, \" \"time_end=%ld where %s;\n\" , mysql_conn -> cluster_name , job_table , JOB_CANCELLED , event_time , id_char ) ;\n xstrfmtcat ( query , \"update \\\"%s_%s\\\" set state=%d, \" \"time_end=%ld where %s;\n\" , mysql_conn -> cluster_name , step_table , JOB_CANCELLED , event_time , id_char ) ;\n xfree ( id_char ) ;\n }\n if ( query ) {\n if ( debug_flags & DEBUG_FLAG_DB_JOB ) DB_DEBUG ( mysql_conn -> conn , \"query\\n%s\" , query ) ;\n rc = mysql_db_query ( mysql_conn , query ) ;\n xfree ( query ) ;\n }\n return rc ;\n }"}
{"idx": 8681, "target": 0, "func": "static void lsp2lpc ( int16_t * lpc ) {\n int f1 [ LPC_ORDER / 2 + 1 ] ;\n int f2 [ LPC_ORDER / 2 + 1 ] ;\n int i , j ;\n for ( j = 0 ;\n j < LPC_ORDER ;\n j ++ ) {\n int index = lpc [ j ] >> 7 ;\n int offset = lpc [ j ] & 0x7f ;\n int temp1 = cos_tab [ index ] << 16 ;\n int temp2 = ( cos_tab [ index + 1 ] - cos_tab [ index ] ) * ( ( offset << 8 ) + 0x80 ) << 1 ;\n lpc [ j ] = - ( av_sat_dadd32 ( 1 << 15 , temp1 + temp2 ) >> 16 ) ;\n }\n f1 [ 0 ] = 1 << 28 ;\n f1 [ 1 ] = ( lpc [ 0 ] << 14 ) + ( lpc [ 2 ] << 14 ) ;\n f1 [ 2 ] = lpc [ 0 ] * lpc [ 2 ] + ( 2 << 28 ) ;\n f2 [ 0 ] = 1 << 28 ;\n f2 [ 1 ] = ( lpc [ 1 ] << 14 ) + ( lpc [ 3 ] << 14 ) ;\n f2 [ 2 ] = lpc [ 1 ] * lpc [ 3 ] + ( 2 << 28 ) ;\n for ( i = 2 ;\n i < LPC_ORDER / 2 ;\n i ++ ) {\n f1 [ i + 1 ] = f1 [ i - 1 ] + MULL2 ( f1 [ i ] , lpc [ 2 * i ] ) ;\n f2 [ i + 1 ] = f2 [ i - 1 ] + MULL2 ( f2 [ i ] , lpc [ 2 * i + 1 ] ) ;\n for ( j = i ;\n j >= 2 ;\n j -- ) {\n f1 [ j ] = MULL2 ( f1 [ j - 1 ] , lpc [ 2 * i ] ) + ( f1 [ j ] >> 1 ) + ( f1 [ j - 2 ] >> 1 ) ;\n f2 [ j ] = MULL2 ( f2 [ j - 1 ] , lpc [ 2 * i + 1 ] ) + ( f2 [ j ] >> 1 ) + ( f2 [ j - 2 ] >> 1 ) ;\n }\n f1 [ 0 ] >>= 1 ;\n f2 [ 0 ] >>= 1 ;\n f1 [ 1 ] = ( ( lpc [ 2 * i ] << 16 >> i ) + f1 [ 1 ] ) >> 1 ;\n f2 [ 1 ] = ( ( lpc [ 2 * i + 1 ] << 16 >> i ) + f2 [ 1 ] ) >> 1 ;\n }\n for ( i = 0 ;\n i < LPC_ORDER / 2 ;\n i ++ ) {\n int64_t ff1 = f1 [ i + 1 ] + f1 [ i ] ;\n int64_t ff2 = f2 [ i + 1 ] - f2 [ i ] ;\n lpc [ i ] = av_clipl_int32 ( ( ( ff1 + ff2 ) << 3 ) + ( 1 << 15 ) ) >> 16 ;\n lpc [ LPC_ORDER - i - 1 ] = av_clipl_int32 ( ( ( ff1 - ff2 ) << 3 ) + ( 1 << 15 ) ) >> 16 ;\n }\n }"}
{"idx": 8682, "target": 0, "func": "PXA2xxI2CState * pxa2xx_i2c_init ( hwaddr base , qemu_irq irq , uint32_t region_size ) {\n DeviceState * dev ;\n SysBusDevice * i2c_dev ;\n PXA2xxI2CState * s ;\n i2c_dev = SYS_BUS_DEVICE ( qdev_create ( NULL , \"pxa2xx_i2c\" ) ) ;\n qdev_prop_set_uint32 ( & i2c_dev -> qdev , \"size\" , region_size + 1 ) ;\n qdev_prop_set_uint32 ( & i2c_dev -> qdev , \"offset\" , base & region_size ) ;\n qdev_init_nofail ( & i2c_dev -> qdev ) ;\n sysbus_mmio_map ( i2c_dev , 0 , base & ~ region_size ) ;\n sysbus_connect_irq ( i2c_dev , 0 , irq ) ;\n s = FROM_SYSBUS ( PXA2xxI2CState , i2c_dev ) ;\n dev = i2c_create_slave ( i2c_init_bus ( NULL , \"dummy\" ) , \"pxa2xx-i2c-slave\" , 0 ) ;\n s -> slave = FROM_I2C_SLAVE ( PXA2xxI2CSlaveState , I2C_SLAVE ( dev ) ) ;\n s -> slave -> host = s ;\n return s ;\n }"}
{"idx": 8683, "target": 0, "func": "REPLACE * init_replace ( char * * from , char * * to , uint count , char * word_end_chars ) {\n static const int SPACE_CHAR = 256 ;\n static const int END_OF_LINE = 258 ;\n uint i , j , states , set_nr , len , result_len , max_length , found_end , bits_set , bit_nr ;\n int used_sets , chr , default_state ;\n char used_chars [ LAST_CHAR_CODE ] , is_word_end [ 256 ] ;\n char * pos , * to_pos , * * to_array ;\n REP_SETS sets ;\n REP_SET * set , * start_states , * word_states , * new_set ;\n FOLLOWS * follow , * follow_ptr ;\n REPLACE * replace ;\n FOUND_SET * found_set ;\n REPLACE_STRING * rep_str ;\n DBUG_ENTER ( \"init_replace\" ) ;\n for ( i = result_len = max_length = 0 , states = 2 ;\n i < count ;\n i ++ ) {\n len = replace_len ( from [ i ] ) ;\n if ( ! len ) {\n errno = EINVAL ;\n DBUG_RETURN ( 0 ) ;\n }\n states += len + 1 ;\n result_len += ( uint ) strlen ( to [ i ] ) + 1 ;\n if ( len > max_length ) max_length = len ;\n }\n bzero ( ( char * ) is_word_end , sizeof ( is_word_end ) ) ;\n for ( i = 0 ;\n word_end_chars [ i ] ;\n i ++ ) is_word_end [ ( uchar ) word_end_chars [ i ] ] = 1 ;\n if ( init_sets ( & sets , states ) ) DBUG_RETURN ( 0 ) ;\n found_sets = 0 ;\n if ( ! ( found_set = ( FOUND_SET * ) my_malloc ( sizeof ( FOUND_SET ) * max_length * count , MYF ( MY_WME ) ) ) ) {\n free_sets ( & sets ) ;\n DBUG_RETURN ( 0 ) ;\n }\n ( void ) make_new_set ( & sets ) ;\n make_sets_invisible ( & sets ) ;\n used_sets = - 1 ;\n word_states = make_new_set ( & sets ) ;\n start_states = make_new_set ( & sets ) ;\n if ( ! ( follow = ( FOLLOWS * ) my_malloc ( ( states + 2 ) * sizeof ( FOLLOWS ) , MYF ( MY_WME ) ) ) ) {\n free_sets ( & sets ) ;\n my_free ( found_set ) ;\n DBUG_RETURN ( 0 ) ;\n }\n for ( i = 0 , states = 1 , follow_ptr = follow + 1 ;\n i < count ;\n i ++ ) {\n if ( from [ i ] [ 0 ] == '\\\\' && from [ i ] [ 1 ] == '^' ) {\n internal_set_bit ( start_states , states + 1 ) ;\n if ( ! from [ i ] [ 2 ] ) {\n start_states -> table_offset = i ;\n start_states -> found_offset = 1 ;\n }\n }\n else if ( from [ i ] [ 0 ] == '\\\\' && from [ i ] [ 1 ] == '$' ) {\n internal_set_bit ( start_states , states ) ;\n internal_set_bit ( word_states , states ) ;\n if ( ! from [ i ] [ 2 ] && start_states -> table_offset == ( uint ) ~ 0 ) {\n start_states -> table_offset = i ;\n start_states -> found_offset = 0 ;\n }\n }\n else {\n internal_set_bit ( word_states , states ) ;\n if ( from [ i ] [ 0 ] == '\\\\' && ( from [ i ] [ 1 ] == 'b' && from [ i ] [ 2 ] ) ) internal_set_bit ( start_states , states + 1 ) ;\n else internal_set_bit ( start_states , states ) ;\n }\n for ( pos = from [ i ] , len = 0 ;\n * pos ;\n pos ++ ) {\n follow_ptr -> chr = ( uchar ) * pos ;\n follow_ptr -> table_offset = i ;\n follow_ptr -> len = ++ len ;\n follow_ptr ++ ;\n }\n follow_ptr -> chr = 0 ;\n follow_ptr -> table_offset = i ;\n follow_ptr -> len = len ;\n follow_ptr ++ ;\n states += ( uint ) len + 1 ;\n }\n for ( set_nr = 0 , pos = 0 ;\n set_nr < sets . count ;\n set_nr ++ ) {\n set = sets . set + set_nr ;\n default_state = 0 ;\n for ( i = ( uint ) ~ 0 ;\n ( i = get_next_bit ( set , i ) ) ;\n ) {\n if ( ! follow [ i ] . chr ) {\n if ( ! default_state ) default_state = find_found ( found_set , set -> table_offset , set -> found_offset + 1 ) ;\n }\n }\n copy_bits ( sets . set + used_sets , set ) ;\n if ( ! default_state ) or_bits ( sets . set + used_sets , sets . set ) ;\n bzero ( ( char * ) used_chars , sizeof ( used_chars ) ) ;\n for ( i = ( uint ) ~ 0 ;\n ( i = get_next_bit ( sets . set + used_sets , i ) ) ;\n ) {\n used_chars [ follow [ i ] . chr ] = 1 ;\n if ( ( follow [ i ] . chr == SPACE_CHAR && ! follow [ i + 1 ] . chr && follow [ i ] . len > 1 ) || follow [ i ] . chr == END_OF_LINE ) used_chars [ 0 ] = 1 ;\n }\n if ( used_chars [ SPACE_CHAR ] ) for ( pos = word_end_chars ;\n * pos ;\n pos ++ ) used_chars [ ( int ) ( uchar ) * pos ] = 1 ;\n for ( chr = 0 ;\n chr < 256 ;\n chr ++ ) {\n if ( ! used_chars [ chr ] ) set -> next [ chr ] = chr ? default_state : - 1 ;\n else {\n new_set = make_new_set ( & sets ) ;\n set = sets . set + set_nr ;\n new_set -> table_offset = set -> table_offset ;\n new_set -> found_len = set -> found_len ;\n new_set -> found_offset = set -> found_offset + 1 ;\n found_end = 0 ;\n for ( i = ( uint ) ~ 0 ;\n ( i = get_next_bit ( sets . set + used_sets , i ) ) ;\n ) {\n if ( ! follow [ i ] . chr || follow [ i ] . chr == chr || ( follow [ i ] . chr == SPACE_CHAR && ( is_word_end [ chr ] || ( ! chr && follow [ i ] . len > 1 && ! follow [ i + 1 ] . chr ) ) ) || ( follow [ i ] . chr == END_OF_LINE && ! chr ) ) {\n if ( ( ! chr || ( follow [ i ] . chr && ! follow [ i + 1 ] . chr ) ) && follow [ i ] . len > found_end ) found_end = follow [ i ] . len ;\n if ( chr && follow [ i ] . chr ) internal_set_bit ( new_set , i + 1 ) ;\n else internal_set_bit ( new_set , i ) ;\n }\n }\n if ( found_end ) {\n new_set -> found_len = 0 ;\n bits_set = 0 ;\n for ( i = ( uint ) ~ 0 ;\n ( i = get_next_bit ( new_set , i ) ) ;\n ) {\n if ( ( follow [ i ] . chr == SPACE_CHAR || follow [ i ] . chr == END_OF_LINE ) && ! chr ) bit_nr = i + 1 ;\n else bit_nr = i ;\n if ( follow [ bit_nr - 1 ] . len < found_end || ( new_set -> found_len && ( chr == 0 || ! follow [ bit_nr ] . chr ) ) ) internal_clear_bit ( new_set , i ) ;\n else {\n if ( chr == 0 || ! follow [ bit_nr ] . chr ) {\n new_set -> table_offset = follow [ bit_nr ] . table_offset ;\n if ( chr || ( follow [ i ] . chr == SPACE_CHAR || follow [ i ] . chr == END_OF_LINE ) ) new_set -> found_offset = found_end ;\n new_set -> found_len = found_end ;\n }\n bits_set ++ ;\n }\n }\n if ( bits_set == 1 ) {\n set -> next [ chr ] = find_found ( found_set , new_set -> table_offset , new_set -> found_offset ) ;\n free_last_set ( & sets ) ;\n }\n else set -> next [ chr ] = find_set ( & sets , new_set ) ;\n }\n else set -> next [ chr ] = find_set ( & sets , new_set ) ;\n }\n }\n }\n if ( ( replace = ( REPLACE * ) my_malloc ( sizeof ( REPLACE ) * ( sets . count ) + sizeof ( REPLACE_STRING ) * ( found_sets + 1 ) + sizeof ( char * ) * count + result_len , MYF ( MY_WME | MY_ZEROFILL ) ) ) ) {\n rep_str = ( REPLACE_STRING * ) ( replace + sets . count ) ;\n to_array = ( char * * ) ( rep_str + found_sets + 1 ) ;\n to_pos = ( char * ) ( to_array + count ) ;\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n to_array [ i ] = to_pos ;\n to_pos = strmov ( to_pos , to [ i ] ) + 1 ;\n }\n rep_str [ 0 ] . found = 1 ;\n rep_str [ 0 ] . replace_string = 0 ;\n for ( i = 1 ;\n i <= found_sets ;\n i ++ ) {\n pos = from [ found_set [ i - 1 ] . table_offset ] ;\n rep_str [ i ] . found = ! memcmp ( pos , \"\\\\^\" , 3 ) ? 2 : 1 ;\n rep_str [ i ] . replace_string = to_array [ found_set [ i - 1 ] . table_offset ] ;\n rep_str [ i ] . to_offset = found_set [ i - 1 ] . found_offset - start_at_word ( pos ) ;\n rep_str [ i ] . from_offset = found_set [ i - 1 ] . found_offset - replace_len ( pos ) + end_of_word ( pos ) ;\n }\n for ( i = 0 ;\n i < sets . count ;\n i ++ ) {\n for ( j = 0 ;\n j < 256 ;\n j ++ ) if ( sets . set [ i ] . next [ j ] >= 0 ) replace [ i ] . next [ j ] = replace + sets . set [ i ] . next [ j ] ;\n else replace [ i ] . next [ j ] = ( REPLACE * ) ( rep_str + ( - sets . set [ i ] . next [ j ] - 1 ) ) ;\n }\n }\n my_free ( follow ) ;\n free_sets ( & sets ) ;\n my_free ( found_set ) ;\n DBUG_PRINT ( \"exit\" , ( \"Replace table has %d states\" , sets . count ) ) ;\n DBUG_RETURN ( replace ) ;\n }"}
{"idx": 8684, "target": 0, "func": "static gboolean pk_transaction_authorize_actions ( PkTransaction * transaction , PkRoleEnum role , GPtrArray * actions ) {\n const gchar * action_id = NULL ;\n g_autoptr ( PolkitDetails ) details = NULL ;\n g_autofree gchar * package_ids = NULL ;\n GString * string = NULL ;\n PkTransactionPrivate * priv = transaction -> priv ;\n const gchar * text = NULL ;\n struct AuthorizeActionsData * data = NULL ;\n if ( actions -> len <= 0 ) {\n g_debug ( \"No authentication required\" ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_READY ) ;\n return TRUE ;\n }\n action_id = g_ptr_array_index ( actions , 0 ) ;\n syslog ( LOG_AUTH | LOG_INFO , \"uid %i is trying to obtain %s auth (only_trusted:%i)\" , priv -> uid , action_id , pk_bitfield_contain ( priv -> cached_transaction_flags , PK_TRANSACTION_FLAG_ENUM_ONLY_TRUSTED ) ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_WAITING_FOR_AUTH ) ;\n priv -> waiting_for_auth = TRUE ;\n details = polkit_details_new ( ) ;\n if ( priv -> cached_package_id != NULL ) package_ids = g_strdup ( priv -> cached_package_id ) ;\n else if ( priv -> cached_package_ids != NULL ) package_ids = pk_package_ids_to_string ( priv -> cached_package_ids ) ;\n if ( package_ids != NULL ) polkit_details_insert ( details , \"package_ids\" , package_ids ) ;\n if ( priv -> cmdline != NULL ) polkit_details_insert ( details , \"cmdline\" , priv -> cmdline ) ;\n if ( ( role == PK_ROLE_ENUM_INSTALL_PACKAGES || role == PK_ROLE_ENUM_UPDATE_PACKAGES ) && ! pk_bitfield_contain ( priv -> cached_transaction_flags , PK_TRANSACTION_FLAG_ENUM_ONLY_TRUSTED ) ) {\n polkit_details_insert ( details , \"polkit.icon_name\" , \"emblem-important\" ) ;\n string = g_string_new ( \"\" ) ;\n g_string_append ( string , g_dgettext ( GETTEXT_PACKAGE , N_ ( \"The software is not from a trusted source.\" ) ) ) ;\n g_string_append ( string , \"\\n\" ) ;\n if ( priv -> role == PK_ROLE_ENUM_UPDATE_PACKAGES ) {\n text = g_dngettext ( GETTEXT_PACKAGE , N_ ( \"Do not update this package unless you are sure it is safe to do so.\" ) , N_ ( \"Do not update these packages unless you are sure it is safe to do so.\" ) , g_strv_length ( priv -> cached_package_ids ) ) ;\n g_string_append ( string , text ) ;\n }\n if ( priv -> role == PK_ROLE_ENUM_INSTALL_PACKAGES ) {\n text = g_dngettext ( GETTEXT_PACKAGE , N_ ( \"Do not install this package unless you are sure it is safe to do so.\" ) , N_ ( \"Do not install these packages unless you are sure it is safe to do so.\" ) , g_strv_length ( priv -> cached_package_ids ) ) ;\n g_string_append ( string , text ) ;\n }\n if ( string -> len > 0 ) {\n polkit_details_insert ( details , \"polkit.gettext_domain\" , GETTEXT_PACKAGE ) ;\n polkit_details_insert ( details , \"polkit.message\" , string -> str ) ;\n }\n }\n data = g_new ( struct AuthorizeActionsData , 1 ) ;\n data -> transaction = transaction ;\n data -> role = role ;\n data -> actions = g_ptr_array_ref ( actions ) ;\n g_debug ( \"authorizing action %s\" , action_id ) ;\n polkit_authority_check_authorization ( priv -> authority , priv -> subject , action_id , details , POLKIT_CHECK_AUTHORIZATION_FLAGS_ALLOW_USER_INTERACTION , priv -> cancellable , ( GAsyncReadyCallback ) pk_transaction_authorize_actions_finished_cb , data ) ;\n return TRUE ;\n }"}
{"idx": 8685, "target": 1, "func": "void evhttp_read ( int fd , short what , void * arg ) {\n struct evhttp_connection * evcon = arg ;\n struct evhttp_request * req = TAILQ_FIRST ( & evcon -> requests ) ;\n struct evbuffer * buf = evcon -> input_buffer ;\n int n , len ;\n if ( what == EV_TIMEOUT ) {\n evhttp_connection_fail ( evcon , EVCON_HTTP_TIMEOUT ) ;\n return ;\n }\n n = evbuffer_read ( buf , fd , - 1 ) ;\n len = EVBUFFER_LENGTH ( buf ) ;\n event_debug ( ( \"%s: got %d on %d\\n\" , __func__ , n , fd ) ) ;\n if ( n == - 1 ) {\n if ( errno != EINTR && errno != EAGAIN ) {\n event_debug ( ( \"%s: evbuffer_read\" , __func__ ) ) ;\n evhttp_connection_fail ( evcon , EVCON_HTTP_EOF ) ;\n }\n else {\n evhttp_add_event ( & evcon -> ev , evcon -> timeout , HTTP_READ_TIMEOUT ) ;\n }\n return ;\n }\n else if ( n == 0 ) {\n evhttp_connection_done ( evcon ) ;\n return ;\n }\n switch ( evcon -> state ) {\n case EVCON_READING_FIRSTLINE : evhttp_read_firstline ( evcon , req ) ;\n break ;\n case EVCON_READING_HEADERS : evhttp_read_header ( evcon , req ) ;\n break ;\n case EVCON_READING_BODY : evhttp_read_body ( evcon , req ) ;\n break ;\n case EVCON_READING_TRAILER : evhttp_read_trailer ( evcon , req ) ;\n break ;\n case EVCON_DISCONNECTED : case EVCON_CONNECTING : case EVCON_IDLE : case EVCON_WRITING : default : event_errx ( 1 , \"%s: illegal connection state %d\" , __func__ , evcon -> state ) ;\n }\n }"}
{"idx": 8686, "target": 0, "func": "int qemuMonitorTextAttachDrive ( qemuMonitorPtr mon , const char * drivestr , virDomainDevicePCIAddress * controllerAddr , virDomainDeviceDriveAddress * driveAddr ) {\n char * cmd = NULL ;\n char * reply = NULL ;\n int ret = - 1 ;\n char * safe_str ;\n int tryOldSyntax = 0 ;\n safe_str = qemuMonitorEscapeArg ( drivestr ) ;\n if ( ! safe_str ) {\n virReportOOMError ( ) ;\n return - 1 ;\n }\n try_command : if ( virAsprintf ( & cmd , \"drive_add %s%.2x:%.2x:%.2x %s\" , ( tryOldSyntax ? \"\" : \"pci_addr=\" ) , controllerAddr -> domain , controllerAddr -> bus , controllerAddr -> slot , safe_str ) < 0 ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"failed to attach drive '%s'\" ) , drivestr ) ;\n goto cleanup ;\n }\n if ( strstr ( reply , \"unknown command:\" ) ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , _ ( \"drive hotplug is not supported\" ) ) ;\n goto cleanup ;\n }\n if ( qemudParseDriveAddReply ( reply , driveAddr ) < 0 ) {\n if ( ! tryOldSyntax && strstr ( reply , \"invalid char in expression\" ) ) {\n VIR_FREE ( reply ) ;\n VIR_FREE ( cmd ) ;\n tryOldSyntax = 1 ;\n goto try_command ;\n }\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"adding %s disk failed: %s\" ) , drivestr , reply ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( cmd ) ;\n VIR_FREE ( reply ) ;\n VIR_FREE ( safe_str ) ;\n return ret ;\n }"}
{"idx": 8687, "target": 0, "func": "int qemuMonitorJSONStopCPUs ( qemuMonitorPtr mon ) {\n int ret ;\n virJSONValuePtr cmd = qemuMonitorJSONMakeCommand ( \"stop\" , NULL ) ;\n virJSONValuePtr reply = NULL ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 8688, "target": 0, "func": "static void xhci_event ( XHCIState * xhci , XHCIEvent * event , int v ) {\n XHCIInterrupter * intr ;\n dma_addr_t erdp ;\n unsigned int dp_idx ;\n if ( v >= xhci -> numintrs ) {\n DPRINTF ( \"intr nr out of range (%d >= %d)\\n\" , v , xhci -> numintrs ) ;\n return ;\n }\n intr = & xhci -> intr [ v ] ;\n if ( intr -> er_full ) {\n DPRINTF ( \"xhci_event(): ER full, queueing\\n\" ) ;\n if ( ( ( intr -> ev_buffer_put + 1 ) % EV_QUEUE ) == intr -> ev_buffer_get ) {\n DPRINTF ( \"xhci: event queue full, dropping event!\\n\" ) ;\n return ;\n }\n intr -> ev_buffer [ intr -> ev_buffer_put ++ ] = * event ;\n if ( intr -> ev_buffer_put == EV_QUEUE ) {\n intr -> ev_buffer_put = 0 ;\n }\n return ;\n }\n erdp = xhci_addr64 ( intr -> erdp_low , intr -> erdp_high ) ;\n if ( erdp < intr -> er_start || erdp >= ( intr -> er_start + TRB_SIZE * intr -> er_size ) ) {\n DPRINTF ( \"xhci: ERDP out of bounds: \" DMA_ADDR_FMT \"\\n\" , erdp ) ;\n DPRINTF ( \"xhci: ER[%d] at \" DMA_ADDR_FMT \" len %d\\n\" , v , intr -> er_start , intr -> er_size ) ;\n xhci_die ( xhci ) ;\n return ;\n }\n dp_idx = ( erdp - intr -> er_start ) / TRB_SIZE ;\n assert ( dp_idx < intr -> er_size ) ;\n if ( ( intr -> er_ep_idx + 1 ) % intr -> er_size == dp_idx ) {\n DPRINTF ( \"xhci_event(): ER full, queueing\\n\" ) ;\n # ifndef ER_FULL_HACK XHCIEvent full = {\n ER_HOST_CONTROLLER , CC_EVENT_RING_FULL_ERROR }\n ;\n xhci_write_event ( xhci , & full ) ;\n # endif intr -> er_full = 1 ;\n if ( ( ( intr -> ev_buffer_put + 1 ) % EV_QUEUE ) == intr -> ev_buffer_get ) {\n DPRINTF ( \"xhci: event queue full, dropping event!\\n\" ) ;\n return ;\n }\n intr -> ev_buffer [ intr -> ev_buffer_put ++ ] = * event ;\n if ( intr -> ev_buffer_put == EV_QUEUE ) {\n intr -> ev_buffer_put = 0 ;\n }\n }\n else {\n xhci_write_event ( xhci , event , v ) ;\n }\n xhci_intr_raise ( xhci , v ) ;\n }"}
{"idx": 8689, "target": 0, "func": "int PEM_write_ ## name ( FILE * fp , type * x ) ;\n # define DECLARE_PEM_write_fp_const ( name , type ) int PEM_write_ ## name ( FILE * fp , const type * x ) ;\n # define DECLARE_PEM_write_cb_fp ( name , type ) int PEM_write_ ## name ( FILE * fp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # endif # define DECLARE_PEM_read_bio ( name , type ) type * PEM_read_bio_ ## name ( BIO * bp , type * * x , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL ) DECLARE_PEM_rw ( PKCS7 , PKCS7 ) DECLARE_PEM_rw ( NETSCAPE_CERT_SEQUENCE , NETSCAPE_CERT_SEQUENCE ) DECLARE_PEM_rw ( PKCS8 , X509_SIG ) DECLARE_PEM_rw ( PKCS8_PRIV_KEY_INFO , PKCS8_PRIV_KEY_INFO )"}
{"idx": 8690, "target": 0, "func": "static hm_fragment * dtls1_hm_fragment_new ( unsigned long frag_len , int reassembly ) {\n hm_fragment * frag = NULL ;\n unsigned char * buf = NULL ;\n unsigned char * bitmask = NULL ;\n frag = OPENSSL_malloc ( sizeof ( * frag ) ) ;\n if ( frag == NULL ) return NULL ;\n if ( frag_len ) {\n buf = OPENSSL_malloc ( frag_len ) ;\n if ( buf == NULL ) {\n OPENSSL_free ( frag ) ;\n return NULL ;\n }\n }\n frag -> fragment = buf ;\n if ( reassembly ) {\n bitmask = OPENSSL_zalloc ( RSMBLY_BITMASK_SIZE ( frag_len ) ) ;\n if ( bitmask == NULL ) {\n OPENSSL_free ( buf ) ;\n OPENSSL_free ( frag ) ;\n return NULL ;\n }\n }\n frag -> reassembly = bitmask ;\n return frag ;\n }"}
{"idx": 8691, "target": 0, "func": "static void gpgsm_set_status_handler ( void * engine , engine_status_handler_t fnc , void * fnc_value ) {\n engine_gpgsm_t gpgsm = engine ;\n gpgsm -> status . fnc = fnc ;\n gpgsm -> status . fnc_value = fnc_value ;\n }"}
{"idx": 8692, "target": 0, "func": "static uint32_t virtio_pci_config_readb ( void * opaque , uint32_t addr ) {\n VirtIOPCIProxy * proxy = opaque ;\n uint32_t config = VIRTIO_PCI_CONFIG ( & proxy -> pci_dev ) ;\n addr -= proxy -> addr ;\n if ( addr < config ) return virtio_ioport_read ( proxy , addr ) ;\n addr -= config ;\n return virtio_config_readb ( proxy -> vdev , addr ) ;\n }"}
{"idx": 8693, "target": 0, "func": "TSAction TSContScheduleEvery ( TSCont contp , ink_hrtime every , TSThreadPool tp ) {\n sdk_assert ( sdk_sanity_check_iocore_structure ( contp ) == TS_SUCCESS ) ;\n FORCE_PLUGIN_SCOPED_MUTEX ( contp ) ;\n INKContInternal * i = ( INKContInternal * ) contp ;\n TSAction action ;\n if ( ink_atomic_increment ( ( int * ) & i -> m_event_count , 1 ) < 0 ) {\n ink_assert ( ! \"not reached\" ) ;\n }\n EventType etype ;\n switch ( tp ) {\n case TS_THREAD_POOL_NET : case TS_THREAD_POOL_DEFAULT : etype = ET_NET ;\n break ;\n case TS_THREAD_POOL_TASK : etype = ET_TASK ;\n break ;\n default : etype = ET_TASK ;\n break ;\n }\n action = reinterpret_cast < TSAction > ( eventProcessor . schedule_every ( i , HRTIME_MSECONDS ( every ) , etype ) ) ;\n action = ( TSAction ) ( ( uintptr_t ) action | 0x1 ) ;\n return action ;\n }"}
{"idx": 8694, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( MediaStreamPermissionTest , DenyingMicDoesNotCauseStickyDenyForCameras ) {\n content : : WebContents * tab_contents = LoadTestPageInTab ( ) ;\n GetUserMediaWithSpecificConstraintsAndDeny ( tab_contents , kAudioOnlyCallConstraints ) ;\n EXPECT_TRUE ( GetUserMediaWithSpecificConstraintsAndAccept ( tab_contents , kVideoOnlyCallConstraints ) ) ;\n }"}
{"idx": 8695, "target": 0, "func": "static UBool makeToUTable ( CnvExtData * extData , UCMTable * table ) {\n int32_t toUCount ;\n toUCount = reduceToUMappings ( table ) ;\n extData -> toUTable = utm_open ( \"cnv extension toUTable\" , 0x10000 , UCNV_EXT_TO_U_MIN_CODE_POINT , 4 ) ;\n extData -> toUUChars = utm_open ( \"cnv extension toUUChars\" , 0x10000 , UCNV_EXT_TO_U_INDEX_MASK + 1 , 2 ) ;\n return generateToUTable ( extData , table , 0 , toUCount , 0 , 0 ) ;\n }"}
{"idx": 8696, "target": 0, "func": "static void prefixes ( struct vars * v ) {\n if ( v -> cflags & REG_QUOTE ) return ;\n if ( HAVE ( 4 ) && NEXT3 ( '*' , '*' , '*' ) ) switch ( * ( v -> now + 3 ) ) {\n case CHR ( '?' ) : ERR ( REG_BADPAT ) ;\n return ;\n break ;\n case CHR ( '=' ) : NOTE ( REG_UNONPOSIX ) ;\n v -> cflags |= REG_QUOTE ;\n v -> cflags &= ~ ( REG_ADVANCED | REG_EXPANDED | REG_NEWLINE ) ;\n v -> now += 4 ;\n return ;\n break ;\n case CHR ( ':' ) : NOTE ( REG_UNONPOSIX ) ;\n v -> cflags |= REG_ADVANCED ;\n v -> now += 4 ;\n break ;\n default : ERR ( REG_BADRPT ) ;\n return ;\n break ;\n }\n if ( ( v -> cflags & REG_ADVANCED ) != REG_ADVANCED ) return ;\n if ( HAVE ( 3 ) && NEXT2 ( '(' , '?' ) && iscalpha ( * ( v -> now + 2 ) ) ) {\n NOTE ( REG_UNONPOSIX ) ;\n v -> now += 2 ;\n for ( ;\n ! ATEOS ( ) && iscalpha ( * v -> now ) ;\n v -> now ++ ) switch ( * v -> now ) {\n case CHR ( 'b' ) : v -> cflags &= ~ ( REG_ADVANCED | REG_QUOTE ) ;\n break ;\n case CHR ( 'c' ) : v -> cflags &= ~ REG_ICASE ;\n break ;\n case CHR ( 'e' ) : v -> cflags |= REG_EXTENDED ;\n v -> cflags &= ~ ( REG_ADVF | REG_QUOTE ) ;\n break ;\n case CHR ( 'i' ) : v -> cflags |= REG_ICASE ;\n break ;\n case CHR ( 'm' ) : case CHR ( 'n' ) : v -> cflags |= REG_NEWLINE ;\n break ;\n case CHR ( 'p' ) : v -> cflags |= REG_NLSTOP ;\n v -> cflags &= ~ REG_NLANCH ;\n break ;\n case CHR ( 'q' ) : v -> cflags |= REG_QUOTE ;\n v -> cflags &= ~ REG_ADVANCED ;\n break ;\n case CHR ( 's' ) : v -> cflags &= ~ REG_NEWLINE ;\n break ;\n case CHR ( 't' ) : v -> cflags &= ~ REG_EXPANDED ;\n break ;\n case CHR ( 'w' ) : v -> cflags &= ~ REG_NLSTOP ;\n v -> cflags |= REG_NLANCH ;\n break ;\n case CHR ( 'x' ) : v -> cflags |= REG_EXPANDED ;\n break ;\n default : ERR ( REG_BADOPT ) ;\n return ;\n }\n if ( ! NEXT1 ( ')' ) ) {\n ERR ( REG_BADOPT ) ;\n return ;\n }\n v -> now ++ ;\n if ( v -> cflags & REG_QUOTE ) v -> cflags &= ~ ( REG_EXPANDED | REG_NEWLINE ) ;\n }\n }"}
{"idx": 8697, "target": 0, "func": "void chat_completion_init ( void ) {\n settings_add_str ( \"completion\" , \"completion_char\" , \":\" ) ;\n settings_add_bool ( \"completion\" , \"completion_auto\" , FALSE ) ;\n settings_add_int ( \"completion\" , \"completion_keep_publics\" , 50 ) ;\n settings_add_int ( \"completion\" , \"completion_keep_privates\" , 10 ) ;\n settings_add_bool ( \"completion\" , \"completion_nicks_lowercase\" , FALSE ) ;\n settings_add_bool ( \"completion\" , \"completion_strict\" , FALSE ) ;\n settings_add_bool ( \"completion\" , \"completion_empty_line\" , TRUE ) ;\n settings_add_choice ( \"completion\" , \"completion_nicks_match_case\" , COMPLETE_MCASE_AUTO , \"never;\nalways;\nauto\" ) ;\n settings_add_bool ( \"lookandfeel\" , \"expand_escapes\" , FALSE ) ;\n read_settings ( ) ;\n signal_add ( \"complete word\" , ( SIGNAL_FUNC ) sig_complete_word ) ;\n signal_add ( \"complete command msg\" , ( SIGNAL_FUNC ) sig_complete_msg ) ;\n signal_add ( \"complete command query\" , ( SIGNAL_FUNC ) sig_complete_msg ) ;\n signal_add ( \"complete command action\" , ( SIGNAL_FUNC ) sig_complete_msg ) ;\n signal_add ( \"complete erase command msg\" , ( SIGNAL_FUNC ) sig_erase_complete_msg ) ;\n signal_add ( \"complete erase command query\" , ( SIGNAL_FUNC ) sig_erase_complete_msg ) ;\n signal_add ( \"complete erase command action\" , ( SIGNAL_FUNC ) sig_erase_complete_msg ) ;\n signal_add ( \"complete command connect\" , ( SIGNAL_FUNC ) sig_complete_connect ) ;\n signal_add ( \"complete command server\" , ( SIGNAL_FUNC ) sig_complete_connect ) ;\n signal_add ( \"complete command disconnect\" , ( SIGNAL_FUNC ) sig_complete_tag ) ;\n signal_add ( \"complete command reconnect\" , ( SIGNAL_FUNC ) sig_complete_tag ) ;\n signal_add ( \"complete command window server\" , ( SIGNAL_FUNC ) sig_complete_tag ) ;\n signal_add ( \"complete command topic\" , ( SIGNAL_FUNC ) sig_complete_topic ) ;\n signal_add ( \"complete command away\" , ( SIGNAL_FUNC ) sig_complete_away ) ;\n signal_add ( \"complete command unalias\" , ( SIGNAL_FUNC ) sig_complete_unalias ) ;\n signal_add ( \"complete command alias\" , ( SIGNAL_FUNC ) sig_complete_alias ) ;\n signal_add ( \"complete command window goto\" , ( SIGNAL_FUNC ) sig_complete_window ) ;\n signal_add ( \"complete command window item move\" , ( SIGNAL_FUNC ) sig_complete_channel ) ;\n signal_add ( \"complete command server add\" , ( SIGNAL_FUNC ) sig_complete_server ) ;\n signal_add ( \"complete command server remove\" , ( SIGNAL_FUNC ) sig_complete_server ) ;\n signal_add ( \"complete command recode remove\" , ( SIGNAL_FUNC ) sig_complete_target ) ;\n signal_add ( \"message public\" , ( SIGNAL_FUNC ) sig_message_public ) ;\n signal_add ( \"message join\" , ( SIGNAL_FUNC ) sig_message_join ) ;\n signal_add ( \"message private\" , ( SIGNAL_FUNC ) sig_message_private ) ;\n signal_add ( \"message own_public\" , ( SIGNAL_FUNC ) sig_message_own_public ) ;\n signal_add ( \"message own_private\" , ( SIGNAL_FUNC ) sig_message_own_private ) ;\n signal_add ( \"nicklist remove\" , ( SIGNAL_FUNC ) sig_nick_removed ) ;\n signal_add ( \"nicklist changed\" , ( SIGNAL_FUNC ) sig_nick_changed ) ;\n signal_add ( \"send text\" , ( SIGNAL_FUNC ) event_text ) ;\n signal_add ( \"server disconnected\" , ( SIGNAL_FUNC ) sig_server_disconnected ) ;\n signal_add ( \"channel destroyed\" , ( SIGNAL_FUNC ) sig_channel_destroyed ) ;\n signal_add ( \"setup changed\" , ( SIGNAL_FUNC ) read_settings ) ;\n }"}
{"idx": 8698, "target": 0, "func": "static int h263_get_modb ( GetBitContext * gb , int pb_frame , int * cbpb ) {\n int c , mv = 1 ;\n if ( pb_frame < 3 ) {\n c = get_bits1 ( gb ) ;\n if ( pb_frame == 2 && c ) mv = ! get_bits1 ( gb ) ;\n }\n else {\n mv = get_unary ( gb , 0 , 4 ) + 1 ;\n c = mv & 1 ;\n mv = ! ! ( mv & 2 ) ;\n }\n if ( c ) * cbpb = get_bits ( gb , 6 ) ;\n return mv ;\n }"}
{"idx": 8699, "target": 0, "func": "static void vmsWarningHandler ( const char * module , const char * fmt , va_list ap ) {\n if ( module != NULL ) fprintf ( stderr , \"%s: \" , module ) ;\n fprintf ( stderr , \"Warning, \" ) ;\n vfprintf ( stderr , fmt , ap ) ;\n fprintf ( stderr , \".\\n\" ) ;\n }"}
{"idx": 8700, "target": 0, "func": "static Selectivity calc_arraycontsel ( VariableStatData * vardata , Datum constval , Oid elemtype , Oid operator ) {\n Selectivity selec ;\n TypeCacheEntry * typentry ;\n FmgrInfo * cmpfunc ;\n ArrayType * array ;\n typentry = lookup_type_cache ( elemtype , TYPECACHE_CMP_PROC_FINFO ) ;\n if ( ! OidIsValid ( typentry -> cmp_proc_finfo . fn_oid ) ) return DEFAULT_SEL ( operator ) ;\n cmpfunc = & typentry -> cmp_proc_finfo ;\n array = DatumGetArrayTypeP ( constval ) ;\n if ( HeapTupleIsValid ( vardata -> statsTuple ) && statistic_proc_security_check ( vardata , cmpfunc -> fn_oid ) ) {\n Form_pg_statistic stats ;\n Datum * values ;\n int nvalues ;\n float4 * numbers ;\n int nnumbers ;\n float4 * hist ;\n int nhist ;\n stats = ( Form_pg_statistic ) GETSTRUCT ( vardata -> statsTuple ) ;\n if ( get_attstatsslot ( vardata -> statsTuple , elemtype , vardata -> atttypmod , STATISTIC_KIND_MCELEM , InvalidOid , NULL , & values , & nvalues , & numbers , & nnumbers ) ) {\n if ( operator != OID_ARRAY_CONTAINED_OP || ! get_attstatsslot ( vardata -> statsTuple , elemtype , vardata -> atttypmod , STATISTIC_KIND_DECHIST , InvalidOid , NULL , NULL , NULL , & hist , & nhist ) ) {\n hist = NULL ;\n nhist = 0 ;\n }\n selec = mcelem_array_selec ( array , typentry , values , nvalues , numbers , nnumbers , hist , nhist , operator , cmpfunc ) ;\n if ( hist ) free_attstatsslot ( elemtype , NULL , 0 , hist , nhist ) ;\n free_attstatsslot ( elemtype , values , nvalues , numbers , nnumbers ) ;\n }\n else {\n selec = mcelem_array_selec ( array , typentry , NULL , 0 , NULL , 0 , NULL , 0 , operator , cmpfunc ) ;\n }\n selec *= ( 1.0 - stats -> stanullfrac ) ;\n }\n else {\n selec = mcelem_array_selec ( array , typentry , NULL , 0 , NULL , 0 , NULL , 0 , operator , cmpfunc ) ;\n }\n if ( PointerGetDatum ( array ) != constval ) pfree ( array ) ;\n return selec ;\n }"}
{"idx": 8701, "target": 0, "func": "static SplinePointList * SplinesFromLayers ( SplineChar * sc , int * flags , int tostroke ) {\n int layer ;\n SplinePointList * head = NULL , * last , * new , * nlast , * temp , * each , * transed ;\n StrokeInfo si ;\n int handle_eraser ;\n real inversetrans [ 6 ] , transform [ 6 ] ;\n int changed ;\n if ( tostroke ) {\n for ( layer = ly_fore ;\n layer < sc -> layer_cnt ;\n ++ layer ) {\n if ( sc -> layers [ layer ] . splines == NULL ) continue ;\n else if ( head == NULL ) head = sc -> layers [ layer ] . splines ;\n else last -> next = sc -> layers [ layer ] . splines ;\n for ( last = sc -> layers [ layer ] . splines ;\n last -> next != NULL ;\n last = last -> next ) ;\n sc -> layers [ layer ] . splines = NULL ;\n }\n return ( head ) ;\n }\n if ( * flags == - 1 ) * flags = PsStrokeFlagsDlg ( ) ;\n if ( * flags & sf_correctdir ) {\n for ( layer = ly_fore ;\n layer < sc -> layer_cnt ;\n ++ layer ) if ( sc -> layers [ layer ] . dofill ) SplineSetsCorrect ( sc -> layers [ layer ] . splines , & changed ) ;\n }\n handle_eraser = * flags & sf_handle_eraser ;\n for ( layer = ly_fore ;\n layer < sc -> layer_cnt ;\n ++ layer ) {\n if ( sc -> layers [ layer ] . dostroke ) {\n memset ( & si , '\\0' , sizeof ( si ) ) ;\n si . join = sc -> layers [ layer ] . stroke_pen . linejoin ;\n si . cap = sc -> layers [ layer ] . stroke_pen . linecap ;\n si . radius = sc -> layers [ layer ] . stroke_pen . width / 2.0f ;\n if ( sc -> layers [ layer ] . stroke_pen . width == WIDTH_INHERITED ) si . radius = .5 ;\n if ( si . cap == lc_inherited ) si . cap = lc_butt ;\n if ( si . join == lj_inherited ) si . join = lj_miter ;\n new = NULL ;\n memcpy ( transform , sc -> layers [ layer ] . stroke_pen . trans , 4 * sizeof ( real ) ) ;\n transform [ 4 ] = transform [ 5 ] = 0 ;\n MatInverse ( inversetrans , transform ) ;\n transed = SplinePointListTransform ( SplinePointListCopy ( sc -> layers [ layer ] . splines ) , inversetrans , tpt_AllPoints ) ;\n for ( each = transed ;\n each != NULL ;\n each = each -> next ) {\n temp = SplineSetStroke ( each , & si , sc -> layers [ layer ] . order2 ) ;\n if ( new == NULL ) new = temp ;\n else nlast -> next = temp ;\n if ( temp != NULL ) for ( nlast = temp ;\n nlast -> next != NULL ;\n nlast = nlast -> next ) ;\n }\n new = SplinePointListTransform ( new , transform , tpt_AllPoints ) ;\n SplinePointListsFree ( transed ) ;\n if ( handle_eraser && sc -> layers [ layer ] . stroke_pen . brush . col == 0xffffff ) {\n head = EraseStroke ( sc , head , new ) ;\n last = head ;\n if ( last != NULL ) for ( ;\n last -> next != NULL ;\n last = last -> next ) ;\n }\n else {\n if ( head == NULL ) head = new ;\n else last -> next = new ;\n if ( new != NULL ) for ( last = new ;\n last -> next != NULL ;\n last = last -> next ) ;\n }\n }\n if ( sc -> layers [ layer ] . dofill ) {\n if ( handle_eraser && sc -> layers [ layer ] . fill_brush . col == 0xffffff ) {\n head = EraseStroke ( sc , head , sc -> layers [ layer ] . splines ) ;\n last = head ;\n if ( last != NULL ) for ( ;\n last -> next != NULL ;\n last = last -> next ) ;\n }\n else {\n new = SplinePointListCopy ( sc -> layers [ layer ] . splines ) ;\n if ( head == NULL ) head = new ;\n else last -> next = new ;\n if ( new != NULL ) for ( last = new ;\n last -> next != NULL ;\n last = last -> next ) ;\n }\n }\n }\n return ( head ) ;\n }"}
{"idx": 8702, "target": 0, "func": "afs_int32 SPR_DumpEntry ( struct rx_call * call , afs_int32 apos , struct prdebugentry * aentry ) {\n afs_int32 code ;\n afs_int32 cid = ANONYMOUSID ;\n code = dumpEntry ( call , apos , aentry , & cid ) ;\n osi_auditU ( call , PTS_DmpEntEvent , code , AUD_LONG , apos , AUD_END ) ;\n ViceLog ( 125 , ( \"PTS_DumpEntry: code %d cid %d apos %d\\n\" , code , cid , apos ) ) ;\n return code ;\n }"}
{"idx": 8703, "target": 0, "func": "static void U_CALLCONV _UTF16LEOpen ( UConverter * cnv , UConverterLoadArgs * pArgs , UErrorCode * pErrorCode ) {\n ( void ) pArgs ;\n if ( UCNV_GET_VERSION ( cnv ) <= 1 ) {\n _UTF16LEReset ( cnv , UCNV_RESET_BOTH ) ;\n }\n else {\n * pErrorCode = U_ILLEGAL_ARGUMENT_ERROR ;\n }\n }"}
{"idx": 8704, "target": 0, "func": "static int selinux_shm_associate ( struct shmid_kernel * shp , int shmflg ) {\n struct ipc_security_struct * isec ;\n struct common_audit_data ad ;\n u32 sid = current_sid ( ) ;\n isec = shp -> shm_perm . security ;\n ad . type = LSM_AUDIT_DATA_IPC ;\n ad . u . ipc_id = shp -> shm_perm . key ;\n return avc_has_perm ( sid , isec -> sid , SECCLASS_SHM , SHM__ASSOCIATE , & ad ) ;\n }"}
{"idx": 8705, "target": 0, "func": "TSReturnCode sdk_sanity_check_null_ptr ( void * ptr ) {\n if ( ptr == nullptr ) {\n return TS_ERROR ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 8706, "target": 0, "func": "static int pfkey_send_migrate ( const struct xfrm_selector * sel , u8 dir , u8 type , const struct xfrm_migrate * m , int num_bundles , const struct xfrm_kmaddress * k ) {\n return - ENOPROTOOPT ;\n }"}
{"idx": 8707, "target": 0, "func": "static void write_intra_mode ( vp9_writer * w , PREDICTION_MODE mode , const vp9_prob * probs ) {\n vp9_write_token ( w , vp9_intra_mode_tree , probs , & intra_mode_encodings [ mode ] ) ;\n }"}
{"idx": 8708, "target": 0, "func": "static void dissect_zcl_part_rdhandshakeparam ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , guint * offset ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_part_partitioned_cluster_id , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n dissect_zcl_read_attr ( tvb , pinfo , tree , offset , ZBEE_ZCL_CID_PARTITION ) ;\n }"}
{"idx": 8709, "target": 0, "func": "static uint8_t * block_start ( uint8_t * framebuf , int stride , int mi_row , int mi_col ) {\n return framebuf + ( stride * mi_row * 8 ) + ( mi_col * 8 ) ;\n }"}
{"idx": 8710, "target": 0, "func": "static void U_CALLCONV ucnv_toUnicode_UTF8 ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n UConverter * cnv = args -> converter ;\n const unsigned char * mySource = ( unsigned char * ) args -> source ;\n UChar * myTarget = args -> target ;\n const unsigned char * sourceLimit = ( unsigned char * ) args -> sourceLimit ;\n const UChar * targetLimit = args -> targetLimit ;\n unsigned char * toUBytes = cnv -> toUBytes ;\n UBool isCESU8 = hasCESU8Data ( cnv ) ;\n uint32_t ch , ch2 = 0 ;\n int32_t i , inBytes ;\n if ( cnv -> toUnicodeStatus && myTarget < targetLimit ) {\n inBytes = cnv -> mode ;\n i = cnv -> toULength ;\n cnv -> toULength = 0 ;\n ch = cnv -> toUnicodeStatus ;\n cnv -> toUnicodeStatus = 0 ;\n goto morebytes ;\n }\n while ( mySource < sourceLimit && myTarget < targetLimit ) {\n ch = * ( mySource ++ ) ;\n if ( ch < 0x80 ) {\n * ( myTarget ++ ) = ( UChar ) ch ;\n }\n else {\n toUBytes [ 0 ] = ( char ) ch ;\n inBytes = bytesFromUTF8 [ ch ] ;\n i = 1 ;\n morebytes : while ( i < inBytes ) {\n if ( mySource < sourceLimit ) {\n toUBytes [ i ] = ( char ) ( ch2 = * mySource ) ;\n if ( ! U8_IS_TRAIL ( ch2 ) ) {\n break ;\n }\n ch = ( ch << 6 ) + ch2 ;\n ++ mySource ;\n i ++ ;\n }\n else {\n cnv -> toUnicodeStatus = ch ;\n cnv -> mode = inBytes ;\n cnv -> toULength = ( int8_t ) i ;\n goto donefornow ;\n }\n }\n ch -= offsetsFromUTF8 [ inBytes ] ;\n if ( i == inBytes && ch <= MAXIMUM_UTF && ch >= utf8_minChar32 [ i ] && ( isCESU8 ? i <= 3 : ! U_IS_SURROGATE ( ch ) ) ) {\n if ( ch <= MAXIMUM_UCS2 ) {\n * ( myTarget ++ ) = ( UChar ) ch ;\n }\n else {\n ch -= HALF_BASE ;\n * ( myTarget ++ ) = ( UChar ) ( ( ch >> HALF_SHIFT ) + SURROGATE_HIGH_START ) ;\n ch = ( ch & HALF_MASK ) + SURROGATE_LOW_START ;\n if ( myTarget < targetLimit ) {\n * ( myTarget ++ ) = ( UChar ) ch ;\n }\n else {\n cnv -> UCharErrorBuffer [ 0 ] = ( UChar ) ch ;\n cnv -> UCharErrorBufferLength = 1 ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n }\n else {\n cnv -> toULength = ( int8_t ) i ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n }\n }\n donefornow : if ( mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS ( * err ) ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n args -> target = myTarget ;\n args -> source = ( const char * ) mySource ;\n }"}
{"idx": 8711, "target": 0, "func": "static void compareIterators ( UCharIterator * iter1 , const char * n1 , UCharIterator * iter2 , const char * n2 ) {\n int32_t i , pos1 , pos2 , middle , length ;\n UChar32 c1 , c2 ;\n length = iter1 -> getIndex ( iter1 , UITER_LENGTH ) ;\n pos2 = iter2 -> getIndex ( iter2 , UITER_LENGTH ) ;\n if ( length != pos2 ) {\n log_err ( \"%s->getIndex(length)=%d != %d=%s->getIndex(length)\\n\" , n1 , length , pos2 , n2 ) ;\n return ;\n }\n middle = length / 2 ;\n pos1 = iter1 -> move ( iter1 , middle , UITER_ZERO ) ;\n if ( pos1 != middle ) {\n log_err ( \"%s->move(from 0 to middle %d)=%d does not move to the middle\\n\" , n1 , middle , pos1 ) ;\n return ;\n }\n pos2 = iter2 -> move ( iter2 , middle , UITER_ZERO ) ;\n if ( pos2 != middle ) {\n log_err ( \"%s->move(from 0 to middle %d)=%d does not move to the middle\\n\" , n2 , middle , pos2 ) ;\n return ;\n }\n c1 = iter1 -> current ( iter1 ) ;\n c2 = iter2 -> current ( iter2 ) ;\n if ( c1 != c2 ) {\n log_err ( \"%s->current()=U+%04x != U+%04x=%s->current() at middle=%d\\n\" , n1 , c1 , c2 , n2 , middle ) ;\n return ;\n }\n for ( i = 0 ;\n i < 3 ;\n ++ i ) {\n c1 = iter1 -> next ( iter1 ) ;\n c2 = iter2 -> next ( iter2 ) ;\n if ( c1 != c2 ) {\n log_err ( \"%s->next()=U+%04x != U+%04x=%s->next() at %d (started in middle)\\n\" , n1 , c1 , c2 , n2 , iter1 -> getIndex ( iter1 , UITER_CURRENT ) ) ;\n return ;\n }\n }\n for ( i = 0 ;\n i < 5 ;\n ++ i ) {\n c1 = iter1 -> previous ( iter1 ) ;\n c2 = iter2 -> previous ( iter2 ) ;\n if ( c1 != c2 ) {\n log_err ( \"%s->previous()=U+%04x != U+%04x=%s->previous() at %d (started in middle)\\n\" , n1 , c1 , c2 , n2 , iter1 -> getIndex ( iter1 , UITER_CURRENT ) ) ;\n return ;\n }\n }\n pos1 = iter1 -> move ( iter1 , 0 , UITER_START ) ;\n if ( pos1 < 0 ) {\n log_err ( \"%s->move(start) failed\\n\" , n1 ) ;\n return ;\n }\n if ( ! iter1 -> hasNext ( iter1 ) ) {\n log_err ( \"%s->hasNext() at the start returns FALSE\\n\" , n1 ) ;\n return ;\n }\n pos2 = iter2 -> move ( iter2 , 0 , UITER_START ) ;\n if ( pos2 < 0 ) {\n log_err ( \"%s->move(start) failed\\n\" , n2 ) ;\n return ;\n }\n if ( ! iter2 -> hasNext ( iter2 ) ) {\n log_err ( \"%s->hasNext() at the start returns FALSE\\n\" , n2 ) ;\n return ;\n }\n do {\n c1 = iter1 -> next ( iter1 ) ;\n c2 = iter2 -> next ( iter2 ) ;\n if ( c1 != c2 ) {\n log_err ( \"%s->next()=U+%04x != U+%04x=%s->next() at %d\\n\" , n1 , c1 , c2 , n2 , iter1 -> getIndex ( iter1 , UITER_CURRENT ) ) ;\n return ;\n }\n }\n while ( c1 >= 0 ) ;\n if ( iter1 -> hasNext ( iter1 ) ) {\n log_err ( \"%s->hasNext() at the end returns TRUE\\n\" , n1 ) ;\n return ;\n }\n if ( iter2 -> hasNext ( iter2 ) ) {\n log_err ( \"%s->hasNext() at the end returns TRUE\\n\" , n2 ) ;\n return ;\n }\n pos1 = iter1 -> move ( iter1 , middle , UITER_ZERO ) ;\n if ( pos1 != middle ) {\n log_err ( \"%s->move(from end to middle %d)=%d does not move to the middle\\n\" , n1 , middle , pos1 ) ;\n return ;\n }\n pos2 = iter2 -> move ( iter2 , middle , UITER_ZERO ) ;\n if ( pos2 != middle ) {\n log_err ( \"%s->move(from end to middle %d)=%d does not move to the middle\\n\" , n2 , middle , pos2 ) ;\n return ;\n }\n pos1 = iter1 -> move ( iter1 , 1 , UITER_ZERO ) ;\n if ( pos1 != 1 ) {\n log_err ( \"%s->move(from middle %d to 1)=%d does not move to 1\\n\" , n1 , middle , pos1 ) ;\n return ;\n }\n pos2 = iter2 -> move ( iter2 , 1 , UITER_ZERO ) ;\n if ( pos2 != 1 ) {\n log_err ( \"%s->move(from middle %d to 1)=%d does not move to 1\\n\" , n2 , middle , pos2 ) ;\n return ;\n }\n pos1 = iter1 -> move ( iter1 , 0 , UITER_LIMIT ) ;\n if ( pos1 < 0 ) {\n log_err ( \"%s->move(limit) failed\\n\" , n1 ) ;\n return ;\n }\n if ( ! iter1 -> hasPrevious ( iter1 ) ) {\n log_err ( \"%s->hasPrevious() at the end returns FALSE\\n\" , n1 ) ;\n return ;\n }\n pos2 = iter2 -> move ( iter2 , 0 , UITER_LIMIT ) ;\n if ( pos2 < 0 ) {\n log_err ( \"%s->move(limit) failed\\n\" , n2 ) ;\n return ;\n }\n if ( ! iter2 -> hasPrevious ( iter2 ) ) {\n log_err ( \"%s->hasPrevious() at the end returns FALSE\\n\" , n2 ) ;\n return ;\n }\n do {\n c1 = iter1 -> previous ( iter1 ) ;\n c2 = iter2 -> previous ( iter2 ) ;\n if ( c1 != c2 ) {\n log_err ( \"%s->previous()=U+%04x != U+%04x=%s->previous() at %d\\n\" , n1 , c1 , c2 , n2 , iter1 -> getIndex ( iter1 , UITER_CURRENT ) ) ;\n return ;\n }\n }\n while ( c1 >= 0 ) ;\n if ( iter1 -> hasPrevious ( iter1 ) ) {\n log_err ( \"%s->hasPrevious() at the start returns TRUE\\n\" , n1 ) ;\n return ;\n }\n if ( iter2 -> hasPrevious ( iter2 ) ) {\n log_err ( \"%s->hasPrevious() at the start returns TRUE\\n\" , n2 ) ;\n return ;\n }\n }"}
{"idx": 8712, "target": 0, "func": "static void destroy_server ( struct server * server ) {\n if ( server -> method ) ss_free ( server -> method ) ;\n if ( server -> plugin ) ss_free ( server -> plugin ) ;\n if ( server -> plugin_opts ) ss_free ( server -> plugin_opts ) ;\n if ( server -> mode ) ss_free ( server -> mode ) ;\n }"}
{"idx": 8713, "target": 1, "func": "const mbfl_encoding * mbfl_identify_encoding ( mbfl_string * string , enum mbfl_no_encoding * elist , int elistsz , int strict ) {\n int i , n , num , bad ;\n unsigned char * p ;\n mbfl_identify_filter * flist , * filter ;\n const mbfl_encoding * encoding ;\n flist = ( mbfl_identify_filter * ) mbfl_calloc ( elistsz , sizeof ( mbfl_identify_filter ) ) ;\n if ( flist == NULL ) {\n return NULL ;\n }\n num = 0 ;\n if ( elist != NULL ) {\n for ( i = 0 ;\n i < elistsz ;\n i ++ ) {\n if ( ! mbfl_identify_filter_init ( & flist [ num ] , elist [ i ] ) ) {\n num ++ ;\n }\n }\n }\n n = string -> len ;\n p = string -> val ;\n if ( p != NULL ) {\n bad = 0 ;\n while ( n > 0 ) {\n for ( i = 0 ;\n i < num ;\n i ++ ) {\n filter = & flist [ i ] ;\n if ( ! filter -> flag ) {\n ( * filter -> filter_function ) ( * p , filter ) ;\n if ( filter -> flag ) {\n bad ++ ;\n }\n }\n }\n if ( ( num - 1 ) <= bad && ! strict ) {\n break ;\n }\n p ++ ;\n n -- ;\n }\n }\n encoding = NULL ;\n for ( i = 0 ;\n i < num ;\n i ++ ) {\n filter = & flist [ i ] ;\n if ( ! filter -> flag ) {\n if ( strict && filter -> status ) {\n continue ;\n }\n encoding = filter -> encoding ;\n break ;\n }\n }\n if ( ! encoding ) {\n for ( i = 0 ;\n i < num ;\n i ++ ) {\n filter = & flist [ i ] ;\n if ( ! filter -> flag && ( ! strict || ! filter -> status ) ) {\n encoding = filter -> encoding ;\n break ;\n }\n }\n }\n i = num ;\n while ( -- i >= 0 ) {\n mbfl_identify_filter_cleanup ( & flist [ i ] ) ;\n }\n mbfl_free ( ( void * ) flist ) ;\n return encoding ;\n }"}
{"idx": 8714, "target": 0, "func": "static guint16 de_conn_num ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string , int string_len ) {\n const gchar * extr_addr ;\n de_bcd_num ( tvb , tree , pinfo , offset , len , hf_gsm_a_dtap_conn_num , & extr_addr ) ;\n if ( extr_addr && add_string ) g_snprintf ( add_string , string_len , \" - (%s)\" , extr_addr ) ;\n return ( len ) ;\n }"}
{"idx": 8715, "target": 0, "func": "static void virtio_pci_config_writel ( void * opaque , uint32_t addr , uint32_t val ) {\n VirtIOPCIProxy * proxy = opaque ;\n uint32_t config = VIRTIO_PCI_CONFIG ( & proxy -> pci_dev ) ;\n addr -= proxy -> addr ;\n if ( addr < config ) {\n virtio_ioport_write ( proxy , addr , val ) ;\n return ;\n }\n addr -= config ;\n virtio_config_writel ( proxy -> vdev , addr , val ) ;\n }"}
{"idx": 8716, "target": 0, "func": "static inline void vmsvga_update_rect_delayed ( struct vmsvga_state_s * s , int x , int y , int w , int h ) {\n struct vmsvga_rect_s * rect = & s -> redraw_fifo [ s -> redraw_fifo_last ++ ] ;\n s -> redraw_fifo_last &= REDRAW_FIFO_LEN - 1 ;\n rect -> x = x ;\n rect -> y = y ;\n rect -> w = w ;\n rect -> h = h ;\n }"}
{"idx": 8717, "target": 0, "func": "static void usb_ehci_pci_write_config ( PCIDevice * dev , uint32_t addr , uint32_t val , int l ) {\n EHCIPCIState * i = PCI_EHCI ( dev ) ;\n bool busmaster ;\n pci_default_write_config ( dev , addr , val , l ) ;\n if ( ! range_covers_byte ( addr , l , PCI_COMMAND ) ) {\n return ;\n }\n busmaster = pci_get_word ( dev -> config + PCI_COMMAND ) & PCI_COMMAND_MASTER ;\n i -> ehci . as = busmaster ? pci_get_address_space ( dev ) : & address_space_memory ;\n }"}
{"idx": 8718, "target": 0, "func": "unsigned int vp9_sub_pixel_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp2 , W , dst , dst_stride , sse ) ;\n \\ }\n # define SUBPIX_AVG_VAR ( W , H ) unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 ) VAR ( 8 , 4 ) SUBPIX_VAR ( 8 , 4 ) SUBPIX_AVG_VAR ( 8 , 4 ) VAR ( 8 , 8 ) SUBPIX_VAR ( 8 , 8 ) SUBPIX_AVG_VAR ( 8 , 8 ) VAR ( 8 , 16 ) SUBPIX_VAR ( 8 , 16 ) SUBPIX_AVG_VAR ( 8 , 16 ) VAR ( 16 , 8 ) SUBPIX_VAR ( 16 , 8 ) SUBPIX_AVG_VAR ( 16 , 8 ) VAR ( 16 , 16 ) SUBPIX_VAR ( 16 , 16 ) SUBPIX_AVG_VAR ( 16 , 16 ) VAR ( 16 , 32 ) SUBPIX_VAR ( 16 , 32 ) SUBPIX_AVG_VAR ( 16 , 32 ) VAR ( 32 , 16 ) SUBPIX_VAR ( 32 , 16 ) SUBPIX_AVG_VAR ( 32 , 16 ) VAR ( 32 , 32 ) SUBPIX_VAR ( 32 , 32 ) SUBPIX_AVG_VAR ( 32 , 32 ) VAR ( 32 , 64 ) SUBPIX_VAR ( 32 , 64 )"}
{"idx": 8719, "target": 1, "func": "void vp9_tokenize_sb ( VP9_COMP * cpi , TOKENEXTRA * * t , int dry_run , BLOCK_SIZE bsize ) {\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCKD * const xd = & cpi -> mb . e_mbd ;\n MB_MODE_INFO * const mbmi = & xd -> mi [ 0 ] -> mbmi ;\n TOKENEXTRA * t_backup = * t ;\n const int ctx = vp9_get_skip_context ( xd ) ;\n const int skip_inc = ! vp9_segfeature_active ( & cm -> seg , mbmi -> segment_id , SEG_LVL_SKIP ) ;\n struct tokenize_b_args arg = {\n cpi , xd , t }\n ;\n if ( mbmi -> skip ) {\n if ( ! dry_run ) cm -> counts . skip [ ctx ] [ 1 ] += skip_inc ;\n reset_skip_context ( xd , bsize ) ;\n if ( dry_run ) * t = t_backup ;\n return ;\n }\n if ( ! dry_run ) {\n cm -> counts . skip [ ctx ] [ 0 ] += skip_inc ;\n vp9_foreach_transformed_block ( xd , bsize , tokenize_b , & arg ) ;\n }\n else {\n vp9_foreach_transformed_block ( xd , bsize , set_entropy_context_b , & arg ) ;\n * t = t_backup ;\n }\n }"}
{"idx": 8720, "target": 0, "func": "static inline void SetPixelChannel ( const Image * restrict image , const PixelChannel channel , const Quantum quantum , Quantum * restrict pixel ) {\n if ( image -> channel_map [ channel ] . traits != UndefinedPixelTrait ) pixel [ image -> channel_map [ channel ] . offset ] = quantum ;\n }"}
{"idx": 8721, "target": 0, "func": "int PEM_write_ ## name ( FILE * fp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # endif # define DECLARE_PEM_read_bio ( name , type ) type * PEM_read_bio_ ## name ( BIO * bp , type * * x , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL ) DECLARE_PEM_rw ( PKCS7 , PKCS7 ) DECLARE_PEM_rw ( NETSCAPE_CERT_SEQUENCE , NETSCAPE_CERT_SEQUENCE ) DECLARE_PEM_rw ( PKCS8 , X509_SIG ) DECLARE_PEM_rw ( PKCS8_PRIV_KEY_INFO , PKCS8_PRIV_KEY_INFO ) # ifndef OPENSSL_NO_RSA DECLARE_PEM_rw_cb ( RSAPrivateKey , RSA ) DECLARE_PEM_rw_const ( RSAPublicKey , RSA ) DECLARE_PEM_rw ( RSA_PUBKEY , RSA ) # endif # ifndef OPENSSL_NO_DSA DECLARE_PEM_rw_cb ( DSAPrivateKey , DSA ) DECLARE_PEM_rw ( DSA_PUBKEY , DSA ) DECLARE_PEM_rw_const ( DSAparams , DSA ) # endif # ifndef OPENSSL_NO_EC DECLARE_PEM_rw_const ( ECPKParameters , EC_GROUP ) DECLARE_PEM_rw_cb ( ECPrivateKey , EC_KEY )"}
{"idx": 8722, "target": 0, "func": "static void dissect_rtmpt_body_scm ( tvbuff_t * tvb , gint offset , proto_tree * rtmpt_tree , guint scm ) {\n switch ( scm ) {\n case RTMPT_TYPE_CHUNK_SIZE : proto_tree_add_item ( rtmpt_tree , hf_rtmpt_scm_chunksize , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n break ;\n case RTMPT_TYPE_ABORT_MESSAGE : proto_tree_add_item ( rtmpt_tree , hf_rtmpt_scm_csid , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n break ;\n case RTMPT_TYPE_ACKNOWLEDGEMENT : proto_tree_add_item ( rtmpt_tree , hf_rtmpt_scm_seq , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n break ;\n case RTMPT_TYPE_UCM : proto_tree_add_item ( rtmpt_tree , hf_rtmpt_ucm_eventtype , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n break ;\n case RTMPT_TYPE_WINDOW : proto_tree_add_item ( rtmpt_tree , hf_rtmpt_scm_was , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n break ;\n case RTMPT_TYPE_PEER_BANDWIDTH : proto_tree_add_item ( rtmpt_tree , hf_rtmpt_scm_was , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rtmpt_tree , hf_rtmpt_scm_limittype , tvb , offset + 4 , 1 , ENC_BIG_ENDIAN ) ;\n break ;\n }\n }"}
{"idx": 8723, "target": 0, "func": "static inline Quantum GetPixelCyan ( const Image * restrict image , const Quantum * restrict pixel ) {\n return ( pixel [ image -> channel_map [ CyanPixelChannel ] . offset ] ) ;\n }"}
{"idx": 8724, "target": 0, "func": "void ff_vdpau_mpeg_picture_complete ( MpegEncContext * s , const uint8_t * buf , int buf_size , int slice_count ) {\n struct vdpau_render_state * render , * last , * next ;\n int i ;\n if ( ! s -> current_picture_ptr ) return ;\n render = ( struct vdpau_render_state * ) s -> current_picture_ptr -> f . data [ 0 ] ;\n assert ( render ) ;\n render -> info . mpeg . picture_structure = s -> picture_structure ;\n render -> info . mpeg . picture_coding_type = s -> pict_type ;\n render -> info . mpeg . intra_dc_precision = s -> intra_dc_precision ;\n render -> info . mpeg . frame_pred_frame_dct = s -> frame_pred_frame_dct ;\n render -> info . mpeg . concealment_motion_vectors = s -> concealment_motion_vectors ;\n render -> info . mpeg . intra_vlc_format = s -> intra_vlc_format ;\n render -> info . mpeg . alternate_scan = s -> alternate_scan ;\n render -> info . mpeg . q_scale_type = s -> q_scale_type ;\n render -> info . mpeg . top_field_first = s -> top_field_first ;\n render -> info . mpeg . full_pel_forward_vector = s -> full_pel [ 0 ] ;\n render -> info . mpeg . full_pel_backward_vector = s -> full_pel [ 1 ] ;\n render -> info . mpeg . f_code [ 0 ] [ 0 ] = s -> mpeg_f_code [ 0 ] [ 0 ] ;\n render -> info . mpeg . f_code [ 0 ] [ 1 ] = s -> mpeg_f_code [ 0 ] [ 1 ] ;\n render -> info . mpeg . f_code [ 1 ] [ 0 ] = s -> mpeg_f_code [ 1 ] [ 0 ] ;\n render -> info . mpeg . f_code [ 1 ] [ 1 ] = s -> mpeg_f_code [ 1 ] [ 1 ] ;\n for ( i = 0 ;\n i < 64 ;\n ++ i ) {\n render -> info . mpeg . intra_quantizer_matrix [ i ] = s -> intra_matrix [ i ] ;\n render -> info . mpeg . non_intra_quantizer_matrix [ i ] = s -> inter_matrix [ i ] ;\n }\n render -> info . mpeg . forward_reference = VDP_INVALID_HANDLE ;\n render -> info . mpeg . backward_reference = VDP_INVALID_HANDLE ;\n switch ( s -> pict_type ) {\n case AV_PICTURE_TYPE_B : next = ( struct vdpau_render_state * ) s -> next_picture . f . data [ 0 ] ;\n assert ( next ) ;\n render -> info . mpeg . backward_reference = next -> surface ;\n case AV_PICTURE_TYPE_P : last = ( struct vdpau_render_state * ) s -> last_picture . f . data [ 0 ] ;\n if ( ! last ) last = render ;\n render -> info . mpeg . forward_reference = last -> surface ;\n }\n ff_vdpau_add_data_chunk ( s -> current_picture_ptr -> f . data [ 0 ] , buf , buf_size ) ;\n render -> info . mpeg . slice_count = slice_count ;\n if ( slice_count ) ff_mpeg_draw_horiz_band ( s , 0 , s -> avctx -> height ) ;\n render -> bitstream_buffers_used = 0 ;\n }"}
{"idx": 8725, "target": 0, "func": "static struct qcms_modular_transform * qcms_modular_transform_create_output ( qcms_profile * out ) {\n struct qcms_modular_transform * first_transform = NULL ;\n struct qcms_modular_transform * * next_transform = & first_transform ;\n if ( out -> B2A0 ) {\n struct qcms_modular_transform * lut_transform ;\n lut_transform = qcms_modular_transform_create_lut ( out -> B2A0 ) ;\n if ( ! lut_transform ) goto fail ;\n append_transform ( lut_transform , & next_transform ) ;\n }\n else if ( out -> mBA && out -> mBA -> num_in_channels == 3 && out -> mBA -> num_out_channels == 3 ) {\n struct qcms_modular_transform * lut_transform ;\n lut_transform = qcms_modular_transform_create_mAB ( out -> mBA ) ;\n if ( ! lut_transform ) goto fail ;\n append_transform ( lut_transform , & next_transform ) ;\n }\n else if ( out -> redTRC && out -> greenTRC && out -> blueTRC ) {\n struct qcms_modular_transform * transform ;\n transform = qcms_modular_transform_alloc ( ) ;\n if ( ! transform ) goto fail ;\n append_transform ( transform , & next_transform ) ;\n transform -> matrix = matrix_invert ( build_colorant_matrix ( out ) ) ;\n transform -> transform_module_fn = qcms_transform_module_matrix ;\n transform = qcms_modular_transform_alloc ( ) ;\n if ( ! transform ) goto fail ;\n append_transform ( transform , & next_transform ) ;\n transform -> matrix . m [ 0 ] [ 0 ] = 1.999969482421875f ;\n transform -> matrix . m [ 0 ] [ 1 ] = 0.f ;\n transform -> matrix . m [ 0 ] [ 2 ] = 0.f ;\n transform -> matrix . m [ 1 ] [ 0 ] = 0.f ;\n transform -> matrix . m [ 1 ] [ 1 ] = 1.999969482421875f ;\n transform -> matrix . m [ 1 ] [ 2 ] = 0.f ;\n transform -> matrix . m [ 2 ] [ 0 ] = 0.f ;\n transform -> matrix . m [ 2 ] [ 1 ] = 0.f ;\n transform -> matrix . m [ 2 ] [ 2 ] = 1.999969482421875f ;\n transform -> matrix . invalid = false ;\n transform -> transform_module_fn = qcms_transform_module_matrix ;\n transform = qcms_modular_transform_alloc ( ) ;\n if ( ! transform ) goto fail ;\n append_transform ( transform , & next_transform ) ;\n build_output_lut ( out -> redTRC , & transform -> output_gamma_lut_r , & transform -> output_gamma_lut_r_length ) ;\n build_output_lut ( out -> greenTRC , & transform -> output_gamma_lut_g , & transform -> output_gamma_lut_g_length ) ;\n build_output_lut ( out -> blueTRC , & transform -> output_gamma_lut_b , & transform -> output_gamma_lut_b_length ) ;\n transform -> transform_module_fn = qcms_transform_module_gamma_lut ;\n if ( ! transform -> output_gamma_lut_r || ! transform -> output_gamma_lut_g || ! transform -> output_gamma_lut_b ) {\n goto fail ;\n }\n }\n else {\n assert ( 0 && \"Unsupported output profile workflow.\" ) ;\n return NULL ;\n }\n return first_transform ;\n fail : qcms_modular_transform_release ( first_transform ) ;\n return EMPTY_TRANSFORM_LIST ;\n }"}
{"idx": 8726, "target": 0, "func": "UChar * ufmt_defaultCPToUnicode ( const char * s , int32_t sSize , UChar * target , int32_t tSize ) {\n UChar * alias ;\n UErrorCode status = U_ZERO_ERROR ;\n UConverter * defConverter = u_getDefaultConverter ( & status ) ;\n if ( U_FAILURE ( status ) || defConverter == 0 ) return 0 ;\n if ( sSize <= 0 ) {\n sSize = uprv_strlen ( s ) + 1 ;\n }\n if ( target != 0 ) {\n alias = target ;\n ucnv_toUnicode ( defConverter , & alias , alias + tSize , & s , s + sSize - 1 , NULL , TRUE , & status ) ;\n * alias = 0x0000 ;\n }\n u_releaseDefaultConverter ( defConverter ) ;\n return target ;\n }"}
{"idx": 8727, "target": 0, "func": "static void qdev_print_props ( Monitor * mon , DeviceState * dev , Property * props , const char * prefix , int indent ) {\n char buf [ 64 ] ;\n if ( ! props ) return ;\n while ( props -> name ) {\n if ( props -> info -> print ) {\n props -> info -> print ( dev , props , buf , sizeof ( buf ) ) ;\n qdev_printf ( \"%s-prop: %s = %s\\n\" , prefix , props -> name , buf ) ;\n }\n props ++ ;\n }\n }"}
{"idx": 8728, "target": 0, "func": "static bool convert_to_scalar ( Datum value , Oid valuetypid , double * scaledvalue , Datum lobound , Datum hibound , Oid boundstypid , double * scaledlobound , double * scaledhibound ) {\n switch ( valuetypid ) {\n case BOOLOID : case INT2OID : case INT4OID : case INT8OID : case FLOAT4OID : case FLOAT8OID : case NUMERICOID : case OIDOID : case REGPROCOID : case REGPROCEDUREOID : case REGOPEROID : case REGOPERATOROID : case REGCLASSOID : case REGTYPEOID : case REGCONFIGOID : case REGDICTIONARYOID : case REGROLEOID : case REGNAMESPACEOID : * scaledvalue = convert_numeric_to_scalar ( value , valuetypid ) ;\n * scaledlobound = convert_numeric_to_scalar ( lobound , boundstypid ) ;\n * scaledhibound = convert_numeric_to_scalar ( hibound , boundstypid ) ;\n return true ;\n case CHAROID : case BPCHAROID : case VARCHAROID : case TEXTOID : case NAMEOID : {\n char * valstr = convert_string_datum ( value , valuetypid ) ;\n char * lostr = convert_string_datum ( lobound , boundstypid ) ;\n char * histr = convert_string_datum ( hibound , boundstypid ) ;\n convert_string_to_scalar ( valstr , scaledvalue , lostr , scaledlobound , histr , scaledhibound ) ;\n pfree ( valstr ) ;\n pfree ( lostr ) ;\n pfree ( histr ) ;\n return true ;\n }\n case BYTEAOID : {\n convert_bytea_to_scalar ( value , scaledvalue , lobound , scaledlobound , hibound , scaledhibound ) ;\n return true ;\n }\n case TIMESTAMPOID : case TIMESTAMPTZOID : case ABSTIMEOID : case DATEOID : case INTERVALOID : case RELTIMEOID : case TINTERVALOID : case TIMEOID : case TIMETZOID : * scaledvalue = convert_timevalue_to_scalar ( value , valuetypid ) ;\n * scaledlobound = convert_timevalue_to_scalar ( lobound , boundstypid ) ;\n * scaledhibound = convert_timevalue_to_scalar ( hibound , boundstypid ) ;\n return true ;\n case INETOID : case CIDROID : case MACADDROID : * scaledvalue = convert_network_to_scalar ( value , valuetypid ) ;\n * scaledlobound = convert_network_to_scalar ( lobound , boundstypid ) ;\n * scaledhibound = convert_network_to_scalar ( hibound , boundstypid ) ;\n return true ;\n }\n * scaledvalue = * scaledlobound = * scaledhibound = 0 ;\n return false ;\n }"}
{"idx": 8729, "target": 0, "func": "static void ResetPTStlb ( encoder_t * p_enc ) {\n encoder_sys_t * p_sys = p_enc -> p_sys ;\n for ( int i = 0 ;\n i < SCHRO_PTS_TLB_SIZE ;\n i ++ ) {\n p_sys -> pts_tlb [ i ] . b_empty = true ;\n }\n }"}
{"idx": 8730, "target": 0, "func": "static int dissect_h245_VCCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_VCCapability , VCCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 8731, "target": 0, "func": "void vp9_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint8_t * dst , ptrdiff_t stride , const uint8_t * above , const uint8_t * left ) {\n type ## _predictor ( dst , stride , size , above , left ) ;\n }\n # if CONFIG_VP9_HIGHBITDEPTH # define intra_pred_high_sized ( type , size ) void vp9_high_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint16_t * dst , ptrdiff_t stride , const uint16_t * above , const uint16_t * left , int bd ) {\n high_ ## type ## _predictor ( dst , stride , size , above , left , bd ) ;\n }\n # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) intra_pred_high_sized ( type , 4 ) intra_pred_high_sized ( type , 8 ) intra_pred_high_sized ( type , 16 ) intra_pred_high_sized ( type , 32 ) # else # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) # endif # if CONFIG_VP9_HIGHBITDEPTH static INLINE void high_d207_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) above ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) {\n dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n }\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) {\n dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n }\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n }\n static INLINE void high_d63_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) {\n dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n }\n dst += stride ;\n }\n }\n static INLINE void high_d45_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) {\n dst [ c ] = r + c + 2 < bs * 2 ? ROUND_POWER_OF_TWO ( above [ r + c ] + above [ r + c + 1 ] * 2 + above [ r + c + 2 ] , 2 ) : above [ bs * 2 - 1 ] ;\n }\n dst += stride ;\n }\n }\n static INLINE void high_d117_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] , 1 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 3 ;\n r < bs ;\n ++ r ) dst [ ( r - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ r - 3 ] + left [ r - 2 ] * 2 + left [ r - 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - 2 * stride + c - 1 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_d135_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - stride + c - 1 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_d153_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] , 1 ) ;\n for ( r = 1 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 1 ] + left [ r ] , 1 ) ;\n dst ++ ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] * 2 + above [ c + 1 ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = dst [ - stride + c - 2 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_v_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memcpy ( dst , above , bs * sizeof ( uint16_t ) ) ;\n dst += stride ;\n }\n }\n static INLINE void high_h_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) above ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , left [ r ] , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_tm_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n int ytop_left = above [ - 1 ] ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = clip_pixel_high ( left [ r ] + above [ c ] - ytop_left , bd ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_128_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) above ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , 128 << ( bd - 8 ) , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_left_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) above ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += left [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_top_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) left ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += above [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n const int count = 2 * bs ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) {\n sum += above [ i ] ;\n sum += left [ i ] ;\n }\n expected_dc = ( sum + ( count >> 1 ) ) / count ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n # endif static INLINE void d207_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n intra_pred_allsizes ( d207 ) static INLINE void d63_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d63 ) static INLINE void d45_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r + c + 2 < bs * 2 ? ROUND_POWER_OF_TWO ( above [ r + c ] + above [ r + c + 1 ] * 2 + above [ r + c + 2 ] , 2 ) : above [ bs * 2 - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d45 )"}
{"idx": 8732, "target": 0, "func": "static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 8733, "target": 0, "func": "int test_gf2m_mod_solve_quad ( BIO * bp , BN_CTX * ctx ) {\n BIGNUM * a , * b [ 2 ] , * c , * d , * e ;\n int i , j , s = 0 , t , ret = 0 ;\n int p0 [ ] = {\n 163 , 7 , 6 , 3 , 0 , - 1 }\n ;\n int p1 [ ] = {\n 193 , 15 , 0 , - 1 }\n ;\n a = BN_new ( ) ;\n b [ 0 ] = BN_new ( ) ;\n b [ 1 ] = BN_new ( ) ;\n c = BN_new ( ) ;\n d = BN_new ( ) ;\n e = BN_new ( ) ;\n BN_GF2m_arr2poly ( p0 , b [ 0 ] ) ;\n BN_GF2m_arr2poly ( p1 , b [ 1 ] ) ;\n for ( i = 0 ;\n i < num0 ;\n i ++ ) {\n BN_bntest_rand ( a , 512 , 0 , 0 ) ;\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n t = BN_GF2m_mod_solve_quad ( c , a , b [ j ] , ctx ) ;\n if ( t ) {\n s ++ ;\n BN_GF2m_mod_sqr ( d , c , b [ j ] , ctx ) ;\n BN_GF2m_add ( d , c , d ) ;\n BN_GF2m_mod ( e , a , b [ j ] ) ;\n # if 0 if ( bp != NULL ) {\n if ( ! results ) {\n BN_print ( bp , c ) ;\n BIO_puts ( bp , \" is root of z^2 + z = \" ) ;\n BN_print ( bp , a ) ;\n BIO_puts ( bp , \" % \" ) ;\n BN_print ( bp , b [ j ] ) ;\n BIO_puts ( bp , \"\\n\" ) ;\n }\n }\n # endif BN_GF2m_add ( e , e , d ) ;\n if ( ! BN_is_zero ( e ) ) {\n fprintf ( stderr , \"GF(2^m) modular solve quadratic test failed!\\n\" ) ;\n goto err ;\n }\n }\n else {\n # if 0 if ( bp != NULL ) {\n if ( ! results ) {\n BIO_puts ( bp , \"There are no roots of z^2 + z = \" ) ;\n BN_print ( bp , a ) ;\n BIO_puts ( bp , \" % \" ) ;\n BN_print ( bp , b [ j ] ) ;\n BIO_puts ( bp , \"\\n\" ) ;\n }\n }\n # endif }\n }\n }\n if ( s == 0 ) {\n fprintf ( stderr , \"All %i tests of GF(2^m) modular solve quadratic resulted in no roots;\n\\n\" , num0 ) ;\n fprintf ( stderr , \"this is very unlikely and probably indicates an error.\\n\" ) ;\n goto err ;\n }\n ret = 1 ;\n err : BN_free ( a ) ;\n BN_free ( b [ 0 ] ) ;\n BN_free ( b [ 1 ] ) ;\n BN_free ( c ) ;\n BN_free ( d ) ;\n BN_free ( e ) ;\n return ret ;\n }"}
{"idx": 8734, "target": 0, "func": "static const char * NoMeta ( const char * str ) {\n if ( strchr ( str , '%' ) != NULL ) return \"**** CORRUPTED FORMAT STRING ***\" ;\n return str ;\n }"}
{"idx": 8735, "target": 1, "func": "void vp9_loop_filter_rows ( const YV12_BUFFER_CONFIG * frame_buffer , VP9_COMMON * cm , struct macroblockd_plane planes [ MAX_MB_PLANE ] , int start , int stop , int y_only ) {\n const int num_planes = y_only ? 1 : MAX_MB_PLANE ;\n const int use_420 = y_only || ( planes [ 1 ] . subsampling_y == 1 && planes [ 1 ] . subsampling_x == 1 ) ;\n LOOP_FILTER_MASK lfm ;\n int mi_row , mi_col ;\n for ( mi_row = start ;\n mi_row < stop ;\n mi_row += MI_BLOCK_SIZE ) {\n MODE_INFO * * mi = cm -> mi_grid_visible + mi_row * cm -> mi_stride ;\n for ( mi_col = 0 ;\n mi_col < cm -> mi_cols ;\n mi_col += MI_BLOCK_SIZE ) {\n int plane ;\n vp9_setup_dst_planes ( planes , frame_buffer , mi_row , mi_col ) ;\n if ( use_420 ) vp9_setup_mask ( cm , mi_row , mi_col , mi + mi_col , cm -> mi_stride , & lfm ) ;\n for ( plane = 0 ;\n plane < num_planes ;\n ++ plane ) {\n if ( use_420 ) vp9_filter_block_plane ( cm , & planes [ plane ] , mi_row , & lfm ) ;\n else filter_block_plane_non420 ( cm , & planes [ plane ] , mi + mi_col , mi_row , mi_col ) ;\n }\n }\n }\n }"}
{"idx": 8736, "target": 0, "func": "static inline int GetNextLZWCode ( LZWInfo * lzw_info , const size_t bits ) {\n int code ;\n register ssize_t i ;\n size_t one ;\n while ( ( ( lzw_info -> code_info . bit + bits ) > ( 8 * lzw_info -> code_info . count ) ) && ( lzw_info -> code_info . eof == MagickFalse ) ) {\n ssize_t count ;\n lzw_info -> code_info . buffer [ 0 ] = lzw_info -> code_info . buffer [ lzw_info -> code_info . count - 2 ] ;\n lzw_info -> code_info . buffer [ 1 ] = lzw_info -> code_info . buffer [ lzw_info -> code_info . count - 1 ] ;\n lzw_info -> code_info . bit -= 8 * ( lzw_info -> code_info . count - 2 ) ;\n lzw_info -> code_info . count = 2 ;\n count = ReadBlobBlock ( lzw_info -> image , & lzw_info -> code_info . buffer [ lzw_info -> code_info . count ] ) ;\n if ( count > 0 ) lzw_info -> code_info . count += count ;\n else lzw_info -> code_info . eof = MagickTrue ;\n }\n if ( ( lzw_info -> code_info . bit + bits ) > ( 8 * lzw_info -> code_info . count ) ) return ( - 1 ) ;\n code = 0 ;\n one = 1 ;\n for ( i = 0 ;\n i < ( ssize_t ) bits ;\n i ++ ) {\n code |= ( ( lzw_info -> code_info . buffer [ lzw_info -> code_info . bit / 8 ] & ( one << ( lzw_info -> code_info . bit % 8 ) ) ) != 0 ) << i ;\n lzw_info -> code_info . bit ++ ;\n }\n return ( code ) ;\n }"}
{"idx": 8737, "target": 0, "func": "hb_bool_t hb_set_is_equal ( const hb_set_t * set , const hb_set_t * other ) {\n return set -> is_equal ( other ) ;\n }"}
{"idx": 8738, "target": 0, "func": "void evhttp_start_read ( struct evhttp_connection * evcon ) {\n if ( event_initialized ( & evcon -> ev ) ) event_del ( & evcon -> ev ) ;\n event_set ( & evcon -> ev , evcon -> fd , EV_READ , evhttp_read , evcon ) ;\n EVHTTP_BASE_SET ( evcon , & evcon -> ev ) ;\n evhttp_add_event ( & evcon -> ev , evcon -> timeout , HTTP_READ_TIMEOUT ) ;\n evcon -> state = EVCON_READING_FIRSTLINE ;\n }"}
{"idx": 8739, "target": 1, "func": "void ff_h264_filter_mb ( H264Context * h , int mb_x , int mb_y , uint8_t * img_y , uint8_t * img_cb , uint8_t * img_cr , unsigned int linesize , unsigned int uvlinesize ) {\n const int mb_xy = mb_x + mb_y * h -> mb_stride ;\n const int mb_type = h -> cur_pic . f . mb_type [ mb_xy ] ;\n const int mvy_limit = IS_INTERLACED ( mb_type ) ? 2 : 4 ;\n int first_vertical_edge_done = 0 ;\n av_unused int dir ;\n int chroma = ! ( CONFIG_GRAY && ( h -> flags & CODEC_FLAG_GRAY ) ) ;\n int qp_bd_offset = 6 * ( h -> sps . bit_depth_luma - 8 ) ;\n int a = h -> slice_alpha_c0_offset - qp_bd_offset ;\n int b = h -> slice_beta_offset - qp_bd_offset ;\n if ( FRAME_MBAFF && IS_INTERLACED ( mb_type ^ h -> left_type [ LTOP ] ) && h -> left_type [ LTOP ] ) {\n DECLARE_ALIGNED ( 8 , int16_t , bS ) [ 8 ] ;\n int qp [ 2 ] ;\n int bqp [ 2 ] ;\n int rqp [ 2 ] ;\n int mb_qp , mbn0_qp , mbn1_qp ;\n int i ;\n first_vertical_edge_done = 1 ;\n if ( IS_INTRA ( mb_type ) ) {\n AV_WN64A ( & bS [ 0 ] , 0x0004000400040004ULL ) ;\n AV_WN64A ( & bS [ 4 ] , 0x0004000400040004ULL ) ;\n }\n else {\n static const uint8_t offset [ 2 ] [ 2 ] [ 8 ] = {\n {\n {\n 3 + 4 * 0 , 3 + 4 * 0 , 3 + 4 * 0 , 3 + 4 * 0 , 3 + 4 * 1 , 3 + 4 * 1 , 3 + 4 * 1 , 3 + 4 * 1 }\n , {\n 3 + 4 * 2 , 3 + 4 * 2 , 3 + 4 * 2 , 3 + 4 * 2 , 3 + 4 * 3 , 3 + 4 * 3 , 3 + 4 * 3 , 3 + 4 * 3 }\n , }\n , {\n {\n 3 + 4 * 0 , 3 + 4 * 1 , 3 + 4 * 2 , 3 + 4 * 3 , 3 + 4 * 0 , 3 + 4 * 1 , 3 + 4 * 2 , 3 + 4 * 3 }\n , {\n 3 + 4 * 0 , 3 + 4 * 1 , 3 + 4 * 2 , 3 + 4 * 3 , 3 + 4 * 0 , 3 + 4 * 1 , 3 + 4 * 2 , 3 + 4 * 3 }\n , }\n }\n ;\n const uint8_t * off = offset [ MB_FIELD ] [ mb_y & 1 ] ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n int j = MB_FIELD ? i >> 2 : i & 1 ;\n int mbn_xy = h -> left_mb_xy [ LEFT ( j ) ] ;\n int mbn_type = h -> left_type [ LEFT ( j ) ] ;\n if ( IS_INTRA ( mbn_type ) ) bS [ i ] = 4 ;\n else {\n bS [ i ] = 1 + ! ! ( h -> non_zero_count_cache [ 12 + 8 * ( i >> 1 ) ] | ( ( ! h -> pps . cabac && IS_8x8DCT ( mbn_type ) ) ? ( h -> cbp_table [ mbn_xy ] & ( ( ( MB_FIELD ? ( i & 2 ) : ( mb_y & 1 ) ) ? 8 : 2 ) << 12 ) ) : h -> non_zero_count [ mbn_xy ] [ off [ i ] ] ) ) ;\n }\n }\n }\n mb_qp = h -> cur_pic . f . qscale_table [ mb_xy ] ;\n mbn0_qp = h -> cur_pic . f . qscale_table [ h -> left_mb_xy [ 0 ] ] ;\n mbn1_qp = h -> cur_pic . f . qscale_table [ h -> left_mb_xy [ 1 ] ] ;\n qp [ 0 ] = ( mb_qp + mbn0_qp + 1 ) >> 1 ;\n bqp [ 0 ] = ( get_chroma_qp ( h , 0 , mb_qp ) + get_chroma_qp ( h , 0 , mbn0_qp ) + 1 ) >> 1 ;\n rqp [ 0 ] = ( get_chroma_qp ( h , 1 , mb_qp ) + get_chroma_qp ( h , 1 , mbn0_qp ) + 1 ) >> 1 ;\n qp [ 1 ] = ( mb_qp + mbn1_qp + 1 ) >> 1 ;\n bqp [ 1 ] = ( get_chroma_qp ( h , 0 , mb_qp ) + get_chroma_qp ( h , 0 , mbn1_qp ) + 1 ) >> 1 ;\n rqp [ 1 ] = ( get_chroma_qp ( h , 1 , mb_qp ) + get_chroma_qp ( h , 1 , mbn1_qp ) + 1 ) >> 1 ;\n tprintf ( h -> avctx , \"filter mb:%d/%d MBAFF, QPy:%d/%d, QPb:%d/%d QPr:%d/%d ls:%d uvls:%d\" , mb_x , mb_y , qp [ 0 ] , qp [ 1 ] , bqp [ 0 ] , bqp [ 1 ] , rqp [ 0 ] , rqp [ 1 ] , linesize , uvlinesize ) ;\n {\n int i ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) tprintf ( h -> avctx , \" bS[%d]:%d\" , i , bS [ i ] ) ;\n tprintf ( h -> avctx , \"\\n\" ) ;\n }\n if ( MB_FIELD ) {\n filter_mb_mbaff_edgev ( h , img_y , linesize , bS , 1 , qp [ 0 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgev ( h , img_y + 8 * linesize , linesize , bS + 4 , 1 , qp [ 1 ] , a , b , 1 ) ;\n if ( chroma ) {\n if ( CHROMA444 ) {\n filter_mb_mbaff_edgev ( h , img_cb , uvlinesize , bS , 1 , bqp [ 0 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgev ( h , img_cb + 8 * uvlinesize , uvlinesize , bS + 4 , 1 , bqp [ 1 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgev ( h , img_cr , uvlinesize , bS , 1 , rqp [ 0 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgev ( h , img_cr + 8 * uvlinesize , uvlinesize , bS + 4 , 1 , rqp [ 1 ] , a , b , 1 ) ;\n }\n else if ( CHROMA422 ) {\n filter_mb_mbaff_edgecv ( h , img_cb , uvlinesize , bS , 1 , bqp [ 0 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgecv ( h , img_cb + 8 * uvlinesize , uvlinesize , bS + 4 , 1 , bqp [ 1 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgecv ( h , img_cr , uvlinesize , bS , 1 , rqp [ 0 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgecv ( h , img_cr + 8 * uvlinesize , uvlinesize , bS + 4 , 1 , rqp [ 1 ] , a , b , 1 ) ;\n }\n else {\n filter_mb_mbaff_edgecv ( h , img_cb , uvlinesize , bS , 1 , bqp [ 0 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgecv ( h , img_cb + 4 * uvlinesize , uvlinesize , bS + 4 , 1 , bqp [ 1 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgecv ( h , img_cr , uvlinesize , bS , 1 , rqp [ 0 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgecv ( h , img_cr + 4 * uvlinesize , uvlinesize , bS + 4 , 1 , rqp [ 1 ] , a , b , 1 ) ;\n }\n }\n }\n else {\n filter_mb_mbaff_edgev ( h , img_y , 2 * linesize , bS , 2 , qp [ 0 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgev ( h , img_y + linesize , 2 * linesize , bS + 1 , 2 , qp [ 1 ] , a , b , 1 ) ;\n if ( chroma ) {\n if ( CHROMA444 ) {\n filter_mb_mbaff_edgev ( h , img_cb , 2 * uvlinesize , bS , 2 , bqp [ 0 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgev ( h , img_cb + uvlinesize , 2 * uvlinesize , bS + 1 , 2 , bqp [ 1 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgev ( h , img_cr , 2 * uvlinesize , bS , 2 , rqp [ 0 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgev ( h , img_cr + uvlinesize , 2 * uvlinesize , bS + 1 , 2 , rqp [ 1 ] , a , b , 1 ) ;\n }\n else {\n filter_mb_mbaff_edgecv ( h , img_cb , 2 * uvlinesize , bS , 2 , bqp [ 0 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgecv ( h , img_cb + uvlinesize , 2 * uvlinesize , bS + 1 , 2 , bqp [ 1 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgecv ( h , img_cr , 2 * uvlinesize , bS , 2 , rqp [ 0 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgecv ( h , img_cr + uvlinesize , 2 * uvlinesize , bS + 1 , 2 , rqp [ 1 ] , a , b , 1 ) ;\n }\n }\n }\n }\n # if CONFIG_SMALL for ( dir = 0 ;\n dir < 2 ;\n dir ++ ) filter_mb_dir ( h , mb_x , mb_y , img_y , img_cb , img_cr , linesize , uvlinesize , mb_xy , mb_type , mvy_limit , dir ? 0 : first_vertical_edge_done , a , b , chroma , dir ) ;\n # else filter_mb_dir ( h , mb_x , mb_y , img_y , img_cb , img_cr , linesize , uvlinesize , mb_xy , mb_type , mvy_limit , first_vertical_edge_done , a , b , chroma , 0 ) ;\n filter_mb_dir ( h , mb_x , mb_y , img_y , img_cb , img_cr , linesize , uvlinesize , mb_xy , mb_type , mvy_limit , 0 , a , b , chroma , 1 ) ;\n # endif }"}
{"idx": 8740, "target": 0, "func": "apr_port_t mgs_hook_default_port ( const request_rec * r ) {\n mgs_srvconf_rec * sc ;\n if ( r == NULL ) return 0 ;\n sc = ( mgs_srvconf_rec * ) ap_get_module_config ( r -> server -> module_config , & gnutls_module ) ;\n _gnutls_log ( debug_log_fp , \"%s: %d\\n\" , __func__ , __LINE__ ) ;\n if ( sc -> enabled == GNUTLS_ENABLED_FALSE ) {\n return 0 ;\n }\n return 443 ;\n }"}
{"idx": 8741, "target": 0, "func": "static int qemuMonitorTextAddUSBDevice ( qemuMonitorPtr mon , const char * addr ) {\n char * cmd ;\n char * reply = NULL ;\n int ret = - 1 ;\n if ( virAsprintf ( & cmd , \"usb_add %s\" , addr ) < 0 ) {\n virReportOOMError ( ) ;\n return - 1 ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , _ ( \"cannot attach usb device\" ) ) ;\n goto cleanup ;\n }\n if ( strstr ( reply , \"Could not add \" ) ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , _ ( \"adding usb device failed\" ) ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( cmd ) ;\n VIR_FREE ( reply ) ;\n return ret ;\n }"}
{"idx": 8742, "target": 0, "func": "static int decode_channel ( RALFContext * ctx , GetBitContext * gb , int ch , int length , int mode , int bits ) {\n int i , t ;\n int code_params ;\n VLCSet * set = ctx -> sets + mode ;\n VLC * code_vlc ;\n int range , range2 , add_bits ;\n int * dst = ctx -> channel_data [ ch ] ;\n ctx -> filter_params = get_vlc2 ( gb , set -> filter_params . table , 9 , 2 ) ;\n ctx -> filter_bits = ( ctx -> filter_params - 2 ) >> 6 ;\n ctx -> filter_length = ctx -> filter_params - ( ctx -> filter_bits << 6 ) - 1 ;\n if ( ctx -> filter_params == FILTER_RAW ) {\n for ( i = 0 ;\n i < length ;\n i ++ ) dst [ i ] = get_bits ( gb , bits ) ;\n ctx -> bias [ ch ] = 0 ;\n return 0 ;\n }\n ctx -> bias [ ch ] = get_vlc2 ( gb , set -> bias . table , 9 , 2 ) ;\n ctx -> bias [ ch ] = extend_code ( gb , ctx -> bias [ ch ] , 127 , 4 ) ;\n if ( ctx -> filter_params == FILTER_NONE ) {\n memset ( dst , 0 , sizeof ( * dst ) * length ) ;\n return 0 ;\n }\n if ( ctx -> filter_params > 1 ) {\n int cmode = 0 , coeff = 0 ;\n VLC * vlc = set -> filter_coeffs [ ctx -> filter_bits ] + 5 ;\n add_bits = ctx -> filter_bits ;\n for ( i = 0 ;\n i < ctx -> filter_length ;\n i ++ ) {\n t = get_vlc2 ( gb , vlc [ cmode ] . table , vlc [ cmode ] . bits , 2 ) ;\n t = extend_code ( gb , t , 21 , add_bits ) ;\n if ( ! cmode ) coeff -= 12 << add_bits ;\n coeff = t - coeff ;\n ctx -> filter [ i ] = coeff ;\n cmode = coeff >> add_bits ;\n if ( cmode < 0 ) {\n cmode = - 1 - av_log2 ( - cmode ) ;\n if ( cmode < - 5 ) cmode = - 5 ;\n }\n else if ( cmode > 0 ) {\n cmode = 1 + av_log2 ( cmode ) ;\n if ( cmode > 5 ) cmode = 5 ;\n }\n }\n }\n code_params = get_vlc2 ( gb , set -> coding_mode . table , set -> coding_mode . bits , 2 ) ;\n if ( code_params >= 15 ) {\n add_bits = av_clip ( ( code_params / 5 - 3 ) / 2 , 0 , 10 ) ;\n if ( add_bits > 9 && ( code_params % 5 ) != 2 ) add_bits -- ;\n range = 10 ;\n range2 = 21 ;\n code_vlc = set -> long_codes + code_params - 15 ;\n }\n else {\n add_bits = 0 ;\n range = 6 ;\n range2 = 13 ;\n code_vlc = set -> short_codes + code_params ;\n }\n for ( i = 0 ;\n i < length ;\n i += 2 ) {\n int code1 , code2 ;\n t = get_vlc2 ( gb , code_vlc -> table , code_vlc -> bits , 2 ) ;\n code1 = t / range2 ;\n code2 = t % range2 ;\n dst [ i ] = extend_code ( gb , code1 , range , 0 ) << add_bits ;\n dst [ i + 1 ] = extend_code ( gb , code2 , range , 0 ) << add_bits ;\n if ( add_bits ) {\n dst [ i ] |= get_bits ( gb , add_bits ) ;\n dst [ i + 1 ] |= get_bits ( gb , add_bits ) ;\n }\n }\n return 0 ;\n }"}
{"idx": 8743, "target": 0, "func": "int vp9_get_segment_id ( const VP9_COMMON * cm , const uint8_t * segment_ids , BLOCK_SIZE bsize , int mi_row , int mi_col ) {\n const int mi_offset = mi_row * cm -> mi_cols + mi_col ;\n const int bw = num_8x8_blocks_wide_lookup [ bsize ] ;\n const int bh = num_8x8_blocks_high_lookup [ bsize ] ;\n const int xmis = MIN ( cm -> mi_cols - mi_col , bw ) ;\n const int ymis = MIN ( cm -> mi_rows - mi_row , bh ) ;\n int x , y , segment_id = INT_MAX ;\n for ( y = 0 ;\n y < ymis ;\n y ++ ) for ( x = 0 ;\n x < xmis ;\n x ++ ) segment_id = MIN ( segment_id , segment_ids [ mi_offset + y * cm -> mi_cols + x ] ) ;\n assert ( segment_id >= 0 && segment_id < MAX_SEGMENTS ) ;\n return segment_id ;\n }"}
{"idx": 8744, "target": 0, "func": "static void cid_done_loader ( CID_Loader * loader ) {\n CID_Parser * parser = & loader -> parser ;\n cid_parser_done ( parser ) ;\n }"}
{"idx": 8745, "target": 0, "func": "static int ts_lua_http_server_packet_dscp_set ( lua_State * L ) {\n int value ;\n ts_lua_http_ctx * http_ctx ;\n GET_HTTP_CONTEXT ( http_ctx , L ) ;\n value = luaL_checkinteger ( L , 1 ) ;\n TSDebug ( TS_LUA_DEBUG_TAG , \"server packet dscp set\" ) ;\n TSHttpTxnServerPacketDscpSet ( http_ctx -> txnp , value ) ;\n return 0 ;\n }"}
{"idx": 8746, "target": 0, "func": "static guint16 de_bcc_call_state ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n proto_tree_add_item ( tree , hf_gsm_a_dtap_bcc_call_state , tvb , offset , 2 , ENC_NA ) ;\n return 1 ;\n }"}
{"idx": 8747, "target": 0, "func": "void proto_register_btgatt ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_gatt_nordic_uart_tx , {\n \"UART Tx\" , \"btgatt.nordic.uart_tx\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gatt_nordic_uart_rx , {\n \"UART Rx\" , \"btgatt.nordic.uart_rx\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gatt_nordic_dfu_packet , {\n \"Packet\" , \"btgatt.nordic.dfu.packet\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gatt_nordic_dfu_control_point_opcode , {\n \"Opcode\" , \"btgatt.nordic.dfu.control_point.opcode\" , FT_UINT8 , BASE_DEC , VALS ( nordic_dfu_control_point_opcode_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gatt_nordic_dfu_control_point_init_packet , {\n \"Init Packet\" , \"btgatt.nordic.dfu.control_point.init_packet\" , FT_UINT8 , BASE_HEX , VALS ( nordic_dfu_control_point_init_packet_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gatt_nordic_dfu_control_point_image_type , {\n \"Image Type\" , \"btgatt.nordic.dfu.control_point.image_type\" , FT_UINT8 , BASE_HEX , VALS ( nordic_dfu_control_point_image_type_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gatt_nordic_dfu_control_point_number_of_bytes , {\n \"Number of Bytes of Firmware Image Received\" , \"btgatt.nordic.dfu.control_point.number_of_bytes\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gatt_nordic_dfu_control_point_number_of_packets , {\n \"Number of Packets\" , \"btgatt.nordic.dfu.control_point.number_of_packets\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gatt_nordic_dfu_control_point_request_opcode , {\n \"Request Opcode\" , \"btgatt.nordic.dfu.control_point.request_opcode\" , FT_UINT8 , BASE_DEC , VALS ( nordic_dfu_control_point_opcode_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gatt_nordic_dfu_control_point_response_value , {\n \"Response Value\" , \"btgatt.nordic.dfu.control_point.response_value\" , FT_UINT8 , BASE_DEC , VALS ( nordic_dfu_control_point_response_value_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_accelerometer_data , {\n \"Accelerometer Data\" , \"btgatt.microbit.accelerometer.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_accelerometer_x , {\n \"X axis\" , \"btgatt.microbit.accelerometer.x\" , FT_DOUBLE , BASE_NONE , NULL , 0x0 , \"Accelerometer X axis\" , HFILL }\n }\n , {\n & hf_gatt_microbit_accelerometer_y , {\n \"Y axis\" , \"btgatt.microbit.accelerometer.y\" , FT_DOUBLE , BASE_NONE , NULL , 0x0 , \"Accelerometer Y axis\" , HFILL }\n }\n , {\n & hf_gatt_microbit_accelerometer_z , {\n \"Z axis\" , \"btgatt.microbit.accelerometer.z\" , FT_DOUBLE , BASE_NONE , NULL , 0x0 , \"Accelerometer Z axis\" , HFILL }\n }\n , {\n & hf_gatt_microbit_accelerometer_period , {\n \"Accelerometer Period\" , \"btgatt.microbit.accelerometer.period\" , FT_UINT16 , BASE_DEC | BASE_UNIT_STRING , & units_milliseconds , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_magnetometer_data , {\n \"Magnetometer Data\" , \"btgatt.microbit.magnetometer.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_magnetometer_x , {\n \"X axis\" , \"btgatt.microbit.magnetometer.x\" , FT_DOUBLE , BASE_NONE , NULL , 0x0 , \"Magnetometer X axis\" , HFILL }\n }\n , {\n & hf_gatt_microbit_magnetometer_y , {\n \"Y axis\" , \"btgatt.microbit.magnetometer.y\" , FT_DOUBLE , BASE_NONE , NULL , 0x0 , \"Magnetometer Y axis\" , HFILL }\n }\n , {\n & hf_gatt_microbit_magnetometer_z , {\n \"Z axis\" , \"btgatt.microbit.magnetometer.z\" , FT_DOUBLE , BASE_NONE , NULL , 0x0 , \"Magnetometer Z axis\" , HFILL }\n }\n , {\n & hf_gatt_microbit_magnetometer_period , {\n \"Magnetometer Period\" , \"btgatt.microbit.magnetometer.period\" , FT_UINT16 , BASE_DEC | BASE_UNIT_STRING , & units_milliseconds , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_magnetometer_bearing , {\n \"Magnetometer Bearing\" , \"btgatt.microbit.magnetometer.bearing\" , FT_UINT16 , BASE_DEC | BASE_UNIT_STRING , & units_degree_bearing , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_button_a_state , {\n \"Button A\" , \"btgatt.microbit.button.a\" , FT_UINT8 , BASE_DEC , VALS ( btgatt_microbit_button_state_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_button_b_state , {\n \"Button B\" , \"btgatt.microbit.button.b\" , FT_UINT8 , BASE_DEC , VALS ( btgatt_microbit_button_state_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_pin_data , {\n \"Pin Data\" , \"btgatt.microbit.pin_data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_pin_number , {\n \"Pin Number\" , \"btgatt.microbit.pin_data.number\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_pin_value , {\n \"Pin Value\" , \"btgatt.microbit.pin_data.value\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_pin_ad_config , {\n \"Pin AD Configuration\" , \"btgatt.microbit.pin_ad_config.value\" , FT_UINT24 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_ad_pin0 , {\n \"Pin 0\" , \"btgatt.microbit.pin_ad_config.pin0\" , FT_BOOLEAN , 20 , TFS ( & microbit_ad_tfs ) , 0x000001 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_ad_pin1 , {\n \"Pin 1\" , \"btgatt.microbit.pin_ad_config.pin1\" , FT_BOOLEAN , 20 , TFS ( & microbit_ad_tfs ) , 0x000002 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_ad_pin2 , {\n \"Pin 2\" , \"btgatt.microbit.pin_ad_config.pin2\" , FT_BOOLEAN , 20 , TFS ( & microbit_ad_tfs ) , 0x000004 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_ad_pin3 , {\n \"Pin 3\" , \"btgatt.microbit.pin_ad_config.pin3\" , FT_BOOLEAN , 20 , TFS ( & microbit_ad_tfs ) , 0x000008 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_ad_pin4 , {\n \"Pin 4\" , \"btgatt.microbit.pin_ad_config.pin4\" , FT_BOOLEAN , 20 , TFS ( & microbit_ad_tfs ) , 0x000010 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_ad_pin5 , {\n \"Pin 5\" , \"btgatt.microbit.pin_ad_config.pin5\" , FT_BOOLEAN , 20 , TFS ( & microbit_ad_tfs ) , 0x000020 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_ad_pin6 , {\n \"Pin 6\" , \"btgatt.microbit.pin_ad_config.pin6\" , FT_BOOLEAN , 20 , TFS ( & microbit_ad_tfs ) , 0x000040 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_ad_pin7 , {\n \"Pin 7\" , \"btgatt.microbit.pin_ad_config.pin7\" , FT_BOOLEAN , 20 , TFS ( & microbit_ad_tfs ) , 0x000080 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_ad_pin8 , {\n \"Pin 8\" , \"btgatt.microbit.pin_ad_config.pin8\" , FT_BOOLEAN , 20 , TFS ( & microbit_ad_tfs ) , 0x000100 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_ad_pin9 , {\n \"Pin 9\" , \"btgatt.microbit.pin_ad_config.pin9\" , FT_BOOLEAN , 20 , TFS ( & microbit_ad_tfs ) , 0x000200 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_ad_pin10 , {\n \"Pin 10\" , \"btgatt.microbit.pin_ad_config.pin10\" , FT_BOOLEAN , 20 , TFS ( & microbit_ad_tfs ) , 0x000400 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_ad_pin11 , {\n \"Pin 11\" , \"btgatt.microbit.pin_ad_config.pin11\" , FT_BOOLEAN , 20 , TFS ( & microbit_ad_tfs ) , 0x000800 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_ad_pin12 , {\n \"Pin 12\" , \"btgatt.microbit.pin_ad_config.pin12\" , FT_BOOLEAN , 20 , TFS ( & microbit_ad_tfs ) , 0x001000 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_ad_pin13 , {\n \"Pin 13\" , \"btgatt.microbit.pin_ad_config.pin13\" , FT_BOOLEAN , 20 , TFS ( & microbit_ad_tfs ) , 0x002000 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_ad_pin14 , {\n \"Pin 14\" , \"btgatt.microbit.pin_ad_config.pin14\" , FT_BOOLEAN , 20 , TFS ( & microbit_ad_tfs ) , 0x004000 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_ad_pin15 , {\n \"Pin 15\" , \"btgatt.microbit.pin_ad_config.pin15\" , FT_BOOLEAN , 20 , TFS ( & microbit_ad_tfs ) , 0x008000 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_ad_pin16 , {\n \"Pin 16\" , \"btgatt.microbit.pin_ad_config.pin16\" , FT_BOOLEAN , 20 , TFS ( & microbit_ad_tfs ) , 0x010000 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_ad_pin17 , {\n \"Pin 17\" , \"btgatt.microbit.pin_ad_config.pin17\" , FT_BOOLEAN , 20 , TFS ( & microbit_ad_tfs ) , 0x020000 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_ad_pin18 , {\n \"Pin 18\" , \"btgatt.microbit.pin_ad_config.pin18\" , FT_BOOLEAN , 20 , TFS ( & microbit_ad_tfs ) , 0x040000 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_ad_pin19 , {\n \"Pin 19\" , \"btgatt.microbit.pin_ad_config.pin19\" , FT_BOOLEAN , 20 , TFS ( & microbit_ad_tfs ) , 0x080000 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_pin_io_config , {\n \"Pin IO Configuration\" , \"btgatt.microbit.pin_io_config.value\" , FT_UINT24 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_io_pin0 , {\n \"Pin 0\" , \"btgatt.microbit.pin_io_config.pin0\" , FT_BOOLEAN , 20 , TFS ( & microbit_io_tfs ) , 0x000001 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_io_pin1 , {\n \"Pin 1\" , \"btgatt.microbit.pin_io_config.pin1\" , FT_BOOLEAN , 20 , TFS ( & microbit_io_tfs ) , 0x000002 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_io_pin2 , {\n \"Pin 2\" , \"btgatt.microbit.pin_io_config.pin2\" , FT_BOOLEAN , 20 , TFS ( & microbit_io_tfs ) , 0x000004 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_io_pin3 , {\n \"Pin 3\" , \"btgatt.microbit.pin_io_config.pin3\" , FT_BOOLEAN , 20 , TFS ( & microbit_io_tfs ) , 0x000008 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_io_pin4 , {\n \"Pin 4\" , \"btgatt.microbit.pin_io_config.pin4\" , FT_BOOLEAN , 20 , TFS ( & microbit_io_tfs ) , 0x000010 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_io_pin5 , {\n \"Pin 5\" , \"btgatt.microbit.pin_io_config.pin5\" , FT_BOOLEAN , 20 , TFS ( & microbit_io_tfs ) , 0x000020 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_io_pin6 , {\n \"Pin 6\" , \"btgatt.microbit.pin_io_config.pin6\" , FT_BOOLEAN , 20 , TFS ( & microbit_io_tfs ) , 0x000040 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_io_pin7 , {\n \"Pin 7\" , \"btgatt.microbit.pin_io_config.pin7\" , FT_BOOLEAN , 20 , TFS ( & microbit_io_tfs ) , 0x000080 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_io_pin8 , {\n \"Pin 8\" , \"btgatt.microbit.pin_io_config.pin8\" , FT_BOOLEAN , 20 , TFS ( & microbit_io_tfs ) , 0x000100 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_io_pin9 , {\n \"Pin 9\" , \"btgatt.microbit.pin_io_config.pin9\" , FT_BOOLEAN , 20 , TFS ( & microbit_io_tfs ) , 0x000200 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_io_pin10 , {\n \"Pin 10\" , \"btgatt.microbit.pin_io_config.pin10\" , FT_BOOLEAN , 20 , TFS ( & microbit_io_tfs ) , 0x000400 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_io_pin11 , {\n \"Pin 11\" , \"btgatt.microbit.pin_io_config.pin11\" , FT_BOOLEAN , 20 , TFS ( & microbit_io_tfs ) , 0x000800 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_io_pin12 , {\n \"Pin 12\" , \"btgatt.microbit.pin_io_config.pin12\" , FT_BOOLEAN , 20 , TFS ( & microbit_io_tfs ) , 0x001000 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_io_pin13 , {\n \"Pin 13\" , \"btgatt.microbit.pin_io_config.pin13\" , FT_BOOLEAN , 20 , TFS ( & microbit_io_tfs ) , 0x002000 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_io_pin14 , {\n \"Pin 14\" , \"btgatt.microbit.pin_io_config.pin14\" , FT_BOOLEAN , 20 , TFS ( & microbit_io_tfs ) , 0x004000 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_io_pin15 , {\n \"Pin 15\" , \"btgatt.microbit.pin_io_config.pin15\" , FT_BOOLEAN , 20 , TFS ( & microbit_io_tfs ) , 0x008000 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_io_pin16 , {\n \"Pin 16\" , \"btgatt.microbit.pin_io_config.pin16\" , FT_BOOLEAN , 20 , TFS ( & microbit_io_tfs ) , 0x010000 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_io_pin17 , {\n \"Pin 17\" , \"btgatt.microbit.pin_io_config.pin17\" , FT_BOOLEAN , 20 , TFS ( & microbit_io_tfs ) , 0x020000 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_io_pin18 , {\n \"Pin 18\" , \"btgatt.microbit.pin_io_config.pin18\" , FT_BOOLEAN , 20 , TFS ( & microbit_io_tfs ) , 0x040000 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_io_pin19 , {\n \"Pin 19\" , \"btgatt.microbit.pin_io_config.pin19\" , FT_BOOLEAN , 20 , TFS ( & microbit_io_tfs ) , 0x080000 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_pwm_control , {\n \"PWM Control\" , \"btgatt.microbit.pwm_control\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_led_matrix , {\n \"LED Matrix\" , \"btgatt.microbit.led_matrix\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_led_text , {\n \"LED Text\" , \"btgatt.microbit.led_text\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_scrolling_delay , {\n \"Scrolling Delay\" , \"btgatt.microbit.scrolling_delay\" , FT_UINT16 , BASE_DEC | BASE_UNIT_STRING , & units_milliseconds , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_microbit_requirements , {\n \"MicroBit Requirements\" , \"btgatt.microbit.microbit_requirements\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_microbit_event , {\n \"MicroBit Event\" , \"btgatt.microbit.microbit_event\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_client_requirements , {\n \"Client Requirements\" , \"btgatt.microbit.client_requirements\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_client_event , {\n \"Client Event\" , \"btgatt.microbit.client_event\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_dfu_control , {\n \"DFU Control\" , \"btgatt.microbit.dfu_control\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_temperature_value , {\n \"Temperature\" , \"btgatt.microbit.temperature.value\" , FT_INT8 , BASE_DEC | BASE_UNIT_STRING , & units_degree_celsius , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gatt_microbit_temperature_period , {\n \"Temperature Period\" , \"btgatt.microbit.temperature.period\" , FT_UINT16 , BASE_DEC | BASE_UNIT_STRING , & units_milliseconds , 0x0 , NULL , HFILL }\n }\n }\n ;\n static gint * ett [ ] = {\n & ett_btgatt , & ett_btgatt_microbit_accelerometer , & ett_btgatt_microbit_magnetometer , & ett_btgatt_microbit_pin_data , & ett_btgatt_microbit_pin_ad_config , & ett_btgatt_microbit_pin_io_config , }\n ;\n proto_btgatt = proto_register_protocol ( \"Bluetooth GATT Attribute Protocol\" , \"BT GATT\" , \"btgatt\" ) ;\n btgatt_handle = register_dissector ( \"btgatt\" , dissect_btgatt , proto_btgatt ) ;\n proto_register_field_array ( proto_btgatt , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n }"}
{"idx": 8748, "target": 0, "func": "static void * jbig2_default_realloc ( Jbig2Allocator * allocator , void * p , size_t size ) {\n return realloc ( p , size ) ;\n }"}
{"idx": 8749, "target": 0, "func": "static int idr_ensure_poolsize ( struct archive_write * a , struct idr * idr , int cnt ) {\n if ( idr -> pool_size < cnt ) {\n void * p ;\n const int bk = ( 1 << 7 ) - 1 ;\n int psize ;\n psize = ( cnt + bk ) & ~ bk ;\n p = realloc ( idr -> idrent_pool , sizeof ( struct idrent ) * psize ) ;\n if ( p == NULL ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate memory\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n idr -> idrent_pool = ( struct idrent * ) p ;\n idr -> pool_size = psize ;\n }\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 8750, "target": 0, "func": "void DMA_hold_DREQ ( int nchan ) {\n }"}
{"idx": 8751, "target": 0, "func": "static void dumpttf ( FILE * ttf , struct alltabs * at ) {\n int32 checksum ;\n int i , head_index = - 1 ;\n putlong ( ttf , at -> tabdir . version ) ;\n putshort ( ttf , at -> tabdir . numtab ) ;\n putshort ( ttf , at -> tabdir . searchRange ) ;\n putshort ( ttf , at -> tabdir . entrySel ) ;\n putshort ( ttf , at -> tabdir . rangeShift ) ;\n for ( i = 0 ;\n i < at -> tabdir . numtab ;\n ++ i ) {\n if ( at -> tabdir . alpha [ i ] -> tag == CHR ( 'h' , 'e' , 'a' , 'd' ) || at -> tabdir . alpha [ i ] -> tag == CHR ( 'b' , 'h' , 'e' , 'd' ) ) head_index = i ;\n putlong ( ttf , at -> tabdir . alpha [ i ] -> tag ) ;\n putlong ( ttf , at -> tabdir . alpha [ i ] -> checksum ) ;\n putlong ( ttf , at -> tabdir . alpha [ i ] -> offset ) ;\n putlong ( ttf , at -> tabdir . alpha [ i ] -> length ) ;\n }\n for ( i = 0 ;\n i < at -> tabdir . numtab ;\n ++ i ) if ( at -> tabdir . ordered [ i ] -> data != NULL ) {\n if ( ! ttfcopyfile ( ttf , at -> tabdir . ordered [ i ] -> data , at -> tabdir . ordered [ i ] -> offset , Tag2String ( at -> tabdir . ordered [ i ] -> tag ) ) ) at -> error = true ;\n }\n if ( head_index != - 1 ) {\n checksum = filechecksum ( ttf ) ;\n checksum = 0xb1b0afba - checksum ;\n fseek ( ttf , at -> tabdir . alpha [ head_index ] -> offset + 2 * sizeof ( int32 ) , SEEK_SET ) ;\n putlong ( ttf , checksum ) ;\n }\n }"}
{"idx": 8752, "target": 0, "func": "static int mysql_query_with_error_report ( MYSQL * mysql_con , MYSQL_RES * * res , const char * query ) {\n if ( mysql_query ( mysql_con , query ) || ( res && ! ( ( * res ) = mysql_store_result ( mysql_con ) ) ) ) {\n maybe_die ( EX_MYSQLERR , \"Couldn't execute '%s': %s (%d)\" , query , mysql_error ( mysql_con ) , mysql_errno ( mysql_con ) ) ;\n return 1 ;\n }\n return 0 ;\n }"}
{"idx": 8753, "target": 0, "func": "static UBool uprv_compareFrequency ( UTimer * , UTimer * ) {\n return TRUE ;\n }"}
{"idx": 8754, "target": 0, "func": "static int parse_packet_header ( WMAVoiceContext * s ) {\n GetBitContext * gb = & s -> gb ;\n unsigned int res ;\n if ( get_bits_left ( gb ) < 11 ) return 1 ;\n skip_bits ( gb , 4 ) ;\n s -> has_residual_lsps = get_bits1 ( gb ) ;\n do {\n res = get_bits ( gb , 6 ) ;\n if ( get_bits_left ( gb ) < 6 * ( res == 0x3F ) + s -> spillover_bitsize ) return 1 ;\n }\n while ( res == 0x3F ) ;\n s -> spillover_nbits = get_bits ( gb , s -> spillover_bitsize ) ;\n return 0 ;\n }"}
{"idx": 8755, "target": 0, "func": "void nautilus_mime_activate_file ( GtkWindow * parent_window , NautilusWindowSlot * slot , NautilusFile * file , const char * launch_directory , NautilusWindowOpenFlags flags ) {\n GList * files ;\n g_return_if_fail ( NAUTILUS_IS_FILE ( file ) ) ;\n files = g_list_prepend ( NULL , file ) ;\n nautilus_mime_activate_files ( parent_window , slot , files , launch_directory , flags , FALSE ) ;\n g_list_free ( files ) ;\n }"}
{"idx": 8756, "target": 0, "func": "static pdf_material * pdf_drop_material ( fz_context * ctx , pdf_material * mat ) {\n fz_drop_colorspace ( ctx , mat -> colorspace ) ;\n pdf_drop_pattern ( ctx , mat -> pattern ) ;\n fz_drop_shade ( ctx , mat -> shade ) ;\n return mat ;\n }"}
{"idx": 8757, "target": 0, "func": "static int mi_sort_records ( MI_CHECK * param , register MI_INFO * info , char * name , uint sort_key , my_bool write_info , my_bool update_index ) {\n int got_error ;\n uint key ;\n MI_KEYDEF * keyinfo ;\n File new_file ;\n uchar * temp_buff ;\n ha_rows old_record_count ;\n MYISAM_SHARE * share = info -> s ;\n char llbuff [ 22 ] , llbuff2 [ 22 ] ;\n SORT_INFO sort_info ;\n MI_SORT_PARAM sort_param ;\n DBUG_ENTER ( \"sort_records\" ) ;\n bzero ( ( char * ) & sort_info , sizeof ( sort_info ) ) ;\n bzero ( ( char * ) & sort_param , sizeof ( sort_param ) ) ;\n sort_param . sort_info = & sort_info ;\n sort_info . param = param ;\n keyinfo = & share -> keyinfo [ sort_key ] ;\n got_error = 1 ;\n temp_buff = 0 ;\n new_file = - 1 ;\n if ( ! mi_is_key_active ( share -> state . key_map , sort_key ) ) {\n mi_check_print_warning ( param , \"Can't sort table '%s' on key %d;\n No such key\" , name , sort_key + 1 ) ;\n param -> error_printed = 0 ;\n DBUG_RETURN ( 0 ) ;\n }\n if ( keyinfo -> flag & HA_FULLTEXT ) {\n mi_check_print_warning ( param , \"Can't sort table '%s' on FULLTEXT key %d\" , name , sort_key + 1 ) ;\n param -> error_printed = 0 ;\n DBUG_RETURN ( 0 ) ;\n }\n if ( share -> data_file_type == COMPRESSED_RECORD ) {\n mi_check_print_warning ( param , \"Can't sort read-only table '%s'\" , name ) ;\n param -> error_printed = 0 ;\n DBUG_RETURN ( 0 ) ;\n }\n if ( ! ( param -> testflag & T_SILENT ) ) {\n printf ( \"- Sorting records for MyISAM-table '%s'\\n\" , name ) ;\n if ( write_info ) printf ( \"Data records: %9s Deleted: %9s\\n\" , llstr ( info -> state -> records , llbuff ) , llstr ( info -> state -> del , llbuff2 ) ) ;\n }\n if ( share -> state . key_root [ sort_key ] == HA_OFFSET_ERROR ) DBUG_RETURN ( 0 ) ;\n init_key_cache ( dflt_key_cache , opt_key_cache_block_size , ( size_t ) param -> use_buffers , 0 , 0 ) ;\n if ( init_io_cache ( & info -> rec_cache , - 1 , ( uint ) param -> write_buffer_length , WRITE_CACHE , share -> pack . header_length , 1 , MYF ( MY_WME | MY_WAIT_IF_FULL ) ) ) goto err ;\n info -> opt_flag |= WRITE_CACHE_USED ;\n if ( ! ( temp_buff = ( uchar * ) my_alloca ( ( uint ) keyinfo -> block_length ) ) ) {\n mi_check_print_error ( param , \"Not enough memory for key block\" ) ;\n goto err ;\n }\n if ( ! mi_alloc_rec_buff ( info , - 1 , & sort_param . record ) ) {\n mi_check_print_error ( param , \"Not enough memory for record\" ) ;\n goto err ;\n }\n fn_format ( param -> temp_filename , name , \"\" , MI_NAME_DEXT , 2 + 4 + 32 ) ;\n new_file = my_create ( fn_format ( param -> temp_filename , param -> temp_filename , \"\" , DATA_TMP_EXT , 2 + 4 ) , 0 , param -> tmpfile_createflag , MYF ( 0 ) ) ;\n if ( new_file < 0 ) {\n mi_check_print_error ( param , \"Can't create new tempfile: '%s'\" , param -> temp_filename ) ;\n goto err ;\n }\n if ( share -> pack . header_length ) if ( filecopy ( param , new_file , info -> dfile , 0L , share -> pack . header_length , \"datafile-header\" ) ) goto err ;\n info -> rec_cache . file = new_file ;\n lock_memory ( param ) ;\n for ( key = 0 ;\n key < share -> base . keys ;\n key ++ ) share -> keyinfo [ key ] . flag |= HA_SORT_ALLOWS_SAME ;\n if ( my_pread ( share -> kfile , ( uchar * ) temp_buff , ( uint ) keyinfo -> block_length , share -> state . key_root [ sort_key ] , MYF ( MY_NABP + MY_WME ) ) ) {\n mi_check_print_error ( param , \"Can't read indexpage from filepos: %s\" , ( ulong ) share -> state . key_root [ sort_key ] ) ;\n goto err ;\n }\n sort_info . info = info ;\n sort_info . new_data_file_type = share -> data_file_type ;\n sort_param . fix_datafile = 1 ;\n sort_param . master = 1 ;\n sort_param . filepos = share -> pack . header_length ;\n old_record_count = info -> state -> records ;\n info -> state -> records = 0 ;\n if ( sort_info . new_data_file_type != COMPRESSED_RECORD ) info -> state -> checksum = 0 ;\n if ( sort_record_index ( & sort_param , info , keyinfo , share -> state . key_root [ sort_key ] , temp_buff , sort_key , new_file , update_index ) || write_data_suffix ( & sort_info , 1 ) || flush_io_cache ( & info -> rec_cache ) ) goto err ;\n if ( info -> state -> records != old_record_count ) {\n mi_check_print_error ( param , \"found %s of %s records\" , llstr ( info -> state -> records , llbuff ) , llstr ( old_record_count , llbuff2 ) ) ;\n goto err ;\n }\n ( void ) my_close ( info -> dfile , MYF ( MY_WME ) ) ;\n param -> out_flag |= O_NEW_DATA ;\n info -> dfile = new_file ;\n info -> state -> del = 0 ;\n info -> state -> empty = 0 ;\n share -> state . dellink = HA_OFFSET_ERROR ;\n info -> state -> data_file_length = sort_param . filepos ;\n share -> state . split = info -> state -> records ;\n share -> state . version = ( ulong ) time ( ( time_t * ) 0 ) ;\n info -> update = ( short ) ( HA_STATE_CHANGED | HA_STATE_ROW_CHANGED ) ;\n if ( param -> testflag & T_WRITE_LOOP ) {\n ( void ) fputs ( \" \\r\" , stdout ) ;\n ( void ) fflush ( stdout ) ;\n }\n got_error = 0 ;\n err : if ( got_error && new_file >= 0 ) {\n ( void ) end_io_cache ( & info -> rec_cache ) ;\n ( void ) my_close ( new_file , MYF ( MY_WME ) ) ;\n ( void ) my_delete ( param -> temp_filename , MYF ( MY_WME ) ) ;\n }\n if ( temp_buff ) {\n my_afree ( ( uchar * ) temp_buff ) ;\n }\n my_free ( mi_get_rec_buff_ptr ( info , sort_param . record ) ) ;\n info -> opt_flag &= ~ ( READ_CACHE_USED | WRITE_CACHE_USED ) ;\n ( void ) end_io_cache ( & info -> rec_cache ) ;\n my_free ( sort_info . buff ) ;\n sort_info . buff = 0 ;\n share -> state . sortkey = sort_key ;\n DBUG_RETURN ( flush_blocks ( param , share -> key_cache , share -> kfile ) | got_error ) ;\n }"}
{"idx": 8758, "target": 0, "func": "void mime_hdr_field_block_list_adjust ( int , MIMEFieldBlockImpl * old_list , MIMEFieldBlockImpl * new_list ) {\n for ( MIMEFieldBlockImpl * new_blk = new_list ;\n new_blk ;\n new_blk = new_blk -> m_next ) {\n for ( MIMEField * field = new_blk -> m_field_slots , * end = field + new_blk -> m_freetop ;\n field != end ;\n ++ field ) {\n if ( field -> is_live ( ) && field -> m_next_dup ) {\n relocate ( field , new_list , old_list ) ;\n }\n }\n }\n }"}
{"idx": 8759, "target": 0, "func": "static int test_encode_decode_uint32_t ( xd3_stream * stream , int unused ) {\n TEST_ENCODE_DECODE_INTEGER ( uint32_t , 1U , UINT32_MAX ) ;\n }"}
{"idx": 8760, "target": 0, "func": "void pcnet_h_reset ( void * opaque ) {\n PCNetState * s = opaque ;\n s -> bcr [ BCR_MSRDA ] = 0x0005 ;\n s -> bcr [ BCR_MSWRA ] = 0x0005 ;\n s -> bcr [ BCR_MC ] = 0x0002 ;\n s -> bcr [ BCR_LNKST ] = 0x00c0 ;\n s -> bcr [ BCR_LED1 ] = 0x0084 ;\n s -> bcr [ BCR_LED2 ] = 0x0088 ;\n s -> bcr [ BCR_LED3 ] = 0x0090 ;\n s -> bcr [ BCR_FDC ] = 0x0000 ;\n s -> bcr [ BCR_BSBC ] = 0x9001 ;\n s -> bcr [ BCR_EECAS ] = 0x0002 ;\n s -> bcr [ BCR_SWS ] = 0x0200 ;\n s -> bcr [ BCR_PLAT ] = 0xff06 ;\n pcnet_s_reset ( s ) ;\n pcnet_update_irq ( s ) ;\n pcnet_poll_timer ( s ) ;\n }"}
{"idx": 8761, "target": 0, "func": "static time_t xstrpisotime ( const char * s , char * * endptr ) {\n struct tm tm ;\n time_t res = ( time_t ) - 1 ;\n memset ( & tm , 0 , sizeof ( tm ) ) ;\n while ( * s == ' ' || * s == '\\t' ) ++ s ;\n if ( ( tm . tm_year = strtoi_lim ( s , & s , 1583 , 4095 ) ) < 0 || * s ++ != '-' ) {\n goto out ;\n }\n if ( ( tm . tm_mon = strtoi_lim ( s , & s , 1 , 12 ) ) < 0 || * s ++ != '-' ) {\n goto out ;\n }\n if ( ( tm . tm_mday = strtoi_lim ( s , & s , 1 , 31 ) ) < 0 || * s ++ != 'T' ) {\n goto out ;\n }\n if ( ( tm . tm_hour = strtoi_lim ( s , & s , 0 , 23 ) ) < 0 || * s ++ != ':' ) {\n goto out ;\n }\n if ( ( tm . tm_min = strtoi_lim ( s , & s , 0 , 59 ) ) < 0 || * s ++ != ':' ) {\n goto out ;\n }\n if ( ( tm . tm_sec = strtoi_lim ( s , & s , 0 , 60 ) ) < 0 || * s ++ != 'Z' ) {\n goto out ;\n }\n tm . tm_year -= 1900 ;\n tm . tm_mon -- ;\n res = time_from_tm ( & tm ) ;\n out : if ( endptr != NULL ) {\n * endptr = deconst ( s ) ;\n }\n return res ;\n }"}
{"idx": 8762, "target": 0, "func": "static int dissect_h245_MultiplePayloadStreamCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MultiplePayloadStreamCapability , MultiplePayloadStreamCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 8763, "target": 0, "func": "void vmxnet_tx_pkt_setup_vlan_header ( struct VmxnetTxPkt * pkt , uint16_t vlan ) {\n bool is_new ;\n assert ( pkt ) ;\n eth_setup_vlan_headers ( pkt -> vec [ VMXNET_TX_PKT_L2HDR_FRAG ] . iov_base , vlan , & is_new ) ;\n if ( is_new ) {\n pkt -> hdr_len += sizeof ( struct vlan_header ) ;\n pkt -> vec [ VMXNET_TX_PKT_L2HDR_FRAG ] . iov_len += sizeof ( struct vlan_header ) ;\n }\n }"}
{"idx": 8764, "target": 1, "func": "void parseExtensionObject ( proto_tree * tree , tvbuff_t * tvb , packet_info * pinfo , gint * pOffset , const char * szFieldName ) {\n static const int * extobj_mask [ ] = {\n & hf_opcua_extobj_mask_binbodyflag , & hf_opcua_extobj_mask_xmlbodyflag , NULL }\n ;\n gint iOffset = * pOffset ;\n guint8 EncodingMask ;\n guint32 TypeId ;\n proto_tree * extobj_tree ;\n proto_item * ti ;\n extobj_tree = proto_tree_add_subtree_format ( tree , tvb , * pOffset , - 1 , ett_opcua_extensionobject , & ti , \"%s: ExtensionObject\" , szFieldName ) ;\n TypeId = getExtensionObjectType ( tvb , & iOffset ) ;\n parseExpandedNodeId ( extobj_tree , tvb , pinfo , & iOffset , \"TypeId\" ) ;\n EncodingMask = tvb_get_guint8 ( tvb , iOffset ) ;\n proto_tree_add_bitmask ( extobj_tree , tvb , iOffset , hf_opcua_extobj_mask , ett_opcua_extensionobject_encodingmask , extobj_mask , ENC_LITTLE_ENDIAN ) ;\n iOffset ++ ;\n if ( EncodingMask & EXTOBJ_ENCODINGMASK_BINBODY_FLAG ) {\n dispatchExtensionObjectType ( extobj_tree , tvb , pinfo , & iOffset , TypeId ) ;\n }\n proto_item_set_end ( ti , tvb , iOffset ) ;\n * pOffset = iOffset ;\n }"}
{"idx": 8765, "target": 0, "func": "static int dump_sa ( struct xfrm_state * x , int count , void * ptr ) {\n struct pfkey_sock * pfk = ptr ;\n struct sk_buff * out_skb ;\n struct sadb_msg * out_hdr ;\n if ( ! pfkey_can_dump ( & pfk -> sk ) ) return - ENOBUFS ;\n out_skb = pfkey_xfrm_state2msg ( x ) ;\n if ( IS_ERR ( out_skb ) ) return PTR_ERR ( out_skb ) ;\n out_hdr = ( struct sadb_msg * ) out_skb -> data ;\n out_hdr -> sadb_msg_version = pfk -> dump . msg_version ;\n out_hdr -> sadb_msg_type = SADB_DUMP ;\n out_hdr -> sadb_msg_satype = pfkey_proto2satype ( x -> id . proto ) ;\n out_hdr -> sadb_msg_errno = 0 ;\n out_hdr -> sadb_msg_reserved = 0 ;\n out_hdr -> sadb_msg_seq = count + 1 ;\n out_hdr -> sadb_msg_pid = pfk -> dump . msg_portid ;\n if ( pfk -> dump . skb ) pfkey_broadcast ( pfk -> dump . skb , GFP_ATOMIC , BROADCAST_ONE , & pfk -> sk , sock_net ( & pfk -> sk ) ) ;\n pfk -> dump . skb = out_skb ;\n return 0 ;\n }"}
{"idx": 8766, "target": 0, "func": "static void ioescapeloop ( IO * wrapper ) {\n _IO * io = wrapper -> top , * iop ;\n int wasloop ;\n while ( io -> prev != NULL && ! io -> isstopped ) {\n iop = io -> prev ;\n wasloop = io -> isloop ;\n if ( io -> start != NULL ) free ( io -> start ) ;\n io -> start = NULL ;\n free ( io ) ;\n if ( wasloop ) {\n wrapper -> top = iop ;\n return ;\n }\n io = iop ;\n }\n LogError ( _ ( \"Use of \\\"exit\\\" when not in a loop\\n\" ) ) ;\n wrapper -> top = io ;\n }"}
{"idx": 8767, "target": 0, "func": "gboolean nautilus_directory_check_if_ready_internal ( NautilusDirectory * directory , NautilusFile * file , NautilusFileAttributes file_attributes ) {\n Request request ;\n g_assert ( NAUTILUS_IS_DIRECTORY ( directory ) ) ;\n request = nautilus_directory_set_up_request ( file_attributes ) ;\n return request_is_satisfied ( directory , file , request ) ;\n }"}
{"idx": 8768, "target": 0, "func": "static int in_bitmapped_pack ( struct object_list * roots ) {\n while ( roots ) {\n struct object * object = roots -> item ;\n roots = roots -> next ;\n if ( find_pack_entry_one ( object -> oid . hash , bitmap_git . pack ) > 0 ) return 1 ;\n }\n return 0 ;\n }"}
{"idx": 8769, "target": 0, "func": "static inline bool e1000e_itr_should_postpone ( E1000ECore * core ) {\n return e1000e_postpone_interrupt ( & core -> itr_intr_pending , & core -> itr ) ;\n }"}
{"idx": 8770, "target": 0, "func": "static const char * hfinfo_numeric_value_format64 ( const header_field_info * hfinfo , char buf [ 64 ] , guint64 value ) {\n int display = hfinfo -> display & FIELD_DISPLAY_E_MASK ;\n if ( hfinfo -> type == FT_FRAMENUM ) {\n display = BASE_DEC ;\n }\n switch ( display ) {\n case BASE_NONE : case BASE_DEC_HEX : case BASE_OCT : case BASE_CUSTOM : display = BASE_DEC ;\n break ;\n case BASE_HEX_DEC : display = BASE_HEX ;\n break ;\n }\n return hfinfo_number_value_format_display64 ( hfinfo , display , buf , value ) ;\n }"}
{"idx": 8771, "target": 0, "func": "ttfFont * ttfFont__create ( gs_font_dir * dir ) {\n gs_memory_t * mem = dir -> memory -> stable_memory ;\n ttfFont * ttf ;\n if ( dir -> ttm == NULL ) {\n gx_ttfMemory * m = gs_alloc_struct ( mem , gx_ttfMemory , & st_gx_ttfMemory , \"ttfFont__create(gx_ttfMemory)\" ) ;\n if ( ! m ) return 0 ;\n m -> super . alloc_struct = gx_ttfMemory__alloc_struct ;\n m -> super . alloc_bytes = gx_ttfMemory__alloc_bytes ;\n m -> super . free = gx_ttfMemory__free ;\n m -> memory = mem ;\n dir -> ttm = m ;\n }\n if ( ttfInterpreter__obtain ( & dir -> ttm -> super , & dir -> tti ) ) return 0 ;\n if ( gx_san__obtain ( mem , & dir -> san ) ) return 0 ;\n ttf = gs_alloc_struct ( mem , ttfFont , & st_ttfFont , \"ttfFont__create\" ) ;\n if ( ttf == NULL ) return 0 ;\n # ifdef DEBUG ttfFont__init ( ttf , & dir -> ttm -> super , DebugRepaint , ( gs_debug_c ( 'Y' ) ? DebugPrint : NULL ) , mem ) ;\n # else ttfFont__init ( ttf , & dir -> ttm -> super , DebugRepaint , NULL , mem ) ;\n # endif return ttf ;\n }"}
{"idx": 8772, "target": 0, "func": "static unsigned char * extra_open_record ( unsigned char * bp , int dr_len , struct isoent * isoent , struct ctl_extr_rec * ctl ) {\n ctl -> bp = bp ;\n if ( bp != NULL ) bp += dr_len ;\n ctl -> use_extr = 0 ;\n ctl -> isoent = isoent ;\n ctl -> ce_ptr = NULL ;\n ctl -> cur_len = ctl -> dr_len = dr_len ;\n ctl -> limit = DR_LIMIT ;\n return ( bp ) ;\n }"}
{"idx": 8773, "target": 0, "func": "int _PyString_Eq ( PyObject * o1 , PyObject * o2 ) {\n PyStringObject * a = ( PyStringObject * ) o1 ;\n PyStringObject * b = ( PyStringObject * ) o2 ;\n return Py_SIZE ( a ) == Py_SIZE ( b ) && memcmp ( a -> ob_sval , b -> ob_sval , Py_SIZE ( a ) ) == 0 ;\n }"}
{"idx": 8774, "target": 0, "func": "static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 8775, "target": 0, "func": "static int http_server_session_sharing_cb ( const char * name , RecDataT dtype , RecData data , void * cookie ) {\n bool valid_p = true ;\n HttpConfigParams * c = static_cast < HttpConfigParams * > ( cookie ) ;\n if ( 0 == strcasecmp ( \"proxy.config.http.server_session_sharing.match\" , name ) ) {\n MgmtByte & match = c -> oride . server_session_sharing_match ;\n if ( RECD_INT == dtype ) {\n match = static_cast < TSServerSessionSharingMatchType > ( data . rec_int ) ;\n }\n else if ( RECD_STRING == dtype && http_config_enum_search ( data . rec_string , SessionSharingMatchStrings , match ) ) {\n }\n else {\n valid_p = false ;\n }\n }\n else {\n valid_p = false ;\n }\n if ( valid_p ) {\n http_config_cb ( name , dtype , data , cookie ) ;\n }\n return REC_ERR_OKAY ;\n }"}
{"idx": 8776, "target": 0, "func": "static inline uint64_t e1000e_ring_base ( E1000ECore * core , const E1000E_RingInfo * r ) {\n uint64_t bah = core -> mac [ r -> dbah ] ;\n uint64_t bal = core -> mac [ r -> dbal ] ;\n return ( bah << 32 ) + bal ;\n }"}
{"idx": 8777, "target": 0, "func": "static void dct_unquantize_h263_inter_c ( MpegEncContext * s , int16_t * block , int n , int qscale ) {\n int i , level , qmul , qadd ;\n int nCoeffs ;\n assert ( s -> block_last_index [ n ] >= 0 ) ;\n qadd = ( qscale - 1 ) | 1 ;\n qmul = qscale << 1 ;\n nCoeffs = s -> inter_scantable . raster_end [ s -> block_last_index [ n ] ] ;\n for ( i = 0 ;\n i <= nCoeffs ;\n i ++ ) {\n level = block [ i ] ;\n if ( level ) {\n if ( level < 0 ) {\n level = level * qmul - qadd ;\n }\n else {\n level = level * qmul + qadd ;\n }\n block [ i ] = level ;\n }\n }\n }"}
{"idx": 8778, "target": 0, "func": "void irc_ctcp_recv_dcc ( struct t_irc_server * server , const char * nick , const char * arguments , char * message ) {\n char * dcc_args , * pos , * pos_file , * pos_addr , * pos_port , * pos_size ;\n char * pos_start_resume , * filename ;\n struct t_infolist * infolist ;\n struct t_infolist_item * item ;\n char charset_modifier [ 256 ] ;\n if ( ! arguments || ! arguments [ 0 ] ) return ;\n if ( strncmp ( arguments , \"SEND \" , 5 ) == 0 ) {\n arguments += 5 ;\n while ( arguments [ 0 ] == ' ' ) {\n arguments ++ ;\n }\n dcc_args = strdup ( arguments ) ;\n if ( ! dcc_args ) {\n weechat_printf ( server -> buffer , _ ( \"%s%s: not enough memory for \\\"%s\\\" command\" ) , weechat_prefix ( \"error\" ) , IRC_PLUGIN_NAME , \"privmsg\" ) ;\n return ;\n }\n pos_file = dcc_args ;\n while ( pos_file [ 0 ] == ' ' ) {\n pos_file ++ ;\n }\n pos_size = strrchr ( pos_file , ' ' ) ;\n if ( ! pos_size ) {\n weechat_printf ( server -> buffer , _ ( \"%s%s: cannot parse \\\"%s\\\" command\" ) , weechat_prefix ( \"error\" ) , IRC_PLUGIN_NAME , \"privmsg\" ) ;\n free ( dcc_args ) ;\n return ;\n }\n pos = pos_size ;\n pos_size ++ ;\n while ( pos [ 0 ] == ' ' ) {\n pos -- ;\n }\n pos [ 1 ] = '\\0' ;\n pos_port = strrchr ( pos_file , ' ' ) ;\n if ( ! pos_port ) {\n weechat_printf ( server -> buffer , _ ( \"%s%s: cannot parse \\\"%s\\\" command\" ) , weechat_prefix ( \"error\" ) , IRC_PLUGIN_NAME , \"privmsg\" ) ;\n free ( dcc_args ) ;\n return ;\n }\n pos = pos_port ;\n pos_port ++ ;\n while ( pos [ 0 ] == ' ' ) {\n pos -- ;\n }\n pos [ 1 ] = '\\0' ;\n pos_addr = strrchr ( pos_file , ' ' ) ;\n if ( ! pos_addr ) {\n weechat_printf ( server -> buffer , _ ( \"%s%s: cannot parse \\\"%s\\\" command\" ) , weechat_prefix ( \"error\" ) , IRC_PLUGIN_NAME , \"privmsg\" ) ;\n free ( dcc_args ) ;\n return ;\n }\n pos = pos_addr ;\n pos_addr ++ ;\n while ( pos [ 0 ] == ' ' ) {\n pos -- ;\n }\n pos [ 1 ] = '\\0' ;\n filename = irc_ctcp_dcc_filename_without_quotes ( pos_file ) ;\n infolist = weechat_infolist_new ( ) ;\n if ( infolist ) {\n item = weechat_infolist_new_item ( infolist ) ;\n if ( item ) {\n weechat_infolist_new_var_string ( item , \"plugin_name\" , weechat_plugin -> name ) ;\n weechat_infolist_new_var_string ( item , \"plugin_id\" , server -> name ) ;\n weechat_infolist_new_var_string ( item , \"type_string\" , \"file_recv\" ) ;\n weechat_infolist_new_var_string ( item , \"protocol_string\" , \"dcc\" ) ;\n weechat_infolist_new_var_string ( item , \"remote_nick\" , nick ) ;\n weechat_infolist_new_var_string ( item , \"local_nick\" , server -> nick ) ;\n weechat_infolist_new_var_string ( item , \"filename\" , ( filename ) ? filename : pos_file ) ;\n weechat_infolist_new_var_string ( item , \"size\" , pos_size ) ;\n weechat_infolist_new_var_string ( item , \"proxy\" , IRC_SERVER_OPTION_STRING ( server , IRC_SERVER_OPTION_PROXY ) ) ;\n weechat_infolist_new_var_string ( item , \"remote_address\" , pos_addr ) ;\n weechat_infolist_new_var_integer ( item , \"port\" , atoi ( pos_port ) ) ;\n ( void ) weechat_hook_signal_send ( \"xfer_add\" , WEECHAT_HOOK_SIGNAL_POINTER , infolist ) ;\n }\n weechat_infolist_free ( infolist ) ;\n }\n ( void ) weechat_hook_signal_send ( \"irc_dcc\" , WEECHAT_HOOK_SIGNAL_STRING , message ) ;\n if ( filename ) free ( filename ) ;\n free ( dcc_args ) ;\n }\n else if ( strncmp ( arguments , \"RESUME \" , 7 ) == 0 ) {\n arguments += 7 ;\n while ( arguments [ 0 ] == ' ' ) {\n arguments ++ ;\n }\n dcc_args = strdup ( arguments ) ;\n if ( ! dcc_args ) {\n weechat_printf ( server -> buffer , _ ( \"%s%s: not enough memory for \\\"%s\\\" command\" ) , weechat_prefix ( \"error\" ) , IRC_PLUGIN_NAME , \"privmsg\" ) ;\n return ;\n }\n pos_file = dcc_args ;\n while ( pos_file [ 0 ] == ' ' ) {\n pos_file ++ ;\n }\n pos_start_resume = strrchr ( pos_file , ' ' ) ;\n if ( ! pos_start_resume ) {\n weechat_printf ( server -> buffer , _ ( \"%s%s: cannot parse \\\"%s\\\" command\" ) , weechat_prefix ( \"error\" ) , IRC_PLUGIN_NAME , \"privmsg\" ) ;\n free ( dcc_args ) ;\n return ;\n }\n pos = pos_start_resume ;\n pos_start_resume ++ ;\n while ( pos [ 0 ] == ' ' ) {\n pos -- ;\n }\n pos [ 1 ] = '\\0' ;\n pos_port = strrchr ( pos_file , ' ' ) ;\n if ( ! pos_port ) {\n weechat_printf ( server -> buffer , _ ( \"%s%s: cannot parse \\\"%s\\\" command\" ) , weechat_prefix ( \"error\" ) , IRC_PLUGIN_NAME , \"privmsg\" ) ;\n free ( dcc_args ) ;\n return ;\n }\n pos = pos_port ;\n pos_port ++ ;\n while ( pos [ 0 ] == ' ' ) {\n pos -- ;\n }\n pos [ 1 ] = '\\0' ;\n filename = irc_ctcp_dcc_filename_without_quotes ( pos_file ) ;\n infolist = weechat_infolist_new ( ) ;\n if ( infolist ) {\n item = weechat_infolist_new_item ( infolist ) ;\n if ( item ) {\n weechat_infolist_new_var_string ( item , \"plugin_name\" , weechat_plugin -> name ) ;\n weechat_infolist_new_var_string ( item , \"plugin_id\" , server -> name ) ;\n weechat_infolist_new_var_string ( item , \"type_string\" , \"file_recv\" ) ;\n weechat_infolist_new_var_string ( item , \"filename\" , ( filename ) ? filename : pos_file ) ;\n weechat_infolist_new_var_integer ( item , \"port\" , atoi ( pos_port ) ) ;\n weechat_infolist_new_var_string ( item , \"start_resume\" , pos_start_resume ) ;\n ( void ) weechat_hook_signal_send ( \"xfer_accept_resume\" , WEECHAT_HOOK_SIGNAL_POINTER , infolist ) ;\n }\n weechat_infolist_free ( infolist ) ;\n }\n ( void ) weechat_hook_signal_send ( \"irc_dcc\" , WEECHAT_HOOK_SIGNAL_STRING , message ) ;\n if ( filename ) free ( filename ) ;\n free ( dcc_args ) ;\n }\n else if ( strncmp ( arguments , \"ACCEPT \" , 7 ) == 0 ) {\n arguments += 7 ;\n while ( arguments [ 0 ] == ' ' ) {\n arguments ++ ;\n }\n dcc_args = strdup ( arguments ) ;\n if ( ! dcc_args ) {\n weechat_printf ( server -> buffer , _ ( \"%s%s: not enough memory for \\\"%s\\\" command\" ) , weechat_prefix ( \"error\" ) , IRC_PLUGIN_NAME , \"privmsg\" ) ;\n return ;\n }\n pos_file = dcc_args ;\n while ( pos_file [ 0 ] == ' ' ) {\n pos_file ++ ;\n }\n pos_start_resume = strrchr ( pos_file , ' ' ) ;\n if ( ! pos_start_resume ) {\n weechat_printf ( server -> buffer , _ ( \"%s%s: cannot parse \\\"%s\\\" command\" ) , weechat_prefix ( \"error\" ) , IRC_PLUGIN_NAME , \"privmsg\" ) ;\n free ( dcc_args ) ;\n return ;\n }\n pos = pos_start_resume ;\n pos_start_resume ++ ;\n while ( pos [ 0 ] == ' ' ) {\n pos -- ;\n }\n pos [ 1 ] = '\\0' ;\n pos_port = strrchr ( pos_file , ' ' ) ;\n if ( ! pos_port ) {\n weechat_printf ( server -> buffer , _ ( \"%s%s: cannot parse \\\"%s\\\" command\" ) , weechat_prefix ( \"error\" ) , IRC_PLUGIN_NAME , \"privmsg\" ) ;\n free ( dcc_args ) ;\n return ;\n }\n pos = pos_port ;\n pos_port ++ ;\n while ( pos [ 0 ] == ' ' ) {\n pos -- ;\n }\n pos [ 1 ] = '\\0' ;\n filename = irc_ctcp_dcc_filename_without_quotes ( pos_file ) ;\n infolist = weechat_infolist_new ( ) ;\n if ( infolist ) {\n item = weechat_infolist_new_item ( infolist ) ;\n if ( item ) {\n weechat_infolist_new_var_string ( item , \"plugin_name\" , weechat_plugin -> name ) ;\n weechat_infolist_new_var_string ( item , \"plugin_id\" , server -> name ) ;\n weechat_infolist_new_var_string ( item , \"type_string\" , \"file_recv\" ) ;\n weechat_infolist_new_var_string ( item , \"filename\" , ( filename ) ? filename : pos_file ) ;\n weechat_infolist_new_var_integer ( item , \"port\" , atoi ( pos_port ) ) ;\n weechat_infolist_new_var_string ( item , \"start_resume\" , pos_start_resume ) ;\n ( void ) weechat_hook_signal_send ( \"xfer_start_resume\" , WEECHAT_HOOK_SIGNAL_POINTER , infolist ) ;\n }\n weechat_infolist_free ( infolist ) ;\n }\n ( void ) weechat_hook_signal_send ( \"irc_dcc\" , WEECHAT_HOOK_SIGNAL_STRING , message ) ;\n if ( filename ) free ( filename ) ;\n free ( dcc_args ) ;\n }\n else if ( strncmp ( arguments , \"CHAT \" , 5 ) == 0 ) {\n arguments += 5 ;\n while ( arguments [ 0 ] == ' ' ) {\n arguments ++ ;\n }\n dcc_args = strdup ( arguments ) ;\n if ( ! dcc_args ) {\n weechat_printf ( server -> buffer , _ ( \"%s%s: not enough memory for \\\"%s\\\" command\" ) , weechat_prefix ( \"error\" ) , IRC_PLUGIN_NAME , \"privmsg\" ) ;\n return ;\n }\n pos_file = dcc_args ;\n while ( pos_file [ 0 ] == ' ' ) {\n pos_file ++ ;\n }\n pos_addr = strchr ( pos_file , ' ' ) ;\n if ( ! pos_addr ) {\n weechat_printf ( server -> buffer , _ ( \"%s%s: cannot parse \\\"%s\\\" command\" ) , weechat_prefix ( \"error\" ) , IRC_PLUGIN_NAME , \"privmsg\" ) ;\n free ( dcc_args ) ;\n return ;\n }\n pos_addr [ 0 ] = '\\0' ;\n pos_addr ++ ;\n while ( pos_addr [ 0 ] == ' ' ) {\n pos_addr ++ ;\n }\n pos_port = strchr ( pos_addr , ' ' ) ;\n if ( ! pos_port ) {\n weechat_printf ( server -> buffer , _ ( \"%s%s: cannot parse \\\"%s\\\" command\" ) , weechat_prefix ( \"error\" ) , IRC_PLUGIN_NAME , \"privmsg\" ) ;\n free ( dcc_args ) ;\n return ;\n }\n pos_port [ 0 ] = '\\0' ;\n pos_port ++ ;\n while ( pos_port [ 0 ] == ' ' ) {\n pos_port ++ ;\n }\n if ( weechat_strcasecmp ( pos_file , \"chat\" ) != 0 ) {\n weechat_printf ( server -> buffer , _ ( \"%s%s: unknown DCC CHAT type received from %s%s%s: \\\"%s\\\"\" ) , weechat_prefix ( \"error\" ) , IRC_PLUGIN_NAME , irc_nick_color_for_msg ( server , 0 , NULL , nick ) , nick , IRC_COLOR_RESET , pos_file ) ;\n free ( dcc_args ) ;\n return ;\n }\n infolist = weechat_infolist_new ( ) ;\n if ( infolist ) {\n item = weechat_infolist_new_item ( infolist ) ;\n if ( item ) {\n weechat_infolist_new_var_string ( item , \"plugin_name\" , weechat_plugin -> name ) ;\n weechat_infolist_new_var_string ( item , \"plugin_id\" , server -> name ) ;\n weechat_infolist_new_var_string ( item , \"type_string\" , \"chat_recv\" ) ;\n weechat_infolist_new_var_string ( item , \"remote_nick\" , nick ) ;\n weechat_infolist_new_var_string ( item , \"local_nick\" , server -> nick ) ;\n snprintf ( charset_modifier , sizeof ( charset_modifier ) , \"irc.%s.%s\" , server -> name , nick ) ;\n weechat_infolist_new_var_string ( item , \"charset_modifier\" , charset_modifier ) ;\n weechat_infolist_new_var_string ( item , \"proxy\" , IRC_SERVER_OPTION_STRING ( server , IRC_SERVER_OPTION_PROXY ) ) ;\n weechat_infolist_new_var_string ( item , \"remote_address\" , pos_addr ) ;\n weechat_infolist_new_var_integer ( item , \"port\" , atoi ( pos_port ) ) ;\n ( void ) weechat_hook_signal_send ( \"xfer_add\" , WEECHAT_HOOK_SIGNAL_POINTER , infolist ) ;\n }\n weechat_infolist_free ( infolist ) ;\n }\n ( void ) weechat_hook_signal_send ( \"irc_dcc\" , WEECHAT_HOOK_SIGNAL_STRING , message ) ;\n free ( dcc_args ) ;\n }\n }"}
{"idx": 8779, "target": 0, "func": "guint8 dissect_coap_code ( tvbuff_t * tvb , proto_tree * tree , gint * offset , coap_common_dissect_t * dissect_hf , guint8 * code_class ) {\n guint8 code ;\n proto_tree_add_item ( tree , dissect_hf -> hf . code , tvb , * offset , 1 , ENC_BIG_ENDIAN ) ;\n code = tvb_get_guint8 ( tvb , * offset ) ;\n * code_class = code >> 5 ;\n * offset += 1 ;\n return code ;\n }"}
{"idx": 8780, "target": 1, "func": "TEST_F ( ScoredHistoryMatchTest , ScoringBookmarks ) {\n base : : Time now = base : : Time : : NowFromSystemTime ( ) ;\n std : : string url_string ( \"http://fedcba\" ) ;\n const GURL url ( url_string ) ;\n history : : URLRow row ( MakeURLRow ( url_string . c_str ( ) , \"abcd bcd\" , 8 , 3 , 1 ) ) ;\n RowWordStarts word_starts ;\n PopulateWordStarts ( row , & word_starts ) ;\n WordStarts one_word_no_offset ( 1 , 0u ) ;\n VisitInfoVector visits = CreateVisitInfoVector ( 8 , 3 , now ) ;\n ScoredHistoryMatch scored ( row , visits , std : : string ( ) , ASCIIToUTF16 ( \"abc\" ) , Make1Term ( \"abc\" ) , one_word_no_offset , word_starts , false , nullptr , now ) ;\n base : : AutoReset < int > reset ( & ScoredHistoryMatch : : bookmark_value_ , 5 ) ;\n ScoredHistoryMatch scored_with_bookmark ( row , visits , std : : string ( ) , ASCIIToUTF16 ( \"abc\" ) , Make1Term ( \"abc\" ) , one_word_no_offset , word_starts , true , nullptr , now ) ;\n EXPECT_GT ( scored_with_bookmark . raw_score , scored . raw_score ) ;\n }"}
{"idx": 8781, "target": 1, "func": "void proto_register_adb ( void ) {\n module_t * module ;\n expert_module_t * expert_module ;\n static hf_register_info hf [ ] = {\n {\n & hf_command , {\n \"Command\" , \"adb.command\" , FT_UINT32 , BASE_HEX , VALS ( command_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_argument_0 , {\n \"Argument 0\" , \"adb.argument.0\" , FT_UINT32 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_argument_1 , {\n \"Argument 0\" , \"adb.argument.1\" , FT_UINT32 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_data_length , {\n \"Data Length\" , \"adb.data_length\" , FT_UINT32 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_data_crc32 , {\n \"Data CRC32\" , \"adb.data_crc32\" , FT_UINT32 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_magic , {\n \"Magic\" , \"adb.magic\" , FT_UINT32 , BASE_HEX , VALS ( magic_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_version , {\n \"Version\" , \"adb.version\" , FT_UINT32 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_max_data , {\n \"Max Data\" , \"adb.max_data\" , FT_UINT32 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_auth_type , {\n \"Type\" , \"adb.auth_type\" , FT_UINT32 , BASE_HEX , VALS ( auth_type_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_online , {\n \"Online\" , \"adb.online\" , FT_BOOLEAN , 32 , TFS ( & tfs_no_yes ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_sequence , {\n \"Sequence\" , \"adb.sequence\" , FT_UINT32 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zero , {\n \"Zero\" , \"adb.zero\" , FT_UINT32 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_local_id , {\n \"Local ID\" , \"adb.local_id\" , FT_UINT32 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_remote_id , {\n \"Remote ID\" , \"adb.remote_id\" , FT_UINT32 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_data , {\n \"Data\" , \"adb.data\" , FT_NONE , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_service , {\n \"Service\" , \"adb.service\" , FT_STRING , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_data_fragment , {\n \"Data Fragment\" , \"adb.data_fragment\" , FT_NONE , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_service_start_in_frame , {\n \"Service Start in Frame\" , \"adb.service_start_in_frame\" , FT_FRAMENUM , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_close_local_in_frame , {\n \"Local Service Close in Frame\" , \"adb.close_local_in_frame\" , FT_FRAMENUM , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_close_remote_in_frame , {\n \"Remote Service Close in Frame\" , \"adb.close_remote_in_frame\" , FT_FRAMENUM , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_command_in_frame , {\n \"Command in Frame\" , \"adb.command_in_frame\" , FT_FRAMENUM , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_completed_in_frame , {\n \"Completed in Frame\" , \"adb.completed_in_frame\" , FT_FRAMENUM , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_connection_info , {\n \"Info\" , \"adb.connection_info\" , FT_STRINGZ , STR_ASCII , NULL , 0x00 , NULL , HFILL }\n }\n }\n ;\n static gint * ett [ ] = {\n & ett_adb , & ett_adb_arg0 , & ett_adb_arg1 , & ett_adb_crc , & ett_adb_magic }\n ;\n static ei_register_info ei [ ] = {\n {\n & ei_invalid_magic , {\n \"adb.expert.invalid_magic\" , PI_PROTOCOL , PI_WARN , \"Invalid Magic\" , EXPFILL }\n }\n , {\n & ei_invalid_crc , {\n \"adb.expert.crc_error\" , PI_PROTOCOL , PI_ERROR , \"CRC32 Error\" , EXPFILL }\n }\n , }\n ;\n command_info = wmem_tree_new_autoreset ( wmem_epan_scope ( ) , wmem_file_scope ( ) ) ;\n service_info = wmem_tree_new_autoreset ( wmem_epan_scope ( ) , wmem_file_scope ( ) ) ;\n proto_adb = proto_register_protocol ( \"Android Debug Bridge\" , \"ADB\" , \"adb\" ) ;\n adb_handle = register_dissector ( \"adb\" , dissect_adb , proto_adb ) ;\n proto_register_field_array ( proto_adb , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n expert_module = expert_register_protocol ( proto_adb ) ;\n expert_register_field_array ( expert_module , ei , array_length ( ei ) ) ;\n module = prefs_register_protocol ( proto_adb , NULL ) ;\n prefs_register_static_text_preference ( module , \"version\" , \"ADB protocol version is compatible prior to: adb 1.0.31\" , \"Version of protocol supported by this dissector.\" ) ;\n }"}
{"idx": 8782, "target": 0, "func": "static void vout_unlink_picture ( decoder_t * p_dec , picture_t * p_pic ) {\n vout_ReleasePicture ( p_dec -> p_owner -> p_vout , p_pic ) ;\n }"}
{"idx": 8783, "target": 0, "func": "int X509_REQ_sign ( X509_REQ * x , EVP_PKEY * pkey , const EVP_MD * md ) {\n return ( ASN1_item_sign ( ASN1_ITEM_rptr ( X509_REQ_INFO ) , x -> sig_alg , NULL , x -> signature , x -> req_info , pkey , md ) ) ;\n }"}
{"idx": 8784, "target": 0, "func": "static int read_image_block ( Gif_Reader * grr , uint8_t * buffer , int * bit_pos_store , int * bit_len_store , int bits_needed ) {\n int bit_position = * bit_pos_store ;\n int bit_length = * bit_len_store ;\n uint8_t block_len ;\n while ( bit_position + bits_needed > bit_length ) {\n if ( bit_position >= 8 ) {\n int i = bit_position / 8 ;\n buffer [ 0 ] = buffer [ i ] ;\n buffer [ 1 ] = buffer [ i + 1 ] ;\n bit_position -= i * 8 ;\n bit_length -= i * 8 ;\n }\n block_len = gifgetbyte ( grr ) ;\n GIF_DEBUG ( ( \"\\nimage_block(%d) \" , block_len ) ) ;\n if ( block_len == 0 ) return 0 ;\n gifgetblock ( buffer + bit_length / 8 , block_len , grr ) ;\n bit_length += block_len * 8 ;\n }\n * bit_pos_store = bit_position ;\n * bit_len_store = bit_length ;\n return 1 ;\n }"}
{"idx": 8785, "target": 0, "func": "void cpu_loop_exit ( CPUArchState * env ) {\n CPUState * cpu = ENV_GET_CPU ( env ) ;\n cpu -> current_tb = NULL ;\n siglongjmp ( env -> jmp_env , 1 ) ;\n }"}
{"idx": 8786, "target": 0, "func": "bool agg_item_collations ( DTCollation & c , const char * fname , Item * * av , uint count , uint flags , int item_sep ) {\n uint i ;\n Item * * arg ;\n bool unknown_cs = 0 ;\n c . set ( av [ 0 ] -> collation ) ;\n for ( i = 1 , arg = & av [ item_sep ] ;\n i < count ;\n i ++ , arg += item_sep ) {\n if ( c . aggregate ( ( * arg ) -> collation , flags ) ) {\n if ( c . derivation == DERIVATION_NONE && c . collation == & my_charset_bin ) {\n unknown_cs = 1 ;\n continue ;\n }\n my_coll_agg_error ( av , count , fname , item_sep ) ;\n return TRUE ;\n }\n }\n if ( unknown_cs && c . derivation != DERIVATION_EXPLICIT ) {\n my_coll_agg_error ( av , count , fname , item_sep ) ;\n return TRUE ;\n }\n if ( ( flags & MY_COLL_DISALLOW_NONE ) && c . derivation == DERIVATION_NONE ) {\n my_coll_agg_error ( av , count , fname , item_sep ) ;\n return TRUE ;\n }\n if ( flags & MY_COLL_ALLOW_NUMERIC_CONV && c . derivation == DERIVATION_NUMERIC ) c . set ( Item : : default_charset ( ) , DERIVATION_COERCIBLE , MY_REPERTOIRE_NUMERIC ) ;\n return FALSE ;\n }"}
{"idx": 8787, "target": 0, "func": "static uint32_t record_block_getter ( uint8_t * p , uint32_t s , Gif_Reader * grr ) {\n uint32_t ncopy = ( grr -> pos + s <= grr -> length ? s : grr -> length - grr -> pos ) ;\n memcpy ( p , & grr -> v [ grr -> pos ] , ncopy ) ;\n grr -> pos += ncopy ;\n if ( ncopy < s ) memset ( p + ncopy , 0 , s - ncopy ) ;\n return ncopy ;\n }"}
{"idx": 8788, "target": 0, "func": "void vp9_filter_block_plane ( VP9_COMMON * const cm , struct macroblockd_plane * const plane , int mi_row , LOOP_FILTER_MASK * lfm ) {\n struct buf_2d * const dst = & plane -> dst ;\n uint8_t * const dst0 = dst -> buf ;\n int r , c ;\n if ( ! plane -> plane_type ) {\n uint64_t mask_16x16 = lfm -> left_y [ TX_16X16 ] ;\n uint64_t mask_8x8 = lfm -> left_y [ TX_8X8 ] ;\n uint64_t mask_4x4 = lfm -> left_y [ TX_4X4 ] ;\n uint64_t mask_4x4_int = lfm -> int_4x4_y ;\n for ( r = 0 ;\n r < MI_BLOCK_SIZE && mi_row + r < cm -> mi_rows ;\n r += 2 ) {\n unsigned int mask_16x16_l = mask_16x16 & 0xffff ;\n unsigned int mask_8x8_l = mask_8x8 & 0xffff ;\n unsigned int mask_4x4_l = mask_4x4 & 0xffff ;\n unsigned int mask_4x4_int_l = mask_4x4_int & 0xffff ;\n filter_selectively_vert_row2 ( plane -> plane_type , dst -> buf , dst -> stride , mask_16x16_l , mask_8x8_l , mask_4x4_l , mask_4x4_int_l , & cm -> lf_info , & lfm -> lfl_y [ r << 3 ] ) ;\n dst -> buf += 16 * dst -> stride ;\n mask_16x16 >>= 16 ;\n mask_8x8 >>= 16 ;\n mask_4x4 >>= 16 ;\n mask_4x4_int >>= 16 ;\n }\n dst -> buf = dst0 ;\n mask_16x16 = lfm -> above_y [ TX_16X16 ] ;\n mask_8x8 = lfm -> above_y [ TX_8X8 ] ;\n mask_4x4 = lfm -> above_y [ TX_4X4 ] ;\n mask_4x4_int = lfm -> int_4x4_y ;\n for ( r = 0 ;\n r < MI_BLOCK_SIZE && mi_row + r < cm -> mi_rows ;\n r ++ ) {\n unsigned int mask_16x16_r ;\n unsigned int mask_8x8_r ;\n unsigned int mask_4x4_r ;\n if ( mi_row + r == 0 ) {\n mask_16x16_r = 0 ;\n mask_8x8_r = 0 ;\n mask_4x4_r = 0 ;\n }\n else {\n mask_16x16_r = mask_16x16 & 0xff ;\n mask_8x8_r = mask_8x8 & 0xff ;\n mask_4x4_r = mask_4x4 & 0xff ;\n }\n filter_selectively_horiz ( dst -> buf , dst -> stride , mask_16x16_r , mask_8x8_r , mask_4x4_r , mask_4x4_int & 0xff , & cm -> lf_info , & lfm -> lfl_y [ r << 3 ] ) ;\n dst -> buf += 8 * dst -> stride ;\n mask_16x16 >>= 8 ;\n mask_8x8 >>= 8 ;\n mask_4x4 >>= 8 ;\n mask_4x4_int >>= 8 ;\n }\n }\n else {\n uint16_t mask_16x16 = lfm -> left_uv [ TX_16X16 ] ;\n uint16_t mask_8x8 = lfm -> left_uv [ TX_8X8 ] ;\n uint16_t mask_4x4 = lfm -> left_uv [ TX_4X4 ] ;\n uint16_t mask_4x4_int = lfm -> int_4x4_uv ;\n for ( r = 0 ;\n r < MI_BLOCK_SIZE && mi_row + r < cm -> mi_rows ;\n r += 4 ) {\n if ( plane -> plane_type == 1 ) {\n for ( c = 0 ;\n c < ( MI_BLOCK_SIZE >> 1 ) ;\n c ++ ) {\n lfm -> lfl_uv [ ( r << 1 ) + c ] = lfm -> lfl_y [ ( r << 3 ) + ( c << 1 ) ] ;\n lfm -> lfl_uv [ ( ( r + 2 ) << 1 ) + c ] = lfm -> lfl_y [ ( ( r + 2 ) << 3 ) + ( c << 1 ) ] ;\n }\n }\n {\n unsigned int mask_16x16_l = mask_16x16 & 0xff ;\n unsigned int mask_8x8_l = mask_8x8 & 0xff ;\n unsigned int mask_4x4_l = mask_4x4 & 0xff ;\n unsigned int mask_4x4_int_l = mask_4x4_int & 0xff ;\n filter_selectively_vert_row2 ( plane -> plane_type , dst -> buf , dst -> stride , mask_16x16_l , mask_8x8_l , mask_4x4_l , mask_4x4_int_l , & cm -> lf_info , & lfm -> lfl_uv [ r << 1 ] ) ;\n dst -> buf += 16 * dst -> stride ;\n mask_16x16 >>= 8 ;\n mask_8x8 >>= 8 ;\n mask_4x4 >>= 8 ;\n mask_4x4_int >>= 8 ;\n }\n }\n dst -> buf = dst0 ;\n mask_16x16 = lfm -> above_uv [ TX_16X16 ] ;\n mask_8x8 = lfm -> above_uv [ TX_8X8 ] ;\n mask_4x4 = lfm -> above_uv [ TX_4X4 ] ;\n mask_4x4_int = lfm -> int_4x4_uv ;\n for ( r = 0 ;\n r < MI_BLOCK_SIZE && mi_row + r < cm -> mi_rows ;\n r += 2 ) {\n const int skip_border_4x4_r = mi_row + r == cm -> mi_rows - 1 ;\n const unsigned int mask_4x4_int_r = skip_border_4x4_r ? : ( mask_4x4_int & 0xf ) ;\n unsigned int mask_16x16_r ;\n unsigned int mask_8x8_r ;\n unsigned int mask_4x4_r ;\n if ( mi_row + r == 0 ) {\n mask_16x16_r = 0 ;\n mask_8x8_r = 0 ;\n mask_4x4_r = 0 ;\n }\n else {\n mask_16x16_r = mask_16x16 & 0xf ;\n mask_8x8_r = mask_8x8 & 0xf ;\n mask_4x4_r = mask_4x4 & 0xf ;\n }\n filter_selectively_horiz ( dst -> buf , dst -> stride , mask_16x16_r , mask_8x8_r , mask_4x4_r , mask_4x4_int_r , & cm -> lf_info , & lfm -> lfl_uv [ r << 1 ] ) ;\n dst -> buf += 8 * dst -> stride ;\n mask_16x16 >>= 4 ;\n mask_8x8 >>= 4 ;\n mask_4x4 >>= 4 ;\n mask_4x4_int >>= 4 ;\n }\n }\n }"}
{"idx": 8789, "target": 0, "func": "unsigned int vp9_sub_pixel_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp2 , W , dst , dst_stride , sse ) ;\n \\ }\n # define SUBPIX_AVG_VAR ( W , H ) unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 ) VAR ( 8 , 4 ) SUBPIX_VAR ( 8 , 4 ) SUBPIX_AVG_VAR ( 8 , 4 ) VAR ( 8 , 8 ) SUBPIX_VAR ( 8 , 8 ) SUBPIX_AVG_VAR ( 8 , 8 ) VAR ( 8 , 16 ) SUBPIX_VAR ( 8 , 16 ) SUBPIX_AVG_VAR ( 8 , 16 ) VAR ( 16 , 8 ) SUBPIX_VAR ( 16 , 8 ) SUBPIX_AVG_VAR ( 16 , 8 ) VAR ( 16 , 16 ) SUBPIX_VAR ( 16 , 16 ) SUBPIX_AVG_VAR ( 16 , 16 ) VAR ( 16 , 32 ) SUBPIX_VAR ( 16 , 32 ) SUBPIX_AVG_VAR ( 16 , 32 ) VAR ( 32 , 16 ) SUBPIX_VAR ( 32 , 16 ) SUBPIX_AVG_VAR ( 32 , 16 ) VAR ( 32 , 32 ) SUBPIX_VAR ( 32 , 32 ) SUBPIX_AVG_VAR ( 32 , 32 ) VAR ( 32 , 64 ) SUBPIX_VAR ( 32 , 64 ) SUBPIX_AVG_VAR ( 32 , 64 ) VAR ( 64 , 32 ) SUBPIX_VAR ( 64 , 32 )"}
{"idx": 8790, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , TestOSRegistration ) {\n ProtocolHandler ph_do1 = CreateProtocolHandler ( \"do\" , \"test1\" ) ;\n ProtocolHandler ph_do2 = CreateProtocolHandler ( \"do\" , \"test2\" ) ;\n ProtocolHandler ph_dont = CreateProtocolHandler ( \"dont\" , \"test\" ) ;\n ASSERT_FALSE ( delegate ( ) -> IsFakeRegisteredWithOS ( \"do\" ) ) ;\n ASSERT_FALSE ( delegate ( ) -> IsFakeRegisteredWithOS ( \"dont\" ) ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph_do1 ) ;\n registry ( ) -> OnDenyRegisterProtocolHandler ( ph_dont ) ;\n base : : MessageLoop : : current ( ) -> Run ( ) ;\n ASSERT_TRUE ( delegate ( ) -> IsFakeRegisteredWithOS ( \"do\" ) ) ;\n ASSERT_FALSE ( delegate ( ) -> IsFakeRegisteredWithOS ( \"dont\" ) ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph_do2 ) ;\n }"}
{"idx": 8791, "target": 0, "func": "static inline void SetPixelBlackTraits ( Image * image , const PixelTrait traits ) {\n image -> channel_map [ BlackPixelChannel ] . traits = traits ;\n }"}
{"idx": 8792, "target": 1, "func": "static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_reserve ( sk_ ## t1 ## _compfunc compare , int n ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_reserve ( ( OPENSSL_sk_compfunc ) compare , n ) ;\n }\n static ossl_inline int sk_ ## t1 ## _reserve ( STACK_OF ( t1 ) * sk , int n ) {\n return OPENSSL_sk_reserve ( ( OPENSSL_STACK * ) sk , n ) ;\n }\n static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 8793, "target": 0, "func": "void jpc_qmfb_split_col ( jpc_fix_t * a , int numrows , int stride , int parity ) {\n int bufsize = JPC_CEILDIVPOW2 ( numrows , 1 ) ;\n jpc_fix_t splitbuf [ QMFB_SPLITBUFSIZE ] ;\n jpc_fix_t * buf = splitbuf ;\n register jpc_fix_t * srcptr ;\n register jpc_fix_t * dstptr ;\n register int n ;\n register int m ;\n int hstartrow ;\n if ( bufsize > QMFB_SPLITBUFSIZE ) {\n if ( ! ( buf = jas_alloc2 ( bufsize , sizeof ( jpc_fix_t ) ) ) ) {\n abort ( ) ;\n }\n }\n if ( numrows >= 2 ) {\n hstartrow = ( numrows + 1 - parity ) >> 1 ;\n m = numrows - hstartrow ;\n n = m ;\n dstptr = buf ;\n srcptr = & a [ ( 1 - parity ) * stride ] ;\n while ( n -- > 0 ) {\n * dstptr = * srcptr ;\n ++ dstptr ;\n srcptr += stride << 1 ;\n }\n dstptr = & a [ ( 1 - parity ) * stride ] ;\n srcptr = & a [ ( 2 - parity ) * stride ] ;\n n = numrows - m - ( ! parity ) ;\n while ( n -- > 0 ) {\n * dstptr = * srcptr ;\n dstptr += stride ;\n srcptr += stride << 1 ;\n }\n dstptr = & a [ hstartrow * stride ] ;\n srcptr = buf ;\n n = m ;\n while ( n -- > 0 ) {\n * dstptr = * srcptr ;\n dstptr += stride ;\n ++ srcptr ;\n }\n }\n if ( buf != splitbuf ) {\n jas_free ( buf ) ;\n }\n }"}
{"idx": 8794, "target": 0, "func": "static void server_port_flush ( struct evdns_server_port * port ) {\n while ( port -> pending_replies ) {\n struct server_request * req = port -> pending_replies ;\n int r = sendto ( port -> socket , req -> response , req -> response_len , 0 , ( struct sockaddr * ) & req -> addr , req -> addrlen ) ;\n if ( r < 0 ) {\n int err = last_error ( port -> socket ) ;\n if ( error_is_eagain ( err ) ) return ;\n log ( EVDNS_LOG_WARN , \"Error %s (%d) while writing response to port;\n dropping\" , strerror ( err ) , err ) ;\n }\n if ( server_request_free ( req ) ) {\n return ;\n }\n }\n ( void ) event_del ( & port -> event ) ;\n event_set ( & port -> event , port -> socket , EV_READ | EV_PERSIST , server_port_ready_callback , port ) ;\n if ( event_add ( & port -> event , NULL ) < 0 ) {\n log ( EVDNS_LOG_WARN , \"Error from libevent when adding event for DNS server.\" ) ;\n }\n }"}
{"idx": 8795, "target": 0, "func": "static void hb_synthesis ( AMRWBContext * ctx , int subframe , float * samples , const float * exc , const float * isf , const float * isf_past ) {\n float hb_lpc [ LP_ORDER_16k ] ;\n enum Mode mode = ctx -> fr_cur_mode ;\n if ( mode == MODE_6k60 ) {\n float e_isf [ LP_ORDER_16k ] ;\n double e_isp [ LP_ORDER_16k ] ;\n ff_weighted_vector_sumf ( e_isf , isf_past , isf , isfp_inter [ subframe ] , 1.0 - isfp_inter [ subframe ] , LP_ORDER ) ;\n extrapolate_isf ( e_isf ) ;\n e_isf [ LP_ORDER_16k - 1 ] *= 2.0 ;\n ff_acelp_lsf2lspd ( e_isp , e_isf , LP_ORDER_16k ) ;\n ff_amrwb_lsp2lpc ( e_isp , hb_lpc , LP_ORDER_16k ) ;\n lpc_weighting ( hb_lpc , hb_lpc , 0.9 , LP_ORDER_16k ) ;\n }\n else {\n lpc_weighting ( hb_lpc , ctx -> lp_coef [ subframe ] , 0.6 , LP_ORDER ) ;\n }\n ff_celp_lp_synthesis_filterf ( samples , hb_lpc , exc , AMRWB_SFR_SIZE_16k , ( mode == MODE_6k60 ) ? LP_ORDER_16k : LP_ORDER ) ;\n }"}
{"idx": 8796, "target": 0, "func": "static void _isoent_file_location ( struct iso9660 * iso9660 , struct isoent * isoent , int * symlocation ) {\n struct isoent * * children ;\n int n ;\n if ( isoent -> children . cnt == 0 ) return ;\n children = isoent -> children_sorted ;\n for ( n = 0 ;\n n < isoent -> children . cnt ;\n n ++ ) {\n struct isoent * np ;\n struct isofile * file ;\n np = children [ n ] ;\n if ( np -> dir ) continue ;\n if ( np == iso9660 -> el_torito . boot ) continue ;\n file = np -> file ;\n if ( file -> boot || file -> hardlink_target != NULL ) continue ;\n if ( archive_entry_filetype ( file -> entry ) == AE_IFLNK || file -> content . size == 0 ) {\n file -> content . location = ( * symlocation ) -- ;\n continue ;\n }\n file -> write_content = 1 ;\n }\n }"}
{"idx": 8797, "target": 0, "func": "bool type_is_collatable ( Oid typid ) {\n return OidIsValid ( get_typcollation ( typid ) ) ;\n }"}
{"idx": 8798, "target": 0, "func": "static int archive_read_format_cpio_options ( struct archive_read * a , const char * key , const char * val ) {\n struct cpio * cpio ;\n int ret = ARCHIVE_FAILED ;\n cpio = ( struct cpio * ) ( a -> format -> data ) ;\n if ( strcmp ( key , \"compat-2x\" ) == 0 ) {\n cpio -> init_default_conversion = ( val != NULL ) ? 1 : 0 ;\n return ( ARCHIVE_OK ) ;\n }\n else if ( strcmp ( key , \"hdrcharset\" ) == 0 ) {\n if ( val == NULL || val [ 0 ] == 0 ) archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"cpio: hdrcharset option needs a character-set name\" ) ;\n else {\n cpio -> opt_sconv = archive_string_conversion_from_charset ( & a -> archive , val , 0 ) ;\n if ( cpio -> opt_sconv != NULL ) ret = ARCHIVE_OK ;\n else ret = ARCHIVE_FATAL ;\n }\n return ( ret ) ;\n }\n return ( ARCHIVE_WARN ) ;\n }"}
{"idx": 8799, "target": 0, "func": "static int selinux_tun_dev_attach_queue ( void * security ) {\n struct tun_security_struct * tunsec = security ;\n return avc_has_perm ( current_sid ( ) , tunsec -> sid , SECCLASS_TUN_SOCKET , TUN_SOCKET__ATTACH_QUEUE , NULL ) ;\n }"}
{"idx": 8800, "target": 0, "func": "static int evhttp_associate_new_request_with_connection ( struct evhttp_connection * evcon ) {\n struct evhttp * http = evcon -> http_server ;\n struct evhttp_request * req ;\n if ( ( req = evhttp_request_new ( evhttp_handle_request , http ) ) == NULL ) return ( - 1 ) ;\n req -> evcon = evcon ;\n req -> flags |= EVHTTP_REQ_OWN_CONNECTION ;\n TAILQ_INSERT_TAIL ( & evcon -> requests , req , next ) ;\n req -> kind = EVHTTP_REQUEST ;\n if ( ( req -> remote_host = strdup ( evcon -> address ) ) == NULL ) event_err ( 1 , \"%s: strdup\" , __func__ ) ;\n req -> remote_port = evcon -> port ;\n evhttp_start_read ( evcon ) ;\n return ( 0 ) ;\n }"}
{"idx": 8801, "target": 0, "func": "static int ra288_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n float * out ;\n int i , ret ;\n RA288Context * ractx = avctx -> priv_data ;\n GetBitContext gb ;\n if ( buf_size < avctx -> block_align ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error! Input buffer is too small [%d<%d]\\n\" , buf_size , avctx -> block_align ) ;\n return AVERROR_INVALIDDATA ;\n }\n frame -> nb_samples = RA288_BLOCK_SIZE * RA288_BLOCKS_PER_FRAME ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n out = ( float * ) frame -> data [ 0 ] ;\n init_get_bits ( & gb , buf , avctx -> block_align * 8 ) ;\n for ( i = 0 ;\n i < RA288_BLOCKS_PER_FRAME ;\n i ++ ) {\n float gain = amptable [ get_bits ( & gb , 3 ) ] ;\n int cb_coef = get_bits ( & gb , 6 + ( i & 1 ) ) ;\n decode ( ractx , gain , cb_coef ) ;\n memcpy ( out , & ractx -> sp_hist [ 70 + 36 ] , RA288_BLOCK_SIZE * sizeof ( * out ) ) ;\n out += RA288_BLOCK_SIZE ;\n if ( ( i & 7 ) == 3 ) {\n backward_filter ( ractx , ractx -> sp_hist , ractx -> sp_rec , syn_window , ractx -> sp_lpc , syn_bw_tab , 36 , 40 , 35 , 70 ) ;\n backward_filter ( ractx , ractx -> gain_hist , ractx -> gain_rec , gain_window , ractx -> gain_lpc , gain_bw_tab , 10 , 8 , 20 , 28 ) ;\n }\n }\n * got_frame_ptr = 1 ;\n return avctx -> block_align ;\n }"}
{"idx": 8802, "target": 0, "func": "gint ptvcursor_current_offset ( ptvcursor_t * ptvc ) {\n return ptvc -> offset ;\n }"}
{"idx": 8803, "target": 0, "func": "TEST_F ( TemplateURLParserTest , TestFirefoxWebster ) {\n ParamFilterImpl filter ( std : : string ( ) , \"Mozilla\" ) ;\n ASSERT_NO_FATAL_FAILURE ( ParseFile ( \"firefox_webster.xml\" , & filter ) ) ;\n ASSERT_TRUE ( template_url_ ) ;\n EXPECT_EQ ( ASCIIToUTF16 ( \"Webster\" ) , template_url_ -> short_name ( ) ) ;\n EXPECT_TRUE ( template_url_ -> url_ref ( ) . SupportsReplacement ( SearchTermsData ( ) ) ) ;\n EXPECT_EQ ( \"http://www.webster.com/cgi-bin/dictionary?va={\nsearchTerms}\n\" , template_url_ -> url ( ) ) ;\n ASSERT_EQ ( 1U , template_url_ -> input_encodings ( ) . size ( ) ) ;\n EXPECT_EQ ( \"ISO-8859-1\" , template_url_ -> input_encodings ( ) [ 0 ] ) ;\n EXPECT_EQ ( GURL ( \"http://www.webster.com/favicon.ico\" ) , template_url_ -> favicon_url ( ) ) ;\n }"}
{"idx": 8804, "target": 0, "func": "static __inline__ __u64 __arch_swab64 ( __u64 val ) {\n # ifdef __i386__ union {\n struct {\n __u32 a ;\n __u32 b ;\n }\n s ;\n __u64 u ;\n }\n v ;\n v . u = val ;\n __asm__ ( \"bswapl %0 ;\n bswapl %1 ;\n xchgl %0,%1\" : \"=r\" ( v . s . a ) , \"=r\" ( v . s . b ) : \"0\" ( v . s . a ) , \"1\" ( v . s . b ) ) ;\n return v . u ;\n # else __asm__ ( \"bswapq %0\" : \"=r\" ( val ) : \"0\" ( val ) ) ;\n return val ;\n # endif }"}
{"idx": 8805, "target": 0, "func": "int authreadkeys ( const char * file ) {\n FILE * fp ;\n char * line ;\n char * token ;\n keyid_t keyno ;\n int keytype ;\n char buf [ 512 ] ;\n u_char keystr [ 32 ] ;\n size_t len ;\n size_t j ;\n size_t nerr ;\n fp = fopen ( file , \"r\" ) ;\n if ( fp == NULL ) {\n msyslog ( LOG_ERR , \"authreadkeys: file %s: %m\" , file ) ;\n return ( 0 ) ;\n }\n INIT_SSL ( ) ;\n auth_delkeys ( ) ;\n nerr = 0 ;\n while ( ( line = fgets ( buf , sizeof buf , fp ) ) != NULL ) {\n if ( nerr > nerr_maxlimit ) break ;\n token = nexttok ( & line ) ;\n if ( token == NULL ) continue ;\n keyno = atoi ( token ) ;\n if ( keyno == 0 ) {\n log_maybe ( & nerr , \"authreadkeys: cannot change key %s\" , token ) ;\n continue ;\n }\n if ( keyno > NTP_MAXKEY ) {\n log_maybe ( & nerr , \"authreadkeys: key %s > %d reserved for Autokey\" , token , NTP_MAXKEY ) ;\n continue ;\n }\n token = nexttok ( & line ) ;\n if ( token == NULL ) {\n log_maybe ( & nerr , \"authreadkeys: no key type for key %d\" , keyno ) ;\n continue ;\n }\n # ifdef OPENSSL keytype = keytype_from_text ( token , NULL ) ;\n if ( keytype == 0 ) {\n log_maybe ( & nerr , \"authreadkeys: invalid type for key %d\" , keyno ) ;\n continue ;\n }\n if ( EVP_get_digestbynid ( keytype ) == NULL ) {\n log_maybe ( & nerr , \"authreadkeys: no algorithm for key %d\" , keyno ) ;\n continue ;\n }\n # else if ( ! ( * token == 'M' || * token == 'm' ) ) {\n log_maybe ( & nerr , \"authreadkeys: invalid type for key %d\" , keyno ) ;\n continue ;\n }\n keytype = KEY_TYPE_MD5 ;\n # endif token = nexttok ( & line ) ;\n if ( token == NULL ) {\n log_maybe ( & nerr , \"authreadkeys: no key for key %d\" , keyno ) ;\n continue ;\n }\n len = strlen ( token ) ;\n if ( len <= 20 ) {\n MD5auth_setkey ( keyno , keytype , ( u_char * ) token , len ) ;\n }\n else {\n char hex [ ] = \"0123456789abcdef\" ;\n u_char temp ;\n char * ptr ;\n size_t jlim ;\n jlim = min ( len , 2 * sizeof ( keystr ) ) ;\n for ( j = 0 ;\n j < jlim ;\n j ++ ) {\n ptr = strchr ( hex , tolower ( ( unsigned char ) token [ j ] ) ) ;\n if ( ptr == NULL ) break ;\n temp = ( u_char ) ( ptr - hex ) ;\n if ( j & 1 ) keystr [ j / 2 ] |= temp ;\n else keystr [ j / 2 ] = temp << 4 ;\n }\n if ( j < jlim ) {\n log_maybe ( & nerr , \"authreadkeys: invalid hex digit for key %d\" , keyno ) ;\n continue ;\n }\n MD5auth_setkey ( keyno , keytype , keystr , jlim / 2 ) ;\n }\n }\n fclose ( fp ) ;\n if ( nerr > nerr_maxlimit ) {\n msyslog ( LOG_ERR , \"authreadkeys: emergeny break after %u errors\" , nerr ) ;\n return ( 0 ) ;\n }\n else if ( nerr > nerr_loglimit ) {\n msyslog ( LOG_ERR , \"authreadkeys: found %u more error(s)\" , nerr - nerr_loglimit ) ;\n }\n return ( 1 ) ;\n }"}
{"idx": 8806, "target": 0, "func": "void _TSfree ( void * ptr ) {\n ats_free ( ptr ) ;\n }"}
{"idx": 8807, "target": 0, "func": "static void cirrus_vga_mem_write ( void * opaque , hwaddr addr , uint64_t mem_value , uint32_t size ) {\n CirrusVGAState * s = opaque ;\n unsigned bank_index ;\n unsigned bank_offset ;\n unsigned mode ;\n if ( ( s -> vga . sr [ 0x07 ] & 0x01 ) == 0 ) {\n vga_mem_writeb ( & s -> vga , addr , mem_value ) ;\n return ;\n }\n if ( addr < 0x10000 ) {\n if ( s -> cirrus_srcptr != s -> cirrus_srcptr_end ) {\n * s -> cirrus_srcptr ++ = ( uint8_t ) mem_value ;\n if ( s -> cirrus_srcptr >= s -> cirrus_srcptr_end ) {\n cirrus_bitblt_cputovideo_next ( s ) ;\n }\n }\n else {\n bank_index = addr >> 15 ;\n bank_offset = addr & 0x7fff ;\n if ( bank_offset < s -> cirrus_bank_limit [ bank_index ] ) {\n bank_offset += s -> cirrus_bank_base [ bank_index ] ;\n if ( ( s -> vga . gr [ 0x0B ] & 0x14 ) == 0x14 ) {\n bank_offset <<= 4 ;\n }\n else if ( s -> vga . gr [ 0x0B ] & 0x02 ) {\n bank_offset <<= 3 ;\n }\n bank_offset &= s -> cirrus_addr_mask ;\n mode = s -> vga . gr [ 0x05 ] & 0x7 ;\n if ( mode < 4 || mode > 5 || ( ( s -> vga . gr [ 0x0B ] & 0x4 ) == 0 ) ) {\n * ( s -> vga . vram_ptr + bank_offset ) = mem_value ;\n memory_region_set_dirty ( & s -> vga . vram , bank_offset , sizeof ( mem_value ) ) ;\n }\n else {\n if ( ( s -> vga . gr [ 0x0B ] & 0x14 ) != 0x14 ) {\n cirrus_mem_writeb_mode4and5_8bpp ( s , mode , bank_offset , mem_value ) ;\n }\n else {\n cirrus_mem_writeb_mode4and5_16bpp ( s , mode , bank_offset , mem_value ) ;\n }\n }\n }\n }\n }\n else if ( addr >= 0x18000 && addr < 0x18100 ) {\n if ( ( s -> vga . sr [ 0x17 ] & 0x44 ) == 0x04 ) {\n cirrus_mmio_blt_write ( s , addr & 0xff , mem_value ) ;\n }\n }\n else {\n # ifdef DEBUG_CIRRUS printf ( \"cirrus: mem_writeb \" TARGET_FMT_plx \" value 0x%02\" PRIu64 \"\\n\" , addr , mem_value ) ;\n # endif }\n }"}
{"idx": 8808, "target": 1, "func": "static int jbig2_find_changing_element ( const byte * line , int x , int w ) {\n int a , b ;\n if ( line == 0 ) return w ;\n if ( x == - 1 ) {\n a = 0 ;\n x = 0 ;\n }\n else {\n a = getbit ( line , x ) ;\n x ++ ;\n }\n while ( x < w ) {\n b = getbit ( line , x ) ;\n if ( a != b ) break ;\n x ++ ;\n }\n return x ;\n }"}
{"idx": 8809, "target": 0, "func": "static void dumpDatabaseConfig ( PGconn * conn , const char * dbname ) {\n PQExpBuffer buf = createPQExpBuffer ( ) ;\n int count = 1 ;\n for ( ;\n ;\n ) {\n PGresult * res ;\n if ( server_version >= 90000 ) printfPQExpBuffer ( buf , \"SELECT setconfig[%d] FROM pg_db_role_setting WHERE \" \"setrole = 0 AND setdatabase = (SELECT oid FROM pg_database WHERE datname = \" , count ) ;\n else printfPQExpBuffer ( buf , \"SELECT datconfig[%d] FROM pg_database WHERE datname = \" , count ) ;\n appendStringLiteralConn ( buf , dbname , conn ) ;\n if ( server_version >= 90000 ) appendPQExpBuffer ( buf , \")\" ) ;\n res = executeQuery ( conn , buf -> data ) ;\n if ( PQntuples ( res ) == 1 && ! PQgetisnull ( res , 0 , 0 ) ) {\n makeAlterConfigCommand ( conn , PQgetvalue ( res , 0 , 0 ) , \"DATABASE\" , dbname , NULL , NULL ) ;\n PQclear ( res ) ;\n count ++ ;\n }\n else {\n PQclear ( res ) ;\n break ;\n }\n }\n destroyPQExpBuffer ( buf ) ;\n }"}
{"idx": 8810, "target": 0, "func": "void http_hdr_copy_onto ( HTTPHdrImpl * s_hh , HdrHeap * s_heap , HTTPHdrImpl * d_hh , HdrHeap * d_heap , bool inherit_strs ) {\n MIMEHdrImpl * s_mh , * d_mh ;\n URLImpl * s_url , * d_url ;\n HTTPType d_polarity ;\n s_mh = s_hh -> m_fields_impl ;\n s_url = s_hh -> u . req . m_url_impl ;\n d_mh = d_hh -> m_fields_impl ;\n d_url = d_hh -> u . req . m_url_impl ;\n d_polarity = d_hh -> m_polarity ;\n ink_assert ( s_hh -> m_polarity != HTTP_TYPE_UNKNOWN ) ;\n ink_assert ( s_mh != nullptr ) ;\n ink_assert ( d_mh != nullptr ) ;\n memcpy ( d_hh , s_hh , sizeof ( HTTPHdrImpl ) ) ;\n d_hh -> m_fields_impl = d_mh ;\n if ( s_hh -> m_polarity == HTTP_TYPE_REQUEST ) {\n if ( d_polarity == HTTP_TYPE_REQUEST ) {\n d_hh -> u . req . m_url_impl = d_url ;\n }\n else {\n d_url = d_hh -> u . req . m_url_impl = url_create ( d_heap ) ;\n }\n url_copy_onto ( s_url , s_heap , d_url , d_heap , false ) ;\n }\n else if ( d_polarity == HTTP_TYPE_REQUEST ) {\n url_clear ( d_url ) ;\n }\n mime_hdr_copy_onto ( s_mh , s_heap , d_mh , d_heap , false ) ;\n if ( inherit_strs ) {\n d_heap -> inherit_string_heaps ( s_heap ) ;\n }\n }"}
{"idx": 8811, "target": 0, "func": "static int astream_part_finish ( struct attachment_istream * astream , const char * * error_r ) {\n struct attachment_istream_part * part = & astream -> part ;\n struct istream_attachment_info info ;\n struct istream * input ;\n struct ostream * output ;\n string_t * digest_str ;\n const unsigned char * data ;\n size_t size ;\n int ret = 0 ;\n if ( o_stream_nfinish ( part -> temp_output ) < 0 ) {\n * error_r = t_strdup_printf ( \"write(%s) failed: %s\" , o_stream_get_name ( part -> temp_output ) , o_stream_get_error ( part -> temp_output ) ) ;\n return - 1 ;\n }\n i_zero ( & info ) ;\n info . start_offset = astream -> part . start_offset ;\n info . encoded_size = part -> base64_bytes ;\n digest_str = t_str_new ( 128 ) ;\n hash_format_write ( astream -> set . hash_format , digest_str ) ;\n info . hash = str_c ( digest_str ) ;\n if ( ! part -> base64_failed ) {\n if ( part -> base64_state == BASE64_STATE_0 && part -> base64_bytes > 0 ) {\n part -> base64_state = BASE64_STATE_EOM ;\n }\n if ( part -> base64_state == BASE64_STATE_EOM ) {\n if ( astream_decode_base64 ( astream ) < 0 ) part -> base64_failed = TRUE ;\n }\n else {\n part -> base64_failed = TRUE ;\n }\n }\n info . part = astream -> cur_part ;\n if ( ! part -> base64_failed ) {\n info . base64_blocks_per_line = part -> base64_line_blocks ;\n info . base64_have_crlf = part -> base64_have_crlf ;\n str_truncate ( digest_str , 0 ) ;\n hash_format_write ( astream -> set . hash_format , digest_str ) ;\n info . hash = str_c ( digest_str ) ;\n }\n else {\n info . encoded_size = part -> temp_output -> offset ;\n }\n if ( astream -> set . open_attachment_ostream ( & info , & output , error_r , astream -> context ) < 0 ) return - 1 ;\n input = i_stream_create_fd ( part -> temp_fd , IO_BLOCK_SIZE , FALSE ) ;\n while ( i_stream_read_data ( input , & data , & size , 0 ) > 0 ) {\n o_stream_nsend ( output , data , size ) ;\n i_stream_skip ( input , size ) ;\n }\n if ( input -> stream_errno != 0 ) {\n * error_r = t_strdup_printf ( \"read(%s) failed: %s\" , i_stream_get_name ( input ) , i_stream_get_error ( input ) ) ;\n ret = - 1 ;\n }\n i_stream_destroy ( & input ) ;\n if ( astream -> set . close_attachment_ostream ( output , ret == 0 , error_r , astream -> context ) < 0 ) ret = - 1 ;\n return ret ;\n }"}
{"idx": 8812, "target": 0, "func": "static void pdf_process_end ( fz_context * ctx , pdf_processor * proc , pdf_csi * csi ) {\n while ( csi -> gstate > 0 ) pdf_process_grestore ( ctx , proc , csi ) ;\n if ( proc -> op_END ) proc -> op_END ( ctx , proc ) ;\n }"}
{"idx": 8813, "target": 0, "func": "static void * add_cipher_name_to_ary ( const OBJ_NAME * name , VALUE ary ) {\n rb_ary_push ( ary , rb_str_new2 ( name -> name ) ) ;\n return NULL ;\n }"}
{"idx": 8814, "target": 0, "func": "void input_DecoderIsCcPresent ( decoder_t * p_dec , bool pb_present [ 4 ] ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n int i ;\n vlc_mutex_lock ( & p_owner -> lock ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) pb_present [ i ] = p_owner -> cc . pb_present [ i ] ;\n vlc_mutex_unlock ( & p_owner -> lock ) ;\n }"}
{"idx": 8815, "target": 1, "func": "static guint16 de_sub_addr ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * * extracted_address ) {\n guint32 curr_offset , ia5_string_len , i ;\n guint8 type_of_sub_addr , afi , dig1 , dig2 , oct ;\n gchar * ia5_string ;\n gboolean invalid_ia5_char ;\n proto_item * item ;\n curr_offset = offset ;\n * extracted_address = NULL ;\n proto_tree_add_item ( tree , hf_gsm_a_extension , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_type_of_sub_addr , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_odd_even_ind , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( curr_offset << 3 ) + 5 , 3 , ENC_BIG_ENDIAN ) ;\n type_of_sub_addr = ( tvb_get_guint8 ( tvb , curr_offset ) & 0x70 ) >> 4 ;\n curr_offset ++ ;\n NO_MORE_DATA_CHECK ( len ) ;\n if ( ! type_of_sub_addr ) {\n afi = tvb_get_guint8 ( tvb , curr_offset ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_afi , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n NO_MORE_DATA_CHECK ( len ) ;\n if ( afi == 0x50 ) {\n ia5_string_len = len - ( curr_offset - offset ) ;\n ia5_string = ( guint8 * ) tvb_memdup ( wmem_packet_scope ( ) , tvb , curr_offset , ia5_string_len ) ;\n * extracted_address = ( gchar * ) wmem_alloc ( wmem_packet_scope ( ) , ia5_string_len ) ;\n invalid_ia5_char = FALSE ;\n for ( i = 0 ;\n i < ia5_string_len ;\n i ++ ) {\n dig1 = ( ia5_string [ i ] & 0xf0 ) >> 4 ;\n dig2 = ia5_string [ i ] & 0x0f ;\n oct = ( dig1 * 10 ) + dig2 + 32 ;\n if ( oct > 127 ) invalid_ia5_char = TRUE ;\n ia5_string [ i ] = oct ;\n }\n IA5_7BIT_decode ( * extracted_address , ia5_string , ia5_string_len ) ;\n item = proto_tree_add_string ( tree , hf_gsm_a_dtap_subaddress , tvb , curr_offset , len - ( curr_offset - offset ) , * extracted_address ) ;\n if ( invalid_ia5_char ) expert_add_info ( pinfo , item , & ei_gsm_a_dtap_invalid_ia5_character ) ;\n return ( len ) ;\n }\n }\n proto_tree_add_item ( tree , hf_gsm_a_dtap_subaddress_information , tvb , curr_offset , len - ( curr_offset - offset ) , ENC_NA ) ;\n return ( len ) ;\n }"}
{"idx": 8816, "target": 0, "func": "void vp9_convolve8_c ( const uint8_t * src , ptrdiff_t src_stride , uint8_t * dst , ptrdiff_t dst_stride , const int16_t * filter_x , int x_step_q4 , const int16_t * filter_y , int y_step_q4 , int w , int h ) {\n const InterpKernel * const filters_x = get_filter_base ( filter_x ) ;\n const int x0_q4 = get_filter_offset ( filter_x , filters_x ) ;\n const InterpKernel * const filters_y = get_filter_base ( filter_y ) ;\n const int y0_q4 = get_filter_offset ( filter_y , filters_y ) ;\n convolve ( src , src_stride , dst , dst_stride , filters_x , x0_q4 , x_step_q4 , filters_y , y0_q4 , y_step_q4 , w , h ) ;\n }"}
{"idx": 8817, "target": 0, "func": "static void save_value_fragment ( packet_info * pinfo , tvbuff_t * tvb , gint offset , guint32 handle , guint data_offset , bluetooth_data_t * bluetooth_data ) {\n wmem_tree_key_t key [ 5 ] ;\n guint32 frame_number ;\n fragment_data_t * fragment_data ;\n frame_number = pinfo -> num ;\n key [ 0 ] . length = 1 ;\n key [ 0 ] . key = & bluetooth_data -> interface_id ;\n key [ 1 ] . length = 1 ;\n key [ 1 ] . key = & bluetooth_data -> adapter_id ;\n key [ 2 ] . length = 1 ;\n key [ 2 ] . key = & handle ;\n key [ 3 ] . length = 1 ;\n key [ 3 ] . key = & frame_number ;\n key [ 4 ] . length = 0 ;\n key [ 4 ] . key = NULL ;\n fragment_data = wmem_new ( wmem_file_scope ( ) , fragment_data_t ) ;\n fragment_data -> length = tvb_captured_length_remaining ( tvb , offset ) ;\n fragment_data -> offset = data_offset ;\n fragment_data -> data_in_frame = frame_number ;\n fragment_data -> data = ( guint8 * ) tvb_memdup ( wmem_file_scope ( ) , tvb , offset , fragment_data -> length ) ;\n wmem_tree_insert32_array ( fragments , key , fragment_data ) ;\n }"}
{"idx": 8818, "target": 0, "func": "static void ctl_putdata ( const char * dp , unsigned int dlen , int bin ) {\n int overhead ;\n unsigned int currentlen ;\n overhead = 0 ;\n if ( ! bin ) {\n datanotbinflag = TRUE ;\n overhead = 3 ;\n if ( datasent ) {\n * datapt ++ = ',' ;\n datalinelen ++ ;\n if ( ( dlen + datalinelen + 1 ) >= MAXDATALINELEN ) {\n * datapt ++ = '\\r' ;\n * datapt ++ = '\\n' ;\n datalinelen = 0 ;\n }\n else {\n * datapt ++ = ' ' ;\n datalinelen ++ ;\n }\n }\n }\n while ( dlen + overhead + datapt > dataend ) {\n currentlen = MIN ( dlen , ( unsigned int ) ( dataend - datapt ) ) ;\n memcpy ( datapt , dp , currentlen ) ;\n datapt += currentlen ;\n dp += currentlen ;\n dlen -= currentlen ;\n datalinelen += currentlen ;\n ctl_flushpkt ( CTL_MORE ) ;\n }\n memcpy ( datapt , dp , dlen ) ;\n datapt += dlen ;\n datalinelen += dlen ;\n datasent = TRUE ;\n }"}
{"idx": 8819, "target": 0, "func": "TEST_F ( TemplateURLTest , ParseURLTwoParameters ) {\n TemplateURLData data ;\n data . SetURL ( \"{\n}\n{\n{\n%s}\n}\n\" ) ;\n TemplateURL url ( data ) ;\n TemplateURLRef : : Replacements replacements ;\n bool valid = false ;\n EXPECT_EQ ( \"{\n}\n{\n}\n\" , url . url_ref ( ) . ParseURL ( \"{\n}\n{\n{\nsearchTerms}\n}\n\" , & replacements , NULL , & valid ) ) ;\n ASSERT_EQ ( 1U , replacements . size ( ) ) ;\n EXPECT_EQ ( 3U , replacements [ 0 ] . index ) ;\n EXPECT_EQ ( TemplateURLRef : : SEARCH_TERMS , replacements [ 0 ] . type ) ;\n EXPECT_TRUE ( valid ) ;\n }"}
{"idx": 8820, "target": 0, "func": "int EVP_CipherUpdate ( EVP_CIPHER_CTX * ctx , unsigned char * out , int * outl , const unsigned char * in , int inl ) {\n if ( ctx -> encrypt ) return EVP_EncryptUpdate ( ctx , out , outl , in , inl ) ;\n else return EVP_DecryptUpdate ( ctx , out , outl , in , inl ) ;\n }"}
{"idx": 8821, "target": 0, "func": "static void start_fetch_packed ( struct transfer_request * request ) {\n struct packed_git * target ;\n struct transfer_request * check_request = request_queue_head ;\n struct http_pack_request * preq ;\n target = find_sha1_pack ( request -> obj -> oid . hash , repo -> packs ) ;\n if ( ! target ) {\n fprintf ( stderr , \"Unable to fetch %s, will not be able to update server info refs\\n\" , oid_to_hex ( & request -> obj -> oid ) ) ;\n repo -> can_update_info_refs = 0 ;\n release_request ( request ) ;\n return ;\n }\n fprintf ( stderr , \"Fetching pack %s\\n\" , sha1_to_hex ( target -> sha1 ) ) ;\n fprintf ( stderr , \" which contains %s\\n\" , oid_to_hex ( & request -> obj -> oid ) ) ;\n preq = new_http_pack_request ( target , repo -> url ) ;\n if ( preq == NULL ) {\n repo -> can_update_info_refs = 0 ;\n return ;\n }\n preq -> lst = & repo -> packs ;\n while ( check_request ) {\n if ( check_request -> state == RUN_FETCH_PACKED && ! strcmp ( check_request -> url , preq -> url ) ) {\n release_http_pack_request ( preq ) ;\n release_request ( request ) ;\n return ;\n }\n check_request = check_request -> next ;\n }\n preq -> slot -> callback_func = process_response ;\n preq -> slot -> callback_data = request ;\n request -> slot = preq -> slot ;\n request -> userData = preq ;\n request -> state = RUN_FETCH_PACKED ;\n if ( ! start_active_slot ( preq -> slot ) ) {\n fprintf ( stderr , \"Unable to start GET request\\n\" ) ;\n release_http_pack_request ( preq ) ;\n repo -> can_update_info_refs = 0 ;\n release_request ( request ) ;\n }\n }"}
{"idx": 8822, "target": 0, "func": "static unsigned char * dtls1_write_message_header ( SSL * s , unsigned char * p ) {\n struct hm_header_st * msg_hdr = & s -> d1 -> w_msg_hdr ;\n * p ++ = msg_hdr -> type ;\n l2n3 ( msg_hdr -> msg_len , p ) ;\n s2n ( msg_hdr -> seq , p ) ;\n l2n3 ( msg_hdr -> frag_off , p ) ;\n l2n3 ( msg_hdr -> frag_len , p ) ;\n return p ;\n }"}
{"idx": 8823, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( MessageCenterNotificationsTest , QueueWhenCenterVisible ) {\n # if defined ( OS_WIN ) && defined ( USE_ASH ) if ( base : : CommandLine : : ForCurrentProcess ( ) -> HasSwitch ( switches : : kAshBrowserTests ) ) return ;\n # endif TestAddObserver observer ( message_center ( ) ) ;\n TestDelegate * delegate ;\n TestDelegate * delegate2 ;\n manager ( ) -> Add ( CreateTestNotification ( \"n\" , & delegate ) , profile ( ) ) ;\n const std : : string id_n = manager ( ) -> GetMessageCenterNotificationIdForTest ( \"n\" , profile ( ) ) ;\n message_center ( ) -> SetVisibility ( message_center : : VISIBILITY_MESSAGE_CENTER ) ;\n manager ( ) -> Add ( CreateTestNotification ( \"n2\" , & delegate2 ) , profile ( ) ) ;\n const std : : string id_n2 = manager ( ) -> GetMessageCenterNotificationIdForTest ( \"n2\" , profile ( ) ) ;\n EXPECT_EQ ( base : : StringPrintf ( \"add-%s_update-%s_update-%s\" , id_n . c_str ( ) , id_n . c_str ( ) , id_n . c_str ( ) ) , observer . log ( id_n ) ) ;\n message_center ( ) -> SetVisibility ( message_center : : VISIBILITY_TRANSIENT ) ;\n EXPECT_EQ ( base : : StringPrintf ( \"add-%s\" , id_n2 . c_str ( ) ) , observer . log ( id_n2 ) ) ;\n delegate -> Release ( ) ;\n delegate2 -> Release ( ) ;\n }"}
{"idx": 8824, "target": 0, "func": "static int parse_paged_cookie ( Operation * op , SlapReply * rs ) {\n int rc = LDAP_SUCCESS ;\n PagedResultsState * ps = op -> o_pagedresults_state ;\n assert ( get_pagedresults ( op ) > SLAP_CONTROL_IGNORED ) ;\n if ( ps -> ps_cookieval . bv_len ) {\n PagedResultsCookie reqcookie ;\n if ( ps -> ps_cookieval . bv_len != sizeof ( reqcookie ) ) {\n rs -> sr_text = \"paged results cookie is invalid\" ;\n rc = LDAP_PROTOCOL_ERROR ;\n goto done ;\n }\n AC_MEMCPY ( & reqcookie , ps -> ps_cookieval . bv_val , sizeof ( reqcookie ) ) ;\n if ( reqcookie > ps -> ps_cookie ) {\n rs -> sr_text = \"paged results cookie is invalid\" ;\n rc = LDAP_PROTOCOL_ERROR ;\n goto done ;\n }\n else if ( reqcookie < ps -> ps_cookie ) {\n rs -> sr_text = \"paged results cookie is invalid or old\" ;\n rc = LDAP_UNWILLING_TO_PERFORM ;\n goto done ;\n }\n }\n else {\n op -> o_conn -> c_pagedresults_state . ps_cookie = 0 ;\n }\n done : ;\n return rc ;\n }"}
{"idx": 8825, "target": 0, "func": "const char * irc_ctcp_get_reply ( struct t_irc_server * server , const char * ctcp ) {\n struct t_config_option * ptr_option ;\n char option_name [ 512 ] ;\n snprintf ( option_name , sizeof ( option_name ) , \"%s.%s\" , server -> name , ctcp ) ;\n ptr_option = weechat_config_search_option ( irc_config_file , irc_config_section_ctcp , option_name ) ;\n if ( ptr_option ) return weechat_config_string ( ptr_option ) ;\n ptr_option = weechat_config_search_option ( irc_config_file , irc_config_section_ctcp , ctcp ) ;\n if ( ptr_option ) return weechat_config_string ( ptr_option ) ;\n return irc_ctcp_get_default_reply ( ctcp ) ;\n }"}
{"idx": 8826, "target": 0, "func": "static int dissect_ber_OBJECT_IDENTIFIER ( gboolean implicit_tag , tvbuff_t * tvb , int offset , asn1_ctx_t * actx , proto_tree * tree , int hf_index ) {\n offset = dissect_ber_object_identifier_str ( implicit_tag , actx , tree , tvb , offset , hf_index , & actx -> external . direct_reference ) ;\n actx -> external . direct_ref_present = TRUE ;\n return offset ;\n }"}
{"idx": 8827, "target": 0, "func": "uint32_t pcnet_ioport_readw ( void * opaque , uint32_t addr ) {\n PCNetState * s = opaque ;\n uint32_t val = - 1 ;\n pcnet_poll_timer ( s ) ;\n if ( ! BCR_DWIO ( s ) ) {\n switch ( addr & 0x0f ) {\n case 0x00 : val = pcnet_csr_readw ( s , s -> rap ) ;\n break ;\n case 0x02 : val = s -> rap ;\n break ;\n case 0x04 : pcnet_s_reset ( s ) ;\n val = 0 ;\n break ;\n case 0x06 : val = pcnet_bcr_readw ( s , s -> rap ) ;\n break ;\n }\n }\n pcnet_update_irq ( s ) ;\n # ifdef PCNET_DEBUG_IO printf ( \"pcnet_ioport_readw addr=0x%08x val=0x%04x\\n\" , addr , val & 0xffff ) ;\n # endif return val ;\n }"}
{"idx": 8828, "target": 0, "func": "static void append_struct_signature ( proto_item * item , guint8 * signature , gint signature_max_length , const guint8 type_stop ) {\n int depth = 0 ;\n guint8 type_start ;\n gint signature_length = 0 ;\n proto_item_append_text ( item , \"%c\" , ' ' ) ;\n type_start = * signature ;\n do {\n if ( type_start == * signature ) {\n depth ++ ;\n }\n if ( type_stop == * signature ) {\n depth -- ;\n }\n proto_item_append_text ( item , \"%c\" , * signature ++ ) ;\n }\n while ( depth > 0 && ++ signature_length < signature_max_length ) ;\n if ( signature_length >= signature_max_length ) {\n proto_item_append_text ( item , \"... Invalid signature!\" ) ;\n }\n }"}
{"idx": 8829, "target": 1, "func": "static void _ISCIIOpen ( UConverter * cnv , UConverterLoadArgs * pArgs , UErrorCode * errorCode ) {\n if ( pArgs -> onlyTestIsLoadable ) {\n return ;\n }\n cnv -> extraInfo = uprv_malloc ( sizeof ( UConverterDataISCII ) ) ;\n if ( cnv -> extraInfo != NULL ) {\n int32_t len = 0 ;\n UConverterDataISCII * converterData = ( UConverterDataISCII * ) cnv -> extraInfo ;\n converterData -> contextCharToUnicode = NO_CHAR_MARKER ;\n cnv -> toUnicodeStatus = missingCharMarker ;\n converterData -> contextCharFromUnicode = 0x0000 ;\n converterData -> resetToDefaultToUnicode = FALSE ;\n if ( ( pArgs -> options & UCNV_OPTIONS_VERSION_MASK ) < 9 ) {\n converterData -> currentDeltaFromUnicode = converterData -> currentDeltaToUnicode = converterData -> defDeltaToUnicode = ( uint16_t ) ( lookupInitialData [ pArgs -> options & UCNV_OPTIONS_VERSION_MASK ] . uniLang * DELTA ) ;\n converterData -> currentMaskFromUnicode = converterData -> currentMaskToUnicode = converterData -> defMaskToUnicode = lookupInitialData [ pArgs -> options & UCNV_OPTIONS_VERSION_MASK ] . maskEnum ;\n converterData -> isFirstBuffer = TRUE ;\n ( void ) uprv_strcpy ( converterData -> name , ISCII_CNV_PREFIX ) ;\n len = ( int32_t ) uprv_strlen ( converterData -> name ) ;\n converterData -> name [ len ] = ( char ) ( ( pArgs -> options & UCNV_OPTIONS_VERSION_MASK ) + '0' ) ;\n converterData -> name [ len + 1 ] = 0 ;\n converterData -> prevToUnicodeStatus = 0x0000 ;\n }\n else {\n uprv_free ( cnv -> extraInfo ) ;\n cnv -> extraInfo = NULL ;\n * errorCode = U_ILLEGAL_ARGUMENT_ERROR ;\n }\n }\n else {\n * errorCode = U_MEMORY_ALLOCATION_ERROR ;\n }\n }"}
{"idx": 8830, "target": 0, "func": "static bool contain_volatile_functions_not_nextval_checker ( Oid func_id , void * context ) {\n return ( func_id != F_NEXTVAL_OID && func_volatile ( func_id ) == PROVOLATILE_VOLATILE ) ;\n }"}
{"idx": 8831, "target": 0, "func": "static void tree_to_node ( void * data , BLOCK_SIZE bsize , variance_node * node ) {\n int i ;\n node -> part_variances = NULL ;\n vpx_memset ( node -> split , 0 , sizeof ( node -> split ) ) ;\n switch ( bsize ) {\n case BLOCK_64X64 : {\n v64x64 * vt = ( v64x64 * ) data ;\n node -> part_variances = & vt -> part_variances ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) node -> split [ i ] = & vt -> split [ i ] . part_variances . none ;\n break ;\n }\n case BLOCK_32X32 : {\n v32x32 * vt = ( v32x32 * ) data ;\n node -> part_variances = & vt -> part_variances ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) node -> split [ i ] = & vt -> split [ i ] . part_variances . none ;\n break ;\n }\n case BLOCK_16X16 : {\n v16x16 * vt = ( v16x16 * ) data ;\n node -> part_variances = & vt -> part_variances ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) node -> split [ i ] = & vt -> split [ i ] . part_variances . none ;\n break ;\n }\n case BLOCK_8X8 : {\n v8x8 * vt = ( v8x8 * ) data ;\n node -> part_variances = & vt -> part_variances ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) node -> split [ i ] = & vt -> split [ i ] ;\n break ;\n }\n default : {\n assert ( 0 ) ;\n break ;\n }\n }\n }"}
{"idx": 8832, "target": 0, "func": "void sip_calls_init_tap ( void ) {\n GString * error_string ;\n if ( have_SIP_tap_listener == FALSE ) {\n error_string = register_tap_listener ( \"sip\" , & ( the_tapinfo_struct . sip_dummy ) , NULL , 0 , voip_calls_dlg_reset , SIPcalls_packet , voip_calls_dlg_draw ) ;\n if ( error_string != NULL ) {\n simple_dialog ( ESD_TYPE_ERROR , ESD_BTN_OK , \"%s\" , error_string -> str ) ;\n g_string_free ( error_string , TRUE ) ;\n exit ( 1 ) ;\n }\n have_SIP_tap_listener = TRUE ;\n }\n }"}
{"idx": 8833, "target": 1, "func": "static void _UTF32Reset ( UConverter * cnv , UConverterResetChoice choice ) {\n if ( choice <= UCNV_RESET_TO_UNICODE ) {\n cnv -> mode = 0 ;\n }\n if ( choice != UCNV_RESET_TO_UNICODE ) {\n cnv -> fromUnicodeStatus = UCNV_NEED_TO_WRITE_BOM ;\n }\n }"}
{"idx": 8834, "target": 0, "func": "int vp9_get_pred_context_comp_ref_p ( const VP9_COMMON * cm , const MACROBLOCKD * xd ) {\n int pred_context ;\n const MB_MODE_INFO * const above_mbmi = get_mbmi ( get_above_mi ( xd ) ) ;\n const MB_MODE_INFO * const left_mbmi = get_mbmi ( get_left_mi ( xd ) ) ;\n const int above_in_image = above_mbmi != NULL ;\n const int left_in_image = left_mbmi != NULL ;\n const int fix_ref_idx = cm -> ref_frame_sign_bias [ cm -> comp_fixed_ref ] ;\n const int var_ref_idx = ! fix_ref_idx ;\n if ( above_in_image && left_in_image ) {\n const int above_intra = ! is_inter_block ( above_mbmi ) ;\n const int left_intra = ! is_inter_block ( left_mbmi ) ;\n if ( above_intra && left_intra ) {\n pred_context = 2 ;\n }\n else if ( above_intra || left_intra ) {\n const MB_MODE_INFO * edge_mbmi = above_intra ? left_mbmi : above_mbmi ;\n if ( ! has_second_ref ( edge_mbmi ) ) pred_context = 1 + 2 * ( edge_mbmi -> ref_frame [ 0 ] != cm -> comp_var_ref [ 1 ] ) ;\n else pred_context = 1 + 2 * ( edge_mbmi -> ref_frame [ var_ref_idx ] != cm -> comp_var_ref [ 1 ] ) ;\n }\n else {\n const int l_sg = ! has_second_ref ( left_mbmi ) ;\n const int a_sg = ! has_second_ref ( above_mbmi ) ;\n const MV_REFERENCE_FRAME vrfa = a_sg ? above_mbmi -> ref_frame [ 0 ] : above_mbmi -> ref_frame [ var_ref_idx ] ;\n const MV_REFERENCE_FRAME vrfl = l_sg ? left_mbmi -> ref_frame [ 0 ] : left_mbmi -> ref_frame [ var_ref_idx ] ;\n if ( vrfa == vrfl && cm -> comp_var_ref [ 1 ] == vrfa ) {\n pred_context = 0 ;\n }\n else if ( l_sg && a_sg ) {\n if ( ( vrfa == cm -> comp_fixed_ref && vrfl == cm -> comp_var_ref [ 0 ] ) || ( vrfl == cm -> comp_fixed_ref && vrfa == cm -> comp_var_ref [ 0 ] ) ) pred_context = 4 ;\n else if ( vrfa == vrfl ) pred_context = 3 ;\n else pred_context = 1 ;\n }\n else if ( l_sg || a_sg ) {\n const MV_REFERENCE_FRAME vrfc = l_sg ? vrfa : vrfl ;\n const MV_REFERENCE_FRAME rfs = a_sg ? vrfa : vrfl ;\n if ( vrfc == cm -> comp_var_ref [ 1 ] && rfs != cm -> comp_var_ref [ 1 ] ) pred_context = 1 ;\n else if ( rfs == cm -> comp_var_ref [ 1 ] && vrfc != cm -> comp_var_ref [ 1 ] ) pred_context = 2 ;\n else pred_context = 4 ;\n }\n else if ( vrfa == vrfl ) {\n pred_context = 4 ;\n }\n else {\n pred_context = 2 ;\n }\n }\n }\n else if ( above_in_image || left_in_image ) {\n const MB_MODE_INFO * edge_mbmi = above_in_image ? above_mbmi : left_mbmi ;\n if ( ! is_inter_block ( edge_mbmi ) ) {\n pred_context = 2 ;\n }\n else {\n if ( has_second_ref ( edge_mbmi ) ) pred_context = 4 * ( edge_mbmi -> ref_frame [ var_ref_idx ] != cm -> comp_var_ref [ 1 ] ) ;\n else pred_context = 3 * ( edge_mbmi -> ref_frame [ 0 ] != cm -> comp_var_ref [ 1 ] ) ;\n }\n }\n else {\n pred_context = 2 ;\n }\n assert ( pred_context >= 0 && pred_context < REF_CONTEXTS ) ;\n return pred_context ;\n }"}
{"idx": 8835, "target": 0, "func": "static void flush_packet ( AVFormatContext * s ) {\n ASFContext * asf = s -> priv_data ;\n int packet_hdr_size , packet_filled_size ;\n av_assert0 ( asf -> packet_timestamp_end >= asf -> packet_timestamp_start ) ;\n if ( asf -> is_streamed ) put_chunk ( s , 0x4424 , s -> packet_size , 0 ) ;\n packet_hdr_size = put_payload_parsing_info ( s , asf -> packet_timestamp_start , asf -> packet_timestamp_end - asf -> packet_timestamp_start , asf -> packet_nb_payloads , asf -> packet_size_left ) ;\n packet_filled_size = PACKET_SIZE - asf -> packet_size_left ;\n av_assert0 ( packet_hdr_size <= asf -> packet_size_left ) ;\n memset ( asf -> packet_buf + packet_filled_size , 0 , asf -> packet_size_left ) ;\n avio_write ( s -> pb , asf -> packet_buf , s -> packet_size - packet_hdr_size ) ;\n avio_flush ( s -> pb ) ;\n asf -> nb_packets ++ ;\n asf -> packet_nb_payloads = 0 ;\n asf -> packet_timestamp_start = - 1 ;\n asf -> packet_timestamp_end = - 1 ;\n ffio_init_context ( & asf -> pb , asf -> packet_buf , s -> packet_size , 1 , NULL , NULL , NULL , NULL ) ;\n }"}
{"idx": 8836, "target": 0, "func": "static int spl_filesystem_file_read_line ( zval * this_ptr , spl_filesystem_object * intern , int silent TSRMLS_DC ) {\n int ret = spl_filesystem_file_read_line_ex ( this_ptr , intern , silent TSRMLS_CC ) ;\n while ( SPL_HAS_FLAG ( intern -> flags , SPL_FILE_OBJECT_SKIP_EMPTY ) && ret == SUCCESS && spl_filesystem_file_is_empty_line ( intern TSRMLS_CC ) ) {\n spl_filesystem_file_free_line ( intern TSRMLS_CC ) ;\n ret = spl_filesystem_file_read_line_ex ( this_ptr , intern , silent TSRMLS_CC ) ;\n }\n return ret ;\n }"}
{"idx": 8837, "target": 0, "func": "const char * TSMimeFieldValueGet ( TSMBuffer , TSMLoc field_obj , int idx , int * value_len_ptr ) {\n MIMEFieldSDKHandle * handle = ( MIMEFieldSDKHandle * ) field_obj ;\n if ( idx >= 0 ) {\n return mime_field_value_get_comma_val ( handle -> field_ptr , value_len_ptr , idx ) ;\n }\n else {\n return mime_field_value_get ( handle -> field_ptr , value_len_ptr ) ;\n }\n }"}
{"idx": 8838, "target": 0, "func": "int test_gf2m_mod_exp ( BIO * bp , BN_CTX * ctx ) {\n BIGNUM * a , * b [ 2 ] , * c , * d , * e , * f ;\n int i , j , ret = 0 ;\n int p0 [ ] = {\n 163 , 7 , 6 , 3 , 0 , - 1 }\n ;\n int p1 [ ] = {\n 193 , 15 , 0 , - 1 }\n ;\n a = BN_new ( ) ;\n b [ 0 ] = BN_new ( ) ;\n b [ 1 ] = BN_new ( ) ;\n c = BN_new ( ) ;\n d = BN_new ( ) ;\n e = BN_new ( ) ;\n f = BN_new ( ) ;\n BN_GF2m_arr2poly ( p0 , b [ 0 ] ) ;\n BN_GF2m_arr2poly ( p1 , b [ 1 ] ) ;\n for ( i = 0 ;\n i < num0 ;\n i ++ ) {\n BN_bntest_rand ( a , 512 , 0 , 0 ) ;\n BN_bntest_rand ( c , 512 , 0 , 0 ) ;\n BN_bntest_rand ( d , 512 , 0 , 0 ) ;\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n BN_GF2m_mod_exp ( e , a , c , b [ j ] , ctx ) ;\n BN_GF2m_mod_exp ( f , a , d , b [ j ] , ctx ) ;\n BN_GF2m_mod_mul ( e , e , f , b [ j ] , ctx ) ;\n BN_add ( f , c , d ) ;\n BN_GF2m_mod_exp ( f , a , f , b [ j ] , ctx ) ;\n # if 0 if ( bp != NULL ) {\n if ( ! results ) {\n BN_print ( bp , a ) ;\n BIO_puts ( bp , \" ^ (\" ) ;\n BN_print ( bp , c ) ;\n BIO_puts ( bp , \" + \" ) ;\n BN_print ( bp , d ) ;\n BIO_puts ( bp , \") = \" ) ;\n BN_print ( bp , e ) ;\n BIO_puts ( bp , \";\n - \" ) ;\n BN_print ( bp , f ) ;\n BIO_puts ( bp , \" % \" ) ;\n BN_print ( bp , b [ j ] ) ;\n BIO_puts ( bp , \"\\n\" ) ;\n }\n }\n # endif BN_GF2m_add ( f , e , f ) ;\n if ( ! BN_is_zero ( f ) ) {\n fprintf ( stderr , \"GF(2^m) modular exponentiation test failed!\\n\" ) ;\n goto err ;\n }\n }\n }\n ret = 1 ;\n err : BN_free ( a ) ;\n BN_free ( b [ 0 ] ) ;\n BN_free ( b [ 1 ] ) ;\n BN_free ( c ) ;\n BN_free ( d ) ;\n BN_free ( e ) ;\n BN_free ( f ) ;\n return ret ;\n }"}
{"idx": 8839, "target": 0, "func": "static void dumpstr ( FILE * file , char * str ) {\n do {\n putc ( * str , file ) ;\n }\n while ( * str ++ != '\\0' ) ;\n }"}
{"idx": 8840, "target": 0, "func": "static int inode_doinit_with_dentry ( struct inode * inode , struct dentry * opt_dentry ) {\n struct superblock_security_struct * sbsec = NULL ;\n struct inode_security_struct * isec = inode -> i_security ;\n u32 task_sid , sid = 0 ;\n u16 sclass ;\n struct dentry * dentry ;\n # define INITCONTEXTLEN 255 char * context = NULL ;\n unsigned len = 0 ;\n int rc = 0 ;\n if ( isec -> initialized == LABEL_INITIALIZED ) return 0 ;\n spin_lock ( & isec -> lock ) ;\n if ( isec -> initialized == LABEL_INITIALIZED ) goto out_unlock ;\n if ( isec -> sclass == SECCLASS_FILE ) isec -> sclass = inode_mode_to_security_class ( inode -> i_mode ) ;\n sbsec = inode -> i_sb -> s_security ;\n if ( ! ( sbsec -> flags & SE_SBINITIALIZED ) ) {\n spin_lock ( & sbsec -> isec_lock ) ;\n if ( list_empty ( & isec -> list ) ) list_add ( & isec -> list , & sbsec -> isec_head ) ;\n spin_unlock ( & sbsec -> isec_lock ) ;\n goto out_unlock ;\n }\n sclass = isec -> sclass ;\n task_sid = isec -> task_sid ;\n sid = isec -> sid ;\n isec -> initialized = LABEL_PENDING ;\n spin_unlock ( & isec -> lock ) ;\n switch ( sbsec -> behavior ) {\n case SECURITY_FS_USE_NATIVE : break ;\n case SECURITY_FS_USE_XATTR : if ( ! ( inode -> i_opflags & IOP_XATTR ) ) {\n sid = sbsec -> def_sid ;\n break ;\n }\n if ( opt_dentry ) {\n dentry = dget ( opt_dentry ) ;\n }\n else {\n dentry = d_find_alias ( inode ) ;\n }\n if ( ! dentry ) {\n goto out ;\n }\n len = INITCONTEXTLEN ;\n context = kmalloc ( len + 1 , GFP_NOFS ) ;\n if ( ! context ) {\n rc = - ENOMEM ;\n dput ( dentry ) ;\n goto out ;\n }\n context [ len ] = '\\0' ;\n rc = __vfs_getxattr ( dentry , inode , XATTR_NAME_SELINUX , context , len ) ;\n if ( rc == - ERANGE ) {\n kfree ( context ) ;\n rc = __vfs_getxattr ( dentry , inode , XATTR_NAME_SELINUX , NULL , 0 ) ;\n if ( rc < 0 ) {\n dput ( dentry ) ;\n goto out ;\n }\n len = rc ;\n context = kmalloc ( len + 1 , GFP_NOFS ) ;\n if ( ! context ) {\n rc = - ENOMEM ;\n dput ( dentry ) ;\n goto out ;\n }\n context [ len ] = '\\0' ;\n rc = __vfs_getxattr ( dentry , inode , XATTR_NAME_SELINUX , context , len ) ;\n }\n dput ( dentry ) ;\n if ( rc < 0 ) {\n if ( rc != - ENODATA ) {\n printk ( KERN_WARNING \"SELinux: %s: getxattr returned \" \"%d for dev=%s ino=%ld\\n\" , __func__ , - rc , inode -> i_sb -> s_id , inode -> i_ino ) ;\n kfree ( context ) ;\n goto out ;\n }\n sid = sbsec -> def_sid ;\n rc = 0 ;\n }\n else {\n rc = security_context_to_sid_default ( context , rc , & sid , sbsec -> def_sid , GFP_NOFS ) ;\n if ( rc ) {\n char * dev = inode -> i_sb -> s_id ;\n unsigned long ino = inode -> i_ino ;\n if ( rc == - EINVAL ) {\n if ( printk_ratelimit ( ) ) printk ( KERN_NOTICE \"SELinux: inode=%lu on dev=%s was found to have an invalid \" \"context=%s. This indicates you may need to relabel the inode or the \" \"filesystem in question.\\n\" , ino , dev , context ) ;\n }\n else {\n printk ( KERN_WARNING \"SELinux: %s: context_to_sid(%s) \" \"returned %d for dev=%s ino=%ld\\n\" , __func__ , context , - rc , dev , ino ) ;\n }\n kfree ( context ) ;\n rc = 0 ;\n break ;\n }\n }\n kfree ( context ) ;\n break ;\n case SECURITY_FS_USE_TASK : sid = task_sid ;\n break ;\n case SECURITY_FS_USE_TRANS : sid = sbsec -> sid ;\n rc = security_transition_sid ( task_sid , sid , sclass , NULL , & sid ) ;\n if ( rc ) goto out ;\n break ;\n case SECURITY_FS_USE_MNTPOINT : sid = sbsec -> mntpoint_sid ;\n break ;\n default : sid = sbsec -> sid ;\n if ( ( sbsec -> flags & SE_SBGENFS ) && ! S_ISLNK ( inode -> i_mode ) ) {\n if ( opt_dentry ) dentry = dget ( opt_dentry ) ;\n else dentry = d_find_alias ( inode ) ;\n if ( ! dentry ) goto out ;\n rc = selinux_genfs_get_sid ( dentry , sclass , sbsec -> flags , & sid ) ;\n dput ( dentry ) ;\n if ( rc ) goto out ;\n }\n break ;\n }\n out : spin_lock ( & isec -> lock ) ;\n if ( isec -> initialized == LABEL_PENDING ) {\n if ( ! sid || rc ) {\n isec -> initialized = LABEL_INVALID ;\n goto out_unlock ;\n }\n isec -> initialized = LABEL_INITIALIZED ;\n isec -> sid = sid ;\n }\n out_unlock : spin_unlock ( & isec -> lock ) ;\n return rc ;\n }"}
{"idx": 8841, "target": 0, "func": "static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 8842, "target": 0, "func": "static void mips_pica61_init ( QEMUMachineInitArgs * args ) {\n ram_addr_t ram_size = args -> ram_size ;\n const char * cpu_model = args -> cpu_model ;\n mips_jazz_init ( get_system_memory ( ) , get_system_io ( ) , ram_size , cpu_model , JAZZ_PICA61 ) ;\n }"}
{"idx": 8843, "target": 0, "func": "static inline int get_words ( OHCIState * ohci , dma_addr_t addr , uint16_t * buf , int num ) {\n int i ;\n addr += ohci -> localmem_base ;\n for ( i = 0 ;\n i < num ;\n i ++ , buf ++ , addr += sizeof ( * buf ) ) {\n if ( dma_memory_read ( ohci -> as , addr , buf , sizeof ( * buf ) ) ) {\n return - 1 ;\n }\n * buf = le16_to_cpu ( * buf ) ;\n }\n return 0 ;\n }"}
{"idx": 8844, "target": 1, "func": "static void _SCSUToUnicodeWithOffsets ( UConverterToUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n UConverter * cnv ;\n SCSUData * scsu ;\n const uint8_t * source , * sourceLimit ;\n UChar * target ;\n const UChar * targetLimit ;\n int32_t * offsets ;\n UBool isSingleByteMode ;\n uint8_t state , byteOne ;\n int8_t quoteWindow , dynamicWindow ;\n int32_t sourceIndex , nextSourceIndex ;\n uint8_t b ;\n cnv = pArgs -> converter ;\n scsu = ( SCSUData * ) cnv -> extraInfo ;\n source = ( const uint8_t * ) pArgs -> source ;\n sourceLimit = ( const uint8_t * ) pArgs -> sourceLimit ;\n target = pArgs -> target ;\n targetLimit = pArgs -> targetLimit ;\n offsets = pArgs -> offsets ;\n isSingleByteMode = scsu -> toUIsSingleByteMode ;\n state = scsu -> toUState ;\n quoteWindow = scsu -> toUQuoteWindow ;\n dynamicWindow = scsu -> toUDynamicWindow ;\n byteOne = scsu -> toUByteOne ;\n sourceIndex = state == readCommand ? 0 : - 1 ;\n nextSourceIndex = 0 ;\n if ( isSingleByteMode ) {\n if ( state == readCommand ) {\n fastSingle : while ( source < sourceLimit && target < targetLimit && ( b = * source ) >= 0x20 ) {\n ++ source ;\n ++ nextSourceIndex ;\n if ( b <= 0x7f ) {\n * target ++ = ( UChar ) b ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n }\n else {\n uint32_t c = scsu -> toUDynamicOffsets [ dynamicWindow ] + ( b & 0x7f ) ;\n if ( c <= 0xffff ) {\n * target ++ = ( UChar ) c ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n }\n else {\n * target ++ = ( UChar ) ( 0xd7c0 + ( c >> 10 ) ) ;\n if ( target < targetLimit ) {\n * target ++ = ( UChar ) ( 0xdc00 | ( c & 0x3ff ) ) ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ;\n }\n }\n else {\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n cnv -> UCharErrorBuffer [ 0 ] = ( UChar ) ( 0xdc00 | ( c & 0x3ff ) ) ;\n cnv -> UCharErrorBufferLength = 1 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n goto endloop ;\n }\n }\n }\n sourceIndex = nextSourceIndex ;\n }\n }\n singleByteMode : while ( source < sourceLimit ) {\n if ( target >= targetLimit ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n b = * source ++ ;\n ++ nextSourceIndex ;\n switch ( state ) {\n case readCommand : if ( ( 1UL << b ) & 0x2601 ) {\n * target ++ = ( UChar ) b ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n sourceIndex = nextSourceIndex ;\n goto fastSingle ;\n }\n else if ( SC0 <= b ) {\n if ( b <= SC7 ) {\n dynamicWindow = ( int8_t ) ( b - SC0 ) ;\n sourceIndex = nextSourceIndex ;\n goto fastSingle ;\n }\n else {\n dynamicWindow = ( int8_t ) ( b - SD0 ) ;\n state = defineOne ;\n }\n }\n else if ( b <= SQ7 ) {\n quoteWindow = ( int8_t ) ( b - SQ0 ) ;\n state = quoteOne ;\n }\n else if ( b == SDX ) {\n state = definePairOne ;\n }\n else if ( b == SQU ) {\n state = quotePairOne ;\n }\n else if ( b == SCU ) {\n sourceIndex = nextSourceIndex ;\n isSingleByteMode = FALSE ;\n goto fastUnicode ;\n }\n else {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n cnv -> toUBytes [ 0 ] = b ;\n cnv -> toULength = 1 ;\n goto endloop ;\n }\n cnv -> toUBytes [ 0 ] = b ;\n cnv -> toULength = 1 ;\n break ;\n case quotePairOne : byteOne = b ;\n cnv -> toUBytes [ 1 ] = b ;\n cnv -> toULength = 2 ;\n state = quotePairTwo ;\n break ;\n case quotePairTwo : * target ++ = ( UChar ) ( ( byteOne << 8 ) | b ) ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n sourceIndex = nextSourceIndex ;\n state = readCommand ;\n goto fastSingle ;\n case quoteOne : if ( b < 0x80 ) {\n * target ++ = ( UChar ) ( staticOffsets [ quoteWindow ] + b ) ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n }\n else {\n uint32_t c = scsu -> toUDynamicOffsets [ quoteWindow ] + ( b & 0x7f ) ;\n if ( c <= 0xffff ) {\n * target ++ = ( UChar ) c ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n }\n else {\n * target ++ = ( UChar ) ( 0xd7c0 + ( c >> 10 ) ) ;\n if ( target < targetLimit ) {\n * target ++ = ( UChar ) ( 0xdc00 | ( c & 0x3ff ) ) ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ;\n }\n }\n else {\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n cnv -> UCharErrorBuffer [ 0 ] = ( UChar ) ( 0xdc00 | ( c & 0x3ff ) ) ;\n cnv -> UCharErrorBufferLength = 1 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n goto endloop ;\n }\n }\n }\n sourceIndex = nextSourceIndex ;\n state = readCommand ;\n goto fastSingle ;\n case definePairOne : dynamicWindow = ( int8_t ) ( ( b >> 5 ) & 7 ) ;\n byteOne = ( uint8_t ) ( b & 0x1f ) ;\n cnv -> toUBytes [ 1 ] = b ;\n cnv -> toULength = 2 ;\n state = definePairTwo ;\n break ;\n case definePairTwo : scsu -> toUDynamicOffsets [ dynamicWindow ] = 0x10000 + ( byteOne << 15UL | b << 7UL ) ;\n sourceIndex = nextSourceIndex ;\n state = readCommand ;\n goto fastSingle ;\n case defineOne : if ( b == 0 ) {\n cnv -> toUBytes [ 1 ] = b ;\n cnv -> toULength = 2 ;\n goto endloop ;\n }\n else if ( b < gapThreshold ) {\n scsu -> toUDynamicOffsets [ dynamicWindow ] = b << 7UL ;\n }\n else if ( ( uint8_t ) ( b - gapThreshold ) < ( reservedStart - gapThreshold ) ) {\n scsu -> toUDynamicOffsets [ dynamicWindow ] = ( b << 7UL ) + gapOffset ;\n }\n else if ( b >= fixedThreshold ) {\n scsu -> toUDynamicOffsets [ dynamicWindow ] = fixedOffsets [ b - fixedThreshold ] ;\n }\n else {\n cnv -> toUBytes [ 1 ] = b ;\n cnv -> toULength = 2 ;\n goto endloop ;\n }\n sourceIndex = nextSourceIndex ;\n state = readCommand ;\n goto fastSingle ;\n }\n }\n }\n else {\n if ( state == readCommand ) {\n fastUnicode : while ( source + 1 < sourceLimit && target < targetLimit && ( uint8_t ) ( ( b = * source ) - UC0 ) > ( Urs - UC0 ) ) {\n * target ++ = ( UChar ) ( ( b << 8 ) | source [ 1 ] ) ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n sourceIndex = nextSourceIndex ;\n nextSourceIndex += 2 ;\n source += 2 ;\n }\n }\n while ( source < sourceLimit ) {\n if ( target >= targetLimit ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n b = * source ++ ;\n ++ nextSourceIndex ;\n switch ( state ) {\n case readCommand : if ( ( uint8_t ) ( b - UC0 ) > ( Urs - UC0 ) ) {\n byteOne = b ;\n cnv -> toUBytes [ 0 ] = b ;\n cnv -> toULength = 1 ;\n state = quotePairTwo ;\n }\n else if ( b <= UC7 ) {\n dynamicWindow = ( int8_t ) ( b - UC0 ) ;\n sourceIndex = nextSourceIndex ;\n isSingleByteMode = TRUE ;\n goto fastSingle ;\n }\n else if ( b <= UD7 ) {\n dynamicWindow = ( int8_t ) ( b - UD0 ) ;\n isSingleByteMode = TRUE ;\n cnv -> toUBytes [ 0 ] = b ;\n cnv -> toULength = 1 ;\n state = defineOne ;\n goto singleByteMode ;\n }\n else if ( b == UDX ) {\n isSingleByteMode = TRUE ;\n cnv -> toUBytes [ 0 ] = b ;\n cnv -> toULength = 1 ;\n state = definePairOne ;\n goto singleByteMode ;\n }\n else if ( b == UQU ) {\n cnv -> toUBytes [ 0 ] = b ;\n cnv -> toULength = 1 ;\n state = quotePairOne ;\n }\n else {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n cnv -> toUBytes [ 0 ] = b ;\n cnv -> toULength = 1 ;\n goto endloop ;\n }\n break ;\n case quotePairOne : byteOne = b ;\n cnv -> toUBytes [ 1 ] = b ;\n cnv -> toULength = 2 ;\n state = quotePairTwo ;\n break ;\n case quotePairTwo : * target ++ = ( UChar ) ( ( byteOne << 8 ) | b ) ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n sourceIndex = nextSourceIndex ;\n state = readCommand ;\n goto fastUnicode ;\n }\n }\n }\n endloop : if ( U_FAILURE ( * pErrorCode ) && * pErrorCode != U_BUFFER_OVERFLOW_ERROR ) {\n state = readCommand ;\n }\n else if ( state == readCommand ) {\n cnv -> toULength = 0 ;\n }\n scsu -> toUIsSingleByteMode = isSingleByteMode ;\n scsu -> toUState = state ;\n scsu -> toUQuoteWindow = quoteWindow ;\n scsu -> toUDynamicWindow = dynamicWindow ;\n scsu -> toUByteOne = byteOne ;\n pArgs -> source = ( const char * ) source ;\n pArgs -> target = target ;\n pArgs -> offsets = offsets ;\n return ;\n }"}
{"idx": 8845, "target": 0, "func": "static void U_CALLCONV UConverter_toUnicode_ISCII_OFFSETS_LOGIC ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n const char * source = ( char * ) args -> source ;\n UChar * target = args -> target ;\n const char * sourceLimit = args -> sourceLimit ;\n const UChar * targetLimit = args -> targetLimit ;\n uint32_t targetUniChar = 0x0000 ;\n uint8_t sourceChar = 0x0000 ;\n UConverterDataISCII * data ;\n UChar32 * toUnicodeStatus = NULL ;\n UChar32 tempTargetUniChar = 0x0000 ;\n UChar * contextCharToUnicode = NULL ;\n UBool found ;\n int i ;\n int offset = 0 ;\n if ( ( args -> converter == NULL ) || ( target < args -> target ) || ( source < args -> source ) ) {\n * err = U_ILLEGAL_ARGUMENT_ERROR ;\n return ;\n }\n data = ( UConverterDataISCII * ) ( args -> converter -> extraInfo ) ;\n contextCharToUnicode = & data -> contextCharToUnicode ;\n toUnicodeStatus = ( UChar32 * ) & args -> converter -> toUnicodeStatus ;\n while ( U_SUCCESS ( * err ) && source < sourceLimit ) {\n targetUniChar = missingCharMarker ;\n if ( target < targetLimit ) {\n sourceChar = ( unsigned char ) * ( source ) ++ ;\n if ( * contextCharToUnicode == ATR ) {\n if ( ( uint8_t ) ( PNJ - sourceChar ) <= PNJ - DEV ) {\n data -> currentDeltaToUnicode = ( uint16_t ) ( lookupTable [ sourceChar & 0x0F ] [ 0 ] * DELTA ) ;\n data -> currentMaskToUnicode = ( MaskEnum ) lookupTable [ sourceChar & 0x0F ] [ 1 ] ;\n }\n else if ( sourceChar == DEF ) {\n data -> currentDeltaToUnicode = data -> defDeltaToUnicode ;\n data -> currentMaskToUnicode = data -> defMaskToUnicode ;\n }\n else {\n if ( ( sourceChar >= 0x21 && sourceChar <= 0x3F ) ) {\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n * contextCharToUnicode = NO_CHAR_MARKER ;\n goto CALLBACK ;\n }\n }\n * contextCharToUnicode = NO_CHAR_MARKER ;\n continue ;\n }\n else if ( * contextCharToUnicode == EXT ) {\n if ( ( uint8_t ) ( EXT_RANGE_END - sourceChar ) <= ( EXT_RANGE_END - EXT_RANGE_BEGIN ) ) {\n if ( sourceChar == 0xBF || sourceChar == 0xB8 ) {\n targetUniChar = ( sourceChar == 0xBF ) ? DEV_ABBR_SIGN : DEV_ANUDATTA ;\n if ( validityTable [ ( uint8_t ) targetUniChar ] & data -> currentMaskToUnicode ) {\n * contextCharToUnicode = NO_CHAR_MARKER ;\n if ( data -> prevToUnicodeStatus ) {\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , ( source - args -> source - 1 ) , data -> prevToUnicodeStatus , 0 , err ) ;\n data -> prevToUnicodeStatus = 0x0000 ;\n }\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , ( source - args -> source - 2 ) , targetUniChar , data -> currentDeltaToUnicode , err ) ;\n continue ;\n }\n }\n targetUniChar = missingCharMarker ;\n * err = U_INVALID_CHAR_FOUND ;\n }\n else {\n * contextCharToUnicode = NO_CHAR_MARKER ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n goto CALLBACK ;\n }\n else if ( * contextCharToUnicode == ISCII_INV ) {\n if ( sourceChar == ISCII_HALANT ) {\n targetUniChar = 0x0020 ;\n }\n else {\n targetUniChar = ZWJ ;\n }\n if ( data -> prevToUnicodeStatus ) {\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , ( source - args -> source - 1 ) , data -> prevToUnicodeStatus , 0 , err ) ;\n data -> prevToUnicodeStatus = 0x0000 ;\n }\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , ( source - args -> source - 2 ) , targetUniChar , data -> currentDeltaToUnicode , err ) ;\n * contextCharToUnicode = NO_CHAR_MARKER ;\n }\n switch ( sourceChar ) {\n case ISCII_INV : case EXT : case ATR : * contextCharToUnicode = ( UChar ) sourceChar ;\n if ( * toUnicodeStatus != missingCharMarker ) {\n if ( data -> prevToUnicodeStatus ) {\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , ( source - args -> source - 1 ) , data -> prevToUnicodeStatus , 0 , err ) ;\n data -> prevToUnicodeStatus = 0x0000 ;\n }\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , ( source - args -> source - 2 ) , * toUnicodeStatus , data -> currentDeltaToUnicode , err ) ;\n * toUnicodeStatus = missingCharMarker ;\n }\n continue ;\n case ISCII_DANDA : if ( * contextCharToUnicode == ISCII_DANDA ) {\n targetUniChar = DOUBLE_DANDA ;\n * contextCharToUnicode = NO_CHAR_MARKER ;\n * toUnicodeStatus = missingCharMarker ;\n }\n else {\n GET_MAPPING ( sourceChar , targetUniChar , data ) ;\n * contextCharToUnicode = sourceChar ;\n }\n break ;\n case ISCII_HALANT : if ( * contextCharToUnicode == ISCII_HALANT ) {\n targetUniChar = ZWNJ ;\n * contextCharToUnicode = NO_CHAR_MARKER ;\n }\n else {\n GET_MAPPING ( sourceChar , targetUniChar , data ) ;\n * contextCharToUnicode = sourceChar ;\n }\n break ;\n case 0x0A : case 0x0D : data -> resetToDefaultToUnicode = TRUE ;\n GET_MAPPING ( sourceChar , targetUniChar , data ) ;\n * contextCharToUnicode = sourceChar ;\n break ;\n case ISCII_VOWEL_SIGN_E : i = 1 ;\n found = FALSE ;\n for ( ;\n i < vowelSignESpecialCases [ 0 ] [ 0 ] ;\n i ++ ) {\n U_ASSERT ( i < UPRV_LENGTHOF ( vowelSignESpecialCases ) ) ;\n if ( vowelSignESpecialCases [ i ] [ 0 ] == ( uint8_t ) * contextCharToUnicode ) {\n targetUniChar = vowelSignESpecialCases [ i ] [ 1 ] ;\n found = TRUE ;\n break ;\n }\n }\n if ( found ) {\n if ( validityTable [ ( uint8_t ) targetUniChar ] & data -> currentMaskToUnicode ) {\n * contextCharToUnicode = NO_CHAR_MARKER ;\n * toUnicodeStatus = missingCharMarker ;\n break ;\n }\n }\n GET_MAPPING ( sourceChar , targetUniChar , data ) ;\n * contextCharToUnicode = sourceChar ;\n break ;\n case ISCII_NUKTA : if ( * contextCharToUnicode == ISCII_HALANT ) {\n targetUniChar = ZWJ ;\n * contextCharToUnicode = NO_CHAR_MARKER ;\n break ;\n }\n else if ( data -> currentDeltaToUnicode == PNJ_DELTA && data -> contextCharToUnicode == 0xc0 ) {\n if ( data -> prevToUnicodeStatus ) {\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , ( source - args -> source - 1 ) , data -> prevToUnicodeStatus , 0 , err ) ;\n data -> prevToUnicodeStatus = 0x0000 ;\n }\n targetUniChar = PNJ_RRA ;\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , ( source - args -> source ) - 2 , targetUniChar , 0 , err ) ;\n if ( U_SUCCESS ( * err ) ) {\n targetUniChar = PNJ_SIGN_VIRAMA ;\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , ( source - args -> source ) - 2 , targetUniChar , 0 , err ) ;\n if ( U_SUCCESS ( * err ) ) {\n targetUniChar = PNJ_HA ;\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , ( source - args -> source ) - 2 , targetUniChar , 0 , err ) ;\n }\n else {\n args -> converter -> UCharErrorBuffer [ args -> converter -> UCharErrorBufferLength ++ ] = PNJ_HA ;\n }\n }\n else {\n args -> converter -> UCharErrorBuffer [ args -> converter -> UCharErrorBufferLength ++ ] = PNJ_SIGN_VIRAMA ;\n args -> converter -> UCharErrorBuffer [ args -> converter -> UCharErrorBufferLength ++ ] = PNJ_HA ;\n }\n * toUnicodeStatus = missingCharMarker ;\n data -> contextCharToUnicode = NO_CHAR_MARKER ;\n continue ;\n }\n else {\n i = 1 ;\n found = FALSE ;\n for ( ;\n i < nuktaSpecialCases [ 0 ] [ 0 ] ;\n i ++ ) {\n if ( nuktaSpecialCases [ i ] [ 0 ] == ( uint8_t ) * contextCharToUnicode ) {\n targetUniChar = nuktaSpecialCases [ i ] [ 1 ] ;\n found = TRUE ;\n break ;\n }\n }\n if ( found ) {\n if ( validityTable [ ( uint8_t ) targetUniChar ] & data -> currentMaskToUnicode ) {\n * contextCharToUnicode = NO_CHAR_MARKER ;\n * toUnicodeStatus = missingCharMarker ;\n if ( data -> currentDeltaToUnicode == PNJ_DELTA ) {\n if ( data -> prevToUnicodeStatus ) {\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , ( source - args -> source - 1 ) , data -> prevToUnicodeStatus , 0 , err ) ;\n data -> prevToUnicodeStatus = 0x0000 ;\n }\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , ( source - args -> source - 2 ) , targetUniChar , data -> currentDeltaToUnicode , err ) ;\n continue ;\n }\n break ;\n }\n }\n U_FALLTHROUGH ;\n }\n default : GET_MAPPING ( sourceChar , targetUniChar , data ) ;\n * contextCharToUnicode = sourceChar ;\n break ;\n }\n if ( * toUnicodeStatus != missingCharMarker ) {\n if ( data -> currentDeltaToUnicode == PNJ_DELTA && data -> prevToUnicodeStatus != 0 && isPNJConsonant ( data -> prevToUnicodeStatus ) && ( * toUnicodeStatus + PNJ_DELTA ) == PNJ_SIGN_VIRAMA && ( ( UChar32 ) ( targetUniChar + PNJ_DELTA ) == data -> prevToUnicodeStatus ) ) {\n offset = ( int ) ( source - args -> source - 3 ) ;\n tempTargetUniChar = PNJ_ADHAK ;\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , offset , tempTargetUniChar , 0 , err ) ;\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , offset , data -> prevToUnicodeStatus , 0 , err ) ;\n data -> prevToUnicodeStatus = 0x0000 ;\n * toUnicodeStatus = missingCharMarker ;\n continue ;\n }\n else {\n if ( data -> prevToUnicodeStatus ) {\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , ( source - args -> source - 1 ) , data -> prevToUnicodeStatus , 0 , err ) ;\n data -> prevToUnicodeStatus = 0x0000 ;\n }\n if ( data -> currentDeltaToUnicode == PNJ_DELTA && ( targetUniChar + PNJ_DELTA ) == PNJ_BINDI && isPNJBindiTippi ( ( * toUnicodeStatus + PNJ_DELTA ) ) ) {\n targetUniChar = PNJ_TIPPI - PNJ_DELTA ;\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , ( source - args -> source - 2 ) , * toUnicodeStatus , PNJ_DELTA , err ) ;\n }\n else if ( data -> currentDeltaToUnicode == PNJ_DELTA && ( targetUniChar + PNJ_DELTA ) == PNJ_SIGN_VIRAMA && isPNJConsonant ( ( * toUnicodeStatus + PNJ_DELTA ) ) ) {\n data -> prevToUnicodeStatus = * toUnicodeStatus + PNJ_DELTA ;\n }\n else {\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , ( source - args -> source - 2 ) , * toUnicodeStatus , data -> currentDeltaToUnicode , err ) ;\n }\n }\n * toUnicodeStatus = missingCharMarker ;\n }\n if ( targetUniChar != missingCharMarker ) {\n * toUnicodeStatus = ( UChar ) targetUniChar ;\n if ( data -> resetToDefaultToUnicode == TRUE ) {\n data -> currentDeltaToUnicode = data -> defDeltaToUnicode ;\n data -> currentMaskToUnicode = data -> defMaskToUnicode ;\n data -> resetToDefaultToUnicode = FALSE ;\n }\n }\n else {\n * err = U_INVALID_CHAR_FOUND ;\n CALLBACK : args -> converter -> toUBytes [ 0 ] = ( uint8_t ) sourceChar ;\n args -> converter -> toULength = 1 ;\n break ;\n }\n }\n else {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n if ( U_SUCCESS ( * err ) && args -> flush && source == sourceLimit ) {\n UConverter * cnv = args -> converter ;\n if ( * contextCharToUnicode == ATR || * contextCharToUnicode == EXT || * contextCharToUnicode == ISCII_INV ) {\n cnv -> toUBytes [ 0 ] = ( uint8_t ) * contextCharToUnicode ;\n cnv -> toULength = 1 ;\n * contextCharToUnicode = NO_CHAR_MARKER ;\n }\n else {\n cnv -> toULength = 0 ;\n }\n if ( * toUnicodeStatus != missingCharMarker ) {\n WRITE_TO_TARGET_TO_U ( args , source , target , args -> offsets , ( source - args -> source - 1 ) , * toUnicodeStatus , data -> currentDeltaToUnicode , err ) ;\n * toUnicodeStatus = missingCharMarker ;\n }\n }\n args -> target = target ;\n args -> source = source ;\n }"}
{"idx": 8846, "target": 0, "func": "void vp9_idct4x4_1_add_c ( const tran_low_t * input , uint8_t * dest , int dest_stride ) {\n int i ;\n tran_high_t a1 ;\n tran_low_t out = dct_const_round_shift ( input [ 0 ] * cospi_16_64 ) ;\n out = dct_const_round_shift ( out * cospi_16_64 ) ;\n a1 = ROUND_POWER_OF_TWO ( out , 4 ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n dest [ 0 ] = clip_pixel ( dest [ 0 ] + a1 ) ;\n dest [ 1 ] = clip_pixel ( dest [ 1 ] + a1 ) ;\n dest [ 2 ] = clip_pixel ( dest [ 2 ] + a1 ) ;\n dest [ 3 ] = clip_pixel ( dest [ 3 ] + a1 ) ;\n dest += dest_stride ;\n }\n }"}
{"idx": 8847, "target": 0, "func": "IMPLEMENT_ssl23_meth_func ( SSLv23_server_method , ssl23_accept , ssl_undefined_function , ssl23_get_server_method ) int ssl23_accept ( SSL * s ) {\n BUF_MEM * buf ;\n unsigned long Time = ( unsigned long ) time ( NULL ) ;\n void ( * cb ) ( const SSL * ssl , int type , int val ) = NULL ;\n int ret = - 1 ;\n int new_state , state ;\n RAND_add ( & Time , sizeof ( Time ) , 0 ) ;\n ERR_clear_error ( ) ;\n clear_sys_error ( ) ;\n if ( s -> info_callback != NULL ) cb = s -> info_callback ;\n else if ( s -> ctx -> info_callback != NULL ) cb = s -> ctx -> info_callback ;\n s -> in_handshake ++ ;\n if ( ! SSL_in_init ( s ) || SSL_in_before ( s ) ) SSL_clear ( s ) ;\n for ( ;\n ;\n ) {\n state = s -> state ;\n switch ( s -> state ) {\n case SSL_ST_BEFORE : case SSL_ST_ACCEPT : case SSL_ST_BEFORE | SSL_ST_ACCEPT : case SSL_ST_OK | SSL_ST_ACCEPT : s -> server = 1 ;\n if ( cb != NULL ) cb ( s , SSL_CB_HANDSHAKE_START , 1 ) ;\n s -> type = SSL_ST_ACCEPT ;\n if ( s -> init_buf == NULL ) {\n if ( ( buf = BUF_MEM_new ( ) ) == NULL ) {\n ret = - 1 ;\n goto end ;\n }\n if ( ! BUF_MEM_grow ( buf , SSL3_RT_MAX_PLAIN_LENGTH ) ) {\n ret = - 1 ;\n goto end ;\n }\n s -> init_buf = buf ;\n }\n ssl3_init_finished_mac ( s ) ;\n s -> state = SSL23_ST_SR_CLNT_HELLO_A ;\n s -> ctx -> stats . sess_accept ++ ;\n s -> init_num = 0 ;\n break ;\n case SSL23_ST_SR_CLNT_HELLO_A : case SSL23_ST_SR_CLNT_HELLO_B : s -> shutdown = 0 ;\n ret = ssl23_get_client_hello ( s ) ;\n if ( ret >= 0 ) cb = NULL ;\n goto end ;\n default : SSLerr ( SSL_F_SSL23_ACCEPT , SSL_R_UNKNOWN_STATE ) ;\n ret = - 1 ;\n goto end ;\n }\n if ( ( cb != NULL ) && ( s -> state != state ) ) {\n new_state = s -> state ;\n s -> state = state ;\n cb ( s , SSL_CB_ACCEPT_LOOP , 1 ) ;\n s -> state = new_state ;\n }\n }\n end : s -> in_handshake -- ;\n if ( cb != NULL ) cb ( s , SSL_CB_ACCEPT_EXIT , ret ) ;\n return ( ret ) ;\n }"}
{"idx": 8848, "target": 0, "func": "static void dtap_bcc_term_req ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_BCC_CALL_REF , \"(Broadcast call reference)\" ) ;\n }"}
{"idx": 8849, "target": 0, "func": "static UBool CnvExtIsValid ( NewConverter * cnvData , const uint8_t * bytes , int32_t length ) {\n return FALSE ;\n }"}
{"idx": 8850, "target": 0, "func": "void proto_reg_handoff_gsm_a_dtap ( void ) {\n dissector_handle_t dtap_handle ;\n dtap_handle = find_dissector ( \"gsm_a_dtap\" ) ;\n dissector_add_uint ( \"bssap.pdu_type\" , BSSAP_PDU_TYPE_DTAP , dtap_handle ) ;\n dissector_add_uint ( \"ranap.nas_pdu\" , BSSAP_PDU_TYPE_DTAP , dtap_handle ) ;\n dissector_add_uint ( \"llcgprs.sapi\" , 1 , dtap_handle ) ;\n dissector_add_uint ( \"llcgprs.sapi\" , 7 , dtap_handle ) ;\n dissector_add_uint ( \"lapdm.sapi\" , 0 , dtap_handle ) ;\n dissector_add_uint ( \"lapdm.sapi\" , 3 , dtap_handle ) ;\n gsm_map_handle = find_dissector_add_dependency ( \"gsm_map\" , proto_a_dtap ) ;\n rp_handle = find_dissector_add_dependency ( \"gsm_a_rp\" , proto_a_dtap ) ;\n }"}
{"idx": 8851, "target": 0, "func": "void record_loop_stats ( double offset , double freq , double jitter , double wander , int spoll ) {\n l_fp now ;\n u_long day ;\n if ( ! stats_control ) return ;\n get_systime ( & now ) ;\n filegen_setup ( & loopstats , now . l_ui ) ;\n day = now . l_ui / 86400 + MJD_1900 ;\n now . l_ui %= 86400 ;\n if ( loopstats . fp != NULL ) {\n fprintf ( loopstats . fp , \"%lu %s %.9f %.3f %.9f %.6f %d\\n\" , day , ulfptoa ( & now , 3 ) , offset , freq * 1e6 , jitter , wander * 1e6 , spoll ) ;\n fflush ( loopstats . fp ) ;\n }\n }"}
{"idx": 8852, "target": 0, "func": "int dtls1_send_newsession_ticket ( SSL * s ) {\n if ( s -> state == SSL3_ST_SW_SESSION_TICKET_A ) {\n unsigned char * p , * senc , * macstart ;\n int len , slen ;\n unsigned int hlen , msg_len ;\n EVP_CIPHER_CTX ctx ;\n HMAC_CTX hctx ;\n SSL_CTX * tctx = s -> initial_ctx ;\n unsigned char iv [ EVP_MAX_IV_LENGTH ] ;\n unsigned char key_name [ 16 ] ;\n slen = i2d_SSL_SESSION ( s -> session , NULL ) ;\n if ( slen > 0xFF00 ) return - 1 ;\n if ( ! BUF_MEM_grow ( s -> init_buf , DTLS1_HM_HEADER_LENGTH + 22 + EVP_MAX_IV_LENGTH + EVP_MAX_BLOCK_LENGTH + EVP_MAX_MD_SIZE + slen ) ) return - 1 ;\n senc = OPENSSL_malloc ( slen ) ;\n if ( ! senc ) return - 1 ;\n p = senc ;\n i2d_SSL_SESSION ( s -> session , & p ) ;\n p = ( unsigned char * ) & ( s -> init_buf -> data [ DTLS1_HM_HEADER_LENGTH ] ) ;\n EVP_CIPHER_CTX_init ( & ctx ) ;\n HMAC_CTX_init ( & hctx ) ;\n if ( tctx -> tlsext_ticket_key_cb ) {\n if ( tctx -> tlsext_ticket_key_cb ( s , key_name , iv , & ctx , & hctx , 1 ) < 0 ) {\n OPENSSL_free ( senc ) ;\n return - 1 ;\n }\n }\n else {\n RAND_pseudo_bytes ( iv , 16 ) ;\n EVP_EncryptInit_ex ( & ctx , EVP_aes_128_cbc ( ) , NULL , tctx -> tlsext_tick_aes_key , iv ) ;\n HMAC_Init_ex ( & hctx , tctx -> tlsext_tick_hmac_key , 16 , tlsext_tick_md ( ) , NULL ) ;\n memcpy ( key_name , tctx -> tlsext_tick_key_name , 16 ) ;\n }\n l2n ( s -> session -> tlsext_tick_lifetime_hint , p ) ;\n p += 2 ;\n macstart = p ;\n memcpy ( p , key_name , 16 ) ;\n p += 16 ;\n memcpy ( p , iv , EVP_CIPHER_CTX_iv_length ( & ctx ) ) ;\n p += EVP_CIPHER_CTX_iv_length ( & ctx ) ;\n EVP_EncryptUpdate ( & ctx , p , & len , senc , slen ) ;\n p += len ;\n EVP_EncryptFinal ( & ctx , p , & len ) ;\n p += len ;\n EVP_CIPHER_CTX_cleanup ( & ctx ) ;\n HMAC_Update ( & hctx , macstart , p - macstart ) ;\n HMAC_Final ( & hctx , p , & hlen ) ;\n HMAC_CTX_cleanup ( & hctx ) ;\n p += hlen ;\n len = p - ( unsigned char * ) ( s -> init_buf -> data ) ;\n p = ( unsigned char * ) & ( s -> init_buf -> data [ DTLS1_HM_HEADER_LENGTH ] ) + 4 ;\n s2n ( len - DTLS1_HM_HEADER_LENGTH - 6 , p ) ;\n s -> init_num = len ;\n s -> state = SSL3_ST_SW_SESSION_TICKET_B ;\n s -> init_off = 0 ;\n OPENSSL_free ( senc ) ;\n msg_len = s -> init_num - DTLS1_HM_HEADER_LENGTH ;\n dtls1_set_message_header ( s , ( void * ) s -> init_buf -> data , SSL3_MT_NEWSESSION_TICKET , msg_len , 0 , msg_len ) ;\n dtls1_buffer_message ( s , 0 ) ;\n }\n return ( dtls1_do_write ( s , SSL3_RT_HANDSHAKE ) ) ;\n }"}
{"idx": 8853, "target": 0, "func": "static void check_for_prepared_transactions ( ClusterInfo * cluster ) {\n PGresult * res ;\n PGconn * conn = connectToServer ( cluster , \"template1\" ) ;\n prep_status ( \"Checking for prepared transactions\" ) ;\n res = executeQueryOrDie ( conn , \"SELECT * \" \"FROM pg_catalog.pg_prepared_xacts\" ) ;\n if ( PQntuples ( res ) != 0 ) pg_fatal ( \"The %s cluster contains prepared transactions\\n\" , CLUSTER_NAME ( cluster ) ) ;\n PQclear ( res ) ;\n PQfinish ( conn ) ;\n check_ok ( ) ;\n }"}
{"idx": 8854, "target": 0, "func": "int remoteSerializeStreamError ( struct qemud_client * client , remote_error * rerr , int proc , int serial ) {\n return remoteSerializeError ( client , rerr , REMOTE_PROGRAM , REMOTE_PROTOCOL_VERSION , proc , REMOTE_STREAM , serial ) ;\n }"}
{"idx": 8855, "target": 0, "func": "static void dissect_q931_signal_ie ( tvbuff_t * tvb , packet_info * pinfo , int offset , int len , proto_tree * tree , proto_item * item ) {\n if ( len != 1 ) {\n expert_add_info_format ( pinfo , item , & ei_q931_invalid_length , \"Signal: length is %d, should be 1\" , len ) ;\n return ;\n }\n proto_tree_add_item ( tree , hf_q931_signal , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n }"}
{"idx": 8856, "target": 0, "func": "TSReturnCode TSHttpTxnOutgoingTransparencySet ( TSHttpTxn txnp , int flag ) {\n if ( TS_SUCCESS != sdk_sanity_check_txn ( txnp ) ) {\n return TS_ERROR ;\n }\n HttpSM * sm = reinterpret_cast < HttpSM * > ( txnp ) ;\n if ( nullptr == sm || nullptr == sm -> ua_session ) {\n return TS_ERROR ;\n }\n sm -> ua_session -> set_outbound_transparent ( flag ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 8857, "target": 0, "func": "static gcry_err_code_t pkcs1_encode_for_encryption ( gcry_mpi_t * r_result , unsigned int nbits , const unsigned char * value , size_t valuelen , const unsigned char * random_override , size_t random_override_len ) {\n gcry_err_code_t rc = 0 ;\n gcry_error_t err ;\n unsigned char * frame = NULL ;\n size_t nframe = ( nbits + 7 ) / 8 ;\n int i ;\n size_t n ;\n unsigned char * p ;\n if ( valuelen + 7 > nframe || ! nframe ) {\n return GPG_ERR_TOO_SHORT ;\n }\n if ( ! ( frame = gcry_malloc_secure ( nframe ) ) ) return gpg_err_code_from_syserror ( ) ;\n n = 0 ;\n frame [ n ++ ] = 0 ;\n frame [ n ++ ] = 2 ;\n i = nframe - 3 - valuelen ;\n gcry_assert ( i > 0 ) ;\n if ( random_override ) {\n int j ;\n if ( random_override_len != i ) {\n gcry_free ( frame ) ;\n return GPG_ERR_INV_ARG ;\n }\n for ( j = 0 ;\n j < random_override_len ;\n j ++ ) if ( ! random_override [ j ] ) {\n gcry_free ( frame ) ;\n return GPG_ERR_INV_ARG ;\n }\n memcpy ( frame + n , random_override , random_override_len ) ;\n n += random_override_len ;\n }\n else {\n p = gcry_random_bytes_secure ( i , GCRY_STRONG_RANDOM ) ;\n for ( ;\n ;\n ) {\n int j , k ;\n unsigned char * pp ;\n for ( j = k = 0 ;\n j < i ;\n j ++ ) {\n if ( ! p [ j ] ) k ++ ;\n }\n if ( ! k ) break ;\n k += k / 128 + 3 ;\n pp = gcry_random_bytes_secure ( k , GCRY_STRONG_RANDOM ) ;\n for ( j = 0 ;\n j < i && k ;\n ) {\n if ( ! p [ j ] ) p [ j ] = pp [ -- k ] ;\n if ( p [ j ] ) j ++ ;\n }\n gcry_free ( pp ) ;\n }\n memcpy ( frame + n , p , i ) ;\n n += i ;\n gcry_free ( p ) ;\n }\n frame [ n ++ ] = 0 ;\n memcpy ( frame + n , value , valuelen ) ;\n n += valuelen ;\n gcry_assert ( n == nframe ) ;\n err = gcry_mpi_scan ( r_result , GCRYMPI_FMT_USG , frame , n , & nframe ) ;\n if ( err ) rc = gcry_err_code ( err ) ;\n else if ( DBG_CIPHER ) log_mpidump ( \"PKCS#1 block type 2 encoded data\" , * r_result ) ;\n gcry_free ( frame ) ;\n return rc ;\n }"}
{"idx": 8858, "target": 0, "func": "static int kwajd_read_headers ( struct mspack_system * sys , struct mspack_file * fh , struct mskwajd_header * hdr ) {\n unsigned char buf [ 16 ] ;\n int i ;\n if ( sys -> read ( fh , & buf [ 0 ] , kwajh_SIZEOF ) != kwajh_SIZEOF ) {\n return MSPACK_ERR_READ ;\n }\n if ( ( ( unsigned int ) EndGetI32 ( & buf [ kwajh_Signature1 ] ) != 0x4A41574B ) || ( ( unsigned int ) EndGetI32 ( & buf [ kwajh_Signature2 ] ) != 0xD127F088 ) ) {\n return MSPACK_ERR_SIGNATURE ;\n }\n hdr -> comp_type = EndGetI16 ( & buf [ kwajh_CompMethod ] ) ;\n hdr -> data_offset = EndGetI16 ( & buf [ kwajh_DataOffset ] ) ;\n hdr -> headers = EndGetI16 ( & buf [ kwajh_Flags ] ) ;\n hdr -> length = 0 ;\n hdr -> filename = NULL ;\n hdr -> extra = NULL ;\n hdr -> extra_length = 0 ;\n if ( hdr -> headers & MSKWAJ_HDR_HASLENGTH ) {\n if ( sys -> read ( fh , & buf [ 0 ] , 4 ) != 4 ) return MSPACK_ERR_READ ;\n hdr -> length = EndGetI32 ( & buf [ 0 ] ) ;\n }\n if ( hdr -> headers & MSKWAJ_HDR_HASUNKNOWN1 ) {\n if ( sys -> read ( fh , & buf [ 0 ] , 2 ) != 2 ) return MSPACK_ERR_READ ;\n }\n if ( hdr -> headers & MSKWAJ_HDR_HASUNKNOWN2 ) {\n if ( sys -> read ( fh , & buf [ 0 ] , 2 ) != 2 ) return MSPACK_ERR_READ ;\n i = EndGetI16 ( & buf [ 0 ] ) ;\n if ( sys -> seek ( fh , ( off_t ) i , MSPACK_SYS_SEEK_CUR ) ) return MSPACK_ERR_SEEK ;\n }\n if ( hdr -> headers & ( MSKWAJ_HDR_HASFILENAME | MSKWAJ_HDR_HASFILEEXT ) ) {\n int len ;\n char * fn = ( char * ) sys -> alloc ( sys , ( size_t ) 13 ) ;\n if ( ! ( hdr -> filename = fn ) ) return MSPACK_ERR_NOMEMORY ;\n if ( hdr -> headers & MSKWAJ_HDR_HASFILENAME ) {\n if ( ( len = sys -> read ( fh , & buf [ 0 ] , 9 ) ) < 2 ) return MSPACK_ERR_READ ;\n for ( i = 0 ;\n i < len ;\n i ++ ) if ( ! ( * fn ++ = buf [ i ] ) ) break ;\n if ( i == 9 && buf [ 8 ] != '\\0' ) return MSPACK_ERR_DATAFORMAT ;\n if ( sys -> seek ( fh , ( off_t ) ( i + 1 - len ) , MSPACK_SYS_SEEK_CUR ) ) return MSPACK_ERR_SEEK ;\n fn -- ;\n }\n if ( hdr -> headers & MSKWAJ_HDR_HASFILEEXT ) {\n * fn ++ = '.' ;\n if ( ( len = sys -> read ( fh , & buf [ 0 ] , 4 ) ) < 2 ) return MSPACK_ERR_READ ;\n for ( i = 0 ;\n i < len ;\n i ++ ) if ( ! ( * fn ++ = buf [ i ] ) ) break ;\n if ( i == 4 && buf [ 3 ] != '\\0' ) return MSPACK_ERR_DATAFORMAT ;\n if ( sys -> seek ( fh , ( off_t ) ( i + 1 - len ) , MSPACK_SYS_SEEK_CUR ) ) return MSPACK_ERR_SEEK ;\n fn -- ;\n }\n * fn = '\\0' ;\n }\n if ( hdr -> headers & MSKWAJ_HDR_HASEXTRATEXT ) {\n if ( sys -> read ( fh , & buf [ 0 ] , 2 ) != 2 ) return MSPACK_ERR_READ ;\n i = EndGetI16 ( & buf [ 0 ] ) ;\n hdr -> extra = ( char * ) sys -> alloc ( sys , ( size_t ) i + 1 ) ;\n if ( ! hdr -> extra ) return MSPACK_ERR_NOMEMORY ;\n if ( sys -> read ( fh , hdr -> extra , i ) != i ) return MSPACK_ERR_READ ;\n hdr -> extra [ i ] = '\\0' ;\n hdr -> extra_length = i ;\n }\n return MSPACK_ERR_OK ;\n }"}
{"idx": 8859, "target": 0, "func": "static ASN1_STRING * obj_to_asn1str ( VALUE obj ) {\n ASN1_STRING * str ;\n StringValue ( obj ) ;\n if ( ! ( str = ASN1_STRING_new ( ) ) ) ossl_raise ( eASN1Error , NULL ) ;\n ASN1_STRING_set ( str , RSTRING_PTR ( obj ) , RSTRING_LENINT ( obj ) ) ;\n return str ;\n }"}
{"idx": 8860, "target": 0, "func": "unsigned int vp9_variance ## W ## x ## H ## _c ( const uint8_t * a , int a_stride , const uint8_t * b , int b_stride , unsigned int * sse ) {\n int sum ;\n variance ( a , a_stride , b , b_stride , W , H , sse , & sum ) ;\n return * sse - ( ( ( int64_t ) sum * sum ) / ( W * H ) ) ;\n \\ }\n # define SUBPIX_VAR ( W , H ) unsigned int vp9_sub_pixel_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp2 , W , dst , dst_stride , sse ) ;\n \\ }\n # define SUBPIX_AVG_VAR ( W , H ) unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 ) VAR ( 8 , 4 ) SUBPIX_VAR ( 8 , 4 ) SUBPIX_AVG_VAR ( 8 , 4 ) VAR ( 8 , 8 ) SUBPIX_VAR ( 8 , 8 ) SUBPIX_AVG_VAR ( 8 , 8 ) VAR ( 8 , 16 ) SUBPIX_VAR ( 8 , 16 ) SUBPIX_AVG_VAR ( 8 , 16 ) VAR ( 16 , 8 ) SUBPIX_VAR ( 16 , 8 ) SUBPIX_AVG_VAR ( 16 , 8 ) VAR ( 16 , 16 )"}
{"idx": 8861, "target": 0, "func": "void mi_check_print_error ( MI_CHECK * param , const char * fmt , ... ) {\n va_list args ;\n DBUG_ENTER ( \"mi_check_print_error\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"format: %s\" , fmt ) ) ;\n fflush ( stdout ) ;\n if ( ! param -> warning_printed && ! param -> error_printed ) {\n if ( param -> testflag & T_SILENT ) fprintf ( stderr , \"%s: MyISAM file %s\\n\" , my_progname_short , param -> isam_file_name ) ;\n param -> out_flag |= O_DATA_LOST ;\n }\n param -> error_printed |= 1 ;\n va_start ( args , fmt ) ;\n fprintf ( stderr , \"%s: error: \" , my_progname_short ) ;\n ( void ) vfprintf ( stderr , fmt , args ) ;\n ( void ) fputc ( '\\n' , stderr ) ;\n fflush ( stderr ) ;\n va_end ( args ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 8862, "target": 0, "func": "static void close_connections ( void ) {\n # ifdef EXTRA_DEBUG int count = 0 ;\n # endif DBUG_ENTER ( \"close_connections\" ) ;\n kill_cached_threads ++ ;\n flush_thread_cache ( ) ;\n # if ! defined ( __WIN__ ) DBUG_PRINT ( \"quit\" , ( \"waiting for select thread: 0x%lx\" , ( ulong ) select_thread ) ) ;\n mysql_mutex_lock ( & LOCK_thread_count ) ;\n while ( select_thread_in_use ) {\n struct timespec abstime ;\n int error ;\n LINT_INIT ( error ) ;\n DBUG_PRINT ( \"info\" , ( \"Waiting for select thread\" ) ) ;\n # ifndef DONT_USE_THR_ALARM if ( pthread_kill ( select_thread , thr_client_alarm ) ) break ;\n # endif set_timespec ( abstime , 2 ) ;\n for ( uint tmp = 0 ;\n tmp < 10 && select_thread_in_use ;\n tmp ++ ) {\n error = mysql_cond_timedwait ( & COND_thread_count , & LOCK_thread_count , & abstime ) ;\n if ( error != EINTR ) break ;\n }\n # ifdef EXTRA_DEBUG if ( error != 0 && error != ETIMEDOUT && ! count ++ ) sql_print_error ( \"Got error %d from mysql_cond_timedwait\" , error ) ;\n # endif close_server_sock ( ) ;\n }\n mysql_mutex_unlock ( & LOCK_thread_count ) ;\n # endif DBUG_PRINT ( \"quit\" , ( \"Closing sockets\" ) ) ;\n if ( ! opt_disable_networking ) {\n if ( base_ip_sock != INVALID_SOCKET ) {\n ( void ) mysql_socket_shutdown ( base_ip_sock , SHUT_RDWR ) ;\n ( void ) closesocket ( base_ip_sock ) ;\n base_ip_sock = INVALID_SOCKET ;\n }\n if ( extra_ip_sock != INVALID_SOCKET ) {\n ( void ) mysql_socket_shutdown ( extra_ip_sock , SHUT_RDWR ) ;\n ( void ) closesocket ( extra_ip_sock ) ;\n extra_ip_sock = INVALID_SOCKET ;\n }\n }\n # ifdef _WIN32 if ( hPipe != INVALID_HANDLE_VALUE && opt_enable_named_pipe ) {\n HANDLE temp ;\n DBUG_PRINT ( \"quit\" , ( \"Closing named pipes\" ) ) ;\n if ( ( temp = CreateFile ( pipe_name , GENERIC_READ | GENERIC_WRITE , 0 , NULL , OPEN_EXISTING , 0 , NULL ) ) != INVALID_HANDLE_VALUE ) {\n WaitNamedPipe ( pipe_name , 1000 ) ;\n DWORD dwMode = PIPE_READMODE_BYTE | PIPE_WAIT ;\n SetNamedPipeHandleState ( temp , & dwMode , NULL , NULL ) ;\n CancelIo ( temp ) ;\n DisconnectNamedPipe ( temp ) ;\n CloseHandle ( temp ) ;\n }\n }\n # endif # ifdef HAVE_SYS_UN_H if ( unix_sock != INVALID_SOCKET ) {\n ( void ) mysql_socket_shutdown ( unix_sock , SHUT_RDWR ) ;\n ( void ) closesocket ( unix_sock ) ;\n ( void ) unlink ( mysqld_unix_port ) ;\n unix_sock = INVALID_SOCKET ;\n }\n # endif end_thr_alarm ( 0 ) ;\n THD * tmp ;\n mysql_mutex_lock ( & LOCK_thread_count ) ;\n I_List_iterator < THD > it ( threads ) ;\n while ( ( tmp = it ++ ) ) {\n DBUG_PRINT ( \"quit\" , ( \"Informing thread %ld that it's time to die\" , tmp -> thread_id ) ) ;\n if ( tmp -> slave_thread ) continue ;\n tmp -> killed = KILL_SERVER_HARD ;\n MYSQL_CALLBACK ( thread_scheduler , post_kill_notification , ( tmp ) ) ;\n mysql_mutex_lock ( & tmp -> LOCK_thd_data ) ;\n if ( tmp -> mysys_var ) {\n tmp -> mysys_var -> abort = 1 ;\n mysql_mutex_lock ( & tmp -> mysys_var -> mutex ) ;\n if ( tmp -> mysys_var -> current_cond ) {\n uint i ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n int ret = mysql_mutex_trylock ( tmp -> mysys_var -> current_mutex ) ;\n mysql_cond_broadcast ( tmp -> mysys_var -> current_cond ) ;\n if ( ! ret ) {\n mysql_mutex_unlock ( tmp -> mysys_var -> current_mutex ) ;\n break ;\n }\n sleep ( 1 ) ;\n }\n }\n mysql_mutex_unlock ( & tmp -> mysys_var -> mutex ) ;\n }\n mysql_mutex_unlock ( & tmp -> LOCK_thd_data ) ;\n }\n mysql_mutex_unlock ( & LOCK_thread_count ) ;\n Events : : deinit ( ) ;\n end_slave ( ) ;\n for ( int i = 0 ;\n thread_count && i < 100 ;\n i ++ ) my_sleep ( 20000 ) ;\n for ( ;\n ;\n ) {\n DBUG_PRINT ( \"quit\" , ( \"Locking LOCK_thread_count\" ) ) ;\n mysql_mutex_lock ( & LOCK_thread_count ) ;\n if ( ! ( tmp = threads . get ( ) ) ) {\n DBUG_PRINT ( \"quit\" , ( \"Unlocking LOCK_thread_count\" ) ) ;\n mysql_mutex_unlock ( & LOCK_thread_count ) ;\n break ;\n }\n # ifndef __bsdi__ if ( tmp -> vio_ok ( ) ) {\n if ( global_system_variables . log_warnings ) sql_print_warning ( ER_DEFAULT ( ER_FORCING_CLOSE ) , my_progname , tmp -> thread_id , ( tmp -> main_security_ctx . user ? tmp -> main_security_ctx . user : \"\" ) ) ;\n close_connection ( tmp , ER_SERVER_SHUTDOWN ) ;\n }\n # endif DBUG_PRINT ( \"quit\" , ( \"Unlocking LOCK_thread_count\" ) ) ;\n mysql_mutex_unlock ( & LOCK_thread_count ) ;\n }\n DBUG_PRINT ( \"quit\" , ( \"Waiting for threads to die (count=%u)\" , thread_count ) ) ;\n mysql_mutex_lock ( & LOCK_thread_count ) ;\n while ( thread_count ) {\n mysql_cond_wait ( & COND_thread_count , & LOCK_thread_count ) ;\n DBUG_PRINT ( \"quit\" , ( \"One thread died (count=%u)\" , thread_count ) ) ;\n }\n mysql_mutex_unlock ( & LOCK_thread_count ) ;\n DBUG_PRINT ( \"quit\" , ( \"close_connections thread\" ) ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 8863, "target": 0, "func": "static unsigned int hashname ( const char * name ) {\n unsigned int hash = 0 ;\n while ( * name ) {\n unsigned int extra = ( hash >> 27 ) ;\n hash <<= 5 ;\n hash += * name & 0x1f ;\n hash ^= extra ;\n ++ name ;\n }\n return ( hash % 257 ) ;\n }"}
{"idx": 8864, "target": 0, "func": "static inline void path_table_add_entry ( struct path_table * pathtbl , struct isoent * ent ) {\n ent -> ptnext = NULL ;\n * pathtbl -> last = ent ;\n pathtbl -> last = & ( ent -> ptnext ) ;\n pathtbl -> cnt ++ ;\n }"}
{"idx": 8865, "target": 0, "func": "static void execve_shell ( const char * shellname , char * args [ ] , char * const envp [ ] ) {\n int err ;\n ( void ) execve ( shellname , ( char * * ) args , envp ) ;\n err = errno ;\n if ( access ( shellname , R_OK | X_OK ) == 0 ) {\n size_t n_args = 0 ;\n char * * targs ;\n while ( NULL != args [ n_args ] ) {\n n_args ++ ;\n }\n targs = ( char * * ) xmalloc ( ( n_args + 3 ) * sizeof ( args [ 0 ] ) ) ;\n targs [ 0 ] = \"sh\" ;\n targs [ 1 ] = \"-\" ;\n targs [ 2 ] = xstrdup ( shellname ) ;\n targs [ n_args + 2 ] = NULL ;\n while ( 1 != n_args ) {\n targs [ n_args + 1 ] = args [ n_args - 1 ] ;\n n_args -- ;\n }\n ( void ) execve ( SHELL , targs , envp ) ;\n }\n else {\n errno = err ;\n }\n }"}
{"idx": 8866, "target": 0, "func": "void dtls1_hm_fragment_free ( hm_fragment * frag ) {\n if ( ! frag ) return ;\n if ( frag -> msg_header . is_ccs ) {\n EVP_CIPHER_CTX_free ( frag -> msg_header . saved_retransmit_state . enc_write_ctx ) ;\n EVP_MD_CTX_free ( frag -> msg_header . saved_retransmit_state . write_hash ) ;\n }\n OPENSSL_free ( frag -> fragment ) ;\n OPENSSL_free ( frag -> reassembly ) ;\n OPENSSL_free ( frag ) ;\n }"}
{"idx": 8867, "target": 0, "func": "static int dissect_ber_ObjectDescriptor ( gboolean implicit_tag _U_ , tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_ber_restricted_string ( implicit_tag , BER_UNI_TAG_ObjectDescriptor , actx , tree , tvb , offset , hf_index , & actx -> external . data_value_descriptor ) ;\n return offset ;\n }"}
{"idx": 8868, "target": 1, "func": "static int gsm_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n int res ;\n GetBitContext gb ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n int16_t * samples ;\n if ( buf_size < avctx -> block_align ) {\n av_log ( avctx , AV_LOG_ERROR , \"Packet is too small\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n frame -> nb_samples = avctx -> frame_size ;\n if ( ( res = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return res ;\n }\n samples = ( int16_t * ) frame -> data [ 0 ] ;\n switch ( avctx -> codec_id ) {\n case AV_CODEC_ID_GSM : init_get_bits ( & gb , buf , buf_size * 8 ) ;\n if ( get_bits ( & gb , 4 ) != 0xd ) av_log ( avctx , AV_LOG_WARNING , \"Missing GSM magic!\\n\" ) ;\n res = gsm_decode_block ( avctx , samples , & gb ) ;\n if ( res < 0 ) return res ;\n break ;\n case AV_CODEC_ID_GSM_MS : res = ff_msgsm_decode_block ( avctx , samples , buf ) ;\n if ( res < 0 ) return res ;\n }\n * got_frame_ptr = 1 ;\n return avctx -> block_align ;\n }"}
{"idx": 8869, "target": 0, "func": "static struct config_filter_parser * const * config_filter_find_all ( struct config_filter_context * ctx , pool_t pool , const char * const * modules , const struct config_filter * filter , struct master_service_settings_output * output_r ) {\n ARRAY_TYPE ( config_filter_parsers ) matches ;\n ARRAY_TYPE ( const_string ) service_names ;\n unsigned int i ;\n i_zero ( output_r ) ;\n p_array_init ( & matches , pool , 8 ) ;\n p_array_init ( & service_names , pool , 8 ) ;\n for ( i = 0 ;\n ctx -> parsers [ i ] != NULL ;\n i ++ ) {\n const struct config_filter * mask = & ctx -> parsers [ i ] -> filter ;\n if ( ! config_filter_match_service ( mask , filter ) ) {\n if ( ! str_array_contains ( & service_names , mask -> service ) && have_changed_settings ( ctx -> parsers [ i ] , modules ) ) array_append ( & service_names , & mask -> service , 1 ) ;\n continue ;\n }\n if ( mask -> local_bits > 0 || mask -> local_name != NULL ) output_r -> service_uses_local = TRUE ;\n if ( mask -> remote_bits > 0 ) output_r -> service_uses_remote = TRUE ;\n if ( config_filter_match_rest ( mask , filter ) ) {\n if ( mask -> local_bits > 0 || mask -> local_name != NULL ) output_r -> used_local = TRUE ;\n if ( mask -> remote_bits > 0 ) output_r -> used_remote = TRUE ;\n array_append ( & matches , & ctx -> parsers [ i ] , 1 ) ;\n }\n }\n if ( filter -> service == NULL ) {\n array_append_zero ( & service_names ) ;\n output_r -> specific_services = array_idx ( & service_names , 0 ) ;\n }\n array_sort ( & matches , config_filter_parser_cmp ) ;\n array_append_zero ( & matches ) ;\n return array_idx ( & matches , 0 ) ;\n }"}
{"idx": 8870, "target": 0, "func": "void xsltFunctionNodeSet ( xmlXPathParserContextPtr ctxt , int nargs ) {\n if ( nargs != 1 ) {\n xsltTransformError ( xsltXPathGetTransformContext ( ctxt ) , NULL , NULL , \"node-set() : expects one result-tree arg\\n\" ) ;\n ctxt -> error = XPATH_INVALID_ARITY ;\n return ;\n }\n if ( ( ctxt -> value == NULL ) || ( ( ctxt -> value -> type != XPATH_XSLT_TREE ) && ( ctxt -> value -> type != XPATH_NODESET ) ) ) {\n xsltTransformError ( xsltXPathGetTransformContext ( ctxt ) , NULL , NULL , \"node-set() invalid arg expecting a result tree\\n\" ) ;\n ctxt -> error = XPATH_INVALID_TYPE ;\n return ;\n }\n if ( ctxt -> value -> type == XPATH_XSLT_TREE ) {\n ctxt -> value -> type = XPATH_NODESET ;\n }\n }"}
{"idx": 8871, "target": 0, "func": "void * xmlListSearch ( xmlListPtr l , void * data ) {\n xmlLinkPtr lk ;\n if ( l == NULL ) return ( NULL ) ;\n lk = xmlListLinkSearch ( l , data ) ;\n if ( lk ) return ( lk -> data ) ;\n return NULL ;\n }"}
{"idx": 8872, "target": 0, "func": "static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 8873, "target": 0, "func": "hb_face_t * hb_face_create_for_tables ( hb_reference_table_func_t reference_table_func , void * user_data , hb_destroy_func_t destroy ) {\n hb_face_t * face ;\n if ( ! reference_table_func || ! ( face = hb_object_create < hb_face_t > ( ) ) ) {\n if ( destroy ) destroy ( user_data ) ;\n return hb_face_get_empty ( ) ;\n }\n face -> reference_table_func = reference_table_func ;\n face -> user_data = user_data ;\n face -> destroy = destroy ;\n face -> upem = 0 ;\n face -> num_glyphs = ( unsigned int ) - 1 ;\n return face ;\n }"}
{"idx": 8874, "target": 0, "func": "xmlDeregisterNodeFunc * __xmlDeregisterNodeDefaultValue ( void ) {\n if ( IS_MAIN_THREAD ) return ( & xmlDeregisterNodeDefaultValue ) ;\n else return ( & xmlGetGlobalState ( ) -> xmlDeregisterNodeDefaultValue ) ;\n }"}
{"idx": 8875, "target": 0, "func": "void proto_register_wbxml ( void ) {\n module_t * wbxml_module ;\n static hf_register_info hf [ ] = {\n {\n & hf_wbxml_version , {\n \"Version\" , \"wbxml.version\" , FT_UINT8 , BASE_HEX | BASE_EXT_STRING , & vals_wbxml_versions_ext , 0x00 , \"WBXML Version\" , HFILL }\n }\n , {\n & hf_wbxml_public_id_known , {\n \"Public Identifier (known)\" , \"wbxml.public_id.known\" , FT_UINT32 , BASE_HEX | BASE_EXT_STRING , & vals_wbxml_public_ids_ext , 0x00 , \"WBXML Known Public Identifier (integer)\" , HFILL }\n }\n , {\n & hf_wbxml_public_id_literal , {\n \"Public Identifier (literal)\" , \"wbxml.public_id.literal\" , FT_STRING , BASE_NONE , NULL , 0x00 , \"WBXML Literal Public Identifier (text string)\" , HFILL }\n }\n , {\n & hf_wbxml_charset , {\n \"Character Set\" , \"wbxml.charset\" , FT_UINT32 , BASE_HEX | BASE_EXT_STRING , & wap_mib_enum_vals_character_sets_ext , 0x00 , \"WBXML Character Set\" , HFILL }\n }\n , }\n ;\n static gint * ett [ ] = {\n & ett_wbxml , & ett_wbxml_str_tbl , & ett_wbxml_content , }\n ;\n proto_wbxml = proto_register_protocol ( \"WAP Binary XML\" , \"WBXML\" , \"wbxml\" ) ;\n proto_register_field_array ( proto_wbxml , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n wbxml_module = prefs_register_protocol ( proto_wbxml , NULL ) ;\n prefs_register_bool_preference ( wbxml_module , \"skip_wbxml_token_mapping\" , \"Skip the mapping of WBXML tokens to media type tokens.\" , \"Enable this preference if you want to view the WBXML \" \"tokens without the representation in a media type \" \"(e.g., WML). Tokens will show up as Tag_0x12, \" \"attrStart_0x08 or attrValue_0x0B for example.\" , & skip_wbxml_token_mapping ) ;\n prefs_register_bool_preference ( wbxml_module , \"disable_wbxml_token_parsing\" , \"Disable the parsing of the WBXML tokens.\" , \"Enable this preference if you want to skip the \" \"parsing of the WBXML tokens that constitute the body \" \"of the WBXML document. Only the WBXML header will be \" \"dissected (and visualized) then.\" , & disable_wbxml_token_parsing ) ;\n register_dissector ( \"wbxml\" , dissect_wbxml , proto_wbxml ) ;\n register_dissector ( \"wbxml-uaprof\" , dissect_uaprof , proto_wbxml ) ;\n }"}
{"idx": 8876, "target": 0, "func": "static VP9_REFFRAME ref_frame_to_vp9_reframe ( vpx_ref_frame_type_t frame ) {\n switch ( frame ) {\n case VP8_LAST_FRAME : return VP9_LAST_FLAG ;\n case VP8_GOLD_FRAME : return VP9_GOLD_FLAG ;\n case VP8_ALTR_FRAME : return VP9_ALT_FLAG ;\n }\n assert ( 0 && \"Invalid Reference Frame\" ) ;\n return VP9_LAST_FLAG ;\n }"}
{"idx": 8877, "target": 0, "func": "static CURLcode formdata_add_filename ( const struct curl_httppost * file , struct FormData * * form , curl_off_t * size ) {\n CURLcode result = CURLE_OK ;\n char * filename = file -> showfilename ;\n char * filebasename = NULL ;\n char * filename_escaped = NULL ;\n if ( ! filename ) {\n filebasename = strippath ( file -> contents ) ;\n if ( ! filebasename ) return CURLE_OUT_OF_MEMORY ;\n filename = filebasename ;\n }\n if ( strchr ( filename , '\\\\' ) || strchr ( filename , '\"' ) ) {\n char * p0 , * p1 ;\n filename_escaped = malloc ( strlen ( filename ) * 2 + 1 ) ;\n if ( ! filename_escaped ) {\n Curl_safefree ( filebasename ) ;\n return CURLE_OUT_OF_MEMORY ;\n }\n p0 = filename_escaped ;\n p1 = filename ;\n while ( * p1 ) {\n if ( * p1 == '\\\\' || * p1 == '\"' ) * p0 ++ = '\\\\' ;\n * p0 ++ = * p1 ++ ;\n }\n * p0 = '\\0' ;\n filename = filename_escaped ;\n }\n result = AddFormDataf ( form , size , \";\n filename=\\\"%s\\\"\" , filename ) ;\n Curl_safefree ( filename_escaped ) ;\n Curl_safefree ( filebasename ) ;\n return result ;\n }"}
{"idx": 8878, "target": 0, "func": "int gdev_x_open ( gx_device_X * xdev ) {\n XSizeHints sizehints ;\n char * window_id ;\n XEvent event ;\n XVisualInfo xvinfo ;\n int nitems ;\n XtAppContext app_con ;\n Widget toplevel ;\n Display * dpy ;\n XColor xc ;\n int zero = 0 ;\n int xid_height = 0 , xid_width = 0 ;\n int code ;\n # ifdef DEBUG # ifdef have_Xdebug if ( gs_debug [ 'X' ] ) {\n extern int _Xdebug ;\n _Xdebug = 1 ;\n }\n # endif # endif if ( ! ( xdev -> dpy = XOpenDisplay ( ( char * ) NULL ) ) ) {\n char * dispname = getenv ( \"DISPLAY\" ) ;\n emprintf1 ( xdev -> memory , \"Cannot open X display `%s'.\\n\" , ( dispname == NULL ? \"(null)\" : dispname ) ) ;\n return_error ( gs_error_ioerror ) ;\n }\n xdev -> dest = 0 ;\n if ( ( window_id = getenv ( \"GHOSTVIEW\" ) ) ) {\n if ( ! ( xdev -> ghostview = sscanf ( window_id , \"%ld %ld\" , & ( xdev -> win ) , & ( xdev -> dest ) ) ) ) {\n emprintf ( xdev -> memory , \"Cannot get Window ID from ghostview.\\n\" ) ;\n return_error ( gs_error_ioerror ) ;\n }\n }\n if ( xdev -> pwin != ( Window ) None ) {\n XWindowAttributes attrib ;\n xdev -> win = xdev -> pwin ;\n if ( XGetWindowAttributes ( xdev -> dpy , xdev -> win , & attrib ) ) {\n xdev -> scr = attrib . screen ;\n xvinfo . visual = attrib . visual ;\n xdev -> cmap = attrib . colormap ;\n xid_width = attrib . width ;\n xid_height = attrib . height ;\n }\n else {\n xid_width = xid_height = 0 ;\n }\n }\n else if ( xdev -> ghostview ) {\n XWindowAttributes attrib ;\n Atom type ;\n int format ;\n unsigned long nitems , bytes_after ;\n char * buf ;\n Atom ghostview_atom = XInternAtom ( xdev -> dpy , \"GHOSTVIEW\" , False ) ;\n if ( XGetWindowAttributes ( xdev -> dpy , xdev -> win , & attrib ) ) {\n xdev -> scr = attrib . screen ;\n xvinfo . visual = attrib . visual ;\n xdev -> cmap = attrib . colormap ;\n xdev -> width = attrib . width ;\n xdev -> height = attrib . height ;\n }\n if ( XGetWindowProperty ( xdev -> dpy , xdev -> win , ghostview_atom , 0 , 256 , ( xdev -> dest != 0 ) , XA_STRING , & type , & format , & nitems , & bytes_after , ( unsigned char * * ) & buf ) == 0 && type == XA_STRING ) {\n int llx , lly , urx , ury ;\n int left_margin = 0 , bottom_margin = 0 ;\n int right_margin = 0 , top_margin = 0 ;\n int page_orientation ;\n float xppp , yppp ;\n nitems = sscanf ( buf , \"%ld %d %d %d %d %d %f %f %d %d %d %d\" , & ( xdev -> bpixmap ) , & page_orientation , & llx , & lly , & urx , & ury , & ( xdev -> x_pixels_per_inch ) , & ( xdev -> y_pixels_per_inch ) , & left_margin , & bottom_margin , & right_margin , & top_margin ) ;\n if ( ! ( nitems == 8 || nitems == 12 ) ) {\n emprintf ( xdev -> memory , \"Cannot get ghostview property.\\n\" ) ;\n return_error ( gs_error_ioerror ) ;\n }\n if ( xdev -> dest && xdev -> bpixmap ) {\n emprintf ( xdev -> memory , \"Both destination and backing pixmap specified.\\n\" ) ;\n return_error ( gs_error_rangecheck ) ;\n }\n if ( xdev -> dest ) {\n Window root ;\n int x , y ;\n unsigned int width , height ;\n unsigned int border_width , depth ;\n if ( XGetGeometry ( xdev -> dpy , xdev -> dest , & root , & x , & y , & width , & height , & border_width , & depth ) ) {\n xdev -> width = width ;\n xdev -> height = height ;\n }\n }\n xppp = xdev -> x_pixels_per_inch / 72.0 ;\n yppp = xdev -> y_pixels_per_inch / 72.0 ;\n switch ( page_orientation ) {\n case Portrait : xdev -> initial_matrix . xx = xppp ;\n xdev -> initial_matrix . xy = 0.0 ;\n xdev -> initial_matrix . yx = 0.0 ;\n xdev -> initial_matrix . yy = - yppp ;\n xdev -> initial_matrix . tx = - llx * xppp ;\n xdev -> initial_matrix . ty = ury * yppp ;\n break ;\n case Landscape : xdev -> initial_matrix . xx = 0.0 ;\n xdev -> initial_matrix . xy = yppp ;\n xdev -> initial_matrix . yx = xppp ;\n xdev -> initial_matrix . yy = 0.0 ;\n xdev -> initial_matrix . tx = - lly * xppp ;\n xdev -> initial_matrix . ty = - llx * yppp ;\n break ;\n case Upsidedown : xdev -> initial_matrix . xx = - xppp ;\n xdev -> initial_matrix . xy = 0.0 ;\n xdev -> initial_matrix . yx = 0.0 ;\n xdev -> initial_matrix . yy = yppp ;\n xdev -> initial_matrix . tx = urx * xppp ;\n xdev -> initial_matrix . ty = - lly * yppp ;\n break ;\n case Seascape : xdev -> initial_matrix . xx = 0.0 ;\n xdev -> initial_matrix . xy = - yppp ;\n xdev -> initial_matrix . yx = - xppp ;\n xdev -> initial_matrix . yy = 0.0 ;\n xdev -> initial_matrix . tx = ury * xppp ;\n xdev -> initial_matrix . ty = urx * yppp ;\n break ;\n }\n xdev -> ImagingBBox [ 0 ] = llx - left_margin ;\n xdev -> ImagingBBox [ 1 ] = lly - bottom_margin ;\n xdev -> ImagingBBox [ 2 ] = urx + right_margin ;\n xdev -> ImagingBBox [ 3 ] = ury + top_margin ;\n xdev -> ImagingBBox_set = true ;\n }\n else if ( xdev -> pwin == ( Window ) None ) {\n emprintf ( xdev -> memory , \"Cannot get ghostview property.\\n\" ) ;\n return_error ( gs_error_ioerror ) ;\n }\n }\n else {\n Screen * scr = DefaultScreenOfDisplay ( xdev -> dpy ) ;\n xdev -> scr = scr ;\n xvinfo . visual = DefaultVisualOfScreen ( scr ) ;\n xdev -> cmap = DefaultColormapOfScreen ( scr ) ;\n if ( xvinfo . visual -> class != TrueColor ) {\n int scrno = DefaultScreen ( xdev -> dpy ) ;\n if ( XMatchVisualInfo ( xdev -> dpy , scrno , 24 , TrueColor , & xvinfo ) || XMatchVisualInfo ( xdev -> dpy , scrno , 32 , TrueColor , & xvinfo ) || XMatchVisualInfo ( xdev -> dpy , scrno , 16 , TrueColor , & xvinfo ) || XMatchVisualInfo ( xdev -> dpy , scrno , 15 , TrueColor , & xvinfo ) ) {\n xdev -> cmap = XCreateColormap ( xdev -> dpy , DefaultRootWindow ( xdev -> dpy ) , xvinfo . visual , AllocNone ) ;\n }\n }\n }\n xvinfo . visualid = XVisualIDFromVisual ( xvinfo . visual ) ;\n xdev -> vinfo = XGetVisualInfo ( xdev -> dpy , VisualIDMask , & xvinfo , & nitems ) ;\n if ( xdev -> vinfo == NULL ) {\n emprintf ( xdev -> memory , \"Cannot get XVisualInfo.\\n\" ) ;\n return_error ( gs_error_ioerror ) ;\n }\n if ( ! x_error_handler . set ) {\n x_error_handler . orighandler = XSetErrorHandler ( x_catch_free_colors ) ;\n x_error_handler . set = True ;\n }\n XtToolkitInitialize ( ) ;\n app_con = XtCreateApplicationContext ( ) ;\n XtAppSetFallbackResources ( app_con , gdev_x_fallback_resources ) ;\n dpy = XtOpenDisplay ( app_con , NULL , \"ghostscript\" , \"Ghostscript\" , NULL , 0 , & zero , NULL ) ;\n toplevel = XtAppCreateShell ( NULL , \"Ghostscript\" , applicationShellWidgetClass , dpy , NULL , 0 ) ;\n XtGetApplicationResources ( toplevel , ( XtPointer ) xdev , gdev_x_resources , gdev_x_resource_count , NULL , 0 ) ;\n xc . pixel = xdev -> foreground ;\n XQueryColor ( xdev -> dpy , DefaultColormap ( xdev -> dpy , DefaultScreen ( xdev -> dpy ) ) , & xc ) ;\n XAllocColor ( xdev -> dpy , xdev -> cmap , & xc ) ;\n xdev -> foreground = xc . pixel ;\n xc . pixel = xdev -> background ;\n XQueryColor ( xdev -> dpy , DefaultColormap ( xdev -> dpy , DefaultScreen ( xdev -> dpy ) ) , & xc ) ;\n XAllocColor ( xdev -> dpy , xdev -> cmap , & xc ) ;\n xdev -> background = xc . pixel ;\n code = gdev_x_setup_colors ( xdev ) ;\n if ( code < 0 ) {\n XCloseDisplay ( xdev -> dpy ) ;\n return code ;\n }\n check_device_separable ( ( gx_device * ) xdev ) ;\n if ( ! xdev -> ghostview ) {\n XWMHints wm_hints ;\n XClassHint class_hint ;\n XSetWindowAttributes xswa ;\n gx_device * dev = ( gx_device * ) xdev ;\n if ( xdev -> x_pixels_per_inch == FAKE_RES || xdev -> y_pixels_per_inch == FAKE_RES ) {\n float xsize = ( float ) xdev -> width / xdev -> x_pixels_per_inch ;\n float ysize = ( float ) xdev -> height / xdev -> y_pixels_per_inch ;\n int workarea_width = WidthOfScreen ( xdev -> scr ) , workarea_height = HeightOfScreen ( xdev -> scr ) ;\n x_get_work_area ( xdev , & workarea_width , & workarea_height ) ;\n if ( xdev -> xResolution == 0.0 && xdev -> yResolution == 0.0 ) {\n float dpi , xdpi , ydpi ;\n xdpi = 25.4 * WidthOfScreen ( xdev -> scr ) / WidthMMOfScreen ( xdev -> scr ) ;\n ydpi = 25.4 * HeightOfScreen ( xdev -> scr ) / HeightMMOfScreen ( xdev -> scr ) ;\n dpi = min ( xdpi , ydpi ) ;\n if ( dpi < 30 ) dpi = 75 ;\n else {\n while ( xsize * dpi > WidthOfScreen ( xdev -> scr ) - 32 || ysize * dpi > HeightOfScreen ( xdev -> scr ) - 32 ) dpi *= 0.95 ;\n }\n xdev -> x_pixels_per_inch = dpi ;\n xdev -> y_pixels_per_inch = dpi ;\n }\n else {\n xdev -> x_pixels_per_inch = xdev -> xResolution ;\n xdev -> y_pixels_per_inch = xdev -> yResolution ;\n }\n if ( xdev -> width > workarea_width ) {\n xdev -> width = min ( xsize * xdev -> x_pixels_per_inch , workarea_width ) ;\n }\n if ( xdev -> height > workarea_height ) {\n xdev -> height = min ( ysize * xdev -> y_pixels_per_inch , workarea_height ) ;\n }\n xdev -> MediaSize [ 0 ] = ( float ) xdev -> width / xdev -> x_pixels_per_inch * 72 ;\n xdev -> MediaSize [ 1 ] = ( float ) xdev -> height / xdev -> y_pixels_per_inch * 72 ;\n }\n sizehints . x = 0 ;\n sizehints . y = 0 ;\n sizehints . width = xdev -> width ;\n sizehints . height = xdev -> height ;\n sizehints . flags = 0 ;\n if ( xdev -> geometry != NULL ) {\n char gstr [ 40 ] ;\n int bitmask ;\n gs_sprintf ( gstr , \"%dx%d+%d+%d\" , sizehints . width , sizehints . height , sizehints . x , sizehints . y ) ;\n bitmask = XWMGeometry ( xdev -> dpy , DefaultScreen ( xdev -> dpy ) , xdev -> geometry , gstr , xdev -> borderWidth , & sizehints , & sizehints . x , & sizehints . y , & sizehints . width , & sizehints . height , & sizehints . win_gravity ) ;\n if ( bitmask & ( XValue | YValue ) ) sizehints . flags |= USPosition ;\n }\n gx_default_get_initial_matrix ( dev , & ( xdev -> initial_matrix ) ) ;\n if ( xdev -> pwin != ( Window ) None && xid_width != 0 && xid_height != 0 ) {\n # if 0 xdev -> initial_matrix . xx = xdev -> initial_matrix . xx * ( float ) xid_width / ( float ) xdev -> width ;\n xdev -> initial_matrix . yy = xdev -> initial_matrix . yy * ( float ) xid_height / ( float ) xdev -> height ;\n # endif xdev -> width = xid_width ;\n xdev -> height = xid_height ;\n xdev -> initial_matrix . ty = xdev -> height ;\n }\n else {\n xswa . event_mask = ExposureMask ;\n xswa . background_pixel = xdev -> background ;\n xswa . border_pixel = xdev -> borderColor ;\n xswa . colormap = xdev -> cmap ;\n xdev -> win = XCreateWindow ( xdev -> dpy , RootWindowOfScreen ( xdev -> scr ) , sizehints . x , sizehints . y , xdev -> width , xdev -> height , xdev -> borderWidth , xdev -> vinfo -> depth , InputOutput , xdev -> vinfo -> visual , CWEventMask | CWBackPixel | CWBorderPixel | CWColormap , & xswa ) ;\n XStoreName ( xdev -> dpy , xdev -> win , \"ghostscript\" ) ;\n XSetWMNormalHints ( xdev -> dpy , xdev -> win , & sizehints ) ;\n wm_hints . flags = InputHint ;\n wm_hints . input = False ;\n XSetWMHints ( xdev -> dpy , xdev -> win , & wm_hints ) ;\n class_hint . res_name = ( char * ) \"ghostscript\" ;\n class_hint . res_class = ( char * ) \"Ghostscript\" ;\n XSetClassHint ( xdev -> dpy , xdev -> win , & class_hint ) ;\n }\n }\n XtDestroyWidget ( toplevel ) ;\n XtCloseDisplay ( dpy ) ;\n XtDestroyApplicationContext ( app_con ) ;\n xdev -> ht . pixmap = ( Pixmap ) 0 ;\n xdev -> ht . id = gx_no_bitmap_id ;\n ;\n xdev -> fill_style = FillSolid ;\n xdev -> function = GXcopy ;\n xdev -> fid = ( Font ) 0 ;\n xdev -> gc = XCreateGC ( xdev -> dpy , xdev -> win , 0 , ( XGCValues * ) NULL ) ;\n XSetFunction ( xdev -> dpy , xdev -> gc , GXcopy ) ;\n XSetLineAttributes ( xdev -> dpy , xdev -> gc , 0 , LineSolid , CapButt , JoinMiter ) ;\n gdev_x_clear_window ( xdev ) ;\n if ( ! xdev -> ghostview ) {\n XMapWindow ( xdev -> dpy , xdev -> win ) ;\n XSync ( xdev -> dpy , False ) ;\n if ( xdev -> pwin == ( Window ) None ) {\n XNextEvent ( xdev -> dpy , & event ) ;\n }\n XSetGraphicsExposures ( xdev -> dpy , xdev -> gc , False ) ;\n XSelectInput ( xdev -> dpy , xdev -> win , NoEventMask ) ;\n }\n else {\n XSetWindowAttributes attributes ;\n attributes . override_redirect = True ;\n xdev -> mwin = XCreateWindow ( xdev -> dpy , RootWindowOfScreen ( xdev -> scr ) , 0 , 0 , 1 , 1 , 0 , CopyFromParent , CopyFromParent , CopyFromParent , CWOverrideRedirect , & attributes ) ;\n xdev -> NEXT = XInternAtom ( xdev -> dpy , \"NEXT\" , False ) ;\n xdev -> PAGE = XInternAtom ( xdev -> dpy , \"PAGE\" , False ) ;\n xdev -> DONE = XInternAtom ( xdev -> dpy , \"DONE\" , False ) ;\n }\n xdev -> ht . no_pixmap = XCreatePixmap ( xdev -> dpy , xdev -> win , 1 , 1 , xdev -> vinfo -> depth ) ;\n return 0 ;\n }"}
{"idx": 8879, "target": 0, "func": "int test_setup ( void ) {\n static int x = 0 ;\n x ++ ;\n snprintf_func ( TEST_TARGET_FILE , TESTFILESIZE , \"/tmp/xdtest.target.%d\" , x ) ;\n snprintf_func ( TEST_SOURCE_FILE , TESTFILESIZE , \"/tmp/xdtest.source.%d\" , x ) ;\n snprintf_func ( TEST_DELTA_FILE , TESTFILESIZE , \"/tmp/xdtest.delta.%d\" , x ) ;\n snprintf_func ( TEST_RECON_FILE , TESTFILESIZE , \"/tmp/xdtest.recon.%d\" , x ) ;\n snprintf_func ( TEST_RECON2_FILE , TESTFILESIZE , \"/tmp/xdtest.recon2.%d\" , x ) ;\n snprintf_func ( TEST_COPY_FILE , TESTFILESIZE , \"/tmp/xdtest.copy.%d\" , x ) ;\n snprintf_func ( TEST_NOPERM_FILE , TESTFILESIZE , \"/tmp/xdtest.noperm.%d\" , x ) ;\n test_cleanup ( ) ;\n return 0 ;\n }"}
{"idx": 8880, "target": 0, "func": "static int record_eofer ( Gif_Reader * grr ) {\n return grr -> pos == grr -> length ;\n }"}
{"idx": 8881, "target": 1, "func": "static uint32_t nvic_readl ( nvic_state * s , uint32_t offset ) {\n uint32_t val ;\n int irq ;\n switch ( offset ) {\n case 4 : return ( s -> num_irq / 32 ) - 1 ;\n case 0x10 : val = s -> systick . control ;\n s -> systick . control &= ~ SYSTICK_COUNTFLAG ;\n return val ;\n case 0x14 : return s -> systick . reload ;\n case 0x18 : {\n int64_t t ;\n if ( ( s -> systick . control & SYSTICK_ENABLE ) == 0 ) return 0 ;\n t = qemu_get_clock_ns ( vm_clock ) ;\n if ( t >= s -> systick . tick ) return 0 ;\n val = ( ( s -> systick . tick - ( t + 1 ) ) / systick_scale ( s ) ) + 1 ;\n if ( val > s -> systick . reload ) val = 0 ;\n return val ;\n }\n case 0x1c : return 10000 ;\n case 0xd00 : return cpu_single_env -> cp15 . c0_cpuid ;\n case 0xd04 : val = s -> gic . running_irq [ 0 ] ;\n if ( val == 1023 ) {\n val = 0 ;\n }\n else if ( val >= 32 ) {\n val -= 16 ;\n }\n if ( s -> gic . running_irq [ 0 ] == 1023 || s -> gic . last_active [ s -> gic . running_irq [ 0 ] ] [ 0 ] == 1023 ) {\n val |= ( 1 << 11 ) ;\n }\n if ( s -> gic . current_pending [ 0 ] != 1023 ) val |= ( s -> gic . current_pending [ 0 ] << 12 ) ;\n for ( irq = 32 ;\n irq < s -> num_irq ;\n irq ++ ) {\n if ( s -> gic . irq_state [ irq ] . pending ) {\n val |= ( 1 << 22 ) ;\n break ;\n }\n }\n if ( s -> gic . irq_state [ ARMV7M_EXCP_SYSTICK ] . pending ) val |= ( 1 << 26 ) ;\n if ( s -> gic . irq_state [ ARMV7M_EXCP_PENDSV ] . pending ) val |= ( 1 << 28 ) ;\n if ( s -> gic . irq_state [ ARMV7M_EXCP_NMI ] . pending ) val |= ( 1 << 31 ) ;\n return val ;\n case 0xd08 : return cpu_single_env -> v7m . vecbase ;\n case 0xd0c : return 0xfa05000 ;\n case 0xd10 : return 0 ;\n case 0xd14 : return 0 ;\n case 0xd24 : val = 0 ;\n if ( s -> gic . irq_state [ ARMV7M_EXCP_MEM ] . active ) val |= ( 1 << 0 ) ;\n if ( s -> gic . irq_state [ ARMV7M_EXCP_BUS ] . active ) val |= ( 1 << 1 ) ;\n if ( s -> gic . irq_state [ ARMV7M_EXCP_USAGE ] . active ) val |= ( 1 << 3 ) ;\n if ( s -> gic . irq_state [ ARMV7M_EXCP_SVC ] . active ) val |= ( 1 << 7 ) ;\n if ( s -> gic . irq_state [ ARMV7M_EXCP_DEBUG ] . active ) val |= ( 1 << 8 ) ;\n if ( s -> gic . irq_state [ ARMV7M_EXCP_PENDSV ] . active ) val |= ( 1 << 10 ) ;\n if ( s -> gic . irq_state [ ARMV7M_EXCP_SYSTICK ] . active ) val |= ( 1 << 11 ) ;\n if ( s -> gic . irq_state [ ARMV7M_EXCP_USAGE ] . pending ) val |= ( 1 << 12 ) ;\n if ( s -> gic . irq_state [ ARMV7M_EXCP_MEM ] . pending ) val |= ( 1 << 13 ) ;\n if ( s -> gic . irq_state [ ARMV7M_EXCP_BUS ] . pending ) val |= ( 1 << 14 ) ;\n if ( s -> gic . irq_state [ ARMV7M_EXCP_SVC ] . pending ) val |= ( 1 << 15 ) ;\n if ( s -> gic . irq_state [ ARMV7M_EXCP_MEM ] . enabled ) val |= ( 1 << 16 ) ;\n if ( s -> gic . irq_state [ ARMV7M_EXCP_BUS ] . enabled ) val |= ( 1 << 17 ) ;\n if ( s -> gic . irq_state [ ARMV7M_EXCP_USAGE ] . enabled ) val |= ( 1 << 18 ) ;\n return val ;\n case 0xd28 : qemu_log_mask ( LOG_UNIMP , \"Configurable Fault Status unimplemented\\n\" ) ;\n return 0 ;\n case 0xd2c : case 0xd30 : case 0xd34 : case 0xd38 : case 0xd3c : qemu_log_mask ( LOG_UNIMP , \"Fault status registers unimplemented\\n\" ) ;\n return 0 ;\n case 0xd40 : return 0x00000030 ;\n case 0xd44 : return 0x00000200 ;\n case 0xd48 : return 0x00100000 ;\n case 0xd4c : return 0x00000000 ;\n case 0xd50 : return 0x00000030 ;\n case 0xd54 : return 0x00000000 ;\n case 0xd58 : return 0x00000000 ;\n case 0xd5c : return 0x00000000 ;\n case 0xd60 : return 0x01141110 ;\n case 0xd64 : return 0x02111000 ;\n case 0xd68 : return 0x21112231 ;\n case 0xd6c : return 0x01111110 ;\n case 0xd70 : return 0x01310102 ;\n default : qemu_log_mask ( LOG_GUEST_ERROR , \"NVIC: Bad read offset 0x%x\\n\" , offset ) ;\n return 0 ;\n }\n }"}
{"idx": 8882, "target": 0, "func": "static int dissect_h245_Avb_type ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_Avb_type , Avb_type_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 8883, "target": 0, "func": "void imcb_file_canceled ( struct im_connection * ic , file_transfer_t * file , char * reason ) {\n bee_t * bee = ic -> bee ;\n if ( file -> canceled ) {\n file -> canceled ( file , reason ) ;\n }\n if ( bee -> ui -> ft_close ) {\n bee -> ui -> ft_close ( ic , file ) ;\n }\n }"}
{"idx": 8884, "target": 0, "func": "static void print_pkt_side_data ( WriterContext * w , AVCodecParameters * par , const AVPacketSideData * side_data , int nb_side_data , SectionID id_data_list , SectionID id_data ) {\n int i ;\n writer_print_section_header ( w , id_data_list ) ;\n for ( i = 0 ;\n i < nb_side_data ;\n i ++ ) {\n const AVPacketSideData * sd = & side_data [ i ] ;\n const char * name = av_packet_side_data_name ( sd -> type ) ;\n writer_print_section_header ( w , id_data ) ;\n print_str ( \"side_data_type\" , name ? name : \"unknown\" ) ;\n if ( sd -> type == AV_PKT_DATA_DISPLAYMATRIX && sd -> size >= 9 * 4 ) {\n writer_print_integers ( w , \"displaymatrix\" , sd -> data , 9 , \" %11d\" , 3 , 4 , 1 ) ;\n print_int ( \"rotation\" , av_display_rotation_get ( ( int32_t * ) sd -> data ) ) ;\n }\n else if ( sd -> type == AV_PKT_DATA_STEREO3D ) {\n const AVStereo3D * stereo = ( AVStereo3D * ) sd -> data ;\n print_str ( \"type\" , av_stereo3d_type_name ( stereo -> type ) ) ;\n print_int ( \"inverted\" , ! ! ( stereo -> flags & AV_STEREO3D_FLAG_INVERT ) ) ;\n }\n else if ( sd -> type == AV_PKT_DATA_SPHERICAL ) {\n const AVSphericalMapping * spherical = ( AVSphericalMapping * ) sd -> data ;\n print_str ( \"projection\" , av_spherical_projection_name ( spherical -> projection ) ) ;\n if ( spherical -> projection == AV_SPHERICAL_CUBEMAP ) {\n print_int ( \"padding\" , spherical -> padding ) ;\n }\n else if ( spherical -> projection == AV_SPHERICAL_EQUIRECTANGULAR_TILE ) {\n size_t l , t , r , b ;\n av_spherical_tile_bounds ( spherical , par -> width , par -> height , & l , & t , & r , & b ) ;\n print_int ( \"bound_left\" , l ) ;\n print_int ( \"bound_top\" , t ) ;\n print_int ( \"bound_right\" , r ) ;\n print_int ( \"bound_bottom\" , b ) ;\n }\n print_int ( \"yaw\" , ( double ) spherical -> yaw / ( 1 << 16 ) ) ;\n print_int ( \"pitch\" , ( double ) spherical -> pitch / ( 1 << 16 ) ) ;\n print_int ( \"roll\" , ( double ) spherical -> roll / ( 1 << 16 ) ) ;\n }\n else if ( sd -> type == AV_PKT_DATA_SKIP_SAMPLES && sd -> size == 10 ) {\n print_int ( \"skip_samples\" , AV_RL32 ( sd -> data ) ) ;\n print_int ( \"discard_padding\" , AV_RL32 ( sd -> data + 4 ) ) ;\n print_int ( \"skip_reason\" , AV_RL8 ( sd -> data + 8 ) ) ;\n print_int ( \"discard_reason\" , AV_RL8 ( sd -> data + 9 ) ) ;\n }\n else if ( sd -> type == AV_PKT_DATA_MASTERING_DISPLAY_METADATA ) {\n AVMasteringDisplayMetadata * metadata = ( AVMasteringDisplayMetadata * ) sd -> data ;\n if ( metadata -> has_primaries ) {\n print_q ( \"red_x\" , metadata -> display_primaries [ 0 ] [ 0 ] , '/' ) ;\n print_q ( \"red_y\" , metadata -> display_primaries [ 0 ] [ 1 ] , '/' ) ;\n print_q ( \"green_x\" , metadata -> display_primaries [ 1 ] [ 0 ] , '/' ) ;\n print_q ( \"green_y\" , metadata -> display_primaries [ 1 ] [ 1 ] , '/' ) ;\n print_q ( \"blue_x\" , metadata -> display_primaries [ 2 ] [ 0 ] , '/' ) ;\n print_q ( \"blue_y\" , metadata -> display_primaries [ 2 ] [ 1 ] , '/' ) ;\n print_q ( \"white_point_x\" , metadata -> white_point [ 0 ] , '/' ) ;\n print_q ( \"white_point_y\" , metadata -> white_point [ 1 ] , '/' ) ;\n }\n if ( metadata -> has_luminance ) {\n print_q ( \"min_luminance\" , metadata -> min_luminance , '/' ) ;\n print_q ( \"max_luminance\" , metadata -> max_luminance , '/' ) ;\n }\n }\n else if ( sd -> type == AV_PKT_DATA_CONTENT_LIGHT_LEVEL ) {\n AVContentLightMetadata * metadata = ( AVContentLightMetadata * ) sd -> data ;\n print_int ( \"max_content\" , metadata -> MaxCLL ) ;\n print_int ( \"max_average\" , metadata -> MaxFALL ) ;\n }\n writer_print_section_footer ( w ) ;\n }\n writer_print_section_footer ( w ) ;\n }"}
{"idx": 8885, "target": 0, "func": "void vp9_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint8_t * dst , ptrdiff_t stride , const uint8_t * above , const uint8_t * left ) {\n type ## _predictor ( dst , stride , size , above , left ) ;\n }\n # if CONFIG_VP9_HIGHBITDEPTH # define intra_pred_high_sized ( type , size ) void vp9_high_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint16_t * dst , ptrdiff_t stride , const uint16_t * above , const uint16_t * left , int bd ) {\n high_ ## type ## _predictor ( dst , stride , size , above , left , bd ) ;\n }\n # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) intra_pred_high_sized ( type , 4 ) intra_pred_high_sized ( type , 8 ) intra_pred_high_sized ( type , 16 ) intra_pred_high_sized ( type , 32 ) # else # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) # endif # if CONFIG_VP9_HIGHBITDEPTH static INLINE void high_d207_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) above ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) {\n dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n }\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) {\n dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n }\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n }\n static INLINE void high_d63_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) {\n dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n }\n dst += stride ;\n }\n }\n static INLINE void high_d45_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) {\n dst [ c ] = r + c + 2 < bs * 2 ? ROUND_POWER_OF_TWO ( above [ r + c ] + above [ r + c + 1 ] * 2 + above [ r + c + 2 ] , 2 ) : above [ bs * 2 - 1 ] ;\n }\n dst += stride ;\n }\n }\n static INLINE void high_d117_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] , 1 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 3 ;\n r < bs ;\n ++ r ) dst [ ( r - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ r - 3 ] + left [ r - 2 ] * 2 + left [ r - 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - 2 * stride + c - 1 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_d135_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - stride + c - 1 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_d153_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] , 1 ) ;\n for ( r = 1 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 1 ] + left [ r ] , 1 ) ;\n dst ++ ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] * 2 + above [ c + 1 ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = dst [ - stride + c - 2 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_v_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memcpy ( dst , above , bs * sizeof ( uint16_t ) ) ;\n dst += stride ;\n }\n }\n static INLINE void high_h_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) above ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , left [ r ] , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_tm_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n int ytop_left = above [ - 1 ] ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = clip_pixel_high ( left [ r ] + above [ c ] - ytop_left , bd ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_128_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) above ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , 128 << ( bd - 8 ) , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_left_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) above ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += left [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_top_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) left ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += above [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n const int count = 2 * bs ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) {\n sum += above [ i ] ;\n sum += left [ i ] ;\n }\n expected_dc = ( sum + ( count >> 1 ) ) / count ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n # endif static INLINE void d207_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n intra_pred_allsizes ( d207 ) static INLINE void d63_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d63 ) static INLINE void d45_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r + c + 2 < bs * 2 ? ROUND_POWER_OF_TWO ( above [ r + c ] + above [ r + c + 1 ] * 2 + above [ r + c + 2 ] , 2 ) : above [ bs * 2 - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d45 ) static INLINE void d117_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] , 1 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 3 ;\n r < bs ;\n ++ r ) dst [ ( r - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ r - 3 ] + left [ r - 2 ] * 2 + left [ r - 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - 2 * stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d117 ) static INLINE void d135_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d135 ) static INLINE void d153_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] , 1 ) ;\n for ( r = 1 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 1 ] + left [ r ] , 1 ) ;\n dst ++ ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] * 2 + above [ c + 1 ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = dst [ - stride + c - 2 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d153 ) static INLINE void v_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memcpy ( dst , above , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( v ) static INLINE void h_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset ( dst , left [ r ] , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( h )"}
{"idx": 8886, "target": 0, "func": "static int mainwindow_shrink ( MAIN_WINDOW_REC * window , int count , int resize_lower ) {\n if ( MAIN_WINDOW_TEXT_HEIGHT ( window ) - count < WINDOW_MIN_SIZE ) return FALSE ;\n if ( ! resize_lower || ! try_grow_lower ( window , count ) ) {\n if ( ! try_grow_upper ( window , count ) ) {\n if ( resize_lower || ! try_grow_lower ( window , count ) ) return FALSE ;\n }\n }\n return TRUE ;\n }"}
{"idx": 8887, "target": 0, "func": "int event_base_priority_init ( struct event_base * base , int npriorities ) {\n int i ;\n if ( base -> event_count_active ) return ( - 1 ) ;\n if ( npriorities == base -> nactivequeues ) return ( 0 ) ;\n if ( base -> nactivequeues ) {\n for ( i = 0 ;\n i < base -> nactivequeues ;\n ++ i ) {\n free ( base -> activequeues [ i ] ) ;\n }\n free ( base -> activequeues ) ;\n }\n base -> nactivequeues = npriorities ;\n base -> activequeues = ( struct event_list * * ) calloc ( base -> nactivequeues , sizeof ( struct event_list * ) ) ;\n if ( base -> activequeues == NULL ) event_err ( 1 , \"%s: calloc\" , __func__ ) ;\n for ( i = 0 ;\n i < base -> nactivequeues ;\n ++ i ) {\n base -> activequeues [ i ] = malloc ( sizeof ( struct event_list ) ) ;\n if ( base -> activequeues [ i ] == NULL ) event_err ( 1 , \"%s: malloc\" , __func__ ) ;\n TAILQ_INIT ( base -> activequeues [ i ] ) ;\n }\n return ( 0 ) ;\n }"}
{"idx": 8888, "target": 0, "func": "static void gst_asf_demux_add_stream_headers_to_caps ( GstASFDemux * demux , GstBuffer * buffer , GstStructure * structure ) {\n GValue arr_val = G_VALUE_INIT ;\n GValue buf_val = G_VALUE_INIT ;\n g_value_init ( & arr_val , GST_TYPE_ARRAY ) ;\n g_value_init ( & buf_val , GST_TYPE_BUFFER ) ;\n gst_value_set_buffer ( & buf_val , buffer ) ;\n gst_value_array_append_and_take_value ( & arr_val , & buf_val ) ;\n gst_structure_take_value ( structure , \"streamheader\" , & arr_val ) ;\n }"}
{"idx": 8889, "target": 0, "func": "clump_t * clump_splay_walk_init ( clump_splay_walker * sw , const gs_ref_memory_t * mem ) {\n clump_t * cp = mem -> root ;\n if ( cp ) {\n SANITY_CHECK ( cp ) ;\n sw -> from = SPLAY_FROM_LEFT ;\n while ( cp -> left ) {\n cp = cp -> left ;\n }\n }\n sw -> cp = cp ;\n sw -> end = NULL ;\n return cp ;\n }"}
{"idx": 8890, "target": 1, "func": "static int dissect_h225_InfoRequestNakReason ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 690 \"./asn1/h225/h225.cnf\" gint32 value ;\n h225_packet_info * h225_pi ;\n h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_InfoRequestNakReason , InfoRequestNakReason_choice , & value ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> reason = value ;\n }\n return offset ;\n }"}
{"idx": 8891, "target": 1, "func": "static void vacuum_all_databases ( vacuumingOptions * vacopts , bool analyze_in_stages , const char * maintenance_db , const char * host , const char * port , const char * username , enum trivalue prompt_password , int concurrentCons , const char * progname , bool echo , bool quiet ) {\n PGconn * conn ;\n PGresult * result ;\n int stage ;\n int i ;\n conn = connectMaintenanceDatabase ( maintenance_db , host , port , username , prompt_password , progname ) ;\n result = executeQuery ( conn , \"SELECT datname FROM pg_database WHERE datallowconn ORDER BY 1;\n\" , progname , echo ) ;\n PQfinish ( conn ) ;\n if ( analyze_in_stages ) {\n for ( stage = 0 ;\n stage < ANALYZE_NUM_STAGES ;\n stage ++ ) {\n for ( i = 0 ;\n i < PQntuples ( result ) ;\n i ++ ) {\n const char * dbname ;\n dbname = PQgetvalue ( result , i , 0 ) ;\n vacuum_one_database ( dbname , vacopts , stage , NULL , host , port , username , prompt_password , concurrentCons , progname , echo , quiet ) ;\n }\n }\n }\n else {\n for ( i = 0 ;\n i < PQntuples ( result ) ;\n i ++ ) {\n const char * dbname ;\n dbname = PQgetvalue ( result , i , 0 ) ;\n vacuum_one_database ( dbname , vacopts , ANALYZE_NO_STAGE , NULL , host , port , username , prompt_password , concurrentCons , progname , echo , quiet ) ;\n }\n }\n PQclear ( result ) ;\n }"}
{"idx": 8892, "target": 0, "func": "static void dist_block ( int plane , int block , TX_SIZE tx_size , struct rdcost_block_args * args ) {\n const int ss_txfrm_size = tx_size << 1 ;\n MACROBLOCK * const x = args -> x ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n const struct macroblock_plane * const p = & x -> plane [ plane ] ;\n const struct macroblockd_plane * const pd = & xd -> plane [ plane ] ;\n int64_t this_sse ;\n int shift = tx_size == TX_32X32 ? 0 : 2 ;\n tran_low_t * const coeff = BLOCK_OFFSET ( p -> coeff , block ) ;\n tran_low_t * const dqcoeff = BLOCK_OFFSET ( pd -> dqcoeff , block ) ;\n args -> dist = vp9_block_error ( coeff , dqcoeff , 16 << ss_txfrm_size , & this_sse ) >> shift ;\n args -> sse = this_sse >> shift ;\n if ( x -> skip_encode && ! is_inter_block ( & xd -> mi [ 0 ] . src_mi -> mbmi ) ) {\n int64_t p = ( pd -> dequant [ 1 ] * pd -> dequant [ 1 ] * ( 1 << ss_txfrm_size ) ) >> ( shift + 2 ) ;\n args -> dist += ( p >> 4 ) ;\n args -> sse += p ;\n }\n }"}
{"idx": 8893, "target": 0, "func": "static void compact_print_int ( WriterContext * wctx , const char * key , long long int value ) {\n CompactContext * compact = wctx -> priv ;\n if ( wctx -> nb_item [ wctx -> level ] ) printf ( \"%c\" , compact -> item_sep ) ;\n if ( ! compact -> nokey ) printf ( \"%s%s=\" , wctx -> section_pbuf [ wctx -> level ] . str , key ) ;\n printf ( \"%lld\" , value ) ;\n }"}
{"idx": 8894, "target": 1, "func": "static int dissect_CPMSetBindings ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * parent_tree , gboolean in , void * private_data ) {\n gint offset = 16 ;\n struct CPMSetBindingsIn request ;\n col_append_str ( pinfo -> cinfo , COL_INFO , \"SetBindings\" ) ;\n if ( in ) {\n struct mswsp_ct * ct = NULL ;\n struct message_data * data = NULL ;\n proto_item * ti ;\n proto_tree * tree , * pad_tree ;\n guint32 size , num , n ;\n gint64 column_size ;\n ti = proto_tree_add_item ( parent_tree , hf_mswsp_msg , tvb , offset , - 1 , ENC_NA ) ;\n tree = proto_item_add_subtree ( ti , ett_mswsp_msg ) ;\n proto_item_set_text ( ti , \"SetBindingsIn\" ) ;\n pad_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_mswsp_pad , & ti , \"Padding\" ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmsetbinding_hcursor , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n request . hcursor = tvb_get_letohl ( tvb , offset ) ;\n offset += 4 ;\n request . brow = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmsetbinding_cbrow , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n size = tvb_get_letohl ( tvb , offset ) ;\n request . bbindingdesc = size ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmsetbinding_desc , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n request . dummy = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmsetbinding_dummy , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n num = tvb_get_letohl ( tvb , offset ) ;\n request . ccolumns = num ;\n ti = proto_tree_add_item ( tree , hf_mswsp_msg_cpmsetbinding_ccolumns , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmsetbinding_acolumns , tvb , offset , size - 4 , ENC_NA ) ;\n column_size = num * MIN_CTABLECOL_SIZE ;\n if ( column_size > tvb_reported_length_remaining ( tvb , offset ) ) {\n expert_add_info ( pinfo , ti , & ei_mswsp_msg_cpmsetbinding_ccolumns ) ;\n return tvb_reported_length ( tvb ) ;\n }\n ct = get_create_converstation_data ( pinfo ) ;\n request . acolumns = ( struct CTableColumn * ) wmem_alloc ( wmem_file_scope ( ) , sizeof ( struct CTableColumn ) * num ) ;\n for ( n = 0 ;\n n < num ;\n n ++ ) {\n offset = parse_padding ( tvb , offset , 4 , pad_tree , \"padding_aColumns[%u]\" , n ) ;\n offset = parse_CTableColumn ( tvb , offset , tree , pad_tree , & request . acolumns [ n ] , \"aColumns[%u]\" , n ) ;\n }\n data = find_or_create_message_data ( ct , pinfo , 0xD0 , in , private_data ) ;\n if ( data ) {\n data -> content . bindingsin = request ;\n }\n }\n else {\n }\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 8895, "target": 0, "func": "bool get_typisdefined ( Oid typid ) {\n HeapTuple tp ;\n tp = SearchSysCache1 ( TYPEOID , ObjectIdGetDatum ( typid ) ) ;\n if ( HeapTupleIsValid ( tp ) ) {\n Form_pg_type typtup = ( Form_pg_type ) GETSTRUCT ( tp ) ;\n bool result ;\n result = typtup -> typisdefined ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }\n else return false ;\n }"}
{"idx": 8896, "target": 0, "func": "static char * search_make_new ( const struct search_state * const state , int n , const char * const base_name ) {\n const int base_len = strlen ( base_name ) ;\n const char need_to_append_dot = base_name [ base_len - 1 ] == '.' ? 0 : 1 ;\n struct search_domain * dom ;\n for ( dom = state -> head ;\n dom ;\n dom = dom -> next ) {\n if ( ! n -- ) {\n const u8 * const postfix = ( ( u8 * ) dom ) + sizeof ( struct search_domain ) ;\n const int postfix_len = dom -> len ;\n char * const newname = ( char * ) malloc ( base_len + need_to_append_dot + postfix_len + 1 ) ;\n if ( ! newname ) return NULL ;\n memcpy ( newname , base_name , base_len ) ;\n if ( need_to_append_dot ) newname [ base_len ] = '.' ;\n memcpy ( newname + base_len + need_to_append_dot , postfix , postfix_len ) ;\n newname [ base_len + need_to_append_dot + postfix_len ] = 0 ;\n return newname ;\n }\n }\n abort ( ) ;\n return NULL ;\n }"}
{"idx": 8897, "target": 0, "func": "static int selinux_tun_dev_create ( void ) {\n u32 sid = current_sid ( ) ;\n return avc_has_perm ( sid , sid , SECCLASS_TUN_SOCKET , TUN_SOCKET__CREATE , NULL ) ;\n }"}
{"idx": 8898, "target": 0, "func": "static int com_notee ( String * buffer __attribute__ ( ( unused ) ) , char * line __attribute__ ( ( unused ) ) ) {\n if ( opt_outfile ) end_tee ( ) ;\n tee_fprintf ( stdout , \"Outfile disabled.\\n\" ) ;\n return 0 ;\n }"}
{"idx": 8899, "target": 0, "func": "static size_t vmxnet_tx_pkt_fetch_fragment ( struct VmxnetTxPkt * pkt , int * src_idx , size_t * src_offset , struct iovec * dst , int * dst_idx ) {\n size_t fetched = 0 ;\n struct iovec * src = pkt -> vec ;\n * dst_idx = VMXNET_TX_PKT_FRAGMENT_HEADER_NUM ;\n while ( fetched < pkt -> virt_hdr . gso_size ) {\n if ( * dst_idx == VMXNET_MAX_FRAG_SG_LIST ) {\n break ;\n }\n if ( * src_idx == ( pkt -> payload_frags + VMXNET_TX_PKT_PL_START_FRAG ) ) {\n break ;\n }\n dst [ * dst_idx ] . iov_base = src [ * src_idx ] . iov_base + * src_offset ;\n dst [ * dst_idx ] . iov_len = MIN ( src [ * src_idx ] . iov_len - * src_offset , pkt -> virt_hdr . gso_size - fetched ) ;\n * src_offset += dst [ * dst_idx ] . iov_len ;\n fetched += dst [ * dst_idx ] . iov_len ;\n if ( * src_offset == src [ * src_idx ] . iov_len ) {\n * src_offset = 0 ;\n ( * src_idx ) ++ ;\n }\n ( * dst_idx ) ++ ;\n }\n return fetched ;\n }"}
{"idx": 8900, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( BluetoothChooserBrowserTest , InvokeDialog_NoDevicesModal ) {\n set_status ( FakeBluetoothChooserController : : BluetoothStatus : : IDLE ) ;\n RunDialog ( ) ;\n }"}
{"idx": 8901, "target": 0, "func": "vpx_image_t * vpx_img_wrap ( vpx_image_t * img , vpx_img_fmt_t fmt , unsigned int d_w , unsigned int d_h , unsigned int stride_align , unsigned char * img_data ) {\n return img_alloc_helper ( img , fmt , d_w , d_h , 1 , stride_align , img_data ) ;\n }"}
{"idx": 8902, "target": 0, "func": "static int rtp_packetize_ac3 ( sout_stream_id_sys_t * id , block_t * in ) {\n int i_max = rtp_mtu ( id ) - 2 ;\n int i_count = ( in -> i_buffer + i_max - 1 ) / i_max ;\n uint8_t * p_data = in -> p_buffer ;\n int i_data = in -> i_buffer ;\n int i ;\n for ( i = 0 ;\n i < i_count ;\n i ++ ) {\n int i_payload = __MIN ( i_max , i_data ) ;\n block_t * out = block_Alloc ( 14 + i_payload ) ;\n rtp_packetize_common ( id , out , ( i == i_count - 1 ) ? 1 : 0 , in -> i_pts ) ;\n out -> p_buffer [ 12 ] = 1 ;\n out -> p_buffer [ 13 ] = 0x00 ;\n memcpy ( & out -> p_buffer [ 14 ] , p_data , i_payload ) ;\n out -> i_dts = in -> i_dts + i * in -> i_length / i_count ;\n out -> i_length = in -> i_length / i_count ;\n rtp_packetize_send ( id , out ) ;\n p_data += i_payload ;\n i_data -= i_payload ;\n }\n block_Release ( in ) ;\n return VLC_SUCCESS ;\n }"}
{"idx": 8903, "target": 0, "func": "static gint dissect_usb_ms_control ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n gboolean is_request ;\n usb_conv_info_t * usb_conv_info ;\n usb_trans_info_t * usb_trans_info ;\n int offset = 0 ;\n usb_setup_dissector dissector = NULL ;\n const usb_setup_dissector_table_t * tmp ;\n if ( data == NULL || ( ( usb_conv_info_t * ) data ) -> usb_trans_info == NULL ) return 0 ;\n usb_conv_info = ( usb_conv_info_t * ) data ;\n usb_trans_info = usb_conv_info -> usb_trans_info ;\n is_request = ( pinfo -> srcport == NO_ENDPOINT ) ;\n for ( tmp = setup_dissectors ;\n tmp -> dissector ;\n tmp ++ ) {\n if ( tmp -> request == usb_trans_info -> setup . request ) {\n dissector = tmp -> dissector ;\n break ;\n }\n }\n if ( ! dissector ) {\n return 0 ;\n }\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"USBMS\" ) ;\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"%s %s\" , val_to_str ( usb_trans_info -> setup . request , setup_request_names_vals , \"Unknown type %x\" ) , is_request ? \"Request\" : \"Response\" ) ;\n if ( is_request ) {\n proto_tree_add_item ( tree , hf_usb_ms_request , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 1 ;\n }\n dissector ( pinfo , tree , tvb , offset , is_request , usb_trans_info , usb_conv_info ) ;\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 8904, "target": 0, "func": "void TIFFCvtIEEEDoubleToNative ( TIFF * tif , u_int n , double * f ) {\n double_t * fp = ( double_t * ) f ;\n while ( n -- > 0 ) {\n IEEEDOUBLE2NATIVE ( fp ) ;\n fp ++ ;\n }\n }"}
{"idx": 8905, "target": 0, "func": "void StartTransaction ( Archive * AHX ) {\n ArchiveHandle * AH = ( ArchiveHandle * ) AHX ;\n ExecuteSqlCommand ( AH , \"BEGIN\" , \"could not start database transaction\" ) ;\n }"}
{"idx": 8906, "target": 0, "func": "TEST_F ( ExternalProtocolHandlerTest , DISABLED_TestLaunchSchemeUnknownChromeNotDefault ) {\n DoTest ( ExternalProtocolHandler : : UNKNOWN , shell_integration : : NOT_DEFAULT , Action : : PROMPT ) ;\n }"}
{"idx": 8907, "target": 0, "func": "static int cinepak_decode ( CinepakContext * s ) {\n const uint8_t * eod = ( s -> data + s -> size ) ;\n int i , result , strip_size , frame_flags , num_strips ;\n int y0 = 0 ;\n int encoded_buf_size ;\n if ( s -> size < 10 ) return AVERROR_INVALIDDATA ;\n frame_flags = s -> data [ 0 ] ;\n num_strips = AV_RB16 ( & s -> data [ 8 ] ) ;\n encoded_buf_size = AV_RB24 ( & s -> data [ 1 ] ) ;\n if ( s -> sega_film_skip_bytes == - 1 ) {\n if ( ! encoded_buf_size ) {\n av_log_ask_for_sample ( s -> avctx , \"encoded_buf_size is 0\" ) ;\n return AVERROR_PATCHWELCOME ;\n }\n if ( encoded_buf_size != s -> size && ( s -> size % encoded_buf_size ) != 0 ) {\n if ( s -> size >= 16 && ( s -> data [ 10 ] == 0xFE ) && ( s -> data [ 11 ] == 0x00 ) && ( s -> data [ 12 ] == 0x00 ) && ( s -> data [ 13 ] == 0x06 ) && ( s -> data [ 14 ] == 0x00 ) && ( s -> data [ 15 ] == 0x00 ) ) s -> sega_film_skip_bytes = 6 ;\n else s -> sega_film_skip_bytes = 2 ;\n }\n else s -> sega_film_skip_bytes = 0 ;\n }\n s -> data += 10 + s -> sega_film_skip_bytes ;\n num_strips = FFMIN ( num_strips , MAX_STRIPS ) ;\n for ( i = 0 ;\n i < num_strips ;\n i ++ ) {\n if ( ( s -> data + 12 ) > eod ) return AVERROR_INVALIDDATA ;\n s -> strips [ i ] . id = s -> data [ 0 ] ;\n s -> strips [ i ] . y1 = y0 ;\n s -> strips [ i ] . x1 = 0 ;\n s -> strips [ i ] . y2 = y0 + AV_RB16 ( & s -> data [ 8 ] ) ;\n s -> strips [ i ] . x2 = s -> avctx -> width ;\n strip_size = AV_RB24 ( & s -> data [ 1 ] ) - 12 ;\n if ( strip_size < 0 ) return AVERROR_INVALIDDATA ;\n s -> data += 12 ;\n strip_size = ( ( s -> data + strip_size ) > eod ) ? ( eod - s -> data ) : strip_size ;\n if ( ( i > 0 ) && ! ( frame_flags & 0x01 ) ) {\n memcpy ( s -> strips [ i ] . v4_codebook , s -> strips [ i - 1 ] . v4_codebook , sizeof ( s -> strips [ i ] . v4_codebook ) ) ;\n memcpy ( s -> strips [ i ] . v1_codebook , s -> strips [ i - 1 ] . v1_codebook , sizeof ( s -> strips [ i ] . v1_codebook ) ) ;\n }\n result = cinepak_decode_strip ( s , & s -> strips [ i ] , s -> data , strip_size ) ;\n if ( result != 0 ) return result ;\n s -> data += strip_size ;\n y0 = s -> strips [ i ] . y2 ;\n }\n return 0 ;\n }"}
{"idx": 8908, "target": 0, "func": "static MV mi_mv_pred_q4 ( const MODE_INFO * mi , int idx ) {\n MV res = {\n round_mv_comp_q4 ( mi -> bmi [ 0 ] . as_mv [ idx ] . as_mv . row + mi -> bmi [ 1 ] . as_mv [ idx ] . as_mv . row + mi -> bmi [ 2 ] . as_mv [ idx ] . as_mv . row + mi -> bmi [ 3 ] . as_mv [ idx ] . as_mv . row ) , round_mv_comp_q4 ( mi -> bmi [ 0 ] . as_mv [ idx ] . as_mv . col + mi -> bmi [ 1 ] . as_mv [ idx ] . as_mv . col + mi -> bmi [ 2 ] . as_mv [ idx ] . as_mv . col + mi -> bmi [ 3 ] . as_mv [ idx ] . as_mv . col ) }\n ;\n return res ;\n }"}
{"idx": 8909, "target": 0, "func": "void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 ) sadMxN ( 16 , 32 ) sadMxNx4D ( 16 , 32 ) sadMxN ( 16 , 16 ) sadMxNxK ( 16 , 16 , 3 ) sadMxNxK ( 16 , 16 , 8 ) sadMxNx4D ( 16 , 16 )"}
{"idx": 8910, "target": 1, "func": "static int selinux_setprocattr ( struct task_struct * p , char * name , void * value , size_t size ) {\n struct task_security_struct * tsec ;\n struct cred * new ;\n u32 sid = 0 , ptsid ;\n int error ;\n char * str = value ;\n if ( current != p ) {\n return - EACCES ;\n }\n if ( ! strcmp ( name , \"exec\" ) ) error = current_has_perm ( p , PROCESS__SETEXEC ) ;\n else if ( ! strcmp ( name , \"fscreate\" ) ) error = current_has_perm ( p , PROCESS__SETFSCREATE ) ;\n else if ( ! strcmp ( name , \"keycreate\" ) ) error = current_has_perm ( p , PROCESS__SETKEYCREATE ) ;\n else if ( ! strcmp ( name , \"sockcreate\" ) ) error = current_has_perm ( p , PROCESS__SETSOCKCREATE ) ;\n else if ( ! strcmp ( name , \"current\" ) ) error = current_has_perm ( p , PROCESS__SETCURRENT ) ;\n else error = - EINVAL ;\n if ( error ) return error ;\n if ( size && str [ 1 ] && str [ 1 ] != '\\n' ) {\n if ( str [ size - 1 ] == '\\n' ) {\n str [ size - 1 ] = 0 ;\n size -- ;\n }\n error = security_context_to_sid ( value , size , & sid , GFP_KERNEL ) ;\n if ( error == - EINVAL && ! strcmp ( name , \"fscreate\" ) ) {\n if ( ! capable ( CAP_MAC_ADMIN ) ) {\n struct audit_buffer * ab ;\n size_t audit_size ;\n if ( str [ size - 1 ] == '\\0' ) audit_size = size - 1 ;\n else audit_size = size ;\n ab = audit_log_start ( current -> audit_context , GFP_ATOMIC , AUDIT_SELINUX_ERR ) ;\n audit_log_format ( ab , \"op=fscreate invalid_context=\" ) ;\n audit_log_n_untrustedstring ( ab , value , audit_size ) ;\n audit_log_end ( ab ) ;\n return error ;\n }\n error = security_context_to_sid_force ( value , size , & sid ) ;\n }\n if ( error ) return error ;\n }\n new = prepare_creds ( ) ;\n if ( ! new ) return - ENOMEM ;\n tsec = new -> security ;\n if ( ! strcmp ( name , \"exec\" ) ) {\n tsec -> exec_sid = sid ;\n }\n else if ( ! strcmp ( name , \"fscreate\" ) ) {\n tsec -> create_sid = sid ;\n }\n else if ( ! strcmp ( name , \"keycreate\" ) ) {\n error = may_create_key ( sid , p ) ;\n if ( error ) goto abort_change ;\n tsec -> keycreate_sid = sid ;\n }\n else if ( ! strcmp ( name , \"sockcreate\" ) ) {\n tsec -> sockcreate_sid = sid ;\n }\n else if ( ! strcmp ( name , \"current\" ) ) {\n error = - EINVAL ;\n if ( sid == 0 ) goto abort_change ;\n error = - EPERM ;\n if ( ! current_is_single_threaded ( ) ) {\n error = security_bounded_transition ( tsec -> sid , sid ) ;\n if ( error ) goto abort_change ;\n }\n error = avc_has_perm ( tsec -> sid , sid , SECCLASS_PROCESS , PROCESS__DYNTRANSITION , NULL ) ;\n if ( error ) goto abort_change ;\n ptsid = ptrace_parent_sid ( p ) ;\n if ( ptsid != 0 ) {\n error = avc_has_perm ( ptsid , sid , SECCLASS_PROCESS , PROCESS__PTRACE , NULL ) ;\n if ( error ) goto abort_change ;\n }\n tsec -> sid = sid ;\n }\n else {\n error = - EINVAL ;\n goto abort_change ;\n }\n commit_creds ( new ) ;\n return size ;\n abort_change : abort_creds ( new ) ;\n return error ;\n }"}
{"idx": 8911, "target": 0, "func": "static TX_SIZE read_tx_size ( VP9_COMMON * cm , MACROBLOCKD * xd , TX_MODE tx_mode , BLOCK_SIZE bsize , int allow_select , vp9_reader * r ) {\n const TX_SIZE max_tx_size = max_txsize_lookup [ bsize ] ;\n if ( allow_select && tx_mode == TX_MODE_SELECT && bsize >= BLOCK_8X8 ) return read_selected_tx_size ( cm , xd , max_tx_size , r ) ;\n else return MIN ( max_tx_size , tx_mode_to_biggest_tx_size [ tx_mode ] ) ;\n }"}
{"idx": 8912, "target": 0, "func": "static bool parse_basicConstraints ( chunk_t blob , int level0 , private_x509_cert_t * this ) {\n asn1_parser_t * parser ;\n chunk_t object ;\n int objectID ;\n bool isCA = FALSE ;\n bool success ;\n parser = asn1_parser_create ( basicConstraintsObjects , blob ) ;\n parser -> set_top_level ( parser , level0 ) ;\n while ( parser -> iterate ( parser , & objectID , & object ) ) {\n switch ( objectID ) {\n case BASIC_CONSTRAINTS_CA : isCA = object . len && * object . ptr ;\n DBG2 ( DBG_ASN , \" %s\" , isCA ? \"TRUE\" : \"FALSE\" ) ;\n if ( isCA ) {\n this -> flags |= X509_CA ;\n }\n break ;\n case BASIC_CONSTRAINTS_PATH_LEN : if ( isCA ) {\n this -> pathLenConstraint = parse_constraint ( object ) ;\n }\n break ;\n default : break ;\n }\n }\n success = parser -> success ( parser ) ;\n parser -> destroy ( parser ) ;\n return success ;\n }"}
{"idx": 8913, "target": 0, "func": "static void * data_create_hangul ( const hb_ot_shape_plan_t * plan ) {\n hangul_shape_plan_t * hangul_plan = ( hangul_shape_plan_t * ) calloc ( 1 , sizeof ( hangul_shape_plan_t ) ) ;\n if ( unlikely ( ! hangul_plan ) ) return NULL ;\n for ( unsigned int i = 0 ;\n i < HANGUL_FEATURE_COUNT ;\n i ++ ) hangul_plan -> mask_array [ i ] = plan -> map . get_1_mask ( hangul_features [ i ] ) ;\n return hangul_plan ;\n }"}
{"idx": 8914, "target": 0, "func": "static void option_import_marks ( const char * marks , int from_stream , int ignore_missing ) {\n if ( import_marks_file ) {\n if ( from_stream ) die ( \"Only one import-marks command allowed per stream\" ) ;\n if ( ! import_marks_file_from_stream ) read_marks ( ) ;\n }\n import_marks_file = make_fast_import_path ( marks ) ;\n safe_create_leading_directories_const ( import_marks_file ) ;\n import_marks_file_from_stream = from_stream ;\n import_marks_file_ignore_missing = ignore_missing ;\n }"}
{"idx": 8915, "target": 0, "func": "int dissect_h225_GenericIdentifier ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 860 \"./asn1/h225/h225.cnf\" gef_ctx_t * gefx ;\n proto_item * ti ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_GenericIdentifier , GenericIdentifier_choice , NULL ) ;\n # line 863 \"./asn1/h225/h225.cnf\" gef_ctx_update_key ( gef_ctx_get ( actx -> private_data ) ) ;\n gefx = gef_ctx_get ( actx -> private_data ) ;\n if ( gefx ) {\n ti = proto_tree_add_string ( tree , hf_h225_debug_dissector_try_string , tvb , offset >> 3 , 0 , gefx -> key ) ;\n PROTO_ITEM_SET_HIDDEN ( ti ) ;\n dissector_try_string ( gef_name_dissector_table , gefx -> key , tvb_new_subset ( tvb , offset >> 3 , 0 , 0 ) , actx -> pinfo , tree , actx ) ;\n }\n actx -> private_data = gefx ;\n return offset ;\n }"}
{"idx": 8916, "target": 0, "func": "static void evdns_request_timeout_callback ( int fd , short events , void * arg ) {\n struct request * const req = ( struct request * ) arg ;\n ( void ) fd ;\n ( void ) events ;\n log ( EVDNS_LOG_DEBUG , \"Request %lx timed out\" , ( unsigned long ) arg ) ;\n req -> ns -> timedout ++ ;\n if ( req -> ns -> timedout > global_max_nameserver_timeout ) {\n req -> ns -> timedout = 0 ;\n nameserver_failed ( req -> ns , \"request timed out.\" ) ;\n }\n ( void ) evtimer_del ( & req -> timeout_event ) ;\n if ( req -> tx_count >= global_max_retransmits ) {\n reply_callback ( req , 0 , DNS_ERR_TIMEOUT , NULL ) ;\n request_finished ( req , & req_head ) ;\n }\n else {\n evdns_request_transmit ( req ) ;\n }\n }"}
{"idx": 8917, "target": 0, "func": "static void FLOATING_POINT_RESTORE ( ) {\n }"}
{"idx": 8918, "target": 0, "func": "proto_item * proto_tree_add_ipxnet_format ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , guint32 value , const char * format , ... ) {\n proto_item * pi ;\n va_list ap ;\n pi = proto_tree_add_ipxnet ( tree , hfindex , tvb , start , length , value ) ;\n if ( pi != tree ) {\n TRY_TO_FAKE_THIS_REPR ( pi ) ;\n va_start ( ap , format ) ;\n proto_tree_set_representation ( pi , format , ap ) ;\n va_end ( ap ) ;\n }\n return pi ;\n }"}
{"idx": 8919, "target": 0, "func": "int jpc_ns_analyze ( jpc_fix_t * a , int xstart , int ystart , int width , int height , int stride ) {\n int numrows = height ;\n int numcols = width ;\n int rowparity = ystart & 1 ;\n int colparity = xstart & 1 ;\n int i ;\n jpc_fix_t * startptr ;\n int maxcols ;\n maxcols = ( numcols / JPC_QMFB_COLGRPSIZE ) * JPC_QMFB_COLGRPSIZE ;\n startptr = & a [ 0 ] ;\n for ( i = 0 ;\n i < maxcols ;\n i += JPC_QMFB_COLGRPSIZE ) {\n jpc_qmfb_split_colgrp ( startptr , numrows , stride , rowparity ) ;\n jpc_ns_fwdlift_colgrp ( startptr , numrows , stride , rowparity ) ;\n startptr += JPC_QMFB_COLGRPSIZE ;\n }\n if ( maxcols < numcols ) {\n jpc_qmfb_split_colres ( startptr , numrows , numcols - maxcols , stride , rowparity ) ;\n jpc_ns_fwdlift_colres ( startptr , numrows , numcols - maxcols , stride , rowparity ) ;\n }\n startptr = & a [ 0 ] ;\n for ( i = 0 ;\n i < numrows ;\n ++ i ) {\n jpc_qmfb_split_row ( startptr , numcols , colparity ) ;\n jpc_ns_fwdlift_row ( startptr , numcols , colparity ) ;\n startptr += stride ;\n }\n return 0 ;\n }"}
{"idx": 8920, "target": 0, "func": "static void compute_svector ( QCELPContext * q , const float * gain , float * cdn_vector ) {\n int i , j , k ;\n uint16_t cbseed , cindex ;\n float * rnd , tmp_gain , fir_filter_value ;\n switch ( q -> bitrate ) {\n case RATE_FULL : for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n tmp_gain = gain [ i ] * QCELP_RATE_FULL_CODEBOOK_RATIO ;\n cindex = - q -> frame . cindex [ i ] ;\n for ( j = 0 ;\n j < 10 ;\n j ++ ) * cdn_vector ++ = tmp_gain * qcelp_rate_full_codebook [ cindex ++ & 127 ] ;\n }\n break ;\n case RATE_HALF : for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n tmp_gain = gain [ i ] * QCELP_RATE_HALF_CODEBOOK_RATIO ;\n cindex = - q -> frame . cindex [ i ] ;\n for ( j = 0 ;\n j < 40 ;\n j ++ ) * cdn_vector ++ = tmp_gain * qcelp_rate_half_codebook [ cindex ++ & 127 ] ;\n }\n break ;\n case RATE_QUARTER : cbseed = ( 0x0003 & q -> frame . lspv [ 4 ] ) << 14 | ( 0x003F & q -> frame . lspv [ 3 ] ) << 8 | ( 0x0060 & q -> frame . lspv [ 2 ] ) << 1 | ( 0x0007 & q -> frame . lspv [ 1 ] ) << 3 | ( 0x0038 & q -> frame . lspv [ 0 ] ) >> 3 ;\n rnd = q -> rnd_fir_filter_mem + 20 ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n tmp_gain = gain [ i ] * ( QCELP_SQRT1887 / 32768.0 ) ;\n for ( k = 0 ;\n k < 20 ;\n k ++ ) {\n cbseed = 521 * cbseed + 259 ;\n * rnd = ( int16_t ) cbseed ;\n fir_filter_value = 0.0 ;\n for ( j = 0 ;\n j < 10 ;\n j ++ ) fir_filter_value += qcelp_rnd_fir_coefs [ j ] * ( rnd [ - j ] + rnd [ - 20 + j ] ) ;\n fir_filter_value += qcelp_rnd_fir_coefs [ 10 ] * rnd [ - 10 ] ;\n * cdn_vector ++ = tmp_gain * fir_filter_value ;\n rnd ++ ;\n }\n }\n memcpy ( q -> rnd_fir_filter_mem , q -> rnd_fir_filter_mem + 160 , 20 * sizeof ( float ) ) ;\n break ;\n case RATE_OCTAVE : cbseed = q -> first16bits ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n tmp_gain = gain [ i ] * ( QCELP_SQRT1887 / 32768.0 ) ;\n for ( j = 0 ;\n j < 20 ;\n j ++ ) {\n cbseed = 521 * cbseed + 259 ;\n * cdn_vector ++ = tmp_gain * ( int16_t ) cbseed ;\n }\n }\n break ;\n case I_F_Q : cbseed = - 44 ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n tmp_gain = gain [ i ] * QCELP_RATE_FULL_CODEBOOK_RATIO ;\n for ( j = 0 ;\n j < 40 ;\n j ++ ) * cdn_vector ++ = tmp_gain * qcelp_rate_full_codebook [ cbseed ++ & 127 ] ;\n }\n break ;\n case SILENCE : memset ( cdn_vector , 0 , 160 * sizeof ( float ) ) ;\n break ;\n }\n }"}
{"idx": 8921, "target": 0, "func": "static void init_config ( struct VP9_COMP * cpi , VP9EncoderConfig * oxcf ) {\n VP9_COMMON * const cm = & cpi -> common ;\n cpi -> oxcf = * oxcf ;\n cpi -> framerate = oxcf -> init_framerate ;\n cm -> profile = oxcf -> profile ;\n cm -> bit_depth = oxcf -> bit_depth ;\n # if CONFIG_VP9_HIGHBITDEPTH cm -> use_highbitdepth = oxcf -> use_highbitdepth ;\n # endif cm -> color_space = UNKNOWN ;\n cm -> width = oxcf -> width ;\n cm -> height = oxcf -> height ;\n vp9_alloc_compressor_data ( cpi ) ;\n cpi -> svc . number_spatial_layers = oxcf -> ss_number_layers ;\n cpi -> svc . number_temporal_layers = oxcf -> ts_number_layers ;\n if ( ( cpi -> svc . number_temporal_layers > 1 && cpi -> oxcf . rc_mode == VPX_CBR ) || ( ( cpi -> svc . number_temporal_layers > 1 || cpi -> svc . number_spatial_layers > 1 ) && cpi -> oxcf . pass == 2 ) ) {\n vp9_init_layer_context ( cpi ) ;\n }\n vp9_change_config ( cpi , oxcf ) ;\n cpi -> static_mb_pct = 0 ;\n cpi -> ref_frame_flags = 0 ;\n init_buffer_indices ( cpi ) ;\n set_tile_limits ( cpi ) ;\n }"}
{"idx": 8922, "target": 0, "func": "static void cpu_kick_irq ( SPARCCPU * cpu ) {\n CPUSPARCState * env = & cpu -> env ;\n CPUState * cs = CPU ( cpu ) ;\n cs -> halted = 0 ;\n cpu_check_irqs ( env ) ;\n qemu_cpu_kick ( cs ) ;\n }"}
{"idx": 8923, "target": 0, "func": "static int huff_smallest_node ( hnode * hnodes , int num_hnodes ) {\n int i ;\n int best , best_node ;\n best = 99999999 ;\n best_node = - 1 ;\n for ( i = 0 ;\n i < num_hnodes ;\n i ++ ) {\n if ( hnodes [ i ] . used ) continue ;\n if ( ! hnodes [ i ] . count ) continue ;\n if ( hnodes [ i ] . count < best ) {\n best = hnodes [ i ] . count ;\n best_node = i ;\n }\n }\n if ( best_node == - 1 ) return - 1 ;\n hnodes [ best_node ] . used = 1 ;\n return best_node ;\n }"}
{"idx": 8924, "target": 0, "func": "static void display_sorted_nicks ( CHANNEL_REC * channel , GSList * nicklist ) {\n WINDOW_REC * window ;\n TEXT_DEST_REC dest ;\n GString * str ;\n GSList * tmp ;\n char * format , * stripped , * prefix_format ;\n char * aligned_nick , nickmode [ 2 ] = {\n 0 , 0 }\n ;\n int * columns , cols , rows , last_col_rows , col , row , max_width ;\n int item_extra , formatnum ;\n window = window_find_closest ( channel -> server , channel -> visible_name , MSGLEVEL_CLIENTCRAP ) ;\n max_width = window -> width ;\n format = format_get_text ( MODULE_NAME , NULL , channel -> server , channel -> visible_name , TXT_NAMES_NICK , \" \" , \"\" ) ;\n stripped = strip_codes ( format ) ;\n item_extra = strlen ( stripped ) ;\n g_free ( stripped ) ;\n g_free ( format ) ;\n if ( settings_get_int ( \"names_max_width\" ) > 0 && settings_get_int ( \"names_max_width\" ) < max_width ) max_width = settings_get_int ( \"names_max_width\" ) ;\n format_create_dest ( & dest , channel -> server , channel -> visible_name , MSGLEVEL_CLIENTCRAP , NULL ) ;\n format = format_get_line_start ( current_theme , & dest , time ( NULL ) ) ;\n if ( format != NULL ) {\n stripped = strip_codes ( format ) ;\n max_width -= strlen ( stripped ) ;\n g_free ( stripped ) ;\n g_free ( format ) ;\n }\n prefix_format = format_get_text ( MODULE_NAME , NULL , channel -> server , channel -> visible_name , TXT_NAMES_PREFIX , channel -> visible_name ) ;\n if ( prefix_format != NULL ) {\n stripped = strip_codes ( prefix_format ) ;\n max_width -= strlen ( stripped ) ;\n g_free ( stripped ) ;\n }\n if ( max_width <= 0 ) {\n max_width = 10 ;\n }\n cols = get_max_column_count ( nicklist , get_nick_length , max_width , settings_get_int ( \"names_max_columns\" ) , item_extra , 3 , & columns , & rows ) ;\n nicklist = columns_sort_list ( nicklist , rows ) ;\n last_col_rows = rows - ( cols * rows - g_slist_length ( nicklist ) ) ;\n if ( last_col_rows == 0 ) last_col_rows = rows ;\n str = g_string_new ( prefix_format ) ;\n col = 0 ;\n row = 0 ;\n for ( tmp = nicklist ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n NICK_REC * rec = tmp -> data ;\n if ( rec -> prefixes [ 0 ] ) nickmode [ 0 ] = rec -> prefixes [ 0 ] ;\n else nickmode [ 0 ] = ' ' ;\n aligned_nick = get_alignment ( rec -> nick , columns [ col ] - item_extra , ALIGN_PAD , ' ' ) ;\n formatnum = rec -> op ? TXT_NAMES_NICK_OP : rec -> halfop ? TXT_NAMES_NICK_HALFOP : rec -> voice ? TXT_NAMES_NICK_VOICE : TXT_NAMES_NICK ;\n format = format_get_text ( MODULE_NAME , NULL , channel -> server , channel -> visible_name , formatnum , nickmode , aligned_nick ) ;\n g_string_append ( str , format ) ;\n g_free ( aligned_nick ) ;\n g_free ( format ) ;\n if ( ++ col == cols ) {\n printtext ( channel -> server , channel -> visible_name , MSGLEVEL_CLIENTCRAP , \"%s\" , str -> str ) ;\n g_string_truncate ( str , 0 ) ;\n if ( prefix_format != NULL ) g_string_assign ( str , prefix_format ) ;\n col = 0 ;\n row ++ ;\n if ( row == last_col_rows ) cols -- ;\n }\n }\n if ( prefix_format != NULL && str -> len > strlen ( prefix_format ) ) {\n printtext ( channel -> server , channel -> visible_name , MSGLEVEL_CLIENTCRAP , \"%s\" , str -> str ) ;\n }\n g_slist_free ( nicklist ) ;\n g_string_free ( str , TRUE ) ;\n g_free_not_null ( columns ) ;\n g_free_not_null ( prefix_format ) ;\n }"}
{"idx": 8925, "target": 0, "func": "static void t38_defragment_cleanup ( void ) {\n reassembly_table_destroy ( & data_reassembly_table ) ;\n }"}
{"idx": 8926, "target": 0, "func": "static int32_t _appendRegionToLanguageTag ( const char * localeID , char * appendAt , int32_t capacity , UBool strict , UErrorCode * status ) {\n char buf [ ULOC_COUNTRY_CAPACITY ] ;\n UErrorCode tmpStatus = U_ZERO_ERROR ;\n int32_t len ;\n int32_t reslen = 0 ;\n if ( U_FAILURE ( * status ) ) {\n return 0 ;\n }\n len = uloc_getCountry ( localeID , buf , sizeof ( buf ) , & tmpStatus ) ;\n if ( U_FAILURE ( tmpStatus ) || tmpStatus == U_STRING_NOT_TERMINATED_WARNING ) {\n if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n }\n return 0 ;\n }\n if ( len > 0 ) {\n if ( ! _isRegionSubtag ( buf , len ) ) {\n if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n }\n return 0 ;\n }\n else {\n if ( reslen < capacity ) {\n * ( appendAt + reslen ) = SEP ;\n }\n reslen ++ ;\n if ( reslen < capacity ) {\n uprv_memcpy ( appendAt + reslen , buf , uprv_min ( len , capacity - reslen ) ) ;\n }\n reslen += len ;\n }\n }\n u_terminateChars ( appendAt , capacity , reslen , status ) ;\n return reslen ;\n }"}
{"idx": 8927, "target": 0, "func": "static int dissect_h225_T_manufacturerCode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 65535U , & manufacturerCode , FALSE ) ;\n return offset ;\n }"}
{"idx": 8928, "target": 0, "func": "static int dissect_h225_DestinationInfo_item ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 312 \"./asn1/h225/h225.cnf\" h225_packet_info * h225_pi ;\n h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> is_destinationInfo = TRUE ;\n }\n offset = dissect_h225_AliasAddress ( tvb , offset , actx , tree , hf_index ) ;\n return offset ;\n }"}
{"idx": 8929, "target": 0, "func": "static const char * integer64_avp ( diam_ctx_t * c , diam_avp_t * a , tvbuff_t * tvb , diam_sub_dis_t * diam_sub_dis_inf _U_ ) {\n char * label = NULL ;\n proto_item * pi ;\n gint length = tvb_reported_length ( tvb ) ;\n if ( length == 8 ) {\n if ( c -> tree ) {\n pi = proto_tree_add_item ( c -> tree , a -> hf_value , tvb , 0 , length , ENC_BIG_ENDIAN ) ;\n label = ( char * ) wmem_alloc ( wmem_packet_scope ( ) , ITEM_LABEL_LENGTH + 1 ) ;\n proto_item_fill_label ( PITEM_FINFO ( pi ) , label ) ;\n label = strstr ( label , \": \" ) + 2 ;\n }\n }\n else {\n pi = proto_tree_add_bytes_format ( c -> tree , hf_diameter_avp_data_wrong_length , tvb , 0 , length , NULL , \"Error! Bad Integer64 Length\" ) ;\n expert_add_info_format ( c -> pinfo , pi , & ei_diameter_avp_len , \"Bad Integer64 Length (%u)\" , length ) ;\n PROTO_ITEM_SET_GENERATED ( pi ) ;\n }\n return label ;\n }"}
{"idx": 8930, "target": 0, "func": "static void indexed_to_alt ( fz_context * ctx , const fz_colorspace * cs , const float * color , float * alt ) {\n struct indexed * idx = cs -> data ;\n int i , k ;\n int n = idx -> base -> n ;\n i = color [ 0 ] * 255 ;\n i = fz_clampi ( i , 0 , idx -> high ) ;\n for ( k = 0 ;\n k < n ;\n k ++ ) alt [ k ] = idx -> lookup [ i * n + k ] / 255.0f ;\n }"}
{"idx": 8931, "target": 0, "func": "static void dump_branches ( void ) {\n unsigned int i ;\n struct branch * b ;\n for ( i = 0 ;\n i < branch_table_sz ;\n i ++ ) {\n for ( b = branch_table [ i ] ;\n b ;\n b = b -> table_next_branch ) failure |= update_branch ( b ) ;\n }\n }"}
{"idx": 8932, "target": 0, "func": "TEST_F ( WebUsbDetectorTest , UsbDeviceWithoutProductNameAddedAndRemoved ) {\n std : : string product_name = \"\" ;\n GURL landing_page ( kLandingPage_1 ) ;\n scoped_refptr < device : : MockUsbDevice > device ( new device : : MockUsbDevice ( 0 , 1 , \"Google\" , product_name , \"002\" , landing_page ) ) ;\n std : : string guid = device -> guid ( ) ;\n Initialize ( ) ;\n device_client_ . usb_service ( ) -> AddDevice ( device ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid ) == nullptr ) ;\n device_client_ . usb_service ( ) -> RemoveDevice ( device ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid ) == nullptr ) ;\n }"}
{"idx": 8933, "target": 0, "func": "static void stroke_status ( private_stroke_socket_t * this , stroke_msg_t * msg , FILE * out , bool all , bool wait ) {\n pop_string ( msg , & ( msg -> status . name ) ) ;\n this -> list -> status ( this -> list , msg , out , all , wait ) ;\n }"}
{"idx": 8934, "target": 0, "func": "static GList * completion_nicks_nonstrict ( CHANNEL_REC * channel , const char * nick , const char * suffix , const int match_case ) {\n GSList * nicks , * tmp ;\n GList * list ;\n char * tnick , * str , * in , * out ;\n int len , str_len , tmplen ;\n g_return_val_if_fail ( channel != NULL , NULL ) ;\n list = NULL ;\n len = strlen ( nick ) ;\n nicks = nicklist_getnicks ( channel ) ;\n str_len = 80 ;\n str = g_malloc ( str_len + 1 ) ;\n for ( tmp = nicks ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n NICK_REC * rec = tmp -> data ;\n tmplen = strlen ( rec -> nick ) ;\n if ( tmplen > str_len ) {\n str_len = tmplen * 2 ;\n str = g_realloc ( str , str_len + 1 ) ;\n }\n in = rec -> nick ;\n out = str ;\n while ( * in != '\\0' ) {\n if ( i_isalnum ( * in ) ) * out ++ = * in ;\n in ++ ;\n }\n * out = '\\0' ;\n if ( ( match_case ? strncmp ( str , nick , len ) : g_ascii_strncasecmp ( str , nick , len ) ) == 0 ) {\n tnick = g_strconcat ( rec -> nick , suffix , NULL ) ;\n if ( completion_lowercase ) ascii_strdown ( tnick ) ;\n if ( glist_find_icase_string ( list , tnick ) == NULL ) list = g_list_append ( list , tnick ) ;\n else g_free ( tnick ) ;\n }\n }\n g_free ( str ) ;\n g_slist_free ( nicks ) ;\n return list ;\n }"}
{"idx": 8935, "target": 0, "func": "static gint dissect_AllJoyn_message ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , gint offset ) {\n proto_item * message_item ;\n proto_tree * message_tree ;\n gint last_offset = - 1 ;\n gint packet_length ;\n gboolean is_ardp = FALSE ;\n if ( offset != 0 ) {\n is_ardp = TRUE ;\n }\n pinfo -> desegment_len = 0 ;\n packet_length = tvb_reported_length ( tvb ) ;\n col_clear ( pinfo -> cinfo , COL_INFO ) ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"ALLJOYN\" ) ;\n message_item = proto_tree_add_item ( tree , proto_AllJoyn_mess , tvb , offset , - 1 , ENC_NA ) ;\n message_tree = proto_item_add_subtree ( message_item , ett_alljoyn_mess ) ;\n while ( offset < packet_length && offset > last_offset ) {\n last_offset = offset ;\n if ( ! is_ardp ) {\n offset = handle_message_connect ( tvb , pinfo , offset , message_tree ) ;\n if ( offset >= packet_length ) {\n break ;\n }\n offset = handle_message_sasl ( tvb , pinfo , offset , message_tree ) ;\n if ( offset >= packet_length ) {\n break ;\n }\n }\n offset = handle_message_header_body ( tvb , pinfo , offset , message_tree , is_ardp ) ;\n }\n return offset ;\n }"}
{"idx": 8936, "target": 0, "func": "inline const UChar * toUCharPtr ( const char16_t * p ) {\n # ifdef U_ALIASING_BARRIER U_ALIASING_BARRIER ( p ) ;\n # endif return reinterpret_cast < const UChar * > ( p ) ;\n }"}
{"idx": 8937, "target": 0, "func": "static gboolean is_writeable_request ( guint8 opcode ) {\n return ( opcode == ATT_OPCODE_WRITE_REQUEST || opcode == ATT_OPCODE_WRITE_PREPARE_REQUEST ) ;\n }"}
{"idx": 8938, "target": 0, "func": "void dump_exec_info ( FILE * f , fprintf_function cpu_fprintf ) {\n int i , target_code_size , max_target_code_size ;\n int direct_jmp_count , direct_jmp2_count , cross_page ;\n TranslationBlock * tb ;\n target_code_size = 0 ;\n max_target_code_size = 0 ;\n cross_page = 0 ;\n direct_jmp_count = 0 ;\n direct_jmp2_count = 0 ;\n for ( i = 0 ;\n i < tcg_ctx . tb_ctx . nb_tbs ;\n i ++ ) {\n tb = & tcg_ctx . tb_ctx . tbs [ i ] ;\n target_code_size += tb -> size ;\n if ( tb -> size > max_target_code_size ) {\n max_target_code_size = tb -> size ;\n }\n if ( tb -> page_addr [ 1 ] != - 1 ) {\n cross_page ++ ;\n }\n if ( tb -> tb_next_offset [ 0 ] != 0xffff ) {\n direct_jmp_count ++ ;\n if ( tb -> tb_next_offset [ 1 ] != 0xffff ) {\n direct_jmp2_count ++ ;\n }\n }\n }\n cpu_fprintf ( f , \"Translation buffer state:\\n\" ) ;\n cpu_fprintf ( f , \"gen code size %td/%zd\\n\" , tcg_ctx . code_gen_ptr - tcg_ctx . code_gen_buffer , tcg_ctx . code_gen_buffer_max_size ) ;\n cpu_fprintf ( f , \"TB count %d/%d\\n\" , tcg_ctx . tb_ctx . nb_tbs , tcg_ctx . code_gen_max_blocks ) ;\n cpu_fprintf ( f , \"TB avg target size %d max=%d bytes\\n\" , tcg_ctx . tb_ctx . nb_tbs ? target_code_size / tcg_ctx . tb_ctx . nb_tbs : 0 , max_target_code_size ) ;\n cpu_fprintf ( f , \"TB avg host size %td bytes (expansion ratio: %0.1f)\\n\" , tcg_ctx . tb_ctx . nb_tbs ? ( tcg_ctx . code_gen_ptr - tcg_ctx . code_gen_buffer ) / tcg_ctx . tb_ctx . nb_tbs : 0 , target_code_size ? ( double ) ( tcg_ctx . code_gen_ptr - tcg_ctx . code_gen_buffer ) / target_code_size : 0 ) ;\n cpu_fprintf ( f , \"cross page TB count %d (%d%%)\\n\" , cross_page , tcg_ctx . tb_ctx . nb_tbs ? ( cross_page * 100 ) / tcg_ctx . tb_ctx . nb_tbs : 0 ) ;\n cpu_fprintf ( f , \"direct jump count %d (%d%%) (2 jumps=%d %d%%)\\n\" , direct_jmp_count , tcg_ctx . tb_ctx . nb_tbs ? ( direct_jmp_count * 100 ) / tcg_ctx . tb_ctx . nb_tbs : 0 , direct_jmp2_count , tcg_ctx . tb_ctx . nb_tbs ? ( direct_jmp2_count * 100 ) / tcg_ctx . tb_ctx . nb_tbs : 0 ) ;\n cpu_fprintf ( f , \"\\nStatistics:\\n\" ) ;\n cpu_fprintf ( f , \"TB flush count %d\\n\" , tcg_ctx . tb_ctx . tb_flush_count ) ;\n cpu_fprintf ( f , \"TB invalidate count %d\\n\" , tcg_ctx . tb_ctx . tb_phys_invalidate_count ) ;\n cpu_fprintf ( f , \"TLB flush count %d\\n\" , tlb_flush_count ) ;\n tcg_dump_info ( f , cpu_fprintf ) ;\n }"}
{"idx": 8939, "target": 0, "func": "static const char * socket_activation_validate_opts ( const char * device , const char * sockpath , const char * address , const char * port ) {\n if ( device != NULL ) {\n return \"NBD device can't be set when using socket activation\" ;\n }\n if ( sockpath != NULL ) {\n return \"Unix socket can't be set when using socket activation\" ;\n }\n if ( address != NULL ) {\n return \"The interface can't be set when using socket activation\" ;\n }\n if ( port != NULL ) {\n return \"TCP port number can't be set when using socket activation\" ;\n }\n return NULL ;\n }"}
{"idx": 8940, "target": 0, "func": "static int dissect_rsl_ie_cmd_ind ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_tree * ie_tree ;\n guint8 ie_id ;\n guint8 octet ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_CMD_IND ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 2 , ett_ie_cmd_ind , NULL , \"Command indicator IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_extension_bit , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n octet = tvb_get_guint8 ( tvb , offset ) ;\n if ( ( octet & 0x80 ) == 0x80 ) {\n proto_tree_add_item ( ie_tree , hf_rsl_command , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n offset = offset + 2 ;\n }\n else {\n proto_tree_add_item ( ie_tree , hf_rsl_command , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n }\n return offset ;\n }"}
{"idx": 8941, "target": 0, "func": "static void unload_one_branch ( void ) {\n while ( cur_active_branches && cur_active_branches >= max_active_branches ) {\n uintmax_t min_commit = ULONG_MAX ;\n struct branch * e , * l = NULL , * p = NULL ;\n for ( e = active_branches ;\n e ;\n e = e -> active_next_branch ) {\n if ( e -> last_commit < min_commit ) {\n p = l ;\n min_commit = e -> last_commit ;\n }\n l = e ;\n }\n if ( p ) {\n e = p -> active_next_branch ;\n p -> active_next_branch = e -> active_next_branch ;\n }\n else {\n e = active_branches ;\n active_branches = e -> active_next_branch ;\n }\n e -> active = 0 ;\n e -> active_next_branch = NULL ;\n if ( e -> branch_tree . tree ) {\n release_tree_content_recursive ( e -> branch_tree . tree ) ;\n e -> branch_tree . tree = NULL ;\n }\n cur_active_branches -- ;\n }\n }"}
{"idx": 8942, "target": 0, "func": "static ref * zget_current_file ( i_ctx_t * i_ctx_p ) {\n ref_stack_enum_t rsenum ;\n ref_stack_enum_begin ( & rsenum , & e_stack ) ;\n do {\n uint count = rsenum . size ;\n es_ptr ep = rsenum . ptr + count - 1 ;\n for ( ;\n count ;\n count -- , ep -- ) if ( r_has_type_attrs ( ep , t_file , a_executable ) ) return ep ;\n }\n while ( ref_stack_enum_next ( & rsenum ) ) ;\n return 0 ;\n }"}
{"idx": 8943, "target": 0, "func": "static gboolean ngsniffer_read ( wtap * wth , int * err , gchar * * err_info , gint64 * data_offset ) {\n ngsniffer_t * ngsniffer ;\n int ret ;\n guint padding ;\n ngsniffer = ( ngsniffer_t * ) wth -> priv ;\n for ( ;\n ;\n ) {\n * data_offset = ngsniffer -> seq . uncomp_offset ;\n ret = ngsniffer_process_record ( wth , FALSE , & padding , & wth -> phdr , wth -> frame_buffer , err , err_info ) ;\n if ( ret < 0 ) {\n return FALSE ;\n }\n switch ( ret ) {\n case REC_FRAME2 : case REC_FRAME4 : case REC_FRAME6 : if ( padding != 0 ) {\n if ( ! ng_file_skip_seq ( wth , padding , err , err_info ) ) return FALSE ;\n }\n return TRUE ;\n case REC_EOF : * err = 0 ;\n return FALSE ;\n default : if ( padding != 0 ) {\n if ( ! ng_file_skip_seq ( wth , padding , err , err_info ) ) return FALSE ;\n }\n break ;\n }\n }\n }"}
{"idx": 8944, "target": 0, "func": "static k12_t * new_k12_file_data ( void ) {\n k12_t * fd = g_new ( k12_t , 1 ) ;\n fd -> file_len = 0 ;\n fd -> num_of_records = 0 ;\n fd -> src_by_name = g_hash_table_new ( g_str_hash , g_str_equal ) ;\n fd -> src_by_id = g_hash_table_new ( g_direct_hash , g_direct_equal ) ;\n fd -> seq_read_buff = NULL ;\n fd -> seq_read_buff_len = 0 ;\n fd -> rand_read_buff = NULL ;\n fd -> rand_read_buff_len = 0 ;\n ws_buffer_init ( & ( fd -> extra_info ) , 100 ) ;\n return fd ;\n }"}
{"idx": 8945, "target": 0, "func": "static void link_task_thread_func ( GTask * task , gpointer source_object , gpointer task_data , GCancellable * cancellable ) {\n CopyMoveJob * job ;\n CommonJob * common ;\n GFile * src ;\n GdkPoint * point ;\n char * dest_fs_type ;\n int total , left ;\n int i ;\n GList * l ;\n job = task_data ;\n common = & job -> common ;\n dest_fs_type = NULL ;\n nautilus_progress_info_start ( job -> common . progress ) ;\n verify_destination ( & job -> common , job -> destination , NULL , - 1 ) ;\n if ( job_aborted ( common ) ) {\n goto aborted ;\n }\n total = left = g_list_length ( job -> files ) ;\n report_preparing_link_progress ( job , total , left ) ;\n i = 0 ;\n for ( l = job -> files ;\n l != NULL && ! job_aborted ( common ) ;\n l = l -> next ) {\n src = l -> data ;\n if ( i < job -> n_icon_positions ) {\n point = & job -> icon_positions [ i ] ;\n }\n else {\n point = NULL ;\n }\n link_file ( job , src , job -> destination , & dest_fs_type , job -> debuting_files , point , left ) ;\n report_preparing_link_progress ( job , total , -- left ) ;\n i ++ ;\n }\n aborted : g_free ( dest_fs_type ) ;\n }"}
{"idx": 8946, "target": 0, "func": "int dtls1_send_hello_verify_request ( SSL * s ) {\n unsigned int msg_len ;\n unsigned char * msg , * buf , * p ;\n if ( s -> state == DTLS1_ST_SW_HELLO_VERIFY_REQUEST_A ) {\n buf = ( unsigned char * ) s -> init_buf -> data ;\n msg = p = & ( buf [ DTLS1_HM_HEADER_LENGTH ] ) ;\n * ( p ++ ) = s -> version >> 8 ;\n * ( p ++ ) = s -> version & 0xFF ;\n if ( s -> ctx -> app_gen_cookie_cb == NULL || s -> ctx -> app_gen_cookie_cb ( s , s -> d1 -> cookie , & ( s -> d1 -> cookie_len ) ) == 0 ) {\n SSLerr ( SSL_F_DTLS1_SEND_HELLO_VERIFY_REQUEST , ERR_R_INTERNAL_ERROR ) ;\n return 0 ;\n }\n * ( p ++ ) = ( unsigned char ) s -> d1 -> cookie_len ;\n memcpy ( p , s -> d1 -> cookie , s -> d1 -> cookie_len ) ;\n p += s -> d1 -> cookie_len ;\n msg_len = p - msg ;\n dtls1_set_message_header ( s , buf , DTLS1_MT_HELLO_VERIFY_REQUEST , msg_len , 0 , msg_len ) ;\n s -> state = DTLS1_ST_SW_HELLO_VERIFY_REQUEST_B ;\n s -> init_num = p - buf ;\n s -> init_off = 0 ;\n }\n return ( dtls1_do_write ( s , SSL3_RT_HANDSHAKE ) ) ;\n }"}
{"idx": 8947, "target": 0, "func": "static int cirrus_read_hidden_dac ( CirrusVGAState * s ) {\n if ( ++ s -> cirrus_hidden_dac_lockindex == 5 ) {\n s -> cirrus_hidden_dac_lockindex = 0 ;\n return s -> cirrus_hidden_dac_data ;\n }\n return 0xff ;\n }"}
{"idx": 8948, "target": 0, "func": "void PNGAPI png_set_sRGB ( png_structp png_ptr , png_infop info_ptr , int intent ) {\n png_debug1 ( 1 , \"in %s storage function\" , \"sRGB\" ) ;\n if ( png_ptr == NULL || info_ptr == NULL ) return ;\n info_ptr -> srgb_intent = ( png_byte ) intent ;\n info_ptr -> valid |= PNG_INFO_sRGB ;\n }"}
{"idx": 8949, "target": 1, "func": "static int dissect_h225_CallProceeding_UUIE ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 483 \"./asn1/h225/h225.cnf\" h225_packet_info * h225_pi ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_CallProceeding_UUIE , CallProceeding_UUIE_sequence ) ;\n # line 487 \"./asn1/h225/h225.cnf\" h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> cs_type = H225_CALL_PROCEDING ;\n if ( contains_faststart == TRUE ) g_snprintf ( h225_pi -> frame_label , 50 , \"%s OLC (%s)\" , val_to_str ( h225_pi -> cs_type , T_h323_message_body_vals , \"<unknown>\" ) , h225_pi -> frame_label ) ;\n else g_snprintf ( h225_pi -> frame_label , 50 , \"%s\" , val_to_str ( h225_pi -> cs_type , T_h323_message_body_vals , \"<unknown>\" ) ) ;\n }\n return offset ;\n }"}
{"idx": 8950, "target": 0, "func": "static void decode_fill_block ( RangeCoder * c , FillBlockCoder * fc , uint8_t * dst , int stride , int block_size ) {\n int i ;\n fc -> fill_val += decode_coeff ( c , & fc -> coef_model ) ;\n for ( i = 0 ;\n i < block_size ;\n i ++ , dst += stride ) memset ( dst , fc -> fill_val , block_size ) ;\n }"}
{"idx": 8951, "target": 0, "func": "static void vc2_subband_dwt_haar_shift ( VC2TransformContext * t , dwtcoef * data , ptrdiff_t stride , int width , int height ) {\n dwt_haar ( t , data , stride , width , height , 1 ) ;\n }"}
{"idx": 8952, "target": 0, "func": "static int dca_decode_block ( DCAContext * s , int base_channel , int block_index ) {\n int ret ;\n if ( s -> current_subframe >= s -> subframes ) {\n av_log ( s -> avctx , AV_LOG_DEBUG , \"check failed: %i>%i\" , s -> current_subframe , s -> subframes ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ! s -> current_subsubframe ) {\n # ifdef TRACE av_log ( s -> avctx , AV_LOG_DEBUG , \"DSYNC dca_subframe_header\\n\" ) ;\n # endif if ( ( ret = dca_subframe_header ( s , base_channel , block_index ) ) ) return ret ;\n }\n # ifdef TRACE av_log ( s -> avctx , AV_LOG_DEBUG , \"DSYNC dca_subsubframe\\n\" ) ;\n # endif if ( ( ret = dca_subsubframe ( s , base_channel , block_index ) ) ) return ret ;\n s -> current_subsubframe ++ ;\n if ( s -> current_subsubframe >= s -> subsubframes [ s -> current_subframe ] ) {\n s -> current_subsubframe = 0 ;\n s -> current_subframe ++ ;\n }\n if ( s -> current_subframe >= s -> subframes ) {\n # ifdef TRACE av_log ( s -> avctx , AV_LOG_DEBUG , \"DSYNC dca_subframe_footer\\n\" ) ;\n # endif if ( ( ret = dca_subframe_footer ( s , base_channel ) ) ) return ret ;\n }\n return 0 ;\n }"}
{"idx": 8953, "target": 0, "func": "void qemu_cpu_kick ( CPUState * cpu ) {\n qemu_cond_broadcast ( cpu -> halt_cond ) ;\n if ( ! tcg_enabled ( ) && ! cpu -> thread_kicked ) {\n qemu_cpu_kick_thread ( cpu ) ;\n cpu -> thread_kicked = true ;\n }\n }"}
{"idx": 8954, "target": 0, "func": "static void intra_pred_down_left ( uint8_t * d , uint8_t * top , uint8_t * left , int stride ) {\n int x , y ;\n for ( y = 0 ;\n y < 8 ;\n y ++ ) for ( x = 0 ;\n x < 8 ;\n x ++ ) d [ y * stride + x ] = ( LOWPASS ( top , x + y + 2 ) + LOWPASS ( left , x + y + 2 ) ) >> 1 ;\n }"}
{"idx": 8955, "target": 0, "func": "int cmd_pack_objects ( int argc , const char * * argv , const char * prefix ) {\n int use_internal_rev_list = 0 ;\n int thin = 0 ;\n int shallow = 0 ;\n int all_progress_implied = 0 ;\n struct argv_array rp = ARGV_ARRAY_INIT ;\n int rev_list_unpacked = 0 , rev_list_all = 0 , rev_list_reflog = 0 ;\n int rev_list_index = 0 ;\n struct option pack_objects_options [ ] = {\n OPT_SET_INT ( 'q' , \"quiet\" , & progress , N_ ( \"do not show progress meter\" ) , 0 ) , OPT_SET_INT ( 0 , \"progress\" , & progress , N_ ( \"show progress meter\" ) , 1 ) , OPT_SET_INT ( 0 , \"all-progress\" , & progress , N_ ( \"show progress meter during object writing phase\" ) , 2 ) , OPT_BOOL ( 0 , \"all-progress-implied\" , & all_progress_implied , N_ ( \"similar to --all-progress when progress meter is shown\" ) ) , {\n OPTION_CALLBACK , 0 , \"index-version\" , NULL , N_ ( \"version[,offset]\" ) , N_ ( \"write the pack index file in the specified idx format version\" ) , 0 , option_parse_index_version }\n , OPT_MAGNITUDE ( 0 , \"max-pack-size\" , & pack_size_limit , N_ ( \"maximum size of each output pack file\" ) ) , OPT_BOOL ( 0 , \"local\" , & local , N_ ( \"ignore borrowed objects from alternate object store\" ) ) , OPT_BOOL ( 0 , \"incremental\" , & incremental , N_ ( \"ignore packed objects\" ) ) , OPT_INTEGER ( 0 , \"window\" , & window , N_ ( \"limit pack window by objects\" ) ) , OPT_MAGNITUDE ( 0 , \"window-memory\" , & window_memory_limit , N_ ( \"limit pack window by memory in addition to object limit\" ) ) , OPT_INTEGER ( 0 , \"depth\" , & depth , N_ ( \"maximum length of delta chain allowed in the resulting pack\" ) ) , OPT_BOOL ( 0 , \"reuse-delta\" , & reuse_delta , N_ ( \"reuse existing deltas\" ) ) , OPT_BOOL ( 0 , \"reuse-object\" , & reuse_object , N_ ( \"reuse existing objects\" ) ) , OPT_BOOL ( 0 , \"delta-base-offset\" , & allow_ofs_delta , N_ ( \"use OFS_DELTA objects\" ) ) , OPT_INTEGER ( 0 , \"threads\" , & delta_search_threads , N_ ( \"use threads when searching for best delta matches\" ) ) , OPT_BOOL ( 0 , \"non-empty\" , & non_empty , N_ ( \"do not create an empty pack output\" ) ) , OPT_BOOL ( 0 , \"revs\" , & use_internal_rev_list , N_ ( \"read revision arguments from standard input\" ) ) , {\n OPTION_SET_INT , 0 , \"unpacked\" , & rev_list_unpacked , NULL , N_ ( \"limit the objects to those that are not yet packed\" ) , PARSE_OPT_NOARG | PARSE_OPT_NONEG , NULL , 1 }\n , {\n OPTION_SET_INT , 0 , \"all\" , & rev_list_all , NULL , N_ ( \"include objects reachable from any reference\" ) , PARSE_OPT_NOARG | PARSE_OPT_NONEG , NULL , 1 }\n , {\n OPTION_SET_INT , 0 , \"reflog\" , & rev_list_reflog , NULL , N_ ( \"include objects referred by reflog entries\" ) , PARSE_OPT_NOARG | PARSE_OPT_NONEG , NULL , 1 }\n , {\n OPTION_SET_INT , 0 , \"indexed-objects\" , & rev_list_index , NULL , N_ ( \"include objects referred to by the index\" ) , PARSE_OPT_NOARG | PARSE_OPT_NONEG , NULL , 1 }\n , OPT_BOOL ( 0 , \"stdout\" , & pack_to_stdout , N_ ( \"output pack to stdout\" ) ) , OPT_BOOL ( 0 , \"include-tag\" , & include_tag , N_ ( \"include tag objects that refer to objects to be packed\" ) ) , OPT_BOOL ( 0 , \"keep-unreachable\" , & keep_unreachable , N_ ( \"keep unreachable objects\" ) ) , {\n OPTION_CALLBACK , 0 , \"unpack-unreachable\" , NULL , N_ ( \"time\" ) , N_ ( \"unpack unreachable objects newer than <time>\" ) , PARSE_OPT_OPTARG , option_parse_unpack_unreachable }\n , OPT_BOOL ( 0 , \"thin\" , & thin , N_ ( \"create thin packs\" ) ) , OPT_BOOL ( 0 , \"shallow\" , & shallow , N_ ( \"create packs suitable for shallow fetches\" ) ) , OPT_BOOL ( 0 , \"honor-pack-keep\" , & ignore_packed_keep , N_ ( \"ignore packs that have companion .keep file\" ) ) , OPT_INTEGER ( 0 , \"compression\" , & pack_compression_level , N_ ( \"pack compression level\" ) ) , OPT_SET_INT ( 0 , \"keep-true-parents\" , & grafts_replace_parents , N_ ( \"do not hide commits by grafts\" ) , 0 ) , OPT_BOOL ( 0 , \"use-bitmap-index\" , & use_bitmap_index , N_ ( \"use a bitmap index if available to speed up counting objects\" ) ) , OPT_BOOL ( 0 , \"write-bitmap-index\" , & write_bitmap_index , N_ ( \"write a bitmap index together with the pack index\" ) ) , OPT_END ( ) , }\n ;\n check_replace_refs = 0 ;\n reset_pack_idx_option ( & pack_idx_opts ) ;\n git_config ( git_pack_config , NULL ) ;\n if ( ! pack_compression_seen && core_compression_seen ) pack_compression_level = core_compression_level ;\n progress = isatty ( 2 ) ;\n argc = parse_options ( argc , argv , prefix , pack_objects_options , pack_usage , 0 ) ;\n if ( argc ) {\n base_name = argv [ 0 ] ;\n argc -- ;\n }\n if ( pack_to_stdout != ! base_name || argc ) usage_with_options ( pack_usage , pack_objects_options ) ;\n argv_array_push ( & rp , \"pack-objects\" ) ;\n if ( thin ) {\n use_internal_rev_list = 1 ;\n argv_array_push ( & rp , shallow ? \"--objects-edge-aggressive\" : \"--objects-edge\" ) ;\n }\n else argv_array_push ( & rp , \"--objects\" ) ;\n if ( rev_list_all ) {\n use_internal_rev_list = 1 ;\n argv_array_push ( & rp , \"--all\" ) ;\n }\n if ( rev_list_reflog ) {\n use_internal_rev_list = 1 ;\n argv_array_push ( & rp , \"--reflog\" ) ;\n }\n if ( rev_list_index ) {\n use_internal_rev_list = 1 ;\n argv_array_push ( & rp , \"--indexed-objects\" ) ;\n }\n if ( rev_list_unpacked ) {\n use_internal_rev_list = 1 ;\n argv_array_push ( & rp , \"--unpacked\" ) ;\n }\n if ( ! reuse_object ) reuse_delta = 0 ;\n if ( pack_compression_level == - 1 ) pack_compression_level = Z_DEFAULT_COMPRESSION ;\n else if ( pack_compression_level < 0 || pack_compression_level > Z_BEST_COMPRESSION ) die ( \"bad pack compression level %d\" , pack_compression_level ) ;\n if ( ! delta_search_threads ) delta_search_threads = online_cpus ( ) ;\n # ifdef NO_PTHREADS if ( delta_search_threads != 1 ) warning ( \"no threads support, ignoring --threads\" ) ;\n # endif if ( ! pack_to_stdout && ! pack_size_limit ) pack_size_limit = pack_size_limit_cfg ;\n if ( pack_to_stdout && pack_size_limit ) die ( \"--max-pack-size cannot be used to build a pack for transfer.\" ) ;\n if ( pack_size_limit && pack_size_limit < 1024 * 1024 ) {\n warning ( \"minimum pack size limit is 1 MiB\" ) ;\n pack_size_limit = 1024 * 1024 ;\n }\n if ( ! pack_to_stdout && thin ) die ( \"--thin cannot be used to build an indexable pack.\" ) ;\n if ( keep_unreachable && unpack_unreachable ) die ( \"--keep-unreachable and --unpack-unreachable are incompatible.\" ) ;\n if ( ! rev_list_all || ! rev_list_reflog || ! rev_list_index ) unpack_unreachable_expiration = 0 ;\n if ( ! use_internal_rev_list || ! pack_to_stdout || is_repository_shallow ( ) ) use_bitmap_index = 0 ;\n if ( pack_to_stdout || ! rev_list_all ) write_bitmap_index = 0 ;\n if ( progress && all_progress_implied ) progress = 2 ;\n prepare_packed_git ( ) ;\n if ( progress ) progress_state = start_progress ( _ ( \"Counting objects\" ) , 0 ) ;\n if ( ! use_internal_rev_list ) read_object_list_from_stdin ( ) ;\n else {\n get_object_list ( rp . argc , rp . argv ) ;\n argv_array_clear ( & rp ) ;\n }\n cleanup_preferred_base ( ) ;\n if ( include_tag && nr_result ) for_each_ref ( add_ref_tag , NULL ) ;\n stop_progress ( & progress_state ) ;\n if ( non_empty && ! nr_result ) return 0 ;\n if ( nr_result ) prepare_pack ( window , depth ) ;\n write_pack_file ( ) ;\n if ( progress ) fprintf ( stderr , \"Total %\" PRIu32 \" (delta %\" PRIu32 \"),\" \" reused %\" PRIu32 \" (delta %\" PRIu32 \")\\n\" , written , written_delta , reused , reused_delta ) ;\n return 0 ;\n }"}
{"idx": 8956, "target": 1, "func": "double mcv_selectivity ( VariableStatData * vardata , FmgrInfo * opproc , Datum constval , bool varonleft , double * sumcommonp ) {\n double mcv_selec , sumcommon ;\n Datum * values ;\n int nvalues ;\n float4 * numbers ;\n int nnumbers ;\n int i ;\n mcv_selec = 0.0 ;\n sumcommon = 0.0 ;\n if ( HeapTupleIsValid ( vardata -> statsTuple ) && get_attstatsslot ( vardata -> statsTuple , vardata -> atttype , vardata -> atttypmod , STATISTIC_KIND_MCV , InvalidOid , NULL , & values , & nvalues , & numbers , & nnumbers ) ) {\n for ( i = 0 ;\n i < nvalues ;\n i ++ ) {\n if ( varonleft ? DatumGetBool ( FunctionCall2Coll ( opproc , DEFAULT_COLLATION_OID , values [ i ] , constval ) ) : DatumGetBool ( FunctionCall2Coll ( opproc , DEFAULT_COLLATION_OID , constval , values [ i ] ) ) ) mcv_selec += numbers [ i ] ;\n sumcommon += numbers [ i ] ;\n }\n free_attstatsslot ( vardata -> atttype , values , nvalues , numbers , nnumbers ) ;\n }\n * sumcommonp = sumcommon ;\n return mcv_selec ;\n }"}
{"idx": 8957, "target": 0, "func": "static byte * i_alloc_string ( gs_memory_t * mem , uint nbytes , client_name_t cname ) {\n gs_ref_memory_t * const imem = ( gs_ref_memory_t * ) mem ;\n byte * str ;\n clump_splay_walker sw ;\n clump_t * cp = clump_splay_walk_init_mid ( & sw , imem -> cc ) ;\n if ( nbytes + ( uint ) HDR_ID_OFFSET < nbytes ) return NULL ;\n nbytes += HDR_ID_OFFSET ;\n # ifdef MEMENTO if ( Memento_failThisEvent ( ) ) return NULL ;\n # endif if ( cp == 0 ) {\n imem -> cc = clump_splay_walk_init ( & sw , imem ) ;\n alloc_open_clump ( imem ) ;\n }\n top : if ( imem -> cc && imem -> cc -> ctop - imem -> cc -> cbot > nbytes ) {\n if_debug4m ( 'A' , mem , \"[a%d:+> ]%s(%u) = 0x%lx\\n\" , alloc_trace_space ( imem ) , client_name_string ( cname ) , nbytes , ( ulong ) ( imem -> cc -> ctop - nbytes ) ) ;\n str = imem -> cc -> ctop -= nbytes ;\n gs_alloc_fill ( str , gs_alloc_fill_alloc , nbytes ) ;\n str += HDR_ID_OFFSET ;\n ASSIGN_HDR_ID ( str ) ;\n return str ;\n }\n cp = clump_splay_walk_fwd ( & sw ) ;\n if ( cp != NULL ) {\n alloc_close_clump ( imem ) ;\n imem -> cc = cp ;\n alloc_open_clump ( imem ) ;\n goto top ;\n }\n if ( nbytes > string_space_quanta ( max_uint - sizeof ( clump_head_t ) ) * string_data_quantum ) {\n return 0 ;\n }\n if ( nbytes >= imem -> large_size ) {\n return i_alloc_string_immovable ( mem , nbytes , cname ) ;\n }\n else {\n cp = alloc_acquire_clump ( imem , ( ulong ) imem -> clump_size , true , \"clump\" ) ;\n if ( cp == 0 ) return 0 ;\n alloc_close_clump ( imem ) ;\n imem -> cc = clump_splay_walk_init_mid ( & sw , cp ) ;\n gs_alloc_fill ( imem -> cc -> cbase , gs_alloc_fill_free , imem -> cc -> climit - imem -> cc -> cbase ) ;\n goto top ;\n }\n }"}
{"idx": 8958, "target": 0, "func": "int evutil_gettimeofday ( struct timeval * tv , struct timezone * tz ) {\n struct _timeb tb ;\n if ( tv == NULL ) return - 1 ;\n _ftime ( & tb ) ;\n tv -> tv_sec = ( long ) tb . time ;\n tv -> tv_usec = ( ( int ) tb . millitm ) * 1000 ;\n return 0 ;\n }"}
{"idx": 8959, "target": 0, "func": "TEST_F ( OmniboxEditTest , InlineAutocompleteText ) {\n EXPECT_EQ ( base : : string16 ( ) , view ( ) . inline_autocomplete_text ( ) ) ;\n model ( ) -> SetUserText ( base : : ASCIIToUTF16 ( \"he\" ) ) ;\n model ( ) -> OnPopupDataChanged ( base : : ASCIIToUTF16 ( \"llo\" ) , nullptr , base : : string16 ( ) , false ) ;\n EXPECT_EQ ( base : : ASCIIToUTF16 ( \"hello\" ) , view ( ) . GetText ( ) ) ;\n EXPECT_EQ ( base : : ASCIIToUTF16 ( \"llo\" ) , view ( ) . inline_autocomplete_text ( ) ) ;\n base : : string16 text_before = base : : ASCIIToUTF16 ( \"he\" ) ;\n base : : string16 text_after = base : : ASCIIToUTF16 ( \"hel\" ) ;\n OmniboxView : : StateChanges state_changes {\n & text_before , & text_after , 3 , 3 , false , true , false , false }\n ;\n model ( ) -> OnAfterPossibleChange ( state_changes , true ) ;\n EXPECT_EQ ( base : : string16 ( ) , view ( ) . inline_autocomplete_text ( ) ) ;\n model ( ) -> OnPopupDataChanged ( base : : ASCIIToUTF16 ( \"lo\" ) , nullptr , base : : string16 ( ) , false ) ;\n EXPECT_EQ ( base : : ASCIIToUTF16 ( \"hello\" ) , view ( ) . GetText ( ) ) ;\n EXPECT_EQ ( base : : ASCIIToUTF16 ( \"lo\" ) , view ( ) . inline_autocomplete_text ( ) ) ;\n model ( ) -> Revert ( ) ;\n EXPECT_EQ ( base : : string16 ( ) , view ( ) . GetText ( ) ) ;\n EXPECT_EQ ( base : : string16 ( ) , view ( ) . inline_autocomplete_text ( ) ) ;\n model ( ) -> SetUserText ( base : : ASCIIToUTF16 ( \"he\" ) ) ;\n model ( ) -> OnPopupDataChanged ( base : : ASCIIToUTF16 ( \"llo\" ) , nullptr , base : : string16 ( ) , false ) ;\n EXPECT_EQ ( base : : ASCIIToUTF16 ( \"hello\" ) , view ( ) . GetText ( ) ) ;\n EXPECT_EQ ( base : : ASCIIToUTF16 ( \"llo\" ) , view ( ) . inline_autocomplete_text ( ) ) ;\n model ( ) -> AcceptTemporaryTextAsUserText ( ) ;\n EXPECT_EQ ( base : : ASCIIToUTF16 ( \"hello\" ) , view ( ) . GetText ( ) ) ;\n EXPECT_EQ ( base : : string16 ( ) , view ( ) . inline_autocomplete_text ( ) ) ;\n }"}
{"idx": 8960, "target": 0, "func": "static guint16 de_tp_sub_channel ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n guchar oct ;\n const gchar * str ;\n curr_offset = offset ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) & 0x3f ;\n if ( ( oct & 0x38 ) == 0x38 ) str = \"I\" ;\n else if ( ( oct & 0x38 ) == 0x18 ) str = \"F\" ;\n else if ( ( oct & 0x38 ) == 0x10 ) str = \"E\" ;\n else if ( ( oct & 0x38 ) == 0x08 ) str = \"D\" ;\n else if ( ( oct & 0x3c ) == 0x04 ) str = \"C\" ;\n else if ( ( oct & 0x3e ) == 0x02 ) str = \"B\" ;\n else if ( ( oct & 0x3e ) == 0x00 ) str = \"A\" ;\n else str = \"unknown\" ;\n proto_tree_add_uint_format_value ( tree , hf_gsm_a_dtap_test_loop , tvb , curr_offset , 1 , oct , \"%s\" , str ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_subchannel , tvb , curr_offset , 1 , ENC_NA ) ;\n curr_offset += 1 ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 8961, "target": 0, "func": "ZEND_EXTERN_MODULE_GLOBALS ( intl ) # define SEPARATOR \"_\" # define SEPARATOR1 \"-\" # define DELIMITER \"-_\" # define EXTLANG_PREFIX \"a\" # define PRIVATE_PREFIX \"x\" # define DISP_NAME \"name\" # define MAX_NO_VARIANT 15 # define MAX_NO_EXTLANG 3 # define MAX_NO_PRIVATE 15 # define MAX_NO_LOOKUP_LANG_TAG 100 # define LOC_NOT_FOUND 1 # define VARIANT_KEYNAME_LEN 11 # define EXTLANG_KEYNAME_LEN 10 # define PRIVATE_KEYNAME_LEN 11 static const char * const LOC_GRANDFATHERED [ ] = {\n \"art-lojban\" , \"i-klingon\" , \"i-lux\" , \"i-navajo\" , \"no-bok\" , \"no-nyn\" , \"cel-gaulish\" , \"en-GB-oed\" , \"i-ami\" , \"i-bnn\" , \"i-default\" , \"i-enochian\" , \"i-mingo\" , \"i-pwn\" , \"i-tao\" , \"i-tay\" , \"i-tsu\" , \"sgn-BE-fr\" , \"sgn-BE-nl\" , \"sgn-CH-de\" , \"zh-cmn\" , \"zh-cmn-Hans\" , \"zh-cmn-Hant\" , \"zh-gan\" , \"zh-guoyu\" , \"zh-hakka\" , \"zh-min\" , \"zh-min-nan\" , \"zh-wuu\" , \"zh-xiang\" , \"zh-yue\" , NULL }"}
{"idx": 8962, "target": 0, "func": "static void stroke_initiate ( private_stroke_socket_t * this , stroke_msg_t * msg , FILE * out ) {\n pop_string ( msg , & msg -> initiate . name ) ;\n DBG1 ( DBG_CFG , \"received stroke: initiate '%s'\" , msg -> initiate . name ) ;\n this -> control -> initiate ( this -> control , msg , out ) ;\n }"}
{"idx": 8963, "target": 0, "func": "static MV_REFERENCE_FRAME get_frame_type ( const VP9_COMP * cpi ) {\n if ( frame_is_intra_only ( & cpi -> common ) ) return INTRA_FRAME ;\n else if ( cpi -> rc . is_src_frame_alt_ref && cpi -> refresh_golden_frame ) return ALTREF_FRAME ;\n else if ( cpi -> refresh_golden_frame || cpi -> refresh_alt_ref_frame ) return GOLDEN_FRAME ;\n else return LAST_FRAME ;\n }"}
{"idx": 8964, "target": 0, "func": "static int dot_product ( const int16_t * a , const int16_t * b , int length ) {\n int i , sum = 0 ;\n for ( i = 0 ;\n i < length ;\n i ++ ) {\n int prod = a [ i ] * b [ i ] ;\n sum = av_sat_dadd32 ( sum , prod ) ;\n }\n return sum ;\n }"}
{"idx": 8965, "target": 0, "func": "static int tgv_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n TgvContext * s = avctx -> priv_data ;\n const uint8_t * buf_end = buf + buf_size ;\n AVFrame * frame = data ;\n int chunk_type , ret ;\n chunk_type = AV_RL32 ( & buf [ 0 ] ) ;\n buf += EA_PREAMBLE_SIZE ;\n if ( chunk_type == kVGT_TAG ) {\n int pal_count , i ;\n if ( buf + 12 > buf_end ) {\n av_log ( avctx , AV_LOG_WARNING , \"truncated header\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n s -> width = AV_RL16 ( & buf [ 0 ] ) ;\n s -> height = AV_RL16 ( & buf [ 2 ] ) ;\n if ( s -> avctx -> width != s -> width || s -> avctx -> height != s -> height ) {\n avcodec_set_dimensions ( s -> avctx , s -> width , s -> height ) ;\n av_freep ( & s -> frame_buffer ) ;\n av_frame_unref ( & s -> last_frame ) ;\n }\n pal_count = AV_RL16 ( & buf [ 6 ] ) ;\n buf += 12 ;\n for ( i = 0 ;\n i < pal_count && i < AVPALETTE_COUNT && buf + 2 < buf_end ;\n i ++ ) {\n s -> palette [ i ] = AV_RB24 ( buf ) ;\n buf += 3 ;\n }\n }\n if ( ( ret = av_image_check_size ( s -> width , s -> height , 0 , avctx ) ) < 0 ) return ret ;\n if ( ( ret = ff_get_buffer ( avctx , frame , AV_GET_BUFFER_FLAG_REF ) ) < 0 ) return ret ;\n memcpy ( frame -> data [ 1 ] , s -> palette , AVPALETTE_SIZE ) ;\n if ( chunk_type == kVGT_TAG ) {\n int y ;\n frame -> key_frame = 1 ;\n frame -> pict_type = AV_PICTURE_TYPE_I ;\n if ( ! s -> frame_buffer && ! ( s -> frame_buffer = av_malloc ( s -> width * s -> height ) ) ) return AVERROR ( ENOMEM ) ;\n if ( unpack ( buf , buf_end , s -> frame_buffer , s -> avctx -> width , s -> avctx -> height ) < 0 ) {\n av_log ( avctx , AV_LOG_WARNING , \"truncated intra frame\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( y = 0 ;\n y < s -> height ;\n y ++ ) memcpy ( frame -> data [ 0 ] + y * frame -> linesize [ 0 ] , s -> frame_buffer + y * s -> width , s -> width ) ;\n }\n else {\n if ( ! s -> last_frame . data [ 0 ] ) {\n av_log ( avctx , AV_LOG_WARNING , \"inter frame without corresponding intra frame\\n\" ) ;\n return buf_size ;\n }\n frame -> key_frame = 0 ;\n frame -> pict_type = AV_PICTURE_TYPE_P ;\n if ( tgv_decode_inter ( s , frame , buf , buf_end ) < 0 ) {\n av_log ( avctx , AV_LOG_WARNING , \"truncated inter frame\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n av_frame_unref ( & s -> last_frame ) ;\n if ( ( ret = av_frame_ref ( & s -> last_frame , frame ) ) < 0 ) return ret ;\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 8966, "target": 1, "func": "TEST_F ( TemplateURLTest , GenerateKeyword ) {\n std : : string accept_languages = \"en,ru\" ;\n ASSERT_EQ ( ASCIIToUTF16 ( \"foo\" ) , TemplateURL : : GenerateKeyword ( GURL ( \"http://foo\" ) , accept_languages ) ) ;\n ASSERT_EQ ( ASCIIToUTF16 ( \"foo\" ) , TemplateURL : : GenerateKeyword ( GURL ( \"http://www.foo\" ) , accept_languages ) ) ;\n ASSERT_EQ ( ASCIIToUTF16 ( \"blah\" ) , TemplateURL : : GenerateKeyword ( GURL ( \"http://blah/\" ) , accept_languages ) ) ;\n ASSERT_EQ ( ASCIIToUTF16 ( \"www\" ) , TemplateURL : : GenerateKeyword ( GURL ( \"http://www.\" ) , accept_languages ) ) ;\n ASSERT_EQ ( base : : UTF8ToUTF16 ( \"\\xd0\\xb0\\xd0\\xb1\\xd0\\xb2\" ) , TemplateURL : : GenerateKeyword ( GURL ( \"http://xn--80acd\" ) , accept_languages ) ) ;\n }"}
{"idx": 8967, "target": 0, "func": "void TSHttpTxnServerPush ( TSHttpTxn txnp , const char * url , int url_len ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n URL url_obj ;\n url_obj . create ( nullptr ) ;\n if ( url_obj . parse ( url , url_len ) == PARSE_RESULT_ERROR ) {\n url_obj . destroy ( ) ;\n return ;\n }\n HttpSM * sm = reinterpret_cast < HttpSM * > ( txnp ) ;\n Http2Stream * stream = dynamic_cast < Http2Stream * > ( sm -> ua_session ) ;\n if ( stream ) {\n Http2ClientSession * parent = static_cast < Http2ClientSession * > ( stream -> get_parent ( ) ) ;\n if ( ! parent -> is_url_pushed ( url , url_len ) ) {\n HTTPHdr * hptr = & ( sm -> t_state . hdr_info . client_request ) ;\n TSMLoc obj = reinterpret_cast < TSMLoc > ( hptr -> m_http ) ;\n MIMEHdrImpl * mh = _hdr_mloc_to_mime_hdr_impl ( obj ) ;\n MIMEField * f = mime_hdr_field_find ( mh , MIME_FIELD_ACCEPT_ENCODING , MIME_LEN_ACCEPT_ENCODING ) ;\n stream -> push_promise ( url_obj , f ) ;\n parent -> add_url_to_pushed_table ( url , url_len ) ;\n }\n }\n url_obj . destroy ( ) ;\n }"}
{"idx": 8968, "target": 0, "func": "void evdns_set_transaction_id_fn ( ev_uint16_t ( * fn ) ( void ) ) {\n if ( fn ) trans_id_function = fn ;\n else trans_id_function = default_transaction_id_fn ;\n }"}
{"idx": 8969, "target": 1, "func": "void vp9_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint8_t * dst , ptrdiff_t stride , const uint8_t * above , const uint8_t * left ) {\n type ## _predictor ( dst , stride , size , above , left ) ;\n }\n # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) static INLINE void d207_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n intra_pred_allsizes ( d207 )"}
{"idx": 8970, "target": 0, "func": "void ff_h263_encode_mb ( MpegEncContext * s , int16_t block [ 6 ] [ 64 ] , int motion_x , int motion_y ) {\n int cbpc , cbpy , i , cbp , pred_x , pred_y ;\n int16_t pred_dc ;\n int16_t rec_intradc [ 6 ] ;\n int16_t * dc_ptr [ 6 ] ;\n const int interleaved_stats = ( s -> flags & CODEC_FLAG_PASS1 ) ;\n if ( ! s -> mb_intra ) {\n cbp = get_p_cbp ( s , block , motion_x , motion_y ) ;\n if ( ( cbp | motion_x | motion_y | s -> dquant | ( s -> mv_type - MV_TYPE_16X16 ) ) == 0 ) {\n put_bits ( & s -> pb , 1 , 1 ) ;\n if ( interleaved_stats ) {\n s -> misc_bits ++ ;\n s -> last_bits ++ ;\n }\n s -> skip_count ++ ;\n return ;\n }\n put_bits ( & s -> pb , 1 , 0 ) ;\n cbpc = cbp & 3 ;\n cbpy = cbp >> 2 ;\n if ( s -> alt_inter_vlc == 0 || cbpc != 3 ) cbpy ^= 0xF ;\n if ( s -> dquant ) cbpc += 8 ;\n if ( s -> mv_type == MV_TYPE_16X16 ) {\n put_bits ( & s -> pb , ff_h263_inter_MCBPC_bits [ cbpc ] , ff_h263_inter_MCBPC_code [ cbpc ] ) ;\n put_bits ( & s -> pb , ff_h263_cbpy_tab [ cbpy ] [ 1 ] , ff_h263_cbpy_tab [ cbpy ] [ 0 ] ) ;\n if ( s -> dquant ) put_bits ( & s -> pb , 2 , dquant_code [ s -> dquant + 2 ] ) ;\n if ( interleaved_stats ) {\n s -> misc_bits += get_bits_diff ( s ) ;\n }\n ff_h263_pred_motion ( s , 0 , 0 , & pred_x , & pred_y ) ;\n if ( ! s -> umvplus ) {\n ff_h263_encode_motion_vector ( s , motion_x - pred_x , motion_y - pred_y , 1 ) ;\n }\n else {\n h263p_encode_umotion ( s , motion_x - pred_x ) ;\n h263p_encode_umotion ( s , motion_y - pred_y ) ;\n if ( ( ( motion_x - pred_x ) == 1 ) && ( ( motion_y - pred_y ) == 1 ) ) put_bits ( & s -> pb , 1 , 1 ) ;\n }\n }\n else {\n put_bits ( & s -> pb , ff_h263_inter_MCBPC_bits [ cbpc + 16 ] , ff_h263_inter_MCBPC_code [ cbpc + 16 ] ) ;\n put_bits ( & s -> pb , ff_h263_cbpy_tab [ cbpy ] [ 1 ] , ff_h263_cbpy_tab [ cbpy ] [ 0 ] ) ;\n if ( s -> dquant ) put_bits ( & s -> pb , 2 , dquant_code [ s -> dquant + 2 ] ) ;\n if ( interleaved_stats ) {\n s -> misc_bits += get_bits_diff ( s ) ;\n }\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n ff_h263_pred_motion ( s , i , 0 , & pred_x , & pred_y ) ;\n motion_x = s -> current_picture . motion_val [ 0 ] [ s -> block_index [ i ] ] [ 0 ] ;\n motion_y = s -> current_picture . motion_val [ 0 ] [ s -> block_index [ i ] ] [ 1 ] ;\n if ( ! s -> umvplus ) {\n ff_h263_encode_motion_vector ( s , motion_x - pred_x , motion_y - pred_y , 1 ) ;\n }\n else {\n h263p_encode_umotion ( s , motion_x - pred_x ) ;\n h263p_encode_umotion ( s , motion_y - pred_y ) ;\n if ( ( ( motion_x - pred_x ) == 1 ) && ( ( motion_y - pred_y ) == 1 ) ) put_bits ( & s -> pb , 1 , 1 ) ;\n }\n }\n }\n if ( interleaved_stats ) {\n s -> mv_bits += get_bits_diff ( s ) ;\n }\n }\n else {\n assert ( s -> mb_intra ) ;\n cbp = 0 ;\n if ( s -> h263_aic ) {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n int16_t level = block [ i ] [ 0 ] ;\n int scale ;\n if ( i < 4 ) scale = s -> y_dc_scale ;\n else scale = s -> c_dc_scale ;\n pred_dc = ff_h263_pred_dc ( s , i , & dc_ptr [ i ] ) ;\n level -= pred_dc ;\n if ( level >= 0 ) level = ( level + ( scale >> 1 ) ) / scale ;\n else level = ( level - ( scale >> 1 ) ) / scale ;\n if ( level == 0 && s -> block_last_index [ i ] == 0 ) s -> block_last_index [ i ] = - 1 ;\n if ( ! s -> modified_quant ) {\n if ( level < - 127 ) level = - 127 ;\n else if ( level > 127 ) level = 127 ;\n }\n block [ i ] [ 0 ] = level ;\n rec_intradc [ i ] = scale * level + pred_dc ;\n rec_intradc [ i ] |= 1 ;\n if ( rec_intradc [ i ] < 0 ) rec_intradc [ i ] = 0 ;\n else if ( rec_intradc [ i ] > 2047 ) rec_intradc [ i ] = 2047 ;\n * dc_ptr [ i ] = rec_intradc [ i ] ;\n if ( s -> block_last_index [ i ] >= 0 ) cbp |= 1 << ( 5 - i ) ;\n }\n }\n else {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( s -> block_last_index [ i ] >= 1 ) cbp |= 1 << ( 5 - i ) ;\n }\n }\n cbpc = cbp & 3 ;\n if ( s -> pict_type == AV_PICTURE_TYPE_I ) {\n if ( s -> dquant ) cbpc += 4 ;\n put_bits ( & s -> pb , ff_h263_intra_MCBPC_bits [ cbpc ] , ff_h263_intra_MCBPC_code [ cbpc ] ) ;\n }\n else {\n if ( s -> dquant ) cbpc += 8 ;\n put_bits ( & s -> pb , 1 , 0 ) ;\n put_bits ( & s -> pb , ff_h263_inter_MCBPC_bits [ cbpc + 4 ] , ff_h263_inter_MCBPC_code [ cbpc + 4 ] ) ;\n }\n if ( s -> h263_aic ) {\n put_bits ( & s -> pb , 1 , 0 ) ;\n }\n cbpy = cbp >> 2 ;\n put_bits ( & s -> pb , ff_h263_cbpy_tab [ cbpy ] [ 1 ] , ff_h263_cbpy_tab [ cbpy ] [ 0 ] ) ;\n if ( s -> dquant ) put_bits ( & s -> pb , 2 , dquant_code [ s -> dquant + 2 ] ) ;\n if ( interleaved_stats ) {\n s -> misc_bits += get_bits_diff ( s ) ;\n }\n }\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n h263_encode_block ( s , block [ i ] , i ) ;\n if ( s -> h263_aic && s -> mb_intra ) {\n block [ i ] [ 0 ] = rec_intradc [ i ] ;\n }\n }\n if ( interleaved_stats ) {\n if ( ! s -> mb_intra ) {\n s -> p_tex_bits += get_bits_diff ( s ) ;\n s -> f_count ++ ;\n }\n else {\n s -> i_tex_bits += get_bits_diff ( s ) ;\n s -> i_count ++ ;\n }\n }\n }"}
{"idx": 8971, "target": 0, "func": "proto_tree * proto_item_get_subtree ( proto_item * pi ) {\n field_info * fi ;\n if ( ! pi ) return NULL ;\n fi = PITEM_FINFO ( pi ) ;\n if ( ( ! fi ) || ( fi -> tree_type == - 1 ) ) return NULL ;\n return ( proto_tree * ) pi ;\n }"}
{"idx": 8972, "target": 0, "func": "void vp9_disable_segmentation ( struct segmentation * seg ) {\n seg -> enabled = 0 ;\n seg -> update_map = 0 ;\n seg -> update_data = 0 ;\n }"}
{"idx": 8973, "target": 0, "func": "static guint16 de_gcc_orig_ind ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n curr_offset = offset ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_gcc_spare_3 , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_gcc_orig_ind , tvb , curr_offset , 1 , ENC_NA ) ;\n curr_offset ++ ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 8974, "target": 0, "func": "static void test_bug8880 ( ) {\n MYSQL_STMT * stmt_list [ 2 ] , * * stmt ;\n MYSQL_STMT * * stmt_list_end = ( MYSQL_STMT * * ) stmt_list + 2 ;\n int rc ;\n myheader ( \"test_bug8880\" ) ;\n mysql_query ( mysql , \"drop table if exists t1\" ) ;\n mysql_query ( mysql , \"create table t1 (a int not null primary key, b int)\" ) ;\n rc = mysql_query ( mysql , \"insert into t1 values (1,1)\" ) ;\n myquery ( rc ) ;\n for ( stmt = stmt_list ;\n stmt < stmt_list_end ;\n stmt ++ ) * stmt = open_cursor ( \"select a from t1\" ) ;\n for ( stmt = stmt_list ;\n stmt < stmt_list_end ;\n stmt ++ ) {\n rc = mysql_stmt_execute ( * stmt ) ;\n check_execute ( * stmt , rc ) ;\n }\n for ( stmt = stmt_list ;\n stmt < stmt_list_end ;\n stmt ++ ) mysql_stmt_close ( * stmt ) ;\n }"}
{"idx": 8975, "target": 0, "func": "static void dequant ( TwinContext * tctx , GetBitContext * gb , float * out , enum FrameType ftype , const int16_t * cb0 , const int16_t * cb1 , int cb_len ) {\n int pos = 0 ;\n int i , j ;\n for ( i = 0 ;\n i < tctx -> n_div [ ftype ] ;\n i ++ ) {\n int tmp0 , tmp1 ;\n int sign0 = 1 ;\n int sign1 = 1 ;\n const int16_t * tab0 , * tab1 ;\n int length = tctx -> length [ ftype ] [ i >= tctx -> length_change [ ftype ] ] ;\n int bitstream_second_part = ( i >= tctx -> bits_main_spec_change [ ftype ] ) ;\n int bits = tctx -> bits_main_spec [ 0 ] [ ftype ] [ bitstream_second_part ] ;\n if ( bits == 7 ) {\n if ( get_bits1 ( gb ) ) sign0 = - 1 ;\n bits = 6 ;\n }\n tmp0 = get_bits ( gb , bits ) ;\n bits = tctx -> bits_main_spec [ 1 ] [ ftype ] [ bitstream_second_part ] ;\n if ( bits == 7 ) {\n if ( get_bits1 ( gb ) ) sign1 = - 1 ;\n bits = 6 ;\n }\n tmp1 = get_bits ( gb , bits ) ;\n tab0 = cb0 + tmp0 * cb_len ;\n tab1 = cb1 + tmp1 * cb_len ;\n for ( j = 0 ;\n j < length ;\n j ++ ) out [ tctx -> permut [ ftype ] [ pos + j ] ] = sign0 * tab0 [ j ] + sign1 * tab1 [ j ] ;\n pos += length ;\n }\n }"}
{"idx": 8976, "target": 0, "func": "static inline void reset_stats ( VirtIOBalloon * dev ) {\n int i ;\n for ( i = 0 ;\n i < VIRTIO_BALLOON_S_NR ;\n dev -> stats [ i ++ ] = - 1 ) ;\n }"}
{"idx": 8977, "target": 0, "func": "static int dissect_h245_T_iPSourceRouteAddress ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_iPSourceRouteAddress , T_iPSourceRouteAddress_sequence ) ;\n return offset ;\n }"}
{"idx": 8978, "target": 1, "func": "static void write_header ( FILE * sql_file , char * db_name ) {\n if ( opt_xml ) {\n fputs ( \"<?xml version=\\\"1.0\\\"?>\\n\" , sql_file ) ;\n fputs ( \"<mysqldump \" , sql_file ) ;\n fputs ( \"xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\"\" , sql_file ) ;\n fputs ( \">\\n\" , sql_file ) ;\n check_io ( sql_file ) ;\n }\n else if ( ! opt_compact ) {\n print_comment ( sql_file , 0 , \"-- MySQL dump %s Distrib %s, for %s (%s)\\n--\\n\" , DUMP_VERSION , MYSQL_SERVER_VERSION , SYSTEM_TYPE , MACHINE_TYPE ) ;\n print_comment ( sql_file , 0 , \"-- Host: %s Database: %s\\n\" , current_host ? current_host : \"localhost\" , db_name ? db_name : \"\" ) ;\n print_comment ( sql_file , 0 , \"-- ------------------------------------------------------\\n\" ) ;\n print_comment ( sql_file , 0 , \"-- Server version\\t%s\\n\" , mysql_get_server_info ( & mysql_connection ) ) ;\n if ( opt_set_charset ) fprintf ( sql_file , \"\\n/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;\n\" \"\\n/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;\n\" \"\\n/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;\n\" \"\\n/*!40101 SET NAMES %s */;\n\\n\" , default_charset ) ;\n if ( opt_tz_utc ) {\n fprintf ( sql_file , \"/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;\n\\n\" ) ;\n fprintf ( sql_file , \"/*!40103 SET TIME_ZONE='+00:00' */;\n\\n\" ) ;\n }\n if ( ! path ) {\n if ( ! opt_no_create_info ) {\n fprintf ( md_result_file , \"\\ /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;\n\\n\" ) ;\n }\n fprintf ( md_result_file , \"\\ /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;\n\\n\\ \" ) ;\n }\n fprintf ( sql_file , \"/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='%s%s%s' */;\n\\n\" \"/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;\n\\n\" , path ? \"\" : \"NO_AUTO_VALUE_ON_ZERO\" , compatible_mode_normal_str [ 0 ] == 0 ? \"\" : \",\" , compatible_mode_normal_str ) ;\n check_io ( sql_file ) ;\n }\n }"}
{"idx": 8979, "target": 0, "func": "static void dissect_zcl_groups_remove_group ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_groups_group_id , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n }"}
{"idx": 8980, "target": 0, "func": "static void move_file_to_extension_queue ( NautilusDirectory * directory , NautilusFile * file ) {\n nautilus_file_queue_enqueue ( directory -> details -> extension_queue , file ) ;\n nautilus_file_queue_remove ( directory -> details -> low_priority_queue , file ) ;\n }"}
{"idx": 8981, "target": 0, "func": "TEST_F ( WebUsbDetectorTest , ThreeUsbDevicesAddedAndRemoved ) {\n base : : string16 product_name_1 = base : : UTF8ToUTF16 ( kProductName_1 ) ;\n GURL landing_page_1 ( kLandingPage_1 ) ;\n scoped_refptr < device : : MockUsbDevice > device_1 ( new device : : MockUsbDevice ( 0 , 1 , \"Google\" , kProductName_1 , \"002\" , landing_page_1 ) ) ;\n std : : string guid_1 = device_1 -> guid ( ) ;\n base : : string16 product_name_2 = base : : UTF8ToUTF16 ( kProductName_2 ) ;\n GURL landing_page_2 ( kLandingPage_2 ) ;\n scoped_refptr < device : : MockUsbDevice > device_2 ( new device : : MockUsbDevice ( 3 , 4 , \"Google\" , kProductName_2 , \"005\" , landing_page_2 ) ) ;\n std : : string guid_2 = device_2 -> guid ( ) ;\n base : : string16 product_name_3 = base : : UTF8ToUTF16 ( kProductName_3 ) ;\n GURL landing_page_3 ( kLandingPage_3 ) ;\n scoped_refptr < device : : MockUsbDevice > device_3 ( new device : : MockUsbDevice ( 6 , 7 , \"Google\" , kProductName_3 , \"008\" , landing_page_3 ) ) ;\n std : : string guid_3 = device_3 -> guid ( ) ;\n Initialize ( ) ;\n device_client_ . usb_service ( ) -> AddDevice ( device_1 ) ;\n message_center : : Notification * notification_1 = message_center_ -> FindVisibleNotificationById ( guid_1 ) ;\n ASSERT_TRUE ( notification_1 != nullptr ) ;\n base : : string16 expected_title_1 = base : : ASCIIToUTF16 ( \"Google Product A detected\" ) ;\n EXPECT_EQ ( expected_title_1 , notification_1 -> title ( ) ) ;\n base : : string16 expected_message_1 = base : : ASCIIToUTF16 ( \"Go to www.google.com to connect.\" ) ;\n EXPECT_EQ ( expected_message_1 , notification_1 -> message ( ) ) ;\n EXPECT_TRUE ( notification_1 -> delegate ( ) != nullptr ) ;\n device_client_ . usb_service ( ) -> RemoveDevice ( device_1 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_1 ) == nullptr ) ;\n device_client_ . usb_service ( ) -> AddDevice ( device_2 ) ;\n message_center : : Notification * notification_2 = message_center_ -> FindVisibleNotificationById ( guid_2 ) ;\n ASSERT_TRUE ( notification_2 != nullptr ) ;\n base : : string16 expected_title_2 = base : : ASCIIToUTF16 ( \"Google Product B detected\" ) ;\n EXPECT_EQ ( expected_title_2 , notification_2 -> title ( ) ) ;\n base : : string16 expected_message_2 = base : : ASCIIToUTF16 ( \"Go to www.google.com to connect.\" ) ;\n EXPECT_EQ ( expected_message_2 , notification_2 -> message ( ) ) ;\n EXPECT_TRUE ( notification_2 -> delegate ( ) != nullptr ) ;\n device_client_ . usb_service ( ) -> RemoveDevice ( device_2 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_2 ) == nullptr ) ;\n device_client_ . usb_service ( ) -> AddDevice ( device_3 ) ;\n message_center : : Notification * notification_3 = message_center_ -> FindVisibleNotificationById ( guid_3 ) ;\n ASSERT_TRUE ( notification_3 != nullptr ) ;\n base : : string16 expected_title_3 = base : : ASCIIToUTF16 ( \"Google Product C detected\" ) ;\n EXPECT_EQ ( expected_title_3 , notification_3 -> title ( ) ) ;\n base : : string16 expected_message_3 = base : : ASCIIToUTF16 ( \"Go to www.google.com to connect.\" ) ;\n EXPECT_EQ ( expected_message_3 , notification_3 -> message ( ) ) ;\n EXPECT_TRUE ( notification_3 -> delegate ( ) != nullptr ) ;\n device_client_ . usb_service ( ) -> RemoveDevice ( device_3 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_3 ) == nullptr ) ;\n }"}
{"idx": 8982, "target": 0, "func": "static int SpoolssEnumPrinterDataEx_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n char * key_name ;\n proto_item * hidden_item ;\n hidden_item = proto_tree_add_uint ( tree , hf_printerdata , tvb , offset , 0 , 1 ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , NULL , NULL , FALSE , FALSE ) ;\n offset = dissect_ndr_cvstring ( tvb , offset , pinfo , tree , di , drep , sizeof ( guint16 ) , hf_printerdata_key , TRUE , & key_name ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , key_name ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_offered , NULL ) ;\n return offset ;\n }"}
{"idx": 8983, "target": 0, "func": "static void cl_hash ( register count_int chsize , GifCtx * ctx ) {\n register count_int * htab_p = ctx -> htab + chsize ;\n register long i ;\n register long m1 = - 1 ;\n i = chsize - 16 ;\n do {\n * ( htab_p - 16 ) = m1 ;\n * ( htab_p - 15 ) = m1 ;\n * ( htab_p - 14 ) = m1 ;\n * ( htab_p - 13 ) = m1 ;\n * ( htab_p - 12 ) = m1 ;\n * ( htab_p - 11 ) = m1 ;\n * ( htab_p - 10 ) = m1 ;\n * ( htab_p - 9 ) = m1 ;\n * ( htab_p - 8 ) = m1 ;\n * ( htab_p - 7 ) = m1 ;\n * ( htab_p - 6 ) = m1 ;\n * ( htab_p - 5 ) = m1 ;\n * ( htab_p - 4 ) = m1 ;\n * ( htab_p - 3 ) = m1 ;\n * ( htab_p - 2 ) = m1 ;\n * ( htab_p - 1 ) = m1 ;\n htab_p -= 16 ;\n }\n while ( ( i -= 16 ) >= 0 ) ;\n for ( i += 16 ;\n i > 0 ;\n -- i ) {\n * -- htab_p = m1 ;\n }\n }"}
{"idx": 8984, "target": 0, "func": "static void dumpcffheader ( FILE * cfff ) {\n putc ( '\\1' , cfff ) ;\n putc ( '\\0' , cfff ) ;\n putc ( '\\4' , cfff ) ;\n putc ( '\\4' , cfff ) ;\n }"}
{"idx": 8985, "target": 0, "func": "int tls_get_message_header ( SSL * s , int * mt ) {\n int skip_message , i , recvd_type , al ;\n unsigned char * p ;\n unsigned long l ;\n p = ( unsigned char * ) s -> init_buf -> data ;\n do {\n while ( s -> init_num < SSL3_HM_HEADER_LENGTH ) {\n i = s -> method -> ssl_read_bytes ( s , SSL3_RT_HANDSHAKE , & recvd_type , & p [ s -> init_num ] , SSL3_HM_HEADER_LENGTH - s -> init_num , 0 ) ;\n if ( i <= 0 ) {\n s -> rwstate = SSL_READING ;\n return 0 ;\n }\n if ( recvd_type == SSL3_RT_CHANGE_CIPHER_SPEC ) {\n if ( s -> init_num != 0 || i != 1 || p [ 0 ] != SSL3_MT_CCS ) {\n al = SSL_AD_UNEXPECTED_MESSAGE ;\n SSLerr ( SSL_F_TLS_GET_MESSAGE_HEADER , SSL_R_BAD_CHANGE_CIPHER_SPEC ) ;\n goto f_err ;\n }\n s -> s3 -> tmp . message_type = * mt = SSL3_MT_CHANGE_CIPHER_SPEC ;\n s -> init_num = i - 1 ;\n s -> s3 -> tmp . message_size = i ;\n return 1 ;\n }\n else if ( recvd_type != SSL3_RT_HANDSHAKE ) {\n al = SSL_AD_UNEXPECTED_MESSAGE ;\n SSLerr ( SSL_F_TLS_GET_MESSAGE_HEADER , SSL_R_CCS_RECEIVED_EARLY ) ;\n goto f_err ;\n }\n s -> init_num += i ;\n }\n skip_message = 0 ;\n if ( ! s -> server ) if ( p [ 0 ] == SSL3_MT_HELLO_REQUEST ) if ( p [ 1 ] == 0 && p [ 2 ] == 0 && p [ 3 ] == 0 ) {\n s -> init_num = 0 ;\n skip_message = 1 ;\n if ( s -> msg_callback ) s -> msg_callback ( 0 , s -> version , SSL3_RT_HANDSHAKE , p , SSL3_HM_HEADER_LENGTH , s , s -> msg_callback_arg ) ;\n }\n }\n while ( skip_message ) ;\n * mt = * p ;\n s -> s3 -> tmp . message_type = * ( p ++ ) ;\n if ( RECORD_LAYER_is_sslv2_record ( & s -> rlayer ) ) {\n l = RECORD_LAYER_get_rrec_length ( & s -> rlayer ) + SSL3_HM_HEADER_LENGTH ;\n if ( l && ! BUF_MEM_grow_clean ( s -> init_buf , ( int ) l ) ) {\n SSLerr ( SSL_F_TLS_GET_MESSAGE_HEADER , ERR_R_BUF_LIB ) ;\n goto err ;\n }\n s -> s3 -> tmp . message_size = l ;\n s -> init_msg = s -> init_buf -> data ;\n s -> init_num = SSL3_HM_HEADER_LENGTH ;\n }\n else {\n n2l3 ( p , l ) ;\n if ( l > ( INT_MAX - SSL3_HM_HEADER_LENGTH ) ) {\n al = SSL_AD_ILLEGAL_PARAMETER ;\n SSLerr ( SSL_F_TLS_GET_MESSAGE_HEADER , SSL_R_EXCESSIVE_MESSAGE_SIZE ) ;\n goto f_err ;\n }\n if ( l && ! BUF_MEM_grow_clean ( s -> init_buf , ( int ) l + SSL3_HM_HEADER_LENGTH ) ) {\n SSLerr ( SSL_F_TLS_GET_MESSAGE_HEADER , ERR_R_BUF_LIB ) ;\n goto err ;\n }\n s -> s3 -> tmp . message_size = l ;\n s -> init_msg = s -> init_buf -> data + SSL3_HM_HEADER_LENGTH ;\n s -> init_num = 0 ;\n }\n return 1 ;\n f_err : ssl3_send_alert ( s , SSL3_AL_FATAL , al ) ;\n err : return 0 ;\n }"}
{"idx": 8986, "target": 0, "func": "static VALUE ossl_x509name_hash ( VALUE self ) {\n X509_NAME * name ;\n unsigned long hash ;\n GetX509Name ( self , name ) ;\n hash = X509_NAME_hash ( name ) ;\n return ULONG2NUM ( hash ) ;\n }"}
{"idx": 8987, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , NoPaintForEmptyDocument ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : FIRST_LAYOUT ) ;\n waiter -> AddPageExpectation ( TimingField : : LOAD_EVENT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/empty.html\" ) ) ;\n waiter -> Wait ( ) ;\n EXPECT_FALSE ( waiter -> DidObserveInPage ( TimingField : : FIRST_PAINT ) ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramFirstLayout , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramLoad , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramFirstPaint , 0 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramFirstContentfulPaint , 0 ) ;\n }"}
{"idx": 8988, "target": 0, "func": "static int decode_blockcodes ( int code1 , int code2 , int levels , int * values ) {\n return decode_blockcode ( code1 , levels , values ) | decode_blockcode ( code2 , levels , values + 4 ) ;\n }"}
{"idx": 8989, "target": 0, "func": "int nntp_check_children ( struct Context * ctx , const char * msgid ) {\n struct NntpData * nntp_data = ctx -> data ;\n struct ChildCtx cc ;\n char buf [ STRING ] ;\n int rc ;\n bool quiet ;\n void * hc = NULL ;\n if ( ! nntp_data || ! nntp_data -> nserv ) return - 1 ;\n if ( nntp_data -> first_message > nntp_data -> last_loaded ) return 0 ;\n cc . ctx = ctx ;\n cc . num = 0 ;\n cc . max = 10 ;\n cc . child = mutt_mem_malloc ( sizeof ( anum_t ) * cc . max ) ;\n snprintf ( buf , sizeof ( buf ) , \"XPAT References %u-%u *%s*\\r\\n\" , nntp_data -> first_message , nntp_data -> last_loaded , msgid ) ;\n rc = nntp_fetch_lines ( nntp_data , buf , sizeof ( buf ) , NULL , fetch_children , & cc ) ;\n if ( rc ) {\n FREE ( & cc . child ) ;\n if ( rc > 0 ) {\n if ( mutt_str_strncmp ( \"500\" , buf , 3 ) != 0 ) mutt_error ( \"XPAT: %s\" , buf ) ;\n else {\n mutt_error ( _ ( \"Unable to find child articles because server does not \" \"support XPAT command.\" ) ) ;\n }\n }\n return - 1 ;\n }\n quiet = ctx -> quiet ;\n ctx -> quiet = true ;\n # ifdef USE_HCACHE hc = nntp_hcache_open ( nntp_data ) ;\n # endif for ( int i = 0 ;\n i < cc . num ;\n i ++ ) {\n rc = nntp_fetch_headers ( ctx , hc , cc . child [ i ] , cc . child [ i ] , 1 ) ;\n if ( rc < 0 ) break ;\n }\n # ifdef USE_HCACHE mutt_hcache_close ( hc ) ;\n # endif ctx -> quiet = quiet ;\n FREE ( & cc . child ) ;\n return ( rc < 0 ) ? - 1 : 0 ;\n }"}
{"idx": 8990, "target": 0, "func": "static void _slurm_rpc_resv_update ( slurm_msg_t * msg ) {\n int error_code = SLURM_SUCCESS ;\n DEF_TIMERS ;\n resv_desc_msg_t * resv_desc_ptr = ( resv_desc_msg_t * ) msg -> data ;\n slurmctld_lock_t node_write_lock = {\n READ_LOCK , READ_LOCK , WRITE_LOCK , READ_LOCK , NO_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n START_TIMER ;\n debug2 ( \"Processing RPC: REQUEST_UPDATE_RESERVATION from uid=%d\" , uid ) ;\n if ( ! validate_operator ( uid ) ) {\n error_code = ESLURM_USER_ID_MISSING ;\n error ( \"Security violation, UPDATE_RESERVATION RPC from uid=%d\" , uid ) ;\n }\n if ( error_code == SLURM_SUCCESS ) {\n lock_slurmctld ( node_write_lock ) ;\n error_code = update_resv ( resv_desc_ptr ) ;\n unlock_slurmctld ( node_write_lock ) ;\n END_TIMER2 ( \"_slurm_rpc_resv_update\" ) ;\n }\n if ( error_code ) {\n info ( \"_slurm_rpc_resv_update reservation=%s: %s\" , resv_desc_ptr -> name , slurm_strerror ( error_code ) ) ;\n slurm_send_rc_msg ( msg , error_code ) ;\n }\n else {\n debug2 ( \"_slurm_rpc_resv_update complete for %s %s\" , resv_desc_ptr -> name , TIME_STR ) ;\n slurm_send_rc_msg ( msg , SLURM_SUCCESS ) ;\n queue_job_scheduler ( ) ;\n }\n }"}
{"idx": 8991, "target": 0, "func": "static off_t write_reused_pack ( struct sha1file * f ) {\n unsigned char buffer [ 8192 ] ;\n off_t to_write , total ;\n int fd ;\n if ( ! is_pack_valid ( reuse_packfile ) ) die ( \"packfile is invalid: %s\" , reuse_packfile -> pack_name ) ;\n fd = git_open_noatime ( reuse_packfile -> pack_name ) ;\n if ( fd < 0 ) die_errno ( \"unable to open packfile for reuse: %s\" , reuse_packfile -> pack_name ) ;\n if ( lseek ( fd , sizeof ( struct pack_header ) , SEEK_SET ) == - 1 ) die_errno ( \"unable to seek in reused packfile\" ) ;\n if ( reuse_packfile_offset < 0 ) reuse_packfile_offset = reuse_packfile -> pack_size - 20 ;\n total = to_write = reuse_packfile_offset - sizeof ( struct pack_header ) ;\n while ( to_write ) {\n int read_pack = xread ( fd , buffer , sizeof ( buffer ) ) ;\n if ( read_pack <= 0 ) die_errno ( \"unable to read from reused packfile\" ) ;\n if ( read_pack > to_write ) read_pack = to_write ;\n sha1write ( f , buffer , read_pack ) ;\n to_write -= read_pack ;\n written = reuse_packfile_objects * ( ( ( double ) ( total - to_write ) ) / total ) ;\n display_progress ( progress_state , written ) ;\n }\n close ( fd ) ;\n written = reuse_packfile_objects ;\n display_progress ( progress_state , written ) ;\n return reuse_packfile_offset - sizeof ( struct pack_header ) ;\n }"}
{"idx": 8992, "target": 0, "func": "void TSHttpTxnOverwriteExpireTime ( TSHttpTxn txnp , time_t expire_time ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpTransact : : State * s = & ( ( ( HttpSM * ) txnp ) -> t_state ) ;\n s -> plugin_set_expire_time = expire_time ;\n }"}
{"idx": 8993, "target": 0, "func": "static int rtp_packetize_swab ( sout_stream_id_sys_t * id , block_t * in ) {\n unsigned max = rtp_mtu ( id ) ;\n while ( in -> i_buffer > 0 ) {\n unsigned payload = ( max < in -> i_buffer ) ? max : in -> i_buffer ;\n unsigned duration = ( in -> i_length * payload ) / in -> i_buffer ;\n bool marker = ( in -> i_flags & BLOCK_FLAG_DISCONTINUITY ) != 0 ;\n block_t * out = block_Alloc ( 12 + payload ) ;\n if ( unlikely ( out == NULL ) ) {\n block_Release ( in ) ;\n return VLC_ENOMEM ;\n }\n rtp_packetize_common ( id , out , marker , in -> i_pts ) ;\n swab ( in -> p_buffer , out -> p_buffer + 12 , payload ) ;\n rtp_packetize_send ( id , out ) ;\n in -> p_buffer += payload ;\n in -> i_buffer -= payload ;\n in -> i_pts += duration ;\n in -> i_length -= duration ;\n in -> i_flags &= ~ BLOCK_FLAG_DISCONTINUITY ;\n }\n block_Release ( in ) ;\n return VLC_SUCCESS ;\n }"}
{"idx": 8994, "target": 0, "func": "static const char * c_escape_str ( AVBPrint * dst , const char * src , const char sep , void * log_ctx ) {\n const char * p ;\n for ( p = src ;\n * p ;\n p ++ ) {\n switch ( * p ) {\n case '\\b' : av_bprintf ( dst , \"%s\" , \"\\\\b\" ) ;\n break ;\n case '\\f' : av_bprintf ( dst , \"%s\" , \"\\\\f\" ) ;\n break ;\n case '\\n' : av_bprintf ( dst , \"%s\" , \"\\\\n\" ) ;\n break ;\n case '\\r' : av_bprintf ( dst , \"%s\" , \"\\\\r\" ) ;\n break ;\n case '\\\\' : av_bprintf ( dst , \"%s\" , \"\\\\\\\\\" ) ;\n break ;\n default : if ( * p == sep ) av_bprint_chars ( dst , '\\\\' , 1 ) ;\n av_bprint_chars ( dst , * p , 1 ) ;\n }\n }\n return dst -> str ;\n }"}
{"idx": 8995, "target": 0, "func": "static Pattern_Prefix_Status like_fixed_prefix ( Const * patt_const , bool case_insensitive , Oid collation , Const * * prefix_const , Selectivity * rest_selec ) {\n char * match ;\n char * patt ;\n int pattlen ;\n Oid typeid = patt_const -> consttype ;\n int pos , match_pos ;\n bool is_multibyte = ( pg_database_encoding_max_length ( ) > 1 ) ;\n pg_locale_t locale = 0 ;\n bool locale_is_c = false ;\n Assert ( typeid == BYTEAOID || typeid == TEXTOID ) ;\n if ( case_insensitive ) {\n if ( typeid == BYTEAOID ) ereport ( ERROR , ( errcode ( ERRCODE_FEATURE_NOT_SUPPORTED ) , errmsg ( \"case insensitive matching not supported on type bytea\" ) ) ) ;\n if ( lc_ctype_is_c ( collation ) ) locale_is_c = true ;\n else if ( collation != DEFAULT_COLLATION_OID ) {\n if ( ! OidIsValid ( collation ) ) {\n ereport ( ERROR , ( errcode ( ERRCODE_INDETERMINATE_COLLATION ) , errmsg ( \"could not determine which collation to use for ILIKE\" ) , errhint ( \"Use the COLLATE clause to set the collation explicitly.\" ) ) ) ;\n }\n locale = pg_newlocale_from_collation ( collation ) ;\n }\n }\n if ( typeid != BYTEAOID ) {\n patt = TextDatumGetCString ( patt_const -> constvalue ) ;\n pattlen = strlen ( patt ) ;\n }\n else {\n bytea * bstr = DatumGetByteaP ( patt_const -> constvalue ) ;\n pattlen = VARSIZE ( bstr ) - VARHDRSZ ;\n patt = ( char * ) palloc ( pattlen ) ;\n memcpy ( patt , VARDATA ( bstr ) , pattlen ) ;\n if ( ( Pointer ) bstr != DatumGetPointer ( patt_const -> constvalue ) ) pfree ( bstr ) ;\n }\n match = palloc ( pattlen + 1 ) ;\n match_pos = 0 ;\n for ( pos = 0 ;\n pos < pattlen ;\n pos ++ ) {\n if ( patt [ pos ] == '%' || patt [ pos ] == '_' ) break ;\n if ( patt [ pos ] == '\\\\' ) {\n pos ++ ;\n if ( pos >= pattlen ) break ;\n }\n if ( case_insensitive && pattern_char_isalpha ( patt [ pos ] , is_multibyte , locale , locale_is_c ) ) break ;\n match [ match_pos ++ ] = patt [ pos ] ;\n }\n match [ match_pos ] = '\\0' ;\n if ( typeid != BYTEAOID ) * prefix_const = string_to_const ( match , typeid ) ;\n else * prefix_const = string_to_bytea_const ( match , match_pos ) ;\n if ( rest_selec != NULL ) * rest_selec = like_selectivity ( & patt [ pos ] , pattlen - pos , case_insensitive ) ;\n pfree ( patt ) ;\n pfree ( match ) ;\n if ( pos == pattlen ) return Pattern_Prefix_Exact ;\n if ( match_pos > 0 ) return Pattern_Prefix_Partial ;\n return Pattern_Prefix_None ;\n }"}
{"idx": 8996, "target": 0, "func": "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 ) {\n encoder_sys_t * p_sys = p_enc -> p_sys ;\n if ( list && psz_name_text && psz_name && psz_value ) {\n for ( int i = 0 ;\n i < i_list_size ;\n ++ i ) {\n if ( strcmp ( list [ i ] , psz_value ) ) continue ;\n schro_encoder_setting_set_double ( p_sys -> p_schro , psz_name , i ) ;\n return true ;\n }\n msg_Err ( p_enc , \"Invalid %s: %s\" , psz_name_text , psz_value ) ;\n }\n return false ;\n }"}
{"idx": 8997, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( WebRtcApprtcBrowserTest , MANUAL_WorksOnApprtc ) {\n DetectErrorsInJavaScript ( ) ;\n ASSERT_TRUE ( LaunchApprtcInstanceOnLocalhost ( \"9999\" ) ) ;\n ASSERT_TRUE ( LaunchColliderOnLocalHost ( \"http://localhost:9999\" , \"8089\" ) ) ;\n while ( ! LocalApprtcInstanceIsUp ( ) ) DVLOG ( 1 ) << \"Waiting for AppRTC to come up...\" ;\n GURL room_url = GURL ( \"http://localhost:9999/r/some_room\" \"?wshpp=localhost:8089&wstls=false\" ) ;\n chrome : : AddTabAt ( browser ( ) , GURL ( ) , - 1 , true ) ;\n content : : WebContents * left_tab = browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) ;\n PermissionBubbleManager : : FromWebContents ( left_tab ) -> set_auto_response_for_test ( PermissionBubbleManager : : ACCEPT_ALL ) ;\n InfoBarResponder left_infobar_responder ( InfoBarService : : FromWebContents ( left_tab ) , InfoBarResponder : : ACCEPT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , room_url ) ;\n chrome : : AddTabAt ( browser ( ) , GURL ( ) , - 1 , true ) ;\n content : : WebContents * right_tab = browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) ;\n PermissionBubbleManager : : FromWebContents ( right_tab ) -> set_auto_response_for_test ( PermissionBubbleManager : : ACCEPT_ALL ) ;\n InfoBarResponder right_infobar_responder ( InfoBarService : : FromWebContents ( right_tab ) , InfoBarResponder : : ACCEPT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , room_url ) ;\n ASSERT_TRUE ( WaitForCallToComeUp ( left_tab ) ) ;\n ASSERT_TRUE ( WaitForCallToComeUp ( right_tab ) ) ;\n ASSERT_TRUE ( DetectRemoteVideoPlaying ( left_tab ) ) ;\n ASSERT_TRUE ( DetectRemoteVideoPlaying ( right_tab ) ) ;\n chrome : : CloseWebContents ( browser ( ) , left_tab , false ) ;\n chrome : : CloseWebContents ( browser ( ) , right_tab , false ) ;\n }"}
{"idx": 8998, "target": 0, "func": "static call_list * call_list_append ( call_list * list , guint16 scallno ) {\n call_list * node = wmem_new0 ( wmem_packet_scope ( ) , call_list ) ;\n node -> scallno = scallno ;\n if ( list ) {\n call_list * cur = list ;\n while ( cur -> next ) {\n cur = cur -> next ;\n }\n cur -> next = node ;\n return list ;\n }\n else {\n return node ;\n }\n }"}
{"idx": 8999, "target": 0, "func": "static cmsBool ReadOneElem ( cmsIOHANDLER * io , _cmsDICelem * e , cmsUInt32Number i , cmsUInt32Number BaseOffset ) {\n if ( ! _cmsReadUInt32Number ( io , & e -> Offsets [ i ] ) ) return FALSE ;\n if ( ! _cmsReadUInt32Number ( io , & e -> Sizes [ i ] ) ) return FALSE ;\n if ( e -> Offsets [ i ] > 0 ) e -> Offsets [ i ] += BaseOffset ;\n return TRUE ;\n }"}
{"idx": 9000, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FullscreenControllerInteractiveTest , DISABLED_ReloadExitsMouseLockAndFullscreen ) {\n ASSERT_TRUE ( test_server ( ) -> Start ( ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , test_server ( ) -> GetURL ( kFullscreenMouseLockHTML ) ) ;\n ASSERT_FALSE ( IsMouseLockPermissionRequested ( ) ) ;\n ASSERT_TRUE ( ui_test_utils : : SendKeyPressAndWait ( browser ( ) , ui : : VKEY_1 , false , false , false , false , chrome : : NOTIFICATION_MOUSE_LOCK_CHANGED , content : : NotificationService : : AllSources ( ) ) ) ;\n ASSERT_TRUE ( IsMouseLockPermissionRequested ( ) ) ;\n {\n MouseLockNotificationObserver mouselock_observer ;\n Reload ( ) ;\n mouselock_observer . Wait ( ) ;\n ASSERT_FALSE ( IsMouseLockPermissionRequested ( ) ) ;\n }\n ASSERT_TRUE ( ui_test_utils : : SendKeyPressAndWait ( browser ( ) , ui : : VKEY_1 , false , false , false , false , chrome : : NOTIFICATION_MOUSE_LOCK_CHANGED , content : : NotificationService : : AllSources ( ) ) ) ;\n ASSERT_TRUE ( IsMouseLockPermissionRequested ( ) ) ;\n AcceptCurrentFullscreenOrMouseLockRequest ( ) ;\n ASSERT_TRUE ( IsMouseLocked ( ) ) ;\n ASSERT_TRUE ( IsFullscreenBubbleDisplayed ( ) ) ;\n {\n MouseLockNotificationObserver mouselock_observer ;\n Reload ( ) ;\n mouselock_observer . Wait ( ) ;\n ASSERT_FALSE ( IsMouseLocked ( ) ) ;\n }\n {\n FullscreenNotificationObserver fullscreen_observer ;\n ASSERT_TRUE ( ui_test_utils : : SendKeyPressAndWait ( browser ( ) , ui : : VKEY_B , false , true , false , false , chrome : : NOTIFICATION_MOUSE_LOCK_CHANGED , content : : NotificationService : : AllSources ( ) ) ) ;\n fullscreen_observer . Wait ( ) ;\n }\n ASSERT_TRUE ( IsWindowFullscreenForTabOrPending ( ) ) ;\n {\n FullscreenNotificationObserver fullscreen_observer ;\n Reload ( ) ;\n fullscreen_observer . Wait ( ) ;\n ASSERT_FALSE ( IsMouseLocked ( ) ) ;\n ASSERT_FALSE ( IsWindowFullscreenForTabOrPending ( ) ) ;\n }\n }"}
{"idx": 9001, "target": 0, "func": "TEST_F ( BudgetDatabaseTest , CheckBackgroundBudgetHistogram ) {\n base : : SimpleTestClock * clock = SetClockForTesting ( ) ;\n SetSiteEngagementScore ( kEngagement ) ;\n GetBudgetDetails ( ) ;\n clock -> Advance ( base : : TimeDelta : : FromDays ( kDefaultExpirationInDays / 2 ) ) ;\n GetBudgetDetails ( ) ;\n clock -> Advance ( base : : TimeDelta : : FromMinutes ( 59 ) ) ;\n GetBudgetDetails ( ) ;\n clock -> Advance ( base : : TimeDelta : : FromDays ( kDefaultExpirationInDays + 1 ) ) ;\n GetBudgetDetails ( ) ;\n std : : vector < base : : Bucket > buckets = GetHistogramTester ( ) -> GetAllSamples ( \"PushMessaging.BackgroundBudget\" ) ;\n ASSERT_EQ ( 2U , buckets . size ( ) ) ;\n double full_award = kMaxDailyBudget * kEngagement / SiteEngagementScore : : kMaxPoints * kDefaultExpirationInDays ;\n EXPECT_EQ ( floor ( full_award ) , buckets [ 0 ] . min ) ;\n EXPECT_EQ ( 2 , buckets [ 0 ] . count ) ;\n EXPECT_EQ ( floor ( full_award * 1.5 ) , buckets [ 1 ] . min ) ;\n EXPECT_EQ ( 1 , buckets [ 1 ] . count ) ;\n }"}
{"idx": 9002, "target": 1, "func": "int # ifdef GLOB_ATTRIBUTE GLOB_ATTRIBUTE # endif glob ( pattern , flags , errfunc , pglob ) const char * pattern ;\n int flags ;\n int ( * errfunc ) ( const char * , int ) ;\n glob_t * pglob ;\n {\n const char * filename ;\n const char * dirname ;\n size_t dirlen ;\n int status ;\n size_t oldcount ;\n int meta ;\n int dirname_modified ;\n glob_t dirs ;\n if ( pattern == NULL || pglob == NULL || ( flags & ~ __GLOB_FLAGS ) != 0 ) {\n __set_errno ( EINVAL ) ;\n return - 1 ;\n }\n if ( ! ( flags & GLOB_DOOFFS ) ) pglob -> gl_offs = 0 ;\n if ( flags & GLOB_BRACE ) {\n const char * begin ;\n if ( flags & GLOB_NOESCAPE ) begin = strchr ( pattern , '{\n' ) ;\n else {\n begin = pattern ;\n while ( 1 ) {\n if ( * begin == '\\0' ) {\n begin = NULL ;\n break ;\n }\n if ( * begin == '\\\\' && begin [ 1 ] != '\\0' ) ++ begin ;\n else if ( * begin == '{\n' ) break ;\n ++ begin ;\n }\n }\n if ( begin != NULL ) {\n size_t firstc ;\n char * alt_start ;\n const char * p ;\n const char * next ;\n const char * rest ;\n size_t rest_len ;\n # ifdef __GNUC__ char onealt [ strlen ( pattern ) - 1 ] ;\n # else char * onealt = ( char * ) malloc ( strlen ( pattern ) - 1 ) ;\n if ( onealt == NULL ) {\n if ( ! ( flags & GLOB_APPEND ) ) {\n pglob -> gl_pathc = 0 ;\n pglob -> gl_pathv = NULL ;\n }\n return GLOB_NOSPACE ;\n }\n # endif alt_start = mempcpy ( onealt , pattern , begin - pattern ) ;\n next = next_brace_sub ( begin + 1 , flags ) ;\n if ( next == NULL ) {\n # ifndef __GNUC__ free ( onealt ) ;\n # endif return glob ( pattern , flags & ~ GLOB_BRACE , errfunc , pglob ) ;\n }\n rest = next ;\n while ( * rest != '}\n' ) {\n rest = next_brace_sub ( rest + 1 , flags ) ;\n if ( rest == NULL ) {\n # ifndef __GNUC__ free ( onealt ) ;\n # endif return glob ( pattern , flags & ~ GLOB_BRACE , errfunc , pglob ) ;\n }\n }\n rest_len = strlen ( ++ rest ) + 1 ;\n if ( ! ( flags & GLOB_APPEND ) ) {\n pglob -> gl_pathc = 0 ;\n pglob -> gl_pathv = NULL ;\n }\n firstc = pglob -> gl_pathc ;\n p = begin + 1 ;\n while ( 1 ) {\n int result ;\n mempcpy ( mempcpy ( alt_start , p , next - p ) , rest , rest_len ) ;\n result = glob ( onealt , ( ( flags & ~ ( GLOB_NOCHECK | GLOB_NOMAGIC ) ) | GLOB_APPEND ) , errfunc , pglob ) ;\n if ( result && result != GLOB_NOMATCH ) {\n # ifndef __GNUC__ free ( onealt ) ;\n # endif if ( ! ( flags & GLOB_APPEND ) ) {\n globfree ( pglob ) ;\n pglob -> gl_pathc = 0 ;\n }\n return result ;\n }\n if ( * next == '}\n' ) break ;\n p = next + 1 ;\n next = next_brace_sub ( p , flags ) ;\n assert ( next != NULL ) ;\n }\n # ifndef __GNUC__ free ( onealt ) ;\n # endif if ( pglob -> gl_pathc != firstc ) return 0 ;\n else if ( ! ( flags & ( GLOB_NOCHECK | GLOB_NOMAGIC ) ) ) return GLOB_NOMATCH ;\n }\n }\n if ( ! ( flags & GLOB_APPEND ) ) {\n pglob -> gl_pathc = 0 ;\n if ( ! ( flags & GLOB_DOOFFS ) ) pglob -> gl_pathv = NULL ;\n else {\n size_t i ;\n pglob -> gl_pathv = ( char * * ) malloc ( ( pglob -> gl_offs + 1 ) * sizeof ( char * ) ) ;\n if ( pglob -> gl_pathv == NULL ) return GLOB_NOSPACE ;\n for ( i = 0 ;\n i <= pglob -> gl_offs ;\n ++ i ) pglob -> gl_pathv [ i ] = NULL ;\n }\n }\n oldcount = pglob -> gl_pathc + pglob -> gl_offs ;\n filename = strrchr ( pattern , '/' ) ;\n # if defined __MSDOS__ || defined WINDOWS32 if ( filename == NULL ) filename = strchr ( pattern , ':' ) ;\n # endif dirname_modified = 0 ;\n if ( filename == NULL ) {\n if ( ( flags & ( GLOB_TILDE | GLOB_TILDE_CHECK ) ) && pattern [ 0 ] == '~' ) {\n dirname = pattern ;\n dirlen = strlen ( pattern ) ;\n filename = NULL ;\n }\n else {\n if ( __builtin_expect ( pattern [ 0 ] == '\\0' , 0 ) ) {\n dirs . gl_pathv = NULL ;\n goto no_matches ;\n }\n filename = pattern ;\n # ifdef _AMIGA dirname = \"\" ;\n # else dirname = \".\" ;\n # endif dirlen = 0 ;\n }\n }\n else if ( filename == pattern || ( filename == pattern + 1 && pattern [ 0 ] == '\\\\' && ( flags & GLOB_NOESCAPE ) == 0 ) ) {\n dirname = \"/\" ;\n dirlen = 1 ;\n ++ filename ;\n }\n else {\n char * newp ;\n dirlen = filename - pattern ;\n # if defined __MSDOS__ || defined WINDOWS32 if ( * filename == ':' || ( filename > pattern + 1 && filename [ - 1 ] == ':' ) ) {\n char * drive_spec ;\n ++ dirlen ;\n drive_spec = ( char * ) __alloca ( dirlen + 1 ) ;\n * ( ( char * ) mempcpy ( drive_spec , pattern , dirlen ) ) = '\\0' ;\n if ( __glob_pattern_p ( drive_spec , ! ( flags & GLOB_NOESCAPE ) ) ) return GLOB_NOMATCH ;\n }\n # endif newp = ( char * ) __alloca ( dirlen + 1 ) ;\n * ( ( char * ) mempcpy ( newp , pattern , dirlen ) ) = '\\0' ;\n dirname = newp ;\n ++ filename ;\n if ( filename [ 0 ] == '\\0' # if defined __MSDOS__ || defined WINDOWS32 && dirname [ dirlen - 1 ] != ':' && ( dirlen < 3 || dirname [ dirlen - 2 ] != ':' || dirname [ dirlen - 1 ] != '/' ) # endif && dirlen > 1 ) {\n int orig_flags = flags ;\n if ( ! ( flags & GLOB_NOESCAPE ) && dirname [ dirlen - 1 ] == '\\\\' ) {\n char * p = ( char * ) & dirname [ dirlen - 1 ] ;\n while ( p > dirname && p [ - 1 ] == '\\\\' ) -- p ;\n if ( ( & dirname [ dirlen ] - p ) & 1 ) {\n * ( char * ) & dirname [ -- dirlen ] = '\\0' ;\n flags &= ~ ( GLOB_NOCHECK | GLOB_NOMAGIC ) ;\n }\n }\n int val = glob ( dirname , flags | GLOB_MARK , errfunc , pglob ) ;\n if ( val == 0 ) pglob -> gl_flags = ( ( pglob -> gl_flags & ~ GLOB_MARK ) | ( flags & GLOB_MARK ) ) ;\n else if ( val == GLOB_NOMATCH && flags != orig_flags ) {\n dirs . gl_pathv = NULL ;\n flags = orig_flags ;\n oldcount = pglob -> gl_pathc + pglob -> gl_offs ;\n goto no_matches ;\n }\n return val ;\n }\n }\n # ifndef VMS if ( ( flags & ( GLOB_TILDE | GLOB_TILDE_CHECK ) ) && dirname [ 0 ] == '~' ) {\n if ( dirname [ 1 ] == '\\0' || dirname [ 1 ] == '/' || ( ! ( flags & GLOB_NOESCAPE ) && dirname [ 1 ] == '\\\\' && ( dirname [ 2 ] == '\\0' || dirname [ 2 ] == '/' ) ) ) {\n const char * home_dir = getenv ( \"HOME\" ) ;\n # ifdef _AMIGA if ( home_dir == NULL || home_dir [ 0 ] == '\\0' ) home_dir = \"SYS:\" ;\n # else # ifdef WINDOWS32 if ( home_dir == NULL || home_dir [ 0 ] == '\\0' ) home_dir = \"c:/users/default\" ;\n # else if ( home_dir == NULL || home_dir [ 0 ] == '\\0' ) {\n int success ;\n char * name ;\n size_t buflen = GET_LOGIN_NAME_MAX ( ) + 1 ;\n if ( buflen == 0 ) buflen = 20 ;\n name = ( char * ) __alloca ( buflen ) ;\n success = getlogin_r ( name , buflen ) == 0 ;\n if ( success ) {\n struct passwd * p ;\n # if defined HAVE_GETPWNAM_R || defined _LIBC long int pwbuflen = GETPW_R_SIZE_MAX ( ) ;\n char * pwtmpbuf ;\n struct passwd pwbuf ;\n int save = errno ;\n # ifndef _LIBC if ( pwbuflen == - 1 ) pwbuflen = 1024 ;\n # endif pwtmpbuf = ( char * ) __alloca ( pwbuflen ) ;\n while ( getpwnam_r ( name , & pwbuf , pwtmpbuf , pwbuflen , & p ) != 0 ) {\n if ( errno != ERANGE ) {\n p = NULL ;\n break ;\n }\n # ifdef _LIBC pwtmpbuf = extend_alloca ( pwtmpbuf , pwbuflen , 2 * pwbuflen ) ;\n # else pwbuflen *= 2 ;\n pwtmpbuf = ( char * ) __alloca ( pwbuflen ) ;\n # endif __set_errno ( save ) ;\n }\n # else p = getpwnam ( name ) ;\n # endif if ( p != NULL ) home_dir = p -> pw_dir ;\n }\n }\n if ( home_dir == NULL || home_dir [ 0 ] == '\\0' ) {\n if ( flags & GLOB_TILDE_CHECK ) return GLOB_NOMATCH ;\n else home_dir = \"~\" ;\n }\n # endif # endif if ( dirname [ 1 ] == '\\0' ) {\n dirname = home_dir ;\n dirlen = strlen ( dirname ) ;\n }\n else {\n char * newp ;\n size_t home_len = strlen ( home_dir ) ;\n newp = ( char * ) __alloca ( home_len + dirlen ) ;\n mempcpy ( mempcpy ( newp , home_dir , home_len ) , & dirname [ 1 ] , dirlen ) ;\n dirname = newp ;\n dirlen += home_len - 1 ;\n }\n dirname_modified = 1 ;\n }\n # if ! defined _AMIGA && ! defined WINDOWS32 else {\n char * end_name = strchr ( dirname , '/' ) ;\n const char * user_name ;\n const char * home_dir ;\n char * unescape = NULL ;\n if ( ! ( flags & GLOB_NOESCAPE ) ) {\n if ( end_name == NULL ) {\n unescape = strchr ( dirname , '\\\\' ) ;\n if ( unescape ) end_name = strchr ( unescape , '\\0' ) ;\n }\n else unescape = memchr ( dirname , '\\\\' , end_name - dirname ) ;\n }\n if ( end_name == NULL ) user_name = dirname + 1 ;\n else {\n char * newp ;\n newp = ( char * ) __alloca ( end_name - dirname ) ;\n if ( unescape != NULL ) {\n char * p = mempcpy ( newp , dirname + 1 , unescape - dirname - 1 ) ;\n char * q = unescape ;\n while ( * q != '\\0' ) {\n if ( * q == '\\\\' ) {\n if ( q [ 1 ] == '\\0' ) {\n if ( filename == NULL ) * p ++ = '\\\\' ;\n break ;\n }\n ++ q ;\n }\n * p ++ = * q ++ ;\n }\n * p = '\\0' ;\n }\n else * ( ( char * ) mempcpy ( newp , dirname + 1 , end_name - dirname ) ) = '\\0' ;\n user_name = newp ;\n }\n {\n struct passwd * p ;\n # if defined HAVE_GETPWNAM_R || defined _LIBC long int buflen = GETPW_R_SIZE_MAX ( ) ;\n char * pwtmpbuf ;\n struct passwd pwbuf ;\n int save = errno ;\n # ifndef _LIBC if ( buflen == - 1 ) buflen = 1024 ;\n # endif pwtmpbuf = ( char * ) __alloca ( buflen ) ;\n while ( getpwnam_r ( user_name , & pwbuf , pwtmpbuf , buflen , & p ) != 0 ) {\n if ( errno != ERANGE ) {\n p = NULL ;\n break ;\n }\n # ifdef _LIBC pwtmpbuf = extend_alloca ( pwtmpbuf , buflen , 2 * buflen ) ;\n # else buflen *= 2 ;\n pwtmpbuf = __alloca ( buflen ) ;\n # endif __set_errno ( save ) ;\n }\n # else p = getpwnam ( user_name ) ;\n # endif if ( p != NULL ) home_dir = p -> pw_dir ;\n else home_dir = NULL ;\n }\n if ( home_dir != NULL ) {\n char * newp ;\n size_t home_len = strlen ( home_dir ) ;\n size_t rest_len = end_name == NULL ? 0 : strlen ( end_name ) ;\n newp = ( char * ) __alloca ( home_len + rest_len + 1 ) ;\n * ( ( char * ) mempcpy ( mempcpy ( newp , home_dir , home_len ) , end_name , rest_len ) ) = '\\0' ;\n dirname = newp ;\n dirlen = home_len + rest_len ;\n dirname_modified = 1 ;\n }\n else if ( flags & GLOB_TILDE_CHECK ) return GLOB_NOMATCH ;\n }\n # endif }\n # endif if ( filename == NULL ) {\n struct stat st ;\n struct_stat64 st64 ;\n if ( ( flags & GLOB_NOCHECK ) || ( ( ( __builtin_expect ( flags & GLOB_ALTDIRFUNC , 0 ) ) ? ( ( * pglob -> gl_stat ) ( dirname , & st ) == 0 && S_ISDIR ( st . st_mode ) ) : ( __stat64 ( dirname , & st64 ) == 0 && S_ISDIR ( st64 . st_mode ) ) ) ) ) {\n int newcount = pglob -> gl_pathc + pglob -> gl_offs ;\n char * * new_gl_pathv ;\n new_gl_pathv = ( char * * ) realloc ( pglob -> gl_pathv , ( newcount + 1 + 1 ) * sizeof ( char * ) ) ;\n if ( new_gl_pathv == NULL ) {\n nospace : free ( pglob -> gl_pathv ) ;\n pglob -> gl_pathv = NULL ;\n pglob -> gl_pathc = 0 ;\n return GLOB_NOSPACE ;\n }\n pglob -> gl_pathv = new_gl_pathv ;\n if ( flags & GLOB_MARK ) {\n char * p ;\n pglob -> gl_pathv [ newcount ] = malloc ( dirlen + 2 ) ;\n if ( pglob -> gl_pathv [ newcount ] == NULL ) goto nospace ;\n p = mempcpy ( pglob -> gl_pathv [ newcount ] , dirname , dirlen ) ;\n p [ 0 ] = '/' ;\n p [ 1 ] = '\\0' ;\n }\n else {\n pglob -> gl_pathv [ newcount ] = strdup ( dirname ) ;\n if ( pglob -> gl_pathv [ newcount ] == NULL ) goto nospace ;\n }\n pglob -> gl_pathv [ ++ newcount ] = NULL ;\n ++ pglob -> gl_pathc ;\n pglob -> gl_flags = flags ;\n return 0 ;\n }\n return GLOB_NOMATCH ;\n }\n meta = __glob_pattern_type ( dirname , ! ( flags & GLOB_NOESCAPE ) ) ;\n if ( meta & 5 ) {\n size_t i ;\n if ( ! ( flags & GLOB_NOESCAPE ) && dirlen > 0 && dirname [ dirlen - 1 ] == '\\\\' ) {\n char * p = ( char * ) & dirname [ dirlen - 1 ] ;\n while ( p > dirname && p [ - 1 ] == '\\\\' ) -- p ;\n if ( ( & dirname [ dirlen ] - p ) & 1 ) * ( char * ) & dirname [ -- dirlen ] = '\\0' ;\n }\n if ( __builtin_expect ( ( flags & GLOB_ALTDIRFUNC ) != 0 , 0 ) ) {\n dirs . gl_opendir = pglob -> gl_opendir ;\n dirs . gl_readdir = pglob -> gl_readdir ;\n dirs . gl_closedir = pglob -> gl_closedir ;\n dirs . gl_stat = pglob -> gl_stat ;\n dirs . gl_lstat = pglob -> gl_lstat ;\n }\n status = glob ( dirname , ( ( flags & ( GLOB_ERR | GLOB_NOESCAPE | GLOB_ALTDIRFUNC ) ) | GLOB_NOSORT | GLOB_ONLYDIR ) , errfunc , & dirs ) ;\n if ( status != 0 ) {\n if ( ( flags & GLOB_NOCHECK ) == 0 || status != GLOB_NOMATCH ) return status ;\n goto no_matches ;\n }\n for ( i = 0 ;\n i < dirs . gl_pathc ;\n ++ i ) {\n int old_pathc ;\n # ifdef SHELL {\n extern int interrupt_state ;\n if ( interrupt_state ) {\n globfree ( & dirs ) ;\n return GLOB_ABORTED ;\n }\n }\n # endif old_pathc = pglob -> gl_pathc ;\n status = glob_in_dir ( filename , dirs . gl_pathv [ i ] , ( ( flags | GLOB_APPEND ) & ~ ( GLOB_NOCHECK | GLOB_NOMAGIC ) ) , errfunc , pglob ) ;\n if ( status == GLOB_NOMATCH ) continue ;\n if ( status != 0 ) {\n globfree ( & dirs ) ;\n globfree ( pglob ) ;\n pglob -> gl_pathc = 0 ;\n return status ;\n }\n if ( prefix_array ( dirs . gl_pathv [ i ] , & pglob -> gl_pathv [ old_pathc + pglob -> gl_offs ] , pglob -> gl_pathc - old_pathc ) ) {\n globfree ( & dirs ) ;\n globfree ( pglob ) ;\n pglob -> gl_pathc = 0 ;\n return GLOB_NOSPACE ;\n }\n }\n flags |= GLOB_MAGCHAR ;\n if ( pglob -> gl_pathc + pglob -> gl_offs == oldcount ) {\n no_matches : if ( flags & GLOB_NOCHECK ) {\n int newcount = pglob -> gl_pathc + pglob -> gl_offs ;\n char * * new_gl_pathv ;\n new_gl_pathv = ( char * * ) realloc ( pglob -> gl_pathv , ( newcount + 2 ) * sizeof ( char * ) ) ;\n if ( new_gl_pathv == NULL ) {\n globfree ( & dirs ) ;\n return GLOB_NOSPACE ;\n }\n pglob -> gl_pathv = new_gl_pathv ;\n pglob -> gl_pathv [ newcount ] = __strdup ( pattern ) ;\n if ( pglob -> gl_pathv [ newcount ] == NULL ) {\n globfree ( & dirs ) ;\n globfree ( pglob ) ;\n pglob -> gl_pathc = 0 ;\n return GLOB_NOSPACE ;\n }\n ++ pglob -> gl_pathc ;\n ++ newcount ;\n pglob -> gl_pathv [ newcount ] = NULL ;\n pglob -> gl_flags = flags ;\n }\n else {\n globfree ( & dirs ) ;\n return GLOB_NOMATCH ;\n }\n }\n globfree ( & dirs ) ;\n }\n else {\n int old_pathc = pglob -> gl_pathc ;\n int orig_flags = flags ;\n if ( meta & 2 ) {\n char * p = strchr ( dirname , '\\\\' ) , * q ;\n q = p ;\n do {\n if ( * p == '\\\\' ) {\n * q = * ++ p ;\n -- dirlen ;\n }\n else * q = * p ;\n ++ q ;\n }\n while ( * p ++ != '\\0' ) ;\n dirname_modified = 1 ;\n }\n if ( dirname_modified ) flags &= ~ ( GLOB_NOCHECK | GLOB_NOMAGIC ) ;\n status = glob_in_dir ( filename , dirname , flags , errfunc , pglob ) ;\n if ( status != 0 ) {\n if ( status == GLOB_NOMATCH && flags != orig_flags && pglob -> gl_pathc + pglob -> gl_offs == oldcount ) {\n dirs . gl_pathv = NULL ;\n flags = orig_flags ;\n goto no_matches ;\n }\n return status ;\n }\n if ( dirlen > 0 ) {\n if ( prefix_array ( dirname , & pglob -> gl_pathv [ old_pathc + pglob -> gl_offs ] , pglob -> gl_pathc - old_pathc ) ) {\n globfree ( pglob ) ;\n pglob -> gl_pathc = 0 ;\n return GLOB_NOSPACE ;\n }\n }\n }\n if ( flags & GLOB_MARK ) {\n size_t i ;\n struct stat st ;\n struct_stat64 st64 ;\n for ( i = oldcount ;\n i < pglob -> gl_pathc + pglob -> gl_offs ;\n ++ i ) if ( ( __builtin_expect ( flags & GLOB_ALTDIRFUNC , 0 ) ? ( ( * pglob -> gl_stat ) ( pglob -> gl_pathv [ i ] , & st ) == 0 && S_ISDIR ( st . st_mode ) ) : ( __stat64 ( pglob -> gl_pathv [ i ] , & st64 ) == 0 && S_ISDIR ( st64 . st_mode ) ) ) ) {\n size_t len = strlen ( pglob -> gl_pathv [ i ] ) + 2 ;\n char * new = realloc ( pglob -> gl_pathv [ i ] , len ) ;\n if ( new == NULL ) {\n globfree ( pglob ) ;\n pglob -> gl_pathc = 0 ;\n return GLOB_NOSPACE ;\n }\n strcpy ( & new [ len - 2 ] , \"/\" ) ;\n pglob -> gl_pathv [ i ] = new ;\n }\n }\n if ( ! ( flags & GLOB_NOSORT ) ) {\n qsort ( & pglob -> gl_pathv [ oldcount ] , pglob -> gl_pathc + pglob -> gl_offs - oldcount , sizeof ( char * ) , collated_compare ) ;\n }\n return 0 ;\n }"}
{"idx": 9003, "target": 0, "func": "static gpgme_error_t uiserver_decrypt ( void * engine , gpgme_data_t ciph , gpgme_data_t plain ) {\n return _uiserver_decrypt ( engine , 0 , ciph , plain ) ;\n }"}
{"idx": 9004, "target": 0, "func": "static void uiserver_set_io_cbs ( void * engine , gpgme_io_cbs_t io_cbs ) {\n engine_uiserver_t uiserver = engine ;\n uiserver -> io_cbs = * io_cbs ;\n }"}
{"idx": 9005, "target": 0, "func": "static int alloc_scratch_buffers ( H264Context * h , int linesize ) {\n int alloc_size = FFALIGN ( FFABS ( linesize ) + 32 , 32 ) ;\n if ( h -> bipred_scratchpad ) return 0 ;\n h -> bipred_scratchpad = av_malloc ( 16 * 6 * alloc_size ) ;\n h -> edge_emu_buffer = av_mallocz ( alloc_size * 2 * 21 ) ;\n h -> me . scratchpad = av_mallocz ( alloc_size * 2 * 16 * 2 ) ;\n if ( ! h -> bipred_scratchpad || ! h -> edge_emu_buffer || ! h -> me . scratchpad ) {\n av_freep ( & h -> bipred_scratchpad ) ;\n av_freep ( & h -> edge_emu_buffer ) ;\n av_freep ( & h -> me . scratchpad ) ;\n return AVERROR ( ENOMEM ) ;\n }\n h -> me . temp = h -> me . scratchpad ;\n return 0 ;\n }"}
{"idx": 9006, "target": 0, "func": "static void pdf_run_c ( fz_context * ctx , pdf_processor * proc , float x1 , float y1 , float x2 , float y2 , float x3 , float y3 ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n fz_curveto ( ctx , pr -> path , x1 , y1 , x2 , y2 , x3 , y3 ) ;\n }"}
{"idx": 9007, "target": 0, "func": "static void freelist_insert ( SSL_CTX * ctx , int for_read , size_t sz , void * mem ) {\n SSL3_BUF_FREELIST * list ;\n SSL3_BUF_FREELIST_ENTRY * ent ;\n CRYPTO_w_lock ( CRYPTO_LOCK_SSL_CTX ) ;\n list = for_read ? ctx -> rbuf_freelist : ctx -> wbuf_freelist ;\n if ( list != NULL && ( sz == list -> chunklen || list -> chunklen == 0 ) && list -> len < ctx -> freelist_max_len && sz >= sizeof ( * ent ) ) {\n list -> chunklen = sz ;\n ent = mem ;\n ent -> next = list -> head ;\n list -> head = ent ;\n ++ list -> len ;\n mem = NULL ;\n }\n CRYPTO_w_unlock ( CRYPTO_LOCK_SSL_CTX ) ;\n if ( mem ) OPENSSL_free ( mem ) ;\n }"}
{"idx": 9008, "target": 1, "func": "int ff_h264_decode_mb_cabac ( H264Context * h ) {\n int mb_xy ;\n int mb_type , partition_count , cbp = 0 ;\n int dct8x8_allowed = h -> pps . transform_8x8_mode ;\n int decode_chroma = h -> sps . chroma_format_idc == 1 || h -> sps . chroma_format_idc == 2 ;\n const int pixel_shift = h -> pixel_shift ;\n mb_xy = h -> mb_xy = h -> mb_x + h -> mb_y * h -> mb_stride ;\n tprintf ( h -> avctx , \"pic:%d mb:%d/%d\\n\" , h -> frame_num , h -> mb_x , h -> mb_y ) ;\n if ( h -> slice_type_nos != AV_PICTURE_TYPE_I ) {\n int skip ;\n if ( FRAME_MBAFF && ( h -> mb_y & 1 ) == 1 && h -> prev_mb_skipped ) skip = h -> next_mb_skipped ;\n else skip = decode_cabac_mb_skip ( h , h -> mb_x , h -> mb_y ) ;\n if ( skip ) {\n if ( FRAME_MBAFF && ( h -> mb_y & 1 ) == 0 ) {\n h -> cur_pic . f . mb_type [ mb_xy ] = MB_TYPE_SKIP ;\n h -> next_mb_skipped = decode_cabac_mb_skip ( h , h -> mb_x , h -> mb_y + 1 ) ;\n if ( ! h -> next_mb_skipped ) h -> mb_mbaff = h -> mb_field_decoding_flag = decode_cabac_field_decoding_flag ( h ) ;\n }\n decode_mb_skip ( h ) ;\n h -> cbp_table [ mb_xy ] = 0 ;\n h -> chroma_pred_mode_table [ mb_xy ] = 0 ;\n h -> last_qscale_diff = 0 ;\n return 0 ;\n }\n }\n if ( FRAME_MBAFF ) {\n if ( ( h -> mb_y & 1 ) == 0 ) h -> mb_mbaff = h -> mb_field_decoding_flag = decode_cabac_field_decoding_flag ( h ) ;\n }\n h -> prev_mb_skipped = 0 ;\n fill_decode_neighbors ( h , - ( MB_FIELD ) ) ;\n if ( h -> slice_type_nos == AV_PICTURE_TYPE_B ) {\n int ctx = 0 ;\n assert ( h -> slice_type_nos == AV_PICTURE_TYPE_B ) ;\n if ( ! IS_DIRECT ( h -> left_type [ LTOP ] - 1 ) ) ctx ++ ;\n if ( ! IS_DIRECT ( h -> top_type - 1 ) ) ctx ++ ;\n if ( ! get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 27 + ctx ] ) ) {\n mb_type = 0 ;\n }\n else if ( ! get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 27 + 3 ] ) ) {\n mb_type = 1 + get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 27 + 5 ] ) ;\n }\n else {\n int bits ;\n bits = get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 27 + 4 ] ) << 3 ;\n bits += get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 27 + 5 ] ) << 2 ;\n bits += get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 27 + 5 ] ) << 1 ;\n bits += get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 27 + 5 ] ) ;\n if ( bits < 8 ) {\n mb_type = bits + 3 ;\n }\n else if ( bits == 13 ) {\n mb_type = decode_cabac_intra_mb_type ( h , 32 , 0 ) ;\n goto decode_intra_mb ;\n }\n else if ( bits == 14 ) {\n mb_type = 11 ;\n }\n else if ( bits == 15 ) {\n mb_type = 22 ;\n }\n else {\n bits = ( bits << 1 ) + get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 27 + 5 ] ) ;\n mb_type = bits - 4 ;\n }\n }\n partition_count = b_mb_type_info [ mb_type ] . partition_count ;\n mb_type = b_mb_type_info [ mb_type ] . type ;\n }\n else if ( h -> slice_type_nos == AV_PICTURE_TYPE_P ) {\n if ( get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 14 ] ) == 0 ) {\n if ( get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 15 ] ) == 0 ) {\n mb_type = 3 * get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 16 ] ) ;\n }\n else {\n mb_type = 2 - get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 17 ] ) ;\n }\n partition_count = p_mb_type_info [ mb_type ] . partition_count ;\n mb_type = p_mb_type_info [ mb_type ] . type ;\n }\n else {\n mb_type = decode_cabac_intra_mb_type ( h , 17 , 0 ) ;\n goto decode_intra_mb ;\n }\n }\n else {\n mb_type = decode_cabac_intra_mb_type ( h , 3 , 1 ) ;\n if ( h -> slice_type == AV_PICTURE_TYPE_SI && mb_type ) mb_type -- ;\n assert ( h -> slice_type_nos == AV_PICTURE_TYPE_I ) ;\n decode_intra_mb : partition_count = 0 ;\n cbp = i_mb_type_info [ mb_type ] . cbp ;\n h -> intra16x16_pred_mode = i_mb_type_info [ mb_type ] . pred_mode ;\n mb_type = i_mb_type_info [ mb_type ] . type ;\n }\n if ( MB_FIELD ) mb_type |= MB_TYPE_INTERLACED ;\n h -> slice_table [ mb_xy ] = h -> slice_num ;\n if ( IS_INTRA_PCM ( mb_type ) ) {\n const int mb_size = ff_h264_mb_sizes [ h -> sps . chroma_format_idc ] * h -> sps . bit_depth_luma >> 3 ;\n const uint8_t * ptr ;\n ptr = h -> cabac . bytestream ;\n if ( h -> cabac . low & 0x1 ) ptr -- ;\n if ( CABAC_BITS == 16 ) {\n if ( h -> cabac . low & 0x1FF ) ptr -- ;\n }\n if ( ( int ) ( h -> cabac . bytestream_end - ptr ) < mb_size ) return - 1 ;\n h -> intra_pcm_ptr = ptr ;\n ptr += mb_size ;\n ff_init_cabac_decoder ( & h -> cabac , ptr , h -> cabac . bytestream_end - ptr ) ;\n h -> cbp_table [ mb_xy ] = 0xf7ef ;\n h -> chroma_pred_mode_table [ mb_xy ] = 0 ;\n h -> cur_pic . f . qscale_table [ mb_xy ] = 0 ;\n memset ( h -> non_zero_count [ mb_xy ] , 16 , 48 ) ;\n h -> cur_pic . f . mb_type [ mb_xy ] = mb_type ;\n h -> last_qscale_diff = 0 ;\n return 0 ;\n }\n fill_decode_caches ( h , mb_type ) ;\n if ( IS_INTRA ( mb_type ) ) {\n int i , pred_mode ;\n if ( IS_INTRA4x4 ( mb_type ) ) {\n if ( dct8x8_allowed && get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 399 + h -> neighbor_transform_size ] ) ) {\n mb_type |= MB_TYPE_8x8DCT ;\n for ( i = 0 ;\n i < 16 ;\n i += 4 ) {\n int pred = pred_intra_mode ( h , i ) ;\n int mode = decode_cabac_mb_intra4x4_pred_mode ( h , pred ) ;\n fill_rectangle ( & h -> intra4x4_pred_mode_cache [ scan8 [ i ] ] , 2 , 2 , 8 , mode , 1 ) ;\n }\n }\n else {\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n int pred = pred_intra_mode ( h , i ) ;\n h -> intra4x4_pred_mode_cache [ scan8 [ i ] ] = decode_cabac_mb_intra4x4_pred_mode ( h , pred ) ;\n av_dlog ( h -> avctx , \"i4x4 pred=%d mode=%d\\n\" , pred , h -> intra4x4_pred_mode_cache [ scan8 [ i ] ] ) ;\n }\n }\n write_back_intra_pred_mode ( h ) ;\n if ( ff_h264_check_intra4x4_pred_mode ( h ) < 0 ) return - 1 ;\n }\n else {\n h -> intra16x16_pred_mode = ff_h264_check_intra_pred_mode ( h , h -> intra16x16_pred_mode , 0 ) ;\n if ( h -> intra16x16_pred_mode < 0 ) return - 1 ;\n }\n if ( decode_chroma ) {\n h -> chroma_pred_mode_table [ mb_xy ] = pred_mode = decode_cabac_mb_chroma_pre_mode ( h ) ;\n pred_mode = ff_h264_check_intra_pred_mode ( h , pred_mode , 1 ) ;\n if ( pred_mode < 0 ) return - 1 ;\n h -> chroma_pred_mode = pred_mode ;\n }\n else {\n h -> chroma_pred_mode = DC_128_PRED8x8 ;\n }\n }\n else if ( partition_count == 4 ) {\n int i , j , sub_partition_count [ 4 ] , list , ref [ 2 ] [ 4 ] ;\n if ( h -> slice_type_nos == AV_PICTURE_TYPE_B ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n h -> sub_mb_type [ i ] = decode_cabac_b_mb_sub_type ( h ) ;\n sub_partition_count [ i ] = b_sub_mb_type_info [ h -> sub_mb_type [ i ] ] . partition_count ;\n h -> sub_mb_type [ i ] = b_sub_mb_type_info [ h -> sub_mb_type [ i ] ] . type ;\n }\n if ( IS_DIRECT ( h -> sub_mb_type [ 0 ] | h -> sub_mb_type [ 1 ] | h -> sub_mb_type [ 2 ] | h -> sub_mb_type [ 3 ] ) ) {\n ff_h264_pred_direct_motion ( h , & mb_type ) ;\n h -> ref_cache [ 0 ] [ scan8 [ 4 ] ] = h -> ref_cache [ 1 ] [ scan8 [ 4 ] ] = h -> ref_cache [ 0 ] [ scan8 [ 12 ] ] = h -> ref_cache [ 1 ] [ scan8 [ 12 ] ] = PART_NOT_AVAILABLE ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) fill_rectangle ( & h -> direct_cache [ scan8 [ 4 * i ] ] , 2 , 2 , 8 , ( h -> sub_mb_type [ i ] >> 1 ) & 0xFF , 1 ) ;\n }\n }\n else {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n h -> sub_mb_type [ i ] = decode_cabac_p_mb_sub_type ( h ) ;\n sub_partition_count [ i ] = p_sub_mb_type_info [ h -> sub_mb_type [ i ] ] . partition_count ;\n h -> sub_mb_type [ i ] = p_sub_mb_type_info [ h -> sub_mb_type [ i ] ] . type ;\n }\n }\n for ( list = 0 ;\n list < h -> list_count ;\n list ++ ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n if ( IS_DIRECT ( h -> sub_mb_type [ i ] ) ) continue ;\n if ( IS_DIR ( h -> sub_mb_type [ i ] , 0 , list ) ) {\n int rc = h -> ref_count [ list ] << MB_MBAFF ;\n if ( rc > 1 ) {\n ref [ list ] [ i ] = decode_cabac_mb_ref ( h , list , 4 * i ) ;\n if ( ref [ list ] [ i ] >= ( unsigned ) rc ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"Reference %d >= %d\\n\" , ref [ list ] [ i ] , rc ) ;\n return - 1 ;\n }\n }\n else ref [ list ] [ i ] = 0 ;\n }\n else {\n ref [ list ] [ i ] = - 1 ;\n }\n h -> ref_cache [ list ] [ scan8 [ 4 * i ] + 1 ] = h -> ref_cache [ list ] [ scan8 [ 4 * i ] + 8 ] = h -> ref_cache [ list ] [ scan8 [ 4 * i ] + 9 ] = ref [ list ] [ i ] ;\n }\n }\n if ( dct8x8_allowed ) dct8x8_allowed = get_dct8x8_allowed ( h ) ;\n for ( list = 0 ;\n list < h -> list_count ;\n list ++ ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n h -> ref_cache [ list ] [ scan8 [ 4 * i ] ] = h -> ref_cache [ list ] [ scan8 [ 4 * i ] + 1 ] ;\n if ( IS_DIRECT ( h -> sub_mb_type [ i ] ) ) {\n fill_rectangle ( h -> mvd_cache [ list ] [ scan8 [ 4 * i ] ] , 2 , 2 , 8 , 0 , 2 ) ;\n continue ;\n }\n if ( IS_DIR ( h -> sub_mb_type [ i ] , 0 , list ) && ! IS_DIRECT ( h -> sub_mb_type [ i ] ) ) {\n const int sub_mb_type = h -> sub_mb_type [ i ] ;\n const int block_width = ( sub_mb_type & ( MB_TYPE_16x16 | MB_TYPE_16x8 ) ) ? 2 : 1 ;\n for ( j = 0 ;\n j < sub_partition_count [ i ] ;\n j ++ ) {\n int mpx , mpy ;\n int mx , my ;\n const int index = 4 * i + block_width * j ;\n int16_t ( * mv_cache ) [ 2 ] = & h -> mv_cache [ list ] [ scan8 [ index ] ] ;\n uint8_t ( * mvd_cache ) [ 2 ] = & h -> mvd_cache [ list ] [ scan8 [ index ] ] ;\n pred_motion ( h , index , block_width , list , h -> ref_cache [ list ] [ scan8 [ index ] ] , & mx , & my ) ;\n DECODE_CABAC_MB_MVD ( h , list , index ) tprintf ( h -> avctx , \"final mv:%d %d\\n\" , mx , my ) ;\n if ( IS_SUB_8X8 ( sub_mb_type ) ) {\n mv_cache [ 1 ] [ 0 ] = mv_cache [ 8 ] [ 0 ] = mv_cache [ 9 ] [ 0 ] = mx ;\n mv_cache [ 1 ] [ 1 ] = mv_cache [ 8 ] [ 1 ] = mv_cache [ 9 ] [ 1 ] = my ;\n mvd_cache [ 1 ] [ 0 ] = mvd_cache [ 8 ] [ 0 ] = mvd_cache [ 9 ] [ 0 ] = mpx ;\n mvd_cache [ 1 ] [ 1 ] = mvd_cache [ 8 ] [ 1 ] = mvd_cache [ 9 ] [ 1 ] = mpy ;\n }\n else if ( IS_SUB_8X4 ( sub_mb_type ) ) {\n mv_cache [ 1 ] [ 0 ] = mx ;\n mv_cache [ 1 ] [ 1 ] = my ;\n mvd_cache [ 1 ] [ 0 ] = mpx ;\n mvd_cache [ 1 ] [ 1 ] = mpy ;\n }\n else if ( IS_SUB_4X8 ( sub_mb_type ) ) {\n mv_cache [ 8 ] [ 0 ] = mx ;\n mv_cache [ 8 ] [ 1 ] = my ;\n mvd_cache [ 8 ] [ 0 ] = mpx ;\n mvd_cache [ 8 ] [ 1 ] = mpy ;\n }\n mv_cache [ 0 ] [ 0 ] = mx ;\n mv_cache [ 0 ] [ 1 ] = my ;\n mvd_cache [ 0 ] [ 0 ] = mpx ;\n mvd_cache [ 0 ] [ 1 ] = mpy ;\n }\n }\n else {\n fill_rectangle ( h -> mv_cache [ list ] [ scan8 [ 4 * i ] ] , 2 , 2 , 8 , 0 , 4 ) ;\n fill_rectangle ( h -> mvd_cache [ list ] [ scan8 [ 4 * i ] ] , 2 , 2 , 8 , 0 , 2 ) ;\n }\n }\n }\n }\n else if ( IS_DIRECT ( mb_type ) ) {\n ff_h264_pred_direct_motion ( h , & mb_type ) ;\n fill_rectangle ( h -> mvd_cache [ 0 ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , 0 , 2 ) ;\n fill_rectangle ( h -> mvd_cache [ 1 ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , 0 , 2 ) ;\n dct8x8_allowed &= h -> sps . direct_8x8_inference_flag ;\n }\n else {\n int list , i ;\n if ( IS_16X16 ( mb_type ) ) {\n for ( list = 0 ;\n list < h -> list_count ;\n list ++ ) {\n if ( IS_DIR ( mb_type , 0 , list ) ) {\n int ref , rc = h -> ref_count [ list ] << MB_MBAFF ;\n if ( rc > 1 ) {\n ref = decode_cabac_mb_ref ( h , list , 0 ) ;\n if ( ref >= ( unsigned ) rc ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"Reference %d >= %d\\n\" , ref , rc ) ;\n return - 1 ;\n }\n }\n else ref = 0 ;\n fill_rectangle ( & h -> ref_cache [ list ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , ref , 1 ) ;\n }\n }\n for ( list = 0 ;\n list < h -> list_count ;\n list ++ ) {\n if ( IS_DIR ( mb_type , 0 , list ) ) {\n int mx , my , mpx , mpy ;\n pred_motion ( h , 0 , 4 , list , h -> ref_cache [ list ] [ scan8 [ 0 ] ] , & mx , & my ) ;\n DECODE_CABAC_MB_MVD ( h , list , 0 ) tprintf ( h -> avctx , \"final mv:%d %d\\n\" , mx , my ) ;\n fill_rectangle ( h -> mvd_cache [ list ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , pack8to16 ( mpx , mpy ) , 2 ) ;\n fill_rectangle ( h -> mv_cache [ list ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , pack16to32 ( mx , my ) , 4 ) ;\n }\n }\n }\n else if ( IS_16X8 ( mb_type ) ) {\n for ( list = 0 ;\n list < h -> list_count ;\n list ++ ) {\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n if ( IS_DIR ( mb_type , i , list ) ) {\n int ref , rc = h -> ref_count [ list ] << MB_MBAFF ;\n if ( rc > 1 ) {\n ref = decode_cabac_mb_ref ( h , list , 8 * i ) ;\n if ( ref >= ( unsigned ) rc ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"Reference %d >= %d\\n\" , ref , rc ) ;\n return - 1 ;\n }\n }\n else ref = 0 ;\n fill_rectangle ( & h -> ref_cache [ list ] [ scan8 [ 0 ] + 16 * i ] , 4 , 2 , 8 , ref , 1 ) ;\n }\n else fill_rectangle ( & h -> ref_cache [ list ] [ scan8 [ 0 ] + 16 * i ] , 4 , 2 , 8 , ( LIST_NOT_USED & 0xFF ) , 1 ) ;\n }\n }\n for ( list = 0 ;\n list < h -> list_count ;\n list ++ ) {\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n if ( IS_DIR ( mb_type , i , list ) ) {\n int mx , my , mpx , mpy ;\n pred_16x8_motion ( h , 8 * i , list , h -> ref_cache [ list ] [ scan8 [ 0 ] + 16 * i ] , & mx , & my ) ;\n DECODE_CABAC_MB_MVD ( h , list , 8 * i ) tprintf ( h -> avctx , \"final mv:%d %d\\n\" , mx , my ) ;\n fill_rectangle ( h -> mvd_cache [ list ] [ scan8 [ 0 ] + 16 * i ] , 4 , 2 , 8 , pack8to16 ( mpx , mpy ) , 2 ) ;\n fill_rectangle ( h -> mv_cache [ list ] [ scan8 [ 0 ] + 16 * i ] , 4 , 2 , 8 , pack16to32 ( mx , my ) , 4 ) ;\n }\n else {\n fill_rectangle ( h -> mvd_cache [ list ] [ scan8 [ 0 ] + 16 * i ] , 4 , 2 , 8 , 0 , 2 ) ;\n fill_rectangle ( h -> mv_cache [ list ] [ scan8 [ 0 ] + 16 * i ] , 4 , 2 , 8 , 0 , 4 ) ;\n }\n }\n }\n }\n else {\n assert ( IS_8X16 ( mb_type ) ) ;\n for ( list = 0 ;\n list < h -> list_count ;\n list ++ ) {\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n if ( IS_DIR ( mb_type , i , list ) ) {\n int ref , rc = h -> ref_count [ list ] << MB_MBAFF ;\n if ( rc > 1 ) {\n ref = decode_cabac_mb_ref ( h , list , 4 * i ) ;\n if ( ref >= ( unsigned ) rc ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"Reference %d >= %d\\n\" , ref , rc ) ;\n return - 1 ;\n }\n }\n else ref = 0 ;\n fill_rectangle ( & h -> ref_cache [ list ] [ scan8 [ 0 ] + 2 * i ] , 2 , 4 , 8 , ref , 1 ) ;\n }\n else fill_rectangle ( & h -> ref_cache [ list ] [ scan8 [ 0 ] + 2 * i ] , 2 , 4 , 8 , ( LIST_NOT_USED & 0xFF ) , 1 ) ;\n }\n }\n for ( list = 0 ;\n list < h -> list_count ;\n list ++ ) {\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n if ( IS_DIR ( mb_type , i , list ) ) {\n int mx , my , mpx , mpy ;\n pred_8x16_motion ( h , i * 4 , list , h -> ref_cache [ list ] [ scan8 [ 0 ] + 2 * i ] , & mx , & my ) ;\n DECODE_CABAC_MB_MVD ( h , list , 4 * i ) tprintf ( h -> avctx , \"final mv:%d %d\\n\" , mx , my ) ;\n fill_rectangle ( h -> mvd_cache [ list ] [ scan8 [ 0 ] + 2 * i ] , 2 , 4 , 8 , pack8to16 ( mpx , mpy ) , 2 ) ;\n fill_rectangle ( h -> mv_cache [ list ] [ scan8 [ 0 ] + 2 * i ] , 2 , 4 , 8 , pack16to32 ( mx , my ) , 4 ) ;\n }\n else {\n fill_rectangle ( h -> mvd_cache [ list ] [ scan8 [ 0 ] + 2 * i ] , 2 , 4 , 8 , 0 , 2 ) ;\n fill_rectangle ( h -> mv_cache [ list ] [ scan8 [ 0 ] + 2 * i ] , 2 , 4 , 8 , 0 , 4 ) ;\n }\n }\n }\n }\n }\n if ( IS_INTER ( mb_type ) ) {\n h -> chroma_pred_mode_table [ mb_xy ] = 0 ;\n write_back_motion ( h , mb_type ) ;\n }\n if ( ! IS_INTRA16x16 ( mb_type ) ) {\n cbp = decode_cabac_mb_cbp_luma ( h ) ;\n if ( decode_chroma ) cbp |= decode_cabac_mb_cbp_chroma ( h ) << 4 ;\n }\n h -> cbp_table [ mb_xy ] = h -> cbp = cbp ;\n if ( dct8x8_allowed && ( cbp & 15 ) && ! IS_INTRA ( mb_type ) ) {\n mb_type |= MB_TYPE_8x8DCT * get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 399 + h -> neighbor_transform_size ] ) ;\n }\n if ( CHROMA444 && IS_8x8DCT ( mb_type ) ) {\n int i ;\n uint8_t * nnz_cache = h -> non_zero_count_cache ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n if ( h -> left_type [ LEFT ( i ) ] && ! IS_8x8DCT ( h -> left_type [ LEFT ( i ) ] ) ) {\n nnz_cache [ 3 + 8 * 1 + 2 * 8 * i ] = nnz_cache [ 3 + 8 * 2 + 2 * 8 * i ] = nnz_cache [ 3 + 8 * 6 + 2 * 8 * i ] = nnz_cache [ 3 + 8 * 7 + 2 * 8 * i ] = nnz_cache [ 3 + 8 * 11 + 2 * 8 * i ] = nnz_cache [ 3 + 8 * 12 + 2 * 8 * i ] = IS_INTRA ( mb_type ) ? 64 : 0 ;\n }\n }\n if ( h -> top_type && ! IS_8x8DCT ( h -> top_type ) ) {\n uint32_t top_empty = CABAC && ! IS_INTRA ( mb_type ) ? 0 : 0x40404040 ;\n AV_WN32A ( & nnz_cache [ 4 + 8 * 0 ] , top_empty ) ;\n AV_WN32A ( & nnz_cache [ 4 + 8 * 5 ] , top_empty ) ;\n AV_WN32A ( & nnz_cache [ 4 + 8 * 10 ] , top_empty ) ;\n }\n }\n h -> cur_pic . f . mb_type [ mb_xy ] = mb_type ;\n if ( cbp || IS_INTRA16x16 ( mb_type ) ) {\n const uint8_t * scan , * scan8x8 ;\n const uint32_t * qmul ;\n if ( IS_INTERLACED ( mb_type ) ) {\n scan8x8 = h -> qscale ? h -> field_scan8x8 : h -> field_scan8x8_q0 ;\n scan = h -> qscale ? h -> field_scan : h -> field_scan_q0 ;\n }\n else {\n scan8x8 = h -> qscale ? h -> zigzag_scan8x8 : h -> zigzag_scan8x8_q0 ;\n scan = h -> qscale ? h -> zigzag_scan : h -> zigzag_scan_q0 ;\n }\n if ( get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 60 + ( h -> last_qscale_diff != 0 ) ] ) ) {\n int val = 1 ;\n int ctx = 2 ;\n const int max_qp = 51 + 6 * ( h -> sps . bit_depth_luma - 8 ) ;\n while ( get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 60 + ctx ] ) ) {\n ctx = 3 ;\n val ++ ;\n if ( val > 2 * max_qp ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"cabac decode of qscale diff failed at %d %d\\n\" , h -> mb_x , h -> mb_y ) ;\n return - 1 ;\n }\n }\n if ( val & 0x01 ) val = ( val + 1 ) >> 1 ;\n else val = - ( ( val + 1 ) >> 1 ) ;\n h -> last_qscale_diff = val ;\n h -> qscale += val ;\n if ( ( ( unsigned ) h -> qscale ) > max_qp ) {\n if ( h -> qscale < 0 ) h -> qscale += max_qp + 1 ;\n else h -> qscale -= max_qp + 1 ;\n }\n h -> chroma_qp [ 0 ] = get_chroma_qp ( h , 0 , h -> qscale ) ;\n h -> chroma_qp [ 1 ] = get_chroma_qp ( h , 1 , h -> qscale ) ;\n }\n else h -> last_qscale_diff = 0 ;\n decode_cabac_luma_residual ( h , scan , scan8x8 , pixel_shift , mb_type , cbp , 0 ) ;\n if ( CHROMA444 ) {\n decode_cabac_luma_residual ( h , scan , scan8x8 , pixel_shift , mb_type , cbp , 1 ) ;\n decode_cabac_luma_residual ( h , scan , scan8x8 , pixel_shift , mb_type , cbp , 2 ) ;\n }\n else if ( CHROMA422 ) {\n if ( cbp & 0x30 ) {\n int c ;\n for ( c = 0 ;\n c < 2 ;\n c ++ ) decode_cabac_residual_dc_422 ( h , h -> mb + ( ( 256 + 16 * 16 * c ) << pixel_shift ) , 3 , CHROMA_DC_BLOCK_INDEX + c , chroma422_dc_scan , 8 ) ;\n }\n if ( cbp & 0x20 ) {\n int c , i , i8x8 ;\n for ( c = 0 ;\n c < 2 ;\n c ++ ) {\n int16_t * mb = h -> mb + ( 16 * ( 16 + 16 * c ) << pixel_shift ) ;\n qmul = h -> dequant4_coeff [ c + 1 + ( IS_INTRA ( mb_type ) ? 0 : 3 ) ] [ h -> chroma_qp [ c ] ] ;\n for ( i8x8 = 0 ;\n i8x8 < 2 ;\n i8x8 ++ ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n const int index = 16 + 16 * c + 8 * i8x8 + i ;\n decode_cabac_residual_nondc ( h , mb , 4 , index , scan + 1 , qmul , 15 ) ;\n mb += 16 << pixel_shift ;\n }\n }\n }\n }\n else {\n fill_rectangle ( & h -> non_zero_count_cache [ scan8 [ 16 ] ] , 4 , 4 , 8 , 0 , 1 ) ;\n fill_rectangle ( & h -> non_zero_count_cache [ scan8 [ 32 ] ] , 4 , 4 , 8 , 0 , 1 ) ;\n }\n }\n else {\n if ( cbp & 0x30 ) {\n int c ;\n for ( c = 0 ;\n c < 2 ;\n c ++ ) decode_cabac_residual_dc ( h , h -> mb + ( ( 256 + 16 * 16 * c ) << pixel_shift ) , 3 , CHROMA_DC_BLOCK_INDEX + c , chroma_dc_scan , 4 ) ;\n }\n if ( cbp & 0x20 ) {\n int c , i ;\n for ( c = 0 ;\n c < 2 ;\n c ++ ) {\n qmul = h -> dequant4_coeff [ c + 1 + ( IS_INTRA ( mb_type ) ? 0 : 3 ) ] [ h -> chroma_qp [ c ] ] ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n const int index = 16 + 16 * c + i ;\n decode_cabac_residual_nondc ( h , h -> mb + ( 16 * index << pixel_shift ) , 4 , index , scan + 1 , qmul , 15 ) ;\n }\n }\n }\n else {\n fill_rectangle ( & h -> non_zero_count_cache [ scan8 [ 16 ] ] , 4 , 4 , 8 , 0 , 1 ) ;\n fill_rectangle ( & h -> non_zero_count_cache [ scan8 [ 32 ] ] , 4 , 4 , 8 , 0 , 1 ) ;\n }\n }\n }\n else {\n fill_rectangle ( & h -> non_zero_count_cache [ scan8 [ 0 ] ] , 4 , 4 , 8 , 0 , 1 ) ;\n fill_rectangle ( & h -> non_zero_count_cache [ scan8 [ 16 ] ] , 4 , 4 , 8 , 0 , 1 ) ;\n fill_rectangle ( & h -> non_zero_count_cache [ scan8 [ 32 ] ] , 4 , 4 , 8 , 0 , 1 ) ;\n h -> last_qscale_diff = 0 ;\n }\n h -> cur_pic . f . qscale_table [ mb_xy ] = h -> qscale ;\n write_back_non_zero_count ( h ) ;\n return 0 ;\n }"}
{"idx": 9009, "target": 0, "func": "int vp8_yv12_de_alloc_frame_buffer ( YV12_BUFFER_CONFIG * ybf ) {\n if ( ybf ) {\n if ( ybf -> buffer_alloc_sz > 0 ) {\n vpx_free ( ybf -> buffer_alloc ) ;\n }\n vpx_memset ( ybf , 0 , sizeof ( YV12_BUFFER_CONFIG ) ) ;\n }\n else {\n return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 9010, "target": 1, "func": "static int sipr_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n SiprContext * ctx = avctx -> priv_data ;\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n SiprParameters parm ;\n const SiprModeParam * mode_par = & modes [ ctx -> mode ] ;\n GetBitContext gb ;\n float * samples ;\n int subframe_size = ctx -> mode == MODE_16k ? L_SUBFR_16k : SUBFR_SIZE ;\n int i , ret ;\n ctx -> avctx = avctx ;\n if ( avpkt -> size < ( mode_par -> bits_per_frame >> 3 ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error processing packet: packet size (%d) too small\\n\" , avpkt -> size ) ;\n return - 1 ;\n }\n frame -> nb_samples = mode_par -> frames_per_packet * subframe_size * mode_par -> subframe_count ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n samples = ( float * ) frame -> data [ 0 ] ;\n init_get_bits ( & gb , buf , mode_par -> bits_per_frame ) ;\n for ( i = 0 ;\n i < mode_par -> frames_per_packet ;\n i ++ ) {\n decode_parameters ( & parm , & gb , mode_par ) ;\n ctx -> decode_frame ( ctx , & parm , samples ) ;\n samples += subframe_size * mode_par -> subframe_count ;\n }\n * got_frame_ptr = 1 ;\n return mode_par -> bits_per_frame >> 3 ;\n }"}
{"idx": 9011, "target": 0, "func": "void stp_print ( netdissect_options * ndo , const u_char * p , u_int length ) {\n const struct stp_bpdu_ * stp_bpdu ;\n u_int mstp_len ;\n u_int spb_len ;\n stp_bpdu = ( const struct stp_bpdu_ * ) p ;\n if ( length < 4 ) goto trunc ;\n ND_TCHECK ( stp_bpdu -> protocol_id ) ;\n if ( EXTRACT_16BITS ( & stp_bpdu -> protocol_id ) ) {\n ND_PRINT ( ( ndo , \"unknown STP version, length %u\" , length ) ) ;\n return ;\n }\n ND_TCHECK ( stp_bpdu -> protocol_version ) ;\n ND_PRINT ( ( ndo , \"STP %s\" , tok2str ( stp_proto_values , \"Unknown STP protocol (0x%02x)\" , stp_bpdu -> protocol_version ) ) ) ;\n switch ( stp_bpdu -> protocol_version ) {\n case STP_PROTO_REGULAR : case STP_PROTO_RAPID : case STP_PROTO_MSTP : case STP_PROTO_SPB : break ;\n default : return ;\n }\n ND_TCHECK ( stp_bpdu -> bpdu_type ) ;\n ND_PRINT ( ( ndo , \", %s\" , tok2str ( stp_bpdu_type_values , \"Unknown BPDU Type (0x%02x)\" , stp_bpdu -> bpdu_type ) ) ) ;\n switch ( stp_bpdu -> bpdu_type ) {\n case STP_BPDU_TYPE_CONFIG : if ( length < sizeof ( struct stp_bpdu_ ) - 1 ) {\n goto trunc ;\n }\n if ( ! stp_print_config_bpdu ( ndo , stp_bpdu , length ) ) goto trunc ;\n break ;\n case STP_BPDU_TYPE_RSTP : if ( stp_bpdu -> protocol_version == STP_PROTO_RAPID ) {\n if ( length < sizeof ( struct stp_bpdu_ ) ) {\n goto trunc ;\n }\n if ( ! stp_print_config_bpdu ( ndo , stp_bpdu , length ) ) goto trunc ;\n }\n else if ( stp_bpdu -> protocol_version == STP_PROTO_MSTP || stp_bpdu -> protocol_version == STP_PROTO_SPB ) {\n if ( length < STP_BPDU_MSTP_MIN_LEN ) {\n goto trunc ;\n }\n ND_TCHECK ( stp_bpdu -> v1_length ) ;\n if ( stp_bpdu -> v1_length != 0 ) {\n goto trunc ;\n }\n ND_TCHECK_16BITS ( p + MST_BPDU_VER3_LEN_OFFSET ) ;\n mstp_len = EXTRACT_16BITS ( p + MST_BPDU_VER3_LEN_OFFSET ) ;\n mstp_len += 2 ;\n if ( length < ( sizeof ( struct stp_bpdu_ ) + mstp_len ) ) {\n goto trunc ;\n }\n if ( ! stp_print_mstp_bpdu ( ndo , stp_bpdu , length ) ) goto trunc ;\n if ( stp_bpdu -> protocol_version == STP_PROTO_SPB ) {\n ND_TCHECK_16BITS ( p + MST_BPDU_VER3_LEN_OFFSET + mstp_len ) ;\n spb_len = EXTRACT_16BITS ( p + MST_BPDU_VER3_LEN_OFFSET + mstp_len ) ;\n spb_len += 2 ;\n if ( length < ( sizeof ( struct stp_bpdu_ ) + mstp_len + spb_len ) || spb_len < SPB_BPDU_MIN_LEN ) {\n goto trunc ;\n }\n if ( ! stp_print_spb_bpdu ( ndo , stp_bpdu , ( sizeof ( struct stp_bpdu_ ) + mstp_len ) ) ) goto trunc ;\n }\n }\n break ;\n case STP_BPDU_TYPE_TOPO_CHANGE : break ;\n default : break ;\n }\n return ;\n trunc : ND_PRINT ( ( ndo , \"[|stp %d]\" , length ) ) ;\n }"}
{"idx": 9012, "target": 0, "func": "char * TSUrlStringGet ( TSMBuffer bufp , TSMLoc obj , int * length ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_url_handle ( obj ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) length ) == TS_SUCCESS ) ;\n URLImpl * url_impl = ( URLImpl * ) obj ;\n return url_string_get ( url_impl , nullptr , length , nullptr ) ;\n }"}
{"idx": 9013, "target": 1, "func": "static void vga_draw_line8 ( VGACommonState * s1 , uint8_t * d , const uint8_t * s , int width ) {\n uint32_t * palette ;\n int x ;\n palette = s1 -> last_palette ;\n width >>= 3 ;\n for ( x = 0 ;\n x < width ;\n x ++ ) {\n ( ( uint32_t * ) d ) [ 0 ] = palette [ s [ 0 ] ] ;\n ( ( uint32_t * ) d ) [ 1 ] = palette [ s [ 1 ] ] ;\n ( ( uint32_t * ) d ) [ 2 ] = palette [ s [ 2 ] ] ;\n ( ( uint32_t * ) d ) [ 3 ] = palette [ s [ 3 ] ] ;\n ( ( uint32_t * ) d ) [ 4 ] = palette [ s [ 4 ] ] ;\n ( ( uint32_t * ) d ) [ 5 ] = palette [ s [ 5 ] ] ;\n ( ( uint32_t * ) d ) [ 6 ] = palette [ s [ 6 ] ] ;\n ( ( uint32_t * ) d ) [ 7 ] = palette [ s [ 7 ] ] ;\n d += 32 ;\n s += 8 ;\n }\n }"}
{"idx": 9014, "target": 0, "func": "static void set_partition_range ( VP9_COMMON * cm , MACROBLOCKD * xd , int mi_row , int mi_col , BLOCK_SIZE bsize , BLOCK_SIZE * min_bs , BLOCK_SIZE * max_bs ) {\n int mi_width = num_8x8_blocks_wide_lookup [ bsize ] ;\n int mi_height = num_8x8_blocks_high_lookup [ bsize ] ;\n int idx , idy ;\n MODE_INFO * mi ;\n const int idx_str = cm -> mi_stride * mi_row + mi_col ;\n MODE_INFO * prev_mi = ( cm -> prev_mip + cm -> mi_stride + 1 + idx_str ) -> src_mi ;\n BLOCK_SIZE bs , min_size , max_size ;\n min_size = BLOCK_64X64 ;\n max_size = BLOCK_4X4 ;\n if ( prev_mi ) {\n for ( idy = 0 ;\n idy < mi_height ;\n ++ idy ) {\n for ( idx = 0 ;\n idx < mi_width ;\n ++ idx ) {\n mi = prev_mi [ idy * cm -> mi_stride + idx ] . src_mi ;\n bs = mi ? mi -> mbmi . sb_type : bsize ;\n min_size = MIN ( min_size , bs ) ;\n max_size = MAX ( max_size , bs ) ;\n }\n }\n }\n if ( xd -> left_available ) {\n for ( idy = 0 ;\n idy < mi_height ;\n ++ idy ) {\n mi = xd -> mi [ idy * cm -> mi_stride - 1 ] . src_mi ;\n bs = mi ? mi -> mbmi . sb_type : bsize ;\n min_size = MIN ( min_size , bs ) ;\n max_size = MAX ( max_size , bs ) ;\n }\n }\n if ( xd -> up_available ) {\n for ( idx = 0 ;\n idx < mi_width ;\n ++ idx ) {\n mi = xd -> mi [ idx - cm -> mi_stride ] . src_mi ;\n bs = mi ? mi -> mbmi . sb_type : bsize ;\n min_size = MIN ( min_size , bs ) ;\n max_size = MAX ( max_size , bs ) ;\n }\n }\n if ( min_size == max_size ) {\n min_size = min_partition_size [ min_size ] ;\n max_size = max_partition_size [ max_size ] ;\n }\n * min_bs = min_size ;\n * max_bs = max_size ;\n }"}
{"idx": 9015, "target": 0, "func": "static void dtap_mm_abort ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_FALSE ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_REJ_CAUSE , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 9016, "target": 0, "func": "static int recode_loop_test ( const VP9_COMP * cpi , int high_limit , int low_limit , int q , int maxq , int minq ) {\n const VP9_COMMON * const cm = & cpi -> common ;\n const RATE_CONTROL * const rc = & cpi -> rc ;\n const VP9EncoderConfig * const oxcf = & cpi -> oxcf ;\n int force_recode = 0 ;\n if ( rc -> projected_frame_size > rc -> max_frame_bandwidth ) {\n force_recode = 1 ;\n }\n else if ( ( cpi -> sf . recode_loop == ALLOW_RECODE ) || ( ( cpi -> sf . recode_loop == ALLOW_RECODE_KFARFGF ) && ( cm -> frame_type == KEY_FRAME || cpi -> refresh_golden_frame || cpi -> refresh_alt_ref_frame ) ) ) {\n if ( ( rc -> projected_frame_size > high_limit && q < maxq ) || ( rc -> projected_frame_size < low_limit && q > minq ) ) {\n force_recode = 1 ;\n }\n else if ( cpi -> oxcf . rc_mode == VPX_CQ ) {\n if ( q > oxcf -> cq_level && rc -> projected_frame_size < ( ( rc -> this_frame_target * 7 ) >> 3 ) ) {\n force_recode = 1 ;\n }\n }\n }\n return force_recode ;\n }"}
{"idx": 9017, "target": 1, "func": "static void _UTF16BEFromUnicodeWithOffsets ( UConverterFromUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n UConverter * cnv ;\n const UChar * source ;\n char * target ;\n int32_t * offsets ;\n uint32_t targetCapacity , length , sourceIndex ;\n UChar c , trail ;\n char overflow [ 4 ] ;\n source = pArgs -> source ;\n length = ( int32_t ) ( pArgs -> sourceLimit - source ) ;\n if ( length <= 0 ) {\n return ;\n }\n cnv = pArgs -> converter ;\n if ( cnv -> fromUnicodeStatus == UCNV_NEED_TO_WRITE_BOM ) {\n static const char bom [ ] = {\n ( char ) 0xfe , ( char ) 0xff }\n ;\n ucnv_fromUWriteBytes ( cnv , bom , 2 , & pArgs -> target , pArgs -> targetLimit , & pArgs -> offsets , - 1 , pErrorCode ) ;\n cnv -> fromUnicodeStatus = 0 ;\n }\n target = pArgs -> target ;\n if ( target >= pArgs -> targetLimit ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n return ;\n }\n targetCapacity = ( uint32_t ) ( pArgs -> targetLimit - target ) ;\n offsets = pArgs -> offsets ;\n sourceIndex = 0 ;\n if ( ( c = ( UChar ) cnv -> fromUChar32 ) != 0 && U16_IS_TRAIL ( trail = * source ) && targetCapacity >= 4 ) {\n ++ source ;\n -- length ;\n target [ 0 ] = ( uint8_t ) ( c >> 8 ) ;\n target [ 1 ] = ( uint8_t ) c ;\n target [ 2 ] = ( uint8_t ) ( trail >> 8 ) ;\n target [ 3 ] = ( uint8_t ) trail ;\n target += 4 ;\n targetCapacity -= 4 ;\n if ( offsets != NULL ) {\n * offsets ++ = - 1 ;\n * offsets ++ = - 1 ;\n * offsets ++ = - 1 ;\n * offsets ++ = - 1 ;\n }\n sourceIndex = 1 ;\n cnv -> fromUChar32 = c = 0 ;\n }\n if ( c == 0 ) {\n uint32_t count = 2 * length ;\n if ( count > targetCapacity ) {\n count = targetCapacity & ~ 1 ;\n }\n targetCapacity -= count ;\n count >>= 1 ;\n length -= count ;\n if ( offsets == NULL ) {\n while ( count > 0 ) {\n c = * source ++ ;\n if ( U16_IS_SINGLE ( c ) ) {\n target [ 0 ] = ( uint8_t ) ( c >> 8 ) ;\n target [ 1 ] = ( uint8_t ) c ;\n target += 2 ;\n }\n else if ( U16_IS_SURROGATE_LEAD ( c ) && count >= 2 && U16_IS_TRAIL ( trail = * source ) ) {\n ++ source ;\n -- count ;\n target [ 0 ] = ( uint8_t ) ( c >> 8 ) ;\n target [ 1 ] = ( uint8_t ) c ;\n target [ 2 ] = ( uint8_t ) ( trail >> 8 ) ;\n target [ 3 ] = ( uint8_t ) trail ;\n target += 4 ;\n }\n else {\n break ;\n }\n -- count ;\n }\n }\n else {\n while ( count > 0 ) {\n c = * source ++ ;\n if ( U16_IS_SINGLE ( c ) ) {\n target [ 0 ] = ( uint8_t ) ( c >> 8 ) ;\n target [ 1 ] = ( uint8_t ) c ;\n target += 2 ;\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ++ ;\n }\n else if ( U16_IS_SURROGATE_LEAD ( c ) && count >= 2 && U16_IS_TRAIL ( trail = * source ) ) {\n ++ source ;\n -- count ;\n target [ 0 ] = ( uint8_t ) ( c >> 8 ) ;\n target [ 1 ] = ( uint8_t ) c ;\n target [ 2 ] = ( uint8_t ) ( trail >> 8 ) ;\n target [ 3 ] = ( uint8_t ) trail ;\n target += 4 ;\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ;\n sourceIndex += 2 ;\n }\n else {\n break ;\n }\n -- count ;\n }\n }\n if ( count == 0 ) {\n if ( length > 0 && targetCapacity > 0 ) {\n if ( U16_IS_SINGLE ( c = * source ++ ) ) {\n overflow [ 0 ] = ( char ) ( c >> 8 ) ;\n overflow [ 1 ] = ( char ) c ;\n length = 2 ;\n c = 0 ;\n }\n }\n else {\n length = 0 ;\n c = 0 ;\n }\n }\n else {\n targetCapacity += 2 * count ;\n }\n }\n else {\n length = 0 ;\n }\n if ( c != 0 ) {\n length = 0 ;\n if ( U16_IS_SURROGATE_LEAD ( c ) ) {\n if ( source < pArgs -> sourceLimit ) {\n if ( U16_IS_TRAIL ( trail = * source ) ) {\n ++ source ;\n overflow [ 0 ] = ( char ) ( c >> 8 ) ;\n overflow [ 1 ] = ( char ) c ;\n overflow [ 2 ] = ( char ) ( trail >> 8 ) ;\n overflow [ 3 ] = ( char ) trail ;\n length = 4 ;\n c = 0 ;\n }\n else {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n else {\n }\n }\n else {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n }\n cnv -> fromUChar32 = c ;\n }\n if ( length > 0 ) {\n ucnv_fromUWriteBytes ( cnv , overflow , length , ( char * * ) & target , pArgs -> targetLimit , & offsets , sourceIndex , pErrorCode ) ;\n targetCapacity = ( uint32_t ) ( pArgs -> targetLimit - ( char * ) target ) ;\n }\n if ( U_SUCCESS ( * pErrorCode ) && source < pArgs -> sourceLimit && targetCapacity == 0 ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n pArgs -> source = source ;\n pArgs -> target = ( char * ) target ;\n pArgs -> offsets = offsets ;\n }"}
{"idx": 9018, "target": 0, "func": "void ff_MPV_common_defaults ( MpegEncContext * s ) {\n s -> y_dc_scale_table = s -> c_dc_scale_table = ff_mpeg1_dc_scale_table ;\n s -> chroma_qscale_table = ff_default_chroma_qscale_table ;\n s -> progressive_frame = 1 ;\n s -> progressive_sequence = 1 ;\n s -> picture_structure = PICT_FRAME ;\n s -> coded_picture_number = 0 ;\n s -> picture_number = 0 ;\n s -> input_picture_number = 0 ;\n s -> picture_in_gop_number = 0 ;\n s -> f_code = 1 ;\n s -> b_code = 1 ;\n s -> slice_context_count = 1 ;\n }"}
{"idx": 9019, "target": 0, "func": "void do_move_file ( struct st_command * command ) {\n int error ;\n static DYNAMIC_STRING ds_from_file ;\n static DYNAMIC_STRING ds_to_file ;\n const struct command_arg move_file_args [ ] = {\n {\n \"from_file\" , ARG_STRING , TRUE , & ds_from_file , \"Filename to move from\" }\n , {\n \"to_file\" , ARG_STRING , TRUE , & ds_to_file , \"Filename to move to\" }\n }\n ;\n DBUG_ENTER ( \"do_move_file\" ) ;\n check_command_args ( command , command -> first_argument , move_file_args , sizeof ( move_file_args ) / sizeof ( struct command_arg ) , ' ' ) ;\n DBUG_PRINT ( \"info\" , ( \"Move %s to %s\" , ds_from_file . str , ds_to_file . str ) ) ;\n error = ( my_rename ( ds_from_file . str , ds_to_file . str , MYF ( disable_warnings ? 0 : MY_WME ) ) != 0 ) ;\n handle_command_error ( command , error , my_errno ) ;\n dynstr_free ( & ds_from_file ) ;\n dynstr_free ( & ds_to_file ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 9020, "target": 0, "func": "static int xps_parse_gradient_stops ( xps_document * doc , char * base_uri , fz_xml * node , struct stop * stops , int maxcount ) {\n fz_colorspace * colorspace ;\n float sample [ FZ_MAX_COLORS ] ;\n float rgb [ 3 ] ;\n int before , after ;\n int count ;\n int i ;\n maxcount -= 2 ;\n count = 0 ;\n while ( node && count < maxcount ) {\n if ( ! strcmp ( fz_xml_tag ( node ) , \"GradientStop\" ) ) {\n char * offset = fz_xml_att ( node , \"Offset\" ) ;\n char * color = fz_xml_att ( node , \"Color\" ) ;\n if ( offset && color ) {\n stops [ count ] . offset = fz_atof ( offset ) ;\n stops [ count ] . index = count ;\n xps_parse_color ( doc , base_uri , color , & colorspace , sample ) ;\n fz_convert_color ( doc -> ctx , fz_device_rgb ( doc -> ctx ) , rgb , colorspace , sample + 1 ) ;\n stops [ count ] . r = rgb [ 0 ] ;\n stops [ count ] . g = rgb [ 1 ] ;\n stops [ count ] . b = rgb [ 2 ] ;\n stops [ count ] . a = sample [ 0 ] ;\n count ++ ;\n }\n }\n node = fz_xml_next ( node ) ;\n }\n if ( count == 0 ) {\n fz_warn ( doc -> ctx , \"gradient brush has no gradient stops\" ) ;\n stops [ 0 ] . offset = 0 ;\n stops [ 0 ] . r = 0 ;\n stops [ 0 ] . g = 0 ;\n stops [ 0 ] . b = 0 ;\n stops [ 0 ] . a = 1 ;\n stops [ 1 ] . offset = 1 ;\n stops [ 1 ] . r = 1 ;\n stops [ 1 ] . g = 1 ;\n stops [ 1 ] . b = 1 ;\n stops [ 1 ] . a = 1 ;\n return 2 ;\n }\n if ( count == maxcount ) fz_warn ( doc -> ctx , \"gradient brush exceeded maximum number of gradient stops\" ) ;\n qsort ( stops , count , sizeof ( struct stop ) , cmp_stop ) ;\n before = - 1 ;\n after = - 1 ;\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n if ( stops [ i ] . offset < 0 ) before = i ;\n if ( stops [ i ] . offset > 1 ) {\n after = i ;\n break ;\n }\n }\n if ( before > 0 ) {\n memmove ( stops , stops + before , ( count - before ) * sizeof ( struct stop ) ) ;\n count -= before ;\n }\n if ( after >= 0 ) count = after + 1 ;\n if ( count == 1 ) {\n stops [ 1 ] = stops [ 0 ] ;\n stops [ 0 ] . offset = 0 ;\n stops [ 1 ] . offset = 1 ;\n return 2 ;\n }\n if ( stops [ 0 ] . offset < 0 ) {\n float d = - stops [ 0 ] . offset / ( stops [ 1 ] . offset - stops [ 0 ] . offset ) ;\n stops [ 0 ] . offset = 0 ;\n stops [ 0 ] . r = lerp ( stops [ 0 ] . r , stops [ 1 ] . r , d ) ;\n stops [ 0 ] . g = lerp ( stops [ 0 ] . g , stops [ 1 ] . g , d ) ;\n stops [ 0 ] . b = lerp ( stops [ 0 ] . b , stops [ 1 ] . b , d ) ;\n stops [ 0 ] . a = lerp ( stops [ 0 ] . a , stops [ 1 ] . a , d ) ;\n }\n if ( stops [ count - 1 ] . offset > 1 ) {\n float d = ( 1 - stops [ count - 2 ] . offset ) / ( stops [ count - 1 ] . offset - stops [ count - 2 ] . offset ) ;\n stops [ count - 1 ] . offset = 1 ;\n stops [ count - 1 ] . r = lerp ( stops [ count - 2 ] . r , stops [ count - 1 ] . r , d ) ;\n stops [ count - 1 ] . g = lerp ( stops [ count - 2 ] . g , stops [ count - 1 ] . g , d ) ;\n stops [ count - 1 ] . b = lerp ( stops [ count - 2 ] . b , stops [ count - 1 ] . b , d ) ;\n stops [ count - 1 ] . a = lerp ( stops [ count - 2 ] . a , stops [ count - 1 ] . a , d ) ;\n }\n if ( stops [ 0 ] . offset > 0 ) {\n memmove ( stops + 1 , stops , count * sizeof ( struct stop ) ) ;\n stops [ 0 ] = stops [ 1 ] ;\n stops [ 0 ] . offset = 0 ;\n count ++ ;\n }\n if ( stops [ count - 1 ] . offset < 1 ) {\n stops [ count ] = stops [ count - 1 ] ;\n stops [ count ] . offset = 1 ;\n count ++ ;\n }\n return count ;\n }"}
{"idx": 9021, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n int h , w , ret ;\n AVFrame * pic = avctx -> coded_frame ;\n const uint32_t * src = ( const uint32_t * ) avpkt -> data ;\n int aligned_width = FFALIGN ( avctx -> width , 64 ) ;\n uint8_t * dst_line ;\n if ( pic -> data [ 0 ] ) avctx -> release_buffer ( avctx , pic ) ;\n if ( avpkt -> size < 4 * aligned_width * avctx -> height ) {\n av_log ( avctx , AV_LOG_ERROR , \"packet too small\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n pic -> reference = 0 ;\n if ( ( ret = ff_get_buffer ( avctx , pic ) ) < 0 ) return ret ;\n pic -> pict_type = AV_PICTURE_TYPE_I ;\n pic -> key_frame = 1 ;\n dst_line = pic -> data [ 0 ] ;\n for ( h = 0 ;\n h < avctx -> height ;\n h ++ ) {\n uint16_t * dst = ( uint16_t * ) dst_line ;\n for ( w = 0 ;\n w < avctx -> width ;\n w ++ ) {\n uint32_t pixel = av_be2ne32 ( * src ++ ) ;\n uint16_t r , g , b ;\n if ( avctx -> codec_id == AV_CODEC_ID_R210 ) {\n b = pixel << 6 ;\n g = ( pixel >> 4 ) & 0xffc0 ;\n r = ( pixel >> 14 ) & 0xffc0 ;\n }\n else {\n b = pixel << 4 ;\n g = ( pixel >> 6 ) & 0xffc0 ;\n r = ( pixel >> 16 ) & 0xffc0 ;\n }\n * dst ++ = r | ( r >> 10 ) ;\n * dst ++ = g | ( g >> 10 ) ;\n * dst ++ = b | ( b >> 10 ) ;\n }\n src += aligned_width - avctx -> width ;\n dst_line += pic -> linesize [ 0 ] ;\n }\n * got_frame = 1 ;\n * ( AVFrame * ) data = * avctx -> coded_frame ;\n return avpkt -> size ;\n }"}
{"idx": 9022, "target": 0, "func": "static void custom_basename_skip ( va_list * va ) {\n ( void ) va_arg ( * va , GFile * ) ;\n }"}
{"idx": 9023, "target": 0, "func": "static int get_sha1_hex_from_objpath ( const char * path , unsigned char * sha1 ) {\n char hex [ 40 ] ;\n if ( strlen ( path ) != 41 ) return - 1 ;\n memcpy ( hex , path , 2 ) ;\n path += 2 ;\n path ++ ;\n memcpy ( hex , path , 38 ) ;\n return get_sha1_hex ( hex , sha1 ) ;\n }"}
{"idx": 9024, "target": 0, "func": "static void file_info_stop ( NautilusDirectory * directory ) {\n NautilusFile * file ;\n if ( directory -> details -> get_info_in_progress != NULL ) {\n file = directory -> details -> get_info_file ;\n if ( file != NULL ) {\n g_assert ( NAUTILUS_IS_FILE ( file ) ) ;\n g_assert ( file -> details -> directory == directory ) ;\n if ( is_needy ( file , lacks_info , REQUEST_FILE_INFO ) ) {\n return ;\n }\n }\n file_info_cancel ( directory ) ;\n }\n }"}
{"idx": 9025, "target": 0, "func": "static uint32_t * _findRow ( UPropsVectors * pv , UChar32 rangeStart ) {\n uint32_t * row ;\n int32_t columns , i , start , limit , prevRow ;\n columns = pv -> columns ;\n limit = pv -> rows ;\n prevRow = pv -> prevRow ;\n row = pv -> v + prevRow * columns ;\n if ( rangeStart >= ( UChar32 ) row [ 0 ] ) {\n if ( rangeStart < ( UChar32 ) row [ 1 ] ) {\n return row ;\n }\n else if ( rangeStart < ( UChar32 ) ( row += columns ) [ 1 ] ) {\n pv -> prevRow = prevRow + 1 ;\n return row ;\n }\n else if ( rangeStart < ( UChar32 ) ( row += columns ) [ 1 ] ) {\n pv -> prevRow = prevRow + 2 ;\n return row ;\n }\n else if ( ( rangeStart - ( UChar32 ) row [ 1 ] ) < 10 ) {\n prevRow += 2 ;\n do {\n ++ prevRow ;\n row += columns ;\n }\n while ( rangeStart >= ( UChar32 ) row [ 1 ] ) ;\n pv -> prevRow = prevRow ;\n return row ;\n }\n }\n else if ( rangeStart < ( UChar32 ) pv -> v [ 1 ] ) {\n pv -> prevRow = 0 ;\n return pv -> v ;\n }\n start = 0 ;\n while ( start < limit - 1 ) {\n i = ( start + limit ) / 2 ;\n row = pv -> v + i * columns ;\n if ( rangeStart < ( UChar32 ) row [ 0 ] ) {\n limit = i ;\n }\n else if ( rangeStart < ( UChar32 ) row [ 1 ] ) {\n pv -> prevRow = i ;\n return row ;\n }\n else {\n start = i ;\n }\n }\n pv -> prevRow = start ;\n return pv -> v + start * columns ;\n }"}
{"idx": 9026, "target": 0, "func": "List * deconstruct_indexquals ( IndexPath * path ) {\n List * result = NIL ;\n IndexOptInfo * index = path -> indexinfo ;\n ListCell * lcc , * lci ;\n forboth ( lcc , path -> indexquals , lci , path -> indexqualcols ) {\n RestrictInfo * rinfo = ( RestrictInfo * ) lfirst ( lcc ) ;\n int indexcol = lfirst_int ( lci ) ;\n Expr * clause ;\n Node * leftop , * rightop ;\n IndexQualInfo * qinfo ;\n Assert ( IsA ( rinfo , RestrictInfo ) ) ;\n clause = rinfo -> clause ;\n qinfo = ( IndexQualInfo * ) palloc ( sizeof ( IndexQualInfo ) ) ;\n qinfo -> rinfo = rinfo ;\n qinfo -> indexcol = indexcol ;\n if ( IsA ( clause , OpExpr ) ) {\n qinfo -> clause_op = ( ( OpExpr * ) clause ) -> opno ;\n leftop = get_leftop ( clause ) ;\n rightop = get_rightop ( clause ) ;\n if ( match_index_to_operand ( leftop , indexcol , index ) ) {\n qinfo -> varonleft = true ;\n qinfo -> other_operand = rightop ;\n }\n else {\n Assert ( match_index_to_operand ( rightop , indexcol , index ) ) ;\n qinfo -> varonleft = false ;\n qinfo -> other_operand = leftop ;\n }\n }\n else if ( IsA ( clause , RowCompareExpr ) ) {\n RowCompareExpr * rc = ( RowCompareExpr * ) clause ;\n qinfo -> clause_op = linitial_oid ( rc -> opnos ) ;\n if ( match_index_to_operand ( ( Node * ) linitial ( rc -> largs ) , indexcol , index ) ) {\n qinfo -> varonleft = true ;\n qinfo -> other_operand = ( Node * ) rc -> rargs ;\n }\n else {\n Assert ( match_index_to_operand ( ( Node * ) linitial ( rc -> rargs ) , indexcol , index ) ) ;\n qinfo -> varonleft = false ;\n qinfo -> other_operand = ( Node * ) rc -> largs ;\n }\n }\n else if ( IsA ( clause , ScalarArrayOpExpr ) ) {\n ScalarArrayOpExpr * saop = ( ScalarArrayOpExpr * ) clause ;\n qinfo -> clause_op = saop -> opno ;\n Assert ( match_index_to_operand ( ( Node * ) linitial ( saop -> args ) , indexcol , index ) ) ;\n qinfo -> varonleft = true ;\n qinfo -> other_operand = ( Node * ) lsecond ( saop -> args ) ;\n }\n else if ( IsA ( clause , NullTest ) ) {\n qinfo -> clause_op = InvalidOid ;\n Assert ( match_index_to_operand ( ( Node * ) ( ( NullTest * ) clause ) -> arg , indexcol , index ) ) ;\n qinfo -> varonleft = true ;\n qinfo -> other_operand = NULL ;\n }\n else {\n elog ( ERROR , \"unsupported indexqual type: %d\" , ( int ) nodeTag ( clause ) ) ;\n }\n result = lappend ( result , qinfo ) ;\n }\n return result ;\n }"}
{"idx": 9027, "target": 0, "func": "void macio_ide_register_dma ( MACIOIDEState * s , void * dbdma , int channel ) {\n s -> dbdma = dbdma ;\n DBDMA_register_channel ( dbdma , channel , s -> dma_irq , pmac_ide_transfer , pmac_ide_flush , s ) ;\n }"}
{"idx": 9028, "target": 0, "func": "static void cal_nmvsadcosts ( int * mvsadcost [ 2 ] ) {\n int i = 1 ;\n mvsadcost [ 0 ] [ 0 ] = 0 ;\n mvsadcost [ 1 ] [ 0 ] = 0 ;\n do {\n double z = 256 * ( 2 * ( log2f ( 8 * i ) + .6 ) ) ;\n mvsadcost [ 0 ] [ i ] = ( int ) z ;\n mvsadcost [ 1 ] [ i ] = ( int ) z ;\n mvsadcost [ 0 ] [ - i ] = ( int ) z ;\n mvsadcost [ 1 ] [ - i ] = ( int ) z ;\n }\n while ( ++ i <= MV_MAX ) ;\n }"}
{"idx": 9029, "target": 0, "func": "static void start_packfile ( void ) {\n static char tmp_file [ PATH_MAX ] ;\n struct packed_git * p ;\n int namelen ;\n struct pack_header hdr ;\n int pack_fd ;\n pack_fd = odb_mkstemp ( tmp_file , sizeof ( tmp_file ) , \"pack/tmp_pack_XXXXXX\" ) ;\n namelen = strlen ( tmp_file ) + 2 ;\n p = xcalloc ( 1 , sizeof ( * p ) + namelen ) ;\n xsnprintf ( p -> pack_name , namelen , \"%s\" , tmp_file ) ;\n p -> pack_fd = pack_fd ;\n p -> do_not_close = 1 ;\n pack_file = sha1fd ( pack_fd , p -> pack_name ) ;\n hdr . hdr_signature = htonl ( PACK_SIGNATURE ) ;\n hdr . hdr_version = htonl ( 2 ) ;\n hdr . hdr_entries = 0 ;\n sha1write ( pack_file , & hdr , sizeof ( hdr ) ) ;\n pack_data = p ;\n pack_size = sizeof ( hdr ) ;\n object_count = 0 ;\n REALLOC_ARRAY ( all_packs , pack_id + 1 ) ;\n all_packs [ pack_id ] = p ;\n }"}
{"idx": 9030, "target": 0, "func": "my_bool match_delimiter ( int c , const char * delim , uint length ) {\n uint i ;\n char tmp [ MAX_DELIMITER_LENGTH ] ;\n if ( c != * delim ) return 0 ;\n for ( i = 1 ;\n i < length && ( c = my_getc ( cur_file -> file ) ) == * ( delim + i ) ;\n i ++ ) tmp [ i ] = c ;\n if ( i == length ) return 1 ;\n my_ungetc ( c ) ;\n while ( i > 1 ) my_ungetc ( tmp [ -- i ] ) ;\n return 0 ;\n }"}
{"idx": 9031, "target": 0, "func": "int EVP_CipherInit_ex ( EVP_CIPHER_CTX * ctx , const EVP_CIPHER * cipher , ENGINE * impl , const unsigned char * key , const unsigned char * iv , int enc ) {\n if ( enc == - 1 ) enc = ctx -> encrypt ;\n else {\n if ( enc ) enc = 1 ;\n ctx -> encrypt = enc ;\n }\n # ifndef OPENSSL_NO_ENGINE if ( ctx -> engine && ctx -> cipher && ( ! cipher || ( cipher && ( cipher -> nid == ctx -> cipher -> nid ) ) ) ) goto skip_to_init ;\n # endif if ( cipher ) {\n if ( ctx -> cipher ) {\n unsigned long flags = ctx -> flags ;\n EVP_CIPHER_CTX_reset ( ctx ) ;\n ctx -> encrypt = enc ;\n ctx -> flags = flags ;\n }\n # ifndef OPENSSL_NO_ENGINE if ( impl ) {\n if ( ! ENGINE_init ( impl ) ) {\n EVPerr ( EVP_F_EVP_CIPHERINIT_EX , EVP_R_INITIALIZATION_ERROR ) ;\n return 0 ;\n }\n }\n else impl = ENGINE_get_cipher_engine ( cipher -> nid ) ;\n if ( impl ) {\n const EVP_CIPHER * c = ENGINE_get_cipher ( impl , cipher -> nid ) ;\n if ( ! c ) {\n EVPerr ( EVP_F_EVP_CIPHERINIT_EX , EVP_R_INITIALIZATION_ERROR ) ;\n return 0 ;\n }\n cipher = c ;\n ctx -> engine = impl ;\n }\n else ctx -> engine = NULL ;\n # endif ctx -> cipher = cipher ;\n if ( ctx -> cipher -> ctx_size ) {\n ctx -> cipher_data = OPENSSL_zalloc ( ctx -> cipher -> ctx_size ) ;\n if ( ctx -> cipher_data == NULL ) {\n EVPerr ( EVP_F_EVP_CIPHERINIT_EX , ERR_R_MALLOC_FAILURE ) ;\n return 0 ;\n }\n }\n else {\n ctx -> cipher_data = NULL ;\n }\n ctx -> key_len = cipher -> key_len ;\n ctx -> flags &= EVP_CIPHER_CTX_FLAG_WRAP_ALLOW ;\n if ( ctx -> cipher -> flags & EVP_CIPH_CTRL_INIT ) {\n if ( ! EVP_CIPHER_CTX_ctrl ( ctx , EVP_CTRL_INIT , 0 , NULL ) ) {\n EVPerr ( EVP_F_EVP_CIPHERINIT_EX , EVP_R_INITIALIZATION_ERROR ) ;\n return 0 ;\n }\n }\n }\n else if ( ! ctx -> cipher ) {\n EVPerr ( EVP_F_EVP_CIPHERINIT_EX , EVP_R_NO_CIPHER_SET ) ;\n return 0 ;\n }\n # ifndef OPENSSL_NO_ENGINE skip_to_init : # endif OPENSSL_assert ( ctx -> cipher -> block_size == 1 || ctx -> cipher -> block_size == 8 || ctx -> cipher -> block_size == 16 ) ;\n if ( ! ( ctx -> flags & EVP_CIPHER_CTX_FLAG_WRAP_ALLOW ) && EVP_CIPHER_CTX_mode ( ctx ) == EVP_CIPH_WRAP_MODE ) {\n EVPerr ( EVP_F_EVP_CIPHERINIT_EX , EVP_R_WRAP_MODE_NOT_ALLOWED ) ;\n return 0 ;\n }\n if ( ! ( EVP_CIPHER_flags ( EVP_CIPHER_CTX_cipher ( ctx ) ) & EVP_CIPH_CUSTOM_IV ) ) {\n switch ( EVP_CIPHER_CTX_mode ( ctx ) ) {\n case EVP_CIPH_STREAM_CIPHER : case EVP_CIPH_ECB_MODE : break ;\n case EVP_CIPH_CFB_MODE : case EVP_CIPH_OFB_MODE : ctx -> num = 0 ;\n case EVP_CIPH_CBC_MODE : OPENSSL_assert ( EVP_CIPHER_CTX_iv_length ( ctx ) <= ( int ) sizeof ( ctx -> iv ) ) ;\n if ( iv ) memcpy ( ctx -> oiv , iv , EVP_CIPHER_CTX_iv_length ( ctx ) ) ;\n memcpy ( ctx -> iv , ctx -> oiv , EVP_CIPHER_CTX_iv_length ( ctx ) ) ;\n break ;\n case EVP_CIPH_CTR_MODE : ctx -> num = 0 ;\n if ( iv ) memcpy ( ctx -> iv , iv , EVP_CIPHER_CTX_iv_length ( ctx ) ) ;\n break ;\n default : return 0 ;\n }\n }\n if ( key || ( ctx -> cipher -> flags & EVP_CIPH_ALWAYS_CALL_INIT ) ) {\n if ( ! ctx -> cipher -> init ( ctx , key , iv , enc ) ) return 0 ;\n }\n ctx -> buf_len = 0 ;\n ctx -> final_used = 0 ;\n ctx -> block_mask = ctx -> cipher -> block_size - 1 ;\n return 1 ;\n }"}
{"idx": 9032, "target": 0, "func": "static void test_bug47485 ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_RES * res ;\n MYSQL_BIND bind [ 2 ] ;\n int rc ;\n const char * sql_select = \"SELECT 1, 'a'\" ;\n int int_data ;\n char str_data [ 16 ] ;\n my_bool is_null [ 2 ] ;\n my_bool error [ 2 ] ;\n unsigned long length [ 2 ] ;\n DBUG_ENTER ( \"test_bug47485\" ) ;\n myheader ( \"test_bug47485\" ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_prepare ( stmt , sql_select , strlen ( sql_select ) ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n res = mysql_store_result ( mysql ) ;\n DIE_UNLESS ( res == NULL ) ;\n mysql_stmt_reset ( stmt ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n res = mysql_use_result ( mysql ) ;\n DIE_UNLESS ( res == NULL ) ;\n mysql_stmt_reset ( stmt ) ;\n memset ( bind , 0 , sizeof ( bind ) ) ;\n bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n bind [ 0 ] . buffer = ( char * ) & int_data ;\n bind [ 0 ] . is_null = & is_null [ 0 ] ;\n bind [ 0 ] . length = & length [ 0 ] ;\n bind [ 0 ] . error = & error [ 0 ] ;\n bind [ 1 ] . buffer_type = MYSQL_TYPE_STRING ;\n bind [ 1 ] . buffer = ( char * ) str_data ;\n bind [ 1 ] . buffer_length = sizeof ( str_data ) ;\n bind [ 1 ] . is_null = & is_null [ 1 ] ;\n bind [ 1 ] . length = & length [ 1 ] ;\n bind [ 1 ] . error = & error [ 1 ] ;\n rc = mysql_stmt_bind_result ( stmt , bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_store_result ( stmt ) ;\n check_execute ( stmt , rc ) ;\n while ( ! ( rc = mysql_stmt_fetch ( stmt ) ) ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n mysql_stmt_reset ( stmt ) ;\n memset ( bind , 0 , sizeof ( bind ) ) ;\n bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n bind [ 0 ] . buffer = ( char * ) & int_data ;\n bind [ 0 ] . is_null = & is_null [ 0 ] ;\n bind [ 0 ] . length = & length [ 0 ] ;\n bind [ 0 ] . error = & error [ 0 ] ;\n bind [ 1 ] . buffer_type = MYSQL_TYPE_STRING ;\n bind [ 1 ] . buffer = ( char * ) str_data ;\n bind [ 1 ] . buffer_length = sizeof ( str_data ) ;\n bind [ 1 ] . is_null = & is_null [ 1 ] ;\n bind [ 1 ] . length = & length [ 1 ] ;\n bind [ 1 ] . error = & error [ 1 ] ;\n rc = mysql_stmt_bind_result ( stmt , bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n while ( ! ( rc = mysql_stmt_fetch ( stmt ) ) ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n mysql_stmt_close ( stmt ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 9033, "target": 0, "func": "static void do_rematrixing ( AC3DecodeContext * s ) {\n int bnd , i ;\n int end , bndend ;\n end = FFMIN ( s -> end_freq [ 1 ] , s -> end_freq [ 2 ] ) ;\n for ( bnd = 0 ;\n bnd < s -> num_rematrixing_bands ;\n bnd ++ ) {\n if ( s -> rematrixing_flags [ bnd ] ) {\n bndend = FFMIN ( end , ff_ac3_rematrix_band_tab [ bnd + 1 ] ) ;\n for ( i = ff_ac3_rematrix_band_tab [ bnd ] ;\n i < bndend ;\n i ++ ) {\n int tmp0 = s -> fixed_coeffs [ 1 ] [ i ] ;\n s -> fixed_coeffs [ 1 ] [ i ] += s -> fixed_coeffs [ 2 ] [ i ] ;\n s -> fixed_coeffs [ 2 ] [ i ] = tmp0 - s -> fixed_coeffs [ 2 ] [ i ] ;\n }\n }\n }\n }"}
{"idx": 9034, "target": 0, "func": "static int ohci_copy_iso_td ( OHCIState * ohci , uint32_t start_addr , uint32_t end_addr , uint8_t * buf , int len , DMADirection dir ) {\n dma_addr_t ptr , n ;\n ptr = start_addr ;\n n = 0x1000 - ( ptr & 0xfff ) ;\n if ( n > len ) n = len ;\n if ( dma_memory_rw ( ohci -> as , ptr + ohci -> localmem_base , buf , n , dir ) ) {\n return - 1 ;\n }\n if ( n == len ) {\n return 0 ;\n }\n ptr = end_addr & ~ 0xfffu ;\n buf += n ;\n if ( dma_memory_rw ( ohci -> as , ptr + ohci -> localmem_base , buf , len - n , dir ) ) {\n return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 9035, "target": 0, "func": "static void test_field_misc ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_RES * result ;\n int rc ;\n myheader ( \"test_field_misc\" ) ;\n rc = mysql_query ( mysql , \"SELECT @@autocommit\" ) ;\n myquery ( rc ) ;\n result = mysql_store_result ( mysql ) ;\n mytest ( result ) ;\n rc = my_process_result_set ( result ) ;\n DIE_UNLESS ( rc == 1 ) ;\n verify_prepare_field ( result , 0 , \"@@autocommit\" , \"\" , MYSQL_TYPE_LONGLONG , \"\" , \"\" , \"\" , 1 , 0 ) ;\n mysql_free_result ( result ) ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT @@autocommit\" ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n result = mysql_stmt_result_metadata ( stmt ) ;\n mytest ( result ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( rc == 1 ) ;\n verify_prepare_field ( result , 0 , \"@@autocommit\" , \"\" , MYSQL_TYPE_LONGLONG , \"\" , \"\" , \"\" , 1 , 0 ) ;\n mysql_free_result ( result ) ;\n mysql_stmt_close ( stmt ) ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT @@max_error_count\" ) ;\n check_stmt ( stmt ) ;\n result = mysql_stmt_result_metadata ( stmt ) ;\n mytest ( result ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( rc == 1 ) ;\n verify_prepare_field ( result , 0 , \"@@max_error_count\" , \"\" , MYSQL_TYPE_LONGLONG , \"\" , \"\" , \"\" , MY_INT64_NUM_DECIMAL_DIGITS , 0 ) ;\n mysql_free_result ( result ) ;\n mysql_stmt_close ( stmt ) ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT @@max_allowed_packet\" ) ;\n check_stmt ( stmt ) ;\n result = mysql_stmt_result_metadata ( stmt ) ;\n mytest ( result ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n DIE_UNLESS ( 1 == my_process_stmt_result ( stmt ) ) ;\n verify_prepare_field ( result , 0 , \"@@max_allowed_packet\" , \"\" , MYSQL_TYPE_LONGLONG , \"\" , \"\" , \"\" , MY_INT64_NUM_DECIMAL_DIGITS , 0 ) ;\n mysql_free_result ( result ) ;\n mysql_stmt_close ( stmt ) ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT @@sql_warnings\" ) ;\n check_stmt ( stmt ) ;\n result = mysql_stmt_result_metadata ( stmt ) ;\n mytest ( result ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( rc == 1 ) ;\n verify_prepare_field ( result , 0 , \"@@sql_warnings\" , \"\" , MYSQL_TYPE_LONGLONG , \"\" , \"\" , \"\" , 1 , 0 ) ;\n mysql_free_result ( result ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 9036, "target": 0, "func": "int xmlrpc_unregister_method ( const char * method ) {\n return_val_if_fail ( method != NULL , XMLRPC_ERR_PARAMS ) ;\n mowgli_patricia_delete ( XMLRPCCMD , method ) ;\n return XMLRPC_ERR_OK ;\n }"}
{"idx": 9037, "target": 0, "func": "TEST_F ( BrowsingDataRemoverImplTest , RemoveQuotaManagedDataForLastWeek ) {\n BlockUntilBrowsingDataRemoved ( base : : Time : : Now ( ) - base : : TimeDelta : : FromDays ( 7 ) , base : : Time : : Max ( ) , BrowsingDataRemover : : REMOVE_FILE_SYSTEMS | BrowsingDataRemover : : REMOVE_WEBSQL | BrowsingDataRemover : : REMOVE_APPCACHE | BrowsingDataRemover : : REMOVE_SERVICE_WORKERS | BrowsingDataRemover : : REMOVE_CACHE_STORAGE | BrowsingDataRemover : : REMOVE_INDEXEDDB , false ) ;\n EXPECT_EQ ( BrowsingDataRemover : : REMOVE_FILE_SYSTEMS | BrowsingDataRemover : : REMOVE_WEBSQL | BrowsingDataRemover : : REMOVE_APPCACHE | BrowsingDataRemover : : REMOVE_SERVICE_WORKERS | BrowsingDataRemover : : REMOVE_CACHE_STORAGE | BrowsingDataRemover : : REMOVE_INDEXEDDB , GetRemovalMask ( ) ) ;\n EXPECT_EQ ( BrowsingDataHelper : : UNPROTECTED_WEB , GetOriginTypeMask ( ) ) ;\n StoragePartitionRemovalData removal_data = GetStoragePartitionRemovalData ( ) ;\n EXPECT_EQ ( removal_data . remove_mask , StoragePartition : : REMOVE_DATA_MASK_FILE_SYSTEMS | StoragePartition : : REMOVE_DATA_MASK_WEBSQL | StoragePartition : : REMOVE_DATA_MASK_APPCACHE | StoragePartition : : REMOVE_DATA_MASK_SERVICE_WORKERS | StoragePartition : : REMOVE_DATA_MASK_CACHE_STORAGE | StoragePartition : : REMOVE_DATA_MASK_INDEXEDDB ) ;\n uint32_t expected_quota_mask = ~ StoragePartition : : QUOTA_MANAGED_STORAGE_MASK_PERSISTENT ;\n EXPECT_EQ ( removal_data . quota_storage_remove_mask , expected_quota_mask ) ;\n EXPECT_EQ ( removal_data . remove_begin , GetBeginTime ( ) ) ;\n }"}
{"idx": 9038, "target": 0, "func": "static void writer_print_data ( WriterContext * wctx , const char * name , uint8_t * data , int size ) {\n AVBPrint bp ;\n int offset = 0 , l , i ;\n av_bprint_init ( & bp , 0 , AV_BPRINT_SIZE_UNLIMITED ) ;\n av_bprintf ( & bp , \"\\n\" ) ;\n while ( size ) {\n av_bprintf ( & bp , \"%08x: \" , offset ) ;\n l = FFMIN ( size , 16 ) ;\n for ( i = 0 ;\n i < l ;\n i ++ ) {\n av_bprintf ( & bp , \"%02x\" , data [ i ] ) ;\n if ( i & 1 ) av_bprintf ( & bp , \" \" ) ;\n }\n av_bprint_chars ( & bp , ' ' , 41 - 2 * i - i / 2 ) ;\n for ( i = 0 ;\n i < l ;\n i ++ ) av_bprint_chars ( & bp , data [ i ] - 32U < 95 ? data [ i ] : '.' , 1 ) ;\n av_bprintf ( & bp , \"\\n\" ) ;\n offset += l ;\n data += l ;\n size -= l ;\n }\n writer_print_string ( wctx , name , bp . str , 0 ) ;\n av_bprint_finalize ( & bp , NULL ) ;\n }"}
{"idx": 9039, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ExtensionMessageBubbleViewBrowserTest , TestUninstallDangerousExtension ) {\n TestUninstallDangerousExtension ( ) ;\n }"}
{"idx": 9040, "target": 1, "func": "static int tgv_decode_inter ( TgvContext * s , const uint8_t * buf , const uint8_t * buf_end ) {\n int num_mvs ;\n int num_blocks_raw ;\n int num_blocks_packed ;\n int vector_bits ;\n int i , j , x , y ;\n GetBitContext gb ;\n int mvbits ;\n const uint8_t * blocks_raw ;\n if ( buf + 12 > buf_end ) return AVERROR_INVALIDDATA ;\n num_mvs = AV_RL16 ( & buf [ 0 ] ) ;\n num_blocks_raw = AV_RL16 ( & buf [ 2 ] ) ;\n num_blocks_packed = AV_RL16 ( & buf [ 4 ] ) ;\n vector_bits = AV_RL16 ( & buf [ 6 ] ) ;\n buf += 12 ;\n if ( vector_bits > MIN_CACHE_BITS || ! vector_bits ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Invalid value for motion vector bits: %d\\n\" , vector_bits ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( num_mvs > s -> num_mvs ) {\n s -> mv_codebook = av_realloc ( s -> mv_codebook , num_mvs * 2 * sizeof ( int ) ) ;\n s -> num_mvs = num_mvs ;\n }\n if ( num_blocks_packed > s -> num_blocks_packed ) {\n s -> block_codebook = av_realloc ( s -> block_codebook , num_blocks_packed * 16 ) ;\n s -> num_blocks_packed = num_blocks_packed ;\n }\n mvbits = ( num_mvs * 2 * 10 + 31 ) & ~ 31 ;\n if ( buf + ( mvbits >> 3 ) + 16 * num_blocks_raw + 8 * num_blocks_packed > buf_end ) return AVERROR_INVALIDDATA ;\n init_get_bits ( & gb , buf , mvbits ) ;\n for ( i = 0 ;\n i < num_mvs ;\n i ++ ) {\n s -> mv_codebook [ i ] [ 0 ] = get_sbits ( & gb , 10 ) ;\n s -> mv_codebook [ i ] [ 1 ] = get_sbits ( & gb , 10 ) ;\n }\n buf += mvbits >> 3 ;\n blocks_raw = buf ;\n buf += num_blocks_raw * 16 ;\n init_get_bits ( & gb , buf , ( buf_end - buf ) << 3 ) ;\n for ( i = 0 ;\n i < num_blocks_packed ;\n i ++ ) {\n int tmp [ 4 ] ;\n for ( j = 0 ;\n j < 4 ;\n j ++ ) tmp [ j ] = get_bits ( & gb , 8 ) ;\n for ( j = 0 ;\n j < 16 ;\n j ++ ) s -> block_codebook [ i ] [ 15 - j ] = tmp [ get_bits ( & gb , 2 ) ] ;\n }\n if ( get_bits_left ( & gb ) < vector_bits * ( s -> avctx -> height / 4 ) * ( s -> avctx -> width / 4 ) ) return AVERROR_INVALIDDATA ;\n for ( y = 0 ;\n y < s -> avctx -> height / 4 ;\n y ++ ) for ( x = 0 ;\n x < s -> avctx -> width / 4 ;\n x ++ ) {\n unsigned int vector = get_bits ( & gb , vector_bits ) ;\n const uint8_t * src ;\n int src_stride ;\n if ( vector < num_mvs ) {\n int mx = x * 4 + s -> mv_codebook [ vector ] [ 0 ] ;\n int my = y * 4 + s -> mv_codebook [ vector ] [ 1 ] ;\n if ( mx < 0 || mx + 4 > s -> avctx -> width || my < 0 || my + 4 > s -> avctx -> height ) continue ;\n src = s -> last_frame . data [ 0 ] + mx + my * s -> last_frame . linesize [ 0 ] ;\n src_stride = s -> last_frame . linesize [ 0 ] ;\n }\n else {\n int offset = vector - num_mvs ;\n if ( offset < num_blocks_raw ) src = blocks_raw + 16 * offset ;\n else if ( offset - num_blocks_raw < num_blocks_packed ) src = s -> block_codebook [ offset - num_blocks_raw ] ;\n else continue ;\n src_stride = 4 ;\n }\n for ( j = 0 ;\n j < 4 ;\n j ++ ) for ( i = 0 ;\n i < 4 ;\n i ++ ) s -> frame . data [ 0 ] [ ( y * 4 + j ) * s -> frame . linesize [ 0 ] + ( x * 4 + i ) ] = src [ j * src_stride + i ] ;\n }\n return 0 ;\n }"}
{"idx": 9041, "target": 0, "func": "static void read_intra_frame_mode_info ( VP9_COMMON * const cm , MACROBLOCKD * const xd , int mi_row , int mi_col , vp9_reader * r ) {\n MODE_INFO * const mi = xd -> mi [ 0 ] . src_mi ;\n MB_MODE_INFO * const mbmi = & mi -> mbmi ;\n const MODE_INFO * above_mi = xd -> mi [ - cm -> mi_stride ] . src_mi ;\n const MODE_INFO * left_mi = xd -> left_available ? xd -> mi [ - 1 ] . src_mi : NULL ;\n const BLOCK_SIZE bsize = mbmi -> sb_type ;\n int i ;\n mbmi -> segment_id = read_intra_segment_id ( cm , xd , mi_row , mi_col , r ) ;\n mbmi -> skip = read_skip ( cm , xd , mbmi -> segment_id , r ) ;\n mbmi -> tx_size = read_tx_size ( cm , xd , cm -> tx_mode , bsize , 1 , r ) ;\n mbmi -> ref_frame [ 0 ] = INTRA_FRAME ;\n mbmi -> ref_frame [ 1 ] = NONE ;\n switch ( bsize ) {\n case BLOCK_4X4 : for ( i = 0 ;\n i < 4 ;\n ++ i ) mi -> bmi [ i ] . as_mode = read_intra_mode ( r , get_y_mode_probs ( mi , above_mi , left_mi , i ) ) ;\n mbmi -> mode = mi -> bmi [ 3 ] . as_mode ;\n break ;\n case BLOCK_4X8 : mi -> bmi [ 0 ] . as_mode = mi -> bmi [ 2 ] . as_mode = read_intra_mode ( r , get_y_mode_probs ( mi , above_mi , left_mi , 0 ) ) ;\n mi -> bmi [ 1 ] . as_mode = mi -> bmi [ 3 ] . as_mode = mbmi -> mode = read_intra_mode ( r , get_y_mode_probs ( mi , above_mi , left_mi , 1 ) ) ;\n break ;\n case BLOCK_8X4 : mi -> bmi [ 0 ] . as_mode = mi -> bmi [ 1 ] . as_mode = read_intra_mode ( r , get_y_mode_probs ( mi , above_mi , left_mi , 0 ) ) ;\n mi -> bmi [ 2 ] . as_mode = mi -> bmi [ 3 ] . as_mode = mbmi -> mode = read_intra_mode ( r , get_y_mode_probs ( mi , above_mi , left_mi , 2 ) ) ;\n break ;\n default : mbmi -> mode = read_intra_mode ( r , get_y_mode_probs ( mi , above_mi , left_mi , 0 ) ) ;\n }\n mbmi -> uv_mode = read_intra_mode ( r , vp9_kf_uv_mode_prob [ mbmi -> mode ] ) ;\n }"}
{"idx": 9042, "target": 1, "func": "void * checked_xcalloc ( size_t num , size_t size ) {\n alloc_limit_assert ( \"checked_xcalloc\" , ( num * size ) ) ;\n return xcalloc ( num , size ) ;\n }"}
{"idx": 9043, "target": 0, "func": "addr_opts_node * create_addr_opts_node ( address_node * addr , attr_val_fifo * options ) {\n addr_opts_node * my_node ;\n my_node = emalloc_zero ( sizeof ( * my_node ) ) ;\n my_node -> addr = addr ;\n my_node -> options = options ;\n return my_node ;\n }"}
{"idx": 9044, "target": 0, "func": "static void ffmpeg_ReleaseFrameBuf ( struct AVCodecContext * p_context , AVFrame * p_ff_pic ) {\n decoder_t * p_dec = ( decoder_t * ) p_context -> opaque ;\n decoder_sys_t * p_sys = p_dec -> p_sys ;\n if ( p_sys -> p_va ) vlc_va_Release ( p_sys -> p_va , p_ff_pic -> opaque , p_ff_pic -> data [ 0 ] ) ;\n else if ( p_ff_pic -> opaque ) decoder_UnlinkPicture ( p_dec , ( picture_t * ) p_ff_pic -> opaque ) ;\n else if ( p_ff_pic -> type == FF_BUFFER_TYPE_INTERNAL ) avcodec_default_release_buffer ( p_context , p_ff_pic ) ;\n for ( int i = 0 ;\n i < 4 ;\n i ++ ) p_ff_pic -> data [ i ] = NULL ;\n }"}
{"idx": 9045, "target": 0, "func": "static void * mspack_fmap_alloc ( struct mspack_system * self , size_t num ) {\n return malloc ( num ) ;\n }"}
{"idx": 9046, "target": 0, "func": "TEST_F ( WebFrameTest , GetCanonicalUrlForSharing ) {\n FrameTestHelpers : : WebViewHelper web_view_helper ;\n web_view_helper . Initialize ( ) ;\n WebLocalFrameImpl * frame = web_view_helper . LocalMainFrame ( ) ;\n FrameTestHelpers : : LoadHTMLString ( frame , R \"( < head > < link rel = \"canonical\" href = \"https://example.com/canonical.html\" > < / head > ) \", ToKURL(\" https : EXPECT_EQ ( WebURL ( ToKURL ( \"https://example.com/canonical.html\" ) ) , frame -> GetDocument ( ) . CanonicalUrlForSharing ( ) ) ;\n }"}
{"idx": 9047, "target": 0, "func": "static int dissect_h225_H323Caps ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_H323Caps , H323Caps_sequence ) ;\n return offset ;\n }"}
{"idx": 9048, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( HttpsEngagementPageLoadMetricsBrowserTest , ClosedWhileHidden_Http ) {\n StartHttpServer ( ) ;\n base : : TimeDelta upper_bound = NavigateInForegroundAndCloseInBackgroundWithTiming ( http_test_server_ -> GetURL ( \"/simple.html\" ) ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpEngagementHistogram , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementHistogram , 0 ) ;\n int32_t bucket_min = histogram_tester_ . GetAllSamples ( internal : : kHttpEngagementHistogram ) [ 0 ] . min ;\n EXPECT_GE ( upper_bound . InMilliseconds ( ) , bucket_min ) ;\n EXPECT_LT ( 0 , bucket_min ) ;\n FakeUserMetricsUpload ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementSessionPercentage , 1 ) ;\n int32_t ratio_bucket = histogram_tester_ . GetAllSamples ( internal : : kHttpsEngagementSessionPercentage ) [ 0 ] . min ;\n EXPECT_EQ ( 0 , ratio_bucket ) ;\n }"}
{"idx": 9049, "target": 0, "func": "static void dtap_cc_cc_est ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_FALSE ;\n ELEM_MAND_LV ( GSM_A_PDU_TYPE_DTAP , DE_SETUP_CONTAINER , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 9050, "target": 0, "func": "void nautilus_file_operations_move ( GList * files , GArray * relative_item_points , GFile * target_dir , GtkWindow * parent_window , NautilusCopyCallback done_callback , gpointer done_callback_data ) {\n GTask * task ;\n CopyMoveJob * job ;\n job = op_job_new ( CopyMoveJob , parent_window ) ;\n job -> is_move = TRUE ;\n job -> done_callback = done_callback ;\n job -> done_callback_data = done_callback_data ;\n job -> files = g_list_copy_deep ( files , ( GCopyFunc ) g_object_ref , NULL ) ;\n job -> destination = g_object_ref ( target_dir ) ;\n nautilus_progress_info_set_destination ( ( ( CommonJob * ) job ) -> progress , target_dir ) ;\n if ( relative_item_points != NULL && relative_item_points -> len > 0 ) {\n job -> icon_positions = g_memdup ( relative_item_points -> data , sizeof ( GdkPoint ) * relative_item_points -> len ) ;\n job -> n_icon_positions = relative_item_points -> len ;\n }\n job -> debuting_files = g_hash_table_new_full ( g_file_hash , ( GEqualFunc ) g_file_equal , g_object_unref , NULL ) ;\n inhibit_power_manager ( ( CommonJob * ) job , _ ( \"Moving Files\" ) ) ;\n if ( ! nautilus_file_undo_manager_is_operating ( ) ) {\n GFile * src_dir ;\n src_dir = g_file_get_parent ( files -> data ) ;\n if ( g_file_has_uri_scheme ( g_list_first ( files ) -> data , \"trash\" ) ) {\n job -> common . undo_info = nautilus_file_undo_info_ext_new ( NAUTILUS_FILE_UNDO_OP_RESTORE_FROM_TRASH , g_list_length ( files ) , src_dir , target_dir ) ;\n }\n else {\n job -> common . undo_info = nautilus_file_undo_info_ext_new ( NAUTILUS_FILE_UNDO_OP_MOVE , g_list_length ( files ) , src_dir , target_dir ) ;\n }\n g_object_unref ( src_dir ) ;\n }\n task = g_task_new ( NULL , job -> common . cancellable , move_task_done , job ) ;\n g_task_set_task_data ( task , job , NULL ) ;\n g_task_run_in_thread ( task , move_task_thread_func ) ;\n g_object_unref ( task ) ;\n }"}
{"idx": 9051, "target": 0, "func": "void proto_register_prefix ( const char * prefix , prefix_initializer_t pi ) {\n if ( ! prefixes ) {\n prefixes = g_hash_table_new ( prefix_hash , prefix_equal ) ;\n }\n g_hash_table_insert ( prefixes , ( gpointer ) prefix , ( gpointer ) pi ) ;\n }"}
{"idx": 9052, "target": 0, "func": "static uint64_t pxa2xx_pm_read ( void * opaque , hwaddr addr , unsigned size ) {\n PXA2xxState * s = ( PXA2xxState * ) opaque ;\n switch ( addr ) {\n case PMCR ... PCMD31 : if ( addr & 3 ) goto fail ;\n return s -> pm_regs [ addr >> 2 ] ;\n default : fail : printf ( \"%s: Bad register \" REG_FMT \"\\n\" , __FUNCTION__ , addr ) ;\n break ;\n }\n return 0 ;\n }"}
{"idx": 9053, "target": 0, "func": "void vp8_sixtap_predict4x4_neon ( unsigned char * src_ptr , int src_pixels_per_line , int xoffset , int yoffset , unsigned char * dst_ptr , int dst_pitch ) {\n unsigned char * src ;\n uint8x8_t d0u8 , d1u8 , d2u8 , d3u8 , d4u8 , d5u8 , d18u8 , d19u8 , d20u8 , d21u8 ;\n uint8x8_t d23u8 , d24u8 , d25u8 , d26u8 , d27u8 , d28u8 , d29u8 , d30u8 , d31u8 ;\n int8x8_t dtmps8 , d0s8 , d1s8 , d2s8 , d3s8 , d4s8 , d5s8 ;\n uint16x8_t q3u16 , q4u16 , q5u16 , q6u16 , q7u16 ;\n uint16x8_t q8u16 , q9u16 , q10u16 , q11u16 , q12u16 ;\n int16x8_t q3s16 , q4s16 , q5s16 , q6s16 , q7s16 ;\n int16x8_t q8s16 , q9s16 , q10s16 , q11s16 , q12s16 ;\n uint8x16_t q3u8 , q4u8 , q5u8 , q6u8 , q11u8 ;\n uint64x2_t q3u64 , q4u64 , q5u64 , q6u64 , q9u64 , q10u64 ;\n uint32x2x2_t d0u32x2 , d1u32x2 ;\n if ( xoffset == 0 ) {\n uint32x2_t d27u32 = vdup_n_u32 ( 0 ) ;\n uint32x2_t d28u32 = vdup_n_u32 ( 0 ) ;\n uint32x2_t d29u32 = vdup_n_u32 ( 0 ) ;\n uint32x2_t d30u32 = vdup_n_u32 ( 0 ) ;\n uint32x2_t d31u32 = vdup_n_u32 ( 0 ) ;\n dtmps8 = vld1_s8 ( vp8_sub_pel_filters [ yoffset ] ) ;\n d0s8 = vdup_lane_s8 ( dtmps8 , 0 ) ;\n d1s8 = vdup_lane_s8 ( dtmps8 , 1 ) ;\n d2s8 = vdup_lane_s8 ( dtmps8 , 2 ) ;\n d3s8 = vdup_lane_s8 ( dtmps8 , 3 ) ;\n d4s8 = vdup_lane_s8 ( dtmps8 , 4 ) ;\n d5s8 = vdup_lane_s8 ( dtmps8 , 5 ) ;\n d0u8 = vreinterpret_u8_s8 ( vabs_s8 ( d0s8 ) ) ;\n d1u8 = vreinterpret_u8_s8 ( vabs_s8 ( d1s8 ) ) ;\n d2u8 = vreinterpret_u8_s8 ( vabs_s8 ( d2s8 ) ) ;\n d3u8 = vreinterpret_u8_s8 ( vabs_s8 ( d3s8 ) ) ;\n d4u8 = vreinterpret_u8_s8 ( vabs_s8 ( d4s8 ) ) ;\n d5u8 = vreinterpret_u8_s8 ( vabs_s8 ( d5s8 ) ) ;\n src = src_ptr - src_pixels_per_line * 2 ;\n d27u32 = vld1_lane_u32 ( ( const uint32_t * ) src , d27u32 , 0 ) ;\n src += src_pixels_per_line ;\n d27u32 = vld1_lane_u32 ( ( const uint32_t * ) src , d27u32 , 1 ) ;\n src += src_pixels_per_line ;\n d28u32 = vld1_lane_u32 ( ( const uint32_t * ) src , d28u32 , 0 ) ;\n src += src_pixels_per_line ;\n d28u32 = vld1_lane_u32 ( ( const uint32_t * ) src , d28u32 , 1 ) ;\n src += src_pixels_per_line ;\n d29u32 = vld1_lane_u32 ( ( const uint32_t * ) src , d29u32 , 0 ) ;\n src += src_pixels_per_line ;\n d29u32 = vld1_lane_u32 ( ( const uint32_t * ) src , d29u32 , 1 ) ;\n src += src_pixels_per_line ;\n d30u32 = vld1_lane_u32 ( ( const uint32_t * ) src , d30u32 , 0 ) ;\n src += src_pixels_per_line ;\n d30u32 = vld1_lane_u32 ( ( const uint32_t * ) src , d30u32 , 1 ) ;\n src += src_pixels_per_line ;\n d31u32 = vld1_lane_u32 ( ( const uint32_t * ) src , d31u32 , 0 ) ;\n d27u8 = vreinterpret_u8_u32 ( d27u32 ) ;\n d28u8 = vreinterpret_u8_u32 ( d28u32 ) ;\n d29u8 = vreinterpret_u8_u32 ( d29u32 ) ;\n d30u8 = vreinterpret_u8_u32 ( d30u32 ) ;\n d31u8 = vreinterpret_u8_u32 ( d31u32 ) ;\n d23u8 = vext_u8 ( d27u8 , d28u8 , 4 ) ;\n d24u8 = vext_u8 ( d28u8 , d29u8 , 4 ) ;\n d25u8 = vext_u8 ( d29u8 , d30u8 , 4 ) ;\n d26u8 = vext_u8 ( d30u8 , d31u8 , 4 ) ;\n q3u16 = vmull_u8 ( d27u8 , d0u8 ) ;\n q4u16 = vmull_u8 ( d28u8 , d0u8 ) ;\n q5u16 = vmull_u8 ( d25u8 , d5u8 ) ;\n q6u16 = vmull_u8 ( d26u8 , d5u8 ) ;\n q3u16 = vmlsl_u8 ( q3u16 , d29u8 , d4u8 ) ;\n q4u16 = vmlsl_u8 ( q4u16 , d30u8 , d4u8 ) ;\n q5u16 = vmlsl_u8 ( q5u16 , d23u8 , d1u8 ) ;\n q6u16 = vmlsl_u8 ( q6u16 , d24u8 , d1u8 ) ;\n q3u16 = vmlal_u8 ( q3u16 , d28u8 , d2u8 ) ;\n q4u16 = vmlal_u8 ( q4u16 , d29u8 , d2u8 ) ;\n q5u16 = vmlal_u8 ( q5u16 , d24u8 , d3u8 ) ;\n q6u16 = vmlal_u8 ( q6u16 , d25u8 , d3u8 ) ;\n q3s16 = vreinterpretq_s16_u16 ( q3u16 ) ;\n q4s16 = vreinterpretq_s16_u16 ( q4u16 ) ;\n q5s16 = vreinterpretq_s16_u16 ( q5u16 ) ;\n q6s16 = vreinterpretq_s16_u16 ( q6u16 ) ;\n q5s16 = vqaddq_s16 ( q5s16 , q3s16 ) ;\n q6s16 = vqaddq_s16 ( q6s16 , q4s16 ) ;\n d3u8 = vqrshrun_n_s16 ( q5s16 , 7 ) ;\n d4u8 = vqrshrun_n_s16 ( q6s16 , 7 ) ;\n vst1_lane_u32 ( ( uint32_t * ) dst_ptr , vreinterpret_u32_u8 ( d3u8 ) , 0 ) ;\n dst_ptr += dst_pitch ;\n vst1_lane_u32 ( ( uint32_t * ) dst_ptr , vreinterpret_u32_u8 ( d3u8 ) , 1 ) ;\n dst_ptr += dst_pitch ;\n vst1_lane_u32 ( ( uint32_t * ) dst_ptr , vreinterpret_u32_u8 ( d4u8 ) , 0 ) ;\n dst_ptr += dst_pitch ;\n vst1_lane_u32 ( ( uint32_t * ) dst_ptr , vreinterpret_u32_u8 ( d4u8 ) , 1 ) ;\n return ;\n }\n dtmps8 = vld1_s8 ( vp8_sub_pel_filters [ xoffset ] ) ;\n d0s8 = vdup_lane_s8 ( dtmps8 , 0 ) ;\n d1s8 = vdup_lane_s8 ( dtmps8 , 1 ) ;\n d2s8 = vdup_lane_s8 ( dtmps8 , 2 ) ;\n d3s8 = vdup_lane_s8 ( dtmps8 , 3 ) ;\n d4s8 = vdup_lane_s8 ( dtmps8 , 4 ) ;\n d5s8 = vdup_lane_s8 ( dtmps8 , 5 ) ;\n d0u8 = vreinterpret_u8_s8 ( vabs_s8 ( d0s8 ) ) ;\n d1u8 = vreinterpret_u8_s8 ( vabs_s8 ( d1s8 ) ) ;\n d2u8 = vreinterpret_u8_s8 ( vabs_s8 ( d2s8 ) ) ;\n d3u8 = vreinterpret_u8_s8 ( vabs_s8 ( d3s8 ) ) ;\n d4u8 = vreinterpret_u8_s8 ( vabs_s8 ( d4s8 ) ) ;\n d5u8 = vreinterpret_u8_s8 ( vabs_s8 ( d5s8 ) ) ;\n if ( yoffset == 0 ) src = src_ptr - 2 ;\n else src = src_ptr - 2 - ( src_pixels_per_line * 2 ) ;\n q3u8 = vld1q_u8 ( src ) ;\n src += src_pixels_per_line ;\n q4u8 = vld1q_u8 ( src ) ;\n src += src_pixels_per_line ;\n q5u8 = vld1q_u8 ( src ) ;\n src += src_pixels_per_line ;\n q6u8 = vld1q_u8 ( src ) ;\n src += src_pixels_per_line ;\n d18u8 = vext_u8 ( vget_low_u8 ( q3u8 ) , vget_high_u8 ( q3u8 ) , 5 ) ;\n d19u8 = vext_u8 ( vget_low_u8 ( q4u8 ) , vget_high_u8 ( q4u8 ) , 5 ) ;\n d20u8 = vext_u8 ( vget_low_u8 ( q5u8 ) , vget_high_u8 ( q5u8 ) , 5 ) ;\n d21u8 = vext_u8 ( vget_low_u8 ( q6u8 ) , vget_high_u8 ( q6u8 ) , 5 ) ;\n q3u8 = vcombine_u8 ( vget_low_u8 ( q3u8 ) , vget_low_u8 ( q4u8 ) ) ;\n q5u8 = vcombine_u8 ( vget_low_u8 ( q5u8 ) , vget_low_u8 ( q6u8 ) ) ;\n d0u32x2 = vzip_u32 ( vreinterpret_u32_u8 ( d18u8 ) , vreinterpret_u32_u8 ( d19u8 ) ) ;\n d1u32x2 = vzip_u32 ( vreinterpret_u32_u8 ( d20u8 ) , vreinterpret_u32_u8 ( d21u8 ) ) ;\n q7u16 = vmull_u8 ( vreinterpret_u8_u32 ( d0u32x2 . val [ 0 ] ) , d5u8 ) ;\n q8u16 = vmull_u8 ( vreinterpret_u8_u32 ( d1u32x2 . val [ 0 ] ) , d5u8 ) ;\n q4u64 = vreinterpretq_u64_u8 ( q3u8 ) ;\n q6u64 = vreinterpretq_u64_u8 ( q5u8 ) ;\n d0u32x2 = vzip_u32 ( vreinterpret_u32_u8 ( vget_low_u8 ( q3u8 ) ) , vreinterpret_u32_u8 ( vget_high_u8 ( q3u8 ) ) ) ;\n d1u32x2 = vzip_u32 ( vreinterpret_u32_u8 ( vget_low_u8 ( q5u8 ) ) , vreinterpret_u32_u8 ( vget_high_u8 ( q5u8 ) ) ) ;\n q9u64 = vshrq_n_u64 ( q4u64 , 8 ) ;\n q10u64 = vshrq_n_u64 ( q6u64 , 8 ) ;\n q7u16 = vmlal_u8 ( q7u16 , vreinterpret_u8_u32 ( d0u32x2 . val [ 0 ] ) , d0u8 ) ;\n q8u16 = vmlal_u8 ( q8u16 , vreinterpret_u8_u32 ( d1u32x2 . val [ 0 ] ) , d0u8 ) ;\n d0u32x2 = vzip_u32 ( vreinterpret_u32_u64 ( vget_low_u64 ( q9u64 ) ) , vreinterpret_u32_u64 ( vget_high_u64 ( q9u64 ) ) ) ;\n d1u32x2 = vzip_u32 ( vreinterpret_u32_u64 ( vget_low_u64 ( q10u64 ) ) , vreinterpret_u32_u64 ( vget_high_u64 ( q10u64 ) ) ) ;\n q3u64 = vshrq_n_u64 ( q4u64 , 32 ) ;\n q5u64 = vshrq_n_u64 ( q6u64 , 32 ) ;\n q7u16 = vmlsl_u8 ( q7u16 , vreinterpret_u8_u32 ( d0u32x2 . val [ 0 ] ) , d1u8 ) ;\n q8u16 = vmlsl_u8 ( q8u16 , vreinterpret_u8_u32 ( d1u32x2 . val [ 0 ] ) , d1u8 ) ;\n d0u32x2 = vzip_u32 ( vreinterpret_u32_u64 ( vget_low_u64 ( q3u64 ) ) , vreinterpret_u32_u64 ( vget_high_u64 ( q3u64 ) ) ) ;\n d1u32x2 = vzip_u32 ( vreinterpret_u32_u64 ( vget_low_u64 ( q5u64 ) ) , vreinterpret_u32_u64 ( vget_high_u64 ( q5u64 ) ) ) ;\n q9u64 = vshrq_n_u64 ( q4u64 , 16 ) ;\n q10u64 = vshrq_n_u64 ( q6u64 , 16 ) ;\n q7u16 = vmlsl_u8 ( q7u16 , vreinterpret_u8_u32 ( d0u32x2 . val [ 0 ] ) , d4u8 ) ;\n q8u16 = vmlsl_u8 ( q8u16 , vreinterpret_u8_u32 ( d1u32x2 . val [ 0 ] ) , d4u8 ) ;\n d0u32x2 = vzip_u32 ( vreinterpret_u32_u64 ( vget_low_u64 ( q9u64 ) ) , vreinterpret_u32_u64 ( vget_high_u64 ( q9u64 ) ) ) ;\n d1u32x2 = vzip_u32 ( vreinterpret_u32_u64 ( vget_low_u64 ( q10u64 ) ) , vreinterpret_u32_u64 ( vget_high_u64 ( q10u64 ) ) ) ;\n q3u64 = vshrq_n_u64 ( q4u64 , 24 ) ;\n q5u64 = vshrq_n_u64 ( q6u64 , 24 ) ;\n q7u16 = vmlal_u8 ( q7u16 , vreinterpret_u8_u32 ( d0u32x2 . val [ 0 ] ) , d2u8 ) ;\n q8u16 = vmlal_u8 ( q8u16 , vreinterpret_u8_u32 ( d1u32x2 . val [ 0 ] ) , d2u8 ) ;\n d0u32x2 = vzip_u32 ( vreinterpret_u32_u64 ( vget_low_u64 ( q3u64 ) ) , vreinterpret_u32_u64 ( vget_high_u64 ( q3u64 ) ) ) ;\n d1u32x2 = vzip_u32 ( vreinterpret_u32_u64 ( vget_low_u64 ( q5u64 ) ) , vreinterpret_u32_u64 ( vget_high_u64 ( q5u64 ) ) ) ;\n q9u16 = vmull_u8 ( vreinterpret_u8_u32 ( d0u32x2 . val [ 0 ] ) , d3u8 ) ;\n q10u16 = vmull_u8 ( vreinterpret_u8_u32 ( d1u32x2 . val [ 0 ] ) , d3u8 ) ;\n q7s16 = vreinterpretq_s16_u16 ( q7u16 ) ;\n q8s16 = vreinterpretq_s16_u16 ( q8u16 ) ;\n q9s16 = vreinterpretq_s16_u16 ( q9u16 ) ;\n q10s16 = vreinterpretq_s16_u16 ( q10u16 ) ;\n q7s16 = vqaddq_s16 ( q7s16 , q9s16 ) ;\n q8s16 = vqaddq_s16 ( q8s16 , q10s16 ) ;\n d27u8 = vqrshrun_n_s16 ( q7s16 , 7 ) ;\n d28u8 = vqrshrun_n_s16 ( q8s16 , 7 ) ;\n if ( yoffset == 0 ) {\n vst1_lane_u32 ( ( uint32_t * ) dst_ptr , vreinterpret_u32_u8 ( d27u8 ) , 0 ) ;\n dst_ptr += dst_pitch ;\n vst1_lane_u32 ( ( uint32_t * ) dst_ptr , vreinterpret_u32_u8 ( d27u8 ) , 1 ) ;\n dst_ptr += dst_pitch ;\n vst1_lane_u32 ( ( uint32_t * ) dst_ptr , vreinterpret_u32_u8 ( d28u8 ) , 0 ) ;\n dst_ptr += dst_pitch ;\n vst1_lane_u32 ( ( uint32_t * ) dst_ptr , vreinterpret_u32_u8 ( d28u8 ) , 1 ) ;\n return ;\n }\n q3u8 = vld1q_u8 ( src ) ;\n src += src_pixels_per_line ;\n q4u8 = vld1q_u8 ( src ) ;\n src += src_pixels_per_line ;\n q5u8 = vld1q_u8 ( src ) ;\n src += src_pixels_per_line ;\n q6u8 = vld1q_u8 ( src ) ;\n src += src_pixels_per_line ;\n q11u8 = vld1q_u8 ( src ) ;\n d18u8 = vext_u8 ( vget_low_u8 ( q3u8 ) , vget_high_u8 ( q3u8 ) , 5 ) ;\n d19u8 = vext_u8 ( vget_low_u8 ( q4u8 ) , vget_high_u8 ( q4u8 ) , 5 ) ;\n d20u8 = vext_u8 ( vget_low_u8 ( q5u8 ) , vget_high_u8 ( q5u8 ) , 5 ) ;\n d21u8 = vext_u8 ( vget_low_u8 ( q6u8 ) , vget_high_u8 ( q6u8 ) , 5 ) ;\n q3u8 = vcombine_u8 ( vget_low_u8 ( q3u8 ) , vget_low_u8 ( q4u8 ) ) ;\n q5u8 = vcombine_u8 ( vget_low_u8 ( q5u8 ) , vget_low_u8 ( q6u8 ) ) ;\n d0u32x2 = vzip_u32 ( vreinterpret_u32_u8 ( d18u8 ) , vreinterpret_u32_u8 ( d19u8 ) ) ;\n d1u32x2 = vzip_u32 ( vreinterpret_u32_u8 ( d20u8 ) , vreinterpret_u32_u8 ( d21u8 ) ) ;\n d31u8 = vext_u8 ( vget_low_u8 ( q11u8 ) , vget_high_u8 ( q11u8 ) , 5 ) ;\n q7u16 = vmull_u8 ( vreinterpret_u8_u32 ( d0u32x2 . val [ 0 ] ) , d5u8 ) ;\n q8u16 = vmull_u8 ( vreinterpret_u8_u32 ( d1u32x2 . val [ 0 ] ) , d5u8 ) ;\n q12u16 = vmull_u8 ( d31u8 , d5u8 ) ;\n q4u64 = vreinterpretq_u64_u8 ( q3u8 ) ;\n q6u64 = vreinterpretq_u64_u8 ( q5u8 ) ;\n d0u32x2 = vzip_u32 ( vreinterpret_u32_u8 ( vget_low_u8 ( q3u8 ) ) , vreinterpret_u32_u8 ( vget_high_u8 ( q3u8 ) ) ) ;\n d1u32x2 = vzip_u32 ( vreinterpret_u32_u8 ( vget_low_u8 ( q5u8 ) ) , vreinterpret_u32_u8 ( vget_high_u8 ( q5u8 ) ) ) ;\n q9u64 = vshrq_n_u64 ( q4u64 , 8 ) ;\n q10u64 = vshrq_n_u64 ( q6u64 , 8 ) ;\n q7u16 = vmlal_u8 ( q7u16 , vreinterpret_u8_u32 ( d0u32x2 . val [ 0 ] ) , d0u8 ) ;\n q8u16 = vmlal_u8 ( q8u16 , vreinterpret_u8_u32 ( d1u32x2 . val [ 0 ] ) , d0u8 ) ;\n q12u16 = vmlal_u8 ( q12u16 , vget_low_u8 ( q11u8 ) , d0u8 ) ;\n d0u32x2 = vzip_u32 ( vreinterpret_u32_u64 ( vget_low_u64 ( q9u64 ) ) , vreinterpret_u32_u64 ( vget_high_u64 ( q9u64 ) ) ) ;\n d1u32x2 = vzip_u32 ( vreinterpret_u32_u64 ( vget_low_u64 ( q10u64 ) ) , vreinterpret_u32_u64 ( vget_high_u64 ( q10u64 ) ) ) ;\n q3u64 = vshrq_n_u64 ( q4u64 , 32 ) ;\n q5u64 = vshrq_n_u64 ( q6u64 , 32 ) ;\n d31u8 = vext_u8 ( vget_low_u8 ( q11u8 ) , vget_high_u8 ( q11u8 ) , 1 ) ;\n q7u16 = vmlsl_u8 ( q7u16 , vreinterpret_u8_u32 ( d0u32x2 . val [ 0 ] ) , d1u8 ) ;\n q8u16 = vmlsl_u8 ( q8u16 , vreinterpret_u8_u32 ( d1u32x2 . val [ 0 ] ) , d1u8 ) ;\n q12u16 = vmlsl_u8 ( q12u16 , d31u8 , d1u8 ) ;\n d0u32x2 = vzip_u32 ( vreinterpret_u32_u64 ( vget_low_u64 ( q3u64 ) ) , vreinterpret_u32_u64 ( vget_high_u64 ( q3u64 ) ) ) ;\n d1u32x2 = vzip_u32 ( vreinterpret_u32_u64 ( vget_low_u64 ( q5u64 ) ) , vreinterpret_u32_u64 ( vget_high_u64 ( q5u64 ) ) ) ;\n q9u64 = vshrq_n_u64 ( q4u64 , 16 ) ;\n q10u64 = vshrq_n_u64 ( q6u64 , 16 ) ;\n d31u8 = vext_u8 ( vget_low_u8 ( q11u8 ) , vget_high_u8 ( q11u8 ) , 4 ) ;\n q7u16 = vmlsl_u8 ( q7u16 , vreinterpret_u8_u32 ( d0u32x2 . val [ 0 ] ) , d4u8 ) ;\n q8u16 = vmlsl_u8 ( q8u16 , vreinterpret_u8_u32 ( d1u32x2 . val [ 0 ] ) , d4u8 ) ;\n q12u16 = vmlsl_u8 ( q12u16 , d31u8 , d4u8 ) ;\n d0u32x2 = vzip_u32 ( vreinterpret_u32_u64 ( vget_low_u64 ( q9u64 ) ) , vreinterpret_u32_u64 ( vget_high_u64 ( q9u64 ) ) ) ;\n d1u32x2 = vzip_u32 ( vreinterpret_u32_u64 ( vget_low_u64 ( q10u64 ) ) , vreinterpret_u32_u64 ( vget_high_u64 ( q10u64 ) ) ) ;\n q3u64 = vshrq_n_u64 ( q4u64 , 24 ) ;\n q5u64 = vshrq_n_u64 ( q6u64 , 24 ) ;\n d31u8 = vext_u8 ( vget_low_u8 ( q11u8 ) , vget_high_u8 ( q11u8 ) , 2 ) ;\n q7u16 = vmlal_u8 ( q7u16 , vreinterpret_u8_u32 ( d0u32x2 . val [ 0 ] ) , d2u8 ) ;\n q8u16 = vmlal_u8 ( q8u16 , vreinterpret_u8_u32 ( d1u32x2 . val [ 0 ] ) , d2u8 ) ;\n q12u16 = vmlal_u8 ( q12u16 , d31u8 , d2u8 ) ;\n d0u32x2 = vzip_u32 ( vreinterpret_u32_u64 ( vget_low_u64 ( q3u64 ) ) , vreinterpret_u32_u64 ( vget_high_u64 ( q3u64 ) ) ) ;\n d1u32x2 = vzip_u32 ( vreinterpret_u32_u64 ( vget_low_u64 ( q5u64 ) ) , vreinterpret_u32_u64 ( vget_high_u64 ( q5u64 ) ) ) ;\n d31u8 = vext_u8 ( vget_low_u8 ( q11u8 ) , vget_high_u8 ( q11u8 ) , 3 ) ;\n q9u16 = vmull_u8 ( vreinterpret_u8_u32 ( d0u32x2 . val [ 0 ] ) , d3u8 ) ;\n q10u16 = vmull_u8 ( vreinterpret_u8_u32 ( d1u32x2 . val [ 0 ] ) , d3u8 ) ;\n q11u16 = vmull_u8 ( d31u8 , d3u8 ) ;\n q7s16 = vreinterpretq_s16_u16 ( q7u16 ) ;\n q8s16 = vreinterpretq_s16_u16 ( q8u16 ) ;\n q9s16 = vreinterpretq_s16_u16 ( q9u16 ) ;\n q10s16 = vreinterpretq_s16_u16 ( q10u16 ) ;\n q11s16 = vreinterpretq_s16_u16 ( q11u16 ) ;\n q12s16 = vreinterpretq_s16_u16 ( q12u16 ) ;\n q7s16 = vqaddq_s16 ( q7s16 , q9s16 ) ;\n q8s16 = vqaddq_s16 ( q8s16 , q10s16 ) ;\n q12s16 = vqaddq_s16 ( q12s16 , q11s16 ) ;\n d29u8 = vqrshrun_n_s16 ( q7s16 , 7 ) ;\n d30u8 = vqrshrun_n_s16 ( q8s16 , 7 ) ;\n d31u8 = vqrshrun_n_s16 ( q12s16 , 7 ) ;\n dtmps8 = vld1_s8 ( vp8_sub_pel_filters [ yoffset ] ) ;\n d0s8 = vdup_lane_s8 ( dtmps8 , 0 ) ;\n d1s8 = vdup_lane_s8 ( dtmps8 , 1 ) ;\n d2s8 = vdup_lane_s8 ( dtmps8 , 2 ) ;\n d3s8 = vdup_lane_s8 ( dtmps8 , 3 ) ;\n d4s8 = vdup_lane_s8 ( dtmps8 , 4 ) ;\n d5s8 = vdup_lane_s8 ( dtmps8 , 5 ) ;\n d0u8 = vreinterpret_u8_s8 ( vabs_s8 ( d0s8 ) ) ;\n d1u8 = vreinterpret_u8_s8 ( vabs_s8 ( d1s8 ) ) ;\n d2u8 = vreinterpret_u8_s8 ( vabs_s8 ( d2s8 ) ) ;\n d3u8 = vreinterpret_u8_s8 ( vabs_s8 ( d3s8 ) ) ;\n d4u8 = vreinterpret_u8_s8 ( vabs_s8 ( d4s8 ) ) ;\n d5u8 = vreinterpret_u8_s8 ( vabs_s8 ( d5s8 ) ) ;\n d23u8 = vext_u8 ( d27u8 , d28u8 , 4 ) ;\n d24u8 = vext_u8 ( d28u8 , d29u8 , 4 ) ;\n d25u8 = vext_u8 ( d29u8 , d30u8 , 4 ) ;\n d26u8 = vext_u8 ( d30u8 , d31u8 , 4 ) ;\n q3u16 = vmull_u8 ( d27u8 , d0u8 ) ;\n q4u16 = vmull_u8 ( d28u8 , d0u8 ) ;\n q5u16 = vmull_u8 ( d25u8 , d5u8 ) ;\n q6u16 = vmull_u8 ( d26u8 , d5u8 ) ;\n q3u16 = vmlsl_u8 ( q3u16 , d29u8 , d4u8 ) ;\n q4u16 = vmlsl_u8 ( q4u16 , d30u8 , d4u8 ) ;\n q5u16 = vmlsl_u8 ( q5u16 , d23u8 , d1u8 ) ;\n q6u16 = vmlsl_u8 ( q6u16 , d24u8 , d1u8 ) ;\n q3u16 = vmlal_u8 ( q3u16 , d28u8 , d2u8 ) ;\n q4u16 = vmlal_u8 ( q4u16 , d29u8 , d2u8 ) ;\n q5u16 = vmlal_u8 ( q5u16 , d24u8 , d3u8 ) ;\n q6u16 = vmlal_u8 ( q6u16 , d25u8 , d3u8 ) ;\n q3s16 = vreinterpretq_s16_u16 ( q3u16 ) ;\n q4s16 = vreinterpretq_s16_u16 ( q4u16 ) ;\n q5s16 = vreinterpretq_s16_u16 ( q5u16 ) ;\n q6s16 = vreinterpretq_s16_u16 ( q6u16 ) ;\n q5s16 = vqaddq_s16 ( q5s16 , q3s16 ) ;\n q6s16 = vqaddq_s16 ( q6s16 , q4s16 ) ;\n d3u8 = vqrshrun_n_s16 ( q5s16 , 7 ) ;\n d4u8 = vqrshrun_n_s16 ( q6s16 , 7 ) ;\n vst1_lane_u32 ( ( uint32_t * ) dst_ptr , vreinterpret_u32_u8 ( d3u8 ) , 0 ) ;\n dst_ptr += dst_pitch ;\n vst1_lane_u32 ( ( uint32_t * ) dst_ptr , vreinterpret_u32_u8 ( d3u8 ) , 1 ) ;\n dst_ptr += dst_pitch ;\n vst1_lane_u32 ( ( uint32_t * ) dst_ptr , vreinterpret_u32_u8 ( d4u8 ) , 0 ) ;\n dst_ptr += dst_pitch ;\n vst1_lane_u32 ( ( uint32_t * ) dst_ptr , vreinterpret_u32_u8 ( d4u8 ) , 1 ) ;\n return ;\n }"}
{"idx": 9054, "target": 0, "func": "static void find_ns ( struct ieee80211_radiotap_iterator * iterator , guint32 oui , guint8 subns ) {\n int i ;\n iterator -> current_namespace = NULL ;\n if ( ! iterator -> _vns ) return ;\n for ( i = 0 ;\n i < iterator -> _vns -> n_ns ;\n i ++ ) {\n if ( iterator -> _vns -> ns [ i ] . oui != oui ) continue ;\n if ( iterator -> _vns -> ns [ i ] . subns != subns ) continue ;\n iterator -> current_namespace = & iterator -> _vns -> ns [ i ] ;\n break ;\n }\n }"}
{"idx": 9055, "target": 1, "func": "static int dissect_CPMGetRows ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * parent_tree , gboolean in , void * private_data ) {\n struct mswsp_ct * ct = NULL ;\n gint offset = 16 ;\n proto_item * item ;\n proto_tree * tree ;\n proto_tree * seek_tree ;\n guint32 eType = 0 ;\n item = proto_tree_add_item ( parent_tree , hf_mswsp_msg , tvb , offset , in ? 0 : - 1 , ENC_NA ) ;\n tree = proto_item_add_subtree ( item , ett_mswsp_msg ) ;\n proto_item_set_text ( item , \"GetRows%s\" , in ? \"In\" : \"Out\" ) ;\n col_append_str ( pinfo -> cinfo , COL_INFO , \"GetRows\" ) ;\n ct = get_create_converstation_data ( pinfo ) ;\n if ( in ) {\n struct message_data * data = NULL ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrows_hcursor , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrows_rowstotransfer , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrows_rowwidth , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrows_cbseek , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n data = find_or_create_message_data ( ct , pinfo , 0xCC , in , private_data ) ;\n if ( data ) {\n data -> content . rowsin . cbreserved = tvb_get_letohl ( tvb , offset ) ;\n }\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrows_cbreserved , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrows_cbreadbuffer , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n if ( data ) {\n data -> content . rowsin . ulclientbase = tvb_get_letohl ( tvb , offset ) ;\n }\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrows_ulclientbase , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrows_fbwdfetch , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n eType = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrows_etype , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrows_chapt , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n seek_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_SeekDescription , NULL , \"SeekDescription\" ) ;\n switch ( eType ) {\n case 0 : break ;\n case 1 : parse_CRowSeekNext ( tvb , offset , seek_tree , \"CRowSeekNext\" ) ;\n break ;\n case 2 : parse_CRowSeekAt ( tvb , offset , seek_tree , \"CRowSeekAt\" ) ;\n break ;\n case 3 : parse_CRowSeekAtRatio ( tvb , offset , seek_tree , \"CRowSeekAtRatio\" ) ;\n break ;\n case 4 : parse_CRowSeekByBookmark ( tvb , offset , seek_tree , \"CRowSeekByRatio\" ) ;\n break ;\n default : break ;\n }\n }\n else {\n guint32 num_rows = 0 ;\n proto_item * ti ;\n proto_tree * pad_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_mswsp_pad , & ti , \"Padding\" ) ;\n struct CPMSetBindingsIn * bindingsin = find_binding_msg_data ( ct , pinfo , private_data ) ;\n struct rows_data * rowsin = find_rowsin_msg_data ( ct , pinfo , private_data ) ;\n gboolean b_64bit_mode = FALSE ;\n gboolean b_has_arch = is_64bit_mode ( ct , pinfo , & b_64bit_mode , private_data ) ;\n num_rows = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrows_crowsreturned , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n eType = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrows_etype , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetrows_chapt , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n seek_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_SeekDescription , NULL , \"SeekDescription\" ) ;\n switch ( eType ) {\n case 0 : break ;\n case 1 : parse_CRowSeekNext ( tvb , offset , seek_tree , \"CRowSeekNext\" ) ;\n break ;\n case 2 : parse_CRowSeekAt ( tvb , offset , seek_tree , \"CRowSeekAt\" ) ;\n break ;\n case 3 : parse_CRowSeekAtRatio ( tvb , offset , seek_tree , \"CRowSeekAtRatio\" ) ;\n break ;\n case 4 : parse_CRowSeekByBookmark ( tvb , offset , seek_tree , \"CRowSeekByRatio\" ) ;\n break ;\n default : break ;\n }\n if ( b_has_arch && bindingsin && rowsin ) {\n offset = parse_padding ( tvb , offset , rowsin -> cbreserved , pad_tree , \"paddingRows\" ) ;\n parse_RowsBuffer ( tvb , offset , num_rows , bindingsin , rowsin , b_64bit_mode , tree , \"Rows\" ) ;\n }\n else {\n gint nbytes = tvb_reported_length_remaining ( tvb , offset ) ;\n proto_tree_add_expert_format ( tree , pinfo , & ei_missing_msg_context , tvb , offset , nbytes , \"Undissected %d bytes (due to missing preceding msg(s))\" , nbytes ) ;\n }\n }\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 9056, "target": 0, "func": "static int do_rawv6_getsockopt ( struct sock * sk , int level , int optname , char __user * optval , int __user * optlen ) {\n struct raw6_sock * rp = raw6_sk ( sk ) ;\n int val , len ;\n if ( get_user ( len , optlen ) ) return - EFAULT ;\n switch ( optname ) {\n case IPV6_CHECKSUM : if ( rp -> checksum == 0 ) val = - 1 ;\n else val = rp -> offset ;\n break ;\n default : return - ENOPROTOOPT ;\n }\n len = min_t ( unsigned int , sizeof ( int ) , len ) ;\n if ( put_user ( len , optlen ) ) return - EFAULT ;\n if ( copy_to_user ( optval , & val , len ) ) return - EFAULT ;\n return 0 ;\n }"}
{"idx": 9057, "target": 0, "func": "void MatMultiply ( real m1 [ 6 ] , real m2 [ 6 ] , real to [ 6 ] ) {\n real trans [ 6 ] ;\n trans [ 0 ] = m1 [ 0 ] * m2 [ 0 ] + m1 [ 1 ] * m2 [ 2 ] ;\n trans [ 1 ] = m1 [ 0 ] * m2 [ 1 ] + m1 [ 1 ] * m2 [ 3 ] ;\n trans [ 2 ] = m1 [ 2 ] * m2 [ 0 ] + m1 [ 3 ] * m2 [ 2 ] ;\n trans [ 3 ] = m1 [ 2 ] * m2 [ 1 ] + m1 [ 3 ] * m2 [ 3 ] ;\n trans [ 4 ] = m1 [ 4 ] * m2 [ 0 ] + m1 [ 5 ] * m2 [ 2 ] + m2 [ 4 ] ;\n trans [ 5 ] = m1 [ 4 ] * m2 [ 1 ] + m1 [ 5 ] * m2 [ 3 ] + m2 [ 5 ] ;\n memcpy ( to , trans , sizeof ( trans ) ) ;\n }"}
{"idx": 9058, "target": 0, "func": "static int main_config ( void ) {\n main_version ( ) ;\n XPR ( NTR \"EXTERNAL_COMPRESSION=%d\\n\" , EXTERNAL_COMPRESSION ) ;\n XPR ( NTR \"GENERIC_ENCODE_TABLES=%d\\n\" , GENERIC_ENCODE_TABLES ) ;\n XPR ( NTR \"GENERIC_ENCODE_TABLES_COMPUTE=%d\\n\" , GENERIC_ENCODE_TABLES_COMPUTE ) ;\n XPR ( NTR \"REGRESSION_TEST=%d\\n\" , REGRESSION_TEST ) ;\n XPR ( NTR \"SECONDARY_DJW=%d\\n\" , SECONDARY_DJW ) ;\n XPR ( NTR \"SECONDARY_FGK=%d\\n\" , SECONDARY_FGK ) ;\n XPR ( NTR \"SECONDARY_LZMA=%d\\n\" , SECONDARY_LZMA ) ;\n XPR ( NTR \"UNALIGNED_OK=%d\\n\" , UNALIGNED_OK ) ;\n XPR ( NTR \"VCDIFF_TOOLS=%d\\n\" , VCDIFF_TOOLS ) ;\n XPR ( NTR \"XD3_ALLOCSIZE=%d\\n\" , XD3_ALLOCSIZE ) ;\n XPR ( NTR \"XD3_DEBUG=%d\\n\" , XD3_DEBUG ) ;\n XPR ( NTR \"XD3_ENCODER=%d\\n\" , XD3_ENCODER ) ;\n XPR ( NTR \"XD3_POSIX=%d\\n\" , XD3_POSIX ) ;\n XPR ( NTR \"XD3_STDIO=%d\\n\" , XD3_STDIO ) ;\n XPR ( NTR \"XD3_WIN32=%d\\n\" , XD3_WIN32 ) ;\n XPR ( NTR \"XD3_USE_LARGEFILE64=%d\\n\" , XD3_USE_LARGEFILE64 ) ;\n XPR ( NTR \"XD3_DEFAULT_LEVEL=%d\\n\" , XD3_DEFAULT_LEVEL ) ;\n XPR ( NTR \"XD3_DEFAULT_IOPT_SIZE=%d\\n\" , XD3_DEFAULT_IOPT_SIZE ) ;\n XPR ( NTR \"XD3_DEFAULT_SPREVSZ=%d\\n\" , XD3_DEFAULT_SPREVSZ ) ;\n XPR ( NTR \"XD3_DEFAULT_SRCWINSZ=%d\\n\" , XD3_DEFAULT_SRCWINSZ ) ;\n XPR ( NTR \"XD3_DEFAULT_WINSIZE=%d\\n\" , XD3_DEFAULT_WINSIZE ) ;\n XPR ( NTR \"XD3_HARDMAXWINSIZE=%d\\n\" , XD3_HARDMAXWINSIZE ) ;\n XPR ( NTR \"sizeof(void*)=%d\\n\" , ( int ) sizeof ( void * ) ) ;\n XPR ( NTR \"sizeof(int)=%d\\n\" , ( int ) sizeof ( int ) ) ;\n XPR ( NTR \"sizeof(size_t)=%d\\n\" , ( int ) sizeof ( size_t ) ) ;\n XPR ( NTR \"sizeof(uint32_t)=%d\\n\" , ( int ) sizeof ( uint32_t ) ) ;\n XPR ( NTR \"sizeof(uint64_t)=%d\\n\" , ( int ) sizeof ( uint64_t ) ) ;\n XPR ( NTR \"sizeof(usize_t)=%d\\n\" , ( int ) sizeof ( usize_t ) ) ;\n XPR ( NTR \"sizeof(xoff_t)=%d\\n\" , ( int ) sizeof ( xoff_t ) ) ;\n return EXIT_SUCCESS ;\n }"}
{"idx": 9059, "target": 0, "func": "static void RTP_packet_draw ( void * prs _U_ ) {\n voip_rtp_tapinfo_t * rtp_tapinfo = & the_tapinfo_rtp_struct ;\n GList * rtp_streams_list ;\n voip_rtp_stream_info_t * rtp_listinfo ;\n seq_analysis_item_t * gai ;\n seq_analysis_item_t * new_gai ;\n guint16 conv_num ;\n guint32 duration ;\n gchar time_str [ COL_MAX_LEN ] ;\n rtp_streams_list = g_list_first ( rtp_tapinfo -> list ) ;\n while ( rtp_streams_list ) {\n rtp_listinfo = ( voip_rtp_stream_info_t * ) rtp_streams_list -> data ;\n gai = ( seq_analysis_item_t * ) g_hash_table_lookup ( the_tapinfo_struct . graph_analysis -> ht , & rtp_listinfo -> setup_frame_number ) ;\n if ( gai != NULL ) {\n conv_num = gai -> conv_num ;\n gai = ( seq_analysis_item_t * ) g_hash_table_lookup ( the_tapinfo_struct . graph_analysis -> ht , & rtp_listinfo -> start_fd -> num ) ;\n if ( gai != NULL ) {\n duration = ( guint32 ) ( nstime_to_msec ( & rtp_listinfo -> stop_rel_ts ) - nstime_to_msec ( & rtp_listinfo -> start_rel_ts ) ) ;\n g_free ( gai -> comment ) ;\n gai -> comment = g_strdup_printf ( \"%s Num packets:%u Duration:%u.%03us SSRC:0x%X\" , ( rtp_listinfo -> is_srtp ) ? \"SRTP\" : \"RTP\" , rtp_listinfo -> npackets , duration / 1000 , ( duration % 1000 ) , rtp_listinfo -> ssrc ) ;\n }\n else {\n new_gai = ( seq_analysis_item_t * ) g_malloc ( sizeof ( seq_analysis_item_t ) ) ;\n new_gai -> fd = rtp_listinfo -> start_fd ;\n COPY_ADDRESS ( & ( new_gai -> src_addr ) , & ( rtp_listinfo -> src_addr ) ) ;\n COPY_ADDRESS ( & ( new_gai -> dst_addr ) , & ( rtp_listinfo -> dest_addr ) ) ;\n new_gai -> port_src = rtp_listinfo -> src_port ;\n new_gai -> port_dst = rtp_listinfo -> dest_port ;\n duration = ( guint32 ) ( nstime_to_msec ( & rtp_listinfo -> stop_rel_ts ) - nstime_to_msec ( & rtp_listinfo -> start_rel_ts ) ) ;\n new_gai -> frame_label = g_strdup_printf ( \"%s (%s) %s\" , ( rtp_listinfo -> is_srtp ) ? \"SRTP\" : \"RTP\" , rtp_listinfo -> pt_str , ( rtp_listinfo -> rtp_event == - 1 ) ? \"\" : val_to_str_ext_const ( rtp_listinfo -> rtp_event , & rtp_event_type_values_ext , \"Unknown RTP Event\" ) ) ;\n new_gai -> comment = g_strdup_printf ( \"%s Num packets:%u Duration:%u.%03us SSRC:0x%X\" , ( rtp_listinfo -> is_srtp ) ? \"SRTP\" : \"RTP\" , rtp_listinfo -> npackets , duration / 1000 , ( duration % 1000 ) , rtp_listinfo -> ssrc ) ;\n new_gai -> conv_num = conv_num ;\n set_fd_time ( cfile . epan , new_gai -> fd , time_str ) ;\n new_gai -> time_str = g_strdup ( time_str ) ;\n new_gai -> display = FALSE ;\n new_gai -> line_style = 2 ;\n the_tapinfo_struct . graph_analysis -> list = g_list_prepend ( the_tapinfo_struct . graph_analysis -> list , new_gai ) ;\n g_hash_table_insert ( the_tapinfo_struct . graph_analysis -> ht , & rtp_listinfo -> start_fd , new_gai ) ;\n }\n }\n rtp_streams_list = g_list_next ( rtp_streams_list ) ;\n }\n }"}
{"idx": 9060, "target": 0, "func": "extern int name ( int ) __THROW __exctype ( isalnum ) ;\n __exctype ( isalpha ) ;\n __exctype ( iscntrl ) ;\n __exctype ( isdigit ) ;\n __exctype ( islower ) ;\n __exctype ( isgraph ) ;\n __exctype ( isprint ) ;\n __exctype ( ispunct ) ;\n __exctype ( isspace ) ;\n __exctype ( isupper ) ;\n __exctype ( isxdigit )"}
{"idx": 9061, "target": 0, "func": "static int kvm_inject_mce_oldstyle ( X86CPU * cpu ) {\n CPUX86State * env = & cpu -> env ;\n if ( ! kvm_has_vcpu_events ( ) && env -> exception_injected == EXCP12_MCHK ) {\n unsigned int bank , bank_num = env -> mcg_cap & 0xff ;\n struct kvm_x86_mce mce ;\n env -> exception_injected = - 1 ;\n for ( bank = 0 ;\n bank < bank_num ;\n bank ++ ) {\n if ( env -> mce_banks [ bank * 4 + 1 ] & MCI_STATUS_VAL ) {\n break ;\n }\n }\n assert ( bank < bank_num ) ;\n mce . bank = bank ;\n mce . status = env -> mce_banks [ bank * 4 + 1 ] ;\n mce . mcg_status = env -> mcg_status ;\n mce . addr = env -> mce_banks [ bank * 4 + 2 ] ;\n mce . misc = env -> mce_banks [ bank * 4 + 3 ] ;\n return kvm_vcpu_ioctl ( CPU ( cpu ) , KVM_X86_SET_MCE , & mce ) ;\n }\n return 0 ;\n }"}
{"idx": 9062, "target": 0, "func": "static void pdf_run_BDC ( fz_context * ctx , pdf_processor * proc , const char * tag , pdf_obj * raw , pdf_obj * cooked ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n const char * str ;\n if ( ! tag || strcmp ( tag , \"OC\" ) ) return ;\n str = pdf_to_str_buf ( ctx , pdf_dict_get ( ctx , cooked , PDF_NAME_Name ) ) ;\n if ( str == NULL ) str = \"UnnamedLayer\" ;\n fz_begin_layer ( ctx , pr -> dev , str ) ;\n }"}
{"idx": 9063, "target": 0, "func": "static void test_fetch_bigint ( ) {\n int rc ;\n myheader ( \"test_fetch_bigint\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_bind_fetch\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_bind_fetch(c1 bigint, \\ c2 bigint, \\ c3 bigint unsigned, \\ c4 bigint unsigned, \\ c5 bigint unsigned, \\ c6 bigint unsigned, \\ c7 bigint unsigned)\" ) ;\n myquery ( rc ) ;\n bind_fetch ( 2 ) ;\n }"}
{"idx": 9064, "target": 1, "func": "static int execute_code ( AVCodecContext * avctx , int c ) {\n AnsiContext * s = avctx -> priv_data ;\n int ret , i , width , height ;\n switch ( c ) {\n case 'A' : s -> y = FFMAX ( s -> y - ( s -> nb_args > 0 ? s -> args [ 0 ] * s -> font_height : s -> font_height ) , 0 ) ;\n break ;\n case 'B' : s -> y = FFMIN ( s -> y + ( s -> nb_args > 0 ? s -> args [ 0 ] * s -> font_height : s -> font_height ) , avctx -> height - s -> font_height ) ;\n break ;\n case 'C' : s -> x = FFMIN ( s -> x + ( s -> nb_args > 0 ? s -> args [ 0 ] * FONT_WIDTH : FONT_WIDTH ) , avctx -> width - FONT_WIDTH ) ;\n break ;\n case 'D' : s -> x = FFMAX ( s -> x - ( s -> nb_args > 0 ? s -> args [ 0 ] * FONT_WIDTH : FONT_WIDTH ) , 0 ) ;\n break ;\n case 'H' : case 'f' : s -> y = s -> nb_args > 0 ? av_clip ( ( s -> args [ 0 ] - 1 ) * s -> font_height , 0 , avctx -> height - s -> font_height ) : 0 ;\n s -> x = s -> nb_args > 1 ? av_clip ( ( s -> args [ 1 ] - 1 ) * FONT_WIDTH , 0 , avctx -> width - FONT_WIDTH ) : 0 ;\n break ;\n case 'h' : case 'l' : if ( s -> nb_args < 2 ) s -> args [ 0 ] = DEFAULT_SCREEN_MODE ;\n switch ( s -> args [ 0 ] ) {\n case 0 : case 1 : case 4 : case 5 : case 13 : case 19 : s -> font = ff_cga_font ;\n s -> font_height = 8 ;\n width = 40 << 3 ;\n height = 25 << 3 ;\n break ;\n case 2 : case 3 : s -> font = ff_vga16_font ;\n s -> font_height = 16 ;\n width = 80 << 3 ;\n height = 25 << 4 ;\n break ;\n case 6 : case 14 : s -> font = ff_cga_font ;\n s -> font_height = 8 ;\n width = 80 << 3 ;\n height = 25 << 3 ;\n break ;\n case 7 : break ;\n case 15 : case 16 : s -> font = ff_cga_font ;\n s -> font_height = 8 ;\n width = 80 << 3 ;\n height = 43 << 3 ;\n break ;\n case 17 : case 18 : s -> font = ff_cga_font ;\n s -> font_height = 8 ;\n width = 80 << 3 ;\n height = 60 << 4 ;\n break ;\n default : av_log_ask_for_sample ( avctx , \"unsupported screen mode\\n\" ) ;\n }\n if ( width != avctx -> width || height != avctx -> height ) {\n if ( s -> frame . data [ 0 ] ) avctx -> release_buffer ( avctx , & s -> frame ) ;\n avcodec_set_dimensions ( avctx , width , height ) ;\n ret = ff_get_buffer ( avctx , & s -> frame ) ;\n if ( ret < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n s -> frame . pict_type = AV_PICTURE_TYPE_I ;\n s -> frame . palette_has_changed = 1 ;\n memcpy ( s -> frame . data [ 1 ] , ff_cga_palette , 16 * 4 ) ;\n erase_screen ( avctx ) ;\n }\n else if ( c == 'l' ) {\n erase_screen ( avctx ) ;\n }\n break ;\n case 'J' : switch ( s -> args [ 0 ] ) {\n case 0 : erase_line ( avctx , s -> x , avctx -> width - s -> x ) ;\n if ( s -> y < avctx -> height - s -> font_height ) memset ( s -> frame . data [ 0 ] + ( s -> y + s -> font_height ) * s -> frame . linesize [ 0 ] , DEFAULT_BG_COLOR , ( avctx -> height - s -> y - s -> font_height ) * s -> frame . linesize [ 0 ] ) ;\n break ;\n case 1 : erase_line ( avctx , 0 , s -> x ) ;\n if ( s -> y > 0 ) memset ( s -> frame . data [ 0 ] , DEFAULT_BG_COLOR , s -> y * s -> frame . linesize [ 0 ] ) ;\n break ;\n case 2 : erase_screen ( avctx ) ;\n }\n break ;\n case 'K' : switch ( s -> args [ 0 ] ) {\n case 0 : erase_line ( avctx , s -> x , avctx -> width - s -> x ) ;\n break ;\n case 1 : erase_line ( avctx , 0 , s -> x ) ;\n break ;\n case 2 : erase_line ( avctx , 0 , avctx -> width ) ;\n }\n break ;\n case 'm' : if ( s -> nb_args == 0 ) {\n s -> nb_args = 1 ;\n s -> args [ 0 ] = 0 ;\n }\n for ( i = 0 ;\n i < FFMIN ( s -> nb_args , MAX_NB_ARGS ) ;\n i ++ ) {\n int m = s -> args [ i ] ;\n if ( m == 0 ) {\n s -> attributes = 0 ;\n s -> fg = DEFAULT_FG_COLOR ;\n s -> bg = DEFAULT_BG_COLOR ;\n }\n else if ( m == 1 || m == 2 || m == 4 || m == 5 || m == 7 || m == 8 ) {\n s -> attributes |= 1 << ( m - 1 ) ;\n }\n else if ( m >= 30 && m <= 38 ) {\n s -> fg = ansi_to_cga [ m - 30 ] ;\n }\n else if ( m == 39 ) {\n s -> fg = ansi_to_cga [ DEFAULT_FG_COLOR ] ;\n }\n else if ( m >= 40 && m <= 47 ) {\n s -> bg = ansi_to_cga [ m - 40 ] ;\n }\n else if ( m == 49 ) {\n s -> fg = ansi_to_cga [ DEFAULT_BG_COLOR ] ;\n }\n else {\n av_log_ask_for_sample ( avctx , \"unsupported rendition parameter\\n\" ) ;\n }\n }\n break ;\n case 'n' : case 'R' : break ;\n case 's' : s -> sx = s -> x ;\n s -> sy = s -> y ;\n break ;\n case 'u' : s -> x = av_clip ( s -> sx , 0 , avctx -> width - FONT_WIDTH ) ;\n s -> y = av_clip ( s -> sy , 0 , avctx -> height - s -> font_height ) ;\n break ;\n default : av_log_ask_for_sample ( avctx , \"unsupported escape code\\n\" ) ;\n break ;\n }\n return 0 ;\n }"}
{"idx": 9065, "target": 0, "func": "static void scope_chunk_free ( void * key , void * data ) {\n ID2 * p1 , * p2 ;\n for ( p1 = data ;\n p1 ;\n p1 = p2 ) {\n p2 = p1 [ 0 ] . mval . mv_data ;\n ber_memfree_x ( p1 , NULL ) ;\n }\n }"}
{"idx": 9066, "target": 0, "func": "static cmsBool WritePositionTable ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number SizeOfTag , cmsUInt32Number Count , cmsUInt32Number BaseOffset , void * Cargo , PositionTableEntryFn ElementFn ) {\n cmsUInt32Number i ;\n cmsUInt32Number DirectoryPos , CurrentPos , Before ;\n cmsUInt32Number * ElementOffsets = NULL , * ElementSizes = NULL ;\n ElementOffsets = ( cmsUInt32Number * ) _cmsCalloc ( io -> ContextID , Count , sizeof ( cmsUInt32Number ) ) ;\n if ( ElementOffsets == NULL ) goto Error ;\n ElementSizes = ( cmsUInt32Number * ) _cmsCalloc ( io -> ContextID , Count , sizeof ( cmsUInt32Number ) ) ;\n if ( ElementSizes == NULL ) goto Error ;\n DirectoryPos = io -> Tell ( io ) ;\n for ( i = 0 ;\n i < Count ;\n i ++ ) {\n if ( ! _cmsWriteUInt32Number ( io , 0 ) ) goto Error ;\n if ( ! _cmsWriteUInt32Number ( io , 0 ) ) goto Error ;\n }\n for ( i = 0 ;\n i < Count ;\n i ++ ) {\n Before = io -> Tell ( io ) ;\n ElementOffsets [ i ] = Before - BaseOffset ;\n if ( ! ElementFn ( self , io , Cargo , i , SizeOfTag ) ) goto Error ;\n ElementSizes [ i ] = io -> Tell ( io ) - Before ;\n }\n CurrentPos = io -> Tell ( io ) ;\n if ( ! io -> Seek ( io , DirectoryPos ) ) goto Error ;\n for ( i = 0 ;\n i < Count ;\n i ++ ) {\n if ( ! _cmsWriteUInt32Number ( io , ElementOffsets [ i ] ) ) goto Error ;\n if ( ! _cmsWriteUInt32Number ( io , ElementSizes [ i ] ) ) goto Error ;\n }\n if ( ! io -> Seek ( io , CurrentPos ) ) goto Error ;\n if ( ElementOffsets != NULL ) _cmsFree ( io -> ContextID , ElementOffsets ) ;\n if ( ElementSizes != NULL ) _cmsFree ( io -> ContextID , ElementSizes ) ;\n return TRUE ;\n Error : if ( ElementOffsets != NULL ) _cmsFree ( io -> ContextID , ElementOffsets ) ;\n if ( ElementSizes != NULL ) _cmsFree ( io -> ContextID , ElementSizes ) ;\n return FALSE ;\n }"}
{"idx": 9067, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n JvContext * s = avctx -> priv_data ;\n int buf_size = avpkt -> size ;\n const uint8_t * buf = avpkt -> data ;\n const uint8_t * buf_end = buf + buf_size ;\n int video_size , video_type , i , j , ret ;\n video_size = AV_RL32 ( buf ) ;\n video_type = buf [ 4 ] ;\n buf += 5 ;\n if ( video_size ) {\n if ( ( ret = ff_reget_buffer ( avctx , & s -> frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( video_type == 0 || video_type == 1 ) {\n GetBitContext gb ;\n init_get_bits ( & gb , buf , 8 * FFMIN ( video_size , buf_end - buf ) ) ;\n for ( j = 0 ;\n j < avctx -> height ;\n j += 8 ) for ( i = 0 ;\n i < avctx -> width ;\n i += 8 ) decode8x8 ( & gb , s -> frame . data [ 0 ] + j * s -> frame . linesize [ 0 ] + i , s -> frame . linesize [ 0 ] , & s -> dsp ) ;\n buf += video_size ;\n }\n else if ( video_type == 2 ) {\n if ( buf + 1 <= buf_end ) {\n int v = * buf ++ ;\n for ( j = 0 ;\n j < avctx -> height ;\n j ++ ) memset ( s -> frame . data [ 0 ] + j * s -> frame . linesize [ 0 ] , v , avctx -> width ) ;\n }\n }\n else {\n av_log ( avctx , AV_LOG_WARNING , \"unsupported frame type %i\\n\" , video_type ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n if ( buf < buf_end ) {\n for ( i = 0 ;\n i < AVPALETTE_COUNT && buf + 3 <= buf_end ;\n i ++ ) {\n s -> palette [ i ] = AV_RB24 ( buf ) << 2 ;\n buf += 3 ;\n }\n s -> palette_has_changed = 1 ;\n }\n if ( video_size ) {\n s -> frame . key_frame = 1 ;\n s -> frame . pict_type = AV_PICTURE_TYPE_I ;\n s -> frame . palette_has_changed = s -> palette_has_changed ;\n s -> palette_has_changed = 0 ;\n memcpy ( s -> frame . data [ 1 ] , s -> palette , AVPALETTE_SIZE ) ;\n if ( ( ret = av_frame_ref ( data , & s -> frame ) ) < 0 ) return ret ;\n * got_frame = 1 ;\n }\n return buf_size ;\n }"}
{"idx": 9068, "target": 0, "func": "static void vga_draw_line15_le ( VGACommonState * vga , uint8_t * d , uint32_t addr , int width ) {\n int w ;\n uint32_t v , r , g , b ;\n w = width ;\n do {\n v = vga_read_word_le ( vga , addr ) ;\n r = ( v >> 7 ) & 0xf8 ;\n g = ( v >> 2 ) & 0xf8 ;\n b = ( v << 3 ) & 0xf8 ;\n ( ( uint32_t * ) d ) [ 0 ] = rgb_to_pixel32 ( r , g , b ) ;\n addr += 2 ;\n d += 4 ;\n }\n while ( -- w != 0 ) ;\n }"}
{"idx": 9069, "target": 0, "func": "static void mclms_update ( WmallDecodeCtx * s , int icoef , int * pred ) {\n int i , j , ich , pred_error ;\n int order = s -> mclms_order ;\n int num_channels = s -> num_channels ;\n int range = 1 << ( s -> bits_per_sample - 1 ) ;\n for ( ich = 0 ;\n ich < num_channels ;\n ich ++ ) {\n pred_error = s -> channel_residues [ ich ] [ icoef ] - pred [ ich ] ;\n if ( pred_error > 0 ) {\n for ( i = 0 ;\n i < order * num_channels ;\n i ++ ) s -> mclms_coeffs [ i + ich * order * num_channels ] += s -> mclms_updates [ s -> mclms_recent + i ] ;\n for ( j = 0 ;\n j < ich ;\n j ++ ) {\n if ( s -> channel_residues [ j ] [ icoef ] > 0 ) s -> mclms_coeffs_cur [ ich * num_channels + j ] += 1 ;\n else if ( s -> channel_residues [ j ] [ icoef ] < 0 ) s -> mclms_coeffs_cur [ ich * num_channels + j ] -= 1 ;\n }\n }\n else if ( pred_error < 0 ) {\n for ( i = 0 ;\n i < order * num_channels ;\n i ++ ) s -> mclms_coeffs [ i + ich * order * num_channels ] -= s -> mclms_updates [ s -> mclms_recent + i ] ;\n for ( j = 0 ;\n j < ich ;\n j ++ ) {\n if ( s -> channel_residues [ j ] [ icoef ] > 0 ) s -> mclms_coeffs_cur [ ich * num_channels + j ] -= 1 ;\n else if ( s -> channel_residues [ j ] [ icoef ] < 0 ) s -> mclms_coeffs_cur [ ich * num_channels + j ] += 1 ;\n }\n }\n }\n for ( ich = num_channels - 1 ;\n ich >= 0 ;\n ich -- ) {\n s -> mclms_recent -- ;\n s -> mclms_prevvalues [ s -> mclms_recent ] = s -> channel_residues [ ich ] [ icoef ] ;\n if ( s -> channel_residues [ ich ] [ icoef ] > range - 1 ) s -> mclms_prevvalues [ s -> mclms_recent ] = range - 1 ;\n else if ( s -> channel_residues [ ich ] [ icoef ] < - range ) s -> mclms_prevvalues [ s -> mclms_recent ] = - range ;\n s -> mclms_updates [ s -> mclms_recent ] = 0 ;\n if ( s -> channel_residues [ ich ] [ icoef ] > 0 ) s -> mclms_updates [ s -> mclms_recent ] = 1 ;\n else if ( s -> channel_residues [ ich ] [ icoef ] < 0 ) s -> mclms_updates [ s -> mclms_recent ] = - 1 ;\n }\n if ( s -> mclms_recent == 0 ) {\n memcpy ( & s -> mclms_prevvalues [ order * num_channels ] , s -> mclms_prevvalues , 2 * order * num_channels ) ;\n memcpy ( & s -> mclms_updates [ order * num_channels ] , s -> mclms_updates , 2 * order * num_channels ) ;\n s -> mclms_recent = num_channels * order ;\n }\n }"}
{"idx": 9070, "target": 1, "func": "int dtls1_get_record ( SSL * s ) {\n int ssl_major , ssl_minor ;\n int i , n ;\n SSL3_RECORD * rr ;\n unsigned char * p = NULL ;\n unsigned short version ;\n DTLS1_BITMAP * bitmap ;\n unsigned int is_next_epoch ;\n rr = RECORD_LAYER_get_rrec ( & s -> rlayer ) ;\n again : if ( dtls1_process_buffered_records ( s ) < 0 ) return - 1 ;\n if ( dtls1_get_processed_record ( s ) ) return 1 ;\n if ( ( RECORD_LAYER_get_rstate ( & s -> rlayer ) != SSL_ST_READ_BODY ) || ( RECORD_LAYER_get_packet_length ( & s -> rlayer ) < DTLS1_RT_HEADER_LENGTH ) ) {\n n = ssl3_read_n ( s , DTLS1_RT_HEADER_LENGTH , SSL3_BUFFER_get_len ( & s -> rlayer . rbuf ) , 0 , 1 ) ;\n if ( n <= 0 ) return ( n ) ;\n if ( RECORD_LAYER_get_packet_length ( & s -> rlayer ) != DTLS1_RT_HEADER_LENGTH ) {\n RECORD_LAYER_reset_packet_length ( & s -> rlayer ) ;\n goto again ;\n }\n RECORD_LAYER_set_rstate ( & s -> rlayer , SSL_ST_READ_BODY ) ;\n p = RECORD_LAYER_get_packet ( & s -> rlayer ) ;\n if ( s -> msg_callback ) s -> msg_callback ( 0 , 0 , SSL3_RT_HEADER , p , DTLS1_RT_HEADER_LENGTH , s , s -> msg_callback_arg ) ;\n rr -> type = * ( p ++ ) ;\n ssl_major = * ( p ++ ) ;\n ssl_minor = * ( p ++ ) ;\n version = ( ssl_major << 8 ) | ssl_minor ;\n n2s ( p , rr -> epoch ) ;\n memcpy ( & ( RECORD_LAYER_get_read_sequence ( & s -> rlayer ) [ 2 ] ) , p , 6 ) ;\n p += 6 ;\n n2s ( p , rr -> length ) ;\n if ( ! s -> first_packet ) {\n if ( version != s -> version ) {\n rr -> length = 0 ;\n RECORD_LAYER_reset_packet_length ( & s -> rlayer ) ;\n goto again ;\n }\n }\n if ( ( version & 0xff00 ) != ( s -> version & 0xff00 ) ) {\n rr -> length = 0 ;\n RECORD_LAYER_reset_packet_length ( & s -> rlayer ) ;\n goto again ;\n }\n if ( rr -> length > SSL3_RT_MAX_ENCRYPTED_LENGTH ) {\n rr -> length = 0 ;\n RECORD_LAYER_reset_packet_length ( & s -> rlayer ) ;\n goto again ;\n }\n }\n if ( rr -> length > RECORD_LAYER_get_packet_length ( & s -> rlayer ) - DTLS1_RT_HEADER_LENGTH ) {\n i = rr -> length ;\n n = ssl3_read_n ( s , i , i , 1 , 1 ) ;\n if ( n != i ) {\n rr -> length = 0 ;\n RECORD_LAYER_reset_packet_length ( & s -> rlayer ) ;\n goto again ;\n }\n }\n RECORD_LAYER_set_rstate ( & s -> rlayer , SSL_ST_READ_HEADER ) ;\n bitmap = dtls1_get_bitmap ( s , rr , & is_next_epoch ) ;\n if ( bitmap == NULL ) {\n rr -> length = 0 ;\n RECORD_LAYER_reset_packet_length ( & s -> rlayer ) ;\n goto again ;\n }\n # ifndef OPENSSL_NO_SCTP if ( ! BIO_dgram_is_sctp ( SSL_get_rbio ( s ) ) ) {\n # endif if ( ! dtls1_record_replay_check ( s , bitmap ) ) {\n rr -> length = 0 ;\n RECORD_LAYER_reset_packet_length ( & s -> rlayer ) ;\n goto again ;\n }\n # ifndef OPENSSL_NO_SCTP }\n # endif if ( rr -> length == 0 ) goto again ;\n if ( is_next_epoch ) {\n if ( ( SSL_in_init ( s ) || ossl_statem_get_in_handshake ( s ) ) ) {\n if ( dtls1_buffer_record ( s , & ( DTLS_RECORD_LAYER_get_unprocessed_rcds ( & s -> rlayer ) ) , rr -> seq_num ) < 0 ) return - 1 ;\n dtls1_record_bitmap_update ( s , bitmap ) ;\n }\n rr -> length = 0 ;\n RECORD_LAYER_reset_packet_length ( & s -> rlayer ) ;\n goto again ;\n }\n if ( ! dtls1_process_record ( s ) ) {\n rr -> length = 0 ;\n RECORD_LAYER_reset_packet_length ( & s -> rlayer ) ;\n goto again ;\n }\n dtls1_record_bitmap_update ( s , bitmap ) ;\n return ( 1 ) ;\n }"}
{"idx": 9071, "target": 0, "func": "static int dtls1_handshake_write ( SSL * s ) {\n return dtls1_do_write ( s , SSL3_RT_HANDSHAKE ) ;\n }"}
{"idx": 9072, "target": 0, "func": "static const char * cmd_rule_update_target_by_id ( cmd_parms * cmd , void * _dcfg , const char * p1 , const char * p2 , const char * p3 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n rule_exception * re = apr_pcalloc ( cmd -> pool , sizeof ( rule_exception ) ) ;\n if ( dcfg == NULL ) return NULL ;\n if ( p1 == NULL ) {\n return apr_psprintf ( cmd -> pool , \"Updating target by ID with no ID\" ) ;\n }\n re -> type = RULE_EXCEPTION_REMOVE_ID ;\n re -> param = p1 ;\n return msre_ruleset_rule_update_target_matching_exception ( NULL , dcfg -> ruleset , re , p2 , p3 ) ;\n }"}
{"idx": 9073, "target": 0, "func": "void dlhandle_free ( struct dl_handle * dlhandle ) {\n if ( dlhandle -> ptr && dlhandle -> open && dlhandle -> enable_close ) {\n dlclose ( dlhandle -> ptr ) ;\n }\n }"}
{"idx": 9074, "target": 0, "func": "static int dissect_spoolss_buffer ( tvbuff_t * tvb , gint offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep , BUFFER * b ) {\n if ( b ) memset ( b , 0 , sizeof ( BUFFER ) ) ;\n di -> private_data = b ;\n offset = dissect_ndr_pointer ( tvb , offset , pinfo , tree , di , drep , dissect_spoolss_buffer_data , NDR_POINTER_UNIQUE , \"Buffer\" , - 1 ) ;\n return offset ;\n }"}
{"idx": 9075, "target": 0, "func": "void kvm_arch_on_sigbus_vcpu ( CPUState * c , int code , void * addr ) {\n X86CPU * cpu = X86_CPU ( c ) ;\n CPUX86State * env = & cpu -> env ;\n ram_addr_t ram_addr ;\n hwaddr paddr ;\n assert ( code == BUS_MCEERR_AR || code == BUS_MCEERR_AO ) ;\n if ( ( env -> mcg_cap & MCG_SER_P ) && addr ) {\n ram_addr = qemu_ram_addr_from_host ( addr ) ;\n if ( ram_addr != RAM_ADDR_INVALID && kvm_physical_memory_addr_from_host ( c -> kvm_state , addr , & paddr ) ) {\n kvm_hwpoison_page_add ( ram_addr ) ;\n kvm_mce_inject ( cpu , paddr , code ) ;\n return ;\n }\n fprintf ( stderr , \"Hardware memory error for memory used by \" \"QEMU itself instead of guest system!\\n\" ) ;\n }\n if ( code == BUS_MCEERR_AR ) {\n hardware_memory_error ( ) ;\n }\n }"}
{"idx": 9076, "target": 0, "func": "static int ipvideo_decode_block_opcode_0xE ( IpvideoContext * s , AVFrame * frame ) {\n int y ;\n unsigned char pix ;\n pix = bytestream2_get_byte ( & s -> stream_ptr ) ;\n for ( y = 0 ;\n y < 8 ;\n y ++ ) {\n memset ( s -> pixel_ptr , pix , 8 ) ;\n s -> pixel_ptr += s -> stride ;\n }\n return 0 ;\n }"}
{"idx": 9077, "target": 0, "func": "void jbig2_ctx_free ( Jbig2Ctx * ctx ) {\n Jbig2Allocator * ca = ctx -> allocator ;\n int i ;\n jbig2_free ( ca , ctx -> buf ) ;\n if ( ctx -> segments != NULL ) {\n for ( i = 0 ;\n i < ctx -> n_segments ;\n i ++ ) jbig2_free_segment ( ctx , ctx -> segments [ i ] ) ;\n jbig2_free ( ca , ctx -> segments ) ;\n }\n if ( ctx -> pages != NULL ) {\n for ( i = 0 ;\n i <= ctx -> current_page ;\n i ++ ) if ( ctx -> pages [ i ] . image != NULL ) jbig2_image_release ( ctx , ctx -> pages [ i ] . image ) ;\n jbig2_free ( ca , ctx -> pages ) ;\n }\n jbig2_free ( ca , ctx ) ;\n }"}
{"idx": 9078, "target": 0, "func": "static int get_kpcr_number ( CPUX86State * env ) {\n struct kpcr {\n uint8_t fill1 [ 0x1c ] ;\n uint32_t self ;\n uint8_t fill2 [ 0x31 ] ;\n uint8_t number ;\n }\n QEMU_PACKED kpcr ;\n if ( cpu_memory_rw_debug ( env , env -> segs [ R_FS ] . base , ( void * ) & kpcr , sizeof ( kpcr ) , 0 ) < 0 || kpcr . self != env -> segs [ R_FS ] . base ) {\n return - 1 ;\n }\n return kpcr . number ;\n }"}
{"idx": 9079, "target": 0, "func": "int main ( int argc , char * * argv ) {\n int frame_cnt = 0 ;\n FILE * outfile = NULL ;\n vpx_codec_ctx_t codec ;\n const VpxInterface * decoder = NULL ;\n VpxVideoReader * reader = NULL ;\n const VpxVideoInfo * info = NULL ;\n int n = 0 ;\n int m = 0 ;\n int is_range = 0 ;\n char * nptr = NULL ;\n exec_name = argv [ 0 ] ;\n if ( argc != 4 ) die ( \"Invalid number of arguments.\" ) ;\n reader = vpx_video_reader_open ( argv [ 1 ] ) ;\n if ( ! reader ) die ( \"Failed to open %s for reading.\" , argv [ 1 ] ) ;\n if ( ! ( outfile = fopen ( argv [ 2 ] , \"wb\" ) ) ) die ( \"Failed to open %s for writing.\" , argv [ 2 ] ) ;\n n = strtol ( argv [ 3 ] , & nptr , 0 ) ;\n m = strtol ( nptr + 1 , NULL , 0 ) ;\n is_range = ( * nptr == '-' ) ;\n if ( ! n || ! m || ( * nptr != '-' && * nptr != '/' ) ) die ( \"Couldn't parse pattern %s.\\n\" , argv [ 3 ] ) ;\n info = vpx_video_reader_get_info ( reader ) ;\n decoder = get_vpx_decoder_by_fourcc ( info -> codec_fourcc ) ;\n if ( ! decoder ) die ( \"Unknown input codec.\" ) ;\n printf ( \"Using %s\\n\" , vpx_codec_iface_name ( decoder -> codec_interface ( ) ) ) ;\n if ( vpx_codec_dec_init ( & codec , decoder -> codec_interface ( ) , NULL , 0 ) ) die_codec ( & codec , \"Failed to initialize decoder.\" ) ;\n while ( vpx_video_reader_read_frame ( reader ) ) {\n vpx_codec_iter_t iter = NULL ;\n vpx_image_t * img = NULL ;\n size_t frame_size = 0 ;\n int skip ;\n const unsigned char * frame = vpx_video_reader_get_frame ( reader , & frame_size ) ;\n if ( vpx_codec_decode ( & codec , frame , ( unsigned int ) frame_size , NULL , 0 ) ) die_codec ( & codec , \"Failed to decode frame.\" ) ;\n ++ frame_cnt ;\n skip = ( is_range && frame_cnt >= n && frame_cnt <= m ) || ( ! is_range && m - ( frame_cnt - 1 ) % m <= n ) ;\n if ( ! skip ) {\n putc ( '.' , stdout ) ;\n while ( ( img = vpx_codec_get_frame ( & codec , & iter ) ) != NULL ) vpx_img_write ( img , outfile ) ;\n }\n else {\n putc ( 'X' , stdout ) ;\n }\n fflush ( stdout ) ;\n }\n printf ( \"Processed %d frames.\\n\" , frame_cnt ) ;\n if ( vpx_codec_destroy ( & codec ) ) die_codec ( & codec , \"Failed to destroy codec.\" ) ;\n printf ( \"Play: ffplay -f rawvideo -pix_fmt yuv420p -s %dx%d %s\\n\" , info -> frame_width , info -> frame_height , argv [ 2 ] ) ;\n vpx_video_reader_close ( reader ) ;\n fclose ( outfile ) ;\n return EXIT_SUCCESS ;\n }"}
{"idx": 9080, "target": 1, "func": "static enum nss_status getanswer_r ( const querybuf * answer , int anslen , const char * qname , int qtype , struct hostent * result , char * buffer , size_t buflen , int * errnop , int * h_errnop , int map , int32_t * ttlp , char * * canonp ) {\n struct host_data {\n char * aliases [ MAX_NR_ALIASES ] ;\n unsigned char host_addr [ 16 ] ;\n char * h_addr_ptrs [ 0 ] ;\n }\n * host_data ;\n int linebuflen ;\n const HEADER * hp ;\n const u_char * end_of_message , * cp ;\n int n , ancount , qdcount ;\n int haveanswer , had_error ;\n char * bp , * * ap , * * hap ;\n char tbuf [ MAXDNAME ] ;\n const char * tname ;\n int ( * name_ok ) ( const char * ) ;\n u_char packtmp [ NS_MAXCDNAME ] ;\n int have_to_map = 0 ;\n uintptr_t pad = - ( uintptr_t ) buffer % __alignof__ ( struct host_data ) ;\n buffer += pad ;\n if ( __glibc_unlikely ( buflen < sizeof ( struct host_data ) + pad ) ) {\n too_small : * errnop = ERANGE ;\n * h_errnop = NETDB_INTERNAL ;\n return NSS_STATUS_TRYAGAIN ;\n }\n host_data = ( struct host_data * ) buffer ;\n linebuflen = buflen - sizeof ( struct host_data ) ;\n if ( buflen - sizeof ( struct host_data ) != linebuflen ) linebuflen = INT_MAX ;\n tname = qname ;\n result -> h_name = NULL ;\n end_of_message = answer -> buf + anslen ;\n switch ( qtype ) {\n case T_A : case T_AAAA : name_ok = res_hnok ;\n break ;\n case T_PTR : name_ok = res_dnok ;\n break ;\n default : * errnop = ENOENT ;\n return NSS_STATUS_UNAVAIL ;\n }\n hp = & answer -> hdr ;\n ancount = ntohs ( hp -> ancount ) ;\n qdcount = ntohs ( hp -> qdcount ) ;\n cp = answer -> buf + HFIXEDSZ ;\n if ( __builtin_expect ( qdcount , 1 ) != 1 ) {\n * h_errnop = NO_RECOVERY ;\n return NSS_STATUS_UNAVAIL ;\n }\n if ( sizeof ( struct host_data ) + ( ancount + 1 ) * sizeof ( char * ) >= buflen ) goto too_small ;\n bp = ( char * ) & host_data -> h_addr_ptrs [ ancount + 1 ] ;\n linebuflen -= ( ancount + 1 ) * sizeof ( char * ) ;\n n = __ns_name_unpack ( answer -> buf , end_of_message , cp , packtmp , sizeof packtmp ) ;\n if ( n != - 1 && __ns_name_ntop ( packtmp , bp , linebuflen ) == - 1 ) {\n if ( __builtin_expect ( errno , 0 ) == EMSGSIZE ) goto too_small ;\n n = - 1 ;\n }\n if ( n > 0 && bp [ 0 ] == '.' ) bp [ 0 ] = '\\0' ;\n if ( __builtin_expect ( n < 0 || ( ( * name_ok ) ( bp ) == 0 && ( errno = EBADMSG ) ) , 0 ) ) {\n * errnop = errno ;\n * h_errnop = NO_RECOVERY ;\n return NSS_STATUS_UNAVAIL ;\n }\n cp += n + QFIXEDSZ ;\n if ( qtype == T_A || qtype == T_AAAA ) {\n n = strlen ( bp ) + 1 ;\n if ( n >= MAXHOSTNAMELEN ) {\n * h_errnop = NO_RECOVERY ;\n * errnop = ENOENT ;\n return NSS_STATUS_TRYAGAIN ;\n }\n result -> h_name = bp ;\n bp += n ;\n linebuflen -= n ;\n if ( linebuflen < 0 ) goto too_small ;\n qname = result -> h_name ;\n }\n ap = host_data -> aliases ;\n * ap = NULL ;\n result -> h_aliases = host_data -> aliases ;\n hap = host_data -> h_addr_ptrs ;\n * hap = NULL ;\n result -> h_addr_list = host_data -> h_addr_ptrs ;\n haveanswer = 0 ;\n had_error = 0 ;\n while ( ancount -- > 0 && cp < end_of_message && had_error == 0 ) {\n int type , class ;\n n = __ns_name_unpack ( answer -> buf , end_of_message , cp , packtmp , sizeof packtmp ) ;\n if ( n != - 1 && __ns_name_ntop ( packtmp , bp , linebuflen ) == - 1 ) {\n if ( __builtin_expect ( errno , 0 ) == EMSGSIZE ) goto too_small ;\n n = - 1 ;\n }\n if ( __glibc_unlikely ( n < 0 || ( * name_ok ) ( bp ) == 0 ) ) {\n ++ had_error ;\n continue ;\n }\n cp += n ;\n if ( __glibc_unlikely ( cp + 10 > end_of_message ) ) {\n ++ had_error ;\n continue ;\n }\n type = __ns_get16 ( cp ) ;\n cp += INT16SZ ;\n class = __ns_get16 ( cp ) ;\n cp += INT16SZ ;\n int32_t ttl = __ns_get32 ( cp ) ;\n cp += INT32SZ ;\n n = __ns_get16 ( cp ) ;\n cp += INT16SZ ;\n if ( __glibc_unlikely ( class != C_IN ) ) {\n cp += n ;\n continue ;\n }\n if ( ( qtype == T_A || qtype == T_AAAA ) && type == T_CNAME ) {\n if ( ttlp != NULL && ttl < * ttlp ) * ttlp = ttl ;\n if ( ap >= & host_data -> aliases [ MAX_NR_ALIASES - 1 ] ) continue ;\n n = dn_expand ( answer -> buf , end_of_message , cp , tbuf , sizeof tbuf ) ;\n if ( __glibc_unlikely ( n < 0 || ( * name_ok ) ( tbuf ) == 0 ) ) {\n ++ had_error ;\n continue ;\n }\n cp += n ;\n * ap ++ = bp ;\n n = strlen ( bp ) + 1 ;\n if ( __builtin_expect ( n , 0 ) >= MAXHOSTNAMELEN ) {\n ++ had_error ;\n continue ;\n }\n bp += n ;\n linebuflen -= n ;\n n = strlen ( tbuf ) + 1 ;\n if ( __glibc_unlikely ( n > linebuflen ) ) goto too_small ;\n if ( __builtin_expect ( n , 0 ) >= MAXHOSTNAMELEN ) {\n ++ had_error ;\n continue ;\n }\n result -> h_name = bp ;\n bp = __mempcpy ( bp , tbuf , n ) ;\n linebuflen -= n ;\n continue ;\n }\n if ( qtype == T_PTR && type == T_CNAME ) {\n n = dn_expand ( answer -> buf , end_of_message , cp , tbuf , sizeof tbuf ) ;\n if ( __glibc_unlikely ( n < 0 || res_dnok ( tbuf ) == 0 ) ) {\n ++ had_error ;\n continue ;\n }\n cp += n ;\n n = strlen ( tbuf ) + 1 ;\n if ( __glibc_unlikely ( n > linebuflen ) ) goto too_small ;\n if ( __builtin_expect ( n , 0 ) >= MAXHOSTNAMELEN ) {\n ++ had_error ;\n continue ;\n }\n tname = bp ;\n bp = __mempcpy ( bp , tbuf , n ) ;\n linebuflen -= n ;\n continue ;\n }\n if ( type == T_A && qtype == T_AAAA && map ) have_to_map = 1 ;\n else if ( __glibc_unlikely ( type != qtype ) ) {\n if ( ( _res . options & RES_USE_DNSSEC ) == 0 ) syslog ( LOG_NOTICE | LOG_AUTH , \"gethostby*.getanswer: asked for \\\"%s %s %s\\\", \" \"got type \\\"%s\\\"\" , qname , p_class ( C_IN ) , p_type ( qtype ) , p_type ( type ) ) ;\n cp += n ;\n continue ;\n }\n switch ( type ) {\n case T_PTR : if ( __glibc_unlikely ( strcasecmp ( tname , bp ) != 0 ) ) {\n syslog ( LOG_NOTICE | LOG_AUTH , AskedForGot , qname , bp ) ;\n cp += n ;\n continue ;\n }\n n = __ns_name_unpack ( answer -> buf , end_of_message , cp , packtmp , sizeof packtmp ) ;\n if ( n != - 1 && __ns_name_ntop ( packtmp , bp , linebuflen ) == - 1 ) {\n if ( __builtin_expect ( errno , 0 ) == EMSGSIZE ) goto too_small ;\n n = - 1 ;\n }\n if ( __glibc_unlikely ( n < 0 || res_hnok ( bp ) == 0 ) ) {\n ++ had_error ;\n break ;\n }\n result -> h_name = bp ;\n if ( have_to_map ) {\n n = strlen ( bp ) + 1 ;\n if ( __glibc_unlikely ( n >= MAXHOSTNAMELEN ) ) {\n ++ had_error ;\n break ;\n }\n bp += n ;\n linebuflen -= n ;\n if ( map_v4v6_hostent ( result , & bp , & linebuflen ) ) goto too_small ;\n }\n * h_errnop = NETDB_SUCCESS ;\n return NSS_STATUS_SUCCESS ;\n case T_A : case T_AAAA : if ( __builtin_expect ( strcasecmp ( result -> h_name , bp ) , 0 ) != 0 ) {\n syslog ( LOG_NOTICE | LOG_AUTH , AskedForGot , result -> h_name , bp ) ;\n cp += n ;\n continue ;\n }\n if ( n != result -> h_length ) {\n cp += n ;\n continue ;\n }\n if ( ! haveanswer ) {\n int nn ;\n if ( ttlp != NULL && ttl < * ttlp ) * ttlp = ttl ;\n if ( canonp != NULL ) * canonp = bp ;\n result -> h_name = bp ;\n nn = strlen ( bp ) + 1 ;\n bp += nn ;\n linebuflen -= nn ;\n }\n linebuflen -= sizeof ( align ) - ( ( u_long ) bp % sizeof ( align ) ) ;\n bp += sizeof ( align ) - ( ( u_long ) bp % sizeof ( align ) ) ;\n if ( __glibc_unlikely ( n > linebuflen ) ) goto too_small ;\n bp = __mempcpy ( * hap ++ = bp , cp , n ) ;\n cp += n ;\n linebuflen -= n ;\n break ;\n default : abort ( ) ;\n }\n if ( had_error == 0 ) ++ haveanswer ;\n }\n if ( haveanswer > 0 ) {\n * ap = NULL ;\n * hap = NULL ;\n # if defined RESOLVSORT if ( _res . nsort && haveanswer > 1 && qtype == T_A ) addrsort ( host_data -> h_addr_ptrs , haveanswer ) ;\n # endif if ( result -> h_name == NULL ) {\n n = strlen ( qname ) + 1 ;\n if ( n > linebuflen ) goto too_small ;\n if ( n >= MAXHOSTNAMELEN ) goto no_recovery ;\n result -> h_name = bp ;\n bp = __mempcpy ( bp , qname , n ) ;\n linebuflen -= n ;\n }\n if ( have_to_map ) if ( map_v4v6_hostent ( result , & bp , & linebuflen ) ) goto too_small ;\n * h_errnop = NETDB_SUCCESS ;\n return NSS_STATUS_SUCCESS ;\n }\n no_recovery : * h_errnop = NO_RECOVERY ;\n * errnop = ENOENT ;\n return ( ( qtype == T_A || qtype == T_AAAA ) && ap != host_data -> aliases ? NSS_STATUS_NOTFOUND : NSS_STATUS_TRYAGAIN ) ;\n }"}
{"idx": 9081, "target": 0, "func": "static int64_t ogg_read_timestamp ( AVFormatContext * s , int stream_index , int64_t * pos_arg , int64_t pos_limit ) {\n struct ogg * ogg = s -> priv_data ;\n AVIOContext * bc = s -> pb ;\n int64_t pts = AV_NOPTS_VALUE ;\n int64_t keypos = - 1 ;\n int i ;\n int pstart , psize ;\n avio_seek ( bc , * pos_arg , SEEK_SET ) ;\n ogg_reset ( s ) ;\n while ( avio_tell ( bc ) <= pos_limit && ! ogg_packet ( s , & i , & pstart , & psize , pos_arg ) ) {\n if ( i == stream_index ) {\n struct ogg_stream * os = ogg -> streams + stream_index ;\n if ( ( os -> flags & OGG_FLAG_EOS ) && ! ( os -> flags & OGG_FLAG_BOS ) && os -> codec == & ff_ogm_video_codec ) continue ;\n pts = ogg_calc_pts ( s , i , NULL ) ;\n ogg_validate_keyframe ( s , i , pstart , psize ) ;\n if ( os -> pflags & AV_PKT_FLAG_KEY ) {\n keypos = * pos_arg ;\n }\n else if ( os -> keyframe_seek ) {\n if ( keypos >= 0 ) * pos_arg = keypos ;\n else pts = AV_NOPTS_VALUE ;\n }\n }\n if ( pts != AV_NOPTS_VALUE ) break ;\n }\n ogg_reset ( s ) ;\n return pts ;\n }"}
{"idx": 9082, "target": 0, "func": "int qemuMonitorTextSendKey ( qemuMonitorPtr mon , unsigned int holdtime , unsigned int * keycodes , unsigned int nkeycodes ) {\n int i ;\n virBuffer buf = VIR_BUFFER_INITIALIZER ;\n char * cmd , * reply = NULL ;\n int ret = - 1 ;\n if ( nkeycodes > VIR_DOMAIN_SEND_KEY_MAX_KEYS || nkeycodes == 0 ) return - 1 ;\n virBufferAddLit ( & buf , \"sendkey \" ) ;\n for ( i = 0 ;\n i < nkeycodes ;\n i ++ ) {\n if ( keycodes [ i ] > 0xffff ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"keycode %d is invalid: 0x%X\" ) , i , keycodes [ i ] ) ;\n virBufferFreeAndReset ( & buf ) ;\n return - 1 ;\n }\n if ( i ) virBufferAddChar ( & buf , '-' ) ;\n virBufferAsprintf ( & buf , \"0x%02X\" , keycodes [ i ] ) ;\n }\n if ( holdtime ) virBufferAsprintf ( & buf , \" %u\" , holdtime ) ;\n if ( virBufferError ( & buf ) ) {\n virReportOOMError ( ) ;\n return - 1 ;\n }\n cmd = virBufferContentAndReset ( & buf ) ;\n if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"failed to send key using command '%s'\" ) , cmd ) ;\n goto cleanup ;\n }\n if ( STRNEQ ( reply , \"\" ) ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"failed to send key '%s'\" ) , reply ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( cmd ) ;\n VIR_FREE ( reply ) ;\n return ret ;\n }"}
{"idx": 9083, "target": 0, "func": "static void selinux_cred_free ( struct cred * cred ) {\n struct task_security_struct * tsec = cred -> security ;\n BUG_ON ( cred -> security && ( unsigned long ) cred -> security < PAGE_SIZE ) ;\n cred -> security = ( void * ) 0x7UL ;\n kfree ( tsec ) ;\n }"}
{"idx": 9084, "target": 0, "func": "static const char * hfinfo_number_value_format_display64 ( const header_field_info * hfinfo , int display , char buf [ 48 ] , guint64 value ) {\n char * ptr = & buf [ 47 ] ;\n gboolean isint = IS_FT_INT ( hfinfo -> type ) ;\n * ptr = '\\0' ;\n switch ( display ) {\n case BASE_DEC : return isint ? int64_to_str_back ( ptr , ( gint64 ) value ) : uint64_to_str_back ( ptr , value ) ;\n case BASE_DEC_HEX : * ( -- ptr ) = ')' ;\n ptr = hex64_to_str_back ( ptr , hfinfo_hex_digits ( hfinfo ) , value ) ;\n * ( -- ptr ) = '(' ;\n * ( -- ptr ) = ' ' ;\n ptr = isint ? int64_to_str_back ( ptr , ( gint64 ) value ) : uint64_to_str_back ( ptr , value ) ;\n return ptr ;\n case BASE_OCT : return oct64_to_str_back ( ptr , value ) ;\n case BASE_HEX : return hex64_to_str_back ( ptr , hfinfo_hex_digits ( hfinfo ) , value ) ;\n case BASE_HEX_DEC : * ( -- ptr ) = ')' ;\n ptr = isint ? int64_to_str_back ( ptr , ( gint64 ) value ) : uint64_to_str_back ( ptr , value ) ;\n * ( -- ptr ) = '(' ;\n * ( -- ptr ) = ' ' ;\n ptr = hex64_to_str_back ( ptr , hfinfo_hex_digits ( hfinfo ) , value ) ;\n return ptr ;\n default : g_assert_not_reached ( ) ;\n }\n return ptr ;\n }"}
{"idx": 9085, "target": 0, "func": "static void tcg_handle_interrupt ( CPUState * cpu , int mask ) {\n CPUArchState * env = cpu -> env_ptr ;\n int old_mask ;\n old_mask = cpu -> interrupt_request ;\n cpu -> interrupt_request |= mask ;\n if ( ! qemu_cpu_is_self ( cpu ) ) {\n qemu_cpu_kick ( cpu ) ;\n return ;\n }\n if ( use_icount ) {\n env -> icount_decr . u16 . high = 0xffff ;\n if ( ! can_do_io ( env ) && ( mask & ~ old_mask ) != 0 ) {\n cpu_abort ( env , \"Raised interrupt while not in I/O function\" ) ;\n }\n }\n else {\n cpu -> tcg_exit_req = 1 ;\n }\n }"}
{"idx": 9086, "target": 0, "func": "static int evdns_request_transmit ( struct request * req ) {\n int retcode = 0 , r ;\n req -> transmit_me = 1 ;\n if ( req -> trans_id == 0xffff ) abort ( ) ;\n if ( req -> ns -> choked ) {\n return 1 ;\n }\n r = evdns_request_transmit_to ( req , req -> ns ) ;\n switch ( r ) {\n case 1 : req -> ns -> choked = 1 ;\n nameserver_write_waiting ( req -> ns , 1 ) ;\n return 1 ;\n case 2 : retcode = 1 ;\n default : log ( EVDNS_LOG_DEBUG , \"Setting timeout for request %lx\" , ( unsigned long ) req ) ;\n if ( evtimer_add ( & req -> timeout_event , & global_timeout ) < 0 ) {\n log ( EVDNS_LOG_WARN , \"Error from libevent when adding timer for request %lx\" , ( unsigned long ) req ) ;\n }\n req -> tx_count ++ ;\n req -> transmit_me = 0 ;\n return retcode ;\n }\n }"}
{"idx": 9087, "target": 0, "func": "static void dissect_zcl_scenes_view_remove_store_recall_scene ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_scenes_group_id , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_scenes_scene_id , tvb , * offset , 1 , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n }"}
{"idx": 9088, "target": 0, "func": "static void finish_info_provider ( NautilusDirectory * directory , NautilusFile * file , NautilusInfoProvider * provider ) {\n file -> details -> pending_info_providers = g_list_remove ( file -> details -> pending_info_providers , provider ) ;\n g_object_unref ( provider ) ;\n nautilus_directory_async_state_changed ( directory ) ;\n if ( file -> details -> pending_info_providers == NULL ) {\n nautilus_file_info_providers_done ( file ) ;\n }\n }"}
{"idx": 9089, "target": 0, "func": "static int dissect_h225_OCTET_STRING_SIZE_1_4 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 1 , 4 , FALSE , NULL ) ;\n return offset ;\n }"}
{"idx": 9090, "target": 0, "func": "void jpc_pchg_destroy ( jpc_pchg_t * pchg ) {\n jas_free ( pchg ) ;\n }"}
{"idx": 9091, "target": 0, "func": "static void destroy_attr_val_fifo ( attr_val_fifo * av_fifo ) {\n attr_val * av ;\n if ( av_fifo != NULL ) {\n do {\n UNLINK_FIFO ( av , * av_fifo , link ) ;\n if ( av != NULL ) {\n if ( T_String == av -> type ) free ( av -> value . s ) ;\n free ( av ) ;\n }\n }\n while ( av != NULL ) ;\n free ( av_fifo ) ;\n }\n }"}
{"idx": 9092, "target": 0, "func": "static int ivi_process_empty_tile ( AVCodecContext * avctx , IVIBandDesc * band , IVITile * tile , int32_t mv_scale ) {\n int x , y , need_mc , mbn , blk , num_blocks , mv_x , mv_y , mc_type ;\n int offs , mb_offset , row_offset ;\n IVIMbInfo * mb , * ref_mb ;\n const int16_t * src ;\n int16_t * dst ;\n void ( * mc_no_delta_func ) ( int16_t * buf , const int16_t * ref_buf , uint32_t pitch , int mc_type ) ;\n if ( tile -> num_MBs != IVI_MBs_PER_TILE ( tile -> width , tile -> height , band -> mb_size ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Allocated tile size %d mismatches \" \"parameters %d in ivi_process_empty_tile()\\n\" , tile -> num_MBs , IVI_MBs_PER_TILE ( tile -> width , tile -> height , band -> mb_size ) ) ;\n return AVERROR_INVALIDDATA ;\n }\n offs = tile -> ypos * band -> pitch + tile -> xpos ;\n mb = tile -> mbs ;\n ref_mb = tile -> ref_mbs ;\n row_offset = band -> mb_size * band -> pitch ;\n need_mc = 0 ;\n for ( y = tile -> ypos ;\n y < ( tile -> ypos + tile -> height ) ;\n y += band -> mb_size ) {\n mb_offset = offs ;\n for ( x = tile -> xpos ;\n x < ( tile -> xpos + tile -> width ) ;\n x += band -> mb_size ) {\n mb -> xpos = x ;\n mb -> ypos = y ;\n mb -> buf_offs = mb_offset ;\n mb -> type = 1 ;\n mb -> cbp = 0 ;\n if ( ! band -> qdelta_present && ! band -> plane && ! band -> band_num ) {\n mb -> q_delta = band -> glob_quant ;\n mb -> mv_x = 0 ;\n mb -> mv_y = 0 ;\n }\n if ( band -> inherit_qdelta && ref_mb ) mb -> q_delta = ref_mb -> q_delta ;\n if ( band -> inherit_mv ) {\n if ( mv_scale ) {\n mb -> mv_x = ivi_scale_mv ( ref_mb -> mv_x , mv_scale ) ;\n mb -> mv_y = ivi_scale_mv ( ref_mb -> mv_y , mv_scale ) ;\n }\n else {\n mb -> mv_x = ref_mb -> mv_x ;\n mb -> mv_y = ref_mb -> mv_y ;\n }\n need_mc |= mb -> mv_x || mb -> mv_y ;\n }\n mb ++ ;\n if ( ref_mb ) ref_mb ++ ;\n mb_offset += band -> mb_size ;\n }\n offs += row_offset ;\n }\n if ( band -> inherit_mv && need_mc ) {\n num_blocks = ( band -> mb_size != band -> blk_size ) ? 4 : 1 ;\n mc_no_delta_func = ( band -> blk_size == 8 ) ? ff_ivi_mc_8x8_no_delta : ff_ivi_mc_4x4_no_delta ;\n for ( mbn = 0 , mb = tile -> mbs ;\n mbn < tile -> num_MBs ;\n mb ++ , mbn ++ ) {\n mv_x = mb -> mv_x ;\n mv_y = mb -> mv_y ;\n if ( ! band -> is_halfpel ) {\n mc_type = 0 ;\n }\n else {\n mc_type = ( ( mv_y & 1 ) << 1 ) | ( mv_x & 1 ) ;\n mv_x >>= 1 ;\n mv_y >>= 1 ;\n }\n for ( blk = 0 ;\n blk < num_blocks ;\n blk ++ ) {\n offs = mb -> buf_offs + band -> blk_size * ( ( blk & 1 ) + ! ! ( blk & 2 ) * band -> pitch ) ;\n mc_no_delta_func ( band -> buf + offs , band -> ref_buf + offs + mv_y * band -> pitch + mv_x , band -> pitch , mc_type ) ;\n }\n }\n }\n else {\n src = band -> ref_buf + tile -> ypos * band -> pitch + tile -> xpos ;\n dst = band -> buf + tile -> ypos * band -> pitch + tile -> xpos ;\n for ( y = 0 ;\n y < tile -> height ;\n y ++ ) {\n memcpy ( dst , src , tile -> width * sizeof ( band -> buf [ 0 ] ) ) ;\n src += band -> pitch ;\n dst += band -> pitch ;\n }\n }\n return 0 ;\n }"}
{"idx": 9093, "target": 0, "func": "void vp9_reset_segment_features ( struct segmentation * seg ) {\n seg -> enabled = 0 ;\n seg -> update_map = 0 ;\n seg -> update_data = 0 ;\n vpx_memset ( seg -> tree_probs , 255 , sizeof ( seg -> tree_probs ) ) ;\n vp9_clearall_segfeatures ( seg ) ;\n }"}
{"idx": 9094, "target": 0, "func": "static int dissect_h245_T_tableEntryCapacityExceeded ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_tableEntryCapacityExceeded , T_tableEntryCapacityExceeded_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 9095, "target": 0, "func": "static inline unsigned int next_commit_index ( unsigned int idx ) {\n static const unsigned int MIN_COMMITS = 100 ;\n static const unsigned int MAX_COMMITS = 5000 ;\n static const unsigned int MUST_REGION = 100 ;\n static const unsigned int MIN_REGION = 20000 ;\n unsigned int offset , next ;\n if ( idx <= MUST_REGION ) return 0 ;\n if ( idx <= MIN_REGION ) {\n offset = idx - MUST_REGION ;\n return ( offset < MIN_COMMITS ) ? offset : MIN_COMMITS ;\n }\n offset = idx - MIN_REGION ;\n next = ( offset < MAX_COMMITS ) ? offset : MAX_COMMITS ;\n return ( next > MIN_COMMITS ) ? next : MIN_COMMITS ;\n }"}
{"idx": 9096, "target": 0, "func": "static int create_map ( vorbis_context * vc , unsigned floor_number ) {\n vorbis_floor * floors = vc -> floors ;\n vorbis_floor0 * vf ;\n int idx ;\n int blockflag , n ;\n int32_t * map ;\n for ( blockflag = 0 ;\n blockflag < 2 ;\n ++ blockflag ) {\n n = vc -> blocksize [ blockflag ] / 2 ;\n floors [ floor_number ] . data . t0 . map [ blockflag ] = av_malloc ( ( n + 1 ) * sizeof ( int32_t ) ) ;\n if ( ! floors [ floor_number ] . data . t0 . map [ blockflag ] ) return AVERROR ( ENOMEM ) ;\n map = floors [ floor_number ] . data . t0 . map [ blockflag ] ;\n vf = & floors [ floor_number ] . data . t0 ;\n for ( idx = 0 ;\n idx < n ;\n ++ idx ) {\n map [ idx ] = floor ( BARK ( ( vf -> rate * idx ) / ( 2.0f * n ) ) * ( vf -> bark_map_size / BARK ( vf -> rate / 2.0f ) ) ) ;\n if ( vf -> bark_map_size - 1 < map [ idx ] ) map [ idx ] = vf -> bark_map_size - 1 ;\n }\n map [ n ] = - 1 ;\n vf -> map_size [ blockflag ] = n ;\n }\n for ( idx = 0 ;\n idx <= n ;\n ++ idx ) {\n av_dlog ( NULL , \"floor0 map: map at pos %d is %d\\n\" , idx , map [ idx ] ) ;\n }\n return 0 ;\n }"}
{"idx": 9097, "target": 0, "func": "static void update_sharpness ( loop_filter_info_n * lfi , int sharpness_lvl ) {\n int lvl ;\n for ( lvl = 0 ;\n lvl <= MAX_LOOP_FILTER ;\n lvl ++ ) {\n int block_inside_limit = lvl >> ( ( sharpness_lvl > 0 ) + ( sharpness_lvl > 4 ) ) ;\n if ( sharpness_lvl > 0 ) {\n if ( block_inside_limit > ( 9 - sharpness_lvl ) ) block_inside_limit = ( 9 - sharpness_lvl ) ;\n }\n if ( block_inside_limit < 1 ) block_inside_limit = 1 ;\n vpx_memset ( lfi -> lfthr [ lvl ] . lim , block_inside_limit , SIMD_WIDTH ) ;\n vpx_memset ( lfi -> lfthr [ lvl ] . mblim , ( 2 * ( lvl + 2 ) + block_inside_limit ) , SIMD_WIDTH ) ;\n }\n }"}
{"idx": 9098, "target": 0, "func": "static void nameserver_prod_callback ( int fd , short events , void * arg ) {\n struct nameserver * const ns = ( struct nameserver * ) arg ;\n ( void ) fd ;\n ( void ) events ;\n nameserver_send_probe ( ns ) ;\n }"}
{"idx": 9099, "target": 0, "func": "inline static bool does_method_effect_cache ( int method ) {\n return ( ( method == HTTP_WKSIDX_GET || method == HTTP_WKSIDX_DELETE || method == HTTP_WKSIDX_PURGE || method == HTTP_WKSIDX_PUT || method == HTTP_WKSIDX_POST ) ) ;\n }"}
{"idx": 9100, "target": 0, "func": "void * mpi_get_opaque ( MPI a , unsigned int * len ) {\n if ( ! ( a -> flags & 4 ) ) log_bug ( \"mpi_get_opaque on normal mpi\\n\" ) ;\n if ( len ) * len = a -> nbits ;\n return a -> d ;\n }"}
{"idx": 9101, "target": 0, "func": "static uint8 * StringToBytes ( struct psstack * stackel , int * len ) {\n char * pt ;\n uint8 * upt , * base , * ret ;\n int half , sofar , val , nesting ;\n int i , j ;\n pt = stackel -> u . str ;\n if ( stackel -> type == ps_instr ) {\n while ( isspace ( * pt ) ) ++ pt ;\n if ( * pt == '{\n' || * pt == '[' ) ++ pt ;\n while ( isspace ( * pt ) ) ++ pt ;\n }\n else if ( stackel -> type != ps_string ) return ( NULL ) ;\n upt = base = malloc ( 65536 + 1 ) ;\n if ( * pt == '(' ) {\n ++ pt ;\n nesting = 0 ;\n while ( * pt != '\\0' && ( nesting != 0 || * pt != ')' ) ) {\n if ( * pt == '(' ) {\n ++ nesting ;\n * upt ++ = * pt ++ ;\n }\n else if ( * pt == ')' ) {\n -- nesting ;\n * upt ++ = * pt ++ ;\n }\n else if ( * pt == '\\r' || * pt == '\\n' ) {\n if ( * pt == '\\r' && pt [ 1 ] == '\\n' ) ++ pt ;\n * upt ++ = '\\n' ;\n ++ pt ;\n }\n else if ( * pt != '\\\\' ) {\n * upt ++ = * pt ++ ;\n }\n else {\n ++ pt ;\n if ( * pt == '\\r' || * pt == '\\n' ) {\n if ( * pt == '\\r' && pt [ 1 ] == '\\n' ) ++ pt ;\n ++ pt ;\n }\n else if ( * pt == 'n' ) {\n * upt ++ = '\\n' ;\n ++ pt ;\n }\n else if ( * pt == 'r' ) {\n * upt ++ = '\\r' ;\n ++ pt ;\n }\n else if ( * pt == 't' ) {\n * upt ++ = '\\t' ;\n ++ pt ;\n }\n else if ( * pt == 'b' ) {\n * upt ++ = '\\b' ;\n ++ pt ;\n }\n else if ( * pt == 'f' ) {\n * upt ++ = '\\f' ;\n ++ pt ;\n }\n else if ( * pt >= '0' && * pt <= '7' ) {\n if ( pt [ 1 ] < '0' || pt [ 1 ] > '7' ) * upt ++ = * pt ++ - '0' ;\n else if ( pt [ 2 ] < '0' || pt [ 2 ] > '7' ) {\n * upt ++ = ( ( * pt - '0' ) << 3 ) + ( pt [ 1 ] - '0' ) ;\n pt += 2 ;\n }\n else {\n * upt ++ = ( ( * pt - '0' ) << 6 ) + ( ( pt [ 1 ] - '0' ) << 3 ) + ( pt [ 2 ] - '0' ) ;\n pt += 3 ;\n }\n }\n else if ( * pt == '(' || * pt == ')' || * pt == '\\\\' ) * upt ++ = * pt ++ ;\n else {\n LogError ( _ ( \"Unknown character after backslash in literal string.\\n\" ) ) ;\n * upt ++ = * pt ++ ;\n }\n }\n }\n }\n else if ( * pt != '<' ) {\n LogError ( _ ( \"Unknown string type\\n\" ) ) ;\n free ( base ) ;\n return ( NULL ) ;\n }\n else if ( pt [ 1 ] != '~' ) {\n half = sofar = 0 ;\n ++ pt ;\n while ( * pt != '>' && * pt != '\\0' ) {\n if ( * pt >= 'a' && * pt <= 'f' ) val = * pt ++ - 'a' + 10 ;\n else if ( * pt >= 'A' && * pt <= 'F' ) val = * pt ++ - 'A' + 10 ;\n else if ( isdigit ( * pt ) ) val = * pt ++ - '0' ;\n else {\n ++ pt ;\n continue ;\n }\n if ( ! half ) {\n half = true ;\n sofar = val << 4 ;\n }\n else {\n * upt ++ = sofar | val ;\n half = false ;\n }\n }\n if ( half ) * upt ++ = sofar ;\n }\n else {\n pt += 2 ;\n while ( * pt != '\\0' && * pt != '~' ) {\n if ( upt - base + 4 > 65536 ) break ;\n if ( * pt == 'z' ) {\n * upt ++ = 0 ;\n * upt ++ = 0 ;\n * upt ++ = 0 ;\n * upt ++ = 0 ;\n ++ pt ;\n }\n else if ( * pt >= '!' && * pt <= 'u' ) {\n val = 0 ;\n for ( i = 0 ;\n i < 5 && * pt >= '!' && * pt <= 'u' ;\n ++ i ) val = ( val * 85 ) + * pt ++ - '!' ;\n for ( j = i ;\n j < 5 ;\n ++ j ) val *= 85 ;\n * upt ++ = val >> 24 ;\n if ( i > 2 ) * upt ++ = ( val >> 16 ) & 0xff ;\n if ( i > 3 ) * upt ++ = ( val >> 8 ) & 0xff ;\n if ( i > 4 ) * upt ++ = val & 0xff ;\n if ( i < 5 ) break ;\n }\n else if ( isspace ( * pt ) ) {\n ++ pt ;\n }\n else break ;\n }\n }\n * len = upt - base ;\n ret = malloc ( upt - base ) ;\n memcpy ( ret , base , upt - base ) ;\n free ( base ) ;\n return ( ret ) ;\n }"}
{"idx": 9102, "target": 1, "func": "static void tb_invalidate_phys_page ( tb_page_addr_t addr , uintptr_t pc , void * puc ) {\n TranslationBlock * tb ;\n PageDesc * p ;\n int n ;\n # ifdef TARGET_HAS_PRECISE_SMC TranslationBlock * current_tb = NULL ;\n CPUArchState * env = cpu_single_env ;\n CPUState * cpu = NULL ;\n int current_tb_modified = 0 ;\n target_ulong current_pc = 0 ;\n target_ulong current_cs_base = 0 ;\n int current_flags = 0 ;\n # endif addr &= TARGET_PAGE_MASK ;\n p = page_find ( addr >> TARGET_PAGE_BITS ) ;\n if ( ! p ) {\n return ;\n }\n tb = p -> first_tb ;\n # ifdef TARGET_HAS_PRECISE_SMC if ( tb && pc != 0 ) {\n current_tb = tb_find_pc ( pc ) ;\n }\n if ( env != NULL ) {\n cpu = ENV_GET_CPU ( env ) ;\n }\n # endif while ( tb != NULL ) {\n n = ( uintptr_t ) tb & 3 ;\n tb = ( TranslationBlock * ) ( ( uintptr_t ) tb & ~ 3 ) ;\n # ifdef TARGET_HAS_PRECISE_SMC if ( current_tb == tb && ( current_tb -> cflags & CF_COUNT_MASK ) != 1 ) {\n current_tb_modified = 1 ;\n cpu_restore_state_from_tb ( current_tb , env , pc ) ;\n cpu_get_tb_cpu_state ( env , & current_pc , & current_cs_base , & current_flags ) ;\n }\n # endif tb_phys_invalidate ( tb , addr ) ;\n tb = tb -> page_next [ n ] ;\n }\n p -> first_tb = NULL ;\n # ifdef TARGET_HAS_PRECISE_SMC if ( current_tb_modified ) {\n cpu -> current_tb = NULL ;\n tb_gen_code ( env , current_pc , current_cs_base , current_flags , 1 ) ;\n cpu_resume_from_signal ( env , puc ) ;\n }\n # endif }"}
{"idx": 9103, "target": 0, "func": "TEST_F ( ExtensionServiceSyncTest , ProcessSyncDataSettings ) {\n InitializeEmptyExtensionService ( ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , syncer : : SyncDataList ( ) , base : : MakeUnique < syncer : : FakeSyncChangeProcessor > ( ) , base : : MakeUnique < syncer : : SyncErrorFactoryMock > ( ) ) ;\n InstallCRX ( data_dir ( ) . AppendASCII ( \"good.crx\" ) , INSTALL_NEW ) ;\n EXPECT_TRUE ( service ( ) -> IsExtensionEnabled ( good_crx ) ) ;\n EXPECT_FALSE ( extensions : : util : : IsIncognitoEnabled ( good_crx , profile ( ) ) ) ;\n auto get_permissions_modifier = [ this ] ( ) {\n const Extension * extension = registry ( ) -> GetExtensionById ( good_crx , extensions : : ExtensionRegistry : : EVERYTHING ) ;\n return base : : MakeUnique < ScriptingPermissionsModifier > ( profile ( ) , extension ) ;\n }\n ;\n EXPECT_FALSE ( get_permissions_modifier ( ) -> HasSetAllowedOnAllUrls ( ) ) ;\n const bool kDefaultAllowedScripting = ScriptingPermissionsModifier : : DefaultAllowedOnAllUrls ( ) ;\n EXPECT_EQ ( kDefaultAllowedScripting , get_permissions_modifier ( ) -> IsAllowedOnAllUrls ( ) ) ;\n sync_pb : : EntitySpecifics specifics ;\n sync_pb : : ExtensionSpecifics * ext_specifics = specifics . mutable_extension ( ) ;\n ext_specifics -> set_id ( good_crx ) ;\n ext_specifics -> set_version ( service ( ) -> GetInstalledExtension ( good_crx ) -> version ( ) -> GetString ( ) ) ;\n ext_specifics -> set_enabled ( false ) ;\n {\n SyncChangeList list = MakeSyncChangeList ( good_crx , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_FALSE ( service ( ) -> IsExtensionEnabled ( good_crx ) ) ;\n EXPECT_FALSE ( extensions : : util : : IsIncognitoEnabled ( good_crx , profile ( ) ) ) ;\n EXPECT_FALSE ( get_permissions_modifier ( ) -> HasSetAllowedOnAllUrls ( ) ) ;\n EXPECT_EQ ( kDefaultAllowedScripting , get_permissions_modifier ( ) -> IsAllowedOnAllUrls ( ) ) ;\n }\n {\n ext_specifics -> set_enabled ( true ) ;\n ext_specifics -> set_incognito_enabled ( true ) ;\n SyncChangeList list = MakeSyncChangeList ( good_crx , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_TRUE ( service ( ) -> IsExtensionEnabled ( good_crx ) ) ;\n EXPECT_TRUE ( extensions : : util : : IsIncognitoEnabled ( good_crx , profile ( ) ) ) ;\n }\n {\n ext_specifics -> set_enabled ( false ) ;\n ext_specifics -> set_incognito_enabled ( true ) ;\n SyncChangeList list = MakeSyncChangeList ( good_crx , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_FALSE ( service ( ) -> IsExtensionEnabled ( good_crx ) ) ;\n EXPECT_TRUE ( extensions : : util : : IsIncognitoEnabled ( good_crx , profile ( ) ) ) ;\n }\n {\n ext_specifics -> set_enabled ( true ) ;\n ext_specifics -> set_all_urls_enabled ( ! kDefaultAllowedScripting ) ;\n SyncChangeList list = MakeSyncChangeList ( good_crx , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_TRUE ( service ( ) -> IsExtensionEnabled ( good_crx ) ) ;\n EXPECT_TRUE ( get_permissions_modifier ( ) -> HasSetAllowedOnAllUrls ( ) ) ;\n EXPECT_EQ ( ! kDefaultAllowedScripting , get_permissions_modifier ( ) -> IsAllowedOnAllUrls ( ) ) ;\n }\n {\n ext_specifics -> set_all_urls_enabled ( kDefaultAllowedScripting ) ;\n SyncChangeList list = MakeSyncChangeList ( good_crx , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_TRUE ( service ( ) -> IsExtensionEnabled ( good_crx ) ) ;\n EXPECT_TRUE ( get_permissions_modifier ( ) -> HasSetAllowedOnAllUrls ( ) ) ;\n EXPECT_EQ ( kDefaultAllowedScripting , get_permissions_modifier ( ) -> IsAllowedOnAllUrls ( ) ) ;\n }\n EXPECT_FALSE ( service ( ) -> pending_extension_manager ( ) -> IsIdPending ( good_crx ) ) ;\n }"}
{"idx": 9104, "target": 0, "func": "static int dissect_h245_INTEGER_6_17 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 6U , 17U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 9105, "target": 0, "func": "static int q931_calls_packet ( void * ptr _U_ , packet_info * pinfo , epan_dissect_t * edt _U_ , const void * q931_info ) {\n GList * list , * list2 ;\n voip_calls_tapinfo_t * tapinfo = & the_tapinfo_struct ;\n h323_calls_info_t * tmp_h323info , * tmp2_h323info ;\n actrace_isdn_calls_info_t * tmp_actrace_isdn_info ;\n voip_calls_info_t * tmp_listinfo ;\n voip_calls_info_t * callsinfo = NULL ;\n h245_address_t * h245_add = NULL ;\n gchar * comment ;\n const q931_packet_info * pi = ( const q931_packet_info * ) q931_info ;\n g_free ( q931_calling_number ) ;\n g_free ( q931_called_number ) ;\n if ( pi -> calling_number != NULL ) q931_calling_number = g_strdup ( pi -> calling_number ) ;\n else q931_calling_number = g_strdup ( \"\" ) ;\n if ( pi -> called_number != NULL ) q931_called_number = g_strdup ( pi -> called_number ) ;\n else q931_called_number = g_strdup ( \"\" ) ;\n q931_cause_value = pi -> cause_value ;\n q931_frame_num = pinfo -> fd -> num ;\n q931_crv = pi -> crv ;\n if ( h225_frame_num == q931_frame_num ) {\n tmp_h323info = NULL ;\n list = g_list_first ( tapinfo -> callsinfo_list ) ;\n while ( list ) {\n tmp_listinfo = ( voip_calls_info_t * ) list -> data ;\n if ( ( tmp_listinfo -> protocol == VOIP_H323 ) && ( tmp_listinfo -> call_num == h225_call_num ) ) {\n tmp_h323info = ( h323_calls_info_t * ) tmp_listinfo -> prot_info ;\n callsinfo = ( voip_calls_info_t * ) ( list -> data ) ;\n if ( tmp_h323info -> q931_crv == - 1 ) {\n tmp_h323info -> q931_crv = q931_crv ;\n }\n else if ( tmp_h323info -> q931_crv != q931_crv ) {\n tmp_h323info -> q931_crv2 = q931_crv ;\n }\n break ;\n }\n list = g_list_next ( list ) ;\n }\n if ( callsinfo != NULL ) {\n comment = NULL ;\n if ( h225_cstype == H225_SETUP ) {\n if ( q931_calling_number != NULL ) {\n g_free ( callsinfo -> from_identity ) ;\n callsinfo -> from_identity = g_strdup ( q931_calling_number ) ;\n }\n if ( q931_called_number != NULL ) {\n g_free ( callsinfo -> to_identity ) ;\n callsinfo -> to_identity = g_strdup ( q931_called_number ) ;\n }\n list = g_list_first ( tapinfo -> callsinfo_list ) ;\n while ( list ) {\n tmp_listinfo = ( voip_calls_info_t * ) list -> data ;\n if ( tmp_listinfo -> protocol == VOIP_H323 ) {\n tmp2_h323info = ( h323_calls_info_t * ) tmp_listinfo -> prot_info ;\n if ( ( strcmp ( callsinfo -> to_identity , tmp_listinfo -> to_identity ) == 0 ) && ( memcmp ( & tmp2_h323info -> guid , & guid_allzero , GUID_LEN ) == 0 ) ) {\n callsinfo -> npackets += change_call_num_graph ( tapinfo , tmp_listinfo -> call_num , callsinfo -> call_num ) ;\n g_free ( tmp_listinfo -> from_identity ) ;\n g_free ( tmp_listinfo -> to_identity ) ;\n DUMP_PTR2 ( tmp2_h323info -> guid ) ;\n g_free ( tmp2_h323info -> guid ) ;\n list2 = g_list_first ( tmp2_h323info -> h245_list ) ;\n while ( list2 ) {\n h245_add = ( h245_address_t * ) list2 -> data ;\n g_free ( ( void * ) h245_add -> h245_address . data ) ;\n g_free ( list2 -> data ) ;\n list2 = g_list_next ( list2 ) ;\n }\n g_list_free ( tmp_h323info -> h245_list ) ;\n tmp_h323info -> h245_list = NULL ;\n g_free ( tmp_listinfo -> prot_info ) ;\n tapinfo -> callsinfo_list = g_list_remove ( tapinfo -> callsinfo_list , tmp_listinfo ) ;\n break ;\n }\n }\n list = g_list_next ( list ) ;\n }\n comment = g_strdup_printf ( \"H225 From: %s To:%s TunnH245:%s FS:%s\" , callsinfo -> from_identity , callsinfo -> to_identity , ( tmp_h323info -> is_h245Tunneling == TRUE ? \"on\" : \"off\" ) , ( h225_is_faststart == TRUE ? \"on\" : \"off\" ) ) ;\n }\n else if ( h225_cstype == H225_RELEASE_COMPLET ) {\n if ( q931_cause_value != 0xFF ) {\n comment = g_strdup_printf ( \"H225 Q931 Rel Cause (%i):%s\" , q931_cause_value , val_to_str_ext_const ( q931_cause_value , & q931_cause_code_vals_ext , \"<unknown>\" ) ) ;\n }\n else {\n comment = g_strdup ( \"H225 No Q931 Rel Cause\" ) ;\n }\n }\n if ( comment != NULL ) {\n change_frame_graph ( tapinfo , h225_frame_num , NULL , comment ) ;\n g_free ( comment ) ;\n }\n }\n h225_frame_num = 0 ;\n }\n else if ( h245_labels . frame_num == q931_frame_num ) {\n list = g_list_first ( tapinfo -> callsinfo_list ) ;\n while ( list ) {\n tmp_listinfo = ( voip_calls_info_t * ) list -> data ;\n if ( tmp_listinfo -> protocol == VOIP_H323 ) {\n tmp_h323info = ( h323_calls_info_t * ) tmp_listinfo -> prot_info ;\n if ( ( ( tmp_h323info -> q931_crv == q931_crv ) || ( tmp_h323info -> q931_crv2 == q931_crv ) ) && ( q931_crv != - 1 ) ) {\n if ( ! append_to_frame_graph ( tapinfo , q931_frame_num , NULL , NULL ) ) {\n add_to_graph ( tapinfo , pinfo , NULL , NULL , tmp_listinfo -> call_num , & ( pinfo -> src ) , & ( pinfo -> dst ) , 1 ) ;\n ++ ( tmp_listinfo -> npackets ) ;\n ++ ( tapinfo -> npackets ) ;\n }\n h245_add_to_graph ( pinfo -> fd -> num ) ;\n break ;\n }\n }\n list = g_list_next ( list ) ;\n }\n }\n else {\n address pstn_add ;\n comment = NULL ;\n callsinfo = NULL ;\n list = g_list_first ( tapinfo -> callsinfo_list ) ;\n while ( list ) {\n tmp_listinfo = ( voip_calls_info_t * ) list -> data ;\n if ( tmp_listinfo -> protocol == VOIP_AC_ISDN ) {\n tmp_actrace_isdn_info = ( actrace_isdn_calls_info_t * ) tmp_listinfo -> prot_info ;\n if ( ( tmp_actrace_isdn_info -> crv == q931_crv ) && ( tmp_actrace_isdn_info -> trunk == actrace_trunk ) ) {\n callsinfo = ( voip_calls_info_t * ) ( list -> data ) ;\n break ;\n }\n }\n list = g_list_next ( list ) ;\n }\n SET_ADDRESS ( & pstn_add , AT_STRINGZ , 5 , g_strdup ( \"PSTN\" ) ) ;\n if ( ! callsinfo ) {\n callsinfo = ( voip_calls_info_t * ) g_malloc0 ( sizeof ( voip_calls_info_t ) ) ;\n callsinfo -> call_active_state = VOIP_ACTIVE ;\n callsinfo -> call_state = VOIP_CALL_SETUP ;\n callsinfo -> from_identity = g_strdup ( q931_calling_number ) ;\n callsinfo -> to_identity = g_strdup ( q931_called_number ) ;\n COPY_ADDRESS ( & ( callsinfo -> initial_speaker ) , actrace_direction ? & pstn_add : & ( pinfo -> src ) ) ;\n callsinfo -> selected = FALSE ;\n callsinfo -> start_fd = pinfo -> fd ;\n callsinfo -> start_rel_ts = pinfo -> rel_ts ;\n callsinfo -> protocol = VOIP_AC_ISDN ;\n callsinfo -> prot_info = g_malloc ( sizeof ( actrace_isdn_calls_info_t ) ) ;\n callsinfo -> free_prot_info = g_free ;\n tmp_actrace_isdn_info = ( actrace_isdn_calls_info_t * ) callsinfo -> prot_info ;\n tmp_actrace_isdn_info -> crv = q931_crv ;\n tmp_actrace_isdn_info -> trunk = actrace_trunk ;\n callsinfo -> npackets = 0 ;\n callsinfo -> call_num = tapinfo -> ncalls ++ ;\n tapinfo -> callsinfo_list = g_list_prepend ( tapinfo -> callsinfo_list , callsinfo ) ;\n }\n callsinfo -> stop_fd = pinfo -> fd ;\n callsinfo -> stop_rel_ts = pinfo -> rel_ts ;\n ++ ( callsinfo -> npackets ) ;\n ++ ( tapinfo -> npackets ) ;\n switch ( pi -> message_type ) {\n case Q931_SETUP : comment = g_strdup_printf ( \"AC_ISDN trunk:%u Calling: %s Called:%s\" , actrace_trunk , q931_calling_number , q931_called_number ) ;\n callsinfo -> call_state = VOIP_CALL_SETUP ;\n break ;\n case Q931_CONNECT : callsinfo -> call_state = VOIP_IN_CALL ;\n break ;\n case Q931_RELEASE_COMPLETE : case Q931_RELEASE : case Q931_DISCONNECT : if ( callsinfo -> call_state == VOIP_CALL_SETUP ) {\n if ( ADDRESSES_EQUAL ( & ( callsinfo -> initial_speaker ) , actrace_direction ? & pstn_add : & ( pinfo -> src ) ) ) {\n callsinfo -> call_state = VOIP_CANCELLED ;\n }\n else {\n callsinfo -> call_state = VOIP_REJECTED ;\n tapinfo -> rejected_calls ++ ;\n }\n }\n else if ( ( callsinfo -> call_state != VOIP_CANCELLED ) && ( callsinfo -> call_state != VOIP_REJECTED ) ) {\n callsinfo -> call_state = VOIP_COMPLETED ;\n tapinfo -> completed_calls ++ ;\n }\n if ( q931_cause_value != 0xFF ) {\n comment = g_strdup_printf ( \"AC_ISDN trunk:%u Q931 Rel Cause (%i):%s\" , actrace_trunk , q931_cause_value , val_to_str_ext_const ( q931_cause_value , & q931_cause_code_vals_ext , \"<unknown>\" ) ) ;\n }\n else {\n comment = g_strdup ( \"AC_ISDN No Q931 Rel Cause\" ) ;\n }\n break ;\n }\n if ( ! comment ) comment = g_strdup_printf ( \"AC_ISDN trunk:%u\" , actrace_trunk ) ;\n add_to_graph ( tapinfo , pinfo , val_to_str ( pi -> message_type , q931_message_type_vals , \"<unknown>\" ) , comment , callsinfo -> call_num , actrace_direction ? & pstn_add : & ( pinfo -> src ) , actrace_direction ? & ( pinfo -> src ) : & pstn_add , 1 ) ;\n g_free ( comment ) ;\n g_free ( ( char * ) pstn_add . data ) ;\n }\n tapinfo -> redraw = TRUE ;\n return 1 ;\n }"}
{"idx": 9106, "target": 0, "func": "void feTimestampDifference ( int64 start_time , int64 stop_time , long * secs , int * microsecs ) {\n int64 diff = stop_time - start_time ;\n if ( diff <= 0 ) {\n * secs = 0 ;\n * microsecs = 0 ;\n }\n else {\n * secs = ( long ) ( diff / USECS_PER_SEC ) ;\n * microsecs = ( int ) ( diff % USECS_PER_SEC ) ;\n }\n }"}
{"idx": 9107, "target": 0, "func": "static void qcms_transform_module_clut_only ( struct qcms_modular_transform * transform , float * src , float * dest , size_t length ) {\n size_t i ;\n int xy_len = 1 ;\n int x_len = transform -> grid_size ;\n int len = x_len * x_len ;\n float * r_table = transform -> r_clut ;\n float * g_table = transform -> g_clut ;\n float * b_table = transform -> b_clut ;\n assert ( transform -> grid_size >= 1 ) ;\n for ( i = 0 ;\n i < length ;\n i ++ ) {\n float linear_r = * src ++ ;\n float linear_g = * src ++ ;\n float linear_b = * src ++ ;\n int x = floor ( linear_r * ( transform -> grid_size - 1 ) ) ;\n int y = floor ( linear_g * ( transform -> grid_size - 1 ) ) ;\n int z = floor ( linear_b * ( transform -> grid_size - 1 ) ) ;\n int x_n = ceil ( linear_r * ( transform -> grid_size - 1 ) ) ;\n int y_n = ceil ( linear_g * ( transform -> grid_size - 1 ) ) ;\n int z_n = ceil ( linear_b * ( transform -> grid_size - 1 ) ) ;\n float x_d = linear_r * ( transform -> grid_size - 1 ) - x ;\n float y_d = linear_g * ( transform -> grid_size - 1 ) - y ;\n float z_d = linear_b * ( transform -> grid_size - 1 ) - z ;\n float r_x1 = lerp ( CLU ( r_table , x , y , z ) , CLU ( r_table , x_n , y , z ) , x_d ) ;\n float r_x2 = lerp ( CLU ( r_table , x , y_n , z ) , CLU ( r_table , x_n , y_n , z ) , x_d ) ;\n float r_y1 = lerp ( r_x1 , r_x2 , y_d ) ;\n float r_x3 = lerp ( CLU ( r_table , x , y , z_n ) , CLU ( r_table , x_n , y , z_n ) , x_d ) ;\n float r_x4 = lerp ( CLU ( r_table , x , y_n , z_n ) , CLU ( r_table , x_n , y_n , z_n ) , x_d ) ;\n float r_y2 = lerp ( r_x3 , r_x4 , y_d ) ;\n float clut_r = lerp ( r_y1 , r_y2 , z_d ) ;\n float g_x1 = lerp ( CLU ( g_table , x , y , z ) , CLU ( g_table , x_n , y , z ) , x_d ) ;\n float g_x2 = lerp ( CLU ( g_table , x , y_n , z ) , CLU ( g_table , x_n , y_n , z ) , x_d ) ;\n float g_y1 = lerp ( g_x1 , g_x2 , y_d ) ;\n float g_x3 = lerp ( CLU ( g_table , x , y , z_n ) , CLU ( g_table , x_n , y , z_n ) , x_d ) ;\n float g_x4 = lerp ( CLU ( g_table , x , y_n , z_n ) , CLU ( g_table , x_n , y_n , z_n ) , x_d ) ;\n float g_y2 = lerp ( g_x3 , g_x4 , y_d ) ;\n float clut_g = lerp ( g_y1 , g_y2 , z_d ) ;\n float b_x1 = lerp ( CLU ( b_table , x , y , z ) , CLU ( b_table , x_n , y , z ) , x_d ) ;\n float b_x2 = lerp ( CLU ( b_table , x , y_n , z ) , CLU ( b_table , x_n , y_n , z ) , x_d ) ;\n float b_y1 = lerp ( b_x1 , b_x2 , y_d ) ;\n float b_x3 = lerp ( CLU ( b_table , x , y , z_n ) , CLU ( b_table , x_n , y , z_n ) , x_d ) ;\n float b_x4 = lerp ( CLU ( b_table , x , y_n , z_n ) , CLU ( b_table , x_n , y_n , z_n ) , x_d ) ;\n float b_y2 = lerp ( b_x3 , b_x4 , y_d ) ;\n float clut_b = lerp ( b_y1 , b_y2 , z_d ) ;\n * dest ++ = clamp_float ( clut_r ) ;\n * dest ++ = clamp_float ( clut_g ) ;\n * dest ++ = clamp_float ( clut_b ) ;\n }\n }"}
{"idx": 9108, "target": 0, "func": "static inline struct isoent * isoent_clone ( struct isoent * src ) {\n return ( isoent_new ( src -> file ) ) ;\n }"}
{"idx": 9109, "target": 0, "func": "static void find_next_key_frame ( VP9_COMP * cpi , FIRSTPASS_STATS * this_frame ) {\n int i , j ;\n RATE_CONTROL * const rc = & cpi -> rc ;\n TWO_PASS * const twopass = & cpi -> twopass ;\n GF_GROUP * const gf_group = & twopass -> gf_group ;\n const VP9EncoderConfig * const oxcf = & cpi -> oxcf ;\n const FIRSTPASS_STATS first_frame = * this_frame ;\n const FIRSTPASS_STATS * const start_position = twopass -> stats_in ;\n FIRSTPASS_STATS next_frame ;\n FIRSTPASS_STATS last_frame ;\n int kf_bits = 0 ;\n int loop_decay_counter = 0 ;\n double decay_accumulator = 1.0 ;\n double av_decay_accumulator = 0.0 ;\n double zero_motion_accumulator = 1.0 ;\n double boost_score = 0.0 ;\n double kf_mod_err = 0.0 ;\n double kf_group_err = 0.0 ;\n double recent_loop_decay [ 8 ] = {\n 1.0 , 1.0 , 1.0 , 1.0 , 1.0 , 1.0 , 1.0 , 1.0 }\n ;\n vp9_zero ( next_frame ) ;\n cpi -> common . frame_type = KEY_FRAME ;\n vp9_zero ( * gf_group ) ;\n rc -> this_key_frame_forced = rc -> next_key_frame_forced ;\n rc -> source_alt_ref_active = 0 ;\n cpi -> multi_arf_last_grp_enabled = 0 ;\n rc -> frames_till_gf_update_due = 0 ;\n rc -> frames_to_key = 1 ;\n twopass -> kf_group_bits = 0 ;\n twopass -> kf_group_error_left = 0 ;\n kf_mod_err = calculate_modified_err ( twopass , oxcf , this_frame ) ;\n i = 0 ;\n while ( twopass -> stats_in < twopass -> stats_in_end && rc -> frames_to_key < cpi -> oxcf . key_freq ) {\n kf_group_err += calculate_modified_err ( twopass , oxcf , this_frame ) ;\n last_frame = * this_frame ;\n input_stats ( twopass , this_frame ) ;\n if ( cpi -> oxcf . auto_key && twopass -> stats_in < twopass -> stats_in_end ) {\n double loop_decay_rate ;\n if ( test_candidate_kf ( twopass , & last_frame , this_frame , twopass -> stats_in ) ) break ;\n loop_decay_rate = get_prediction_decay_rate ( & cpi -> common , twopass -> stats_in ) ;\n recent_loop_decay [ i % 8 ] = loop_decay_rate ;\n decay_accumulator = 1.0 ;\n for ( j = 0 ;\n j < 8 ;\n ++ j ) decay_accumulator *= recent_loop_decay [ j ] ;\n if ( detect_transition_to_still ( twopass , i , cpi -> oxcf . key_freq - i , loop_decay_rate , decay_accumulator ) ) break ;\n ++ rc -> frames_to_key ;\n if ( rc -> frames_to_key >= 2 * cpi -> oxcf . key_freq ) break ;\n }\n else {\n ++ rc -> frames_to_key ;\n }\n ++ i ;\n }\n if ( cpi -> oxcf . auto_key && rc -> frames_to_key > cpi -> oxcf . key_freq ) {\n FIRSTPASS_STATS tmp_frame = first_frame ;\n rc -> frames_to_key /= 2 ;\n reset_fpf_position ( twopass , start_position ) ;\n kf_group_err = 0 ;\n for ( i = 0 ;\n i < rc -> frames_to_key ;\n ++ i ) {\n kf_group_err += calculate_modified_err ( twopass , oxcf , & tmp_frame ) ;\n input_stats ( twopass , & tmp_frame ) ;\n }\n rc -> next_key_frame_forced = 1 ;\n }\n else if ( twopass -> stats_in == twopass -> stats_in_end || rc -> frames_to_key >= cpi -> oxcf . key_freq ) {\n rc -> next_key_frame_forced = 1 ;\n }\n else {\n rc -> next_key_frame_forced = 0 ;\n }\n if ( is_two_pass_svc ( cpi ) && cpi -> svc . number_temporal_layers > 1 ) {\n int count = ( 1 << ( cpi -> svc . number_temporal_layers - 1 ) ) - 1 ;\n int new_frame_to_key = ( rc -> frames_to_key + count ) & ( ~ count ) ;\n int j ;\n for ( j = 0 ;\n j < new_frame_to_key - rc -> frames_to_key ;\n ++ j ) {\n if ( EOF == input_stats ( twopass , this_frame ) ) break ;\n kf_group_err += calculate_modified_err ( twopass , oxcf , this_frame ) ;\n }\n rc -> frames_to_key = new_frame_to_key ;\n }\n if ( twopass -> stats_in >= twopass -> stats_in_end ) {\n kf_group_err += calculate_modified_err ( twopass , oxcf , this_frame ) ;\n }\n if ( twopass -> bits_left > 0 && twopass -> modified_error_left > 0.0 ) {\n const int max_bits = frame_max_bits ( rc , & cpi -> oxcf ) ;\n int64_t max_grp_bits ;\n twopass -> kf_group_bits = ( int64_t ) ( twopass -> bits_left * ( kf_group_err / twopass -> modified_error_left ) ) ;\n max_grp_bits = ( int64_t ) max_bits * ( int64_t ) rc -> frames_to_key ;\n if ( twopass -> kf_group_bits > max_grp_bits ) twopass -> kf_group_bits = max_grp_bits ;\n }\n else {\n twopass -> kf_group_bits = 0 ;\n }\n twopass -> kf_group_bits = MAX ( 0 , twopass -> kf_group_bits ) ;\n reset_fpf_position ( twopass , start_position ) ;\n decay_accumulator = 1.0 ;\n boost_score = 0.0 ;\n for ( i = 0 ;\n i < ( rc -> frames_to_key - 1 ) ;\n ++ i ) {\n if ( EOF == input_stats ( twopass , & next_frame ) ) break ;\n zero_motion_accumulator = MIN ( zero_motion_accumulator , get_zero_motion_factor ( & cpi -> common , & next_frame ) ) ;\n if ( ( i <= rc -> max_gf_interval ) || ( ( i <= ( rc -> max_gf_interval * 4 ) ) && ( decay_accumulator > 0.5 ) ) ) {\n const double frame_boost = calc_frame_boost ( cpi , this_frame , 0 , KF_MAX_BOOST ) ;\n if ( ! detect_flash ( twopass , 0 ) ) {\n const double loop_decay_rate = get_prediction_decay_rate ( & cpi -> common , & next_frame ) ;\n decay_accumulator *= loop_decay_rate ;\n decay_accumulator = MAX ( decay_accumulator , MIN_DECAY_FACTOR ) ;\n av_decay_accumulator += decay_accumulator ;\n ++ loop_decay_counter ;\n }\n boost_score += ( decay_accumulator * frame_boost ) ;\n }\n }\n av_decay_accumulator /= ( double ) loop_decay_counter ;\n reset_fpf_position ( twopass , start_position ) ;\n twopass -> kf_zeromotion_pct = ( int ) ( zero_motion_accumulator * 100.0 ) ;\n twopass -> section_intra_rating = calculate_section_intra_ratio ( start_position , twopass -> stats_in_end , rc -> frames_to_key ) ;\n rc -> kf_boost = ( int ) ( av_decay_accumulator * boost_score ) ;\n rc -> kf_boost = MAX ( rc -> kf_boost , ( rc -> frames_to_key * 3 ) ) ;\n rc -> kf_boost = MAX ( rc -> kf_boost , MIN_KF_BOOST ) ;\n kf_bits = calculate_boost_bits ( ( rc -> frames_to_key - 1 ) , rc -> kf_boost , twopass -> kf_group_bits ) ;\n twopass -> kf_group_bits -= kf_bits ;\n gf_group -> bit_allocation [ 0 ] = kf_bits ;\n gf_group -> update_type [ 0 ] = KF_UPDATE ;\n gf_group -> rf_level [ 0 ] = KF_STD ;\n twopass -> kf_group_error_left = ( int ) ( kf_group_err - kf_mod_err ) ;\n twopass -> modified_error_left -= kf_group_err ;\n }"}
{"idx": 9110, "target": 0, "func": "void exsltMathRegister ( void ) {\n xsltRegisterExtModuleFunction ( ( const xmlChar * ) \"min\" , EXSLT_MATH_NAMESPACE , exsltMathMinFunction ) ;\n xsltRegisterExtModuleFunction ( ( const xmlChar * ) \"max\" , EXSLT_MATH_NAMESPACE , exsltMathMaxFunction ) ;\n xsltRegisterExtModuleFunction ( ( const xmlChar * ) \"highest\" , EXSLT_MATH_NAMESPACE , exsltMathHighestFunction ) ;\n xsltRegisterExtModuleFunction ( ( const xmlChar * ) \"lowest\" , EXSLT_MATH_NAMESPACE , exsltMathLowestFunction ) ;\n xsltRegisterExtModuleFunction ( ( const xmlChar * ) \"constant\" , EXSLT_MATH_NAMESPACE , exsltMathConstantFunction ) ;\n # ifdef HAVE_STDLIB_H xsltRegisterExtModuleFunction ( ( const xmlChar * ) \"random\" , EXSLT_MATH_NAMESPACE , exsltMathRandomFunction ) ;\n # endif # if HAVE_MATH_H xsltRegisterExtModuleFunction ( ( const xmlChar * ) \"abs\" , EXSLT_MATH_NAMESPACE , exsltMathAbsFunction ) ;\n xsltRegisterExtModuleFunction ( ( const xmlChar * ) \"sqrt\" , EXSLT_MATH_NAMESPACE , exsltMathSqrtFunction ) ;\n xsltRegisterExtModuleFunction ( ( const xmlChar * ) \"power\" , EXSLT_MATH_NAMESPACE , exsltMathPowerFunction ) ;\n xsltRegisterExtModuleFunction ( ( const xmlChar * ) \"log\" , EXSLT_MATH_NAMESPACE , exsltMathLogFunction ) ;\n xsltRegisterExtModuleFunction ( ( const xmlChar * ) \"sin\" , EXSLT_MATH_NAMESPACE , exsltMathSinFunction ) ;\n xsltRegisterExtModuleFunction ( ( const xmlChar * ) \"cos\" , EXSLT_MATH_NAMESPACE , exsltMathCosFunction ) ;\n xsltRegisterExtModuleFunction ( ( const xmlChar * ) \"tan\" , EXSLT_MATH_NAMESPACE , exsltMathTanFunction ) ;\n xsltRegisterExtModuleFunction ( ( const xmlChar * ) \"asin\" , EXSLT_MATH_NAMESPACE , exsltMathAsinFunction ) ;\n xsltRegisterExtModuleFunction ( ( const xmlChar * ) \"acos\" , EXSLT_MATH_NAMESPACE , exsltMathAcosFunction ) ;\n xsltRegisterExtModuleFunction ( ( const xmlChar * ) \"atan\" , EXSLT_MATH_NAMESPACE , exsltMathAtanFunction ) ;\n xsltRegisterExtModuleFunction ( ( const xmlChar * ) \"atan2\" , EXSLT_MATH_NAMESPACE , exsltMathAtan2Function ) ;\n xsltRegisterExtModuleFunction ( ( const xmlChar * ) \"exp\" , EXSLT_MATH_NAMESPACE , exsltMathExpFunction ) ;\n # endif }"}
{"idx": 9111, "target": 0, "func": "int dissect_ber_constrained_restricted_string ( gboolean implicit_tag , gint32 type , asn1_ctx_t * actx , proto_tree * tree , tvbuff_t * tvb , int offset , gint32 min_len , gint32 max_len , gint hf_id , tvbuff_t * * out_tvb ) {\n gint8 ber_class ;\n gboolean pc ;\n gint32 tag ;\n guint32 len ;\n int eoffset ;\n int hoffset = offset ;\n proto_item * cause ;\n # ifdef DEBUG_BER {\n const char * name ;\n header_field_info * hfinfo ;\n if ( hf_id >= 0 ) {\n hfinfo = proto_registrar_get_nth ( hf_id ) ;\n name = hfinfo -> name ;\n }\n else {\n name = \"unnamed\" ;\n }\n if ( tvb_reported_length_remaining ( tvb , offset ) > 3 ) {\n printf ( \"RESTRICTED STRING dissect_ber_octet string(%s) entered implicit_tag:%d offset:%d len:%d %02x:%02x:%02x\\n\" , name , implicit_tag , offset , tvb_reported_length_remaining ( tvb , offset ) , tvb_get_guint8 ( tvb , offset ) , tvb_get_guint8 ( tvb , offset + 1 ) , tvb_get_guint8 ( tvb , offset + 2 ) ) ;\n }\n else {\n printf ( \"RESTRICTED STRING dissect_ber_octet_string(%s) entered\\n\" , name ) ;\n }\n }\n # endif if ( ! implicit_tag ) {\n offset = get_ber_identifier ( tvb , offset , & ber_class , & pc , & tag ) ;\n offset = get_ber_length ( tvb , offset , & len , NULL ) ;\n eoffset = offset + len ;\n if ( ( ber_class != BER_CLASS_UNI ) || ( tag != type ) ) {\n tvb_ensure_bytes_exist ( tvb , hoffset , 2 ) ;\n cause = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset , len , \"string_expected\" , \"String with tag=%d expected but class:%s(%d) %s tag:%d was unexpected\" , type , val_to_str_const ( ber_class , ber_class_codes , \"Unknown\" ) , ber_class , pc ? ber_pc_codes_short . true_string : ber_pc_codes_short . false_string , tag ) ;\n expert_add_info ( actx -> pinfo , cause , & ei_ber_expected_string ) ;\n if ( decode_unexpected ) {\n proto_tree * unknown_tree = proto_item_add_subtree ( cause , ett_ber_unknown ) ;\n dissect_unknown_ber ( actx -> pinfo , tvb , hoffset , unknown_tree ) ;\n }\n return eoffset ;\n }\n }\n return dissect_ber_constrained_octet_string ( implicit_tag , actx , tree , tvb , hoffset , min_len , max_len , hf_id , out_tvb ) ;\n }"}
{"idx": 9112, "target": 0, "func": "int main ( void ) {\n static void ( * test_functions [ ] ) ( void ) = {\n test_master_service_settings_cache , NULL }\n ;\n pool_t pool ;\n int ret ;\n i_zero ( & input ) ;\n input . module = \"module\" ;\n input . service = \"service_name\" ;\n set . config_cache_size = 1024 * 4 ;\n pool = pool_alloconly_create ( \"set pool\" , 1024 ) ;\n test_master_service . set_parser = settings_parser_init ( pool , & test_setting_parser_info , 0 ) ;\n master_service = & test_master_service ;\n ret = test_run ( test_functions ) ;\n settings_parser_deinit ( & test_master_service . set_parser ) ;\n pool_unref ( & pool ) ;\n return ret ;\n }"}
{"idx": 9113, "target": 0, "func": "static int xan_huffman_decode ( unsigned char * dest , int dest_len , const unsigned char * src , int src_len ) {\n unsigned char byte = * src ++ ;\n unsigned char ival = byte + 0x16 ;\n const unsigned char * ptr = src + byte * 2 ;\n int ptr_len = src_len - 1 - byte * 2 ;\n unsigned char val = ival ;\n unsigned char * dest_end = dest + dest_len ;\n GetBitContext gb ;\n if ( ptr_len < 0 ) return AVERROR_INVALIDDATA ;\n init_get_bits ( & gb , ptr , ptr_len * 8 ) ;\n while ( val != 0x16 ) {\n unsigned idx = val - 0x17 + get_bits1 ( & gb ) * byte ;\n if ( idx >= 2 * byte ) return AVERROR_INVALIDDATA ;\n val = src [ idx ] ;\n if ( val < 0x16 ) {\n if ( dest >= dest_end ) return 0 ;\n * dest ++ = val ;\n val = ival ;\n }\n }\n return 0 ;\n }"}
{"idx": 9114, "target": 0, "func": "static int pnm_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n PNMContext * const s = avctx -> priv_data ;\n AVFrame * const p = data ;\n int i , j , n , linesize , h , upgrade = 0 ;\n unsigned char * ptr ;\n int components , sample_len , ret ;\n s -> bytestream_start = s -> bytestream = buf ;\n s -> bytestream_end = buf + buf_size ;\n if ( ( ret = ff_pnm_decode_header ( avctx , s ) ) < 0 ) return ret ;\n if ( ( ret = ff_get_buffer ( avctx , p , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n p -> pict_type = AV_PICTURE_TYPE_I ;\n p -> key_frame = 1 ;\n switch ( avctx -> pix_fmt ) {\n default : return AVERROR ( EINVAL ) ;\n case AV_PIX_FMT_RGB48BE : n = avctx -> width * 6 ;\n components = 3 ;\n sample_len = 16 ;\n goto do_read ;\n case AV_PIX_FMT_RGB24 : n = avctx -> width * 3 ;\n components = 3 ;\n sample_len = 8 ;\n goto do_read ;\n case AV_PIX_FMT_GRAY8 : n = avctx -> width ;\n components = 1 ;\n sample_len = 8 ;\n if ( s -> maxval < 255 ) upgrade = 1 ;\n goto do_read ;\n case AV_PIX_FMT_GRAY16BE : case AV_PIX_FMT_GRAY16LE : n = avctx -> width * 2 ;\n components = 1 ;\n sample_len = 16 ;\n if ( s -> maxval < 65535 ) upgrade = 2 ;\n goto do_read ;\n case AV_PIX_FMT_MONOWHITE : case AV_PIX_FMT_MONOBLACK : n = ( avctx -> width + 7 ) >> 3 ;\n components = 1 ;\n sample_len = 1 ;\n do_read : ptr = p -> data [ 0 ] ;\n linesize = p -> linesize [ 0 ] ;\n if ( s -> bytestream + n * avctx -> height > s -> bytestream_end ) return AVERROR_INVALIDDATA ;\n if ( s -> type < 4 ) {\n for ( i = 0 ;\n i < avctx -> height ;\n i ++ ) {\n PutBitContext pb ;\n init_put_bits ( & pb , ptr , linesize ) ;\n for ( j = 0 ;\n j < avctx -> width * components ;\n j ++ ) {\n unsigned int c = 0 ;\n int v = 0 ;\n while ( s -> bytestream < s -> bytestream_end && ( * s -> bytestream < '0' || * s -> bytestream > '9' ) ) s -> bytestream ++ ;\n if ( s -> bytestream >= s -> bytestream_end ) return AVERROR_INVALIDDATA ;\n do {\n v = 10 * v + c ;\n c = ( * s -> bytestream ++ ) - '0' ;\n }\n while ( c <= 9 ) ;\n put_bits ( & pb , sample_len , ( ( ( 1 << sample_len ) - 1 ) * v + ( s -> maxval >> 1 ) ) / s -> maxval ) ;\n }\n flush_put_bits ( & pb ) ;\n ptr += linesize ;\n }\n }\n else {\n for ( i = 0 ;\n i < avctx -> height ;\n i ++ ) {\n if ( ! upgrade ) memcpy ( ptr , s -> bytestream , n ) ;\n else if ( upgrade == 1 ) {\n unsigned int j , f = ( 255 * 128 + s -> maxval / 2 ) / s -> maxval ;\n for ( j = 0 ;\n j < n ;\n j ++ ) ptr [ j ] = ( s -> bytestream [ j ] * f + 64 ) >> 7 ;\n }\n else if ( upgrade == 2 ) {\n unsigned int j , v , f = ( 65535 * 32768 + s -> maxval / 2 ) / s -> maxval ;\n for ( j = 0 ;\n j < n / 2 ;\n j ++ ) {\n v = av_be2ne16 ( ( ( uint16_t * ) s -> bytestream ) [ j ] ) ;\n ( ( uint16_t * ) ptr ) [ j ] = ( v * f + 16384 ) >> 15 ;\n }\n }\n s -> bytestream += n ;\n ptr += linesize ;\n }\n }\n break ;\n case AV_PIX_FMT_YUV420P : case AV_PIX_FMT_YUV420P9BE : case AV_PIX_FMT_YUV420P10BE : {\n unsigned char * ptr1 , * ptr2 ;\n n = avctx -> width ;\n ptr = p -> data [ 0 ] ;\n linesize = p -> linesize [ 0 ] ;\n if ( s -> maxval >= 256 ) n *= 2 ;\n if ( s -> bytestream + n * avctx -> height * 3 / 2 > s -> bytestream_end ) return AVERROR_INVALIDDATA ;\n for ( i = 0 ;\n i < avctx -> height ;\n i ++ ) {\n memcpy ( ptr , s -> bytestream , n ) ;\n s -> bytestream += n ;\n ptr += linesize ;\n }\n ptr1 = p -> data [ 1 ] ;\n ptr2 = p -> data [ 2 ] ;\n n >>= 1 ;\n h = avctx -> height >> 1 ;\n for ( i = 0 ;\n i < h ;\n i ++ ) {\n memcpy ( ptr1 , s -> bytestream , n ) ;\n s -> bytestream += n ;\n memcpy ( ptr2 , s -> bytestream , n ) ;\n s -> bytestream += n ;\n ptr1 += p -> linesize [ 1 ] ;\n ptr2 += p -> linesize [ 2 ] ;\n }\n }\n break ;\n case AV_PIX_FMT_YUV420P16 : {\n uint16_t * ptr1 , * ptr2 ;\n const int f = ( 65535 * 32768 + s -> maxval / 2 ) / s -> maxval ;\n unsigned int j , v ;\n n = avctx -> width * 2 ;\n ptr = p -> data [ 0 ] ;\n linesize = p -> linesize [ 0 ] ;\n if ( s -> bytestream + n * avctx -> height * 3 / 2 > s -> bytestream_end ) return AVERROR_INVALIDDATA ;\n for ( i = 0 ;\n i < avctx -> height ;\n i ++ ) {\n for ( j = 0 ;\n j < n / 2 ;\n j ++ ) {\n v = av_be2ne16 ( ( ( uint16_t * ) s -> bytestream ) [ j ] ) ;\n ( ( uint16_t * ) ptr ) [ j ] = ( v * f + 16384 ) >> 15 ;\n }\n s -> bytestream += n ;\n ptr += linesize ;\n }\n ptr1 = ( uint16_t * ) p -> data [ 1 ] ;\n ptr2 = ( uint16_t * ) p -> data [ 2 ] ;\n n >>= 1 ;\n h = avctx -> height >> 1 ;\n for ( i = 0 ;\n i < h ;\n i ++ ) {\n for ( j = 0 ;\n j < n / 2 ;\n j ++ ) {\n v = av_be2ne16 ( ( ( uint16_t * ) s -> bytestream ) [ j ] ) ;\n ptr1 [ j ] = ( v * f + 16384 ) >> 15 ;\n }\n s -> bytestream += n ;\n for ( j = 0 ;\n j < n / 2 ;\n j ++ ) {\n v = av_be2ne16 ( ( ( uint16_t * ) s -> bytestream ) [ j ] ) ;\n ptr2 [ j ] = ( v * f + 16384 ) >> 15 ;\n }\n s -> bytestream += n ;\n ptr1 += p -> linesize [ 1 ] / 2 ;\n ptr2 += p -> linesize [ 2 ] / 2 ;\n }\n }\n break ;\n case AV_PIX_FMT_RGB32 : ptr = p -> data [ 0 ] ;\n linesize = p -> linesize [ 0 ] ;\n if ( s -> bytestream + avctx -> width * avctx -> height * 4 > s -> bytestream_end ) return AVERROR_INVALIDDATA ;\n for ( i = 0 ;\n i < avctx -> height ;\n i ++ ) {\n int j , r , g , b , a ;\n for ( j = 0 ;\n j < avctx -> width ;\n j ++ ) {\n r = * s -> bytestream ++ ;\n g = * s -> bytestream ++ ;\n b = * s -> bytestream ++ ;\n a = * s -> bytestream ++ ;\n ( ( uint32_t * ) ptr ) [ j ] = ( a << 24 ) | ( r << 16 ) | ( g << 8 ) | b ;\n }\n ptr += linesize ;\n }\n break ;\n }\n * got_frame = 1 ;\n return s -> bytestream - s -> bytestream_start ;\n }"}
{"idx": 9115, "target": 0, "func": "int gs_main_init1 ( gs_main_instance * minst ) {\n gs_dual_memory_t idmem ;\n name_table * nt = NULL ;\n int code = 0 ;\n if ( minst -> init_done < 1 ) {\n code = ialloc_init ( & idmem , minst -> heap , minst -> memory_clump_size , gs_have_level2 ( ) ) ;\n if ( code < 0 ) return code ;\n code = gs_lib_init1 ( ( gs_memory_t * ) idmem . space_system ) ;\n if ( code < 0 ) goto fail ;\n alloc_save_init ( & idmem ) ;\n {\n gs_memory_t * mem = ( gs_memory_t * ) idmem . space_system ;\n nt = names_init ( minst -> name_table_size , idmem . space_system ) ;\n if ( nt == 0 ) {\n code = gs_note_error ( gs_error_VMerror ) ;\n goto fail ;\n }\n mem -> gs_lib_ctx -> gs_name_table = nt ;\n code = gs_register_struct_root ( mem , mem -> gs_lib_ctx -> name_table_root , ( void * * ) & mem -> gs_lib_ctx -> gs_name_table , \"the_gs_name_table\" ) ;\n if ( code < 0 ) goto fail ;\n mem -> gs_lib_ctx -> client_check_file_permission = z_check_file_permissions ;\n }\n code = obj_init ( & minst -> i_ctx_p , & idmem ) ;\n if ( code < 0 ) goto fail ;\n minst -> init_done = 1 ;\n code = i_plugin_init ( minst -> i_ctx_p ) ;\n if ( code < 0 ) goto fail ;\n code = i_iodev_init ( & idmem ) ;\n if ( code < 0 ) goto fail ;\n }\n return 0 ;\n fail : names_free ( nt ) ;\n if ( minst -> i_ctx_p == NULL ) ialloc_finit ( & idmem ) ;\n return code ;\n }"}
{"idx": 9116, "target": 0, "func": "static int __tipc_nl_compat_dumpit ( struct tipc_nl_compat_cmd_dump * cmd , struct tipc_nl_compat_msg * msg , struct sk_buff * arg ) {\n int len = 0 ;\n int err ;\n struct sk_buff * buf ;\n struct nlmsghdr * nlmsg ;\n struct netlink_callback cb ;\n memset ( & cb , 0 , sizeof ( cb ) ) ;\n cb . nlh = ( struct nlmsghdr * ) arg -> data ;\n cb . skb = arg ;\n buf = nlmsg_new ( NLMSG_GOODSIZE , GFP_KERNEL ) ;\n if ( ! buf ) return - ENOMEM ;\n buf -> sk = msg -> dst_sk ;\n do {\n int rem ;\n len = ( * cmd -> dumpit ) ( buf , & cb ) ;\n nlmsg_for_each_msg ( nlmsg , nlmsg_hdr ( buf ) , len , rem ) {\n struct nlattr * * attrs ;\n err = tipc_nlmsg_parse ( nlmsg , & attrs ) ;\n if ( err ) goto err_out ;\n err = ( * cmd -> format ) ( msg , attrs ) ;\n if ( err ) goto err_out ;\n if ( tipc_skb_tailroom ( msg -> rep ) <= 1 ) {\n err = - EMSGSIZE ;\n goto err_out ;\n }\n }\n skb_reset_tail_pointer ( buf ) ;\n buf -> len = 0 ;\n }\n while ( len ) ;\n err = 0 ;\n err_out : kfree_skb ( buf ) ;\n if ( err == - EMSGSIZE ) {\n if ( ( TIPC_SKB_MAX - msg -> rep -> len ) <= 1 ) {\n char * tail = skb_tail_pointer ( msg -> rep ) ;\n if ( * tail != '\\0' ) sprintf ( tail - sizeof ( REPLY_TRUNCATED ) - 1 , REPLY_TRUNCATED ) ;\n }\n return 0 ;\n }\n return err ;\n }"}
{"idx": 9117, "target": 0, "func": "static void dtap_cc_status ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_FALSE ;\n ELEM_MAND_LV ( GSM_A_PDU_TYPE_DTAP , DE_CAUSE , NULL ) ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_CALL_STATE , NULL ) ;\n ELEM_OPT_TLV ( 0x24 , GSM_A_PDU_TYPE_DTAP , DE_AUX_STATES , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 9118, "target": 0, "func": "static guint mac_is_fragment_hash ( gconstpointer key ) {\n const mac_is_fragment * frag = ( const mac_is_fragment * ) key ;\n return ( frag -> frame_num << 2 ) | frag -> type ;\n }"}
{"idx": 9119, "target": 0, "func": "void qdev_free ( DeviceState * dev ) {\n BusState * bus ;\n if ( dev -> state == DEV_STATE_INITIALIZED ) {\n while ( dev -> num_child_bus ) {\n bus = QLIST_FIRST ( & dev -> child_bus ) ;\n qbus_free ( bus ) ;\n }\n if ( dev -> info -> vmsd ) vmstate_unregister ( dev -> info -> vmsd , dev ) ;\n if ( dev -> info -> exit ) dev -> info -> exit ( dev ) ;\n if ( dev -> opts ) qemu_opts_del ( dev -> opts ) ;\n }\n qemu_unregister_reset ( qdev_reset , dev ) ;\n QLIST_REMOVE ( dev , sibling ) ;\n qemu_free ( dev ) ;\n }"}
{"idx": 9120, "target": 1, "func": "static void rv34_pred_mv_b ( RV34DecContext * r , int block_type , int dir ) {\n MpegEncContext * s = & r -> s ;\n int mb_pos = s -> mb_x + s -> mb_y * s -> mb_stride ;\n int mv_pos = s -> mb_x * 2 + s -> mb_y * 2 * s -> b8_stride ;\n int A [ 2 ] = {\n 0 }\n , B [ 2 ] = {\n 0 }\n , C [ 2 ] = {\n 0 }\n ;\n int has_A = 0 , has_B = 0 , has_C = 0 ;\n int mx , my ;\n int i , j ;\n Picture * cur_pic = s -> current_picture_ptr ;\n const int mask = dir ? MB_TYPE_L1 : MB_TYPE_L0 ;\n int type = cur_pic -> f . mb_type [ mb_pos ] ;\n if ( ( r -> avail_cache [ 6 - 1 ] & type ) & mask ) {\n A [ 0 ] = cur_pic -> f . motion_val [ dir ] [ mv_pos - 1 ] [ 0 ] ;\n A [ 1 ] = cur_pic -> f . motion_val [ dir ] [ mv_pos - 1 ] [ 1 ] ;\n has_A = 1 ;\n }\n if ( ( r -> avail_cache [ 6 - 4 ] & type ) & mask ) {\n B [ 0 ] = cur_pic -> f . motion_val [ dir ] [ mv_pos - s -> b8_stride ] [ 0 ] ;\n B [ 1 ] = cur_pic -> f . motion_val [ dir ] [ mv_pos - s -> b8_stride ] [ 1 ] ;\n has_B = 1 ;\n }\n if ( r -> avail_cache [ 6 - 4 ] && ( r -> avail_cache [ 6 - 2 ] & type ) & mask ) {\n C [ 0 ] = cur_pic -> f . motion_val [ dir ] [ mv_pos - s -> b8_stride + 2 ] [ 0 ] ;\n C [ 1 ] = cur_pic -> f . motion_val [ dir ] [ mv_pos - s -> b8_stride + 2 ] [ 1 ] ;\n has_C = 1 ;\n }\n else if ( ( s -> mb_x + 1 ) == s -> mb_width && ( r -> avail_cache [ 6 - 5 ] & type ) & mask ) {\n C [ 0 ] = cur_pic -> f . motion_val [ dir ] [ mv_pos - s -> b8_stride - 1 ] [ 0 ] ;\n C [ 1 ] = cur_pic -> f . motion_val [ dir ] [ mv_pos - s -> b8_stride - 1 ] [ 1 ] ;\n has_C = 1 ;\n }\n rv34_pred_b_vector ( A , B , C , has_A , has_B , has_C , & mx , & my ) ;\n mx += r -> dmv [ dir ] [ 0 ] ;\n my += r -> dmv [ dir ] [ 1 ] ;\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n cur_pic -> f . motion_val [ dir ] [ mv_pos + i + j * s -> b8_stride ] [ 0 ] = mx ;\n cur_pic -> f . motion_val [ dir ] [ mv_pos + i + j * s -> b8_stride ] [ 1 ] = my ;\n }\n }\n if ( block_type == RV34_MB_B_BACKWARD || block_type == RV34_MB_B_FORWARD ) {\n ZERO8x2 ( cur_pic -> f . motion_val [ ! dir ] [ mv_pos ] , s -> b8_stride ) ;\n }\n }"}
{"idx": 9121, "target": 0, "func": "void ff_mpeg12_common_init ( MpegEncContext * s ) {\n s -> y_dc_scale_table = s -> c_dc_scale_table = ff_mpeg2_dc_scale_table [ s -> intra_dc_precision ] ;\n }"}
{"idx": 9122, "target": 0, "func": "static void virtio_net_set_features ( VirtIODevice * vdev , uint32_t features ) {\n VirtIONet * n = to_virtio_net ( vdev ) ;\n n -> mergeable_rx_bufs = ! ! ( features & ( 1 << VIRTIO_NET_F_MRG_RXBUF ) ) ;\n if ( n -> has_vnet_hdr ) {\n tap_set_offload ( n -> nic -> nc . peer , ( features >> VIRTIO_NET_F_GUEST_CSUM ) & 1 , ( features >> VIRTIO_NET_F_GUEST_TSO4 ) & 1 , ( features >> VIRTIO_NET_F_GUEST_TSO6 ) & 1 , ( features >> VIRTIO_NET_F_GUEST_ECN ) & 1 , ( features >> VIRTIO_NET_F_GUEST_UFO ) & 1 ) ;\n }\n if ( ! n -> nic -> nc . peer || n -> nic -> nc . peer -> info -> type != NET_CLIENT_TYPE_TAP ) {\n return ;\n }\n if ( ! tap_get_vhost_net ( n -> nic -> nc . peer ) ) {\n return ;\n }\n vhost_net_ack_features ( tap_get_vhost_net ( n -> nic -> nc . peer ) , features ) ;\n }"}
{"idx": 9123, "target": 0, "func": "void wpa_sess_add ( u_char * sta , struct wpa_sa * sa ) {\n struct wpa_session * e , * s ;\n char tmp [ MAX_ASCII_ADDR_LEN ] ;\n SAFE_CALLOC ( e , 1 , sizeof ( struct wpa_session ) ) ;\n if ( sta ) memcpy ( & e -> sta , sta , ETH_ADDR_LEN ) ;\n if ( sa ) {\n gettimeofday ( & sa -> tv , NULL ) ;\n memcpy ( & e -> sa , sa , sizeof ( struct wpa_sa ) ) ;\n }\n pthread_mutex_lock ( & root_mutex ) ;\n LIST_FOREACH ( s , & wpa_sess_root , next ) {\n if ( ! memcmp ( & e -> sta , & s -> sta , ETH_ADDR_LEN ) ) {\n if ( sa ) {\n memcpy ( & s -> sa , sa , sizeof ( struct wpa_sa ) ) ;\n gettimeofday ( & s -> sa . tv , NULL ) ;\n }\n USER_MSG ( \"WPA session updated for [%s]\\n\" , mac_addr_ntoa ( e -> sta , tmp ) ) ;\n pthread_mutex_unlock ( & root_mutex ) ;\n return ;\n }\n }\n LIST_INSERT_HEAD ( & wpa_sess_root , e , next ) ;\n pthread_mutex_unlock ( & root_mutex ) ;\n USER_MSG ( \"New WPA session for [%s]\\n\" , mac_addr_ntoa ( e -> sta , tmp ) ) ;\n }"}
{"idx": 9124, "target": 1, "func": "void vp9_fdct16x16_1_c ( const int16_t * input , int16_t * output , int stride ) {\n int r , c ;\n int16_t sum = 0 ;\n for ( r = 0 ;\n r < 16 ;\n ++ r ) for ( c = 0 ;\n c < 16 ;\n ++ c ) sum += input [ r * stride + c ] ;\n output [ 0 ] = sum >> 1 ;\n output [ 1 ] = 0 ;\n }"}
{"idx": 9125, "target": 0, "func": "static void fixDirToTreePath ( char * s ) {\n ( void ) s ;\n # if ( U_FILE_SEP_CHAR != U_TREE_ENTRY_SEP_CHAR ) || ( ( U_FILE_ALT_SEP_CHAR != U_FILE_SEP_CHAR ) && ( U_FILE_ALT_SEP_CHAR != U_TREE_ENTRY_SEP_CHAR ) ) char * t ;\n # endif # if ( U_FILE_SEP_CHAR != U_TREE_ENTRY_SEP_CHAR ) for ( t = s ;\n t = uprv_strchr ( t , U_FILE_SEP_CHAR ) ;\n ) {\n * t = U_TREE_ENTRY_SEP_CHAR ;\n }\n # endif # if ( U_FILE_ALT_SEP_CHAR != U_FILE_SEP_CHAR ) && ( U_FILE_ALT_SEP_CHAR != U_TREE_ENTRY_SEP_CHAR ) for ( t = s ;\n t = uprv_strchr ( t , U_FILE_ALT_SEP_CHAR ) ;\n ) {\n * t = U_TREE_ENTRY_SEP_CHAR ;\n }\n # endif }"}
{"idx": 9126, "target": 0, "func": "static int dissect_pvfs_meta_attr_dfiles ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n guint32 dfile_count , i ;\n dfile_count = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_pvfs_dfile_count , tvb , offset , 4 , dfile_count ) ;\n offset += 4 ;\n for ( i = 0 ;\n i < dfile_count ;\n i ++ ) offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"handle\" , NULL ) ;\n return offset ;\n }"}
{"idx": 9127, "target": 0, "func": "guint16 elem_t ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint8 iei , gint pdu_type , int idx , guint32 offset , const gchar * name_add ) {\n guint8 oct ;\n guint32 curr_offset ;\n guint16 consumed ;\n value_string_ext elem_names_ext ;\n gint * elem_ett ;\n guint16 ( * * elem_funcs ) ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string , int string_len ) ;\n curr_offset = offset ;\n consumed = 0 ;\n SET_ELEM_VARS ( pdu_type , elem_names_ext , elem_ett , elem_funcs , & ei_gsm_a_unknown_pdu_type ) ;\n ( void ) elem_ett ;\n ( void ) elem_funcs ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n if ( oct == iei ) {\n proto_tree_add_uint_format ( tree , get_hf_elem_id ( pdu_type ) , tvb , curr_offset , 1 , oct , \"%s%s\" , val_to_str_ext ( idx , & elem_names_ext , \"Unknown (%u)\" ) , ( name_add == NULL ) || ( name_add [ 0 ] == '\\0' ) ? \"\" : name_add ) ;\n consumed = 1 ;\n }\n return consumed ;\n }"}
{"idx": 9128, "target": 0, "func": "int main ( int argc , char * * argv ) {\n extern char * __progname ;\n char * listen_ip ;\n char * errormsg ;\n # ifndef WINDOWS32 struct passwd * pw ;\n # endif int foreground ;\n char * username ;\n char * newroot ;\n char * context ;\n char * device ;\n char * pidfile ;\n int dnsd_fd ;\n int tun_fd ;\n int bind_fd ;\n int bind_enable ;\n int choice ;\n int port ;\n int mtu ;\n int skipipconfig ;\n char * netsize ;\n int ns_get_externalip ;\n int retval ;\n int max_idle_time = 0 ;\n struct sockaddr_storage dnsaddr ;\n int dnsaddr_len ;\n # ifdef HAVE_SYSTEMD int nb_fds ;\n # endif # ifndef WINDOWS32 pw = NULL ;\n # endif errormsg = NULL ;\n username = NULL ;\n newroot = NULL ;\n context = NULL ;\n device = NULL ;\n foreground = 0 ;\n bind_enable = 0 ;\n bind_fd = 0 ;\n mtu = 1130 ;\n listen_ip = NULL ;\n port = 53 ;\n ns_ip = INADDR_ANY ;\n ns_get_externalip = 0 ;\n check_ip = 1 ;\n skipipconfig = 0 ;\n debug = 0 ;\n netmask = 27 ;\n pidfile = NULL ;\n b32 = get_base32_encoder ( ) ;\n b64 = get_base64_encoder ( ) ;\n b64u = get_base64u_encoder ( ) ;\n b128 = get_base128_encoder ( ) ;\n retval = 0 ;\n # ifdef WINDOWS32 WSAStartup ( req_version , & wsa_data ) ;\n # endif # if ! defined ( BSD ) && ! defined ( __GLIBC__ ) __progname = strrchr ( argv [ 0 ] , '/' ) ;\n if ( __progname == NULL ) __progname = argv [ 0 ] ;\n else __progname ++ ;\n # endif memset ( password , 0 , sizeof ( password ) ) ;\n srand ( time ( NULL ) ) ;\n fw_query_init ( ) ;\n while ( ( choice = getopt ( argc , argv , \"vcsfhDu:t:d:m:l:p:n:b:P:z:F:i:\" ) ) != - 1 ) {\n switch ( choice ) {\n case 'v' : version ( ) ;\n break ;\n case 'c' : check_ip = 0 ;\n break ;\n case 's' : skipipconfig = 1 ;\n break ;\n case 'f' : foreground = 1 ;\n break ;\n case 'h' : help ( ) ;\n break ;\n case 'D' : debug ++ ;\n break ;\n case 'u' : username = optarg ;\n break ;\n case 't' : newroot = optarg ;\n break ;\n case 'd' : device = optarg ;\n break ;\n case 'm' : mtu = atoi ( optarg ) ;\n break ;\n case 'l' : listen_ip = optarg ;\n break ;\n case 'p' : port = atoi ( optarg ) ;\n break ;\n case 'n' : if ( optarg && strcmp ( \"auto\" , optarg ) == 0 ) {\n ns_get_externalip = 1 ;\n }\n else {\n ns_ip = inet_addr ( optarg ) ;\n }\n break ;\n case 'b' : bind_enable = 1 ;\n bind_port = atoi ( optarg ) ;\n break ;\n case 'F' : pidfile = optarg ;\n break ;\n case 'i' : max_idle_time = atoi ( optarg ) ;\n break ;\n case 'P' : strncpy ( password , optarg , sizeof ( password ) ) ;\n password [ sizeof ( password ) - 1 ] = 0 ;\n memset ( optarg , 0 , strlen ( optarg ) ) ;\n break ;\n case 'z' : context = optarg ;\n break ;\n default : usage ( ) ;\n break ;\n }\n }\n argc -= optind ;\n argv += optind ;\n check_superuser ( usage ) ;\n if ( argc != 2 ) usage ( ) ;\n netsize = strchr ( argv [ 0 ] , '/' ) ;\n if ( netsize ) {\n * netsize = 0 ;\n netsize ++ ;\n netmask = atoi ( netsize ) ;\n }\n my_ip = inet_addr ( argv [ 0 ] ) ;\n if ( my_ip == INADDR_NONE ) {\n warnx ( \"Bad IP address to use inside tunnel.\" ) ;\n usage ( ) ;\n }\n topdomain = strdup ( argv [ 1 ] ) ;\n if ( check_topdomain ( topdomain , & errormsg ) ) {\n warnx ( \"Invalid topdomain: %s\" , errormsg ) ;\n usage ( ) ;\n }\n if ( username != NULL ) {\n # ifndef WINDOWS32 if ( ( pw = getpwnam ( username ) ) == NULL ) {\n warnx ( \"User %s does not exist!\" , username ) ;\n usage ( ) ;\n }\n # endif }\n if ( mtu <= 0 ) {\n warnx ( \"Bad MTU given.\" ) ;\n usage ( ) ;\n }\n if ( port < 1 || port > 65535 ) {\n warnx ( \"Bad port number given.\" ) ;\n usage ( ) ;\n }\n if ( port != 53 ) {\n fprintf ( stderr , \"ALERT! Other dns servers expect you to run on port 53.\\n\" ) ;\n fprintf ( stderr , \"You must manually forward port 53 to port %d for things to work.\\n\" , port ) ;\n }\n if ( debug ) {\n fprintf ( stderr , \"Debug level %d enabled, will stay in foreground.\\n\" , debug ) ;\n fprintf ( stderr , \"Add more -D switches to set higher debug level.\\n\" ) ;\n foreground = 1 ;\n }\n dnsaddr_len = get_addr ( listen_ip , port , AF_INET , AI_PASSIVE | AI_NUMERICHOST , & dnsaddr ) ;\n if ( dnsaddr_len < 0 ) {\n warnx ( \"Bad IP address to listen on.\" ) ;\n usage ( ) ;\n }\n if ( bind_enable ) {\n in_addr_t dns_ip = ( ( struct sockaddr_in * ) & dnsaddr ) -> sin_addr . s_addr ;\n if ( bind_port < 1 || bind_port > 65535 ) {\n warnx ( \"Bad DNS server port number given.\" ) ;\n usage ( ) ;\n }\n if ( bind_port == port && ( dns_ip == INADDR_ANY || dns_ip == htonl ( 0x7f000001L ) ) ) {\n warnx ( \"Forward port is same as listen port (%d), will create a loop!\" , bind_port ) ;\n fprintf ( stderr , \"Use -l to set listen ip to avoid this.\\n\" ) ;\n usage ( ) ;\n }\n fprintf ( stderr , \"Requests for domains outside of %s will be forwarded to port %d\\n\" , topdomain , bind_port ) ;\n }\n if ( ns_get_externalip ) {\n struct in_addr extip ;\n int res = get_external_ip ( & extip ) ;\n if ( res ) {\n fprintf ( stderr , \"Failed to get external IP via web service.\\n\" ) ;\n exit ( 3 ) ;\n }\n ns_ip = extip . s_addr ;\n fprintf ( stderr , \"Using %s as external IP.\\n\" , inet_ntoa ( extip ) ) ;\n }\n if ( ns_ip == INADDR_NONE ) {\n warnx ( \"Bad IP address to return as nameserver.\" ) ;\n usage ( ) ;\n }\n if ( netmask > 30 || netmask < 8 ) {\n warnx ( \"Bad netmask (%d bits). Use 8-30 bits.\" , netmask ) ;\n usage ( ) ;\n }\n if ( strlen ( password ) == 0 ) {\n if ( NULL != getenv ( PASSWORD_ENV_VAR ) ) snprintf ( password , sizeof ( password ) , \"%s\" , getenv ( PASSWORD_ENV_VAR ) ) ;\n else read_password ( password , sizeof ( password ) ) ;\n }\n created_users = init_users ( my_ip , netmask ) ;\n if ( ( tun_fd = open_tun ( device ) ) == - 1 ) {\n retval = 1 ;\n goto cleanup0 ;\n }\n if ( ! skipipconfig ) {\n const char * other_ip = users_get_first_ip ( ) ;\n if ( tun_setip ( argv [ 0 ] , other_ip , netmask ) != 0 || tun_setmtu ( mtu ) != 0 ) {\n retval = 1 ;\n free ( ( void * ) other_ip ) ;\n goto cleanup1 ;\n }\n free ( ( void * ) other_ip ) ;\n }\n # ifdef HAVE_SYSTEMD nb_fds = sd_listen_fds ( 0 ) ;\n if ( nb_fds > 1 ) {\n retval = 1 ;\n warnx ( \"Too many file descriptors received!\\n\" ) ;\n goto cleanup1 ;\n }\n else if ( nb_fds == 1 ) {\n dnsd_fd = SD_LISTEN_FDS_START ;\n }\n else {\n # endif if ( ( dnsd_fd = open_dns ( & dnsaddr , dnsaddr_len ) ) < 0 ) {\n retval = 1 ;\n goto cleanup2 ;\n }\n # ifdef HAVE_SYSTEMD }\n # endif if ( bind_enable ) {\n if ( ( bind_fd = open_dns_from_host ( NULL , 0 , AF_INET , 0 ) ) < 0 ) {\n retval = 1 ;\n goto cleanup3 ;\n }\n }\n my_mtu = mtu ;\n if ( created_users < USERS ) {\n fprintf ( stderr , \"Limiting to %d simultaneous users because of netmask /%d\\n\" , created_users , netmask ) ;\n }\n fprintf ( stderr , \"Listening to dns for domain %s\\n\" , topdomain ) ;\n if ( foreground == 0 ) do_detach ( ) ;\n if ( pidfile != NULL ) do_pidfile ( pidfile ) ;\n # ifdef FREEBSD tzsetwall ( ) ;\n # endif # ifndef WINDOWS32 openlog ( __progname , LOG_NDELAY , LOG_DAEMON ) ;\n # endif if ( newroot != NULL ) do_chroot ( newroot ) ;\n signal ( SIGINT , sigint ) ;\n if ( username != NULL ) {\n # ifndef WINDOWS32 gid_t gids [ 1 ] ;\n gids [ 0 ] = pw -> pw_gid ;\n if ( setgroups ( 1 , gids ) < 0 || setgid ( pw -> pw_gid ) < 0 || setuid ( pw -> pw_uid ) < 0 ) {\n warnx ( \"Could not switch to user %s!\\n\" , username ) ;\n usage ( ) ;\n }\n # endif }\n if ( context != NULL ) do_setcon ( context ) ;\n syslog ( LOG_INFO , \"started, listening on port %d\" , port ) ;\n tunnel ( tun_fd , dnsd_fd , bind_fd , max_idle_time ) ;\n syslog ( LOG_INFO , \"stopping\" ) ;\n cleanup3 : close_dns ( bind_fd ) ;\n cleanup2 : close_dns ( dnsd_fd ) ;\n cleanup1 : close_tun ( tun_fd ) ;\n cleanup0 : return retval ;\n }"}
{"idx": 9129, "target": 0, "func": "gpg_err_code_t _gcry_ecc_ecdsa_verify ( gcry_mpi_t input , ECC_public_key * pkey , gcry_mpi_t r , gcry_mpi_t s ) {\n gpg_err_code_t err = 0 ;\n gcry_mpi_t hash , h , h1 , h2 , x ;\n mpi_point_struct Q , Q1 , Q2 ;\n mpi_ec_t ctx ;\n unsigned int nbits ;\n if ( ! ( mpi_cmp_ui ( r , 0 ) > 0 && mpi_cmp ( r , pkey -> E . n ) < 0 ) ) return GPG_ERR_BAD_SIGNATURE ;\n if ( ! ( mpi_cmp_ui ( s , 0 ) > 0 && mpi_cmp ( s , pkey -> E . n ) < 0 ) ) return GPG_ERR_BAD_SIGNATURE ;\n nbits = mpi_get_nbits ( pkey -> E . n ) ;\n err = _gcry_dsa_normalize_hash ( input , & hash , nbits ) ;\n if ( err ) return err ;\n h = mpi_alloc ( 0 ) ;\n h1 = mpi_alloc ( 0 ) ;\n h2 = mpi_alloc ( 0 ) ;\n x = mpi_alloc ( 0 ) ;\n point_init ( & Q ) ;\n point_init ( & Q1 ) ;\n point_init ( & Q2 ) ;\n ctx = _gcry_mpi_ec_p_internal_new ( pkey -> E . model , pkey -> E . dialect , 0 , pkey -> E . p , pkey -> E . a , pkey -> E . b ) ;\n mpi_invm ( h , s , pkey -> E . n ) ;\n mpi_mulm ( h1 , hash , h , pkey -> E . n ) ;\n _gcry_mpi_ec_mul_point ( & Q1 , h1 , & pkey -> E . G , ctx ) ;\n mpi_mulm ( h2 , r , h , pkey -> E . n ) ;\n _gcry_mpi_ec_mul_point ( & Q2 , h2 , & pkey -> Q , ctx ) ;\n _gcry_mpi_ec_add_points ( & Q , & Q1 , & Q2 , ctx ) ;\n if ( ! mpi_cmp_ui ( Q . z , 0 ) ) {\n if ( DBG_CIPHER ) log_debug ( \"ecc verify: Rejected\\n\" ) ;\n err = GPG_ERR_BAD_SIGNATURE ;\n goto leave ;\n }\n if ( _gcry_mpi_ec_get_affine ( x , NULL , & Q , ctx ) ) {\n if ( DBG_CIPHER ) log_debug ( \"ecc verify: Failed to get affine coordinates\\n\" ) ;\n err = GPG_ERR_BAD_SIGNATURE ;\n goto leave ;\n }\n mpi_mod ( x , x , pkey -> E . n ) ;\n if ( mpi_cmp ( x , r ) ) {\n if ( DBG_CIPHER ) {\n log_mpidump ( \" x\" , x ) ;\n log_mpidump ( \" r\" , r ) ;\n log_mpidump ( \" s\" , s ) ;\n }\n err = GPG_ERR_BAD_SIGNATURE ;\n goto leave ;\n }\n leave : _gcry_mpi_ec_free ( ctx ) ;\n point_free ( & Q2 ) ;\n point_free ( & Q1 ) ;\n point_free ( & Q ) ;\n mpi_free ( x ) ;\n mpi_free ( h2 ) ;\n mpi_free ( h1 ) ;\n mpi_free ( h ) ;\n if ( hash != input ) mpi_free ( hash ) ;\n return err ;\n }"}
{"idx": 9130, "target": 0, "func": "void proto_register_adb ( void ) {\n module_t * module ;\n expert_module_t * expert_module ;\n static hf_register_info hf [ ] = {\n {\n & hf_command , {\n \"Command\" , \"adb.command\" , FT_UINT32 , BASE_HEX , VALS ( command_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_argument_0 , {\n \"Argument 0\" , \"adb.argument.0\" , FT_UINT32 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_argument_1 , {\n \"Argument 0\" , \"adb.argument.1\" , FT_UINT32 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_data_length , {\n \"Data Length\" , \"adb.data_length\" , FT_UINT32 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_data_crc32 , {\n \"Data CRC32\" , \"adb.data_crc32\" , FT_UINT32 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_magic , {\n \"Magic\" , \"adb.magic\" , FT_UINT32 , BASE_HEX , VALS ( magic_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_version , {\n \"Version\" , \"adb.version\" , FT_UINT32 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_max_data , {\n \"Max Data\" , \"adb.max_data\" , FT_UINT32 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_auth_type , {\n \"Type\" , \"adb.auth_type\" , FT_UINT32 , BASE_HEX , VALS ( auth_type_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_online , {\n \"Online\" , \"adb.online\" , FT_BOOLEAN , 32 , TFS ( & tfs_no_yes ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_sequence , {\n \"Sequence\" , \"adb.sequence\" , FT_UINT32 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zero , {\n \"Zero\" , \"adb.zero\" , FT_UINT32 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_local_id , {\n \"Local ID\" , \"adb.local_id\" , FT_UINT32 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_remote_id , {\n \"Remote ID\" , \"adb.remote_id\" , FT_UINT32 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_data , {\n \"Data\" , \"adb.data\" , FT_NONE , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_service , {\n \"Service\" , \"adb.service\" , FT_STRING , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_data_fragment , {\n \"Data Fragment\" , \"adb.data_fragment\" , FT_NONE , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_service_start_in_frame , {\n \"Service Start in Frame\" , \"adb.service_start_in_frame\" , FT_FRAMENUM , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_close_local_in_frame , {\n \"Local Service Close in Frame\" , \"adb.close_local_in_frame\" , FT_FRAMENUM , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_close_remote_in_frame , {\n \"Remote Service Close in Frame\" , \"adb.close_remote_in_frame\" , FT_FRAMENUM , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_command_in_frame , {\n \"Command in Frame\" , \"adb.command_in_frame\" , FT_FRAMENUM , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_completed_in_frame , {\n \"Completed in Frame\" , \"adb.completed_in_frame\" , FT_FRAMENUM , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_connection_info , {\n \"Info\" , \"adb.connection_info\" , FT_STRINGZ , STR_ASCII , NULL , 0x00 , NULL , HFILL }\n }\n }\n ;\n static gint * ett [ ] = {\n & ett_adb , & ett_adb_arg0 , & ett_adb_arg1 , & ett_adb_crc , & ett_adb_magic }\n ;\n static ei_register_info ei [ ] = {\n {\n & ei_invalid_magic , {\n \"adb.expert.invalid_magic\" , PI_PROTOCOL , PI_WARN , \"Invalid Magic\" , EXPFILL }\n }\n , {\n & ei_invalid_crc , {\n \"adb.expert.crc_error\" , PI_PROTOCOL , PI_ERROR , \"CRC32 Error\" , EXPFILL }\n }\n , {\n & ei_invalid_data , {\n \"adb.expert.data_error\" , PI_PROTOCOL , PI_ERROR , \"Mismatch between message payload size and data length\" , EXPFILL }\n }\n , }\n ;\n command_info = wmem_tree_new_autoreset ( wmem_epan_scope ( ) , wmem_file_scope ( ) ) ;\n service_info = wmem_tree_new_autoreset ( wmem_epan_scope ( ) , wmem_file_scope ( ) ) ;\n proto_adb = proto_register_protocol ( \"Android Debug Bridge\" , \"ADB\" , \"adb\" ) ;\n adb_handle = register_dissector ( \"adb\" , dissect_adb , proto_adb ) ;\n proto_register_field_array ( proto_adb , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n expert_module = expert_register_protocol ( proto_adb ) ;\n expert_register_field_array ( expert_module , ei , array_length ( ei ) ) ;\n module = prefs_register_protocol ( proto_adb , NULL ) ;\n prefs_register_static_text_preference ( module , \"version\" , \"ADB protocol version is compatible prior to: adb 1.0.31\" , \"Version of protocol supported by this dissector.\" ) ;\n }"}
{"idx": 9131, "target": 0, "func": "static void set_user_salt ( ACL_USER * acl_user , const char * password , uint password_len ) {\n if ( password_len == SCRAMBLED_PASSWORD_CHAR_LENGTH ) {\n get_salt_from_password ( acl_user -> salt , password ) ;\n acl_user -> salt_len = SCRAMBLE_LENGTH ;\n }\n else if ( password_len == SCRAMBLED_PASSWORD_CHAR_LENGTH_323 ) {\n get_salt_from_password_323 ( ( ulong * ) acl_user -> salt , password ) ;\n acl_user -> salt_len = SCRAMBLE_LENGTH_323 ;\n }\n else acl_user -> salt_len = 0 ;\n }"}
{"idx": 9132, "target": 0, "func": "static void inode_free_security ( struct inode * inode ) {\n struct inode_security_struct * isec = inode -> i_security ;\n struct superblock_security_struct * sbsec = inode -> i_sb -> s_security ;\n if ( ! list_empty_careful ( & isec -> list ) ) {\n spin_lock ( & sbsec -> isec_lock ) ;\n list_del_init ( & isec -> list ) ;\n spin_unlock ( & sbsec -> isec_lock ) ;\n }\n call_rcu ( & isec -> rcu , inode_free_rcu ) ;\n }"}
{"idx": 9133, "target": 0, "func": "int NETSCAPE_SPKI_verify ( NETSCAPE_SPKI * a , EVP_PKEY * r ) {\n return ( ASN1_item_verify ( ASN1_ITEM_rptr ( NETSCAPE_SPKAC ) , a -> sig_algor , a -> signature , a -> spkac , r ) ) ;\n }"}
{"idx": 9134, "target": 0, "func": "static bool xhci_er_full ( void * opaque , int version_id ) {\n struct XHCIInterrupter * intr = opaque ;\n return intr -> er_full ;\n }"}
{"idx": 9135, "target": 0, "func": "int qemuMonitorJSONCheckHMP ( qemuMonitorPtr mon ) {\n int ret = - 1 ;\n virJSONValuePtr cmd = qemuMonitorJSONMakeCommand ( \"query-commands\" , NULL ) ;\n virJSONValuePtr reply = NULL ;\n virJSONValuePtr data ;\n int i , n ;\n if ( ! cmd ) return ret ;\n if ( qemuMonitorJSONCommand ( mon , cmd , & reply ) < 0 || qemuMonitorJSONCheckError ( cmd , reply ) < 0 ) goto cleanup ;\n if ( ! ( data = virJSONValueObjectGet ( reply , \"return\" ) ) || data -> type != VIR_JSON_TYPE_ARRAY || ( n = virJSONValueArraySize ( data ) ) <= 0 ) goto cleanup ;\n for ( i = 0 ;\n i < n ;\n i ++ ) {\n virJSONValuePtr entry ;\n const char * name ;\n if ( ! ( entry = virJSONValueArrayGet ( data , i ) ) || ! ( name = virJSONValueObjectGetString ( entry , \"name\" ) ) ) goto cleanup ;\n if ( STREQ ( name , \"human-monitor-command\" ) ) {\n ret = 1 ;\n goto cleanup ;\n }\n }\n ret = 0 ;\n cleanup : virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 9136, "target": 0, "func": "static int dissect_h245_EncryptionUpdateRequest ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_EncryptionUpdateRequest , EncryptionUpdateRequest_sequence ) ;\n return offset ;\n }"}
{"idx": 9137, "target": 0, "func": "static inline int vp3_dequant ( Vp3DecodeContext * s , Vp3Fragment * frag , int plane , int inter , int16_t block [ 64 ] ) {\n int16_t * dequantizer = s -> qmat [ frag -> qpi ] [ inter ] [ plane ] ;\n uint8_t * perm = s -> scantable . permutated ;\n int i = 0 ;\n do {\n int token = * s -> dct_tokens [ plane ] [ i ] ;\n switch ( token & 3 ) {\n case 0 : if ( -- token < 4 ) s -> dct_tokens [ plane ] [ i ] ++ ;\n else * s -> dct_tokens [ plane ] [ i ] = token & ~ 3 ;\n goto end ;\n case 1 : s -> dct_tokens [ plane ] [ i ] ++ ;\n i += ( token >> 2 ) & 0x7f ;\n if ( i > 63 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Coefficient index overflow\\n\" ) ;\n return i ;\n }\n block [ perm [ i ] ] = ( token >> 9 ) * dequantizer [ perm [ i ] ] ;\n i ++ ;\n break ;\n case 2 : block [ perm [ i ] ] = ( token >> 2 ) * dequantizer [ perm [ i ] ] ;\n s -> dct_tokens [ plane ] [ i ++ ] ++ ;\n break ;\n default : return i ;\n }\n }\n while ( i < 64 ) ;\n i -- ;\n end : block [ 0 ] = frag -> dc * s -> qmat [ 0 ] [ inter ] [ plane ] [ 0 ] ;\n return i ;\n }"}
{"idx": 9138, "target": 0, "func": "static void idct4_sse2 ( __m128i * in ) {\n const __m128i k__cospi_p16_p16 = pair_set_epi16 ( cospi_16_64 , cospi_16_64 ) ;\n const __m128i k__cospi_p16_m16 = pair_set_epi16 ( cospi_16_64 , - cospi_16_64 ) ;\n const __m128i k__cospi_p24_m08 = pair_set_epi16 ( cospi_24_64 , - cospi_8_64 ) ;\n const __m128i k__cospi_p08_p24 = pair_set_epi16 ( cospi_8_64 , cospi_24_64 ) ;\n const __m128i k__DCT_CONST_ROUNDING = _mm_set1_epi32 ( DCT_CONST_ROUNDING ) ;\n __m128i u [ 8 ] , v [ 8 ] ;\n transpose_4x4 ( in ) ;\n u [ 0 ] = _mm_unpacklo_epi16 ( in [ 0 ] , in [ 1 ] ) ;\n u [ 1 ] = _mm_unpackhi_epi16 ( in [ 0 ] , in [ 1 ] ) ;\n v [ 0 ] = _mm_madd_epi16 ( u [ 0 ] , k__cospi_p16_p16 ) ;\n v [ 1 ] = _mm_madd_epi16 ( u [ 0 ] , k__cospi_p16_m16 ) ;\n v [ 2 ] = _mm_madd_epi16 ( u [ 1 ] , k__cospi_p24_m08 ) ;\n v [ 3 ] = _mm_madd_epi16 ( u [ 1 ] , k__cospi_p08_p24 ) ;\n u [ 0 ] = _mm_add_epi32 ( v [ 0 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 1 ] = _mm_add_epi32 ( v [ 1 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 2 ] = _mm_add_epi32 ( v [ 2 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 3 ] = _mm_add_epi32 ( v [ 3 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 0 ] = _mm_srai_epi32 ( u [ 0 ] , DCT_CONST_BITS ) ;\n v [ 1 ] = _mm_srai_epi32 ( u [ 1 ] , DCT_CONST_BITS ) ;\n v [ 2 ] = _mm_srai_epi32 ( u [ 2 ] , DCT_CONST_BITS ) ;\n v [ 3 ] = _mm_srai_epi32 ( u [ 3 ] , DCT_CONST_BITS ) ;\n u [ 0 ] = _mm_packs_epi32 ( v [ 0 ] , v [ 1 ] ) ;\n u [ 1 ] = _mm_packs_epi32 ( v [ 3 ] , v [ 2 ] ) ;\n in [ 0 ] = _mm_add_epi16 ( u [ 0 ] , u [ 1 ] ) ;\n in [ 1 ] = _mm_sub_epi16 ( u [ 0 ] , u [ 1 ] ) ;\n in [ 1 ] = _mm_shuffle_epi32 ( in [ 1 ] , 0x4E ) ;\n }"}
{"idx": 9139, "target": 0, "func": "static guint16 de_tp_epc_mbms_packet_counter_value ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n curr_offset = offset ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_dtap_epc_mbms_packet_counter_value , tvb , curr_offset << 3 , 32 , ENC_BIG_ENDIAN ) ;\n curr_offset += 4 ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 9140, "target": 0, "func": "struct block * compiler_add_ifblk ( struct ifblock * ifb , struct block * blk ) {\n struct block * bl ;\n SAFE_CALLOC ( bl , 1 , sizeof ( struct block ) ) ;\n bl -> type = BLK_IFBLK ;\n bl -> un . ifb = ifb ;\n bl -> next = blk ;\n return bl ;\n }"}
{"idx": 9141, "target": 1, "func": "int ff_h264_decode_ref_pic_list_reordering ( H264Context * h ) {\n int list , index , pic_structure ;\n print_short_term ( h ) ;\n print_long_term ( h ) ;\n for ( list = 0 ;\n list < h -> list_count ;\n list ++ ) {\n memcpy ( h -> ref_list [ list ] , h -> default_ref_list [ list ] , sizeof ( Picture ) * h -> ref_count [ list ] ) ;\n if ( get_bits1 ( & h -> gb ) ) {\n int pred = h -> curr_pic_num ;\n for ( index = 0 ;\n ;\n index ++ ) {\n unsigned int reordering_of_pic_nums_idc = get_ue_golomb_31 ( & h -> gb ) ;\n unsigned int pic_id ;\n int i ;\n Picture * ref = NULL ;\n if ( reordering_of_pic_nums_idc == 3 ) break ;\n if ( index >= h -> ref_count [ list ] ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"reference count overflow\\n\" ) ;\n return - 1 ;\n }\n if ( reordering_of_pic_nums_idc < 3 ) {\n if ( reordering_of_pic_nums_idc < 2 ) {\n const unsigned int abs_diff_pic_num = get_ue_golomb ( & h -> gb ) + 1 ;\n int frame_num ;\n if ( abs_diff_pic_num > h -> max_pic_num ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"abs_diff_pic_num overflow\\n\" ) ;\n return - 1 ;\n }\n if ( reordering_of_pic_nums_idc == 0 ) pred -= abs_diff_pic_num ;\n else pred += abs_diff_pic_num ;\n pred &= h -> max_pic_num - 1 ;\n frame_num = pic_num_extract ( h , pred , & pic_structure ) ;\n for ( i = h -> short_ref_count - 1 ;\n i >= 0 ;\n i -- ) {\n ref = h -> short_ref [ i ] ;\n assert ( ref -> f . reference ) ;\n assert ( ! ref -> long_ref ) ;\n if ( ref -> frame_num == frame_num && ( ref -> f . reference & pic_structure ) ) break ;\n }\n if ( i >= 0 ) ref -> pic_id = pred ;\n }\n else {\n int long_idx ;\n pic_id = get_ue_golomb ( & h -> gb ) ;\n long_idx = pic_num_extract ( h , pic_id , & pic_structure ) ;\n if ( long_idx > 31 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"long_term_pic_idx overflow\\n\" ) ;\n return - 1 ;\n }\n ref = h -> long_ref [ long_idx ] ;\n assert ( ! ( ref && ! ref -> f . reference ) ) ;\n if ( ref && ( ref -> f . reference & pic_structure ) ) {\n ref -> pic_id = pic_id ;\n assert ( ref -> long_ref ) ;\n i = 0 ;\n }\n else {\n i = - 1 ;\n }\n }\n if ( i < 0 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"reference picture missing during reorder\\n\" ) ;\n memset ( & h -> ref_list [ list ] [ index ] , 0 , sizeof ( Picture ) ) ;\n }\n else {\n for ( i = index ;\n i + 1 < h -> ref_count [ list ] ;\n i ++ ) {\n if ( ref -> long_ref == h -> ref_list [ list ] [ i ] . long_ref && ref -> pic_id == h -> ref_list [ list ] [ i ] . pic_id ) break ;\n }\n for ( ;\n i > index ;\n i -- ) {\n h -> ref_list [ list ] [ i ] = h -> ref_list [ list ] [ i - 1 ] ;\n }\n h -> ref_list [ list ] [ index ] = * ref ;\n if ( FIELD_PICTURE ) {\n pic_as_field ( & h -> ref_list [ list ] [ index ] , pic_structure ) ;\n }\n }\n }\n else {\n av_log ( h -> avctx , AV_LOG_ERROR , \"illegal reordering_of_pic_nums_idc\\n\" ) ;\n return - 1 ;\n }\n }\n }\n }\n for ( list = 0 ;\n list < h -> list_count ;\n list ++ ) {\n for ( index = 0 ;\n index < h -> ref_count [ list ] ;\n index ++ ) {\n if ( ! h -> ref_list [ list ] [ index ] . f . data [ 0 ] ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"Missing reference picture\\n\" ) ;\n if ( h -> default_ref_list [ list ] [ 0 ] . f . data [ 0 ] ) h -> ref_list [ list ] [ index ] = h -> default_ref_list [ list ] [ 0 ] ;\n else return - 1 ;\n }\n }\n }\n return 0 ;\n }"}
{"idx": 9142, "target": 0, "func": "static int try_rshrink_right ( MAIN_WINDOW_REC * window , int count ) {\n MAIN_WINDOW_REC * shrink_win ;\n shrink_win = mainwindows_find_right ( window , FALSE ) ;\n if ( shrink_win != NULL ) {\n if ( MAIN_WINDOW_TEXT_WIDTH ( shrink_win ) - count < NEW_WINDOW_WIDTH ) {\n return FALSE ;\n }\n shrink_win -> first_column += count ;\n window -> last_column += count ;\n mainwindows_rresize_two ( window , shrink_win , count ) ;\n return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 9143, "target": 0, "func": "void lock_memory ( MI_CHECK * param __attribute__ ( ( unused ) ) ) {\n # ifdef SUN_OS if ( param -> opt_lock_memory ) {\n int success = mlockall ( MCL_CURRENT ) ;\n if ( geteuid ( ) == 0 && success != 0 ) mi_check_print_warning ( param , \"Failed to lock memory. errno %d\" , my_errno ) ;\n }\n # endif }"}
{"idx": 9144, "target": 0, "func": "static guint32 get_message_header_endianness ( tvbuff_t * tvb , gint offset ) {\n guint8 endianness ;\n guint encoding ;\n endianness = tvb_get_guint8 ( tvb , offset + ENDIANNESS_OFFSET ) ;\n switch ( endianness ) {\n case 'l' : encoding = ENC_LITTLE_ENDIAN ;\n break ;\n case 'B' : encoding = ENC_BIG_ENDIAN ;\n break ;\n default : encoding = ENC_ALLJOYN_BAD_ENCODING ;\n break ;\n }\n return encoding ;\n }"}
{"idx": 9145, "target": 1, "func": "int gs_nulldevice ( gs_gstate * pgs ) {\n int code = 0 ;\n if ( pgs -> device == 0 || ! gx_device_is_null ( pgs -> device ) ) {\n gx_device * ndev ;\n code = gs_copydevice ( & ndev , ( const gx_device * ) & gs_null_device , pgs -> memory ) ;\n if ( code < 0 ) return code ;\n rc_init ( ndev , pgs -> memory , 0 ) ;\n if ( pgs -> device != NULL ) {\n if ( ( code = dev_proc ( pgs -> device , get_profile ) ( pgs -> device , & ( ndev -> icc_struct ) ) ) < 0 ) return code ;\n rc_increment ( ndev -> icc_struct ) ;\n set_dev_proc ( ndev , get_profile , gx_default_get_profile ) ;\n }\n if ( ( code = gs_setdevice_no_erase ( pgs , ndev ) ) < 0 ) gs_free_object ( pgs -> memory , ndev , \"gs_copydevice(device)\" ) ;\n }\n return code ;\n }"}
{"idx": 9146, "target": 0, "func": "void commit_command_data ( int cmd ) {\n char error_string [ MAX_INPUT_BUFFER ] ;\n service * temp_service ;\n host * temp_host ;\n hostgroup * temp_hostgroup ;\n comment * temp_comment ;\n scheduled_downtime * temp_downtime ;\n servicegroup * temp_servicegroup = NULL ;\n contact * temp_contact = NULL ;\n int x = 0 ;\n int e = 0 ;\n short error_found = FALSE ;\n short cmd_has_objects = FALSE ;\n short row_color = 0 ;\n get_authentication_information ( & current_authdata ) ;\n is_authorized [ x ] = FALSE ;\n if ( lock_author_names == TRUE ) {\n temp_contact = find_contact ( current_authdata . username ) ;\n if ( temp_contact != NULL && temp_contact -> alias != NULL ) comment_author = temp_contact -> alias ;\n else comment_author = current_authdata . username ;\n }\n switch ( cmd ) {\n case CMD_ADD_HOST_COMMENT : case CMD_ADD_SVC_COMMENT : case CMD_ACKNOWLEDGE_HOST_PROBLEM : case CMD_ACKNOWLEDGE_SVC_PROBLEM : case CMD_SEND_CUSTOM_HOST_NOTIFICATION : case CMD_SEND_CUSTOM_SVC_NOTIFICATION : check_comment_sanity ( & e ) ;\n clean_comment_data ( comment_author ) ;\n clean_comment_data ( comment_data ) ;\n if ( use_ack_end_time == TRUE && ( cmd == CMD_ACKNOWLEDGE_HOST_PROBLEM || cmd == CMD_ACKNOWLEDGE_SVC_PROBLEM ) ) {\n time ( & start_time ) ;\n check_time_sanity ( & e ) ;\n }\n else end_time = 0L ;\n for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n cmd_has_objects = TRUE ;\n if ( commands [ x ] . host_name == NULL ) continue ;\n is_authorized [ x ] = FALSE ;\n if ( cmd == CMD_ADD_HOST_COMMENT || cmd == CMD_ACKNOWLEDGE_HOST_PROBLEM || cmd == CMD_SEND_CUSTOM_HOST_NOTIFICATION ) {\n temp_host = find_host ( commands [ x ] . host_name ) ;\n if ( is_authorized_for_host_commands ( temp_host , & current_authdata ) == TRUE ) is_authorized [ x ] = TRUE ;\n }\n else {\n temp_service = find_service ( commands [ x ] . host_name , commands [ x ] . description ) ;\n if ( is_authorized_for_service_commands ( temp_service , & current_authdata ) == TRUE ) is_authorized [ x ] = TRUE ;\n }\n }\n break ;\n case CMD_DEL_HOST_COMMENT : case CMD_DEL_SVC_COMMENT : if ( enforce_comments_on_actions == TRUE ) {\n check_comment_sanity ( & e ) ;\n clean_comment_data ( comment_author ) ;\n clean_comment_data ( comment_data ) ;\n }\n for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n cmd_has_objects = TRUE ;\n if ( multi_ids [ x ] == FALSE ) continue ;\n if ( multi_ids [ x ] == 0 ) {\n error [ e ++ ] . message = strdup ( \"Comment id cannot be 0\" ) ;\n continue ;\n }\n if ( cmd == CMD_DEL_HOST_COMMENT ) temp_comment = find_host_comment ( multi_ids [ x ] ) ;\n else temp_comment = find_service_comment ( multi_ids [ x ] ) ;\n is_authorized [ x ] = FALSE ;\n if ( cmd == CMD_DEL_HOST_COMMENT && temp_comment != NULL ) {\n temp_host = find_host ( temp_comment -> host_name ) ;\n if ( is_authorized_for_host_commands ( temp_host , & current_authdata ) == TRUE ) is_authorized [ x ] = TRUE ;\n }\n if ( cmd == CMD_DEL_SVC_COMMENT && temp_comment != NULL ) {\n temp_service = find_service ( temp_comment -> host_name , temp_comment -> service_description ) ;\n if ( is_authorized_for_service_commands ( temp_service , & current_authdata ) == TRUE ) is_authorized [ x ] = TRUE ;\n }\n }\n free_comment_data ( ) ;\n break ;\n case CMD_DEL_HOST_DOWNTIME : case CMD_DEL_SVC_DOWNTIME : if ( enforce_comments_on_actions == TRUE ) {\n check_comment_sanity ( & e ) ;\n clean_comment_data ( comment_author ) ;\n clean_comment_data ( comment_data ) ;\n }\n for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n cmd_has_objects = TRUE ;\n if ( multi_ids [ x ] == FALSE ) continue ;\n if ( multi_ids [ x ] == 0 ) {\n error [ e ++ ] . message = strdup ( \"Downtime id cannot be 0\" ) ;\n continue ;\n }\n if ( cmd == CMD_DEL_HOST_DOWNTIME ) temp_downtime = find_host_downtime ( multi_ids [ x ] ) ;\n else temp_downtime = find_service_downtime ( multi_ids [ x ] ) ;\n is_authorized [ x ] = FALSE ;\n if ( cmd == CMD_DEL_HOST_DOWNTIME && temp_downtime != NULL ) {\n temp_host = find_host ( temp_downtime -> host_name ) ;\n if ( is_authorized_for_host_commands ( temp_host , & current_authdata ) == TRUE ) is_authorized [ x ] = TRUE ;\n }\n if ( cmd == CMD_DEL_SVC_DOWNTIME && temp_downtime != NULL ) {\n temp_service = find_service ( temp_downtime -> host_name , temp_downtime -> service_description ) ;\n if ( is_authorized_for_service_commands ( temp_service , & current_authdata ) == TRUE ) is_authorized [ x ] = TRUE ;\n }\n }\n free_downtime_data ( ) ;\n break ;\n case CMD_SCHEDULE_SVC_CHECK : case CMD_ENABLE_SVC_CHECK : case CMD_DISABLE_SVC_CHECK : case CMD_DEL_ALL_SVC_COMMENTS : case CMD_ENABLE_SVC_NOTIFICATIONS : case CMD_DISABLE_SVC_NOTIFICATIONS : case CMD_ENABLE_PASSIVE_SVC_CHECKS : case CMD_DISABLE_PASSIVE_SVC_CHECKS : case CMD_ENABLE_SVC_EVENT_HANDLER : case CMD_DISABLE_SVC_EVENT_HANDLER : case CMD_REMOVE_SVC_ACKNOWLEDGEMENT : case CMD_PROCESS_SERVICE_CHECK_RESULT : case CMD_SCHEDULE_SVC_DOWNTIME : case CMD_DELAY_SVC_NOTIFICATION : case CMD_ENABLE_SVC_FLAP_DETECTION : case CMD_DISABLE_SVC_FLAP_DETECTION : case CMD_START_OBSESSING_OVER_SVC : case CMD_STOP_OBSESSING_OVER_SVC : if ( cmd == CMD_SCHEDULE_SVC_DOWNTIME || enforce_comments_on_actions == TRUE ) {\n check_comment_sanity ( & e ) ;\n if ( cmd == CMD_SCHEDULE_SVC_DOWNTIME ) check_time_sanity ( & e ) ;\n clean_comment_data ( comment_author ) ;\n clean_comment_data ( comment_data ) ;\n }\n for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n cmd_has_objects = TRUE ;\n if ( commands [ x ] . host_name == NULL || commands [ x ] . description == NULL ) continue ;\n is_authorized [ x ] = FALSE ;\n temp_service = find_service ( commands [ x ] . host_name , commands [ x ] . description ) ;\n if ( is_authorized_for_service_commands ( temp_service , & current_authdata ) == TRUE ) is_authorized [ x ] = TRUE ;\n }\n if ( cmd == CMD_PROCESS_SERVICE_CHECK_RESULT && ! strcmp ( plugin_output , \"\" ) ) error [ e ++ ] . message = strdup ( \"Check output cannot be blank\" ) ;\n if ( cmd == CMD_DELAY_SVC_NOTIFICATION && notification_delay <= 0 ) error [ e ++ ] . message = strdup ( \"Notification delay must be greater than 0\" ) ;\n if ( cmd == CMD_SCHEDULE_SVC_CHECK && start_time == ( time_t ) 0 ) error [ e ++ ] . message = strdup ( \"Start time must be non-zero or bad format has been submitted\" ) ;\n break ;\n case CMD_ENABLE_NOTIFICATIONS : case CMD_DISABLE_NOTIFICATIONS : case CMD_SHUTDOWN_PROCESS : case CMD_RESTART_PROCESS : case CMD_START_EXECUTING_SVC_CHECKS : case CMD_STOP_EXECUTING_SVC_CHECKS : case CMD_START_ACCEPTING_PASSIVE_SVC_CHECKS : case CMD_STOP_ACCEPTING_PASSIVE_SVC_CHECKS : case CMD_ENABLE_EVENT_HANDLERS : case CMD_DISABLE_EVENT_HANDLERS : case CMD_START_OBSESSING_OVER_SVC_CHECKS : case CMD_STOP_OBSESSING_OVER_SVC_CHECKS : case CMD_ENABLE_FLAP_DETECTION : case CMD_DISABLE_FLAP_DETECTION : case CMD_ENABLE_FAILURE_PREDICTION : case CMD_DISABLE_FAILURE_PREDICTION : case CMD_ENABLE_PERFORMANCE_DATA : case CMD_DISABLE_PERFORMANCE_DATA : case CMD_START_EXECUTING_HOST_CHECKS : case CMD_STOP_EXECUTING_HOST_CHECKS : case CMD_START_ACCEPTING_PASSIVE_HOST_CHECKS : case CMD_STOP_ACCEPTING_PASSIVE_HOST_CHECKS : case CMD_START_OBSESSING_OVER_HOST_CHECKS : case CMD_STOP_OBSESSING_OVER_HOST_CHECKS : if ( use_disabled_notif_end_time == TRUE && cmd == CMD_DISABLE_NOTIFICATIONS ) {\n time ( & start_time ) ;\n check_time_sanity ( & e ) ;\n }\n else end_time = 0L ;\n if ( enforce_comments_on_actions == TRUE ) {\n check_comment_sanity ( & e ) ;\n clean_comment_data ( comment_author ) ;\n clean_comment_data ( comment_data ) ;\n }\n is_authorized [ x ] = FALSE ;\n if ( is_authorized_for_system_commands ( & current_authdata ) == TRUE ) is_authorized [ x ] = TRUE ;\n break ;\n case CMD_ENABLE_HOST_SVC_CHECKS : case CMD_DISABLE_HOST_SVC_CHECKS : case CMD_DEL_ALL_HOST_COMMENTS : case CMD_SCHEDULE_HOST_SVC_CHECKS : case CMD_ENABLE_HOST_NOTIFICATIONS : case CMD_DISABLE_HOST_NOTIFICATIONS : case CMD_ENABLE_ALL_NOTIFICATIONS_BEYOND_HOST : case CMD_DISABLE_ALL_NOTIFICATIONS_BEYOND_HOST : case CMD_ENABLE_HOST_SVC_NOTIFICATIONS : case CMD_DISABLE_HOST_SVC_NOTIFICATIONS : case CMD_ENABLE_HOST_EVENT_HANDLER : case CMD_DISABLE_HOST_EVENT_HANDLER : case CMD_ENABLE_HOST_CHECK : case CMD_DISABLE_HOST_CHECK : case CMD_REMOVE_HOST_ACKNOWLEDGEMENT : case CMD_SCHEDULE_HOST_DOWNTIME : case CMD_SCHEDULE_HOST_SVC_DOWNTIME : case CMD_DELAY_HOST_NOTIFICATION : case CMD_ENABLE_HOST_FLAP_DETECTION : case CMD_DISABLE_HOST_FLAP_DETECTION : case CMD_PROCESS_HOST_CHECK_RESULT : case CMD_ENABLE_PASSIVE_HOST_CHECKS : case CMD_DISABLE_PASSIVE_HOST_CHECKS : case CMD_SCHEDULE_HOST_CHECK : case CMD_START_OBSESSING_OVER_HOST : case CMD_STOP_OBSESSING_OVER_HOST : case CMD_DEL_DOWNTIME_BY_HOST_NAME : if ( cmd == CMD_SCHEDULE_HOST_DOWNTIME || cmd == CMD_SCHEDULE_HOST_SVC_DOWNTIME || enforce_comments_on_actions == TRUE ) {\n check_comment_sanity ( & e ) ;\n if ( cmd == CMD_SCHEDULE_HOST_DOWNTIME || cmd == CMD_SCHEDULE_HOST_SVC_DOWNTIME ) check_time_sanity ( & e ) ;\n clean_comment_data ( comment_author ) ;\n clean_comment_data ( comment_data ) ;\n }\n for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n cmd_has_objects = TRUE ;\n if ( commands [ x ] . host_name == NULL ) continue ;\n is_authorized [ x ] = FALSE ;\n temp_host = find_host ( commands [ x ] . host_name ) ;\n if ( is_authorized_for_host_commands ( temp_host , & current_authdata ) == TRUE ) is_authorized [ x ] = TRUE ;\n }\n if ( cmd == CMD_DELAY_HOST_NOTIFICATION && notification_delay <= 0 ) error [ e ++ ] . message = strdup ( \"Notification delay must be greater than 0\" ) ;\n if ( ( cmd == CMD_SCHEDULE_HOST_CHECK || cmd == CMD_SCHEDULE_HOST_SVC_CHECKS ) && start_time == ( time_t ) 0 ) error [ e ++ ] . message = strdup ( \"Start time must be non-zero or bad format has been submitted\" ) ;\n if ( cmd == CMD_PROCESS_HOST_CHECK_RESULT && ! strcmp ( plugin_output , \"\" ) ) error [ e ++ ] . message = strdup ( \"Check output cannot be blank\" ) ;\n break ;\n case CMD_ENABLE_HOSTGROUP_SVC_NOTIFICATIONS : case CMD_DISABLE_HOSTGROUP_SVC_NOTIFICATIONS : case CMD_ENABLE_HOSTGROUP_HOST_NOTIFICATIONS : case CMD_DISABLE_HOSTGROUP_HOST_NOTIFICATIONS : case CMD_ENABLE_HOSTGROUP_SVC_CHECKS : case CMD_DISABLE_HOSTGROUP_SVC_CHECKS : case CMD_SCHEDULE_HOSTGROUP_HOST_DOWNTIME : case CMD_SCHEDULE_HOSTGROUP_SVC_DOWNTIME : case CMD_ENABLE_SERVICEGROUP_SVC_NOTIFICATIONS : case CMD_DISABLE_SERVICEGROUP_SVC_NOTIFICATIONS : case CMD_ENABLE_SERVICEGROUP_HOST_NOTIFICATIONS : case CMD_DISABLE_SERVICEGROUP_HOST_NOTIFICATIONS : case CMD_ENABLE_SERVICEGROUP_SVC_CHECKS : case CMD_DISABLE_SERVICEGROUP_SVC_CHECKS : case CMD_SCHEDULE_SERVICEGROUP_HOST_DOWNTIME : case CMD_SCHEDULE_SERVICEGROUP_SVC_DOWNTIME : if ( cmd == CMD_SCHEDULE_SERVICEGROUP_HOST_DOWNTIME || cmd == CMD_SCHEDULE_SERVICEGROUP_SVC_DOWNTIME || cmd == CMD_SCHEDULE_HOSTGROUP_HOST_DOWNTIME || cmd == CMD_SCHEDULE_HOSTGROUP_SVC_DOWNTIME ) {\n check_comment_sanity ( & e ) ;\n check_time_sanity ( & e ) ;\n clean_comment_data ( comment_author ) ;\n clean_comment_data ( comment_data ) ;\n }\n else if ( enforce_comments_on_actions == TRUE ) {\n check_comment_sanity ( & e ) ;\n clean_comment_data ( comment_author ) ;\n clean_comment_data ( comment_data ) ;\n }\n is_authorized [ x ] = FALSE ;\n if ( cmd == CMD_ENABLE_HOSTGROUP_SVC_NOTIFICATIONS || cmd == CMD_DISABLE_HOSTGROUP_SVC_NOTIFICATIONS || cmd == CMD_ENABLE_HOSTGROUP_HOST_NOTIFICATIONS || cmd == CMD_DISABLE_HOSTGROUP_HOST_NOTIFICATIONS || cmd == CMD_ENABLE_HOSTGROUP_SVC_CHECKS || cmd == CMD_DISABLE_HOSTGROUP_SVC_CHECKS || cmd == CMD_SCHEDULE_HOSTGROUP_HOST_DOWNTIME || cmd == CMD_SCHEDULE_HOSTGROUP_SVC_DOWNTIME ) {\n temp_hostgroup = find_hostgroup ( hostgroup_name ) ;\n if ( is_authorized_for_hostgroup_commands ( temp_hostgroup , & current_authdata ) == TRUE ) is_authorized [ x ] = TRUE ;\n }\n else {\n temp_servicegroup = find_servicegroup ( servicegroup_name ) ;\n if ( is_authorized_for_servicegroup_commands ( temp_servicegroup , & current_authdata ) == TRUE ) is_authorized [ x ] = TRUE ;\n }\n break ;\n case CMD_CHANGE_HOST_MODATTR : case CMD_CHANGE_SVC_MODATTR : for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n cmd_has_objects = TRUE ;\n if ( commands [ x ] . host_name == NULL ) continue ;\n is_authorized [ x ] = FALSE ;\n if ( cmd == CMD_CHANGE_HOST_MODATTR ) {\n temp_host = find_host ( commands [ x ] . host_name ) ;\n if ( is_authorized_for_host_commands ( temp_host , & current_authdata ) == TRUE ) is_authorized [ x ] = TRUE ;\n }\n else {\n temp_service = find_service ( commands [ x ] . host_name , commands [ x ] . description ) ;\n if ( is_authorized_for_service_commands ( temp_service , & current_authdata ) == TRUE ) is_authorized [ x ] = TRUE ;\n }\n if ( attr != MODATTR_NONE ) {\n error [ e ++ ] . message = strdup ( \"You cannot change modified attributes other than reset them!\" ) ;\n }\n }\n break ;\n default : print_generic_error_message ( \"Sorry Dave, I can't let you do that...\" , \"Executing an unknown command? Shame on you!\" , 2 ) ;\n return ;\n }\n for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n if ( commands [ x ] . host_name == NULL ) continue ;\n if ( strchr ( commands [ x ] . host_name , ';\n' ) ) {\n snprintf ( error_string , sizeof ( error_string ) , \"The hostname \\\"%s\\\" contains a semicolon\" , commands [ x ] . host_name ) ;\n error_string [ sizeof ( error_string ) - 1 ] = '\\x0' ;\n error [ e ++ ] . message = ( char * ) strdup ( error_string ) ;\n }\n if ( commands [ x ] . description != NULL && strchr ( commands [ x ] . description , ';\n' ) ) {\n snprintf ( error_string , sizeof ( error_string ) , \"The service description \\\"%s\\\" on host \\\"%s\\\" contains a semicolon\" , commands [ x ] . description , commands [ x ] . host_name ) ;\n error_string [ sizeof ( error_string ) - 1 ] = '\\x0' ;\n error [ e ++ ] . message = strdup ( error_string ) ;\n }\n }\n if ( hostgroup_name && strchr ( hostgroup_name , ';\n' ) ) error [ e ++ ] . message = strdup ( \"The hostgroup name contains a semicolon\" ) ;\n if ( servicegroup_name && strchr ( servicegroup_name , ';\n' ) ) error [ e ++ ] . message = strdup ( \"The servicegroup name contains a semicolon\" ) ;\n printf ( \"<BR><DIV align='center'>\\n\" ) ;\n if ( check_external_commands == FALSE ) {\n print_generic_error_message ( \"Sorry, but Icinga is currently not checking for external commands, so your command will not be committed!\" , \"Read the documentation for information on how to enable external commands...\" , 2 ) ;\n return ;\n }\n if ( use_authentication == FALSE ) {\n print_generic_error_message ( \"Sorry Dave, I can't let you do that...\" , \"It seems that you have chosen to not use the authentication functionality of the CGIs. I don't want to be personally responsible for what may happen as a result of allowing unauthorized users to issue commands to Icinga, so you'll have to disable this safeguard if you are really stubborn and want to invite trouble. Read the section on CGI authentication in the HTML documentation to learn how you can enable authentication and why you should want to.\" , 2 ) ;\n return ;\n }\n if ( e > 0 ) {\n printf ( \"<DIV CLASS='errorBox'>\\n\" ) ;\n printf ( \"<DIV CLASS='errorMessage'><table cellspacing=0 cellpadding=0 border=0><tr><td width=55><img src=\\\"%s%s\\\" border=0></td>\" , url_images_path , CMD_STOP_ICON ) ;\n printf ( \"<td CLASS='errorMessage'>Following errors occured.</td></tr></table></DIV>\\n\" ) ;\n printf ( \"<table cellspacing=0 cellpadding=0 border=0 class='errorTable'>\\n\" ) ;\n for ( e = 0 ;\n e < NUMBER_OF_STRUCTS ;\n e ++ ) {\n if ( error [ e ] . message == NULL ) continue ;\n printf ( \"<tr><td class='errorString'>ERROR:</td><td class='errorContent'>%s</td></tr>\\n\" , error [ e ] . message ) ;\n }\n printf ( \"</table>\\n</DIV>\\n\" ) ;\n printf ( \"<BR>\\n\" ) ;\n printf ( \"<table cellspacing=0 cellpadding=0 border=0 class='BoxWidth'><tr>\\n\" ) ;\n printf ( \"<td align='left' width='50%%'><input type='submit' value='< Go back and fix it' onClick='window.history.go(-1);\n' class='submitButton'></td>\\n\" ) ;\n printf ( \"<td align='right' width='50%%'><input type='submit' value='Get me out of here' onClick='window.history.go(-2);\n' class='submitButton'></td>\\n\" ) ;\n printf ( \"</tr></table></DIV>\" ) ;\n return ;\n }\n if ( cmd_has_objects == FALSE && is_authorized [ 0 ] == FALSE ) {\n print_generic_error_message ( \"Sorry, but you are not authorized to commit the specified command.\" , \"Read the section of the documentation that deals with authentication and authorization in the CGIs for more information.\" , 2 ) ;\n return ;\n }\n commit_command ( cmd ) ;\n if ( cmd_has_objects == FALSE ) {\n if ( submit_result [ 0 ] == OK ) {\n printf ( \"<DIV CLASS='successBox'>\\n\" ) ;\n printf ( \"<DIV CLASS='successMessage'>Your command request was successfully submitted to %s for processing.<BR><BR>\\n\" , PROGRAM_NAME ) ;\n printf ( \"Note: It may take a while before the command is actually processed.</DIV>\\n\" ) ;\n printf ( \"</DIV>\\n\" ) ;\n printf ( \"<BR><input type='submit' value='Done' onClick='window.history.go(-2);\n' class='submitButton'></DIV>\\n\" ) ;\n }\n else {\n print_generic_error_message ( \"An error occurred while attempting to commit your command for processing.\" , \"Unfortunately I can't determine the root cause of this problem.\" , 2 ) ;\n }\n }\n else {\n for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n if ( cmd == CMD_DEL_HOST_COMMENT || cmd == CMD_DEL_SVC_COMMENT || cmd == CMD_DEL_HOST_DOWNTIME || cmd == CMD_DEL_SVC_DOWNTIME ) {\n if ( multi_ids [ x ] == FALSE ) continue ;\n }\n else {\n if ( commands [ x ] . host_name == NULL ) continue ;\n }\n if ( is_authorized [ x ] == FALSE || submit_result [ x ] == ERROR ) {\n error_found = TRUE ;\n break ;\n }\n }\n if ( error_found ) {\n print_generic_error_message ( \"An error occurred while attempting to commit your command for processing.\" , \"Not all commands could be send off successfully...\" , 0 ) ;\n }\n else {\n printf ( \"<DIV CLASS='successBox'>\\n\" ) ;\n printf ( \"<DIV CLASS='successMessage'>Your command requests were successfully submitted to %s for processing.<BR><BR>\\n\" , PROGRAM_NAME ) ;\n printf ( \"Note: It may take a while before the commands are actually processed.</DIV>\\n\" ) ;\n printf ( \"</DIV>\\n\" ) ;\n }\n printf ( \"<BR>\\n\" ) ;\n printf ( \"<TABLE CELLSPACING='0' CELLPADDING=0 BORDER=0 CLASS='BoxWidth'>\\n\" ) ;\n printf ( \"<tr class='BoxWidth'><td width='33%%'></td><td width='33%%' align='center'><input type='submit' value='Done' onClick='window.history.go(-2);\n' class='submitButton'></td><td width='33%%' align='right'>\\n\" ) ;\n if ( ! error_found ) printf ( \"<input type='submit' value='Let me see what has been done' onClick=\\\"document.getElementById('sumCommit').style.display = '';\n\\\" class='submitButton'>\\n\" ) ;\n printf ( \"</td></TR></TABLE>\\n\" ) ;\n printf ( \"<BR><BR>\\n\" ) ;\n printf ( \"<TABLE CELLSPACING='0' CELLPADDING='0' ID='sumCommit' %s><TR><TD CLASS='boxFrame BoxWidth'>\\n\" , ( error_found ) ? \"\" : \"style='display:none;\n'\" ) ;\n printf ( \"<table cellspacing=2 cellpadding=0 border=0 class='contentTable'>\\n\" ) ;\n if ( cmd == CMD_DEL_HOST_COMMENT || cmd == CMD_DEL_SVC_COMMENT ) printf ( \"<tr class='sumHeader'><td width='80%%'>Comment ID</td><td width='20%%'>Status</td></tr>\\n\" ) ;\n else if ( cmd == CMD_DEL_HOST_DOWNTIME || cmd == CMD_DEL_SVC_DOWNTIME ) printf ( \"<tr class='sumHeader'><td width='80%%'>Downtime ID</td><td width='20%%'>Status</td></tr>\\n\" ) ;\n else printf ( \"<tr class='sumHeader'><td width='40%%'>Host</td><td width='40%%'>Service</td><td width='20%%'>Status</td></tr>\\n\" ) ;\n for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n if ( cmd == CMD_DEL_HOST_COMMENT || cmd == CMD_DEL_SVC_COMMENT || cmd == CMD_DEL_HOST_DOWNTIME || cmd == CMD_DEL_SVC_DOWNTIME ) {\n if ( multi_ids [ x ] == FALSE ) continue ;\n row_color = ( row_color == 0 ) ? 1 : 0 ;\n printf ( \"<tr class='status%s'><td>%lu</td><td>\" , ( row_color == 0 ) ? \"Even\" : \"Odd \" , multi_ids [ x ] ) ;\n }\n else {\n if ( commands [ x ] . host_name == NULL ) continue ;\n row_color = ( row_color == 0 ) ? 1 : 0 ;\n printf ( \"<tr class='status%s'><td>%s</td><td>%s</td><td>\" , ( row_color == 0 ) ? \"Even\" : \"Odd \" , commands [ x ] . host_name , ( commands [ x ] . description != NULL ) ? commands [ x ] . description : \"N/A\" ) ;\n }\n if ( is_authorized [ x ] == FALSE ) printf ( \"<DIV class='commitFailed'>Not Authorized</DIV>\" ) ;\n else if ( submit_result [ x ] == ERROR ) printf ( \"<DIV class='commitFailed'>FAILED</DIV>\" ) ;\n else if ( submit_result [ x ] == OK ) printf ( \"<DIV class='commitSuccess'>Successful</DIV>\" ) ;\n else printf ( \"<DIV class='commitUnknown'>Unknown</DIV>\" ) ;\n printf ( \"</TD><TR>\\n\" ) ;\n }\n printf ( \"</TABLE>\\n\" ) ;\n printf ( \"</TD></TR></TABLE></DIV>\\n\" ) ;\n }\n return ;\n }"}
{"idx": 9147, "target": 0, "func": "int kvm_arch_handle_exit ( CPUState * cs , struct kvm_run * run ) {\n X86CPU * cpu = X86_CPU ( cs ) ;\n uint64_t code ;\n int ret ;\n switch ( run -> exit_reason ) {\n case KVM_EXIT_HLT : DPRINTF ( \"handle_hlt\\n\" ) ;\n qemu_mutex_lock_iothread ( ) ;\n ret = kvm_handle_halt ( cpu ) ;\n qemu_mutex_unlock_iothread ( ) ;\n break ;\n case KVM_EXIT_SET_TPR : ret = 0 ;\n break ;\n case KVM_EXIT_TPR_ACCESS : qemu_mutex_lock_iothread ( ) ;\n ret = kvm_handle_tpr_access ( cpu ) ;\n qemu_mutex_unlock_iothread ( ) ;\n break ;\n case KVM_EXIT_FAIL_ENTRY : code = run -> fail_entry . hardware_entry_failure_reason ;\n fprintf ( stderr , \"KVM: entry failed, hardware error 0x%\" PRIx64 \"\\n\" , code ) ;\n if ( host_supports_vmx ( ) && code == VMX_INVALID_GUEST_STATE ) {\n fprintf ( stderr , \"\\nIf you're running a guest on an Intel machine without \" \"unrestricted mode\\n\" \"support, the failure can be most likely due to the guest \" \"entering an invalid\\n\" \"state for Intel VT. For example, the guest maybe running \" \"in big real mode\\n\" \"which is not supported on less recent Intel processors.\" \"\\n\\n\" ) ;\n }\n ret = - 1 ;\n break ;\n case KVM_EXIT_EXCEPTION : fprintf ( stderr , \"KVM: exception %d exit (error code 0x%x)\\n\" , run -> ex . exception , run -> ex . error_code ) ;\n ret = - 1 ;\n break ;\n case KVM_EXIT_DEBUG : DPRINTF ( \"kvm_exit_debug\\n\" ) ;\n qemu_mutex_lock_iothread ( ) ;\n ret = kvm_handle_debug ( cpu , & run -> debug . arch ) ;\n qemu_mutex_unlock_iothread ( ) ;\n break ;\n case KVM_EXIT_HYPERV : ret = kvm_hv_handle_exit ( cpu , & run -> hyperv ) ;\n break ;\n case KVM_EXIT_IOAPIC_EOI : ioapic_eoi_broadcast ( run -> eoi . vector ) ;\n ret = 0 ;\n break ;\n default : fprintf ( stderr , \"KVM: unknown exit reason %d\\n\" , run -> exit_reason ) ;\n ret = - 1 ;\n break ;\n }\n return ret ;\n }"}
{"idx": 9148, "target": 0, "func": "bool add_terminator ( DYNAMIC_ARRAY * options ) {\n my_option empty_element = {\n 0 , 0 , 0 , 0 , 0 , 0 , GET_NO_ARG , NO_ARG , 0 , 0 , 0 , 0 , 0 , 0 }\n ;\n return insert_dynamic ( options , ( uchar * ) & empty_element ) ;\n }"}
{"idx": 9149, "target": 0, "func": "TEST_F ( TransportSecurityPersisterTest , SerializeData3 ) {\n net : : HashValue fp1 ( net : : HASH_VALUE_SHA1 ) ;\n memset ( fp1 . data ( ) , 0 , fp1 . size ( ) ) ;\n net : : HashValue fp2 ( net : : HASH_VALUE_SHA1 ) ;\n memset ( fp2 . data ( ) , 1 , fp2 . size ( ) ) ;\n base : : Time expiry = base : : Time : : Now ( ) + base : : TimeDelta : : FromSeconds ( 1000 ) ;\n net : : HashValueVector dynamic_spki_hashes ;\n dynamic_spki_hashes . push_back ( fp1 ) ;\n dynamic_spki_hashes . push_back ( fp2 ) ;\n bool include_subdomains = false ;\n state_ . AddHSTS ( \"www.example.com\" , expiry , include_subdomains ) ;\n state_ . AddHPKP ( \"www.example.com\" , expiry , include_subdomains , dynamic_spki_hashes ) ;\n memset ( fp1 . data ( ) , 2 , fp1 . size ( ) ) ;\n memset ( fp2 . data ( ) , 3 , fp2 . size ( ) ) ;\n expiry = base : : Time : : Now ( ) + base : : TimeDelta : : FromSeconds ( 3000 ) ;\n dynamic_spki_hashes . push_back ( fp1 ) ;\n dynamic_spki_hashes . push_back ( fp2 ) ;\n state_ . AddHSTS ( \"www.example.net\" , expiry , include_subdomains ) ;\n state_ . AddHPKP ( \"www.example.net\" , expiry , include_subdomains , dynamic_spki_hashes ) ;\n std : : map < std : : string , TransportSecurityState : : DomainState > saved ;\n TransportSecurityState : : Iterator i ( state_ ) ;\n while ( i . HasNext ( ) ) {\n saved [ i . hostname ( ) ] = i . domain_state ( ) ;\n i . Advance ( ) ;\n }\n std : : string serialized ;\n EXPECT_TRUE ( persister_ -> SerializeData ( & serialized ) ) ;\n base : : FilePath path = temp_dir_ . path ( ) . AppendASCII ( \"TransportSecurityPersisterTest\" ) ;\n EXPECT_TRUE ( base : : WriteFile ( path , serialized . c_str ( ) , serialized . size ( ) ) ) ;\n std : : string persisted ;\n EXPECT_TRUE ( base : : ReadFileToString ( path , & persisted ) ) ;\n EXPECT_EQ ( persisted , serialized ) ;\n bool dirty ;\n EXPECT_TRUE ( persister_ -> LoadEntries ( persisted , & dirty ) ) ;\n EXPECT_FALSE ( dirty ) ;\n size_t count = 0 ;\n TransportSecurityState : : Iterator j ( state_ ) ;\n while ( j . HasNext ( ) ) {\n count ++ ;\n j . Advance ( ) ;\n }\n EXPECT_EQ ( count , saved . size ( ) ) ;\n }"}
{"idx": 9150, "target": 0, "func": "static int dissect_netbios ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n proto_tree * netb_tree = NULL ;\n proto_item * ti ;\n guint16 hdr_len , command ;\n const char * command_name ;\n char name [ ( NETBIOS_NAME_LEN - 1 ) * 4 + 1 ] ;\n int name_type ;\n guint16 session_id ;\n gboolean save_fragmented ;\n int len ;\n fragment_head * fd_head ;\n tvbuff_t * next_tvb ;\n int offset = 0 ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"NetBIOS\" ) ;\n if ( 0xefff != tvb_get_letohs ( tvb , 2 ) ) {\n ++ offset ;\n if ( 0xefff != tvb_get_letohs ( tvb , 3 ) ) {\n col_set_str ( pinfo -> cinfo , COL_INFO , \"Bad packet, no 0xEFFF marker\" ) ;\n return 3 ;\n }\n }\n hdr_len = tvb_get_letohs ( tvb , offset + NB_LENGTH ) ;\n command = tvb_get_guint8 ( tvb , offset + NB_COMMAND ) ;\n command = MIN ( command , sizeof ( dissect_netb ) / sizeof ( void * ) ) ;\n command_name = val_to_str_ext ( command , & cmd_vals_ext , \"Unknown (0x%02x)\" ) ;\n switch ( command ) {\n case NB_NAME_QUERY : name_type = get_netbios_name ( tvb , offset + 12 , name , ( NETBIOS_NAME_LEN - 1 ) * 4 + 1 ) ;\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"%s for %s<%02x>\" , command_name , name , name_type ) ;\n break ;\n case NB_NAME_RESP : case NB_ADD_NAME : case NB_ADD_GROUP : name_type = get_netbios_name ( tvb , offset + 28 , name , ( NETBIOS_NAME_LEN - 1 ) * 4 + 1 ) ;\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"%s - %s<%02x>\" , command_name , name , name_type ) ;\n break ;\n default : col_add_str ( pinfo -> cinfo , COL_INFO , command_name ) ;\n break ;\n }\n if ( tree ) {\n ti = proto_tree_add_item ( tree , proto_netbios , tvb , 0 , hdr_len , ENC_NA ) ;\n netb_tree = proto_item_add_subtree ( ti , ett_netb ) ;\n proto_tree_add_uint_format_value ( netb_tree , hf_netb_hdr_len , tvb , offset , 2 , hdr_len , \"%d bytes\" , hdr_len ) ;\n proto_tree_add_uint_format_value ( netb_tree , hf_netb_delimiter , tvb , offset + 2 , 2 , tvb_get_letohs ( tvb , offset + 2 ) , \"EFFF (NetBIOS)\" ) ;\n proto_tree_add_uint ( netb_tree , hf_netb_cmd , tvb , offset + NB_COMMAND , 1 , command ) ;\n }\n if ( command < sizeof ( dissect_netb ) / sizeof ( void * ) ) {\n session_id = ( dissect_netb [ command ] ) ( tvb , pinfo , offset , netb_tree ) ;\n offset += hdr_len ;\n save_fragmented = pinfo -> fragmented ;\n switch ( command ) {\n case NB_DATAGRAM : case NB_DATAGRAM_BCAST : next_tvb = tvb_new_subset_remaining ( tvb , offset ) ;\n dissect_netbios_payload ( next_tvb , pinfo , tree ) ;\n break ;\n case NB_DATA_FIRST_MIDDLE : case NB_DATA_ONLY_LAST : len = tvb_reported_length_remaining ( tvb , offset ) ;\n if ( netbios_defragment && tvb_bytes_exist ( tvb , offset , len ) ) {\n fd_head = fragment_add_seq_next ( & netbios_reassembly_table , tvb , offset , pinfo , session_id , NULL , len , command == NB_DATA_FIRST_MIDDLE ) ;\n if ( fd_head != NULL ) {\n if ( fd_head -> next != NULL ) {\n next_tvb = tvb_new_chain ( tvb , fd_head -> tvb_data ) ;\n add_new_data_source ( pinfo , next_tvb , \"Reassembled NetBIOS\" ) ;\n if ( tree ) {\n proto_item * frag_tree_item ;\n show_fragment_seq_tree ( fd_head , & netbios_frag_items , netb_tree , pinfo , next_tvb , & frag_tree_item ) ;\n }\n }\n else {\n next_tvb = tvb_new_subset_remaining ( tvb , offset ) ;\n }\n }\n else {\n next_tvb = NULL ;\n }\n }\n else {\n next_tvb = tvb_new_subset_remaining ( tvb , offset ) ;\n }\n if ( next_tvb != NULL ) dissect_netbios_payload ( next_tvb , pinfo , tree ) ;\n else {\n next_tvb = tvb_new_subset_remaining ( tvb , offset ) ;\n call_data_dissector ( next_tvb , pinfo , tree ) ;\n }\n break ;\n }\n pinfo -> fragmented = save_fragmented ;\n }\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 9151, "target": 0, "func": "static int pcm_bluray_parse_header ( AVCodecContext * avctx , const uint8_t * header ) {\n static const uint8_t bits_per_samples [ 4 ] = {\n 0 , 16 , 20 , 24 }\n ;\n static const uint32_t channel_layouts [ 16 ] = {\n 0 , AV_CH_LAYOUT_MONO , 0 , AV_CH_LAYOUT_STEREO , AV_CH_LAYOUT_SURROUND , AV_CH_LAYOUT_2_1 , AV_CH_LAYOUT_4POINT0 , AV_CH_LAYOUT_2_2 , AV_CH_LAYOUT_5POINT0 , AV_CH_LAYOUT_5POINT1 , AV_CH_LAYOUT_7POINT0 , AV_CH_LAYOUT_7POINT1 , 0 , 0 , 0 , 0 }\n ;\n static const uint8_t channels [ 16 ] = {\n 0 , 1 , 0 , 2 , 3 , 3 , 4 , 4 , 5 , 6 , 7 , 8 , 0 , 0 , 0 , 0 }\n ;\n uint8_t channel_layout = header [ 2 ] >> 4 ;\n if ( avctx -> debug & FF_DEBUG_PICT_INFO ) av_dlog ( avctx , \"pcm_bluray_parse_header: header = %02x%02x%02x%02x\\n\" , header [ 0 ] , header [ 1 ] , header [ 2 ] , header [ 3 ] ) ;\n avctx -> bits_per_coded_sample = bits_per_samples [ header [ 3 ] >> 6 ] ;\n if ( ! avctx -> bits_per_coded_sample ) {\n av_log ( avctx , AV_LOG_ERROR , \"reserved sample depth (0)\\n\" ) ;\n return - 1 ;\n }\n avctx -> sample_fmt = avctx -> bits_per_coded_sample == 16 ? AV_SAMPLE_FMT_S16 : AV_SAMPLE_FMT_S32 ;\n avctx -> bits_per_raw_sample = avctx -> bits_per_coded_sample ;\n switch ( header [ 2 ] & 0x0f ) {\n case 1 : avctx -> sample_rate = 48000 ;\n break ;\n case 4 : avctx -> sample_rate = 96000 ;\n break ;\n case 5 : avctx -> sample_rate = 192000 ;\n break ;\n default : avctx -> sample_rate = 0 ;\n av_log ( avctx , AV_LOG_ERROR , \"reserved sample rate (%d)\\n\" , header [ 2 ] & 0x0f ) ;\n return - 1 ;\n }\n avctx -> channel_layout = channel_layouts [ channel_layout ] ;\n avctx -> channels = channels [ channel_layout ] ;\n if ( ! avctx -> channels ) {\n av_log ( avctx , AV_LOG_ERROR , \"reserved channel configuration (%d)\\n\" , channel_layout ) ;\n return - 1 ;\n }\n avctx -> bit_rate = FFALIGN ( avctx -> channels , 2 ) * avctx -> sample_rate * avctx -> bits_per_coded_sample ;\n if ( avctx -> debug & FF_DEBUG_PICT_INFO ) av_dlog ( avctx , \"pcm_bluray_parse_header: %d channels, %d bits per sample, %d Hz, %d bit/s\\n\" , avctx -> channels , avctx -> bits_per_coded_sample , avctx -> sample_rate , avctx -> bit_rate ) ;\n return 0 ;\n }"}
{"idx": 9152, "target": 0, "func": "static void test_bug3796 ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND my_bind [ 1 ] ;\n const char * concat_arg0 = \"concat_with_\" ;\n enum {\n OUT_BUFF_SIZE = 30 }\n ;\n char out_buff [ OUT_BUFF_SIZE ] ;\n char canonical_buff [ OUT_BUFF_SIZE ] ;\n ulong out_length ;\n const char * stmt_text ;\n int rc ;\n myheader ( \"test_bug3796\" ) ;\n stmt_text = \"DROP TABLE IF EXISTS t1\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt_text = \"CREATE TABLE t1 (a INT, b VARCHAR(30))\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt_text = \"INSERT INTO t1 VALUES(1, 'ONE'), (2, 'TWO')\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n stmt_text = \"SELECT concat(?, b) FROM t1\" ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt , rc ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 0 ] . buffer = ( void * ) concat_arg0 ;\n my_bind [ 0 ] . buffer_length = strlen ( concat_arg0 ) ;\n mysql_stmt_bind_param ( stmt , my_bind ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n my_bind [ 0 ] . buffer = ( void * ) out_buff ;\n my_bind [ 0 ] . buffer_length = OUT_BUFF_SIZE ;\n my_bind [ 0 ] . length = & out_length ;\n mysql_stmt_bind_result ( stmt , my_bind ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n if ( ! opt_silent ) printf ( \"Concat result: '%s'\\n\" , out_buff ) ;\n check_execute ( stmt , rc ) ;\n strmov ( canonical_buff , concat_arg0 ) ;\n strcat ( canonical_buff , \"ONE\" ) ;\n DIE_UNLESS ( strlen ( canonical_buff ) == out_length && strncmp ( out_buff , canonical_buff , out_length ) == 0 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n strmov ( canonical_buff + strlen ( concat_arg0 ) , \"TWO\" ) ;\n DIE_UNLESS ( strlen ( canonical_buff ) == out_length && strncmp ( out_buff , canonical_buff , out_length ) == 0 ) ;\n if ( ! opt_silent ) printf ( \"Concat result: '%s'\\n\" , out_buff ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n mysql_stmt_close ( stmt ) ;\n stmt_text = \"DROP TABLE IF EXISTS t1\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n }"}
{"idx": 9153, "target": 0, "func": "void relpTcpHintBurstEnd ( relpTcp_t * pThis ) {\n setCORKopt ( pThis -> sock , 0 ) ;\n }"}
{"idx": 9154, "target": 0, "func": "static Datum ExecEvalRelabelType ( GenericExprState * exprstate , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n return ExecEvalExpr ( exprstate -> arg , econtext , isNull , isDone ) ;\n }"}
{"idx": 9155, "target": 0, "func": "OM_uint32 kg_get_ccache_name ( OM_uint32 * minor_status , const char * * out_name ) {\n const char * name = NULL ;\n OM_uint32 err = 0 ;\n char * kg_ccache_name ;\n kg_ccache_name = k5_getspecific ( K5_KEY_GSS_KRB5_CCACHE_NAME ) ;\n if ( kg_ccache_name != NULL ) {\n name = strdup ( kg_ccache_name ) ;\n if ( name == NULL ) err = ENOMEM ;\n }\n else {\n krb5_context context = NULL ;\n err = krb5_gss_init_context ( & context ) ;\n if ( ! err ) err = krb5_cc_set_default_name ( context , NULL ) ;\n if ( ! err ) {\n name = krb5_cc_default_name ( context ) ;\n if ( name ) {\n name = strdup ( name ) ;\n if ( name == NULL ) err = ENOMEM ;\n }\n }\n if ( err && context ) save_error_info ( err , context ) ;\n if ( context ) krb5_free_context ( context ) ;\n }\n if ( ! err ) {\n if ( out_name ) {\n * out_name = name ;\n }\n }\n * minor_status = err ;\n return ( * minor_status == 0 ) ? GSS_S_COMPLETE : GSS_S_FAILURE ;\n }"}
{"idx": 9156, "target": 0, "func": "static void writecb ( struct bufferevent * bev , void * arg ) {\n if ( EVBUFFER_LENGTH ( bev -> output ) == 0 ) test_ok ++ ;\n }"}
{"idx": 9157, "target": 0, "func": "static tvbuff_t * reassemble ( tvbuff_t * tvb , body_parts * * body_parts_array , guint16 head_tsn , guint length , mac_is_channel * ch , guint frame_num ) {\n mac_is_sdu * sdu ;\n mac_is_fragment * f ;\n guint16 i ;\n GHashTable * sdus ;\n sdus = ( GHashTable * ) g_hash_table_lookup ( mac_is_sdus , ch ) ;\n if ( sdus == NULL ) {\n mac_is_channel * channel ;\n sdus = g_hash_table_new ( mac_is_fragment_hash , mac_is_fragment_equal ) ;\n channel = wmem_new ( wmem_file_scope ( ) , mac_is_channel ) ;\n * channel = * ch ;\n g_hash_table_insert ( mac_is_sdus , channel , sdus ) ;\n }\n sdu = wmem_new ( wmem_file_scope ( ) , mac_is_sdu ) ;\n sdu -> length = 0 ;\n sdu -> data = ( guint8 * ) wmem_alloc ( wmem_file_scope ( ) , length ) ;\n f = body_parts_array [ head_tsn ] -> head ;\n g_hash_table_insert ( sdus , f , sdu ) ;\n body_parts_array [ head_tsn ] -> head = NULL ;\n mac_is_copy ( sdu , f , length , FALSE ) ;\n sdu -> fragments = f ;\n sdu -> frame_num = frame_num ;\n for ( i = ( head_tsn + 1 ) % MAX_TSN ;\n body_parts_array [ i ] -> middle != NULL ;\n i = ( i + 1 ) % MAX_TSN ) {\n f = f -> next = body_parts_array [ i ] -> middle ;\n g_hash_table_insert ( sdus , f , sdu ) ;\n body_parts_array [ i ] -> middle = NULL ;\n mac_is_copy ( sdu , f , length , FALSE ) ;\n }\n DISSECTOR_ASSERT ( body_parts_array [ i ] -> tail != NULL ) ;\n f -> next = body_parts_array [ i ] -> tail ;\n g_hash_table_insert ( sdus , f -> next , sdu ) ;\n body_parts_array [ i ] -> tail = NULL ;\n sdu -> tsn = i ;\n mac_is_copy ( sdu , f -> next , length , FALSE ) ;\n return tvb_new_child_real_data ( tvb , sdu -> data , sdu -> length , sdu -> length ) ;\n }"}
{"idx": 9158, "target": 0, "func": "static int zexit ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n ref_stack_enum_t rsenum ;\n uint scanned = 0 ;\n ref_stack_enum_begin ( & rsenum , & e_stack ) ;\n do {\n uint used = rsenum . size ;\n es_ptr ep = rsenum . ptr + used - 1 ;\n uint count = used ;\n for ( ;\n count ;\n count -- , ep -- ) if ( r_is_estack_mark ( ep ) ) switch ( estack_mark_index ( ep ) ) {\n case es_for : pop_estack ( i_ctx_p , scanned + ( used - count + 1 ) ) ;\n return o_pop_estack ;\n case es_stopped : return_error ( gs_error_invalidexit ) ;\n }\n scanned += used ;\n }\n while ( ref_stack_enum_next ( & rsenum ) ) ;\n push ( 2 ) ;\n return unmatched_exit ( op , zexit ) ;\n }"}
{"idx": 9159, "target": 0, "func": "TSPortDescriptor TSPortDescriptorParse ( const char * descriptor ) {\n HttpProxyPort * port = new HttpProxyPort ( ) ;\n if ( descriptor && port -> processOptions ( descriptor ) ) {\n return ( TSPortDescriptor ) port ;\n }\n delete port ;\n return nullptr ;\n }"}
{"idx": 9160, "target": 1, "func": "static int jbig2_word_stream_buf_get_next_word ( Jbig2WordStream * self , int offset , uint32_t * word ) {\n Jbig2WordStreamBuf * z = ( Jbig2WordStreamBuf * ) self ;\n const byte * data = z -> data ;\n uint32_t result ;\n if ( offset + 4 < z -> size ) result = ( data [ offset ] << 24 ) | ( data [ offset + 1 ] << 16 ) | ( data [ offset + 2 ] << 8 ) | data [ offset + 3 ] ;\n else if ( offset > z -> size ) return - 1 ;\n else {\n int i ;\n result = 0 ;\n for ( i = 0 ;\n i < z -> size - offset ;\n i ++ ) result |= data [ offset + i ] << ( ( 3 - i ) << 3 ) ;\n }\n * word = result ;\n return 0 ;\n }"}
{"idx": 9161, "target": 0, "func": "static hb_script_t hb_ucdn_script ( hb_unicode_funcs_t * ufuncs , hb_codepoint_t unicode , void * user_data HB_UNUSED ) {\n return ucdn_script_translate [ ucdn_get_script ( unicode ) ] ;\n }"}
{"idx": 9162, "target": 1, "func": "static int32_t _appendKeywordsToLanguageTag ( const char * localeID , char * appendAt , int32_t capacity , UBool strict , UBool hadPosix , UErrorCode * status ) {\n char buf [ ULOC_KEYWORD_AND_VALUES_CAPACITY ] ;\n char attrBuf [ ULOC_KEYWORD_AND_VALUES_CAPACITY ] = {\n 0 }\n ;\n int32_t attrBufLength = 0 ;\n UEnumeration * keywordEnum = NULL ;\n int32_t reslen = 0 ;\n keywordEnum = uloc_openKeywords ( localeID , status ) ;\n if ( U_FAILURE ( * status ) && ! hadPosix ) {\n uenum_close ( keywordEnum ) ;\n return 0 ;\n }\n if ( keywordEnum != NULL || hadPosix ) {\n int32_t len ;\n const char * key ;\n ExtensionListEntry * firstExt = NULL ;\n ExtensionListEntry * ext ;\n AttributeListEntry * firstAttr = NULL ;\n AttributeListEntry * attr ;\n char * attrValue ;\n char extBuf [ ULOC_KEYWORD_AND_VALUES_CAPACITY ] ;\n char * pExtBuf = extBuf ;\n int32_t extBufCapacity = sizeof ( extBuf ) ;\n const char * bcpKey , * bcpValue ;\n UErrorCode tmpStatus = U_ZERO_ERROR ;\n int32_t keylen ;\n UBool isBcpUExt ;\n while ( TRUE ) {\n key = uenum_next ( keywordEnum , NULL , status ) ;\n if ( key == NULL ) {\n break ;\n }\n len = uloc_getKeywordValue ( localeID , key , buf , sizeof ( buf ) , & tmpStatus ) ;\n if ( U_FAILURE ( tmpStatus ) || tmpStatus == U_STRING_NOT_TERMINATED_WARNING ) {\n if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n break ;\n }\n tmpStatus = U_ZERO_ERROR ;\n continue ;\n }\n keylen = ( int32_t ) uprv_strlen ( key ) ;\n isBcpUExt = ( keylen > 1 ) ;\n if ( uprv_strcmp ( key , LOCALE_ATTRIBUTE_KEY ) == 0 ) {\n if ( len > 0 ) {\n int32_t i = 0 ;\n while ( TRUE ) {\n attrBufLength = 0 ;\n for ( ;\n i < len ;\n i ++ ) {\n if ( buf [ i ] != '-' ) {\n attrBuf [ attrBufLength ++ ] = buf [ i ] ;\n }\n else {\n i ++ ;\n break ;\n }\n }\n if ( attrBufLength > 0 ) {\n attrBuf [ attrBufLength ] = 0 ;\n }\n else if ( i >= len ) {\n break ;\n }\n attr = ( AttributeListEntry * ) uprv_malloc ( sizeof ( AttributeListEntry ) ) ;\n if ( attr == NULL ) {\n * status = U_MEMORY_ALLOCATION_ERROR ;\n break ;\n }\n attrValue = ( char * ) uprv_malloc ( attrBufLength + 1 ) ;\n if ( attrValue == NULL ) {\n * status = U_MEMORY_ALLOCATION_ERROR ;\n break ;\n }\n uprv_strcpy ( attrValue , attrBuf ) ;\n attr -> attribute = attrValue ;\n if ( ! _addAttributeToList ( & firstAttr , attr ) ) {\n uprv_free ( attr ) ;\n uprv_free ( attrValue ) ;\n if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n break ;\n }\n }\n }\n bcpKey = LOCALE_ATTRIBUTE_KEY ;\n bcpValue = NULL ;\n }\n }\n else if ( isBcpUExt ) {\n bcpKey = uloc_toUnicodeLocaleKey ( key ) ;\n if ( bcpKey == NULL ) {\n if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n break ;\n }\n continue ;\n }\n bcpValue = uloc_toUnicodeLocaleType ( key , buf ) ;\n if ( bcpValue == NULL ) {\n if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n break ;\n }\n continue ;\n }\n if ( bcpValue == buf ) {\n int32_t bcpValueLen = uprv_strlen ( bcpValue ) ;\n if ( bcpValueLen < extBufCapacity ) {\n uprv_strcpy ( pExtBuf , bcpValue ) ;\n T_CString_toLowerCase ( pExtBuf ) ;\n bcpValue = pExtBuf ;\n pExtBuf += ( bcpValueLen + 1 ) ;\n extBufCapacity -= ( bcpValueLen + 1 ) ;\n }\n else {\n if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n break ;\n }\n continue ;\n }\n }\n }\n else {\n if ( * key == PRIVATEUSE ) {\n if ( ! _isPrivateuseValueSubtags ( buf , len ) ) {\n if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n break ;\n }\n continue ;\n }\n }\n else {\n if ( ! _isExtensionSingleton ( key , keylen ) || ! _isExtensionSubtags ( buf , len ) ) {\n if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n break ;\n }\n continue ;\n }\n }\n bcpKey = key ;\n if ( ( len + 1 ) < extBufCapacity ) {\n uprv_memcpy ( pExtBuf , buf , len ) ;\n bcpValue = pExtBuf ;\n pExtBuf += len ;\n * pExtBuf = 0 ;\n pExtBuf ++ ;\n extBufCapacity -= ( len + 1 ) ;\n }\n else {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n break ;\n }\n }\n ext = ( ExtensionListEntry * ) uprv_malloc ( sizeof ( ExtensionListEntry ) ) ;\n if ( ext == NULL ) {\n * status = U_MEMORY_ALLOCATION_ERROR ;\n break ;\n }\n ext -> key = bcpKey ;\n ext -> value = bcpValue ;\n if ( ! _addExtensionToList ( & firstExt , ext , TRUE ) ) {\n uprv_free ( ext ) ;\n if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n break ;\n }\n }\n }\n if ( hadPosix ) {\n ext = ( ExtensionListEntry * ) uprv_malloc ( sizeof ( ExtensionListEntry ) ) ;\n if ( ext == NULL ) {\n * status = U_MEMORY_ALLOCATION_ERROR ;\n goto cleanup ;\n }\n ext -> key = POSIX_KEY ;\n ext -> value = POSIX_VALUE ;\n if ( ! _addExtensionToList ( & firstExt , ext , TRUE ) ) {\n uprv_free ( ext ) ;\n }\n }\n if ( U_SUCCESS ( * status ) && ( firstExt != NULL || firstAttr != NULL ) ) {\n UBool startLDMLExtension = FALSE ;\n for ( ext = firstExt ;\n ext ;\n ext = ext -> next ) {\n if ( ! startLDMLExtension && uprv_strlen ( ext -> key ) > 1 ) {\n if ( reslen < capacity ) {\n * ( appendAt + reslen ) = SEP ;\n }\n reslen ++ ;\n if ( reslen < capacity ) {\n * ( appendAt + reslen ) = LDMLEXT ;\n }\n reslen ++ ;\n startLDMLExtension = TRUE ;\n }\n if ( uprv_strcmp ( ext -> key , LOCALE_ATTRIBUTE_KEY ) == 0 ) {\n for ( attr = firstAttr ;\n attr ;\n attr = attr -> next ) {\n if ( reslen < capacity ) {\n * ( appendAt + reslen ) = SEP ;\n }\n reslen ++ ;\n len = ( int32_t ) uprv_strlen ( attr -> attribute ) ;\n if ( reslen < capacity ) {\n uprv_memcpy ( appendAt + reslen , attr -> attribute , uprv_min ( len , capacity - reslen ) ) ;\n }\n reslen += len ;\n }\n }\n else {\n if ( reslen < capacity ) {\n * ( appendAt + reslen ) = SEP ;\n }\n reslen ++ ;\n len = ( int32_t ) uprv_strlen ( ext -> key ) ;\n if ( reslen < capacity ) {\n uprv_memcpy ( appendAt + reslen , ext -> key , uprv_min ( len , capacity - reslen ) ) ;\n }\n reslen += len ;\n if ( reslen < capacity ) {\n * ( appendAt + reslen ) = SEP ;\n }\n reslen ++ ;\n len = ( int32_t ) uprv_strlen ( ext -> value ) ;\n if ( reslen < capacity ) {\n uprv_memcpy ( appendAt + reslen , ext -> value , uprv_min ( len , capacity - reslen ) ) ;\n }\n reslen += len ;\n }\n }\n }\n cleanup : ext = firstExt ;\n while ( ext != NULL ) {\n ExtensionListEntry * tmpExt = ext -> next ;\n uprv_free ( ext ) ;\n ext = tmpExt ;\n }\n attr = firstAttr ;\n while ( attr != NULL ) {\n AttributeListEntry * tmpAttr = attr -> next ;\n char * pValue = ( char * ) attr -> attribute ;\n uprv_free ( pValue ) ;\n uprv_free ( attr ) ;\n attr = tmpAttr ;\n }\n uenum_close ( keywordEnum ) ;\n if ( U_FAILURE ( * status ) ) {\n return 0 ;\n }\n }\n return u_terminateChars ( appendAt , capacity , reslen , status ) ;\n }"}
{"idx": 9163, "target": 0, "func": "void vp9_build_inter_predictors_sbuv ( MACROBLOCKD * xd , int mi_row , int mi_col , BLOCK_SIZE bsize ) {\n build_inter_predictors_for_planes ( xd , bsize , mi_row , mi_col , 1 , MAX_MB_PLANE - 1 ) ;\n }"}
{"idx": 9164, "target": 0, "func": "static void modsecurity_persist_data ( modsec_rec * msr ) {\n const apr_array_header_t * arr ;\n apr_table_entry_t * te ;\n apr_time_t time_before , time_after ;\n int i ;\n time_before = apr_time_now ( ) ;\n arr = apr_table_elts ( msr -> collections ) ;\n te = ( apr_table_entry_t * ) arr -> elts ;\n for ( i = 0 ;\n i < arr -> nelts ;\n i ++ ) {\n apr_table_t * col = ( apr_table_t * ) te [ i ] . val ;\n if ( apr_table_get ( msr -> collections_dirty , te [ i ] . key ) ) {\n collection_store ( msr , col ) ;\n }\n }\n time_after = apr_time_now ( ) ;\n msr -> time_storage_write += time_after - time_before ;\n if ( msr -> txcfg -> debuglog_level >= 4 ) {\n msr_log ( msr , 4 , \"Recording persistent data took %\" APR_TIME_T_FMT \" microseconds.\" , msr -> time_gc ) ;\n }\n srand ( time ( NULL ) ) ;\n if ( rand ( ) < RAND_MAX / 100 ) {\n arr = apr_table_elts ( msr -> collections ) ;\n te = ( apr_table_entry_t * ) arr -> elts ;\n for ( i = 0 ;\n i < arr -> nelts ;\n i ++ ) {\n collections_remove_stale ( msr , te [ i ] . key ) ;\n }\n msr -> time_gc = apr_time_now ( ) - time_after ;\n if ( msr -> txcfg -> debuglog_level >= 4 ) {\n msr_log ( msr , 4 , \"Garbage collection took %\" APR_TIME_T_FMT \" microseconds.\" , msr -> time_gc ) ;\n }\n }\n }"}
{"idx": 9165, "target": 0, "func": "int qemuMonitorJSONExpirePassword ( qemuMonitorPtr mon , const char * protocol , const char * expire_time ) {\n int ret ;\n virJSONValuePtr cmd = qemuMonitorJSONMakeCommand ( \"expire_password\" , \"s:protocol\" , protocol , \"s:time\" , expire_time , NULL ) ;\n virJSONValuePtr reply = NULL ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) {\n if ( qemuMonitorJSONHasError ( reply , \"CommandNotFound\" ) ) {\n ret = - 2 ;\n goto cleanup ;\n }\n ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n }\n cleanup : virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 9166, "target": 0, "func": "void hb_set_del ( hb_set_t * set , hb_codepoint_t codepoint ) {\n set -> del ( codepoint ) ;\n }"}
{"idx": 9167, "target": 1, "func": "int tmx_check_pretran ( sip_msg_t * msg ) {\n unsigned int chid ;\n unsigned int slotid ;\n int dsize ;\n struct via_param * vbr ;\n str scallid ;\n str scseqmet ;\n str scseqnum ;\n str sftag ;\n str svbranch = {\n NULL , 0 }\n ;\n pretran_t * it ;\n if ( _tmx_ptran_table == NULL ) {\n LM_ERR ( \"pretran hash table not initialized yet\\n\" ) ;\n return - 1 ;\n }\n if ( get_route_type ( ) != REQUEST_ROUTE ) {\n LM_ERR ( \"invalid usage - not in request route\\n\" ) ;\n return - 1 ;\n }\n if ( msg -> first_line . type != SIP_REQUEST ) {\n LM_ERR ( \"invalid usage - not a sip request\\n\" ) ;\n return - 1 ;\n }\n if ( parse_headers ( msg , HDR_FROM_F | HDR_VIA1_F | HDR_CALLID_F | HDR_CSEQ_F , 0 ) < 0 ) {\n LM_ERR ( \"failed to parse required headers\\n\" ) ;\n return - 1 ;\n }\n if ( msg -> cseq == NULL || msg -> cseq -> parsed == NULL ) {\n LM_ERR ( \"failed to parse cseq headers\\n\" ) ;\n return - 1 ;\n }\n if ( get_cseq ( msg ) -> method_id == METHOD_ACK || get_cseq ( msg ) -> method_id == METHOD_CANCEL ) {\n LM_DBG ( \"no pre-transaction management for ACK or CANCEL\\n\" ) ;\n return - 1 ;\n }\n if ( msg -> via1 == 0 ) {\n LM_ERR ( \"failed to get Via header\\n\" ) ;\n return - 1 ;\n }\n if ( parse_from_header ( msg ) < 0 || get_from ( msg ) -> tag_value . len == 0 ) {\n LM_ERR ( \"failed to get From header\\n\" ) ;\n return - 1 ;\n }\n if ( msg -> callid == NULL || msg -> callid -> body . s == NULL ) {\n LM_ERR ( \"failed to parse callid headers\\n\" ) ;\n return - 1 ;\n }\n vbr = msg -> via1 -> branch ;\n scallid = msg -> callid -> body ;\n trim ( & scallid ) ;\n scseqmet = get_cseq ( msg ) -> method ;\n trim ( & scseqmet ) ;\n scseqnum = get_cseq ( msg ) -> number ;\n trim ( & scseqnum ) ;\n sftag = get_from ( msg ) -> tag_value ;\n trim ( & sftag ) ;\n chid = get_hash1_raw ( msg -> callid -> body . s , msg -> callid -> body . len ) ;\n slotid = chid & ( _tmx_ptran_size - 1 ) ;\n if ( unlikely ( _tmx_proc_ptran == NULL ) ) {\n _tmx_proc_ptran = ( pretran_t * ) shm_malloc ( sizeof ( pretran_t ) ) ;\n if ( _tmx_proc_ptran == NULL ) {\n LM_ERR ( \"not enough memory for pretran structure\\n\" ) ;\n return - 1 ;\n }\n memset ( _tmx_proc_ptran , 0 , sizeof ( pretran_t ) ) ;\n _tmx_proc_ptran -> pid = my_pid ( ) ;\n }\n dsize = scallid . len + scseqnum . len + scseqmet . len + sftag . len + 4 ;\n if ( likely ( vbr != NULL ) ) {\n svbranch = vbr -> value ;\n trim ( & svbranch ) ;\n dsize += svbranch . len ;\n }\n if ( dsize < 256 ) dsize = 256 ;\n tmx_pretran_unlink ( ) ;\n if ( dsize > _tmx_proc_ptran -> dbuf . len ) {\n if ( _tmx_proc_ptran -> dbuf . s ) shm_free ( _tmx_proc_ptran -> dbuf . s ) ;\n _tmx_proc_ptran -> dbuf . s = ( char * ) shm_malloc ( dsize ) ;\n if ( _tmx_proc_ptran -> dbuf . s == NULL ) {\n LM_ERR ( \"not enough memory for pretran data\\n\" ) ;\n return - 1 ;\n }\n _tmx_proc_ptran -> dbuf . len = dsize ;\n }\n _tmx_proc_ptran -> hid = chid ;\n _tmx_proc_ptran -> cseqmetid = ( get_cseq ( msg ) ) -> method_id ;\n _tmx_proc_ptran -> callid . s = _tmx_proc_ptran -> dbuf . s ;\n memcpy ( _tmx_proc_ptran -> callid . s , scallid . s , scallid . len ) ;\n _tmx_proc_ptran -> callid . len = scallid . len ;\n _tmx_proc_ptran -> callid . s [ _tmx_proc_ptran -> callid . len ] = '\\0' ;\n _tmx_proc_ptran -> ftag . s = _tmx_proc_ptran -> callid . s + _tmx_proc_ptran -> callid . len + 1 ;\n memcpy ( _tmx_proc_ptran -> ftag . s , sftag . s , sftag . len ) ;\n _tmx_proc_ptran -> ftag . len = sftag . len ;\n _tmx_proc_ptran -> ftag . s [ _tmx_proc_ptran -> ftag . len ] = '\\0' ;\n _tmx_proc_ptran -> cseqnum . s = _tmx_proc_ptran -> ftag . s + _tmx_proc_ptran -> ftag . len + 1 ;\n memcpy ( _tmx_proc_ptran -> cseqnum . s , scseqnum . s , scseqnum . len ) ;\n _tmx_proc_ptran -> cseqnum . len = scseqnum . len ;\n _tmx_proc_ptran -> cseqnum . s [ _tmx_proc_ptran -> cseqnum . len ] = '\\0' ;\n _tmx_proc_ptran -> cseqmet . s = _tmx_proc_ptran -> cseqnum . s + _tmx_proc_ptran -> cseqnum . len + 1 ;\n memcpy ( _tmx_proc_ptran -> cseqmet . s , scseqmet . s , scseqmet . len ) ;\n _tmx_proc_ptran -> cseqmet . len = scseqmet . len ;\n _tmx_proc_ptran -> cseqmet . s [ _tmx_proc_ptran -> cseqmet . len ] = '\\0' ;\n if ( likely ( vbr != NULL ) ) {\n _tmx_proc_ptran -> vbranch . s = _tmx_proc_ptran -> cseqmet . s + _tmx_proc_ptran -> cseqmet . len + 1 ;\n memcpy ( _tmx_proc_ptran -> vbranch . s , svbranch . s , svbranch . len ) ;\n _tmx_proc_ptran -> vbranch . len = svbranch . len ;\n _tmx_proc_ptran -> vbranch . s [ _tmx_proc_ptran -> vbranch . len ] = '\\0' ;\n }\n else {\n _tmx_proc_ptran -> vbranch . s = NULL ;\n _tmx_proc_ptran -> vbranch . len = 0 ;\n }\n lock_get ( & _tmx_ptran_table [ slotid ] . lock ) ;\n it = _tmx_ptran_table [ slotid ] . plist ;\n tmx_pretran_link_safe ( slotid ) ;\n for ( ;\n it != NULL ;\n it = it -> next ) {\n if ( _tmx_proc_ptran -> hid != it -> hid || _tmx_proc_ptran -> cseqmetid != it -> cseqmetid || _tmx_proc_ptran -> callid . len != it -> callid . len || _tmx_proc_ptran -> ftag . len != it -> ftag . len || _tmx_proc_ptran -> cseqmet . len != it -> cseqmet . len || _tmx_proc_ptran -> cseqnum . len != it -> cseqnum . len ) continue ;\n if ( _tmx_proc_ptran -> vbranch . s != NULL && it -> vbranch . s != NULL ) {\n if ( _tmx_proc_ptran -> vbranch . len != it -> vbranch . len ) continue ;\n if ( _tmx_proc_ptran -> vbranch . s [ it -> vbranch . len - 1 ] != it -> vbranch . s [ it -> vbranch . len - 1 ] ) continue ;\n if ( memcmp ( _tmx_proc_ptran -> vbranch . s , it -> vbranch . s , it -> vbranch . len ) != 0 ) continue ;\n }\n if ( memcmp ( _tmx_proc_ptran -> callid . s , it -> callid . s , it -> callid . len ) != 0 || memcmp ( _tmx_proc_ptran -> ftag . s , it -> ftag . s , it -> ftag . len ) != 0 || memcmp ( _tmx_proc_ptran -> cseqnum . s , it -> cseqnum . s , it -> cseqnum . len ) != 0 ) continue ;\n if ( ( it -> cseqmetid == METHOD_OTHER || it -> cseqmetid == METHOD_UNDEF ) && memcmp ( _tmx_proc_ptran -> cseqmet . s , it -> cseqmet . s , it -> cseqmet . len ) != 0 ) continue ;\n LM_DBG ( \"matched another pre-transaction by pid %d for [%.*s]\\n\" , it -> pid , it -> callid . len , it -> callid . s ) ;\n lock_release ( & _tmx_ptran_table [ slotid ] . lock ) ;\n return 1 ;\n }\n lock_release ( & _tmx_ptran_table [ slotid ] . lock ) ;\n return 0 ;\n }"}
{"idx": 9168, "target": 1, "func": "static int mss4_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n MSS4Context * c = avctx -> priv_data ;\n GetBitContext gb ;\n GetByteContext bc ;\n uint8_t * dst [ 3 ] ;\n int width , height , quality , frame_type ;\n int x , y , i , mb_width , mb_height , blk_type ;\n int ret ;\n if ( buf_size < HEADER_SIZE ) {\n av_log ( avctx , AV_LOG_ERROR , \"Frame should have at least %d bytes, got %d instead\\n\" , HEADER_SIZE , buf_size ) ;\n return AVERROR_INVALIDDATA ;\n }\n bytestream2_init ( & bc , buf , buf_size ) ;\n width = bytestream2_get_be16 ( & bc ) ;\n height = bytestream2_get_be16 ( & bc ) ;\n bytestream2_skip ( & bc , 2 ) ;\n quality = bytestream2_get_byte ( & bc ) ;\n frame_type = bytestream2_get_byte ( & bc ) ;\n if ( width > avctx -> width || height != avctx -> height ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid frame dimensions %dx%d\\n\" , width , height ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( quality < 1 || quality > 100 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid quality setting %d\\n\" , quality ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ( frame_type & ~ 3 ) || frame_type == 3 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid frame type %d\\n\" , frame_type ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( frame_type != SKIP_FRAME && ! bytestream2_get_bytes_left ( & bc ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Empty frame found but it is not a skip frame.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n c -> pic . reference = 3 ;\n c -> pic . buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE ;\n if ( ( ret = avctx -> reget_buffer ( avctx , & c -> pic ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n c -> pic . key_frame = ( frame_type == INTRA_FRAME ) ;\n c -> pic . pict_type = ( frame_type == INTRA_FRAME ) ? AV_PICTURE_TYPE_I : AV_PICTURE_TYPE_P ;\n if ( frame_type == SKIP_FRAME ) {\n * got_frame = 1 ;\n * ( AVFrame * ) data = c -> pic ;\n return buf_size ;\n }\n if ( c -> quality != quality ) {\n c -> quality = quality ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) ff_mss34_gen_quant_mat ( c -> quant_mat [ i ] , quality , ! i ) ;\n }\n init_get_bits ( & gb , buf + HEADER_SIZE , ( buf_size - HEADER_SIZE ) * 8 ) ;\n mb_width = FFALIGN ( width , 16 ) >> 4 ;\n mb_height = FFALIGN ( height , 16 ) >> 4 ;\n dst [ 0 ] = c -> pic . data [ 0 ] ;\n dst [ 1 ] = c -> pic . data [ 1 ] ;\n dst [ 2 ] = c -> pic . data [ 2 ] ;\n memset ( c -> prev_vec , 0 , sizeof ( c -> prev_vec ) ) ;\n for ( y = 0 ;\n y < mb_height ;\n y ++ ) {\n memset ( c -> dc_cache , 0 , sizeof ( c -> dc_cache ) ) ;\n for ( x = 0 ;\n x < mb_width ;\n x ++ ) {\n blk_type = decode012 ( & gb ) ;\n switch ( blk_type ) {\n case DCT_BLOCK : if ( mss4_decode_dct_block ( c , & gb , dst , x , y ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error decoding DCT block %d,%d\\n\" , x , y ) ;\n return AVERROR_INVALIDDATA ;\n }\n break ;\n case IMAGE_BLOCK : if ( mss4_decode_image_block ( c , & gb , dst , x , y ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error decoding VQ block %d,%d\\n\" , x , y ) ;\n return AVERROR_INVALIDDATA ;\n }\n break ;\n case SKIP_BLOCK : if ( frame_type == INTRA_FRAME ) {\n av_log ( avctx , AV_LOG_ERROR , \"Skip block in intra frame\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n break ;\n }\n if ( blk_type != DCT_BLOCK ) mss4_update_dc_cache ( c , x ) ;\n }\n dst [ 0 ] += c -> pic . linesize [ 0 ] * 16 ;\n dst [ 1 ] += c -> pic . linesize [ 1 ] * 16 ;\n dst [ 2 ] += c -> pic . linesize [ 2 ] * 16 ;\n }\n * got_frame = 1 ;\n * ( AVFrame * ) data = c -> pic ;\n return buf_size ;\n }"}
{"idx": 9169, "target": 0, "func": "static int parse_rType ( tvbuff_t * tvb , int offset , proto_tree * tree , enum rType * rtype , const char * * str ) {\n const char * txt = NULL ;\n guint32 type = tvb_get_letohl ( tvb , offset ) ;\n switch ( type ) {\n case RTNone : * rtype = RTNone ;\n break ;\n case RTAnd : * rtype = RTAnd ;\n break ;\n case RTOr : * rtype = RTOr ;\n break ;\n case RTNot : * rtype = RTNot ;\n break ;\n case RTContent : * rtype = RTContent ;\n break ;\n case RTProperty : * rtype = RTProperty ;\n break ;\n case RTProximity : * rtype = RTProximity ;\n break ;\n case RTVector : * rtype = RTVector ;\n break ;\n case RTNatLanguage : * rtype = RTNatLanguage ;\n break ;\n case RTScope : * rtype = RTScope ;\n break ;\n case RTCoerce_Add : * rtype = RTCoerce_Add ;\n break ;\n case RTCoerce_Multiply : * rtype = RTCoerce_Multiply ;\n break ;\n case RTCoerce_Absolute : * rtype = RTCoerce_Absolute ;\n break ;\n case RTProb : * rtype = RTProb ;\n break ;\n case RTFeedback : * rtype = RTFeedback ;\n break ;\n case RTReldoc : * rtype = RTReldoc ;\n break ;\n case RTReuseWhere : * rtype = RTReuseWhere ;\n break ;\n case RTInternalProp : * rtype = RTInternalProp ;\n break ;\n default : DISSECTOR_ASSERT ( FALSE ) ;\n break ;\n }\n txt = val_to_str ( * rtype , RT_VALS , \"0x%.8x\" ) ;\n proto_tree_add_string_format_value ( tree , hf_mswsp_crestrict_ultype , tvb , offset , 4 , txt , \"%s (0x%.8x)\" , txt [ 0 ] == '0' ? \"\" : txt , * rtype ) ;\n if ( str ) {\n * str = txt ;\n }\n return offset + 4 ;\n }"}
{"idx": 9170, "target": 0, "func": "static int dissect_spoolss_doc_info_ctr ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n proto_tree * subtree ;\n subtree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_DOC_INFO_CTR , NULL , \"Document info container\" ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_level , NULL ) ;\n offset = dissect_spoolss_doc_info ( tvb , offset , pinfo , subtree , di , drep ) ;\n return offset ;\n }"}
{"idx": 9171, "target": 0, "func": "static void dropRoles ( PGconn * conn ) {\n PGresult * res ;\n int i_rolname ;\n int i ;\n if ( server_version >= 90600 ) res = executeQuery ( conn , \"SELECT rolname \" \"FROM pg_authid \" \"WHERE rolname !~ '^pg_' \" \"ORDER BY 1\" ) ;\n else if ( server_version >= 80100 ) res = executeQuery ( conn , \"SELECT rolname \" \"FROM pg_authid \" \"ORDER BY 1\" ) ;\n else res = executeQuery ( conn , \"SELECT usename as rolname \" \"FROM pg_shadow \" \"UNION \" \"SELECT groname as rolname \" \"FROM pg_group \" \"ORDER BY 1\" ) ;\n i_rolname = PQfnumber ( res , \"rolname\" ) ;\n if ( PQntuples ( res ) > 0 ) fprintf ( OPF , \"--\\n-- Drop roles\\n--\\n\\n\" ) ;\n for ( i = 0 ;\n i < PQntuples ( res ) ;\n i ++ ) {\n const char * rolename ;\n rolename = PQgetvalue ( res , i , i_rolname ) ;\n fprintf ( OPF , \"DROP ROLE %s%s;\n\\n\" , if_exists ? \"IF EXISTS \" : \"\" , fmtId ( rolename ) ) ;\n }\n PQclear ( res ) ;\n fprintf ( OPF , \"\\n\\n\" ) ;\n }"}
{"idx": 9172, "target": 0, "func": "static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING )"}
{"idx": 9173, "target": 0, "func": "static int _find_update_object_in_list ( void * x , void * key ) {\n slurmdb_update_object_t * object = ( slurmdb_update_object_t * ) x ;\n slurmdb_update_type_t type = * ( slurmdb_update_type_t * ) key ;\n if ( object -> type == type ) return 1 ;\n return 0 ;\n }"}
{"idx": 9174, "target": 1, "func": "static bool vmxnet_tx_pkt_parse_headers ( struct VmxnetTxPkt * pkt ) {\n struct iovec * l2_hdr , * l3_hdr ;\n size_t bytes_read ;\n size_t full_ip6hdr_len ;\n uint16_t l3_proto ;\n assert ( pkt ) ;\n l2_hdr = & pkt -> vec [ VMXNET_TX_PKT_L2HDR_FRAG ] ;\n l3_hdr = & pkt -> vec [ VMXNET_TX_PKT_L3HDR_FRAG ] ;\n bytes_read = iov_to_buf ( pkt -> raw , pkt -> raw_frags , 0 , l2_hdr -> iov_base , ETH_MAX_L2_HDR_LEN ) ;\n if ( bytes_read < ETH_MAX_L2_HDR_LEN ) {\n l2_hdr -> iov_len = 0 ;\n return false ;\n }\n else {\n l2_hdr -> iov_len = eth_get_l2_hdr_length ( l2_hdr -> iov_base ) ;\n }\n l3_proto = eth_get_l3_proto ( l2_hdr -> iov_base , l2_hdr -> iov_len ) ;\n switch ( l3_proto ) {\n case ETH_P_IP : l3_hdr -> iov_base = g_malloc ( ETH_MAX_IP4_HDR_LEN ) ;\n bytes_read = iov_to_buf ( pkt -> raw , pkt -> raw_frags , l2_hdr -> iov_len , l3_hdr -> iov_base , sizeof ( struct ip_header ) ) ;\n if ( bytes_read < sizeof ( struct ip_header ) ) {\n l3_hdr -> iov_len = 0 ;\n return false ;\n }\n l3_hdr -> iov_len = IP_HDR_GET_LEN ( l3_hdr -> iov_base ) ;\n pkt -> l4proto = ( ( struct ip_header * ) l3_hdr -> iov_base ) -> ip_p ;\n bytes_read = iov_to_buf ( pkt -> raw , pkt -> raw_frags , l2_hdr -> iov_len + sizeof ( struct ip_header ) , l3_hdr -> iov_base + sizeof ( struct ip_header ) , l3_hdr -> iov_len - sizeof ( struct ip_header ) ) ;\n if ( bytes_read < l3_hdr -> iov_len - sizeof ( struct ip_header ) ) {\n l3_hdr -> iov_len = 0 ;\n return false ;\n }\n break ;\n case ETH_P_IPV6 : if ( ! eth_parse_ipv6_hdr ( pkt -> raw , pkt -> raw_frags , l2_hdr -> iov_len , & pkt -> l4proto , & full_ip6hdr_len ) ) {\n l3_hdr -> iov_len = 0 ;\n return false ;\n }\n l3_hdr -> iov_base = g_malloc ( full_ip6hdr_len ) ;\n bytes_read = iov_to_buf ( pkt -> raw , pkt -> raw_frags , l2_hdr -> iov_len , l3_hdr -> iov_base , full_ip6hdr_len ) ;\n if ( bytes_read < full_ip6hdr_len ) {\n l3_hdr -> iov_len = 0 ;\n return false ;\n }\n else {\n l3_hdr -> iov_len = full_ip6hdr_len ;\n }\n break ;\n default : l3_hdr -> iov_len = 0 ;\n break ;\n }\n vmxnet_tx_pkt_calculate_hdr_len ( pkt ) ;\n pkt -> packet_type = get_eth_packet_type ( l2_hdr -> iov_base ) ;\n return true ;\n }"}
{"idx": 9175, "target": 0, "func": "xmlBufferAllocationScheme * __xmlBufferAllocScheme ( void ) {\n if ( IS_MAIN_THREAD ) return ( & xmlBufferAllocScheme ) ;\n else return ( & xmlGetGlobalState ( ) -> xmlBufferAllocScheme ) ;\n }"}
{"idx": 9176, "target": 0, "func": "static void evhttp_make_header_request ( struct evhttp_connection * evcon , struct evhttp_request * req ) {\n const char * method ;\n evhttp_remove_header ( req -> output_headers , \"Proxy-Connection\" ) ;\n method = evhttp_method ( req -> type ) ;\n evbuffer_add_printf ( evcon -> output_buffer , \"%s %s HTTP/%d.%d\\r\\n\" , method , req -> uri , req -> major , req -> minor ) ;\n if ( req -> type == EVHTTP_REQ_POST && evhttp_find_header ( req -> output_headers , \"Content-Length\" ) == NULL ) {\n char size [ 22 ] ;\n evutil_snprintf ( size , sizeof ( size ) , \"%ld\" , ( long ) EVBUFFER_LENGTH ( req -> output_buffer ) ) ;\n evhttp_add_header ( req -> output_headers , \"Content-Length\" , size ) ;\n }\n }"}
{"idx": 9177, "target": 0, "func": "const EVP_CIPHER * EVP_aes_ ## keylen ## _ ## mode ( void ) \\ {\n return & aes_ ## keylen ## _ ## mode ;\n }\n # 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_CAPABLE ( OPENSSL_armcap_P & ARMV7_NEON ) # endif # if defined ( VPAES_ASM ) # define VPAES_CAPABLE ( OPENSSL_armcap_P & ARMV7_NEON ) # endif # define HWAES_CAPABLE ( OPENSSL_armcap_P & ARMV8_AES ) # define HWAES_set_encrypt_key aes_v8_set_encrypt_key # define HWAES_set_decrypt_key aes_v8_set_decrypt_key # define HWAES_encrypt aes_v8_encrypt # define HWAES_decrypt aes_v8_decrypt # define HWAES_cbc_encrypt aes_v8_cbc_encrypt # define HWAES_ctr32_encrypt_blocks aes_v8_ctr32_encrypt_blocks # endif # endif # if defined ( HWAES_CAPABLE ) int HWAES_set_encrypt_key ( const unsigned char * userKey , const int bits , AES_KEY * key ) ;\n int HWAES_set_decrypt_key ( const unsigned char * userKey , const int bits , AES_KEY * key ) ;\n void HWAES_encrypt ( const unsigned char * in , unsigned char * out , const AES_KEY * key ) ;\n void HWAES_decrypt ( const unsigned char * in , unsigned char * out , const AES_KEY * key ) ;\n void HWAES_cbc_encrypt ( const unsigned char * in , unsigned char * out , size_t length , const AES_KEY * key , unsigned char * ivec , const int enc ) ;\n void HWAES_ctr32_encrypt_blocks ( const unsigned char * in , unsigned char * out , size_t len , const AES_KEY * key , const unsigned char ivec [ 16 ] ) ;\n void HWAES_xts_encrypt ( const unsigned char * inp , unsigned char * out , size_t len , const AES_KEY * key1 , const AES_KEY * key2 , const unsigned char iv [ 16 ] ) ;\n void HWAES_xts_decrypt ( const unsigned char * inp , unsigned char * out , size_t len , const AES_KEY * key1 , const AES_KEY * key2 , const unsigned char iv [ 16 ] ) ;\n # endif # define BLOCK_CIPHER_generic_pack ( nid , keylen , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 16 , 16 , cbc , cbc , CBC , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 16 , 0 , ecb , ecb , ECB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , ofb128 , ofb , OFB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb128 , cfb , CFB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb1 , cfb1 , CFB , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb8 , cfb8 , CFB , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , ctr , ctr , CTR , flags ) static int aes_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n int ret , mode ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n mode = EVP_CIPHER_CTX_mode ( ctx ) ;\n if ( ( mode == EVP_CIPH_ECB_MODE || mode == EVP_CIPH_CBC_MODE ) && ! enc ) {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_decrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n # endif }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CBC_MODE ) {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = ( cbc128_f ) bsaes_cbc_encrypt ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n }\n }\n else # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_encrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n else # endif # ifdef HWAES_ctr32_encrypt_blocks if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) HWAES_ctr32_encrypt_blocks ;\n else # endif ( void ) 0 ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CTR_MODE ) {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . ctr = ( ctr128_f ) bsaes_ctr32_encrypt_blocks ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n # ifdef AES_CTR_ASM if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) AES_ctr32_encrypt ;\n # endif }\n if ( ret < 0 ) {\n EVPerr ( EVP_F_AES_INIT_KEY , EVP_R_AES_KEY_SETUP_FAILED ) ;\n return 0 ;\n }\n return 1 ;\n }\n static int aes_cbc_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( dat -> stream . cbc ) ( * dat -> stream . cbc ) ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_encrypting ( ctx ) ) ;\n else if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) CRYPTO_cbc128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , dat -> block ) ;\n else CRYPTO_cbc128_decrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , dat -> block ) ;\n return 1 ;\n }\n static int aes_ecb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n size_t bl = EVP_CIPHER_CTX_block_size ( ctx ) ;\n size_t i ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( len < bl ) return 1 ;\n for ( i = 0 , len -= bl ;\n i <= len ;\n i += bl ) ( * dat -> block ) ( in + i , out + i , & dat -> ks ) ;\n return 1 ;\n }\n static int aes_ofb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_ofb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb8_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_8_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb1_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( EVP_CIPHER_CTX_test_flags ( ctx , EVP_CIPH_FLAG_LENGTH_BITS ) ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n while ( len >= MAXBITCHUNK ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , MAXBITCHUNK * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n len -= MAXBITCHUNK ;\n }\n if ( len ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n }\n return 1 ;\n }\n static int aes_ctr_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n unsigned int num = EVP_CIPHER_CTX_num ( ctx ) ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( dat -> stream . ctr ) CRYPTO_ctr128_encrypt_ctr32 ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> stream . ctr ) ;\n else CRYPTO_ctr128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n BLOCK_CIPHER_generic_pack ( NID_aes , 128 , 0 ) BLOCK_CIPHER_generic_pack ( NID_aes , 192 , 0 ) BLOCK_CIPHER_generic_pack ( NID_aes , 256 , 0 ) static int aes_gcm_cleanup ( EVP_CIPHER_CTX * c ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , c ) ;\n OPENSSL_cleanse ( & gctx -> gcm , sizeof ( gctx -> gcm ) ) ;\n if ( gctx -> iv != EVP_CIPHER_CTX_iv_noconst ( c ) ) OPENSSL_free ( gctx -> iv ) ;\n return 1 ;\n }\n static void ctr64_inc ( unsigned char * counter ) {\n int n = 8 ;\n unsigned char c ;\n do {\n -- n ;\n c = counter [ n ] ;\n ++ c ;\n counter [ n ] = c ;\n if ( c ) return ;\n }\n while ( n ) ;\n }\n static int aes_gcm_ctrl ( EVP_CIPHER_CTX * c , int type , int arg , void * ptr ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , c ) ;\n switch ( type ) {\n case EVP_CTRL_INIT : gctx -> key_set = 0 ;\n gctx -> iv_set = 0 ;\n gctx -> ivlen = EVP_CIPHER_CTX_iv_length ( c ) ;\n gctx -> iv = EVP_CIPHER_CTX_iv_noconst ( c ) ;\n gctx -> taglen = - 1 ;\n gctx -> iv_gen = 0 ;\n gctx -> tls_aad_len = - 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_IVLEN : if ( arg <= 0 ) return 0 ;\n if ( ( arg > EVP_MAX_IV_LENGTH ) && ( arg > gctx -> ivlen ) ) {\n if ( gctx -> iv != EVP_CIPHER_CTX_iv_noconst ( c ) ) OPENSSL_free ( gctx -> iv ) ;\n gctx -> iv = OPENSSL_malloc ( arg ) ;\n if ( gctx -> iv == NULL ) return 0 ;\n }\n gctx -> ivlen = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_TAG : if ( arg <= 0 || arg > 16 || EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n gctx -> taglen = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_GET_TAG : if ( arg <= 0 || arg > 16 || ! EVP_CIPHER_CTX_encrypting ( c ) || gctx -> taglen < 0 ) return 0 ;\n memcpy ( ptr , EVP_CIPHER_CTX_buf_noconst ( c ) , arg ) ;\n return 1 ;\n case EVP_CTRL_GCM_SET_IV_FIXED : if ( arg == - 1 ) {\n memcpy ( gctx -> iv , ptr , gctx -> ivlen ) ;\n gctx -> iv_gen = 1 ;\n return 1 ;\n }\n if ( ( arg < 4 ) || ( gctx -> ivlen - arg ) < 8 ) return 0 ;\n if ( arg ) memcpy ( gctx -> iv , ptr , arg ) ;\n if ( EVP_CIPHER_CTX_encrypting ( c ) && RAND_bytes ( gctx -> iv + arg , gctx -> ivlen - arg ) <= 0 ) return 0 ;\n gctx -> iv_gen = 1 ;\n return 1 ;\n case EVP_CTRL_GCM_IV_GEN : if ( gctx -> iv_gen == 0 || gctx -> key_set == 0 ) return 0 ;\n CRYPTO_gcm128_setiv ( & gctx -> gcm , gctx -> iv , gctx -> ivlen ) ;\n if ( arg <= 0 || arg > gctx -> ivlen ) arg = gctx -> ivlen ;\n memcpy ( ptr , gctx -> iv + gctx -> ivlen - arg , arg ) ;\n ctr64_inc ( gctx -> iv + gctx -> ivlen - 8 ) ;\n gctx -> iv_set = 1 ;\n return 1 ;\n case EVP_CTRL_GCM_SET_IV_INV : if ( gctx -> iv_gen == 0 || gctx -> key_set == 0 || EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( gctx -> iv + gctx -> ivlen - arg , ptr , arg ) ;\n CRYPTO_gcm128_setiv ( & gctx -> gcm , gctx -> iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_TLS1_AAD : if ( arg != EVP_AEAD_TLS1_AAD_LEN ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n gctx -> tls_aad_len = arg ;\n {\n unsigned int len = EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] << 8 | EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] ;\n if ( len < EVP_GCM_TLS_EXPLICIT_IV_LEN ) return 0 ;\n len -= EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n if ( ! EVP_CIPHER_CTX_encrypting ( c ) ) {\n if ( len < EVP_GCM_TLS_TAG_LEN ) return 0 ;\n len -= EVP_GCM_TLS_TAG_LEN ;\n }\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] = len >> 8 ;\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] = len & 0xff ;\n }\n return EVP_GCM_TLS_TAG_LEN ;\n case EVP_CTRL_COPY : {\n EVP_CIPHER_CTX * out = ptr ;\n EVP_AES_GCM_CTX * gctx_out = EVP_C_DATA ( EVP_AES_GCM_CTX , out ) ;\n if ( gctx -> gcm . key ) {\n if ( gctx -> gcm . key != & gctx -> ks ) return 0 ;\n gctx_out -> gcm . key = & gctx_out -> ks ;\n }\n if ( gctx -> iv == EVP_CIPHER_CTX_iv_noconst ( c ) ) gctx_out -> iv = EVP_CIPHER_CTX_iv_noconst ( out ) ;\n else {\n gctx_out -> iv = OPENSSL_malloc ( gctx -> ivlen ) ;\n if ( gctx_out -> iv == NULL ) return 0 ;\n memcpy ( gctx_out -> iv , gctx -> iv , gctx -> ivlen ) ;\n }\n return 1 ;\n }\n default : return - 1 ;\n }\n }\n static int aes_gcm_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n if ( ! iv && ! key ) return 1 ;\n if ( key ) {\n do {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) HWAES_encrypt ) ;\n # ifdef HWAES_ctr32_encrypt_blocks gctx -> ctr = ( ctr128_f ) HWAES_ctr32_encrypt_blocks ;\n # else gctx -> ctr = NULL ;\n # endif break ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE ) {\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) AES_encrypt ) ;\n gctx -> ctr = ( ctr128_f ) bsaes_ctr32_encrypt_blocks ;\n break ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) vpaes_encrypt ) ;\n gctx -> ctr = NULL ;\n break ;\n }\n else # endif ( void ) 0 ;\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) AES_encrypt ) ;\n # ifdef AES_CTR_ASM gctx -> ctr = ( ctr128_f ) AES_ctr32_encrypt ;\n # else gctx -> ctr = NULL ;\n # endif }\n while ( 0 ) ;\n if ( iv == NULL && gctx -> iv_set ) iv = gctx -> iv ;\n if ( iv ) {\n CRYPTO_gcm128_setiv ( & gctx -> gcm , iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n }\n gctx -> key_set = 1 ;\n }\n else {\n if ( gctx -> key_set ) CRYPTO_gcm128_setiv ( & gctx -> gcm , iv , gctx -> ivlen ) ;\n else memcpy ( gctx -> iv , iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n gctx -> iv_gen = 0 ;\n }\n return 1 ;\n }\n static int aes_gcm_tls_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n int rv = - 1 ;\n if ( out != in || len < ( EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ) ) return - 1 ;\n if ( EVP_CIPHER_CTX_ctrl ( ctx , EVP_CIPHER_CTX_encrypting ( ctx ) ? EVP_CTRL_GCM_IV_GEN : EVP_CTRL_GCM_SET_IV_INV , EVP_GCM_TLS_EXPLICIT_IV_LEN , out ) <= 0 ) goto err ;\n if ( CRYPTO_gcm128_aad ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , gctx -> tls_aad_len ) ) goto err ;\n in += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n out += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n len -= EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ;\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 32 && AES_GCM_ASM ( gctx ) ) {\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_encrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) goto err ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 32 && AES_GCM_ASM2 ( gctx ) ) {\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) goto err ;\n }\n out += len ;\n CRYPTO_gcm128_tag ( & gctx -> gcm , out , EVP_GCM_TLS_TAG_LEN ) ;\n rv = len + EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ;\n }\n else {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 16 && AES_GCM_ASM ( gctx ) ) {\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_decrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) goto err ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 16 && AES_GCM_ASM2 ( gctx ) ) {\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) goto err ;\n }\n CRYPTO_gcm128_tag ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , EVP_GCM_TLS_TAG_LEN ) ;\n if ( CRYPTO_memcmp ( EVP_CIPHER_CTX_buf_noconst ( ctx ) , in + len , EVP_GCM_TLS_TAG_LEN ) ) {\n OPENSSL_cleanse ( out , len ) ;\n goto err ;\n }\n rv = len ;\n }\n err : gctx -> iv_set = 0 ;\n gctx -> tls_aad_len = - 1 ;\n return rv ;\n }\n static int aes_gcm_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n if ( ! gctx -> key_set ) return - 1 ;\n if ( gctx -> tls_aad_len >= 0 ) return aes_gcm_tls_cipher ( ctx , out , in , len ) ;\n if ( ! gctx -> iv_set ) return - 1 ;\n if ( in ) {\n if ( out == NULL ) {\n if ( CRYPTO_gcm128_aad ( & gctx -> gcm , in , len ) ) return - 1 ;\n }\n else if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 32 && AES_GCM_ASM ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_encrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) return - 1 ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 32 && AES_GCM_ASM2 ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) return - 1 ;\n }\n }\n else {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 16 && AES_GCM_ASM ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_decrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) return - 1 ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 16 && AES_GCM_ASM2 ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) return - 1 ;\n }\n }\n return len ;\n }\n else {\n if ( ! EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> taglen < 0 ) return - 1 ;\n if ( CRYPTO_gcm128_finish ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , gctx -> taglen ) != 0 ) return - 1 ;\n gctx -> iv_set = 0 ;\n return 0 ;\n }\n CRYPTO_gcm128_tag ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , 16 ) ;\n gctx -> taglen = 16 ;\n gctx -> iv_set = 0 ;\n return 0 ;\n }\n }\n # define CUSTOM_FLAGS ( EVP_CIPH_FLAG_DEFAULT_ASN1 \\ | EVP_CIPH_CUSTOM_IV | EVP_CIPH_FLAG_CUSTOM_CIPHER \\ | EVP_CIPH_ALWAYS_CALL_INIT | EVP_CIPH_CTRL_INIT \\ | EVP_CIPH_CUSTOM_COPY ) BLOCK_CIPHER_custom ( NID_aes , 128 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 192 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 256 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS )"}
{"idx": 9178, "target": 0, "func": "static void optimize_mb ( MACROBLOCK * x ) {\n int b ;\n int type ;\n int has_2nd_order ;\n ENTROPY_CONTEXT_PLANES t_above , t_left ;\n ENTROPY_CONTEXT * ta ;\n ENTROPY_CONTEXT * tl ;\n vpx_memcpy ( & t_above , x -> e_mbd . above_context , sizeof ( ENTROPY_CONTEXT_PLANES ) ) ;\n vpx_memcpy ( & t_left , x -> e_mbd . left_context , sizeof ( ENTROPY_CONTEXT_PLANES ) ) ;\n ta = ( ENTROPY_CONTEXT * ) & t_above ;\n tl = ( ENTROPY_CONTEXT * ) & t_left ;\n has_2nd_order = ( x -> e_mbd . mode_info_context -> mbmi . mode != B_PRED && x -> e_mbd . mode_info_context -> mbmi . mode != SPLITMV ) ;\n type = has_2nd_order ? PLANE_TYPE_Y_NO_DC : PLANE_TYPE_Y_WITH_DC ;\n for ( b = 0 ;\n b < 16 ;\n b ++ ) {\n optimize_b ( x , b , type , ta + vp8_block2above [ b ] , tl + vp8_block2left [ b ] ) ;\n }\n for ( b = 16 ;\n b < 24 ;\n b ++ ) {\n optimize_b ( x , b , PLANE_TYPE_UV , ta + vp8_block2above [ b ] , tl + vp8_block2left [ b ] ) ;\n }\n if ( has_2nd_order ) {\n b = 24 ;\n optimize_b ( x , b , PLANE_TYPE_Y2 , ta + vp8_block2above [ b ] , tl + vp8_block2left [ b ] ) ;\n check_reset_2nd_coeffs ( & x -> e_mbd , PLANE_TYPE_Y2 , ta + vp8_block2above [ b ] , tl + vp8_block2left [ b ] ) ;\n }\n }"}
{"idx": 9179, "target": 1, "func": "static int cllc_decode_frame ( AVCodecContext * avctx , void * data , int * got_picture_ptr , AVPacket * avpkt ) {\n CLLCContext * ctx = avctx -> priv_data ;\n AVFrame * pic = avctx -> coded_frame ;\n uint8_t * src = avpkt -> data ;\n uint32_t info_tag , info_offset ;\n int data_size ;\n GetBitContext gb ;\n int coding_type , ret ;\n if ( pic -> data [ 0 ] ) avctx -> release_buffer ( avctx , pic ) ;\n pic -> reference = 0 ;\n info_offset = 0 ;\n info_tag = AV_RL32 ( src ) ;\n if ( info_tag == MKTAG ( 'I' , 'N' , 'F' , 'O' ) ) {\n info_offset = AV_RL32 ( src + 4 ) ;\n if ( info_offset > UINT32_MAX - 8 || info_offset + 8 > avpkt -> size ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid INFO header offset: 0x%08X is too large.\\n\" , info_offset ) ;\n return AVERROR_INVALIDDATA ;\n }\n info_offset += 8 ;\n src += info_offset ;\n av_log ( avctx , AV_LOG_DEBUG , \"Skipping INFO chunk.\\n\" ) ;\n }\n data_size = ( avpkt -> size - info_offset ) & ~ 1 ;\n av_fast_padded_malloc ( & ctx -> swapped_buf , & ctx -> swapped_buf_size , data_size ) ;\n if ( ! ctx -> swapped_buf ) {\n av_log ( avctx , AV_LOG_ERROR , \"Could not allocate swapped buffer.\\n\" ) ;\n return AVERROR ( ENOMEM ) ;\n }\n ctx -> dsp . bswap16_buf ( ( uint16_t * ) ctx -> swapped_buf , ( uint16_t * ) src , data_size / 2 ) ;\n init_get_bits ( & gb , ctx -> swapped_buf , data_size * 8 ) ;\n coding_type = ( AV_RL32 ( src ) >> 8 ) & 0xFF ;\n av_log ( avctx , AV_LOG_DEBUG , \"Frame coding type: %d\\n\" , coding_type ) ;\n switch ( coding_type ) {\n case 1 : case 2 : avctx -> pix_fmt = AV_PIX_FMT_RGB24 ;\n avctx -> bits_per_raw_sample = 8 ;\n ret = ff_get_buffer ( avctx , pic ) ;\n if ( ret < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Could not allocate buffer.\\n\" ) ;\n return ret ;\n }\n ret = decode_rgb24_frame ( ctx , & gb , pic ) ;\n if ( ret < 0 ) return ret ;\n break ;\n case 3 : avctx -> pix_fmt = AV_PIX_FMT_ARGB ;\n avctx -> bits_per_raw_sample = 8 ;\n ret = ff_get_buffer ( avctx , pic ) ;\n if ( ret < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Could not allocate buffer.\\n\" ) ;\n return ret ;\n }\n ret = decode_argb_frame ( ctx , & gb , pic ) ;\n if ( ret < 0 ) return ret ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"Unknown coding type: %d.\\n\" , coding_type ) ;\n return AVERROR_INVALIDDATA ;\n }\n pic -> key_frame = 1 ;\n pic -> pict_type = AV_PICTURE_TYPE_I ;\n * got_picture_ptr = 1 ;\n * ( AVFrame * ) data = * pic ;\n return avpkt -> size ;\n }"}
{"idx": 9180, "target": 0, "func": "static int dissect_rsl_ie_ch_mode ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_item * ti ;\n proto_tree * ie_tree ;\n guint8 length ;\n int ie_offset ;\n guint8 ie_id ;\n guint8 octet ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_CH_MODE ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_ie_ch_mode , & ti , \"Channel Mode IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n length = tvb_get_guint8 ( tvb , offset ) ;\n proto_item_set_len ( ti , length + 2 ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_length , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n ie_offset = offset ;\n proto_tree_add_item ( ie_tree , hf_rsl_cm_dtxd , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_cm_dtxu , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_speech_or_data , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n octet = tvb_get_guint8 ( tvb , offset ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_ch_rate_and_type , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n switch ( octet ) {\n case 1 : proto_tree_add_item ( ie_tree , hf_rsl_speech_coding_alg , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n break ;\n case 2 : proto_tree_add_item ( ie_tree , hf_rsl_extension_bit , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_t_nt_bit , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n octet = tvb_get_guint8 ( tvb , offset ) ;\n if ( ( octet & 0x40 ) == 0x40 ) {\n proto_tree_add_item ( ie_tree , hf_rsl_ra_if_data_rte , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n }\n else {\n proto_tree_add_item ( ie_tree , hf_rsl_data_rte , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n }\n break ;\n case 3 : proto_tree_add_item ( ie_tree , hf_rsl_no_resources_required , tvb , offset , 1 , ENC_NA ) ;\n break ;\n default : proto_tree_add_expert ( ie_tree , pinfo , & ei_rsl_speech_or_data_indicator , tvb , offset , 1 ) ;\n break ;\n }\n offset ++ ;\n return ie_offset + length ;\n }"}
{"idx": 9181, "target": 0, "func": "static void truespeech_synth ( TSContext * dec , int16_t * out , int quart ) {\n int i , k ;\n int t [ 8 ] ;\n int16_t * ptr0 , * ptr1 ;\n ptr0 = dec -> tmp1 ;\n ptr1 = dec -> filters + quart * 8 ;\n for ( i = 0 ;\n i < 60 ;\n i ++ ) {\n int sum = 0 ;\n for ( k = 0 ;\n k < 8 ;\n k ++ ) sum += ptr0 [ k ] * ptr1 [ k ] ;\n sum = ( sum + ( out [ i ] << 12 ) + 0x800 ) >> 12 ;\n out [ i ] = av_clip ( sum , - 0x7FFE , 0x7FFE ) ;\n for ( k = 7 ;\n k > 0 ;\n k -- ) ptr0 [ k ] = ptr0 [ k - 1 ] ;\n ptr0 [ 0 ] = out [ i ] ;\n }\n for ( i = 0 ;\n i < 8 ;\n i ++ ) t [ i ] = ( ts_decay_35_64 [ i ] * ptr1 [ i ] ) >> 15 ;\n ptr0 = dec -> tmp2 ;\n for ( i = 0 ;\n i < 60 ;\n i ++ ) {\n int sum = 0 ;\n for ( k = 0 ;\n k < 8 ;\n k ++ ) sum += ptr0 [ k ] * t [ k ] ;\n for ( k = 7 ;\n k > 0 ;\n k -- ) ptr0 [ k ] = ptr0 [ k - 1 ] ;\n ptr0 [ 0 ] = out [ i ] ;\n out [ i ] = ( ( out [ i ] << 12 ) - sum ) >> 12 ;\n }\n for ( i = 0 ;\n i < 8 ;\n i ++ ) t [ i ] = ( ts_decay_3_4 [ i ] * ptr1 [ i ] ) >> 15 ;\n ptr0 = dec -> tmp3 ;\n for ( i = 0 ;\n i < 60 ;\n i ++ ) {\n int sum = out [ i ] << 12 ;\n for ( k = 0 ;\n k < 8 ;\n k ++ ) sum += ptr0 [ k ] * t [ k ] ;\n for ( k = 7 ;\n k > 0 ;\n k -- ) ptr0 [ k ] = ptr0 [ k - 1 ] ;\n ptr0 [ 0 ] = av_clip ( ( sum + 0x800 ) >> 12 , - 0x7FFE , 0x7FFE ) ;\n sum = ( ( ptr0 [ 1 ] * ( dec -> filtval - ( dec -> filtval >> 2 ) ) ) >> 4 ) + sum ;\n sum = sum - ( sum >> 3 ) ;\n out [ i ] = av_clip ( ( sum + 0x800 ) >> 12 , - 0x7FFE , 0x7FFE ) ;\n }\n }"}
{"idx": 9182, "target": 0, "func": "static void processlacon ( struct vars * v , struct state * begin , struct state * end , int latype , struct state * lp , struct state * rp ) {\n struct state * s1 ;\n int n ;\n s1 = single_color_transition ( begin , end ) ;\n switch ( latype ) {\n case LATYPE_AHEAD_POS : if ( s1 != NULL ) {\n cloneouts ( v -> nfa , s1 , lp , rp , AHEAD ) ;\n return ;\n }\n break ;\n case LATYPE_AHEAD_NEG : if ( s1 != NULL ) {\n colorcomplement ( v -> nfa , v -> cm , AHEAD , s1 , lp , rp ) ;\n newarc ( v -> nfa , '$' , 1 , lp , rp ) ;\n newarc ( v -> nfa , '$' , 0 , lp , rp ) ;\n return ;\n }\n break ;\n case LATYPE_BEHIND_POS : if ( s1 != NULL ) {\n cloneouts ( v -> nfa , s1 , lp , rp , BEHIND ) ;\n return ;\n }\n break ;\n case LATYPE_BEHIND_NEG : if ( s1 != NULL ) {\n colorcomplement ( v -> nfa , v -> cm , BEHIND , s1 , lp , rp ) ;\n newarc ( v -> nfa , '^' , 1 , lp , rp ) ;\n newarc ( v -> nfa , '^' , 0 , lp , rp ) ;\n return ;\n }\n break ;\n default : assert ( NOTREACHED ) ;\n }\n n = newlacon ( v , begin , end , latype ) ;\n newarc ( v -> nfa , LACON , n , lp , rp ) ;\n }"}
{"idx": 9183, "target": 1, "func": "static int dissect_q931_ie_cs7 ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n dissect_q931_IEs ( tvb , pinfo , NULL , tree , FALSE , 0 , 7 ) ;\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 9184, "target": 0, "func": "static int mss4_decode_image_block ( MSS4Context * ctx , GetBitContext * gb , uint8_t * picdst [ 3 ] , int mb_x , int mb_y ) {\n uint8_t vec [ 3 ] [ 4 ] ;\n int vec_len [ 3 ] ;\n int sel_len [ 3 ] , sel_flag [ 3 ] ;\n int i , j , k , mode , split ;\n int prev_vec1 = 0 , prev_split = 0 ;\n int vals [ 3 ] = {\n 0 }\n ;\n int prev_pix [ 3 ] = {\n 0 }\n ;\n int prev_mode [ 16 ] = {\n 0 }\n ;\n uint8_t * dst [ 3 ] ;\n const int val_shift = ctx -> quality == 100 ? 0 : 2 ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) dst [ i ] = ctx -> imgbuf [ i ] ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n vec_len [ i ] = vec_len_syms [ ! ! i ] [ get_unary ( gb , 0 , 3 ) ] ;\n for ( j = 0 ;\n j < vec_len [ i ] ;\n j ++ ) {\n vec [ i ] [ j ] = get_coeff ( gb , & ctx -> vec_entry_vlc [ ! ! i ] ) ;\n vec [ i ] [ j ] += ctx -> prev_vec [ i ] [ j ] ;\n ctx -> prev_vec [ i ] [ j ] = vec [ i ] [ j ] ;\n }\n sel_flag [ i ] = vec_len [ i ] > 1 ;\n sel_len [ i ] = vec_len [ i ] > 2 ? vec_len [ i ] - 2 : 0 ;\n }\n for ( j = 0 ;\n j < 16 ;\n j ++ ) {\n if ( get_bits1 ( gb ) ) {\n split = 0 ;\n if ( get_bits1 ( gb ) ) {\n prev_mode [ 0 ] = 0 ;\n vals [ 0 ] = vals [ 1 ] = vals [ 2 ] = 0 ;\n mode = 2 ;\n }\n else {\n mode = get_bits1 ( gb ) ;\n if ( mode ) split = get_bits ( gb , 4 ) ;\n }\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n if ( mode <= 1 ) {\n vals [ 0 ] = prev_mode [ i ] & 7 ;\n vals [ 1 ] = ( prev_mode [ i ] >> 3 ) & 7 ;\n vals [ 2 ] = prev_mode [ i ] >> 6 ;\n if ( mode == 1 && i == split ) {\n read_vec_pos ( gb , vals , sel_flag , sel_len , vals ) ;\n }\n }\n else if ( mode == 2 ) {\n if ( get_bits1 ( gb ) ) read_vec_pos ( gb , vals , sel_flag , sel_len , vals ) ;\n }\n for ( k = 0 ;\n k < 3 ;\n k ++ ) * dst [ k ] ++ = get_value_cached ( gb , vals [ k ] , vec [ k ] , vec_len [ k ] , k , val_shift , prev_pix ) ;\n prev_mode [ i ] = MKVAL ( vals ) ;\n }\n }\n else {\n if ( get_bits1 ( gb ) ) {\n split = get_bits ( gb , 4 ) ;\n if ( split >= prev_split ) split ++ ;\n prev_split = split ;\n }\n else {\n split = prev_split ;\n }\n if ( split ) {\n vals [ 0 ] = prev_mode [ 0 ] & 7 ;\n vals [ 1 ] = ( prev_mode [ 0 ] >> 3 ) & 7 ;\n vals [ 2 ] = prev_mode [ 0 ] >> 6 ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n for ( k = 0 ;\n k < split ;\n k ++ ) {\n * dst [ i ] ++ = get_value_cached ( gb , vals [ i ] , vec [ i ] , vec_len [ i ] , i , val_shift , prev_pix ) ;\n prev_mode [ k ] = MKVAL ( vals ) ;\n }\n }\n }\n if ( split != 16 ) {\n vals [ 0 ] = prev_vec1 & 7 ;\n vals [ 1 ] = ( prev_vec1 >> 3 ) & 7 ;\n vals [ 2 ] = prev_vec1 >> 6 ;\n if ( get_bits1 ( gb ) ) {\n read_vec_pos ( gb , vals , sel_flag , sel_len , vals ) ;\n prev_vec1 = MKVAL ( vals ) ;\n }\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n for ( k = 0 ;\n k < 16 - split ;\n k ++ ) {\n * dst [ i ] ++ = get_value_cached ( gb , vals [ i ] , vec [ i ] , vec_len [ i ] , i , val_shift , prev_pix ) ;\n prev_mode [ split + k ] = MKVAL ( vals ) ;\n }\n }\n }\n }\n }\n for ( i = 0 ;\n i < 3 ;\n i ++ ) for ( j = 0 ;\n j < 16 ;\n j ++ ) memcpy ( picdst [ i ] + mb_x * 16 + j * ctx -> pic . linesize [ i ] , ctx -> imgbuf [ i ] + j * 16 , 16 ) ;\n return 0 ;\n }"}
{"idx": 9185, "target": 1, "func": "static int amrwb_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AMRWBContext * ctx = avctx -> priv_data ;\n AVFrame * frame = data ;\n AMRWBFrame * cf = & ctx -> frame ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n int expected_fr_size , header_size ;\n float * buf_out ;\n float spare_vector [ AMRWB_SFR_SIZE ] ;\n float fixed_gain_factor ;\n float * synth_fixed_vector ;\n float synth_fixed_gain ;\n float voice_fac , stab_fac ;\n float synth_exc [ AMRWB_SFR_SIZE ] ;\n float hb_exc [ AMRWB_SFR_SIZE_16k ] ;\n float hb_samples [ AMRWB_SFR_SIZE_16k ] ;\n float hb_gain ;\n int sub , i , ret ;\n frame -> nb_samples = 4 * AMRWB_SFR_SIZE_16k ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n buf_out = ( float * ) frame -> data [ 0 ] ;\n header_size = decode_mime_header ( ctx , buf ) ;\n if ( ctx -> fr_cur_mode > MODE_SID ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid mode %d\\n\" , ctx -> fr_cur_mode ) ;\n return AVERROR_INVALIDDATA ;\n }\n expected_fr_size = ( ( cf_sizes_wb [ ctx -> fr_cur_mode ] + 7 ) >> 3 ) + 1 ;\n if ( buf_size < expected_fr_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"Frame too small (%d bytes). Truncated file?\\n\" , buf_size ) ;\n * got_frame_ptr = 0 ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ! ctx -> fr_quality || ctx -> fr_cur_mode > MODE_SID ) av_log ( avctx , AV_LOG_ERROR , \"Encountered a bad or corrupted frame\\n\" ) ;\n if ( ctx -> fr_cur_mode == MODE_SID ) {\n av_log_missing_feature ( avctx , \"SID mode\" , 1 ) ;\n return AVERROR_PATCHWELCOME ;\n }\n ff_amr_bit_reorder ( ( uint16_t * ) & ctx -> frame , sizeof ( AMRWBFrame ) , buf + header_size , amr_bit_orderings_by_mode [ ctx -> fr_cur_mode ] ) ;\n if ( ctx -> fr_cur_mode == MODE_6k60 ) {\n decode_isf_indices_36b ( cf -> isp_id , ctx -> isf_cur ) ;\n }\n else {\n decode_isf_indices_46b ( cf -> isp_id , ctx -> isf_cur ) ;\n }\n isf_add_mean_and_past ( ctx -> isf_cur , ctx -> isf_q_past ) ;\n ff_set_min_dist_lsf ( ctx -> isf_cur , MIN_ISF_SPACING , LP_ORDER - 1 ) ;\n stab_fac = stability_factor ( ctx -> isf_cur , ctx -> isf_past_final ) ;\n ctx -> isf_cur [ LP_ORDER - 1 ] *= 2.0 ;\n ff_acelp_lsf2lspd ( ctx -> isp [ 3 ] , ctx -> isf_cur , LP_ORDER ) ;\n if ( ctx -> first_frame ) {\n ctx -> first_frame = 0 ;\n memcpy ( ctx -> isp_sub4_past , ctx -> isp [ 3 ] , LP_ORDER * sizeof ( double ) ) ;\n }\n interpolate_isp ( ctx -> isp , ctx -> isp_sub4_past ) ;\n for ( sub = 0 ;\n sub < 4 ;\n sub ++ ) ff_amrwb_lsp2lpc ( ctx -> isp [ sub ] , ctx -> lp_coef [ sub ] , LP_ORDER ) ;\n for ( sub = 0 ;\n sub < 4 ;\n sub ++ ) {\n const AMRWBSubFrame * cur_subframe = & cf -> subframe [ sub ] ;\n float * sub_buf = buf_out + sub * AMRWB_SFR_SIZE_16k ;\n decode_pitch_vector ( ctx , cur_subframe , sub ) ;\n decode_fixed_vector ( ctx -> fixed_vector , cur_subframe -> pul_ih , cur_subframe -> pul_il , ctx -> fr_cur_mode ) ;\n pitch_sharpening ( ctx , ctx -> fixed_vector ) ;\n decode_gains ( cur_subframe -> vq_gain , ctx -> fr_cur_mode , & fixed_gain_factor , & ctx -> pitch_gain [ 0 ] ) ;\n ctx -> fixed_gain [ 0 ] = ff_amr_set_fixed_gain ( fixed_gain_factor , avpriv_scalarproduct_float_c ( ctx -> fixed_vector , ctx -> fixed_vector , AMRWB_SFR_SIZE ) / AMRWB_SFR_SIZE , ctx -> prediction_error , ENERGY_MEAN , energy_pred_fac ) ;\n voice_fac = voice_factor ( ctx -> pitch_vector , ctx -> pitch_gain [ 0 ] , ctx -> fixed_vector , ctx -> fixed_gain [ 0 ] ) ;\n ctx -> tilt_coef = voice_fac * 0.25 + 0.25 ;\n for ( i = 0 ;\n i < AMRWB_SFR_SIZE ;\n i ++ ) {\n ctx -> excitation [ i ] *= ctx -> pitch_gain [ 0 ] ;\n ctx -> excitation [ i ] += ctx -> fixed_gain [ 0 ] * ctx -> fixed_vector [ i ] ;\n ctx -> excitation [ i ] = truncf ( ctx -> excitation [ i ] ) ;\n }\n synth_fixed_gain = noise_enhancer ( ctx -> fixed_gain [ 0 ] , & ctx -> prev_tr_gain , voice_fac , stab_fac ) ;\n synth_fixed_vector = anti_sparseness ( ctx , ctx -> fixed_vector , spare_vector ) ;\n pitch_enhancer ( synth_fixed_vector , voice_fac ) ;\n synthesis ( ctx , ctx -> lp_coef [ sub ] , synth_exc , synth_fixed_gain , synth_fixed_vector , & ctx -> samples_az [ LP_ORDER ] ) ;\n de_emphasis ( & ctx -> samples_up [ UPS_MEM_SIZE ] , & ctx -> samples_az [ LP_ORDER ] , PREEMPH_FAC , ctx -> demph_mem ) ;\n ff_acelp_apply_order_2_transfer_function ( & ctx -> samples_up [ UPS_MEM_SIZE ] , & ctx -> samples_up [ UPS_MEM_SIZE ] , hpf_zeros , hpf_31_poles , hpf_31_gain , ctx -> hpf_31_mem , AMRWB_SFR_SIZE ) ;\n upsample_5_4 ( sub_buf , & ctx -> samples_up [ UPS_FIR_SIZE ] , AMRWB_SFR_SIZE_16k ) ;\n ff_acelp_apply_order_2_transfer_function ( hb_samples , & ctx -> samples_up [ UPS_MEM_SIZE ] , hpf_zeros , hpf_400_poles , hpf_400_gain , ctx -> hpf_400_mem , AMRWB_SFR_SIZE ) ;\n hb_gain = find_hb_gain ( ctx , hb_samples , cur_subframe -> hb_gain , cf -> vad ) ;\n scaled_hb_excitation ( ctx , hb_exc , synth_exc , hb_gain ) ;\n hb_synthesis ( ctx , sub , & ctx -> samples_hb [ LP_ORDER_16k ] , hb_exc , ctx -> isf_cur , ctx -> isf_past_final ) ;\n hb_fir_filter ( hb_samples , bpf_6_7_coef , ctx -> bpf_6_7_mem , & ctx -> samples_hb [ LP_ORDER_16k ] ) ;\n if ( ctx -> fr_cur_mode == MODE_23k85 ) hb_fir_filter ( hb_samples , lpf_7_coef , ctx -> lpf_7_mem , hb_samples ) ;\n for ( i = 0 ;\n i < AMRWB_SFR_SIZE_16k ;\n i ++ ) sub_buf [ i ] = ( sub_buf [ i ] + hb_samples [ i ] ) * ( 1.0f / ( 1 << 15 ) ) ;\n update_sub_state ( ctx ) ;\n }\n memcpy ( ctx -> isp_sub4_past , ctx -> isp [ 3 ] , LP_ORDER * sizeof ( ctx -> isp [ 3 ] [ 0 ] ) ) ;\n memcpy ( ctx -> isf_past_final , ctx -> isf_cur , LP_ORDER * sizeof ( float ) ) ;\n * got_frame_ptr = 1 ;\n return expected_fr_size ;\n }"}
{"idx": 9186, "target": 0, "func": "static void dissect_t38_tcp ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree ) {\n primary_part = TRUE ;\n if ( t38_tpkt_usage == T38_TPKT_ALWAYS ) {\n dissect_tpkt_encap ( tvb , pinfo , tree , t38_tpkt_reassembly , t38_tcp_pdu_handle ) ;\n }\n else if ( ( t38_tpkt_usage == T38_TPKT_NEVER ) || ( is_tpkt ( tvb , 1 ) == - 1 ) ) {\n dissect_t38_tcp_pdu ( tvb , pinfo , tree ) ;\n }\n else {\n dissect_tpkt_encap ( tvb , pinfo , tree , t38_tpkt_reassembly , t38_tcp_pdu_handle ) ;\n }\n }"}
{"idx": 9187, "target": 0, "func": "static void isofile_init_hardlinks ( struct iso9660 * iso9660 ) {\n static const struct archive_rb_tree_ops rb_ops = {\n isofile_hd_cmp_node , isofile_hd_cmp_key , }\n ;\n __archive_rb_tree_init ( & ( iso9660 -> hardlink_rbtree ) , & rb_ops ) ;\n }"}
{"idx": 9188, "target": 0, "func": "static void yy_symbol_print ( FILE * yyoutput , int yytype , YYSTYPE const * const yyvaluep ) # else static void yy_symbol_print ( yyoutput , yytype , yyvaluep ) FILE * yyoutput ;\n int yytype ;\n YYSTYPE const * const yyvaluep ;\n # endif {\n if ( yytype < YYNTOKENS ) YYFPRINTF ( yyoutput , \"token %s (\" , yytname [ yytype ] ) ;\n else YYFPRINTF ( yyoutput , \"nterm %s (\" , yytname [ yytype ] ) ;\n yy_symbol_value_print ( yyoutput , yytype , yyvaluep ) ;\n YYFPRINTF ( yyoutput , \")\" ) ;\n }"}
{"idx": 9189, "target": 0, "func": "static h225_packet_info * create_h225_packet_info ( packet_info * pinfo ) {\n h225_packet_info * pi = wmem_new0 ( pinfo -> pool , h225_packet_info ) ;\n pi -> msg_type = H225_OTHERS ;\n pi -> cs_type = H225_OTHER ;\n pi -> msg_tag = - 1 ;\n pi -> reason = - 1 ;\n return pi ;\n }"}
{"idx": 9190, "target": 0, "func": "int i2d_PKCS8_PRIV_KEY_INFO_fp ( FILE * fp , PKCS8_PRIV_KEY_INFO * p8inf ) {\n return ASN1_i2d_fp_of ( PKCS8_PRIV_KEY_INFO , i2d_PKCS8_PRIV_KEY_INFO , fp , p8inf ) ;\n }"}
{"idx": 9191, "target": 0, "func": "static int amr_decode_fix_avctx ( AVCodecContext * avctx ) {\n const int is_amr_wb = 1 + ( avctx -> codec_id == AV_CODEC_ID_AMR_WB ) ;\n avctx -> sample_rate = 8000 * is_amr_wb ;\n if ( avctx -> channels > 1 ) {\n av_log_missing_feature ( avctx , \"multi-channel AMR\" , 0 ) ;\n return AVERROR_PATCHWELCOME ;\n }\n avctx -> channels = 1 ;\n avctx -> channel_layout = AV_CH_LAYOUT_MONO ;\n avctx -> sample_fmt = AV_SAMPLE_FMT_S16 ;\n return 0 ;\n }"}
{"idx": 9192, "target": 1, "func": "static int fill_vaapi_ReferenceFrames ( VAPictureParameterBufferH264 * pic_param , H264Context * h ) {\n DPB dpb ;\n int i ;\n dpb . size = 0 ;\n dpb . max_size = FF_ARRAY_ELEMS ( pic_param -> ReferenceFrames ) ;\n dpb . va_pics = pic_param -> ReferenceFrames ;\n for ( i = 0 ;\n i < dpb . max_size ;\n i ++ ) init_vaapi_pic ( & dpb . va_pics [ i ] ) ;\n for ( i = 0 ;\n i < h -> short_ref_count ;\n i ++ ) {\n Picture * const pic = h -> short_ref [ i ] ;\n if ( pic && pic -> f . reference && dpb_add ( & dpb , pic ) < 0 ) return - 1 ;\n }\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n Picture * const pic = h -> long_ref [ i ] ;\n if ( pic && pic -> f . reference && dpb_add ( & dpb , pic ) < 0 ) return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 9193, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FullscreenControllerInteractiveTest , EscapingMouseLock ) {\n ASSERT_TRUE ( test_server ( ) -> Start ( ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , test_server ( ) -> GetURL ( kFullscreenMouseLockHTML ) ) ;\n ASSERT_FALSE ( IsFullscreenBubbleDisplayed ( ) ) ;\n {\n ASSERT_TRUE ( ui_test_utils : : SendKeyPressAndWait ( browser ( ) , ui : : VKEY_1 , false , false , false , false , chrome : : NOTIFICATION_MOUSE_LOCK_CHANGED , content : : NotificationService : : AllSources ( ) ) ) ;\n }\n ASSERT_FALSE ( IsFullscreenPermissionRequested ( ) ) ;\n ASSERT_TRUE ( IsMouseLockPermissionRequested ( ) ) ;\n SendEscapeToFullscreenController ( ) ;\n ASSERT_FALSE ( IsFullscreenPermissionRequested ( ) ) ;\n ASSERT_FALSE ( IsMouseLockPermissionRequested ( ) ) ;\n {\n ASSERT_TRUE ( ui_test_utils : : SendKeyPressAndWait ( browser ( ) , ui : : VKEY_1 , false , false , false , false , chrome : : NOTIFICATION_MOUSE_LOCK_CHANGED , content : : NotificationService : : AllSources ( ) ) ) ;\n }\n ASSERT_FALSE ( IsFullscreenPermissionRequested ( ) ) ;\n ASSERT_TRUE ( IsMouseLockPermissionRequested ( ) ) ;\n AcceptCurrentFullscreenOrMouseLockRequest ( ) ;\n ASSERT_TRUE ( IsMouseLocked ( ) ) ;\n ASSERT_FALSE ( IsWindowFullscreenForTabOrPending ( ) ) ;\n ASSERT_FALSE ( IsFullscreenPermissionRequested ( ) ) ;\n ASSERT_FALSE ( IsMouseLockPermissionRequested ( ) ) ;\n SendEscapeToFullscreenController ( ) ;\n ASSERT_FALSE ( IsMouseLocked ( ) ) ;\n ASSERT_FALSE ( IsWindowFullscreenForTabOrPending ( ) ) ;\n ASSERT_FALSE ( IsFullscreenPermissionRequested ( ) ) ;\n ASSERT_FALSE ( IsMouseLockPermissionRequested ( ) ) ;\n }"}
{"idx": 9194, "target": 0, "func": "guint16 elem_tlv_e ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint8 iei , gint pdu_type , int idx , guint32 offset , guint len _U_ , const gchar * name_add ) {\n guint8 oct ;\n guint16 parm_len ;\n guint16 consumed ;\n guint32 curr_offset ;\n proto_tree * subtree ;\n proto_item * item ;\n value_string_ext elem_names_ext ;\n gint * elem_ett ;\n const gchar * elem_name ;\n guint16 ( * * elem_funcs ) ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string , int string_len ) ;\n curr_offset = offset ;\n consumed = 0 ;\n SET_ELEM_VARS ( pdu_type , elem_names_ext , elem_ett , elem_funcs , & ei_gsm_a_unknown_pdu_type ) ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n if ( oct == iei ) {\n parm_len = tvb_get_ntohs ( tvb , curr_offset + 1 ) ;\n elem_name = try_val_to_str_ext ( idx , & elem_names_ext ) ;\n if ( elem_name == NULL ) {\n proto_tree_add_expert_format ( tree , pinfo , & ei_gsm_a_unknown_element , tvb , curr_offset , parm_len + 1 + 2 , \"Unknown - aborting dissection%s\" , ( name_add == NULL ) || ( name_add [ 0 ] == '\\0' ) ? \"\" : name_add ) ;\n return consumed ;\n }\n subtree = proto_tree_add_subtree_format ( tree , tvb , curr_offset , parm_len + 1 + 2 , elem_ett [ idx ] , & item , \"%s%s\" , elem_name , ( name_add == NULL ) || ( name_add [ 0 ] == '\\0' ) ? \"\" : name_add ) ;\n proto_tree_add_uint ( subtree , get_hf_elem_id ( pdu_type ) , tvb , curr_offset , 1 , oct ) ;\n proto_tree_add_uint ( subtree , hf_gsm_a_length , tvb , curr_offset + 1 , 2 , parm_len ) ;\n if ( parm_len > 0 ) {\n if ( elem_funcs [ idx ] == NULL ) {\n proto_tree_add_item ( subtree , hf_gsm_a_element_value , tvb , curr_offset + 1 + 2 , parm_len , ENC_NA ) ;\n consumed = parm_len ;\n }\n else {\n gchar * a_add_string ;\n a_add_string = ( gchar * ) wmem_alloc ( wmem_packet_scope ( ) , 1024 ) ;\n a_add_string [ 0 ] = '\\0' ;\n consumed = ( * elem_funcs [ idx ] ) ( tvb , subtree , pinfo , curr_offset + 1 + 2 , parm_len , a_add_string , 1024 ) ;\n if ( a_add_string [ 0 ] != '\\0' ) {\n proto_item_append_text ( item , \"%s\" , a_add_string ) ;\n }\n }\n }\n consumed += 1 + 2 ;\n }\n return consumed ;\n }"}
{"idx": 9195, "target": 0, "func": "static YuvPixel mp_get_yuv_from_rgb ( MotionPixelsContext * mp , int x , int y ) {\n int color ;\n color = * ( uint16_t * ) & mp -> frame . data [ 0 ] [ y * mp -> frame . linesize [ 0 ] + x * 2 ] ;\n return mp_rgb_yuv_table [ color ] ;\n }"}
{"idx": 9196, "target": 0, "func": "PHP_FUNCTION ( locale_get_keywords ) {\n UEnumeration * e = NULL ;\n UErrorCode status = U_ZERO_ERROR ;\n const char * kw_key = NULL ;\n int32_t kw_key_len = 0 ;\n const char * loc_name = NULL ;\n int loc_name_len = 0 ;\n char * kw_value = NULL ;\n int32_t kw_value_len = 100 ;\n intl_error_reset ( NULL TSRMLS_CC ) ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"s\" , & loc_name , & loc_name_len ) == FAILURE ) {\n intl_error_set ( NULL , U_ILLEGAL_ARGUMENT_ERROR , \"locale_get_keywords: unable to parse input params\" , 0 TSRMLS_CC ) ;\n RETURN_FALSE ;\n }\n if ( loc_name_len == 0 ) {\n loc_name = intl_locale_get_default ( TSRMLS_C ) ;\n }\n e = uloc_openKeywords ( loc_name , & status ) ;\n if ( e != NULL ) {\n array_init ( return_value ) ;\n while ( ( kw_key = uenum_next ( e , & kw_key_len , & status ) ) != NULL ) {\n kw_value = ecalloc ( 1 , kw_value_len ) ;\n kw_value_len = uloc_getKeywordValue ( loc_name , kw_key , kw_value , kw_value_len , & status ) ;\n if ( status == U_BUFFER_OVERFLOW_ERROR ) {\n status = U_ZERO_ERROR ;\n kw_value = erealloc ( kw_value , kw_value_len + 1 ) ;\n kw_value_len = uloc_getKeywordValue ( loc_name , kw_key , kw_value , kw_value_len + 1 , & status ) ;\n }\n else if ( ! U_FAILURE ( status ) ) {\n kw_value = erealloc ( kw_value , kw_value_len + 1 ) ;\n }\n if ( U_FAILURE ( status ) ) {\n intl_error_set ( NULL , U_ILLEGAL_ARGUMENT_ERROR , \"locale_get_keywords: Error encountered while getting the keyword value for the keyword\" , 0 TSRMLS_CC ) ;\n if ( kw_value ) {\n efree ( kw_value ) ;\n }\n zval_dtor ( return_value ) ;\n RETURN_FALSE ;\n }\n add_assoc_stringl ( return_value , ( char * ) kw_key , kw_value , kw_value_len , 0 ) ;\n }\n }\n uenum_close ( e ) ;\n }"}
{"idx": 9197, "target": 0, "func": "static int vp9_pattern_search ( const MACROBLOCK * x , MV * ref_mv , int search_param , int sad_per_bit , int do_init_search , int * sad_list , const vp9_variance_fn_ptr_t * vfp , int use_mvcost , const MV * center_mv , MV * best_mv , const int num_candidates [ MAX_PATTERN_SCALES ] , const MV candidates [ MAX_PATTERN_SCALES ] [ MAX_PATTERN_CANDIDATES ] ) {\n const MACROBLOCKD * const xd = & x -> e_mbd ;\n static const int search_param_to_steps [ MAX_MVSEARCH_STEPS ] = {\n 10 , 9 , 8 , 7 , 6 , 5 , 4 , 3 , 2 , 1 , 0 , }\n ;\n int i , s , t ;\n const struct buf_2d * const what = & x -> plane [ 0 ] . src ;\n const struct buf_2d * const in_what = & xd -> plane [ 0 ] . pre [ 0 ] ;\n int br , bc ;\n int bestsad = INT_MAX ;\n int thissad ;\n int k = - 1 ;\n const MV fcenter_mv = {\n center_mv -> row >> 3 , center_mv -> col >> 3 }\n ;\n int best_init_s = search_param_to_steps [ search_param ] ;\n clamp_mv ( ref_mv , x -> mv_col_min , x -> mv_col_max , x -> mv_row_min , x -> mv_row_max ) ;\n br = ref_mv -> row ;\n bc = ref_mv -> col ;\n bestsad = vfp -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , ref_mv ) , in_what -> stride ) + mvsad_err_cost ( x , ref_mv , & fcenter_mv , sad_per_bit ) ;\n if ( do_init_search ) {\n s = best_init_s ;\n best_init_s = - 1 ;\n for ( t = 0 ;\n t <= s ;\n ++ t ) {\n int best_site = - 1 ;\n if ( check_bounds ( x , br , bc , 1 << t ) ) {\n for ( i = 0 ;\n i < num_candidates [ t ] ;\n i ++ ) {\n const MV this_mv = {\n br + candidates [ t ] [ i ] . row , bc + candidates [ t ] [ i ] . col }\n ;\n thissad = vfp -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , & this_mv ) , in_what -> stride ) ;\n CHECK_BETTER }\n }\n else {\n for ( i = 0 ;\n i < num_candidates [ t ] ;\n i ++ ) {\n const MV this_mv = {\n br + candidates [ t ] [ i ] . row , bc + candidates [ t ] [ i ] . col }\n ;\n if ( ! is_mv_in ( x , & this_mv ) ) continue ;\n thissad = vfp -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , & this_mv ) , in_what -> stride ) ;\n CHECK_BETTER }\n }\n if ( best_site == - 1 ) {\n continue ;\n }\n else {\n best_init_s = t ;\n k = best_site ;\n }\n }\n if ( best_init_s != - 1 ) {\n br += candidates [ best_init_s ] [ k ] . row ;\n bc += candidates [ best_init_s ] [ k ] . col ;\n }\n }\n if ( best_init_s != - 1 ) {\n int best_site = - 1 ;\n s = best_init_s ;\n do {\n if ( ! do_init_search || s != best_init_s ) {\n if ( check_bounds ( x , br , bc , 1 << s ) ) {\n for ( i = 0 ;\n i < num_candidates [ s ] ;\n i ++ ) {\n const MV this_mv = {\n br + candidates [ s ] [ i ] . row , bc + candidates [ s ] [ i ] . col }\n ;\n thissad = vfp -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , & this_mv ) , in_what -> stride ) ;\n CHECK_BETTER }\n }\n else {\n for ( i = 0 ;\n i < num_candidates [ s ] ;\n i ++ ) {\n const MV this_mv = {\n br + candidates [ s ] [ i ] . row , bc + candidates [ s ] [ i ] . col }\n ;\n if ( ! is_mv_in ( x , & this_mv ) ) continue ;\n thissad = vfp -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , & this_mv ) , in_what -> stride ) ;\n CHECK_BETTER }\n }\n if ( best_site == - 1 ) {\n continue ;\n }\n else {\n br += candidates [ s ] [ best_site ] . row ;\n bc += candidates [ s ] [ best_site ] . col ;\n k = best_site ;\n }\n }\n do {\n int next_chkpts_indices [ PATTERN_CANDIDATES_REF ] ;\n best_site = - 1 ;\n next_chkpts_indices [ 0 ] = ( k == 0 ) ? num_candidates [ s ] - 1 : k - 1 ;\n next_chkpts_indices [ 1 ] = k ;\n next_chkpts_indices [ 2 ] = ( k == num_candidates [ s ] - 1 ) ? 0 : k + 1 ;\n if ( check_bounds ( x , br , bc , 1 << s ) ) {\n for ( i = 0 ;\n i < PATTERN_CANDIDATES_REF ;\n i ++ ) {\n const MV this_mv = {\n br + candidates [ s ] [ next_chkpts_indices [ i ] ] . row , bc + candidates [ s ] [ next_chkpts_indices [ i ] ] . col }\n ;\n thissad = vfp -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , & this_mv ) , in_what -> stride ) ;\n CHECK_BETTER }\n }\n else {\n for ( i = 0 ;\n i < PATTERN_CANDIDATES_REF ;\n i ++ ) {\n const MV this_mv = {\n br + candidates [ s ] [ next_chkpts_indices [ i ] ] . row , bc + candidates [ s ] [ next_chkpts_indices [ i ] ] . col }\n ;\n if ( ! is_mv_in ( x , & this_mv ) ) continue ;\n thissad = vfp -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , & this_mv ) , in_what -> stride ) ;\n CHECK_BETTER }\n }\n if ( best_site != - 1 ) {\n k = next_chkpts_indices [ best_site ] ;\n br += candidates [ s ] [ k ] . row ;\n bc += candidates [ s ] [ k ] . col ;\n }\n }\n while ( best_site != - 1 ) ;\n }\n while ( s -- ) ;\n }\n if ( sad_list ) {\n static const MV neighbors [ 4 ] = {\n {\n 0 , - 1 }\n , {\n 1 , 0 }\n , {\n 0 , 1 }\n , {\n - 1 , 0 }\n }\n ;\n sad_list [ 0 ] = bestsad ;\n if ( check_bounds ( x , br , bc , 1 ) ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n const MV this_mv = {\n br + neighbors [ i ] . row , bc + neighbors [ i ] . col }\n ;\n sad_list [ i + 1 ] = vfp -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , & this_mv ) , in_what -> stride ) + ( use_mvcost ? mvsad_err_cost ( x , & this_mv , & fcenter_mv , sad_per_bit ) : 0 ) ;\n }\n }\n else {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n const MV this_mv = {\n br + neighbors [ i ] . row , bc + neighbors [ i ] . col }\n ;\n if ( ! is_mv_in ( x , & this_mv ) ) sad_list [ i + 1 ] = INT_MAX ;\n else sad_list [ i + 1 ] = vfp -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , & this_mv ) , in_what -> stride ) + ( use_mvcost ? mvsad_err_cost ( x , & this_mv , & fcenter_mv , sad_per_bit ) : 0 ) ;\n }\n }\n }\n best_mv -> row = br ;\n best_mv -> col = bc ;\n return bestsad ;\n }"}
{"idx": 9198, "target": 0, "func": "static void s390_virtio_device_sync ( VirtIOS390Device * dev ) {\n VirtIOS390Bus * bus = DO_UPCAST ( VirtIOS390Bus , bus , dev -> qdev . parent_bus ) ;\n ram_addr_t cur_offs ;\n uint8_t num_vq ;\n int i ;\n virtio_reset ( dev -> vdev ) ;\n stb_phys ( dev -> dev_offs + VIRTIO_DEV_OFFS_TYPE , dev -> vdev -> device_id ) ;\n stb_phys ( dev -> dev_offs + VIRTIO_DEV_OFFS_NUM_VQ , s390_virtio_device_num_vq ( dev ) ) ;\n stb_phys ( dev -> dev_offs + VIRTIO_DEV_OFFS_FEATURE_LEN , dev -> feat_len ) ;\n stb_phys ( dev -> dev_offs + VIRTIO_DEV_OFFS_CONFIG_LEN , dev -> vdev -> config_len ) ;\n num_vq = s390_virtio_device_num_vq ( dev ) ;\n stb_phys ( dev -> dev_offs + VIRTIO_DEV_OFFS_NUM_VQ , num_vq ) ;\n for ( i = 0 ;\n i < num_vq ;\n i ++ ) {\n ram_addr_t vq = ( dev -> dev_offs + VIRTIO_DEV_OFFS_CONFIG ) + ( i * VIRTIO_VQCONFIG_LEN ) ;\n ram_addr_t vring ;\n vring = s390_virtio_next_ring ( bus ) ;\n virtio_queue_set_addr ( dev -> vdev , i , vring ) ;\n virtio_queue_set_vector ( dev -> vdev , i , i ) ;\n stq_phys ( vq + VIRTIO_VQCONFIG_OFFS_ADDRESS , vring ) ;\n stw_phys ( vq + VIRTIO_VQCONFIG_OFFS_NUM , virtio_queue_get_num ( dev -> vdev , i ) ) ;\n }\n cur_offs = dev -> dev_offs ;\n cur_offs += VIRTIO_DEV_OFFS_CONFIG ;\n cur_offs += num_vq * VIRTIO_VQCONFIG_LEN ;\n stl_phys ( cur_offs , dev -> host_features ) ;\n dev -> feat_offs = cur_offs + dev -> feat_len ;\n cur_offs += dev -> feat_len * 2 ;\n if ( dev -> vdev -> get_config ) {\n dev -> vdev -> get_config ( dev -> vdev , dev -> vdev -> config ) ;\n }\n cpu_physical_memory_rw ( cur_offs , dev -> vdev -> config , dev -> vdev -> config_len , 1 ) ;\n cur_offs += dev -> vdev -> config_len ;\n }"}
{"idx": 9199, "target": 0, "func": "static void dec_gain ( TwinContext * tctx , GetBitContext * gb , enum FrameType ftype , float * out ) {\n const ModeTab * mtab = tctx -> mtab ;\n int i , j ;\n int sub = mtab -> fmode [ ftype ] . sub ;\n float step = AMP_MAX / ( ( 1 << GAIN_BITS ) - 1 ) ;\n float sub_step = SUB_AMP_MAX / ( ( 1 << SUB_GAIN_BITS ) - 1 ) ;\n if ( ftype == FT_LONG ) {\n for ( i = 0 ;\n i < tctx -> avctx -> channels ;\n i ++ ) out [ i ] = ( 1. / ( 1 << 13 ) ) * mulawinv ( step * 0.5 + step * get_bits ( gb , GAIN_BITS ) , AMP_MAX , MULAW_MU ) ;\n }\n else {\n for ( i = 0 ;\n i < tctx -> avctx -> channels ;\n i ++ ) {\n float val = ( 1. / ( 1 << 23 ) ) * mulawinv ( step * 0.5 + step * get_bits ( gb , GAIN_BITS ) , AMP_MAX , MULAW_MU ) ;\n for ( j = 0 ;\n j < sub ;\n j ++ ) {\n out [ i * sub + j ] = val * mulawinv ( sub_step * 0.5 + sub_step * get_bits ( gb , SUB_GAIN_BITS ) , SUB_AMP_MAX , MULAW_MU ) ;\n }\n }\n }\n }"}
{"idx": 9200, "target": 0, "func": "static VALUE ossl_asn1_ ## klass ( int argc , VALUE * argv , VALUE self ) \\ {\n return rb_funcall3 ( cASN1 ## klass , rb_intern ( \"new\" ) , argc , argv ) ;\n }\n OSSL_ASN1_IMPL_FACTORY_METHOD ( Boolean ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Integer ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Enumerated ) OSSL_ASN1_IMPL_FACTORY_METHOD ( BitString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( OctetString )"}
{"idx": 9201, "target": 0, "func": "OFCondition parseAssociate ( unsigned char * buf , unsigned long pduLength , PRV_ASSOCIATEPDU * assoc ) {\n OFCondition cond = EC_Normal ;\n unsigned char type ;\n unsigned long itemLength ;\n PRV_PRESENTATIONCONTEXTITEM * context ;\n ( void ) memset ( assoc , 0 , sizeof ( * assoc ) ) ;\n if ( ( assoc -> presentationContextList = LST_Create ( ) ) == NULL ) return EC_MemoryExhausted ;\n if ( ( assoc -> userInfo . SCUSCPRoleList = LST_Create ( ) ) == NULL ) return EC_MemoryExhausted ;\n if ( pduLength < 2 + 2 + 16 + 16 + 32 ) return makeLengthError ( \"associate PDU\" , pduLength , 2 + 2 + 16 + 16 + 32 ) ;\n assoc -> type = * buf ++ ;\n assoc -> rsv1 = * buf ++ ;\n EXTRACT_LONG_BIG ( buf , assoc -> length ) ;\n buf += 4 ;\n EXTRACT_SHORT_BIG ( buf , assoc -> protocol ) ;\n buf += 2 ;\n pduLength -= 2 ;\n if ( ( assoc -> protocol & DUL_PROTOCOL ) == 0 ) {\n char buffer [ 256 ] ;\n sprintf ( buffer , \"DUL Unsupported peer protocol %04x;\n expected %04x in %s\" , assoc -> protocol , DUL_PROTOCOL , \"parseAssociate\" ) ;\n return makeDcmnetCondition ( DULC_UNSUPPORTEDPEERPROTOCOL , OF_error , buffer ) ;\n }\n assoc -> rsv2 [ 0 ] = * buf ++ ;\n pduLength -- ;\n assoc -> rsv2 [ 1 ] = * buf ++ ;\n pduLength -- ;\n ( void ) strncpy ( assoc -> calledAPTitle , ( char * ) buf , 16 ) ;\n assoc -> calledAPTitle [ 16 ] = '\\0' ;\n trim_trailing_spaces ( assoc -> calledAPTitle ) ;\n buf += 16 ;\n pduLength -= 16 ;\n ( void ) strncpy ( assoc -> callingAPTitle , ( char * ) buf , 16 ) ;\n assoc -> callingAPTitle [ 16 ] = '\\0' ;\n trim_trailing_spaces ( assoc -> callingAPTitle ) ;\n buf += 16 ;\n pduLength -= 16 ;\n ( void ) memcpy ( assoc -> rsv3 , buf , 32 ) ;\n buf += 32 ;\n pduLength -= 32 ;\n if ( DCM_dcmnetLogger . isEnabledFor ( OFLogger : : DEBUG_LOG_LEVEL ) ) {\n const char * s ;\n DCMNET_DEBUG ( \"Parsing an A-ASSOCIATE PDU\" ) ;\n if ( assoc -> type == DUL_TYPEASSOCIATERQ ) s = \"A-ASSOCIATE RQ\" ;\n else if ( assoc -> type == DUL_TYPEASSOCIATEAC ) s = \"A-ASSOCIATE AC\" ;\n else s = \"Unknown: Programming bug in parseAssociate\" ;\n DCMNET_TRACE ( \"PDU type: \" << STD_NAMESPACE hex << ( ( unsigned int ) assoc -> type ) << STD_NAMESPACE dec << \" (\" << s << \"), PDU Length: \" << assoc -> length << OFendl << \"DICOM Protocol: \" << STD_NAMESPACE hex << assoc -> protocol << STD_NAMESPACE dec << OFendl << \"Called AP Title: \" << assoc -> calledAPTitle << OFendl << \"Calling AP Title: \" << assoc -> callingAPTitle ) ;\n }\n while ( ( cond . good ( ) ) && ( pduLength > 0 ) ) {\n type = * buf ;\n DCMNET_TRACE ( \"Parsing remaining \" << pduLength << \" bytes of A-ASSOCIATE PDU\" << OFendl << \"Next item type: \" << STD_NAMESPACE hex << STD_NAMESPACE setfill ( '0' ) << STD_NAMESPACE setw ( 2 ) << ( ( unsigned int ) type ) ) ;\n switch ( type ) {\n case DUL_TYPEAPPLICATIONCONTEXT : cond = parseSubItem ( & assoc -> applicationContext , buf , & itemLength , pduLength ) ;\n if ( cond . good ( ) ) {\n buf += itemLength ;\n pduLength -= itemLength ;\n DCMNET_TRACE ( \"Successfully parsed Application Context\" ) ;\n }\n break ;\n case DUL_TYPEPRESENTATIONCONTEXTRQ : case DUL_TYPEPRESENTATIONCONTEXTAC : context = ( PRV_PRESENTATIONCONTEXTITEM * ) malloc ( sizeof ( PRV_PRESENTATIONCONTEXTITEM ) ) ;\n if ( context == NULL ) return EC_MemoryExhausted ;\n ( void ) memset ( context , 0 , sizeof ( * context ) ) ;\n cond = parsePresentationContext ( type , context , buf , & itemLength , pduLength ) ;\n if ( cond . bad ( ) ) return cond ;\n buf += itemLength ;\n pduLength -= itemLength ;\n LST_Enqueue ( & assoc -> presentationContextList , ( LST_NODE * ) context ) ;\n DCMNET_TRACE ( \"Successfully parsed Presentation Context\" ) ;\n break ;\n case DUL_TYPEUSERINFO : cond = parseUserInfo ( & assoc -> userInfo , buf , & itemLength , assoc -> type , pduLength ) ;\n if ( cond . bad ( ) ) return cond ;\n buf += itemLength ;\n pduLength -= itemLength ;\n DCMNET_TRACE ( \"Successfully parsed User Information\" ) ;\n break ;\n default : cond = parseDummy ( buf , & itemLength , pduLength ) ;\n buf += itemLength ;\n if ( ! OFStandard : : safeSubtract ( pduLength , itemLength , pduLength ) ) return makeUnderflowError ( \"unknown item type\" , pduLength , itemLength ) ;\n break ;\n }\n }\n return cond ;\n }"}
{"idx": 9202, "target": 0, "func": "static tvbuff_t * decompress_sigcomp_message ( tvbuff_t * bytecode_tvb , tvbuff_t * message_tvb , packet_info * pinfo , proto_tree * udvm_tree , gint udvm_mem_dest , gint print_flags , gint hf_id , gint header_len , gint byte_code_state_len , gint byte_code_id_len , gint udvm_start_ip ) {\n tvbuff_t * decomp_tvb ;\n guint8 * buff = ( guint8 * ) wmem_alloc0 ( wmem_packet_scope ( ) , UDVM_MEMORY_SIZE ) ;\n char string [ 2 ] ;\n guint8 * out_buff ;\n guint32 i = 0 ;\n guint16 n = 0 ;\n guint16 m = 0 ;\n guint16 x ;\n guint k = 0 ;\n guint16 H ;\n guint16 oldH ;\n guint offset = 0 ;\n guint start_offset ;\n guint result_dest ;\n guint code_length = 0 ;\n guint8 current_instruction ;\n guint current_address ;\n guint operand_address ;\n guint input_address ;\n guint16 output_address = 0 ;\n gint next_operand_address ;\n guint8 octet ;\n guint8 msb ;\n guint8 lsb ;\n guint16 byte_copy_right ;\n guint16 byte_copy_left ;\n guint16 input_bit_order ;\n guint16 stack_location ;\n guint16 stack_fill ;\n guint16 result ;\n guint msg_end = tvb_reported_length_remaining ( message_tvb , 0 ) ;\n guint16 result_code = 0 ;\n guint16 old_input_bit_order = 0 ;\n guint16 remaining_bits = 0 ;\n guint16 input_bits = 0 ;\n guint8 bit_order = 0 ;\n gboolean outside_huffman_boundaries = TRUE ;\n gboolean print_in_loop = FALSE ;\n guint16 instruction_address ;\n guint8 no_of_state_create = 0 ;\n guint16 state_length_buff [ 5 ] ;\n guint16 state_address_buff [ 5 ] ;\n guint16 state_instruction_buff [ 5 ] ;\n guint16 state_minimum_access_length_buff [ 5 ] ;\n guint32 used_udvm_cycles = 0 ;\n guint cycles_per_bit ;\n guint maximum_UDVM_cycles ;\n guint8 * sha1buff ;\n unsigned char sha1_digest_buf [ STATE_BUFFER_SIZE ] ;\n sha1_context ctx ;\n proto_item * addr_item = NULL , * ti = NULL ;\n guint16 length ;\n guint16 at_address ;\n guint16 destination ;\n guint16 addr ;\n guint16 value ;\n guint16 p_id_start ;\n guint16 p_id_length ;\n guint16 state_begin ;\n guint16 state_length ;\n guint16 state_address ;\n guint16 state_instruction ;\n guint16 operand_1 ;\n guint16 operand_2 ;\n guint16 value_1 ;\n guint16 value_2 ;\n guint16 at_address_1 ;\n guint16 at_address_2 ;\n guint16 at_address_3 ;\n guint16 j ;\n guint16 bits_n ;\n guint16 lower_bound_n ;\n guint16 upper_bound_n ;\n guint16 uncompressed_n ;\n guint16 position ;\n guint16 ref_destination ;\n guint16 multy_offset ;\n guint16 output_start ;\n guint16 output_length ;\n guint16 minimum_access_length ;\n guint16 state_retention_priority ;\n guint16 requested_feedback_location ;\n guint16 returned_parameters_location ;\n guint16 start_value ;\n gboolean print_level_1 = FALSE ;\n gboolean print_level_2 = FALSE ;\n gboolean print_level_3 = FALSE ;\n gint show_instr_detail_level = 0 ;\n switch ( print_flags ) {\n case 0 : break ;\n case 1 : print_level_1 = TRUE ;\n show_instr_detail_level = 1 ;\n break ;\n case 2 : print_level_1 = TRUE ;\n print_level_2 = TRUE ;\n show_instr_detail_level = 1 ;\n break ;\n case 3 : print_level_1 = TRUE ;\n print_level_2 = TRUE ;\n print_level_3 = TRUE ;\n show_instr_detail_level = 2 ;\n break ;\n default : print_level_1 = TRUE ;\n show_instr_detail_level = 1 ;\n break ;\n }\n buff [ 0 ] = ( UDVM_MEMORY_SIZE >> 8 ) & 0x00FF ;\n buff [ 1 ] = UDVM_MEMORY_SIZE & 0x00FF ;\n buff [ 2 ] = 0 ;\n buff [ 3 ] = 16 ;\n buff [ 4 ] = 0 ;\n buff [ 5 ] = 1 ;\n buff [ 6 ] = ( byte_code_id_len >> 8 ) & 0x00FF ;\n buff [ 7 ] = byte_code_id_len & 0x00FF ;\n buff [ 8 ] = ( byte_code_state_len >> 8 ) & 0x00FF ;\n buff [ 9 ] = byte_code_state_len & 0x00FF ;\n code_length = tvb_reported_length_remaining ( bytecode_tvb , 0 ) ;\n cycles_per_bit = buff [ 2 ] << 8 ;\n cycles_per_bit = cycles_per_bit | buff [ 3 ] ;\n maximum_UDVM_cycles = ( ( 8 * ( header_len + msg_end ) ) + 1000 ) * cycles_per_bit ;\n proto_tree_add_uint ( udvm_tree , hf_sigcomp_message_length , bytecode_tvb , offset , 1 , msg_end ) ;\n proto_tree_add_uint ( udvm_tree , hf_sigcomp_byte_code_length , bytecode_tvb , offset , 1 , code_length ) ;\n proto_tree_add_uint ( udvm_tree , hf_sigcomp_max_udvm_cycles , bytecode_tvb , offset , 1 , maximum_UDVM_cycles ) ;\n i = udvm_mem_dest ;\n if ( print_level_3 ) proto_tree_add_uint ( udvm_tree , hf_sigcomp_load_bytecode_into_udvm_start , bytecode_tvb , offset , 1 , i ) ;\n while ( code_length > offset && i < UDVM_MEMORY_SIZE ) {\n buff [ i ] = tvb_get_guint8 ( bytecode_tvb , offset ) ;\n if ( print_level_3 ) proto_tree_add_uint_format ( udvm_tree , hf_sigcomp_instruction_code , bytecode_tvb , offset , 1 , buff [ i ] , \" Addr: %u Instruction code(0x%02x) \" , i , buff [ i ] ) ;\n i ++ ;\n offset ++ ;\n }\n current_address = udvm_start_ip ;\n input_address = 0 ;\n proto_tree_add_uint_format ( udvm_tree , hf_sigcomp_udvm_execution_stated , bytecode_tvb , offset , 1 , current_address , \"UDVM EXECUTION STARTED at Address: %u Message size %u\" , current_address , msg_end ) ;\n out_buff = ( guint8 * ) g_malloc ( UDVM_MEMORY_SIZE ) ;\n offset = 0 ;\n execute_next_instruction : if ( used_udvm_cycles > maximum_UDVM_cycles ) {\n result_code = 15 ;\n goto decompression_failure ;\n }\n used_udvm_cycles ++ ;\n current_instruction = buff [ current_address & 0xffff ] ;\n if ( show_instr_detail_level == 2 ) {\n addr_item = proto_tree_add_uint_format ( udvm_tree , hf_sigcomp_current_instruction , bytecode_tvb , offset , 1 , current_instruction , \"Addr: %u ## %s(%d)\" , current_address , val_to_str_ext_const ( current_instruction , & udvm_instruction_code_vals_ext , \"INVALID INSTRUCTION\" ) , current_instruction ) ;\n }\n offset ++ ;\n switch ( current_instruction ) {\n case SIGCOMP_INSTR_DECOMPRESSION_FAILURE : if ( result_code == 0 ) result_code = 9 ;\n proto_tree_add_uint_format ( udvm_tree , hf_sigcomp_decompression_failure , NULL , 0 , 0 , current_address , \"Addr: %u ## DECOMPRESSION-FAILURE(0)\" , current_address ) ;\n proto_tree_add_uint ( udvm_tree , hf_sigcomp_wireshark_udvm_diagnostic , NULL , 0 , 0 , result_code ) ;\n if ( output_address > 0 ) {\n decomp_tvb = tvb_new_child_real_data ( message_tvb , out_buff , output_address , output_address ) ;\n tvb_set_free_cb ( decomp_tvb , g_free ) ;\n add_new_data_source ( pinfo , decomp_tvb , \"Decompressed SigComp message(Incomplete)\" ) ;\n proto_tree_add_expert ( udvm_tree , pinfo , & ei_sigcomp_sigcomp_message_decompression_failure , decomp_tvb , 0 , - 1 ) ;\n return decomp_tvb ;\n }\n g_free ( out_buff ) ;\n return NULL ;\n break ;\n case SIGCOMP_INSTR_AND : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (operand_1, operand_2)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = dissect_udvm_reference_operand_memory ( buff , operand_address , & operand_1 , & result_dest ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_1 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_1 , \"Addr: %u operand_1 %u\" , operand_address , operand_1 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & operand_2 ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_2 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_2 , \"Addr: %u operand_2 %u\" , operand_address , operand_2 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## AND (operand_1=%u, operand_2=%u)\" , current_address , operand_1 , operand_2 ) ;\n }\n result = operand_1 & operand_2 ;\n lsb = result & 0xff ;\n msb = result >> 8 ;\n buff [ result_dest ] = msb ;\n buff [ ( result_dest + 1 ) & 0xffff ] = lsb ;\n if ( print_level_1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_loading_result , bytecode_tvb , 0 , - 1 , \" Loading result %u at %u\" , result , result_dest ) ;\n }\n current_address = next_operand_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_OR : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (operand_1, operand_2)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = dissect_udvm_reference_operand_memory ( buff , operand_address , & operand_1 , & result_dest ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_1 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_1 , \"Addr: %u operand_1 %u\" , operand_address , operand_1 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & operand_2 ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_2 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_2 , \"Addr: %u operand_2 %u\" , operand_address , operand_2 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## OR (operand_1=%u, operand_2=%u)\" , current_address , operand_1 , operand_2 ) ;\n }\n result = operand_1 | operand_2 ;\n lsb = result & 0xff ;\n msb = result >> 8 ;\n buff [ result_dest ] = msb ;\n buff [ ( result_dest + 1 ) & 0xffff ] = lsb ;\n if ( print_level_1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_loading_result , bytecode_tvb , 0 , - 1 , \" Loading result %u at %u\" , result , result_dest ) ;\n }\n current_address = next_operand_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_NOT : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" ($operand_1)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = dissect_udvm_reference_operand_memory ( buff , operand_address , & operand_1 , & result_dest ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_1 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_1 , \"Addr: %u operand_1 %u\" , operand_address , operand_1 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## NOT (operand_1=%u)\" , current_address , operand_1 ) ;\n }\n result = operand_1 ^ 0xffff ;\n lsb = result & 0xff ;\n msb = result >> 8 ;\n buff [ result_dest ] = msb ;\n buff [ ( result_dest + 1 ) & 0xffff ] = lsb ;\n if ( print_level_1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_loading_result , bytecode_tvb , 0 , - 1 , \" Loading result %u at %u\" , result , result_dest ) ;\n }\n current_address = next_operand_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_LSHIFT : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" ($operand_1, operand_2)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = dissect_udvm_reference_operand_memory ( buff , operand_address , & operand_1 , & result_dest ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_1 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_1 , \"Addr: %u operand_1 %u\" , operand_address , operand_1 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & operand_2 ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n ti = proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_2 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_2 , \"Addr: %u operand_2 %u\" , operand_address , operand_2 ) ;\n }\n if ( operand_2 > 15 ) {\n expert_add_info ( pinfo , ti , & ei_sigcomp_invalid_shift_value ) ;\n break ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## LSHIFT (operand_1=%u, operand_2=%u)\" , current_address , operand_1 , operand_2 ) ;\n }\n result = operand_1 << operand_2 ;\n lsb = result & 0xff ;\n msb = result >> 8 ;\n buff [ result_dest ] = msb ;\n buff [ ( result_dest + 1 ) & 0xffff ] = lsb ;\n if ( print_level_1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_loading_result , bytecode_tvb , 0 , - 1 , \" Loading result %u at %u\" , result , result_dest ) ;\n }\n current_address = next_operand_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_RSHIFT : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (operand_1, operand_2)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = dissect_udvm_reference_operand_memory ( buff , operand_address , & operand_1 , & result_dest ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_1 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_1 , \"Addr: %u operand_1 %u\" , operand_address , operand_1 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & operand_2 ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n ti = proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_2 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_2 , \"Addr: %u operand_2 %u\" , operand_address , operand_2 ) ;\n }\n if ( operand_2 > 15 ) {\n expert_add_info ( pinfo , ti , & ei_sigcomp_invalid_shift_value ) ;\n break ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## RSHIFT (operand_1=%u, operand_2=%u)\" , current_address , operand_1 , operand_2 ) ;\n }\n result = operand_1 >> operand_2 ;\n lsb = result & 0xff ;\n msb = result >> 8 ;\n buff [ result_dest ] = msb ;\n buff [ ( result_dest + 1 ) & 0xffff ] = lsb ;\n if ( print_level_1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_loading_result , bytecode_tvb , 0 , - 1 , \" Loading result %u at %u\" , result , result_dest ) ;\n }\n current_address = next_operand_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_ADD : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (operand_1, operand_2)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = dissect_udvm_reference_operand_memory ( buff , operand_address , & operand_1 , & result_dest ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_1 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_1 , \"Addr: %u operand_1 %u\" , operand_address , operand_1 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & operand_2 ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_2 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_2 , \"Addr: %u operand_2 %u\" , operand_address , operand_2 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## ADD (operand_1=%u, operand_2=%u)\" , current_address , operand_1 , operand_2 ) ;\n }\n result = operand_1 + operand_2 ;\n lsb = result & 0xff ;\n msb = result >> 8 ;\n buff [ result_dest ] = msb ;\n buff [ ( result_dest + 1 ) & 0xffff ] = lsb ;\n if ( print_level_1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_loading_result , bytecode_tvb , 0 , - 1 , \" Loading result %u at %u\" , result , result_dest ) ;\n }\n current_address = next_operand_address ;\n goto execute_next_instruction ;\n case SIGCOMP_INSTR_SUBTRACT : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (operand_1, operand_2)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = dissect_udvm_reference_operand_memory ( buff , operand_address , & operand_1 , & result_dest ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_1 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_1 , \"Addr: %u operand_1 %u\" , operand_address , operand_1 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & operand_2 ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_2 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_2 , \"Addr: %u operand_2 %u\" , operand_address , operand_2 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## SUBTRACT (operand_1=%u, operand_2=%u)\" , current_address , operand_1 , operand_2 ) ;\n }\n result = operand_1 - operand_2 ;\n lsb = result & 0xff ;\n msb = result >> 8 ;\n buff [ result_dest ] = msb ;\n buff [ ( result_dest + 1 ) & 0xffff ] = lsb ;\n if ( print_level_1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_loading_result , bytecode_tvb , 0 , - 1 , \" Loading result %u at %u\" , result , result_dest ) ;\n }\n current_address = next_operand_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_MULTIPLY : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (operand_1, operand_2)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = dissect_udvm_reference_operand_memory ( buff , operand_address , & operand_1 , & result_dest ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_1 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_1 , \"Addr: %u operand_1 %u\" , operand_address , operand_1 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & operand_2 ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_2 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_2 , \"Addr: %u operand_2 %u\" , operand_address , operand_2 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## MULTIPLY (operand_1=%u, operand_2=%u)\" , current_address , operand_1 , operand_2 ) ;\n }\n if ( operand_2 == 0 ) {\n result_code = 4 ;\n goto decompression_failure ;\n }\n result = operand_1 * operand_2 ;\n lsb = result & 0xff ;\n msb = result >> 8 ;\n buff [ result_dest ] = msb ;\n buff [ ( result_dest + 1 ) & 0xffff ] = lsb ;\n if ( print_level_1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_loading_result , bytecode_tvb , 0 , - 1 , \" Loading result %u at %u\" , result , result_dest ) ;\n }\n current_address = next_operand_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_DIVIDE : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (operand_1, operand_2)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = dissect_udvm_reference_operand_memory ( buff , operand_address , & operand_1 , & result_dest ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_1 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_1 , \"Addr: %u operand_1 %u\" , operand_address , operand_1 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & operand_2 ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_2 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_2 , \"Addr: %u operand_2 %u\" , operand_address , operand_2 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## DIVIDE (operand_1=%u, operand_2=%u)\" , current_address , operand_1 , operand_2 ) ;\n }\n if ( operand_2 == 0 ) {\n result_code = 4 ;\n goto decompression_failure ;\n }\n result = operand_1 / operand_2 ;\n lsb = result & 0xff ;\n msb = result >> 8 ;\n buff [ result_dest ] = msb ;\n buff [ ( result_dest + 1 ) & 0xffff ] = lsb ;\n if ( print_level_1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_loading_result , bytecode_tvb , 0 , - 1 , \" Loading result %u at %u\" , result , result_dest ) ;\n }\n current_address = next_operand_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_REMAINDER : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (operand_1, operand_2)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = dissect_udvm_reference_operand_memory ( buff , operand_address , & operand_1 , & result_dest ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_1 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_1 , \"Addr: %u operand_1 %u\" , operand_address , operand_1 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & operand_2 ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_2 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_2 , \"Addr: %u operand_2 %u\" , operand_address , operand_2 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## REMAINDER (operand_1=%u, operand_2=%u)\" , current_address , operand_1 , operand_2 ) ;\n }\n if ( operand_2 == 0 ) {\n result_code = 4 ;\n goto decompression_failure ;\n }\n result = operand_1 - operand_2 * ( operand_1 / operand_2 ) ;\n lsb = result & 0xff ;\n msb = result >> 8 ;\n buff [ result_dest ] = msb ;\n buff [ ( result_dest + 1 ) & 0xffff ] = lsb ;\n if ( print_level_1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_loading_result , bytecode_tvb , 0 , - 1 , \" Loading result %u at %u\" , result , result_dest ) ;\n }\n current_address = next_operand_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_SORT_ASCENDING : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (start, n, k))\" ) ;\n }\n proto_tree_add_expert ( udvm_tree , pinfo , & ei_sigcomp_execution_of_this_instruction_is_not_implemented , bytecode_tvb , 0 , - 1 ) ;\n break ;\n case SIGCOMP_INSTR_SORT_DESCENDING : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (start, n, k))\" ) ;\n }\n proto_tree_add_expert ( udvm_tree , pinfo , & ei_sigcomp_execution_of_this_instruction_is_not_implemented , bytecode_tvb , 0 , - 1 ) ;\n break ;\n case SIGCOMP_INSTR_SHA_1 : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (position, length, destination)\" ) ;\n }\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & position ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( print_level_1 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_position , bytecode_tvb , offset , ( next_operand_address - operand_address ) , position , \"Addr: %u position %u\" , operand_address , position ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & length ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( print_level_1 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_length , bytecode_tvb , offset , ( next_operand_address - operand_address ) , length , \"Addr: %u Length %u\" , operand_address , length ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = dissect_udvm_reference_operand_memory ( buff , operand_address , & ref_destination , & result_dest ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( print_level_1 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_ref_dest , bytecode_tvb , offset , ( next_operand_address - operand_address ) , ref_destination , \"Addr: %u $destination %u\" , operand_address , ref_destination ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n used_udvm_cycles = used_udvm_cycles + length ;\n n = 0 ;\n k = position ;\n byte_copy_right = buff [ 66 ] << 8 ;\n byte_copy_right = byte_copy_right | buff [ 67 ] ;\n byte_copy_left = buff [ 64 ] << 8 ;\n byte_copy_left = byte_copy_left | buff [ 65 ] ;\n if ( print_level_2 ) {\n proto_tree_add_bytes_format ( udvm_tree , hf_sigcomp_byte_copy , message_tvb , 0 , - 1 , NULL , \"byte_copy_right = %u\" , byte_copy_right ) ;\n }\n sha1_starts ( & ctx ) ;\n while ( n < length ) {\n guint16 handle_now = length ;\n if ( k < byte_copy_right && byte_copy_right <= k + ( length - n ) ) {\n handle_now = byte_copy_right - position ;\n }\n if ( ( k + handle_now >= UDVM_MEMORY_SIZE ) || ( n + handle_now >= UDVM_MEMORY_SIZE ) ) {\n goto decompression_failure ;\n }\n sha1_update ( & ctx , & buff [ k ] , handle_now ) ;\n k = ( k + handle_now ) & 0xffff ;\n n = ( n + handle_now ) & 0xffff ;\n if ( k >= byte_copy_right ) {\n k = byte_copy_left ;\n }\n }\n sha1_finish ( & ctx , sha1_digest_buf ) ;\n k = ref_destination ;\n for ( n = 0 ;\n n < STATE_BUFFER_SIZE ;\n n ++ ) {\n buff [ k ] = sha1_digest_buf [ n ] ;\n k = ( k + 1 ) & 0xffff ;\n n ++ ;\n if ( k == byte_copy_right ) {\n k = byte_copy_left ;\n }\n }\n if ( print_level_2 ) {\n proto_tree_add_bytes_with_length ( udvm_tree , hf_sigcomp_calculated_sha_1 , message_tvb , 0 , - 1 , sha1_digest_buf , STATE_BUFFER_SIZE ) ;\n }\n current_address = next_operand_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_LOAD : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (%%address, %%value)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & addr ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , addr , \"Addr: %u Address %u\" , operand_address , addr ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & value ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_value , bytecode_tvb , offset , ( next_operand_address - operand_address ) , value , \"Addr: %u Value %u\" , operand_address , value ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n lsb = value & 0xff ;\n msb = value >> 8 ;\n buff [ addr ] = msb ;\n buff [ ( addr + 1 ) & 0xffff ] = lsb ;\n if ( print_level_1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## LOAD (%%address=%u, %%value=%u)\" , current_address , addr , value ) ;\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_loading_result , bytecode_tvb , 0 , - 1 , \" Loading bytes at %u Value %u 0x%x\" , addr , value , value ) ;\n }\n current_address = next_operand_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_MULTILOAD : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (%%address, #n, value_0, ..., value_n-1)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & addr ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , addr , \"Addr: %u Address %u\" , operand_address , addr ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_literal_operand ( buff , operand_address , & n ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_literal_num , bytecode_tvb , offset , ( next_operand_address - operand_address ) , n , \"Addr: %u n %u\" , operand_address , n ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## MULTILOAD (%%address=%u, #n=%u, value_0, ..., value_%d)\" , current_address , addr , n , n - 1 ) ;\n }\n operand_address = next_operand_address ;\n used_udvm_cycles = used_udvm_cycles + n ;\n while ( n > 0 ) {\n n = n - 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & value ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n lsb = value & 0xff ;\n msb = value >> 8 ;\n if ( addr >= UDVM_MEMORY_SIZE - 1 ) goto decompression_failure ;\n buff [ addr ] = msb ;\n buff [ ( addr + 1 ) & 0xffff ] = lsb ;\n length = next_operand_address - operand_address ;\n if ( print_level_1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_loading_result , bytecode_tvb , 0 , - 1 , \"Addr: %u Value %5u - Loading bytes at %5u Value %5u 0x%x\" , operand_address , value , addr , value , value ) ;\n }\n addr = addr + 2 ;\n operand_address = next_operand_address ;\n }\n current_address = next_operand_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_PUSH : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (value)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & value ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_value , bytecode_tvb , offset , ( next_operand_address - operand_address ) , value , \"Addr: %u Value %u\" , operand_address , value ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## PUSH (value=%u)\" , current_address , value ) ;\n }\n current_address = next_operand_address ;\n stack_location = ( buff [ 70 ] << 8 ) | buff [ 71 ] ;\n stack_fill = ( buff [ stack_location ] << 8 ) | buff [ ( stack_location + 1 ) & 0xFFFF ] ;\n addr = ( stack_location + stack_fill * 2 + 2 ) & 0xFFFF ;\n if ( addr >= UDVM_MEMORY_SIZE - 1 ) goto decompression_failure ;\n buff [ addr ] = ( value >> 8 ) & 0x00FF ;\n buff [ ( addr + 1 ) & 0xFFFF ] = value & 0x00FF ;\n if ( stack_location >= UDVM_MEMORY_SIZE - 1 ) goto decompression_failure ;\n stack_fill = ( stack_fill + 1 ) & 0xFFFF ;\n buff [ stack_location ] = ( stack_fill >> 8 ) & 0x00FF ;\n buff [ ( stack_location + 1 ) & 0xFFFF ] = stack_fill & 0x00FF ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_POP : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (value)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & destination ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , destination , \"Addr: %u Value %u\" , operand_address , destination ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## POP (address=%u)\" , current_address , destination ) ;\n }\n current_address = next_operand_address ;\n stack_location = ( buff [ 70 ] << 8 ) | buff [ 71 ] ;\n stack_fill = ( buff [ stack_location ] << 8 ) | buff [ ( stack_location + 1 ) & 0xFFFF ] ;\n if ( stack_fill == 0 ) {\n result_code = 16 ;\n goto decompression_failure ;\n }\n if ( stack_location >= UDVM_MEMORY_SIZE - 1 ) goto decompression_failure ;\n stack_fill = ( stack_fill - 1 ) & 0xFFFF ;\n buff [ stack_location ] = ( stack_fill >> 8 ) & 0x00FF ;\n buff [ ( stack_location + 1 ) & 0xFFFF ] = stack_fill & 0x00FF ;\n addr = ( stack_location + stack_fill * 2 + 2 ) & 0xFFFF ;\n if ( addr >= UDVM_MEMORY_SIZE - 1 ) goto decompression_failure ;\n value = ( buff [ addr ] << 8 ) | buff [ ( addr + 1 ) & 0xFFFF ] ;\n if ( destination >= UDVM_MEMORY_SIZE - 1 ) goto decompression_failure ;\n buff [ destination ] = ( value >> 8 ) & 0x00FF ;\n buff [ ( destination + 1 ) & 0xFFFF ] = value & 0x00FF ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_COPY : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (position, length, destination)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & position ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_position , bytecode_tvb , offset , ( next_operand_address - operand_address ) , position , \"Addr: %u position %u\" , operand_address , position ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & length ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_length , bytecode_tvb , offset , ( next_operand_address - operand_address ) , length , \"Addr: %u Length %u\" , operand_address , length ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & destination ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_ref_dest , bytecode_tvb , offset , ( next_operand_address - operand_address ) , destination , \"Addr: %u Destination %u\" , operand_address , destination ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## COPY (position=%u, length=%u, destination=%u)\" , current_address , position , length , destination ) ;\n }\n current_address = next_operand_address ;\n n = 0 ;\n k = destination ;\n byte_copy_right = buff [ 66 ] << 8 ;\n byte_copy_right = byte_copy_right | buff [ 67 ] ;\n byte_copy_left = buff [ 64 ] << 8 ;\n byte_copy_left = byte_copy_left | buff [ 65 ] ;\n if ( print_level_2 ) {\n proto_tree_add_bytes_format ( udvm_tree , hf_sigcomp_byte_copy , message_tvb , input_address , 1 , NULL , \" byte_copy_right = %u\" , byte_copy_right ) ;\n }\n while ( n < length ) {\n buff [ k ] = buff [ position ] ;\n if ( print_level_2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_sigcomp_copying_value , message_tvb , input_address , 1 , buff [ position ] , \" Copying value: %u (0x%x) to Addr: %u\" , buff [ position ] , buff [ position ] , k ) ;\n }\n position = ( position + 1 ) & 0xffff ;\n k = ( k + 1 ) & 0xffff ;\n n ++ ;\n if ( k == byte_copy_right ) {\n k = byte_copy_left ;\n }\n if ( position == byte_copy_right ) {\n position = byte_copy_left ;\n }\n }\n used_udvm_cycles = used_udvm_cycles + length ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_COPY_LITERAL : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (position, length, $destination)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & position ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_position , bytecode_tvb , offset , ( next_operand_address - operand_address ) , position , \"Addr: %u position %u\" , operand_address , position ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & length ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_length , bytecode_tvb , offset , ( next_operand_address - operand_address ) , length , \"Addr: %u Length %u\" , operand_address , length ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = dissect_udvm_reference_operand_memory ( buff , operand_address , & ref_destination , & result_dest ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_ref_dest , bytecode_tvb , offset , ( next_operand_address - operand_address ) , ref_destination , \"Addr: %u destination %u\" , operand_address , ref_destination ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## COPY-LITERAL (position=%u, length=%u, $destination=%u)\" , current_address , position , length , ref_destination ) ;\n }\n current_address = next_operand_address ;\n n = 0 ;\n k = ref_destination ;\n byte_copy_right = buff [ 66 ] << 8 ;\n byte_copy_right = byte_copy_right | buff [ 67 ] ;\n byte_copy_left = buff [ 64 ] << 8 ;\n byte_copy_left = byte_copy_left | buff [ 65 ] ;\n if ( print_level_2 ) {\n proto_tree_add_bytes_format ( udvm_tree , hf_sigcomp_byte_copy , message_tvb , input_address , 1 , NULL , \" byte_copy_right = %u\" , byte_copy_right ) ;\n }\n while ( n < length ) {\n buff [ k ] = buff [ position ] ;\n if ( print_level_2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_sigcomp_copying_value , message_tvb , input_address , 1 , buff [ position ] , \" Copying value: %u (0x%x) to Addr: %u\" , buff [ position ] , buff [ position ] , k ) ;\n }\n position = ( position + 1 ) & 0xffff ;\n k = ( k + 1 ) & 0xffff ;\n n ++ ;\n if ( k == byte_copy_right ) {\n k = byte_copy_left ;\n }\n if ( position == byte_copy_right ) {\n position = byte_copy_left ;\n }\n }\n buff [ result_dest ] = k >> 8 ;\n buff [ ( result_dest + 1 ) & 0xffff ] = k & 0x00ff ;\n used_udvm_cycles = used_udvm_cycles + length ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_COPY_OFFSET : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (offset, length, $destination)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & multy_offset ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_offset , bytecode_tvb , offset , ( next_operand_address - operand_address ) , multy_offset , \"Addr: %u offset %u\" , operand_address , multy_offset ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & length ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_length , bytecode_tvb , offset , ( next_operand_address - operand_address ) , length , \"Addr: %u Length %u\" , operand_address , length ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = dissect_udvm_reference_operand_memory ( buff , operand_address , & ref_destination , & result_dest ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_ref_dest , bytecode_tvb , offset , ( next_operand_address - operand_address ) , ref_destination , \"Addr: %u $destination %u\" , operand_address , ref_destination ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## COPY-OFFSET (offset=%u, length=%u, $destination=%u)\" , current_address , multy_offset , length , result_dest ) ;\n }\n current_address = next_operand_address ;\n byte_copy_left = buff [ 64 ] << 8 ;\n byte_copy_left = byte_copy_left | buff [ 65 ] ;\n byte_copy_right = buff [ 66 ] << 8 ;\n byte_copy_right = byte_copy_right | buff [ 67 ] ;\n for ( position = ref_destination , i = 0 ;\n i < multy_offset ;\n i ++ ) {\n if ( position == byte_copy_left ) {\n position = ( byte_copy_right - 1 ) & 0xffff ;\n }\n else {\n position = ( position - 1 ) & 0xffff ;\n }\n }\n if ( print_level_2 ) {\n proto_tree_add_bytes_format ( udvm_tree , hf_sigcomp_byte_copy , message_tvb , input_address , 1 , NULL , \" byte_copy_left = %u byte_copy_right = %u position= %u\" , byte_copy_left , byte_copy_right , position ) ;\n }\n n = 0 ;\n k = ref_destination ;\n if ( print_level_2 ) {\n proto_tree_add_bytes_format ( udvm_tree , hf_sigcomp_byte_copy , message_tvb , input_address , 1 , NULL , \" byte_copy_left = %u byte_copy_right = %u\" , byte_copy_left , byte_copy_right ) ;\n }\n while ( n < length ) {\n buff [ k ] = buff [ position ] ;\n if ( print_level_2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_sigcomp_copying_value , message_tvb , input_address , 1 , buff [ position ] , \" Copying value: %5u (0x%x) from Addr: %u to Addr: %u\" , buff [ position ] , buff [ position ] , ( position ) , k ) ;\n }\n n ++ ;\n k = ( k + 1 ) & 0xffff ;\n position = ( position + 1 ) & 0xffff ;\n if ( k == byte_copy_right ) {\n k = byte_copy_left ;\n }\n if ( position == byte_copy_right ) {\n position = byte_copy_left ;\n }\n }\n buff [ result_dest ] = k >> 8 ;\n buff [ result_dest + 1 ] = k & 0x00ff ;\n used_udvm_cycles = used_udvm_cycles + length ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_MEMSET : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (address, length, start_value, offset)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & addr ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , addr , \"Addr: %u Address %u\" , operand_address , addr ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & length ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_length , bytecode_tvb , offset , ( next_operand_address - operand_address ) , length , \"Addr: %u Length %u\" , operand_address , length ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & start_value ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_start_value , bytecode_tvb , offset , ( next_operand_address - operand_address ) , start_value , \"Addr: %u start_value %u\" , operand_address , start_value ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & multy_offset ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_offset , bytecode_tvb , offset , ( next_operand_address - operand_address ) , multy_offset , \"Addr: %u offset %u\" , operand_address , multy_offset ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## MEMSET (address=%u, length=%u, start_value=%u, offset=%u)\" , current_address , addr , length , start_value , multy_offset ) ;\n }\n current_address = next_operand_address ;\n n = 0 ;\n k = addr ;\n byte_copy_right = buff [ 66 ] << 8 ;\n byte_copy_right = byte_copy_right | buff [ 67 ] ;\n byte_copy_left = buff [ 64 ] << 8 ;\n byte_copy_left = byte_copy_left | buff [ 65 ] ;\n if ( print_level_2 ) {\n proto_tree_add_bytes_format ( udvm_tree , hf_sigcomp_byte_copy , message_tvb , input_address , 1 , NULL , \" byte_copy_left = %u byte_copy_right = %u\" , byte_copy_left , byte_copy_right ) ;\n }\n while ( n < length ) {\n if ( k == byte_copy_right ) {\n k = byte_copy_left ;\n }\n buff [ k ] = ( start_value + ( n * multy_offset ) ) & 0xff ;\n if ( print_level_2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_sigcomp_storing_value , message_tvb , input_address , 1 , buff [ k ] , \" Storing value: %u (0x%x) at Addr: %u\" , buff [ k ] , buff [ k ] , k ) ;\n }\n k = ( k + 1 ) & 0xffff ;\n n ++ ;\n }\n used_udvm_cycles = used_udvm_cycles + length ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_JUMP : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (@address)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_address_operand ( buff , operand_address , & at_address , current_address ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_at_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , at_address , \"Addr: %u @Address %u\" , operand_address , at_address ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## JUMP (@address=%u)\" , current_address , at_address ) ;\n }\n current_address = at_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_COMPARE : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (value_1, value_2, @address_1, @address_2, @address_3)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & value_1 ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_value , bytecode_tvb , offset , ( next_operand_address - operand_address ) , value_1 , \"Addr: %u Value %u\" , operand_address , value_1 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & value_2 ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_value , bytecode_tvb , offset , ( next_operand_address - operand_address ) , value_2 , \"Addr: %u Value %u\" , operand_address , value_2 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & at_address_1 ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n at_address_1 = ( current_address + at_address_1 ) & 0xffff ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_at_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , at_address_1 , \"Addr: %u @Address %u\" , operand_address , at_address_1 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & at_address_2 ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n at_address_2 = ( current_address + at_address_2 ) & 0xffff ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_at_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , at_address_2 , \"Addr: %u @Address %u\" , operand_address , at_address_2 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & at_address_3 ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n at_address_3 = ( current_address + at_address_3 ) & 0xffff ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_at_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , at_address_3 , \"Addr: %u @Address %u\" , operand_address , at_address_3 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## COMPARE (value_1=%u, value_2=%u, @address_1=%u, @address_2=%u, @address_3=%u)\" , current_address , value_1 , value_2 , at_address_1 , at_address_2 , at_address_3 ) ;\n }\n if ( value_1 < value_2 ) current_address = at_address_1 ;\n if ( value_1 == value_2 ) current_address = at_address_2 ;\n if ( value_1 > value_2 ) current_address = at_address_3 ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_CALL : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (@address) (PUSH addr )\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_address_operand ( buff , operand_address , & at_address , current_address ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_at_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , at_address , \"Addr: %u @Address %u\" , operand_address , at_address ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## CALL (@address=%u)\" , current_address , at_address ) ;\n }\n current_address = next_operand_address ;\n stack_location = ( buff [ 70 ] << 8 ) | buff [ 71 ] ;\n stack_fill = ( buff [ stack_location ] << 8 ) | buff [ ( stack_location + 1 ) & 0xFFFF ] ;\n addr = ( stack_location + stack_fill * 2 + 2 ) & 0xFFFF ;\n if ( addr >= UDVM_MEMORY_SIZE - 1 ) goto decompression_failure ;\n buff [ addr ] = ( current_address >> 8 ) & 0x00FF ;\n buff [ ( addr + 1 ) & 0xFFFF ] = current_address & 0x00FF ;\n stack_fill = ( stack_fill + 1 ) & 0xFFFF ;\n if ( stack_location >= UDVM_MEMORY_SIZE - 1 ) goto decompression_failure ;\n buff [ stack_location ] = ( stack_fill >> 8 ) & 0x00FF ;\n buff [ ( stack_location + 1 ) & 0xFFFF ] = stack_fill & 0x00FF ;\n current_address = at_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_RETURN : stack_location = ( buff [ 70 ] << 8 ) | buff [ 71 ] ;\n stack_fill = ( buff [ stack_location ] << 8 ) | buff [ ( stack_location + 1 ) & 0xFFFF ] ;\n if ( stack_fill == 0 ) {\n result_code = 16 ;\n goto decompression_failure ;\n }\n stack_fill = ( stack_fill - 1 ) & 0xFFFF ;\n if ( stack_location >= UDVM_MEMORY_SIZE - 1 ) goto decompression_failure ;\n buff [ stack_location ] = ( stack_fill >> 8 ) & 0x00FF ;\n buff [ ( stack_location + 1 ) & 0xFFFF ] = stack_fill & 0x00FF ;\n addr = ( stack_location + stack_fill * 2 + 2 ) & 0xFFFF ;\n at_address = ( buff [ addr ] << 8 ) | buff [ ( addr + 1 ) & 0xFFFF ] ;\n current_address = at_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_SWITCH : instruction_address = current_address ;\n if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (#n, j, @address_0, @address_1, ... , @address_n-1))\" ) ;\n }\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_literal_operand ( buff , operand_address , & n ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( print_level_2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_literal_num , bytecode_tvb , offset , ( next_operand_address - operand_address ) , n , \"Addr: %u n %u\" , operand_address , n ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & j ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( print_level_2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_j , bytecode_tvb , offset , ( next_operand_address - operand_address ) , j , \"Addr: %u j %u\" , operand_address , j ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n m = 0 ;\n while ( m < n ) {\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & at_address_1 ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n at_address_1 = ( instruction_address + at_address_1 ) & 0xffff ;\n if ( print_level_2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_at_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , at_address_1 , \"Addr: %u @Address %u\" , operand_address , at_address_1 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( j == m ) {\n current_address = at_address_1 ;\n }\n operand_address = next_operand_address ;\n m ++ ;\n }\n if ( ( j == n ) || ( j > n ) ) {\n result_code = 5 ;\n goto decompression_failure ;\n }\n if ( current_address > UDVM_MEMORY_SIZE ) {\n result_code = 6 ;\n goto decompression_failure ;\n }\n used_udvm_cycles = used_udvm_cycles + n ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_CRC : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (value, position, length, @address)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & value ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( print_level_2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_value , bytecode_tvb , offset , ( next_operand_address - operand_address ) , value , \"Addr: %u Value %u\" , operand_address , value ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & position ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( print_level_2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_position , bytecode_tvb , offset , ( next_operand_address - operand_address ) , position , \"Addr: %u position %u\" , operand_address , position ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & length ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( print_level_2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_length , bytecode_tvb , offset , ( next_operand_address - operand_address ) , length , \"Addr: %u Length %u\" , operand_address , length ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & at_address ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n at_address = ( current_address + at_address ) & 0xffff ;\n if ( print_level_2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_at_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , at_address , \"Addr: %u @Address %u\" , operand_address , at_address ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n used_udvm_cycles = used_udvm_cycles + length ;\n n = 0 ;\n k = position ;\n byte_copy_right = buff [ 66 ] << 8 ;\n byte_copy_right = byte_copy_right | buff [ 67 ] ;\n byte_copy_left = buff [ 64 ] << 8 ;\n byte_copy_left = byte_copy_left | buff [ 65 ] ;\n result = 0 ;\n if ( print_level_2 ) {\n proto_tree_add_bytes_format ( udvm_tree , hf_sigcomp_byte_copy , message_tvb , 0 , - 1 , NULL , \"byte_copy_right = %u\" , byte_copy_right ) ;\n }\n while ( n < length ) {\n guint16 handle_now = length - n ;\n if ( k < byte_copy_right && byte_copy_right <= k + ( length - n ) ) {\n handle_now = byte_copy_right - k ;\n }\n if ( k + handle_now >= UDVM_MEMORY_SIZE ) goto decompression_failure ;\n result = crc16_ccitt_seed ( & buff [ k ] , handle_now , ( guint16 ) ( result ^ 0xffff ) ) ;\n k = ( k + handle_now ) & 0xffff ;\n n = ( n + handle_now ) & 0xffff ;\n if ( k >= byte_copy_right ) {\n k = byte_copy_left ;\n }\n }\n result = result ^ 0xffff ;\n if ( print_level_1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Calculated CRC %u\" , result ) ;\n }\n if ( result != value ) {\n current_address = at_address ;\n }\n else {\n current_address = next_operand_address ;\n }\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_INPUT_BYTES : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" length, destination, @address)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & length ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_length , bytecode_tvb , offset , ( next_operand_address - operand_address ) , length , \"Addr: %u Length %u\" , operand_address , length ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & destination ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_destination , bytecode_tvb , offset , ( next_operand_address - operand_address ) , destination , \"Addr: %u Destination %u\" , operand_address , destination ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & at_address ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n at_address = ( current_address + at_address ) & 0xffff ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_at_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , at_address , \"Addr: %u @Address %u\" , operand_address , at_address ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## INPUT-BYTES length=%u, destination=%u, @address=%u)\" , current_address , length , destination , at_address ) ;\n }\n n = 0 ;\n k = destination ;\n byte_copy_right = buff [ 66 ] << 8 ;\n byte_copy_right = byte_copy_right | buff [ 67 ] ;\n byte_copy_left = buff [ 64 ] << 8 ;\n byte_copy_left = byte_copy_left | buff [ 65 ] ;\n if ( print_level_1 ) {\n proto_tree_add_bytes_format ( udvm_tree , hf_sigcomp_byte_copy , message_tvb , input_address , 1 , NULL , \" byte_copy_right = %u\" , byte_copy_right ) ;\n }\n remaining_bits = 0 ;\n input_bits = 0 ;\n while ( n < length ) {\n if ( input_address > ( msg_end - 1 ) ) {\n current_address = at_address ;\n result_code = 14 ;\n goto execute_next_instruction ;\n }\n if ( k == byte_copy_right ) {\n k = byte_copy_left ;\n }\n octet = tvb_get_guint8 ( message_tvb , input_address ) ;\n buff [ k ] = octet ;\n if ( print_level_1 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_sigcomp_loading_value , message_tvb , input_address , 1 , octet , \" Loading value: %u (0x%x) at Addr: %u\" , octet , octet , k ) ;\n }\n input_address ++ ;\n k = ( k + 1 ) & 0xffff ;\n n ++ ;\n }\n used_udvm_cycles = used_udvm_cycles + length ;\n current_address = next_operand_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_INPUT_BITS : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (length, destination, @address)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & length ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_length , bytecode_tvb , offset , ( next_operand_address - operand_address ) , length , \"Addr: %u length %u\" , operand_address , length ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & destination ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_destination , bytecode_tvb , offset , ( next_operand_address - operand_address ) , destination , \"Addr: %u Destination %u\" , operand_address , destination ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_address_operand ( buff , operand_address , & at_address , current_address ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_at_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , at_address , \"Addr: %u @Address %u\" , operand_address , at_address ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## INPUT-BITS length=%u, destination=%u, @address=%u)\" , current_address , length , destination , at_address ) ;\n }\n current_address = next_operand_address ;\n input_bit_order = buff [ 68 ] << 8 ;\n input_bit_order = input_bit_order | buff [ 69 ] ;\n if ( length > 16 ) {\n result_code = 7 ;\n goto decompression_failure ;\n }\n if ( input_bit_order > 7 ) {\n result_code = 8 ;\n goto decompression_failure ;\n }\n bit_order = ( input_bit_order & 0x0004 ) >> 2 ;\n value = decomp_dispatch_get_bits ( message_tvb , udvm_tree , bit_order , buff , & old_input_bit_order , & remaining_bits , & input_bits , & input_address , length , & result_code , msg_end , print_level_1 ) ;\n if ( result_code == 11 ) {\n current_address = at_address ;\n goto execute_next_instruction ;\n }\n msb = value >> 8 ;\n lsb = value & 0x00ff ;\n if ( destination >= UDVM_MEMORY_SIZE - 1 ) goto decompression_failure ;\n buff [ destination ] = msb ;\n buff [ ( destination + 1 ) & 0xffff ] = lsb ;\n if ( print_level_1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_loading_result , message_tvb , input_address , 1 , \" Loading value: %u (0x%x) at Addr: %u, remaining_bits: %u\" , value , value , destination , remaining_bits ) ;\n }\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_INPUT_HUFFMAN : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (destination, @address, #n, bits_1, lower_bound_1,upper_bound_1, uncompressed_1, ... , bits_n, lower_bound_n,upper_bound_n, uncompressed_n)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & destination ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_destination , bytecode_tvb , offset , ( next_operand_address - operand_address ) , destination , \"Addr: %u Destination %u\" , operand_address , destination ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_address_operand ( buff , operand_address , & at_address , current_address ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_at_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , at_address , \"Addr: %u @Address %u\" , operand_address , at_address ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_literal_operand ( buff , operand_address , & n ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_literal_num , bytecode_tvb , offset , ( next_operand_address - operand_address ) , n , \"Addr: %u n %u\" , operand_address , n ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## INPUT-HUFFMAN (destination=%u, @address=%u, #n=%u, bits_1, lower_1,upper_1, unc_1, ... , bits_%d, lower_%d,upper_%d, unc_%d)\" , current_address , destination , at_address , n , n , n , n , n ) ;\n }\n used_udvm_cycles = used_udvm_cycles + n ;\n input_bit_order = buff [ 68 ] << 8 ;\n input_bit_order = input_bit_order | buff [ 69 ] ;\n bit_order = ( input_bit_order & 0x0002 ) >> 1 ;\n j = 1 ;\n H = 0 ;\n m = n ;\n outside_huffman_boundaries = TRUE ;\n print_in_loop = print_level_3 ;\n while ( m > 0 ) {\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & bits_n ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( print_in_loop ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_bits , bytecode_tvb , offset , ( next_operand_address - operand_address ) , bits_n , \"Addr: %u bits_n %u\" , operand_address , bits_n ) ;\n }\n if ( bits_n > 31 ) break ;\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & lower_bound_n ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( print_in_loop ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_lower_bound , bytecode_tvb , offset , ( next_operand_address - operand_address ) , lower_bound_n , \"Addr: %u lower_bound_n %u\" , operand_address , lower_bound_n ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & upper_bound_n ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( print_in_loop ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_upper_bound , bytecode_tvb , offset , ( next_operand_address - operand_address ) , upper_bound_n , \"Addr: %u upper_bound_n %u\" , operand_address , upper_bound_n ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & uncompressed_n ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( print_in_loop ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_uncompressed , bytecode_tvb , offset , ( next_operand_address - operand_address ) , uncompressed_n , \"Addr: %u uncompressed_n %u\" , operand_address , uncompressed_n ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n if ( outside_huffman_boundaries ) {\n k = decomp_dispatch_get_bits ( message_tvb , udvm_tree , bit_order , buff , & old_input_bit_order , & remaining_bits , & input_bits , & input_address , bits_n , & result_code , msg_end , print_level_1 ) ;\n if ( result_code == 11 ) {\n current_address = at_address ;\n goto execute_next_instruction ;\n }\n oldH = H ;\n H = ( H << bits_n ) | k ;\n if ( print_level_3 ) {\n proto_tree_add_bytes_format ( udvm_tree , hf_sigcomp_set_hu , bytecode_tvb , 0 , - 1 , NULL , \" Set H(%u) := H(%u) * 2^bits_j(%u) + k(%u)\" , H , oldH , 1 << bits_n , k ) ;\n }\n if ( ( H < lower_bound_n ) || ( H > upper_bound_n ) ) {\n outside_huffman_boundaries = TRUE ;\n }\n else {\n outside_huffman_boundaries = FALSE ;\n print_in_loop = FALSE ;\n if ( print_level_2 ) {\n proto_tree_add_bytes_format ( udvm_tree , hf_sigcomp_set_hu , bytecode_tvb , 0 , - 1 , NULL , \" H(%u) = H(%u) + uncompressed_n(%u) - lower_bound_n(%u)\" , ( H + uncompressed_n - lower_bound_n ) , H , uncompressed_n , lower_bound_n ) ;\n }\n H = H + uncompressed_n - lower_bound_n ;\n msb = H >> 8 ;\n lsb = H & 0x00ff ;\n if ( destination >= UDVM_MEMORY_SIZE - 1 ) goto decompression_failure ;\n buff [ destination ] = msb ;\n buff [ ( destination + 1 ) & 0xffff ] = lsb ;\n if ( print_level_1 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_sigcomp_loading_h , message_tvb , input_address , 1 , H , \" Loading H: %u (0x%x) at Addr: %u,j = %u remaining_bits: %u\" , H , H , destination , ( n - m + 1 ) , remaining_bits ) ;\n }\n }\n }\n m = m - 1 ;\n }\n if ( outside_huffman_boundaries ) {\n result_code = 10 ;\n goto decompression_failure ;\n }\n current_address = next_operand_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_STATE_ACCESS : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (partial_identifier_start, partial_identifier_length,state_begin, state_length, state_address, state_instruction)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & p_id_start ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_partial_identifier_start , bytecode_tvb , offset , ( next_operand_address - operand_address ) , p_id_start , \"Addr: %u partial_identifier_start %u\" , operand_address , p_id_start ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & p_id_length ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_partial_identifier_length , bytecode_tvb , offset , ( next_operand_address - operand_address ) , p_id_length , \"Addr: %u partial_identifier_length %u\" , operand_address , p_id_length ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & state_begin ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_state_begin , bytecode_tvb , offset , ( next_operand_address - operand_address ) , state_begin , \"Addr: %u state_begin %u\" , operand_address , state_begin ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & state_length ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_state_length , bytecode_tvb , offset , ( next_operand_address - operand_address ) , state_length , \"Addr: %u state_length %u\" , operand_address , state_length ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & state_address ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_state_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , state_address , \"Addr: %u state_address %u\" , operand_address , state_address ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & state_instruction ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_state_instr , bytecode_tvb , offset , ( next_operand_address - operand_address ) , state_instruction , \"Addr: %u state_instruction %u\" , operand_address , state_instruction ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## STATE-ACCESS(31) (partial_identifier_start=%u, partial_identifier_length=%u,state_begin=%u, state_length=%u, state_address=%u, state_instruction=%u)\" , current_address , p_id_start , p_id_length , state_begin , state_length , state_address , state_instruction ) ;\n }\n current_address = next_operand_address ;\n byte_copy_right = buff [ 66 ] << 8 ;\n byte_copy_right = byte_copy_right | buff [ 67 ] ;\n byte_copy_left = buff [ 64 ] << 8 ;\n byte_copy_left = byte_copy_left | buff [ 65 ] ;\n if ( print_level_2 ) {\n proto_tree_add_bytes_format ( udvm_tree , hf_sigcomp_byte_copy , message_tvb , input_address , 1 , NULL , \" byte_copy_right = %u, byte_copy_left = %u\" , byte_copy_right , byte_copy_left ) ;\n }\n result_code = udvm_state_access ( message_tvb , udvm_tree , buff , p_id_start , p_id_length , state_begin , & state_length , & state_address , & state_instruction , hf_id ) ;\n if ( result_code != 0 ) {\n goto decompression_failure ;\n }\n used_udvm_cycles = used_udvm_cycles + state_length ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_STATE_CREATE : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (state_length, state_address, state_instruction,minimum_access_length, state_retention_priority)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & state_length ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_state_length , bytecode_tvb , offset , ( next_operand_address - operand_address ) , state_length , \"Addr: %u state_length %u\" , operand_address , state_length ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & state_address ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_state_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , state_address , \"Addr: %u state_address %u\" , operand_address , state_address ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & state_instruction ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_state_instr , bytecode_tvb , offset , ( next_operand_address - operand_address ) , state_instruction , \"Addr: %u state_instruction %u\" , operand_address , state_instruction ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & minimum_access_length ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_min_acc_len , bytecode_tvb , offset , ( next_operand_address - operand_address ) , minimum_access_length , \"Addr: %u minimum_access_length %u\" , operand_address , minimum_access_length ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & state_retention_priority ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_state_ret_pri , bytecode_tvb , offset , ( next_operand_address - operand_address ) , state_retention_priority , \"Addr: %u state_retention_priority %u\" , operand_address , state_retention_priority ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## STATE-CREATE(32) (state_length=%u, state_address=%u, state_instruction=%u,minimum_access_length=%u, state_retention_priority=%u)\" , current_address , state_length , state_address , state_instruction , minimum_access_length , state_retention_priority ) ;\n }\n current_address = next_operand_address ;\n no_of_state_create ++ ;\n if ( no_of_state_create > 4 ) {\n result_code = 12 ;\n goto decompression_failure ;\n }\n if ( ( minimum_access_length < 6 ) || ( minimum_access_length > STATE_BUFFER_SIZE ) ) {\n result_code = 1 ;\n goto decompression_failure ;\n }\n if ( state_retention_priority == 65535 ) {\n result_code = 13 ;\n goto decompression_failure ;\n }\n state_length_buff [ no_of_state_create ] = state_length ;\n state_address_buff [ no_of_state_create ] = state_address ;\n state_instruction_buff [ no_of_state_create ] = state_instruction ;\n state_minimum_access_length_buff [ no_of_state_create ] = minimum_access_length ;\n used_udvm_cycles = used_udvm_cycles + state_length ;\n byte_copy_right = buff [ 66 ] << 8 ;\n byte_copy_right = byte_copy_right | buff [ 67 ] ;\n byte_copy_left = buff [ 64 ] << 8 ;\n byte_copy_left = byte_copy_left | buff [ 65 ] ;\n n = 0 ;\n k = state_address ;\n while ( n < state_length ) {\n if ( k == byte_copy_right ) {\n k = byte_copy_left ;\n }\n string [ 0 ] = buff [ k ] ;\n string [ 1 ] = '\\0' ;\n if ( print_level_3 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_sigcomp_state_value , bytecode_tvb , 0 , 0 , buff [ k ] , \" Addr: %5u State value: %u (0x%x) ASCII(%s)\" , k , buff [ k ] , buff [ k ] , format_text ( string , 1 ) ) ;\n }\n k = ( k + 1 ) & 0xffff ;\n n ++ ;\n }\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_STATE_FREE : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (partial_identifier_start, partial_identifier_length)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & p_id_start ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_partial_identifier_start , bytecode_tvb , offset , ( next_operand_address - operand_address ) , p_id_start , \"Addr: %u partial_identifier_start %u\" , operand_address , p_id_start ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & p_id_length ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_partial_identifier_length , bytecode_tvb , offset , ( next_operand_address - operand_address ) , p_id_length , \"Addr: %u partial_identifier_length %u\" , operand_address , p_id_length ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## STATE-FREE (partial_identifier_start=%u, partial_identifier_length=%u)\" , current_address , p_id_start , p_id_length ) ;\n }\n current_address = next_operand_address ;\n udvm_state_free ( buff , p_id_start , p_id_length ) ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_OUTPUT : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (output_start, output_length)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & output_start ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_output_start , bytecode_tvb , offset , ( next_operand_address - operand_address ) , output_start , \"Addr: %u output_start %u\" , operand_address , output_start ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & output_length ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_output_length , bytecode_tvb , offset , ( next_operand_address - operand_address ) , output_length , \"Addr: %u output_length %u\" , operand_address , output_length ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## OUTPUT (output_start=%u, output_length=%u)\" , current_address , output_start , output_length ) ;\n }\n current_address = next_operand_address ;\n n = 0 ;\n k = output_start ;\n byte_copy_right = buff [ 66 ] << 8 ;\n byte_copy_right = byte_copy_right | buff [ 67 ] ;\n byte_copy_left = buff [ 64 ] << 8 ;\n byte_copy_left = byte_copy_left | buff [ 65 ] ;\n if ( print_level_3 ) {\n proto_tree_add_bytes_format ( udvm_tree , hf_sigcomp_byte_copy , bytecode_tvb , 0 , - 1 , NULL , \" byte_copy_right = %u\" , byte_copy_right ) ;\n }\n while ( n < output_length ) {\n if ( k == byte_copy_right ) {\n k = byte_copy_left ;\n }\n out_buff [ output_address ] = buff [ k ] ;\n string [ 0 ] = buff [ k ] ;\n string [ 1 ] = '\\0' ;\n if ( print_level_3 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_sigcomp_output_value , bytecode_tvb , 0 , - 1 , buff [ k ] , \" Output value: %u (0x%x) ASCII(%s) from Addr: %u ,output to dispatcher position %u\" , buff [ k ] , buff [ k ] , format_text ( string , 1 ) , k , output_address ) ;\n }\n k = ( k + 1 ) & 0xffff ;\n output_address ++ ;\n n ++ ;\n }\n used_udvm_cycles = used_udvm_cycles + output_length ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_END_MESSAGE : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (requested_feedback_location,state_instruction, minimum_access_length,state_retention_priority)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & requested_feedback_location ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_req_feedback_loc , bytecode_tvb , offset , ( next_operand_address - operand_address ) , requested_feedback_location , \"Addr: %u requested_feedback_location %u\" , operand_address , requested_feedback_location ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & returned_parameters_location ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_ret_param_loc , bytecode_tvb , offset , ( next_operand_address - operand_address ) , returned_parameters_location , \"Addr: %u returned_parameters_location %u\" , operand_address , returned_parameters_location ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & state_length ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_state_length , bytecode_tvb , offset , ( next_operand_address - operand_address ) , state_length , \"Addr: %u state_length %u\" , operand_address , state_length ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & state_address ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_state_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , state_address , \"Addr: %u state_address %u\" , operand_address , state_address ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & state_instruction ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_state_instr , bytecode_tvb , offset , ( next_operand_address - operand_address ) , state_instruction , \"Addr: %u state_instruction %u\" , operand_address , state_instruction ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & minimum_access_length ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_min_acc_len , bytecode_tvb , offset , ( next_operand_address - operand_address ) , minimum_access_length , \"Addr: %u minimum_access_length %u\" , operand_address , minimum_access_length ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & state_retention_priority ) ;\n if ( next_operand_address < 0 ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_state_ret_pri , bytecode_tvb , offset , ( next_operand_address - operand_address ) , state_retention_priority , \"Addr: %u state_retention_priority %u\" , operand_address , state_retention_priority ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## END-MESSAGE (requested_feedback_location=%u, returned_parameters_location=%u, state_length=%u, state_address=%u, state_instruction=%u, minimum_access_length=%u, state_retention_priority=%u)\" , current_address , requested_feedback_location , returned_parameters_location , state_length , state_address , state_instruction , minimum_access_length , state_retention_priority ) ;\n }\n no_of_state_create ++ ;\n if ( no_of_state_create > 4 ) {\n result_code = 12 ;\n goto decompression_failure ;\n }\n state_length_buff [ no_of_state_create ] = state_length ;\n state_address_buff [ no_of_state_create ] = state_address ;\n state_instruction_buff [ no_of_state_create ] = state_instruction ;\n state_minimum_access_length_buff [ no_of_state_create ] = minimum_access_length ;\n proto_tree_add_uint ( udvm_tree , hf_sigcomp_num_state_create , bytecode_tvb , 0 , 0 , no_of_state_create ) ;\n if ( no_of_state_create != 0 ) {\n memset ( sha1_digest_buf , 0 , STATE_BUFFER_SIZE ) ;\n n = 1 ;\n byte_copy_right = buff [ 66 ] << 8 ;\n byte_copy_right = byte_copy_right | buff [ 67 ] ;\n byte_copy_left = buff [ 64 ] << 8 ;\n byte_copy_left = byte_copy_left | buff [ 65 ] ;\n while ( n < no_of_state_create + 1 ) {\n sha1buff = ( guint8 * ) g_malloc ( state_length_buff [ n ] + 8 ) ;\n sha1buff [ 0 ] = state_length_buff [ n ] >> 8 ;\n sha1buff [ 1 ] = state_length_buff [ n ] & 0xff ;\n sha1buff [ 2 ] = state_address_buff [ n ] >> 8 ;\n sha1buff [ 3 ] = state_address_buff [ n ] & 0xff ;\n sha1buff [ 4 ] = state_instruction_buff [ n ] >> 8 ;\n sha1buff [ 5 ] = state_instruction_buff [ n ] & 0xff ;\n sha1buff [ 6 ] = state_minimum_access_length_buff [ n ] >> 8 ;\n sha1buff [ 7 ] = state_minimum_access_length_buff [ n ] & 0xff ;\n if ( print_level_3 ) {\n proto_tree_add_bytes_with_length ( udvm_tree , hf_sigcomp_sha1buff , bytecode_tvb , 0 , - 1 , sha1buff , 8 ) ;\n }\n k = state_address_buff [ n ] ;\n for ( x = 0 ;\n x < state_length_buff [ n ] ;\n x ++ ) {\n if ( k == byte_copy_right ) {\n k = byte_copy_left ;\n }\n sha1buff [ 8 + x ] = buff [ k ] ;\n k = ( k + 1 ) & 0xffff ;\n }\n sha1_starts ( & ctx ) ;\n sha1_update ( & ctx , ( guint8 * ) sha1buff , state_length_buff [ n ] + 8 ) ;\n sha1_finish ( & ctx , sha1_digest_buf ) ;\n if ( print_level_3 ) {\n proto_tree_add_bytes_with_length ( udvm_tree , hf_sigcomp_sha1_digest , bytecode_tvb , 0 , - 1 , sha1_digest_buf , STATE_BUFFER_SIZE ) ;\n }\n # if 0 udvm_state_create ( sha1buff , sha1_digest_buf , state_minimum_access_length_buff [ n ] ) ;\n # endif udvm_state_create ( sha1buff , sha1_digest_buf , STATE_MIN_ACCESS_LEN ) ;\n proto_tree_add_item ( udvm_tree , hf_sigcomp_creating_state , bytecode_tvb , 0 , - 1 , ENC_NA ) ;\n proto_tree_add_string ( udvm_tree , hf_id , bytecode_tvb , 0 , 0 , bytes_to_str ( wmem_packet_scope ( ) , sha1_digest_buf , STATE_MIN_ACCESS_LEN ) ) ;\n n ++ ;\n }\n }\n decomp_tvb = tvb_new_child_real_data ( message_tvb , out_buff , output_address , output_address ) ;\n tvb_set_free_cb ( decomp_tvb , g_free ) ;\n add_new_data_source ( pinfo , decomp_tvb , \"Decompressed SigComp message\" ) ;\n proto_tree_add_item ( udvm_tree , hf_sigcomp_sigcomp_message_decompressed , decomp_tvb , 0 , - 1 , ENC_NA ) ;\n used_udvm_cycles += state_length ;\n proto_tree_add_uint ( udvm_tree , hf_sigcomp_max_udvm_cycles , bytecode_tvb , 0 , 0 , maximum_UDVM_cycles ) ;\n proto_tree_add_uint ( udvm_tree , hf_sigcomp_used_udvm_cycles , bytecode_tvb , 0 , 0 , used_udvm_cycles ) ;\n return decomp_tvb ;\n break ;\n default : expert_add_info_format ( pinfo , addr_item , & ei_sigcomp_invalid_instruction , \"Addr %u Invalid instruction: %u (0x%x)\" , current_address , current_instruction , current_instruction ) ;\n break ;\n }\n g_free ( out_buff ) ;\n return NULL ;\n decompression_failure : proto_tree_add_expert_format ( udvm_tree , pinfo , & ei_sigcomp_decompression_failure , bytecode_tvb , 0 , - 1 , \"DECOMPRESSION FAILURE: %s\" , val_to_str ( result_code , result_code_vals , \"Unknown (%u)\" ) ) ;\n g_free ( out_buff ) ;\n return NULL ;\n }"}
{"idx": 9203, "target": 0, "func": "int evhttp_remove_header ( struct evkeyvalq * headers , const char * key ) {\n struct evkeyval * header ;\n TAILQ_FOREACH ( header , headers , next ) {\n if ( strcasecmp ( header -> key , key ) == 0 ) break ;\n }\n if ( header == NULL ) return ( - 1 ) ;\n TAILQ_REMOVE ( headers , header , next ) ;\n free ( header -> key ) ;\n free ( header -> value ) ;\n free ( header ) ;\n return ( 0 ) ;\n }"}
{"idx": 9204, "target": 1, "func": "static double ineq_histogram_selectivity ( PlannerInfo * root , VariableStatData * vardata , FmgrInfo * opproc , bool isgt , Datum constval , Oid consttype ) {\n double hist_selec ;\n Oid hist_op ;\n Datum * values ;\n int nvalues ;\n hist_selec = - 1.0 ;\n if ( HeapTupleIsValid ( vardata -> statsTuple ) && get_attstatsslot ( vardata -> statsTuple , vardata -> atttype , vardata -> atttypmod , STATISTIC_KIND_HISTOGRAM , InvalidOid , & hist_op , & values , & nvalues , NULL , NULL ) ) {\n if ( nvalues > 1 ) {\n double histfrac ;\n int lobound = 0 ;\n int hibound = nvalues ;\n bool have_end = false ;\n if ( nvalues == 2 ) have_end = get_actual_variable_range ( root , vardata , hist_op , & values [ 0 ] , & values [ 1 ] ) ;\n while ( lobound < hibound ) {\n int probe = ( lobound + hibound ) / 2 ;\n bool ltcmp ;\n if ( probe == 0 && nvalues > 2 ) have_end = get_actual_variable_range ( root , vardata , hist_op , & values [ 0 ] , NULL ) ;\n else if ( probe == nvalues - 1 && nvalues > 2 ) have_end = get_actual_variable_range ( root , vardata , hist_op , NULL , & values [ probe ] ) ;\n ltcmp = DatumGetBool ( FunctionCall2Coll ( opproc , DEFAULT_COLLATION_OID , values [ probe ] , constval ) ) ;\n if ( isgt ) ltcmp = ! ltcmp ;\n if ( ltcmp ) lobound = probe + 1 ;\n else hibound = probe ;\n }\n if ( lobound <= 0 ) {\n histfrac = 0.0 ;\n }\n else if ( lobound >= nvalues ) {\n histfrac = 1.0 ;\n }\n else {\n int i = lobound ;\n double val , high , low ;\n double binfrac ;\n if ( convert_to_scalar ( constval , consttype , & val , values [ i - 1 ] , values [ i ] , vardata -> vartype , & low , & high ) ) {\n if ( high <= low ) {\n binfrac = 0.5 ;\n }\n else if ( val <= low ) binfrac = 0.0 ;\n else if ( val >= high ) binfrac = 1.0 ;\n else {\n binfrac = ( val - low ) / ( high - low ) ;\n if ( isnan ( binfrac ) || binfrac < 0.0 || binfrac > 1.0 ) binfrac = 0.5 ;\n }\n }\n else {\n binfrac = 0.5 ;\n }\n histfrac = ( double ) ( i - 1 ) + binfrac ;\n histfrac /= ( double ) ( nvalues - 1 ) ;\n }\n hist_selec = isgt ? ( 1.0 - histfrac ) : histfrac ;\n if ( have_end ) CLAMP_PROBABILITY ( hist_selec ) ;\n else {\n if ( hist_selec < 0.0001 ) hist_selec = 0.0001 ;\n else if ( hist_selec > 0.9999 ) hist_selec = 0.9999 ;\n }\n }\n free_attstatsslot ( vardata -> atttype , values , nvalues , NULL , 0 ) ;\n }\n return hist_selec ;\n }"}
{"idx": 9205, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ExtensionMessageBubbleViewBrowserTest , PRE_ExtensionBubbleShowsOnStartup ) {\n PreBubbleShowsOnStartup ( ) ;\n }"}
{"idx": 9206, "target": 0, "func": "static gboolean dissect_u3v_heur ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n guint32 prefix ;\n usb_conv_info_t * usb_conv_info ;\n if ( tvb_reported_length ( tvb ) < 4 ) return FALSE ;\n prefix = tvb_get_letohl ( tvb , 0 ) ;\n usb_conv_info = ( usb_conv_info_t * ) data ;\n if ( ! usb_conv_info ) return FALSE ;\n if ( ( U3V_STREAM_LEADER_PREFIX == prefix ) || ( U3V_STREAM_TRAILER_PREFIX == prefix ) || ( U3V_CONTROL_PREFIX == prefix ) || ( U3V_EVENT_PREFIX == prefix ) || ( ( usb_conv_info -> interfaceClass == IF_CLASS_MISCELLANEOUS && usb_conv_info -> interfaceSubclass == IF_SUBCLASS_MISC_U3V ) ) ) {\n dissect_u3v ( tvb , pinfo , tree , data ) ;\n return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 9207, "target": 0, "func": "char * utf8_verify_copy ( const char * str ) {\n if ( str == NULL ) return ( NULL ) ;\n if ( utf8_valid ( str ) ) return ( copy ( str ) ) ;\n return ( latin1_2_utf8_copy ( str ) ) ;\n }"}
{"idx": 9208, "target": 0, "func": "static void selinux_inode_free_security ( struct inode * inode ) {\n inode_free_security ( inode ) ;\n }"}
{"idx": 9209, "target": 0, "func": "void ff_vdpau_mpeg4_decode_picture ( MpegEncContext * s , const uint8_t * buf , int buf_size ) {\n struct vdpau_render_state * render , * last , * next ;\n int i ;\n if ( ! s -> current_picture_ptr ) return ;\n render = ( struct vdpau_render_state * ) s -> current_picture_ptr -> f . data [ 0 ] ;\n assert ( render ) ;\n render -> info . mpeg4 . trd [ 0 ] = s -> pp_time ;\n render -> info . mpeg4 . trb [ 0 ] = s -> pb_time ;\n render -> info . mpeg4 . trd [ 1 ] = s -> pp_field_time >> 1 ;\n render -> info . mpeg4 . trb [ 1 ] = s -> pb_field_time >> 1 ;\n render -> info . mpeg4 . vop_time_increment_resolution = s -> avctx -> time_base . den ;\n render -> info . mpeg4 . vop_coding_type = 0 ;\n render -> info . mpeg4 . vop_fcode_forward = s -> f_code ;\n render -> info . mpeg4 . vop_fcode_backward = s -> b_code ;\n render -> info . mpeg4 . resync_marker_disable = ! s -> resync_marker ;\n render -> info . mpeg4 . interlaced = ! s -> progressive_sequence ;\n render -> info . mpeg4 . quant_type = s -> mpeg_quant ;\n render -> info . mpeg4 . quarter_sample = s -> quarter_sample ;\n render -> info . mpeg4 . short_video_header = s -> avctx -> codec -> id == AV_CODEC_ID_H263 ;\n render -> info . mpeg4 . rounding_control = s -> no_rounding ;\n render -> info . mpeg4 . alternate_vertical_scan_flag = s -> alternate_scan ;\n render -> info . mpeg4 . top_field_first = s -> top_field_first ;\n for ( i = 0 ;\n i < 64 ;\n ++ i ) {\n render -> info . mpeg4 . intra_quantizer_matrix [ i ] = s -> intra_matrix [ i ] ;\n render -> info . mpeg4 . non_intra_quantizer_matrix [ i ] = s -> inter_matrix [ i ] ;\n }\n render -> info . mpeg4 . forward_reference = VDP_INVALID_HANDLE ;\n render -> info . mpeg4 . backward_reference = VDP_INVALID_HANDLE ;\n switch ( s -> pict_type ) {\n case AV_PICTURE_TYPE_B : next = ( struct vdpau_render_state * ) s -> next_picture . f . data [ 0 ] ;\n assert ( next ) ;\n render -> info . mpeg4 . backward_reference = next -> surface ;\n render -> info . mpeg4 . vop_coding_type = 2 ;\n case AV_PICTURE_TYPE_P : last = ( struct vdpau_render_state * ) s -> last_picture . f . data [ 0 ] ;\n assert ( last ) ;\n render -> info . mpeg4 . forward_reference = last -> surface ;\n }\n ff_vdpau_add_data_chunk ( s -> current_picture_ptr -> f . data [ 0 ] , buf , buf_size ) ;\n ff_mpeg_draw_horiz_band ( s , 0 , s -> avctx -> height ) ;\n render -> bitstream_buffers_used = 0 ;\n }"}
{"idx": 9210, "target": 0, "func": "static inline int default_protocol_dgram ( int protocol ) {\n return ( protocol == IPPROTO_IP || protocol == IPPROTO_UDP ) ;\n }"}
{"idx": 9211, "target": 0, "func": "static void e1000e_calc_rxdesclen ( E1000ECore * core ) {\n if ( e1000e_rx_use_legacy_descriptor ( core ) ) {\n core -> rx_desc_len = sizeof ( struct e1000_rx_desc ) ;\n }\n else {\n if ( core -> mac [ RCTL ] & E1000_RCTL_DTYP_PS ) {\n core -> rx_desc_len = sizeof ( union e1000_rx_desc_packet_split ) ;\n }\n else {\n core -> rx_desc_len = sizeof ( union e1000_rx_desc_extended ) ;\n }\n }\n trace_e1000e_rx_desc_len ( core -> rx_desc_len ) ;\n }"}
{"idx": 9212, "target": 0, "func": "TEST_P ( PasswordStoreXTest , Notifications ) {\n std : : unique_ptr < password_manager : : LoginDatabase > login_db ( new password_manager : : LoginDatabase ( test_login_db_file_path ( ) ) ) ;\n scoped_refptr < PasswordStoreX > store ( new PasswordStoreX ( base : : ThreadTaskRunnerHandle : : Get ( ) , base : : ThreadTaskRunnerHandle : : Get ( ) , std : : move ( login_db ) , GetBackend ( GetParam ( ) ) ) ) ;\n store -> Init ( syncer : : SyncableService : : StartSyncFlare ( ) ) ;\n password_manager : : PasswordFormData form_data = {\n PasswordForm : : SCHEME_HTML , \"http://bar.example.com\" , \"http://bar.example.com/origin\" , \"http://bar.example.com/action\" , L\"submit_element\" , L\"username_element\" , L\"password_element\" , L\"username_value\" , L\"password_value\" , true , 1 }\n ;\n std : : unique_ptr < PasswordForm > form = CreatePasswordFormFromDataForTesting ( form_data ) ;\n password_manager : : MockPasswordStoreObserver observer ;\n store -> AddObserver ( & observer ) ;\n const PasswordStoreChange expected_add_changes [ ] = {\n PasswordStoreChange ( PasswordStoreChange : : ADD , * form ) , }\n ;\n EXPECT_CALL ( observer , OnLoginsChanged ( ElementsAreArray ( expected_add_changes ) ) ) ;\n store -> AddLogin ( * form ) ;\n base : : RunLoop ( ) . RunUntilIdle ( ) ;\n form -> password_value = base : : ASCIIToUTF16 ( \"a different password\" ) ;\n const PasswordStoreChange expected_update_changes [ ] = {\n PasswordStoreChange ( PasswordStoreChange : : UPDATE , * form ) , }\n ;\n EXPECT_CALL ( observer , OnLoginsChanged ( ElementsAreArray ( expected_update_changes ) ) ) ;\n store -> UpdateLogin ( * form ) ;\n base : : RunLoop ( ) . RunUntilIdle ( ) ;\n const PasswordStoreChange expected_delete_changes [ ] = {\n PasswordStoreChange ( PasswordStoreChange : : REMOVE , * form ) , }\n ;\n EXPECT_CALL ( observer , OnLoginsChanged ( ElementsAreArray ( expected_delete_changes ) ) ) ;\n store -> RemoveLogin ( * form ) ;\n base : : RunLoop ( ) . RunUntilIdle ( ) ;\n store -> RemoveObserver ( & observer ) ;\n store -> ShutdownOnUIThread ( ) ;\n }"}
{"idx": 9213, "target": 0, "func": "static void pdf_run_W ( fz_context * ctx , pdf_processor * proc ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pr -> clip = 1 ;\n pr -> clip_even_odd = 0 ;\n }"}
{"idx": 9214, "target": 0, "func": "bool x509_parse_crlDistributionPoints ( chunk_t blob , int level0 , linked_list_t * list ) {\n linked_list_t * uris , * issuers ;\n asn1_parser_t * parser ;\n chunk_t object ;\n int objectID ;\n bool success = FALSE ;\n uris = linked_list_create ( ) ;\n issuers = linked_list_create ( ) ;\n parser = asn1_parser_create ( crlDistributionPointsObjects , blob ) ;\n parser -> set_top_level ( parser , level0 ) ;\n while ( parser -> iterate ( parser , & objectID , & object ) ) {\n switch ( objectID ) {\n case CRL_DIST_POINTS : add_cdps ( list , uris , issuers ) ;\n break ;\n case CRL_DIST_POINTS_FULLNAME : if ( ! x509_parse_generalNames ( object , parser -> get_level ( parser ) + 1 , TRUE , uris ) ) {\n goto end ;\n }\n break ;\n case CRL_DIST_POINTS_ISSUER : if ( ! x509_parse_generalNames ( object , parser -> get_level ( parser ) + 1 , TRUE , issuers ) ) {\n goto end ;\n }\n break ;\n default : break ;\n }\n }\n success = parser -> success ( parser ) ;\n add_cdps ( list , uris , issuers ) ;\n end : parser -> destroy ( parser ) ;\n uris -> destroy_offset ( uris , offsetof ( identification_t , destroy ) ) ;\n issuers -> destroy_offset ( issuers , offsetof ( identification_t , destroy ) ) ;\n return success ;\n }"}
{"idx": 9215, "target": 0, "func": "char * TSMatcherLineValue ( TSMatcherLine ml , int element ) {\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) ml ) == TS_SUCCESS ) ;\n return ( ( ( matcher_line * ) ml ) -> line ) [ 1 ] [ element ] ;\n }"}
{"idx": 9216, "target": 1, "func": "static int parse_RowsBuffer ( tvbuff_t * tvb , int offset , guint32 num_rows , struct CPMSetBindingsIn * bindingsin , struct rows_data * rowsin , gboolean is64bit , proto_tree * parent_tree , const char * fmt , ... ) {\n proto_tree * tree ;\n proto_item * item ;\n guint32 num ;\n const char * txt ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_GetRowsRow , & item , txt ) ;\n for ( num = 0 ;\n num < num_rows ;\n ++ num ) {\n guint32 col ;\n proto_tree * row_tree ;\n row_tree = proto_tree_add_subtree_format ( tree , tvb , offset , 0 , ett_GetRowsRow , NULL , \"Row[%d]\" , num ) ;\n for ( col = 0 ;\n col < bindingsin -> ccolumns ;\n col ++ ) {\n parse_RowsBufferCol ( tvb , offset , num , col , bindingsin , rowsin , is64bit , row_tree , \"Col[%d]\" , col ) ;\n }\n }\n return offset ;\n }"}
{"idx": 9217, "target": 0, "func": "void * TSHttpTxnArgGet ( TSHttpTxn txnp , int arg_idx ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n sdk_assert ( arg_idx >= 0 && arg_idx < HTTP_SSN_TXN_MAX_USER_ARG ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n return sm -> t_state . user_args [ arg_idx ] ;\n }"}
{"idx": 9218, "target": 0, "func": "static void arabic_joining ( hb_buffer_t * buffer ) {\n unsigned int count = buffer -> len ;\n hb_glyph_info_t * info = buffer -> info ;\n unsigned int prev = ( unsigned int ) - 1 , state = 0 ;\n for ( unsigned int i = 0 ;\n i < buffer -> context_len [ 0 ] ;\n i ++ ) {\n unsigned int this_type = get_joining_type ( buffer -> context [ 0 ] [ i ] , buffer -> unicode -> general_category ( buffer -> context [ 0 ] [ i ] ) ) ;\n if ( unlikely ( this_type == JOINING_TYPE_T ) ) continue ;\n const arabic_state_table_entry * entry = & arabic_state_table [ state ] [ this_type ] ;\n state = entry -> next_state ;\n break ;\n }\n for ( unsigned int i = 0 ;\n i < count ;\n i ++ ) {\n unsigned int this_type = get_joining_type ( info [ i ] . codepoint , _hb_glyph_info_get_general_category ( & info [ i ] ) ) ;\n if ( unlikely ( this_type == JOINING_TYPE_T ) ) {\n info [ i ] . arabic_shaping_action ( ) = NONE ;\n continue ;\n }\n const arabic_state_table_entry * entry = & arabic_state_table [ state ] [ this_type ] ;\n if ( entry -> prev_action != NONE && prev != ( unsigned int ) - 1 ) info [ prev ] . arabic_shaping_action ( ) = entry -> prev_action ;\n info [ i ] . arabic_shaping_action ( ) = entry -> curr_action ;\n prev = i ;\n state = entry -> next_state ;\n }\n for ( unsigned int i = 0 ;\n i < buffer -> context_len [ 1 ] ;\n i ++ ) {\n unsigned int this_type = get_joining_type ( buffer -> context [ 1 ] [ i ] , buffer -> unicode -> general_category ( buffer -> context [ 1 ] [ i ] ) ) ;\n if ( unlikely ( this_type == JOINING_TYPE_T ) ) continue ;\n const arabic_state_table_entry * entry = & arabic_state_table [ state ] [ this_type ] ;\n if ( entry -> prev_action != NONE && prev != ( unsigned int ) - 1 ) info [ prev ] . arabic_shaping_action ( ) = entry -> prev_action ;\n break ;\n }\n }"}
{"idx": 9219, "target": 0, "func": "void new_register_ber_oid_dissector ( const char * oid , new_dissector_t dissector , int proto , const char * name ) {\n dissector_handle_t dissector_handle ;\n dissector_handle = new_create_dissector_handle ( dissector , proto ) ;\n dissector_add_string ( \"ber.oid\" , oid , dissector_handle ) ;\n oid_add_from_string ( name , oid ) ;\n }"}
{"idx": 9220, "target": 0, "func": "static void btatt_handle_prompt ( packet_info * pinfo , gchar * result ) {\n guint16 * value_data ;\n value_data = ( guint16 * ) p_get_proto_data ( pinfo -> pool , pinfo , proto_btatt , PROTO_DATA_BTATT_HANDLE ) ;\n if ( value_data ) g_snprintf ( result , MAX_DECODE_AS_PROMPT_LEN , \"ATT Handle 0x%04x as\" , ( guint ) * value_data ) ;\n else g_snprintf ( result , MAX_DECODE_AS_PROMPT_LEN , \"Unknown ATT Handle\" ) ;\n }"}
{"idx": 9221, "target": 1, "func": "static int rv34_decode_intra_mb_header ( RV34DecContext * r , int8_t * intra_types ) {\n MpegEncContext * s = & r -> s ;\n GetBitContext * gb = & s -> gb ;\n int mb_pos = s -> mb_x + s -> mb_y * s -> mb_stride ;\n int t ;\n r -> is16 = get_bits1 ( gb ) ;\n if ( r -> is16 ) {\n s -> current_picture_ptr -> f . mb_type [ mb_pos ] = MB_TYPE_INTRA16x16 ;\n r -> block_type = RV34_MB_TYPE_INTRA16x16 ;\n t = get_bits ( gb , 2 ) ;\n fill_rectangle ( intra_types , 4 , 4 , r -> intra_types_stride , t , sizeof ( intra_types [ 0 ] ) ) ;\n r -> luma_vlc = 2 ;\n }\n else {\n if ( ! r -> rv30 ) {\n if ( ! get_bits1 ( gb ) ) av_log ( s -> avctx , AV_LOG_ERROR , \"Need DQUANT\\n\" ) ;\n }\n s -> current_picture_ptr -> f . mb_type [ mb_pos ] = MB_TYPE_INTRA ;\n r -> block_type = RV34_MB_TYPE_INTRA ;\n if ( r -> decode_intra_types ( r , gb , intra_types ) < 0 ) return - 1 ;\n r -> luma_vlc = 1 ;\n }\n r -> chroma_vlc = 0 ;\n r -> cur_vlcs = choose_vlc_set ( r -> si . quant , r -> si . vlc_set , 0 ) ;\n return rv34_decode_cbp ( gb , r -> cur_vlcs , r -> is16 ) ;\n }"}
{"idx": 9222, "target": 0, "func": "static void pk_transaction_dbus_return ( GDBusMethodInvocation * context , const GError * error ) {\n if ( context == NULL ) {\n if ( error != NULL ) g_warning ( \"context null, and error: %s\" , error -> message ) ;\n return ;\n }\n if ( error != NULL ) g_dbus_method_invocation_return_gerror ( context , error ) ;\n else g_dbus_method_invocation_return_value ( context , NULL ) ;\n }"}
{"idx": 9223, "target": 0, "func": "void mime_parser_clear ( MIMEParser * parser ) {\n mime_scanner_clear ( & parser -> m_scanner ) ;\n _mime_parser_init ( parser ) ;\n }"}
{"idx": 9224, "target": 0, "func": "static void evhttp_read_header ( struct evhttp_connection * evcon , struct evhttp_request * req ) {\n enum message_read_status res ;\n int fd = evcon -> fd ;\n res = evhttp_parse_headers ( req , evcon -> input_buffer ) ;\n if ( res == DATA_CORRUPTED ) {\n event_debug ( ( \"%s: bad header lines on %d\\n\" , __func__ , fd ) ) ;\n evhttp_connection_fail ( evcon , EVCON_HTTP_INVALID_HEADER ) ;\n return ;\n }\n else if ( res == MORE_DATA_EXPECTED ) {\n evhttp_add_event ( & evcon -> ev , evcon -> timeout , HTTP_READ_TIMEOUT ) ;\n return ;\n }\n switch ( req -> kind ) {\n case EVHTTP_REQUEST : event_debug ( ( \"%s: checking for post data on %d\\n\" , __func__ , fd ) ) ;\n evhttp_get_body ( evcon , req ) ;\n break ;\n case EVHTTP_RESPONSE : if ( req -> response_code == HTTP_NOCONTENT || req -> response_code == HTTP_NOTMODIFIED || ( req -> response_code >= 100 && req -> response_code < 200 ) ) {\n event_debug ( ( \"%s: skipping body for code %d\\n\" , __func__ , req -> response_code ) ) ;\n evhttp_connection_done ( evcon ) ;\n }\n else {\n event_debug ( ( \"%s: start of read body for %s on %d\\n\" , __func__ , req -> remote_host , fd ) ) ;\n evhttp_get_body ( evcon , req ) ;\n }\n break ;\n default : event_warnx ( \"%s: bad header on %d\" , __func__ , fd ) ;\n evhttp_connection_fail ( evcon , EVCON_HTTP_INVALID_HEADER ) ;\n break ;\n }\n }"}
{"idx": 9225, "target": 0, "func": "static void q931_init ( void ) {\n reassembly_table_init ( & q931_reassembly_table , & addresses_reassembly_table_functions ) ;\n }"}
{"idx": 9226, "target": 0, "func": "int gdev_mem_set_line_ptrs ( gx_device_memory * mdev , byte * base , int raster , byte * * line_ptrs , int setup_height ) {\n int num_planes = ( mdev -> is_planar ? mdev -> color_info . num_components : 0 ) ;\n byte * * pline ;\n byte * data ;\n int pi ;\n if ( line_ptrs ) mdev -> line_ptrs = line_ptrs ;\n pline = mdev -> line_ptrs ;\n if ( base == NULL ) {\n base = mdev -> base ;\n raster = mdev -> raster ;\n }\n else {\n mdev -> base = base ;\n mdev -> raster = raster ;\n }\n if ( mdev -> log2_align_mod > log2_align_bitmap_mod ) {\n int align = 1 << mdev -> log2_align_mod ;\n align = ( - ( int ) ( intptr_t ) base ) & ( align - 1 ) ;\n data = base + align ;\n }\n else {\n data = mdev -> base ;\n }\n if ( num_planes ) {\n if ( base && ! mdev -> plane_depth ) return_error ( gs_error_rangecheck ) ;\n }\n else {\n num_planes = 1 ;\n }\n for ( pi = 0 ;\n pi < num_planes ;\n ++ pi ) {\n byte * * pptr = pline ;\n byte * * pend = pptr + setup_height ;\n byte * scan_line = data ;\n while ( pptr < pend ) {\n * pptr ++ = scan_line ;\n scan_line += raster ;\n }\n data += raster * mdev -> height ;\n pline += setup_height ;\n }\n return 0 ;\n }"}
{"idx": 9227, "target": 1, "func": "static int dissect_coap ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * parent_tree , void * data _U_ ) {\n gint offset = 0 ;\n proto_item * coap_root ;\n proto_item * pi ;\n proto_tree * coap_tree ;\n guint8 ttype ;\n guint8 token_len ;\n guint8 code ;\n guint8 code_class ;\n guint16 mid ;\n gint coap_length ;\n gchar * coap_token_str ;\n coap_info * coinfo ;\n conversation_t * conversation ;\n coap_conv_info * ccinfo ;\n coap_transaction * coap_trans = NULL ;\n coinfo = ( coap_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_coap , 0 ) ;\n if ( coinfo == NULL ) {\n coinfo = wmem_new0 ( wmem_file_scope ( ) , coap_info ) ;\n p_add_proto_data ( wmem_file_scope ( ) , pinfo , proto_coap , 0 , coinfo ) ;\n }\n coap_length = tvb_reported_length ( tvb ) ;\n coinfo -> ctype_str = \"\" ;\n coinfo -> ctype_value = DEFAULT_COAP_CTYPE_VALUE ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"CoAP\" ) ;\n col_clear ( pinfo -> cinfo , COL_INFO ) ;\n coap_root = proto_tree_add_item ( parent_tree , proto_coap , tvb , offset , - 1 , ENC_NA ) ;\n coap_tree = proto_item_add_subtree ( coap_root , ett_coap ) ;\n proto_tree_add_item ( coap_tree , hf_coap_version , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( coap_tree , hf_coap_ttype , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n ttype = ( tvb_get_guint8 ( tvb , offset ) & COAP_TYPE_MASK ) >> 4 ;\n proto_tree_add_item ( coap_tree , hf_coap_token_len , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n token_len = tvb_get_guint8 ( tvb , offset ) & COAP_TOKEN_LEN_MASK ;\n offset += 1 ;\n code = dissect_coap_code ( tvb , coap_tree , & offset , & dissect_coap_hf , & code_class ) ;\n proto_tree_add_item ( coap_tree , hf_coap_mid , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n mid = tvb_get_ntohs ( tvb , offset ) ;\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"%s, MID:%u, %s\" , val_to_str ( ttype , vals_ttype_short , \"Unknown %u\" ) , mid , val_to_str_ext ( code , & coap_vals_code_ext , \"Unknown %u\" ) ) ;\n proto_item_append_text ( coap_root , \", %s, %s, MID:%u\" , val_to_str ( ttype , vals_ttype , \"Unknown %u\" ) , val_to_str_ext ( code , & coap_vals_code_ext , \"Unknown %u\" ) , mid ) ;\n offset += 2 ;\n coinfo -> block_number = DEFAULT_COAP_BLOCK_NUMBER ;\n coinfo -> block_mflag = 0 ;\n coinfo -> uri_str_strbuf = wmem_strbuf_sized_new ( wmem_packet_scope ( ) , 0 , 1024 ) ;\n coinfo -> uri_query_strbuf = wmem_strbuf_sized_new ( wmem_packet_scope ( ) , 0 , 1024 ) ;\n coinfo -> oscore_info = wmem_new0 ( wmem_packet_scope ( ) , oscore_info_t ) ;\n coinfo -> object_security = FALSE ;\n coap_token_str = NULL ;\n if ( token_len > 0 ) {\n coap_token_str = tvb_bytes_to_str_punct ( wmem_file_scope ( ) , tvb , offset , token_len , ' ' ) ;\n proto_tree_add_item ( coap_tree , hf_coap_token , tvb , offset , token_len , ENC_NA ) ;\n offset += token_len ;\n }\n offset = dissect_coap_options ( tvb , pinfo , coap_tree , offset , coap_length , coinfo , & dissect_coap_hf ) ;\n if ( offset == - 1 ) return tvb_captured_length ( tvb ) ;\n conversation = find_or_create_conversation_noaddrb ( pinfo , ( code_class == 0 ) ) ;\n ccinfo = ( coap_conv_info * ) conversation_get_proto_data ( conversation , proto_coap ) ;\n if ( ! ccinfo ) {\n ccinfo = wmem_new ( wmem_file_scope ( ) , coap_conv_info ) ;\n ccinfo -> messages = wmem_map_new ( wmem_file_scope ( ) , g_str_hash , g_str_equal ) ;\n conversation_add_proto_data ( conversation , proto_coap , ccinfo ) ;\n }\n if ( coap_token_str != NULL ) {\n if ( code != 0 ) {\n coap_trans = ( coap_transaction * ) wmem_map_lookup ( ccinfo -> messages , coap_token_str ) ;\n if ( ! coap_trans ) {\n if ( ( ! PINFO_FD_VISITED ( pinfo ) ) && ( code_class == 0 ) ) {\n coap_trans = wmem_new0 ( wmem_file_scope ( ) , coap_transaction ) ;\n coap_trans -> req_frame = pinfo -> num ;\n coap_trans -> rsp_frame = 0 ;\n coap_trans -> req_time = pinfo -> fd -> abs_ts ;\n if ( coinfo -> uri_str_strbuf ) {\n coap_trans -> uri_str_strbuf = wmem_strbuf_new ( wmem_file_scope ( ) , wmem_strbuf_get_str ( coinfo -> uri_str_strbuf ) ) ;\n }\n if ( coinfo -> oscore_info ) {\n coap_trans -> oscore_info = ( oscore_info_t * ) wmem_memdup ( wmem_file_scope ( ) , coinfo -> oscore_info , sizeof ( oscore_info_t ) ) ;\n if ( coinfo -> oscore_info -> kid ) {\n coap_trans -> oscore_info -> kid = ( guint8 * ) wmem_memdup ( wmem_file_scope ( ) , coinfo -> oscore_info -> kid , coinfo -> oscore_info -> kid_len ) ;\n }\n if ( coinfo -> oscore_info -> kid_context ) {\n coap_trans -> oscore_info -> kid_context = ( guint8 * ) wmem_memdup ( wmem_file_scope ( ) , coinfo -> oscore_info -> kid_context , coinfo -> oscore_info -> kid_context_len ) ;\n }\n if ( coinfo -> oscore_info -> piv ) {\n coap_trans -> oscore_info -> piv = ( guint8 * ) wmem_memdup ( wmem_file_scope ( ) , coinfo -> oscore_info -> piv , coinfo -> oscore_info -> piv_len ) ;\n }\n }\n wmem_map_insert ( ccinfo -> messages , coap_token_str , ( void * ) coap_trans ) ;\n }\n }\n else {\n if ( ( code_class >= 2 ) && ( code_class <= 5 ) ) {\n if ( ! PINFO_FD_VISITED ( pinfo ) ) {\n coap_trans -> rsp_frame = pinfo -> num ;\n }\n if ( coap_trans -> uri_str_strbuf ) {\n coinfo -> uri_str_strbuf = wmem_strbuf_new ( wmem_packet_scope ( ) , wmem_strbuf_get_str ( coap_trans -> uri_str_strbuf ) ) ;\n }\n if ( coap_trans -> oscore_info ) {\n if ( coap_trans -> oscore_info -> kid ) {\n coinfo -> oscore_info -> kid = ( guint8 * ) wmem_memdup ( wmem_packet_scope ( ) , coap_trans -> oscore_info -> kid , coap_trans -> oscore_info -> kid_len ) ;\n }\n coinfo -> oscore_info -> kid_len = coap_trans -> oscore_info -> kid_len ;\n if ( coap_trans -> oscore_info -> kid_context ) {\n coinfo -> oscore_info -> kid_context = ( guint8 * ) wmem_memdup ( wmem_packet_scope ( ) , coap_trans -> oscore_info -> kid_context , coap_trans -> oscore_info -> kid_context_len ) ;\n }\n coinfo -> oscore_info -> kid_context_len = coap_trans -> oscore_info -> kid_context_len ;\n if ( coinfo -> oscore_info -> piv_len > 0 ) {\n coinfo -> oscore_info -> piv_in_response = TRUE ;\n coap_trans -> oscore_info -> piv_in_response = TRUE ;\n }\n else {\n if ( coap_trans -> oscore_info -> piv ) {\n coinfo -> oscore_info -> piv = ( guint8 * ) wmem_memdup ( wmem_packet_scope ( ) , coap_trans -> oscore_info -> piv , coap_trans -> oscore_info -> piv_len ) ;\n }\n coinfo -> oscore_info -> piv_len = coap_trans -> oscore_info -> piv_len ;\n }\n coinfo -> oscore_info -> response = TRUE ;\n }\n }\n }\n }\n }\n if ( coap_trans != NULL ) {\n if ( code_class == 0 ) {\n if ( coap_trans -> rsp_frame ) {\n proto_item * it ;\n it = proto_tree_add_uint ( coap_tree , hf_coap_response_in , tvb , 0 , 0 , coap_trans -> rsp_frame ) ;\n PROTO_ITEM_SET_GENERATED ( it ) ;\n }\n }\n else if ( ( code_class >= 2 ) && ( code_class <= 5 ) ) {\n if ( coap_trans -> req_frame ) {\n proto_item * it ;\n nstime_t ns ;\n it = proto_tree_add_uint ( coap_tree , hf_coap_response_to , tvb , 0 , 0 , coap_trans -> req_frame ) ;\n PROTO_ITEM_SET_GENERATED ( it ) ;\n nstime_delta ( & ns , & pinfo -> fd -> abs_ts , & coap_trans -> req_time ) ;\n it = proto_tree_add_time ( coap_tree , hf_coap_response_time , tvb , 0 , 0 , & ns ) ;\n PROTO_ITEM_SET_GENERATED ( it ) ;\n }\n if ( coinfo -> object_security && coap_trans -> oscore_info ) {\n proto_item * it ;\n it = proto_tree_add_bytes ( coap_tree , hf_coap_oscore_kid , tvb , 0 , coap_trans -> oscore_info -> kid_len , coap_trans -> oscore_info -> kid ) ;\n PROTO_ITEM_SET_GENERATED ( it ) ;\n it = proto_tree_add_bytes ( coap_tree , hf_coap_oscore_kid_context , tvb , 0 , coap_trans -> oscore_info -> kid_context_len , coap_trans -> oscore_info -> kid_context ) ;\n PROTO_ITEM_SET_GENERATED ( it ) ;\n if ( coap_trans -> oscore_info -> piv_in_response ) {\n it = proto_tree_add_bytes ( coap_tree , hf_coap_oscore_piv , tvb , 0 , coinfo -> oscore_info -> piv_len , coinfo -> oscore_info -> piv ) ;\n }\n else {\n it = proto_tree_add_bytes ( coap_tree , hf_coap_oscore_piv , tvb , 0 , coap_trans -> oscore_info -> piv_len , coap_trans -> oscore_info -> piv ) ;\n }\n PROTO_ITEM_SET_GENERATED ( it ) ;\n }\n }\n }\n if ( coap_token_str != NULL ) col_append_fstr ( pinfo -> cinfo , COL_INFO , \", TKN:%s\" , coap_token_str ) ;\n if ( coinfo -> block_number != DEFAULT_COAP_BLOCK_NUMBER ) col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %sBlock #%u\" , coinfo -> block_mflag ? \"\" : \"End of \" , coinfo -> block_number ) ;\n if ( wmem_strbuf_get_len ( coinfo -> uri_str_strbuf ) > 0 ) {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , wmem_strbuf_get_str ( coinfo -> uri_str_strbuf ) ) ;\n pi = proto_tree_add_string ( coap_tree , dissect_coap_hf . hf . opt_uri_path_recon , tvb , 0 , 0 , wmem_strbuf_get_str ( coinfo -> uri_str_strbuf ) ) ;\n PROTO_ITEM_SET_GENERATED ( pi ) ;\n }\n if ( wmem_strbuf_get_len ( coinfo -> uri_query_strbuf ) > 0 ) col_append_str ( pinfo -> cinfo , COL_INFO , wmem_strbuf_get_str ( coinfo -> uri_query_strbuf ) ) ;\n if ( coap_length > offset ) {\n dissect_coap_payload ( tvb , pinfo , coap_tree , parent_tree , offset , coap_length , code_class , coinfo , & dissect_coap_hf , FALSE ) ;\n }\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 9228, "target": 0, "func": "u_int sl_bsdos_if_print ( netdissect_options * ndo , const struct pcap_pkthdr * h , const u_char * p ) {\n register u_int caplen = h -> caplen ;\n register u_int length = h -> len ;\n register const struct ip * ip ;\n if ( caplen < SLIP_HDRLEN ) {\n ND_PRINT ( ( ndo , \"%s\" , tstr ) ) ;\n return ( caplen ) ;\n }\n length -= SLIP_HDRLEN ;\n ip = ( const struct ip * ) ( p + SLIP_HDRLEN ) ;\n # ifdef notdef if ( ndo -> ndo_eflag ) sliplink_print ( ndo , p , ip , length ) ;\n # endif ip_print ( ndo , ( const u_char * ) ip , length ) ;\n return ( SLIP_HDRLEN ) ;\n }"}
{"idx": 9229, "target": 0, "func": "int generic_key_instantiate ( struct key * key , struct key_preparsed_payload * prep ) {\n int ret ;\n pr_devel ( \"==>%s()\\n\" , __func__ ) ;\n ret = key_payload_reserve ( key , prep -> quotalen ) ;\n if ( ret == 0 ) {\n rcu_assign_keypointer ( key , prep -> payload . data [ 0 ] ) ;\n key -> payload . data [ 1 ] = prep -> payload . data [ 1 ] ;\n key -> payload . data [ 2 ] = prep -> payload . data [ 2 ] ;\n key -> payload . data [ 3 ] = prep -> payload . data [ 3 ] ;\n prep -> payload . data [ 0 ] = NULL ;\n prep -> payload . data [ 1 ] = NULL ;\n prep -> payload . data [ 2 ] = NULL ;\n prep -> payload . data [ 3 ] = NULL ;\n }\n pr_devel ( \"<==%s() = %d\\n\" , __func__ , ret ) ;\n return ret ;\n }"}
{"idx": 9230, "target": 0, "func": "void xps_identify_font_encoding ( fz_font * font , int idx , int * pid , int * eid ) {\n FT_Face face = font -> ft_face ;\n * pid = face -> charmaps [ idx ] -> platform_id ;\n * eid = face -> charmaps [ idx ] -> encoding_id ;\n }"}
{"idx": 9231, "target": 0, "func": "int archive_read_support_filter_compress ( struct archive * _a ) {\n struct archive_read * a = ( struct archive_read * ) _a ;\n struct archive_read_filter_bidder * bidder ;\n archive_check_magic ( _a , ARCHIVE_READ_MAGIC , ARCHIVE_STATE_NEW , \"archive_read_support_filter_compress\" ) ;\n if ( __archive_read_get_bidder ( a , & bidder ) != ARCHIVE_OK ) return ( ARCHIVE_FATAL ) ;\n bidder -> data = NULL ;\n bidder -> name = \"compress (.Z)\" ;\n bidder -> bid = compress_bidder_bid ;\n bidder -> init = compress_bidder_init ;\n bidder -> options = NULL ;\n bidder -> free = compress_bidder_free ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 9232, "target": 0, "func": "static void vc1_decode_skip_blocks ( VC1Context * v ) {\n MpegEncContext * s = & v -> s ;\n ff_er_add_slice ( & s -> er , 0 , s -> start_mb_y , s -> mb_width - 1 , s -> end_mb_y - 1 , ER_MB_END ) ;\n s -> first_slice_line = 1 ;\n for ( s -> mb_y = s -> start_mb_y ;\n s -> mb_y < s -> end_mb_y ;\n s -> mb_y ++ ) {\n s -> mb_x = 0 ;\n ff_init_block_index ( s ) ;\n ff_update_block_index ( s ) ;\n memcpy ( s -> dest [ 0 ] , s -> last_picture . f . data [ 0 ] + s -> mb_y * 16 * s -> linesize , s -> linesize * 16 ) ;\n memcpy ( s -> dest [ 1 ] , s -> last_picture . f . data [ 1 ] + s -> mb_y * 8 * s -> uvlinesize , s -> uvlinesize * 8 ) ;\n memcpy ( s -> dest [ 2 ] , s -> last_picture . f . data [ 2 ] + s -> mb_y * 8 * s -> uvlinesize , s -> uvlinesize * 8 ) ;\n ff_mpeg_draw_horiz_band ( s , s -> mb_y * 16 , 16 ) ;\n s -> first_slice_line = 0 ;\n }\n s -> pict_type = AV_PICTURE_TYPE_P ;\n }"}
{"idx": 9233, "target": 1, "func": "static void spl_filesystem_tree_it_move_forward ( zend_object_iterator * iter TSRMLS_DC ) {\n spl_filesystem_iterator * iterator = ( spl_filesystem_iterator * ) iter ;\n spl_filesystem_object * object = spl_filesystem_iterator_to_object ( iterator ) ;\n object -> u . dir . index ++ ;\n do {\n spl_filesystem_dir_read ( object TSRMLS_CC ) ;\n }\n while ( spl_filesystem_is_dot ( object -> u . dir . entry . d_name ) ) ;\n if ( object -> file_name ) {\n efree ( object -> file_name ) ;\n object -> file_name = NULL ;\n }\n if ( iterator -> current ) {\n zval_ptr_dtor ( & iterator -> current ) ;\n iterator -> current = NULL ;\n }\n }"}
{"idx": 9234, "target": 0, "func": "static cmsBool Type_LUT16_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) {\n cmsUInt32Number nTabSize ;\n cmsPipeline * NewLUT = ( cmsPipeline * ) Ptr ;\n cmsStage * mpe ;\n _cmsStageToneCurvesData * PreMPE = NULL , * PostMPE = NULL ;\n _cmsStageMatrixData * MatMPE = NULL ;\n _cmsStageCLutData * clut = NULL ;\n int i , InputChannels , OutputChannels , clutPoints ;\n mpe = NewLUT -> Elements ;\n if ( mpe != NULL && mpe -> Type == cmsSigMatrixElemType ) {\n MatMPE = ( _cmsStageMatrixData * ) mpe -> Data ;\n mpe = mpe -> Next ;\n }\n if ( mpe != NULL && mpe -> Type == cmsSigCurveSetElemType ) {\n PreMPE = ( _cmsStageToneCurvesData * ) mpe -> Data ;\n mpe = mpe -> Next ;\n }\n if ( mpe != NULL && mpe -> Type == cmsSigCLutElemType ) {\n clut = ( _cmsStageCLutData * ) mpe -> Data ;\n mpe = mpe -> Next ;\n }\n if ( mpe != NULL && mpe -> Type == cmsSigCurveSetElemType ) {\n PostMPE = ( _cmsStageToneCurvesData * ) mpe -> Data ;\n mpe = mpe -> Next ;\n }\n if ( mpe != NULL ) {\n cmsSignalError ( mpe -> ContextID , cmsERROR_UNKNOWN_EXTENSION , \"LUT is not suitable to be saved as LUT16\" ) ;\n return FALSE ;\n }\n InputChannels = cmsPipelineInputChannels ( NewLUT ) ;\n OutputChannels = cmsPipelineOutputChannels ( NewLUT ) ;\n if ( clut == NULL ) clutPoints = 0 ;\n else clutPoints = clut -> Params -> nSamples [ 0 ] ;\n if ( ! _cmsWriteUInt8Number ( io , ( cmsUInt8Number ) InputChannels ) ) return FALSE ;\n if ( ! _cmsWriteUInt8Number ( io , ( cmsUInt8Number ) OutputChannels ) ) return FALSE ;\n if ( ! _cmsWriteUInt8Number ( io , ( cmsUInt8Number ) clutPoints ) ) return FALSE ;\n if ( ! _cmsWriteUInt8Number ( io , 0 ) ) return FALSE ;\n if ( MatMPE != NULL ) {\n if ( ! _cmsWrite15Fixed16Number ( io , MatMPE -> Double [ 0 ] ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , MatMPE -> Double [ 1 ] ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , MatMPE -> Double [ 2 ] ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , MatMPE -> Double [ 3 ] ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , MatMPE -> Double [ 4 ] ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , MatMPE -> Double [ 5 ] ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , MatMPE -> Double [ 6 ] ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , MatMPE -> Double [ 7 ] ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , MatMPE -> Double [ 8 ] ) ) return FALSE ;\n }\n else {\n if ( ! _cmsWrite15Fixed16Number ( io , 1 ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , 0 ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , 0 ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , 0 ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , 1 ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , 0 ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , 0 ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , 0 ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , 1 ) ) return FALSE ;\n }\n if ( PreMPE != NULL ) {\n if ( ! _cmsWriteUInt16Number ( io , ( cmsUInt16Number ) PreMPE -> TheCurves [ 0 ] -> nEntries ) ) return FALSE ;\n }\n else {\n if ( ! _cmsWriteUInt16Number ( io , 2 ) ) return FALSE ;\n }\n if ( PostMPE != NULL ) {\n if ( ! _cmsWriteUInt16Number ( io , ( cmsUInt16Number ) PostMPE -> TheCurves [ 0 ] -> nEntries ) ) return FALSE ;\n }\n else {\n if ( ! _cmsWriteUInt16Number ( io , 2 ) ) return FALSE ;\n }\n if ( PreMPE != NULL ) {\n if ( ! Write16bitTables ( self -> ContextID , io , PreMPE ) ) return FALSE ;\n }\n else {\n for ( i = 0 ;\n i < InputChannels ;\n i ++ ) {\n if ( ! _cmsWriteUInt16Number ( io , 0 ) ) return FALSE ;\n if ( ! _cmsWriteUInt16Number ( io , 0xffff ) ) return FALSE ;\n }\n }\n nTabSize = uipow ( OutputChannels , clutPoints , InputChannels ) ;\n if ( nTabSize == ( cmsUInt32Number ) - 1 ) return FALSE ;\n if ( nTabSize > 0 ) {\n if ( clut != NULL ) {\n if ( ! _cmsWriteUInt16Array ( io , nTabSize , clut -> Tab . T ) ) return FALSE ;\n }\n }\n if ( PostMPE != NULL ) {\n if ( ! Write16bitTables ( self -> ContextID , io , PostMPE ) ) return FALSE ;\n }\n else {\n for ( i = 0 ;\n i < OutputChannels ;\n i ++ ) {\n if ( ! _cmsWriteUInt16Number ( io , 0 ) ) return FALSE ;\n if ( ! _cmsWriteUInt16Number ( io , 0xffff ) ) return FALSE ;\n }\n }\n return TRUE ;\n cmsUNUSED_PARAMETER ( nItems ) ;\n }"}
{"idx": 9235, "target": 0, "func": "static void test_client_character_set ( ) {\n MY_CHARSET_INFO cs ;\n char * csname = ( char * ) \"utf8\" ;\n char * csdefault = ( char * ) mysql_character_set_name ( mysql ) ;\n int rc ;\n myheader ( \"test_client_character_set\" ) ;\n rc = mysql_set_character_set ( mysql , csname ) ;\n DIE_UNLESS ( rc == 0 ) ;\n mysql_get_character_set_info ( mysql , & cs ) ;\n DIE_UNLESS ( ! strcmp ( cs . csname , \"utf8\" ) ) ;\n DIE_UNLESS ( ! strcmp ( cs . name , \"utf8_general_ci\" ) ) ;\n rc = mysql_set_character_set ( mysql , csdefault ) ;\n myquery ( rc ) ;\n }"}
{"idx": 9236, "target": 0, "func": "WindowFuncLists * find_window_functions ( Node * clause , Index maxWinRef ) {\n WindowFuncLists * lists = palloc ( sizeof ( WindowFuncLists ) ) ;\n lists -> numWindowFuncs = 0 ;\n lists -> maxWinRef = maxWinRef ;\n lists -> windowFuncs = ( List * * ) palloc0 ( ( maxWinRef + 1 ) * sizeof ( List * ) ) ;\n ( void ) find_window_functions_walker ( clause , lists ) ;\n return lists ;\n }"}
{"idx": 9237, "target": 0, "func": "static int matroska_read_seek ( AVFormatContext * s , int stream_index , int64_t timestamp , int flags ) {\n MatroskaDemuxContext * matroska = s -> priv_data ;\n MatroskaTrack * tracks = NULL ;\n AVStream * st = s -> streams [ stream_index ] ;\n int i , index , index_sub , index_min ;\n if ( matroska -> cues_parsing_deferred ) {\n matroska_parse_cues ( matroska ) ;\n matroska -> cues_parsing_deferred = 0 ;\n }\n if ( ! st -> nb_index_entries ) return 0 ;\n timestamp = FFMAX ( timestamp , st -> index_entries [ 0 ] . timestamp ) ;\n if ( ( index = av_index_search_timestamp ( st , timestamp , flags ) ) < 0 ) {\n avio_seek ( s -> pb , st -> index_entries [ st -> nb_index_entries - 1 ] . pos , SEEK_SET ) ;\n matroska -> current_id = 0 ;\n while ( ( index = av_index_search_timestamp ( st , timestamp , flags ) ) < 0 ) {\n matroska_clear_queue ( matroska ) ;\n if ( matroska_parse_cluster ( matroska ) < 0 ) break ;\n }\n }\n matroska_clear_queue ( matroska ) ;\n if ( index < 0 ) return 0 ;\n index_min = index ;\n tracks = matroska -> tracks . elem ;\n for ( i = 0 ;\n i < matroska -> tracks . nb_elem ;\n i ++ ) {\n tracks [ i ] . audio . pkt_cnt = 0 ;\n tracks [ i ] . audio . sub_packet_cnt = 0 ;\n tracks [ i ] . audio . buf_timecode = AV_NOPTS_VALUE ;\n tracks [ i ] . end_timecode = 0 ;\n if ( tracks [ i ] . type == MATROSKA_TRACK_TYPE_SUBTITLE && tracks [ i ] . stream -> discard != AVDISCARD_ALL ) {\n index_sub = av_index_search_timestamp ( tracks [ i ] . stream , st -> index_entries [ index ] . timestamp , AVSEEK_FLAG_BACKWARD ) ;\n if ( index_sub >= 0 && st -> index_entries [ index_sub ] . pos < st -> index_entries [ index_min ] . pos && st -> index_entries [ index ] . timestamp - st -> index_entries [ index_sub ] . timestamp < 30000000000 / matroska -> time_scale ) index_min = index_sub ;\n }\n }\n avio_seek ( s -> pb , st -> index_entries [ index_min ] . pos , SEEK_SET ) ;\n matroska -> current_id = 0 ;\n matroska -> skip_to_keyframe = ! ( flags & AVSEEK_FLAG_ANY ) ;\n matroska -> skip_to_timecode = st -> index_entries [ index ] . timestamp ;\n matroska -> done = 0 ;\n ff_update_cur_dts ( s , st , st -> index_entries [ index ] . timestamp ) ;\n return 0 ;\n }"}
{"idx": 9238, "target": 1, "func": "extern int as_mysql_node_down ( mysql_conn_t * mysql_conn , struct node_record * node_ptr , time_t event_time , char * reason , uint32_t reason_uid ) {\n int rc = SLURM_SUCCESS ;\n char * query = NULL ;\n char * my_reason ;\n MYSQL_RES * result = NULL ;\n MYSQL_ROW row ;\n if ( check_connection ( mysql_conn ) != SLURM_SUCCESS ) return ESLURM_DB_CONNECTION ;\n if ( ! mysql_conn -> cluster_name ) {\n error ( \"%s:%d no cluster name\" , THIS_FILE , __LINE__ ) ;\n return SLURM_ERROR ;\n }\n if ( ! node_ptr ) {\n error ( \"No node_ptr given!\" ) ;\n return SLURM_ERROR ;\n }\n if ( ! node_ptr -> tres_str ) {\n error ( \"node ptr has no tres_list!\" ) ;\n return SLURM_ERROR ;\n }\n query = xstrdup_printf ( \"select state, reason from \\\"%s_%s\\\" where \" \"time_end=0 and node_name='%s';\n\" , mysql_conn -> cluster_name , event_table , node_ptr -> name ) ;\n result = mysql_db_query_ret ( mysql_conn , query , 0 ) ;\n xfree ( query ) ;\n if ( ! result ) return SLURM_ERROR ;\n if ( reason ) my_reason = slurm_add_slash_to_quotes ( reason ) ;\n else my_reason = slurm_add_slash_to_quotes ( node_ptr -> reason ) ;\n row = mysql_fetch_row ( result ) ;\n if ( row && ( node_ptr -> node_state == slurm_atoul ( row [ 0 ] ) ) && my_reason && row [ 1 ] && ! xstrcasecmp ( my_reason , row [ 1 ] ) ) {\n debug ( \"as_mysql_node_down: no change needed %u == %s \" \"and %s == %s\" , node_ptr -> node_state , row [ 0 ] , my_reason , row [ 1 ] ) ;\n xfree ( my_reason ) ;\n mysql_free_result ( result ) ;\n return SLURM_SUCCESS ;\n }\n mysql_free_result ( result ) ;\n debug2 ( \"inserting %s(%s) with tres of '%s'\" , node_ptr -> name , mysql_conn -> cluster_name , node_ptr -> tres_str ) ;\n query = xstrdup_printf ( \"update \\\"%s_%s\\\" set time_end=%ld where \" \"time_end=0 and node_name='%s';\n\" , mysql_conn -> cluster_name , event_table , event_time , node_ptr -> name ) ;\n xstrfmtcat ( query , \"insert into \\\"%s_%s\\\" \" \"(node_name, state, tres, time_start, \" \"reason, reason_uid) \" \"values ('%s', %u, '%s', %ld, '%s', %u) \" \"on duplicate key update time_end=0;\n\" , mysql_conn -> cluster_name , event_table , node_ptr -> name , node_ptr -> node_state , node_ptr -> tres_str , event_time , my_reason , reason_uid ) ;\n debug2 ( \"%d(%s:%d) query\\n%s\" , mysql_conn -> conn , THIS_FILE , __LINE__ , query ) ;\n rc = mysql_db_query ( mysql_conn , query ) ;\n xfree ( query ) ;\n xfree ( my_reason ) ;\n return rc ;\n }"}
{"idx": 9239, "target": 0, "func": "static int dissect_h245_RequestMultiplexEntryRelease ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_RequestMultiplexEntryRelease , RequestMultiplexEntryRelease_sequence ) ;\n return offset ;\n }"}
{"idx": 9240, "target": 1, "func": "TEST_F ( ProfileInfoCacheTest , AddProfiles ) {\n EXPECT_EQ ( 0u , GetCache ( ) -> GetNumberOfProfiles ( ) ) ;\n ui : : ResourceBundle & rb = ui : : ResourceBundle : : GetSharedInstance ( ) ;\n for ( uint32 i = 0 ;\n i < 4 ;\n ++ i ) {\n base : : FilePath profile_path = GetProfilePath ( base : : StringPrintf ( \"path_%ud\" , i ) ) ;\n base : : string16 profile_name = ASCIIToUTF16 ( base : : StringPrintf ( \"name_%ud\" , i ) ) ;\n const SkBitmap * icon = rb . GetImageNamed ( profiles : : GetDefaultAvatarIconResourceIDAtIndex ( i ) ) . ToSkBitmap ( ) ;\n std : : string supervised_user_id = i == 3 ? \"TEST_ID\" : \"\" ;\n GetCache ( ) -> AddProfileToCache ( profile_path , profile_name , base : : string16 ( ) , i , supervised_user_id ) ;\n GetCache ( ) -> SetBackgroundStatusOfProfileAtIndex ( i , true ) ;\n base : : string16 gaia_name = ASCIIToUTF16 ( base : : StringPrintf ( \"gaia_%ud\" , i ) ) ;\n GetCache ( ) -> SetGAIANameOfProfileAtIndex ( i , gaia_name ) ;\n EXPECT_EQ ( i + 1 , GetCache ( ) -> GetNumberOfProfiles ( ) ) ;\n EXPECT_EQ ( profile_name , GetCache ( ) -> GetNameOfProfileAtIndex ( i ) ) ;\n EXPECT_EQ ( profile_path , GetCache ( ) -> GetPathOfProfileAtIndex ( i ) ) ;\n const SkBitmap * actual_icon = GetCache ( ) -> GetAvatarIconOfProfileAtIndex ( i ) . ToSkBitmap ( ) ;\n EXPECT_EQ ( icon -> width ( ) , actual_icon -> width ( ) ) ;\n EXPECT_EQ ( icon -> height ( ) , actual_icon -> height ( ) ) ;\n EXPECT_EQ ( i == 3 , GetCache ( ) -> ProfileIsSupervisedAtIndex ( i ) ) ;\n EXPECT_EQ ( i == 3 , GetCache ( ) -> IsOmittedProfileAtIndex ( i ) ) ;\n EXPECT_EQ ( supervised_user_id , GetCache ( ) -> GetSupervisedUserIdOfProfileAtIndex ( i ) ) ;\n }\n ResetCache ( ) ;\n EXPECT_EQ ( 4u , GetCache ( ) -> GetNumberOfProfiles ( ) ) ;\n for ( uint32 i = 0 ;\n i < 4 ;\n ++ i ) {\n base : : FilePath profile_path = GetProfilePath ( base : : StringPrintf ( \"path_%ud\" , i ) ) ;\n EXPECT_EQ ( i , GetCache ( ) -> GetIndexOfProfileWithPath ( profile_path ) ) ;\n base : : string16 profile_name = ASCIIToUTF16 ( base : : StringPrintf ( \"name_%ud\" , i ) ) ;\n EXPECT_EQ ( profile_name , GetCache ( ) -> GetNameOfProfileAtIndex ( i ) ) ;\n EXPECT_EQ ( i , GetCache ( ) -> GetAvatarIconIndexOfProfileAtIndex ( i ) ) ;\n EXPECT_EQ ( true , GetCache ( ) -> GetBackgroundStatusOfProfileAtIndex ( i ) ) ;\n base : : string16 gaia_name = ASCIIToUTF16 ( base : : StringPrintf ( \"gaia_%ud\" , i ) ) ;\n EXPECT_EQ ( gaia_name , GetCache ( ) -> GetGAIANameOfProfileAtIndex ( i ) ) ;\n }\n }"}
{"idx": 9241, "target": 0, "func": "static GList * find_monitor ( NautilusDirectory * directory , NautilusFile * file , gconstpointer client ) {\n Monitor monitor ;\n monitor . client = client ;\n monitor . file = file ;\n return g_list_find_custom ( directory -> details -> monitor_list , & monitor , monitor_key_compare ) ;\n }"}
{"idx": 9242, "target": 0, "func": "int response_cacheable_indicated_by_cc ( HTTPHdr * response ) {\n uint32_t cc_mask ;\n cc_mask = ( MIME_COOKED_MASK_CC_NO_STORE | MIME_COOKED_MASK_CC_PRIVATE ) ;\n if ( response -> get_cooked_cc_mask ( ) & cc_mask ) {\n return - 1 ;\n }\n cc_mask = ( MIME_COOKED_MASK_CC_PUBLIC | MIME_COOKED_MASK_CC_MAX_AGE | MIME_COOKED_MASK_CC_S_MAXAGE | MIME_COOKED_MASK_CC_MUST_REVALIDATE | MIME_COOKED_MASK_CC_PROXY_REVALIDATE ) ;\n if ( response -> get_cooked_cc_mask ( ) & cc_mask ) {\n return 1 ;\n }\n return 0 ;\n }"}
{"idx": 9243, "target": 0, "func": "int change_logfile ( const char * fname , int leave_crumbs ) {\n FILE * new_file ;\n const char * log_fname ;\n char * abs_fname ;\n # if ! defined ( SYS_WINNT ) && ! defined ( SYS_VXWORKS ) && ! defined ( VMS ) char curdir [ 512 ] ;\n size_t cd_octets ;\n size_t octets ;\n # endif REQUIRE ( fname != NULL ) ;\n log_fname = fname ;\n if ( syslog_file != NULL && syslog_fname != NULL && == strcmp ( syslog_fname , log_fname ) ) return 0 ;\n if ( 0 == strcmp ( log_fname , \"stderr\" ) ) {\n new_file = stderr ;\n abs_fname = estrdup ( log_fname ) ;\n }\n else if ( 0 == strcmp ( log_fname , \"stdout\" ) ) {\n new_file = stdout ;\n abs_fname = estrdup ( log_fname ) ;\n }\n else {\n if ( syslog_fname != NULL && == strcmp ( log_fname , syslog_fname ) ) log_fname = syslog_abs_fname ;\n # if ! defined ( SYS_WINNT ) && ! defined ( SYS_VXWORKS ) && ! defined ( VMS ) if ( log_fname != syslog_abs_fname && DIR_SEP != log_fname [ 0 ] && != strcmp ( log_fname , \"stderr\" ) && != strcmp ( log_fname , \"stdout\" ) && NULL != getcwd ( curdir , sizeof ( curdir ) ) ) {\n cd_octets = strlen ( curdir ) ;\n if ( cd_octets > 1 && DIR_SEP == curdir [ cd_octets - 1 ] ) cd_octets -- ;\n octets = cd_octets ;\n octets += 1 ;\n octets += strlen ( log_fname ) ;\n octets += 1 ;\n abs_fname = emalloc ( octets ) ;\n snprintf ( abs_fname , octets , \"%.*s%c%s\" , ( int ) cd_octets , curdir , DIR_SEP , log_fname ) ;\n }\n else # endif abs_fname = estrdup ( log_fname ) ;\n TRACE ( 1 , ( \"attempting to open log %s\\n\" , abs_fname ) ) ;\n new_file = fopen ( abs_fname , \"a\" ) ;\n }\n if ( NULL == new_file ) {\n free ( abs_fname ) ;\n return - 1 ;\n }\n if ( leave_crumbs && ( syslogit || log_fname != syslog_abs_fname ) ) msyslog ( LOG_NOTICE , \"switching logging to file %s\" , abs_fname ) ;\n if ( syslog_file != NULL && syslog_file != stderr && syslog_file != stdout && fileno ( syslog_file ) != fileno ( new_file ) ) fclose ( syslog_file ) ;\n syslog_file = new_file ;\n if ( log_fname == syslog_abs_fname ) {\n free ( abs_fname ) ;\n }\n else {\n if ( syslog_abs_fname != NULL && syslog_abs_fname != syslog_fname ) free ( syslog_abs_fname ) ;\n if ( syslog_fname != NULL ) free ( syslog_fname ) ;\n syslog_fname = estrdup ( log_fname ) ;\n syslog_abs_fname = abs_fname ;\n }\n syslogit = FALSE ;\n return 0 ;\n }"}
{"idx": 9244, "target": 0, "func": "static int rv34_decode_inter_macroblock ( RV34DecContext * r , int8_t * intra_types ) {\n MpegEncContext * s = & r -> s ;\n GetBitContext * gb = & s -> gb ;\n uint8_t * dst = s -> dest [ 0 ] ;\n int16_t * ptr = s -> block [ 0 ] ;\n int mb_pos = s -> mb_x + s -> mb_y * s -> mb_stride ;\n int cbp , cbp2 ;\n int q_dc , q_ac , has_ac ;\n int i , j ;\n int dist ;\n memset ( r -> avail_cache , 0 , sizeof ( r -> avail_cache ) ) ;\n fill_rectangle ( r -> avail_cache + 6 , 2 , 2 , 4 , 1 , 4 ) ;\n dist = ( s -> mb_x - s -> resync_mb_x ) + ( s -> mb_y - s -> resync_mb_y ) * s -> mb_width ;\n if ( s -> mb_x && dist ) r -> avail_cache [ 5 ] = r -> avail_cache [ 9 ] = s -> current_picture_ptr -> mb_type [ mb_pos - 1 ] ;\n if ( dist >= s -> mb_width ) r -> avail_cache [ 2 ] = r -> avail_cache [ 3 ] = s -> current_picture_ptr -> mb_type [ mb_pos - s -> mb_stride ] ;\n if ( ( ( s -> mb_x + 1 ) < s -> mb_width ) && dist >= s -> mb_width - 1 ) r -> avail_cache [ 4 ] = s -> current_picture_ptr -> mb_type [ mb_pos - s -> mb_stride + 1 ] ;\n if ( s -> mb_x && dist > s -> mb_width ) r -> avail_cache [ 1 ] = s -> current_picture_ptr -> mb_type [ mb_pos - s -> mb_stride - 1 ] ;\n s -> qscale = r -> si . quant ;\n cbp = cbp2 = rv34_decode_inter_mb_header ( r , intra_types ) ;\n r -> cbp_luma [ mb_pos ] = cbp ;\n r -> cbp_chroma [ mb_pos ] = cbp >> 16 ;\n r -> deblock_coefs [ mb_pos ] = rv34_set_deblock_coef ( r ) | r -> cbp_luma [ mb_pos ] ;\n s -> current_picture_ptr -> qscale_table [ mb_pos ] = s -> qscale ;\n if ( cbp == - 1 ) return - 1 ;\n if ( IS_INTRA ( s -> current_picture_ptr -> mb_type [ mb_pos ] ) ) {\n if ( r -> is16 ) rv34_output_i16x16 ( r , intra_types , cbp ) ;\n else rv34_output_intra ( r , intra_types , cbp ) ;\n return 0 ;\n }\n if ( r -> is16 ) {\n LOCAL_ALIGNED_16 ( int16_t , block16 , [ 16 ] ) ;\n memset ( block16 , 0 , 16 * sizeof ( * block16 ) ) ;\n q_dc = rv34_qscale_tab [ r -> luma_dc_quant_p [ s -> qscale ] ] ;\n q_ac = rv34_qscale_tab [ s -> qscale ] ;\n if ( rv34_decode_block ( block16 , gb , r -> cur_vlcs , 3 , 0 , q_dc , q_dc , q_ac ) ) r -> rdsp . rv34_inv_transform ( block16 ) ;\n else r -> rdsp . rv34_inv_transform_dc ( block16 ) ;\n q_ac = rv34_qscale_tab [ s -> qscale ] ;\n for ( j = 0 ;\n j < 4 ;\n j ++ ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ , cbp >>= 1 ) {\n int dc = block16 [ i + j * 4 ] ;\n if ( cbp & 1 ) {\n has_ac = rv34_decode_block ( ptr , gb , r -> cur_vlcs , r -> luma_vlc , 0 , q_ac , q_ac , q_ac ) ;\n }\n else has_ac = 0 ;\n if ( has_ac ) {\n ptr [ 0 ] = dc ;\n r -> rdsp . rv34_idct_add ( dst + 4 * i , s -> linesize , ptr ) ;\n }\n else r -> rdsp . rv34_idct_dc_add ( dst + 4 * i , s -> linesize , dc ) ;\n }\n dst += 4 * s -> linesize ;\n }\n r -> cur_vlcs = choose_vlc_set ( r -> si . quant , r -> si . vlc_set , 1 ) ;\n }\n else {\n q_ac = rv34_qscale_tab [ s -> qscale ] ;\n for ( j = 0 ;\n j < 4 ;\n j ++ ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ , cbp >>= 1 ) {\n if ( ! ( cbp & 1 ) ) continue ;\n rv34_process_block ( r , dst + 4 * i , s -> linesize , r -> luma_vlc , 0 , q_ac , q_ac ) ;\n }\n dst += 4 * s -> linesize ;\n }\n }\n q_dc = rv34_qscale_tab [ rv34_chroma_quant [ 1 ] [ s -> qscale ] ] ;\n q_ac = rv34_qscale_tab [ rv34_chroma_quant [ 0 ] [ s -> qscale ] ] ;\n for ( j = 1 ;\n j < 3 ;\n j ++ ) {\n dst = s -> dest [ j ] ;\n for ( i = 0 ;\n i < 4 ;\n i ++ , cbp >>= 1 ) {\n uint8_t * pdst ;\n if ( ! ( cbp & 1 ) ) continue ;\n pdst = dst + ( i & 1 ) * 4 + ( i & 2 ) * 2 * s -> uvlinesize ;\n rv34_process_block ( r , pdst , s -> uvlinesize , r -> chroma_vlc , 1 , q_dc , q_ac ) ;\n }\n }\n return 0 ;\n }"}
{"idx": 9245, "target": 1, "func": "struct zip_cdir * _zip_cdir_new ( int nentry , struct zip_error * error ) {\n struct zip_cdir * cd ;\n if ( ( cd = ( struct zip_cdir * ) malloc ( sizeof ( * cd ) ) ) == NULL ) {\n _zip_error_set ( error , ZIP_ER_MEMORY , 0 ) ;\n return NULL ;\n }\n if ( ( cd -> entry = ( struct zip_dirent * ) malloc ( sizeof ( * ( cd -> entry ) ) * nentry ) ) == NULL ) {\n _zip_error_set ( error , ZIP_ER_MEMORY , 0 ) ;\n free ( cd ) ;\n return NULL ;\n }\n cd -> nentry = nentry ;\n cd -> size = cd -> offset = 0 ;\n cd -> comment = NULL ;\n cd -> comment_len = 0 ;\n return cd ;\n }"}
{"idx": 9246, "target": 0, "func": "void lxc_cgroup_process_info_free_and_remove ( struct cgroup_process_info * info ) {\n struct cgroup_process_info * next ;\n char * * pp ;\n if ( ! info ) return ;\n next = info -> next ;\n {\n struct cgroup_mount_point * mp = info -> designated_mount_point ;\n if ( ! mp ) mp = lxc_cgroup_find_mount_point ( info -> hierarchy , info -> cgroup_path , true ) ;\n if ( mp ) ( void ) remove_cgroup ( mp , info -> cgroup_path , true ) ;\n }\n for ( pp = info -> created_paths ;\n pp && * pp ;\n pp ++ ) ;\n for ( ( void ) ( pp && -- pp ) ;\n info -> created_paths && pp >= info -> created_paths ;\n -- pp ) {\n free ( * pp ) ;\n }\n free ( info -> created_paths ) ;\n lxc_cgroup_put_meta ( info -> meta_ref ) ;\n free ( info -> cgroup_path ) ;\n free ( info -> cgroup_path_sub ) ;\n free ( info ) ;\n lxc_cgroup_process_info_free_and_remove ( next ) ;\n }"}
{"idx": 9247, "target": 0, "func": "static void decode_cabac_residual_nondc_internal ( H264Context * h , int16_t * block , int cat , int n , const uint8_t * scantable , const uint32_t * qmul , int max_coeff ) {\n decode_cabac_residual_internal ( h , block , cat , n , scantable , qmul , max_coeff , 0 , 0 ) ;\n }"}
{"idx": 9248, "target": 0, "func": "void jpc_ft_invlift_colres ( jpc_fix_t * a , int numrows , int numcols , int stride , int parity ) {\n jpc_fix_t * lptr ;\n jpc_fix_t * hptr ;\n register jpc_fix_t * lptr2 ;\n register jpc_fix_t * hptr2 ;\n register int n ;\n register int i ;\n int llen ;\n llen = ( numrows + 1 - parity ) >> 1 ;\n if ( numrows > 1 ) {\n lptr = & a [ 0 ] ;\n hptr = & a [ llen * stride ] ;\n if ( ! parity ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n lptr2 [ 0 ] -= jpc_fix_asr ( hptr2 [ 0 ] + 1 , 1 ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n lptr += stride ;\n }\n n = llen - ( ! parity ) - ( parity != ( numrows & 1 ) ) ;\n while ( n -- > 0 ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n lptr2 [ 0 ] -= jpc_fix_asr ( hptr2 [ 0 ] + hptr2 [ stride ] + 2 , 2 ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n lptr += stride ;\n hptr += stride ;\n }\n if ( parity != ( numrows & 1 ) ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n lptr2 [ 0 ] -= jpc_fix_asr ( hptr2 [ 0 ] + 1 , 1 ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n }\n lptr = & a [ 0 ] ;\n hptr = & a [ llen * stride ] ;\n if ( parity ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n hptr2 [ 0 ] += lptr2 [ 0 ] ;\n ++ hptr2 ;\n ++ lptr2 ;\n }\n hptr += stride ;\n }\n n = numrows - llen - parity - ( parity == ( numrows & 1 ) ) ;\n while ( n -- > 0 ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n hptr2 [ 0 ] += jpc_fix_asr ( lptr2 [ 0 ] + lptr2 [ stride ] , 1 ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n hptr += stride ;\n lptr += stride ;\n }\n if ( parity == ( numrows & 1 ) ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n hptr2 [ 0 ] += lptr2 [ 0 ] ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n }\n }\n else {\n if ( parity ) {\n lptr2 = & a [ 0 ] ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n lptr2 [ 0 ] = jpc_fix_asr ( lptr2 [ 0 ] , 1 ) ;\n ++ lptr2 ;\n }\n }\n }\n }"}
{"idx": 9249, "target": 0, "func": "static int parent_proxy_handler ( TSCont contp , TSEvent event , void * edata ) {\n ParentTest * ptest = nullptr ;\n CHECK_SPURIOUS_EVENT ( contp , event , edata ) ;\n ptest = ( ParentTest * ) TSContDataGet ( contp ) ;\n ink_release_assert ( ptest ) ;\n TSHttpTxn txnp = ( TSHttpTxn ) edata ;\n switch ( event ) {\n case TS_EVENT_HTTP_READ_REQUEST_HDR : rprintf ( ptest -> regtest , \"setting synserver parent proxy to %s:%d\\n\" , \"127.0.0.1\" , SYNSERVER_LISTEN_PORT ) ;\n TSHttpTxnParentProxySet ( txnp , \"127.0.0.1\" , SYNSERVER_LISTEN_PORT ) ;\n TSHttpTxnHookAdd ( txnp , TS_HTTP_SEND_RESPONSE_HDR_HOOK , contp ) ;\n TSHttpTxnHookAdd ( txnp , TS_HTTP_TXN_CLOSE_HOOK , contp ) ;\n TSSkipRemappingSet ( txnp , 1 ) ;\n TSHttpTxnReenable ( txnp , TS_EVENT_HTTP_CONTINUE ) ;\n break ;\n case TS_EVENT_TIMEOUT : if ( * ( ptest -> pstatus ) == REGRESSION_TEST_INPROGRESS ) {\n if ( ptest -> configured ) {\n rprintf ( ptest -> regtest , \"waiting for response\\n\" ) ;\n TSContSchedule ( contp , 100 , TS_THREAD_POOL_DEFAULT ) ;\n break ;\n }\n if ( ! ptest -> parent_routing_enabled ( ) ) {\n rprintf ( ptest -> regtest , \"waiting for configuration\\n\" ) ;\n TSContSchedule ( contp , 100 , TS_THREAD_POOL_DEFAULT ) ;\n break ;\n }\n char * request = generate_request ( 11 ) ;\n synclient_txn_send_request ( ptest -> browser , request ) ;\n TSfree ( request ) ;\n ptest -> configured = true ;\n }\n else {\n RecSetRecordInt ( \"proxy.config.http.parent_proxy_routing_enable\" , ptest -> parent_proxy_routing_enable , REC_SOURCE_EXPLICIT ) ;\n TSContDataSet ( contp , nullptr ) ;\n delete ptest ;\n }\n break ;\n case TS_EVENT_HTTP_TXN_CLOSE : if ( * ( ptest -> pstatus ) == REGRESSION_TEST_INPROGRESS ) {\n * ( ptest -> pstatus ) = REGRESSION_TEST_FAILED ;\n SDK_RPRINT ( ptest -> regtest , \"TSHttpTxnParentProxySet\" , ptest -> testcase , TC_FAIL , \"Failed on txn close\" ) ;\n }\n TSHttpTxnReenable ( txnp , TS_EVENT_HTTP_CONTINUE ) ;\n break ;\n default : {\n int status = ptest -> handler ( contp , event , edata ) ;\n if ( status != REGRESSION_TEST_INPROGRESS ) {\n int * pstatus = ptest -> pstatus ;\n RecSetRecordInt ( \"proxy.config.http.parent_proxy_routing_enable\" , ptest -> parent_proxy_routing_enable , REC_SOURCE_EXPLICIT ) ;\n TSContDataSet ( contp , nullptr ) ;\n delete ptest ;\n * pstatus = status ;\n }\n }\n }\n return TS_EVENT_NONE ;\n }"}
{"idx": 9250, "target": 0, "func": "static void xhci_stop ( XHCIState * xhci ) {\n trace_usb_xhci_stop ( ) ;\n xhci -> usbsts |= USBSTS_HCH ;\n xhci -> crcr_low &= ~ CRCR_CRR ;\n }"}
{"idx": 9251, "target": 0, "func": "static uint16_t inv_bits ( uint16_t val , int nbits ) {\n uint16_t res ;\n if ( nbits <= 8 ) {\n res = ff_reverse [ val ] >> ( 8 - nbits ) ;\n }\n else res = ( ( ff_reverse [ val & 0xFF ] << 8 ) + ( ff_reverse [ val >> 8 ] ) ) >> ( 16 - nbits ) ;\n return res ;\n }"}
{"idx": 9252, "target": 0, "func": "static bool e1000e_intrmgr_delay_rx_causes ( E1000ECore * core , uint32_t * causes ) {\n uint32_t delayable_causes ;\n uint32_t rdtr = core -> mac [ RDTR ] ;\n uint32_t radv = core -> mac [ RADV ] ;\n uint32_t raid = core -> mac [ RAID ] ;\n if ( msix_enabled ( core -> owner ) ) {\n return false ;\n }\n delayable_causes = E1000_ICR_RXQ0 | E1000_ICR_RXQ1 | E1000_ICR_RXT0 ;\n if ( ! ( core -> mac [ RFCTL ] & E1000_RFCTL_ACK_DIS ) ) {\n delayable_causes |= E1000_ICR_ACK ;\n }\n core -> delayed_causes |= * causes & delayable_causes ;\n * causes &= ~ delayable_causes ;\n if ( ( rdtr == 0 ) || ( * causes != 0 ) ) {\n return false ;\n }\n if ( ( raid == 0 ) && ( core -> delayed_causes & E1000_ICR_ACK ) ) {\n return false ;\n }\n e1000e_intrmgr_rearm_timer ( & core -> rdtr ) ;\n if ( ! core -> radv . running && ( radv != 0 ) ) {\n e1000e_intrmgr_rearm_timer ( & core -> radv ) ;\n }\n if ( ! core -> raid . running && ( core -> delayed_causes & E1000_ICR_ACK ) ) {\n e1000e_intrmgr_rearm_timer ( & core -> raid ) ;\n }\n return true ;\n }"}
{"idx": 9253, "target": 1, "func": "void vp9_fdct4x4_c ( const int16_t * input , int16_t * output , int stride ) {\n int pass ;\n int16_t intermediate [ 4 * 4 ] ;\n const int16_t * in = input ;\n int16_t * out = intermediate ;\n for ( pass = 0 ;\n pass < 2 ;\n ++ pass ) {\n int input [ 4 ] ;\n int step [ 4 ] ;\n int temp1 , temp2 ;\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) {\n if ( 0 == pass ) {\n input [ 0 ] = in [ 0 * stride ] * 16 ;\n input [ 1 ] = in [ 1 * stride ] * 16 ;\n input [ 2 ] = in [ 2 * stride ] * 16 ;\n input [ 3 ] = in [ 3 * stride ] * 16 ;\n if ( i == 0 && input [ 0 ] ) {\n input [ 0 ] += 1 ;\n }\n }\n else {\n input [ 0 ] = in [ 0 * 4 ] ;\n input [ 1 ] = in [ 1 * 4 ] ;\n input [ 2 ] = in [ 2 * 4 ] ;\n input [ 3 ] = in [ 3 * 4 ] ;\n }\n step [ 0 ] = input [ 0 ] + input [ 3 ] ;\n step [ 1 ] = input [ 1 ] + input [ 2 ] ;\n step [ 2 ] = input [ 1 ] - input [ 2 ] ;\n step [ 3 ] = input [ 0 ] - input [ 3 ] ;\n temp1 = ( step [ 0 ] + step [ 1 ] ) * cospi_16_64 ;\n temp2 = ( step [ 0 ] - step [ 1 ] ) * cospi_16_64 ;\n out [ 0 ] = fdct_round_shift ( temp1 ) ;\n out [ 2 ] = fdct_round_shift ( temp2 ) ;\n temp1 = step [ 2 ] * cospi_24_64 + step [ 3 ] * cospi_8_64 ;\n temp2 = - step [ 2 ] * cospi_8_64 + step [ 3 ] * cospi_24_64 ;\n out [ 1 ] = fdct_round_shift ( temp1 ) ;\n out [ 3 ] = fdct_round_shift ( temp2 ) ;\n in ++ ;\n out += 4 ;\n }\n in = intermediate ;\n out = output ;\n }\n {\n int i , j ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) {\n for ( j = 0 ;\n j < 4 ;\n ++ j ) output [ j + i * 4 ] = ( output [ j + i * 4 ] + 1 ) >> 2 ;\n }\n }\n }"}
{"idx": 9254, "target": 0, "func": "inline static void _slurm_rpc_dump_spank ( slurm_msg_t * msg ) {\n int rc = SLURM_SUCCESS ;\n spank_env_request_msg_t * spank_req_msg = ( spank_env_request_msg_t * ) msg -> data ;\n spank_env_responce_msg_t * spank_resp_msg = NULL ;\n slurmctld_lock_t job_read_lock = {\n NO_LOCK , READ_LOCK , NO_LOCK , NO_LOCK , NO_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n slurm_msg_t response_msg ;\n DEF_TIMERS ;\n START_TIMER ;\n debug ( \"Processing RPC: REQUEST_SPANK_ENVIRONMENT from uid=%d JobId=%u\" , uid , spank_req_msg -> job_id ) ;\n if ( ! validate_slurm_user ( uid ) ) {\n rc = ESLURM_USER_ID_MISSING ;\n error ( \"Security violation, REQUEST_SPANK_ENVIRONMENT RPC \" \"from uid=%d\" , uid ) ;\n }\n if ( rc == SLURM_SUCCESS ) {\n struct job_record * job_ptr ;\n uint32_t i ;\n lock_slurmctld ( job_read_lock ) ;\n job_ptr = find_job_record ( spank_req_msg -> job_id ) ;\n if ( job_ptr ) {\n spank_resp_msg = xmalloc ( sizeof ( spank_env_responce_msg_t ) ) ;\n spank_resp_msg -> spank_job_env_size = job_ptr -> spank_job_env_size ;\n spank_resp_msg -> spank_job_env = xmalloc ( spank_resp_msg -> spank_job_env_size * sizeof ( char * ) ) ;\n for ( i = 0 ;\n i < spank_resp_msg -> spank_job_env_size ;\n i ++ ) spank_resp_msg -> spank_job_env [ i ] = xstrdup ( job_ptr -> spank_job_env [ i ] ) ;\n }\n else {\n rc = ESLURM_INVALID_JOB_ID ;\n }\n unlock_slurmctld ( job_read_lock ) ;\n }\n END_TIMER2 ( \"_slurm_rpc_dump_spank\" ) ;\n if ( rc == SLURM_SUCCESS ) {\n slurm_msg_t_init ( & response_msg ) ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . address = msg -> address ;\n response_msg . conn = msg -> conn ;\n response_msg . msg_type = RESPONCE_SPANK_ENVIRONMENT ;\n response_msg . data = spank_resp_msg ;\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n slurm_free_spank_env_responce_msg ( spank_resp_msg ) ;\n }\n else {\n slurm_send_rc_msg ( msg , rc ) ;\n }\n }"}
{"idx": 9255, "target": 0, "func": "static int dissect_h225_NatureOfAddress ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_NatureOfAddress , NatureOfAddress_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 9256, "target": 0, "func": "static INTERP_FILTER get_interp_filter ( const int64_t threshes [ SWITCHABLE_FILTER_CONTEXTS ] , int is_alt_ref ) {\n if ( ! is_alt_ref && threshes [ EIGHTTAP_SMOOTH ] > threshes [ EIGHTTAP ] && threshes [ EIGHTTAP_SMOOTH ] > threshes [ EIGHTTAP_SHARP ] && threshes [ EIGHTTAP_SMOOTH ] > threshes [ SWITCHABLE - 1 ] ) {\n return EIGHTTAP_SMOOTH ;\n }\n else if ( threshes [ EIGHTTAP_SHARP ] > threshes [ EIGHTTAP ] && threshes [ EIGHTTAP_SHARP ] > threshes [ SWITCHABLE - 1 ] ) {\n return EIGHTTAP_SHARP ;\n }\n else if ( threshes [ EIGHTTAP ] > threshes [ SWITCHABLE - 1 ] ) {\n return EIGHTTAP ;\n }\n else {\n return SWITCHABLE ;\n }\n }"}
{"idx": 9257, "target": 0, "func": "TSMBuffer TSFetchRespHdrMBufGet ( TSFetchSM fetch_sm ) {\n sdk_assert ( sdk_sanity_check_fetch_sm ( fetch_sm ) == TS_SUCCESS ) ;\n return ( ( FetchSM * ) fetch_sm ) -> resp_hdr_bufp ( ) ;\n }"}
{"idx": 9258, "target": 0, "func": "xmlDeregisterNodeFunc xmlThrDefDeregisterNodeDefault ( xmlDeregisterNodeFunc func ) {\n xmlDeregisterNodeFunc old ;\n xmlMutexLock ( xmlThrDefMutex ) ;\n old = xmlDeregisterNodeDefaultValueThrDef ;\n __xmlRegisterCallbacks = 1 ;\n xmlDeregisterNodeDefaultValueThrDef = func ;\n xmlMutexUnlock ( xmlThrDefMutex ) ;\n return ( old ) ;\n }"}
{"idx": 9259, "target": 0, "func": "void VoIPcalls_init_tap ( void ) {\n GString * error_string ;\n if ( have_voip_tap_listener == FALSE ) {\n error_string = register_tap_listener ( \"voip\" , & ( the_tapinfo_struct . voip_dummy ) , NULL , 0 , voip_calls_dlg_reset , VoIPcalls_packet , voip_calls_dlg_draw ) ;\n if ( error_string != NULL ) {\n simple_dialog ( ESD_TYPE_ERROR , ESD_BTN_OK , \"%s\" , error_string -> str ) ;\n g_string_free ( error_string , TRUE ) ;\n exit ( 1 ) ;\n }\n have_voip_tap_listener = TRUE ;\n }\n }"}
{"idx": 9260, "target": 0, "func": "void TSContDestroy ( TSCont contp ) {\n sdk_assert ( sdk_sanity_check_iocore_structure ( contp ) == TS_SUCCESS ) ;\n INKContInternal * i = ( INKContInternal * ) contp ;\n i -> destroy ( ) ;\n }"}
{"idx": 9261, "target": 0, "func": "static void xps_draw_one_linear_gradient ( xps_document * doc , const fz_matrix * ctm , struct stop * stops , int count , int extend , float x0 , float y0 , float x1 , float y1 ) {\n fz_shade * shade ;\n shade = fz_malloc_struct ( doc -> ctx , fz_shade ) ;\n FZ_INIT_STORABLE ( shade , 1 , fz_free_shade_imp ) ;\n shade -> colorspace = fz_device_rgb ( doc -> ctx ) ;\n shade -> bbox = fz_infinite_rect ;\n shade -> matrix = fz_identity ;\n shade -> use_background = 0 ;\n shade -> use_function = 1 ;\n shade -> type = FZ_LINEAR ;\n shade -> u . l_or_r . extend [ 0 ] = extend ;\n shade -> u . l_or_r . extend [ 1 ] = extend ;\n xps_sample_gradient_stops ( shade , stops , count ) ;\n shade -> u . l_or_r . coords [ 0 ] [ 0 ] = x0 ;\n shade -> u . l_or_r . coords [ 0 ] [ 1 ] = y0 ;\n shade -> u . l_or_r . coords [ 0 ] [ 2 ] = 0 ;\n shade -> u . l_or_r . coords [ 1 ] [ 0 ] = x1 ;\n shade -> u . l_or_r . coords [ 1 ] [ 1 ] = y1 ;\n shade -> u . l_or_r . coords [ 1 ] [ 2 ] = 0 ;\n fz_fill_shade ( doc -> dev , shade , ctm , doc -> opacity [ doc -> opacity_top ] ) ;\n fz_drop_shade ( doc -> ctx , shade ) ;\n }"}
{"idx": 9262, "target": 0, "func": "static int check_slice_end ( RV34DecContext * r , MpegEncContext * s ) {\n int bits ;\n if ( s -> mb_y >= s -> mb_height ) return 1 ;\n if ( ! s -> mb_num_left ) return 1 ;\n if ( r -> s . mb_skip_run > 1 ) return 0 ;\n bits = get_bits_left ( & s -> gb ) ;\n if ( bits < 0 || ( bits < 8 && ! show_bits ( & s -> gb , bits ) ) ) return 1 ;\n return 0 ;\n }"}
{"idx": 9263, "target": 1, "func": "static inline void xan_wc3_output_pixel_run ( XanContext * s , const unsigned char * pixel_buffer , int x , int y , int pixel_count ) {\n int stride ;\n int line_inc ;\n int index ;\n int current_x ;\n int width = s -> avctx -> width ;\n unsigned char * palette_plane ;\n palette_plane = s -> current_frame . data [ 0 ] ;\n stride = s -> current_frame . linesize [ 0 ] ;\n line_inc = stride - width ;\n index = y * stride + x ;\n current_x = x ;\n while ( pixel_count && index < s -> frame_size ) {\n int count = FFMIN ( pixel_count , width - current_x ) ;\n memcpy ( palette_plane + index , pixel_buffer , count ) ;\n pixel_count -= count ;\n index += count ;\n pixel_buffer += count ;\n current_x += count ;\n if ( current_x >= width ) {\n index += line_inc ;\n current_x = 0 ;\n }\n }\n }"}
{"idx": 9264, "target": 0, "func": "static bool has_parallel_hazard_walker ( Node * node , has_parallel_hazard_arg * context ) {\n if ( node == NULL ) return false ;\n if ( check_functions_in_node ( node , has_parallel_hazard_checker , context ) ) return true ;\n if ( IsA ( node , CoerceToDomain ) ) {\n if ( ! context -> allow_restricted ) return true ;\n }\n else if ( IsA ( node , RestrictInfo ) ) {\n RestrictInfo * rinfo = ( RestrictInfo * ) node ;\n return has_parallel_hazard_walker ( ( Node * ) rinfo -> clause , context ) ;\n }\n else if ( IsA ( node , SubLink ) || IsA ( node , SubPlan ) || IsA ( node , AlternativeSubPlan ) ) {\n if ( ! context -> allow_restricted ) return true ;\n }\n else if ( IsA ( node , Param ) ) {\n if ( ! context -> allow_restricted ) return true ;\n }\n else if ( IsA ( node , Query ) ) {\n Query * query = ( Query * ) node ;\n if ( query -> rowMarks != NULL ) return true ;\n return query_tree_walker ( query , has_parallel_hazard_walker , context , 0 ) ;\n }\n return expression_tree_walker ( node , has_parallel_hazard_walker , context ) ;\n }"}
{"idx": 9265, "target": 0, "func": "static void U_CALLCONV _UTF32Reset ( UConverter * cnv , UConverterResetChoice choice ) {\n if ( choice <= UCNV_RESET_TO_UNICODE ) {\n cnv -> mode = 0 ;\n }\n if ( choice != UCNV_RESET_TO_UNICODE ) {\n cnv -> fromUnicodeStatus = UCNV_NEED_TO_WRITE_BOM ;\n }\n }"}
{"idx": 9266, "target": 0, "func": "static VALUE ossl_asn1_ ## klass ( int argc , VALUE * argv , VALUE self ) \\ {\n return rb_funcall3 ( cASN1 ## klass , rb_intern ( \"new\" ) , argc , argv ) ;\n }\n OSSL_ASN1_IMPL_FACTORY_METHOD ( Boolean ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Integer ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Enumerated ) OSSL_ASN1_IMPL_FACTORY_METHOD ( BitString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( OctetString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( UTF8String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( NumericString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( PrintableString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( T61String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( VideotexString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( IA5String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( GraphicString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( ISO64String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( GeneralString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( UniversalString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( BMPString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Null ) OSSL_ASN1_IMPL_FACTORY_METHOD ( ObjectId ) OSSL_ASN1_IMPL_FACTORY_METHOD ( UTCTime ) OSSL_ASN1_IMPL_FACTORY_METHOD ( GeneralizedTime ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Sequence )"}
{"idx": 9267, "target": 0, "func": "rfbBool rfbSendCopyRegion ( rfbClientPtr cl , sraRegionPtr reg , int dx , int dy ) {\n int x , y , w , h ;\n rfbFramebufferUpdateRectHeader rect ;\n rfbCopyRect cr ;\n sraRectangleIterator * i ;\n sraRect rect1 ;\n i = sraRgnGetReverseIterator ( reg , dx > 0 , dy > 0 ) ;\n dx = ScaleX ( cl -> screen , cl -> scaledScreen , dx ) ;\n dy = ScaleX ( cl -> screen , cl -> scaledScreen , dy ) ;\n while ( sraRgnIteratorNext ( i , & rect1 ) ) {\n x = rect1 . x1 ;\n y = rect1 . y1 ;\n w = rect1 . x2 - x ;\n h = rect1 . y2 - y ;\n rfbScaledCorrection ( cl -> screen , cl -> scaledScreen , & x , & y , & w , & h , \"copyrect\" ) ;\n rect . r . x = Swap16IfLE ( x ) ;\n rect . r . y = Swap16IfLE ( y ) ;\n rect . r . w = Swap16IfLE ( w ) ;\n rect . r . h = Swap16IfLE ( h ) ;\n rect . encoding = Swap32IfLE ( rfbEncodingCopyRect ) ;\n memcpy ( & cl -> updateBuf [ cl -> ublen ] , ( char * ) & rect , sz_rfbFramebufferUpdateRectHeader ) ;\n cl -> ublen += sz_rfbFramebufferUpdateRectHeader ;\n cr . srcX = Swap16IfLE ( x - dx ) ;\n cr . srcY = Swap16IfLE ( y - dy ) ;\n memcpy ( & cl -> updateBuf [ cl -> ublen ] , ( char * ) & cr , sz_rfbCopyRect ) ;\n cl -> ublen += sz_rfbCopyRect ;\n rfbStatRecordEncodingSent ( cl , rfbEncodingCopyRect , sz_rfbFramebufferUpdateRectHeader + sz_rfbCopyRect , w * h * ( cl -> scaledScreen -> bitsPerPixel / 8 ) ) ;\n }\n sraRgnReleaseIterator ( i ) ;\n return TRUE ;\n }"}
{"idx": 9268, "target": 0, "func": "struct st_replace_regex * init_replace_regex ( char * expr ) {\n struct st_replace_regex * res ;\n char * buf , * expr_end ;\n char * p ;\n char * buf_p ;\n uint expr_len = strlen ( expr ) ;\n char last_c = 0 ;\n struct st_regex reg ;\n res = ( struct st_replace_regex * ) my_malloc ( sizeof ( * res ) + expr_len , MYF ( MY_FAE + MY_WME ) ) ;\n my_init_dynamic_array ( & res -> regex_arr , sizeof ( struct st_regex ) , 128 , 128 ) ;\n buf = ( char * ) res + sizeof ( * res ) ;\n expr_end = expr + expr_len ;\n p = expr ;\n buf_p = buf ;\n while ( p < expr_end ) {\n bzero ( & reg , sizeof ( reg ) ) ;\n while ( p < expr_end ) {\n if ( * p == '/' ) break ;\n p ++ ;\n }\n if ( p == expr_end || ++ p == expr_end ) {\n if ( res -> regex_arr . elements ) break ;\n else goto err ;\n }\n reg . pattern = buf_p ;\n PARSE_REGEX_ARG if ( p == expr_end || ++ p == expr_end ) goto err ;\n reg . replace = buf_p ;\n PARSE_REGEX_ARG if ( p == expr_end ) goto err ;\n p ++ ;\n if ( p < expr_end && * p == 'i' ) reg . icase = 1 ;\n if ( insert_dynamic ( & res -> regex_arr , ( uchar * ) & reg ) ) die ( \"Out of memory\" ) ;\n }\n res -> odd_buf_len = res -> even_buf_len = 8192 ;\n res -> even_buf = ( char * ) my_malloc ( res -> even_buf_len , MYF ( MY_WME + MY_FAE ) ) ;\n res -> odd_buf = ( char * ) my_malloc ( res -> odd_buf_len , MYF ( MY_WME + MY_FAE ) ) ;\n res -> buf = res -> even_buf ;\n return res ;\n err : my_free ( res ) ;\n die ( \"Error parsing replace_regex \\\"%s\\\"\" , expr ) ;\n return 0 ;\n }"}
{"idx": 9269, "target": 0, "func": "static int _write_element_to_buffer ( PyObject * self , buffer_t buffer , int type_byte , PyObject * value , unsigned char check_keys , unsigned char uuid_subtype , unsigned char first_attempt ) {\n struct module_state * state = GETSTATE ( self ) ;\n if ( PyBool_Check ( value ) ) {\n # if PY_MAJOR_VERSION >= 3 const long bool = PyLong_AsLong ( value ) ;\n # else const long bool = PyInt_AsLong ( value ) ;\n # endif const char c = bool ? 0x01 : 0x00 ;\n * ( buffer_get_buffer ( buffer ) + type_byte ) = 0x08 ;\n return buffer_write_bytes ( buffer , & c , 1 ) ;\n }\n # if PY_MAJOR_VERSION >= 3 else if ( PyLong_Check ( value ) ) {\n const long long_value = PyLong_AsLong ( value ) ;\n # else else if ( PyInt_Check ( value ) ) {\n const long long_value = PyInt_AsLong ( value ) ;\n # endif const int int_value = ( int ) long_value ;\n if ( PyErr_Occurred ( ) || long_value != int_value ) {\n long long long_long_value ;\n PyErr_Clear ( ) ;\n long_long_value = PyLong_AsLongLong ( value ) ;\n if ( PyErr_Occurred ( ) ) {\n PyErr_SetString ( PyExc_OverflowError , \"MongoDB can only handle up to 8-byte ints\" ) ;\n return 0 ;\n }\n * ( buffer_get_buffer ( buffer ) + type_byte ) = 0x12 ;\n return buffer_write_bytes ( buffer , ( const char * ) & long_long_value , 8 ) ;\n }\n * ( buffer_get_buffer ( buffer ) + type_byte ) = 0x10 ;\n return buffer_write_bytes ( buffer , ( const char * ) & int_value , 4 ) ;\n # if PY_MAJOR_VERSION < 3 }\n else if ( PyLong_Check ( value ) ) {\n const long long long_long_value = PyLong_AsLongLong ( value ) ;\n if ( PyErr_Occurred ( ) ) {\n PyErr_SetString ( PyExc_OverflowError , \"MongoDB can only handle up to 8-byte ints\" ) ;\n return 0 ;\n }\n * ( buffer_get_buffer ( buffer ) + type_byte ) = 0x12 ;\n return buffer_write_bytes ( buffer , ( const char * ) & long_long_value , 8 ) ;\n # endif }\n else if ( PyFloat_Check ( value ) ) {\n const double d = PyFloat_AsDouble ( value ) ;\n * ( buffer_get_buffer ( buffer ) + type_byte ) = 0x01 ;\n return buffer_write_bytes ( buffer , ( const char * ) & d , 8 ) ;\n }\n else if ( value == Py_None ) {\n * ( buffer_get_buffer ( buffer ) + type_byte ) = 0x0A ;\n return 1 ;\n }\n else if ( PyDict_Check ( value ) ) {\n * ( buffer_get_buffer ( buffer ) + type_byte ) = 0x03 ;\n return write_dict ( self , buffer , value , check_keys , uuid_subtype , 0 ) ;\n }\n else if ( PyList_Check ( value ) || PyTuple_Check ( value ) ) {\n int start_position , length_location , items , length , i ;\n char zero = 0 ;\n * ( buffer_get_buffer ( buffer ) + type_byte ) = 0x04 ;\n start_position = buffer_get_position ( buffer ) ;\n length_location = buffer_save_space ( buffer , 4 ) ;\n if ( length_location == - 1 ) {\n PyErr_NoMemory ( ) ;\n return 0 ;\n }\n items = PySequence_Size ( value ) ;\n for ( i = 0 ;\n i < items ;\n i ++ ) {\n int list_type_byte = buffer_save_space ( buffer , 1 ) ;\n char * name ;\n PyObject * item_value ;\n if ( list_type_byte == - 1 ) {\n PyErr_NoMemory ( ) ;\n return 0 ;\n }\n if ( INT2STRING ( & name , i ) < 0 || ! name ) {\n PyErr_NoMemory ( ) ;\n return 0 ;\n }\n if ( ! buffer_write_bytes ( buffer , name , strlen ( name ) + 1 ) ) {\n free ( name ) ;\n return 0 ;\n }\n free ( name ) ;\n item_value = PySequence_GetItem ( value , i ) ;\n if ( ! write_element_to_buffer ( self , buffer , list_type_byte , item_value , check_keys , uuid_subtype , 1 ) ) {\n Py_DECREF ( item_value ) ;\n return 0 ;\n }\n Py_DECREF ( item_value ) ;\n }\n if ( ! buffer_write_bytes ( buffer , & zero , 1 ) ) {\n return 0 ;\n }\n length = buffer_get_position ( buffer ) - start_position ;\n memcpy ( buffer_get_buffer ( buffer ) + length_location , & length , 4 ) ;\n return 1 ;\n }\n else if ( PyObject_IsInstance ( value , state -> Binary ) ) {\n PyObject * subtype_object ;\n * ( buffer_get_buffer ( buffer ) + type_byte ) = 0x05 ;\n subtype_object = PyObject_GetAttrString ( value , \"subtype\" ) ;\n if ( ! subtype_object ) {\n return 0 ;\n }\n {\n # if PY_MAJOR_VERSION >= 3 const long long_subtype = PyLong_AsLong ( subtype_object ) ;\n const char subtype = ( const char ) long_subtype ;\n const int length = PyBytes_Size ( value ) ;\n # else const long long_subtype = PyInt_AsLong ( subtype_object ) ;\n const char subtype = ( const char ) long_subtype ;\n const int length = PyString_Size ( value ) ;\n # endif Py_DECREF ( subtype_object ) ;\n if ( subtype == 2 ) {\n const int other_length = length + 4 ;\n if ( ! buffer_write_bytes ( buffer , ( const char * ) & other_length , 4 ) ) {\n return 0 ;\n }\n if ( ! buffer_write_bytes ( buffer , & subtype , 1 ) ) {\n return 0 ;\n }\n }\n if ( ! buffer_write_bytes ( buffer , ( const char * ) & length , 4 ) ) {\n return 0 ;\n }\n if ( subtype != 2 ) {\n if ( ! buffer_write_bytes ( buffer , & subtype , 1 ) ) {\n return 0 ;\n }\n }\n {\n # if PY_MAJOR_VERSION >= 3 const char * string = PyBytes_AsString ( value ) ;\n # else const char * string = PyString_AsString ( value ) ;\n # endif if ( ! string ) {\n return 0 ;\n }\n if ( ! buffer_write_bytes ( buffer , string , length ) ) {\n return 0 ;\n }\n }\n }\n return 1 ;\n }\n else if ( state -> UUID && PyObject_IsInstance ( value , state -> UUID ) ) {\n PyObject * bytes ;\n const char * binarr ;\n int length = 16 ;\n char subtype ;\n if ( uuid_subtype == JAVA_LEGACY || uuid_subtype == CSHARP_LEGACY ) {\n subtype = 3 ;\n }\n else {\n subtype = ( char ) uuid_subtype ;\n }\n * ( buffer_get_buffer ( buffer ) + type_byte ) = 0x05 ;\n if ( ! buffer_write_bytes ( buffer , ( const char * ) & length , 4 ) ) {\n return 0 ;\n }\n if ( ! buffer_write_bytes ( buffer , & subtype , 1 ) ) {\n return 0 ;\n }\n if ( uuid_subtype == CSHARP_LEGACY ) {\n bytes = PyObject_GetAttrString ( value , \"bytes_le\" ) ;\n }\n else {\n bytes = PyObject_GetAttrString ( value , \"bytes\" ) ;\n }\n if ( ! bytes ) {\n return 0 ;\n }\n # if PY_MAJOR_VERSION >= 3 if ( PyByteArray_Check ( bytes ) ) {\n binarr = PyByteArray_AsString ( bytes ) ;\n }\n else {\n binarr = PyBytes_AsString ( bytes ) ;\n }\n # else binarr = PyString_AsString ( bytes ) ;\n # endif if ( uuid_subtype == JAVA_LEGACY ) {\n char as_legacy_java [ 16 ] ;\n _fix_java ( binarr , as_legacy_java ) ;\n if ( ! buffer_write_bytes ( buffer , as_legacy_java , length ) ) {\n Py_DECREF ( bytes ) ;\n return 0 ;\n }\n }\n else {\n if ( ! buffer_write_bytes ( buffer , binarr , length ) ) {\n Py_DECREF ( bytes ) ;\n return 0 ;\n }\n }\n Py_DECREF ( bytes ) ;\n return 1 ;\n }\n else if ( PyObject_IsInstance ( value , state -> Code ) ) {\n int start_position , length_location , length ;\n PyObject * scope = PyObject_GetAttrString ( value , \"scope\" ) ;\n if ( ! scope ) {\n return 0 ;\n }\n if ( ! PyDict_Size ( scope ) ) {\n Py_DECREF ( scope ) ;\n * ( buffer_get_buffer ( buffer ) + type_byte ) = 0x0D ;\n return write_string ( buffer , value ) ;\n }\n * ( buffer_get_buffer ( buffer ) + type_byte ) = 0x0F ;\n start_position = buffer_get_position ( buffer ) ;\n length_location = buffer_save_space ( buffer , 4 ) ;\n if ( length_location == - 1 ) {\n PyErr_NoMemory ( ) ;\n Py_DECREF ( scope ) ;\n return 0 ;\n }\n if ( ! write_string ( buffer , value ) ) {\n Py_DECREF ( scope ) ;\n return 0 ;\n }\n if ( ! write_dict ( self , buffer , scope , 0 , uuid_subtype , 0 ) ) {\n Py_DECREF ( scope ) ;\n return 0 ;\n }\n Py_DECREF ( scope ) ;\n length = buffer_get_position ( buffer ) - start_position ;\n memcpy ( buffer_get_buffer ( buffer ) + length_location , & length , 4 ) ;\n return 1 ;\n # if PY_MAJOR_VERSION >= 3 }\n else if ( PyBytes_Check ( value ) ) {\n Py_ssize_t length = PyBytes_Size ( value ) ;\n const char subtype = 0 ;\n * ( buffer_get_buffer ( buffer ) + type_byte ) = 0x05 ;\n if ( ! buffer_write_bytes ( buffer , ( const char * ) & length , 4 ) ) {\n return 0 ;\n }\n if ( ! buffer_write_bytes ( buffer , & subtype , 1 ) ) {\n return 0 ;\n }\n if ( ! buffer_write_bytes ( buffer , PyBytes_AsString ( value ) , length ) ) {\n return 0 ;\n }\n return 1 ;\n # else }\n else if ( PyString_Check ( value ) ) {\n int result ;\n result_t status ;\n * ( buffer_get_buffer ( buffer ) + type_byte ) = 0x02 ;\n status = check_string ( ( const unsigned char * ) PyString_AsString ( value ) , PyString_Size ( value ) , 1 , 0 ) ;\n if ( status == NOT_UTF_8 ) {\n PyObject * InvalidStringData = _error ( \"InvalidStringData\" ) ;\n PyErr_SetString ( InvalidStringData , \"strings in documents must be valid UTF-8\" ) ;\n Py_DECREF ( InvalidStringData ) ;\n return 0 ;\n }\n result = write_string ( buffer , value ) ;\n return result ;\n # endif }\n else if ( PyUnicode_Check ( value ) ) {\n PyObject * encoded ;\n int result ;\n * ( buffer_get_buffer ( buffer ) + type_byte ) = 0x02 ;\n encoded = PyUnicode_AsUTF8String ( value ) ;\n if ( ! encoded ) {\n return 0 ;\n }\n result = write_string ( buffer , encoded ) ;\n Py_DECREF ( encoded ) ;\n return result ;\n }\n else if ( PyDateTime_Check ( value ) ) {\n long long millis ;\n PyObject * utcoffset = PyObject_CallMethod ( value , \"utcoffset\" , NULL ) ;\n if ( utcoffset != Py_None ) {\n PyObject * result = PyNumber_Subtract ( value , utcoffset ) ;\n Py_DECREF ( utcoffset ) ;\n if ( ! result ) {\n return 0 ;\n }\n millis = millis_from_datetime ( result ) ;\n Py_DECREF ( result ) ;\n }\n else {\n millis = millis_from_datetime ( value ) ;\n }\n * ( buffer_get_buffer ( buffer ) + type_byte ) = 0x09 ;\n return buffer_write_bytes ( buffer , ( const char * ) & millis , 8 ) ;\n }\n else if ( PyObject_IsInstance ( value , state -> ObjectId ) ) {\n PyObject * pystring = PyObject_GetAttrString ( value , \"_ObjectId__id\" ) ;\n if ( ! pystring ) {\n return 0 ;\n }\n {\n # if PY_MAJOR_VERSION >= 3 const char * as_string = PyBytes_AsString ( pystring ) ;\n # else const char * as_string = PyString_AsString ( pystring ) ;\n # endif if ( ! as_string ) {\n Py_DECREF ( pystring ) ;\n return 0 ;\n }\n if ( ! buffer_write_bytes ( buffer , as_string , 12 ) ) {\n Py_DECREF ( pystring ) ;\n return 0 ;\n }\n Py_DECREF ( pystring ) ;\n * ( buffer_get_buffer ( buffer ) + type_byte ) = 0x07 ;\n }\n return 1 ;\n }\n else if ( PyObject_IsInstance ( value , state -> DBRef ) ) {\n PyObject * as_doc = PyObject_CallMethod ( value , \"as_doc\" , NULL ) ;\n if ( ! as_doc ) {\n return 0 ;\n }\n if ( ! write_dict ( self , buffer , as_doc , 0 , uuid_subtype , 0 ) ) {\n Py_DECREF ( as_doc ) ;\n return 0 ;\n }\n Py_DECREF ( as_doc ) ;\n * ( buffer_get_buffer ( buffer ) + type_byte ) = 0x03 ;\n return 1 ;\n }\n else if ( PyObject_IsInstance ( value , state -> Timestamp ) ) {\n PyObject * obj ;\n long i ;\n obj = PyObject_GetAttrString ( value , \"inc\" ) ;\n if ( ! obj ) {\n return 0 ;\n }\n # if PY_MAJOR_VERSION >= 3 i = PyLong_AsLong ( obj ) ;\n # else i = PyInt_AsLong ( obj ) ;\n # endif Py_DECREF ( obj ) ;\n if ( ! buffer_write_bytes ( buffer , ( const char * ) & i , 4 ) ) {\n return 0 ;\n }\n obj = PyObject_GetAttrString ( value , \"time\" ) ;\n if ( ! obj ) {\n return 0 ;\n }\n # if PY_MAJOR_VERSION >= 3 i = PyLong_AsLong ( obj ) ;\n # else i = PyInt_AsLong ( obj ) ;\n # endif Py_DECREF ( obj ) ;\n if ( ! buffer_write_bytes ( buffer , ( const char * ) & i , 4 ) ) {\n return 0 ;\n }\n * ( buffer_get_buffer ( buffer ) + type_byte ) = 0x11 ;\n return 1 ;\n }\n else if ( PyObject_TypeCheck ( value , state -> REType ) ) {\n PyObject * py_flags = PyObject_GetAttrString ( value , \"flags\" ) ;\n PyObject * py_pattern ;\n PyObject * encoded_pattern ;\n long int_flags ;\n char flags [ FLAGS_SIZE ] ;\n char check_utf8 = 0 ;\n int pattern_length , flags_length ;\n result_t status ;\n if ( ! py_flags ) {\n return 0 ;\n }\n # if PY_MAJOR_VERSION >= 3 int_flags = PyLong_AsLong ( py_flags ) ;\n # else int_flags = PyInt_AsLong ( py_flags ) ;\n # endif Py_DECREF ( py_flags ) ;\n py_pattern = PyObject_GetAttrString ( value , \"pattern\" ) ;\n if ( ! py_pattern ) {\n return 0 ;\n }\n if ( PyUnicode_Check ( py_pattern ) ) {\n encoded_pattern = PyUnicode_AsUTF8String ( py_pattern ) ;\n Py_DECREF ( py_pattern ) ;\n if ( ! encoded_pattern ) {\n return 0 ;\n }\n }\n else {\n encoded_pattern = py_pattern ;\n check_utf8 = 1 ;\n }\n # if PY_MAJOR_VERSION >= 3 status = check_string ( ( const unsigned char * ) PyBytes_AsString ( encoded_pattern ) , PyBytes_Size ( encoded_pattern ) , check_utf8 , 1 ) ;\n # else status = check_string ( ( const unsigned char * ) PyString_AsString ( encoded_pattern ) , PyString_Size ( encoded_pattern ) , check_utf8 , 1 ) ;\n # endif if ( status == NOT_UTF_8 ) {\n PyObject * InvalidStringData = _error ( \"InvalidStringData\" ) ;\n PyErr_SetString ( InvalidStringData , \"regex patterns must be valid UTF-8\" ) ;\n Py_DECREF ( InvalidStringData ) ;\n Py_DECREF ( encoded_pattern ) ;\n return 0 ;\n }\n else if ( status == HAS_NULL ) {\n PyObject * InvalidDocument = _error ( \"InvalidDocument\" ) ;\n PyErr_SetString ( InvalidDocument , \"regex patterns must not contain the NULL byte\" ) ;\n Py_DECREF ( InvalidDocument ) ;\n Py_DECREF ( encoded_pattern ) ;\n return 0 ;\n }\n {\n # if PY_MAJOR_VERSION >= 3 const char * pattern = PyBytes_AsString ( encoded_pattern ) ;\n # else const char * pattern = PyString_AsString ( encoded_pattern ) ;\n # endif pattern_length = strlen ( pattern ) + 1 ;\n if ( ! buffer_write_bytes ( buffer , pattern , pattern_length ) ) {\n Py_DECREF ( encoded_pattern ) ;\n return 0 ;\n }\n }\n Py_DECREF ( encoded_pattern ) ;\n flags [ 0 ] = 0 ;\n if ( int_flags & 2 ) {\n STRCAT ( flags , FLAGS_SIZE , \"i\" ) ;\n }\n if ( int_flags & 4 ) {\n STRCAT ( flags , FLAGS_SIZE , \"l\" ) ;\n }\n if ( int_flags & 8 ) {\n STRCAT ( flags , FLAGS_SIZE , \"m\" ) ;\n }\n if ( int_flags & 16 ) {\n STRCAT ( flags , FLAGS_SIZE , \"s\" ) ;\n }\n if ( int_flags & 32 ) {\n STRCAT ( flags , FLAGS_SIZE , \"u\" ) ;\n }\n if ( int_flags & 64 ) {\n STRCAT ( flags , FLAGS_SIZE , \"x\" ) ;\n }\n flags_length = strlen ( flags ) + 1 ;\n if ( ! buffer_write_bytes ( buffer , flags , flags_length ) ) {\n return 0 ;\n }\n * ( buffer_get_buffer ( buffer ) + type_byte ) = 0x0B ;\n return 1 ;\n }\n else if ( PyObject_IsInstance ( value , state -> MinKey ) ) {\n * ( buffer_get_buffer ( buffer ) + type_byte ) = 0xFF ;\n return 1 ;\n }\n else if ( PyObject_IsInstance ( value , state -> MaxKey ) ) {\n * ( buffer_get_buffer ( buffer ) + type_byte ) = 0x7F ;\n return 1 ;\n }\n else if ( first_attempt ) {\n if ( WARN ( PyExc_RuntimeWarning , \"couldn't encode - reloading python \" \"modules and trying again. if you see this without getting \" \"an InvalidDocument exception please see http://api.mongodb\" \".org/python/current/faq.html#does-pymongo-work-with-mod-\" \"wsgi\" ) == - 1 ) {\n return 0 ;\n }\n if ( _reload_python_objects ( self ) ) {\n return 0 ;\n }\n return write_element_to_buffer ( self , buffer , type_byte , value , check_keys , uuid_subtype , 0 ) ;\n }\n {\n PyObject * repr = PyObject_Repr ( value ) ;\n PyObject * InvalidDocument = _error ( \"InvalidDocument\" ) ;\n # if PY_MAJOR_VERSION >= 3 PyObject * errmsg = PyUnicode_FromString ( \"Cannot encode object: \" ) ;\n PyObject * error = PyUnicode_Concat ( errmsg , repr ) ;\n PyErr_SetObject ( InvalidDocument , error ) ;\n Py_DECREF ( error ) ;\n Py_DECREF ( repr ) ;\n # else PyObject * errmsg = PyString_FromString ( \"Cannot encode object: \" ) ;\n PyString_ConcatAndDel ( & errmsg , repr ) ;\n PyErr_SetString ( InvalidDocument , PyString_AsString ( errmsg ) ) ;\n # endif Py_DECREF ( errmsg ) ;\n Py_DECREF ( InvalidDocument ) ;\n return 0 ;\n }\n }"}
{"idx": 9270, "target": 0, "func": "int ff_wmv2_decode_secondary_picture_header ( MpegEncContext * s ) {\n Wmv2Context * const w = ( Wmv2Context * ) s ;\n if ( s -> pict_type == AV_PICTURE_TYPE_I ) {\n if ( w -> j_type_bit ) w -> j_type = get_bits1 ( & s -> gb ) ;\n else w -> j_type = 0 ;\n if ( ! w -> j_type ) {\n if ( w -> per_mb_rl_bit ) s -> per_mb_rl_table = get_bits1 ( & s -> gb ) ;\n else s -> per_mb_rl_table = 0 ;\n if ( ! s -> per_mb_rl_table ) {\n s -> rl_chroma_table_index = decode012 ( & s -> gb ) ;\n s -> rl_table_index = decode012 ( & s -> gb ) ;\n }\n s -> dc_table_index = get_bits1 ( & s -> gb ) ;\n }\n s -> inter_intra_pred = 0 ;\n s -> no_rounding = 1 ;\n if ( s -> avctx -> debug & FF_DEBUG_PICT_INFO ) {\n av_log ( s -> avctx , AV_LOG_DEBUG , \"qscale:%d rlc:%d rl:%d dc:%d mbrl:%d j_type:%d \\n\" , s -> qscale , s -> rl_chroma_table_index , s -> rl_table_index , s -> dc_table_index , s -> per_mb_rl_table , w -> j_type ) ;\n }\n }\n else {\n int cbp_index ;\n w -> j_type = 0 ;\n parse_mb_skip ( w ) ;\n cbp_index = decode012 ( & s -> gb ) ;\n if ( s -> qscale <= 10 ) {\n int map [ 3 ] = {\n 0 , 2 , 1 }\n ;\n w -> cbp_table_index = map [ cbp_index ] ;\n }\n else if ( s -> qscale <= 20 ) {\n int map [ 3 ] = {\n 1 , 0 , 2 }\n ;\n w -> cbp_table_index = map [ cbp_index ] ;\n }\n else {\n int map [ 3 ] = {\n 2 , 1 , 0 }\n ;\n w -> cbp_table_index = map [ cbp_index ] ;\n }\n if ( w -> mspel_bit ) s -> mspel = get_bits1 ( & s -> gb ) ;\n else s -> mspel = 0 ;\n if ( w -> abt_flag ) {\n w -> per_mb_abt = get_bits1 ( & s -> gb ) ^ 1 ;\n if ( ! w -> per_mb_abt ) {\n w -> abt_type = decode012 ( & s -> gb ) ;\n }\n }\n if ( w -> per_mb_rl_bit ) s -> per_mb_rl_table = get_bits1 ( & s -> gb ) ;\n else s -> per_mb_rl_table = 0 ;\n if ( ! s -> per_mb_rl_table ) {\n s -> rl_table_index = decode012 ( & s -> gb ) ;\n s -> rl_chroma_table_index = s -> rl_table_index ;\n }\n s -> dc_table_index = get_bits1 ( & s -> gb ) ;\n s -> mv_table_index = get_bits1 ( & s -> gb ) ;\n s -> inter_intra_pred = 0 ;\n s -> no_rounding ^= 1 ;\n if ( s -> avctx -> debug & FF_DEBUG_PICT_INFO ) {\n av_log ( s -> avctx , AV_LOG_DEBUG , \"rl:%d rlc:%d dc:%d mv:%d mbrl:%d qp:%d mspel:%d per_mb_abt:%d abt_type:%d cbp:%d ii:%d\\n\" , s -> rl_table_index , s -> rl_chroma_table_index , s -> dc_table_index , s -> mv_table_index , s -> per_mb_rl_table , s -> qscale , s -> mspel , w -> per_mb_abt , w -> abt_type , w -> cbp_table_index , s -> inter_intra_pred ) ;\n }\n }\n s -> esc3_level_length = 0 ;\n s -> esc3_run_length = 0 ;\n s -> picture_number ++ ;\n if ( w -> j_type ) {\n ff_intrax8_decode_picture ( & w -> x8 , 2 * s -> qscale , ( s -> qscale - 1 ) | 1 ) ;\n return 1 ;\n }\n return 0 ;\n }"}
{"idx": 9271, "target": 0, "func": "static void dissect_q931_change_status_ie ( tvbuff_t * tvb , int offset , int len _U_ , proto_tree * tree ) {\n if ( len == 0 ) return ;\n proto_tree_add_item ( tree , hf_q931_extension_ind , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_q931_extension_ind_preference , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_q931_extension_ind_new_status , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n }"}
{"idx": 9272, "target": 0, "func": "static void skip_file ( CommonJob * common , GFile * file ) {\n if ( common -> skip_files == NULL ) {\n common -> skip_files = g_hash_table_new_full ( g_file_hash , ( GEqualFunc ) g_file_equal , g_object_unref , NULL ) ;\n }\n g_hash_table_insert ( common -> skip_files , g_object_ref ( file ) , file ) ;\n }"}
{"idx": 9273, "target": 0, "func": "void ff_h263_encode_motion ( MpegEncContext * s , int val , int f_code ) {\n int range , bit_size , sign , code , bits ;\n if ( val == 0 ) {\n code = 0 ;\n put_bits ( & s -> pb , ff_mvtab [ code ] [ 1 ] , ff_mvtab [ code ] [ 0 ] ) ;\n }\n else {\n bit_size = f_code - 1 ;\n range = 1 << bit_size ;\n val = sign_extend ( val , 6 + bit_size ) ;\n sign = val >> 31 ;\n val = ( val ^ sign ) - sign ;\n sign &= 1 ;\n val -- ;\n code = ( val >> bit_size ) + 1 ;\n bits = val & ( range - 1 ) ;\n put_bits ( & s -> pb , ff_mvtab [ code ] [ 1 ] + 1 , ( ff_mvtab [ code ] [ 0 ] << 1 ) | sign ) ;\n if ( bit_size > 0 ) {\n put_bits ( & s -> pb , bit_size , bits ) ;\n }\n }\n }"}
{"idx": 9274, "target": 0, "func": "enum mbfl_no_encoding mbfl_encoding_detector_judge ( mbfl_encoding_detector * identd ) {\n const mbfl_encoding * encoding = mbfl_encoding_detector_judge2 ( identd ) ;\n return ! encoding ? mbfl_no_encoding_invalid : encoding -> no_encoding ;\n }"}
{"idx": 9275, "target": 0, "func": "static void request_finished ( struct request * const req , struct request * * head ) {\n if ( head ) {\n if ( req -> next == req ) {\n * head = NULL ;\n }\n else {\n req -> next -> prev = req -> prev ;\n req -> prev -> next = req -> next ;\n if ( * head == req ) * head = req -> next ;\n }\n }\n log ( EVDNS_LOG_DEBUG , \"Removing timeout for request %lx\" , ( unsigned long ) req ) ;\n evtimer_del ( & req -> timeout_event ) ;\n search_request_finished ( req ) ;\n global_requests_inflight -- ;\n if ( ! req -> request_appended ) {\n free ( req -> request ) ;\n }\n else {\n }\n free ( req ) ;\n evdns_requests_pump_waiting_queue ( ) ;\n }"}
{"idx": 9276, "target": 0, "func": "static int nntp_auth ( struct NntpServer * nserv ) {\n struct Connection * conn = nserv -> conn ;\n char buf [ LONG_STRING ] ;\n char authenticators [ LONG_STRING ] = \"USER\" ;\n char * method = NULL , * a = NULL , * p = NULL ;\n unsigned char flags = conn -> account . flags ;\n while ( true ) {\n if ( ( mutt_account_getuser ( & conn -> account ) < 0 ) || ( conn -> account . user [ 0 ] == '\\0' ) || ( mutt_account_getpass ( & conn -> account ) < 0 ) || ( conn -> account . pass [ 0 ] == '\\0' ) ) {\n break ;\n }\n if ( NntpAuthenticators && * NntpAuthenticators ) mutt_str_strfcpy ( authenticators , NntpAuthenticators , sizeof ( authenticators ) ) ;\n else if ( nserv -> hasCAPABILITIES ) {\n mutt_str_strfcpy ( authenticators , NONULL ( nserv -> authenticators ) , sizeof ( authenticators ) ) ;\n p = authenticators ;\n while ( * p ) {\n if ( * p == ' ' ) * p = ':' ;\n p ++ ;\n }\n }\n p = authenticators ;\n while ( * p ) {\n * p = toupper ( * p ) ;\n p ++ ;\n }\n mutt_debug ( 1 , \"available methods: %s\\n\" , nserv -> authenticators ) ;\n a = authenticators ;\n while ( true ) {\n if ( ! a ) {\n mutt_error ( _ ( \"No authenticators available\" ) ) ;\n break ;\n }\n method = a ;\n a = strchr ( a , ':' ) ;\n if ( a ) * a ++ = '\\0' ;\n if ( nserv -> hasCAPABILITIES ) {\n char * m = NULL ;\n if ( ! nserv -> authenticators ) continue ;\n m = strcasestr ( nserv -> authenticators , method ) ;\n if ( ! m ) continue ;\n if ( m > nserv -> authenticators && * ( m - 1 ) != ' ' ) continue ;\n m += strlen ( method ) ;\n if ( * m != '\\0' && * m != ' ' ) continue ;\n }\n mutt_debug ( 1 , \"trying method %s\\n\" , method ) ;\n if ( strcmp ( method , \"USER\" ) == 0 ) {\n mutt_message ( _ ( \"Authenticating (%s)...\" ) , method ) ;\n snprintf ( buf , sizeof ( buf ) , \"AUTHINFO USER %s\\r\\n\" , conn -> account . user ) ;\n if ( mutt_socket_send ( conn , buf ) < 0 || mutt_socket_readln ( buf , sizeof ( buf ) , conn ) < 0 ) {\n break ;\n }\n if ( mutt_str_strncmp ( \"281\" , buf , 3 ) == 0 ) return 0 ;\n if ( mutt_str_strncmp ( \"381\" , buf , 3 ) == 0 ) {\n if ( DebugLevel < MUTT_SOCK_LOG_FULL ) mutt_debug ( MUTT_SOCK_LOG_CMD , \"%d> AUTHINFO PASS *\\n\" , conn -> fd ) ;\n snprintf ( buf , sizeof ( buf ) , \"AUTHINFO PASS %s\\r\\n\" , conn -> account . pass ) ;\n if ( mutt_socket_send_d ( conn , buf , MUTT_SOCK_LOG_FULL ) < 0 || mutt_socket_readln ( buf , sizeof ( buf ) , conn ) < 0 ) {\n break ;\n }\n if ( mutt_str_strncmp ( \"281\" , buf , 3 ) == 0 ) return 0 ;\n }\n if ( * buf == '5' ) continue ;\n }\n else {\n # ifdef USE_SASL sasl_conn_t * saslconn = NULL ;\n sasl_interact_t * interaction = NULL ;\n int rc ;\n char inbuf [ LONG_STRING ] = \"\" ;\n const char * mech = NULL ;\n const char * client_out = NULL ;\n unsigned int client_len , len ;\n if ( mutt_sasl_client_new ( conn , & saslconn ) < 0 ) {\n mutt_debug ( 1 , \"error allocating SASL connection.\\n\" ) ;\n continue ;\n }\n while ( true ) {\n rc = sasl_client_start ( saslconn , method , & interaction , & client_out , & client_len , & mech ) ;\n if ( rc != SASL_INTERACT ) break ;\n mutt_sasl_interact ( interaction ) ;\n }\n if ( rc != SASL_OK && rc != SASL_CONTINUE ) {\n sasl_dispose ( & saslconn ) ;\n mutt_debug ( 1 , \"error starting SASL authentication exchange.\\n\" ) ;\n continue ;\n }\n mutt_message ( _ ( \"Authenticating (%s)...\" ) , method ) ;\n snprintf ( buf , sizeof ( buf ) , \"AUTHINFO SASL %s\" , method ) ;\n while ( rc == SASL_CONTINUE || ( rc == SASL_OK && client_len ) ) {\n if ( client_len ) {\n if ( DebugLevel >= MUTT_SOCK_LOG_FULL ) {\n char tmp [ LONG_STRING ] ;\n memcpy ( tmp , client_out , client_len ) ;\n for ( p = tmp ;\n p < tmp + client_len ;\n p ++ ) {\n if ( * p == '\\0' ) * p = '.' ;\n }\n * p = '\\0' ;\n mutt_debug ( 1 , \"SASL> %s\\n\" , tmp ) ;\n }\n if ( * buf ) mutt_str_strcat ( buf , sizeof ( buf ) , \" \" ) ;\n len = strlen ( buf ) ;\n if ( sasl_encode64 ( client_out , client_len , buf + len , sizeof ( buf ) - len , & len ) != SASL_OK ) {\n mutt_debug ( 1 , \"error base64-encoding client response.\\n\" ) ;\n break ;\n }\n }\n mutt_str_strcat ( buf , sizeof ( buf ) , \"\\r\\n\" ) ;\n if ( DebugLevel < MUTT_SOCK_LOG_FULL ) {\n if ( strchr ( buf , ' ' ) ) {\n mutt_debug ( MUTT_SOCK_LOG_CMD , \"%d> AUTHINFO SASL %s%s\\n\" , conn -> fd , method , client_len ? \" sasl_data\" : \"\" ) ;\n }\n else mutt_debug ( MUTT_SOCK_LOG_CMD , \"%d> sasl_data\\n\" , conn -> fd ) ;\n }\n client_len = 0 ;\n if ( mutt_socket_send_d ( conn , buf , MUTT_SOCK_LOG_FULL ) < 0 || mutt_socket_readln_d ( inbuf , sizeof ( inbuf ) , conn , MUTT_SOCK_LOG_FULL ) < 0 ) {\n break ;\n }\n if ( ( mutt_str_strncmp ( inbuf , \"283 \" , 4 ) != 0 ) && ( mutt_str_strncmp ( inbuf , \"383 \" , 4 ) != 0 ) ) {\n if ( DebugLevel < MUTT_SOCK_LOG_FULL ) mutt_debug ( MUTT_SOCK_LOG_CMD , \"%d< %s\\n\" , conn -> fd , inbuf ) ;\n break ;\n }\n if ( DebugLevel < MUTT_SOCK_LOG_FULL ) {\n inbuf [ 3 ] = '\\0' ;\n mutt_debug ( MUTT_SOCK_LOG_CMD , \"%d< %s sasl_data\\n\" , conn -> fd , inbuf ) ;\n }\n if ( strcmp ( \"=\" , inbuf + 4 ) == 0 ) len = 0 ;\n else if ( sasl_decode64 ( inbuf + 4 , strlen ( inbuf + 4 ) , buf , sizeof ( buf ) - 1 , & len ) != SASL_OK ) {\n mutt_debug ( 1 , \"error base64-decoding server response.\\n\" ) ;\n break ;\n }\n else if ( DebugLevel >= MUTT_SOCK_LOG_FULL ) {\n char tmp [ LONG_STRING ] ;\n memcpy ( tmp , buf , len ) ;\n for ( p = tmp ;\n p < tmp + len ;\n p ++ ) {\n if ( * p == '\\0' ) * p = '.' ;\n }\n * p = '\\0' ;\n mutt_debug ( 1 , \"SASL< %s\\n\" , tmp ) ;\n }\n while ( true ) {\n rc = sasl_client_step ( saslconn , buf , len , & interaction , & client_out , & client_len ) ;\n if ( rc != SASL_INTERACT ) break ;\n mutt_sasl_interact ( interaction ) ;\n }\n if ( * inbuf != '3' ) break ;\n * buf = '\\0' ;\n }\n if ( rc == SASL_OK && client_len == 0 && * inbuf == '2' ) {\n mutt_sasl_setup_conn ( conn , saslconn ) ;\n return 0 ;\n }\n sasl_dispose ( & saslconn ) ;\n if ( conn -> fd < 0 ) break ;\n if ( mutt_str_strncmp ( inbuf , \"383 \" , 4 ) == 0 ) {\n if ( mutt_socket_send ( conn , \"*\\r\\n\" ) < 0 || mutt_socket_readln ( inbuf , sizeof ( inbuf ) , conn ) < 0 ) {\n break ;\n }\n }\n if ( * inbuf == '5' ) continue ;\n # else continue ;\n # endif }\n mutt_error ( _ ( \"%s authentication failed.\" ) , method ) ;\n break ;\n }\n break ;\n }\n nserv -> status = NNTP_BYE ;\n conn -> account . flags = flags ;\n if ( conn -> fd < 0 ) {\n mutt_error ( _ ( \"Server closed connection!\" ) ) ;\n }\n else mutt_socket_close ( conn ) ;\n return - 1 ;\n }"}
{"idx": 9277, "target": 1, "func": "static char * memdup ( const char * src , size_t buffer_length ) {\n size_t length ;\n bool add = FALSE ;\n char * buffer ;\n if ( buffer_length ) length = buffer_length ;\n else if ( src ) {\n length = strlen ( src ) ;\n add = TRUE ;\n }\n else return strdup ( \"\" ) ;\n buffer = malloc ( length + add ) ;\n if ( ! buffer ) return NULL ;\n memcpy ( buffer , src , length ) ;\n if ( add ) buffer [ length ] = '\\0' ;\n return buffer ;\n }"}
{"idx": 9278, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( BluetoothChooserBrowserTest , InvokeDialog_NoDevicesBubble ) {\n set_status ( FakeBluetoothChooserController : : BluetoothStatus : : IDLE ) ;\n RunDialog ( ) ;\n }"}
{"idx": 9279, "target": 0, "func": "static my_bool grant_reload_procs_priv ( THD * thd ) {\n HASH old_proc_priv_hash , old_func_priv_hash ;\n TABLE_LIST table ;\n my_bool return_val = FALSE ;\n DBUG_ENTER ( \"grant_reload_procs_priv\" ) ;\n bzero ( ( char * ) & table , sizeof ( table ) ) ;\n table . alias = table . table_name = ( char * ) \"procs_priv\" ;\n table . db = ( char * ) \"mysql\" ;\n table . lock_type = TL_READ ;\n table . skip_temporary = 1 ;\n if ( simple_open_n_lock_tables ( thd , & table ) ) {\n close_thread_tables ( thd ) ;\n DBUG_RETURN ( TRUE ) ;\n }\n rw_wrlock ( & LOCK_grant ) ;\n old_proc_priv_hash = proc_priv_hash ;\n old_func_priv_hash = func_priv_hash ;\n if ( ( return_val = grant_load_procs_priv ( table . table ) ) ) {\n DBUG_PRINT ( \"error\" , ( \"Reverting to old privileges\" ) ) ;\n grant_free ( ) ;\n proc_priv_hash = old_proc_priv_hash ;\n func_priv_hash = old_func_priv_hash ;\n }\n else {\n hash_free ( & old_proc_priv_hash ) ;\n hash_free ( & old_func_priv_hash ) ;\n }\n rw_unlock ( & LOCK_grant ) ;\n close_thread_tables ( thd ) ;\n DBUG_RETURN ( return_val ) ;\n }"}
{"idx": 9280, "target": 0, "func": "static ossl_inline t2 * sk_ ## t1 ## _value ( const STACK_OF ( t1 ) * sk , int idx ) {\n return ( t2 * ) OPENSSL_sk_value ( ( const OPENSSL_STACK * ) sk , idx ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new ( sk_ ## t1 ## _compfunc compare ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new ( ( OPENSSL_sk_compfunc ) compare ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_null ( void ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_null ( ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_reserve ( sk_ ## t1 ## _compfunc compare , int n ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_reserve ( ( OPENSSL_sk_compfunc ) compare , n ) ;\n }\n static ossl_inline int sk_ ## t1 ## _reserve ( STACK_OF ( t1 ) * sk , int n ) {\n return OPENSSL_sk_reserve ( ( OPENSSL_STACK * ) sk , n ) ;\n }\n static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 9281, "target": 0, "func": "static GstFlowReturn gst_asf_demux_process_metadata ( GstASFDemux * demux , guint8 * data , guint64 size ) {\n guint16 blockcount , i ;\n GST_INFO_OBJECT ( demux , \"object is a metadata object\" ) ;\n if ( size < 2 ) goto not_enough_data ;\n blockcount = gst_asf_demux_get_uint16 ( & data , & size ) ;\n for ( i = 0 ;\n i < blockcount ;\n ++ i ) {\n GstStructure * s ;\n guint16 stream_num , name_len , data_type , lang_idx G_GNUC_UNUSED ;\n guint32 data_len , ival ;\n gchar * name_utf8 ;\n if ( size < ( 2 + 2 + 2 + 2 + 4 ) ) goto not_enough_data ;\n lang_idx = gst_asf_demux_get_uint16 ( & data , & size ) ;\n stream_num = gst_asf_demux_get_uint16 ( & data , & size ) ;\n name_len = gst_asf_demux_get_uint16 ( & data , & size ) ;\n data_type = gst_asf_demux_get_uint16 ( & data , & size ) ;\n data_len = gst_asf_demux_get_uint32 ( & data , & size ) ;\n if ( size < name_len + data_len ) goto not_enough_data ;\n name_utf8 = g_convert ( ( gchar * ) data , name_len , \"UTF-8\" , \"UTF-16LE\" , NULL , NULL , NULL ) ;\n gst_asf_demux_skip_bytes ( name_len , & data , & size ) ;\n if ( name_utf8 == NULL ) {\n GST_WARNING ( \"Failed to convert value name to UTF8, skipping\" ) ;\n gst_asf_demux_skip_bytes ( data_len , & data , & size ) ;\n continue ;\n }\n if ( data_type != ASF_DEMUX_DATA_TYPE_DWORD ) {\n gst_asf_demux_skip_bytes ( data_len , & data , & size ) ;\n g_free ( name_utf8 ) ;\n continue ;\n }\n if ( size < 4 ) {\n g_free ( name_utf8 ) ;\n goto not_enough_data ;\n }\n ival = gst_asf_demux_get_uint32 ( & data , & size ) ;\n gst_asf_demux_skip_bytes ( data_len - 4 , & data , & size ) ;\n s = gst_asf_demux_get_metadata_for_stream ( demux , stream_num ) ;\n gst_structure_set ( s , name_utf8 , G_TYPE_INT , ival , NULL ) ;\n g_free ( name_utf8 ) ;\n }\n GST_INFO_OBJECT ( demux , \"metadata = %\" GST_PTR_FORMAT , demux -> metadata ) ;\n return GST_FLOW_OK ;\n not_enough_data : {\n GST_WARNING ( \"Unexpected end of data parsing metadata object\" ) ;\n return GST_FLOW_OK ;\n }\n }"}
{"idx": 9282, "target": 0, "func": "TSReturnCode sdk_sanity_check_http_hdr_handle ( TSMLoc field ) {\n if ( field == TS_NULL_MLOC ) {\n return TS_ERROR ;\n }\n HTTPHdrImpl * field_handle = ( HTTPHdrImpl * ) field ;\n if ( field_handle -> m_type != HDR_HEAP_OBJ_HTTP_HEADER ) {\n return TS_ERROR ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 9283, "target": 0, "func": "static enum message_read_status evhttp_handle_chunked_read ( struct evhttp_request * req , struct evbuffer * buf ) {\n int len ;\n while ( ( len = EVBUFFER_LENGTH ( buf ) ) > 0 ) {\n if ( req -> ntoread < 0 ) {\n ev_int64_t ntoread ;\n char * p = evbuffer_readline ( buf ) ;\n char * endp ;\n int error ;\n if ( p == NULL ) break ;\n if ( strlen ( p ) == 0 ) {\n free ( p ) ;\n continue ;\n }\n ntoread = evutil_strtoll ( p , & endp , 16 ) ;\n error = ( * p == '\\0' || ( * endp != '\\0' && * endp != ' ' ) || ntoread < 0 ) ;\n free ( p ) ;\n if ( error ) {\n return ( DATA_CORRUPTED ) ;\n }\n req -> ntoread = ntoread ;\n if ( req -> ntoread == 0 ) {\n return ( ALL_DATA_READ ) ;\n }\n continue ;\n }\n if ( len < req -> ntoread ) return ( MORE_DATA_EXPECTED ) ;\n evbuffer_add ( req -> input_buffer , EVBUFFER_DATA ( buf ) , ( size_t ) req -> ntoread ) ;\n evbuffer_drain ( buf , ( size_t ) req -> ntoread ) ;\n req -> ntoread = - 1 ;\n if ( req -> chunk_cb != NULL ) {\n ( * req -> chunk_cb ) ( req , req -> cb_arg ) ;\n evbuffer_drain ( req -> input_buffer , EVBUFFER_LENGTH ( req -> input_buffer ) ) ;\n }\n }\n return ( MORE_DATA_EXPECTED ) ;\n }"}
{"idx": 9284, "target": 0, "func": "static inline u16 inode_mode_to_security_class ( umode_t mode ) {\n switch ( mode & S_IFMT ) {\n case S_IFSOCK : return SECCLASS_SOCK_FILE ;\n case S_IFLNK : return SECCLASS_LNK_FILE ;\n case S_IFREG : return SECCLASS_FILE ;\n case S_IFBLK : return SECCLASS_BLK_FILE ;\n case S_IFDIR : return SECCLASS_DIR ;\n case S_IFCHR : return SECCLASS_CHR_FILE ;\n case S_IFIFO : return SECCLASS_FIFO_FILE ;\n }\n return SECCLASS_FILE ;\n }"}
{"idx": 9285, "target": 0, "func": "static int decode_cabac_mb_cbp_luma ( H264Context * h ) {\n int cbp_b , cbp_a , ctx , cbp = 0 ;\n cbp_a = h -> left_cbp ;\n cbp_b = h -> top_cbp ;\n ctx = ! ( cbp_a & 0x02 ) + 2 * ! ( cbp_b & 0x04 ) ;\n cbp += get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 73 + ctx ] ) ;\n ctx = ! ( cbp & 0x01 ) + 2 * ! ( cbp_b & 0x08 ) ;\n cbp += get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 73 + ctx ] ) << 1 ;\n ctx = ! ( cbp_a & 0x08 ) + 2 * ! ( cbp & 0x01 ) ;\n cbp += get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 73 + ctx ] ) << 2 ;\n ctx = ! ( cbp & 0x04 ) + 2 * ! ( cbp & 0x02 ) ;\n cbp += get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 73 + ctx ] ) << 3 ;\n return cbp ;\n }"}
{"idx": 9286, "target": 0, "func": "static void test_truncation_option ( ) {\n MYSQL_STMT * stmt ;\n const char * stmt_text ;\n int rc ;\n uint8 buf ;\n my_bool option = 0 ;\n my_bool error ;\n MYSQL_BIND my_bind ;\n myheader ( \"test_truncation_option\" ) ;\n stmt_text = \"select -1\" ;\n stmt = mysql_stmt_init ( mysql ) ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n memset ( & my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind . buffer = ( void * ) & buf ;\n my_bind . buffer_type = MYSQL_TYPE_TINY ;\n my_bind . is_unsigned = TRUE ;\n my_bind . error = & error ;\n rc = mysql_stmt_bind_result ( stmt , & my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_DATA_TRUNCATED ) ;\n DIE_UNLESS ( error ) ;\n rc = mysql_options ( mysql , MYSQL_REPORT_DATA_TRUNCATION , ( char * ) & option ) ;\n myquery ( rc ) ;\n rc = mysql_stmt_bind_result ( stmt , & my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n DIE_UNLESS ( error == 1 ) ;\n option = 1 ;\n mysql_options ( mysql , MYSQL_REPORT_DATA_TRUNCATION , ( char * ) & option ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 9287, "target": 0, "func": "static char * wv_csp13_opaque_binary_tag ( tvbuff_t * tvb , guint32 offset , guint8 token , guint8 codepage , guint32 * length ) {\n guint32 data_len = tvb_get_guintvar ( tvb , offset , length ) ;\n char * str = NULL ;\n switch ( codepage ) {\n case 0 : switch ( token ) {\n case 0x0B : case 0x0F : case 0x1A : case 0x3C : str = wv_integer_from_opaque ( tvb , offset + * length , data_len ) ;\n break ;\n case 0x11 : str = wv_datetime_from_opaque ( tvb , offset + * length , data_len ) ;\n break ;\n default : break ;\n }\n break ;\n case 1 : switch ( token ) {\n case 0x1C : case 0x25 : case 0x26 : case 0x27 : case 0x28 : case 0x32 : str = wv_integer_from_opaque ( tvb , offset + * length , data_len ) ;\n break ;\n default : break ;\n }\n break ;\n case 3 : switch ( token ) {\n case 0x06 : case 0x0C : case 0x0D : case 0x0E : case 0x12 : case 0x13 : case 0x16 : case 0x17 : case 0x18 : case 0x19 : case 0x1B : case 0x1C : case 0x1F : case 0x21 : case 0x24 : str = wv_integer_from_opaque ( tvb , offset + * length , data_len ) ;\n break ;\n default : break ;\n }\n break ;\n case 5 : switch ( token ) {\n case 0x3C : case 0x3D : case 0x3E : str = wv_integer_from_opaque ( tvb , offset + * length , data_len ) ;\n break ;\n default : break ;\n }\n break ;\n case 6 : switch ( token ) {\n case 0x1A : case 0x1C : str = wv_datetime_from_opaque ( tvb , offset + * length , data_len ) ;\n break ;\n default : break ;\n }\n break ;\n case 9 : switch ( token ) {\n case 0x08 : case 0x0A : case 0x25 : case 0x28 : case 0x30 : case 0x3A : case 0x3B : str = wv_integer_from_opaque ( tvb , offset + * length , data_len ) ;\n break ;\n default : break ;\n }\n break ;\n case 10 : switch ( token ) {\n case 0x0C : str = wv_integer_from_opaque ( tvb , offset + * length , data_len ) ;\n break ;\n default : break ;\n }\n break ;\n default : break ;\n }\n if ( str == NULL ) {\n str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"(%d bytes of unparsed opaque data)\" , data_len ) ;\n }\n * length += data_len ;\n return str ;\n }"}
{"idx": 9288, "target": 0, "func": "void remove_tap_listener_rtp ( void ) {\n remove_tap_listener ( & ( the_tapinfo_rtp_struct . rtp_dummy ) ) ;\n have_RTP_tap_listener = FALSE ;\n }"}
{"idx": 9289, "target": 0, "func": "static void dissect_h245_h245 ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * parent_tree ) {\n proto_item * it ;\n proto_tree * tr ;\n guint32 offset = 0 ;\n asn1_ctx_t asn1_ctx ;\n fast_start = FALSE ;\n upcoming_olc = NULL ;\n upcoming_channel = NULL ;\n codec_type = NULL ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , PSNAME ) ;\n it = proto_tree_add_protocol_format ( parent_tree , proto_h245 , tvb , 0 , tvb_length ( tvb ) , PSNAME ) ;\n tr = proto_item_add_subtree ( it , ett_h245 ) ;\n while ( tvb_length_remaining ( tvb , offset >> 3 ) > 0 ) {\n CLEANUP_PUSH ( reset_h245_pi , NULL ) ;\n h245_pi = wmem_new ( wmem_packet_scope ( ) , h245_packet_info ) ;\n init_h245_packet_info ( h245_pi ) ;\n asn1_ctx_init ( & asn1_ctx , ASN1_ENC_PER , TRUE , pinfo ) ;\n offset = dissect_h245_MultimediaSystemControlMessage ( tvb , offset , & asn1_ctx , tr , hf_h245_pdu_type ) ;\n tap_queue_packet ( h245dg_tap , pinfo , h245_pi ) ;\n offset = ( offset + 0x07 ) & 0xfffffff8 ;\n CLEANUP_CALL_AND_POP ;\n }\n }"}
{"idx": 9290, "target": 0, "func": "extern int as_mysql_step_complete ( mysql_conn_t * mysql_conn , struct step_record * step_ptr ) {\n time_t now ;\n uint16_t comp_status ;\n int tasks = 0 ;\n struct jobacctinfo * jobacct = ( struct jobacctinfo * ) step_ptr -> jobacct ;\n char * query = NULL ;\n int rc = SLURM_SUCCESS ;\n uint32_t exit_code = 0 ;\n time_t submit_time ;\n if ( ! step_ptr -> job_ptr -> db_index && ( ( ! step_ptr -> job_ptr -> details || ! step_ptr -> job_ptr -> details -> submit_time ) && ! step_ptr -> job_ptr -> resize_time ) ) {\n error ( \"as_mysql_step_complete: \" \"Not inputing this job, it has no submit time.\" ) ;\n return SLURM_ERROR ;\n }\n if ( step_ptr -> job_ptr -> resize_time ) submit_time = step_ptr -> job_ptr -> resize_time ;\n else submit_time = step_ptr -> job_ptr -> details -> submit_time ;\n if ( check_connection ( mysql_conn ) != SLURM_SUCCESS ) return ESLURM_DB_CONNECTION ;\n if ( slurmdbd_conf ) {\n now = step_ptr -> job_ptr -> end_time ;\n if ( step_ptr -> job_ptr -> details ) tasks = step_ptr -> job_ptr -> details -> num_tasks ;\n else tasks = step_ptr -> cpu_count ;\n }\n else if ( step_ptr -> step_id == SLURM_BATCH_SCRIPT ) {\n now = time ( NULL ) ;\n tasks = 1 ;\n }\n else {\n now = time ( NULL ) ;\n if ( ! step_ptr -> step_layout || ! step_ptr -> step_layout -> task_cnt ) {\n if ( step_ptr -> cpu_count ) tasks = step_ptr -> cpu_count ;\n else {\n if ( ( tasks = slurmdb_find_tres_count_in_string ( step_ptr -> tres_alloc_str , TRES_CPU ) ) == INFINITE64 ) {\n if ( ( tasks = slurmdb_find_tres_count_in_string ( step_ptr -> job_ptr -> tres_alloc_str , TRES_CPU ) ) == INFINITE64 ) tasks = step_ptr -> job_ptr -> total_nodes ;\n }\n }\n }\n else tasks = step_ptr -> step_layout -> task_cnt ;\n }\n exit_code = step_ptr -> exit_code ;\n comp_status = step_ptr -> state & JOB_STATE_BASE ;\n if ( comp_status < JOB_COMPLETE ) {\n if ( WIFSIGNALED ( exit_code ) ) {\n comp_status = JOB_CANCELLED ;\n }\n else if ( exit_code ) comp_status = JOB_FAILED ;\n else {\n step_ptr -> requid = - 1 ;\n comp_status = JOB_COMPLETE ;\n }\n }\n if ( ! step_ptr -> job_ptr -> db_index ) {\n if ( ! ( step_ptr -> job_ptr -> db_index = _get_db_index ( mysql_conn , submit_time , step_ptr -> job_ptr -> job_id , step_ptr -> job_ptr -> assoc_id ) ) ) {\n if ( as_mysql_job_start ( mysql_conn , step_ptr -> job_ptr ) == SLURM_ERROR ) {\n error ( \"couldn't add job %u \" \"at step completion\" , step_ptr -> job_ptr -> job_id ) ;\n return SLURM_SUCCESS ;\n }\n }\n }\n query = xstrdup_printf ( \"update \\\"%s_%s\\\" set time_end=%d, state=%u, \" \"kill_requid=%d, exit_code=%d\" , mysql_conn -> cluster_name , step_table , ( int ) now , comp_status , step_ptr -> requid , exit_code ) ;\n if ( jobacct ) {\n double ave_vsize = NO_VAL , ave_rss = NO_VAL , ave_pages = NO_VAL ;\n double ave_disk_read = ( double ) NO_VAL ;\n double ave_disk_write = ( double ) NO_VAL ;\n double ave_cpu = ( double ) NO_VAL ;\n if ( tasks > 0 ) {\n ave_vsize = ( double ) jobacct -> tot_vsize ;\n ave_vsize /= ( double ) tasks ;\n ave_rss = ( double ) jobacct -> tot_rss ;\n ave_rss /= ( double ) tasks ;\n ave_pages = ( double ) jobacct -> tot_pages ;\n ave_pages /= ( double ) tasks ;\n ave_cpu = ( double ) jobacct -> tot_cpu ;\n ave_cpu /= ( double ) tasks ;\n ave_disk_read = ( double ) jobacct -> tot_disk_read ;\n ave_disk_read /= ( double ) tasks ;\n ave_disk_write = ( double ) jobacct -> tot_disk_write ;\n ave_disk_write /= ( double ) tasks ;\n }\n xstrfmtcat ( query , \", user_sec=%u, user_usec=%u, \" \"sys_sec=%u, sys_usec=%u, \" \"max_disk_read=%f, max_disk_read_task=%u, \" \"max_disk_read_node=%u, ave_disk_read=%f, \" \"max_disk_write=%f, max_disk_write_task=%u, \" \"max_disk_write_node=%u, ave_disk_write=%f, \" \"max_vsize=%\" PRIu64 \", max_vsize_task=%u, \" \"max_vsize_node=%u, ave_vsize=%f, \" \"max_rss=%\" PRIu64 \", max_rss_task=%u, \" \"max_rss_node=%u, ave_rss=%f, \" \"max_pages=%\" PRIu64 \", max_pages_task=%u, \" \"max_pages_node=%u, ave_pages=%f, \" \"min_cpu=%u, min_cpu_task=%u, \" \"min_cpu_node=%u, ave_cpu=%f, \" \"act_cpufreq=%u, consumed_energy=%\" PRIu64 \"\" , jobacct -> user_cpu_sec , jobacct -> user_cpu_usec , jobacct -> sys_cpu_sec , jobacct -> sys_cpu_usec , jobacct -> max_disk_read , jobacct -> max_disk_read_id . taskid , jobacct -> max_disk_read_id . nodeid , ave_disk_read , jobacct -> max_disk_write , jobacct -> max_disk_write_id . taskid , jobacct -> max_disk_write_id . nodeid , ave_disk_write , jobacct -> max_vsize , jobacct -> max_vsize_id . taskid , jobacct -> max_vsize_id . nodeid , ave_vsize , jobacct -> max_rss , jobacct -> max_rss_id . taskid , jobacct -> max_rss_id . nodeid , ave_rss , jobacct -> max_pages , jobacct -> max_pages_id . taskid , jobacct -> max_pages_id . nodeid , ave_pages , jobacct -> min_cpu , jobacct -> min_cpu_id . taskid , jobacct -> min_cpu_id . nodeid , ave_cpu , jobacct -> act_cpufreq , jobacct -> energy . consumed_energy ) ;\n }\n xstrfmtcat ( query , \" where job_db_inx=%\" PRIu64 \" and id_step=%d\" , step_ptr -> job_ptr -> db_index , step_ptr -> step_id ) ;\n if ( debug_flags & DEBUG_FLAG_DB_STEP ) DB_DEBUG ( mysql_conn -> conn , \"query\\n%s\" , query ) ;\n rc = mysql_db_query ( mysql_conn , query ) ;\n xfree ( query ) ;\n return rc ;\n }"}
{"idx": 9291, "target": 0, "func": "static int dissect_h245_MultiplexEntryRejectionDescriptionsCause ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_MultiplexEntryRejectionDescriptionsCause , MultiplexEntryRejectionDescriptionsCause_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 9292, "target": 0, "func": "int vp9_find_best_sub_pixel_tree_pruned ( const MACROBLOCK * x , MV * bestmv , const MV * ref_mv , int allow_hp , int error_per_bit , const vp9_variance_fn_ptr_t * vfp , int forced_stop , int iters_per_step , int * sad_list , int * mvjcost , int * mvcost [ 2 ] , int * distortion , unsigned int * sse1 , const uint8_t * second_pred , int w , int h ) {\n SETUP_SUBPEL_SEARCH ;\n if ( sad_list && sad_list [ 0 ] != INT_MAX && sad_list [ 1 ] != INT_MAX && sad_list [ 2 ] != INT_MAX && sad_list [ 3 ] != INT_MAX && sad_list [ 4 ] != INT_MAX ) {\n unsigned int left , right , up , down , diag ;\n whichdir = ( sad_list [ 1 ] < sad_list [ 3 ] ? 0 : 1 ) + ( sad_list [ 2 ] < sad_list [ 4 ] ? 0 : 2 ) ;\n switch ( whichdir ) {\n case 0 : CHECK_BETTER ( left , tr , tc - hstep ) ;\n CHECK_BETTER ( down , tr + hstep , tc ) ;\n CHECK_BETTER ( diag , tr + hstep , tc - hstep ) ;\n break ;\n case 1 : CHECK_BETTER ( right , tr , tc + hstep ) ;\n CHECK_BETTER ( down , tr + hstep , tc ) ;\n CHECK_BETTER ( diag , tr + hstep , tc + hstep ) ;\n break ;\n case 2 : CHECK_BETTER ( left , tr , tc - hstep ) ;\n CHECK_BETTER ( up , tr - hstep , tc ) ;\n CHECK_BETTER ( diag , tr - hstep , tc - hstep ) ;\n break ;\n case 3 : CHECK_BETTER ( right , tr , tc + hstep ) ;\n CHECK_BETTER ( up , tr - hstep , tc ) ;\n CHECK_BETTER ( diag , tr - hstep , tc + hstep ) ;\n break ;\n }\n }\n else {\n FIRST_LEVEL_CHECKS ;\n if ( halfiters > 1 ) {\n SECOND_LEVEL_CHECKS ;\n }\n }\n tr = br ;\n tc = bc ;\n if ( forced_stop != 2 ) {\n hstep >>= 1 ;\n FIRST_LEVEL_CHECKS ;\n if ( quarteriters > 1 ) {\n SECOND_LEVEL_CHECKS ;\n }\n tr = br ;\n tc = bc ;\n }\n if ( allow_hp && vp9_use_mv_hp ( ref_mv ) && forced_stop == 0 ) {\n hstep >>= 1 ;\n FIRST_LEVEL_CHECKS ;\n if ( eighthiters > 1 ) {\n SECOND_LEVEL_CHECKS ;\n }\n tr = br ;\n tc = bc ;\n }\n ( void ) tr ;\n ( void ) tc ;\n bestmv -> row = br ;\n bestmv -> col = bc ;\n if ( ( abs ( bestmv -> col - ref_mv -> col ) > ( MAX_FULL_PEL_VAL << 3 ) ) || ( abs ( bestmv -> row - ref_mv -> row ) > ( MAX_FULL_PEL_VAL << 3 ) ) ) return INT_MAX ;\n return besterr ;\n }"}
{"idx": 9293, "target": 0, "func": "int main ( int argc ATTRIBUTE_UNUSED , char * * argv ATTRIBUTE_UNUSED ) {\n printf ( \"%s : XPath/Canonicalization and output support not compiled in\\n\" , argv [ 0 ] ) ;\n return ( 0 ) ;\n }"}
{"idx": 9294, "target": 0, "func": "int jpc_ft_synthesize ( jpc_fix_t * a , int xstart , int ystart , int width , int height , int stride ) {\n int numrows = height ;\n int numcols = width ;\n int rowparity = ystart & 1 ;\n int colparity = xstart & 1 ;\n int maxcols ;\n jpc_fix_t * startptr ;\n int i ;\n startptr = & a [ 0 ] ;\n for ( i = 0 ;\n i < numrows ;\n ++ i ) {\n jpc_ft_invlift_row ( startptr , numcols , colparity ) ;\n jpc_qmfb_join_row ( startptr , numcols , colparity ) ;\n startptr += stride ;\n }\n maxcols = ( numcols / JPC_QMFB_COLGRPSIZE ) * JPC_QMFB_COLGRPSIZE ;\n startptr = & a [ 0 ] ;\n for ( i = 0 ;\n i < maxcols ;\n i += JPC_QMFB_COLGRPSIZE ) {\n jpc_ft_invlift_colgrp ( startptr , numrows , stride , rowparity ) ;\n jpc_qmfb_join_colgrp ( startptr , numrows , stride , rowparity ) ;\n startptr += JPC_QMFB_COLGRPSIZE ;\n }\n if ( maxcols < numcols ) {\n jpc_ft_invlift_colres ( startptr , numrows , numcols - maxcols , stride , rowparity ) ;\n jpc_qmfb_join_colres ( startptr , numrows , numcols - maxcols , stride , rowparity ) ;\n }\n return 0 ;\n }"}
{"idx": 9295, "target": 0, "func": "void completion_last_message_remove ( const char * nick ) {\n LAST_MSG_REC * rec ;\n g_return_if_fail ( nick != NULL ) ;\n rec = last_msg_find ( global_lastmsgs , nick ) ;\n if ( rec != NULL ) last_msg_destroy ( & global_lastmsgs , rec ) ;\n }"}
{"idx": 9296, "target": 0, "func": "static void printusage ( struct xcmd * xcp , FILE * fp ) {\n register int i ;\n ( void ) fprintf ( fp , \"usage: %s\" , xcp -> keyword ) ;\n for ( i = 0 ;\n i < MAXARGS && xcp -> arg [ i ] != NO ;\n i ++ ) {\n if ( xcp -> arg [ i ] & OPT ) ( void ) fprintf ( fp , \" [ %s ]\" , xcp -> desc [ i ] ) ;\n else ( void ) fprintf ( fp , \" %s\" , xcp -> desc [ i ] ) ;\n }\n ( void ) fprintf ( fp , \"\\n\" ) ;\n }"}
{"idx": 9297, "target": 0, "func": "static void sig_server_reconnect_removed ( RECONNECT_REC * reconnect ) {\n g_return_if_fail ( reconnect != NULL ) ;\n printformat ( NULL , NULL , MSGLEVEL_CLIENTNOTICE , TXT_RECONNECT_REMOVED , reconnect -> conn -> address , reconnect -> conn -> port , reconnect -> conn -> chatnet == NULL ? \"\" : reconnect -> conn -> chatnet ) ;\n }"}
{"idx": 9298, "target": 1, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER )"}
{"idx": 9299, "target": 1, "func": "static int ipvideo_decode_block_opcode_0x6 ( IpvideoContext * s ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \" Interplay video: Help! Mystery opcode 0x6 seen\\n\" ) ;\n return 0 ;\n }"}
{"idx": 9300, "target": 0, "func": "static int dissect_h245_FECdata_mode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_FECdata_mode , FECdata_mode_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 9301, "target": 0, "func": "static void U_CALLCONV uprv_writeSwapUInt32 ( uint32_t * p , uint32_t x ) {\n * p = ( uint32_t ) ( ( x << 24 ) | ( ( x << 8 ) & 0xff0000 ) | ( ( x >> 8 ) & 0xff00 ) | ( x >> 24 ) ) ;\n }"}
{"idx": 9302, "target": 0, "func": "static void count_segs ( const VP9_COMMON * cm , MACROBLOCKD * xd , const TileInfo * tile , MODE_INFO * mi , int * no_pred_segcounts , int ( * temporal_predictor_count ) [ 2 ] , int * t_unpred_seg_counts , int bw , int bh , int mi_row , int mi_col ) {\n int segment_id ;\n if ( mi_row >= cm -> mi_rows || mi_col >= cm -> mi_cols ) return ;\n xd -> mi = mi ;\n segment_id = xd -> mi [ 0 ] . src_mi -> mbmi . segment_id ;\n set_mi_row_col ( xd , tile , mi_row , bh , mi_col , bw , cm -> mi_rows , cm -> mi_cols ) ;\n no_pred_segcounts [ segment_id ] ++ ;\n if ( cm -> frame_type != KEY_FRAME ) {\n const BLOCK_SIZE bsize = xd -> mi [ 0 ] . src_mi -> mbmi . sb_type ;\n const int pred_segment_id = vp9_get_segment_id ( cm , cm -> last_frame_seg_map , bsize , mi_row , mi_col ) ;\n const int pred_flag = pred_segment_id == segment_id ;\n const int pred_context = vp9_get_pred_context_seg_id ( xd ) ;\n xd -> mi [ 0 ] . src_mi -> mbmi . seg_id_predicted = pred_flag ;\n temporal_predictor_count [ pred_context ] [ pred_flag ] ++ ;\n if ( ! pred_flag ) t_unpred_seg_counts [ segment_id ] ++ ;\n }\n }"}
{"idx": 9303, "target": 0, "func": "static void gx_ttfExport__CurveTo ( ttfExport * self , FloatPoint * p0 , FloatPoint * p1 , FloatPoint * p2 ) {\n gx_ttfExport * e = ( gx_ttfExport * ) self ;\n if ( ! e -> error ) {\n if ( e -> monotonize ) {\n curve_segment s ;\n s . notes = sn_none ;\n s . p1 . x = float2fixed ( p0 -> x ) , s . p1 . y = float2fixed ( p0 -> y ) , s . p2 . x = float2fixed ( p1 -> x ) , s . p2 . y = float2fixed ( p1 -> y ) , s . pt . x = float2fixed ( p2 -> x ) , s . pt . y = float2fixed ( p2 -> y ) ;\n e -> error = gx_curve_monotonize ( e -> path , & s ) ;\n }\n else e -> error = gx_path_add_curve_notes ( e -> path , float2fixed ( p0 -> x ) , float2fixed ( p0 -> y ) , float2fixed ( p1 -> x ) , float2fixed ( p1 -> y ) , float2fixed ( p2 -> x ) , float2fixed ( p2 -> y ) , sn_none ) ;\n }\n }"}
{"idx": 9304, "target": 0, "func": "static char * php_zip_make_relative_path ( char * path , int path_len ) {\n char * path_begin = path ;\n size_t i ;\n if ( path_len < 1 || path == NULL ) {\n return NULL ;\n }\n if ( IS_SLASH ( path [ 0 ] ) ) {\n return path + 1 ;\n }\n i = path_len ;\n while ( 1 ) {\n while ( i > 0 && ! IS_SLASH ( path [ i ] ) ) {\n i -- ;\n }\n if ( ! i ) {\n return path ;\n }\n if ( i >= 2 && ( path [ i - 1 ] == '.' || path [ i - 1 ] == ':' ) ) {\n path_begin = path + i + 1 ;\n break ;\n }\n i -- ;\n }\n return path_begin ;\n }"}
{"idx": 9305, "target": 0, "func": "int NETSCAPE_SPKI_sign ( NETSCAPE_SPKI * x , EVP_PKEY * pkey , const EVP_MD * md ) {\n return ( ASN1_item_sign ( ASN1_ITEM_rptr ( NETSCAPE_SPKAC ) , x -> sig_algor , NULL , x -> signature , x -> spkac , pkey , md ) ) ;\n }"}
{"idx": 9306, "target": 0, "func": "static int dissect_usb_vid_descriptor ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n int offset = 0 ;\n guint8 descriptor_len ;\n guint8 descriptor_type ;\n gint bytes_available ;\n usb_conv_info_t * usb_conv_info = ( usb_conv_info_t * ) data ;\n tvbuff_t * desc_tvb ;\n descriptor_len = tvb_get_guint8 ( tvb , offset ) ;\n descriptor_type = tvb_get_guint8 ( tvb , offset + 1 ) ;\n bytes_available = tvb_captured_length_remaining ( tvb , offset ) ;\n desc_tvb = tvb_new_subset ( tvb , 0 , bytes_available , descriptor_len ) ;\n if ( descriptor_type == CS_ENDPOINT ) {\n offset = dissect_usb_video_endpoint_descriptor ( tree , desc_tvb , descriptor_len ) ;\n }\n else if ( descriptor_type == CS_INTERFACE ) {\n if ( usb_conv_info && usb_conv_info -> interfaceSubclass == SC_VIDEOCONTROL ) {\n offset = dissect_usb_video_control_interface_descriptor ( tree , desc_tvb , descriptor_len , pinfo , usb_conv_info ) ;\n }\n else if ( usb_conv_info && usb_conv_info -> interfaceSubclass == SC_VIDEOSTREAMING ) {\n offset = dissect_usb_video_streaming_interface_descriptor ( tree , desc_tvb , descriptor_len ) ;\n }\n }\n return offset ;\n }"}
{"idx": 9307, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( SessionRestorePageLoadMetricsBrowserTest , RestoreForeignTab ) {\n sessions : : SerializedNavigationEntry nav = sessions : : SerializedNavigationEntryTestHelper : : CreateNavigation ( GetTestURL ( ) . spec ( ) , \"one\" ) ;\n sync_pb : : SessionTab sync_data ;\n sync_data . set_tab_visual_index ( 0 ) ;\n sync_data . set_current_navigation_index ( 1 ) ;\n sync_data . set_pinned ( false ) ;\n sync_data . add_navigation ( ) -> CopyFrom ( nav . ToSyncData ( ) ) ;\n sessions : : SessionTab tab ;\n tab . SetFromSyncData ( sync_data , base : : Time : : Now ( ) ) ;\n ASSERT_EQ ( 1 , browser ( ) -> tab_strip_model ( ) -> count ( ) ) ;\n content : : WebContents * tab_contents = nullptr ;\n {\n SessionRestorePaintWaiter session_restore_paint_waiter ;\n tab_contents = SessionRestore : : RestoreForeignSessionTab ( browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) , tab , WindowOpenDisposition : : CURRENT_TAB ) ;\n ASSERT_EQ ( 1 , browser ( ) -> tab_strip_model ( ) -> count ( ) ) ;\n ASSERT_TRUE ( tab_contents ) ;\n ASSERT_EQ ( GetTestURL ( ) , tab_contents -> GetURL ( ) ) ;\n session_restore_paint_waiter . WaitForForegroundTabs ( 1 ) ;\n ExpectFirstPaintMetricsTotalCount ( 1 ) ;\n }\n {\n SessionRestorePaintWaiter session_restore_paint_waiter ;\n tab_contents = SessionRestore : : RestoreForeignSessionTab ( browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) , tab , WindowOpenDisposition : : NEW_FOREGROUND_TAB ) ;\n ASSERT_EQ ( 2 , browser ( ) -> tab_strip_model ( ) -> count ( ) ) ;\n ASSERT_EQ ( 1 , browser ( ) -> tab_strip_model ( ) -> active_index ( ) ) ;\n ASSERT_TRUE ( tab_contents ) ;\n ASSERT_EQ ( GetTestURL ( ) , tab_contents -> GetURL ( ) ) ;\n session_restore_paint_waiter . WaitForForegroundTabs ( 1 ) ;\n ExpectFirstPaintMetricsTotalCount ( 2 ) ;\n }\n {\n tab_contents = SessionRestore : : RestoreForeignSessionTab ( browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) , tab , WindowOpenDisposition : : NEW_BACKGROUND_TAB ) ;\n ASSERT_EQ ( 3 , browser ( ) -> tab_strip_model ( ) -> count ( ) ) ;\n ASSERT_EQ ( 1 , browser ( ) -> tab_strip_model ( ) -> active_index ( ) ) ;\n ASSERT_TRUE ( tab_contents ) ;\n ASSERT_EQ ( GetTestURL ( ) , tab_contents -> GetURL ( ) ) ;\n ASSERT_NO_FATAL_FAILURE ( WaitForTabsToLoad ( browser ( ) ) ) ;\n ExpectFirstPaintMetricsTotalCount ( 2 ) ;\n }\n }"}
{"idx": 9308, "target": 0, "func": "void input_DecoderStopWait ( decoder_t * p_dec ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n vlc_mutex_lock ( & p_owner -> lock ) ;\n p_owner -> b_waiting = false ;\n vlc_cond_signal ( & p_owner -> wait_request ) ;\n vlc_mutex_unlock ( & p_owner -> lock ) ;\n }"}
{"idx": 9309, "target": 0, "func": "static inline int asv2_get_bits ( GetBitContext * gb , int n ) {\n return ff_reverse [ get_bits ( gb , n ) << ( 8 - n ) ] ;\n }"}
{"idx": 9310, "target": 0, "func": "static void activate_parameters_desktop_free ( ActivateParametersDesktop * parameters_desktop ) {\n if ( parameters_desktop -> parent_window ) {\n g_object_remove_weak_pointer ( G_OBJECT ( parameters_desktop -> parent_window ) , ( gpointer * ) & parameters_desktop -> parent_window ) ;\n }\n nautilus_file_unref ( parameters_desktop -> file ) ;\n g_free ( parameters_desktop ) ;\n }"}
{"idx": 9311, "target": 0, "func": "void wpa_sess_del ( u_char * sta ) {\n struct wpa_session * e , * tmp ;\n char tmac [ MAX_ASCII_ADDR_LEN ] ;\n pthread_mutex_lock ( & root_mutex ) ;\n LIST_FOREACH_SAFE ( e , & wpa_sess_root , next , tmp ) {\n if ( ! memcmp ( & e -> sta , sta , ETH_ADDR_LEN ) ) {\n LIST_REMOVE ( e , next ) ;\n USER_MSG ( \"WPA session deleted for [%s]\\n\" , mac_addr_ntoa ( e -> sta , tmac ) ) ;\n SAFE_FREE ( e ) ;\n break ;\n }\n }\n pthread_mutex_unlock ( & root_mutex ) ;\n }"}
{"idx": 9312, "target": 0, "func": "proto_tree * proto_tree_add_subtree_format ( proto_tree * tree , tvbuff_t * tvb , gint start , gint length , gint idx , proto_item * * tree_item , const char * format , ... ) {\n proto_tree * pt ;\n proto_item * pi ;\n va_list ap ;\n va_start ( ap , format ) ;\n pi = proto_tree_add_text_valist_internal ( tree , tvb , start , length , format , ap ) ;\n va_end ( ap ) ;\n if ( tree_item != NULL ) * tree_item = pi ;\n pt = proto_item_add_subtree ( pi , idx ) ;\n return pt ;\n }"}
{"idx": 9313, "target": 0, "func": "unsigned int vp9_sad ## m ## x ## n ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride ) {\n return sad ( src , src_stride , ref , ref_stride , m , n ) ;\n \\ }\n 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 ) {\n uint8_t comp_pred [ m * n ] ;\n vp9_comp_avg_pred ( comp_pred , second_pred , m , n , ref , ref_stride ) ;\n return sad ( src , src_stride , comp_pred , m , m , n ) ;\n \\ }\n # define sadMxNxK ( m , n , k ) void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 ) sadMxN ( 16 , 32 ) sadMxNx4D ( 16 , 32 ) sadMxN ( 16 , 16 ) sadMxNxK ( 16 , 16 , 3 ) sadMxNxK ( 16 , 16 , 8 ) sadMxNx4D ( 16 , 16 ) sadMxN ( 16 , 8 )"}
{"idx": 9314, "target": 0, "func": "static int tm2_build_huff_table ( TM2Context * ctx , TM2Codes * code ) {\n TM2Huff huff ;\n int res = 0 ;\n huff . val_bits = get_bits ( & ctx -> gb , 5 ) ;\n huff . max_bits = get_bits ( & ctx -> gb , 5 ) ;\n huff . min_bits = get_bits ( & ctx -> gb , 5 ) ;\n huff . nodes = get_bits_long ( & ctx -> gb , 17 ) ;\n huff . num = 0 ;\n if ( ( huff . val_bits < 1 ) || ( huff . val_bits > 32 ) || ( huff . max_bits < 0 ) || ( huff . max_bits > 25 ) ) {\n av_log ( ctx -> avctx , AV_LOG_ERROR , \"Incorrect tree parameters - literal \" \"length: %i, max code length: %i\\n\" , huff . val_bits , huff . max_bits ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ( huff . nodes <= 0 ) || ( huff . nodes > 0x10000 ) ) {\n av_log ( ctx -> avctx , AV_LOG_ERROR , \"Incorrect number of Huffman tree \" \"nodes: %i\\n\" , huff . nodes ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( huff . max_bits == 0 ) huff . max_bits = 1 ;\n huff . max_num = ( huff . nodes + 1 ) >> 1 ;\n huff . nums = av_mallocz ( huff . max_num * sizeof ( int ) ) ;\n huff . bits = av_mallocz ( huff . max_num * sizeof ( uint32_t ) ) ;\n huff . lens = av_mallocz ( huff . max_num * sizeof ( int ) ) ;\n res = tm2_read_tree ( ctx , 0 , 0 , & huff ) ;\n if ( huff . num != huff . max_num ) {\n av_log ( ctx -> avctx , AV_LOG_ERROR , \"Got less codes than expected: %i of %i\\n\" , huff . num , huff . max_num ) ;\n res = AVERROR_INVALIDDATA ;\n }\n if ( res >= 0 ) {\n int i ;\n res = init_vlc ( & code -> vlc , huff . max_bits , huff . max_num , huff . lens , sizeof ( int ) , sizeof ( int ) , huff . bits , sizeof ( uint32_t ) , sizeof ( uint32_t ) , 0 ) ;\n if ( res < 0 ) av_log ( ctx -> avctx , AV_LOG_ERROR , \"Cannot build VLC table\\n\" ) ;\n else {\n code -> bits = huff . max_bits ;\n code -> length = huff . max_num ;\n code -> recode = av_malloc ( code -> length * sizeof ( int ) ) ;\n for ( i = 0 ;\n i < code -> length ;\n i ++ ) code -> recode [ i ] = huff . nums [ i ] ;\n }\n }\n av_free ( huff . nums ) ;\n av_free ( huff . bits ) ;\n av_free ( huff . lens ) ;\n return res ;\n }"}
{"idx": 9315, "target": 1, "func": "static ossl_inline t2 * sk_ ## t1 ## _value ( const STACK_OF ( t1 ) * sk , int idx ) {\n return ( t2 * ) OPENSSL_sk_value ( ( const OPENSSL_STACK * ) sk , idx ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new ( sk_ ## t1 ## _compfunc compare ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new ( ( OPENSSL_sk_compfunc ) compare ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_null ( void ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_null ( ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_reserve ( sk_ ## t1 ## _compfunc compare , int n ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_reserve ( ( OPENSSL_sk_compfunc ) compare , n ) ;\n }\n static ossl_inline int sk_ ## t1 ## _reserve ( STACK_OF ( t1 ) * sk , int n ) {\n return OPENSSL_sk_reserve ( ( OPENSSL_STACK * ) sk , n ) ;\n }\n static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 9316, "target": 0, "func": "void get_command_type ( struct st_command * command ) {\n char save ;\n uint type ;\n DBUG_ENTER ( \"get_command_type\" ) ;\n if ( * command -> query == '}\n' ) {\n command -> type = Q_END_BLOCK ;\n DBUG_VOID_RETURN ;\n }\n save = command -> query [ command -> first_word_len ] ;\n command -> query [ command -> first_word_len ] = 0 ;\n type = find_type ( command -> query , & command_typelib , FIND_TYPE_NO_PREFIX ) ;\n command -> query [ command -> first_word_len ] = save ;\n if ( type > 0 ) {\n command -> type = ( enum enum_commands ) type ;\n if ( type == Q_QUERY ) {\n command -> query = command -> first_argument ;\n }\n }\n else {\n if ( command -> type != Q_COMMENT_WITH_COMMAND ) {\n command -> type = Q_QUERY ;\n }\n else {\n report_or_die ( \"Found line beginning with -- that didn't contain \" \"a valid mysqltest command, check your syntax or \" \"use # if you intended to write a comment\" ) ;\n command -> type = Q_COMMENT ;\n }\n }\n memcpy ( & command -> expected_errors , & saved_expected_errors , sizeof ( saved_expected_errors ) ) ;\n DBUG_PRINT ( \"info\" , ( \"There are %d expected errors\" , command -> expected_errors . count ) ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 9317, "target": 0, "func": "GPtrArray * proto_find_finfo ( proto_tree * tree , const int id ) {\n ffdata_t ffdata ;\n ffdata . array = g_ptr_array_new ( ) ;\n ffdata . id = id ;\n proto_tree_traverse_pre_order ( tree , find_finfo , & ffdata ) ;\n return ffdata . array ;\n }"}
{"idx": 9318, "target": 0, "func": "static inline void set_num_722 ( unsigned char * p , uint16_t value ) {\n archive_be16enc ( p , value ) ;\n }"}
{"idx": 9319, "target": 0, "func": "static int test_copy_to ( const char * from , const char * to ) {\n char buf [ TESTBUFSIZE ] ;\n int ret ;\n snprintf_func ( buf , TESTBUFSIZE , \"cp -f %s %s\" , from , to ) ;\n if ( ( ret = system ( buf ) ) != 0 ) {\n return XD3_INTERNAL ;\n }\n return 0 ;\n }"}
{"idx": 9320, "target": 0, "func": "proto_tree * proto_item_add_subtree ( proto_item * pi , const gint idx ) {\n field_info * fi ;\n if ( ! pi ) return NULL ;\n DISSECTOR_ASSERT ( idx >= 0 && idx < num_tree_types ) ;\n fi = PITEM_FINFO ( pi ) ;\n if ( ! fi ) return ( proto_tree * ) pi ;\n fi -> tree_type = idx ;\n return ( proto_tree * ) pi ;\n }"}
{"idx": 9321, "target": 0, "func": "static fz_colorspace * get_base_icc_space ( fz_context * ctx , fz_colorspace * srcs ) {\n while ( 1 ) {\n srcs = srcs -> get_base ( srcs ) ;\n if ( srcs == NULL ) fz_throw ( ctx , FZ_ERROR_GENERIC , \"Final color space should be icc or pdf-cal or lab\" ) ;\n if ( fz_colorspace_is_icc ( ctx , srcs ) || fz_colorspace_is_cal ( ctx , srcs ) || fz_colorspace_is_lab ( ctx , srcs ) ) return srcs ;\n }\n }"}
{"idx": 9322, "target": 1, "func": "char * get_arg ( char * line , my_bool get_next_arg ) {\n char * ptr , * start ;\n my_bool quoted = 0 , valid_arg = 0 ;\n char qtype = 0 ;\n ptr = line ;\n if ( get_next_arg ) {\n for ( ;\n * ptr ;\n ptr ++ ) ;\n if ( * ( ptr + 1 ) ) ptr ++ ;\n }\n else {\n while ( my_isspace ( charset_info , * ptr ) ) ptr ++ ;\n if ( * ptr == '\\\\' ) ptr += 2 ;\n else while ( * ptr && ! my_isspace ( charset_info , * ptr ) ) ptr ++ ;\n }\n if ( ! * ptr ) return NullS ;\n while ( my_isspace ( charset_info , * ptr ) ) ptr ++ ;\n if ( * ptr == '\\'' || * ptr == '\\\"' || * ptr == '`' ) {\n qtype = * ptr ;\n quoted = 1 ;\n ptr ++ ;\n }\n for ( start = ptr ;\n * ptr ;\n ptr ++ ) {\n if ( * ptr == '\\\\' && ptr [ 1 ] ) {\n strmov_overlapp ( ptr , ptr + 1 ) ;\n }\n else if ( ( ! quoted && * ptr == ' ' ) || ( quoted && * ptr == qtype ) ) {\n * ptr = 0 ;\n break ;\n }\n }\n valid_arg = ptr != start ;\n return valid_arg ? start : NullS ;\n }"}
{"idx": 9323, "target": 0, "func": "const char * hb_shape_plan_get_shaper ( hb_shape_plan_t * shape_plan ) {\n return shape_plan -> shaper_name ;\n }"}
{"idx": 9324, "target": 0, "func": "int tls1_alert_code ( int code ) {\n switch ( code ) {\n case SSL_AD_CLOSE_NOTIFY : return ( SSL3_AD_CLOSE_NOTIFY ) ;\n case SSL_AD_UNEXPECTED_MESSAGE : return ( SSL3_AD_UNEXPECTED_MESSAGE ) ;\n case SSL_AD_BAD_RECORD_MAC : return ( SSL3_AD_BAD_RECORD_MAC ) ;\n case SSL_AD_DECRYPTION_FAILED : return ( TLS1_AD_DECRYPTION_FAILED ) ;\n case SSL_AD_RECORD_OVERFLOW : return ( TLS1_AD_RECORD_OVERFLOW ) ;\n case SSL_AD_DECOMPRESSION_FAILURE : return ( SSL3_AD_DECOMPRESSION_FAILURE ) ;\n case SSL_AD_HANDSHAKE_FAILURE : return ( SSL3_AD_HANDSHAKE_FAILURE ) ;\n case SSL_AD_NO_CERTIFICATE : return ( - 1 ) ;\n case SSL_AD_BAD_CERTIFICATE : return ( SSL3_AD_BAD_CERTIFICATE ) ;\n case SSL_AD_UNSUPPORTED_CERTIFICATE : return ( SSL3_AD_UNSUPPORTED_CERTIFICATE ) ;\n case SSL_AD_CERTIFICATE_REVOKED : return ( SSL3_AD_CERTIFICATE_REVOKED ) ;\n case SSL_AD_CERTIFICATE_EXPIRED : return ( SSL3_AD_CERTIFICATE_EXPIRED ) ;\n case SSL_AD_CERTIFICATE_UNKNOWN : return ( SSL3_AD_CERTIFICATE_UNKNOWN ) ;\n case SSL_AD_ILLEGAL_PARAMETER : return ( SSL3_AD_ILLEGAL_PARAMETER ) ;\n case SSL_AD_UNKNOWN_CA : return ( TLS1_AD_UNKNOWN_CA ) ;\n case SSL_AD_ACCESS_DENIED : return ( TLS1_AD_ACCESS_DENIED ) ;\n case SSL_AD_DECODE_ERROR : return ( TLS1_AD_DECODE_ERROR ) ;\n case SSL_AD_DECRYPT_ERROR : return ( TLS1_AD_DECRYPT_ERROR ) ;\n case SSL_AD_EXPORT_RESTRICTION : return ( TLS1_AD_EXPORT_RESTRICTION ) ;\n case SSL_AD_PROTOCOL_VERSION : return ( TLS1_AD_PROTOCOL_VERSION ) ;\n case SSL_AD_INSUFFICIENT_SECURITY : return ( TLS1_AD_INSUFFICIENT_SECURITY ) ;\n case SSL_AD_INTERNAL_ERROR : return ( TLS1_AD_INTERNAL_ERROR ) ;\n case SSL_AD_USER_CANCELLED : return ( TLS1_AD_USER_CANCELLED ) ;\n case SSL_AD_NO_RENEGOTIATION : return ( TLS1_AD_NO_RENEGOTIATION ) ;\n case SSL_AD_UNSUPPORTED_EXTENSION : return ( TLS1_AD_UNSUPPORTED_EXTENSION ) ;\n case SSL_AD_CERTIFICATE_UNOBTAINABLE : return ( TLS1_AD_CERTIFICATE_UNOBTAINABLE ) ;\n case SSL_AD_UNRECOGNIZED_NAME : return ( TLS1_AD_UNRECOGNIZED_NAME ) ;\n case SSL_AD_BAD_CERTIFICATE_STATUS_RESPONSE : return ( TLS1_AD_BAD_CERTIFICATE_STATUS_RESPONSE ) ;\n case SSL_AD_BAD_CERTIFICATE_HASH_VALUE : return ( TLS1_AD_BAD_CERTIFICATE_HASH_VALUE ) ;\n case SSL_AD_UNKNOWN_PSK_IDENTITY : return ( TLS1_AD_UNKNOWN_PSK_IDENTITY ) ;\n # if 0 case DTLS1_AD_MISSING_HANDSHAKE_MESSAGE : return ( DTLS1_AD_MISSING_HANDSHAKE_MESSAGE ) ;\n # endif default : return ( - 1 ) ;\n }\n }"}
{"idx": 9325, "target": 0, "func": "static int xan_decode_frame_type0 ( AVCodecContext * avctx ) {\n XanContext * s = avctx -> priv_data ;\n uint8_t * ybuf , * prev_buf , * src = s -> scratch_buffer ;\n unsigned chroma_off , corr_off ;\n int cur , last ;\n int i , j ;\n int ret ;\n chroma_off = bytestream2_get_le32 ( & s -> gb ) ;\n corr_off = bytestream2_get_le32 ( & s -> gb ) ;\n if ( ( ret = xan_decode_chroma ( avctx , chroma_off ) ) != 0 ) return ret ;\n if ( corr_off >= ( s -> gb . buffer_end - s -> gb . buffer_start ) ) {\n av_log ( avctx , AV_LOG_WARNING , \"Ignoring invalid correction block position\\n\" ) ;\n corr_off = 0 ;\n }\n bytestream2_seek ( & s -> gb , 12 , SEEK_SET ) ;\n ret = xan_unpack_luma ( s , src , s -> buffer_size >> 1 ) ;\n if ( ret ) {\n av_log ( avctx , AV_LOG_ERROR , \"Luma decoding failed\\n\" ) ;\n return ret ;\n }\n ybuf = s -> y_buffer ;\n last = * src ++ ;\n ybuf [ 0 ] = last << 1 ;\n for ( j = 1 ;\n j < avctx -> width - 1 ;\n j += 2 ) {\n cur = ( last + * src ++ ) & 0x1F ;\n ybuf [ j ] = last + cur ;\n ybuf [ j + 1 ] = cur << 1 ;\n last = cur ;\n }\n ybuf [ j ] = last << 1 ;\n prev_buf = ybuf ;\n ybuf += avctx -> width ;\n for ( i = 1 ;\n i < avctx -> height ;\n i ++ ) {\n last = ( ( prev_buf [ 0 ] >> 1 ) + * src ++ ) & 0x1F ;\n ybuf [ 0 ] = last << 1 ;\n for ( j = 1 ;\n j < avctx -> width - 1 ;\n j += 2 ) {\n cur = ( ( prev_buf [ j + 1 ] >> 1 ) + * src ++ ) & 0x1F ;\n ybuf [ j ] = last + cur ;\n ybuf [ j + 1 ] = cur << 1 ;\n last = cur ;\n }\n ybuf [ j ] = last << 1 ;\n prev_buf = ybuf ;\n ybuf += avctx -> width ;\n }\n if ( corr_off ) {\n int dec_size ;\n bytestream2_seek ( & s -> gb , 8 + corr_off , SEEK_SET ) ;\n dec_size = xan_unpack ( s , s -> scratch_buffer , s -> buffer_size ) ;\n if ( dec_size < 0 ) dec_size = 0 ;\n for ( i = 0 ;\n i < dec_size ;\n i ++ ) s -> y_buffer [ i * 2 + 1 ] = ( s -> y_buffer [ i * 2 + 1 ] + ( s -> scratch_buffer [ i ] << 1 ) ) & 0x3F ;\n }\n src = s -> y_buffer ;\n ybuf = s -> pic . data [ 0 ] ;\n for ( j = 0 ;\n j < avctx -> height ;\n j ++ ) {\n for ( i = 0 ;\n i < avctx -> width ;\n i ++ ) ybuf [ i ] = ( src [ i ] << 2 ) | ( src [ i ] >> 3 ) ;\n src += avctx -> width ;\n ybuf += s -> pic . linesize [ 0 ] ;\n }\n return 0 ;\n }"}
{"idx": 9326, "target": 0, "func": "static __inline__ int ethtool_validate_duplex ( __u8 duplex ) {\n switch ( duplex ) {\n case DUPLEX_HALF : case DUPLEX_FULL : case DUPLEX_UNKNOWN : return 1 ;\n }\n return 0 ;\n }"}
{"idx": 9327, "target": 0, "func": "static inline void e1000e_process_ts_option ( E1000ECore * core , struct e1000_tx_desc * dp ) {\n if ( le32_to_cpu ( dp -> upper . data ) & E1000_TXD_EXTCMD_TSTAMP ) {\n trace_e1000e_wrn_no_ts_support ( ) ;\n }\n }"}
{"idx": 9328, "target": 0, "func": "hb_codepoint_t hb_set_get_max ( const hb_set_t * set ) {\n return set -> get_max ( ) ;\n }"}
{"idx": 9329, "target": 0, "func": "gcry_error_t gcry_sexp_build_array ( gcry_sexp_t * retsexp , size_t * erroff , const char * format , void * * arg_list ) {\n return sexp_sscan ( retsexp , erroff , format , strlen ( format ) , 1 , arg_list ) ;\n }"}
{"idx": 9330, "target": 0, "func": "const EVP_CIPHER * EVP_aes_ ## keylen ## _ ## mode ( void ) \\ {\n return & aes_ ## keylen ## _ ## mode ;\n }\n # 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_CAPABLE ( OPENSSL_armcap_P & ARMV7_NEON ) # endif # if defined ( VPAES_ASM ) # define VPAES_CAPABLE ( OPENSSL_armcap_P & ARMV7_NEON ) # endif # define HWAES_CAPABLE ( OPENSSL_armcap_P & ARMV8_AES ) # define HWAES_set_encrypt_key aes_v8_set_encrypt_key # define HWAES_set_decrypt_key aes_v8_set_decrypt_key # define HWAES_encrypt aes_v8_encrypt # define HWAES_decrypt aes_v8_decrypt # define HWAES_cbc_encrypt aes_v8_cbc_encrypt # define HWAES_ctr32_encrypt_blocks aes_v8_ctr32_encrypt_blocks # endif # endif # if defined ( HWAES_CAPABLE ) int HWAES_set_encrypt_key ( const unsigned char * userKey , const int bits , AES_KEY * key ) ;\n int HWAES_set_decrypt_key ( const unsigned char * userKey , const int bits , AES_KEY * key ) ;\n void HWAES_encrypt ( const unsigned char * in , unsigned char * out , const AES_KEY * key ) ;\n void HWAES_decrypt ( const unsigned char * in , unsigned char * out , const AES_KEY * key ) ;\n void HWAES_cbc_encrypt ( const unsigned char * in , unsigned char * out , size_t length , const AES_KEY * key , unsigned char * ivec , const int enc ) ;\n void HWAES_ctr32_encrypt_blocks ( const unsigned char * in , unsigned char * out , size_t len , const AES_KEY * key , const unsigned char ivec [ 16 ] ) ;\n void HWAES_xts_encrypt ( const unsigned char * inp , unsigned char * out , size_t len , const AES_KEY * key1 , const AES_KEY * key2 , const unsigned char iv [ 16 ] ) ;\n void HWAES_xts_decrypt ( const unsigned char * inp , unsigned char * out , size_t len , const AES_KEY * key1 , const AES_KEY * key2 , const unsigned char iv [ 16 ] ) ;\n # endif # define BLOCK_CIPHER_generic_pack ( nid , keylen , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 16 , 16 , cbc , cbc , CBC , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 16 , 0 , ecb , ecb , ECB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , ofb128 , ofb , OFB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb128 , cfb , CFB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb1 , cfb1 , CFB , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb8 , cfb8 , CFB , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , ctr , ctr , CTR , flags ) static int aes_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n int ret , mode ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n mode = EVP_CIPHER_CTX_mode ( ctx ) ;\n if ( ( mode == EVP_CIPH_ECB_MODE || mode == EVP_CIPH_CBC_MODE ) && ! enc ) {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_decrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n # endif }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CBC_MODE ) {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = ( cbc128_f ) bsaes_cbc_encrypt ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n }\n }\n else # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_encrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n else # endif # ifdef HWAES_ctr32_encrypt_blocks if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) HWAES_ctr32_encrypt_blocks ;\n else # endif ( void ) 0 ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CTR_MODE ) {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . ctr = ( ctr128_f ) bsaes_ctr32_encrypt_blocks ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n # ifdef AES_CTR_ASM if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) AES_ctr32_encrypt ;\n # endif }\n if ( ret < 0 ) {\n EVPerr ( EVP_F_AES_INIT_KEY , EVP_R_AES_KEY_SETUP_FAILED ) ;\n return 0 ;\n }\n return 1 ;\n }\n static int aes_cbc_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( dat -> stream . cbc ) ( * dat -> stream . cbc ) ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_encrypting ( ctx ) ) ;\n else if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) CRYPTO_cbc128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , dat -> block ) ;\n else CRYPTO_cbc128_decrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , dat -> block ) ;\n return 1 ;\n }\n static int aes_ecb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n size_t bl = EVP_CIPHER_CTX_block_size ( ctx ) ;\n size_t i ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( len < bl ) return 1 ;\n for ( i = 0 , len -= bl ;\n i <= len ;\n i += bl ) ( * dat -> block ) ( in + i , out + i , & dat -> ks ) ;\n return 1 ;\n }\n static int aes_ofb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_ofb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb8_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_8_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb1_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( EVP_CIPHER_CTX_test_flags ( ctx , EVP_CIPH_FLAG_LENGTH_BITS ) ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n while ( len >= MAXBITCHUNK ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , MAXBITCHUNK * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n len -= MAXBITCHUNK ;\n }\n if ( len ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n }\n return 1 ;\n }\n static int aes_ctr_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n unsigned int num = EVP_CIPHER_CTX_num ( ctx ) ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( dat -> stream . ctr ) CRYPTO_ctr128_encrypt_ctr32 ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> stream . ctr ) ;\n else CRYPTO_ctr128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n BLOCK_CIPHER_generic_pack ( NID_aes , 128 , 0 ) BLOCK_CIPHER_generic_pack ( NID_aes , 192 , 0 ) BLOCK_CIPHER_generic_pack ( NID_aes , 256 , 0 ) static int aes_gcm_cleanup ( EVP_CIPHER_CTX * c ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , c ) ;\n OPENSSL_cleanse ( & gctx -> gcm , sizeof ( gctx -> gcm ) ) ;\n if ( gctx -> iv != EVP_CIPHER_CTX_iv_noconst ( c ) ) OPENSSL_free ( gctx -> iv ) ;\n return 1 ;\n }\n static void ctr64_inc ( unsigned char * counter ) {\n int n = 8 ;\n unsigned char c ;\n do {\n -- n ;\n c = counter [ n ] ;\n ++ c ;\n counter [ n ] = c ;\n if ( c ) return ;\n }\n while ( n ) ;\n }\n static int aes_gcm_ctrl ( EVP_CIPHER_CTX * c , int type , int arg , void * ptr ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , c ) ;\n switch ( type ) {\n case EVP_CTRL_INIT : gctx -> key_set = 0 ;\n gctx -> iv_set = 0 ;\n gctx -> ivlen = EVP_CIPHER_CTX_iv_length ( c ) ;\n gctx -> iv = EVP_CIPHER_CTX_iv_noconst ( c ) ;\n gctx -> taglen = - 1 ;\n gctx -> iv_gen = 0 ;\n gctx -> tls_aad_len = - 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_IVLEN : if ( arg <= 0 ) return 0 ;\n if ( ( arg > EVP_MAX_IV_LENGTH ) && ( arg > gctx -> ivlen ) ) {\n if ( gctx -> iv != EVP_CIPHER_CTX_iv_noconst ( c ) ) OPENSSL_free ( gctx -> iv ) ;\n gctx -> iv = OPENSSL_malloc ( arg ) ;\n if ( gctx -> iv == NULL ) return 0 ;\n }\n gctx -> ivlen = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_TAG : if ( arg <= 0 || arg > 16 || EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n gctx -> taglen = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_GET_TAG : if ( arg <= 0 || arg > 16 || ! EVP_CIPHER_CTX_encrypting ( c ) || gctx -> taglen < 0 ) return 0 ;\n memcpy ( ptr , EVP_CIPHER_CTX_buf_noconst ( c ) , arg ) ;\n return 1 ;\n case EVP_CTRL_GCM_SET_IV_FIXED : if ( arg == - 1 ) {\n memcpy ( gctx -> iv , ptr , gctx -> ivlen ) ;\n gctx -> iv_gen = 1 ;\n return 1 ;\n }\n if ( ( arg < 4 ) || ( gctx -> ivlen - arg ) < 8 ) return 0 ;\n if ( arg ) memcpy ( gctx -> iv , ptr , arg ) ;\n if ( EVP_CIPHER_CTX_encrypting ( c ) && RAND_bytes ( gctx -> iv + arg , gctx -> ivlen - arg ) <= 0 ) return 0 ;\n gctx -> iv_gen = 1 ;\n return 1 ;\n case EVP_CTRL_GCM_IV_GEN : if ( gctx -> iv_gen == 0 || gctx -> key_set == 0 ) return 0 ;\n CRYPTO_gcm128_setiv ( & gctx -> gcm , gctx -> iv , gctx -> ivlen ) ;\n if ( arg <= 0 || arg > gctx -> ivlen ) arg = gctx -> ivlen ;\n memcpy ( ptr , gctx -> iv + gctx -> ivlen - arg , arg ) ;\n ctr64_inc ( gctx -> iv + gctx -> ivlen - 8 ) ;\n gctx -> iv_set = 1 ;\n return 1 ;\n case EVP_CTRL_GCM_SET_IV_INV : if ( gctx -> iv_gen == 0 || gctx -> key_set == 0 || EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( gctx -> iv + gctx -> ivlen - arg , ptr , arg ) ;\n CRYPTO_gcm128_setiv ( & gctx -> gcm , gctx -> iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_TLS1_AAD : if ( arg != EVP_AEAD_TLS1_AAD_LEN ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n gctx -> tls_aad_len = arg ;\n {\n unsigned int len = EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] << 8 | EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] ;\n if ( len < EVP_GCM_TLS_EXPLICIT_IV_LEN ) return 0 ;\n len -= EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n if ( ! EVP_CIPHER_CTX_encrypting ( c ) ) {\n if ( len < EVP_GCM_TLS_TAG_LEN ) return 0 ;\n len -= EVP_GCM_TLS_TAG_LEN ;\n }\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] = len >> 8 ;\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] = len & 0xff ;\n }\n return EVP_GCM_TLS_TAG_LEN ;\n case EVP_CTRL_COPY : {\n EVP_CIPHER_CTX * out = ptr ;\n EVP_AES_GCM_CTX * gctx_out = EVP_C_DATA ( EVP_AES_GCM_CTX , out ) ;\n if ( gctx -> gcm . key ) {\n if ( gctx -> gcm . key != & gctx -> ks ) return 0 ;\n gctx_out -> gcm . key = & gctx_out -> ks ;\n }\n if ( gctx -> iv == EVP_CIPHER_CTX_iv_noconst ( c ) ) gctx_out -> iv = EVP_CIPHER_CTX_iv_noconst ( out ) ;\n else {\n gctx_out -> iv = OPENSSL_malloc ( gctx -> ivlen ) ;\n if ( gctx_out -> iv == NULL ) return 0 ;\n memcpy ( gctx_out -> iv , gctx -> iv , gctx -> ivlen ) ;\n }\n return 1 ;\n }\n default : return - 1 ;\n }\n }\n static int aes_gcm_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n if ( ! iv && ! key ) return 1 ;\n if ( key ) {\n do {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) HWAES_encrypt ) ;\n # ifdef HWAES_ctr32_encrypt_blocks gctx -> ctr = ( ctr128_f ) HWAES_ctr32_encrypt_blocks ;\n # else gctx -> ctr = NULL ;\n # endif break ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE ) {\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) AES_encrypt ) ;\n gctx -> ctr = ( ctr128_f ) bsaes_ctr32_encrypt_blocks ;\n break ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) vpaes_encrypt ) ;\n gctx -> ctr = NULL ;\n break ;\n }\n else # endif ( void ) 0 ;\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) AES_encrypt ) ;\n # ifdef AES_CTR_ASM gctx -> ctr = ( ctr128_f ) AES_ctr32_encrypt ;\n # else gctx -> ctr = NULL ;\n # endif }\n while ( 0 ) ;\n if ( iv == NULL && gctx -> iv_set ) iv = gctx -> iv ;\n if ( iv ) {\n CRYPTO_gcm128_setiv ( & gctx -> gcm , iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n }\n gctx -> key_set = 1 ;\n }\n else {\n if ( gctx -> key_set ) CRYPTO_gcm128_setiv ( & gctx -> gcm , iv , gctx -> ivlen ) ;\n else memcpy ( gctx -> iv , iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n gctx -> iv_gen = 0 ;\n }\n return 1 ;\n }\n static int aes_gcm_tls_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n int rv = - 1 ;\n if ( out != in || len < ( EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ) ) return - 1 ;\n if ( EVP_CIPHER_CTX_ctrl ( ctx , EVP_CIPHER_CTX_encrypting ( ctx ) ? EVP_CTRL_GCM_IV_GEN : EVP_CTRL_GCM_SET_IV_INV , EVP_GCM_TLS_EXPLICIT_IV_LEN , out ) <= 0 ) goto err ;\n if ( CRYPTO_gcm128_aad ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , gctx -> tls_aad_len ) ) goto err ;\n in += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n out += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n len -= EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ;\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 32 && AES_GCM_ASM ( gctx ) ) {\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_encrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) goto err ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 32 && AES_GCM_ASM2 ( gctx ) ) {\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) goto err ;\n }\n out += len ;\n CRYPTO_gcm128_tag ( & gctx -> gcm , out , EVP_GCM_TLS_TAG_LEN ) ;\n rv = len + EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ;\n }\n else {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 16 && AES_GCM_ASM ( gctx ) ) {\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_decrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) goto err ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 16 && AES_GCM_ASM2 ( gctx ) ) {\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) goto err ;\n }\n CRYPTO_gcm128_tag ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , EVP_GCM_TLS_TAG_LEN ) ;\n if ( CRYPTO_memcmp ( EVP_CIPHER_CTX_buf_noconst ( ctx ) , in + len , EVP_GCM_TLS_TAG_LEN ) ) {\n OPENSSL_cleanse ( out , len ) ;\n goto err ;\n }\n rv = len ;\n }\n err : gctx -> iv_set = 0 ;\n gctx -> tls_aad_len = - 1 ;\n return rv ;\n }\n static int aes_gcm_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n if ( ! gctx -> key_set ) return - 1 ;\n if ( gctx -> tls_aad_len >= 0 ) return aes_gcm_tls_cipher ( ctx , out , in , len ) ;\n if ( ! gctx -> iv_set ) return - 1 ;\n if ( in ) {\n if ( out == NULL ) {\n if ( CRYPTO_gcm128_aad ( & gctx -> gcm , in , len ) ) return - 1 ;\n }\n else if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 32 && AES_GCM_ASM ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_encrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) return - 1 ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 32 && AES_GCM_ASM2 ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) return - 1 ;\n }\n }\n else {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 16 && AES_GCM_ASM ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_decrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) return - 1 ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 16 && AES_GCM_ASM2 ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) return - 1 ;\n }\n }\n return len ;\n }\n else {\n if ( ! EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> taglen < 0 ) return - 1 ;\n if ( CRYPTO_gcm128_finish ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , gctx -> taglen ) != 0 ) return - 1 ;\n gctx -> iv_set = 0 ;\n return 0 ;\n }\n CRYPTO_gcm128_tag ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , 16 ) ;\n gctx -> taglen = 16 ;\n gctx -> iv_set = 0 ;\n return 0 ;\n }\n }\n # define CUSTOM_FLAGS ( EVP_CIPH_FLAG_DEFAULT_ASN1 \\ | EVP_CIPH_CUSTOM_IV | EVP_CIPH_FLAG_CUSTOM_CIPHER \\ | EVP_CIPH_ALWAYS_CALL_INIT | EVP_CIPH_CTRL_INIT \\ | EVP_CIPH_CUSTOM_COPY ) BLOCK_CIPHER_custom ( NID_aes , 128 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS )"}
{"idx": 9331, "target": 0, "func": "static void _slurm_rpc_resv_create ( slurm_msg_t * msg ) {\n int error_code = SLURM_SUCCESS ;\n DEF_TIMERS ;\n resv_desc_msg_t * resv_desc_ptr = ( resv_desc_msg_t * ) msg -> data ;\n slurmctld_lock_t node_write_lock = {\n READ_LOCK , READ_LOCK , WRITE_LOCK , READ_LOCK , NO_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n START_TIMER ;\n debug2 ( \"Processing RPC: REQUEST_CREATE_RESERVATION from uid=%d\" , uid ) ;\n if ( ! validate_operator ( uid ) ) {\n error_code = ESLURM_USER_ID_MISSING ;\n error ( \"Security violation, CREATE_RESERVATION RPC from uid=%d\" , uid ) ;\n }\n if ( error_code == SLURM_SUCCESS ) {\n lock_slurmctld ( node_write_lock ) ;\n error_code = create_resv ( resv_desc_ptr ) ;\n unlock_slurmctld ( node_write_lock ) ;\n END_TIMER2 ( \"_slurm_rpc_resv_create\" ) ;\n }\n if ( error_code ) {\n if ( resv_desc_ptr -> name ) {\n info ( \"_slurm_rpc_resv_create reservation=%s: %s\" , resv_desc_ptr -> name , slurm_strerror ( error_code ) ) ;\n }\n else {\n info ( \"_slurm_rpc_resv_create: %s\" , slurm_strerror ( error_code ) ) ;\n }\n slurm_send_rc_msg ( msg , error_code ) ;\n }\n else {\n slurm_msg_t response_msg ;\n reservation_name_msg_t resv_resp_msg ;\n debug2 ( \"_slurm_rpc_resv_create complete for %s %s\" , resv_desc_ptr -> name , TIME_STR ) ;\n slurm_msg_t_init ( & response_msg ) ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n resv_resp_msg . name = resv_desc_ptr -> name ;\n response_msg . msg_type = RESPONSE_CREATE_RESERVATION ;\n response_msg . data = & resv_resp_msg ;\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n queue_job_scheduler ( ) ;\n }\n }"}
{"idx": 9332, "target": 1, "func": "static const DataHeader * pointerTOCLookupFn ( const UDataMemory * pData , const char * name , int32_t * pLength , UErrorCode * pErrorCode ) {\n if ( pData -> toc != NULL ) {\n const PointerTOC * toc = ( PointerTOC * ) pData -> toc ;\n int32_t number , count = ( int32_t ) toc -> count ;\n # if defined ( UDATA_DEBUG_DUMP ) for ( number = 0 ;\n number < count ;\n ++ number ) {\n fprintf ( stderr , \"\\tx%d: %s\\n\" , number , toc -> entry [ number ] . entryName ) ;\n }\n # endif number = pointerTOCPrefixBinarySearch ( name , toc -> entry , count ) ;\n if ( number >= 0 ) {\n # ifdef UDATA_DEBUG fprintf ( stderr , \"%s: Found.\\n\" , toc -> entry [ number ] . entryName ) ;\n # endif * pLength = - 1 ;\n return UDataMemory_normalizeDataPointer ( toc -> entry [ number ] . pHeader ) ;\n }\n else {\n # ifdef UDATA_DEBUG fprintf ( stderr , \"%s: Not found.\\n\" , name ) ;\n # endif return NULL ;\n }\n }\n else {\n return pData -> pHeader ;\n }\n }"}
{"idx": 9333, "target": 0, "func": "static void encode_parse_info ( VC2EncContext * s , enum DiracParseCodes pcode ) {\n uint32_t cur_pos , dist ;\n avpriv_align_put_bits ( & s -> pb ) ;\n cur_pos = put_bits_count ( & s -> pb ) >> 3 ;\n avpriv_put_string ( & s -> pb , \"BBCD\" , 0 ) ;\n put_bits ( & s -> pb , 8 , pcode ) ;\n dist = cur_pos - s -> next_parse_offset ;\n AV_WB32 ( s -> pb . buf + s -> next_parse_offset + 5 , dist ) ;\n s -> next_parse_offset = cur_pos ;\n put_bits32 ( & s -> pb , pcode == DIRAC_PCODE_END_SEQ ? 13 : 0 ) ;\n put_bits32 ( & s -> pb , s -> last_parse_code == DIRAC_PCODE_END_SEQ ? 13 : dist ) ;\n s -> last_parse_code = pcode ;\n }"}
{"idx": 9334, "target": 0, "func": "static void Type_Screening_Free ( struct _cms_typehandler_struct * self , void * Ptr ) {\n _cmsFree ( self -> ContextID , Ptr ) ;\n }"}
{"idx": 9335, "target": 0, "func": "static DeviceState * qdev_find_recursive ( BusState * bus , const char * id ) {\n DeviceState * dev , * ret ;\n BusState * child ;\n QLIST_FOREACH ( dev , & bus -> children , sibling ) {\n if ( dev -> id && strcmp ( dev -> id , id ) == 0 ) return dev ;\n QLIST_FOREACH ( child , & dev -> child_bus , sibling ) {\n ret = qdev_find_recursive ( child , id ) ;\n if ( ret ) {\n return ret ;\n }\n }\n }\n return NULL ;\n }"}
{"idx": 9336, "target": 0, "func": "static int file_eofer ( Gif_Reader * grr ) {\n int c = getc ( grr -> f ) ;\n if ( c == EOF ) return 1 ;\n else {\n ungetc ( c , grr -> f ) ;\n return 0 ;\n }\n }"}
{"idx": 9337, "target": 0, "func": "static int nextch ( IO * wrapper ) {\n int ch ;\n _IO * io = wrapper -> top ;\n static const char * foguvec [ ] = {\n \"moveto \" , \"rlineto \" , \"rrcurveto \" , \" \" , \" \" , \"Cache \" , \"10 div setlinewidth \" , \"ShowInt \" , \" \" , \" \" , \" \" , \" \" , \"FillStroke \" , \" \" , \" \" , \"SetWid \" , \"100 mul add \" , \"togNS_ \" , \" \" , \"closepath \" , \" \" , \"SG \" }\n ;\n while ( io != NULL ) {\n if ( io -> backedup != EOF ) {\n ch = io -> backedup ;\n io -> backedup = EOF ;\n return ( ch ) ;\n }\n else if ( io -> ps != NULL ) {\n if ( ( ch = getc ( io -> ps ) ) != EOF ) return ( ch ) ;\n }\n else if ( io -> fog != NULL ) {\n if ( io -> macro != NULL && * io -> macro != '\\0' ) return ( * ( io -> macro ++ ) ) ;\n ch = getfoghex ( io ) ;\n if ( ch >= 233 ) {\n io -> macro = foguvec [ ch - 233 ] ;\n return ( * ( io -> macro ++ ) ) ;\n }\n else if ( ch != EOF && ch < 200 ) {\n sprintf ( io -> fogbuf , \"%d \" , ch - 100 ) ;\n io -> macro = io -> fogbuf ;\n return ( * ( io -> macro ++ ) ) ;\n }\n else if ( ch != EOF ) {\n sprintf ( io -> fogbuf , \"%d %s \" , ch - 233 + 17 , io -> fogns ? \"2 exch exp 3 1 roll 100 mul add mul\" : \"100 mul add\" ) ;\n io -> macro = io -> fogbuf ;\n return ( * ( io -> macro ++ ) ) ;\n }\n }\n else {\n if ( ( ch = * ( io -> macro ++ ) ) != '\\0' ) return ( ch ) ;\n if ( -- io -> cnt > 0 ) {\n io -> macro = io -> start ;\n return ( nextch ( wrapper ) ) ;\n }\n }\n wrapper -> top = io -> prev ;\n if ( io -> isstopped ) wrapper -> endedstopped = true ;\n if ( io -> start != NULL ) free ( io -> start ) ;\n io -> start = NULL ;\n free ( io ) ;\n io = wrapper -> top ;\n }\n return ( EOF ) ;\n }"}
{"idx": 9338, "target": 0, "func": "void BrotliStateCleanupAfterMetablock ( BrotliState * s ) {\n BROTLI_FREE ( s , s -> context_modes ) ;\n BROTLI_FREE ( s , s -> context_map ) ;\n BROTLI_FREE ( s , s -> dist_context_map ) ;\n BrotliHuffmanTreeGroupRelease ( s , & s -> literal_hgroup ) ;\n BrotliHuffmanTreeGroupRelease ( s , & s -> insert_copy_hgroup ) ;\n BrotliHuffmanTreeGroupRelease ( s , & s -> distance_hgroup ) ;\n }"}
{"idx": 9339, "target": 0, "func": "int fz_colorspace_is_lab ( fz_context * ctx , const fz_colorspace * cs ) {\n return cs && cs -> type == FZ_COLORSPACE_LAB ;\n }"}
{"idx": 9340, "target": 0, "func": "static bool contain_agg_clause_walker ( Node * node , void * context ) {\n if ( node == NULL ) return false ;\n if ( IsA ( node , Aggref ) ) {\n Assert ( ( ( Aggref * ) node ) -> agglevelsup == 0 ) ;\n return true ;\n }\n if ( IsA ( node , GroupingFunc ) ) {\n Assert ( ( ( GroupingFunc * ) node ) -> agglevelsup == 0 ) ;\n return true ;\n }\n Assert ( ! IsA ( node , SubLink ) ) ;\n return expression_tree_walker ( node , contain_agg_clause_walker , context ) ;\n }"}
{"idx": 9341, "target": 0, "func": "static Datum ExecEvalWholeRowVar ( WholeRowVarExprState * wrvstate , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n Var * variable = ( Var * ) wrvstate -> xprstate . expr ;\n TupleTableSlot * slot ;\n TupleDesc output_tupdesc ;\n MemoryContext oldcontext ;\n bool needslow = false ;\n if ( isDone ) * isDone = ExprSingleResult ;\n Assert ( variable -> varattno == InvalidAttrNumber ) ;\n switch ( variable -> varno ) {\n case INNER_VAR : slot = econtext -> ecxt_innertuple ;\n break ;\n case OUTER_VAR : slot = econtext -> ecxt_outertuple ;\n break ;\n default : slot = econtext -> ecxt_scantuple ;\n break ;\n }\n if ( wrvstate -> parent ) {\n PlanState * subplan = NULL ;\n switch ( nodeTag ( wrvstate -> parent ) ) {\n case T_SubqueryScanState : subplan = ( ( SubqueryScanState * ) wrvstate -> parent ) -> subplan ;\n break ;\n case T_CteScanState : subplan = ( ( CteScanState * ) wrvstate -> parent ) -> cteplanstate ;\n break ;\n default : break ;\n }\n if ( subplan ) {\n bool junk_filter_needed = false ;\n ListCell * tlist ;\n foreach ( tlist , subplan -> plan -> targetlist ) {\n TargetEntry * tle = ( TargetEntry * ) lfirst ( tlist ) ;\n if ( tle -> resjunk ) {\n junk_filter_needed = true ;\n break ;\n }\n }\n if ( junk_filter_needed ) {\n oldcontext = MemoryContextSwitchTo ( econtext -> ecxt_per_query_memory ) ;\n wrvstate -> wrv_junkFilter = ExecInitJunkFilter ( subplan -> plan -> targetlist , ExecGetResultType ( subplan ) -> tdhasoid , ExecInitExtraTupleSlot ( wrvstate -> parent -> state ) ) ;\n MemoryContextSwitchTo ( oldcontext ) ;\n }\n }\n }\n if ( wrvstate -> wrv_junkFilter != NULL ) slot = ExecFilterJunk ( wrvstate -> wrv_junkFilter , slot ) ;\n if ( variable -> vartype != RECORDOID ) {\n TupleDesc var_tupdesc ;\n TupleDesc slot_tupdesc ;\n int i ;\n var_tupdesc = lookup_rowtype_tupdesc ( variable -> vartype , - 1 ) ;\n slot_tupdesc = slot -> tts_tupleDescriptor ;\n if ( var_tupdesc -> natts != slot_tupdesc -> natts ) ereport ( ERROR , ( errcode ( ERRCODE_DATATYPE_MISMATCH ) , errmsg ( \"table row type and query-specified row type do not match\" ) , errdetail_plural ( \"Table row contains %d attribute, but query expects %d.\" , \"Table row contains %d attributes, but query expects %d.\" , slot_tupdesc -> natts , slot_tupdesc -> natts , var_tupdesc -> natts ) ) ) ;\n for ( i = 0 ;\n i < var_tupdesc -> natts ;\n i ++ ) {\n Form_pg_attribute vattr = var_tupdesc -> attrs [ i ] ;\n Form_pg_attribute sattr = slot_tupdesc -> attrs [ i ] ;\n if ( vattr -> atttypid == sattr -> atttypid ) continue ;\n if ( ! vattr -> attisdropped ) ereport ( ERROR , ( errcode ( ERRCODE_DATATYPE_MISMATCH ) , errmsg ( \"table row type and query-specified row type do not match\" ) , errdetail ( \"Table has type %s at ordinal position %d, but query expects %s.\" , format_type_be ( sattr -> atttypid ) , i + 1 , format_type_be ( vattr -> atttypid ) ) ) ) ;\n if ( vattr -> attlen != sattr -> attlen || vattr -> attalign != sattr -> attalign ) needslow = true ;\n }\n oldcontext = MemoryContextSwitchTo ( econtext -> ecxt_per_query_memory ) ;\n output_tupdesc = CreateTupleDescCopy ( var_tupdesc ) ;\n MemoryContextSwitchTo ( oldcontext ) ;\n ReleaseTupleDesc ( var_tupdesc ) ;\n }\n else {\n oldcontext = MemoryContextSwitchTo ( econtext -> ecxt_per_query_memory ) ;\n output_tupdesc = CreateTupleDescCopy ( slot -> tts_tupleDescriptor ) ;\n MemoryContextSwitchTo ( oldcontext ) ;\n }\n if ( econtext -> ecxt_estate && variable -> varno <= list_length ( econtext -> ecxt_estate -> es_range_table ) ) {\n RangeTblEntry * rte = rt_fetch ( variable -> varno , econtext -> ecxt_estate -> es_range_table ) ;\n if ( rte -> eref ) ExecTypeSetColNames ( output_tupdesc , rte -> eref -> colnames ) ;\n }\n wrvstate -> wrv_tupdesc = BlessTupleDesc ( output_tupdesc ) ;\n if ( needslow ) wrvstate -> xprstate . evalfunc = ( ExprStateEvalFunc ) ExecEvalWholeRowSlow ;\n else wrvstate -> xprstate . evalfunc = ( ExprStateEvalFunc ) ExecEvalWholeRowFast ;\n return ( * wrvstate -> xprstate . evalfunc ) ( ( ExprState * ) wrvstate , econtext , isNull , isDone ) ;\n }"}
{"idx": 9342, "target": 0, "func": "const gchar * rtp_dyn_payload_get_name ( rtp_dyn_payload_t * rtp_dyn_payload , const guint8 pt ) {\n encoding_name_and_rate_t * encoding_name_and_rate_pt ;\n if ( ! rtp_dyn_payload || ! rtp_dyn_payload -> table ) return NULL ;\n encoding_name_and_rate_pt = ( encoding_name_and_rate_t * ) g_hash_table_lookup ( rtp_dyn_payload -> table , GUINT_TO_POINTER ( pt ) ) ;\n return ( encoding_name_and_rate_pt ? encoding_name_and_rate_pt -> encoding_name : NULL ) ;\n }"}
{"idx": 9343, "target": 0, "func": "static void _slurm_rpc_complete_batch_script ( slurm_msg_t * msg , bool * run_scheduler , bool running_composite ) {\n static int active_rpc_cnt = 0 ;\n int error_code = SLURM_SUCCESS , i ;\n DEF_TIMERS ;\n complete_batch_script_msg_t * comp_msg = ( complete_batch_script_msg_t * ) msg -> data ;\n slurmctld_lock_t job_write_lock = {\n NO_LOCK , WRITE_LOCK , WRITE_LOCK , NO_LOCK , READ_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n bool job_requeue = false ;\n bool dump_job = false , dump_node = false ;\n struct job_record * job_ptr = NULL ;\n char * msg_title = \"node(s)\" ;\n char * nodes = comp_msg -> node_name ;\n # ifdef HAVE_BG update_block_msg_t block_desc ;\n memset ( & block_desc , 0 , sizeof ( update_block_msg_t ) ) ;\n # endif START_TIMER ;\n debug2 ( \"Processing RPC: REQUEST_COMPLETE_BATCH_SCRIPT from \" \"uid=%u JobId=%u\" , uid , comp_msg -> job_id ) ;\n if ( ! validate_slurm_user ( uid ) ) {\n error ( \"A non superuser %u tried to complete batch job %u\" , uid , comp_msg -> job_id ) ;\n END_TIMER2 ( \"_slurm_rpc_complete_batch_script\" ) ;\n return ;\n }\n if ( ! running_composite ) {\n _throttle_start ( & active_rpc_cnt ) ;\n lock_slurmctld ( job_write_lock ) ;\n }\n job_ptr = find_job_record ( comp_msg -> job_id ) ;\n if ( job_ptr && job_ptr -> batch_host && comp_msg -> node_name && xstrcmp ( job_ptr -> batch_host , comp_msg -> node_name ) ) {\n error ( \"Batch completion for job %u sent from wrong node \" \"(%s rather than %s). \" \"Was the job requeued due to node failure?\" , comp_msg -> job_id , comp_msg -> node_name , job_ptr -> batch_host ) ;\n if ( ! running_composite ) {\n unlock_slurmctld ( job_write_lock ) ;\n _throttle_fini ( & active_rpc_cnt ) ;\n }\n slurm_send_rc_msg ( msg , error_code ) ;\n return ;\n }\n if ( association_based_accounting && job_ptr && ( job_ptr -> job_state != JOB_PENDING ) ) {\n struct step_record batch_step ;\n memset ( & batch_step , 0 , sizeof ( struct step_record ) ) ;\n batch_step . job_ptr = job_ptr ;\n batch_step . step_id = SLURM_BATCH_SCRIPT ;\n batch_step . jobacct = comp_msg -> jobacct ;\n batch_step . exit_code = comp_msg -> job_rc ;\n # ifdef HAVE_FRONT_END nodes = job_ptr -> nodes ;\n # endif batch_step . gres = nodes ;\n if ( node_name2bitmap ( batch_step . gres , false , & batch_step . step_node_bitmap ) != 0 ) {\n error ( \"%s: job %u has invalide node list (%s)\" , __func__ , job_ptr -> job_id , batch_step . gres ) ;\n }\n batch_step . requid = - 1 ;\n batch_step . start_time = job_ptr -> start_time ;\n batch_step . name = \"batch\" ;\n batch_step . select_jobinfo = job_ptr -> select_jobinfo ;\n step_set_alloc_tres ( & batch_step , 1 , false , false ) ;\n jobacct_storage_g_step_start ( acct_db_conn , & batch_step ) ;\n jobacct_storage_g_step_complete ( acct_db_conn , & batch_step ) ;\n FREE_NULL_BITMAP ( batch_step . step_node_bitmap ) ;\n xfree ( batch_step . tres_alloc_str ) ;\n }\n # ifdef HAVE_FRONT_END if ( job_ptr && job_ptr -> front_end_ptr ) nodes = job_ptr -> front_end_ptr -> name ;\n msg_title = \"front_end\" ;\n # endif if ( ( comp_msg -> slurm_rc == ESLURMD_JOB_NOTRUNNING ) || ( comp_msg -> slurm_rc == ESLURM_ALREADY_DONE ) || ( comp_msg -> slurm_rc == ESLURMD_CREDENTIAL_REVOKED ) ) {\n info ( \"slurmd error running JobId=%u from %s=%s: %s\" , comp_msg -> job_id , msg_title , nodes , slurm_strerror ( comp_msg -> slurm_rc ) ) ;\n comp_msg -> slurm_rc = SLURM_SUCCESS ;\n # ifdef HAVE_ALPS_CRAY }\n else if ( comp_msg -> slurm_rc == ESLURM_RESERVATION_NOT_USABLE ) {\n error ( \"ALPS reservation for JobId %u failed: %s\" , comp_msg -> job_id , slurm_strerror ( comp_msg -> slurm_rc ) ) ;\n dump_job = job_requeue = true ;\n # endif }\n else if ( ( comp_msg -> slurm_rc == SLURM_COMMUNICATIONS_SEND_ERROR ) || ( comp_msg -> slurm_rc == ESLURM_USER_ID_MISSING ) || ( comp_msg -> slurm_rc == ESLURMD_UID_NOT_FOUND ) || ( comp_msg -> slurm_rc == ESLURMD_GID_NOT_FOUND ) || ( comp_msg -> slurm_rc == ESLURMD_INVALID_ACCT_FREQ ) ) {\n error ( \"Slurmd error running JobId=%u on %s=%s: %s\" , comp_msg -> job_id , msg_title , nodes , slurm_strerror ( comp_msg -> slurm_rc ) ) ;\n }\n else if ( comp_msg -> slurm_rc != SLURM_SUCCESS ) {\n error ( \"slurmd error running JobId=%u on %s=%s: %s\" , comp_msg -> job_id , msg_title , nodes , slurm_strerror ( comp_msg -> slurm_rc ) ) ;\n slurmctld_diag_stats . jobs_failed ++ ;\n if ( error_code == SLURM_SUCCESS ) {\n # ifdef HAVE_BG if ( job_ptr ) {\n select_g_select_jobinfo_get ( job_ptr -> select_jobinfo , SELECT_JOBDATA_BLOCK_ID , & block_desc . bg_block_id ) ;\n }\n # else # ifdef HAVE_FRONT_END if ( job_ptr && job_ptr -> front_end_ptr ) {\n update_front_end_msg_t update_node_msg ;\n memset ( & update_node_msg , 0 , sizeof ( update_front_end_msg_t ) ) ;\n update_node_msg . name = job_ptr -> front_end_ptr -> name ;\n update_node_msg . node_state = NODE_STATE_DRAIN ;\n update_node_msg . reason = \"batch job complete failure\" ;\n error_code = update_front_end ( & update_node_msg ) ;\n }\n # else error_code = drain_nodes ( comp_msg -> node_name , \"batch job complete failure\" , slurmctld_conf . slurm_user_id ) ;\n # endif # endif if ( ( comp_msg -> job_rc != SLURM_SUCCESS ) && job_ptr && job_ptr -> details && job_ptr -> details -> requeue ) job_requeue = true ;\n dump_job = true ;\n dump_node = true ;\n }\n }\n if ( msg -> msg_type == REQUEST_COMPLETE_BATCH_JOB ) job_epilog_complete ( comp_msg -> job_id , comp_msg -> node_name , 0 ) ;\n i = job_complete ( comp_msg -> job_id , uid , job_requeue , false , comp_msg -> job_rc ) ;\n error_code = MAX ( error_code , i ) ;\n if ( ! running_composite ) {\n unlock_slurmctld ( job_write_lock ) ;\n _throttle_fini ( & active_rpc_cnt ) ;\n }\n # ifdef HAVE_BG if ( block_desc . bg_block_id ) {\n block_desc . reason = slurm_strerror ( comp_msg -> slurm_rc ) ;\n block_desc . state = BG_BLOCK_ERROR_FLAG ;\n i = select_g_update_block ( & block_desc ) ;\n error_code = MAX ( error_code , i ) ;\n xfree ( block_desc . bg_block_id ) ;\n }\n # endif END_TIMER2 ( \"_slurm_rpc_complete_batch_script\" ) ;\n if ( ( powercap_get_cluster_current_cap ( ) != 0 ) && ( which_power_layout ( ) == 2 ) ) {\n layouts_entity_pull_kv ( \"power\" , \"Cluster\" , \"CurrentSumPower\" ) ;\n }\n if ( error_code ) {\n debug2 ( \"_slurm_rpc_complete_batch_script JobId=%u: %s \" , comp_msg -> job_id , slurm_strerror ( error_code ) ) ;\n slurm_send_rc_msg ( msg , error_code ) ;\n }\n else {\n debug2 ( \"_slurm_rpc_complete_batch_script JobId=%u %s\" , comp_msg -> job_id , TIME_STR ) ;\n slurmctld_diag_stats . jobs_completed ++ ;\n dump_job = true ;\n if ( replace_batch_job ( msg , job_ptr , running_composite ) ) * run_scheduler = true ;\n }\n if ( ! running_composite && * run_scheduler ) ( void ) schedule ( 0 ) ;\n if ( dump_job ) ( void ) schedule_job_save ( ) ;\n if ( dump_node ) ( void ) schedule_node_save ( ) ;\n }"}
{"idx": 9344, "target": 0, "func": "int i2d_ ## name ( type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;\n int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING )"}
{"idx": 9345, "target": 0, "func": "static void add_error ( Scanner * s , char * error ) {\n s -> errors -> error_count ++ ;\n s -> errors -> error_messages = realloc ( s -> errors -> error_messages , s -> errors -> error_count * sizeof ( timelib_error_message ) ) ;\n s -> errors -> error_messages [ s -> errors -> error_count - 1 ] . position = s -> tok ? s -> tok - s -> str : 0 ;\n s -> errors -> error_messages [ s -> errors -> error_count - 1 ] . character = s -> tok ? * s -> tok : 0 ;\n s -> errors -> error_messages [ s -> errors -> error_count - 1 ] . message = strdup ( error ) ;\n }"}
{"idx": 9346, "target": 0, "func": "static void SetHomePageRedirectFlag ( url_mapping * new_mapping , URL & new_to_url ) {\n int fromLen , toLen ;\n const char * from_path = new_mapping -> fromURL . path_get ( & fromLen ) ;\n const char * to_path = new_to_url . path_get ( & toLen ) ;\n new_mapping -> homePageRedirect = ( from_path && ! to_path ) ? true : false ;\n }"}
{"idx": 9347, "target": 0, "func": "static void inet_get_ping_group_range_table ( struct ctl_table * table , gid_t * low , gid_t * high ) {\n gid_t * data = table -> data ;\n unsigned int seq ;\n do {\n seq = read_seqbegin ( & sysctl_local_ports . lock ) ;\n * low = data [ 0 ] ;\n * high = data [ 1 ] ;\n }\n while ( read_seqretry ( & sysctl_local_ports . lock , seq ) ) ;\n }"}
{"idx": 9348, "target": 0, "func": "static gboolean protocol_is_alljoyn_message ( tvbuff_t * tvb , gint offset , gboolean is_ardp ) {\n gint length = tvb_captured_length ( tvb ) ;\n if ( length < offset + 1 ) return FALSE ;\n if ( ! is_ardp ) {\n if ( tvb_get_guint8 ( tvb , offset ) == 0 ) return TRUE ;\n if ( find_sasl_command ( tvb , offset ) != NULL ) return TRUE ;\n }\n if ( get_message_header_endianness ( tvb , offset ) == ENC_ALLJOYN_BAD_ENCODING ) return FALSE ;\n if ( ( length < offset + 2 ) || ( try_val_to_str ( tvb_get_guint8 ( tvb , offset + 1 ) , message_header_encoding_vals ) == NULL ) ) return FALSE ;\n return TRUE ;\n }"}
{"idx": 9349, "target": 0, "func": "void proto_register_rsvp ( void ) {\n gint i ;\n static hf_register_info rsvpf_info [ ] = {\n {\n & hf_rsvp_filter [ RSVPF_MSG ] , {\n \"Message Type\" , \"rsvp.msg\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & message_type_vals_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_PATH ] , {\n \"Path Message\" , \"rsvp.path\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_RESV ] , {\n \"Resv Message\" , \"rsvp.resv\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_PATHERR ] , {\n \"Path Error Message\" , \"rsvp.perr\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_RESVERR ] , {\n \"Resv Error Message\" , \"rsvp.rerr\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_PATHTEAR ] , {\n \"Path Tear Message\" , \"rsvp.ptear\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_RESVTEAR ] , {\n \"Resv Tear Message\" , \"rsvp.rtear\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_RCONFIRM ] , {\n \"Resv Confirm Message\" , \"rsvp.resvconf\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_RTEARCONFIRM ] , {\n \"Resv Tear Confirm Message\" , \"rsvp.rtearconf\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_BUNDLE ] , {\n \"Bundle Message\" , \"rsvp.bundle\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_ACK ] , {\n \"Ack Message\" , \"rsvp.ack\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_SREFRESH ] , {\n \"Srefresh Message\" , \"rsvp.srefresh\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_HELLO ] , {\n \"HELLO Message\" , \"rsvp.hello\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_OBJECT ] , {\n \"Object class\" , \"rsvp.object\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & rsvp_class_vals_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_ctype , {\n \"C-type\" , \"rsvp.ctype\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_parameter , {\n \"Parameter\" , \"rsvp.parameter\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & svc_vals_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_parameter_flags , {\n \"Parameter flags\" , \"rsvp.parameter_flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_parameter_length , {\n \"Parameter length\" , \"rsvp.parameter_length\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_error_value , {\n \"Error value\" , \"rsvp.error_value\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_class , {\n \"Class\" , \"rsvp.class\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_class_length , {\n \"Length\" , \"rsvp.class_length\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_switching_granularity , {\n \"Switching granularity\" , \"rsvp.switching_granularity\" , FT_UINT16 , BASE_DEC , VALS ( rsvp_switching_granularity_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_NOTIFY ] , {\n \"Notify Message\" , \"rsvp.notify\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_SESSION ] , {\n \"SESSION\" , \"rsvp.session\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_HOP ] , {\n \"HOP\" , \"rsvp.hop\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_HELLO_OBJ ] , {\n \"HELLO Request/Ack\" , \"rsvp.hello_obj\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_INTEGRITY ] , {\n \"INTEGRITY\" , \"rsvp.integrity\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_TIME_VALUES ] , {\n \"TIME VALUES\" , \"rsvp.time\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_ERROR ] , {\n \"ERROR\" , \"rsvp.error\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_SCOPE ] , {\n \"SCOPE\" , \"rsvp.scope\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_STYLE ] , {\n \"STYLE\" , \"rsvp.style\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_FLOWSPEC ] , {\n \"FLOWSPEC\" , \"rsvp.flowspec\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_FILTER_SPEC ] , {\n \"FILTERSPEC\" , \"rsvp.filter\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_SENDER ] , {\n \"SENDER TEMPLATE\" , \"rsvp.sender\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_TSPEC ] , {\n \"SENDER TSPEC\" , \"rsvp.tspec\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_ADSPEC ] , {\n \"ADSPEC\" , \"rsvp.adspec\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_POLICY ] , {\n \"POLICY\" , \"rsvp.policy\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_CONFIRM ] , {\n \"CONFIRM\" , \"rsvp.confirm\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_LABEL ] , {\n \"LABEL\" , \"rsvp.label\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_RECOVERY_LABEL ] , {\n \"RECOVERY LABEL\" , \"rsvp.recovery_label\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_UPSTREAM_LABEL ] , {\n \"UPSTREAM LABEL\" , \"rsvp.upstream_label\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_SUGGESTED_LABEL ] , {\n \"SUGGESTED LABEL\" , \"rsvp.suggested_label\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_LABEL_SET ] , {\n \"LABEL SET\" , \"rsvp.label_set\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_ACCEPTABLE_LABEL_SET ] , {\n \"ACCEPTABLE LABEL SET\" , \"rsvp.acceptable_label_set\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_PROTECTION ] , {\n \"PROTECTION\" , \"rsvp.protection\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_DIFFSERV ] , {\n \"DIFFSERV\" , \"rsvp.diffserv\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_DSTE ] , {\n \"CLASSTYPE\" , \"rsvp.dste\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_RESTART_CAP ] , {\n \"RESTART CAPABILITY\" , \"rsvp.restart\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_LINK_CAP ] , {\n \"LINK CAPABILITY\" , \"rsvp.link\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_LABEL_REQUEST ] , {\n \"LABEL REQUEST\" , \"rsvp.label_request\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_SESSION_ATTRIBUTE ] , {\n \"SESSION ATTRIBUTE\" , \"rsvp.session_attribute\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_EXPLICIT_ROUTE ] , {\n \"EXPLICIT ROUTE\" , \"rsvp.explicit_route\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_RECORD_ROUTE ] , {\n \"RECORD ROUTE\" , \"rsvp.record_route\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_MESSAGE_ID ] , {\n \"MESSAGE-ID\" , \"rsvp.msgid\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_MESSAGE_ID_ACK ] , {\n \"MESSAGE-ID ACK\" , \"rsvp.msgid_ack\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_MESSAGE_ID_LIST ] , {\n \"MESSAGE-ID LIST\" , \"rsvp.msgid_list\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_DCLASS ] , {\n \"DCLASS\" , \"rsvp.dclass\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_LSP_TUNNEL_IF_ID ] , {\n \"LSP INTERFACE-ID\" , \"rsvp.lsp_tunnel_if_id\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_ADMIN_STATUS ] , {\n \"ADMIN STATUS\" , \"rsvp.admin_status\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_ADMIN_STATUS_REFLECT ] , {\n \"Reflect\" , \"rsvp.admin_status.reflect\" , FT_BOOLEAN , 32 , NULL , 0x80000000 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_ADMIN_STATUS_HANDOVER ] , {\n \"Handover\" , \"rsvp.admin_status.handover\" , FT_BOOLEAN , 32 , NULL , 0x40 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_ADMIN_STATUS_LOCKOUT ] , {\n \"Lockout\" , \"rsvp.admin_status.lockout\" , FT_BOOLEAN , 32 , NULL , 0x20 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_ADMIN_STATUS_INHIBIT ] , {\n \"Inhibit Alarm Communication\" , \"rsvp.admin_status.inhibit\" , FT_BOOLEAN , 32 , NULL , 0x10 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_ADMIN_STATUS_CALL_MGMT ] , {\n \"Call Management\" , \"rsvp.admin_status.callmgmt\" , FT_BOOLEAN , 32 , NULL , 0x08 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_ADMIN_STATUS_TESTING ] , {\n \"Testing\" , \"rsvp.admin_status.testing\" , FT_BOOLEAN , 32 , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_ADMIN_STATUS_DOWN ] , {\n \"Administratively down\" , \"rsvp.admin_status.down\" , FT_BOOLEAN , 32 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_ADMIN_STATUS_DELETE ] , {\n \"Delete in progress\" , \"rsvp.admin_status.delete\" , FT_BOOLEAN , 32 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_LSP_ATTRIBUTES ] , {\n \"LSP ATTRIBUTES\" , \"rsvp.lsp_attributes\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_ASSOCIATION ] , {\n \"ASSOCIATION\" , \"rsvp.association\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_CALL_ATTRIBUTES ] , {\n \"CALL ATTRIBUTES\" , \"rsvp.call_attributes\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_NOTIFY_REQUEST ] , {\n \"NOTIFY REQUEST\" , \"rsvp.notify_request\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_GENERALIZED_UNI ] , {\n \"GENERALIZED UNI\" , \"rsvp.generalized_uni\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_CALL_ID ] , {\n \"CALL ID\" , \"rsvp.call_id\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_3GPP2_OBJECT ] , {\n \"3GPP2 OBJECT\" , \"rsvp.3gpp2_object\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_PRIVATE_OBJ ] , {\n \"Private object\" , \"rsvp.obj_private\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_UNKNOWN_OBJ ] , {\n \"Unknown object\" , \"rsvp.obj_unknown\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_SESSION_IP ] , {\n \"Destination address\" , \"rsvp.session.ip\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_SESSION_SHORT_CALL_ID ] , {\n \"Short Call ID\" , \"rsvp.session.short_call_id\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_SESSION_PORT ] , {\n \"Port number\" , \"rsvp.session.port\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_SESSION_PROTO ] , {\n \"Protocol\" , \"rsvp.session.proto\" , FT_UINT8 , BASE_DEC , VALS ( proto_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_SESSION_TUNNEL_ID ] , {\n \"Tunnel ID\" , \"rsvp.session.tunnel_id\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_SESSION_EXT_TUNNEL_ID ] , {\n \"Extended tunnel ID\" , \"rsvp.session.ext_tunnel_id\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_SESSION_EXT_TUNNEL_ID_IPV6 ] , {\n \"Extended tunnel ID\" , \"rsvp.session.ext_tunnel_id_ipv6\" , FT_IPv6 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_JUNIPER ] , {\n \"Juniper\" , \"rsvp.juniper\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_SENDER_IP ] , {\n \"Sender IPv4 address\" , \"rsvp.sender.ip\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_SENDER_PORT ] , {\n \"Sender port number\" , \"rsvp.sender.port\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_SENDER_LSP_ID ] , {\n \"Sender LSP ID\" , \"rsvp.sender.lsp_id\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_SENDER_SHORT_CALL_ID ] , {\n \"Short Call ID\" , \"rsvp.sender.short_call_id\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_DIFFSERV_MAPNB ] , {\n \"MAPnb\" , \"rsvp.diffserv.mapnb\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , MAPNB_DESCRIPTION , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_DIFFSERV_MAP ] , {\n \"MAP\" , \"rsvp.diffserv.map\" , FT_NONE , BASE_NONE , NULL , 0x0 , MAP_DESCRIPTION , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_DIFFSERV_MAP_EXP ] , {\n \"EXP\" , \"rsvp.diffserv.map.exp\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , EXP_DESCRIPTION , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_DIFFSERV_PHBID ] , {\n PHBID_DESCRIPTION , \"rsvp.diffserv.phbid\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_DIFFSERV_PHBID_DSCP ] , {\n PHBID_DSCP_DESCRIPTION , \"rsvp.diffserv.phbid.dscp\" , FT_UINT16 , BASE_DEC , NULL , PHBID_DSCP_MASK , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_DIFFSERV_PHBID_CODE ] , {\n PHBID_CODE_DESCRIPTION , \"rsvp.diffserv.phbid.code\" , FT_UINT16 , BASE_DEC , NULL , PHBID_CODE_MASK , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_DIFFSERV_PHBID_BIT14 ] , {\n PHBID_BIT14_DESCRIPTION , \"rsvp.diffserv.phbid.bit14\" , FT_UINT16 , BASE_DEC , VALS ( phbid_bit14_vals ) , PHBID_BIT14_MASK , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_DIFFSERV_PHBID_BIT15 ] , {\n PHBID_BIT15_DESCRIPTION , \"rsvp.diffserv.phbid.bit15\" , FT_UINT16 , BASE_DEC , VALS ( phbid_bit15_vals ) , PHBID_BIT15_MASK , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_DSTE_CLASSTYPE ] , {\n \"CT\" , \"rsvp.dste.classtype\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_GUNI_SRC_IPV4 ] , {\n \"Source TNA\" , \"rsvp.guni.srctna.ipv4\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_GUNI_DST_IPV4 ] , {\n \"Destination TNA\" , \"rsvp.guni.dsttna.ipv4\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_GUNI_SRC_IPV6 ] , {\n \"Source TNA\" , \"rsvp.guni.srctna.ipv6\" , FT_IPv6 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_GUNI_DST_IPV6 ] , {\n \"Destination TNA\" , \"rsvp.guni.dsttna.ipv6\" , FT_IPv6 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_CALL_ID_SRC_ADDR_IPV4 ] , {\n \"Source Transport Network Address\" , \"rsvp.callid.srcaddr.ipv4\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_CALL_ID_SRC_ADDR_IPV6 ] , {\n \"Source Transport Network Address\" , \"rsvp.callid.srcaddr.ipv6\" , FT_IPv6 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_callid_srcaddr_ether , {\n \"Source Transport Network Address\" , \"rsvp.callid.srcaddr.ether\" , FT_ETHER , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_callid_srcaddr_bytes , {\n \"Source Transport Network Address\" , \"rsvp.callid.srcaddr.bytes\" , FT_ETHER , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_filter [ RSVPF_ENT_CODE ] , {\n \"Enterprise Code\" , \"rsvp.obj_private.enterprise\" , FT_UINT32 , BASE_DEC | BASE_EXT_STRING , & sminmpec_values_ext , 0x0 , \"IANA Network Management Private Enterprise Code\" , HFILL }\n }\n , {\n & hf_rsvp_error_flags , {\n \"Flags\" , \"rsvp.error_flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_error_flags_path_state_removed , {\n \"Path State Removed\" , \"rsvp.error_flags.path_state_removed\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , 0x04 , NULL , HFILL }\n }\n , {\n & hf_rsvp_error_flags_not_guilty , {\n \"NotGuilty\" , \"rsvp.error_flags.not_guilty\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , 0x02 , NULL , HFILL }\n }\n , {\n & hf_rsvp_error_flags_in_place , {\n \"InPlace\" , \"rsvp.error_flags.in_place\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_rsvp_eth_tspec_tlv_color_mode , {\n \"Color Mode (CM)\" , \"rsvp.eth_tspec_tlv.color_mode\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , 0x02 , NULL , HFILL }\n }\n , {\n & hf_rsvp_eth_tspec_tlv_coupling_flag , {\n \"Coupling Flag (CF)\" , \"rsvp.eth_tspec_tlv.coupling_flag\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_rsvp_sender_tspec_standard_contiguous_concatenation , {\n \"Standard contiguous concatenation\" , \"rsvp.sender_tspec.standard_contiguous_concatenation\" , FT_BOOLEAN , 8 , TFS ( & tfs_yes_no ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_rsvp_sender_tspec_arbitrary_contiguous_concatenation , {\n \"Arbitrary contiguous concatenation\" , \"rsvp.sender_tspec.arbitrary_contiguous_concatenation\" , FT_BOOLEAN , 8 , TFS ( & tfs_yes_no ) , 0x02 , NULL , HFILL }\n }\n , {\n & hf_rsvp_sender_tspec_regenerator_section , {\n \"Section/Regenerator Section layer transparency\" , \"rsvp.sender_tspec.regenerator_section\" , FT_BOOLEAN , 32 , TFS ( & tfs_yes_no ) , 0x0001 , NULL , HFILL }\n }\n , {\n & hf_rsvp_sender_tspec_multiplex_section , {\n \"Line/Multiplex Section layer transparency\" , \"rsvp.sender_tspec.multiplex_section\" , FT_BOOLEAN , 32 , TFS ( & tfs_yes_no ) , 0x0002 , NULL , HFILL }\n }\n , {\n & hf_rsvp_sender_tspec_J0_transparency , {\n \"J0 transparency\" , \"rsvp.sender_tspec.J0_transparency\" , FT_BOOLEAN , 32 , TFS ( & tfs_yes_no ) , 0x0004 , NULL , HFILL }\n }\n , {\n & hf_rsvp_sender_tspec_SOH_RSOH_DCC_transparency , {\n \"SOH/RSOH DCC transparency\" , \"rsvp.sender_tspec.SOH_RSOH_DCC_transparency\" , FT_BOOLEAN , 32 , TFS ( & tfs_yes_no ) , 0x0008 , NULL , HFILL }\n }\n , {\n & hf_rsvp_sender_tspec_LOH_MSOH_DCC_transparency , {\n \"LOH/MSOH DCC transparency\" , \"rsvp.sender_tspec.LOH_MSOH_DCC_transparency\" , FT_BOOLEAN , 32 , TFS ( & tfs_yes_no ) , 0x0010 , NULL , HFILL }\n }\n , {\n & hf_rsvp_sender_tspec_LOH_MSOH_extended_DCC_transparency , {\n \"LOH/MSOH Extended DCC transparency\" , \"rsvp.sender_tspec.LOH_MSOH_extended_DCC_transparency\" , FT_BOOLEAN , 32 , TFS ( & tfs_yes_no ) , 0x0020 , NULL , HFILL }\n }\n , {\n & hf_rsvp_sender_tspec_K1_K2_transparency , {\n \"K1/K2 transparency\" , \"rsvp.sender_tspec.K1_K2_transparency\" , FT_BOOLEAN , 32 , TFS ( & tfs_yes_no ) , 0x0040 , NULL , HFILL }\n }\n , {\n & hf_rsvp_sender_tspec_E1_transparency , {\n \"E1 transparency\" , \"rsvp.sender_tspec.E1_transparency\" , FT_BOOLEAN , 32 , TFS ( & tfs_yes_no ) , 0x0080 , NULL , HFILL }\n }\n , {\n & hf_rsvp_sender_tspec_F1_transparency , {\n \"F1 transparency\" , \"rsvp.sender_tspec.F1_transparency\" , FT_BOOLEAN , 32 , TFS ( & tfs_yes_no ) , 0x0100 , NULL , HFILL }\n }\n , {\n & hf_rsvp_sender_tspec_E2_transparency , {\n \"E2 transparency\" , \"rsvp.sender_tspec.E2_transparency\" , FT_BOOLEAN , 32 , TFS ( & tfs_yes_no ) , 0x0200 , NULL , HFILL }\n }\n , {\n & hf_rsvp_sender_tspec_B1_transparency , {\n \"B1 transparency\" , \"rsvp.sender_tspec.B1_transparency\" , FT_BOOLEAN , 32 , TFS ( & tfs_yes_no ) , 0x0400 , NULL , HFILL }\n }\n , {\n & hf_rsvp_sender_tspec_B2_transparency , {\n \"B2 transparency\" , \"rsvp.sender_tspec.B2_transparency\" , FT_BOOLEAN , 32 , TFS ( & tfs_yes_no ) , 0x0800 , NULL , HFILL }\n }\n , {\n & hf_rsvp_sender_tspec_M0_transparency , {\n \"M0 transparency\" , \"rsvp.sender_tspec.M0_transparency\" , FT_BOOLEAN , 32 , TFS ( & tfs_yes_no ) , 0x1000 , NULL , HFILL }\n }\n , {\n & hf_rsvp_sender_tspec_M1_transparency , {\n \"M1 transparency\" , \"rsvp.sender_tspec.M1_transparency\" , FT_BOOLEAN , 32 , TFS ( & tfs_yes_no ) , 0x2000 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flowspec_standard_contiguous_concatenation , {\n \"Standard contiguous concatenation\" , \"rsvp.flowspec.standard_contiguous_concatenation\" , FT_BOOLEAN , 8 , TFS ( & tfs_yes_no ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flowspec_arbitrary_contiguous_concatenation , {\n \"Arbitrary contiguous concatenation\" , \"rsvp.flowspec.arbitrary_contiguous_concatenation\" , FT_BOOLEAN , 8 , TFS ( & tfs_yes_no ) , 0x02 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flowspec_regenerator_section , {\n \"Section/Regenerator Section layer transparency\" , \"rsvp.flowspec.regenerator_section\" , FT_BOOLEAN , 32 , TFS ( & tfs_yes_no ) , 0x0001 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flowspec_multiplex_section , {\n \"Line/Multiplex Section layer transparency\" , \"rsvp.flowspec.multiplex_section\" , FT_BOOLEAN , 32 , TFS ( & tfs_yes_no ) , 0x0002 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flowspec_J0_transparency , {\n \"J0 transparency\" , \"rsvp.flowspec.J0_transparency\" , FT_BOOLEAN , 32 , TFS ( & tfs_yes_no ) , 0x0004 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flowspec_SOH_RSOH_DCC_transparency , {\n \"SOH/RSOH DCC transparency\" , \"rsvp.flowspec.SOH_RSOH_DCC_transparency\" , FT_BOOLEAN , 32 , TFS ( & tfs_yes_no ) , 0x0008 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flowspec_LOH_MSOH_DCC_transparency , {\n \"LOH/MSOH DCC transparency\" , \"rsvp.flowspec.LOH_MSOH_DCC_transparency\" , FT_BOOLEAN , 32 , TFS ( & tfs_yes_no ) , 0x0010 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flowspec_LOH_MSOH_extended_DCC_transparency , {\n \"LOH/MSOH Extended DCC transparency\" , \"rsvp.flowspec.LOH_MSOH_extended_DCC_transparency\" , FT_BOOLEAN , 32 , TFS ( & tfs_yes_no ) , 0x0020 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flowspec_K1_K2_transparency , {\n \"K1/K2 transparency\" , \"rsvp.flowspec.K1_K2_transparency\" , FT_BOOLEAN , 32 , TFS ( & tfs_yes_no ) , 0x0040 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flowspec_E1_transparency , {\n \"E1 transparency\" , \"rsvp.flowspec.E1_transparency\" , FT_BOOLEAN , 32 , TFS ( & tfs_yes_no ) , 0x0080 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flowspec_F1_transparency , {\n \"F1 transparency\" , \"rsvp.flowspec.F1_transparency\" , FT_BOOLEAN , 32 , TFS ( & tfs_yes_no ) , 0x0100 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flowspec_E2_transparency , {\n \"E2 transparency\" , \"rsvp.flowspec.E2_transparency\" , FT_BOOLEAN , 32 , TFS ( & tfs_yes_no ) , 0x0200 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flowspec_B1_transparency , {\n \"B1 transparency\" , \"rsvp.flowspec.B1_transparency\" , FT_BOOLEAN , 32 , TFS ( & tfs_yes_no ) , 0x0400 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flowspec_B2_transparency , {\n \"B2 transparency\" , \"rsvp.flowspec.B2_transparency\" , FT_BOOLEAN , 32 , TFS ( & tfs_yes_no ) , 0x0800 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flowspec_M0_transparency , {\n \"M0 transparency\" , \"rsvp.flowspec.M0_transparency\" , FT_BOOLEAN , 32 , TFS ( & tfs_yes_no ) , 0x1000 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flowspec_M1_transparency , {\n \"M1 transparency\" , \"rsvp.flowspec.M1_transparency\" , FT_BOOLEAN , 32 , TFS ( & tfs_yes_no ) , 0x2000 , NULL , HFILL }\n }\n , {\n & hf_rsvp_integrity_flags_handshake , {\n \"Handshake\" , \"rsvp.integrity.flags.handshake\" , FT_BOOLEAN , 8 , TFS ( & tfs_capable_not_capable ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_rsvp_sa_flags_local , {\n \"Local protection\" , \"rsvp.sa.flags.local\" , FT_BOOLEAN , 8 , TFS ( & tfs_desired_not_desired ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_rsvp_sa_flags_label , {\n \"Label recording\" , \"rsvp.sa.flags.label\" , FT_BOOLEAN , 8 , TFS ( & tfs_desired_not_desired ) , 0x02 , NULL , HFILL }\n }\n , {\n & hf_rsvp_sa_flags_se_style , {\n \"SE style\" , \"rsvp.sa.flags.se_style\" , FT_BOOLEAN , 8 , TFS ( & tfs_desired_not_desired ) , 0x04 , NULL , HFILL }\n }\n , {\n & hf_rsvp_sa_flags_bandwidth , {\n \"Bandwidth protection\" , \"rsvp.sa.flags.bandwidth\" , FT_BOOLEAN , 8 , TFS ( & tfs_desired_not_desired ) , 0x08 , NULL , HFILL }\n }\n , {\n & hf_rsvp_sa_flags_node , {\n \"Node protection\" , \"rsvp.sa.flags.node\" , FT_BOOLEAN , 8 , TFS ( & tfs_desired_not_desired ) , 0x10 , NULL , HFILL }\n }\n , {\n & hf_rsvp_rro_flags_local_avail , {\n \"Local Protection\" , \"rsvp.rro.flags.local_avail\" , FT_BOOLEAN , 8 , TFS ( & tfs_available_not_available ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_rsvp_rro_flags_local_in_use , {\n \"Local Protection\" , \"rsvp.rro.flags.local_in_use\" , FT_BOOLEAN , 8 , TFS ( & tfs_used_notused ) , 0x02 , NULL , HFILL }\n }\n , {\n & hf_rsvp_rro_flags_bandwidth , {\n \"Bandwidth Protection\" , \"rsvp.rro.flags.bandwidth\" , FT_BOOLEAN , 8 , TFS ( & tfs_available_not_available ) , 0x04 , NULL , HFILL }\n }\n , {\n & hf_rsvp_rro_flags_node , {\n \"Node Protection\" , \"rsvp.rro.flags.node\" , FT_BOOLEAN , 8 , TFS ( & tfs_available_not_available ) , 0x08 , NULL , HFILL }\n }\n , {\n & hf_rsvp_rro_flags_node_address , {\n \"Address Specifies a Node-id Address\" , \"rsvp.rro.flags.node_address\" , FT_BOOLEAN , 8 , TFS ( & tfs_yes_no ) , 0x20 , NULL , HFILL }\n }\n , {\n & hf_rsvp_rro_flags_backup_tunnel_bandwidth , {\n \"Backup Tunnel Has Bandwidth\" , \"rsvp.rro.flags.backup_tunnel_bandwidth\" , FT_BOOLEAN , 8 , TFS ( & tfs_yes_no ) , 0x04 , NULL , HFILL }\n }\n , {\n & hf_rsvp_rro_flags_backup_tunnel_hop , {\n \"Backup Tunnel Goes To\" , \"rsvp.rro.flags.backup_tunnel_hop\" , FT_BOOLEAN , 8 , TFS ( & tfs_next_next_hop_next_hop ) , 0x08 , NULL , HFILL }\n }\n , {\n & hf_rsvp_rro_flags_global_label , {\n \"Global label\" , \"rsvp.rro.flags.global_label\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_rsvp_lsp_attr_e2e , {\n \"End-to-end re-routing\" , \"rsvp.lsp_attr.e2e\" , FT_BOOLEAN , 32 , TFS ( & tfs_desired_not_desired ) , 0x00000001 , NULL , HFILL }\n }\n , {\n & hf_rsvp_lsp_attr_boundary , {\n \"Boundary re-routing\" , \"rsvp.lsp_attr.boundary\" , FT_BOOLEAN , 32 , TFS ( & tfs_desired_not_desired ) , 0x00000002 , NULL , HFILL }\n }\n , {\n & hf_rsvp_lsp_attr_segment , {\n \"Segment-based re-routing\" , \"rsvp.lsp_attr.segment\" , FT_BOOLEAN , 32 , TFS ( & tfs_desired_not_desired ) , 0x00000004 , NULL , HFILL }\n }\n , {\n & hf_rsvp_lsp_attr_integrity , {\n \"LSP Integrity Required\" , \"rsvp.lsp_attr.integrity\" , FT_BOOLEAN , 32 , TFS ( & tfs_desired_not_desired ) , 0x00000008 , NULL , HFILL }\n }\n , {\n & hf_rsvp_lsp_attr_contiguous , {\n \"Contiguous LSP\" , \"rsvp.lsp_attr.contiguous\" , FT_BOOLEAN , 32 , TFS ( & tfs_desired_not_desired ) , 0x00000010 , NULL , HFILL }\n }\n , {\n & hf_rsvp_lsp_attr_stitching , {\n \"LSP stitching desired\" , \"rsvp.lsp_attr.stitching\" , FT_BOOLEAN , 32 , TFS ( & tfs_desired_not_desired ) , 0x00000020 , NULL , HFILL }\n }\n , {\n & hf_rsvp_lsp_attr_preplanned , {\n \"Pre-Planned LSP Flag\" , \"rsvp.lsp_attr.preplanned\" , FT_BOOLEAN , 32 , TFS ( & tfs_desired_not_desired ) , 0x00000040 , NULL , HFILL }\n }\n , {\n & hf_rsvp_lsp_attr_nophp , {\n \"Non-PHP behavior flag\" , \"rsvp.lsp_attr.nophp\" , FT_BOOLEAN , 32 , TFS ( & tfs_desired_not_desired ) , 0x00000080 , NULL , HFILL }\n }\n , {\n & hf_rsvp_lsp_attr_oobmap , {\n \"OOB mapping flag\" , \"rsvp.lsp_attr.oobmap\" , FT_BOOLEAN , 32 , TFS ( & tfs_desired_not_desired ) , 0x00000100 , NULL , HFILL }\n }\n , {\n & hf_rsvp_lsp_attr_entropy , {\n \"Entropy Label Capability\" , \"rsvp.lsp_attr.entropy\" , FT_BOOLEAN , 32 , TFS ( & tfs_desired_not_desired ) , 0x00000200 , NULL , HFILL }\n }\n , {\n & hf_rsvp_lsp_attr_srlgcollect , {\n \"SRLG Collection Flag\" , \"rsvp.lsp_attr.srlgcollect\" , FT_BOOLEAN , 32 , TFS ( & tfs_desired_not_desired ) , 0x00000400 , NULL , HFILL }\n }\n , {\n & hf_rsvp_lsp_attr_costcollect , {\n \"Cost Collection Flag\" , \"rsvp.lsp_attr.costcollect\" , FT_BOOLEAN , 32 , TFS ( & tfs_desired_not_desired ) , 0x00000800 , NULL , HFILL }\n }\n , {\n & hf_rsvp_lsp_attr_latcollect , {\n \"Latency Collection Flag\" , \"rsvp.lsp_attr.latcollect\" , FT_BOOLEAN , 32 , TFS ( & tfs_desired_not_desired ) , 0x00001000 , NULL , HFILL }\n }\n , {\n & hf_rsvp_lsp_attr_latvarcollect , {\n \"Latency Variation Flag\" , \"rsvp.lsp_attr.latvarcollect\" , FT_BOOLEAN , 32 , TFS ( & tfs_desired_not_desired ) , 0x00002000 , NULL , HFILL }\n }\n , {\n & hf_rsvp_gen_uni_direction , {\n \"Direction\" , \"rsvp.gen_uni.direction\" , FT_BOOLEAN , 8 , TFS ( & tfs_gen_uni_direction ) , 0x80 , NULL , HFILL }\n }\n , {\n & hf_rsvp_protection_info_flags_secondary_lsp , {\n \"Secondary LSP\" , \"rsvp.pi.flags.secondary_lsp\" , FT_BOOLEAN , 8 , TFS ( & tfs_yes_no ) , 0x80 , NULL , HFILL }\n }\n , {\n & hf_rsvp_pi_link_flags_extra_traffic , {\n \"Extra Traffic\" , \"rsvp.pi_link.flags.extra_traffic\" , FT_BOOLEAN , 8 , TFS ( & tfs_desired_not_desired ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_rsvp_pi_link_flags_unprotected , {\n \"Unprotected\" , \"rsvp.pi_link.flags.unprotected\" , FT_BOOLEAN , 8 , TFS ( & tfs_desired_not_desired ) , 0x02 , NULL , HFILL }\n }\n , {\n & hf_rsvp_pi_link_flags_shared , {\n \"Shared\" , \"rsvp.pi_link.flags.shared\" , FT_BOOLEAN , 8 , TFS ( & tfs_desired_not_desired ) , 0x04 , NULL , HFILL }\n }\n , {\n & hf_rsvp_pi_link_flags_dedicated1_1 , {\n \"Dedicated 1:1\" , \"rsvp.pi_link.flags.dedicated1_1\" , FT_BOOLEAN , 8 , TFS ( & tfs_desired_not_desired ) , 0x08 , NULL , HFILL }\n }\n , {\n & hf_rsvp_pi_link_flags_dedicated1plus1 , {\n \"Dedicated 1+1\" , \"rsvp.pi_link.flags.dedicated1plus1\" , FT_BOOLEAN , 8 , TFS ( & tfs_desired_not_desired ) , 0x10 , NULL , HFILL }\n }\n , {\n & hf_rsvp_pi_link_flags_enhanced , {\n \"Enhanced\" , \"rsvp.pi_link.flags.enhanced\" , FT_BOOLEAN , 8 , TFS ( & tfs_desired_not_desired ) , 0x20 , NULL , HFILL }\n }\n , {\n & hf_rsvp_pi_link_flags_extra , {\n \"Extra Traffic\" , \"rsvp.pi_link.flags.extra\" , FT_BOOLEAN , 8 , TFS ( & tfs_desired_not_desired ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_rsvp_pi_link_flags_dedicated_1_1 , {\n \"Dedicated 1:1\" , \"rsvp.pi_link.flags.dedicated_1_1\" , FT_BOOLEAN , 8 , TFS ( & tfs_desired_not_desired ) , 0x08 , NULL , HFILL }\n }\n , {\n & hf_rsvp_pi_link_flags_dedicated_1plus1 , {\n \"Dedicated 1+1\" , \"rsvp.pi_link.flags.dedicated_1plus1\" , FT_BOOLEAN , 8 , TFS ( & tfs_desired_not_desired ) , 0x10 , NULL , HFILL }\n }\n , {\n & hf_rsvp_rfc4872_secondary , {\n \"Secondary LSP\" , \"rsvp.rfc4872.secondary\" , FT_BOOLEAN , 8 , TFS ( & tfs_yes_no ) , 0x80 , NULL , HFILL }\n }\n , {\n & hf_rsvp_rfc4872_protecting , {\n \"Protecting LSP\" , \"rsvp.rfc4872.protecting\" , FT_BOOLEAN , 8 , TFS ( & tfs_yes_no ) , 0x40 , NULL , HFILL }\n }\n , {\n & hf_rsvp_rfc4872_notification_msg , {\n \"Protecting LSP\" , \"rsvp.rfc4872.notification_msg\" , FT_BOOLEAN , 8 , TFS ( & tfs_yes_no ) , 0x20 , NULL , HFILL }\n }\n , {\n & hf_rsvp_rfc4872_operational , {\n \"Protecting LSP\" , \"rsvp.rfc4872.operational\" , FT_BOOLEAN , 8 , TFS ( & tfs_yes_no ) , 0x10 , NULL , HFILL }\n }\n , {\n & hf_rsvp_pi_lsp_flags_full_rerouting , {\n \"(Full) rerouting\" , \"rsvp.pi_lsp.flags.full_rerouting\" , FT_BOOLEAN , 8 , TFS ( & tfs_desired_not_desired ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_rsvp_pi_lsp_flags_rerouting_extra , {\n \"Rerouting without extra-traffic\" , \"rsvp.pi_lsp.flags.rerouting_extra\" , FT_BOOLEAN , 8 , TFS ( & tfs_desired_not_desired ) , 0x02 , NULL , HFILL }\n }\n , {\n & hf_rsvp_pi_lsp_flags_1_n_protection , {\n \"1:N protection with extra-traffic\" , \"rsvp.pi_lsp.flags.1_n_protection\" , FT_BOOLEAN , 8 , TFS ( & tfs_desired_not_desired ) , 0x04 , NULL , HFILL }\n }\n , {\n & hf_rsvp_pi_lsp_flags_1plus1_unidirectional , {\n \"1+1 unidirectional protection\" , \"rsvp.pi_lsp.flags.1plus1_unidirectional\" , FT_BOOLEAN , 8 , TFS ( & tfs_desired_not_desired ) , 0x08 , NULL , HFILL }\n }\n , {\n & hf_rsvp_pi_lsp_flags_1plus1_bidirectional , {\n \"1+1 bidirectional protection\" , \"rsvp.pi_lsp.flags.1plus1_bidirectional\" , FT_BOOLEAN , 8 , TFS ( & tfs_desired_not_desired ) , 0x10 , NULL , HFILL }\n }\n , {\n & hf_rsvp_protection_info_in_place , {\n \"In-Place\" , \"rsvp.protection_info.in_place\" , FT_BOOLEAN , 8 , TFS ( & tfs_yes_no ) , 0x80 , NULL , HFILL }\n }\n , {\n & hf_rsvp_protection_info_required , {\n \"Required\" , \"rsvp.protection_info.required\" , FT_BOOLEAN , 8 , TFS ( & tfs_yes_no ) , 0x40 , NULL , HFILL }\n }\n , {\n & hf_rsvp_pi_seg_flags_full_rerouting , {\n \"(Full) rerouting\" , \"rsvp.pi_seg.flags.full_rerouting\" , FT_BOOLEAN , 8 , TFS ( & tfs_desired_not_desired ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_rsvp_pi_seg_flags_rerouting_extra , {\n \"Rerouting without extra-traffic\" , \"rsvp.pi_seg.flags.rerouting_extra\" , FT_BOOLEAN , 8 , TFS ( & tfs_desired_not_desired ) , 0x02 , NULL , HFILL }\n }\n , {\n & hf_rsvp_pi_seg_flags_1_n_protection , {\n \"1:N protection with extra-traffic\" , \"rsvp.pi_seg.flags.1_n_protection\" , FT_BOOLEAN , 8 , TFS ( & tfs_desired_not_desired ) , 0x04 , NULL , HFILL }\n }\n , {\n & hf_rsvp_pi_seg_flags_1plus1_unidirectional , {\n \"1+1 unidirectional protection\" , \"rsvp.pi_seg.flags.1plus1_unidirectional\" , FT_BOOLEAN , 8 , TFS ( & tfs_desired_not_desired ) , 0x08 , NULL , HFILL }\n }\n , {\n & hf_rsvp_pi_seg_flags_1plus1_bidirectional , {\n \"1+1 bidirectional protection\" , \"rsvp.pi_seg.flags.1plus1_bidirectional\" , FT_BOOLEAN , 8 , TFS ( & tfs_desired_not_desired ) , 0x10 , NULL , HFILL }\n }\n , {\n & hf_rsvp_frr_flags_one2one_backup , {\n \"One-to-One Backup\" , \"rsvp.frr.flags.one2one_backup\" , FT_BOOLEAN , 8 , TFS ( & tfs_desired_not_desired ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_rsvp_frr_flags_facility_backup , {\n \"Facility Backup\" , \"rsvp.frr.flags.facility_backup\" , FT_BOOLEAN , 8 , TFS ( & tfs_desired_not_desired ) , 0x02 , NULL , HFILL }\n }\n , {\n & hf_rsvp_type , {\n \"Type\" , \"rsvp.type\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_tid , {\n \"Transaction ID\" , \"rsvp.3gpp_obj.tid\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_ie_len , {\n \"Length\" , \"rsvp.3gpp_obj.length\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_ie_type , {\n \"IE Type\" , \"rsvp.3gpp_obj.ie_type\" , FT_UINT32 , BASE_DEC , VALS ( rsvp_3gpp_object_ie_type_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_ue_ipv4_addr , {\n \"UE IPv4 address\" , \"rsvp.3gpp_obj.ue_ipv4_addr\" , FT_IPv4 , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_ue_ipv6_addr , {\n \"UE IPv6 address\" , \"rsvp.3gpp_obj.ue_ipv6_addr\" , FT_IPv6 , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_tft_d , {\n \"Direction(D)\" , \"rsvp.3gpp_obj.tft_d\" , FT_UINT32 , BASE_DEC , VALS ( rsvp_3gpp_object_tft_d_vals ) , 0xc0000000 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_tft_ns , {\n \"Non-Specific bit(NS)\" , \"rsvp.3gpp_obj.tft_ns\" , FT_UINT32 , BASE_DEC , NULL , 0x08000000 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_tft_sr_id , {\n \"SR_ID\" , \"rsvp.3gpp_obj.tft_sr_id\" , FT_UINT32 , BASE_DEC , NULL , 0x07000000 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_tft_p , {\n \"Persistency(P)\" , \"rsvp.3gpp_obj.tft_p\" , FT_UINT32 , BASE_DEC , NULL , 0x00010000 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_tft_opcode , {\n \"TFT Operation Code\" , \"rsvp.3gpp_obj.tft_opcode\" , FT_UINT32 , BASE_DEC , VALS ( rsvp_3gpp_obj_tft_opcode_vals ) , 0x000ff00 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_tft_n_pkt_flt , {\n \"Number of Packet filters\" , \"rsvp.3gpp_obj.tft_n_pkt_flt\" , FT_UINT32 , BASE_DEC , NULL , 0x00000ff , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_flow_id , {\n \"Flow Identifier\" , \"rsvp.3gpp_obj.flow_id\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_pf_ev_prec , {\n \"Packet filter evaluation precedence\" , \"rsvp.3gpp_obj.pf_ev_prec\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_pf_len , {\n \"Packet filter length\" , \"rsvp.3gpp_obj.pf_len\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_pf_type , {\n \"PF Type\" , \"rsvp.3gpp_obj.pf_type\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_pf_cont_len , {\n \"Length\" , \"rsvp.3gpp_obj.pf_cont_len\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_pf_comp_type_id , {\n \"PF component identifier\" , \"rsvp.3gpp_obj.pf_comp_type_id\" , FT_UINT8 , BASE_DEC , VALS ( rsvp_3gpp_obj_pf_comp_type_id_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_pf_src_ipv4 , {\n \"IPv4 Source Address\" , \"rsvp.3gpp_obj.pf_src_ipv4\" , FT_IPv4 , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_pf_dst_ipv4 , {\n \"IPv4 Destination Address\" , \"rsvp.3gpp_obj.pf_dst_ipv4\" , FT_IPv4 , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_pf_ipv4_mask , {\n \"IPv4 Mask\" , \"rsvp.3gpp_obj.pf_ipv4_mask\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_pf_src_ipv6 , {\n \"IPv6 Source Address\" , \"rsvp.3gpp_obj.pf_src_ipv6\" , FT_IPv6 , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_pf_dst_ipv6 , {\n \"IPv6 Destination Address\" , \"rsvp.3gpp_obj.pf_dst_ipv6\" , FT_IPv6 , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_pf_ipv6_prefix_length , {\n \"IPv6 Prefix length\" , \"rsvp.3gpp_obj.pf_ipv6_prefix_length\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_pf_prot_next , {\n \"Protocol field(IPv4) or Next Header(IPv6)\" , \"rsvp.3gpp_obj.pf_prot_next\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_pf_dst_port , {\n \"Single Destination Port\" , \"rsvp.3gpp_obj.pf_dst_port\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_pf_src_port , {\n \"Single Source Port\" , \"rsvp.3gpp_obj.pf_src_port\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_pf_ipsec_spi , {\n \"IPsec SPI\" , \"rsvp.3gpp_obj.pf_ipsec_spi\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_pf_tos_tc , {\n \"Type of Service (IPv4)/Traffic Class (IPv6)\" , \"rsvp.3gpp_obj.pf_tos_tc\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_pf_flow_lbl , {\n \"Flow label\" , \"rsvp.3gpp_obj.pf_flow_lbl\" , FT_UINT24 , BASE_DEC , NULL , 0x0fffff , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_pf_ipv6 , {\n \"IPv6 Address\" , \"rsvp.3gpp_obj.pf_ipv6\" , FT_IPv6 , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_pf_treatment , {\n \"PF Treatment\" , \"rsvp.3gpp_obj.pf_treatment\" , FT_UINT8 , BASE_DEC , VALS ( rsvp_3gpp_obj_pf_treatment_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_pf_hint , {\n \"PF Hint\" , \"rsvp.3gpp_obj.pf_hint\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_tft_qos_list_len , {\n \"QoS List Length\" , \"rsvp.3gpp_obj.qos_list_len\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_r_qos_blob_len , {\n \"R_QOS_SUB_BLOB_LEN\" , \"rsvp.3gpp_obj.r_qos_blob_len\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_r_qos_blob_flow_pri , {\n \"FLOW_PRIORITY\" , \"rsvp.3gpp_obj.r_qos_blob.flow_pri\" , FT_UINT8 , BASE_DEC , NULL , 0xf0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_r_qos_blob_num_qos_att_set , {\n \"NUM_QoS_ATTRIBUTE_SETS\" , \"rsvp.3gpp_obj.r_qos_blob.num_qos_att_set\" , FT_UINT8 , BASE_DEC , NULL , 0x0e , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_qos_att_set_len , {\n \"QoS_ATTRIBUTE_SET_LEN\" , \"rsvp.3gpp_obj.r_qos_blob.qos_att_set_len\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_qos_attribute_set_id , {\n \"QoS_ATTRIBUTE_SET_ID\" , \"rsvp.3gpp_obj.r_qos_blob.qos_attribute_set_id\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_qos_attribute_verbose , {\n \"VERBOSE\" , \"rsvp.3gpp_obj.r_qos_blob.verbose\" , FT_BOOLEAN , 8 , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_qos_attribute_prof_id , {\n \"ProfileID\" , \"rsvp.3gpp_obj.r_qos_blob.prof_id\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_qos_attribute_traff_cls , {\n \"Traffic_Class\" , \"rsvp.3gpp_obj.r_qos_blob.traff_cls\" , FT_UINT8 , BASE_DEC , VALS ( rsvp_3gpp_obj_traffic_class_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_qos_attribute_peak_rate , {\n \"Peak_Rate\" , \"rsvp.3gpp_obj.r_qos_blob.peak_rate\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_qos_attribute_bucket_size , {\n \"Bucket_Size\" , \"rsvp.3gpp_obj.r_qos_blob.bucket_size\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_qos_attribute_token_rate , {\n \"Token_Rate\" , \"rsvp.3gpp_obj.r_qos_blob.token_rate\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_qos_attribute_max_latency , {\n \"Max_Latency\" , \"rsvp.3gpp_obj.r_qos_blob.max_latency\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_qos_attribute_max_loss_rte , {\n \"Max_Loss_Rate\" , \"rsvp.3gpp_obj.r_qos_blob.max_loss_rte\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_qos_attribute_delay_var_sensitive , {\n \"Delay_Var_Sensitive\" , \"rsvp.3gpp_obj.r_qos_blob.delay_var_sensitive\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_qos_attribute_reserved , {\n \"Reserved\" , \"rsvp.3gpp_obj.r_qos_blob.reserved\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_r_qos_blob , {\n \"R_QOS_SUB_BLOB\" , \"rsvp.3gpp_obj.r_qos_blob\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_qos_result , {\n \"Result Code\" , \"rsvp.3gpp_obj.qos_result_code\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_xro_sobj_lbit , {\n \"L(oose) bit\" , \"rsvp.xro.sobj.lbit\" , FT_UINT8 , BASE_DEC , VALS ( rsvp_xro_sobj_lbit_vals ) , 0x80 , NULL , HFILL }\n }\n , {\n & hf_rsvp_xro_sobj_type , {\n \"Type\" , \"rsvp.xro.sobj.type\" , FT_UINT8 , BASE_DEC , VALS ( rsvp_xro_sobj_type_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_xro_sobj_len , {\n \"Length\" , \"rsvp.xro.sobj.len\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_xro_sobj_ipv4_addr , {\n \"IPv4 prefix\" , \"rsvp.xro.sobj.ipv4.addr\" , FT_IPv4 , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_xro_sobj_ipv4_prefix , {\n \"Prefix Length\" , \"rsvp.xro.sobj.ipv4.prefix\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_xro_sobj_ipv4_attr , {\n \"Attribute\" , \"rsvp.xro.sobj.ipv4.attr\" , FT_UINT8 , BASE_DEC , VALS ( rsvp_xro_sobj_ip_attr_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_xro_sobj_ipv6_addr , {\n \"IPv6 prefix\" , \"rsvp.xro.sobj.ipv6.addr\" , FT_IPv6 , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_xro_sobj_ipv6_prefix , {\n \"Prefix Length\" , \"rsvp.xro.sobj.ipv6.prefix\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_xro_sobj_ipv6_attr , {\n \"Attribute\" , \"rsvp.xro.sobj.ipv6.attr\" , FT_UINT8 , BASE_DEC , VALS ( rsvp_xro_sobj_ip_attr_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_xro_sobj_srlg_id , {\n \"SRLG Id\" , \"rsvp.xro.sobj.srlg.id\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_xro_sobj_srlg_res , {\n \"Reserved\" , \"rsvp.xro.sobj.srlg.res\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_private_data , {\n \"Data\" , \"rsvp.private.data\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_juniper_numtlvs , {\n \"Num TLVs\" , \"rsvp.juniper.tlvs\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_juniper_padlength , {\n \"Padlength\" , \"rsvp.juniper.padlength\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_juniper_type , {\n \"Juniper type\" , \"rsvp.juniper.type\" , FT_UINT8 , BASE_HEX , VALS ( rsvp_juniper_attr_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_juniper_length , {\n \"Juniper length\" , \"rsvp.juniper.length\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_juniper_attrib_cos , {\n \"Cos\" , \"rsvp.juniper.attrib.cos\" , FT_UINT16 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_juniper_attrib_metric1 , {\n \"Metric 1\" , \"rsvp.juniper.attrib.metric1\" , FT_UINT16 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_juniper_attrib_metric2 , {\n \"Metric 2\" , \"rsvp.juniper.attrib.metric2\" , FT_UINT16 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_juniper_attrib_ccc_status , {\n \"CCC Status\" , \"rsvp.juniper.attrib.ccc_status\" , FT_UINT16 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_juniper_attrib_path , {\n \"Path type\" , \"rsvp.juniper.attrib.path\" , FT_UINT16 , BASE_HEX , VALS ( rsvp_juniper_path_attr_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_juniper_attrib_unknown , {\n \"Unknown\" , \"rsvp.juniper.attrib.unknown\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_juniper_pad , {\n \"Pad\" , \"rsvp.juniper.pad\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_juniper_unknown , {\n \"Unknown\" , \"rsvp.juniper.unknown\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_unknown_data , {\n \"Data\" , \"rsvp.unknown.data\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_loose_hop , {\n \"Hop\" , \"rsvp.loose_hop\" , FT_BOOLEAN , 8 , TFS ( & tfs_loose_strict_hop ) , 0x80 , NULL , HFILL }\n }\n , {\n & hf_rsvp_data_length , {\n \"Data length\" , \"rsvp.data_length\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_session_flags , {\n \"Flags\" , \"rsvp.session.flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_session_destination_address , {\n \"Destination address\" , \"rsvp.session.destination_address\" , FT_IPv6 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_session_protocol , {\n \"Protocol\" , \"rsvp.session.protocol\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_session_destination_port , {\n \"Destination port\" , \"rsvp.session.destination_port\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_session_dscp , {\n \"DSCP\" , \"rsvp.session.dscp\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & dscp_vals_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_session_extended_ipv4_address , {\n \"Extended IPv4 Address\" , \"rsvp.session.extended_ipv4_address\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_session_data , {\n \"Data\" , \"rsvp.session.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_ifid_tlv_length , {\n \"Length\" , \"rsvp.ifid_tlv.length\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_ifid_tlv_ipv4_address , {\n \"IPv4 address\" , \"rsvp.ifid_tlv.ipv4_address\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_ifid_tlv_ipv6_address , {\n \"IPv6 address\" , \"rsvp.ifid_tlv.ipv6_address\" , FT_IPv6 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_ifid_tlvinterface_id , {\n \"Interface-ID\" , \"rsvp.ifid_tlv.interface_id\" , FT_UINT32 , BASE_DEC_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_ifid_tlv_label , {\n \"Label\" , \"rsvp.ifid_tlv.label\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_ifid_tlv_node_id , {\n \"Node ID\" , \"rsvp.ifid_tlv.node_id\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_ifid_tlv_area , {\n \"Area\" , \"rsvp.ifid_tlv.area\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_ifid_tlv_autonomous_system , {\n \"Autonomous System\" , \"rsvp.ifid_tlv.autonomous_system\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_ifid_tlv_error_string , {\n \"Error String\" , \"rsvp.ifid_tlv.error_string\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_ifid_tlv_data , {\n \"Data\" , \"rsvp.ifid_tlv.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_ifid_tlv_padding , {\n \"Padding\" , \"rsvp.ifid_tlv.padding\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_hop_neighbor_address_ipv4 , {\n \"Neighbor address\" , \"rsvp.hop.neighbor_address_ipv4\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_hop_logical_interface , {\n \"Logical interface\" , \"rsvp.hop.logical_interface\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_hop_neighbor_address_ipv6 , {\n \"Neighbor address\" , \"rsvp.neighbor_address_ipv6\" , FT_IPv6 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_hop_data , {\n \"Data\" , \"rsvp.hop.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_time_values_data , {\n \"Data\" , \"rsvp.time_values.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_error_error_node_ipv4 , {\n \"Error node\" , \"rsvp.error.error_node_ipv4\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_error_error_node_ipv6 , {\n \"Error node\" , \"rsvp.error.error_node_ipv6\" , FT_IPv6 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_error_data , {\n \"Data\" , \"rsvp.error.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_error_error_code , {\n \"Error code\" , \"rsvp.error.error_code\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & rsvp_error_codes_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_scope_ipv4_address , {\n \"IPv4 Address\" , \"rsvp.scope.ipv4_address\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_scope_ipv6_address , {\n \"IPv6 Address\" , \"rsvp.scope.ipv6_address\" , FT_IPv6 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_scope_data , {\n \"Data\" , \"rsvp.scope.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_style_flags , {\n \"Flags\" , \"rsvp.style.flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_style_style , {\n \"Style\" , \"rsvp.style.style\" , FT_UINT24 , BASE_HEX , VALS ( style_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_style_data , {\n \"Data\" , \"rsvp.style.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_confirm_receiver_address_ipv4 , {\n \"Receiver address\" , \"rsvp.confirm.receiver_address_ipv4\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_confirm_receiver_address_ipv6 , {\n \"Receiver address\" , \"rsvp.confirm.receiver_address_ipv6\" , FT_IPv6 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_confirm_data , {\n \"Data\" , \"rsvp.confirm.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_template_filter_source_address_ipv6 , {\n \"Source address\" , \"rsvp.template_filter.source_address_ipv6\" , FT_IPv6 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_template_filter_source_port , {\n \"Source port\" , \"rsvp.template_filter.source_port\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_template_filter_data , {\n \"Data\" , \"rsvp.template_filter.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_eth_tspec_length , {\n \"Length\" , \"rsvp.eth_tspec.length\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_eth_tspec_profile , {\n \"Profile\" , \"rsvp.eth_tspec.profile\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_eth_tspec_index , {\n \"Index\" , \"rsvp.eth_tspec.index\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_eth_tspec_reserved , {\n \"Reserved\" , \"rsvp.eth_tspec.reserved\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_eth_tspec_el2cp , {\n \"EL2CP\" , \"rsvp.eth_tspec.el2cp\" , FT_UINT8 , BASE_DEC , VALS ( el2cp_val_str ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_eth_tspec_il2cp , {\n \"IL2CP\" , \"rsvp.eth_tspec.il2cp\" , FT_UINT8 , BASE_DEC , VALS ( il2cp_val_str ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_eth_tspec_cir , {\n \"CIR\" , \"rsvp.eth_tspec.cir\" , FT_FLOAT , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_eth_tspec_cbs , {\n \"CBS\" , \"rsvp.eth_tspec.cbs\" , FT_FLOAT , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_eth_tspec_eir , {\n \"EIR\" , \"rsvp.eth_tspec.eir\" , FT_FLOAT , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_eth_tspec_ebs , {\n \"EBS\" , \"rsvp.eth_tspec.ebs\" , FT_FLOAT , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_tspec_message_format_version , {\n \"Message format version\" , \"rsvp.tspec.message_format_version\" , FT_UINT8 , BASE_DEC , NULL , 0xF0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_tspec_service_header , {\n \"Service header\" , \"rsvp.tspec.service_header\" , FT_UINT8 , BASE_DEC , VALS ( qos_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_tspec_token_bucket_rate , {\n \"Token bucket rate\" , \"rsvp.tspec.token_bucket_rate\" , FT_FLOAT , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_tspec_token_bucket_size , {\n \"Token bucket size\" , \"rsvp.tspec.token_bucket_size\" , FT_FLOAT , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_tspec_peak_data_rate , {\n \"Peak data rate\" , \"rsvp.tspec.peak_data_rate\" , FT_FLOAT , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_tspec_hint , {\n \"Hint\" , \"rsvp.tspec.hint\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_compression_factor , {\n \"Compression Factor\" , \"rsvp.tspec.compression_factor\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_tspec_signal_type_sonet , {\n \"Signal Type\" , \"rsvp.tspec.signal_type\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & gmpls_sonet_signal_type_str_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_tspec_requested_concatenation , {\n \"Requested Concatenation (RCC)\" , \"rsvp.tspec.requested_concatenation\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_tspec_number_of_contiguous_components , {\n \"Number of Contiguous Components (NCC)\" , \"rsvp.tspec.number_of_contiguous_components\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_tspec_number_of_virtual_components , {\n \"Number of Virtual Components (NVC)\" , \"rsvp.tspec.number_of_virtual_components\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_tspec_multiplier , {\n \"Multiplier (MT)\" , \"rsvp.tspec.multiplier\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_tspec_transparency , {\n \"Transparency (T)\" , \"rsvp.tspec.transparency\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_tspec_profile , {\n \"Profile (P)\" , \"rsvp.tspec.profile\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_tspec_signal_type_g709 , {\n \"Signal Type\" , \"rsvp.tspec.signal_type\" , FT_UINT8 , BASE_DEC | BASE_RANGE_STRING , RVALS ( gmpls_g709_signal_type_rvals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_tspec_number_of_multiplexed_components , {\n \"Number of Multiplexed Components (NMC)\" , \"rsvp.number_of_multiplexed_components\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_tspec_mtu , {\n \"MTU\" , \"rsvp.tspec.mtu\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_tspec_data , {\n \"Data\" , \"rsvp.tspec.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flowspec_message_format_version , {\n \"Message format version\" , \"rsvp.flowspec.message_format_version\" , FT_UINT8 , BASE_DEC , NULL , 0xF0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flowspec_service_header , {\n \"Service header\" , \"rsvp.flowspec.service_header\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & intsrv_services_str_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flowspec_token_bucket_rate , {\n \"Token bucket rate\" , \"rsvp.flowspec.token_bucket_rate\" , FT_FLOAT , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flowspec_token_bucket_size , {\n \"Token bucket size\" , \"rsvp.flowspec.token_bucket_size\" , FT_FLOAT , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flowspec_peak_data_rate , {\n \"Peak data rate\" , \"rsvp.flowspec.peak_data_rate\" , FT_FLOAT , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flowspec_rate , {\n \"Rate\" , \"rsvp.flowspec.rate\" , FT_FLOAT , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flowspec_slack_term , {\n \"Slack term\" , \"rsvp.flowspec.slack_term\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flowspec_signal_type_sonet , {\n \"Signal Type\" , \"rsvp.flowspec.signal_type\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & gmpls_sonet_signal_type_str_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flowspec_requested_concatenation , {\n \"Requested Concatenation (RCC)\" , \"rsvp.flowspec.requested_concatenation\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flowspec_number_of_contiguous_components , {\n \"Number of Contiguous Components (NCC)\" , \"rsvp.flowspec.number_of_contiguous_components\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flowspec_number_of_virtual_components , {\n \"Number of Virtual Components (NVC)\" , \"rsvp.flowspec.number_of_virtual_components\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flowspec_multiplier , {\n \"Multiplier (MT)\" , \"rsvp.flowspec.multiplier\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flowspec_transparency , {\n \"Transparency (T)\" , \"rsvp.flowspec.transparency\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flowspec_profile , {\n \"Profile (P)\" , \"rsvp.flowspec.profile\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flowspec_signal_type_g709 , {\n \"Signal Type\" , \"rsvp.flowspec.signal_type\" , FT_UINT8 , BASE_DEC | BASE_RANGE_STRING , RVALS ( gmpls_g709_signal_type_rvals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flowspec_number_of_multiplexed_components , {\n \"Number of Multiplexed Components (NMC)\" , \"rsvp.flowspec.number_of_multiplexed_components\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flowspec_mtu , {\n \"MTU\" , \"rsvp.flowspec.mtu\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_adspec_message_format_version , {\n \"Message format version\" , \"rsvp.adspec.message_format_version\" , FT_UINT8 , BASE_DEC , NULL , 0xF0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_adspec_service_header , {\n \"Service header\" , \"rsvp.adspec.service_header\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & intsrv_services_str_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_integrity_flags , {\n \"Flags\" , \"rsvp.integrity.flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_integrity_key_identifier , {\n \"Key Identifier\" , \"rsvp.integrity.key_identifier\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_integrity_sequence_number , {\n \"Sequence Number\" , \"rsvp.integrity.sequence_number\" , FT_UINT64 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_integrity_hash , {\n \"Hash\" , \"rsvp.integrity.hash\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_policy_data , {\n \"Data\" , \"rsvp.policy.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_label_request_l3pid , {\n \"L3PID\" , \"rsvp.label_request.l3pid\" , FT_UINT16 , BASE_HEX , VALS ( etype_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_label_request_min_vpi , {\n \"Min VPI\" , \"rsvp.label_request.min_vpi\" , FT_UINT16 , BASE_DEC , NULL , 0x7f , NULL , HFILL }\n }\n , {\n & hf_rsvp_label_request_min_vci , {\n \"Min VCI\" , \"rsvp.label_request.min_vci\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_label_request_max_vpi , {\n \"Max VPI\" , \"rsvp.label_request.max_vpi\" , FT_UINT16 , BASE_DEC , NULL , 0x7f , NULL , HFILL }\n }\n , {\n & hf_rsvp_label_request_max_vci , {\n \"Max VCI\" , \"rsvp.label_request.max_vci\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_label_request_lsp_encoding_type , {\n \"LSP Encoding Type\" , \"rsvp.label_request.lsp_encoding_type\" , FT_UINT8 , BASE_DEC | BASE_RANGE_STRING , RVALS ( gmpls_lsp_enc_rvals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_label_request_switching_type , {\n \"Switching Type\" , \"rsvp.label_request.switching_type\" , FT_UINT8 , BASE_DEC | BASE_RANGE_STRING , RVALS ( gmpls_switching_type_rvals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_g_pid , {\n \"G-PID\" , \"rsvp.label_request.g_pid\" , FT_UINT16 , BASE_HEX | BASE_RANGE_STRING , RVALS ( gmpls_gpid_rvals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_label_request_data , {\n \"Data\" , \"rsvp.label_request.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_label_label , {\n \"Label\" , \"rsvp.label.label\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_label_generalized_label , {\n \"Generalized Label\" , \"rsvp.label.generalized_label\" , FT_UINT32 , BASE_DEC_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_label_generalized_label_evpl_vlad_id , {\n \"VLAN ID\" , \"rsvp.label.generalized_label_evpl_vlad_id\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_label_data , {\n \"Data\" , \"rsvp.label.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_label_set_action , {\n \"Action\" , \"rsvp.label_set.action\" , FT_UINT8 , BASE_DEC , VALS ( action_type_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_session_attribute_exclude_any , {\n \"Exclude-Any\" , \"rsvp.session_attribute.exclude_any\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_session_attribute_include_any , {\n \"Include-Any\" , \"rsvp.session_attribute.include_any\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_session_attribute_include_all , {\n \"Include-All\" , \"rsvp.session_attribute.include_all\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_session_attribute_setup_priority , {\n \"Setup priority\" , \"rsvp.session_attribute.setup_priority\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_session_attribute_hold_priority , {\n \"Hold priority\" , \"rsvp.session_attribute.hold_priority\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_session_attribute_flags , {\n \"Flags\" , \"rsvp.session_attribute.flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_session_attribute_name_length , {\n \"Name length\" , \"rsvp.session_attribute.name_length\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_session_attribute_name , {\n \"Name\" , \"rsvp.session_attribute.name\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_session_attribute_data , {\n \"Data\" , \"rsvp.session_attribute.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_ero_rro_subobjects_length , {\n \"Length\" , \"rsvp.ero_rro_subobjects.length\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_ero_rro_subobjects_ipv4_hop , {\n \"IPv4 hop\" , \"rsvp.ero_rro_subobjects.ipv4_hop\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_ero_rro_subobjects_prefix_length , {\n \"Prefix length\" , \"rsvp.ero_rro_subobjects.prefix_length\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_ero_rro_subobjects_flags , {\n \"Flags\" , \"rsvp.ero_rro_subobjects.flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_ero_rro_subobjects_ipv6_hop , {\n \"IPv6 hop\" , \"rsvp.ero_rro_subobjects.ipv6_hop\" , FT_IPv6 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_ero_rro_subobjects_label , {\n \"Label\" , \"rsvp.ero_rro_subobjects.label\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_ero_rro_subobjects_router_id , {\n \"Router-ID\" , \"rsvp.ero_rro_subobjects.router_id\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_ero_rro_subobjects_interface_id , {\n \"Interface-ID\" , \"rsvp.ero_rro_subobjects.interface_id\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_ero_rro_subobjects_path_key , {\n \"Path Key\" , \"rsvp.ero_rro_subobjects.path_key\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_ero_rro_subobjects_pce_id_ipv4 , {\n \"PCE-ID\" , \"rsvp.ero_rro_subobjects.pce_id_ipv4\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_ero_rro_subobjects_pce_id_ipv6 , {\n \"PCE-ID\" , \"rsvp.ero_rro_subobjects.pce_id_ipv6\" , FT_IPv6 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_ero_rro_subobjects_private_length , {\n \"Length\" , \"rsvp.ero_rro_subobjects.private_length\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_ero_rro_subobjects_private_data , {\n \"Data\" , \"rsvp.ero_rro_subobjects.private_data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_explicit_route_data , {\n \"Data\" , \"rsvp.explicit_route.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_record_route_data , {\n \"Data\" , \"rsvp.record_route.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_exclude_route_data , {\n \"Data\" , \"rsvp.exclude_route.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_message_id_flags , {\n \"Flags\" , \"rsvp.message_id.flags\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_message_id_epoch , {\n \"Epoch\" , \"rsvp.message_id.epoch\" , FT_UINT24 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_message_id_message_id , {\n \"Message-ID\" , \"rsvp.message_id.message_id\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_message_id_data , {\n \"Data\" , \"rsvp.message_id.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_message_id_ack_flags , {\n \"Flags\" , \"rsvp.message_id_ack.flags\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_message_id_ack_epoch , {\n \"Epoch\" , \"rsvp.message_id_ack.epoch\" , FT_UINT24 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_message_id_ack_message_id , {\n \"Message-ID\" , \"rsvp.message_id_ack.message_id\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_message_id_ack_data , {\n \"Data\" , \"rsvp.message_id_ack.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_message_id_list_flags , {\n \"Flags\" , \"rsvp.message_id_list.flags\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_message_id_list_epoch , {\n \"Epoch\" , \"rsvp.message_id_list.epoch\" , FT_UINT24 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_message_id_list_message_id , {\n \"Message-ID\" , \"rsvp.message_id_list.message_id\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_message_id_list_data , {\n \"Data\" , \"rsvp.message_id_list.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_hello_source_instance , {\n \"Source Instance\" , \"rsvp.hello.source_instance\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_hello_destination_instance , {\n \"Destination Instance\" , \"rsvp.hello.destination_instance\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_dclass_dscp , {\n \"DSCP\" , \"rsvp.dclass.dscp\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & dscp_vals_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_dclass_data , {\n \"Data\" , \"rsvp.dclass.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_admin_status_bits , {\n \"Admin Status\" , \"rsvp.admin_status.bits\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_admin_status_data , {\n \"Data\" , \"rsvp.admin_status.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_lsp_attributes_tlv , {\n \"LSP attributes TLV\" , \"rsvp.lsp_attributes_tlv\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_lsp_attributes_tlv_data , {\n \"Data\" , \"rsvp.lsp_attributes_tlv.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_association_type , {\n \"Association type\" , \"rsvp.association.type\" , FT_UINT16 , BASE_DEC , VALS ( association_type_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_association_id , {\n \"Association ID\" , \"rsvp.association.id\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_association_source_ipv4 , {\n \"Association source\" , \"rsvp.association.source_ipv4\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_association_source_ipv6 , {\n \"Association source\" , \"rsvp.association.source_ipv6\" , FT_IPv6 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_association_routing_area_id , {\n \"Routing Area ID\" , \"rsvp.association.routing_area_id\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_association_node_id , {\n \"Node ID\" , \"rsvp.association.node_id\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_association_padding , {\n \"Padding\" , \"rsvp.association.padding\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_association_data , {\n \"Data\" , \"rsvp.association.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_lsp_tunnel_if_id_length , {\n \"Length\" , \"rsvp.lsp_tunnel_if_id.length\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_lsp_tunnel_if_id_component_link_identifier , {\n \"Component link identifier\" , \"rsvp.lsp_tunnel_if_id.component_link_identifier\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_lsp_tunnel_if_id_component_link_identifier_ipv4 , {\n \"Component link identifier\" , \"rsvp.lsp_tunnel_if_id.component_link_identifier_ipv4\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_lsp_tunnel_if_id_lsp_encoding_type , {\n \"LSP Encoding Type\" , \"rsvp.lsp_tunnel_if_id.lsp_encoding_type\" , FT_UINT8 , BASE_DEC | BASE_RANGE_STRING , RVALS ( gmpls_lsp_enc_rvals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_lsp_tunnel_if_id_switching_type , {\n \"Switching Type\" , \"rsvp.lsp_tunnel_if_id.switching_type\" , FT_UINT8 , BASE_DEC | BASE_RANGE_STRING , RVALS ( gmpls_switching_type_rvals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_lsp_tunnel_if_id_signal_type , {\n \"Signal Type\" , \"rsvp.lsp_tunnel_if_id.signal_type\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & gmpls_sonet_signal_type_str_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_lsp_tunnel_if_id_connection_id , {\n \"Sub Interface/Connection ID\" , \"rsvp.lsp_tunnel_if_id.connection_id\" , FT_UINT64 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_lsp_tunnel_if_id_sc_pc_id , {\n \"SC PC ID\" , \"rsvp.lsp_tunnel_if_id.sc_pc_id\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_lsp_tunnel_if_id_sc_pc_scn_address , {\n \"SC PC SCN Address\" , \"rsvp.lsp_tunnel_if_id.sc_pc_scn_address\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_lsp_tunnel_if_id_router_id , {\n \"Router ID\" , \"rsvp.lsp_tunnel_if_id.router_id\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_lsp_tunnel_if_id_interface_id , {\n \"Interface ID\" , \"rsvp.lsp_tunnel_if_id.interface_id\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_lsp_tunnel_if_id_ipv4_interface_address , {\n \"IPv4 interface address\" , \"rsvp.lsp_tunnel_if_id.ipv4_interface_address\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_lsp_tunnel_if_id_target_igp_instance , {\n \"Target IGP instance\" , \"rsvp.lsp_tunnel_if_id.target_igp_instance\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_lsp_tunnel_if_id_action , {\n \"Action\" , \"rsvp.lsp_tunnel_if_id.action\" , FT_UINT8 , BASE_DEC , VALS ( lsp_tunnel_if_id_action_str ) , 0xF0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_lsp_tunnel_if_id_ipv6_interface_address , {\n \"IPv6 interface address\" , \"rsvp.lsp_tunnel_if_id.ipv6_interface_address\" , FT_IPv6 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_lsp_tunnel_if_id_data , {\n \"Data\" , \"rsvp.lsp_tunnel_if_id.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_notify_request_notify_node_address_ipv4 , {\n \"Notify node address\" , \"rsvp.notify_request.notify_node_address_ipv4\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_notify_request_notify_node_address_ipv6 , {\n \"Notify node address\" , \"rsvp.notify_request.notify_node_address_ipv6\" , FT_IPv6 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_notify_request_data , {\n \"Data\" , \"rsvp.notify_request.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_call_id_data , {\n \"Data\" , \"rsvp.call_id.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_call_id_address_type , {\n \"Address type\" , \"rsvp.call_id.address_type\" , FT_UINT8 , BASE_DEC , VALS ( address_type_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_call_id_reserved , {\n \"Reserved\" , \"rsvp.call_id.reserved\" , FT_UINT24 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_call_id_international_segment , {\n \"International Segment\" , \"rsvp.call_id.international_segment\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_call_id_national_segment , {\n \"National Segment\" , \"rsvp.call_id.national_segment\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_call_id_local_identifier , {\n \"Local Identifier\" , \"rsvp.call_id.local_identifier\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_restart_cap_data , {\n \"Data\" , \"rsvp.restart_cap.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_protection_info_link_flags , {\n \"Link Flags\" , \"rsvp.protection_info.link_flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_protection_info_data , {\n \"Data\" , \"rsvp.protection_info.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_fast_reroute_setup_priority , {\n \"Setup Priority\" , \"rsvp.fast_reroute.setup_priority\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_fast_reroute_hold_priority , {\n \"Hold Priority\" , \"rsvp.fast_reroute.hold_priority\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_fast_reroute_hop_limit , {\n \"Hop Limit\" , \"rsvp.fast_reroute.hop_limit\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_fast_reroute_flags , {\n \"Flags\" , \"rsvp.fast_reroute.flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_fast_reroute_bandwidth , {\n \"Bandwidth\" , \"rsvp.fast_reroute.bandwidth\" , FT_FLOAT , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_fast_reroute_include_any , {\n \"Include-Any\" , \"rsvp.fast_reroute.include_any\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_fast_reroute_exclude_any , {\n \"Exclude-Any\" , \"rsvp.fast_reroute.exclude_any\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_fast_reroute_include_all , {\n \"Include-All\" , \"rsvp.fast_reroute.include_all\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_fast_reroute_data , {\n \"Data\" , \"rsvp.fast_reroute.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_detour_data , {\n \"Data\" , \"rsvp.detour.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_diffserv_data , {\n \"Data\" , \"rsvp.diffserv.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_diffserv_aware_te_data , {\n \"Data\" , \"rsvp.diffserv_aware_te.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_version , {\n \"RSVP Version\" , \"rsvp.version\" , FT_UINT8 , BASE_DEC , NULL , 0xF0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_flags , {\n \"Flags\" , \"rsvp.flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0F , NULL , HFILL }\n }\n , {\n & hf_rsvp_sending_ttl , {\n \"Sending TTL\" , \"rsvp.sending_ttl\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_message_length , {\n \"Message length\" , \"rsvp.message_length\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_length , {\n \"Length\" , \"rsvp.length\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_extended_tunnel_id , {\n \"Extended Tunnel ID\" , \"rsvp.extended_tunnel_id\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_extended_tunnel_ipv6 , {\n \"Extended Tunnel ID\" , \"rsvp.extended_tunnel_id_ipv6\" , FT_IPv6 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_extended_tunnel , {\n \"Extended Tunnel\" , \"rsvp.extended_tunnel\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_refresh_interval , {\n \"Refresh interval\" , \"rsvp.refresh_interval\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_minimum_policed_unit , {\n \"Minimum policed unit [m]\" , \"rsvp.minimum_policed_unit\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_maximum_packet_size , {\n \"Maximum packet size [M]\" , \"rsvp.maximum_packet_size\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_hf_rsvp_adspec_break_bit , {\n \"Break bit\" , \"rsvp.adspec.break_bit\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , 0x80 , NULL , HFILL }\n }\n , {\n & hf_rsvp_label_request_m , {\n \"M (Merge in Data Plane)\" , \"rsvp.label_request.m\" , FT_BOOLEAN , 8 , TFS ( & tfs_can_cannot ) , 0x80 , NULL , HFILL }\n }\n , {\n & hf_rsvp_dlci_length , {\n \"DLCI Length\" , \"rsvp.label_request.dlci_length\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_min_dlci , {\n \"Min DLCI\" , \"rsvp.label_request.min_dlci\" , FT_UINT24 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_max_dlci , {\n \"Max DLCI\" , \"rsvp.label_request.max_dlci\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_ero_rro_autonomous_system , {\n \"Autonomous System\" , \"rsvp.ero_rro_subobjects.autonomous_system\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_nsap_length , {\n \"NSAP Length\" , \"rsvp.nsap_length\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_gen_uni_data , {\n \"Data\" , \"rsvp.gen_uni.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_gen_uni_logical_port_id , {\n \"Logical Port ID\" , \"rsvp.gen_uni.logical_port_id\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_gen_uni_service_level , {\n \"Service Level\" , \"rsvp.gen_uni.service_level\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_restart_cap_restart_time , {\n \"Restart Time\" , \"rsvp.restart_cap.restart_time\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_restart_cap_recovery_time , {\n \"Recovery Time\" , \"rsvp.restart_cap.recovery_time\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_detour_plr_id , {\n \"PLR ID\" , \"rsvp.detour.plr_id\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_detour_avoid_node_id , {\n \"Avoid Node ID\" , \"rsvp.detour.avoid_node_id\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_message_checksum , {\n \"Message Checksum\" , \"rsvp.message_checksum\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_call_attributes_endpont_id , {\n \"Endpoint ID\" , \"rsvp.call_attributes.endpoint_id\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_isis_area_id , {\n \"IS-IS Area Identifier\" , \"rsvp.isis_area_id\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_adspec_type , {\n \"Adspec Type\" , \"rsvp.adspec.type\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & adspec_params_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_adspec_len , {\n \"Length\" , \"rsvp.adspec.len\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_adspec_uint , {\n \"Adspec uint\" , \"rsvp.adspec.uint\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_adspec_float , {\n \"Adspec float\" , \"rsvp.adspec.float\" , FT_FLOAT , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_adspec_bytes , {\n \"Adspec bytes\" , \"rsvp.adspec.bytes\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_wavelength_freq , {\n \"Freq\" , \"rsvp.wavelength.freq\" , FT_FLOAT , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_wavelength_grid , {\n \"Grid\" , \"rsvp.wavelength.grid\" , FT_UINT8 , BASE_DEC , VALS ( lambda_grid_vals ) , 0xE0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_wavelength_channel_spacing , {\n \"Channel Spacing\" , \"rsvp.wavelength.channel_spacing\" , FT_UINT8 , BASE_DEC , NULL , 0x1E , NULL , HFILL }\n }\n , {\n & hf_rsvp_wavelength_n , {\n \"n\" , \"rsvp.wavelength.n\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_wavelength_wavelength , {\n \"Wavelength\" , \"rsvp.wavelength.wavelength\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_sonet_s , {\n \"S\" , \"rsvp.sonet.s\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_sonet_u , {\n \"U\" , \"rsvp.sonet.u\" , FT_UINT8 , BASE_DEC , NULL , 0xF0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_sonet_k , {\n \"K\" , \"rsvp.sonet.k\" , FT_UINT8 , BASE_DEC , NULL , 0x0F , NULL , HFILL }\n }\n , {\n & hf_rsvp_sonet_l , {\n \"L\" , \"rsvp.sonet.l\" , FT_UINT8 , BASE_DEC , NULL , 0xF0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_sonet_m , {\n \"M\" , \"rsvp.sonet.m\" , FT_UINT8 , BASE_DEC , NULL , 0x0F , NULL , HFILL }\n }\n , {\n & hf_rsvp_g709_t3 , {\n \"t3\" , \"rsvp.g709.t3\" , FT_UINT16 , BASE_DEC , NULL , 0x03F0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_g709_t2 , {\n \"t2\" , \"rsvp.g709.t2\" , FT_UINT8 , BASE_DEC , NULL , 0x0E , NULL , HFILL }\n }\n , {\n & hf_rsvp_g709_t1 , {\n \"t1\" , \"rsvp.g709.t1\" , FT_UINT8 , BASE_DEC , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_rsvp_label_set_type , {\n \"Label type\" , \"rsvp.label_set.type\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_label_set_subchannel , {\n \"Subchannel\" , \"rsvp.label_set.subchannel\" , FT_UINT32 , BASE_DEC_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_nsap_address , {\n \"NSAP address\" , \"rsvp.nsap_address\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_class_diversity , {\n \"Diversity\" , \"rsvp.class_diversity\" , FT_UINT8 , BASE_DEC , VALS ( ouni_guni_diversity_str ) , 0xF0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_egress_label_type , {\n \"Label type\" , \"rsvp.egress.label_type\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_egress_label , {\n \"Label\" , \"rsvp.egress.label\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_source_transport_network_addr , {\n \"Source Transport Network addr\" , \"rsvp.source_transport_network_addr\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_ie_data , {\n \"IE Data\" , \"rsvp.ie_data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_pf_dst_port_range , {\n \"Destination Port range\" , \"rsvp.3gpp_obj.pf_dst_port_range\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsvp_3gpp_obj_pf_src_port_range , {\n \"Source Port range\" , \"rsvp.3gpp_obj.pf_src_port_range\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , }\n ;\n static ei_register_info ei [ ] = {\n {\n & ei_rsvp_invalid_length , {\n \"rsvp.invalid_length\" , PI_MALFORMED , PI_ERROR , \"Invalid length\" , EXPFILL }\n }\n , {\n & ei_rsvp_packet_filter_component , {\n \"rsvp.packet_filter_component\" , PI_UNDECODED , PI_WARN , \"Not dissected Packet filter component\" , EXPFILL }\n }\n , {\n & ei_rsvp_bundle_component_msg , {\n \"rsvp.bundle_component_msg\" , PI_UNDECODED , PI_WARN , \"Bundle Component Messages Not Dissected\" , EXPFILL }\n }\n , {\n & ei_rsvp_parameter , {\n \"rsvp.parameter.unknown\" , PI_PROTOCOL , PI_WARN , \"Unknown parameter\" , EXPFILL }\n }\n , {\n & ei_rsvp_adspec_type , {\n \"rsvp.adspec.type.unknown\" , PI_PROTOCOL , PI_WARN , \"Unknown type\" , EXPFILL }\n }\n , {\n & ei_rsvp_call_id_address_type , {\n \"rsvp.call_id.address_type.unknown\" , PI_PROTOCOL , PI_WARN , \"Unknown Transport Network type\" , EXPFILL }\n }\n , {\n & ei_rsvp_session_type , {\n \"rsvp.session_type.unknown\" , PI_PROTOCOL , PI_WARN , \"Unknown session type\" , EXPFILL }\n }\n , }\n ;\n expert_module_t * expert_rsvp ;\n gint * ett_tree [ TT_MAX ] ;\n for ( i = 0 ;\n i < TT_MAX ;\n i ++ ) {\n ett_treelist [ i ] = - 1 ;\n ett_tree [ i ] = & ( ett_treelist [ i ] ) ;\n }\n proto_rsvp = proto_register_protocol ( \"Resource ReserVation Protocol (RSVP)\" , \"RSVP\" , \"rsvp\" ) ;\n proto_rsvp_e2e1 = proto_register_protocol ( \"Resource ReserVation Protocol (RSVP-E2EI)\" , \"RSVP-E2EI\" , \"rsvp-e2ei\" ) ;\n proto_register_field_array ( proto_rsvp , rsvpf_info , array_length ( rsvpf_info ) ) ;\n proto_register_subtree_array ( ett_tree , array_length ( ett_tree ) ) ;\n expert_rsvp = expert_register_protocol ( proto_rsvp ) ;\n expert_register_field_array ( expert_rsvp , ei , array_length ( ei ) ) ;\n register_rsvp_prefs ( ) ;\n register_init_routine ( & rsvp_init_protocol ) ;\n register_cleanup_routine ( & rsvp_cleanup_protocol ) ;\n register_conversation_table ( proto_rsvp , TRUE , rsvp_conversation_packet , rsvp_hostlist_packet ) ;\n }"}
{"idx": 9350, "target": 1, "func": "static int xsltCheckFilename ( const char * path ) {\n # ifdef HAVE_STAT struct stat stat_buffer ;\n # if defined ( WIN32 ) && ! defined ( __CYGWIN__ ) DWORD dwAttrs ;\n dwAttrs = GetFileAttributesA ( path ) ;\n if ( dwAttrs != INVALID_FILE_ATTRIBUTES ) {\n if ( dwAttrs & FILE_ATTRIBUTE_DIRECTORY ) {\n return 2 ;\n }\n }\n # endif if ( stat ( path , & stat_buffer ) == - 1 ) return 0 ;\n # ifdef S_ISDIR if ( S_ISDIR ( stat_buffer . st_mode ) ) {\n return 2 ;\n }\n # endif # endif return 1 ;\n }"}
{"idx": 9351, "target": 0, "func": "proto_item * proto_tree_add_item ( proto_tree * tree , int hfindex , tvbuff_t * tvb , const gint start , gint length , const guint encoding ) {\n register header_field_info * hfinfo ;\n PROTO_REGISTRAR_GET_NTH ( hfindex , hfinfo ) ;\n return proto_tree_add_item_new ( tree , hfinfo , tvb , start , length , encoding ) ;\n }"}
{"idx": 9352, "target": 0, "func": "gboolean bluetooth_gatt_has_no_parameter ( guint8 opcode ) {\n return is_readable_request ( opcode ) || opcode == ATT_OPCODE_WRITE_RESPONSE || opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ;\n }"}
{"idx": 9353, "target": 0, "func": "static void dumpGroups ( PGconn * conn ) {\n PQExpBuffer buf = createPQExpBuffer ( ) ;\n PGresult * res ;\n int i ;\n res = executeQuery ( conn , \"SELECT groname, grolist FROM pg_group ORDER BY 1\" ) ;\n if ( PQntuples ( res ) > 0 ) fprintf ( OPF , \"--\\n-- Role memberships\\n--\\n\\n\" ) ;\n for ( i = 0 ;\n i < PQntuples ( res ) ;\n i ++ ) {\n char * groname = PQgetvalue ( res , i , 0 ) ;\n char * grolist = PQgetvalue ( res , i , 1 ) ;\n PGresult * res2 ;\n int j ;\n if ( strlen ( grolist ) < 3 ) continue ;\n grolist = pg_strdup ( grolist ) ;\n grolist [ 0 ] = '(' ;\n grolist [ strlen ( grolist ) - 1 ] = ')' ;\n printfPQExpBuffer ( buf , \"SELECT usename FROM pg_shadow \" \"WHERE usesysid IN %s ORDER BY 1\" , grolist ) ;\n free ( grolist ) ;\n res2 = executeQuery ( conn , buf -> data ) ;\n for ( j = 0 ;\n j < PQntuples ( res2 ) ;\n j ++ ) {\n char * usename = PQgetvalue ( res2 , j , 0 ) ;\n if ( strcmp ( groname , usename ) == 0 ) continue ;\n fprintf ( OPF , \"GRANT %s\" , fmtId ( groname ) ) ;\n fprintf ( OPF , \" TO %s;\n\\n\" , fmtId ( usename ) ) ;\n }\n PQclear ( res2 ) ;\n }\n PQclear ( res ) ;\n destroyPQExpBuffer ( buf ) ;\n fprintf ( OPF , \"\\n\\n\" ) ;\n }"}
{"idx": 9354, "target": 0, "func": "static struct ewah_bitmap * lookup_stored_bitmap ( struct stored_bitmap * st ) {\n struct ewah_bitmap * parent ;\n struct ewah_bitmap * composed ;\n if ( st -> xor == NULL ) return st -> root ;\n composed = ewah_pool_new ( ) ;\n parent = lookup_stored_bitmap ( st -> xor ) ;\n ewah_xor ( st -> root , parent , composed ) ;\n ewah_pool_free ( st -> root ) ;\n st -> root = composed ;\n st -> xor = NULL ;\n return composed ;\n }"}
{"idx": 9355, "target": 1, "func": "SPL_METHOD ( SplFileInfo , getLinkTarget ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n int ret ;\n char buff [ MAXPATHLEN ] ;\n zend_error_handling error_handling ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n zend_replace_error_handling ( EH_THROW , spl_ce_RuntimeException , & error_handling TSRMLS_CC ) ;\n # if defined ( PHP_WIN32 ) || HAVE_SYMLINK if ( intern -> file_name == NULL ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"Empty filename\" ) ;\n RETURN_FALSE ;\n }\n else if ( ! IS_ABSOLUTE_PATH ( intern -> file_name , intern -> file_name_len ) ) {\n char expanded_path [ MAXPATHLEN ] ;\n if ( ! expand_filepath_with_mode ( intern -> file_name , expanded_path , NULL , 0 , CWD_EXPAND TSRMLS_CC ) ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"No such file or directory\" ) ;\n RETURN_FALSE ;\n }\n ret = php_sys_readlink ( expanded_path , buff , MAXPATHLEN - 1 ) ;\n }\n else {\n ret = php_sys_readlink ( intern -> file_name , buff , MAXPATHLEN - 1 ) ;\n }\n # else ret = - 1 ;\n # endif if ( ret == - 1 ) {\n zend_throw_exception_ex ( spl_ce_RuntimeException , 0 TSRMLS_CC , \"Unable to read link %s, error: %s\" , intern -> file_name , strerror ( errno ) ) ;\n RETVAL_FALSE ;\n }\n else {\n buff [ ret ] = '\\0' ;\n RETVAL_STRINGL ( buff , ret , 1 ) ;\n }\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n }"}
{"idx": 9356, "target": 1, "func": "static int svq1_encode_frame ( AVCodecContext * avctx , AVPacket * pkt , const AVFrame * pict , int * got_packet ) {\n SVQ1Context * const s = avctx -> priv_data ;\n AVFrame * const p = & s -> picture ;\n AVFrame temp ;\n int i , ret ;\n if ( ! pkt -> data && ( ret = av_new_packet ( pkt , s -> y_block_width * s -> y_block_height * MAX_MB_BYTES * 3 + FF_MIN_BUFFER_SIZE ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error getting output packet.\\n\" ) ;\n return ret ;\n }\n if ( avctx -> pix_fmt != AV_PIX_FMT_YUV410P ) {\n av_log ( avctx , AV_LOG_ERROR , \"unsupported pixel format\\n\" ) ;\n return - 1 ;\n }\n if ( ! s -> current_picture . data [ 0 ] ) {\n ff_get_buffer ( avctx , & s -> current_picture ) ;\n ff_get_buffer ( avctx , & s -> last_picture ) ;\n s -> scratchbuf = av_malloc ( s -> current_picture . linesize [ 0 ] * 16 * 2 ) ;\n }\n temp = s -> current_picture ;\n s -> current_picture = s -> last_picture ;\n s -> last_picture = temp ;\n init_put_bits ( & s -> pb , pkt -> data , pkt -> size ) ;\n * p = * pict ;\n p -> pict_type = avctx -> gop_size && avctx -> frame_number % avctx -> gop_size ? AV_PICTURE_TYPE_P : AV_PICTURE_TYPE_I ;\n p -> key_frame = p -> pict_type == AV_PICTURE_TYPE_I ;\n svq1_write_header ( s , p -> pict_type ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) if ( svq1_encode_plane ( s , i , s -> picture . data [ i ] , s -> last_picture . data [ i ] , s -> current_picture . data [ i ] , s -> frame_width / ( i ? 4 : 1 ) , s -> frame_height / ( i ? 4 : 1 ) , s -> picture . linesize [ i ] , s -> current_picture . linesize [ i ] ) < 0 ) return - 1 ;\n while ( put_bits_count ( & s -> pb ) & 31 ) put_bits ( & s -> pb , 1 , 0 ) ;\n flush_put_bits ( & s -> pb ) ;\n pkt -> size = put_bits_count ( & s -> pb ) / 8 ;\n if ( p -> pict_type == AV_PICTURE_TYPE_I ) pkt -> flags |= AV_PKT_FLAG_KEY ;\n * got_packet = 1 ;\n return 0 ;\n }"}
{"idx": 9357, "target": 0, "func": "bool send_id ( connection_t * c ) {\n if ( proxytype && c -> outgoing && ! c -> status . proxy_passed ) {\n return send_proxyrequest ( c ) ;\n }\n return send_request ( c , \"%d %s %d\" , ID , myself -> connection -> name , myself -> connection -> protocol_version ) ;\n }"}
{"idx": 9358, "target": 0, "func": "static UBool generateToUTable ( CnvExtData * extData , UCMTable * table , int32_t start , int32_t limit , int32_t unitIndex , uint32_t defaultValue ) {\n UCMapping * mappings , * m ;\n int32_t * map ;\n int32_t i , j , uniqueCount , count , subStart , subLimit ;\n uint8_t * bytes ;\n int32_t low , high , prev ;\n uint32_t * section ;\n mappings = table -> mappings ;\n map = table -> reverseMap ;\n m = mappings + map [ start ] ;\n bytes = UCM_GET_BYTES ( table , m ) ;\n low = bytes [ unitIndex ] ;\n uniqueCount = 1 ;\n prev = high = low ;\n for ( i = start + 1 ;\n i < limit ;\n ++ i ) {\n m = mappings + map [ i ] ;\n bytes = UCM_GET_BYTES ( table , m ) ;\n high = bytes [ unitIndex ] ;\n if ( high != prev ) {\n prev = high ;\n ++ uniqueCount ;\n }\n }\n count = ( high - low ) + 1 ;\n if ( count < 0x100 && ( unitIndex == 0 || uniqueCount >= ( 3 * count ) / 4 ) ) {\n }\n else {\n count = uniqueCount ;\n }\n if ( count >= 0x100 ) {\n fprintf ( stderr , \"error: toUnicode extension table section overflow: %ld section entries\\n\" , ( long ) count ) ;\n return FALSE ;\n }\n section = ( uint32_t * ) utm_allocN ( extData -> toUTable , 1 + count ) ;\n * section ++ = ( ( uint32_t ) count << UCNV_EXT_TO_U_BYTE_SHIFT ) | defaultValue ;\n prev = low - 1 ;\n j = 0 ;\n for ( i = start ;\n i < limit ;\n ++ i ) {\n m = mappings + map [ i ] ;\n bytes = UCM_GET_BYTES ( table , m ) ;\n high = bytes [ unitIndex ] ;\n if ( high != prev ) {\n if ( count > uniqueCount ) {\n while ( ++ prev < high ) {\n section [ j ++ ] = ( ( uint32_t ) prev << UCNV_EXT_TO_U_BYTE_SHIFT ) | ( uint32_t ) i ;\n }\n }\n else {\n prev = high ;\n }\n section [ j ++ ] = ( ( uint32_t ) high << UCNV_EXT_TO_U_BYTE_SHIFT ) | ( uint32_t ) i ;\n }\n }\n subLimit = UCNV_EXT_TO_U_GET_VALUE ( section [ 0 ] ) ;\n for ( j = 0 ;\n j < count ;\n ++ j ) {\n subStart = subLimit ;\n subLimit = ( j + 1 ) < count ? UCNV_EXT_TO_U_GET_VALUE ( section [ j + 1 ] ) : limit ;\n section [ j ] &= ~ UCNV_EXT_TO_U_VALUE_MASK ;\n if ( subStart == subLimit ) {\n continue ;\n }\n defaultValue = 0 ;\n m = mappings + map [ subStart ] ;\n if ( m -> bLen == unitIndex + 1 ) {\n ++ subStart ;\n if ( subStart < subLimit && mappings [ map [ subStart ] ] . bLen == unitIndex + 1 ) {\n fprintf ( stderr , \"error: multiple mappings from same bytes\\n\" ) ;\n ucm_printMapping ( table , m , stderr ) ;\n ucm_printMapping ( table , mappings + map [ subStart ] , stderr ) ;\n return FALSE ;\n }\n defaultValue = getToUnicodeValue ( extData , table , m ) ;\n }\n if ( subStart == subLimit ) {\n section [ j ] |= defaultValue ;\n }\n else {\n section [ j ] |= ( uint32_t ) utm_countItems ( extData -> toUTable ) ;\n if ( ! generateToUTable ( extData , table , subStart , subLimit , unitIndex + 1 , defaultValue ) ) {\n return FALSE ;\n }\n }\n }\n return TRUE ;\n }"}
{"idx": 9359, "target": 1, "func": "static int read_sbr_grid ( AACContext * ac , SpectralBandReplication * sbr , GetBitContext * gb , SBRData * ch_data ) {\n int i ;\n int bs_pointer = 0 ;\n int abs_bord_trail = 16 ;\n int num_rel_lead , num_rel_trail ;\n unsigned bs_num_env_old = ch_data -> bs_num_env ;\n ch_data -> bs_freq_res [ 0 ] = ch_data -> bs_freq_res [ ch_data -> bs_num_env ] ;\n ch_data -> bs_amp_res = sbr -> bs_amp_res_header ;\n ch_data -> t_env_num_env_old = ch_data -> t_env [ bs_num_env_old ] ;\n switch ( ch_data -> bs_frame_class = get_bits ( gb , 2 ) ) {\n case FIXFIX : ch_data -> bs_num_env = 1 << get_bits ( gb , 2 ) ;\n num_rel_lead = ch_data -> bs_num_env - 1 ;\n if ( ch_data -> bs_num_env == 1 ) ch_data -> bs_amp_res = 0 ;\n if ( ch_data -> bs_num_env > 4 ) {\n av_log ( ac -> avctx , AV_LOG_ERROR , \"Invalid bitstream, too many SBR envelopes in FIXFIX type SBR frame: %d\\n\" , ch_data -> bs_num_env ) ;\n return - 1 ;\n }\n ch_data -> t_env [ 0 ] = 0 ;\n ch_data -> t_env [ ch_data -> bs_num_env ] = abs_bord_trail ;\n abs_bord_trail = ( abs_bord_trail + ( ch_data -> bs_num_env >> 1 ) ) / ch_data -> bs_num_env ;\n for ( i = 0 ;\n i < num_rel_lead ;\n i ++ ) ch_data -> t_env [ i + 1 ] = ch_data -> t_env [ i ] + abs_bord_trail ;\n ch_data -> bs_freq_res [ 1 ] = get_bits1 ( gb ) ;\n for ( i = 1 ;\n i < ch_data -> bs_num_env ;\n i ++ ) ch_data -> bs_freq_res [ i + 1 ] = ch_data -> bs_freq_res [ 1 ] ;\n break ;\n case FIXVAR : abs_bord_trail += get_bits ( gb , 2 ) ;\n num_rel_trail = get_bits ( gb , 2 ) ;\n ch_data -> bs_num_env = num_rel_trail + 1 ;\n ch_data -> t_env [ 0 ] = 0 ;\n ch_data -> t_env [ ch_data -> bs_num_env ] = abs_bord_trail ;\n for ( i = 0 ;\n i < num_rel_trail ;\n i ++ ) ch_data -> t_env [ ch_data -> bs_num_env - 1 - i ] = ch_data -> t_env [ ch_data -> bs_num_env - i ] - 2 * get_bits ( gb , 2 ) - 2 ;\n bs_pointer = get_bits ( gb , ceil_log2 [ ch_data -> bs_num_env ] ) ;\n for ( i = 0 ;\n i < ch_data -> bs_num_env ;\n i ++ ) ch_data -> bs_freq_res [ ch_data -> bs_num_env - i ] = get_bits1 ( gb ) ;\n break ;\n case VARFIX : ch_data -> t_env [ 0 ] = get_bits ( gb , 2 ) ;\n num_rel_lead = get_bits ( gb , 2 ) ;\n ch_data -> bs_num_env = num_rel_lead + 1 ;\n ch_data -> t_env [ ch_data -> bs_num_env ] = abs_bord_trail ;\n for ( i = 0 ;\n i < num_rel_lead ;\n i ++ ) ch_data -> t_env [ i + 1 ] = ch_data -> t_env [ i ] + 2 * get_bits ( gb , 2 ) + 2 ;\n bs_pointer = get_bits ( gb , ceil_log2 [ ch_data -> bs_num_env ] ) ;\n get_bits1_vector ( gb , ch_data -> bs_freq_res + 1 , ch_data -> bs_num_env ) ;\n break ;\n case VARVAR : ch_data -> t_env [ 0 ] = get_bits ( gb , 2 ) ;\n abs_bord_trail += get_bits ( gb , 2 ) ;\n num_rel_lead = get_bits ( gb , 2 ) ;\n num_rel_trail = get_bits ( gb , 2 ) ;\n ch_data -> bs_num_env = num_rel_lead + num_rel_trail + 1 ;\n if ( ch_data -> bs_num_env > 5 ) {\n av_log ( ac -> avctx , AV_LOG_ERROR , \"Invalid bitstream, too many SBR envelopes in VARVAR type SBR frame: %d\\n\" , ch_data -> bs_num_env ) ;\n return - 1 ;\n }\n ch_data -> t_env [ ch_data -> bs_num_env ] = abs_bord_trail ;\n for ( i = 0 ;\n i < num_rel_lead ;\n i ++ ) ch_data -> t_env [ i + 1 ] = ch_data -> t_env [ i ] + 2 * get_bits ( gb , 2 ) + 2 ;\n for ( i = 0 ;\n i < num_rel_trail ;\n i ++ ) ch_data -> t_env [ ch_data -> bs_num_env - 1 - i ] = ch_data -> t_env [ ch_data -> bs_num_env - i ] - 2 * get_bits ( gb , 2 ) - 2 ;\n bs_pointer = get_bits ( gb , ceil_log2 [ ch_data -> bs_num_env ] ) ;\n get_bits1_vector ( gb , ch_data -> bs_freq_res + 1 , ch_data -> bs_num_env ) ;\n break ;\n }\n av_assert0 ( bs_pointer >= 0 ) ;\n if ( bs_pointer > ch_data -> bs_num_env + 1 ) {\n av_log ( ac -> avctx , AV_LOG_ERROR , \"Invalid bitstream, bs_pointer points to a middle noise border outside the time borders table: %d\\n\" , bs_pointer ) ;\n return - 1 ;\n }\n for ( i = 1 ;\n i <= ch_data -> bs_num_env ;\n i ++ ) {\n if ( ch_data -> t_env [ i - 1 ] > ch_data -> t_env [ i ] ) {\n av_log ( ac -> avctx , AV_LOG_ERROR , \"Non monotone time borders\\n\" ) ;\n return - 1 ;\n }\n }\n ch_data -> bs_num_noise = ( ch_data -> bs_num_env > 1 ) + 1 ;\n ch_data -> t_q [ 0 ] = ch_data -> t_env [ 0 ] ;\n ch_data -> t_q [ ch_data -> bs_num_noise ] = ch_data -> t_env [ ch_data -> bs_num_env ] ;\n if ( ch_data -> bs_num_noise > 1 ) {\n int idx ;\n if ( ch_data -> bs_frame_class == FIXFIX ) {\n idx = ch_data -> bs_num_env >> 1 ;\n }\n else if ( ch_data -> bs_frame_class & 1 ) {\n idx = ch_data -> bs_num_env - FFMAX ( bs_pointer - 1 , 1 ) ;\n }\n else {\n if ( ! bs_pointer ) idx = 1 ;\n else if ( bs_pointer == 1 ) idx = ch_data -> bs_num_env - 1 ;\n else idx = bs_pointer - 1 ;\n }\n ch_data -> t_q [ 1 ] = ch_data -> t_env [ idx ] ;\n }\n ch_data -> e_a [ 0 ] = - ( ch_data -> e_a [ 1 ] != bs_num_env_old ) ;\n ch_data -> e_a [ 1 ] = - 1 ;\n if ( ( ch_data -> bs_frame_class & 1 ) && bs_pointer ) {\n ch_data -> e_a [ 1 ] = ch_data -> bs_num_env + 1 - bs_pointer ;\n }\n else if ( ( ch_data -> bs_frame_class == 2 ) && ( bs_pointer > 1 ) ) ch_data -> e_a [ 1 ] = bs_pointer - 1 ;\n return 0 ;\n }"}
{"idx": 9360, "target": 0, "func": "static int sha1write_ewah_helper ( void * f , const void * buf , size_t len ) {\n sha1write ( f , buf , len ) ;\n return len ;\n }"}
{"idx": 9361, "target": 0, "func": "void kvm_arch_init_irq_routing ( KVMState * s ) {\n if ( ! kvm_check_extension ( s , KVM_CAP_IRQ_ROUTING ) ) {\n no_hpet = 1 ;\n }\n kvm_msi_via_irqfd_allowed = true ;\n kvm_gsi_routing_allowed = true ;\n if ( kvm_irqchip_is_split ( ) ) {\n int i ;\n for ( i = 0 ;\n i < IOAPIC_NUM_PINS ;\n i ++ ) {\n if ( kvm_irqchip_add_msi_route ( s , 0 , NULL ) < 0 ) {\n error_report ( \"Could not enable split IRQ mode.\" ) ;\n exit ( 1 ) ;\n }\n }\n }\n }"}
{"idx": 9362, "target": 0, "func": "void gcry_sexp_release ( gcry_sexp_t sexp ) {\n if ( sexp ) {\n if ( gcry_is_secure ( sexp ) ) {\n const byte * p = sexp -> d ;\n int type ;\n while ( ( type = * p ) != ST_STOP ) {\n p ++ ;\n switch ( type ) {\n case ST_OPEN : break ;\n case ST_CLOSE : break ;\n case ST_DATA : {\n DATALEN n ;\n memcpy ( & n , p , sizeof n ) ;\n p += sizeof n ;\n p += n ;\n }\n break ;\n default : break ;\n }\n }\n wipememory ( sexp -> d , p - sexp -> d ) ;\n }\n gcry_free ( sexp ) ;\n }\n }"}
{"idx": 9363, "target": 0, "func": "static int decode_vol_header ( MpegEncContext * s , GetBitContext * gb ) {\n int width , height , vo_ver_id ;\n skip_bits ( gb , 1 ) ;\n s -> vo_type = get_bits ( gb , 8 ) ;\n if ( get_bits1 ( gb ) != 0 ) {\n vo_ver_id = get_bits ( gb , 4 ) ;\n skip_bits ( gb , 3 ) ;\n }\n else {\n vo_ver_id = 1 ;\n }\n s -> aspect_ratio_info = get_bits ( gb , 4 ) ;\n if ( s -> aspect_ratio_info == FF_ASPECT_EXTENDED ) {\n s -> avctx -> sample_aspect_ratio . num = get_bits ( gb , 8 ) ;\n s -> avctx -> sample_aspect_ratio . den = get_bits ( gb , 8 ) ;\n }\n else {\n s -> avctx -> sample_aspect_ratio = ff_h263_pixel_aspect [ s -> aspect_ratio_info ] ;\n }\n if ( ( s -> vol_control_parameters = get_bits1 ( gb ) ) ) {\n int chroma_format = get_bits ( gb , 2 ) ;\n if ( chroma_format != CHROMA_420 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"illegal chroma format\\n\" ) ;\n }\n s -> low_delay = get_bits1 ( gb ) ;\n if ( get_bits1 ( gb ) ) {\n get_bits ( gb , 15 ) ;\n skip_bits1 ( gb ) ;\n get_bits ( gb , 15 ) ;\n skip_bits1 ( gb ) ;\n get_bits ( gb , 15 ) ;\n skip_bits1 ( gb ) ;\n get_bits ( gb , 3 ) ;\n get_bits ( gb , 11 ) ;\n skip_bits1 ( gb ) ;\n get_bits ( gb , 15 ) ;\n skip_bits1 ( gb ) ;\n }\n }\n else {\n if ( s -> picture_number == 0 ) s -> low_delay = 0 ;\n }\n s -> shape = get_bits ( gb , 2 ) ;\n if ( s -> shape != RECT_SHAPE ) av_log ( s -> avctx , AV_LOG_ERROR , \"only rectangular vol supported\\n\" ) ;\n if ( s -> shape == GRAY_SHAPE && vo_ver_id != 1 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Gray shape not supported\\n\" ) ;\n skip_bits ( gb , 4 ) ;\n }\n check_marker ( gb , \"before time_increment_resolution\" ) ;\n s -> avctx -> time_base . den = get_bits ( gb , 16 ) ;\n if ( ! s -> avctx -> time_base . den ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"time_base.den==0\\n\" ) ;\n s -> avctx -> time_base . num = 0 ;\n return - 1 ;\n }\n s -> time_increment_bits = av_log2 ( s -> avctx -> time_base . den - 1 ) + 1 ;\n if ( s -> time_increment_bits < 1 ) s -> time_increment_bits = 1 ;\n check_marker ( gb , \"before fixed_vop_rate\" ) ;\n if ( get_bits1 ( gb ) != 0 ) {\n s -> avctx -> time_base . num = get_bits ( gb , s -> time_increment_bits ) ;\n }\n else s -> avctx -> time_base . num = 1 ;\n s -> t_frame = 0 ;\n if ( s -> shape != BIN_ONLY_SHAPE ) {\n if ( s -> shape == RECT_SHAPE ) {\n skip_bits1 ( gb ) ;\n width = get_bits ( gb , 13 ) ;\n skip_bits1 ( gb ) ;\n height = get_bits ( gb , 13 ) ;\n skip_bits1 ( gb ) ;\n if ( width && height && ! ( s -> width && s -> codec_tag == AV_RL32 ( \"MP4S\" ) ) ) {\n if ( s -> width && s -> height && ( s -> width != width || s -> height != height ) ) s -> context_reinit = 1 ;\n s -> width = width ;\n s -> height = height ;\n }\n }\n s -> progressive_sequence = s -> progressive_frame = get_bits1 ( gb ) ^ 1 ;\n s -> interlaced_dct = 0 ;\n if ( ! get_bits1 ( gb ) && ( s -> avctx -> debug & FF_DEBUG_PICT_INFO ) ) av_log ( s -> avctx , AV_LOG_INFO , \"MPEG4 OBMC not supported (very likely buggy encoder)\\n\" ) ;\n if ( vo_ver_id == 1 ) {\n s -> vol_sprite_usage = get_bits1 ( gb ) ;\n }\n else {\n s -> vol_sprite_usage = get_bits ( gb , 2 ) ;\n }\n if ( s -> vol_sprite_usage == STATIC_SPRITE ) av_log ( s -> avctx , AV_LOG_ERROR , \"Static Sprites not supported\\n\" ) ;\n if ( s -> vol_sprite_usage == STATIC_SPRITE || s -> vol_sprite_usage == GMC_SPRITE ) {\n if ( s -> vol_sprite_usage == STATIC_SPRITE ) {\n s -> sprite_width = get_bits ( gb , 13 ) ;\n skip_bits1 ( gb ) ;\n s -> sprite_height = get_bits ( gb , 13 ) ;\n skip_bits1 ( gb ) ;\n s -> sprite_left = get_bits ( gb , 13 ) ;\n skip_bits1 ( gb ) ;\n s -> sprite_top = get_bits ( gb , 13 ) ;\n skip_bits1 ( gb ) ;\n }\n s -> num_sprite_warping_points = get_bits ( gb , 6 ) ;\n if ( s -> num_sprite_warping_points > 3 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"%d sprite_warping_points\\n\" , s -> num_sprite_warping_points ) ;\n s -> num_sprite_warping_points = 0 ;\n return - 1 ;\n }\n s -> sprite_warping_accuracy = get_bits ( gb , 2 ) ;\n s -> sprite_brightness_change = get_bits1 ( gb ) ;\n if ( s -> vol_sprite_usage == STATIC_SPRITE ) s -> low_latency_sprite = get_bits1 ( gb ) ;\n }\n if ( get_bits1 ( gb ) == 1 ) {\n s -> quant_precision = get_bits ( gb , 4 ) ;\n if ( get_bits ( gb , 4 ) != 8 ) av_log ( s -> avctx , AV_LOG_ERROR , \"N-bit not supported\\n\" ) ;\n if ( s -> quant_precision != 5 ) av_log ( s -> avctx , AV_LOG_ERROR , \"quant precision %d\\n\" , s -> quant_precision ) ;\n }\n else {\n s -> quant_precision = 5 ;\n }\n if ( ( s -> mpeg_quant = get_bits1 ( gb ) ) ) {\n int i , v ;\n for ( i = 0 ;\n i < 64 ;\n i ++ ) {\n int j = s -> dsp . idct_permutation [ i ] ;\n v = ff_mpeg4_default_intra_matrix [ i ] ;\n s -> intra_matrix [ j ] = v ;\n s -> chroma_intra_matrix [ j ] = v ;\n v = ff_mpeg4_default_non_intra_matrix [ i ] ;\n s -> inter_matrix [ j ] = v ;\n s -> chroma_inter_matrix [ j ] = v ;\n }\n if ( get_bits1 ( gb ) ) {\n int last = 0 ;\n for ( i = 0 ;\n i < 64 ;\n i ++ ) {\n int j ;\n v = get_bits ( gb , 8 ) ;\n if ( v == 0 ) break ;\n last = v ;\n j = s -> dsp . idct_permutation [ ff_zigzag_direct [ i ] ] ;\n s -> intra_matrix [ j ] = v ;\n s -> chroma_intra_matrix [ j ] = v ;\n }\n for ( ;\n i < 64 ;\n i ++ ) {\n int j = s -> dsp . idct_permutation [ ff_zigzag_direct [ i ] ] ;\n s -> intra_matrix [ j ] = last ;\n s -> chroma_intra_matrix [ j ] = last ;\n }\n }\n if ( get_bits1 ( gb ) ) {\n int last = 0 ;\n for ( i = 0 ;\n i < 64 ;\n i ++ ) {\n int j ;\n v = get_bits ( gb , 8 ) ;\n if ( v == 0 ) break ;\n last = v ;\n j = s -> dsp . idct_permutation [ ff_zigzag_direct [ i ] ] ;\n s -> inter_matrix [ j ] = v ;\n s -> chroma_inter_matrix [ j ] = v ;\n }\n for ( ;\n i < 64 ;\n i ++ ) {\n int j = s -> dsp . idct_permutation [ ff_zigzag_direct [ i ] ] ;\n s -> inter_matrix [ j ] = last ;\n s -> chroma_inter_matrix [ j ] = last ;\n }\n }\n }\n if ( vo_ver_id != 1 ) s -> quarter_sample = get_bits1 ( gb ) ;\n else s -> quarter_sample = 0 ;\n if ( ! get_bits1 ( gb ) ) {\n int pos = get_bits_count ( gb ) ;\n int estimation_method = get_bits ( gb , 2 ) ;\n if ( estimation_method < 2 ) {\n if ( ! get_bits1 ( gb ) ) {\n s -> cplx_estimation_trash_i += 8 * get_bits1 ( gb ) ;\n s -> cplx_estimation_trash_i += 8 * get_bits1 ( gb ) ;\n s -> cplx_estimation_trash_i += 8 * get_bits1 ( gb ) ;\n s -> cplx_estimation_trash_i += 8 * get_bits1 ( gb ) ;\n s -> cplx_estimation_trash_i += 8 * get_bits1 ( gb ) ;\n / o_update s -> cplx_estimation_trash_i += 8 * get_bits1 ( gb ) ;\n }\n if ( ! get_bits1 ( gb ) ) {\n s -> cplx_estimation_trash_i += 8 * get_bits1 ( gb ) ;\n s -> cplx_estimation_trash_p += 8 * get_bits1 ( gb ) ;\n s -> cplx_estimation_trash_p += 8 * get_bits1 ( gb ) ;\n s -> cplx_estimation_trash_i += 8 * get_bits1 ( gb ) ;\n / ot coded blocks }\n if ( ! check_marker ( gb , \"in complexity estimation part 1\" ) ) {\n skip_bits_long ( gb , pos - get_bits_count ( gb ) ) ;\n goto no_cplx_est ;\n }\n if ( ! get_bits1 ( gb ) ) {\n s -> cplx_estimation_trash_i += 8 * get_bits1 ( gb ) ;\n s -> cplx_estimation_trash_i += 8 * get_bits1 ( gb ) ;\n s -> cplx_estimation_trash_i += 8 * get_bits1 ( gb ) ;\n s -> cplx_estimation_trash_i += 4 * get_bits1 ( gb ) ;\n }\n if ( ! get_bits1 ( gb ) ) {\n s -> cplx_estimation_trash_p += 8 * get_bits1 ( gb ) ;\n s -> cplx_estimation_trash_p += 8 * get_bits1 ( gb ) ;\n / pm s -> cplx_estimation_trash_b += 8 * get_bits1 ( gb ) ;\n s -> cplx_estimation_trash_p += 8 * get_bits1 ( gb ) ;\n s -> cplx_estimation_trash_p += 8 * get_bits1 ( gb ) ;\n s -> cplx_estimation_trash_p += 8 * get_bits1 ( gb ) ;\n }\n if ( ! check_marker ( gb , \"in complexity estimation part 2\" ) ) {\n skip_bits_long ( gb , pos - get_bits_count ( gb ) ) ;\n goto no_cplx_est ;\n }\n if ( estimation_method == 1 ) {\n s -> cplx_estimation_trash_i += 8 * get_bits1 ( gb ) ;\n s -> cplx_estimation_trash_p += 8 * get_bits1 ( gb ) ;\n }\n }\n else av_log ( s -> avctx , AV_LOG_ERROR , \"Invalid Complexity estimation method %d\\n\" , estimation_method ) ;\n }\n else {\n no_cplx_est : s -> cplx_estimation_trash_i = s -> cplx_estimation_trash_p = s -> cplx_estimation_trash_b = 0 ;\n }\n s -> resync_marker = ! get_bits1 ( gb ) ;\n s -> data_partitioning = get_bits1 ( gb ) ;\n if ( s -> data_partitioning ) {\n s -> rvlc = get_bits1 ( gb ) ;\n }\n if ( vo_ver_id != 1 ) {\n s -> new_pred = get_bits1 ( gb ) ;\n if ( s -> new_pred ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"new pred not supported\\n\" ) ;\n skip_bits ( gb , 2 ) ;\n skip_bits1 ( gb ) ;\n }\n s -> reduced_res_vop = get_bits1 ( gb ) ;\n if ( s -> reduced_res_vop ) av_log ( s -> avctx , AV_LOG_ERROR , \"reduced resolution VOP not supported\\n\" ) ;\n }\n else {\n s -> new_pred = 0 ;\n s -> reduced_res_vop = 0 ;\n }\n s -> scalability = get_bits1 ( gb ) ;\n if ( s -> scalability ) {\n GetBitContext bak = * gb ;\n int h_sampling_factor_n ;\n int h_sampling_factor_m ;\n int v_sampling_factor_n ;\n int v_sampling_factor_m ;\n s -> hierachy_type = get_bits1 ( gb ) ;\n skip_bits ( gb , 4 ) ;\n skip_bits1 ( gb ) ;\n h_sampling_factor_n = get_bits ( gb , 5 ) ;\n h_sampling_factor_m = get_bits ( gb , 5 ) ;\n v_sampling_factor_n = get_bits ( gb , 5 ) ;\n v_sampling_factor_m = get_bits ( gb , 5 ) ;\n s -> enhancement_type = get_bits1 ( gb ) ;\n if ( h_sampling_factor_n == 0 || h_sampling_factor_m == 0 || v_sampling_factor_n == 0 || v_sampling_factor_m == 0 ) {\n s -> scalability = 0 ;\n * gb = bak ;\n }\n else av_log ( s -> avctx , AV_LOG_ERROR , \"scalability not supported\\n\" ) ;\n }\n }\n return 0 ;\n }"}
{"idx": 9364, "target": 0, "func": "static VALUE ossl_asn1_ ## klass ( int argc , VALUE * argv , VALUE self ) \\ {\n return rb_funcall3 ( cASN1 ## klass , rb_intern ( \"new\" ) , argc , argv ) ;\n }\n OSSL_ASN1_IMPL_FACTORY_METHOD ( Boolean ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Integer ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Enumerated ) OSSL_ASN1_IMPL_FACTORY_METHOD ( BitString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( OctetString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( UTF8String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( NumericString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( PrintableString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( T61String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( VideotexString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( IA5String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( GraphicString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( ISO64String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( GeneralString )"}
{"idx": 9365, "target": 0, "func": "static int dissect_h225_T_system_id ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_T_system_id , T_system_id_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 9366, "target": 0, "func": "static int SpoolssRRPCN_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n guint32 changeid ;\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , NULL , NULL , FALSE , FALSE ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_rrpcn_changelow , & changeid ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", changeid %d\" , changeid ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_rrpcn_changehigh , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_rrpcn_unk0 , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_rrpcn_unk1 , NULL ) ;\n offset = dissect_ndr_pointer ( tvb , offset , pinfo , tree , di , drep , dissect_NOTIFY_INFO , NDR_POINTER_UNIQUE , \"Notify Info\" , - 1 ) ;\n return offset ;\n }"}
{"idx": 9367, "target": 0, "func": "static void vc1_smooth_overlap_filter_iblk ( VC1Context * v ) {\n MpegEncContext * s = & v -> s ;\n int mb_pos ;\n if ( v -> condover == CONDOVER_NONE ) return ;\n mb_pos = s -> mb_x + s -> mb_y * s -> mb_stride ;\n if ( v -> condover == CONDOVER_ALL || v -> pq >= 9 || v -> over_flags_plane [ mb_pos ] ) {\n if ( s -> mb_x && ( v -> condover == CONDOVER_ALL || v -> pq >= 9 || v -> over_flags_plane [ mb_pos - 1 ] ) ) {\n v -> vc1dsp . vc1_h_s_overlap ( v -> block [ v -> left_blk_idx ] [ 1 ] , v -> block [ v -> cur_blk_idx ] [ 0 ] ) ;\n v -> vc1dsp . vc1_h_s_overlap ( v -> block [ v -> left_blk_idx ] [ 3 ] , v -> block [ v -> cur_blk_idx ] [ 2 ] ) ;\n if ( ! ( s -> flags & CODEC_FLAG_GRAY ) ) {\n v -> vc1dsp . vc1_h_s_overlap ( v -> block [ v -> left_blk_idx ] [ 4 ] , v -> block [ v -> cur_blk_idx ] [ 4 ] ) ;\n v -> vc1dsp . vc1_h_s_overlap ( v -> block [ v -> left_blk_idx ] [ 5 ] , v -> block [ v -> cur_blk_idx ] [ 5 ] ) ;\n }\n }\n v -> vc1dsp . vc1_h_s_overlap ( v -> block [ v -> cur_blk_idx ] [ 0 ] , v -> block [ v -> cur_blk_idx ] [ 1 ] ) ;\n v -> vc1dsp . vc1_h_s_overlap ( v -> block [ v -> cur_blk_idx ] [ 2 ] , v -> block [ v -> cur_blk_idx ] [ 3 ] ) ;\n if ( s -> mb_x == s -> mb_width - 1 ) {\n if ( ! s -> first_slice_line && ( v -> condover == CONDOVER_ALL || v -> pq >= 9 || v -> over_flags_plane [ mb_pos - s -> mb_stride ] ) ) {\n v -> vc1dsp . vc1_v_s_overlap ( v -> block [ v -> top_blk_idx ] [ 2 ] , v -> block [ v -> cur_blk_idx ] [ 0 ] ) ;\n v -> vc1dsp . vc1_v_s_overlap ( v -> block [ v -> top_blk_idx ] [ 3 ] , v -> block [ v -> cur_blk_idx ] [ 1 ] ) ;\n if ( ! ( s -> flags & CODEC_FLAG_GRAY ) ) {\n v -> vc1dsp . vc1_v_s_overlap ( v -> block [ v -> top_blk_idx ] [ 4 ] , v -> block [ v -> cur_blk_idx ] [ 4 ] ) ;\n v -> vc1dsp . vc1_v_s_overlap ( v -> block [ v -> top_blk_idx ] [ 5 ] , v -> block [ v -> cur_blk_idx ] [ 5 ] ) ;\n }\n }\n v -> vc1dsp . vc1_v_s_overlap ( v -> block [ v -> cur_blk_idx ] [ 0 ] , v -> block [ v -> cur_blk_idx ] [ 2 ] ) ;\n v -> vc1dsp . vc1_v_s_overlap ( v -> block [ v -> cur_blk_idx ] [ 1 ] , v -> block [ v -> cur_blk_idx ] [ 3 ] ) ;\n }\n }\n if ( s -> mb_x && ( v -> condover == CONDOVER_ALL || v -> over_flags_plane [ mb_pos - 1 ] ) ) {\n if ( ! s -> first_slice_line && ( v -> condover == CONDOVER_ALL || v -> pq >= 9 || v -> over_flags_plane [ mb_pos - s -> mb_stride - 1 ] ) ) {\n v -> vc1dsp . vc1_v_s_overlap ( v -> block [ v -> topleft_blk_idx ] [ 2 ] , v -> block [ v -> left_blk_idx ] [ 0 ] ) ;\n v -> vc1dsp . vc1_v_s_overlap ( v -> block [ v -> topleft_blk_idx ] [ 3 ] , v -> block [ v -> left_blk_idx ] [ 1 ] ) ;\n if ( ! ( s -> flags & CODEC_FLAG_GRAY ) ) {\n v -> vc1dsp . vc1_v_s_overlap ( v -> block [ v -> topleft_blk_idx ] [ 4 ] , v -> block [ v -> left_blk_idx ] [ 4 ] ) ;\n v -> vc1dsp . vc1_v_s_overlap ( v -> block [ v -> topleft_blk_idx ] [ 5 ] , v -> block [ v -> left_blk_idx ] [ 5 ] ) ;\n }\n }\n v -> vc1dsp . vc1_v_s_overlap ( v -> block [ v -> left_blk_idx ] [ 0 ] , v -> block [ v -> left_blk_idx ] [ 2 ] ) ;\n v -> vc1dsp . vc1_v_s_overlap ( v -> block [ v -> left_blk_idx ] [ 1 ] , v -> block [ v -> left_blk_idx ] [ 3 ] ) ;\n }\n }"}
{"idx": 9368, "target": 0, "func": "TEST_F ( ShortcutsProviderTest , SimpleSingleMatch ) {\n base : : string16 text ( ASCIIToUTF16 ( \"go\" ) ) ;\n std : : string expected_url ( \"http://www.google.com/\" ) ;\n ExpectedURLs expected_urls ;\n expected_urls . push_back ( ExpectedURLAndAllowedToBeDefault ( expected_url , true ) ) ;\n RunShortcutsProviderTest ( provider_ , text , false , expected_urls , expected_url , ASCIIToUTF16 ( \"ogle.com\" ) ) ;\n expected_urls . clear ( ) ;\n expected_urls . push_back ( ExpectedURLAndAllowedToBeDefault ( expected_url , false ) ) ;\n RunShortcutsProviderTest ( provider_ , text , true , expected_urls , expected_url , ASCIIToUTF16 ( \"ogle.com\" ) ) ;\n text = ASCIIToUTF16 ( \"abcdef.com\" ) ;\n expected_url = \"http://abcdef.com/\" ;\n expected_urls . clear ( ) ;\n expected_urls . push_back ( ExpectedURLAndAllowedToBeDefault ( expected_url , true ) ) ;\n RunShortcutsProviderTest ( provider_ , text , false , expected_urls , expected_url , base : : string16 ( ) ) ;\n RunShortcutsProviderTest ( provider_ , text , true , expected_urls , expected_url , base : : string16 ( ) ) ;\n text = ASCIIToUTF16 ( \"que\" ) ;\n expected_url = \"https://www.google.com/search?q=query\" ;\n expected_urls . clear ( ) ;\n expected_urls . push_back ( ExpectedURLAndAllowedToBeDefault ( expected_url , true ) ) ;\n RunShortcutsProviderTest ( provider_ , text , false , expected_urls , expected_url , ASCIIToUTF16 ( \"ry\" ) ) ;\n expected_urls . clear ( ) ;\n expected_urls . push_back ( ExpectedURLAndAllowedToBeDefault ( expected_url , false ) ) ;\n RunShortcutsProviderTest ( provider_ , text , true , expected_urls , expected_url , ASCIIToUTF16 ( \"ry\" ) ) ;\n text = ASCIIToUTF16 ( \"query\" ) ;\n expected_urls . clear ( ) ;\n expected_urls . push_back ( ExpectedURLAndAllowedToBeDefault ( expected_url , true ) ) ;\n RunShortcutsProviderTest ( provider_ , text , false , expected_urls , expected_url , base : : string16 ( ) ) ;\n RunShortcutsProviderTest ( provider_ , text , true , expected_urls , expected_url , base : : string16 ( ) ) ;\n text = ASCIIToUTF16 ( \"word\" ) ;\n expected_url = \"https://www.google.com/search?q=www.word\" ;\n expected_urls . clear ( ) ;\n expected_urls . push_back ( ExpectedURLAndAllowedToBeDefault ( expected_url , false ) ) ;\n RunShortcutsProviderTest ( provider_ , text , false , expected_urls , expected_url , base : : string16 ( ) ) ;\n }"}
{"idx": 9369, "target": 0, "func": "static void Type_CrdInfo_Free ( struct _cms_typehandler_struct * self , void * Ptr ) {\n cmsMLUfree ( ( cmsMLU * ) Ptr ) ;\n return ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 9370, "target": 0, "func": "static void eval_ir ( const float * Az , int pitch_lag , float * freq , float pitch_sharp_factor ) {\n float tmp1 [ SUBFR_SIZE + 1 ] , tmp2 [ LP_FILTER_ORDER + 1 ] ;\n int i ;\n tmp1 [ 0 ] = 1. ;\n for ( i = 0 ;\n i < LP_FILTER_ORDER ;\n i ++ ) {\n tmp1 [ i + 1 ] = Az [ i ] * ff_pow_0_55 [ i ] ;\n tmp2 [ i ] = Az [ i ] * ff_pow_0_7 [ i ] ;\n }\n memset ( tmp1 + 11 , 0 , 37 * sizeof ( float ) ) ;\n ff_celp_lp_synthesis_filterf ( freq , tmp2 , tmp1 , SUBFR_SIZE , LP_FILTER_ORDER ) ;\n pitch_sharpening ( pitch_lag , pitch_sharp_factor , freq ) ;\n }"}
{"idx": 9371, "target": 0, "func": "static int dissect_h245_CommunicationModeResponse ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_CommunicationModeResponse , CommunicationModeResponse_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 9372, "target": 0, "func": "static void Pass2Encode ( VP9_COMP * cpi , size_t * size , uint8_t * dest , unsigned int * frame_flags ) {\n cpi -> allow_encode_breakout = ENCODE_BREAKOUT_ENABLED ;\n encode_frame_to_data_rate ( cpi , size , dest , frame_flags ) ;\n vp9_twopass_postencode_update ( cpi ) ;\n }"}
{"idx": 9373, "target": 0, "func": "static int snmp_seq_show ( struct seq_file * seq , void * v ) {\n int i ;\n struct net * net = seq -> private ;\n seq_puts ( seq , \"Ip: Forwarding DefaultTTL\" ) ;\n for ( i = 0 ;\n snmp4_ipstats_list [ i ] . name != NULL ;\n i ++ ) seq_printf ( seq , \" %s\" , snmp4_ipstats_list [ i ] . name ) ;\n seq_printf ( seq , \"\\nIp: %d %d\" , IPV4_DEVCONF_ALL ( net , FORWARDING ) ? 1 : 2 , sysctl_ip_default_ttl ) ;\n BUILD_BUG_ON ( offsetof ( struct ipstats_mib , mibs ) != 0 ) ;\n for ( i = 0 ;\n snmp4_ipstats_list [ i ] . name != NULL ;\n i ++ ) seq_printf ( seq , \" %llu\" , snmp_fold_field64 ( ( void __percpu * * ) net -> mib . ip_statistics , snmp4_ipstats_list [ i ] . entry , offsetof ( struct ipstats_mib , syncp ) ) ) ;\n icmp_put ( seq ) ;\n icmpmsg_put ( seq ) ;\n seq_puts ( seq , \"\\nTcp:\" ) ;\n for ( i = 0 ;\n snmp4_tcp_list [ i ] . name != NULL ;\n i ++ ) seq_printf ( seq , \" %s\" , snmp4_tcp_list [ i ] . name ) ;\n seq_puts ( seq , \"\\nTcp:\" ) ;\n for ( i = 0 ;\n snmp4_tcp_list [ i ] . name != NULL ;\n i ++ ) {\n if ( snmp4_tcp_list [ i ] . entry == TCP_MIB_MAXCONN ) seq_printf ( seq , \" %ld\" , snmp_fold_field ( ( void __percpu * * ) net -> mib . tcp_statistics , snmp4_tcp_list [ i ] . entry ) ) ;\n else seq_printf ( seq , \" %lu\" , snmp_fold_field ( ( void __percpu * * ) net -> mib . tcp_statistics , snmp4_tcp_list [ i ] . entry ) ) ;\n }\n seq_puts ( seq , \"\\nUdp:\" ) ;\n for ( i = 0 ;\n snmp4_udp_list [ i ] . name != NULL ;\n i ++ ) seq_printf ( seq , \" %s\" , snmp4_udp_list [ i ] . name ) ;\n seq_puts ( seq , \"\\nUdp:\" ) ;\n for ( i = 0 ;\n snmp4_udp_list [ i ] . name != NULL ;\n i ++ ) seq_printf ( seq , \" %lu\" , snmp_fold_field ( ( void __percpu * * ) net -> mib . udp_statistics , snmp4_udp_list [ i ] . entry ) ) ;\n seq_puts ( seq , \"\\nUdpLite:\" ) ;\n for ( i = 0 ;\n snmp4_udp_list [ i ] . name != NULL ;\n i ++ ) seq_printf ( seq , \" %s\" , snmp4_udp_list [ i ] . name ) ;\n seq_puts ( seq , \"\\nUdpLite:\" ) ;\n for ( i = 0 ;\n snmp4_udp_list [ i ] . name != NULL ;\n i ++ ) seq_printf ( seq , \" %lu\" , snmp_fold_field ( ( void __percpu * * ) net -> mib . udplite_statistics , snmp4_udp_list [ i ] . entry ) ) ;\n seq_putc ( seq , '\\n' ) ;\n return 0 ;\n }"}
{"idx": 9374, "target": 0, "func": "static void activate_files ( ActivateParameters * parameters ) {\n NautilusFile * file ;\n NautilusWindow * window ;\n NautilusWindowOpenFlags flags ;\n g_autoptr ( GList ) open_in_app_parameters = NULL ;\n g_autoptr ( GList ) unhandled_open_in_app_uris = NULL ;\n ApplicationLaunchParameters * one_parameters ;\n int count ;\n g_autofree char * old_working_dir = NULL ;\n GdkScreen * screen ;\n gint num_apps ;\n gint num_unhandled ;\n gint num_files ;\n gboolean open_files ;\n gboolean closed_window ;\n g_autoptr ( GQueue ) launch_desktop_files = NULL ;\n g_autoptr ( GQueue ) launch_files = NULL ;\n g_autoptr ( GQueue ) launch_in_terminal_files = NULL ;\n g_autoptr ( GQueue ) open_in_app_uris = NULL ;\n g_autoptr ( GQueue ) open_in_view_files = NULL ;\n GList * l ;\n ActivationAction action ;\n LaunchLocation * location ;\n launch_desktop_files = g_queue_new ( ) ;\n launch_files = g_queue_new ( ) ;\n launch_in_terminal_files = g_queue_new ( ) ;\n open_in_view_files = g_queue_new ( ) ;\n open_in_app_uris = g_queue_new ( ) ;\n for ( l = parameters -> locations ;\n l != NULL ;\n l = l -> next ) {\n location = l -> data ;\n file = location -> file ;\n if ( file_was_cancelled ( file ) ) {\n continue ;\n }\n action = get_activation_action ( file ) ;\n if ( action == ACTIVATION_ACTION_ASK ) {\n pause_activation_timed_cancel ( parameters ) ;\n action = get_executable_text_file_action ( parameters -> parent_window , file ) ;\n unpause_activation_timed_cancel ( parameters ) ;\n }\n switch ( action ) {\n case ACTIVATION_ACTION_LAUNCH_DESKTOP_FILE : {\n g_queue_push_tail ( launch_desktop_files , file ) ;\n }\n break ;\n case ACTIVATION_ACTION_LAUNCH : {\n g_queue_push_tail ( launch_files , file ) ;\n }\n break ;\n case ACTIVATION_ACTION_LAUNCH_IN_TERMINAL : {\n g_queue_push_tail ( launch_in_terminal_files , file ) ;\n }\n break ;\n case ACTIVATION_ACTION_OPEN_IN_VIEW : {\n g_queue_push_tail ( open_in_view_files , file ) ;\n }\n break ;\n case ACTIVATION_ACTION_OPEN_IN_APPLICATION : {\n g_queue_push_tail ( open_in_app_uris , location -> uri ) ;\n }\n break ;\n case ACTIVATION_ACTION_DO_NOTHING : {\n }\n break ;\n case ACTIVATION_ACTION_EXTRACT : {\n g_assert_not_reached ( ) ;\n }\n break ;\n case ACTIVATION_ACTION_ASK : {\n g_assert_not_reached ( ) ;\n }\n break ;\n }\n }\n for ( l = g_queue_peek_head_link ( launch_desktop_files ) ;\n l != NULL ;\n l = l -> next ) {\n file = NAUTILUS_FILE ( l -> data ) ;\n activate_desktop_file ( parameters , file ) ;\n }\n if ( parameters -> activation_directory && ( ! g_queue_is_empty ( launch_files ) || ! g_queue_is_empty ( launch_in_terminal_files ) ) ) {\n old_working_dir = g_get_current_dir ( ) ;\n g_chdir ( parameters -> activation_directory ) ;\n }\n screen = gtk_widget_get_screen ( GTK_WIDGET ( parameters -> parent_window ) ) ;\n for ( l = g_queue_peek_head_link ( launch_files ) ;\n l != NULL ;\n l = l -> next ) {\n g_autofree char * uri = NULL ;\n g_autofree char * executable_path = NULL ;\n g_autofree char * quoted_path = NULL ;\n file = NAUTILUS_FILE ( l -> data ) ;\n uri = nautilus_file_get_activation_uri ( file ) ;\n executable_path = g_filename_from_uri ( uri , NULL , NULL ) ;\n quoted_path = g_shell_quote ( executable_path ) ;\n DEBUG ( \"Launching file path %s\" , quoted_path ) ;\n nautilus_launch_application_from_command ( screen , quoted_path , FALSE , NULL ) ;\n }\n for ( l = g_queue_peek_head_link ( launch_in_terminal_files ) ;\n l != NULL ;\n l = l -> next ) {\n g_autofree char * uri = NULL ;\n g_autofree char * executable_path = NULL ;\n g_autofree char * quoted_path = NULL ;\n file = NAUTILUS_FILE ( l -> data ) ;\n uri = nautilus_file_get_activation_uri ( file ) ;\n executable_path = g_filename_from_uri ( uri , NULL , NULL ) ;\n quoted_path = g_shell_quote ( executable_path ) ;\n DEBUG ( \"Launching in terminal file quoted path %s\" , quoted_path ) ;\n nautilus_launch_application_from_command ( screen , quoted_path , TRUE , NULL ) ;\n }\n if ( old_working_dir != NULL ) {\n g_chdir ( old_working_dir ) ;\n }\n count = g_queue_get_length ( open_in_view_files ) ;\n flags = parameters -> flags ;\n if ( count > 1 ) {\n if ( ( parameters -> flags & NAUTILUS_WINDOW_OPEN_FLAG_NEW_WINDOW ) == 0 ) {\n if ( ( parameters -> flags & NAUTILUS_WINDOW_OPEN_FLAG_CLOSE_BEHIND ) != 0 ) {\n flags |= NAUTILUS_WINDOW_OPEN_FLAG_NEW_WINDOW ;\n }\n else {\n flags |= NAUTILUS_WINDOW_OPEN_FLAG_NEW_TAB ;\n }\n }\n else {\n flags |= NAUTILUS_WINDOW_OPEN_FLAG_NEW_WINDOW ;\n }\n }\n else {\n if ( ( parameters -> flags & NAUTILUS_WINDOW_OPEN_FLAG_CLOSE_BEHIND ) != 0 ) {\n flags |= NAUTILUS_WINDOW_OPEN_FLAG_NEW_WINDOW ;\n }\n }\n if ( parameters -> slot != NULL && ( ! parameters -> user_confirmation || confirm_multiple_windows ( parameters -> parent_window , count , ( flags & NAUTILUS_WINDOW_OPEN_FLAG_NEW_TAB ) != 0 ) ) ) {\n if ( ( flags & NAUTILUS_WINDOW_OPEN_FLAG_NEW_TAB ) != 0 && g_settings_get_enum ( nautilus_preferences , NAUTILUS_PREFERENCES_NEW_TAB_POSITION ) == NAUTILUS_NEW_TAB_POSITION_AFTER_CURRENT_TAB ) {\n g_queue_reverse ( open_in_view_files ) ;\n }\n closed_window = FALSE ;\n for ( l = g_queue_peek_head_link ( open_in_view_files ) ;\n l != NULL ;\n l = l -> next ) {\n g_autofree char * uri = NULL ;\n g_autoptr ( GFile ) location = NULL ;\n g_autoptr ( GFile ) location_with_permissions = NULL ;\n file = NAUTILUS_FILE ( l -> data ) ;\n uri = nautilus_file_get_activation_uri ( file ) ;\n location = g_file_new_for_uri ( uri ) ;\n if ( g_file_is_native ( location ) && ( nautilus_file_is_in_admin ( file ) || ! nautilus_file_can_read ( file ) || ! nautilus_file_can_execute ( file ) ) ) {\n g_autofree gchar * file_path = NULL ;\n g_free ( uri ) ;\n file_path = g_file_get_path ( location ) ;\n uri = g_strconcat ( \"admin://\" , file_path , NULL ) ;\n }\n location_with_permissions = g_file_new_for_uri ( uri ) ;\n nautilus_application_open_location_full ( NAUTILUS_APPLICATION ( g_application_get_default ( ) ) , location_with_permissions , flags , NULL , NULL , parameters -> slot ) ;\n if ( ! closed_window && ( flags & NAUTILUS_WINDOW_OPEN_FLAG_CLOSE_BEHIND ) != 0 ) {\n flags &= ( ~ NAUTILUS_WINDOW_OPEN_FLAG_CLOSE_BEHIND ) ;\n if ( ( parameters -> flags & NAUTILUS_WINDOW_OPEN_FLAG_NEW_WINDOW ) == 0 ) {\n flags &= ( ~ NAUTILUS_WINDOW_OPEN_FLAG_NEW_WINDOW ) ;\n flags |= NAUTILUS_WINDOW_OPEN_FLAG_NEW_TAB ;\n }\n closed_window = TRUE ;\n }\n }\n }\n if ( open_in_app_uris != NULL ) {\n open_in_app_parameters = make_activation_parameters ( g_queue_peek_head_link ( open_in_app_uris ) , & unhandled_open_in_app_uris ) ;\n }\n num_apps = g_list_length ( open_in_app_parameters ) ;\n num_unhandled = g_list_length ( unhandled_open_in_app_uris ) ;\n num_files = g_queue_get_length ( open_in_app_uris ) ;\n open_files = TRUE ;\n if ( g_queue_is_empty ( open_in_app_uris ) && ( ! parameters -> user_confirmation || num_files + num_unhandled > SILENT_OPEN_LIMIT ) && num_apps > 1 ) {\n GtkDialog * dialog ;\n char * prompt ;\n g_autofree char * detail = NULL ;\n int response ;\n pause_activation_timed_cancel ( parameters ) ;\n prompt = _ ( \"Are you sure you want to open all files?\" ) ;\n detail = g_strdup_printf ( ngettext ( \"This will open %d separate application.\" , \"This will open %d separate applications.\" , num_apps ) , num_apps ) ;\n dialog = eel_show_yes_no_dialog ( prompt , detail , _ ( \"_OK\" ) , _ ( \"_Cancel\" ) , parameters -> parent_window ) ;\n response = gtk_dialog_run ( dialog ) ;\n gtk_widget_destroy ( GTK_WIDGET ( dialog ) ) ;\n unpause_activation_timed_cancel ( parameters ) ;\n if ( response != GTK_RESPONSE_YES ) {\n open_files = FALSE ;\n }\n }\n if ( open_files ) {\n for ( l = open_in_app_parameters ;\n l != NULL ;\n l = l -> next ) {\n one_parameters = l -> data ;\n nautilus_launch_application_by_uri ( one_parameters -> application , one_parameters -> uris , parameters -> parent_window ) ;\n application_launch_parameters_free ( one_parameters ) ;\n }\n for ( l = unhandled_open_in_app_uris ;\n l != NULL ;\n l = l -> next ) {\n char * uri = l -> data ;\n application_unhandled_uri ( parameters , uri ) ;\n }\n }\n window = NULL ;\n if ( parameters -> slot != NULL ) {\n window = nautilus_window_slot_get_window ( parameters -> slot ) ;\n }\n if ( open_in_app_parameters != NULL || unhandled_open_in_app_uris != NULL ) {\n if ( ( parameters -> flags & NAUTILUS_WINDOW_OPEN_FLAG_CLOSE_BEHIND ) != 0 && window != NULL ) {\n nautilus_window_close ( window ) ;\n }\n }\n activation_parameters_free ( parameters ) ;\n }"}
{"idx": 9375, "target": 0, "func": "static guint16 de_mm_timer ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint8 oct ;\n guint16 val ;\n const gchar * str ;\n proto_tree * subtree ;\n proto_item * item = NULL ;\n oct = tvb_get_guint8 ( tvb , offset ) ;\n val = oct & 0x1f ;\n switch ( oct >> 5 ) {\n case 0 : str = \"sec\" ;\n val *= 2 ;\n break ;\n case 1 : str = \"min\" ;\n break ;\n case 2 : str = \"min\" ;\n val *= 6 ;\n break ;\n case 7 : str = \"\" ;\n item = proto_tree_add_uint_format_value ( tree , hf_gsm_a_dtap_mm_timer , tvb , offset , 1 , oct , \"timer is deactivated\" ) ;\n break ;\n default : str = \"min\" ;\n break ;\n }\n if ( item == NULL ) {\n item = proto_tree_add_uint_format_value ( tree , hf_gsm_a_dtap_mm_timer , tvb , offset , 1 , val , \"%u %s\" , val , str ) ;\n }\n subtree = proto_item_add_subtree ( item , ett_mm_timer ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_mm_timer_unit , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_mm_timer_value , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n return ( 1 ) ;\n }"}
{"idx": 9376, "target": 0, "func": "static inline void sub_left_prediction_bgr32 ( HYuvContext * s , uint8_t * dst , const uint8_t * src , int w , int * red , int * green , int * blue , int * alpha ) {\n int i ;\n int r , g , b , a ;\n r = * red ;\n g = * green ;\n b = * blue ;\n a = * alpha ;\n for ( i = 0 ;\n i < FFMIN ( w , 4 ) ;\n i ++ ) {\n const int rt = src [ i * 4 + R ] ;\n const int gt = src [ i * 4 + G ] ;\n const int bt = src [ i * 4 + B ] ;\n const int at = src [ i * 4 + A ] ;\n dst [ i * 4 + R ] = rt - r ;\n dst [ i * 4 + G ] = gt - g ;\n dst [ i * 4 + B ] = bt - b ;\n dst [ i * 4 + A ] = at - a ;\n r = rt ;\n g = gt ;\n b = bt ;\n a = at ;\n }\n s -> dsp . diff_bytes ( dst + 16 , src + 16 , src + 12 , w * 4 - 16 ) ;\n * red = src [ ( w - 1 ) * 4 + R ] ;\n * green = src [ ( w - 1 ) * 4 + G ] ;\n * blue = src [ ( w - 1 ) * 4 + B ] ;\n * alpha = src [ ( w - 1 ) * 4 + A ] ;\n }"}
{"idx": 9377, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( MimeHandlerViewTest , DataUrl ) {\n const char * kDataUrlCsv = \"data:text/csv;\nbase64,Y29udGVudCB0byByZWFkCg==\" ;\n RunTestWithUrl ( GURL ( kDataUrlCsv ) ) ;\n }"}
{"idx": 9378, "target": 0, "func": "static void xhci_oper_write ( void * ptr , hwaddr reg , uint64_t val , unsigned size ) {\n XHCIState * xhci = ptr ;\n DeviceState * d = DEVICE ( ptr ) ;\n trace_usb_xhci_oper_write ( reg , val ) ;\n switch ( reg ) {\n case 0x00 : if ( ( val & USBCMD_RS ) && ! ( xhci -> usbcmd & USBCMD_RS ) ) {\n xhci_run ( xhci ) ;\n }\n else if ( ! ( val & USBCMD_RS ) && ( xhci -> usbcmd & USBCMD_RS ) ) {\n xhci_stop ( xhci ) ;\n }\n if ( val & USBCMD_CSS ) {\n xhci -> usbsts &= ~ USBSTS_SRE ;\n }\n if ( val & USBCMD_CRS ) {\n xhci -> usbsts |= USBSTS_SRE ;\n }\n xhci -> usbcmd = val & 0xc0f ;\n xhci_mfwrap_update ( xhci ) ;\n if ( val & USBCMD_HCRST ) {\n xhci_reset ( d ) ;\n }\n xhci_intx_update ( xhci ) ;\n break ;\n case 0x04 : xhci -> usbsts &= ~ ( val & ( USBSTS_HSE | USBSTS_EINT | USBSTS_PCD | USBSTS_SRE ) ) ;\n xhci_intx_update ( xhci ) ;\n break ;\n case 0x14 : xhci -> dnctrl = val & 0xffff ;\n break ;\n case 0x18 : xhci -> crcr_low = ( val & 0xffffffcf ) | ( xhci -> crcr_low & CRCR_CRR ) ;\n break ;\n case 0x1c : xhci -> crcr_high = val ;\n if ( xhci -> crcr_low & ( CRCR_CA | CRCR_CS ) && ( xhci -> crcr_low & CRCR_CRR ) ) {\n XHCIEvent event = {\n ER_COMMAND_COMPLETE , CC_COMMAND_RING_STOPPED }\n ;\n xhci -> crcr_low &= ~ CRCR_CRR ;\n xhci_event ( xhci , & event , 0 ) ;\n DPRINTF ( \"xhci: command ring stopped (CRCR=%08x)\\n\" , xhci -> crcr_low ) ;\n }\n else {\n dma_addr_t base = xhci_addr64 ( xhci -> crcr_low & ~ 0x3f , val ) ;\n xhci_ring_init ( xhci , & xhci -> cmd_ring , base ) ;\n }\n xhci -> crcr_low &= ~ ( CRCR_CA | CRCR_CS ) ;\n break ;\n case 0x30 : xhci -> dcbaap_low = val & 0xffffffc0 ;\n break ;\n case 0x34 : xhci -> dcbaap_high = val ;\n break ;\n case 0x38 : xhci -> config = val & 0xff ;\n break ;\n default : trace_usb_xhci_unimplemented ( \"oper write\" , reg ) ;\n }\n }"}
{"idx": 9379, "target": 0, "func": "static unsigned int get_sby_perpixel_diff_variance ( VP9_COMP * cpi , const struct buf_2d * ref , int mi_row , int mi_col , BLOCK_SIZE bs ) {\n const YV12_BUFFER_CONFIG * last = get_ref_frame_buffer ( cpi , LAST_FRAME ) ;\n const uint8_t * last_y = & last -> y_buffer [ mi_row * MI_SIZE * last -> y_stride + mi_col * MI_SIZE ] ;\n unsigned int sse ;\n const unsigned int var = cpi -> fn_ptr [ bs ] . vf ( ref -> buf , ref -> stride , last_y , last -> y_stride , & sse ) ;\n return ROUND_POWER_OF_TWO ( var , num_pels_log2_lookup [ bs ] ) ;\n }"}
{"idx": 9380, "target": 0, "func": "static void directory_load_one ( NautilusDirectory * directory , GFileInfo * info ) {\n if ( info == NULL ) {\n return ;\n }\n if ( g_file_info_get_name ( info ) == NULL ) {\n char * uri ;\n uri = nautilus_directory_get_uri ( directory ) ;\n g_warning ( \"Got GFileInfo with NULL name in %s, ignoring. This shouldn't happen unless the gvfs backend is broken.\\n\" , uri ) ;\n g_free ( uri ) ;\n return ;\n }\n g_object_ref ( info ) ;\n directory -> details -> pending_file_info = g_list_prepend ( directory -> details -> pending_file_info , info ) ;\n nautilus_directory_schedule_dequeue_pending ( directory ) ;\n }"}
{"idx": 9381, "target": 1, "func": "static void process_blob ( struct rev_info * revs , struct blob * blob , show_object_fn show , struct name_path * path , const char * name , void * cb_data ) {\n struct object * obj = & blob -> object ;\n if ( ! revs -> blob_objects ) return ;\n if ( ! obj ) die ( \"bad blob object\" ) ;\n if ( obj -> flags & ( UNINTERESTING | SEEN ) ) return ;\n obj -> flags |= SEEN ;\n show ( obj , path , name , cb_data ) ;\n }"}
{"idx": 9382, "target": 0, "func": "static int32_t getPairIndex ( UChar32 ch ) {\n int32_t pairedCharCount = UPRV_LENGTHOF ( pairedChars ) ;\n int32_t pairedCharPower = 1 << highBit ( pairedCharCount ) ;\n int32_t pairedCharExtra = pairedCharCount - pairedCharPower ;\n int32_t probe = pairedCharPower ;\n int32_t pairIndex = 0 ;\n if ( ch >= pairedChars [ pairedCharExtra ] ) {\n pairIndex = pairedCharExtra ;\n }\n while ( probe > ( 1 << 0 ) ) {\n probe >>= 1 ;\n if ( ch >= pairedChars [ pairIndex + probe ] ) {\n pairIndex += probe ;\n }\n }\n if ( pairedChars [ pairIndex ] != ch ) {\n pairIndex = - 1 ;\n }\n return pairIndex ;\n }"}
{"idx": 9383, "target": 0, "func": "static void flush ( AVCodecContext * avctx ) {\n Mpeg1Context * s = avctx -> priv_data ;\n s -> sync = 0 ;\n s -> closed_gop = 0 ;\n ff_mpeg_flush ( avctx ) ;\n }"}
{"idx": 9384, "target": 0, "func": "void vp9_idct32x32_add ( const tran_low_t * input , uint8_t * dest , int stride , int eob ) {\n if ( eob == 1 ) vp9_idct32x32_1_add ( input , dest , stride ) ;\n else if ( eob <= 34 ) vp9_idct32x32_34_add ( input , dest , stride ) ;\n else vp9_idct32x32_1024_add ( input , dest , stride ) ;\n }"}
{"idx": 9385, "target": 1, "func": "static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 9386, "target": 0, "func": "static inline void writer_print_integer ( WriterContext * wctx , const char * key , long long int val ) {\n const struct section * section = wctx -> section [ wctx -> level ] ;\n if ( section -> show_all_entries || av_dict_get ( section -> entries_to_show , key , NULL , 0 ) ) {\n wctx -> writer -> print_integer ( wctx , key , val ) ;\n wctx -> nb_item [ wctx -> level ] ++ ;\n }\n }"}
{"idx": 9387, "target": 0, "func": "static void unpack_roq_qcell ( uint8_t cb2 [ ] , roq_qcell * qcell , uint8_t u [ 4 * 4 * 3 ] ) {\n int i , cp ;\n static const int offsets [ 4 ] = {\n 0 , 2 , 8 , 10 }\n ;\n for ( cp = 0 ;\n cp < 3 ;\n cp ++ ) for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n u [ 4 * 4 * cp + offsets [ i ] ] = cb2 [ qcell -> idx [ i ] * 2 * 2 * 3 + 4 * cp ] ;\n u [ 4 * 4 * cp + offsets [ i ] + 1 ] = cb2 [ qcell -> idx [ i ] * 2 * 2 * 3 + 4 * cp + 1 ] ;\n u [ 4 * 4 * cp + offsets [ i ] + 4 ] = cb2 [ qcell -> idx [ i ] * 2 * 2 * 3 + 4 * cp + 2 ] ;\n u [ 4 * 4 * cp + offsets [ i ] + 5 ] = cb2 [ qcell -> idx [ i ] * 2 * 2 * 3 + 4 * cp + 3 ] ;\n }\n }"}
{"idx": 9388, "target": 1, "func": "static int zsethalftone5 ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n uint count ;\n gs_halftone_component * phtc = 0 ;\n gs_halftone_component * pc ;\n int code = 0 ;\n int j ;\n bool have_default ;\n gs_halftone * pht = 0 ;\n gx_device_halftone * pdht = 0 ;\n ref sprocs [ GS_CLIENT_COLOR_MAX_COMPONENTS + 1 ] ;\n ref tprocs [ GS_CLIENT_COLOR_MAX_COMPONENTS + 1 ] ;\n gs_memory_t * mem ;\n uint edepth = ref_stack_count ( & e_stack ) ;\n int npop = 2 ;\n int dict_enum = dict_first ( op ) ;\n ref rvalue [ 2 ] ;\n int cname , colorant_number ;\n byte * pname ;\n uint name_size ;\n int halftonetype , type = 0 ;\n gs_gstate * pgs = igs ;\n int space_index = r_space_index ( op - 1 ) ;\n mem = ( gs_memory_t * ) idmemory -> spaces_indexed [ space_index ] ;\n check_type ( * op , t_dictionary ) ;\n check_dict_read ( * op ) ;\n check_type ( op [ - 1 ] , t_dictionary ) ;\n check_dict_read ( op [ - 1 ] ) ;\n code = dict_int_param ( op - 1 , \"HalftoneType\" , 1 , 100 , 0 , & type ) ;\n if ( code < 0 ) return code ;\n halftonetype = ( type == 2 || type == 4 ) ? ht_type_multiple_colorscreen : ht_type_multiple ;\n have_default = false ;\n for ( count = 0 ;\n ;\n ) {\n if ( ( dict_enum = dict_next ( op , dict_enum , rvalue ) ) == - 1 ) break ;\n if ( ! r_has_type ( & rvalue [ 0 ] , t_name ) ) continue ;\n if ( ! r_has_type ( & rvalue [ 1 ] , t_dictionary ) ) continue ;\n cname = name_index ( mem , & rvalue [ 0 ] ) ;\n code = gs_get_colorname_string ( mem , cname , & pname , & name_size ) ;\n if ( code < 0 ) break ;\n colorant_number = gs_cname_to_colorant_number ( pgs , pname , name_size , halftonetype ) ;\n if ( colorant_number < 0 ) continue ;\n else if ( colorant_number == GX_DEVICE_COLOR_MAX_COMPONENTS ) {\n if ( have_default ) return_error ( gs_error_rangecheck ) ;\n have_default = true ;\n }\n count ++ ;\n if ( count > GS_CLIENT_COLOR_MAX_COMPONENTS + 1 ) {\n code = gs_note_error ( gs_error_rangecheck ) ;\n break ;\n }\n }\n if ( count == 0 || ( halftonetype == ht_type_multiple && ! have_default ) ) code = gs_note_error ( gs_error_rangecheck ) ;\n if ( code >= 0 ) {\n check_estack ( 5 ) ;\n refset_null ( sprocs , count ) ;\n refset_null ( tprocs , count ) ;\n rc_alloc_struct_0 ( pht , gs_halftone , & st_halftone , imemory , pht = 0 , \".sethalftone5\" ) ;\n phtc = gs_alloc_struct_array ( mem , count , gs_halftone_component , & st_ht_component_element , \".sethalftone5\" ) ;\n rc_alloc_struct_0 ( pdht , gx_device_halftone , & st_device_halftone , imemory , pdht = 0 , \".sethalftone5\" ) ;\n if ( pht == 0 || phtc == 0 || pdht == 0 ) {\n j = 0 ;\n code = gs_note_error ( gs_error_VMerror ) ;\n }\n }\n if ( code >= 0 ) {\n dict_enum = dict_first ( op ) ;\n for ( j = 0 , pc = phtc ;\n ;\n ) {\n int type ;\n if ( ( dict_enum = dict_next ( op , dict_enum , rvalue ) ) == - 1 ) break ;\n if ( ! r_has_type ( & rvalue [ 0 ] , t_name ) ) continue ;\n if ( ! r_has_type ( & rvalue [ 1 ] , t_dictionary ) ) continue ;\n cname = name_index ( mem , & rvalue [ 0 ] ) ;\n code = gs_get_colorname_string ( mem , cname , & pname , & name_size ) ;\n if ( code < 0 ) break ;\n colorant_number = gs_cname_to_colorant_number ( pgs , pname , name_size , halftonetype ) ;\n if ( colorant_number < 0 ) continue ;\n pc -> cname = cname ;\n pc -> comp_number = colorant_number ;\n check_dict_read ( rvalue [ 1 ] ) ;\n if ( dict_int_param ( & rvalue [ 1 ] , \"HalftoneType\" , 1 , 7 , 0 , & type ) < 0 ) {\n code = gs_note_error ( gs_error_typecheck ) ;\n break ;\n }\n switch ( type ) {\n default : code = gs_note_error ( gs_error_rangecheck ) ;\n break ;\n case 1 : code = dict_spot_params ( & rvalue [ 1 ] , & pc -> params . spot , sprocs + j , tprocs + j , mem ) ;\n pc -> params . spot . screen . spot_function = spot1_dummy ;\n pc -> type = ht_type_spot ;\n break ;\n case 3 : code = dict_threshold_params ( & rvalue [ 1 ] , & pc -> params . threshold , tprocs + j ) ;\n pc -> type = ht_type_threshold ;\n break ;\n case 7 : code = dict_threshold2_params ( & rvalue [ 1 ] , & pc -> params . threshold2 , tprocs + j , imemory ) ;\n pc -> type = ht_type_threshold2 ;\n break ;\n }\n if ( code < 0 ) break ;\n pc ++ ;\n j ++ ;\n }\n }\n if ( code >= 0 ) {\n pht -> type = halftonetype ;\n pht -> params . multiple . components = phtc ;\n pht -> params . multiple . num_comp = j ;\n pht -> params . multiple . get_colorname_string = gs_get_colorname_string ;\n code = gs_sethalftone_prepare ( igs , pht , pdht ) ;\n }\n if ( code >= 0 ) {\n dict_enum = dict_first ( op ) ;\n for ( pc = phtc ;\n ;\n ) {\n if ( ( dict_enum = dict_next ( op , dict_enum , rvalue ) ) == - 1 ) break ;\n if ( ! r_has_type ( & rvalue [ 0 ] , t_name ) ) continue ;\n if ( ! r_has_type ( & rvalue [ 1 ] , t_dictionary ) ) continue ;\n cname = name_index ( mem , & rvalue [ 0 ] ) ;\n code = gs_get_colorname_string ( mem , cname , & pname , & name_size ) ;\n if ( code < 0 ) break ;\n colorant_number = gs_cname_to_colorant_number ( pgs , pname , name_size , halftonetype ) ;\n if ( colorant_number < 0 ) continue ;\n if ( pc -> type == ht_type_spot ) {\n code = dict_spot_results ( i_ctx_p , & rvalue [ 1 ] , & pc -> params . spot ) ;\n if ( code < 0 ) break ;\n }\n pc ++ ;\n }\n }\n if ( code >= 0 ) {\n uint odepth = ref_stack_count ( & o_stack ) ;\n ref odict , odict5 ;\n odict = op [ - 1 ] ;\n odict5 = * op ;\n pop ( 2 ) ;\n op = osp ;\n esp += 5 ;\n make_mark_estack ( esp - 4 , es_other , sethalftone_cleanup ) ;\n esp [ - 3 ] = odict ;\n make_istruct ( esp - 2 , 0 , pht ) ;\n make_istruct ( esp - 1 , 0 , pdht ) ;\n make_op_estack ( esp , sethalftone_finish ) ;\n for ( j = 0 ;\n j < count ;\n j ++ ) {\n gx_ht_order * porder = NULL ;\n if ( pdht -> components == 0 ) porder = & pdht -> order ;\n else {\n int k ;\n int comp_number = phtc [ j ] . comp_number ;\n for ( k = 0 ;\n k < count ;\n k ++ ) {\n if ( pdht -> components [ k ] . comp_number == comp_number ) {\n porder = & pdht -> components [ k ] . corder ;\n break ;\n }\n }\n }\n switch ( phtc [ j ] . type ) {\n case ht_type_spot : code = zscreen_enum_init ( i_ctx_p , porder , & phtc [ j ] . params . spot . screen , & sprocs [ j ] , 0 , 0 , space_index ) ;\n if ( code < 0 ) break ;\n case ht_type_threshold : if ( ! r_has_type ( tprocs + j , t__invalid ) ) {\n check_ostack ( zcolor_remap_one_ostack ) ;\n check_estack ( zcolor_remap_one_estack ) ;\n code = zcolor_remap_one ( i_ctx_p , tprocs + j , porder -> transfer , igs , zcolor_remap_one_finish ) ;\n op = osp ;\n }\n break ;\n default : ;\n }\n if ( code < 0 ) {\n ref_stack_pop_to ( & o_stack , odepth ) ;\n ref_stack_pop_to ( & e_stack , edepth ) ;\n op = osp ;\n op [ - 1 ] = odict ;\n * op = odict5 ;\n break ;\n }\n npop = 0 ;\n }\n }\n if ( code < 0 ) {\n gs_free_object ( mem , pdht , \".sethalftone5\" ) ;\n gs_free_object ( mem , phtc , \".sethalftone5\" ) ;\n gs_free_object ( mem , pht , \".sethalftone5\" ) ;\n return code ;\n }\n pop ( npop ) ;\n return ( ref_stack_count ( & e_stack ) > edepth ? o_push_estack : 0 ) ;\n }"}
{"idx": 9389, "target": 0, "func": "static int udvm_state_access ( tvbuff_t * tvb , proto_tree * tree , guint8 * buff , guint16 p_id_start , guint16 p_id_length , guint16 state_begin , guint16 * state_length , guint16 * state_address , guint16 * state_instruction , gint hf_id ) {\n int result_code = 0 ;\n guint32 n ;\n guint16 k ;\n guint16 buf_size_real ;\n guint16 byte_copy_right ;\n guint16 byte_copy_left ;\n char partial_state [ STATE_BUFFER_SIZE ] ;\n guint8 * state_buff ;\n gchar * partial_state_str ;\n if ( ( p_id_length < STATE_MIN_ACCESS_LEN ) || ( p_id_length > STATE_BUFFER_SIZE ) ) {\n result_code = 1 ;\n return result_code ;\n }\n n = 0 ;\n while ( n < p_id_length && n < STATE_BUFFER_SIZE && p_id_start + n < UDVM_MEMORY_SIZE ) {\n partial_state [ n ] = buff [ p_id_start + n ] ;\n n ++ ;\n }\n partial_state_str = bytes_to_str ( wmem_packet_scope ( ) , partial_state , p_id_length ) ;\n proto_tree_add_item ( tree , hf_sigcomp_accessing_state , tvb , 0 , - 1 , ENC_NA ) ;\n proto_tree_add_string ( tree , hf_id , tvb , 0 , 0 , partial_state_str ) ;\n state_buff = ( guint8 * ) g_hash_table_lookup ( state_buffer_table , partial_state_str ) ;\n if ( state_buff == NULL ) {\n result_code = 2 ;\n return result_code ;\n }\n buf_size_real = ( state_buff [ 0 ] << 8 ) | state_buff [ 1 ] ;\n if ( * state_length == 0 ) {\n * state_length = buf_size_real ;\n }\n if ( * state_address == 0 ) {\n * state_address = state_buff [ 2 ] << 8 ;\n * state_address = * state_address | state_buff [ 3 ] ;\n }\n if ( * state_instruction == 0 ) {\n * state_instruction = state_buff [ 4 ] << 8 ;\n * state_instruction = * state_instruction | state_buff [ 5 ] ;\n }\n if ( ( state_begin + * state_length ) > buf_size_real ) {\n return 3 ;\n }\n if ( * state_length == 0 && state_begin != 0 ) {\n return 17 ;\n }\n n = state_begin + 8 ;\n k = * state_address ;\n byte_copy_right = buff [ 66 ] << 8 ;\n byte_copy_right = byte_copy_right | buff [ 67 ] ;\n byte_copy_left = buff [ 64 ] << 8 ;\n byte_copy_left = byte_copy_left | buff [ 65 ] ;\n while ( ( gint32 ) n < ( state_begin + * state_length + 8 ) && n < UDVM_MEMORY_SIZE ) {\n buff [ k ] = state_buff [ n ] ;\n k = ( k + 1 ) & 0xffff ;\n if ( k == byte_copy_right ) {\n k = byte_copy_left ;\n }\n n ++ ;\n }\n return 0 ;\n }"}
{"idx": 9390, "target": 0, "func": "REGRESSION_TEST ( SDK_API_TSIOBufferBlockNext ) ( RegressionTest * test , int , int * pstatus ) {\n bool test_passed = false ;\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n int i = 10000 ;\n TSIOBuffer bufp = TSIOBufferCreate ( ) ;\n TSIOBufferWrite ( bufp , ( char * ) & i , sizeof ( int ) ) ;\n TSIOBufferReader readerp = TSIOBufferReaderAlloc ( bufp ) ;\n TSIOBufferBlock blockp = TSIOBufferReaderStart ( readerp ) ;\n if ( TSIOBufferBlockNext ( blockp ) == nullptr ) {\n SDK_RPRINT ( test , \"TSIOBufferBlockNext\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSIOBufferBlockNext\" , \"TestCase1\" , TC_FAIL , \"fail\" ) ;\n }\n if ( test_passed ) {\n * pstatus = REGRESSION_TEST_PASSED ;\n }\n else {\n * pstatus = REGRESSION_TEST_FAILED ;\n }\n return ;\n }"}
{"idx": 9391, "target": 0, "func": "static void MPV_encode_defaults ( MpegEncContext * s ) {\n int i ;\n ff_MPV_common_defaults ( s ) ;\n for ( i = - 16 ;\n i < 16 ;\n i ++ ) {\n default_fcode_tab [ i + MAX_MV ] = 1 ;\n }\n s -> me . mv_penalty = default_mv_penalty ;\n s -> fcode_tab = default_fcode_tab ;\n }"}
{"idx": 9392, "target": 0, "func": "static void _appendLDMLExtensionAsKeywords ( const char * ldmlext , ExtensionListEntry * * appendTo , char * buf , int32_t bufSize , UBool * posixVariant , UErrorCode * status ) {\n const char * pTag ;\n const char * pKwds ;\n UBool variantExists = * posixVariant ;\n ExtensionListEntry * kwdFirst = NULL ;\n ExtensionListEntry * kwd , * nextKwd ;\n AttributeListEntry * attrFirst = NULL ;\n AttributeListEntry * attr , * nextAttr ;\n int32_t len ;\n int32_t bufIdx = 0 ;\n char attrBuf [ ULOC_KEYWORD_AND_VALUES_CAPACITY ] ;\n int32_t attrBufIdx = 0 ;\n * posixVariant = FALSE ;\n pTag = ldmlext ;\n pKwds = NULL ;\n while ( * pTag ) {\n for ( len = 0 ;\n * ( pTag + len ) && * ( pTag + len ) != SEP ;\n len ++ ) ;\n if ( ultag_isUnicodeLocaleKey ( pTag , len ) ) {\n pKwds = pTag ;\n break ;\n }\n attr = ( AttributeListEntry * ) uprv_malloc ( sizeof ( AttributeListEntry ) ) ;\n if ( attr == NULL ) {\n * status = U_MEMORY_ALLOCATION_ERROR ;\n goto cleanup ;\n }\n if ( len < ( int32_t ) sizeof ( attrBuf ) - attrBufIdx ) {\n uprv_memcpy ( & attrBuf [ attrBufIdx ] , pTag , len ) ;\n attrBuf [ attrBufIdx + len ] = 0 ;\n attr -> attribute = & attrBuf [ attrBufIdx ] ;\n attrBufIdx += ( len + 1 ) ;\n }\n else {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n goto cleanup ;\n }\n if ( ! _addAttributeToList ( & attrFirst , attr ) ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n uprv_free ( attr ) ;\n goto cleanup ;\n }\n pTag += len ;\n if ( * pTag ) {\n pTag ++ ;\n }\n }\n if ( attrFirst ) {\n if ( attrBufIdx > bufSize ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n goto cleanup ;\n }\n kwd = ( ExtensionListEntry * ) uprv_malloc ( sizeof ( ExtensionListEntry ) ) ;\n if ( kwd == NULL ) {\n * status = U_MEMORY_ALLOCATION_ERROR ;\n goto cleanup ;\n }\n kwd -> key = LOCALE_ATTRIBUTE_KEY ;\n kwd -> value = buf ;\n attr = attrFirst ;\n while ( attr != NULL ) {\n nextAttr = attr -> next ;\n if ( attr != attrFirst ) {\n * ( buf + bufIdx ) = SEP ;\n bufIdx ++ ;\n }\n len = uprv_strlen ( attr -> attribute ) ;\n uprv_memcpy ( buf + bufIdx , attr -> attribute , len ) ;\n bufIdx += len ;\n attr = nextAttr ;\n }\n * ( buf + bufIdx ) = 0 ;\n bufIdx ++ ;\n if ( ! _addExtensionToList ( & kwdFirst , kwd , FALSE ) ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n uprv_free ( kwd ) ;\n goto cleanup ;\n }\n attr = attrFirst ;\n while ( attr != NULL ) {\n nextAttr = attr -> next ;\n uprv_free ( attr ) ;\n attr = nextAttr ;\n }\n attrFirst = NULL ;\n }\n if ( pKwds ) {\n const char * pBcpKey = NULL ;\n const char * pBcpType = NULL ;\n int32_t bcpKeyLen = 0 ;\n int32_t bcpTypeLen = 0 ;\n UBool isDone = FALSE ;\n pTag = pKwds ;\n while ( ! isDone ) {\n const char * pNextBcpKey = NULL ;\n int32_t nextBcpKeyLen = 0 ;\n UBool emitKeyword = FALSE ;\n if ( * pTag ) {\n for ( len = 0 ;\n * ( pTag + len ) && * ( pTag + len ) != SEP ;\n len ++ ) ;\n if ( ultag_isUnicodeLocaleKey ( pTag , len ) ) {\n if ( pBcpKey ) {\n emitKeyword = TRUE ;\n pNextBcpKey = pTag ;\n nextBcpKeyLen = len ;\n }\n else {\n pBcpKey = pTag ;\n bcpKeyLen = len ;\n }\n }\n else {\n U_ASSERT ( pBcpKey != NULL ) ;\n if ( pBcpType ) {\n bcpTypeLen += ( len + 1 ) ;\n }\n else {\n pBcpType = pTag ;\n bcpTypeLen = len ;\n }\n }\n pTag += len ;\n if ( * pTag ) {\n pTag ++ ;\n }\n }\n else {\n emitKeyword = TRUE ;\n isDone = TRUE ;\n }\n if ( emitKeyword ) {\n const char * pKey = NULL ;\n const char * pType = NULL ;\n char bcpKeyBuf [ 9 ] ;\n U_ASSERT ( pBcpKey != NULL ) ;\n if ( bcpKeyLen >= ( int32_t ) sizeof ( bcpKeyBuf ) ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n goto cleanup ;\n }\n uprv_strncpy ( bcpKeyBuf , pBcpKey , bcpKeyLen ) ;\n bcpKeyBuf [ bcpKeyLen ] = 0 ;\n pKey = uloc_toLegacyKey ( bcpKeyBuf ) ;\n if ( pKey == NULL ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n goto cleanup ;\n }\n if ( pKey == bcpKeyBuf ) {\n T_CString_toLowerCase ( bcpKeyBuf ) ;\n if ( bufSize - bufIdx - 1 >= bcpKeyLen ) {\n uprv_memcpy ( buf + bufIdx , bcpKeyBuf , bcpKeyLen ) ;\n pKey = buf + bufIdx ;\n bufIdx += bcpKeyLen ;\n * ( buf + bufIdx ) = 0 ;\n bufIdx ++ ;\n }\n else {\n * status = U_BUFFER_OVERFLOW_ERROR ;\n goto cleanup ;\n }\n }\n if ( pBcpType ) {\n char bcpTypeBuf [ 128 ] ;\n if ( bcpTypeLen >= ( int32_t ) sizeof ( bcpTypeBuf ) ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n goto cleanup ;\n }\n uprv_strncpy ( bcpTypeBuf , pBcpType , bcpTypeLen ) ;\n bcpTypeBuf [ bcpTypeLen ] = 0 ;\n pType = uloc_toLegacyType ( pKey , bcpTypeBuf ) ;\n if ( pType == NULL ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n goto cleanup ;\n }\n if ( pType == bcpTypeBuf ) {\n T_CString_toLowerCase ( bcpTypeBuf ) ;\n if ( bufSize - bufIdx - 1 >= bcpTypeLen ) {\n uprv_memcpy ( buf + bufIdx , bcpTypeBuf , bcpTypeLen ) ;\n pType = buf + bufIdx ;\n bufIdx += bcpTypeLen ;\n * ( buf + bufIdx ) = 0 ;\n bufIdx ++ ;\n }\n else {\n * status = U_BUFFER_OVERFLOW_ERROR ;\n goto cleanup ;\n }\n }\n }\n else {\n pType = LOCALE_TYPE_YES ;\n }\n if ( ! variantExists && ! uprv_strcmp ( pKey , POSIX_KEY ) && ! uprv_strcmp ( pType , POSIX_VALUE ) ) {\n * posixVariant = TRUE ;\n }\n else {\n kwd = ( ExtensionListEntry * ) uprv_malloc ( sizeof ( ExtensionListEntry ) ) ;\n if ( kwd == NULL ) {\n * status = U_MEMORY_ALLOCATION_ERROR ;\n goto cleanup ;\n }\n kwd -> key = pKey ;\n kwd -> value = pType ;\n if ( ! _addExtensionToList ( & kwdFirst , kwd , FALSE ) ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n uprv_free ( kwd ) ;\n goto cleanup ;\n }\n }\n pBcpKey = pNextBcpKey ;\n bcpKeyLen = pNextBcpKey != NULL ? nextBcpKeyLen : 0 ;\n pBcpType = NULL ;\n bcpTypeLen = 0 ;\n }\n }\n }\n kwd = kwdFirst ;\n while ( kwd != NULL ) {\n nextKwd = kwd -> next ;\n _addExtensionToList ( appendTo , kwd , FALSE ) ;\n kwd = nextKwd ;\n }\n return ;\n cleanup : attr = attrFirst ;\n while ( attr != NULL ) {\n nextAttr = attr -> next ;\n uprv_free ( attr ) ;\n attr = nextAttr ;\n }\n kwd = kwdFirst ;\n while ( kwd != NULL ) {\n nextKwd = kwd -> next ;\n uprv_free ( kwd ) ;\n kwd = nextKwd ;\n }\n }"}
{"idx": 9393, "target": 0, "func": "static void auth_server_connection_reconnect ( struct auth_server_connection * conn , const char * disconnect_reason ) {\n time_t next_connect ;\n auth_server_connection_disconnect ( conn , disconnect_reason ) ;\n next_connect = conn -> last_connect + AUTH_SERVER_RECONNECT_TIMEOUT_SECS ;\n conn -> to = timeout_add ( ioloop_time >= next_connect ? 0 : ( next_connect - ioloop_time ) * 1000 , auth_server_reconnect_timeout , conn ) ;\n }"}
{"idx": 9394, "target": 0, "func": "static void opt_input_file ( void * optctx , const char * arg ) {\n if ( input_filename ) {\n av_log ( NULL , AV_LOG_ERROR , \"Argument '%s' provided as input filename, but '%s' was already specified.\\n\" , arg , input_filename ) ;\n exit_program ( 1 ) ;\n }\n if ( ! strcmp ( arg , \"-\" ) ) arg = \"pipe:\" ;\n input_filename = arg ;\n }"}
{"idx": 9395, "target": 0, "func": "static int kvm_deassign_irq_internal ( KVMState * s , uint32_t dev_id , uint32_t type ) {\n struct kvm_assigned_irq assigned_irq = {\n . assigned_dev_id = dev_id , . flags = type , }\n ;\n return kvm_vm_ioctl ( s , KVM_DEASSIGN_DEV_IRQ , & assigned_irq ) ;\n }"}
{"idx": 9396, "target": 0, "func": "static void * Type_Text_Dup ( struct _cms_typehandler_struct * self , const void * Ptr , cmsUInt32Number n ) {\n return ( void * ) cmsMLUdup ( ( cmsMLU * ) Ptr ) ;\n cmsUNUSED_PARAMETER ( n ) ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 9397, "target": 0, "func": "static int dissect_NOTIFY_INFO_DATA_job ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , proto_item * item , dcerpc_info * di , guint8 * drep , guint16 field ) {\n guint32 value1 ;\n proto_item * hidden_item ;\n switch ( field ) {\n case JOB_NOTIFY_PRINTER_NAME : case JOB_NOTIFY_MACHINE_NAME : case JOB_NOTIFY_PORT_NAME : case JOB_NOTIFY_USER_NAME : case JOB_NOTIFY_NOTIFY_NAME : case JOB_NOTIFY_DATATYPE : case JOB_NOTIFY_PRINT_PROCESSOR : case JOB_NOTIFY_PARAMETERS : case JOB_NOTIFY_DRIVER_NAME : case JOB_NOTIFY_STATUS_STRING : case JOB_NOTIFY_DOCUMENT : offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_notify_info_data_bufsize , & value1 ) ;\n offset = dissect_ndr_pointer_cb ( tvb , offset , pinfo , tree , di , drep , dissect_notify_info_data_buffer , NDR_POINTER_UNIQUE , \"String\" , hf_notify_info_data_buffer , cb_notify_str_postprocess , GINT_TO_POINTER ( job_notify_hf_index ( field ) ) ) ;\n break ;\n case JOB_NOTIFY_STATUS : offset = dissect_job_status ( tvb , offset , pinfo , tree , di , drep ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , NULL , di , drep , hf_notify_info_data_value2 , NULL ) ;\n break ;\n case JOB_NOTIFY_SUBMITTED : offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_notify_info_data_buffer_len , NULL ) ;\n offset = dissect_ndr_pointer_cb ( tvb , offset , pinfo , tree , di , drep , dissect_SYSTEM_TIME_ptr , NDR_POINTER_UNIQUE , \"Time submitted\" , - 1 , notify_job_time_cb , NULL ) ;\n break ;\n case JOB_NOTIFY_PRIORITY : case JOB_NOTIFY_POSITION : case JOB_NOTIFY_TOTAL_PAGES : case JOB_NOTIFY_PAGES_PRINTED : case JOB_NOTIFY_TOTAL_BYTES : case JOB_NOTIFY_BYTES_PRINTED : {\n guint32 value ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_notify_info_data_value1 , & value ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_notify_info_data_value2 , NULL ) ;\n proto_item_append_text ( item , \": %d\" , value ) ;\n hidden_item = proto_tree_add_uint ( tree , job_notify_hf_index ( field ) , tvb , offset , 4 , value ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n break ;\n }\n case JOB_NOTIFY_DEVMODE : offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_notify_info_data_bufsize , & value1 ) ;\n offset = dissect_ndr_pointer ( tvb , offset , pinfo , tree , di , drep , dissect_notify_info_data_buffer , NDR_POINTER_UNIQUE , \"Buffer\" , hf_notify_info_data_buffer ) ;\n break ;\n default : offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_notify_info_data_value1 , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_notify_info_data_value2 , NULL ) ;\n }\n return offset ;\n }"}
{"idx": 9398, "target": 0, "func": "int myisam_panic ( handlerton * hton , ha_panic_function flag ) {\n return mi_panic ( flag ) ;\n }"}
{"idx": 9399, "target": 0, "func": "int xmlIsCombining ( unsigned int ch ) {\n return ( xmlIsCombiningQ ( ch ) ) ;\n }"}
{"idx": 9400, "target": 0, "func": "int cont_handler ( TSCont , TSEvent , void * ) {\n SDK_RPRINT ( SDK_ContCreate_test , \"TSContCreate\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( SDK_ContCreate_test , \"TSContCall\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n * SDK_ContCreate_pstatus = REGRESSION_TEST_PASSED ;\n return 0 ;\n }"}
{"idx": 9401, "target": 0, "func": "static void U_CALLCONV _UTF16Open ( UConverter * cnv , UConverterLoadArgs * pArgs , UErrorCode * pErrorCode ) {\n if ( UCNV_GET_VERSION ( cnv ) <= 2 ) {\n if ( UCNV_GET_VERSION ( cnv ) == 2 && ! pArgs -> onlyTestIsLoadable ) {\n cnv -> sharedData = ( UConverterSharedData * ) & _UTF16v2Data ;\n uprv_memcpy ( cnv -> subChars , _UTF16v2Data . staticData -> subChar , UCNV_MAX_SUBCHAR_LEN ) ;\n }\n _UTF16Reset ( cnv , UCNV_RESET_BOTH ) ;\n }\n else {\n * pErrorCode = U_ILLEGAL_ARGUMENT_ERROR ;\n }\n }"}
{"idx": 9402, "target": 0, "func": "static __inline__ int TCM_SET ( void * msg , __u16 cmd , __u16 flags , void * data , __u16 data_len ) {\n struct tipc_cfg_msg_hdr * tcm_hdr ;\n int msg_len ;\n msg_len = TCM_LENGTH ( data_len ) ;\n tcm_hdr = ( struct tipc_cfg_msg_hdr * ) msg ;\n tcm_hdr -> tcm_len = htonl ( msg_len ) ;\n tcm_hdr -> tcm_type = htons ( cmd ) ;\n tcm_hdr -> tcm_flags = htons ( flags ) ;\n if ( data_len && data ) {\n memcpy ( TCM_DATA ( msg ) , data , data_len ) ;\n memset ( TCM_DATA ( msg ) + data_len , 0 , TCM_SPACE ( data_len ) - msg_len ) ;\n }\n return TCM_SPACE ( data_len ) ;\n }"}
{"idx": 9403, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( AppApiTest , SameBrowsingInstanceAfterSwap ) {\n extensions : : ProcessMap * process_map = extensions : : ProcessMap : : Get ( browser ( ) -> profile ( ) ) ;\n GURL base_url = GetTestBaseURL ( \"app_process\" ) ;\n const Extension * app = LoadExtension ( test_data_dir_ . AppendASCII ( \"app_process\" ) ) ;\n ASSERT_TRUE ( app ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , base_url . Resolve ( \"path1/iframe.html\" ) ) ;\n content : : SiteInstance * app_instance = browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 0 ) -> GetSiteInstance ( ) ;\n EXPECT_TRUE ( process_map -> Contains ( app_instance -> GetProcess ( ) -> GetID ( ) ) ) ;\n const BrowserList * active_browser_list = BrowserList : : GetInstance ( ) ;\n EXPECT_EQ ( 2U , active_browser_list -> size ( ) ) ;\n content : : WebContents * popup_contents = active_browser_list -> get ( 1 ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) ;\n content : : WaitForLoadStop ( popup_contents ) ;\n SiteInstance * popup_instance = popup_contents -> GetSiteInstance ( ) ;\n EXPECT_EQ ( app_instance , popup_instance ) ;\n GURL non_app_url ( base_url . Resolve ( \"path3/empty.html\" ) ) ;\n ui_test_utils : : NavigateToURL ( active_browser_list -> get ( 1 ) , non_app_url ) ;\n SiteInstance * new_instance = popup_contents -> GetSiteInstance ( ) ;\n EXPECT_NE ( app_instance , new_instance ) ;\n EXPECT_TRUE ( app_instance -> IsRelatedSiteInstance ( new_instance ) ) ;\n }"}
{"idx": 9404, "target": 1, "func": "int i2d_ ## name ( type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;\n int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING )"}
{"idx": 9405, "target": 0, "func": "static int twin_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n TwinContext * tctx = avctx -> priv_data ;\n GetBitContext gb ;\n const ModeTab * mtab = tctx -> mtab ;\n float * * out = NULL ;\n enum FrameType ftype ;\n int window_type , ret ;\n static const enum FrameType wtype_to_ftype_table [ ] = {\n FT_LONG , FT_LONG , FT_SHORT , FT_LONG , FT_MEDIUM , FT_LONG , FT_LONG , FT_MEDIUM , FT_MEDIUM }\n ;\n if ( buf_size * 8 < avctx -> bit_rate * mtab -> size / avctx -> sample_rate + 8 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Frame too small (%d bytes). Truncated file?\\n\" , buf_size ) ;\n return AVERROR ( EINVAL ) ;\n }\n if ( tctx -> discarded_packets >= 2 ) {\n frame -> nb_samples = mtab -> size ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n out = ( float * * ) frame -> extended_data ;\n }\n init_get_bits ( & gb , buf , buf_size * 8 ) ;\n skip_bits ( & gb , get_bits ( & gb , 8 ) ) ;\n window_type = get_bits ( & gb , WINDOW_TYPE_BITS ) ;\n if ( window_type > 8 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid window type, broken sample?\\n\" ) ;\n return - 1 ;\n }\n ftype = wtype_to_ftype_table [ window_type ] ;\n read_and_decode_spectrum ( tctx , & gb , tctx -> spectrum , ftype ) ;\n imdct_output ( tctx , ftype , window_type , out ) ;\n FFSWAP ( float * , tctx -> curr_frame , tctx -> prev_frame ) ;\n if ( tctx -> discarded_packets < 2 ) {\n tctx -> discarded_packets ++ ;\n * got_frame_ptr = 0 ;\n return buf_size ;\n }\n * got_frame_ptr = 1 ;\n return buf_size ;\n }"}
{"idx": 9406, "target": 0, "func": "int unupack ( int upack , char * dest , uint32_t dsize , char * buff , uint32_t vma , uint32_t ep , uint32_t base , uint32_t va , int file ) {\n int j , searchval ;\n char * loc_esi , * loc_edi = NULL , * loc_ebx , * end_edi , * save_edi , * alvalue ;\n char * paddr , * pushed_esi , * save2 ;\n uint32_t save1 , save3 , loc_ecx , count , shlsize , original_ep , ret , loc_ebx_u ;\n struct cli_exe_section section ;\n int upack_version = UPACK_399 ;\n if ( upack ) {\n uint32_t aljump , shroff , lngjmpoff ;\n if ( buff [ 5 ] == '\\xff' && buff [ 6 ] == '\\x36' ) upack_version = UPACK_0297729 ;\n loc_esi = dest + ( cli_readint32 ( buff + 1 ) - vma ) ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , loc_esi , 12 ) ) return - 1 ;\n original_ep = cli_readint32 ( loc_esi ) ;\n loc_esi += 4 ;\n loc_esi += 4 ;\n original_ep -= vma ;\n cli_dbgmsg ( \"Upack: EP: %08x original: %08X || %08x\\n\" , ep , original_ep , cli_readint32 ( loc_esi - 8 ) ) ;\n if ( upack_version == UPACK_399 ) {\n loc_edi = dest + ( cli_readint32 ( loc_esi ) - vma ) ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , dest + ep + 0xa , 2 ) || dest [ ep + 0xa ] != '\\xeb' ) return - 1 ;\n loc_esi = dest + * ( dest + ep + 0xb ) + ep + 0xc ;\n alvalue = loc_esi + 0x1a ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , alvalue , 2 ) || * alvalue != '\\xeb' ) return - 1 ;\n alvalue ++ ;\n alvalue += ( * alvalue & 0xff ) + 1 + 0xa ;\n lngjmpoff = 8 ;\n }\n else {\n if ( ! CLI_ISCONTAINED ( dest , dsize , dest + ep + 7 , 5 ) || dest [ ep + 7 ] != '\\xe9' ) return - 1 ;\n loc_esi = dest + cli_readint32 ( dest + ep + 8 ) + ep + 0xc ;\n alvalue = loc_esi + 0x25 ;\n lngjmpoff = 10 ;\n }\n if ( ! CLI_ISCONTAINED ( dest , dsize , alvalue , 2 ) || * alvalue != '\\xb5' ) return - 1 ;\n alvalue ++ ;\n count = * alvalue & 0xff ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , alvalue , lngjmpoff + 5 ) || * ( alvalue + lngjmpoff ) != '\\xe9' ) return - 1 ;\n shlsize = cli_readint32 ( alvalue + lngjmpoff + 1 ) ;\n if ( upack_version == UPACK_399 ) shlsize = shlsize + ( loc_esi - dest ) + * ( loc_esi + 0x1b ) + 0x1c + 0x018 ;\n else shlsize = shlsize + ( loc_esi - dest ) + 0x035 ;\n alvalue = dest + shlsize + 43 ;\n aljump = 8 ;\n shroff = 24 ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , alvalue - 1 , 2 ) || * ( alvalue - 1 ) != '\\xe3' ) {\n alvalue = dest + shlsize + 46 ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , alvalue - 1 , 2 ) || * ( alvalue - 1 ) != '\\xe3' ) return - 1 ;\n else {\n if ( upack_version != UPACK_0297729 ) upack_version = UPACK_0151477 ;\n aljump = 7 ;\n shroff = 26 ;\n }\n }\n alvalue += ( * alvalue & 0xff ) + 1 ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , alvalue , aljump + 5 ) || * ( alvalue + aljump ) != '\\xe9' ) return - 1 ;\n ret = cli_readint32 ( alvalue + aljump + 1 ) ;\n alvalue += ret + aljump + 1 + 4 + 27 ;\n if ( upack_version == UPACK_0297729 ) alvalue += 2 ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , dest + shlsize + shroff , 3 ) || * ( dest + shlsize + shroff ) != '\\xc1' || * ( dest + shlsize + shroff + 1 ) != '\\xed' ) return - 1 ;\n shlsize = ( * ( dest + shlsize + shroff + 2 ) ) & 0xff ;\n count *= 0x100 ;\n if ( shlsize < 2 || shlsize > 8 ) {\n cli_dbgmsg ( \"Upack: context bits out of bounds\\n\" ) ;\n return - 1 ;\n }\n cli_dbgmsg ( \"Upack: Context Bits parameter used with lzma: %02x, %02x\\n\" , shlsize , count ) ;\n if ( upack_version == UPACK_0297729 ) {\n if ( ! CLI_ISCONTAINED ( dest , dsize , loc_esi + 6 , 10 ) || * ( loc_esi + 6 ) != '\\xbe' || * ( loc_esi + 11 ) != '\\xbf' ) return - 1 ;\n if ( ( uint32_t ) cli_readint32 ( loc_esi + 7 ) < base || ( uint32_t ) cli_readint32 ( loc_esi + 7 ) > vma ) return - 1 ;\n loc_edi = dest + ( cli_readint32 ( loc_esi + 12 ) - vma ) ;\n loc_esi = dest + ( cli_readint32 ( loc_esi + 7 ) - base ) ;\n }\n else {\n if ( ! CLI_ISCONTAINED ( dest , dsize , loc_esi + 7 , 5 ) || * ( loc_esi + 7 ) != '\\xbe' ) return - 1 ;\n loc_esi = dest + ( cli_readint32 ( loc_esi + 8 ) - vma ) ;\n }\n if ( upack_version == UPACK_0297729 ) {\n if ( ! CLI_ISCONTAINED ( dest , dsize , loc_edi , ( 0x58 + 24 + 4 * count ) ) || ! CLI_ISCONTAINED ( dest , dsize , loc_esi , ( 0x58 + 0x64 + 4 ) ) ) return - 1 ;\n for ( j = 0 ;\n j < 0x16 ;\n j ++ , loc_esi += 4 , loc_edi += 4 ) cli_writeint32 ( loc_edi , cli_readint32 ( loc_esi ) ) ;\n }\n else {\n if ( ! CLI_ISCONTAINED ( dest , dsize , loc_edi , ( 0x9c + 24 + 4 * count ) ) || ! CLI_ISCONTAINED ( dest , dsize , loc_esi , ( 0x9c + 0x34 + 4 ) ) ) return - 1 ;\n for ( j = 0 ;\n j < 0x27 ;\n j ++ , loc_esi += 4 , loc_edi += 4 ) cli_writeint32 ( loc_edi , cli_readint32 ( loc_esi ) ) ;\n }\n save3 = cli_readint32 ( loc_esi + 4 ) ;\n paddr = dest + ( ( uint32_t ) cli_readint32 ( loc_edi - 4 ) ) - vma ;\n loc_ebx = loc_edi ;\n cli_writeint32 ( loc_edi , 0xffffffff ) ;\n loc_edi += 4 ;\n cli_writeint32 ( loc_edi , 0 ) ;\n loc_edi += 4 ;\n for ( j = 0 ;\n j < 4 ;\n j ++ , loc_edi += 4 ) cli_writeint32 ( loc_edi , ( 1 ) ) ;\n for ( j = 0 ;\n ( unsigned int ) j < count ;\n j ++ , loc_edi += 4 ) cli_writeint32 ( loc_edi , 0x400 ) ;\n loc_edi = dest + cli_readint32 ( loc_esi + 0xc ) - vma ;\n if ( upack_version == UPACK_0297729 ) loc_edi = dest + vma - base ;\n pushed_esi = loc_edi ;\n if ( upack_version == UPACK_0297729 ) {\n end_edi = dest + cli_readint32 ( loc_esi + 0x64 ) - vma ;\n save3 = cli_readint32 ( loc_esi + 0x40 ) ;\n }\n else {\n end_edi = dest + cli_readint32 ( loc_esi + 0x34 ) - vma ;\n }\n if ( loc_edi > end_edi ) {\n cli_debug ( \"Upack: loc_edi > end_edi breaks cli_rebuildpe() bb#11216\\n\" ) ;\n return - 1 ;\n }\n cli_dbgmsg ( \"Upack: data initialized, before upack lzma call!\\n\" ) ;\n if ( ( ret = ( uint32_t ) unupack399 ( dest , dsize , 0 , loc_ebx , 0 , loc_edi , end_edi , shlsize , paddr ) ) == 0xffffffff ) return - 1 ;\n }\n else {\n int ep_jmp_offs , rep_stosd_count_offs , context_bits_offs ;\n loc_esi = dest + vma + ep ;\n if ( buff [ 0 ] == '\\xbe' && buff [ 5 ] == '\\xad' && buff [ 6 ] == '\\x8b' && buff [ 7 ] == '\\xf8' ) upack_version = UPACK_11_12 ;\n if ( upack_version == UPACK_11_12 ) {\n ep_jmp_offs = 0x1a4 ;\n rep_stosd_count_offs = 0x1b ;\n context_bits_offs = 0x41 ;\n alvalue = loc_esi + 0x184 ;\n }\n else {\n ep_jmp_offs = 0x217 ;\n rep_stosd_count_offs = 0x3a ;\n context_bits_offs = 0x5f ;\n alvalue = loc_esi + 0x1c1 ;\n }\n if ( ! CLI_ISCONTAINED ( dest , dsize , loc_esi , ep_jmp_offs + 4 ) ) return - 1 ;\n save1 = cli_readint32 ( loc_esi + ep_jmp_offs ) ;\n original_ep = ( loc_esi - dest ) + ep_jmp_offs + 4 ;\n original_ep += ( int32_t ) save1 ;\n cli_dbgmsg ( \"Upack: EP: %08x original %08x\\n\" , ep , original_ep ) ;\n count = ( * ( loc_esi + rep_stosd_count_offs ) ) & 0xff ;\n shlsize = ( * ( loc_esi + context_bits_offs ) ) & 0xff ;\n shlsize = 8 - shlsize ;\n if ( shlsize < 2 || shlsize > 8 ) {\n cli_dbgmsg ( \"Upack: context bits out of bounds\\n\" ) ;\n return - 1 ;\n }\n count *= 0x100 ;\n cli_dbgmsg ( \"Upack: Context Bits parameter used with lzma: %02x, %02x\\n\" , shlsize , count ) ;\n if ( upack_version == UPACK_399 ) {\n loc_esi += 4 ;\n loc_ecx = cli_readint32 ( loc_esi + 2 ) ;\n cli_writeint32 ( loc_esi + 2 , 0 ) ;\n if ( ! loc_ecx ) {\n cli_dbgmsg ( \"Upack: something's wrong, report back\\n\" ) ;\n return - 1 ;\n }\n loc_esi -= ( loc_ecx - 2 ) ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , loc_esi , 12 ) ) return - 1 ;\n cli_dbgmsg ( \"Upack: %p %p %08x %08x\\n\" , loc_esi , dest , cli_readint32 ( loc_esi ) , base ) ;\n loc_ebx_u = loc_esi - ( dest + cli_readint32 ( loc_esi ) - base ) ;\n cli_dbgmsg ( \"Upack: EBX: %08x\\n\" , loc_ebx_u ) ;\n loc_esi += 4 ;\n save2 = loc_edi = dest + cli_readint32 ( loc_esi ) - base ;\n cli_dbgmsg ( \"Upack: DEST: %08x, %08x\\n\" , cli_readint32 ( loc_esi ) , cli_readint32 ( loc_esi ) - base ) ;\n loc_esi += 4 ;\n j = cli_readint32 ( loc_esi ) ;\n if ( j < 0 ) {\n cli_dbgmsg ( \"Upack: probably hand-crafted data, report back\\n\" ) ;\n return - 1 ;\n }\n loc_esi += 4 ;\n cli_dbgmsg ( \"Upack: ecx counter: %08x\\n\" , j ) ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , loc_esi , ( j * 4 ) ) || ! CLI_ISCONTAINED ( dest , dsize , loc_edi , ( ( j + count ) * 4 ) ) ) return - 1 ;\n for ( ;\n j -- ;\n loc_edi += 4 , loc_esi += 4 ) cli_writeint32 ( loc_edi , cli_readint32 ( loc_esi ) ) ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , save2 , 8 ) ) return - 1 ;\n loc_ecx = cli_readint32 ( save2 ) ;\n save2 += 4 ;\n loc_esi = save2 ;\n do {\n loc_esi += loc_ebx_u ;\n loc_esi += 4 ;\n }\n while ( -- loc_ecx ) ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , loc_esi , 4 ) ) return - 1 ;\n save1 = cli_readint32 ( loc_esi ) ;\n loc_esi += 4 ;\n for ( j = 0 ;\n ( uint32_t ) j < count ;\n j ++ , loc_edi += 4 ) cli_writeint32 ( loc_edi , ( save1 ) ) ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , ( loc_esi + 0x10 ) , 4 ) ) return - 1 ;\n cli_writeint32 ( loc_esi + 0x10 , ( uint32_t ) cli_readint32 ( loc_esi + 0x10 ) + loc_ebx_u ) ;\n loc_ebx = loc_esi + 0x14 ;\n loc_esi = save2 ;\n save_edi = loc_edi = dest + ( ( uint32_t ) cli_readint32 ( loc_esi ) - base ) ;\n loc_esi += 4 ;\n cli_dbgmsg ( \"Upack: before_fixing\\n\" ) ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , loc_ebx - 4 , ( 12 + 4 * 4 ) ) || ! CLI_ISCONTAINED ( dest , dsize , loc_esi + 0x24 , 4 ) || ! CLI_ISCONTAINED ( dest , dsize , loc_esi + 0x40 , 4 ) ) return - 1 ;\n for ( j = 2 ;\n j < 6 ;\n j ++ ) cli_writeint32 ( loc_ebx + ( j << 2 ) , cli_readint32 ( loc_ebx + ( j << 2 ) ) ) ;\n paddr = dest + cli_readint32 ( loc_ebx - 4 ) - base ;\n save1 = loc_ecx ;\n pushed_esi = loc_edi ;\n end_edi = dest + cli_readint32 ( loc_esi + 0x24 ) - base ;\n vma = cli_readint32 ( loc_ebx ) ;\n cli_writeint32 ( loc_ebx , cli_readint32 ( loc_ebx + 4 ) ) ;\n cli_writeint32 ( ( loc_ebx + 4 ) , vma ) ;\n }\n else if ( upack_version == UPACK_11_12 ) {\n cli_dbgmsg ( \"Upack v 1.1/1.2\\n\" ) ;\n loc_esi = dest + 0x148 ;\n loc_edi = dest + cli_readint32 ( loc_esi ) - base ;\n loc_esi += 4 ;\n save_edi = loc_edi ;\n paddr = dest + ( ( uint32_t ) cli_readint32 ( loc_esi ) ) - base ;\n loc_esi += 4 ;\n loc_edi += 4 ;\n loc_ebx = loc_edi ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , loc_edi , ( ( 6 + count ) * 4 ) ) ) return - 1 ;\n cli_writeint32 ( loc_edi , 0xffffffff ) ;\n loc_edi += 4 ;\n cli_writeint32 ( loc_edi , 0 ) ;\n loc_edi += 4 ;\n for ( j = 0 ;\n j < 4 ;\n j ++ , loc_edi += 4 ) cli_writeint32 ( loc_edi , ( 1 ) ) ;\n for ( j = 0 ;\n ( uint32_t ) j < count ;\n j ++ , loc_edi += 4 ) cli_writeint32 ( loc_edi , 0x400 ) ;\n loc_edi = dest + cli_readint32 ( loc_esi ) - base ;\n pushed_esi = loc_edi ;\n loc_esi += 4 ;\n loc_ecx = 0 ;\n loc_esi += 4 ;\n end_edi = dest + cli_readint32 ( loc_esi - 0x28 ) - base ;\n loc_esi = save_edi ;\n }\n if ( loc_edi > end_edi ) {\n cli_debug ( \"Upack(alt begin): loc_edi > end_edi breaks cli_rebuildpe() bb#11216\\n\" ) ;\n return - 1 ;\n }\n cli_dbgmsg ( \"Upack: data initialized, before upack lzma call!\\n\" ) ;\n if ( ( ret = ( uint32_t ) unupack399 ( dest , dsize , loc_ecx , loc_ebx , loc_ecx , loc_edi , end_edi , shlsize , paddr ) ) == 0xffffffff ) return - 1 ;\n if ( upack_version == UPACK_399 ) save3 = cli_readint32 ( loc_esi + 0x40 ) ;\n else if ( upack_version == UPACK_11_12 ) save3 = cli_readint32 ( dest + vma + ep + 0x174 ) ;\n }\n loc_ecx = 0 ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , alvalue , 1 ) ) {\n cli_dbgmsg ( \"Upack: alvalue out of bounds\\n\" ) ;\n return - 1 ;\n }\n searchval = * alvalue & 0xff ;\n cli_dbgmsg ( \"Upack: loops: %08x search value: %02x\\n\" , save3 , searchval ) ;\n while ( save3 ) {\n if ( ! CLI_ISCONTAINED ( dest , dsize , pushed_esi + loc_ecx , 1 ) ) {\n cli_dbgmsg ( \"Upack: callfixerr %p %08x = %p, %p\\n\" , dest , dsize , dest + dsize , pushed_esi + loc_ecx ) ;\n return - 1 ;\n }\n if ( pushed_esi [ loc_ecx ] == '\\xe8' || pushed_esi [ loc_ecx ] == '\\xe9' ) {\n char * adr = ( pushed_esi + loc_ecx + 1 ) ;\n loc_ecx ++ ;\n if ( ! CLI_ISCONTAINED ( dest , dsize , adr , 4 ) ) {\n cli_dbgmsg ( \"Upack: callfixerr\\n\" ) ;\n return - 1 ;\n }\n if ( ( cli_readint32 ( adr ) & 0xff ) != searchval ) continue ;\n cli_writeint32 ( adr , EC32 ( CE32 ( ( uint32_t ) ( cli_readint32 ( adr ) & 0xffffff00 ) ) ) - loc_ecx - 4 ) ;\n loc_ecx += 4 ;\n save3 -- ;\n }\n else loc_ecx ++ ;\n }\n section . raw = 0 ;\n section . rva = va ;\n section . rsz = end_edi - loc_edi ;\n section . vsz = end_edi - loc_edi ;\n if ( ! cli_rebuildpe ( dest + ( upack ? 0 : va ) , & section , 1 , base , original_ep , 0 , 0 , file ) ) {\n cli_dbgmsg ( \"Upack: Rebuilding failed\\n\" ) ;\n return 0 ;\n }\n return 1 ;\n }"}
{"idx": 9407, "target": 0, "func": "static int SpoolssEnumPrinterData_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n guint32 ndx ;\n proto_item * hidden_item ;\n hidden_item = proto_tree_add_uint ( tree , hf_printerdata , tvb , offset , 0 , 1 ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , NULL , NULL , FALSE , FALSE ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_enumprinterdata_enumindex , & ndx ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", index %d\" , ndx ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_enumprinterdata_value_offered , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_enumprinterdata_data_offered , NULL ) ;\n return offset ;\n }"}
{"idx": 9408, "target": 0, "func": "static int mv_read_seek ( AVFormatContext * avctx , int stream_index , int64_t timestamp , int flags ) {\n MvContext * mv = avctx -> priv_data ;\n AVStream * st = avctx -> streams [ stream_index ] ;\n int frame , i ;\n if ( ( flags & AVSEEK_FLAG_FRAME ) || ( flags & AVSEEK_FLAG_BYTE ) ) return AVERROR ( ENOSYS ) ;\n if ( ! ( avctx -> pb -> seekable & AVIO_SEEKABLE_NORMAL ) ) return AVERROR ( EIO ) ;\n frame = av_index_search_timestamp ( st , timestamp , flags ) ;\n if ( frame < 0 ) return AVERROR_INVALIDDATA ;\n for ( i = 0 ;\n i < avctx -> nb_streams ;\n i ++ ) mv -> frame [ i ] = frame ;\n return 0 ;\n }"}
{"idx": 9409, "target": 0, "func": "static int tipc_nl_compat_doit ( struct tipc_nl_compat_cmd_doit * cmd , struct tipc_nl_compat_msg * msg ) {\n int err ;\n if ( msg -> req_type && ! TLV_CHECK_TYPE ( msg -> req , msg -> req_type ) ) return - EINVAL ;\n err = __tipc_nl_compat_doit ( cmd , msg ) ;\n if ( err ) return err ;\n msg -> rep = tipc_tlv_alloc ( 0 ) ;\n if ( ! msg -> rep ) return - ENOMEM ;\n return 0 ;\n }"}
{"idx": 9410, "target": 0, "func": "void proto_reg_handoff_zbee_zcl_basic ( void ) {\n dissector_handle_t basic_handle ;\n basic_handle = find_dissector ( ZBEE_PROTOABBREV_ZCL_BASIC ) ;\n dissector_add_uint ( \"zbee.zcl.cluster\" , ZBEE_ZCL_CID_BASIC , basic_handle ) ;\n zbee_zcl_init_cluster ( proto_zbee_zcl_basic , ett_zbee_zcl_basic , ZBEE_ZCL_CID_BASIC , hf_zbee_zcl_basic_attr_id , hf_zbee_zcl_basic_srv_rx_cmd_id , - 1 , ( zbee_zcl_fn_attr_data ) dissect_zcl_basic_attr_data ) ;\n }"}
{"idx": 9411, "target": 0, "func": "static bool update_user_table ( THD * thd , TABLE * table , const char * host , const char * user , const char * new_password , uint new_password_len ) {\n char user_key [ MAX_KEY_LENGTH ] ;\n int error ;\n DBUG_ENTER ( \"update_user_table\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"user: %s host: %s\" , user , host ) ) ;\n table -> use_all_columns ( ) ;\n table -> field [ 0 ] -> store ( host , ( uint ) strlen ( host ) , system_charset_info ) ;\n table -> field [ 1 ] -> store ( user , ( uint ) strlen ( user ) , system_charset_info ) ;\n key_copy ( ( uchar * ) user_key , table -> record [ 0 ] , table -> key_info , table -> key_info -> key_length ) ;\n if ( table -> file -> index_read_idx_map ( table -> record [ 0 ] , 0 , ( uchar * ) user_key , HA_WHOLE_KEY , HA_READ_KEY_EXACT ) ) {\n my_message ( ER_PASSWORD_NO_MATCH , ER ( ER_PASSWORD_NO_MATCH ) , MYF ( 0 ) ) ;\n DBUG_RETURN ( 1 ) ;\n }\n store_record ( table , record [ 1 ] ) ;\n table -> field [ 2 ] -> store ( new_password , new_password_len , system_charset_info ) ;\n if ( ( error = table -> file -> ha_update_row ( table -> record [ 1 ] , table -> record [ 0 ] ) ) && error != HA_ERR_RECORD_IS_THE_SAME ) {\n table -> file -> print_error ( error , MYF ( 0 ) ) ;\n DBUG_RETURN ( 1 ) ;\n }\n DBUG_RETURN ( 0 ) ;\n }"}
{"idx": 9412, "target": 0, "func": "TSReturnCode TSUrlDestroy ( TSMBuffer , TSMLoc ) {\n return TS_SUCCESS ;\n }"}
{"idx": 9413, "target": 0, "func": "static void dtap_cc_connect ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_TRUE ;\n ELEM_OPT_TLV ( 0x1c , GSM_A_PDU_TYPE_DTAP , DE_FACILITY , NULL ) ;\n ELEM_OPT_TLV ( 0x1e , GSM_A_PDU_TYPE_DTAP , DE_PROG_IND , NULL ) ;\n ELEM_OPT_TLV ( 0x4c , GSM_A_PDU_TYPE_DTAP , DE_CONN_NUM , NULL ) ;\n ELEM_OPT_TLV ( 0x4d , GSM_A_PDU_TYPE_DTAP , DE_CONN_SUB_ADDR , NULL ) ;\n ELEM_OPT_TLV ( 0x7e , GSM_A_PDU_TYPE_DTAP , DE_USER_USER , NULL ) ;\n ELEM_OPT_TLV ( 0x7f , GSM_A_PDU_TYPE_DTAP , DE_SS_VER_IND , NULL ) ;\n ELEM_OPT_TLV ( 0x2d , GSM_A_PDU_TYPE_DTAP , DE_SI , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 9414, "target": 0, "func": "static void proto_tree_set_fcwwn_tvb ( field_info * fi , tvbuff_t * tvb , gint start , gint length ) {\n proto_tree_set_fcwwn ( fi , tvb_get_ptr ( tvb , start , length ) ) ;\n }"}
{"idx": 9415, "target": 0, "func": "static int get_path_component ( char * name , size_t n , const char * fn ) {\n char * p ;\n size_t l ;\n p = strchr ( fn , '/' ) ;\n if ( p == NULL ) {\n if ( ( l = strlen ( fn ) ) == 0 ) return ( 0 ) ;\n }\n else l = p - fn ;\n if ( l > n - 1 ) return ( - 1 ) ;\n memcpy ( name , fn , l ) ;\n name [ l ] = '\\0' ;\n return ( ( int ) l ) ;\n }"}
{"idx": 9416, "target": 0, "func": "static smb_fid_info_t * find_fid_info ( smb_info_t * si ) {\n smb_fid_info_t * fid_info = NULL ;\n smb_transact_info_t * tri = ( smb_transact_info_t * ) ( ( si -> sip && ( si -> sip -> extra_info_type == SMB_EI_TRI ) ) ? si -> sip -> extra_info : NULL ) ;\n GSList * iter ;\n guint32 fid = 0 ;\n if ( tri == NULL ) {\n if ( si -> sip && ( si -> sip -> extra_info_type == SMB_EI_RWINFO ) ) {\n fid = si -> sip -> fid ;\n }\n }\n else {\n fid = tri -> fid ;\n }\n if ( ! fid ) {\n return NULL ;\n }\n for ( iter = si -> ct -> GSL_fid_info ;\n iter ;\n iter = iter -> next ) {\n smb_fid_info_t * info = ( smb_fid_info_t * ) iter -> data ;\n if ( ( info -> tid == si -> tid ) && ( info -> fid == fid ) ) {\n fid_info = info ;\n break ;\n }\n }\n return fid_info ;\n }"}
{"idx": 9417, "target": 1, "func": "void examine_variable ( PlannerInfo * root , Node * node , int varRelid , VariableStatData * vardata ) {\n Node * basenode ;\n Relids varnos ;\n RelOptInfo * onerel ;\n MemSet ( vardata , 0 , sizeof ( VariableStatData ) ) ;\n vardata -> vartype = exprType ( node ) ;\n if ( IsA ( node , RelabelType ) ) basenode = ( Node * ) ( ( RelabelType * ) node ) -> arg ;\n else basenode = node ;\n if ( IsA ( basenode , Var ) && ( varRelid == 0 || varRelid == ( ( Var * ) basenode ) -> varno ) ) {\n Var * var = ( Var * ) basenode ;\n vardata -> var = basenode ;\n vardata -> rel = find_base_rel ( root , var -> varno ) ;\n vardata -> atttype = var -> vartype ;\n vardata -> atttypmod = var -> vartypmod ;\n vardata -> isunique = has_unique_index ( vardata -> rel , var -> varattno ) ;\n examine_simple_variable ( root , var , vardata ) ;\n return ;\n }\n varnos = pull_varnos ( basenode ) ;\n onerel = NULL ;\n switch ( bms_membership ( varnos ) ) {\n case BMS_EMPTY_SET : break ;\n case BMS_SINGLETON : if ( varRelid == 0 || bms_is_member ( varRelid , varnos ) ) {\n onerel = find_base_rel ( root , ( varRelid ? varRelid : bms_singleton_member ( varnos ) ) ) ;\n vardata -> rel = onerel ;\n node = basenode ;\n }\n break ;\n case BMS_MULTIPLE : if ( varRelid == 0 ) {\n vardata -> rel = find_join_rel ( root , varnos ) ;\n node = basenode ;\n }\n else if ( bms_is_member ( varRelid , varnos ) ) {\n vardata -> rel = find_base_rel ( root , varRelid ) ;\n node = basenode ;\n }\n break ;\n }\n bms_free ( varnos ) ;\n vardata -> var = node ;\n vardata -> atttype = exprType ( node ) ;\n vardata -> atttypmod = exprTypmod ( node ) ;\n if ( onerel ) {\n ListCell * ilist ;\n foreach ( ilist , onerel -> indexlist ) {\n IndexOptInfo * index = ( IndexOptInfo * ) lfirst ( ilist ) ;\n ListCell * indexpr_item ;\n int pos ;\n indexpr_item = list_head ( index -> indexprs ) ;\n if ( indexpr_item == NULL ) continue ;\n for ( pos = 0 ;\n pos < index -> ncolumns ;\n pos ++ ) {\n if ( index -> indexkeys [ pos ] == 0 ) {\n Node * indexkey ;\n if ( indexpr_item == NULL ) elog ( ERROR , \"too few entries in indexprs list\" ) ;\n indexkey = ( Node * ) lfirst ( indexpr_item ) ;\n if ( indexkey && IsA ( indexkey , RelabelType ) ) indexkey = ( Node * ) ( ( RelabelType * ) indexkey ) -> arg ;\n if ( equal ( node , indexkey ) ) {\n if ( index -> unique && index -> ncolumns == 1 && ( index -> indpred == NIL || index -> predOK ) ) vardata -> isunique = true ;\n if ( get_index_stats_hook && ( * get_index_stats_hook ) ( root , index -> indexoid , pos + 1 , vardata ) ) {\n if ( HeapTupleIsValid ( vardata -> statsTuple ) && ! vardata -> freefunc ) elog ( ERROR , \"no function provided to release variable stats with\" ) ;\n }\n else if ( index -> indpred == NIL ) {\n vardata -> statsTuple = SearchSysCache3 ( STATRELATTINH , ObjectIdGetDatum ( index -> indexoid ) , Int16GetDatum ( pos + 1 ) , BoolGetDatum ( false ) ) ;\n vardata -> freefunc = ReleaseSysCache ;\n }\n if ( vardata -> statsTuple ) break ;\n }\n indexpr_item = lnext ( indexpr_item ) ;\n }\n }\n if ( vardata -> statsTuple ) break ;\n }\n }\n }"}
{"idx": 9418, "target": 0, "func": "static krb5_tl_data * dup_tl_data ( krb5_tl_data * tl ) {\n krb5_tl_data * n ;\n n = ( krb5_tl_data * ) malloc ( sizeof ( krb5_tl_data ) ) ;\n if ( n == NULL ) return NULL ;\n n -> tl_data_contents = malloc ( tl -> tl_data_length ) ;\n if ( n -> tl_data_contents == NULL ) {\n free ( n ) ;\n return NULL ;\n }\n memcpy ( n -> tl_data_contents , tl -> tl_data_contents , tl -> tl_data_length ) ;\n n -> tl_data_type = tl -> tl_data_type ;\n n -> tl_data_length = tl -> tl_data_length ;\n n -> tl_data_next = NULL ;\n return n ;\n }"}
{"idx": 9419, "target": 0, "func": "static void set_no_icc ( fz_colorspace_context * cct ) {\n cct -> gray = default_gray ;\n cct -> rgb = default_rgb ;\n cct -> bgr = default_bgr ;\n cct -> cmyk = default_cmyk ;\n cct -> lab = default_lab ;\n }"}
{"idx": 9420, "target": 0, "func": "TEST_F ( WebFrameTest , GetCanonicalUrlForSharingMultiple ) {\n FrameTestHelpers : : WebViewHelper web_view_helper ;\n web_view_helper . Initialize ( ) ;\n WebLocalFrameImpl * frame = web_view_helper . LocalMainFrame ( ) ;\n FrameTestHelpers : : LoadHTMLString ( frame , R \"( < head > < link rel = \"canonical\" href = \"https://example.com/canonical1.html\" > < link rel = \"canonical\" href = \"https://example.com/canonical2.html\" > < / head > ) \", ToKURL(\" https : EXPECT_EQ ( WebURL ( ToKURL ( \"https://example.com/canonical1.html\" ) ) , frame -> GetDocument ( ) . CanonicalUrlForSharing ( ) ) ;\n }"}
{"idx": 9421, "target": 0, "func": "static int checkHttpTxnServerIPGet ( SocketTest * test , void * data ) {\n sockaddr const * ptr ;\n in_addr_t ip ;\n TSHttpTxn txnp = ( TSHttpTxn ) data ;\n in_addr_t actual_ip = htonl ( INADDR_LOOPBACK ) ;\n ptr = TSHttpTxnServerAddrGet ( txnp ) ;\n if ( nullptr == ptr || 0 == ( ip = ats_ip4_addr_cast ( ptr ) ) ) {\n test -> test_server_ip_get = false ;\n SDK_RPRINT ( test -> regtest , \"TSHttpTxnServerIPGet\" , \"TestCase1\" , TC_FAIL , \"TSHttpTxnServerIPGet returns 0 %s\" , ptr ? \"address\" : \"pointer\" ) ;\n return TS_EVENT_CONTINUE ;\n }\n if ( ip == actual_ip ) {\n test -> test_server_ip_get = true ;\n SDK_RPRINT ( test -> regtest , \"TSHttpTxnServerIPGet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n else {\n test -> test_server_ip_get = false ;\n SDK_RPRINT ( test -> regtest , \"TSHttpTxnServerIPGet\" , \"TestCase1\" , TC_FAIL , \"Value's Mismatch\" ) ;\n }\n return TS_EVENT_CONTINUE ;\n }"}
{"idx": 9422, "target": 0, "func": "static guint64 lbmpdm_fetch_uint64_encoded ( tvbuff_t * tvb , int offset , int encoding ) {\n guint64 value = 0 ;\n if ( encoding == ENC_BIG_ENDIAN ) {\n value = tvb_get_ntoh64 ( tvb , offset ) ;\n }\n else {\n value = tvb_get_letoh64 ( tvb , offset ) ;\n }\n return ( value ) ;\n }"}
{"idx": 9423, "target": 0, "func": "static int dissect_h225_GatekeeperRejectReason ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 604 \"./asn1/h225/h225.cnf\" gint32 value ;\n h225_packet_info * h225_pi ;\n h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_GatekeeperRejectReason , GatekeeperRejectReason_choice , & value ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> reason = value ;\n }\n return offset ;\n }"}
{"idx": 9424, "target": 0, "func": "static bool DecoderIsExitRequested ( decoder_t * p_dec ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n vlc_mutex_lock ( & p_owner -> lock ) ;\n bool b_exit = p_owner -> b_exit ;\n vlc_mutex_unlock ( & p_owner -> lock ) ;\n return b_exit ;\n }"}
{"idx": 9425, "target": 0, "func": "static inline int decode_slice_header ( AVSContext * h , GetBitContext * gb ) {\n if ( h -> stc > 0xAF ) av_log ( h -> avctx , AV_LOG_ERROR , \"unexpected start code 0x%02x\\n\" , h -> stc ) ;\n h -> mby = h -> stc ;\n h -> mbidx = h -> mby * h -> mb_width ;\n h -> flags &= ~ ( B_AVAIL | C_AVAIL ) ;\n if ( ( h -> mby == 0 ) && ( ! h -> qp_fixed ) ) {\n h -> qp_fixed = get_bits1 ( gb ) ;\n h -> qp = get_bits ( gb , 6 ) ;\n }\n if ( ( h -> cur . f -> pict_type != AV_PICTURE_TYPE_I ) || ( ! h -> pic_structure && h -> mby >= h -> mb_width / 2 ) ) if ( get_bits1 ( gb ) ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"weighted prediction not yet supported\\n\" ) ;\n }\n return 0 ;\n }"}
{"idx": 9426, "target": 0, "func": "static int dissect_h245_INTEGER_0_17 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 17U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 9427, "target": 0, "func": "static int dissect_h245_IS11172AudioCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_IS11172AudioCapability , IS11172AudioCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 9428, "target": 0, "func": "const mbfl_encoding * mbfl_encoding_detector_judge2 ( mbfl_encoding_detector * identd ) {\n mbfl_identify_filter * filter ;\n const mbfl_encoding * encoding = NULL ;\n int n ;\n if ( identd != NULL ) {\n n = identd -> filter_list_size - 1 ;\n while ( n >= 0 ) {\n filter = identd -> filter_list [ n ] ;\n if ( ! filter -> flag ) {\n if ( ! identd -> strict || ! filter -> status ) {\n encoding = filter -> encoding ;\n }\n }\n n -- ;\n }\n if ( ! encoding ) {\n n = identd -> filter_list_size - 1 ;\n while ( n >= 0 ) {\n filter = identd -> filter_list [ n ] ;\n if ( ! filter -> flag ) {\n encoding = filter -> encoding ;\n }\n n -- ;\n }\n }\n }\n return encoding ;\n }"}
{"idx": 9429, "target": 0, "func": "static bool e1000e_intrmgr_delay_tx_causes ( E1000ECore * core , uint32_t * causes ) {\n static const uint32_t delayable_causes = E1000_ICR_TXQ0 | E1000_ICR_TXQ1 | E1000_ICR_TXQE | E1000_ICR_TXDW ;\n if ( msix_enabled ( core -> owner ) ) {\n return false ;\n }\n core -> delayed_causes |= * causes & delayable_causes ;\n * causes &= ~ delayable_causes ;\n if ( * causes != 0 ) {\n return false ;\n }\n e1000e_intrmgr_rearm_timer ( & core -> tidv ) ;\n if ( ! core -> tadv . running && ( core -> mac [ TADV ] != 0 ) ) {\n e1000e_intrmgr_rearm_timer ( & core -> tadv ) ;\n }\n return true ;\n }"}
{"idx": 9430, "target": 0, "func": "static const char * str_CBaseStorageVariant ( struct CBaseStorageVariant * value , gboolean print_type ) {\n wmem_strbuf_t * strbuf = wmem_strbuf_new ( wmem_packet_scope ( ) , \"\" ) ;\n if ( value == NULL ) {\n return \"<NULL>\" ;\n }\n if ( value -> type == NULL ) {\n return \"<??\" \"?>\" ;\n }\n if ( print_type ) {\n wmem_strbuf_append ( strbuf , value -> type -> str ) ;\n if ( value -> vType & 0xFF00 ) {\n wmem_strbuf_append_printf ( strbuf , \"[%d]\" , value -> vValue . vt_vector . len ) ;\n }\n wmem_strbuf_append ( strbuf , \": \" ) ;\n }\n switch ( value -> vType & 0xFF00 ) {\n case 0 : value -> type -> strbuf_append ( strbuf , & value -> vValue ) ;\n break ;\n case VT_ARRAY : vvalue_strbuf_append_vector ( strbuf , value -> vValue . vt_array . vData , value -> type ) ;\n break ;\n case VT_VECTOR : vvalue_strbuf_append_vector ( strbuf , value -> vValue . vt_vector , value -> type ) ;\n break ;\n default : wmem_strbuf_append ( strbuf , \"Invalid\" ) ;\n }\n return wmem_strbuf_get_str ( strbuf ) ;\n }"}
{"idx": 9431, "target": 0, "func": "static int SpoolssGetPrinterDataEx_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ;\n guint32 size , type ;\n proto_item * hidden_item ;\n hidden_item = proto_tree_add_uint ( tree , hf_printerdata , tvb , offset , 0 , 1 ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_printerdata_type , & type ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_returned , & size ) ;\n if ( dcv -> se_data ) {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , ( char * ) dcv -> se_data ) ;\n }\n if ( size ) dissect_printerdata_data ( tvb , offset , pinfo , tree , di , drep , type ) ;\n offset += size ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_needed , NULL ) ;\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 9432, "target": 0, "func": "int upx_inflatelzma ( const char * src , uint32_t ssize , char * dst , uint32_t * dsize , uint32_t upx0 , uint32_t upx1 , uint32_t ep ) {\n struct CLI_LZMA l ;\n uint32_t magic [ ] = {\n 0xb16 , 0xb1e , 0 }\n ;\n unsigned char fake_lzmahdr [ 5 ] ;\n memset ( & l , 0 , sizeof ( l ) ) ;\n cli_writeint32 ( fake_lzmahdr + 1 , * dsize ) ;\n * fake_lzmahdr = 3 + 9 * ( 5 * 2 + 0 ) ;\n l . next_in = fake_lzmahdr ;\n l . avail_in = 5 ;\n if ( cli_LzmaInit ( & l , * dsize ) != LZMA_RESULT_OK ) return 0 ;\n l . avail_in = ssize ;\n l . avail_out = * dsize ;\n l . next_in = ( unsigned char * ) src + 2 ;\n l . next_out = ( unsigned char * ) dst ;\n if ( cli_LzmaDecode ( & l ) == LZMA_RESULT_DATA_ERROR ) {\n cli_LzmaShutdown ( & l ) ;\n return - 1 ;\n }\n cli_LzmaShutdown ( & l ) ;\n return pefromupx ( src , ssize , dst , dsize , ep , upx0 , upx1 , magic , * dsize ) ;\n }"}
{"idx": 9433, "target": 0, "func": "void DMA_register_channel ( int nchan , DMA_transfer_handler transfer_handler , void * opaque ) {\n }"}
{"idx": 9434, "target": 0, "func": "int parse_CCategorizationSpec ( tvbuff_t * tvb , packet_info * pinfo , int offset , proto_tree * parent_tree , proto_tree * pad_tree , const char * fmt , ... ) {\n proto_item * item ;\n proto_tree * tree ;\n const char * txt ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CCategorizationSpec , & item , txt ) ;\n offset = parse_CColumnSet ( tvb , offset , tree , \"csColumns\" ) ;\n offset = parse_CCategSpec ( tvb , pinfo , offset , tree , pad_tree , \"Spec\" ) ;\n offset = parse_CAggregSet ( tvb , offset , tree , pad_tree , \"AggregSet\" ) ;\n offset = parse_CSortAggregSet ( tvb , offset , tree , pad_tree , \"SortAggregSet\" ) ;\n offset = parse_CInGroupSortAggregSets ( tvb , pinfo , offset , tree , pad_tree , \"InGroupSortAggregSets\" ) ;\n proto_tree_add_item ( tree , hf_mswsp_categorizationspec_cmaxres , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 9435, "target": 0, "func": "static int getbits ( struct archive_read_filter * self , int n ) {\n struct private_data * state = ( struct private_data * ) self -> data ;\n int code ;\n ssize_t ret ;\n static const int mask [ ] = {\n 0x00 , 0x01 , 0x03 , 0x07 , 0x0f , 0x1f , 0x3f , 0x7f , 0xff , 0x1ff , 0x3ff , 0x7ff , 0xfff , 0x1fff , 0x3fff , 0x7fff , 0xffff }\n ;\n while ( state -> bits_avail < n ) {\n if ( state -> avail_in <= 0 ) {\n if ( state -> consume_unnotified ) {\n __archive_read_filter_consume ( self -> upstream , state -> consume_unnotified ) ;\n state -> consume_unnotified = 0 ;\n }\n state -> next_in = __archive_read_filter_ahead ( self -> upstream , 1 , & ret ) ;\n if ( ret == 0 ) return ( - 1 ) ;\n if ( ret < 0 || state -> next_in == NULL ) return ( ARCHIVE_FATAL ) ;\n state -> consume_unnotified = state -> avail_in = ret ;\n }\n state -> bit_buffer |= * state -> next_in ++ << state -> bits_avail ;\n state -> avail_in -- ;\n state -> bits_avail += 8 ;\n state -> bytes_in_section ++ ;\n }\n code = state -> bit_buffer ;\n state -> bit_buffer >>= n ;\n state -> bits_avail -= n ;\n return ( code & mask [ n ] ) ;\n }"}
{"idx": 9436, "target": 0, "func": "static int get_pred_buffer ( PRED_BUFFER * p , int len ) {\n int i ;\n for ( i = 0 ;\n i < len ;\n i ++ ) {\n if ( ! p [ i ] . in_use ) {\n p [ i ] . in_use = 1 ;\n return i ;\n }\n }\n return - 1 ;\n }"}
{"idx": 9437, "target": 1, "func": "static unsigned int read_sbr_header ( SpectralBandReplication * sbr , GetBitContext * gb ) {\n unsigned int cnt = get_bits_count ( gb ) ;\n uint8_t bs_header_extra_1 ;\n uint8_t bs_header_extra_2 ;\n int old_bs_limiter_bands = sbr -> bs_limiter_bands ;\n SpectrumParameters old_spectrum_params ;\n sbr -> start = 1 ;\n memcpy ( & old_spectrum_params , & sbr -> spectrum_params , sizeof ( SpectrumParameters ) ) ;\n sbr -> bs_amp_res_header = get_bits1 ( gb ) ;\n sbr -> spectrum_params . bs_start_freq = get_bits ( gb , 4 ) ;\n sbr -> spectrum_params . bs_stop_freq = get_bits ( gb , 4 ) ;\n sbr -> spectrum_params . bs_xover_band = get_bits ( gb , 3 ) ;\n skip_bits ( gb , 2 ) ;\n bs_header_extra_1 = get_bits1 ( gb ) ;\n bs_header_extra_2 = get_bits1 ( gb ) ;\n if ( bs_header_extra_1 ) {\n sbr -> spectrum_params . bs_freq_scale = get_bits ( gb , 2 ) ;\n sbr -> spectrum_params . bs_alter_scale = get_bits1 ( gb ) ;\n sbr -> spectrum_params . bs_noise_bands = get_bits ( gb , 2 ) ;\n }\n else {\n sbr -> spectrum_params . bs_freq_scale = 2 ;\n sbr -> spectrum_params . bs_alter_scale = 1 ;\n sbr -> spectrum_params . bs_noise_bands = 2 ;\n }\n if ( memcmp ( & old_spectrum_params , & sbr -> spectrum_params , sizeof ( SpectrumParameters ) ) ) sbr -> reset = 1 ;\n if ( bs_header_extra_2 ) {\n sbr -> bs_limiter_bands = get_bits ( gb , 2 ) ;\n sbr -> bs_limiter_gains = get_bits ( gb , 2 ) ;\n sbr -> bs_interpol_freq = get_bits1 ( gb ) ;\n sbr -> bs_smoothing_mode = get_bits1 ( gb ) ;\n }\n else {\n sbr -> bs_limiter_bands = 2 ;\n sbr -> bs_limiter_gains = 2 ;\n sbr -> bs_interpol_freq = 1 ;\n sbr -> bs_smoothing_mode = 1 ;\n }\n if ( sbr -> bs_limiter_bands != old_bs_limiter_bands && ! sbr -> reset ) sbr_make_f_tablelim ( sbr ) ;\n return get_bits_count ( gb ) - cnt ;\n }"}
{"idx": 9438, "target": 0, "func": "static int SpoolssStartPagePrinter_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 9439, "target": 0, "func": "static UBool _isExtlangSubtag ( const char * s , int32_t len ) {\n if ( len < 0 ) {\n len = ( int32_t ) uprv_strlen ( s ) ;\n }\n if ( len == 3 && _isAlphaString ( s , len ) ) {\n return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 9440, "target": 0, "func": "static void read_coef_probs_common ( vp9_coeff_probs_model * coef_probs , vp9_reader * r ) {\n int i , j , k , l , m ;\n if ( vp9_read_bit ( r ) ) for ( i = 0 ;\n i < PLANE_TYPES ;\n ++ i ) for ( j = 0 ;\n j < REF_TYPES ;\n ++ j ) for ( k = 0 ;\n k < COEF_BANDS ;\n ++ k ) for ( l = 0 ;\n l < BAND_COEFF_CONTEXTS ( k ) ;\n ++ l ) for ( m = 0 ;\n m < UNCONSTRAINED_NODES ;\n ++ m ) vp9_diff_update_prob ( r , & coef_probs [ i ] [ j ] [ k ] [ l ] [ m ] ) ;\n }"}
{"idx": 9441, "target": 0, "func": "static guint32 dissect_trunkcall_nots ( tvbuff_t * tvb , guint32 offset , proto_tree * iax2_tree , guint16 * scallno ) {\n proto_tree * call_tree ;\n guint16 datalen , rlen ;\n * scallno = tvb_get_ntohs ( tvb , offset ) ;\n datalen = tvb_get_ntohs ( tvb , offset + 2 ) ;\n rlen = MIN ( tvb_captured_length ( tvb ) - offset - 4 , datalen ) ;\n if ( iax2_tree ) {\n call_tree = proto_tree_add_subtree_format ( iax2_tree , tvb , offset , rlen + 6 , ett_iax2_trunk_call , NULL , \"Trunk call from %u\" , * scallno ) ;\n proto_tree_add_item ( call_tree , hf_iax2_trunk_call_scallno , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( call_tree , hf_iax2_trunk_call_len , tvb , offset + 2 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( call_tree , hf_iax2_trunk_call_data , tvb , offset + 4 , rlen , ENC_NA ) ;\n }\n offset += 4 + rlen ;\n return offset ;\n }"}
{"idx": 9442, "target": 0, "func": "static int dissect_nlm1_test_res ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n return dissect_nlm_test_res ( tvb , 0 , pinfo , tree , 1 , ( rpc_call_info_value * ) data ) ;\n }"}
{"idx": 9443, "target": 0, "func": "int ReadInt ( ArchiveHandle * AH ) {\n int res = 0 ;\n int bv , b ;\n int sign = 0 ;\n int bitShift = 0 ;\n if ( AH -> version > K_VERS_1_0 ) sign = ( * AH -> ReadBytePtr ) ( AH ) ;\n for ( b = 0 ;\n b < AH -> intSize ;\n b ++ ) {\n bv = ( * AH -> ReadBytePtr ) ( AH ) & 0xFF ;\n if ( bv != 0 ) res = res + ( bv << bitShift ) ;\n bitShift += 8 ;\n }\n if ( sign ) res = - res ;\n return res ;\n }"}
{"idx": 9444, "target": 1, "func": "static void dissect_q931_number_ie ( tvbuff_t * tvb , int offset , int len , proto_tree * tree , int hfindex , e164_info_t e164_info ) {\n guint8 octet ;\n gint number_plan ;\n if ( len == 0 ) return ;\n octet = tvb_get_guint8 ( tvb , offset ) ;\n number_plan = octet & 0x0f ;\n e164_info . nature_of_address = ( octet & 0x70 ) >> 4 ;\n proto_tree_add_uint ( tree , hf_q931_numbering_plan , tvb , offset , 1 , octet ) ;\n proto_tree_add_uint ( tree , hf_q931_number_type , tvb , offset , 1 , octet ) ;\n proto_tree_add_boolean ( tree , hf_q931_extension_ind , tvb , offset , 1 , octet ) ;\n offset += 1 ;\n len -= 1 ;\n if ( ! ( octet & Q931_IE_VL_EXTENSION ) ) {\n if ( len == 0 ) return ;\n octet = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_q931_screening_ind , tvb , offset , 1 , octet ) ;\n proto_tree_add_uint ( tree , hf_q931_presentation_ind , tvb , offset , 1 , octet ) ;\n proto_tree_add_boolean ( tree , hf_q931_extension_ind , tvb , offset , 1 , octet ) ;\n offset += 1 ;\n len -= 1 ;\n }\n if ( ! ( octet & Q931_IE_VL_EXTENSION ) ) {\n if ( len == 0 ) return ;\n proto_tree_add_item ( tree , hf_q931_extension_reason , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset += 1 ;\n len -= 1 ;\n }\n if ( len == 0 ) return ;\n proto_tree_add_item ( tree , hfindex , tvb , offset , len , ENC_ASCII | ENC_NA ) ;\n proto_item_append_text ( proto_tree_get_parent ( tree ) , \": '%s'\" , tvb_format_text ( tvb , offset , len ) ) ;\n if ( number_plan == 1 ) {\n if ( e164_info . e164_number_type != NONE ) {\n e164_info . E164_number_str = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset , len , ENC_ASCII | ENC_NA ) ;\n e164_info . E164_number_length = len ;\n dissect_e164_number ( tvb , tree , offset , len , e164_info ) ;\n }\n }\n if ( e164_info . e164_number_type == CALLING_PARTY_NUMBER && have_valid_q931_pi ) q931_pi -> calling_number = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset , len , ENC_ASCII | ENC_NA ) ;\n if ( e164_info . e164_number_type == CALLED_PARTY_NUMBER && have_valid_q931_pi ) q931_pi -> called_number = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset , len , ENC_ASCII | ENC_NA ) ;\n }"}
{"idx": 9445, "target": 0, "func": "static int do_start_slave_sql ( MYSQL * mysql_con ) {\n MYSQL_RES * slave ;\n if ( mysql_query_with_error_report ( mysql_con , & slave , \"SHOW SLAVE STATUS\" ) ) return ( 1 ) ;\n else {\n MYSQL_ROW row = mysql_fetch_row ( slave ) ;\n if ( row && row [ 11 ] ) {\n if ( ! strcmp ( row [ 11 ] , \"Yes\" ) ) {\n mysql_free_result ( slave ) ;\n return ( 0 ) ;\n }\n }\n }\n mysql_free_result ( slave ) ;\n if ( mysql_query_with_error_report ( mysql_con , 0 , \"START SLAVE\" ) ) {\n fprintf ( stderr , \"%s: Error: Unable to start slave\\n\" , my_progname_short ) ;\n return 1 ;\n }\n return ( 0 ) ;\n }"}
{"idx": 9446, "target": 0, "func": "static int mainwindow_rgrow ( MAIN_WINDOW_REC * window , int count ) {\n if ( ! try_rshrink_right ( window , count ) ) {\n if ( ! try_rshrink_left ( window , count ) ) return FALSE ;\n }\n return TRUE ;\n }"}
{"idx": 9447, "target": 0, "func": "static inline void xhci_dma_write_u32s ( XHCIState * xhci , dma_addr_t addr , uint32_t * buf , size_t len ) {\n int i ;\n uint32_t tmp [ 5 ] ;\n uint32_t n = len / sizeof ( uint32_t ) ;\n assert ( ( len % sizeof ( uint32_t ) ) == 0 ) ;\n assert ( n <= ARRAY_SIZE ( tmp ) ) ;\n for ( i = 0 ;\n i < n ;\n i ++ ) {\n tmp [ i ] = cpu_to_le32 ( buf [ i ] ) ;\n }\n pci_dma_write ( PCI_DEVICE ( xhci ) , addr , tmp , len ) ;\n }"}
{"idx": 9448, "target": 0, "func": "static int hfinfo_container_bitwidth ( const header_field_info * hfinfo ) {\n if ( ! hfinfo -> bitmask ) {\n return 0 ;\n }\n if ( hfinfo -> type == FT_BOOLEAN ) {\n return hfinfo -> display ;\n }\n return hfinfo_type_bitwidth ( hfinfo -> type ) ;\n }"}
{"idx": 9449, "target": 0, "func": "static int dissect_h225_INTEGER_0_255 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 255U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 9450, "target": 0, "func": "static int dissect_h245_QOSType ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_QOSType , QOSType_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 9451, "target": 0, "func": "int test_rshift1 ( BIO * bp ) {\n BIGNUM * a , * b , * c ;\n int i ;\n a = BN_new ( ) ;\n b = BN_new ( ) ;\n c = BN_new ( ) ;\n BN_bntest_rand ( a , 200 , 0 , 0 ) ;\n a -> neg = rand_neg ( ) ;\n for ( i = 0 ;\n i < num0 ;\n i ++ ) {\n BN_rshift1 ( b , a ) ;\n if ( bp != NULL ) {\n if ( ! results ) {\n BN_print ( bp , a ) ;\n BIO_puts ( bp , \" / 2\" ) ;\n BIO_puts ( bp , \" - \" ) ;\n }\n BN_print ( bp , b ) ;\n BIO_puts ( bp , \"\\n\" ) ;\n }\n BN_sub ( c , a , b ) ;\n BN_sub ( c , c , b ) ;\n if ( ! BN_is_zero ( c ) && ! BN_abs_is_word ( c , 1 ) ) {\n fprintf ( stderr , \"Right shift one test failed!\\n\" ) ;\n return 0 ;\n }\n BN_copy ( a , b ) ;\n }\n BN_free ( a ) ;\n BN_free ( b ) ;\n BN_free ( c ) ;\n return ( 1 ) ;\n }"}
{"idx": 9452, "target": 0, "func": "int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL ) DECLARE_PEM_rw ( PKCS7 , PKCS7 ) DECLARE_PEM_rw ( NETSCAPE_CERT_SEQUENCE , NETSCAPE_CERT_SEQUENCE ) DECLARE_PEM_rw ( PKCS8 , X509_SIG ) DECLARE_PEM_rw ( PKCS8_PRIV_KEY_INFO , PKCS8_PRIV_KEY_INFO ) # ifndef OPENSSL_NO_RSA DECLARE_PEM_rw_cb ( RSAPrivateKey , RSA ) DECLARE_PEM_rw_const ( RSAPublicKey , RSA ) DECLARE_PEM_rw ( RSA_PUBKEY , RSA ) # endif # ifndef OPENSSL_NO_DSA DECLARE_PEM_rw_cb ( DSAPrivateKey , DSA ) DECLARE_PEM_rw ( DSA_PUBKEY , DSA ) DECLARE_PEM_rw_const ( DSAparams , DSA )"}
{"idx": 9453, "target": 0, "func": "proto_item * proto_tree_add_ipv6_format ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , const struct e_in6_addr * value_ptr , const char * format , ... ) {\n proto_item * pi ;\n va_list ap ;\n pi = proto_tree_add_ipv6 ( tree , hfindex , tvb , start , length , value_ptr ) ;\n if ( pi != tree ) {\n TRY_TO_FAKE_THIS_REPR ( pi ) ;\n va_start ( ap , format ) ;\n proto_tree_set_representation ( pi , format , ap ) ;\n va_end ( ap ) ;\n }\n return pi ;\n }"}
{"idx": 9454, "target": 0, "func": "static void idct4 ( const tran_low_t * input , tran_low_t * output ) {\n tran_low_t step [ 4 ] ;\n tran_high_t temp1 , temp2 ;\n temp1 = ( input [ 0 ] + input [ 2 ] ) * cospi_16_64 ;\n temp2 = ( input [ 0 ] - input [ 2 ] ) * cospi_16_64 ;\n step [ 0 ] = dct_const_round_shift ( temp1 ) ;\n step [ 1 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = input [ 1 ] * cospi_24_64 - input [ 3 ] * cospi_8_64 ;\n temp2 = input [ 1 ] * cospi_8_64 + input [ 3 ] * cospi_24_64 ;\n step [ 2 ] = dct_const_round_shift ( temp1 ) ;\n step [ 3 ] = dct_const_round_shift ( temp2 ) ;\n output [ 0 ] = step [ 0 ] + step [ 3 ] ;\n output [ 1 ] = step [ 1 ] + step [ 2 ] ;\n output [ 2 ] = step [ 1 ] - step [ 2 ] ;\n output [ 3 ] = step [ 0 ] - step [ 3 ] ;\n }"}
{"idx": 9455, "target": 0, "func": "clump_t * clump_splay_walk_init_mid ( clump_splay_walker * sw , clump_t * cp ) {\n sw -> from = SPLAY_FROM_LEFT ;\n sw -> cp = cp ;\n sw -> end = cp ;\n if ( cp ) {\n SANITY_CHECK_MID ( cp ) ;\n }\n return cp ;\n }"}
{"idx": 9456, "target": 0, "func": "static char * alnumerize ( char * name ) {\n char * r = name ;\n char * w = name ;\n char c ;\n for ( ;\n ( c = * r ) ;\n r ++ ) {\n if ( g_ascii_isalnum ( c ) || c == '_' || c == '-' || c == '.' ) {\n * ( w ++ ) = c ;\n }\n }\n * w = '\\0' ;\n return name ;\n }"}
{"idx": 9457, "target": 0, "func": "static void e1000e_intrmgr_fire_all_timers ( E1000ECore * core ) {\n int i ;\n uint32_t val = e1000e_intmgr_collect_delayed_causes ( core ) ;\n trace_e1000e_irq_adding_delayed_causes ( val , core -> mac [ ICR ] ) ;\n core -> mac [ ICR ] |= val ;\n if ( core -> itr . running ) {\n timer_del ( core -> itr . timer ) ;\n e1000e_intrmgr_on_throttling_timer ( & core -> itr ) ;\n }\n for ( i = 0 ;\n i < E1000E_MSIX_VEC_NUM ;\n i ++ ) {\n if ( core -> eitr [ i ] . running ) {\n timer_del ( core -> eitr [ i ] . timer ) ;\n e1000e_intrmgr_on_msix_throttling_timer ( & core -> eitr [ i ] ) ;\n }\n }\n }"}
{"idx": 9458, "target": 0, "func": "static void compress_task_thread_func ( GTask * task , gpointer source_object , gpointer task_data , GCancellable * cancellable ) {\n CompressJob * compress_job = task_data ;\n SourceInfo source_info ;\n g_autoptr ( AutoarCompressor ) compressor = NULL ;\n g_timer_start ( compress_job -> common . time ) ;\n nautilus_progress_info_start ( compress_job -> common . progress ) ;\n scan_sources ( compress_job -> source_files , & source_info , ( CommonJob * ) compress_job , OP_KIND_COMPRESS ) ;\n compress_job -> total_files = source_info . num_files ;\n compress_job -> total_size = source_info . num_bytes ;\n compressor = autoar_compressor_new ( compress_job -> source_files , compress_job -> output_file , compress_job -> format , compress_job -> filter , FALSE ) ;\n autoar_compressor_set_output_is_dest ( compressor , TRUE ) ;\n autoar_compressor_set_notify_interval ( compressor , PROGRESS_NOTIFY_INTERVAL ) ;\n g_signal_connect ( compressor , \"progress\" , G_CALLBACK ( compress_job_on_progress ) , compress_job ) ;\n g_signal_connect ( compressor , \"error\" , G_CALLBACK ( compress_job_on_error ) , compress_job ) ;\n g_signal_connect ( compressor , \"completed\" , G_CALLBACK ( compress_job_on_completed ) , compress_job ) ;\n autoar_compressor_start ( compressor , compress_job -> common . cancellable ) ;\n compress_job -> success = g_file_query_exists ( compress_job -> output_file , NULL ) ;\n if ( compress_job -> common . undo_info != NULL && ! compress_job -> success ) {\n g_clear_object ( & compress_job -> common . undo_info ) ;\n }\n }"}
{"idx": 9459, "target": 0, "func": "static int ac3_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n AC3DecodeContext * s = avctx -> priv_data ;\n int blk , ch , err , ret ;\n const uint8_t * channel_map ;\n const float * output [ AC3_MAX_CHANNELS ] ;\n if ( buf_size >= 2 && AV_RB16 ( buf ) == 0x770B ) {\n int cnt = FFMIN ( buf_size , AC3_FRAME_BUFFER_SIZE ) >> 1 ;\n s -> dsp . bswap16_buf ( ( uint16_t * ) s -> input_buffer , ( const uint16_t * ) buf , cnt ) ;\n }\n else memcpy ( s -> input_buffer , buf , FFMIN ( buf_size , AC3_FRAME_BUFFER_SIZE ) ) ;\n buf = s -> input_buffer ;\n init_get_bits ( & s -> gbc , buf , buf_size * 8 ) ;\n err = parse_frame_header ( s ) ;\n if ( err ) {\n switch ( err ) {\n case AAC_AC3_PARSE_ERROR_SYNC : av_log ( avctx , AV_LOG_ERROR , \"frame sync error\\n\" ) ;\n return - 1 ;\n case AAC_AC3_PARSE_ERROR_BSID : av_log ( avctx , AV_LOG_ERROR , \"invalid bitstream id\\n\" ) ;\n break ;\n case AAC_AC3_PARSE_ERROR_SAMPLE_RATE : av_log ( avctx , AV_LOG_ERROR , \"invalid sample rate\\n\" ) ;\n break ;\n case AAC_AC3_PARSE_ERROR_FRAME_SIZE : av_log ( avctx , AV_LOG_ERROR , \"invalid frame size\\n\" ) ;\n break ;\n case AAC_AC3_PARSE_ERROR_FRAME_TYPE : if ( s -> frame_type == EAC3_FRAME_TYPE_DEPENDENT || s -> substreamid ) {\n av_log ( avctx , AV_LOG_ERROR , \"unsupported frame type : \" \"skipping frame\\n\" ) ;\n * got_frame_ptr = 0 ;\n return s -> frame_size ;\n }\n else {\n av_log ( avctx , AV_LOG_ERROR , \"invalid frame type\\n\" ) ;\n }\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"invalid header\\n\" ) ;\n break ;\n }\n }\n else {\n if ( s -> frame_size > buf_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"incomplete frame\\n\" ) ;\n err = AAC_AC3_PARSE_ERROR_FRAME_SIZE ;\n }\n else if ( avctx -> err_recognition & AV_EF_CRCCHECK ) {\n if ( av_crc ( av_crc_get_table ( AV_CRC_16_ANSI ) , 0 , & buf [ 2 ] , s -> frame_size - 2 ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"frame CRC mismatch\\n\" ) ;\n err = AAC_AC3_PARSE_ERROR_CRC ;\n }\n }\n }\n if ( ! err ) {\n avctx -> sample_rate = s -> sample_rate ;\n avctx -> bit_rate = s -> bit_rate ;\n }\n if ( ! err || ( s -> channels && s -> out_channels != s -> channels ) ) {\n s -> out_channels = s -> channels ;\n s -> output_mode = s -> channel_mode ;\n if ( s -> lfe_on ) s -> output_mode |= AC3_OUTPUT_LFEON ;\n if ( avctx -> request_channels > 0 && avctx -> request_channels <= 2 && avctx -> request_channels < s -> channels ) {\n s -> out_channels = avctx -> request_channels ;\n s -> output_mode = avctx -> request_channels == 1 ? AC3_CHMODE_MONO : AC3_CHMODE_STEREO ;\n s -> channel_layout = avpriv_ac3_channel_layout_tab [ s -> output_mode ] ;\n }\n avctx -> channels = s -> out_channels ;\n avctx -> channel_layout = s -> channel_layout ;\n if ( s -> channels != s -> out_channels && ! ( ( s -> output_mode & AC3_OUTPUT_LFEON ) && s -> fbw_channels == s -> out_channels ) ) {\n set_downmix_coeffs ( s ) ;\n }\n }\n else if ( ! s -> channels ) {\n av_log ( avctx , AV_LOG_ERROR , \"unable to determine channel mode\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n avctx -> channels = s -> out_channels ;\n avctx -> audio_service_type = s -> bitstream_mode ;\n if ( s -> bitstream_mode == 0x7 && s -> channels > 1 ) avctx -> audio_service_type = AV_AUDIO_SERVICE_TYPE_KARAOKE ;\n frame -> nb_samples = s -> num_blocks * 256 ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n channel_map = ff_ac3_dec_channel_map [ s -> output_mode & ~ AC3_OUTPUT_LFEON ] [ s -> lfe_on ] ;\n for ( ch = 0 ;\n ch < s -> channels ;\n ch ++ ) {\n if ( ch < s -> out_channels ) s -> outptr [ channel_map [ ch ] ] = ( float * ) frame -> data [ ch ] ;\n else s -> outptr [ ch ] = s -> output [ ch ] ;\n output [ ch ] = s -> output [ ch ] ;\n }\n for ( blk = 0 ;\n blk < s -> num_blocks ;\n blk ++ ) {\n if ( ! err && decode_audio_block ( s , blk ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"error decoding the audio block\\n\" ) ;\n err = 1 ;\n }\n if ( err ) for ( ch = 0 ;\n ch < s -> out_channels ;\n ch ++ ) memcpy ( s -> outptr [ channel_map [ ch ] ] , output [ ch ] , 1024 ) ;\n for ( ch = 0 ;\n ch < s -> out_channels ;\n ch ++ ) {\n output [ ch ] = s -> outptr [ channel_map [ ch ] ] ;\n s -> outptr [ channel_map [ ch ] ] += AC3_BLOCK_SIZE ;\n }\n }\n for ( ch = 0 ;\n ch < s -> out_channels ;\n ch ++ ) memcpy ( s -> output [ ch ] , output [ ch ] , 1024 ) ;\n * got_frame_ptr = 1 ;\n return FFMIN ( buf_size , s -> frame_size ) ;\n }"}
{"idx": 9460, "target": 0, "func": "TSVConn TSHttpConnectTransparent ( sockaddr const * client_addr , sockaddr const * server_addr ) {\n sdk_assert ( ats_is_ip ( client_addr ) ) ;\n sdk_assert ( ats_is_ip ( server_addr ) ) ;\n sdk_assert ( ! ats_is_ip_any ( client_addr ) ) ;\n sdk_assert ( ats_ip_port_cast ( client_addr ) ) ;\n sdk_assert ( ! ats_is_ip_any ( server_addr ) ) ;\n sdk_assert ( ats_ip_port_cast ( server_addr ) ) ;\n if ( plugin_http_transparent_accept ) {\n PluginVCCore * new_pvc = PluginVCCore : : alloc ( plugin_http_transparent_accept ) ;\n new_pvc -> set_active_addr ( client_addr ) ;\n new_pvc -> set_passive_addr ( server_addr ) ;\n new_pvc -> set_transparent ( true , true ) ;\n PluginVC * return_vc = new_pvc -> connect ( ) ;\n if ( return_vc != nullptr ) {\n PluginVC * other_side = return_vc -> get_other_side ( ) ;\n if ( other_side != nullptr ) {\n other_side -> set_is_internal_request ( true ) ;\n }\n }\n return reinterpret_cast < TSVConn > ( return_vc ) ;\n }\n return nullptr ;\n }"}
{"idx": 9461, "target": 0, "func": "static void curses_connection_data_join ( void ) {\n char src [ MAX_ASCII_ADDR_LEN ] ;\n char dst [ MAX_ASCII_ADDR_LEN ] ;\n char title [ 64 ] ;\n DEBUG_MSG ( \"curses_connection_data_join\" ) ;\n if ( wdg_conndata ) {\n struct conn_object * tmp_conn = curr_conn ;\n wdg_destroy_object ( & wdg_conndata ) ;\n curses_destroy_conndata ( ) ;\n curr_conn = tmp_conn ;\n }\n curr_conn -> flags |= CONN_VIEWING ;\n wdg_create_object ( & wdg_conndata , WDG_COMPOUND , WDG_OBJ_WANT_FOCUS ) ;\n wdg_set_color ( wdg_conndata , WDG_COLOR_SCREEN , EC_COLOR ) ;\n wdg_set_color ( wdg_conndata , WDG_COLOR_WINDOW , EC_COLOR ) ;\n wdg_set_color ( wdg_conndata , WDG_COLOR_FOCUS , EC_COLOR_FOCUS ) ;\n wdg_set_color ( wdg_conndata , WDG_COLOR_TITLE , EC_COLOR_TITLE ) ;\n wdg_set_title ( wdg_conndata , \"Connection data\" , WDG_ALIGN_LEFT ) ;\n wdg_set_size ( wdg_conndata , 1 , 2 , - 1 , SYSMSG_WIN_SIZE - 1 ) ;\n wdg_create_object ( & wdg_join , WDG_SCROLL , 0 ) ;\n snprintf ( title , 64 , \"%s:%d - %s:%d\" , ip_addr_ntoa ( & curr_conn -> L3_addr1 , src ) , ntohs ( curr_conn -> L4_addr1 ) , ip_addr_ntoa ( & curr_conn -> L3_addr2 , dst ) , ntohs ( curr_conn -> L4_addr2 ) ) ;\n wdg_set_title ( wdg_join , title , WDG_ALIGN_LEFT ) ;\n wdg_set_color ( wdg_join , WDG_COLOR_TITLE , EC_COLOR_TITLE ) ;\n wdg_set_color ( wdg_join , WDG_COLOR_FOCUS , EC_COLOR_FOCUS ) ;\n wdg_set_size ( wdg_join , 2 , 3 , - 2 , SYSMSG_WIN_SIZE - 2 ) ;\n wdg_scroll_set_lines ( wdg_join , GBL_CONF -> connection_buffer / ( current_screen . cols / 2 ) ) ;\n wdg_compound_add ( wdg_conndata , wdg_join ) ;\n wdg_add_destroy_key ( wdg_conndata , CTRL ( 'Q' ) , curses_destroy_conndata ) ;\n wdg_compound_add_callback ( wdg_conndata , 'j' , curses_connection_data_split ) ;\n wdg_compound_add_callback ( wdg_conndata , 'k' , curses_connection_kill_wrapper ) ;\n wdg_compound_add_callback ( wdg_conndata , ' ' , curses_connection_data_help ) ;\n wdg_draw_object ( wdg_conndata ) ;\n wdg_set_focus ( wdg_conndata ) ;\n connbuf_print ( & curr_conn -> data , join_print ) ;\n conntrack_hook_conn_add ( curr_conn , join_print_po ) ;\n }"}
{"idx": 9462, "target": 0, "func": "static void U_CALLCONV T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n const unsigned char * mySource = ( unsigned char * ) args -> source ;\n UChar * myTarget = args -> target ;\n int32_t * myOffsets = args -> offsets ;\n const unsigned char * sourceLimit = ( unsigned char * ) args -> sourceLimit ;\n const UChar * targetLimit = args -> targetLimit ;\n unsigned char * toUBytes = args -> converter -> toUBytes ;\n uint32_t ch , i ;\n int32_t offsetNum = 0 ;\n if ( args -> converter -> toUnicodeStatus && myTarget < targetLimit ) {\n i = args -> converter -> toULength ;\n args -> converter -> toULength = 0 ;\n ch = args -> converter -> toUnicodeStatus - 1 ;\n args -> converter -> toUnicodeStatus = 0 ;\n goto morebytes ;\n }\n while ( mySource < sourceLimit && myTarget < targetLimit ) {\n i = 0 ;\n ch = 0 ;\n morebytes : while ( i < sizeof ( uint32_t ) ) {\n if ( mySource < sourceLimit ) {\n ch |= ( ( uint8_t ) ( * mySource ) ) << ( i * 8 ) ;\n toUBytes [ i ++ ] = ( char ) * ( mySource ++ ) ;\n }\n else {\n args -> converter -> toUnicodeStatus = ch + 1 ;\n args -> converter -> toULength = ( int8_t ) i ;\n goto donefornow ;\n }\n }\n if ( ch <= MAXIMUM_UTF && ! U_IS_SURROGATE ( ch ) ) {\n if ( ch <= MAXIMUM_UCS2 ) {\n * ( myTarget ++ ) = ( UChar ) ch ;\n * ( myOffsets ++ ) = offsetNum ;\n }\n else {\n * ( myTarget ++ ) = U16_LEAD ( ch ) ;\n * ( myOffsets ++ ) = offsetNum ;\n ch = U16_TRAIL ( ch ) ;\n if ( myTarget < targetLimit ) {\n * ( myTarget ++ ) = ( UChar ) ch ;\n * ( myOffsets ++ ) = offsetNum ;\n }\n else {\n args -> converter -> UCharErrorBuffer [ 0 ] = ( UChar ) ch ;\n args -> converter -> UCharErrorBufferLength = 1 ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n }\n else {\n args -> converter -> toULength = ( int8_t ) i ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n offsetNum += i ;\n }\n donefornow : if ( mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS ( * err ) ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n args -> target = myTarget ;\n args -> source = ( const char * ) mySource ;\n args -> offsets = myOffsets ;\n }"}
{"idx": 9463, "target": 0, "func": "int qemuMonitorTextGetBlockExtent ( qemuMonitorPtr mon ATTRIBUTE_UNUSED , const char * dev_name ATTRIBUTE_UNUSED , unsigned long long * extent ATTRIBUTE_UNUSED ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"unable to query block extent with this QEMU\" ) ) ;\n return - 1 ;\n }"}
{"idx": 9464, "target": 0, "func": "static void sig_server_reconnect_not_found ( const char * tag ) {\n g_return_if_fail ( tag != NULL ) ;\n printformat ( NULL , NULL , MSGLEVEL_CLIENTNOTICE , TXT_RECONNECT_NOT_FOUND , tag ) ;\n }"}
{"idx": 9465, "target": 0, "func": "static void event_loopexit_cb ( int fd , short what , void * arg ) {\n struct event_base * base = arg ;\n base -> event_gotterm = 1 ;\n }"}
{"idx": 9466, "target": 0, "func": "static int matroska_merge_packets ( AVPacket * out , AVPacket * in ) {\n int old_size = out -> size ;\n int ret = av_grow_packet ( out , in -> size ) ;\n if ( ret < 0 ) return ret ;\n memcpy ( out -> data + old_size , in -> data , in -> size ) ;\n av_free_packet ( in ) ;\n av_free ( in ) ;\n return 0 ;\n }"}
{"idx": 9467, "target": 0, "func": "char * curl_unescape ( const char * string , int length ) {\n return curl_easy_unescape ( NULL , string , length , NULL ) ;\n }"}
{"idx": 9468, "target": 0, "func": "static void saturate_output_float ( COOKContext * q , float * out ) {\n q -> dsp . vector_clipf ( out , q -> mono_mdct_output + q -> samples_per_channel , - 1.0f , 1.0f , FFALIGN ( q -> samples_per_channel , 8 ) ) ;\n }"}
{"idx": 9469, "target": 0, "func": "static void rsvp_cleanup_protocol ( void ) {\n g_hash_table_destroy ( rsvp_request_hash ) ;\n }"}
{"idx": 9470, "target": 0, "func": "void mbfl_buffer_converter_delete ( mbfl_buffer_converter * convd ) {\n if ( convd != NULL ) {\n if ( convd -> filter1 ) {\n mbfl_convert_filter_delete ( convd -> filter1 ) ;\n }\n if ( convd -> filter2 ) {\n mbfl_convert_filter_delete ( convd -> filter2 ) ;\n }\n mbfl_memory_device_clear ( & convd -> device ) ;\n mbfl_free ( ( void * ) convd ) ;\n }\n }"}
{"idx": 9471, "target": 0, "func": "static PyObject * string_isalpha ( PyStringObject * self ) {\n register const unsigned char * p = ( unsigned char * ) PyString_AS_STRING ( self ) ;\n register const unsigned char * e ;\n if ( PyString_GET_SIZE ( self ) == 1 && isalpha ( * p ) ) return PyBool_FromLong ( 1 ) ;\n if ( PyString_GET_SIZE ( self ) == 0 ) return PyBool_FromLong ( 0 ) ;\n e = p + PyString_GET_SIZE ( self ) ;\n for ( ;\n p < e ;\n p ++ ) {\n if ( ! isalpha ( * p ) ) return PyBool_FromLong ( 0 ) ;\n }\n return PyBool_FromLong ( 1 ) ;\n }"}
{"idx": 9472, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( MimeHandlerViewTest , Iframe ) {\n RunTest ( \"test_iframe.html\" ) ;\n }"}
{"idx": 9473, "target": 0, "func": "void fz_drop_colorspace_store_key ( fz_context * ctx , fz_colorspace * cs ) {\n fz_drop_key_storable_key ( ctx , & cs -> key_storable ) ;\n }"}
{"idx": 9474, "target": 0, "func": "static void decode_pitch_vector ( AMRWBContext * ctx , const AMRWBSubFrame * amr_subframe , const int subframe ) {\n int pitch_lag_int , pitch_lag_frac ;\n int i ;\n float * exc = ctx -> excitation ;\n enum Mode mode = ctx -> fr_cur_mode ;\n if ( mode <= MODE_8k85 ) {\n decode_pitch_lag_low ( & pitch_lag_int , & pitch_lag_frac , amr_subframe -> adap , & ctx -> base_pitch_lag , subframe , mode ) ;\n }\n else decode_pitch_lag_high ( & pitch_lag_int , & pitch_lag_frac , amr_subframe -> adap , & ctx -> base_pitch_lag , subframe ) ;\n ctx -> pitch_lag_int = pitch_lag_int ;\n pitch_lag_int += pitch_lag_frac > 0 ;\n ff_acelp_interpolatef ( exc , exc + 1 - pitch_lag_int , ac_inter , 4 , pitch_lag_frac + ( pitch_lag_frac > 0 ? 0 : 4 ) , LP_ORDER , AMRWB_SFR_SIZE + 1 ) ;\n if ( amr_subframe -> ltp ) {\n memcpy ( ctx -> pitch_vector , exc , AMRWB_SFR_SIZE * sizeof ( float ) ) ;\n }\n else {\n for ( i = 0 ;\n i < AMRWB_SFR_SIZE ;\n i ++ ) ctx -> pitch_vector [ i ] = 0.18 * exc [ i - 1 ] + 0.64 * exc [ i ] + 0.18 * exc [ i + 1 ] ;\n memcpy ( exc , ctx -> pitch_vector , AMRWB_SFR_SIZE * sizeof ( float ) ) ;\n }\n }"}
{"idx": 9475, "target": 0, "func": "extern int name ( int , locale_t ) __THROW __exctype_l ( isalnum_l ) ;\n __exctype_l ( isalpha_l ) ;\n __exctype_l ( iscntrl_l ) ;\n __exctype_l ( isdigit_l ) ;\n __exctype_l ( islower_l ) ;\n __exctype_l ( isgraph_l ) ;\n __exctype_l ( isprint_l ) ;\n __exctype_l ( ispunct_l ) ;\n __exctype_l ( isspace_l ) ;\n __exctype_l ( isupper_l ) ;\n __exctype_l ( isxdigit_l ) ;\n __exctype_l ( isblank_l )"}
{"idx": 9476, "target": 0, "func": "static const uint8_t * decode_tiles ( VP9Decoder * pbi , const uint8_t * data , const uint8_t * data_end ) {\n VP9_COMMON * const cm = & pbi -> common ;\n const VP9WorkerInterface * const winterface = vp9_get_worker_interface ( ) ;\n const int aligned_cols = mi_cols_aligned_to_sb ( cm -> mi_cols ) ;\n const int tile_cols = 1 << cm -> log2_tile_cols ;\n const int tile_rows = 1 << cm -> log2_tile_rows ;\n TileBuffer tile_buffers [ 4 ] [ 1 << 6 ] ;\n int tile_row , tile_col ;\n int mi_row , mi_col ;\n TileData * tile_data = NULL ;\n if ( cm -> lf . filter_level && pbi -> lf_worker . data1 == NULL ) {\n CHECK_MEM_ERROR ( cm , pbi -> lf_worker . data1 , vpx_memalign ( 32 , sizeof ( LFWorkerData ) ) ) ;\n pbi -> lf_worker . hook = ( VP9WorkerHook ) vp9_loop_filter_worker ;\n if ( pbi -> max_threads > 1 && ! winterface -> reset ( & pbi -> lf_worker ) ) {\n vpx_internal_error ( & cm -> error , VPX_CODEC_ERROR , \"Loop filter thread creation failed\" ) ;\n }\n }\n if ( cm -> lf . filter_level ) {\n LFWorkerData * const lf_data = ( LFWorkerData * ) pbi -> lf_worker . data1 ;\n lf_data -> frame_buffer = get_frame_new_buffer ( cm ) ;\n lf_data -> cm = cm ;\n vp9_copy ( lf_data -> planes , pbi -> mb . plane ) ;\n lf_data -> stop = 0 ;\n lf_data -> y_only = 0 ;\n vp9_loop_filter_frame_init ( cm , cm -> lf . filter_level ) ;\n }\n assert ( tile_rows <= 4 ) ;\n assert ( tile_cols <= ( 1 << 6 ) ) ;\n vpx_memset ( cm -> above_context , 0 , sizeof ( * cm -> above_context ) * MAX_MB_PLANE * 2 * aligned_cols ) ;\n vpx_memset ( cm -> above_seg_context , 0 , sizeof ( * cm -> above_seg_context ) * aligned_cols ) ;\n get_tile_buffers ( pbi , data , data_end , tile_cols , tile_rows , tile_buffers ) ;\n if ( pbi -> tile_data == NULL || ( tile_cols * tile_rows ) != pbi -> total_tiles ) {\n vpx_free ( pbi -> tile_data ) ;\n CHECK_MEM_ERROR ( cm , pbi -> tile_data , vpx_memalign ( 32 , tile_cols * tile_rows * ( sizeof ( * pbi -> tile_data ) ) ) ) ;\n pbi -> total_tiles = tile_rows * tile_cols ;\n }\n for ( tile_row = 0 ;\n tile_row < tile_rows ;\n ++ tile_row ) {\n for ( tile_col = 0 ;\n tile_col < tile_cols ;\n ++ tile_col ) {\n TileInfo tile ;\n const TileBuffer * const buf = & tile_buffers [ tile_row ] [ tile_col ] ;\n tile_data = pbi -> tile_data + tile_cols * tile_row + tile_col ;\n tile_data -> cm = cm ;\n tile_data -> xd = pbi -> mb ;\n tile_data -> xd . corrupted = 0 ;\n vp9_tile_init ( & tile , tile_data -> cm , tile_row , tile_col ) ;\n setup_token_decoder ( buf -> data , data_end , buf -> size , & cm -> error , & tile_data -> bit_reader , pbi -> decrypt_cb , pbi -> decrypt_state ) ;\n init_macroblockd ( cm , & tile_data -> xd ) ;\n vp9_zero ( tile_data -> xd . dqcoeff ) ;\n }\n }\n for ( tile_row = 0 ;\n tile_row < tile_rows ;\n ++ tile_row ) {\n TileInfo tile ;\n vp9_tile_set_row ( & tile , cm , tile_row ) ;\n for ( mi_row = tile . mi_row_start ;\n mi_row < tile . mi_row_end ;\n mi_row += MI_BLOCK_SIZE ) {\n for ( tile_col = 0 ;\n tile_col < tile_cols ;\n ++ tile_col ) {\n const int col = pbi -> inv_tile_order ? tile_cols - tile_col - 1 : tile_col ;\n tile_data = pbi -> tile_data + tile_cols * tile_row + col ;\n vp9_tile_set_col ( & tile , tile_data -> cm , col ) ;\n vp9_zero ( tile_data -> xd . left_context ) ;\n vp9_zero ( tile_data -> xd . left_seg_context ) ;\n for ( mi_col = tile . mi_col_start ;\n mi_col < tile . mi_col_end ;\n mi_col += MI_BLOCK_SIZE ) {\n decode_partition ( tile_data -> cm , & tile_data -> xd , & tile , mi_row , mi_col , & tile_data -> bit_reader , BLOCK_64X64 ) ;\n }\n pbi -> mb . corrupted |= tile_data -> xd . corrupted ;\n }\n if ( cm -> lf . filter_level ) {\n const int lf_start = mi_row - MI_BLOCK_SIZE ;\n LFWorkerData * const lf_data = ( LFWorkerData * ) pbi -> lf_worker . data1 ;\n if ( lf_start < 0 ) continue ;\n if ( mi_row + MI_BLOCK_SIZE >= cm -> mi_rows ) continue ;\n winterface -> sync ( & pbi -> lf_worker ) ;\n lf_data -> start = lf_start ;\n lf_data -> stop = mi_row ;\n if ( pbi -> max_threads > 1 ) {\n winterface -> launch ( & pbi -> lf_worker ) ;\n }\n else {\n winterface -> execute ( & pbi -> lf_worker ) ;\n }\n }\n }\n }\n if ( cm -> lf . filter_level ) {\n LFWorkerData * const lf_data = ( LFWorkerData * ) pbi -> lf_worker . data1 ;\n winterface -> sync ( & pbi -> lf_worker ) ;\n lf_data -> start = lf_data -> stop ;\n lf_data -> stop = cm -> mi_rows ;\n winterface -> execute ( & pbi -> lf_worker ) ;\n }\n tile_data = pbi -> tile_data + tile_cols * tile_rows - 1 ;\n return vp9_reader_find_end ( & tile_data -> bit_reader ) ;\n }"}
{"idx": 9477, "target": 0, "func": "static void virLogOutputToFd ( virLogSourcePtr source ATTRIBUTE_UNUSED , virLogPriority priority ATTRIBUTE_UNUSED , const char * filename ATTRIBUTE_UNUSED , int linenr ATTRIBUTE_UNUSED , const char * funcname ATTRIBUTE_UNUSED , const char * timestamp , virLogMetadataPtr metadata ATTRIBUTE_UNUSED , unsigned int flags , const char * rawstr ATTRIBUTE_UNUSED , const char * str , void * data ) {\n int fd = ( intptr_t ) data ;\n char * msg ;\n if ( fd < 0 ) return ;\n if ( virAsprintfQuiet ( & msg , \"%s: %s\" , timestamp , str ) < 0 ) return ;\n ignore_value ( safewrite ( fd , msg , strlen ( msg ) ) ) ;\n VIR_FREE ( msg ) ;\n if ( flags & VIR_LOG_STACK_TRACE ) virLogStackTraceToFd ( fd ) ;\n }"}
{"idx": 9478, "target": 0, "func": "const char * event_get_version ( void ) {\n return ( VERSION ) ;\n }"}
{"idx": 9479, "target": 1, "func": "static int g723_1_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n G723_1_Context * p = avctx -> priv_data ;\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n int dec_mode = buf [ 0 ] & 3 ;\n PPFParam ppf [ SUBFRAMES ] ;\n int16_t cur_lsp [ LPC_ORDER ] ;\n int16_t lpc [ SUBFRAMES * LPC_ORDER ] ;\n int16_t acb_vector [ SUBFRAME_LEN ] ;\n int16_t * out ;\n int bad_frame = 0 , i , j , ret ;\n int16_t * audio = p -> audio ;\n if ( buf_size < frame_size [ dec_mode ] ) {\n if ( buf_size ) av_log ( avctx , AV_LOG_WARNING , \"Expected %d bytes, got %d - skipping packet\\n\" , frame_size [ dec_mode ] , buf_size ) ;\n * got_frame_ptr = 0 ;\n return buf_size ;\n }\n if ( unpack_bitstream ( p , buf , buf_size ) < 0 ) {\n bad_frame = 1 ;\n if ( p -> past_frame_type == ACTIVE_FRAME ) p -> cur_frame_type = ACTIVE_FRAME ;\n else p -> cur_frame_type = UNTRANSMITTED_FRAME ;\n }\n frame -> nb_samples = FRAME_LEN ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n out = ( int16_t * ) frame -> data [ 0 ] ;\n if ( p -> cur_frame_type == ACTIVE_FRAME ) {\n if ( ! bad_frame ) p -> erased_frames = 0 ;\n else if ( p -> erased_frames != 3 ) p -> erased_frames ++ ;\n inverse_quant ( cur_lsp , p -> prev_lsp , p -> lsp_index , bad_frame ) ;\n lsp_interpolate ( lpc , cur_lsp , p -> prev_lsp ) ;\n memcpy ( p -> prev_lsp , cur_lsp , LPC_ORDER * sizeof ( * p -> prev_lsp ) ) ;\n memcpy ( p -> excitation , p -> prev_excitation , PITCH_MAX * sizeof ( * p -> excitation ) ) ;\n if ( ! p -> erased_frames ) {\n int16_t * vector_ptr = p -> excitation + PITCH_MAX ;\n p -> interp_gain = fixed_cb_gain [ ( p -> subframe [ 2 ] . amp_index + p -> subframe [ 3 ] . amp_index ) >> 1 ] ;\n for ( i = 0 ;\n i < SUBFRAMES ;\n i ++ ) {\n gen_fcb_excitation ( vector_ptr , & p -> subframe [ i ] , p -> cur_rate , p -> pitch_lag [ i >> 1 ] , i ) ;\n gen_acb_excitation ( acb_vector , & p -> excitation [ SUBFRAME_LEN * i ] , p -> pitch_lag [ i >> 1 ] , & p -> subframe [ i ] , p -> cur_rate ) ;\n for ( j = 0 ;\n j < SUBFRAME_LEN ;\n j ++ ) {\n int v = av_clip_int16 ( vector_ptr [ j ] << 1 ) ;\n vector_ptr [ j ] = av_clip_int16 ( v + acb_vector [ j ] ) ;\n }\n vector_ptr += SUBFRAME_LEN ;\n }\n vector_ptr = p -> excitation + PITCH_MAX ;\n p -> interp_index = comp_interp_index ( p , p -> pitch_lag [ 1 ] , & p -> sid_gain , & p -> cur_gain ) ;\n if ( p -> postfilter ) {\n i = PITCH_MAX ;\n for ( j = 0 ;\n j < SUBFRAMES ;\n i += SUBFRAME_LEN , j ++ ) comp_ppf_coeff ( p , i , p -> pitch_lag [ j >> 1 ] , ppf + j , p -> cur_rate ) ;\n for ( i = 0 , j = 0 ;\n j < SUBFRAMES ;\n i += SUBFRAME_LEN , j ++ ) ff_acelp_weighted_vector_sum ( p -> audio + LPC_ORDER + i , vector_ptr + i , vector_ptr + i + ppf [ j ] . index , ppf [ j ] . sc_gain , ppf [ j ] . opt_gain , 1 << 14 , 15 , SUBFRAME_LEN ) ;\n }\n else {\n audio = vector_ptr - LPC_ORDER ;\n }\n memcpy ( p -> prev_excitation , p -> excitation + FRAME_LEN , PITCH_MAX * sizeof ( * p -> excitation ) ) ;\n }\n else {\n p -> interp_gain = ( p -> interp_gain * 3 + 2 ) >> 2 ;\n if ( p -> erased_frames == 3 ) {\n memset ( p -> excitation , 0 , ( FRAME_LEN + PITCH_MAX ) * sizeof ( * p -> excitation ) ) ;\n memset ( p -> prev_excitation , 0 , PITCH_MAX * sizeof ( * p -> excitation ) ) ;\n memset ( frame -> data [ 0 ] , 0 , ( FRAME_LEN + LPC_ORDER ) * sizeof ( int16_t ) ) ;\n }\n else {\n int16_t * buf = p -> audio + LPC_ORDER ;\n residual_interp ( p -> excitation , buf , p -> interp_index , p -> interp_gain , & p -> random_seed ) ;\n memcpy ( p -> prev_excitation , buf + ( FRAME_LEN - PITCH_MAX ) , PITCH_MAX * sizeof ( * p -> excitation ) ) ;\n }\n }\n p -> cng_random_seed = CNG_RANDOM_SEED ;\n }\n else {\n if ( p -> cur_frame_type == SID_FRAME ) {\n p -> sid_gain = sid_gain_to_lsp_index ( p -> subframe [ 0 ] . amp_index ) ;\n inverse_quant ( p -> sid_lsp , p -> prev_lsp , p -> lsp_index , 0 ) ;\n }\n else if ( p -> past_frame_type == ACTIVE_FRAME ) {\n p -> sid_gain = estimate_sid_gain ( p ) ;\n }\n if ( p -> past_frame_type == ACTIVE_FRAME ) p -> cur_gain = p -> sid_gain ;\n else p -> cur_gain = ( p -> cur_gain * 7 + p -> sid_gain ) >> 3 ;\n generate_noise ( p ) ;\n lsp_interpolate ( lpc , p -> sid_lsp , p -> prev_lsp ) ;\n memcpy ( p -> prev_lsp , p -> sid_lsp , LPC_ORDER * sizeof ( * p -> prev_lsp ) ) ;\n }\n p -> past_frame_type = p -> cur_frame_type ;\n memcpy ( p -> audio , p -> synth_mem , LPC_ORDER * sizeof ( * p -> audio ) ) ;\n for ( i = LPC_ORDER , j = 0 ;\n j < SUBFRAMES ;\n i += SUBFRAME_LEN , j ++ ) ff_celp_lp_synthesis_filter ( p -> audio + i , & lpc [ j * LPC_ORDER ] , audio + i , SUBFRAME_LEN , LPC_ORDER , 0 , 1 , 1 << 12 ) ;\n memcpy ( p -> synth_mem , p -> audio + FRAME_LEN , LPC_ORDER * sizeof ( * p -> audio ) ) ;\n if ( p -> postfilter ) {\n formant_postfilter ( p , lpc , p -> audio , out ) ;\n }\n else {\n for ( i = 0 ;\n i < FRAME_LEN ;\n i ++ ) out [ i ] = av_clip_int16 ( p -> audio [ LPC_ORDER + i ] << 1 ) ;\n }\n * got_frame_ptr = 1 ;\n return frame_size [ dec_mode ] ;\n }"}
{"idx": 9480, "target": 0, "func": "static void parse_content_type ( struct attachment_istream * astream , const struct message_header_line * hdr ) {\n struct rfc822_parser_context parser ;\n string_t * content_type ;\n if ( astream -> part . content_type != NULL ) return ;\n rfc822_parser_init ( & parser , hdr -> full_value , hdr -> full_value_len , NULL ) ;\n rfc822_skip_lwsp ( & parser ) ;\n T_BEGIN {\n content_type = t_str_new ( 64 ) ;\n ( void ) rfc822_parse_content_type ( & parser , content_type ) ;\n astream -> part . content_type = i_strdup ( str_c ( content_type ) ) ;\n }\n T_END ;\n rfc822_parser_deinit ( & parser ) ;\n }"}
{"idx": 9481, "target": 0, "func": "int SDK_RPRINT ( RegressionTest * t , const char * api_name , const char * testcase_name , int status , const char * err_details_format , ... ) {\n int l ;\n char buffer [ 8192 ] ;\n char format2 [ 8192 ] ;\n snprintf ( format2 , sizeof ( format2 ) , \"[%s] %s : [%s] <<%s>> {\n %s }\n\\n\" , t -> name , api_name , testcase_name , status == TC_PASS ? \"PASS\" : \"FAIL\" , err_details_format ) ;\n va_list ap ;\n va_start ( ap , err_details_format ) ;\n l = ink_bvsprintf ( buffer , format2 , ap ) ;\n va_end ( ap ) ;\n fputs ( buffer , stderr ) ;\n return ( l ) ;\n }"}
{"idx": 9482, "target": 0, "func": "static int tm2_read_stream ( TM2Context * ctx , const uint8_t * buf , int stream_id , int buf_size ) {\n int i , ret ;\n int skip = 0 ;\n int len , toks , pos ;\n TM2Codes codes ;\n GetByteContext gb ;\n bytestream2_init ( & gb , buf , buf_size ) ;\n len = bytestream2_get_be32 ( & gb ) ;\n skip = len * 4 + 4 ;\n if ( len == 0 ) return 4 ;\n if ( len >= INT_MAX / 4 - 1 || len < 0 || len > buf_size ) {\n av_log ( ctx -> avctx , AV_LOG_ERROR , \"Error, invalid stream size.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n toks = bytestream2_get_be32 ( & gb ) ;\n if ( toks & 1 ) {\n len = bytestream2_get_be32 ( & gb ) ;\n if ( len == TM2_ESCAPE ) {\n len = bytestream2_get_be32 ( & gb ) ;\n }\n if ( len > 0 ) {\n pos = bytestream2_tell ( & gb ) ;\n if ( skip <= pos ) return AVERROR_INVALIDDATA ;\n init_get_bits ( & ctx -> gb , buf + pos , ( skip - pos ) * 8 ) ;\n if ( ( ret = tm2_read_deltas ( ctx , stream_id ) ) < 0 ) return ret ;\n bytestream2_skip ( & gb , ( ( get_bits_count ( & ctx -> gb ) + 31 ) >> 5 ) << 2 ) ;\n }\n }\n len = bytestream2_get_be32 ( & gb ) ;\n if ( len == TM2_ESCAPE ) {\n bytestream2_skip ( & gb , 8 ) ;\n }\n else {\n bytestream2_skip ( & gb , 4 ) ;\n }\n pos = bytestream2_tell ( & gb ) ;\n if ( skip <= pos ) return AVERROR_INVALIDDATA ;\n init_get_bits ( & ctx -> gb , buf + pos , ( skip - pos ) * 8 ) ;\n if ( ( ret = tm2_build_huff_table ( ctx , & codes ) ) < 0 ) return ret ;\n bytestream2_skip ( & gb , ( ( get_bits_count ( & ctx -> gb ) + 31 ) >> 5 ) << 2 ) ;\n toks >>= 1 ;\n if ( ( toks < 0 ) || ( toks > 0xFFFFFF ) ) {\n av_log ( ctx -> avctx , AV_LOG_ERROR , \"Incorrect number of tokens: %i\\n\" , toks ) ;\n tm2_free_codes ( & codes ) ;\n return AVERROR_INVALIDDATA ;\n }\n ctx -> tokens [ stream_id ] = av_realloc ( ctx -> tokens [ stream_id ] , toks * sizeof ( int ) ) ;\n ctx -> tok_lens [ stream_id ] = toks ;\n len = bytestream2_get_be32 ( & gb ) ;\n if ( len > 0 ) {\n pos = bytestream2_tell ( & gb ) ;\n if ( skip <= pos ) return AVERROR_INVALIDDATA ;\n init_get_bits ( & ctx -> gb , buf + pos , ( skip - pos ) * 8 ) ;\n for ( i = 0 ;\n i < toks ;\n i ++ ) {\n if ( get_bits_left ( & ctx -> gb ) <= 0 ) {\n av_log ( ctx -> avctx , AV_LOG_ERROR , \"Incorrect number of tokens: %i\\n\" , toks ) ;\n return AVERROR_INVALIDDATA ;\n }\n ctx -> tokens [ stream_id ] [ i ] = tm2_get_token ( & ctx -> gb , & codes ) ;\n if ( stream_id <= TM2_MOT && ctx -> tokens [ stream_id ] [ i ] >= TM2_DELTAS ) {\n av_log ( ctx -> avctx , AV_LOG_ERROR , \"Invalid delta token index %d for type %d, n=%d\\n\" , ctx -> tokens [ stream_id ] [ i ] , stream_id , i ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n }\n else {\n for ( i = 0 ;\n i < toks ;\n i ++ ) {\n ctx -> tokens [ stream_id ] [ i ] = codes . recode [ 0 ] ;\n if ( stream_id <= TM2_MOT && ctx -> tokens [ stream_id ] [ i ] >= TM2_DELTAS ) {\n av_log ( ctx -> avctx , AV_LOG_ERROR , \"Invalid delta token index %d for type %d, n=%d\\n\" , ctx -> tokens [ stream_id ] [ i ] , stream_id , i ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n }\n tm2_free_codes ( & codes ) ;\n return skip ;\n }"}
{"idx": 9483, "target": 0, "func": "int quit ( ) {\n kadm5_ret_t retval ;\n if ( locked ) {\n retval = kadm5_unlock ( handle ) ;\n if ( retval ) {\n com_err ( \"quit\" , retval , _ ( \"while unlocking locked database\" ) ) ;\n return 1 ;\n }\n locked = 0 ;\n }\n kadm5_destroy ( handle ) ;\n if ( ccache_name != NULL ) {\n fprintf ( stderr , \"\\n\\a\\a\\a%s\" , _ ( \"Administration credentials NOT DESTROYED.\\n\" ) ) ;\n }\n krb5_klog_close ( context ) ;\n krb5_free_context ( context ) ;\n return 0 ;\n }"}
{"idx": 9484, "target": 0, "func": "static inline uint32_t read_IRQreg_ilr ( OpenPICState * opp , int n_IRQ ) {\n if ( opp -> flags & OPENPIC_FLAG_ILR ) {\n return output_to_inttgt ( opp -> src [ n_IRQ ] . output ) ;\n }\n return 0xffffffff ;\n }"}
{"idx": 9485, "target": 0, "func": "static int dissect_h245_G723AnnexCAudioMode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_G723AnnexCAudioMode , G723AnnexCAudioMode_sequence ) ;\n return offset ;\n }"}
{"idx": 9486, "target": 0, "func": "static int decode_ext_header ( Wmv2Context * w ) {\n MpegEncContext * const s = & w -> s ;\n GetBitContext gb ;\n int fps ;\n int code ;\n if ( s -> avctx -> extradata_size < 4 ) return - 1 ;\n init_get_bits ( & gb , s -> avctx -> extradata , 32 ) ;\n fps = get_bits ( & gb , 5 ) ;\n s -> bit_rate = get_bits ( & gb , 11 ) * 1024 ;\n w -> mspel_bit = get_bits1 ( & gb ) ;\n s -> loop_filter = get_bits1 ( & gb ) ;\n w -> abt_flag = get_bits1 ( & gb ) ;\n w -> j_type_bit = get_bits1 ( & gb ) ;\n w -> top_left_mv_flag = get_bits1 ( & gb ) ;\n w -> per_mb_rl_bit = get_bits1 ( & gb ) ;\n code = get_bits ( & gb , 3 ) ;\n if ( code == 0 ) return - 1 ;\n s -> slice_height = s -> mb_height / code ;\n if ( s -> avctx -> debug & FF_DEBUG_PICT_INFO ) {\n av_log ( s -> avctx , AV_LOG_DEBUG , \"fps:%d, br:%d, qpbit:%d, abt_flag:%d, j_type_bit:%d, tl_mv_flag:%d, mbrl_bit:%d, code:%d, loop_filter:%d, slices:%d\\n\" , fps , s -> bit_rate , w -> mspel_bit , w -> abt_flag , w -> j_type_bit , w -> top_left_mv_flag , w -> per_mb_rl_bit , code , s -> loop_filter , code ) ;\n }\n return 0 ;\n }"}
{"idx": 9487, "target": 0, "func": "static VALUE mHash_to_json ( int argc , VALUE * argv , VALUE self ) {\n GENERATE_JSON ( object ) ;\n }"}
{"idx": 9488, "target": 0, "func": "guint16 de_ms_cm_2 ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n curr_offset = offset ;\n proto_tree_add_item ( tree , hf_gsm_a_b8spare , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_MSC_rev , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_ES_IND , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_A5_1_algorithm_sup , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_RF_power_capability , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n NO_MORE_DATA_CHECK ( len ) ;\n proto_tree_add_item ( tree , hf_gsm_a_b8spare , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_ps_sup_cap , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_SS_screening_indicator , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_SM_capability , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_VBS_notification_rec , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_VGCS_notification_rec , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_FC_frequency_cap , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n NO_MORE_DATA_CHECK ( len ) ;\n proto_tree_add_item ( tree , hf_gsm_a_CM3 , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_b7spare , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_LCS_VA_cap , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_UCS2_treatment , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_SoLSA , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_CMSP , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_A5_3_algorithm_sup , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_A5_2_algorithm_sup , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n EXTRANEOUS_DATA_CHECK ( len , curr_offset - offset , pinfo , & ei_gsm_a_extraneous_data ) ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 9489, "target": 0, "func": "static decNumber * decCompareOp ( decNumber * res , const decNumber * lhs , const decNumber * rhs , decContext * set , Flag op , uInt * status ) {\n # if DECSUBSET decNumber * alloclhs = NULL ;\n decNumber * allocrhs = NULL ;\n # endif Int result = 0 ;\n uByte merged ;\n # if DECCHECK if ( decCheckOperands ( res , lhs , rhs , set ) ) return res ;\n # endif do {\n # if DECSUBSET if ( ! set -> extended ) {\n if ( lhs -> digits > set -> digits ) {\n alloclhs = decRoundOperand ( lhs , set , status ) ;\n if ( alloclhs == NULL ) {\n result = BADINT ;\n break ;\n }\n lhs = alloclhs ;\n }\n if ( rhs -> digits > set -> digits ) {\n allocrhs = decRoundOperand ( rhs , set , status ) ;\n if ( allocrhs == NULL ) {\n result = BADINT ;\n break ;\n }\n rhs = allocrhs ;\n }\n }\n # endif if ( op == COMPTOTAL ) {\n if ( decNumberIsNegative ( lhs ) && ! decNumberIsNegative ( rhs ) ) {\n result = - 1 ;\n break ;\n }\n if ( ! decNumberIsNegative ( lhs ) && decNumberIsNegative ( rhs ) ) {\n result = + 1 ;\n break ;\n }\n }\n merged = ( lhs -> bits | rhs -> bits ) & ( DECSNAN | DECNAN ) ;\n if ( merged ) {\n if ( op == COMPARE ) ;\n else if ( op == COMPSIG ) * status |= DEC_Invalid_operation | DEC_sNaN ;\n else if ( op == COMPTOTAL ) {\n if ( ! decNumberIsNaN ( lhs ) ) result = - 1 ;\n else if ( ! decNumberIsNaN ( rhs ) ) result = + 1 ;\n else if ( decNumberIsSNaN ( lhs ) && decNumberIsQNaN ( rhs ) ) result = - 1 ;\n else if ( decNumberIsQNaN ( lhs ) && decNumberIsSNaN ( rhs ) ) result = + 1 ;\n else {\n result = decUnitCompare ( lhs -> lsu , D2U ( lhs -> digits ) , rhs -> lsu , D2U ( rhs -> digits ) , 0 ) ;\n }\n if ( decNumberIsNegative ( lhs ) ) result = - result ;\n break ;\n }\n else if ( merged & DECSNAN ) ;\n else {\n if ( ! decNumberIsNaN ( lhs ) || ! decNumberIsNaN ( rhs ) ) {\n op = COMPMAX ;\n if ( lhs -> bits & DECNAN ) result = - 1 ;\n else result = + 1 ;\n break ;\n }\n }\n op = COMPNAN ;\n decNaNs ( res , lhs , rhs , set , status ) ;\n break ;\n }\n if ( op == COMPMAXMAG || op == COMPMINMAG ) result = decCompare ( lhs , rhs , 1 ) ;\n else result = decCompare ( lhs , rhs , 0 ) ;\n }\n while ( 0 ) ;\n if ( result == BADINT ) * status |= DEC_Insufficient_storage ;\n else {\n if ( op == COMPARE || op == COMPSIG || op == COMPTOTAL ) {\n if ( op == COMPTOTAL && result == 0 ) {\n if ( lhs -> exponent != rhs -> exponent ) {\n if ( lhs -> exponent < rhs -> exponent ) result = - 1 ;\n else result = + 1 ;\n if ( decNumberIsNegative ( lhs ) ) result = - result ;\n }\n }\n uprv_decNumberZero ( res ) ;\n if ( result != 0 ) {\n * res -> lsu = 1 ;\n if ( result < 0 ) res -> bits = DECNEG ;\n }\n }\n else if ( op == COMPNAN ) ;\n else {\n Int residue = 0 ;\n const decNumber * choice ;\n if ( result == 0 ) {\n uByte slhs = ( lhs -> bits & DECNEG ) ;\n uByte srhs = ( rhs -> bits & DECNEG ) ;\n # if DECSUBSET if ( ! set -> extended ) {\n op = COMPMAX ;\n result = + 1 ;\n }\n else # endif if ( slhs != srhs ) {\n if ( slhs ) result = - 1 ;\n else result = + 1 ;\n }\n else if ( slhs && srhs ) {\n if ( lhs -> exponent < rhs -> exponent ) result = + 1 ;\n else result = - 1 ;\n }\n else {\n if ( lhs -> exponent > rhs -> exponent ) result = + 1 ;\n else result = - 1 ;\n }\n }\n if ( op == COMPMIN || op == COMPMINMAG ) result = - result ;\n choice = ( result > 0 ? lhs : rhs ) ;\n decCopyFit ( res , choice , set , & residue , status ) ;\n decFinish ( res , set , & residue , status ) ;\n }\n }\n # if DECSUBSET if ( allocrhs != NULL ) free ( allocrhs ) ;\n if ( alloclhs != NULL ) free ( alloclhs ) ;\n # endif return res ;\n }"}
{"idx": 9490, "target": 1, "func": "static int svq1_encode_plane ( SVQ1Context * s , int plane , unsigned char * src_plane , unsigned char * ref_plane , unsigned char * decoded_plane , int width , int height , int src_stride , int stride ) {\n int x , y ;\n int i ;\n int block_width , block_height ;\n int level ;\n int threshold [ 6 ] ;\n uint8_t * src = s -> scratchbuf + stride * 16 ;\n const int lambda = ( s -> picture . quality * s -> picture . quality ) >> ( 2 * FF_LAMBDA_SHIFT ) ;\n threshold [ 5 ] = QUALITY_THRESHOLD ;\n for ( level = 4 ;\n level >= 0 ;\n level -- ) threshold [ level ] = threshold [ level + 1 ] * THRESHOLD_MULTIPLIER ;\n block_width = ( width + 15 ) / 16 ;\n block_height = ( height + 15 ) / 16 ;\n if ( s -> picture . pict_type == AV_PICTURE_TYPE_P ) {\n s -> m . avctx = s -> avctx ;\n s -> m . current_picture_ptr = & s -> m . current_picture ;\n s -> m . last_picture_ptr = & s -> m . last_picture ;\n s -> m . last_picture . f . data [ 0 ] = ref_plane ;\n s -> m . linesize = s -> m . last_picture . f . linesize [ 0 ] = s -> m . new_picture . f . linesize [ 0 ] = s -> m . current_picture . f . linesize [ 0 ] = stride ;\n s -> m . width = width ;\n s -> m . height = height ;\n s -> m . mb_width = block_width ;\n s -> m . mb_height = block_height ;\n s -> m . mb_stride = s -> m . mb_width + 1 ;\n s -> m . b8_stride = 2 * s -> m . mb_width + 1 ;\n s -> m . f_code = 1 ;\n s -> m . pict_type = s -> picture . pict_type ;\n s -> m . me_method = s -> avctx -> me_method ;\n s -> m . me . scene_change_score = 0 ;\n s -> m . flags = s -> avctx -> flags ;\n s -> m . lambda = s -> picture . quality ;\n s -> m . qscale = s -> m . lambda * 139 + FF_LAMBDA_SCALE * 64 >> FF_LAMBDA_SHIFT + 7 ;\n s -> m . lambda2 = s -> m . lambda * s -> m . lambda + FF_LAMBDA_SCALE / 2 >> FF_LAMBDA_SHIFT ;\n if ( ! s -> motion_val8 [ plane ] ) {\n s -> motion_val8 [ plane ] = av_mallocz ( ( s -> m . b8_stride * block_height * 2 + 2 ) * 2 * sizeof ( int16_t ) ) ;\n s -> motion_val16 [ plane ] = av_mallocz ( ( s -> m . mb_stride * ( block_height + 2 ) + 1 ) * 2 * sizeof ( int16_t ) ) ;\n }\n s -> m . mb_type = s -> mb_type ;\n s -> m . current_picture . mb_mean = ( uint8_t * ) s -> dummy ;\n s -> m . current_picture . mb_var = ( uint16_t * ) s -> dummy ;\n s -> m . current_picture . mc_mb_var = ( uint16_t * ) s -> dummy ;\n s -> m . current_picture . f . mb_type = s -> dummy ;\n s -> m . current_picture . f . motion_val [ 0 ] = s -> motion_val8 [ plane ] + 2 ;\n s -> m . p_mv_table = s -> motion_val16 [ plane ] + s -> m . mb_stride + 1 ;\n s -> m . dsp = s -> dsp ;\n ff_init_me ( & s -> m ) ;\n s -> m . me . dia_size = s -> avctx -> dia_size ;\n s -> m . first_slice_line = 1 ;\n for ( y = 0 ;\n y < block_height ;\n y ++ ) {\n s -> m . new_picture . f . data [ 0 ] = src - y * 16 * stride ;\n s -> m . mb_y = y ;\n for ( i = 0 ;\n i < 16 && i + 16 * y < height ;\n i ++ ) {\n memcpy ( & src [ i * stride ] , & src_plane [ ( i + 16 * y ) * src_stride ] , width ) ;\n for ( x = width ;\n x < 16 * block_width ;\n x ++ ) src [ i * stride + x ] = src [ i * stride + x - 1 ] ;\n }\n for ( ;\n i < 16 && i + 16 * y < 16 * block_height ;\n i ++ ) memcpy ( & src [ i * stride ] , & src [ ( i - 1 ) * stride ] , 16 * block_width ) ;\n for ( x = 0 ;\n x < block_width ;\n x ++ ) {\n s -> m . mb_x = x ;\n ff_init_block_index ( & s -> m ) ;\n ff_update_block_index ( & s -> m ) ;\n ff_estimate_p_frame_motion ( & s -> m , x , y ) ;\n }\n s -> m . first_slice_line = 0 ;\n }\n ff_fix_long_p_mvs ( & s -> m ) ;\n ff_fix_long_mvs ( & s -> m , NULL , 0 , s -> m . p_mv_table , s -> m . f_code , CANDIDATE_MB_TYPE_INTER , 0 ) ;\n }\n s -> m . first_slice_line = 1 ;\n for ( y = 0 ;\n y < block_height ;\n y ++ ) {\n for ( i = 0 ;\n i < 16 && i + 16 * y < height ;\n i ++ ) {\n memcpy ( & src [ i * stride ] , & src_plane [ ( i + 16 * y ) * src_stride ] , width ) ;\n for ( x = width ;\n x < 16 * block_width ;\n x ++ ) src [ i * stride + x ] = src [ i * stride + x - 1 ] ;\n }\n for ( ;\n i < 16 && i + 16 * y < 16 * block_height ;\n i ++ ) memcpy ( & src [ i * stride ] , & src [ ( i - 1 ) * stride ] , 16 * block_width ) ;\n s -> m . mb_y = y ;\n for ( x = 0 ;\n x < block_width ;\n x ++ ) {\n uint8_t reorder_buffer [ 3 ] [ 6 ] [ 7 * 32 ] ;\n int count [ 3 ] [ 6 ] ;\n int offset = y * 16 * stride + x * 16 ;\n uint8_t * decoded = decoded_plane + offset ;\n uint8_t * ref = ref_plane + offset ;\n int score [ 4 ] = {\n 0 , 0 , 0 , 0 }\n , best ;\n uint8_t * temp = s -> scratchbuf ;\n if ( s -> pb . buf_end - s -> pb . buf - ( put_bits_count ( & s -> pb ) >> 3 ) < 3000 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"encoded frame too large\\n\" ) ;\n return - 1 ;\n }\n s -> m . mb_x = x ;\n ff_init_block_index ( & s -> m ) ;\n ff_update_block_index ( & s -> m ) ;\n if ( s -> picture . pict_type == AV_PICTURE_TYPE_I || ( s -> m . mb_type [ x + y * s -> m . mb_stride ] & CANDIDATE_MB_TYPE_INTRA ) ) {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) init_put_bits ( & s -> reorder_pb [ i ] , reorder_buffer [ 0 ] [ i ] , 7 * 32 ) ;\n if ( s -> picture . pict_type == AV_PICTURE_TYPE_P ) {\n const uint8_t * vlc = ff_svq1_block_type_vlc [ SVQ1_BLOCK_INTRA ] ;\n put_bits ( & s -> reorder_pb [ 5 ] , vlc [ 1 ] , vlc [ 0 ] ) ;\n score [ 0 ] = vlc [ 1 ] * lambda ;\n }\n score [ 0 ] += encode_block ( s , src + 16 * x , NULL , temp , stride , 5 , 64 , lambda , 1 ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n count [ 0 ] [ i ] = put_bits_count ( & s -> reorder_pb [ i ] ) ;\n flush_put_bits ( & s -> reorder_pb [ i ] ) ;\n }\n }\n else score [ 0 ] = INT_MAX ;\n best = 0 ;\n if ( s -> picture . pict_type == AV_PICTURE_TYPE_P ) {\n const uint8_t * vlc = ff_svq1_block_type_vlc [ SVQ1_BLOCK_INTER ] ;\n int mx , my , pred_x , pred_y , dxy ;\n int16_t * motion_ptr ;\n motion_ptr = ff_h263_pred_motion ( & s -> m , 0 , 0 , & pred_x , & pred_y ) ;\n if ( s -> m . mb_type [ x + y * s -> m . mb_stride ] & CANDIDATE_MB_TYPE_INTER ) {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) init_put_bits ( & s -> reorder_pb [ i ] , reorder_buffer [ 1 ] [ i ] , 7 * 32 ) ;\n put_bits ( & s -> reorder_pb [ 5 ] , vlc [ 1 ] , vlc [ 0 ] ) ;\n s -> m . pb = s -> reorder_pb [ 5 ] ;\n mx = motion_ptr [ 0 ] ;\n my = motion_ptr [ 1 ] ;\n assert ( mx >= - 32 && mx <= 31 ) ;\n assert ( my >= - 32 && my <= 31 ) ;\n assert ( pred_x >= - 32 && pred_x <= 31 ) ;\n assert ( pred_y >= - 32 && pred_y <= 31 ) ;\n ff_h263_encode_motion ( & s -> m , mx - pred_x , 1 ) ;\n ff_h263_encode_motion ( & s -> m , my - pred_y , 1 ) ;\n s -> reorder_pb [ 5 ] = s -> m . pb ;\n score [ 1 ] += lambda * put_bits_count ( & s -> reorder_pb [ 5 ] ) ;\n dxy = ( mx & 1 ) + 2 * ( my & 1 ) ;\n s -> dsp . put_pixels_tab [ 0 ] [ dxy ] ( temp + 16 , ref + ( mx >> 1 ) + stride * ( my >> 1 ) , stride , 16 ) ;\n score [ 1 ] += encode_block ( s , src + 16 * x , temp + 16 , decoded , stride , 5 , 64 , lambda , 0 ) ;\n best = score [ 1 ] <= score [ 0 ] ;\n vlc = ff_svq1_block_type_vlc [ SVQ1_BLOCK_SKIP ] ;\n score [ 2 ] = s -> dsp . sse [ 0 ] ( NULL , src + 16 * x , ref , stride , 16 ) ;\n score [ 2 ] += vlc [ 1 ] * lambda ;\n if ( score [ 2 ] < score [ best ] && mx == 0 && my == 0 ) {\n best = 2 ;\n s -> dsp . put_pixels_tab [ 0 ] [ 0 ] ( decoded , ref , stride , 16 ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) count [ 2 ] [ i ] = 0 ;\n put_bits ( & s -> pb , vlc [ 1 ] , vlc [ 0 ] ) ;\n }\n }\n if ( best == 1 ) {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n count [ 1 ] [ i ] = put_bits_count ( & s -> reorder_pb [ i ] ) ;\n flush_put_bits ( & s -> reorder_pb [ i ] ) ;\n }\n }\n else {\n motion_ptr [ 0 ] = motion_ptr [ 1 ] = motion_ptr [ 2 ] = motion_ptr [ 3 ] = motion_ptr [ 0 + 2 * s -> m . b8_stride ] = motion_ptr [ 1 + 2 * s -> m . b8_stride ] = motion_ptr [ 2 + 2 * s -> m . b8_stride ] = motion_ptr [ 3 + 2 * s -> m . b8_stride ] = 0 ;\n }\n }\n s -> rd_total += score [ best ] ;\n for ( i = 5 ;\n i >= 0 ;\n i -- ) avpriv_copy_bits ( & s -> pb , reorder_buffer [ best ] [ i ] , count [ best ] [ i ] ) ;\n if ( best == 0 ) s -> dsp . put_pixels_tab [ 0 ] [ 0 ] ( decoded , temp , stride , 16 ) ;\n }\n s -> m . first_slice_line = 0 ;\n }\n return 0 ;\n }"}
{"idx": 9491, "target": 0, "func": "static int dissect_h245_TsapIdentifier ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 877 \"../../asn1/h245/h245.cnf\" guint32 tsapIdentifier ;\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 65535U , & tsapIdentifier , FALSE ) ;\n if ( upcoming_channel && upcoming_channel -> upcoming_addr ) {\n upcoming_channel -> upcoming_addr -> port = tsapIdentifier ;\n }\n return offset ;\n }"}
{"idx": 9492, "target": 0, "func": "static int cont_test_handler ( TSCont contp , TSEvent event , void * edata ) {\n TSHttpTxn txnp = ( TSHttpTxn ) edata ;\n ConnectTestData * data = nullptr ;\n int request_id = - 1 ;\n CHECK_SPURIOUS_EVENT ( contp , event , edata ) ;\n data = ( ConnectTestData * ) TSContDataGet ( contp ) ;\n TSReleaseAssert ( data -> magic == MAGIC_ALIVE ) ;\n TSReleaseAssert ( ( data -> test_case == TEST_CASE_CONNECT_ID1 ) || ( data -> test_case == TEST_CASE_CONNECT_ID2 ) ) ;\n TSDebug ( UTDBG_TAG , \"Calling cont_test_handler with event %s (%d)\" , TSHttpEventNameLookup ( event ) , event ) ;\n switch ( event ) {\n case TS_EVENT_HTTP_READ_REQUEST_HDR : TSDebug ( UTDBG_TAG , \"cont_test_handler: event READ_REQUEST\" ) ;\n request_id = get_request_id ( txnp ) ;\n TSReleaseAssert ( request_id != - 1 ) ;\n TSDebug ( UTDBG_TAG , \"cont_test_handler: Request id = %d\" , request_id ) ;\n if ( ( request_id != TEST_CASE_CONNECT_ID1 ) && ( request_id != TEST_CASE_CONNECT_ID2 ) ) {\n TSDebug ( UTDBG_TAG , \"This is not an event for this test !\" ) ;\n TSHttpTxnReenable ( txnp , TS_EVENT_HTTP_CONTINUE ) ;\n goto done ;\n }\n if ( ( request_id == TEST_CASE_CONNECT_ID1 ) && ( data -> test_case == TEST_CASE_CONNECT_ID1 ) ) {\n TSDebug ( UTDBG_TAG , \"Calling TSHttpTxnIntercept\" ) ;\n TSHttpTxnIntercept ( data -> os -> accept_cont , txnp ) ;\n }\n else if ( ( request_id == TEST_CASE_CONNECT_ID2 ) && ( data -> test_case == TEST_CASE_CONNECT_ID2 ) ) {\n TSDebug ( UTDBG_TAG , \"Calling TSHttpTxnServerIntercept\" ) ;\n TSHttpTxnServerIntercept ( data -> os -> accept_cont , txnp ) ;\n }\n TSHttpTxnReenable ( txnp , TS_EVENT_HTTP_CONTINUE ) ;\n break ;\n case TS_EVENT_TIMEOUT : if ( data -> browser -> status == REQUEST_INPROGRESS ) {\n TSDebug ( UTDBG_TAG , \"Browser still waiting response...\" ) ;\n TSContSchedule ( contp , 25 , TS_THREAD_POOL_DEFAULT ) ;\n }\n else {\n char * body_response = get_body_ptr ( data -> browser -> response ) ;\n const char * body_expected ;\n if ( data -> test_case == TEST_CASE_CONNECT_ID1 ) {\n body_expected = \"Body for response 9\" ;\n }\n else {\n body_expected = \"Body for response 10\" ;\n }\n TSDebug ( UTDBG_TAG , \"Body Response = \\n|%s|\\nBody Expected = \\n|%s|\" , body_response ? body_response : \"*NULL*\" , body_expected ) ;\n if ( ! body_response || strncmp ( body_response , body_expected , strlen ( body_expected ) ) != 0 ) {\n if ( data -> test_case == TEST_CASE_CONNECT_ID1 ) {\n SDK_RPRINT ( data -> test , \"TSHttpConnect\" , \"TestCase1\" , TC_FAIL , \"Unexpected response\" ) ;\n SDK_RPRINT ( data -> test , \"TSHttpTxnIntercept\" , \"TestCase1\" , TC_FAIL , \"Unexpected response\" ) ;\n }\n else {\n SDK_RPRINT ( data -> test , \"TSHttpConnect\" , \"TestCase2\" , TC_FAIL , \"Unexpected response\" ) ;\n SDK_RPRINT ( data -> test , \"TSHttpTxnServerIntercept\" , \"TestCase2\" , TC_FAIL , \"Unexpected response\" ) ;\n }\n * ( data -> pstatus ) = REGRESSION_TEST_FAILED ;\n }\n else {\n if ( data -> test_case == TEST_CASE_CONNECT_ID1 ) {\n SDK_RPRINT ( data -> test , \"TSHttpConnect\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( data -> test , \"TSHttpTxnIntercept\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n else {\n SDK_RPRINT ( data -> test , \"TSHttpConnect\" , \"TestCase2\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( data -> test , \"TSHttpTxnServerIntercept\" , \"TestCase2\" , TC_PASS , \"ok\" ) ;\n }\n * ( data -> pstatus ) = REGRESSION_TEST_PASSED ;\n }\n synclient_txn_delete ( data -> browser ) ;\n synserver_delete ( data -> os ) ;\n data -> os = nullptr ;\n data -> magic = MAGIC_DEAD ;\n TSfree ( data ) ;\n TSContDataSet ( contp , nullptr ) ;\n }\n break ;\n default : * ( data -> pstatus ) = REGRESSION_TEST_FAILED ;\n SDK_RPRINT ( data -> test , \"TSHttpConnect\" , \"TestCase1 or 2\" , TC_FAIL , \"Unexpected event %d\" , event ) ;\n break ;\n }\n done : return TS_EVENT_IMMEDIATE ;\n }"}
{"idx": 9493, "target": 0, "func": "static int dissect_h245_SEQUENCE_SIZE_1_256_OF_ModeDescription ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h245_SEQUENCE_SIZE_1_256_OF_ModeDescription , SEQUENCE_SIZE_1_256_OF_ModeDescription_sequence_of , 1 , 256 , FALSE ) ;\n return offset ;\n }"}
{"idx": 9494, "target": 0, "func": "int qemuMonitorTextGetAllPCIAddresses ( qemuMonitorPtr mon , qemuMonitorPCIAddress * * retaddrs ) {\n char * reply ;\n qemuMonitorPCIAddress * addrs = NULL ;\n int naddrs = 0 ;\n char * p ;\n * retaddrs = NULL ;\n if ( qemuMonitorHMPCommand ( mon , \"info pci\" , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , _ ( \"cannot query PCI addresses\" ) ) ;\n return - 1 ;\n }\n p = reply ;\n while ( p ) {\n unsigned int bus , slot , func , vendor , product ;\n SKIP_TO ( p , \" Bus\" ) ;\n CHECK_END ( p ) ;\n SKIP_SPACE ( p ) ;\n GET_INT ( p , 10 , bus ) ;\n CHECK_END ( p ) ;\n SKIP_TO ( p , \", device\" ) ;\n CHECK_END ( p ) ;\n SKIP_SPACE ( p ) ;\n GET_INT ( p , 10 , slot ) ;\n CHECK_END ( p ) ;\n SKIP_TO ( p , \", function\" ) ;\n CHECK_END ( p ) ;\n SKIP_SPACE ( p ) ;\n GET_INT ( p , 10 , func ) ;\n CHECK_END ( p ) ;\n SKIP_TO ( p , \"PCI device\" ) ;\n CHECK_END ( p ) ;\n SKIP_SPACE ( p ) ;\n GET_INT ( p , 16 , vendor ) ;\n CHECK_END ( p ) ;\n if ( * p != ':' ) break ;\n p ++ ;\n GET_INT ( p , 16 , product ) ;\n if ( VIR_REALLOC_N ( addrs , naddrs + 1 ) < 0 ) {\n virReportOOMError ( ) ;\n goto error ;\n }\n addrs [ naddrs ] . addr . domain = 0 ;\n addrs [ naddrs ] . addr . bus = bus ;\n addrs [ naddrs ] . addr . slot = slot ;\n addrs [ naddrs ] . addr . function = func ;\n addrs [ naddrs ] . vendor = vendor ;\n addrs [ naddrs ] . product = product ;\n naddrs ++ ;\n VIR_DEBUG ( \"Got dev %d:%d:%d %x:%x\" , bus , slot , func , vendor , product ) ;\n }\n VIR_FREE ( reply ) ;\n * retaddrs = addrs ;\n return naddrs ;\n error : VIR_FREE ( addrs ) ;\n VIR_FREE ( reply ) ;\n return - 1 ;\n }"}
{"idx": 9495, "target": 0, "func": "TEST_F ( WebFrameSimTest , TickmarksDocumentRelative ) {\n WebView ( ) . Resize ( WebSize ( 500 , 300 ) ) ;\n WebView ( ) . GetPage ( ) -> GetSettings ( ) . SetTextAutosizingEnabled ( false ) ;\n SimRequest request ( \"https://example.com/test.html\" , \"text/html\" ) ;\n LoadURL ( \"https://example.com/test.html\" ) ;\n request . Complete ( R \"HTML( < ! DOCTYPE html > < style > body , html {\n width : 4000px ;\n height : 4000px ;\n margin : 0 ;\n }\n div {\n position : absolute ;\n left : 800px ;\n top : 2000px ;\n }\n < / style > < div > test < / div > ) HTML \");\n Compositor ( ) . BeginFrame ( ) ;\n WebLocalFrameImpl * frame = ToWebLocalFrameImpl ( WebView ( ) . MainFrame ( ) ) ;\n LocalFrameView * frame_view = ToLocalFrame ( WebView ( ) . GetPage ( ) -> MainFrame ( ) ) -> View ( ) ;\n frame_view -> GetScrollableArea ( ) -> SetScrollOffset ( ScrollOffset ( 3000 , 1000 ) , kProgrammaticScroll ) ;\n WebFindOptions options ;\n WebString search_text = WebString : : FromUTF8 ( \"test\" ) ;\n const int kFindIdentifier = 12345 ;\n EXPECT_TRUE ( frame -> Find ( kFindIdentifier , search_text , options , false ) ) ;\n frame -> EnsureTextFinder ( ) . ResetMatchCount ( ) ;\n frame -> EnsureTextFinder ( ) . StartScopingStringMatches ( kFindIdentifier , search_text , options ) ;\n RunPendingTasks ( ) ;\n Vector < IntRect > original_tickmarks ;\n frame_view -> LayoutViewport ( ) -> GetTickmarks ( original_tickmarks ) ;\n EXPECT_EQ ( 1u , original_tickmarks . size ( ) ) ;\n EXPECT_EQ ( IntPoint ( 800 , 2000 ) , original_tickmarks [ 0 ] . Location ( ) ) ;\n }"}
{"idx": 9496, "target": 1, "func": "static int tile_worker_hook ( void * arg1 , void * arg2 ) {\n TileWorkerData * const tile_data = ( TileWorkerData * ) arg1 ;\n const TileInfo * const tile = ( TileInfo * ) arg2 ;\n int mi_row , mi_col ;\n for ( mi_row = tile -> mi_row_start ;\n mi_row < tile -> mi_row_end ;\n mi_row += MI_BLOCK_SIZE ) {\n vp9_zero ( tile_data -> xd . left_context ) ;\n vp9_zero ( tile_data -> xd . left_seg_context ) ;\n for ( mi_col = tile -> mi_col_start ;\n mi_col < tile -> mi_col_end ;\n mi_col += MI_BLOCK_SIZE ) {\n decode_partition ( tile_data -> cm , & tile_data -> xd , tile , mi_row , mi_col , & tile_data -> bit_reader , BLOCK_64X64 ) ;\n }\n }\n return ! tile_data -> xd . corrupted ;\n }"}
{"idx": 9497, "target": 0, "func": "static void e1000e_intmgr_timer_pause ( E1000IntrDelayTimer * timer ) {\n if ( timer -> running ) {\n timer_del ( timer -> timer ) ;\n }\n }"}
{"idx": 9498, "target": 0, "func": "static void dissect_rsvp_lsp_attributes ( proto_tree * ti , packet_info * pinfo , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int type ) {\n int tlv_off ;\n guint32 attributes ;\n guint16 tlv_type , tlv_len ;\n proto_tree * ti2 , * rsvp_lsp_attr_subtree ;\n if ( rsvp_class == RSVP_CLASS_LSP_REQUIRED_ATTRIBUTES ) proto_item_set_text ( ti , \"LSP REQUIRED ATTRIBUTES: \" ) ;\n else proto_item_set_text ( ti , \"LSP ATTRIBUTES: \" ) ;\n switch ( type ) {\n case 1 : proto_tree_add_uint ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type ) ;\n for ( tlv_off = 4 ;\n tlv_off < obj_length - 4 ;\n ) {\n tlv_type = tvb_get_ntohs ( tvb , offset + tlv_off ) ;\n tlv_len = tvb_get_ntohs ( tvb , offset + tlv_off + 2 ) ;\n if ( ( tlv_len == 0 ) || ( tlv_off + tlv_len > obj_length ) ) {\n proto_tree_add_expert ( rsvp_object_tree , pinfo , & ei_rsvp_invalid_length , tvb , offset + tlv_off + 2 , 2 ) ;\n return ;\n }\n switch ( tlv_type ) {\n case 1 : attributes = tvb_get_ntohl ( tvb , offset + tlv_off + 4 ) ;\n ti2 = proto_tree_add_item ( rsvp_object_tree , hf_rsvp_lsp_attributes_tlv , tvb , offset + tlv_off , 4 , ENC_BIG_ENDIAN ) ;\n rsvp_lsp_attr_subtree = proto_item_add_subtree ( ti2 , TREE ( TT_LSP_ATTRIBUTES_FLAGS ) ) ;\n proto_tree_add_item ( rsvp_lsp_attr_subtree , hf_rsvp_lsp_attr_e2e , tvb , offset + tlv_off + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_lsp_attr_subtree , hf_rsvp_lsp_attr_boundary , tvb , offset + tlv_off + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_lsp_attr_subtree , hf_rsvp_lsp_attr_segment , tvb , offset + tlv_off + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_lsp_attr_subtree , hf_rsvp_lsp_attr_integrity , tvb , offset + tlv_off + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_lsp_attr_subtree , hf_rsvp_lsp_attr_contiguous , tvb , offset + tlv_off + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_lsp_attr_subtree , hf_rsvp_lsp_attr_stitching , tvb , offset + tlv_off + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_lsp_attr_subtree , hf_rsvp_lsp_attr_preplanned , tvb , offset + tlv_off + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_lsp_attr_subtree , hf_rsvp_lsp_attr_nophp , tvb , offset + tlv_off + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_lsp_attr_subtree , hf_rsvp_lsp_attr_oobmap , tvb , offset + tlv_off + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_lsp_attr_subtree , hf_rsvp_lsp_attr_entropy , tvb , offset + tlv_off + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_lsp_attr_subtree , hf_rsvp_lsp_attr_srlgcollect , tvb , offset + tlv_off + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_lsp_attr_subtree , hf_rsvp_lsp_attr_costcollect , tvb , offset + tlv_off + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_lsp_attr_subtree , hf_rsvp_lsp_attr_latcollect , tvb , offset + tlv_off + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_lsp_attr_subtree , hf_rsvp_lsp_attr_latvarcollect , tvb , offset + tlv_off + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \"LSP Attribute:%s%s%s%s%s%s%s%s%s%s%s%s%s%s\" , ( attributes & 0x00000001 ) ? \" End-to-end re-routing\" : \"\" , ( attributes & 0x00000002 ) ? \" Boundary re-routing\" : \"\" , ( attributes & 0x00000004 ) ? \" Segment-based re-routing\" : \"\" , ( attributes & 0x00000008 ) ? \" LSP Integrity Required\" : \"\" , ( attributes & 0x00000010 ) ? \" Contiguous LSP\" : \"\" , ( attributes & 0x00000020 ) ? \" LSP stitching desired\" : \"\" , ( attributes & 0x00000040 ) ? \" Pre-Planned LSP Flag\" : \"\" , ( attributes & 0x00000080 ) ? \" Non-PHP behavior flag\" : \"\" , ( attributes & 0x00000100 ) ? \" OOB mapping flag\" : \"\" , ( attributes & 0x00000200 ) ? \" Entropy Label Capability\" : \"\" , ( attributes & 0x00000400 ) ? \" SRLG Collection Flag\" : \"\" , ( attributes & 0x00000800 ) ? \" Cost Collection Flag\" : \"\" , ( attributes & 0x00001000 ) ? \" Latency Collection Flag\" : \"\" , ( attributes & 0x00002000 ) ? \" Latency Variation Flag\" : \"\" ) ;\n break ;\n default : proto_tree_add_uint_format ( rsvp_object_tree , hf_rsvp_type , tvb , offset + tlv_off , tlv_len , tlv_type , \"Unknown TLV: %d\" , tlv_type ) ;\n break ;\n }\n tlv_off += tlv_len ;\n }\n break ;\n default : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"Unknown (%u)\" , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_lsp_attributes_tlv_data , tvb , offset + 4 , obj_length - 4 , ENC_NA ) ;\n break ;\n }\n }"}
{"idx": 9499, "target": 0, "func": "static xmlHashTablePtr exsltSaxonInit ( xsltTransformContextPtr ctxt ATTRIBUTE_UNUSED , const xmlChar * URI ATTRIBUTE_UNUSED ) {\n return xmlHashCreate ( 1 ) ;\n }"}
{"idx": 9500, "target": 0, "func": "static inline void tm2_null_res_block ( TM2Context * ctx , AVFrame * pic , int bx , int by ) {\n int i ;\n int ct ;\n int left , right , diff ;\n int deltas [ 16 ] ;\n TM2_INIT_POINTERS ( ) ;\n deltas [ 0 ] = deltas [ 1 ] = deltas [ 2 ] = deltas [ 3 ] = 0 ;\n tm2_low_chroma ( U , Ustride , clast , ctx -> CD , deltas , bx ) ;\n deltas [ 0 ] = deltas [ 1 ] = deltas [ 2 ] = deltas [ 3 ] = 0 ;\n tm2_low_chroma ( V , Vstride , clast + 2 , ctx -> CD + 2 , deltas , bx ) ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) deltas [ i ] = 0 ;\n ct = ctx -> D [ 0 ] + ctx -> D [ 1 ] + ctx -> D [ 2 ] + ctx -> D [ 3 ] ;\n if ( bx > 0 ) left = last [ - 1 ] - ct ;\n else left = 0 ;\n right = last [ 3 ] ;\n diff = right - left ;\n last [ 0 ] = left + ( diff >> 2 ) ;\n last [ 1 ] = left + ( diff >> 1 ) ;\n last [ 2 ] = right - ( diff >> 2 ) ;\n last [ 3 ] = right ;\n {\n int tp = left ;\n ctx -> D [ 0 ] = ( tp + ( ct >> 2 ) ) - left ;\n left += ctx -> D [ 0 ] ;\n ctx -> D [ 1 ] = ( tp + ( ct >> 1 ) ) - left ;\n left += ctx -> D [ 1 ] ;\n ctx -> D [ 2 ] = ( ( tp + ct ) - ( ct >> 2 ) ) - left ;\n left += ctx -> D [ 2 ] ;\n ctx -> D [ 3 ] = ( tp + ct ) - left ;\n }\n tm2_apply_deltas ( ctx , Y , Ystride , deltas , last ) ;\n }"}
{"idx": 9501, "target": 0, "func": "static void arith_init ( ArithCoder * c , GetBitContext * gb ) {\n c -> low = 0 ;\n c -> high = 0xFFFF ;\n c -> value = get_bits ( gb , 16 ) ;\n c -> gbc . gb = gb ;\n c -> get_model_sym = arith_get_model_sym ;\n c -> get_number = arith_get_number ;\n }"}
{"idx": 9502, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( VirtualKeyboardBrowserTest , EndToEndTest ) {\n content : : RenderViewHost * keyboard_rvh = GetKeyboardRenderViewHost ( ) ;\n ASSERT_TRUE ( keyboard_rvh ) ;\n content : : RenderViewHost * browser_rvh = browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) -> GetRenderViewHost ( ) ;\n ASSERT_TRUE ( browser_rvh ) ;\n GURL url = ui_test_utils : : GetTestUrl ( base : : FilePath ( ) , base : : FilePath ( FILE_PATH_LITERAL ( \"chromeos/virtual_keyboard/end_to_end_test.html\" ) ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , url ) ;\n base : : FilePath path = ui_test_utils : : GetTestFilePath ( kVirtualKeyboardTestDir , base : : FilePath ( FILE_PATH_LITERAL ( \"end_to_end_test.js\" ) ) ) ;\n std : : string script ;\n ASSERT_TRUE ( base : : ReadFileToString ( path , & script ) ) ;\n EXPECT_TRUE ( content : : ExecuteScript ( keyboard_rvh , script ) ) ;\n bool success = false ;\n EXPECT_TRUE ( content : : ExecuteScriptAndExtractBool ( browser_rvh , \"success ? verifyInput('a') : waitForInput('a');\n\" , & success ) ) ;\n ASSERT_TRUE ( success ) ;\n }"}
{"idx": 9503, "target": 0, "func": "static uint32_t e1000e_mac_swsm_read ( E1000ECore * core , int index ) {\n uint32_t val = core -> mac [ SWSM ] ;\n core -> mac [ SWSM ] = val | 1 ;\n return val ;\n }"}
{"idx": 9504, "target": 0, "func": "static void U_CALLCONV _LMBCSOpen ## n ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err ) \\ {\n _LMBCSOpenWorker ( _this , pArgs , err , n ) ;\n }\n static void _LMBCSOpenWorker ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err , ulmbcs_byte_t OptGroup ) {\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) uprv_malloc ( sizeof ( UConverterDataLMBCS ) ) ;\n _this -> extraInfo = extraInfo ;\n if ( extraInfo != NULL ) {\n UConverterNamePieces stackPieces ;\n UConverterLoadArgs stackArgs = UCNV_LOAD_ARGS_INITIALIZER ;\n ulmbcs_byte_t i ;\n uprv_memset ( extraInfo , 0 , sizeof ( UConverterDataLMBCS ) ) ;\n stackArgs . onlyTestIsLoadable = pArgs -> onlyTestIsLoadable ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST && U_SUCCESS ( * err ) ;\n i ++ ) {\n if ( OptGroupByteToCPName [ i ] != NULL ) {\n extraInfo -> OptGrpConverter [ i ] = ucnv_loadSharedData ( OptGroupByteToCPName [ i ] , & stackPieces , & stackArgs , err ) ;\n }\n }\n if ( U_FAILURE ( * err ) || pArgs -> onlyTestIsLoadable ) {\n _LMBCSClose ( _this ) ;\n return ;\n }\n extraInfo -> OptGroup = OptGroup ;\n extraInfo -> localeConverterIndex = FindLMBCSLocale ( pArgs -> locale ) ;\n }\n else {\n * err = U_MEMORY_ALLOCATION_ERROR ;\n }\n }\n U_CDECL_BEGIN static void U_CALLCONV _LMBCSClose ( UConverter * _this ) {\n if ( _this -> extraInfo != NULL ) {\n ulmbcs_byte_t Ix ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) _this -> extraInfo ;\n for ( Ix = 0 ;\n Ix <= ULMBCS_GRP_LAST ;\n Ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ Ix ] != NULL ) ucnv_unloadSharedDataIfReady ( extraInfo -> OptGrpConverter [ Ix ] ) ;\n }\n if ( ! _this -> isExtraLocal ) {\n uprv_free ( _this -> extraInfo ) ;\n _this -> extraInfo = NULL ;\n }\n }\n }\n typedef struct LMBCSClone {\n UConverter cnv ;\n UConverterDataLMBCS lmbcs ;\n }\n LMBCSClone ;\n static UConverter * U_CALLCONV _LMBCSSafeClone ( const UConverter * cnv , void * stackBuffer , int32_t * pBufferSize , UErrorCode * status ) {\n ( void ) status ;\n LMBCSClone * newLMBCS ;\n UConverterDataLMBCS * extraInfo ;\n int32_t i ;\n if ( * pBufferSize <= 0 ) {\n * pBufferSize = ( int32_t ) sizeof ( LMBCSClone ) ;\n return NULL ;\n }\n extraInfo = ( UConverterDataLMBCS * ) cnv -> extraInfo ;\n newLMBCS = ( LMBCSClone * ) stackBuffer ;\n uprv_memcpy ( & newLMBCS -> lmbcs , extraInfo , sizeof ( UConverterDataLMBCS ) ) ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST ;\n ++ i ) {\n if ( extraInfo -> OptGrpConverter [ i ] != NULL ) {\n ucnv_incrementRefCount ( extraInfo -> OptGrpConverter [ i ] ) ;\n }\n }\n newLMBCS -> cnv . extraInfo = & newLMBCS -> lmbcs ;\n newLMBCS -> cnv . isExtraLocal = TRUE ;\n return & newLMBCS -> cnv ;\n }\n static size_t LMBCSConversionWorker ( UConverterDataLMBCS * extraInfo , ulmbcs_byte_t group , ulmbcs_byte_t * pStartLMBCS , UChar * pUniChar , ulmbcs_byte_t * lastConverterIndex , UBool * groups_tried ) {\n ulmbcs_byte_t * pLMBCS = pStartLMBCS ;\n UConverterSharedData * xcnv = extraInfo -> OptGrpConverter [ group ] ;\n int bytesConverted ;\n uint32_t value ;\n ulmbcs_byte_t firstByte ;\n U_ASSERT ( xcnv ) ;\n U_ASSERT ( group < ULMBCS_GRP_UNICODE ) ;\n bytesConverted = ucnv_MBCSFromUChar32 ( xcnv , * pUniChar , & value , FALSE ) ;\n if ( bytesConverted > 0 ) {\n firstByte = ( ulmbcs_byte_t ) ( value >> ( ( bytesConverted - 1 ) * 8 ) ) ;\n }\n else {\n groups_tried [ group ] = TRUE ;\n return 0 ;\n }\n * lastConverterIndex = group ;\n U_ASSERT ( ( firstByte <= ULMBCS_C0END ) || ( firstByte >= ULMBCS_C1START ) || ( group == ULMBCS_GRP_EXCEPT ) ) ;\n if ( group != ULMBCS_GRP_EXCEPT && extraInfo -> OptGroup != group ) {\n * pLMBCS ++ = group ;\n if ( bytesConverted == 1 && group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n * pLMBCS ++ = group ;\n }\n }\n if ( bytesConverted == 1 && firstByte < 0x20 ) return 0 ;\n switch ( bytesConverted ) {\n case 4 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 24 ) ;\n U_FALLTHROUGH ;\n case 3 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 16 ) ;\n U_FALLTHROUGH ;\n case 2 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 8 ) ;\n U_FALLTHROUGH ;\n case 1 : * pLMBCS ++ = ( ulmbcs_byte_t ) value ;\n U_FALLTHROUGH ;\n default : break ;\n }\n return ( pLMBCS - pStartLMBCS ) ;\n }\n static size_t LMBCSConvertUni ( ulmbcs_byte_t * pLMBCS , UChar uniChar ) {\n uint8_t LowCh = ( uint8_t ) ( uniChar & 0x00FF ) ;\n uint8_t HighCh = ( uint8_t ) ( uniChar >> 8 ) ;\n * pLMBCS ++ = ULMBCS_GRP_UNICODE ;\n if ( LowCh == 0 ) {\n * pLMBCS ++ = ULMBCS_UNICOMPATZERO ;\n * pLMBCS ++ = HighCh ;\n }\n else {\n * pLMBCS ++ = HighCh ;\n * pLMBCS ++ = LowCh ;\n }\n return ULMBCS_UNICODE_SIZE ;\n }\n static void U_CALLCONV _LMBCSFromUnicode ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n ulmbcs_byte_t lastConverterIndex = 0 ;\n UChar uniChar ;\n ulmbcs_byte_t LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n ulmbcs_byte_t * pLMBCS ;\n int32_t bytes_written ;\n UBool groups_tried [ ULMBCS_GRP_LAST + 1 ] ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n int sourceIndex = 0 ;\n ulmbcs_byte_t OldConverterIndex = 0 ;\n while ( args -> source < args -> sourceLimit && ! U_FAILURE ( * err ) ) {\n OldConverterIndex = extraInfo -> localeConverterIndex ;\n if ( args -> target >= args -> targetLimit ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n uniChar = * ( args -> source ) ;\n bytes_written = 0 ;\n pLMBCS = LMBCS ;\n if ( ( uniChar >= 0x80 ) && ( uniChar <= 0xff ) && ( uniChar != 0xB1 ) && ( uniChar != 0xD7 ) && ( uniChar != 0xF7 ) && ( uniChar != 0xB0 ) && ( uniChar != 0xB4 ) && ( uniChar != 0xB6 ) && ( uniChar != 0xA7 ) && ( uniChar != 0xA8 ) ) {\n extraInfo -> localeConverterIndex = ULMBCS_GRP_L1 ;\n }\n if ( ( ( uniChar > ULMBCS_C0END ) && ( uniChar < ULMBCS_C1START ) ) || uniChar == 0 || uniChar == ULMBCS_HT || uniChar == ULMBCS_CR || uniChar == ULMBCS_LF || uniChar == ULMBCS_123SYSTEMRANGE ) {\n * pLMBCS ++ = ( ulmbcs_byte_t ) uniChar ;\n bytes_written = 1 ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t group = FindLMBCSUniRange ( uniChar ) ;\n if ( group == ULMBCS_GRP_UNICODE ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group == ULMBCS_GRP_CTRL ) {\n if ( uniChar <= ULMBCS_C0END ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( ULMBCS_CTRLOFFSET + uniChar ) ;\n }\n else if ( uniChar >= ULMBCS_C1START && uniChar <= ULMBCS_C1START + ULMBCS_CTRLOFFSET ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( uniChar & 0x00FF ) ;\n }\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group < ULMBCS_GRP_UNICODE ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , group , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n uprv_memset ( groups_tried , 0 , sizeof ( groups_tried ) ) ;\n if ( ( extraInfo -> OptGroup != 1 ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> OptGroup ) ) ) {\n if ( extraInfo -> localeConverterIndex < ULMBCS_DOUBLEOPTGROUP_START ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_L1 , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n else {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && ( extraInfo -> localeConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> localeConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written && ( lastConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , lastConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , lastConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t grp_start ;\n ulmbcs_byte_t grp_end ;\n ulmbcs_byte_t grp_ix ;\n grp_start = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_DOUBLEOPTGROUP_START : ULMBCS_GRP_L1 ) ;\n grp_end = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_GRP_LAST : ULMBCS_GRP_TH ) ;\n if ( group == ULMBCS_AMBIGUOUS_ALL ) {\n grp_start = ULMBCS_GRP_L1 ;\n grp_end = ULMBCS_GRP_LAST ;\n }\n for ( grp_ix = grp_start ;\n grp_ix <= grp_end && ! bytes_written ;\n grp_ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ grp_ix ] && ! groups_tried [ grp_ix ] ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , grp_ix , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && grp_start == ULMBCS_GRP_L1 ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n }\n }\n args -> source ++ ;\n pLMBCS = LMBCS ;\n while ( args -> target < args -> targetLimit && bytes_written -- ) {\n * ( args -> target ) ++ = * pLMBCS ++ ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = sourceIndex ;\n }\n }\n sourceIndex ++ ;\n if ( bytes_written > 0 ) {\n uint8_t * pErrorBuffer = args -> converter -> charErrorBuffer ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n args -> converter -> charErrorBufferLength = ( int8_t ) bytes_written ;\n while ( bytes_written -- ) {\n * pErrorBuffer ++ = * pLMBCS ++ ;\n }\n }\n extraInfo -> localeConverterIndex = OldConverterIndex ;\n }\n }\n static UChar GetUniFromLMBCSUni ( char const * * ppLMBCSin ) {\n uint8_t HighCh = * ( * ppLMBCSin ) ++ ;\n uint8_t LowCh = * ( * ppLMBCSin ) ++ ;\n if ( HighCh == ULMBCS_UNICOMPATZERO ) {\n HighCh = LowCh ;\n LowCh = 0 ;\n }\n return ( UChar ) ( ( HighCh << 8 ) | LowCh ) ;\n }\n # define CHECK_SOURCE_LIMIT ( index ) if ( args -> source + index > args -> sourceLimit ) {\n * err = U_TRUNCATED_CHAR_FOUND ;\n args -> source = args -> sourceLimit ;\n return 0xffff ;\n }\n static UChar32 U_CALLCONV _LMBCSGetNextUCharWorker ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n UChar32 uniChar = 0 ;\n ulmbcs_byte_t CurByte ;\n if ( args -> source >= args -> sourceLimit ) {\n * err = U_ILLEGAL_ARGUMENT_ERROR ;\n return 0xffff ;\n }\n CurByte = * ( ( ulmbcs_byte_t * ) ( args -> source ++ ) ) ;\n if ( ( ( CurByte > ULMBCS_C0END ) && ( CurByte < ULMBCS_C1START ) ) || ( CurByte == 0 ) || CurByte == ULMBCS_HT || CurByte == ULMBCS_CR || CurByte == ULMBCS_LF || CurByte == ULMBCS_123SYSTEMRANGE ) {\n uniChar = CurByte ;\n }\n else {\n UConverterDataLMBCS * extraInfo ;\n ulmbcs_byte_t group ;\n UConverterSharedData * cnv ;\n if ( CurByte == ULMBCS_GRP_CTRL ) {\n ulmbcs_byte_t C0C1byte ;\n CHECK_SOURCE_LIMIT ( 1 ) ;\n C0C1byte = * ( args -> source ) ++ ;\n uniChar = ( C0C1byte < ULMBCS_C1START ) ? C0C1byte - ULMBCS_CTRLOFFSET : C0C1byte ;\n }\n else if ( CurByte == ULMBCS_GRP_UNICODE ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n return GetUniFromLMBCSUni ( & ( args -> source ) ) ;\n }\n else if ( CurByte <= ULMBCS_CTRLOFFSET ) {\n group = CurByte ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n if ( group > ULMBCS_GRP_LAST || ( cnv = extraInfo -> OptGrpConverter [ group ] ) == NULL ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n if ( * args -> source == group ) {\n ++ args -> source ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 1 , FALSE ) ;\n ++ args -> source ;\n }\n else {\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 2 , FALSE ) ;\n args -> source += 2 ;\n }\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n CurByte = * ( args -> source ) ++ ;\n if ( CurByte >= ULMBCS_C1START ) {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n else {\n char bytes [ 2 ] ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n cnv = extraInfo -> OptGrpConverter [ ULMBCS_GRP_EXCEPT ] ;\n bytes [ 0 ] = group ;\n bytes [ 1 ] = CurByte ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , bytes , 2 , FALSE ) ;\n }\n }\n }\n else if ( CurByte >= ULMBCS_C1START ) {\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n group = extraInfo -> OptGroup ;\n cnv = extraInfo -> OptGrpConverter [ group ] ;\n if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n if ( ! ucnv_MBCSIsLeadByte ( cnv , CurByte ) ) {\n CHECK_SOURCE_LIMIT ( 0 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 1 , FALSE ) ;\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 2 , FALSE ) ;\n ++ args -> source ;\n }\n }\n else {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n }\n }\n return uniChar ;\n }\n static void U_CALLCONV _LMBCSToUnicodeWithOffsets ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n char LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n UChar uniChar ;\n const char * saveSource ;\n const char * pStartLMBCS = args -> source ;\n const char * errSource = NULL ;\n int8_t savebytes = 0 ;\n while ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit > args -> target ) {\n saveSource = args -> source ;\n if ( args -> converter -> toULength ) {\n const char * saveSourceLimit ;\n size_t size_old = args -> converter -> toULength ;\n size_t size_new_maybe_1 = sizeof ( LMBCS ) - size_old ;\n size_t size_new_maybe_2 = args -> sourceLimit - args -> source ;\n size_t size_new = ( size_new_maybe_1 < size_new_maybe_2 ) ? size_new_maybe_1 : size_new_maybe_2 ;\n uprv_memcpy ( LMBCS , args -> converter -> toUBytes , size_old ) ;\n uprv_memcpy ( LMBCS + size_old , args -> source , size_new ) ;\n saveSourceLimit = args -> sourceLimit ;\n args -> source = errSource = LMBCS ;\n args -> sourceLimit = LMBCS + size_old + size_new ;\n savebytes = ( int8_t ) ( size_old + size_new ) ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n args -> source = saveSource + ( ( args -> source - LMBCS ) - size_old ) ;\n args -> sourceLimit = saveSourceLimit ;\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n args -> converter -> toULength = savebytes ;\n uprv_memcpy ( args -> converter -> toUBytes , LMBCS , savebytes ) ;\n args -> source = args -> sourceLimit ;\n * err = U_ZERO_ERROR ;\n return ;\n }\n else {\n args -> converter -> toULength = 0 ;\n }\n }\n else {\n errSource = saveSource ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n savebytes = ( int8_t ) ( args -> source - saveSource ) ;\n }\n if ( U_SUCCESS ( * err ) ) {\n if ( uniChar < 0xfffe ) {\n * ( args -> target ) ++ = uniChar ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = ( int32_t ) ( saveSource - pStartLMBCS ) ;\n }\n }\n else if ( uniChar == 0xfffe ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n }\n if ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit <= args -> target ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n else if ( U_FAILURE ( * err ) ) {\n args -> converter -> toULength = savebytes ;\n if ( savebytes > 0 ) {\n uprv_memcpy ( args -> converter -> toUBytes , errSource , savebytes ) ;\n }\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n * err = U_ZERO_ERROR ;\n }\n }\n }\n DEFINE_LMBCS_OPEN ( 1 ) DEFINE_LMBCS_OPEN ( 2 ) DEFINE_LMBCS_OPEN ( 3 ) DEFINE_LMBCS_OPEN ( 4 ) DEFINE_LMBCS_OPEN ( 5 ) DEFINE_LMBCS_OPEN ( 6 ) DEFINE_LMBCS_OPEN ( 8 ) DEFINE_LMBCS_OPEN ( 11 ) DEFINE_LMBCS_OPEN ( 16 ) DEFINE_LMBCS_OPEN ( 17 ) DEFINE_LMBCS_OPEN ( 18 )"}
{"idx": 9505, "target": 0, "func": "static void wm_errorcb ( struct bufferevent * bev , short what , void * arg ) {\n test_ok = - 2 ;\n }"}
{"idx": 9506, "target": 0, "func": "static void directory_load_cancel ( NautilusDirectory * directory ) {\n NautilusFile * file ;\n DirectoryLoadState * state ;\n state = directory -> details -> directory_load_in_progress ;\n if ( state != NULL ) {\n file = state -> load_directory_file ;\n file -> details -> loading_directory = FALSE ;\n if ( file -> details -> directory != directory ) {\n nautilus_directory_async_state_changed ( file -> details -> directory ) ;\n }\n g_cancellable_cancel ( state -> cancellable ) ;\n state -> directory = NULL ;\n directory -> details -> directory_load_in_progress = NULL ;\n async_job_end ( directory , \"file list\" ) ;\n }\n }"}
{"idx": 9507, "target": 1, "func": "static __inline__ __u64 __arch_swab64 ( __u64 val ) {\n # ifdef __i386__ union {\n struct {\n __u32 a ;\n __u32 b ;\n }\n s ;\n __u64 u ;\n }\n v ;\n v . u = val ;\n __asm__ ( \"bswapl %0 ;\n bswapl %1 ;\n xchgl %0,%1\" : \"=r\" ( v . s . a ) , \"=r\" ( v . s . b ) : \"0\" ( v . s . a ) , \"1\" ( v . s . b ) ) ;\n return v . u ;\n # else __asm__ ( \"bswapq %0\" : \"=r\" ( val ) : \"0\" ( val ) ) ;\n return val ;\n # endif }"}
{"idx": 9508, "target": 0, "func": "void vp9_idct16x16_1_add_c ( const tran_low_t * input , uint8_t * dest , int stride ) {\n int i , j ;\n tran_high_t a1 ;\n tran_low_t out = dct_const_round_shift ( input [ 0 ] * cospi_16_64 ) ;\n out = dct_const_round_shift ( out * cospi_16_64 ) ;\n a1 = ROUND_POWER_OF_TWO ( out , 6 ) ;\n for ( j = 0 ;\n j < 16 ;\n ++ j ) {\n for ( i = 0 ;\n i < 16 ;\n ++ i ) dest [ i ] = clip_pixel ( dest [ i ] + a1 ) ;\n dest += stride ;\n }\n }"}
{"idx": 9509, "target": 0, "func": "static void putu24 ( FILE * file , int val ) {\n putc ( ( val >> 16 ) & 0xff , file ) ;\n putc ( ( val >> 8 ) & 0xff , file ) ;\n putc ( val & 0xff , file ) ;\n }"}
{"idx": 9510, "target": 0, "func": "bool op_hashjoinable ( Oid opno , Oid inputtype ) {\n bool result = false ;\n HeapTuple tp ;\n TypeCacheEntry * typentry ;\n if ( opno == ARRAY_EQ_OP ) {\n typentry = lookup_type_cache ( inputtype , TYPECACHE_HASH_PROC ) ;\n if ( typentry -> hash_proc == F_HASH_ARRAY ) result = true ;\n }\n else {\n tp = SearchSysCache1 ( OPEROID , ObjectIdGetDatum ( opno ) ) ;\n if ( HeapTupleIsValid ( tp ) ) {\n Form_pg_operator optup = ( Form_pg_operator ) GETSTRUCT ( tp ) ;\n result = optup -> oprcanhash ;\n ReleaseSysCache ( tp ) ;\n }\n }\n return result ;\n }"}
{"idx": 9511, "target": 0, "func": "uint get_errcode_from_name ( const char * error_name , const char * error_end ) {\n uint tmp ;\n if ( ( tmp = get_errcode_from_name ( error_name , error_end , global_error_names ) ) ) return tmp ;\n if ( ( tmp = get_errcode_from_name ( error_name , error_end , handler_error_names ) ) ) return tmp ;\n die ( \"Unknown SQL error name '%s'\" , error_name ) ;\n }"}
{"idx": 9512, "target": 0, "func": "char * bittok2str ( register const struct tok * lp , register const char * fmt , register u_int v ) {\n return ( bittok2str_internal ( lp , fmt , v , \", \" ) ) ;\n }"}
{"idx": 9513, "target": 1, "func": "static unsigned int read_sbr_data ( AACContext * ac , SpectralBandReplication * sbr , GetBitContext * gb , int id_aac ) {\n unsigned int cnt = get_bits_count ( gb ) ;\n sbr -> id_aac = id_aac ;\n if ( id_aac == TYPE_SCE || id_aac == TYPE_CCE ) {\n if ( read_sbr_single_channel_element ( ac , sbr , gb ) ) {\n sbr_turnoff ( sbr ) ;\n return get_bits_count ( gb ) - cnt ;\n }\n }\n else if ( id_aac == TYPE_CPE ) {\n if ( read_sbr_channel_pair_element ( ac , sbr , gb ) ) {\n sbr_turnoff ( sbr ) ;\n return get_bits_count ( gb ) - cnt ;\n }\n }\n else {\n av_log ( ac -> avctx , AV_LOG_ERROR , \"Invalid bitstream - cannot apply SBR to element type %d\\n\" , id_aac ) ;\n sbr_turnoff ( sbr ) ;\n return get_bits_count ( gb ) - cnt ;\n }\n if ( get_bits1 ( gb ) ) {\n int num_bits_left = get_bits ( gb , 4 ) ;\n if ( num_bits_left == 15 ) num_bits_left += get_bits ( gb , 8 ) ;\n num_bits_left <<= 3 ;\n while ( num_bits_left > 7 ) {\n num_bits_left -= 2 ;\n read_sbr_extension ( ac , sbr , gb , get_bits ( gb , 2 ) , & num_bits_left ) ;\n }\n if ( num_bits_left < 0 ) {\n av_log ( ac -> avctx , AV_LOG_ERROR , \"SBR Extension over read.\\n\" ) ;\n }\n if ( num_bits_left > 0 ) skip_bits ( gb , num_bits_left ) ;\n }\n return get_bits_count ( gb ) - cnt ;\n }"}
{"idx": 9514, "target": 0, "func": "void nautilus_file_mark_desktop_file_executable ( GFile * file , GtkWindow * parent_window , gboolean interactive , NautilusOpCallback done_callback , gpointer done_callback_data ) {\n GTask * task ;\n MarkTrustedJob * job ;\n job = op_job_new ( MarkTrustedJob , parent_window ) ;\n job -> file = g_object_ref ( file ) ;\n job -> interactive = interactive ;\n job -> done_callback = done_callback ;\n job -> done_callback_data = done_callback_data ;\n task = g_task_new ( NULL , NULL , mark_desktop_file_executable_task_done , job ) ;\n g_task_set_task_data ( task , job , NULL ) ;\n g_task_run_in_thread ( task , mark_desktop_file_executable_task_thread_func ) ;\n g_object_unref ( task ) ;\n }"}
{"idx": 9515, "target": 0, "func": "tvbuff_t * tvb_new_composite ( void ) {\n tvbuff_t * tvb = tvb_new ( & tvb_composite_ops ) ;\n struct tvb_composite * composite_tvb = ( struct tvb_composite * ) tvb ;\n tvb_comp_t * composite = & composite_tvb -> composite ;\n composite -> tvbs = NULL ;\n composite -> start_offsets = NULL ;\n composite -> end_offsets = NULL ;\n return tvb ;\n }"}
{"idx": 9516, "target": 0, "func": "static byte * gs_heap_alloc_byte_array ( gs_memory_t * mem , uint num_elements , uint elt_size , client_name_t cname ) {\n ulong lsize = ( ulong ) num_elements * elt_size ;\n if ( lsize != ( uint ) lsize ) return 0 ;\n return gs_heap_alloc_bytes ( mem , ( uint ) lsize , cname ) ;\n }"}
{"idx": 9517, "target": 0, "func": "static void sig_complete_away ( GList * * list , WINDOW_REC * window , const char * word , const char * line , int * want_space ) {\n const char * reason ;\n g_return_if_fail ( list != NULL ) ;\n g_return_if_fail ( word != NULL ) ;\n * want_space = FALSE ;\n if ( * word == '\\0' && window -> active_server != NULL ) {\n reason = SERVER ( window -> active_server ) -> away_reason ;\n if ( reason != NULL ) {\n * list = g_list_append ( NULL , g_strdup ( reason ) ) ;\n signal_stop ( ) ;\n }\n }\n }"}
{"idx": 9518, "target": 0, "func": "static diam_avp_t * build_address_avp ( const avp_type_t * type _U_ , guint32 code , diam_vnd_t * vendor , const char * name , const value_string * vs _U_ , void * data _U_ ) {\n diam_avp_t * a = wmem_new0 ( wmem_epan_scope ( ) , diam_avp_t ) ;\n address_avp_t * t = wmem_new ( wmem_epan_scope ( ) , address_avp_t ) ;\n gint * ettp = & ( t -> ett ) ;\n a -> code = code ;\n a -> vendor = vendor ;\n a -> dissector_v16 = address_v16_avp ;\n if ( code < 256 ) {\n a -> dissector_rfc = address_v16_avp ;\n }\n else {\n a -> dissector_rfc = address_rfc_avp ;\n }\n a -> ett = - 1 ;\n a -> hf_value = - 1 ;\n a -> type_data = t ;\n t -> ett = - 1 ;\n t -> hf_address_type = - 1 ;\n t -> hf_ipv4 = - 1 ;\n t -> hf_ipv6 = - 1 ;\n t -> hf_other = - 1 ;\n basic_avp_reginfo ( a , name , FT_BYTES , BASE_NONE , NULL ) ;\n reginfo ( & ( t -> hf_address_type ) , wmem_strdup_printf ( wmem_epan_scope ( ) , \"%s Address Family\" , name ) , alnumerize ( wmem_strdup_printf ( wmem_epan_scope ( ) , \"diameter.%s.addr_family\" , name ) ) , NULL , FT_UINT16 , ( field_display_e ) ( BASE_DEC | BASE_EXT_STRING ) , & diameter_avp_data_addrfamily_vals_ext , 0 ) ;\n reginfo ( & ( t -> hf_ipv4 ) , wmem_strdup_printf ( wmem_epan_scope ( ) , \"%s Address\" , name ) , alnumerize ( wmem_strdup_printf ( wmem_epan_scope ( ) , \"diameter.%s.IPv4\" , name ) ) , NULL , FT_IPv4 , BASE_NONE , NULL , 0 ) ;\n reginfo ( & ( t -> hf_ipv6 ) , wmem_strdup_printf ( wmem_epan_scope ( ) , \"%s Address\" , name ) , alnumerize ( wmem_strdup_printf ( wmem_epan_scope ( ) , \"diameter.%s.IPv6\" , name ) ) , NULL , FT_IPv6 , BASE_NONE , NULL , 0 ) ;\n reginfo ( & ( t -> hf_other ) , wmem_strdup_printf ( wmem_epan_scope ( ) , \"%s Address\" , name ) , alnumerize ( wmem_strdup_printf ( wmem_epan_scope ( ) , \"diameter.%s.Bytes\" , name ) ) , NULL , FT_BYTES , BASE_NONE , NULL , 0 ) ;\n g_ptr_array_add ( build_dict . ett , ettp ) ;\n return a ;\n }"}
{"idx": 9519, "target": 0, "func": "static VALUE ossl_asn1obj_s_register ( VALUE self , VALUE oid , VALUE sn , VALUE ln ) {\n StringValueCStr ( oid ) ;\n StringValueCStr ( sn ) ;\n StringValueCStr ( ln ) ;\n if ( ! OBJ_create ( RSTRING_PTR ( oid ) , RSTRING_PTR ( sn ) , RSTRING_PTR ( ln ) ) ) ossl_raise ( eASN1Error , NULL ) ;\n return Qtrue ;\n }"}
{"idx": 9520, "target": 0, "func": "static void test_prepare_grant ( ) {\n int rc ;\n char query [ MAX_TEST_QUERY_LENGTH ] ;\n myheader ( \"test_prepare_grant\" ) ;\n mysql_autocommit ( mysql , TRUE ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_grant\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_grant(a tinyint primary key auto_increment)\" ) ;\n myquery ( rc ) ;\n strxmov ( query , \"GRANT INSERT, UPDATE, SELECT ON \" , current_db , \".test_grant TO 'test_grant'@\" , opt_host ? opt_host : \"'localhost'\" , NullS ) ;\n if ( mysql_query ( mysql , query ) ) {\n myerror ( \"GRANT failed\" ) ;\n if ( mysql_errno ( mysql ) != 1047 ) exit ( 1 ) ;\n }\n else {\n MYSQL * org_mysql = mysql , * lmysql ;\n MYSQL_STMT * stmt ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n Establishing a test connection ...\" ) ;\n if ( ! ( lmysql = mysql_client_init ( NULL ) ) ) {\n myerror ( \"mysql_client_init() failed\" ) ;\n exit ( 1 ) ;\n }\n if ( ! ( mysql_real_connect ( lmysql , opt_host , \"test_grant\" , \"\" , current_db , opt_port , opt_unix_socket , 0 ) ) ) {\n myerror ( \"connection failed\" ) ;\n mysql_close ( lmysql ) ;\n exit ( 1 ) ;\n }\n lmysql -> reconnect = 1 ;\n if ( ! opt_silent ) fprintf ( stdout , \"OK\" ) ;\n mysql = lmysql ;\n rc = mysql_query ( mysql , \"INSERT INTO test_grant VALUES(NULL)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_grant(a) VALUES(NULL)\" ) ;\n myquery ( rc ) ;\n execute_prepare_query ( \"INSERT INTO test_grant(a) VALUES(NULL)\" , 1 ) ;\n execute_prepare_query ( \"INSERT INTO test_grant VALUES(NULL)\" , 1 ) ;\n execute_prepare_query ( \"UPDATE test_grant SET a=9 WHERE a=1\" , 1 ) ;\n rc = my_stmt_result ( \"SELECT a FROM test_grant\" ) ;\n DIE_UNLESS ( rc == 4 ) ;\n rc = mysql_query ( mysql , \"DELETE FROM test_grant\" ) ;\n myquery_r ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"DELETE FROM test_grant\" ) ;\n check_stmt_r ( stmt ) ;\n rc = my_stmt_result ( \"SELECT * FROM test_grant\" ) ;\n DIE_UNLESS ( rc == 4 ) ;\n mysql_close ( lmysql ) ;\n mysql = org_mysql ;\n rc = mysql_query ( mysql , \"delete from mysql.user where User='test_grant'\" ) ;\n myquery ( rc ) ;\n DIE_UNLESS ( 1 == mysql_affected_rows ( mysql ) ) ;\n rc = mysql_query ( mysql , \"delete from mysql.tables_priv where User='test_grant'\" ) ;\n myquery ( rc ) ;\n DIE_UNLESS ( 1 == mysql_affected_rows ( mysql ) ) ;\n }\n }"}
{"idx": 9521, "target": 0, "func": "static int proc_ioctl_default ( struct usb_dev_state * ps , void __user * arg ) {\n struct usbdevfs_ioctl ctrl ;\n if ( copy_from_user ( & ctrl , arg , sizeof ( ctrl ) ) ) return - EFAULT ;\n return proc_ioctl ( ps , & ctrl ) ;\n }"}
{"idx": 9522, "target": 0, "func": "static const char * ultag_getVariant ( const ULanguageTag * langtag , int32_t idx ) {\n const char * var = NULL ;\n VariantListEntry * cur = langtag -> variants ;\n int32_t i = 0 ;\n while ( cur ) {\n if ( i == idx ) {\n var = cur -> variant ;\n break ;\n }\n cur = cur -> next ;\n i ++ ;\n }\n return var ;\n }"}
{"idx": 9523, "target": 0, "func": "static int input_stats ( TWO_PASS * p , FIRSTPASS_STATS * fps ) {\n if ( p -> stats_in >= p -> stats_in_end ) return EOF ;\n * fps = * p -> stats_in ;\n ++ p -> stats_in ;\n return 1 ;\n }"}
{"idx": 9524, "target": 0, "func": "static inline void uprv_arrayCopy ( const int8_t * src , int32_t srcStart , int8_t * dst , int32_t dstStart , int32_t count ) {\n uprv_memcpy ( dst + dstStart , src + srcStart , ( size_t ) count * sizeof ( * src ) ) ;\n }"}
{"idx": 9525, "target": 0, "func": "proto_item * proto_tree_add_oid_format ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , const guint8 * value_ptr , const char * format , ... ) {\n proto_item * pi ;\n va_list ap ;\n pi = proto_tree_add_oid ( tree , hfindex , tvb , start , length , value_ptr ) ;\n if ( pi != tree ) {\n TRY_TO_FAKE_THIS_REPR ( pi ) ;\n va_start ( ap , format ) ;\n proto_tree_set_representation ( pi , format , ap ) ;\n va_end ( ap ) ;\n }\n return pi ;\n }"}
{"idx": 9526, "target": 0, "func": "static TRBCCode xhci_alloc_device_streams ( XHCIState * xhci , unsigned int slotid , uint32_t epmask ) {\n XHCIEPContext * epctxs [ 30 ] ;\n USBEndpoint * eps [ 30 ] ;\n int i , r , nr_eps , req_nr_streams , dev_max_streams ;\n nr_eps = xhci_epmask_to_eps_with_streams ( xhci , slotid , epmask , epctxs , eps ) ;\n if ( nr_eps == 0 ) {\n return CC_SUCCESS ;\n }\n req_nr_streams = epctxs [ 0 ] -> nr_pstreams ;\n dev_max_streams = eps [ 0 ] -> max_streams ;\n for ( i = 1 ;\n i < nr_eps ;\n i ++ ) {\n if ( epctxs [ i ] -> nr_pstreams != req_nr_streams ) {\n FIXME ( \"guest streams config not identical for all eps\" ) ;\n return CC_RESOURCE_ERROR ;\n }\n if ( eps [ i ] -> max_streams != dev_max_streams ) {\n FIXME ( \"device streams config not identical for all eps\" ) ;\n return CC_RESOURCE_ERROR ;\n }\n }\n if ( req_nr_streams > dev_max_streams ) {\n req_nr_streams = dev_max_streams ;\n }\n r = usb_device_alloc_streams ( eps [ 0 ] -> dev , eps , nr_eps , req_nr_streams ) ;\n if ( r != 0 ) {\n DPRINTF ( \"xhci: alloc streams failed\\n\" ) ;\n return CC_RESOURCE_ERROR ;\n }\n return CC_SUCCESS ;\n }"}
{"idx": 9527, "target": 0, "func": "void lxc_cgroup_process_info_free ( struct cgroup_process_info * info ) {\n struct cgroup_process_info * next ;\n if ( ! info ) return ;\n next = info -> next ;\n lxc_cgroup_put_meta ( info -> meta_ref ) ;\n free ( info -> cgroup_path ) ;\n free ( info -> cgroup_path_sub ) ;\n lxc_free_array ( ( void * * ) info -> created_paths , free ) ;\n free ( info ) ;\n lxc_cgroup_process_info_free ( next ) ;\n }"}
{"idx": 9528, "target": 0, "func": "static int dissect_mswsp_smb2 ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n smb2_info_t * si = ( smb2_info_t * ) data ;\n gboolean in ;\n char * fid_name = NULL ;\n guint32 open_frame = 0 , close_frame = 0 ;\n if ( ! si ) {\n return 0 ;\n }\n if ( si -> saved ) {\n dcerpc_fetch_polhnd_data ( & si -> saved -> policy_hnd , & fid_name , NULL , & open_frame , & close_frame , pinfo -> num ) ;\n }\n if ( ! fid_name || strcmp ( fid_name , \"File: MsFteWds\" ) != 0 ) {\n return 0 ;\n }\n in = ! ( si -> flags & SMB2_FLAGS_RESPONSE ) ;\n p_add_proto_data ( wmem_file_scope ( ) , pinfo , proto_mswsp , 0 , ( void * ) & SMB2 ) ;\n return dissect_mswsp ( tvb , pinfo , tree , in , data ) ;\n }"}
{"idx": 9529, "target": 0, "func": "static double convert_one_string_to_scalar ( char * value , int rangelo , int rangehi ) {\n int slen = strlen ( value ) ;\n double num , denom , base ;\n if ( slen <= 0 ) return 0.0 ;\n if ( slen > 12 ) slen = 12 ;\n base = rangehi - rangelo + 1 ;\n num = 0.0 ;\n denom = base ;\n while ( slen -- > 0 ) {\n int ch = ( unsigned char ) * value ++ ;\n if ( ch < rangelo ) ch = rangelo - 1 ;\n else if ( ch > rangehi ) ch = rangehi + 1 ;\n num += ( ( double ) ( ch - rangelo ) ) / denom ;\n denom *= base ;\n }\n return num ;\n }"}
{"idx": 9530, "target": 1, "func": "static void spl_filesystem_object_free_storage ( void * object TSRMLS_DC ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) object ;\n if ( intern -> oth_handler && intern -> oth_handler -> dtor ) {\n intern -> oth_handler -> dtor ( intern TSRMLS_CC ) ;\n }\n zend_object_std_dtor ( & intern -> std TSRMLS_CC ) ;\n if ( intern -> _path ) {\n efree ( intern -> _path ) ;\n }\n if ( intern -> file_name ) {\n efree ( intern -> file_name ) ;\n }\n switch ( intern -> type ) {\n case SPL_FS_INFO : break ;\n case SPL_FS_DIR : if ( intern -> u . dir . dirp ) {\n php_stream_close ( intern -> u . dir . dirp ) ;\n intern -> u . dir . dirp = NULL ;\n }\n if ( intern -> u . dir . sub_path ) {\n efree ( intern -> u . dir . sub_path ) ;\n }\n break ;\n case SPL_FS_FILE : if ( intern -> u . file . stream ) {\n if ( intern -> u . file . zcontext ) {\n }\n if ( ! intern -> u . file . stream -> is_persistent ) {\n php_stream_free ( intern -> u . file . stream , PHP_STREAM_FREE_CLOSE ) ;\n }\n else {\n php_stream_free ( intern -> u . file . stream , PHP_STREAM_FREE_CLOSE_PERSISTENT ) ;\n }\n if ( intern -> u . file . open_mode ) {\n efree ( intern -> u . file . open_mode ) ;\n }\n if ( intern -> orig_path ) {\n efree ( intern -> orig_path ) ;\n }\n }\n spl_filesystem_file_free_line ( intern TSRMLS_CC ) ;\n break ;\n }\n {\n zend_object_iterator * iterator ;\n iterator = ( zend_object_iterator * ) spl_filesystem_object_to_iterator ( intern ) ;\n if ( iterator -> data != NULL ) {\n iterator -> data = NULL ;\n iterator -> funcs -> dtor ( iterator TSRMLS_CC ) ;\n }\n }\n efree ( object ) ;\n }"}
{"idx": 9531, "target": 0, "func": "int zifelse ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n check_proc ( * op ) ;\n check_proc ( op [ - 1 ] ) ;\n check_type ( op [ - 2 ] , t_boolean ) ;\n check_estack ( 1 ) ;\n ++ esp ;\n if ( op [ - 2 ] . value . boolval ) {\n ref_assign ( esp , op - 1 ) ;\n }\n else {\n ref_assign ( esp , op ) ;\n }\n esfile_check_cache ( ) ;\n pop ( 3 ) ;\n return o_push_estack ;\n }"}
{"idx": 9532, "target": 0, "func": "static void fast_rgb_to_cmyk ( fz_context * ctx , fz_pixmap * dst , fz_pixmap * src , fz_colorspace * prf , const fz_default_colorspaces * default_cs , const fz_color_params * color_params , int copy_spots ) {\n unsigned char * s = src -> samples ;\n unsigned char * d = dst -> samples ;\n size_t w = src -> w ;\n int h = src -> h ;\n int sn = src -> n ;\n int ss = src -> s ;\n int sa = src -> alpha ;\n int dn = dst -> n ;\n int ds = dst -> s ;\n int da = dst -> alpha ;\n ptrdiff_t d_line_inc = dst -> stride - w * dn ;\n ptrdiff_t s_line_inc = src -> stride - w * sn ;\n if ( ( copy_spots || ss != ds ) || ( ! da && sa ) ) {\n assert ( \"This should never happen\" == NULL ) ;\n fz_throw ( ctx , FZ_ERROR_GENERIC , \"Cannot convert between incompatible pixmaps\" ) ;\n }\n if ( ( int ) w < 0 || h < 0 ) return ;\n if ( d_line_inc == 0 && s_line_inc == 0 ) {\n w *= h ;\n h = 1 ;\n }\n if ( ss == 0 && ds == 0 ) {\n if ( da ) {\n if ( sa ) {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n unsigned char c = s [ 0 ] ;\n unsigned char m = s [ 1 ] ;\n unsigned char y = s [ 2 ] ;\n unsigned char k = ( unsigned char ) fz_mini ( c , fz_mini ( m , y ) ) ;\n d [ 0 ] = c - k ;\n d [ 1 ] = m - k ;\n d [ 2 ] = y - k ;\n d [ 3 ] = k ;\n d [ 4 ] = s [ 3 ] ;\n s += 4 ;\n d += 5 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n else {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n unsigned char c = s [ 0 ] ;\n unsigned char m = s [ 1 ] ;\n unsigned char y = s [ 2 ] ;\n unsigned char k = ( unsigned char ) fz_mini ( c , fz_mini ( m , y ) ) ;\n d [ 0 ] = c - k ;\n d [ 1 ] = m - k ;\n d [ 2 ] = y - k ;\n d [ 3 ] = k ;\n d [ 4 ] = 255 ;\n s += 3 ;\n d += 5 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n }\n else {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n unsigned char c = s [ 0 ] ;\n unsigned char m = s [ 1 ] ;\n unsigned char y = s [ 2 ] ;\n unsigned char k = ( unsigned char ) fz_mini ( c , fz_mini ( m , y ) ) ;\n d [ 0 ] = c - k ;\n d [ 1 ] = m - k ;\n d [ 2 ] = y - k ;\n d [ 3 ] = k ;\n s += 3 ;\n d += 4 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n }\n else if ( copy_spots ) {\n while ( h -- ) {\n int i ;\n size_t ww = w ;\n while ( ww -- ) {\n unsigned char c = s [ 0 ] ;\n unsigned char m = s [ 1 ] ;\n unsigned char y = s [ 2 ] ;\n unsigned char k = ( unsigned char ) fz_mini ( c , fz_mini ( m , y ) ) ;\n d [ 0 ] = c - k ;\n d [ 1 ] = m - k ;\n d [ 2 ] = y - k ;\n d [ 3 ] = k ;\n s += 3 ;\n d += 4 ;\n for ( i = ss ;\n i > 0 ;\n i -- ) * d ++ = * s ++ ;\n if ( da ) * d ++ = sa ? * s ++ : 255 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n else {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n unsigned char c = s [ 0 ] ;\n unsigned char m = s [ 1 ] ;\n unsigned char y = s [ 2 ] ;\n unsigned char k = ( unsigned char ) ( 255 - fz_maxi ( c , fz_maxi ( m , y ) ) ) ;\n d [ 0 ] = c + k ;\n d [ 1 ] = m + k ;\n d [ 2 ] = y + k ;\n d [ 3 ] = 255 - k ;\n s += sn ;\n d += dn ;\n if ( da ) d [ - 1 ] = sa ? s [ - 1 ] : 255 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n }"}
{"idx": 9533, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n TargaContext * const s = avctx -> priv_data ;\n AVFrame * const p = data ;\n uint8_t * dst ;\n int stride ;\n int idlen , compr , y , w , h , bpp , flags , ret ;\n int first_clr , colors , csize ;\n bytestream2_init ( & s -> gb , avpkt -> data , avpkt -> size ) ;\n idlen = bytestream2_get_byte ( & s -> gb ) ;\n bytestream2_skip ( & s -> gb , 1 ) ;\n compr = bytestream2_get_byte ( & s -> gb ) ;\n first_clr = bytestream2_get_le16 ( & s -> gb ) ;\n colors = bytestream2_get_le16 ( & s -> gb ) ;\n csize = bytestream2_get_byte ( & s -> gb ) ;\n bytestream2_skip ( & s -> gb , 4 ) ;\n w = bytestream2_get_le16 ( & s -> gb ) ;\n h = bytestream2_get_le16 ( & s -> gb ) ;\n bpp = bytestream2_get_byte ( & s -> gb ) ;\n flags = bytestream2_get_byte ( & s -> gb ) ;\n bytestream2_skip ( & s -> gb , idlen ) ;\n switch ( bpp ) {\n case 8 : avctx -> pix_fmt = ( ( compr & ( ~ TGA_RLE ) ) == TGA_BW ) ? AV_PIX_FMT_GRAY8 : AV_PIX_FMT_PAL8 ;\n break ;\n case 15 : avctx -> pix_fmt = AV_PIX_FMT_RGB555LE ;\n break ;\n case 16 : avctx -> pix_fmt = AV_PIX_FMT_RGB555LE ;\n break ;\n case 24 : avctx -> pix_fmt = AV_PIX_FMT_BGR24 ;\n break ;\n case 32 : avctx -> pix_fmt = AV_PIX_FMT_BGRA ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"Bit depth %i is not supported\\n\" , bpp ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ( ret = av_image_check_size ( w , h , 0 , avctx ) ) < 0 ) return ret ;\n if ( w != avctx -> width || h != avctx -> height ) avcodec_set_dimensions ( avctx , w , h ) ;\n if ( ( ret = ff_get_buffer ( avctx , p , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( flags & 0x20 ) {\n dst = p -> data [ 0 ] ;\n stride = p -> linesize [ 0 ] ;\n }\n else {\n dst = p -> data [ 0 ] + p -> linesize [ 0 ] * ( h - 1 ) ;\n stride = - p -> linesize [ 0 ] ;\n }\n if ( colors ) {\n int pal_size , pal_sample_size ;\n if ( ( colors + first_clr ) > 256 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Incorrect palette: %i colors with offset %i\\n\" , colors , first_clr ) ;\n return AVERROR_INVALIDDATA ;\n }\n switch ( csize ) {\n case 24 : pal_sample_size = 3 ;\n break ;\n case 16 : case 15 : pal_sample_size = 2 ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"Palette entry size %i bits is not supported\\n\" , csize ) ;\n return AVERROR_INVALIDDATA ;\n }\n pal_size = colors * pal_sample_size ;\n if ( avctx -> pix_fmt != AV_PIX_FMT_PAL8 ) bytestream2_skip ( & s -> gb , pal_size ) ;\n else {\n int t ;\n uint32_t * pal = ( ( uint32_t * ) p -> data [ 1 ] ) + first_clr ;\n if ( bytestream2_get_bytes_left ( & s -> gb ) < pal_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"Not enough data to read palette\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n switch ( pal_sample_size ) {\n case 3 : for ( t = 0 ;\n t < colors ;\n t ++ ) * pal ++ = bytestream2_get_le24u ( & s -> gb ) ;\n break ;\n case 2 : for ( t = 0 ;\n t < colors ;\n t ++ ) {\n uint32_t v = bytestream2_get_le16u ( & s -> gb ) ;\n v = ( ( v & 0x7C00 ) << 9 ) | ( ( v & 0x03E0 ) << 6 ) | ( ( v & 0x001F ) << 3 ) ;\n v |= ( v & 0xE0E0E0U ) >> 5 ;\n * pal ++ = v ;\n }\n break ;\n }\n p -> palette_has_changed = 1 ;\n }\n }\n if ( ( compr & ( ~ TGA_RLE ) ) == TGA_NODATA ) {\n memset ( p -> data [ 0 ] , 0 , p -> linesize [ 0 ] * h ) ;\n }\n else {\n if ( compr & TGA_RLE ) {\n int res = targa_decode_rle ( avctx , s , dst , w , h , stride , bpp ) ;\n if ( res < 0 ) return res ;\n }\n else {\n size_t img_size = w * ( ( bpp + 1 ) >> 3 ) ;\n if ( bytestream2_get_bytes_left ( & s -> gb ) < img_size * h ) {\n av_log ( avctx , AV_LOG_ERROR , \"Not enough data available for image\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( y = 0 ;\n y < h ;\n y ++ ) {\n bytestream2_get_bufferu ( & s -> gb , dst , img_size ) ;\n dst += stride ;\n }\n }\n }\n * got_frame = 1 ;\n return avpkt -> size ;\n }"}
{"idx": 9534, "target": 0, "func": "static int bit_allocation ( IMCContext * q , IMCChannel * chctx , int stream_format_code , int freebits , int flag ) {\n int i , j ;\n const float limit = - 1.e20 ;\n float highest = 0.0 ;\n int indx ;\n int t1 = 0 ;\n int t2 = 1 ;\n float summa = 0.0 ;\n int iacc = 0 ;\n int summer = 0 ;\n int rres , cwlen ;\n float lowest = 1.e10 ;\n int low_indx = 0 ;\n float workT [ 32 ] ;\n int flg ;\n int found_indx = 0 ;\n for ( i = 0 ;\n i < BANDS ;\n i ++ ) highest = FFMAX ( highest , chctx -> flcoeffs1 [ i ] ) ;\n for ( i = 0 ;\n i < BANDS - 1 ;\n i ++ ) chctx -> flcoeffs4 [ i ] = chctx -> flcoeffs3 [ i ] - log2f ( chctx -> flcoeffs5 [ i ] ) ;\n chctx -> flcoeffs4 [ BANDS - 1 ] = limit ;\n highest = highest * 0.25 ;\n for ( i = 0 ;\n i < BANDS ;\n i ++ ) {\n indx = - 1 ;\n if ( ( band_tab [ i + 1 ] - band_tab [ i ] ) == chctx -> bandWidthT [ i ] ) indx = 0 ;\n if ( ( band_tab [ i + 1 ] - band_tab [ i ] ) > chctx -> bandWidthT [ i ] ) indx = 1 ;\n if ( ( ( band_tab [ i + 1 ] - band_tab [ i ] ) / 2 ) >= chctx -> bandWidthT [ i ] ) indx = 2 ;\n if ( indx == - 1 ) return AVERROR_INVALIDDATA ;\n chctx -> flcoeffs4 [ i ] += xTab [ ( indx * 2 + ( chctx -> flcoeffs1 [ i ] < highest ) ) * 2 + flag ] ;\n }\n if ( stream_format_code & 0x2 ) {\n chctx -> flcoeffs4 [ 0 ] = limit ;\n chctx -> flcoeffs4 [ 1 ] = limit ;\n chctx -> flcoeffs4 [ 2 ] = limit ;\n chctx -> flcoeffs4 [ 3 ] = limit ;\n }\n for ( i = ( stream_format_code & 0x2 ) ? 4 : 0 ;\n i < BANDS - 1 ;\n i ++ ) {\n iacc += chctx -> bandWidthT [ i ] ;\n summa += chctx -> bandWidthT [ i ] * chctx -> flcoeffs4 [ i ] ;\n }\n chctx -> bandWidthT [ BANDS - 1 ] = 0 ;\n summa = ( summa * 0.5 - freebits ) / iacc ;\n for ( i = 0 ;\n i < BANDS / 2 ;\n i ++ ) {\n rres = summer - freebits ;\n if ( ( rres >= - 8 ) && ( rres <= 8 ) ) break ;\n summer = 0 ;\n iacc = 0 ;\n for ( j = ( stream_format_code & 0x2 ) ? 4 : 0 ;\n j < BANDS ;\n j ++ ) {\n cwlen = av_clipf ( ( ( chctx -> flcoeffs4 [ j ] * 0.5 ) - summa + 0.5 ) , 0 , 6 ) ;\n chctx -> bitsBandT [ j ] = cwlen ;\n summer += chctx -> bandWidthT [ j ] * cwlen ;\n if ( cwlen > 0 ) iacc += chctx -> bandWidthT [ j ] ;\n }\n flg = t2 ;\n t2 = 1 ;\n if ( freebits < summer ) t2 = - 1 ;\n if ( i == 0 ) flg = t2 ;\n if ( flg != t2 ) t1 ++ ;\n summa = ( float ) ( summer - freebits ) / ( ( t1 + 1 ) * iacc ) + summa ;\n }\n for ( i = ( stream_format_code & 0x2 ) ? 4 : 0 ;\n i < BANDS ;\n i ++ ) {\n for ( j = band_tab [ i ] ;\n j < band_tab [ i + 1 ] ;\n j ++ ) chctx -> CWlengthT [ j ] = chctx -> bitsBandT [ i ] ;\n }\n if ( freebits > summer ) {\n for ( i = 0 ;\n i < BANDS ;\n i ++ ) {\n workT [ i ] = ( chctx -> bitsBandT [ i ] == 6 ) ? - 1.e20 : ( chctx -> bitsBandT [ i ] * - 2 + chctx -> flcoeffs4 [ i ] - 0.415 ) ;\n }\n highest = 0.0 ;\n do {\n if ( highest <= - 1.e20 ) break ;\n found_indx = 0 ;\n highest = - 1.e20 ;\n for ( i = 0 ;\n i < BANDS ;\n i ++ ) {\n if ( workT [ i ] > highest ) {\n highest = workT [ i ] ;\n found_indx = i ;\n }\n }\n if ( highest > - 1.e20 ) {\n workT [ found_indx ] -= 2.0 ;\n if ( ++ chctx -> bitsBandT [ found_indx ] == 6 ) workT [ found_indx ] = - 1.e20 ;\n for ( j = band_tab [ found_indx ] ;\n j < band_tab [ found_indx + 1 ] && ( freebits > summer ) ;\n j ++ ) {\n chctx -> CWlengthT [ j ] ++ ;\n summer ++ ;\n }\n }\n }\n while ( freebits > summer ) ;\n }\n if ( freebits < summer ) {\n for ( i = 0 ;\n i < BANDS ;\n i ++ ) {\n workT [ i ] = chctx -> bitsBandT [ i ] ? ( chctx -> bitsBandT [ i ] * - 2 + chctx -> flcoeffs4 [ i ] + 1.585 ) : 1.e20 ;\n }\n if ( stream_format_code & 0x2 ) {\n workT [ 0 ] = 1.e20 ;\n workT [ 1 ] = 1.e20 ;\n workT [ 2 ] = 1.e20 ;\n workT [ 3 ] = 1.e20 ;\n }\n while ( freebits < summer ) {\n lowest = 1.e10 ;\n low_indx = 0 ;\n for ( i = 0 ;\n i < BANDS ;\n i ++ ) {\n if ( workT [ i ] < lowest ) {\n lowest = workT [ i ] ;\n low_indx = i ;\n }\n }\n workT [ low_indx ] = lowest + 2.0 ;\n if ( ! -- chctx -> bitsBandT [ low_indx ] ) workT [ low_indx ] = 1.e20 ;\n for ( j = band_tab [ low_indx ] ;\n j < band_tab [ low_indx + 1 ] && ( freebits < summer ) ;\n j ++ ) {\n if ( chctx -> CWlengthT [ j ] > 0 ) {\n chctx -> CWlengthT [ j ] -- ;\n summer -- ;\n }\n }\n }\n }\n return 0 ;\n }"}
{"idx": 9535, "target": 0, "func": "int BrotliStateIsStreamStart ( const BrotliState * s ) {\n return ( s -> state == BROTLI_STATE_UNINITED && BrotliGetAvailableBits ( & s -> br ) == 0 ) ;\n }"}
{"idx": 9536, "target": 0, "func": "TupleTableSlot * ExecProject ( ProjectionInfo * projInfo , ExprDoneCond * isDone ) {\n TupleTableSlot * slot ;\n ExprContext * econtext ;\n int numSimpleVars ;\n Assert ( projInfo != NULL ) ;\n slot = projInfo -> pi_slot ;\n econtext = projInfo -> pi_exprContext ;\n if ( isDone ) * isDone = ExprSingleResult ;\n ExecClearTuple ( slot ) ;\n if ( projInfo -> pi_lastInnerVar > 0 ) slot_getsomeattrs ( econtext -> ecxt_innertuple , projInfo -> pi_lastInnerVar ) ;\n if ( projInfo -> pi_lastOuterVar > 0 ) slot_getsomeattrs ( econtext -> ecxt_outertuple , projInfo -> pi_lastOuterVar ) ;\n if ( projInfo -> pi_lastScanVar > 0 ) slot_getsomeattrs ( econtext -> ecxt_scantuple , projInfo -> pi_lastScanVar ) ;\n numSimpleVars = projInfo -> pi_numSimpleVars ;\n if ( numSimpleVars > 0 ) {\n Datum * values = slot -> tts_values ;\n bool * isnull = slot -> tts_isnull ;\n int * varSlotOffsets = projInfo -> pi_varSlotOffsets ;\n int * varNumbers = projInfo -> pi_varNumbers ;\n int i ;\n if ( projInfo -> pi_directMap ) {\n for ( i = 0 ;\n i < numSimpleVars ;\n i ++ ) {\n char * slotptr = ( ( char * ) econtext ) + varSlotOffsets [ i ] ;\n TupleTableSlot * varSlot = * ( ( TupleTableSlot * * ) slotptr ) ;\n int varNumber = varNumbers [ i ] - 1 ;\n values [ i ] = varSlot -> tts_values [ varNumber ] ;\n isnull [ i ] = varSlot -> tts_isnull [ varNumber ] ;\n }\n }\n else {\n int * varOutputCols = projInfo -> pi_varOutputCols ;\n for ( i = 0 ;\n i < numSimpleVars ;\n i ++ ) {\n char * slotptr = ( ( char * ) econtext ) + varSlotOffsets [ i ] ;\n TupleTableSlot * varSlot = * ( ( TupleTableSlot * * ) slotptr ) ;\n int varNumber = varNumbers [ i ] - 1 ;\n int varOutputCol = varOutputCols [ i ] - 1 ;\n values [ varOutputCol ] = varSlot -> tts_values [ varNumber ] ;\n isnull [ varOutputCol ] = varSlot -> tts_isnull [ varNumber ] ;\n }\n }\n }\n if ( projInfo -> pi_targetlist ) {\n if ( ! ExecTargetList ( projInfo -> pi_targetlist , slot -> tts_tupleDescriptor , econtext , slot -> tts_values , slot -> tts_isnull , projInfo -> pi_itemIsDone , isDone ) ) return slot ;\n }\n return ExecStoreVirtualTuple ( slot ) ;\n }"}
{"idx": 9537, "target": 0, "func": "static Selectivity prefix_selectivity ( PlannerInfo * root , VariableStatData * vardata , Oid vartype , Oid opfamily , Const * prefixcon ) {\n Selectivity prefixsel ;\n Oid cmpopr ;\n FmgrInfo opproc ;\n Const * greaterstrcon ;\n Selectivity eq_sel ;\n cmpopr = get_opfamily_member ( opfamily , vartype , vartype , BTGreaterEqualStrategyNumber ) ;\n if ( cmpopr == InvalidOid ) elog ( ERROR , \"no >= operator for opfamily %u\" , opfamily ) ;\n fmgr_info ( get_opcode ( cmpopr ) , & opproc ) ;\n prefixsel = ineq_histogram_selectivity ( root , vardata , & opproc , true , prefixcon -> constvalue , prefixcon -> consttype ) ;\n if ( prefixsel < 0.0 ) {\n return DEFAULT_MATCH_SEL ;\n }\n cmpopr = get_opfamily_member ( opfamily , vartype , vartype , BTLessStrategyNumber ) ;\n if ( cmpopr == InvalidOid ) elog ( ERROR , \"no < operator for opfamily %u\" , opfamily ) ;\n fmgr_info ( get_opcode ( cmpopr ) , & opproc ) ;\n greaterstrcon = make_greater_string ( prefixcon , & opproc , DEFAULT_COLLATION_OID ) ;\n if ( greaterstrcon ) {\n Selectivity topsel ;\n topsel = ineq_histogram_selectivity ( root , vardata , & opproc , false , greaterstrcon -> constvalue , greaterstrcon -> consttype ) ;\n Assert ( topsel >= 0.0 ) ;\n prefixsel = topsel + prefixsel - 1.0 ;\n }\n cmpopr = get_opfamily_member ( opfamily , vartype , vartype , BTEqualStrategyNumber ) ;\n if ( cmpopr == InvalidOid ) elog ( ERROR , \"no = operator for opfamily %u\" , opfamily ) ;\n eq_sel = var_eq_const ( vardata , cmpopr , prefixcon -> constvalue , false , true ) ;\n prefixsel = Max ( prefixsel , eq_sel ) ;\n return prefixsel ;\n }"}
{"idx": 9538, "target": 0, "func": "static bool find_cgroup_hierarchies ( struct cgroup_meta_data * meta_data , bool all_kernel_subsystems , bool all_named_subsystems , const char * * subsystem_whitelist ) {\n FILE * proc_self_cgroup ;\n char * line = NULL ;\n size_t sz = 0 ;\n int r ;\n bool bret = false ;\n size_t hierarchy_capacity = 0 ;\n proc_self_cgroup = fopen_cloexec ( \"/proc/self/cgroup\" , \"r\" ) ;\n if ( ! proc_self_cgroup ) proc_self_cgroup = fopen_cloexec ( \"/proc/1/cgroup\" , \"r\" ) ;\n if ( ! proc_self_cgroup ) return false ;\n while ( getline ( & line , & sz , proc_self_cgroup ) != - 1 ) {\n char * colon1 ;\n char * colon2 ;\n int hierarchy_number ;\n struct cgroup_hierarchy * h = NULL ;\n char * * p ;\n if ( ! line [ 0 ] ) continue ;\n colon1 = strchr ( line , ':' ) ;\n if ( ! colon1 ) continue ;\n * colon1 ++ = '\\0' ;\n colon2 = strchr ( colon1 , ':' ) ;\n if ( ! colon2 ) continue ;\n * colon2 = '\\0' ;\n colon2 = NULL ;\n hierarchy_number = strtoul ( line , & colon2 , 10 ) ;\n if ( ! colon2 || * colon2 ) continue ;\n if ( hierarchy_number > meta_data -> maximum_hierarchy ) {\n r = lxc_grow_array ( ( void * * * ) & meta_data -> hierarchies , & hierarchy_capacity , hierarchy_number + 1 , 12 ) ;\n if ( r < 0 ) goto out ;\n meta_data -> maximum_hierarchy = hierarchy_number ;\n }\n if ( meta_data -> hierarchies [ hierarchy_number ] ) goto out ;\n h = calloc ( 1 , sizeof ( struct cgroup_hierarchy ) ) ;\n if ( ! h ) goto out ;\n meta_data -> hierarchies [ hierarchy_number ] = h ;\n h -> index = hierarchy_number ;\n h -> subsystems = lxc_string_split_and_trim ( colon1 , ',' ) ;\n if ( ! h -> subsystems ) goto out ;\n if ( ! all_kernel_subsystems || ! all_named_subsystems ) {\n for ( p = h -> subsystems ;\n * p ;\n p ++ ) {\n if ( ! strncmp ( * p , \"name=\" , 5 ) ) {\n if ( all_named_subsystems || ( subsystem_whitelist && lxc_string_in_array ( * p , subsystem_whitelist ) ) ) {\n h -> used = true ;\n break ;\n }\n }\n else {\n if ( all_kernel_subsystems || ( subsystem_whitelist && lxc_string_in_array ( * p , subsystem_whitelist ) ) ) {\n h -> used = true ;\n break ;\n }\n }\n }\n }\n else {\n h -> used = true ;\n }\n }\n bret = true ;\n out : fclose ( proc_self_cgroup ) ;\n free ( line ) ;\n return bret ;\n }"}
{"idx": 9539, "target": 0, "func": "static int inode_alloc_security ( struct inode * inode ) {\n struct inode_security_struct * isec ;\n u32 sid = current_sid ( ) ;\n isec = kmem_cache_zalloc ( sel_inode_cache , GFP_NOFS ) ;\n if ( ! isec ) return - ENOMEM ;\n spin_lock_init ( & isec -> lock ) ;\n INIT_LIST_HEAD ( & isec -> list ) ;\n isec -> inode = inode ;\n isec -> sid = SECINITSID_UNLABELED ;\n isec -> sclass = SECCLASS_FILE ;\n isec -> task_sid = sid ;\n isec -> initialized = LABEL_INVALID ;\n inode -> i_security = isec ;\n return 0 ;\n }"}
{"idx": 9540, "target": 0, "func": "TEST_F ( TemplateURLParserTest , TestDictionary ) {\n ASSERT_NO_FATAL_FAILURE ( ParseFile ( \"dictionary.xml\" , nullptr ) ) ;\n ASSERT_TRUE ( template_url_ ) ;\n EXPECT_EQ ( ASCIIToUTF16 ( \"Dictionary.com\" ) , template_url_ -> short_name ( ) ) ;\n EXPECT_EQ ( GURL ( \"http://cache.lexico.com/g/d/favicon.ico\" ) , template_url_ -> favicon_url ( ) ) ;\n EXPECT_TRUE ( template_url_ -> url_ref ( ) . SupportsReplacement ( SearchTermsData ( ) ) ) ;\n EXPECT_EQ ( \"http://dictionary.reference.com/browse/{\nsearchTerms}\n?r=75\" , template_url_ -> url ( ) ) ;\n }"}
{"idx": 9541, "target": 0, "func": "static GList * get_file_list_for_launch_locations ( GList * locations ) {\n GList * files , * l ;\n LaunchLocation * location ;\n files = NULL ;\n for ( l = locations ;\n l != NULL ;\n l = l -> next ) {\n location = l -> data ;\n files = g_list_prepend ( files , nautilus_file_ref ( location -> file ) ) ;\n }\n return g_list_reverse ( files ) ;\n }"}
{"idx": 9542, "target": 0, "func": "static int proc_disconnectsignal ( struct usb_dev_state * ps , void __user * arg ) {\n struct usbdevfs_disconnectsignal ds ;\n if ( copy_from_user ( & ds , arg , sizeof ( ds ) ) ) return - EFAULT ;\n ps -> discsignr = ds . signr ;\n ps -> disccontext = ds . context ;\n return 0 ;\n }"}
{"idx": 9543, "target": 0, "func": "TSReturnCode TSVConnTunnel ( TSVConn sslp ) {\n NetVConnection * vc = reinterpret_cast < NetVConnection * > ( sslp ) ;\n SSLNetVConnection * ssl_vc = dynamic_cast < SSLNetVConnection * > ( vc ) ;\n TSReturnCode zret = TS_SUCCESS ;\n if ( nullptr != ssl_vc ) {\n ssl_vc -> hookOpRequested = SSL_HOOK_OP_TUNNEL ;\n }\n else {\n zret = TS_ERROR ;\n }\n return zret ;\n }"}
{"idx": 9544, "target": 0, "func": "static void auth_server_connection_input ( struct auth_server_connection * conn ) {\n struct istream * input ;\n const char * line , * error ;\n int ret ;\n switch ( i_stream_read ( conn -> input ) ) {\n case 0 : return ;\n case - 1 : error = conn -> input -> stream_errno != 0 ? strerror ( conn -> input -> stream_errno ) : \"EOF\" ;\n auth_server_connection_reconnect ( conn , error ) ;\n return ;\n case - 2 : i_error ( \"BUG: Auth server sent us more than %d bytes of data\" , AUTH_SERVER_CONN_MAX_LINE_LENGTH ) ;\n auth_server_connection_disconnect ( conn , \"buffer full\" ) ;\n return ;\n }\n if ( ! conn -> version_received ) {\n line = i_stream_next_line ( conn -> input ) ;\n if ( line == NULL ) return ;\n if ( strncmp ( line , \"VERSION\\t\" , 8 ) != 0 || ! str_uint_equals ( t_strcut ( line + 8 , '\\t' ) , AUTH_CLIENT_PROTOCOL_MAJOR_VERSION ) ) {\n i_error ( \"Authentication server not compatible with \" \"this client (mixed old and new binaries?)\" ) ;\n auth_server_connection_disconnect ( conn , \"incompatible server\" ) ;\n return ;\n }\n conn -> version_received = TRUE ;\n }\n input = conn -> input ;\n i_stream_ref ( input ) ;\n while ( ( line = i_stream_next_line ( input ) ) != NULL && ! input -> closed ) {\n T_BEGIN {\n ret = auth_server_connection_input_line ( conn , line ) ;\n }\n T_END ;\n if ( ret < 0 ) {\n auth_server_connection_disconnect ( conn , t_strdup_printf ( \"Received broken input: %s\" , line ) ) ;\n break ;\n }\n }\n i_stream_unref ( & input ) ;\n }"}
{"idx": 9545, "target": 0, "func": "void vp9_set_segment_data ( struct segmentation * seg , signed char * feature_data , unsigned char abs_delta ) {\n seg -> abs_delta = abs_delta ;\n vpx_memcpy ( seg -> feature_data , feature_data , sizeof ( seg -> feature_data ) ) ;\n }"}
{"idx": 9546, "target": 0, "func": "static void istr_set_insert ( GHashTable * table , const char * istr ) {\n char * key ;\n key = g_strdup ( istr ) ;\n g_hash_table_replace ( table , key , key ) ;\n }"}
{"idx": 9547, "target": 0, "func": "static off_t mspack_fmap_tell ( struct mspack_file * file ) {\n struct mspack_handle * mspack_handle = ( struct mspack_handle * ) file ;\n if ( ! mspack_handle ) return - 1 ;\n if ( mspack_handle -> type == FILETYPE_FMAP ) return mspack_handle -> offset ;\n return ( off_t ) ftell ( mspack_handle -> f ) ;\n }"}
{"idx": 9548, "target": 0, "func": "static int dissect_h245_SET_SIZE_1_256_OF_Q2931Address ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_set_of ( tvb , offset , actx , tree , hf_index , ett_h245_SET_SIZE_1_256_OF_Q2931Address , SET_SIZE_1_256_OF_Q2931Address_set_of , 1 , 256 , FALSE ) ;\n return offset ;\n }"}
{"idx": 9549, "target": 0, "func": "static int8_t getNextDynamicWindow ( SCSUData * scsu ) {\n int8_t window = scsu -> windowUse [ scsu -> nextWindowUseIndex ] ;\n if ( ++ scsu -> nextWindowUseIndex == 8 ) {\n scsu -> nextWindowUseIndex = 0 ;\n }\n return window ;\n }"}
{"idx": 9550, "target": 0, "func": "static int read_segment_id ( vp9_reader * r , const struct segmentation * seg ) {\n return vp9_read_tree ( r , vp9_segment_tree , seg -> tree_probs ) ;\n }"}
{"idx": 9551, "target": 0, "func": "static void e1000e_calc_per_desc_buf_size ( E1000ECore * core ) {\n int i ;\n core -> rx_desc_buf_size = 0 ;\n for ( i = 0 ;\n i < ARRAY_SIZE ( core -> rxbuf_sizes ) ;\n i ++ ) {\n core -> rx_desc_buf_size += core -> rxbuf_sizes [ i ] ;\n }\n }"}
{"idx": 9552, "target": 0, "func": "static void U_CALLCONV _LMBCSOpen ## n ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err ) \\ {\n _LMBCSOpenWorker ( _this , pArgs , err , n ) ;\n }\n static void _LMBCSOpenWorker ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err , ulmbcs_byte_t OptGroup ) {\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) uprv_malloc ( sizeof ( UConverterDataLMBCS ) ) ;\n _this -> extraInfo = extraInfo ;\n if ( extraInfo != NULL ) {\n UConverterNamePieces stackPieces ;\n UConverterLoadArgs stackArgs = UCNV_LOAD_ARGS_INITIALIZER ;\n ulmbcs_byte_t i ;\n uprv_memset ( extraInfo , 0 , sizeof ( UConverterDataLMBCS ) ) ;\n stackArgs . onlyTestIsLoadable = pArgs -> onlyTestIsLoadable ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST && U_SUCCESS ( * err ) ;\n i ++ ) {\n if ( OptGroupByteToCPName [ i ] != NULL ) {\n extraInfo -> OptGrpConverter [ i ] = ucnv_loadSharedData ( OptGroupByteToCPName [ i ] , & stackPieces , & stackArgs , err ) ;\n }\n }\n if ( U_FAILURE ( * err ) || pArgs -> onlyTestIsLoadable ) {\n _LMBCSClose ( _this ) ;\n return ;\n }\n extraInfo -> OptGroup = OptGroup ;\n extraInfo -> localeConverterIndex = FindLMBCSLocale ( pArgs -> locale ) ;\n }\n else {\n * err = U_MEMORY_ALLOCATION_ERROR ;\n }\n }\n U_CDECL_BEGIN static void U_CALLCONV _LMBCSClose ( UConverter * _this ) {\n if ( _this -> extraInfo != NULL ) {\n ulmbcs_byte_t Ix ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) _this -> extraInfo ;\n for ( Ix = 0 ;\n Ix <= ULMBCS_GRP_LAST ;\n Ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ Ix ] != NULL ) ucnv_unloadSharedDataIfReady ( extraInfo -> OptGrpConverter [ Ix ] ) ;\n }\n if ( ! _this -> isExtraLocal ) {\n uprv_free ( _this -> extraInfo ) ;\n _this -> extraInfo = NULL ;\n }\n }\n }\n typedef struct LMBCSClone {\n UConverter cnv ;\n UConverterDataLMBCS lmbcs ;\n }\n LMBCSClone ;\n static UConverter * U_CALLCONV _LMBCSSafeClone ( const UConverter * cnv , void * stackBuffer , int32_t * pBufferSize , UErrorCode * status ) {\n ( void ) status ;\n LMBCSClone * newLMBCS ;\n UConverterDataLMBCS * extraInfo ;\n int32_t i ;\n if ( * pBufferSize <= 0 ) {\n * pBufferSize = ( int32_t ) sizeof ( LMBCSClone ) ;\n return NULL ;\n }\n extraInfo = ( UConverterDataLMBCS * ) cnv -> extraInfo ;\n newLMBCS = ( LMBCSClone * ) stackBuffer ;\n uprv_memcpy ( & newLMBCS -> lmbcs , extraInfo , sizeof ( UConverterDataLMBCS ) ) ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST ;\n ++ i ) {\n if ( extraInfo -> OptGrpConverter [ i ] != NULL ) {\n ucnv_incrementRefCount ( extraInfo -> OptGrpConverter [ i ] ) ;\n }\n }\n newLMBCS -> cnv . extraInfo = & newLMBCS -> lmbcs ;\n newLMBCS -> cnv . isExtraLocal = TRUE ;\n return & newLMBCS -> cnv ;\n }\n static size_t LMBCSConversionWorker ( UConverterDataLMBCS * extraInfo , ulmbcs_byte_t group , ulmbcs_byte_t * pStartLMBCS , UChar * pUniChar , ulmbcs_byte_t * lastConverterIndex , UBool * groups_tried ) {\n ulmbcs_byte_t * pLMBCS = pStartLMBCS ;\n UConverterSharedData * xcnv = extraInfo -> OptGrpConverter [ group ] ;\n int bytesConverted ;\n uint32_t value ;\n ulmbcs_byte_t firstByte ;\n U_ASSERT ( xcnv ) ;\n U_ASSERT ( group < ULMBCS_GRP_UNICODE ) ;\n bytesConverted = ucnv_MBCSFromUChar32 ( xcnv , * pUniChar , & value , FALSE ) ;\n if ( bytesConverted > 0 ) {\n firstByte = ( ulmbcs_byte_t ) ( value >> ( ( bytesConverted - 1 ) * 8 ) ) ;\n }\n else {\n groups_tried [ group ] = TRUE ;\n return 0 ;\n }\n * lastConverterIndex = group ;\n U_ASSERT ( ( firstByte <= ULMBCS_C0END ) || ( firstByte >= ULMBCS_C1START ) || ( group == ULMBCS_GRP_EXCEPT ) ) ;\n if ( group != ULMBCS_GRP_EXCEPT && extraInfo -> OptGroup != group ) {\n * pLMBCS ++ = group ;\n if ( bytesConverted == 1 && group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n * pLMBCS ++ = group ;\n }\n }\n if ( bytesConverted == 1 && firstByte < 0x20 ) return 0 ;\n switch ( bytesConverted ) {\n case 4 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 24 ) ;\n U_FALLTHROUGH ;\n case 3 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 16 ) ;\n U_FALLTHROUGH ;\n case 2 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 8 ) ;\n U_FALLTHROUGH ;\n case 1 : * pLMBCS ++ = ( ulmbcs_byte_t ) value ;\n U_FALLTHROUGH ;\n default : break ;\n }\n return ( pLMBCS - pStartLMBCS ) ;\n }\n static size_t LMBCSConvertUni ( ulmbcs_byte_t * pLMBCS , UChar uniChar ) {\n uint8_t LowCh = ( uint8_t ) ( uniChar & 0x00FF ) ;\n uint8_t HighCh = ( uint8_t ) ( uniChar >> 8 ) ;\n * pLMBCS ++ = ULMBCS_GRP_UNICODE ;\n if ( LowCh == 0 ) {\n * pLMBCS ++ = ULMBCS_UNICOMPATZERO ;\n * pLMBCS ++ = HighCh ;\n }\n else {\n * pLMBCS ++ = HighCh ;\n * pLMBCS ++ = LowCh ;\n }\n return ULMBCS_UNICODE_SIZE ;\n }\n static void U_CALLCONV _LMBCSFromUnicode ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n ulmbcs_byte_t lastConverterIndex = 0 ;\n UChar uniChar ;\n ulmbcs_byte_t LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n ulmbcs_byte_t * pLMBCS ;\n int32_t bytes_written ;\n UBool groups_tried [ ULMBCS_GRP_LAST + 1 ] ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n int sourceIndex = 0 ;\n ulmbcs_byte_t OldConverterIndex = 0 ;\n while ( args -> source < args -> sourceLimit && ! U_FAILURE ( * err ) ) {\n OldConverterIndex = extraInfo -> localeConverterIndex ;\n if ( args -> target >= args -> targetLimit ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n uniChar = * ( args -> source ) ;\n bytes_written = 0 ;\n pLMBCS = LMBCS ;\n if ( ( uniChar >= 0x80 ) && ( uniChar <= 0xff ) && ( uniChar != 0xB1 ) && ( uniChar != 0xD7 ) && ( uniChar != 0xF7 ) && ( uniChar != 0xB0 ) && ( uniChar != 0xB4 ) && ( uniChar != 0xB6 ) && ( uniChar != 0xA7 ) && ( uniChar != 0xA8 ) ) {\n extraInfo -> localeConverterIndex = ULMBCS_GRP_L1 ;\n }\n if ( ( ( uniChar > ULMBCS_C0END ) && ( uniChar < ULMBCS_C1START ) ) || uniChar == 0 || uniChar == ULMBCS_HT || uniChar == ULMBCS_CR || uniChar == ULMBCS_LF || uniChar == ULMBCS_123SYSTEMRANGE ) {\n * pLMBCS ++ = ( ulmbcs_byte_t ) uniChar ;\n bytes_written = 1 ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t group = FindLMBCSUniRange ( uniChar ) ;\n if ( group == ULMBCS_GRP_UNICODE ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group == ULMBCS_GRP_CTRL ) {\n if ( uniChar <= ULMBCS_C0END ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( ULMBCS_CTRLOFFSET + uniChar ) ;\n }\n else if ( uniChar >= ULMBCS_C1START && uniChar <= ULMBCS_C1START + ULMBCS_CTRLOFFSET ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( uniChar & 0x00FF ) ;\n }\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group < ULMBCS_GRP_UNICODE ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , group , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n uprv_memset ( groups_tried , 0 , sizeof ( groups_tried ) ) ;\n if ( ( extraInfo -> OptGroup != 1 ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> OptGroup ) ) ) {\n if ( extraInfo -> localeConverterIndex < ULMBCS_DOUBLEOPTGROUP_START ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_L1 , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n else {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && ( extraInfo -> localeConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> localeConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written && ( lastConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , lastConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , lastConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t grp_start ;\n ulmbcs_byte_t grp_end ;\n ulmbcs_byte_t grp_ix ;\n grp_start = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_DOUBLEOPTGROUP_START : ULMBCS_GRP_L1 ) ;\n grp_end = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_GRP_LAST : ULMBCS_GRP_TH ) ;\n if ( group == ULMBCS_AMBIGUOUS_ALL ) {\n grp_start = ULMBCS_GRP_L1 ;\n grp_end = ULMBCS_GRP_LAST ;\n }\n for ( grp_ix = grp_start ;\n grp_ix <= grp_end && ! bytes_written ;\n grp_ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ grp_ix ] && ! groups_tried [ grp_ix ] ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , grp_ix , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && grp_start == ULMBCS_GRP_L1 ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n }\n }\n args -> source ++ ;\n pLMBCS = LMBCS ;\n while ( args -> target < args -> targetLimit && bytes_written -- ) {\n * ( args -> target ) ++ = * pLMBCS ++ ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = sourceIndex ;\n }\n }\n sourceIndex ++ ;\n if ( bytes_written > 0 ) {\n uint8_t * pErrorBuffer = args -> converter -> charErrorBuffer ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n args -> converter -> charErrorBufferLength = ( int8_t ) bytes_written ;\n while ( bytes_written -- ) {\n * pErrorBuffer ++ = * pLMBCS ++ ;\n }\n }\n extraInfo -> localeConverterIndex = OldConverterIndex ;\n }\n }\n static UChar GetUniFromLMBCSUni ( char const * * ppLMBCSin ) {\n uint8_t HighCh = * ( * ppLMBCSin ) ++ ;\n uint8_t LowCh = * ( * ppLMBCSin ) ++ ;\n if ( HighCh == ULMBCS_UNICOMPATZERO ) {\n HighCh = LowCh ;\n LowCh = 0 ;\n }\n return ( UChar ) ( ( HighCh << 8 ) | LowCh ) ;\n }\n # define CHECK_SOURCE_LIMIT ( index ) if ( args -> source + index > args -> sourceLimit ) {\n * err = U_TRUNCATED_CHAR_FOUND ;\n args -> source = args -> sourceLimit ;\n return 0xffff ;\n }\n static UChar32 U_CALLCONV _LMBCSGetNextUCharWorker ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n UChar32 uniChar = 0 ;\n ulmbcs_byte_t CurByte ;\n if ( args -> source >= args -> sourceLimit ) {\n * err = U_ILLEGAL_ARGUMENT_ERROR ;\n return 0xffff ;\n }\n CurByte = * ( ( ulmbcs_byte_t * ) ( args -> source ++ ) ) ;\n if ( ( ( CurByte > ULMBCS_C0END ) && ( CurByte < ULMBCS_C1START ) ) || ( CurByte == 0 ) || CurByte == ULMBCS_HT || CurByte == ULMBCS_CR || CurByte == ULMBCS_LF || CurByte == ULMBCS_123SYSTEMRANGE ) {\n uniChar = CurByte ;\n }\n else {\n UConverterDataLMBCS * extraInfo ;\n ulmbcs_byte_t group ;\n UConverterSharedData * cnv ;\n if ( CurByte == ULMBCS_GRP_CTRL ) {\n ulmbcs_byte_t C0C1byte ;\n CHECK_SOURCE_LIMIT ( 1 ) ;\n C0C1byte = * ( args -> source ) ++ ;\n uniChar = ( C0C1byte < ULMBCS_C1START ) ? C0C1byte - ULMBCS_CTRLOFFSET : C0C1byte ;\n }\n else if ( CurByte == ULMBCS_GRP_UNICODE ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n return GetUniFromLMBCSUni ( & ( args -> source ) ) ;\n }\n else if ( CurByte <= ULMBCS_CTRLOFFSET ) {\n group = CurByte ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n if ( group > ULMBCS_GRP_LAST || ( cnv = extraInfo -> OptGrpConverter [ group ] ) == NULL ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n if ( * args -> source == group ) {\n ++ args -> source ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 1 , FALSE ) ;\n ++ args -> source ;\n }\n else {\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 2 , FALSE ) ;\n args -> source += 2 ;\n }\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n CurByte = * ( args -> source ) ++ ;\n if ( CurByte >= ULMBCS_C1START ) {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n else {\n char bytes [ 2 ] ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n cnv = extraInfo -> OptGrpConverter [ ULMBCS_GRP_EXCEPT ] ;\n bytes [ 0 ] = group ;\n bytes [ 1 ] = CurByte ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , bytes , 2 , FALSE ) ;\n }\n }\n }\n else if ( CurByte >= ULMBCS_C1START ) {\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n group = extraInfo -> OptGroup ;\n cnv = extraInfo -> OptGrpConverter [ group ] ;\n if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n if ( ! ucnv_MBCSIsLeadByte ( cnv , CurByte ) ) {\n CHECK_SOURCE_LIMIT ( 0 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 1 , FALSE ) ;\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 2 , FALSE ) ;\n ++ args -> source ;\n }\n }\n else {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n }\n }\n return uniChar ;\n }\n static void U_CALLCONV _LMBCSToUnicodeWithOffsets ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n char LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n UChar uniChar ;\n const char * saveSource ;\n const char * pStartLMBCS = args -> source ;\n const char * errSource = NULL ;\n int8_t savebytes = 0 ;\n while ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit > args -> target ) {\n saveSource = args -> source ;\n if ( args -> converter -> toULength ) {\n const char * saveSourceLimit ;\n size_t size_old = args -> converter -> toULength ;\n size_t size_new_maybe_1 = sizeof ( LMBCS ) - size_old ;\n size_t size_new_maybe_2 = args -> sourceLimit - args -> source ;\n size_t size_new = ( size_new_maybe_1 < size_new_maybe_2 ) ? size_new_maybe_1 : size_new_maybe_2 ;\n uprv_memcpy ( LMBCS , args -> converter -> toUBytes , size_old ) ;\n uprv_memcpy ( LMBCS + size_old , args -> source , size_new ) ;\n saveSourceLimit = args -> sourceLimit ;\n args -> source = errSource = LMBCS ;\n args -> sourceLimit = LMBCS + size_old + size_new ;\n savebytes = ( int8_t ) ( size_old + size_new ) ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n args -> source = saveSource + ( ( args -> source - LMBCS ) - size_old ) ;\n args -> sourceLimit = saveSourceLimit ;\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n args -> converter -> toULength = savebytes ;\n uprv_memcpy ( args -> converter -> toUBytes , LMBCS , savebytes ) ;\n args -> source = args -> sourceLimit ;\n * err = U_ZERO_ERROR ;\n return ;\n }\n else {\n args -> converter -> toULength = 0 ;\n }\n }\n else {\n errSource = saveSource ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n savebytes = ( int8_t ) ( args -> source - saveSource ) ;\n }\n if ( U_SUCCESS ( * err ) ) {\n if ( uniChar < 0xfffe ) {\n * ( args -> target ) ++ = uniChar ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = ( int32_t ) ( saveSource - pStartLMBCS ) ;\n }\n }\n else if ( uniChar == 0xfffe ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n }\n if ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit <= args -> target ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n else if ( U_FAILURE ( * err ) ) {\n args -> converter -> toULength = savebytes ;\n if ( savebytes > 0 ) {\n uprv_memcpy ( args -> converter -> toUBytes , errSource , savebytes ) ;\n }\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n * err = U_ZERO_ERROR ;\n }\n }\n }\n DEFINE_LMBCS_OPEN ( 1 )"}
{"idx": 9553, "target": 0, "func": "bool contain_nonstrict_functions ( Node * clause ) {\n return contain_nonstrict_functions_walker ( clause , NULL ) ;\n }"}
{"idx": 9554, "target": 1, "func": "static int ipvideo_decode_block_opcode_0xE_16 ( IpvideoContext * s ) {\n int x , y ;\n uint16_t pix ;\n uint16_t * pixel_ptr = ( uint16_t * ) s -> pixel_ptr ;\n pix = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n for ( y = 0 ;\n y < 8 ;\n y ++ ) {\n for ( x = 0 ;\n x < 8 ;\n x ++ ) pixel_ptr [ x ] = pix ;\n pixel_ptr += s -> stride ;\n }\n return 0 ;\n }"}
{"idx": 9555, "target": 0, "func": "static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 9556, "target": 0, "func": "static int make_ydt15_entry ( int p1 , int p2 , int16_t * ydt ) # endif {\n int lo , hi ;\n lo = ydt [ p1 ] ;\n lo += ( lo << 5 ) + ( lo << 10 ) ;\n hi = ydt [ p2 ] ;\n hi += ( hi << 5 ) + ( hi << 10 ) ;\n return ( lo + ( hi << 16 ) ) << 1 ;\n }"}
{"idx": 9557, "target": 0, "func": "static PyObject * _cbson_decode_all ( PyObject * self , PyObject * args ) {\n unsigned int size ;\n Py_ssize_t total_size ;\n const char * string ;\n PyObject * bson ;\n PyObject * dict ;\n PyObject * result ;\n PyObject * as_class = ( PyObject * ) & PyDict_Type ;\n unsigned char tz_aware = 1 ;\n unsigned char uuid_subtype = 3 ;\n if ( ! PyArg_ParseTuple ( args , \"O|Obb\" , & bson , & as_class , & tz_aware , & uuid_subtype ) ) {\n return NULL ;\n }\n # if PY_MAJOR_VERSION >= 3 if ( ! PyBytes_Check ( bson ) ) {\n PyErr_SetString ( PyExc_TypeError , \"argument to decode_all must be a bytes object\" ) ;\n # else if ( ! PyString_Check ( bson ) ) {\n PyErr_SetString ( PyExc_TypeError , \"argument to decode_all must be a string\" ) ;\n # endif return NULL ;\n }\n # if PY_MAJOR_VERSION >= 3 total_size = PyBytes_Size ( bson ) ;\n string = PyBytes_AsString ( bson ) ;\n # else total_size = PyString_Size ( bson ) ;\n string = PyString_AsString ( bson ) ;\n # endif if ( ! string ) {\n return NULL ;\n }\n result = PyList_New ( 0 ) ;\n while ( total_size > 0 ) {\n if ( total_size < 5 ) {\n PyObject * InvalidBSON = _error ( \"InvalidBSON\" ) ;\n PyErr_SetString ( InvalidBSON , \"not enough data for a BSON document\" ) ;\n Py_DECREF ( InvalidBSON ) ;\n Py_DECREF ( result ) ;\n return NULL ;\n }\n memcpy ( & size , string , 4 ) ;\n if ( total_size < size ) {\n PyObject * InvalidBSON = _error ( \"InvalidBSON\" ) ;\n PyErr_SetString ( InvalidBSON , \"objsize too large\" ) ;\n Py_DECREF ( InvalidBSON ) ;\n Py_DECREF ( result ) ;\n return NULL ;\n }\n if ( string [ size - 1 ] ) {\n PyObject * InvalidBSON = _error ( \"InvalidBSON\" ) ;\n PyErr_SetString ( InvalidBSON , \"bad eoo\" ) ;\n Py_DECREF ( InvalidBSON ) ;\n Py_DECREF ( result ) ;\n return NULL ;\n }\n dict = elements_to_dict ( self , string + 4 , size - 5 , as_class , tz_aware , uuid_subtype ) ;\n if ( ! dict ) {\n Py_DECREF ( result ) ;\n return NULL ;\n }\n PyList_Append ( result , dict ) ;\n Py_DECREF ( dict ) ;\n string += size ;\n total_size -= size ;\n }\n return result ;\n }"}
{"idx": 9558, "target": 0, "func": "void qmp_memsave ( int64_t addr , int64_t size , const char * filename , bool has_cpu , int64_t cpu_index , Error * * errp ) {\n FILE * f ;\n uint32_t l ;\n CPUArchState * env ;\n CPUState * cpu ;\n uint8_t buf [ 1024 ] ;\n if ( ! has_cpu ) {\n cpu_index = 0 ;\n }\n cpu = qemu_get_cpu ( cpu_index ) ;\n if ( cpu == NULL ) {\n error_set ( errp , QERR_INVALID_PARAMETER_VALUE , \"cpu-index\" , \"a CPU number\" ) ;\n return ;\n }\n env = cpu -> env_ptr ;\n f = fopen ( filename , \"wb\" ) ;\n if ( ! f ) {\n error_setg_file_open ( errp , errno , filename ) ;\n return ;\n }\n while ( size != 0 ) {\n l = sizeof ( buf ) ;\n if ( l > size ) l = size ;\n cpu_memory_rw_debug ( env , addr , buf , l , 0 ) ;\n if ( fwrite ( buf , 1 , l , f ) != l ) {\n error_set ( errp , QERR_IO_ERROR ) ;\n goto exit ;\n }\n addr += l ;\n size -= l ;\n }\n exit : fclose ( f ) ;\n }"}
{"idx": 9559, "target": 1, "func": "static void spl_filesystem_tree_it_rewind ( zend_object_iterator * iter TSRMLS_DC ) {\n spl_filesystem_iterator * iterator = ( spl_filesystem_iterator * ) iter ;\n spl_filesystem_object * object = spl_filesystem_iterator_to_object ( iterator ) ;\n object -> u . dir . index = 0 ;\n if ( object -> u . dir . dirp ) {\n php_stream_rewinddir ( object -> u . dir . dirp ) ;\n }\n do {\n spl_filesystem_dir_read ( object TSRMLS_CC ) ;\n }\n while ( spl_filesystem_is_dot ( object -> u . dir . entry . d_name ) ) ;\n if ( iterator -> current ) {\n zval_ptr_dtor ( & iterator -> current ) ;\n iterator -> current = NULL ;\n }\n }"}
{"idx": 9560, "target": 0, "func": "static int get_search_range ( const VP9_COMMON * cm ) {\n int sr = 0 ;\n const int dim = MIN ( cm -> width , cm -> height ) ;\n while ( ( dim << sr ) < MAX_FULL_PEL_VAL ) ++ sr ;\n return sr ;\n }"}
{"idx": 9561, "target": 0, "func": "static struct usb_device * usbdev_lookup_by_devt ( dev_t devt ) {\n struct device * dev ;\n dev = bus_find_device ( & usb_bus_type , NULL , ( void * ) ( unsigned long ) devt , match_devt ) ;\n if ( ! dev ) return NULL ;\n return to_usb_device ( dev ) ;\n }"}
{"idx": 9562, "target": 1, "func": "static void pred_temp_direct_motion ( H264Context * const h , int * mb_type ) {\n int b8_stride = 2 ;\n int b4_stride = h -> b_stride ;\n int mb_xy = h -> mb_xy , mb_y = h -> mb_y ;\n int mb_type_col [ 2 ] ;\n const int16_t ( * l1mv0 ) [ 2 ] , ( * l1mv1 ) [ 2 ] ;\n const int8_t * l1ref0 , * l1ref1 ;\n const int is_b8x8 = IS_8X8 ( * mb_type ) ;\n unsigned int sub_mb_type ;\n int i8 , i4 ;\n assert ( h -> ref_list [ 1 ] [ 0 ] . f . reference & 3 ) ;\n await_reference_mb_row ( h , & h -> ref_list [ 1 ] [ 0 ] , h -> mb_y + ! ! IS_INTERLACED ( * mb_type ) ) ;\n if ( IS_INTERLACED ( h -> ref_list [ 1 ] [ 0 ] . f . mb_type [ mb_xy ] ) ) {\n if ( ! IS_INTERLACED ( * mb_type ) ) {\n mb_y = ( h -> mb_y & ~ 1 ) + h -> col_parity ;\n mb_xy = h -> mb_x + ( ( h -> mb_y & ~ 1 ) + h -> col_parity ) * h -> mb_stride ;\n b8_stride = 0 ;\n }\n else {\n mb_y += h -> col_fieldoff ;\n mb_xy += h -> mb_stride * h -> col_fieldoff ;\n }\n goto single_col ;\n }\n else {\n if ( IS_INTERLACED ( * mb_type ) ) {\n mb_y = h -> mb_y & ~ 1 ;\n mb_xy = h -> mb_x + ( h -> mb_y & ~ 1 ) * h -> mb_stride ;\n mb_type_col [ 0 ] = h -> ref_list [ 1 ] [ 0 ] . f . mb_type [ mb_xy ] ;\n mb_type_col [ 1 ] = h -> ref_list [ 1 ] [ 0 ] . f . mb_type [ mb_xy + h -> mb_stride ] ;\n b8_stride = 2 + 4 * h -> mb_stride ;\n b4_stride *= 6 ;\n if ( IS_INTERLACED ( mb_type_col [ 0 ] ) != IS_INTERLACED ( mb_type_col [ 1 ] ) ) {\n mb_type_col [ 0 ] &= ~ MB_TYPE_INTERLACED ;\n mb_type_col [ 1 ] &= ~ MB_TYPE_INTERLACED ;\n }\n sub_mb_type = MB_TYPE_16x16 | MB_TYPE_P0L0 | MB_TYPE_P0L1 | MB_TYPE_DIRECT2 ;\n if ( ( mb_type_col [ 0 ] & MB_TYPE_16x16_OR_INTRA ) && ( mb_type_col [ 1 ] & MB_TYPE_16x16_OR_INTRA ) && ! is_b8x8 ) {\n * mb_type |= MB_TYPE_16x8 | MB_TYPE_L0L1 | MB_TYPE_DIRECT2 ;\n }\n else {\n * mb_type |= MB_TYPE_8x8 | MB_TYPE_L0L1 ;\n }\n }\n else {\n single_col : mb_type_col [ 0 ] = mb_type_col [ 1 ] = h -> ref_list [ 1 ] [ 0 ] . f . mb_type [ mb_xy ] ;\n sub_mb_type = MB_TYPE_16x16 | MB_TYPE_P0L0 | MB_TYPE_P0L1 | MB_TYPE_DIRECT2 ;\n if ( ! is_b8x8 && ( mb_type_col [ 0 ] & MB_TYPE_16x16_OR_INTRA ) ) {\n * mb_type |= MB_TYPE_16x16 | MB_TYPE_P0L0 | MB_TYPE_P0L1 | MB_TYPE_DIRECT2 ;\n }\n else if ( ! is_b8x8 && ( mb_type_col [ 0 ] & ( MB_TYPE_16x8 | MB_TYPE_8x16 ) ) ) {\n * mb_type |= MB_TYPE_L0L1 | MB_TYPE_DIRECT2 | ( mb_type_col [ 0 ] & ( MB_TYPE_16x8 | MB_TYPE_8x16 ) ) ;\n }\n else {\n if ( ! h -> sps . direct_8x8_inference_flag ) {\n sub_mb_type = MB_TYPE_8x8 | MB_TYPE_P0L0 | MB_TYPE_P0L1 | MB_TYPE_DIRECT2 ;\n }\n * mb_type |= MB_TYPE_8x8 | MB_TYPE_L0L1 ;\n }\n }\n }\n await_reference_mb_row ( h , & h -> ref_list [ 1 ] [ 0 ] , mb_y ) ;\n l1mv0 = & h -> ref_list [ 1 ] [ 0 ] . f . motion_val [ 0 ] [ h -> mb2b_xy [ mb_xy ] ] ;\n l1mv1 = & h -> ref_list [ 1 ] [ 0 ] . f . motion_val [ 1 ] [ h -> mb2b_xy [ mb_xy ] ] ;\n l1ref0 = & h -> ref_list [ 1 ] [ 0 ] . f . ref_index [ 0 ] [ 4 * mb_xy ] ;\n l1ref1 = & h -> ref_list [ 1 ] [ 0 ] . f . ref_index [ 1 ] [ 4 * mb_xy ] ;\n if ( ! b8_stride ) {\n if ( h -> mb_y & 1 ) {\n l1ref0 += 2 ;\n l1ref1 += 2 ;\n l1mv0 += 2 * b4_stride ;\n l1mv1 += 2 * b4_stride ;\n }\n }\n {\n const int * map_col_to_list0 [ 2 ] = {\n h -> map_col_to_list0 [ 0 ] , h -> map_col_to_list0 [ 1 ] }\n ;\n const int * dist_scale_factor = h -> dist_scale_factor ;\n int ref_offset ;\n if ( FRAME_MBAFF && IS_INTERLACED ( * mb_type ) ) {\n map_col_to_list0 [ 0 ] = h -> map_col_to_list0_field [ h -> mb_y & 1 ] [ 0 ] ;\n map_col_to_list0 [ 1 ] = h -> map_col_to_list0_field [ h -> mb_y & 1 ] [ 1 ] ;\n dist_scale_factor = h -> dist_scale_factor_field [ h -> mb_y & 1 ] ;\n }\n ref_offset = ( h -> ref_list [ 1 ] [ 0 ] . mbaff << 4 ) & ( mb_type_col [ 0 ] >> 3 ) ;\n if ( IS_INTERLACED ( * mb_type ) != IS_INTERLACED ( mb_type_col [ 0 ] ) ) {\n int y_shift = 2 * ! IS_INTERLACED ( * mb_type ) ;\n assert ( h -> sps . direct_8x8_inference_flag ) ;\n for ( i8 = 0 ;\n i8 < 4 ;\n i8 ++ ) {\n const int x8 = i8 & 1 ;\n const int y8 = i8 >> 1 ;\n int ref0 , scale ;\n const int16_t ( * l1mv ) [ 2 ] = l1mv0 ;\n if ( is_b8x8 && ! IS_DIRECT ( h -> sub_mb_type [ i8 ] ) ) continue ;\n h -> sub_mb_type [ i8 ] = sub_mb_type ;\n fill_rectangle ( & h -> ref_cache [ 1 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , 0 , 1 ) ;\n if ( IS_INTRA ( mb_type_col [ y8 ] ) ) {\n fill_rectangle ( & h -> ref_cache [ 0 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , 0 , 1 ) ;\n fill_rectangle ( & h -> mv_cache [ 0 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , 0 , 4 ) ;\n fill_rectangle ( & h -> mv_cache [ 1 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , 0 , 4 ) ;\n continue ;\n }\n ref0 = l1ref0 [ x8 + y8 * b8_stride ] ;\n if ( ref0 >= 0 ) ref0 = map_col_to_list0 [ 0 ] [ ref0 + ref_offset ] ;\n else {\n ref0 = map_col_to_list0 [ 1 ] [ l1ref1 [ x8 + y8 * b8_stride ] + ref_offset ] ;\n l1mv = l1mv1 ;\n }\n scale = dist_scale_factor [ ref0 ] ;\n fill_rectangle ( & h -> ref_cache [ 0 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , ref0 , 1 ) ;\n {\n const int16_t * mv_col = l1mv [ x8 * 3 + y8 * b4_stride ] ;\n int my_col = ( mv_col [ 1 ] << y_shift ) / 2 ;\n int mx = ( scale * mv_col [ 0 ] + 128 ) >> 8 ;\n int my = ( scale * my_col + 128 ) >> 8 ;\n fill_rectangle ( & h -> mv_cache [ 0 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , pack16to32 ( mx , my ) , 4 ) ;\n fill_rectangle ( & h -> mv_cache [ 1 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , pack16to32 ( mx - mv_col [ 0 ] , my - my_col ) , 4 ) ;\n }\n }\n return ;\n }\n if ( IS_16X16 ( * mb_type ) ) {\n int ref , mv0 , mv1 ;\n fill_rectangle ( & h -> ref_cache [ 1 ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , 0 , 1 ) ;\n if ( IS_INTRA ( mb_type_col [ 0 ] ) ) {\n ref = mv0 = mv1 = 0 ;\n }\n else {\n const int ref0 = l1ref0 [ 0 ] >= 0 ? map_col_to_list0 [ 0 ] [ l1ref0 [ 0 ] + ref_offset ] : map_col_to_list0 [ 1 ] [ l1ref1 [ 0 ] + ref_offset ] ;\n const int scale = dist_scale_factor [ ref0 ] ;\n const int16_t * mv_col = l1ref0 [ 0 ] >= 0 ? l1mv0 [ 0 ] : l1mv1 [ 0 ] ;\n int mv_l0 [ 2 ] ;\n mv_l0 [ 0 ] = ( scale * mv_col [ 0 ] + 128 ) >> 8 ;\n mv_l0 [ 1 ] = ( scale * mv_col [ 1 ] + 128 ) >> 8 ;\n ref = ref0 ;\n mv0 = pack16to32 ( mv_l0 [ 0 ] , mv_l0 [ 1 ] ) ;\n mv1 = pack16to32 ( mv_l0 [ 0 ] - mv_col [ 0 ] , mv_l0 [ 1 ] - mv_col [ 1 ] ) ;\n }\n fill_rectangle ( & h -> ref_cache [ 0 ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , ref , 1 ) ;\n fill_rectangle ( & h -> mv_cache [ 0 ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , mv0 , 4 ) ;\n fill_rectangle ( & h -> mv_cache [ 1 ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , mv1 , 4 ) ;\n }\n else {\n for ( i8 = 0 ;\n i8 < 4 ;\n i8 ++ ) {\n const int x8 = i8 & 1 ;\n const int y8 = i8 >> 1 ;\n int ref0 , scale ;\n const int16_t ( * l1mv ) [ 2 ] = l1mv0 ;\n if ( is_b8x8 && ! IS_DIRECT ( h -> sub_mb_type [ i8 ] ) ) continue ;\n h -> sub_mb_type [ i8 ] = sub_mb_type ;\n fill_rectangle ( & h -> ref_cache [ 1 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , 0 , 1 ) ;\n if ( IS_INTRA ( mb_type_col [ 0 ] ) ) {\n fill_rectangle ( & h -> ref_cache [ 0 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , 0 , 1 ) ;\n fill_rectangle ( & h -> mv_cache [ 0 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , 0 , 4 ) ;\n fill_rectangle ( & h -> mv_cache [ 1 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , 0 , 4 ) ;\n continue ;\n }\n assert ( b8_stride == 2 ) ;\n ref0 = l1ref0 [ i8 ] ;\n if ( ref0 >= 0 ) ref0 = map_col_to_list0 [ 0 ] [ ref0 + ref_offset ] ;\n else {\n ref0 = map_col_to_list0 [ 1 ] [ l1ref1 [ i8 ] + ref_offset ] ;\n l1mv = l1mv1 ;\n }\n scale = dist_scale_factor [ ref0 ] ;\n fill_rectangle ( & h -> ref_cache [ 0 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , ref0 , 1 ) ;\n if ( IS_SUB_8X8 ( sub_mb_type ) ) {\n const int16_t * mv_col = l1mv [ x8 * 3 + y8 * 3 * b4_stride ] ;\n int mx = ( scale * mv_col [ 0 ] + 128 ) >> 8 ;\n int my = ( scale * mv_col [ 1 ] + 128 ) >> 8 ;\n fill_rectangle ( & h -> mv_cache [ 0 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , pack16to32 ( mx , my ) , 4 ) ;\n fill_rectangle ( & h -> mv_cache [ 1 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , pack16to32 ( mx - mv_col [ 0 ] , my - mv_col [ 1 ] ) , 4 ) ;\n }\n else for ( i4 = 0 ;\n i4 < 4 ;\n i4 ++ ) {\n const int16_t * mv_col = l1mv [ x8 * 2 + ( i4 & 1 ) + ( y8 * 2 + ( i4 >> 1 ) ) * b4_stride ] ;\n int16_t * mv_l0 = h -> mv_cache [ 0 ] [ scan8 [ i8 * 4 + i4 ] ] ;\n mv_l0 [ 0 ] = ( scale * mv_col [ 0 ] + 128 ) >> 8 ;\n mv_l0 [ 1 ] = ( scale * mv_col [ 1 ] + 128 ) >> 8 ;\n AV_WN32A ( h -> mv_cache [ 1 ] [ scan8 [ i8 * 4 + i4 ] ] , pack16to32 ( mv_l0 [ 0 ] - mv_col [ 0 ] , mv_l0 [ 1 ] - mv_col [ 1 ] ) ) ;\n }\n }\n }\n }\n }"}
{"idx": 9563, "target": 0, "func": "static void setup_masks_indic ( const hb_ot_shape_plan_t * plan HB_UNUSED , hb_buffer_t * buffer , hb_font_t * font HB_UNUSED ) {\n HB_BUFFER_ALLOCATE_VAR ( buffer , indic_category ) ;\n HB_BUFFER_ALLOCATE_VAR ( buffer , indic_position ) ;\n unsigned int count = buffer -> len ;\n hb_glyph_info_t * info = buffer -> info ;\n for ( unsigned int i = 0 ;\n i < count ;\n i ++ ) set_indic_properties ( info [ i ] ) ;\n }"}
{"idx": 9564, "target": 0, "func": "static void pdf_run_TD ( fz_context * ctx , pdf_processor * proc , float tx , float ty ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_gstate * gstate = pr -> gstate + pr -> gtop ;\n gstate -> text . leading = - ty ;\n pdf_tos_translate ( & pr -> tos , tx , ty ) ;\n }"}
{"idx": 9565, "target": 0, "func": "const char * TSPluginDirGet ( void ) {\n static std : : string path = RecConfigReadPluginDir ( ) ;\n return path . c_str ( ) ;\n }"}
{"idx": 9566, "target": 0, "func": "static void encode_quant_matrix ( VC2EncContext * s ) {\n int level ;\n put_bits ( & s -> pb , 1 , s -> custom_quant_matrix ) ;\n if ( s -> custom_quant_matrix ) {\n put_vc2_ue_uint ( & s -> pb , s -> quant [ 0 ] [ 0 ] ) ;\n for ( level = 0 ;\n level < s -> wavelet_depth ;\n level ++ ) {\n put_vc2_ue_uint ( & s -> pb , s -> quant [ level ] [ 1 ] ) ;\n put_vc2_ue_uint ( & s -> pb , s -> quant [ level ] [ 2 ] ) ;\n put_vc2_ue_uint ( & s -> pb , s -> quant [ level ] [ 3 ] ) ;\n }\n }\n }"}
{"idx": 9567, "target": 0, "func": "static vpx_codec_err_t encoder_destroy ( vpx_codec_alg_priv_t * ctx ) {\n free ( ctx -> cx_data ) ;\n vp9_remove_compressor ( ctx -> cpi ) ;\n vpx_free ( ctx ) ;\n return VPX_CODEC_OK ;\n }"}
{"idx": 9568, "target": 0, "func": "TEST_F ( NativeBackendLibsecretTest , PSLMatchingNegativeDomainMismatch ) {\n EXPECT_FALSE ( CheckCredentialAvailability ( form_facebook_ , GURL ( \"http://m-facebook.com/\" ) , PasswordForm : : SCHEME_HTML , nullptr ) ) ;\n }"}
{"idx": 9569, "target": 0, "func": "void evhttp_send_reply_end ( struct evhttp_request * req ) {\n struct evhttp_connection * evcon = req -> evcon ;\n if ( evcon == NULL ) {\n evhttp_request_free ( req ) ;\n return ;\n }\n req -> userdone = 1 ;\n if ( req -> chunked ) {\n evbuffer_add ( req -> evcon -> output_buffer , \"0\\r\\n\\r\\n\" , 5 ) ;\n evhttp_write_buffer ( req -> evcon , evhttp_send_done , NULL ) ;\n req -> chunked = 0 ;\n }\n else if ( ! event_pending ( & evcon -> ev , EV_WRITE | EV_TIMEOUT , NULL ) ) {\n evhttp_send_done ( evcon , NULL ) ;\n }\n else {\n evcon -> cb = evhttp_send_done ;\n evcon -> cb_arg = NULL ;\n }\n }"}
{"idx": 9570, "target": 0, "func": "static int dissect_diameter_subscription_id_data ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n guint32 str_len ;\n switch ( subscription_id_type ) {\n case SUBSCRIPTION_ID_TYPE_IMSI : str_len = tvb_reported_length ( tvb ) ;\n dissect_e212_utf8_imsi ( tvb , pinfo , tree , 0 , str_len ) ;\n return str_len ;\n case SUBSCRIPTION_ID_TYPE_E164 : str_len = tvb_reported_length ( tvb ) ;\n dissect_e164_msisdn ( tvb , tree , 0 , str_len , E164_ENC_UTF8 ) ;\n return str_len ;\n break ;\n }\n return 0 ;\n }"}
{"idx": 9571, "target": 0, "func": "void TSHttpTxnNoActivityTimeoutSet ( TSHttpTxn txnp , int timeout ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpTransact : : State * s = & ( ( ( HttpSM * ) txnp ) -> t_state ) ;\n s -> api_txn_no_activity_timeout_value = timeout ;\n }"}
{"idx": 9572, "target": 0, "func": "static int dissect_h225_UnregistrationConfirm ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_UnregistrationConfirm , UnregistrationConfirm_sequence ) ;\n return offset ;\n }"}
{"idx": 9573, "target": 0, "func": "static void abort_request ( ngx_http_request_t * r ) {\n ngx_log_debug0 ( NGX_LOG_DEBUG_HTTP , r -> connection -> log , 0 , \"abort Passenger request\" ) ;\n }"}
{"idx": 9574, "target": 0, "func": "TEST_F ( ImmersiveModeControllerAshTest , EnabledCommands ) {\n ASSERT_FALSE ( controller ( ) -> IsEnabled ( ) ) ;\n EXPECT_TRUE ( chrome : : IsCommandEnabled ( browser ( ) , IDC_OPEN_CURRENT_URL ) ) ;\n EXPECT_TRUE ( chrome : : IsCommandEnabled ( browser ( ) , IDC_ABOUT ) ) ;\n EXPECT_TRUE ( chrome : : IsCommandEnabled ( browser ( ) , IDC_FOCUS_LOCATION ) ) ;\n ToggleFullscreen ( ) ;\n EXPECT_TRUE ( controller ( ) -> IsEnabled ( ) ) ;\n EXPECT_TRUE ( chrome : : IsCommandEnabled ( browser ( ) , IDC_OPEN_CURRENT_URL ) ) ;\n EXPECT_TRUE ( chrome : : IsCommandEnabled ( browser ( ) , IDC_ABOUT ) ) ;\n EXPECT_TRUE ( chrome : : IsCommandEnabled ( browser ( ) , IDC_FOCUS_LOCATION ) ) ;\n }"}
{"idx": 9575, "target": 0, "func": "static int decode_block ( BinkAudioContext * s , float * * out , int use_dct ) {\n int ch , i , j , k ;\n float q , quant [ 25 ] ;\n int width , coeff ;\n GetBitContext * gb = & s -> gb ;\n if ( use_dct ) skip_bits ( gb , 2 ) ;\n for ( ch = 0 ;\n ch < s -> channels ;\n ch ++ ) {\n FFTSample * coeffs = out [ ch ] ;\n if ( s -> version_b ) {\n if ( get_bits_left ( gb ) < 64 ) return AVERROR_INVALIDDATA ;\n coeffs [ 0 ] = av_int2float ( get_bits_long ( gb , 32 ) ) * s -> root ;\n coeffs [ 1 ] = av_int2float ( get_bits_long ( gb , 32 ) ) * s -> root ;\n }\n else {\n if ( get_bits_left ( gb ) < 58 ) return AVERROR_INVALIDDATA ;\n coeffs [ 0 ] = get_float ( gb ) * s -> root ;\n coeffs [ 1 ] = get_float ( gb ) * s -> root ;\n }\n if ( get_bits_left ( gb ) < s -> num_bands * 8 ) return AVERROR_INVALIDDATA ;\n for ( i = 0 ;\n i < s -> num_bands ;\n i ++ ) {\n int value = get_bits ( gb , 8 ) ;\n quant [ i ] = quant_table [ FFMIN ( value , 95 ) ] ;\n }\n k = 0 ;\n q = quant [ 0 ] ;\n i = 2 ;\n while ( i < s -> frame_len ) {\n if ( s -> version_b ) {\n j = i + 16 ;\n }\n else {\n int v = get_bits1 ( gb ) ;\n if ( v ) {\n v = get_bits ( gb , 4 ) ;\n j = i + rle_length_tab [ v ] * 8 ;\n }\n else {\n j = i + 8 ;\n }\n }\n j = FFMIN ( j , s -> frame_len ) ;\n width = get_bits ( gb , 4 ) ;\n if ( width == 0 ) {\n memset ( coeffs + i , 0 , ( j - i ) * sizeof ( * coeffs ) ) ;\n i = j ;\n while ( s -> bands [ k ] < i ) q = quant [ k ++ ] ;\n }\n else {\n while ( i < j ) {\n if ( s -> bands [ k ] == i ) q = quant [ k ++ ] ;\n coeff = get_bits ( gb , width ) ;\n if ( coeff ) {\n int v ;\n v = get_bits1 ( gb ) ;\n if ( v ) coeffs [ i ] = - q * coeff ;\n else coeffs [ i ] = q * coeff ;\n }\n else {\n coeffs [ i ] = 0.0f ;\n }\n i ++ ;\n }\n }\n }\n if ( CONFIG_BINKAUDIO_DCT_DECODER && use_dct ) {\n coeffs [ 0 ] /= 0.5 ;\n s -> trans . dct . dct_calc ( & s -> trans . dct , coeffs ) ;\n }\n else if ( CONFIG_BINKAUDIO_RDFT_DECODER ) s -> trans . rdft . rdft_calc ( & s -> trans . rdft , coeffs ) ;\n }\n for ( ch = 0 ;\n ch < s -> channels ;\n ch ++ ) {\n int j ;\n int count = s -> overlap_len * s -> channels ;\n if ( ! s -> first ) {\n j = ch ;\n for ( i = 0 ;\n i < s -> overlap_len ;\n i ++ , j += s -> channels ) out [ ch ] [ i ] = ( s -> previous [ ch ] [ i ] * ( count - j ) + out [ ch ] [ i ] * j ) / count ;\n }\n memcpy ( s -> previous [ ch ] , & out [ ch ] [ s -> frame_len - s -> overlap_len ] , s -> overlap_len * sizeof ( * s -> previous [ ch ] ) ) ;\n }\n s -> first = 0 ;\n return 0 ;\n }"}
{"idx": 9576, "target": 0, "func": "static void free_sip_info ( gpointer p ) {\n sip_calls_info_t * si = ( sip_calls_info_t * ) p ;\n g_free ( si -> call_identifier ) ;\n g_free ( si ) ;\n }"}
{"idx": 9577, "target": 0, "func": "int gs_closedevice ( gx_device * dev ) {\n int code = 0 ;\n if ( dev -> is_open ) {\n code = ( * dev_proc ( dev , close_device ) ) ( dev ) ;\n dev -> is_open = false ;\n if ( code < 0 ) return_error ( code ) ;\n }\n return code ;\n }"}
{"idx": 9578, "target": 0, "func": "static FILE * dumpcffstrings ( struct pschars * strs ) {\n FILE * file = tmpfile ( ) ;\n _dumpcffstrings ( file , strs ) ;\n PSCharsFree ( strs ) ;\n return ( file ) ;\n }"}
{"idx": 9579, "target": 0, "func": "static VALUE ossl_asn1_ ## klass ( int argc , VALUE * argv , VALUE self ) \\ {\n return rb_funcall3 ( cASN1 ## klass , rb_intern ( \"new\" ) , argc , argv ) ;\n }\n OSSL_ASN1_IMPL_FACTORY_METHOD ( Boolean ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Integer ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Enumerated ) OSSL_ASN1_IMPL_FACTORY_METHOD ( BitString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( OctetString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( UTF8String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( NumericString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( PrintableString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( T61String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( VideotexString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( IA5String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( GraphicString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( ISO64String )"}
{"idx": 9580, "target": 0, "func": "static const struct ogg_codec * ogg_find_codec ( uint8_t * buf , int size ) {\n int i ;\n for ( i = 0 ;\n ogg_codecs [ i ] ;\n i ++ ) if ( size >= ogg_codecs [ i ] -> magicsize && ! memcmp ( buf , ogg_codecs [ i ] -> magic , ogg_codecs [ i ] -> magicsize ) ) return ogg_codecs [ i ] ;\n return NULL ;\n }"}
{"idx": 9581, "target": 0, "func": "void qdev_init_gpio_in ( DeviceState * dev , qemu_irq_handler handler , int n ) {\n assert ( dev -> num_gpio_in == 0 ) ;\n dev -> num_gpio_in = n ;\n dev -> gpio_in = qemu_allocate_irqs ( handler , dev , n ) ;\n }"}
{"idx": 9582, "target": 0, "func": "TEST_F ( BrowsingDataRemoverImplTest , EarlyShutdown ) {\n BrowsingDataRemoverImpl * remover = static_cast < BrowsingDataRemoverImpl * > ( BrowsingDataRemoverFactory : : GetForBrowserContext ( GetBrowserContext ( ) ) ) ;\n InspectableCompletionObserver completion_observer ( remover ) ;\n BrowsingDataRemoverCompletionInhibitor completion_inhibitor ;\n remover -> RemoveAndReply ( base : : Time ( ) , base : : Time : : Max ( ) , BrowsingDataRemover : : REMOVE_HISTORY , BrowsingDataHelper : : UNPROTECTED_WEB , & completion_observer ) ;\n completion_inhibitor . BlockUntilNearCompletion ( ) ;\n EXPECT_TRUE ( remover -> is_removing ( ) ) ;\n EXPECT_FALSE ( completion_observer . called ( ) ) ;\n DestroyBrowserContext ( ) ;\n EXPECT_TRUE ( completion_observer . called ( ) ) ;\n completion_inhibitor . ContinueToCompletion ( ) ;\n completion_observer . BlockUntilCompletion ( ) ;\n }"}
{"idx": 9583, "target": 0, "func": "int X509_REQ_get_attr_count ( const X509_REQ * req ) {\n return X509at_get_attr_count ( req -> req_info -> attributes ) ;\n }"}
{"idx": 9584, "target": 0, "func": "static const char * name ## _get_name ( void * ctx ) \\ {\n return # name ;\n \\ }\n static const AVClass name ## _class = {\n . class_name = # name , . item_name = name ## _get_name , . option = name ## _options \\ }\n typedef struct DefaultContext {\n const AVClass * class ;\n int nokey ;\n int noprint_wrappers ;\n int nested_section [ SECTION_MAX_NB_LEVELS ] ;\n }\n DefaultContext ;\n # undef OFFSET # define OFFSET ( x ) offsetof ( DefaultContext , x ) static const AVOption default_options [ ] = {\n {\n \"noprint_wrappers\" , \"do not print headers and footers\" , OFFSET ( noprint_wrappers ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n \"nw\" , \"do not print headers and footers\" , OFFSET ( noprint_wrappers ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n \"nokey\" , \"force no key printing\" , OFFSET ( nokey ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n \"nk\" , \"force no key printing\" , OFFSET ( nokey ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n NULL }\n , }\n ;\n DEFINE_WRITER_CLASS ( default ) ;\n static inline char * upcase_string ( char * dst , size_t dst_size , const char * src ) {\n int i ;\n for ( i = 0 ;\n src [ i ] && i < dst_size - 1 ;\n i ++ ) dst [ i ] = av_toupper ( src [ i ] ) ;\n dst [ i ] = 0 ;\n return dst ;\n }\n static void default_print_section_header ( WriterContext * wctx ) {\n DefaultContext * def = wctx -> priv ;\n char buf [ 32 ] ;\n const struct section * section = wctx -> section [ wctx -> level ] ;\n const struct section * parent_section = wctx -> level ? wctx -> section [ wctx -> level - 1 ] : NULL ;\n av_bprint_clear ( & wctx -> section_pbuf [ wctx -> level ] ) ;\n if ( parent_section && ! ( parent_section -> flags & ( SECTION_FLAG_IS_WRAPPER | SECTION_FLAG_IS_ARRAY ) ) ) {\n def -> nested_section [ wctx -> level ] = 1 ;\n av_bprintf ( & wctx -> section_pbuf [ wctx -> level ] , \"%s%s:\" , wctx -> section_pbuf [ wctx -> level - 1 ] . str , upcase_string ( buf , sizeof ( buf ) , av_x_if_null ( section -> element_name , section -> name ) ) ) ;\n }\n if ( def -> noprint_wrappers || def -> nested_section [ wctx -> level ] ) return ;\n if ( ! ( section -> flags & ( SECTION_FLAG_IS_WRAPPER | SECTION_FLAG_IS_ARRAY ) ) ) printf ( \"[%s]\\n\" , upcase_string ( buf , sizeof ( buf ) , section -> name ) ) ;\n }\n static void default_print_section_footer ( WriterContext * wctx ) {\n DefaultContext * def = wctx -> priv ;\n const struct section * section = wctx -> section [ wctx -> level ] ;\n char buf [ 32 ] ;\n if ( def -> noprint_wrappers || def -> nested_section [ wctx -> level ] ) return ;\n if ( ! ( section -> flags & ( SECTION_FLAG_IS_WRAPPER | SECTION_FLAG_IS_ARRAY ) ) ) printf ( \"[/%s]\\n\" , upcase_string ( buf , sizeof ( buf ) , section -> name ) ) ;\n }\n static void default_print_str ( WriterContext * wctx , const char * key , const char * value ) {\n DefaultContext * def = wctx -> priv ;\n if ( ! def -> nokey ) printf ( \"%s%s=\" , wctx -> section_pbuf [ wctx -> level ] . str , key ) ;\n printf ( \"%s\\n\" , value ) ;\n }\n static void default_print_int ( WriterContext * wctx , const char * key , long long int value ) {\n DefaultContext * def = wctx -> priv ;\n if ( ! def -> nokey ) printf ( \"%s%s=\" , wctx -> section_pbuf [ wctx -> level ] . str , key ) ;\n printf ( \"%lld\\n\" , value ) ;\n }\n static const Writer default_writer = {\n . name = \"default\" , . priv_size = sizeof ( DefaultContext ) , . print_section_header = default_print_section_header , . print_section_footer = default_print_section_footer , . print_integer = default_print_int , . print_string = default_print_str , . flags = WRITER_FLAG_DISPLAY_OPTIONAL_FIELDS , . priv_class = & default_class , }\n ;\n static const char * c_escape_str ( AVBPrint * dst , const char * src , const char sep , void * log_ctx ) {\n const char * p ;\n for ( p = src ;\n * p ;\n p ++ ) {\n switch ( * p ) {\n case '\\b' : av_bprintf ( dst , \"%s\" , \"\\\\b\" ) ;\n break ;\n case '\\f' : av_bprintf ( dst , \"%s\" , \"\\\\f\" ) ;\n break ;\n case '\\n' : av_bprintf ( dst , \"%s\" , \"\\\\n\" ) ;\n break ;\n case '\\r' : av_bprintf ( dst , \"%s\" , \"\\\\r\" ) ;\n break ;\n case '\\\\' : av_bprintf ( dst , \"%s\" , \"\\\\\\\\\" ) ;\n break ;\n default : if ( * p == sep ) av_bprint_chars ( dst , '\\\\' , 1 ) ;\n av_bprint_chars ( dst , * p , 1 ) ;\n }\n }\n return dst -> str ;\n }\n static const char * csv_escape_str ( AVBPrint * dst , const char * src , const char sep , void * log_ctx ) {\n char meta_chars [ ] = {\n sep , '\"' , '\\n' , '\\r' , '\\0' }\n ;\n int needs_quoting = ! ! src [ strcspn ( src , meta_chars ) ] ;\n if ( needs_quoting ) av_bprint_chars ( dst , '\"' , 1 ) ;\n for ( ;\n * src ;\n src ++ ) {\n if ( * src == '\"' ) av_bprint_chars ( dst , '\"' , 1 ) ;\n av_bprint_chars ( dst , * src , 1 ) ;\n }\n if ( needs_quoting ) av_bprint_chars ( dst , '\"' , 1 ) ;\n return dst -> str ;\n }\n static const char * none_escape_str ( AVBPrint * dst , const char * src , const char sep , void * log_ctx ) {\n return src ;\n }\n typedef struct CompactContext {\n const AVClass * class ;\n char * item_sep_str ;\n char item_sep ;\n int nokey ;\n int print_section ;\n char * escape_mode_str ;\n const char * ( * escape_str ) ( AVBPrint * dst , const char * src , const char sep , void * log_ctx ) ;\n int nested_section [ SECTION_MAX_NB_LEVELS ] ;\n int has_nested_elems [ SECTION_MAX_NB_LEVELS ] ;\n int terminate_line [ SECTION_MAX_NB_LEVELS ] ;\n }\n CompactContext ;\n # undef OFFSET # define OFFSET ( x ) offsetof ( CompactContext , x ) static const AVOption compact_options [ ] = {\n {\n \"item_sep\" , \"set item separator\" , OFFSET ( item_sep_str ) , AV_OPT_TYPE_STRING , {\n . str = \"|\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"s\" , \"set item separator\" , OFFSET ( item_sep_str ) , AV_OPT_TYPE_STRING , {\n . str = \"|\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"nokey\" , \"force no key printing\" , OFFSET ( nokey ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n \"nk\" , \"force no key printing\" , OFFSET ( nokey ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n \"escape\" , \"set escape mode\" , OFFSET ( escape_mode_str ) , AV_OPT_TYPE_STRING , {\n . str = \"c\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"e\" , \"set escape mode\" , OFFSET ( escape_mode_str ) , AV_OPT_TYPE_STRING , {\n . str = \"c\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"print_section\" , \"print section name\" , OFFSET ( print_section ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n \"p\" , \"print section name\" , OFFSET ( print_section ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n NULL }\n , }\n ;\n DEFINE_WRITER_CLASS ( compact ) ;\n static av_cold int compact_init ( WriterContext * wctx ) {\n CompactContext * compact = wctx -> priv ;\n if ( strlen ( compact -> item_sep_str ) != 1 ) {\n av_log ( wctx , AV_LOG_ERROR , \"Item separator '%s' specified, but must contain a single character\\n\" , compact -> item_sep_str ) ;\n return AVERROR ( EINVAL ) ;\n }\n compact -> item_sep = compact -> item_sep_str [ 0 ] ;\n if ( ! strcmp ( compact -> escape_mode_str , \"none\" ) ) compact -> escape_str = none_escape_str ;\n else if ( ! strcmp ( compact -> escape_mode_str , \"c\" ) ) compact -> escape_str = c_escape_str ;\n else if ( ! strcmp ( compact -> escape_mode_str , \"csv\" ) ) compact -> escape_str = csv_escape_str ;\n else {\n av_log ( wctx , AV_LOG_ERROR , \"Unknown escape mode '%s'\\n\" , compact -> escape_mode_str ) ;\n return AVERROR ( EINVAL ) ;\n }\n return 0 ;\n }\n static void compact_print_section_header ( WriterContext * wctx ) {\n CompactContext * compact = wctx -> priv ;\n const struct section * section = wctx -> section [ wctx -> level ] ;\n const struct section * parent_section = wctx -> level ? wctx -> section [ wctx -> level - 1 ] : NULL ;\n compact -> terminate_line [ wctx -> level ] = 1 ;\n compact -> has_nested_elems [ wctx -> level ] = 0 ;\n av_bprint_clear ( & wctx -> section_pbuf [ wctx -> level ] ) ;\n if ( ! ( section -> flags & SECTION_FLAG_IS_ARRAY ) && parent_section && ! ( parent_section -> flags & ( SECTION_FLAG_IS_WRAPPER | SECTION_FLAG_IS_ARRAY ) ) ) {\n compact -> nested_section [ wctx -> level ] = 1 ;\n compact -> has_nested_elems [ wctx -> level - 1 ] = 1 ;\n av_bprintf ( & wctx -> section_pbuf [ wctx -> level ] , \"%s%s:\" , wctx -> section_pbuf [ wctx -> level - 1 ] . str , ( char * ) av_x_if_null ( section -> element_name , section -> name ) ) ;\n wctx -> nb_item [ wctx -> level ] = wctx -> nb_item [ wctx -> level - 1 ] ;\n }\n else {\n if ( parent_section && compact -> has_nested_elems [ wctx -> level - 1 ] && ( section -> flags & SECTION_FLAG_IS_ARRAY ) ) {\n compact -> terminate_line [ wctx -> level - 1 ] = 0 ;\n printf ( \"\\n\" ) ;\n }\n if ( compact -> print_section && ! ( section -> flags & ( SECTION_FLAG_IS_WRAPPER | SECTION_FLAG_IS_ARRAY ) ) ) printf ( \"%s%c\" , section -> name , compact -> item_sep ) ;\n }\n }\n static void compact_print_section_footer ( WriterContext * wctx ) {\n CompactContext * compact = wctx -> priv ;\n if ( ! compact -> nested_section [ wctx -> level ] && compact -> terminate_line [ wctx -> level ] && ! ( wctx -> section [ wctx -> level ] -> flags & ( SECTION_FLAG_IS_WRAPPER | SECTION_FLAG_IS_ARRAY ) ) ) printf ( \"\\n\" ) ;\n }\n static void compact_print_str ( WriterContext * wctx , const char * key , const char * value ) {\n CompactContext * compact = wctx -> priv ;\n AVBPrint buf ;\n if ( wctx -> nb_item [ wctx -> level ] ) printf ( \"%c\" , compact -> item_sep ) ;\n if ( ! compact -> nokey ) printf ( \"%s%s=\" , wctx -> section_pbuf [ wctx -> level ] . str , key ) ;\n av_bprint_init ( & buf , 1 , AV_BPRINT_SIZE_UNLIMITED ) ;\n printf ( \"%s\" , compact -> escape_str ( & buf , value , compact -> item_sep , wctx ) ) ;\n av_bprint_finalize ( & buf , NULL ) ;\n }\n static void compact_print_int ( WriterContext * wctx , const char * key , long long int value ) {\n CompactContext * compact = wctx -> priv ;\n if ( wctx -> nb_item [ wctx -> level ] ) printf ( \"%c\" , compact -> item_sep ) ;\n if ( ! compact -> nokey ) printf ( \"%s%s=\" , wctx -> section_pbuf [ wctx -> level ] . str , key ) ;\n printf ( \"%lld\" , value ) ;\n }\n static const Writer compact_writer = {\n . name = \"compact\" , . priv_size = sizeof ( CompactContext ) , . init = compact_init , . print_section_header = compact_print_section_header , . print_section_footer = compact_print_section_footer , . print_integer = compact_print_int , . print_string = compact_print_str , . flags = WRITER_FLAG_DISPLAY_OPTIONAL_FIELDS , . priv_class = & compact_class , }\n ;\n # undef OFFSET # define OFFSET ( x ) offsetof ( CompactContext , x ) static const AVOption csv_options [ ] = {\n {\n \"item_sep\" , \"set item separator\" , OFFSET ( item_sep_str ) , AV_OPT_TYPE_STRING , {\n . str = \",\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"s\" , \"set item separator\" , OFFSET ( item_sep_str ) , AV_OPT_TYPE_STRING , {\n . str = \",\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"nokey\" , \"force no key printing\" , OFFSET ( nokey ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n \"nk\" , \"force no key printing\" , OFFSET ( nokey ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n \"escape\" , \"set escape mode\" , OFFSET ( escape_mode_str ) , AV_OPT_TYPE_STRING , {\n . str = \"csv\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"e\" , \"set escape mode\" , OFFSET ( escape_mode_str ) , AV_OPT_TYPE_STRING , {\n . str = \"csv\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"print_section\" , \"print section name\" , OFFSET ( print_section ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n \"p\" , \"print section name\" , OFFSET ( print_section ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n NULL }\n , }\n ;\n DEFINE_WRITER_CLASS ( csv ) ;\n static const Writer csv_writer = {\n . name = \"csv\" , . priv_size = sizeof ( CompactContext ) , . init = compact_init , . print_section_header = compact_print_section_header , . print_section_footer = compact_print_section_footer , . print_integer = compact_print_int , . print_string = compact_print_str , . flags = WRITER_FLAG_DISPLAY_OPTIONAL_FIELDS , . priv_class = & csv_class , }\n ;\n typedef struct FlatContext {\n const AVClass * class ;\n const char * sep_str ;\n char sep ;\n int hierarchical ;\n }\n FlatContext ;\n # undef OFFSET # define OFFSET ( x ) offsetof ( FlatContext , x ) static const AVOption flat_options [ ] = {\n {\n \"sep_char\" , \"set separator\" , OFFSET ( sep_str ) , AV_OPT_TYPE_STRING , {\n . str = \".\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"s\" , \"set separator\" , OFFSET ( sep_str ) , AV_OPT_TYPE_STRING , {\n . str = \".\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"hierarchical\" , \"specify if the section specification should be hierarchical\" , OFFSET ( hierarchical ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n \"h\" , \"specify if the section specification should be hierarchical\" , OFFSET ( hierarchical ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n NULL }\n , }\n ;\n DEFINE_WRITER_CLASS ( flat ) ;\n static av_cold int flat_init ( WriterContext * wctx ) {\n FlatContext * flat = wctx -> priv ;\n if ( strlen ( flat -> sep_str ) != 1 ) {\n av_log ( wctx , AV_LOG_ERROR , \"Item separator '%s' specified, but must contain a single character\\n\" , flat -> sep_str ) ;\n return AVERROR ( EINVAL ) ;\n }\n flat -> sep = flat -> sep_str [ 0 ] ;\n return 0 ;\n }\n static const char * flat_escape_key_str ( AVBPrint * dst , const char * src , const char sep ) {\n const char * p ;\n for ( p = src ;\n * p ;\n p ++ ) {\n if ( ! ( ( * p >= '0' && * p <= '9' ) || ( * p >= 'a' && * p <= 'z' ) || ( * p >= 'A' && * p <= 'Z' ) ) ) av_bprint_chars ( dst , '_' , 1 ) ;\n else av_bprint_chars ( dst , * p , 1 ) ;\n }\n return dst -> str ;\n }\n static const char * flat_escape_value_str ( AVBPrint * dst , const char * src ) {\n const char * p ;\n for ( p = src ;\n * p ;\n p ++ ) {\n switch ( * p ) {\n case '\\n' : av_bprintf ( dst , \"%s\" , \"\\\\n\" ) ;\n break ;\n case '\\r' : av_bprintf ( dst , \"%s\" , \"\\\\r\" ) ;\n break ;\n case '\\\\' : av_bprintf ( dst , \"%s\" , \"\\\\\\\\\" ) ;\n break ;\n case '\"' : av_bprintf ( dst , \"%s\" , \"\\\\\\\"\" ) ;\n break ;\n case '`' : av_bprintf ( dst , \"%s\" , \"\\\\`\" ) ;\n break ;\n case '$' : av_bprintf ( dst , \"%s\" , \"\\\\$\" ) ;\n break ;\n default : av_bprint_chars ( dst , * p , 1 ) ;\n break ;\n }\n }\n return dst -> str ;\n }\n static void flat_print_section_header ( WriterContext * wctx ) {\n FlatContext * flat = wctx -> priv ;\n AVBPrint * buf = & wctx -> section_pbuf [ wctx -> level ] ;\n const struct section * section = wctx -> section [ wctx -> level ] ;\n const struct section * parent_section = wctx -> level ? wctx -> section [ wctx -> level - 1 ] : NULL ;\n av_bprint_clear ( buf ) ;\n if ( ! parent_section ) return ;\n av_bprintf ( buf , \"%s\" , wctx -> section_pbuf [ wctx -> level - 1 ] . str ) ;\n if ( flat -> hierarchical || ! ( section -> flags & ( SECTION_FLAG_IS_ARRAY | SECTION_FLAG_IS_WRAPPER ) ) ) {\n av_bprintf ( buf , \"%s%s\" , wctx -> section [ wctx -> level ] -> name , flat -> sep_str ) ;\n if ( parent_section -> flags & SECTION_FLAG_IS_ARRAY ) {\n int n = parent_section -> id == SECTION_ID_PACKETS_AND_FRAMES ? wctx -> nb_section_packet_frame : wctx -> nb_item [ wctx -> level - 1 ] ;\n av_bprintf ( buf , \"%d%s\" , n , flat -> sep_str ) ;\n }\n }\n }\n static void flat_print_int ( WriterContext * wctx , const char * key , long long int value ) {\n printf ( \"%s%s=%lld\\n\" , wctx -> section_pbuf [ wctx -> level ] . str , key , value ) ;\n }\n static void flat_print_str ( WriterContext * wctx , const char * key , const char * value ) {\n FlatContext * flat = wctx -> priv ;\n AVBPrint buf ;\n printf ( \"%s\" , wctx -> section_pbuf [ wctx -> level ] . str ) ;\n av_bprint_init ( & buf , 1 , AV_BPRINT_SIZE_UNLIMITED ) ;\n printf ( \"%s=\" , flat_escape_key_str ( & buf , key , flat -> sep ) ) ;\n av_bprint_clear ( & buf ) ;\n printf ( \"\\\"%s\\\"\\n\" , flat_escape_value_str ( & buf , value ) ) ;\n av_bprint_finalize ( & buf , NULL ) ;\n }\n static const Writer flat_writer = {\n . name = \"flat\" , . priv_size = sizeof ( FlatContext ) , . init = flat_init , . print_section_header = flat_print_section_header , . print_integer = flat_print_int , . print_string = flat_print_str , . flags = WRITER_FLAG_DISPLAY_OPTIONAL_FIELDS | WRITER_FLAG_PUT_PACKETS_AND_FRAMES_IN_SAME_CHAPTER , . priv_class = & flat_class , }\n ;\n typedef struct INIContext {\n const AVClass * class ;\n int hierarchical ;\n }\n INIContext ;\n # undef OFFSET # define OFFSET ( x ) offsetof ( INIContext , x ) static const AVOption ini_options [ ] = {\n {\n \"hierarchical\" , \"specify if the section specification should be hierarchical\" , OFFSET ( hierarchical ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n \"h\" , \"specify if the section specification should be hierarchical\" , OFFSET ( hierarchical ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n NULL }\n , }\n ;\n DEFINE_WRITER_CLASS ( ini )"}
{"idx": 9585, "target": 0, "func": "inline static void _slurm_rpc_requeue ( slurm_msg_t * msg ) {\n int error_code = SLURM_SUCCESS ;\n DEF_TIMERS ;\n requeue_msg_t * req_ptr = ( requeue_msg_t * ) msg -> data ;\n slurmctld_lock_t fed_read_lock = {\n NO_LOCK , NO_LOCK , NO_LOCK , NO_LOCK , READ_LOCK }\n ;\n slurmctld_lock_t job_write_lock = {\n NO_LOCK , WRITE_LOCK , WRITE_LOCK , NO_LOCK , READ_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n lock_slurmctld ( fed_read_lock ) ;\n if ( ! _route_msg_to_origin ( msg , req_ptr -> job_id_str , req_ptr -> job_id , uid ) ) {\n unlock_slurmctld ( fed_read_lock ) ;\n return ;\n }\n unlock_slurmctld ( fed_read_lock ) ;\n START_TIMER ;\n info ( \"%s: Processing RPC: REQUEST_JOB_REQUEUE from uid=%d\" , __func__ , uid ) ;\n lock_slurmctld ( job_write_lock ) ;\n if ( req_ptr -> job_id_str ) {\n error_code = job_requeue2 ( uid , req_ptr , msg , false ) ;\n }\n else {\n error_code = job_requeue ( uid , req_ptr -> job_id , msg , false , req_ptr -> state ) ;\n }\n unlock_slurmctld ( job_write_lock ) ;\n END_TIMER2 ( \"_slurm_rpc_requeue\" ) ;\n if ( error_code ) {\n if ( ! req_ptr -> job_id_str ) xstrfmtcat ( req_ptr -> job_id_str , \"%u\" , req_ptr -> job_id ) ;\n info ( \"%s: %s: %s\" , __func__ , req_ptr -> job_id_str , slurm_strerror ( error_code ) ) ;\n }\n schedule_job_save ( ) ;\n }"}
{"idx": 9586, "target": 0, "func": "TSReturnCode TSHttpTxnServerPacketTosSet ( TSHttpTxn txnp , int tos ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n if ( nullptr != sm -> ua_session ) {\n HttpServerSession * ssn = sm -> ua_session -> get_server_session ( ) ;\n if ( nullptr != ssn ) {\n NetVConnection * vc = ssn -> get_netvc ( ) ;\n if ( vc != nullptr ) {\n vc -> options . packet_tos = ( uint32_t ) tos ;\n vc -> apply_options ( ) ;\n }\n }\n }\n TSHttpTxnConfigIntSet ( txnp , TS_CONFIG_NET_SOCK_PACKET_TOS_OUT , tos ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 9587, "target": 0, "func": "static void handle_full_packet ( int tun_fd , int dns_fd , int userid ) {\n unsigned long outlen ;\n char out [ 64 * 1024 ] ;\n int touser ;\n int ret ;\n outlen = sizeof ( out ) ;\n ret = uncompress ( ( uint8_t * ) out , & outlen , ( uint8_t * ) users [ userid ] . inpacket . data , users [ userid ] . inpacket . len ) ;\n if ( ret == Z_OK ) {\n struct ip * hdr ;\n hdr = ( struct ip * ) ( out + 4 ) ;\n touser = find_user_by_ip ( hdr -> ip_dst . s_addr ) ;\n if ( touser == - 1 ) {\n write_tun ( tun_fd , out , outlen ) ;\n }\n else {\n if ( users [ touser ] . conn == CONN_DNS_NULL ) {\n if ( users [ touser ] . outpacket . len == 0 ) {\n start_new_outpacket ( touser , users [ userid ] . inpacket . data , users [ userid ] . inpacket . len ) ;\n if ( users [ touser ] . q_sendrealsoon . id != 0 ) send_chunk_or_dataless ( dns_fd , touser , & users [ touser ] . q_sendrealsoon ) ;\n else if ( users [ touser ] . q . id != 0 ) send_chunk_or_dataless ( dns_fd , touser , & users [ touser ] . q ) ;\n # ifdef OUTPACKETQ_LEN }\n else {\n save_to_outpacketq ( touser , users [ userid ] . inpacket . data , users [ userid ] . inpacket . len ) ;\n # endif }\n }\n else {\n send_raw ( dns_fd , users [ userid ] . inpacket . data , users [ userid ] . inpacket . len , touser , RAW_HDR_CMD_DATA , & users [ touser ] . q ) ;\n }\n }\n }\n else {\n if ( debug >= 1 ) fprintf ( stderr , \"Discarded data, uncompress() result: %d\\n\" , ret ) ;\n }\n users [ userid ] . inpacket . len = 0 ;\n users [ userid ] . inpacket . offset = 0 ;\n }"}
{"idx": 9588, "target": 0, "func": "TEST_F ( BrowsingDataRemoverImplTest , RemoveQuotaManagedDataForeverOnlyPersistent ) {\n # if BUILDFLAG ( ENABLE_EXTENSIONS ) CreateMockPolicy ( ) ;\n # endif BlockUntilBrowsingDataRemoved ( base : : Time ( ) , base : : Time : : Max ( ) , BrowsingDataRemover : : REMOVE_FILE_SYSTEMS | BrowsingDataRemover : : REMOVE_WEBSQL | BrowsingDataRemover : : REMOVE_APPCACHE | BrowsingDataRemover : : REMOVE_SERVICE_WORKERS | BrowsingDataRemover : : REMOVE_CACHE_STORAGE | BrowsingDataRemover : : REMOVE_INDEXEDDB , false ) ;\n EXPECT_EQ ( BrowsingDataRemover : : REMOVE_FILE_SYSTEMS | BrowsingDataRemover : : REMOVE_WEBSQL | BrowsingDataRemover : : REMOVE_APPCACHE | BrowsingDataRemover : : REMOVE_SERVICE_WORKERS | BrowsingDataRemover : : REMOVE_CACHE_STORAGE | BrowsingDataRemover : : REMOVE_INDEXEDDB , GetRemovalMask ( ) ) ;\n EXPECT_EQ ( BrowsingDataHelper : : UNPROTECTED_WEB , GetOriginTypeMask ( ) ) ;\n StoragePartitionRemovalData removal_data = GetStoragePartitionRemovalData ( ) ;\n EXPECT_EQ ( removal_data . remove_mask , StoragePartition : : REMOVE_DATA_MASK_FILE_SYSTEMS | StoragePartition : : REMOVE_DATA_MASK_WEBSQL | StoragePartition : : REMOVE_DATA_MASK_APPCACHE | StoragePartition : : REMOVE_DATA_MASK_SERVICE_WORKERS | StoragePartition : : REMOVE_DATA_MASK_CACHE_STORAGE | StoragePartition : : REMOVE_DATA_MASK_INDEXEDDB ) ;\n EXPECT_EQ ( removal_data . quota_storage_remove_mask , StoragePartition : : QUOTA_MANAGED_STORAGE_MASK_ALL ) ;\n EXPECT_TRUE ( removal_data . origin_matcher . Run ( kOrigin1 , mock_policy ( ) ) ) ;\n EXPECT_TRUE ( removal_data . origin_matcher . Run ( kOrigin2 , mock_policy ( ) ) ) ;\n EXPECT_TRUE ( removal_data . origin_matcher . Run ( kOrigin3 , mock_policy ( ) ) ) ;\n }"}
{"idx": 9589, "target": 0, "func": "static int dissect_pvfs2_attrmask ( tvbuff_t * tvb , proto_tree * tree , int offset , guint32 * pattrmask ) {\n guint32 attrmask , i ;\n proto_item * attritem ;\n proto_tree * attrtree ;\n attrmask = tvb_get_letohl ( tvb , offset ) ;\n attritem = proto_tree_add_uint ( tree , hf_pvfs_attrmask , tvb , offset , 4 , attrmask ) ;\n attrtree = proto_item_add_subtree ( attritem , ett_pvfs_attrmask ) ;\n for ( i = 0 ;\n i < 32 ;\n i ++ ) {\n if ( attrmask & ( 1 << i ) ) proto_tree_add_uint ( attrtree , hf_pvfs_attr , tvb , offset , 4 , i ) ;\n }\n offset += 4 ;\n if ( pattrmask ) * pattrmask = attrmask ;\n return offset ;\n }"}
{"idx": 9590, "target": 0, "func": "int evdns_server_request_add_reply ( struct evdns_server_request * _req , int section , const char * name , int type , int class , int ttl , int datalen , int is_name , const char * data ) {\n struct server_request * req = TO_SERVER_REQUEST ( _req ) ;\n struct server_reply_item * * itemp , * item ;\n int * countp ;\n if ( req -> response ) return ( - 1 ) ;\n switch ( section ) {\n case EVDNS_ANSWER_SECTION : itemp = & req -> answer ;\n countp = & req -> n_answer ;\n break ;\n case EVDNS_AUTHORITY_SECTION : itemp = & req -> authority ;\n countp = & req -> n_authority ;\n break ;\n case EVDNS_ADDITIONAL_SECTION : itemp = & req -> additional ;\n countp = & req -> n_additional ;\n break ;\n default : return ( - 1 ) ;\n }\n while ( * itemp ) {\n itemp = & ( ( * itemp ) -> next ) ;\n }\n item = malloc ( sizeof ( struct server_reply_item ) ) ;\n if ( ! item ) return - 1 ;\n item -> next = NULL ;\n if ( ! ( item -> name = strdup ( name ) ) ) {\n free ( item ) ;\n return - 1 ;\n }\n item -> type = type ;\n item -> dns_question_class = class ;\n item -> ttl = ttl ;\n item -> is_name = is_name != 0 ;\n item -> datalen = 0 ;\n item -> data = NULL ;\n if ( data ) {\n if ( item -> is_name ) {\n if ( ! ( item -> data = strdup ( data ) ) ) {\n free ( item -> name ) ;\n free ( item ) ;\n return - 1 ;\n }\n item -> datalen = ( u16 ) - 1 ;\n }\n else {\n if ( ! ( item -> data = malloc ( datalen ) ) ) {\n free ( item -> name ) ;\n free ( item ) ;\n return - 1 ;\n }\n item -> datalen = datalen ;\n memcpy ( item -> data , data , datalen ) ;\n }\n }\n * itemp = item ;\n ++ ( * countp ) ;\n return 0 ;\n }"}
{"idx": 9591, "target": 0, "func": "static int dissect_h245_INTEGER_1_14 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 14U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 9592, "target": 1, "func": "static void mark_trusted_task_thread_func ( GTask * task , gpointer source_object , gpointer task_data , GCancellable * cancellable ) {\n MarkTrustedJob * job = task_data ;\n CommonJob * common ;\n common = ( CommonJob * ) job ;\n nautilus_progress_info_start ( job -> common . progress ) ;\n mark_desktop_file_trusted ( common , cancellable , job -> file , job -> interactive ) ;\n }"}
{"idx": 9593, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( HttpsEngagementPageLoadMetricsBrowserTest , Navigate_Http ) {\n StartHttpServer ( ) ;\n NavigateTwiceInTabAndClose ( http_test_server_ -> GetURL ( \"/simple.html\" ) , GURL ( chrome : : kChromeUIVersionURL ) ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpEngagementHistogram , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementHistogram , 0 ) ;\n }"}
{"idx": 9594, "target": 0, "func": "static int numst ( struct subre * t , int start ) {\n int i ;\n assert ( t != NULL ) ;\n i = start ;\n t -> id = ( short ) i ++ ;\n if ( t -> left != NULL ) i = numst ( t -> left , i ) ;\n if ( t -> right != NULL ) i = numst ( t -> right , i ) ;\n return i ;\n }"}
{"idx": 9595, "target": 0, "func": "static long get_millisecs_since ( void ) {\n static long last = 0 ;\n long now = get_millisecs_now ( ) ;\n long diff = now - last ;\n last = now ;\n return diff ;\n }"}
{"idx": 9596, "target": 0, "func": "static void new_files_callback ( GObject * source_object , GAsyncResult * res , gpointer user_data ) {\n NautilusDirectory * directory ;\n GFileInfo * info ;\n NewFilesState * state ;\n state = user_data ;\n if ( state -> directory == NULL ) {\n new_files_state_unref ( state ) ;\n return ;\n }\n directory = nautilus_directory_ref ( state -> directory ) ;\n info = g_file_query_info_finish ( G_FILE ( source_object ) , res , NULL ) ;\n if ( info != NULL ) {\n directory_load_one ( directory , info ) ;\n g_object_unref ( info ) ;\n }\n new_files_state_unref ( state ) ;\n nautilus_directory_unref ( directory ) ;\n }"}
{"idx": 9597, "target": 0, "func": "static int dissect_pvfs2_lookup_path_response ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n guint32 nCount = 0 ;\n guint32 handle_count = 0 ;\n guint32 attr_count = 0 ;\n proto_tree * attr_tree ;\n offset += 4 ;\n handle_count = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_pvfs_lookup_path_response_handle_count , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n for ( nCount = 0 ;\n nCount < handle_count ;\n nCount ++ ) offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"handle\" , NULL ) ;\n offset += 4 ;\n attr_count = tvb_get_letohl ( tvb , offset ) ;\n attr_tree = proto_tree_add_subtree_format ( tree , tvb , offset , 4 , ett_pvfs_attr , NULL , \"Attribute array (total items: %d)\" , attr_count ) ;\n offset += 4 ;\n for ( nCount = 0 ;\n nCount < attr_count ;\n nCount ++ ) offset = dissect_pvfs_object_attr ( tvb , attr_tree , offset , pinfo ) ;\n return offset ;\n }"}
{"idx": 9598, "target": 0, "func": "void _hb_ot_shape_normalize ( const hb_ot_shape_plan_t * plan , hb_buffer_t * buffer , hb_font_t * font ) {\n _hb_buffer_assert_unicode_vars ( buffer ) ;\n hb_ot_shape_normalization_mode_t mode = plan -> shaper -> normalization_preference ;\n const hb_ot_shape_normalize_context_t c = {\n plan , buffer , font , buffer -> unicode , plan -> shaper -> decompose ? plan -> shaper -> decompose : decompose_unicode , plan -> shaper -> compose ? plan -> shaper -> compose : compose_unicode }\n ;\n bool always_short_circuit = mode == HB_OT_SHAPE_NORMALIZATION_MODE_NONE ;\n bool might_short_circuit = always_short_circuit || ( mode != HB_OT_SHAPE_NORMALIZATION_MODE_DECOMPOSED && mode != HB_OT_SHAPE_NORMALIZATION_MODE_COMPOSED_DIACRITICS_NO_SHORT_CIRCUIT ) ;\n unsigned int count ;\n buffer -> clear_output ( ) ;\n count = buffer -> len ;\n for ( buffer -> idx = 0 ;\n buffer -> idx < count ;\n ) {\n unsigned int end ;\n for ( end = buffer -> idx + 1 ;\n end < count ;\n end ++ ) if ( buffer -> cur ( ) . cluster != buffer -> info [ end ] . cluster ) break ;\n decompose_cluster ( & c , end , might_short_circuit , always_short_circuit ) ;\n }\n buffer -> swap_buffers ( ) ;\n count = buffer -> len ;\n for ( unsigned int i = 0 ;\n i < count ;\n i ++ ) {\n if ( _hb_glyph_info_get_modified_combining_class ( & buffer -> info [ i ] ) == 0 ) continue ;\n unsigned int end ;\n for ( end = i + 1 ;\n end < count ;\n end ++ ) if ( _hb_glyph_info_get_modified_combining_class ( & buffer -> info [ end ] ) == 0 ) break ;\n if ( end - i > 10 ) {\n i = end ;\n continue ;\n }\n hb_bubble_sort ( buffer -> info + i , end - i , compare_combining_class ) ;\n i = end ;\n }\n if ( mode == HB_OT_SHAPE_NORMALIZATION_MODE_NONE || mode == HB_OT_SHAPE_NORMALIZATION_MODE_DECOMPOSED ) return ;\n buffer -> clear_output ( ) ;\n count = buffer -> len ;\n unsigned int starter = 0 ;\n buffer -> next_glyph ( ) ;\n while ( buffer -> idx < count ) {\n hb_codepoint_t composed , glyph ;\n if ( HB_UNICODE_GENERAL_CATEGORY_IS_MARK ( _hb_glyph_info_get_general_category ( & buffer -> cur ( ) ) ) && ( starter == buffer -> out_len - 1 || _hb_glyph_info_get_modified_combining_class ( & buffer -> prev ( ) ) < _hb_glyph_info_get_modified_combining_class ( & buffer -> cur ( ) ) ) && c . compose ( & c , buffer -> out_info [ starter ] . codepoint , buffer -> cur ( ) . codepoint , & composed ) && font -> get_glyph ( composed , 0 , & glyph ) ) {\n buffer -> next_glyph ( ) ;\n if ( unlikely ( buffer -> in_error ) ) return ;\n buffer -> merge_out_clusters ( starter , buffer -> out_len ) ;\n buffer -> out_len -- ;\n buffer -> out_info [ starter ] . codepoint = composed ;\n buffer -> out_info [ starter ] . glyph_index ( ) = glyph ;\n _hb_glyph_info_set_unicode_props ( & buffer -> out_info [ starter ] , buffer -> unicode ) ;\n continue ;\n }\n buffer -> next_glyph ( ) ;\n if ( _hb_glyph_info_get_modified_combining_class ( & buffer -> prev ( ) ) == 0 ) starter = buffer -> out_len - 1 ;\n }\n buffer -> swap_buffers ( ) ;\n }"}
{"idx": 9599, "target": 0, "func": "static void prplcb_conn_disconnected ( PurpleConnection * gc ) {\n struct im_connection * ic = purple_ic_by_gc ( gc ) ;\n if ( ic != NULL ) {\n imc_logout ( ic , ! gc -> wants_to_die ) ;\n }\n }"}
{"idx": 9600, "target": 0, "func": "static struct addrinfo * make_addrinfo ( const char * address , u_short port ) {\n struct addrinfo * aitop = NULL ;\n # ifdef HAVE_GETADDRINFO struct addrinfo ai ;\n char strport [ NI_MAXSERV ] ;\n int ai_result ;\n memset ( & ai , 0 , sizeof ( ai ) ) ;\n ai . ai_family = AF_INET ;\n ai . ai_socktype = SOCK_STREAM ;\n ai . ai_flags = AI_PASSIVE ;\n evutil_snprintf ( strport , sizeof ( strport ) , \"%d\" , port ) ;\n if ( ( ai_result = getaddrinfo ( address , strport , & ai , & aitop ) ) != 0 ) {\n if ( ai_result == EAI_SYSTEM ) event_warn ( \"getaddrinfo\" ) ;\n else event_warnx ( \"getaddrinfo: %s\" , gai_strerror ( ai_result ) ) ;\n return ( NULL ) ;\n }\n # else static int cur ;\n static struct addrinfo ai [ 2 ] ;\n if ( ++ cur == 2 ) cur = 0 ;\n if ( fake_getaddrinfo ( address , & ai [ cur ] ) < 0 ) {\n event_warn ( \"fake_getaddrinfo\" ) ;\n return ( NULL ) ;\n }\n aitop = & ai [ cur ] ;\n ( ( struct sockaddr_in * ) aitop -> ai_addr ) -> sin_port = htons ( port ) ;\n # endif return ( aitop ) ;\n }"}
{"idx": 9601, "target": 0, "func": "static void config_peers ( config_tree * ptree ) {\n sockaddr_u peeraddr ;\n struct addrinfo hints ;\n peer_node * curr_peer ;\n peer_resolved_ctx * ctx ;\n u_char hmode ;\n for ( ;\n cmdline_server_count > 0 ;\n cmdline_server_count -- , cmdline_servers ++ ) {\n ZERO_SOCK ( & peeraddr ) ;\n if ( is_ip_address ( * cmdline_servers , AF_UNSPEC , & peeraddr ) ) {\n SET_PORT ( & peeraddr , NTP_PORT ) ;\n if ( is_sane_resolved_address ( & peeraddr , T_Server ) ) peer_config ( & peeraddr , NULL , NULL , MODE_CLIENT , NTP_VERSION , 0 , 0 , FLAG_IBURST , 0 , 0 , NULL ) ;\n }\n else {\n # ifdef WORKER ctx = emalloc_zero ( sizeof ( * ctx ) ) ;\n ctx -> family = AF_UNSPEC ;\n ctx -> host_mode = T_Server ;\n ctx -> hmode = MODE_CLIENT ;\n ctx -> version = NTP_VERSION ;\n ctx -> flags = FLAG_IBURST ;\n memset ( & hints , 0 , sizeof ( hints ) ) ;\n hints . ai_family = ( u_short ) ctx -> family ;\n hints . ai_socktype = SOCK_DGRAM ;\n hints . ai_protocol = IPPROTO_UDP ;\n getaddrinfo_sometime ( * cmdline_servers , \"ntp\" , & hints , INITIAL_DNS_RETRY , & peer_name_resolved , ( void * ) ctx ) ;\n # else msyslog ( LOG_ERR , \"hostname %s can not be used, please use IP address instead.\\n\" , curr_peer -> addr -> address ) ;\n # endif }\n }\n curr_peer = HEAD_PFIFO ( ptree -> peers ) ;\n for ( ;\n curr_peer != NULL ;\n curr_peer = curr_peer -> link ) {\n ZERO_SOCK ( & peeraddr ) ;\n hmode = get_correct_host_mode ( curr_peer -> host_mode ) ;\n NTP_INSIST ( hmode != 0 ) ;\n if ( T_Pool == curr_peer -> host_mode ) {\n AF ( & peeraddr ) = curr_peer -> addr -> type ;\n peer_config ( & peeraddr , curr_peer -> addr -> address , NULL , hmode , curr_peer -> peerversion , curr_peer -> minpoll , curr_peer -> maxpoll , peerflag_bits ( curr_peer ) , curr_peer -> ttl , curr_peer -> peerkey , curr_peer -> group ) ;\n }\n else if ( is_ip_address ( curr_peer -> addr -> address , curr_peer -> addr -> type , & peeraddr ) ) {\n SET_PORT ( & peeraddr , NTP_PORT ) ;\n if ( is_sane_resolved_address ( & peeraddr , curr_peer -> host_mode ) ) peer_config ( & peeraddr , NULL , NULL , hmode , curr_peer -> peerversion , curr_peer -> minpoll , curr_peer -> maxpoll , peerflag_bits ( curr_peer ) , curr_peer -> ttl , curr_peer -> peerkey , curr_peer -> group ) ;\n }\n else {\n # ifdef WORKER ctx = emalloc_zero ( sizeof ( * ctx ) ) ;\n ctx -> family = curr_peer -> addr -> type ;\n ctx -> host_mode = curr_peer -> host_mode ;\n ctx -> hmode = hmode ;\n ctx -> version = curr_peer -> peerversion ;\n ctx -> minpoll = curr_peer -> minpoll ;\n ctx -> maxpoll = curr_peer -> maxpoll ;\n ctx -> flags = peerflag_bits ( curr_peer ) ;\n ctx -> ttl = curr_peer -> ttl ;\n ctx -> keyid = curr_peer -> peerkey ;\n ctx -> group = curr_peer -> group ;\n memset ( & hints , 0 , sizeof ( hints ) ) ;\n hints . ai_family = ctx -> family ;\n hints . ai_socktype = SOCK_DGRAM ;\n hints . ai_protocol = IPPROTO_UDP ;\n getaddrinfo_sometime ( curr_peer -> addr -> address , \"ntp\" , & hints , INITIAL_DNS_RETRY , & peer_name_resolved , ctx ) ;\n # else msyslog ( LOG_ERR , \"hostname %s can not be used, please use IP address instead.\\n\" , curr_peer -> addr -> address ) ;\n # endif }\n }\n }"}
{"idx": 9602, "target": 0, "func": "TSReturnCode TSHttpArgIndexLookup ( int arg_idx , const char * * name , const char * * description ) {\n if ( sdk_sanity_check_null_ptr ( name ) == TS_SUCCESS ) {\n if ( state_arg_table [ arg_idx ] . name ) {\n * name = state_arg_table [ arg_idx ] . name ;\n if ( description ) {\n * description = state_arg_table [ arg_idx ] . description ;\n }\n return TS_SUCCESS ;\n }\n }\n return TS_ERROR ;\n }"}
{"idx": 9603, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( TabDragControllerTest , GestureEndShouldEndDragTest ) {\n AddTabAndResetBrowser ( browser ( ) ) ;\n TabStrip * tab_strip = GetTabStripForBrowser ( browser ( ) ) ;\n Tab * tab1 = tab_strip -> tab_at ( 1 ) ;\n gfx : : Point tab_1_center ( tab1 -> width ( ) / 2 , tab1 -> height ( ) / 2 ) ;\n ui : : GestureEvent gesture_tap_down ( tab_1_center . x ( ) , tab_1_center . x ( ) , 0 , base : : TimeDelta ( ) , ui : : GestureEventDetails ( ui : : ET_GESTURE_TAP_DOWN ) ) ;\n tab_strip -> MaybeStartDrag ( tab1 , gesture_tap_down , tab_strip -> GetSelectionModel ( ) ) ;\n EXPECT_TRUE ( TabDragController : : IsActive ( ) ) ;\n ui : : GestureEvent gesture_end ( tab_1_center . x ( ) , tab_1_center . x ( ) , 0 , base : : TimeDelta ( ) , ui : : GestureEventDetails ( ui : : ET_GESTURE_END ) ) ;\n tab_strip -> OnGestureEvent ( & gesture_end ) ;\n EXPECT_FALSE ( TabDragController : : IsActive ( ) ) ;\n EXPECT_FALSE ( tab_strip -> IsDragSessionActive ( ) ) ;\n }"}
{"idx": 9604, "target": 0, "func": "int gs_main_lib_open ( gs_main_instance * minst , const char * file_name , ref * pfile ) {\n i_ctx_t * i_ctx_p = minst -> i_ctx_p ;\n # define maxfn 2048 char fn [ maxfn ] ;\n uint len ;\n return lib_file_open ( & minst -> lib_path , imemory , NULL , file_name , strlen ( file_name ) , fn , maxfn , & len , pfile ) ;\n }"}
{"idx": 9605, "target": 0, "func": "static int dissect_h225_TBCD_STRING_SIZE_15_16 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_size_constrained_type ( tvb , offset , actx , tree , hf_index , dissect_h225_TBCD_STRING , \"TBCD_STRING\" , 15 , 16 , FALSE ) ;\n return offset ;\n }"}
{"idx": 9606, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FullscreenControllerInteractiveTest , DISABLED_MouseLockAndFullscreen ) {\n ASSERT_TRUE ( test_server ( ) -> Start ( ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , test_server ( ) -> GetURL ( kFullscreenMouseLockHTML ) ) ;\n ASSERT_FALSE ( IsFullscreenBubbleDisplayed ( ) ) ;\n {\n FullscreenNotificationObserver fullscreen_observer ;\n ASSERT_TRUE ( ui_test_utils : : SendKeyPressAndWait ( browser ( ) , ui : : VKEY_B , false , true , false , false , chrome : : NOTIFICATION_MOUSE_LOCK_CHANGED , content : : NotificationService : : AllSources ( ) ) ) ;\n fullscreen_observer . Wait ( ) ;\n }\n ASSERT_TRUE ( IsFullscreenBubbleDisplayed ( ) ) ;\n ASSERT_TRUE ( IsFullscreenPermissionRequested ( ) ) ;\n ASSERT_TRUE ( IsMouseLockPermissionRequested ( ) ) ;\n ASSERT_FALSE ( IsMouseLocked ( ) ) ;\n ASSERT_TRUE ( IsWindowFullscreenForTabOrPending ( ) ) ;\n {\n FullscreenNotificationObserver fullscreen_observer ;\n DenyCurrentFullscreenOrMouseLockRequest ( ) ;\n fullscreen_observer . Wait ( ) ;\n }\n ASSERT_FALSE ( IsMouseLocked ( ) ) ;\n ASSERT_FALSE ( IsWindowFullscreenForTabOrPending ( ) ) ;\n ASSERT_FALSE ( IsFullscreenPermissionRequested ( ) ) ;\n {\n FullscreenNotificationObserver fullscreen_observer ;\n ASSERT_TRUE ( ui_test_utils : : SendKeyPressAndWait ( browser ( ) , ui : : VKEY_B , false , true , false , false , chrome : : NOTIFICATION_MOUSE_LOCK_CHANGED , content : : NotificationService : : AllSources ( ) ) ) ;\n fullscreen_observer . Wait ( ) ;\n }\n ASSERT_TRUE ( IsFullscreenBubbleDisplayed ( ) ) ;\n ASSERT_TRUE ( IsFullscreenPermissionRequested ( ) ) ;\n ASSERT_TRUE ( IsMouseLockPermissionRequested ( ) ) ;\n ASSERT_FALSE ( IsMouseLocked ( ) ) ;\n ASSERT_TRUE ( IsWindowFullscreenForTabOrPending ( ) ) ;\n AcceptCurrentFullscreenOrMouseLockRequest ( ) ;\n ASSERT_TRUE ( IsMouseLocked ( ) ) ;\n ASSERT_TRUE ( IsWindowFullscreenForTabOrPending ( ) ) ;\n ASSERT_FALSE ( IsFullscreenPermissionRequested ( ) ) ;\n }"}
{"idx": 9607, "target": 0, "func": "int dtls_construct_change_cipher_spec ( SSL * s ) {\n unsigned char * p ;\n p = ( unsigned char * ) s -> init_buf -> data ;\n * p ++ = SSL3_MT_CCS ;\n s -> d1 -> handshake_write_seq = s -> d1 -> next_handshake_write_seq ;\n s -> init_num = DTLS1_CCS_HEADER_LENGTH ;\n if ( s -> version == DTLS1_BAD_VER ) {\n s -> d1 -> next_handshake_write_seq ++ ;\n s2n ( s -> d1 -> handshake_write_seq , p ) ;\n s -> init_num += 2 ;\n }\n s -> init_off = 0 ;\n dtls1_set_message_header_int ( s , SSL3_MT_CCS , 0 , s -> d1 -> handshake_write_seq , 0 , 0 ) ;\n if ( ! dtls1_buffer_message ( s , 1 ) ) {\n SSLerr ( SSL_F_DTLS_CONSTRUCT_CHANGE_CIPHER_SPEC , ERR_R_INTERNAL_ERROR ) ;\n return 0 ;\n }\n return 1 ;\n }"}
{"idx": 9608, "target": 0, "func": "int main ( int argc , char * argv [ ] ) {\n BN_CTX * ctx ;\n BIO * out ;\n char * outfile = NULL ;\n results = 0 ;\n RAND_seed ( rnd_seed , sizeof rnd_seed ) ;\n argc -- ;\n argv ++ ;\n while ( argc >= 1 ) {\n if ( strcmp ( * argv , \"-results\" ) == 0 ) results = 1 ;\n else if ( strcmp ( * argv , \"-out\" ) == 0 ) {\n if ( -- argc < 1 ) break ;\n outfile = * ( ++ argv ) ;\n }\n argc -- ;\n argv ++ ;\n }\n ctx = BN_CTX_new ( ) ;\n if ( ctx == NULL ) EXIT ( 1 ) ;\n out = BIO_new ( BIO_s_file ( ) ) ;\n if ( out == NULL ) EXIT ( 1 ) ;\n if ( outfile == NULL ) {\n BIO_set_fp ( out , stdout , BIO_NOCLOSE ) ;\n }\n else {\n if ( ! BIO_write_filename ( out , outfile ) ) {\n perror ( outfile ) ;\n EXIT ( 1 ) ;\n }\n }\n if ( ! results ) BIO_puts ( out , \"obase=16\\nibase=16\\n\" ) ;\n message ( out , \"BN_add\" ) ;\n if ( ! test_add ( out ) ) goto err ;\n ( void ) BIO_flush ( out ) ;\n message ( out , \"BN_sub\" ) ;\n if ( ! test_sub ( out ) ) goto err ;\n ( void ) BIO_flush ( out ) ;\n message ( out , \"BN_lshift1\" ) ;\n if ( ! test_lshift1 ( out ) ) goto err ;\n ( void ) BIO_flush ( out ) ;\n message ( out , \"BN_lshift (fixed)\" ) ;\n if ( ! test_lshift ( out , ctx , BN_bin2bn ( lst , sizeof ( lst ) - 1 , NULL ) ) ) goto err ;\n ( void ) BIO_flush ( out ) ;\n message ( out , \"BN_lshift\" ) ;\n if ( ! test_lshift ( out , ctx , NULL ) ) goto err ;\n ( void ) BIO_flush ( out ) ;\n message ( out , \"BN_rshift1\" ) ;\n if ( ! test_rshift1 ( out ) ) goto err ;\n ( void ) BIO_flush ( out ) ;\n message ( out , \"BN_rshift\" ) ;\n if ( ! test_rshift ( out , ctx ) ) goto err ;\n ( void ) BIO_flush ( out ) ;\n message ( out , \"BN_sqr\" ) ;\n if ( ! test_sqr ( out , ctx ) ) goto err ;\n ( void ) BIO_flush ( out ) ;\n message ( out , \"BN_mul\" ) ;\n if ( ! test_mul ( out ) ) goto err ;\n ( void ) BIO_flush ( out ) ;\n message ( out , \"BN_div\" ) ;\n if ( ! test_div ( out , ctx ) ) goto err ;\n ( void ) BIO_flush ( out ) ;\n message ( out , \"BN_div_word\" ) ;\n if ( ! test_div_word ( out ) ) goto err ;\n ( void ) BIO_flush ( out ) ;\n message ( out , \"BN_div_recp\" ) ;\n if ( ! test_div_recp ( out , ctx ) ) goto err ;\n ( void ) BIO_flush ( out ) ;\n message ( out , \"BN_mod\" ) ;\n if ( ! test_mod ( out , ctx ) ) goto err ;\n ( void ) BIO_flush ( out ) ;\n message ( out , \"BN_mod_mul\" ) ;\n if ( ! test_mod_mul ( out , ctx ) ) goto err ;\n ( void ) BIO_flush ( out ) ;\n message ( out , \"BN_mont\" ) ;\n if ( ! test_mont ( out , ctx ) ) goto err ;\n ( void ) BIO_flush ( out ) ;\n message ( out , \"BN_mod_exp\" ) ;\n if ( ! test_mod_exp ( out , ctx ) ) goto err ;\n ( void ) BIO_flush ( out ) ;\n message ( out , \"BN_mod_exp_mont_consttime\" ) ;\n if ( ! test_mod_exp_mont_consttime ( out , ctx ) ) goto err ;\n if ( ! test_mod_exp_mont5 ( out , ctx ) ) goto err ;\n ( void ) BIO_flush ( out ) ;\n message ( out , \"BN_exp\" ) ;\n if ( ! test_exp ( out , ctx ) ) goto err ;\n ( void ) BIO_flush ( out ) ;\n message ( out , \"BN_kronecker\" ) ;\n if ( ! test_kron ( out , ctx ) ) goto err ;\n ( void ) BIO_flush ( out ) ;\n message ( out , \"BN_mod_sqrt\" ) ;\n if ( ! test_sqrt ( out , ctx ) ) goto err ;\n ( void ) BIO_flush ( out ) ;\n message ( out , \"Small prime generation\" ) ;\n if ( ! test_small_prime ( out , ctx ) ) goto err ;\n ( void ) BIO_flush ( out ) ;\n # ifdef OPENSSL_SYS_WIN32 message ( out , \"Probable prime generation with coprimes disabled\" ) ;\n # else message ( out , \"Probable prime generation with coprimes\" ) ;\n if ( ! test_probable_prime_coprime ( out , ctx ) ) goto err ;\n # endif ( void ) BIO_flush ( out ) ;\n # ifndef OPENSSL_NO_EC2M message ( out , \"BN_GF2m_add\" ) ;\n if ( ! test_gf2m_add ( out ) ) goto err ;\n ( void ) BIO_flush ( out ) ;\n message ( out , \"BN_GF2m_mod\" ) ;\n if ( ! test_gf2m_mod ( out ) ) goto err ;\n ( void ) BIO_flush ( out ) ;\n message ( out , \"BN_GF2m_mod_mul\" ) ;\n if ( ! test_gf2m_mod_mul ( out , ctx ) ) goto err ;\n ( void ) BIO_flush ( out ) ;\n message ( out , \"BN_GF2m_mod_sqr\" ) ;\n if ( ! test_gf2m_mod_sqr ( out , ctx ) ) goto err ;\n ( void ) BIO_flush ( out ) ;\n message ( out , \"BN_GF2m_mod_inv\" ) ;\n if ( ! test_gf2m_mod_inv ( out , ctx ) ) goto err ;\n ( void ) BIO_flush ( out ) ;\n message ( out , \"BN_GF2m_mod_div\" ) ;\n if ( ! test_gf2m_mod_div ( out , ctx ) ) goto err ;\n ( void ) BIO_flush ( out ) ;\n message ( out , \"BN_GF2m_mod_exp\" ) ;\n if ( ! test_gf2m_mod_exp ( out , ctx ) ) goto err ;\n ( void ) BIO_flush ( out ) ;\n message ( out , \"BN_GF2m_mod_sqrt\" ) ;\n if ( ! test_gf2m_mod_sqrt ( out , ctx ) ) goto err ;\n ( void ) BIO_flush ( out ) ;\n message ( out , \"BN_GF2m_mod_solve_quad\" ) ;\n if ( ! test_gf2m_mod_solve_quad ( out , ctx ) ) goto err ;\n ( void ) BIO_flush ( out ) ;\n # endif BN_CTX_free ( ctx ) ;\n BIO_free ( out ) ;\n EXIT ( 0 ) ;\n err : BIO_puts ( out , \"1\\n\" ) ;\n ( void ) BIO_flush ( out ) ;\n ERR_load_crypto_strings ( ) ;\n ERR_print_errors_fp ( stderr ) ;\n EXIT ( 1 ) ;\n return ( 1 ) ;\n }"}
{"idx": 9609, "target": 0, "func": "static int ref_picture ( H264Context * h , Picture * dst , Picture * src ) {\n int ret , i ;\n av_assert0 ( ! dst -> f . buf [ 0 ] ) ;\n av_assert0 ( src -> f . buf [ 0 ] ) ;\n src -> tf . f = & src -> f ;\n dst -> tf . f = & dst -> f ;\n ret = ff_thread_ref_frame ( & dst -> tf , & src -> tf ) ;\n if ( ret < 0 ) goto fail ;\n dst -> qscale_table_buf = av_buffer_ref ( src -> qscale_table_buf ) ;\n dst -> mb_type_buf = av_buffer_ref ( src -> mb_type_buf ) ;\n if ( ! dst -> qscale_table_buf || ! dst -> mb_type_buf ) goto fail ;\n dst -> qscale_table = src -> qscale_table ;\n dst -> mb_type = src -> mb_type ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n dst -> motion_val_buf [ i ] = av_buffer_ref ( src -> motion_val_buf [ i ] ) ;\n dst -> ref_index_buf [ i ] = av_buffer_ref ( src -> ref_index_buf [ i ] ) ;\n if ( ! dst -> motion_val_buf [ i ] || ! dst -> ref_index_buf [ i ] ) goto fail ;\n dst -> motion_val [ i ] = src -> motion_val [ i ] ;\n dst -> ref_index [ i ] = src -> ref_index [ i ] ;\n }\n if ( src -> hwaccel_picture_private ) {\n dst -> hwaccel_priv_buf = av_buffer_ref ( src -> hwaccel_priv_buf ) ;\n if ( ! dst -> hwaccel_priv_buf ) goto fail ;\n dst -> hwaccel_picture_private = dst -> hwaccel_priv_buf -> data ;\n }\n for ( i = 0 ;\n i < 2 ;\n i ++ ) dst -> field_poc [ i ] = src -> field_poc [ i ] ;\n memcpy ( dst -> ref_poc , src -> ref_poc , sizeof ( src -> ref_poc ) ) ;\n memcpy ( dst -> ref_count , src -> ref_count , sizeof ( src -> ref_count ) ) ;\n dst -> poc = src -> poc ;\n dst -> frame_num = src -> frame_num ;\n dst -> mmco_reset = src -> mmco_reset ;\n dst -> pic_id = src -> pic_id ;\n dst -> long_ref = src -> long_ref ;\n dst -> mbaff = src -> mbaff ;\n dst -> field_picture = src -> field_picture ;\n dst -> needs_realloc = src -> needs_realloc ;\n dst -> reference = src -> reference ;\n dst -> crop = src -> crop ;\n dst -> crop_left = src -> crop_left ;\n dst -> crop_top = src -> crop_top ;\n dst -> recovered = src -> recovered ;\n return 0 ;\n fail : unref_picture ( h , dst ) ;\n return ret ;\n }"}
{"idx": 9610, "target": 0, "func": "static PyObject * string_expandtabs ( PyStringObject * self , PyObject * args ) {\n const char * e , * p , * qe ;\n char * q ;\n Py_ssize_t i , j , incr ;\n PyObject * u ;\n int tabsize = 8 ;\n if ( ! PyArg_ParseTuple ( args , \"|i:expandtabs\" , & tabsize ) ) return NULL ;\n i = 0 ;\n j = 0 ;\n e = PyString_AS_STRING ( self ) + PyString_GET_SIZE ( self ) ;\n for ( p = PyString_AS_STRING ( self ) ;\n p < e ;\n p ++ ) {\n if ( * p == '\\t' ) {\n if ( tabsize > 0 ) {\n incr = tabsize - ( j % tabsize ) ;\n if ( j > PY_SSIZE_T_MAX - incr ) goto overflow1 ;\n j += incr ;\n }\n }\n else {\n if ( j > PY_SSIZE_T_MAX - 1 ) goto overflow1 ;\n j ++ ;\n if ( * p == '\\n' || * p == '\\r' ) {\n if ( i > PY_SSIZE_T_MAX - j ) goto overflow1 ;\n i += j ;\n j = 0 ;\n }\n }\n }\n if ( i > PY_SSIZE_T_MAX - j ) goto overflow1 ;\n u = PyString_FromStringAndSize ( NULL , i + j ) ;\n if ( ! u ) return NULL ;\n j = 0 ;\n q = PyString_AS_STRING ( u ) ;\n qe = PyString_AS_STRING ( u ) + PyString_GET_SIZE ( u ) ;\n for ( p = PyString_AS_STRING ( self ) ;\n p < e ;\n p ++ ) {\n if ( * p == '\\t' ) {\n if ( tabsize > 0 ) {\n i = tabsize - ( j % tabsize ) ;\n j += i ;\n while ( i -- ) {\n if ( q >= qe ) goto overflow2 ;\n * q ++ = ' ' ;\n }\n }\n }\n else {\n if ( q >= qe ) goto overflow2 ;\n * q ++ = * p ;\n j ++ ;\n if ( * p == '\\n' || * p == '\\r' ) j = 0 ;\n }\n }\n return u ;\n overflow2 : Py_DECREF ( u ) ;\n overflow1 : PyErr_SetString ( PyExc_OverflowError , \"new string is too long\" ) ;\n return NULL ;\n }"}
{"idx": 9611, "target": 0, "func": "static void put_long ( void * addr , uint32_t l ) {\n char * pos = addr ;\n pos [ 0 ] = ( l >> 24 ) & 0xFF ;\n pos [ 1 ] = ( l >> 16 ) & 0xFF ;\n pos [ 2 ] = ( l >> 8 ) & 0xFF ;\n pos [ 3 ] = l & 0xFF ;\n }"}
{"idx": 9612, "target": 0, "func": "TEST_F ( ExternalProtocolHandlerTest , DISABLED_TestLaunchSchemeUnknownChromeOtherModeDefault ) {\n DoTest ( ExternalProtocolHandler : : UNKNOWN , shell_integration : : OTHER_MODE_IS_DEFAULT , Action : : PROMPT ) ;\n }"}
{"idx": 9613, "target": 0, "func": "void nautilus_file_operations_mount_volume_full ( GtkWindow * parent_window , GVolume * volume , NautilusMountCallback mount_callback , GObject * mount_callback_data_object ) {\n GMountOperation * mount_op ;\n mount_op = gtk_mount_operation_new ( parent_window ) ;\n g_mount_operation_set_password_save ( mount_op , G_PASSWORD_SAVE_FOR_SESSION ) ;\n g_object_set_data ( G_OBJECT ( mount_op ) , \"mount-callback\" , mount_callback ) ;\n if ( mount_callback != NULL && mount_callback_data_object != NULL ) {\n g_object_weak_ref ( mount_callback_data_object , mount_callback_data_notify , mount_op ) ;\n }\n g_object_set_data ( G_OBJECT ( mount_op ) , \"mount-callback-data\" , mount_callback_data_object ) ;\n g_volume_mount ( volume , 0 , mount_op , NULL , volume_mount_cb , mount_op ) ;\n }"}
{"idx": 9614, "target": 0, "func": "static int ossl_asn1_tag_class ( VALUE obj ) {\n VALUE s ;\n s = ossl_asn1_get_tag_class ( obj ) ;\n if ( NIL_P ( s ) || s == sym_UNIVERSAL ) return V_ASN1_UNIVERSAL ;\n else if ( s == sym_APPLICATION ) return V_ASN1_APPLICATION ;\n else if ( s == sym_CONTEXT_SPECIFIC ) return V_ASN1_CONTEXT_SPECIFIC ;\n else if ( s == sym_PRIVATE ) return V_ASN1_PRIVATE ;\n else ossl_raise ( eASN1Error , \"invalid tag class\" ) ;\n }"}
{"idx": 9615, "target": 1, "func": "static int build_def_list ( Picture * def , Picture * * in , int len , int is_long , int sel ) {\n int i [ 2 ] = {\n 0 }\n ;\n int index = 0 ;\n while ( i [ 0 ] < len || i [ 1 ] < len ) {\n while ( i [ 0 ] < len && ! ( in [ i [ 0 ] ] && ( in [ i [ 0 ] ] -> f . reference & sel ) ) ) i [ 0 ] ++ ;\n while ( i [ 1 ] < len && ! ( in [ i [ 1 ] ] && ( in [ i [ 1 ] ] -> f . reference & ( sel ^ 3 ) ) ) ) i [ 1 ] ++ ;\n if ( i [ 0 ] < len ) {\n in [ i [ 0 ] ] -> pic_id = is_long ? i [ 0 ] : in [ i [ 0 ] ] -> frame_num ;\n split_field_copy ( & def [ index ++ ] , in [ i [ 0 ] ++ ] , sel , 1 ) ;\n }\n if ( i [ 1 ] < len ) {\n in [ i [ 1 ] ] -> pic_id = is_long ? i [ 1 ] : in [ i [ 1 ] ] -> frame_num ;\n split_field_copy ( & def [ index ++ ] , in [ i [ 1 ] ++ ] , sel ^ 3 , 0 ) ;\n }\n }\n return index ;\n }"}
{"idx": 9616, "target": 0, "func": "static int xan_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n XanContext * s = avctx -> priv_data ;\n int ftype ;\n int ret ;\n if ( ( ret = ff_reget_buffer ( avctx , & s -> pic ) ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n bytestream2_init ( & s -> gb , avpkt -> data , avpkt -> size ) ;\n ftype = bytestream2_get_le32 ( & s -> gb ) ;\n switch ( ftype ) {\n case 0 : ret = xan_decode_frame_type0 ( avctx ) ;\n break ;\n case 1 : ret = xan_decode_frame_type1 ( avctx ) ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"Unknown frame type %d\\n\" , ftype ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ret ) return ret ;\n if ( ( ret = av_frame_ref ( data , & s -> pic ) ) < 0 ) return ret ;\n * got_frame = 1 ;\n return avpkt -> size ;\n }"}
{"idx": 9617, "target": 0, "func": "static void dissect_u3v_pending_ack ( proto_tree * u3v_telegram_tree , tvbuff_t * tvb , packet_info * pinfo _U_ , gint startoffset , gint length , u3v_conv_info_t * u3v_conv_info _U_ , gencp_transaction_t * gencp_trans _U_ ) {\n proto_item * item = NULL ;\n guint offset = startoffset ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" %d ms\" , tvb_get_letohs ( tvb , startoffset + 2 ) ) ;\n item = proto_tree_add_item ( u3v_telegram_tree , hf_u3v_ccd_pending_ack , tvb , startoffset , length , ENC_NA ) ;\n u3v_telegram_tree = proto_item_add_subtree ( item , ett_u3v_payload_cmd ) ;\n proto_tree_add_item ( u3v_telegram_tree , hf_u3v_reserved , tvb , offset , 2 , ENC_NA ) ;\n offset += 2 ;\n proto_tree_add_item ( u3v_telegram_tree , hf_u3v_time_to_completion , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n }"}
{"idx": 9618, "target": 0, "func": "int zcvx ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n ref * aop ;\n uint opidx ;\n check_op ( 1 ) ;\n if ( r_has_type ( op , t_operator ) && ( ( opidx = op_index ( op ) ) == 0 || op_def_is_internal ( op_index_def ( opidx ) ) ) ) return_error ( gs_error_rangecheck ) ;\n aop = ACCESS_REF ( op ) ;\n r_set_attrs ( aop , a_executable ) ;\n return 0 ;\n }"}
{"idx": 9619, "target": 0, "func": "void OS2FigureCodePages ( SplineFont * sf , uint32 CodePage [ 2 ] ) {\n int i ;\n uint32 latin1 [ 8 ] ;\n int has_ascii , has_lineart = 0 , has_radical = 0 , has_summation = 0 ;\n int cp852 = 0 , cp775 = 0 , cp861 = 0 , cp860 = 0 , cp857 = 0 , cp855 = 0 , cp862 = 0 , cp863 = 0 ;\n int cp864 = 0 , cp865 = 0 , cp866 = 0 , cp869 = 0 , cp737 = 0 , cp708 = 0 , mac = 0 ;\n int k ;\n SplineChar * sc ;\n SplineFont * sub ;\n memset ( latin1 , 0 , sizeof ( latin1 ) ) ;\n k = 0 ;\n do {\n sub = k < sf -> subfontcnt ? sf -> subfonts [ k ] : sf ;\n for ( i = 0 ;\n i < sub -> glyphcnt ;\n ++ i ) if ( ( sc = sub -> glyphs [ i ] ) != NULL ) {\n if ( sc -> unicodeenc < 256 && sc -> unicodeenc >= 0 ) latin1 [ ( sc -> unicodeenc >> 5 ) ] |= 1 << ( sc -> unicodeenc & 31 ) ;\n }\n ++ k ;\n }\n while ( k < sf -> subfontcnt ) ;\n has_ascii = latin1 [ 1 ] == 0xffffffff && latin1 [ 2 ] == 0xffffffff && ( latin1 [ 3 ] & 0x7fffffff ) == 0x7fffffff ;\n CodePage [ 0 ] = CodePage [ 1 ] = 0 ;\n k = 0 ;\n do {\n sub = k < sf -> subfontcnt ? sf -> subfonts [ k ] : sf ;\n for ( i = 0 ;\n i < sub -> glyphcnt ;\n ++ i ) if ( ( sc = sub -> glyphs [ i ] ) != NULL ) {\n int uni = sc -> unicodeenc ;\n if ( uni == 0xde && has_ascii ) CodePage [ 0 ] |= 1 << 0 ;\n else if ( uni == 0x255a && has_ascii ) {\n CodePage [ 1 ] |= 1U << 30 ;\n CodePage [ 1 ] |= 1U << 31 ;\n }\n else if ( uni == 0x13d && has_ascii ) {\n CodePage [ 0 ] |= 1 << 1 ;\n ++ cp852 ;\n }\n else if ( uni == 0x411 ) {\n CodePage [ 0 ] |= 1 << 2 ;\n ++ cp866 ;\n ++ cp855 ;\n }\n else if ( uni == 0x405 ) {\n ++ cp855 ;\n }\n else if ( uni == 0x386 ) {\n CodePage [ 0 ] |= 1 << 3 ;\n ++ cp869 ;\n ++ cp737 ;\n }\n else if ( uni == 0x130 && has_ascii ) {\n CodePage [ 0 ] |= 1 << 4 ;\n ++ cp857 ;\n }\n else if ( uni == 0x5d0 ) {\n CodePage [ 0 ] |= 1 << 5 ;\n ++ cp862 ;\n }\n else if ( uni == 0x631 ) {\n CodePage [ 0 ] |= 1 << 6 ;\n ++ cp864 ;\n ++ cp708 ;\n }\n else if ( uni == 0x157 && has_ascii ) {\n CodePage [ 0 ] |= 1 << 7 ;\n ++ cp775 ;\n }\n else if ( uni == 0x20AB && has_ascii ) {\n CodePage [ 0 ] |= 1 << 8 ;\n }\n else if ( uni == 0xe45 ) CodePage [ 0 ] |= 1 << 16 ;\n else if ( uni == 0x30a8 ) CodePage [ 0 ] |= 1 << 17 ;\n else if ( uni == 0x3105 ) CodePage [ 0 ] |= 1 << 18 ;\n else if ( uni == 0x3131 ) CodePage [ 0 ] |= 1 << 19 ;\n else if ( uni == 0x592E ) CodePage [ 0 ] |= 1 << 20 ;\n else if ( uni == 0xacf4 ) CodePage [ 0 ] |= 1 << 21 ;\n else if ( uni == 0x2030 && has_ascii ) ++ mac ;\n else if ( uni == 0x2665 && has_ascii ) CodePage [ 0 ] |= 1U << 30 ;\n else if ( uni >= 0xf000 && uni <= 0xf0ff ) CodePage [ 0 ] |= 1U << 31 ;\n else if ( uni == 0xc5 && has_ascii ) ++ cp865 ;\n else if ( uni == 0xe9 && has_ascii ) ++ cp863 ;\n else if ( uni == 0xf5 && has_ascii ) ++ cp860 ;\n else if ( uni == 0xfe && has_ascii ) ++ cp861 ;\n else if ( uni == 0x2524 ) ++ has_lineart ;\n else if ( uni == 0x255c ) ++ cp866 ;\n else if ( uni == 0xbd ) ++ cp869 ;\n else if ( uni == 0x221A ) has_radical = true ;\n else if ( uni == 0x2211 ) has_summation = true ;\n }\n ++ k ;\n }\n while ( k < sf -> subfontcnt ) ;\n if ( cp852 && has_lineart ) CodePage [ 1 ] |= 1 << 26 ;\n if ( cp775 && has_lineart ) CodePage [ 1 ] |= 1 << 27 ;\n if ( cp861 && has_lineart ) CodePage [ 1 ] |= 1 << 22 ;\n if ( cp866 == 2 && has_lineart ) CodePage [ 1 ] |= 1 << 17 ;\n if ( cp855 == 2 && has_lineart ) CodePage [ 1 ] |= 1 << 25 ;\n if ( cp869 == 2 && has_lineart ) CodePage [ 1 ] |= 1 << 16 ;\n if ( cp737 && has_lineart && has_radical ) CodePage [ 1 ] |= 1 << 28 ;\n if ( cp857 && has_lineart ) CodePage [ 1 ] |= 1 << 24 ;\n if ( cp862 && has_lineart && has_radical ) CodePage [ 1 ] |= 1 << 21 ;\n if ( cp864 && has_radical ) CodePage [ 1 ] |= 1 << 19 ;\n if ( cp708 && has_lineart ) CodePage [ 1 ] |= 1 << 29 ;\n if ( cp863 && has_lineart && has_radical ) CodePage [ 1 ] |= 1 << 20 ;\n if ( cp865 && has_lineart && has_radical ) CodePage [ 1 ] |= 1 << 18 ;\n if ( cp860 && has_lineart && has_radical ) CodePage [ 1 ] |= 1 << 23 ;\n if ( mac && has_summation ) CodePage [ 0 ] |= 1U << 29 ;\n }"}
{"idx": 9620, "target": 0, "func": "int str_replace ( char * * text , const char * s , const char * d ) {\n size_t slen = strlen ( s ) ;\n size_t dlen = strlen ( d ) ;\n int diff = dlen - slen ;\n char * p , * q = * text ;\n size_t size ;\n if ( strstr ( * text , s ) == NULL ) return - E_NOTFOUND ;\n while ( ( p = strstr ( q , s ) ) != NULL ) {\n if ( diff > 0 ) size = strlen ( q ) + diff + 1 ;\n else size = strlen ( q ) + 1 ;\n SAFE_REALLOC ( * text , size ) ;\n q = * text ;\n p = strstr ( q , s ) ;\n if ( p == NULL ) continue ;\n memmove ( p + dlen , p + slen , strlen ( p + slen ) + 1 ) ;\n memcpy ( p , d , dlen ) ;\n q = p + dlen ;\n }\n return E_SUCCESS ;\n }"}
{"idx": 9621, "target": 0, "func": "static void relocate_doit ( void * a ) {\n struct relocate_args * args = ( struct relocate_args * ) a ;\n _dl_relocate_object ( args -> l , args -> l -> l_scope , args -> reloc_mode , 0 ) ;\n }"}
{"idx": 9622, "target": 0, "func": "static int32_t u_printf_char_handler ( const u_printf_stream_handler * handler , void * context , ULocaleBundle * formatBundle , const u_printf_spec_info * info , const ufmt_args * args ) {\n ( void ) formatBundle ;\n UChar s [ U16_MAX_LENGTH + 1 ] ;\n int32_t len = 1 , written ;\n unsigned char arg = ( unsigned char ) ( args [ 0 ] . int64Value ) ;\n ufmt_defaultCPToUnicode ( ( const char * ) & arg , 2 , s , UPRV_LENGTHOF ( s ) ) ;\n if ( arg != 0 ) {\n len = u_strlen ( s ) ;\n }\n written = handler -> pad_and_justify ( context , info , s , len ) ;\n return written ;\n }"}
{"idx": 9623, "target": 0, "func": "const char * nntohostp ( sockaddr_u * netnum ) {\n const char * hostn ;\n char * buf ;\n if ( ! showhostnames || SOCK_UNSPEC ( netnum ) ) return sptoa ( netnum ) ;\n else if ( ISREFCLOCKADR ( netnum ) ) return refnumtoa ( netnum ) ;\n hostn = socktohost ( netnum ) ;\n LIB_GETBUF ( buf ) ;\n snprintf ( buf , LIB_BUFLENGTH , \"%s:%u\" , hostn , SRCPORT ( netnum ) ) ;\n return buf ;\n }"}
{"idx": 9624, "target": 1, "func": "static int decode_udvm_address_operand ( guint8 * buff , guint operand_address , guint16 * value , guint current_address ) {\n guint32 result ;\n guint16 value1 ;\n guint next_opreand_address ;\n next_opreand_address = decode_udvm_multitype_operand ( buff , operand_address , & value1 ) ;\n result = value1 & 0xffff ;\n result = result + current_address ;\n * value = result & 0xffff ;\n return next_opreand_address ;\n }"}
{"idx": 9625, "target": 0, "func": "bool contain_agg_clause ( Node * clause ) {\n return contain_agg_clause_walker ( clause , NULL ) ;\n }"}
{"idx": 9626, "target": 1, "func": "static inline void vmsvga_fill_rect ( struct vmsvga_state_s * s , uint32_t c , int x , int y , int w , int h ) {\n DisplaySurface * surface = qemu_console_surface ( s -> vga . con ) ;\n int bypl = surface_stride ( surface ) ;\n int width = surface_bytes_per_pixel ( surface ) * w ;\n int line = h ;\n int column ;\n uint8_t * fst ;\n uint8_t * dst ;\n uint8_t * src ;\n uint8_t col [ 4 ] ;\n col [ 0 ] = c ;\n col [ 1 ] = c >> 8 ;\n col [ 2 ] = c >> 16 ;\n col [ 3 ] = c >> 24 ;\n fst = s -> vga . vram_ptr + surface_bytes_per_pixel ( surface ) * x + bypl * y ;\n if ( line -- ) {\n dst = fst ;\n src = col ;\n for ( column = width ;\n column > 0 ;\n column -- ) {\n * ( dst ++ ) = * ( src ++ ) ;\n if ( src - col == surface_bytes_per_pixel ( surface ) ) {\n src = col ;\n }\n }\n dst = fst ;\n for ( ;\n line > 0 ;\n line -- ) {\n dst += bypl ;\n memcpy ( dst , fst , width ) ;\n }\n }\n vmsvga_update_rect_delayed ( s , x , y , w , h ) ;\n }"}
{"idx": 9627, "target": 0, "func": "int jas_image_fmtfromname ( char * name ) {\n int i ;\n char * ext ;\n jas_image_fmtinfo_t * fmtinfo ;\n if ( ! ( ext = strrchr ( name , '.' ) ) ) {\n return - 1 ;\n }\n ++ ext ;\n for ( i = 0 , fmtinfo = jas_image_fmtinfos ;\n i < jas_image_numfmts ;\n ++ i , ++ fmtinfo ) {\n if ( ! strcmp ( ext , fmtinfo -> ext ) ) {\n return fmtinfo -> id ;\n }\n }\n return - 1 ;\n }"}
{"idx": 9628, "target": 0, "func": "TEST_F ( MdDownloadsDOMHandlerTest , HandleSaveDownload ) {\n testing : : StrictMock < content : : MockDownloadItem > dangerous_file_type ;\n EXPECT_CALL ( dangerous_file_type , GetDangerType ( ) ) . WillRepeatedly ( testing : : Return ( content : : DOWNLOAD_DANGER_TYPE_DANGEROUS_FILE ) ) ;\n EXPECT_CALL ( dangerous_file_type , GetId ( ) ) . WillOnce ( testing : : Return ( uint32_t ( ) ) ) ;\n TestMdDownloadsDOMHandler handler ( manager ( ) , web_ui ( ) ) ;\n EXPECT_EQ ( 0 , handler . danger_prompt_count ( ) ) ;\n handler . SaveDownload ( & dangerous_file_type ) ;\n EXPECT_EQ ( 0 , handler . danger_prompt_count ( ) ) ;\n testing : : StrictMock < content : : MockDownloadItem > malicious_download ;\n EXPECT_CALL ( malicious_download , GetDangerType ( ) ) . WillRepeatedly ( testing : : Return ( content : : DOWNLOAD_DANGER_TYPE_DANGEROUS_URL ) ) ;\n handler . SaveDownload ( & malicious_download ) ;\n EXPECT_EQ ( 1 , handler . danger_prompt_count ( ) ) ;\n }"}
{"idx": 9629, "target": 0, "func": "static int run_tool ( const char * tool_path , DYNAMIC_STRING * ds_res , ... ) {\n int ret ;\n const char * arg ;\n va_list args ;\n DYNAMIC_STRING ds_cmdline ;\n DBUG_ENTER ( \"run_tool\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"tool_path: %s\" , tool_path ) ) ;\n if ( init_dynamic_string ( & ds_cmdline , IF_WIN ( \"\\\"\" , \"\" ) , FN_REFLEN , FN_REFLEN ) ) die ( \"Out of memory\" ) ;\n dynstr_append_os_quoted ( & ds_cmdline , tool_path , NullS ) ;\n dynstr_append ( & ds_cmdline , \" \" ) ;\n va_start ( args , ds_res ) ;\n while ( ( arg = va_arg ( args , char * ) ) ) {\n if ( strncmp ( arg , \"--\" , 2 ) == 0 ) dynstr_append_os_quoted ( & ds_cmdline , arg , NullS ) ;\n else dynstr_append ( & ds_cmdline , arg ) ;\n dynstr_append ( & ds_cmdline , \" \" ) ;\n }\n va_end ( args ) ;\n # ifdef __WIN__ dynstr_append ( & ds_cmdline , \"\\\"\" ) ;\n # endif DBUG_PRINT ( \"info\" , ( \"Running: %s\" , ds_cmdline . str ) ) ;\n ret = run_command ( ds_cmdline . str , ds_res ) ;\n DBUG_PRINT ( \"exit\" , ( \"ret: %d\" , ret ) ) ;\n dynstr_free ( & ds_cmdline ) ;\n DBUG_RETURN ( ret ) ;\n }"}
{"idx": 9630, "target": 0, "func": "static void qio_channel_websock_encode_buffer ( QIOChannelWebsock * ioc , Buffer * output , uint8_t opcode , Buffer * buffer ) {\n size_t header_size ;\n union {\n char buf [ QIO_CHANNEL_WEBSOCK_HEADER_LEN_64_BIT ] ;\n QIOChannelWebsockHeader ws ;\n }\n header ;\n header . ws . b0 = QIO_CHANNEL_WEBSOCK_HEADER_FIELD_FIN | ( opcode & QIO_CHANNEL_WEBSOCK_HEADER_FIELD_OPCODE ) ;\n if ( buffer -> offset < QIO_CHANNEL_WEBSOCK_PAYLOAD_LEN_THRESHOLD_7_BIT ) {\n header . ws . b1 = ( uint8_t ) buffer -> offset ;\n header_size = QIO_CHANNEL_WEBSOCK_HEADER_LEN_7_BIT ;\n }\n else if ( buffer -> offset < QIO_CHANNEL_WEBSOCK_PAYLOAD_LEN_THRESHOLD_16_BIT ) {\n header . ws . b1 = QIO_CHANNEL_WEBSOCK_PAYLOAD_LEN_MAGIC_16_BIT ;\n header . ws . u . s16 . l16 = cpu_to_be16 ( ( uint16_t ) buffer -> offset ) ;\n header_size = QIO_CHANNEL_WEBSOCK_HEADER_LEN_16_BIT ;\n }\n else {\n header . ws . b1 = QIO_CHANNEL_WEBSOCK_PAYLOAD_LEN_MAGIC_64_BIT ;\n header . ws . u . s64 . l64 = cpu_to_be64 ( buffer -> offset ) ;\n header_size = QIO_CHANNEL_WEBSOCK_HEADER_LEN_64_BIT ;\n }\n header_size -= QIO_CHANNEL_WEBSOCK_HEADER_LEN_MASK ;\n trace_qio_channel_websock_encode ( ioc , opcode , header_size , buffer -> offset ) ;\n buffer_reserve ( output , header_size + buffer -> offset ) ;\n buffer_append ( output , header . buf , header_size ) ;\n buffer_append ( output , buffer -> buffer , buffer -> offset ) ;\n }"}
{"idx": 9631, "target": 0, "func": "static timelib_ull timelib_get_unsigned_nr ( char * * ptr , int max_length ) {\n timelib_ull dir = 1 ;\n while ( ( ( * * ptr < '0' ) || ( * * ptr > '9' ) ) && ( * * ptr != '+' ) && ( * * ptr != '-' ) ) {\n if ( * * ptr == '\\0' ) {\n return TIMELIB_UNSET ;\n }\n ++ * ptr ;\n }\n while ( * * ptr == '+' || * * ptr == '-' ) {\n if ( * * ptr == '-' ) {\n dir *= - 1 ;\n }\n ++ * ptr ;\n }\n return dir * timelib_get_nr ( ptr , max_length ) ;\n }"}
{"idx": 9632, "target": 0, "func": "static void main_cpu_reset ( void * opaque ) {\n MIPSCPU * cpu = opaque ;\n cpu_reset ( CPU ( cpu ) ) ;\n }"}
{"idx": 9633, "target": 0, "func": "static void pfkey_sock_destruct ( struct sock * sk ) {\n struct net * net = sock_net ( sk ) ;\n struct netns_pfkey * net_pfkey = net_generic ( net , pfkey_net_id ) ;\n pfkey_terminate_dump ( pfkey_sk ( sk ) ) ;\n skb_queue_purge ( & sk -> sk_receive_queue ) ;\n if ( ! sock_flag ( sk , SOCK_DEAD ) ) {\n pr_err ( \"Attempt to release alive pfkey socket: %p\\n\" , sk ) ;\n return ;\n }\n WARN_ON ( atomic_read ( & sk -> sk_rmem_alloc ) ) ;\n WARN_ON ( atomic_read ( & sk -> sk_wmem_alloc ) ) ;\n atomic_dec ( & net_pfkey -> socks_nr ) ;\n }"}
{"idx": 9634, "target": 0, "func": "static int dissect_pvfs2_remove_request ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"handle\" , NULL ) ;\n offset = dissect_pvfs_fs_id ( tvb , tree , offset ) ;\n return offset ;\n }"}
{"idx": 9635, "target": 1, "func": "static void UConverter_fromUnicode_HZ_OFFSETS_LOGIC ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n const UChar * mySource = args -> source ;\n char * myTarget = args -> target ;\n int32_t * offsets = args -> offsets ;\n int32_t mySourceIndex = 0 ;\n int32_t myTargetIndex = 0 ;\n int32_t targetLength = ( int32_t ) ( args -> targetLimit - myTarget ) ;\n int32_t mySourceLength = ( int32_t ) ( args -> sourceLimit - args -> source ) ;\n uint32_t targetUniChar = 0x0000 ;\n UChar32 mySourceChar = 0x0000 ;\n UConverterDataHZ * myConverterData = ( UConverterDataHZ * ) args -> converter -> extraInfo ;\n UBool isTargetUCharDBCS = ( UBool ) myConverterData -> isTargetUCharDBCS ;\n UBool oldIsTargetUCharDBCS ;\n int len = 0 ;\n const char * escSeq = NULL ;\n if ( args -> converter -> fromUChar32 != 0 && myTargetIndex < targetLength ) {\n goto getTrail ;\n }\n while ( mySourceIndex < mySourceLength ) {\n targetUniChar = missingCharMarker ;\n if ( myTargetIndex < targetLength ) {\n mySourceChar = ( UChar ) mySource [ mySourceIndex ++ ] ;\n oldIsTargetUCharDBCS = isTargetUCharDBCS ;\n if ( mySourceChar == UCNV_TILDE ) {\n len = ESC_LEN ;\n escSeq = TILDE_ESCAPE ;\n CONCAT_ESCAPE_MACRO ( args , myTargetIndex , targetLength , escSeq , err , len , mySourceIndex ) ;\n continue ;\n }\n else if ( mySourceChar <= 0x7f ) {\n targetUniChar = mySourceChar ;\n }\n else {\n int32_t length = ucnv_MBCSFromUChar32 ( myConverterData -> gbConverter -> sharedData , mySourceChar , & targetUniChar , args -> converter -> useFallback ) ;\n if ( length == 2 && ( uint16_t ) ( targetUniChar - 0xa1a1 ) <= ( 0xfdfe - 0xa1a1 ) && ( uint8_t ) ( targetUniChar - 0xa1 ) <= ( 0xfe - 0xa1 ) ) {\n targetUniChar -= 0x8080 ;\n }\n else {\n targetUniChar = missingCharMarker ;\n }\n }\n if ( targetUniChar != missingCharMarker ) {\n myConverterData -> isTargetUCharDBCS = isTargetUCharDBCS = ( UBool ) ( targetUniChar > 0x00FF ) ;\n if ( oldIsTargetUCharDBCS != isTargetUCharDBCS || ! myConverterData -> isEscapeAppended ) {\n if ( ! isTargetUCharDBCS ) {\n len = ESC_LEN ;\n escSeq = SB_ESCAPE ;\n CONCAT_ESCAPE_MACRO ( args , myTargetIndex , targetLength , escSeq , err , len , mySourceIndex ) ;\n myConverterData -> isEscapeAppended = TRUE ;\n }\n else {\n len = ESC_LEN ;\n escSeq = DB_ESCAPE ;\n CONCAT_ESCAPE_MACRO ( args , myTargetIndex , targetLength , escSeq , err , len , mySourceIndex ) ;\n myConverterData -> isEscapeAppended = TRUE ;\n }\n }\n if ( isTargetUCharDBCS ) {\n if ( myTargetIndex < targetLength ) {\n myTarget [ myTargetIndex ++ ] = ( char ) ( targetUniChar >> 8 ) ;\n if ( offsets ) {\n * ( offsets ++ ) = mySourceIndex - 1 ;\n }\n if ( myTargetIndex < targetLength ) {\n myTarget [ myTargetIndex ++ ] = ( char ) targetUniChar ;\n if ( offsets ) {\n * ( offsets ++ ) = mySourceIndex - 1 ;\n }\n }\n else {\n args -> converter -> charErrorBuffer [ args -> converter -> charErrorBufferLength ++ ] = ( char ) targetUniChar ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n else {\n args -> converter -> charErrorBuffer [ args -> converter -> charErrorBufferLength ++ ] = ( char ) ( targetUniChar >> 8 ) ;\n args -> converter -> charErrorBuffer [ args -> converter -> charErrorBufferLength ++ ] = ( char ) targetUniChar ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n else {\n if ( myTargetIndex < targetLength ) {\n myTarget [ myTargetIndex ++ ] = ( char ) ( targetUniChar ) ;\n if ( offsets ) {\n * ( offsets ++ ) = mySourceIndex - 1 ;\n }\n }\n else {\n args -> converter -> charErrorBuffer [ args -> converter -> charErrorBufferLength ++ ] = ( char ) targetUniChar ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n }\n else {\n if ( U16_IS_SURROGATE ( mySourceChar ) ) {\n if ( U16_IS_SURROGATE_LEAD ( mySourceChar ) ) {\n args -> converter -> fromUChar32 = mySourceChar ;\n getTrail : if ( mySourceIndex < mySourceLength ) {\n UChar trail = ( UChar ) args -> source [ mySourceIndex ] ;\n if ( U16_IS_TRAIL ( trail ) ) {\n ++ mySourceIndex ;\n mySourceChar = U16_GET_SUPPLEMENTARY ( args -> converter -> fromUChar32 , trail ) ;\n args -> converter -> fromUChar32 = 0x00 ;\n * err = U_INVALID_CHAR_FOUND ;\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n else {\n * err = U_ZERO_ERROR ;\n }\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n else {\n * err = U_INVALID_CHAR_FOUND ;\n }\n args -> converter -> fromUChar32 = mySourceChar ;\n break ;\n }\n }\n else {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n targetUniChar = missingCharMarker ;\n }\n args -> target += myTargetIndex ;\n args -> source += mySourceIndex ;\n myConverterData -> isTargetUCharDBCS = isTargetUCharDBCS ;\n }"}
{"idx": 9636, "target": 0, "func": "static void test_bug10729 ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND my_bind [ 1 ] ;\n char a [ 21 ] ;\n int rc ;\n const char * stmt_text ;\n int i = 0 ;\n const char * name_array [ 3 ] = {\n \"aaa\" , \"bbb\" , \"ccc\" }\n ;\n ulong type ;\n myheader ( \"test_bug10729\" ) ;\n mysql_query ( mysql , \"drop table if exists t1\" ) ;\n mysql_query ( mysql , \"create table t1 (id integer not null primary key,\" \"name VARCHAR(20) NOT NULL)\" ) ;\n rc = mysql_query ( mysql , \"insert into t1 (id, name) values \" \"(1, 'aaa'), (2, 'bbb'), (3, 'ccc')\" ) ;\n myquery ( rc ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n type = ( ulong ) CURSOR_TYPE_READ_ONLY ;\n rc = mysql_stmt_attr_set ( stmt , STMT_ATTR_CURSOR_TYPE , ( void * ) & type ) ;\n check_execute ( stmt , rc ) ;\n stmt_text = \"select name from t1\" ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt , rc ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 0 ] . buffer = ( void * ) a ;\n my_bind [ 0 ] . buffer_length = sizeof ( a ) ;\n mysql_stmt_bind_result ( stmt , my_bind ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n int row_no = 0 ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n while ( ( rc = mysql_stmt_fetch ( stmt ) ) == 0 ) {\n DIE_UNLESS ( strcmp ( a , name_array [ row_no ] ) == 0 ) ;\n if ( ! opt_silent ) printf ( \"%d: %s\\n\" , row_no , a ) ;\n ++ row_no ;\n }\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n }\n rc = mysql_stmt_close ( stmt ) ;\n DIE_UNLESS ( rc == 0 ) ;\n rc = mysql_query ( mysql , \"drop table t1\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 9637, "target": 0, "func": "static int rtp_packetize_h263 ( sout_stream_id_sys_t * id , block_t * in ) {\n uint8_t * p_data = in -> p_buffer ;\n int i_data = in -> i_buffer ;\n int i ;\n int i_max = rtp_mtu ( id ) - RTP_H263_HEADER_SIZE ;\n int i_count ;\n int b_p_bit ;\n int b_v_bit = 0 ;\n int i_plen = 0 ;\n int i_pebit = 0 ;\n uint16_t h ;\n if ( i_data < 2 ) {\n block_Release ( in ) ;\n return VLC_EGENERIC ;\n }\n if ( p_data [ 0 ] || p_data [ 1 ] ) {\n block_Release ( in ) ;\n return VLC_EGENERIC ;\n }\n p_data += 2 ;\n i_data -= 2 ;\n i_count = ( i_data + i_max - 1 ) / i_max ;\n for ( i = 0 ;\n i < i_count ;\n i ++ ) {\n int i_payload = __MIN ( i_max , i_data ) ;\n block_t * out = block_Alloc ( RTP_H263_PAYLOAD_START + i_payload ) ;\n b_p_bit = ( i == 0 ) ? 1 : 0 ;\n h = ( b_p_bit << 10 ) | ( b_v_bit << 9 ) | ( i_plen << 3 ) | i_pebit ;\n rtp_packetize_common ( id , out , ( i == i_count - 1 ) ? 1 : 0 , in -> i_pts > VLC_TS_INVALID ? in -> i_pts : in -> i_dts ) ;\n SetWBE ( out -> p_buffer + 12 , h ) ;\n memcpy ( & out -> p_buffer [ RTP_H263_PAYLOAD_START ] , p_data , i_payload ) ;\n out -> i_dts = in -> i_dts + i * in -> i_length / i_count ;\n out -> i_length = in -> i_length / i_count ;\n rtp_packetize_send ( id , out ) ;\n p_data += i_payload ;\n i_data -= i_payload ;\n }\n block_Release ( in ) ;\n return VLC_SUCCESS ;\n }"}
{"idx": 9638, "target": 0, "func": "static int roq_encode_frame ( AVCodecContext * avctx , AVPacket * pkt , const AVFrame * frame , int * got_packet ) {\n RoqContext * enc = avctx -> priv_data ;\n int size , ret ;\n enc -> avctx = avctx ;\n enc -> frame_to_enc = frame ;\n if ( frame -> quality ) enc -> lambda = frame -> quality - 1 ;\n else enc -> lambda = 2 * ROQ_LAMBDA_SCALE ;\n size = ( ( enc -> width * enc -> height / 64 ) * 138 + 7 ) / 8 + 256 * ( 6 + 4 ) + 8 ;\n if ( ( ret = ff_alloc_packet ( pkt , size ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error getting output packet with size %d.\\n\" , size ) ;\n return ret ;\n }\n enc -> out_buf = pkt -> data ;\n if ( enc -> framesSinceKeyframe == avctx -> gop_size ) enc -> framesSinceKeyframe = 0 ;\n if ( enc -> first_frame ) {\n if ( ff_get_buffer ( avctx , enc -> current_frame , 0 ) || ff_get_buffer ( avctx , enc -> last_frame , 0 ) ) {\n av_log ( avctx , AV_LOG_ERROR , \" RoQ: get_buffer() failed\\n\" ) ;\n return - 1 ;\n }\n roq_write_video_info_chunk ( enc ) ;\n enc -> first_frame = 0 ;\n }\n roq_encode_video ( enc ) ;\n pkt -> size = enc -> out_buf - pkt -> data ;\n if ( enc -> framesSinceKeyframe == 1 ) pkt -> flags |= AV_PKT_FLAG_KEY ;\n * got_packet = 1 ;\n return 0 ;\n }"}
{"idx": 9639, "target": 0, "func": "void vp9_idct16x16_10_add_sse2 ( const int16_t * input , uint8_t * dest , int stride ) {\n const __m128i rounding = _mm_set1_epi32 ( DCT_CONST_ROUNDING ) ;\n const __m128i final_rounding = _mm_set1_epi16 ( 1 << 5 ) ;\n const __m128i zero = _mm_setzero_si128 ( ) ;\n const __m128i stg2_0 = pair_set_epi16 ( cospi_30_64 , - cospi_2_64 ) ;\n const __m128i stg2_1 = pair_set_epi16 ( cospi_2_64 , cospi_30_64 ) ;\n const __m128i stg2_6 = pair_set_epi16 ( cospi_6_64 , - cospi_26_64 ) ;\n const __m128i stg2_7 = pair_set_epi16 ( cospi_26_64 , cospi_6_64 ) ;\n const __m128i stg3_0 = pair_set_epi16 ( cospi_28_64 , - cospi_4_64 ) ;\n const __m128i stg3_1 = pair_set_epi16 ( cospi_4_64 , cospi_28_64 ) ;\n const __m128i stg4_0 = pair_set_epi16 ( cospi_16_64 , cospi_16_64 ) ;\n const __m128i stg4_1 = pair_set_epi16 ( cospi_16_64 , - cospi_16_64 ) ;\n const __m128i stg4_4 = pair_set_epi16 ( - cospi_8_64 , cospi_24_64 ) ;\n const __m128i stg4_5 = pair_set_epi16 ( cospi_24_64 , cospi_8_64 ) ;\n const __m128i stg4_6 = pair_set_epi16 ( - cospi_24_64 , - cospi_8_64 ) ;\n const __m128i stg4_7 = pair_set_epi16 ( - cospi_8_64 , cospi_24_64 ) ;\n const __m128i stg6_0 = pair_set_epi16 ( - cospi_16_64 , cospi_16_64 ) ;\n __m128i in [ 16 ] , l [ 16 ] ;\n __m128i stp1_0 , stp1_1 , stp1_2 , stp1_3 , stp1_4 , stp1_5 , stp1_6 , stp1_8 , stp1_9 , stp1_10 , stp1_11 , stp1_12 , stp1_13 , stp1_14 , stp1_15 , stp1_8_0 , stp1_12_0 ;\n __m128i stp2_0 , stp2_1 , stp2_2 , stp2_3 , stp2_4 , stp2_5 , stp2_6 , stp2_7 , stp2_8 , stp2_9 , stp2_10 , stp2_11 , stp2_12 , stp2_13 , stp2_14 ;\n __m128i tmp0 , tmp1 , tmp2 , tmp3 , tmp4 , tmp5 , tmp6 , tmp7 ;\n int i ;\n in [ 0 ] = _mm_load_si128 ( ( const __m128i * ) input ) ;\n in [ 1 ] = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 2 ) ) ;\n in [ 2 ] = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 4 ) ) ;\n in [ 3 ] = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 6 ) ) ;\n TRANSPOSE_8X4 ( in [ 0 ] , in [ 1 ] , in [ 2 ] , in [ 3 ] , in [ 0 ] , in [ 1 ] ) ;\n {\n const __m128i lo_1_15 = _mm_unpackhi_epi16 ( in [ 0 ] , zero ) ;\n const __m128i lo_13_3 = _mm_unpackhi_epi16 ( zero , in [ 1 ] ) ;\n tmp0 = _mm_madd_epi16 ( lo_1_15 , stg2_0 ) ;\n tmp2 = _mm_madd_epi16 ( lo_1_15 , stg2_1 ) ;\n tmp5 = _mm_madd_epi16 ( lo_13_3 , stg2_6 ) ;\n tmp7 = _mm_madd_epi16 ( lo_13_3 , stg2_7 ) ;\n tmp0 = _mm_add_epi32 ( tmp0 , rounding ) ;\n tmp2 = _mm_add_epi32 ( tmp2 , rounding ) ;\n tmp5 = _mm_add_epi32 ( tmp5 , rounding ) ;\n tmp7 = _mm_add_epi32 ( tmp7 , rounding ) ;\n tmp0 = _mm_srai_epi32 ( tmp0 , DCT_CONST_BITS ) ;\n tmp2 = _mm_srai_epi32 ( tmp2 , DCT_CONST_BITS ) ;\n tmp5 = _mm_srai_epi32 ( tmp5 , DCT_CONST_BITS ) ;\n tmp7 = _mm_srai_epi32 ( tmp7 , DCT_CONST_BITS ) ;\n stp2_8 = _mm_packs_epi32 ( tmp0 , tmp2 ) ;\n stp2_11 = _mm_packs_epi32 ( tmp5 , tmp7 ) ;\n }\n {\n const __m128i lo_2_14 = _mm_unpacklo_epi16 ( in [ 1 ] , zero ) ;\n tmp0 = _mm_madd_epi16 ( lo_2_14 , stg3_0 ) ;\n tmp2 = _mm_madd_epi16 ( lo_2_14 , stg3_1 ) ;\n tmp0 = _mm_add_epi32 ( tmp0 , rounding ) ;\n tmp2 = _mm_add_epi32 ( tmp2 , rounding ) ;\n tmp0 = _mm_srai_epi32 ( tmp0 , DCT_CONST_BITS ) ;\n tmp2 = _mm_srai_epi32 ( tmp2 , DCT_CONST_BITS ) ;\n stp1_13 = _mm_unpackhi_epi64 ( stp2_11 , zero ) ;\n stp1_14 = _mm_unpackhi_epi64 ( stp2_8 , zero ) ;\n stp1_4 = _mm_packs_epi32 ( tmp0 , tmp2 ) ;\n }\n {\n const __m128i lo_0_8 = _mm_unpacklo_epi16 ( in [ 0 ] , zero ) ;\n const __m128i lo_9_14 = _mm_unpacklo_epi16 ( stp2_8 , stp1_14 ) ;\n const __m128i lo_10_13 = _mm_unpacklo_epi16 ( stp2_11 , stp1_13 ) ;\n tmp0 = _mm_madd_epi16 ( lo_0_8 , stg4_0 ) ;\n tmp2 = _mm_madd_epi16 ( lo_0_8 , stg4_1 ) ;\n tmp1 = _mm_madd_epi16 ( lo_9_14 , stg4_4 ) ;\n tmp3 = _mm_madd_epi16 ( lo_9_14 , stg4_5 ) ;\n tmp5 = _mm_madd_epi16 ( lo_10_13 , stg4_6 ) ;\n tmp7 = _mm_madd_epi16 ( lo_10_13 , stg4_7 ) ;\n tmp0 = _mm_add_epi32 ( tmp0 , rounding ) ;\n tmp2 = _mm_add_epi32 ( tmp2 , rounding ) ;\n tmp1 = _mm_add_epi32 ( tmp1 , rounding ) ;\n tmp3 = _mm_add_epi32 ( tmp3 , rounding ) ;\n tmp5 = _mm_add_epi32 ( tmp5 , rounding ) ;\n tmp7 = _mm_add_epi32 ( tmp7 , rounding ) ;\n tmp0 = _mm_srai_epi32 ( tmp0 , DCT_CONST_BITS ) ;\n tmp2 = _mm_srai_epi32 ( tmp2 , DCT_CONST_BITS ) ;\n tmp1 = _mm_srai_epi32 ( tmp1 , DCT_CONST_BITS ) ;\n tmp3 = _mm_srai_epi32 ( tmp3 , DCT_CONST_BITS ) ;\n tmp5 = _mm_srai_epi32 ( tmp5 , DCT_CONST_BITS ) ;\n tmp7 = _mm_srai_epi32 ( tmp7 , DCT_CONST_BITS ) ;\n stp1_0 = _mm_packs_epi32 ( tmp0 , tmp0 ) ;\n stp1_1 = _mm_packs_epi32 ( tmp2 , tmp2 ) ;\n stp2_9 = _mm_packs_epi32 ( tmp1 , tmp3 ) ;\n stp2_10 = _mm_packs_epi32 ( tmp5 , tmp7 ) ;\n stp2_6 = _mm_unpackhi_epi64 ( stp1_4 , zero ) ;\n }\n {\n tmp0 = _mm_add_epi16 ( stp2_8 , stp2_11 ) ;\n tmp1 = _mm_sub_epi16 ( stp2_8 , stp2_11 ) ;\n tmp2 = _mm_add_epi16 ( stp2_9 , stp2_10 ) ;\n tmp3 = _mm_sub_epi16 ( stp2_9 , stp2_10 ) ;\n stp1_9 = _mm_unpacklo_epi64 ( tmp2 , zero ) ;\n stp1_10 = _mm_unpacklo_epi64 ( tmp3 , zero ) ;\n stp1_8 = _mm_unpacklo_epi64 ( tmp0 , zero ) ;\n stp1_11 = _mm_unpacklo_epi64 ( tmp1 , zero ) ;\n stp1_13 = _mm_unpackhi_epi64 ( tmp3 , zero ) ;\n stp1_14 = _mm_unpackhi_epi64 ( tmp2 , zero ) ;\n stp1_12 = _mm_unpackhi_epi64 ( tmp1 , zero ) ;\n stp1_15 = _mm_unpackhi_epi64 ( tmp0 , zero ) ;\n }\n {\n const __m128i lo_6_5 = _mm_unpacklo_epi16 ( stp2_6 , stp1_4 ) ;\n const __m128i lo_10_13 = _mm_unpacklo_epi16 ( stp1_10 , stp1_13 ) ;\n const __m128i lo_11_12 = _mm_unpacklo_epi16 ( stp1_11 , stp1_12 ) ;\n tmp1 = _mm_madd_epi16 ( lo_6_5 , stg4_1 ) ;\n tmp3 = _mm_madd_epi16 ( lo_6_5 , stg4_0 ) ;\n tmp0 = _mm_madd_epi16 ( lo_10_13 , stg6_0 ) ;\n tmp2 = _mm_madd_epi16 ( lo_10_13 , stg4_0 ) ;\n tmp4 = _mm_madd_epi16 ( lo_11_12 , stg6_0 ) ;\n tmp6 = _mm_madd_epi16 ( lo_11_12 , stg4_0 ) ;\n tmp1 = _mm_add_epi32 ( tmp1 , rounding ) ;\n tmp3 = _mm_add_epi32 ( tmp3 , rounding ) ;\n tmp0 = _mm_add_epi32 ( tmp0 , rounding ) ;\n tmp2 = _mm_add_epi32 ( tmp2 , rounding ) ;\n tmp4 = _mm_add_epi32 ( tmp4 , rounding ) ;\n tmp6 = _mm_add_epi32 ( tmp6 , rounding ) ;\n tmp1 = _mm_srai_epi32 ( tmp1 , DCT_CONST_BITS ) ;\n tmp3 = _mm_srai_epi32 ( tmp3 , DCT_CONST_BITS ) ;\n tmp0 = _mm_srai_epi32 ( tmp0 , DCT_CONST_BITS ) ;\n tmp2 = _mm_srai_epi32 ( tmp2 , DCT_CONST_BITS ) ;\n tmp4 = _mm_srai_epi32 ( tmp4 , DCT_CONST_BITS ) ;\n tmp6 = _mm_srai_epi32 ( tmp6 , DCT_CONST_BITS ) ;\n stp1_6 = _mm_packs_epi32 ( tmp3 , tmp1 ) ;\n stp2_10 = _mm_packs_epi32 ( tmp0 , zero ) ;\n stp2_13 = _mm_packs_epi32 ( tmp2 , zero ) ;\n stp2_11 = _mm_packs_epi32 ( tmp4 , zero ) ;\n stp2_12 = _mm_packs_epi32 ( tmp6 , zero ) ;\n tmp0 = _mm_add_epi16 ( stp1_0 , stp1_4 ) ;\n tmp1 = _mm_sub_epi16 ( stp1_0 , stp1_4 ) ;\n tmp2 = _mm_add_epi16 ( stp1_1 , stp1_6 ) ;\n tmp3 = _mm_sub_epi16 ( stp1_1 , stp1_6 ) ;\n stp2_0 = _mm_unpackhi_epi64 ( tmp0 , zero ) ;\n stp2_1 = _mm_unpacklo_epi64 ( tmp2 , zero ) ;\n stp2_2 = _mm_unpackhi_epi64 ( tmp2 , zero ) ;\n stp2_3 = _mm_unpacklo_epi64 ( tmp0 , zero ) ;\n stp2_4 = _mm_unpacklo_epi64 ( tmp1 , zero ) ;\n stp2_5 = _mm_unpackhi_epi64 ( tmp3 , zero ) ;\n stp2_6 = _mm_unpacklo_epi64 ( tmp3 , zero ) ;\n stp2_7 = _mm_unpackhi_epi64 ( tmp1 , zero ) ;\n }\n l [ 0 ] = _mm_add_epi16 ( stp2_0 , stp1_15 ) ;\n l [ 1 ] = _mm_add_epi16 ( stp2_1 , stp1_14 ) ;\n l [ 2 ] = _mm_add_epi16 ( stp2_2 , stp2_13 ) ;\n l [ 3 ] = _mm_add_epi16 ( stp2_3 , stp2_12 ) ;\n l [ 4 ] = _mm_add_epi16 ( stp2_4 , stp2_11 ) ;\n l [ 5 ] = _mm_add_epi16 ( stp2_5 , stp2_10 ) ;\n l [ 6 ] = _mm_add_epi16 ( stp2_6 , stp1_9 ) ;\n l [ 7 ] = _mm_add_epi16 ( stp2_7 , stp1_8 ) ;\n l [ 8 ] = _mm_sub_epi16 ( stp2_7 , stp1_8 ) ;\n l [ 9 ] = _mm_sub_epi16 ( stp2_6 , stp1_9 ) ;\n l [ 10 ] = _mm_sub_epi16 ( stp2_5 , stp2_10 ) ;\n l [ 11 ] = _mm_sub_epi16 ( stp2_4 , stp2_11 ) ;\n l [ 12 ] = _mm_sub_epi16 ( stp2_3 , stp2_12 ) ;\n l [ 13 ] = _mm_sub_epi16 ( stp2_2 , stp2_13 ) ;\n l [ 14 ] = _mm_sub_epi16 ( stp2_1 , stp1_14 ) ;\n l [ 15 ] = _mm_sub_epi16 ( stp2_0 , stp1_15 ) ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n array_transpose_4X8 ( l + 8 * i , in ) ;\n IDCT16_10 in [ 0 ] = _mm_add_epi16 ( stp2_0 , stp1_15 ) ;\n in [ 1 ] = _mm_add_epi16 ( stp2_1 , stp1_14 ) ;\n in [ 2 ] = _mm_add_epi16 ( stp2_2 , stp2_13 ) ;\n in [ 3 ] = _mm_add_epi16 ( stp2_3 , stp2_12 ) ;\n in [ 4 ] = _mm_add_epi16 ( stp2_4 , stp2_11 ) ;\n in [ 5 ] = _mm_add_epi16 ( stp2_5 , stp2_10 ) ;\n in [ 6 ] = _mm_add_epi16 ( stp2_6 , stp1_9 ) ;\n in [ 7 ] = _mm_add_epi16 ( stp2_7 , stp1_8 ) ;\n in [ 8 ] = _mm_sub_epi16 ( stp2_7 , stp1_8 ) ;\n in [ 9 ] = _mm_sub_epi16 ( stp2_6 , stp1_9 ) ;\n in [ 10 ] = _mm_sub_epi16 ( stp2_5 , stp2_10 ) ;\n in [ 11 ] = _mm_sub_epi16 ( stp2_4 , stp2_11 ) ;\n in [ 12 ] = _mm_sub_epi16 ( stp2_3 , stp2_12 ) ;\n in [ 13 ] = _mm_sub_epi16 ( stp2_2 , stp2_13 ) ;\n in [ 14 ] = _mm_sub_epi16 ( stp2_1 , stp1_14 ) ;\n in [ 15 ] = _mm_sub_epi16 ( stp2_0 , stp1_15 ) ;\n in [ 0 ] = _mm_adds_epi16 ( in [ 0 ] , final_rounding ) ;\n in [ 1 ] = _mm_adds_epi16 ( in [ 1 ] , final_rounding ) ;\n in [ 2 ] = _mm_adds_epi16 ( in [ 2 ] , final_rounding ) ;\n in [ 3 ] = _mm_adds_epi16 ( in [ 3 ] , final_rounding ) ;\n in [ 4 ] = _mm_adds_epi16 ( in [ 4 ] , final_rounding ) ;\n in [ 5 ] = _mm_adds_epi16 ( in [ 5 ] , final_rounding ) ;\n in [ 6 ] = _mm_adds_epi16 ( in [ 6 ] , final_rounding ) ;\n in [ 7 ] = _mm_adds_epi16 ( in [ 7 ] , final_rounding ) ;\n in [ 8 ] = _mm_adds_epi16 ( in [ 8 ] , final_rounding ) ;\n in [ 9 ] = _mm_adds_epi16 ( in [ 9 ] , final_rounding ) ;\n in [ 10 ] = _mm_adds_epi16 ( in [ 10 ] , final_rounding ) ;\n in [ 11 ] = _mm_adds_epi16 ( in [ 11 ] , final_rounding ) ;\n in [ 12 ] = _mm_adds_epi16 ( in [ 12 ] , final_rounding ) ;\n in [ 13 ] = _mm_adds_epi16 ( in [ 13 ] , final_rounding ) ;\n in [ 14 ] = _mm_adds_epi16 ( in [ 14 ] , final_rounding ) ;\n in [ 15 ] = _mm_adds_epi16 ( in [ 15 ] , final_rounding ) ;\n in [ 0 ] = _mm_srai_epi16 ( in [ 0 ] , 6 ) ;\n in [ 1 ] = _mm_srai_epi16 ( in [ 1 ] , 6 ) ;\n in [ 2 ] = _mm_srai_epi16 ( in [ 2 ] , 6 ) ;\n in [ 3 ] = _mm_srai_epi16 ( in [ 3 ] , 6 ) ;\n in [ 4 ] = _mm_srai_epi16 ( in [ 4 ] , 6 ) ;\n in [ 5 ] = _mm_srai_epi16 ( in [ 5 ] , 6 ) ;\n in [ 6 ] = _mm_srai_epi16 ( in [ 6 ] , 6 ) ;\n in [ 7 ] = _mm_srai_epi16 ( in [ 7 ] , 6 ) ;\n in [ 8 ] = _mm_srai_epi16 ( in [ 8 ] , 6 ) ;\n in [ 9 ] = _mm_srai_epi16 ( in [ 9 ] , 6 ) ;\n in [ 10 ] = _mm_srai_epi16 ( in [ 10 ] , 6 ) ;\n in [ 11 ] = _mm_srai_epi16 ( in [ 11 ] , 6 ) ;\n in [ 12 ] = _mm_srai_epi16 ( in [ 12 ] , 6 ) ;\n in [ 13 ] = _mm_srai_epi16 ( in [ 13 ] , 6 ) ;\n in [ 14 ] = _mm_srai_epi16 ( in [ 14 ] , 6 ) ;\n in [ 15 ] = _mm_srai_epi16 ( in [ 15 ] , 6 ) ;\n RECON_AND_STORE ( dest , in [ 0 ] ) ;\n RECON_AND_STORE ( dest , in [ 1 ] ) ;\n RECON_AND_STORE ( dest , in [ 2 ] ) ;\n RECON_AND_STORE ( dest , in [ 3 ] ) ;\n RECON_AND_STORE ( dest , in [ 4 ] ) ;\n RECON_AND_STORE ( dest , in [ 5 ] ) ;\n RECON_AND_STORE ( dest , in [ 6 ] ) ;\n RECON_AND_STORE ( dest , in [ 7 ] ) ;\n RECON_AND_STORE ( dest , in [ 8 ] ) ;\n RECON_AND_STORE ( dest , in [ 9 ] ) ;\n RECON_AND_STORE ( dest , in [ 10 ] ) ;\n RECON_AND_STORE ( dest , in [ 11 ] ) ;\n RECON_AND_STORE ( dest , in [ 12 ] ) ;\n RECON_AND_STORE ( dest , in [ 13 ] ) ;\n RECON_AND_STORE ( dest , in [ 14 ] ) ;\n RECON_AND_STORE ( dest , in [ 15 ] ) ;\n dest += 8 - ( stride * 16 ) ;\n }\n }"}
{"idx": 9640, "target": 0, "func": "void ff_h263_loop_filter ( MpegEncContext * s ) {\n int qp_c ;\n const int linesize = s -> linesize ;\n const int uvlinesize = s -> uvlinesize ;\n const int xy = s -> mb_y * s -> mb_stride + s -> mb_x ;\n uint8_t * dest_y = s -> dest [ 0 ] ;\n uint8_t * dest_cb = s -> dest [ 1 ] ;\n uint8_t * dest_cr = s -> dest [ 2 ] ;\n if ( ! IS_SKIP ( s -> current_picture . mb_type [ xy ] ) ) {\n qp_c = s -> qscale ;\n s -> dsp . h263_v_loop_filter ( dest_y + 8 * linesize , linesize , qp_c ) ;\n s -> dsp . h263_v_loop_filter ( dest_y + 8 * linesize + 8 , linesize , qp_c ) ;\n }\n else qp_c = 0 ;\n if ( s -> mb_y ) {\n int qp_dt , qp_tt , qp_tc ;\n if ( IS_SKIP ( s -> current_picture . mb_type [ xy - s -> mb_stride ] ) ) qp_tt = 0 ;\n else qp_tt = s -> current_picture . qscale_table [ xy - s -> mb_stride ] ;\n if ( qp_c ) qp_tc = qp_c ;\n else qp_tc = qp_tt ;\n if ( qp_tc ) {\n const int chroma_qp = s -> chroma_qscale_table [ qp_tc ] ;\n s -> dsp . h263_v_loop_filter ( dest_y , linesize , qp_tc ) ;\n s -> dsp . h263_v_loop_filter ( dest_y + 8 , linesize , qp_tc ) ;\n s -> dsp . h263_v_loop_filter ( dest_cb , uvlinesize , chroma_qp ) ;\n s -> dsp . h263_v_loop_filter ( dest_cr , uvlinesize , chroma_qp ) ;\n }\n if ( qp_tt ) s -> dsp . h263_h_loop_filter ( dest_y - 8 * linesize + 8 , linesize , qp_tt ) ;\n if ( s -> mb_x ) {\n if ( qp_tt || IS_SKIP ( s -> current_picture . mb_type [ xy - 1 - s -> mb_stride ] ) ) qp_dt = qp_tt ;\n else qp_dt = s -> current_picture . qscale_table [ xy - 1 - s -> mb_stride ] ;\n if ( qp_dt ) {\n const int chroma_qp = s -> chroma_qscale_table [ qp_dt ] ;\n s -> dsp . h263_h_loop_filter ( dest_y - 8 * linesize , linesize , qp_dt ) ;\n s -> dsp . h263_h_loop_filter ( dest_cb - 8 * uvlinesize , uvlinesize , chroma_qp ) ;\n s -> dsp . h263_h_loop_filter ( dest_cr - 8 * uvlinesize , uvlinesize , chroma_qp ) ;\n }\n }\n }\n if ( qp_c ) {\n s -> dsp . h263_h_loop_filter ( dest_y + 8 , linesize , qp_c ) ;\n if ( s -> mb_y + 1 == s -> mb_height ) s -> dsp . h263_h_loop_filter ( dest_y + 8 * linesize + 8 , linesize , qp_c ) ;\n }\n if ( s -> mb_x ) {\n int qp_lc ;\n if ( qp_c || IS_SKIP ( s -> current_picture . mb_type [ xy - 1 ] ) ) qp_lc = qp_c ;\n else qp_lc = s -> current_picture . qscale_table [ xy - 1 ] ;\n if ( qp_lc ) {\n s -> dsp . h263_h_loop_filter ( dest_y , linesize , qp_lc ) ;\n if ( s -> mb_y + 1 == s -> mb_height ) {\n const int chroma_qp = s -> chroma_qscale_table [ qp_lc ] ;\n s -> dsp . h263_h_loop_filter ( dest_y + 8 * linesize , linesize , qp_lc ) ;\n s -> dsp . h263_h_loop_filter ( dest_cb , uvlinesize , chroma_qp ) ;\n s -> dsp . h263_h_loop_filter ( dest_cr , uvlinesize , chroma_qp ) ;\n }\n }\n }\n }"}
{"idx": 9641, "target": 0, "func": "static void * Type_LUTA2B_Read ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number * nItems , cmsUInt32Number SizeOfTag ) {\n cmsUInt32Number BaseOffset ;\n cmsUInt8Number inputChan ;\n cmsUInt8Number outputChan ;\n cmsUInt32Number offsetB ;\n cmsUInt32Number offsetMat ;\n cmsUInt32Number offsetM ;\n cmsUInt32Number offsetC ;\n cmsUInt32Number offsetA ;\n cmsPipeline * NewLUT = NULL ;\n BaseOffset = io -> Tell ( io ) - sizeof ( _cmsTagBase ) ;\n if ( ! _cmsReadUInt8Number ( io , & inputChan ) ) return NULL ;\n if ( ! _cmsReadUInt8Number ( io , & outputChan ) ) return NULL ;\n if ( ! _cmsReadUInt16Number ( io , NULL ) ) return NULL ;\n if ( ! _cmsReadUInt32Number ( io , & offsetB ) ) return NULL ;\n if ( ! _cmsReadUInt32Number ( io , & offsetMat ) ) return NULL ;\n if ( ! _cmsReadUInt32Number ( io , & offsetM ) ) return NULL ;\n if ( ! _cmsReadUInt32Number ( io , & offsetC ) ) return NULL ;\n if ( ! _cmsReadUInt32Number ( io , & offsetA ) ) return NULL ;\n NewLUT = cmsPipelineAlloc ( self -> ContextID , inputChan , outputChan ) ;\n if ( NewLUT == NULL ) return NULL ;\n if ( offsetA != 0 ) {\n if ( ! cmsPipelineInsertStage ( NewLUT , cmsAT_END , ReadSetOfCurves ( self , io , BaseOffset + offsetA , inputChan ) ) ) goto Error ;\n }\n if ( offsetC != 0 ) {\n if ( ! cmsPipelineInsertStage ( NewLUT , cmsAT_END , ReadCLUT ( self , io , BaseOffset + offsetC , inputChan , outputChan ) ) ) goto Error ;\n }\n if ( offsetM != 0 ) {\n if ( ! cmsPipelineInsertStage ( NewLUT , cmsAT_END , ReadSetOfCurves ( self , io , BaseOffset + offsetM , outputChan ) ) ) goto Error ;\n }\n if ( offsetMat != 0 ) {\n if ( ! cmsPipelineInsertStage ( NewLUT , cmsAT_END , ReadMatrix ( self , io , BaseOffset + offsetMat ) ) ) goto Error ;\n }\n if ( offsetB != 0 ) {\n if ( ! cmsPipelineInsertStage ( NewLUT , cmsAT_END , ReadSetOfCurves ( self , io , BaseOffset + offsetB , outputChan ) ) ) goto Error ;\n }\n * nItems = 1 ;\n return NewLUT ;\n Error : cmsPipelineFree ( NewLUT ) ;\n return NULL ;\n cmsUNUSED_PARAMETER ( SizeOfTag ) ;\n }"}
{"idx": 9642, "target": 0, "func": "void PNGAPI png_set_tRNS ( png_structp png_ptr , png_infop info_ptr , png_bytep trans , int num_trans , png_color_16p trans_values ) {\n png_debug1 ( 1 , \"in %s storage function\" , \"tRNS\" ) ;\n if ( png_ptr == NULL || info_ptr == NULL ) return ;\n if ( num_trans < 0 || num_trans > PNG_MAX_PALETTE_LENGTH ) {\n png_warning ( png_ptr , \"Ignoring invalid num_trans value\" ) ;\n return ;\n }\n if ( trans != NULL ) {\n # ifdef PNG_FREE_ME_SUPPORTED png_free_data ( png_ptr , info_ptr , PNG_FREE_TRNS , 0 ) ;\n # endif png_ptr -> trans = info_ptr -> trans = ( png_bytep ) png_malloc ( png_ptr , ( png_uint_32 ) PNG_MAX_PALETTE_LENGTH ) ;\n if ( num_trans > 0 && num_trans <= PNG_MAX_PALETTE_LENGTH ) png_memcpy ( info_ptr -> trans , trans , ( png_size_t ) num_trans ) ;\n }\n if ( trans_values != NULL ) {\n int sample_max = ( 1 << info_ptr -> bit_depth ) ;\n if ( ( info_ptr -> color_type == PNG_COLOR_TYPE_GRAY && ( int ) trans_values -> gray > sample_max ) || ( info_ptr -> color_type == PNG_COLOR_TYPE_RGB && ( ( int ) trans_values -> red > sample_max || ( int ) trans_values -> green > sample_max || ( int ) trans_values -> blue > sample_max ) ) ) png_warning ( png_ptr , \"tRNS chunk has out-of-range samples for bit_depth\" ) ;\n png_memcpy ( & ( info_ptr -> trans_values ) , trans_values , png_sizeof ( png_color_16 ) ) ;\n if ( num_trans == 0 ) num_trans = 1 ;\n }\n info_ptr -> num_trans = ( png_uint_16 ) num_trans ;\n if ( num_trans != 0 ) {\n info_ptr -> valid |= PNG_INFO_tRNS ;\n # ifdef PNG_FREE_ME_SUPPORTED info_ptr -> free_me |= PNG_FREE_TRNS ;\n # else png_ptr -> flags |= PNG_FLAG_FREE_TRNS ;\n # endif }\n }"}
{"idx": 9643, "target": 0, "func": "static Selectivity like_selectivity ( const char * patt , int pattlen , bool case_insensitive ) {\n Selectivity sel = 1.0 ;\n int pos ;\n for ( pos = 0 ;\n pos < pattlen ;\n pos ++ ) {\n if ( patt [ pos ] != '%' && patt [ pos ] != '_' ) break ;\n }\n for ( ;\n pos < pattlen ;\n pos ++ ) {\n if ( patt [ pos ] == '%' ) sel *= FULL_WILDCARD_SEL ;\n else if ( patt [ pos ] == '_' ) sel *= ANY_CHAR_SEL ;\n else if ( patt [ pos ] == '\\\\' ) {\n pos ++ ;\n if ( pos >= pattlen ) break ;\n sel *= FIXED_CHAR_SEL ;\n }\n else sel *= FIXED_CHAR_SEL ;\n }\n if ( sel > 1.0 ) sel = 1.0 ;\n return sel ;\n }"}
{"idx": 9644, "target": 0, "func": "void record_clock_stats ( sockaddr_u * addr , const char * text ) {\n l_fp now ;\n u_long day ;\n if ( ! stats_control ) return ;\n get_systime ( & now ) ;\n filegen_setup ( & clockstats , now . l_ui ) ;\n day = now . l_ui / 86400 + MJD_1900 ;\n now . l_ui %= 86400 ;\n if ( clockstats . fp != NULL ) {\n fprintf ( clockstats . fp , \"%lu %s %s %s\\n\" , day , ulfptoa ( & now , 3 ) , stoa ( addr ) , text ) ;\n fflush ( clockstats . fp ) ;\n }\n }"}
{"idx": 9645, "target": 0, "func": "void check_eol_junk ( const char * eol ) {\n const char * p = eol ;\n DBUG_ENTER ( \"check_eol_junk\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"eol: %s\" , eol ) ) ;\n while ( * p && ( my_isspace ( charset_info , * p ) || * p == '#' || * p == '\\n' ) ) {\n if ( * p && * p == '#' ) {\n p ++ ;\n while ( * p && * p != '\\n' ) p ++ ;\n }\n if ( * p && * p == '\\n' ) check_eol_junk_line ( p ) ;\n if ( * p ) p ++ ;\n }\n check_eol_junk_line ( p ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 9646, "target": 1, "func": "static void super_block_yrd ( VP9_COMP * cpi , MACROBLOCK * x , int * rate , int64_t * distortion , int * skip , int64_t * psse , BLOCK_SIZE bs , int64_t txfm_cache [ TX_MODES ] , int64_t ref_best_rd ) {\n MACROBLOCKD * xd = & x -> e_mbd ;\n int64_t sse ;\n int64_t * ret_sse = psse ? psse : & sse ;\n assert ( bs == xd -> mi [ 0 ] -> mbmi . sb_type ) ;\n if ( cpi -> sf . tx_size_search_method == USE_LARGESTALL || xd -> lossless ) {\n vpx_memset ( txfm_cache , 0 , TX_MODES * sizeof ( int64_t ) ) ;\n choose_largest_tx_size ( cpi , x , rate , distortion , skip , ret_sse , ref_best_rd , bs ) ;\n }\n else {\n choose_tx_size_from_rd ( cpi , x , rate , distortion , skip , ret_sse , txfm_cache , ref_best_rd , bs ) ;\n }\n }"}
{"idx": 9647, "target": 0, "func": "bool statistic_proc_security_check ( VariableStatData * vardata , Oid func_oid ) {\n if ( vardata -> acl_ok ) return true ;\n if ( ! OidIsValid ( func_oid ) ) return false ;\n if ( get_func_leakproof ( func_oid ) ) return true ;\n ereport ( DEBUG2 , ( errmsg_internal ( \"not using statistics because function \\\"%s\\\" is not leak-proof\" , get_func_name ( func_oid ) ) ) ) ;\n return false ;\n }"}
{"idx": 9648, "target": 0, "func": "static int dissect_h225_IA5String ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_IA5String ( tvb , offset , actx , tree , hf_index , NO_BOUND , NO_BOUND , FALSE ) ;\n return offset ;\n }"}
{"idx": 9649, "target": 0, "func": "static void cat_blob ( struct object_entry * oe , unsigned char sha1 [ 20 ] ) {\n struct strbuf line = STRBUF_INIT ;\n unsigned long size ;\n enum object_type type = 0 ;\n char * buf ;\n if ( ! oe || oe -> pack_id == MAX_PACK_ID ) {\n buf = read_sha1_file ( sha1 , & type , & size ) ;\n }\n else {\n type = oe -> type ;\n buf = gfi_unpack_entry ( oe , & size ) ;\n }\n if ( type <= 0 ) {\n strbuf_reset ( & line ) ;\n strbuf_addf ( & line , \"%s missing\\n\" , sha1_to_hex ( sha1 ) ) ;\n cat_blob_write ( line . buf , line . len ) ;\n strbuf_release ( & line ) ;\n free ( buf ) ;\n return ;\n }\n if ( ! buf ) die ( \"Can't read object %s\" , sha1_to_hex ( sha1 ) ) ;\n if ( type != OBJ_BLOB ) die ( \"Object %s is a %s but a blob was expected.\" , sha1_to_hex ( sha1 ) , typename ( type ) ) ;\n strbuf_reset ( & line ) ;\n strbuf_addf ( & line , \"%s %s %lu\\n\" , sha1_to_hex ( sha1 ) , typename ( type ) , size ) ;\n cat_blob_write ( line . buf , line . len ) ;\n strbuf_release ( & line ) ;\n cat_blob_write ( buf , size ) ;\n cat_blob_write ( \"\\n\" , 1 ) ;\n if ( oe && oe -> pack_id == pack_id ) {\n last_blob . offset = oe -> idx . offset ;\n strbuf_attach ( & last_blob . data , buf , size , size ) ;\n last_blob . depth = oe -> depth ;\n }\n else free ( buf ) ;\n }"}
{"idx": 9650, "target": 0, "func": "static guint32 dissect_netb_data_ack ( tvbuff_t * tvb , packet_info * pinfo _U_ , int offset , proto_tree * tree ) {\n nb_xmit_corrl ( tvb , offset , tree ) ;\n nb_remote_session ( tvb , offset , tree ) ;\n nb_local_session ( tvb , offset , tree ) ;\n return 0 ;\n }"}
{"idx": 9651, "target": 0, "func": "static guint prplcb_ev_timeout_add ( guint interval , GSourceFunc func , gpointer udata ) {\n return b_timeout_add ( interval , ( b_event_handler ) func , udata ) ;\n }"}
{"idx": 9652, "target": 1, "func": "hb_bool_t _hb_graphite2_shape ( hb_shape_plan_t * shape_plan , hb_font_t * font , hb_buffer_t * buffer , const hb_feature_t * features , unsigned int num_features ) {\n hb_face_t * face = font -> face ;\n gr_face * grface = HB_SHAPER_DATA_GET ( face ) -> grface ;\n gr_font * grfont = HB_SHAPER_DATA_GET ( font ) ;\n const char * lang = hb_language_to_string ( hb_buffer_get_language ( buffer ) ) ;\n const char * lang_end = lang ? strchr ( lang , '-' ) : NULL ;\n int lang_len = lang_end ? lang_end - lang : - 1 ;\n gr_feature_val * feats = gr_face_featureval_for_lang ( grface , lang ? hb_tag_from_string ( lang , lang_len ) : 0 ) ;\n while ( num_features -- ) {\n const gr_feature_ref * fref = gr_face_find_fref ( grface , features -> tag ) ;\n if ( fref ) gr_fref_set_feature_value ( fref , features -> value , feats ) ;\n features ++ ;\n }\n gr_segment * seg = NULL ;\n const gr_slot * is ;\n unsigned int ci = 0 , ic = 0 ;\n float curradvx = 0. , curradvy = 0. ;\n unsigned int scratch_size ;\n hb_buffer_t : : scratch_buffer_t * scratch = buffer -> get_scratch_buffer ( & scratch_size ) ;\n uint32_t * chars = ( uint32_t * ) scratch ;\n for ( unsigned int i = 0 ;\n i < buffer -> len ;\n ++ i ) chars [ i ] = buffer -> info [ i ] . codepoint ;\n hb_tag_t script_tag [ 2 ] ;\n hb_ot_tags_from_script ( hb_buffer_get_script ( buffer ) , & script_tag [ 0 ] , & script_tag [ 1 ] ) ;\n seg = gr_make_seg ( grfont , grface , script_tag [ 1 ] == HB_TAG_NONE ? script_tag [ 0 ] : script_tag [ 1 ] , feats , gr_utf32 , chars , buffer -> len , | ( hb_buffer_get_direction ( buffer ) == HB_DIRECTION_RTL ? 1 : 0 ) ) ;\n if ( unlikely ( ! seg ) ) {\n if ( feats ) gr_featureval_destroy ( feats ) ;\n return false ;\n }\n unsigned int glyph_count = gr_seg_n_slots ( seg ) ;\n if ( unlikely ( ! glyph_count ) ) {\n if ( feats ) gr_featureval_destroy ( feats ) ;\n gr_seg_destroy ( seg ) ;\n return false ;\n }\n scratch = buffer -> get_scratch_buffer ( & scratch_size ) ;\n while ( ( DIV_CEIL ( sizeof ( hb_graphite2_cluster_t ) * buffer -> len , sizeof ( * scratch ) ) + DIV_CEIL ( sizeof ( hb_codepoint_t ) * glyph_count , sizeof ( * scratch ) ) ) > scratch_size ) {\n if ( unlikely ( ! buffer -> ensure ( buffer -> allocated * 2 ) ) ) {\n if ( feats ) gr_featureval_destroy ( feats ) ;\n gr_seg_destroy ( seg ) ;\n return false ;\n }\n scratch = buffer -> get_scratch_buffer ( & scratch_size ) ;\n }\n # define ALLOCATE_ARRAY ( Type , name , len ) Type * name = ( Type * ) scratch ;\n {\n unsigned int _consumed = DIV_CEIL ( ( len ) * sizeof ( Type ) , sizeof ( * scratch ) ) ;\n assert ( _consumed <= scratch_size ) ;\n scratch += _consumed ;\n scratch_size -= _consumed ;\n }\n ALLOCATE_ARRAY ( hb_graphite2_cluster_t , clusters , buffer -> len ) ;\n ALLOCATE_ARRAY ( hb_codepoint_t , gids , glyph_count ) ;\n # undef ALLOCATE_ARRAY memset ( clusters , 0 , sizeof ( clusters [ 0 ] ) * buffer -> len ) ;\n hb_codepoint_t * pg = gids ;\n clusters [ 0 ] . cluster = buffer -> info [ 0 ] . cluster ;\n for ( is = gr_seg_first_slot ( seg ) , ic = 0 ;\n is ;\n is = gr_slot_next_in_segment ( is ) , ic ++ ) {\n unsigned int before = gr_slot_before ( is ) ;\n unsigned int after = gr_slot_after ( is ) ;\n * pg = gr_slot_gid ( is ) ;\n pg ++ ;\n while ( clusters [ ci ] . base_char > before && ci ) {\n clusters [ ci - 1 ] . num_chars += clusters [ ci ] . num_chars ;\n clusters [ ci - 1 ] . num_glyphs += clusters [ ci ] . num_glyphs ;\n ci -- ;\n }\n if ( gr_slot_can_insert_before ( is ) && clusters [ ci ] . num_chars && before >= clusters [ ci ] . base_char + clusters [ ci ] . num_chars ) {\n hb_graphite2_cluster_t * c = clusters + ci + 1 ;\n c -> base_char = clusters [ ci ] . base_char + clusters [ ci ] . num_chars ;\n c -> cluster = buffer -> info [ c -> base_char ] . cluster ;\n c -> num_chars = before - c -> base_char ;\n c -> base_glyph = ic ;\n c -> num_glyphs = 0 ;\n ci ++ ;\n }\n clusters [ ci ] . num_glyphs ++ ;\n if ( clusters [ ci ] . base_char + clusters [ ci ] . num_chars < after + 1 ) clusters [ ci ] . num_chars = after + 1 - clusters [ ci ] . base_char ;\n }\n ci ++ ;\n for ( unsigned int i = 0 ;\n i < ci ;\n ++ i ) {\n for ( unsigned int j = 0 ;\n j < clusters [ i ] . num_glyphs ;\n ++ j ) {\n hb_glyph_info_t * info = & buffer -> info [ clusters [ i ] . base_glyph + j ] ;\n info -> codepoint = gids [ clusters [ i ] . base_glyph + j ] ;\n info -> cluster = clusters [ i ] . cluster ;\n }\n }\n buffer -> len = glyph_count ;\n if ( HB_DIRECTION_IS_BACKWARD ( buffer -> props . direction ) ) curradvx = gr_seg_advance_X ( seg ) ;\n hb_glyph_position_t * pPos ;\n for ( pPos = hb_buffer_get_glyph_positions ( buffer , NULL ) , is = gr_seg_first_slot ( seg ) ;\n is ;\n pPos ++ , is = gr_slot_next_in_segment ( is ) ) {\n pPos -> x_offset = gr_slot_origin_X ( is ) - curradvx ;\n pPos -> y_offset = gr_slot_origin_Y ( is ) - curradvy ;\n pPos -> x_advance = gr_slot_advance_X ( is , grface , grfont ) ;\n pPos -> y_advance = gr_slot_advance_Y ( is , grface , grfont ) ;\n if ( HB_DIRECTION_IS_BACKWARD ( buffer -> props . direction ) ) curradvx -= pPos -> x_advance ;\n pPos -> x_offset = gr_slot_origin_X ( is ) - curradvx ;\n if ( ! HB_DIRECTION_IS_BACKWARD ( buffer -> props . direction ) ) curradvx += pPos -> x_advance ;\n pPos -> y_offset = gr_slot_origin_Y ( is ) - curradvy ;\n curradvy += pPos -> y_advance ;\n }\n if ( ! HB_DIRECTION_IS_BACKWARD ( buffer -> props . direction ) ) pPos [ - 1 ] . x_advance += gr_seg_advance_X ( seg ) - curradvx ;\n if ( HB_DIRECTION_IS_BACKWARD ( buffer -> props . direction ) ) hb_buffer_reverse_clusters ( buffer ) ;\n if ( feats ) gr_featureval_destroy ( feats ) ;\n gr_seg_destroy ( seg ) ;\n return true ;\n }"}
{"idx": 9653, "target": 0, "func": "void pdf_process_contents ( fz_context * ctx , pdf_processor * proc , pdf_document * doc , pdf_obj * rdb , pdf_obj * stmobj , fz_cookie * cookie ) {\n pdf_csi csi ;\n pdf_lexbuf buf ;\n fz_stream * stm = NULL ;\n if ( ! stmobj ) return ;\n fz_var ( stm ) ;\n pdf_lexbuf_init ( ctx , & buf , PDF_LEXBUF_SMALL ) ;\n pdf_init_csi ( ctx , & csi , doc , rdb , & buf , cookie ) ;\n fz_try ( ctx ) {\n fz_defer_reap_start ( ctx ) ;\n stm = pdf_open_contents_stream ( ctx , doc , stmobj ) ;\n pdf_process_stream ( ctx , proc , & csi , stm ) ;\n pdf_process_end ( ctx , proc , & csi ) ;\n }\n fz_always ( ctx ) {\n fz_defer_reap_end ( ctx ) ;\n fz_drop_stream ( ctx , stm ) ;\n pdf_clear_stack ( ctx , & csi ) ;\n pdf_lexbuf_fin ( ctx , & buf ) ;\n }\n fz_catch ( ctx ) {\n fz_rethrow ( ctx ) ;\n }\n }"}
{"idx": 9654, "target": 0, "func": "static int sort_key_write ( MI_SORT_PARAM * sort_param , const void * a ) {\n uint diff_pos [ 2 ] ;\n char llbuff [ 22 ] , llbuff2 [ 22 ] ;\n SORT_INFO * sort_info = sort_param -> sort_info ;\n MI_CHECK * param = sort_info -> param ;\n int cmp ;\n if ( sort_info -> key_block -> inited ) {\n cmp = ha_key_cmp ( sort_param -> seg , sort_info -> key_block -> lastkey , ( uchar * ) a , USE_WHOLE_KEY , SEARCH_FIND | SEARCH_UPDATE , diff_pos ) ;\n if ( param -> stats_method == MI_STATS_METHOD_NULLS_NOT_EQUAL ) ha_key_cmp ( sort_param -> seg , sort_info -> key_block -> lastkey , ( uchar * ) a , USE_WHOLE_KEY , SEARCH_FIND | SEARCH_NULL_ARE_NOT_EQUAL , diff_pos ) ;\n else if ( param -> stats_method == MI_STATS_METHOD_IGNORE_NULLS ) {\n diff_pos [ 0 ] = mi_collect_stats_nonulls_next ( sort_param -> seg , sort_param -> notnull , sort_info -> key_block -> lastkey , ( uchar * ) a ) ;\n }\n sort_param -> unique [ diff_pos [ 0 ] - 1 ] ++ ;\n }\n else {\n cmp = - 1 ;\n if ( param -> stats_method == MI_STATS_METHOD_IGNORE_NULLS ) mi_collect_stats_nonulls_first ( sort_param -> seg , sort_param -> notnull , ( uchar * ) a ) ;\n }\n if ( ( sort_param -> keyinfo -> flag & HA_NOSAME ) && cmp == 0 ) {\n sort_info -> dupp ++ ;\n sort_info -> info -> lastpos = get_record_for_key ( sort_info -> info , sort_param -> keyinfo , ( uchar * ) a ) ;\n mi_check_print_warning ( param , \"Duplicate key for record at %10s against record at %10s\" , llstr ( sort_info -> info -> lastpos , llbuff ) , llstr ( get_record_for_key ( sort_info -> info , sort_param -> keyinfo , sort_info -> key_block -> lastkey ) , llbuff2 ) ) ;\n param -> testflag |= T_RETRY_WITHOUT_QUICK ;\n if ( sort_info -> param -> testflag & T_VERBOSE ) _mi_print_key ( stdout , sort_param -> seg , ( uchar * ) a , USE_WHOLE_KEY ) ;\n return ( sort_delete_record ( sort_param ) ) ;\n }\n # ifndef DBUG_OFF if ( cmp > 0 ) {\n mi_check_print_error ( param , \"Internal error: Keys are not in order from sort\" ) ;\n return ( 1 ) ;\n }\n # endif return ( sort_insert_key ( sort_param , sort_info -> key_block , ( uchar * ) a , HA_OFFSET_ERROR ) ) ;\n }"}
{"idx": 9655, "target": 0, "func": "void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 )"}
{"idx": 9656, "target": 1, "func": "static void fdct32 ( const int * input , int * output , int round ) {\n int step [ 32 ] ;\n step [ 0 ] = input [ 0 ] + input [ ( 32 - 1 ) ] ;\n step [ 1 ] = input [ 1 ] + input [ ( 32 - 2 ) ] ;\n step [ 2 ] = input [ 2 ] + input [ ( 32 - 3 ) ] ;\n step [ 3 ] = input [ 3 ] + input [ ( 32 - 4 ) ] ;\n step [ 4 ] = input [ 4 ] + input [ ( 32 - 5 ) ] ;\n step [ 5 ] = input [ 5 ] + input [ ( 32 - 6 ) ] ;\n step [ 6 ] = input [ 6 ] + input [ ( 32 - 7 ) ] ;\n step [ 7 ] = input [ 7 ] + input [ ( 32 - 8 ) ] ;\n step [ 8 ] = input [ 8 ] + input [ ( 32 - 9 ) ] ;\n step [ 9 ] = input [ 9 ] + input [ ( 32 - 10 ) ] ;\n step [ 10 ] = input [ 10 ] + input [ ( 32 - 11 ) ] ;\n step [ 11 ] = input [ 11 ] + input [ ( 32 - 12 ) ] ;\n step [ 12 ] = input [ 12 ] + input [ ( 32 - 13 ) ] ;\n step [ 13 ] = input [ 13 ] + input [ ( 32 - 14 ) ] ;\n step [ 14 ] = input [ 14 ] + input [ ( 32 - 15 ) ] ;\n step [ 15 ] = input [ 15 ] + input [ ( 32 - 16 ) ] ;\n step [ 16 ] = - input [ 16 ] + input [ ( 32 - 17 ) ] ;\n step [ 17 ] = - input [ 17 ] + input [ ( 32 - 18 ) ] ;\n step [ 18 ] = - input [ 18 ] + input [ ( 32 - 19 ) ] ;\n step [ 19 ] = - input [ 19 ] + input [ ( 32 - 20 ) ] ;\n step [ 20 ] = - input [ 20 ] + input [ ( 32 - 21 ) ] ;\n step [ 21 ] = - input [ 21 ] + input [ ( 32 - 22 ) ] ;\n step [ 22 ] = - input [ 22 ] + input [ ( 32 - 23 ) ] ;\n step [ 23 ] = - input [ 23 ] + input [ ( 32 - 24 ) ] ;\n step [ 24 ] = - input [ 24 ] + input [ ( 32 - 25 ) ] ;\n step [ 25 ] = - input [ 25 ] + input [ ( 32 - 26 ) ] ;\n step [ 26 ] = - input [ 26 ] + input [ ( 32 - 27 ) ] ;\n step [ 27 ] = - input [ 27 ] + input [ ( 32 - 28 ) ] ;\n step [ 28 ] = - input [ 28 ] + input [ ( 32 - 29 ) ] ;\n step [ 29 ] = - input [ 29 ] + input [ ( 32 - 30 ) ] ;\n step [ 30 ] = - input [ 30 ] + input [ ( 32 - 31 ) ] ;\n step [ 31 ] = - input [ 31 ] + input [ ( 32 - 32 ) ] ;\n output [ 0 ] = step [ 0 ] + step [ 16 - 1 ] ;\n output [ 1 ] = step [ 1 ] + step [ 16 - 2 ] ;\n output [ 2 ] = step [ 2 ] + step [ 16 - 3 ] ;\n output [ 3 ] = step [ 3 ] + step [ 16 - 4 ] ;\n output [ 4 ] = step [ 4 ] + step [ 16 - 5 ] ;\n output [ 5 ] = step [ 5 ] + step [ 16 - 6 ] ;\n output [ 6 ] = step [ 6 ] + step [ 16 - 7 ] ;\n output [ 7 ] = step [ 7 ] + step [ 16 - 8 ] ;\n output [ 8 ] = - step [ 8 ] + step [ 16 - 9 ] ;\n output [ 9 ] = - step [ 9 ] + step [ 16 - 10 ] ;\n output [ 10 ] = - step [ 10 ] + step [ 16 - 11 ] ;\n output [ 11 ] = - step [ 11 ] + step [ 16 - 12 ] ;\n output [ 12 ] = - step [ 12 ] + step [ 16 - 13 ] ;\n output [ 13 ] = - step [ 13 ] + step [ 16 - 14 ] ;\n output [ 14 ] = - step [ 14 ] + step [ 16 - 15 ] ;\n output [ 15 ] = - step [ 15 ] + step [ 16 - 16 ] ;\n output [ 16 ] = step [ 16 ] ;\n output [ 17 ] = step [ 17 ] ;\n output [ 18 ] = step [ 18 ] ;\n output [ 19 ] = step [ 19 ] ;\n output [ 20 ] = dct_32_round ( ( - step [ 20 ] + step [ 27 ] ) * cospi_16_64 ) ;\n output [ 21 ] = dct_32_round ( ( - step [ 21 ] + step [ 26 ] ) * cospi_16_64 ) ;\n output [ 22 ] = dct_32_round ( ( - step [ 22 ] + step [ 25 ] ) * cospi_16_64 ) ;\n output [ 23 ] = dct_32_round ( ( - step [ 23 ] + step [ 24 ] ) * cospi_16_64 ) ;\n output [ 24 ] = dct_32_round ( ( step [ 24 ] + step [ 23 ] ) * cospi_16_64 ) ;\n output [ 25 ] = dct_32_round ( ( step [ 25 ] + step [ 22 ] ) * cospi_16_64 ) ;\n output [ 26 ] = dct_32_round ( ( step [ 26 ] + step [ 21 ] ) * cospi_16_64 ) ;\n output [ 27 ] = dct_32_round ( ( step [ 27 ] + step [ 20 ] ) * cospi_16_64 ) ;\n output [ 28 ] = step [ 28 ] ;\n output [ 29 ] = step [ 29 ] ;\n output [ 30 ] = step [ 30 ] ;\n output [ 31 ] = step [ 31 ] ;\n if ( round ) {\n output [ 0 ] = half_round_shift ( output [ 0 ] ) ;\n output [ 1 ] = half_round_shift ( output [ 1 ] ) ;\n output [ 2 ] = half_round_shift ( output [ 2 ] ) ;\n output [ 3 ] = half_round_shift ( output [ 3 ] ) ;\n output [ 4 ] = half_round_shift ( output [ 4 ] ) ;\n output [ 5 ] = half_round_shift ( output [ 5 ] ) ;\n output [ 6 ] = half_round_shift ( output [ 6 ] ) ;\n output [ 7 ] = half_round_shift ( output [ 7 ] ) ;\n output [ 8 ] = half_round_shift ( output [ 8 ] ) ;\n output [ 9 ] = half_round_shift ( output [ 9 ] ) ;\n output [ 10 ] = half_round_shift ( output [ 10 ] ) ;\n output [ 11 ] = half_round_shift ( output [ 11 ] ) ;\n output [ 12 ] = half_round_shift ( output [ 12 ] ) ;\n output [ 13 ] = half_round_shift ( output [ 13 ] ) ;\n output [ 14 ] = half_round_shift ( output [ 14 ] ) ;\n output [ 15 ] = half_round_shift ( output [ 15 ] ) ;\n output [ 16 ] = half_round_shift ( output [ 16 ] ) ;\n output [ 17 ] = half_round_shift ( output [ 17 ] ) ;\n output [ 18 ] = half_round_shift ( output [ 18 ] ) ;\n output [ 19 ] = half_round_shift ( output [ 19 ] ) ;\n output [ 20 ] = half_round_shift ( output [ 20 ] ) ;\n output [ 21 ] = half_round_shift ( output [ 21 ] ) ;\n output [ 22 ] = half_round_shift ( output [ 22 ] ) ;\n output [ 23 ] = half_round_shift ( output [ 23 ] ) ;\n output [ 24 ] = half_round_shift ( output [ 24 ] ) ;\n output [ 25 ] = half_round_shift ( output [ 25 ] ) ;\n output [ 26 ] = half_round_shift ( output [ 26 ] ) ;\n output [ 27 ] = half_round_shift ( output [ 27 ] ) ;\n output [ 28 ] = half_round_shift ( output [ 28 ] ) ;\n output [ 29 ] = half_round_shift ( output [ 29 ] ) ;\n output [ 30 ] = half_round_shift ( output [ 30 ] ) ;\n output [ 31 ] = half_round_shift ( output [ 31 ] ) ;\n }\n step [ 0 ] = output [ 0 ] + output [ ( 8 - 1 ) ] ;\n step [ 1 ] = output [ 1 ] + output [ ( 8 - 2 ) ] ;\n step [ 2 ] = output [ 2 ] + output [ ( 8 - 3 ) ] ;\n step [ 3 ] = output [ 3 ] + output [ ( 8 - 4 ) ] ;\n step [ 4 ] = - output [ 4 ] + output [ ( 8 - 5 ) ] ;\n step [ 5 ] = - output [ 5 ] + output [ ( 8 - 6 ) ] ;\n step [ 6 ] = - output [ 6 ] + output [ ( 8 - 7 ) ] ;\n step [ 7 ] = - output [ 7 ] + output [ ( 8 - 8 ) ] ;\n step [ 8 ] = output [ 8 ] ;\n step [ 9 ] = output [ 9 ] ;\n step [ 10 ] = dct_32_round ( ( - output [ 10 ] + output [ 13 ] ) * cospi_16_64 ) ;\n step [ 11 ] = dct_32_round ( ( - output [ 11 ] + output [ 12 ] ) * cospi_16_64 ) ;\n step [ 12 ] = dct_32_round ( ( output [ 12 ] + output [ 11 ] ) * cospi_16_64 ) ;\n step [ 13 ] = dct_32_round ( ( output [ 13 ] + output [ 10 ] ) * cospi_16_64 ) ;\n step [ 14 ] = output [ 14 ] ;\n step [ 15 ] = output [ 15 ] ;\n step [ 16 ] = output [ 16 ] + output [ 23 ] ;\n step [ 17 ] = output [ 17 ] + output [ 22 ] ;\n step [ 18 ] = output [ 18 ] + output [ 21 ] ;\n step [ 19 ] = output [ 19 ] + output [ 20 ] ;\n step [ 20 ] = - output [ 20 ] + output [ 19 ] ;\n step [ 21 ] = - output [ 21 ] + output [ 18 ] ;\n step [ 22 ] = - output [ 22 ] + output [ 17 ] ;\n step [ 23 ] = - output [ 23 ] + output [ 16 ] ;\n step [ 24 ] = - output [ 24 ] + output [ 31 ] ;\n step [ 25 ] = - output [ 25 ] + output [ 30 ] ;\n step [ 26 ] = - output [ 26 ] + output [ 29 ] ;\n step [ 27 ] = - output [ 27 ] + output [ 28 ] ;\n step [ 28 ] = output [ 28 ] + output [ 27 ] ;\n step [ 29 ] = output [ 29 ] + output [ 26 ] ;\n step [ 30 ] = output [ 30 ] + output [ 25 ] ;\n step [ 31 ] = output [ 31 ] + output [ 24 ] ;\n output [ 0 ] = step [ 0 ] + step [ 3 ] ;\n output [ 1 ] = step [ 1 ] + step [ 2 ] ;\n output [ 2 ] = - step [ 2 ] + step [ 1 ] ;\n output [ 3 ] = - step [ 3 ] + step [ 0 ] ;\n output [ 4 ] = step [ 4 ] ;\n output [ 5 ] = dct_32_round ( ( - step [ 5 ] + step [ 6 ] ) * cospi_16_64 ) ;\n output [ 6 ] = dct_32_round ( ( step [ 6 ] + step [ 5 ] ) * cospi_16_64 ) ;\n output [ 7 ] = step [ 7 ] ;\n output [ 8 ] = step [ 8 ] + step [ 11 ] ;\n output [ 9 ] = step [ 9 ] + step [ 10 ] ;\n output [ 10 ] = - step [ 10 ] + step [ 9 ] ;\n output [ 11 ] = - step [ 11 ] + step [ 8 ] ;\n output [ 12 ] = - step [ 12 ] + step [ 15 ] ;\n output [ 13 ] = - step [ 13 ] + step [ 14 ] ;\n output [ 14 ] = step [ 14 ] + step [ 13 ] ;\n output [ 15 ] = step [ 15 ] + step [ 12 ] ;\n output [ 16 ] = step [ 16 ] ;\n output [ 17 ] = step [ 17 ] ;\n output [ 18 ] = dct_32_round ( step [ 18 ] * - cospi_8_64 + step [ 29 ] * cospi_24_64 ) ;\n output [ 19 ] = dct_32_round ( step [ 19 ] * - cospi_8_64 + step [ 28 ] * cospi_24_64 ) ;\n output [ 20 ] = dct_32_round ( step [ 20 ] * - cospi_24_64 + step [ 27 ] * - cospi_8_64 ) ;\n output [ 21 ] = dct_32_round ( step [ 21 ] * - cospi_24_64 + step [ 26 ] * - cospi_8_64 ) ;\n output [ 22 ] = step [ 22 ] ;\n output [ 23 ] = step [ 23 ] ;\n output [ 24 ] = step [ 24 ] ;\n output [ 25 ] = step [ 25 ] ;\n output [ 26 ] = dct_32_round ( step [ 26 ] * cospi_24_64 + step [ 21 ] * - cospi_8_64 ) ;\n output [ 27 ] = dct_32_round ( step [ 27 ] * cospi_24_64 + step [ 20 ] * - cospi_8_64 ) ;\n output [ 28 ] = dct_32_round ( step [ 28 ] * cospi_8_64 + step [ 19 ] * cospi_24_64 ) ;\n output [ 29 ] = dct_32_round ( step [ 29 ] * cospi_8_64 + step [ 18 ] * cospi_24_64 ) ;\n output [ 30 ] = step [ 30 ] ;\n output [ 31 ] = step [ 31 ] ;\n step [ 0 ] = dct_32_round ( ( output [ 0 ] + output [ 1 ] ) * cospi_16_64 ) ;\n step [ 1 ] = dct_32_round ( ( - output [ 1 ] + output [ 0 ] ) * cospi_16_64 ) ;\n step [ 2 ] = dct_32_round ( output [ 2 ] * cospi_24_64 + output [ 3 ] * cospi_8_64 ) ;\n step [ 3 ] = dct_32_round ( output [ 3 ] * cospi_24_64 - output [ 2 ] * cospi_8_64 ) ;\n step [ 4 ] = output [ 4 ] + output [ 5 ] ;\n step [ 5 ] = - output [ 5 ] + output [ 4 ] ;\n step [ 6 ] = - output [ 6 ] + output [ 7 ] ;\n step [ 7 ] = output [ 7 ] + output [ 6 ] ;\n step [ 8 ] = output [ 8 ] ;\n step [ 9 ] = dct_32_round ( output [ 9 ] * - cospi_8_64 + output [ 14 ] * cospi_24_64 ) ;\n step [ 10 ] = dct_32_round ( output [ 10 ] * - cospi_24_64 + output [ 13 ] * - cospi_8_64 ) ;\n step [ 11 ] = output [ 11 ] ;\n step [ 12 ] = output [ 12 ] ;\n step [ 13 ] = dct_32_round ( output [ 13 ] * cospi_24_64 + output [ 10 ] * - cospi_8_64 ) ;\n step [ 14 ] = dct_32_round ( output [ 14 ] * cospi_8_64 + output [ 9 ] * cospi_24_64 ) ;\n step [ 15 ] = output [ 15 ] ;\n step [ 16 ] = output [ 16 ] + output [ 19 ] ;\n step [ 17 ] = output [ 17 ] + output [ 18 ] ;\n step [ 18 ] = - output [ 18 ] + output [ 17 ] ;\n step [ 19 ] = - output [ 19 ] + output [ 16 ] ;\n step [ 20 ] = - output [ 20 ] + output [ 23 ] ;\n step [ 21 ] = - output [ 21 ] + output [ 22 ] ;\n step [ 22 ] = output [ 22 ] + output [ 21 ] ;\n step [ 23 ] = output [ 23 ] + output [ 20 ] ;\n step [ 24 ] = output [ 24 ] + output [ 27 ] ;\n step [ 25 ] = output [ 25 ] + output [ 26 ] ;\n step [ 26 ] = - output [ 26 ] + output [ 25 ] ;\n step [ 27 ] = - output [ 27 ] + output [ 24 ] ;\n step [ 28 ] = - output [ 28 ] + output [ 31 ] ;\n step [ 29 ] = - output [ 29 ] + output [ 30 ] ;\n step [ 30 ] = output [ 30 ] + output [ 29 ] ;\n step [ 31 ] = output [ 31 ] + output [ 28 ] ;\n output [ 0 ] = step [ 0 ] ;\n output [ 1 ] = step [ 1 ] ;\n output [ 2 ] = step [ 2 ] ;\n output [ 3 ] = step [ 3 ] ;\n output [ 4 ] = dct_32_round ( step [ 4 ] * cospi_28_64 + step [ 7 ] * cospi_4_64 ) ;\n output [ 5 ] = dct_32_round ( step [ 5 ] * cospi_12_64 + step [ 6 ] * cospi_20_64 ) ;\n output [ 6 ] = dct_32_round ( step [ 6 ] * cospi_12_64 + step [ 5 ] * - cospi_20_64 ) ;\n output [ 7 ] = dct_32_round ( step [ 7 ] * cospi_28_64 + step [ 4 ] * - cospi_4_64 ) ;\n output [ 8 ] = step [ 8 ] + step [ 9 ] ;\n output [ 9 ] = - step [ 9 ] + step [ 8 ] ;\n output [ 10 ] = - step [ 10 ] + step [ 11 ] ;\n output [ 11 ] = step [ 11 ] + step [ 10 ] ;\n output [ 12 ] = step [ 12 ] + step [ 13 ] ;\n output [ 13 ] = - step [ 13 ] + step [ 12 ] ;\n output [ 14 ] = - step [ 14 ] + step [ 15 ] ;\n output [ 15 ] = step [ 15 ] + step [ 14 ] ;\n output [ 16 ] = step [ 16 ] ;\n output [ 17 ] = dct_32_round ( step [ 17 ] * - cospi_4_64 + step [ 30 ] * cospi_28_64 ) ;\n output [ 18 ] = dct_32_round ( step [ 18 ] * - cospi_28_64 + step [ 29 ] * - cospi_4_64 ) ;\n output [ 19 ] = step [ 19 ] ;\n output [ 20 ] = step [ 20 ] ;\n output [ 21 ] = dct_32_round ( step [ 21 ] * - cospi_20_64 + step [ 26 ] * cospi_12_64 ) ;\n output [ 22 ] = dct_32_round ( step [ 22 ] * - cospi_12_64 + step [ 25 ] * - cospi_20_64 ) ;\n output [ 23 ] = step [ 23 ] ;\n output [ 24 ] = step [ 24 ] ;\n output [ 25 ] = dct_32_round ( step [ 25 ] * cospi_12_64 + step [ 22 ] * - cospi_20_64 ) ;\n output [ 26 ] = dct_32_round ( step [ 26 ] * cospi_20_64 + step [ 21 ] * cospi_12_64 ) ;\n output [ 27 ] = step [ 27 ] ;\n output [ 28 ] = step [ 28 ] ;\n output [ 29 ] = dct_32_round ( step [ 29 ] * cospi_28_64 + step [ 18 ] * - cospi_4_64 ) ;\n output [ 30 ] = dct_32_round ( step [ 30 ] * cospi_4_64 + step [ 17 ] * cospi_28_64 ) ;\n output [ 31 ] = step [ 31 ] ;\n step [ 0 ] = output [ 0 ] ;\n step [ 1 ] = output [ 1 ] ;\n step [ 2 ] = output [ 2 ] ;\n step [ 3 ] = output [ 3 ] ;\n step [ 4 ] = output [ 4 ] ;\n step [ 5 ] = output [ 5 ] ;\n step [ 6 ] = output [ 6 ] ;\n step [ 7 ] = output [ 7 ] ;\n step [ 8 ] = dct_32_round ( output [ 8 ] * cospi_30_64 + output [ 15 ] * cospi_2_64 ) ;\n step [ 9 ] = dct_32_round ( output [ 9 ] * cospi_14_64 + output [ 14 ] * cospi_18_64 ) ;\n step [ 10 ] = dct_32_round ( output [ 10 ] * cospi_22_64 + output [ 13 ] * cospi_10_64 ) ;\n step [ 11 ] = dct_32_round ( output [ 11 ] * cospi_6_64 + output [ 12 ] * cospi_26_64 ) ;\n step [ 12 ] = dct_32_round ( output [ 12 ] * cospi_6_64 + output [ 11 ] * - cospi_26_64 ) ;\n step [ 13 ] = dct_32_round ( output [ 13 ] * cospi_22_64 + output [ 10 ] * - cospi_10_64 ) ;\n step [ 14 ] = dct_32_round ( output [ 14 ] * cospi_14_64 + output [ 9 ] * - cospi_18_64 ) ;\n step [ 15 ] = dct_32_round ( output [ 15 ] * cospi_30_64 + output [ 8 ] * - cospi_2_64 ) ;\n step [ 16 ] = output [ 16 ] + output [ 17 ] ;\n step [ 17 ] = - output [ 17 ] + output [ 16 ] ;\n step [ 18 ] = - output [ 18 ] + output [ 19 ] ;\n step [ 19 ] = output [ 19 ] + output [ 18 ] ;\n step [ 20 ] = output [ 20 ] + output [ 21 ] ;\n step [ 21 ] = - output [ 21 ] + output [ 20 ] ;\n step [ 22 ] = - output [ 22 ] + output [ 23 ] ;\n step [ 23 ] = output [ 23 ] + output [ 22 ] ;\n step [ 24 ] = output [ 24 ] + output [ 25 ] ;\n step [ 25 ] = - output [ 25 ] + output [ 24 ] ;\n step [ 26 ] = - output [ 26 ] + output [ 27 ] ;\n step [ 27 ] = output [ 27 ] + output [ 26 ] ;\n step [ 28 ] = output [ 28 ] + output [ 29 ] ;\n step [ 29 ] = - output [ 29 ] + output [ 28 ] ;\n step [ 30 ] = - output [ 30 ] + output [ 31 ] ;\n step [ 31 ] = output [ 31 ] + output [ 30 ] ;\n output [ 0 ] = step [ 0 ] ;\n output [ 16 ] = step [ 1 ] ;\n output [ 8 ] = step [ 2 ] ;\n output [ 24 ] = step [ 3 ] ;\n output [ 4 ] = step [ 4 ] ;\n output [ 20 ] = step [ 5 ] ;\n output [ 12 ] = step [ 6 ] ;\n output [ 28 ] = step [ 7 ] ;\n output [ 2 ] = step [ 8 ] ;\n output [ 18 ] = step [ 9 ] ;\n output [ 10 ] = step [ 10 ] ;\n output [ 26 ] = step [ 11 ] ;\n output [ 6 ] = step [ 12 ] ;\n output [ 22 ] = step [ 13 ] ;\n output [ 14 ] = step [ 14 ] ;\n output [ 30 ] = step [ 15 ] ;\n output [ 1 ] = dct_32_round ( step [ 16 ] * cospi_31_64 + step [ 31 ] * cospi_1_64 ) ;\n output [ 17 ] = dct_32_round ( step [ 17 ] * cospi_15_64 + step [ 30 ] * cospi_17_64 ) ;\n output [ 9 ] = dct_32_round ( step [ 18 ] * cospi_23_64 + step [ 29 ] * cospi_9_64 ) ;\n output [ 25 ] = dct_32_round ( step [ 19 ] * cospi_7_64 + step [ 28 ] * cospi_25_64 ) ;\n output [ 5 ] = dct_32_round ( step [ 20 ] * cospi_27_64 + step [ 27 ] * cospi_5_64 ) ;\n output [ 21 ] = dct_32_round ( step [ 21 ] * cospi_11_64 + step [ 26 ] * cospi_21_64 ) ;\n output [ 13 ] = dct_32_round ( step [ 22 ] * cospi_19_64 + step [ 25 ] * cospi_13_64 ) ;\n output [ 29 ] = dct_32_round ( step [ 23 ] * cospi_3_64 + step [ 24 ] * cospi_29_64 ) ;\n output [ 3 ] = dct_32_round ( step [ 24 ] * cospi_3_64 + step [ 23 ] * - cospi_29_64 ) ;\n output [ 19 ] = dct_32_round ( step [ 25 ] * cospi_19_64 + step [ 22 ] * - cospi_13_64 ) ;\n output [ 11 ] = dct_32_round ( step [ 26 ] * cospi_11_64 + step [ 21 ] * - cospi_21_64 ) ;\n output [ 27 ] = dct_32_round ( step [ 27 ] * cospi_27_64 + step [ 20 ] * - cospi_5_64 ) ;\n output [ 7 ] = dct_32_round ( step [ 28 ] * cospi_7_64 + step [ 19 ] * - cospi_25_64 ) ;\n output [ 23 ] = dct_32_round ( step [ 29 ] * cospi_23_64 + step [ 18 ] * - cospi_9_64 ) ;\n output [ 15 ] = dct_32_round ( step [ 30 ] * cospi_15_64 + step [ 17 ] * - cospi_17_64 ) ;\n output [ 31 ] = dct_32_round ( step [ 31 ] * cospi_31_64 + step [ 16 ] * - cospi_1_64 ) ;\n }"}
{"idx": 9657, "target": 0, "func": "static struct sk_buff * __pfkey_xfrm_state2msg ( const struct xfrm_state * x , int add_keys , int hsc ) {\n struct sk_buff * skb ;\n struct sadb_msg * hdr ;\n struct sadb_sa * sa ;\n struct sadb_lifetime * lifetime ;\n struct sadb_address * addr ;\n struct sadb_key * key ;\n struct sadb_x_sa2 * sa2 ;\n struct sadb_x_sec_ctx * sec_ctx ;\n struct xfrm_sec_ctx * xfrm_ctx ;\n int ctx_size = 0 ;\n int size ;\n int auth_key_size = 0 ;\n int encrypt_key_size = 0 ;\n int sockaddr_size ;\n struct xfrm_encap_tmpl * natt = NULL ;\n int mode ;\n sockaddr_size = pfkey_sockaddr_size ( x -> props . family ) ;\n if ( ! sockaddr_size ) return ERR_PTR ( - EINVAL ) ;\n size = sizeof ( struct sadb_msg ) + sizeof ( struct sadb_sa ) + sizeof ( struct sadb_lifetime ) + ( ( hsc & 1 ) ? sizeof ( struct sadb_lifetime ) : 0 ) + ( ( hsc & 2 ) ? sizeof ( struct sadb_lifetime ) : 0 ) + sizeof ( struct sadb_address ) * 2 + sockaddr_size * 2 + sizeof ( struct sadb_x_sa2 ) ;\n if ( ( xfrm_ctx = x -> security ) ) {\n ctx_size = PFKEY_ALIGN8 ( xfrm_ctx -> ctx_len ) ;\n size += sizeof ( struct sadb_x_sec_ctx ) + ctx_size ;\n }\n if ( ! xfrm_addr_equal ( & x -> sel . saddr , & x -> props . saddr , x -> props . family ) ) size += sizeof ( struct sadb_address ) + sockaddr_size ;\n if ( add_keys ) {\n if ( x -> aalg && x -> aalg -> alg_key_len ) {\n auth_key_size = PFKEY_ALIGN8 ( ( x -> aalg -> alg_key_len + 7 ) / 8 ) ;\n size += sizeof ( struct sadb_key ) + auth_key_size ;\n }\n if ( x -> ealg && x -> ealg -> alg_key_len ) {\n encrypt_key_size = PFKEY_ALIGN8 ( ( x -> ealg -> alg_key_len + 7 ) / 8 ) ;\n size += sizeof ( struct sadb_key ) + encrypt_key_size ;\n }\n }\n if ( x -> encap ) natt = x -> encap ;\n if ( natt && natt -> encap_type ) {\n size += sizeof ( struct sadb_x_nat_t_type ) ;\n size += sizeof ( struct sadb_x_nat_t_port ) ;\n size += sizeof ( struct sadb_x_nat_t_port ) ;\n }\n skb = alloc_skb ( size + 16 , GFP_ATOMIC ) ;\n if ( skb == NULL ) return ERR_PTR ( - ENOBUFS ) ;\n hdr = ( struct sadb_msg * ) skb_put ( skb , sizeof ( struct sadb_msg ) ) ;\n memset ( hdr , 0 , size ) ;\n hdr -> sadb_msg_len = size / sizeof ( uint64_t ) ;\n sa = ( struct sadb_sa * ) skb_put ( skb , sizeof ( struct sadb_sa ) ) ;\n sa -> sadb_sa_len = sizeof ( struct sadb_sa ) / sizeof ( uint64_t ) ;\n sa -> sadb_sa_exttype = SADB_EXT_SA ;\n sa -> sadb_sa_spi = x -> id . spi ;\n sa -> sadb_sa_replay = x -> props . replay_window ;\n switch ( x -> km . state ) {\n case XFRM_STATE_VALID : sa -> sadb_sa_state = x -> km . dying ? SADB_SASTATE_DYING : SADB_SASTATE_MATURE ;\n break ;\n case XFRM_STATE_ACQ : sa -> sadb_sa_state = SADB_SASTATE_LARVAL ;\n break ;\n default : sa -> sadb_sa_state = SADB_SASTATE_DEAD ;\n break ;\n }\n sa -> sadb_sa_auth = 0 ;\n if ( x -> aalg ) {\n struct xfrm_algo_desc * a = xfrm_aalg_get_byname ( x -> aalg -> alg_name , 0 ) ;\n sa -> sadb_sa_auth = ( a && a -> pfkey_supported ) ? a -> desc . sadb_alg_id : 0 ;\n }\n sa -> sadb_sa_encrypt = 0 ;\n BUG_ON ( x -> ealg && x -> calg ) ;\n if ( x -> ealg ) {\n struct xfrm_algo_desc * a = xfrm_ealg_get_byname ( x -> ealg -> alg_name , 0 ) ;\n sa -> sadb_sa_encrypt = ( a && a -> pfkey_supported ) ? a -> desc . sadb_alg_id : 0 ;\n }\n if ( x -> calg ) {\n struct xfrm_algo_desc * a = xfrm_calg_get_byname ( x -> calg -> alg_name , 0 ) ;\n sa -> sadb_sa_encrypt = ( a && a -> pfkey_supported ) ? a -> desc . sadb_alg_id : 0 ;\n }\n sa -> sadb_sa_flags = 0 ;\n if ( x -> props . flags & XFRM_STATE_NOECN ) sa -> sadb_sa_flags |= SADB_SAFLAGS_NOECN ;\n if ( x -> props . flags & XFRM_STATE_DECAP_DSCP ) sa -> sadb_sa_flags |= SADB_SAFLAGS_DECAP_DSCP ;\n if ( x -> props . flags & XFRM_STATE_NOPMTUDISC ) sa -> sadb_sa_flags |= SADB_SAFLAGS_NOPMTUDISC ;\n if ( hsc & 2 ) {\n lifetime = ( struct sadb_lifetime * ) skb_put ( skb , sizeof ( struct sadb_lifetime ) ) ;\n lifetime -> sadb_lifetime_len = sizeof ( struct sadb_lifetime ) / sizeof ( uint64_t ) ;\n lifetime -> sadb_lifetime_exttype = SADB_EXT_LIFETIME_HARD ;\n lifetime -> sadb_lifetime_allocations = _X2KEY ( x -> lft . hard_packet_limit ) ;\n lifetime -> sadb_lifetime_bytes = _X2KEY ( x -> lft . hard_byte_limit ) ;\n lifetime -> sadb_lifetime_addtime = x -> lft . hard_add_expires_seconds ;\n lifetime -> sadb_lifetime_usetime = x -> lft . hard_use_expires_seconds ;\n }\n if ( hsc & 1 ) {\n lifetime = ( struct sadb_lifetime * ) skb_put ( skb , sizeof ( struct sadb_lifetime ) ) ;\n lifetime -> sadb_lifetime_len = sizeof ( struct sadb_lifetime ) / sizeof ( uint64_t ) ;\n lifetime -> sadb_lifetime_exttype = SADB_EXT_LIFETIME_SOFT ;\n lifetime -> sadb_lifetime_allocations = _X2KEY ( x -> lft . soft_packet_limit ) ;\n lifetime -> sadb_lifetime_bytes = _X2KEY ( x -> lft . soft_byte_limit ) ;\n lifetime -> sadb_lifetime_addtime = x -> lft . soft_add_expires_seconds ;\n lifetime -> sadb_lifetime_usetime = x -> lft . soft_use_expires_seconds ;\n }\n lifetime = ( struct sadb_lifetime * ) skb_put ( skb , sizeof ( struct sadb_lifetime ) ) ;\n lifetime -> sadb_lifetime_len = sizeof ( struct sadb_lifetime ) / sizeof ( uint64_t ) ;\n lifetime -> sadb_lifetime_exttype = SADB_EXT_LIFETIME_CURRENT ;\n lifetime -> sadb_lifetime_allocations = x -> curlft . packets ;\n lifetime -> sadb_lifetime_bytes = x -> curlft . bytes ;\n lifetime -> sadb_lifetime_addtime = x -> curlft . add_time ;\n lifetime -> sadb_lifetime_usetime = x -> curlft . use_time ;\n addr = ( struct sadb_address * ) skb_put ( skb , sizeof ( struct sadb_address ) + sockaddr_size ) ;\n addr -> sadb_address_len = ( sizeof ( struct sadb_address ) + sockaddr_size ) / sizeof ( uint64_t ) ;\n addr -> sadb_address_exttype = SADB_EXT_ADDRESS_SRC ;\n addr -> sadb_address_proto = 0 ;\n addr -> sadb_address_reserved = 0 ;\n addr -> sadb_address_prefixlen = pfkey_sockaddr_fill ( & x -> props . saddr , 0 , ( struct sockaddr * ) ( addr + 1 ) , x -> props . family ) ;\n if ( ! addr -> sadb_address_prefixlen ) BUG ( ) ;\n addr = ( struct sadb_address * ) skb_put ( skb , sizeof ( struct sadb_address ) + sockaddr_size ) ;\n addr -> sadb_address_len = ( sizeof ( struct sadb_address ) + sockaddr_size ) / sizeof ( uint64_t ) ;\n addr -> sadb_address_exttype = SADB_EXT_ADDRESS_DST ;\n addr -> sadb_address_proto = 0 ;\n addr -> sadb_address_reserved = 0 ;\n addr -> sadb_address_prefixlen = pfkey_sockaddr_fill ( & x -> id . daddr , 0 , ( struct sockaddr * ) ( addr + 1 ) , x -> props . family ) ;\n if ( ! addr -> sadb_address_prefixlen ) BUG ( ) ;\n if ( ! xfrm_addr_equal ( & x -> sel . saddr , & x -> props . saddr , x -> props . family ) ) {\n addr = ( struct sadb_address * ) skb_put ( skb , sizeof ( struct sadb_address ) + sockaddr_size ) ;\n addr -> sadb_address_len = ( sizeof ( struct sadb_address ) + sockaddr_size ) / sizeof ( uint64_t ) ;\n addr -> sadb_address_exttype = SADB_EXT_ADDRESS_PROXY ;\n addr -> sadb_address_proto = pfkey_proto_from_xfrm ( x -> sel . proto ) ;\n addr -> sadb_address_prefixlen = x -> sel . prefixlen_s ;\n addr -> sadb_address_reserved = 0 ;\n pfkey_sockaddr_fill ( & x -> sel . saddr , x -> sel . sport , ( struct sockaddr * ) ( addr + 1 ) , x -> props . family ) ;\n }\n if ( add_keys && auth_key_size ) {\n key = ( struct sadb_key * ) skb_put ( skb , sizeof ( struct sadb_key ) + auth_key_size ) ;\n key -> sadb_key_len = ( sizeof ( struct sadb_key ) + auth_key_size ) / sizeof ( uint64_t ) ;\n key -> sadb_key_exttype = SADB_EXT_KEY_AUTH ;\n key -> sadb_key_bits = x -> aalg -> alg_key_len ;\n key -> sadb_key_reserved = 0 ;\n memcpy ( key + 1 , x -> aalg -> alg_key , ( x -> aalg -> alg_key_len + 7 ) / 8 ) ;\n }\n if ( add_keys && encrypt_key_size ) {\n key = ( struct sadb_key * ) skb_put ( skb , sizeof ( struct sadb_key ) + encrypt_key_size ) ;\n key -> sadb_key_len = ( sizeof ( struct sadb_key ) + encrypt_key_size ) / sizeof ( uint64_t ) ;\n key -> sadb_key_exttype = SADB_EXT_KEY_ENCRYPT ;\n key -> sadb_key_bits = x -> ealg -> alg_key_len ;\n key -> sadb_key_reserved = 0 ;\n memcpy ( key + 1 , x -> ealg -> alg_key , ( x -> ealg -> alg_key_len + 7 ) / 8 ) ;\n }\n sa2 = ( struct sadb_x_sa2 * ) skb_put ( skb , sizeof ( struct sadb_x_sa2 ) ) ;\n sa2 -> sadb_x_sa2_len = sizeof ( struct sadb_x_sa2 ) / sizeof ( uint64_t ) ;\n sa2 -> sadb_x_sa2_exttype = SADB_X_EXT_SA2 ;\n if ( ( mode = pfkey_mode_from_xfrm ( x -> props . mode ) ) < 0 ) {\n kfree_skb ( skb ) ;\n return ERR_PTR ( - EINVAL ) ;\n }\n sa2 -> sadb_x_sa2_mode = mode ;\n sa2 -> sadb_x_sa2_reserved1 = 0 ;\n sa2 -> sadb_x_sa2_reserved2 = 0 ;\n sa2 -> sadb_x_sa2_sequence = 0 ;\n sa2 -> sadb_x_sa2_reqid = x -> props . reqid ;\n if ( natt && natt -> encap_type ) {\n struct sadb_x_nat_t_type * n_type ;\n struct sadb_x_nat_t_port * n_port ;\n n_type = ( struct sadb_x_nat_t_type * ) skb_put ( skb , sizeof ( * n_type ) ) ;\n n_type -> sadb_x_nat_t_type_len = sizeof ( * n_type ) / sizeof ( uint64_t ) ;\n n_type -> sadb_x_nat_t_type_exttype = SADB_X_EXT_NAT_T_TYPE ;\n n_type -> sadb_x_nat_t_type_type = natt -> encap_type ;\n n_type -> sadb_x_nat_t_type_reserved [ 0 ] = 0 ;\n n_type -> sadb_x_nat_t_type_reserved [ 1 ] = 0 ;\n n_type -> sadb_x_nat_t_type_reserved [ 2 ] = 0 ;\n n_port = ( struct sadb_x_nat_t_port * ) skb_put ( skb , sizeof ( * n_port ) ) ;\n n_port -> sadb_x_nat_t_port_len = sizeof ( * n_port ) / sizeof ( uint64_t ) ;\n n_port -> sadb_x_nat_t_port_exttype = SADB_X_EXT_NAT_T_SPORT ;\n n_port -> sadb_x_nat_t_port_port = natt -> encap_sport ;\n n_port -> sadb_x_nat_t_port_reserved = 0 ;\n n_port = ( struct sadb_x_nat_t_port * ) skb_put ( skb , sizeof ( * n_port ) ) ;\n n_port -> sadb_x_nat_t_port_len = sizeof ( * n_port ) / sizeof ( uint64_t ) ;\n n_port -> sadb_x_nat_t_port_exttype = SADB_X_EXT_NAT_T_DPORT ;\n n_port -> sadb_x_nat_t_port_port = natt -> encap_dport ;\n n_port -> sadb_x_nat_t_port_reserved = 0 ;\n }\n if ( xfrm_ctx ) {\n sec_ctx = ( struct sadb_x_sec_ctx * ) skb_put ( skb , sizeof ( struct sadb_x_sec_ctx ) + ctx_size ) ;\n sec_ctx -> sadb_x_sec_len = ( sizeof ( struct sadb_x_sec_ctx ) + ctx_size ) / sizeof ( uint64_t ) ;\n sec_ctx -> sadb_x_sec_exttype = SADB_X_EXT_SEC_CTX ;\n sec_ctx -> sadb_x_ctx_doi = xfrm_ctx -> ctx_doi ;\n sec_ctx -> sadb_x_ctx_alg = xfrm_ctx -> ctx_alg ;\n sec_ctx -> sadb_x_ctx_len = xfrm_ctx -> ctx_len ;\n memcpy ( sec_ctx + 1 , xfrm_ctx -> ctx_str , xfrm_ctx -> ctx_len ) ;\n }\n return skb ;\n }"}
{"idx": 9658, "target": 0, "func": "static int fmtfp ( char * * sbuffer , char * * buffer , size_t * currlen , size_t * maxlen , LDOUBLE fvalue , int min , int max , int flags ) {\n int signvalue = 0 ;\n LDOUBLE ufvalue ;\n char iconvert [ 20 ] ;\n char fconvert [ 20 ] ;\n int iplace = 0 ;\n int fplace = 0 ;\n int padlen = 0 ;\n int zpadlen = 0 ;\n long intpart ;\n long fracpart ;\n long max10 ;\n if ( max < 0 ) max = 6 ;\n ufvalue = abs_val ( fvalue ) ;\n if ( fvalue < 0 ) signvalue = '-' ;\n else if ( flags & DP_F_PLUS ) signvalue = '+' ;\n else if ( flags & DP_F_SPACE ) signvalue = ' ' ;\n intpart = ( long ) ufvalue ;\n if ( max > 9 ) max = 9 ;\n max10 = roundv ( pow_10 ( max ) ) ;\n fracpart = roundv ( pow_10 ( max ) * ( ufvalue - intpart ) ) ;\n if ( fracpart >= max10 ) {\n intpart ++ ;\n fracpart -= max10 ;\n }\n do {\n iconvert [ iplace ++ ] = \"0123456789\" [ intpart % 10 ] ;\n intpart = ( intpart / 10 ) ;\n }\n while ( intpart && ( iplace < ( int ) sizeof ( iconvert ) ) ) ;\n if ( iplace == sizeof iconvert ) iplace -- ;\n iconvert [ iplace ] = 0 ;\n do {\n fconvert [ fplace ++ ] = \"0123456789\" [ fracpart % 10 ] ;\n fracpart = ( fracpart / 10 ) ;\n }\n while ( fplace < max ) ;\n if ( fplace == sizeof fconvert ) fplace -- ;\n fconvert [ fplace ] = 0 ;\n padlen = min - iplace - max - 1 - ( ( signvalue ) ? 1 : 0 ) ;\n zpadlen = max - fplace ;\n if ( zpadlen < 0 ) zpadlen = 0 ;\n if ( padlen < 0 ) padlen = 0 ;\n if ( flags & DP_F_MINUS ) padlen = - padlen ;\n if ( ( flags & DP_F_ZERO ) && ( padlen > 0 ) ) {\n if ( signvalue ) {\n if ( ! doapr_outch ( sbuffer , buffer , currlen , maxlen , signvalue ) ) return 0 ;\n -- padlen ;\n signvalue = 0 ;\n }\n while ( padlen > 0 ) {\n if ( ! doapr_outch ( sbuffer , buffer , currlen , maxlen , '0' ) ) return 0 ;\n -- padlen ;\n }\n }\n while ( padlen > 0 ) {\n if ( ! doapr_outch ( sbuffer , buffer , currlen , maxlen , ' ' ) ) return 0 ;\n -- padlen ;\n }\n if ( signvalue && ! doapr_outch ( sbuffer , buffer , currlen , maxlen , signvalue ) ) return 0 ;\n while ( iplace > 0 ) {\n if ( ! doapr_outch ( sbuffer , buffer , currlen , maxlen , iconvert [ -- iplace ] ) ) return 0 ;\n }\n if ( max > 0 || ( flags & DP_F_NUM ) ) {\n if ( ! doapr_outch ( sbuffer , buffer , currlen , maxlen , '.' ) ) return 0 ;\n while ( fplace > 0 ) {\n if ( ! doapr_outch ( sbuffer , buffer , currlen , maxlen , fconvert [ -- fplace ] ) ) return 0 ;\n }\n }\n while ( zpadlen > 0 ) {\n if ( ! doapr_outch ( sbuffer , buffer , currlen , maxlen , '0' ) ) return 0 ;\n -- zpadlen ;\n }\n while ( padlen < 0 ) {\n if ( ! doapr_outch ( sbuffer , buffer , currlen , maxlen , ' ' ) ) return 0 ;\n ++ padlen ;\n }\n return 1 ;\n }"}
{"idx": 9659, "target": 0, "func": "static void parse_progress ( void ) {\n fwrite ( command_buf . buf , 1 , command_buf . len , stdout ) ;\n fputc ( '\\n' , stdout ) ;\n fflush ( stdout ) ;\n skip_optional_lf ( ) ;\n }"}
{"idx": 9660, "target": 0, "func": "static void init_scan_tables ( H264Context * h ) {\n int i ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n # define T ( x ) ( x >> 2 ) | ( ( x << 2 ) & 0xF ) h -> zigzag_scan [ i ] = T ( zigzag_scan [ i ] ) ;\n h -> field_scan [ i ] = T ( field_scan [ i ] ) ;\n # undef T }\n for ( i = 0 ;\n i < 64 ;\n i ++ ) {\n # define T ( x ) ( x >> 3 ) | ( ( x & 7 ) << 3 ) h -> zigzag_scan8x8 [ i ] = T ( ff_zigzag_direct [ i ] ) ;\n h -> zigzag_scan8x8_cavlc [ i ] = T ( zigzag_scan8x8_cavlc [ i ] ) ;\n h -> field_scan8x8 [ i ] = T ( field_scan8x8 [ i ] ) ;\n h -> field_scan8x8_cavlc [ i ] = T ( field_scan8x8_cavlc [ i ] ) ;\n # undef T }\n if ( h -> sps . transform_bypass ) {\n memcpy ( h -> zigzag_scan_q0 , zigzag_scan , sizeof ( h -> zigzag_scan_q0 ) ) ;\n memcpy ( h -> zigzag_scan8x8_q0 , ff_zigzag_direct , sizeof ( h -> zigzag_scan8x8_q0 ) ) ;\n memcpy ( h -> zigzag_scan8x8_cavlc_q0 , zigzag_scan8x8_cavlc , sizeof ( h -> zigzag_scan8x8_cavlc_q0 ) ) ;\n memcpy ( h -> field_scan_q0 , field_scan , sizeof ( h -> field_scan_q0 ) ) ;\n memcpy ( h -> field_scan8x8_q0 , field_scan8x8 , sizeof ( h -> field_scan8x8_q0 ) ) ;\n memcpy ( h -> field_scan8x8_cavlc_q0 , field_scan8x8_cavlc , sizeof ( h -> field_scan8x8_cavlc_q0 ) ) ;\n }\n else {\n memcpy ( h -> zigzag_scan_q0 , h -> zigzag_scan , sizeof ( h -> zigzag_scan_q0 ) ) ;\n memcpy ( h -> zigzag_scan8x8_q0 , h -> zigzag_scan8x8 , sizeof ( h -> zigzag_scan8x8_q0 ) ) ;\n memcpy ( h -> zigzag_scan8x8_cavlc_q0 , h -> zigzag_scan8x8_cavlc , sizeof ( h -> zigzag_scan8x8_cavlc_q0 ) ) ;\n memcpy ( h -> field_scan_q0 , h -> field_scan , sizeof ( h -> field_scan_q0 ) ) ;\n memcpy ( h -> field_scan8x8_q0 , h -> field_scan8x8 , sizeof ( h -> field_scan8x8_q0 ) ) ;\n memcpy ( h -> field_scan8x8_cavlc_q0 , h -> field_scan8x8_cavlc , sizeof ( h -> field_scan8x8_cavlc_q0 ) ) ;\n }\n }"}
{"idx": 9661, "target": 0, "func": "int test_mod ( BIO * bp , BN_CTX * ctx ) {\n BIGNUM * a , * b , * c , * d , * e ;\n int i ;\n a = BN_new ( ) ;\n b = BN_new ( ) ;\n c = BN_new ( ) ;\n d = BN_new ( ) ;\n e = BN_new ( ) ;\n BN_bntest_rand ( a , 1024 , 0 , 0 ) ;\n for ( i = 0 ;\n i < num0 ;\n i ++ ) {\n BN_bntest_rand ( b , 450 + i * 10 , 0 , 0 ) ;\n a -> neg = rand_neg ( ) ;\n b -> neg = rand_neg ( ) ;\n BN_mod ( c , a , b , ctx ) ;\n if ( bp != NULL ) {\n if ( ! results ) {\n BN_print ( bp , a ) ;\n BIO_puts ( bp , \" % \" ) ;\n BN_print ( bp , b ) ;\n BIO_puts ( bp , \" - \" ) ;\n }\n BN_print ( bp , c ) ;\n BIO_puts ( bp , \"\\n\" ) ;\n }\n BN_div ( d , e , a , b , ctx ) ;\n BN_sub ( e , e , c ) ;\n if ( ! BN_is_zero ( e ) ) {\n fprintf ( stderr , \"Modulo test failed!\\n\" ) ;\n return 0 ;\n }\n }\n BN_free ( a ) ;\n BN_free ( b ) ;\n BN_free ( c ) ;\n BN_free ( d ) ;\n BN_free ( e ) ;\n return ( 1 ) ;\n }"}
{"idx": 9662, "target": 0, "func": "void irq_info ( Monitor * mon ) {\n }"}
{"idx": 9663, "target": 0, "func": "guint16 elem_tv ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint8 iei , gint pdu_type , int idx , guint32 offset , const gchar * name_add ) {\n guint8 oct ;\n guint16 consumed ;\n guint32 curr_offset ;\n proto_tree * subtree ;\n proto_item * item ;\n value_string_ext elem_names_ext ;\n gint * elem_ett ;\n const gchar * elem_name ;\n guint16 ( * * elem_funcs ) ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string , int string_len ) ;\n curr_offset = offset ;\n consumed = 0 ;\n SET_ELEM_VARS ( pdu_type , elem_names_ext , elem_ett , elem_funcs , & ei_gsm_a_unknown_pdu_type ) ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n if ( oct == iei ) {\n elem_name = try_val_to_str_ext ( idx , & elem_names_ext ) ;\n if ( elem_name == NULL ) {\n proto_tree_add_expert_format ( tree , pinfo , & ei_gsm_a_unknown_element , tvb , curr_offset , - 1 , \"Unknown - aborting dissection%s\" , ( name_add == NULL ) || ( name_add [ 0 ] == '\\0' ) ? \"\" : name_add ) ;\n return consumed ;\n }\n subtree = proto_tree_add_subtree_format ( tree , tvb , curr_offset , - 1 , elem_ett [ idx ] , & item , \"%s%s\" , elem_name , ( name_add == NULL ) || ( name_add [ 0 ] == '\\0' ) ? \"\" : name_add ) ;\n proto_tree_add_uint ( subtree , get_hf_elem_id ( pdu_type ) , tvb , curr_offset , 1 , oct ) ;\n if ( elem_funcs [ idx ] == NULL ) {\n expert_add_info ( pinfo , item , & ei_gsm_a_no_element_dissector ) ;\n consumed = 1 ;\n }\n else {\n gchar * a_add_string ;\n a_add_string = ( gchar * ) wmem_alloc ( wmem_packet_scope ( ) , 1024 ) ;\n a_add_string [ 0 ] = '\\0' ;\n consumed = ( * elem_funcs [ idx ] ) ( tvb , subtree , pinfo , curr_offset + 1 , - 1 , a_add_string , 1024 ) ;\n if ( a_add_string [ 0 ] != '\\0' ) {\n proto_item_append_text ( item , \"%s\" , a_add_string ) ;\n }\n }\n consumed ++ ;\n proto_item_set_len ( item , consumed ) ;\n }\n return consumed ;\n }"}
{"idx": 9664, "target": 0, "func": "static void count_segs_sb ( const VP9_COMMON * cm , MACROBLOCKD * xd , const TileInfo * tile , MODE_INFO * mi , int * no_pred_segcounts , int ( * temporal_predictor_count ) [ 2 ] , int * t_unpred_seg_counts , int mi_row , int mi_col , BLOCK_SIZE bsize ) {\n const int mis = cm -> mi_stride ;\n int bw , bh ;\n const int bs = num_8x8_blocks_wide_lookup [ bsize ] , hbs = bs / 2 ;\n if ( mi_row >= cm -> mi_rows || mi_col >= cm -> mi_cols ) return ;\n bw = num_8x8_blocks_wide_lookup [ mi [ 0 ] . src_mi -> mbmi . sb_type ] ;\n bh = num_8x8_blocks_high_lookup [ mi [ 0 ] . src_mi -> mbmi . sb_type ] ;\n if ( bw == bs && bh == bs ) {\n count_segs ( cm , xd , tile , mi , no_pred_segcounts , temporal_predictor_count , t_unpred_seg_counts , bs , bs , mi_row , mi_col ) ;\n }\n else if ( bw == bs && bh < bs ) {\n count_segs ( cm , xd , tile , mi , no_pred_segcounts , temporal_predictor_count , t_unpred_seg_counts , bs , hbs , mi_row , mi_col ) ;\n count_segs ( cm , xd , tile , mi + hbs * mis , no_pred_segcounts , temporal_predictor_count , t_unpred_seg_counts , bs , hbs , mi_row + hbs , mi_col ) ;\n }\n else if ( bw < bs && bh == bs ) {\n count_segs ( cm , xd , tile , mi , no_pred_segcounts , temporal_predictor_count , t_unpred_seg_counts , hbs , bs , mi_row , mi_col ) ;\n count_segs ( cm , xd , tile , mi + hbs , no_pred_segcounts , temporal_predictor_count , t_unpred_seg_counts , hbs , bs , mi_row , mi_col + hbs ) ;\n }\n else {\n const BLOCK_SIZE subsize = subsize_lookup [ PARTITION_SPLIT ] [ bsize ] ;\n int n ;\n assert ( bw < bs && bh < bs ) ;\n for ( n = 0 ;\n n < 4 ;\n n ++ ) {\n const int mi_dc = hbs * ( n & 1 ) ;\n const int mi_dr = hbs * ( n >> 1 ) ;\n count_segs_sb ( cm , xd , tile , & mi [ mi_dr * mis + mi_dc ] , no_pred_segcounts , temporal_predictor_count , t_unpred_seg_counts , mi_row + mi_dr , mi_col + mi_dc , subsize ) ;\n }\n }\n }"}
{"idx": 9665, "target": 0, "func": "char * ec_strtok ( char * s , const char * delim , char * * ptrptr ) {\n # ifdef HAVE_STRTOK_R return strtok_r ( s , delim , ptrptr ) ;\n # else # warning unsafe strtok # undef strtok return strtok ( s , delim ) ;\n # endif }"}
{"idx": 9666, "target": 0, "func": "static inline void tswap16s ( uint16_t * s ) {\n }"}
{"idx": 9667, "target": 0, "func": "static void dissect_zcl_part_trasfpartframe ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n guint8 options ;\n guint16 u16len ;\n guint8 frame_len ;\n static const int * part_opt [ ] = {\n & hf_zbee_zcl_part_opt_first_block , & hf_zbee_zcl_part_opt_indic_len , & hf_zbee_zcl_part_opt_res , NULL }\n ;\n options = tvb_get_guint8 ( tvb , * offset ) ;\n proto_tree_add_bitmask ( tree , tvb , * offset , hf_zbee_zcl_part_opt , ett_zbee_zcl_part_fragm_options , part_opt , ENC_NA ) ;\n * offset += 1 ;\n if ( ( options & ZBEE_ZCL_PART_OPT_INDIC_LEN ) == 0 ) {\n u16len = ( guint16 ) tvb_get_guint8 ( tvb , * offset ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_part_part_indicator , tvb , * offset , 1 , ( u16len & 0xFF ) ) ;\n * offset += 1 ;\n }\n else {\n u16len = tvb_get_letohs ( tvb , * offset ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_part_part_indicator , tvb , * offset , 2 , u16len ) ;\n * offset += 2 ;\n }\n frame_len = tvb_get_guint8 ( tvb , * offset ) ;\n if ( frame_len == ZBEE_ZCL_INVALID_STR_LENGTH ) frame_len = 0 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_part_part_frame_len , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_part_part_frame , tvb , * offset , frame_len , ENC_NA ) ;\n * offset += frame_len ;\n }"}
{"idx": 9668, "target": 0, "func": "TEST_F ( TransportSecurityPersisterTest , SerializeData2 ) {\n TransportSecurityState : : DomainState domain_state ;\n const base : : Time current_time ( base : : Time : : Now ( ) ) ;\n const base : : Time expiry = current_time + base : : TimeDelta : : FromSeconds ( 1000 ) ;\n static const char kYahooDomain [ ] = \"yahoo.com\" ;\n EXPECT_FALSE ( state_ . GetStaticDomainState ( kYahooDomain , true , & domain_state ) ) ;\n EXPECT_FALSE ( state_ . GetDynamicDomainState ( kYahooDomain , & domain_state ) ) ;\n bool include_subdomains = true ;\n state_ . AddHSTS ( kYahooDomain , expiry , include_subdomains ) ;\n std : : string output ;\n bool dirty ;\n EXPECT_TRUE ( persister_ -> SerializeData ( & output ) ) ;\n EXPECT_TRUE ( persister_ -> LoadEntries ( output , & dirty ) ) ;\n EXPECT_TRUE ( state_ . GetDynamicDomainState ( kYahooDomain , & domain_state ) ) ;\n EXPECT_EQ ( domain_state . sts . upgrade_mode , TransportSecurityState : : DomainState : : MODE_FORCE_HTTPS ) ;\n EXPECT_TRUE ( state_ . GetDynamicDomainState ( \"foo.yahoo.com\" , & domain_state ) ) ;\n EXPECT_EQ ( domain_state . sts . upgrade_mode , TransportSecurityState : : DomainState : : MODE_FORCE_HTTPS ) ;\n EXPECT_TRUE ( state_ . GetDynamicDomainState ( \"foo.bar.yahoo.com\" , & domain_state ) ) ;\n EXPECT_EQ ( domain_state . sts . upgrade_mode , TransportSecurityState : : DomainState : : MODE_FORCE_HTTPS ) ;\n EXPECT_TRUE ( state_ . GetDynamicDomainState ( \"foo.bar.baz.yahoo.com\" , & domain_state ) ) ;\n EXPECT_EQ ( domain_state . sts . upgrade_mode , TransportSecurityState : : DomainState : : MODE_FORCE_HTTPS ) ;\n EXPECT_FALSE ( state_ . GetStaticDomainState ( \"com\" , true , & domain_state ) ) ;\n }"}
{"idx": 9669, "target": 0, "func": "static uint count_exec_stack ( i_ctx_t * i_ctx_p , bool include_marks ) {\n uint count = ref_stack_count ( & e_stack ) ;\n if ( ! include_marks ) {\n uint i ;\n for ( i = count ;\n i -- ;\n ) if ( r_has_type_attrs ( ref_stack_index ( & e_stack , ( long ) i ) , t_null , a_executable ) ) -- count ;\n }\n return count ;\n }"}
{"idx": 9670, "target": 1, "func": "xmlHashTablePtr xmlHashCopy ( xmlHashTablePtr table , xmlHashCopier f ) {\n int i ;\n xmlHashEntryPtr iter ;\n xmlHashEntryPtr next ;\n xmlHashTablePtr ret ;\n if ( table == NULL ) return ( NULL ) ;\n if ( f == NULL ) return ( NULL ) ;\n ret = xmlHashCreate ( table -> size ) ;\n if ( table -> table ) {\n for ( i = 0 ;\n i < table -> size ;\n i ++ ) {\n if ( table -> table [ i ] . valid == 0 ) continue ;\n iter = & ( table -> table [ i ] ) ;\n while ( iter ) {\n next = iter -> next ;\n xmlHashAddEntry3 ( ret , iter -> name , iter -> name2 , iter -> name3 , f ( iter -> payload , iter -> name ) ) ;\n iter = next ;\n }\n }\n }\n ret -> nbElems = table -> nbElems ;\n return ( ret ) ;\n }"}
{"idx": 9671, "target": 0, "func": "static void read_marks ( void ) {\n char line [ 512 ] ;\n FILE * f = fopen ( import_marks_file , \"r\" ) ;\n if ( f ) ;\n else if ( import_marks_file_ignore_missing && errno == ENOENT ) return ;\n else die_errno ( \"cannot read '%s'\" , import_marks_file ) ;\n while ( fgets ( line , sizeof ( line ) , f ) ) {\n uintmax_t mark ;\n char * end ;\n unsigned char sha1 [ 20 ] ;\n struct object_entry * e ;\n end = strchr ( line , '\\n' ) ;\n if ( line [ 0 ] != ':' || ! end ) die ( \"corrupt mark line: %s\" , line ) ;\n * end = 0 ;\n mark = strtoumax ( line + 1 , & end , 10 ) ;\n if ( ! mark || end == line + 1 || * end != ' ' || get_sha1_hex ( end + 1 , sha1 ) ) die ( \"corrupt mark line: %s\" , line ) ;\n e = find_object ( sha1 ) ;\n if ( ! e ) {\n enum object_type type = sha1_object_info ( sha1 , NULL ) ;\n if ( type < 0 ) die ( \"object not found: %s\" , sha1_to_hex ( sha1 ) ) ;\n e = insert_object ( sha1 ) ;\n e -> type = type ;\n e -> pack_id = MAX_PACK_ID ;\n e -> idx . offset = 1 ;\n }\n insert_mark ( mark , e ) ;\n }\n fclose ( f ) ;\n }"}
{"idx": 9672, "target": 0, "func": "void xmlListReverse ( xmlListPtr l ) {\n xmlLinkPtr lk ;\n xmlLinkPtr lkPrev ;\n if ( l == NULL ) return ;\n lkPrev = l -> sentinel ;\n for ( lk = l -> sentinel -> next ;\n lk != l -> sentinel ;\n lk = lk -> next ) {\n lkPrev -> next = lkPrev -> prev ;\n lkPrev -> prev = lk ;\n lkPrev = lk ;\n }\n lkPrev -> next = lkPrev -> prev ;\n lkPrev -> prev = lk ;\n }"}
{"idx": 9673, "target": 0, "func": "static int parse_VariantCol ( tvbuff_t * tvb , packet_info * pinfo , int offset , proto_tree * parent_tree , guint64 base_address , guint32 length _U_ , gboolean is_64bit , struct CRowVariant * variant , const char * fmt , ... ) {\n proto_tree * tree ;\n proto_item * item , * ti_type ;\n va_list ap ;\n struct vtype_data * vt_type ;\n const char * modifier = \"\" , * txt ;\n int size ;\n guint16 vtype_high ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CRowVariant , & item , txt ) ;\n variant -> vtype = tvb_get_letohs ( tvb , offset ) ;\n vt_type = vType_get_type ( ( enum vType ) variant -> vtype ) ;\n vtype_high = ( variant -> vtype & 0xFF00 ) ;\n if ( vtype_high ) {\n if ( vtype_high == VT_VECTOR ) {\n modifier = \"|VT_VECTOR\" ;\n }\n else if ( vtype_high == VT_ARRAY ) {\n modifier = \"|VT_ARRAY\" ;\n }\n else {\n modifier = \"|Unknown, possibly error\" ;\n }\n }\n if ( vt_type == NULL ) {\n ti_type = proto_tree_add_string ( tree , hf_mswsp_ctablecolumn_vtype , tvb , offset , 4 , \"Unknown variant column type\" ) ;\n expert_add_info ( pinfo , ti_type , & ei_mswsp_invalid_variant_type ) ;\n offset += 2 ;\n THROW_FORMATTED ( ReportedBoundsError , \"Unknown variant column type%s\" , modifier ) ;\n return offset ;\n }\n proto_tree_add_string_format_value ( tree , hf_mswsp_rowvariant_vtype , tvb , offset , 2 , vt_type -> str , \"%s%s\" , vt_type -> str , modifier ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_mswsp_rowvariant_reserved1 , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n variant -> reserved1 = tvb_get_letohs ( tvb , offset ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_mswsp_rowvariant_reserved2 , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n variant -> reserved2 = tvb_get_letohl ( tvb , offset ) ;\n offset += 4 ;\n size = get_fixed_vtype_dataize ( ( enum vType ) ( variant -> vtype & 0x00FF ) ) ;\n if ( vtype_high == VT_VECTOR || vtype_high == VT_ARRAY ) {\n offset = parse_VariantColVector ( tvb , offset , tree , base_address , is_64bit , variant , vt_type ) ;\n }\n else {\n wmem_strbuf_t * strbuf = wmem_strbuf_new ( wmem_packet_scope ( ) , \"\" ) ;\n if ( size != - 1 ) {\n const char * desc = vt_type -> str ;\n DISSECTOR_ASSERT_HINT ( vt_type -> tvb_get != 0 , \"appears fixed type that we don't know yet how to handle, please submit a bug with trace\" ) ;\n vt_type -> tvb_get ( tvb , offset , & variant -> content ) ;\n vt_type -> strbuf_append ( strbuf , & variant -> content ) ;\n proto_tree_add_string_format_value ( tree , hf_mswsp_rowvariant_item_value , tvb , offset , size , desc , \"%s: %s\" , desc , wmem_strbuf_get_str ( strbuf ) ) ;\n }\n else {\n gint64 value_address ;\n int buf_offset = offset ;\n int len ;\n union vt_single non_fixed_size_val ;\n DISSECTOR_ASSERT_HINT ( vt_type -> tvb_get_value_only != 0 , \"appears this is a dynamic type that we don't know yet how to handle, please submit a bug with network trace\" ) ;\n if ( is_64bit ) {\n variant -> content . hyperw = tvb_get_letoh64 ( tvb , offset ) ;\n offset += 8 ;\n value_address = variant -> content . hyperw ;\n proto_tree_add_uint64 ( tree , hf_mswsp_rowvariant_item_address64 , tvb , buf_offset , 8 , value_address ) ;\n }\n else {\n variant -> content . longw = tvb_get_letohl ( tvb , offset ) ;\n offset += 4 ;\n value_address = variant -> content . longw ;\n proto_tree_add_uint ( tree , hf_mswsp_rowvariant_item_address32 , tvb , buf_offset , 4 , ( guint32 ) value_address ) ;\n }\n len = vt_type -> tvb_get_value_only ( tvb , ( int ) ( value_address - base_address ) , 0 , & non_fixed_size_val ) ;\n vt_type -> strbuf_append ( strbuf , & non_fixed_size_val ) ;\n proto_tree_add_string ( tree , hf_mswsp_rowvariant_item_value , tvb , ( gint ) ( value_address - base_address ) , len , wmem_strbuf_get_str ( strbuf ) ) ;\n }\n }\n return offset ;\n }"}
{"idx": 9674, "target": 1, "func": "int xmlListInsert ( xmlListPtr l , void * data ) {\n xmlLinkPtr lkPlace , lkNew ;\n if ( l == NULL ) return ( 1 ) ;\n lkPlace = xmlListLowerSearch ( l , data ) ;\n lkNew = ( xmlLinkPtr ) xmlMalloc ( sizeof ( xmlLink ) ) ;\n if ( lkNew == NULL ) {\n xmlGenericError ( xmlGenericErrorContext , \"Cannot initialize memory for new link\" ) ;\n return ( 1 ) ;\n }\n lkNew -> data = data ;\n lkPlace = lkPlace -> prev ;\n lkNew -> next = lkPlace -> next ;\n ( lkPlace -> next ) -> prev = lkNew ;\n lkPlace -> next = lkNew ;\n lkNew -> prev = lkPlace ;\n return 0 ;\n }"}
{"idx": 9675, "target": 0, "func": "static void parse_profile_level_id ( AVFormatContext * s , PayloadContext * h264_data , const char * value ) {\n char buffer [ 3 ] ;\n uint8_t profile_idc ;\n uint8_t profile_iop ;\n uint8_t level_idc ;\n buffer [ 0 ] = value [ 0 ] ;\n buffer [ 1 ] = value [ 1 ] ;\n buffer [ 2 ] = '\\0' ;\n profile_idc = strtol ( buffer , NULL , 16 ) ;\n buffer [ 0 ] = value [ 2 ] ;\n buffer [ 1 ] = value [ 3 ] ;\n profile_iop = strtol ( buffer , NULL , 16 ) ;\n buffer [ 0 ] = value [ 4 ] ;\n buffer [ 1 ] = value [ 5 ] ;\n level_idc = strtol ( buffer , NULL , 16 ) ;\n av_log ( s , AV_LOG_DEBUG , \"RTP Profile IDC: %x Profile IOP: %x Level: %x\\n\" , profile_idc , profile_iop , level_idc ) ;\n h264_data -> profile_idc = profile_idc ;\n h264_data -> profile_iop = profile_iop ;\n h264_data -> level_idc = level_idc ;\n }"}
{"idx": 9676, "target": 0, "func": "static zval * * incomplete_class_get_property_ptr_ptr ( zval * object , zval * member , const zend_literal * key TSRMLS_DC ) {\n incomplete_class_message ( object , E_NOTICE TSRMLS_CC ) ;\n return & EG ( error_zval_ptr ) ;\n }"}
{"idx": 9677, "target": 0, "func": "static void test_bug29306 ( ) {\n MYSQL_FIELD * field ;\n int rc ;\n MYSQL_RES * res ;\n DBUG_ENTER ( \"test_bug29306\" ) ;\n myheader ( \"test_bug29306\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS tab17557\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP VIEW IF EXISTS view17557\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE tab17557 (dd decimal (3,1))\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE VIEW view17557 as SELECT dd FROM tab17557\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO tab17557 VALUES (7.6)\" ) ;\n myquery ( rc ) ;\n res = mysql_list_fields ( mysql , \"view17557\" , NULL ) ;\n while ( ( field = mysql_fetch_field ( res ) ) ) {\n if ( ! opt_silent ) {\n printf ( \"field name %s\\n\" , field -> name ) ;\n printf ( \"field table %s\\n\" , field -> table ) ;\n printf ( \"field decimals %d\\n\" , field -> decimals ) ;\n if ( field -> decimals < 1 ) printf ( \"Error! No decimals! \\n\" ) ;\n printf ( \"\\n\\n\" ) ;\n }\n DIE_UNLESS ( field -> decimals == 1 ) ;\n }\n mysql_free_result ( res ) ;\n rc = mysql_query ( mysql , \"DROP TABLE tab17557\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP VIEW view17557\" ) ;\n myquery ( rc ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 9678, "target": 0, "func": "static int kq_dispatch ( struct event_base * base , void * arg , struct timeval * tv ) {\n struct kqop * kqop = arg ;\n struct kevent * changes = kqop -> changes ;\n struct kevent * events = kqop -> events ;\n struct event * ev ;\n struct timespec ts , * ts_p = NULL ;\n int i , res ;\n if ( tv != NULL ) {\n TIMEVAL_TO_TIMESPEC ( tv , & ts ) ;\n ts_p = & ts ;\n }\n res = kevent ( kqop -> kq , changes , kqop -> nchanges , events , kqop -> nevents , ts_p ) ;\n kqop -> nchanges = 0 ;\n if ( res == - 1 ) {\n if ( errno != EINTR ) {\n event_warn ( \"kevent\" ) ;\n return ( - 1 ) ;\n }\n return ( 0 ) ;\n }\n event_debug ( ( \"%s: kevent reports %d\" , __func__ , res ) ) ;\n for ( i = 0 ;\n i < res ;\n i ++ ) {\n int which = 0 ;\n if ( events [ i ] . flags & EV_ERROR ) {\n if ( events [ i ] . data == EBADF || events [ i ] . data == EINVAL || events [ i ] . data == ENOENT ) continue ;\n errno = events [ i ] . data ;\n return ( - 1 ) ;\n }\n if ( events [ i ] . filter == EVFILT_READ ) {\n which |= EV_READ ;\n }\n else if ( events [ i ] . filter == EVFILT_WRITE ) {\n which |= EV_WRITE ;\n }\n else if ( events [ i ] . filter == EVFILT_SIGNAL ) {\n which |= EV_SIGNAL ;\n }\n if ( ! which ) continue ;\n if ( events [ i ] . filter == EVFILT_SIGNAL ) {\n struct event_list * head = ( struct event_list * ) events [ i ] . udata ;\n TAILQ_FOREACH ( ev , head , ev_signal_next ) {\n event_active ( ev , which , events [ i ] . data ) ;\n }\n }\n else {\n ev = ( struct event * ) events [ i ] . udata ;\n if ( ! ( ev -> ev_events & EV_PERSIST ) ) ev -> ev_flags &= ~ EVLIST_X_KQINKERNEL ;\n event_active ( ev , which , 1 ) ;\n }\n }\n return ( 0 ) ;\n }"}
{"idx": 9679, "target": 0, "func": "TEST_F ( TemplateURLTest , SuggestQueryParams ) {\n TemplateURLData data ;\n data . SetURL ( \"{\ngoogle:baseURL}\nsearch?q={\nsearchTerms}\n\" \"#{\ngoogle:originalQueryForSuggestion}\nx\" ) ;\n TemplateURL url ( data ) ;\n TemplateURLRef : : SearchTermsArgs search_terms ( ASCIIToUTF16 ( \"abc\" ) ) ;\n search_terms . original_query = ASCIIToUTF16 ( \"def\" ) ;\n search_terms . accepted_suggestion = 0 ;\n EXPECT_EQ ( \"http://www.google.com/search?q=abc#oq=def&x\" , url . url_ref ( ) . ReplaceSearchTerms ( search_terms , search_terms_data_ ) ) ;\n search_terms . suggest_query_params = \"pq=xyz\" ;\n EXPECT_EQ ( \"http://www.google.com/search?pq=xyz&q=abc#oq=def&x\" , url . url_ref ( ) . ReplaceSearchTerms ( search_terms , search_terms_data_ ) ) ;\n search_terms . append_extra_query_params = true ;\n base : : CommandLine : : ForCurrentProcess ( ) -> AppendSwitchASCII ( switches : : kExtraSearchQueryParams , \"a=b\" ) ;\n EXPECT_EQ ( \"http://www.google.com/search?a=b&pq=xyz&q=abc#oq=def&x\" , url . url_ref ( ) . ReplaceSearchTerms ( search_terms , search_terms_data_ ) ) ;\n }"}
{"idx": 9680, "target": 0, "func": "static int dissect_pvfs_ds_keyval ( tvbuff_t * tvb , proto_tree * tree , int offset ) {\n offset = dissect_pvfs_string ( tvb , tree , hf_pvfs_attribute_key , offset , NULL ) ;\n offset = dissect_pvfs_string ( tvb , tree , hf_pvfs_attribute_value , offset , NULL ) ;\n return offset ;\n }"}
{"idx": 9681, "target": 0, "func": "static PXA2xxI2SState * pxa2xx_i2s_init ( MemoryRegion * sysmem , hwaddr base , qemu_irq irq , qemu_irq rx_dma , qemu_irq tx_dma ) {\n PXA2xxI2SState * s = ( PXA2xxI2SState * ) g_malloc0 ( sizeof ( PXA2xxI2SState ) ) ;\n s -> irq = irq ;\n s -> rx_dma = rx_dma ;\n s -> tx_dma = tx_dma ;\n s -> data_req = pxa2xx_i2s_data_req ;\n pxa2xx_i2s_reset ( s ) ;\n memory_region_init_io ( & s -> iomem , NULL , & pxa2xx_i2s_ops , s , \"pxa2xx-i2s\" , 0x100000 ) ;\n memory_region_add_subregion ( sysmem , base , & s -> iomem ) ;\n vmstate_register ( NULL , base , & vmstate_pxa2xx_i2s , s ) ;\n return s ;\n }"}
{"idx": 9682, "target": 0, "func": "static inline int ff_h263_round_chroma ( int x ) {\n static const uint8_t h263_chroma_roundtab [ 16 ] = {\n 0 , 0 , 0 , 1 , 1 , 1 , 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 1 , }\n ;\n return h263_chroma_roundtab [ x & 0xf ] + ( x >> 3 ) ;\n }"}
{"idx": 9683, "target": 0, "func": "static void ram_class_init ( ObjectClass * klass , void * data ) {\n DeviceClass * dc = DEVICE_CLASS ( klass ) ;\n SysBusDeviceClass * k = SYS_BUS_DEVICE_CLASS ( klass ) ;\n k -> init = ram_init1 ;\n dc -> props = ram_properties ;\n }"}
{"idx": 9684, "target": 0, "func": "static void test_master_service_settings_cache ( void ) {\n int i , j ;\n for ( i = 1 ;\n i < 4 ;\n i ++ ) {\n cache = master_service_settings_cache_init ( master_service , \"module\" , \"service_name\" ) ;\n output . service_uses_local = ( i & 1 ) != 0 ;\n output . service_uses_remote = ( i & 2 ) != 0 ;\n for ( j = 0 ;\n j < 1000 ;\n j ++ ) test_master_service_settings_cache_once ( ) ;\n master_service_settings_cache_deinit ( & cache ) ;\n }\n }"}
{"idx": 9685, "target": 1, "func": "static int xmlHashGrow ( xmlHashTablePtr table , int size ) {\n unsigned long key ;\n int oldsize , i ;\n xmlHashEntryPtr iter , next ;\n struct _xmlHashEntry * oldtable ;\n # ifdef DEBUG_GROW unsigned long nbElem = 0 ;\n # endif if ( table == NULL ) return ( - 1 ) ;\n if ( size < 8 ) return ( - 1 ) ;\n if ( size > 8 * 2048 ) return ( - 1 ) ;\n oldsize = table -> size ;\n oldtable = table -> table ;\n if ( oldtable == NULL ) return ( - 1 ) ;\n table -> table = xmlMalloc ( size * sizeof ( xmlHashEntry ) ) ;\n if ( table -> table == NULL ) {\n table -> table = oldtable ;\n return ( - 1 ) ;\n }\n memset ( table -> table , 0 , size * sizeof ( xmlHashEntry ) ) ;\n table -> size = size ;\n for ( i = 0 ;\n i < oldsize ;\n i ++ ) {\n if ( oldtable [ i ] . valid == 0 ) continue ;\n key = xmlHashComputeKey ( table , oldtable [ i ] . name , oldtable [ i ] . name2 , oldtable [ i ] . name3 ) ;\n memcpy ( & ( table -> table [ key ] ) , & ( oldtable [ i ] ) , sizeof ( xmlHashEntry ) ) ;\n table -> table [ key ] . next = NULL ;\n }\n for ( i = 0 ;\n i < oldsize ;\n i ++ ) {\n iter = oldtable [ i ] . next ;\n while ( iter ) {\n next = iter -> next ;\n key = xmlHashComputeKey ( table , iter -> name , iter -> name2 , iter -> name3 ) ;\n if ( table -> table [ key ] . valid == 0 ) {\n memcpy ( & ( table -> table [ key ] ) , iter , sizeof ( xmlHashEntry ) ) ;\n table -> table [ key ] . next = NULL ;\n xmlFree ( iter ) ;\n }\n else {\n iter -> next = table -> table [ key ] . next ;\n table -> table [ key ] . next = iter ;\n }\n # ifdef DEBUG_GROW nbElem ++ ;\n # endif iter = next ;\n }\n }\n xmlFree ( oldtable ) ;\n # ifdef DEBUG_GROW xmlGenericError ( xmlGenericErrorContext , \"xmlHashGrow : from %d to %d, %d elems\\n\" , oldsize , size , nbElem ) ;\n # endif return ( 0 ) ;\n }"}
{"idx": 9686, "target": 0, "func": "static int virtio_net_exit_pci ( PCIDevice * pci_dev ) {\n VirtIOPCIProxy * proxy = DO_UPCAST ( VirtIOPCIProxy , pci_dev , pci_dev ) ;\n virtio_net_exit ( proxy -> vdev ) ;\n return virtio_exit_pci ( pci_dev ) ;\n }"}
{"idx": 9687, "target": 0, "func": "static chr chrnamed ( struct vars * v , const chr * startp , const chr * endp , chr lastresort ) {\n celt c ;\n int errsave ;\n int e ;\n struct cvec * cv ;\n errsave = v -> err ;\n v -> err = 0 ;\n c = element ( v , startp , endp ) ;\n e = v -> err ;\n v -> err = errsave ;\n if ( e != 0 ) return ( chr ) lastresort ;\n cv = range ( v , c , c , 0 ) ;\n if ( cv -> nchrs == 0 ) return ( chr ) lastresort ;\n return cv -> chrs [ 0 ] ;\n }"}
{"idx": 9688, "target": 0, "func": "static int archive_read_format_cpio_skip ( struct archive_read * a ) {\n struct cpio * cpio = ( struct cpio * ) ( a -> format -> data ) ;\n int64_t to_skip = cpio -> entry_bytes_remaining + cpio -> entry_padding + cpio -> entry_bytes_unconsumed ;\n if ( to_skip != __archive_read_consume ( a , to_skip ) ) {\n return ( ARCHIVE_FATAL ) ;\n }\n cpio -> entry_bytes_remaining = 0 ;\n cpio -> entry_padding = 0 ;\n cpio -> entry_bytes_unconsumed = 0 ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 9689, "target": 0, "func": "struct ifblock * compiler_create_ifelseblock ( struct condition * conds , struct block * blk , struct block * elseblk ) {\n struct ifblock * ifblk ;\n SAFE_CALLOC ( ifblk , 1 , sizeof ( struct ifblock ) ) ;\n ifblk -> conds = conds ;\n ifblk -> blk = blk ;\n ifblk -> elseblk = elseblk ;\n return ifblk ;\n }"}
{"idx": 9690, "target": 0, "func": "static VALUE ossl_asn1_ ## klass ( int argc , VALUE * argv , VALUE self ) \\ {\n return rb_funcall3 ( cASN1 ## klass , rb_intern ( \"new\" ) , argc , argv ) ;\n }\n OSSL_ASN1_IMPL_FACTORY_METHOD ( Boolean ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Integer ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Enumerated ) OSSL_ASN1_IMPL_FACTORY_METHOD ( BitString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( OctetString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( UTF8String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( NumericString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( PrintableString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( T61String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( VideotexString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( IA5String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( GraphicString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( ISO64String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( GeneralString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( UniversalString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( BMPString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Null ) OSSL_ASN1_IMPL_FACTORY_METHOD ( ObjectId )"}
{"idx": 9691, "target": 0, "func": "static void dissect_dns_udp ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree ) {\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"DNS\" ) ;\n dissect_dns_common ( tvb , pinfo , tree , FALSE , FALSE , FALSE ) ;\n }"}
{"idx": 9692, "target": 0, "func": "static void dissect_q931_cause_ie_with_info ( tvbuff_t * tvb , int offset , int len , proto_tree * tree , int hf_cause_value , guint8 * cause_value , const value_string * ie_vals , q931_packet_info * q931_pi ) {\n guint8 octet ;\n guint8 coding_standard ;\n guint8 rejection_reason ;\n if ( len == 0 ) return ;\n octet = tvb_get_guint8 ( tvb , offset ) ;\n coding_standard = octet & 0x60 ;\n if ( coding_standard != Q931_ITU_STANDARDIZED_CODING && ! g931_iso_iec_cause && coding_standard != Q931_ISO_IEC_STANDARDIZED_CODING ) {\n proto_tree_add_uint ( tree , hf_q931_coding_standard , tvb , offset , 1 , octet ) ;\n proto_tree_add_item ( tree , hf_q931_cause_data , tvb , offset , len , ENC_NA ) ;\n return ;\n }\n proto_tree_add_uint ( tree , hf_q931_cause_location , tvb , offset , 1 , octet ) ;\n proto_tree_add_uint ( tree , hf_q931_coding_standard , tvb , offset , 1 , octet ) ;\n proto_tree_add_boolean ( tree , hf_q931_extension_ind , tvb , offset , 1 , octet ) ;\n offset += 1 ;\n len -= 1 ;\n if ( ! ( octet & Q931_IE_VL_EXTENSION ) ) {\n if ( len == 0 ) return ;\n octet = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_q931_cause_recommendation , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_boolean ( tree , hf_q931_extension_ind , tvb , offset , 1 , octet ) ;\n offset += 1 ;\n len -= 1 ;\n }\n if ( len == 0 ) return ;\n octet = tvb_get_guint8 ( tvb , offset ) ;\n * cause_value = octet & 0x7F ;\n if ( q931_pi ) {\n q931_pi -> cause_value = * cause_value ;\n }\n proto_tree_add_uint ( tree , hf_cause_value , tvb , offset , 1 , * cause_value ) ;\n proto_tree_add_boolean ( tree , hf_q931_extension_ind , tvb , offset , 1 , octet ) ;\n offset += 1 ;\n len -= 1 ;\n if ( len == 0 ) return ;\n switch ( * cause_value ) {\n case Q931_CAUSE_UNALLOC_NUMBER : case Q931_CAUSE_NO_ROUTE_TO_DEST : case Q931_CAUSE_QOS_UNAVAILABLE : proto_tree_add_item ( tree , hf_q931_network_service , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_q931_extension_condition_type , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_q931_extension_condition , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n break ;\n case Q931_CAUSE_CALL_REJECTED : rejection_reason = octet & 0x7C ;\n proto_tree_add_item ( tree , hf_q931_cause_call_rejection_reason , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_q931_cause_call_condition , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset += 1 ;\n len -= 1 ;\n if ( len == 0 ) return ;\n switch ( rejection_reason ) {\n case Q931_REJ_USER_SPECIFIC : proto_tree_add_item ( tree , hf_q931_cause_call_user_specific_diagnostic , tvb , offset , len , ENC_NA ) ;\n break ;\n case Q931_REJ_IE_MISSING : proto_tree_add_uint_format_value ( tree , hf_q931_missing_info_element , tvb , offset , 1 , tvb_get_guint8 ( tvb , offset ) , \"%s\" , val_to_str ( tvb_get_guint8 ( tvb , offset ) , ie_vals , \"Unknown (0x%02X)\" ) ) ;\n break ;\n case Q931_REJ_IE_INSUFFICIENT : proto_tree_add_uint_format_value ( tree , hf_q931_insufficient_info_element , tvb , offset , 1 , tvb_get_guint8 ( tvb , offset ) , \"%s\" , val_to_str ( tvb_get_guint8 ( tvb , offset ) , ie_vals , \"Unknown (0x%02X)\" ) ) ;\n break ;\n default : proto_tree_add_item ( tree , hf_q931_cause_call_diagnostic , tvb , offset , len , ENC_NA ) ;\n break ;\n }\n break ;\n case Q931_CAUSE_ACCESS_INFO_DISC : case Q931_CAUSE_INCOMPATIBLE_DEST : case Q931_CAUSE_MAND_IE_MISSING : case Q931_CAUSE_IE_NONEX_OR_UNIMPL : case Q931_CAUSE_INVALID_IE_CONTENTS : do {\n proto_tree_add_uint_format_value ( tree , hf_q931_information_element , tvb , offset , 1 , tvb_get_guint8 ( tvb , offset ) , \"%s\" , val_to_str ( tvb_get_guint8 ( tvb , offset ) , ie_vals , \"Unknown (0x%02X)\" ) ) ;\n offset += 1 ;\n len -= 1 ;\n }\n while ( len != 0 ) ;\n break ;\n case Q931_CAUSE_MT_NONEX_OR_UNIMPL : case Q931_CAUSE_MSG_INCOMPAT_W_CS : proto_tree_add_item ( tree , hf_q931_cause_call_message_type , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n break ;\n case Q931_CAUSE_REC_TIMER_EXP : if ( len < 3 ) return ;\n proto_tree_add_item ( tree , hf_q931_cause_call_rec_timer , tvb , offset , 3 , ENC_NA | ENC_ASCII ) ;\n break ;\n default : proto_tree_add_item ( tree , hf_q931_cause_call_diagnostic , tvb , offset , len , ENC_NA ) ;\n }\n }"}
{"idx": 9693, "target": 0, "func": "static char * pool_strdup ( const char * s ) {\n size_t len = strlen ( s ) + 1 ;\n char * r = pool_alloc ( len ) ;\n memcpy ( r , s , len ) ;\n return r ;\n }"}
{"idx": 9694, "target": 0, "func": "unsigned long ssl3_output_cert_chain ( SSL * s , CERT_PKEY * cpk ) {\n unsigned char * p ;\n unsigned long l = 3 + SSL_HM_HEADER_LENGTH ( s ) ;\n if ( ! ssl_add_cert_chain ( s , cpk , & l ) ) return 0 ;\n l -= 3 + SSL_HM_HEADER_LENGTH ( s ) ;\n p = ssl_handshake_start ( s ) ;\n l2n3 ( l , p ) ;\n l += 3 ;\n if ( ! ssl_set_handshake_header ( s , SSL3_MT_CERTIFICATE , l ) ) {\n SSLerr ( SSL_F_SSL3_OUTPUT_CERT_CHAIN , ERR_R_INTERNAL_ERROR ) ;\n return 0 ;\n }\n return l + SSL_HM_HEADER_LENGTH ( s ) ;\n }"}
{"idx": 9695, "target": 0, "func": "PHP_FUNCTION ( locale_accept_from_http ) {\n UEnumeration * available ;\n char * http_accept = NULL ;\n int http_accept_len ;\n UErrorCode status = 0 ;\n int len ;\n char resultLocale [ INTL_MAX_LOCALE_LEN + 1 ] ;\n UAcceptResult outResult ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"s\" , & http_accept , & http_accept_len ) == FAILURE ) {\n intl_error_set ( NULL , U_ILLEGAL_ARGUMENT_ERROR , \"locale_accept_from_http: unable to parse input parameters\" , 0 TSRMLS_CC ) ;\n RETURN_FALSE ;\n }\n if ( http_accept_len > ULOC_FULLNAME_CAPACITY ) {\n char * start = http_accept ;\n char * end ;\n size_t len ;\n do {\n end = strchr ( start , ',' ) ;\n len = end ? end - start : http_accept_len - ( start - http_accept ) ;\n if ( len > ULOC_FULLNAME_CAPACITY ) {\n intl_error_set ( NULL , U_ILLEGAL_ARGUMENT_ERROR , \"locale_accept_from_http: locale string too long\" , 0 TSRMLS_CC ) ;\n RETURN_FALSE ;\n }\n if ( end ) {\n start = end + 1 ;\n }\n }\n while ( end != NULL ) ;\n }\n available = ures_openAvailableLocales ( NULL , & status ) ;\n INTL_CHECK_STATUS ( status , \"locale_accept_from_http: failed to retrieve locale list\" ) ;\n len = uloc_acceptLanguageFromHTTP ( resultLocale , INTL_MAX_LOCALE_LEN , & outResult , http_accept , available , & status ) ;\n uenum_close ( available ) ;\n INTL_CHECK_STATUS ( status , \"locale_accept_from_http: failed to find acceptable locale\" ) ;\n if ( len < 0 || outResult == ULOC_ACCEPT_FAILED ) {\n RETURN_FALSE ;\n }\n RETURN_STRINGL ( resultLocale , len , 1 ) ;\n }"}
{"idx": 9696, "target": 0, "func": "void vp9_fwht4x4_c ( const int16_t * input , tran_low_t * output , int stride ) {\n int i ;\n tran_high_t a1 , b1 , c1 , d1 , e1 ;\n const int16_t * ip_pass0 = input ;\n const tran_low_t * ip = NULL ;\n tran_low_t * op = output ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n a1 = ip_pass0 [ 0 * stride ] ;\n b1 = ip_pass0 [ 1 * stride ] ;\n c1 = ip_pass0 [ 2 * stride ] ;\n d1 = ip_pass0 [ 3 * stride ] ;\n a1 += b1 ;\n d1 = d1 - c1 ;\n e1 = ( a1 - d1 ) >> 1 ;\n b1 = e1 - b1 ;\n c1 = e1 - c1 ;\n a1 -= c1 ;\n d1 += b1 ;\n op [ 0 ] = a1 ;\n op [ 4 ] = c1 ;\n op [ 8 ] = d1 ;\n op [ 12 ] = b1 ;\n ip_pass0 ++ ;\n op ++ ;\n }\n ip = output ;\n op = output ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n a1 = ip [ 0 ] ;\n b1 = ip [ 1 ] ;\n c1 = ip [ 2 ] ;\n d1 = ip [ 3 ] ;\n a1 += b1 ;\n d1 -= c1 ;\n e1 = ( a1 - d1 ) >> 1 ;\n b1 = e1 - b1 ;\n c1 = e1 - c1 ;\n a1 -= c1 ;\n d1 += b1 ;\n op [ 0 ] = a1 * UNIT_QUANT_FACTOR ;\n op [ 1 ] = c1 * UNIT_QUANT_FACTOR ;\n op [ 2 ] = d1 * UNIT_QUANT_FACTOR ;\n op [ 3 ] = b1 * UNIT_QUANT_FACTOR ;\n ip += 4 ;\n op += 4 ;\n }\n }"}
{"idx": 9697, "target": 0, "func": "static inline realpath_cache_bucket * realpath_cache_find ( const char * path , int path_len , time_t t TSRMLS_DC ) {\n # ifdef PHP_WIN32 unsigned long key = realpath_cache_key ( path , path_len TSRMLS_CC ) ;\n # else unsigned long key = realpath_cache_key ( path , path_len ) ;\n # endif unsigned long n = key % ( sizeof ( CWDG ( realpath_cache ) ) / sizeof ( CWDG ( realpath_cache ) [ 0 ] ) ) ;\n realpath_cache_bucket * * bucket = & CWDG ( realpath_cache ) [ n ] ;\n while ( * bucket != NULL ) {\n if ( CWDG ( realpath_cache_ttl ) && ( * bucket ) -> expires < t ) {\n realpath_cache_bucket * r = * bucket ;\n * bucket = ( * bucket ) -> next ;\n if ( r -> path == r -> realpath ) {\n CWDG ( realpath_cache_size ) -= sizeof ( realpath_cache_bucket ) + r -> path_len + 1 ;\n }\n else {\n CWDG ( realpath_cache_size ) -= sizeof ( realpath_cache_bucket ) + r -> path_len + 1 + r -> realpath_len + 1 ;\n }\n free ( r ) ;\n }\n else if ( key == ( * bucket ) -> key && path_len == ( * bucket ) -> path_len && memcmp ( path , ( * bucket ) -> path , path_len ) == 0 ) {\n return * bucket ;\n }\n else {\n bucket = & ( * bucket ) -> next ;\n }\n }\n return NULL ;\n }"}
{"idx": 9698, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , NoStatePrefetchObserverCacheable ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : FIRST_CONTENTFUL_PAINT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/title1.html\" ) ) ;\n waiter -> Wait ( ) ;\n histogram_tester_ . ExpectTotalCount ( \"Prerender.none_PrefetchTTFCP.Reference.NoStore.Visible\" , 0 ) ;\n histogram_tester_ . ExpectTotalCount ( \"Prerender.none_PrefetchTTFCP.Reference.Cacheable.Visible\" , 1 ) ;\n }"}
{"idx": 9699, "target": 0, "func": "static void test_bug1180 ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n MYSQL_BIND my_bind [ 1 ] ;\n ulong length [ 1 ] ;\n char szData [ 11 ] ;\n char query [ MAX_TEST_QUERY_LENGTH ] ;\n myheader ( \"test_select_bug\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_select\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_select(session_id char(9) NOT NULL)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_select VALUES (\\\"abc\\\")\" ) ;\n myquery ( rc ) ;\n strmov ( query , \"SELECT * FROM test_select WHERE ?= \\\"1111\\\" and \" \"session_id= \\\"abc\\\"\" ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 1 ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n strmov ( szData , ( char * ) \"abc\" ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 0 ] . buffer = ( void * ) szData ;\n my_bind [ 0 ] . buffer_length = 10 ;\n my_bind [ 0 ] . length = & length [ 0 ] ;\n length [ 0 ] = 3 ;\n my_bind [ 0 ] . is_null = 0 ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( rc == 0 ) ;\n strmov ( szData , ( char * ) \"1111\" ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 0 ] . buffer = ( void * ) szData ;\n my_bind [ 0 ] . buffer_length = 10 ;\n my_bind [ 0 ] . length = & length [ 0 ] ;\n length [ 0 ] = 4 ;\n my_bind [ 0 ] . is_null = 0 ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( rc == 1 ) ;\n strmov ( szData , ( char * ) \"abc\" ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 0 ] . buffer = ( void * ) szData ;\n my_bind [ 0 ] . buffer_length = 10 ;\n my_bind [ 0 ] . length = & length [ 0 ] ;\n length [ 0 ] = 3 ;\n my_bind [ 0 ] . is_null = 0 ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( rc == 0 ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 9700, "target": 0, "func": "static int collector_decode_htmlnumericentity ( int c , void * data ) {\n struct collector_htmlnumericentity_data * pc = ( struct collector_htmlnumericentity_data * ) data ;\n int f , n , s , r , d , size , * mapelm ;\n switch ( pc -> status ) {\n case 1 : if ( c == 0x23 ) {\n pc -> status = 2 ;\n }\n else {\n pc -> status = 0 ;\n ( * pc -> decoder -> filter_function ) ( 0x26 , pc -> decoder ) ;\n ( * pc -> decoder -> filter_function ) ( c , pc -> decoder ) ;\n }\n break ;\n case 2 : if ( c == 0x78 ) {\n pc -> status = 4 ;\n }\n else if ( c >= 0x30 && c <= 0x39 ) {\n pc -> cache = c - 0x30 ;\n pc -> status = 3 ;\n pc -> digit = 1 ;\n }\n else {\n pc -> status = 0 ;\n ( * pc -> decoder -> filter_function ) ( 0x26 , pc -> decoder ) ;\n ( * pc -> decoder -> filter_function ) ( 0x23 , pc -> decoder ) ;\n ( * pc -> decoder -> filter_function ) ( c , pc -> decoder ) ;\n }\n break ;\n case 3 : s = 0 ;\n f = 0 ;\n if ( c >= 0x30 && c <= 0x39 ) {\n if ( pc -> digit > 9 ) {\n pc -> status = 0 ;\n s = pc -> cache ;\n f = 1 ;\n }\n else {\n s = pc -> cache * 10 + c - 0x30 ;\n pc -> cache = s ;\n pc -> digit ++ ;\n }\n }\n else {\n pc -> status = 0 ;\n s = pc -> cache ;\n f = 1 ;\n n = 0 ;\n size = pc -> mapsize ;\n while ( n < size ) {\n mapelm = & ( pc -> convmap [ n * 4 ] ) ;\n d = s - mapelm [ 2 ] ;\n if ( d >= mapelm [ 0 ] && d <= mapelm [ 1 ] ) {\n f = 0 ;\n ( * pc -> decoder -> filter_function ) ( d , pc -> decoder ) ;\n if ( c != 0x3b ) {\n ( * pc -> decoder -> filter_function ) ( c , pc -> decoder ) ;\n }\n break ;\n }\n n ++ ;\n }\n }\n if ( f ) {\n ( * pc -> decoder -> filter_function ) ( 0x26 , pc -> decoder ) ;\n ( * pc -> decoder -> filter_function ) ( 0x23 , pc -> decoder ) ;\n r = 1 ;\n n = pc -> digit ;\n while ( n > 0 ) {\n r *= 10 ;\n n -- ;\n }\n s %= r ;\n r /= 10 ;\n while ( r > 0 ) {\n d = s / r ;\n s %= r ;\n r /= 10 ;\n ( * pc -> decoder -> filter_function ) ( mbfl_hexchar_table [ d ] , pc -> decoder ) ;\n }\n ( * pc -> decoder -> filter_function ) ( c , pc -> decoder ) ;\n }\n break ;\n case 4 : if ( c >= 0x30 && c <= 0x39 ) {\n pc -> cache = c - 0x30 ;\n pc -> status = 5 ;\n pc -> digit = 1 ;\n }\n else if ( c >= 0x41 && c <= 0x46 ) {\n pc -> cache = c - 0x41 + 10 ;\n pc -> status = 5 ;\n pc -> digit = 1 ;\n }\n else if ( c >= 0x61 && c <= 0x66 ) {\n pc -> cache = c - 0x61 + 10 ;\n pc -> status = 5 ;\n pc -> digit = 1 ;\n }\n else {\n pc -> status = 0 ;\n ( * pc -> decoder -> filter_function ) ( 0x26 , pc -> decoder ) ;\n ( * pc -> decoder -> filter_function ) ( 0x23 , pc -> decoder ) ;\n ( * pc -> decoder -> filter_function ) ( 0x78 , pc -> decoder ) ;\n ( * pc -> decoder -> filter_function ) ( c , pc -> decoder ) ;\n }\n break ;\n case 5 : s = 0 ;\n f = 0 ;\n if ( ( c >= 0x30 && c <= 0x39 ) || ( c >= 0x41 && c <= 0x46 ) || ( c >= 0x61 && c <= 0x66 ) ) {\n if ( pc -> digit > 9 ) {\n pc -> status = 0 ;\n s = pc -> cache ;\n f = 1 ;\n }\n else {\n if ( c >= 0x30 && c <= 0x39 ) {\n s = pc -> cache * 16 + ( c - 0x30 ) ;\n }\n else if ( c >= 0x41 && c <= 0x46 ) {\n s = pc -> cache * 16 + ( c - 0x41 + 10 ) ;\n }\n else {\n s = pc -> cache * 16 + ( c - 0x61 + 10 ) ;\n }\n pc -> cache = s ;\n pc -> digit ++ ;\n }\n }\n else {\n pc -> status = 0 ;\n s = pc -> cache ;\n f = 1 ;\n n = 0 ;\n size = pc -> mapsize ;\n while ( n < size ) {\n mapelm = & ( pc -> convmap [ n * 4 ] ) ;\n d = s - mapelm [ 2 ] ;\n if ( d >= mapelm [ 0 ] && d <= mapelm [ 1 ] ) {\n f = 0 ;\n ( * pc -> decoder -> filter_function ) ( d , pc -> decoder ) ;\n if ( c != 0x3b ) {\n ( * pc -> decoder -> filter_function ) ( c , pc -> decoder ) ;\n }\n break ;\n }\n n ++ ;\n }\n }\n if ( f ) {\n ( * pc -> decoder -> filter_function ) ( 0x26 , pc -> decoder ) ;\n ( * pc -> decoder -> filter_function ) ( 0x23 , pc -> decoder ) ;\n ( * pc -> decoder -> filter_function ) ( 0x78 , pc -> decoder ) ;\n r = 1 ;\n n = pc -> digit ;\n while ( n > 0 ) {\n r *= 16 ;\n n -- ;\n }\n s %= r ;\n r /= 16 ;\n while ( r > 0 ) {\n d = s / r ;\n s %= r ;\n r /= 16 ;\n ( * pc -> decoder -> filter_function ) ( mbfl_hexchar_table [ d ] , pc -> decoder ) ;\n }\n ( * pc -> decoder -> filter_function ) ( c , pc -> decoder ) ;\n }\n break ;\n default : if ( c == 0x26 ) {\n pc -> status = 1 ;\n }\n else {\n ( * pc -> decoder -> filter_function ) ( c , pc -> decoder ) ;\n }\n break ;\n }\n return c ;\n }"}
{"idx": 9701, "target": 0, "func": "static inline Quantum GetPixelBlue ( const Image * restrict image , const Quantum * restrict pixel ) {\n return ( pixel [ image -> channel_map [ BluePixelChannel ] . offset ] ) ;\n }"}
{"idx": 9702, "target": 0, "func": "char * TSFetchRespGet ( TSHttpTxn txnp , int * length ) {\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) length ) == TS_SUCCESS ) ;\n FetchSM * fetch_sm = ( FetchSM * ) txnp ;\n return fetch_sm -> resp_get ( length ) ;\n }"}
{"idx": 9703, "target": 0, "func": "static void wma_lsp_to_curve ( WMACodecContext * s , float * out , float * val_max_ptr , int n , float * lsp ) {\n int i , j ;\n float p , q , w , v , val_max ;\n val_max = 0 ;\n for ( i = 0 ;\n i < n ;\n i ++ ) {\n p = 0.5f ;\n q = 0.5f ;\n w = s -> lsp_cos_table [ i ] ;\n for ( j = 1 ;\n j < NB_LSP_COEFS ;\n j += 2 ) {\n q *= w - lsp [ j - 1 ] ;\n p *= w - lsp [ j ] ;\n }\n p *= p * ( 2.0f - w ) ;\n q *= q * ( 2.0f + w ) ;\n v = p + q ;\n v = pow_m1_4 ( s , v ) ;\n if ( v > val_max ) val_max = v ;\n out [ i ] = v ;\n }\n * val_max_ptr = val_max ;\n }"}
{"idx": 9704, "target": 0, "func": "static int dissect_h245_INTEGER_0_7 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 7U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 9705, "target": 0, "func": "static int dissect_h245_T_pixelAspectCode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_set_of ( tvb , offset , actx , tree , hf_index , ett_h245_T_pixelAspectCode , T_pixelAspectCode_set_of , 1 , 14 , FALSE ) ;\n return offset ;\n }"}
{"idx": 9706, "target": 0, "func": "static int phar_tar_process_metadata ( phar_entry_info * entry , php_stream * fp TSRMLS_DC ) {\n char * metadata ;\n size_t save = php_stream_tell ( fp ) , read ;\n phar_entry_info * mentry ;\n metadata = ( char * ) safe_emalloc ( 1 , entry -> uncompressed_filesize , 1 ) ;\n read = php_stream_read ( fp , metadata , entry -> uncompressed_filesize ) ;\n if ( read != entry -> uncompressed_filesize ) {\n efree ( metadata ) ;\n php_stream_seek ( fp , save , SEEK_SET ) ;\n return FAILURE ;\n }\n if ( phar_parse_metadata ( & metadata , & entry -> metadata , entry -> uncompressed_filesize TSRMLS_CC ) == FAILURE ) {\n efree ( metadata ) ;\n php_stream_seek ( fp , save , SEEK_SET ) ;\n return FAILURE ;\n }\n if ( entry -> filename_len == sizeof ( \".phar/.metadata.bin\" ) - 1 && ! memcmp ( entry -> filename , \".phar/.metadata.bin\" , sizeof ( \".phar/.metadata.bin\" ) - 1 ) ) {\n entry -> phar -> metadata = entry -> metadata ;\n entry -> metadata = NULL ;\n }\n else if ( entry -> filename_len >= sizeof ( \".phar/.metadata/\" ) + sizeof ( \"/.metadata.bin\" ) - 1 && SUCCESS == zend_hash_find ( & ( entry -> phar -> manifest ) , entry -> filename + sizeof ( \".phar/.metadata/\" ) - 1 , entry -> filename_len - ( sizeof ( \"/.metadata.bin\" ) - 1 + sizeof ( \".phar/.metadata/\" ) - 1 ) , ( void * ) & mentry ) ) {\n mentry -> metadata = entry -> metadata ;\n entry -> metadata = NULL ;\n }\n efree ( metadata ) ;\n php_stream_seek ( fp , save , SEEK_SET ) ;\n return SUCCESS ;\n }"}
{"idx": 9707, "target": 0, "func": "void vp9_setup_in_frame_q_adj ( VP9_COMP * cpi ) {\n VP9_COMMON * const cm = & cpi -> common ;\n struct segmentation * const seg = & cm -> seg ;\n vp9_clear_system_state ( ) ;\n if ( cm -> frame_type == KEY_FRAME || cpi -> refresh_alt_ref_frame || ( cpi -> refresh_golden_frame && ! cpi -> rc . is_src_frame_alt_ref ) ) {\n int segment ;\n const int aq_strength = get_aq_c_strength ( cm -> base_qindex , cm -> bit_depth ) ;\n const int active_segments = aq_c_active_segments [ aq_strength ] ;\n vpx_memset ( cpi -> segmentation_map , 0 , cm -> mi_rows * cm -> mi_cols ) ;\n vpx_memset ( cpi -> complexity_map , 0 , cm -> mi_rows * cm -> mi_cols ) ;\n vp9_clearall_segfeatures ( seg ) ;\n if ( cpi -> rc . sb64_target_rate < 256 ) {\n vp9_disable_segmentation ( seg ) ;\n return ;\n }\n vp9_enable_segmentation ( seg ) ;\n seg -> abs_delta = SEGMENT_DELTADATA ;\n vp9_disable_segfeature ( seg , 0 , SEG_LVL_ALT_Q ) ;\n for ( segment = 1 ;\n segment < active_segments ;\n ++ segment ) {\n int qindex_delta = vp9_compute_qdelta_by_rate ( & cpi -> rc , cm -> frame_type , cm -> base_qindex , aq_c_q_adj_factor [ aq_strength ] [ segment ] , cm -> bit_depth ) ;\n if ( ( cm -> base_qindex != 0 ) && ( ( cm -> base_qindex + qindex_delta ) == 0 ) ) {\n qindex_delta = - cm -> base_qindex + 1 ;\n }\n if ( ( cm -> base_qindex + qindex_delta ) > 0 ) {\n vp9_enable_segfeature ( seg , segment , SEG_LVL_ALT_Q ) ;\n vp9_set_segdata ( seg , segment , SEG_LVL_ALT_Q , qindex_delta ) ;\n }\n }\n }\n }"}
{"idx": 9708, "target": 0, "func": "int jbig2_error ( Jbig2Ctx * ctx , Jbig2Severity severity , int32_t segment_number , const char * fmt , ... ) {\n char buf [ 1024 ] ;\n va_list ap ;\n int n ;\n int code ;\n va_start ( ap , fmt ) ;\n n = vsnprintf ( buf , sizeof ( buf ) , fmt , ap ) ;\n va_end ( ap ) ;\n if ( n < 0 || n == sizeof ( buf ) ) strncpy ( buf , \"jbig2_error: error in generating error string\" , sizeof ( buf ) ) ;\n code = ctx -> error_callback ( ctx -> error_callback_data , buf , severity , segment_number ) ;\n if ( severity == JBIG2_SEVERITY_FATAL ) code = - 1 ;\n return code ;\n }"}
{"idx": 9709, "target": 0, "func": "void vp9_update_reference_frames ( VP9_COMP * cpi ) {\n VP9_COMMON * const cm = & cpi -> common ;\n if ( cm -> frame_type == KEY_FRAME ) {\n ref_cnt_fb ( cm -> frame_bufs , & cm -> ref_frame_map [ cpi -> gld_fb_idx ] , cm -> new_fb_idx ) ;\n ref_cnt_fb ( cm -> frame_bufs , & cm -> ref_frame_map [ cpi -> alt_fb_idx ] , cm -> new_fb_idx ) ;\n }\n else if ( vp9_preserve_existing_gf ( cpi ) ) {\n int tmp ;\n ref_cnt_fb ( cm -> frame_bufs , & cm -> ref_frame_map [ cpi -> alt_fb_idx ] , cm -> new_fb_idx ) ;\n tmp = cpi -> alt_fb_idx ;\n cpi -> alt_fb_idx = cpi -> gld_fb_idx ;\n cpi -> gld_fb_idx = tmp ;\n if ( is_two_pass_svc ( cpi ) ) {\n cpi -> svc . layer_context [ 0 ] . gold_ref_idx = cpi -> gld_fb_idx ;\n cpi -> svc . layer_context [ 0 ] . alt_ref_idx = cpi -> alt_fb_idx ;\n }\n }\n else {\n if ( cpi -> refresh_alt_ref_frame ) {\n int arf_idx = cpi -> alt_fb_idx ;\n if ( ( cpi -> oxcf . pass == 2 ) && cpi -> multi_arf_allowed ) {\n const GF_GROUP * const gf_group = & cpi -> twopass . gf_group ;\n arf_idx = gf_group -> arf_update_idx [ gf_group -> index ] ;\n }\n ref_cnt_fb ( cm -> frame_bufs , & cm -> ref_frame_map [ arf_idx ] , cm -> new_fb_idx ) ;\n vpx_memcpy ( cpi -> interp_filter_selected [ ALTREF_FRAME ] , cpi -> interp_filter_selected [ 0 ] , sizeof ( cpi -> interp_filter_selected [ 0 ] ) ) ;\n }\n if ( cpi -> refresh_golden_frame ) {\n ref_cnt_fb ( cm -> frame_bufs , & cm -> ref_frame_map [ cpi -> gld_fb_idx ] , cm -> new_fb_idx ) ;\n if ( ! cpi -> rc . is_src_frame_alt_ref ) vpx_memcpy ( cpi -> interp_filter_selected [ GOLDEN_FRAME ] , cpi -> interp_filter_selected [ 0 ] , sizeof ( cpi -> interp_filter_selected [ 0 ] ) ) ;\n else vpx_memcpy ( cpi -> interp_filter_selected [ GOLDEN_FRAME ] , cpi -> interp_filter_selected [ ALTREF_FRAME ] , sizeof ( cpi -> interp_filter_selected [ ALTREF_FRAME ] ) ) ;\n }\n }\n if ( cpi -> refresh_last_frame ) {\n ref_cnt_fb ( cm -> frame_bufs , & cm -> ref_frame_map [ cpi -> lst_fb_idx ] , cm -> new_fb_idx ) ;\n if ( ! cpi -> rc . is_src_frame_alt_ref ) vpx_memcpy ( cpi -> interp_filter_selected [ LAST_FRAME ] , cpi -> interp_filter_selected [ 0 ] , sizeof ( cpi -> interp_filter_selected [ 0 ] ) ) ;\n }\n # if CONFIG_VP9_TEMPORAL_DENOISING if ( cpi -> oxcf . noise_sensitivity > 0 ) {\n vp9_denoiser_update_frame_info ( & cpi -> denoiser , * cpi -> Source , cpi -> common . frame_type , cpi -> refresh_alt_ref_frame , cpi -> refresh_golden_frame , cpi -> refresh_last_frame ) ;\n }\n # endif }"}
{"idx": 9710, "target": 0, "func": "static void end_ssl ( ) {\n # ifdef HAVE_OPENSSL # ifndef EMBEDDED_LIBRARY if ( ssl_acceptor_fd ) {\n free_vio_ssl_acceptor_fd ( ssl_acceptor_fd ) ;\n ssl_acceptor_fd = 0 ;\n }\n # endif # endif }"}
{"idx": 9711, "target": 0, "func": "static void pdf_run_bstar ( fz_context * ctx , pdf_processor * proc ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_show_path ( ctx , pr , 1 , 1 , 1 , 1 ) ;\n }"}
{"idx": 9712, "target": 0, "func": "static struct evhttp * evhttp_new_object ( void ) {\n struct evhttp * http = NULL ;\n if ( ( http = calloc ( 1 , sizeof ( struct evhttp ) ) ) == NULL ) {\n event_warn ( \"%s: calloc\" , __func__ ) ;\n return ( NULL ) ;\n }\n http -> timeout = - 1 ;\n TAILQ_INIT ( & http -> sockets ) ;\n TAILQ_INIT ( & http -> callbacks ) ;\n TAILQ_INIT ( & http -> connections ) ;\n return ( http ) ;\n }"}
{"idx": 9713, "target": 0, "func": "static void test_multiple ( void ) {\n struct event ev , ev2 ;\n int i ;\n setup_test ( \"Multiple read/write: \" ) ;\n memset ( rbuf , 0 , sizeof ( rbuf ) ) ;\n for ( i = 0 ;\n i < sizeof ( wbuf ) ;\n i ++ ) wbuf [ i ] = i ;\n roff = woff = 0 ;\n usepersist = 0 ;\n event_set ( & ev , pair [ 0 ] , EV_WRITE , multiple_write_cb , & ev ) ;\n if ( event_add ( & ev , NULL ) == - 1 ) exit ( 1 ) ;\n event_set ( & ev2 , pair [ 1 ] , EV_READ , multiple_read_cb , & ev2 ) ;\n if ( event_add ( & ev2 , NULL ) == - 1 ) exit ( 1 ) ;\n event_dispatch ( ) ;\n if ( roff == woff ) test_ok = memcmp ( rbuf , wbuf , sizeof ( wbuf ) ) == 0 ;\n cleanup_test ( ) ;\n }"}
{"idx": 9714, "target": 0, "func": "int16_t * ff_h263_pred_motion ( MpegEncContext * s , int block , int dir , int * px , int * py ) {\n int wrap ;\n int16_t * A , * B , * C , ( * mot_val ) [ 2 ] ;\n static const int off [ 4 ] = {\n 2 , 1 , 1 , - 1 }\n ;\n wrap = s -> b8_stride ;\n mot_val = s -> current_picture . motion_val [ dir ] + s -> block_index [ block ] ;\n A = mot_val [ - 1 ] ;\n if ( s -> first_slice_line && block < 3 ) {\n if ( block == 0 ) {\n if ( s -> mb_x == s -> resync_mb_x ) {\n * px = * py = 0 ;\n }\n else if ( s -> mb_x + 1 == s -> resync_mb_x && s -> h263_pred ) {\n C = mot_val [ off [ block ] - wrap ] ;\n if ( s -> mb_x == 0 ) {\n * px = C [ 0 ] ;\n * py = C [ 1 ] ;\n }\n else {\n * px = mid_pred ( A [ 0 ] , 0 , C [ 0 ] ) ;\n * py = mid_pred ( A [ 1 ] , 0 , C [ 1 ] ) ;\n }\n }\n else {\n * px = A [ 0 ] ;\n * py = A [ 1 ] ;\n }\n }\n else if ( block == 1 ) {\n if ( s -> mb_x + 1 == s -> resync_mb_x && s -> h263_pred ) {\n C = mot_val [ off [ block ] - wrap ] ;\n * px = mid_pred ( A [ 0 ] , 0 , C [ 0 ] ) ;\n * py = mid_pred ( A [ 1 ] , 0 , C [ 1 ] ) ;\n }\n else {\n * px = A [ 0 ] ;\n * py = A [ 1 ] ;\n }\n }\n else {\n B = mot_val [ - wrap ] ;\n C = mot_val [ off [ block ] - wrap ] ;\n if ( s -> mb_x == s -> resync_mb_x ) A [ 0 ] = A [ 1 ] = 0 ;\n * px = mid_pred ( A [ 0 ] , B [ 0 ] , C [ 0 ] ) ;\n * py = mid_pred ( A [ 1 ] , B [ 1 ] , C [ 1 ] ) ;\n }\n }\n else {\n B = mot_val [ - wrap ] ;\n C = mot_val [ off [ block ] - wrap ] ;\n * px = mid_pred ( A [ 0 ] , B [ 0 ] , C [ 0 ] ) ;\n * py = mid_pred ( A [ 1 ] , B [ 1 ] , C [ 1 ] ) ;\n }\n return * mot_val ;\n }"}
{"idx": 9715, "target": 0, "func": "static struct cvec * range ( struct vars * v , celt a , celt b , int cases ) {\n int nchrs ;\n struct cvec * cv ;\n celt c , cc ;\n if ( a != b && ! before ( a , b ) ) {\n ERR ( REG_ERANGE ) ;\n return NULL ;\n }\n if ( ! cases ) {\n cv = getcvec ( v , 0 , 1 ) ;\n NOERRN ( ) ;\n addrange ( cv , a , b ) ;\n return cv ;\n }\n nchrs = b - a + 1 ;\n if ( nchrs <= 0 || nchrs > 100000 ) nchrs = 100000 ;\n cv = getcvec ( v , nchrs , 1 ) ;\n NOERRN ( ) ;\n addrange ( cv , a , b ) ;\n for ( c = a ;\n c <= b ;\n c ++ ) {\n cc = pg_wc_tolower ( ( chr ) c ) ;\n if ( cc != c && ( before ( cc , a ) || before ( b , cc ) ) ) {\n if ( cv -> nchrs >= cv -> chrspace ) {\n ERR ( REG_ETOOBIG ) ;\n return NULL ;\n }\n addchr ( cv , cc ) ;\n }\n cc = pg_wc_toupper ( ( chr ) c ) ;\n if ( cc != c && ( before ( cc , a ) || before ( b , cc ) ) ) {\n if ( cv -> nchrs >= cv -> chrspace ) {\n ERR ( REG_ETOOBIG ) ;\n return NULL ;\n }\n addchr ( cv , cc ) ;\n }\n if ( CANCEL_REQUESTED ( v -> re ) ) {\n ERR ( REG_CANCEL ) ;\n return NULL ;\n }\n }\n return cv ;\n }"}
{"idx": 9716, "target": 0, "func": "int ffv1_allocate_initial_states ( FFV1Context * f ) {\n int i ;\n for ( i = 0 ;\n i < f -> quant_table_count ;\n i ++ ) {\n f -> initial_states [ i ] = av_malloc ( f -> context_count [ i ] * sizeof ( * f -> initial_states [ i ] ) ) ;\n if ( ! f -> initial_states [ i ] ) return AVERROR ( ENOMEM ) ;\n memset ( f -> initial_states [ i ] , 128 , f -> context_count [ i ] * sizeof ( * f -> initial_states [ i ] ) ) ;\n }\n return 0 ;\n }"}
{"idx": 9717, "target": 0, "func": "picture_t * DecodeVideo ( decoder_t * p_dec , block_t * * pp_block ) {\n decoder_sys_t * p_sys = p_dec -> p_sys ;\n AVCodecContext * p_context = p_sys -> p_context ;\n int b_drawpicture ;\n block_t * p_block ;\n if ( ! pp_block ) return NULL ;\n if ( ! p_context -> extradata_size && p_dec -> fmt_in . i_extra ) {\n ffmpeg_InitCodec ( p_dec ) ;\n if ( p_sys -> b_delayed_open ) {\n if ( ffmpeg_OpenCodec ( p_dec ) ) msg_Err ( p_dec , \"cannot open codec (%s)\" , p_sys -> psz_namecodec ) ;\n }\n }\n p_block = * pp_block ;\n if ( ! p_block && ! ( p_sys -> p_codec -> capabilities & CODEC_CAP_DELAY ) ) return NULL ;\n if ( p_sys -> b_delayed_open ) {\n if ( p_block ) block_Release ( p_block ) ;\n return NULL ;\n }\n if ( p_block ) {\n if ( p_block -> i_flags & ( BLOCK_FLAG_DISCONTINUITY | BLOCK_FLAG_CORRUPTED ) ) {\n p_sys -> i_pts = VLC_TS_INVALID ;\n p_sys -> i_late_frames = 0 ;\n post_mt ( p_sys ) ;\n if ( p_block -> i_flags & BLOCK_FLAG_DISCONTINUITY ) avcodec_flush_buffers ( p_context ) ;\n wait_mt ( p_sys ) ;\n block_Release ( p_block ) ;\n return NULL ;\n }\n if ( p_block -> i_flags & BLOCK_FLAG_PREROLL ) {\n p_sys -> i_late_frames = 0 ;\n }\n }\n if ( ! p_dec -> b_pace_control && ( p_sys -> i_late_frames > 0 ) && ( mdate ( ) - p_sys -> i_late_frames_start > INT64_C ( 5000000 ) ) ) {\n if ( p_sys -> i_pts > VLC_TS_INVALID ) {\n p_sys -> i_pts = VLC_TS_INVALID ;\n }\n if ( p_block ) block_Release ( p_block ) ;\n p_sys -> i_late_frames -- ;\n msg_Err ( p_dec , \"more than 5 seconds of late video -> \" \"dropping frame (computer too slow ?)\" ) ;\n return NULL ;\n }\n if ( ! p_dec -> b_pace_control && p_sys -> b_hurry_up && ( p_sys -> i_late_frames > 4 ) ) {\n b_drawpicture = 0 ;\n if ( p_sys -> i_late_frames < 12 ) {\n p_context -> skip_frame = ( p_sys -> i_skip_frame <= AVDISCARD_NONREF ) ? AVDISCARD_NONREF : p_sys -> i_skip_frame ;\n }\n else {\n p_sys -> i_late_frames -- ;\n if ( p_block ) block_Release ( p_block ) ;\n msg_Warn ( p_dec , \"More than 4 late frames, dropping frame\" ) ;\n return NULL ;\n }\n }\n else {\n if ( p_sys -> b_hurry_up ) p_context -> skip_frame = p_sys -> i_skip_frame ;\n if ( ! p_block || ! ( p_block -> i_flags & BLOCK_FLAG_PREROLL ) ) b_drawpicture = 1 ;\n else b_drawpicture = 0 ;\n }\n if ( p_context -> width <= 0 || p_context -> height <= 0 ) {\n if ( p_sys -> b_hurry_up ) p_context -> skip_frame = p_sys -> i_skip_frame ;\n }\n else if ( ! b_drawpicture ) {\n # if 0 if ( p_sys -> b_hurry_up ) p_context -> skip_frame = __MAX ( p_context -> skip_frame , AVDISCARD_NONREF ) ;\n # endif }\n if ( p_block && p_block -> i_buffer > 0 ) {\n p_sys -> b_flush = ( p_block -> i_flags & BLOCK_FLAG_END_OF_SEQUENCE ) != 0 ;\n p_block = block_Realloc ( p_block , 0 , p_block -> i_buffer + FF_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( ! p_block ) return NULL ;\n p_block -> i_buffer -= FF_INPUT_BUFFER_PADDING_SIZE ;\n * pp_block = p_block ;\n memset ( p_block -> p_buffer + p_block -> i_buffer , 0 , FF_INPUT_BUFFER_PADDING_SIZE ) ;\n }\n while ( ! p_block || p_block -> i_buffer > 0 || p_sys -> b_flush ) {\n int i_used , b_gotpicture ;\n picture_t * p_pic ;\n AVPacket pkt ;\n post_mt ( p_sys ) ;\n av_init_packet ( & pkt ) ;\n if ( p_block && p_block -> i_buffer > 0 ) {\n pkt . data = p_block -> p_buffer ;\n pkt . size = p_block -> i_buffer ;\n pkt . pts = p_block -> i_pts ;\n pkt . dts = p_block -> i_dts ;\n }\n else {\n pkt . data = NULL ;\n pkt . size = 0 ;\n }\n # if LIBAVCODEC_VERSION_MAJOR >= 54 if ( ! p_sys -> palette_sent ) {\n uint8_t * pal = av_packet_new_side_data ( & pkt , AV_PKT_DATA_PALETTE , AVPALETTE_SIZE ) ;\n if ( pal ) {\n memcpy ( pal , p_dec -> fmt_in . video . p_palette -> palette , AVPALETTE_SIZE ) ;\n p_sys -> palette_sent = true ;\n }\n }\n # endif if ( p_block ) {\n p_block -> i_pts = p_block -> i_dts = VLC_TS_INVALID ;\n }\n i_used = avcodec_decode_video2 ( p_context , p_sys -> p_ff_pic , & b_gotpicture , & pkt ) ;\n wait_mt ( p_sys ) ;\n if ( p_sys -> b_flush ) p_sys -> b_first_frame = true ;\n if ( p_block ) {\n if ( p_block -> i_buffer <= 0 ) p_sys -> b_flush = false ;\n if ( i_used < 0 ) {\n if ( b_drawpicture ) msg_Warn ( p_dec , \"cannot decode one frame (%zu bytes)\" , p_block -> i_buffer ) ;\n block_Release ( p_block ) ;\n return NULL ;\n }\n else if ( ( unsigned ) i_used > p_block -> i_buffer || p_context -> thread_count > 1 ) {\n i_used = p_block -> i_buffer ;\n }\n p_block -> i_buffer -= i_used ;\n p_block -> p_buffer += i_used ;\n }\n if ( ! b_gotpicture ) {\n if ( i_used == 0 ) break ;\n continue ;\n }\n # if LIBAVCODEC_VERSION_MAJOR >= 54 if ( p_context -> pix_fmt == AV_PIX_FMT_PAL8 && ! p_dec -> fmt_out . video . p_palette && p_sys -> p_ff_pic -> data [ 1 ] ) {\n video_palette_t * p_palette ;\n p_palette = p_dec -> fmt_out . video . p_palette = malloc ( sizeof ( video_palette_t ) ) ;\n if ( ! p_palette ) {\n if ( p_block ) block_Release ( p_block ) ;\n return NULL ;\n }\n static_assert ( sizeof ( p_palette -> palette ) == AVPALETTE_SIZE , \"Palette size mismatch between vlc and libavutil\" ) ;\n memcpy ( p_palette -> palette , p_sys -> p_ff_pic -> data [ 1 ] , AVPALETTE_SIZE ) ;\n p_palette -> i_entries = AVPALETTE_COUNT ;\n }\n # endif if ( p_sys -> p_ff_pic -> pict_type == AV_PICTURE_TYPE_B ) {\n p_sys -> b_has_b_frames = true ;\n }\n mtime_t i_pts = p_sys -> p_ff_pic -> pkt_pts ;\n if ( i_pts <= VLC_TS_INVALID ) i_pts = p_sys -> p_ff_pic -> pkt_dts ;\n if ( i_pts <= VLC_TS_INVALID ) i_pts = p_sys -> i_pts ;\n if ( i_pts > VLC_TS_INVALID ) p_sys -> i_pts = i_pts ;\n if ( p_sys -> i_pts > VLC_TS_INVALID ) {\n if ( p_dec -> fmt_in . video . i_frame_rate > 0 && p_dec -> fmt_in . video . i_frame_rate_base > 0 ) {\n p_sys -> i_pts += INT64_C ( 1000000 ) * ( 2 + p_sys -> p_ff_pic -> repeat_pict ) * p_dec -> fmt_in . video . i_frame_rate_base / ( 2 * p_dec -> fmt_in . video . i_frame_rate ) ;\n }\n else if ( p_context -> time_base . den > 0 ) {\n int i_tick = p_context -> ticks_per_frame ;\n if ( i_tick <= 0 ) i_tick = 1 ;\n p_sys -> i_pts += INT64_C ( 1000000 ) * ( 2 + p_sys -> p_ff_pic -> repeat_pict ) * i_tick * p_context -> time_base . num / ( 2 * p_context -> time_base . den ) ;\n }\n }\n mtime_t i_display_date = 0 ;\n if ( ! p_block || ! ( p_block -> i_flags & BLOCK_FLAG_PREROLL ) ) i_display_date = decoder_GetDisplayDate ( p_dec , i_pts ) ;\n if ( i_display_date > 0 && i_display_date <= mdate ( ) ) {\n p_sys -> i_late_frames ++ ;\n if ( p_sys -> i_late_frames == 1 ) p_sys -> i_late_frames_start = mdate ( ) ;\n }\n else {\n p_sys -> i_late_frames = 0 ;\n }\n if ( ! b_drawpicture || ( ! p_sys -> p_va && ! p_sys -> p_ff_pic -> linesize [ 0 ] ) ) continue ;\n if ( p_sys -> p_va != NULL || p_sys -> p_ff_pic -> opaque == NULL ) {\n p_pic = ffmpeg_NewPictBuf ( p_dec , p_context ) ;\n if ( ! p_pic ) {\n if ( p_block ) block_Release ( p_block ) ;\n return NULL ;\n }\n ffmpeg_CopyPicture ( p_dec , p_pic , p_sys -> p_ff_pic ) ;\n }\n else {\n p_pic = ( picture_t * ) p_sys -> p_ff_pic -> opaque ;\n decoder_LinkPicture ( p_dec , p_pic ) ;\n }\n if ( ! p_dec -> fmt_in . video . i_sar_num || ! p_dec -> fmt_in . video . i_sar_den ) {\n p_dec -> fmt_out . video . i_sar_num = p_context -> sample_aspect_ratio . num ;\n p_dec -> fmt_out . video . i_sar_den = p_context -> sample_aspect_ratio . den ;\n if ( ! p_dec -> fmt_out . video . i_sar_num || ! p_dec -> fmt_out . video . i_sar_den ) {\n p_dec -> fmt_out . video . i_sar_num = 1 ;\n p_dec -> fmt_out . video . i_sar_den = 1 ;\n }\n }\n if ( i_pts > VLC_TS_INVALID ) {\n p_pic -> date = i_pts ;\n if ( p_sys -> b_first_frame ) {\n p_sys -> b_first_frame = false ;\n p_pic -> b_force = true ;\n }\n p_pic -> i_nb_fields = 2 + p_sys -> p_ff_pic -> repeat_pict ;\n p_pic -> b_progressive = ! p_sys -> p_ff_pic -> interlaced_frame ;\n p_pic -> b_top_field_first = p_sys -> p_ff_pic -> top_field_first ;\n return p_pic ;\n }\n else {\n decoder_DeletePicture ( p_dec , p_pic ) ;\n }\n }\n if ( p_block ) block_Release ( p_block ) ;\n return NULL ;\n }"}
{"idx": 9718, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * pkt ) {\n BinkContext * const c = avctx -> priv_data ;\n GetBitContext gb ;\n int plane , plane_idx , ret ;\n int bits_count = pkt -> size << 3 ;\n if ( c -> version > 'b' ) {\n if ( c -> pic -> data [ 0 ] ) avctx -> release_buffer ( avctx , c -> pic ) ;\n if ( ( ret = ff_get_buffer ( avctx , c -> pic ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n }\n else {\n if ( ( ret = avctx -> reget_buffer ( avctx , c -> pic ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n }\n init_get_bits ( & gb , pkt -> data , bits_count ) ;\n if ( c -> has_alpha ) {\n if ( c -> version >= 'i' ) skip_bits_long ( & gb , 32 ) ;\n if ( ( ret = bink_decode_plane ( c , & gb , 3 , 0 ) ) < 0 ) return ret ;\n }\n if ( c -> version >= 'i' ) skip_bits_long ( & gb , 32 ) ;\n for ( plane = 0 ;\n plane < 3 ;\n plane ++ ) {\n plane_idx = ( ! plane || ! c -> swap_planes ) ? plane : ( plane ^ 3 ) ;\n if ( c -> version > 'b' ) {\n if ( ( ret = bink_decode_plane ( c , & gb , plane_idx , ! ! plane ) ) < 0 ) return ret ;\n }\n else {\n if ( ( ret = binkb_decode_plane ( c , & gb , plane_idx , ! avctx -> frame_number , ! ! plane ) ) < 0 ) return ret ;\n }\n if ( get_bits_count ( & gb ) >= bits_count ) break ;\n }\n emms_c ( ) ;\n * got_frame = 1 ;\n * ( AVFrame * ) data = * c -> pic ;\n if ( c -> version > 'b' ) FFSWAP ( AVFrame * , c -> pic , c -> last ) ;\n return pkt -> size ;\n }"}
{"idx": 9719, "target": 0, "func": "static int proto_register_field_init ( header_field_info * hfinfo , const int parent ) {\n tmp_fld_check_assert ( hfinfo ) ;\n hfinfo -> parent = parent ;\n hfinfo -> same_name_next = NULL ;\n hfinfo -> same_name_prev_id = - 1 ;\n if ( gpa_hfinfo . len >= gpa_hfinfo . allocated_len ) {\n if ( ! gpa_hfinfo . hfi ) {\n gpa_hfinfo . allocated_len = PROTO_PRE_ALLOC_HF_FIELDS_MEM ;\n gpa_hfinfo . hfi = ( header_field_info * * ) g_malloc ( sizeof ( header_field_info * ) * PROTO_PRE_ALLOC_HF_FIELDS_MEM ) ;\n }\n else {\n gpa_hfinfo . allocated_len += 1000 ;\n gpa_hfinfo . hfi = ( header_field_info * * ) g_realloc ( gpa_hfinfo . hfi , sizeof ( header_field_info * ) * gpa_hfinfo . allocated_len ) ;\n }\n }\n gpa_hfinfo . hfi [ gpa_hfinfo . len ] = hfinfo ;\n gpa_hfinfo . len ++ ;\n hfinfo -> id = gpa_hfinfo . len - 1 ;\n if ( ( hfinfo -> name [ 0 ] != 0 ) && ( hfinfo -> abbrev [ 0 ] != 0 ) ) {\n header_field_info * same_name_next_hfinfo ;\n guchar c ;\n c = wrs_check_charset ( fld_abbrev_chars , hfinfo -> abbrev ) ;\n if ( c ) {\n if ( g_ascii_isprint ( c ) ) fprintf ( stderr , \"Invalid character '%c' in filter name '%s'\\n\" , c , hfinfo -> abbrev ) ;\n else fprintf ( stderr , \"Invalid byte \\\\%03o in filter name '%s'\\n\" , c , hfinfo -> abbrev ) ;\n DISSECTOR_ASSERT_NOT_REACHED ( ) ;\n }\n same_name_hfinfo = NULL ;\n g_hash_table_insert ( gpa_name_map , ( gpointer ) ( hfinfo -> abbrev ) , hfinfo ) ;\n if ( same_name_hfinfo ) {\n same_name_next_hfinfo = same_name_hfinfo -> same_name_next ;\n hfinfo -> same_name_next = same_name_next_hfinfo ;\n if ( same_name_next_hfinfo ) same_name_next_hfinfo -> same_name_prev_id = hfinfo -> id ;\n same_name_hfinfo -> same_name_next = hfinfo ;\n hfinfo -> same_name_prev_id = same_name_hfinfo -> id ;\n # ifdef ENABLE_CHECK_FILTER while ( same_name_hfinfo ) {\n if ( _ftype_common ( hfinfo -> type ) != _ftype_common ( same_name_hfinfo -> type ) ) fprintf ( stderr , \"'%s' exists multiple times with NOT compatible types: %s and %s\\n\" , hfinfo -> abbrev , ftype_name ( hfinfo -> type ) , ftype_name ( same_name_hfinfo -> type ) ) ;\n same_name_hfinfo = same_name_hfinfo -> same_name_next ;\n }\n # endif }\n }\n return hfinfo -> id ;\n }"}
{"idx": 9720, "target": 0, "func": "static inline void get_limits ( MpegEncContext * s , int x , int y ) {\n MotionEstContext * const c = & s -> me ;\n int range = c -> avctx -> me_range >> ( 1 + ! ! ( c -> flags & FLAG_QPEL ) ) ;\n if ( s -> unrestricted_mv ) {\n c -> xmin = - x - 16 ;\n c -> ymin = - y - 16 ;\n c -> xmax = - x + s -> mb_width * 16 ;\n c -> ymax = - y + s -> mb_height * 16 ;\n }\n else if ( s -> out_format == FMT_H261 ) {\n c -> xmin = ( x > 15 ) ? - 15 : 0 ;\n c -> ymin = ( y > 15 ) ? - 15 : 0 ;\n c -> xmax = ( x < s -> mb_width * 16 - 16 ) ? 15 : 0 ;\n c -> ymax = ( y < s -> mb_height * 16 - 16 ) ? 15 : 0 ;\n }\n else {\n c -> xmin = - x ;\n c -> ymin = - y ;\n c -> xmax = - x + s -> mb_width * 16 - 16 ;\n c -> ymax = - y + s -> mb_height * 16 - 16 ;\n }\n if ( range ) {\n c -> xmin = FFMAX ( c -> xmin , - range ) ;\n c -> xmax = FFMIN ( c -> xmax , range ) ;\n c -> ymin = FFMAX ( c -> ymin , - range ) ;\n c -> ymax = FFMIN ( c -> ymax , range ) ;\n }\n }"}
{"idx": 9721, "target": 0, "func": "static UChar32 getNextChar ( UCHARBUF * buf , UBool skipwhite , struct UString * token , UErrorCode * status ) {\n UChar32 c , c2 ;\n if ( U_FAILURE ( * status ) ) {\n return U_EOF ;\n }\n for ( ;\n ;\n ) {\n c = ucbuf_getc ( buf , status ) ;\n if ( c == U_EOF ) {\n return U_EOF ;\n }\n if ( skipwhite && isWhitespace ( c ) ) {\n continue ;\n }\n if ( c != SLASH ) {\n return c ;\n }\n c = ucbuf_getc ( buf , status ) ;\n if ( c == U_EOF ) {\n return U_EOF ;\n }\n switch ( c ) {\n case SLASH : seekUntilNewline ( buf , NULL , status ) ;\n break ;\n case ASTERISK : c2 = ucbuf_getc ( buf , status ) ;\n if ( c2 == ASTERISK ) {\n seekUntilEndOfComment ( buf , token , status ) ;\n }\n else {\n ucbuf_ungetc ( c2 , buf ) ;\n seekUntilEndOfComment ( buf , NULL , status ) ;\n }\n break ;\n default : ucbuf_ungetc ( c , buf ) ;\n return SLASH ;\n }\n }\n }"}
{"idx": 9722, "target": 0, "func": "static void get_arf_buffer_indices ( unsigned char * arf_buffer_indices ) {\n arf_buffer_indices [ 0 ] = ARF_SLOT1 ;\n arf_buffer_indices [ 1 ] = ARF_SLOT2 ;\n }"}
{"idx": 9723, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( BluetoothChooserBrowserTest , InvokeDialog_ScanningModal ) {\n set_status ( FakeBluetoothChooserController : : BluetoothStatus : : SCANNING ) ;\n RunDialog ( ) ;\n }"}
{"idx": 9724, "target": 0, "func": "TEST_F ( TransportSecurityPersisterTest , PublicKeyHashes ) {\n TransportSecurityState : : DomainState domain_state ;\n static const char kTestDomain [ ] = \"example.com\" ;\n EXPECT_FALSE ( state_ . GetDynamicDomainState ( kTestDomain , & domain_state ) ) ;\n net : : HashValueVector hashes ;\n std : : string failure_log ;\n EXPECT_FALSE ( domain_state . CheckPublicKeyPins ( hashes , & failure_log ) ) ;\n net : : HashValue sha1 ( net : : HASH_VALUE_SHA1 ) ;\n memset ( sha1 . data ( ) , '1' , sha1 . size ( ) ) ;\n domain_state . pkp . spki_hashes . push_back ( sha1 ) ;\n EXPECT_FALSE ( domain_state . CheckPublicKeyPins ( hashes , & failure_log ) ) ;\n hashes . push_back ( sha1 ) ;\n EXPECT_TRUE ( domain_state . CheckPublicKeyPins ( hashes , & failure_log ) ) ;\n hashes [ 0 ] . data ( ) [ 0 ] = '2' ;\n EXPECT_FALSE ( domain_state . CheckPublicKeyPins ( hashes , & failure_log ) ) ;\n const base : : Time current_time ( base : : Time : : Now ( ) ) ;\n const base : : Time expiry = current_time + base : : TimeDelta : : FromSeconds ( 1000 ) ;\n bool include_subdomains = false ;\n state_ . AddHSTS ( kTestDomain , expiry , include_subdomains ) ;\n state_ . AddHPKP ( kTestDomain , expiry , include_subdomains , domain_state . pkp . spki_hashes ) ;\n std : : string serialized ;\n EXPECT_TRUE ( persister_ -> SerializeData ( & serialized ) ) ;\n bool dirty ;\n EXPECT_TRUE ( persister_ -> LoadEntries ( serialized , & dirty ) ) ;\n TransportSecurityState : : DomainState new_domain_state ;\n EXPECT_TRUE ( state_ . GetDynamicDomainState ( kTestDomain , & new_domain_state ) ) ;\n EXPECT_EQ ( 1u , new_domain_state . pkp . spki_hashes . size ( ) ) ;\n EXPECT_EQ ( sha1 . tag , new_domain_state . pkp . spki_hashes [ 0 ] . tag ) ;\n EXPECT_EQ ( 0 , memcmp ( new_domain_state . pkp . spki_hashes [ 0 ] . data ( ) , sha1 . data ( ) , sha1 . size ( ) ) ) ;\n }"}
{"idx": 9725, "target": 0, "func": "void hb_face_make_immutable ( hb_face_t * face ) {\n if ( unlikely ( hb_object_is_inert ( face ) ) ) return ;\n face -> immutable = true ;\n }"}
{"idx": 9726, "target": 0, "func": "static void terminate_chunked_trickle_cb ( int fd , short events , void * arg ) {\n struct terminate_state * state = arg ;\n struct evbuffer * evb = evbuffer_new ( ) ;\n struct timeval tv ;\n if ( evhttp_request_get_connection ( state -> req ) == NULL ) {\n test_ok = 1 ;\n evhttp_request_free ( state -> req ) ;\n event_loopexit ( NULL ) ;\n return ;\n }\n evbuffer_add_printf ( evb , \"%p\" , evb ) ;\n evhttp_send_reply_chunk ( state -> req , evb ) ;\n evbuffer_free ( evb ) ;\n tv . tv_sec = 0 ;\n tv . tv_usec = 3000 ;\n event_once ( - 1 , EV_TIMEOUT , terminate_chunked_trickle_cb , arg , & tv ) ;\n }"}
{"idx": 9727, "target": 0, "func": "static void end_header ( AVIOContext * pb , int64_t pos ) {\n int64_t pos1 ;\n pos1 = avio_tell ( pb ) ;\n avio_seek ( pb , pos + 16 , SEEK_SET ) ;\n avio_wl64 ( pb , pos1 - pos ) ;\n avio_seek ( pb , pos1 , SEEK_SET ) ;\n }"}
{"idx": 9728, "target": 0, "func": "static void print_help_item ( MYSQL_ROW * cur , int num_name , int num_cat , char * last_char ) {\n char ccat = ( * cur ) [ num_cat ] [ 0 ] ;\n if ( * last_char != ccat ) {\n put_info ( ccat == 'Y' ? \"categories:\" : \"topics:\" , INFO_INFO ) ;\n * last_char = ccat ;\n }\n tee_fprintf ( PAGER , \" %s\\n\" , ( * cur ) [ num_name ] ) ;\n }"}
{"idx": 9729, "target": 0, "func": "void ResolveNTFunctionPtr ( const char * name , void * ptr ) {\n static volatile HMODULE ntdll = NULL ;\n if ( ! ntdll ) {\n HMODULE ntdll_local = : : GetModuleHandle ( sandbox : : kNtdllName ) ;\n base : : win : : PEImage ntdll_peimage ( ntdll_local ) ;\n CHECK_NT ( ntdll_peimage . VerifyMagic ( ) ) ;\n : : InterlockedCompareExchangePointer ( reinterpret_cast < PVOID volatile * > ( & ntdll ) , ntdll_local , NULL ) ;\n }\n CHECK_NT ( ntdll ) ;\n FARPROC * function_ptr = reinterpret_cast < FARPROC * > ( ptr ) ;\n * function_ptr = : : GetProcAddress ( ntdll , name ) ;\n CHECK_NT ( * function_ptr ) ;\n }"}
{"idx": 9730, "target": 0, "func": "static int dissect_pcp_message_text_req ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , int offset ) {\n proto_item * pcp_text_req_item ;\n proto_tree * pcp_text_req_tree ;\n proto_item * pcp_text_req_type_item ;\n proto_tree * pcp_text_req_type_tree ;\n guint32 bits_offset ;\n guint32 type ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"[%s]\" , val_to_str ( PCP_PDU_TEXT_REQ , packettypenames , \"Unknown Type:0x%02x\" ) ) ;\n pcp_text_req_item = proto_tree_add_item ( tree , hf_pcp_text_req , tvb , offset , - 1 , ENC_NA ) ;\n pcp_text_req_tree = proto_item_add_subtree ( pcp_text_req_item , ett_pcp ) ;\n type = tvb_get_ntohl ( tvb , offset + 4 ) ;\n if ( type & PM_TEXT_PMID ) {\n offset = dissect_pcp_partial_pmid ( tvb , pinfo , pcp_text_req_tree , offset ) ;\n }\n else if ( type & PM_TEXT_INDOM ) {\n proto_tree_add_item ( pcp_text_req_tree , hf_pcp_instance_indom , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n }\n pcp_text_req_type_item = proto_tree_add_item ( pcp_text_req_tree , hf_pcp_text_type , tvb , offset , 4 , ENC_NA ) ;\n pcp_text_req_type_tree = proto_item_add_subtree ( pcp_text_req_type_item , ett_pcp ) ;\n bits_offset = offset * 8 + 28 ;\n proto_tree_add_bits_item ( pcp_text_req_type_tree , hf_pcp_text_type_ident , tvb , bits_offset , 2 , ENC_BIG_ENDIAN ) ;\n bits_offset += 2 ;\n proto_tree_add_bits_item ( pcp_text_req_type_tree , hf_pcp_text_type_format , tvb , bits_offset , 2 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n return offset ;\n }"}
{"idx": 9731, "target": 0, "func": "static int SpoolssGetPrinterDriverDirectory_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n guint32 level ;\n offset = dissect_ndr_str_pointer_item ( tvb , offset , pinfo , tree , di , drep , NDR_POINTER_UNIQUE , \"Name\" , hf_servername , 0 ) ;\n offset = dissect_ndr_str_pointer_item ( tvb , offset , pinfo , tree , di , drep , NDR_POINTER_UNIQUE , \"Environment\" , hf_environment , 0 ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_level , & level ) ;\n offset = dissect_spoolss_buffer ( tvb , offset , pinfo , tree , di , drep , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_offered , NULL ) ;\n return offset ;\n }"}
{"idx": 9732, "target": 1, "func": "static int udev_device_info ( struct libusb_context * ctx , int detached , struct udev_device * udev_dev , uint8_t * busnum , uint8_t * devaddr , const char * * sys_name ) {\n const char * dev_node ;\n dev_node = udev_device_get_devnode ( udev_dev ) ;\n if ( ! dev_node ) {\n return LIBUSB_ERROR_OTHER ;\n }\n * sys_name = udev_device_get_sysname ( udev_dev ) ;\n if ( ! * sys_name ) {\n return LIBUSB_ERROR_OTHER ;\n }\n return linux_get_device_address ( ctx , detached , busnum , devaddr , dev_node , * sys_name ) ;\n }"}
{"idx": 9733, "target": 0, "func": "static int dissect_h245_RedundancyEncoding ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_RedundancyEncoding , RedundancyEncoding_sequence ) ;\n return offset ;\n }"}
{"idx": 9734, "target": 0, "func": "MSG_PROCESS_RETURN tls_process_finished ( SSL * s , PACKET * pkt ) {\n int al , i ;\n if ( ! s -> s3 -> change_cipher_spec ) {\n al = SSL_AD_UNEXPECTED_MESSAGE ;\n SSLerr ( SSL_F_TLS_PROCESS_FINISHED , SSL_R_GOT_A_FIN_BEFORE_A_CCS ) ;\n goto f_err ;\n }\n s -> s3 -> change_cipher_spec = 0 ;\n i = s -> s3 -> tmp . peer_finish_md_len ;\n if ( ( unsigned long ) i != PACKET_remaining ( pkt ) ) {\n al = SSL_AD_DECODE_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_FINISHED , SSL_R_BAD_DIGEST_LENGTH ) ;\n goto f_err ;\n }\n if ( CRYPTO_memcmp ( PACKET_data ( pkt ) , s -> s3 -> tmp . peer_finish_md , i ) != 0 ) {\n al = SSL_AD_DECRYPT_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_FINISHED , SSL_R_DIGEST_CHECK_FAILED ) ;\n goto f_err ;\n }\n if ( s -> server ) {\n OPENSSL_assert ( i <= EVP_MAX_MD_SIZE ) ;\n memcpy ( s -> s3 -> previous_client_finished , s -> s3 -> tmp . peer_finish_md , i ) ;\n s -> s3 -> previous_client_finished_len = i ;\n }\n else {\n OPENSSL_assert ( i <= EVP_MAX_MD_SIZE ) ;\n memcpy ( s -> s3 -> previous_server_finished , s -> s3 -> tmp . peer_finish_md , i ) ;\n s -> s3 -> previous_server_finished_len = i ;\n }\n return MSG_PROCESS_FINISHED_READING ;\n f_err : ssl3_send_alert ( s , SSL3_AL_FATAL , al ) ;\n ossl_statem_set_error ( s ) ;\n return MSG_PROCESS_ERROR ;\n }"}
{"idx": 9735, "target": 1, "func": "static const char * _UTF16LEGetName ( const UConverter * cnv ) {\n if ( UCNV_GET_VERSION ( cnv ) == 0 ) {\n return \"UTF-16LE\" ;\n }\n else {\n return \"UTF-16LE,version=1\" ;\n }\n }"}
{"idx": 9736, "target": 0, "func": "static void svq1_write_header ( SVQ1Context * s , int frame_type ) {\n int i ;\n put_bits ( & s -> pb , 22 , 0x20 ) ;\n put_bits ( & s -> pb , 8 , 0x00 ) ;\n put_bits ( & s -> pb , 2 , frame_type - 1 ) ;\n if ( frame_type == AV_PICTURE_TYPE_I ) {\n put_bits ( & s -> pb , 5 , 2 ) ;\n i = ff_match_2uint16 ( ff_svq1_frame_size_table , FF_ARRAY_ELEMS ( ff_svq1_frame_size_table ) , s -> frame_width , s -> frame_height ) ;\n put_bits ( & s -> pb , 3 , i ) ;\n if ( i == 7 ) {\n put_bits ( & s -> pb , 12 , s -> frame_width ) ;\n put_bits ( & s -> pb , 12 , s -> frame_height ) ;\n }\n }\n put_bits ( & s -> pb , 2 , 0 ) ;\n }"}
{"idx": 9737, "target": 0, "func": "const fz_cmm_engine * fz_get_cmm_engine ( fz_context * ctx ) {\n return ctx -> colorspace ? ctx -> colorspace -> cmm : NULL ;\n }"}
{"idx": 9738, "target": 0, "func": "int qemuMonitorJSONGraphicsRelocate ( qemuMonitorPtr mon , int type , const char * hostname , int port , int tlsPort , const char * tlsSubject ) {\n int ret = - 1 ;\n virJSONValuePtr cmd = qemuMonitorJSONMakeCommand ( \"client_migrate_info\" , \"s:protocol\" , ( type == VIR_DOMAIN_GRAPHICS_TYPE_SPICE ? \"spice\" : \"vnc\" ) , \"s:hostname\" , hostname , \"i:port\" , port , \"i:tls-port\" , tlsPort , ( tlsSubject ? \"s:cert-subject\" : NULL ) , ( tlsSubject ? tlsSubject : NULL ) , NULL ) ;\n virJSONValuePtr reply = NULL ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 9739, "target": 0, "func": "static tvbuff_t * add_to_tree ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , mac_is_sdu * sdu , guint offset , guint16 maclength , guint8 type ) {\n tvbuff_t * new_tvb = NULL ;\n if ( sdu -> frame_num == pinfo -> num ) {\n mac_is_fragment * f = sdu -> fragments ;\n guint counter = 0 ;\n new_tvb = tvb_new_child_real_data ( tvb , sdu -> data , sdu -> length , sdu -> length ) ;\n add_new_data_source ( pinfo , new_tvb , \"Reassembled MAC-is SDU\" ) ;\n proto_tree_add_expert ( tree , pinfo , & ei_mac_macis_sdu_reassembled , new_tvb , 0 , - 1 ) ;\n while ( f ) {\n proto_tree_add_uint_format_value ( tree , hf_mac_is_fraglink , new_tvb , counter , f -> length , f -> frame_num , \"%u, payload: %u-%u (%u bytes) (TSN: %u)\" , f -> frame_num , counter , counter + f -> length - 1 , f -> length , f -> tsn ) ;\n counter += f -> length ;\n f = f -> next ;\n }\n return new_tvb ;\n }\n else {\n new_tvb = tvb_new_subset ( tvb , offset , maclength , - 1 ) ;\n switch ( type ) {\n case MAC_IS_HEAD : proto_tree_add_expert ( tree , pinfo , & ei_mac_macis_sdu_first , new_tvb , 0 , - 1 ) ;\n break ;\n case MAC_IS_MIDDLE : proto_tree_add_expert ( tree , pinfo , & ei_mac_macis_sdu_middle , new_tvb , 0 , - 1 ) ;\n break ;\n case MAC_IS_TAIL : proto_tree_add_expert ( tree , pinfo , & ei_mac_macis_sdu_last , new_tvb , 0 , - 1 ) ;\n break ;\n }\n proto_tree_add_uint ( tree , hf_mac_is_reasmin , new_tvb , 0 , 0 , sdu -> frame_num ) ;\n return NULL ;\n }\n }"}
{"idx": 9740, "target": 0, "func": "int kvm_arch_process_async_events ( CPUState * cs ) {\n X86CPU * cpu = X86_CPU ( cs ) ;\n CPUX86State * env = & cpu -> env ;\n if ( cs -> interrupt_request & CPU_INTERRUPT_MCE ) {\n assert ( env -> mcg_cap ) ;\n cs -> interrupt_request &= ~ CPU_INTERRUPT_MCE ;\n kvm_cpu_synchronize_state ( cs ) ;\n if ( env -> exception_injected == EXCP08_DBLE ) {\n qemu_system_reset_request ( SHUTDOWN_CAUSE_GUEST_RESET ) ;\n cs -> exit_request = 1 ;\n return 0 ;\n }\n env -> exception_injected = EXCP12_MCHK ;\n env -> has_error_code = 0 ;\n cs -> halted = 0 ;\n if ( kvm_irqchip_in_kernel ( ) && env -> mp_state == KVM_MP_STATE_HALTED ) {\n env -> mp_state = KVM_MP_STATE_RUNNABLE ;\n }\n }\n if ( ( cs -> interrupt_request & CPU_INTERRUPT_INIT ) && ! ( env -> hflags & HF_SMM_MASK ) ) {\n kvm_cpu_synchronize_state ( cs ) ;\n do_cpu_init ( cpu ) ;\n }\n if ( kvm_irqchip_in_kernel ( ) ) {\n return 0 ;\n }\n if ( cs -> interrupt_request & CPU_INTERRUPT_POLL ) {\n cs -> interrupt_request &= ~ CPU_INTERRUPT_POLL ;\n apic_poll_irq ( cpu -> apic_state ) ;\n }\n if ( ( ( cs -> interrupt_request & CPU_INTERRUPT_HARD ) && ( env -> eflags & IF_MASK ) ) || ( cs -> interrupt_request & CPU_INTERRUPT_NMI ) ) {\n cs -> halted = 0 ;\n }\n if ( cs -> interrupt_request & CPU_INTERRUPT_SIPI ) {\n kvm_cpu_synchronize_state ( cs ) ;\n do_cpu_sipi ( cpu ) ;\n }\n if ( cs -> interrupt_request & CPU_INTERRUPT_TPR ) {\n cs -> interrupt_request &= ~ CPU_INTERRUPT_TPR ;\n kvm_cpu_synchronize_state ( cs ) ;\n apic_handle_tpr_access_report ( cpu -> apic_state , env -> eip , env -> tpr_access_type ) ;\n }\n return cs -> halted ;\n }"}
{"idx": 9741, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , PaintInChildFrame ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n GURL a_url ( embedded_test_server ( ) -> GetURL ( \"/page_load_metrics/iframe.html\" ) ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : FIRST_LAYOUT ) ;\n waiter -> AddPageExpectation ( TimingField : : LOAD_EVENT ) ;\n waiter -> AddSubFrameExpectation ( TimingField : : FIRST_PAINT ) ;\n waiter -> AddSubFrameExpectation ( TimingField : : FIRST_CONTENTFUL_PAINT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , a_url ) ;\n waiter -> Wait ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramFirstLayout , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramLoad , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramFirstPaint , 1 ) ;\n }"}
{"idx": 9742, "target": 0, "func": "static subpicture_t * spu_new_buffer ( decoder_t * p_dec , const subpicture_updater_t * p_updater ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n vout_thread_t * p_vout = NULL ;\n subpicture_t * p_subpic ;\n int i_attempts = 30 ;\n while ( i_attempts -- ) {\n if ( DecoderIsExitRequested ( p_dec ) || p_dec -> b_error ) break ;\n p_vout = input_resource_HoldVout ( p_owner -> p_resource ) ;\n if ( p_vout ) break ;\n msleep ( DECODER_SPU_VOUT_WAIT_DURATION ) ;\n }\n if ( ! p_vout ) {\n msg_Warn ( p_dec , \"no vout found, dropping subpicture\" ) ;\n return NULL ;\n }\n if ( p_owner -> p_spu_vout != p_vout ) {\n p_owner -> i_spu_channel = vout_RegisterSubpictureChannel ( p_vout ) ;\n p_owner -> i_spu_order = 0 ;\n p_owner -> p_spu_vout = p_vout ;\n }\n p_subpic = subpicture_New ( p_updater ) ;\n if ( p_subpic ) {\n p_subpic -> i_channel = p_owner -> i_spu_channel ;\n p_subpic -> i_order = p_owner -> i_spu_order ++ ;\n p_subpic -> b_subtitle = true ;\n }\n vlc_object_release ( p_vout ) ;\n return p_subpic ;\n }"}
{"idx": 9743, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ExtensionMessageBubbleViewBrowserTest , TestBubbleWithMultipleWindows ) {\n TestBubbleWithMultipleWindows ( ) ;\n }"}
{"idx": 9744, "target": 0, "func": "TEST_F ( ShortcutsBackendTest , SanitizeMatchCore ) {\n struct {\n std : : string input_contents_class ;\n std : : string input_description_class ;\n AutocompleteMatch : : Type input_type ;\n std : : string output_contents_class ;\n std : : string output_description_class ;\n AutocompleteMatch : : Type output_type ;\n }\n cases [ ] = {\n {\n \"0,1,4,0\" , \"0,3,4,1\" , AutocompleteMatchType : : URL_WHAT_YOU_TYPED , \"0,1,4,0\" , \"0,1\" , AutocompleteMatchType : : HISTORY_URL }\n , {\n \"0,3,5,1\" , \"0,2,5,0\" , AutocompleteMatchType : : NAVSUGGEST , \"0,1\" , \"0,0\" , AutocompleteMatchType : : HISTORY_URL }\n , {\n \"0,1\" , \"0,0,11,2,15,0\" , AutocompleteMatchType : : SEARCH_WHAT_YOU_TYPED , \"0,1\" , \"0,0\" , AutocompleteMatchType : : SEARCH_HISTORY }\n , {\n \"0,1\" , \"0,0\" , AutocompleteMatchType : : SEARCH_SUGGEST , \"0,1\" , \"0,0\" , AutocompleteMatchType : : SEARCH_HISTORY }\n , {\n \"0,1\" , \"0,0\" , AutocompleteMatchType : : SEARCH_SUGGEST_ENTITY , \"\" , \"\" , AutocompleteMatchType : : SEARCH_HISTORY }\n , {\n \"0,1\" , \"0,0\" , AutocompleteMatchType : : SEARCH_SUGGEST_TAIL , \"\" , \"\" , AutocompleteMatchType : : SEARCH_HISTORY }\n , {\n \"0,1\" , \"0,0\" , AutocompleteMatchType : : SEARCH_SUGGEST_PERSONALIZED , \"\" , \"\" , AutocompleteMatchType : : SEARCH_HISTORY }\n , {\n \"0,1\" , \"0,0\" , AutocompleteMatchType : : SEARCH_SUGGEST_PROFILE , \"\" , \"\" , AutocompleteMatchType : : SEARCH_HISTORY }\n , }\n ;\n for ( size_t i = 0 ;\n i < arraysize ( cases ) ;\n ++ i ) {\n ShortcutsDatabase : : Shortcut : : MatchCore match_core ( MatchCoreForTesting ( std : : string ( ) , cases [ i ] . input_contents_class , cases [ i ] . input_description_class , cases [ i ] . input_type ) ) ;\n EXPECT_EQ ( cases [ i ] . output_contents_class , match_core . contents_class ) << \":i:\" << i << \":type:\" << cases [ i ] . input_type ;\n EXPECT_EQ ( cases [ i ] . output_description_class , match_core . description_class ) << \":i:\" << i << \":type:\" << cases [ i ] . input_type ;\n EXPECT_EQ ( cases [ i ] . output_type , match_core . type ) << \":i:\" << i << \":type:\" << cases [ i ] . input_type ;\n }\n }"}
{"idx": 9745, "target": 0, "func": "static int dissect_h225_T_member ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_T_member , T_member_sequence_of ) ;\n return offset ;\n }"}
{"idx": 9746, "target": 0, "func": "static void HCLComposite ( const MagickRealType hue , const MagickRealType chroma , const MagickRealType luma , MagickRealType * red , MagickRealType * green , MagickRealType * blue ) {\n MagickRealType b , c , g , h , m , r , x ;\n assert ( red != ( MagickRealType * ) NULL ) ;\n assert ( green != ( MagickRealType * ) NULL ) ;\n assert ( blue != ( MagickRealType * ) NULL ) ;\n h = 6.0 * hue ;\n c = chroma ;\n x = c * ( 1.0 - fabs ( fmod ( h , 2.0 ) - 1.0 ) ) ;\n r = 0.0 ;\n g = 0.0 ;\n b = 0.0 ;\n if ( ( 0.0 <= h ) && ( h < 1.0 ) ) {\n r = c ;\n g = x ;\n }\n else if ( ( 1.0 <= h ) && ( h < 2.0 ) ) {\n r = x ;\n g = c ;\n }\n else if ( ( 2.0 <= h ) && ( h < 3.0 ) ) {\n g = c ;\n b = x ;\n }\n else if ( ( 3.0 <= h ) && ( h < 4.0 ) ) {\n g = x ;\n b = c ;\n }\n else if ( ( 4.0 <= h ) && ( h < 5.0 ) ) {\n r = x ;\n b = c ;\n }\n else if ( ( 5.0 <= h ) && ( h < 6.0 ) ) {\n r = c ;\n b = x ;\n }\n m = luma - ( 0.298839 * r + 0.586811 * g + 0.114350 * b ) ;\n * red = QuantumRange * ( r + m ) ;\n * green = QuantumRange * ( g + m ) ;\n * blue = QuantumRange * ( b + m ) ;\n }"}
{"idx": 9747, "target": 0, "func": "uint gx_device_raster ( const gx_device * dev , bool pad ) {\n ulong bits = ( ulong ) dev -> width * dev -> color_info . depth ;\n ulong raster ;\n int l2align ;\n if ( dev -> is_planar ) bits /= dev -> color_info . num_components ;\n raster = ( uint ) ( ( bits + 7 ) >> 3 ) ;\n if ( ! pad ) return raster ;\n l2align = dev -> log2_align_mod ;\n if ( l2align < log2_align_bitmap_mod ) l2align = log2_align_bitmap_mod ;\n return ( uint ) ( ( ( bits + ( 8 << l2align ) - 1 ) >> ( l2align + 3 ) ) << l2align ) ;\n }"}
{"idx": 9748, "target": 0, "func": "void TSVConnShutdown ( TSVConn connp , int read , int write ) {\n sdk_assert ( sdk_sanity_check_iocore_structure ( connp ) == TS_SUCCESS ) ;\n VConnection * vc = ( VConnection * ) connp ;\n if ( read && write ) {\n vc -> do_io_shutdown ( IO_SHUTDOWN_READWRITE ) ;\n }\n else if ( read ) {\n vc -> do_io_shutdown ( IO_SHUTDOWN_READ ) ;\n }\n else if ( write ) {\n vc -> do_io_shutdown ( IO_SHUTDOWN_WRITE ) ;\n }\n }"}
{"idx": 9749, "target": 0, "func": "static int pxa2xx_rtc_post_load ( void * opaque , int version_id ) {\n PXA2xxRTCState * s = ( PXA2xxRTCState * ) opaque ;\n pxa2xx_rtc_alarm_update ( s , s -> rtsr ) ;\n return 0 ;\n }"}
{"idx": 9750, "target": 0, "func": "int n_ssl3_mac ( SSL * ssl , SSL3_RECORD * rec , unsigned char * md , int send ) {\n unsigned char * mac_sec , * seq ;\n const EVP_MD_CTX * hash ;\n unsigned char * p , rec_char ;\n size_t md_size ;\n int npad ;\n int t ;\n if ( send ) {\n mac_sec = & ( ssl -> s3 -> write_mac_secret [ 0 ] ) ;\n seq = RECORD_LAYER_get_write_sequence ( & ssl -> rlayer ) ;\n hash = ssl -> write_hash ;\n }\n else {\n mac_sec = & ( ssl -> s3 -> read_mac_secret [ 0 ] ) ;\n seq = RECORD_LAYER_get_read_sequence ( & ssl -> rlayer ) ;\n hash = ssl -> read_hash ;\n }\n t = EVP_MD_CTX_size ( hash ) ;\n if ( t < 0 ) return - 1 ;\n md_size = t ;\n npad = ( 48 / md_size ) * md_size ;\n if ( ! send && EVP_CIPHER_CTX_mode ( ssl -> enc_read_ctx ) == EVP_CIPH_CBC_MODE && ssl3_cbc_record_digest_supported ( hash ) ) {\n unsigned char header [ 75 ] ;\n unsigned j = 0 ;\n memcpy ( header + j , mac_sec , md_size ) ;\n j += md_size ;\n memcpy ( header + j , ssl3_pad_1 , npad ) ;\n j += npad ;\n memcpy ( header + j , seq , 8 ) ;\n j += 8 ;\n header [ j ++ ] = rec -> type ;\n header [ j ++ ] = rec -> length >> 8 ;\n header [ j ++ ] = rec -> length & 0xff ;\n if ( ssl3_cbc_digest_record ( hash , md , & md_size , header , rec -> input , rec -> length + md_size , rec -> orig_len , mac_sec , md_size , 1 ) <= 0 ) return - 1 ;\n }\n else {\n unsigned int md_size_u ;\n EVP_MD_CTX * md_ctx = EVP_MD_CTX_new ( ) ;\n if ( md_ctx == NULL ) return - 1 ;\n rec_char = rec -> type ;\n p = md ;\n s2n ( rec -> length , p ) ;\n if ( EVP_MD_CTX_copy_ex ( md_ctx , hash ) <= 0 || EVP_DigestUpdate ( md_ctx , mac_sec , md_size ) <= 0 || EVP_DigestUpdate ( md_ctx , ssl3_pad_1 , npad ) <= 0 || EVP_DigestUpdate ( md_ctx , seq , 8 ) <= 0 || EVP_DigestUpdate ( md_ctx , & rec_char , 1 ) <= 0 || EVP_DigestUpdate ( md_ctx , md , 2 ) <= 0 || EVP_DigestUpdate ( md_ctx , rec -> input , rec -> length ) <= 0 || EVP_DigestFinal_ex ( md_ctx , md , NULL ) <= 0 || EVP_MD_CTX_copy_ex ( md_ctx , hash ) <= 0 || EVP_DigestUpdate ( md_ctx , mac_sec , md_size ) <= 0 || EVP_DigestUpdate ( md_ctx , ssl3_pad_2 , npad ) <= 0 || EVP_DigestUpdate ( md_ctx , md , md_size ) <= 0 || EVP_DigestFinal_ex ( md_ctx , md , & md_size_u ) <= 0 ) {\n EVP_MD_CTX_reset ( md_ctx ) ;\n return - 1 ;\n }\n md_size = md_size_u ;\n EVP_MD_CTX_free ( md_ctx ) ;\n }\n ssl3_record_sequence_update ( seq ) ;\n return ( md_size ) ;\n }"}
{"idx": 9751, "target": 0, "func": "bool op_in_opfamily ( Oid opno , Oid opfamily ) {\n return SearchSysCacheExists3 ( AMOPOPID , ObjectIdGetDatum ( opno ) , CharGetDatum ( AMOP_SEARCH ) , ObjectIdGetDatum ( opfamily ) ) ;\n }"}
{"idx": 9752, "target": 1, "func": "static VALUE int_ossl_asn1_decode0_cons ( unsigned char * * pp , long max_len , long length , long * offset , int depth , int yield , int j , int tag , VALUE tc , long * num_read ) {\n VALUE value , asn1data , ary ;\n int infinite ;\n long off = * offset ;\n infinite = ( j == 0x21 ) ;\n ary = rb_ary_new ( ) ;\n while ( length > 0 || infinite ) {\n long inner_read = 0 ;\n value = ossl_asn1_decode0 ( pp , max_len , & off , depth + 1 , yield , & inner_read ) ;\n * num_read += inner_read ;\n max_len -= inner_read ;\n rb_ary_push ( ary , value ) ;\n if ( length > 0 ) length -= inner_read ;\n if ( infinite && NUM2INT ( ossl_asn1_get_tag ( value ) ) == V_ASN1_EOC && ossl_asn1_get_tag_class ( value ) == sym_UNIVERSAL ) {\n break ;\n }\n }\n if ( tc == sym_UNIVERSAL ) {\n VALUE args [ 4 ] ;\n int not_sequence_or_set ;\n not_sequence_or_set = tag != V_ASN1_SEQUENCE && tag != V_ASN1_SET ;\n if ( not_sequence_or_set ) {\n if ( infinite ) {\n asn1data = rb_obj_alloc ( cASN1Constructive ) ;\n }\n else {\n ossl_raise ( eASN1Error , \"invalid non-infinite tag\" ) ;\n return Qnil ;\n }\n }\n else {\n VALUE klass = * ossl_asn1_info [ tag ] . klass ;\n asn1data = rb_obj_alloc ( klass ) ;\n }\n args [ 0 ] = ary ;\n args [ 1 ] = INT2NUM ( tag ) ;\n args [ 2 ] = Qnil ;\n args [ 3 ] = tc ;\n ossl_asn1_initialize ( 4 , args , asn1data ) ;\n }\n else {\n asn1data = rb_obj_alloc ( cASN1Data ) ;\n ossl_asn1data_initialize ( asn1data , ary , INT2NUM ( tag ) , tc ) ;\n }\n if ( infinite ) ossl_asn1_set_infinite_length ( asn1data , Qtrue ) ;\n else ossl_asn1_set_infinite_length ( asn1data , Qfalse ) ;\n * offset = off ;\n return asn1data ;\n }"}
{"idx": 9753, "target": 0, "func": "static void seekUntilEndOfComment ( UCHARBUF * buf , struct UString * token , UErrorCode * status ) {\n UChar32 c , d ;\n uint32_t line ;\n if ( U_FAILURE ( * status ) ) {\n return ;\n }\n line = lineCount ;\n do {\n c = ucbuf_getc ( buf , status ) ;\n if ( c == ASTERISK ) {\n d = ucbuf_getc ( buf , status ) ;\n if ( d != SLASH ) {\n ucbuf_ungetc ( d , buf ) ;\n }\n else {\n break ;\n }\n }\n if ( token != NULL ) {\n ustr_u32cat ( token , c , status ) ;\n }\n isNewline ( c ) ;\n }\n while ( c != U_EOF && * status == U_ZERO_ERROR ) ;\n if ( c == U_EOF ) {\n * status = U_INVALID_FORMAT_ERROR ;\n error ( line , \"unterminated comment detected\" ) ;\n }\n }"}
{"idx": 9754, "target": 0, "func": "static PyObject * string_find ( PyStringObject * self , PyObject * args ) {\n Py_ssize_t result = string_find_internal ( self , args , + 1 ) ;\n if ( result == - 2 ) return NULL ;\n return PyInt_FromSsize_t ( result ) ;\n }"}
{"idx": 9755, "target": 1, "func": "static int decode_i2_frame ( FourXContext * f , const uint8_t * buf , int length ) {\n int x , y , x2 , y2 ;\n const int width = f -> avctx -> width ;\n const int height = f -> avctx -> height ;\n const int mbs = ( FFALIGN ( width , 16 ) >> 4 ) * ( FFALIGN ( height , 16 ) >> 4 ) ;\n uint16_t * dst = ( uint16_t * ) f -> current_picture -> data [ 0 ] ;\n const int stride = f -> current_picture -> linesize [ 0 ] >> 1 ;\n GetByteContext g3 ;\n if ( length < mbs * 8 ) {\n av_log ( f -> avctx , AV_LOG_ERROR , \"packet size too small\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n bytestream2_init ( & g3 , buf , length ) ;\n for ( y = 0 ;\n y < height ;\n y += 16 ) {\n for ( x = 0 ;\n x < width ;\n x += 16 ) {\n unsigned int color [ 4 ] = {\n 0 }\n , bits ;\n color [ 0 ] = bytestream2_get_le16u ( & g3 ) ;\n color [ 1 ] = bytestream2_get_le16u ( & g3 ) ;\n if ( color [ 0 ] & 0x8000 ) av_log ( NULL , AV_LOG_ERROR , \"unk bit 1\\n\" ) ;\n if ( color [ 1 ] & 0x8000 ) av_log ( NULL , AV_LOG_ERROR , \"unk bit 2\\n\" ) ;\n color [ 2 ] = mix ( color [ 0 ] , color [ 1 ] ) ;\n color [ 3 ] = mix ( color [ 1 ] , color [ 0 ] ) ;\n bits = bytestream2_get_le32u ( & g3 ) ;\n for ( y2 = 0 ;\n y2 < 16 ;\n y2 ++ ) {\n for ( x2 = 0 ;\n x2 < 16 ;\n x2 ++ ) {\n int index = 2 * ( x2 >> 2 ) + 8 * ( y2 >> 2 ) ;\n dst [ y2 * stride + x2 ] = color [ ( bits >> index ) & 3 ] ;\n }\n }\n dst += 16 ;\n }\n dst += 16 * stride - x ;\n }\n return 0 ;\n }"}
{"idx": 9756, "target": 0, "func": "static void gst_asf_demux_free_stream ( GstASFDemux * demux , AsfStream * stream ) {\n gst_caps_replace ( & stream -> caps , NULL ) ;\n if ( stream -> pending_tags ) {\n gst_tag_list_unref ( stream -> pending_tags ) ;\n stream -> pending_tags = NULL ;\n }\n if ( stream -> streamheader ) {\n gst_buffer_unref ( stream -> streamheader ) ;\n stream -> streamheader = NULL ;\n }\n if ( stream -> pad ) {\n if ( stream -> active ) {\n gst_element_remove_pad ( GST_ELEMENT_CAST ( demux ) , stream -> pad ) ;\n gst_flow_combiner_remove_pad ( demux -> flowcombiner , stream -> pad ) ;\n }\n else gst_object_unref ( stream -> pad ) ;\n stream -> pad = NULL ;\n }\n if ( stream -> payloads ) {\n while ( stream -> payloads -> len > 0 ) {\n AsfPayload * payload ;\n guint last ;\n last = stream -> payloads -> len - 1 ;\n payload = & g_array_index ( stream -> payloads , AsfPayload , last ) ;\n gst_buffer_replace ( & payload -> buf , NULL ) ;\n g_array_remove_index ( stream -> payloads , last ) ;\n }\n g_array_free ( stream -> payloads , TRUE ) ;\n stream -> payloads = NULL ;\n }\n if ( stream -> payloads_rev ) {\n while ( stream -> payloads_rev -> len > 0 ) {\n AsfPayload * payload ;\n guint last ;\n last = stream -> payloads_rev -> len - 1 ;\n payload = & g_array_index ( stream -> payloads_rev , AsfPayload , last ) ;\n gst_buffer_replace ( & payload -> buf , NULL ) ;\n g_array_remove_index ( stream -> payloads_rev , last ) ;\n }\n g_array_free ( stream -> payloads_rev , TRUE ) ;\n stream -> payloads_rev = NULL ;\n }\n if ( stream -> ext_props . valid ) {\n g_free ( stream -> ext_props . payload_extensions ) ;\n stream -> ext_props . payload_extensions = NULL ;\n }\n }"}
{"idx": 9757, "target": 1, "func": "static int userauth_hostbased ( struct ssh * ssh ) {\n Authctxt * authctxt = ssh -> authctxt ;\n struct sshbuf * b ;\n struct sshkey * key = NULL ;\n char * pkalg , * cuser , * chost ;\n u_char * pkblob , * sig ;\n size_t alen , blen , slen ;\n int r , pktype , authenticated = 0 ;\n if ( ! authctxt -> valid ) {\n debug2 ( \"%s: disabled because of invalid user\" , __func__ ) ;\n return 0 ;\n }\n if ( ( r = sshpkt_get_cstring ( ssh , & pkalg , & alen ) ) != 0 || ( r = sshpkt_get_string ( ssh , & pkblob , & blen ) ) != 0 || ( r = sshpkt_get_cstring ( ssh , & chost , NULL ) ) != 0 || ( r = sshpkt_get_cstring ( ssh , & cuser , NULL ) ) != 0 || ( r = sshpkt_get_string ( ssh , & sig , & slen ) ) != 0 ) fatal ( \"%s: packet parsing: %s\" , __func__ , ssh_err ( r ) ) ;\n debug ( \"%s: cuser %s chost %s pkalg %s slen %zu\" , __func__ , cuser , chost , pkalg , slen ) ;\n # ifdef DEBUG_PK debug ( \"signature:\" ) ;\n sshbuf_dump_data ( sig , siglen , stderr ) ;\n # endif pktype = sshkey_type_from_name ( pkalg ) ;\n if ( pktype == KEY_UNSPEC ) {\n logit ( \"%s: unsupported public key algorithm: %s\" , __func__ , pkalg ) ;\n goto done ;\n }\n if ( ( r = sshkey_from_blob ( pkblob , blen , & key ) ) != 0 ) {\n error ( \"%s: key_from_blob: %s\" , __func__ , ssh_err ( r ) ) ;\n goto done ;\n }\n if ( key == NULL ) {\n error ( \"%s: cannot decode key: %s\" , __func__ , pkalg ) ;\n goto done ;\n }\n if ( key -> type != pktype ) {\n error ( \"%s: type mismatch for decoded key \" \"(received %d, expected %d)\" , __func__ , key -> type , pktype ) ;\n goto done ;\n }\n if ( sshkey_type_plain ( key -> type ) == KEY_RSA && ( ssh -> compat & SSH_BUG_RSASIGMD5 ) != 0 ) {\n error ( \"Refusing RSA key because peer uses unsafe \" \"signature format\" ) ;\n goto done ;\n }\n if ( match_pattern_list ( pkalg , options . hostbased_key_types , 0 ) != 1 ) {\n logit ( \"%s: key type %s not in HostbasedAcceptedKeyTypes\" , __func__ , sshkey_type ( key ) ) ;\n goto done ;\n }\n if ( ( b = sshbuf_new ( ) ) == NULL ) fatal ( \"%s: sshbuf_new failed\" , __func__ ) ;\n if ( ( r = sshbuf_put_string ( b , session_id2 , session_id2_len ) ) != 0 || ( r = sshbuf_put_u8 ( b , SSH2_MSG_USERAUTH_REQUEST ) ) != 0 || ( r = sshbuf_put_cstring ( b , authctxt -> user ) ) != 0 || ( r = sshbuf_put_cstring ( b , authctxt -> service ) ) != 0 || ( r = sshbuf_put_cstring ( b , \"hostbased\" ) ) != 0 || ( r = sshbuf_put_string ( b , pkalg , alen ) ) != 0 || ( r = sshbuf_put_string ( b , pkblob , blen ) ) != 0 || ( r = sshbuf_put_cstring ( b , chost ) ) != 0 || ( r = sshbuf_put_cstring ( b , cuser ) ) != 0 ) fatal ( \"%s: buffer error: %s\" , __func__ , ssh_err ( r ) ) ;\n # ifdef DEBUG_PK sshbuf_dump ( b , stderr ) ;\n # endif auth2_record_info ( authctxt , \"client user \\\"%.100s\\\", client host \\\"%.100s\\\"\" , cuser , chost ) ;\n authenticated = 0 ;\n if ( PRIVSEP ( hostbased_key_allowed ( authctxt -> pw , cuser , chost , key ) ) && PRIVSEP ( sshkey_verify ( key , sig , slen , sshbuf_ptr ( b ) , sshbuf_len ( b ) , pkalg , ssh -> compat ) ) == 0 ) authenticated = 1 ;\n auth2_record_key ( authctxt , authenticated , key ) ;\n sshbuf_free ( b ) ;\n done : debug2 ( \"%s: authenticated %d\" , __func__ , authenticated ) ;\n sshkey_free ( key ) ;\n free ( pkalg ) ;\n free ( pkblob ) ;\n free ( cuser ) ;\n free ( chost ) ;\n free ( sig ) ;\n return authenticated ;\n }"}
{"idx": 9758, "target": 0, "func": "static int dissect_h245_T_samePort ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_samePort , T_samePort_sequence ) ;\n return offset ;\n }"}
{"idx": 9759, "target": 0, "func": "static void decode_pitch_lag_low ( int * lag_int , int * lag_frac , int pitch_index , uint8_t * base_lag_int , int subframe , enum Mode mode ) {\n if ( subframe == 0 || ( subframe == 2 && mode != MODE_6k60 ) ) {\n if ( pitch_index < 116 ) {\n * lag_int = ( pitch_index + 69 ) >> 1 ;\n * lag_frac = ( pitch_index - ( * lag_int << 1 ) + 68 ) << 1 ;\n }\n else {\n * lag_int = pitch_index - 24 ;\n * lag_frac = 0 ;\n }\n * base_lag_int = av_clip ( * lag_int - 8 - ( * lag_frac < 0 ) , AMRWB_P_DELAY_MIN , AMRWB_P_DELAY_MAX - 15 ) ;\n }\n else {\n * lag_int = ( pitch_index + 1 ) >> 1 ;\n * lag_frac = ( pitch_index - ( * lag_int << 1 ) ) << 1 ;\n * lag_int += * base_lag_int ;\n }\n }"}
{"idx": 9760, "target": 0, "func": "proto_item * proto_tree_add_boolean ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , guint32 value ) {\n proto_item * pi ;\n header_field_info * hfinfo ;\n CHECK_FOR_NULL_TREE ( tree ) ;\n TRY_TO_FAKE_THIS_ITEM ( tree , hfindex , hfinfo ) ;\n DISSECTOR_ASSERT_FIELD_TYPE ( hfinfo , FT_BOOLEAN ) ;\n pi = proto_tree_add_pi ( tree , hfinfo , tvb , start , & length ) ;\n proto_tree_set_boolean ( PNODE_FINFO ( pi ) , value ) ;\n return pi ;\n }"}
{"idx": 9761, "target": 0, "func": "static inline void cached_cmyk_conv ( unsigned char * restrict const pr , unsigned char * restrict const pg , unsigned char * restrict const pb , unsigned int * restrict const C , unsigned int * restrict const M , unsigned int * restrict const Y , unsigned int * restrict const K , unsigned int c , unsigned int m , unsigned int y , unsigned int k ) {\n # ifdef SLOWCMYK unsigned int r , g , b ;\n unsigned int cm , c1m , cm1 , c1m1 , c1m1y , c1m1y1 , c1my , c1my1 , cm1y , cm1y1 , cmy , cmy1 ;\n unsigned int x0 , x1 ;\n if ( c == * C && m == * M && y == * Y && k == * K ) {\n }\n else if ( k == 0 && c == 0 && m == 0 && y == 0 ) {\n * C = 0 ;\n * M = 0 ;\n * Y = 0 ;\n * K = 0 ;\n * pr = * pg = * pb = 255 ;\n }\n else if ( k == 255 ) {\n * C = 0 ;\n * M = 0 ;\n * Y = 0 ;\n * K = 255 ;\n * pr = * pg = * pb = 0 ;\n }\n else {\n * C = c ;\n * M = m ;\n * Y = y ;\n * K = k ;\n c += c >> 7 ;\n m += m >> 7 ;\n y += y >> 7 ;\n k += k >> 7 ;\n y >>= 1 ;\n cm = c * m ;\n c1m = ( m << 8 ) - cm ;\n cm1 = ( c << 8 ) - cm ;\n c1m1 = ( ( 256 - m ) << 8 ) - cm1 ;\n c1m1y = c1m1 * y ;\n c1m1y1 = ( c1m1 << 7 ) - c1m1y ;\n c1my = c1m * y ;\n c1my1 = ( c1m << 7 ) - c1my ;\n cm1y = cm1 * y ;\n cm1y1 = ( cm1 << 7 ) - cm1y ;\n cmy = cm * y ;\n cmy1 = ( cm << 7 ) - cmy ;\n x1 = c1m1y1 * k ;\n x0 = ( c1m1y1 << 8 ) - x1 ;\n x1 = x1 >> 8 ;\n r = g = b = x0 ;\n r += 35 * x1 ;\n g += 31 * x1 ;\n b += 32 * x1 ;\n x1 = c1m1y * k ;\n x0 = ( c1m1y << 8 ) - x1 ;\n x1 >>= 8 ;\n r += 28 * x1 ;\n g += 26 * x1 ;\n r += x0 ;\n x0 >>= 8 ;\n g += 243 * x0 ;\n x1 = c1my1 * k ;\n x0 = ( c1my1 << 8 ) - x1 ;\n x1 >>= 8 ;\n x0 >>= 8 ;\n r += 36 * x1 ;\n r += 237 * x0 ;\n b += 141 * x0 ;\n x1 = c1my * k ;\n x0 = ( c1my << 8 ) - x1 ;\n x1 >>= 8 ;\n x0 >>= 8 ;\n r += 34 * x1 ;\n r += 238 * x0 ;\n g += 28 * x0 ;\n b += 36 * x0 ;\n x1 = cm1y1 * k ;\n x0 = ( cm1y1 << 8 ) - x1 ;\n x1 >>= 8 ;\n x0 >>= 8 ;\n g += 15 * x1 ;\n b += 36 * x1 ;\n g += 174 * x0 ;\n b += 240 * x0 ;\n x1 = cm1y * k ;\n x0 = ( cm1y << 8 ) - x1 ;\n x1 >>= 8 ;\n x0 >>= 8 ;\n g += 19 * x1 ;\n g += 167 * x0 ;\n b += 80 * x0 ;\n x1 = cmy1 * k ;\n x0 = ( cmy1 << 8 ) - x1 ;\n x1 >>= 8 ;\n x0 >>= 8 ;\n b += 2 * x1 ;\n r += 46 * x0 ;\n g += 49 * x0 ;\n b += 147 * x0 ;\n x0 = cmy * ( 256 - k ) ;\n x0 >>= 8 ;\n r += 54 * x0 ;\n g += 54 * x0 ;\n b += 57 * x0 ;\n r -= ( r >> 8 ) ;\n g -= ( g >> 8 ) ;\n b -= ( b >> 8 ) ;\n * pr = r >> 23 ;\n * pg = g >> 23 ;\n * pb = b >> 23 ;\n }\n # else * pr = 255 - ( unsigned char ) fz_mini ( c + k , 255 ) ;\n * pg = 255 - ( unsigned char ) fz_mini ( m + k , 255 ) ;\n * pb = 255 - ( unsigned char ) fz_mini ( y + k , 255 ) ;\n # endif }"}
{"idx": 9762, "target": 0, "func": "static int mjpegb_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n MJpegDecodeContext * s = avctx -> priv_data ;\n const uint8_t * buf_end , * buf_ptr ;\n GetBitContext hgb ;\n uint32_t dqt_offs , dht_offs , sof_offs , sos_offs , second_field_offs ;\n uint32_t field_size , sod_offs ;\n int ret ;\n buf_ptr = buf ;\n buf_end = buf + buf_size ;\n read_header : s -> restart_interval = 0 ;\n s -> restart_count = 0 ;\n s -> mjpb_skiptosod = 0 ;\n if ( buf_end - buf_ptr >= 1 << 28 ) return AVERROR_INVALIDDATA ;\n init_get_bits ( & hgb , buf_ptr , ( buf_end - buf_ptr ) * 8 ) ;\n skip_bits ( & hgb , 32 ) ;\n if ( get_bits_long ( & hgb , 32 ) != MKBETAG ( 'm' , 'j' , 'p' , 'g' ) ) {\n av_log ( avctx , AV_LOG_WARNING , \"not mjpeg-b (bad fourcc)\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n field_size = get_bits_long ( & hgb , 32 ) ;\n av_log ( avctx , AV_LOG_DEBUG , \"field size: 0x%x\\n\" , field_size ) ;\n skip_bits ( & hgb , 32 ) ;\n second_field_offs = read_offs ( avctx , & hgb , buf_end - buf_ptr , \"second_field_offs is %d and size is %d\\n\" ) ;\n av_log ( avctx , AV_LOG_DEBUG , \"second field offs: 0x%x\\n\" , second_field_offs ) ;\n dqt_offs = read_offs ( avctx , & hgb , buf_end - buf_ptr , \"dqt is %d and size is %d\\n\" ) ;\n av_log ( avctx , AV_LOG_DEBUG , \"dqt offs: 0x%x\\n\" , dqt_offs ) ;\n if ( dqt_offs ) {\n init_get_bits ( & s -> gb , buf_ptr + dqt_offs , ( buf_end - ( buf_ptr + dqt_offs ) ) * 8 ) ;\n s -> start_code = DQT ;\n if ( ff_mjpeg_decode_dqt ( s ) < 0 && ( avctx -> err_recognition & AV_EF_EXPLODE ) ) return AVERROR_INVALIDDATA ;\n }\n dht_offs = read_offs ( avctx , & hgb , buf_end - buf_ptr , \"dht is %d and size is %d\\n\" ) ;\n av_log ( avctx , AV_LOG_DEBUG , \"dht offs: 0x%x\\n\" , dht_offs ) ;\n if ( dht_offs ) {\n init_get_bits ( & s -> gb , buf_ptr + dht_offs , ( buf_end - ( buf_ptr + dht_offs ) ) * 8 ) ;\n s -> start_code = DHT ;\n ff_mjpeg_decode_dht ( s ) ;\n }\n sof_offs = read_offs ( avctx , & hgb , buf_end - buf_ptr , \"sof is %d and size is %d\\n\" ) ;\n av_log ( avctx , AV_LOG_DEBUG , \"sof offs: 0x%x\\n\" , sof_offs ) ;\n if ( sof_offs ) {\n init_get_bits ( & s -> gb , buf_ptr + sof_offs , ( buf_end - ( buf_ptr + sof_offs ) ) * 8 ) ;\n s -> start_code = SOF0 ;\n if ( ff_mjpeg_decode_sof ( s ) < 0 ) return - 1 ;\n }\n sos_offs = read_offs ( avctx , & hgb , buf_end - buf_ptr , \"sos is %d and size is %d\\n\" ) ;\n av_log ( avctx , AV_LOG_DEBUG , \"sos offs: 0x%x\\n\" , sos_offs ) ;\n sod_offs = read_offs ( avctx , & hgb , buf_end - buf_ptr , \"sof is %d and size is %d\\n\" ) ;\n av_log ( avctx , AV_LOG_DEBUG , \"sod offs: 0x%x\\n\" , sod_offs ) ;\n if ( sos_offs ) {\n init_get_bits ( & s -> gb , buf_ptr + sos_offs , 8 * FFMIN ( field_size , buf_end - buf_ptr - sos_offs ) ) ;\n s -> mjpb_skiptosod = ( sod_offs - sos_offs - show_bits ( & s -> gb , 16 ) ) ;\n s -> start_code = SOS ;\n if ( ff_mjpeg_decode_sos ( s , NULL , NULL ) < 0 && ( avctx -> err_recognition & AV_EF_EXPLODE ) ) return AVERROR_INVALIDDATA ;\n }\n if ( s -> interlaced ) {\n s -> bottom_field ^= 1 ;\n if ( s -> bottom_field != s -> interlace_polarity && second_field_offs ) {\n buf_ptr = buf + second_field_offs ;\n second_field_offs = 0 ;\n goto read_header ;\n }\n }\n if ( ( ret = av_frame_ref ( data , s -> picture_ptr ) ) < 0 ) return ret ;\n * got_frame = 1 ;\n if ( ! s -> lossless && avctx -> debug & FF_DEBUG_QP ) {\n av_log ( avctx , AV_LOG_DEBUG , \"QP: %d\\n\" , FFMAX3 ( s -> qscale [ 0 ] , s -> qscale [ 1 ] , s -> qscale [ 2 ] ) ) ;\n }\n return buf_size ;\n }"}
{"idx": 9763, "target": 0, "func": "static void clean_up_error_log_mutex ( ) {\n mysql_mutex_destroy ( & LOCK_error_log ) ;\n }"}
{"idx": 9764, "target": 0, "func": "static void convert_UTF8_to_JSON ( FBuffer * buffer , VALUE string ) {\n const char * ptr = RSTRING_PTR ( string ) , * p ;\n unsigned long len = RSTRING_LEN ( string ) , start = 0 , end = 0 ;\n const char * escape = NULL ;\n int escape_len ;\n unsigned char c ;\n char buf [ 6 ] = {\n '\\\\' , 'u' }\n ;\n for ( start = 0 , end = 0 ;\n end < len ;\n ) {\n p = ptr + end ;\n c = ( unsigned char ) * p ;\n if ( c < 0x20 ) {\n switch ( c ) {\n case '\\n' : escape = \"\\\\n\" ;\n escape_len = 2 ;\n break ;\n case '\\r' : escape = \"\\\\r\" ;\n escape_len = 2 ;\n break ;\n case '\\t' : escape = \"\\\\t\" ;\n escape_len = 2 ;\n break ;\n case '\\f' : escape = \"\\\\f\" ;\n escape_len = 2 ;\n break ;\n case '\\b' : escape = \"\\\\b\" ;\n escape_len = 2 ;\n break ;\n default : unicode_escape ( buf , ( UTF16 ) * p ) ;\n escape = buf ;\n escape_len = 6 ;\n break ;\n }\n }\n else {\n switch ( c ) {\n case '\\\\' : escape = \"\\\\\\\\\" ;\n escape_len = 2 ;\n break ;\n case '\"' : escape = \"\\\\\\\"\" ;\n escape_len = 2 ;\n break ;\n default : {\n unsigned short clen = trailingBytesForUTF8 [ c ] + 1 ;\n if ( end + clen > len ) {\n rb_raise ( rb_path2class ( \"JSON::GeneratorError\" ) , \"partial character in source, but hit end\" ) ;\n }\n if ( ! isLegalUTF8 ( ( UTF8 * ) p , clen ) ) {\n rb_raise ( rb_path2class ( \"JSON::GeneratorError\" ) , \"source sequence is illegal/malformed utf-8\" ) ;\n }\n end += clen ;\n }\n continue ;\n break ;\n }\n }\n fbuffer_append ( buffer , ptr + start , end - start ) ;\n fbuffer_append ( buffer , escape , escape_len ) ;\n start = ++ end ;\n escape = NULL ;\n }\n fbuffer_append ( buffer , ptr + start , end - start ) ;\n }"}
{"idx": 9765, "target": 0, "func": "static char * nexttok ( char * * str ) {\n register char * cp ;\n char * starttok ;\n cp = * str ;\n while ( * cp == ' ' || * cp == '\\t' ) cp ++ ;\n starttok = cp ;\n while ( * cp != '\\0' && * cp != '\\n' && * cp != ' ' && * cp != '\\t' && * cp != '#' ) cp ++ ;\n if ( starttok == cp ) return NULL ;\n if ( * cp == ' ' || * cp == '\\t' ) * cp ++ = '\\0' ;\n else * cp = '\\0' ;\n * str = cp ;\n return starttok ;\n }"}
{"idx": 9766, "target": 1, "func": "static int check_best_zero_mv ( const VP9_COMP * cpi , const uint8_t mode_context [ MAX_REF_FRAMES ] , int_mv frame_mv [ MB_MODE_COUNT ] [ MAX_REF_FRAMES ] , int inter_mode_mask , int this_mode , const MV_REFERENCE_FRAME ref_frames [ 2 ] ) {\n if ( ( inter_mode_mask & ( 1 << ZEROMV ) ) && ( this_mode == NEARMV || this_mode == NEARESTMV || this_mode == ZEROMV ) && frame_mv [ this_mode ] [ ref_frames [ 0 ] ] . as_int == 0 && ( ref_frames [ 1 ] == NONE || frame_mv [ this_mode ] [ ref_frames [ 1 ] ] . as_int == 0 ) ) {\n int rfc = mode_context [ ref_frames [ 0 ] ] ;\n int c1 = cost_mv_ref ( cpi , NEARMV , rfc ) ;\n int c2 = cost_mv_ref ( cpi , NEARESTMV , rfc ) ;\n int c3 = cost_mv_ref ( cpi , ZEROMV , rfc ) ;\n if ( this_mode == NEARMV ) {\n if ( c1 > c3 ) return 0 ;\n }\n else if ( this_mode == NEARESTMV ) {\n if ( c2 > c3 ) return 0 ;\n }\n else {\n assert ( this_mode == ZEROMV ) ;\n if ( ref_frames [ 1 ] == NONE ) {\n if ( ( c3 >= c2 && frame_mv [ NEARESTMV ] [ ref_frames [ 0 ] ] . as_int == 0 ) || ( c3 >= c1 && frame_mv [ NEARMV ] [ ref_frames [ 0 ] ] . as_int == 0 ) ) return 0 ;\n }\n else {\n if ( ( c3 >= c2 && frame_mv [ NEARESTMV ] [ ref_frames [ 0 ] ] . as_int == 0 && frame_mv [ NEARESTMV ] [ ref_frames [ 1 ] ] . as_int == 0 ) || ( c3 >= c1 && frame_mv [ NEARMV ] [ ref_frames [ 0 ] ] . as_int == 0 && frame_mv [ NEARMV ] [ ref_frames [ 1 ] ] . as_int == 0 ) ) return 0 ;\n }\n }\n }\n return 1 ;\n }"}
{"idx": 9767, "target": 1, "func": "static int isoent_gen_joliet_identifier ( struct archive_write * a , struct isoent * isoent , struct idr * idr ) {\n struct iso9660 * iso9660 ;\n struct isoent * np ;\n unsigned char * p ;\n size_t l ;\n int r ;\n int ffmax , parent_len ;\n static const struct archive_rb_tree_ops rb_ops = {\n isoent_cmp_node_joliet , isoent_cmp_key_joliet }\n ;\n if ( isoent -> children . cnt == 0 ) return ( 0 ) ;\n iso9660 = a -> format_data ;\n if ( iso9660 -> opt . joliet == OPT_JOLIET_LONGNAME ) ffmax = 206 ;\n else ffmax = 128 ;\n r = idr_start ( a , idr , isoent -> children . cnt , ffmax , 6 , 2 , & rb_ops ) ;\n if ( r < 0 ) return ( r ) ;\n parent_len = 1 ;\n for ( np = isoent ;\n np -> parent != np ;\n np = np -> parent ) parent_len += np -> mb_len + 1 ;\n for ( np = isoent -> children . first ;\n np != NULL ;\n np = np -> chnext ) {\n unsigned char * dot ;\n int ext_off , noff , weight ;\n size_t lt ;\n if ( ( int ) ( l = np -> file -> basename_utf16 . length ) > ffmax ) l = ffmax ;\n p = malloc ( ( l + 1 ) * 2 ) ;\n if ( p == NULL ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate memory\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n memcpy ( p , np -> file -> basename_utf16 . s , l ) ;\n p [ l ] = 0 ;\n p [ l + 1 ] = 0 ;\n np -> identifier = ( char * ) p ;\n lt = l ;\n dot = p + l ;\n weight = 0 ;\n while ( lt > 0 ) {\n if ( ! joliet_allowed_char ( p [ 0 ] , p [ 1 ] ) ) archive_be16enc ( p , 0x005F ) ;\n else if ( p [ 0 ] == 0 && p [ 1 ] == 0x2E ) dot = p ;\n p += 2 ;\n lt -= 2 ;\n }\n ext_off = ( int ) ( dot - ( unsigned char * ) np -> identifier ) ;\n np -> ext_off = ext_off ;\n np -> ext_len = ( int ) l - ext_off ;\n np -> id_len = ( int ) l ;\n if ( ( int ) np -> file -> basename_utf16 . length > ffmax ) {\n if ( archive_strncpy_l ( & iso9660 -> mbs , ( const char * ) np -> identifier , l , iso9660 -> sconv_from_utf16be ) != 0 && errno == ENOMEM ) {\n archive_set_error ( & a -> archive , errno , \"No memory\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n np -> mb_len = ( int ) iso9660 -> mbs . length ;\n if ( np -> mb_len != ( int ) np -> file -> basename . length ) weight = np -> mb_len ;\n }\n else np -> mb_len = ( int ) np -> file -> basename . length ;\n if ( parent_len + np -> mb_len > 240 ) {\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"The regulation of Joliet extensions;\n\" \" A length of a full-pathname of `%s' is \" \"longer than 240 bytes, (p=%d, b=%d)\" , archive_entry_pathname ( np -> file -> entry ) , ( int ) parent_len , ( int ) np -> mb_len ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n if ( ( int ) l == ffmax ) noff = ext_off - 6 ;\n else if ( ( int ) l == ffmax - 2 ) noff = ext_off - 4 ;\n else if ( ( int ) l == ffmax - 4 ) noff = ext_off - 2 ;\n else noff = ext_off ;\n idr_register ( idr , np , weight , noff ) ;\n }\n idr_resolve ( idr , idr_set_num_beutf16 ) ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 9768, "target": 0, "func": "static void test_bug9992 ( ) {\n MYSQL * mysql1 ;\n MYSQL_RES * res ;\n int rc ;\n myheader ( \"test_bug9992\" ) ;\n if ( ! opt_silent ) printf ( \"Establishing a connection with option CLIENT_MULTI_STATEMENTS..\\n\" ) ;\n mysql1 = mysql_client_init ( NULL ) ;\n if ( ! mysql_real_connect ( mysql1 , opt_host , opt_user , opt_password , opt_db ? opt_db : \"test\" , opt_port , opt_unix_socket , CLIENT_MULTI_STATEMENTS ) ) {\n fprintf ( stderr , \"Failed to connect to the database\\n\" ) ;\n DIE_UNLESS ( 0 ) ;\n }\n rc = mysql_query ( mysql1 , \"SHOW TABLES;\n SHOW DATABASE;\n SELECT 1;\n\" ) ;\n if ( rc ) {\n fprintf ( stderr , \"[%d] %s\\n\" , mysql_errno ( mysql1 ) , mysql_error ( mysql1 ) ) ;\n DIE_UNLESS ( 0 ) ;\n }\n if ( ! opt_silent ) printf ( \"Testing mysql_store_result/mysql_next_result..\\n\" ) ;\n res = mysql_store_result ( mysql1 ) ;\n DIE_UNLESS ( res ) ;\n mysql_free_result ( res ) ;\n rc = mysql_next_result ( mysql1 ) ;\n DIE_UNLESS ( rc == 1 ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"Got error, as expected:\\n [%d] %s\\n\" , mysql_errno ( mysql1 ) , mysql_error ( mysql1 ) ) ;\n mysql_close ( mysql1 ) ;\n }"}
{"idx": 9769, "target": 0, "func": "void exsltCommonRegister ( void ) {\n xsltRegisterExtModuleFunction ( ( const xmlChar * ) \"node-set\" , EXSLT_COMMON_NAMESPACE , exsltNodeSetFunction ) ;\n xsltRegisterExtModuleFunction ( ( const xmlChar * ) \"object-type\" , EXSLT_COMMON_NAMESPACE , exsltObjectTypeFunction ) ;\n xsltRegisterExtModuleElement ( ( const xmlChar * ) \"document\" , EXSLT_COMMON_NAMESPACE , ( xsltPreComputeFunction ) xsltDocumentComp , ( xsltTransformFunction ) xsltDocumentElem ) ;\n }"}
{"idx": 9770, "target": 1, "func": "int i2d_ ## name ( type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;\n int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DIRECTORYSTRING ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DISPLAYTEXT ) DECLARE_ASN1_FUNCTIONS ( ASN1_PRINTABLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_T61STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_IA5STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_GENERALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTCTIME )"}
{"idx": 9771, "target": 0, "func": "int qemuMonitorJSONSetCapabilities ( qemuMonitorPtr mon ) {\n int ret ;\n virJSONValuePtr cmd = qemuMonitorJSONMakeCommand ( \"qmp_capabilities\" , NULL ) ;\n virJSONValuePtr reply = NULL ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 9772, "target": 0, "func": "void vp9_rc_update_framerate ( VP9_COMP * cpi ) {\n const VP9_COMMON * const cm = & cpi -> common ;\n const VP9EncoderConfig * const oxcf = & cpi -> oxcf ;\n RATE_CONTROL * const rc = & cpi -> rc ;\n int vbr_max_bits ;\n rc -> avg_frame_bandwidth = ( int ) ( oxcf -> target_bandwidth / cpi -> framerate ) ;\n rc -> min_frame_bandwidth = ( int ) ( rc -> avg_frame_bandwidth * oxcf -> two_pass_vbrmin_section / 100 ) ;\n rc -> min_frame_bandwidth = MAX ( rc -> min_frame_bandwidth , FRAME_OVERHEAD_BITS ) ;\n vbr_max_bits = ( int ) ( ( ( int64_t ) rc -> avg_frame_bandwidth * oxcf -> two_pass_vbrmax_section ) / 100 ) ;\n rc -> max_frame_bandwidth = MAX ( MAX ( ( cm -> MBs * MAX_MB_RATE ) , MAXRATE_1080P ) , vbr_max_bits ) ;\n vp9_rc_set_gf_max_interval ( cpi , rc ) ;\n }"}
{"idx": 9773, "target": 0, "func": "static int dissect_h245_EncryptionAuthenticationAndIntegrity ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_EncryptionAuthenticationAndIntegrity , EncryptionAuthenticationAndIntegrity_sequence ) ;\n return offset ;\n }"}
{"idx": 9774, "target": 0, "func": "static int dissect_btgatt_microbit_button_a_state ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , void * data ) {\n btatt_data_t * att_data = ( btatt_data_t * ) data ;\n gint offset = 0 ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) return - 1 ;\n proto_tree_add_item ( tree , hf_gatt_microbit_button_a_state , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n return offset ;\n }"}
{"idx": 9775, "target": 0, "func": "hb_set_t * hb_set_create ( void ) {\n hb_set_t * set ;\n if ( ! ( set = hb_object_create < hb_set_t > ( ) ) ) return hb_set_get_empty ( ) ;\n set -> clear ( ) ;\n return set ;\n }"}
{"idx": 9776, "target": 0, "func": "static void nice_time ( double sec , char * buff , bool part_second ) {\n ulong tmp ;\n if ( sec >= 3600.0 * 24 ) {\n tmp = ( ulong ) floor ( sec / ( 3600.0 * 24 ) ) ;\n sec -= 3600.0 * 24 * tmp ;\n buff = int10_to_str ( ( long ) tmp , buff , 10 ) ;\n buff = strmov ( buff , tmp > 1 ? \" days \" : \" day \" ) ;\n }\n if ( sec >= 3600.0 ) {\n tmp = ( ulong ) floor ( sec / 3600.0 ) ;\n sec -= 3600.0 * tmp ;\n buff = int10_to_str ( ( long ) tmp , buff , 10 ) ;\n buff = strmov ( buff , tmp > 1 ? \" hours \" : \" hour \" ) ;\n }\n if ( sec >= 60.0 ) {\n tmp = ( ulong ) floor ( sec / 60.0 ) ;\n sec -= 60.0 * tmp ;\n buff = int10_to_str ( ( long ) tmp , buff , 10 ) ;\n buff = strmov ( buff , \" min \" ) ;\n }\n if ( part_second ) sprintf ( buff , \"%.2f sec\" , sec ) ;\n else sprintf ( buff , \"%d sec\" , ( int ) sec ) ;\n }"}
{"idx": 9777, "target": 0, "func": "static void mclms_predict ( WmallDecodeCtx * s , int icoef , int * pred ) {\n int ich , i ;\n int order = s -> mclms_order ;\n int num_channels = s -> num_channels ;\n for ( ich = 0 ;\n ich < num_channels ;\n ich ++ ) {\n pred [ ich ] = 0 ;\n if ( ! s -> is_channel_coded [ ich ] ) continue ;\n for ( i = 0 ;\n i < order * num_channels ;\n i ++ ) pred [ ich ] += s -> mclms_prevvalues [ i + s -> mclms_recent ] * s -> mclms_coeffs [ i + order * num_channels * ich ] ;\n for ( i = 0 ;\n i < ich ;\n i ++ ) pred [ ich ] += s -> channel_residues [ i ] [ icoef ] * s -> mclms_coeffs_cur [ i + num_channels * ich ] ;\n pred [ ich ] += 1 << s -> mclms_scaling - 1 ;\n pred [ ich ] >>= s -> mclms_scaling ;\n s -> channel_residues [ ich ] [ icoef ] += pred [ ich ] ;\n }\n }"}
{"idx": 9778, "target": 0, "func": "int gs_main_add_lib_path ( gs_main_instance * minst , const char * lpath ) {\n int first_is_here = ( r_size ( & minst -> lib_path . list ) != 0 && minst -> lib_path . container . value . refs [ 0 ] . value . bytes == ( const byte * ) gp_current_directory_name ? 1 : 0 ) ;\n int code ;\n r_set_size ( & minst -> lib_path . list , minst -> lib_path . count + first_is_here ) ;\n code = file_path_add ( minst , & minst -> lib_path , lpath ) ;\n minst -> lib_path . count = r_size ( & minst -> lib_path . list ) - first_is_here ;\n if ( code < 0 ) return code ;\n return gs_main_set_lib_paths ( minst ) ;\n }"}
{"idx": 9779, "target": 0, "func": "bool check_grant_db ( THD * thd , const char * db ) {\n Security_context * sctx = thd -> security_ctx ;\n char helping [ NAME_LEN + USERNAME_LENGTH + 2 ] ;\n uint len ;\n bool error = TRUE ;\n size_t copy_length ;\n copy_length = ( size_t ) ( strlen ( sctx -> priv_user ? sctx -> priv_user : \"\" ) + strlen ( db ? db : \"\" ) ) + 1 ;\n if ( copy_length >= ( NAME_LEN + USERNAME_LENGTH + 2 ) ) return 1 ;\n len = ( uint ) ( strmov ( strmov ( helping , sctx -> priv_user ) + 1 , db ) - helping ) + 1 ;\n rw_rdlock ( & LOCK_grant ) ;\n for ( uint idx = 0 ;\n idx < column_priv_hash . records ;\n idx ++ ) {\n GRANT_TABLE * grant_table = ( GRANT_TABLE * ) hash_element ( & column_priv_hash , idx ) ;\n if ( len < grant_table -> key_length && ! memcmp ( grant_table -> hash_key , helping , len ) && compare_hostname ( & grant_table -> host , sctx -> host , sctx -> ip ) ) {\n error = FALSE ;\n break ;\n }\n }\n if ( error ) error = check_grant_db_routine ( thd , db , & proc_priv_hash ) && check_grant_db_routine ( thd , db , & func_priv_hash ) ;\n rw_unlock ( & LOCK_grant ) ;\n return error ;\n }"}
{"idx": 9780, "target": 0, "func": "void gdev_mem_mono_set_inverted ( gx_device_memory * dev , bool black_is_1 ) {\n if ( black_is_1 ) dev -> palette = mem_mono_b_w_palette ;\n else dev -> palette = mem_mono_w_b_palette ;\n }"}
{"idx": 9781, "target": 0, "func": "static void display_mouse_set ( DisplayChangeListener * dcl , int x , int y , int on ) {\n SimpleSpiceDisplay * ssd = container_of ( dcl , SimpleSpiceDisplay , dcl ) ;\n qemu_mutex_lock ( & ssd -> lock ) ;\n ssd -> ptr_x = x ;\n ssd -> ptr_y = x ;\n if ( ssd -> ptr_move ) {\n g_free ( ssd -> ptr_move ) ;\n }\n ssd -> ptr_move = qemu_spice_create_cursor_update ( ssd , NULL ) ;\n qemu_mutex_unlock ( & ssd -> lock ) ;\n }"}
{"idx": 9782, "target": 0, "func": "void * xmlListReverseSearch ( xmlListPtr l , void * data ) {\n xmlLinkPtr lk ;\n if ( l == NULL ) return ( NULL ) ;\n lk = xmlListLinkReverseSearch ( l , data ) ;\n if ( lk ) return ( lk -> data ) ;\n return NULL ;\n }"}
{"idx": 9783, "target": 0, "func": "static int jbig2_decode_generic_template3_unopt ( Jbig2Ctx * ctx , Jbig2Segment * segment , const Jbig2GenericRegionParams * params , Jbig2ArithState * as , Jbig2Image * image , Jbig2ArithCx * GB_stats ) {\n const int GBW = image -> width ;\n const int GBH = image -> height ;\n uint32_t CONTEXT ;\n int x , y ;\n bool bit ;\n for ( y = 0 ;\n y < GBH ;\n y ++ ) {\n for ( x = 0 ;\n x < GBW ;\n x ++ ) {\n CONTEXT = 0 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 1 , y ) << 0 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 2 , y ) << 1 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 3 , y ) << 2 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 4 , y ) << 3 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x + params -> gbat [ 0 ] , y + params -> gbat [ 1 ] ) << 4 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x + 1 , y - 1 ) << 5 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x + 0 , y - 1 ) << 6 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 1 , y - 1 ) << 7 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 2 , y - 1 ) << 8 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 3 , y - 1 ) << 9 ;\n bit = jbig2_arith_decode ( as , & GB_stats [ CONTEXT ] ) ;\n if ( bit < 0 ) return - 1 ;\n jbig2_image_set_pixel ( image , x , y , bit ) ;\n }\n }\n return 0 ;\n }"}
{"idx": 9784, "target": 0, "func": "int nntp_active_fetch ( struct NntpServer * nserv , bool new ) {\n struct NntpData nntp_data ;\n char msg [ STRING ] ;\n char buf [ LONG_STRING ] ;\n unsigned int i ;\n int rc ;\n snprintf ( msg , sizeof ( msg ) , _ ( \"Loading list of groups from server %s...\" ) , nserv -> conn -> account . host ) ;\n mutt_message ( msg ) ;\n if ( nntp_date ( nserv , & nserv -> newgroups_time ) < 0 ) return - 1 ;\n nntp_data . nserv = nserv ;\n nntp_data . group = NULL ;\n i = nserv -> groups_num ;\n mutt_str_strfcpy ( buf , \"LIST\\r\\n\" , sizeof ( buf ) ) ;\n rc = nntp_fetch_lines ( & nntp_data , buf , sizeof ( buf ) , msg , nntp_add_group , nserv ) ;\n if ( rc ) {\n if ( rc > 0 ) {\n mutt_error ( \"LIST: %s\" , buf ) ;\n }\n return - 1 ;\n }\n if ( new ) {\n for ( ;\n i < nserv -> groups_num ;\n i ++ ) {\n struct NntpData * data = nserv -> groups_list [ i ] ;\n data -> new = true ;\n }\n }\n for ( i = 0 ;\n i < nserv -> groups_num ;\n i ++ ) {\n struct NntpData * data = nserv -> groups_list [ i ] ;\n if ( data && data -> deleted && ! data -> newsrc_ent ) {\n nntp_delete_group_cache ( data ) ;\n mutt_hash_delete ( nserv -> groups_hash , data -> group , NULL ) ;\n nserv -> groups_list [ i ] = NULL ;\n }\n }\n if ( NntpLoadDescription ) rc = get_description ( & nntp_data , \"*\" , _ ( \"Loading descriptions...\" ) ) ;\n nntp_active_save_cache ( nserv ) ;\n if ( rc < 0 ) return - 1 ;\n mutt_clear_error ( ) ;\n return 0 ;\n }"}
{"idx": 9785, "target": 0, "func": "static void dissect_rtmpt_body_audio ( tvbuff_t * tvb , gint offset , proto_tree * rtmpt_tree ) {\n guint8 iCtl ;\n proto_item * ai ;\n proto_tree * at ;\n iCtl = tvb_get_guint8 ( tvb , offset ) ;\n ai = proto_tree_add_uint_format ( rtmpt_tree , hf_rtmpt_audio_control , tvb , offset , 1 , iCtl , \"Control: 0x%02x (%s %s %s %s)\" , iCtl , val_to_str_const ( ( iCtl & 0xf0 ) >> 4 , rtmpt_audio_codecs , \"Unknown codec\" ) , val_to_str_const ( ( iCtl & 0x0c ) >> 2 , rtmpt_audio_rates , \"Unknown rate\" ) , val_to_str_const ( ( iCtl & 0x02 ) >> 1 , rtmpt_audio_sizes , \"Unknown sample size\" ) , val_to_str_const ( iCtl & 0x01 , rtmpt_audio_types , \"Unknown channel count\" ) ) ;\n at = proto_item_add_subtree ( ai , ett_rtmpt_audio_control ) ;\n proto_tree_add_uint ( at , hf_rtmpt_audio_format , tvb , offset , 1 , iCtl ) ;\n proto_tree_add_uint ( at , hf_rtmpt_audio_rate , tvb , offset , 1 , iCtl ) ;\n proto_tree_add_uint ( at , hf_rtmpt_audio_size , tvb , offset , 1 , iCtl ) ;\n proto_tree_add_uint ( at , hf_rtmpt_audio_type , tvb , offset , 1 , iCtl ) ;\n proto_tree_add_item ( rtmpt_tree , hf_rtmpt_audio_data , tvb , offset + 1 , - 1 , ENC_NA ) ;\n }"}
{"idx": 9786, "target": 0, "func": "static int unpack_dct_coeffs ( Vp3DecodeContext * s , GetBitContext * gb ) {\n int i ;\n int dc_y_table ;\n int dc_c_table ;\n int ac_y_table ;\n int ac_c_table ;\n int residual_eob_run = 0 ;\n VLC * y_tables [ 64 ] ;\n VLC * c_tables [ 64 ] ;\n s -> dct_tokens [ 0 ] [ 0 ] = s -> dct_tokens_base ;\n dc_y_table = get_bits ( gb , 4 ) ;\n dc_c_table = get_bits ( gb , 4 ) ;\n residual_eob_run = unpack_vlcs ( s , gb , & s -> dc_vlc [ dc_y_table ] , 0 , 0 , residual_eob_run ) ;\n if ( residual_eob_run < 0 ) return residual_eob_run ;\n reverse_dc_prediction ( s , 0 , s -> fragment_width [ 0 ] , s -> fragment_height [ 0 ] ) ;\n residual_eob_run = unpack_vlcs ( s , gb , & s -> dc_vlc [ dc_c_table ] , 0 , 1 , residual_eob_run ) ;\n if ( residual_eob_run < 0 ) return residual_eob_run ;\n residual_eob_run = unpack_vlcs ( s , gb , & s -> dc_vlc [ dc_c_table ] , 0 , 2 , residual_eob_run ) ;\n if ( residual_eob_run < 0 ) return residual_eob_run ;\n if ( ! ( s -> avctx -> flags & CODEC_FLAG_GRAY ) ) {\n reverse_dc_prediction ( s , s -> fragment_start [ 1 ] , s -> fragment_width [ 1 ] , s -> fragment_height [ 1 ] ) ;\n reverse_dc_prediction ( s , s -> fragment_start [ 2 ] , s -> fragment_width [ 1 ] , s -> fragment_height [ 1 ] ) ;\n }\n ac_y_table = get_bits ( gb , 4 ) ;\n ac_c_table = get_bits ( gb , 4 ) ;\n for ( i = 1 ;\n i <= 5 ;\n i ++ ) {\n y_tables [ i ] = & s -> ac_vlc_1 [ ac_y_table ] ;\n c_tables [ i ] = & s -> ac_vlc_1 [ ac_c_table ] ;\n }\n for ( i = 6 ;\n i <= 14 ;\n i ++ ) {\n y_tables [ i ] = & s -> ac_vlc_2 [ ac_y_table ] ;\n c_tables [ i ] = & s -> ac_vlc_2 [ ac_c_table ] ;\n }\n for ( i = 15 ;\n i <= 27 ;\n i ++ ) {\n y_tables [ i ] = & s -> ac_vlc_3 [ ac_y_table ] ;\n c_tables [ i ] = & s -> ac_vlc_3 [ ac_c_table ] ;\n }\n for ( i = 28 ;\n i <= 63 ;\n i ++ ) {\n y_tables [ i ] = & s -> ac_vlc_4 [ ac_y_table ] ;\n c_tables [ i ] = & s -> ac_vlc_4 [ ac_c_table ] ;\n }\n for ( i = 1 ;\n i <= 63 ;\n i ++ ) {\n residual_eob_run = unpack_vlcs ( s , gb , y_tables [ i ] , i , 0 , residual_eob_run ) ;\n if ( residual_eob_run < 0 ) return residual_eob_run ;\n residual_eob_run = unpack_vlcs ( s , gb , c_tables [ i ] , i , 1 , residual_eob_run ) ;\n if ( residual_eob_run < 0 ) return residual_eob_run ;\n residual_eob_run = unpack_vlcs ( s , gb , c_tables [ i ] , i , 2 , residual_eob_run ) ;\n if ( residual_eob_run < 0 ) return residual_eob_run ;\n }\n return 0 ;\n }"}
{"idx": 9787, "target": 0, "func": "static int cpu_post_load ( void * opaque , int version_id ) {\n X86CPU * cpu = opaque ;\n CPUState * cs = CPU ( cpu ) ;\n CPUX86State * env = & cpu -> env ;\n int i ;\n if ( env -> tsc_khz && env -> user_tsc_khz && env -> tsc_khz != env -> user_tsc_khz ) {\n error_report ( \"Mismatch between user-specified TSC frequency and \" \"migrated TSC frequency\" ) ;\n return - EINVAL ;\n }\n if ( env -> fpregs_format_vmstate ) {\n error_report ( \"Unsupported old non-softfloat CPU state\" ) ;\n return - EINVAL ;\n }\n if ( ! ( env -> cr [ 0 ] & CR0_PE_MASK ) && ( env -> segs [ R_CS ] . flags >> DESC_DPL_SHIFT & 3 ) != 0 ) {\n env -> segs [ R_CS ] . flags &= ~ ( env -> segs [ R_CS ] . flags & DESC_DPL_MASK ) ;\n env -> segs [ R_DS ] . flags &= ~ ( env -> segs [ R_DS ] . flags & DESC_DPL_MASK ) ;\n env -> segs [ R_ES ] . flags &= ~ ( env -> segs [ R_ES ] . flags & DESC_DPL_MASK ) ;\n env -> segs [ R_FS ] . flags &= ~ ( env -> segs [ R_FS ] . flags & DESC_DPL_MASK ) ;\n env -> segs [ R_GS ] . flags &= ~ ( env -> segs [ R_GS ] . flags & DESC_DPL_MASK ) ;\n env -> segs [ R_SS ] . flags &= ~ ( env -> segs [ R_SS ] . flags & DESC_DPL_MASK ) ;\n }\n env -> hflags &= ~ HF_CPL_MASK ;\n env -> hflags |= ( env -> segs [ R_SS ] . flags >> DESC_DPL_SHIFT ) & HF_CPL_MASK ;\n env -> fpstt = ( env -> fpus_vmstate >> 11 ) & 7 ;\n env -> fpus = env -> fpus_vmstate & ~ 0x3800 ;\n env -> fptag_vmstate ^= 0xff ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n env -> fptags [ i ] = ( env -> fptag_vmstate >> i ) & 1 ;\n }\n if ( tcg_enabled ( ) ) {\n target_ulong dr7 ;\n update_fp_status ( env ) ;\n update_mxcsr_status ( env ) ;\n cpu_breakpoint_remove_all ( cs , BP_CPU ) ;\n cpu_watchpoint_remove_all ( cs , BP_CPU ) ;\n dr7 = env -> dr [ 7 ] ;\n env -> dr [ 7 ] = dr7 & ~ ( DR7_GLOBAL_BP_MASK | DR7_LOCAL_BP_MASK ) ;\n cpu_x86_update_dr7 ( env , dr7 ) ;\n }\n tlb_flush ( cs ) ;\n return 0 ;\n }"}
{"idx": 9788, "target": 0, "func": "int vp9_compute_qdelta_by_rate ( const RATE_CONTROL * rc , FRAME_TYPE frame_type , int qindex , double rate_target_ratio , vpx_bit_depth_t bit_depth ) {\n int target_index = rc -> worst_quality ;\n int i ;\n const int base_bits_per_mb = vp9_rc_bits_per_mb ( frame_type , qindex , 1.0 , bit_depth ) ;\n const int target_bits_per_mb = ( int ) ( rate_target_ratio * base_bits_per_mb ) ;\n for ( i = rc -> best_quality ;\n i < rc -> worst_quality ;\n ++ i ) {\n target_index = i ;\n if ( vp9_rc_bits_per_mb ( frame_type , i , 1.0 , bit_depth ) <= target_bits_per_mb ) break ;\n }\n return target_index - qindex ;\n }"}
{"idx": 9789, "target": 0, "func": "static int mix ( int c0 , int c1 ) {\n int blue = 2 * ( c0 & 0x001F ) + ( c1 & 0x001F ) ;\n int green = ( 2 * ( c0 & 0x03E0 ) + ( c1 & 0x03E0 ) ) >> 5 ;\n int red = 2 * ( c0 >> 10 ) + ( c1 >> 10 ) ;\n return red / 3 * 1024 + green / 3 * 32 + blue / 3 ;\n }"}
{"idx": 9790, "target": 0, "func": "static inline void set_num_731 ( unsigned char * p , uint32_t value ) {\n archive_le32enc ( p , value ) ;\n }"}
{"idx": 9791, "target": 0, "func": "static int dissect_cipsafety ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n proto_item * ti ;\n proto_tree * safety_tree ;\n ti = proto_tree_add_item ( tree , proto_cipsafety , tvb , 0 , - 1 , ENC_NA ) ;\n safety_tree = proto_item_add_subtree ( ti , ett_cip_safety ) ;\n dissect_cip_safety_data ( safety_tree , ti , tvb , tvb_reported_length ( tvb ) , pinfo ) ;\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 9792, "target": 0, "func": "static int proc_tcp_congestion_control ( ctl_table * ctl , int write , void __user * buffer , size_t * lenp , loff_t * ppos ) {\n char val [ TCP_CA_NAME_MAX ] ;\n ctl_table tbl = {\n . data = val , . maxlen = TCP_CA_NAME_MAX , }\n ;\n int ret ;\n tcp_get_default_congestion_control ( val ) ;\n ret = proc_dostring ( & tbl , write , buffer , lenp , ppos ) ;\n if ( write && ret == 0 ) ret = tcp_set_default_congestion_control ( val ) ;\n return ret ;\n }"}
{"idx": 9793, "target": 0, "func": "static void dropTablespaces ( PGconn * conn ) {\n PGresult * res ;\n int i ;\n res = executeQuery ( conn , \"SELECT spcname \" \"FROM pg_catalog.pg_tablespace \" \"WHERE spcname !~ '^pg_' \" \"ORDER BY 1\" ) ;\n if ( PQntuples ( res ) > 0 ) fprintf ( OPF , \"--\\n-- Drop tablespaces\\n--\\n\\n\" ) ;\n for ( i = 0 ;\n i < PQntuples ( res ) ;\n i ++ ) {\n char * spcname = PQgetvalue ( res , i , 0 ) ;\n fprintf ( OPF , \"DROP TABLESPACE %s%s;\n\\n\" , if_exists ? \"IF EXISTS \" : \"\" , fmtId ( spcname ) ) ;\n }\n PQclear ( res ) ;\n fprintf ( OPF , \"\\n\\n\" ) ;\n }"}
{"idx": 9794, "target": 0, "func": "static void arm_thistimer_write ( void * opaque , hwaddr addr , uint64_t value , unsigned size ) {\n ARMMPTimerState * s = ( ARMMPTimerState * ) opaque ;\n int id = get_current_cpu ( s ) ;\n timerblock_write ( & s -> timerblock [ id ] , addr , value , size ) ;\n }"}
{"idx": 9795, "target": 0, "func": "static int ext_index_add_object ( struct object * object , const char * name ) {\n struct eindex * eindex = & bitmap_git . ext_index ;\n khiter_t hash_pos ;\n int hash_ret ;\n int bitmap_pos ;\n hash_pos = kh_put_sha1_pos ( eindex -> positions , object -> oid . hash , & hash_ret ) ;\n if ( hash_ret > 0 ) {\n if ( eindex -> count >= eindex -> alloc ) {\n eindex -> alloc = ( eindex -> alloc + 16 ) * 3 / 2 ;\n REALLOC_ARRAY ( eindex -> objects , eindex -> alloc ) ;\n REALLOC_ARRAY ( eindex -> hashes , eindex -> alloc ) ;\n }\n bitmap_pos = eindex -> count ;\n eindex -> objects [ eindex -> count ] = object ;\n eindex -> hashes [ eindex -> count ] = pack_name_hash ( name ) ;\n kh_value ( eindex -> positions , hash_pos ) = bitmap_pos ;\n eindex -> count ++ ;\n }\n else {\n bitmap_pos = kh_value ( eindex -> positions , hash_pos ) ;\n }\n return bitmap_pos + bitmap_git . pack -> num_objects ;\n }"}
{"idx": 9796, "target": 0, "func": "QIOChannelWebsock * qio_channel_websock_new_server ( QIOChannel * master ) {\n QIOChannelWebsock * wioc ;\n QIOChannel * ioc ;\n wioc = QIO_CHANNEL_WEBSOCK ( object_new ( TYPE_QIO_CHANNEL_WEBSOCK ) ) ;\n ioc = QIO_CHANNEL ( wioc ) ;\n wioc -> master = master ;\n if ( qio_channel_has_feature ( master , QIO_CHANNEL_FEATURE_SHUTDOWN ) ) {\n qio_channel_set_feature ( ioc , QIO_CHANNEL_FEATURE_SHUTDOWN ) ;\n }\n object_ref ( OBJECT ( master ) ) ;\n trace_qio_channel_websock_new_server ( wioc , master ) ;\n return wioc ;\n }"}
{"idx": 9797, "target": 0, "func": "extern int name ( int ) __THROW __exctype ( isalnum ) ;\n __exctype ( isalpha ) ;\n __exctype ( iscntrl ) ;\n __exctype ( isdigit ) ;\n __exctype ( islower ) ;\n __exctype ( isgraph ) ;\n __exctype ( isprint )"}
{"idx": 9798, "target": 0, "func": "static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_reserve ( sk_ ## t1 ## _compfunc compare , int n ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_reserve ( ( OPENSSL_sk_compfunc ) compare , n ) ;\n }\n static ossl_inline int sk_ ## t1 ## _reserve ( STACK_OF ( t1 ) * sk , int n ) {\n return OPENSSL_sk_reserve ( ( OPENSSL_STACK * ) sk , n ) ;\n }\n static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 9799, "target": 0, "func": "static int dissect_h225_H248SignalsDescriptor ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , NO_BOUND , NO_BOUND , FALSE , NULL ) ;\n return offset ;\n }"}
{"idx": 9800, "target": 0, "func": "gcry_error_t gcry_pk_genkey ( gcry_sexp_t * r_key , gcry_sexp_t s_parms ) {\n gcry_pk_spec_t * pubkey = NULL ;\n gcry_module_t module = NULL ;\n gcry_sexp_t list = NULL ;\n gcry_sexp_t l2 = NULL ;\n gcry_sexp_t l3 = NULL ;\n char * name = NULL ;\n size_t n ;\n gcry_err_code_t rc = GPG_ERR_NO_ERROR ;\n int i , j ;\n const char * algo_name = NULL ;\n int algo ;\n const char * sec_elems = NULL , * pub_elems = NULL ;\n gcry_mpi_t skey [ 12 ] ;\n gcry_mpi_t * factors = NULL ;\n gcry_sexp_t extrainfo = NULL ;\n unsigned int nbits = 0 ;\n unsigned long use_e = 0 ;\n skey [ 0 ] = NULL ;\n * r_key = NULL ;\n REGISTER_DEFAULT_PUBKEYS ;\n list = gcry_sexp_find_token ( s_parms , \"genkey\" , 0 ) ;\n if ( ! list ) {\n rc = GPG_ERR_INV_OBJ ;\n goto leave ;\n }\n l2 = gcry_sexp_cadr ( list ) ;\n gcry_sexp_release ( list ) ;\n list = l2 ;\n l2 = NULL ;\n if ( ! list ) {\n rc = GPG_ERR_NO_OBJ ;\n goto leave ;\n }\n name = _gcry_sexp_nth_string ( list , 0 ) ;\n if ( ! name ) {\n rc = GPG_ERR_INV_OBJ ;\n goto leave ;\n }\n ath_mutex_lock ( & pubkeys_registered_lock ) ;\n module = gcry_pk_lookup_name ( name ) ;\n ath_mutex_unlock ( & pubkeys_registered_lock ) ;\n gcry_free ( name ) ;\n name = NULL ;\n if ( ! module ) {\n rc = GPG_ERR_PUBKEY_ALGO ;\n goto leave ;\n }\n pubkey = ( gcry_pk_spec_t * ) module -> spec ;\n algo = module -> mod_id ;\n algo_name = pubkey -> aliases ? * pubkey -> aliases : NULL ;\n if ( ! algo_name || ! * algo_name ) algo_name = pubkey -> name ;\n pub_elems = pubkey -> elements_pkey ;\n sec_elems = pubkey -> elements_skey ;\n if ( strlen ( sec_elems ) >= DIM ( skey ) ) BUG ( ) ;\n l2 = gcry_sexp_find_token ( list , \"rsa-use-e\" , 0 ) ;\n if ( l2 ) {\n char buf [ 50 ] ;\n const char * s ;\n s = gcry_sexp_nth_data ( l2 , 1 , & n ) ;\n if ( ! s || n >= DIM ( buf ) - 1 ) {\n rc = GPG_ERR_INV_OBJ ;\n goto leave ;\n }\n memcpy ( buf , s , n ) ;\n buf [ n ] = 0 ;\n use_e = strtoul ( buf , NULL , 0 ) ;\n gcry_sexp_release ( l2 ) ;\n l2 = NULL ;\n }\n else use_e = 65537 ;\n l2 = gcry_sexp_find_token ( list , \"nbits\" , 0 ) ;\n if ( l2 ) {\n char buf [ 50 ] ;\n const char * s ;\n s = gcry_sexp_nth_data ( l2 , 1 , & n ) ;\n if ( ! s || n >= DIM ( buf ) - 1 ) {\n rc = GPG_ERR_INV_OBJ ;\n goto leave ;\n }\n memcpy ( buf , s , n ) ;\n buf [ n ] = 0 ;\n nbits = ( unsigned int ) strtoul ( buf , NULL , 0 ) ;\n gcry_sexp_release ( l2 ) ;\n l2 = NULL ;\n }\n else nbits = 0 ;\n rc = pubkey_generate ( module -> mod_id , nbits , use_e , list , skey , & factors , & extrainfo ) ;\n gcry_sexp_release ( list ) ;\n list = NULL ;\n if ( rc ) goto leave ;\n {\n char * string , * p ;\n size_t nelem = 0 , nelem_cp = 0 , needed = 0 ;\n gcry_mpi_t mpis [ 30 ] ;\n int percent_s_idx = - 1 ;\n nelem = strlen ( pub_elems ) + strlen ( sec_elems ) ;\n if ( factors ) {\n for ( i = 0 ;\n factors [ i ] ;\n i ++ ) nelem ++ ;\n }\n nelem_cp = nelem ;\n needed += nelem * 10 ;\n needed += 2 * strlen ( algo_name ) + 300 + 5 ;\n if ( nelem > DIM ( mpis ) ) BUG ( ) ;\n nelem = 0 ;\n string = p = gcry_malloc ( needed ) ;\n if ( ! string ) {\n rc = gpg_err_code_from_syserror ( ) ;\n goto leave ;\n }\n p = stpcpy ( p , \"(key-data\" ) ;\n p = stpcpy ( p , \"(public-key(\" ) ;\n p = stpcpy ( p , algo_name ) ;\n for ( i = 0 ;\n pub_elems [ i ] ;\n i ++ ) {\n * p ++ = '(' ;\n * p ++ = pub_elems [ i ] ;\n p = stpcpy ( p , \"%m)\" ) ;\n mpis [ nelem ++ ] = skey [ i ] ;\n }\n if ( extrainfo && ( algo == GCRY_PK_ECDSA || algo == GCRY_PK_ECDH ) ) {\n percent_s_idx = nelem ;\n p = stpcpy ( p , \"%S\" ) ;\n }\n p = stpcpy ( p , \"))\" ) ;\n p = stpcpy ( p , \"(private-key(\" ) ;\n p = stpcpy ( p , algo_name ) ;\n for ( i = 0 ;\n sec_elems [ i ] ;\n i ++ ) {\n * p ++ = '(' ;\n * p ++ = sec_elems [ i ] ;\n p = stpcpy ( p , \"%m)\" ) ;\n mpis [ nelem ++ ] = skey [ i ] ;\n }\n p = stpcpy ( p , \"))\" ) ;\n skey [ i ] = NULL ;\n if ( extrainfo && percent_s_idx == - 1 ) {\n p = stpcpy ( p , \"%S\" ) ;\n }\n else if ( factors && factors [ 0 ] ) {\n p = stpcpy ( p , \"(misc-key-info(pm1-factors\" ) ;\n for ( i = 0 ;\n factors [ i ] ;\n i ++ ) {\n p = stpcpy ( p , \"%m\" ) ;\n mpis [ nelem ++ ] = factors [ i ] ;\n }\n p = stpcpy ( p , \"))\" ) ;\n }\n strcpy ( p , \")\" ) ;\n gcry_assert ( p - string < needed ) ;\n while ( nelem < DIM ( mpis ) ) mpis [ nelem ++ ] = NULL ;\n {\n int elem_n = strlen ( pub_elems ) + strlen ( sec_elems ) ;\n void * * arg_list ;\n arg_list = gcry_calloc ( nelem_cp + 1 , sizeof * arg_list ) ;\n if ( ! arg_list ) {\n rc = gpg_err_code_from_syserror ( ) ;\n goto leave ;\n }\n for ( i = j = 0 ;\n i < elem_n ;\n i ++ ) {\n if ( i == percent_s_idx ) arg_list [ j ++ ] = & extrainfo ;\n arg_list [ j ++ ] = mpis + i ;\n }\n if ( extrainfo && percent_s_idx == - 1 ) arg_list [ j ] = & extrainfo ;\n else if ( factors && factors [ 0 ] ) {\n for ( ;\n i < nelem_cp ;\n i ++ ) arg_list [ j ++ ] = factors + i - elem_n ;\n }\n rc = gcry_sexp_build_array ( r_key , NULL , string , arg_list ) ;\n gcry_free ( arg_list ) ;\n if ( rc ) BUG ( ) ;\n gcry_assert ( DIM ( mpis ) == 30 ) ;\n }\n gcry_free ( string ) ;\n }\n leave : gcry_free ( name ) ;\n gcry_sexp_release ( extrainfo ) ;\n release_mpi_array ( skey ) ;\n if ( factors ) {\n release_mpi_array ( factors ) ;\n gcry_free ( factors ) ;\n }\n gcry_sexp_release ( l3 ) ;\n gcry_sexp_release ( l2 ) ;\n gcry_sexp_release ( list ) ;\n if ( module ) {\n ath_mutex_lock ( & pubkeys_registered_lock ) ;\n _gcry_module_release ( module ) ;\n ath_mutex_unlock ( & pubkeys_registered_lock ) ;\n }\n return gcry_error ( rc ) ;\n }"}
{"idx": 9801, "target": 0, "func": "static double http_parse_qvalue ( const char * & buf , int & len ) {\n double val = 1.0 ;\n if ( * buf != ';\n' ) {\n return val ;\n }\n buf += 1 ;\n len -= 1 ;\n while ( len > 0 && * buf ) {\n http_skip_ws ( buf , len ) ;\n if ( * buf == 'q' ) {\n buf += 1 ;\n len -= 1 ;\n http_skip_ws ( buf , len ) ;\n if ( * buf == '=' ) {\n double n ;\n int f ;\n buf += 1 ;\n len -= 1 ;\n http_skip_ws ( buf , len ) ;\n n = 0.0 ;\n while ( len > 0 && * buf && ParseRules : : is_digit ( * buf ) ) {\n n = ( n * 10 ) + ( * buf ++ - '0' ) ;\n len -= 1 ;\n }\n if ( * buf == '.' ) {\n buf += 1 ;\n len -= 1 ;\n f = 10 ;\n while ( len > 0 && * buf && ParseRules : : is_digit ( * buf ) ) {\n n += ( * buf ++ - '0' ) / ( double ) f ;\n f *= 10 ;\n len -= 1 ;\n }\n }\n val = n ;\n }\n }\n else {\n while ( len > 0 && * buf ) {\n if ( * buf != ';\n' ) {\n buf += 1 ;\n len -= 1 ;\n }\n else {\n buf += 1 ;\n len -= 1 ;\n break ;\n }\n }\n }\n }\n return val ;\n }"}
{"idx": 9802, "target": 0, "func": "static int SpoolssSetPrinterDataEx_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n char * key_name , * value_name ;\n guint32 max_len ;\n proto_item * hidden_item ;\n hidden_item = proto_tree_add_uint ( tree , hf_printerdata , tvb , offset , 0 , 1 ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , NULL , NULL , FALSE , FALSE ) ;\n offset = dissect_ndr_cvstring ( tvb , offset , pinfo , tree , di , drep , sizeof ( guint16 ) , hf_printerdata_key , TRUE , & key_name ) ;\n offset = dissect_ndr_cvstring ( tvb , offset , pinfo , tree , di , drep , sizeof ( guint16 ) , hf_printerdata_value , TRUE , & value_name ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s/%s\" , key_name , value_name ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_printerdata_type , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_setprinterdataex_max_len , & max_len ) ;\n offset = dissect_ndr_uint8s ( tvb , offset , pinfo , tree , di , drep , hf_setprinterdataex_data , max_len , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_setprinterdataex_real_len , NULL ) ;\n return offset ;\n }"}
{"idx": 9803, "target": 0, "func": "static int dissect_job_status ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n guint32 status ;\n static const int * hf_status [ ] = {\n & hf_job_status_user_intervention , & hf_job_status_blocked , & hf_job_status_deleted , & hf_job_status_printed , & hf_job_status_paperout , & hf_job_status_offline , & hf_job_status_printing , & hf_job_status_spooling , & hf_job_status_deleting , & hf_job_status_error , & hf_job_status_paused , NULL }\n ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , NULL , di , drep , - 1 , & status ) ;\n proto_tree_add_bitmask_value_with_flags ( tree , tvb , offset - 4 , hf_job_status , ett_job_status , hf_status , status , BMT_NO_APPEND ) ;\n return offset ;\n }"}
{"idx": 9804, "target": 0, "func": "static LZWInfo * AcquireLZWInfo ( Image * image , const size_t data_size ) {\n LZWInfo * lzw_info ;\n register ssize_t i ;\n size_t one ;\n lzw_info = ( LZWInfo * ) AcquireMagickMemory ( sizeof ( * lzw_info ) ) ;\n if ( lzw_info == ( LZWInfo * ) NULL ) return ( ( LZWInfo * ) NULL ) ;\n ( void ) ResetMagickMemory ( lzw_info , 0 , sizeof ( * lzw_info ) ) ;\n lzw_info -> image = image ;\n lzw_info -> data_size = data_size ;\n one = 1 ;\n lzw_info -> maximum_data_value = ( one << data_size ) - 1 ;\n lzw_info -> clear_code = lzw_info -> maximum_data_value + 1 ;\n lzw_info -> end_code = lzw_info -> maximum_data_value + 2 ;\n lzw_info -> table [ 0 ] = ( size_t * ) AcquireQuantumMemory ( MaximumLZWCode , sizeof ( * * lzw_info -> table ) ) ;\n lzw_info -> table [ 1 ] = ( size_t * ) AcquireQuantumMemory ( MaximumLZWCode , sizeof ( * * lzw_info -> table ) ) ;\n if ( ( lzw_info -> table [ 0 ] == ( size_t * ) NULL ) || ( lzw_info -> table [ 1 ] == ( size_t * ) NULL ) ) {\n lzw_info = RelinquishLZWInfo ( lzw_info ) ;\n return ( ( LZWInfo * ) NULL ) ;\n }\n for ( i = 0 ;\n i <= ( ssize_t ) lzw_info -> maximum_data_value ;\n i ++ ) {\n lzw_info -> table [ 0 ] [ i ] = 0 ;\n lzw_info -> table [ 1 ] [ i ] = ( size_t ) i ;\n }\n ResetLZWInfo ( lzw_info ) ;\n lzw_info -> code_info . buffer [ 0 ] = '\\0' ;\n lzw_info -> code_info . buffer [ 1 ] = '\\0' ;\n lzw_info -> code_info . count = 2 ;\n lzw_info -> code_info . bit = 8 * lzw_info -> code_info . count ;\n lzw_info -> code_info . eof = MagickFalse ;\n lzw_info -> genesis = MagickTrue ;\n lzw_info -> stack = ( LZWStack * ) AcquireMagickMemory ( sizeof ( * lzw_info -> stack ) ) ;\n if ( lzw_info -> stack == ( LZWStack * ) NULL ) {\n lzw_info = RelinquishLZWInfo ( lzw_info ) ;\n return ( ( LZWInfo * ) NULL ) ;\n }\n lzw_info -> stack -> codes = ( size_t * ) AcquireQuantumMemory ( 2UL * MaximumLZWCode , sizeof ( * lzw_info -> stack -> codes ) ) ;\n if ( lzw_info -> stack -> codes == ( size_t * ) NULL ) {\n lzw_info = RelinquishLZWInfo ( lzw_info ) ;\n return ( ( LZWInfo * ) NULL ) ;\n }\n lzw_info -> stack -> index = lzw_info -> stack -> codes ;\n lzw_info -> stack -> top = lzw_info -> stack -> codes + 2 * MaximumLZWCode ;\n return ( lzw_info ) ;\n }"}
{"idx": 9805, "target": 0, "func": "void vp9_idct32x32_34_add_c ( const tran_low_t * input , uint8_t * dest , int stride ) {\n tran_low_t out [ 32 * 32 ] = {\n 0 }\n ;\n tran_low_t * outptr = out ;\n int i , j ;\n tran_low_t temp_in [ 32 ] , temp_out [ 32 ] ;\n for ( i = 0 ;\n i < 8 ;\n ++ i ) {\n idct32 ( input , outptr ) ;\n input += 32 ;\n outptr += 32 ;\n }\n for ( i = 0 ;\n i < 32 ;\n ++ i ) {\n for ( j = 0 ;\n j < 32 ;\n ++ j ) temp_in [ j ] = out [ j * 32 + i ] ;\n idct32 ( temp_in , temp_out ) ;\n for ( j = 0 ;\n j < 32 ;\n ++ j ) dest [ j * stride + i ] = clip_pixel ( ROUND_POWER_OF_TWO ( temp_out [ j ] , 6 ) + dest [ j * stride + i ] ) ;\n }\n }"}
{"idx": 9806, "target": 0, "func": "void * _TIFFrealloc ( void * p , tmsize_t s ) {\n return ( realloc ( p , ( size_t ) s ) ) ;\n }"}
{"idx": 9807, "target": 0, "func": "static inline void SetPixelRedTraits ( Image * image , const PixelTrait traits ) {\n image -> channel_map [ RedPixelChannel ] . traits = traits ;\n }"}
{"idx": 9808, "target": 0, "func": "static void launch_location_list_free ( GList * list ) {\n g_list_foreach ( list , ( GFunc ) launch_location_free , NULL ) ;\n g_list_free ( list ) ;\n }"}
{"idx": 9809, "target": 1, "func": "static void _IMAPFromUnicodeWithOffsets ( UConverterFromUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n UConverter * cnv ;\n const UChar * source , * sourceLimit ;\n uint8_t * target , * targetLimit ;\n int32_t * offsets ;\n int32_t length , targetCapacity , sourceIndex ;\n UChar c ;\n uint8_t b ;\n uint8_t bits ;\n int8_t base64Counter ;\n UBool inDirectMode ;\n cnv = pArgs -> converter ;\n source = pArgs -> source ;\n sourceLimit = pArgs -> sourceLimit ;\n target = ( uint8_t * ) pArgs -> target ;\n targetLimit = ( uint8_t * ) pArgs -> targetLimit ;\n offsets = pArgs -> offsets ;\n {\n uint32_t status = cnv -> fromUnicodeStatus ;\n inDirectMode = ( UBool ) ( ( status >> 24 ) & 1 ) ;\n base64Counter = ( int8_t ) ( status >> 16 ) ;\n bits = ( uint8_t ) status ;\n }\n sourceIndex = 0 ;\n if ( inDirectMode ) {\n directMode : length = ( int32_t ) ( sourceLimit - source ) ;\n targetCapacity = ( int32_t ) ( targetLimit - target ) ;\n if ( length > targetCapacity ) {\n length = targetCapacity ;\n }\n while ( length > 0 ) {\n c = * source ++ ;\n if ( inSetDIMAP ( c ) ) {\n * target ++ = ( uint8_t ) c ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ++ ;\n }\n }\n else if ( c == AMPERSAND ) {\n * target ++ = AMPERSAND ;\n if ( target < targetLimit ) {\n * target ++ = MINUS ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ++ ;\n }\n goto directMode ;\n }\n else {\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ++ ;\n }\n cnv -> charErrorBuffer [ 0 ] = MINUS ;\n cnv -> charErrorBufferLength = 1 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n else {\n -- source ;\n * target ++ = AMPERSAND ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n inDirectMode = FALSE ;\n base64Counter = 0 ;\n goto unicodeMode ;\n }\n -- length ;\n }\n if ( source < sourceLimit && target >= targetLimit ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n else {\n unicodeMode : while ( source < sourceLimit ) {\n if ( target < targetLimit ) {\n c = * source ++ ;\n if ( isLegalIMAP ( c ) ) {\n inDirectMode = TRUE ;\n -- source ;\n if ( base64Counter != 0 ) {\n * target ++ = TO_BASE64_IMAP ( bits ) ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex - 1 ;\n }\n }\n if ( target < targetLimit ) {\n * target ++ = MINUS ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex - 1 ;\n }\n }\n else {\n cnv -> charErrorBuffer [ 0 ] = MINUS ;\n cnv -> charErrorBufferLength = 1 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n goto directMode ;\n }\n else {\n switch ( base64Counter ) {\n case 0 : b = ( uint8_t ) ( c >> 10 ) ;\n * target ++ = TO_BASE64_IMAP ( b ) ;\n if ( target < targetLimit ) {\n b = ( uint8_t ) ( ( c >> 4 ) & 0x3f ) ;\n * target ++ = TO_BASE64_IMAP ( b ) ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ++ ;\n }\n }\n else {\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ++ ;\n }\n b = ( uint8_t ) ( ( c >> 4 ) & 0x3f ) ;\n cnv -> charErrorBuffer [ 0 ] = TO_BASE64_IMAP ( b ) ;\n cnv -> charErrorBufferLength = 1 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n bits = ( uint8_t ) ( ( c & 15 ) << 2 ) ;\n base64Counter = 1 ;\n break ;\n case 1 : b = ( uint8_t ) ( bits | ( c >> 14 ) ) ;\n * target ++ = TO_BASE64_IMAP ( b ) ;\n if ( target < targetLimit ) {\n b = ( uint8_t ) ( ( c >> 8 ) & 0x3f ) ;\n * target ++ = TO_BASE64_IMAP ( b ) ;\n if ( target < targetLimit ) {\n b = ( uint8_t ) ( ( c >> 2 ) & 0x3f ) ;\n * target ++ = TO_BASE64_IMAP ( b ) ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ++ ;\n }\n }\n else {\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ++ ;\n }\n b = ( uint8_t ) ( ( c >> 2 ) & 0x3f ) ;\n cnv -> charErrorBuffer [ 0 ] = TO_BASE64_IMAP ( b ) ;\n cnv -> charErrorBufferLength = 1 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n else {\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ++ ;\n }\n b = ( uint8_t ) ( ( c >> 8 ) & 0x3f ) ;\n cnv -> charErrorBuffer [ 0 ] = TO_BASE64_IMAP ( b ) ;\n b = ( uint8_t ) ( ( c >> 2 ) & 0x3f ) ;\n cnv -> charErrorBuffer [ 1 ] = TO_BASE64_IMAP ( b ) ;\n cnv -> charErrorBufferLength = 2 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n bits = ( uint8_t ) ( ( c & 3 ) << 4 ) ;\n base64Counter = 2 ;\n break ;\n case 2 : b = ( uint8_t ) ( bits | ( c >> 12 ) ) ;\n * target ++ = TO_BASE64_IMAP ( b ) ;\n if ( target < targetLimit ) {\n b = ( uint8_t ) ( ( c >> 6 ) & 0x3f ) ;\n * target ++ = TO_BASE64_IMAP ( b ) ;\n if ( target < targetLimit ) {\n b = ( uint8_t ) ( c & 0x3f ) ;\n * target ++ = TO_BASE64_IMAP ( b ) ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ++ ;\n }\n }\n else {\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ++ ;\n }\n b = ( uint8_t ) ( c & 0x3f ) ;\n cnv -> charErrorBuffer [ 0 ] = TO_BASE64_IMAP ( b ) ;\n cnv -> charErrorBufferLength = 1 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n else {\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ++ ;\n }\n b = ( uint8_t ) ( ( c >> 6 ) & 0x3f ) ;\n cnv -> charErrorBuffer [ 0 ] = TO_BASE64_IMAP ( b ) ;\n b = ( uint8_t ) ( c & 0x3f ) ;\n cnv -> charErrorBuffer [ 1 ] = TO_BASE64_IMAP ( b ) ;\n cnv -> charErrorBufferLength = 2 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n bits = 0 ;\n base64Counter = 0 ;\n break ;\n default : break ;\n }\n }\n }\n else {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n }\n if ( pArgs -> flush && source >= sourceLimit ) {\n if ( ! inDirectMode ) {\n if ( base64Counter != 0 ) {\n if ( target < targetLimit ) {\n * target ++ = TO_BASE64_IMAP ( bits ) ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex - 1 ;\n }\n }\n else {\n cnv -> charErrorBuffer [ cnv -> charErrorBufferLength ++ ] = TO_BASE64_IMAP ( bits ) ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n if ( target < targetLimit ) {\n * target ++ = MINUS ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex - 1 ;\n }\n }\n else {\n cnv -> charErrorBuffer [ cnv -> charErrorBufferLength ++ ] = MINUS ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n cnv -> fromUnicodeStatus = ( cnv -> fromUnicodeStatus & 0xf0000000 ) | 0x1000000 ;\n }\n else {\n cnv -> fromUnicodeStatus = ( cnv -> fromUnicodeStatus & 0xf0000000 ) | ( ( uint32_t ) inDirectMode << 24 ) | ( ( uint32_t ) base64Counter << 16 ) | ( uint32_t ) bits ;\n }\n pArgs -> source = source ;\n pArgs -> target = ( char * ) target ;\n pArgs -> offsets = offsets ;\n return ;\n }"}
{"idx": 9810, "target": 0, "func": "void bn_sqr_comba8 ( BN_ULONG * r , const BN_ULONG * a ) {\n BN_ULONG t [ 16 ] ;\n bn_sqr_normal ( r , a , 8 , t ) ;\n }"}
{"idx": 9811, "target": 0, "func": "static void Type_ViewingConditions_Free ( struct _cms_typehandler_struct * self , void * Ptr ) {\n _cmsFree ( self -> ContextID , Ptr ) ;\n }"}
{"idx": 9812, "target": 1, "func": "static void iadst16 ( const int16_t * input , int16_t * output ) {\n int s0 , s1 , s2 , s3 , s4 , s5 , s6 , s7 , s8 , s9 , s10 , s11 , s12 , s13 , s14 , s15 ;\n int x0 = input [ 15 ] ;\n int x1 = input [ 0 ] ;\n int x2 = input [ 13 ] ;\n int x3 = input [ 2 ] ;\n int x4 = input [ 11 ] ;\n int x5 = input [ 4 ] ;\n int x6 = input [ 9 ] ;\n int x7 = input [ 6 ] ;\n int x8 = input [ 7 ] ;\n int x9 = input [ 8 ] ;\n int x10 = input [ 5 ] ;\n int x11 = input [ 10 ] ;\n int x12 = input [ 3 ] ;\n int x13 = input [ 12 ] ;\n int x14 = input [ 1 ] ;\n int x15 = input [ 14 ] ;\n if ( ! ( x0 | x1 | x2 | x3 | x4 | x5 | x6 | x7 | x8 | x9 | x10 | x11 | x12 | x13 | x14 | x15 ) ) {\n output [ 0 ] = output [ 1 ] = output [ 2 ] = output [ 3 ] = output [ 4 ] = output [ 5 ] = output [ 6 ] = output [ 7 ] = output [ 8 ] = output [ 9 ] = output [ 10 ] = output [ 11 ] = output [ 12 ] = output [ 13 ] = output [ 14 ] = output [ 15 ] = 0 ;\n return ;\n }\n s0 = x0 * cospi_1_64 + x1 * cospi_31_64 ;\n s1 = x0 * cospi_31_64 - x1 * cospi_1_64 ;\n s2 = x2 * cospi_5_64 + x3 * cospi_27_64 ;\n s3 = x2 * cospi_27_64 - x3 * cospi_5_64 ;\n s4 = x4 * cospi_9_64 + x5 * cospi_23_64 ;\n s5 = x4 * cospi_23_64 - x5 * cospi_9_64 ;\n s6 = x6 * cospi_13_64 + x7 * cospi_19_64 ;\n s7 = x6 * cospi_19_64 - x7 * cospi_13_64 ;\n s8 = x8 * cospi_17_64 + x9 * cospi_15_64 ;\n s9 = x8 * cospi_15_64 - x9 * cospi_17_64 ;\n s10 = x10 * cospi_21_64 + x11 * cospi_11_64 ;\n s11 = x10 * cospi_11_64 - x11 * cospi_21_64 ;\n s12 = x12 * cospi_25_64 + x13 * cospi_7_64 ;\n s13 = x12 * cospi_7_64 - x13 * cospi_25_64 ;\n s14 = x14 * cospi_29_64 + x15 * cospi_3_64 ;\n s15 = x14 * cospi_3_64 - x15 * cospi_29_64 ;\n x0 = dct_const_round_shift ( s0 + s8 ) ;\n x1 = dct_const_round_shift ( s1 + s9 ) ;\n x2 = dct_const_round_shift ( s2 + s10 ) ;\n x3 = dct_const_round_shift ( s3 + s11 ) ;\n x4 = dct_const_round_shift ( s4 + s12 ) ;\n x5 = dct_const_round_shift ( s5 + s13 ) ;\n x6 = dct_const_round_shift ( s6 + s14 ) ;\n x7 = dct_const_round_shift ( s7 + s15 ) ;\n x8 = dct_const_round_shift ( s0 - s8 ) ;\n x9 = dct_const_round_shift ( s1 - s9 ) ;\n x10 = dct_const_round_shift ( s2 - s10 ) ;\n x11 = dct_const_round_shift ( s3 - s11 ) ;\n x12 = dct_const_round_shift ( s4 - s12 ) ;\n x13 = dct_const_round_shift ( s5 - s13 ) ;\n x14 = dct_const_round_shift ( s6 - s14 ) ;\n x15 = dct_const_round_shift ( s7 - s15 ) ;\n s0 = x0 ;\n s1 = x1 ;\n s2 = x2 ;\n s3 = x3 ;\n s4 = x4 ;\n s5 = x5 ;\n s6 = x6 ;\n s7 = x7 ;\n s8 = x8 * cospi_4_64 + x9 * cospi_28_64 ;\n s9 = x8 * cospi_28_64 - x9 * cospi_4_64 ;\n s10 = x10 * cospi_20_64 + x11 * cospi_12_64 ;\n s11 = x10 * cospi_12_64 - x11 * cospi_20_64 ;\n s12 = - x12 * cospi_28_64 + x13 * cospi_4_64 ;\n s13 = x12 * cospi_4_64 + x13 * cospi_28_64 ;\n s14 = - x14 * cospi_12_64 + x15 * cospi_20_64 ;\n s15 = x14 * cospi_20_64 + x15 * cospi_12_64 ;\n x0 = s0 + s4 ;\n x1 = s1 + s5 ;\n x2 = s2 + s6 ;\n x3 = s3 + s7 ;\n x4 = s0 - s4 ;\n x5 = s1 - s5 ;\n x6 = s2 - s6 ;\n x7 = s3 - s7 ;\n x8 = dct_const_round_shift ( s8 + s12 ) ;\n x9 = dct_const_round_shift ( s9 + s13 ) ;\n x10 = dct_const_round_shift ( s10 + s14 ) ;\n x11 = dct_const_round_shift ( s11 + s15 ) ;\n x12 = dct_const_round_shift ( s8 - s12 ) ;\n x13 = dct_const_round_shift ( s9 - s13 ) ;\n x14 = dct_const_round_shift ( s10 - s14 ) ;\n x15 = dct_const_round_shift ( s11 - s15 ) ;\n s0 = x0 ;\n s1 = x1 ;\n s2 = x2 ;\n s3 = x3 ;\n s4 = x4 * cospi_8_64 + x5 * cospi_24_64 ;\n s5 = x4 * cospi_24_64 - x5 * cospi_8_64 ;\n s6 = - x6 * cospi_24_64 + x7 * cospi_8_64 ;\n s7 = x6 * cospi_8_64 + x7 * cospi_24_64 ;\n s8 = x8 ;\n s9 = x9 ;\n s10 = x10 ;\n s11 = x11 ;\n s12 = x12 * cospi_8_64 + x13 * cospi_24_64 ;\n s13 = x12 * cospi_24_64 - x13 * cospi_8_64 ;\n s14 = - x14 * cospi_24_64 + x15 * cospi_8_64 ;\n s15 = x14 * cospi_8_64 + x15 * cospi_24_64 ;\n x0 = s0 + s2 ;\n x1 = s1 + s3 ;\n x2 = s0 - s2 ;\n x3 = s1 - s3 ;\n x4 = dct_const_round_shift ( s4 + s6 ) ;\n x5 = dct_const_round_shift ( s5 + s7 ) ;\n x6 = dct_const_round_shift ( s4 - s6 ) ;\n x7 = dct_const_round_shift ( s5 - s7 ) ;\n x8 = s8 + s10 ;\n x9 = s9 + s11 ;\n x10 = s8 - s10 ;\n x11 = s9 - s11 ;\n x12 = dct_const_round_shift ( s12 + s14 ) ;\n x13 = dct_const_round_shift ( s13 + s15 ) ;\n x14 = dct_const_round_shift ( s12 - s14 ) ;\n x15 = dct_const_round_shift ( s13 - s15 ) ;\n s2 = ( - cospi_16_64 ) * ( x2 + x3 ) ;\n s3 = cospi_16_64 * ( x2 - x3 ) ;\n s6 = cospi_16_64 * ( x6 + x7 ) ;\n s7 = cospi_16_64 * ( - x6 + x7 ) ;\n s10 = cospi_16_64 * ( x10 + x11 ) ;\n s11 = cospi_16_64 * ( - x10 + x11 ) ;\n s14 = ( - cospi_16_64 ) * ( x14 + x15 ) ;\n s15 = cospi_16_64 * ( x14 - x15 ) ;\n x2 = dct_const_round_shift ( s2 ) ;\n x3 = dct_const_round_shift ( s3 ) ;\n x6 = dct_const_round_shift ( s6 ) ;\n x7 = dct_const_round_shift ( s7 ) ;\n x10 = dct_const_round_shift ( s10 ) ;\n x11 = dct_const_round_shift ( s11 ) ;\n x14 = dct_const_round_shift ( s14 ) ;\n x15 = dct_const_round_shift ( s15 ) ;\n output [ 0 ] = x0 ;\n output [ 1 ] = - x8 ;\n output [ 2 ] = x12 ;\n output [ 3 ] = - x4 ;\n output [ 4 ] = x6 ;\n output [ 5 ] = x14 ;\n output [ 6 ] = x10 ;\n output [ 7 ] = x2 ;\n output [ 8 ] = x3 ;\n output [ 9 ] = x11 ;\n output [ 10 ] = x15 ;\n output [ 11 ] = x7 ;\n output [ 12 ] = x5 ;\n output [ 13 ] = - x13 ;\n output [ 14 ] = x9 ;\n output [ 15 ] = - x1 ;\n }"}
{"idx": 9813, "target": 0, "func": "static int dissect_h245_INTEGER_1_65536 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 65536U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 9814, "target": 0, "func": "static void print_field_types ( MYSQL_RES * result ) {\n MYSQL_FIELD * field ;\n uint i = 0 ;\n while ( ( field = mysql_fetch_field ( result ) ) ) {\n tee_fprintf ( PAGER , \"Field %3u: `%s`\\n\" \"Catalog: `%s`\\n\" \"Database: `%s`\\n\" \"Table: `%s`\\n\" \"Org_table: `%s`\\n\" \"Type: %s\\n\" \"Collation: %s (%u)\\n\" \"Length: %lu\\n\" \"Max_length: %lu\\n\" \"Decimals: %u\\n\" \"Flags: %s\\n\\n\" , ++ i , field -> name , field -> catalog , field -> db , field -> table , field -> org_table , fieldtype2str ( field -> type ) , get_charset_name ( field -> charsetnr ) , field -> charsetnr , field -> length , field -> max_length , field -> decimals , fieldflags2str ( field -> flags ) ) ;\n }\n tee_puts ( \"\" , PAGER ) ;\n }"}
{"idx": 9815, "target": 0, "func": "static int kex_method_diffie_hellman_group_exchange_sha1_key_exchange ( LIBSSH2_SESSION * session , key_exchange_state_low_t * key_state ) {\n unsigned long p_len , g_len ;\n int ret = 0 ;\n int rc ;\n if ( key_state -> state == libssh2_NB_state_idle ) {\n key_state -> p = _libssh2_bn_init_from_bin ( ) ;\n key_state -> g = _libssh2_bn_init_from_bin ( ) ;\n # ifdef LIBSSH2_DH_GEX_NEW key_state -> request [ 0 ] = SSH_MSG_KEX_DH_GEX_REQUEST ;\n _libssh2_htonu32 ( key_state -> request + 1 , LIBSSH2_DH_GEX_MINGROUP ) ;\n _libssh2_htonu32 ( key_state -> request + 5 , LIBSSH2_DH_GEX_OPTGROUP ) ;\n _libssh2_htonu32 ( key_state -> request + 9 , LIBSSH2_DH_GEX_MAXGROUP ) ;\n key_state -> request_len = 13 ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Initiating Diffie-Hellman Group-Exchange (New Method)\" ) ;\n # else key_state -> request [ 0 ] = SSH_MSG_KEX_DH_GEX_REQUEST_OLD ;\n _libssh2_htonu32 ( key_state -> request + 1 , LIBSSH2_DH_GEX_OPTGROUP ) ;\n key_state -> request_len = 5 ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Initiating Diffie-Hellman Group-Exchange (Old Method)\" ) ;\n # endif key_state -> state = libssh2_NB_state_created ;\n }\n if ( key_state -> state == libssh2_NB_state_created ) {\n rc = _libssh2_transport_send ( session , key_state -> request , key_state -> request_len , NULL , 0 ) ;\n if ( rc == LIBSSH2_ERROR_EAGAIN ) {\n return rc ;\n }\n else if ( rc ) {\n ret = _libssh2_error ( session , rc , \"Unable to send Group Exchange Request\" ) ;\n goto dh_gex_clean_exit ;\n }\n key_state -> state = libssh2_NB_state_sent ;\n }\n if ( key_state -> state == libssh2_NB_state_sent ) {\n rc = _libssh2_packet_require ( session , SSH_MSG_KEX_DH_GEX_GROUP , & key_state -> data , & key_state -> data_len , 0 , NULL , 0 , & key_state -> req_state ) ;\n if ( rc == LIBSSH2_ERROR_EAGAIN ) {\n return rc ;\n }\n else if ( rc ) {\n ret = _libssh2_error ( session , rc , \"Timeout waiting for GEX_GROUP reply\" ) ;\n goto dh_gex_clean_exit ;\n }\n key_state -> state = libssh2_NB_state_sent1 ;\n }\n if ( key_state -> state == libssh2_NB_state_sent1 ) {\n unsigned char * s = key_state -> data + 1 ;\n p_len = _libssh2_ntohu32 ( s ) ;\n s += 4 ;\n _libssh2_bn_from_bin ( key_state -> p , p_len , s ) ;\n s += p_len ;\n g_len = _libssh2_ntohu32 ( s ) ;\n s += 4 ;\n _libssh2_bn_from_bin ( key_state -> g , g_len , s ) ;\n ret = diffie_hellman_sha1 ( session , key_state -> g , key_state -> p , p_len , SSH_MSG_KEX_DH_GEX_INIT , SSH_MSG_KEX_DH_GEX_REPLY , key_state -> data + 1 , key_state -> data_len - 1 , & key_state -> exchange_state ) ;\n if ( ret == LIBSSH2_ERROR_EAGAIN ) {\n return ret ;\n }\n LIBSSH2_FREE ( session , key_state -> data ) ;\n }\n dh_gex_clean_exit : key_state -> state = libssh2_NB_state_idle ;\n _libssh2_bn_free ( key_state -> g ) ;\n key_state -> g = NULL ;\n _libssh2_bn_free ( key_state -> p ) ;\n key_state -> p = NULL ;\n return ret ;\n }"}
{"idx": 9816, "target": 0, "func": "TSReturnCode TSHttpTxnClientReqGet ( TSHttpTxn txnp , TSMBuffer * bufp , TSMLoc * obj ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) obj ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n HTTPHdr * hptr = & ( sm -> t_state . hdr_info . client_request ) ;\n if ( hptr -> valid ( ) ) {\n * ( reinterpret_cast < HTTPHdr * * > ( bufp ) ) = hptr ;\n * obj = reinterpret_cast < TSMLoc > ( hptr -> m_http ) ;\n if ( sdk_sanity_check_mbuffer ( * bufp ) == TS_SUCCESS ) {\n hptr -> mark_target_dirty ( ) ;\n return TS_SUCCESS ;\n ;\n }\n }\n return TS_ERROR ;\n }"}
{"idx": 9817, "target": 0, "func": "static void vvalue_strbuf_append_r8 ( wmem_strbuf_t * strbuf , void * ptr ) {\n double r8 = * ( double * ) ptr ;\n wmem_strbuf_append_printf ( strbuf , \"%g\" , r8 ) ;\n }"}
{"idx": 9818, "target": 0, "func": "static void debug_check_frame_counts ( const VP9_COMMON * const cm ) {\n FRAME_COUNTS zero_counts ;\n vp9_zero ( zero_counts ) ;\n assert ( cm -> frame_parallel_decoding_mode || cm -> error_resilient_mode ) ;\n assert ( ! memcmp ( cm -> counts . y_mode , zero_counts . y_mode , sizeof ( cm -> counts . y_mode ) ) ) ;\n assert ( ! memcmp ( cm -> counts . uv_mode , zero_counts . uv_mode , sizeof ( cm -> counts . uv_mode ) ) ) ;\n assert ( ! memcmp ( cm -> counts . partition , zero_counts . partition , sizeof ( cm -> counts . partition ) ) ) ;\n assert ( ! memcmp ( cm -> counts . coef , zero_counts . coef , sizeof ( cm -> counts . coef ) ) ) ;\n assert ( ! memcmp ( cm -> counts . eob_branch , zero_counts . eob_branch , sizeof ( cm -> counts . eob_branch ) ) ) ;\n assert ( ! memcmp ( cm -> counts . switchable_interp , zero_counts . switchable_interp , sizeof ( cm -> counts . switchable_interp ) ) ) ;\n assert ( ! memcmp ( cm -> counts . inter_mode , zero_counts . inter_mode , sizeof ( cm -> counts . inter_mode ) ) ) ;\n assert ( ! memcmp ( cm -> counts . intra_inter , zero_counts . intra_inter , sizeof ( cm -> counts . intra_inter ) ) ) ;\n assert ( ! memcmp ( cm -> counts . comp_inter , zero_counts . comp_inter , sizeof ( cm -> counts . comp_inter ) ) ) ;\n assert ( ! memcmp ( cm -> counts . single_ref , zero_counts . single_ref , sizeof ( cm -> counts . single_ref ) ) ) ;\n assert ( ! memcmp ( cm -> counts . comp_ref , zero_counts . comp_ref , sizeof ( cm -> counts . comp_ref ) ) ) ;\n assert ( ! memcmp ( & cm -> counts . tx , & zero_counts . tx , sizeof ( cm -> counts . tx ) ) ) ;\n assert ( ! memcmp ( cm -> counts . skip , zero_counts . skip , sizeof ( cm -> counts . skip ) ) ) ;\n assert ( ! memcmp ( & cm -> counts . mv , & zero_counts . mv , sizeof ( cm -> counts . mv ) ) ) ;\n }"}
{"idx": 9819, "target": 0, "func": "static int ff_estimate_motion_b ( MpegEncContext * s , int mb_x , int mb_y , int16_t ( * mv_table ) [ 2 ] , int ref_index , int f_code ) {\n MotionEstContext * const c = & s -> me ;\n int mx , my , dmin ;\n int P [ 10 ] [ 2 ] ;\n const int shift = 1 + s -> quarter_sample ;\n const int mot_stride = s -> mb_stride ;\n const int mot_xy = mb_y * mot_stride + mb_x ;\n uint8_t * const mv_penalty = c -> mv_penalty [ f_code ] + MAX_MV ;\n int mv_scale ;\n c -> penalty_factor = get_penalty_factor ( s -> lambda , s -> lambda2 , c -> avctx -> me_cmp ) ;\n c -> sub_penalty_factor = get_penalty_factor ( s -> lambda , s -> lambda2 , c -> avctx -> me_sub_cmp ) ;\n c -> mb_penalty_factor = get_penalty_factor ( s -> lambda , s -> lambda2 , c -> avctx -> mb_cmp ) ;\n c -> current_mv_penalty = mv_penalty ;\n get_limits ( s , 16 * mb_x , 16 * mb_y ) ;\n switch ( s -> me_method ) {\n case ME_ZERO : default : mx = 0 ;\n my = 0 ;\n dmin = 0 ;\n break ;\n case ME_X1 : case ME_EPZS : P_LEFT [ 0 ] = mv_table [ mot_xy - 1 ] [ 0 ] ;\n P_LEFT [ 1 ] = mv_table [ mot_xy - 1 ] [ 1 ] ;\n if ( P_LEFT [ 0 ] > ( c -> xmax << shift ) ) P_LEFT [ 0 ] = ( c -> xmax << shift ) ;\n if ( ! s -> first_slice_line ) {\n P_TOP [ 0 ] = mv_table [ mot_xy - mot_stride ] [ 0 ] ;\n P_TOP [ 1 ] = mv_table [ mot_xy - mot_stride ] [ 1 ] ;\n P_TOPRIGHT [ 0 ] = mv_table [ mot_xy - mot_stride + 1 ] [ 0 ] ;\n P_TOPRIGHT [ 1 ] = mv_table [ mot_xy - mot_stride + 1 ] [ 1 ] ;\n if ( P_TOP [ 1 ] > ( c -> ymax << shift ) ) P_TOP [ 1 ] = ( c -> ymax << shift ) ;\n if ( P_TOPRIGHT [ 0 ] < ( c -> xmin << shift ) ) P_TOPRIGHT [ 0 ] = ( c -> xmin << shift ) ;\n if ( P_TOPRIGHT [ 1 ] > ( c -> ymax << shift ) ) P_TOPRIGHT [ 1 ] = ( c -> ymax << shift ) ;\n P_MEDIAN [ 0 ] = mid_pred ( P_LEFT [ 0 ] , P_TOP [ 0 ] , P_TOPRIGHT [ 0 ] ) ;\n P_MEDIAN [ 1 ] = mid_pred ( P_LEFT [ 1 ] , P_TOP [ 1 ] , P_TOPRIGHT [ 1 ] ) ;\n }\n c -> pred_x = P_LEFT [ 0 ] ;\n c -> pred_y = P_LEFT [ 1 ] ;\n if ( mv_table == s -> b_forw_mv_table ) {\n mv_scale = ( s -> pb_time << 16 ) / ( s -> pp_time << shift ) ;\n }\n else {\n mv_scale = ( ( s -> pb_time - s -> pp_time ) << 16 ) / ( s -> pp_time << shift ) ;\n }\n dmin = ff_epzs_motion_search ( s , & mx , & my , P , 0 , ref_index , s -> p_mv_table , mv_scale , 0 , 16 ) ;\n break ;\n }\n dmin = c -> sub_motion_search ( s , & mx , & my , dmin , 0 , ref_index , 0 , 16 ) ;\n if ( c -> avctx -> me_sub_cmp != c -> avctx -> mb_cmp && ! c -> skip ) dmin = get_mb_score ( s , mx , my , 0 , ref_index , 0 , 16 , 1 ) ;\n mv_table [ mot_xy ] [ 0 ] = mx ;\n mv_table [ mot_xy ] [ 1 ] = my ;\n return dmin ;\n }"}
{"idx": 9820, "target": 0, "func": "static int zmbv_decode_xor_8 ( ZmbvContext * c ) {\n uint8_t * src = c -> decomp_buf ;\n uint8_t * output , * prev ;\n int8_t * mvec ;\n int x , y ;\n int d , dx , dy , bw2 , bh2 ;\n int block ;\n int i , j ;\n int mx , my ;\n output = c -> cur ;\n prev = c -> prev ;\n if ( c -> flags & ZMBV_DELTAPAL ) {\n for ( i = 0 ;\n i < 768 ;\n i ++ ) c -> pal [ i ] ^= * src ++ ;\n }\n mvec = ( int8_t * ) src ;\n src += ( ( c -> bx * c -> by * 2 + 3 ) & ~ 3 ) ;\n block = 0 ;\n for ( y = 0 ;\n y < c -> height ;\n y += c -> bh ) {\n bh2 = ( ( c -> height - y ) > c -> bh ) ? c -> bh : ( c -> height - y ) ;\n for ( x = 0 ;\n x < c -> width ;\n x += c -> bw ) {\n uint8_t * out , * tprev ;\n d = mvec [ block ] & 1 ;\n dx = mvec [ block ] >> 1 ;\n dy = mvec [ block + 1 ] >> 1 ;\n block += 2 ;\n bw2 = ( ( c -> width - x ) > c -> bw ) ? c -> bw : ( c -> width - x ) ;\n out = output + x ;\n tprev = prev + x + dx + dy * c -> width ;\n mx = x + dx ;\n my = y + dy ;\n for ( j = 0 ;\n j < bh2 ;\n j ++ ) {\n if ( my + j < 0 || my + j >= c -> height ) {\n memset ( out , 0 , bw2 ) ;\n }\n else {\n for ( i = 0 ;\n i < bw2 ;\n i ++ ) {\n if ( mx + i < 0 || mx + i >= c -> width ) out [ i ] = 0 ;\n else out [ i ] = tprev [ i ] ;\n }\n }\n out += c -> width ;\n tprev += c -> width ;\n }\n if ( d ) {\n out = output + x ;\n for ( j = 0 ;\n j < bh2 ;\n j ++ ) {\n for ( i = 0 ;\n i < bw2 ;\n i ++ ) out [ i ] ^= * src ++ ;\n out += c -> width ;\n }\n }\n }\n output += c -> width * c -> bh ;\n prev += c -> width * c -> bh ;\n }\n if ( src - c -> decomp_buf != c -> decomp_len ) av_log ( c -> avctx , AV_LOG_ERROR , \"Used %ti of %i bytes\\n\" , src - c -> decomp_buf , c -> decomp_len ) ;\n return 0 ;\n }"}
{"idx": 9821, "target": 0, "func": "void simplestring_clear ( simplestring * string ) {\n if ( string -> str ) {\n string -> str [ 0 ] = 0 ;\n }\n string -> len = 0 ;\n }"}
{"idx": 9822, "target": 0, "func": "DEFINE_TEST ( test_read_format_mtree_nonexistent_contents_file ) {\n static char archive [ ] = \"#mtree\\n\" \"a type=file contents=nonexistent_file\\n\" ;\n struct archive_entry * ae ;\n struct archive * a ;\n assert ( ( a = archive_read_new ( ) ) != NULL ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_support_filter_all ( a ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_support_format_all ( a ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_set_options ( a , \"mtree:checkfs\" ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_open_memory ( a , archive , sizeof ( archive ) ) ) ;\n assertEqualIntA ( a , ARCHIVE_WARN , archive_read_next_header ( a , & ae ) ) ;\n assert ( strlen ( archive_error_string ( a ) ) > 0 ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"a\" ) ;\n assertEqualInt ( archive_entry_filetype ( ae ) , AE_IFREG ) ;\n assertEqualIntA ( a , ARCHIVE_EOF , archive_read_next_header ( a , & ae ) ) ;\n assertEqualInt ( 1 , archive_file_count ( a ) ) ;\n assertEqualInt ( ARCHIVE_OK , archive_read_close ( a ) ) ;\n assertEqualInt ( ARCHIVE_OK , archive_read_free ( a ) ) ;\n }"}
{"idx": 9823, "target": 0, "func": "static const char * U_CALLCONV _SCSUGetName ( const UConverter * cnv ) {\n SCSUData * scsu = ( SCSUData * ) cnv -> extraInfo ;\n switch ( scsu -> locale ) {\n case l_ja : return \"SCSU,locale=ja\" ;\n default : return \"SCSU\" ;\n }\n }"}
{"idx": 9824, "target": 0, "func": "static void dissect_rtp_hext_rfc5215_twobytes ( tvbuff_t * parent_tvb , guint id_offset , guint8 id , tvbuff_t * tvb , packet_info * pinfo , proto_tree * rtp_hext_tree ) {\n proto_item * ti = NULL ;\n proto_tree * rtp_hext_rfc5285_tree = NULL ;\n guint ext_offset = 0 , start_ext_offset ;\n while ( ext_offset + 2 < tvb_length ( tvb ) ) {\n guint8 ext_id ;\n guint8 ext_length ;\n tvbuff_t * subtvb = NULL ;\n start_ext_offset = ext_offset ;\n while ( tvb_get_guint8 ( tvb , ext_offset ) == 0 ) {\n if ( ext_offset + 2 >= tvb_length ( tvb ) ) return ;\n ext_offset ++ ;\n }\n if ( ext_offset > start_ext_offset ) proto_tree_add_item ( rtp_hext_tree , hf_rtp_padding_data , tvb , ext_offset , ext_offset - start_ext_offset , ENC_NA ) ;\n ext_id = tvb_get_guint8 ( tvb , ext_offset ) ;\n ext_length = tvb_get_guint8 ( tvb , ext_offset + 1 ) ;\n if ( rtp_hext_tree ) {\n ti = proto_tree_add_text ( rtp_hext_tree , tvb , ext_offset , ext_length + 2 , \"RFC 5285 Header Extension (Two-Byte Header)\" ) ;\n rtp_hext_rfc5285_tree = proto_item_add_subtree ( ti , ett_hdr_ext_rfc5285 ) ;\n proto_tree_add_uint ( rtp_hext_rfc5285_tree , hf_rtp_ext_rfc5285_appbits , parent_tvb , id_offset + 1 , 1 , id & 0x000F ) ;\n proto_tree_add_uint ( rtp_hext_rfc5285_tree , hf_rtp_ext_rfc5285_id , tvb , ext_offset , 1 , ext_id ) ;\n proto_tree_add_uint ( rtp_hext_rfc5285_tree , hf_rtp_ext_rfc5285_length , tvb , ext_offset + 1 , 1 , ext_length ) ;\n }\n ext_offset += 2 ;\n subtvb = tvb_new_subset ( tvb , ext_offset , ext_length , ext_length ) ;\n if ( ext_length && ! dissector_try_uint ( rtp_hdr_ext_rfc5285_dissector_table , ext_id , subtvb , pinfo , rtp_hext_rfc5285_tree ) ) {\n proto_tree_add_item ( rtp_hext_rfc5285_tree , hf_rtp_ext_rfc5285_data , subtvb , 0 , ext_length , ENC_NA ) ;\n }\n ext_offset += ext_length ;\n }\n }"}
{"idx": 9825, "target": 0, "func": "static int dissect_h245_MediaEncryptionAlgorithm ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_MediaEncryptionAlgorithm , MediaEncryptionAlgorithm_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 9826, "target": 0, "func": "static inline int ohci_read_td ( OHCIState * ohci , dma_addr_t addr , struct ohci_td * td ) {\n return get_dwords ( ohci , addr , ( uint32_t * ) td , sizeof ( * td ) >> 2 ) ;\n }"}
{"idx": 9827, "target": 0, "func": "static gboolean fat_str_replace ( char * str , char replacement ) {\n gboolean success ;\n int i ;\n success = FALSE ;\n for ( i = 0 ;\n str [ i ] != '\\0' ;\n i ++ ) {\n if ( strchr ( FAT_FORBIDDEN_CHARACTERS , str [ i ] ) || str [ i ] < 32 ) {\n success = TRUE ;\n str [ i ] = replacement ;\n }\n }\n return success ;\n }"}
{"idx": 9828, "target": 0, "func": "void vp9_vaq_frame_setup ( VP9_COMP * cpi ) {\n VP9_COMMON * cm = & cpi -> common ;\n struct segmentation * seg = & cm -> seg ;\n const double base_q = vp9_convert_qindex_to_q ( cm -> base_qindex , cm -> bit_depth ) ;\n const int base_rdmult = vp9_compute_rd_mult ( cpi , cm -> base_qindex + cm -> y_dc_delta_q ) ;\n int i ;\n if ( cm -> frame_type == KEY_FRAME || cpi -> refresh_alt_ref_frame || ( cpi -> refresh_golden_frame && ! cpi -> rc . is_src_frame_alt_ref ) ) {\n vp9_enable_segmentation ( seg ) ;\n vp9_clearall_segfeatures ( seg ) ;\n seg -> abs_delta = SEGMENT_DELTADATA ;\n vp9_clear_system_state ( ) ;\n for ( i = ENERGY_MIN ;\n i <= ENERGY_MAX ;\n i ++ ) {\n int qindex_delta , segment_rdmult ;\n if ( Q_RATIO ( i ) == 1 ) {\n RDMULT_RATIO ( i ) = 1 ;\n continue ;\n }\n qindex_delta = vp9_compute_qdelta ( & cpi -> rc , base_q , base_q * Q_RATIO ( i ) , cm -> bit_depth ) ;\n vp9_set_segdata ( seg , SEGMENT_ID ( i ) , SEG_LVL_ALT_Q , qindex_delta ) ;\n vp9_enable_segfeature ( seg , SEGMENT_ID ( i ) , SEG_LVL_ALT_Q ) ;\n segment_rdmult = vp9_compute_rd_mult ( cpi , cm -> base_qindex + qindex_delta + cm -> y_dc_delta_q ) ;\n RDMULT_RATIO ( i ) = ( double ) segment_rdmult / base_rdmult ;\n }\n }\n }"}
{"idx": 9829, "target": 0, "func": "static void U_CALLCONV _LMBCSOpen ## n ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err ) \\ {\n _LMBCSOpenWorker ( _this , pArgs , err , n ) ;\n }\n static void _LMBCSOpenWorker ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err , ulmbcs_byte_t OptGroup ) {\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) uprv_malloc ( sizeof ( UConverterDataLMBCS ) ) ;\n _this -> extraInfo = extraInfo ;\n if ( extraInfo != NULL ) {\n UConverterNamePieces stackPieces ;\n UConverterLoadArgs stackArgs = UCNV_LOAD_ARGS_INITIALIZER ;\n ulmbcs_byte_t i ;\n uprv_memset ( extraInfo , 0 , sizeof ( UConverterDataLMBCS ) ) ;\n stackArgs . onlyTestIsLoadable = pArgs -> onlyTestIsLoadable ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST && U_SUCCESS ( * err ) ;\n i ++ ) {\n if ( OptGroupByteToCPName [ i ] != NULL ) {\n extraInfo -> OptGrpConverter [ i ] = ucnv_loadSharedData ( OptGroupByteToCPName [ i ] , & stackPieces , & stackArgs , err ) ;\n }\n }\n if ( U_FAILURE ( * err ) || pArgs -> onlyTestIsLoadable ) {\n _LMBCSClose ( _this ) ;\n return ;\n }\n extraInfo -> OptGroup = OptGroup ;\n extraInfo -> localeConverterIndex = FindLMBCSLocale ( pArgs -> locale ) ;\n }\n else {\n * err = U_MEMORY_ALLOCATION_ERROR ;\n }\n }\n U_CDECL_BEGIN static void U_CALLCONV _LMBCSClose ( UConverter * _this ) {\n if ( _this -> extraInfo != NULL ) {\n ulmbcs_byte_t Ix ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) _this -> extraInfo ;\n for ( Ix = 0 ;\n Ix <= ULMBCS_GRP_LAST ;\n Ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ Ix ] != NULL ) ucnv_unloadSharedDataIfReady ( extraInfo -> OptGrpConverter [ Ix ] ) ;\n }\n if ( ! _this -> isExtraLocal ) {\n uprv_free ( _this -> extraInfo ) ;\n _this -> extraInfo = NULL ;\n }\n }\n }\n typedef struct LMBCSClone {\n UConverter cnv ;\n UConverterDataLMBCS lmbcs ;\n }\n LMBCSClone ;\n static UConverter * U_CALLCONV _LMBCSSafeClone ( const UConverter * cnv , void * stackBuffer , int32_t * pBufferSize , UErrorCode * status ) {\n ( void ) status ;\n LMBCSClone * newLMBCS ;\n UConverterDataLMBCS * extraInfo ;\n int32_t i ;\n if ( * pBufferSize <= 0 ) {\n * pBufferSize = ( int32_t ) sizeof ( LMBCSClone ) ;\n return NULL ;\n }\n extraInfo = ( UConverterDataLMBCS * ) cnv -> extraInfo ;\n newLMBCS = ( LMBCSClone * ) stackBuffer ;\n uprv_memcpy ( & newLMBCS -> lmbcs , extraInfo , sizeof ( UConverterDataLMBCS ) ) ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST ;\n ++ i ) {\n if ( extraInfo -> OptGrpConverter [ i ] != NULL ) {\n ucnv_incrementRefCount ( extraInfo -> OptGrpConverter [ i ] ) ;\n }\n }\n newLMBCS -> cnv . extraInfo = & newLMBCS -> lmbcs ;\n newLMBCS -> cnv . isExtraLocal = TRUE ;\n return & newLMBCS -> cnv ;\n }\n static size_t LMBCSConversionWorker ( UConverterDataLMBCS * extraInfo , ulmbcs_byte_t group , ulmbcs_byte_t * pStartLMBCS , UChar * pUniChar , ulmbcs_byte_t * lastConverterIndex , UBool * groups_tried ) {\n ulmbcs_byte_t * pLMBCS = pStartLMBCS ;\n UConverterSharedData * xcnv = extraInfo -> OptGrpConverter [ group ] ;\n int bytesConverted ;\n uint32_t value ;\n ulmbcs_byte_t firstByte ;\n U_ASSERT ( xcnv ) ;\n U_ASSERT ( group < ULMBCS_GRP_UNICODE ) ;\n bytesConverted = ucnv_MBCSFromUChar32 ( xcnv , * pUniChar , & value , FALSE ) ;\n if ( bytesConverted > 0 ) {\n firstByte = ( ulmbcs_byte_t ) ( value >> ( ( bytesConverted - 1 ) * 8 ) ) ;\n }\n else {\n groups_tried [ group ] = TRUE ;\n return 0 ;\n }\n * lastConverterIndex = group ;\n U_ASSERT ( ( firstByte <= ULMBCS_C0END ) || ( firstByte >= ULMBCS_C1START ) || ( group == ULMBCS_GRP_EXCEPT ) ) ;\n if ( group != ULMBCS_GRP_EXCEPT && extraInfo -> OptGroup != group ) {\n * pLMBCS ++ = group ;\n if ( bytesConverted == 1 && group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n * pLMBCS ++ = group ;\n }\n }\n if ( bytesConverted == 1 && firstByte < 0x20 ) return 0 ;\n switch ( bytesConverted ) {\n case 4 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 24 ) ;\n U_FALLTHROUGH ;\n case 3 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 16 ) ;\n U_FALLTHROUGH ;\n case 2 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 8 ) ;\n U_FALLTHROUGH ;\n case 1 : * pLMBCS ++ = ( ulmbcs_byte_t ) value ;\n U_FALLTHROUGH ;\n default : break ;\n }\n return ( pLMBCS - pStartLMBCS ) ;\n }\n static size_t LMBCSConvertUni ( ulmbcs_byte_t * pLMBCS , UChar uniChar ) {\n uint8_t LowCh = ( uint8_t ) ( uniChar & 0x00FF ) ;\n uint8_t HighCh = ( uint8_t ) ( uniChar >> 8 ) ;\n * pLMBCS ++ = ULMBCS_GRP_UNICODE ;\n if ( LowCh == 0 ) {\n * pLMBCS ++ = ULMBCS_UNICOMPATZERO ;\n * pLMBCS ++ = HighCh ;\n }\n else {\n * pLMBCS ++ = HighCh ;\n * pLMBCS ++ = LowCh ;\n }\n return ULMBCS_UNICODE_SIZE ;\n }\n static void U_CALLCONV _LMBCSFromUnicode ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n ulmbcs_byte_t lastConverterIndex = 0 ;\n UChar uniChar ;\n ulmbcs_byte_t LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n ulmbcs_byte_t * pLMBCS ;\n int32_t bytes_written ;\n UBool groups_tried [ ULMBCS_GRP_LAST + 1 ] ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n int sourceIndex = 0 ;\n ulmbcs_byte_t OldConverterIndex = 0 ;\n while ( args -> source < args -> sourceLimit && ! U_FAILURE ( * err ) ) {\n OldConverterIndex = extraInfo -> localeConverterIndex ;\n if ( args -> target >= args -> targetLimit ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n uniChar = * ( args -> source ) ;\n bytes_written = 0 ;\n pLMBCS = LMBCS ;\n if ( ( uniChar >= 0x80 ) && ( uniChar <= 0xff ) && ( uniChar != 0xB1 ) && ( uniChar != 0xD7 ) && ( uniChar != 0xF7 ) && ( uniChar != 0xB0 ) && ( uniChar != 0xB4 ) && ( uniChar != 0xB6 ) && ( uniChar != 0xA7 ) && ( uniChar != 0xA8 ) ) {\n extraInfo -> localeConverterIndex = ULMBCS_GRP_L1 ;\n }\n if ( ( ( uniChar > ULMBCS_C0END ) && ( uniChar < ULMBCS_C1START ) ) || uniChar == 0 || uniChar == ULMBCS_HT || uniChar == ULMBCS_CR || uniChar == ULMBCS_LF || uniChar == ULMBCS_123SYSTEMRANGE ) {\n * pLMBCS ++ = ( ulmbcs_byte_t ) uniChar ;\n bytes_written = 1 ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t group = FindLMBCSUniRange ( uniChar ) ;\n if ( group == ULMBCS_GRP_UNICODE ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group == ULMBCS_GRP_CTRL ) {\n if ( uniChar <= ULMBCS_C0END ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( ULMBCS_CTRLOFFSET + uniChar ) ;\n }\n else if ( uniChar >= ULMBCS_C1START && uniChar <= ULMBCS_C1START + ULMBCS_CTRLOFFSET ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( uniChar & 0x00FF ) ;\n }\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group < ULMBCS_GRP_UNICODE ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , group , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n uprv_memset ( groups_tried , 0 , sizeof ( groups_tried ) ) ;\n if ( ( extraInfo -> OptGroup != 1 ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> OptGroup ) ) ) {\n if ( extraInfo -> localeConverterIndex < ULMBCS_DOUBLEOPTGROUP_START ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_L1 , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n else {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && ( extraInfo -> localeConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> localeConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written && ( lastConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , lastConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , lastConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t grp_start ;\n ulmbcs_byte_t grp_end ;\n ulmbcs_byte_t grp_ix ;\n grp_start = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_DOUBLEOPTGROUP_START : ULMBCS_GRP_L1 ) ;\n grp_end = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_GRP_LAST : ULMBCS_GRP_TH ) ;\n if ( group == ULMBCS_AMBIGUOUS_ALL ) {\n grp_start = ULMBCS_GRP_L1 ;\n grp_end = ULMBCS_GRP_LAST ;\n }\n for ( grp_ix = grp_start ;\n grp_ix <= grp_end && ! bytes_written ;\n grp_ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ grp_ix ] && ! groups_tried [ grp_ix ] ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , grp_ix , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && grp_start == ULMBCS_GRP_L1 ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n }\n }\n args -> source ++ ;\n pLMBCS = LMBCS ;\n while ( args -> target < args -> targetLimit && bytes_written -- ) {\n * ( args -> target ) ++ = * pLMBCS ++ ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = sourceIndex ;\n }\n }\n sourceIndex ++ ;\n if ( bytes_written > 0 ) {\n uint8_t * pErrorBuffer = args -> converter -> charErrorBuffer ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n args -> converter -> charErrorBufferLength = ( int8_t ) bytes_written ;\n while ( bytes_written -- ) {\n * pErrorBuffer ++ = * pLMBCS ++ ;\n }\n }\n extraInfo -> localeConverterIndex = OldConverterIndex ;\n }\n }\n static UChar GetUniFromLMBCSUni ( char const * * ppLMBCSin ) {\n uint8_t HighCh = * ( * ppLMBCSin ) ++ ;\n uint8_t LowCh = * ( * ppLMBCSin ) ++ ;\n if ( HighCh == ULMBCS_UNICOMPATZERO ) {\n HighCh = LowCh ;\n LowCh = 0 ;\n }\n return ( UChar ) ( ( HighCh << 8 ) | LowCh ) ;\n }\n # define CHECK_SOURCE_LIMIT ( index ) if ( args -> source + index > args -> sourceLimit ) {\n * err = U_TRUNCATED_CHAR_FOUND ;\n args -> source = args -> sourceLimit ;\n return 0xffff ;\n }\n static UChar32 U_CALLCONV _LMBCSGetNextUCharWorker ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n UChar32 uniChar = 0 ;\n ulmbcs_byte_t CurByte ;\n if ( args -> source >= args -> sourceLimit ) {\n * err = U_ILLEGAL_ARGUMENT_ERROR ;\n return 0xffff ;\n }\n CurByte = * ( ( ulmbcs_byte_t * ) ( args -> source ++ ) ) ;\n if ( ( ( CurByte > ULMBCS_C0END ) && ( CurByte < ULMBCS_C1START ) ) || ( CurByte == 0 ) || CurByte == ULMBCS_HT || CurByte == ULMBCS_CR || CurByte == ULMBCS_LF || CurByte == ULMBCS_123SYSTEMRANGE ) {\n uniChar = CurByte ;\n }\n else {\n UConverterDataLMBCS * extraInfo ;\n ulmbcs_byte_t group ;\n UConverterSharedData * cnv ;\n if ( CurByte == ULMBCS_GRP_CTRL ) {\n ulmbcs_byte_t C0C1byte ;\n CHECK_SOURCE_LIMIT ( 1 ) ;\n C0C1byte = * ( args -> source ) ++ ;\n uniChar = ( C0C1byte < ULMBCS_C1START ) ? C0C1byte - ULMBCS_CTRLOFFSET : C0C1byte ;\n }\n else if ( CurByte == ULMBCS_GRP_UNICODE ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n return GetUniFromLMBCSUni ( & ( args -> source ) ) ;\n }\n else if ( CurByte <= ULMBCS_CTRLOFFSET ) {\n group = CurByte ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n if ( group > ULMBCS_GRP_LAST || ( cnv = extraInfo -> OptGrpConverter [ group ] ) == NULL ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n if ( * args -> source == group ) {\n ++ args -> source ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 1 , FALSE ) ;\n ++ args -> source ;\n }\n else {\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 2 , FALSE ) ;\n args -> source += 2 ;\n }\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n CurByte = * ( args -> source ) ++ ;\n if ( CurByte >= ULMBCS_C1START ) {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n else {\n char bytes [ 2 ] ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n cnv = extraInfo -> OptGrpConverter [ ULMBCS_GRP_EXCEPT ] ;\n bytes [ 0 ] = group ;\n bytes [ 1 ] = CurByte ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , bytes , 2 , FALSE ) ;\n }\n }\n }\n else if ( CurByte >= ULMBCS_C1START ) {\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n group = extraInfo -> OptGroup ;\n cnv = extraInfo -> OptGrpConverter [ group ] ;\n if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n if ( ! ucnv_MBCSIsLeadByte ( cnv , CurByte ) ) {\n CHECK_SOURCE_LIMIT ( 0 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 1 , FALSE ) ;\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 2 , FALSE ) ;\n ++ args -> source ;\n }\n }\n else {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n }\n }\n return uniChar ;\n }\n static void U_CALLCONV _LMBCSToUnicodeWithOffsets ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n char LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n UChar uniChar ;\n const char * saveSource ;\n const char * pStartLMBCS = args -> source ;\n const char * errSource = NULL ;\n int8_t savebytes = 0 ;\n while ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit > args -> target ) {\n saveSource = args -> source ;\n if ( args -> converter -> toULength ) {\n const char * saveSourceLimit ;\n size_t size_old = args -> converter -> toULength ;\n size_t size_new_maybe_1 = sizeof ( LMBCS ) - size_old ;\n size_t size_new_maybe_2 = args -> sourceLimit - args -> source ;\n size_t size_new = ( size_new_maybe_1 < size_new_maybe_2 ) ? size_new_maybe_1 : size_new_maybe_2 ;\n uprv_memcpy ( LMBCS , args -> converter -> toUBytes , size_old ) ;\n uprv_memcpy ( LMBCS + size_old , args -> source , size_new ) ;\n saveSourceLimit = args -> sourceLimit ;\n args -> source = errSource = LMBCS ;\n args -> sourceLimit = LMBCS + size_old + size_new ;\n savebytes = ( int8_t ) ( size_old + size_new ) ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n args -> source = saveSource + ( ( args -> source - LMBCS ) - size_old ) ;\n args -> sourceLimit = saveSourceLimit ;\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n args -> converter -> toULength = savebytes ;\n uprv_memcpy ( args -> converter -> toUBytes , LMBCS , savebytes ) ;\n args -> source = args -> sourceLimit ;\n * err = U_ZERO_ERROR ;\n return ;\n }\n else {\n args -> converter -> toULength = 0 ;\n }\n }\n else {\n errSource = saveSource ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n savebytes = ( int8_t ) ( args -> source - saveSource ) ;\n }\n if ( U_SUCCESS ( * err ) ) {\n if ( uniChar < 0xfffe ) {\n * ( args -> target ) ++ = uniChar ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = ( int32_t ) ( saveSource - pStartLMBCS ) ;\n }\n }\n else if ( uniChar == 0xfffe ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n }\n if ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit <= args -> target ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n else if ( U_FAILURE ( * err ) ) {\n args -> converter -> toULength = savebytes ;\n if ( savebytes > 0 ) {\n uprv_memcpy ( args -> converter -> toUBytes , errSource , savebytes ) ;\n }\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n * err = U_ZERO_ERROR ;\n }\n }\n }\n DEFINE_LMBCS_OPEN ( 1 ) DEFINE_LMBCS_OPEN ( 2 ) DEFINE_LMBCS_OPEN ( 3 )"}
{"idx": 9830, "target": 0, "func": "static char * custom_basename_to_string ( char * format , va_list va ) {\n GFile * file ;\n GFileInfo * info ;\n char * name , * basename , * tmp ;\n GMount * mount ;\n file = va_arg ( va , GFile * ) ;\n if ( ( mount = nautilus_get_mounted_mount_for_root ( file ) ) != NULL ) {\n name = g_mount_get_name ( mount ) ;\n g_object_unref ( mount ) ;\n }\n else {\n info = g_file_query_info ( file , G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME , 0 , g_cancellable_get_current ( ) , NULL ) ;\n name = NULL ;\n if ( info ) {\n name = g_strdup ( g_file_info_get_display_name ( info ) ) ;\n g_object_unref ( info ) ;\n }\n }\n if ( name == NULL ) {\n basename = g_file_get_basename ( file ) ;\n if ( g_utf8_validate ( basename , - 1 , NULL ) ) {\n name = basename ;\n }\n else {\n name = g_uri_escape_string ( basename , G_URI_RESERVED_CHARS_ALLOWED_IN_PATH , TRUE ) ;\n g_free ( basename ) ;\n }\n }\n if ( has_invalid_xml_char ( name ) ) {\n tmp = name ;\n name = g_uri_escape_string ( name , G_URI_RESERVED_CHARS_ALLOWED_IN_PATH , TRUE ) ;\n g_free ( tmp ) ;\n }\n if ( name != NULL ) {\n tmp = name ;\n name = eel_str_middle_truncate ( tmp , MAXIMUM_DISPLAYED_FILE_NAME_LENGTH ) ;\n g_free ( tmp ) ;\n }\n return name ;\n }"}
{"idx": 9831, "target": 1, "func": "static void * i_alloc_struct_array_immovable ( gs_memory_t * mem , uint num_elements , gs_memory_type_ptr_t pstype , client_name_t cname ) {\n gs_ref_memory_t * const imem = ( gs_ref_memory_t * ) mem ;\n obj_header_t * obj ;\n # ifdef MEMENTO if ( Memento_failThisEvent ( ) ) return NULL ;\n # endif ALLOC_CHECK_SIZE ( mem , pstype ) ;\n obj = alloc_obj ( imem , ( ulong ) num_elements * pstype -> ssize , pstype , ALLOC_IMMOVABLE | ALLOC_DIRECT , cname ) ;\n if_debug7m ( 'A' , mem , \"[a%d|+<.]%s %s*(%lu=%u*%u) = 0x%lx\\n\" , alloc_trace_space ( imem ) , client_name_string ( cname ) , struct_type_name_string ( pstype ) , ( ulong ) num_elements * pstype -> ssize , num_elements , pstype -> ssize , ( ulong ) obj ) ;\n return ( char * ) obj ;\n }"}
{"idx": 9832, "target": 0, "func": "static int dissect_h225_LocationRequest ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_LocationRequest , LocationRequest_sequence ) ;\n return offset ;\n }"}
{"idx": 9833, "target": 0, "func": "static void proto_tree_set_int ( field_info * fi , gint32 value ) {\n header_field_info * hfinfo ;\n guint32 integer ;\n gint no_of_bits ;\n hfinfo = fi -> hfinfo ;\n integer = ( guint32 ) value ;\n if ( hfinfo -> bitmask ) {\n integer &= ( guint32 ) ( hfinfo -> bitmask ) ;\n integer >>= hfinfo_bitshift ( hfinfo ) ;\n no_of_bits = ws_count_ones ( hfinfo -> bitmask ) ;\n integer = ws_sign_ext32 ( integer , no_of_bits ) ;\n }\n fvalue_set_sinteger ( & fi -> value , integer ) ;\n }"}
{"idx": 9834, "target": 0, "func": "static int ogg_replace_stream ( AVFormatContext * s , uint32_t serial , int nsegs ) {\n struct ogg * ogg = s -> priv_data ;\n struct ogg_stream * os ;\n const struct ogg_codec * codec ;\n int i = 0 ;\n if ( s -> pb -> seekable ) {\n uint8_t magic [ 8 ] ;\n int64_t pos = avio_tell ( s -> pb ) ;\n avio_skip ( s -> pb , nsegs ) ;\n avio_read ( s -> pb , magic , sizeof ( magic ) ) ;\n avio_seek ( s -> pb , pos , SEEK_SET ) ;\n codec = ogg_find_codec ( magic , sizeof ( magic ) ) ;\n if ( ! codec ) {\n av_log ( s , AV_LOG_ERROR , \"Cannot identify new stream\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( i = 0 ;\n i < ogg -> nstreams ;\n i ++ ) {\n if ( ogg -> streams [ i ] . codec == codec ) break ;\n }\n if ( i >= ogg -> nstreams ) return ogg_new_stream ( s , serial ) ;\n }\n else if ( ogg -> nstreams != 1 ) {\n avpriv_report_missing_feature ( s , \"Changing stream parameters in multistream ogg\" ) ;\n return AVERROR_PATCHWELCOME ;\n }\n os = & ogg -> streams [ i ] ;\n os -> serial = serial ;\n return i ;\n # if 0 buf = os -> buf ;\n bufsize = os -> bufsize ;\n codec = os -> codec ;\n if ( ! ogg -> state || ogg -> state -> streams [ i ] . private != os -> private ) av_freep ( & ogg -> streams [ i ] . private ) ;\n memset ( os , 0 , sizeof ( * os ) ) ;\n os -> serial = serial ;\n os -> bufsize = bufsize ;\n os -> buf = buf ;\n os -> header = - 1 ;\n os -> codec = codec ;\n return i ;\n # endif }"}
{"idx": 9835, "target": 0, "func": "static int dissect_h245_NetworkAccessParameters ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_NetworkAccessParameters , NetworkAccessParameters_sequence ) ;\n return offset ;\n }"}
{"idx": 9836, "target": 0, "func": "static fz_icclink * fz_get_icc_link ( fz_context * ctx , const fz_colorspace * dst , int dst_extras , const fz_colorspace * src , int src_extras , const fz_colorspace * prf , const fz_color_params * rend , int num_bytes , int copy_spots , int * src_n ) {\n fz_icclink * link = NULL ;\n fz_iccprofile * src_icc = NULL ;\n fz_iccprofile * dst_icc = dst -> data ;\n fz_iccprofile * prf_icc = NULL ;\n fz_link_key * key = NULL ;\n fz_icclink * new_link ;\n assert ( ! copy_spots || src_extras == dst_extras ) ;\n if ( prf != NULL ) prf_icc = prf -> data ;\n if ( fz_colorspace_is_icc ( ctx , src ) ) src_icc = src -> data ;\n else if ( fz_colorspace_is_cal ( ctx , src ) ) {\n fz_cal_colorspace * cal ;\n cal = src -> data ;\n src_icc = cal -> profile ;\n if ( src_icc == NULL ) src_icc = fz_icc_from_cal ( ctx , src ) ;\n if ( src_icc -> cmm_handle == NULL ) {\n fz_cmm_init_profile ( ctx , src_icc ) ;\n if ( src_icc -> cmm_handle == NULL ) {\n switch ( src -> n ) {\n case 1 : src_icc = fz_device_gray ( ctx ) -> data ;\n break ;\n case 3 : src_icc = fz_device_rgb ( ctx ) -> data ;\n break ;\n case 4 : src_icc = fz_device_cmyk ( ctx ) -> data ;\n break ;\n default : fz_throw ( ctx , FZ_ERROR_GENERIC , \"Poorly formed Cal color space\" ) ;\n }\n fz_cmm_fin_profile ( ctx , src_icc ) ;\n cal -> profile = src_icc ;\n }\n }\n }\n else src_icc = get_base_icc_profile ( ctx , src ) ;\n if ( src_icc == NULL ) fz_throw ( ctx , FZ_ERROR_GENERIC , \"Profile missing during link creation\" ) ;\n * src_n = src_icc -> num_devcomp ;\n fz_var ( link ) ;\n fz_var ( key ) ;\n if ( rend == NULL ) rend = fz_default_color_params ( ctx ) ;\n fz_try ( ctx ) {\n key = fz_malloc_struct ( ctx , fz_link_key ) ;\n key -> refs = 1 ;\n memcpy ( & key -> dst_md5 , dst_icc -> md5 , 16 ) ;\n memcpy ( & key -> src_md5 , src_icc -> md5 , 16 ) ;\n key -> rend . ri = rend -> ri ;\n key -> rend . bp = rend -> bp ;\n key -> src_extras = src_extras ;\n key -> dst_extras = dst_extras ;\n key -> depth = num_bytes ;\n key -> proof = ( prf_icc != NULL ) ;\n key -> copy_spots = copy_spots ;\n link = fz_find_item ( ctx , fz_drop_link_imp , key , & fz_link_store_type ) ;\n if ( link == NULL ) {\n link = fz_new_icc_link ( ctx , dst_icc , dst_extras , src_icc , src_extras , prf_icc , rend , num_bytes , copy_spots ) ;\n new_link = fz_store_item ( ctx , key , link , sizeof ( fz_icclink ) , & fz_link_store_type ) ;\n if ( new_link != NULL ) {\n fz_drop_icclink ( ctx , link ) ;\n link = new_link ;\n }\n }\n }\n fz_always ( ctx ) {\n fz_drop_link_key ( ctx , key ) ;\n }\n fz_catch ( ctx ) {\n if ( link == NULL ) fz_rethrow ( ctx ) ;\n }\n return link ;\n }"}
{"idx": 9837, "target": 0, "func": "static int test_file_size ( const char * file , xoff_t * size ) {\n struct stat sbuf ;\n int ret ;\n ( * size ) = 0 ;\n if ( stat ( file , & sbuf ) < 0 ) {\n ret = get_errno ( ) ;\n XPR ( NT \"stat failed: %s: %s\\n\" , file , strerror ( ret ) ) ;\n return ret ;\n }\n if ( ! S_ISREG ( sbuf . st_mode ) ) {\n ret = XD3_INTERNAL ;\n XPR ( NT \"not a regular file: %s: %s\\n\" , file , strerror ( ret ) ) ;\n return ret ;\n }\n ( * size ) = sbuf . st_size ;\n return 0 ;\n }"}
{"idx": 9838, "target": 1, "func": "enum ImapAuthRes imap_auth_gss ( struct ImapData * idata , const char * method ) {\n gss_buffer_desc request_buf , send_token ;\n gss_buffer_t sec_token ;\n gss_name_t target_name ;\n gss_ctx_id_t context ;\n gss_OID mech_name ;\n char server_conf_flags ;\n gss_qop_t quality ;\n int cflags ;\n OM_uint32 maj_stat , min_stat ;\n char buf1 [ GSS_BUFSIZE ] , buf2 [ GSS_BUFSIZE ] ;\n unsigned long buf_size ;\n int rc ;\n if ( ! mutt_bit_isset ( idata -> capabilities , AGSSAPI ) ) return IMAP_AUTH_UNAVAIL ;\n if ( mutt_account_getuser ( & idata -> conn -> account ) < 0 ) return IMAP_AUTH_FAILURE ;\n snprintf ( buf1 , sizeof ( buf1 ) , \"imap@%s\" , idata -> conn -> account . host ) ;\n request_buf . value = buf1 ;\n request_buf . length = strlen ( buf1 ) ;\n maj_stat = gss_import_name ( & min_stat , & request_buf , gss_nt_service_name , & target_name ) ;\n if ( maj_stat != GSS_S_COMPLETE ) {\n mutt_debug ( 2 , \"Couldn't get service name for [%s]\\n\" , buf1 ) ;\n return IMAP_AUTH_UNAVAIL ;\n }\n else if ( DebugLevel >= 2 ) {\n gss_display_name ( & min_stat , target_name , & request_buf , & mech_name ) ;\n mutt_debug ( 2 , \"Using service name [%s]\\n\" , ( char * ) request_buf . value ) ;\n gss_release_buffer ( & min_stat , & request_buf ) ;\n }\n sec_token = GSS_C_NO_BUFFER ;\n context = GSS_C_NO_CONTEXT ;\n maj_stat = gss_init_sec_context ( & min_stat , GSS_C_NO_CREDENTIAL , & context , target_name , GSS_C_NO_OID , GSS_C_MUTUAL_FLAG | GSS_C_SEQUENCE_FLAG , 0 , GSS_C_NO_CHANNEL_BINDINGS , sec_token , NULL , & send_token , ( unsigned int * ) & cflags , NULL ) ;\n if ( maj_stat != GSS_S_COMPLETE && maj_stat != GSS_S_CONTINUE_NEEDED ) {\n print_gss_error ( maj_stat , min_stat ) ;\n mutt_debug ( 1 , \"Error acquiring credentials - no TGT?\\n\" ) ;\n gss_release_name ( & min_stat , & target_name ) ;\n return IMAP_AUTH_UNAVAIL ;\n }\n mutt_message ( _ ( \"Authenticating (GSSAPI)...\" ) ) ;\n imap_cmd_start ( idata , \"AUTHENTICATE GSSAPI\" ) ;\n do rc = imap_cmd_step ( idata ) ;\n while ( rc == IMAP_CMD_CONTINUE ) ;\n if ( rc != IMAP_CMD_RESPOND ) {\n mutt_debug ( 2 , \"Invalid response from server: %s\\n\" , buf1 ) ;\n gss_release_name ( & min_stat , & target_name ) ;\n goto bail ;\n }\n mutt_debug ( 2 , \"Sending credentials\\n\" ) ;\n mutt_b64_encode ( buf1 , send_token . value , send_token . length , sizeof ( buf1 ) - 2 ) ;\n gss_release_buffer ( & min_stat , & send_token ) ;\n mutt_str_strcat ( buf1 , sizeof ( buf1 ) , \"\\r\\n\" ) ;\n mutt_socket_send ( idata -> conn , buf1 ) ;\n while ( maj_stat == GSS_S_CONTINUE_NEEDED ) {\n do rc = imap_cmd_step ( idata ) ;\n while ( rc == IMAP_CMD_CONTINUE ) ;\n if ( rc != IMAP_CMD_RESPOND ) {\n mutt_debug ( 1 , \"#1 Error receiving server response.\\n\" ) ;\n gss_release_name ( & min_stat , & target_name ) ;\n goto bail ;\n }\n request_buf . length = mutt_b64_decode ( buf2 , idata -> buf + 2 ) ;\n request_buf . value = buf2 ;\n sec_token = & request_buf ;\n maj_stat = gss_init_sec_context ( & min_stat , GSS_C_NO_CREDENTIAL , & context , target_name , GSS_C_NO_OID , GSS_C_MUTUAL_FLAG | GSS_C_SEQUENCE_FLAG , 0 , GSS_C_NO_CHANNEL_BINDINGS , sec_token , NULL , & send_token , ( unsigned int * ) & cflags , NULL ) ;\n if ( maj_stat != GSS_S_COMPLETE && maj_stat != GSS_S_CONTINUE_NEEDED ) {\n print_gss_error ( maj_stat , min_stat ) ;\n mutt_debug ( 1 , \"Error exchanging credentials\\n\" ) ;\n gss_release_name ( & min_stat , & target_name ) ;\n goto err_abort_cmd ;\n }\n mutt_b64_encode ( buf1 , send_token . value , send_token . length , sizeof ( buf1 ) - 2 ) ;\n gss_release_buffer ( & min_stat , & send_token ) ;\n mutt_str_strcat ( buf1 , sizeof ( buf1 ) , \"\\r\\n\" ) ;\n mutt_socket_send ( idata -> conn , buf1 ) ;\n }\n gss_release_name ( & min_stat , & target_name ) ;\n do rc = imap_cmd_step ( idata ) ;\n while ( rc == IMAP_CMD_CONTINUE ) ;\n if ( rc != IMAP_CMD_RESPOND ) {\n mutt_debug ( 1 , \"#2 Error receiving server response.\\n\" ) ;\n goto bail ;\n }\n request_buf . length = mutt_b64_decode ( buf2 , idata -> buf + 2 ) ;\n request_buf . value = buf2 ;\n maj_stat = gss_unwrap ( & min_stat , context , & request_buf , & send_token , & cflags , & quality ) ;\n if ( maj_stat != GSS_S_COMPLETE ) {\n print_gss_error ( maj_stat , min_stat ) ;\n mutt_debug ( 2 , \"Couldn't unwrap security level data\\n\" ) ;\n gss_release_buffer ( & min_stat , & send_token ) ;\n goto err_abort_cmd ;\n }\n mutt_debug ( 2 , \"Credential exchange complete\\n\" ) ;\n server_conf_flags = ( ( char * ) send_token . value ) [ 0 ] ;\n if ( ! ( ( ( char * ) send_token . value ) [ 0 ] & GSS_AUTH_P_NONE ) ) {\n mutt_debug ( 2 , \"Server requires integrity or privacy\\n\" ) ;\n gss_release_buffer ( & min_stat , & send_token ) ;\n goto err_abort_cmd ;\n }\n ( ( char * ) send_token . value ) [ 0 ] = '\\0' ;\n buf_size = ntohl ( * ( ( long * ) send_token . value ) ) ;\n gss_release_buffer ( & min_stat , & send_token ) ;\n mutt_debug ( 2 , \"Unwrapped security level flags: %c%c%c\\n\" , ( server_conf_flags & GSS_AUTH_P_NONE ) ? 'N' : '-' , ( server_conf_flags & GSS_AUTH_P_INTEGRITY ) ? 'I' : '-' , ( server_conf_flags & GSS_AUTH_P_PRIVACY ) ? 'P' : '-' ) ;\n mutt_debug ( 2 , \"Maximum GSS token size is %ld\\n\" , buf_size ) ;\n buf_size = htonl ( buf_size ) ;\n memcpy ( buf1 , & buf_size , 4 ) ;\n buf1 [ 0 ] = GSS_AUTH_P_NONE ;\n strncpy ( buf1 + 4 , idata -> conn -> account . user , sizeof ( buf1 ) - 4 ) ;\n request_buf . value = buf1 ;\n request_buf . length = 4 + strlen ( idata -> conn -> account . user ) ;\n maj_stat = gss_wrap ( & min_stat , context , 0 , GSS_C_QOP_DEFAULT , & request_buf , & cflags , & send_token ) ;\n if ( maj_stat != GSS_S_COMPLETE ) {\n mutt_debug ( 2 , \"Error creating login request\\n\" ) ;\n goto err_abort_cmd ;\n }\n mutt_b64_encode ( buf1 , send_token . value , send_token . length , sizeof ( buf1 ) - 2 ) ;\n mutt_debug ( 2 , \"Requesting authorisation as %s\\n\" , idata -> conn -> account . user ) ;\n mutt_str_strcat ( buf1 , sizeof ( buf1 ) , \"\\r\\n\" ) ;\n mutt_socket_send ( idata -> conn , buf1 ) ;\n do rc = imap_cmd_step ( idata ) ;\n while ( rc == IMAP_CMD_CONTINUE ) ;\n if ( rc == IMAP_CMD_RESPOND ) {\n mutt_debug ( 1 , \"Unexpected server continuation request.\\n\" ) ;\n goto err_abort_cmd ;\n }\n if ( imap_code ( idata -> buf ) ) {\n mutt_debug ( 2 , \"Releasing GSS credentials\\n\" ) ;\n maj_stat = gss_delete_sec_context ( & min_stat , & context , & send_token ) ;\n if ( maj_stat != GSS_S_COMPLETE ) mutt_debug ( 1 , \"Error releasing credentials\\n\" ) ;\n gss_release_buffer ( & min_stat , & send_token ) ;\n return IMAP_AUTH_SUCCESS ;\n }\n else goto bail ;\n err_abort_cmd : mutt_socket_send ( idata -> conn , \"*\\r\\n\" ) ;\n do rc = imap_cmd_step ( idata ) ;\n while ( rc == IMAP_CMD_CONTINUE ) ;\n bail : mutt_error ( _ ( \"GSSAPI authentication failed.\" ) ) ;\n return IMAP_AUTH_FAILURE ;\n }"}
{"idx": 9839, "target": 0, "func": "static int dwt_plane ( AVCodecContext * avctx , void * arg ) {\n TransformArgs * transform_dat = arg ;\n VC2EncContext * s = transform_dat -> ctx ;\n const void * frame_data = transform_dat -> idata ;\n const ptrdiff_t linesize = transform_dat -> istride ;\n const int field = transform_dat -> field ;\n const Plane * p = transform_dat -> plane ;\n VC2TransformContext * t = & transform_dat -> t ;\n dwtcoef * buf = p -> coef_buf ;\n const int idx = s -> wavelet_idx ;\n const int skip = 1 + s -> interlaced ;\n int x , y , level , offset ;\n ptrdiff_t pix_stride = linesize >> ( s -> bpp - 1 ) ;\n if ( field == 1 ) {\n offset = 0 ;\n pix_stride <<= 1 ;\n }\n else if ( field == 2 ) {\n offset = pix_stride ;\n pix_stride <<= 1 ;\n }\n else {\n offset = 0 ;\n }\n if ( s -> bpp == 1 ) {\n const uint8_t * pix = ( const uint8_t * ) frame_data + offset ;\n for ( y = 0 ;\n y < p -> height * skip ;\n y += skip ) {\n for ( x = 0 ;\n x < p -> width ;\n x ++ ) {\n buf [ x ] = pix [ x ] - s -> diff_offset ;\n }\n buf += p -> coef_stride ;\n pix += pix_stride ;\n }\n }\n else {\n const uint16_t * pix = ( const uint16_t * ) frame_data + offset ;\n for ( y = 0 ;\n y < p -> height * skip ;\n y += skip ) {\n for ( x = 0 ;\n x < p -> width ;\n x ++ ) {\n buf [ x ] = pix [ x ] - s -> diff_offset ;\n }\n buf += p -> coef_stride ;\n pix += pix_stride ;\n }\n }\n memset ( buf , 0 , p -> coef_stride * ( p -> dwt_height - p -> height ) * sizeof ( dwtcoef ) ) ;\n for ( level = s -> wavelet_depth - 1 ;\n level >= 0 ;\n level -- ) {\n const SubBand * b = & p -> band [ level ] [ 0 ] ;\n t -> vc2_subband_dwt [ idx ] ( t , p -> coef_buf , p -> coef_stride , b -> width , b -> height ) ;\n }\n return 0 ;\n }"}
{"idx": 9840, "target": 1, "func": "static int tokenexec_continue ( i_ctx_t * i_ctx_p , scanner_state * pstate , bool save ) {\n os_ptr op ;\n int code ;\n pop ( 1 ) ;\n again : check_estack ( 1 ) ;\n code = gs_scan_token ( i_ctx_p , ( ref * ) ( esp + 1 ) , pstate ) ;\n op = osp ;\n switch ( code ) {\n case 0 : if ( r_is_proc ( esp + 1 ) ) {\n push ( 1 ) ;\n ref_assign ( op , esp + 1 ) ;\n code = 0 ;\n break ;\n }\n case scan_BOS : ++ esp ;\n code = o_push_estack ;\n break ;\n case scan_EOF : code = 0 ;\n break ;\n case scan_Refill : code = gs_scan_handle_refill ( i_ctx_p , pstate , save , ztokenexec_continue ) ;\n switch ( code ) {\n case 0 : goto again ;\n case o_push_estack : return code ;\n }\n break ;\n case scan_Comment : case scan_DSC_Comment : return ztoken_handle_comment ( i_ctx_p , pstate , esp + 1 , code , save , true , ztokenexec_continue ) ;\n default : gs_scanner_error_object ( i_ctx_p , pstate , & i_ctx_p -> error_object ) ;\n break ;\n }\n if ( ! save ) {\n gs_free_object ( ( ( scanner_state_dynamic * ) pstate ) -> mem , pstate , \"token_continue\" ) ;\n }\n return code ;\n }"}
{"idx": 9841, "target": 1, "func": "static int parse_PropertySetArray ( tvbuff_t * tvb , int offset , int size_offset , proto_tree * parent_tree , proto_tree * pad_tree , const char * fmt , ... ) {\n const int offset_in = offset ;\n guint32 size , num ;\n int i ;\n proto_tree * tree ;\n proto_item * item ;\n const char * txt ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CDbPropSet_Array , & item , txt ) ;\n size = tvb_get_letohl ( tvb , size_offset ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_ConnectIn_Blob1 , tvb , size_offset , 4 , ENC_LITTLE_ENDIAN ) ;\n num = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_ConnectIn_PropSets_num , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n for ( i = 0 ;\n i < ( int ) num ;\n i ++ ) {\n offset = parse_CDbPropSet ( tvb , offset , tree , pad_tree , \"PropertySet[%d]\" , i ) ;\n }\n proto_item_set_end ( item , tvb , offset ) ;\n DISSECTOR_ASSERT ( offset - offset_in == ( int ) size ) ;\n return offset ;\n }"}
{"idx": 9842, "target": 0, "func": "mbfl_string * mbfl_buffer_converter_getbuffer ( mbfl_buffer_converter * convd , mbfl_string * result ) {\n if ( convd != NULL && result != NULL && convd -> device . buffer != NULL ) {\n result -> no_encoding = convd -> to -> no_encoding ;\n result -> val = convd -> device . buffer ;\n result -> len = convd -> device . pos ;\n }\n else {\n result = NULL ;\n }\n return result ;\n }"}
{"idx": 9843, "target": 0, "func": "int ff_mpeg_ref_picture ( MpegEncContext * s , Picture * dst , Picture * src ) {\n int ret ;\n av_assert0 ( ! dst -> f . buf [ 0 ] ) ;\n av_assert0 ( src -> f . buf [ 0 ] ) ;\n src -> tf . f = & src -> f ;\n dst -> tf . f = & dst -> f ;\n ret = ff_thread_ref_frame ( & dst -> tf , & src -> tf ) ;\n if ( ret < 0 ) goto fail ;\n ret = update_picture_tables ( dst , src ) ;\n if ( ret < 0 ) goto fail ;\n if ( src -> hwaccel_picture_private ) {\n dst -> hwaccel_priv_buf = av_buffer_ref ( src -> hwaccel_priv_buf ) ;\n if ( ! dst -> hwaccel_priv_buf ) goto fail ;\n dst -> hwaccel_picture_private = dst -> hwaccel_priv_buf -> data ;\n }\n dst -> field_picture = src -> field_picture ;\n dst -> mb_var_sum = src -> mb_var_sum ;\n dst -> mc_mb_var_sum = src -> mc_mb_var_sum ;\n dst -> b_frame_score = src -> b_frame_score ;\n dst -> needs_realloc = src -> needs_realloc ;\n dst -> reference = src -> reference ;\n dst -> shared = src -> shared ;\n return 0 ;\n fail : ff_mpeg_unref_picture ( s , dst ) ;\n return ret ;\n }"}
{"idx": 9844, "target": 0, "func": "Oid get_typmodin ( Oid typid ) {\n HeapTuple tp ;\n tp = SearchSysCache1 ( TYPEOID , ObjectIdGetDatum ( typid ) ) ;\n if ( HeapTupleIsValid ( tp ) ) {\n Form_pg_type typtup = ( Form_pg_type ) GETSTRUCT ( tp ) ;\n Oid result ;\n result = typtup -> typmodin ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }\n else return InvalidOid ;\n }"}
{"idx": 9845, "target": 0, "func": "static void * Type_MPE_Dup ( struct _cms_typehandler_struct * self , const void * Ptr , cmsUInt32Number n ) {\n return ( void * ) cmsPipelineDup ( ( cmsPipeline * ) Ptr ) ;\n cmsUNUSED_PARAMETER ( n ) ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 9846, "target": 0, "func": "const char * * __xmlParserVersion ( void ) {\n if ( IS_MAIN_THREAD ) return ( & xmlParserVersion ) ;\n else return ( & xmlGetGlobalState ( ) -> xmlParserVersion ) ;\n }"}
{"idx": 9847, "target": 0, "func": "static int may_context_mount_inode_relabel ( u32 sid , struct superblock_security_struct * sbsec , const struct cred * cred ) {\n const struct task_security_struct * tsec = cred -> security ;\n int rc ;\n rc = avc_has_perm ( tsec -> sid , sbsec -> sid , SECCLASS_FILESYSTEM , FILESYSTEM__RELABELFROM , NULL ) ;\n if ( rc ) return rc ;\n rc = avc_has_perm ( sid , sbsec -> sid , SECCLASS_FILESYSTEM , FILESYSTEM__ASSOCIATE , NULL ) ;\n return rc ;\n }"}
{"idx": 9848, "target": 0, "func": "static int proto_register_field_common ( protocol_t * proto , header_field_info * hfi , const int parent ) {\n if ( proto != NULL ) {\n g_ptr_array_add ( proto -> fields , hfi ) ;\n }\n return proto_register_field_init ( hfi , parent ) ;\n }"}
{"idx": 9849, "target": 0, "func": "static void dtap_bcc_connect ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_BCC_CALL_REF , NULL ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , curr_offset << 3 , 4 , ENC_NA ) ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_BCC_ORIG_IND , \"(Broadcast call reference)\" ) ;\n }"}
{"idx": 9850, "target": 0, "func": "static int aasc_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n AascContext * s = avctx -> priv_data ;\n int compr , i , stride , ret ;\n if ( ( ret = ff_reget_buffer ( avctx , s -> frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n compr = AV_RL32 ( buf ) ;\n buf += 4 ;\n buf_size -= 4 ;\n switch ( compr ) {\n case 0 : stride = ( avctx -> width * 3 + 3 ) & ~ 3 ;\n for ( i = avctx -> height - 1 ;\n i >= 0 ;\n i -- ) {\n memcpy ( s -> frame -> data [ 0 ] + i * s -> frame -> linesize [ 0 ] , buf , avctx -> width * 3 ) ;\n buf += stride ;\n }\n break ;\n case 1 : bytestream2_init ( & s -> gb , buf , buf_size ) ;\n ff_msrle_decode ( avctx , ( AVPicture * ) s -> frame , 8 , & s -> gb ) ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"Unknown compression type %d\\n\" , compr ) ;\n return AVERROR_INVALIDDATA ;\n }\n * got_frame = 1 ;\n if ( ( ret = av_frame_ref ( data , s -> frame ) ) < 0 ) return ret ;\n return buf_size ;\n }"}
{"idx": 9851, "target": 0, "func": "static int dissect_s_supervisor_output_connection_point_owners ( packet_info * pinfo , proto_tree * tree , proto_item * item , tvbuff_t * tvb , int offset , int total_len ) {\n guint16 i , num_entries ;\n proto_item * entry_item , * app_path_item ;\n proto_tree * entry_tree , * epath_tree ;\n int attr_len = 0 , app_path_size ;\n if ( total_len < 2 ) {\n expert_add_info ( pinfo , item , & ei_mal_ssupervisor_cp_owners ) ;\n return total_len ;\n }\n entry_item = proto_tree_add_item ( tree , hf_cip_ssupervisor_cp_owners_num_entries , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n num_entries = tvb_get_letohs ( tvb , offset ) ;\n attr_len += 2 ;\n if ( num_entries > 0 ) {\n entry_tree = proto_item_add_subtree ( entry_item , ett_ssupervisor_output_cp_owners ) ;\n for ( i = 0 ;\n i < num_entries ;\n i ++ ) {\n if ( total_len < attr_len + 11 ) {\n expert_add_info ( pinfo , item , & ei_mal_ssupervisor_cp_owners_entry ) ;\n return total_len ;\n }\n dissect_unid ( tvb , pinfo , offset + attr_len , entry_item , \"OCPUNID SSN\" , hf_cip_ssupervisor_output_cp_owners_ocpunid_ssn_timestamp , hf_cip_ssupervisor_output_cp_owners_ocpunid_ssn_date , hf_cip_ssupervisor_output_cp_owners_ocpunid_ssn_time , hf_cip_ssupervisor_output_cp_owners_ocpunid_macid , ett_ssupervisor_output_cp_owners_ocpunid , ett_ssupervisor_output_cp_owners_ocpunid_ssn ) ;\n attr_len += 10 ;\n proto_tree_add_item ( entry_tree , hf_cip_ssupervisor_cp_owners_app_path_size , tvb , offset + attr_len , 1 , ENC_LITTLE_ENDIAN ) ;\n app_path_size = tvb_get_guint8 ( tvb , offset + attr_len ) ;\n attr_len += 1 ;\n if ( total_len < attr_len + app_path_size ) {\n expert_add_info ( pinfo , item , & ei_mal_ssupervisor_cp_owners_app_path_size ) ;\n return total_len ;\n }\n epath_tree = proto_tree_add_subtree ( entry_tree , tvb , offset + attr_len , app_path_size , ett_path , & app_path_item , \"Application Resource: \" ) ;\n dissect_epath ( tvb , pinfo , epath_tree , app_path_item , offset + attr_len , app_path_size , FALSE , TRUE , NULL , NULL , NO_DISPLAY , NULL , FALSE ) ;\n attr_len += app_path_size ;\n }\n }\n return attr_len ;\n }"}
{"idx": 9852, "target": 0, "func": "static int tls_process_cke_dhe ( SSL * s , PACKET * pkt , int * al ) {\n # ifndef OPENSSL_NO_DH EVP_PKEY * skey = NULL ;\n DH * cdh ;\n unsigned int i ;\n BIGNUM * pub_key ;\n const unsigned char * data ;\n EVP_PKEY * ckey = NULL ;\n int ret = 0 ;\n if ( ! PACKET_get_net_2 ( pkt , & i ) || PACKET_remaining ( pkt ) != i ) {\n * al = SSL_AD_HANDSHAKE_FAILURE ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_DHE , SSL_R_DH_PUBLIC_VALUE_LENGTH_IS_WRONG ) ;\n goto err ;\n }\n skey = s -> s3 -> tmp . pkey ;\n if ( skey == NULL ) {\n * al = SSL_AD_HANDSHAKE_FAILURE ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_DHE , SSL_R_MISSING_TMP_DH_KEY ) ;\n goto err ;\n }\n if ( PACKET_remaining ( pkt ) == 0L ) {\n * al = SSL_AD_HANDSHAKE_FAILURE ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_DHE , SSL_R_MISSING_TMP_DH_KEY ) ;\n goto err ;\n }\n if ( ! PACKET_get_bytes ( pkt , & data , i ) ) {\n * al = SSL_AD_INTERNAL_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_DHE , ERR_R_INTERNAL_ERROR ) ;\n goto err ;\n }\n ckey = EVP_PKEY_new ( ) ;\n if ( ckey == NULL || EVP_PKEY_copy_parameters ( ckey , skey ) == 0 ) {\n SSLerr ( SSL_F_TLS_PROCESS_CKE_DHE , SSL_R_BN_LIB ) ;\n goto err ;\n }\n cdh = EVP_PKEY_get0_DH ( ckey ) ;\n pub_key = BN_bin2bn ( data , i , NULL ) ;\n if ( pub_key == NULL || ! DH_set0_key ( cdh , pub_key , NULL ) ) {\n SSLerr ( SSL_F_TLS_PROCESS_CKE_DHE , ERR_R_INTERNAL_ERROR ) ;\n if ( pub_key != NULL ) BN_free ( pub_key ) ;\n goto err ;\n }\n if ( ssl_derive ( s , skey , ckey ) == 0 ) {\n * al = SSL_AD_INTERNAL_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_DHE , ERR_R_INTERNAL_ERROR ) ;\n goto err ;\n }\n ret = 1 ;\n EVP_PKEY_free ( s -> s3 -> tmp . pkey ) ;\n s -> s3 -> tmp . pkey = NULL ;\n err : EVP_PKEY_free ( ckey ) ;\n return ret ;\n # else * al = SSL_AD_INTERNAL_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_DHE , ERR_R_INTERNAL_ERROR ) ;\n return 0 ;\n # endif }"}
{"idx": 9853, "target": 0, "func": "static int selinux_socket_getpeersec_stream ( struct socket * sock , char __user * optval , int __user * optlen , unsigned len ) {\n int err = 0 ;\n char * scontext ;\n u32 scontext_len ;\n struct sk_security_struct * sksec = sock -> sk -> sk_security ;\n u32 peer_sid = SECSID_NULL ;\n if ( sksec -> sclass == SECCLASS_UNIX_STREAM_SOCKET || sksec -> sclass == SECCLASS_TCP_SOCKET ) peer_sid = sksec -> peer_sid ;\n if ( peer_sid == SECSID_NULL ) return - ENOPROTOOPT ;\n err = security_sid_to_context ( peer_sid , & scontext , & scontext_len ) ;\n if ( err ) return err ;\n if ( scontext_len > len ) {\n err = - ERANGE ;\n goto out_len ;\n }\n if ( copy_to_user ( optval , scontext , scontext_len ) ) err = - EFAULT ;\n out_len : if ( put_user ( scontext_len , optlen ) ) err = - EFAULT ;\n kfree ( scontext ) ;\n return err ;\n }"}
{"idx": 9854, "target": 1, "func": "static void voutf ( struct GlobalConfig * config , const char * prefix , const char * fmt , va_list ap ) {\n size_t width = ( 79 - strlen ( prefix ) ) ;\n if ( ! config -> mute ) {\n size_t len ;\n char * ptr ;\n char * print_buffer ;\n print_buffer = curlx_mvaprintf ( fmt , ap ) ;\n if ( ! print_buffer ) return ;\n len = strlen ( print_buffer ) ;\n ptr = print_buffer ;\n while ( len > 0 ) {\n fputs ( prefix , config -> errors ) ;\n if ( len > width ) {\n size_t cut = width - 1 ;\n while ( ! ISSPACE ( ptr [ cut ] ) && cut ) {\n cut -- ;\n }\n if ( 0 == cut ) cut = width - 1 ;\n ( void ) fwrite ( ptr , cut + 1 , 1 , config -> errors ) ;\n fputs ( \"\\n\" , config -> errors ) ;\n ptr += cut + 1 ;\n len -= cut ;\n }\n else {\n fputs ( ptr , config -> errors ) ;\n len = 0 ;\n }\n }\n curl_free ( print_buffer ) ;\n }\n }"}
{"idx": 9855, "target": 0, "func": "void proto_reg_handoff_btavdtp ( void ) {\n dissector_add_string ( \"bluetooth.uuid\" , \"19\" , btavdtp_handle ) ;\n dissector_add_uint ( \"btl2cap.psm\" , BTL2CAP_PSM_AVDTP , btavdtp_handle ) ;\n dissector_add_for_decode_as ( \"btl2cap.cid\" , btavdtp_handle ) ;\n }"}
{"idx": 9856, "target": 0, "func": "int jpc_ft_analyze ( jpc_fix_t * a , int xstart , int ystart , int width , int height , int stride ) {\n int numrows = height ;\n int numcols = width ;\n int rowparity = ystart & 1 ;\n int colparity = xstart & 1 ;\n int i ;\n jpc_fix_t * startptr ;\n int maxcols ;\n maxcols = ( numcols / JPC_QMFB_COLGRPSIZE ) * JPC_QMFB_COLGRPSIZE ;\n startptr = & a [ 0 ] ;\n for ( i = 0 ;\n i < maxcols ;\n i += JPC_QMFB_COLGRPSIZE ) {\n jpc_qmfb_split_colgrp ( startptr , numrows , stride , rowparity ) ;\n jpc_ft_fwdlift_colgrp ( startptr , numrows , stride , rowparity ) ;\n startptr += JPC_QMFB_COLGRPSIZE ;\n }\n if ( maxcols < numcols ) {\n jpc_qmfb_split_colres ( startptr , numrows , numcols - maxcols , stride , rowparity ) ;\n jpc_ft_fwdlift_colres ( startptr , numrows , numcols - maxcols , stride , rowparity ) ;\n }\n startptr = & a [ 0 ] ;\n for ( i = 0 ;\n i < numrows ;\n ++ i ) {\n jpc_qmfb_split_row ( startptr , numcols , colparity ) ;\n jpc_ft_fwdlift_row ( startptr , numcols , colparity ) ;\n startptr += stride ;\n }\n return 0 ;\n }"}
{"idx": 9857, "target": 0, "func": "static void output_buffer ( int16_t * * samples , int nchan , int blocksize , int32_t * * buffer ) {\n int i , ch ;\n for ( ch = 0 ;\n ch < nchan ;\n ch ++ ) {\n int32_t * in = buffer [ ch ] ;\n int16_t * out = samples [ ch ] ;\n for ( i = 0 ;\n i < blocksize ;\n i ++ ) out [ i ] = av_clip_int16 ( in [ i ] ) ;\n }\n }"}
{"idx": 9858, "target": 0, "func": "static void server_request_free_answers ( struct server_request * req ) {\n struct server_reply_item * victim , * next , * * list ;\n int i ;\n for ( i = 0 ;\n i < 3 ;\n ++ i ) {\n if ( i == 0 ) list = & req -> answer ;\n else if ( i == 1 ) list = & req -> authority ;\n else list = & req -> additional ;\n victim = * list ;\n while ( victim ) {\n next = victim -> next ;\n free ( victim -> name ) ;\n if ( victim -> data ) free ( victim -> data ) ;\n free ( victim ) ;\n victim = next ;\n }\n * list = NULL ;\n }\n }"}
{"idx": 9859, "target": 0, "func": "static gboolean dissect_rtp_heur_stun ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n return dissect_rtp_heur_common ( tvb , pinfo , tree , data , FALSE ) ;\n }"}
{"idx": 9860, "target": 0, "func": "static int read_filter_params ( MLPDecodeContext * m , GetBitContext * gbp , unsigned int substr , unsigned int channel , unsigned int filter ) {\n SubStream * s = & m -> substream [ substr ] ;\n FilterParams * fp = & s -> channel_params [ channel ] . filter_params [ filter ] ;\n const int max_order = filter ? MAX_IIR_ORDER : MAX_FIR_ORDER ;\n const char fchar = filter ? 'I' : 'F' ;\n int i , order ;\n assert ( filter < 2 ) ;\n if ( m -> filter_changed [ channel ] [ filter ] ++ > 1 ) {\n av_log ( m -> avctx , AV_LOG_ERROR , \"Filters may change only once per access unit.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n order = get_bits ( gbp , 4 ) ;\n if ( order > max_order ) {\n av_log ( m -> avctx , AV_LOG_ERROR , \"%cIR filter order %d is greater than maximum %d.\\n\" , fchar , order , max_order ) ;\n return AVERROR_INVALIDDATA ;\n }\n fp -> order = order ;\n if ( order > 0 ) {\n int32_t * fcoeff = s -> channel_params [ channel ] . coeff [ filter ] ;\n int coeff_bits , coeff_shift ;\n fp -> shift = get_bits ( gbp , 4 ) ;\n coeff_bits = get_bits ( gbp , 5 ) ;\n coeff_shift = get_bits ( gbp , 3 ) ;\n if ( coeff_bits < 1 || coeff_bits > 16 ) {\n av_log ( m -> avctx , AV_LOG_ERROR , \"%cIR filter coeff_bits must be between 1 and 16.\\n\" , fchar ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( coeff_bits + coeff_shift > 16 ) {\n av_log ( m -> avctx , AV_LOG_ERROR , \"Sum of coeff_bits and coeff_shift for %cIR filter must be 16 or less.\\n\" , fchar ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( i = 0 ;\n i < order ;\n i ++ ) fcoeff [ i ] = get_sbits ( gbp , coeff_bits ) << coeff_shift ;\n if ( get_bits1 ( gbp ) ) {\n int state_bits , state_shift ;\n if ( filter == FIR ) {\n av_log ( m -> avctx , AV_LOG_ERROR , \"FIR filter has state data specified.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n state_bits = get_bits ( gbp , 4 ) ;\n state_shift = get_bits ( gbp , 4 ) ;\n for ( i = 0 ;\n i < order ;\n i ++ ) fp -> state [ i ] = get_sbits ( gbp , state_bits ) << state_shift ;\n }\n }\n return 0 ;\n }"}
{"idx": 9861, "target": 0, "func": "static int tipc_nl_compat_name_table_dump_header ( struct tipc_nl_compat_msg * msg ) {\n int i ;\n u32 depth ;\n struct tipc_name_table_query * ntq ;\n static const char * const header [ ] = {\n \"Type \" , \"Lower Upper \" , \"Port Identity \" , \"Publication Scope\" }\n ;\n ntq = ( struct tipc_name_table_query * ) TLV_DATA ( msg -> req ) ;\n depth = ntohl ( ntq -> depth ) ;\n if ( depth > 4 ) depth = 4 ;\n for ( i = 0 ;\n i < depth ;\n i ++ ) tipc_tlv_sprintf ( msg -> rep , header [ i ] ) ;\n tipc_tlv_sprintf ( msg -> rep , \"\\n\" ) ;\n return 0 ;\n }"}
{"idx": 9862, "target": 1, "func": "static void dissect_zcl_pwr_prof_pwrprofstatersp ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree * sub_tree = NULL ;\n guint i ;\n guint8 power_profile_count ;\n power_profile_count = tvb_get_guint8 ( tvb , * offset ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_pwr_prof_count , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n for ( i = 0 ;\n i < power_profile_count ;\n i ++ ) {\n sub_tree = proto_tree_add_subtree_format ( tree , tvb , * offset , 1 , ett_zbee_zcl_pwr_prof_pwrprofiles [ i ] , NULL , \"Power Profile #%u\" , i ) ;\n dissect_zcl_power_profile ( tvb , sub_tree , offset ) ;\n }\n }"}
{"idx": 9863, "target": 0, "func": "static TX_MODE read_tx_mode ( vp9_reader * r ) {\n TX_MODE tx_mode = vp9_read_literal ( r , 2 ) ;\n if ( tx_mode == ALLOW_32X32 ) tx_mode += vp9_read_bit ( r ) ;\n return tx_mode ;\n }"}
{"idx": 9864, "target": 0, "func": "static void comp_ppf_coeff ( G723_1_Context * p , int offset , int pitch_lag , PPFParam * ppf , enum Rate cur_rate ) {\n int16_t scale ;\n int i ;\n int temp1 , temp2 ;\n int energy [ 5 ] = {\n 0 , 0 , 0 , 0 , 0 }\n ;\n int16_t * buf = p -> audio + LPC_ORDER + offset ;\n int fwd_lag = autocorr_max ( buf , offset , & energy [ 1 ] , pitch_lag , SUBFRAME_LEN , 1 ) ;\n int back_lag = autocorr_max ( buf , offset , & energy [ 3 ] , pitch_lag , SUBFRAME_LEN , - 1 ) ;\n ppf -> index = 0 ;\n ppf -> opt_gain = 0 ;\n ppf -> sc_gain = 0x7fff ;\n if ( ! back_lag && ! fwd_lag ) return ;\n energy [ 0 ] = dot_product ( buf , buf , SUBFRAME_LEN ) ;\n if ( fwd_lag ) energy [ 2 ] = dot_product ( buf + fwd_lag , buf + fwd_lag , SUBFRAME_LEN ) ;\n if ( back_lag ) energy [ 4 ] = dot_product ( buf - back_lag , buf - back_lag , SUBFRAME_LEN ) ;\n temp1 = 0 ;\n for ( i = 0 ;\n i < 5 ;\n i ++ ) temp1 = FFMAX ( energy [ i ] , temp1 ) ;\n scale = normalize_bits ( temp1 , 31 ) ;\n for ( i = 0 ;\n i < 5 ;\n i ++ ) energy [ i ] = ( energy [ i ] << scale ) >> 16 ;\n if ( fwd_lag && ! back_lag ) {\n comp_ppf_gains ( fwd_lag , ppf , cur_rate , energy [ 0 ] , energy [ 1 ] , energy [ 2 ] ) ;\n }\n else if ( ! fwd_lag ) {\n comp_ppf_gains ( - back_lag , ppf , cur_rate , energy [ 0 ] , energy [ 3 ] , energy [ 4 ] ) ;\n }\n else {\n temp1 = energy [ 4 ] * ( ( energy [ 1 ] * energy [ 1 ] + ( 1 << 14 ) ) >> 15 ) ;\n temp2 = energy [ 2 ] * ( ( energy [ 3 ] * energy [ 3 ] + ( 1 << 14 ) ) >> 15 ) ;\n if ( temp1 >= temp2 ) {\n comp_ppf_gains ( fwd_lag , ppf , cur_rate , energy [ 0 ] , energy [ 1 ] , energy [ 2 ] ) ;\n }\n else {\n comp_ppf_gains ( - back_lag , ppf , cur_rate , energy [ 0 ] , energy [ 3 ] , energy [ 4 ] ) ;\n }\n }\n }"}
{"idx": 9865, "target": 0, "func": "static int tipc_nl_compat_link_stat_dump ( struct tipc_nl_compat_msg * msg , struct nlattr * * attrs ) {\n char * name ;\n struct nlattr * link [ TIPC_NLA_LINK_MAX + 1 ] ;\n struct nlattr * prop [ TIPC_NLA_PROP_MAX + 1 ] ;\n struct nlattr * stats [ TIPC_NLA_STATS_MAX + 1 ] ;\n int err ;\n if ( ! attrs [ TIPC_NLA_LINK ] ) return - EINVAL ;\n err = nla_parse_nested ( link , TIPC_NLA_LINK_MAX , attrs [ TIPC_NLA_LINK ] , NULL ) ;\n if ( err ) return err ;\n if ( ! link [ TIPC_NLA_LINK_PROP ] ) return - EINVAL ;\n err = nla_parse_nested ( prop , TIPC_NLA_PROP_MAX , link [ TIPC_NLA_LINK_PROP ] , NULL ) ;\n if ( err ) return err ;\n if ( ! link [ TIPC_NLA_LINK_STATS ] ) return - EINVAL ;\n err = nla_parse_nested ( stats , TIPC_NLA_STATS_MAX , link [ TIPC_NLA_LINK_STATS ] , NULL ) ;\n if ( err ) return err ;\n name = ( char * ) TLV_DATA ( msg -> req ) ;\n if ( strcmp ( name , nla_data ( link [ TIPC_NLA_LINK_NAME ] ) ) != 0 ) return 0 ;\n tipc_tlv_sprintf ( msg -> rep , \"\\nLink <%s>\\n\" , nla_data ( link [ TIPC_NLA_LINK_NAME ] ) ) ;\n if ( link [ TIPC_NLA_LINK_BROADCAST ] ) {\n __fill_bc_link_stat ( msg , prop , stats ) ;\n return 0 ;\n }\n if ( link [ TIPC_NLA_LINK_ACTIVE ] ) tipc_tlv_sprintf ( msg -> rep , \" ACTIVE\" ) ;\n else if ( link [ TIPC_NLA_LINK_UP ] ) tipc_tlv_sprintf ( msg -> rep , \" STANDBY\" ) ;\n else tipc_tlv_sprintf ( msg -> rep , \" DEFUNCT\" ) ;\n tipc_tlv_sprintf ( msg -> rep , \" MTU:%u Priority:%u\" , nla_get_u32 ( link [ TIPC_NLA_LINK_MTU ] ) , nla_get_u32 ( prop [ TIPC_NLA_PROP_PRIO ] ) ) ;\n tipc_tlv_sprintf ( msg -> rep , \" Tolerance:%u ms Window:%u packets\\n\" , nla_get_u32 ( prop [ TIPC_NLA_PROP_TOL ] ) , nla_get_u32 ( prop [ TIPC_NLA_PROP_WIN ] ) ) ;\n tipc_tlv_sprintf ( msg -> rep , \" RX packets:%u fragments:%u/%u bundles:%u/%u\\n\" , nla_get_u32 ( link [ TIPC_NLA_LINK_RX ] ) - nla_get_u32 ( stats [ TIPC_NLA_STATS_RX_INFO ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_RX_FRAGMENTS ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_RX_FRAGMENTED ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_RX_BUNDLES ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_RX_BUNDLED ] ) ) ;\n tipc_tlv_sprintf ( msg -> rep , \" TX packets:%u fragments:%u/%u bundles:%u/%u\\n\" , nla_get_u32 ( link [ TIPC_NLA_LINK_TX ] ) - nla_get_u32 ( stats [ TIPC_NLA_STATS_TX_INFO ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_TX_FRAGMENTS ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_TX_FRAGMENTED ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_TX_BUNDLES ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_TX_BUNDLED ] ) ) ;\n tipc_tlv_sprintf ( msg -> rep , \" TX profile sample:%u packets average:%u octets\\n\" , nla_get_u32 ( stats [ TIPC_NLA_STATS_MSG_LEN_CNT ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_MSG_LEN_TOT ] ) / nla_get_u32 ( stats [ TIPC_NLA_STATS_MSG_PROF_TOT ] ) ) ;\n tipc_tlv_sprintf ( msg -> rep , \" 0-64:%u%% -256:%u%% -1024:%u%% -4096:%u%% \" , perc ( nla_get_u32 ( stats [ TIPC_NLA_STATS_MSG_LEN_P0 ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_MSG_PROF_TOT ] ) ) , perc ( nla_get_u32 ( stats [ TIPC_NLA_STATS_MSG_LEN_P1 ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_MSG_PROF_TOT ] ) ) , perc ( nla_get_u32 ( stats [ TIPC_NLA_STATS_MSG_LEN_P2 ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_MSG_PROF_TOT ] ) ) , perc ( nla_get_u32 ( stats [ TIPC_NLA_STATS_MSG_LEN_P3 ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_MSG_PROF_TOT ] ) ) ) ;\n tipc_tlv_sprintf ( msg -> rep , \"-16384:%u%% -32768:%u%% -66000:%u%%\\n\" , perc ( nla_get_u32 ( stats [ TIPC_NLA_STATS_MSG_LEN_P4 ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_MSG_PROF_TOT ] ) ) , perc ( nla_get_u32 ( stats [ TIPC_NLA_STATS_MSG_LEN_P5 ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_MSG_PROF_TOT ] ) ) , perc ( nla_get_u32 ( stats [ TIPC_NLA_STATS_MSG_LEN_P6 ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_MSG_PROF_TOT ] ) ) ) ;\n tipc_tlv_sprintf ( msg -> rep , \" RX states:%u probes:%u naks:%u defs:%u dups:%u\\n\" , nla_get_u32 ( stats [ TIPC_NLA_STATS_RX_STATES ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_RX_PROBES ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_RX_NACKS ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_RX_DEFERRED ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_DUPLICATES ] ) ) ;\n tipc_tlv_sprintf ( msg -> rep , \" TX states:%u probes:%u naks:%u acks:%u dups:%u\\n\" , nla_get_u32 ( stats [ TIPC_NLA_STATS_TX_STATES ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_TX_PROBES ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_TX_NACKS ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_TX_ACKS ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_RETRANSMITTED ] ) ) ;\n tipc_tlv_sprintf ( msg -> rep , \" Congestion link:%u Send queue max:%u avg:%u\" , nla_get_u32 ( stats [ TIPC_NLA_STATS_LINK_CONGS ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_MAX_QUEUE ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_AVG_QUEUE ] ) ) ;\n return 0 ;\n }"}
{"idx": 9866, "target": 0, "func": "static void * prplcb_notify_userinfo ( PurpleConnection * gc , const char * who , PurpleNotifyUserInfo * user_info ) {\n struct im_connection * ic = purple_ic_by_gc ( gc ) ;\n GString * info = g_string_new ( \"\" ) ;\n GList * l = purple_notify_user_info_get_entries ( user_info ) ;\n char * key ;\n const char * value ;\n int n ;\n while ( l ) {\n PurpleNotifyUserInfoEntry * e = l -> data ;\n switch ( purple_notify_user_info_entry_get_type ( e ) ) {\n case PURPLE_NOTIFY_USER_INFO_ENTRY_PAIR : case PURPLE_NOTIFY_USER_INFO_ENTRY_SECTION_HEADER : key = g_strdup ( purple_notify_user_info_entry_get_label ( e ) ) ;\n value = purple_notify_user_info_entry_get_value ( e ) ;\n if ( key ) {\n strip_html ( key ) ;\n g_string_append_printf ( info , \"%s: \" , key ) ;\n if ( value ) {\n n = strlen ( value ) - 1 ;\n while ( g_ascii_isspace ( value [ n ] ) ) {\n n -- ;\n }\n g_string_append_len ( info , value , n + 1 ) ;\n }\n g_string_append_c ( info , '\\n' ) ;\n g_free ( key ) ;\n }\n break ;\n case PURPLE_NOTIFY_USER_INFO_ENTRY_SECTION_BREAK : g_string_append ( info , \"------------------------\\n\" ) ;\n break ;\n }\n l = l -> next ;\n }\n imcb_log ( ic , \"User %s info:\\n%s\" , who , info -> str ) ;\n g_string_free ( info , TRUE ) ;\n return NULL ;\n }"}
{"idx": 9867, "target": 0, "func": "static void test_subqueries_ref ( ) {\n MYSQL_STMT * stmt ;\n int rc , i ;\n const char * query = \"SELECT a as ccc from t1 outr where a+1=(SELECT 1+outr.a from t1 where outr.a+1=a+1 and a=1)\" ;\n myheader ( \"test_subqueries_ref\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE t1 (a int);\n\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t1 values (1), (2), (3), (4), (5);\n\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( rc == 1 ) ;\n }\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"DROP TABLE t1\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 9868, "target": 1, "func": "apr_status_t modsecurity_tx_init ( modsec_rec * msr ) {\n const char * s = NULL ;\n const apr_array_header_t * arr ;\n char * semicolon = NULL ;\n char * comma = NULL ;\n apr_table_entry_t * te ;\n int i ;\n apr_pool_cleanup_register ( msr -> mp , msr , modsecurity_tx_cleanup , apr_pool_cleanup_null ) ;\n msr -> request_content_length = - 1 ;\n s = apr_table_get ( msr -> request_headers , \"Content-Length\" ) ;\n if ( s != NULL ) {\n msr -> request_content_length = strtol ( s , NULL , 10 ) ;\n }\n msr -> reqbody_chunked = 0 ;\n msr -> reqbody_should_exist = 0 ;\n if ( msr -> request_content_length == - 1 ) {\n char * transfer_encoding = ( char * ) apr_table_get ( msr -> request_headers , \"Transfer-Encoding\" ) ;\n if ( ( transfer_encoding != NULL ) && ( strstr ( transfer_encoding , \"chunked\" ) != NULL ) ) {\n msr -> reqbody_should_exist = 1 ;\n msr -> reqbody_chunked = 1 ;\n }\n }\n else {\n msr -> reqbody_should_exist = 1 ;\n }\n msr -> request_content_type = NULL ;\n s = apr_table_get ( msr -> request_headers , \"Content-Type\" ) ;\n if ( s != NULL ) msr -> request_content_type = s ;\n if ( ( msr -> request_content_type != NULL ) && ( strncasecmp ( msr -> request_content_type , \"application/x-www-form-urlencoded\" , 33 ) == 0 ) ) {\n msr -> msc_reqbody_storage = MSC_REQBODY_MEMORY ;\n msr -> msc_reqbody_spilltodisk = 0 ;\n msr -> msc_reqbody_processor = \"URLENCODED\" ;\n }\n else {\n if ( ( msr -> request_content_length != - 1 ) && ( msr -> request_content_length > msr -> txcfg -> reqbody_inmemory_limit ) ) {\n msr -> msc_reqbody_storage = MSC_REQBODY_DISK ;\n }\n msr -> msc_reqbody_storage = MSC_REQBODY_MEMORY ;\n msr -> msc_reqbody_spilltodisk = 1 ;\n if ( msr -> request_content_type != NULL ) {\n if ( strncasecmp ( msr -> request_content_type , \"multipart/form-data\" , 19 ) == 0 ) {\n msr -> msc_reqbody_processor = \"MULTIPART\" ;\n }\n }\n }\n if ( msr -> txcfg -> reqbody_buffering != REQUEST_BODY_FORCEBUF_OFF ) {\n msr -> msc_reqbody_storage = MSC_REQBODY_MEMORY ;\n msr -> msc_reqbody_spilltodisk = 0 ;\n }\n msr -> arguments = apr_table_make ( msr -> mp , 32 ) ;\n if ( msr -> arguments == NULL ) return - 1 ;\n if ( msr -> query_string != NULL ) {\n int invalid_count = 0 ;\n if ( parse_arguments ( msr , msr -> query_string , strlen ( msr -> query_string ) , msr -> txcfg -> argument_separator , \"QUERY_STRING\" , msr -> arguments , & invalid_count ) < 0 ) {\n msr_log ( msr , 1 , \"Initialisation: Error occurred while parsing QUERY_STRING arguments.\" ) ;\n return - 1 ;\n }\n if ( invalid_count ) {\n msr -> urlencoded_error = 1 ;\n }\n }\n msr -> arguments_to_sanitize = apr_table_make ( msr -> mp , 16 ) ;\n if ( msr -> arguments_to_sanitize == NULL ) return - 1 ;\n msr -> request_headers_to_sanitize = apr_table_make ( msr -> mp , 16 ) ;\n if ( msr -> request_headers_to_sanitize == NULL ) return - 1 ;\n msr -> response_headers_to_sanitize = apr_table_make ( msr -> mp , 16 ) ;\n if ( msr -> response_headers_to_sanitize == NULL ) return - 1 ;\n msr -> pattern_to_sanitize = apr_table_make ( msr -> mp , 32 ) ;\n if ( msr -> pattern_to_sanitize == NULL ) return - 1 ;\n msr -> removed_targets = apr_table_make ( msr -> mp , 16 ) ;\n if ( msr -> removed_targets == NULL ) return - 1 ;\n msr -> request_cookies = apr_table_make ( msr -> mp , 16 ) ;\n if ( msr -> request_cookies == NULL ) return - 1 ;\n msr -> matched_vars = apr_table_make ( msr -> mp , 8 ) ;\n if ( msr -> matched_vars == NULL ) return - 1 ;\n apr_table_clear ( msr -> matched_vars ) ;\n msr -> perf_rules = apr_table_make ( msr -> mp , 8 ) ;\n if ( msr -> perf_rules == NULL ) return - 1 ;\n apr_table_clear ( msr -> perf_rules ) ;\n arr = apr_table_elts ( msr -> request_headers ) ;\n te = ( apr_table_entry_t * ) arr -> elts ;\n for ( i = 0 ;\n i < arr -> nelts ;\n i ++ ) {\n if ( strcasecmp ( te [ i ] . key , \"Cookie\" ) == 0 ) {\n if ( msr -> txcfg -> cookie_format == COOKIES_V0 ) {\n semicolon = apr_pstrdup ( msr -> mp , te [ i ] . val ) ;\n while ( ( * semicolon != 0 ) && ( * semicolon != ';\n' ) ) semicolon ++ ;\n if ( * semicolon == ';\n' ) {\n parse_cookies_v0 ( msr , te [ i ] . val , msr -> request_cookies , \";\n\" ) ;\n }\n else {\n comma = apr_pstrdup ( msr -> mp , te [ i ] . val ) ;\n while ( ( * comma != 0 ) && ( * comma != ',' ) ) comma ++ ;\n if ( * comma == ',' ) {\n comma ++ ;\n if ( * comma == 0x20 ) {\n if ( msr -> txcfg -> debuglog_level >= 5 ) {\n msr_log ( msr , 5 , \"Cookie v0 parser: Using comma as a separator. Semi-colon was not identified!\" ) ;\n }\n parse_cookies_v0 ( msr , te [ i ] . val , msr -> request_cookies , \",\" ) ;\n }\n else {\n parse_cookies_v0 ( msr , te [ i ] . val , msr -> request_cookies , \";\n\" ) ;\n }\n }\n else {\n parse_cookies_v0 ( msr , te [ i ] . val , msr -> request_cookies , \";\n\" ) ;\n }\n }\n }\n else {\n parse_cookies_v1 ( msr , te [ i ] . val , msr -> request_cookies ) ;\n }\n }\n }\n msr -> tx_vars = apr_table_make ( msr -> mp , 32 ) ;\n if ( msr -> tx_vars == NULL ) return - 1 ;\n msr -> geo_vars = apr_table_make ( msr -> mp , 8 ) ;\n if ( msr -> geo_vars == NULL ) return - 1 ;\n msr -> collections_original = apr_table_make ( msr -> mp , 8 ) ;\n if ( msr -> collections_original == NULL ) return - 1 ;\n msr -> collections = apr_table_make ( msr -> mp , 8 ) ;\n if ( msr -> collections == NULL ) return - 1 ;\n msr -> collections_dirty = apr_table_make ( msr -> mp , 8 ) ;\n if ( msr -> collections_dirty == NULL ) return - 1 ;\n msr -> tcache = NULL ;\n msr -> tcache_items = 0 ;\n msr -> matched_rules = apr_array_make ( msr -> mp , 16 , sizeof ( void * ) ) ;\n if ( msr -> matched_rules == NULL ) return - 1 ;\n msr -> matched_var = ( msc_string * ) apr_pcalloc ( msr -> mp , sizeof ( msc_string ) ) ;\n if ( msr -> matched_var == NULL ) return - 1 ;\n msr -> highest_severity = 255 ;\n msr -> removed_rules = apr_array_make ( msr -> mp , 16 , sizeof ( char * ) ) ;\n if ( msr -> removed_rules == NULL ) return - 1 ;\n msr -> removed_rules_tag = apr_array_make ( msr -> mp , 16 , sizeof ( char * ) ) ;\n if ( msr -> removed_rules_tag == NULL ) return - 1 ;\n msr -> removed_rules_msg = apr_array_make ( msr -> mp , 16 , sizeof ( char * ) ) ;\n if ( msr -> removed_rules_msg == NULL ) return - 1 ;\n return 1 ;\n }"}
{"idx": 9869, "target": 0, "func": "int qemuMonitorTextAddPCINetwork ( qemuMonitorPtr mon , const char * nicstr , virDomainDevicePCIAddress * guestAddr ) {\n char * cmd ;\n char * reply = NULL ;\n int ret = - 1 ;\n if ( virAsprintf ( & cmd , \"pci_add pci_addr=auto nic %s\" , nicstr ) < 0 ) {\n virReportOOMError ( ) ;\n return - 1 ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"failed to add NIC with '%s'\" ) , cmd ) ;\n goto cleanup ;\n }\n if ( qemuMonitorTextParsePciAddReply ( mon , reply , guestAddr ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"parsing pci_add reply failed: %s\" ) , reply ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( reply ) ;\n VIR_FREE ( cmd ) ;\n return ret ;\n }"}
{"idx": 9870, "target": 0, "func": "static int dissect_pvfs2_geteattr_request ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"handle\" , NULL ) ;\n offset = dissect_pvfs_fs_id ( tvb , tree , offset ) ;\n offset += 4 ;\n offset = dissect_ds_keyval_array ( tvb , tree , offset ) ;\n return offset ;\n }"}
{"idx": 9871, "target": 0, "func": "proto_item * proto_tree_add_time_format_value ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , nstime_t * value_ptr , const char * format , ... ) {\n proto_item * pi ;\n va_list ap ;\n pi = proto_tree_add_time ( tree , hfindex , tvb , start , length , value_ptr ) ;\n if ( pi != tree ) {\n va_start ( ap , format ) ;\n proto_tree_set_representation_value ( pi , format , ap ) ;\n va_end ( ap ) ;\n }\n return pi ;\n }"}
{"idx": 9872, "target": 0, "func": "static int dissect_h245_ME_repeatCount ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_ME_repeatCount , ME_repeatCount_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 9873, "target": 0, "func": "static int evdns_request_data_build ( const char * const name , const int name_len , const u16 trans_id , const u16 type , const u16 class , u8 * const buf , size_t buf_len ) {\n off_t j = 0 ;\n u16 _t ;\n APPEND16 ( trans_id ) ;\n APPEND16 ( 0x0100 ) ;\n APPEND16 ( 1 ) ;\n APPEND16 ( 0 ) ;\n APPEND16 ( 0 ) ;\n APPEND16 ( 0 ) ;\n j = dnsname_to_labels ( buf , buf_len , j , name , name_len , NULL ) ;\n if ( j < 0 ) {\n return ( int ) j ;\n }\n APPEND16 ( type ) ;\n APPEND16 ( class ) ;\n return ( int ) j ;\n overflow : return ( - 1 ) ;\n }"}
{"idx": 9874, "target": 0, "func": "void key_revoke ( struct key * key ) {\n struct timespec now ;\n time_t time ;\n key_check ( key ) ;\n down_write_nested ( & key -> sem , 1 ) ;\n if ( ! test_and_set_bit ( KEY_FLAG_REVOKED , & key -> flags ) && key -> type -> revoke ) key -> type -> revoke ( key ) ;\n now = current_kernel_time ( ) ;\n time = now . tv_sec ;\n if ( key -> revoked_at == 0 || key -> revoked_at > time ) {\n key -> revoked_at = time ;\n key_schedule_gc ( key -> revoked_at + key_gc_delay ) ;\n }\n up_write ( & key -> sem ) ;\n }"}
{"idx": 9875, "target": 0, "func": "static int mspack_fmap_write ( struct mspack_file * file , void * buffer , int bytes ) {\n struct mspack_handle * mspack_handle = ( struct mspack_handle * ) file ;\n size_t count ;\n off_t max_size ;\n if ( bytes < 0 || ! mspack_handle ) {\n cli_dbgmsg ( \"%s() err %d\\n\" , __func__ , __LINE__ ) ;\n return - 1 ;\n }\n if ( mspack_handle -> type == FILETYPE_FMAP ) {\n cli_dbgmsg ( \"%s() err %d\\n\" , __func__ , __LINE__ ) ;\n return - 1 ;\n }\n if ( ! bytes ) return 0 ;\n max_size = mspack_handle -> max_size ;\n if ( ! max_size ) return bytes ;\n max_size = max_size < ( off_t ) bytes ? max_size : ( off_t ) bytes ;\n mspack_handle -> max_size -= max_size ;\n count = fwrite ( buffer , max_size , 1 , mspack_handle -> f ) ;\n if ( count < 1 ) {\n cli_dbgmsg ( \"%s() err %m <%zd %d>\\n\" , __func__ , count , bytes ) ;\n return - 1 ;\n }\n return bytes ;\n }"}
{"idx": 9876, "target": 0, "func": "static gboolean proto_item_add_bitmask_tree ( proto_item * item , tvbuff_t * tvb , const int offset , const int len , const gint ett , const int * * fields , const int flags , gboolean first , gboolean use_parent_tree , proto_tree * tree , guint64 value ) {\n guint bitshift ;\n guint64 available_bits = 0 ;\n guint64 tmpval ;\n header_field_info * hf ;\n if ( len < 0 || len > 8 ) g_assert_not_reached ( ) ;\n bitshift = ( 8 - ( guint ) len ) * 8 ;\n available_bits = G_GUINT64_CONSTANT ( 0xFFFFFFFFFFFFFFFF ) >> bitshift ;\n if ( use_parent_tree == FALSE ) tree = proto_item_add_subtree ( item , ett ) ;\n while ( * fields ) {\n guint64 present_bits ;\n PROTO_REGISTRAR_GET_NTH ( * * fields , hf ) ;\n DISSECTOR_ASSERT_HINT ( hf -> bitmask != 0 , hf -> abbrev ) ;\n present_bits = available_bits & hf -> bitmask ;\n if ( present_bits != hf -> bitmask ) {\n fields ++ ;\n continue ;\n }\n switch ( hf -> type ) {\n case FT_INT8 : case FT_UINT8 : case FT_INT16 : case FT_UINT16 : case FT_INT24 : case FT_UINT24 : case FT_INT32 : case FT_UINT32 : proto_tree_add_uint ( tree , * * fields , tvb , offset , len , ( guint32 ) value ) ;\n break ;\n case FT_INT40 : case FT_UINT40 : case FT_INT48 : case FT_UINT48 : case FT_INT56 : case FT_UINT56 : case FT_INT64 : case FT_UINT64 : proto_tree_add_uint64 ( tree , * * fields , tvb , offset , len , value ) ;\n break ;\n case FT_BOOLEAN : proto_tree_add_boolean64 ( tree , * * fields , tvb , offset , len , value ) ;\n break ;\n default : DISSECTOR_ASSERT_NOT_REACHED ( ) ;\n break ;\n }\n if ( flags & BMT_NO_APPEND ) {\n fields ++ ;\n continue ;\n }\n tmpval = ( value & hf -> bitmask ) >> hfinfo_bitshift ( hf ) ;\n switch ( hf -> type ) {\n case FT_INT8 : case FT_UINT8 : case FT_INT16 : case FT_UINT16 : case FT_INT24 : case FT_UINT24 : case FT_INT32 : case FT_UINT32 : case FT_INT40 : case FT_UINT40 : case FT_INT48 : case FT_UINT48 : case FT_INT56 : case FT_UINT56 : case FT_INT64 : case FT_UINT64 : if ( hf -> display == BASE_CUSTOM ) {\n gchar lbl [ ITEM_LABEL_LENGTH ] ;\n const custom_fmt_func_t fmtfunc = ( const custom_fmt_func_t ) hf -> strings ;\n DISSECTOR_ASSERT ( fmtfunc ) ;\n fmtfunc ( lbl , ( guint32 ) tmpval ) ;\n proto_item_append_text ( item , \"%s%s: %s\" , first ? \"\" : \", \" , hf -> name , lbl ) ;\n first = FALSE ;\n }\n else if ( hf -> strings ) {\n proto_item_append_text ( item , \"%s%s: %s\" , first ? \"\" : \", \" , hf -> name , hf_try_val_to_str_const ( ( guint32 ) tmpval , hf , \"Unknown\" ) ) ;\n first = FALSE ;\n }\n else if ( ! ( flags & BMT_NO_INT ) ) {\n char buf [ 32 ] ;\n const char * out ;\n if ( ! first ) {\n proto_item_append_text ( item , \", \" ) ;\n }\n out = hfinfo_number_value_format ( hf , buf , ( guint32 ) tmpval ) ;\n proto_item_append_text ( item , \"%s: %s\" , hf -> name , out ) ;\n first = FALSE ;\n }\n break ;\n case FT_BOOLEAN : if ( hf -> strings && ! ( flags & BMT_NO_TFS ) ) {\n const struct true_false_string * tfs = ( const struct true_false_string * ) hf -> strings ;\n if ( tmpval ) {\n proto_item_append_text ( item , \"%s%s: %s\" , first ? \"\" : \", \" , hf -> name , tfs -> true_string ) ;\n first = FALSE ;\n }\n else if ( ! ( flags & BMT_NO_FALSE ) ) {\n proto_item_append_text ( item , \"%s%s: %s\" , first ? \"\" : \", \" , hf -> name , tfs -> false_string ) ;\n first = FALSE ;\n }\n }\n else if ( hf -> bitmask & value ) {\n proto_item_append_text ( item , \"%s%s\" , first ? \"\" : \", \" , hf -> name ) ;\n first = FALSE ;\n }\n break ;\n default : DISSECTOR_ASSERT_NOT_REACHED ( ) ;\n break ;\n }\n fields ++ ;\n }\n return first ;\n }"}
{"idx": 9877, "target": 0, "func": "inline int get_command_index ( char cmd_char ) {\n for ( uint i = 0 ;\n commands [ i ] . func ;\n i ++ ) if ( commands [ i ] . cmd_char == cmd_char ) return i ;\n return - 1 ;\n }"}
{"idx": 9878, "target": 0, "func": "static void write_bootloader ( CPUMIPSState * env , uint8_t * base , int64_t kernel_entry ) {\n uint32_t * p ;\n p = ( uint32_t * ) base ;\n stl_raw ( p ++ , 0x0bf00160 ) ;\n stl_raw ( p ++ , 0x00000000 ) ;\n stl_raw ( base + 0x500 , 0xbfc00580 ) ;\n stl_raw ( base + 0x504 , 0xbfc0083c ) ;\n stl_raw ( base + 0x520 , 0xbfc00580 ) ;\n stl_raw ( base + 0x52c , 0xbfc00800 ) ;\n stl_raw ( base + 0x534 , 0xbfc00808 ) ;\n stl_raw ( base + 0x538 , 0xbfc00800 ) ;\n stl_raw ( base + 0x53c , 0xbfc00800 ) ;\n stl_raw ( base + 0x540 , 0xbfc00800 ) ;\n stl_raw ( base + 0x544 , 0xbfc00800 ) ;\n stl_raw ( base + 0x548 , 0xbfc00800 ) ;\n stl_raw ( base + 0x54c , 0xbfc00800 ) ;\n stl_raw ( base + 0x550 , 0xbfc00800 ) ;\n stl_raw ( base + 0x554 , 0xbfc00800 ) ;\n p = ( uint32_t * ) ( base + 0x580 ) ;\n stl_raw ( p ++ , 0x24040002 ) ;\n stl_raw ( p ++ , 0x3c1d0000 | ( ( ( ENVP_ADDR - 64 ) >> 16 ) & 0xffff ) ) ;\n stl_raw ( p ++ , 0x37bd0000 | ( ( ENVP_ADDR - 64 ) & 0xffff ) ) ;\n stl_raw ( p ++ , 0x3c050000 | ( ( ENVP_ADDR >> 16 ) & 0xffff ) ) ;\n stl_raw ( p ++ , 0x34a50000 | ( ENVP_ADDR & 0xffff ) ) ;\n stl_raw ( p ++ , 0x3c060000 | ( ( ( ENVP_ADDR + 8 ) >> 16 ) & 0xffff ) ) ;\n stl_raw ( p ++ , 0x34c60000 | ( ( ENVP_ADDR + 8 ) & 0xffff ) ) ;\n stl_raw ( p ++ , 0x3c070000 | ( loaderparams . ram_size >> 16 ) ) ;\n stl_raw ( p ++ , 0x34e70000 | ( loaderparams . ram_size & 0xffff ) ) ;\n stl_raw ( p ++ , 0x3c09b400 ) ;\n # ifdef TARGET_WORDS_BIGENDIAN stl_raw ( p ++ , 0x3c08df00 ) ;\n # else stl_raw ( p ++ , 0x340800df ) ;\n # endif stl_raw ( p ++ , 0xad280068 ) ;\n stl_raw ( p ++ , 0x3c09bbe0 ) ;\n # ifdef TARGET_WORDS_BIGENDIAN stl_raw ( p ++ , 0x3c08c000 ) ;\n # else stl_raw ( p ++ , 0x340800c0 ) ;\n # endif stl_raw ( p ++ , 0xad280048 ) ;\n # ifdef TARGET_WORDS_BIGENDIAN stl_raw ( p ++ , 0x3c084000 ) ;\n # else stl_raw ( p ++ , 0x34080040 ) ;\n # endif stl_raw ( p ++ , 0xad280050 ) ;\n # ifdef TARGET_WORDS_BIGENDIAN stl_raw ( p ++ , 0x3c088000 ) ;\n # else stl_raw ( p ++ , 0x34080080 ) ;\n # endif stl_raw ( p ++ , 0xad280058 ) ;\n # ifdef TARGET_WORDS_BIGENDIAN stl_raw ( p ++ , 0x3c083f00 ) ;\n # else stl_raw ( p ++ , 0x3408003f ) ;\n # endif stl_raw ( p ++ , 0xad280060 ) ;\n # ifdef TARGET_WORDS_BIGENDIAN stl_raw ( p ++ , 0x3c08c100 ) ;\n # else stl_raw ( p ++ , 0x340800c1 ) ;\n # endif stl_raw ( p ++ , 0xad280080 ) ;\n # ifdef TARGET_WORDS_BIGENDIAN stl_raw ( p ++ , 0x3c085e00 ) ;\n # else stl_raw ( p ++ , 0x3408005e ) ;\n # endif stl_raw ( p ++ , 0xad280088 ) ;\n stl_raw ( p ++ , 0x3c1f0000 | ( ( kernel_entry >> 16 ) & 0xffff ) ) ;\n stl_raw ( p ++ , 0x37ff0000 | ( kernel_entry & 0xffff ) ) ;\n stl_raw ( p ++ , 0x03e00008 ) ;\n stl_raw ( p ++ , 0x00000000 ) ;\n p = ( uint32_t * ) ( base + 0x800 ) ;\n stl_raw ( p ++ , 0x03e00008 ) ;\n stl_raw ( p ++ , 0x24020000 ) ;\n stl_raw ( p ++ , 0x03e06821 ) ;\n stl_raw ( p ++ , 0x00805821 ) ;\n stl_raw ( p ++ , 0x00a05021 ) ;\n stl_raw ( p ++ , 0x91440000 ) ;\n stl_raw ( p ++ , 0x254a0001 ) ;\n stl_raw ( p ++ , 0x10800005 ) ;\n stl_raw ( p ++ , 0x00000000 ) ;\n stl_raw ( p ++ , 0x0ff0021c ) ;\n stl_raw ( p ++ , 0x00000000 ) ;\n stl_raw ( p ++ , 0x08000205 ) ;\n stl_raw ( p ++ , 0x00000000 ) ;\n stl_raw ( p ++ , 0x01a00008 ) ;\n stl_raw ( p ++ , 0x01602021 ) ;\n stl_raw ( p ++ , 0x03e06821 ) ;\n stl_raw ( p ++ , 0x00805821 ) ;\n stl_raw ( p ++ , 0x00a05021 ) ;\n stl_raw ( p ++ , 0x00c06021 ) ;\n stl_raw ( p ++ , 0x91440000 ) ;\n stl_raw ( p ++ , 0x0ff0021c ) ;\n stl_raw ( p ++ , 0x00000000 ) ;\n stl_raw ( p ++ , 0x254a0001 ) ;\n stl_raw ( p ++ , 0x258cffff ) ;\n stl_raw ( p ++ , 0x1580fffa ) ;\n stl_raw ( p ++ , 0x00000000 ) ;\n stl_raw ( p ++ , 0x01a00008 ) ;\n stl_raw ( p ++ , 0x01602021 ) ;\n stl_raw ( p ++ , 0x3c08b800 ) ;\n stl_raw ( p ++ , 0x350803f8 ) ;\n stl_raw ( p ++ , 0x91090005 ) ;\n stl_raw ( p ++ , 0x00000000 ) ;\n stl_raw ( p ++ , 0x31290040 ) ;\n stl_raw ( p ++ , 0x1120fffc ) ;\n stl_raw ( p ++ , 0x00000000 ) ;\n stl_raw ( p ++ , 0x03e00008 ) ;\n stl_raw ( p ++ , 0xa1040000 ) ;\n }"}
{"idx": 9879, "target": 0, "func": "const EVP_CIPHER * EVP_aes_ ## keylen ## _ ## mode ( void ) \\ {\n return & aes_ ## keylen ## _ ## mode ;\n }\n # 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_CAPABLE ( OPENSSL_armcap_P & ARMV7_NEON ) # endif # if defined ( VPAES_ASM ) # define VPAES_CAPABLE ( OPENSSL_armcap_P & ARMV7_NEON ) # endif # define HWAES_CAPABLE ( OPENSSL_armcap_P & ARMV8_AES ) # define HWAES_set_encrypt_key aes_v8_set_encrypt_key # define HWAES_set_decrypt_key aes_v8_set_decrypt_key # define HWAES_encrypt aes_v8_encrypt # define HWAES_decrypt aes_v8_decrypt # define HWAES_cbc_encrypt aes_v8_cbc_encrypt # define HWAES_ctr32_encrypt_blocks aes_v8_ctr32_encrypt_blocks # endif # endif # if defined ( HWAES_CAPABLE ) int HWAES_set_encrypt_key ( const unsigned char * userKey , const int bits , AES_KEY * key ) ;\n int HWAES_set_decrypt_key ( const unsigned char * userKey , const int bits , AES_KEY * key ) ;\n void HWAES_encrypt ( const unsigned char * in , unsigned char * out , const AES_KEY * key ) ;\n void HWAES_decrypt ( const unsigned char * in , unsigned char * out , const AES_KEY * key ) ;\n void HWAES_cbc_encrypt ( const unsigned char * in , unsigned char * out , size_t length , const AES_KEY * key , unsigned char * ivec , const int enc ) ;\n void HWAES_ctr32_encrypt_blocks ( const unsigned char * in , unsigned char * out , size_t len , const AES_KEY * key , const unsigned char ivec [ 16 ] ) ;\n void HWAES_xts_encrypt ( const unsigned char * inp , unsigned char * out , size_t len , const AES_KEY * key1 , const AES_KEY * key2 , const unsigned char iv [ 16 ] ) ;\n void HWAES_xts_decrypt ( const unsigned char * inp , unsigned char * out , size_t len , const AES_KEY * key1 , const AES_KEY * key2 , const unsigned char iv [ 16 ] ) ;\n # endif # define BLOCK_CIPHER_generic_pack ( nid , keylen , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 16 , 16 , cbc , cbc , CBC , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 16 , 0 , ecb , ecb , ECB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , ofb128 , ofb , OFB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb128 , cfb , CFB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb1 , cfb1 , CFB , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb8 , cfb8 , CFB , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , ctr , ctr , CTR , flags ) static int aes_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n int ret , mode ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n mode = EVP_CIPHER_CTX_mode ( ctx ) ;\n if ( ( mode == EVP_CIPH_ECB_MODE || mode == EVP_CIPH_CBC_MODE ) && ! enc ) {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_decrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n # endif }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CBC_MODE ) {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = ( cbc128_f ) bsaes_cbc_encrypt ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n }\n }\n else # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_encrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n else # endif # ifdef HWAES_ctr32_encrypt_blocks if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) HWAES_ctr32_encrypt_blocks ;\n else # endif ( void ) 0 ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CTR_MODE ) {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . ctr = ( ctr128_f ) bsaes_ctr32_encrypt_blocks ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n # ifdef AES_CTR_ASM if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) AES_ctr32_encrypt ;\n # endif }\n if ( ret < 0 ) {\n EVPerr ( EVP_F_AES_INIT_KEY , EVP_R_AES_KEY_SETUP_FAILED ) ;\n return 0 ;\n }\n return 1 ;\n }\n static int aes_cbc_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( dat -> stream . cbc ) ( * dat -> stream . cbc ) ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_encrypting ( ctx ) ) ;\n else if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) CRYPTO_cbc128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , dat -> block ) ;\n else CRYPTO_cbc128_decrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , dat -> block ) ;\n return 1 ;\n }\n static int aes_ecb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n size_t bl = EVP_CIPHER_CTX_block_size ( ctx ) ;\n size_t i ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( len < bl ) return 1 ;\n for ( i = 0 , len -= bl ;\n i <= len ;\n i += bl ) ( * dat -> block ) ( in + i , out + i , & dat -> ks ) ;\n return 1 ;\n }\n static int aes_ofb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_ofb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb8_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_8_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb1_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( EVP_CIPHER_CTX_test_flags ( ctx , EVP_CIPH_FLAG_LENGTH_BITS ) ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n while ( len >= MAXBITCHUNK ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , MAXBITCHUNK * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n len -= MAXBITCHUNK ;\n }\n if ( len ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n }\n return 1 ;\n }\n static int aes_ctr_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n unsigned int num = EVP_CIPHER_CTX_num ( ctx ) ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( dat -> stream . ctr ) CRYPTO_ctr128_encrypt_ctr32 ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> stream . ctr ) ;\n else CRYPTO_ctr128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n BLOCK_CIPHER_generic_pack ( NID_aes , 128 , 0 ) BLOCK_CIPHER_generic_pack ( NID_aes , 192 , 0 ) BLOCK_CIPHER_generic_pack ( NID_aes , 256 , 0 ) static int aes_gcm_cleanup ( EVP_CIPHER_CTX * c ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , c ) ;\n OPENSSL_cleanse ( & gctx -> gcm , sizeof ( gctx -> gcm ) ) ;\n if ( gctx -> iv != EVP_CIPHER_CTX_iv_noconst ( c ) ) OPENSSL_free ( gctx -> iv ) ;\n return 1 ;\n }\n static void ctr64_inc ( unsigned char * counter ) {\n int n = 8 ;\n unsigned char c ;\n do {\n -- n ;\n c = counter [ n ] ;\n ++ c ;\n counter [ n ] = c ;\n if ( c ) return ;\n }\n while ( n ) ;\n }\n static int aes_gcm_ctrl ( EVP_CIPHER_CTX * c , int type , int arg , void * ptr ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , c ) ;\n switch ( type ) {\n case EVP_CTRL_INIT : gctx -> key_set = 0 ;\n gctx -> iv_set = 0 ;\n gctx -> ivlen = EVP_CIPHER_CTX_iv_length ( c ) ;\n gctx -> iv = EVP_CIPHER_CTX_iv_noconst ( c ) ;\n gctx -> taglen = - 1 ;\n gctx -> iv_gen = 0 ;\n gctx -> tls_aad_len = - 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_IVLEN : if ( arg <= 0 ) return 0 ;\n if ( ( arg > EVP_MAX_IV_LENGTH ) && ( arg > gctx -> ivlen ) ) {\n if ( gctx -> iv != EVP_CIPHER_CTX_iv_noconst ( c ) ) OPENSSL_free ( gctx -> iv ) ;\n gctx -> iv = OPENSSL_malloc ( arg ) ;\n if ( gctx -> iv == NULL ) return 0 ;\n }\n gctx -> ivlen = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_TAG : if ( arg <= 0 || arg > 16 || EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n gctx -> taglen = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_GET_TAG : if ( arg <= 0 || arg > 16 || ! EVP_CIPHER_CTX_encrypting ( c ) || gctx -> taglen < 0 ) return 0 ;\n memcpy ( ptr , EVP_CIPHER_CTX_buf_noconst ( c ) , arg ) ;\n return 1 ;\n case EVP_CTRL_GCM_SET_IV_FIXED : if ( arg == - 1 ) {\n memcpy ( gctx -> iv , ptr , gctx -> ivlen ) ;\n gctx -> iv_gen = 1 ;\n return 1 ;\n }\n if ( ( arg < 4 ) || ( gctx -> ivlen - arg ) < 8 ) return 0 ;\n if ( arg ) memcpy ( gctx -> iv , ptr , arg ) ;\n if ( EVP_CIPHER_CTX_encrypting ( c ) && RAND_bytes ( gctx -> iv + arg , gctx -> ivlen - arg ) <= 0 ) return 0 ;\n gctx -> iv_gen = 1 ;\n return 1 ;\n case EVP_CTRL_GCM_IV_GEN : if ( gctx -> iv_gen == 0 || gctx -> key_set == 0 ) return 0 ;\n CRYPTO_gcm128_setiv ( & gctx -> gcm , gctx -> iv , gctx -> ivlen ) ;\n if ( arg <= 0 || arg > gctx -> ivlen ) arg = gctx -> ivlen ;\n memcpy ( ptr , gctx -> iv + gctx -> ivlen - arg , arg ) ;\n ctr64_inc ( gctx -> iv + gctx -> ivlen - 8 ) ;\n gctx -> iv_set = 1 ;\n return 1 ;\n case EVP_CTRL_GCM_SET_IV_INV : if ( gctx -> iv_gen == 0 || gctx -> key_set == 0 || EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( gctx -> iv + gctx -> ivlen - arg , ptr , arg ) ;\n CRYPTO_gcm128_setiv ( & gctx -> gcm , gctx -> iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_TLS1_AAD : if ( arg != EVP_AEAD_TLS1_AAD_LEN ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n gctx -> tls_aad_len = arg ;\n {\n unsigned int len = EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] << 8 | EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] ;\n if ( len < EVP_GCM_TLS_EXPLICIT_IV_LEN ) return 0 ;\n len -= EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n if ( ! EVP_CIPHER_CTX_encrypting ( c ) ) {\n if ( len < EVP_GCM_TLS_TAG_LEN ) return 0 ;\n len -= EVP_GCM_TLS_TAG_LEN ;\n }\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] = len >> 8 ;\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] = len & 0xff ;\n }\n return EVP_GCM_TLS_TAG_LEN ;\n case EVP_CTRL_COPY : {\n EVP_CIPHER_CTX * out = ptr ;\n EVP_AES_GCM_CTX * gctx_out = EVP_C_DATA ( EVP_AES_GCM_CTX , out ) ;\n if ( gctx -> gcm . key ) {\n if ( gctx -> gcm . key != & gctx -> ks ) return 0 ;\n gctx_out -> gcm . key = & gctx_out -> ks ;\n }\n if ( gctx -> iv == EVP_CIPHER_CTX_iv_noconst ( c ) ) gctx_out -> iv = EVP_CIPHER_CTX_iv_noconst ( out ) ;\n else {\n gctx_out -> iv = OPENSSL_malloc ( gctx -> ivlen ) ;\n if ( gctx_out -> iv == NULL ) return 0 ;\n memcpy ( gctx_out -> iv , gctx -> iv , gctx -> ivlen ) ;\n }\n return 1 ;\n }\n default : return - 1 ;\n }\n }\n static int aes_gcm_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n if ( ! iv && ! key ) return 1 ;\n if ( key ) {\n do {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) HWAES_encrypt ) ;\n # ifdef HWAES_ctr32_encrypt_blocks gctx -> ctr = ( ctr128_f ) HWAES_ctr32_encrypt_blocks ;\n # else gctx -> ctr = NULL ;\n # endif break ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE ) {\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) AES_encrypt ) ;\n gctx -> ctr = ( ctr128_f ) bsaes_ctr32_encrypt_blocks ;\n break ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) vpaes_encrypt ) ;\n gctx -> ctr = NULL ;\n break ;\n }\n else # endif ( void ) 0 ;\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) AES_encrypt ) ;\n # ifdef AES_CTR_ASM gctx -> ctr = ( ctr128_f ) AES_ctr32_encrypt ;\n # else gctx -> ctr = NULL ;\n # endif }\n while ( 0 ) ;\n if ( iv == NULL && gctx -> iv_set ) iv = gctx -> iv ;\n if ( iv ) {\n CRYPTO_gcm128_setiv ( & gctx -> gcm , iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n }\n gctx -> key_set = 1 ;\n }\n else {\n if ( gctx -> key_set ) CRYPTO_gcm128_setiv ( & gctx -> gcm , iv , gctx -> ivlen ) ;\n else memcpy ( gctx -> iv , iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n gctx -> iv_gen = 0 ;\n }\n return 1 ;\n }\n static int aes_gcm_tls_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n int rv = - 1 ;\n if ( out != in || len < ( EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ) ) return - 1 ;\n if ( EVP_CIPHER_CTX_ctrl ( ctx , EVP_CIPHER_CTX_encrypting ( ctx ) ? EVP_CTRL_GCM_IV_GEN : EVP_CTRL_GCM_SET_IV_INV , EVP_GCM_TLS_EXPLICIT_IV_LEN , out ) <= 0 ) goto err ;\n if ( CRYPTO_gcm128_aad ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , gctx -> tls_aad_len ) ) goto err ;\n in += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n out += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n len -= EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ;\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 32 && AES_GCM_ASM ( gctx ) ) {\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_encrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) goto err ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 32 && AES_GCM_ASM2 ( gctx ) ) {\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) goto err ;\n }\n out += len ;\n CRYPTO_gcm128_tag ( & gctx -> gcm , out , EVP_GCM_TLS_TAG_LEN ) ;\n rv = len + EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ;\n }\n else {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 16 && AES_GCM_ASM ( gctx ) ) {\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_decrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) goto err ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 16 && AES_GCM_ASM2 ( gctx ) ) {\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) goto err ;\n }\n CRYPTO_gcm128_tag ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , EVP_GCM_TLS_TAG_LEN ) ;\n if ( CRYPTO_memcmp ( EVP_CIPHER_CTX_buf_noconst ( ctx ) , in + len , EVP_GCM_TLS_TAG_LEN ) ) {\n OPENSSL_cleanse ( out , len ) ;\n goto err ;\n }\n rv = len ;\n }\n err : gctx -> iv_set = 0 ;\n gctx -> tls_aad_len = - 1 ;\n return rv ;\n }\n static int aes_gcm_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n if ( ! gctx -> key_set ) return - 1 ;\n if ( gctx -> tls_aad_len >= 0 ) return aes_gcm_tls_cipher ( ctx , out , in , len ) ;\n if ( ! gctx -> iv_set ) return - 1 ;\n if ( in ) {\n if ( out == NULL ) {\n if ( CRYPTO_gcm128_aad ( & gctx -> gcm , in , len ) ) return - 1 ;\n }\n else if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 32 && AES_GCM_ASM ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_encrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) return - 1 ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 32 && AES_GCM_ASM2 ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) return - 1 ;\n }\n }\n else {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 16 && AES_GCM_ASM ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_decrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) return - 1 ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 16 && AES_GCM_ASM2 ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) return - 1 ;\n }\n }\n return len ;\n }\n else {\n if ( ! EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> taglen < 0 ) return - 1 ;\n if ( CRYPTO_gcm128_finish ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , gctx -> taglen ) != 0 ) return - 1 ;\n gctx -> iv_set = 0 ;\n return 0 ;\n }\n CRYPTO_gcm128_tag ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , 16 ) ;\n gctx -> taglen = 16 ;\n gctx -> iv_set = 0 ;\n return 0 ;\n }\n }\n # define CUSTOM_FLAGS ( EVP_CIPH_FLAG_DEFAULT_ASN1 \\ | EVP_CIPH_CUSTOM_IV | EVP_CIPH_FLAG_CUSTOM_CIPHER \\ | EVP_CIPH_ALWAYS_CALL_INIT | EVP_CIPH_CTRL_INIT \\ | EVP_CIPH_CUSTOM_COPY ) BLOCK_CIPHER_custom ( NID_aes , 128 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 192 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 256 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) static int aes_xts_ctrl ( EVP_CIPHER_CTX * c , int type , int arg , void * ptr ) {\n EVP_AES_XTS_CTX * xctx = EVP_C_DATA ( EVP_AES_XTS_CTX , c ) ;\n if ( type == EVP_CTRL_COPY ) {\n EVP_CIPHER_CTX * out = ptr ;\n EVP_AES_XTS_CTX * xctx_out = EVP_C_DATA ( EVP_AES_XTS_CTX , out ) ;\n if ( xctx -> xts . key1 ) {\n if ( xctx -> xts . key1 != & xctx -> ks1 ) return 0 ;\n xctx_out -> xts . key1 = & xctx_out -> ks1 ;\n }\n if ( xctx -> xts . key2 ) {\n if ( xctx -> xts . key2 != & xctx -> ks2 ) return 0 ;\n xctx_out -> xts . key2 = & xctx_out -> ks2 ;\n }\n return 1 ;\n }\n else if ( type != EVP_CTRL_INIT ) return - 1 ;\n xctx -> xts . key1 = NULL ;\n xctx -> xts . key2 = NULL ;\n return 1 ;\n }\n static int aes_xts_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n EVP_AES_XTS_CTX * xctx = EVP_C_DATA ( EVP_AES_XTS_CTX , ctx ) ;\n if ( ! iv && ! key ) return 1 ;\n if ( key ) do {\n # ifdef AES_XTS_ASM xctx -> stream = enc ? AES_xts_encrypt : AES_xts_decrypt ;\n # else xctx -> stream = NULL ;\n # endif # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n if ( enc ) {\n HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) HWAES_encrypt ;\n # ifdef HWAES_xts_encrypt xctx -> stream = HWAES_xts_encrypt ;\n # endif }\n else {\n HWAES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) HWAES_decrypt ;\n # ifdef HWAES_xts_decrypt xctx -> stream = HWAES_xts_decrypt ;\n # endif }\n HWAES_set_encrypt_key ( key + EVP_CIPHER_CTX_key_length ( ctx ) / 2 , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks2 . ks ) ;\n xctx -> xts . block2 = ( block128_f ) HWAES_encrypt ;\n xctx -> xts . key1 = & xctx -> ks1 ;\n break ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE ) xctx -> stream = enc ? bsaes_xts_encrypt : bsaes_xts_decrypt ;\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n if ( enc ) {\n vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) vpaes_encrypt ;\n }\n else {\n vpaes_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) vpaes_decrypt ;\n }\n vpaes_set_encrypt_key ( key + EVP_CIPHER_CTX_key_length ( ctx ) / 2 , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks2 . ks ) ;\n xctx -> xts . block2 = ( block128_f ) vpaes_encrypt ;\n xctx -> xts . key1 = & xctx -> ks1 ;\n break ;\n }\n else # endif ( void ) 0 ;\n if ( enc ) {\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) AES_encrypt ;\n }\n else {\n AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) AES_decrypt ;\n }\n AES_set_encrypt_key ( key + EVP_CIPHER_CTX_key_length ( ctx ) / 2 , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks2 . ks ) ;\n xctx -> xts . block2 = ( block128_f ) AES_encrypt ;\n xctx -> xts . key1 = & xctx -> ks1 ;\n }\n while ( 0 ) ;\n if ( iv ) {\n xctx -> xts . key2 = & xctx -> ks2 ;\n memcpy ( EVP_CIPHER_CTX_iv_noconst ( ctx ) , iv , 16 ) ;\n }\n return 1 ;\n }\n static int aes_xts_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_XTS_CTX * xctx = EVP_C_DATA ( EVP_AES_XTS_CTX , ctx ) ;\n if ( ! xctx -> xts . key1 || ! xctx -> xts . key2 ) return 0 ;\n if ( ! out || ! in || len < AES_BLOCK_SIZE ) return 0 ;\n if ( xctx -> stream ) ( * xctx -> stream ) ( in , out , len , xctx -> xts . key1 , xctx -> xts . key2 , EVP_CIPHER_CTX_iv_noconst ( ctx ) ) ;\n else if ( CRYPTO_xts128_encrypt ( & xctx -> xts , EVP_CIPHER_CTX_iv_noconst ( ctx ) , in , out , len , EVP_CIPHER_CTX_encrypting ( ctx ) ) ) return 0 ;\n return 1 ;\n }\n # define aes_xts_cleanup NULL # define XTS_FLAGS ( EVP_CIPH_FLAG_DEFAULT_ASN1 | EVP_CIPH_CUSTOM_IV \\ | EVP_CIPH_ALWAYS_CALL_INIT | EVP_CIPH_CTRL_INIT \\ | EVP_CIPH_CUSTOM_COPY ) BLOCK_CIPHER_custom ( NID_aes , 128 , 1 , 16 , xts , XTS , XTS_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 256 , 1 , 16 , xts , XTS , XTS_FLAGS ) static int aes_ccm_ctrl ( EVP_CIPHER_CTX * c , int type , int arg , void * ptr ) {\n EVP_AES_CCM_CTX * cctx = EVP_C_DATA ( EVP_AES_CCM_CTX , c ) ;\n switch ( type ) {\n case EVP_CTRL_INIT : cctx -> key_set = 0 ;\n cctx -> iv_set = 0 ;\n cctx -> L = 8 ;\n cctx -> M = 12 ;\n cctx -> tag_set = 0 ;\n cctx -> len_set = 0 ;\n cctx -> tls_aad_len = - 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_TLS1_AAD : if ( arg != EVP_AEAD_TLS1_AAD_LEN ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n cctx -> tls_aad_len = arg ;\n {\n uint16_t len = EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] << 8 | EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] ;\n if ( len < EVP_CCM_TLS_EXPLICIT_IV_LEN ) return 0 ;\n len -= EVP_CCM_TLS_EXPLICIT_IV_LEN ;\n if ( ! EVP_CIPHER_CTX_encrypting ( c ) ) {\n if ( len < cctx -> M ) return 0 ;\n len -= cctx -> M ;\n }\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] = len >> 8 ;\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] = len & 0xff ;\n }\n return cctx -> M ;\n case EVP_CTRL_CCM_SET_IV_FIXED : if ( arg != EVP_CCM_TLS_FIXED_IV_LEN ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_iv_noconst ( c ) , ptr , arg ) ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_IVLEN : arg = 15 - arg ;\n case EVP_CTRL_CCM_SET_L : if ( arg < 2 || arg > 8 ) return 0 ;\n cctx -> L = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_TAG : if ( ( arg & 1 ) || arg < 4 || arg > 16 ) return 0 ;\n if ( EVP_CIPHER_CTX_encrypting ( c ) && ptr ) return 0 ;\n if ( ptr ) {\n cctx -> tag_set = 1 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n }\n cctx -> M = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_GET_TAG : if ( ! EVP_CIPHER_CTX_encrypting ( c ) || ! cctx -> tag_set ) return 0 ;\n if ( ! CRYPTO_ccm128_tag ( & cctx -> ccm , ptr , ( size_t ) arg ) ) return 0 ;\n cctx -> tag_set = 0 ;\n cctx -> iv_set = 0 ;\n cctx -> len_set = 0 ;\n return 1 ;\n case EVP_CTRL_COPY : {\n EVP_CIPHER_CTX * out = ptr ;\n EVP_AES_CCM_CTX * cctx_out = EVP_C_DATA ( EVP_AES_CCM_CTX , out ) ;\n if ( cctx -> ccm . key ) {\n if ( cctx -> ccm . key != & cctx -> ks ) return 0 ;\n cctx_out -> ccm . key = & cctx_out -> ks ;\n }\n return 1 ;\n }\n default : return - 1 ;\n }\n }\n static int aes_ccm_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n EVP_AES_CCM_CTX * cctx = EVP_C_DATA ( EVP_AES_CCM_CTX , ctx ) ;\n if ( ! iv && ! key ) return 1 ;\n if ( key ) do {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & cctx -> ks . ks ) ;\n CRYPTO_ccm128_init ( & cctx -> ccm , cctx -> M , cctx -> L , & cctx -> ks , ( block128_f ) HWAES_encrypt ) ;\n cctx -> str = NULL ;\n cctx -> key_set = 1 ;\n break ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & cctx -> ks . ks ) ;\n CRYPTO_ccm128_init ( & cctx -> ccm , cctx -> M , cctx -> L , & cctx -> ks , ( block128_f ) vpaes_encrypt ) ;\n cctx -> str = NULL ;\n cctx -> key_set = 1 ;\n break ;\n }\n # endif AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & cctx -> ks . ks ) ;\n CRYPTO_ccm128_init ( & cctx -> ccm , cctx -> M , cctx -> L , & cctx -> ks , ( block128_f ) AES_encrypt ) ;\n cctx -> str = NULL ;\n cctx -> key_set = 1 ;\n }\n while ( 0 ) ;\n if ( iv ) {\n memcpy ( EVP_CIPHER_CTX_iv_noconst ( ctx ) , iv , 15 - cctx -> L ) ;\n cctx -> iv_set = 1 ;\n }\n return 1 ;\n }\n static int aes_ccm_tls_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_CCM_CTX * cctx = EVP_C_DATA ( EVP_AES_CCM_CTX , ctx ) ;\n CCM128_CONTEXT * ccm = & cctx -> ccm ;\n if ( out != in || len < ( EVP_CCM_TLS_EXPLICIT_IV_LEN + ( size_t ) cctx -> M ) ) return - 1 ;\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) memcpy ( out , EVP_CIPHER_CTX_buf_noconst ( ctx ) , EVP_CCM_TLS_EXPLICIT_IV_LEN ) ;\n memcpy ( EVP_CIPHER_CTX_iv_noconst ( ctx ) + EVP_CCM_TLS_FIXED_IV_LEN , in , EVP_CCM_TLS_EXPLICIT_IV_LEN ) ;\n len -= EVP_CCM_TLS_EXPLICIT_IV_LEN + cctx -> M ;\n if ( CRYPTO_ccm128_setiv ( ccm , EVP_CIPHER_CTX_iv_noconst ( ctx ) , 15 - cctx -> L , len ) ) return - 1 ;\n CRYPTO_ccm128_aad ( ccm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , cctx -> tls_aad_len ) ;\n in += EVP_CCM_TLS_EXPLICIT_IV_LEN ;\n out += EVP_CCM_TLS_EXPLICIT_IV_LEN ;\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( cctx -> str ? CRYPTO_ccm128_encrypt_ccm64 ( ccm , in , out , len , cctx -> str ) : CRYPTO_ccm128_encrypt ( ccm , in , out , len ) ) return - 1 ;\n if ( ! CRYPTO_ccm128_tag ( ccm , out + len , cctx -> M ) ) return - 1 ;\n return len + EVP_CCM_TLS_EXPLICIT_IV_LEN + cctx -> M ;\n }\n else {\n if ( cctx -> str ? ! CRYPTO_ccm128_decrypt_ccm64 ( ccm , in , out , len , cctx -> str ) : ! CRYPTO_ccm128_decrypt ( ccm , in , out , len ) ) {\n unsigned char tag [ 16 ] ;\n if ( CRYPTO_ccm128_tag ( ccm , tag , cctx -> M ) ) {\n if ( ! CRYPTO_memcmp ( tag , in + len , cctx -> M ) ) return len ;\n }\n }\n OPENSSL_cleanse ( out , len ) ;\n return - 1 ;\n }\n }\n static int aes_ccm_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_CCM_CTX * cctx = EVP_C_DATA ( EVP_AES_CCM_CTX , ctx ) ;\n CCM128_CONTEXT * ccm = & cctx -> ccm ;\n if ( ! cctx -> key_set ) return - 1 ;\n if ( cctx -> tls_aad_len >= 0 ) return aes_ccm_tls_cipher ( ctx , out , in , len ) ;\n if ( ! cctx -> iv_set ) return - 1 ;\n if ( ! EVP_CIPHER_CTX_encrypting ( ctx ) && ! cctx -> tag_set ) return - 1 ;\n if ( ! out ) {\n if ( ! in ) {\n if ( CRYPTO_ccm128_setiv ( ccm , EVP_CIPHER_CTX_iv_noconst ( ctx ) , 15 - cctx -> L , len ) ) return - 1 ;\n cctx -> len_set = 1 ;\n return len ;\n }\n if ( ! cctx -> len_set && len ) return - 1 ;\n CRYPTO_ccm128_aad ( ccm , in , len ) ;\n return len ;\n }\n if ( ! in ) return 0 ;\n if ( ! cctx -> len_set ) {\n if ( CRYPTO_ccm128_setiv ( ccm , EVP_CIPHER_CTX_iv_noconst ( ctx ) , 15 - cctx -> L , len ) ) return - 1 ;\n cctx -> len_set = 1 ;\n }\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( cctx -> str ? CRYPTO_ccm128_encrypt_ccm64 ( ccm , in , out , len , cctx -> str ) : CRYPTO_ccm128_encrypt ( ccm , in , out , len ) ) return - 1 ;\n cctx -> tag_set = 1 ;\n return len ;\n }\n else {\n int rv = - 1 ;\n if ( cctx -> str ? ! CRYPTO_ccm128_decrypt_ccm64 ( ccm , in , out , len , cctx -> str ) : ! CRYPTO_ccm128_decrypt ( ccm , in , out , len ) ) {\n unsigned char tag [ 16 ] ;\n if ( CRYPTO_ccm128_tag ( ccm , tag , cctx -> M ) ) {\n if ( ! CRYPTO_memcmp ( tag , EVP_CIPHER_CTX_buf_noconst ( ctx ) , cctx -> M ) ) rv = len ;\n }\n }\n if ( rv == - 1 ) OPENSSL_cleanse ( out , len ) ;\n cctx -> iv_set = 0 ;\n cctx -> tag_set = 0 ;\n cctx -> len_set = 0 ;\n return rv ;\n }\n }\n # define aes_ccm_cleanup NULL BLOCK_CIPHER_custom ( NID_aes , 128 , 1 , 12 , ccm , CCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 192 , 1 , 12 , ccm , CCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 256 , 1 , 12 , ccm , CCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS )"}
{"idx": 9880, "target": 0, "func": "static int dissect_h245_INTEGER_0_262143 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 262143U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 9881, "target": 0, "func": "static gpgme_error_t status_handler ( void * opaque , int fd ) {\n struct io_cb_data * data = ( struct io_cb_data * ) opaque ;\n engine_uiserver_t uiserver = ( engine_uiserver_t ) data -> handler_value ;\n gpgme_error_t err = 0 ;\n char * line ;\n size_t linelen ;\n do {\n err = assuan_read_line ( uiserver -> assuan_ctx , & line , & linelen ) ;\n if ( err ) {\n TRACE3 ( DEBUG_CTX , \"gpgme:status_handler\" , uiserver , \"fd 0x%x: error from assuan (%d) getting status line : %s\" , fd , err , gpg_strerror ( err ) ) ;\n }\n else if ( linelen >= 3 && line [ 0 ] == 'E' && line [ 1 ] == 'R' && line [ 2 ] == 'R' && ( line [ 3 ] == '\\0' || line [ 3 ] == ' ' ) ) {\n if ( line [ 3 ] == ' ' ) err = atoi ( & line [ 4 ] ) ;\n if ( ! err ) err = gpg_error ( GPG_ERR_GENERAL ) ;\n TRACE2 ( DEBUG_CTX , \"gpgme:status_handler\" , uiserver , \"fd 0x%x: ERR line - mapped to: %s\" , fd , err ? gpg_strerror ( err ) : \"ok\" ) ;\n }\n else if ( linelen >= 2 && line [ 0 ] == 'O' && line [ 1 ] == 'K' && ( line [ 2 ] == '\\0' || line [ 2 ] == ' ' ) ) {\n if ( uiserver -> status . fnc ) err = uiserver -> status . fnc ( uiserver -> status . fnc_value , GPGME_STATUS_EOF , \"\" ) ;\n if ( ! err && uiserver -> colon . fnc && uiserver -> colon . any ) {\n uiserver -> colon . any = 0 ;\n err = uiserver -> colon . fnc ( uiserver -> colon . fnc_value , NULL ) ;\n }\n TRACE2 ( DEBUG_CTX , \"gpgme:status_handler\" , uiserver , \"fd 0x%x: OK line - final status: %s\" , fd , err ? gpg_strerror ( err ) : \"ok\" ) ;\n _gpgme_io_close ( uiserver -> status_cb . fd ) ;\n return err ;\n }\n else if ( linelen > 2 && line [ 0 ] == 'D' && line [ 1 ] == ' ' && uiserver -> colon . fnc ) {\n char * src = line + 2 ;\n char * end = line + linelen ;\n char * dst ;\n char * * aline = & uiserver -> colon . attic . line ;\n int * alinelen = & uiserver -> colon . attic . linelen ;\n if ( uiserver -> colon . attic . linesize < * alinelen + linelen + 1 ) {\n char * newline = realloc ( * aline , * alinelen + linelen + 1 ) ;\n if ( ! newline ) err = gpg_error_from_syserror ( ) ;\n else {\n * aline = newline ;\n uiserver -> colon . attic . linesize = * alinelen + linelen + 1 ;\n }\n }\n if ( ! err ) {\n dst = * aline + * alinelen ;\n while ( ! err && src < end ) {\n if ( * src == '%' && src + 2 < end ) {\n ++ src ;\n * dst = _gpgme_hextobyte ( src ) ;\n ( * alinelen ) ++ ;\n src += 2 ;\n }\n else {\n * dst = * src ++ ;\n ( * alinelen ) ++ ;\n }\n if ( * dst == '\\n' ) {\n uiserver -> colon . any = 1 ;\n if ( * alinelen > 1 && * ( dst - 1 ) == '\\r' ) dst -- ;\n * dst = '\\0' ;\n err = uiserver -> colon . fnc ( uiserver -> colon . fnc_value , * aline ) ;\n if ( ! err ) {\n dst = * aline ;\n * alinelen = 0 ;\n }\n }\n else dst ++ ;\n }\n }\n TRACE2 ( DEBUG_CTX , \"gpgme:status_handler\" , uiserver , \"fd 0x%x: D line;\n final status: %s\" , fd , err ? gpg_strerror ( err ) : \"ok\" ) ;\n }\n else if ( linelen > 2 && line [ 0 ] == 'D' && line [ 1 ] == ' ' && uiserver -> inline_data ) {\n char * src = line + 2 ;\n char * end = line + linelen ;\n char * dst = src ;\n gpgme_ssize_t nwritten ;\n linelen = 0 ;\n while ( src < end ) {\n if ( * src == '%' && src + 2 < end ) {\n ++ src ;\n * dst ++ = _gpgme_hextobyte ( src ) ;\n src += 2 ;\n }\n else * dst ++ = * src ++ ;\n linelen ++ ;\n }\n src = line + 2 ;\n while ( linelen > 0 ) {\n nwritten = gpgme_data_write ( uiserver -> inline_data , src , linelen ) ;\n if ( ! nwritten || ( nwritten < 0 && errno != EINTR ) || nwritten > linelen ) {\n err = gpg_error_from_syserror ( ) ;\n break ;\n }\n src += nwritten ;\n linelen -= nwritten ;\n }\n TRACE2 ( DEBUG_CTX , \"gpgme:status_handler\" , uiserver , \"fd 0x%x: D inlinedata;\n final status: %s\" , fd , err ? gpg_strerror ( err ) : \"ok\" ) ;\n }\n else if ( linelen > 2 && line [ 0 ] == 'S' && line [ 1 ] == ' ' ) {\n char * rest ;\n gpgme_status_code_t r ;\n rest = strchr ( line + 2 , ' ' ) ;\n if ( ! rest ) rest = line + linelen ;\n else * ( rest ++ ) = 0 ;\n r = _gpgme_parse_status ( line + 2 ) ;\n if ( r >= 0 ) {\n if ( uiserver -> status . fnc ) err = uiserver -> status . fnc ( uiserver -> status . fnc_value , r , rest ) ;\n }\n else fprintf ( stderr , \"[UNKNOWN STATUS]%s %s\" , line + 2 , rest ) ;\n TRACE3 ( DEBUG_CTX , \"gpgme:status_handler\" , uiserver , \"fd 0x%x: S line (%s) - final status: %s\" , fd , line + 2 , err ? gpg_strerror ( err ) : \"ok\" ) ;\n }\n else if ( linelen >= 7 && line [ 0 ] == 'I' && line [ 1 ] == 'N' && line [ 2 ] == 'Q' && line [ 3 ] == 'U' && line [ 4 ] == 'I' && line [ 5 ] == 'R' && line [ 6 ] == 'E' && ( line [ 7 ] == '\\0' || line [ 7 ] == ' ' ) ) {\n char * keyword = line + 7 ;\n while ( * keyword == ' ' ) keyword ++ ;\n ;\n default_inq_cb ( uiserver , keyword ) ;\n assuan_write_line ( uiserver -> assuan_ctx , \"END\" ) ;\n }\n }\n while ( ! err && assuan_pending_line ( uiserver -> assuan_ctx ) ) ;\n return err ;\n }"}
{"idx": 9882, "target": 0, "func": "void vp9_init_me_luts ( ) {\n init_me_luts_bd ( sad_per_bit16lut_8 , sad_per_bit4lut_8 , QINDEX_RANGE , VPX_BITS_8 ) ;\n # if CONFIG_VP9_HIGHBITDEPTH init_me_luts_bd ( sad_per_bit16lut_10 , sad_per_bit4lut_10 , QINDEX_RANGE , VPX_BITS_10 ) ;\n init_me_luts_bd ( sad_per_bit16lut_12 , sad_per_bit4lut_12 , QINDEX_RANGE , VPX_BITS_12 ) ;\n # endif }"}
{"idx": 9883, "target": 0, "func": "static int readfull ( AVFormatContext * s , AVIOContext * pb , uint8_t * dst , int n ) {\n int ret = avio_read ( pb , dst , n ) ;\n if ( ret != n ) {\n if ( ret >= 0 ) memset ( dst + ret , 0 , n - ret ) ;\n else memset ( dst , 0 , n ) ;\n av_log ( s , AV_LOG_ERROR , \"Failed to fully read block\\n\" ) ;\n }\n return ret ;\n }"}
{"idx": 9884, "target": 1, "func": "SPL_METHOD ( DirectoryIterator , isDot ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n RETURN_BOOL ( spl_filesystem_is_dot ( intern -> u . dir . entry . d_name ) ) ;\n }"}
{"idx": 9885, "target": 0, "func": "bool check_column_grant_in_table_ref ( THD * thd , TABLE_LIST * table_ref , const char * name , uint length ) {\n GRANT_INFO * grant ;\n const char * db_name ;\n const char * table_name ;\n Security_context * sctx = test ( table_ref -> security_ctx ) ? table_ref -> security_ctx : thd -> security_ctx ;\n if ( table_ref -> view || table_ref -> field_translation ) {\n ulong view_privs ;\n grant = & ( table_ref -> grant ) ;\n db_name = table_ref -> view_db . str ;\n table_name = table_ref -> view_name . str ;\n if ( table_ref -> belong_to_view && thd -> lex -> sql_command == SQLCOM_SHOW_FIELDS ) {\n view_privs = get_column_grant ( thd , grant , db_name , table_name , name ) ;\n if ( view_privs & VIEW_ANY_ACL ) {\n table_ref -> belong_to_view -> allowed_show = TRUE ;\n return FALSE ;\n }\n table_ref -> belong_to_view -> allowed_show = FALSE ;\n my_message ( ER_VIEW_NO_EXPLAIN , ER ( ER_VIEW_NO_EXPLAIN ) , MYF ( 0 ) ) ;\n return TRUE ;\n }\n }\n else {\n TABLE * table = table_ref -> table ;\n grant = & ( table -> grant ) ;\n db_name = table -> s -> db . str ;\n table_name = table -> s -> table_name . str ;\n }\n if ( grant -> want_privilege ) return check_grant_column ( thd , grant , db_name , table_name , name , length , sctx ) ;\n else return FALSE ;\n }"}
{"idx": 9886, "target": 0, "func": "static void activation_start_timed_cancel ( ActivateParameters * parameters ) {\n parameters -> timed_wait_active = TRUE ;\n eel_timed_wait_start_with_duration ( DELAY_UNTIL_CANCEL_MSECS , cancel_activate_callback , parameters , parameters -> timed_wait_prompt , parameters -> parent_window ) ;\n }"}
{"idx": 9887, "target": 0, "func": "static inline int mutex_lock ( pthread_mutex_t * mutex ) {\n while ( pthread_mutex_trylock ( mutex ) ) ;\n return 0 ;\n }"}
{"idx": 9888, "target": 1, "func": "static int read_sbr_channel_pair_element ( AACContext * ac , SpectralBandReplication * sbr , GetBitContext * gb ) {\n if ( get_bits1 ( gb ) ) skip_bits ( gb , 8 ) ;\n if ( ( sbr -> bs_coupling = get_bits1 ( gb ) ) ) {\n if ( read_sbr_grid ( ac , sbr , gb , & sbr -> data [ 0 ] ) ) return - 1 ;\n copy_sbr_grid ( & sbr -> data [ 1 ] , & sbr -> data [ 0 ] ) ;\n read_sbr_dtdf ( sbr , gb , & sbr -> data [ 0 ] ) ;\n read_sbr_dtdf ( sbr , gb , & sbr -> data [ 1 ] ) ;\n read_sbr_invf ( sbr , gb , & sbr -> data [ 0 ] ) ;\n memcpy ( sbr -> data [ 1 ] . bs_invf_mode [ 1 ] , sbr -> data [ 1 ] . bs_invf_mode [ 0 ] , sizeof ( sbr -> data [ 1 ] . bs_invf_mode [ 0 ] ) ) ;\n memcpy ( sbr -> data [ 1 ] . bs_invf_mode [ 0 ] , sbr -> data [ 0 ] . bs_invf_mode [ 0 ] , sizeof ( sbr -> data [ 1 ] . bs_invf_mode [ 0 ] ) ) ;\n read_sbr_envelope ( sbr , gb , & sbr -> data [ 0 ] , 0 ) ;\n read_sbr_noise ( sbr , gb , & sbr -> data [ 0 ] , 0 ) ;\n read_sbr_envelope ( sbr , gb , & sbr -> data [ 1 ] , 1 ) ;\n read_sbr_noise ( sbr , gb , & sbr -> data [ 1 ] , 1 ) ;\n }\n else {\n if ( read_sbr_grid ( ac , sbr , gb , & sbr -> data [ 0 ] ) || read_sbr_grid ( ac , sbr , gb , & sbr -> data [ 1 ] ) ) return - 1 ;\n read_sbr_dtdf ( sbr , gb , & sbr -> data [ 0 ] ) ;\n read_sbr_dtdf ( sbr , gb , & sbr -> data [ 1 ] ) ;\n read_sbr_invf ( sbr , gb , & sbr -> data [ 0 ] ) ;\n read_sbr_invf ( sbr , gb , & sbr -> data [ 1 ] ) ;\n read_sbr_envelope ( sbr , gb , & sbr -> data [ 0 ] , 0 ) ;\n read_sbr_envelope ( sbr , gb , & sbr -> data [ 1 ] , 1 ) ;\n read_sbr_noise ( sbr , gb , & sbr -> data [ 0 ] , 0 ) ;\n read_sbr_noise ( sbr , gb , & sbr -> data [ 1 ] , 1 ) ;\n }\n if ( ( sbr -> data [ 0 ] . bs_add_harmonic_flag = get_bits1 ( gb ) ) ) get_bits1_vector ( gb , sbr -> data [ 0 ] . bs_add_harmonic , sbr -> n [ 1 ] ) ;\n if ( ( sbr -> data [ 1 ] . bs_add_harmonic_flag = get_bits1 ( gb ) ) ) get_bits1_vector ( gb , sbr -> data [ 1 ] . bs_add_harmonic , sbr -> n [ 1 ] ) ;\n return 0 ;\n }"}
{"idx": 9889, "target": 0, "func": "TEST_F ( WebUsbDetectorTest , TwoUsbDevicesWereThereBeforeAndThenRemovedAndNewUsbDeviceAdded ) {\n base : : string16 product_name_1 = base : : UTF8ToUTF16 ( kProductName_1 ) ;\n GURL landing_page_1 ( kLandingPage_1 ) ;\n scoped_refptr < device : : MockUsbDevice > device_1 ( new device : : MockUsbDevice ( 0 , 1 , \"Google\" , kProductName_1 , \"002\" , landing_page_1 ) ) ;\n std : : string guid_1 = device_1 -> guid ( ) ;\n base : : string16 product_name_2 = base : : UTF8ToUTF16 ( kProductName_2 ) ;\n GURL landing_page_2 ( kLandingPage_2 ) ;\n scoped_refptr < device : : MockUsbDevice > device_2 ( new device : : MockUsbDevice ( 3 , 4 , \"Google\" , kProductName_2 , \"005\" , landing_page_2 ) ) ;\n std : : string guid_2 = device_2 -> guid ( ) ;\n base : : string16 product_name_3 = base : : UTF8ToUTF16 ( kProductName_3 ) ;\n GURL landing_page_3 ( kLandingPage_3 ) ;\n scoped_refptr < device : : MockUsbDevice > device_3 ( new device : : MockUsbDevice ( 6 , 7 , \"Google\" , kProductName_3 , \"008\" , landing_page_3 ) ) ;\n std : : string guid_3 = device_3 -> guid ( ) ;\n device_client_ . usb_service ( ) -> AddDevice ( device_1 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_1 ) == nullptr ) ;\n device_client_ . usb_service ( ) -> AddDevice ( device_3 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_3 ) == nullptr ) ;\n Initialize ( ) ;\n device_client_ . usb_service ( ) -> RemoveDevice ( device_1 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_1 ) == nullptr ) ;\n device_client_ . usb_service ( ) -> AddDevice ( device_2 ) ;\n message_center : : Notification * notification = message_center_ -> FindVisibleNotificationById ( guid_2 ) ;\n ASSERT_TRUE ( notification != nullptr ) ;\n base : : string16 expected_title = base : : ASCIIToUTF16 ( \"Google Product B detected\" ) ;\n EXPECT_EQ ( expected_title , notification -> title ( ) ) ;\n base : : string16 expected_message = base : : ASCIIToUTF16 ( \"Go to www.google.com to connect.\" ) ;\n EXPECT_EQ ( expected_message , notification -> message ( ) ) ;\n EXPECT_TRUE ( notification -> delegate ( ) != nullptr ) ;\n device_client_ . usb_service ( ) -> RemoveDevice ( device_3 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_3 ) == nullptr ) ;\n device_client_ . usb_service ( ) -> RemoveDevice ( device_2 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_2 ) == nullptr ) ;\n }"}
{"idx": 9890, "target": 1, "func": "static int ipvideo_decode_block_opcode_0x7 ( IpvideoContext * s ) {\n int x , y ;\n unsigned char P [ 2 ] ;\n unsigned int flags ;\n P [ 0 ] = bytestream2_get_byte ( & s -> stream_ptr ) ;\n P [ 1 ] = bytestream2_get_byte ( & s -> stream_ptr ) ;\n if ( P [ 0 ] <= P [ 1 ] ) {\n for ( y = 0 ;\n y < 8 ;\n y ++ ) {\n flags = bytestream2_get_byte ( & s -> stream_ptr ) | 0x100 ;\n for ( ;\n flags != 1 ;\n flags >>= 1 ) * s -> pixel_ptr ++ = P [ flags & 1 ] ;\n s -> pixel_ptr += s -> line_inc ;\n }\n }\n else {\n flags = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n for ( y = 0 ;\n y < 8 ;\n y += 2 ) {\n for ( x = 0 ;\n x < 8 ;\n x += 2 , flags >>= 1 ) {\n s -> pixel_ptr [ x ] = s -> pixel_ptr [ x + 1 ] = s -> pixel_ptr [ x + s -> stride ] = s -> pixel_ptr [ x + 1 + s -> stride ] = P [ flags & 1 ] ;\n }\n s -> pixel_ptr += s -> stride * 2 ;\n }\n }\n return 0 ;\n }"}
{"idx": 9891, "target": 0, "func": "TSConfig TSConfigGet ( unsigned int id ) {\n return reinterpret_cast < TSConfig > ( configProcessor . get ( id ) ) ;\n }"}
{"idx": 9892, "target": 0, "func": "static int processcompl ( struct async * as , void __user * __user * arg ) {\n struct urb * urb = as -> urb ;\n struct usbdevfs_urb __user * userurb = as -> userurb ;\n void __user * addr = as -> userurb ;\n unsigned int i ;\n if ( as -> userbuffer && urb -> actual_length ) {\n if ( copy_urb_data_to_user ( as -> userbuffer , urb ) ) goto err_out ;\n }\n if ( put_user ( as -> status , & userurb -> status ) ) goto err_out ;\n if ( put_user ( urb -> actual_length , & userurb -> actual_length ) ) goto err_out ;\n if ( put_user ( urb -> error_count , & userurb -> error_count ) ) goto err_out ;\n if ( usb_endpoint_xfer_isoc ( & urb -> ep -> desc ) ) {\n for ( i = 0 ;\n i < urb -> number_of_packets ;\n i ++ ) {\n if ( put_user ( urb -> iso_frame_desc [ i ] . actual_length , & userurb -> iso_frame_desc [ i ] . actual_length ) ) goto err_out ;\n if ( put_user ( urb -> iso_frame_desc [ i ] . status , & userurb -> iso_frame_desc [ i ] . status ) ) goto err_out ;\n }\n }\n if ( put_user ( addr , ( void __user * __user * ) arg ) ) return - EFAULT ;\n return 0 ;\n err_out : return - EFAULT ;\n }"}
{"idx": 9893, "target": 0, "func": "static int dissect_h225_INTEGER_1_4294967295 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 4294967295U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 9894, "target": 0, "func": "static int SpoolssSetPrinter_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n guint32 level ;\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , NULL , NULL , FALSE , FALSE ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_level , & level ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", level %d\" , level ) ;\n offset = dissect_SPOOL_PRINTER_INFO ( tvb , offset , pinfo , tree , di , drep ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_setprinter_cmd , NULL ) ;\n return offset ;\n }"}
{"idx": 9895, "target": 0, "func": "static int pss_verify_cmp ( void * opaque , gcry_mpi_t tmp ) {\n struct pk_encoding_ctx * ctx = opaque ;\n gcry_mpi_t hash = ctx -> verify_arg ;\n return pss_verify ( hash , tmp , ctx -> nbits - 1 , ctx -> hash_algo , ctx -> saltlen ) ;\n }"}
{"idx": 9896, "target": 0, "func": "static inline bool e1000e_is_tcp_ack ( E1000ECore * core , struct NetRxPkt * rx_pkt ) {\n if ( ! net_rx_pkt_is_tcp_ack ( rx_pkt ) ) {\n return false ;\n }\n if ( core -> mac [ RFCTL ] & E1000_RFCTL_ACK_DATA_DIS ) {\n return ! net_rx_pkt_has_tcp_data ( rx_pkt ) ;\n }\n return true ;\n }"}
{"idx": 9897, "target": 0, "func": "static void write_ref_frames ( const VP9_COMMON * cm , const MACROBLOCKD * xd , vp9_writer * w ) {\n const MB_MODE_INFO * const mbmi = & xd -> mi [ 0 ] . src_mi -> mbmi ;\n const int is_compound = has_second_ref ( mbmi ) ;\n const int segment_id = mbmi -> segment_id ;\n if ( vp9_segfeature_active ( & cm -> seg , segment_id , SEG_LVL_REF_FRAME ) ) {\n assert ( ! is_compound ) ;\n assert ( mbmi -> ref_frame [ 0 ] == vp9_get_segdata ( & cm -> seg , segment_id , SEG_LVL_REF_FRAME ) ) ;\n }\n else {\n if ( cm -> reference_mode == REFERENCE_MODE_SELECT ) {\n vp9_write ( w , is_compound , vp9_get_reference_mode_prob ( cm , xd ) ) ;\n }\n else {\n assert ( ! is_compound == ( cm -> reference_mode == SINGLE_REFERENCE ) ) ;\n }\n if ( is_compound ) {\n vp9_write ( w , mbmi -> ref_frame [ 0 ] == GOLDEN_FRAME , vp9_get_pred_prob_comp_ref_p ( cm , xd ) ) ;\n }\n else {\n const int bit0 = mbmi -> ref_frame [ 0 ] != LAST_FRAME ;\n vp9_write ( w , bit0 , vp9_get_pred_prob_single_ref_p1 ( cm , xd ) ) ;\n if ( bit0 ) {\n const int bit1 = mbmi -> ref_frame [ 0 ] != GOLDEN_FRAME ;\n vp9_write ( w , bit1 , vp9_get_pred_prob_single_ref_p2 ( cm , xd ) ) ;\n }\n }\n }\n }"}
{"idx": 9898, "target": 1, "func": "ASN1_BIT_STRING * c2i_ASN1_BIT_STRING ( ASN1_BIT_STRING * * a , const unsigned char * * pp , long len ) {\n ASN1_BIT_STRING * ret = NULL ;\n const unsigned char * p ;\n unsigned char * s ;\n int i ;\n if ( len < 1 ) {\n i = ASN1_R_STRING_TOO_SHORT ;\n goto err ;\n }\n if ( ( a == NULL ) || ( ( * a ) == NULL ) ) {\n if ( ( ret = M_ASN1_BIT_STRING_new ( ) ) == NULL ) return ( NULL ) ;\n }\n else ret = ( * a ) ;\n p = * pp ;\n i = * ( p ++ ) ;\n ret -> flags &= ~ ( ASN1_STRING_FLAG_BITS_LEFT | 0x07 ) ;\n ret -> flags |= ( ASN1_STRING_FLAG_BITS_LEFT | ( i & 0x07 ) ) ;\n if ( len -- > 1 ) {\n s = ( unsigned char * ) OPENSSL_malloc ( ( int ) len ) ;\n if ( s == NULL ) {\n i = ERR_R_MALLOC_FAILURE ;\n goto err ;\n }\n memcpy ( s , p , ( int ) len ) ;\n s [ len - 1 ] &= ( 0xff << i ) ;\n p += len ;\n }\n else s = NULL ;\n ret -> length = ( int ) len ;\n if ( ret -> data != NULL ) OPENSSL_free ( ret -> data ) ;\n ret -> data = s ;\n ret -> type = V_ASN1_BIT_STRING ;\n if ( a != NULL ) ( * a ) = ret ;\n * pp = p ;\n return ( ret ) ;\n err : ASN1err ( ASN1_F_C2I_ASN1_BIT_STRING , i ) ;\n if ( ( ret != NULL ) && ( ( a == NULL ) || ( * a != ret ) ) ) M_ASN1_BIT_STRING_free ( ret ) ;\n return ( NULL ) ;\n }"}
{"idx": 9899, "target": 0, "func": "static void psf_log_syserr ( SF_PRIVATE * psf , int error ) {\n if ( psf -> error == 0 ) {\n psf -> error = SFE_SYSTEM ;\n snprintf ( psf -> syserr , sizeof ( psf -> syserr ) , \"System error : %s.\" , strerror ( error ) ) ;\n }\n ;\n return ;\n }"}
{"idx": 9900, "target": 0, "func": "static int dissect_mac_fdd_edch_type2 ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n guint sdu_no , subframe_bytes = 0 , offset = 0 ;\n guint8 ss ;\n guint16 tsn ;\n proto_item * pi , * temp ;\n proto_tree * macis_pdu_tree , * macis_sdu_tree ;\n umts_mac_is_info * mac_is_info = ( umts_mac_is_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_umts_mac , 0 ) ;\n rlc_info * rlcinf = ( rlc_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_rlc , 0 ) ;\n struct fp_info * p_fp_info = ( struct fp_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_fp , 0 ) ;\n DISSECTOR_ASSERT ( mac_is_info != NULL && rlcinf != NULL && p_fp_info != NULL ) ;\n pi = proto_tree_add_item ( tree , proto_umts_mac , tvb , 0 , - 1 , ENC_NA ) ;\n macis_pdu_tree = proto_item_add_subtree ( pi , ett_mac_edch_type2 ) ;\n ss = ( tvb_get_guint8 ( tvb , offset ) & 0xc0 ) >> 6 ;\n proto_tree_add_item ( macis_pdu_tree , hf_mac_edch_type2_ss , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n ss_interpretation ( tvb , macis_pdu_tree , ss , mac_is_info -> number_of_mac_is_sdus , offset ) ;\n tsn = tvb_get_bits8 ( tvb , offset * 8 + 2 , mac_tsn_size ) ;\n proto_tree_add_bits_item ( macis_pdu_tree , hf_mac_edch_type2_tsn , tvb , offset * 8 + 2 , mac_tsn_size , ENC_BIG_ENDIAN ) ;\n offset += ( 2 + mac_tsn_size ) / 8 ;\n for ( sdu_no = 0 ;\n sdu_no < mac_is_info -> number_of_mac_is_sdus ;\n sdu_no ++ ) {\n proto_item * ti ;\n tvbuff_t * asm_tvb ;\n guint8 lchid = mac_is_info -> lchid [ sdu_no ] + 1 ;\n guint sdulength = mac_is_info -> sdulength [ sdu_no ] ;\n ti = proto_tree_add_item ( tree , hf_mac_edch_type2_sdu , tvb , offset , sdulength , ENC_NA ) ;\n macis_sdu_tree = proto_item_add_subtree ( ti , ett_mac_edch_type2_sdu ) ;\n proto_item_append_text ( ti , \" (Logical channel=%u, Len=%u)\" , lchid , sdulength ) ;\n temp = proto_tree_add_uint ( ti , hf_mac_lch_id , tvb , 0 , 0 , lchid ) ;\n PROTO_ITEM_SET_GENERATED ( temp ) ;\n rlcinf -> mode [ sdu_no ] = lchId_rlc_map [ lchid ] ;\n rlcinf -> urnti [ sdu_no ] = p_fp_info -> com_context_id ;\n rlcinf -> rbid [ sdu_no ] = lchid ;\n rlcinf -> li_size [ sdu_no ] = RLC_LI_7BITS ;\n rlcinf -> ciphered [ sdu_no ] = FALSE ;\n rlcinf -> deciphered [ sdu_no ] = FALSE ;\n asm_tvb = mac_is_add_fragment ( tvb , pinfo , macis_sdu_tree , lchid , p_fp_info -> com_context_id , offset , ss , tsn , sdu_no , mac_is_info -> number_of_mac_is_sdus , sdulength ) ;\n if ( asm_tvb != NULL ) {\n call_rlc ( asm_tvb , pinfo , tree , ti , lchid , data ) ;\n }\n offset += sdulength ;\n subframe_bytes += sdulength ;\n }\n proto_item_append_text ( pi , \"-is PDU (SS=%u, TSN=%u, %u bytes in %u SDU fragments)\" , ss , tsn , subframe_bytes , mac_is_info -> number_of_mac_is_sdus ) ;\n proto_item_set_len ( pi , 1 + subframe_bytes ) ;\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 9901, "target": 0, "func": "static void pk_transaction_upgrade_system ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) {\n gboolean ret ;\n PkBitfield transaction_flags ;\n PkUpgradeKindEnum upgrade_kind ;\n const gchar * distro_id ;\n g_autoptr ( GError ) error = NULL ;\n g_autofree gchar * transaction_flags_temp = NULL ;\n g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;\n g_return_if_fail ( transaction -> priv -> tid != NULL ) ;\n g_variant_get ( params , \"(t&su)\" , & transaction_flags , & distro_id , & upgrade_kind ) ;\n transaction_flags_temp = pk_transaction_flag_bitfield_to_string ( transaction_flags ) ;\n g_debug ( \"UpgradeSystem method called: %s: %s (transaction_flags: %s)\" , distro_id , pk_upgrade_kind_enum_to_string ( upgrade_kind ) , transaction_flags_temp ) ;\n if ( ! pk_backend_is_implemented ( transaction -> priv -> backend , PK_ROLE_ENUM_UPGRADE_SYSTEM ) ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NOT_SUPPORTED , \"UpgradeSystem not supported by backend\" ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n transaction -> priv -> cached_transaction_flags = transaction_flags ;\n transaction -> priv -> cached_value = g_strdup ( distro_id ) ;\n transaction -> priv -> cached_upgrade_kind = upgrade_kind ;\n pk_transaction_set_role ( transaction , PK_ROLE_ENUM_UPGRADE_SYSTEM ) ;\n pk_transaction_emit_property_changed ( transaction , \"TransactionFlags\" , g_variant_new_uint64 ( transaction_flags ) ) ;\n ret = pk_transaction_obtain_authorization ( transaction , PK_ROLE_ENUM_UPGRADE_SYSTEM , & error ) ;\n if ( ! ret ) {\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n out : pk_transaction_dbus_return ( context , error ) ;\n }"}
{"idx": 9902, "target": 0, "func": "void mergejoinscansel ( PlannerInfo * root , Node * clause , Oid opfamily , int strategy , bool nulls_first , Selectivity * leftstart , Selectivity * leftend , Selectivity * rightstart , Selectivity * rightend ) {\n Node * left , * right ;\n VariableStatData leftvar , rightvar ;\n int op_strategy ;\n Oid op_lefttype ;\n Oid op_righttype ;\n Oid opno , lsortop , rsortop , lstatop , rstatop , ltop , leop , revltop , revleop ;\n bool isgt ;\n Datum leftmin , leftmax , rightmin , rightmax ;\n double selec ;\n * leftstart = * rightstart = 0.0 ;\n * leftend = * rightend = 1.0 ;\n if ( ! is_opclause ( clause ) ) return ;\n opno = ( ( OpExpr * ) clause ) -> opno ;\n left = get_leftop ( ( Expr * ) clause ) ;\n right = get_rightop ( ( Expr * ) clause ) ;\n if ( ! right ) return ;\n examine_variable ( root , left , 0 , & leftvar ) ;\n examine_variable ( root , right , 0 , & rightvar ) ;\n get_op_opfamily_properties ( opno , opfamily , false , & op_strategy , & op_lefttype , & op_righttype ) ;\n Assert ( op_strategy == BTEqualStrategyNumber ) ;\n switch ( strategy ) {\n case BTLessStrategyNumber : isgt = false ;\n if ( op_lefttype == op_righttype ) {\n ltop = get_opfamily_member ( opfamily , op_lefttype , op_righttype , BTLessStrategyNumber ) ;\n leop = get_opfamily_member ( opfamily , op_lefttype , op_righttype , BTLessEqualStrategyNumber ) ;\n lsortop = ltop ;\n rsortop = ltop ;\n lstatop = lsortop ;\n rstatop = rsortop ;\n revltop = ltop ;\n revleop = leop ;\n }\n else {\n ltop = get_opfamily_member ( opfamily , op_lefttype , op_righttype , BTLessStrategyNumber ) ;\n leop = get_opfamily_member ( opfamily , op_lefttype , op_righttype , BTLessEqualStrategyNumber ) ;\n lsortop = get_opfamily_member ( opfamily , op_lefttype , op_lefttype , BTLessStrategyNumber ) ;\n rsortop = get_opfamily_member ( opfamily , op_righttype , op_righttype , BTLessStrategyNumber ) ;\n lstatop = lsortop ;\n rstatop = rsortop ;\n revltop = get_opfamily_member ( opfamily , op_righttype , op_lefttype , BTLessStrategyNumber ) ;\n revleop = get_opfamily_member ( opfamily , op_righttype , op_lefttype , BTLessEqualStrategyNumber ) ;\n }\n break ;\n case BTGreaterStrategyNumber : isgt = true ;\n if ( op_lefttype == op_righttype ) {\n ltop = get_opfamily_member ( opfamily , op_lefttype , op_righttype , BTGreaterStrategyNumber ) ;\n leop = get_opfamily_member ( opfamily , op_lefttype , op_righttype , BTGreaterEqualStrategyNumber ) ;\n lsortop = ltop ;\n rsortop = ltop ;\n lstatop = get_opfamily_member ( opfamily , op_lefttype , op_lefttype , BTLessStrategyNumber ) ;\n rstatop = lstatop ;\n revltop = ltop ;\n revleop = leop ;\n }\n else {\n ltop = get_opfamily_member ( opfamily , op_lefttype , op_righttype , BTGreaterStrategyNumber ) ;\n leop = get_opfamily_member ( opfamily , op_lefttype , op_righttype , BTGreaterEqualStrategyNumber ) ;\n lsortop = get_opfamily_member ( opfamily , op_lefttype , op_lefttype , BTGreaterStrategyNumber ) ;\n rsortop = get_opfamily_member ( opfamily , op_righttype , op_righttype , BTGreaterStrategyNumber ) ;\n lstatop = get_opfamily_member ( opfamily , op_lefttype , op_lefttype , BTLessStrategyNumber ) ;\n rstatop = get_opfamily_member ( opfamily , op_righttype , op_righttype , BTLessStrategyNumber ) ;\n revltop = get_opfamily_member ( opfamily , op_righttype , op_lefttype , BTGreaterStrategyNumber ) ;\n revleop = get_opfamily_member ( opfamily , op_righttype , op_lefttype , BTGreaterEqualStrategyNumber ) ;\n }\n break ;\n default : goto fail ;\n }\n if ( ! OidIsValid ( lsortop ) || ! OidIsValid ( rsortop ) || ! OidIsValid ( lstatop ) || ! OidIsValid ( rstatop ) || ! OidIsValid ( ltop ) || ! OidIsValid ( leop ) || ! OidIsValid ( revltop ) || ! OidIsValid ( revleop ) ) goto fail ;\n if ( ! isgt ) {\n if ( ! get_variable_range ( root , & leftvar , lstatop , & leftmin , & leftmax ) ) goto fail ;\n if ( ! get_variable_range ( root , & rightvar , rstatop , & rightmin , & rightmax ) ) goto fail ;\n }\n else {\n if ( ! get_variable_range ( root , & leftvar , lstatop , & leftmax , & leftmin ) ) goto fail ;\n if ( ! get_variable_range ( root , & rightvar , rstatop , & rightmax , & rightmin ) ) goto fail ;\n }\n selec = scalarineqsel ( root , leop , isgt , & leftvar , rightmax , op_righttype ) ;\n if ( selec != DEFAULT_INEQ_SEL ) * leftend = selec ;\n selec = scalarineqsel ( root , revleop , isgt , & rightvar , leftmax , op_lefttype ) ;\n if ( selec != DEFAULT_INEQ_SEL ) * rightend = selec ;\n if ( * leftend > * rightend ) * leftend = 1.0 ;\n else if ( * leftend < * rightend ) * rightend = 1.0 ;\n else * leftend = * rightend = 1.0 ;\n selec = scalarineqsel ( root , ltop , isgt , & leftvar , rightmin , op_righttype ) ;\n if ( selec != DEFAULT_INEQ_SEL ) * leftstart = selec ;\n selec = scalarineqsel ( root , revltop , isgt , & rightvar , leftmin , op_lefttype ) ;\n if ( selec != DEFAULT_INEQ_SEL ) * rightstart = selec ;\n if ( * leftstart < * rightstart ) * leftstart = 0.0 ;\n else if ( * leftstart > * rightstart ) * rightstart = 0.0 ;\n else * leftstart = * rightstart = 0.0 ;\n if ( nulls_first ) {\n Form_pg_statistic stats ;\n if ( HeapTupleIsValid ( leftvar . statsTuple ) ) {\n stats = ( Form_pg_statistic ) GETSTRUCT ( leftvar . statsTuple ) ;\n * leftstart += stats -> stanullfrac ;\n CLAMP_PROBABILITY ( * leftstart ) ;\n * leftend += stats -> stanullfrac ;\n CLAMP_PROBABILITY ( * leftend ) ;\n }\n if ( HeapTupleIsValid ( rightvar . statsTuple ) ) {\n stats = ( Form_pg_statistic ) GETSTRUCT ( rightvar . statsTuple ) ;\n * rightstart += stats -> stanullfrac ;\n CLAMP_PROBABILITY ( * rightstart ) ;\n * rightend += stats -> stanullfrac ;\n CLAMP_PROBABILITY ( * rightend ) ;\n }\n }\n if ( * leftstart >= * leftend ) {\n * leftstart = 0.0 ;\n * leftend = 1.0 ;\n }\n if ( * rightstart >= * rightend ) {\n * rightstart = 0.0 ;\n * rightend = 1.0 ;\n }\n fail : ReleaseVariableStats ( leftvar ) ;\n ReleaseVariableStats ( rightvar ) ;\n }"}
{"idx": 9903, "target": 0, "func": "static void _slurm_rpc_persist_init ( slurm_msg_t * msg , connection_arg_t * arg ) {\n DEF_TIMERS ;\n int rc = SLURM_SUCCESS ;\n char * comment = NULL ;\n uint16_t port ;\n Buf ret_buf ;\n slurm_persist_conn_t * persist_conn = NULL , p_tmp ;\n persist_init_req_msg_t * persist_init = msg -> data ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n xassert ( arg ) ;\n START_TIMER ;\n if ( persist_init -> version > SLURM_PROTOCOL_VERSION ) persist_init -> version = SLURM_PROTOCOL_VERSION ;\n if ( ! validate_slurm_user ( uid ) ) {\n memset ( & p_tmp , 0 , sizeof ( slurm_persist_conn_t ) ) ;\n p_tmp . fd = arg -> newsockfd ;\n p_tmp . cluster_name = persist_init -> cluster_name ;\n p_tmp . version = persist_init -> version ;\n p_tmp . shutdown = & slurmctld_config . shutdown_time ;\n rc = ESLURM_USER_ID_MISSING ;\n error ( \"Security violation, REQUEST_PERSIST_INIT RPC \" \"from uid=%d\" , uid ) ;\n goto end_it ;\n }\n persist_conn = xmalloc ( sizeof ( slurm_persist_conn_t ) ) ;\n persist_conn -> auth_cred = msg -> auth_cred ;\n msg -> auth_cred = NULL ;\n persist_conn -> cluster_name = persist_init -> cluster_name ;\n persist_init -> cluster_name = NULL ;\n persist_conn -> fd = arg -> newsockfd ;\n arg -> newsockfd = - 1 ;\n persist_conn -> callback_proc = _process_persist_conn ;\n persist_conn -> persist_type = persist_init -> persist_type ;\n persist_conn -> rem_port = persist_init -> port ;\n persist_conn -> rem_host = xmalloc_nz ( sizeof ( char ) * 16 ) ;\n slurm_get_ip_str ( & arg -> cli_addr , & port , persist_conn -> rem_host , sizeof ( char ) * 16 ) ;\n persist_conn -> shutdown = & slurmctld_config . shutdown_time ;\n persist_conn -> version = persist_init -> version ;\n memcpy ( & p_tmp , persist_conn , sizeof ( slurm_persist_conn_t ) ) ;\n if ( persist_init -> persist_type == PERSIST_TYPE_FED ) rc = fed_mgr_add_sibling_conn ( persist_conn , & comment ) ;\n else rc = SLURM_ERROR ;\n end_it : ret_buf = slurm_persist_make_rc_msg ( & p_tmp , rc , comment , p_tmp . version ) ;\n if ( slurm_persist_send_msg ( & p_tmp , ret_buf ) != SLURM_SUCCESS ) {\n debug ( \"Problem sending response to connection %d uid(%d)\" , p_tmp . fd , uid ) ;\n }\n if ( rc && persist_conn ) {\n persist_conn -> fd = - 1 ;\n slurm_persist_conn_destroy ( persist_conn ) ;\n }\n xfree ( comment ) ;\n free_buf ( ret_buf ) ;\n END_TIMER ;\n }"}
{"idx": 9904, "target": 0, "func": "static void vmsvga_invalidate_display ( void * opaque ) {\n struct vmsvga_state_s * s = opaque ;\n if ( ! s -> enable ) {\n s -> vga . hw_ops -> invalidate ( & s -> vga ) ;\n return ;\n }\n s -> invalidated = 1 ;\n }"}
{"idx": 9905, "target": 0, "func": "TSFetchSM TSFetchCreate ( TSCont contp , const char * method , const char * url , const char * version , struct sockaddr const * client_addr , int flags ) {\n sdk_assert ( sdk_sanity_check_continuation ( contp ) == TS_SUCCESS ) ;\n sdk_assert ( ats_is_ip ( client_addr ) ) ;\n FetchSM * fetch_sm = FetchSMAllocator . alloc ( ) ;\n fetch_sm -> ext_init ( ( Continuation * ) contp , method , url , version , client_addr , flags ) ;\n return ( TSFetchSM ) fetch_sm ;\n }"}
{"idx": 9906, "target": 0, "func": "static inline void set_num_732 ( unsigned char * p , uint32_t value ) {\n archive_be32enc ( p , value ) ;\n }"}
{"idx": 9907, "target": 0, "func": "static __always_inline __le32 __cpu_to_le32p ( const __u32 * p ) {\n return ( __le32 ) * p ;\n }"}
{"idx": 9908, "target": 0, "func": "static void pdf_run_m ( fz_context * ctx , pdf_processor * proc , float x , float y ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n fz_moveto ( ctx , pr -> path , x , y ) ;\n }"}
{"idx": 9909, "target": 0, "func": "static void pdf_run_SC_shade ( fz_context * ctx , pdf_processor * proc , const char * name , fz_shade * shade ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pr -> dev -> flags &= ~ FZ_DEVFLAG_STROKECOLOR_UNDEFINED ;\n pdf_set_shade ( ctx , pr , PDF_STROKE , shade ) ;\n }"}
{"idx": 9910, "target": 0, "func": "static int dissect_usb_video_camera_terminal ( proto_tree * tree , tvbuff_t * tvb , int offset ) {\n static const int * control_bits [ ] = {\n & hf_usb_vid_cam_control_D [ 0 ] , & hf_usb_vid_cam_control_D [ 1 ] , & hf_usb_vid_cam_control_D [ 2 ] , & hf_usb_vid_cam_control_D [ 3 ] , & hf_usb_vid_cam_control_D [ 4 ] , & hf_usb_vid_cam_control_D [ 5 ] , & hf_usb_vid_cam_control_D [ 6 ] , & hf_usb_vid_cam_control_D [ 7 ] , & hf_usb_vid_cam_control_D [ 8 ] , & hf_usb_vid_cam_control_D [ 9 ] , & hf_usb_vid_cam_control_D [ 10 ] , & hf_usb_vid_cam_control_D [ 11 ] , & hf_usb_vid_cam_control_D [ 12 ] , & hf_usb_vid_cam_control_D [ 13 ] , & hf_usb_vid_cam_control_D [ 14 ] , & hf_usb_vid_cam_control_D [ 15 ] , & hf_usb_vid_cam_control_D [ 16 ] , & hf_usb_vid_cam_control_D [ 17 ] , & hf_usb_vid_cam_control_D [ 18 ] , & hf_usb_vid_cam_control_D [ 19 ] , & hf_usb_vid_cam_control_D [ 20 ] , & hf_usb_vid_cam_control_D [ 21 ] , NULL }\n ;\n DISSECTOR_ASSERT ( array_length ( control_bits ) == ( 1 + array_length ( hf_usb_vid_cam_control_D ) ) ) ;\n proto_tree_add_item ( tree , hf_usb_vid_cam_objective_focal_len_min , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_usb_vid_cam_objective_focal_len_max , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_usb_vid_cam_ocular_focal_len , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n offset = dissect_bmControl ( tree , tvb , offset , ett_camera_controls , control_bits ) ;\n return offset ;\n }"}
{"idx": 9911, "target": 0, "func": "static int checkHttpTxnClientProtocolStackGet ( SocketTest * test , void * data ) {\n TSHttpTxn txnp = ( TSHttpTxn ) data ;\n const char * results [ 10 ] ;\n int count = 0 ;\n TSHttpTxnClientProtocolStackGet ( txnp , 10 , results , & count ) ;\n test -> test_client_protocol_stack_get = true ;\n if ( count != 3 ) {\n test -> test_client_protocol_stack_get = false ;\n SDK_RPRINT ( test -> regtest , \"TSHttpTxnClientProtocolStackGet\" , \"TestCase1\" , TC_FAIL , \"count should be 3 is %d\" , count ) ;\n }\n else if ( strcmp ( results [ 0 ] , \"http/1.0\" ) != 0 ) {\n test -> test_client_protocol_stack_get = false ;\n SDK_RPRINT ( test -> regtest , \"TSHttpTxnClientProtocolStackGet\" , \"TestCase1\" , TC_FAIL , \"results[0] should be http/1.0 is %s\" , results [ 0 ] ) ;\n }\n else if ( strcmp ( results [ 1 ] , \"tcp\" ) != 0 ) {\n test -> test_client_protocol_stack_get = false ;\n SDK_RPRINT ( test -> regtest , \"TSHttpTxnClientProtocolStackGet\" , \"TestCase1\" , TC_FAIL , \"results[1] should be tcp is %s\" , results [ 1 ] ) ;\n }\n else if ( strcmp ( results [ 2 ] , \"ipv4\" ) != 0 ) {\n test -> test_client_protocol_stack_get = false ;\n SDK_RPRINT ( test -> regtest , \"TSHttpTxnClientProtocolStackGet\" , \"TestCase1\" , TC_FAIL , \"results[2] should be ipv4 is %s\" , results [ 2 ] ) ;\n }\n else {\n SDK_RPRINT ( test -> regtest , \"TSHttpTxnClientProtocolStackGet\" , \"TestCase1\" , TC_PASS , \"ok stack_size=%d\" , count ) ;\n }\n return TS_EVENT_CONTINUE ;\n }"}
{"idx": 9912, "target": 0, "func": "void TSHttpTxnArgSet ( TSHttpTxn txnp , int arg_idx , void * arg ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n sdk_assert ( arg_idx >= 0 && arg_idx < HTTP_SSN_TXN_MAX_USER_ARG ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n sm -> t_state . user_args [ arg_idx ] = arg ;\n }"}
{"idx": 9913, "target": 0, "func": "static void dtap_bcc_imm_setup2 ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n guint8 oct ;\n proto_tree * subtree ;\n curr_offset = offset ;\n curr_len = len ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , curr_offset << 3 , 4 , ENC_BIG_ENDIAN ) ;\n subtree = proto_tree_add_subtree ( tree , tvb , curr_offset , 1 , ett_gsm_common_elem [ DE_CIPH_KEY_SEQ_NUM ] , NULL , val_to_str_ext_const ( DE_CIPH_KEY_SEQ_NUM , & gsm_common_elem_strings_ext , \"\" ) ) ;\n proto_tree_add_bits_item ( subtree , hf_gsm_a_spare_bits , tvb , ( curr_offset << 3 ) + 4 , 1 , ENC_BIG_ENDIAN ) ;\n switch ( oct & 0x07 ) {\n case 0x07 : proto_tree_add_uint_format_value ( subtree , hf_gsm_a_dtap_ciphering_key_sequence_number , tvb , curr_offset , 1 , oct , \"No key is available\" ) ;\n break ;\n default : proto_tree_add_item ( subtree , hf_gsm_a_dtap_ciphering_key_sequence_number , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n break ;\n }\n curr_offset ++ ;\n curr_len -- ;\n ELEM_MAND_LV ( GSM_A_PDU_TYPE_COMMON , DE_MS_CM_2 , NULL ) ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_RR , DE_TMSI_STAT , NULL ) ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_BCC_CALL_REF , \"(Group identity)\" ) ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_BCC_COMPR_OTDI , NULL ) ;\n }"}
{"idx": 9914, "target": 0, "func": "static void gsm_flush ( AVCodecContext * avctx ) {\n GSMContext * s = avctx -> priv_data ;\n memset ( s , 0 , sizeof ( * s ) ) ;\n }"}
{"idx": 9915, "target": 0, "func": "REGRESSION_TEST ( SDK_API_TSUrl ) ( RegressionTest * test , int , int * pstatus ) {\n TSMBuffer bufp1 = ( TSMBuffer ) nullptr ;\n TSMBuffer bufp2 = ( TSMBuffer ) nullptr ;\n TSMBuffer bufp3 = ( TSMBuffer ) nullptr ;\n TSMLoc url_loc1 ;\n TSMLoc url_loc2 ;\n TSMLoc url_loc3 ;\n const char * scheme = TS_URL_SCHEME_HTTP ;\n const char * scheme_get ;\n const char * user = \"yyy\" ;\n const char * user_get ;\n const char * password = \"xxx\" ;\n const char * password_get ;\n const char * host = \"www.example.com\" ;\n const char * host_get ;\n int port = 2021 ;\n char port_char [ 10 ] ;\n int port_get = 80 ;\n const char * path = \"about/overview.html\" ;\n const char * path_get ;\n const char * params = \"abcdef\" ;\n const char * params_get ;\n const char * query = \"name=xxx\" ;\n const char * query_get ;\n const char * fragment = \"yyy\" ;\n const char * fragment_get ;\n char * url_expected_string ;\n char * url_string_from_1 = ( char * ) nullptr ;\n char * url_string_from_2 = ( char * ) nullptr ;\n char * url_string_from_3 = ( char * ) nullptr ;\n char * url_string_from_print = ( char * ) nullptr ;\n int url_expected_length ;\n int url_length_from_1 ;\n int url_length_from_2 ;\n int type = 'a' ;\n int type_get ;\n int tmp_len ;\n bool test_passed_create = false ;\n bool test_passed_scheme = false ;\n bool test_passed_user = false ;\n bool test_passed_password = false ;\n bool test_passed_host = false ;\n bool test_passed_port = false ;\n bool test_passed_path = false ;\n bool test_passed_params = false ;\n bool test_passed_query = false ;\n bool test_passed_fragment = false ;\n bool test_passed_copy = false ;\n bool test_passed_clone = false ;\n bool test_passed_string1 = false ;\n bool test_passed_string2 = false ;\n bool test_passed_print = false ;\n bool test_passed_length1 = false ;\n bool test_passed_length2 = false ;\n bool test_passed_type = false ;\n int length ;\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n memset ( port_char , 0 , 10 ) ;\n snprintf ( port_char , sizeof ( port_char ) , \"%d\" , port ) ;\n url_expected_length = strlen ( scheme ) + strlen ( \"://\" ) + ( ( user == nullptr ) ? 0 : strlen ( user ) ) + ( ( password == nullptr ) ? ( ( user == nullptr ) ? 0 : strlen ( \"@\" ) ) : strlen ( \":\" ) + strlen ( password ) + strlen ( \"@\" ) ) + strlen ( host ) + ( ( port == 80 ) ? 0 : strlen ( port_char ) + strlen ( \":\" ) ) + strlen ( \"/\" ) + strlen ( path ) + ( ( params == nullptr ) ? 0 : strlen ( \";\n\" ) + strlen ( params ) ) + ( ( query == nullptr ) ? 0 : strlen ( \"?\" ) + strlen ( query ) ) + ( ( fragment == nullptr ) ? 0 : strlen ( \"#\" ) + strlen ( fragment ) ) ;\n size_t len = url_expected_length + 1 ;\n url_expected_string = ( char * ) TSmalloc ( len * sizeof ( char ) ) ;\n memset ( url_expected_string , 0 , url_expected_length + 1 ) ;\n snprintf ( url_expected_string , len , \"%s://%s%s%s%s%s%s%s/%s%s%s%s%s%s%s\" , scheme , ( ( user == nullptr ) ? \"\" : user ) , ( ( password == nullptr ) ? \"\" : \":\" ) , ( ( password == nullptr ) ? \"\" : password ) , ( ( ( user == nullptr ) && ( password == nullptr ) ) ? \"\" : \"@\" ) , host , ( ( port == 80 ) ? \"\" : \":\" ) , ( ( port == 80 ) ? \"\" : port_char ) , ( ( path == nullptr ) ? \"\" : path ) , ( ( params == nullptr ) ? \"\" : \";\n\" ) , ( ( params == nullptr ) ? \"\" : params ) , ( ( query == nullptr ) ? \"\" : \"?\" ) , ( ( query == nullptr ) ? \"\" : query ) , ( ( fragment == nullptr ) ? \"\" : \"#\" ) , ( ( fragment == nullptr ) ? \"\" : fragment ) ) ;\n bufp1 = TSMBufferCreate ( ) ;\n if ( TSUrlCreate ( bufp1 , & url_loc1 ) != TS_SUCCESS ) {\n SDK_RPRINT ( test , \"TSUrlCreate\" , \"TestCase1\" , TC_FAIL , \"unable to create URL within buffer.\" ) ;\n goto print_results ;\n }\n if ( TSUrlSchemeSet ( bufp1 , url_loc1 , scheme , - 1 ) != TS_SUCCESS ) {\n SDK_RPRINT ( test , \"TSUrlSchemeSet\" , \"TestCase1\" , TC_FAIL , \"TSUrlSchemeSet Returned TS_ERROR\" ) ;\n }\n else {\n scheme_get = TSUrlSchemeGet ( bufp1 , url_loc1 , & length ) ;\n if ( strncmp ( scheme_get , scheme , length ) == 0 ) {\n SDK_RPRINT ( test , \"TSUrlSchemeSet&Get\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_scheme = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSUrlSchemeSet&Get\" , \"TestCase1\" , TC_FAIL , \"Values don't match\" ) ;\n }\n }\n if ( TSUrlUserSet ( bufp1 , url_loc1 , user , - 1 ) != TS_SUCCESS ) {\n SDK_RPRINT ( test , \"TSUrlUserSet\" , \"TestCase1\" , TC_FAIL , \"Returned TS_ERROR\" ) ;\n }\n else {\n user_get = TSUrlUserGet ( bufp1 , url_loc1 , & length ) ;\n if ( ( ( user_get == nullptr ) && ( user == nullptr ) ) || ( strncmp ( user_get , user , length ) == 0 ) ) {\n SDK_RPRINT ( test , \"TSUrlUserSet&Get\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_user = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSUrlUserSet&Get\" , \"TestCase1\" , TC_FAIL , \"Values don't match\" ) ;\n }\n }\n if ( TSUrlPasswordSet ( bufp1 , url_loc1 , password , - 1 ) != TS_SUCCESS ) {\n SDK_RPRINT ( test , \"TSUrlPasswordSet\" , \"TestCase1\" , TC_FAIL , \"Returned TS_ERROR\" ) ;\n }\n else {\n password_get = TSUrlPasswordGet ( bufp1 , url_loc1 , & length ) ;\n if ( ( ( password_get == nullptr ) && ( password == nullptr ) ) || ( strncmp ( password_get , password , length ) == 0 ) ) {\n SDK_RPRINT ( test , \"TSUrlPasswordSet&Get\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_password = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSUrlPasswordSet&Get\" , \"TestCase1\" , TC_FAIL , \"Values don't match\" ) ;\n }\n }\n if ( TSUrlHostSet ( bufp1 , url_loc1 , host , - 1 ) != TS_SUCCESS ) {\n SDK_RPRINT ( test , \"TSUrlHostSet\" , \"TestCase1\" , TC_FAIL , \"Returned TS_ERROR\" ) ;\n }\n else {\n host_get = TSUrlHostGet ( bufp1 , url_loc1 , & length ) ;\n if ( strncmp ( host_get , host , length ) == 0 ) {\n SDK_RPRINT ( test , \"TSUrlHostSet&Get\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_host = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSUrlHostSet&Get\" , \"TestCase1\" , TC_FAIL , \"Values don't match\" ) ;\n }\n }\n if ( TSUrlPortSet ( bufp1 , url_loc1 , port ) != TS_SUCCESS ) {\n SDK_RPRINT ( test , \"TSUrlPortSet\" , \"TestCase1\" , TC_FAIL , \"Returned TS_ERROR\" ) ;\n }\n else {\n port_get = TSUrlPortGet ( bufp1 , url_loc1 ) ;\n if ( port_get == port ) {\n SDK_RPRINT ( test , \"TSUrlPortSet&Get\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_port = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSUrlPortSet&Get\" , \"TestCase1\" , TC_FAIL , \"Values don't match\" ) ;\n }\n }\n if ( TSUrlPathSet ( bufp1 , url_loc1 , path , - 1 ) != TS_SUCCESS ) {\n SDK_RPRINT ( test , \"TSUrlPathSet\" , \"TestCase1\" , TC_FAIL , \"Returned TS_ERROR\" ) ;\n }\n else {\n path_get = TSUrlPathGet ( bufp1 , url_loc1 , & length ) ;\n if ( ( ( path == nullptr ) && ( path_get == nullptr ) ) || ( strncmp ( path , path_get , length ) == 0 ) ) {\n SDK_RPRINT ( test , \"TSUrlPathSet&Get\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_path = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSUrlPathSet&Get\" , \"TestCase1\" , TC_FAIL , \"Values don't match\" ) ;\n }\n }\n if ( TSUrlHttpParamsSet ( bufp1 , url_loc1 , params , - 1 ) != TS_SUCCESS ) {\n SDK_RPRINT ( test , \"TSUrlHttpParamsSet\" , \"TestCase1\" , TC_FAIL , \"Returned TS_ERROR\" ) ;\n }\n else {\n params_get = TSUrlHttpParamsGet ( bufp1 , url_loc1 , & length ) ;\n if ( ( ( params == nullptr ) && ( params_get == nullptr ) ) || ( strncmp ( params , params_get , length ) == 0 ) ) {\n SDK_RPRINT ( test , \"TSUrlHttpParamsSet&Get\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_params = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSUrlHttpParamsSet&Get\" , \"TestCase1\" , TC_FAIL , \"Values don't match\" ) ;\n }\n }\n if ( TSUrlHttpQuerySet ( bufp1 , url_loc1 , query , - 1 ) != TS_SUCCESS ) {\n SDK_RPRINT ( test , \"TSUrlHttpQuerySet\" , \"TestCase1\" , TC_FAIL , \"Returned TS_ERROR\" ) ;\n }\n else {\n query_get = TSUrlHttpQueryGet ( bufp1 , url_loc1 , & length ) ;\n if ( ( ( query == nullptr ) && ( query_get == nullptr ) ) || ( strncmp ( query , query_get , length ) == 0 ) ) {\n SDK_RPRINT ( test , \"TSUrlHttpQuerySet&Get\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_query = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSUrlHttpQuerySet&Get\" , \"TestCase1\" , TC_FAIL , \"Values don't match\" ) ;\n }\n }\n if ( TSUrlHttpFragmentSet ( bufp1 , url_loc1 , fragment , - 1 ) != TS_SUCCESS ) {\n SDK_RPRINT ( test , \"TSUrlHttpFragmentSet\" , \"TestCase1\" , TC_FAIL , \"Returned TS_ERROR\" ) ;\n }\n else {\n fragment_get = TSUrlHttpFragmentGet ( bufp1 , url_loc1 , & length ) ;\n if ( ( ( fragment == nullptr ) && ( fragment_get == nullptr ) ) || ( strncmp ( fragment , fragment_get , length ) == 0 ) ) {\n SDK_RPRINT ( test , \"TSUrlHttpFragmentSet&Get\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_fragment = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSUrlHttpFragmentSet&Get\" , \"TestCase1\" , TC_FAIL , \"Values don't match\" ) ;\n }\n }\n url_length_from_1 = TSUrlLengthGet ( bufp1 , url_loc1 ) ;\n if ( url_length_from_1 == url_expected_length ) {\n SDK_RPRINT ( test , \"TSUrlLengthGet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_length1 = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSUrlLengthGet\" , \"TestCase1\" , TC_FAIL , \"Values don't match\" ) ;\n }\n url_string_from_1 = TSUrlStringGet ( bufp1 , url_loc1 , & tmp_len ) ;\n if ( strcmp ( url_string_from_1 , url_expected_string ) == 0 ) {\n SDK_RPRINT ( test , \"TSUrlStringGet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_string1 = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSUrlStringGet\" , \"TestCase1\" , TC_FAIL , \"Values don't match\" ) ;\n }\n bufp2 = TSMBufferCreate ( ) ;\n if ( TSUrlCreate ( bufp2 , & url_loc2 ) != TS_SUCCESS ) {\n SDK_RPRINT ( test , \"TSUrlCreate\" , \"TestCase2\" , TC_FAIL , \"unable to create URL within buffer for TSUrlCopy.\" ) ;\n goto print_results ;\n }\n if ( TSUrlCopy ( bufp2 , url_loc2 , bufp1 , url_loc1 ) == TS_ERROR ) {\n SDK_RPRINT ( test , \"TSUrlCopy\" , \"TestCase1\" , TC_FAIL , \"Returned TS_ERROR\" ) ;\n }\n else {\n url_length_from_2 = TSUrlLengthGet ( bufp2 , url_loc2 ) ;\n if ( url_length_from_2 == url_expected_length ) {\n SDK_RPRINT ( test , \"TSUrlLengthGet\" , \"TestCase2\" , TC_PASS , \"ok\" ) ;\n test_passed_length2 = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSUrlCopy\" , \"TestCase1\" , TC_FAIL , \"Values don't match\" ) ;\n }\n url_string_from_2 = TSUrlStringGet ( bufp2 , url_loc2 , & tmp_len ) ;\n if ( strcmp ( url_string_from_2 , url_expected_string ) == 0 ) {\n SDK_RPRINT ( test , \"TSUrlStringGet\" , \"TestCase2\" , TC_PASS , \"ok\" ) ;\n test_passed_string2 = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSUrlStringGet\" , \"TestCase2\" , TC_FAIL , \"Values don't match\" ) ;\n }\n if ( strcmp ( url_string_from_1 , url_string_from_2 ) == 0 ) {\n SDK_RPRINT ( test , \"TSUrlCopy\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_copy = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSUrlCopy\" , \"TestCase1\" , TC_FAIL , \"Values Don't Match\" ) ;\n }\n }\n bufp3 = TSMBufferCreate ( ) ;\n if ( TSUrlClone ( bufp3 , bufp1 , url_loc1 , & url_loc3 ) != TS_SUCCESS ) {\n SDK_RPRINT ( test , \"TSUrlClone\" , \"TestCase1\" , TC_FAIL , \"Returned TS_ERROR\" ) ;\n }\n else {\n url_string_from_3 = TSUrlStringGet ( bufp3 , url_loc3 , & tmp_len ) ;\n if ( strcmp ( url_string_from_1 , url_string_from_3 ) == 0 ) {\n SDK_RPRINT ( test , \"TSUrlClone\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_clone = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSUrlClone\" , \"TestCase1\" , TC_FAIL , \"Values Don't Match\" ) ;\n }\n }\n url_string_from_print = test_url_print ( bufp1 , url_loc1 ) ;\n if ( url_string_from_print == nullptr ) {\n SDK_RPRINT ( test , \"TSUrlPrint\" , \"TestCase1\" , TC_FAIL , \"TSUrlPrint doesn't return TS_SUCCESS\" ) ;\n }\n else {\n if ( strcmp ( url_string_from_print , url_expected_string ) == 0 ) {\n SDK_RPRINT ( test , \"TSUrlPrint\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_print = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSUrlPrint\" , \"TestCase1\" , TC_FAIL , \"TSUrlPrint doesn't return TS_SUCCESS\" ) ;\n }\n TSfree ( url_string_from_print ) ;\n }\n if ( TSUrlFtpTypeSet ( bufp1 , url_loc1 , type ) != TS_SUCCESS ) {\n SDK_RPRINT ( test , \"TSUrlFtpTypeSet\" , \"TestCase1\" , TC_FAIL , \"TSUrlFtpTypeSet Returned TS_ERROR\" ) ;\n }\n else {\n type_get = TSUrlFtpTypeGet ( bufp1 , url_loc1 ) ;\n if ( type_get == type ) {\n SDK_RPRINT ( test , \"TSUrlFtpTypeSet&Get\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_type = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSUrlFtpTypeSet&Get\" , \"TestCase1\" , TC_FAIL , \"Values don't match\" ) ;\n }\n }\n SDK_RPRINT ( test , \"TSUrlCreate\" , \"TestCase1&2\" , TC_PASS , \"ok\" ) ;\n TSHandleMLocRelease ( bufp1 , TS_NULL_MLOC , url_loc1 ) ;\n TSHandleMLocRelease ( bufp2 , TS_NULL_MLOC , url_loc2 ) ;\n TSHandleMLocRelease ( bufp3 , TS_NULL_MLOC , url_loc3 ) ;\n test_passed_create = true ;\n print_results : TSfree ( url_expected_string ) ;\n if ( url_string_from_1 != nullptr ) {\n TSfree ( url_string_from_1 ) ;\n }\n if ( url_string_from_2 != nullptr ) {\n TSfree ( url_string_from_2 ) ;\n }\n if ( url_string_from_3 != nullptr ) {\n TSfree ( url_string_from_3 ) ;\n }\n if ( bufp1 != nullptr ) {\n TSMBufferDestroy ( bufp1 ) ;\n }\n if ( bufp2 != nullptr ) {\n TSMBufferDestroy ( bufp2 ) ;\n }\n if ( bufp3 != nullptr ) {\n TSMBufferDestroy ( bufp3 ) ;\n }\n if ( ( test_passed_create == false ) || ( test_passed_scheme == false ) || ( test_passed_user == false ) || ( test_passed_password == false ) || ( test_passed_host == false ) || ( test_passed_port == false ) || ( test_passed_path == false ) || ( test_passed_params == false ) || ( test_passed_query == false ) || ( test_passed_fragment == false ) || ( test_passed_copy == false ) || ( test_passed_clone == false ) || ( test_passed_string1 == false ) || ( test_passed_string2 == false ) || ( test_passed_print == false ) || ( test_passed_length1 == false ) || ( test_passed_length2 == false ) || ( test_passed_type == false ) ) {\n * pstatus = REGRESSION_TEST_FAILED ;\n }\n else {\n * pstatus = REGRESSION_TEST_PASSED ;\n }\n }"}
{"idx": 9916, "target": 0, "func": "static void steamdiscover_dissect_body_discovery ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , gint offset , gint bytes_left ) {\n gint len ;\n gint64 value ;\n protobuf_desc_t pb = {\n tvb , offset , bytes_left }\n ;\n protobuf_tag_t tag = {\n 0 , 0 , 0 }\n ;\n while ( protobuf_iter_next ( & pb , & tag ) ) {\n switch ( tag . field_number ) {\n case STEAMDISCOVER_FN_DISCOVERY_SEQNUM : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_uint ( tree , hf_steam_ihs_discovery_body_discovery_seqnum , pb . tvb , pb . offset , len , ( guint32 ) value ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" Seq=%\" G_GUINT32_FORMAT , ( guint32 ) value ) ;\n break ;\n case STEAMDISCOVER_FN_DISCOVERY_CLIENTIDS : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_uint64 ( tree , hf_steam_ihs_discovery_body_discovery_clientids , pb . tvb , pb . offset , len , value ) ;\n break ;\n default : len = protobuf_dissect_unknown_field ( & pb , & tag , pinfo , tree , NULL ) ;\n break ;\n }\n protobuf_seek_forward ( & pb , len ) ;\n }\n }"}
{"idx": 9917, "target": 0, "func": "int PEM_write_ ## name ( FILE * fp , const type * x ) ;\n # define DECLARE_PEM_write_cb_fp ( name , type ) int PEM_write_ ## name ( FILE * fp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # endif # define DECLARE_PEM_read_bio ( name , type ) type * PEM_read_bio_ ## name ( BIO * bp , type * * x , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL ) DECLARE_PEM_rw ( PKCS7 , PKCS7 ) DECLARE_PEM_rw ( NETSCAPE_CERT_SEQUENCE , NETSCAPE_CERT_SEQUENCE ) DECLARE_PEM_rw ( PKCS8 , X509_SIG ) DECLARE_PEM_rw ( PKCS8_PRIV_KEY_INFO , PKCS8_PRIV_KEY_INFO ) # ifndef OPENSSL_NO_RSA DECLARE_PEM_rw_cb ( RSAPrivateKey , RSA ) DECLARE_PEM_rw_const ( RSAPublicKey , RSA ) DECLARE_PEM_rw ( RSA_PUBKEY , RSA ) # endif # ifndef OPENSSL_NO_DSA DECLARE_PEM_rw_cb ( DSAPrivateKey , DSA ) DECLARE_PEM_rw ( DSA_PUBKEY , DSA ) DECLARE_PEM_rw_const ( DSAparams , DSA ) # endif # ifndef OPENSSL_NO_EC DECLARE_PEM_rw_const ( ECPKParameters , EC_GROUP )"}
{"idx": 9918, "target": 0, "func": "void irc_ctcp_display_reply_from_nick ( struct t_irc_server * server , time_t date , const char * command , const char * nick , const char * address , char * arguments ) {\n char * pos_end , * pos_space , * pos_args , * pos_usec ;\n struct timeval tv ;\n long sec1 , usec1 , sec2 , usec2 , difftime ;\n while ( arguments && arguments [ 0 ] ) {\n pos_end = strrchr ( arguments + 1 , '\\01' ) ;\n if ( pos_end ) pos_end [ 0 ] = '\\0' ;\n pos_space = strchr ( arguments + 1 , ' ' ) ;\n if ( pos_space ) {\n pos_space [ 0 ] = '\\0' ;\n pos_args = pos_space + 1 ;\n while ( pos_args [ 0 ] == ' ' ) {\n pos_args ++ ;\n }\n if ( strcmp ( arguments + 1 , \"PING\" ) == 0 ) {\n pos_usec = strchr ( pos_args , ' ' ) ;\n if ( pos_usec ) {\n pos_usec [ 0 ] = '\\0' ;\n gettimeofday ( & tv , NULL ) ;\n sec1 = atol ( pos_args ) ;\n usec1 = atol ( pos_usec + 1 ) ;\n sec2 = tv . tv_sec ;\n usec2 = tv . tv_usec ;\n difftime = ( ( sec2 * 1000000 ) + usec2 ) - ( ( sec1 * 1000000 ) + usec1 ) ;\n weechat_printf_date_tags ( irc_msgbuffer_get_target_buffer ( server , nick , NULL , \"ctcp\" , NULL ) , date , irc_protocol_tags ( command , \"irc_ctcp\" , NULL , NULL ) , _ ( \"%sCTCP reply from %s%s%s: %s%s%s %.3fs\" ) , weechat_prefix ( \"network\" ) , irc_nick_color_for_msg ( server , 0 , NULL , nick ) , nick , IRC_COLOR_RESET , IRC_COLOR_CHAT_CHANNEL , arguments + 1 , IRC_COLOR_RESET , ( float ) difftime / 1000000.0 ) ;\n pos_usec [ 0 ] = ' ' ;\n }\n }\n else {\n weechat_printf_date_tags ( irc_msgbuffer_get_target_buffer ( server , nick , NULL , \"ctcp\" , NULL ) , date , irc_protocol_tags ( command , \"irc_ctcp\" , NULL , address ) , _ ( \"%sCTCP reply from %s%s%s: %s%s%s%s%s\" ) , weechat_prefix ( \"network\" ) , irc_nick_color_for_msg ( server , 0 , NULL , nick ) , nick , IRC_COLOR_RESET , IRC_COLOR_CHAT_CHANNEL , arguments + 1 , IRC_COLOR_RESET , \" \" , pos_args ) ;\n }\n pos_space [ 0 ] = ' ' ;\n }\n else {\n weechat_printf_date_tags ( irc_msgbuffer_get_target_buffer ( server , nick , NULL , \"ctcp\" , NULL ) , date , irc_protocol_tags ( command , NULL , NULL , address ) , _ ( \"%sCTCP reply from %s%s%s: %s%s%s%s%s\" ) , weechat_prefix ( \"network\" ) , irc_nick_color_for_msg ( server , 0 , NULL , nick ) , nick , IRC_COLOR_RESET , IRC_COLOR_CHAT_CHANNEL , arguments + 1 , \"\" , \"\" , \"\" ) ;\n }\n if ( pos_end ) pos_end [ 0 ] = '\\01' ;\n arguments = ( pos_end ) ? pos_end + 1 : NULL ;\n }\n }"}
{"idx": 9919, "target": 0, "func": "TEST ( IdlCompiler , ObjectTypes ) {\n FooType f1 ;\n f1 . x = 3 ;\n std : : unique_ptr < base : : DictionaryValue > serialized_foo = f1 . ToValue ( ) ;\n FooType f2 ;\n EXPECT_TRUE ( FooType : : Populate ( * serialized_foo . get ( ) , & f2 ) ) ;\n EXPECT_EQ ( f1 . x , f2 . x ) ;\n BarType b1 ;\n b1 . x . reset ( new base : : Value ( 7 ) ) ;\n std : : unique_ptr < base : : DictionaryValue > serialized_bar = b1 . ToValue ( ) ;\n BarType b2 ;\n EXPECT_TRUE ( BarType : : Populate ( * serialized_bar . get ( ) , & b2 ) ) ;\n int tmp_int = 0 ;\n EXPECT_TRUE ( b2 . x -> GetAsInteger ( & tmp_int ) ) ;\n EXPECT_EQ ( 7 , tmp_int ) ;\n std : : unique_ptr < base : : DictionaryValue > icon_props ( new base : : DictionaryValue ( ) ) ;\n icon_props -> SetString ( \"hello\" , \"world\" ) ;\n ObjectFunction1 : : Params : : Icon icon ;\n EXPECT_TRUE ( ObjectFunction1 : : Params : : Icon : : Populate ( * ( icon_props . get ( ) ) , & icon ) ) ;\n base : : ListValue list ;\n list . Append ( std : : move ( icon_props ) ) ;\n std : : unique_ptr < ObjectFunction1 : : Params > params = ObjectFunction1 : : Params : : Create ( list ) ;\n ASSERT_TRUE ( params . get ( ) != NULL ) ;\n std : : string tmp ;\n EXPECT_TRUE ( params -> icon . additional_properties . GetString ( \"hello\" , & tmp ) ) ;\n EXPECT_EQ ( \"world\" , tmp ) ;\n }"}
{"idx": 9920, "target": 0, "func": "int FLTIsNumeric ( const char * pszValue ) {\n if ( pszValue != NULL && * pszValue != '\\0' && ! isspace ( * pszValue ) ) {\n # if defined ( _WIN32 ) && ! defined ( __CYGWIN__ ) int i = 0 , nLength = 0 , bString = 0 ;\n nLength = strlen ( pszValue ) ;\n for ( i = 0 ;\n i < nLength ;\n i ++ ) {\n if ( i == 0 ) {\n if ( ! isdigit ( pszValue [ i ] ) && pszValue [ i ] != '-' ) {\n bString = 1 ;\n break ;\n }\n }\n else if ( ! isdigit ( pszValue [ i ] ) && pszValue [ i ] != '.' ) {\n bString = 1 ;\n break ;\n }\n }\n if ( ! bString ) return MS_TRUE ;\n # else char * p ;\n strtod ( pszValue , & p ) ;\n if ( p != pszValue && * p == '\\0' ) return MS_TRUE ;\n # endif }\n return MS_FALSE ;\n }"}
{"idx": 9921, "target": 0, "func": "static int rtp_packetize_vp8 ( sout_stream_id_sys_t * id , block_t * in ) {\n int i_max = rtp_mtu ( id ) - RTP_VP8_HEADER_SIZE ;\n int i_count = ( in -> i_buffer + i_max - 1 ) / i_max ;\n uint8_t * p_data = in -> p_buffer ;\n int i_data = in -> i_buffer ;\n if ( i_max <= 0 ) {\n block_Release ( in ) ;\n return VLC_EGENERIC ;\n }\n for ( int i = 0 ;\n i < i_count ;\n i ++ ) {\n int i_payload = __MIN ( i_max , i_data ) ;\n block_t * out = block_Alloc ( RTP_VP8_PAYLOAD_START + i_payload ) ;\n if ( out == NULL ) {\n block_Release ( in ) ;\n return VLC_ENOMEM ;\n }\n if ( i == 0 ) out -> p_buffer [ 12 ] = 0x10 ;\n else out -> p_buffer [ 12 ] = 0 ;\n rtp_packetize_common ( id , out , ( i == i_count - 1 ) , ( in -> i_pts > VLC_TS_INVALID ? in -> i_pts : in -> i_dts ) ) ;\n memcpy ( & out -> p_buffer [ RTP_VP8_PAYLOAD_START ] , p_data , i_payload ) ;\n out -> i_dts = in -> i_dts + i * in -> i_length / i_count ;\n out -> i_length = in -> i_length / i_count ;\n rtp_packetize_send ( id , out ) ;\n p_data += i_payload ;\n i_data -= i_payload ;\n }\n block_Release ( in ) ;\n return VLC_SUCCESS ;\n }"}
{"idx": 9922, "target": 0, "func": "static int doubleebx ( const char * src , uint32_t * myebx , uint32_t * scur , uint32_t ssize ) {\n uint32_t oldebx = * myebx ;\n * myebx *= 2 ;\n if ( ! ( oldebx & 0x7fffffff ) ) {\n if ( ! CLI_ISCONTAINED ( src , ssize , src + * scur , 4 ) ) return - 1 ;\n oldebx = cli_readint32 ( src + * scur ) ;\n * myebx = oldebx * 2 + 1 ;\n * scur += 4 ;\n }\n return ( oldebx >> 31 ) ;\n }"}
{"idx": 9923, "target": 0, "func": "TEST ( PasswordManagerUtil , TrimUsernameOnlyCredentials ) {\n ScopedVector < autofill : : PasswordForm > forms , expected_forms ;\n forms . push_back ( new autofill : : PasswordForm ( GetTestAndroidCredentials ( kTestAndroidRealm ) ) ) ;\n expected_forms . push_back ( new autofill : : PasswordForm ( GetTestAndroidCredentials ( kTestAndroidRealm ) ) ) ;\n autofill : : PasswordForm username_only ;\n username_only . scheme = autofill : : PasswordForm : : SCHEME_USERNAME_ONLY ;\n username_only . signon_realm = kTestAndroidRealm ;\n username_only . username_value = base : : ASCIIToUTF16 ( kTestUsername2 ) ;\n forms . push_back ( new autofill : : PasswordForm ( username_only ) ) ;\n username_only . federation_origin = url : : Origin ( GURL ( kTestFederationURL ) ) ;\n username_only . skip_zero_click = false ;\n forms . push_back ( new autofill : : PasswordForm ( username_only ) ) ;\n username_only . skip_zero_click = true ;\n expected_forms . push_back ( new autofill : : PasswordForm ( username_only ) ) ;\n password_manager_util : : TrimUsernameOnlyCredentials ( & forms ) ;\n EXPECT_THAT ( forms . get ( ) , UnorderedPasswordFormElementsAre ( expected_forms . get ( ) ) ) ;\n }"}
{"idx": 9924, "target": 0, "func": "int qemuMonitorTextIOProcess ( qemuMonitorPtr mon ATTRIBUTE_UNUSED , const char * data , size_t len ATTRIBUTE_UNUSED , qemuMonitorMessagePtr msg ) {\n int used = 0 ;\n if ( STRPREFIX ( data , GREETING_PREFIX ) ) {\n const char * offset = strstr ( data , GREETING_POSTFIX ) ;\n if ( ! offset ) {\n # if DEBUG_IO VIR_DEBUG ( \"Partial greeting seen, getting out & waiting for more\" ) ;\n # endif return 0 ;\n }\n used = offset - data + strlen ( GREETING_POSTFIX ) ;\n # if DEBUG_IO VIR_DEBUG ( \"Discarded monitor greeting\" ) ;\n # endif }\n # if DEBUG_IO VIR_DEBUG ( \"Process data %d byts of data\" , ( int ) ( len - used ) ) ;\n # endif if ( msg && ! msg -> finished ) {\n char * start = NULL ;\n char * end = NULL ;\n char * skip ;\n if ( msg -> txLength > 0 ) {\n char * tmp ;\n if ( ( tmp = strchr ( msg -> txBuffer , '\\r' ) ) ) {\n * tmp = '\\0' ;\n }\n }\n skip = strstr ( data + used , msg -> txBuffer ) ;\n if ( skip ) {\n start = strstr ( skip + strlen ( msg -> txBuffer ) , LINE_ENDING ) ;\n }\n if ( start ) {\n char * passwd ;\n start += strlen ( LINE_ENDING ) ;\n passwd = strstr ( start , PASSWORD_PROMPT ) ;\n if ( passwd ) {\n # if DEBUG_IO VIR_DEBUG ( \"Seen a password prompt [%s]\" , data + used ) ;\n # endif if ( msg -> passwordHandler ) {\n int i ;\n if ( msg -> passwordHandler ( mon , msg , start , passwd - start + strlen ( PASSWORD_PROMPT ) , msg -> passwordOpaque ) < 0 ) return - 1 ;\n for ( i = 0 ;\n i < strlen ( PASSWORD_PROMPT ) ;\n i ++ ) start [ i ] = ' ' ;\n start = passwd ;\n }\n else {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"Password request seen, but no handler available\" ) ) ;\n return - 1 ;\n }\n }\n end = strstr ( start , BASIC_PROMPT ) ;\n }\n if ( start && end ) {\n int want = end - start ;\n if ( want ) {\n if ( VIR_REALLOC_N ( msg -> rxBuffer , msg -> rxLength + want + 1 ) < 0 ) {\n virReportOOMError ( ) ;\n return - 1 ;\n }\n memcpy ( msg -> rxBuffer + msg -> rxLength , start , want ) ;\n msg -> rxLength += want ;\n msg -> rxBuffer [ msg -> rxLength ] = '\\0' ;\n # if DEBUG_IO VIR_DEBUG ( \"Finished %d byte reply [%s]\" , want , msg -> rxBuffer ) ;\n }\n else {\n VIR_DEBUG ( \"Finished 0 byte reply\" ) ;\n # endif }\n PROBE ( QEMU_MONITOR_RECV_REPLY , \"mon=%p reply=%s\" , mon , msg -> rxBuffer ) ;\n msg -> finished = 1 ;\n used += end - ( data + used ) ;\n used += strlen ( BASIC_PROMPT ) ;\n }\n }\n # if DEBUG_IO VIR_DEBUG ( \"Total used %d\" , used ) ;\n # endif return used ;\n }"}
{"idx": 9925, "target": 0, "func": "static void cmyk2bgr ( fz_context * ctx , fz_color_converter * cc , float * dv , const float * sv ) {\n # ifdef SLOWCMYK float rgb [ 3 ] ;\n cmyk_to_rgb ( ctx , NULL , sv , rgb ) ;\n dv [ 0 ] = rgb [ 2 ] ;\n dv [ 1 ] = rgb [ 1 ] ;\n dv [ 2 ] = rgb [ 0 ] ;\n # else dv [ 0 ] = 1 - fz_min ( sv [ 2 ] + sv [ 3 ] , 1 ) ;\n dv [ 1 ] = 1 - fz_min ( sv [ 1 ] + sv [ 3 ] , 1 ) ;\n dv [ 2 ] = 1 - fz_min ( sv [ 0 ] + sv [ 3 ] , 1 ) ;\n # endif }"}
{"idx": 9926, "target": 0, "func": "static enum fetch_step vbf_stp_fetch ( struct worker * wrk , struct busyobj * bo ) {\n const char * p ;\n CHECK_OBJ_NOTNULL ( wrk , WORKER_MAGIC ) ;\n CHECK_OBJ_NOTNULL ( bo , BUSYOBJ_MAGIC ) ;\n CHECK_OBJ_NOTNULL ( bo -> fetch_objcore , OBJCORE_MAGIC ) ;\n assert ( wrk -> handling == VCL_RET_DELIVER ) ;\n if ( ! cache_param -> http_gzip_support ) bo -> do_gzip = bo -> do_gunzip = 0 ;\n if ( bo -> htc -> content_length == 0 ) http_Unset ( bo -> beresp , H_Content_Encoding ) ;\n if ( bo -> htc -> body_status != BS_NONE ) {\n bo -> is_gzip = http_HdrIs ( bo -> beresp , H_Content_Encoding , \"gzip\" ) ;\n bo -> is_gunzip = ! http_GetHdr ( bo -> beresp , H_Content_Encoding , NULL ) ;\n assert ( bo -> is_gzip == 0 || bo -> is_gunzip == 0 ) ;\n }\n if ( bo -> htc -> body_status == BS_NONE || bo -> htc -> content_length == 0 || ( bo -> do_gunzip && ! bo -> is_gzip ) ) bo -> do_gunzip = 0 ;\n if ( bo -> htc -> body_status == BS_NONE || bo -> htc -> content_length == 0 || ( bo -> do_gzip && ! bo -> is_gunzip ) ) bo -> do_gzip = 0 ;\n assert ( bo -> do_gzip == 0 || bo -> do_gunzip == 0 ) ;\n if ( bo -> do_gunzip || ( bo -> is_gzip && bo -> do_esi ) ) vbf_vfp_push ( bo , & vfp_gunzip , 1 ) ;\n if ( bo -> htc -> content_length != 0 ) {\n if ( bo -> do_esi && bo -> do_gzip ) {\n vbf_vfp_push ( bo , & vfp_esi_gzip , 1 ) ;\n }\n else if ( bo -> do_esi && bo -> is_gzip && ! bo -> do_gunzip ) {\n vbf_vfp_push ( bo , & vfp_esi_gzip , 1 ) ;\n }\n else if ( bo -> do_esi ) {\n vbf_vfp_push ( bo , & vfp_esi , 1 ) ;\n }\n else if ( bo -> do_gzip ) {\n vbf_vfp_push ( bo , & vfp_gzip , 1 ) ;\n }\n else if ( bo -> is_gzip && ! bo -> do_gunzip ) {\n vbf_vfp_push ( bo , & vfp_testgunzip , 1 ) ;\n }\n }\n if ( bo -> fetch_objcore -> flags & OC_F_PRIVATE ) AN ( bo -> uncacheable ) ;\n if ( bo -> htc -> body_status == BS_NONE ) bo -> do_stream = 0 ;\n bo -> fetch_objcore -> boc -> len_so_far = 0 ;\n if ( VFP_Open ( bo -> vfc ) ) {\n ( void ) VFP_Error ( bo -> vfc , \"Fetch pipeline failed to open\" ) ;\n bo -> htc -> doclose = SC_RX_BODY ;\n VDI_Finish ( bo -> wrk , bo ) ;\n return ( F_STP_ERROR ) ;\n }\n if ( vbf_beresp2obj ( bo ) ) {\n ( void ) VFP_Error ( bo -> vfc , \"Could not get storage\" ) ;\n bo -> htc -> doclose = SC_RX_BODY ;\n VFP_Close ( bo -> vfc ) ;\n VDI_Finish ( bo -> wrk , bo ) ;\n return ( F_STP_ERROR ) ;\n }\n if ( bo -> do_esi ) ObjSetFlag ( bo -> wrk , bo -> fetch_objcore , OF_ESIPROC , 1 ) ;\n if ( bo -> do_gzip || ( bo -> is_gzip && ! bo -> do_gunzip ) ) ObjSetFlag ( bo -> wrk , bo -> fetch_objcore , OF_GZIPED , 1 ) ;\n if ( bo -> do_gzip || bo -> do_gunzip ) ObjSetFlag ( bo -> wrk , bo -> fetch_objcore , OF_CHGGZIP , 1 ) ;\n if ( ! ( bo -> fetch_objcore -> flags & OC_F_PASS ) && http_IsStatus ( bo -> beresp , 200 ) && ( http_GetHdr ( bo -> beresp , H_Last_Modified , & p ) || http_GetHdr ( bo -> beresp , H_ETag , & p ) ) ) ObjSetFlag ( bo -> wrk , bo -> fetch_objcore , OF_IMSCAND , 1 ) ;\n if ( bo -> htc -> body_status != BS_NONE && VDI_GetBody ( bo -> wrk , bo ) != 0 ) {\n ( void ) VFP_Error ( bo -> vfc , \"GetBody failed - workspace_backend overflow?\" ) ;\n VFP_Close ( bo -> vfc ) ;\n bo -> htc -> doclose = SC_OVERLOAD ;\n VDI_Finish ( bo -> wrk , bo ) ;\n return ( F_STP_ERROR ) ;\n }\n assert ( bo -> fetch_objcore -> boc -> refcount >= 1 ) ;\n assert ( bo -> fetch_objcore -> boc -> state == BOS_REQ_DONE ) ;\n if ( bo -> do_stream ) {\n ObjSetState ( wrk , bo -> fetch_objcore , BOS_PREP_STREAM ) ;\n HSH_Unbusy ( wrk , bo -> fetch_objcore ) ;\n ObjSetState ( wrk , bo -> fetch_objcore , BOS_STREAM ) ;\n }\n VSLb ( bo -> vsl , SLT_Fetch_Body , \"%u %s %s\" , bo -> htc -> body_status , body_status_2str ( bo -> htc -> body_status ) , bo -> do_stream ? \"stream\" : \"-\" ) ;\n if ( bo -> htc -> body_status != BS_NONE ) {\n assert ( bo -> htc -> body_status != BS_ERROR ) ;\n return ( F_STP_FETCHBODY ) ;\n }\n AZ ( bo -> vfc -> failed ) ;\n return ( F_STP_FETCHEND ) ;\n }"}
{"idx": 9927, "target": 0, "func": "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 ) {\n uint8_t comp_pred [ m * n ] ;\n vp9_comp_avg_pred ( comp_pred , second_pred , m , n , ref , ref_stride ) ;\n return sad ( src , src_stride , comp_pred , m , m , n ) ;\n \\ }\n # define sadMxNxK ( m , n , k ) void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 ) sadMxN ( 16 , 32 ) sadMxNx4D ( 16 , 32 ) sadMxN ( 16 , 16 ) sadMxNxK ( 16 , 16 , 3 ) sadMxNxK ( 16 , 16 , 8 ) sadMxNx4D ( 16 , 16 ) sadMxN ( 16 , 8 )"}
{"idx": 9928, "target": 0, "func": "static int kvm_handle_debug ( X86CPU * cpu , struct kvm_debug_exit_arch * arch_info ) {\n CPUState * cs = CPU ( cpu ) ;\n CPUX86State * env = & cpu -> env ;\n int ret = 0 ;\n int n ;\n if ( arch_info -> exception == 1 ) {\n if ( arch_info -> dr6 & ( 1 << 14 ) ) {\n if ( cs -> singlestep_enabled ) {\n ret = EXCP_DEBUG ;\n }\n }\n else {\n for ( n = 0 ;\n n < 4 ;\n n ++ ) {\n if ( arch_info -> dr6 & ( 1 << n ) ) {\n switch ( ( arch_info -> dr7 >> ( 16 + n * 4 ) ) & 0x3 ) {\n case 0x0 : ret = EXCP_DEBUG ;\n break ;\n case 0x1 : ret = EXCP_DEBUG ;\n cs -> watchpoint_hit = & hw_watchpoint ;\n hw_watchpoint . vaddr = hw_breakpoint [ n ] . addr ;\n hw_watchpoint . flags = BP_MEM_WRITE ;\n break ;\n case 0x3 : ret = EXCP_DEBUG ;\n cs -> watchpoint_hit = & hw_watchpoint ;\n hw_watchpoint . vaddr = hw_breakpoint [ n ] . addr ;\n hw_watchpoint . flags = BP_MEM_ACCESS ;\n break ;\n }\n }\n }\n }\n }\n else if ( kvm_find_sw_breakpoint ( cs , arch_info -> pc ) ) {\n ret = EXCP_DEBUG ;\n }\n if ( ret == 0 ) {\n cpu_synchronize_state ( cs ) ;\n assert ( env -> exception_injected == - 1 ) ;\n env -> exception_injected = arch_info -> exception ;\n env -> has_error_code = 0 ;\n }\n return ret ;\n }"}
{"idx": 9929, "target": 0, "func": "static int zmbv_decode_intra ( ZmbvContext * c ) {\n uint8_t * src = c -> decomp_buf ;\n if ( c -> fmt == ZMBV_FMT_8BPP ) {\n memcpy ( c -> pal , src , 768 ) ;\n src += 768 ;\n }\n memcpy ( c -> cur , src , c -> width * c -> height * ( c -> bpp / 8 ) ) ;\n return 0 ;\n }"}
{"idx": 9930, "target": 0, "func": "static void lexnest ( struct vars * v , const chr * beginp , const chr * endp ) {\n assert ( v -> savenow == NULL ) ;\n v -> savenow = v -> now ;\n v -> savestop = v -> stop ;\n v -> now = beginp ;\n v -> stop = endp ;\n }"}
{"idx": 9931, "target": 0, "func": "static cmsBool WriteOneMLUC ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , _cmsDICelem * e , cmsUInt32Number i , const cmsMLU * mlu , cmsUInt32Number BaseOffset ) {\n cmsUInt32Number Before ;\n if ( mlu == NULL ) {\n e -> Sizes [ i ] = 0 ;\n e -> Offsets [ i ] = 0 ;\n return TRUE ;\n }\n Before = io -> Tell ( io ) ;\n e -> Offsets [ i ] = Before - BaseOffset ;\n if ( ! Type_MLU_Write ( self , io , ( void * ) mlu , 1 ) ) return FALSE ;\n e -> Sizes [ i ] = io -> Tell ( io ) - Before ;\n return TRUE ;\n }"}
{"idx": 9932, "target": 0, "func": "static void temporal_filter_iterate_c ( VP9_COMP * cpi , YV12_BUFFER_CONFIG * * frames , int frame_count , int alt_ref_index , int strength , struct scale_factors * scale ) {\n int byte ;\n int frame ;\n int mb_col , mb_row ;\n unsigned int filter_weight ;\n int mb_cols = ( frames [ alt_ref_index ] -> y_crop_width + 15 ) >> 4 ;\n int mb_rows = ( frames [ alt_ref_index ] -> y_crop_height + 15 ) >> 4 ;\n int mb_y_offset = 0 ;\n int mb_uv_offset = 0 ;\n DECLARE_ALIGNED_ARRAY ( 16 , unsigned int , accumulator , 16 * 16 * 3 ) ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint16_t , count , 16 * 16 * 3 ) ;\n MACROBLOCKD * mbd = & cpi -> mb . e_mbd ;\n YV12_BUFFER_CONFIG * f = frames [ alt_ref_index ] ;\n uint8_t * dst1 , * dst2 ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , predictor , 16 * 16 * 3 ) ;\n const int mb_uv_height = 16 >> mbd -> plane [ 1 ] . subsampling_y ;\n const int mb_uv_width = 16 >> mbd -> plane [ 1 ] . subsampling_x ;\n uint8_t * input_buffer [ MAX_MB_PLANE ] ;\n int i ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n i ++ ) input_buffer [ i ] = mbd -> plane [ i ] . pre [ 0 ] . buf ;\n for ( mb_row = 0 ;\n mb_row < mb_rows ;\n mb_row ++ ) {\n cpi -> mb . mv_row_min = - ( ( mb_row * 16 ) + ( 17 - 2 * VP9_INTERP_EXTEND ) ) ;\n cpi -> mb . mv_row_max = ( ( mb_rows - 1 - mb_row ) * 16 ) + ( 17 - 2 * VP9_INTERP_EXTEND ) ;\n for ( mb_col = 0 ;\n mb_col < mb_cols ;\n mb_col ++ ) {\n int i , j , k ;\n int stride ;\n vpx_memset ( accumulator , 0 , 16 * 16 * 3 * sizeof ( accumulator [ 0 ] ) ) ;\n vpx_memset ( count , 0 , 16 * 16 * 3 * sizeof ( count [ 0 ] ) ) ;\n cpi -> mb . mv_col_min = - ( ( mb_col * 16 ) + ( 17 - 2 * VP9_INTERP_EXTEND ) ) ;\n cpi -> mb . mv_col_max = ( ( mb_cols - 1 - mb_col ) * 16 ) + ( 17 - 2 * VP9_INTERP_EXTEND ) ;\n for ( frame = 0 ;\n frame < frame_count ;\n frame ++ ) {\n const int thresh_low = 10000 ;\n const int thresh_high = 20000 ;\n if ( frames [ frame ] == NULL ) continue ;\n mbd -> mi [ 0 ] . src_mi -> bmi [ 0 ] . as_mv [ 0 ] . as_mv . row = 0 ;\n mbd -> mi [ 0 ] . src_mi -> bmi [ 0 ] . as_mv [ 0 ] . as_mv . col = 0 ;\n if ( frame == alt_ref_index ) {\n filter_weight = 2 ;\n }\n else {\n int err = temporal_filter_find_matching_mb_c ( cpi , frames [ alt_ref_index ] -> y_buffer + mb_y_offset , frames [ frame ] -> y_buffer + mb_y_offset , frames [ frame ] -> y_stride ) ;\n filter_weight = err < thresh_low ? 2 : err < thresh_high ? 1 : 0 ;\n }\n if ( filter_weight != 0 ) {\n temporal_filter_predictors_mb_c ( mbd , frames [ frame ] -> y_buffer + mb_y_offset , frames [ frame ] -> u_buffer + mb_uv_offset , frames [ frame ] -> v_buffer + mb_uv_offset , frames [ frame ] -> y_stride , mb_uv_width , mb_uv_height , mbd -> mi [ 0 ] . src_mi -> bmi [ 0 ] . as_mv [ 0 ] . as_mv . row , mbd -> mi [ 0 ] . src_mi -> bmi [ 0 ] . as_mv [ 0 ] . as_mv . col , predictor , scale , mb_col * 16 , mb_row * 16 ) ;\n vp9_temporal_filter_apply ( f -> y_buffer + mb_y_offset , f -> y_stride , predictor , 16 , 16 , strength , filter_weight , accumulator , count ) ;\n vp9_temporal_filter_apply ( f -> u_buffer + mb_uv_offset , f -> uv_stride , predictor + 256 , mb_uv_width , mb_uv_height , strength , filter_weight , accumulator + 256 , count + 256 ) ;\n vp9_temporal_filter_apply ( f -> v_buffer + mb_uv_offset , f -> uv_stride , predictor + 512 , mb_uv_width , mb_uv_height , strength , filter_weight , accumulator + 512 , count + 512 ) ;\n }\n }\n dst1 = cpi -> alt_ref_buffer . y_buffer ;\n stride = cpi -> alt_ref_buffer . y_stride ;\n byte = mb_y_offset ;\n for ( i = 0 , k = 0 ;\n i < 16 ;\n i ++ ) {\n for ( j = 0 ;\n j < 16 ;\n j ++ , k ++ ) {\n unsigned int pval = accumulator [ k ] + ( count [ k ] >> 1 ) ;\n pval *= fixed_divide [ count [ k ] ] ;\n pval >>= 19 ;\n dst1 [ byte ] = ( uint8_t ) pval ;\n byte ++ ;\n }\n byte += stride - 16 ;\n }\n dst1 = cpi -> alt_ref_buffer . u_buffer ;\n dst2 = cpi -> alt_ref_buffer . v_buffer ;\n stride = cpi -> alt_ref_buffer . uv_stride ;\n byte = mb_uv_offset ;\n for ( i = 0 , k = 256 ;\n i < mb_uv_height ;\n i ++ ) {\n for ( j = 0 ;\n j < mb_uv_width ;\n j ++ , k ++ ) {\n int m = k + 256 ;\n unsigned int pval = accumulator [ k ] + ( count [ k ] >> 1 ) ;\n pval *= fixed_divide [ count [ k ] ] ;\n pval >>= 19 ;\n dst1 [ byte ] = ( uint8_t ) pval ;\n pval = accumulator [ m ] + ( count [ m ] >> 1 ) ;\n pval *= fixed_divide [ count [ m ] ] ;\n pval >>= 19 ;\n dst2 [ byte ] = ( uint8_t ) pval ;\n byte ++ ;\n }\n byte += stride - mb_uv_width ;\n }\n mb_y_offset += 16 ;\n mb_uv_offset += mb_uv_width ;\n }\n mb_y_offset += 16 * ( f -> y_stride - mb_cols ) ;\n mb_uv_offset += mb_uv_height * f -> uv_stride - mb_uv_width * mb_cols ;\n }\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n i ++ ) mbd -> plane [ i ] . pre [ 0 ] . buf = input_buffer [ i ] ;\n }"}
{"idx": 9933, "target": 1, "func": "hb_blob_t * hb_blob_create ( const char * data , unsigned int length , hb_memory_mode_t mode , void * user_data , hb_destroy_func_t destroy ) {\n hb_blob_t * blob ;\n if ( ! length || ! ( blob = hb_object_create < hb_blob_t > ( ) ) ) {\n if ( destroy ) destroy ( user_data ) ;\n return hb_blob_get_empty ( ) ;\n }\n blob -> data = data ;\n blob -> length = length ;\n blob -> mode = mode ;\n blob -> user_data = user_data ;\n blob -> destroy = destroy ;\n if ( blob -> mode == HB_MEMORY_MODE_DUPLICATE ) {\n blob -> mode = HB_MEMORY_MODE_READONLY ;\n if ( ! _try_writable ( blob ) ) {\n hb_blob_destroy ( blob ) ;\n return hb_blob_get_empty ( ) ;\n }\n }\n return blob ;\n }"}
{"idx": 9934, "target": 0, "func": "static inline int file_path_has_perm ( const struct cred * cred , struct file * file , u32 av ) {\n struct common_audit_data ad ;\n ad . type = LSM_AUDIT_DATA_FILE ;\n ad . u . file = file ;\n return inode_has_perm ( cred , file_inode ( file ) , av , & ad ) ;\n }"}
{"idx": 9935, "target": 0, "func": "void vp9_coef_tree_initialize ( ) {\n init_bit_trees ( ) ;\n vp9_tokens_from_tree ( vp9_coef_encodings , vp9_coef_tree ) ;\n }"}
{"idx": 9936, "target": 0, "func": "static void _isoent_free ( struct isoent * isoent ) {\n struct extr_rec * er , * er_next ;\n free ( isoent -> children_sorted ) ;\n free ( isoent -> identifier ) ;\n er = isoent -> extr_rec_list . first ;\n while ( er != NULL ) {\n er_next = er -> next ;\n free ( er ) ;\n er = er_next ;\n }\n free ( isoent ) ;\n }"}
{"idx": 9937, "target": 0, "func": "static void * Type_ParametricCurve_Read ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number * nItems , cmsUInt32Number SizeOfTag ) {\n static const int ParamsByType [ ] = {\n 1 , 3 , 4 , 5 , 7 }\n ;\n cmsFloat64Number Params [ 10 ] ;\n cmsUInt16Number Type ;\n int i , n ;\n cmsToneCurve * NewGamma ;\n if ( ! _cmsReadUInt16Number ( io , & Type ) ) return NULL ;\n if ( ! _cmsReadUInt16Number ( io , NULL ) ) return NULL ;\n if ( Type > 4 ) {\n cmsSignalError ( self -> ContextID , cmsERROR_UNKNOWN_EXTENSION , \"Unknown parametric curve type '%d'\" , Type ) ;\n return NULL ;\n }\n memset ( Params , 0 , sizeof ( Params ) ) ;\n n = ParamsByType [ Type ] ;\n for ( i = 0 ;\n i < n ;\n i ++ ) {\n if ( ! _cmsRead15Fixed16Number ( io , & Params [ i ] ) ) return NULL ;\n }\n NewGamma = cmsBuildParametricToneCurve ( self -> ContextID , Type + 1 , Params ) ;\n * nItems = 1 ;\n return NewGamma ;\n cmsUNUSED_PARAMETER ( SizeOfTag ) ;\n }"}
{"idx": 9938, "target": 0, "func": "static warc_string_t _warc_rduri ( const char * buf , size_t bsz ) {\n static const char _key [ ] = \"\\r\\nWARC-Target-URI:\" ;\n const char * val , * uri , * eol , * p ;\n warc_string_t res = {\n 0U , NULL }\n ;\n if ( ( val = xmemmem ( buf , bsz , _key , sizeof ( _key ) - 1U ) ) == NULL ) {\n return res ;\n }\n val += sizeof ( _key ) - 1U ;\n if ( ( eol = _warc_find_eol ( val , buf + bsz - val ) ) == NULL ) {\n return res ;\n }\n while ( val < eol && ( * val == ' ' || * val == '\\t' ) ) ++ val ;\n if ( ( uri = xmemmem ( val , eol - val , \"://\" , 3U ) ) == NULL ) {\n return res ;\n }\n for ( p = val ;\n p < eol ;\n p ++ ) {\n if ( isspace ( ( unsigned char ) * p ) ) return res ;\n }\n if ( uri < ( val + 3U ) ) return res ;\n uri += 3U ;\n if ( memcmp ( val , \"file\" , 4U ) == 0 ) {\n }\n else if ( memcmp ( val , \"http\" , 4U ) == 0 || memcmp ( val , \"ftp\" , 3U ) == 0 ) {\n while ( uri < eol && * uri ++ != '/' ) ;\n }\n else {\n return res ;\n }\n res . str = uri ;\n res . len = eol - uri ;\n return res ;\n }"}
{"idx": 9939, "target": 0, "func": "static void initial_reordering ( const hb_ot_shape_plan_t * plan , hb_font_t * font , hb_buffer_t * buffer ) {\n update_consonant_positions ( plan , font , buffer ) ;\n insert_dotted_circles ( plan , font , buffer ) ;\n foreach_syllable ( buffer , start , end ) initial_reordering_syllable ( plan , font -> face , buffer , start , end ) ;\n }"}
{"idx": 9940, "target": 1, "func": "static void dump_table ( char * table , char * db ) {\n char ignore_flag ;\n char buf [ 200 ] , table_buff [ NAME_LEN + 3 ] ;\n DYNAMIC_STRING query_string ;\n char table_type [ NAME_LEN ] ;\n char * result_table , table_buff2 [ NAME_LEN * 2 + 3 ] , * opt_quoted_table ;\n int error = 0 ;\n ulong rownr , row_break , total_length , init_length ;\n uint num_fields ;\n MYSQL_RES * res ;\n MYSQL_FIELD * field ;\n MYSQL_ROW row ;\n DBUG_ENTER ( \"dump_table\" ) ;\n num_fields = get_table_structure ( table , db , table_type , & ignore_flag ) ;\n if ( strcmp ( table_type , \"VIEW\" ) == 0 ) DBUG_VOID_RETURN ;\n if ( opt_no_data ) {\n verbose_msg ( \"-- Skipping dump data for table '%s', --no-data was used\\n\" , table ) ;\n DBUG_VOID_RETURN ;\n }\n DBUG_PRINT ( \"info\" , ( \"ignore_flag: %x num_fields: %d\" , ( int ) ignore_flag , num_fields ) ) ;\n if ( ignore_flag & IGNORE_DATA ) {\n verbose_msg ( \"-- Warning: Skipping data for table '%s' because \" \"it's of type %s\\n\" , table , table_type ) ;\n DBUG_VOID_RETURN ;\n }\n if ( num_fields == 0 ) {\n verbose_msg ( \"-- Skipping dump data for table '%s', it has no fields\\n\" , table ) ;\n DBUG_VOID_RETURN ;\n }\n if ( ! opt_events && ! my_strcasecmp ( & my_charset_latin1 , db , \"mysql\" ) && ! my_strcasecmp ( & my_charset_latin1 , table , \"event\" ) ) {\n verbose_msg ( \"-- Skipping data table mysql.event, --skip-events was used\\n\" ) ;\n DBUG_VOID_RETURN ;\n }\n result_table = quote_name ( table , table_buff , 1 ) ;\n opt_quoted_table = quote_name ( table , table_buff2 , 0 ) ;\n verbose_msg ( \"-- Sending SELECT query...\\n\" ) ;\n init_dynamic_string_checked ( & query_string , \"\" , 1024 , 1024 ) ;\n if ( path ) {\n char filename [ FN_REFLEN ] , tmp_path [ FN_REFLEN ] ;\n convert_dirname ( tmp_path , path , NullS ) ;\n my_load_path ( tmp_path , tmp_path , NULL ) ;\n fn_format ( filename , table , tmp_path , \".txt\" , MYF ( MY_UNPACK_FILENAME ) ) ;\n my_delete ( filename , MYF ( 0 ) ) ;\n to_unix_path ( filename ) ;\n dynstr_append_checked ( & query_string , \"SELECT /*!40001 SQL_NO_CACHE */ * INTO OUTFILE '\" ) ;\n dynstr_append_checked ( & query_string , filename ) ;\n dynstr_append_checked ( & query_string , \"'\" ) ;\n dynstr_append_checked ( & query_string , \" /*!50138 CHARACTER SET \" ) ;\n dynstr_append_checked ( & query_string , default_charset == mysql_universal_client_charset ? my_charset_bin . name : default_charset ) ;\n dynstr_append_checked ( & query_string , \" */\" ) ;\n if ( fields_terminated || enclosed || opt_enclosed || escaped ) dynstr_append_checked ( & query_string , \" FIELDS\" ) ;\n add_load_option ( & query_string , \" TERMINATED BY \" , fields_terminated ) ;\n add_load_option ( & query_string , \" ENCLOSED BY \" , enclosed ) ;\n add_load_option ( & query_string , \" OPTIONALLY ENCLOSED BY \" , opt_enclosed ) ;\n add_load_option ( & query_string , \" ESCAPED BY \" , escaped ) ;\n add_load_option ( & query_string , \" LINES TERMINATED BY \" , lines_terminated ) ;\n dynstr_append_checked ( & query_string , \" FROM \" ) ;\n dynstr_append_checked ( & query_string , result_table ) ;\n if ( where ) {\n dynstr_append_checked ( & query_string , \" WHERE \" ) ;\n dynstr_append_checked ( & query_string , where ) ;\n }\n if ( order_by ) {\n dynstr_append_checked ( & query_string , \" ORDER BY \" ) ;\n dynstr_append_checked ( & query_string , order_by ) ;\n }\n if ( mysql_real_query ( mysql , query_string . str , query_string . length ) ) {\n DB_error ( mysql , \"when executing 'SELECT INTO OUTFILE'\" ) ;\n dynstr_free ( & query_string ) ;\n DBUG_VOID_RETURN ;\n }\n }\n else {\n print_comment ( md_result_file , 0 , \"\\n--\\n-- Dumping data for table %s\\n--\\n\" , result_table ) ;\n dynstr_append_checked ( & query_string , \"SELECT /*!40001 SQL_NO_CACHE */ * FROM \" ) ;\n dynstr_append_checked ( & query_string , result_table ) ;\n if ( where ) {\n print_comment ( md_result_file , 0 , \"-- WHERE: %s\\n\" , where ) ;\n dynstr_append_checked ( & query_string , \" WHERE \" ) ;\n dynstr_append_checked ( & query_string , where ) ;\n }\n if ( order_by ) {\n print_comment ( md_result_file , 0 , \"-- ORDER BY: %s\\n\" , order_by ) ;\n dynstr_append_checked ( & query_string , \" ORDER BY \" ) ;\n dynstr_append_checked ( & query_string , order_by ) ;\n }\n if ( ! opt_xml && ! opt_compact ) {\n fputs ( \"\\n\" , md_result_file ) ;\n check_io ( md_result_file ) ;\n }\n if ( mysql_query_with_error_report ( mysql , 0 , query_string . str ) ) {\n DB_error ( mysql , \"when retrieving data from server\" ) ;\n goto err ;\n }\n if ( quick ) res = mysql_use_result ( mysql ) ;\n else res = mysql_store_result ( mysql ) ;\n if ( ! res ) {\n DB_error ( mysql , \"when retrieving data from server\" ) ;\n goto err ;\n }\n verbose_msg ( \"-- Retrieving rows...\\n\" ) ;\n if ( mysql_num_fields ( res ) != num_fields ) {\n fprintf ( stderr , \"%s: Error in field count for table: %s ! Aborting.\\n\" , my_progname_short , result_table ) ;\n error = EX_CONSCHECK ;\n goto err ;\n }\n if ( opt_lock ) {\n fprintf ( md_result_file , \"LOCK TABLES %s WRITE;\n\\n\" , opt_quoted_table ) ;\n check_io ( md_result_file ) ;\n }\n if ( opt_disable_keys ) {\n fprintf ( md_result_file , \"/*!40000 ALTER TABLE %s DISABLE KEYS */;\n\\n\" , opt_quoted_table ) ;\n check_io ( md_result_file ) ;\n }\n total_length = opt_net_buffer_length ;\n row_break = 0 ;\n rownr = 0 ;\n init_length = ( uint ) insert_pat . length + 4 ;\n if ( opt_xml ) print_xml_tag ( md_result_file , \"\\t\" , \"\\n\" , \"table_data\" , \"name=\" , table , NullS ) ;\n if ( opt_autocommit ) {\n fprintf ( md_result_file , \"set autocommit=0;\n\\n\" ) ;\n check_io ( md_result_file ) ;\n }\n while ( ( row = mysql_fetch_row ( res ) ) ) {\n uint i ;\n ulong * lengths = mysql_fetch_lengths ( res ) ;\n rownr ++ ;\n if ( ! extended_insert && ! opt_xml ) {\n fputs ( insert_pat . str , md_result_file ) ;\n check_io ( md_result_file ) ;\n }\n mysql_field_seek ( res , 0 ) ;\n if ( opt_xml ) {\n fputs ( \"\\t<row>\\n\" , md_result_file ) ;\n check_io ( md_result_file ) ;\n }\n for ( i = 0 ;\n i < mysql_num_fields ( res ) ;\n i ++ ) {\n int is_blob ;\n ulong length = lengths [ i ] ;\n if ( ! ( field = mysql_fetch_field ( res ) ) ) die ( EX_CONSCHECK , \"Not enough fields from table %s! Aborting.\\n\" , result_table ) ;\n is_blob = ( opt_hex_blob && field -> charsetnr == 63 && ( field -> type == MYSQL_TYPE_BIT || field -> type == MYSQL_TYPE_STRING || field -> type == MYSQL_TYPE_VAR_STRING || field -> type == MYSQL_TYPE_VARCHAR || field -> type == MYSQL_TYPE_BLOB || field -> type == MYSQL_TYPE_LONG_BLOB || field -> type == MYSQL_TYPE_MEDIUM_BLOB || field -> type == MYSQL_TYPE_TINY_BLOB || field -> type == MYSQL_TYPE_GEOMETRY ) ) ? 1 : 0 ;\n if ( extended_insert && ! opt_xml ) {\n if ( i == 0 ) dynstr_set_checked ( & extended_row , \"(\" ) ;\n else dynstr_append_checked ( & extended_row , \",\" ) ;\n if ( row [ i ] ) {\n if ( length ) {\n if ( ! ( field -> flags & NUM_FLAG ) ) {\n dynstr_realloc_checked ( & extended_row , length * 2 + 2 + 1 ) ;\n if ( opt_hex_blob && is_blob ) {\n dynstr_append_checked ( & extended_row , \"0x\" ) ;\n extended_row . length += mysql_hex_string ( extended_row . str + extended_row . length , row [ i ] , length ) ;\n DBUG_ASSERT ( extended_row . length + 1 <= extended_row . max_length ) ;\n DBUG_ASSERT ( extended_row . str [ extended_row . length ] == '\\0' ) ;\n }\n else {\n dynstr_append_checked ( & extended_row , \"'\" ) ;\n extended_row . length += mysql_real_escape_string ( & mysql_connection , & extended_row . str [ extended_row . length ] , row [ i ] , length ) ;\n extended_row . str [ extended_row . length ] = '\\0' ;\n dynstr_append_checked ( & extended_row , \"'\" ) ;\n }\n }\n else {\n char * ptr = row [ i ] ;\n if ( my_isalpha ( charset_info , * ptr ) || ( * ptr == '-' && my_isalpha ( charset_info , ptr [ 1 ] ) ) ) dynstr_append_checked ( & extended_row , \"NULL\" ) ;\n else {\n if ( field -> type == MYSQL_TYPE_DECIMAL ) {\n dynstr_append_checked ( & extended_row , \"'\" ) ;\n dynstr_append_checked ( & extended_row , ptr ) ;\n dynstr_append_checked ( & extended_row , \"'\" ) ;\n }\n else dynstr_append_checked ( & extended_row , ptr ) ;\n }\n }\n }\n else dynstr_append_checked ( & extended_row , \"''\" ) ;\n }\n else dynstr_append_checked ( & extended_row , \"NULL\" ) ;\n }\n else {\n if ( i && ! opt_xml ) {\n fputc ( ',' , md_result_file ) ;\n check_io ( md_result_file ) ;\n }\n if ( row [ i ] ) {\n if ( ! ( field -> flags & NUM_FLAG ) ) {\n if ( opt_xml ) {\n if ( opt_hex_blob && is_blob && length ) {\n print_xml_tag ( md_result_file , \"\\t\\t\" , \"\" , \"field\" , \"name=\" , field -> name , \"xsi:type=\" , \"xs:hexBinary\" , NullS ) ;\n print_blob_as_hex ( md_result_file , row [ i ] , length ) ;\n }\n else {\n print_xml_tag ( md_result_file , \"\\t\\t\" , \"\" , \"field\" , \"name=\" , field -> name , NullS ) ;\n print_quoted_xml ( md_result_file , row [ i ] , length , 0 ) ;\n }\n fputs ( \"</field>\\n\" , md_result_file ) ;\n }\n else if ( opt_hex_blob && is_blob && length ) {\n fputs ( \"0x\" , md_result_file ) ;\n print_blob_as_hex ( md_result_file , row [ i ] , length ) ;\n }\n else unescape ( md_result_file , row [ i ] , length ) ;\n }\n else {\n char * ptr = row [ i ] ;\n if ( opt_xml ) {\n print_xml_tag ( md_result_file , \"\\t\\t\" , \"\" , \"field\" , \"name=\" , field -> name , NullS ) ;\n fputs ( ! my_isalpha ( charset_info , * ptr ) ? ptr : \"NULL\" , md_result_file ) ;\n fputs ( \"</field>\\n\" , md_result_file ) ;\n }\n else if ( my_isalpha ( charset_info , * ptr ) || ( * ptr == '-' && my_isalpha ( charset_info , ptr [ 1 ] ) ) ) fputs ( \"NULL\" , md_result_file ) ;\n else if ( field -> type == MYSQL_TYPE_DECIMAL ) {\n fputc ( '\\'' , md_result_file ) ;\n fputs ( ptr , md_result_file ) ;\n fputc ( '\\'' , md_result_file ) ;\n }\n else fputs ( ptr , md_result_file ) ;\n }\n }\n else {\n if ( ! opt_xml ) fputs ( \"NULL\" , md_result_file ) ;\n else print_xml_null_tag ( md_result_file , \"\\t\\t\" , \"field name=\" , field -> name , \"\\n\" ) ;\n }\n check_io ( md_result_file ) ;\n }\n }\n if ( opt_xml ) {\n fputs ( \"\\t</row>\\n\" , md_result_file ) ;\n check_io ( md_result_file ) ;\n }\n if ( extended_insert ) {\n ulong row_length ;\n dynstr_append_checked ( & extended_row , \")\" ) ;\n row_length = 2 + extended_row . length ;\n if ( total_length + row_length < opt_net_buffer_length ) {\n total_length += row_length ;\n fputc ( ',' , md_result_file ) ;\n fputs ( extended_row . str , md_result_file ) ;\n }\n else {\n if ( row_break ) fputs ( \";\n\\n\" , md_result_file ) ;\n row_break = 1 ;\n fputs ( insert_pat . str , md_result_file ) ;\n fputs ( extended_row . str , md_result_file ) ;\n total_length = row_length + init_length ;\n }\n check_io ( md_result_file ) ;\n }\n else if ( ! opt_xml ) {\n fputs ( \");\n\\n\" , md_result_file ) ;\n check_io ( md_result_file ) ;\n }\n }\n if ( opt_xml ) fputs ( \"\\t</table_data>\\n\" , md_result_file ) ;\n else if ( extended_insert && row_break ) fputs ( \";\n\\n\" , md_result_file ) ;\n fflush ( md_result_file ) ;\n check_io ( md_result_file ) ;\n if ( mysql_errno ( mysql ) ) {\n my_snprintf ( buf , sizeof ( buf ) , \"%s: Error %d: %s when dumping table %s at row: %ld\\n\" , my_progname_short , mysql_errno ( mysql ) , mysql_error ( mysql ) , result_table , rownr ) ;\n fputs ( buf , stderr ) ;\n error = EX_CONSCHECK ;\n goto err ;\n }\n if ( opt_disable_keys ) {\n fprintf ( md_result_file , \"/*!40000 ALTER TABLE %s ENABLE KEYS */;\n\\n\" , opt_quoted_table ) ;\n check_io ( md_result_file ) ;\n }\n if ( opt_lock ) {\n fputs ( \"UNLOCK TABLES;\n\\n\" , md_result_file ) ;\n check_io ( md_result_file ) ;\n }\n if ( opt_autocommit ) {\n fprintf ( md_result_file , \"commit;\n\\n\" ) ;\n check_io ( md_result_file ) ;\n }\n mysql_free_result ( res ) ;\n }\n dynstr_free ( & query_string ) ;\n DBUG_VOID_RETURN ;\n err : dynstr_free ( & query_string ) ;\n maybe_exit ( error ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 9941, "target": 0, "func": "static gboolean lacks_directory_count ( NautilusFile * file ) {\n return ! file -> details -> directory_count_is_up_to_date && nautilus_file_should_show_directory_item_count ( file ) ;\n }"}
{"idx": 9942, "target": 0, "func": "static GList * istr_set_get_as_list ( GHashTable * table ) {\n GList * list ;\n list = NULL ;\n g_hash_table_foreach ( table , add_istr_to_list , & list ) ;\n return list ;\n }"}
{"idx": 9943, "target": 0, "func": "static int evutil_issetugid ( void ) {\n # ifdef _EVENT_HAVE_ISSETUGID return issetugid ( ) ;\n # else # ifdef _EVENT_HAVE_GETEUID if ( getuid ( ) != geteuid ( ) ) return 1 ;\n # endif # ifdef _EVENT_HAVE_GETEGID if ( getgid ( ) != getegid ( ) ) return 1 ;\n # endif return 0 ;\n # endif }"}
{"idx": 9944, "target": 0, "func": "static gboolean should_skip_readdir_error ( CommonJob * common , GFile * dir ) {\n if ( common -> skip_readdir_error != NULL ) {\n return g_hash_table_lookup ( common -> skip_readdir_error , dir ) != NULL ;\n }\n return FALSE ;\n }"}
{"idx": 9945, "target": 0, "func": "static void http_readcb ( struct bufferevent * bev , void * arg ) {\n const char * what = \"This is funny\" ;\n event_debug ( ( \"%s: %s\\n\" , __func__ , EVBUFFER_DATA ( bev -> input ) ) ) ;\n if ( evbuffer_find ( bev -> input , ( const unsigned char * ) what , strlen ( what ) ) != NULL ) {\n struct evhttp_request * req = evhttp_request_new ( NULL , NULL ) ;\n enum message_read_status done ;\n req -> kind = EVHTTP_RESPONSE ;\n done = evhttp_parse_firstline ( req , bev -> input ) ;\n if ( done != ALL_DATA_READ ) goto out ;\n done = evhttp_parse_headers ( req , bev -> input ) ;\n if ( done != ALL_DATA_READ ) goto out ;\n if ( done == 1 && evhttp_find_header ( req -> input_headers , \"Content-Type\" ) != NULL ) test_ok ++ ;\n out : evhttp_request_free ( req ) ;\n bufferevent_disable ( bev , EV_READ ) ;\n if ( base ) event_base_loopexit ( base , NULL ) ;\n else event_loopexit ( NULL ) ;\n }\n }"}
{"idx": 9946, "target": 0, "func": "static int get_max_name_length ( GFile * file_dir ) {\n int max_length ;\n char * dir ;\n long max_path ;\n long max_name ;\n max_length = - 1 ;\n if ( ! g_file_has_uri_scheme ( file_dir , \"file\" ) ) {\n return max_length ;\n }\n dir = g_file_get_path ( file_dir ) ;\n if ( ! dir ) {\n return max_length ;\n }\n max_path = pathconf ( dir , _PC_PATH_MAX ) ;\n max_name = pathconf ( dir , _PC_NAME_MAX ) ;\n if ( max_name == - 1 && max_path == - 1 ) {\n max_length = - 1 ;\n }\n else if ( max_name == - 1 && max_path != - 1 ) {\n max_length = max_path - ( strlen ( dir ) + 1 ) ;\n }\n else if ( max_name != - 1 && max_path == - 1 ) {\n max_length = max_name ;\n }\n else {\n int leftover ;\n leftover = max_path - ( strlen ( dir ) + 1 ) ;\n max_length = MIN ( leftover , max_name ) ;\n }\n g_free ( dir ) ;\n return max_length ;\n }"}
{"idx": 9947, "target": 0, "func": "static struct taboff * findtabindir ( struct tabdir * td , uint32 tag ) {\n int i ;\n for ( i = 0 ;\n i < td -> numtab ;\n ++ i ) if ( td -> tabs [ i ] . tag == tag ) return ( & td -> tabs [ i ] ) ;\n return ( NULL ) ;\n }"}
{"idx": 9948, "target": 0, "func": "static void http_failure_readcb ( struct bufferevent * bev , void * arg ) {\n const char * what = \"400 Bad Request\" ;\n if ( evbuffer_find ( bev -> input , ( const unsigned char * ) what , strlen ( what ) ) != NULL ) {\n test_ok = 2 ;\n bufferevent_disable ( bev , EV_READ ) ;\n event_loopexit ( NULL ) ;\n }\n }"}
{"idx": 9949, "target": 0, "func": "int qemuMonitorJSONAttachDrive ( qemuMonitorPtr mon , const char * drivestr , virDomainDevicePCIAddress * controllerAddr , virDomainDeviceDriveAddress * driveAddr ) {\n int ret ;\n virJSONValuePtr cmd = NULL ;\n virJSONValuePtr reply = NULL ;\n char * dev ;\n if ( virAsprintf ( & dev , \"%.2x:%.2x.%.1x\" , controllerAddr -> bus , controllerAddr -> slot , controllerAddr -> function ) < 0 ) {\n virReportOOMError ( ) ;\n return - 1 ;\n }\n cmd = qemuMonitorJSONMakeCommand ( \"drive_add\" , \"s:pci_addr\" , dev , \"s:opts\" , drivestr , NULL ) ;\n VIR_FREE ( dev ) ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n if ( ret == 0 && qemuMonitorJSONGetGuestDriveAddress ( reply , driveAddr ) < 0 ) ret = - 1 ;\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 9950, "target": 0, "func": "static int dissect_h245_T_crcDesired ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_crcDesired , T_crcDesired_sequence ) ;\n return offset ;\n }"}
{"idx": 9951, "target": 1, "func": "extern int name ( int , locale_t ) __THROW __exctype_l ( isalnum_l ) ;\n __exctype_l ( isalpha_l ) ;\n __exctype_l ( iscntrl_l ) ;\n __exctype_l ( isdigit_l ) ;\n __exctype_l ( islower_l )"}
{"idx": 9952, "target": 0, "func": "TEST_F ( SoundContentSettingObserverTest , MuteByDefaultAndExceptionRecordsException ) {\n ChangeSoundContentSettingTo ( CONTENT_SETTING_BLOCK ) ;\n ChangeDefaultSoundContentSettingTo ( CONTENT_SETTING_BLOCK ) ;\n SimulateAudioStarting ( ) ;\n EXPECT_TRUE ( RecordedSiteMuted ( ) ) ;\n ExpectRecordedForReason ( SoundContentSettingObserver : : MuteReason : : kSiteException ) ;\n }"}
{"idx": 9953, "target": 0, "func": "static int slirp_guestfwd ( SlirpState * s , const char * config_str , int legacy_format ) {\n struct in_addr server = {\n . s_addr = 0 }\n ;\n struct GuestFwd * fwd ;\n const char * p ;\n char buf [ 128 ] ;\n char * end ;\n int port ;\n p = config_str ;\n if ( legacy_format ) {\n if ( get_str_sep ( buf , sizeof ( buf ) , & p , ':' ) < 0 ) {\n goto fail_syntax ;\n }\n }\n else {\n if ( get_str_sep ( buf , sizeof ( buf ) , & p , ':' ) < 0 ) {\n goto fail_syntax ;\n }\n if ( strcmp ( buf , \"tcp\" ) && buf [ 0 ] != '\\0' ) {\n goto fail_syntax ;\n }\n if ( get_str_sep ( buf , sizeof ( buf ) , & p , ':' ) < 0 ) {\n goto fail_syntax ;\n }\n if ( buf [ 0 ] != '\\0' && ! inet_aton ( buf , & server ) ) {\n goto fail_syntax ;\n }\n if ( get_str_sep ( buf , sizeof ( buf ) , & p , '-' ) < 0 ) {\n goto fail_syntax ;\n }\n }\n port = strtol ( buf , & end , 10 ) ;\n if ( * end != '\\0' || port < 1 || port > 65535 ) {\n goto fail_syntax ;\n }\n snprintf ( buf , sizeof ( buf ) , \"guestfwd.tcp.%d\" , port ) ;\n if ( ( strlen ( p ) > 4 ) && ! strncmp ( p , \"cmd:\" , 4 ) ) {\n if ( slirp_add_exec ( s -> slirp , 0 , & p [ 4 ] , & server , port ) < 0 ) {\n error_report ( \"conflicting/invalid host:port in guest forwarding \" \"rule '%s'\" , config_str ) ;\n return - 1 ;\n }\n }\n else {\n fwd = g_new ( struct GuestFwd , 1 ) ;\n fwd -> hd = qemu_chr_new ( buf , p , NULL ) ;\n if ( ! fwd -> hd ) {\n error_report ( \"could not open guest forwarding device '%s'\" , buf ) ;\n g_free ( fwd ) ;\n return - 1 ;\n }\n if ( slirp_add_exec ( s -> slirp , 3 , fwd -> hd , & server , port ) < 0 ) {\n error_report ( \"conflicting/invalid host:port in guest forwarding \" \"rule '%s'\" , config_str ) ;\n g_free ( fwd ) ;\n return - 1 ;\n }\n fwd -> server = server ;\n fwd -> port = port ;\n fwd -> slirp = s -> slirp ;\n qemu_chr_fe_claim_no_fail ( fwd -> hd ) ;\n qemu_chr_add_handlers ( fwd -> hd , guestfwd_can_read , guestfwd_read , NULL , fwd ) ;\n }\n return 0 ;\n fail_syntax : error_report ( \"invalid guest forwarding rule '%s'\" , config_str ) ;\n return - 1 ;\n }"}
{"idx": 9954, "target": 0, "func": "int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL ) DECLARE_PEM_rw ( PKCS7 , PKCS7 ) DECLARE_PEM_rw ( NETSCAPE_CERT_SEQUENCE , NETSCAPE_CERT_SEQUENCE ) DECLARE_PEM_rw ( PKCS8 , X509_SIG ) DECLARE_PEM_rw ( PKCS8_PRIV_KEY_INFO , PKCS8_PRIV_KEY_INFO ) # ifndef OPENSSL_NO_RSA DECLARE_PEM_rw_cb ( RSAPrivateKey , RSA ) DECLARE_PEM_rw_const ( RSAPublicKey , RSA ) DECLARE_PEM_rw ( RSA_PUBKEY , RSA ) # endif # ifndef OPENSSL_NO_DSA DECLARE_PEM_rw_cb ( DSAPrivateKey , DSA ) DECLARE_PEM_rw ( DSA_PUBKEY , DSA ) DECLARE_PEM_rw_const ( DSAparams , DSA ) # endif # ifndef OPENSSL_NO_EC DECLARE_PEM_rw_const ( ECPKParameters , EC_GROUP ) DECLARE_PEM_rw_cb ( ECPrivateKey , EC_KEY ) DECLARE_PEM_rw ( EC_PUBKEY , EC_KEY ) # endif # ifndef OPENSSL_NO_DH DECLARE_PEM_rw_const ( DHparams , DH ) DECLARE_PEM_write_const ( DHxparams , DH )"}
{"idx": 9955, "target": 0, "func": "int ff_MPV_encode_picture ( AVCodecContext * avctx , AVPacket * pkt , const AVFrame * pic_arg , int * got_packet ) {\n MpegEncContext * s = avctx -> priv_data ;\n int i , stuffing_count , ret ;\n int context_count = s -> slice_context_count ;\n s -> picture_in_gop_number ++ ;\n if ( load_input_picture ( s , pic_arg ) < 0 ) return - 1 ;\n if ( select_input_picture ( s ) < 0 ) {\n return - 1 ;\n }\n if ( s -> new_picture . f . data [ 0 ] ) {\n if ( ! pkt -> data && ( ret = ff_alloc_packet ( pkt , s -> mb_width * s -> mb_height * MAX_MB_BYTES ) ) < 0 ) return ret ;\n if ( s -> mb_info ) {\n s -> mb_info_ptr = av_packet_new_side_data ( pkt , AV_PKT_DATA_H263_MB_INFO , s -> mb_width * s -> mb_height * 12 ) ;\n s -> prev_mb_info = s -> last_mb_info = s -> mb_info_size = 0 ;\n }\n for ( i = 0 ;\n i < context_count ;\n i ++ ) {\n int start_y = s -> thread_context [ i ] -> start_mb_y ;\n int end_y = s -> thread_context [ i ] -> end_mb_y ;\n int h = s -> mb_height ;\n uint8_t * start = pkt -> data + ( size_t ) ( ( ( int64_t ) pkt -> size ) * start_y / h ) ;\n uint8_t * end = pkt -> data + ( size_t ) ( ( ( int64_t ) pkt -> size ) * end_y / h ) ;\n init_put_bits ( & s -> thread_context [ i ] -> pb , start , end - start ) ;\n }\n s -> pict_type = s -> new_picture . f . pict_type ;\n ff_MPV_frame_start ( s , avctx ) ;\n vbv_retry : if ( encode_picture ( s , s -> picture_number ) < 0 ) return - 1 ;\n avctx -> header_bits = s -> header_bits ;\n avctx -> mv_bits = s -> mv_bits ;\n avctx -> misc_bits = s -> misc_bits ;\n avctx -> i_tex_bits = s -> i_tex_bits ;\n avctx -> p_tex_bits = s -> p_tex_bits ;\n avctx -> i_count = s -> i_count ;\n avctx -> p_count = s -> mb_num - s -> i_count - s -> skip_count ;\n avctx -> skip_count = s -> skip_count ;\n ff_MPV_frame_end ( s ) ;\n if ( CONFIG_MJPEG_ENCODER && s -> out_format == FMT_MJPEG ) ff_mjpeg_encode_picture_trailer ( s ) ;\n if ( avctx -> rc_buffer_size ) {\n RateControlContext * rcc = & s -> rc_context ;\n int max_size = rcc -> buffer_index * avctx -> rc_max_available_vbv_use ;\n if ( put_bits_count ( & s -> pb ) > max_size && s -> lambda < s -> avctx -> lmax ) {\n s -> next_lambda = FFMAX ( s -> lambda + 1 , s -> lambda * ( s -> qscale + 1 ) / s -> qscale ) ;\n if ( s -> adaptive_quant ) {\n int i ;\n for ( i = 0 ;\n i < s -> mb_height * s -> mb_stride ;\n i ++ ) s -> lambda_table [ i ] = FFMAX ( s -> lambda_table [ i ] + 1 , s -> lambda_table [ i ] * ( s -> qscale + 1 ) / s -> qscale ) ;\n }\n s -> mb_skipped = 0 ;\n if ( s -> pict_type == AV_PICTURE_TYPE_P ) {\n if ( s -> flipflop_rounding || s -> codec_id == AV_CODEC_ID_H263P || s -> codec_id == AV_CODEC_ID_MPEG4 ) s -> no_rounding ^= 1 ;\n }\n if ( s -> pict_type != AV_PICTURE_TYPE_B ) {\n s -> time_base = s -> last_time_base ;\n s -> last_non_b_time = s -> time - s -> pp_time ;\n }\n for ( i = 0 ;\n i < context_count ;\n i ++ ) {\n PutBitContext * pb = & s -> thread_context [ i ] -> pb ;\n init_put_bits ( pb , pb -> buf , pb -> buf_end - pb -> buf ) ;\n }\n goto vbv_retry ;\n }\n assert ( s -> avctx -> rc_max_rate ) ;\n }\n if ( s -> flags & CODEC_FLAG_PASS1 ) ff_write_pass1_stats ( s ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n s -> current_picture_ptr -> f . error [ i ] = s -> current_picture . f . error [ i ] ;\n avctx -> error [ i ] += s -> current_picture_ptr -> f . error [ i ] ;\n }\n if ( s -> flags & CODEC_FLAG_PASS1 ) assert ( avctx -> header_bits + avctx -> mv_bits + avctx -> misc_bits + avctx -> i_tex_bits + avctx -> p_tex_bits == put_bits_count ( & s -> pb ) ) ;\n flush_put_bits ( & s -> pb ) ;\n s -> frame_bits = put_bits_count ( & s -> pb ) ;\n stuffing_count = ff_vbv_update ( s , s -> frame_bits ) ;\n if ( stuffing_count ) {\n if ( s -> pb . buf_end - s -> pb . buf - ( put_bits_count ( & s -> pb ) >> 3 ) < stuffing_count + 50 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"stuffing too large\\n\" ) ;\n return - 1 ;\n }\n switch ( s -> codec_id ) {\n case AV_CODEC_ID_MPEG1VIDEO : case AV_CODEC_ID_MPEG2VIDEO : while ( stuffing_count -- ) {\n put_bits ( & s -> pb , 8 , 0 ) ;\n }\n break ;\n case AV_CODEC_ID_MPEG4 : put_bits ( & s -> pb , 16 , 0 ) ;\n put_bits ( & s -> pb , 16 , 0x1C3 ) ;\n stuffing_count -= 4 ;\n while ( stuffing_count -- ) {\n put_bits ( & s -> pb , 8 , 0xFF ) ;\n }\n break ;\n default : av_log ( s -> avctx , AV_LOG_ERROR , \"vbv buffer overflow\\n\" ) ;\n }\n flush_put_bits ( & s -> pb ) ;\n s -> frame_bits = put_bits_count ( & s -> pb ) ;\n }\n if ( s -> avctx -> rc_max_rate && s -> avctx -> rc_min_rate == s -> avctx -> rc_max_rate && s -> out_format == FMT_MPEG1 && 90000LL * ( avctx -> rc_buffer_size - 1 ) <= s -> avctx -> rc_max_rate * 0xFFFFLL ) {\n int vbv_delay , min_delay ;\n double inbits = s -> avctx -> rc_max_rate * av_q2d ( s -> avctx -> time_base ) ;\n int minbits = s -> frame_bits - 8 * ( s -> vbv_delay_ptr - s -> pb . buf - 1 ) ;\n double bits = s -> rc_context . buffer_index + minbits - inbits ;\n if ( bits < 0 ) av_log ( s -> avctx , AV_LOG_ERROR , \"Internal error, negative bits\\n\" ) ;\n assert ( s -> repeat_first_field == 0 ) ;\n vbv_delay = bits * 90000 / s -> avctx -> rc_max_rate ;\n min_delay = ( minbits * 90000LL + s -> avctx -> rc_max_rate - 1 ) / s -> avctx -> rc_max_rate ;\n vbv_delay = FFMAX ( vbv_delay , min_delay ) ;\n assert ( vbv_delay < 0xFFFF ) ;\n s -> vbv_delay_ptr [ 0 ] &= 0xF8 ;\n s -> vbv_delay_ptr [ 0 ] |= vbv_delay >> 13 ;\n s -> vbv_delay_ptr [ 1 ] = vbv_delay >> 5 ;\n s -> vbv_delay_ptr [ 2 ] &= 0x07 ;\n s -> vbv_delay_ptr [ 2 ] |= vbv_delay << 3 ;\n avctx -> vbv_delay = vbv_delay * 300 ;\n }\n s -> total_bits += s -> frame_bits ;\n avctx -> frame_bits = s -> frame_bits ;\n pkt -> pts = s -> current_picture . f . pts ;\n if ( ! s -> low_delay ) {\n if ( ! s -> current_picture . f . coded_picture_number ) pkt -> dts = pkt -> pts - s -> dts_delta ;\n else pkt -> dts = s -> reordered_pts ;\n s -> reordered_pts = s -> input_picture [ 0 ] -> f . pts ;\n }\n else pkt -> dts = pkt -> pts ;\n if ( s -> current_picture . f . key_frame ) pkt -> flags |= AV_PKT_FLAG_KEY ;\n if ( s -> mb_info ) av_packet_shrink_side_data ( pkt , AV_PKT_DATA_H263_MB_INFO , s -> mb_info_size ) ;\n }\n else {\n s -> frame_bits = 0 ;\n }\n assert ( ( s -> frame_bits & 7 ) == 0 ) ;\n pkt -> size = s -> frame_bits / 8 ;\n * got_packet = ! ! pkt -> size ;\n return 0 ;\n }"}
{"idx": 9956, "target": 0, "func": "static int32_t findNextEsc ( const char * source , const char * sourceLimit ) {\n int32_t length = sourceLimit - source ;\n int32_t i ;\n for ( i = 1 ;\n i < length ;\n i ++ ) {\n if ( * ( source + i ) == 0x1B ) {\n return i ;\n }\n }\n return length ;\n }"}
{"idx": 9957, "target": 0, "func": "static void draw_arrow ( uint8_t * buf , int sx , int sy , int ex , int ey , int w , int h , int stride , int color ) {\n int dx , dy ;\n sx = av_clip ( sx , - 100 , w + 100 ) ;\n sy = av_clip ( sy , - 100 , h + 100 ) ;\n ex = av_clip ( ex , - 100 , w + 100 ) ;\n ey = av_clip ( ey , - 100 , h + 100 ) ;\n dx = ex - sx ;\n dy = ey - sy ;\n if ( dx * dx + dy * dy > 3 * 3 ) {\n int rx = dx + dy ;\n int ry = - dx + dy ;\n int length = ff_sqrt ( ( rx * rx + ry * ry ) << 8 ) ;\n rx = ROUNDED_DIV ( rx * 3 << 4 , length ) ;\n ry = ROUNDED_DIV ( ry * 3 << 4 , length ) ;\n draw_line ( buf , sx , sy , sx + rx , sy + ry , w , h , stride , color ) ;\n draw_line ( buf , sx , sy , sx - ry , sy + rx , w , h , stride , color ) ;\n }\n draw_line ( buf , sx , sy , ex , ey , w , h , stride , color ) ;\n }"}
{"idx": 9958, "target": 0, "func": "unsigned int vp9_sad ## m ## x ## n ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride ) {\n return sad ( src , src_stride , ref , ref_stride , m , n ) ;\n \\ }\n 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 ) {\n uint8_t comp_pred [ m * n ] ;\n vp9_comp_avg_pred ( comp_pred , second_pred , m , n , ref , ref_stride ) ;\n return sad ( src , src_stride , comp_pred , m , m , n ) ;\n \\ }\n # define sadMxNxK ( m , n , k ) void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 )"}
{"idx": 9959, "target": 0, "func": "int fz_cmm_avoid_white_fix_flag ( fz_context * ctx ) {\n if ( ctx && ctx -> colorspace && ctx -> colorspace -> cmm && ctx -> cmm_instance ) return ctx -> colorspace -> cmm -> avoid_white_fix_flag ;\n return 0 ;\n }"}
{"idx": 9960, "target": 0, "func": "static int nsv_resync ( AVFormatContext * s ) {\n NSVContext * nsv = s -> priv_data ;\n AVIOContext * pb = s -> pb ;\n uint32_t v = 0 ;\n int i ;\n for ( i = 0 ;\n i < NSV_MAX_RESYNC ;\n i ++ ) {\n if ( avio_feof ( pb ) ) {\n av_log ( s , AV_LOG_TRACE , \"NSV EOF\\n\" ) ;\n nsv -> state = NSV_UNSYNC ;\n return - 1 ;\n }\n v <<= 8 ;\n v |= avio_r8 ( pb ) ;\n if ( i < 8 ) {\n av_log ( s , AV_LOG_TRACE , \"NSV resync: [%d] = %02\" PRIx32 \"\\n\" , i , v & 0x0FF ) ;\n }\n if ( ( v & 0x0000ffff ) == 0xefbe ) {\n av_log ( s , AV_LOG_TRACE , \"NSV resynced on BEEF after %d bytes\\n\" , i + 1 ) ;\n nsv -> state = NSV_FOUND_BEEF ;\n return 0 ;\n }\n if ( v == TB_NSVF ) {\n av_log ( s , AV_LOG_TRACE , \"NSV resynced on NSVf after %d bytes\\n\" , i + 1 ) ;\n nsv -> state = NSV_FOUND_NSVF ;\n return 0 ;\n }\n if ( v == MKBETAG ( 'N' , 'S' , 'V' , 's' ) ) {\n av_log ( s , AV_LOG_TRACE , \"NSV resynced on NSVs after %d bytes\\n\" , i + 1 ) ;\n nsv -> state = NSV_FOUND_NSVS ;\n return 0 ;\n }\n }\n av_log ( s , AV_LOG_TRACE , \"NSV sync lost\\n\" ) ;\n return - 1 ;\n }"}
{"idx": 9961, "target": 0, "func": "static inline bool e1000e_eitr_should_postpone ( E1000ECore * core , int idx ) {\n return e1000e_postpone_interrupt ( & core -> eitr_intr_pending [ idx ] , & core -> eitr [ idx ] ) ;\n }"}
{"idx": 9962, "target": 1, "func": "static int com_connect ( String * buffer , char * line ) {\n char * tmp , buff [ 256 ] ;\n my_bool save_rehash = opt_rehash ;\n int error ;\n bzero ( buff , sizeof ( buff ) ) ;\n if ( buffer ) {\n tmp = strmake ( buff , line , sizeof ( buff ) - 2 ) ;\n # ifdef EXTRA_DEBUG tmp [ 1 ] = 0 ;\n # endif tmp = get_arg ( buff , 0 ) ;\n if ( tmp && * tmp ) {\n my_free ( current_db ) ;\n current_db = my_strdup ( tmp , MYF ( MY_WME ) ) ;\n tmp = get_arg ( buff , 1 ) ;\n if ( tmp ) {\n my_free ( current_host ) ;\n current_host = my_strdup ( tmp , MYF ( MY_WME ) ) ;\n }\n }\n else {\n opt_rehash = 0 ;\n }\n buffer -> length ( 0 ) ;\n }\n else opt_rehash = 0 ;\n error = sql_connect ( current_host , current_db , current_user , opt_password , 0 ) ;\n opt_rehash = save_rehash ;\n if ( connected ) {\n sprintf ( buff , \"Connection id: %lu\" , mysql_thread_id ( & mysql ) ) ;\n put_info ( buff , INFO_INFO ) ;\n sprintf ( buff , \"Current database: %.128s\\n\" , current_db ? current_db : \"*** NONE ***\" ) ;\n put_info ( buff , INFO_INFO ) ;\n }\n return error ;\n }"}
{"idx": 9963, "target": 0, "func": "TEST_F ( HQPOrderingTest , TEAMatch ) {\n std : : vector < std : : string > expected_urls ;\n expected_urls . push_back ( \"http://www.teamliquid.net/\" ) ;\n expected_urls . push_back ( \"http://www.teamliquid.net/tlpd\" ) ;\n expected_urls . push_back ( \"http://www.teamliquid.net/tlpd/korean/players\" ) ;\n RunTest ( ASCIIToUTF16 ( \"tea\" ) , false , expected_urls , true , ASCIIToUTF16 ( \"www.teamliquid.net\" ) , ASCIIToUTF16 ( \"mliquid.net\" ) ) ;\n }"}
{"idx": 9964, "target": 0, "func": "static void super_block_yrd ( VP9_COMP * cpi , MACROBLOCK * x , int * rate , int64_t * distortion , int * skip , int64_t * psse , BLOCK_SIZE bs , int64_t txfm_cache [ TX_MODES ] , int64_t ref_best_rd ) {\n MACROBLOCKD * xd = & x -> e_mbd ;\n int64_t sse ;\n int64_t * ret_sse = psse ? psse : & sse ;\n assert ( bs == xd -> mi [ 0 ] . src_mi -> mbmi . sb_type ) ;\n if ( cpi -> sf . tx_size_search_method == USE_LARGESTALL || xd -> lossless ) {\n vpx_memset ( txfm_cache , 0 , TX_MODES * sizeof ( int64_t ) ) ;\n choose_largest_tx_size ( cpi , x , rate , distortion , skip , ret_sse , ref_best_rd , bs ) ;\n }\n else {\n choose_tx_size_from_rd ( cpi , x , rate , distortion , skip , ret_sse , txfm_cache , ref_best_rd , bs ) ;\n }\n }"}
{"idx": 9965, "target": 0, "func": "static void _InterpretPS ( IO * wrapper , EntityChar * ec , RetStack * rs ) {\n SplinePointList * cur = NULL , * head = NULL ;\n DBasePoint current , temp ;\n int tok , i , j ;\n struct psstack stack [ 100 ] ;\n real dval ;\n unsigned sp = 0 ;\n SplinePoint * pt ;\n RefChar * ref , * lastref = NULL ;\n real transform [ 6 ] , t [ 6 ] ;\n struct graphicsstate {\n real transform [ 6 ] ;\n DBasePoint current ;\n real linewidth ;\n int linecap , linejoin ;\n Color fore ;\n DashType dashes [ DASH_MAX ] ;\n SplineSet * clippath ;\n }\n gsaves [ 30 ] ;\n int gsp = 0 ;\n int ccnt = 0 ;\n GrowBuf gb ;\n struct pskeydict dict ;\n struct pskeyval * kv ;\n Color fore = COLOR_INHERITED ;\n int linecap = lc_inherited , linejoin = lj_inherited ;\n real linewidth = WIDTH_INHERITED ;\n DashType dashes [ DASH_MAX ] ;\n int dash_offset = 0 ;\n Entity * ent ;\n int warned = 0 ;\n struct garbage tofrees ;\n SplineSet * clippath = NULL ;\n char * tokbuf ;\n const int tokbufsize = 2 * 65536 + 10 ;\n tokbuf = malloc ( tokbufsize ) ;\n locale_t tmplocale ;\n locale_t oldlocale ;\n switch_to_c_locale ( & tmplocale , & oldlocale ) ;\n memset ( & gb , '\\0' , sizeof ( GrowBuf ) ) ;\n memset ( & dict , '\\0' , sizeof ( dict ) ) ;\n tofrees . cnt = 0 ;\n tofrees . next = NULL ;\n transform [ 0 ] = transform [ 3 ] = 1.0 ;\n transform [ 1 ] = transform [ 2 ] = transform [ 4 ] = transform [ 5 ] = 0 ;\n current . x = current . y = 0 ;\n dashes [ 0 ] = 0 ;\n dashes [ 1 ] = DASH_INHERITED ;\n if ( ec -> fromtype3 ) {\n stack [ 0 ] . type = stack [ 1 ] . type = ps_num ;\n stack [ 0 ] . u . val = stack [ 1 ] . u . val = 0 ;\n sp = 2 ;\n }\n while ( ( tok = nextpstoken ( wrapper , & dval , tokbuf , tokbufsize ) ) != pt_eof ) {\n if ( endedstopped ( wrapper ) ) {\n if ( sp < sizeof ( stack ) / sizeof ( stack [ 0 ] ) ) {\n stack [ sp ] . type = ps_bool ;\n stack [ sp ++ ] . u . tf = false ;\n }\n }\n if ( sp > sizeof ( stack ) / sizeof ( stack [ 0 ] ) * 4 / 5 ) {\n sp = forgetstack ( stack , sizeof ( stack ) / sizeof ( stack [ 0 ] ) / 3 , sp ) ;\n }\n if ( ccnt > 0 ) {\n if ( tok == pt_closecurly ) -- ccnt ;\n else if ( tok == pt_opencurly ) ++ ccnt ;\n if ( ccnt > 0 ) AddTok ( & gb , tokbuf , tok == pt_namelit ) ;\n else {\n if ( sp < sizeof ( stack ) / sizeof ( stack [ 0 ] ) ) {\n stack [ sp ] . type = ps_instr ;\n if ( gb . pt == NULL ) stack [ sp ++ ] . u . str = copy ( \"\" ) ;\n else {\n * gb . pt = '\\0' ;\n gb . pt = gb . base ;\n stack [ sp ++ ] . u . str = copy ( ( char * ) gb . base ) ;\n }\n }\n }\n }\n else if ( tok == pt_unknown && ( kv = lookup ( & dict , tokbuf ) ) != NULL ) {\n if ( kv -> type == ps_instr ) pushio ( wrapper , NULL , copy ( kv -> u . str ) , 0 ) ;\n else if ( sp < sizeof ( stack ) / sizeof ( stack [ 0 ] ) ) {\n stack [ sp ] . type = kv -> type ;\n stack [ sp ++ ] . u = kv -> u ;\n if ( kv -> type == ps_instr || kv -> type == ps_lit || kv -> type == ps_string ) stack [ sp - 1 ] . u . str = copy ( stack [ sp - 1 ] . u . str ) ;\n else if ( kv -> type == ps_array || kv -> type == ps_dict ) {\n copyarray ( & stack [ sp - 1 ] . u . dict , & stack [ sp - 1 ] . u . dict , & tofrees ) ;\n if ( stack [ sp - 1 ] . u . dict . is_executable ) sp = aload ( sp , stack , sizeof ( stack ) / sizeof ( stack [ 0 ] ) , & tofrees ) ;\n }\n }\n }\n else {\n if ( tok == pt_unknown ) {\n if ( strcmp ( tokbuf , \"Cache\" ) == 0 ) tok = pt_setcachedevice ;\n else if ( strcmp ( tokbuf , \"SetWid\" ) == 0 ) {\n tok = pt_setcharwidth ;\n if ( sp < sizeof ( stack ) / sizeof ( stack [ 0 ] ) ) {\n stack [ sp ] . type = ps_num ;\n stack [ sp ++ ] . u . val = 0 ;\n }\n }\n else if ( strcmp ( tokbuf , \"rrcurveto\" ) == 0 ) {\n if ( sp >= 6 ) {\n stack [ sp - 4 ] . u . val += stack [ sp - 6 ] . u . val ;\n stack [ sp - 3 ] . u . val += stack [ sp - 5 ] . u . val ;\n stack [ sp - 2 ] . u . val += stack [ sp - 4 ] . u . val ;\n stack [ sp - 1 ] . u . val += stack [ sp - 3 ] . u . val ;\n tok = pt_rcurveto ;\n }\n }\n else if ( strcmp ( tokbuf , \"FillStroke\" ) == 0 ) {\n if ( sp > 0 ) -- sp ;\n tok = linewidth != WIDTH_INHERITED ? pt_stroke : pt_fill ;\n if ( wrapper -> top != NULL && wrapper -> top -> ps != NULL && linewidth != WIDTH_INHERITED ) linewidth /= 10.0 ;\n }\n else if ( strcmp ( tokbuf , \"SG\" ) == 0 ) {\n if ( linewidth != WIDTH_INHERITED && sp > 1 ) stack [ sp - 2 ] . u . val = stack [ sp - 1 ] . u . val ;\n if ( sp > 0 ) -- sp ;\n if ( sp > 0 ) stack [ sp - 1 ] . u . val = ( stack [ sp - 1 ] . u . val + 99 ) / 198.0 ;\n tok = pt_setgray ;\n }\n else if ( strcmp ( tokbuf , \"ShowInt\" ) == 0 ) {\n if ( ( ! wrapper -> top -> fogns && sp > 0 && stack [ sp - 1 ] . type == ps_num && stack [ sp - 1 ] . u . val >= 0 && stack [ sp - 1 ] . u . val <= 255 ) || ( wrapper -> top -> fogns && sp > 6 && stack [ sp - 7 ] . type == ps_num && stack [ sp - 7 ] . u . val >= 0 && stack [ sp - 7 ] . u . val <= 255 ) ) {\n ref = RefCharCreate ( ) ;\n memcpy ( ref -> transform , transform , sizeof ( ref -> transform ) ) ;\n if ( wrapper -> top -> fogns ) {\n sp -= 6 ;\n t [ 0 ] = stack [ sp + 0 ] . u . val ;\n t [ 1 ] = stack [ sp + 1 ] . u . val ;\n t [ 2 ] = stack [ sp + 2 ] . u . val ;\n t [ 3 ] = stack [ sp + 3 ] . u . val ;\n t [ 4 ] = stack [ sp + 4 ] . u . val ;\n t [ 5 ] = stack [ sp + 5 ] . u . val ;\n MatMultiply ( t , ref -> transform , ref -> transform ) ;\n wrapper -> top -> fogns = false ;\n }\n ref -> orig_pos = stack [ -- sp ] . u . val ;\n ref -> next = ec -> refs ;\n ec -> refs = ref ;\n continue ;\n }\n }\n else if ( strcmp ( tokbuf , \"togNS_\" ) == 0 ) {\n wrapper -> top -> fogns = ! wrapper -> top -> fogns ;\n continue ;\n }\n }\n switch ( tok ) {\n case pt_number : if ( sp < sizeof ( stack ) / sizeof ( stack [ 0 ] ) ) {\n stack [ sp ] . type = ps_num ;\n stack [ sp ++ ] . u . val = dval ;\n }\n break ;\n case pt_string : if ( sp < sizeof ( stack ) / sizeof ( stack [ 0 ] ) ) {\n stack [ sp ] . type = ps_string ;\n stack [ sp ++ ] . u . str = copyn ( tokbuf + 1 , strlen ( tokbuf ) - 2 ) ;\n }\n break ;\n case pt_true : case pt_false : if ( sp < sizeof ( stack ) / sizeof ( stack [ 0 ] ) ) {\n stack [ sp ] . type = ps_bool ;\n stack [ sp ++ ] . u . tf = tok == pt_true ;\n }\n break ;\n case pt_opencurly : ++ ccnt ;\n break ;\n case pt_closecurly : -- ccnt ;\n if ( ccnt < 0 ) {\n goto done ;\n }\n break ;\n case pt_count : if ( sp < sizeof ( stack ) / sizeof ( stack [ 0 ] ) ) {\n stack [ sp ] . type = ps_num ;\n stack [ sp ] . u . val = sp ;\n ++ sp ;\n }\n break ;\n case pt_pop : if ( sp > 0 ) {\n -- sp ;\n if ( stack [ sp ] . type == ps_string || stack [ sp ] . type == ps_instr || stack [ sp ] . type == ps_lit ) free ( stack [ sp ] . u . str ) ;\n else if ( stack [ sp ] . type == ps_array || stack [ sp ] . type == ps_dict ) dictfree ( & stack [ sp ] . u . dict ) ;\n }\n break ;\n case pt_clear : while ( sp > 0 ) {\n -- sp ;\n if ( stack [ sp ] . type == ps_string || stack [ sp ] . type == ps_instr || stack [ sp ] . type == ps_lit ) free ( stack [ sp ] . u . str ) ;\n else if ( stack [ sp ] . type == ps_array || stack [ sp ] . type == ps_dict ) dictfree ( & stack [ sp ] . u . dict ) ;\n }\n break ;\n case pt_dup : if ( sp > 0 && sp < sizeof ( stack ) / sizeof ( stack [ 0 ] ) ) {\n stack [ sp ] = stack [ sp - 1 ] ;\n if ( stack [ sp ] . type == ps_string || stack [ sp ] . type == ps_instr || stack [ sp ] . type == ps_lit ) stack [ sp ] . u . str = copy ( stack [ sp ] . u . str ) ;\n else if ( stack [ sp ] . type == ps_array ) copyarray ( & stack [ sp ] . u . dict , & stack [ sp ] . u . dict , & tofrees ) ;\n ++ sp ;\n }\n break ;\n case pt_copy : if ( sp > 0 ) {\n int n = stack [ -- sp ] . u . val ;\n if ( n + sp < sizeof ( stack ) / sizeof ( stack [ 0 ] ) ) {\n int i ;\n for ( i = 0 ;\n i < n ;\n ++ i ) {\n stack [ sp ] = stack [ sp - n ] ;\n if ( stack [ sp ] . type == ps_string || stack [ sp ] . type == ps_instr || stack [ sp ] . type == ps_lit ) stack [ sp ] . u . str = copy ( stack [ sp ] . u . str ) ;\n else if ( stack [ sp ] . type == ps_array ) copyarray ( & stack [ sp ] . u . dict , & stack [ sp ] . u . dict , & tofrees ) ;\n ++ sp ;\n }\n }\n }\n break ;\n case pt_exch : if ( sp > 1 ) {\n struct psstack temp ;\n temp = stack [ sp - 1 ] ;\n stack [ sp - 1 ] = stack [ sp - 2 ] ;\n stack [ sp - 2 ] = temp ;\n }\n break ;\n case pt_roll : sp = rollstack ( stack , sp ) ;\n break ;\n case pt_index : if ( sp > 0 ) {\n i = stack [ -- sp ] . u . val ;\n if ( i >= 0 && sp > ( unsigned ) i ) {\n stack [ sp ] = stack [ sp - i - 1 ] ;\n if ( stack [ sp ] . type == ps_string || stack [ sp ] . type == ps_instr || stack [ sp ] . type == ps_lit ) stack [ sp ] . u . str = copy ( stack [ sp ] . u . str ) ;\n else if ( stack [ sp ] . type == ps_array ) copyarray ( & stack [ sp ] . u . dict , & stack [ sp ] . u . dict , & tofrees ) ;\n ++ sp ;\n }\n }\n break ;\n case pt_add : if ( sp >= 2 && stack [ sp - 1 ] . type == ps_num && stack [ sp - 2 ] . type == ps_num ) {\n stack [ sp - 2 ] . u . val += stack [ sp - 1 ] . u . val ;\n -- sp ;\n }\n break ;\n case pt_sub : if ( sp >= 2 && stack [ sp - 1 ] . type == ps_num && stack [ sp - 2 ] . type == ps_num ) {\n stack [ sp - 2 ] . u . val -= stack [ sp - 1 ] . u . val ;\n -- sp ;\n }\n break ;\n case pt_mul : if ( sp >= 2 && stack [ sp - 1 ] . type == ps_num && stack [ sp - 2 ] . type == ps_num ) {\n stack [ sp - 2 ] . u . val *= stack [ sp - 1 ] . u . val ;\n -- sp ;\n }\n break ;\n case pt_div : if ( sp >= 2 && stack [ sp - 1 ] . type == ps_num && stack [ sp - 2 ] . type == ps_num ) {\n if ( stack [ sp - 1 ] . u . val == 0 ) LogError ( _ ( \"Divide by zero in postscript code.\\n\" ) ) ;\n else stack [ sp - 2 ] . u . val /= stack [ sp - 1 ] . u . val ;\n -- sp ;\n }\n break ;\n case pt_idiv : if ( sp >= 2 && stack [ sp - 1 ] . type == ps_num && stack [ sp - 2 ] . type == ps_num ) {\n if ( stack [ sp - 1 ] . u . val == 0 ) LogError ( _ ( \"Divide by zero in postscript code.\\n\" ) ) ;\n else stack [ sp - 2 ] . u . val = ( ( int ) stack [ sp - 2 ] . u . val ) / ( ( int ) stack [ sp - 1 ] . u . val ) ;\n -- sp ;\n }\n break ;\n case pt_mod : if ( sp >= 2 && stack [ sp - 1 ] . type == ps_num && stack [ sp - 2 ] . type == ps_num ) {\n if ( stack [ sp - 1 ] . u . val == 0 ) LogError ( _ ( \"Divide by zero in postscript code.\\n\" ) ) ;\n else stack [ sp - 2 ] . u . val = ( ( int ) stack [ sp - 2 ] . u . val ) % ( ( int ) stack [ sp - 1 ] . u . val ) ;\n -- sp ;\n }\n break ;\n case pt_max : if ( sp >= 2 && stack [ sp - 1 ] . type == ps_num && stack [ sp - 2 ] . type == ps_num ) {\n if ( stack [ sp - 2 ] . u . val < stack [ sp - 1 ] . u . val ) stack [ sp - 2 ] . u . val = stack [ sp - 1 ] . u . val ;\n -- sp ;\n }\n break ;\n case pt_min : if ( sp >= 2 && stack [ sp - 1 ] . type == ps_num && stack [ sp - 2 ] . type == ps_num ) {\n if ( stack [ sp - 2 ] . u . val > stack [ sp - 1 ] . u . val ) stack [ sp - 2 ] . u . val = stack [ sp - 1 ] . u . val ;\n -- sp ;\n }\n break ;\n case pt_neg : if ( sp >= 1 ) {\n if ( stack [ sp - 1 ] . type == ps_num ) stack [ sp - 1 ] . u . val = - stack [ sp - 1 ] . u . val ;\n }\n break ;\n case pt_abs : if ( sp >= 1 ) {\n if ( stack [ sp - 1 ] . type == ps_num ) if ( stack [ sp - 1 ] . u . val < 0 ) stack [ sp - 1 ] . u . val = - stack [ sp - 1 ] . u . val ;\n }\n break ;\n case pt_round : if ( sp >= 1 ) {\n if ( stack [ sp - 1 ] . type == ps_num ) stack [ sp - 1 ] . u . val = rint ( stack [ sp - 1 ] . u . val ) ;\n }\n break ;\n case pt_floor : if ( sp >= 1 ) {\n if ( stack [ sp - 1 ] . type == ps_num ) stack [ sp - 1 ] . u . val = floor ( stack [ sp - 1 ] . u . val ) ;\n }\n break ;\n case pt_ceiling : if ( sp >= 1 ) {\n if ( stack [ sp - 1 ] . type == ps_num ) stack [ sp - 1 ] . u . val = ceil ( stack [ sp - 1 ] . u . val ) ;\n }\n break ;\n case pt_truncate : if ( sp >= 1 ) {\n if ( stack [ sp - 1 ] . type == ps_num ) {\n if ( stack [ sp - 1 ] . u . val < 0 ) stack [ sp - 1 ] . u . val = ceil ( stack [ sp - 1 ] . u . val ) ;\n else stack [ sp - 1 ] . u . val = floor ( stack [ sp - 1 ] . u . val ) ;\n }\n }\n break ;\n case pt_ne : case pt_eq : if ( sp >= 2 ) {\n if ( stack [ sp - 2 ] . type != stack [ sp - 1 ] . type ) stack [ sp - 2 ] . u . tf = false ;\n else if ( stack [ sp - 2 ] . type == ps_num ) stack [ sp - 2 ] . u . tf = ( stack [ sp - 2 ] . u . val == stack [ sp - 1 ] . u . val ) ;\n else if ( stack [ sp - 2 ] . type == ps_bool ) stack [ sp - 2 ] . u . tf = ( stack [ sp - 2 ] . u . tf == stack [ sp - 1 ] . u . tf ) ;\n else stack [ sp - 2 ] . u . tf = strcmp ( stack [ sp - 2 ] . u . str , stack [ sp - 1 ] . u . str ) == 0 ;\n stack [ sp - 2 ] . type = ps_bool ;\n if ( tok == pt_ne ) stack [ sp - 2 ] . u . tf = ! stack [ sp - 2 ] . u . tf ;\n -- sp ;\n }\n break ;\n case pt_gt : case pt_le : case pt_lt : case pt_ge : if ( sp >= 2 ) {\n if ( stack [ sp - 2 ] . type != stack [ sp - 1 ] . type ) stack [ sp - 2 ] . u . tf = false ;\n else if ( stack [ sp - 2 ] . type == ps_array ) LogError ( _ ( \"Can't compare arrays\\n\" ) ) ;\n else {\n int cmp ;\n if ( stack [ sp - 2 ] . type == ps_num ) cmp = ( stack [ sp - 2 ] . u . val > stack [ sp - 1 ] . u . val ) ? 1 : ( stack [ sp - 2 ] . u . val == stack [ sp - 1 ] . u . val ) ? 0 : - 1 ;\n else if ( stack [ sp - 2 ] . type == ps_bool ) cmp = ( stack [ sp - 2 ] . u . tf - stack [ sp - 1 ] . u . tf ) ;\n else cmp = strcmp ( stack [ sp - 2 ] . u . str , stack [ sp - 1 ] . u . str ) ;\n if ( tok == pt_gt ) stack [ sp - 2 ] . u . tf = cmp > 0 ;\n else if ( tok == pt_lt ) stack [ sp - 2 ] . u . tf = cmp < 0 ;\n else if ( tok == pt_le ) stack [ sp - 2 ] . u . tf = cmp <= 0 ;\n else stack [ sp - 2 ] . u . tf = cmp >= 0 ;\n }\n stack [ sp - 2 ] . type = ps_bool ;\n -- sp ;\n }\n break ;\n case pt_not : if ( sp >= 1 ) {\n if ( stack [ sp - 1 ] . type == ps_bool ) stack [ sp - 1 ] . u . tf = ! stack [ sp - 1 ] . u . tf ;\n }\n break ;\n case pt_and : if ( sp >= 2 ) {\n if ( stack [ sp - 2 ] . type == ps_num ) stack [ sp - 2 ] . u . val = ( ( int ) stack [ sp - 2 ] . u . val ) & ( int ) stack [ sp - 1 ] . u . val ;\n else if ( stack [ sp - 2 ] . type == ps_bool ) stack [ sp - 2 ] . u . tf &= stack [ sp - 1 ] . u . tf ;\n -- sp ;\n }\n break ;\n case pt_or : if ( sp >= 2 ) {\n if ( stack [ sp - 2 ] . type == ps_num ) stack [ sp - 2 ] . u . val = ( ( int ) stack [ sp - 2 ] . u . val ) | ( int ) stack [ sp - 1 ] . u . val ;\n else if ( stack [ sp - 2 ] . type == ps_bool ) stack [ sp - 2 ] . u . tf |= stack [ sp - 1 ] . u . tf ;\n -- sp ;\n }\n break ;\n case pt_xor : if ( sp >= 2 ) {\n if ( stack [ sp - 2 ] . type == ps_num ) stack [ sp - 2 ] . u . val = ( ( int ) stack [ sp - 2 ] . u . val ) ^ ( int ) stack [ sp - 1 ] . u . val ;\n else if ( stack [ sp - 2 ] . type == ps_bool ) stack [ sp - 2 ] . u . tf ^= stack [ sp - 1 ] . u . tf ;\n -- sp ;\n }\n break ;\n case pt_exp : if ( sp >= 2 && stack [ sp - 1 ] . type == ps_num && stack [ sp - 2 ] . type == ps_num ) {\n stack [ sp - 2 ] . u . val = pow ( stack [ sp - 2 ] . u . val , stack [ sp - 1 ] . u . val ) ;\n -- sp ;\n }\n break ;\n case pt_sqrt : if ( sp >= 1 && stack [ sp - 1 ] . type == ps_num ) {\n stack [ sp - 1 ] . u . val = sqrt ( stack [ sp - 1 ] . u . val ) ;\n }\n break ;\n case pt_ln : if ( sp >= 1 && stack [ sp - 1 ] . type == ps_num ) {\n stack [ sp - 1 ] . u . val = log ( stack [ sp - 1 ] . u . val ) ;\n }\n break ;\n case pt_log : if ( sp >= 1 && stack [ sp - 1 ] . type == ps_num ) {\n stack [ sp - 1 ] . u . val = log10 ( stack [ sp - 1 ] . u . val ) ;\n }\n break ;\n case pt_atan : if ( sp >= 2 && stack [ sp - 1 ] . type == ps_num && stack [ sp - 2 ] . type == ps_num ) {\n stack [ sp - 2 ] . u . val = atan2 ( stack [ sp - 2 ] . u . val , stack [ sp - 1 ] . u . val ) * 180 / 3.1415926535897932 ;\n -- sp ;\n }\n break ;\n case pt_sin : if ( sp >= 1 && stack [ sp - 1 ] . type == ps_num ) {\n stack [ sp - 1 ] . u . val = sin ( stack [ sp - 1 ] . u . val * 3.1415926535897932 / 180 ) ;\n }\n break ;\n case pt_cos : if ( sp >= 1 && stack [ sp - 1 ] . type == ps_num ) {\n stack [ sp - 1 ] . u . val = cos ( stack [ sp - 1 ] . u . val * 3.1415926535897932 / 180 ) ;\n }\n break ;\n case pt_if : if ( sp >= 2 ) {\n if ( ( ( stack [ sp - 2 ] . type == ps_bool && stack [ sp - 2 ] . u . tf ) || ( stack [ sp - 2 ] . type == ps_num && strstr ( stack [ sp - 1 ] . u . str , \"setcachedevice\" ) != NULL ) ) && stack [ sp - 1 ] . type == ps_instr ) pushio ( wrapper , NULL , stack [ sp - 1 ] . u . str , 0 ) ;\n if ( stack [ sp - 1 ] . type == ps_string || stack [ sp - 1 ] . type == ps_instr || stack [ sp - 1 ] . type == ps_lit ) free ( stack [ sp - 1 ] . u . str ) ;\n sp -= 2 ;\n }\n else if ( sp == 1 && stack [ sp - 1 ] . type == ps_instr ) {\n if ( strstr ( stack [ sp - 1 ] . u . str , \"setcachedevice\" ) != NULL || strstr ( stack [ sp - 1 ] . u . str , \"setcharwidth\" ) != NULL ) pushio ( wrapper , NULL , stack [ sp - 1 ] . u . str , 0 ) ;\n free ( stack [ sp - 1 ] . u . str ) ;\n sp = 0 ;\n }\n break ;\n case pt_ifelse : if ( sp >= 3 ) {\n if ( stack [ sp - 3 ] . type == ps_bool && stack [ sp - 3 ] . u . tf ) {\n if ( stack [ sp - 2 ] . type == ps_instr ) pushio ( wrapper , NULL , stack [ sp - 2 ] . u . str , 0 ) ;\n }\n else {\n if ( stack [ sp - 1 ] . type == ps_instr ) pushio ( wrapper , NULL , stack [ sp - 1 ] . u . str , 0 ) ;\n }\n if ( stack [ sp - 1 ] . type == ps_string || stack [ sp - 1 ] . type == ps_instr || stack [ sp - 1 ] . type == ps_lit ) free ( stack [ sp - 1 ] . u . str ) ;\n if ( stack [ sp - 2 ] . type == ps_string || stack [ sp - 2 ] . type == ps_instr || stack [ sp - 2 ] . type == ps_lit ) free ( stack [ sp - 2 ] . u . str ) ;\n sp -= 3 ;\n }\n break ;\n case pt_for : if ( sp >= 4 ) {\n real init , incr , limit ;\n char * func ;\n int cnt ;\n if ( stack [ sp - 4 ] . type == ps_num && stack [ sp - 3 ] . type == ps_num && stack [ sp - 2 ] . type == ps_num && stack [ sp - 1 ] . type == ps_instr ) {\n init = stack [ sp - 4 ] . u . val ;\n incr = stack [ sp - 3 ] . u . val ;\n limit = stack [ sp - 2 ] . u . val ;\n func = stack [ sp - 1 ] . u . str ;\n sp -= 4 ;\n cnt = 0 ;\n if ( incr > 0 ) {\n while ( init <= limit ) {\n ++ cnt ;\n init += incr ;\n }\n }\n else if ( incr < 0 ) {\n while ( init >= limit ) {\n ++ cnt ;\n init += incr ;\n }\n }\n pushio ( wrapper , NULL , func , cnt ) ;\n free ( func ) ;\n }\n }\n break ;\n case pt_loop : if ( sp >= 1 ) {\n char * func ;\n int cnt ;\n if ( stack [ sp - 1 ] . type == ps_instr ) {\n cnt = 0x7fffffff ;\n func = stack [ sp - 1 ] . u . str ;\n -- sp ;\n pushio ( wrapper , NULL , func , cnt ) ;\n free ( func ) ;\n }\n }\n break ;\n case pt_repeat : if ( sp >= 2 ) {\n char * func ;\n int cnt ;\n if ( stack [ sp - 2 ] . type == ps_num && stack [ sp - 1 ] . type == ps_instr ) {\n cnt = stack [ sp - 2 ] . u . val ;\n func = stack [ sp - 1 ] . u . str ;\n sp -= 2 ;\n pushio ( wrapper , NULL , func , cnt ) ;\n free ( func ) ;\n }\n }\n break ;\n case pt_exit : ioescapeloop ( wrapper ) ;\n break ;\n case pt_stopped : if ( sp >= 1 ) {\n char * func ;\n if ( stack [ sp - 1 ] . type == ps_instr ) {\n func = stack [ sp - 1 ] . u . str ;\n -- sp ;\n pushio ( wrapper , NULL , func , - 1 ) ;\n free ( func ) ;\n }\n }\n break ;\n case pt_stop : sp = ioescapestopped ( wrapper , stack , sp , sizeof ( stack ) / sizeof ( stack [ 0 ] ) ) ;\n break ;\n case pt_load : if ( sp >= 1 && stack [ sp - 1 ] . type == ps_lit ) {\n kv = lookup ( & dict , stack [ sp - 1 ] . u . str ) ;\n if ( kv != NULL ) {\n free ( stack [ sp - 1 ] . u . str ) ;\n stack [ sp - 1 ] . type = kv -> type ;\n stack [ sp - 1 ] . u = kv -> u ;\n if ( kv -> type == ps_instr || kv -> type == ps_lit ) stack [ sp - 1 ] . u . str = copy ( stack [ sp - 1 ] . u . str ) ;\n }\n else stack [ sp - 1 ] . type = ps_instr ;\n }\n break ;\n case pt_def : sp = AddEntry ( & dict , stack , sp ) ;\n break ;\n case pt_bind : break ;\n case pt_setcachedevice : if ( sp >= 6 ) {\n ec -> width = stack [ sp - 6 ] . u . val ;\n ec -> vwidth = stack [ sp - 5 ] . u . val ;\n sp -= 6 ;\n }\n break ;\n case pt_setcharwidth : if ( sp >= 2 ) ec -> width = stack [ sp -= 2 ] . u . val ;\n break ;\n case pt_translate : if ( sp >= 1 && stack [ sp - 1 ] . type == ps_array ) sp = DoMatOp ( tok , sp , stack ) ;\n else if ( sp >= 2 ) {\n transform [ 4 ] += stack [ sp - 2 ] . u . val * transform [ 0 ] + stack [ sp - 1 ] . u . val * transform [ 2 ] ;\n transform [ 5 ] += stack [ sp - 2 ] . u . val * transform [ 1 ] + stack [ sp - 1 ] . u . val * transform [ 3 ] ;\n sp -= 2 ;\n }\n break ;\n case pt_scale : if ( sp >= 1 && stack [ sp - 1 ] . type == ps_array ) sp = DoMatOp ( tok , sp , stack ) ;\n else if ( sp >= 2 ) {\n transform [ 0 ] *= stack [ sp - 2 ] . u . val ;\n transform [ 1 ] *= stack [ sp - 2 ] . u . val ;\n transform [ 2 ] *= stack [ sp - 1 ] . u . val ;\n transform [ 3 ] *= stack [ sp - 1 ] . u . val ;\n sp -= 2 ;\n }\n break ;\n case pt_rotate : if ( sp >= 1 && stack [ sp - 1 ] . type == ps_array ) sp = DoMatOp ( tok , sp , stack ) ;\n else if ( sp >= 1 ) {\n -- sp ;\n t [ 0 ] = t [ 3 ] = cos ( stack [ sp ] . u . val ) ;\n t [ 1 ] = sin ( stack [ sp ] . u . val ) ;\n t [ 2 ] = - t [ 1 ] ;\n t [ 4 ] = t [ 5 ] = 0 ;\n MatMultiply ( t , transform , transform ) ;\n }\n break ;\n case pt_concat : if ( sp >= 1 ) {\n if ( stack [ sp - 1 ] . type == ps_array ) {\n if ( stack [ sp - 1 ] . u . dict . cnt == 6 && stack [ sp - 1 ] . u . dict . entries [ 0 ] . type == ps_num ) {\n -- sp ;\n t [ 5 ] = stack [ sp ] . u . dict . entries [ 5 ] . u . val ;\n t [ 4 ] = stack [ sp ] . u . dict . entries [ 4 ] . u . val ;\n t [ 3 ] = stack [ sp ] . u . dict . entries [ 3 ] . u . val ;\n t [ 2 ] = stack [ sp ] . u . dict . entries [ 2 ] . u . val ;\n t [ 1 ] = stack [ sp ] . u . dict . entries [ 1 ] . u . val ;\n t [ 0 ] = stack [ sp ] . u . dict . entries [ 0 ] . u . val ;\n dictfree ( & stack [ sp ] . u . dict ) ;\n MatMultiply ( t , transform , transform ) ;\n }\n }\n }\n break ;\n case pt_transform : if ( sp >= 1 && stack [ sp - 1 ] . type == ps_array ) {\n if ( sp >= 3 ) {\n DoMatTransform ( tok , sp , stack ) ;\n -- sp ;\n }\n }\n else if ( sp >= 2 ) {\n double x = stack [ sp - 2 ] . u . val , y = stack [ sp - 1 ] . u . val ;\n stack [ sp - 2 ] . u . val = transform [ 0 ] * x + transform [ 1 ] * y + transform [ 4 ] ;\n stack [ sp - 1 ] . u . val = transform [ 2 ] * x + transform [ 3 ] * y + transform [ 5 ] ;\n }\n break ;\n case pt_itransform : if ( sp >= 1 && stack [ sp - 1 ] . type == ps_array ) {\n if ( sp >= 3 ) {\n DoMatTransform ( tok , sp , stack ) ;\n -- sp ;\n }\n }\n else if ( sp >= 2 ) {\n double x = stack [ sp - 2 ] . u . val , y = stack [ sp - 1 ] . u . val ;\n MatInverse ( t , transform ) ;\n stack [ sp - 2 ] . u . val = t [ 0 ] * x + t [ 1 ] * y + t [ 4 ] ;\n stack [ sp - 1 ] . u . val = t [ 2 ] * x + t [ 3 ] * y + t [ 5 ] ;\n }\n break ;\n case pt_dtransform : if ( sp >= 1 && stack [ sp - 1 ] . type == ps_array ) {\n if ( sp >= 3 ) {\n DoMatTransform ( tok , sp , stack ) ;\n -- sp ;\n }\n }\n else if ( sp >= 2 ) {\n double x = stack [ sp - 2 ] . u . val , y = stack [ sp - 1 ] . u . val ;\n stack [ sp - 2 ] . u . val = transform [ 0 ] * x + transform [ 1 ] * y ;\n stack [ sp - 1 ] . u . val = transform [ 2 ] * x + transform [ 3 ] * y ;\n }\n break ;\n case pt_idtransform : if ( sp >= 1 && stack [ sp - 1 ] . type == ps_array ) {\n if ( sp >= 3 ) {\n DoMatTransform ( tok , sp , stack ) ;\n -- sp ;\n }\n }\n else if ( sp >= 2 ) {\n double x = stack [ sp - 2 ] . u . val , y = stack [ sp - 1 ] . u . val ;\n MatInverse ( t , transform ) ;\n stack [ sp - 2 ] . u . val = t [ 0 ] * x + t [ 1 ] * y ;\n stack [ sp - 1 ] . u . val = t [ 2 ] * x + t [ 3 ] * y ;\n }\n break ;\n case pt_namelit : if ( strcmp ( tokbuf , \"CharProcs\" ) == 0 && ec != NULL ) {\n HandleType3Reference ( wrapper , ec , transform , tokbuf , tokbufsize ) ;\n }\n else if ( sp < sizeof ( stack ) / sizeof ( stack [ 0 ] ) ) {\n stack [ sp ] . type = ps_lit ;\n stack [ sp ++ ] . u . str = copy ( tokbuf ) ;\n }\n break ;\n case pt_exec : if ( sp > 0 && stack [ sp - 1 ] . type == ps_lit ) {\n ref = RefCharCreate ( ) ;\n ref -> sc = ( SplineChar * ) stack [ -- sp ] . u . str ;\n memcpy ( ref -> transform , transform , sizeof ( transform ) ) ;\n if ( ec -> refs == NULL ) ec -> refs = ref ;\n else lastref -> next = ref ;\n lastref = ref ;\n }\n break ;\n case pt_newpath : SplinePointListsFree ( head ) ;\n head = NULL ;\n cur = NULL ;\n break ;\n case pt_lineto : case pt_rlineto : case pt_moveto : case pt_rmoveto : if ( sp >= 2 || tok == pt_newpath ) {\n if ( tok == pt_rlineto || tok == pt_rmoveto ) {\n current . x += stack [ sp - 2 ] . u . val ;\n current . y += stack [ sp - 1 ] . u . val ;\n sp -= 2 ;\n }\n else if ( tok == pt_lineto || tok == pt_moveto ) {\n current . x = stack [ sp - 2 ] . u . val ;\n current . y = stack [ sp - 1 ] . u . val ;\n sp -= 2 ;\n }\n pt = chunkalloc ( sizeof ( SplinePoint ) ) ;\n Transform ( & pt -> me , & current , transform ) ;\n pt -> noprevcp = true ;\n pt -> nonextcp = true ;\n if ( tok == pt_moveto || tok == pt_rmoveto ) {\n SplinePointList * spl = chunkalloc ( sizeof ( SplinePointList ) ) ;\n spl -> first = spl -> last = pt ;\n if ( cur != NULL ) cur -> next = spl ;\n else head = spl ;\n cur = spl ;\n }\n else {\n if ( cur != NULL && cur -> first != NULL && ( cur -> first != cur -> last || cur -> first -> next == NULL ) ) {\n CheckMake ( cur -> last , pt ) ;\n SplineMake3 ( cur -> last , pt ) ;\n cur -> last = pt ;\n }\n }\n }\n else sp = 0 ;\n break ;\n case pt_curveto : case pt_rcurveto : if ( sp >= 6 ) {\n if ( tok == pt_rcurveto ) {\n stack [ sp - 1 ] . u . val += current . y ;\n stack [ sp - 3 ] . u . val += current . y ;\n stack [ sp - 5 ] . u . val += current . y ;\n stack [ sp - 2 ] . u . val += current . x ;\n stack [ sp - 4 ] . u . val += current . x ;\n stack [ sp - 6 ] . u . val += current . x ;\n }\n current . x = stack [ sp - 2 ] . u . val ;\n current . y = stack [ sp - 1 ] . u . val ;\n if ( cur != NULL && cur -> first != NULL && ( cur -> first != cur -> last || cur -> first -> next == NULL ) ) {\n temp . x = stack [ sp - 6 ] . u . val ;\n temp . y = stack [ sp - 5 ] . u . val ;\n Transform ( & cur -> last -> nextcp , & temp , transform ) ;\n cur -> last -> nonextcp = false ;\n pt = chunkalloc ( sizeof ( SplinePoint ) ) ;\n temp . x = stack [ sp - 4 ] . u . val ;\n temp . y = stack [ sp - 3 ] . u . val ;\n Transform ( & pt -> prevcp , & temp , transform ) ;\n Transform ( & pt -> me , & current , transform ) ;\n pt -> nonextcp = true ;\n CheckMake ( cur -> last , pt ) ;\n SplineMake3 ( cur -> last , pt ) ;\n cur -> last = pt ;\n }\n sp -= 6 ;\n }\n else sp = 0 ;\n break ;\n case pt_arc : case pt_arcn : if ( sp >= 5 ) {\n real cx , cy , r , a1 , a2 ;\n cx = stack [ sp - 5 ] . u . val ;\n cy = stack [ sp - 4 ] . u . val ;\n r = stack [ sp - 3 ] . u . val ;\n a1 = stack [ sp - 2 ] . u . val ;\n a2 = stack [ sp - 1 ] . u . val ;\n sp -= 5 ;\n temp . x = cx + r * cos ( a1 / 180 * 3.1415926535897932 ) ;\n temp . y = cy + r * sin ( a1 / 180 * 3.1415926535897932 ) ;\n if ( temp . x != current . x || temp . y != current . y || ! ( cur != NULL && cur -> first != NULL && ( cur -> first != cur -> last || cur -> first -> next == NULL ) ) ) {\n pt = chunkalloc ( sizeof ( SplinePoint ) ) ;\n Transform ( & pt -> me , & temp , transform ) ;\n pt -> noprevcp = true ;\n pt -> nonextcp = true ;\n if ( cur != NULL && cur -> first != NULL && ( cur -> first != cur -> last || cur -> first -> next == NULL ) ) {\n CheckMake ( cur -> last , pt ) ;\n SplineMake3 ( cur -> last , pt ) ;\n cur -> last = pt ;\n }\n else {\n SplinePointList * spl = chunkalloc ( sizeof ( SplinePointList ) ) ;\n spl -> first = spl -> last = pt ;\n if ( cur != NULL ) cur -> next = spl ;\n else head = spl ;\n cur = spl ;\n }\n }\n circlearcsto ( a1 , a2 , cx , cy , r , cur , transform , tok == pt_arcn ) ;\n current . x = cx + r * cos ( a2 / 180 * 3.1415926535897932 ) ;\n current . y = cy + r * sin ( a2 / 180 * 3.1415926535897932 ) ;\n }\n else sp = 0 ;\n break ;\n case pt_arct : case pt_arcto : if ( sp >= 5 ) {\n real x1 , y1 , x2 , y2 , r ;\n real xt1 , xt2 , yt1 , yt2 ;\n x1 = stack [ sp - 5 ] . u . val ;\n y1 = stack [ sp - 4 ] . u . val ;\n x2 = stack [ sp - 3 ] . u . val ;\n y2 = stack [ sp - 2 ] . u . val ;\n r = stack [ sp - 1 ] . u . val ;\n sp -= 5 ;\n xt1 = xt2 = x1 ;\n yt1 = yt2 = y1 ;\n if ( cur == NULL || cur -> first == NULL || ( cur -> first == cur -> last && cur -> first -> next != NULL ) ) ;\n else if ( current . x == x1 && current . y == y1 ) ;\n else if ( ( x1 == x2 && y1 == y2 ) || ( current . x - x1 ) * ( y2 - y1 ) == ( x2 - x1 ) * ( current . y - y1 ) ) {\n current . x = x1 ;\n current . y = y1 ;\n pt = chunkalloc ( sizeof ( SplinePoint ) ) ;\n Transform ( & pt -> me , & current , transform ) ;\n pt -> noprevcp = true ;\n pt -> nonextcp = true ;\n CheckMake ( cur -> last , pt ) ;\n SplineMake3 ( cur -> last , pt ) ;\n cur -> last = pt ;\n }\n else {\n real l1 = sqrt ( ( current . x - x1 ) * ( current . x - x1 ) + ( current . y - y1 ) * ( current . y - y1 ) ) ;\n real l2 = sqrt ( ( x2 - x1 ) * ( x2 - x1 ) + ( y2 - y1 ) * ( y2 - y1 ) ) ;\n real dx = ( ( current . x - x1 ) / l1 + ( x2 - x1 ) / l2 ) ;\n real dy = ( ( current . y - y1 ) / l1 + ( y2 - y1 ) / l2 ) ;\n real l3 = sqrt ( dx * dx + dy * dy ) ;\n real cx , cy , t , tmid ;\n real a1 , amid , a2 ;\n int clockwise = true ;\n dx /= l3 ;\n dy /= l3 ;\n a1 = atan2 ( current . y - y1 , current . x - x1 ) ;\n a2 = atan2 ( y2 - y1 , x2 - x1 ) ;\n amid = atan2 ( dy , dx ) - a1 ;\n tmid = r / sin ( amid ) ;\n t = r / tan ( amid ) ;\n if ( t < 0 ) {\n clockwise = false ;\n t = - t ;\n tmid = - tmid ;\n }\n cx = x1 + tmid * dx ;\n cy = y1 + tmid * dy ;\n xt1 = x1 + t * ( current . x - x1 ) / l1 ;\n yt1 = y1 + t * ( current . y - y1 ) / l1 ;\n xt2 = x1 + t * ( x2 - x1 ) / l2 ;\n yt2 = y1 + t * ( y2 - y1 ) / l2 ;\n if ( xt1 != current . x || yt1 != current . y ) {\n DBasePoint temp ;\n temp . x = xt1 ;\n temp . y = yt1 ;\n pt = chunkalloc ( sizeof ( SplinePoint ) ) ;\n Transform ( & pt -> me , & temp , transform ) ;\n pt -> noprevcp = true ;\n pt -> nonextcp = true ;\n CheckMake ( cur -> last , pt ) ;\n SplineMake3 ( cur -> last , pt ) ;\n cur -> last = pt ;\n }\n a1 = 3 * 3.1415926535897932 / 2 + a1 ;\n a2 = 3.1415926535897932 / 2 + a2 ;\n if ( ! clockwise ) {\n a1 += 3.1415926535897932 ;\n a2 += 3.1415926535897932 ;\n }\n circlearcsto ( a1 * 180 / 3.1415926535897932 , a2 * 180 / 3.1415926535897932 , cx , cy , r , cur , transform , clockwise ) ;\n }\n if ( tok == pt_arcto ) {\n stack [ sp ] . type = stack [ sp + 1 ] . type = stack [ sp + 2 ] . type = stack [ sp + 3 ] . type = ps_num ;\n stack [ sp ++ ] . u . val = xt1 ;\n stack [ sp ++ ] . u . val = yt1 ;\n stack [ sp ++ ] . u . val = xt2 ;\n stack [ sp ++ ] . u . val = yt2 ;\n }\n current . x = xt2 ;\n current . y = yt2 ;\n }\n break ;\n case pt_closepath : if ( cur != NULL && cur -> first != NULL && cur -> first != cur -> last ) {\n if ( RealNear ( cur -> first -> me . x , cur -> last -> me . x ) && RealNear ( cur -> first -> me . y , cur -> last -> me . y ) ) {\n SplinePoint * oldlast = cur -> last ;\n cur -> first -> prevcp = oldlast -> prevcp ;\n cur -> first -> prevcp . x += ( cur -> first -> me . x - oldlast -> me . x ) ;\n cur -> first -> prevcp . y += ( cur -> first -> me . y - oldlast -> me . y ) ;\n cur -> first -> noprevcp = oldlast -> noprevcp ;\n oldlast -> prev -> from -> next = NULL ;\n cur -> last = oldlast -> prev -> from ;\n SplineFree ( oldlast -> prev ) ;\n SplinePointFree ( oldlast ) ;\n }\n CheckMake ( cur -> last , cur -> first ) ;\n SplineMake3 ( cur -> last , cur -> first ) ;\n cur -> last = cur -> first ;\n }\n break ;\n case pt_setlinecap : if ( sp >= 1 ) linecap = stack [ -- sp ] . u . val ;\n break ;\n case pt_setlinejoin : if ( sp >= 1 ) linejoin = stack [ -- sp ] . u . val ;\n break ;\n case pt_setlinewidth : if ( sp >= 1 ) linewidth = stack [ -- sp ] . u . val ;\n break ;\n case pt_setdash : if ( sp >= 2 && stack [ sp - 1 ] . type == ps_num && stack [ sp - 2 ] . type == ps_array ) {\n sp -= 2 ;\n dash_offset = stack [ sp + 1 ] . u . val ;\n for ( i = 0 ;\n i < DASH_MAX && i < stack [ sp ] . u . dict . cnt ;\n ++ i ) dashes [ i ] = stack [ sp ] . u . dict . entries [ i ] . u . val ;\n dictfree ( & stack [ sp ] . u . dict ) ;\n }\n break ;\n case pt_currentlinecap : case pt_currentlinejoin : if ( sp < sizeof ( stack ) / sizeof ( stack [ 0 ] ) ) {\n stack [ sp ] . type = ps_num ;\n stack [ sp ++ ] . u . val = tok == pt_currentlinecap ? linecap : linejoin ;\n }\n break ;\n case pt_currentlinewidth : if ( sp < sizeof ( stack ) / sizeof ( stack [ 0 ] ) ) {\n stack [ sp ] . type = ps_num ;\n stack [ sp ++ ] . u . val = linewidth ;\n }\n break ;\n case pt_currentdash : if ( sp + 1 < sizeof ( stack ) / sizeof ( stack [ 0 ] ) ) {\n struct pskeydict dict ;\n for ( i = 0 ;\n i < DASH_MAX && dashes [ i ] != 0 ;\n ++ i ) ;\n dict . cnt = dict . max = i ;\n dict . entries = calloc ( i , sizeof ( struct pskeyval ) ) ;\n dict . is_executable = false ;\n for ( j = 0 ;\n j < i ;\n ++ j ) {\n dict . entries [ j ] . type = ps_num ;\n dict . entries [ j ] . u . val = dashes [ j ] ;\n }\n stack [ sp ] . type = ps_array ;\n stack [ sp ++ ] . u . dict = dict ;\n stack [ sp ] . type = ps_num ;\n stack [ sp ++ ] . u . val = dash_offset ;\n }\n break ;\n case pt_currentgray : if ( sp < sizeof ( stack ) / sizeof ( stack [ 0 ] ) ) {\n stack [ sp ] . type = ps_num ;\n stack [ sp ++ ] . u . val = ( 3 * ( ( fore >> 16 ) & 0xff ) + 6 * ( ( fore >> 8 ) & 0xff ) + ( fore & 0xff ) ) / 2550. ;\n }\n break ;\n case pt_setgray : if ( sp >= 1 ) {\n fore = stack [ -- sp ] . u . val * 255 ;\n fore *= 0x010101 ;\n }\n break ;\n case pt_setrgbcolor : if ( sp >= 3 ) {\n fore = ( ( ( int ) ( stack [ sp - 3 ] . u . val * 255 ) ) << 16 ) + ( ( ( int ) ( stack [ sp - 2 ] . u . val * 255 ) ) << 8 ) + ( int ) ( stack [ sp - 1 ] . u . val * 255 ) ;\n sp -= 3 ;\n }\n break ;\n case pt_currenthsbcolor : case pt_currentrgbcolor : if ( sp + 2 < sizeof ( stack ) / sizeof ( stack [ 0 ] ) ) {\n stack [ sp ] . type = stack [ sp + 1 ] . type = stack [ sp + 2 ] . type = ps_num ;\n if ( tok == pt_currentrgbcolor ) {\n stack [ sp ++ ] . u . val = ( ( fore >> 16 ) & 0xff ) / 255. ;\n stack [ sp ++ ] . u . val = ( ( fore >> 8 ) & 0xff ) / 255. ;\n stack [ sp ++ ] . u . val = ( fore & 0xff ) / 255. ;\n }\n else {\n int r = fore >> 16 , g = ( fore >> 8 ) & 0xff , bl = fore & 0xff ;\n int mx , mn ;\n real h , s , b ;\n mx = mn = r ;\n if ( mx > g ) mn = g ;\n else mx = g ;\n if ( mx < bl ) mx = bl ;\n if ( mn > bl ) mn = bl ;\n b = mx / 255. ;\n s = h = 0 ;\n if ( mx > 0 ) s = ( ( real ) ( mx - mn ) ) / mx ;\n if ( s != 0 ) {\n real rdiff = ( ( real ) ( mx - r ) ) / ( mx - mn ) ;\n real gdiff = ( ( real ) ( mx - g ) ) / ( mx - mn ) ;\n real bdiff = ( ( real ) ( mx - bl ) ) / ( mx - mn ) ;\n if ( rdiff == 0 ) h = bdiff - gdiff ;\n else if ( gdiff == 0 ) h = 2 + rdiff - bdiff ;\n else h = 4 + gdiff - rdiff ;\n h /= 6 ;\n if ( h < 0 ) h += 1 ;\n }\n stack [ sp ++ ] . u . val = h ;\n stack [ sp ++ ] . u . val = s ;\n stack [ sp ++ ] . u . val = b ;\n }\n }\n break ;\n case pt_sethsbcolor : if ( sp >= 3 ) {\n real h = stack [ sp - 3 ] . u . val , s = stack [ sp - 2 ] . u . val , b = stack [ sp - 1 ] . u . val ;\n int r , g , bl ;\n if ( s == 0 ) fore = ( ( int ) ( b * 255 ) ) * 0x010101 ;\n else {\n real sextant = ( h - floor ( h ) ) * 6 ;\n real mod = sextant - floor ( sextant ) ;\n real p = b * ( 1 - s ) , q = b * ( 1 - s * mod ) , t = b * ( 1 - s * ( 1 - mod ) ) ;\n switch ( ( int ) sextant ) {\n case 0 : r = b * 255. ;\n g = t * 255. ;\n bl = p * 255. ;\n break ;\n case 1 : r = q * 255. ;\n g = b * 255. ;\n bl = p * 255. ;\n break ;\n case 2 : r = p * 255. ;\n g = b * 255. ;\n bl = t * 255. ;\n break ;\n case 3 : r = p * 255. ;\n g = q * 255. ;\n bl = b * 255. ;\n break ;\n case 4 : r = t * 255. ;\n g = p * 255. ;\n bl = b * 255. ;\n break ;\n case 5 : r = b * 255. ;\n g = p * 255. ;\n bl = q * 255. ;\n break ;\n default : break ;\n }\n fore = COLOR_CREATE ( r , g , bl ) ;\n }\n sp -= 3 ;\n }\n break ;\n case pt_currentcmykcolor : if ( sp + 3 < sizeof ( stack ) / sizeof ( stack [ 0 ] ) ) {\n real c , m , y , k ;\n stack [ sp ] . type = stack [ sp + 1 ] . type = stack [ sp + 2 ] . type = stack [ sp + 3 ] . type = ps_num ;\n y = 1. - ( fore & 0xff ) / 255. ;\n m = 1. - ( ( fore >> 8 ) & 0xff ) / 255. ;\n c = 1. - ( ( fore >> 16 ) & 0xff ) / 255. ;\n k = y ;\n if ( k > m ) k = m ;\n if ( k > c ) k = c ;\n if ( k != 1 ) {\n y = ( y - k ) / ( 1 - k ) ;\n m = ( m - k ) / ( 1 - k ) ;\n c = ( c - k ) / ( 1 - k ) ;\n }\n else y = m = c = 0 ;\n stack [ sp ++ ] . u . val = c ;\n stack [ sp ++ ] . u . val = m ;\n stack [ sp ++ ] . u . val = y ;\n stack [ sp ++ ] . u . val = k ;\n }\n break ;\n case pt_setcmykcolor : if ( sp >= 4 ) {\n real c = stack [ sp - 4 ] . u . val , m = stack [ sp - 3 ] . u . val , y = stack [ sp - 2 ] . u . val , k = stack [ sp - 1 ] . u . val ;\n sp -= 4 ;\n if ( k == 1 ) fore = 0x000000 ;\n else {\n if ( ( y = ( 1 - k ) * y + k ) < 0 ) y = 0 ;\n else if ( y > 1 ) y = 1 ;\n if ( ( m = ( 1 - k ) * m + k ) < 0 ) m = 0 ;\n else if ( m > 1 ) m = 1 ;\n if ( ( c = ( 1 - k ) * c + k ) < 0 ) c = 0 ;\n else if ( c > 1 ) c = 1 ;\n fore = ( ( int ) ( ( 1 - c ) * 255. ) << 16 ) | ( ( int ) ( ( 1 - m ) * 255. ) << 8 ) | ( ( int ) ( ( 1 - y ) * 255. ) ) ;\n }\n }\n break ;\n case pt_currentpoint : if ( sp + 1 < sizeof ( stack ) / sizeof ( stack [ 0 ] ) ) {\n stack [ sp ] . type = ps_num ;\n stack [ sp ++ ] . u . val = current . x ;\n stack [ sp ] . type = ps_num ;\n stack [ sp ++ ] . u . val = current . y ;\n }\n break ;\n case pt_fill : case pt_stroke : if ( head == NULL && ec -> splines != NULL ) {\n ent = ec -> splines ;\n if ( tok == pt_stroke ) {\n ent -> u . splines . cap = linecap ;\n ent -> u . splines . join = linejoin ;\n ent -> u . splines . stroke_width = linewidth ;\n memcpy ( ent -> u . splines . transform , transform , sizeof ( transform ) ) ;\n }\n }\n else {\n ent = EntityCreate ( head , linecap , linejoin , linewidth , transform , clippath ) ;\n ent -> next = ec -> splines ;\n ec -> splines = ent ;\n }\n if ( tok == pt_fill ) ent -> u . splines . fill . col = fore ;\n else ent -> u . splines . stroke . col = fore ;\n head = NULL ;\n cur = NULL ;\n break ;\n case pt_clip : SplinePointListsFree ( clippath ) ;\n clippath = SplinePointListCopy ( head ) ;\n if ( clippath != NULL && clippath -> first != clippath -> last ) {\n SplineMake3 ( clippath -> last , clippath -> first ) ;\n clippath -> last = clippath -> first ;\n }\n break ;\n case pt_imagemask : i = PSAddImagemask ( ec , stack , sp , transform , fore ) ;\n while ( sp > i ) {\n -- sp ;\n if ( stack [ sp ] . type == ps_string || stack [ sp ] . type == ps_instr || stack [ sp ] . type == ps_lit ) free ( stack [ sp ] . u . str ) ;\n else if ( stack [ sp ] . type == ps_array || stack [ sp ] . type == ps_dict ) dictfree ( & stack [ sp ] . u . dict ) ;\n }\n break ;\n case pt_save : case pt_currentmatrix : if ( sp < sizeof ( stack ) / sizeof ( stack [ 0 ] ) ) {\n stack [ sp ] . type = ps_num ;\n stack [ sp ++ ] . u . val = 0 ;\n }\n ;\n case pt_gsave : if ( gsp < 30 ) {\n memcpy ( gsaves [ gsp ] . transform , transform , sizeof ( transform ) ) ;\n gsaves [ gsp ] . current = current ;\n gsaves [ gsp ] . linewidth = linewidth ;\n gsaves [ gsp ] . linecap = linecap ;\n gsaves [ gsp ] . linejoin = linejoin ;\n gsaves [ gsp ] . fore = fore ;\n gsaves [ gsp ] . clippath = SplinePointListCopy ( clippath ) ;\n ++ gsp ;\n }\n break ;\n case pt_restore : case pt_setmatrix : if ( sp >= 1 ) -- sp ;\n ;\n case pt_grestore : if ( gsp > 0 ) {\n -- gsp ;\n memcpy ( transform , gsaves [ gsp ] . transform , sizeof ( transform ) ) ;\n current = gsaves [ gsp ] . current ;\n linewidth = gsaves [ gsp ] . linewidth ;\n linecap = gsaves [ gsp ] . linecap ;\n linejoin = gsaves [ gsp ] . linejoin ;\n fore = gsaves [ gsp ] . fore ;\n SplinePointListsFree ( clippath ) ;\n clippath = gsaves [ gsp ] . clippath ;\n }\n break ;\n case pt_null : if ( sp < sizeof ( stack ) / sizeof ( stack [ 0 ] ) ) {\n stack [ sp ] . u . val = 0 ;\n stack [ sp ++ ] . type = ps_num ;\n }\n break ;\n case pt_currentoverprint : if ( sp < sizeof ( stack ) / sizeof ( stack [ 0 ] ) ) {\n stack [ sp ] . u . val = 0 ;\n stack [ sp ++ ] . type = ps_bool ;\n }\n break ;\n case pt_setoverprint : if ( sp >= 1 ) -- sp ;\n break ;\n case pt_currentflat : if ( sp < sizeof ( stack ) / sizeof ( stack [ 0 ] ) ) {\n stack [ sp ] . u . val = 1.0 ;\n stack [ sp ++ ] . type = ps_num ;\n }\n break ;\n case pt_setflat : if ( sp >= 1 ) -- sp ;\n break ;\n case pt_currentmiterlimit : if ( sp < sizeof ( stack ) / sizeof ( stack [ 0 ] ) ) {\n stack [ sp ] . u . val = 10.0 ;\n stack [ sp ++ ] . type = ps_num ;\n }\n break ;\n case pt_setmiterlimit : if ( sp >= 1 ) -- sp ;\n break ;\n case pt_currentpacking : if ( sp < sizeof ( stack ) / sizeof ( stack [ 0 ] ) ) {\n stack [ sp ] . u . val = 0 ;\n stack [ sp ++ ] . type = ps_bool ;\n }\n break ;\n case pt_setpacking : if ( sp >= 1 ) -- sp ;\n break ;\n case pt_currentstrokeadjust : if ( sp < sizeof ( stack ) / sizeof ( stack [ 0 ] ) ) {\n stack [ sp ] . u . val = 0 ;\n stack [ sp ++ ] . type = ps_bool ;\n }\n break ;\n case pt_setstrokeadjust : if ( sp >= 1 ) -- sp ;\n break ;\n case pt_currentsmoothness : if ( sp < sizeof ( stack ) / sizeof ( stack [ 0 ] ) ) {\n stack [ sp ] . u . val = 1.0 ;\n stack [ sp ++ ] . type = ps_num ;\n }\n break ;\n case pt_setsmoothness : if ( sp >= 1 ) -- sp ;\n break ;\n case pt_currentobjectformat : if ( sp < sizeof ( stack ) / sizeof ( stack [ 0 ] ) ) {\n stack [ sp ] . u . val = 0.0 ;\n stack [ sp ++ ] . type = ps_num ;\n }\n break ;\n case pt_setobjectformat : if ( sp >= 1 ) -- sp ;\n break ;\n case pt_currentglobal : case pt_currentshared : if ( sp < sizeof ( stack ) / sizeof ( stack [ 0 ] ) ) {\n stack [ sp ] . u . val = 0 ;\n stack [ sp ++ ] . type = ps_bool ;\n }\n break ;\n case pt_setglobal : if ( sp >= 1 ) -- sp ;\n break ;\n case pt_openarray : case pt_mark : if ( sp < sizeof ( stack ) / sizeof ( stack [ 0 ] ) ) {\n stack [ sp ++ ] . type = ps_mark ;\n }\n break ;\n case pt_counttomark : for ( i = 0 ;\n ( unsigned ) i < sp ;\n ++ i ) if ( stack [ sp - 1 - i ] . type == ps_mark ) break ;\n if ( ( unsigned ) i == sp ) LogError ( _ ( \"No mark in counttomark\\n\" ) ) ;\n else if ( sp < sizeof ( stack ) / sizeof ( stack [ 0 ] ) ) {\n stack [ sp ] . type = ps_num ;\n stack [ sp ++ ] . u . val = i ;\n }\n break ;\n case pt_cleartomark : for ( i = 0 ;\n ( unsigned ) i < sp ;\n ++ i ) if ( stack [ sp - 1 - i ] . type == ps_mark ) break ;\n if ( ( unsigned ) i == sp ) LogError ( _ ( \"No mark in cleartomark\\n\" ) ) ;\n else {\n while ( sp >= i ) {\n -- sp ;\n if ( stack [ sp ] . type == ps_string || stack [ sp ] . type == ps_instr || stack [ sp ] . type == ps_lit ) free ( stack [ sp ] . u . str ) ;\n else if ( stack [ sp ] . type == ps_array || stack [ sp ] . type == ps_dict ) dictfree ( & stack [ sp ] . u . dict ) ;\n }\n }\n break ;\n case pt_closearray : for ( i = 0 ;\n ( unsigned ) i < sp ;\n ++ i ) if ( stack [ sp - 1 - i ] . type == ps_mark ) break ;\n if ( ( unsigned ) i == sp ) LogError ( _ ( \"No mark in ] (close array)\\n\" ) ) ;\n else {\n struct pskeydict dict ;\n dict . cnt = dict . max = i ;\n dict . entries = calloc ( i , sizeof ( struct pskeyval ) ) ;\n dict . is_executable = false ;\n for ( j = 0 ;\n j < i ;\n ++ j ) {\n dict . entries [ j ] . type = stack [ sp - i + j ] . type ;\n dict . entries [ j ] . u = stack [ sp - i + j ] . u ;\n }\n collectgarbage ( & tofrees , & dict ) ;\n sp = sp - i ;\n stack [ sp - 1 ] . type = ps_array ;\n stack [ sp - 1 ] . u . dict = dict ;\n }\n break ;\n case pt_array : if ( sp >= 1 && stack [ sp - 1 ] . type == ps_num ) {\n struct pskeydict dict ;\n dict . cnt = dict . max = stack [ sp - 1 ] . u . val ;\n dict . entries = calloc ( dict . cnt , sizeof ( struct pskeyval ) ) ;\n dict . is_executable = false ;\n stack [ sp - 1 ] . type = ps_array ;\n stack [ sp - 1 ] . u . dict = dict ;\n }\n break ;\n case pt_aload : sp = aload ( sp , stack , sizeof ( stack ) / sizeof ( stack [ 0 ] ) , & tofrees ) ;\n break ;\n case pt_astore : if ( sp >= 1 && stack [ sp - 1 ] . type == ps_array ) {\n struct pskeydict dict ;\n -- sp ;\n dict = stack [ sp ] . u . dict ;\n if ( sp >= dict . cnt ) {\n for ( i = dict . cnt - 1 ;\n i >= 0 ;\n -- i ) {\n -- sp ;\n dict . entries [ i ] . type = stack [ sp ] . type ;\n dict . entries [ i ] . u = stack [ sp ] . u ;\n }\n }\n stack [ sp ] . type = ps_array ;\n stack [ sp ] . u . dict = dict ;\n ++ sp ;\n }\n break ;\n case pt_output : case pt_outputd : case pt_print : if ( sp >= 1 ) {\n -- sp ;\n switch ( stack [ sp ] . type ) {\n case ps_num : printf ( \"%g\" , ( double ) stack [ sp ] . u . val ) ;\n break ;\n case ps_bool : printf ( \"%s\" , stack [ sp ] . u . tf ? \"true\" : \"false\" ) ;\n break ;\n case ps_string : case ps_instr : case ps_lit : if ( tok == pt_outputd ) printf ( stack [ sp ] . type == ps_lit ? \"/\" : stack [ sp ] . type == ps_string ? \"(\" : \"{\n\" ) ;\n printf ( \"%s\" , stack [ sp ] . u . str ) ;\n if ( tok == pt_outputd ) printf ( stack [ sp ] . type == ps_lit ? \"\" : stack [ sp ] . type == ps_string ? \")\" : \"}\n\" ) ;\n free ( stack [ sp ] . u . str ) ;\n break ;\n case ps_void : printf ( \"-- void --\" ) ;\n break ;\n case ps_array : if ( tok == pt_outputd ) {\n printarray ( & stack [ sp ] . u . dict ) ;\n dictfree ( & stack [ sp ] . u . dict ) ;\n break ;\n }\n dictfree ( & stack [ sp ] . u . dict ) ;\n default : printf ( \"-- nostringval --\" ) ;\n break ;\n }\n if ( tok == pt_output || tok == pt_outputd ) printf ( \"\\n\" ) ;\n }\n else LogError ( _ ( \"Nothing on stack to print\\n\" ) ) ;\n break ;\n case pt_cvi : case pt_cvr : if ( sp >= 1 && stack [ sp - 1 ] . type == ps_string ) {\n double val = strtod ( stack [ sp - 1 ] . u . str , NULL ) ;\n free ( stack [ sp - 1 ] . u . str ) ;\n stack [ sp - 1 ] . u . val = val ;\n stack [ sp - 1 ] . type = ps_num ;\n }\n break ;\n case pt_cvlit : if ( sp >= 1 ) {\n if ( stack [ sp - 1 ] . type == ps_array ) stack [ sp - 1 ] . u . dict . is_executable = false ;\n }\n case pt_cvn : if ( sp >= 1 ) {\n if ( stack [ sp - 1 ] . type == ps_string ) stack [ sp - 1 ] . type = ps_lit ;\n }\n case pt_cvx : if ( sp >= 1 ) {\n if ( stack [ sp - 1 ] . type == ps_array ) stack [ sp - 1 ] . u . dict . is_executable = true ;\n }\n break ;\n case pt_cvrs : if ( sp >= 3 && stack [ sp - 1 ] . type == ps_string && stack [ sp - 2 ] . type == ps_num && stack [ sp - 3 ] . type == ps_num ) {\n if ( stack [ sp - 2 ] . u . val == 8 ) sprintf ( stack [ sp - 1 ] . u . str , \"%o\" , ( int ) stack [ sp - 3 ] . u . val ) ;\n else if ( stack [ sp - 2 ] . u . val == 16 ) sprintf ( stack [ sp - 1 ] . u . str , \"%X\" , ( int ) stack [ sp - 3 ] . u . val ) ;\n else sprintf ( stack [ sp - 1 ] . u . str , \"%g\" , ( double ) stack [ sp - 3 ] . u . val ) ;\n stack [ sp - 3 ] = stack [ sp - 1 ] ;\n sp -= 2 ;\n }\n break ;\n case pt_cvs : if ( sp >= 2 && stack [ sp - 1 ] . type == ps_string ) {\n switch ( stack [ sp ] . type ) {\n case ps_num : sprintf ( stack [ sp - 1 ] . u . str , \"%g\" , ( double ) stack [ sp - 2 ] . u . val ) ;\n break ;\n case ps_bool : sprintf ( stack [ sp - 1 ] . u . str , \"%s\" , stack [ sp - 2 ] . u . tf ? \"true\" : \"false\" ) ;\n break ;\n case ps_string : case ps_instr : case ps_lit : sprintf ( stack [ sp - 1 ] . u . str , \"%s\" , stack [ sp - 2 ] . u . str ) ;\n free ( stack [ sp ] . u . str ) ;\n break ;\n case ps_void : printf ( \"-- void --\" ) ;\n break ;\n case ps_array : dictfree ( & stack [ sp ] . u . dict ) ;\n default : sprintf ( stack [ sp - 1 ] . u . str , \"-- nostringval --\" ) ;\n break ;\n }\n stack [ sp - 2 ] = stack [ sp - 1 ] ;\n -- sp ;\n }\n break ;\n case pt_stringop : if ( sp >= 1 && stack [ sp - 1 ] . type == ps_num ) {\n stack [ sp - 1 ] . type = ps_string ;\n stack [ sp - 1 ] . u . str = calloc ( stack [ sp - 1 ] . u . val + 1 , 1 ) ;\n }\n break ;\n case pt_unknown : if ( ! warned ) {\n LogError ( _ ( \"Warning: Unable to parse token %s, some features may be lost\\n\" ) , tokbuf ) ;\n warned = true ;\n }\n break ;\n default : break ;\n }\n }\n }\n done : if ( rs != NULL ) {\n int i , cnt , j ;\n for ( i = sp - 1 ;\n i >= 0 ;\n -- i ) if ( stack [ i ] . type != ps_num ) break ;\n cnt = sp - 1 - i ;\n if ( cnt > rs -> max ) cnt = rs -> max ;\n rs -> cnt = cnt ;\n for ( j = i + 1 ;\n ( unsigned ) j < sp ;\n ++ j ) rs -> stack [ j - i - 1 ] = stack [ j ] . u . val ;\n }\n freestuff ( stack , sp , & dict , & gb , & tofrees ) ;\n if ( head != NULL ) {\n ent = EntityCreate ( head , linecap , linejoin , linewidth , transform , clippath ) ;\n ent -> next = ec -> splines ;\n ec -> splines = ent ;\n }\n while ( gsp > 0 ) {\n -- gsp ;\n SplinePointListsFree ( gsaves [ gsp ] . clippath ) ;\n }\n SplinePointListsFree ( clippath ) ;\n ECCategorizePoints ( ec ) ;\n if ( ec -> width == UNDEFINED_WIDTH ) ec -> width = wrapper -> advance_width ;\n switch_to_old_locale ( & tmplocale , & oldlocale ) ;\n free ( tokbuf ) ;\n }"}
{"idx": 9966, "target": 0, "func": "static void exsltMathHighestFunction ( xmlXPathParserContextPtr ctxt , int nargs ) {\n xmlNodeSetPtr ns , ret ;\n void * user = NULL ;\n if ( nargs != 1 ) {\n xmlXPathSetArityError ( ctxt ) ;\n return ;\n }\n if ( ( ctxt -> value != NULL ) && ctxt -> value -> boolval != 0 ) {\n user = ctxt -> value -> user ;\n ctxt -> value -> boolval = 0 ;\n ctxt -> value -> user = NULL ;\n }\n ns = xmlXPathPopNodeSet ( ctxt ) ;\n if ( xmlXPathCheckError ( ctxt ) ) return ;\n ret = exsltMathHighest ( ns ) ;\n xmlXPathFreeNodeSet ( ns ) ;\n if ( user != NULL ) xmlFreeNodeList ( ( xmlNodePtr ) user ) ;\n xmlXPathReturnNodeSet ( ctxt , ret ) ;\n }"}
{"idx": 9967, "target": 0, "func": "static void * Type_MPEmatrix_Read ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number * nItems , cmsUInt32Number SizeOfTag ) {\n cmsStage * mpe ;\n cmsUInt16Number InputChans , OutputChans ;\n cmsUInt32Number nElems , i ;\n cmsFloat64Number * Matrix ;\n cmsFloat64Number * Offsets ;\n if ( ! _cmsReadUInt16Number ( io , & InputChans ) ) return NULL ;\n if ( ! _cmsReadUInt16Number ( io , & OutputChans ) ) return NULL ;\n nElems = InputChans * OutputChans ;\n Matrix = ( cmsFloat64Number * ) _cmsCalloc ( self -> ContextID , nElems , sizeof ( cmsFloat64Number ) ) ;\n if ( Matrix == NULL ) return NULL ;\n Offsets = ( cmsFloat64Number * ) _cmsCalloc ( self -> ContextID , OutputChans , sizeof ( cmsFloat64Number ) ) ;\n if ( Offsets == NULL ) {\n _cmsFree ( self -> ContextID , Matrix ) ;\n return NULL ;\n }\n for ( i = 0 ;\n i < nElems ;\n i ++ ) {\n cmsFloat32Number v ;\n if ( ! _cmsReadFloat32Number ( io , & v ) ) return NULL ;\n Matrix [ i ] = v ;\n }\n for ( i = 0 ;\n i < OutputChans ;\n i ++ ) {\n cmsFloat32Number v ;\n if ( ! _cmsReadFloat32Number ( io , & v ) ) return NULL ;\n Offsets [ i ] = v ;\n }\n mpe = cmsStageAllocMatrix ( self -> ContextID , OutputChans , InputChans , Matrix , Offsets ) ;\n _cmsFree ( self -> ContextID , Matrix ) ;\n _cmsFree ( self -> ContextID , Offsets ) ;\n * nItems = 1 ;\n return mpe ;\n cmsUNUSED_PARAMETER ( SizeOfTag ) ;\n }"}
{"idx": 9968, "target": 0, "func": "static void rv30_loop_filter ( RV34DecContext * r , int row ) {\n MpegEncContext * s = & r -> s ;\n int mb_pos , mb_x ;\n int i , j , k ;\n uint8_t * Y , * C ;\n int loc_lim , cur_lim , left_lim = 0 , top_lim = 0 ;\n mb_pos = row * s -> mb_stride ;\n for ( mb_x = 0 ;\n mb_x < s -> mb_width ;\n mb_x ++ , mb_pos ++ ) {\n int mbtype = s -> current_picture_ptr -> mb_type [ mb_pos ] ;\n if ( IS_INTRA ( mbtype ) || IS_SEPARATE_DC ( mbtype ) ) r -> deblock_coefs [ mb_pos ] = 0xFFFF ;\n if ( IS_INTRA ( mbtype ) ) r -> cbp_chroma [ mb_pos ] = 0xFF ;\n }\n mb_pos = row * s -> mb_stride ;\n for ( mb_x = 0 ;\n mb_x < s -> mb_width ;\n mb_x ++ , mb_pos ++ ) {\n cur_lim = rv30_loop_filt_lim [ s -> current_picture_ptr -> qscale_table [ mb_pos ] ] ;\n if ( mb_x ) left_lim = rv30_loop_filt_lim [ s -> current_picture_ptr -> qscale_table [ mb_pos - 1 ] ] ;\n for ( j = 0 ;\n j < 16 ;\n j += 4 ) {\n Y = s -> current_picture_ptr -> f . data [ 0 ] + mb_x * 16 + ( row * 16 + j ) * s -> linesize + 4 * ! mb_x ;\n for ( i = ! mb_x ;\n i < 4 ;\n i ++ , Y += 4 ) {\n int ij = i + j ;\n loc_lim = 0 ;\n if ( r -> deblock_coefs [ mb_pos ] & ( 1 << ij ) ) loc_lim = cur_lim ;\n else if ( ! i && r -> deblock_coefs [ mb_pos - 1 ] & ( 1 << ( ij + 3 ) ) ) loc_lim = left_lim ;\n else if ( i && r -> deblock_coefs [ mb_pos ] & ( 1 << ( ij - 1 ) ) ) loc_lim = cur_lim ;\n if ( loc_lim ) rv30_weak_loop_filter ( Y , 1 , s -> linesize , loc_lim ) ;\n }\n }\n for ( k = 0 ;\n k < 2 ;\n k ++ ) {\n int cur_cbp , left_cbp = 0 ;\n cur_cbp = ( r -> cbp_chroma [ mb_pos ] >> ( k * 4 ) ) & 0xF ;\n if ( mb_x ) left_cbp = ( r -> cbp_chroma [ mb_pos - 1 ] >> ( k * 4 ) ) & 0xF ;\n for ( j = 0 ;\n j < 8 ;\n j += 4 ) {\n C = s -> current_picture_ptr -> f . data [ k + 1 ] + mb_x * 8 + ( row * 8 + j ) * s -> uvlinesize + 4 * ! mb_x ;\n for ( i = ! mb_x ;\n i < 2 ;\n i ++ , C += 4 ) {\n int ij = i + ( j >> 1 ) ;\n loc_lim = 0 ;\n if ( cur_cbp & ( 1 << ij ) ) loc_lim = cur_lim ;\n else if ( ! i && left_cbp & ( 1 << ( ij + 1 ) ) ) loc_lim = left_lim ;\n else if ( i && cur_cbp & ( 1 << ( ij - 1 ) ) ) loc_lim = cur_lim ;\n if ( loc_lim ) rv30_weak_loop_filter ( C , 1 , s -> uvlinesize , loc_lim ) ;\n }\n }\n }\n }\n mb_pos = row * s -> mb_stride ;\n for ( mb_x = 0 ;\n mb_x < s -> mb_width ;\n mb_x ++ , mb_pos ++ ) {\n cur_lim = rv30_loop_filt_lim [ s -> current_picture_ptr -> qscale_table [ mb_pos ] ] ;\n if ( row ) top_lim = rv30_loop_filt_lim [ s -> current_picture_ptr -> qscale_table [ mb_pos - s -> mb_stride ] ] ;\n for ( j = 4 * ! row ;\n j < 16 ;\n j += 4 ) {\n Y = s -> current_picture_ptr -> f . data [ 0 ] + mb_x * 16 + ( row * 16 + j ) * s -> linesize ;\n for ( i = 0 ;\n i < 4 ;\n i ++ , Y += 4 ) {\n int ij = i + j ;\n loc_lim = 0 ;\n if ( r -> deblock_coefs [ mb_pos ] & ( 1 << ij ) ) loc_lim = cur_lim ;\n else if ( ! j && r -> deblock_coefs [ mb_pos - s -> mb_stride ] & ( 1 << ( ij + 12 ) ) ) loc_lim = top_lim ;\n else if ( j && r -> deblock_coefs [ mb_pos ] & ( 1 << ( ij - 4 ) ) ) loc_lim = cur_lim ;\n if ( loc_lim ) rv30_weak_loop_filter ( Y , s -> linesize , 1 , loc_lim ) ;\n }\n }\n for ( k = 0 ;\n k < 2 ;\n k ++ ) {\n int cur_cbp , top_cbp = 0 ;\n cur_cbp = ( r -> cbp_chroma [ mb_pos ] >> ( k * 4 ) ) & 0xF ;\n if ( row ) top_cbp = ( r -> cbp_chroma [ mb_pos - s -> mb_stride ] >> ( k * 4 ) ) & 0xF ;\n for ( j = 4 * ! row ;\n j < 8 ;\n j += 4 ) {\n C = s -> current_picture_ptr -> f . data [ k + 1 ] + mb_x * 8 + ( row * 8 + j ) * s -> uvlinesize ;\n for ( i = 0 ;\n i < 2 ;\n i ++ , C += 4 ) {\n int ij = i + ( j >> 1 ) ;\n loc_lim = 0 ;\n if ( r -> cbp_chroma [ mb_pos ] & ( 1 << ij ) ) loc_lim = cur_lim ;\n else if ( ! j && top_cbp & ( 1 << ( ij + 2 ) ) ) loc_lim = top_lim ;\n else if ( j && cur_cbp & ( 1 << ( ij - 2 ) ) ) loc_lim = cur_lim ;\n if ( loc_lim ) rv30_weak_loop_filter ( C , s -> uvlinesize , 1 , loc_lim ) ;\n }\n }\n }\n }\n }"}
{"idx": 9969, "target": 0, "func": "static int qcow2_open ( BlockDriverState * bs , QDict * options , int flags , Error * * errp ) {\n BDRVQcowState * s = bs -> opaque ;\n unsigned int len , i ;\n int ret = 0 ;\n QCowHeader header ;\n QemuOpts * opts ;\n Error * local_err = NULL ;\n uint64_t ext_end ;\n uint64_t l1_vm_state_index ;\n const char * opt_overlap_check ;\n int overlap_check_template = 0 ;\n ret = bdrv_pread ( bs -> file , 0 , & header , sizeof ( header ) ) ;\n if ( ret < 0 ) {\n error_setg_errno ( errp , - ret , \"Could not read qcow2 header\" ) ;\n goto fail ;\n }\n be32_to_cpus ( & header . magic ) ;\n be32_to_cpus ( & header . version ) ;\n be64_to_cpus ( & header . backing_file_offset ) ;\n be32_to_cpus ( & header . backing_file_size ) ;\n be64_to_cpus ( & header . size ) ;\n be32_to_cpus ( & header . cluster_bits ) ;\n be32_to_cpus ( & header . crypt_method ) ;\n be64_to_cpus ( & header . l1_table_offset ) ;\n be32_to_cpus ( & header . l1_size ) ;\n be64_to_cpus ( & header . refcount_table_offset ) ;\n be32_to_cpus ( & header . refcount_table_clusters ) ;\n be64_to_cpus ( & header . snapshots_offset ) ;\n be32_to_cpus ( & header . nb_snapshots ) ;\n if ( header . magic != QCOW_MAGIC ) {\n error_setg ( errp , \"Image is not in qcow2 format\" ) ;\n ret = - EINVAL ;\n goto fail ;\n }\n if ( header . version < 2 || header . version > 3 ) {\n report_unsupported ( bs , errp , \"QCOW version %d\" , header . version ) ;\n ret = - ENOTSUP ;\n goto fail ;\n }\n s -> qcow_version = header . version ;\n if ( header . cluster_bits < MIN_CLUSTER_BITS || header . cluster_bits > MAX_CLUSTER_BITS ) {\n error_setg ( errp , \"Unsupported cluster size: 2^%i\" , header . cluster_bits ) ;\n ret = - EINVAL ;\n goto fail ;\n }\n s -> cluster_bits = header . cluster_bits ;\n s -> cluster_size = 1 << s -> cluster_bits ;\n s -> cluster_sectors = 1 << ( s -> cluster_bits - 9 ) ;\n if ( header . version == 2 ) {\n header . incompatible_features = 0 ;\n header . compatible_features = 0 ;\n header . autoclear_features = 0 ;\n header . refcount_order = 4 ;\n header . header_length = 72 ;\n }\n else {\n be64_to_cpus ( & header . incompatible_features ) ;\n be64_to_cpus ( & header . compatible_features ) ;\n be64_to_cpus ( & header . autoclear_features ) ;\n be32_to_cpus ( & header . refcount_order ) ;\n be32_to_cpus ( & header . header_length ) ;\n if ( header . header_length < 104 ) {\n error_setg ( errp , \"qcow2 header too short\" ) ;\n ret = - EINVAL ;\n goto fail ;\n }\n }\n if ( header . header_length > s -> cluster_size ) {\n error_setg ( errp , \"qcow2 header exceeds cluster size\" ) ;\n ret = - EINVAL ;\n goto fail ;\n }\n if ( header . header_length > sizeof ( header ) ) {\n s -> unknown_header_fields_size = header . header_length - sizeof ( header ) ;\n s -> unknown_header_fields = g_malloc ( s -> unknown_header_fields_size ) ;\n ret = bdrv_pread ( bs -> file , sizeof ( header ) , s -> unknown_header_fields , s -> unknown_header_fields_size ) ;\n if ( ret < 0 ) {\n error_setg_errno ( errp , - ret , \"Could not read unknown qcow2 header \" \"fields\" ) ;\n goto fail ;\n }\n }\n if ( header . backing_file_offset > s -> cluster_size ) {\n error_setg ( errp , \"Invalid backing file offset\" ) ;\n ret = - EINVAL ;\n goto fail ;\n }\n if ( header . backing_file_offset ) {\n ext_end = header . backing_file_offset ;\n }\n else {\n ext_end = 1 << header . cluster_bits ;\n }\n s -> incompatible_features = header . incompatible_features ;\n s -> compatible_features = header . compatible_features ;\n s -> autoclear_features = header . autoclear_features ;\n if ( s -> incompatible_features & ~ QCOW2_INCOMPAT_MASK ) {\n void * feature_table = NULL ;\n qcow2_read_extensions ( bs , header . header_length , ext_end , & feature_table , NULL ) ;\n report_unsupported_feature ( bs , errp , feature_table , s -> incompatible_features & ~ QCOW2_INCOMPAT_MASK ) ;\n ret = - ENOTSUP ;\n g_free ( feature_table ) ;\n goto fail ;\n }\n if ( s -> incompatible_features & QCOW2_INCOMPAT_CORRUPT ) {\n if ( ( flags & BDRV_O_RDWR ) && ! ( flags & BDRV_O_CHECK ) ) {\n error_setg ( errp , \"qcow2: Image is corrupt;\n cannot be opened \" \"read/write\" ) ;\n ret = - EACCES ;\n goto fail ;\n }\n }\n if ( header . refcount_order != 4 ) {\n report_unsupported ( bs , errp , \"%d bit reference counts\" , 1 << header . refcount_order ) ;\n ret = - ENOTSUP ;\n goto fail ;\n }\n s -> refcount_order = header . refcount_order ;\n if ( header . crypt_method > QCOW_CRYPT_AES ) {\n error_setg ( errp , \"Unsupported encryption method: %i\" , header . crypt_method ) ;\n ret = - EINVAL ;\n goto fail ;\n }\n s -> crypt_method_header = header . crypt_method ;\n if ( s -> crypt_method_header ) {\n bs -> encrypted = 1 ;\n }\n s -> l2_bits = s -> cluster_bits - 3 ;\n s -> l2_size = 1 << s -> l2_bits ;\n bs -> total_sectors = header . size / 512 ;\n s -> csize_shift = ( 62 - ( s -> cluster_bits - 8 ) ) ;\n s -> csize_mask = ( 1 << ( s -> cluster_bits - 8 ) ) - 1 ;\n s -> cluster_offset_mask = ( 1LL << s -> csize_shift ) - 1 ;\n s -> refcount_table_offset = header . refcount_table_offset ;\n s -> refcount_table_size = header . refcount_table_clusters << ( s -> cluster_bits - 3 ) ;\n if ( header . refcount_table_clusters > qcow2_max_refcount_clusters ( s ) ) {\n error_setg ( errp , \"Reference count table too large\" ) ;\n ret = - EINVAL ;\n goto fail ;\n }\n ret = validate_table_offset ( bs , s -> refcount_table_offset , s -> refcount_table_size , sizeof ( uint64_t ) ) ;\n if ( ret < 0 ) {\n error_setg ( errp , \"Invalid reference count table offset\" ) ;\n goto fail ;\n }\n if ( header . nb_snapshots > QCOW_MAX_SNAPSHOTS ) {\n error_setg ( errp , \"Too many snapshots\" ) ;\n ret = - EINVAL ;\n goto fail ;\n }\n ret = validate_table_offset ( bs , header . snapshots_offset , header . nb_snapshots , sizeof ( QCowSnapshotHeader ) ) ;\n if ( ret < 0 ) {\n error_setg ( errp , \"Invalid snapshot table offset\" ) ;\n goto fail ;\n }\n if ( header . l1_size > 0x2000000 ) {\n error_setg ( errp , \"Active L1 table too large\" ) ;\n ret = - EFBIG ;\n goto fail ;\n }\n s -> l1_size = header . l1_size ;\n l1_vm_state_index = size_to_l1 ( s , header . size ) ;\n if ( l1_vm_state_index > INT_MAX ) {\n error_setg ( errp , \"Image is too big\" ) ;\n ret = - EFBIG ;\n goto fail ;\n }\n s -> l1_vm_state_index = l1_vm_state_index ;\n if ( s -> l1_size < s -> l1_vm_state_index ) {\n error_setg ( errp , \"L1 table is too small\" ) ;\n ret = - EINVAL ;\n goto fail ;\n }\n ret = validate_table_offset ( bs , header . l1_table_offset , header . l1_size , sizeof ( uint64_t ) ) ;\n if ( ret < 0 ) {\n error_setg ( errp , \"Invalid L1 table offset\" ) ;\n goto fail ;\n }\n s -> l1_table_offset = header . l1_table_offset ;\n if ( s -> l1_size > 0 ) {\n s -> l1_table = g_malloc0 ( align_offset ( s -> l1_size * sizeof ( uint64_t ) , 512 ) ) ;\n ret = bdrv_pread ( bs -> file , s -> l1_table_offset , s -> l1_table , s -> l1_size * sizeof ( uint64_t ) ) ;\n if ( ret < 0 ) {\n error_setg_errno ( errp , - ret , \"Could not read L1 table\" ) ;\n goto fail ;\n }\n for ( i = 0 ;\n i < s -> l1_size ;\n i ++ ) {\n be64_to_cpus ( & s -> l1_table [ i ] ) ;\n }\n }\n s -> l2_table_cache = qcow2_cache_create ( bs , L2_CACHE_SIZE ) ;\n s -> refcount_block_cache = qcow2_cache_create ( bs , REFCOUNT_CACHE_SIZE ) ;\n s -> cluster_cache = g_malloc ( s -> cluster_size ) ;\n s -> cluster_data = qemu_blockalign ( bs , QCOW_MAX_CRYPT_CLUSTERS * s -> cluster_size + 512 ) ;\n s -> cluster_cache_offset = - 1 ;\n s -> flags = flags ;\n ret = qcow2_refcount_init ( bs ) ;\n if ( ret != 0 ) {\n error_setg_errno ( errp , - ret , \"Could not initialize refcount handling\" ) ;\n goto fail ;\n }\n QLIST_INIT ( & s -> cluster_allocs ) ;\n QTAILQ_INIT ( & s -> discards ) ;\n if ( qcow2_read_extensions ( bs , header . header_length , ext_end , NULL , & local_err ) ) {\n error_propagate ( errp , local_err ) ;\n ret = - EINVAL ;\n goto fail ;\n }\n if ( header . backing_file_offset != 0 ) {\n len = header . backing_file_size ;\n if ( len > MIN ( 1023 , s -> cluster_size - header . backing_file_offset ) ) {\n error_setg ( errp , \"Backing file name too long\" ) ;\n ret = - EINVAL ;\n goto fail ;\n }\n ret = bdrv_pread ( bs -> file , header . backing_file_offset , bs -> backing_file , len ) ;\n if ( ret < 0 ) {\n error_setg_errno ( errp , - ret , \"Could not read backing file name\" ) ;\n goto fail ;\n }\n bs -> backing_file [ len ] = '\\0' ;\n }\n s -> snapshots_offset = header . snapshots_offset ;\n s -> nb_snapshots = header . nb_snapshots ;\n ret = qcow2_read_snapshots ( bs ) ;\n if ( ret < 0 ) {\n error_setg_errno ( errp , - ret , \"Could not read snapshots\" ) ;\n goto fail ;\n }\n if ( ! bs -> read_only && ! ( flags & BDRV_O_INCOMING ) && s -> autoclear_features ) {\n s -> autoclear_features = 0 ;\n ret = qcow2_update_header ( bs ) ;\n if ( ret < 0 ) {\n error_setg_errno ( errp , - ret , \"Could not update qcow2 header\" ) ;\n goto fail ;\n }\n }\n qemu_co_mutex_init ( & s -> lock ) ;\n if ( ! ( flags & ( BDRV_O_CHECK | BDRV_O_INCOMING ) ) && ! bs -> read_only && ( s -> incompatible_features & QCOW2_INCOMPAT_DIRTY ) ) {\n BdrvCheckResult result = {\n 0 }\n ;\n ret = qcow2_check ( bs , & result , BDRV_FIX_ERRORS ) ;\n if ( ret < 0 ) {\n error_setg_errno ( errp , - ret , \"Could not repair dirty image\" ) ;\n goto fail ;\n }\n }\n opts = qemu_opts_create ( & qcow2_runtime_opts , NULL , 0 , & error_abort ) ;\n qemu_opts_absorb_qdict ( opts , options , & local_err ) ;\n if ( local_err ) {\n error_propagate ( errp , local_err ) ;\n ret = - EINVAL ;\n goto fail ;\n }\n s -> use_lazy_refcounts = qemu_opt_get_bool ( opts , QCOW2_OPT_LAZY_REFCOUNTS , ( s -> compatible_features & QCOW2_COMPAT_LAZY_REFCOUNTS ) ) ;\n s -> discard_passthrough [ QCOW2_DISCARD_NEVER ] = false ;\n s -> discard_passthrough [ QCOW2_DISCARD_ALWAYS ] = true ;\n s -> discard_passthrough [ QCOW2_DISCARD_REQUEST ] = qemu_opt_get_bool ( opts , QCOW2_OPT_DISCARD_REQUEST , flags & BDRV_O_UNMAP ) ;\n s -> discard_passthrough [ QCOW2_DISCARD_SNAPSHOT ] = qemu_opt_get_bool ( opts , QCOW2_OPT_DISCARD_SNAPSHOT , true ) ;\n s -> discard_passthrough [ QCOW2_DISCARD_OTHER ] = qemu_opt_get_bool ( opts , QCOW2_OPT_DISCARD_OTHER , false ) ;\n opt_overlap_check = qemu_opt_get ( opts , \"overlap-check\" ) ? : \"cached\" ;\n if ( ! strcmp ( opt_overlap_check , \"none\" ) ) {\n overlap_check_template = 0 ;\n }\n else if ( ! strcmp ( opt_overlap_check , \"constant\" ) ) {\n overlap_check_template = QCOW2_OL_CONSTANT ;\n }\n else if ( ! strcmp ( opt_overlap_check , \"cached\" ) ) {\n overlap_check_template = QCOW2_OL_CACHED ;\n }\n else if ( ! strcmp ( opt_overlap_check , \"all\" ) ) {\n overlap_check_template = QCOW2_OL_ALL ;\n }\n else {\n error_setg ( errp , \"Unsupported value '%s' for qcow2 option \" \"'overlap-check'. Allowed are either of the following: \" \"none, constant, cached, all\" , opt_overlap_check ) ;\n qemu_opts_del ( opts ) ;\n ret = - EINVAL ;\n goto fail ;\n }\n s -> overlap_check = 0 ;\n for ( i = 0 ;\n i < QCOW2_OL_MAX_BITNR ;\n i ++ ) {\n s -> overlap_check |= qemu_opt_get_bool ( opts , overlap_bool_option_names [ i ] , overlap_check_template & ( 1 << i ) ) << i ;\n }\n qemu_opts_del ( opts ) ;\n if ( s -> use_lazy_refcounts && s -> qcow_version < 3 ) {\n error_setg ( errp , \"Lazy refcounts require a qcow2 image with at least \" \"qemu 1.1 compatibility level\" ) ;\n ret = - EINVAL ;\n goto fail ;\n }\n # ifdef DEBUG_ALLOC {\n BdrvCheckResult result = {\n 0 }\n ;\n qcow2_check_refcounts ( bs , & result , 0 ) ;\n }\n # endif return ret ;\n fail : g_free ( s -> unknown_header_fields ) ;\n cleanup_unknown_header_ext ( bs ) ;\n qcow2_free_snapshots ( bs ) ;\n qcow2_refcount_close ( bs ) ;\n g_free ( s -> l1_table ) ;\n s -> l1_table = NULL ;\n if ( s -> l2_table_cache ) {\n qcow2_cache_destroy ( bs , s -> l2_table_cache ) ;\n }\n if ( s -> refcount_block_cache ) {\n qcow2_cache_destroy ( bs , s -> refcount_block_cache ) ;\n }\n g_free ( s -> cluster_cache ) ;\n qemu_vfree ( s -> cluster_data ) ;\n return ret ;\n }"}
{"idx": 9970, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop )"}
{"idx": 9971, "target": 0, "func": "void fz_convert_color ( fz_context * ctx , const fz_color_params * params , const fz_colorspace * is , const fz_colorspace * ds , float * dv , const fz_colorspace * ss , const float * sv ) {\n fz_color_converter cc ;\n fz_find_color_converter ( ctx , & cc , is , ds , ss , params ) ;\n cc . convert ( ctx , & cc , dv , sv ) ;\n fz_drop_color_converter ( ctx , & cc ) ;\n }"}
{"idx": 9972, "target": 0, "func": "static void test_bufferevent_watermarks ( void ) {\n struct bufferevent * bev1 , * bev2 ;\n char buffer [ 65000 ] ;\n int i ;\n setup_test ( \"Bufferevent Watermarks: \" ) ;\n bev1 = bufferevent_new ( pair [ 0 ] , NULL , wm_writecb , wm_errorcb , NULL ) ;\n bev2 = bufferevent_new ( pair [ 1 ] , wm_readcb , NULL , wm_errorcb , NULL ) ;\n bufferevent_disable ( bev1 , EV_READ ) ;\n bufferevent_enable ( bev2 , EV_READ ) ;\n for ( i = 0 ;\n i < sizeof ( buffer ) ;\n i ++ ) buffer [ i ] = i ;\n bufferevent_write ( bev1 , buffer , sizeof ( buffer ) ) ;\n bufferevent_setwatermark ( bev2 , EV_READ , 10 , 20 ) ;\n event_dispatch ( ) ;\n bufferevent_free ( bev1 ) ;\n bufferevent_free ( bev2 ) ;\n if ( test_ok != 2 ) test_ok = 0 ;\n cleanup_test ( ) ;\n }"}
{"idx": 9973, "target": 0, "func": "void PNGAPI png_set_unknown_chunk_location ( png_structp png_ptr , png_infop info_ptr , int chunk , int location ) {\n if ( png_ptr != NULL && info_ptr != NULL && chunk >= 0 && chunk < ( int ) info_ptr -> unknown_chunks_num ) info_ptr -> unknown_chunks [ chunk ] . location = ( png_byte ) location ;\n }"}
{"idx": 9974, "target": 0, "func": "static void fill_label_boolean ( field_info * fi , gchar * label_str ) {\n char * p = label_str ;\n int bitfield_byte_length = 0 , bitwidth ;\n guint64 unshifted_value ;\n guint64 value ;\n header_field_info * hfinfo = fi -> hfinfo ;\n const true_false_string * tfstring = ( const true_false_string * ) & tfs_true_false ;\n if ( hfinfo -> strings ) {\n tfstring = ( const struct true_false_string * ) hfinfo -> strings ;\n }\n value = fvalue_get_uinteger64 ( & fi -> value ) ;\n if ( hfinfo -> bitmask ) {\n bitwidth = hfinfo_container_bitwidth ( hfinfo ) ;\n unshifted_value = value ;\n unshifted_value <<= hfinfo_bitshift ( hfinfo ) ;\n p = decode_bitfield_value ( label_str , unshifted_value , hfinfo -> bitmask , bitwidth ) ;\n bitfield_byte_length = ( int ) ( p - label_str ) ;\n }\n label_fill ( label_str , bitfield_byte_length , hfinfo , value ? tfstring -> true_string : tfstring -> false_string ) ;\n }"}
{"idx": 9975, "target": 0, "func": "void refresh_status ( THD * thd ) {\n mysql_mutex_lock ( & LOCK_status ) ;\n add_to_status ( & global_status_var , & thd -> status_var ) ;\n bzero ( ( uchar * ) & thd -> status_var , sizeof ( thd -> status_var ) ) ;\n bzero ( ( uchar * ) & thd -> org_status_var , sizeof ( thd -> org_status_var ) ) ;\n thd -> start_bytes_received = 0 ;\n reset_status_vars ( ) ;\n process_key_caches ( reset_key_cache_counters , 0 ) ;\n flush_status_time = time ( ( time_t * ) 0 ) ;\n mysql_mutex_unlock ( & LOCK_status ) ;\n mysql_mutex_lock ( & LOCK_thread_count ) ;\n max_used_connections = thread_count - delayed_insert_threads ;\n mysql_mutex_unlock ( & LOCK_thread_count ) ;\n }"}
{"idx": 9976, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n SgiState * s = avctx -> priv_data ;\n AVFrame * picture = data ;\n AVFrame * p = & s -> picture ;\n unsigned int dimension , rle ;\n int ret = 0 ;\n uint8_t * out_buf , * out_end ;\n bytestream2_init ( & s -> g , avpkt -> data , avpkt -> size ) ;\n if ( bytestream2_get_bytes_left ( & s -> g ) < SGI_HEADER_SIZE ) {\n av_log ( avctx , AV_LOG_ERROR , \"buf_size too small (%d)\\n\" , avpkt -> size ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( bytestream2_get_be16 ( & s -> g ) != SGI_MAGIC ) {\n av_log ( avctx , AV_LOG_ERROR , \"bad magic number\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n rle = bytestream2_get_byte ( & s -> g ) ;\n s -> bytes_per_channel = bytestream2_get_byte ( & s -> g ) ;\n dimension = bytestream2_get_be16 ( & s -> g ) ;\n s -> width = bytestream2_get_be16 ( & s -> g ) ;\n s -> height = bytestream2_get_be16 ( & s -> g ) ;\n s -> depth = bytestream2_get_be16 ( & s -> g ) ;\n if ( s -> bytes_per_channel != 1 && ( s -> bytes_per_channel != 2 || rle ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"wrong channel number\\n\" ) ;\n return - 1 ;\n }\n if ( dimension != 2 && dimension != 3 ) {\n av_log ( avctx , AV_LOG_ERROR , \"wrong dimension number\\n\" ) ;\n return - 1 ;\n }\n if ( s -> depth == SGI_GRAYSCALE ) {\n avctx -> pix_fmt = s -> bytes_per_channel == 2 ? AV_PIX_FMT_GRAY16BE : AV_PIX_FMT_GRAY8 ;\n }\n else if ( s -> depth == SGI_RGB ) {\n avctx -> pix_fmt = s -> bytes_per_channel == 2 ? AV_PIX_FMT_RGB48BE : AV_PIX_FMT_RGB24 ;\n }\n else if ( s -> depth == SGI_RGBA && s -> bytes_per_channel == 1 ) {\n avctx -> pix_fmt = AV_PIX_FMT_RGBA ;\n }\n else {\n av_log ( avctx , AV_LOG_ERROR , \"wrong picture format\\n\" ) ;\n return - 1 ;\n }\n if ( av_image_check_size ( s -> width , s -> height , 0 , avctx ) ) return - 1 ;\n avcodec_set_dimensions ( avctx , s -> width , s -> height ) ;\n if ( p -> data [ 0 ] ) avctx -> release_buffer ( avctx , p ) ;\n p -> reference = 0 ;\n if ( ff_get_buffer ( avctx , p ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed.\\n\" ) ;\n return - 1 ;\n }\n p -> pict_type = AV_PICTURE_TYPE_I ;\n p -> key_frame = 1 ;\n out_buf = p -> data [ 0 ] ;\n out_end = out_buf + p -> linesize [ 0 ] * s -> height ;\n s -> linesize = p -> linesize [ 0 ] ;\n bytestream2_seek ( & s -> g , SGI_HEADER_SIZE , SEEK_SET ) ;\n if ( rle ) {\n ret = read_rle_sgi ( out_end , s ) ;\n }\n else {\n ret = read_uncompressed_sgi ( out_buf , out_end , s ) ;\n }\n if ( ret == 0 ) {\n * picture = s -> picture ;\n * got_frame = 1 ;\n return avpkt -> size ;\n }\n else {\n return ret ;\n }\n }"}
{"idx": 9977, "target": 1, "func": "SPL_METHOD ( SplFileObject , seek ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n long line_pos ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"l\" , & line_pos ) == FAILURE ) {\n return ;\n }\n if ( line_pos < 0 ) {\n zend_throw_exception_ex ( spl_ce_LogicException , 0 TSRMLS_CC , \"Can't seek file %s to negative line %ld\" , intern -> file_name , line_pos ) ;\n RETURN_FALSE ;\n }\n spl_filesystem_file_rewind ( getThis ( ) , intern TSRMLS_CC ) ;\n while ( intern -> u . file . current_line_num < line_pos ) {\n if ( spl_filesystem_file_read_line ( getThis ( ) , intern , 1 TSRMLS_CC ) == FAILURE ) {\n break ;\n }\n }\n }"}
{"idx": 9978, "target": 0, "func": "static int pimv2_addr_print ( netdissect_options * ndo , const u_char * bp , enum pimv2_addrtype at , int silent ) {\n int af ;\n int len , hdrlen ;\n ND_TCHECK ( bp [ 0 ] ) ;\n if ( pimv2_addr_len == 0 ) {\n ND_TCHECK ( bp [ 1 ] ) ;\n switch ( bp [ 0 ] ) {\n case 1 : af = AF_INET ;\n len = sizeof ( struct in_addr ) ;\n break ;\n case 2 : af = AF_INET6 ;\n len = sizeof ( struct in6_addr ) ;\n break ;\n default : return - 1 ;\n }\n if ( bp [ 1 ] != 0 ) return - 1 ;\n hdrlen = 2 ;\n }\n else {\n switch ( pimv2_addr_len ) {\n case sizeof ( struct in_addr ) : af = AF_INET ;\n break ;\n case sizeof ( struct in6_addr ) : af = AF_INET6 ;\n break ;\n default : return - 1 ;\n break ;\n }\n len = pimv2_addr_len ;\n hdrlen = 0 ;\n }\n bp += hdrlen ;\n switch ( at ) {\n case pimv2_unicast : ND_TCHECK2 ( bp [ 0 ] , len ) ;\n if ( af == AF_INET ) {\n if ( ! silent ) ND_PRINT ( ( ndo , \"%s\" , ipaddr_string ( ndo , bp ) ) ) ;\n }\n else if ( af == AF_INET6 ) {\n if ( ! silent ) ND_PRINT ( ( ndo , \"%s\" , ip6addr_string ( ndo , bp ) ) ) ;\n }\n return hdrlen + len ;\n case pimv2_group : case pimv2_source : ND_TCHECK2 ( bp [ 0 ] , len + 2 ) ;\n if ( af == AF_INET ) {\n if ( ! silent ) {\n ND_PRINT ( ( ndo , \"%s\" , ipaddr_string ( ndo , bp + 2 ) ) ) ;\n if ( bp [ 1 ] != 32 ) ND_PRINT ( ( ndo , \"/%u\" , bp [ 1 ] ) ) ;\n }\n }\n else if ( af == AF_INET6 ) {\n if ( ! silent ) {\n ND_PRINT ( ( ndo , \"%s\" , ip6addr_string ( ndo , bp + 2 ) ) ) ;\n if ( bp [ 1 ] != 128 ) ND_PRINT ( ( ndo , \"/%u\" , bp [ 1 ] ) ) ;\n }\n }\n if ( bp [ 0 ] && ! silent ) {\n if ( at == pimv2_group ) {\n ND_PRINT ( ( ndo , \"(0x%02x)\" , bp [ 0 ] ) ) ;\n }\n else {\n ND_PRINT ( ( ndo , \"(%s%s%s\" , bp [ 0 ] & 0x04 ? \"S\" : \"\" , bp [ 0 ] & 0x02 ? \"W\" : \"\" , bp [ 0 ] & 0x01 ? \"R\" : \"\" ) ) ;\n if ( bp [ 0 ] & 0xf8 ) {\n ND_PRINT ( ( ndo , \"+0x%02x\" , bp [ 0 ] & 0xf8 ) ) ;\n }\n ND_PRINT ( ( ndo , \")\" ) ) ;\n }\n }\n return hdrlen + 2 + len ;\n default : return - 1 ;\n }\n trunc : return - 1 ;\n }"}
{"idx": 9979, "target": 0, "func": "int jas_stream_pad ( jas_stream_t * stream , int n , int c ) {\n int m ;\n m = n ;\n for ( m = n ;\n m > 0 ;\n -- m ) {\n if ( jas_stream_putc ( stream , c ) == EOF ) return n - m ;\n }\n return n ;\n }"}
{"idx": 9980, "target": 0, "func": "static void http_errorcb ( struct bufferevent * bev , short what , void * arg ) {\n test_ok = - 2 ;\n event_loopexit ( NULL ) ;\n }"}
{"idx": 9981, "target": 0, "func": "int dissect_ber_restricted_string ( gboolean implicit_tag , gint32 type , asn1_ctx_t * actx , proto_tree * tree , tvbuff_t * tvb , int offset , gint hf_id , tvbuff_t * * out_tvb ) {\n return dissect_ber_constrained_restricted_string ( implicit_tag , type , actx , tree , tvb , offset , NO_BOUND , NO_BOUND , hf_id , out_tvb ) ;\n }"}
{"idx": 9982, "target": 0, "func": "static void pdf_run_MP ( fz_context * ctx , pdf_processor * proc , const char * tag ) {\n }"}
{"idx": 9983, "target": 0, "func": "int dwarf_get_elf ( Dwarf_Debug dbg , dwarf_elf_handle * elf , Dwarf_Error * error ) {\n struct Dwarf_Obj_Access_Interface_s * obj = 0 ;\n if ( dbg == NULL ) {\n _dwarf_error ( NULL , error , DW_DLE_DBG_NULL ) ;\n return ( DW_DLV_ERROR ) ;\n }\n obj = dbg -> de_obj_file ;\n if ( obj ) {\n dwarf_elf_object_access_internals_t * internals = ( dwarf_elf_object_access_internals_t * ) obj -> object ;\n if ( internals -> elf == NULL ) {\n _dwarf_error ( dbg , error , DW_DLE_FNO ) ;\n return ( DW_DLV_ERROR ) ;\n }\n * elf = internals -> elf ;\n return DW_DLV_OK ;\n }\n _dwarf_error ( dbg , error , DW_DLE_FNO ) ;\n return DW_DLV_ERROR ;\n }"}
{"idx": 9984, "target": 0, "func": "static Asn1Generic * DecodeAsn1DerOctetString ( const unsigned char * buffer , uint32_t max_size , uint8_t depth , uint32_t * errcode ) {\n const unsigned char * d_ptr = buffer ;\n uint32_t length , numbytes ;\n Asn1Generic * a ;\n unsigned char c ;\n d_ptr ++ ;\n c = d_ptr [ 0 ] ;\n if ( ( c & ( 1 << 7 ) ) >> 7 == 0 ) {\n length = c ;\n d_ptr ++ ;\n }\n else {\n numbytes = c & 0x7f ;\n d_ptr ++ ;\n if ( DecodeAsn1BuildValue ( & d_ptr , & length , numbytes , errcode ) == - 1 ) {\n return NULL ;\n }\n }\n if ( length == UINT32_MAX || length > max_size ) {\n if ( errcode ) * errcode = ERR_DER_ELEMENT_SIZE_TOO_BIG ;\n return NULL ;\n }\n a = Asn1GenericNew ( ) ;\n if ( a == NULL ) return NULL ;\n a -> type = ASN1_OCTETSTRING ;\n a -> strlen = length ;\n a -> str = SCMalloc ( length + 1 ) ;\n if ( a -> str == NULL ) {\n SCFree ( a ) ;\n return NULL ;\n }\n memcpy ( a -> str , ( const char * ) d_ptr , length ) ;\n a -> str [ length ] = 0 ;\n d_ptr += length ;\n a -> length = ( d_ptr - buffer ) ;\n return a ;\n }"}
{"idx": 9985, "target": 1, "func": "void ff_estimate_p_frame_motion ( MpegEncContext * s , int mb_x , int mb_y ) {\n MotionEstContext * const c = & s -> me ;\n uint8_t * pix , * ppix ;\n int sum , mx , my , dmin ;\n int varc ;\n int vard ;\n int P [ 10 ] [ 2 ] ;\n const int shift = 1 + s -> quarter_sample ;\n int mb_type = 0 ;\n Picture * const pic = & s -> current_picture ;\n init_ref ( c , s -> new_picture . f . data , s -> last_picture . f . data , NULL , 16 * mb_x , 16 * mb_y , 0 ) ;\n assert ( s -> quarter_sample == 0 || s -> quarter_sample == 1 ) ;\n assert ( s -> linesize == c -> stride ) ;\n assert ( s -> uvlinesize == c -> uvstride ) ;\n c -> penalty_factor = get_penalty_factor ( s -> lambda , s -> lambda2 , c -> avctx -> me_cmp ) ;\n c -> sub_penalty_factor = get_penalty_factor ( s -> lambda , s -> lambda2 , c -> avctx -> me_sub_cmp ) ;\n c -> mb_penalty_factor = get_penalty_factor ( s -> lambda , s -> lambda2 , c -> avctx -> mb_cmp ) ;\n c -> current_mv_penalty = c -> mv_penalty [ s -> f_code ] + MAX_MV ;\n get_limits ( s , 16 * mb_x , 16 * mb_y ) ;\n c -> skip = 0 ;\n pix = c -> src [ 0 ] [ 0 ] ;\n sum = s -> dsp . pix_sum ( pix , s -> linesize ) ;\n varc = s -> dsp . pix_norm1 ( pix , s -> linesize ) - ( ( ( unsigned ) sum * sum ) >> 8 ) + 500 ;\n pic -> mb_mean [ s -> mb_stride * mb_y + mb_x ] = ( sum + 128 ) >> 8 ;\n pic -> mb_var [ s -> mb_stride * mb_y + mb_x ] = ( varc + 128 ) >> 8 ;\n c -> mb_var_sum_temp += ( varc + 128 ) >> 8 ;\n switch ( s -> me_method ) {\n case ME_ZERO : default : mx = 0 ;\n my = 0 ;\n dmin = 0 ;\n break ;\n case ME_X1 : case ME_EPZS : {\n const int mot_stride = s -> b8_stride ;\n const int mot_xy = s -> block_index [ 0 ] ;\n P_LEFT [ 0 ] = s -> current_picture . f . motion_val [ 0 ] [ mot_xy - 1 ] [ 0 ] ;\n P_LEFT [ 1 ] = s -> current_picture . f . motion_val [ 0 ] [ mot_xy - 1 ] [ 1 ] ;\n if ( P_LEFT [ 0 ] > ( c -> xmax << shift ) ) P_LEFT [ 0 ] = ( c -> xmax << shift ) ;\n if ( ! s -> first_slice_line ) {\n P_TOP [ 0 ] = s -> current_picture . f . motion_val [ 0 ] [ mot_xy - mot_stride ] [ 0 ] ;\n P_TOP [ 1 ] = s -> current_picture . f . motion_val [ 0 ] [ mot_xy - mot_stride ] [ 1 ] ;\n P_TOPRIGHT [ 0 ] = s -> current_picture . f . motion_val [ 0 ] [ mot_xy - mot_stride + 2 ] [ 0 ] ;\n P_TOPRIGHT [ 1 ] = s -> current_picture . f . motion_val [ 0 ] [ mot_xy - mot_stride + 2 ] [ 1 ] ;\n if ( P_TOP [ 1 ] > ( c -> ymax << shift ) ) P_TOP [ 1 ] = ( c -> ymax << shift ) ;\n if ( P_TOPRIGHT [ 0 ] < ( c -> xmin << shift ) ) P_TOPRIGHT [ 0 ] = ( c -> xmin << shift ) ;\n if ( P_TOPRIGHT [ 1 ] > ( c -> ymax << shift ) ) P_TOPRIGHT [ 1 ] = ( c -> ymax << shift ) ;\n P_MEDIAN [ 0 ] = mid_pred ( P_LEFT [ 0 ] , P_TOP [ 0 ] , P_TOPRIGHT [ 0 ] ) ;\n P_MEDIAN [ 1 ] = mid_pred ( P_LEFT [ 1 ] , P_TOP [ 1 ] , P_TOPRIGHT [ 1 ] ) ;\n if ( s -> out_format == FMT_H263 ) {\n c -> pred_x = P_MEDIAN [ 0 ] ;\n c -> pred_y = P_MEDIAN [ 1 ] ;\n }\n else {\n c -> pred_x = P_LEFT [ 0 ] ;\n c -> pred_y = P_LEFT [ 1 ] ;\n }\n }\n else {\n c -> pred_x = P_LEFT [ 0 ] ;\n c -> pred_y = P_LEFT [ 1 ] ;\n }\n }\n dmin = ff_epzs_motion_search ( s , & mx , & my , P , 0 , 0 , s -> p_mv_table , ( 1 << 16 ) >> shift , 0 , 16 ) ;\n break ;\n }\n ppix = c -> ref [ 0 ] [ 0 ] + ( my * s -> linesize ) + mx ;\n vard = s -> dsp . sse [ 0 ] ( NULL , pix , ppix , s -> linesize , 16 ) ;\n pic -> mc_mb_var [ s -> mb_stride * mb_y + mb_x ] = ( vard + 128 ) >> 8 ;\n c -> mc_mb_var_sum_temp += ( vard + 128 ) >> 8 ;\n if ( mb_type ) {\n int p_score = FFMIN ( vard , varc - 500 + ( s -> lambda2 >> FF_LAMBDA_SHIFT ) * 100 ) ;\n int i_score = varc - 500 + ( s -> lambda2 >> FF_LAMBDA_SHIFT ) * 20 ;\n c -> scene_change_score += ff_sqrt ( p_score ) - ff_sqrt ( i_score ) ;\n if ( mb_type == CANDIDATE_MB_TYPE_INTER ) {\n c -> sub_motion_search ( s , & mx , & my , dmin , 0 , 0 , 0 , 16 ) ;\n set_p_mv_tables ( s , mx , my , 1 ) ;\n }\n else {\n mx <<= shift ;\n my <<= shift ;\n }\n if ( mb_type == CANDIDATE_MB_TYPE_INTER4V ) {\n h263_mv4_search ( s , mx , my , shift ) ;\n set_p_mv_tables ( s , mx , my , 0 ) ;\n }\n if ( mb_type == CANDIDATE_MB_TYPE_INTER_I ) {\n interlaced_search ( s , 0 , s -> p_field_mv_table , s -> p_field_select_table , mx , my , 1 ) ;\n }\n }\n else if ( c -> avctx -> mb_decision > FF_MB_DECISION_SIMPLE ) {\n int p_score = FFMIN ( vard , varc - 500 + ( s -> lambda2 >> FF_LAMBDA_SHIFT ) * 100 ) ;\n int i_score = varc - 500 + ( s -> lambda2 >> FF_LAMBDA_SHIFT ) * 20 ;\n c -> scene_change_score += ff_sqrt ( p_score ) - ff_sqrt ( i_score ) ;\n if ( vard * 2 + 200 * 256 > varc ) mb_type |= CANDIDATE_MB_TYPE_INTRA ;\n if ( varc * 2 + 200 * 256 > vard || s -> qscale > 24 ) {\n mb_type |= CANDIDATE_MB_TYPE_INTER ;\n c -> sub_motion_search ( s , & mx , & my , dmin , 0 , 0 , 0 , 16 ) ;\n if ( s -> flags & CODEC_FLAG_MV0 ) if ( mx || my ) mb_type |= CANDIDATE_MB_TYPE_SKIPPED ;\n }\n else {\n mx <<= shift ;\n my <<= shift ;\n }\n if ( ( s -> flags & CODEC_FLAG_4MV ) && ! c -> skip && varc > 50 << 8 && vard > 10 << 8 ) {\n if ( h263_mv4_search ( s , mx , my , shift ) < INT_MAX ) mb_type |= CANDIDATE_MB_TYPE_INTER4V ;\n set_p_mv_tables ( s , mx , my , 0 ) ;\n }\n else set_p_mv_tables ( s , mx , my , 1 ) ;\n if ( ( s -> flags & CODEC_FLAG_INTERLACED_ME ) && ! c -> skip ) {\n if ( interlaced_search ( s , 0 , s -> p_field_mv_table , s -> p_field_select_table , mx , my , 0 ) < INT_MAX ) mb_type |= CANDIDATE_MB_TYPE_INTER_I ;\n }\n }\n else {\n int intra_score , i ;\n mb_type = CANDIDATE_MB_TYPE_INTER ;\n dmin = c -> sub_motion_search ( s , & mx , & my , dmin , 0 , 0 , 0 , 16 ) ;\n if ( c -> avctx -> me_sub_cmp != c -> avctx -> mb_cmp && ! c -> skip ) dmin = get_mb_score ( s , mx , my , 0 , 0 , 0 , 16 , 1 ) ;\n if ( ( s -> flags & CODEC_FLAG_4MV ) && ! c -> skip && varc > 50 << 8 && vard > 10 << 8 ) {\n int dmin4 = h263_mv4_search ( s , mx , my , shift ) ;\n if ( dmin4 < dmin ) {\n mb_type = CANDIDATE_MB_TYPE_INTER4V ;\n dmin = dmin4 ;\n }\n }\n if ( ( s -> flags & CODEC_FLAG_INTERLACED_ME ) && ! c -> skip ) {\n int dmin_i = interlaced_search ( s , 0 , s -> p_field_mv_table , s -> p_field_select_table , mx , my , 0 ) ;\n if ( dmin_i < dmin ) {\n mb_type = CANDIDATE_MB_TYPE_INTER_I ;\n dmin = dmin_i ;\n }\n }\n set_p_mv_tables ( s , mx , my , mb_type != CANDIDATE_MB_TYPE_INTER4V ) ;\n if ( ( c -> avctx -> mb_cmp & 0xFF ) == FF_CMP_SSE ) {\n intra_score = varc - 500 ;\n }\n else {\n unsigned mean = ( sum + 128 ) >> 8 ;\n mean *= 0x01010101 ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n * ( uint32_t * ) ( & c -> scratchpad [ i * s -> linesize + 0 ] ) = mean ;\n * ( uint32_t * ) ( & c -> scratchpad [ i * s -> linesize + 4 ] ) = mean ;\n * ( uint32_t * ) ( & c -> scratchpad [ i * s -> linesize + 8 ] ) = mean ;\n * ( uint32_t * ) ( & c -> scratchpad [ i * s -> linesize + 12 ] ) = mean ;\n }\n intra_score = s -> dsp . mb_cmp [ 0 ] ( s , c -> scratchpad , pix , s -> linesize , 16 ) ;\n }\n intra_score += c -> mb_penalty_factor * 16 ;\n if ( intra_score < dmin ) {\n mb_type = CANDIDATE_MB_TYPE_INTRA ;\n s -> current_picture . f . mb_type [ mb_y * s -> mb_stride + mb_x ] = CANDIDATE_MB_TYPE_INTRA ;\n }\n else s -> current_picture . f . mb_type [ mb_y * s -> mb_stride + mb_x ] = 0 ;\n {\n int p_score = FFMIN ( vard , varc - 500 + ( s -> lambda2 >> FF_LAMBDA_SHIFT ) * 100 ) ;\n int i_score = varc - 500 + ( s -> lambda2 >> FF_LAMBDA_SHIFT ) * 20 ;\n c -> scene_change_score += ff_sqrt ( p_score ) - ff_sqrt ( i_score ) ;\n }\n }\n s -> mb_type [ mb_y * s -> mb_stride + mb_x ] = mb_type ;\n }"}
{"idx": 9986, "target": 0, "func": "static void virLogCloseFd ( void * data ) {\n int fd = ( intptr_t ) data ;\n VIR_LOG_CLOSE ( fd ) ;\n }"}
{"idx": 9987, "target": 0, "func": "static void validate_stream_config ( const struct stream_state * stream , const struct VpxEncoderConfig * global ) {\n const struct stream_state * streami ;\n if ( ! stream -> config . cfg . g_w || ! stream -> config . cfg . g_h ) fatal ( \"Stream %d: Specify stream dimensions with --width (-w) \" \" and --height (-h)\" , stream -> index ) ;\n if ( stream -> config . cfg . g_profile != 0 && ! global -> experimental_bitstream ) {\n fatal ( \"Stream %d: profile %d is experimental and requires the --%s flag\" , stream -> index , stream -> config . cfg . g_profile , experimental_bitstream . long_name ) ;\n }\n if ( stream -> config . cfg . g_input_bit_depth > ( unsigned int ) stream -> config . cfg . g_bit_depth ) {\n fatal ( \"Stream %d: codec bit depth (%d) less than input bit depth (%d)\" , stream -> index , ( int ) stream -> config . cfg . g_bit_depth , stream -> config . cfg . g_input_bit_depth ) ;\n }\n for ( streami = stream ;\n streami ;\n streami = streami -> next ) {\n if ( ! streami -> config . out_fn ) fatal ( \"Stream %d: Output file is required (specify with -o)\" , streami -> index ) ;\n if ( streami != stream ) {\n const char * a = stream -> config . out_fn ;\n const char * b = streami -> config . out_fn ;\n if ( ! strcmp ( a , b ) && strcmp ( a , \"/devull\" ) && strcmp ( a , \":nul\" ) ) fatal ( \"Stream %d: duplicate output file (from stream %d)\" , streami -> index , stream -> index ) ;\n }\n if ( streami != stream ) {\n const char * a = stream -> config . stats_fn ;\n const char * b = streami -> config . stats_fn ;\n if ( a && b && ! strcmp ( a , b ) ) fatal ( \"Stream %d: duplicate stats file (from stream %d)\" , streami -> index , stream -> index ) ;\n }\n # if CONFIG_FP_MB_STATS if ( streami != stream ) {\n const char * a = stream -> config . fpmb_stats_fn ;\n const char * b = streami -> config . fpmb_stats_fn ;\n if ( a && b && ! strcmp ( a , b ) ) fatal ( \"Stream %d: duplicate mb stats file (from stream %d)\" , streami -> index , stream -> index ) ;\n }\n # endif }\n }"}
{"idx": 9988, "target": 0, "func": "int archive_mstring_copy_mbs_len ( struct archive_mstring * aes , const char * mbs , size_t len ) {\n if ( mbs == NULL ) {\n aes -> aes_set = 0 ;\n return ( 0 ) ;\n }\n aes -> aes_set = AES_SET_MBS ;\n archive_strncpy ( & ( aes -> aes_mbs ) , mbs , len ) ;\n archive_string_empty ( & ( aes -> aes_utf8 ) ) ;\n archive_wstring_empty ( & ( aes -> aes_wcs ) ) ;\n return ( 0 ) ;\n }"}
{"idx": 9989, "target": 0, "func": "void ptvcursor_free ( ptvcursor_t * ptvc ) {\n ptvcursor_free_subtree_levels ( ptvc ) ;\n }"}
{"idx": 9990, "target": 0, "func": "static void add_to_graph ( voip_calls_tapinfo_t * tapinfo _U_ , packet_info * pinfo , const gchar * frame_label , const gchar * comment , guint16 call_num , address * src_addr , address * dst_addr , guint16 line_style ) {\n seq_analysis_item_t * gai ;\n gchar time_str [ COL_MAX_LEN ] ;\n gai = ( seq_analysis_item_t * ) g_malloc ( sizeof ( seq_analysis_item_t ) ) ;\n gai -> fd = pinfo -> fd ;\n COPY_ADDRESS ( & ( gai -> src_addr ) , src_addr ) ;\n COPY_ADDRESS ( & ( gai -> dst_addr ) , dst_addr ) ;\n gai -> port_src = pinfo -> srcport ;\n gai -> port_dst = pinfo -> destport ;\n if ( frame_label != NULL ) gai -> frame_label = g_strdup ( frame_label ) ;\n else gai -> frame_label = g_strdup ( \"\" ) ;\n if ( comment != NULL ) gai -> comment = g_strdup ( comment ) ;\n else gai -> comment = g_strdup ( \"\" ) ;\n gai -> conv_num = call_num ;\n gai -> line_style = line_style ;\n set_fd_time ( cfile . epan , gai -> fd , time_str ) ;\n gai -> time_str = g_strdup ( time_str ) ;\n gai -> display = FALSE ;\n tapinfo -> graph_analysis -> list = g_list_prepend ( tapinfo -> graph_analysis -> list , gai ) ;\n g_hash_table_insert ( tapinfo -> graph_analysis -> ht , & gai -> fd -> num , gai ) ;\n }"}
{"idx": 9991, "target": 1, "func": "int crypto_authenticate_and_decrypt ( struct crypto_instance * instance , unsigned char * buf , int * buf_len ) {\n struct crypto_config_header * cch = ( struct crypto_config_header * ) buf ;\n const char * guessed_str ;\n if ( cch -> crypto_cipher_type != CRYPTO_CIPHER_TYPE_2_3 ) {\n guessed_str = NULL ;\n if ( ( cch -> crypto_cipher_type == 0xC0 && cch -> crypto_hash_type == 0x70 ) || ( cch -> crypto_cipher_type == 0x70 && cch -> crypto_hash_type == 0xC0 ) ) {\n guessed_str = \"Corosync 3.x\" ;\n }\n else if ( cch -> crypto_cipher_type == CRYPTO_CIPHER_TYPE_2_2 ) {\n guessed_str = \"Corosync 2.2\" ;\n }\n else if ( cch -> crypto_cipher_type == 0x01 ) {\n guessed_str = \"unencrypted Kronosnet\" ;\n }\n else if ( cch -> crypto_cipher_type >= 0 && cch -> crypto_cipher_type <= 5 ) {\n guessed_str = \"unencrypted Corosync 2.0/2.1/1.x/OpenAIS\" ;\n }\n else {\n guessed_str = \"encrypted Kronosnet/Corosync 2.0/2.1/1.x/OpenAIS or unknown\" ;\n }\n log_printf ( instance -> log_level_security , \"Unsupported incoming packet (probably sent by %s). Rejecting\" , guessed_str ) ;\n return - 1 ;\n }\n if ( cch -> crypto_hash_type != CRYPTO_HASH_TYPE_2_3 ) {\n log_printf ( instance -> log_level_security , \"Incoming packet has different hash type. Rejecting\" ) ;\n return - 1 ;\n }\n if ( authenticate_nss_2_3 ( instance , buf , buf_len ) != 0 ) {\n return - 1 ;\n }\n if ( ( cch -> __pad0 != 0 ) || ( cch -> __pad1 != 0 ) ) {\n log_printf ( instance -> log_level_security , \"Incoming packet appears to have features not supported by this version of corosync. Rejecting\" ) ;\n return - 1 ;\n }\n if ( decrypt_nss_2_3 ( instance , buf , buf_len ) != 0 ) {\n return - 1 ;\n }\n cch = NULL ;\n memmove ( buf , buf + sizeof ( struct crypto_config_header ) , * buf_len ) ;\n return 0 ;\n }"}
{"idx": 9992, "target": 0, "func": "static int reconnect ( void ) {\n if ( opt_reconnect ) {\n put_info ( \"No connection. Trying to reconnect...\" , INFO_INFO ) ;\n ( void ) com_connect ( ( String * ) 0 , 0 ) ;\n if ( opt_rehash ) com_rehash ( NULL , NULL ) ;\n }\n if ( ! connected ) return put_info ( \"Can't connect to the server\\n\" , INFO_ERROR ) ;\n my_free ( server_version ) ;\n server_version = 0 ;\n return 0 ;\n }"}
{"idx": 9993, "target": 0, "func": "int i2d_DSA_PUBKEY_bio ( BIO * bp , DSA * dsa ) {\n return ASN1_i2d_bio_of ( DSA , i2d_DSA_PUBKEY , bp , dsa ) ;\n }"}
{"idx": 9994, "target": 0, "func": "static int match_file ( const void * p , struct file * file , unsigned fd ) {\n return file_has_perm ( p , file , file_to_av ( file ) ) ? fd + 1 : 0 ;\n }"}
{"idx": 9995, "target": 0, "func": "static void ss20_init ( QEMUMachineInitArgs * args ) {\n ram_addr_t RAM_size = args -> ram_size ;\n const char * cpu_model = args -> cpu_model ;\n const char * kernel_filename = args -> kernel_filename ;\n const char * kernel_cmdline = args -> kernel_cmdline ;\n const char * initrd_filename = args -> initrd_filename ;\n const char * boot_device = args -> boot_device ;\n sun4m_hw_init ( & sun4m_hwdefs [ 3 ] , RAM_size , boot_device , kernel_filename , kernel_cmdline , initrd_filename , cpu_model ) ;\n }"}
{"idx": 9996, "target": 0, "func": "static void proto_tree_set_bytes_tvb ( field_info * fi , tvbuff_t * tvb , gint offset , gint length ) {\n proto_tree_set_bytes ( fi , tvb_get_ptr ( tvb , offset , length ) , length ) ;\n }"}
{"idx": 9997, "target": 1, "func": "static int dissect_h225_UnregRejectReason ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 614 \"./asn1/h225/h225.cnf\" gint32 value ;\n h225_packet_info * h225_pi ;\n h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_UnregRejectReason , UnregRejectReason_choice , & value ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> reason = value ;\n }\n return offset ;\n }"}
{"idx": 9998, "target": 0, "func": "proto_item * proto_tree_add_time_item ( proto_tree * tree , int hfindex , tvbuff_t * tvb , const gint start , gint length , const guint encoding , nstime_t * retval , gint * endoff , gint * err ) {\n field_info * new_fi ;\n nstime_t time_stamp ;\n gint saved_err = 0 ;\n header_field_info * hfinfo ;\n PROTO_REGISTRAR_GET_NTH ( hfindex , hfinfo ) ;\n DISSECTOR_ASSERT_HINT ( hfinfo != NULL , \"Not passed hfi!\" ) ;\n DISSECTOR_ASSERT_FIELD_TYPE_IS_TIME ( hfinfo ) ;\n if ( length < - 1 || length == 0 ) {\n REPORT_DISSECTOR_BUG ( wmem_strdup_printf ( wmem_packet_scope ( ) , \"Invalid length %d passed to proto_tree_add_time_item\" , length ) ) ;\n }\n time_stamp . secs = 0 ;\n time_stamp . nsecs = 0 ;\n if ( encoding & ENC_STR_TIME_MASK ) {\n tvb_get_string_time ( tvb , start , length , encoding , & time_stamp , endoff ) ;\n saved_err = errno ;\n }\n else {\n const gboolean is_relative = ( hfinfo -> type == FT_RELATIVE_TIME ) ? TRUE : FALSE ;\n if ( length != 8 && length != 4 ) {\n const gboolean length_error = length < 4 ? TRUE : FALSE ;\n if ( is_relative ) report_type_length_mismatch ( tree , \"a relative time value\" , length , length_error ) ;\n else report_type_length_mismatch ( tree , \"an absolute time value\" , length , length_error ) ;\n }\n tvb_ensure_bytes_exist ( tvb , start , length ) ;\n get_time_value ( tvb , start , length , encoding , & time_stamp , is_relative ) ;\n if ( endoff ) * endoff = length ;\n }\n if ( err ) * err = saved_err ;\n if ( retval ) {\n retval -> secs = time_stamp . secs ;\n retval -> nsecs = time_stamp . nsecs ;\n }\n CHECK_FOR_NULL_TREE ( tree ) ;\n TRY_TO_FAKE_THIS_ITEM ( tree , hfinfo -> id , hfinfo ) ;\n new_fi = new_field_info ( tree , hfinfo , tvb , start , length ) ;\n proto_tree_set_time ( new_fi , & time_stamp ) ;\n if ( encoding & ENC_STRING ) {\n if ( saved_err == ERANGE ) expert_add_info ( NULL , tree , & ei_number_string_decoding_erange_error ) ;\n else if ( saved_err == EDOM ) expert_add_info ( NULL , tree , & ei_number_string_decoding_failed_error ) ;\n }\n else {\n FI_SET_FLAG ( new_fi , ( encoding & ENC_LITTLE_ENDIAN ) ? FI_LITTLE_ENDIAN : FI_BIG_ENDIAN ) ;\n }\n return proto_tree_add_node ( tree , new_fi ) ;\n }"}
{"idx": 9999, "target": 0, "func": "int tls1_enc ( SSL * s , SSL3_RECORD * recs , unsigned int n_recs , int send ) {\n EVP_CIPHER_CTX * ds ;\n size_t reclen [ SSL_MAX_PIPELINES ] ;\n unsigned char buf [ SSL_MAX_PIPELINES ] [ EVP_AEAD_TLS1_AAD_LEN ] ;\n int bs , i , j , k , pad = 0 , ret , mac_size = 0 ;\n const EVP_CIPHER * enc ;\n unsigned int ctr ;\n if ( send ) {\n if ( EVP_MD_CTX_md ( s -> write_hash ) ) {\n int n = EVP_MD_CTX_size ( s -> write_hash ) ;\n OPENSSL_assert ( n >= 0 ) ;\n }\n ds = s -> enc_write_ctx ;\n if ( s -> enc_write_ctx == NULL ) enc = NULL ;\n else {\n int ivlen ;\n enc = EVP_CIPHER_CTX_cipher ( s -> enc_write_ctx ) ;\n if ( SSL_USE_EXPLICIT_IV ( s ) && EVP_CIPHER_mode ( enc ) == EVP_CIPH_CBC_MODE ) ivlen = EVP_CIPHER_iv_length ( enc ) ;\n else ivlen = 0 ;\n if ( ivlen > 1 ) {\n for ( ctr = 0 ;\n ctr < n_recs ;\n ctr ++ ) {\n if ( recs [ ctr ] . data != recs [ ctr ] . input ) {\n SSLerr ( SSL_F_TLS1_ENC , ERR_R_INTERNAL_ERROR ) ;\n return - 1 ;\n }\n else if ( RAND_bytes ( recs [ ctr ] . input , ivlen ) <= 0 ) {\n SSLerr ( SSL_F_TLS1_ENC , ERR_R_INTERNAL_ERROR ) ;\n return - 1 ;\n }\n }\n }\n }\n }\n else {\n if ( EVP_MD_CTX_md ( s -> read_hash ) ) {\n int n = EVP_MD_CTX_size ( s -> read_hash ) ;\n OPENSSL_assert ( n >= 0 ) ;\n }\n ds = s -> enc_read_ctx ;\n if ( s -> enc_read_ctx == NULL ) enc = NULL ;\n else enc = EVP_CIPHER_CTX_cipher ( s -> enc_read_ctx ) ;\n }\n if ( ( s -> session == NULL ) || ( ds == NULL ) || ( enc == NULL ) ) {\n for ( ctr = 0 ;\n ctr < n_recs ;\n ctr ++ ) {\n memmove ( recs [ ctr ] . data , recs [ ctr ] . input , recs [ ctr ] . length ) ;\n recs [ ctr ] . input = recs [ ctr ] . data ;\n }\n ret = 1 ;\n }\n else {\n bs = EVP_CIPHER_block_size ( EVP_CIPHER_CTX_cipher ( ds ) ) ;\n if ( n_recs > 1 ) {\n if ( ! ( EVP_CIPHER_flags ( EVP_CIPHER_CTX_cipher ( ds ) ) & EVP_CIPH_FLAG_PIPELINE ) ) {\n SSLerr ( SSL_F_TLS1_ENC , SSL_R_PIPELINE_FAILURE ) ;\n return - 1 ;\n }\n }\n for ( ctr = 0 ;\n ctr < n_recs ;\n ctr ++ ) {\n reclen [ ctr ] = recs [ ctr ] . length ;\n if ( EVP_CIPHER_flags ( EVP_CIPHER_CTX_cipher ( ds ) ) & EVP_CIPH_FLAG_AEAD_CIPHER ) {\n unsigned char * seq ;\n seq = send ? RECORD_LAYER_get_write_sequence ( & s -> rlayer ) : RECORD_LAYER_get_read_sequence ( & s -> rlayer ) ;\n if ( SSL_IS_DTLS ( s ) ) {\n unsigned char dtlsseq [ 9 ] , * p = dtlsseq ;\n s2n ( send ? DTLS_RECORD_LAYER_get_w_epoch ( & s -> rlayer ) : DTLS_RECORD_LAYER_get_r_epoch ( & s -> rlayer ) , p ) ;\n memcpy ( p , & seq [ 2 ] , 6 ) ;\n memcpy ( buf [ ctr ] , dtlsseq , 8 ) ;\n }\n else {\n memcpy ( buf [ ctr ] , seq , 8 ) ;\n for ( i = 7 ;\n i >= 0 ;\n i -- ) {\n ++ seq [ i ] ;\n if ( seq [ i ] != 0 ) break ;\n }\n }\n buf [ ctr ] [ 8 ] = recs [ ctr ] . type ;\n buf [ ctr ] [ 9 ] = ( unsigned char ) ( s -> version >> 8 ) ;\n buf [ ctr ] [ 10 ] = ( unsigned char ) ( s -> version ) ;\n buf [ ctr ] [ 11 ] = recs [ ctr ] . length >> 8 ;\n buf [ ctr ] [ 12 ] = recs [ ctr ] . length & 0xff ;\n pad = EVP_CIPHER_CTX_ctrl ( ds , EVP_CTRL_AEAD_TLS1_AAD , EVP_AEAD_TLS1_AAD_LEN , buf [ ctr ] ) ;\n if ( pad <= 0 ) return - 1 ;\n if ( send ) {\n reclen [ ctr ] += pad ;\n recs [ ctr ] . length += pad ;\n }\n }\n else if ( ( bs != 1 ) && send ) {\n i = bs - ( ( int ) reclen [ ctr ] % bs ) ;\n j = i - 1 ;\n for ( k = ( int ) reclen [ ctr ] ;\n k < ( int ) ( reclen [ ctr ] + i ) ;\n k ++ ) recs [ ctr ] . input [ k ] = j ;\n reclen [ ctr ] += i ;\n recs [ ctr ] . length += i ;\n }\n if ( ! send ) {\n if ( reclen [ ctr ] == 0 || reclen [ ctr ] % bs != 0 ) return 0 ;\n }\n }\n if ( n_recs > 1 ) {\n unsigned char * data [ SSL_MAX_PIPELINES ] ;\n for ( ctr = 0 ;\n ctr < n_recs ;\n ctr ++ ) {\n data [ ctr ] = recs [ ctr ] . data ;\n }\n if ( EVP_CIPHER_CTX_ctrl ( ds , EVP_CTRL_SET_PIPELINE_OUTPUT_BUFS , n_recs , data ) <= 0 ) {\n SSLerr ( SSL_F_TLS1_ENC , SSL_R_PIPELINE_FAILURE ) ;\n }\n for ( ctr = 0 ;\n ctr < n_recs ;\n ctr ++ ) {\n data [ ctr ] = recs [ ctr ] . input ;\n }\n if ( EVP_CIPHER_CTX_ctrl ( ds , EVP_CTRL_SET_PIPELINE_INPUT_BUFS , n_recs , data ) <= 0 || EVP_CIPHER_CTX_ctrl ( ds , EVP_CTRL_SET_PIPELINE_INPUT_LENS , n_recs , reclen ) <= 0 ) {\n SSLerr ( SSL_F_TLS1_ENC , SSL_R_PIPELINE_FAILURE ) ;\n return - 1 ;\n }\n }\n i = EVP_Cipher ( ds , recs [ 0 ] . data , recs [ 0 ] . input , reclen [ 0 ] ) ;\n if ( ( EVP_CIPHER_flags ( EVP_CIPHER_CTX_cipher ( ds ) ) & EVP_CIPH_FLAG_CUSTOM_CIPHER ) ? ( i < 0 ) : ( i == 0 ) ) return - 1 ;\n if ( send == 0 ) {\n if ( EVP_CIPHER_mode ( enc ) == EVP_CIPH_GCM_MODE ) {\n for ( ctr = 0 ;\n ctr < n_recs ;\n ctr ++ ) {\n recs [ ctr ] . data += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n recs [ ctr ] . input += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n recs [ ctr ] . length -= EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n }\n }\n else if ( EVP_CIPHER_mode ( enc ) == EVP_CIPH_CCM_MODE ) {\n for ( ctr = 0 ;\n ctr < n_recs ;\n ctr ++ ) {\n recs [ ctr ] . data += EVP_CCM_TLS_EXPLICIT_IV_LEN ;\n recs [ ctr ] . input += EVP_CCM_TLS_EXPLICIT_IV_LEN ;\n recs [ ctr ] . length -= EVP_CCM_TLS_EXPLICIT_IV_LEN ;\n }\n }\n }\n ret = 1 ;\n if ( ! SSL_USE_ETM ( s ) && EVP_MD_CTX_md ( s -> read_hash ) != NULL ) mac_size = EVP_MD_CTX_size ( s -> read_hash ) ;\n if ( ( bs != 1 ) && ! send ) {\n int tmpret ;\n for ( ctr = 0 ;\n ctr < n_recs ;\n ctr ++ ) {\n tmpret = tls1_cbc_remove_padding ( s , & recs [ ctr ] , bs , mac_size ) ;\n if ( tmpret == 0 ) return 0 ;\n ret = constant_time_select_int ( constant_time_eq_int ( tmpret , 1 ) , ret , - 1 ) ;\n }\n }\n if ( pad && ! send ) {\n for ( ctr = 0 ;\n ctr < n_recs ;\n ctr ++ ) {\n recs [ ctr ] . length -= pad ;\n }\n }\n }\n return ret ;\n }"}
{"idx": 10000, "target": 0, "func": "void write_stats ( void ) {\n FILE * fp ;\n # ifdef DOSYNCTODR struct timeval tv ;\n # if ! defined ( VMS ) int prio_set ;\n # endif # ifdef HAVE_GETCLOCK struct timespec ts ;\n # endif int o_prio ;\n # if ! defined ( VMS ) errno = 0 ;\n prio_set = 0 ;\n o_prio = getpriority ( PRIO_PROCESS , 0 ) ;\n if ( ( errno == 0 ) && ( setpriority ( PRIO_PROCESS , 0 , - 20 ) == 0 ) ) prio_set = 1 ;\n # endif # ifdef HAVE_GETCLOCK ( void ) getclock ( TIMEOFDAY , & ts ) ;\n tv . tv_sec = ts . tv_sec ;\n tv . tv_usec = ts . tv_nsec / 1000 ;\n # else GETTIMEOFDAY ( & tv , ( struct timezone * ) NULL ) ;\n # endif if ( ntp_set_tod ( & tv , ( struct timezone * ) NULL ) != 0 ) msyslog ( LOG_ERR , \"can't sync battery time: %m\" ) ;\n # if ! defined ( VMS ) if ( prio_set ) setpriority ( PRIO_PROCESS , 0 , o_prio ) ;\n # endif # endif record_sys_stats ( ) ;\n if ( stats_drift_file != 0 ) {\n # ifdef DEBUG if ( debug ) printf ( \"write_stats: frequency %.6lf thresh %.6lf, freq %.6lf\\n\" , ( prev_drift_comp - drift_comp ) * 1e6 , wander_resid * 1e6 , drift_comp * 1e6 ) ;\n # endif if ( fabs ( prev_drift_comp - drift_comp ) < wander_resid ) {\n wander_resid *= 0.5 ;\n return ;\n }\n prev_drift_comp = drift_comp ;\n wander_resid = wander_threshold ;\n if ( ( fp = fopen ( stats_temp_file , \"w\" ) ) == NULL ) {\n msyslog ( LOG_ERR , \"frequency file %s: %m\" , stats_temp_file ) ;\n return ;\n }\n fprintf ( fp , \"%.3f\\n\" , drift_comp * 1e6 ) ;\n ( void ) fclose ( fp ) ;\n # ifdef SYS_WINNT if ( _unlink ( stats_drift_file ) ) msyslog ( LOG_WARNING , \"Unable to remove prior drift file %s, %m\" , stats_drift_file ) ;\n # endif # ifndef NO_RENAME if ( rename ( stats_temp_file , stats_drift_file ) ) msyslog ( LOG_WARNING , \"Unable to rename temp drift file %s to %s, %m\" , stats_temp_file , stats_drift_file ) ;\n # else if ( ( fp = fopen ( stats_drift_file , \"w\" ) ) == NULL ) {\n msyslog ( LOG_ERR , \"frequency file %s: %m\" , stats_drift_file ) ;\n return ;\n }\n # endif # if defined ( VMS ) {\n $DESCRIPTOR ( oldvers , \";\n-1\" ) ;\n struct dsc$descriptor driftdsc = {\n strlen ( stats_drift_file ) , 0 , 0 , stats_drift_file }\n ;\n while ( lib$delete_file ( & oldvers , & driftdsc ) & 1 ) ;\n }\n # endif }\n }"}
{"idx": 10001, "target": 0, "func": "static void debug_wait_for_kill ( const char * info ) {\n DBUG_ENTER ( \"debug_wait_for_kill\" ) ;\n const char * prev_info ;\n THD * thd ;\n thd = current_thd ;\n prev_info = thd_proc_info ( thd , info ) ;\n while ( ! thd -> killed ) my_sleep ( 1000 ) ;\n DBUG_PRINT ( \"info\" , ( \"Exit debug_wait_for_kill\" ) ) ;\n thd_proc_info ( thd , prev_info ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 10002, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( MediaStreamPermissionTest , DenyingCameraDoesNotCauseStickyDenyForMics ) {\n content : : WebContents * tab_contents = LoadTestPageInTab ( ) ;\n GetUserMediaWithSpecificConstraintsAndDeny ( tab_contents , kVideoOnlyCallConstraints ) ;\n EXPECT_TRUE ( GetUserMediaWithSpecificConstraintsAndAccept ( tab_contents , kAudioOnlyCallConstraints ) ) ;\n }"}
{"idx": 10003, "target": 0, "func": "krb5_error_code berval2tl_data ( struct berval * in , krb5_tl_data * * out ) {\n * out = ( krb5_tl_data * ) malloc ( sizeof ( krb5_tl_data ) ) ;\n if ( * out == NULL ) return ENOMEM ;\n ( * out ) -> tl_data_length = in -> bv_len - 2 ;\n ( * out ) -> tl_data_contents = ( krb5_octet * ) malloc ( ( * out ) -> tl_data_length * sizeof ( krb5_octet ) ) ;\n if ( ( * out ) -> tl_data_contents == NULL ) {\n free ( * out ) ;\n return ENOMEM ;\n }\n UNSTORE16_INT ( in -> bv_val , ( * out ) -> tl_data_type ) ;\n memcpy ( ( * out ) -> tl_data_contents , in -> bv_val + 2 , ( * out ) -> tl_data_length ) ;\n return 0 ;\n }"}
{"idx": 10004, "target": 0, "func": "char * get_namespace_name ( Oid nspid ) {\n HeapTuple tp ;\n tp = SearchSysCache1 ( NAMESPACEOID , ObjectIdGetDatum ( nspid ) ) ;\n if ( HeapTupleIsValid ( tp ) ) {\n Form_pg_namespace nsptup = ( Form_pg_namespace ) GETSTRUCT ( tp ) ;\n char * result ;\n result = pstrdup ( NameStr ( nsptup -> nspname ) ) ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }\n else return NULL ;\n }"}
{"idx": 10005, "target": 0, "func": "int vp8_get_reference ( VP8_COMP * cpi , enum vpx_ref_frame_type ref_frame_flag , YV12_BUFFER_CONFIG * sd ) {\n VP8_COMMON * cm = & cpi -> common ;\n int ref_fb_idx ;\n if ( ref_frame_flag == VP8_LAST_FRAME ) ref_fb_idx = cm -> lst_fb_idx ;\n else if ( ref_frame_flag == VP8_GOLD_FRAME ) ref_fb_idx = cm -> gld_fb_idx ;\n else if ( ref_frame_flag == VP8_ALTR_FRAME ) ref_fb_idx = cm -> alt_fb_idx ;\n else return - 1 ;\n vp8_yv12_copy_frame ( & cm -> yv12_fb [ ref_fb_idx ] , sd ) ;\n return 0 ;\n }"}
{"idx": 10006, "target": 0, "func": "static void finishup ( SplineFont * sf , struct alltabs * at ) {\n int strlen , shlen , glen , enclen , csetlen , cstrlen , prvlen ;\n int base , eotop , strhead ;\n int output_enc = ( at -> format == ff_cff && ! isStdEncoding ( sf , at -> map ) ) ;\n storesid ( at , NULL ) ;\n strlen = ftell ( at -> sidf ) + ( shlen = ftell ( at -> sidh ) ) ;\n glen = sizeof ( short ) ;\n enclen = ftell ( at -> encoding ) ;\n csetlen = ftell ( at -> charset ) ;\n cstrlen = ftell ( at -> charstrings ) ;\n prvlen = ftell ( at -> private ) ;\n base = ftell ( at -> cfff ) ;\n if ( base + 6 * 3 + strlen + glen + enclen + csetlen + cstrlen + prvlen > 32767 ) {\n at -> cfflongoffset = true ;\n base += 5 * 5 + 4 ;\n }\n else base += 5 * 3 + 4 ;\n strhead = 2 + ( at -> sidcnt > 1 ) ;\n base += strhead ;\n dumpsizedint ( at -> cfff , at -> cfflongoffset , base + strlen + glen , 15 ) ;\n if ( output_enc ) dumpsizedint ( at -> cfff , at -> cfflongoffset , base + strlen + glen + csetlen , 16 ) ;\n else {\n dumpsizedint ( at -> cfff , at -> cfflongoffset , 0 , 16 ) ;\n enclen = 0 ;\n }\n dumpsizedint ( at -> cfff , at -> cfflongoffset , base + strlen + glen + csetlen + enclen , 17 ) ;\n dumpsizedint ( at -> cfff , at -> cfflongoffset , at -> privatelen , - 1 ) ;\n dumpsizedint ( at -> cfff , at -> cfflongoffset , base + strlen + glen + csetlen + enclen + cstrlen , 18 ) ;\n eotop = base - strhead - at -> lenpos - 1 ;\n if ( at -> cfflongoffset ) {\n fseek ( at -> cfff , 3 , SEEK_SET ) ;\n putc ( 4 , at -> cfff ) ;\n }\n fseek ( at -> cfff , at -> lenpos , SEEK_SET ) ;\n putshort ( at -> cfff , eotop ) ;\n fseek ( at -> cfff , 0 , SEEK_END ) ;\n putshort ( at -> cfff , at -> sidcnt - 1 ) ;\n if ( at -> sidcnt != 1 ) {\n putc ( at -> sidlongoffset ? 4 : 2 , at -> cfff ) ;\n if ( ! ttfcopyfile ( at -> cfff , at -> sidh , base , \"CFF-StringBase\" ) ) at -> error = true ;\n if ( ! ttfcopyfile ( at -> cfff , at -> sidf , base + shlen , \"CFF-StringData\" ) ) at -> error = true ;\n }\n putshort ( at -> cfff , 0 ) ;\n if ( ! ttfcopyfile ( at -> cfff , at -> charset , base + strlen + glen , \"CFF-Charset\" ) ) at -> error = true ;\n if ( ! ttfcopyfile ( at -> cfff , at -> encoding , base + strlen + glen + csetlen , \"CFF-Encoding\" ) ) at -> error = true ;\n if ( ! ttfcopyfile ( at -> cfff , at -> charstrings , base + strlen + glen + csetlen + enclen , \"CFF-CharStrings\" ) ) at -> error = true ;\n if ( ! ttfcopyfile ( at -> cfff , at -> private , base + strlen + glen + csetlen + enclen + cstrlen , \"CFF-Private\" ) ) at -> error = true ;\n }"}
{"idx": 10007, "target": 0, "func": "static void pk_transaction_what_provides ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) {\n gboolean ret ;\n PkBitfield filter ;\n g_autofree gchar * * values = NULL ;\n g_autoptr ( GError ) error = NULL ;\n g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;\n g_return_if_fail ( transaction -> priv -> tid != NULL ) ;\n g_variant_get ( params , \"(t^a&s)\" , & filter , & values ) ;\n g_debug ( \"WhatProvides method called: %s\" , values [ 0 ] ) ;\n if ( ! pk_backend_is_implemented ( transaction -> priv -> backend , PK_ROLE_ENUM_WHAT_PROVIDES ) ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NOT_SUPPORTED , \"WhatProvides not supported by backend\" ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n ret = pk_transaction_search_check ( values , & error ) ;\n if ( ! ret ) {\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n transaction -> priv -> cached_filters = filter ;\n transaction -> priv -> cached_values = g_strdupv ( values ) ;\n pk_transaction_set_role ( transaction , PK_ROLE_ENUM_WHAT_PROVIDES ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_READY ) ;\n out : pk_transaction_dbus_return ( context , error ) ;\n }"}
{"idx": 10008, "target": 0, "func": "static void destroy_filegen_fifo ( filegen_fifo * fifo ) {\n filegen_node * fg ;\n if ( fifo != NULL ) {\n do {\n UNLINK_FIFO ( fg , * fifo , link ) ;\n if ( fg != NULL ) {\n destroy_attr_val_fifo ( fg -> options ) ;\n free ( fg ) ;\n }\n }\n while ( fg != NULL ) ;\n free ( fifo ) ;\n }\n }"}
{"idx": 10009, "target": 0, "func": "static int get_quant ( AVCodecContext * avctx , NuvContext * c , const uint8_t * buf , int size ) {\n int i ;\n if ( size < 2 * 64 * 4 ) {\n av_log ( avctx , AV_LOG_ERROR , \"insufficient rtjpeg quant data\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( i = 0 ;\n i < 64 ;\n i ++ , buf += 4 ) c -> lq [ i ] = AV_RL32 ( buf ) ;\n for ( i = 0 ;\n i < 64 ;\n i ++ , buf += 4 ) c -> cq [ i ] = AV_RL32 ( buf ) ;\n return 0 ;\n }"}
{"idx": 10010, "target": 0, "func": "static tmsize_t _tiffWriteProc ( thandle_t fd , void * buf , tmsize_t size ) {\n fd_as_handle_union_t fdh ;\n const size_t bytes_total = ( size_t ) size ;\n size_t bytes_written ;\n tmsize_t count = - 1 ;\n if ( ( tmsize_t ) bytes_total != size ) {\n errno = EINVAL ;\n return ( tmsize_t ) - 1 ;\n }\n fdh . h = fd ;\n for ( bytes_written = 0 ;\n bytes_written < bytes_total ;\n bytes_written += count ) {\n const char * buf_offset = ( char * ) buf + bytes_written ;\n size_t io_size = bytes_total - bytes_written ;\n if ( io_size > TIFF_IO_MAX ) io_size = TIFF_IO_MAX ;\n count = write ( fdh . fd , buf_offset , ( TIFFIOSize_t ) io_size ) ;\n if ( count <= 0 ) break ;\n }\n if ( count < 0 ) return ( tmsize_t ) - 1 ;\n return ( tmsize_t ) bytes_written ;\n }"}
{"idx": 10011, "target": 0, "func": "static void close_output_file ( struct stream_state * stream , unsigned int fourcc ) {\n const struct vpx_codec_enc_cfg * const cfg = & stream -> config . cfg ;\n if ( cfg -> g_pass == VPX_RC_FIRST_PASS ) return ;\n # if CONFIG_WEBM_IO if ( stream -> config . write_webm ) {\n write_webm_file_footer ( & stream -> ebml ) ;\n }\n # endif if ( ! stream -> config . write_webm ) {\n if ( ! fseek ( stream -> file , 0 , SEEK_SET ) ) ivf_write_file_header ( stream -> file , & stream -> config . cfg , fourcc , stream -> frames_out ) ;\n }\n fclose ( stream -> file ) ;\n }"}
{"idx": 10012, "target": 0, "func": "TEST_F ( TemplateURLParserTest , FailOnBogusURL ) {\n ASSERT_NO_FATAL_FAILURE ( ParseFile ( \"bogus.xml\" , nullptr ) ) ;\n EXPECT_FALSE ( template_url_ ) ;\n }"}
{"idx": 10013, "target": 0, "func": "static void arith2_init ( ArithCoder * c , GetByteContext * gB ) {\n c -> low = 0 ;\n c -> high = 0xFFFFFF ;\n c -> value = bytestream2_get_be24 ( gB ) ;\n c -> gbc . gB = gB ;\n c -> get_model_sym = arith2_get_model_sym ;\n c -> get_number = arith2_get_number ;\n }"}
{"idx": 10014, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FramebustBlockBrowserTest , FramebustAllowedByGlobalSetting ) {\n HostContentSettingsMap * settings_map = HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) ;\n settings_map -> SetDefaultContentSetting ( ContentSettingsType : : CONTENT_SETTINGS_TYPE_POPUPS , CONTENT_SETTING_ALLOW ) ;\n CreateAndSetBrowser ( ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/iframe.html\" ) ) ;\n NavigateIframeToUrlWithoutGesture ( GetWebContents ( ) , \"test\" , embedded_test_server ( ) -> GetURL ( \"a.com\" , \"/title1.html\" ) ) ;\n content : : RenderFrameHost * child = content : : ChildFrameAt ( GetWebContents ( ) -> GetMainFrame ( ) , 0 ) ;\n ASSERT_TRUE ( child ) ;\n GURL redirect_url = embedded_test_server ( ) -> GetURL ( \"b.com\" , \"/title1.html\" ) ;\n content : : TestNavigationObserver observer ( GetWebContents ( ) ) ;\n child -> ExecuteJavaScriptForTests ( base : : ASCIIToUTF16 ( base : : StringPrintf ( \"window.top.location = '%s';\n\" , redirect_url . spec ( ) . c_str ( ) ) ) ) ;\n observer . Wait ( ) ;\n EXPECT_TRUE ( GetFramebustTabHelper ( ) -> blocked_urls ( ) . empty ( ) ) ;\n }"}
{"idx": 10015, "target": 0, "func": "static gboolean is_mpa_rep ( tvbuff_t * tvb , packet_info * pinfo ) {\n conversation_t * conversation = NULL ;\n mpa_state_t * state = NULL ;\n guint8 mcrres ;\n if ( tvb_get_ntoh64 ( tvb , 0 ) != MPA_REQ_REP_FRAME || tvb_get_ntoh64 ( tvb , 8 ) != MPA_ID_REP_FRAME ) {\n return FALSE ;\n }\n conversation = find_conversation ( pinfo -> num , & pinfo -> src , & pinfo -> dst , pinfo -> ptype , pinfo -> srcport , pinfo -> destport , 0 ) ;\n if ( ! conversation ) {\n return FALSE ;\n }\n state = get_mpa_state ( conversation ) ;\n if ( ! state ) {\n return FALSE ;\n }\n if ( ! state -> full_operation ) {\n mcrres = tvb_get_guint8 ( tvb , 16 ) ;\n state -> res_exp_m_ini = mcrres & MPA_MARKER_FLAG ;\n state -> crc = state -> crc | ( mcrres & MPA_CRC_FLAG ) ;\n state -> rep_frame_num = pinfo -> num ;\n if ( ! ( mcrres & MPA_REJECT_FLAG ) ) state -> full_operation = TRUE ;\n else expert_add_info ( pinfo , NULL , & ei_mpa_reject_bit_responder ) ;\n }\n return TRUE ;\n }"}
{"idx": 10016, "target": 0, "func": "static int codebook_sanity_check_for_rate_quarter ( const uint8_t * cbgain ) {\n int i , diff , prev_diff = 0 ;\n for ( i = 1 ;\n i < 5 ;\n i ++ ) {\n diff = cbgain [ i ] - cbgain [ i - 1 ] ;\n if ( FFABS ( diff ) > 10 ) return - 1 ;\n else if ( FFABS ( diff - prev_diff ) > 12 ) return - 1 ;\n prev_diff = diff ;\n }\n return 0 ;\n }"}
{"idx": 10017, "target": 0, "func": "static int tipc_nl_compat_recv ( struct sk_buff * skb , struct genl_info * info ) {\n int err ;\n int len ;\n struct tipc_nl_compat_msg msg ;\n struct nlmsghdr * req_nlh ;\n struct nlmsghdr * rep_nlh ;\n struct tipc_genlmsghdr * req_userhdr = info -> userhdr ;\n memset ( & msg , 0 , sizeof ( msg ) ) ;\n req_nlh = ( struct nlmsghdr * ) skb -> data ;\n msg . req = nlmsg_data ( req_nlh ) + GENL_HDRLEN + TIPC_GENL_HDRLEN ;\n msg . cmd = req_userhdr -> cmd ;\n msg . net = genl_info_net ( info ) ;\n msg . dst_sk = skb -> sk ;\n if ( ( msg . cmd & 0xC000 ) && ( ! netlink_net_capable ( skb , CAP_NET_ADMIN ) ) ) {\n msg . rep = tipc_get_err_tlv ( TIPC_CFG_NOT_NET_ADMIN ) ;\n err = - EACCES ;\n goto send ;\n }\n len = nlmsg_attrlen ( req_nlh , GENL_HDRLEN + TIPC_GENL_HDRLEN ) ;\n if ( len && ! TLV_OK ( msg . req , len ) ) {\n msg . rep = tipc_get_err_tlv ( TIPC_CFG_NOT_SUPPORTED ) ;\n err = - EOPNOTSUPP ;\n goto send ;\n }\n err = tipc_nl_compat_handle ( & msg ) ;\n if ( ( err == - EOPNOTSUPP ) || ( err == - EPERM ) ) msg . rep = tipc_get_err_tlv ( TIPC_CFG_NOT_SUPPORTED ) ;\n else if ( err == - EINVAL ) msg . rep = tipc_get_err_tlv ( TIPC_CFG_TLV_ERROR ) ;\n send : if ( ! msg . rep ) return err ;\n len = nlmsg_total_size ( GENL_HDRLEN + TIPC_GENL_HDRLEN ) ;\n skb_push ( msg . rep , len ) ;\n rep_nlh = nlmsg_hdr ( msg . rep ) ;\n memcpy ( rep_nlh , info -> nlhdr , len ) ;\n rep_nlh -> nlmsg_len = msg . rep -> len ;\n genlmsg_unicast ( msg . net , msg . rep , NETLINK_CB ( skb ) . portid ) ;\n return err ;\n }"}
{"idx": 10018, "target": 0, "func": "void xmlInitGlobals ( void ) {\n if ( xmlThrDefMutex == NULL ) xmlThrDefMutex = xmlNewMutex ( ) ;\n }"}
{"idx": 10019, "target": 0, "func": "hb_face_t * hb_face_reference ( hb_face_t * face ) {\n return hb_object_reference ( face ) ;\n }"}
{"idx": 10020, "target": 1, "func": "static UBool action_setInverse ( UBiDiTransform * pTransform , UErrorCode * pErrorCode ) {\n ubidi_setInverse ( pTransform -> pBidi , TRUE ) ;\n ubidi_setReorderingMode ( pTransform -> pBidi , UBIDI_REORDER_INVERSE_LIKE_DIRECT ) ;\n return FALSE ;\n }"}
{"idx": 10021, "target": 0, "func": "static void update_mbgraph_frame_stats ( VP9_COMP * cpi , MBGRAPH_FRAME_STATS * stats , YV12_BUFFER_CONFIG * buf , YV12_BUFFER_CONFIG * golden_ref , YV12_BUFFER_CONFIG * alt_ref ) {\n MACROBLOCK * const x = & cpi -> mb ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n VP9_COMMON * const cm = & cpi -> common ;\n int mb_col , mb_row , offset = 0 ;\n int mb_y_offset = 0 , arf_y_offset = 0 , gld_y_offset = 0 ;\n MV gld_top_mv = {\n 0 , 0 }\n ;\n MODE_INFO mi_local ;\n vp9_zero ( mi_local ) ;\n x -> mv_row_min = - BORDER_MV_PIXELS_B16 ;\n x -> mv_row_max = ( cm -> mb_rows - 1 ) * 8 + BORDER_MV_PIXELS_B16 ;\n xd -> up_available = 0 ;\n xd -> plane [ 0 ] . dst . stride = buf -> y_stride ;\n xd -> plane [ 0 ] . pre [ 0 ] . stride = buf -> y_stride ;\n xd -> plane [ 1 ] . dst . stride = buf -> uv_stride ;\n xd -> mi [ 0 ] . src_mi = & mi_local ;\n mi_local . mbmi . sb_type = BLOCK_16X16 ;\n mi_local . mbmi . ref_frame [ 0 ] = LAST_FRAME ;\n mi_local . mbmi . ref_frame [ 1 ] = NONE ;\n for ( mb_row = 0 ;\n mb_row < cm -> mb_rows ;\n mb_row ++ ) {\n MV gld_left_mv = gld_top_mv ;\n int mb_y_in_offset = mb_y_offset ;\n int arf_y_in_offset = arf_y_offset ;\n int gld_y_in_offset = gld_y_offset ;\n x -> mv_col_min = - BORDER_MV_PIXELS_B16 ;\n x -> mv_col_max = ( cm -> mb_cols - 1 ) * 8 + BORDER_MV_PIXELS_B16 ;\n xd -> left_available = 0 ;\n for ( mb_col = 0 ;\n mb_col < cm -> mb_cols ;\n mb_col ++ ) {\n MBGRAPH_MB_STATS * mb_stats = & stats -> mb_stats [ offset + mb_col ] ;\n update_mbgraph_mb_stats ( cpi , mb_stats , buf , mb_y_in_offset , golden_ref , & gld_left_mv , alt_ref , mb_row , mb_col ) ;\n gld_left_mv = mb_stats -> ref [ GOLDEN_FRAME ] . m . mv . as_mv ;\n if ( mb_col == 0 ) {\n gld_top_mv = gld_left_mv ;\n }\n xd -> left_available = 1 ;\n mb_y_in_offset += 16 ;\n gld_y_in_offset += 16 ;\n arf_y_in_offset += 16 ;\n x -> mv_col_min -= 16 ;\n x -> mv_col_max -= 16 ;\n }\n xd -> up_available = 1 ;\n mb_y_offset += buf -> y_stride * 16 ;\n gld_y_offset += golden_ref -> y_stride * 16 ;\n if ( alt_ref ) arf_y_offset += alt_ref -> y_stride * 16 ;\n x -> mv_row_min -= 16 ;\n x -> mv_row_max -= 16 ;\n offset += cm -> mb_cols ;\n }\n }"}
{"idx": 10022, "target": 0, "func": "void proto_register_zbee_zcl_identify ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_zbee_zcl_identify_attr_id , {\n \"Attribute\" , \"zbee_zcl_general.identify.attr_id\" , FT_UINT16 , BASE_HEX , VALS ( zbee_zcl_identify_attr_names ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_identify_identify_time , {\n \"Identify Time\" , \"zbee_zcl_general.identify.attr.identify_time\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_zcl_time_in_seconds ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_identify_identify_timeout , {\n \"Identify Timeout\" , \"zbee_zcl_general.identify.identify_timeout\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_zcl_time_in_seconds ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_identify_srv_rx_cmd_id , {\n \"Command\" , \"zbee_zcl_general.identify.cmd.srv_rx.id\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_identify_srv_rx_cmd_names ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_identify_srv_tx_cmd_id , {\n \"Command\" , \"zbee_zcl_general.identify.cmd.srv_tx.id\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_identify_srv_tx_cmd_names ) , 0x00 , NULL , HFILL }\n }\n }\n ;\n static gint * ett [ ZBEE_ZCL_IDENTIFY_NUM_ETT ] ;\n ett [ 0 ] = & ett_zbee_zcl_identify ;\n proto_zbee_zcl_identify = proto_register_protocol ( \"ZigBee ZCL Identify\" , \"ZCL Identify\" , ZBEE_PROTOABBREV_ZCL_IDENTIFY ) ;\n proto_register_field_array ( proto_zbee_zcl_identify , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n register_dissector ( ZBEE_PROTOABBREV_ZCL_IDENTIFY , dissect_zbee_zcl_identify , proto_zbee_zcl_identify ) ;\n }"}
{"idx": 10023, "target": 0, "func": "static void InterpretPS ( FILE * ps , char * psstr , EntityChar * ec , RetStack * rs ) {\n IO wrapper ;\n memset ( & wrapper , 0 , sizeof ( wrapper ) ) ;\n wrapper . advance_width = UNDEFINED_WIDTH ;\n pushio ( & wrapper , ps , psstr , 0 ) ;\n _InterpretPS ( & wrapper , ec , rs ) ;\n }"}
{"idx": 10024, "target": 0, "func": "void mainwindow_change_active ( MAIN_WINDOW_REC * mainwin , WINDOW_REC * skip_window ) {\n WINDOW_REC * window , * other ;\n GSList * tmp ;\n mainwin -> active = NULL ;\n if ( mainwin -> sticky_windows ) {\n tmp = get_sticky_windows_sorted ( mainwin ) ;\n window = tmp -> data ;\n if ( window == skip_window ) {\n window = tmp -> next == NULL ? NULL : tmp -> next -> data ;\n }\n g_slist_free ( tmp ) ;\n if ( window != NULL ) {\n window_set_active ( window ) ;\n return ;\n }\n }\n other = NULL ;\n for ( tmp = windows ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n WINDOW_REC * rec = tmp -> data ;\n if ( rec != skip_window ) {\n other = rec ;\n break ;\n }\n }\n window_set_active ( other ) ;\n if ( mainwindows -> next != NULL ) mainwindow_destroy ( mainwin ) ;\n }"}
{"idx": 10025, "target": 0, "func": "static void put_chunk ( AVFormatContext * s , int type , int payload_length , int flags ) {\n ASFContext * asf = s -> priv_data ;\n AVIOContext * pb = s -> pb ;\n int length ;\n length = payload_length + 8 ;\n avio_wl16 ( pb , type ) ;\n avio_wl16 ( pb , length ) ;\n avio_wl32 ( pb , asf -> seqno ) ;\n avio_wl16 ( pb , flags ) ;\n avio_wl16 ( pb , length ) ;\n asf -> seqno ++ ;\n }"}
{"idx": 10026, "target": 0, "func": "PHP_FUNCTION ( locale_get_all_variants ) {\n const char * loc_name = NULL ;\n int loc_name_len = 0 ;\n int result = 0 ;\n char * token = NULL ;\n char * variant = NULL ;\n char * saved_ptr = NULL ;\n intl_error_reset ( NULL TSRMLS_CC ) ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"s\" , & loc_name , & loc_name_len ) == FAILURE ) {\n intl_error_set ( NULL , U_ILLEGAL_ARGUMENT_ERROR , \"locale_parse: unable to parse input params\" , 0 TSRMLS_CC ) ;\n RETURN_FALSE ;\n }\n if ( loc_name_len == 0 ) {\n loc_name = intl_locale_get_default ( TSRMLS_C ) ;\n }\n array_init ( return_value ) ;\n if ( findOffset ( LOC_GRANDFATHERED , loc_name ) >= 0 ) {\n }\n else {\n variant = get_icu_value_internal ( loc_name , LOC_VARIANT_TAG , & result , 0 ) ;\n if ( result > 0 && variant ) {\n token = php_strtok_r ( variant , DELIMITER , & saved_ptr ) ;\n add_next_index_stringl ( return_value , token , strlen ( token ) , TRUE ) ;\n while ( ( token = php_strtok_r ( NULL , DELIMITER , & saved_ptr ) ) && ( strlen ( token ) > 1 ) ) {\n add_next_index_stringl ( return_value , token , strlen ( token ) , TRUE ) ;\n }\n }\n if ( variant ) {\n efree ( variant ) ;\n }\n }\n }"}
{"idx": 10027, "target": 0, "func": "SPL_METHOD ( SplDoublyLinkedList , prev ) {\n spl_dllist_object * intern = ( spl_dllist_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n spl_dllist_it_helper_move_forward ( & intern -> traverse_pointer , & intern -> traverse_position , intern -> llist , intern -> flags ^ SPL_DLLIST_IT_LIFO TSRMLS_CC ) ;\n }"}
{"idx": 10028, "target": 0, "func": "static char * bittok2str_internal ( register const struct tok * lp , register const char * fmt , register u_int v , const char * sep ) {\n static char buf [ 256 ] ;\n int buflen = 0 ;\n register u_int rotbit ;\n register u_int tokval ;\n const char * sepstr = \"\" ;\n while ( lp != NULL && lp -> s != NULL ) {\n tokval = lp -> v ;\n rotbit = 1 ;\n while ( rotbit != 0 ) {\n if ( tokval == ( v & rotbit ) ) {\n buflen += snprintf ( buf + buflen , sizeof ( buf ) - buflen , \"%s%s\" , sepstr , lp -> s ) ;\n sepstr = sep ;\n break ;\n }\n rotbit = rotbit << 1 ;\n }\n lp ++ ;\n }\n if ( buflen == 0 ) ( void ) snprintf ( buf , sizeof ( buf ) , fmt == NULL ? \"#%08x\" : fmt , v ) ;\n return ( buf ) ;\n }"}
{"idx": 10029, "target": 0, "func": "void vp9_save_layer_context ( VP9_COMP * const cpi ) {\n const VP9EncoderConfig * const oxcf = & cpi -> oxcf ;\n LAYER_CONTEXT * const lc = get_layer_context ( cpi ) ;\n lc -> rc = cpi -> rc ;\n lc -> twopass = cpi -> twopass ;\n lc -> target_bandwidth = ( int ) oxcf -> target_bandwidth ;\n lc -> alt_ref_source = cpi -> alt_ref_source ;\n }"}
{"idx": 10030, "target": 0, "func": "static void pdf_process_EMC ( fz_context * ctx , pdf_processor * proc , pdf_csi * csi ) {\n if ( proc -> op_EMC ) proc -> op_EMC ( ctx , proc ) ;\n if ( proc -> hidden > 0 ) -- proc -> hidden ;\n }"}
{"idx": 10031, "target": 0, "func": "GAppInfo * nautilus_mime_get_default_application_for_file ( NautilusFile * file ) {\n GAppInfo * app ;\n char * mime_type ;\n char * uri_scheme ;\n if ( ! nautilus_mime_actions_check_if_required_attributes_ready ( file ) ) {\n return NULL ;\n }\n mime_type = nautilus_file_get_mime_type ( file ) ;\n app = g_app_info_get_default_for_type ( mime_type , ! nautilus_file_is_local_or_fuse ( file ) ) ;\n g_free ( mime_type ) ;\n if ( app == NULL ) {\n uri_scheme = nautilus_file_get_uri_scheme ( file ) ;\n if ( uri_scheme != NULL ) {\n app = g_app_info_get_default_for_uri_scheme ( uri_scheme ) ;\n g_free ( uri_scheme ) ;\n }\n }\n return app ;\n }"}
{"idx": 10032, "target": 0, "func": "REGRESSION_TEST ( SDK_API_TSThread ) ( RegressionTest * test , int , int * pstatus ) {\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n SDK_Thread_test = test ;\n SDK_Thread_pstatus = pstatus ;\n TSThread curr_thread = nullptr ;\n pthread_t curr_tid ;\n curr_tid = pthread_self ( ) ;\n curr_thread = TSThreadSelf ( ) ;\n if ( curr_thread == nullptr ) {\n SDK_RPRINT ( test , \"TSThreadSelf\" , \"TestCase1\" , TC_FAIL , \"can't get the current thread\" ) ;\n thread_err_count ++ ;\n }\n else {\n SDK_RPRINT ( test , \"TSThreadSelf\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n TSThread created_thread = TSThreadCreate ( thread_create_handler , ( void * ) ( intptr_t ) curr_tid ) ;\n if ( created_thread == nullptr ) {\n thread_err_count ++ ;\n SDK_RPRINT ( test , \"TSThreadCreate\" , \"TestCase1\" , TC_FAIL , \"can't create thread\" ) ;\n }\n else {\n SDK_RPRINT ( test , \"TSThreadCreate\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n }"}
{"idx": 10033, "target": 0, "func": "static void init_sql_statement_names ( ) {\n char * first_com = ( char * ) offsetof ( STATUS_VAR , com_stat [ 0 ] ) ;\n char * last_com = ( char * ) offsetof ( STATUS_VAR , com_stat [ ( uint ) SQLCOM_END ] ) ;\n int record_size = ( char * ) offsetof ( STATUS_VAR , com_stat [ 1 ] ) - ( char * ) offsetof ( STATUS_VAR , com_stat [ 0 ] ) ;\n char * ptr ;\n uint i ;\n uint com_index ;\n for ( i = 0 ;\n i < ( ( uint ) SQLCOM_END + 1 ) ;\n i ++ ) sql_statement_names [ i ] = empty_lex_str ;\n SHOW_VAR * var = & com_status_vars [ 0 ] ;\n while ( var -> name != NULL ) {\n ptr = var -> value ;\n if ( ( first_com <= ptr ) && ( ptr <= last_com ) ) {\n com_index = ( ( int ) ( ptr - first_com ) ) / record_size ;\n DBUG_ASSERT ( com_index < ( uint ) SQLCOM_END ) ;\n sql_statement_names [ com_index ] . str = const_cast < char * > ( var -> name ) ;\n sql_statement_names [ com_index ] . length = strlen ( var -> name ) ;\n }\n var ++ ;\n }\n DBUG_ASSERT ( strcmp ( sql_statement_names [ ( uint ) SQLCOM_SELECT ] . str , \"select\" ) == 0 ) ;\n DBUG_ASSERT ( strcmp ( sql_statement_names [ ( uint ) SQLCOM_SIGNAL ] . str , \"signal\" ) == 0 ) ;\n sql_statement_names [ ( uint ) SQLCOM_END ] . str = const_cast < char * > ( \"error\" ) ;\n }"}
{"idx": 10034, "target": 0, "func": "static void parse_keyUsage ( chunk_t blob , private_x509_cert_t * this ) {\n enum {\n KU_DIGITAL_SIGNATURE = 0 , KU_NON_REPUDIATION = 1 , KU_KEY_ENCIPHERMENT = 2 , KU_DATA_ENCIPHERMENT = 3 , KU_KEY_AGREEMENT = 4 , KU_KEY_CERT_SIGN = 5 , KU_CRL_SIGN = 6 , KU_ENCIPHER_ONLY = 7 , KU_DECIPHER_ONLY = 8 , }\n ;\n if ( asn1_unwrap ( & blob , & blob ) == ASN1_BIT_STRING && blob . len ) {\n int bit , byte , unused = blob . ptr [ 0 ] ;\n blob = chunk_skip ( blob , 1 ) ;\n for ( byte = 0 ;\n byte < blob . len ;\n byte ++ ) {\n for ( bit = 0 ;\n bit < 8 ;\n bit ++ ) {\n if ( byte == blob . len - 1 && bit > ( 7 - unused ) ) {\n break ;\n }\n if ( blob . ptr [ byte ] & 1 << ( 7 - bit ) ) {\n switch ( byte * 8 + bit ) {\n case KU_CRL_SIGN : this -> flags |= X509_CRL_SIGN ;\n break ;\n case KU_KEY_CERT_SIGN : case KU_DIGITAL_SIGNATURE : case KU_NON_REPUDIATION : case KU_KEY_ENCIPHERMENT : case KU_DATA_ENCIPHERMENT : case KU_KEY_AGREEMENT : case KU_ENCIPHER_ONLY : case KU_DECIPHER_ONLY : break ;\n }\n }\n }\n }\n }\n }"}
{"idx": 10035, "target": 0, "func": "static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 10036, "target": 0, "func": "static void purple_get_info ( struct im_connection * ic , char * who ) {\n struct purple_data * pd = ic -> proto_data ;\n serv_get_info ( purple_account_get_connection ( pd -> account ) , who ) ;\n }"}
{"idx": 10037, "target": 0, "func": "static int setup_test ( const char * name ) {\n fprintf ( stdout , \"%s\" , name ) ;\n if ( evutil_socketpair ( AF_UNIX , SOCK_STREAM , 0 , pair ) == - 1 ) {\n fprintf ( stderr , \"%s: socketpair\\n\" , __func__ ) ;\n exit ( 1 ) ;\n }\n # ifdef HAVE_FCNTL if ( fcntl ( pair [ 0 ] , F_SETFL , O_NONBLOCK ) == - 1 ) fprintf ( stderr , \"fcntl(O_NONBLOCK)\" ) ;\n if ( fcntl ( pair [ 1 ] , F_SETFL , O_NONBLOCK ) == - 1 ) fprintf ( stderr , \"fcntl(O_NONBLOCK)\" ) ;\n # endif test_ok = 0 ;\n called = 0 ;\n return ( 0 ) ;\n }"}
{"idx": 10038, "target": 0, "func": "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_ ) {\n # line 388 \"./asn1/h225/h225.cnf\" h225_packet_info * h225_pi ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_Status_UUIE , Status_UUIE_sequence ) ;\n # line 392 \"./asn1/h225/h225.cnf\" h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> cs_type = H225_STATUS ;\n g_snprintf ( h225_pi -> frame_label , 50 , \"%s\" , val_to_str ( h225_pi -> cs_type , T_h323_message_body_vals , \"<unknown>\" ) ) ;\n }\n return offset ;\n }"}
{"idx": 10039, "target": 0, "func": "TSReturnCode TSHttpTxnClientPacketTosSet ( TSHttpTxn txnp , int tos ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n if ( nullptr == sm -> ua_session ) {\n return TS_ERROR ;\n }\n NetVConnection * vc = sm -> ua_session -> get_netvc ( ) ;\n if ( nullptr == vc ) {\n return TS_ERROR ;\n }\n vc -> options . packet_tos = ( uint32_t ) tos ;\n vc -> apply_options ( ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 10040, "target": 0, "func": "static PyObject * string_title ( PyStringObject * self ) {\n char * s = PyString_AS_STRING ( self ) , * s_new ;\n Py_ssize_t i , n = PyString_GET_SIZE ( self ) ;\n int previous_is_cased = 0 ;\n PyObject * newobj ;\n newobj = PyString_FromStringAndSize ( NULL , n ) ;\n if ( newobj == NULL ) return NULL ;\n s_new = PyString_AsString ( newobj ) ;\n for ( i = 0 ;\n i < n ;\n i ++ ) {\n int c = Py_CHARMASK ( * s ++ ) ;\n if ( islower ( c ) ) {\n if ( ! previous_is_cased ) c = toupper ( c ) ;\n previous_is_cased = 1 ;\n }\n else if ( isupper ( c ) ) {\n if ( previous_is_cased ) c = tolower ( c ) ;\n previous_is_cased = 1 ;\n }\n else previous_is_cased = 0 ;\n * s_new ++ = c ;\n }\n return newobj ;\n }"}
{"idx": 10041, "target": 0, "func": "static void ulti_pattern ( AVFrame * frame , int x , int y , int f0 , int f1 , int Y0 , int Y1 , int chroma ) {\n uint8_t Luma [ 16 ] ;\n int mask , i ;\n for ( mask = 0x80 , i = 0 ;\n mask ;\n mask >>= 1 , i ++ ) {\n if ( f0 & mask ) Luma [ i ] = Y1 ;\n else Luma [ i ] = Y0 ;\n }\n for ( mask = 0x80 , i = 8 ;\n mask ;\n mask >>= 1 , i ++ ) {\n if ( f1 & mask ) Luma [ i ] = Y1 ;\n else Luma [ i ] = Y0 ;\n }\n ulti_convert_yuv ( frame , x , y , Luma , chroma ) ;\n }"}
{"idx": 10042, "target": 1, "func": "static int kwajd_read_headers ( struct mspack_system * sys , struct mspack_file * fh , struct mskwajd_header * hdr ) {\n unsigned char buf [ 16 ] ;\n int i ;\n if ( sys -> read ( fh , & buf [ 0 ] , kwajh_SIZEOF ) != kwajh_SIZEOF ) {\n return MSPACK_ERR_READ ;\n }\n if ( ( ( unsigned int ) EndGetI32 ( & buf [ kwajh_Signature1 ] ) != 0x4A41574B ) || ( ( unsigned int ) EndGetI32 ( & buf [ kwajh_Signature2 ] ) != 0xD127F088 ) ) {\n return MSPACK_ERR_SIGNATURE ;\n }\n hdr -> comp_type = EndGetI16 ( & buf [ kwajh_CompMethod ] ) ;\n hdr -> data_offset = EndGetI16 ( & buf [ kwajh_DataOffset ] ) ;\n hdr -> headers = EndGetI16 ( & buf [ kwajh_Flags ] ) ;\n hdr -> length = 0 ;\n hdr -> filename = NULL ;\n hdr -> extra = NULL ;\n hdr -> extra_length = 0 ;\n if ( hdr -> headers & MSKWAJ_HDR_HASLENGTH ) {\n if ( sys -> read ( fh , & buf [ 0 ] , 4 ) != 4 ) return MSPACK_ERR_READ ;\n hdr -> length = EndGetI32 ( & buf [ 0 ] ) ;\n }\n if ( hdr -> headers & MSKWAJ_HDR_HASUNKNOWN1 ) {\n if ( sys -> read ( fh , & buf [ 0 ] , 2 ) != 2 ) return MSPACK_ERR_READ ;\n }\n if ( hdr -> headers & MSKWAJ_HDR_HASUNKNOWN2 ) {\n if ( sys -> read ( fh , & buf [ 0 ] , 2 ) != 2 ) return MSPACK_ERR_READ ;\n i = EndGetI16 ( & buf [ 0 ] ) ;\n if ( sys -> seek ( fh , ( off_t ) i , MSPACK_SYS_SEEK_CUR ) ) return MSPACK_ERR_SEEK ;\n }\n if ( hdr -> headers & ( MSKWAJ_HDR_HASFILENAME | MSKWAJ_HDR_HASFILEEXT ) ) {\n off_t pos = sys -> tell ( fh ) ;\n char * fn = ( char * ) sys -> alloc ( sys , ( size_t ) 13 ) ;\n if ( ! fn ) return MSPACK_ERR_NOMEMORY ;\n hdr -> filename = fn ;\n if ( hdr -> headers & MSKWAJ_HDR_HASFILENAME ) {\n if ( sys -> read ( fh , & buf [ 0 ] , 9 ) != 9 ) return MSPACK_ERR_READ ;\n for ( i = 0 ;\n i < 9 ;\n i ++ , fn ++ ) if ( ! ( * fn = buf [ i ] ) ) break ;\n pos += ( i < 9 ) ? i + 1 : 9 ;\n if ( sys -> seek ( fh , pos , MSPACK_SYS_SEEK_START ) ) return MSPACK_ERR_SEEK ;\n }\n if ( hdr -> headers & MSKWAJ_HDR_HASFILEEXT ) {\n * fn ++ = '.' ;\n if ( sys -> read ( fh , & buf [ 0 ] , 4 ) != 4 ) return MSPACK_ERR_READ ;\n for ( i = 0 ;\n i < 4 ;\n i ++ , fn ++ ) if ( ! ( * fn = buf [ i ] ) ) break ;\n pos += ( i < 4 ) ? i + 1 : 4 ;\n if ( sys -> seek ( fh , pos , MSPACK_SYS_SEEK_START ) ) return MSPACK_ERR_SEEK ;\n }\n * fn = '\\0' ;\n }\n if ( hdr -> headers & MSKWAJ_HDR_HASEXTRATEXT ) {\n if ( sys -> read ( fh , & buf [ 0 ] , 2 ) != 2 ) return MSPACK_ERR_READ ;\n i = EndGetI16 ( & buf [ 0 ] ) ;\n hdr -> extra = ( char * ) sys -> alloc ( sys , ( size_t ) i + 1 ) ;\n if ( ! hdr -> extra ) return MSPACK_ERR_NOMEMORY ;\n if ( sys -> read ( fh , hdr -> extra , i ) != i ) return MSPACK_ERR_READ ;\n hdr -> extra [ i ] = '\\0' ;\n hdr -> extra_length = i ;\n }\n return MSPACK_ERR_OK ;\n }"}
{"idx": 10043, "target": 0, "func": "static zend_object_value spl_filesystem_object_new_ex ( zend_class_entry * class_type , spl_filesystem_object * * obj TSRMLS_DC ) {\n zend_object_value retval ;\n spl_filesystem_object * intern ;\n intern = emalloc ( sizeof ( spl_filesystem_object ) ) ;\n memset ( intern , 0 , sizeof ( spl_filesystem_object ) ) ;\n intern -> file_class = spl_ce_SplFileObject ;\n intern -> info_class = spl_ce_SplFileInfo ;\n if ( obj ) * obj = intern ;\n zend_object_std_init ( & intern -> std , class_type TSRMLS_CC ) ;\n object_properties_init ( & intern -> std , class_type ) ;\n retval . handle = zend_objects_store_put ( intern , ( zend_objects_store_dtor_t ) zend_objects_destroy_object , ( zend_objects_free_object_storage_t ) spl_filesystem_object_free_storage , NULL TSRMLS_CC ) ;\n retval . handlers = & spl_filesystem_object_handlers ;\n return retval ;\n }"}
{"idx": 10044, "target": 0, "func": "static void request_submit ( struct request * const req ) {\n if ( req -> ns ) {\n evdns_request_insert ( req , & req_head ) ;\n global_requests_inflight ++ ;\n evdns_request_transmit ( req ) ;\n }\n else {\n evdns_request_insert ( req , & req_waiting_head ) ;\n global_requests_waiting ++ ;\n }\n }"}
{"idx": 10045, "target": 0, "func": "static int remaining_bits ( WmallDecodeCtx * s , GetBitContext * gb ) {\n return s -> buf_bit_size - get_bits_count ( gb ) ;\n }"}
{"idx": 10046, "target": 0, "func": "void replace_dynstr_append ( DYNAMIC_STRING * ds , const char * val ) {\n replace_dynstr_append_mem ( ds , val , strlen ( val ) ) ;\n }"}
{"idx": 10047, "target": 0, "func": "static inline float get_cos ( int idx , int part , const float * cos_tab , int size ) {\n return part ? - cos_tab [ size - idx - 1 ] : cos_tab [ idx ] ;\n }"}
{"idx": 10048, "target": 0, "func": "void evhttp_send_page ( struct evhttp_request * req , struct evbuffer * databuf ) {\n if ( ! req -> major || ! req -> minor ) {\n req -> major = 1 ;\n req -> minor = 1 ;\n }\n if ( req -> kind != EVHTTP_RESPONSE ) evhttp_response_code ( req , 200 , \"OK\" ) ;\n evhttp_clear_headers ( req -> output_headers ) ;\n evhttp_add_header ( req -> output_headers , \"Content-Type\" , \"text/html\" ) ;\n evhttp_add_header ( req -> output_headers , \"Connection\" , \"close\" ) ;\n evhttp_send ( req , databuf ) ;\n }"}
{"idx": 10049, "target": 0, "func": "void proto_register_pcp ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_pcp_pdu_length , {\n \"PDU Length\" , \"pcp.length\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_pdu_type , {\n \"Type\" , \"pcp.type\" , FT_UINT32 , BASE_HEX , VALS ( packettypenames ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_pdu_pid , {\n \"From\" , \"pcp.from\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_pdu_error , {\n \"Error\" , \"pcp.error\" , FT_INT32 , BASE_DEC , VALS ( packettypenames_errors ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_pdu_padding , {\n \"Padding\" , \"pcp.padding\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_creds_number_of , {\n \"Number of Credentials\" , \"pcp.creds.number\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_creds_type , {\n \"Credentials Type\" , \"pcp.creds.type\" , FT_UINT8 , BASE_DEC , VALS ( packettypenames_creds ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_creds_version , {\n \"Credentials Version\" , \"pcp.creds.version\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_start , {\n \"Start\" , \"pcp.start\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_start_zero , {\n \"Start Bit\" , \"pcp.start.zero\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , 0x80 , NULL , HFILL }\n }\n , {\n & hf_pcp_start_version , {\n \"Version\" , \"pcp.start.version\" , FT_UINT8 , BASE_DEC , NULL , 0x7F , NULL , HFILL }\n }\n , {\n & hf_pcp_start_status , {\n \"Start Status\" , \"pcp.start.status\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_start_licensed , {\n \"Licensed\" , \"pcp.start.licensed\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_features_flags , {\n \"Features\" , \"pcp.features.flags\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_features_flags_secure , {\n \"Secure\" , \"pcp.features.flags.secure\" , FT_BOOLEAN , 16 , TFS ( & tfs_set_notset ) , PCP_PDU_FLAG_SECURE , NULL , HFILL }\n }\n , {\n & hf_pcp_features_flags_compress , {\n \"Compression\" , \"pcp.features.flags.compression\" , FT_BOOLEAN , 16 , TFS ( & tfs_set_notset ) , PCP_PDU_FLAG_COMPRESS , NULL , HFILL }\n }\n , {\n & hf_pcp_features_flags_auth , {\n \"Authentication\" , \"pcp.features.flags.auth\" , FT_BOOLEAN , 16 , TFS ( & tfs_set_notset ) , PCP_PDU_FLAG_AUTH , NULL , HFILL }\n }\n , {\n & hf_pcp_features_flags_creds_reqd , {\n \"Credentials Required\" , \"pcp.features.flags.creds_reqd\" , FT_BOOLEAN , 16 , TFS ( & tfs_set_notset ) , PCP_PDU_FLAG_CREDS_REQD , NULL , HFILL }\n }\n , {\n & hf_pcp_features_flags_secure_ack , {\n \"Secure Acknowledgement\" , \"pcp.features.flags.secure_ack\" , FT_BOOLEAN , 16 , TFS ( & tfs_set_notset ) , PCP_PDU_FLAG_SECURE_ACK , NULL , HFILL }\n }\n , {\n & hf_pcp_features_flags_no_nss_init , {\n \"No NSS Init\" , \"pcp.features.flags.no_nss_init\" , FT_BOOLEAN , 16 , TFS ( & tfs_set_notset ) , PCP_PDU_FLAG_NO_NSS_INIT , NULL , HFILL }\n }\n , {\n & hf_pcp_features_flags_container , {\n \"Container\" , \"pcp.features.flags.container\" , FT_BOOLEAN , 16 , TFS ( & tfs_set_notset ) , PCP_PDU_FLAG_CONTAINER , NULL , HFILL }\n }\n , {\n & hf_pcp_pmns_traverse , {\n \"PMNS Traverse\" , \"pcp.pmns_traverse\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_pmns_subtype , {\n \"Subtype\" , \"pcp.pmns.subtype\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_pmns_namelen , {\n \"Name Length\" , \"pcp.pmns.namelen\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_pmns_name , {\n \"Name\" , \"pcp.pmns.name\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_pmns_names , {\n \"PMNS Names\" , \"pcp.pmns_names\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_pmns_names_nstrbytes , {\n \"String Bytes\" , \"pcp.pmns_names.nstrbytes\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_pmns_names_numstatus , {\n \"Status\" , \"pcp.pmns_names.numstatus\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_pmns_names_numnames , {\n \"Number of Names\" , \"pcp.pmns_names.numnames\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_pmns_names_nametree , {\n \"Names\" , \"pcp.pmns_names.nametree\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_pmns_names_nametree_status , {\n \"Status\" , \"pcp.pmns_names.nametree.status\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_pmns_names_nametree_namelen , {\n \"Length\" , \"pcp.pmns_names.nametree.namelen\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_pmns_names_nametree_name , {\n \"Name\" , \"pcp.pmns_names.nametree.name\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_pmns_ids , {\n \"PMNS IDs\" , \"pcp.pmns_ids\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_pmns_ids_status , {\n \"Status\" , \"pcp.pmns_ids.status\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_pmns_ids_numids , {\n \"Number of IDs\" , \"pcp.pmns_ids.numids\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_pmns_child , {\n \"PMID Child\" , \"pcp.pmns.child\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_pmid , {\n \"PMID\" , \"pcp.pmid\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_pmid_flag , {\n \"Flag\" , \"pcp.pmid.flag\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_pmid_domain , {\n \"Domain\" , \"pcp.pmid.domain\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_pmid_cluster , {\n \"Cluster\" , \"pcp.pmid.cluster\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_pmid_item , {\n \"Item\" , \"pcp.pmid.item\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_pmid_type , {\n \"Type\" , \"pcp.pmid.type\" , FT_INT8 , BASE_DEC , VALS ( packettypenames_pm_types ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_pmid_sem , {\n \"Type Semantics\" , \"pcp.pmid.sem\" , FT_UINT32 , BASE_DEC , VALS ( packettypenames_pm_types_sem ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_pmid_inst , {\n \"Instance\" , \"pcp.pmid.inst\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_profile , {\n \"Profile\" , \"pcp.profile\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_ctxnum , {\n \"Context Number\" , \"pcp.ctxnum\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_profile_g_state , {\n \"Global Include/Exclude State\" , \"pcp.profile.g_state\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_profile_numprof , {\n \"Number of Profiles\" , \"pcp.profile.numprof\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_profile_profile , {\n \"Each Profile\" , \"pcp.profile.profile\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_profile_profile_state , {\n \"Include/Exclude State\" , \"pcp.profile.profile.state\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_profile_profile_numinst , {\n \"Number Instances to Follow\" , \"pcp.profile.profile.numinst\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_fetch , {\n \"Fetch\" , \"pcp.fetch\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_fetch_numpmid , {\n \"Number PMIDs\" , \"pcp.fetch.numpmid\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_when , {\n \"Time Value\" , \"pcp.when\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_when_sec , {\n \"Seconds\" , \"pcp.when.sec\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_when_usec , {\n \"Microseconds\" , \"pcp.when.usec\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_desc_req , {\n \"Description Request\" , \"pcp.desc_req\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_desc , {\n \"Description Response\" , \"pcp.desc\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_units , {\n \"PMID Units\" , \"pcp.units\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_units_dimspace , {\n \"Dimension Space\" , \"pcp.units.dimspace\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_units_dimtime , {\n \"Dimension Time\" , \"pcp.units.dimtime\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_units_dimcount , {\n \"Dimension Count\" , \"pcp.units.dimcount\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_units_scalespace , {\n \"Scale Space\" , \"pcp.units.scalespace\" , FT_UINT8 , BASE_DEC , VALS ( packettypenames_pm_units_space ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_units_scaletime , {\n \"Scale Time\" , \"pcp.units.scalespace\" , FT_UINT8 , BASE_DEC , VALS ( packettypenames_pm_units_time ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_units_scalecount , {\n \"Scale Count\" , \"pcp.units.scalecount\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_instance_req , {\n \"Instance Request\" , \"pcp.instance_req\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_instances , {\n \"Instance Response\" , \"pcp.instances\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_instances_numinst , {\n \"Number of Instances\" , \"pcp.instance_resp.numinst\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_instance , {\n \"Instance\" , \"pcp.instance\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_instance_namelen , {\n \"Name Length\" , \"pcp.instance.namelen\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_instance_name , {\n \"Name\" , \"pcp.instance.name\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_instance_indom , {\n \"Instance Domain\" , \"pcp.instance.indom\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_instance_valoffset , {\n \"Instance Offset\" , \"pcp.instance.valoffset\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_instance_vallength , {\n \"Instance Value Length\" , \"pcp.instance.vallength\" , FT_INT24 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_instance_value_insitu , {\n \"Instance Value\" , \"pcp.instance.value.uint\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_instance_value_ptr , {\n \"Instance Value\" , \"pcp.instance.value.string\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_instance_value_int , {\n \"Instance Value\" , \"pcp.instance.value.int\" , FT_INT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_instance_value_uint , {\n \"Instance Value\" , \"pcp.instance.value.uint\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_instance_value_int64 , {\n \"Instance Value\" , \"pcp.instance.value.int64\" , FT_INT64 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_instance_value_uint64 , {\n \"Instance Value\" , \"pcp.instance.value.uint64\" , FT_UINT64 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_instance_value_float , {\n \"Instance Value\" , \"pcp.instance.value.float\" , FT_FLOAT , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_instance_value_double , {\n \"Instance Value\" , \"pcp.instance.value.float\" , FT_DOUBLE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_instance_value_aggr , {\n \"Instance Value\" , \"pcp.instance.value.bytes\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_results , {\n \"Fetch Results\" , \"pcp.results\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_results_numpmid , {\n \"Number of PMIDs\" , \"pcp.results.numpmid\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_result , {\n \"Result\" , \"pcp.result\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_result_numval , {\n \"Number of Values\" , \"pcp.result.numval\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_result_valfmt , {\n \"Value Encoding Format\" , \"pcp.result.valfmt\" , FT_UINT32 , BASE_DEC , VALS ( packettypenames_valfmt ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_text_req , {\n \"Text Request\" , \"pcp.text_req\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_text_type , {\n \"Help Text Type\" , \"pcp.text.type\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_text_type_format , {\n \"Text Type Format\" , \"pcp.text.type.format\" , FT_UINT8 , BASE_DEC , VALS ( packettypenames_text_type_format ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_text_type_ident , {\n \"Text Type Ident\" , \"pcp.text.type.ident\" , FT_UINT8 , BASE_DEC , VALS ( packettypenames_text_type_ident ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_text , {\n \"Text Response\" , \"pcp.text\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_text_ident , {\n \"Text Ident (raw)\" , \"pcp.text.ident\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_text_buflen , {\n \"Text Buffer Length\" , \"pcp.text.buflen\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_text_buffer , {\n \"Text Buffer\" , \"pcp.text.buffer\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pcp_user_auth_payload , {\n \"User Authentication Payload\" , \"pcp.user_auth_payload\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , }\n ;\n static gint * ett [ ] = {\n & ett_pcp , & ett_pcp_pdu_length , & ett_pcp_pdu_type , & ett_pcp_pdu_pid , & ett_pcp_pdu_error , & ett_pcp_pdu_padding , & ett_pcp_creds_number_of , & ett_pcp_creds_type , & ett_pcp_creds_vala , & ett_pcp_creds_valb , & ett_pcp_creds_valc , & ett_pcp_start , & ett_pcp_start_status , & ett_pcp_start_zero , & ett_pcp_start_version , & ett_pcp_start_licensed , & ett_pcp_start_features , & ett_pcp_pmns_traverse , & ett_pcp_pmns_subtype , & ett_pcp_pmns_namelen , & ett_pcp_pmns_name , & ett_pcp_pmns_names , & ett_pcp_pmns_names_nstrbytes , & ett_pcp_pmns_names_numstatus , & ett_pcp_pmns_names_numnames , & ett_pcp_pmns_names_nametree , & ett_pcp_pmns_names_nametree_status , & ett_pcp_pmns_names_nametree_namelen , & ett_pcp_pmns_names_nametree_name , & ett_pcp_pmns_ids , & ett_pcp_pmns_ids_status , & ett_pcp_pmns_ids_numids , & ett_pcp_pmns_child , & ett_pcp_pmid , & ett_pcp_pmid_flag , & ett_pcp_pmid_domain , & ett_pcp_pmid_cluster , & ett_pcp_pmid_item , & ett_pcp_pmid_type , & ett_pcp_pmid_sem , & ett_pcp_profile , & ett_pcp_ctxnum , & ett_pcp_profile_g_state , & ett_pcp_profile_numprof , & ett_pcp_profile_profile , & ett_pcp_profile_profile_state , & ett_pcp_profile_profile_numinst , & ett_pcp_fetch , & ett_pcp_fetch_numpmid , & ett_pcp_when , & ett_pcp_when_sec , & ett_pcp_when_usec , & ett_pcp_desc_req , & ett_pcp_units , & ett_pcp_units_dimspace , & ett_pcp_units_dimtime , & ett_pcp_units_dimcount , & ett_pcp_units_scalespace , & ett_pcp_units_scaletime , & ett_pcp_units_scalecount , & ett_pcp_instance , & ett_pcp_instance_req , & ett_pcp_instance_namelen , & ett_pcp_instance_name , & ett_pcp_instance_indom , & ett_pcp_instance_inst , & ett_pcp_instance_valoffset , & ett_pcp_instance_vallength , & ett_pcp_instance_value_insitu , & ett_pcp_instance_value_ptr , & ett_pcp_instance_value_int , & ett_pcp_instance_value_uint , & ett_pcp_instance_value_int64 , & ett_pcp_instance_value_uint64 , & ett_pcp_instance_value_float , & ett_pcp_instance_value_double , & ett_pcp_instance_value_aggr , & ett_pcp_instances , & ett_pcp_instances_numinst , & ett_pcp_results , & ett_pcp_results_numpmid , & ett_pcp_result , & ett_pcp_result_numval , & ett_pcp_result_valfmt , & ett_pcp_text_req , & ett_pcp_text_type , & ett_pcp_text_type_format , & ett_pcp_text_type_ident , & ett_pcp_text , & ett_pcp_text_ident , & ett_pcp_text_buflen , & ett_pcp_text_buffer , }\n ;\n static ei_register_info ei [ ] = {\n {\n & ei_pcp_type_event_unimplemented , {\n \"pcp.pmid.type.event.unimplemented\" , PI_UNDECODED , PI_WARN , \"PM_TYPE_EVENT: Unimplemented Value Type\" , EXPFILL }\n }\n , {\n & ei_pcp_type_nosupport_unsupported , {\n \"pcp.pmid.type.nosupport.unsupported\" , PI_UNDECODED , PI_WARN , \"PM_TYPE_NOSUPPORT: Unsupported Value Type\" , EXPFILL }\n }\n , {\n & ei_pcp_type_unknown_unknown_value , {\n \"pcp.pmid.type.unknown.unknown_value\" , PI_UNDECODED , PI_WARN , \"PM_TYPE_UNKNOWN: Unknown Value Type\" , EXPFILL }\n }\n , {\n & ei_pcp_unimplemented_value , {\n \"pcp.pmid.type.unimplemented\" , PI_UNDECODED , PI_WARN , \"Unimplemented Value Type\" , EXPFILL }\n }\n , {\n & ei_pcp_unimplemented_packet_type , {\n \"pcp.type.unimplemented\" , PI_UNDECODED , PI_WARN , \"Unimplemented Packet Type\" , EXPFILL }\n }\n , {\n & ei_pcp_ssl_upgrade , {\n \"pcp.ssl_upgrade\" , PI_COMMENTS_GROUP , PI_COMMENT , \"SSL upgrade via SECURE_ACK\" , EXPFILL }\n }\n , {\n & ei_pcp_ssl_upgrade_failed , {\n \"pcp.ssl_upgrade_failed\" , PI_RESPONSE_CODE , PI_WARN , \"SSL upgrade via SECURE_ACK failed\" , EXPFILL }\n }\n , }\n ;\n expert_module_t * expert_pcp ;\n expert_pcp = expert_register_protocol ( proto_pcp ) ;\n expert_register_field_array ( expert_pcp , ei , array_length ( ei ) ) ;\n proto_pcp = proto_register_protocol ( \"Performance Co-Pilot\" , \"PCP\" , \"pcp\" ) ;\n proto_register_field_array ( proto_pcp , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n pcp_handle = register_dissector ( \"pcp\" , dissect_pcp , proto_pcp ) ;\n }"}
{"idx": 10050, "target": 0, "func": "static int dissect_h245_AlternativeCapabilitySet ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h245_AlternativeCapabilitySet , AlternativeCapabilitySet_sequence_of , 1 , 256 , FALSE ) ;\n return offset ;\n }"}
{"idx": 10051, "target": 0, "func": "void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 )"}
{"idx": 10052, "target": 0, "func": "static void vmport_register_types ( void ) {\n type_register_static ( & vmport_info ) ;\n }"}
{"idx": 10053, "target": 0, "func": "static void xml_print_section_footer ( WriterContext * wctx ) {\n XMLContext * xml = wctx -> priv ;\n const struct section * section = wctx -> section [ wctx -> level ] ;\n if ( wctx -> level == 0 ) {\n printf ( \"</%sffprobe>\\n\" , xml -> fully_qualified ? \"ffprobe:\" : \"\" ) ;\n }\n else if ( xml -> within_tag ) {\n xml -> within_tag = 0 ;\n printf ( \"/>\\n\" ) ;\n xml -> indent_level -- ;\n }\n else if ( section -> flags & SECTION_FLAG_HAS_VARIABLE_FIELDS ) {\n xml -> indent_level -- ;\n }\n else {\n XML_INDENT ( ) ;\n printf ( \"</%s>\\n\" , section -> name ) ;\n xml -> indent_level -- ;\n }\n }"}
{"idx": 10054, "target": 0, "func": "static int qcelp_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n QCELPContext * q = avctx -> priv_data ;\n AVFrame * frame = data ;\n float * outbuffer ;\n int i , ret ;\n float quantized_lspf [ 10 ] , lpc [ 10 ] ;\n float gain [ 16 ] ;\n float * formant_mem ;\n frame -> nb_samples = 160 ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n outbuffer = ( float * ) frame -> data [ 0 ] ;\n if ( ( q -> bitrate = determine_bitrate ( avctx , buf_size , & buf ) ) == I_F_Q ) {\n warn_insufficient_frame_quality ( avctx , \"bitrate cannot be determined.\" ) ;\n goto erasure ;\n }\n if ( q -> bitrate == RATE_OCTAVE && ( q -> first16bits = AV_RB16 ( buf ) ) == 0xFFFF ) {\n warn_insufficient_frame_quality ( avctx , \"Bitrate is 1/8 and first 16 bits are on.\" ) ;\n goto erasure ;\n }\n if ( q -> bitrate > SILENCE ) {\n const QCELPBitmap * bitmaps = qcelp_unpacking_bitmaps_per_rate [ q -> bitrate ] ;\n const QCELPBitmap * bitmaps_end = qcelp_unpacking_bitmaps_per_rate [ q -> bitrate ] + qcelp_unpacking_bitmaps_lengths [ q -> bitrate ] ;\n uint8_t * unpacked_data = ( uint8_t * ) & q -> frame ;\n init_get_bits ( & q -> gb , buf , 8 * buf_size ) ;\n memset ( & q -> frame , 0 , sizeof ( QCELPFrame ) ) ;\n for ( ;\n bitmaps < bitmaps_end ;\n bitmaps ++ ) unpacked_data [ bitmaps -> index ] |= get_bits ( & q -> gb , bitmaps -> bitlen ) << bitmaps -> bitpos ;\n if ( q -> frame . reserved ) {\n warn_insufficient_frame_quality ( avctx , \"Wrong data in reserved frame area.\" ) ;\n goto erasure ;\n }\n if ( q -> bitrate == RATE_QUARTER && codebook_sanity_check_for_rate_quarter ( q -> frame . cbgain ) ) {\n warn_insufficient_frame_quality ( avctx , \"Codebook gain sanity check failed.\" ) ;\n goto erasure ;\n }\n if ( q -> bitrate >= RATE_HALF ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n if ( q -> frame . pfrac [ i ] && q -> frame . plag [ i ] >= 124 ) {\n warn_insufficient_frame_quality ( avctx , \"Cannot initialize pitch filter.\" ) ;\n goto erasure ;\n }\n }\n }\n }\n decode_gain_and_index ( q , gain ) ;\n compute_svector ( q , gain , outbuffer ) ;\n if ( decode_lspf ( q , quantized_lspf ) < 0 ) {\n warn_insufficient_frame_quality ( avctx , \"Badly received packets in frame.\" ) ;\n goto erasure ;\n }\n apply_pitch_filters ( q , outbuffer ) ;\n if ( q -> bitrate == I_F_Q ) {\n erasure : q -> bitrate = I_F_Q ;\n q -> erasure_count ++ ;\n decode_gain_and_index ( q , gain ) ;\n compute_svector ( q , gain , outbuffer ) ;\n decode_lspf ( q , quantized_lspf ) ;\n apply_pitch_filters ( q , outbuffer ) ;\n }\n else q -> erasure_count = 0 ;\n formant_mem = q -> formant_mem + 10 ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n interpolate_lpc ( q , quantized_lspf , lpc , i ) ;\n ff_celp_lp_synthesis_filterf ( formant_mem , lpc , outbuffer + i * 40 , 40 , 10 ) ;\n formant_mem += 40 ;\n }\n postfilter ( q , outbuffer , lpc ) ;\n memcpy ( q -> formant_mem , q -> formant_mem + 160 , 10 * sizeof ( float ) ) ;\n memcpy ( q -> prev_lspf , quantized_lspf , sizeof ( q -> prev_lspf ) ) ;\n q -> prev_bitrate = q -> bitrate ;\n * got_frame_ptr = 1 ;\n return buf_size ;\n }"}
{"idx": 10055, "target": 0, "func": "static void check_reset_2nd_coeffs ( MACROBLOCKD * x , int type , ENTROPY_CONTEXT * a , ENTROPY_CONTEXT * l ) {\n int sum = 0 ;\n int i ;\n BLOCKD * bd = & x -> block [ 24 ] ;\n if ( bd -> dequant [ 0 ] >= 35 && bd -> dequant [ 1 ] >= 35 ) return ;\n for ( i = 0 ;\n i < ( * bd -> eob ) ;\n i ++ ) {\n int coef = bd -> dqcoeff [ vp8_default_zig_zag1d [ i ] ] ;\n sum += ( coef >= 0 ) ? coef : - coef ;\n if ( sum >= 35 ) return ;\n }\n if ( sum < 35 ) {\n for ( i = 0 ;\n i < ( * bd -> eob ) ;\n i ++ ) {\n int rc = vp8_default_zig_zag1d [ i ] ;\n bd -> qcoeff [ rc ] = 0 ;\n bd -> dqcoeff [ rc ] = 0 ;\n }\n * bd -> eob = 0 ;\n * a = * l = ( * bd -> eob != ! type ) ;\n }\n }"}
{"idx": 10056, "target": 0, "func": "void http_hdr_describe ( HdrHeapObjImpl * raw , bool recurse ) {\n HTTPHdrImpl * obj = ( HTTPHdrImpl * ) raw ;\n if ( obj -> m_polarity == HTTP_TYPE_REQUEST ) {\n Debug ( \"http\" , \"[TYPE: REQ, V: %04X, URL: %p, METHOD: \\\"%.*s\\\", METHOD_LEN: %d, FIELDS: %p]\" , obj -> m_version , obj -> u . req . m_url_impl , obj -> u . req . m_len_method , ( obj -> u . req . m_ptr_method ? obj -> u . req . m_ptr_method : \"NULL\" ) , obj -> u . req . m_len_method , obj -> m_fields_impl ) ;\n if ( recurse ) {\n if ( obj -> u . req . m_url_impl ) {\n obj_describe ( obj -> u . req . m_url_impl , recurse ) ;\n }\n if ( obj -> m_fields_impl ) {\n obj_describe ( obj -> m_fields_impl , recurse ) ;\n }\n }\n }\n else {\n Debug ( \"http\" , \"[TYPE: RSP, V: %04X, STATUS: %d, REASON: \\\"%.*s\\\", REASON_LEN: %d, FIELDS: %p]\" , obj -> m_version , obj -> u . resp . m_status , obj -> u . resp . m_len_reason , ( obj -> u . resp . m_ptr_reason ? obj -> u . resp . m_ptr_reason : \"NULL\" ) , obj -> u . resp . m_len_reason , obj -> m_fields_impl ) ;\n if ( recurse ) {\n if ( obj -> m_fields_impl ) {\n obj_describe ( obj -> m_fields_impl , recurse ) ;\n }\n }\n }\n }"}
{"idx": 10057, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n uint8_t ctable [ 128 ] ;\n QpegContext * const a = avctx -> priv_data ;\n AVFrame * const p = & a -> pic ;\n uint8_t * outdata ;\n int delta , ret ;\n const uint8_t * pal = av_packet_get_side_data ( avpkt , AV_PKT_DATA_PALETTE , NULL ) ;\n if ( avpkt -> size < 0x86 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Packet is too small\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n bytestream2_init ( & a -> buffer , avpkt -> data , avpkt -> size ) ;\n p -> reference = 3 ;\n if ( ( ret = avctx -> reget_buffer ( avctx , p ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n outdata = a -> pic . data [ 0 ] ;\n bytestream2_skip ( & a -> buffer , 4 ) ;\n bytestream2_get_buffer ( & a -> buffer , ctable , 128 ) ;\n bytestream2_skip ( & a -> buffer , 1 ) ;\n delta = bytestream2_get_byte ( & a -> buffer ) ;\n if ( delta == 0x10 ) {\n qpeg_decode_intra ( a , outdata , a -> pic . linesize [ 0 ] , avctx -> width , avctx -> height ) ;\n }\n else {\n qpeg_decode_inter ( a , outdata , a -> pic . linesize [ 0 ] , avctx -> width , avctx -> height , delta , ctable , a -> refdata ) ;\n }\n if ( pal ) {\n a -> pic . palette_has_changed = 1 ;\n memcpy ( a -> pal , pal , AVPALETTE_SIZE ) ;\n }\n memcpy ( a -> pic . data [ 1 ] , a -> pal , AVPALETTE_SIZE ) ;\n * got_frame = 1 ;\n * ( AVFrame * ) data = a -> pic ;\n return avpkt -> size ;\n }"}
{"idx": 10058, "target": 0, "func": "static inline PixelTrait GetPixelAlphaTraits ( const Image * restrict image ) {\n return ( image -> channel_map [ AlphaPixelChannel ] . traits ) ;\n }"}
{"idx": 10059, "target": 0, "func": "METHOD ( x509_t , get_serial , chunk_t , private_x509_cert_t * this ) {\n return this -> serialNumber ;\n }"}
{"idx": 10060, "target": 0, "func": "static void FLOATING_POINT_INIT ( ) {\n }"}
{"idx": 10061, "target": 0, "func": "int ff_h264_check_intra4x4_pred_mode ( H264Context * h ) {\n static const int8_t top [ 12 ] = {\n - 1 , 0 , LEFT_DC_PRED , - 1 , - 1 , - 1 , - 1 , - 1 , 0 }\n ;\n static const int8_t left [ 12 ] = {\n 0 , - 1 , TOP_DC_PRED , 0 , - 1 , - 1 , - 1 , 0 , - 1 , DC_128_PRED }\n ;\n int i ;\n if ( ! ( h -> top_samples_available & 0x8000 ) ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n int status = top [ h -> intra4x4_pred_mode_cache [ scan8 [ 0 ] + i ] ] ;\n if ( status < 0 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"top block unavailable for requested intra4x4 mode %d at %d %d\\n\" , status , h -> mb_x , h -> mb_y ) ;\n return AVERROR_INVALIDDATA ;\n }\n else if ( status ) {\n h -> intra4x4_pred_mode_cache [ scan8 [ 0 ] + i ] = status ;\n }\n }\n }\n if ( ( h -> left_samples_available & 0x8888 ) != 0x8888 ) {\n static const int mask [ 4 ] = {\n 0x8000 , 0x2000 , 0x80 , 0x20 }\n ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) if ( ! ( h -> left_samples_available & mask [ i ] ) ) {\n int status = left [ h -> intra4x4_pred_mode_cache [ scan8 [ 0 ] + 8 * i ] ] ;\n if ( status < 0 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"left block unavailable for requested intra4x4 mode %d at %d %d\\n\" , status , h -> mb_x , h -> mb_y ) ;\n return AVERROR_INVALIDDATA ;\n }\n else if ( status ) {\n h -> intra4x4_pred_mode_cache [ scan8 [ 0 ] + 8 * i ] = status ;\n }\n }\n }\n return 0 ;\n }"}
{"idx": 10062, "target": 0, "func": "DH * get_dh2048 ( ) {\n DH * dh ;\n if ( ( dh = DH_new ( ) ) == NULL ) return NULL ;\n dh -> p = BN_bin2bn ( dh2048_p , sizeof ( dh2048_p ) , NULL ) ;\n dh -> g = BN_bin2bn ( dh2048_g , sizeof ( dh2048_g ) , NULL ) ;\n if ( dh -> p == NULL || dh -> g == NULL ) {\n DH_free ( dh ) ;\n return NULL ;\n }\n return dh ;\n }"}
{"idx": 10063, "target": 0, "func": "RSA * d2i_RSAPublicKey_bio ( BIO * bp , RSA * * rsa ) {\n return ASN1_item_d2i_bio ( ASN1_ITEM_rptr ( RSAPublicKey ) , bp , rsa ) ;\n }"}
{"idx": 10064, "target": 0, "func": "static uint32_t cirrus_get_bpp16_depth ( CirrusVGAState * s ) {\n uint32_t ret = 16 ;\n switch ( s -> cirrus_hidden_dac_data & 0xf ) {\n case 0 : ret = 15 ;\n break ;\n case 1 : ret = 16 ;\n break ;\n default : # ifdef DEBUG_CIRRUS printf ( \"cirrus: invalid DAC value %x in 16bpp\\n\" , ( s -> cirrus_hidden_dac_data & 0xf ) ) ;\n # endif ret = 15 ;\n break ;\n }\n return ret ;\n }"}
{"idx": 10065, "target": 0, "func": "Datum regexnesel ( PG_FUNCTION_ARGS ) {\n PG_RETURN_FLOAT8 ( patternsel ( fcinfo , Pattern_Type_Regex , true ) ) ;\n }"}
{"idx": 10066, "target": 0, "func": "static int isFileInVirtualDir ( char * filePath ) {\n virtualDirList * pCurVirtualDir ;\n size_t webDirLen ;\n pCurVirtualDir = pVirtualDirList ;\n while ( pCurVirtualDir != NULL ) {\n webDirLen = strlen ( pCurVirtualDir -> dirName ) ;\n if ( webDirLen ) {\n if ( pCurVirtualDir -> dirName [ webDirLen - 1 ] == '/' ) {\n if ( strncmp ( pCurVirtualDir -> dirName , filePath , webDirLen ) == 0 ) return ! 0 ;\n }\n else {\n if ( strncmp ( pCurVirtualDir -> dirName , filePath , webDirLen ) == 0 && ( filePath [ webDirLen ] == '/' || filePath [ webDirLen ] == '\\0' || filePath [ webDirLen ] == '?' ) ) return ! 0 ;\n }\n }\n pCurVirtualDir = pCurVirtualDir -> next ;\n }\n return 0 ;\n }"}
{"idx": 10067, "target": 0, "func": "proto_item * proto_tree_add_bytes_format_value ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , const guint8 * start_ptr , const char * format , ... ) {\n proto_item * pi ;\n va_list ap ;\n header_field_info * hfinfo ;\n gint item_length ;\n PROTO_REGISTRAR_GET_NTH ( hfindex , hfinfo ) ;\n get_hfi_length ( hfinfo , tvb , start , & length , & item_length ) ;\n test_length ( hfinfo , tvb , start , item_length ) ;\n CHECK_FOR_NULL_TREE ( tree ) ;\n TRY_TO_FAKE_THIS_ITEM ( tree , hfindex , hfinfo ) ;\n if ( start_ptr ) pi = proto_tree_add_bytes ( tree , hfindex , tvb , start , length , start_ptr ) ;\n else pi = proto_tree_add_bytes ( tree , hfindex , tvb , start , length , tvb_get_ptr ( tvb , start , length ) ) ;\n va_start ( ap , format ) ;\n proto_tree_set_representation_value ( pi , format , ap ) ;\n va_end ( ap ) ;\n return pi ;\n }"}
{"idx": 10068, "target": 1, "func": "static hb_segment_properties_t * segment_properties_reference ( hb_segment_properties_t * g ) {\n hb_segment_properties_t * c = ( hb_segment_properties_t * ) calloc ( 1 , sizeof ( hb_segment_properties_t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * g ;\n return c ;\n }"}
{"idx": 10069, "target": 0, "func": "static void kvm_hwpoison_page_add ( ram_addr_t ram_addr ) {\n HWPoisonPage * page ;\n QLIST_FOREACH ( page , & hwpoison_page_list , list ) {\n if ( page -> ram_addr == ram_addr ) {\n return ;\n }\n }\n page = g_new ( HWPoisonPage , 1 ) ;\n page -> ram_addr = ram_addr ;\n QLIST_INSERT_HEAD ( & hwpoison_page_list , page , list ) ;\n }"}
{"idx": 10070, "target": 0, "func": "static void config_logconfig ( config_tree * ptree ) {\n attr_val * my_lc ;\n my_lc = HEAD_PFIFO ( ptree -> logconfig ) ;\n for ( ;\n my_lc != NULL ;\n my_lc = my_lc -> link ) {\n switch ( my_lc -> attr ) {\n case '+' : ntp_syslogmask |= get_logmask ( my_lc -> value . s ) ;\n break ;\n case '-' : ntp_syslogmask &= ~ get_logmask ( my_lc -> value . s ) ;\n break ;\n case '=' : ntp_syslogmask = get_logmask ( my_lc -> value . s ) ;\n break ;\n }\n }\n }"}
{"idx": 10071, "target": 0, "func": "int decodenetnum ( const char * num , sockaddr_u * netnum ) {\n struct addrinfo hints , * ai = NULL ;\n int err ;\n u_short port ;\n const char * cp ;\n const char * port_str ;\n char * pp ;\n char * np ;\n char name [ 80 ] ;\n REQUIRE ( num != NULL ) ;\n if ( strlen ( num ) >= sizeof ( name ) ) {\n return 0 ;\n }\n port_str = NULL ;\n if ( '[' != num [ 0 ] ) {\n pp = strchr ( num , ':' ) ;\n if ( NULL == pp ) cp = num ;\n else if ( NULL != strchr ( pp + 1 , ':' ) ) cp = num ;\n else {\n strlcpy ( name , num , sizeof ( name ) ) ;\n cp = name ;\n pp = strchr ( cp , ':' ) ;\n * pp = '\\0' ;\n port_str = pp + 1 ;\n }\n }\n else {\n cp = num + 1 ;\n np = name ;\n while ( * cp && ']' != * cp ) * np ++ = * cp ++ ;\n * np = 0 ;\n if ( ']' == cp [ 0 ] && ':' == cp [ 1 ] && '\\0' != cp [ 2 ] ) port_str = & cp [ 2 ] ;\n cp = name ;\n }\n ZERO ( hints ) ;\n hints . ai_flags = Z_AI_NUMERICHOST ;\n err = getaddrinfo ( cp , \"ntp\" , & hints , & ai ) ;\n if ( err != 0 ) return 0 ;\n INSIST ( ai -> ai_addrlen <= sizeof ( * netnum ) ) ;\n ZERO ( * netnum ) ;\n memcpy ( netnum , ai -> ai_addr , ai -> ai_addrlen ) ;\n freeaddrinfo ( ai ) ;\n if ( NULL == port_str || 1 != sscanf ( port_str , \"%hu\" , & port ) ) port = NTP_PORT ;\n SET_PORT ( netnum , port ) ;\n return 1 ;\n }"}
{"idx": 10072, "target": 0, "func": "static void configure_static_seg_features ( VP9_COMP * cpi ) {\n VP9_COMMON * const cm = & cpi -> common ;\n const RATE_CONTROL * const rc = & cpi -> rc ;\n struct segmentation * const seg = & cm -> seg ;\n int high_q = ( int ) ( rc -> avg_q > 48.0 ) ;\n int qi_delta ;\n if ( cm -> frame_type == KEY_FRAME ) {\n vpx_memset ( cpi -> segmentation_map , 0 , cm -> mi_rows * cm -> mi_cols ) ;\n seg -> update_map = 0 ;\n seg -> update_data = 0 ;\n cpi -> static_mb_pct = 0 ;\n vp9_disable_segmentation ( seg ) ;\n vp9_clearall_segfeatures ( seg ) ;\n }\n else if ( cpi -> refresh_alt_ref_frame ) {\n vpx_memset ( cpi -> segmentation_map , 0 , cm -> mi_rows * cm -> mi_cols ) ;\n seg -> update_map = 0 ;\n seg -> update_data = 0 ;\n cpi -> static_mb_pct = 0 ;\n vp9_disable_segmentation ( seg ) ;\n vp9_clearall_segfeatures ( seg ) ;\n vp9_update_mbgraph_stats ( cpi ) ;\n if ( seg -> enabled ) {\n seg -> update_map = 1 ;\n seg -> update_data = 1 ;\n qi_delta = vp9_compute_qdelta ( rc , rc -> avg_q , rc -> avg_q * 0.875 , cm -> bit_depth ) ;\n vp9_set_segdata ( seg , 1 , SEG_LVL_ALT_Q , qi_delta - 2 ) ;\n vp9_set_segdata ( seg , 1 , SEG_LVL_ALT_LF , - 2 ) ;\n vp9_enable_segfeature ( seg , 1 , SEG_LVL_ALT_Q ) ;\n vp9_enable_segfeature ( seg , 1 , SEG_LVL_ALT_LF ) ;\n seg -> abs_delta = SEGMENT_DELTADATA ;\n }\n }\n else if ( seg -> enabled ) {\n if ( rc -> frames_since_golden == 0 ) {\n if ( rc -> source_alt_ref_active ) {\n seg -> update_map = 0 ;\n seg -> update_data = 1 ;\n seg -> abs_delta = SEGMENT_DELTADATA ;\n qi_delta = vp9_compute_qdelta ( rc , rc -> avg_q , rc -> avg_q * 1.125 , cm -> bit_depth ) ;\n vp9_set_segdata ( seg , 1 , SEG_LVL_ALT_Q , qi_delta + 2 ) ;\n vp9_enable_segfeature ( seg , 1 , SEG_LVL_ALT_Q ) ;\n vp9_set_segdata ( seg , 1 , SEG_LVL_ALT_LF , - 2 ) ;\n vp9_enable_segfeature ( seg , 1 , SEG_LVL_ALT_LF ) ;\n if ( high_q || ( cpi -> static_mb_pct == 100 ) ) {\n vp9_set_segdata ( seg , 1 , SEG_LVL_REF_FRAME , ALTREF_FRAME ) ;\n vp9_enable_segfeature ( seg , 1 , SEG_LVL_REF_FRAME ) ;\n vp9_enable_segfeature ( seg , 1 , SEG_LVL_SKIP ) ;\n }\n }\n else {\n vp9_disable_segmentation ( seg ) ;\n vpx_memset ( cpi -> segmentation_map , 0 , cm -> mi_rows * cm -> mi_cols ) ;\n seg -> update_map = 0 ;\n seg -> update_data = 0 ;\n vp9_clearall_segfeatures ( seg ) ;\n }\n }\n else if ( rc -> is_src_frame_alt_ref ) {\n vp9_enable_segfeature ( seg , 0 , SEG_LVL_REF_FRAME ) ;\n vp9_enable_segfeature ( seg , 1 , SEG_LVL_REF_FRAME ) ;\n vp9_clear_segdata ( seg , 0 , SEG_LVL_REF_FRAME ) ;\n vp9_set_segdata ( seg , 0 , SEG_LVL_REF_FRAME , ALTREF_FRAME ) ;\n vp9_clear_segdata ( seg , 1 , SEG_LVL_REF_FRAME ) ;\n vp9_set_segdata ( seg , 1 , SEG_LVL_REF_FRAME , ALTREF_FRAME ) ;\n if ( high_q ) {\n vp9_enable_segfeature ( seg , 0 , SEG_LVL_SKIP ) ;\n vp9_enable_segfeature ( seg , 1 , SEG_LVL_SKIP ) ;\n }\n seg -> update_data = 1 ;\n }\n else {\n seg -> update_map = 0 ;\n seg -> update_data = 0 ;\n }\n }\n }"}
{"idx": 10073, "target": 0, "func": "static void dtap_bcc_setup ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_BCC_CALL_REF , \"(Broadcast identity)\" ) ;\n ELEM_OPT_TLV ( 0x7e , GSM_A_PDU_TYPE_DTAP , DE_USER_USER , \"(Originator-to-dispatcher information)\" ) ;\n }"}
{"idx": 10074, "target": 0, "func": "TEST_F ( ExternalProtocolHandlerTest , TestLaunchSchemeBlockedChromeUnknown ) {\n DoTest ( ExternalProtocolHandler : : BLOCK , shell_integration : : UNKNOWN_DEFAULT , Action : : BLOCK ) ;\n }"}
{"idx": 10075, "target": 0, "func": "static int get_options ( int * argc , char * * * argv ) {\n int ho_error ;\n MYSQL_PARAMETERS * mysql_params = mysql_get_parameters ( ) ;\n opt_max_allowed_packet = * mysql_params -> p_max_allowed_packet ;\n opt_net_buffer_length = * mysql_params -> p_net_buffer_length ;\n md_result_file = stdout ;\n if ( load_defaults ( \"my\" , load_default_groups , argc , argv ) ) return 1 ;\n defaults_argv = * argv ;\n if ( my_hash_init ( & ignore_table , charset_info , 16 , 0 , 0 , ( my_hash_get_key ) get_table_key , my_free , 0 ) ) return ( EX_EOM ) ;\n if ( my_hash_insert ( & ignore_table , ( uchar * ) my_strdup ( \"mysql.apply_status\" , MYF ( MY_WME ) ) ) || my_hash_insert ( & ignore_table , ( uchar * ) my_strdup ( \"mysql.schema\" , MYF ( MY_WME ) ) ) || my_hash_insert ( & ignore_table , ( uchar * ) my_strdup ( \"mysql.general_log\" , MYF ( MY_WME ) ) ) || my_hash_insert ( & ignore_table , ( uchar * ) my_strdup ( \"mysql.slow_log\" , MYF ( MY_WME ) ) ) ) return ( EX_EOM ) ;\n if ( ( ho_error = handle_options ( argc , argv , my_long_options , get_one_option ) ) ) return ( ho_error ) ;\n * mysql_params -> p_max_allowed_packet = opt_max_allowed_packet ;\n * mysql_params -> p_net_buffer_length = opt_net_buffer_length ;\n if ( debug_info_flag ) my_end_arg = MY_CHECK_ERROR | MY_GIVE_INFO ;\n if ( debug_check_flag ) my_end_arg = MY_CHECK_ERROR ;\n if ( opt_delayed ) opt_lock = 0 ;\n if ( ! path && ( enclosed || opt_enclosed || escaped || lines_terminated || fields_terminated ) ) {\n fprintf ( stderr , \"%s: You must use option --tab with --fields-...\\n\" , my_progname_short ) ;\n return ( EX_USAGE ) ;\n }\n if ( opt_slave_data ) {\n opt_lock_all_tables = ! opt_single_transaction ;\n opt_master_data = 0 ;\n opt_delete_master_logs = 0 ;\n }\n if ( opt_delete_master_logs && ! opt_master_data ) opt_master_data = MYSQL_OPT_MASTER_DATA_COMMENTED_SQL ;\n if ( opt_single_transaction && opt_lock_all_tables ) {\n fprintf ( stderr , \"%s: You can't use --single-transaction and \" \"--lock-all-tables at the same time.\\n\" , my_progname_short ) ;\n return ( EX_USAGE ) ;\n }\n if ( opt_master_data ) {\n opt_lock_all_tables = ! opt_single_transaction ;\n opt_slave_data = 0 ;\n }\n if ( opt_single_transaction || opt_lock_all_tables ) lock_tables = 0 ;\n if ( enclosed && opt_enclosed ) {\n fprintf ( stderr , \"%s: You can't use ..enclosed.. and ..optionally-enclosed.. at the same time.\\n\" , my_progname_short ) ;\n return ( EX_USAGE ) ;\n }\n if ( ( opt_databases || opt_alldbs ) && path ) {\n fprintf ( stderr , \"%s: --databases or --all-databases can't be used with --tab.\\n\" , my_progname_short ) ;\n return ( EX_USAGE ) ;\n }\n if ( strcmp ( default_charset , charset_info -> csname ) && ! ( charset_info = get_charset_by_csname ( default_charset , MY_CS_PRIMARY , MYF ( MY_WME ) ) ) ) exit ( 1 ) ;\n if ( ( * argc < 1 && ! opt_alldbs ) || ( * argc > 0 && opt_alldbs ) ) {\n short_usage ( stderr ) ;\n return EX_USAGE ;\n }\n if ( tty_password ) opt_password = get_tty_password ( NullS ) ;\n return ( 0 ) ;\n }"}
{"idx": 10076, "target": 0, "func": "static void dissect_llmnr_udp ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree ) {\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"LLMNR\" ) ;\n dissect_dns_common ( tvb , pinfo , tree , FALSE , FALSE , TRUE ) ;\n }"}
{"idx": 10077, "target": 0, "func": "static int cavs_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n AVSContext * h = avctx -> priv_data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n uint32_t stc = - 1 ;\n int input_size , ret ;\n const uint8_t * buf_end ;\n const uint8_t * buf_ptr ;\n if ( buf_size == 0 ) {\n if ( ! h -> low_delay && h -> DPB [ 0 ] . f -> data [ 0 ] ) {\n * got_frame = 1 ;\n av_frame_move_ref ( data , h -> DPB [ 0 ] . f ) ;\n }\n return 0 ;\n }\n buf_ptr = buf ;\n buf_end = buf + buf_size ;\n for ( ;\n ;\n ) {\n buf_ptr = avpriv_mpv_find_start_code ( buf_ptr , buf_end , & stc ) ;\n if ( ( stc & 0xFFFFFE00 ) || buf_ptr == buf_end ) return FFMAX ( 0 , buf_ptr - buf ) ;\n input_size = ( buf_end - buf_ptr ) * 8 ;\n switch ( stc ) {\n case CAVS_START_CODE : init_get_bits ( & h -> gb , buf_ptr , input_size ) ;\n decode_seq_header ( h ) ;\n break ;\n case PIC_I_START_CODE : if ( ! h -> got_keyframe ) {\n av_frame_unref ( h -> DPB [ 0 ] . f ) ;\n av_frame_unref ( h -> DPB [ 1 ] . f ) ;\n h -> got_keyframe = 1 ;\n }\n case PIC_PB_START_CODE : * got_frame = 0 ;\n if ( ! h -> got_keyframe ) break ;\n init_get_bits ( & h -> gb , buf_ptr , input_size ) ;\n h -> stc = stc ;\n if ( decode_pic ( h ) ) break ;\n * got_frame = 1 ;\n if ( h -> cur . f -> pict_type != AV_PICTURE_TYPE_B ) {\n if ( h -> DPB [ 1 ] . f -> data [ 0 ] ) {\n if ( ( ret = av_frame_ref ( data , h -> DPB [ 1 ] . f ) ) < 0 ) return ret ;\n }\n else {\n * got_frame = 0 ;\n }\n }\n else {\n av_frame_move_ref ( data , h -> cur . f ) ;\n }\n break ;\n case EXT_START_CODE : break ;\n case USER_START_CODE : break ;\n default : if ( stc <= SLICE_MAX_START_CODE ) {\n init_get_bits ( & h -> gb , buf_ptr , input_size ) ;\n decode_slice_header ( h , & h -> gb ) ;\n }\n break ;\n }\n }\n }"}
{"idx": 10078, "target": 0, "func": "static guint count_non_skipped_files ( GList * list ) {\n guint count ;\n GList * node ;\n GFileInfo * info ;\n count = 0 ;\n for ( node = list ;\n node != NULL ;\n node = node -> next ) {\n info = node -> data ;\n if ( ! should_skip_file ( NULL , info ) ) {\n count += 1 ;\n }\n }\n return count ;\n }"}
{"idx": 10079, "target": 0, "func": "void create_thread_to_handle_connection ( THD * thd ) {\n if ( cached_thread_count > wake_thread ) {\n thread_cache . push_back ( thd ) ;\n wake_thread ++ ;\n mysql_cond_signal ( & COND_thread_cache ) ;\n }\n else {\n char error_message_buff [ MYSQL_ERRMSG_SIZE ] ;\n int error ;\n thread_created ++ ;\n threads . append ( thd ) ;\n DBUG_PRINT ( \"info\" , ( ( \"creating thread %lu\" ) , thd -> thread_id ) ) ;\n thd -> prior_thr_create_utime = microsecond_interval_timer ( ) ;\n if ( ( error = mysql_thread_create ( key_thread_one_connection , & thd -> real_id , & connection_attrib , handle_one_connection , ( void * ) thd ) ) ) {\n DBUG_PRINT ( \"error\" , ( \"Can't create thread to handle request (error %d)\" , error ) ) ;\n thread_count -- ;\n thd -> killed = KILL_CONNECTION ;\n mysql_mutex_unlock ( & LOCK_thread_count ) ;\n mysql_mutex_lock ( & LOCK_connection_count ) ;\n ( * thd -> scheduler -> connection_count ) -- ;\n mysql_mutex_unlock ( & LOCK_connection_count ) ;\n statistic_increment ( aborted_connects , & LOCK_status ) ;\n my_snprintf ( error_message_buff , sizeof ( error_message_buff ) , ER_THD ( thd , ER_CANT_CREATE_THREAD ) , error ) ;\n net_send_error ( thd , ER_CANT_CREATE_THREAD , error_message_buff , NULL ) ;\n close_connection ( thd , ER_OUT_OF_RESOURCES ) ;\n mysql_mutex_lock ( & LOCK_thread_count ) ;\n delete thd ;\n mysql_mutex_unlock ( & LOCK_thread_count ) ;\n return ;\n }\n }\n mysql_mutex_unlock ( & LOCK_thread_count ) ;\n DBUG_PRINT ( \"info\" , ( \"Thread created\" ) ) ;\n }"}
{"idx": 10080, "target": 0, "func": "static int __inode_security_revalidate ( struct inode * inode , struct dentry * opt_dentry , bool may_sleep ) {\n struct inode_security_struct * isec = inode -> i_security ;\n might_sleep_if ( may_sleep ) ;\n if ( ss_initialized && isec -> initialized != LABEL_INITIALIZED ) {\n if ( ! may_sleep ) return - ECHILD ;\n inode_doinit_with_dentry ( inode , opt_dentry ) ;\n }\n return 0 ;\n }"}
{"idx": 10081, "target": 0, "func": "int archive_strncpy_l ( struct archive_string * as , const void * _p , size_t n , struct archive_string_conv * sc ) {\n as -> length = 0 ;\n return ( archive_strncat_l ( as , _p , n , sc ) ) ;\n }"}
{"idx": 10082, "target": 0, "func": "static void resume ( lua_State * L , void * ud ) {\n StkId firstArg = cast ( StkId , ud ) ;\n CallInfo * ci = L -> ci ;\n if ( L -> status == 0 ) {\n lua_assert ( ci == L -> base_ci && firstArg > L -> base ) ;\n if ( luaD_precall ( L , firstArg - 1 , LUA_MULTRET ) != PCRLUA ) return ;\n }\n else {\n lua_assert ( L -> status == LUA_YIELD ) ;\n L -> status = 0 ;\n if ( ! f_isLua ( ci ) ) {\n lua_assert ( GET_OPCODE ( * ( ( ci - 1 ) -> savedpc - 1 ) ) == OP_CALL || GET_OPCODE ( * ( ( ci - 1 ) -> savedpc - 1 ) ) == OP_TAILCALL ) ;\n if ( luaD_poscall ( L , firstArg ) ) L -> top = L -> ci -> top ;\n }\n else L -> base = L -> ci -> base ;\n }\n luaV_execute ( L , cast_int ( L -> ci - L -> base_ci ) ) ;\n }"}
{"idx": 10083, "target": 0, "func": "void check_time_sanity ( int * e ) {\n if ( start_time == ( time_t ) 0 ) error [ ( * e ) ++ ] . message = strdup ( \"Start time can't be zero or date format couldn't be recognized correctly\" ) ;\n if ( end_time == ( time_t ) 0 ) error [ ( * e ) ++ ] . message = strdup ( \"End time can't be zero or date format couldn't be recognized correctly\" ) ;\n if ( end_time < start_time ) error [ ( * e ) ++ ] . message = strdup ( \"End date before start date\" ) ;\n return ;\n }"}
{"idx": 10084, "target": 0, "func": "void * TSHttpSsnArgGet ( TSHttpSsn ssnp , int arg_idx ) {\n sdk_assert ( sdk_sanity_check_http_ssn ( ssnp ) == TS_SUCCESS ) ;\n sdk_assert ( arg_idx >= 0 && arg_idx < HTTP_SSN_TXN_MAX_USER_ARG ) ;\n ProxyClientSession * cs = reinterpret_cast < ProxyClientSession * > ( ssnp ) ;\n return cs -> get_user_arg ( arg_idx ) ;\n }"}
{"idx": 10085, "target": 0, "func": "static void ebml_free ( EbmlSyntax * syntax , void * data ) {\n int i , j ;\n for ( i = 0 ;\n syntax [ i ] . id ;\n i ++ ) {\n void * data_off = ( char * ) data + syntax [ i ] . data_offset ;\n switch ( syntax [ i ] . type ) {\n case EBML_STR : case EBML_UTF8 : av_freep ( data_off ) ;\n break ;\n case EBML_BIN : av_freep ( & ( ( EbmlBin * ) data_off ) -> data ) ;\n break ;\n case EBML_NEST : if ( syntax [ i ] . list_elem_size ) {\n EbmlList * list = data_off ;\n char * ptr = list -> elem ;\n for ( j = 0 ;\n j < list -> nb_elem ;\n j ++ , ptr += syntax [ i ] . list_elem_size ) ebml_free ( syntax [ i ] . def . n , ptr ) ;\n av_free ( list -> elem ) ;\n }\n else ebml_free ( syntax [ i ] . def . n , data_off ) ;\n default : break ;\n }\n }\n }"}
{"idx": 10086, "target": 0, "func": "static int dissect_btgatt ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n proto_item * main_item ;\n proto_tree * main_tree ;\n proto_item * patron_item = NULL ;\n bluetooth_uuid_t uuid ;\n main_item = proto_tree_add_item ( tree , ( gint ) GPOINTER_TO_UINT ( wmem_list_frame_data ( wmem_list_tail ( pinfo -> layers ) ) ) , tvb , 0 , tvb_captured_length ( tvb ) , ENC_NA ) ;\n main_tree = proto_item_add_subtree ( main_item , ett_btgatt ) ;\n if ( strlen ( pinfo -> current_proto ) > 7 ) {\n uuid . size = 2 ;\n uuid . bt_uuid = ( guint16 ) g_ascii_strtoull ( pinfo -> current_proto + strlen ( pinfo -> current_proto ) - 7 , NULL , 16 ) ;\n uuid . data [ 1 ] = uuid . bt_uuid & 0xFF ;\n uuid . data [ 0 ] = ( uuid . bt_uuid >> 8 ) & 0xFF ;\n }\n else {\n uuid . size = 2 ;\n uuid . bt_uuid = 0 ;\n }\n return dissect_attribute_value ( main_tree , patron_item , pinfo , tvb , 0 , tvb_captured_length ( tvb ) , 0 , uuid , ( btatt_data_t * ) data ) ;\n }"}
{"idx": 10087, "target": 0, "func": "static int32_t u_printf_string_handler ( const u_printf_stream_handler * handler , void * context , ULocaleBundle * formatBundle , const u_printf_spec_info * info , const ufmt_args * args ) {\n ( void ) formatBundle ;\n UChar * s ;\n UChar buffer [ UFMT_DEFAULT_BUFFER_SIZE ] ;\n int32_t len , written ;\n int32_t argSize ;\n const char * arg = ( const char * ) ( args [ 0 ] . ptrValue ) ;\n if ( arg ) {\n argSize = ( int32_t ) strlen ( arg ) + 1 ;\n if ( argSize >= MAX_UCHAR_BUFFER_SIZE ( buffer ) ) {\n s = ufmt_defaultCPToUnicode ( arg , argSize , ( UChar * ) uprv_malloc ( MAX_UCHAR_BUFFER_NEEDED ( argSize ) ) , MAX_UCHAR_BUFFER_NEEDED ( argSize ) ) ;\n if ( s == NULL ) {\n return 0 ;\n }\n }\n else {\n s = ufmt_defaultCPToUnicode ( arg , argSize , buffer , UPRV_LENGTHOF ( buffer ) ) ;\n }\n }\n else {\n s = ( UChar * ) gNullStr ;\n }\n len = u_strlen ( s ) ;\n if ( info -> fPrecision != - 1 && info -> fPrecision < len ) {\n len = info -> fPrecision ;\n }\n written = handler -> pad_and_justify ( context , info , s , len ) ;\n if ( gNullStr != s && buffer != s ) {\n uprv_free ( s ) ;\n }\n return written ;\n }"}
{"idx": 10088, "target": 0, "func": "int ff_find_unused_picture ( MpegEncContext * s , int shared ) {\n int ret = find_unused_picture ( s , shared ) ;\n if ( ret >= 0 && ret < MAX_PICTURE_COUNT ) {\n if ( s -> picture [ ret ] . needs_realloc ) {\n s -> picture [ ret ] . needs_realloc = 0 ;\n free_picture_tables ( & s -> picture [ ret ] ) ;\n ff_mpeg_unref_picture ( s , & s -> picture [ ret ] ) ;\n avcodec_get_frame_defaults ( & s -> picture [ ret ] . f ) ;\n }\n }\n return ret ;\n }"}
{"idx": 10089, "target": 0, "func": "static int dissect_s_validator_coordination_conn_inst ( packet_info * pinfo , proto_tree * tree , proto_item * item , tvbuff_t * tvb , int offset , int total_len ) {\n int i , size ;\n proto_tree_add_item ( tree , hf_cip_svalidator_coordination_conn_inst_size , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n size = tvb_get_guint8 ( tvb , offset ) * 2 ;\n if ( total_len < size + 1 ) {\n expert_add_info ( pinfo , item , & ei_mal_svalidator_coordination_conn_inst ) ;\n return total_len ;\n }\n for ( i = 0 ;\n i < size ;\n i += 2 ) {\n proto_tree_add_item ( tree , hf_cip_svalidator_coordination_conn_inst_item , tvb , offset + 1 + i , 2 , ENC_LITTLE_ENDIAN ) ;\n }\n return ( size + 1 ) ;\n }"}
{"idx": 10090, "target": 0, "func": "static void decode_zcl_ota_size_in_bytes ( gchar * s , guint32 value ) {\n g_snprintf ( s , ITEM_LABEL_LENGTH , \"%d [Bytes]\" , value ) ;\n }"}
{"idx": 10091, "target": 0, "func": "static inline void SetPixelGreen ( const Image * restrict image , const Quantum green , Quantum * restrict pixel ) {\n pixel [ image -> channel_map [ GreenPixelChannel ] . offset ] = green ;\n }"}
{"idx": 10092, "target": 0, "func": "void vp9_select_in_frame_q_segment ( VP9_COMP * cpi , int mi_row , int mi_col , int output_enabled , int projected_rate ) {\n VP9_COMMON * const cm = & cpi -> common ;\n const int mi_offset = mi_row * cm -> mi_cols + mi_col ;\n const int bw = num_8x8_blocks_wide_lookup [ BLOCK_64X64 ] ;\n const int bh = num_8x8_blocks_high_lookup [ BLOCK_64X64 ] ;\n const int xmis = MIN ( cm -> mi_cols - mi_col , bw ) ;\n const int ymis = MIN ( cm -> mi_rows - mi_row , bh ) ;\n int complexity_metric = 64 ;\n int x , y ;\n unsigned char segment ;\n if ( ! output_enabled ) {\n segment = 0 ;\n }\n else {\n const int target_rate = ( cpi -> rc . sb64_target_rate * xmis * ymis * 256 ) / ( bw * bh ) ;\n const int aq_strength = get_aq_c_strength ( cm -> base_qindex , cm -> bit_depth ) ;\n const int active_segments = aq_c_active_segments [ aq_strength ] ;\n segment = active_segments - 1 ;\n while ( segment > 0 ) {\n if ( projected_rate < ( target_rate * aq_c_transitions [ aq_strength ] [ segment ] ) ) {\n break ;\n }\n -- segment ;\n }\n if ( target_rate > 0 ) {\n complexity_metric = clamp ( ( int ) ( ( projected_rate * 64 ) / target_rate ) , 16 , 255 ) ;\n }\n }\n for ( y = 0 ;\n y < ymis ;\n y ++ ) {\n for ( x = 0 ;\n x < xmis ;\n x ++ ) {\n cpi -> segmentation_map [ mi_offset + y * cm -> mi_cols + x ] = segment ;\n cpi -> complexity_map [ mi_offset + y * cm -> mi_cols + x ] = ( unsigned char ) complexity_metric ;\n }\n }\n }"}
{"idx": 10093, "target": 0, "func": "int evdns_set_option ( const char * option , const char * val , int flags ) {\n if ( ! strncmp ( option , \"ndots:\" , 6 ) ) {\n const int ndots = strtoint ( val ) ;\n if ( ndots == - 1 ) return - 1 ;\n if ( ! ( flags & DNS_OPTION_SEARCH ) ) return 0 ;\n log ( EVDNS_LOG_DEBUG , \"Setting ndots to %d\" , ndots ) ;\n if ( ! global_search_state ) global_search_state = search_state_new ( ) ;\n if ( ! global_search_state ) return - 1 ;\n global_search_state -> ndots = ndots ;\n }\n else if ( ! strncmp ( option , \"timeout:\" , 8 ) ) {\n const int timeout = strtoint ( val ) ;\n if ( timeout == - 1 ) return - 1 ;\n if ( ! ( flags & DNS_OPTION_MISC ) ) return 0 ;\n log ( EVDNS_LOG_DEBUG , \"Setting timeout to %d\" , timeout ) ;\n global_timeout . tv_sec = timeout ;\n }\n else if ( ! strncmp ( option , \"max-timeouts:\" , 12 ) ) {\n const int maxtimeout = strtoint_clipped ( val , 1 , 255 ) ;\n if ( maxtimeout == - 1 ) return - 1 ;\n if ( ! ( flags & DNS_OPTION_MISC ) ) return 0 ;\n log ( EVDNS_LOG_DEBUG , \"Setting maximum allowed timeouts to %d\" , maxtimeout ) ;\n global_max_nameserver_timeout = maxtimeout ;\n }\n else if ( ! strncmp ( option , \"max-inflight:\" , 13 ) ) {\n const int maxinflight = strtoint_clipped ( val , 1 , 65000 ) ;\n if ( maxinflight == - 1 ) return - 1 ;\n if ( ! ( flags & DNS_OPTION_MISC ) ) return 0 ;\n log ( EVDNS_LOG_DEBUG , \"Setting maximum inflight requests to %d\" , maxinflight ) ;\n global_max_requests_inflight = maxinflight ;\n }\n else if ( ! strncmp ( option , \"attempts:\" , 9 ) ) {\n int retries = strtoint ( val ) ;\n if ( retries == - 1 ) return - 1 ;\n if ( retries > 255 ) retries = 255 ;\n if ( ! ( flags & DNS_OPTION_MISC ) ) return 0 ;\n log ( EVDNS_LOG_DEBUG , \"Setting retries to %d\" , retries ) ;\n global_max_retransmits = retries ;\n }\n return 0 ;\n }"}
{"idx": 10094, "target": 0, "func": "static bool find_window_functions_walker ( Node * node , WindowFuncLists * lists ) {\n if ( node == NULL ) return false ;\n if ( IsA ( node , WindowFunc ) ) {\n WindowFunc * wfunc = ( WindowFunc * ) node ;\n if ( wfunc -> winref > lists -> maxWinRef ) elog ( ERROR , \"WindowFunc contains out-of-range winref %u\" , wfunc -> winref ) ;\n if ( ! list_member ( lists -> windowFuncs [ wfunc -> winref ] , wfunc ) ) {\n lists -> windowFuncs [ wfunc -> winref ] = lappend ( lists -> windowFuncs [ wfunc -> winref ] , wfunc ) ;\n lists -> numWindowFuncs ++ ;\n }\n return false ;\n }\n Assert ( ! IsA ( node , SubLink ) ) ;\n return expression_tree_walker ( node , find_window_functions_walker , ( void * ) lists ) ;\n }"}
{"idx": 10095, "target": 0, "func": "static SRP_user_pwd * find_user ( SRP_VBASE * vb , char * username ) {\n int i ;\n SRP_user_pwd * user ;\n if ( vb == NULL ) return NULL ;\n for ( i = 0 ;\n i < sk_SRP_user_pwd_num ( vb -> users_pwd ) ;\n i ++ ) {\n user = sk_SRP_user_pwd_value ( vb -> users_pwd , i ) ;\n if ( strcmp ( user -> id , username ) == 0 ) return user ;\n }\n return NULL ;\n }"}
{"idx": 10096, "target": 0, "func": "TEST_F ( ProfileInfoCacheTest , AddStubProfile ) {\n EXPECT_EQ ( 0u , GetCache ( ) -> GetNumberOfProfiles ( ) ) ;\n const struct {\n const char * profile_path ;\n const char * profile_name ;\n }\n kTestCases [ ] = {\n {\n \"path.test0\" , \"name_0\" }\n , {\n \"path_test1\" , \"name_1\" }\n , {\n \"path.test2\" , \"name_2\" }\n , {\n \"path_test3\" , \"name_3\" }\n , }\n ;\n for ( size_t i = 0 ;\n i < arraysize ( kTestCases ) ;\n ++ i ) {\n base : : FilePath profile_path = GetProfilePath ( kTestCases [ i ] . profile_path ) ;\n base : : string16 profile_name = ASCIIToUTF16 ( kTestCases [ i ] . profile_name ) ;\n GetCache ( ) -> AddProfileToCache ( profile_path , profile_name , base : : string16 ( ) , i , \"\" ) ;\n EXPECT_EQ ( profile_path , GetCache ( ) -> GetPathOfProfileAtIndex ( i ) ) ;\n EXPECT_EQ ( profile_name , GetCache ( ) -> GetNameOfProfileAtIndex ( i ) ) ;\n }\n ASSERT_EQ ( 4U , GetCache ( ) -> GetNumberOfProfiles ( ) ) ;\n std : : vector < base : : string16 > names ;\n PrefService * local_state = g_browser_process -> local_state ( ) ;\n const base : : DictionaryValue * cache = local_state -> GetDictionary ( prefs : : kProfileInfoCache ) ;\n base : : string16 name ;\n for ( base : : DictionaryValue : : Iterator it ( * cache ) ;\n ! it . IsAtEnd ( ) ;\n it . Advance ( ) ) {\n const base : : DictionaryValue * info = NULL ;\n it . value ( ) . GetAsDictionary ( & info ) ;\n info -> GetString ( \"name\" , & name ) ;\n names . push_back ( name ) ;\n }\n for ( size_t i = 0 ;\n i < 4 ;\n i ++ ) ASSERT_FALSE ( names [ i ] . empty ( ) ) ;\n }"}
{"idx": 10097, "target": 0, "func": "static int dissect_h245_CallInformationReq ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_CallInformationReq , CallInformationReq_sequence ) ;\n return offset ;\n }"}
{"idx": 10098, "target": 0, "func": "void hb_set_symmetric_difference ( hb_set_t * set , const hb_set_t * other ) {\n set -> symmetric_difference ( other ) ;\n }"}
{"idx": 10099, "target": 1, "func": "void bn_mul_comba8 ( BN_ULONG * r , BN_ULONG * a , BN_ULONG * b ) {\n BN_ULONG t1 , t2 ;\n BN_ULONG c1 , c2 , c3 ;\n c1 = 0 ;\n c2 = 0 ;\n c3 = 0 ;\n mul_add_c ( a [ 0 ] , b [ 0 ] , c1 , c2 , c3 ) ;\n r [ 0 ] = c1 ;\n c1 = 0 ;\n mul_add_c ( a [ 0 ] , b [ 1 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 1 ] , b [ 0 ] , c2 , c3 , c1 ) ;\n r [ 1 ] = c2 ;\n c2 = 0 ;\n mul_add_c ( a [ 2 ] , b [ 0 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 1 ] , b [ 1 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 0 ] , b [ 2 ] , c3 , c1 , c2 ) ;\n r [ 2 ] = c3 ;\n c3 = 0 ;\n mul_add_c ( a [ 0 ] , b [ 3 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 1 ] , b [ 2 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 2 ] , b [ 1 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 3 ] , b [ 0 ] , c1 , c2 , c3 ) ;\n r [ 3 ] = c1 ;\n c1 = 0 ;\n mul_add_c ( a [ 4 ] , b [ 0 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 3 ] , b [ 1 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 2 ] , b [ 2 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 1 ] , b [ 3 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 0 ] , b [ 4 ] , c2 , c3 , c1 ) ;\n r [ 4 ] = c2 ;\n c2 = 0 ;\n mul_add_c ( a [ 0 ] , b [ 5 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 1 ] , b [ 4 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 2 ] , b [ 3 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 3 ] , b [ 2 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 4 ] , b [ 1 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 5 ] , b [ 0 ] , c3 , c1 , c2 ) ;\n r [ 5 ] = c3 ;\n c3 = 0 ;\n mul_add_c ( a [ 6 ] , b [ 0 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 5 ] , b [ 1 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 4 ] , b [ 2 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 3 ] , b [ 3 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 2 ] , b [ 4 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 1 ] , b [ 5 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 0 ] , b [ 6 ] , c1 , c2 , c3 ) ;\n r [ 6 ] = c1 ;\n c1 = 0 ;\n mul_add_c ( a [ 0 ] , b [ 7 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 1 ] , b [ 6 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 2 ] , b [ 5 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 3 ] , b [ 4 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 4 ] , b [ 3 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 5 ] , b [ 2 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 6 ] , b [ 1 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 7 ] , b [ 0 ] , c2 , c3 , c1 ) ;\n r [ 7 ] = c2 ;\n c2 = 0 ;\n mul_add_c ( a [ 7 ] , b [ 1 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 6 ] , b [ 2 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 5 ] , b [ 3 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 4 ] , b [ 4 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 3 ] , b [ 5 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 2 ] , b [ 6 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 1 ] , b [ 7 ] , c3 , c1 , c2 ) ;\n r [ 8 ] = c3 ;\n c3 = 0 ;\n mul_add_c ( a [ 2 ] , b [ 7 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 3 ] , b [ 6 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 4 ] , b [ 5 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 5 ] , b [ 4 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 6 ] , b [ 3 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 7 ] , b [ 2 ] , c1 , c2 , c3 ) ;\n r [ 9 ] = c1 ;\n c1 = 0 ;\n mul_add_c ( a [ 7 ] , b [ 3 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 6 ] , b [ 4 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 5 ] , b [ 5 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 4 ] , b [ 6 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 3 ] , b [ 7 ] , c2 , c3 , c1 ) ;\n r [ 10 ] = c2 ;\n c2 = 0 ;\n mul_add_c ( a [ 4 ] , b [ 7 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 5 ] , b [ 6 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 6 ] , b [ 5 ] , c3 , c1 , c2 ) ;\n mul_add_c ( a [ 7 ] , b [ 4 ] , c3 , c1 , c2 ) ;\n r [ 11 ] = c3 ;\n c3 = 0 ;\n mul_add_c ( a [ 7 ] , b [ 5 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 6 ] , b [ 6 ] , c1 , c2 , c3 ) ;\n mul_add_c ( a [ 5 ] , b [ 7 ] , c1 , c2 , c3 ) ;\n r [ 12 ] = c1 ;\n c1 = 0 ;\n mul_add_c ( a [ 6 ] , b [ 7 ] , c2 , c3 , c1 ) ;\n mul_add_c ( a [ 7 ] , b [ 6 ] , c2 , c3 , c1 ) ;\n r [ 13 ] = c2 ;\n c2 = 0 ;\n mul_add_c ( a [ 7 ] , b [ 7 ] , c3 , c1 , c2 ) ;\n r [ 14 ] = c3 ;\n r [ 15 ] = c1 ;\n }"}
{"idx": 10100, "target": 0, "func": "static void build_intra_predictors ( const MACROBLOCKD * xd , const uint8_t * ref , int ref_stride , uint8_t * dst , int dst_stride , PREDICTION_MODE mode , TX_SIZE tx_size , int up_available , int left_available , int right_available , int x , int y , int plane ) {\n int i ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , left_col , 64 ) ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , above_data , 128 + 16 ) ;\n uint8_t * above_row = above_data + 16 ;\n const uint8_t * const_above_row = above_row ;\n const int bs = 4 << tx_size ;\n int frame_width , frame_height ;\n int x0 , y0 ;\n const struct macroblockd_plane * const pd = & xd -> plane [ plane ] ;\n if ( plane == 0 ) {\n frame_width = xd -> cur_buf -> y_width ;\n frame_height = xd -> cur_buf -> y_height ;\n }\n else {\n frame_width = xd -> cur_buf -> uv_width ;\n frame_height = xd -> cur_buf -> uv_height ;\n }\n x0 = ( - xd -> mb_to_left_edge >> ( 3 + pd -> subsampling_x ) ) + x ;\n y0 = ( - xd -> mb_to_top_edge >> ( 3 + pd -> subsampling_y ) ) + y ;\n vpx_memset ( left_col , 129 , 64 ) ;\n if ( left_available ) {\n if ( xd -> mb_to_bottom_edge < 0 ) {\n if ( y0 + bs <= frame_height ) {\n for ( i = 0 ;\n i < bs ;\n ++ i ) left_col [ i ] = ref [ i * ref_stride - 1 ] ;\n }\n else {\n const int extend_bottom = frame_height - y0 ;\n for ( i = 0 ;\n i < extend_bottom ;\n ++ i ) left_col [ i ] = ref [ i * ref_stride - 1 ] ;\n for ( ;\n i < bs ;\n ++ i ) left_col [ i ] = ref [ ( extend_bottom - 1 ) * ref_stride - 1 ] ;\n }\n }\n else {\n for ( i = 0 ;\n i < bs ;\n ++ i ) left_col [ i ] = ref [ i * ref_stride - 1 ] ;\n }\n }\n if ( up_available ) {\n const uint8_t * above_ref = ref - ref_stride ;\n if ( xd -> mb_to_right_edge < 0 ) {\n if ( x0 + 2 * bs <= frame_width ) {\n if ( right_available && bs == 4 ) {\n vpx_memcpy ( above_row , above_ref , 2 * bs ) ;\n }\n else {\n vpx_memcpy ( above_row , above_ref , bs ) ;\n vpx_memset ( above_row + bs , above_row [ bs - 1 ] , bs ) ;\n }\n }\n else if ( x0 + bs <= frame_width ) {\n const int r = frame_width - x0 ;\n if ( right_available && bs == 4 ) {\n vpx_memcpy ( above_row , above_ref , r ) ;\n vpx_memset ( above_row + r , above_row [ r - 1 ] , x0 + 2 * bs - frame_width ) ;\n }\n else {\n vpx_memcpy ( above_row , above_ref , bs ) ;\n vpx_memset ( above_row + bs , above_row [ bs - 1 ] , bs ) ;\n }\n }\n else if ( x0 <= frame_width ) {\n const int r = frame_width - x0 ;\n if ( right_available && bs == 4 ) {\n vpx_memcpy ( above_row , above_ref , r ) ;\n vpx_memset ( above_row + r , above_row [ r - 1 ] , x0 + 2 * bs - frame_width ) ;\n }\n else {\n vpx_memcpy ( above_row , above_ref , r ) ;\n vpx_memset ( above_row + r , above_row [ r - 1 ] , x0 + 2 * bs - frame_width ) ;\n }\n }\n above_row [ - 1 ] = left_available ? above_ref [ - 1 ] : 129 ;\n }\n else {\n if ( bs == 4 && right_available && left_available ) {\n const_above_row = above_ref ;\n }\n else {\n vpx_memcpy ( above_row , above_ref , bs ) ;\n if ( bs == 4 && right_available ) vpx_memcpy ( above_row + bs , above_ref + bs , bs ) ;\n else vpx_memset ( above_row + bs , above_row [ bs - 1 ] , bs ) ;\n above_row [ - 1 ] = left_available ? above_ref [ - 1 ] : 129 ;\n }\n }\n }\n else {\n vpx_memset ( above_row , 127 , bs * 2 ) ;\n above_row [ - 1 ] = 127 ;\n }\n if ( mode == DC_PRED ) {\n dc_pred [ left_available ] [ up_available ] [ tx_size ] ( dst , dst_stride , const_above_row , left_col ) ;\n }\n else {\n pred [ mode ] [ tx_size ] ( dst , dst_stride , const_above_row , left_col ) ;\n }\n }"}
{"idx": 10101, "target": 0, "func": "static int selinux_binder_set_context_mgr ( struct task_struct * mgr ) {\n u32 mysid = current_sid ( ) ;\n u32 mgrsid = task_sid ( mgr ) ;\n return avc_has_perm ( mysid , mgrsid , SECCLASS_BINDER , BINDER__SET_CONTEXT_MGR , NULL ) ;\n }"}
{"idx": 10102, "target": 0, "func": "void free_used_memory ( ) {\n uint i ;\n DBUG_ENTER ( \"free_used_memory\" ) ;\n if ( connections ) close_connections ( ) ;\n close_files ( ) ;\n my_hash_free ( & var_hash ) ;\n for ( i = 0 ;\n i < q_lines . elements ;\n i ++ ) {\n struct st_command * * q = dynamic_element ( & q_lines , i , struct st_command * * ) ;\n my_free ( ( * q ) -> query_buf ) ;\n if ( ( * q ) -> eval_query . str ) dynstr_free ( & ( * q ) -> eval_query ) ;\n if ( ( * q ) -> content . str ) dynstr_free ( & ( * q ) -> content ) ;\n my_free ( ( * q ) ) ;\n }\n for ( i = 0 ;\n i < 10 ;\n i ++ ) {\n if ( var_reg [ i ] . alloced_len ) my_free ( var_reg [ i ] . str_val ) ;\n }\n while ( embedded_server_arg_count > 1 ) my_free ( embedded_server_args [ -- embedded_server_arg_count ] ) ;\n delete_dynamic ( & q_lines ) ;\n dynstr_free ( & ds_res ) ;\n if ( ds_warn ) dynstr_free ( ds_warn ) ;\n free_all_replace ( ) ;\n my_free ( opt_pass ) ;\n free_defaults ( default_argv ) ;\n free_root ( & require_file_root , MYF ( 0 ) ) ;\n free_re ( ) ;\n # ifdef __WIN__ free_tmp_sh_file ( ) ;\n free_win_path_patterns ( ) ;\n # endif DBUG_VOID_RETURN ;\n }"}
{"idx": 10103, "target": 0, "func": "int gs_pop_boolean ( gs_main_instance * minst , bool * result ) {\n i_ctx_t * i_ctx_p = minst -> i_ctx_p ;\n ref vref ;\n int code = pop_value ( i_ctx_p , & vref ) ;\n if ( code < 0 ) return code ;\n check_type_only ( vref , t_boolean ) ;\n * result = vref . value . boolval ;\n ref_stack_pop ( & o_stack , 1 ) ;\n return 0 ;\n }"}
{"idx": 10104, "target": 0, "func": "static void interpolate ( float * out , float v1 , float v2 , int size ) {\n int i ;\n float step = ( v1 - v2 ) / ( size + 1 ) ;\n for ( i = 0 ;\n i < size ;\n i ++ ) {\n v2 += step ;\n out [ i ] = v2 ;\n }\n }"}
{"idx": 10105, "target": 0, "func": "int qemuAgentSetTime ( qemuAgentPtr mon , long long seconds , unsigned int nseconds , bool rtcSync ) {\n int ret = - 1 ;\n virJSONValuePtr cmd ;\n virJSONValuePtr reply = NULL ;\n if ( rtcSync ) {\n cmd = qemuAgentMakeCommand ( \"guest-set-time\" , NULL ) ;\n }\n else {\n long long json_time ;\n if ( seconds > LLONG_MAX / 1000000000LL ) {\n virReportError ( VIR_ERR_INVALID_ARG , _ ( \"Time '%lld' is too big for guest agent\" ) , seconds ) ;\n return ret ;\n }\n json_time = seconds * 1000000000LL ;\n json_time += nseconds ;\n cmd = qemuAgentMakeCommand ( \"guest-set-time\" , \"I:time\" , json_time , NULL ) ;\n }\n if ( ! cmd ) return ret ;\n if ( qemuAgentCommand ( mon , cmd , & reply , true , VIR_DOMAIN_QEMU_AGENT_COMMAND_BLOCK ) < 0 ) goto cleanup ;\n ret = 0 ;\n cleanup : virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 10106, "target": 0, "func": "static int tta_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n TTAContext * s = avctx -> priv_data ;\n int i , ret ;\n int cur_chan = 0 , framelen = s -> frame_length ;\n int32_t * p ;\n if ( avctx -> err_recognition & AV_EF_CRCCHECK ) {\n if ( buf_size < 4 || tta_check_crc ( s , buf , buf_size - 4 ) ) return AVERROR_INVALIDDATA ;\n }\n init_get_bits ( & s -> gb , buf , buf_size * 8 ) ;\n frame -> nb_samples = framelen ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( s -> bps == 3 ) s -> decode_buffer = ( int32_t * ) frame -> data [ 0 ] ;\n for ( i = 0 ;\n i < s -> channels ;\n i ++ ) {\n s -> ch_ctx [ i ] . predictor = 0 ;\n ttafilter_init ( & s -> ch_ctx [ i ] . filter , ttafilter_configs [ s -> bps - 1 ] ) ;\n rice_init ( & s -> ch_ctx [ i ] . rice , 10 , 10 ) ;\n }\n i = 0 ;\n for ( p = s -> decode_buffer ;\n p < s -> decode_buffer + ( framelen * s -> channels ) ;\n p ++ ) {\n int32_t * predictor = & s -> ch_ctx [ cur_chan ] . predictor ;\n TTAFilter * filter = & s -> ch_ctx [ cur_chan ] . filter ;\n TTARice * rice = & s -> ch_ctx [ cur_chan ] . rice ;\n uint32_t unary , depth , k ;\n int32_t value ;\n unary = tta_get_unary ( & s -> gb ) ;\n if ( unary == 0 ) {\n depth = 0 ;\n k = rice -> k0 ;\n }\n else {\n depth = 1 ;\n k = rice -> k1 ;\n unary -- ;\n }\n if ( get_bits_left ( & s -> gb ) < k ) {\n ret = AVERROR_INVALIDDATA ;\n goto error ;\n }\n if ( k ) {\n if ( k > MIN_CACHE_BITS ) {\n ret = AVERROR_INVALIDDATA ;\n goto error ;\n }\n value = ( unary << k ) + get_bits ( & s -> gb , k ) ;\n }\n else value = unary ;\n switch ( depth ) {\n case 1 : rice -> sum1 += value - ( rice -> sum1 >> 4 ) ;\n if ( rice -> k1 > 0 && rice -> sum1 < shift_16 [ rice -> k1 ] ) rice -> k1 -- ;\n else if ( rice -> sum1 > shift_16 [ rice -> k1 + 1 ] ) rice -> k1 ++ ;\n value += shift_1 [ rice -> k0 ] ;\n default : rice -> sum0 += value - ( rice -> sum0 >> 4 ) ;\n if ( rice -> k0 > 0 && rice -> sum0 < shift_16 [ rice -> k0 ] ) rice -> k0 -- ;\n else if ( rice -> sum0 > shift_16 [ rice -> k0 + 1 ] ) rice -> k0 ++ ;\n }\n * p = 1 + ( ( value >> 1 ) ^ ( ( value & 1 ) - 1 ) ) ;\n ttafilter_process ( filter , p ) ;\n # define PRED ( x , k ) ( int32_t ) ( ( ( ( uint64_t ) x << k ) - x ) >> k ) switch ( s -> bps ) {\n case 1 : * p += PRED ( * predictor , 4 ) ;\n break ;\n case 2 : case 3 : * p += PRED ( * predictor , 5 ) ;\n break ;\n case 4 : * p += * predictor ;\n break ;\n }\n * predictor = * p ;\n if ( cur_chan < ( s -> channels - 1 ) ) cur_chan ++ ;\n else {\n if ( s -> channels > 1 ) {\n int32_t * r = p - 1 ;\n for ( * p += * r / 2 ;\n r > p - s -> channels ;\n r -- ) * r = * ( r + 1 ) - * r ;\n }\n cur_chan = 0 ;\n i ++ ;\n if ( i == s -> last_frame_length && get_bits_left ( & s -> gb ) / 8 == 4 ) {\n frame -> nb_samples = framelen = s -> last_frame_length ;\n break ;\n }\n }\n }\n align_get_bits ( & s -> gb ) ;\n if ( get_bits_left ( & s -> gb ) < 32 ) {\n ret = AVERROR_INVALIDDATA ;\n goto error ;\n }\n skip_bits_long ( & s -> gb , 32 ) ;\n if ( s -> bps == 2 ) {\n int16_t * samples = ( int16_t * ) frame -> data [ 0 ] ;\n for ( p = s -> decode_buffer ;\n p < s -> decode_buffer + ( framelen * s -> channels ) ;\n p ++ ) * samples ++ = * p ;\n }\n else {\n int32_t * samples = ( int32_t * ) frame -> data [ 0 ] ;\n for ( i = 0 ;\n i < framelen * s -> channels ;\n i ++ ) * samples ++ <<= 8 ;\n s -> decode_buffer = NULL ;\n }\n * got_frame_ptr = 1 ;\n return buf_size ;\n error : if ( s -> bps == 3 ) s -> decode_buffer = NULL ;\n return ret ;\n }"}
{"idx": 10107, "target": 0, "func": "static int selinux_task_getsid ( struct task_struct * p ) {\n return current_has_perm ( p , PROCESS__GETSESSION ) ;\n }"}
{"idx": 10108, "target": 0, "func": "void nautilus_directory_add_file_to_work_queue ( NautilusDirectory * directory , NautilusFile * file ) {\n g_return_if_fail ( file -> details -> directory == directory ) ;\n nautilus_file_queue_enqueue ( directory -> details -> high_priority_queue , file ) ;\n }"}
{"idx": 10109, "target": 1, "func": "static void dovec ( struct vars * v , struct cvec * cv , struct state * lp , struct state * rp ) {\n chr ch , from , to ;\n const chr * p ;\n int i ;\n for ( p = cv -> chrs , i = cv -> nchrs ;\n i > 0 ;\n p ++ , i -- ) {\n ch = * p ;\n newarc ( v -> nfa , PLAIN , subcolor ( v -> cm , ch ) , lp , rp ) ;\n }\n for ( p = cv -> ranges , i = cv -> nranges ;\n i > 0 ;\n p += 2 , i -- ) {\n from = * p ;\n to = * ( p + 1 ) ;\n if ( from <= to ) subrange ( v , from , to , lp , rp ) ;\n }\n }"}
{"idx": 10110, "target": 0, "func": "SPL_METHOD ( SplFileObject , fflush ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n RETURN_BOOL ( ! php_stream_flush ( intern -> u . file . stream ) ) ;\n }"}
{"idx": 10111, "target": 0, "func": "Selectivity booltestsel ( PlannerInfo * root , BoolTestType booltesttype , Node * arg , int varRelid , JoinType jointype , SpecialJoinInfo * sjinfo ) {\n VariableStatData vardata ;\n double selec ;\n examine_variable ( root , arg , varRelid , & vardata ) ;\n if ( HeapTupleIsValid ( vardata . statsTuple ) ) {\n Form_pg_statistic stats ;\n double freq_null ;\n Datum * values ;\n int nvalues ;\n float4 * numbers ;\n int nnumbers ;\n stats = ( Form_pg_statistic ) GETSTRUCT ( vardata . statsTuple ) ;\n freq_null = stats -> stanullfrac ;\n if ( get_attstatsslot ( vardata . statsTuple , vardata . atttype , vardata . atttypmod , STATISTIC_KIND_MCV , InvalidOid , NULL , & values , & nvalues , & numbers , & nnumbers ) && nnumbers > 0 ) {\n double freq_true ;\n double freq_false ;\n if ( DatumGetBool ( values [ 0 ] ) ) freq_true = numbers [ 0 ] ;\n else freq_true = 1.0 - numbers [ 0 ] - freq_null ;\n freq_false = 1.0 - freq_true - freq_null ;\n switch ( booltesttype ) {\n case IS_UNKNOWN : selec = freq_null ;\n break ;\n case IS_NOT_UNKNOWN : selec = 1.0 - freq_null ;\n break ;\n case IS_TRUE : selec = freq_true ;\n break ;\n case IS_NOT_TRUE : selec = 1.0 - freq_true ;\n break ;\n case IS_FALSE : selec = freq_false ;\n break ;\n case IS_NOT_FALSE : selec = 1.0 - freq_false ;\n break ;\n default : elog ( ERROR , \"unrecognized booltesttype: %d\" , ( int ) booltesttype ) ;\n selec = 0.0 ;\n break ;\n }\n free_attstatsslot ( vardata . atttype , values , nvalues , numbers , nnumbers ) ;\n }\n else {\n switch ( booltesttype ) {\n case IS_UNKNOWN : selec = freq_null ;\n break ;\n case IS_NOT_UNKNOWN : selec = 1.0 - freq_null ;\n break ;\n case IS_TRUE : case IS_FALSE : selec = ( 1.0 - freq_null ) / 2.0 ;\n break ;\n case IS_NOT_TRUE : case IS_NOT_FALSE : selec = ( freq_null + 1.0 ) / 2.0 ;\n break ;\n default : elog ( ERROR , \"unrecognized booltesttype: %d\" , ( int ) booltesttype ) ;\n selec = 0.0 ;\n break ;\n }\n }\n }\n else {\n switch ( booltesttype ) {\n case IS_UNKNOWN : selec = DEFAULT_UNK_SEL ;\n break ;\n case IS_NOT_UNKNOWN : selec = DEFAULT_NOT_UNK_SEL ;\n break ;\n case IS_TRUE : case IS_NOT_FALSE : selec = ( double ) clause_selectivity ( root , arg , varRelid , jointype , sjinfo ) ;\n break ;\n case IS_FALSE : case IS_NOT_TRUE : selec = 1.0 - ( double ) clause_selectivity ( root , arg , varRelid , jointype , sjinfo ) ;\n break ;\n default : elog ( ERROR , \"unrecognized booltesttype: %d\" , ( int ) booltesttype ) ;\n selec = 0.0 ;\n break ;\n }\n }\n ReleaseVariableStats ( vardata ) ;\n CLAMP_PROBABILITY ( selec ) ;\n return ( Selectivity ) selec ;\n }"}
{"idx": 10112, "target": 0, "func": "static inline void e1000e_intrmgr_fire_delayed_interrupts ( E1000ECore * core ) {\n trace_e1000e_irq_fire_delayed_interrupts ( ) ;\n e1000e_set_interrupt_cause ( core , 0 ) ;\n }"}
{"idx": 10113, "target": 0, "func": "static void update_remote_info_refs ( struct remote_lock * lock ) {\n struct buffer buffer = {\n STRBUF_INIT , 0 }\n ;\n struct active_request_slot * slot ;\n struct slot_results results ;\n struct curl_slist * dav_headers ;\n remote_ls ( \"refs/\" , ( PROCESS_FILES | RECURSIVE ) , add_remote_info_ref , & buffer . buf ) ;\n if ( ! aborted ) {\n dav_headers = get_dav_token_headers ( lock , DAV_HEADER_IF ) ;\n slot = get_active_slot ( ) ;\n slot -> results = & results ;\n curl_setup_http ( slot -> curl , lock -> url , DAV_PUT , & buffer , fwrite_null ) ;\n curl_easy_setopt ( slot -> curl , CURLOPT_HTTPHEADER , dav_headers ) ;\n if ( start_active_slot ( slot ) ) {\n run_active_slot ( slot ) ;\n if ( results . curl_result != CURLE_OK ) {\n fprintf ( stderr , \"PUT error: curl result=%d, HTTP code=%ld\\n\" , results . curl_result , results . http_code ) ;\n }\n }\n }\n strbuf_release ( & buffer . buf ) ;\n }"}
{"idx": 10114, "target": 0, "func": "static int dissect_h245_FEC_mode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_FEC_mode , FEC_mode_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 10115, "target": 0, "func": "static void end_timer ( ulong start_time , char * buff ) {\n nice_time ( ( double ) ( start_timer ( ) - start_time ) / CLOCKS_PER_SEC , buff , 1 ) ;\n }"}
{"idx": 10116, "target": 1, "func": "void dissect_q931_cause_ie ( tvbuff_t * tvb , int offset , int len , proto_tree * tree , int hf_cause_value , guint8 * cause_value , const value_string * ie_vals ) {\n gboolean have_valid_q931_pi_save = have_valid_q931_pi ;\n have_valid_q931_pi = FALSE ;\n dissect_q931_cause_ie_unsafe ( tvb , offset , len , tree , hf_cause_value , cause_value , ie_vals ) ;\n have_valid_q931_pi = have_valid_q931_pi_save ;\n }"}
{"idx": 10117, "target": 0, "func": "static int dissect_pvfs2_mgmt_event_mon_response ( tvbuff_t * tvb , proto_tree * tree , int offset ) {\n proto_tree_add_item ( tree , hf_pvfs_mgmt_event_mon_response_api , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_pvfs_mgmt_event_mon_response_operation , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_pvfs_mgmt_event_mon_response_value , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n offset = dissect_pvfs_uint64 ( tvb , tree , offset , hf_pvfs_id_gen_t , NULL ) ;\n proto_tree_add_item ( tree , hf_pvfs_mgmt_event_mon_response_flags , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_pvfs_mgmt_event_mon_response_tv_sec , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_pvfs_mgmt_event_mon_response_tv_usec , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n offset += 4 ;\n return offset ;\n }"}
{"idx": 10118, "target": 1, "func": "static void language_destroy ( hb_language_t * l ) {\n free ( l ) ;\n }"}
{"idx": 10119, "target": 0, "func": "static int pfkey_send_policy_notify ( struct xfrm_policy * xp , int dir , const struct km_event * c ) {\n if ( xp && xp -> type != XFRM_POLICY_TYPE_MAIN ) return 0 ;\n switch ( c -> event ) {\n case XFRM_MSG_POLEXPIRE : return key_notify_policy_expire ( xp , c ) ;\n case XFRM_MSG_DELPOLICY : case XFRM_MSG_NEWPOLICY : case XFRM_MSG_UPDPOLICY : return key_notify_policy ( xp , dir , c ) ;\n case XFRM_MSG_FLUSHPOLICY : if ( c -> data . type != XFRM_POLICY_TYPE_MAIN ) break ;\n return key_notify_policy_flush ( c ) ;\n default : pr_err ( \"pfkey: Unknown policy event %d\\n\" , c -> event ) ;\n break ;\n }\n return 0 ;\n }"}
{"idx": 10120, "target": 0, "func": "static void ohci_set_frame_interval ( OHCIState * ohci , uint16_t val ) {\n val &= OHCI_FMI_FI ;\n if ( val != ohci -> fi ) {\n trace_usb_ohci_set_frame_interval ( ohci -> name , ohci -> fi , ohci -> fi ) ;\n }\n ohci -> fi = val ;\n }"}
{"idx": 10121, "target": 0, "func": "void get_basename ( char * basename , const char * filename ) {\n const char * lastSlash = uprv_strrchr ( filename , U_FILE_SEP_CHAR ) + 1 ;\n char * lastDot ;\n if ( lastSlash > filename ) {\n uprv_strcpy ( basename , lastSlash ) ;\n }\n else {\n uprv_strcpy ( basename , filename ) ;\n }\n lastDot = uprv_strrchr ( basename , '.' ) ;\n if ( lastDot != NULL ) {\n * lastDot = '\\0' ;\n }\n }"}
{"idx": 10122, "target": 0, "func": "static void imc_imdct256 ( IMCContext * q , IMCChannel * chctx , int channels ) {\n int i ;\n float re , im ;\n float * dst1 = q -> out_samples ;\n float * dst2 = q -> out_samples + ( COEFFS - 1 ) ;\n for ( i = 0 ;\n i < COEFFS / 2 ;\n i ++ ) {\n q -> samples [ i ] . re = - ( q -> pre_coef1 [ i ] * chctx -> CWdecoded [ COEFFS - 1 - i * 2 ] ) - ( q -> pre_coef2 [ i ] * chctx -> CWdecoded [ i * 2 ] ) ;\n q -> samples [ i ] . im = ( q -> pre_coef2 [ i ] * chctx -> CWdecoded [ COEFFS - 1 - i * 2 ] ) - ( q -> pre_coef1 [ i ] * chctx -> CWdecoded [ i * 2 ] ) ;\n }\n q -> fft . fft_permute ( & q -> fft , q -> samples ) ;\n q -> fft . fft_calc ( & q -> fft , q -> samples ) ;\n for ( i = 0 ;\n i < COEFFS / 2 ;\n i ++ ) {\n re = ( q -> samples [ i ] . re * q -> post_cos [ i ] ) + ( - q -> samples [ i ] . im * q -> post_sin [ i ] ) ;\n im = ( - q -> samples [ i ] . im * q -> post_cos [ i ] ) - ( q -> samples [ i ] . re * q -> post_sin [ i ] ) ;\n * dst1 = ( q -> mdct_sine_window [ COEFFS - 1 - i * 2 ] * chctx -> last_fft_im [ i ] ) + ( q -> mdct_sine_window [ i * 2 ] * re ) ;\n * dst2 = ( q -> mdct_sine_window [ i * 2 ] * chctx -> last_fft_im [ i ] ) - ( q -> mdct_sine_window [ COEFFS - 1 - i * 2 ] * re ) ;\n dst1 += 2 ;\n dst2 -= 2 ;\n chctx -> last_fft_im [ i ] = im ;\n }\n }"}
{"idx": 10123, "target": 1, "func": "static Selectivity calc_arraycontsel ( VariableStatData * vardata , Datum constval , Oid elemtype , Oid operator ) {\n Selectivity selec ;\n TypeCacheEntry * typentry ;\n FmgrInfo * cmpfunc ;\n ArrayType * array ;\n typentry = lookup_type_cache ( elemtype , TYPECACHE_CMP_PROC_FINFO ) ;\n if ( ! OidIsValid ( typentry -> cmp_proc_finfo . fn_oid ) ) return DEFAULT_SEL ( operator ) ;\n cmpfunc = & typentry -> cmp_proc_finfo ;\n array = DatumGetArrayTypeP ( constval ) ;\n if ( HeapTupleIsValid ( vardata -> statsTuple ) ) {\n Form_pg_statistic stats ;\n Datum * values ;\n int nvalues ;\n float4 * numbers ;\n int nnumbers ;\n float4 * hist ;\n int nhist ;\n stats = ( Form_pg_statistic ) GETSTRUCT ( vardata -> statsTuple ) ;\n if ( get_attstatsslot ( vardata -> statsTuple , elemtype , vardata -> atttypmod , STATISTIC_KIND_MCELEM , InvalidOid , NULL , & values , & nvalues , & numbers , & nnumbers ) ) {\n if ( operator != OID_ARRAY_CONTAINED_OP || ! get_attstatsslot ( vardata -> statsTuple , elemtype , vardata -> atttypmod , STATISTIC_KIND_DECHIST , InvalidOid , NULL , NULL , NULL , & hist , & nhist ) ) {\n hist = NULL ;\n nhist = 0 ;\n }\n selec = mcelem_array_selec ( array , typentry , values , nvalues , numbers , nnumbers , hist , nhist , operator , cmpfunc ) ;\n if ( hist ) free_attstatsslot ( elemtype , NULL , 0 , hist , nhist ) ;\n free_attstatsslot ( elemtype , values , nvalues , numbers , nnumbers ) ;\n }\n else {\n selec = mcelem_array_selec ( array , typentry , NULL , 0 , NULL , 0 , NULL , 0 , operator , cmpfunc ) ;\n }\n selec *= ( 1.0 - stats -> stanullfrac ) ;\n }\n else {\n selec = mcelem_array_selec ( array , typentry , NULL , 0 , NULL , 0 , NULL , 0 , operator , cmpfunc ) ;\n }\n if ( PointerGetDatum ( array ) != constval ) pfree ( array ) ;\n return selec ;\n }"}
{"idx": 10124, "target": 0, "func": "static int phar_tar_octal ( char * buf , php_uint32 val , int len ) {\n char * p = buf ;\n int s = len ;\n p += len ;\n while ( s -- > 0 ) {\n * -- p = ( char ) ( '0' + ( val & 7 ) ) ;\n val >>= 3 ;\n }\n if ( val == 0 ) return SUCCESS ;\n while ( len -- > 0 ) * p ++ = '7' ;\n return FAILURE ;\n }"}
{"idx": 10125, "target": 0, "func": "static hb_ ## name ## _t * _hb_ ## name ## _reference ( const hb_ ## name ## _t * l ) {\n hb_ ## name ## _t * c = ( hb_ ## name ## _t * ) calloc ( 1 , sizeof ( hb_ ## name ## _t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * l ;\n return c ;\n }\n static void _hb_ ## name ## _destroy ( hb_ ## name ## _t * l ) {\n free ( l ) ;\n }\n HB_DEFINE_BOXED_TYPE ( name , _hb_ ## name ## _reference , _hb_ ## name ## _destroy ) ;\n HB_DEFINE_OBJECT_TYPE ( buffer ) HB_DEFINE_OBJECT_TYPE ( blob ) HB_DEFINE_OBJECT_TYPE ( face ) HB_DEFINE_OBJECT_TYPE ( font ) HB_DEFINE_OBJECT_TYPE ( font_funcs ) HB_DEFINE_OBJECT_TYPE ( set ) HB_DEFINE_OBJECT_TYPE ( shape_plan ) HB_DEFINE_OBJECT_TYPE ( unicode_funcs ) HB_DEFINE_VALUE_TYPE ( feature ) HB_DEFINE_VALUE_TYPE ( glyph_info ) HB_DEFINE_VALUE_TYPE ( glyph_position ) HB_DEFINE_VALUE_TYPE ( segment_properties )"}
{"idx": 10126, "target": 0, "func": "int ff_msmpeg4_decode_motion ( MpegEncContext * s , int * mx_ptr , int * my_ptr ) {\n MVTable * mv ;\n int code , mx , my ;\n mv = & ff_mv_tables [ s -> mv_table_index ] ;\n code = get_vlc2 ( & s -> gb , mv -> vlc . table , MV_VLC_BITS , 2 ) ;\n if ( code < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"illegal MV code at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n if ( code == mv -> n ) {\n mx = get_bits ( & s -> gb , 6 ) ;\n my = get_bits ( & s -> gb , 6 ) ;\n }\n else {\n mx = mv -> table_mvx [ code ] ;\n my = mv -> table_mvy [ code ] ;\n }\n mx += * mx_ptr - 32 ;\n my += * my_ptr - 32 ;\n if ( mx <= - 64 ) mx += 64 ;\n else if ( mx >= 64 ) mx -= 64 ;\n if ( my <= - 64 ) my += 64 ;\n else if ( my >= 64 ) my -= 64 ;\n * mx_ptr = mx ;\n * my_ptr = my ;\n return 0 ;\n }"}
{"idx": 10127, "target": 0, "func": "static void ImportGrayQuantum ( const Image * image , QuantumInfo * quantum_info , const MagickSizeType number_pixels , const unsigned char * magick_restrict p , Quantum * magick_restrict q , ExceptionInfo * exception ) {\n QuantumAny range ;\n register ssize_t x ;\n ssize_t bit ;\n unsigned int pixel ;\n assert ( image != ( Image * ) NULL ) ;\n assert ( image -> signature == MagickCoreSignature ) ;\n switch ( quantum_info -> depth ) {\n case 1 : {\n register Quantum black , white ;\n black = 0 ;\n white = QuantumRange ;\n if ( quantum_info -> min_is_white != MagickFalse ) {\n black = QuantumRange ;\n white = 0 ;\n }\n for ( x = 0 ;\n x < ( ( ssize_t ) number_pixels - 7 ) ;\n x += 8 ) {\n for ( bit = 0 ;\n bit < 8 ;\n bit ++ ) {\n SetPixelGray ( image , ( ( * p ) & ( 1 << ( 7 - bit ) ) ) == 0 ? black : white , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n p ++ ;\n }\n for ( bit = 0 ;\n bit < ( ssize_t ) ( number_pixels % 8 ) ;\n bit ++ ) {\n SetPixelGray ( image , ( ( * p ) & ( 0x01 << ( 7 - bit ) ) ) == 0 ? black : white , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n if ( bit != 0 ) p ++ ;\n break ;\n }\n case 4 : {\n register unsigned char pixel ;\n range = GetQuantumRange ( quantum_info -> depth ) ;\n for ( x = 0 ;\n x < ( ( ssize_t ) number_pixels - 1 ) ;\n x += 2 ) {\n pixel = ( unsigned char ) ( ( * p >> 4 ) & 0xf ) ;\n SetPixelGray ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n pixel = ( unsigned char ) ( ( * p ) & 0xf ) ;\n SetPixelGray ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p ++ ;\n q += GetPixelChannels ( image ) ;\n }\n for ( bit = 0 ;\n bit < ( ssize_t ) ( number_pixels % 2 ) ;\n bit ++ ) {\n pixel = ( unsigned char ) ( * p ++ >> 4 ) ;\n SetPixelGray ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 8 : {\n unsigned char pixel ;\n if ( quantum_info -> min_is_white != MagickFalse ) {\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelGray ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n SetPixelAlpha ( image , OpaqueAlpha , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelGray ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n SetPixelAlpha ( image , OpaqueAlpha , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 10 : {\n range = GetQuantumRange ( quantum_info -> depth ) ;\n if ( quantum_info -> pack == MagickFalse ) {\n if ( image -> endian == LSBEndian ) {\n for ( x = 0 ;\n x < ( ssize_t ) ( number_pixels - 2 ) ;\n x += 3 ) {\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGray ( image , ScaleAnyToQuantum ( ( pixel >> 22 ) & 0x3ff , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n SetPixelGray ( image , ScaleAnyToQuantum ( ( pixel >> 12 ) & 0x3ff , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n SetPixelGray ( image , ScaleAnyToQuantum ( ( pixel >> 2 ) & 0x3ff , range ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n if ( x ++ < ( ssize_t ) ( number_pixels - 1 ) ) {\n SetPixelGray ( image , ScaleAnyToQuantum ( ( pixel >> 22 ) & 0x3ff , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n if ( x ++ < ( ssize_t ) number_pixels ) {\n SetPixelGray ( image , ScaleAnyToQuantum ( ( pixel >> 12 ) & 0x3ff , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) ( number_pixels - 2 ) ;\n x += 3 ) {\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGray ( image , ScaleAnyToQuantum ( ( pixel >> 2 ) & 0x3ff , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n SetPixelGray ( image , ScaleAnyToQuantum ( ( pixel >> 12 ) & 0x3ff , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n SetPixelGray ( image , ScaleAnyToQuantum ( ( pixel >> 22 ) & 0x3ff , range ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n if ( x ++ < ( ssize_t ) ( number_pixels - 1 ) ) {\n SetPixelGray ( image , ScaleAnyToQuantum ( ( pixel >> 2 ) & 0x3ff , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n if ( x ++ < ( ssize_t ) number_pixels ) {\n SetPixelGray ( image , ScaleAnyToQuantum ( ( pixel >> 12 ) & 0x3ff , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelGray ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 12 : {\n range = GetQuantumRange ( quantum_info -> depth ) ;\n if ( quantum_info -> pack == MagickFalse ) {\n unsigned short pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) ( number_pixels - 1 ) ;\n x += 2 ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGray ( image , ScaleAnyToQuantum ( ( QuantumAny ) ( pixel >> 4 ) , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGray ( image , ScaleAnyToQuantum ( ( QuantumAny ) ( pixel >> 4 ) , range ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n for ( bit = 0 ;\n bit < ( ssize_t ) ( number_pixels % 2 ) ;\n bit ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGray ( image , ScaleAnyToQuantum ( ( QuantumAny ) ( pixel >> 4 ) , range ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n if ( bit != 0 ) p ++ ;\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelGray ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 16 : {\n unsigned short pixel ;\n if ( quantum_info -> min_is_white != MagickFalse ) {\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGray ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGray ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGray ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 32 : {\n unsigned int pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n float pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelGray ( image , ClampToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGray ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 64 : {\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n double pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelGray ( image , ClampToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n default : {\n range = GetQuantumRange ( quantum_info -> depth ) ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelGray ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n }"}
{"idx": 10128, "target": 0, "func": "static ParallelSlot * GetIdleSlot ( ParallelSlot slots [ ] , int numslots , const char * progname ) {\n int i ;\n int firstFree = - 1 ;\n fd_set slotset ;\n pgsocket maxFd ;\n for ( i = 0 ;\n i < numslots ;\n i ++ ) if ( ( slots + i ) -> isFree ) return slots + i ;\n FD_ZERO ( & slotset ) ;\n maxFd = slots -> sock ;\n for ( i = 0 ;\n i < numslots ;\n i ++ ) {\n FD_SET ( ( slots + i ) -> sock , & slotset ) ;\n if ( ( slots + i ) -> sock > maxFd ) maxFd = ( slots + i ) -> sock ;\n }\n for ( firstFree = - 1 ;\n firstFree < 0 ;\n ) {\n bool aborting ;\n SetCancelConn ( slots -> connection ) ;\n i = select_loop ( maxFd , & slotset , & aborting ) ;\n ResetCancelConn ( ) ;\n if ( aborting ) {\n GetQueryResult ( slots -> connection , progname ) ;\n return NULL ;\n }\n Assert ( i != 0 ) ;\n for ( i = 0 ;\n i < numslots ;\n i ++ ) {\n if ( ! FD_ISSET ( ( slots + i ) -> sock , & slotset ) ) continue ;\n PQconsumeInput ( ( slots + i ) -> connection ) ;\n if ( PQisBusy ( ( slots + i ) -> connection ) ) continue ;\n ( slots + i ) -> isFree = true ;\n if ( ! GetQueryResult ( ( slots + i ) -> connection , progname ) ) return NULL ;\n if ( firstFree < 0 ) firstFree = i ;\n }\n }\n return slots + firstFree ;\n }"}
{"idx": 10129, "target": 0, "func": "static const char * fieldtype2str ( enum enum_field_types type ) {\n switch ( type ) {\n case MYSQL_TYPE_BIT : return \"BIT\" ;\n case MYSQL_TYPE_BLOB : return \"BLOB\" ;\n case MYSQL_TYPE_DATE : return \"DATE\" ;\n case MYSQL_TYPE_DATETIME : return \"DATETIME\" ;\n case MYSQL_TYPE_NEWDECIMAL : return \"NEWDECIMAL\" ;\n case MYSQL_TYPE_DECIMAL : return \"DECIMAL\" ;\n case MYSQL_TYPE_DOUBLE : return \"DOUBLE\" ;\n case MYSQL_TYPE_ENUM : return \"ENUM\" ;\n case MYSQL_TYPE_FLOAT : return \"FLOAT\" ;\n case MYSQL_TYPE_GEOMETRY : return \"GEOMETRY\" ;\n case MYSQL_TYPE_INT24 : return \"INT24\" ;\n case MYSQL_TYPE_LONG : return \"LONG\" ;\n case MYSQL_TYPE_LONGLONG : return \"LONGLONG\" ;\n case MYSQL_TYPE_LONG_BLOB : return \"LONG_BLOB\" ;\n case MYSQL_TYPE_MEDIUM_BLOB : return \"MEDIUM_BLOB\" ;\n case MYSQL_TYPE_NEWDATE : return \"NEWDATE\" ;\n case MYSQL_TYPE_NULL : return \"NULL\" ;\n case MYSQL_TYPE_SET : return \"SET\" ;\n case MYSQL_TYPE_SHORT : return \"SHORT\" ;\n case MYSQL_TYPE_STRING : return \"STRING\" ;\n case MYSQL_TYPE_TIME : return \"TIME\" ;\n case MYSQL_TYPE_TIMESTAMP : return \"TIMESTAMP\" ;\n case MYSQL_TYPE_TINY : return \"TINY\" ;\n case MYSQL_TYPE_TINY_BLOB : return \"TINY_BLOB\" ;\n case MYSQL_TYPE_VAR_STRING : return \"VAR_STRING\" ;\n case MYSQL_TYPE_YEAR : return \"YEAR\" ;\n default : return \"?-unknown-?\" ;\n }\n }"}
{"idx": 10130, "target": 0, "func": "static int dissect_h245_TransparencyParameters ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_TransparencyParameters , TransparencyParameters_sequence ) ;\n return offset ;\n }"}
{"idx": 10131, "target": 0, "func": "int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL ) DECLARE_PEM_rw ( PKCS7 , PKCS7 ) DECLARE_PEM_rw ( NETSCAPE_CERT_SEQUENCE , NETSCAPE_CERT_SEQUENCE ) DECLARE_PEM_rw ( PKCS8 , X509_SIG ) DECLARE_PEM_rw ( PKCS8_PRIV_KEY_INFO , PKCS8_PRIV_KEY_INFO ) # ifndef OPENSSL_NO_RSA DECLARE_PEM_rw_cb ( RSAPrivateKey , RSA ) DECLARE_PEM_rw_const ( RSAPublicKey , RSA ) DECLARE_PEM_rw ( RSA_PUBKEY , RSA ) # endif # ifndef OPENSSL_NO_DSA DECLARE_PEM_rw_cb ( DSAPrivateKey , DSA ) DECLARE_PEM_rw ( DSA_PUBKEY , DSA ) DECLARE_PEM_rw_const ( DSAparams , DSA ) # endif # ifndef OPENSSL_NO_EC DECLARE_PEM_rw_const ( ECPKParameters , EC_GROUP )"}
{"idx": 10132, "target": 0, "func": "static void test_prepare_resultset ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n MYSQL_RES * result ;\n myheader ( \"test_prepare_resultset\" ) ;\n rc = mysql_autocommit ( mysql , TRUE ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_prepare_resultset\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_prepare_resultset(id int, \\ name varchar(50), extra double)\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT * FROM test_prepare_resultset\" ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 0 ) ;\n result = mysql_stmt_result_metadata ( stmt ) ;\n mytest ( result ) ;\n my_print_result_metadata ( result ) ;\n mysql_free_result ( result ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 10133, "target": 1, "func": "static int get_minq_index ( double maxq , double x3 , double x2 , double x1 ) {\n int i ;\n const double minqtarget = MIN ( ( ( x3 * maxq + x2 ) * maxq + x1 ) * maxq , maxq ) ;\n if ( minqtarget <= 2.0 ) return 0 ;\n for ( i = 0 ;\n i < QINDEX_RANGE ;\n i ++ ) if ( minqtarget <= vp9_convert_qindex_to_q ( i ) ) return i ;\n return QINDEX_RANGE - 1 ;\n }"}
{"idx": 10134, "target": 0, "func": "static int dissect_h245_T_networkAddress ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_networkAddress , T_networkAddress_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 10135, "target": 0, "func": "static void test_read_format_mtree1 ( void ) {\n const char reffile [ ] = \"test_read_format_mtree.mtree\" ;\n char buff [ 16 ] ;\n struct archive_entry * ae ;\n struct archive * a ;\n FILE * f ;\n static const long long max_int64 = ( ( ( ( long long ) 1 ) << 62 ) - 1 ) + ( ( ( long long ) 1 ) << 62 ) ;\n time_t min_time ;\n volatile time_t t ;\n extract_reference_file ( reffile ) ;\n assertMakeDir ( \"dir\" , 0775 ) ;\n assertMakeDir ( \"dir2\" , 0775 ) ;\n assert ( ( a = archive_read_new ( ) ) != NULL ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_support_filter_all ( a ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_support_format_all ( a ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_set_options ( a , \"mtree:checkfs\" ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_open_filename ( a , reffile , 11 ) ) ;\n f = fopen ( \"file\" , \"wb\" ) ;\n assert ( f != NULL ) ;\n assertEqualInt ( 3 , fwrite ( \"hi\\n\" , 1 , 3 , f ) ) ;\n fclose ( f ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualInt ( archive_format ( a ) , ARCHIVE_FORMAT_MTREE ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"file\" ) ;\n assertEqualInt ( archive_entry_uid ( ae ) , 18 ) ;\n assertEqualInt ( AE_IFREG , archive_entry_filetype ( ae ) ) ;\n assertEqualInt ( archive_entry_mode ( ae ) , AE_IFREG | 0123 ) ;\n assertEqualInt ( archive_entry_size ( ae ) , 3 ) ;\n assertEqualInt ( 3 , archive_read_data ( a , buff , 3 ) ) ;\n assertEqualMem ( buff , \"hi\\n\" , 3 ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir\" ) ;\n assertEqualInt ( AE_IFDIR , archive_entry_filetype ( ae ) ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir/file with space\" ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"file with space\" ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2\" ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2/dir3a\" ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2/dir3a/indir3a\" ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2/fullindir2\" ) ;\n assertEqualInt ( archive_entry_mode ( ae ) , AE_IFREG | 0644 ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2/indir2\" ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2/dir3b\" ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2/dir3b/indir3b\" ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2/dir3b/filename\\\\with_esc\\b\\t\\fapes\" ) ;\n assertEqualInt ( archive_entry_filetype ( ae ) , AE_IFREG ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"notindir\" ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2/emptyfile\" ) ;\n assertEqualInt ( archive_entry_size ( ae ) , 0 ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2/smallfile\" ) ;\n assertEqualInt ( archive_entry_size ( ae ) , 1 ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2/toosmallfile\" ) ;\n assertEqualInt ( archive_entry_size ( ae ) , - 1 ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2/bigfile\" ) ;\n assertEqualInt ( archive_entry_size ( ae ) , max_int64 ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2/toobigfile\" ) ;\n assertEqualInt ( archive_entry_size ( ae ) , max_int64 ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2/veryoldfile\" ) ;\n min_time = archive_entry_mtime ( ae ) ;\n assert ( min_time <= 0 ) ;\n t = min_time - 1 ;\n assert ( t > 0 ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2/toooldfile\" ) ;\n assertEqualInt ( archive_entry_mtime ( ae ) , min_time ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_EOF , archive_read_next_header ( a , & ae ) ) ;\n assertEqualInt ( 20 , archive_file_count ( a ) ) ;\n assertEqualInt ( ARCHIVE_OK , archive_read_close ( a ) ) ;\n assertEqualInt ( ARCHIVE_OK , archive_read_free ( a ) ) ;\n }"}
{"idx": 10136, "target": 0, "func": "static void postfilter ( AMRContext * p , float * lpc , float * buf_out ) {\n int i ;\n float * samples = p -> samples_in + LP_FILTER_ORDER ;\n float speech_gain = avpriv_scalarproduct_float_c ( samples , samples , AMR_SUBFRAME_SIZE ) ;\n float pole_out [ AMR_SUBFRAME_SIZE + LP_FILTER_ORDER ] ;\n const float * gamma_n , * gamma_d ;\n float lpc_n [ LP_FILTER_ORDER ] , lpc_d [ LP_FILTER_ORDER ] ;\n if ( p -> cur_frame_mode == MODE_12k2 || p -> cur_frame_mode == MODE_10k2 ) {\n gamma_n = ff_pow_0_7 ;\n gamma_d = ff_pow_0_75 ;\n }\n else {\n gamma_n = ff_pow_0_55 ;\n gamma_d = ff_pow_0_7 ;\n }\n for ( i = 0 ;\n i < LP_FILTER_ORDER ;\n i ++ ) {\n lpc_n [ i ] = lpc [ i ] * gamma_n [ i ] ;\n lpc_d [ i ] = lpc [ i ] * gamma_d [ i ] ;\n }\n memcpy ( pole_out , p -> postfilter_mem , sizeof ( float ) * LP_FILTER_ORDER ) ;\n ff_celp_lp_synthesis_filterf ( pole_out + LP_FILTER_ORDER , lpc_d , samples , AMR_SUBFRAME_SIZE , LP_FILTER_ORDER ) ;\n memcpy ( p -> postfilter_mem , pole_out + AMR_SUBFRAME_SIZE , sizeof ( float ) * LP_FILTER_ORDER ) ;\n ff_celp_lp_zero_synthesis_filterf ( buf_out , lpc_n , pole_out + LP_FILTER_ORDER , AMR_SUBFRAME_SIZE , LP_FILTER_ORDER ) ;\n ff_tilt_compensation ( & p -> tilt_mem , tilt_factor ( lpc_n , lpc_d ) , buf_out , AMR_SUBFRAME_SIZE ) ;\n ff_adaptive_gain_control ( buf_out , buf_out , speech_gain , AMR_SUBFRAME_SIZE , AMR_AGC_ALPHA , & p -> postfilter_agc ) ;\n }"}
{"idx": 10137, "target": 0, "func": "static inline PixelTrait GetPixelReadMaskTraits ( const Image * restrict image ) {\n return ( image -> channel_map [ ReadMaskPixelChannel ] . traits ) ;\n }"}
{"idx": 10138, "target": 0, "func": "void print_object_list ( int list_type ) {\n hoststatus * temp_hoststatus = NULL ;\n servicestatus * temp_servicestatus = NULL ;\n int x = 0 ;\n int row_color = 0 ;\n int host_passive = FALSE ;\n int service_passive = FALSE ;\n printf ( \"<tr><td colspan=\\\"2\\\">&nbsp;\n</td></tr>\\n\" ) ;\n printf ( \"<tr class=\\\"sectionHeader\\\"><td colspan=\\\"2\\\" >Affected Objects</td></tr>\\n\" ) ;\n printf ( \"<tr><td colspan=\\\"2\\\">\\n\" ) ;\n printf ( \"<script language='javascript' type=\\\"text/javascript\\\">\\nchecked=false;\n\\n\" ) ;\n printf ( \"function checkAllBoxes() {\n\\n\" \" checked = (checked == false) ? true : false;\n\\n\" \" for (var i=0;\n i < %d;\n i++) {\n\\n\" \" var checkboxes = document.getElementById(\\\"cb_\\\" + i);\n\\n\" \" if (checkboxes != null ) {\n checkboxes.checked = checked;\n }\n\\n\" \" }\n\\n\" \"}\n\\n\" , NUMBER_OF_STRUCTS ) ;\n printf ( \"</script>\\n\" ) ;\n printf ( \"<TABLE cellspacing='2' cellpadding='0' border='0' width='100%%'>\\n\" ) ;\n if ( list_type == PRINT_SERVICE_LIST ) printf ( \"<tr class=\\\"objectTableHeader\\\"><td width=\\\"46%%\\\">Host</td><td width=\\\"46%%\\\">Service</td><td width='16'><input type='checkbox' onclick=\\\"checkAllBoxes();\n\\\" title=\\\"Check All\\\"></td></tr>\\n\" ) ;\n else if ( list_type == PRINT_HOST_LIST ) printf ( \"<tr class=\\\"objectTableHeader\\\"><td colspan=\\\"2\\\" width=\\\"96%%\\\">Hosts</td><td width='16'><input type='checkbox' onclick=\\\"checkAllBoxes();\n\\\" title=\\\"Check All\\\"></td></tr>\\n\" ) ;\n else printf ( \"<tr><td colspan=\\\"3\\\">&nbsp;\n</td></tr>\\n\" ) ;\n for ( x = 0 ;\n x < NUMBER_OF_STRUCTS ;\n x ++ ) {\n if ( list_type == PRINT_HOST_LIST || list_type == PRINT_SERVICE_LIST ) {\n host_passive = FALSE ;\n service_passive = FALSE ;\n if ( commands [ x ] . host_name == NULL ) continue ;\n if ( list_type == PRINT_SERVICE_LIST && commands [ x ] . description == NULL ) continue ;\n if ( strlen ( commands [ x ] . host_name ) != 0 && ( command_type == CMD_SCHEDULE_HOST_CHECK || command_type == CMD_DISABLE_HOST_CHECK || command_type == CMD_SCHEDULE_SVC_CHECK || command_type == CMD_DISABLE_SVC_CHECK ) ) {\n if ( ( temp_hoststatus = find_hoststatus ( commands [ x ] . host_name ) ) != NULL ) {\n if ( temp_hoststatus -> checks_enabled == FALSE ) host_passive = TRUE ;\n }\n if ( list_type == PRINT_SERVICE_LIST && strlen ( commands [ x ] . description ) != 0 ) {\n if ( ( temp_servicestatus = find_servicestatus ( commands [ x ] . host_name , commands [ x ] . description ) ) != NULL ) {\n if ( temp_servicestatus -> checks_enabled == FALSE ) service_passive = TRUE ;\n }\n }\n }\n }\n else {\n if ( multi_ids [ x ] == FALSE ) continue ;\n }\n row_color = ( row_color == 0 ) ? 1 : 0 ;\n printf ( \"<tr class=\\\"status%s\\\"><td width=\\\"50%%\\\"\" , ( row_color == 0 ) ? \"Even\" : \"Odd \" ) ;\n if ( list_type == PRINT_SERVICE_LIST ) {\n if ( strlen ( commands [ x ] . host_name ) != 0 && strlen ( commands [ x ] . description ) != 0 ) {\n printf ( \">%s</td><td>%s\" , escape_string ( commands [ x ] . host_name ) , escape_string ( commands [ x ] . description ) ) ;\n if ( service_passive == TRUE ) {\n printf ( \"<img src='%s%s' align=right border=0 style='padding-right:2px' alt='Passive' title='Passive Service'>\" , url_images_path , PASSIVE_ICON ) ;\n }\n printf ( \"</td>\\n\" ) ;\n printf ( \"<td align='center'><input type='checkbox' name='hostservice' id=\\\"cb_%d\\\" value='%s^%s' title=\\\"%s Service\\\" %s></td></tr>\\n\" , x , escape_string ( commands [ x ] . host_name ) , escape_string ( commands [ x ] . description ) , ( service_passive == FALSE ) ? \"Active\" : \"Passive\" , ( service_passive == FALSE ) ? \"checked\" : \"\" ) ;\n }\n else {\n if ( ! strcmp ( commands [ x ] . host_name , \"\" ) ) printf ( \"><INPUT TYPE='TEXT' NAME='host' SIZE=30></td>\" ) ;\n else printf ( \"><INPUT TYPE='HIDDEN' NAME='host' VALUE='%s'>%s</td>\" , escape_string ( commands [ x ] . host_name ) , escape_string ( commands [ x ] . host_name ) ) ;\n if ( ! strcmp ( commands [ x ] . description , \"\" ) ) printf ( \"<td><INPUT TYPE='TEXT' NAME='service' SIZE=30></td>\" ) ;\n else printf ( \"<td><INPUT TYPE='HIDDEN' NAME='service' VALUE='%s'>%s</td>\" , escape_string ( commands [ x ] . description ) , escape_string ( commands [ x ] . description ) ) ;\n printf ( \"<td></td></tr>\\n\" ) ;\n }\n }\n else if ( list_type == PRINT_HOST_LIST ) {\n if ( ! strcmp ( commands [ x ] . host_name , \"\" ) ) printf ( \" style=\\\"font-weight:bold;\n\\\">Host:</td><td><INPUT TYPE='TEXT' NAME='host' SIZE=30></td><td></td></tr>\\n\" ) ;\n else {\n printf ( \" style=\\\"font-weight:bold;\n\\\">Host:</td><td>%s\" , escape_string ( commands [ x ] . host_name ) ) ;\n if ( host_passive == TRUE ) {\n printf ( \"<img src='%s%s' align=right border=0 style='padding-right:2px' alt='Passive' title='Passive Service'>\" , url_images_path , PASSIVE_ICON ) ;\n }\n printf ( \"</td>\\n\" ) ;\n printf ( \"<td align='center'><input type='checkbox' name='host' id=\\\"cb_%d\\\" value='%s' title=\\\"%s Host\\\" %s></td></tr>\\n\" , x , escape_string ( commands [ x ] . host_name ) , ( host_passive == FALSE ) ? \"Active\" : \"Passive\" , ( host_passive == FALSE ) ? \"checked\" : \"\" ) ;\n }\n }\n else if ( list_type == PRINT_COMMENT_LIST ) {\n printf ( \" style=\\\"font-weight:bold;\n\\\">Comment ID:</td><td><INPUT TYPE='HIDDEN' NAME='com_id' VALUE='%lu'>%lu</td></tr>\\n\" , multi_ids [ x ] , multi_ids [ x ] ) ;\n }\n else if ( list_type == PRINT_DOWNTIME_LIST ) {\n printf ( \" style=\\\"font-weight:bold;\n\\\">Scheduled Downtime ID:</td><td><INPUT TYPE='HIDDEN' NAME='down_id' VALUE='%lu'>%lu</td></tr>\\n\" , multi_ids [ x ] , multi_ids [ x ] ) ;\n }\n }\n printf ( \"</td><tr></table>\\n</td></tr>\\n\" ) ;\n return ;\n }"}
{"idx": 10139, "target": 0, "func": "static VALUE decode_time ( unsigned char * der , long length ) {\n ASN1_TIME * time ;\n const unsigned char * p ;\n VALUE ret ;\n int status = 0 ;\n p = der ;\n if ( ! ( time = d2i_ASN1_TIME ( NULL , & p , length ) ) ) ossl_raise ( eASN1Error , NULL ) ;\n ret = rb_protect ( ( VALUE ( * ) ( VALUE ) ) asn1time_to_time , ( VALUE ) time , & status ) ;\n ASN1_TIME_free ( time ) ;\n if ( status ) rb_jump_tag ( status ) ;\n return ret ;\n }"}
{"idx": 10140, "target": 0, "func": "ulong get_table_grant ( THD * thd , TABLE_LIST * table ) {\n ulong privilege ;\n Security_context * sctx = thd -> security_ctx ;\n const char * db = table -> db ? table -> db : thd -> db ;\n GRANT_TABLE * grant_table ;\n rw_rdlock ( & LOCK_grant ) ;\n # ifdef EMBEDDED_LIBRARY grant_table = NULL ;\n # else grant_table = table_hash_search ( sctx -> host , sctx -> ip , db , sctx -> priv_user , table -> table_name , 0 ) ;\n # endif table -> grant . grant_table = grant_table ;\n table -> grant . version = grant_version ;\n if ( grant_table ) table -> grant . privilege |= grant_table -> privs ;\n privilege = table -> grant . privilege ;\n rw_unlock ( & LOCK_grant ) ;\n return privilege ;\n }"}
{"idx": 10141, "target": 0, "func": "static const char * next_brace_sub ( const char * cp , int flags ) {\n unsigned int depth = 0 ;\n while ( * cp != '\\0' ) if ( ( flags & GLOB_NOESCAPE ) == 0 && * cp == '\\\\' ) {\n if ( * ++ cp == '\\0' ) break ;\n ++ cp ;\n }\n else {\n if ( ( * cp == '}\n' && depth -- == 0 ) || ( * cp == ',' && depth == 0 ) ) break ;\n if ( * cp ++ == '{\n' ) depth ++ ;\n }\n return * cp != '\\0' ? cp : NULL ;\n }"}
{"idx": 10142, "target": 0, "func": "static UBool isNewline ( UChar32 c ) {\n switch ( c ) {\n case 0x000A : case 0x2029 : lineCount ++ ;\n case 0x000D : return TRUE ;\n default : return FALSE ;\n }\n }"}
{"idx": 10143, "target": 0, "func": "static uint32_t U_CALLCONV pointerTOCEntryCount ( const UDataMemory * pData ) {\n const PointerTOC * toc = ( PointerTOC * ) pData -> toc ;\n return ( uint32_t ) ( ( toc != NULL ) ? ( toc -> count ) : 0 ) ;\n }"}
{"idx": 10144, "target": 0, "func": "int vp9_get_mvpred_av_var ( const MACROBLOCK * x , const MV * best_mv , const MV * center_mv , const uint8_t * second_pred , const vp9_variance_fn_ptr_t * vfp , int use_mvcost ) {\n const MACROBLOCKD * const xd = & x -> e_mbd ;\n const struct buf_2d * const what = & x -> plane [ 0 ] . src ;\n const struct buf_2d * const in_what = & xd -> plane [ 0 ] . pre [ 0 ] ;\n const MV mv = {\n best_mv -> row * 8 , best_mv -> col * 8 }\n ;\n unsigned int unused ;\n return vfp -> svaf ( get_buf_from_mv ( in_what , best_mv ) , in_what -> stride , 0 , 0 , what -> buf , what -> stride , & unused , second_pred ) + ( use_mvcost ? mv_err_cost ( & mv , center_mv , x -> nmvjointcost , x -> mvcost , x -> errorperbit ) : 0 ) ;\n }"}
{"idx": 10145, "target": 1, "func": "static void _UTF16LEOpen ( UConverter * cnv , UConverterLoadArgs * pArgs , UErrorCode * pErrorCode ) {\n if ( UCNV_GET_VERSION ( cnv ) <= 1 ) {\n _UTF16LEReset ( cnv , UCNV_RESET_BOTH ) ;\n }\n else {\n * pErrorCode = U_ILLEGAL_ARGUMENT_ERROR ;\n }\n }"}
{"idx": 10146, "target": 0, "func": "static int pxa2xx_cppmnc_read ( CPUARMState * env , const ARMCPRegInfo * ri , uint64_t * value ) {\n PXA2xxState * s = ( PXA2xxState * ) ri -> opaque ;\n * value = s -> pmnc ;\n return 0 ;\n }"}
{"idx": 10147, "target": 1, "func": "static void show_object ( struct object * obj , const struct name_path * path , const char * last , void * data ) {\n char * name = path_name ( path , last ) ;\n add_preferred_base_object ( name ) ;\n add_object_entry ( obj -> oid . hash , obj -> type , name , 0 ) ;\n obj -> flags |= OBJECT_ADDED ;\n free ( ( char * ) name ) ;\n }"}
{"idx": 10148, "target": 0, "func": "int pdf_lookup_cmap ( pdf_cmap * cmap , unsigned int cpt ) {\n pdf_range * ranges = cmap -> ranges ;\n pdf_xrange * xranges = cmap -> xranges ;\n int l , r , m ;\n l = 0 ;\n r = cmap -> rlen - 1 ;\n while ( l <= r ) {\n m = ( l + r ) >> 1 ;\n if ( cpt < ranges [ m ] . low ) r = m - 1 ;\n else if ( cpt > ranges [ m ] . high ) l = m + 1 ;\n else return cpt - ranges [ m ] . low + ranges [ m ] . out ;\n }\n l = 0 ;\n r = cmap -> xlen - 1 ;\n while ( l <= r ) {\n m = ( l + r ) >> 1 ;\n if ( cpt < xranges [ m ] . low ) r = m - 1 ;\n else if ( cpt > xranges [ m ] . high ) l = m + 1 ;\n else return cpt - xranges [ m ] . low + xranges [ m ] . out ;\n }\n if ( cmap -> usecmap ) return pdf_lookup_cmap ( cmap -> usecmap , cpt ) ;\n return - 1 ;\n }"}
{"idx": 10149, "target": 0, "func": "static int64_t rd_pick_intra_sbuv_mode ( VP9_COMP * cpi , MACROBLOCK * x , PICK_MODE_CONTEXT * ctx , int * rate , int * rate_tokenonly , int64_t * distortion , int * skippable , BLOCK_SIZE bsize , TX_SIZE max_tx_size ) {\n MACROBLOCKD * xd = & x -> e_mbd ;\n PREDICTION_MODE mode ;\n PREDICTION_MODE mode_selected = DC_PRED ;\n int64_t best_rd = INT64_MAX , this_rd ;\n int this_rate_tokenonly , this_rate , s ;\n int64_t this_distortion , this_sse ;\n for ( mode = DC_PRED ;\n mode <= TM_PRED ;\n ++ mode ) {\n if ( ! ( cpi -> sf . intra_uv_mode_mask [ max_tx_size ] & ( 1 << mode ) ) ) continue ;\n xd -> mi [ 0 ] . src_mi -> mbmi . uv_mode = mode ;\n super_block_uvrd ( cpi , x , & this_rate_tokenonly , & this_distortion , & s , & this_sse , bsize , best_rd ) ;\n if ( this_rate_tokenonly == INT_MAX ) continue ;\n this_rate = this_rate_tokenonly + cpi -> intra_uv_mode_cost [ cpi -> common . frame_type ] [ mode ] ;\n this_rd = RDCOST ( x -> rdmult , x -> rddiv , this_rate , this_distortion ) ;\n if ( this_rd < best_rd ) {\n mode_selected = mode ;\n best_rd = this_rd ;\n * rate = this_rate ;\n * rate_tokenonly = this_rate_tokenonly ;\n * distortion = this_distortion ;\n * skippable = s ;\n if ( ! x -> select_tx_size ) swap_block_ptr ( x , ctx , 2 , 0 , 1 , MAX_MB_PLANE ) ;\n }\n }\n xd -> mi [ 0 ] . src_mi -> mbmi . uv_mode = mode_selected ;\n return best_rd ;\n }"}
{"idx": 10150, "target": 0, "func": "void graph_analysis_data_init ( void ) {\n the_tapinfo_struct . graph_analysis = ( seq_analysis_info_t * ) g_malloc ( sizeof ( seq_analysis_info_t ) ) ;\n the_tapinfo_struct . graph_analysis -> nconv = 0 ;\n the_tapinfo_struct . graph_analysis -> list = NULL ;\n the_tapinfo_struct . graph_analysis -> ht = g_hash_table_new ( g_int_hash , g_int_equal ) ;\n }"}
{"idx": 10151, "target": 0, "func": "static int scan ( Scanner * s ) {\n uchar * cursor = s -> cur ;\n char * str , * ptr = NULL ;\n std : s -> tok = cursor ;\n s -> len = 0 ;\n # line 311 \"ext/date/lib/parse_iso_intervals.re\" # line 291 \"ext/date/lib/parse_iso_intervals.c\" {\n YYCTYPE yych ;\n unsigned int yyaccept = 0 ;\n static const unsigned char yybm [ ] = {\n 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 128 , 128 , 128 , 128 , 128 , 128 , 128 , 128 , 128 , 128 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , }\n ;\n YYDEBUG ( 0 , * YYCURSOR ) ;\n if ( ( YYLIMIT - YYCURSOR ) < 20 ) YYFILL ( 20 ) ;\n yych = * YYCURSOR ;\n if ( yych <= ',' ) {\n if ( yych <= '\\n' ) {\n if ( yych <= 0x00 ) goto yy9 ;\n if ( yych <= 0x08 ) goto yy11 ;\n if ( yych <= '\\t' ) goto yy7 ;\n goto yy9 ;\n }\n else {\n if ( yych == ' ' ) goto yy7 ;\n if ( yych <= '+' ) goto yy11 ;\n goto yy7 ;\n }\n }\n else {\n if ( yych <= 'O' ) {\n if ( yych <= '-' ) goto yy11 ;\n if ( yych <= '/' ) goto yy7 ;\n if ( yych <= '9' ) goto yy4 ;\n goto yy11 ;\n }\n else {\n if ( yych <= 'P' ) goto yy5 ;\n if ( yych != 'R' ) goto yy11 ;\n }\n }\n YYDEBUG ( 2 , * YYCURSOR ) ;\n ++ YYCURSOR ;\n if ( ( yych = * YYCURSOR ) <= '/' ) goto yy3 ;\n if ( yych <= '9' ) goto yy98 ;\n yy3 : YYDEBUG ( 3 , * YYCURSOR ) ;\n # line 424 \"ext/date/lib/parse_iso_intervals.re\" {\n add_error ( s , \"Unexpected character\" ) ;\n goto std ;\n }\n # line 366 \"ext/date/lib/parse_iso_intervals.c\" yy4 : YYDEBUG ( 4 , * YYCURSOR ) ;\n yyaccept = 0 ;\n yych = * ( YYMARKER = ++ YYCURSOR ) ;\n if ( yych <= '/' ) goto yy3 ;\n if ( yych <= '9' ) goto yy59 ;\n goto yy3 ;\n yy5 : YYDEBUG ( 5 , * YYCURSOR ) ;\n yyaccept = 1 ;\n yych = * ( YYMARKER = ++ YYCURSOR ) ;\n if ( yych <= '/' ) goto yy6 ;\n if ( yych <= '9' ) goto yy12 ;\n if ( yych == 'T' ) goto yy14 ;\n yy6 : YYDEBUG ( 6 , * YYCURSOR ) ;\n # line 351 \"ext/date/lib/parse_iso_intervals.re\" {\n timelib_sll nr ;\n int in_time = 0 ;\n DEBUG_OUTPUT ( \"period\" ) ;\n TIMELIB_INIT ;\n ptr ++ ;\n do {\n if ( * ptr == 'T' ) {\n in_time = 1 ;\n ptr ++ ;\n }\n if ( * ptr == '\\0' ) {\n add_error ( s , \"Missing expected time part\" ) ;\n break ;\n }\n nr = timelib_get_unsigned_nr ( ( char * * ) & ptr , 12 ) ;\n switch ( * ptr ) {\n case 'Y' : s -> period -> y = nr ;\n break ;\n case 'W' : s -> period -> d = nr * 7 ;\n break ;\n case 'D' : s -> period -> d = nr ;\n break ;\n case 'H' : s -> period -> h = nr ;\n break ;\n case 'S' : s -> period -> s = nr ;\n break ;\n case 'M' : if ( in_time ) {\n s -> period -> i = nr ;\n }\n else {\n s -> period -> m = nr ;\n }\n break ;\n default : add_error ( s , \"Undefined period specifier\" ) ;\n break ;\n }\n ptr ++ ;\n }\n while ( ! s -> errors -> error_count && * ptr ) ;\n s -> have_period = 1 ;\n TIMELIB_DEINIT ;\n return TIMELIB_PERIOD ;\n }\n # line 424 \"ext/date/lib/parse_iso_intervals.c\" yy7 : YYDEBUG ( 7 , * YYCURSOR ) ;\n ++ YYCURSOR ;\n YYDEBUG ( 8 , * YYCURSOR ) ;\n # line 413 \"ext/date/lib/parse_iso_intervals.re\" {\n goto std ;\n }\n # line 433 \"ext/date/lib/parse_iso_intervals.c\" yy9 : YYDEBUG ( 9 , * YYCURSOR ) ;\n ++ YYCURSOR ;\n YYDEBUG ( 10 , * YYCURSOR ) ;\n # line 418 \"ext/date/lib/parse_iso_intervals.re\" {\n s -> pos = cursor ;\n s -> line ++ ;\n goto std ;\n }\n # line 443 \"ext/date/lib/parse_iso_intervals.c\" yy11 : YYDEBUG ( 11 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n goto yy3 ;\n yy12 : YYDEBUG ( 12 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= 'L' ) {\n if ( yych <= '9' ) {\n if ( yych >= '0' ) goto yy25 ;\n }\n else {\n if ( yych == 'D' ) goto yy24 ;\n }\n }\n else {\n if ( yych <= 'W' ) {\n if ( yych <= 'M' ) goto yy27 ;\n if ( yych >= 'W' ) goto yy26 ;\n }\n else {\n if ( yych == 'Y' ) goto yy28 ;\n }\n }\n yy13 : YYDEBUG ( 13 , * YYCURSOR ) ;\n YYCURSOR = YYMARKER ;\n if ( yyaccept <= 0 ) {\n goto yy3 ;\n }\n else {\n goto yy6 ;\n }\n yy14 : YYDEBUG ( 14 , * YYCURSOR ) ;\n yyaccept = 1 ;\n yych = * ( YYMARKER = ++ YYCURSOR ) ;\n if ( yybm [ 0 + yych ] & 128 ) {\n goto yy15 ;\n }\n goto yy6 ;\n yy15 : YYDEBUG ( 15 , * YYCURSOR ) ;\n ++ YYCURSOR ;\n if ( ( YYLIMIT - YYCURSOR ) < 2 ) YYFILL ( 2 ) ;\n yych = * YYCURSOR ;\n YYDEBUG ( 16 , * YYCURSOR ) ;\n if ( yybm [ 0 + yych ] & 128 ) {\n goto yy15 ;\n }\n if ( yych <= 'L' ) {\n if ( yych == 'H' ) goto yy19 ;\n goto yy13 ;\n }\n else {\n if ( yych <= 'M' ) goto yy18 ;\n if ( yych != 'S' ) goto yy13 ;\n }\n yy17 : YYDEBUG ( 17 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n goto yy6 ;\n yy18 : YYDEBUG ( 18 , * YYCURSOR ) ;\n yyaccept = 1 ;\n yych = * ( YYMARKER = ++ YYCURSOR ) ;\n if ( yych <= '/' ) goto yy6 ;\n if ( yych <= '9' ) goto yy22 ;\n goto yy6 ;\n yy19 : YYDEBUG ( 19 , * YYCURSOR ) ;\n yyaccept = 1 ;\n yych = * ( YYMARKER = ++ YYCURSOR ) ;\n if ( yych <= '/' ) goto yy6 ;\n if ( yych >= ':' ) goto yy6 ;\n yy20 : YYDEBUG ( 20 , * YYCURSOR ) ;\n ++ YYCURSOR ;\n if ( ( YYLIMIT - YYCURSOR ) < 2 ) YYFILL ( 2 ) ;\n yych = * YYCURSOR ;\n YYDEBUG ( 21 , * YYCURSOR ) ;\n if ( yych <= 'L' ) {\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '9' ) goto yy20 ;\n goto yy13 ;\n }\n else {\n if ( yych <= 'M' ) goto yy18 ;\n if ( yych == 'S' ) goto yy17 ;\n goto yy13 ;\n }\n yy22 : YYDEBUG ( 22 , * YYCURSOR ) ;\n ++ YYCURSOR ;\n if ( YYLIMIT <= YYCURSOR ) YYFILL ( 1 ) ;\n yych = * YYCURSOR ;\n YYDEBUG ( 23 , * YYCURSOR ) ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '9' ) goto yy22 ;\n if ( yych == 'S' ) goto yy17 ;\n goto yy13 ;\n yy24 : YYDEBUG ( 24 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych == 'T' ) goto yy14 ;\n goto yy6 ;\n yy25 : YYDEBUG ( 25 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= 'L' ) {\n if ( yych <= '9' ) {\n if ( yych <= '/' ) goto yy13 ;\n goto yy35 ;\n }\n else {\n if ( yych == 'D' ) goto yy24 ;\n goto yy13 ;\n }\n }\n else {\n if ( yych <= 'W' ) {\n if ( yych <= 'M' ) goto yy27 ;\n if ( yych <= 'V' ) goto yy13 ;\n }\n else {\n if ( yych == 'Y' ) goto yy28 ;\n goto yy13 ;\n }\n }\n yy26 : YYDEBUG ( 26 , * YYCURSOR ) ;\n yyaccept = 1 ;\n yych = * ( YYMARKER = ++ YYCURSOR ) ;\n if ( yych <= '/' ) goto yy6 ;\n if ( yych <= '9' ) goto yy33 ;\n if ( yych == 'T' ) goto yy14 ;\n goto yy6 ;\n yy27 : YYDEBUG ( 27 , * YYCURSOR ) ;\n yyaccept = 1 ;\n yych = * ( YYMARKER = ++ YYCURSOR ) ;\n if ( yych <= '/' ) goto yy6 ;\n if ( yych <= '9' ) goto yy31 ;\n if ( yych == 'T' ) goto yy14 ;\n goto yy6 ;\n yy28 : YYDEBUG ( 28 , * YYCURSOR ) ;\n yyaccept = 1 ;\n yych = * ( YYMARKER = ++ YYCURSOR ) ;\n if ( yych <= '/' ) goto yy6 ;\n if ( yych <= '9' ) goto yy29 ;\n if ( yych == 'T' ) goto yy14 ;\n goto yy6 ;\n yy29 : YYDEBUG ( 29 , * YYCURSOR ) ;\n ++ YYCURSOR ;\n if ( ( YYLIMIT - YYCURSOR ) < 3 ) YYFILL ( 3 ) ;\n yych = * YYCURSOR ;\n YYDEBUG ( 30 , * YYCURSOR ) ;\n if ( yych <= 'D' ) {\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '9' ) goto yy29 ;\n if ( yych <= 'C' ) goto yy13 ;\n goto yy24 ;\n }\n else {\n if ( yych <= 'M' ) {\n if ( yych <= 'L' ) goto yy13 ;\n goto yy27 ;\n }\n else {\n if ( yych == 'W' ) goto yy26 ;\n goto yy13 ;\n }\n }\n yy31 : YYDEBUG ( 31 , * YYCURSOR ) ;\n ++ YYCURSOR ;\n if ( ( YYLIMIT - YYCURSOR ) < 3 ) YYFILL ( 3 ) ;\n yych = * YYCURSOR ;\n YYDEBUG ( 32 , * YYCURSOR ) ;\n if ( yych <= 'C' ) {\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '9' ) goto yy31 ;\n goto yy13 ;\n }\n else {\n if ( yych <= 'D' ) goto yy24 ;\n if ( yych == 'W' ) goto yy26 ;\n goto yy13 ;\n }\n yy33 : YYDEBUG ( 33 , * YYCURSOR ) ;\n ++ YYCURSOR ;\n if ( ( YYLIMIT - YYCURSOR ) < 3 ) YYFILL ( 3 ) ;\n yych = * YYCURSOR ;\n YYDEBUG ( 34 , * YYCURSOR ) ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '9' ) goto yy33 ;\n if ( yych == 'D' ) goto yy24 ;\n goto yy13 ;\n yy35 : YYDEBUG ( 35 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= 'L' ) {\n if ( yych <= '9' ) {\n if ( yych <= '/' ) goto yy13 ;\n }\n else {\n if ( yych == 'D' ) goto yy24 ;\n goto yy13 ;\n }\n }\n else {\n if ( yych <= 'W' ) {\n if ( yych <= 'M' ) goto yy27 ;\n if ( yych <= 'V' ) goto yy13 ;\n goto yy26 ;\n }\n else {\n if ( yych == 'Y' ) goto yy28 ;\n goto yy13 ;\n }\n }\n YYDEBUG ( 36 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych != '-' ) goto yy39 ;\n YYDEBUG ( 37 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '0' ) goto yy40 ;\n if ( yych <= '1' ) goto yy41 ;\n goto yy13 ;\n yy38 : YYDEBUG ( 38 , * YYCURSOR ) ;\n ++ YYCURSOR ;\n if ( ( YYLIMIT - YYCURSOR ) < 3 ) YYFILL ( 3 ) ;\n yych = * YYCURSOR ;\n yy39 : YYDEBUG ( 39 , * YYCURSOR ) ;\n if ( yych <= 'L' ) {\n if ( yych <= '9' ) {\n if ( yych <= '/' ) goto yy13 ;\n goto yy38 ;\n }\n else {\n if ( yych == 'D' ) goto yy24 ;\n goto yy13 ;\n }\n }\n else {\n if ( yych <= 'W' ) {\n if ( yych <= 'M' ) goto yy27 ;\n if ( yych <= 'V' ) goto yy13 ;\n goto yy26 ;\n }\n else {\n if ( yych == 'Y' ) goto yy28 ;\n goto yy13 ;\n }\n }\n yy40 : YYDEBUG ( 40 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '9' ) goto yy42 ;\n goto yy13 ;\n yy41 : YYDEBUG ( 41 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= '3' ) goto yy13 ;\n yy42 : YYDEBUG ( 42 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych != '-' ) goto yy13 ;\n YYDEBUG ( 43 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '0' ) goto yy44 ;\n if ( yych <= '2' ) goto yy45 ;\n if ( yych <= '3' ) goto yy46 ;\n goto yy13 ;\n yy44 : YYDEBUG ( 44 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '9' ) goto yy47 ;\n goto yy13 ;\n yy45 : YYDEBUG ( 45 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '9' ) goto yy47 ;\n goto yy13 ;\n yy46 : YYDEBUG ( 46 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= '2' ) goto yy13 ;\n yy47 : YYDEBUG ( 47 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych != 'T' ) goto yy13 ;\n YYDEBUG ( 48 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '1' ) goto yy49 ;\n if ( yych <= '2' ) goto yy50 ;\n goto yy13 ;\n yy49 : YYDEBUG ( 49 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '9' ) goto yy51 ;\n goto yy13 ;\n yy50 : YYDEBUG ( 50 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= '5' ) goto yy13 ;\n yy51 : YYDEBUG ( 51 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych != ':' ) goto yy13 ;\n YYDEBUG ( 52 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= '6' ) goto yy13 ;\n YYDEBUG ( 53 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= ':' ) goto yy13 ;\n YYDEBUG ( 54 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych != ':' ) goto yy13 ;\n YYDEBUG ( 55 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= '6' ) goto yy13 ;\n YYDEBUG ( 56 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= ':' ) goto yy13 ;\n YYDEBUG ( 57 , * YYCURSOR ) ;\n ++ YYCURSOR ;\n YYDEBUG ( 58 , * YYCURSOR ) ;\n # line 393 \"ext/date/lib/parse_iso_intervals.re\" {\n DEBUG_OUTPUT ( \"combinedrep\" ) ;\n TIMELIB_INIT ;\n s -> period -> y = timelib_get_unsigned_nr ( ( char * * ) & ptr , 4 ) ;\n ptr ++ ;\n s -> period -> m = timelib_get_unsigned_nr ( ( char * * ) & ptr , 2 ) ;\n ptr ++ ;\n s -> period -> d = timelib_get_unsigned_nr ( ( char * * ) & ptr , 2 ) ;\n ptr ++ ;\n s -> period -> h = timelib_get_unsigned_nr ( ( char * * ) & ptr , 2 ) ;\n ptr ++ ;\n s -> period -> i = timelib_get_unsigned_nr ( ( char * * ) & ptr , 2 ) ;\n ptr ++ ;\n s -> period -> s = timelib_get_unsigned_nr ( ( char * * ) & ptr , 2 ) ;\n s -> have_period = 1 ;\n TIMELIB_DEINIT ;\n return TIMELIB_PERIOD ;\n }\n # line 792 \"ext/date/lib/parse_iso_intervals.c\" yy59 : YYDEBUG ( 59 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= ':' ) goto yy13 ;\n YYDEBUG ( 60 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= ':' ) goto yy13 ;\n YYDEBUG ( 61 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) {\n if ( yych == '-' ) goto yy64 ;\n goto yy13 ;\n }\n else {\n if ( yych <= '0' ) goto yy62 ;\n if ( yych <= '1' ) goto yy63 ;\n goto yy13 ;\n }\n yy62 : YYDEBUG ( 62 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '0' ) goto yy13 ;\n if ( yych <= '9' ) goto yy85 ;\n goto yy13 ;\n yy63 : YYDEBUG ( 63 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '2' ) goto yy85 ;\n goto yy13 ;\n yy64 : YYDEBUG ( 64 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '0' ) goto yy65 ;\n if ( yych <= '1' ) goto yy66 ;\n goto yy13 ;\n yy65 : YYDEBUG ( 65 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '0' ) goto yy13 ;\n if ( yych <= '9' ) goto yy67 ;\n goto yy13 ;\n yy66 : YYDEBUG ( 66 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= '3' ) goto yy13 ;\n yy67 : YYDEBUG ( 67 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych != '-' ) goto yy13 ;\n YYDEBUG ( 68 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '0' ) goto yy69 ;\n if ( yych <= '2' ) goto yy70 ;\n if ( yych <= '3' ) goto yy71 ;\n goto yy13 ;\n yy69 : YYDEBUG ( 69 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '0' ) goto yy13 ;\n if ( yych <= '9' ) goto yy72 ;\n goto yy13 ;\n yy70 : YYDEBUG ( 70 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '9' ) goto yy72 ;\n goto yy13 ;\n yy71 : YYDEBUG ( 71 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= '2' ) goto yy13 ;\n yy72 : YYDEBUG ( 72 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych != 'T' ) goto yy13 ;\n YYDEBUG ( 73 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '1' ) goto yy74 ;\n if ( yych <= '2' ) goto yy75 ;\n goto yy13 ;\n yy74 : YYDEBUG ( 74 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '9' ) goto yy76 ;\n goto yy13 ;\n yy75 : YYDEBUG ( 75 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= '5' ) goto yy13 ;\n yy76 : YYDEBUG ( 76 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych != ':' ) goto yy13 ;\n YYDEBUG ( 77 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= '6' ) goto yy13 ;\n YYDEBUG ( 78 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= ':' ) goto yy13 ;\n YYDEBUG ( 79 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych != ':' ) goto yy13 ;\n YYDEBUG ( 80 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= '6' ) goto yy13 ;\n YYDEBUG ( 81 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= ':' ) goto yy13 ;\n YYDEBUG ( 82 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych != 'Z' ) goto yy13 ;\n yy83 : YYDEBUG ( 83 , * YYCURSOR ) ;\n ++ YYCURSOR ;\n YYDEBUG ( 84 , * YYCURSOR ) ;\n # line 327 \"ext/date/lib/parse_iso_intervals.re\" {\n timelib_time * current ;\n if ( s -> have_date || s -> have_period ) {\n current = s -> end ;\n s -> have_end_date = 1 ;\n }\n else {\n current = s -> begin ;\n s -> have_begin_date = 1 ;\n }\n DEBUG_OUTPUT ( \"datetimebasic | datetimeextended\" ) ;\n TIMELIB_INIT ;\n current -> y = timelib_get_nr ( ( char * * ) & ptr , 4 ) ;\n current -> m = timelib_get_nr ( ( char * * ) & ptr , 2 ) ;\n current -> d = timelib_get_nr ( ( char * * ) & ptr , 2 ) ;\n current -> h = timelib_get_nr ( ( char * * ) & ptr , 2 ) ;\n current -> i = timelib_get_nr ( ( char * * ) & ptr , 2 ) ;\n current -> s = timelib_get_nr ( ( char * * ) & ptr , 2 ) ;\n s -> have_date = 1 ;\n TIMELIB_DEINIT ;\n return TIMELIB_ISO_DATE ;\n }\n # line 944 \"ext/date/lib/parse_iso_intervals.c\" yy85 : YYDEBUG ( 85 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '0' ) goto yy86 ;\n if ( yych <= '2' ) goto yy87 ;\n if ( yych <= '3' ) goto yy88 ;\n goto yy13 ;\n yy86 : YYDEBUG ( 86 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '0' ) goto yy13 ;\n if ( yych <= '9' ) goto yy89 ;\n goto yy13 ;\n yy87 : YYDEBUG ( 87 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '9' ) goto yy89 ;\n goto yy13 ;\n yy88 : YYDEBUG ( 88 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= '2' ) goto yy13 ;\n yy89 : YYDEBUG ( 89 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych != 'T' ) goto yy13 ;\n YYDEBUG ( 90 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '1' ) goto yy91 ;\n if ( yych <= '2' ) goto yy92 ;\n goto yy13 ;\n yy91 : YYDEBUG ( 91 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych <= '9' ) goto yy93 ;\n goto yy13 ;\n yy92 : YYDEBUG ( 92 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= '5' ) goto yy13 ;\n yy93 : YYDEBUG ( 93 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= '6' ) goto yy13 ;\n YYDEBUG ( 94 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= ':' ) goto yy13 ;\n YYDEBUG ( 95 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= '6' ) goto yy13 ;\n YYDEBUG ( 96 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych <= '/' ) goto yy13 ;\n if ( yych >= ':' ) goto yy13 ;\n YYDEBUG ( 97 , * YYCURSOR ) ;\n yych = * ++ YYCURSOR ;\n if ( yych == 'Z' ) goto yy83 ;\n goto yy13 ;\n yy98 : YYDEBUG ( 98 , * YYCURSOR ) ;\n ++ YYCURSOR ;\n if ( YYLIMIT <= YYCURSOR ) YYFILL ( 1 ) ;\n yych = * YYCURSOR ;\n YYDEBUG ( 99 , * YYCURSOR ) ;\n if ( yych <= '/' ) goto yy100 ;\n if ( yych <= '9' ) goto yy98 ;\n yy100 : YYDEBUG ( 100 , * YYCURSOR ) ;\n # line 316 \"ext/date/lib/parse_iso_intervals.re\" {\n DEBUG_OUTPUT ( \"recurrences\" ) ;\n TIMELIB_INIT ;\n ptr ++ ;\n s -> recurrences = timelib_get_unsigned_nr ( ( char * * ) & ptr , 9 ) ;\n TIMELIB_DEINIT ;\n s -> have_recurrences = 1 ;\n return TIMELIB_PERIOD ;\n }\n # line 1032 \"ext/date/lib/parse_iso_intervals.c\" }\n # line 428 \"ext/date/lib/parse_iso_intervals.re\" }"}
{"idx": 10152, "target": 1, "func": "static int ztype ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n ref tnref ;\n int code = array_get ( imemory , op , ( long ) r_btype ( op - 1 ) , & tnref ) ;\n if ( code < 0 ) return code ;\n if ( ! r_has_type ( & tnref , t_name ) ) {\n check_op ( 2 ) ;\n {\n if ( op [ - 1 ] . value . pstruct != 0x00 ) {\n const char * sname = gs_struct_type_name_string ( gs_object_type ( imemory , op [ - 1 ] . value . pstruct ) ) ;\n int code = name_ref ( imemory , ( const byte * ) sname , strlen ( sname ) , ( ref * ) ( op - 1 ) , 0 ) ;\n if ( code < 0 ) return code ;\n }\n else return_error ( gs_error_stackunderflow ) ;\n }\n r_set_attrs ( op - 1 , a_executable ) ;\n }\n else {\n ref_assign ( op - 1 , & tnref ) ;\n }\n pop ( 1 ) ;\n return 0 ;\n }"}
{"idx": 10153, "target": 0, "func": "static void sig_message_private ( SERVER_REC * server , const char * msg , const char * nick , const char * address ) {\n g_return_if_fail ( server != NULL ) ;\n g_return_if_fail ( nick != NULL ) ;\n SERVER_LAST_MSG_ADD ( server , nick ) ;\n }"}
{"idx": 10154, "target": 0, "func": "static void xml_end_tag ( void * userData , const char * name ) {\n struct xml_ctx * ctx = ( struct xml_ctx * ) userData ;\n const char * c = strchr ( name , ':' ) ;\n char * ep ;\n ctx -> userFunc ( ctx , 1 ) ;\n if ( c == NULL ) c = name ;\n else c ++ ;\n ep = ctx -> name + strlen ( ctx -> name ) - strlen ( c ) - 1 ;\n * ep = 0 ;\n }"}
{"idx": 10155, "target": 0, "func": "static my_bool grant_load_procs_priv ( TABLE * p_table ) {\n MEM_ROOT * memex_ptr ;\n my_bool return_val = 1 ;\n bool check_no_resolve = specialflag & SPECIAL_NO_RESOLVE ;\n MEM_ROOT * * save_mem_root_ptr = my_pthread_getspecific_ptr ( MEM_ROOT * * , THR_MALLOC ) ;\n DBUG_ENTER ( \"grant_load_procs_priv\" ) ;\n ( void ) hash_init ( & proc_priv_hash , & my_charset_utf8_bin , 0 , 0 , 0 , ( hash_get_key ) get_grant_table , 0 , 0 ) ;\n ( void ) hash_init ( & func_priv_hash , & my_charset_utf8_bin , 0 , 0 , 0 , ( hash_get_key ) get_grant_table , 0 , 0 ) ;\n p_table -> file -> ha_index_init ( 0 , 1 ) ;\n p_table -> use_all_columns ( ) ;\n if ( ! p_table -> file -> index_first ( p_table -> record [ 0 ] ) ) {\n memex_ptr = & memex ;\n my_pthread_setspecific_ptr ( THR_MALLOC , & memex_ptr ) ;\n do {\n GRANT_NAME * mem_check ;\n HASH * hash ;\n if ( ! ( mem_check = new ( memex_ptr ) GRANT_NAME ( p_table , TRUE ) ) ) {\n goto end_unlock ;\n }\n if ( check_no_resolve ) {\n if ( hostname_requires_resolving ( mem_check -> host . hostname ) ) {\n sql_print_warning ( \"'procs_priv' entry '%s %s@%s' \" \"ignored in --skip-name-resolve mode.\" , mem_check -> tname , mem_check -> user , mem_check -> host . hostname ? mem_check -> host . hostname : \"\" ) ;\n continue ;\n }\n }\n if ( p_table -> field [ 4 ] -> val_int ( ) == TYPE_ENUM_PROCEDURE ) {\n hash = & proc_priv_hash ;\n }\n else if ( p_table -> field [ 4 ] -> val_int ( ) == TYPE_ENUM_FUNCTION ) {\n hash = & func_priv_hash ;\n }\n else {\n sql_print_warning ( \"'procs_priv' entry '%s' \" \"ignored, bad routine type\" , mem_check -> tname ) ;\n continue ;\n }\n mem_check -> privs = fix_rights_for_procedure ( mem_check -> privs ) ;\n if ( ! mem_check -> ok ( ) ) delete mem_check ;\n else if ( my_hash_insert ( hash , ( uchar * ) mem_check ) ) {\n delete mem_check ;\n goto end_unlock ;\n }\n }\n while ( ! p_table -> file -> index_next ( p_table -> record [ 0 ] ) ) ;\n }\n return_val = 0 ;\n end_unlock : p_table -> file -> ha_index_end ( ) ;\n my_pthread_setspecific_ptr ( THR_MALLOC , save_mem_root_ptr ) ;\n DBUG_RETURN ( return_val ) ;\n }"}
{"idx": 10156, "target": 0, "func": "static void choose_partitioning ( VP9_COMP * cpi , const TileInfo * const tile , int mi_row , int mi_col ) {\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCK * x = & cpi -> mb ;\n MACROBLOCKD * xd = & cpi -> mb . e_mbd ;\n int i , j , k ;\n v64x64 vt ;\n uint8_t * s ;\n const uint8_t * d ;\n int sp ;\n int dp ;\n int pixels_wide = 64 , pixels_high = 64 ;\n int_mv nearest_mv , near_mv ;\n const YV12_BUFFER_CONFIG * yv12 = get_ref_frame_buffer ( cpi , LAST_FRAME ) ;\n const struct scale_factors * const sf = & cm -> frame_refs [ LAST_FRAME - 1 ] . sf ;\n vp9_zero ( vt ) ;\n set_offsets ( cpi , tile , mi_row , mi_col , BLOCK_64X64 ) ;\n if ( xd -> mb_to_right_edge < 0 ) pixels_wide += ( xd -> mb_to_right_edge >> 3 ) ;\n if ( xd -> mb_to_bottom_edge < 0 ) pixels_high += ( xd -> mb_to_bottom_edge >> 3 ) ;\n s = x -> plane [ 0 ] . src . buf ;\n sp = x -> plane [ 0 ] . src . stride ;\n if ( cm -> frame_type != KEY_FRAME ) {\n vp9_setup_pre_planes ( xd , 0 , yv12 , mi_row , mi_col , sf ) ;\n xd -> mi [ 0 ] . src_mi -> mbmi . ref_frame [ 0 ] = LAST_FRAME ;\n xd -> mi [ 0 ] . src_mi -> mbmi . sb_type = BLOCK_64X64 ;\n vp9_find_best_ref_mvs ( xd , cm -> allow_high_precision_mv , xd -> mi [ 0 ] . src_mi -> mbmi . ref_mvs [ LAST_FRAME ] , & nearest_mv , & near_mv ) ;\n xd -> mi [ 0 ] . src_mi -> mbmi . mv [ 0 ] = nearest_mv ;\n vp9_build_inter_predictors_sby ( xd , mi_row , mi_col , BLOCK_64X64 ) ;\n d = xd -> plane [ 0 ] . dst . buf ;\n dp = xd -> plane [ 0 ] . dst . stride ;\n }\n else {\n d = VP9_VAR_OFFS ;\n dp = 0 ;\n }\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n const int x32_idx = ( ( i & 1 ) << 5 ) ;\n const int y32_idx = ( ( i >> 1 ) << 5 ) ;\n for ( j = 0 ;\n j < 4 ;\n j ++ ) {\n const int x16_idx = x32_idx + ( ( j & 1 ) << 4 ) ;\n const int y16_idx = y32_idx + ( ( j >> 1 ) << 4 ) ;\n v16x16 * vst = & vt . split [ i ] . split [ j ] ;\n for ( k = 0 ;\n k < 4 ;\n k ++ ) {\n int x_idx = x16_idx + ( ( k & 1 ) << 3 ) ;\n int y_idx = y16_idx + ( ( k >> 1 ) << 3 ) ;\n unsigned int sse = 0 ;\n int sum = 0 ;\n if ( x_idx < pixels_wide && y_idx < pixels_high ) vp9_get8x8var ( s + y_idx * sp + x_idx , sp , d + y_idx * dp + x_idx , dp , & sse , & sum ) ;\n fill_variance ( sse , sum , 64 , & vst -> split [ k ] . part_variances . none ) ;\n }\n }\n }\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n for ( j = 0 ;\n j < 4 ;\n j ++ ) {\n fill_variance_tree ( & vt . split [ i ] . split [ j ] , BLOCK_16X16 ) ;\n }\n fill_variance_tree ( & vt . split [ i ] , BLOCK_32X32 ) ;\n }\n fill_variance_tree ( & vt , BLOCK_64X64 ) ;\n if ( ! set_vt_partitioning ( cpi , & vt , BLOCK_64X64 , mi_row , mi_col ) ) {\n for ( i = 0 ;\n i < 4 ;\n ++ i ) {\n const int x32_idx = ( ( i & 1 ) << 2 ) ;\n const int y32_idx = ( ( i >> 1 ) << 2 ) ;\n if ( ! set_vt_partitioning ( cpi , & vt . split [ i ] , BLOCK_32X32 , ( mi_row + y32_idx ) , ( mi_col + x32_idx ) ) ) {\n for ( j = 0 ;\n j < 4 ;\n ++ j ) {\n const int x16_idx = ( ( j & 1 ) << 1 ) ;\n const int y16_idx = ( ( j >> 1 ) << 1 ) ;\n # define DISABLE_8X8_VAR_BASED_PARTITION # ifdef DISABLE_8X8_VAR_BASED_PARTITION if ( mi_row + y32_idx + y16_idx + 1 < cm -> mi_rows && mi_row + x32_idx + x16_idx + 1 < cm -> mi_cols ) {\n set_block_size ( cpi , ( mi_row + y32_idx + y16_idx ) , ( mi_col + x32_idx + x16_idx ) , BLOCK_16X16 ) ;\n }\n else {\n for ( k = 0 ;\n k < 4 ;\n ++ k ) {\n const int x8_idx = ( k & 1 ) ;\n const int y8_idx = ( k >> 1 ) ;\n set_block_size ( cpi , ( mi_row + y32_idx + y16_idx + y8_idx ) , ( mi_col + x32_idx + x16_idx + x8_idx ) , BLOCK_8X8 ) ;\n }\n }\n # else if ( ! set_vt_partitioning ( cpi , & vt . split [ i ] . split [ j ] , tile , BLOCK_16X16 , ( mi_row + y32_idx + y16_idx ) , ( mi_col + x32_idx + x16_idx ) , 2 ) ) {\n for ( k = 0 ;\n k < 4 ;\n ++ k ) {\n const int x8_idx = ( k & 1 ) ;\n const int y8_idx = ( k >> 1 ) ;\n set_block_size ( cpi , ( mi_row + y32_idx + y16_idx + y8_idx ) , ( mi_col + x32_idx + x16_idx + x8_idx ) , BLOCK_8X8 ) ;\n }\n }\n # endif }\n }\n }\n }\n }"}
{"idx": 10157, "target": 0, "func": "static int dissect_h225_T_ipSourceRoute ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_T_ipSourceRoute , T_ipSourceRoute_sequence ) ;\n return offset ;\n }"}
{"idx": 10158, "target": 0, "func": "static int parse_overview_line ( char * line , void * data ) {\n struct FetchCtx * fc = data ;\n struct Context * ctx = fc -> ctx ;\n struct NntpData * nntp_data = ctx -> data ;\n struct Header * hdr = NULL ;\n char * header = NULL , * field = NULL ;\n bool save = true ;\n anum_t anum ;\n if ( ! line ) return 0 ;\n field = strchr ( line , '\\t' ) ;\n if ( field ) * field ++ = '\\0' ;\n if ( sscanf ( line , ANUM , & anum ) != 1 ) return 0 ;\n mutt_debug ( 2 , \"\" ANUM \"\\n\" , anum ) ;\n if ( anum < fc -> first || anum > fc -> last ) return 0 ;\n if ( ! fc -> messages [ anum - fc -> first ] ) {\n if ( ! ctx -> quiet ) mutt_progress_update ( & fc -> progress , anum - fc -> first + 1 , - 1 ) ;\n return 0 ;\n }\n FILE * fp = mutt_file_mkstemp ( ) ;\n if ( ! fp ) return - 1 ;\n header = nntp_data -> nserv -> overview_fmt ;\n while ( field ) {\n char * b = field ;\n if ( * header ) {\n if ( strstr ( header , \":full\" ) == NULL && fputs ( header , fp ) == EOF ) {\n mutt_file_fclose ( & fp ) ;\n return - 1 ;\n }\n header = strchr ( header , '\\0' ) + 1 ;\n }\n field = strchr ( field , '\\t' ) ;\n if ( field ) * field ++ = '\\0' ;\n if ( fputs ( b , fp ) == EOF || fputc ( '\\n' , fp ) == EOF ) {\n mutt_file_fclose ( & fp ) ;\n return - 1 ;\n }\n }\n rewind ( fp ) ;\n if ( ctx -> msgcount >= ctx -> hdrmax ) mx_alloc_memory ( ctx ) ;\n hdr = ctx -> hdrs [ ctx -> msgcount ] = mutt_header_new ( ) ;\n hdr -> env = mutt_rfc822_read_header ( fp , hdr , 0 , 0 ) ;\n hdr -> env -> newsgroups = mutt_str_strdup ( nntp_data -> group ) ;\n hdr -> received = hdr -> date_sent ;\n mutt_file_fclose ( & fp ) ;\n # ifdef USE_HCACHE if ( fc -> hc ) {\n char buf [ 16 ] ;\n snprintf ( buf , sizeof ( buf ) , \"%u\" , anum ) ;\n void * hdata = mutt_hcache_fetch ( fc -> hc , buf , strlen ( buf ) ) ;\n if ( hdata ) {\n mutt_debug ( 2 , \"mutt_hcache_fetch %s\\n\" , buf ) ;\n mutt_header_free ( & hdr ) ;\n ctx -> hdrs [ ctx -> msgcount ] = hdr = mutt_hcache_restore ( hdata ) ;\n mutt_hcache_free ( fc -> hc , & hdata ) ;\n hdr -> data = 0 ;\n hdr -> read = false ;\n hdr -> old = false ;\n if ( hdr -> deleted && ! fc -> restore ) {\n if ( nntp_data -> bcache ) {\n mutt_debug ( 2 , \"mutt_bcache_del %s\\n\" , buf ) ;\n mutt_bcache_del ( nntp_data -> bcache , buf ) ;\n }\n save = false ;\n }\n }\n else {\n mutt_debug ( 2 , \"mutt_hcache_store %s\\n\" , buf ) ;\n mutt_hcache_store ( fc -> hc , buf , strlen ( buf ) , hdr , 0 ) ;\n }\n }\n # endif if ( save ) {\n hdr -> index = ctx -> msgcount ++ ;\n hdr -> read = false ;\n hdr -> old = false ;\n hdr -> deleted = false ;\n hdr -> data = mutt_mem_calloc ( 1 , sizeof ( struct NntpHeaderData ) ) ;\n NHDR ( hdr ) -> article_num = anum ;\n if ( fc -> restore ) hdr -> changed = true ;\n else {\n nntp_article_status ( ctx , hdr , NULL , anum ) ;\n if ( ! hdr -> read ) nntp_parse_xref ( ctx , hdr ) ;\n }\n if ( anum > nntp_data -> last_loaded ) nntp_data -> last_loaded = anum ;\n }\n else mutt_header_free ( & hdr ) ;\n if ( ! ctx -> quiet ) mutt_progress_update ( & fc -> progress , anum - fc -> first + 1 , - 1 ) ;\n return 0 ;\n }"}
{"idx": 10159, "target": 0, "func": "static int dsa_copy_parameters ( EVP_PKEY * to , const EVP_PKEY * from ) {\n BIGNUM * a ;\n if ( to -> pkey . dsa == NULL ) {\n to -> pkey . dsa = DSA_new ( ) ;\n if ( to -> pkey . dsa == NULL ) return 0 ;\n }\n if ( ( a = BN_dup ( from -> pkey . dsa -> p ) ) == NULL ) return 0 ;\n BN_free ( to -> pkey . dsa -> p ) ;\n to -> pkey . dsa -> p = a ;\n if ( ( a = BN_dup ( from -> pkey . dsa -> q ) ) == NULL ) return 0 ;\n BN_free ( to -> pkey . dsa -> q ) ;\n to -> pkey . dsa -> q = a ;\n if ( ( a = BN_dup ( from -> pkey . dsa -> g ) ) == NULL ) return 0 ;\n BN_free ( to -> pkey . dsa -> g ) ;\n to -> pkey . dsa -> g = a ;\n return 1 ;\n }"}
{"idx": 10160, "target": 0, "func": "static vpx_codec_err_t ctrl_set_roi_map ( vpx_codec_alg_priv_t * ctx , va_list args ) {\n ( void ) ctx ;\n ( void ) args ;\n return VPX_CODEC_INVALID_PARAM ;\n }"}
{"idx": 10161, "target": 0, "func": "static guint16 de_u2u ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n guint32 proto_discr ;\n proto_tree * subtree ;\n tvbuff_t * u2u_tvb ;\n curr_offset = offset ;\n proto_tree_add_item_ret_uint ( tree , hf_gsm_a_dtap_u2u_prot_discr , tvb , curr_offset , 1 , ENC_BIG_ENDIAN , & proto_discr ) ;\n curr_offset ++ ;\n subtree = proto_tree_add_subtree ( tree , tvb , curr_offset , len - 1 , ett_gsm_dtap_elem [ DE_USER_USER ] , NULL , \"User-user information\" ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_data , tvb , curr_offset , len - 1 , ENC_NA ) ;\n u2u_tvb = tvb_new_subset_length ( tvb , curr_offset , len - 1 ) ;\n dissector_try_uint_new ( u2u_dissector_table , proto_discr , u2u_tvb , pinfo , proto_tree_get_root ( tree ) , TRUE , NULL ) ;\n return ( len ) ;\n }"}
{"idx": 10162, "target": 1, "func": "static void _reconnectToDB ( ArchiveHandle * AH , const char * dbname ) {\n if ( RestoringToDB ( AH ) ) ReconnectToServer ( AH , dbname , NULL ) ;\n else {\n PQExpBuffer qry = createPQExpBuffer ( ) ;\n appendPQExpBuffer ( qry , \"\\\\connect %s\\n\\n\" , dbname ? fmtId ( dbname ) : \"-\" ) ;\n ahprintf ( AH , \"%s\" , qry -> data ) ;\n destroyPQExpBuffer ( qry ) ;\n }\n if ( AH -> currUser ) free ( AH -> currUser ) ;\n AH -> currUser = NULL ;\n if ( AH -> currSchema ) free ( AH -> currSchema ) ;\n AH -> currSchema = NULL ;\n if ( AH -> currTablespace ) free ( AH -> currTablespace ) ;\n AH -> currTablespace = NULL ;\n AH -> currWithOids = - 1 ;\n _doSetFixedOutputState ( AH ) ;\n }"}
{"idx": 10163, "target": 0, "func": "static int parse_CTableColumn ( tvbuff_t * tvb , packet_info * pinfo , int offset , proto_tree * parent_tree , proto_tree * pad_tree , struct CTableColumn * col , const char * fmt , ... ) {\n static const value_string DBAGGTTYPE [ ] = {\n {\n 0x0 , \"DBAGGTTYPE_BYNONE\" }\n , {\n 0x1 , \"DBAGGTTYPE_SUM\" }\n , {\n 0x2 , \"DBAGGTTYPE_MAX\" }\n , {\n 0x3 , \"DBAGGTTYPE_MIN\" }\n , {\n 0x4 , \"DBAGGTTYPE_AVG\" }\n , {\n 0x5 , \"DBAGGTTYPE_COUNT\" }\n , {\n 0x6 , \"DBAGGTTYPE_CHILDCOUNT\" }\n , {\n 0x7 , \"DBAGGTTYPE_BYFREQ\" }\n , {\n 0x8 , \"DBAGGTTYPE_FIRST\" }\n , {\n 0x9 , \"DBAGGTTYPE_DATERANGE\" }\n , {\n 0xA , \"DBAGGTTYPE_REPRESENTATIVEOF\" }\n , {\n 0xB , \"DBAGGTTYPE_EDITDISTANCE\" }\n , {\n 0 , NULL }\n }\n ;\n proto_item * item , * ti_type ;\n proto_tree * tree ;\n va_list ap ;\n struct vtype_data * type ;\n enum vType vtype_val = VT_EMPTY ;\n enum vType vtype_valhi = VT_EMPTY ;\n struct CFullPropSpec v ;\n const char * txt ;\n guint8 used ;\n const char * modifier = \"\" ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CTableColumn , & item , txt ) ;\n offset = parse_CFullPropSpec ( tvb , offset , tree , pad_tree , & v , \"PropSpec\" ) ;\n get_name_from_fullpropspec ( & v , col -> name , PROP_LENGTH ) ;\n col -> vtype = tvb_get_letohl ( tvb , offset ) ;\n vtype_val = ( enum vType ) col -> vtype ;\n vtype_valhi = ( enum vType ) ( col -> vtype & 0xFF00 ) ;\n if ( vtype_valhi ) {\n if ( vtype_valhi == VT_VECTOR ) {\n modifier = \"|VT_VECTOR\" ;\n }\n else if ( vtype_valhi == VT_ARRAY ) {\n modifier = \"|VT_ARRAY\" ;\n }\n else {\n modifier = \"|(Unknown, possibly error)\" ;\n }\n }\n type = vType_get_type ( vtype_val ) ;\n if ( type == NULL ) {\n ti_type = proto_tree_add_string ( tree , hf_mswsp_ctablecolumn_vtype , tvb , offset , 4 , \"Unknown CTableColumn type\" ) ;\n expert_add_info ( pinfo , ti_type , & ei_mswsp_invalid_variant_type ) ;\n }\n else proto_tree_add_string_format_value ( tree , hf_mswsp_ctablecolumn_vtype , tvb , offset , 4 , type -> str , \"%s%s\" , type -> str , modifier ) ;\n offset += 4 ;\n used = tvb_get_guint8 ( tvb , offset ) ;\n col -> aggregateused = used ;\n proto_tree_add_uint ( tree , hf_mswsp_ctablecolumn_aggused , tvb , offset , 1 , used ) ;\n offset += 1 ;\n if ( used ) {\n col -> aggregatetype = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_string ( tree , hf_mswsp_ctablecolumn_aggtype , tvb , offset , 1 , val_to_str ( col -> aggregatetype , DBAGGTTYPE , \"(Unknown: 0x%x)\" ) ) ;\n offset += 1 ;\n }\n col -> valueused = tvb_get_guint8 ( tvb , offset ) ;\n used = col -> valueused ;\n proto_tree_add_uint ( tree , hf_mswsp_ctablecolumn_valused , tvb , offset , 1 , used ) ;\n offset += 1 ;\n if ( used ) {\n offset = parse_padding ( tvb , offset , 2 , pad_tree , \"padding_Value\" ) ;\n col -> valueoffset = tvb_get_letohs ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_ctablecolumn_valoffset , tvb , offset , 2 , col -> valueoffset ) ;\n offset += 2 ;\n col -> valuesize = tvb_get_letohs ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_ctablecolumn_valsize , tvb , offset , 2 , col -> valuesize ) ;\n offset += 2 ;\n }\n used = tvb_get_guint8 ( tvb , offset ) ;\n col -> statusused = used ;\n proto_tree_add_uint ( tree , hf_mswsp_ctablecolumn_statused , tvb , offset , 1 , used ) ;\n offset += 1 ;\n if ( used ) {\n offset = parse_padding ( tvb , offset , 2 , pad_tree , \"padding_Status\" ) ;\n col -> statusoffset = tvb_get_letohs ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_ctablecolumn_statoffset , tvb , offset , 2 , col -> statusoffset ) ;\n offset += 2 ;\n }\n used = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_ctablecolumn_lenused , tvb , offset , 1 , used ) ;\n col -> lengthused = used ;\n offset += 1 ;\n if ( used ) {\n offset = parse_padding ( tvb , offset , 2 , pad_tree , \"padding_Length\" ) ;\n col -> lengthoffset = tvb_get_letohs ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_ctablecolumn_lenoffset , tvb , offset , 2 , col -> lengthoffset ) ;\n offset += 2 ;\n }\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 10164, "target": 0, "func": "static void print_md5 ( FILE * stream , unsigned char digest [ 16 ] ) {\n int i ;\n for ( i = 0 ;\n i < 16 ;\n ++ i ) fprintf ( stream , \"%02x\" , digest [ i ] ) ;\n }"}
{"idx": 10165, "target": 0, "func": "const char * get_errname_from_code ( uint error_code , st_error * e ) {\n DBUG_ENTER ( \"get_errname_from_code\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"error_code: %d\" , error_code ) ) ;\n if ( ! error_code ) {\n DBUG_RETURN ( \"\" ) ;\n }\n for ( ;\n e -> name ;\n e ++ ) {\n if ( e -> code == error_code ) {\n DBUG_RETURN ( e -> name ) ;\n }\n }\n DBUG_RETURN ( unknown_error ) ;\n }"}
{"idx": 10166, "target": 0, "func": "static obj_header_t * alloc_obj ( gs_ref_memory_t * mem , ulong lsize , gs_memory_type_ptr_t pstype , alloc_flags_t flags , client_name_t cname ) {\n obj_header_t * ptr ;\n if ( lsize >= mem -> large_size || ( flags & ALLOC_IMMOVABLE ) ) {\n ulong asize = ( ( lsize + obj_align_mask ) & - obj_align_mod ) + sizeof ( obj_header_t ) ;\n clump_t * cp = alloc_acquire_clump ( mem , asize + sizeof ( clump_head_t ) , false , \"large object clump\" ) ;\n if ( # if ARCH_SIZEOF_LONG > ARCH_SIZEOF_INT asize > max_uint # else asize < lsize # endif ) return 0 ;\n if ( cp == 0 ) return 0 ;\n cp -> c_alone = true ;\n ptr = ( obj_header_t * ) cp -> cbot ;\n cp -> cbot += asize ;\n ptr -> o_pad = 0 ;\n ptr -> o_alone = 1 ;\n ptr -> o_size = lsize ;\n }\n else {\n clump_splay_walker sw ;\n clump_t * cp = clump_splay_walk_init_mid ( & sw , mem -> cc ) ;\n uint asize = obj_size_round ( ( uint ) lsize ) ;\n bool allocate_success = false ;\n if ( lsize > max_freelist_size && ( flags & ALLOC_DIRECT ) ) {\n if ( ( ptr = large_freelist_alloc ( mem , lsize ) ) != 0 ) {\n -- ptr ;\n goto done ;\n }\n }\n if ( cp == 0 ) {\n mem -> cc = clump_splay_walk_init ( & sw , mem ) ;\n alloc_open_clump ( mem ) ;\n }\n # define CAN_ALLOC_AT_END ( cp ) \\ ( ( cp ) && ! ( ( cp ) -> c_alone ) && ( cp ) -> ctop - ( byte * ) ( ptr = ( obj_header_t * ) ( cp ) -> cbot ) \\ > asize + sizeof ( obj_header_t ) ) do {\n if ( CAN_ALLOC_AT_END ( mem -> cc ) ) {\n allocate_success = true ;\n break ;\n }\n else if ( mem -> is_controlled ) {\n gs_consolidate_free ( ( gs_memory_t * ) mem ) ;\n if ( CAN_ALLOC_AT_END ( mem -> cc ) ) {\n allocate_success = true ;\n break ;\n }\n }\n cp = clump_splay_walk_fwd ( & sw ) ;\n if ( cp == NULL ) break ;\n alloc_close_clump ( mem ) ;\n mem -> cc = cp ;\n alloc_open_clump ( mem ) ;\n }\n while ( 1 ) ;\n # ifdef CONSOLIDATE_BEFORE_ADDING_CLUMP if ( ! allocate_success ) {\n if ( ! mem -> is_controlled ) {\n clump_t * cp ;\n alloc_close_clump ( mem ) ;\n for ( cp = clump_splay_walk_init_mid ( & sw , cp_orig ) ;\n cp != NULL ;\n cp = clump_splay_walk_fwd ( & sw ) ) {\n consolidate_clump_free ( cp , mem ) ;\n if ( CAN_ALLOC_AT_END ( cp ) ) {\n mem -> cc = cp ;\n alloc_open_clump ( mem ) ;\n allocate_success = true ;\n break ;\n }\n }\n }\n }\n # endif # undef CAN_ALLOC_AT_END if ( ! allocate_success ) {\n clump_t * cp = alloc_add_clump ( mem , ( ulong ) mem -> clump_size , \"clump\" ) ;\n if ( cp ) {\n ptr = ( obj_header_t * ) cp -> cbot ;\n allocate_success = true ;\n }\n }\n if ( allocate_success ) mem -> cc -> cbot = ( byte * ) ptr + asize ;\n else if ( ! mem -> is_controlled || ( ptr = scavenge_low_free ( mem , ( uint ) lsize ) ) == 0 ) return 0 ;\n ptr -> o_pad = 0 ;\n ptr -> o_alone = 0 ;\n ptr -> o_size = ( uint ) lsize ;\n }\n done : ptr -> o_type = pstype ;\n # if IGC_PTR_STABILITY_CHECK ptr -> d . o . space_id = mem -> space_id ;\n # endif ptr ++ ;\n ASSIGN_HDR_ID ( ptr ) ;\n gs_alloc_fill ( ptr , gs_alloc_fill_alloc , lsize ) ;\n return ptr ;\n }\n static void consolidate_clump_free ( clump_t * cp , gs_ref_memory_t * mem ) {\n obj_header_t * begin_free = 0 ;\n cp -> int_freed_top = cp -> cbase ;\n SCAN_CLUMP_OBJECTS ( cp ) DO_ALL if ( pre -> o_type == & st_free ) {\n if ( begin_free == 0 ) begin_free = pre ;\n }\n else {\n if ( begin_free ) cp -> int_freed_top = ( byte * ) pre ;\n begin_free = 0 ;\n }\n END_OBJECTS_SCAN if ( begin_free ) {\n remove_range_from_freelist ( mem , begin_free , cp -> cbot ) ;\n if_debug4m ( 'a' , ( const gs_memory_t * ) mem , \"[a]resetting clump 0x%lx cbot from 0x%lx to 0x%lx (%lu free)\\n\" , ( ulong ) cp , ( ulong ) cp -> cbot , ( ulong ) begin_free , ( ulong ) ( ( byte * ) cp -> cbot - ( byte * ) begin_free ) ) ;\n cp -> cbot = ( byte * ) begin_free ;\n }\n }\n static splay_app_result_t consolidate ( clump_t * cp , void * arg ) {\n gs_ref_memory_t * mem = ( gs_ref_memory_t * ) arg ;\n consolidate_clump_free ( cp , mem ) ;\n if ( cp -> cbot == cp -> cbase && cp -> ctop == cp -> climit ) {\n if ( ! mem -> is_controlled ) {\n alloc_free_clump ( cp , mem ) ;\n if ( mem -> cc == cp ) mem -> cc = NULL ;\n }\n }\n return SPLAY_APP_CONTINUE ;\n }\n void ialloc_consolidate_free ( gs_ref_memory_t * mem ) {\n alloc_close_clump ( mem ) ;\n clump_splay_app ( mem -> root , mem , consolidate , mem ) ;\n if ( mem -> cc == NULL ) mem -> cc = mem -> root ;\n alloc_open_clump ( mem ) ;\n }\n static void i_consolidate_free ( gs_memory_t * mem ) {\n ialloc_consolidate_free ( ( gs_ref_memory_t * ) mem ) ;\n }\n typedef struct {\n uint need_free ;\n obj_header_t * found_pre ;\n gs_ref_memory_t * mem ;\n unsigned request_size ;\n }\n scavenge_data ;\n static splay_app_result_t scavenge ( clump_t * cp , void * arg ) {\n scavenge_data * sd = ( scavenge_data * ) arg ;\n obj_header_t * begin_free = NULL ;\n uint found_free = 0 ;\n sd -> found_pre = NULL ;\n SCAN_CLUMP_OBJECTS ( cp ) DO_ALL if ( pre -> o_type == & st_free ) {\n if ( begin_free == 0 ) {\n found_free = 0 ;\n begin_free = pre ;\n }\n found_free += pre_obj_rounded_size ( pre ) ;\n if ( begin_free != 0 && found_free >= sd -> need_free ) break ;\n }\n else begin_free = 0 ;\n END_OBJECTS_SCAN_NO_ABORT if ( begin_free != 0 && found_free >= sd -> need_free ) {\n remove_range_from_freelist ( sd -> mem , ( char * ) begin_free , ( char * ) begin_free + found_free ) ;\n sd -> found_pre = begin_free ;\n sd -> found_pre -> o_type = & st_free ;\n sd -> found_pre -> o_size = found_free - sizeof ( obj_header_t ) ;\n trim_obj ( sd -> mem , sd -> found_pre + 1 , sd -> request_size , cp ) ;\n return SPLAY_APP_STOP ;\n }\n return SPLAY_APP_CONTINUE ;\n }\n static obj_header_t * scavenge_low_free ( gs_ref_memory_t * mem , unsigned request_size ) {\n scavenge_data sd ;\n uint request_size_rounded = obj_size_round ( request_size ) ;\n sd . found_pre = 0 ;\n sd . need_free = request_size_rounded + sizeof ( obj_header_t ) ;\n sd . mem = mem ;\n sd . request_size = request_size ;\n clump_splay_app ( mem -> root , mem , scavenge , & sd ) ;\n return sd . found_pre ;\n }\n static void remove_range_from_freelist ( gs_ref_memory_t * mem , void * bottom , void * top ) {\n int num_free [ num_freelists ] ;\n int smallest = num_freelists , largest = - 1 ;\n const obj_header_t * cur ;\n uint size ;\n int i ;\n uint removed = 0 ;\n for ( cur = bottom ;\n cur != top ;\n cur = ( const obj_header_t * ) ( ( const byte * ) cur + obj_size_round ( size ) ) ) {\n size = cur -> o_size ;\n i = ( size > max_freelist_size ? LARGE_FREELIST_INDEX : ( size + obj_align_mask ) >> log2_obj_align_mod ) ;\n if ( i < smallest ) {\n if ( i == 0 ) continue ;\n if ( smallest < num_freelists ) memset ( & num_free [ i ] , 0 , ( smallest - i ) * sizeof ( int ) ) ;\n else num_free [ i ] = 0 ;\n smallest = i ;\n }\n if ( i > largest ) {\n if ( largest >= 0 ) memset ( & num_free [ largest + 1 ] , 0 , ( i - largest ) * sizeof ( int ) ) ;\n largest = i ;\n }\n num_free [ i ] ++ ;\n }\n for ( i = smallest ;\n i <= largest ;\n i ++ ) {\n int count = num_free [ i ] ;\n obj_header_t * pfree ;\n obj_header_t * * ppfprev ;\n if ( ! count ) continue ;\n ppfprev = & mem -> freelists [ i ] ;\n for ( ;\n ;\n ) {\n pfree = * ppfprev ;\n if ( PTR_GE ( pfree , bottom ) && PTR_LT ( pfree , top ) ) {\n * ppfprev = * ( obj_header_t * * ) pfree ;\n removed += obj_align_round ( pfree [ - 1 ] . o_size ) ;\n if ( ! -- count ) break ;\n }\n else ppfprev = ( obj_header_t * * ) pfree ;\n }\n }\n mem -> lost . objects -= ( char * ) top - ( char * ) bottom - removed ;\n }\n static void trim_obj ( gs_ref_memory_t * mem , obj_header_t * obj , uint size , clump_t * cp ) {\n uint rounded_size = obj_align_round ( size ) ;\n obj_header_t * pre_obj = obj - 1 ;\n obj_header_t * excess_pre = ( obj_header_t * ) ( ( char * ) obj + rounded_size ) ;\n uint old_rounded_size = obj_align_round ( pre_obj -> o_size ) ;\n uint excess_size = old_rounded_size - rounded_size - sizeof ( obj_header_t ) ;\n pre_obj -> o_size = size ;\n if ( old_rounded_size == rounded_size ) return ;\n if ( pre_obj -> o_alone ) {\n if ( ! cp ) {\n mem -> cfreed . memory = mem ;\n if ( clump_locate ( obj , & mem -> cfreed ) ) {\n cp = mem -> cfreed . cp ;\n }\n }\n if ( cp ) {\n # ifdef DEBUG if ( cp -> cbot != ( byte * ) obj + old_rounded_size ) {\n lprintf3 ( \"resizing 0x%lx, old size %u, new size %u, cbot wrong!\\n\" , ( ulong ) obj , old_rounded_size , size ) ;\n }\n else # endif {\n cp -> cbot = ( byte * ) excess_pre ;\n return ;\n }\n }\n pre_obj -> o_pad = 0 ;\n pre_obj -> o_alone = 0 ;\n }\n excess_pre -> o_type = & st_free ;\n excess_pre -> o_size = excess_size ;\n excess_pre -> o_pad = 0 ;\n excess_pre -> o_alone = 0 ;\n if ( excess_size >= obj_align_mod ) {\n obj_header_t * * pfl ;\n if ( mem -> cc && ( byte * ) excess_pre >= mem -> cc -> int_freed_top ) mem -> cc -> int_freed_top = ( byte * ) excess_pre + excess_size ;\n if ( excess_size <= max_freelist_size ) pfl = & mem -> freelists [ ( excess_size + obj_align_mask ) >> log2_obj_align_mod ] ;\n else {\n uint rounded_size = obj_align_round ( excess_size ) ;\n pfl = & mem -> freelists [ LARGE_FREELIST_INDEX ] ;\n if ( rounded_size > mem -> largest_free_size ) mem -> largest_free_size = rounded_size ;\n }\n * ( obj_header_t * * ) ( excess_pre + 1 ) = * pfl ;\n * pfl = excess_pre + 1 ;\n mem -> cfreed . memory = mem ;\n }\n else {\n mem -> lost . objects += excess_size + sizeof ( obj_header_t ) ;\n }\n }\n static int i_register_root ( gs_memory_t * mem , gs_gc_root_t * rp , gs_ptr_type_t ptype , void * * up , client_name_t cname ) {\n gs_ref_memory_t * const imem = ( gs_ref_memory_t * ) mem ;\n if ( rp == NULL ) {\n rp = gs_raw_alloc_struct_immovable ( imem -> non_gc_memory , & st_gc_root_t , \"i_register_root\" ) ;\n if ( rp == 0 ) return_error ( gs_error_VMerror ) ;\n rp -> free_on_unregister = true ;\n }\n else rp -> free_on_unregister = false ;\n if_debug3m ( '8' , mem , \"[8]register root(%s) 0x%lx -> 0x%lx\\n\" , client_name_string ( cname ) , ( ulong ) rp , ( ulong ) up ) ;\n rp -> ptype = ptype ;\n rp -> p = up ;\n rp -> next = imem -> roots ;\n imem -> roots = rp ;\n return 0 ;\n }\n static void i_unregister_root ( gs_memory_t * mem , gs_gc_root_t * rp , client_name_t cname ) {\n gs_ref_memory_t * const imem = ( gs_ref_memory_t * ) mem ;\n gs_gc_root_t * * rpp = & imem -> roots ;\n if_debug2m ( '8' , mem , \"[8]unregister root(%s) 0x%lx\\n\" , client_name_string ( cname ) , ( ulong ) rp ) ;\n while ( * rpp != rp ) rpp = & ( * rpp ) -> next ;\n * rpp = ( * rpp ) -> next ;\n if ( rp -> free_on_unregister ) gs_free_object ( imem -> non_gc_memory , rp , \"i_unregister_root\" ) ;\n }\n public_st_clump ( ) ;\n void alloc_link_clump ( clump_t * cp , gs_ref_memory_t * imem ) {\n splay_insert ( cp , imem ) ;\n SANITY_CHECK ( cp ) ;\n }\n static clump_t * alloc_add_clump ( gs_ref_memory_t * mem , ulong csize , client_name_t cname ) {\n clump_t * cp = alloc_acquire_clump ( mem , csize , true , cname ) ;\n if ( cp ) {\n alloc_close_clump ( mem ) ;\n mem -> cc = cp ;\n gs_alloc_fill ( mem -> cc -> cbase , gs_alloc_fill_free , mem -> cc -> climit - mem -> cc -> cbase ) ;\n }\n return cp ;\n }\n static clump_t * alloc_acquire_clump ( gs_ref_memory_t * mem , ulong csize , bool has_strings , client_name_t cname ) {\n gs_memory_t * parent = mem -> non_gc_memory ;\n clump_t * cp ;\n byte * cdata ;\n # if ARCH_SIZEOF_LONG > ARCH_SIZEOF_INT if ( csize != ( uint ) csize ) return 0 ;\n # endif cp = gs_raw_alloc_struct_immovable ( parent , & st_clump , cname ) ;\n if ( mem -> gc_status . signal_value != 0 ) {\n if ( ( ulong ) ( mem -> allocated ) >= mem -> limit ) {\n mem -> gc_status . requested += csize ;\n if ( mem -> limit >= mem -> gc_status . max_vm ) {\n gs_free_object ( parent , cp , cname ) ;\n return 0 ;\n }\n if_debug4m ( '0' , ( const gs_memory_t * ) mem , \"[0]signaling space=%d, allocated=%ld, limit=%ld, requested=%ld\\n\" , mem -> space , ( long ) mem -> allocated , ( long ) mem -> limit , ( long ) mem -> gc_status . requested ) ;\n mem -> gs_lib_ctx -> gcsignal = mem -> gc_status . signal_value ;\n }\n }\n cdata = gs_alloc_bytes_immovable ( parent , csize , cname ) ;\n if ( cp == 0 || cdata == 0 ) {\n gs_free_object ( parent , cdata , cname ) ;\n gs_free_object ( parent , cp , cname ) ;\n mem -> gc_status . requested = csize ;\n return 0 ;\n }\n alloc_init_clump ( cp , cdata , cdata + csize , has_strings , ( clump_t * ) 0 ) ;\n alloc_link_clump ( cp , mem ) ;\n mem -> allocated += st_clump . ssize + csize ;\n SANITY_CHECK ( cp ) ;\n return cp ;\n }\n void alloc_init_clump ( clump_t * cp , byte * bot , byte * top , bool has_strings , clump_t * outer ) {\n byte * cdata = bot ;\n if ( outer != 0 ) outer -> inner_count ++ ;\n cp -> chead = ( clump_head_t * ) cdata ;\n cdata += sizeof ( clump_head_t ) ;\n cp -> cbot = cp -> cbase = cp -> int_freed_top = cdata ;\n cp -> cend = top ;\n cp -> rcur = 0 ;\n cp -> rtop = 0 ;\n cp -> outer = outer ;\n cp -> inner_count = 0 ;\n cp -> has_refs = false ;\n cp -> sbase = cdata ;\n cp -> c_alone = false ;\n if ( has_strings && top - cdata >= string_space_quantum + sizeof ( long ) - 1 ) {\n uint nquanta = string_space_quanta ( top - cdata ) ;\n cp -> climit = cdata + nquanta * string_data_quantum ;\n cp -> smark = cp -> climit ;\n cp -> smark_size = string_quanta_mark_size ( nquanta ) ;\n cp -> sreloc = ( string_reloc_offset * ) ( cp -> smark + cp -> smark_size ) ;\n cp -> sfree1 = ( uint * ) cp -> sreloc ;\n }\n else {\n cp -> climit = cp -> cend ;\n cp -> sfree1 = 0 ;\n cp -> smark = 0 ;\n cp -> smark_size = 0 ;\n cp -> sreloc = 0 ;\n }\n cp -> ctop = cp -> climit ;\n alloc_init_free_strings ( cp ) ;\n }\n void alloc_init_free_strings ( clump_t * cp ) {\n if ( cp -> sfree1 ) memset ( cp -> sfree1 , 0 , STRING_FREELIST_SPACE ( cp ) ) ;\n cp -> sfree = 0 ;\n }\n void alloc_close_clump ( gs_ref_memory_t * mem ) {\n # ifdef DEBUG if ( gs_debug_c ( 'A' ) ) {\n dmlprintf1 ( ( const gs_memory_t * ) mem , \"[a%d]\" , alloc_trace_space ( mem ) ) ;\n dmprintf_clump ( ( const gs_memory_t * ) mem , \"closing clump\" , mem -> cc ) ;\n }\n # endif }\n void alloc_open_clump ( gs_ref_memory_t * mem ) {\n # ifdef DEBUG if ( gs_debug_c ( 'A' ) ) {\n dmlprintf1 ( ( const gs_memory_t * ) mem , \"[a%d]\" , alloc_trace_space ( mem ) ) ;\n dmprintf_clump ( ( const gs_memory_t * ) mem , \"opening clump\" , mem -> cc ) ;\n }\n # endif }\n # ifdef DEBUG static splay_app_result_t check_in_clump ( clump_t * cp , void * arg ) {\n clump_t * * cpp = ( clump_t * * ) arg ;\n if ( * cpp != cp ) return SPLAY_APP_CONTINUE ;\n * cpp = NULL ;\n return SPLAY_APP_STOP ;\n }\n # endif void alloc_unlink_clump ( clump_t * cp , gs_ref_memory_t * mem ) {\n SANITY_CHECK_MID ( cp ) ;\n # ifdef DEBUG if ( gs_alloc_debug ) {\n clump_t * found = cp ;\n clump_splay_app ( mem -> root , mem , check_in_clump , & found ) ;\n if ( found != NULL ) {\n mlprintf2 ( ( const gs_memory_t * ) mem , \"unlink_clump 0x%lx not owned by memory 0x%lx!\\n\" , ( ulong ) cp , ( ulong ) mem ) ;\n return ;\n }\n }\n # endif ( void ) clump_splay_remove ( cp , mem ) ;\n if ( mem -> cc == cp ) {\n mem -> cc = NULL ;\n }\n }\n void alloc_free_clump ( clump_t * cp , gs_ref_memory_t * mem ) {\n gs_memory_t * parent = mem -> non_gc_memory ;\n byte * cdata = ( byte * ) cp -> chead ;\n ulong csize = ( byte * ) cp -> cend - cdata ;\n alloc_unlink_clump ( cp , mem ) ;\n mem -> allocated -= st_clump . ssize ;\n if ( mem -> cfreed . cp == cp ) mem -> cfreed . cp = 0 ;\n if ( cp -> outer == 0 ) {\n mem -> allocated -= csize ;\n gs_free_object ( parent , cdata , \"alloc_free_clump(data)\" ) ;\n }\n else {\n cp -> outer -> inner_count -- ;\n gs_alloc_fill ( cdata , gs_alloc_fill_free , csize ) ;\n }\n gs_free_object ( parent , cp , \"alloc_free_clump(clump struct)\" ) ;\n }\n bool clump_locate_ptr ( const void * ptr , clump_locator_t * clp ) {\n clump_t * cp = clp -> memory -> root ;\n while ( cp ) {\n if ( PTR_LT ( ptr , cp -> cbase ) ) {\n cp = cp -> left ;\n continue ;\n }\n if ( PTR_GE ( ptr , cp -> cend ) ) {\n cp = cp -> right ;\n continue ;\n }\n splay_move_to_root ( cp , clp -> memory ) ;\n clp -> cp = cp ;\n return ! ptr_is_in_inner_clump ( ptr , cp ) ;\n }\n return false ;\n }\n bool ptr_is_within_mem_clumps ( const void * ptr , gs_ref_memory_t * mem ) {\n clump_t * cp = mem -> root ;\n while ( cp ) {\n if ( PTR_LT ( ptr , cp -> cbase ) ) {\n cp = cp -> left ;\n continue ;\n }\n if ( PTR_GE ( ptr , cp -> cend ) ) {\n cp = cp -> right ;\n continue ;\n }\n splay_move_to_root ( cp , mem ) ;\n return true ;\n }\n return false ;\n }\n # ifdef DEBUG # include \"string_.h\" static inline bool obj_in_control_region ( const void * obot , const void * otop , const dump_control_t * pdc ) {\n return ( ( pdc -> bottom == NULL || PTR_GT ( otop , pdc -> bottom ) ) && ( pdc -> top == NULL || PTR_LT ( obot , pdc -> top ) ) ) ;\n }\n const dump_control_t dump_control_default = {\n dump_do_default , NULL , NULL }\n ;\n const dump_control_t dump_control_all = {\n dump_do_strings | dump_do_type_addresses | dump_do_pointers | dump_do_pointed_strings | dump_do_contents , NULL , NULL }\n ;\n const dump_control_t dump_control_no_contents = {\n dump_do_strings | dump_do_type_addresses | dump_do_pointers | dump_do_pointed_strings , NULL , NULL }\n ;\n static void debug_indent ( const gs_memory_t * mem , int indent ) {\n int i ;\n for ( i = indent ;\n i > 0 ;\n -- i ) dmputc ( mem , ' ' ) ;\n }\n static void debug_dump_contents ( const gs_memory_t * mem , const byte * bot , const byte * top , int indent , bool as_chars ) {\n const byte * block ;\n # define block_size 16 if ( bot >= top ) return ;\n for ( block = bot - ( ( bot - ( byte * ) 0 ) & ( block_size - 1 ) ) ;\n block < top ;\n block += block_size ) {\n int i ;\n char label [ 12 ] ;\n if ( block >= bot + block_size && block <= top - ( block_size * 2 ) && ! memcmp ( block , block - block_size , block_size ) && ! memcmp ( block , block + block_size , block_size ) ) {\n if ( block < bot + block_size * 2 || memcmp ( block , block - block_size * 2 , block_size ) ) {\n debug_indent ( mem , indent ) ;\n dmputs ( mem , \" ...\\n\" ) ;\n }\n continue ;\n }\n gs_sprintf ( label , \"0x%lx:\" , ( ulong ) block ) ;\n debug_indent ( mem , indent ) ;\n dmputs ( mem , label ) ;\n for ( i = 0 ;\n i < block_size ;\n ++ i ) {\n const char * sepr = ( ( i & 3 ) == 0 && i != 0 ? \" \" : \" \" ) ;\n dmputs ( mem , sepr ) ;\n if ( block + i >= bot && block + i < top ) dmprintf1 ( mem , \"%02x\" , block [ i ] ) ;\n else dmputs ( mem , \" \" ) ;\n }\n dmputc ( mem , '\\n' ) ;\n if ( as_chars ) {\n debug_indent ( mem , indent + strlen ( label ) ) ;\n for ( i = 0 ;\n i < block_size ;\n ++ i ) {\n byte ch ;\n if ( ( i & 3 ) == 0 && i != 0 ) dmputc ( mem , ' ' ) ;\n if ( block + i >= bot && block + i < top && ( ch = block [ i ] ) >= 32 && ch <= 126 ) dmprintf1 ( mem , \" %c\" , ch ) ;\n else dmputs ( mem , \" \" ) ;\n }\n dmputc ( mem , '\\n' ) ;\n }\n }\n # undef block_size }\n void debug_print_object ( const gs_memory_t * mem , const void * obj , const dump_control_t * control ) {\n const obj_header_t * pre = ( ( const obj_header_t * ) obj ) - 1 ;\n ulong size = pre_obj_contents_size ( pre ) ;\n const gs_memory_struct_type_t * type = pre -> o_type ;\n dump_options_t options = control -> options ;\n dmprintf3 ( mem , \" pre=0x%lx(obj=0x%lx) size=%lu\" , ( ulong ) pre , ( ulong ) obj , size ) ;\n switch ( options & ( dump_do_type_addresses | dump_do_no_types ) ) {\n case dump_do_type_addresses + dump_do_no_types : dmprintf1 ( mem , \" type=0x%lx\" , ( ulong ) type ) ;\n break ;\n case dump_do_type_addresses : dmprintf2 ( mem , \" type=%s(0x%lx)\" , struct_type_name_string ( type ) , ( ulong ) type ) ;\n break ;\n case 0 : dmprintf1 ( mem , \" type=%s\" , struct_type_name_string ( type ) ) ;\n case dump_do_no_types : ;\n }\n if ( options & dump_do_marks ) {\n dmprintf2 ( mem , \" smark/back=%u (0x%x)\" , pre -> o_smark , pre -> o_smark ) ;\n }\n dmputc ( mem , '\\n' ) ;\n if ( type == & st_free ) return ;\n if ( options & dump_do_pointers ) {\n struct_proc_enum_ptrs ( ( * proc ) ) = type -> enum_ptrs ;\n uint index = 0 ;\n enum_ptr_t eptr ;\n gs_ptr_type_t ptype ;\n if ( proc != gs_no_struct_enum_ptrs ) {\n if ( proc != 0 ) {\n for ( ;\n ( ptype = ( * proc ) ( mem , pre + 1 , size , index , & eptr , type , NULL ) ) != 0 ;\n ++ index ) {\n const void * ptr = eptr . ptr ;\n dmprintf1 ( mem , \" ptr %u: \" , index ) ;\n if ( ptype == ptr_string_type || ptype == ptr_const_string_type ) {\n const gs_const_string * str = ( const gs_const_string * ) & eptr ;\n if ( ! str ) dmprintf ( mem , \"0x0\" ) ;\n else dmprintf2 ( mem , \"0x%lx(%u)\" , ( ulong ) str -> data , str -> size ) ;\n if ( options & dump_do_pointed_strings ) {\n dmputs ( mem , \" =>\\n\" ) ;\n if ( ! str ) dmprintf ( mem , \"(null)\\n\" ) ;\n else debug_dump_contents ( mem , str -> data , str -> data + str -> size , 6 , true ) ;\n }\n else {\n dmputc ( mem , '\\n' ) ;\n }\n }\n else {\n dmprintf1 ( mem , ( PTR_BETWEEN ( ptr , obj , ( const byte * ) obj + size ) ? \"(0x%lx)\\n\" : \"0x%lx\\n\" ) , ( ulong ) ptr ) ;\n }\n }\n }\n else {\n dmprintf ( mem , \"previous line should be a ref\\n\" ) ;\n }\n }\n }\n if ( options & dump_do_contents ) {\n debug_dump_contents ( mem , ( const byte * ) obj , ( const byte * ) obj + size , 0 , false ) ;\n }\n }\n void debug_dump_clump ( const gs_memory_t * mem , const clump_t * cp , const dump_control_t * control ) {\n dmprintf1 ( mem , \"clump at 0x%lx:\\n\" , ( ulong ) cp ) ;\n dmprintf3 ( mem , \" chead=0x%lx cbase=0x%lx sbase=0x%lx\\n\" , ( ulong ) cp -> chead , ( ulong ) cp -> cbase , ( ulong ) cp -> sbase ) ;\n dmprintf3 ( mem , \" rcur=0x%lx rtop=0x%lx cbot=0x%lx\\n\" , ( ulong ) cp -> rcur , ( ulong ) cp -> rtop , ( ulong ) cp -> cbot ) ;\n dmprintf4 ( mem , \" ctop=0x%lx climit=0x%lx smark=0x%lx, size=%u\\n\" , ( ulong ) cp -> ctop , ( ulong ) cp -> climit , ( ulong ) cp -> smark , cp -> smark_size ) ;\n dmprintf2 ( mem , \" sreloc=0x%lx cend=0x%lx\\n\" , ( ulong ) cp -> sreloc , ( ulong ) cp -> cend ) ;\n dmprintf6 ( mem , \"left=0x%lx right=0x%lx parent=0x%lx outer=0x%lx inner_count=%u has_refs=%s\\n\" , ( ulong ) cp -> left , ( ulong ) cp -> right , ( ulong ) cp -> parent , ( ulong ) cp -> outer , cp -> inner_count , ( cp -> has_refs ? \"true\" : \"false\" ) ) ;\n dmprintf2 ( mem , \" sfree1=0x%lx sfree=0x%x\\n\" , ( ulong ) cp -> sfree1 , cp -> sfree ) ;\n if ( control -> options & dump_do_strings ) {\n debug_dump_contents ( mem , ( control -> bottom == 0 ? cp -> ctop : max ( control -> bottom , cp -> ctop ) ) , ( control -> top == 0 ? cp -> climit : min ( control -> top , cp -> climit ) ) , 0 , true ) ;\n }\n SCAN_CLUMP_OBJECTS ( cp ) DO_ALL if ( obj_in_control_region ( pre + 1 , ( const byte * ) ( pre + 1 ) + size , control ) ) debug_print_object ( mem , pre + 1 , control ) ;\n END_OBJECTS_SCAN_NO_ABORT }\n void debug_print_clump ( const gs_memory_t * mem , const clump_t * cp ) {\n dump_control_t control ;\n control = dump_control_default ;\n debug_dump_clump ( mem , cp , & control ) ;\n }\n void debug_dump_memory ( const gs_ref_memory_t * mem , const dump_control_t * control ) {\n const clump_t * cp ;\n clump_splay_walker sw ;\n for ( cp = clump_splay_walk_init ( & sw , mem ) ;\n cp != NULL ;\n cp = clump_splay_walk_fwd ( & sw ) ) {\n if ( obj_in_control_region ( cp -> cbase , cp -> cend , control ) ) debug_dump_clump ( ( const gs_memory_t * ) mem , cp , control ) ;\n }\n }\n void debug_dump_allocator ( const gs_ref_memory_t * mem ) {\n debug_dump_memory ( mem , & dump_control_no_contents ) ;\n }\n void debug_find_pointers ( const gs_ref_memory_t * mem , const void * target ) {\n clump_splay_walker sw ;\n dump_control_t control ;\n const clump_t * cp ;\n control . options = 0 ;\n for ( cp = clump_splay_walk_init ( & sw , mem ) ;\n cp ;\n cp = clump_splay_walk_fwd ( & sw ) ) {\n SCAN_CLUMP_OBJECTS ( cp ) ;\n DO_ALL struct_proc_enum_ptrs ( ( * proc ) ) = pre -> o_type -> enum_ptrs ;\n uint index = 0 ;\n enum_ptr_t eptr ;\n if ( proc ) for ( ;\n ( * proc ) ( ( const gs_memory_t * ) mem , pre + 1 , size , index , & eptr , pre -> o_type , NULL ) ;\n ++ index ) if ( eptr . ptr == target ) {\n dmprintf1 ( ( const gs_memory_t * ) mem , \"Index %d in\" , index ) ;\n debug_print_object ( ( const gs_memory_t * ) mem , pre + 1 , & control ) ;\n }\n END_OBJECTS_SCAN_NO_ABORT }\n }\n static void ddct ( const gs_memory_t * mem , clump_t * cp , clump_t * parent , int depth ) {\n int i ;\n if ( cp == NULL ) return ;\n for ( i = 0 ;\n i < depth ;\n i ++ ) dmlprintf ( mem , \" \" ) ;\n dmlprintf7 ( mem , \"Clump %p:%p parent=%p left=%p:%p right=%p:%p\\n\" , cp , cp -> cbase , cp -> parent , cp -> left , cp -> left ? cp -> left -> cbase : NULL , cp -> right , cp -> right ? cp -> right -> cbase : NULL ) ;\n if ( cp -> parent != parent ) dmlprintf ( mem , \"Parent pointer mismatch!\\n\" ) ;\n ddct ( mem , cp -> left , cp , depth + 1 ) ;\n ddct ( mem , cp -> right , cp , depth + 1 ) ;\n }\n void debug_dump_clump_tree ( const gs_ref_memory_t * mem ) {\n ddct ( ( const gs_memory_t * ) mem , mem -> root , NULL , 0 ) ;\n }\n # endif"}
{"idx": 10167, "target": 0, "func": "static void x8_get_prediction ( IntraX8Context * const w ) {\n MpegEncContext * const s = w -> s ;\n int a , b , c , i ;\n w -> edges = 1 * ( ! s -> mb_x ) ;\n w -> edges |= 2 * ( ! s -> mb_y ) ;\n w -> edges |= 4 * ( s -> mb_x >= ( 2 * s -> mb_width - 1 ) ) ;\n switch ( w -> edges & 3 ) {\n case 0 : break ;\n case 1 : w -> est_run = w -> prediction_table [ ! ( s -> mb_y & 1 ) ] >> 2 ;\n w -> orient = 1 ;\n return ;\n case 2 : w -> est_run = w -> prediction_table [ 2 * s -> mb_x - 2 ] >> 2 ;\n w -> orient = 2 ;\n return ;\n case 3 : w -> est_run = 16 ;\n w -> orient = 0 ;\n return ;\n }\n / o edge cases b = w -> prediction_table [ 2 * s -> mb_x + ! ( s -> mb_y & 1 ) ] ;\n a = w -> prediction_table [ 2 * s -> mb_x - 2 + ( s -> mb_y & 1 ) ] ;\n c = w -> prediction_table [ 2 * s -> mb_x - 2 + ! ( s -> mb_y & 1 ) ] ;\n w -> est_run = FFMIN ( b , a ) ;\n if ( ( s -> mb_x & s -> mb_y ) != 0 ) w -> est_run = FFMIN ( c , w -> est_run ) ;\n w -> est_run >>= 2 ;\n a &= 3 ;\n b &= 3 ;\n c &= 3 ;\n i = ( 0xFFEAF4C4 >> ( 2 * b + 8 * a ) ) & 3 ;\n if ( i != 3 ) w -> orient = i ;\n else w -> orient = ( 0xFFEAD8 >> ( 2 * c + 8 * ( w -> quant > 12 ) ) ) & 3 ;\n }"}
{"idx": 10168, "target": 0, "func": "static void set_VD_bp ( unsigned char * bp , enum VD_type type , unsigned char ver ) {\n bp [ 1 ] = ( unsigned char ) type ;\n memcpy ( bp + 2 , \"CD001\" , 5 ) ;\n bp [ 7 ] = ver ;\n }"}
{"idx": 10169, "target": 0, "func": "TSReturnCode TSHttpTxnConfigStringGet ( TSHttpTxn txnp , TSOverridableConfigKey conf , const char * * value , int * length ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * * ) value ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) length ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n switch ( conf ) {\n case TS_CONFIG_HTTP_RESPONSE_SERVER_STR : * value = sm -> t_state . txn_conf -> proxy_response_server_string ;\n * length = sm -> t_state . txn_conf -> proxy_response_server_string_len ;\n break ;\n case TS_CONFIG_HTTP_GLOBAL_USER_AGENT_HEADER : * value = sm -> t_state . txn_conf -> global_user_agent_header ;\n * length = sm -> t_state . txn_conf -> global_user_agent_header_size ;\n break ;\n case TS_CONFIG_BODY_FACTORY_TEMPLATE_BASE : * value = sm -> t_state . txn_conf -> body_factory_template_base ;\n * length = sm -> t_state . txn_conf -> body_factory_template_base_len ;\n break ;\n default : return TS_ERROR ;\n break ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 10170, "target": 0, "func": "static void remove_callback_link ( NautilusDirectory * directory , GList * link ) {\n ReadyCallback * callback ;\n callback = link -> data ;\n remove_callback_link_keep_data ( directory , link ) ;\n g_free ( callback ) ;\n }"}
{"idx": 10171, "target": 1, "func": "static void log_invalid_scale_factor ( SvcContext * svc_ctx , const char * value ) {\n svc_log ( svc_ctx , SVC_LOG_ERROR , \"svc scale-factors: invalid value %s\\n\" , value ) ;\n }"}
{"idx": 10172, "target": 0, "func": "static void udp6_hwcsum_outgoing ( struct sock * sk , struct sk_buff * skb , const struct in6_addr * saddr , const struct in6_addr * daddr , int len ) {\n unsigned int offset ;\n struct udphdr * uh = udp_hdr ( skb ) ;\n __wsum csum = 0 ;\n if ( skb_queue_len ( & sk -> sk_write_queue ) == 1 ) {\n skb -> csum_start = skb_transport_header ( skb ) - skb -> head ;\n skb -> csum_offset = offsetof ( struct udphdr , check ) ;\n uh -> check = ~ csum_ipv6_magic ( saddr , daddr , len , IPPROTO_UDP , 0 ) ;\n }\n else {\n offset = skb_transport_offset ( skb ) ;\n skb -> csum = skb_checksum ( skb , offset , skb -> len - offset , 0 ) ;\n skb -> ip_summed = CHECKSUM_NONE ;\n skb_queue_walk ( & sk -> sk_write_queue , skb ) {\n csum = csum_add ( csum , skb -> csum ) ;\n }\n uh -> check = csum_ipv6_magic ( saddr , daddr , len , IPPROTO_UDP , csum ) ;\n if ( uh -> check == 0 ) uh -> check = CSUM_MANGLED_0 ;\n }\n }"}
{"idx": 10173, "target": 0, "func": "static uint32_t PPC_prep_io_readw ( void * opaque , hwaddr addr ) {\n sysctrl_t * sysctrl = opaque ;\n uint32_t ret ;\n addr = prep_IO_address ( sysctrl , addr ) ;\n ret = cpu_inw ( addr ) ;\n PPC_IO_DPRINTF ( \"0x\" TARGET_FMT_plx \" <= 0x%08\" PRIx32 \"\\n\" , addr , ret ) ;\n return ret ;\n }"}
{"idx": 10174, "target": 0, "func": "int PEM_write_ ## name ( FILE * fp , const type * x ) ;\n # define DECLARE_PEM_write_cb_fp ( name , type ) int PEM_write_ ## name ( FILE * fp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # endif # define DECLARE_PEM_read_bio ( name , type ) type * PEM_read_bio_ ## name ( BIO * bp , type * * x , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL ) DECLARE_PEM_rw ( PKCS7 , PKCS7 ) DECLARE_PEM_rw ( NETSCAPE_CERT_SEQUENCE , NETSCAPE_CERT_SEQUENCE ) DECLARE_PEM_rw ( PKCS8 , X509_SIG ) DECLARE_PEM_rw ( PKCS8_PRIV_KEY_INFO , PKCS8_PRIV_KEY_INFO ) # ifndef OPENSSL_NO_RSA DECLARE_PEM_rw_cb ( RSAPrivateKey , RSA ) DECLARE_PEM_rw_const ( RSAPublicKey , RSA ) DECLARE_PEM_rw ( RSA_PUBKEY , RSA ) # endif # ifndef OPENSSL_NO_DSA DECLARE_PEM_rw_cb ( DSAPrivateKey , DSA ) DECLARE_PEM_rw ( DSA_PUBKEY , DSA ) DECLARE_PEM_rw_const ( DSAparams , DSA ) # endif # ifndef OPENSSL_NO_EC DECLARE_PEM_rw_const ( ECPKParameters , EC_GROUP ) DECLARE_PEM_rw_cb ( ECPrivateKey , EC_KEY ) DECLARE_PEM_rw ( EC_PUBKEY , EC_KEY ) # endif # ifndef OPENSSL_NO_DH DECLARE_PEM_rw_const ( DHparams , DH ) DECLARE_PEM_write_const ( DHxparams , DH )"}
{"idx": 10175, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( SupervisedUserNavigationThrottleTest , DontBlockSubFrame ) {\n BlockHost ( kExampleHost2 ) ;\n BlockHost ( kIframeHost2 ) ;\n WebContents * tab = browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) ;\n GURL allowed_url_with_iframes = embedded_test_server ( ) -> GetURL ( kExampleHost , \"/supervised_user/with_iframes.html\" ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , allowed_url_with_iframes ) ;\n EXPECT_FALSE ( tab -> ShowingInterstitialPage ( ) ) ;\n bool loaded1 = false ;\n ASSERT_TRUE ( content : : ExecuteScriptAndExtractBool ( tab , \"loaded1()\" , & loaded1 ) ) ;\n EXPECT_TRUE ( loaded1 ) ;\n bool loaded2 = false ;\n ASSERT_TRUE ( content : : ExecuteScriptAndExtractBool ( tab , \"loaded2()\" , & loaded2 ) ) ;\n EXPECT_TRUE ( loaded2 ) ;\n }"}
{"idx": 10176, "target": 0, "func": "static int isofile_hd_cmp_key ( const struct archive_rb_node * n , const void * key ) {\n const struct hardlink * h = ( const struct hardlink * ) n ;\n return ( strcmp ( archive_entry_pathname ( h -> file_list . first -> entry ) , ( const char * ) key ) ) ;\n }"}
{"idx": 10177, "target": 0, "func": "static int put_error ( MYSQL * con ) {\n return put_info ( mysql_error ( con ) , INFO_ERROR , mysql_errno ( con ) , mysql_sqlstate ( con ) ) ;\n }"}
{"idx": 10178, "target": 0, "func": "static void pdf_run_ri ( fz_context * ctx , pdf_processor * proc , const char * intent ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_gstate * gstate = pdf_flush_text ( ctx , pr ) ;\n gstate -> fill . color_params . ri = fz_lookup_rendering_intent ( intent ) ;\n gstate -> stroke . color_params . ri = gstate -> fill . color_params . ri ;\n }"}
{"idx": 10179, "target": 0, "func": "static guint16 de_auth_fail_param ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ ) {\n proto_item * item ;\n proto_tree * subtree ;\n item = proto_tree_add_item ( tree , hf_gsm_a_dtap_auts , tvb , offset , len , ENC_NA ) ;\n subtree = proto_item_add_subtree ( item , ett_gsm_dtap_elem [ DE_AUTH_FAIL_PARAM ] ) ;\n if ( len == 14 ) {\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_auts_sqn_ms_xor_ak , tvb , offset , 6 , ENC_NA ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_auts_mac_s , tvb , offset + 6 , 8 , ENC_NA ) ;\n }\n else expert_add_info ( pinfo , item , & ei_gsm_a_dtap_auts ) ;\n return ( len ) ;\n }"}
{"idx": 10180, "target": 0, "func": "bool check_routine_level_acl ( THD * thd , const char * db , const char * name , bool is_proc ) {\n bool no_routine_acl = 1 ;\n GRANT_NAME * grant_proc ;\n Security_context * sctx = thd -> security_ctx ;\n rw_rdlock ( & LOCK_grant ) ;\n if ( ( grant_proc = routine_hash_search ( sctx -> priv_host , sctx -> ip , db , sctx -> priv_user , name , is_proc , 0 ) ) ) no_routine_acl = ! ( grant_proc -> privs & SHOW_PROC_ACLS ) ;\n rw_unlock ( & LOCK_grant ) ;\n return no_routine_acl ;\n }"}
{"idx": 10181, "target": 1, "func": "static void _LMBCSOpen ## n ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err ) \\ {\n _LMBCSOpenWorker ( _this , pArgs , err , n ) ;\n }\n static void _LMBCSOpenWorker ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err , ulmbcs_byte_t OptGroup ) {\n UConverterDataLMBCS * extraInfo = _this -> extraInfo = ( UConverterDataLMBCS * ) uprv_malloc ( sizeof ( UConverterDataLMBCS ) ) ;\n if ( extraInfo != NULL ) {\n UConverterNamePieces stackPieces ;\n UConverterLoadArgs stackArgs = {\n ( int32_t ) sizeof ( UConverterLoadArgs ) }\n ;\n ulmbcs_byte_t i ;\n uprv_memset ( extraInfo , 0 , sizeof ( UConverterDataLMBCS ) ) ;\n stackArgs . onlyTestIsLoadable = pArgs -> onlyTestIsLoadable ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST && U_SUCCESS ( * err ) ;\n i ++ ) {\n if ( OptGroupByteToCPName [ i ] != NULL ) {\n extraInfo -> OptGrpConverter [ i ] = ucnv_loadSharedData ( OptGroupByteToCPName [ i ] , & stackPieces , & stackArgs , err ) ;\n }\n }\n if ( U_FAILURE ( * err ) || pArgs -> onlyTestIsLoadable ) {\n _LMBCSClose ( _this ) ;\n return ;\n }\n extraInfo -> OptGroup = OptGroup ;\n extraInfo -> localeConverterIndex = FindLMBCSLocale ( pArgs -> locale ) ;\n }\n else {\n * err = U_MEMORY_ALLOCATION_ERROR ;\n }\n }\n static void _LMBCSClose ( UConverter * _this ) {\n if ( _this -> extraInfo != NULL ) {\n ulmbcs_byte_t Ix ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) _this -> extraInfo ;\n for ( Ix = 0 ;\n Ix <= ULMBCS_GRP_LAST ;\n Ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ Ix ] != NULL ) ucnv_unloadSharedDataIfReady ( extraInfo -> OptGrpConverter [ Ix ] ) ;\n }\n if ( ! _this -> isExtraLocal ) {\n uprv_free ( _this -> extraInfo ) ;\n _this -> extraInfo = NULL ;\n }\n }\n }\n typedef struct LMBCSClone {\n UConverter cnv ;\n UConverterDataLMBCS lmbcs ;\n }\n LMBCSClone ;\n static UConverter * _LMBCSSafeClone ( const UConverter * cnv , void * stackBuffer , int32_t * pBufferSize , UErrorCode * status ) {\n LMBCSClone * newLMBCS ;\n UConverterDataLMBCS * extraInfo ;\n int32_t i ;\n if ( * pBufferSize <= 0 ) {\n * pBufferSize = ( int32_t ) sizeof ( LMBCSClone ) ;\n return NULL ;\n }\n extraInfo = ( UConverterDataLMBCS * ) cnv -> extraInfo ;\n newLMBCS = ( LMBCSClone * ) stackBuffer ;\n uprv_memcpy ( & newLMBCS -> lmbcs , extraInfo , sizeof ( UConverterDataLMBCS ) ) ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST ;\n ++ i ) {\n if ( extraInfo -> OptGrpConverter [ i ] != NULL ) {\n ucnv_incrementRefCount ( extraInfo -> OptGrpConverter [ i ] ) ;\n }\n }\n newLMBCS -> cnv . extraInfo = & newLMBCS -> lmbcs ;\n newLMBCS -> cnv . isExtraLocal = TRUE ;\n return & newLMBCS -> cnv ;\n }\n static size_t LMBCSConversionWorker ( UConverterDataLMBCS * extraInfo , ulmbcs_byte_t group , ulmbcs_byte_t * pStartLMBCS , UChar * pUniChar , ulmbcs_byte_t * lastConverterIndex , UBool * groups_tried ) {\n ulmbcs_byte_t * pLMBCS = pStartLMBCS ;\n UConverterSharedData * xcnv = extraInfo -> OptGrpConverter [ group ] ;\n int bytesConverted ;\n uint32_t value ;\n ulmbcs_byte_t firstByte ;\n U_ASSERT ( xcnv ) ;\n U_ASSERT ( group < ULMBCS_GRP_UNICODE ) ;\n bytesConverted = ucnv_MBCSFromUChar32 ( xcnv , * pUniChar , & value , FALSE ) ;\n if ( bytesConverted > 0 ) {\n firstByte = ( ulmbcs_byte_t ) ( value >> ( ( bytesConverted - 1 ) * 8 ) ) ;\n }\n else {\n groups_tried [ group ] = TRUE ;\n return 0 ;\n }\n * lastConverterIndex = group ;\n U_ASSERT ( ( firstByte <= ULMBCS_C0END ) || ( firstByte >= ULMBCS_C1START ) || ( group == ULMBCS_GRP_EXCEPT ) ) ;\n if ( group != ULMBCS_GRP_EXCEPT && extraInfo -> OptGroup != group ) {\n * pLMBCS ++ = group ;\n if ( bytesConverted == 1 && group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n * pLMBCS ++ = group ;\n }\n }\n if ( bytesConverted == 1 && firstByte < 0x20 ) return 0 ;\n switch ( bytesConverted ) {\n case 4 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 24 ) ;\n U_FALLTHROUGH ;\n case 3 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 16 ) ;\n U_FALLTHROUGH ;\n case 2 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 8 ) ;\n U_FALLTHROUGH ;\n case 1 : * pLMBCS ++ = ( ulmbcs_byte_t ) value ;\n U_FALLTHROUGH ;\n default : break ;\n }\n return ( pLMBCS - pStartLMBCS ) ;\n }\n static size_t LMBCSConvertUni ( ulmbcs_byte_t * pLMBCS , UChar uniChar ) {\n uint8_t LowCh = ( uint8_t ) ( uniChar & 0x00FF ) ;\n uint8_t HighCh = ( uint8_t ) ( uniChar >> 8 ) ;\n * pLMBCS ++ = ULMBCS_GRP_UNICODE ;\n if ( LowCh == 0 ) {\n * pLMBCS ++ = ULMBCS_UNICOMPATZERO ;\n * pLMBCS ++ = HighCh ;\n }\n else {\n * pLMBCS ++ = HighCh ;\n * pLMBCS ++ = LowCh ;\n }\n return ULMBCS_UNICODE_SIZE ;\n }\n static void _LMBCSFromUnicode ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n ulmbcs_byte_t lastConverterIndex = 0 ;\n UChar uniChar ;\n ulmbcs_byte_t LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n ulmbcs_byte_t * pLMBCS ;\n int32_t bytes_written ;\n UBool groups_tried [ ULMBCS_GRP_LAST + 1 ] ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n int sourceIndex = 0 ;\n ulmbcs_byte_t OldConverterIndex = 0 ;\n while ( args -> source < args -> sourceLimit && ! U_FAILURE ( * err ) ) {\n OldConverterIndex = extraInfo -> localeConverterIndex ;\n if ( args -> target >= args -> targetLimit ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n uniChar = * ( args -> source ) ;\n bytes_written = 0 ;\n pLMBCS = LMBCS ;\n if ( ( uniChar >= 0x80 ) && ( uniChar <= 0xff ) && ( uniChar != 0xB1 ) && ( uniChar != 0xD7 ) && ( uniChar != 0xF7 ) && ( uniChar != 0xB0 ) && ( uniChar != 0xB4 ) && ( uniChar != 0xB6 ) && ( uniChar != 0xA7 ) && ( uniChar != 0xA8 ) ) {\n extraInfo -> localeConverterIndex = ULMBCS_GRP_L1 ;\n }\n if ( ( ( uniChar > ULMBCS_C0END ) && ( uniChar < ULMBCS_C1START ) ) || uniChar == 0 || uniChar == ULMBCS_HT || uniChar == ULMBCS_CR || uniChar == ULMBCS_LF || uniChar == ULMBCS_123SYSTEMRANGE ) {\n * pLMBCS ++ = ( ulmbcs_byte_t ) uniChar ;\n bytes_written = 1 ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t group = FindLMBCSUniRange ( uniChar ) ;\n if ( group == ULMBCS_GRP_UNICODE ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group == ULMBCS_GRP_CTRL ) {\n if ( uniChar <= ULMBCS_C0END ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( ULMBCS_CTRLOFFSET + uniChar ) ;\n }\n else if ( uniChar >= ULMBCS_C1START && uniChar <= ULMBCS_C1START + ULMBCS_CTRLOFFSET ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( uniChar & 0x00FF ) ;\n }\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group < ULMBCS_GRP_UNICODE ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , group , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n uprv_memset ( groups_tried , 0 , sizeof ( groups_tried ) ) ;\n if ( ( extraInfo -> OptGroup != 1 ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> OptGroup ) ) ) {\n if ( extraInfo -> localeConverterIndex < ULMBCS_DOUBLEOPTGROUP_START ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_L1 , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n else {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && ( extraInfo -> localeConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> localeConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written && ( lastConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , lastConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , lastConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t grp_start ;\n ulmbcs_byte_t grp_end ;\n ulmbcs_byte_t grp_ix ;\n grp_start = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_DOUBLEOPTGROUP_START : ULMBCS_GRP_L1 ) ;\n grp_end = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_GRP_LAST : ULMBCS_GRP_TH ) ;\n if ( group == ULMBCS_AMBIGUOUS_ALL ) {\n grp_start = ULMBCS_GRP_L1 ;\n grp_end = ULMBCS_GRP_LAST ;\n }\n for ( grp_ix = grp_start ;\n grp_ix <= grp_end && ! bytes_written ;\n grp_ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ grp_ix ] && ! groups_tried [ grp_ix ] ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , grp_ix , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && grp_start == ULMBCS_GRP_L1 ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n }\n }\n args -> source ++ ;\n pLMBCS = LMBCS ;\n while ( args -> target < args -> targetLimit && bytes_written -- ) {\n * ( args -> target ) ++ = * pLMBCS ++ ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = sourceIndex ;\n }\n }\n sourceIndex ++ ;\n if ( bytes_written > 0 ) {\n uint8_t * pErrorBuffer = args -> converter -> charErrorBuffer ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n args -> converter -> charErrorBufferLength = ( int8_t ) bytes_written ;\n while ( bytes_written -- ) {\n * pErrorBuffer ++ = * pLMBCS ++ ;\n }\n }\n extraInfo -> localeConverterIndex = OldConverterIndex ;\n }\n }\n static UChar GetUniFromLMBCSUni ( char const * * ppLMBCSin ) {\n uint8_t HighCh = * ( * ppLMBCSin ) ++ ;\n uint8_t LowCh = * ( * ppLMBCSin ) ++ ;\n if ( HighCh == ULMBCS_UNICOMPATZERO ) {\n HighCh = LowCh ;\n LowCh = 0 ;\n }\n return ( UChar ) ( ( HighCh << 8 ) | LowCh ) ;\n }\n # define CHECK_SOURCE_LIMIT ( index ) if ( args -> source + index > args -> sourceLimit ) {\n * err = U_TRUNCATED_CHAR_FOUND ;\n args -> source = args -> sourceLimit ;\n return 0xffff ;\n }\n static UChar32 _LMBCSGetNextUCharWorker ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n UChar32 uniChar = 0 ;\n ulmbcs_byte_t CurByte ;\n if ( args -> source >= args -> sourceLimit ) {\n * err = U_ILLEGAL_ARGUMENT_ERROR ;\n return 0xffff ;\n }\n CurByte = * ( ( ulmbcs_byte_t * ) ( args -> source ++ ) ) ;\n if ( ( ( CurByte > ULMBCS_C0END ) && ( CurByte < ULMBCS_C1START ) ) || ( CurByte == 0 ) || CurByte == ULMBCS_HT || CurByte == ULMBCS_CR || CurByte == ULMBCS_LF || CurByte == ULMBCS_123SYSTEMRANGE ) {\n uniChar = CurByte ;\n }\n else {\n UConverterDataLMBCS * extraInfo ;\n ulmbcs_byte_t group ;\n UConverterSharedData * cnv ;\n if ( CurByte == ULMBCS_GRP_CTRL ) {\n ulmbcs_byte_t C0C1byte ;\n CHECK_SOURCE_LIMIT ( 1 ) ;\n C0C1byte = * ( args -> source ) ++ ;\n uniChar = ( C0C1byte < ULMBCS_C1START ) ? C0C1byte - ULMBCS_CTRLOFFSET : C0C1byte ;\n }\n else if ( CurByte == ULMBCS_GRP_UNICODE ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n return GetUniFromLMBCSUni ( & ( args -> source ) ) ;\n }\n else if ( CurByte <= ULMBCS_CTRLOFFSET ) {\n group = CurByte ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n if ( group > ULMBCS_GRP_LAST || ( cnv = extraInfo -> OptGrpConverter [ group ] ) == NULL ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n if ( * args -> source == group ) {\n ++ args -> source ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 1 , FALSE ) ;\n ++ args -> source ;\n }\n else {\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 2 , FALSE ) ;\n args -> source += 2 ;\n }\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n CurByte = * ( args -> source ) ++ ;\n if ( CurByte >= ULMBCS_C1START ) {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n else {\n char bytes [ 2 ] ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n cnv = extraInfo -> OptGrpConverter [ ULMBCS_GRP_EXCEPT ] ;\n bytes [ 0 ] = group ;\n bytes [ 1 ] = CurByte ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , bytes , 2 , FALSE ) ;\n }\n }\n }\n else if ( CurByte >= ULMBCS_C1START ) {\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n group = extraInfo -> OptGroup ;\n cnv = extraInfo -> OptGrpConverter [ group ] ;\n if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n if ( ! ucnv_MBCSIsLeadByte ( cnv , CurByte ) ) {\n CHECK_SOURCE_LIMIT ( 0 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 1 , FALSE ) ;\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 2 , FALSE ) ;\n ++ args -> source ;\n }\n }\n else {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n }\n }\n return uniChar ;\n }\n static void _LMBCSToUnicodeWithOffsets ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n char LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n UChar uniChar ;\n const char * saveSource ;\n const char * pStartLMBCS = args -> source ;\n const char * errSource = NULL ;\n int8_t savebytes = 0 ;\n while ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit > args -> target ) {\n saveSource = args -> source ;\n if ( args -> converter -> toULength ) {\n const char * saveSourceLimit ;\n size_t size_old = args -> converter -> toULength ;\n size_t size_new_maybe_1 = sizeof ( LMBCS ) - size_old ;\n size_t size_new_maybe_2 = args -> sourceLimit - args -> source ;\n size_t size_new = ( size_new_maybe_1 < size_new_maybe_2 ) ? size_new_maybe_1 : size_new_maybe_2 ;\n uprv_memcpy ( LMBCS , args -> converter -> toUBytes , size_old ) ;\n uprv_memcpy ( LMBCS + size_old , args -> source , size_new ) ;\n saveSourceLimit = args -> sourceLimit ;\n args -> source = errSource = LMBCS ;\n args -> sourceLimit = LMBCS + size_old + size_new ;\n savebytes = ( int8_t ) ( size_old + size_new ) ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n args -> source = saveSource + ( ( args -> source - LMBCS ) - size_old ) ;\n args -> sourceLimit = saveSourceLimit ;\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n args -> converter -> toULength = savebytes ;\n uprv_memcpy ( args -> converter -> toUBytes , LMBCS , savebytes ) ;\n args -> source = args -> sourceLimit ;\n * err = U_ZERO_ERROR ;\n return ;\n }\n else {\n args -> converter -> toULength = 0 ;\n }\n }\n else {\n errSource = saveSource ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n savebytes = ( int8_t ) ( args -> source - saveSource ) ;\n }\n if ( U_SUCCESS ( * err ) ) {\n if ( uniChar < 0xfffe ) {\n * ( args -> target ) ++ = uniChar ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = ( int32_t ) ( saveSource - pStartLMBCS ) ;\n }\n }\n else if ( uniChar == 0xfffe ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n }\n if ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit <= args -> target ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n else if ( U_FAILURE ( * err ) ) {\n args -> converter -> toULength = savebytes ;\n if ( savebytes > 0 ) {\n uprv_memcpy ( args -> converter -> toUBytes , errSource , savebytes ) ;\n }\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n * err = U_ZERO_ERROR ;\n }\n }\n }\n DEFINE_LMBCS_OPEN ( 1 ) DEFINE_LMBCS_OPEN ( 2 ) DEFINE_LMBCS_OPEN ( 3 )"}
{"idx": 10182, "target": 0, "func": "static void selinux_inet_csk_clone ( struct sock * newsk , const struct request_sock * req ) {\n struct sk_security_struct * newsksec = newsk -> sk_security ;\n newsksec -> sid = req -> secid ;\n newsksec -> peer_sid = req -> peer_secid ;\n selinux_netlbl_inet_csk_clone ( newsk , req -> rsk_ops -> family ) ;\n }"}
{"idx": 10183, "target": 1, "func": "static void _ISCIIClose ( UConverter * cnv ) {\n if ( cnv -> extraInfo != NULL ) {\n if ( ! cnv -> isExtraLocal ) {\n uprv_free ( cnv -> extraInfo ) ;\n }\n cnv -> extraInfo = NULL ;\n }\n }"}
{"idx": 10184, "target": 0, "func": "static int dissect_h225_IsupPrivatePartyNumber ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_IsupPrivatePartyNumber , IsupPrivatePartyNumber_sequence ) ;\n return offset ;\n }"}
{"idx": 10185, "target": 0, "func": "static struct CPMSetBindingsIn * find_binding_msg_data ( struct mswsp_ct * ct , packet_info * pinfo , void * private_data ) {\n struct CPMSetBindingsIn * result = NULL ;\n struct message_data * data = find_matching_request_by_fid ( ct , pinfo , 0xD0 , TRUE , private_data ) ;\n if ( data ) {\n result = & data -> content . bindingsin ;\n }\n return result ;\n }"}
{"idx": 10186, "target": 0, "func": "static int dissect_h225_T_h245IpxAddress ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_T_h245IpxAddress , T_h245IpxAddress_sequence ) ;\n return offset ;\n }"}
{"idx": 10187, "target": 0, "func": "static inline int answer_from_qmem_data ( int dns_fd , int userid , struct query * q ) {\n char cmc [ 4 ] ;\n int i ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) if ( q -> name [ i + 1 ] >= 'A' && q -> name [ i + 1 ] <= 'Z' ) cmc [ i ] = q -> name [ i + 1 ] + ( 'a' - 'A' ) ;\n else cmc [ i ] = q -> name [ i + 1 ] ;\n return answer_from_qmem ( dns_fd , q , users [ userid ] . qmemdata_cmc , users [ userid ] . qmemdata_type , QMEMDATA_LEN , ( void * ) cmc ) ;\n }"}
{"idx": 10188, "target": 0, "func": "static void set_entropy_context_b ( int plane , int block , BLOCK_SIZE plane_bsize , TX_SIZE tx_size , void * arg ) {\n struct tokenize_b_args * const args = arg ;\n MACROBLOCKD * const xd = args -> xd ;\n struct macroblock_plane * p = & args -> cpi -> mb . plane [ plane ] ;\n struct macroblockd_plane * pd = & xd -> plane [ plane ] ;\n int aoff , loff ;\n txfrm_block_to_raster_xy ( plane_bsize , tx_size , block , & aoff , & loff ) ;\n vp9_set_contexts ( xd , pd , plane_bsize , tx_size , p -> eobs [ block ] > 0 , aoff , loff ) ;\n }"}
{"idx": 10189, "target": 0, "func": "static int selinux_inode_create ( struct inode * dir , struct dentry * dentry , umode_t mode ) {\n return may_create ( dir , dentry , SECCLASS_FILE ) ;\n }"}
{"idx": 10190, "target": 0, "func": "fz_colorspace * fz_device_gray ( fz_context * ctx ) {\n return ctx -> colorspace -> gray ;\n }"}
{"idx": 10191, "target": 0, "func": "static void spl_dllist_it_helper_rewind ( spl_ptr_llist_element * * traverse_pointer_ptr , int * traverse_position_ptr , spl_ptr_llist * llist , int flags TSRMLS_DC ) {\n SPL_LLIST_CHECK_DELREF ( * traverse_pointer_ptr ) ;\n if ( flags & SPL_DLLIST_IT_LIFO ) {\n * traverse_position_ptr = llist -> count - 1 ;\n * traverse_pointer_ptr = llist -> tail ;\n }\n else {\n * traverse_position_ptr = 0 ;\n * traverse_pointer_ptr = llist -> head ;\n }\n SPL_LLIST_CHECK_ADDREF ( * traverse_pointer_ptr ) ;\n }"}
{"idx": 10192, "target": 0, "func": "void proto_reg_handoff_zbee_zcl_met_idt ( void ) {\n zbee_zcl_init_cluster ( proto_zbee_zcl_met_idt , ett_zbee_zcl_met_idt , ZBEE_ZCL_CID_METER_IDENTIFICATION , hf_zbee_zcl_met_idt_attr_id , - 1 , - 1 , ( zbee_zcl_fn_attr_data ) dissect_zcl_met_idt_attr_data ) ;\n }"}
{"idx": 10193, "target": 0, "func": "static bool add_line ( String & buffer , char * line , ulong line_length , char * in_string , bool * ml_comment , bool truncated ) {\n uchar inchar ;\n char buff [ 80 ] , * pos , * out ;\n COMMANDS * com ;\n bool need_space = 0 ;\n bool ss_comment = 0 ;\n DBUG_ENTER ( \"add_line\" ) ;\n if ( ! line [ 0 ] && buffer . is_empty ( ) ) DBUG_RETURN ( 0 ) ;\n # ifdef HAVE_READLINE if ( status . add_to_history && line [ 0 ] && not_in_history ( line ) ) add_history ( line ) ;\n # endif char * end_of_line = line + line_length ;\n for ( pos = out = line ;\n pos < end_of_line ;\n pos ++ ) {\n inchar = ( uchar ) * pos ;\n if ( ! preserve_comments ) {\n if ( my_isspace ( charset_info , inchar ) && ( out == line ) && buffer . is_empty ( ) ) continue ;\n }\n # ifdef USE_MB int length ;\n if ( use_mb ( charset_info ) && ( length = my_ismbchar ( charset_info , pos , end_of_line ) ) ) {\n if ( ! * ml_comment || preserve_comments ) {\n while ( length -- ) * out ++ = * pos ++ ;\n pos -- ;\n }\n else pos += length - 1 ;\n continue ;\n }\n # endif if ( ! * ml_comment && inchar == '\\\\' && ! ( * in_string && ( mysql . server_status & SERVER_STATUS_NO_BACKSLASH_ESCAPES ) ) ) {\n if ( ! ( inchar = ( uchar ) * ++ pos ) ) break ;\n if ( * in_string || inchar == 'N' ) {\n * out ++ = '\\\\' ;\n * out ++ = ( char ) inchar ;\n continue ;\n }\n if ( ( com = find_command ( ( char ) inchar ) ) ) {\n if ( out != line ) {\n buffer . append ( line , ( uint ) ( out - line ) ) ;\n out = line ;\n }\n if ( ( * com -> func ) ( & buffer , pos - 1 ) > 0 ) DBUG_RETURN ( 1 ) ;\n if ( com -> takes_params ) {\n if ( ss_comment ) {\n for ( pos ++ ;\n * pos && ( * pos != '*' || * ( pos + 1 ) != '/' ) ;\n pos ++ ) ;\n pos -- ;\n }\n else {\n for ( pos ++ ;\n * pos && ( * pos != * delimiter || ! is_prefix ( pos + 1 , delimiter + 1 ) ) ;\n pos ++ ) ;\n if ( ! * pos ) pos -- ;\n else pos += delimiter_length - 1 ;\n }\n }\n }\n else {\n sprintf ( buff , \"Unknown command '\\\\%c'.\" , inchar ) ;\n if ( put_info ( buff , INFO_ERROR ) > 0 ) DBUG_RETURN ( 1 ) ;\n * out ++ = '\\\\' ;\n * out ++ = ( char ) inchar ;\n continue ;\n }\n }\n else if ( ! * ml_comment && ! * in_string && is_prefix ( pos , delimiter ) ) {\n pos += delimiter_length ;\n if ( preserve_comments ) {\n while ( my_isspace ( charset_info , * pos ) ) * out ++ = * pos ++ ;\n }\n if ( out != line ) {\n buffer . append ( line , ( uint32 ) ( out - line ) ) ;\n out = line ;\n }\n if ( preserve_comments && ( ( * pos == '#' ) || ( ( * pos == '-' ) && ( pos [ 1 ] == '-' ) && my_isspace ( charset_info , pos [ 2 ] ) ) ) ) {\n buffer . append ( pos ) ;\n pos += strlen ( pos ) ;\n }\n pos -- ;\n if ( ( com = find_command ( buffer . c_ptr ( ) ) ) ) {\n if ( ( * com -> func ) ( & buffer , buffer . c_ptr ( ) ) > 0 ) DBUG_RETURN ( 1 ) ;\n }\n else {\n if ( com_go ( & buffer , 0 ) > 0 ) DBUG_RETURN ( 1 ) ;\n }\n buffer . length ( 0 ) ;\n }\n else if ( ! * ml_comment && ( ! * in_string && ( inchar == '#' || ( inchar == '-' && pos [ 1 ] == '-' && ( ( my_isspace ( charset_info , pos [ 2 ] ) || ! pos [ 2 ] ) || ( buffer . is_empty ( ) && out == line ) ) ) ) ) ) {\n if ( out != line ) {\n buffer . append ( line , ( uint32 ) ( out - line ) ) ;\n out = line ;\n }\n if ( preserve_comments ) {\n bool started_with_nothing = ! buffer . length ( ) ;\n buffer . append ( pos ) ;\n if ( started_with_nothing ) {\n if ( com_go ( & buffer , 0 ) > 0 ) DBUG_RETURN ( 1 ) ;\n buffer . length ( 0 ) ;\n }\n }\n break ;\n }\n else if ( ! * in_string && inchar == '/' && * ( pos + 1 ) == '*' && ! ( * ( pos + 2 ) == '!' || ( * ( pos + 2 ) == 'M' && * ( pos + 3 ) == '!' ) ) ) {\n if ( preserve_comments ) {\n * out ++ = * pos ++ ;\n * out ++ = * pos ;\n }\n else pos ++ ;\n * ml_comment = 1 ;\n if ( out != line ) {\n buffer . append ( line , ( uint ) ( out - line ) ) ;\n out = line ;\n }\n }\n else if ( * ml_comment && ! ss_comment && inchar == '*' && * ( pos + 1 ) == '/' ) {\n if ( preserve_comments ) {\n * out ++ = * pos ++ ;\n * out ++ = * pos ;\n }\n else pos ++ ;\n * ml_comment = 0 ;\n if ( out != line ) {\n buffer . append ( line , ( uint32 ) ( out - line ) ) ;\n out = line ;\n }\n need_space = 1 ;\n }\n else {\n if ( ! * in_string && inchar == '/' && * ( pos + 1 ) == '*' && * ( pos + 2 ) == '!' ) ss_comment = 1 ;\n else if ( ! * in_string && ss_comment && inchar == '*' && * ( pos + 1 ) == '/' ) ss_comment = 0 ;\n if ( inchar == * in_string ) * in_string = 0 ;\n else if ( ! * ml_comment && ! * in_string && ( inchar == '\\'' || inchar == '\"' || inchar == '`' ) ) * in_string = ( char ) inchar ;\n if ( ! * ml_comment || preserve_comments ) {\n if ( need_space && ! my_isspace ( charset_info , ( char ) inchar ) ) * out ++ = ' ' ;\n need_space = 0 ;\n * out ++ = ( char ) inchar ;\n }\n }\n }\n if ( out != line || ! buffer . is_empty ( ) ) {\n uint length = ( uint ) ( out - line ) ;\n if ( ! truncated && ( ! is_delimiter_command ( line , length ) || ( * in_string || * ml_comment ) ) ) {\n * out ++ = '\\n' ;\n length ++ ;\n }\n if ( buffer . length ( ) + length >= buffer . alloced_length ( ) ) buffer . realloc ( buffer . length ( ) + length + IO_SIZE ) ;\n if ( ( ! * ml_comment || preserve_comments ) && buffer . append ( line , length ) ) DBUG_RETURN ( 1 ) ;\n }\n DBUG_RETURN ( 0 ) ;\n }"}
{"idx": 10194, "target": 0, "func": "static int evhttp_is_connection_close ( int flags , struct evkeyvalq * headers ) {\n if ( flags & EVHTTP_PROXY_REQUEST ) {\n const char * connection = evhttp_find_header ( headers , \"Proxy-Connection\" ) ;\n return ( connection == NULL || strcasecmp ( connection , \"keep-alive\" ) != 0 ) ;\n }\n else {\n const char * connection = evhttp_find_header ( headers , \"Connection\" ) ;\n return ( connection != NULL && strcasecmp ( connection , \"close\" ) == 0 ) ;\n }\n }"}
{"idx": 10195, "target": 0, "func": "static int roq_encode_end ( AVCodecContext * avctx ) {\n RoqContext * enc = avctx -> priv_data ;\n av_frame_free ( & enc -> current_frame ) ;\n av_frame_free ( & enc -> last_frame ) ;\n av_free ( enc -> tmpData ) ;\n av_free ( enc -> this_motion4 ) ;\n av_free ( enc -> last_motion4 ) ;\n av_free ( enc -> this_motion8 ) ;\n av_free ( enc -> last_motion8 ) ;\n return 0 ;\n }"}
{"idx": 10196, "target": 1, "func": "static ulong get_sort ( uint count , ... ) {\n va_list args ;\n va_start ( args , count ) ;\n ulong sort = 0 ;\n DBUG_ASSERT ( count <= 4 ) ;\n while ( count -- ) {\n char * start , * str = va_arg ( args , char * ) ;\n uint chars = 0 ;\n uint wild_pos = 0 ;\n if ( ( start = str ) ) {\n for ( ;\n * str ;\n str ++ ) {\n if ( * str == wild_prefix && str [ 1 ] ) str ++ ;\n else if ( * str == wild_many || * str == wild_one ) {\n wild_pos = ( uint ) ( str - start ) + 1 ;\n break ;\n }\n chars = 128 ;\n }\n }\n sort = ( sort << 8 ) + ( wild_pos ? min ( wild_pos , 127 ) : chars ) ;\n }\n va_end ( args ) ;\n return sort ;\n }"}
{"idx": 10197, "target": 0, "func": "int dtls1_buffer_message ( SSL * s , int is_ccs ) {\n pitem * item ;\n hm_fragment * frag ;\n unsigned char seq64be [ 8 ] ;\n OPENSSL_assert ( s -> init_off == 0 ) ;\n frag = dtls1_hm_fragment_new ( s -> init_num , 0 ) ;\n if ( frag == NULL ) return 0 ;\n memcpy ( frag -> fragment , s -> init_buf -> data , s -> init_num ) ;\n if ( is_ccs ) {\n OPENSSL_assert ( s -> d1 -> w_msg_hdr . msg_len + ( ( s -> version == DTLS1_BAD_VER ) ? 3 : DTLS1_CCS_HEADER_LENGTH ) == ( unsigned int ) s -> init_num ) ;\n }\n else {\n OPENSSL_assert ( s -> d1 -> w_msg_hdr . msg_len + DTLS1_HM_HEADER_LENGTH == ( unsigned int ) s -> init_num ) ;\n }\n frag -> msg_header . msg_len = s -> d1 -> w_msg_hdr . msg_len ;\n frag -> msg_header . seq = s -> d1 -> w_msg_hdr . seq ;\n frag -> msg_header . type = s -> d1 -> w_msg_hdr . type ;\n frag -> msg_header . frag_off = 0 ;\n frag -> msg_header . frag_len = s -> d1 -> w_msg_hdr . msg_len ;\n frag -> msg_header . is_ccs = is_ccs ;\n frag -> msg_header . saved_retransmit_state . enc_write_ctx = s -> enc_write_ctx ;\n frag -> msg_header . saved_retransmit_state . write_hash = s -> write_hash ;\n frag -> msg_header . saved_retransmit_state . compress = s -> compress ;\n frag -> msg_header . saved_retransmit_state . session = s -> session ;\n frag -> msg_header . saved_retransmit_state . epoch = DTLS_RECORD_LAYER_get_w_epoch ( & s -> rlayer ) ;\n memset ( seq64be , 0 , sizeof ( seq64be ) ) ;\n seq64be [ 6 ] = ( unsigned char ) ( dtls1_get_queue_priority ( frag -> msg_header . seq , frag -> msg_header . is_ccs ) >> 8 ) ;\n seq64be [ 7 ] = ( unsigned char ) ( dtls1_get_queue_priority ( frag -> msg_header . seq , frag -> msg_header . is_ccs ) ) ;\n item = pitem_new ( seq64be , frag ) ;\n if ( item == NULL ) {\n dtls1_hm_fragment_free ( frag ) ;\n return 0 ;\n }\n pqueue_insert ( s -> d1 -> sent_messages , item ) ;\n return 1 ;\n }"}
{"idx": 10198, "target": 0, "func": "void vp9_iwht4x4_16_add_c ( const tran_low_t * input , uint8_t * dest , int stride ) {\n int i ;\n tran_low_t output [ 16 ] ;\n tran_high_t a1 , b1 , c1 , d1 , e1 ;\n const tran_low_t * ip = input ;\n tran_low_t * op = output ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n a1 = ip [ 0 ] >> UNIT_QUANT_SHIFT ;\n c1 = ip [ 1 ] >> UNIT_QUANT_SHIFT ;\n d1 = ip [ 2 ] >> UNIT_QUANT_SHIFT ;\n b1 = ip [ 3 ] >> UNIT_QUANT_SHIFT ;\n a1 += c1 ;\n d1 -= b1 ;\n e1 = ( a1 - d1 ) >> 1 ;\n b1 = e1 - b1 ;\n c1 = e1 - c1 ;\n a1 -= b1 ;\n d1 += c1 ;\n op [ 0 ] = a1 ;\n op [ 1 ] = b1 ;\n op [ 2 ] = c1 ;\n op [ 3 ] = d1 ;\n ip += 4 ;\n op += 4 ;\n }\n ip = output ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n a1 = ip [ 4 * 0 ] ;\n c1 = ip [ 4 * 1 ] ;\n d1 = ip [ 4 * 2 ] ;\n b1 = ip [ 4 * 3 ] ;\n a1 += c1 ;\n d1 -= b1 ;\n e1 = ( a1 - d1 ) >> 1 ;\n b1 = e1 - b1 ;\n c1 = e1 - c1 ;\n a1 -= b1 ;\n d1 += c1 ;\n dest [ stride * 0 ] = clip_pixel ( dest [ stride * 0 ] + a1 ) ;\n dest [ stride * 1 ] = clip_pixel ( dest [ stride * 1 ] + b1 ) ;\n dest [ stride * 2 ] = clip_pixel ( dest [ stride * 2 ] + c1 ) ;\n dest [ stride * 3 ] = clip_pixel ( dest [ stride * 3 ] + d1 ) ;\n ip ++ ;\n dest ++ ;\n }\n }"}
{"idx": 10199, "target": 0, "func": "static Asn1Generic * DecodeAsn1DerBoolean ( const unsigned char * buffer , uint32_t size , uint8_t depth , uint32_t * errcode ) {\n const unsigned char * d_ptr = buffer ;\n uint8_t numbytes ;\n uint32_t value ;\n Asn1Generic * a ;\n numbytes = d_ptr [ 1 ] ;\n d_ptr += 2 ;\n if ( DecodeAsn1BuildValue ( & d_ptr , & value , numbytes , errcode ) == - 1 ) {\n return NULL ;\n }\n a = Asn1GenericNew ( ) ;\n if ( a == NULL ) return NULL ;\n a -> type = ASN1_BOOLEAN ;\n a -> length = ( d_ptr - buffer ) ;\n a -> value = value ;\n return a ;\n }"}
{"idx": 10200, "target": 0, "func": "const char * evutil_getenv ( const char * varname ) {\n if ( evutil_issetugid ( ) ) return NULL ;\n return getenv ( varname ) ;\n }"}
{"idx": 10201, "target": 0, "func": "void xps_end_opacity ( xps_document * doc , char * base_uri , xps_resource * dict , char * opacity_att , fz_xml * opacity_mask_tag ) {\n if ( ! opacity_att && ! opacity_mask_tag ) return ;\n if ( doc -> opacity_top > 0 ) doc -> opacity_top -- ;\n if ( opacity_mask_tag ) {\n if ( strcmp ( fz_xml_tag ( opacity_mask_tag ) , \"SolidColorBrush\" ) ) fz_pop_clip ( doc -> dev ) ;\n }\n }"}
{"idx": 10202, "target": 0, "func": "static void sbr_autocorrelate_c ( const float x [ 40 ] [ 2 ] , float phi [ 3 ] [ 2 ] [ 2 ] ) {\n float real_sum2 = x [ 0 ] [ 0 ] * x [ 2 ] [ 0 ] + x [ 0 ] [ 1 ] * x [ 2 ] [ 1 ] ;\n float imag_sum2 = x [ 0 ] [ 0 ] * x [ 2 ] [ 1 ] - x [ 0 ] [ 1 ] * x [ 2 ] [ 0 ] ;\n float real_sum1 = 0.0f , imag_sum1 = 0.0f , real_sum0 = 0.0f ;\n int i ;\n for ( i = 1 ;\n i < 38 ;\n i ++ ) {\n real_sum0 += x [ i ] [ 0 ] * x [ i ] [ 0 ] + x [ i ] [ 1 ] * x [ i ] [ 1 ] ;\n real_sum1 += x [ i ] [ 0 ] * x [ i + 1 ] [ 0 ] + x [ i ] [ 1 ] * x [ i + 1 ] [ 1 ] ;\n imag_sum1 += x [ i ] [ 0 ] * x [ i + 1 ] [ 1 ] - x [ i ] [ 1 ] * x [ i + 1 ] [ 0 ] ;\n real_sum2 += x [ i ] [ 0 ] * x [ i + 2 ] [ 0 ] + x [ i ] [ 1 ] * x [ i + 2 ] [ 1 ] ;\n imag_sum2 += x [ i ] [ 0 ] * x [ i + 2 ] [ 1 ] - x [ i ] [ 1 ] * x [ i + 2 ] [ 0 ] ;\n }\n phi [ 2 - 2 ] [ 1 ] [ 0 ] = real_sum2 ;\n phi [ 2 - 2 ] [ 1 ] [ 1 ] = imag_sum2 ;\n phi [ 2 ] [ 1 ] [ 0 ] = real_sum0 + x [ 0 ] [ 0 ] * x [ 0 ] [ 0 ] + x [ 0 ] [ 1 ] * x [ 0 ] [ 1 ] ;\n phi [ 1 ] [ 0 ] [ 0 ] = real_sum0 + x [ 38 ] [ 0 ] * x [ 38 ] [ 0 ] + x [ 38 ] [ 1 ] * x [ 38 ] [ 1 ] ;\n phi [ 2 - 1 ] [ 1 ] [ 0 ] = real_sum1 + x [ 0 ] [ 0 ] * x [ 1 ] [ 0 ] + x [ 0 ] [ 1 ] * x [ 1 ] [ 1 ] ;\n phi [ 2 - 1 ] [ 1 ] [ 1 ] = imag_sum1 + x [ 0 ] [ 0 ] * x [ 1 ] [ 1 ] - x [ 0 ] [ 1 ] * x [ 1 ] [ 0 ] ;\n phi [ 0 ] [ 0 ] [ 0 ] = real_sum1 + x [ 38 ] [ 0 ] * x [ 39 ] [ 0 ] + x [ 38 ] [ 1 ] * x [ 39 ] [ 1 ] ;\n phi [ 0 ] [ 0 ] [ 1 ] = imag_sum1 + x [ 38 ] [ 0 ] * x [ 39 ] [ 1 ] - x [ 38 ] [ 1 ] * x [ 39 ] [ 0 ] ;\n # endif }"}
{"idx": 10203, "target": 0, "func": "void proto_reg_handoff_applemidi ( void ) {\n applemidi_handle = create_dissector_handle ( dissect_applemidi , proto_applemidi ) ;\n rtp_handle = find_dissector ( \"rtp\" ) ;\n heur_dissector_add ( \"udp\" , dissect_applemidi_heur , proto_applemidi ) ;\n }"}
{"idx": 10204, "target": 0, "func": "static unsigned long write_no_reuse_object ( struct sha1file * f , struct object_entry * entry , unsigned long limit , int usable_delta ) {\n unsigned long size , datalen ;\n unsigned char header [ 10 ] , dheader [ 10 ] ;\n unsigned hdrlen ;\n enum object_type type ;\n void * buf ;\n struct git_istream * st = NULL ;\n if ( ! usable_delta ) {\n if ( entry -> type == OBJ_BLOB && entry -> size > big_file_threshold && ( st = open_istream ( entry -> idx . sha1 , & type , & size , NULL ) ) != NULL ) buf = NULL ;\n else {\n buf = read_sha1_file ( entry -> idx . sha1 , & type , & size ) ;\n if ( ! buf ) die ( _ ( \"unable to read %s\" ) , sha1_to_hex ( entry -> idx . sha1 ) ) ;\n }\n free ( entry -> delta_data ) ;\n entry -> delta_data = NULL ;\n entry -> z_delta_size = 0 ;\n }\n else if ( entry -> delta_data ) {\n size = entry -> delta_size ;\n buf = entry -> delta_data ;\n entry -> delta_data = NULL ;\n type = ( allow_ofs_delta && entry -> delta -> idx . offset ) ? OBJ_OFS_DELTA : OBJ_REF_DELTA ;\n }\n else {\n buf = get_delta ( entry ) ;\n size = entry -> delta_size ;\n type = ( allow_ofs_delta && entry -> delta -> idx . offset ) ? OBJ_OFS_DELTA : OBJ_REF_DELTA ;\n }\n if ( st ) datalen = size ;\n else if ( entry -> z_delta_size ) datalen = entry -> z_delta_size ;\n else datalen = do_compress ( & buf , size ) ;\n hdrlen = encode_in_pack_object_header ( type , size , header ) ;\n if ( type == OBJ_OFS_DELTA ) {\n off_t ofs = entry -> idx . offset - entry -> delta -> idx . offset ;\n unsigned pos = sizeof ( dheader ) - 1 ;\n dheader [ pos ] = ofs & 127 ;\n while ( ofs >>= 7 ) dheader [ -- pos ] = 128 | ( -- ofs & 127 ) ;\n if ( limit && hdrlen + sizeof ( dheader ) - pos + datalen + 20 >= limit ) {\n if ( st ) close_istream ( st ) ;\n free ( buf ) ;\n return 0 ;\n }\n sha1write ( f , header , hdrlen ) ;\n sha1write ( f , dheader + pos , sizeof ( dheader ) - pos ) ;\n hdrlen += sizeof ( dheader ) - pos ;\n }\n else if ( type == OBJ_REF_DELTA ) {\n if ( limit && hdrlen + 20 + datalen + 20 >= limit ) {\n if ( st ) close_istream ( st ) ;\n free ( buf ) ;\n return 0 ;\n }\n sha1write ( f , header , hdrlen ) ;\n sha1write ( f , entry -> delta -> idx . sha1 , 20 ) ;\n hdrlen += 20 ;\n }\n else {\n if ( limit && hdrlen + datalen + 20 >= limit ) {\n if ( st ) close_istream ( st ) ;\n free ( buf ) ;\n return 0 ;\n }\n sha1write ( f , header , hdrlen ) ;\n }\n if ( st ) {\n datalen = write_large_blob_data ( st , f , entry -> idx . sha1 ) ;\n close_istream ( st ) ;\n }\n else {\n sha1write ( f , buf , datalen ) ;\n free ( buf ) ;\n }\n return hdrlen + datalen ;\n }"}
{"idx": 10205, "target": 0, "func": "static inline int dentry_has_perm ( const struct cred * cred , struct dentry * dentry , u32 av ) {\n struct inode * inode = d_backing_inode ( dentry ) ;\n struct common_audit_data ad ;\n ad . type = LSM_AUDIT_DATA_DENTRY ;\n ad . u . dentry = dentry ;\n __inode_security_revalidate ( inode , dentry , true ) ;\n return inode_has_perm ( cred , inode , av , & ad ) ;\n }"}
{"idx": 10206, "target": 1, "func": "void vp9_init_layer_context ( VP9_COMP * const cpi ) {\n SVC * const svc = & cpi -> svc ;\n const VP9EncoderConfig * const oxcf = & cpi -> oxcf ;\n int layer ;\n int layer_end ;\n int alt_ref_idx = svc -> number_spatial_layers * svc -> number_temporal_layers ;\n svc -> spatial_layer_id = 0 ;\n svc -> temporal_layer_id = 0 ;\n if ( svc -> number_temporal_layers > 1 && cpi -> oxcf . rc_mode == VPX_CBR ) {\n layer_end = svc -> number_temporal_layers ;\n }\n else {\n layer_end = svc -> number_spatial_layers ;\n }\n for ( layer = 0 ;\n layer < layer_end ;\n ++ layer ) {\n LAYER_CONTEXT * const lc = & svc -> layer_context [ layer ] ;\n RATE_CONTROL * const lrc = & lc -> rc ;\n int i ;\n lc -> current_video_frame_in_layer = 0 ;\n lc -> layer_size = 0 ;\n lc -> frames_from_key_frame = 0 ;\n lc -> last_frame_type = FRAME_TYPES ;\n lrc -> ni_av_qi = oxcf -> worst_allowed_q ;\n lrc -> total_actual_bits = 0 ;\n lrc -> total_target_vs_actual = 0 ;\n lrc -> ni_tot_qi = 0 ;\n lrc -> tot_q = 0.0 ;\n lrc -> avg_q = 0.0 ;\n lrc -> ni_frames = 0 ;\n lrc -> decimation_count = 0 ;\n lrc -> decimation_factor = 0 ;\n for ( i = 0 ;\n i < RATE_FACTOR_LEVELS ;\n ++ i ) {\n lrc -> rate_correction_factors [ i ] = 1.0 ;\n }\n if ( svc -> number_temporal_layers > 1 && cpi -> oxcf . rc_mode == VPX_CBR ) {\n lc -> target_bandwidth = oxcf -> ts_target_bitrate [ layer ] ;\n lrc -> last_q [ INTER_FRAME ] = oxcf -> worst_allowed_q ;\n lrc -> avg_frame_qindex [ INTER_FRAME ] = oxcf -> worst_allowed_q ;\n }\n else {\n lc -> target_bandwidth = oxcf -> ss_target_bitrate [ layer ] ;\n lrc -> last_q [ KEY_FRAME ] = oxcf -> best_allowed_q ;\n lrc -> last_q [ INTER_FRAME ] = oxcf -> best_allowed_q ;\n lrc -> avg_frame_qindex [ KEY_FRAME ] = ( oxcf -> worst_allowed_q + oxcf -> best_allowed_q ) / 2 ;\n lrc -> avg_frame_qindex [ INTER_FRAME ] = ( oxcf -> worst_allowed_q + oxcf -> best_allowed_q ) / 2 ;\n if ( oxcf -> ss_play_alternate [ layer ] ) lc -> alt_ref_idx = alt_ref_idx ++ ;\n else lc -> alt_ref_idx = - 1 ;\n lc -> gold_ref_idx = - 1 ;\n }\n lrc -> buffer_level = oxcf -> starting_buffer_level_ms * lc -> target_bandwidth / 1000 ;\n lrc -> bits_off_target = lrc -> buffer_level ;\n }\n if ( ! ( svc -> number_temporal_layers > 1 && cpi -> oxcf . rc_mode == VPX_CBR ) && alt_ref_idx < REF_FRAMES ) svc -> layer_context [ 0 ] . gold_ref_idx = alt_ref_idx ;\n }"}
{"idx": 10207, "target": 0, "func": "static bool contain_volatile_functions_checker ( Oid func_id , void * context ) {\n return ( func_volatile ( func_id ) == PROVOLATILE_VOLATILE ) ;\n }"}
{"idx": 10208, "target": 0, "func": "int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL ) DECLARE_PEM_rw ( PKCS7 , PKCS7 ) DECLARE_PEM_rw ( NETSCAPE_CERT_SEQUENCE , NETSCAPE_CERT_SEQUENCE ) DECLARE_PEM_rw ( PKCS8 , X509_SIG )"}
{"idx": 10209, "target": 0, "func": "TEST_F ( ProfileInfoCacheTest , DownloadHighResAvatarTest ) {\n switches : : EnableNewAvatarMenuForTesting ( base : : CommandLine : : ForCurrentProcess ( ) ) ;\n ProfileInfoCache profile_info_cache ( g_browser_process -> local_state ( ) , testing_profile_manager_ . profile_manager ( ) -> user_data_dir ( ) ) ;\n const size_t kIconIndex = 0 ;\n base : : FilePath icon_path = profiles : : GetPathOfHighResAvatarAtIndex ( kIconIndex ) ;\n EXPECT_TRUE ( base : : PathExists ( icon_path ) ) ;\n EXPECT_TRUE ( base : : DeleteFile ( icon_path , true ) ) ;\n EXPECT_FALSE ( base : : PathExists ( icon_path ) ) ;\n EXPECT_EQ ( 0U , profile_info_cache . GetNumberOfProfiles ( ) ) ;\n base : : FilePath path_1 = GetProfilePath ( \"path_1\" ) ;\n profile_info_cache . AddProfileToCache ( path_1 , ASCIIToUTF16 ( \"name_1\" ) , base : : string16 ( ) , kIconIndex , std : : string ( ) ) ;\n EXPECT_EQ ( 1U , profile_info_cache . GetNumberOfProfiles ( ) ) ;\n base : : RunLoop ( ) . RunUntilIdle ( ) ;\n EXPECT_EQ ( 0U , profile_info_cache . cached_avatar_images_ . size ( ) ) ;\n EXPECT_EQ ( 1U , profile_info_cache . avatar_images_downloads_in_progress_ . size ( ) ) ;\n EXPECT_FALSE ( profile_info_cache . GetHighResAvatarOfProfileAtIndex ( 0 ) ) ;\n ProfileAvatarDownloader avatar_downloader ( kIconIndex , profile_info_cache . GetPathOfProfileAtIndex ( 0 ) , & profile_info_cache ) ;\n SkBitmap bitmap ;\n bitmap . allocN32Pixels ( 2 , 2 ) ;\n bitmap . eraseColor ( SK_ColorGREEN ) ;\n avatar_downloader . OnFetchComplete ( GURL ( \"http://www.google.com/avatar.png\" ) , & bitmap ) ;\n EXPECT_EQ ( 0U , profile_info_cache . avatar_images_downloads_in_progress_ . size ( ) ) ;\n std : : string file_name = profiles : : GetDefaultAvatarIconFileNameAtIndex ( kIconIndex ) ;\n EXPECT_EQ ( 1U , profile_info_cache . cached_avatar_images_ . size ( ) ) ;\n EXPECT_TRUE ( profile_info_cache . GetHighResAvatarOfProfileAtIndex ( 0 ) ) ;\n EXPECT_EQ ( profile_info_cache . cached_avatar_images_ [ file_name ] , profile_info_cache . GetHighResAvatarOfProfileAtIndex ( 0 ) ) ;\n base : : RunLoop ( ) . RunUntilIdle ( ) ;\n EXPECT_NE ( std : : string : : npos , icon_path . MaybeAsASCII ( ) . find ( file_name ) ) ;\n EXPECT_TRUE ( base : : PathExists ( icon_path ) ) ;\n EXPECT_TRUE ( base : : DeleteFile ( icon_path , true ) ) ;\n EXPECT_FALSE ( base : : PathExists ( icon_path ) ) ;\n }"}
{"idx": 10210, "target": 0, "func": "static Image * ReadGIFImage ( const ImageInfo * image_info , ExceptionInfo * exception ) {\n # define BitSet ( byte , bit ) ( ( ( byte ) & ( bit ) ) == ( bit ) ) # define LSBFirstOrder ( x , y ) ( ( ( y ) << 8 ) | ( x ) ) Image * image , * meta_image ;\n int number_extensionss = 0 ;\n MagickBooleanType status ;\n RectangleInfo page ;\n register ssize_t i ;\n register unsigned char * p ;\n size_t delay , dispose , duration , global_colors , image_count , iterations , one ;\n ssize_t count , opacity ;\n unsigned char background , c , flag , * global_colormap , header [ MaxTextExtent ] , magick [ 12 ] ;\n assert ( image_info != ( const ImageInfo * ) NULL ) ;\n assert ( image_info -> signature == MagickSignature ) ;\n if ( image_info -> debug != MagickFalse ) ( void ) LogMagickEvent ( TraceEvent , GetMagickModule ( ) , \"%s\" , image_info -> filename ) ;\n assert ( exception != ( ExceptionInfo * ) NULL ) ;\n assert ( exception -> signature == MagickSignature ) ;\n image = AcquireImage ( image_info ) ;\n status = OpenBlob ( image_info , image , ReadBinaryBlobMode , exception ) ;\n if ( status == MagickFalse ) {\n image = DestroyImageList ( image ) ;\n return ( ( Image * ) NULL ) ;\n }\n count = ReadBlob ( image , 6 , magick ) ;\n if ( ( count != 6 ) || ( ( LocaleNCompare ( ( char * ) magick , \"GIF87\" , 5 ) != 0 ) && ( LocaleNCompare ( ( char * ) magick , \"GIF89\" , 5 ) != 0 ) ) ) ThrowReaderException ( CorruptImageError , \"ImproperImageHeader\" ) ;\n page . width = ReadBlobLSBShort ( image ) ;\n page . height = ReadBlobLSBShort ( image ) ;\n flag = ( unsigned char ) ReadBlobByte ( image ) ;\n background = ( unsigned char ) ReadBlobByte ( image ) ;\n c = ( unsigned char ) ReadBlobByte ( image ) ;\n one = 1 ;\n global_colors = one << ( ( ( size_t ) flag & 0x07 ) + 1 ) ;\n global_colormap = ( unsigned char * ) AcquireQuantumMemory ( ( size_t ) MagickMax ( global_colors , 256 ) , 3UL * sizeof ( * global_colormap ) ) ;\n if ( global_colormap == ( unsigned char * ) NULL ) ThrowReaderException ( ResourceLimitError , \"MemoryAllocationFailed\" ) ;\n ( void ) ResetMagickMemory ( global_colormap , 0 , 3 * MagickMax ( global_colors , 256 ) * sizeof ( * global_colormap ) ) ;\n if ( BitSet ( ( int ) flag , 0x80 ) != 0 ) {\n count = ReadBlob ( image , ( size_t ) ( 3 * global_colors ) , global_colormap ) ;\n if ( count != ( ssize_t ) ( 3 * global_colors ) ) {\n global_colormap = ( unsigned char * ) RelinquishMagickMemory ( global_colormap ) ;\n ThrowReaderException ( CorruptImageError , \"InsufficientImageDataInFile\" ) ;\n }\n }\n delay = 0 ;\n dispose = 0 ;\n duration = 0 ;\n iterations = 1 ;\n opacity = ( - 1 ) ;\n image_count = 0 ;\n meta_image = AcquireImage ( image_info ) ;\n for ( ;\n ;\n ) {\n count = ReadBlob ( image , 1 , & c ) ;\n if ( count != 1 ) break ;\n if ( c == ( unsigned char ) ';\n' ) break ;\n if ( c == ( unsigned char ) '!' ) {\n count = ReadBlob ( image , 1 , & c ) ;\n if ( count != 1 ) {\n global_colormap = ( unsigned char * ) RelinquishMagickMemory ( global_colormap ) ;\n meta_image = DestroyImage ( meta_image ) ;\n ThrowReaderException ( CorruptImageError , \"UnableToReadExtensionBlock\" ) ;\n }\n switch ( c ) {\n case 0xf9 : {\n while ( ReadBlobBlock ( image , header ) != 0 ) ;\n dispose = ( size_t ) ( header [ 0 ] >> 2 ) ;\n delay = ( size_t ) ( ( header [ 2 ] << 8 ) | header [ 1 ] ) ;\n if ( ( ssize_t ) ( header [ 0 ] & 0x01 ) == 0x01 ) opacity = ( ssize_t ) header [ 3 ] ;\n break ;\n }\n case 0xfe : {\n char * comments ;\n size_t length ;\n comments = AcquireString ( ( char * ) NULL ) ;\n for ( length = 0 ;\n ;\n length += count ) {\n count = ReadBlobBlock ( image , header ) ;\n if ( count == 0 ) break ;\n header [ count ] = '\\0' ;\n ( void ) ConcatenateString ( & comments , ( const char * ) header ) ;\n }\n ( void ) SetImageProperty ( meta_image , \"comment\" , comments ) ;\n comments = DestroyString ( comments ) ;\n break ;\n }\n case 0xff : {\n MagickBooleanType loop ;\n loop = MagickFalse ;\n if ( ReadBlobBlock ( image , header ) != 0 ) loop = LocaleNCompare ( ( char * ) header , \"NETSCAPE2.0\" , 11 ) == 0 ? MagickTrue : MagickFalse ;\n if ( loop != MagickFalse ) {\n while ( ReadBlobBlock ( image , header ) != 0 ) iterations = ( size_t ) ( ( header [ 2 ] << 8 ) | header [ 1 ] ) ;\n break ;\n }\n else {\n char name [ MaxTextExtent ] ;\n int block_length , info_length , reserved_length ;\n MagickBooleanType i8bim , icc , iptc , magick ;\n StringInfo * profile ;\n unsigned char * info ;\n icc = LocaleNCompare ( ( char * ) header , \"ICCRGBG1012\" , 11 ) == 0 ? MagickTrue : MagickFalse ;\n magick = LocaleNCompare ( ( char * ) header , \"ImageMagick\" , 11 ) == 0 ? MagickTrue : MagickFalse ;\n i8bim = LocaleNCompare ( ( char * ) header , \"MGK8BIM0000\" , 11 ) == 0 ? MagickTrue : MagickFalse ;\n iptc = LocaleNCompare ( ( char * ) header , \"MGKIPTC0000\" , 11 ) == 0 ? MagickTrue : MagickFalse ;\n number_extensionss ++ ;\n ( void ) LogMagickEvent ( CoderEvent , GetMagickModule ( ) , \" Reading GIF application extension\" ) ;\n info = ( unsigned char * ) AcquireQuantumMemory ( 255UL , sizeof ( * info ) ) ;\n if ( info == ( unsigned char * ) NULL ) {\n meta_image = DestroyImage ( meta_image ) ;\n ThrowReaderException ( ResourceLimitError , \"MemoryAllocationFailed\" ) ;\n }\n reserved_length = 255 ;\n for ( info_length = 0 ;\n ;\n ) {\n block_length = ( int ) ReadBlobBlock ( image , & info [ info_length ] ) ;\n if ( block_length == 0 ) break ;\n info_length += block_length ;\n if ( info_length > ( reserved_length - 255 ) ) {\n reserved_length += 4096 ;\n info = ( unsigned char * ) ResizeQuantumMemory ( info , ( size_t ) reserved_length , sizeof ( * info ) ) ;\n if ( info == ( unsigned char * ) NULL ) {\n meta_image = DestroyImage ( meta_image ) ;\n ThrowReaderException ( ResourceLimitError , \"MemoryAllocationFailed\" ) ;\n }\n }\n }\n profile = BlobToStringInfo ( info , ( size_t ) info_length ) ;\n if ( profile == ( StringInfo * ) NULL ) {\n meta_image = DestroyImage ( meta_image ) ;\n ThrowReaderException ( ResourceLimitError , \"MemoryAllocationFailed\" ) ;\n }\n if ( i8bim != MagickFalse ) ( void ) CopyMagickString ( name , \"8bim\" , sizeof ( name ) ) ;\n else if ( icc != MagickFalse ) ( void ) CopyMagickString ( name , \"icc\" , sizeof ( name ) ) ;\n else if ( iptc != MagickFalse ) ( void ) CopyMagickString ( name , \"iptc\" , sizeof ( name ) ) ;\n else if ( magick != MagickFalse ) {\n ( void ) CopyMagickString ( name , \"magick\" , sizeof ( name ) ) ;\n meta_image -> gamma = StringToDouble ( ( char * ) info + 6 , ( char * * ) NULL ) ;\n }\n else ( void ) FormatLocaleString ( name , sizeof ( name ) , \"gif:%.11s\" , header ) ;\n info = ( unsigned char * ) RelinquishMagickMemory ( info ) ;\n if ( magick == MagickFalse ) ( void ) SetImageProfile ( meta_image , name , profile ) ;\n profile = DestroyStringInfo ( profile ) ;\n ( void ) LogMagickEvent ( CoderEvent , GetMagickModule ( ) , \" profile name=%s\" , name ) ;\n }\n break ;\n }\n default : {\n while ( ReadBlobBlock ( image , header ) != 0 ) ;\n break ;\n }\n }\n }\n if ( c != ( unsigned char ) ',' ) continue ;\n if ( image_count != 0 ) {\n AcquireNextImage ( image_info , image ) ;\n if ( GetNextImageInList ( image ) == ( Image * ) NULL ) {\n image = DestroyImageList ( image ) ;\n global_colormap = ( unsigned char * ) RelinquishMagickMemory ( global_colormap ) ;\n return ( ( Image * ) NULL ) ;\n }\n image = SyncNextImageInList ( image ) ;\n }\n image_count ++ ;\n meta_image -> scene = image -> scene ;\n ( void ) CloneImageProperties ( image , meta_image ) ;\n DestroyImageProperties ( meta_image ) ;\n ( void ) CloneImageProfiles ( image , meta_image ) ;\n DestroyImageProfiles ( meta_image ) ;\n image -> storage_class = PseudoClass ;\n image -> compression = LZWCompression ;\n page . x = ( ssize_t ) ReadBlobLSBShort ( image ) ;\n page . y = ( ssize_t ) ReadBlobLSBShort ( image ) ;\n image -> columns = ReadBlobLSBShort ( image ) ;\n image -> rows = ReadBlobLSBShort ( image ) ;\n image -> depth = 8 ;\n flag = ( unsigned char ) ReadBlobByte ( image ) ;\n image -> interlace = BitSet ( ( int ) flag , 0x40 ) != 0 ? GIFInterlace : NoInterlace ;\n image -> colors = BitSet ( ( int ) flag , 0x80 ) == 0 ? global_colors : one << ( ( size_t ) ( flag & 0x07 ) + 1 ) ;\n if ( opacity >= ( ssize_t ) image -> colors ) opacity = ( - 1 ) ;\n image -> page . width = page . width ;\n image -> page . height = page . height ;\n image -> page . y = page . y ;\n image -> page . x = page . x ;\n image -> delay = delay ;\n image -> iterations = iterations ;\n image -> ticks_per_second = 100 ;\n image -> dispose = ( DisposeType ) dispose ;\n image -> matte = opacity >= 0 ? MagickTrue : MagickFalse ;\n delay = 0 ;\n dispose = 0 ;\n if ( ( image -> columns == 0 ) || ( image -> rows == 0 ) ) {\n global_colormap = ( unsigned char * ) RelinquishMagickMemory ( global_colormap ) ;\n meta_image = DestroyImage ( meta_image ) ;\n ThrowReaderException ( CorruptImageError , \"NegativeOrZeroImageSize\" ) ;\n }\n if ( AcquireImageColormap ( image , image -> colors ) == MagickFalse ) {\n global_colormap = ( unsigned char * ) RelinquishMagickMemory ( global_colormap ) ;\n meta_image = DestroyImage ( meta_image ) ;\n ThrowReaderException ( ResourceLimitError , \"MemoryAllocationFailed\" ) ;\n }\n if ( BitSet ( ( int ) flag , 0x80 ) == 0 ) {\n p = global_colormap ;\n for ( i = 0 ;\n i < ( ssize_t ) image -> colors ;\n i ++ ) {\n image -> colormap [ i ] . red = ScaleCharToQuantum ( * p ++ ) ;\n image -> colormap [ i ] . green = ScaleCharToQuantum ( * p ++ ) ;\n image -> colormap [ i ] . blue = ScaleCharToQuantum ( * p ++ ) ;\n if ( i == opacity ) {\n image -> colormap [ i ] . opacity = ( Quantum ) TransparentOpacity ;\n image -> transparent_color = image -> colormap [ opacity ] ;\n }\n }\n image -> background_color = image -> colormap [ MagickMin ( ( ssize_t ) background , ( ssize_t ) image -> colors - 1 ) ] ;\n }\n else {\n unsigned char * colormap ;\n colormap = ( unsigned char * ) AcquireQuantumMemory ( image -> colors , 3 * sizeof ( * colormap ) ) ;\n if ( colormap == ( unsigned char * ) NULL ) {\n global_colormap = ( unsigned char * ) RelinquishMagickMemory ( global_colormap ) ;\n meta_image = DestroyImage ( meta_image ) ;\n ThrowReaderException ( ResourceLimitError , \"MemoryAllocationFailed\" ) ;\n }\n count = ReadBlob ( image , ( 3 * image -> colors ) * sizeof ( * colormap ) , colormap ) ;\n if ( count != ( ssize_t ) ( 3 * image -> colors ) ) {\n global_colormap = ( unsigned char * ) RelinquishMagickMemory ( global_colormap ) ;\n colormap = ( unsigned char * ) RelinquishMagickMemory ( colormap ) ;\n meta_image = DestroyImage ( meta_image ) ;\n ThrowReaderException ( CorruptImageError , \"InsufficientImageDataInFile\" ) ;\n }\n p = colormap ;\n for ( i = 0 ;\n i < ( ssize_t ) image -> colors ;\n i ++ ) {\n image -> colormap [ i ] . red = ScaleCharToQuantum ( * p ++ ) ;\n image -> colormap [ i ] . green = ScaleCharToQuantum ( * p ++ ) ;\n image -> colormap [ i ] . blue = ScaleCharToQuantum ( * p ++ ) ;\n if ( i == opacity ) image -> colormap [ i ] . opacity = ( Quantum ) TransparentOpacity ;\n }\n colormap = ( unsigned char * ) RelinquishMagickMemory ( colormap ) ;\n }\n if ( image -> gamma == 1.0 ) {\n for ( i = 0 ;\n i < ( ssize_t ) image -> colors ;\n i ++ ) if ( IsGrayPixel ( image -> colormap + i ) == MagickFalse ) break ;\n ( void ) SetImageColorspace ( image , i == ( ssize_t ) image -> colors ? GRAYColorspace : RGBColorspace ) ;\n }\n if ( ( image_info -> ping != MagickFalse ) && ( image_info -> number_scenes != 0 ) ) if ( image -> scene >= ( image_info -> scene + image_info -> number_scenes - 1 ) ) break ;\n status = SetImageExtent ( image , image -> columns , image -> rows ) ;\n if ( status == MagickFalse ) {\n InheritException ( exception , & image -> exception ) ;\n return ( DestroyImageList ( image ) ) ;\n }\n if ( image_info -> ping != MagickFalse ) status = PingGIFImage ( image ) ;\n else status = DecodeImage ( image , opacity ) ;\n if ( ( image_info -> ping == MagickFalse ) && ( status == MagickFalse ) ) {\n global_colormap = ( unsigned char * ) RelinquishMagickMemory ( global_colormap ) ;\n meta_image = DestroyImage ( meta_image ) ;\n ThrowReaderException ( CorruptImageError , \"CorruptImage\" ) ;\n }\n duration += image -> delay * image -> iterations ;\n if ( image_info -> number_scenes != 0 ) if ( image -> scene >= ( image_info -> scene + image_info -> number_scenes - 1 ) ) break ;\n opacity = ( - 1 ) ;\n status = SetImageProgress ( image , LoadImageTag , ( MagickOffsetType ) image -> scene - 1 , image -> scene ) ;\n if ( status == MagickFalse ) break ;\n }\n image -> duration = duration ;\n meta_image = DestroyImage ( meta_image ) ;\n global_colormap = ( unsigned char * ) RelinquishMagickMemory ( global_colormap ) ;\n if ( ( image -> columns == 0 ) || ( image -> rows == 0 ) ) ThrowReaderException ( CorruptImageError , \"NegativeOrZeroImageSize\" ) ;\n ( void ) CloseBlob ( image ) ;\n return ( GetFirstImageInList ( image ) ) ;\n }"}
{"idx": 10211, "target": 0, "func": "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 ) {\n unsigned char * p_src , * p_dst ;\n int row ;\n int col ;\n unsigned char v ;\n unsigned char d [ 4 ] ;\n for ( row = 0 ;\n row < size ;\n row ++ ) {\n p_src = src_ptr ;\n p_dst = dst_ptr ;\n for ( col = 0 ;\n col < cols ;\n col ++ ) {\n unsigned char p_above2 = p_src [ col - 2 * src_pixels_per_line ] ;\n unsigned char p_above1 = p_src [ col - src_pixels_per_line ] ;\n unsigned char p_below1 = p_src [ col + src_pixels_per_line ] ;\n unsigned char p_below2 = p_src [ col + 2 * src_pixels_per_line ] ;\n v = p_src [ col ] ;\n if ( ( abs ( v - p_above2 ) < f [ col ] ) && ( abs ( v - p_above1 ) < f [ col ] ) && ( abs ( v - p_below1 ) < f [ col ] ) && ( abs ( v - p_below2 ) < f [ col ] ) ) {\n unsigned char k1 , k2 , k3 ;\n k1 = ( p_above2 + p_above1 + 1 ) >> 1 ;\n k2 = ( p_below2 + p_below1 + 1 ) >> 1 ;\n k3 = ( k1 + k2 + 1 ) >> 1 ;\n v = ( k3 + v + 1 ) >> 1 ;\n }\n p_dst [ col ] = v ;\n }\n p_src = dst_ptr ;\n p_dst = dst_ptr ;\n p_src [ - 2 ] = p_src [ - 1 ] = p_src [ 0 ] ;\n p_src [ cols ] = p_src [ cols + 1 ] = p_src [ cols - 1 ] ;\n for ( col = 0 ;\n col < cols ;\n col ++ ) {\n v = p_src [ col ] ;\n if ( ( abs ( v - p_src [ col - 2 ] ) < f [ col ] ) && ( abs ( v - p_src [ col - 1 ] ) < f [ col ] ) && ( abs ( v - p_src [ col + 1 ] ) < f [ col ] ) && ( abs ( v - p_src [ col + 2 ] ) < f [ col ] ) ) {\n unsigned char k1 , k2 , k3 ;\n k1 = ( p_src [ col - 2 ] + p_src [ col - 1 ] + 1 ) >> 1 ;\n k2 = ( p_src [ col + 2 ] + p_src [ col + 1 ] + 1 ) >> 1 ;\n k3 = ( k1 + k2 + 1 ) >> 1 ;\n v = ( k3 + v + 1 ) >> 1 ;\n }\n d [ col & 3 ] = v ;\n if ( col >= 2 ) p_dst [ col - 2 ] = d [ ( col - 2 ) & 3 ] ;\n }\n p_dst [ col - 2 ] = d [ ( col - 2 ) & 3 ] ;\n p_dst [ col - 1 ] = d [ ( col - 1 ) & 3 ] ;\n src_ptr += src_pixels_per_line ;\n dst_ptr += dst_pixels_per_line ;\n }\n }"}
{"idx": 10212, "target": 0, "func": "int change_to_newfile ( const char * filename , const char * old_ext , const char * new_ext , myf MyFlags ) {\n char old_filename [ FN_REFLEN ] , new_filename [ FN_REFLEN ] ;\n ( void ) fn_format ( old_filename , filename , \"\" , old_ext , 2 + 4 + 32 ) ;\n return my_redel ( old_filename , fn_format ( new_filename , old_filename , \"\" , new_ext , 2 + 4 ) , MYF ( MY_WME | MY_LINK_WARNING | MyFlags ) ) ;\n }"}
{"idx": 10213, "target": 0, "func": "static void free_days ( UChar * days [ ] ) {\n free_symbols ( days , DAY_COUNT ) ;\n }"}
{"idx": 10214, "target": 0, "func": "static const char * cmd_rule_remove_by_id ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n rule_exception * re = apr_pcalloc ( cmd -> pool , sizeof ( rule_exception ) ) ;\n if ( dcfg == NULL ) return NULL ;\n re -> type = RULE_EXCEPTION_REMOVE_ID ;\n re -> param = p1 ;\n * ( rule_exception * * ) apr_array_push ( dcfg -> rule_exceptions ) = re ;\n msre_ruleset_rule_remove_with_exception ( dcfg -> ruleset , re ) ;\n return NULL ;\n }"}
{"idx": 10215, "target": 0, "func": "static inline void set_intra_mode_default ( AVSContext * h ) {\n if ( h -> stream_revision > 0 ) {\n h -> pred_mode_Y [ 3 ] = h -> pred_mode_Y [ 6 ] = NOT_AVAIL ;\n h -> top_pred_Y [ h -> mbx * 2 + 0 ] = h -> top_pred_Y [ h -> mbx * 2 + 1 ] = NOT_AVAIL ;\n }\n else {\n h -> pred_mode_Y [ 3 ] = h -> pred_mode_Y [ 6 ] = INTRA_L_LP ;\n h -> top_pred_Y [ h -> mbx * 2 + 0 ] = h -> top_pred_Y [ h -> mbx * 2 + 1 ] = INTRA_L_LP ;\n }\n }"}
{"idx": 10216, "target": 0, "func": "static int dissect_h225_NULL ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_null ( tvb , offset , actx , tree , hf_index ) ;\n return offset ;\n }"}
{"idx": 10217, "target": 0, "func": "void proto_reg_handoff_zbee_zcl_appl_stats ( void ) {\n dissector_handle_t appl_stats_handle ;\n appl_stats_handle = find_dissector ( ZBEE_PROTOABBREV_ZCL_APPLSTATS ) ;\n dissector_add_uint ( \"zbee.zcl.cluster\" , ZBEE_ZCL_CID_APPLIANCE_STATISTICS , appl_stats_handle ) ;\n zbee_zcl_init_cluster ( proto_zbee_zcl_appl_stats , ett_zbee_zcl_appl_stats , ZBEE_ZCL_CID_APPLIANCE_STATISTICS , hf_zbee_zcl_appl_stats_attr_id , hf_zbee_zcl_appl_stats_srv_rx_cmd_id , hf_zbee_zcl_appl_stats_srv_tx_cmd_id , NULL ) ;\n }"}
{"idx": 10218, "target": 0, "func": "static uint gs_heap_object_size ( gs_memory_t * mem , const void * ptr ) {\n return ( ( const gs_malloc_block_t * ) ptr ) [ - 1 ] . size ;\n }"}
{"idx": 10219, "target": 0, "func": "static void systick_reset ( nvic_state * s ) {\n s -> systick . control = 0 ;\n s -> systick . reload = 0 ;\n s -> systick . tick = 0 ;\n qemu_del_timer ( s -> systick . timer ) ;\n }"}
{"idx": 10220, "target": 0, "func": "static int dissect_h245_ConnectionIdentifier ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_ConnectionIdentifier , ConnectionIdentifier_sequence ) ;\n return offset ;\n }"}
{"idx": 10221, "target": 0, "func": "static enum AVPixelFormat get_pixel_format ( H264Context * h , int force_callback ) {\n switch ( h -> sps . bit_depth_luma ) {\n case 9 : if ( CHROMA444 ( h ) ) {\n if ( h -> avctx -> colorspace == AVCOL_SPC_RGB ) {\n return AV_PIX_FMT_GBRP9 ;\n }\n else return AV_PIX_FMT_YUV444P9 ;\n }\n else if ( CHROMA422 ( h ) ) return AV_PIX_FMT_YUV422P9 ;\n else return AV_PIX_FMT_YUV420P9 ;\n break ;\n case 10 : if ( CHROMA444 ( h ) ) {\n if ( h -> avctx -> colorspace == AVCOL_SPC_RGB ) {\n return AV_PIX_FMT_GBRP10 ;\n }\n else return AV_PIX_FMT_YUV444P10 ;\n }\n else if ( CHROMA422 ( h ) ) return AV_PIX_FMT_YUV422P10 ;\n else return AV_PIX_FMT_YUV420P10 ;\n break ;\n case 12 : if ( CHROMA444 ( h ) ) {\n if ( h -> avctx -> colorspace == AVCOL_SPC_RGB ) {\n return AV_PIX_FMT_GBRP12 ;\n }\n else return AV_PIX_FMT_YUV444P12 ;\n }\n else if ( CHROMA422 ( h ) ) return AV_PIX_FMT_YUV422P12 ;\n else return AV_PIX_FMT_YUV420P12 ;\n break ;\n case 14 : if ( CHROMA444 ( h ) ) {\n if ( h -> avctx -> colorspace == AVCOL_SPC_RGB ) {\n return AV_PIX_FMT_GBRP14 ;\n }\n else return AV_PIX_FMT_YUV444P14 ;\n }\n else if ( CHROMA422 ( h ) ) return AV_PIX_FMT_YUV422P14 ;\n else return AV_PIX_FMT_YUV420P14 ;\n break ;\n case 8 : if ( CHROMA444 ( h ) ) {\n if ( h -> avctx -> colorspace == AVCOL_SPC_RGB ) {\n av_log ( h -> avctx , AV_LOG_DEBUG , \"Detected GBR colorspace.\\n\" ) ;\n return AV_PIX_FMT_GBR24P ;\n }\n else if ( h -> avctx -> colorspace == AVCOL_SPC_YCGCO ) {\n av_log ( h -> avctx , AV_LOG_WARNING , \"Detected unsupported YCgCo colorspace.\\n\" ) ;\n }\n return h -> avctx -> color_range == AVCOL_RANGE_JPEG ? AV_PIX_FMT_YUVJ444P : AV_PIX_FMT_YUV444P ;\n }\n else if ( CHROMA422 ( h ) ) {\n return h -> avctx -> color_range == AVCOL_RANGE_JPEG ? AV_PIX_FMT_YUVJ422P : AV_PIX_FMT_YUV422P ;\n }\n else {\n int i ;\n const enum AVPixelFormat * fmt = h -> avctx -> codec -> pix_fmts ? h -> avctx -> codec -> pix_fmts : h -> avctx -> color_range == AVCOL_RANGE_JPEG ? h264_hwaccel_pixfmt_list_jpeg_420 : h264_hwaccel_pixfmt_list_420 ;\n for ( i = 0 ;\n fmt [ i ] != AV_PIX_FMT_NONE ;\n i ++ ) if ( fmt [ i ] == h -> avctx -> pix_fmt && ! force_callback ) return fmt [ i ] ;\n return ff_thread_get_format ( h -> avctx , fmt ) ;\n }\n break ;\n default : av_log ( h -> avctx , AV_LOG_ERROR , \"Unsupported bit depth: %d\\n\" , h -> sps . bit_depth_luma ) ;\n return AVERROR_INVALIDDATA ;\n }\n }"}
{"idx": 10222, "target": 0, "func": "static void flush_change ( H264Context * h ) {\n int i , j ;\n h -> outputed_poc = h -> next_outputed_poc = INT_MIN ;\n h -> prev_interlaced_frame = 1 ;\n idr ( h ) ;\n h -> prev_frame_num = - 1 ;\n if ( h -> cur_pic_ptr ) {\n h -> cur_pic_ptr -> reference = 0 ;\n for ( j = i = 0 ;\n h -> delayed_pic [ i ] ;\n i ++ ) if ( h -> delayed_pic [ i ] != h -> cur_pic_ptr ) h -> delayed_pic [ j ++ ] = h -> delayed_pic [ i ] ;\n h -> delayed_pic [ j ] = NULL ;\n }\n h -> first_field = 0 ;\n memset ( h -> ref_list [ 0 ] , 0 , sizeof ( h -> ref_list [ 0 ] ) ) ;\n memset ( h -> ref_list [ 1 ] , 0 , sizeof ( h -> ref_list [ 1 ] ) ) ;\n memset ( h -> default_ref_list [ 0 ] , 0 , sizeof ( h -> default_ref_list [ 0 ] ) ) ;\n memset ( h -> default_ref_list [ 1 ] , 0 , sizeof ( h -> default_ref_list [ 1 ] ) ) ;\n ff_h264_reset_sei ( h ) ;\n h -> recovery_frame = - 1 ;\n h -> frame_recovered = 0 ;\n h -> list_count = 0 ;\n h -> current_slice = 0 ;\n h -> mmco_reset = 1 ;\n }"}
{"idx": 10223, "target": 0, "func": "static void e1000e_write_packet_to_guest ( E1000ECore * core , struct NetRxPkt * pkt , const E1000E_RxRing * rxr , const E1000E_RSSInfo * rss_info ) {\n PCIDevice * d = core -> owner ;\n dma_addr_t base ;\n uint8_t desc [ E1000_MAX_RX_DESC_LEN ] ;\n size_t desc_size ;\n size_t desc_offset = 0 ;\n size_t iov_ofs = 0 ;\n struct iovec * iov = net_rx_pkt_get_iovec ( pkt ) ;\n size_t size = net_rx_pkt_get_total_len ( pkt ) ;\n size_t total_size = size + e1000x_fcs_len ( core -> mac ) ;\n const E1000E_RingInfo * rxi ;\n size_t ps_hdr_len = 0 ;\n bool do_ps = e1000e_do_ps ( core , pkt , & ps_hdr_len ) ;\n bool is_first = true ;\n rxi = rxr -> i ;\n do {\n hwaddr ba [ MAX_PS_BUFFERS ] ;\n e1000e_ba_state bastate = {\n {\n 0 }\n }\n ;\n bool is_last = false ;\n desc_size = total_size - desc_offset ;\n if ( desc_size > core -> rx_desc_buf_size ) {\n desc_size = core -> rx_desc_buf_size ;\n }\n if ( e1000e_ring_empty ( core , rxi ) ) {\n return ;\n }\n base = e1000e_ring_head_descr ( core , rxi ) ;\n pci_dma_read ( d , base , & desc , core -> rx_desc_len ) ;\n trace_e1000e_rx_descr ( rxi -> idx , base , core -> rx_desc_len ) ;\n e1000e_read_rx_descr ( core , desc , & ba ) ;\n if ( ba [ 0 ] ) {\n if ( desc_offset < size ) {\n static const uint32_t fcs_pad ;\n size_t iov_copy ;\n size_t copy_size = size - desc_offset ;\n if ( copy_size > core -> rx_desc_buf_size ) {\n copy_size = core -> rx_desc_buf_size ;\n }\n if ( do_ps ) {\n if ( is_first ) {\n size_t ps_hdr_copied = 0 ;\n do {\n iov_copy = MIN ( ps_hdr_len - ps_hdr_copied , iov -> iov_len - iov_ofs ) ;\n e1000e_write_hdr_to_rx_buffers ( core , & ba , & bastate , iov -> iov_base , iov_copy ) ;\n copy_size -= iov_copy ;\n ps_hdr_copied += iov_copy ;\n iov_ofs += iov_copy ;\n if ( iov_ofs == iov -> iov_len ) {\n iov ++ ;\n iov_ofs = 0 ;\n }\n }\n while ( ps_hdr_copied < ps_hdr_len ) ;\n is_first = false ;\n }\n else {\n e1000e_write_hdr_to_rx_buffers ( core , & ba , & bastate , NULL , 0 ) ;\n }\n }\n while ( copy_size ) {\n iov_copy = MIN ( copy_size , iov -> iov_len - iov_ofs ) ;\n e1000e_write_to_rx_buffers ( core , & ba , & bastate , iov -> iov_base + iov_ofs , iov_copy ) ;\n copy_size -= iov_copy ;\n iov_ofs += iov_copy ;\n if ( iov_ofs == iov -> iov_len ) {\n iov ++ ;\n iov_ofs = 0 ;\n }\n }\n if ( desc_offset + desc_size >= total_size ) {\n e1000e_write_to_rx_buffers ( core , & ba , & bastate , ( const char * ) & fcs_pad , e1000x_fcs_len ( core -> mac ) ) ;\n }\n }\n desc_offset += desc_size ;\n if ( desc_offset >= total_size ) {\n is_last = true ;\n }\n }\n else {\n trace_e1000e_rx_null_descriptor ( ) ;\n }\n e1000e_write_rx_descr ( core , desc , is_last ? core -> rx_pkt : NULL , rss_info , do_ps ? ps_hdr_len : 0 , & bastate . written ) ;\n pci_dma_write ( d , base , & desc , core -> rx_desc_len ) ;\n e1000e_ring_advance ( core , rxi , core -> rx_desc_len / E1000_MIN_RX_DESC_LEN ) ;\n }\n while ( desc_offset < total_size ) ;\n e1000e_update_rx_stats ( core , size , total_size ) ;\n }"}
{"idx": 10224, "target": 0, "func": "static int pci_vmsvga_initfn ( PCIDevice * dev ) {\n struct pci_vmsvga_state_s * s = VMWARE_SVGA ( dev ) ;\n dev -> config [ PCI_CACHE_LINE_SIZE ] = 0x08 ;\n dev -> config [ PCI_LATENCY_TIMER ] = 0x40 ;\n dev -> config [ PCI_INTERRUPT_LINE ] = 0xff ;\n memory_region_init_io ( & s -> io_bar , NULL , & vmsvga_io_ops , & s -> chip , \"vmsvga-io\" , 0x10 ) ;\n memory_region_set_flush_coalesced ( & s -> io_bar ) ;\n pci_register_bar ( dev , 0 , PCI_BASE_ADDRESS_SPACE_IO , & s -> io_bar ) ;\n vmsvga_init ( DEVICE ( dev ) , & s -> chip , pci_address_space ( dev ) , pci_address_space_io ( dev ) ) ;\n pci_register_bar ( dev , 1 , PCI_BASE_ADDRESS_MEM_PREFETCH , & s -> chip . vga . vram ) ;\n pci_register_bar ( dev , 2 , PCI_BASE_ADDRESS_MEM_PREFETCH , & s -> chip . fifo_ram ) ;\n if ( ! dev -> rom_bar ) {\n vga_init_vbe ( & s -> chip . vga , OBJECT ( dev ) , pci_address_space ( dev ) ) ;\n }\n return 0 ;\n }"}
{"idx": 10225, "target": 0, "func": "static int SpoolssRFFPCNEX_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n guint32 flags ;\n static const int * hf_flags [ ] = {\n & hf_rffpcnex_flags_timeout , & hf_rffpcnex_flags_delete_driver , & hf_rffpcnex_flags_set_driver , & hf_rffpcnex_flags_add_driver , & hf_rffpcnex_flags_delete_print_processor , & hf_rffpcnex_flags_add_print_processor , & hf_rffpcnex_flags_delete_port , & hf_rffpcnex_flags_configure_port , & hf_rffpcnex_flags_add_port , & hf_rffpcnex_flags_delete_form , & hf_rffpcnex_flags_set_form , & hf_rffpcnex_flags_add_form , & hf_rffpcnex_flags_write_job , & hf_rffpcnex_flags_delete_job , & hf_rffpcnex_flags_set_job , & hf_rffpcnex_flags_add_job , & hf_rffpcnex_flags_failed_printer_connection , & hf_rffpcnex_flags_delete_printer , & hf_rffpcnex_flags_set_printer , & hf_rffpcnex_flags_add_printer , NULL }\n ;\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , NULL , NULL , FALSE , FALSE ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , NULL , di , drep , - 1 , & flags ) ;\n proto_tree_add_bitmask_value ( tree , tvb , offset - 4 , hf_rffpcnex_flags , ett_rffpcnex_flags , hf_flags , flags ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_rffpcnex_options , NULL ) ;\n offset = dissect_ndr_str_pointer_item ( tvb , offset , pinfo , tree , di , drep , NDR_POINTER_UNIQUE , \"Server\" , hf_servername , 0 ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_printerlocal , NULL ) ;\n offset = dissect_ndr_pointer ( tvb , offset , pinfo , tree , di , drep , dissect_NOTIFY_OPTIONS_ARRAY_CTR , NDR_POINTER_UNIQUE , \"Notify Options Container\" , - 1 ) ;\n return offset ;\n }"}
{"idx": 10226, "target": 0, "func": "static void e1000e_update_rx_offloads ( E1000ECore * core ) {\n int cso_state = e1000e_rx_l4_cso_enabled ( core ) ;\n trace_e1000e_rx_set_cso ( cso_state ) ;\n if ( core -> has_vnet ) {\n qemu_set_offload ( qemu_get_queue ( core -> owner_nic ) -> peer , cso_state , 0 , 0 , 0 , 0 ) ;\n }\n }"}
{"idx": 10227, "target": 0, "func": "static void update_mb_info ( MpegEncContext * s , int startcode ) {\n if ( ! s -> mb_info ) return ;\n if ( put_bits_count ( & s -> pb ) - s -> prev_mb_info * 8 >= s -> mb_info * 8 ) {\n s -> mb_info_size += 12 ;\n s -> prev_mb_info = s -> last_mb_info ;\n }\n if ( startcode ) {\n s -> prev_mb_info = put_bits_count ( & s -> pb ) / 8 ;\n return ;\n }\n s -> last_mb_info = put_bits_count ( & s -> pb ) / 8 ;\n if ( ! s -> mb_info_size ) s -> mb_info_size += 12 ;\n write_mb_info ( s ) ;\n }"}
{"idx": 10228, "target": 0, "func": "static void adapt_coef_probs ( VP9_COMMON * cm , TX_SIZE tx_size , unsigned int count_sat , unsigned int update_factor ) {\n const FRAME_CONTEXT * pre_fc = & cm -> frame_contexts [ cm -> frame_context_idx ] ;\n vp9_coeff_probs_model * const probs = cm -> fc . coef_probs [ tx_size ] ;\n const vp9_coeff_probs_model * const pre_probs = pre_fc -> coef_probs [ tx_size ] ;\n vp9_coeff_count_model * counts = cm -> counts . coef [ tx_size ] ;\n unsigned int ( * eob_counts ) [ REF_TYPES ] [ COEF_BANDS ] [ COEFF_CONTEXTS ] = cm -> counts . eob_branch [ tx_size ] ;\n int i , j , k , l , m ;\n for ( i = 0 ;\n i < PLANE_TYPES ;\n ++ i ) for ( j = 0 ;\n j < REF_TYPES ;\n ++ j ) for ( k = 0 ;\n k < COEF_BANDS ;\n ++ k ) for ( l = 0 ;\n l < BAND_COEFF_CONTEXTS ( k ) ;\n ++ l ) {\n const int n0 = counts [ i ] [ j ] [ k ] [ l ] [ ZERO_TOKEN ] ;\n const int n1 = counts [ i ] [ j ] [ k ] [ l ] [ ONE_TOKEN ] ;\n const int n2 = counts [ i ] [ j ] [ k ] [ l ] [ TWO_TOKEN ] ;\n const int neob = counts [ i ] [ j ] [ k ] [ l ] [ EOB_MODEL_TOKEN ] ;\n const unsigned int branch_ct [ UNCONSTRAINED_NODES ] [ 2 ] = {\n {\n neob , eob_counts [ i ] [ j ] [ k ] [ l ] - neob }\n , {\n n0 , n1 + n2 }\n , {\n n1 , n2 }\n }\n ;\n for ( m = 0 ;\n m < UNCONSTRAINED_NODES ;\n ++ m ) probs [ i ] [ j ] [ k ] [ l ] [ m ] = merge_probs ( pre_probs [ i ] [ j ] [ k ] [ l ] [ m ] , branch_ct [ m ] , count_sat , update_factor ) ;\n }\n }"}
{"idx": 10229, "target": 0, "func": "struct block * compiler_add_instr ( struct instruction * ins , struct block * blk ) {\n struct block * bl ;\n SAFE_CALLOC ( bl , 1 , sizeof ( struct block ) ) ;\n bl -> type = BLK_INSTR ;\n bl -> un . ins = ins ;\n bl -> next = blk ;\n return bl ;\n }"}
{"idx": 10230, "target": 0, "func": "SPL_METHOD ( SplFileObject , func_name ) \\ {\n \\ spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n \\ FileFunctionCall ( func_name , ZEND_NUM_ARGS ( ) , NULL ) ;\n \\ }\n SPL_METHOD ( SplFileObject , fgetcsv ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char delimiter = intern -> u . file . delimiter , enclosure = intern -> u . file . enclosure , escape = intern -> u . file . escape ;\n char * delim = NULL , * enclo = NULL , * esc = NULL ;\n int d_len = 0 , e_len = 0 , esc_len = 0 ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"|sss\" , & delim , & d_len , & enclo , & e_len , & esc , & esc_len ) == SUCCESS ) {\n switch ( ZEND_NUM_ARGS ( ) ) {\n case 3 : if ( esc_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"escape must be a character\" ) ;\n RETURN_FALSE ;\n }\n escape = esc [ 0 ] ;\n case 2 : if ( e_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"enclosure must be a character\" ) ;\n RETURN_FALSE ;\n }\n enclosure = enclo [ 0 ] ;\n case 1 : if ( d_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"delimiter must be a character\" ) ;\n RETURN_FALSE ;\n }\n delimiter = delim [ 0 ] ;\n case 0 : break ;\n }\n spl_filesystem_file_read_csv ( intern , delimiter , enclosure , escape , return_value TSRMLS_CC ) ;\n }\n }\n SPL_METHOD ( SplFileObject , fputcsv ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char delimiter = intern -> u . file . delimiter , enclosure = intern -> u . file . enclosure , escape = intern -> u . file . escape ;\n char * delim = NULL , * enclo = NULL , * esc = NULL ;\n int d_len = 0 , e_len = 0 , esc_len = 0 , ret ;\n zval * fields = NULL ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"a|sss\" , & fields , & delim , & d_len , & enclo , & e_len , & esc , & esc_len ) == SUCCESS ) {\n switch ( ZEND_NUM_ARGS ( ) ) {\n case 4 : if ( esc_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"escape must be a character\" ) ;\n RETURN_FALSE ;\n }\n escape = esc [ 0 ] ;\n case 3 : if ( e_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"enclosure must be a character\" ) ;\n RETURN_FALSE ;\n }\n enclosure = enclo [ 0 ] ;\n case 2 : if ( d_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"delimiter must be a character\" ) ;\n RETURN_FALSE ;\n }\n delimiter = delim [ 0 ] ;\n case 1 : case 0 : break ;\n }\n ret = php_fputcsv ( intern -> u . file . stream , fields , delimiter , enclosure , escape TSRMLS_CC ) ;\n RETURN_LONG ( ret ) ;\n }\n }\n SPL_METHOD ( SplFileObject , setCsvControl ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char delimiter = ',' , enclosure = '\"' , escape = '\\\\' ;\n char * delim = NULL , * enclo = NULL , * esc = NULL ;\n int d_len = 0 , e_len = 0 , esc_len = 0 ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"|sss\" , & delim , & d_len , & enclo , & e_len , & esc , & esc_len ) == SUCCESS ) {\n switch ( ZEND_NUM_ARGS ( ) ) {\n case 3 : if ( esc_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"escape must be a character\" ) ;\n RETURN_FALSE ;\n }\n escape = esc [ 0 ] ;\n case 2 : if ( e_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"enclosure must be a character\" ) ;\n RETURN_FALSE ;\n }\n enclosure = enclo [ 0 ] ;\n case 1 : if ( d_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"delimiter must be a character\" ) ;\n RETURN_FALSE ;\n }\n delimiter = delim [ 0 ] ;\n case 0 : break ;\n }\n intern -> u . file . delimiter = delimiter ;\n intern -> u . file . enclosure = enclosure ;\n intern -> u . file . escape = escape ;\n }\n }\n SPL_METHOD ( SplFileObject , getCsvControl ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char delimiter [ 2 ] , enclosure [ 2 ] ;\n array_init ( return_value ) ;\n delimiter [ 0 ] = intern -> u . file . delimiter ;\n delimiter [ 1 ] = '\\0' ;\n enclosure [ 0 ] = intern -> u . file . enclosure ;\n enclosure [ 1 ] = '\\0' ;\n add_next_index_string ( return_value , delimiter , 1 ) ;\n add_next_index_string ( return_value , enclosure , 1 ) ;\n }\n FileFunction ( flock ) SPL_METHOD ( SplFileObject , fflush ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n RETURN_BOOL ( ! php_stream_flush ( intern -> u . file . stream ) ) ;\n }\n SPL_METHOD ( SplFileObject , ftell ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n long ret = php_stream_tell ( intern -> u . file . stream ) ;\n if ( ret == - 1 ) {\n RETURN_FALSE ;\n }\n else {\n RETURN_LONG ( ret ) ;\n }\n }\n SPL_METHOD ( SplFileObject , fseek ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n long pos , whence = SEEK_SET ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"l|l\" , & pos , & whence ) == FAILURE ) {\n return ;\n }\n spl_filesystem_file_free_line ( intern TSRMLS_CC ) ;\n RETURN_LONG ( php_stream_seek ( intern -> u . file . stream , pos , whence ) ) ;\n }\n SPL_METHOD ( SplFileObject , fgetc ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char buf [ 2 ] ;\n int result ;\n spl_filesystem_file_free_line ( intern TSRMLS_CC ) ;\n result = php_stream_getc ( intern -> u . file . stream ) ;\n if ( result == EOF ) {\n RETVAL_FALSE ;\n }\n else {\n if ( result == '\\n' ) {\n intern -> u . file . current_line_num ++ ;\n }\n buf [ 0 ] = result ;\n buf [ 1 ] = '\\0' ;\n RETURN_STRINGL ( buf , 1 , 1 ) ;\n }\n }\n SPL_METHOD ( SplFileObject , fgetss ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n zval * arg2 = NULL ;\n MAKE_STD_ZVAL ( arg2 ) ;\n if ( intern -> u . file . max_line_len > 0 ) {\n ZVAL_LONG ( arg2 , intern -> u . file . max_line_len ) ;\n }\n else {\n ZVAL_LONG ( arg2 , 1024 ) ;\n }\n spl_filesystem_file_free_line ( intern TSRMLS_CC ) ;\n intern -> u . file . current_line_num ++ ;\n FileFunctionCall ( fgetss , ZEND_NUM_ARGS ( ) , arg2 ) ;\n zval_ptr_dtor ( & arg2 ) ;\n }\n SPL_METHOD ( SplFileObject , fpassthru ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n RETURN_LONG ( php_stream_passthru ( intern -> u . file . stream ) ) ;\n }\n SPL_METHOD ( SplFileObject , fscanf ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n spl_filesystem_file_free_line ( intern TSRMLS_CC ) ;\n intern -> u . file . current_line_num ++ ;\n FileFunctionCall ( fscanf , ZEND_NUM_ARGS ( ) , NULL ) ;\n }\n SPL_METHOD ( SplFileObject , fwrite ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char * str ;\n int str_len ;\n long length = 0 ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"s|l\" , & str , & str_len , & length ) == FAILURE ) {\n return ;\n }\n if ( ZEND_NUM_ARGS ( ) > 1 ) {\n str_len = MAX ( 0 , MIN ( length , str_len ) ) ;\n }\n if ( ! str_len ) {\n RETURN_LONG ( 0 ) ;\n }\n RETURN_LONG ( php_stream_write ( intern -> u . file . stream , str , str_len ) ) ;\n }\n SPL_METHOD ( SplFileObject , fread ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n long length = 0 ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"l\" , & length ) == FAILURE ) {\n return ;\n }\n if ( length <= 0 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"Length parameter must be greater than 0\" ) ;\n RETURN_FALSE ;\n }\n if ( length > INT_MAX ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"Length parameter must be no more than %d\" , INT_MAX ) ;\n RETURN_FALSE ;\n }\n Z_STRVAL_P ( return_value ) = emalloc ( length + 1 ) ;\n Z_STRLEN_P ( return_value ) = php_stream_read ( intern -> u . file . stream , Z_STRVAL_P ( return_value ) , length ) ;\n Z_STRVAL_P ( return_value ) [ Z_STRLEN_P ( return_value ) ] = 0 ;\n Z_TYPE_P ( return_value ) = IS_STRING ;\n }\n FileFunction ( fstat )"}
{"idx": 10231, "target": 0, "func": "static void test_bug5126 ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND my_bind [ 2 ] ;\n int32 c1 , c2 ;\n const char * stmt_text ;\n int rc ;\n myheader ( \"test_bug5126\" ) ;\n stmt_text = \"DROP TABLE IF EXISTS t1\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt_text = \"CREATE TABLE t1 (a mediumint, b int)\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt_text = \"INSERT INTO t1 VALUES (8386608, 1)\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n stmt_text = \"SELECT a, b FROM t1\" ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 0 ] . buffer = & c1 ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 1 ] . buffer = & c2 ;\n mysql_stmt_bind_result ( stmt , my_bind ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == 0 ) ;\n DIE_UNLESS ( c1 == 8386608 && c2 == 1 ) ;\n if ( ! opt_silent ) printf ( \"%ld, %ld\\n\" , ( long ) c1 , ( long ) c2 ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 10232, "target": 0, "func": "void proto_reg_handoff_ber ( void ) {\n guint i = 1 ;\n oid_add_from_string ( \"asn1\" , \"2.1\" ) ;\n oid_add_from_string ( \"basic-encoding\" , \"2.1.1\" ) ;\n dissector_add_uint ( \"wtap_encap\" , WTAP_ENCAP_BER , ber_handle ) ;\n ber_decode_as_foreach ( ber_add_syntax_name , & i ) ;\n if ( i > 1 ) qsort ( & syntax_names [ 1 ] , i - 1 , sizeof ( value_string ) , cmp_value_string ) ;\n syntax_names [ i ] . value = 0 ;\n syntax_names [ i ] . strptr = NULL ;\n dissector_add_for_decode_as ( \"tcp.port\" , ber_handle ) ;\n ber_update_oids ( ) ;\n }"}
{"idx": 10233, "target": 1, "func": "static ossl_inline int sk_ ## t1 ## _reserve ( STACK_OF ( t1 ) * sk , int n ) {\n return OPENSSL_sk_reserve ( ( OPENSSL_STACK * ) sk , n ) ;\n }\n static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 10234, "target": 0, "func": "static int zisofs_free ( struct archive_write * a ) {\n ( void ) a ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 10235, "target": 0, "func": "static void ImportRGBQuantum ( const Image * image , QuantumInfo * quantum_info , const MagickSizeType number_pixels , const unsigned char * magick_restrict p , Quantum * magick_restrict q , ExceptionInfo * exception ) {\n QuantumAny range ;\n register ssize_t x ;\n ssize_t bit ;\n unsigned int pixel ;\n assert ( image != ( Image * ) NULL ) ;\n assert ( image -> signature == MagickCoreSignature ) ;\n switch ( quantum_info -> depth ) {\n case 8 : {\n unsigned char pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelRed ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelGreen ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelBlue ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n SetPixelAlpha ( image , OpaqueAlpha , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 10 : {\n range = GetQuantumRange ( quantum_info -> depth ) ;\n if ( quantum_info -> pack == MagickFalse ) {\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelRed ( image , ScaleAnyToQuantum ( ( pixel >> 22 ) & 0x3ff , range ) , q ) ;\n SetPixelGreen ( image , ScaleAnyToQuantum ( ( pixel >> 12 ) & 0x3ff , range ) , q ) ;\n SetPixelBlue ( image , ScaleAnyToQuantum ( ( pixel >> 2 ) & 0x3ff , range ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n if ( quantum_info -> quantum == 32U ) {\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumLongPixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumLongPixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumLongPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 12 : {\n range = GetQuantumRange ( quantum_info -> depth ) ;\n if ( quantum_info -> pack == MagickFalse ) {\n unsigned short pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) ( 3 * number_pixels - 1 ) ;\n x += 2 ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n switch ( x % 3 ) {\n default : case 0 : {\n SetPixelRed ( image , ScaleAnyToQuantum ( ( QuantumAny ) ( pixel >> 4 ) , range ) , q ) ;\n break ;\n }\n case 1 : {\n SetPixelGreen ( image , ScaleAnyToQuantum ( ( QuantumAny ) ( pixel >> 4 ) , range ) , q ) ;\n break ;\n }\n case 2 : {\n SetPixelBlue ( image , ScaleAnyToQuantum ( ( QuantumAny ) ( pixel >> 4 ) , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n break ;\n }\n }\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n switch ( ( x + 1 ) % 3 ) {\n default : case 0 : {\n SetPixelRed ( image , ScaleAnyToQuantum ( ( QuantumAny ) ( pixel >> 4 ) , range ) , q ) ;\n break ;\n }\n case 1 : {\n SetPixelGreen ( image , ScaleAnyToQuantum ( ( QuantumAny ) ( pixel >> 4 ) , range ) , q ) ;\n break ;\n }\n case 2 : {\n SetPixelBlue ( image , ScaleAnyToQuantum ( ( QuantumAny ) ( pixel >> 4 ) , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n break ;\n }\n }\n p += quantum_info -> pad ;\n }\n for ( bit = 0 ;\n bit < ( ssize_t ) ( 3 * number_pixels % 2 ) ;\n bit ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n switch ( ( x + bit ) % 3 ) {\n default : case 0 : {\n SetPixelRed ( image , ScaleAnyToQuantum ( ( QuantumAny ) ( pixel >> 4 ) , range ) , q ) ;\n break ;\n }\n case 1 : {\n SetPixelGreen ( image , ScaleAnyToQuantum ( ( QuantumAny ) ( pixel >> 4 ) , range ) , q ) ;\n break ;\n }\n case 2 : {\n SetPixelBlue ( image , ScaleAnyToQuantum ( ( QuantumAny ) ( pixel >> 4 ) , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n break ;\n }\n }\n p += quantum_info -> pad ;\n }\n if ( bit != 0 ) p ++ ;\n break ;\n }\n if ( quantum_info -> quantum == 32U ) {\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumLongPixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumLongPixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumLongPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 16 : {\n unsigned short pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelRed ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGreen ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlue ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelRed ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGreen ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlue ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 32 : {\n unsigned int pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n float pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ClampToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelRed ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGreen ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlue ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 64 : {\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n double pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ClampToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n default : {\n range = GetQuantumRange ( quantum_info -> depth ) ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n }"}
{"idx": 10236, "target": 0, "func": "static __inline__ __u32 tipc_addr ( unsigned int zone , unsigned int cluster , unsigned int node ) {\n return ( zone << TIPC_ZONE_OFFSET ) | ( cluster << TIPC_CLUSTER_OFFSET ) | node ;\n }"}
{"idx": 10237, "target": 1, "func": "void vp9_iht4x4_16_add_c ( const int16_t * input , uint8_t * dest , int stride , int tx_type ) {\n const transform_2d IHT_4 [ ] = {\n {\n idct4 , idct4 }\n , {\n iadst4 , idct4 }\n , {\n idct4 , iadst4 }\n , {\n iadst4 , iadst4 }\n }\n ;\n int i , j ;\n int16_t out [ 4 * 4 ] ;\n int16_t * outptr = out ;\n int16_t temp_in [ 4 ] , temp_out [ 4 ] ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) {\n IHT_4 [ tx_type ] . rows ( input , outptr ) ;\n input += 4 ;\n outptr += 4 ;\n }\n for ( i = 0 ;\n i < 4 ;\n ++ i ) {\n for ( j = 0 ;\n j < 4 ;\n ++ j ) temp_in [ j ] = out [ j * 4 + i ] ;\n IHT_4 [ tx_type ] . cols ( temp_in , temp_out ) ;\n for ( j = 0 ;\n j < 4 ;\n ++ j ) dest [ j * stride + i ] = clip_pixel ( ROUND_POWER_OF_TWO ( temp_out [ j ] , 4 ) + dest [ j * stride + i ] ) ;\n }\n }"}
{"idx": 10238, "target": 0, "func": "static int selinux_inode_notifysecctx ( struct inode * inode , void * ctx , u32 ctxlen ) {\n return selinux_inode_setsecurity ( inode , XATTR_SELINUX_SUFFIX , ctx , ctxlen , 0 ) ;\n }"}
{"idx": 10239, "target": 0, "func": "static inline int sgn ( int value ) {\n return ( value < 0 ) ? - 1 : 1 ;\n }"}
{"idx": 10240, "target": 0, "func": "VirtIOS390Device * s390_virtio_bus_find_vring ( VirtIOS390Bus * bus , ram_addr_t mem , int * vq_num ) {\n VirtIOS390Device * _dev ;\n DeviceState * dev ;\n int i ;\n QLIST_FOREACH ( dev , & bus -> bus . children , sibling ) {\n _dev = ( VirtIOS390Device * ) dev ;\n for ( i = 0 ;\n i < VIRTIO_PCI_QUEUE_MAX ;\n i ++ ) {\n if ( ! virtio_queue_get_addr ( _dev -> vdev , i ) ) break ;\n if ( virtio_queue_get_addr ( _dev -> vdev , i ) == mem ) {\n if ( vq_num ) {\n * vq_num = i ;\n }\n return _dev ;\n }\n }\n }\n return NULL ;\n }"}
{"idx": 10241, "target": 0, "func": "static gboolean istr_equal ( gconstpointer v , gconstpointer v2 ) {\n return g_ascii_strcasecmp ( v , v2 ) == 0 ;\n }"}
{"idx": 10242, "target": 0, "func": "static void tcg_signal_cpu_creation ( CPUState * cpu , void * data ) {\n cpu -> thread_id = qemu_get_thread_id ( ) ;\n cpu -> created = true ;\n }"}
{"idx": 10243, "target": 0, "func": "static int selinux_inode_getsecurity ( struct inode * inode , const char * name , void * * buffer , bool alloc ) {\n u32 size ;\n int error ;\n char * context = NULL ;\n struct inode_security_struct * isec ;\n if ( strcmp ( name , XATTR_SELINUX_SUFFIX ) ) return - EOPNOTSUPP ;\n error = cap_capable ( current_cred ( ) , & init_user_ns , CAP_MAC_ADMIN , SECURITY_CAP_NOAUDIT ) ;\n if ( ! error ) error = cred_has_capability ( current_cred ( ) , CAP_MAC_ADMIN , SECURITY_CAP_NOAUDIT , true ) ;\n isec = inode_security ( inode ) ;\n if ( ! error ) error = security_sid_to_context_force ( isec -> sid , & context , & size ) ;\n else error = security_sid_to_context ( isec -> sid , & context , & size ) ;\n if ( error ) return error ;\n error = size ;\n if ( alloc ) {\n * buffer = context ;\n goto out_nofree ;\n }\n kfree ( context ) ;\n out_nofree : return error ;\n }"}
{"idx": 10244, "target": 0, "func": "int ff_h264_handle_frag_packet ( AVPacket * pkt , const uint8_t * buf , int len , int start_bit , const uint8_t * nal_header , int nal_header_len ) {\n int ret ;\n int tot_len = len ;\n int pos = 0 ;\n if ( start_bit ) tot_len += sizeof ( start_sequence ) + nal_header_len ;\n if ( ( ret = av_new_packet ( pkt , tot_len ) ) < 0 ) return ret ;\n if ( start_bit ) {\n memcpy ( pkt -> data + pos , start_sequence , sizeof ( start_sequence ) ) ;\n pos += sizeof ( start_sequence ) ;\n memcpy ( pkt -> data + pos , nal_header , nal_header_len ) ;\n pos += nal_header_len ;\n }\n memcpy ( pkt -> data + pos , buf , len ) ;\n return 0 ;\n }"}
{"idx": 10245, "target": 0, "func": "static int dissect_t38_T_fec_data ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_t38_T_fec_data , T_fec_data_sequence_of ) ;\n return offset ;\n }"}
{"idx": 10246, "target": 0, "func": "static void clean_up_mutexes ( ) {\n DBUG_ENTER ( \"clean_up_mutexes\" ) ;\n mysql_rwlock_destroy ( & LOCK_grant ) ;\n mysql_mutex_destroy ( & LOCK_thread_count ) ;\n mysql_mutex_destroy ( & LOCK_status ) ;\n mysql_mutex_destroy ( & LOCK_delayed_insert ) ;\n mysql_mutex_destroy ( & LOCK_delayed_status ) ;\n mysql_mutex_destroy ( & LOCK_delayed_create ) ;\n mysql_mutex_destroy ( & LOCK_crypt ) ;\n mysql_mutex_destroy ( & LOCK_user_conn ) ;\n mysql_mutex_destroy ( & LOCK_connection_count ) ;\n mysql_mutex_destroy ( & LOCK_stats ) ;\n mysql_mutex_destroy ( & LOCK_global_user_client_stats ) ;\n mysql_mutex_destroy ( & LOCK_global_table_stats ) ;\n mysql_mutex_destroy ( & LOCK_global_index_stats ) ;\n # ifdef HAVE_OPENSSL mysql_mutex_destroy ( & LOCK_des_key_file ) ;\n # ifndef HAVE_YASSL for ( int i = 0 ;\n i < CRYPTO_num_locks ( ) ;\n ++ i ) mysql_rwlock_destroy ( & openssl_stdlocks [ i ] . lock ) ;\n OPENSSL_free ( openssl_stdlocks ) ;\n # endif # endif # ifdef HAVE_REPLICATION mysql_mutex_destroy ( & LOCK_rpl_status ) ;\n mysql_cond_destroy ( & COND_rpl_status ) ;\n # endif mysql_mutex_destroy ( & LOCK_active_mi ) ;\n mysql_rwlock_destroy ( & LOCK_sys_init_connect ) ;\n mysql_rwlock_destroy ( & LOCK_sys_init_slave ) ;\n mysql_mutex_destroy ( & LOCK_global_system_variables ) ;\n mysql_rwlock_destroy ( & LOCK_system_variables_hash ) ;\n mysql_mutex_destroy ( & LOCK_short_uuid_generator ) ;\n mysql_mutex_destroy ( & LOCK_prepared_stmt_count ) ;\n mysql_mutex_destroy ( & LOCK_error_messages ) ;\n mysql_cond_destroy ( & COND_thread_count ) ;\n mysql_cond_destroy ( & COND_thread_cache ) ;\n mysql_cond_destroy ( & COND_flush_thread_cache ) ;\n mysql_mutex_destroy ( & LOCK_server_started ) ;\n mysql_cond_destroy ( & COND_server_started ) ;\n mysql_mutex_destroy ( & LOCK_prepare_ordered ) ;\n mysql_mutex_destroy ( & LOCK_commit_ordered ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 10247, "target": 0, "func": "void auth_server_connection_deinit ( struct auth_server_connection * * _conn ) {\n struct auth_server_connection * conn = * _conn ;\n * _conn = NULL ;\n auth_server_connection_disconnect ( conn , \"deinitializing\" ) ;\n i_assert ( hash_table_count ( conn -> requests ) == 0 ) ;\n hash_table_destroy ( & conn -> requests ) ;\n array_free ( & conn -> available_auth_mechs ) ;\n pool_unref ( & conn -> pool ) ;\n }"}
{"idx": 10248, "target": 0, "func": "static inline hwaddr prep_IO_address ( sysctrl_t * sysctrl , hwaddr addr ) {\n if ( sysctrl -> contiguous_map == 0 ) {\n addr &= 0xFFFF ;\n }\n else {\n addr = ( addr & 0x1F ) | ( ( addr & 0x007FFF000 ) >> 7 ) ;\n }\n return addr ;\n }"}
{"idx": 10249, "target": 0, "func": "apr_status_t xml_cleanup ( modsec_rec * msr ) {\n if ( msr -> xml -> doc != NULL ) {\n xmlFreeDoc ( msr -> xml -> doc ) ;\n msr -> xml -> doc = NULL ;\n }\n return 1 ;\n }"}
{"idx": 10250, "target": 1, "func": "static PGconn * connectDatabase ( const char * dbname , const char * connection_string , const char * pghost , const char * pgport , const char * pguser , trivalue prompt_password , bool fail_on_error ) {\n PGconn * conn ;\n bool new_pass ;\n const char * remoteversion_str ;\n int my_version ;\n static char * password = NULL ;\n const char * * keywords = NULL ;\n const char * * values = NULL ;\n PQconninfoOption * conn_opts = NULL ;\n if ( prompt_password == TRI_YES && ! password ) password = simple_prompt ( \"Password: \" , 100 , false ) ;\n do {\n int argcount = 6 ;\n PQconninfoOption * conn_opt ;\n char * err_msg = NULL ;\n int i = 0 ;\n if ( keywords ) free ( keywords ) ;\n if ( values ) free ( values ) ;\n if ( conn_opts ) PQconninfoFree ( conn_opts ) ;\n if ( connection_string ) {\n conn_opts = PQconninfoParse ( connection_string , & err_msg ) ;\n if ( conn_opts == NULL ) {\n fprintf ( stderr , \"%s: %s\" , progname , err_msg ) ;\n exit_nicely ( 1 ) ;\n }\n for ( conn_opt = conn_opts ;\n conn_opt -> keyword != NULL ;\n conn_opt ++ ) {\n if ( conn_opt -> val != NULL && conn_opt -> val [ 0 ] != '\\0' ) argcount ++ ;\n }\n keywords = pg_malloc0 ( ( argcount + 1 ) * sizeof ( * keywords ) ) ;\n values = pg_malloc0 ( ( argcount + 1 ) * sizeof ( * values ) ) ;\n for ( conn_opt = conn_opts ;\n conn_opt -> keyword != NULL ;\n conn_opt ++ ) {\n if ( conn_opt -> val != NULL && conn_opt -> val [ 0 ] != '\\0' ) {\n keywords [ i ] = conn_opt -> keyword ;\n values [ i ] = conn_opt -> val ;\n i ++ ;\n }\n }\n }\n else {\n keywords = pg_malloc0 ( ( argcount + 1 ) * sizeof ( * keywords ) ) ;\n values = pg_malloc0 ( ( argcount + 1 ) * sizeof ( * values ) ) ;\n }\n if ( pghost ) {\n keywords [ i ] = \"host\" ;\n values [ i ] = pghost ;\n i ++ ;\n }\n if ( pgport ) {\n keywords [ i ] = \"port\" ;\n values [ i ] = pgport ;\n i ++ ;\n }\n if ( pguser ) {\n keywords [ i ] = \"user\" ;\n values [ i ] = pguser ;\n i ++ ;\n }\n if ( password ) {\n keywords [ i ] = \"password\" ;\n values [ i ] = password ;\n i ++ ;\n }\n if ( dbname ) {\n keywords [ i ] = \"dbname\" ;\n values [ i ] = dbname ;\n i ++ ;\n }\n keywords [ i ] = \"fallback_application_name\" ;\n values [ i ] = progname ;\n i ++ ;\n new_pass = false ;\n conn = PQconnectdbParams ( keywords , values , true ) ;\n if ( ! conn ) {\n fprintf ( stderr , _ ( \"%s: could not connect to database \\\"%s\\\"\\n\" ) , progname , dbname ) ;\n exit_nicely ( 1 ) ;\n }\n if ( PQstatus ( conn ) == CONNECTION_BAD && PQconnectionNeedsPassword ( conn ) && password == NULL && prompt_password != TRI_NO ) {\n PQfinish ( conn ) ;\n password = simple_prompt ( \"Password: \" , 100 , false ) ;\n new_pass = true ;\n }\n }\n while ( new_pass ) ;\n if ( PQstatus ( conn ) == CONNECTION_BAD ) {\n if ( fail_on_error ) {\n fprintf ( stderr , _ ( \"%s: could not connect to database \\\"%s\\\": %s\\n\" ) , progname , dbname , PQerrorMessage ( conn ) ) ;\n exit_nicely ( 1 ) ;\n }\n else {\n PQfinish ( conn ) ;\n free ( keywords ) ;\n free ( values ) ;\n PQconninfoFree ( conn_opts ) ;\n return NULL ;\n }\n }\n connstr = constructConnStr ( keywords , values ) ;\n free ( keywords ) ;\n free ( values ) ;\n PQconninfoFree ( conn_opts ) ;\n remoteversion_str = PQparameterStatus ( conn , \"server_version\" ) ;\n if ( ! remoteversion_str ) {\n fprintf ( stderr , _ ( \"%s: could not get server version\\n\" ) , progname ) ;\n exit_nicely ( 1 ) ;\n }\n server_version = PQserverVersion ( conn ) ;\n if ( server_version == 0 ) {\n fprintf ( stderr , _ ( \"%s: could not parse server version \\\"%s\\\"\\n\" ) , progname , remoteversion_str ) ;\n exit_nicely ( 1 ) ;\n }\n my_version = PG_VERSION_NUM ;\n if ( my_version != server_version && ( server_version < 70000 || ( server_version / 100 ) > ( my_version / 100 ) ) ) {\n fprintf ( stderr , _ ( \"server version: %s;\n %s version: %s\\n\" ) , remoteversion_str , progname , PG_VERSION ) ;\n fprintf ( stderr , _ ( \"aborting because of server version mismatch\\n\" ) ) ;\n exit_nicely ( 1 ) ;\n }\n if ( server_version >= 70300 ) executeCommand ( conn , \"SET search_path = pg_catalog\" ) ;\n return conn ;\n }"}
{"idx": 10251, "target": 1, "func": "static void sbr_reset ( AACContext * ac , SpectralBandReplication * sbr ) {\n int err ;\n err = sbr_make_f_master ( ac , sbr , & sbr -> spectrum_params ) ;\n if ( err >= 0 ) err = sbr_make_f_derived ( ac , sbr ) ;\n if ( err < 0 ) {\n av_log ( ac -> avctx , AV_LOG_ERROR , \"SBR reset failed. Switching SBR to pure upsampling mode.\\n\" ) ;\n sbr_turnoff ( sbr ) ;\n }\n }"}
{"idx": 10252, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( VirtualKeyboardBrowserTest , HideKeyboardKeyTest ) {\n RunTest ( base : : FilePath ( FILE_PATH_LITERAL ( \"hide_keyboard_key_test.js\" ) ) ) ;\n }"}
{"idx": 10253, "target": 0, "func": "int ECDSA_verify ( int type , const unsigned char * dgst , int dgst_len , const unsigned char * sigbuf , int sig_len , EC_KEY * eckey ) {\n ECDSA_SIG * s ;\n const unsigned char * p = sigbuf ;\n unsigned char * der = NULL ;\n int derlen = - 1 ;\n int ret = - 1 ;\n s = ECDSA_SIG_new ( ) ;\n if ( s == NULL ) return ( ret ) ;\n if ( d2i_ECDSA_SIG ( & s , & p , sig_len ) == NULL ) goto err ;\n derlen = i2d_ECDSA_SIG ( s , & der ) ;\n if ( derlen != sig_len || memcmp ( sigbuf , der , derlen ) ) goto err ;\n ret = ECDSA_do_verify ( dgst , dgst_len , s , eckey ) ;\n err : if ( derlen > 0 ) {\n OPENSSL_cleanse ( der , derlen ) ;\n OPENSSL_free ( der ) ;\n }\n ECDSA_SIG_free ( s ) ;\n return ( ret ) ;\n }"}
{"idx": 10254, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , TestMostRecentHandlerIsDefault ) {\n ProtocolHandler ph1 = CreateProtocolHandler ( \"test\" , \"test1\" ) ;\n ProtocolHandler ph2 = CreateProtocolHandler ( \"test\" , \"test2\" ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph2 ) ;\n ASSERT_FALSE ( registry ( ) -> IsDefault ( ph1 ) ) ;\n ASSERT_TRUE ( registry ( ) -> IsDefault ( ph2 ) ) ;\n }"}
{"idx": 10255, "target": 0, "func": "static void kill_server ( char * prefix , char * pid_file ) {\n char * path = NULL ;\n int pid , path_size = strlen ( prefix ) + strlen ( pid_file ) + 2 ;\n path = ss_malloc ( path_size ) ;\n snprintf ( path , path_size , \"%s/%s\" , prefix , pid_file ) ;\n FILE * f = fopen ( path , \"r\" ) ;\n if ( f == NULL ) {\n if ( verbose ) {\n LOGE ( \"unable to open pid file\" ) ;\n }\n ss_free ( path ) ;\n return ;\n }\n if ( fscanf ( f , \"%d\" , & pid ) != EOF ) {\n kill ( pid , SIGTERM ) ;\n }\n fclose ( f ) ;\n remove ( path ) ;\n ss_free ( path ) ;\n }"}
{"idx": 10256, "target": 0, "func": "static void qtrle_decode_24bpp ( QtrleContext * s , int row_ptr , int lines_to_change ) {\n int rle_code ;\n int pixel_ptr ;\n int row_inc = s -> frame . linesize [ 0 ] ;\n unsigned char r , g , b ;\n unsigned char * rgb = s -> frame . data [ 0 ] ;\n int pixel_limit = s -> frame . linesize [ 0 ] * s -> avctx -> height ;\n while ( lines_to_change -- ) {\n pixel_ptr = row_ptr + ( bytestream2_get_byte ( & s -> g ) - 1 ) * 3 ;\n CHECK_PIXEL_PTR ( 0 ) ;\n while ( ( rle_code = ( signed char ) bytestream2_get_byte ( & s -> g ) ) != - 1 ) {\n if ( rle_code == 0 ) {\n pixel_ptr += ( bytestream2_get_byte ( & s -> g ) - 1 ) * 3 ;\n CHECK_PIXEL_PTR ( 0 ) ;\n }\n else if ( rle_code < 0 ) {\n rle_code = - rle_code ;\n r = bytestream2_get_byte ( & s -> g ) ;\n g = bytestream2_get_byte ( & s -> g ) ;\n b = bytestream2_get_byte ( & s -> g ) ;\n CHECK_PIXEL_PTR ( rle_code * 3 ) ;\n while ( rle_code -- ) {\n rgb [ pixel_ptr ++ ] = r ;\n rgb [ pixel_ptr ++ ] = g ;\n rgb [ pixel_ptr ++ ] = b ;\n }\n }\n else {\n CHECK_PIXEL_PTR ( rle_code * 3 ) ;\n while ( rle_code -- ) {\n rgb [ pixel_ptr ++ ] = bytestream2_get_byte ( & s -> g ) ;\n rgb [ pixel_ptr ++ ] = bytestream2_get_byte ( & s -> g ) ;\n rgb [ pixel_ptr ++ ] = bytestream2_get_byte ( & s -> g ) ;\n }\n }\n }\n row_ptr += row_inc ;\n }\n }"}
{"idx": 10257, "target": 0, "func": "static timelib_sll timelib_get_nr ( char * * ptr , int max_length ) {\n char * begin , * end , * str ;\n timelib_sll tmp_nr = TIMELIB_UNSET ;\n int len = 0 ;\n while ( ( * * ptr < '0' ) || ( * * ptr > '9' ) ) {\n if ( * * ptr == '\\0' ) {\n return TIMELIB_UNSET ;\n }\n ++ * ptr ;\n }\n begin = * ptr ;\n while ( ( * * ptr >= '0' ) && ( * * ptr <= '9' ) && len < max_length ) {\n ++ * ptr ;\n ++ len ;\n }\n end = * ptr ;\n str = calloc ( 1 , end - begin + 1 ) ;\n memcpy ( str , begin , end - begin ) ;\n tmp_nr = strtoll ( str , NULL , 10 ) ;\n free ( str ) ;\n return tmp_nr ;\n }"}
{"idx": 10258, "target": 1, "func": "int vp9_compute_qdelta_by_rate ( const RATE_CONTROL * rc , FRAME_TYPE frame_type , int qindex , double rate_target_ratio ) {\n int target_index = rc -> worst_quality ;\n int i ;\n const int base_bits_per_mb = vp9_rc_bits_per_mb ( frame_type , qindex , 1.0 ) ;\n const int target_bits_per_mb = ( int ) ( rate_target_ratio * base_bits_per_mb ) ;\n for ( i = rc -> best_quality ;\n i < rc -> worst_quality ;\n ++ i ) {\n target_index = i ;\n if ( vp9_rc_bits_per_mb ( frame_type , i , 1.0 ) <= target_bits_per_mb ) break ;\n }\n return target_index - qindex ;\n }"}
{"idx": 10259, "target": 0, "func": "static void idcin_decode_vlcs ( IdcinContext * s , AVFrame * frame ) {\n hnode * hnodes ;\n long x , y ;\n int prev ;\n unsigned char v = 0 ;\n int bit_pos , node_num , dat_pos ;\n prev = bit_pos = dat_pos = 0 ;\n for ( y = 0 ;\n y < ( frame -> linesize [ 0 ] * s -> avctx -> height ) ;\n y += frame -> linesize [ 0 ] ) {\n for ( x = y ;\n x < y + s -> avctx -> width ;\n x ++ ) {\n node_num = s -> num_huff_nodes [ prev ] ;\n hnodes = s -> huff_nodes [ prev ] ;\n while ( node_num >= HUF_TOKENS ) {\n if ( ! bit_pos ) {\n if ( dat_pos >= s -> size ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Huffman decode error.\\n\" ) ;\n return ;\n }\n bit_pos = 8 ;\n v = s -> buf [ dat_pos ++ ] ;\n }\n node_num = hnodes [ node_num ] . children [ v & 0x01 ] ;\n v = v >> 1 ;\n bit_pos -- ;\n }\n frame -> data [ 0 ] [ x ] = node_num ;\n prev = node_num ;\n }\n }\n }"}
{"idx": 10260, "target": 0, "func": "static gboolean nautilus_mime_actions_check_if_required_attributes_ready ( NautilusFile * file ) {\n NautilusFileAttributes attributes ;\n gboolean ready ;\n attributes = nautilus_mime_actions_get_required_file_attributes ( ) ;\n ready = nautilus_file_check_if_ready ( file , attributes ) ;\n return ready ;\n }"}
{"idx": 10261, "target": 0, "func": "static inline uint32_t cpu_to_be32 ( uint32_t v ) {\n return bswap32 ( v ) ;\n }"}
{"idx": 10262, "target": 0, "func": "static void U_CALLCONV _LMBCSOpen ## n ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err ) \\ {\n _LMBCSOpenWorker ( _this , pArgs , err , n ) ;\n }\n static void _LMBCSOpenWorker ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err , ulmbcs_byte_t OptGroup ) {\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) uprv_malloc ( sizeof ( UConverterDataLMBCS ) ) ;\n _this -> extraInfo = extraInfo ;\n if ( extraInfo != NULL ) {\n UConverterNamePieces stackPieces ;\n UConverterLoadArgs stackArgs = UCNV_LOAD_ARGS_INITIALIZER ;\n ulmbcs_byte_t i ;\n uprv_memset ( extraInfo , 0 , sizeof ( UConverterDataLMBCS ) ) ;\n stackArgs . onlyTestIsLoadable = pArgs -> onlyTestIsLoadable ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST && U_SUCCESS ( * err ) ;\n i ++ ) {\n if ( OptGroupByteToCPName [ i ] != NULL ) {\n extraInfo -> OptGrpConverter [ i ] = ucnv_loadSharedData ( OptGroupByteToCPName [ i ] , & stackPieces , & stackArgs , err ) ;\n }\n }\n if ( U_FAILURE ( * err ) || pArgs -> onlyTestIsLoadable ) {\n _LMBCSClose ( _this ) ;\n return ;\n }\n extraInfo -> OptGroup = OptGroup ;\n extraInfo -> localeConverterIndex = FindLMBCSLocale ( pArgs -> locale ) ;\n }\n else {\n * err = U_MEMORY_ALLOCATION_ERROR ;\n }\n }\n U_CDECL_BEGIN static void U_CALLCONV _LMBCSClose ( UConverter * _this ) {\n if ( _this -> extraInfo != NULL ) {\n ulmbcs_byte_t Ix ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) _this -> extraInfo ;\n for ( Ix = 0 ;\n Ix <= ULMBCS_GRP_LAST ;\n Ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ Ix ] != NULL ) ucnv_unloadSharedDataIfReady ( extraInfo -> OptGrpConverter [ Ix ] ) ;\n }\n if ( ! _this -> isExtraLocal ) {\n uprv_free ( _this -> extraInfo ) ;\n _this -> extraInfo = NULL ;\n }\n }\n }\n typedef struct LMBCSClone {\n UConverter cnv ;\n UConverterDataLMBCS lmbcs ;\n }\n LMBCSClone ;\n static UConverter * U_CALLCONV _LMBCSSafeClone ( const UConverter * cnv , void * stackBuffer , int32_t * pBufferSize , UErrorCode * status ) {\n ( void ) status ;\n LMBCSClone * newLMBCS ;\n UConverterDataLMBCS * extraInfo ;\n int32_t i ;\n if ( * pBufferSize <= 0 ) {\n * pBufferSize = ( int32_t ) sizeof ( LMBCSClone ) ;\n return NULL ;\n }\n extraInfo = ( UConverterDataLMBCS * ) cnv -> extraInfo ;\n newLMBCS = ( LMBCSClone * ) stackBuffer ;\n uprv_memcpy ( & newLMBCS -> lmbcs , extraInfo , sizeof ( UConverterDataLMBCS ) ) ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST ;\n ++ i ) {\n if ( extraInfo -> OptGrpConverter [ i ] != NULL ) {\n ucnv_incrementRefCount ( extraInfo -> OptGrpConverter [ i ] ) ;\n }\n }\n newLMBCS -> cnv . extraInfo = & newLMBCS -> lmbcs ;\n newLMBCS -> cnv . isExtraLocal = TRUE ;\n return & newLMBCS -> cnv ;\n }\n static size_t LMBCSConversionWorker ( UConverterDataLMBCS * extraInfo , ulmbcs_byte_t group , ulmbcs_byte_t * pStartLMBCS , UChar * pUniChar , ulmbcs_byte_t * lastConverterIndex , UBool * groups_tried ) {\n ulmbcs_byte_t * pLMBCS = pStartLMBCS ;\n UConverterSharedData * xcnv = extraInfo -> OptGrpConverter [ group ] ;\n int bytesConverted ;\n uint32_t value ;\n ulmbcs_byte_t firstByte ;\n U_ASSERT ( xcnv ) ;\n U_ASSERT ( group < ULMBCS_GRP_UNICODE ) ;\n bytesConverted = ucnv_MBCSFromUChar32 ( xcnv , * pUniChar , & value , FALSE ) ;\n if ( bytesConverted > 0 ) {\n firstByte = ( ulmbcs_byte_t ) ( value >> ( ( bytesConverted - 1 ) * 8 ) ) ;\n }\n else {\n groups_tried [ group ] = TRUE ;\n return 0 ;\n }\n * lastConverterIndex = group ;\n U_ASSERT ( ( firstByte <= ULMBCS_C0END ) || ( firstByte >= ULMBCS_C1START ) || ( group == ULMBCS_GRP_EXCEPT ) ) ;\n if ( group != ULMBCS_GRP_EXCEPT && extraInfo -> OptGroup != group ) {\n * pLMBCS ++ = group ;\n if ( bytesConverted == 1 && group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n * pLMBCS ++ = group ;\n }\n }\n if ( bytesConverted == 1 && firstByte < 0x20 ) return 0 ;\n switch ( bytesConverted ) {\n case 4 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 24 ) ;\n U_FALLTHROUGH ;\n case 3 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 16 ) ;\n U_FALLTHROUGH ;\n case 2 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 8 ) ;\n U_FALLTHROUGH ;\n case 1 : * pLMBCS ++ = ( ulmbcs_byte_t ) value ;\n U_FALLTHROUGH ;\n default : break ;\n }\n return ( pLMBCS - pStartLMBCS ) ;\n }\n static size_t LMBCSConvertUni ( ulmbcs_byte_t * pLMBCS , UChar uniChar ) {\n uint8_t LowCh = ( uint8_t ) ( uniChar & 0x00FF ) ;\n uint8_t HighCh = ( uint8_t ) ( uniChar >> 8 ) ;\n * pLMBCS ++ = ULMBCS_GRP_UNICODE ;\n if ( LowCh == 0 ) {\n * pLMBCS ++ = ULMBCS_UNICOMPATZERO ;\n * pLMBCS ++ = HighCh ;\n }\n else {\n * pLMBCS ++ = HighCh ;\n * pLMBCS ++ = LowCh ;\n }\n return ULMBCS_UNICODE_SIZE ;\n }\n static void U_CALLCONV _LMBCSFromUnicode ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n ulmbcs_byte_t lastConverterIndex = 0 ;\n UChar uniChar ;\n ulmbcs_byte_t LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n ulmbcs_byte_t * pLMBCS ;\n int32_t bytes_written ;\n UBool groups_tried [ ULMBCS_GRP_LAST + 1 ] ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n int sourceIndex = 0 ;\n ulmbcs_byte_t OldConverterIndex = 0 ;\n while ( args -> source < args -> sourceLimit && ! U_FAILURE ( * err ) ) {\n OldConverterIndex = extraInfo -> localeConverterIndex ;\n if ( args -> target >= args -> targetLimit ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n uniChar = * ( args -> source ) ;\n bytes_written = 0 ;\n pLMBCS = LMBCS ;\n if ( ( uniChar >= 0x80 ) && ( uniChar <= 0xff ) && ( uniChar != 0xB1 ) && ( uniChar != 0xD7 ) && ( uniChar != 0xF7 ) && ( uniChar != 0xB0 ) && ( uniChar != 0xB4 ) && ( uniChar != 0xB6 ) && ( uniChar != 0xA7 ) && ( uniChar != 0xA8 ) ) {\n extraInfo -> localeConverterIndex = ULMBCS_GRP_L1 ;\n }\n if ( ( ( uniChar > ULMBCS_C0END ) && ( uniChar < ULMBCS_C1START ) ) || uniChar == 0 || uniChar == ULMBCS_HT || uniChar == ULMBCS_CR || uniChar == ULMBCS_LF || uniChar == ULMBCS_123SYSTEMRANGE ) {\n * pLMBCS ++ = ( ulmbcs_byte_t ) uniChar ;\n bytes_written = 1 ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t group = FindLMBCSUniRange ( uniChar ) ;\n if ( group == ULMBCS_GRP_UNICODE ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group == ULMBCS_GRP_CTRL ) {\n if ( uniChar <= ULMBCS_C0END ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( ULMBCS_CTRLOFFSET + uniChar ) ;\n }\n else if ( uniChar >= ULMBCS_C1START && uniChar <= ULMBCS_C1START + ULMBCS_CTRLOFFSET ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( uniChar & 0x00FF ) ;\n }\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group < ULMBCS_GRP_UNICODE ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , group , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n uprv_memset ( groups_tried , 0 , sizeof ( groups_tried ) ) ;\n if ( ( extraInfo -> OptGroup != 1 ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> OptGroup ) ) ) {\n if ( extraInfo -> localeConverterIndex < ULMBCS_DOUBLEOPTGROUP_START ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_L1 , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n else {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && ( extraInfo -> localeConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> localeConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written && ( lastConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , lastConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , lastConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t grp_start ;\n ulmbcs_byte_t grp_end ;\n ulmbcs_byte_t grp_ix ;\n grp_start = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_DOUBLEOPTGROUP_START : ULMBCS_GRP_L1 ) ;\n grp_end = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_GRP_LAST : ULMBCS_GRP_TH ) ;\n if ( group == ULMBCS_AMBIGUOUS_ALL ) {\n grp_start = ULMBCS_GRP_L1 ;\n grp_end = ULMBCS_GRP_LAST ;\n }\n for ( grp_ix = grp_start ;\n grp_ix <= grp_end && ! bytes_written ;\n grp_ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ grp_ix ] && ! groups_tried [ grp_ix ] ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , grp_ix , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && grp_start == ULMBCS_GRP_L1 ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n }\n }\n args -> source ++ ;\n pLMBCS = LMBCS ;\n while ( args -> target < args -> targetLimit && bytes_written -- ) {\n * ( args -> target ) ++ = * pLMBCS ++ ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = sourceIndex ;\n }\n }\n sourceIndex ++ ;\n if ( bytes_written > 0 ) {\n uint8_t * pErrorBuffer = args -> converter -> charErrorBuffer ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n args -> converter -> charErrorBufferLength = ( int8_t ) bytes_written ;\n while ( bytes_written -- ) {\n * pErrorBuffer ++ = * pLMBCS ++ ;\n }\n }\n extraInfo -> localeConverterIndex = OldConverterIndex ;\n }\n }\n static UChar GetUniFromLMBCSUni ( char const * * ppLMBCSin ) {\n uint8_t HighCh = * ( * ppLMBCSin ) ++ ;\n uint8_t LowCh = * ( * ppLMBCSin ) ++ ;\n if ( HighCh == ULMBCS_UNICOMPATZERO ) {\n HighCh = LowCh ;\n LowCh = 0 ;\n }\n return ( UChar ) ( ( HighCh << 8 ) | LowCh ) ;\n }\n # define CHECK_SOURCE_LIMIT ( index ) if ( args -> source + index > args -> sourceLimit ) {\n * err = U_TRUNCATED_CHAR_FOUND ;\n args -> source = args -> sourceLimit ;\n return 0xffff ;\n }\n static UChar32 U_CALLCONV _LMBCSGetNextUCharWorker ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n UChar32 uniChar = 0 ;\n ulmbcs_byte_t CurByte ;\n if ( args -> source >= args -> sourceLimit ) {\n * err = U_ILLEGAL_ARGUMENT_ERROR ;\n return 0xffff ;\n }\n CurByte = * ( ( ulmbcs_byte_t * ) ( args -> source ++ ) ) ;\n if ( ( ( CurByte > ULMBCS_C0END ) && ( CurByte < ULMBCS_C1START ) ) || ( CurByte == 0 ) || CurByte == ULMBCS_HT || CurByte == ULMBCS_CR || CurByte == ULMBCS_LF || CurByte == ULMBCS_123SYSTEMRANGE ) {\n uniChar = CurByte ;\n }\n else {\n UConverterDataLMBCS * extraInfo ;\n ulmbcs_byte_t group ;\n UConverterSharedData * cnv ;\n if ( CurByte == ULMBCS_GRP_CTRL ) {\n ulmbcs_byte_t C0C1byte ;\n CHECK_SOURCE_LIMIT ( 1 ) ;\n C0C1byte = * ( args -> source ) ++ ;\n uniChar = ( C0C1byte < ULMBCS_C1START ) ? C0C1byte - ULMBCS_CTRLOFFSET : C0C1byte ;\n }\n else if ( CurByte == ULMBCS_GRP_UNICODE ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n return GetUniFromLMBCSUni ( & ( args -> source ) ) ;\n }\n else if ( CurByte <= ULMBCS_CTRLOFFSET ) {\n group = CurByte ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n if ( group > ULMBCS_GRP_LAST || ( cnv = extraInfo -> OptGrpConverter [ group ] ) == NULL ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n if ( * args -> source == group ) {\n ++ args -> source ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 1 , FALSE ) ;\n ++ args -> source ;\n }\n else {\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 2 , FALSE ) ;\n args -> source += 2 ;\n }\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n CurByte = * ( args -> source ) ++ ;\n if ( CurByte >= ULMBCS_C1START ) {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n else {\n char bytes [ 2 ] ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n cnv = extraInfo -> OptGrpConverter [ ULMBCS_GRP_EXCEPT ] ;\n bytes [ 0 ] = group ;\n bytes [ 1 ] = CurByte ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , bytes , 2 , FALSE ) ;\n }\n }\n }\n else if ( CurByte >= ULMBCS_C1START ) {\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n group = extraInfo -> OptGroup ;\n cnv = extraInfo -> OptGrpConverter [ group ] ;\n if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n if ( ! ucnv_MBCSIsLeadByte ( cnv , CurByte ) ) {\n CHECK_SOURCE_LIMIT ( 0 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 1 , FALSE ) ;\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 2 , FALSE ) ;\n ++ args -> source ;\n }\n }\n else {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n }\n }\n return uniChar ;\n }\n static void U_CALLCONV _LMBCSToUnicodeWithOffsets ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n char LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n UChar uniChar ;\n const char * saveSource ;\n const char * pStartLMBCS = args -> source ;\n const char * errSource = NULL ;\n int8_t savebytes = 0 ;\n while ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit > args -> target ) {\n saveSource = args -> source ;\n if ( args -> converter -> toULength ) {\n const char * saveSourceLimit ;\n size_t size_old = args -> converter -> toULength ;\n size_t size_new_maybe_1 = sizeof ( LMBCS ) - size_old ;\n size_t size_new_maybe_2 = args -> sourceLimit - args -> source ;\n size_t size_new = ( size_new_maybe_1 < size_new_maybe_2 ) ? size_new_maybe_1 : size_new_maybe_2 ;\n uprv_memcpy ( LMBCS , args -> converter -> toUBytes , size_old ) ;\n uprv_memcpy ( LMBCS + size_old , args -> source , size_new ) ;\n saveSourceLimit = args -> sourceLimit ;\n args -> source = errSource = LMBCS ;\n args -> sourceLimit = LMBCS + size_old + size_new ;\n savebytes = ( int8_t ) ( size_old + size_new ) ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n args -> source = saveSource + ( ( args -> source - LMBCS ) - size_old ) ;\n args -> sourceLimit = saveSourceLimit ;\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n args -> converter -> toULength = savebytes ;\n uprv_memcpy ( args -> converter -> toUBytes , LMBCS , savebytes ) ;\n args -> source = args -> sourceLimit ;\n * err = U_ZERO_ERROR ;\n return ;\n }\n else {\n args -> converter -> toULength = 0 ;\n }\n }\n else {\n errSource = saveSource ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n savebytes = ( int8_t ) ( args -> source - saveSource ) ;\n }\n if ( U_SUCCESS ( * err ) ) {\n if ( uniChar < 0xfffe ) {\n * ( args -> target ) ++ = uniChar ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = ( int32_t ) ( saveSource - pStartLMBCS ) ;\n }\n }\n else if ( uniChar == 0xfffe ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n }\n if ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit <= args -> target ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n else if ( U_FAILURE ( * err ) ) {\n args -> converter -> toULength = savebytes ;\n if ( savebytes > 0 ) {\n uprv_memcpy ( args -> converter -> toUBytes , errSource , savebytes ) ;\n }\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n * err = U_ZERO_ERROR ;\n }\n }\n }\n DEFINE_LMBCS_OPEN ( 1 ) DEFINE_LMBCS_OPEN ( 2 ) DEFINE_LMBCS_OPEN ( 3 ) DEFINE_LMBCS_OPEN ( 4 ) DEFINE_LMBCS_OPEN ( 5 ) DEFINE_LMBCS_OPEN ( 6 ) DEFINE_LMBCS_OPEN ( 8 ) DEFINE_LMBCS_OPEN ( 11 ) DEFINE_LMBCS_OPEN ( 16 ) DEFINE_LMBCS_OPEN ( 17 )"}
{"idx": 10263, "target": 0, "func": "static Node * strip_array_coercion ( Node * node ) {\n for ( ;\n ;\n ) {\n if ( node && IsA ( node , ArrayCoerceExpr ) && ( ( ArrayCoerceExpr * ) node ) -> elemfuncid == InvalidOid ) {\n node = ( Node * ) ( ( ArrayCoerceExpr * ) node ) -> arg ;\n }\n else if ( node && IsA ( node , RelabelType ) ) {\n node = ( Node * ) ( ( RelabelType * ) node ) -> arg ;\n }\n else break ;\n }\n return node ;\n }"}
{"idx": 10264, "target": 0, "func": "static void cirrus_get_offsets ( VGACommonState * s1 , uint32_t * pline_offset , uint32_t * pstart_addr , uint32_t * pline_compare ) {\n CirrusVGAState * s = container_of ( s1 , CirrusVGAState , vga ) ;\n uint32_t start_addr , line_offset , line_compare ;\n line_offset = s -> vga . cr [ 0x13 ] | ( ( s -> vga . cr [ 0x1b ] & 0x10 ) << 4 ) ;\n line_offset <<= 3 ;\n * pline_offset = line_offset ;\n start_addr = ( s -> vga . cr [ 0x0c ] << 8 ) | s -> vga . cr [ 0x0d ] | ( ( s -> vga . cr [ 0x1b ] & 0x01 ) << 16 ) | ( ( s -> vga . cr [ 0x1b ] & 0x0c ) << 15 ) | ( ( s -> vga . cr [ 0x1d ] & 0x80 ) << 12 ) ;\n * pstart_addr = start_addr ;\n line_compare = s -> vga . cr [ 0x18 ] | ( ( s -> vga . cr [ 0x07 ] & 0x10 ) << 4 ) | ( ( s -> vga . cr [ 0x09 ] & 0x40 ) << 3 ) ;\n * pline_compare = line_compare ;\n }"}
{"idx": 10265, "target": 0, "func": "static u_long getkeyid ( const char * keyprompt ) {\n int c ;\n FILE * fi ;\n char pbuf [ 20 ] ;\n size_t i ;\n size_t ilim ;\n # ifndef SYS_WINNT if ( ( fi = fdopen ( open ( \"/dev/tty\" , 2 ) , \"r\" ) ) == NULL ) # else if ( ( fi = _fdopen ( open ( \"CONIN$\" , _O_TEXT ) , \"r\" ) ) == NULL ) # endif fi = stdin ;\n else setbuf ( fi , ( char * ) NULL ) ;\n fprintf ( stderr , \"%s\" , keyprompt ) ;\n fflush ( stderr ) ;\n for ( i = 0 , ilim = COUNTOF ( pbuf ) - 1 ;\n i < ilim && ( c = getc ( fi ) ) != '\\n' && c != EOF ;\n ) pbuf [ i ++ ] = ( char ) c ;\n pbuf [ i ] = '\\0' ;\n if ( fi != stdin ) fclose ( fi ) ;\n return ( u_long ) atoi ( pbuf ) ;\n }"}
{"idx": 10266, "target": 0, "func": "void CommuteOpExpr ( OpExpr * clause ) {\n Oid opoid ;\n Node * temp ;\n if ( ! is_opclause ( clause ) || list_length ( clause -> args ) != 2 ) elog ( ERROR , \"cannot commute non-binary-operator clause\" ) ;\n opoid = get_commutator ( clause -> opno ) ;\n if ( ! OidIsValid ( opoid ) ) elog ( ERROR , \"could not find commutator for operator %u\" , clause -> opno ) ;\n clause -> opno = opoid ;\n clause -> opfuncid = InvalidOid ;\n temp = linitial ( clause -> args ) ;\n linitial ( clause -> args ) = lsecond ( clause -> args ) ;\n lsecond ( clause -> args ) = temp ;\n }"}
{"idx": 10267, "target": 0, "func": "static int dissect_h245_T_frameSequence ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h245_T_frameSequence , T_frameSequence_sequence_of , 1 , 256 , FALSE ) ;\n return offset ;\n }"}
{"idx": 10268, "target": 0, "func": "static bool contain_volatile_functions_walker ( Node * node , void * context ) {\n if ( node == NULL ) return false ;\n if ( check_functions_in_node ( node , contain_volatile_functions_checker , context ) ) return true ;\n if ( IsA ( node , Query ) ) {\n return query_tree_walker ( ( Query * ) node , contain_volatile_functions_walker , context , 0 ) ;\n }\n return expression_tree_walker ( node , contain_volatile_functions_walker , context ) ;\n }"}
{"idx": 10269, "target": 0, "func": "static int dtls1_reassemble_fragment ( SSL * s , const struct hm_header_st * msg_hdr , int * ok ) {\n hm_fragment * frag = NULL ;\n pitem * item = NULL ;\n int i = - 1 , is_complete ;\n unsigned char seq64be [ 8 ] ;\n unsigned long frag_len = msg_hdr -> frag_len ;\n if ( ( msg_hdr -> frag_off + frag_len ) > msg_hdr -> msg_len || msg_hdr -> msg_len > dtls1_max_handshake_message_len ( s ) ) goto err ;\n if ( frag_len == 0 ) return DTLS1_HM_FRAGMENT_RETRY ;\n memset ( seq64be , 0 , sizeof ( seq64be ) ) ;\n seq64be [ 6 ] = ( unsigned char ) ( msg_hdr -> seq >> 8 ) ;\n seq64be [ 7 ] = ( unsigned char ) msg_hdr -> seq ;\n item = pqueue_find ( s -> d1 -> buffered_messages , seq64be ) ;\n if ( item == NULL ) {\n frag = dtls1_hm_fragment_new ( msg_hdr -> msg_len , 1 ) ;\n if ( frag == NULL ) goto err ;\n memcpy ( & ( frag -> msg_header ) , msg_hdr , sizeof ( * msg_hdr ) ) ;\n frag -> msg_header . frag_len = frag -> msg_header . msg_len ;\n frag -> msg_header . frag_off = 0 ;\n }\n else {\n frag = ( hm_fragment * ) item -> data ;\n if ( frag -> msg_header . msg_len != msg_hdr -> msg_len ) {\n item = NULL ;\n frag = NULL ;\n goto err ;\n }\n }\n if ( frag -> reassembly == NULL ) {\n unsigned char devnull [ 256 ] ;\n while ( frag_len ) {\n i = s -> method -> ssl_read_bytes ( s , SSL3_RT_HANDSHAKE , NULL , devnull , frag_len > sizeof ( devnull ) ? sizeof ( devnull ) : frag_len , 0 ) ;\n if ( i <= 0 ) goto err ;\n frag_len -= i ;\n }\n return DTLS1_HM_FRAGMENT_RETRY ;\n }\n i = s -> method -> ssl_read_bytes ( s , SSL3_RT_HANDSHAKE , NULL , frag -> fragment + msg_hdr -> frag_off , frag_len , 0 ) ;\n if ( ( unsigned long ) i != frag_len ) i = - 1 ;\n if ( i <= 0 ) goto err ;\n RSMBLY_BITMASK_MARK ( frag -> reassembly , ( long ) msg_hdr -> frag_off , ( long ) ( msg_hdr -> frag_off + frag_len ) ) ;\n RSMBLY_BITMASK_IS_COMPLETE ( frag -> reassembly , ( long ) msg_hdr -> msg_len , is_complete ) ;\n if ( is_complete ) {\n OPENSSL_free ( frag -> reassembly ) ;\n frag -> reassembly = NULL ;\n }\n if ( item == NULL ) {\n item = pitem_new ( seq64be , frag ) ;\n if ( item == NULL ) {\n i = - 1 ;\n goto err ;\n }\n item = pqueue_insert ( s -> d1 -> buffered_messages , item ) ;\n OPENSSL_assert ( item != NULL ) ;\n }\n return DTLS1_HM_FRAGMENT_RETRY ;\n err : if ( item == NULL ) dtls1_hm_fragment_free ( frag ) ;\n * ok = 0 ;\n return i ;\n }"}
{"idx": 10270, "target": 0, "func": "static char * wv_csp10_opaque_literal_tag ( tvbuff_t * tvb , guint32 offset , const char * token , guint8 codepage _U_ , guint32 * length ) {\n guint32 data_len = tvb_get_guintvar ( tvb , offset , length ) ;\n char * str = NULL ;\n if ( token && ( ( strcmp ( token , \"Code\" ) == 0 ) || ( strcmp ( token , \"ContentSize\" ) == 0 ) || ( strcmp ( token , \"MessageCount\" ) == 0 ) || ( strcmp ( token , \"Validity\" ) == 0 ) || ( strcmp ( token , \"KeepAliveTime\" ) == 0 ) || ( strcmp ( token , \"TimeToLive\" ) == 0 ) || ( strcmp ( token , \"AcceptedContentLength\" ) == 0 ) || ( strcmp ( token , \"MultiTrans\" ) == 0 ) || ( strcmp ( token , \"ParserSize\" ) == 0 ) || ( strcmp ( token , \"ServerPollMin\" ) == 0 ) || ( strcmp ( token , \"TCPAddress\" ) == 0 ) || ( strcmp ( token , \"TCPPort\" ) == 0 ) || ( strcmp ( token , \"UDPPort\" ) == 0 ) ) ) {\n str = wv_integer_from_opaque ( tvb , offset + * length , data_len ) ;\n }\n else if ( token && ( strcmp ( token , \"DateTime\" ) == 0 ) ) {\n str = wv_datetime_from_opaque ( tvb , offset + * length , data_len ) ;\n }\n if ( str == NULL ) {\n str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"(%d bytes of unparsed opaque data)\" , data_len ) ;\n }\n * length += data_len ;\n return str ;\n }"}
{"idx": 10271, "target": 0, "func": "int qemuMonitorJSONSavePhysicalMemory ( qemuMonitorPtr mon , unsigned long long offset , size_t length , const char * path ) {\n return qemuMonitorJSONSaveMemory ( mon , \"pmemsave\" , offset , length , path ) ;\n }"}
{"idx": 10272, "target": 0, "func": "static int init_common_variables ( ) {\n umask ( ( ( ~ my_umask ) & 0666 ) ) ;\n my_decimal_set_zero ( & decimal_zero ) ;\n tzset ( ) ;\n sf_leaking_memory = 0 ;\n max_system_variables . pseudo_thread_id = ( ulong ) ~ 0 ;\n server_start_time = flush_status_time = my_time ( 0 ) ;\n my_disable_copystat_in_redel = 1 ;\n rpl_filter = new Rpl_filter ;\n binlog_filter = new Rpl_filter ;\n if ( ! rpl_filter || ! binlog_filter ) {\n sql_perror ( \"Could not allocate replication and binlog filters\" ) ;\n return 1 ;\n }\n if ( init_thread_environment ( ) || mysql_init_variables ( ) ) return 1 ;\n if ( ignore_db_dirs_init ( ) ) return 1 ;\n # ifdef HAVE_TZNAME struct tm tm_tmp ;\n localtime_r ( & server_start_time , & tm_tmp ) ;\n const char * tz_name = tzname [ tm_tmp . tm_isdst != 0 ? 1 : 0 ] ;\n # ifdef _WIN32 wchar_t wtz_name [ sizeof ( system_time_zone ) ] ;\n mbstowcs ( wtz_name , tz_name , sizeof ( system_time_zone ) - 1 ) ;\n WideCharToMultiByte ( CP_UTF8 , 0 , wtz_name , - 1 , system_time_zone , sizeof ( system_time_zone ) - 1 , NULL , NULL ) ;\n # else strmake_buf ( system_time_zone , tz_name ) ;\n # endif # endif global_system_variables . time_zone = my_tz_SYSTEM ;\n # ifdef HAVE_PSI_INTERFACE mysql_bin_log . set_psi_keys ( key_BINLOG_LOCK_index , key_BINLOG_update_cond , key_file_binlog , key_file_binlog_index , key_BINLOG_COND_queue_busy ) ;\n # endif mysql_bin_log . init_pthread_objects ( ) ;\n if ( ! IS_TIME_T_VALID_FOR_TIMESTAMP ( server_start_time ) ) {\n sql_print_error ( \"This MySQL server doesn't support dates later then 2038\" ) ;\n return 1 ;\n }\n if ( gethostname ( glob_hostname , sizeof ( glob_hostname ) ) < 0 ) {\n strmake ( glob_hostname , STRING_WITH_LEN ( \"localhost\" ) ) ;\n sql_print_warning ( \"gethostname failed, using '%s' as hostname\" , glob_hostname ) ;\n opt_log_basename = const_cast < char * > ( \"mysql\" ) ;\n }\n else opt_log_basename = glob_hostname ;\n if ( ! * pidfile_name ) {\n strmake ( pidfile_name , opt_log_basename , sizeof ( pidfile_name ) - 5 ) ;\n strmov ( fn_ext ( pidfile_name ) , \".pid\" ) ;\n }\n # if defined ( WITH_INNOBASE_STORAGE_ENGINE ) || defined ( WITH_XTRADB_STORAGE_ENGINE ) default_storage_engine = const_cast < char * > ( \"InnoDB\" ) ;\n # else default_storage_engine = const_cast < char * > ( \"MyISAM\" ) ;\n # endif if ( add_status_vars ( status_vars ) ) return 1 ;\n # ifndef DBUG_OFF compile_time_assert ( sizeof ( com_status_vars ) / sizeof ( com_status_vars [ 0 ] ) - 1 == SQLCOM_END + 8 ) ;\n # endif if ( get_options ( & remaining_argc , & remaining_argv ) ) return 1 ;\n set_server_version ( ) ;\n if ( ! opt_help ) sql_print_information ( \"%s (mysqld %s) starting as process %lu ...\" , my_progname , server_version , ( ulong ) getpid ( ) ) ;\n # ifndef EMBEDDED_LIBRARY if ( opt_abort && ! opt_verbose ) unireg_abort ( 0 ) ;\n # endif DBUG_PRINT ( \"info\" , ( \"%s Ver %s for %s on %s\\n\" , my_progname , server_version , SYSTEM_TYPE , MACHINE_TYPE ) ) ;\n # ifdef HAVE_LARGE_PAGES if ( opt_large_pages && ( opt_large_page_size = my_get_large_page_size ( ) ) ) {\n DBUG_PRINT ( \"info\" , ( \"Large page set, large_page_size = %d\" , opt_large_page_size ) ) ;\n my_use_large_pages = 1 ;\n my_large_page_size = opt_large_page_size ;\n }\n else {\n opt_large_pages = 0 ;\n }\n # endif # ifdef HAVE_SOLARIS_LARGE_PAGES # define LARGE_PAGESIZE ( 4 * 1024 * 1024 ) # define SUPER_LARGE_PAGESIZE ( 256 * 1024 * 1024 ) if ( opt_large_pages ) {\n int nelem ;\n size_t max_desired_page_size ;\n if ( opt_super_large_pages ) max_desired_page_size = SUPER_LARGE_PAGESIZE ;\n else max_desired_page_size = LARGE_PAGESIZE ;\n nelem = getpagesizes ( NULL , 0 ) ;\n if ( nelem > 0 ) {\n size_t * pagesize = ( size_t * ) malloc ( sizeof ( size_t ) * nelem ) ;\n if ( pagesize != NULL && getpagesizes ( pagesize , nelem ) > 0 ) {\n size_t max_page_size = 0 ;\n for ( int i = 0 ;\n i < nelem ;\n i ++ ) {\n if ( pagesize [ i ] > max_page_size && pagesize [ i ] <= max_desired_page_size ) max_page_size = pagesize [ i ] ;\n }\n free ( pagesize ) ;\n if ( max_page_size > 0 ) {\n struct memcntl_mha mpss ;\n mpss . mha_cmd = MHA_MAPSIZE_BSSBRK ;\n mpss . mha_pagesize = max_page_size ;\n mpss . mha_flags = 0 ;\n memcntl ( NULL , 0 , MC_HAT_ADVISE , ( caddr_t ) & mpss , 0 , 0 ) ;\n mpss . mha_cmd = MHA_MAPSIZE_STACK ;\n memcntl ( NULL , 0 , MC_HAT_ADVISE , ( caddr_t ) & mpss , 0 , 0 ) ;\n }\n }\n }\n }\n # endif {\n uint files , wanted_files , max_open_files ;\n wanted_files = ( 10 + max_connections + extra_max_connections + table_cache_size * 2 ) ;\n max_open_files = max ( max ( wanted_files , ( max_connections + extra_max_connections ) * 5 ) , open_files_limit ) ;\n files = my_set_max_open_files ( max_open_files ) ;\n if ( files < wanted_files ) {\n if ( ! open_files_limit ) {\n max_connections = ( ulong ) min ( files - 10 - TABLE_OPEN_CACHE_MIN * 2 , max_connections ) ;\n table_cache_size = ( ulong ) min ( max ( ( files - 10 - max_connections ) / 2 , TABLE_OPEN_CACHE_MIN ) , table_cache_size ) ;\n DBUG_PRINT ( \"warning\" , ( \"Changed limits: max_open_files: %u max_connections: %ld table_cache: %ld\" , files , max_connections , table_cache_size ) ) ;\n if ( global_system_variables . log_warnings ) sql_print_warning ( \"Changed limits: max_open_files: %u max_connections: %ld table_cache: %ld\" , files , max_connections , table_cache_size ) ;\n }\n else if ( global_system_variables . log_warnings ) sql_print_warning ( \"Could not increase number of max_open_files to more than %u (request: %u)\" , files , wanted_files ) ;\n }\n open_files_limit = files ;\n }\n unireg_init ( opt_specialflag ) ;\n if ( ! ( my_default_lc_messages = my_locale_by_name ( lc_messages ) ) ) {\n sql_print_error ( \"Unknown locale: '%s'\" , lc_messages ) ;\n return 1 ;\n }\n global_system_variables . lc_messages = my_default_lc_messages ;\n if ( init_errmessage ( ) ) return 1 ;\n init_client_errs ( ) ;\n mysql_library_init ( unused , unused , unused ) ;\n lex_init ( ) ;\n if ( item_create_init ( ) ) return 1 ;\n item_init ( ) ;\n # ifndef EMBEDDED_LIBRARY my_regex_init ( & my_charset_latin1 , check_enough_stack_size ) ;\n my_string_stack_guard = check_enough_stack_size ;\n # else my_regex_init ( & my_charset_latin1 , NULL ) ;\n # endif for ( ;\n ;\n ) {\n char * next_character_set_name = strchr ( default_character_set_name , ',' ) ;\n if ( next_character_set_name ) * next_character_set_name ++ = '\\0' ;\n if ( ! ( default_charset_info = get_charset_by_csname ( default_character_set_name , MY_CS_PRIMARY , MYF ( MY_WME ) ) ) ) {\n if ( next_character_set_name ) {\n default_character_set_name = next_character_set_name ;\n default_collation_name = 0 ;\n }\n else return 1 ;\n }\n else break ;\n }\n if ( default_collation_name ) {\n CHARSET_INFO * default_collation ;\n default_collation = get_charset_by_name ( default_collation_name , MYF ( 0 ) ) ;\n if ( ! default_collation ) {\n sql_print_error ( ER_DEFAULT ( ER_UNKNOWN_COLLATION ) , default_collation_name ) ;\n return 1 ;\n }\n if ( ! my_charset_same ( default_charset_info , default_collation ) ) {\n sql_print_error ( ER_DEFAULT ( ER_COLLATION_CHARSET_MISMATCH ) , default_collation_name , default_charset_info -> csname ) ;\n return 1 ;\n }\n default_charset_info = default_collation ;\n }\n global_system_variables . collation_server = default_charset_info ;\n global_system_variables . collation_database = default_charset_info ;\n global_system_variables . collation_connection = default_charset_info ;\n global_system_variables . character_set_results = default_charset_info ;\n global_system_variables . character_set_client = default_charset_info ;\n if ( ! ( character_set_filesystem = get_charset_by_csname ( character_set_filesystem_name , MY_CS_PRIMARY , MYF ( MY_WME ) ) ) ) return 1 ;\n global_system_variables . character_set_filesystem = character_set_filesystem ;\n if ( ! ( my_default_lc_time_names = my_locale_by_name ( lc_time_names_name ) ) ) {\n sql_print_error ( \"Unknown locale: '%s'\" , lc_time_names_name ) ;\n return 1 ;\n }\n global_system_variables . lc_time_names = my_default_lc_time_names ;\n if ( opt_log && opt_logname && * opt_logname && ! ( log_output_options & ( LOG_FILE | LOG_NONE ) ) ) sql_print_warning ( \"Although a path was specified for the \" \"--log option, log tables are used. \" \"To enable logging to files use the --log-output option.\" ) ;\n if ( opt_slow_log && opt_slow_logname && * opt_slow_logname && ! ( log_output_options & ( LOG_FILE | LOG_NONE ) ) ) sql_print_warning ( \"Although a path was specified for the \" \"--log-slow-queries option, log tables are used. \" \"To enable logging to files use the --log-output=file option.\" ) ;\n if ( ! opt_logname || ! * opt_logname ) make_default_log_name ( & opt_logname , \".log\" , false ) ;\n if ( ! opt_slow_logname || ! * opt_slow_logname ) make_default_log_name ( & opt_slow_logname , \"-slow.log\" , false ) ;\n # if defined ( ENABLED_DEBUG_SYNC ) if ( debug_sync_init ( ) ) return 1 ;\n # endif # if ( ENABLE_TEMP_POOL ) if ( use_temp_pool && bitmap_init ( & temp_pool , 0 , 1024 , 1 ) ) return 1 ;\n # else use_temp_pool = 0 ;\n # endif if ( my_dboptions_cache_init ( ) ) return 1 ;\n DBUG_PRINT ( \"info\" , ( \"lower_case_table_names: %d\" , lower_case_table_names ) ) ;\n lower_case_file_system = test_if_case_insensitive ( mysql_real_data_home ) ;\n if ( ! lower_case_table_names && lower_case_file_system == 1 ) {\n if ( lower_case_table_names_used ) {\n # if MYSQL_VERSION_ID < 100100 if ( global_system_variables . log_warnings ) sql_print_warning ( \"You have forced lower_case_table_names to 0 through \" \"a command-line option, even though your file system \" \"'%s' is case insensitive. This means that you can \" \"corrupt your tables if you access them using names \" \"with different letter case. You should consider \" \"changing lower_case_table_names to 1 or 2\" , mysql_real_data_home ) ;\n # else sql_print_error ( \"The server option 'lower_case_table_names' is \" \"configured to use case sensitive table names but the \" \"data directory resides on a case-insensitive file system. \" \"Please use a case sensitive file system for your data \" \"directory or switch to a case-insensitive table name \" \"mode.\" ) ;\n # endif return 1 ;\n }\n else {\n if ( global_system_variables . log_warnings ) sql_print_warning ( \"Setting lower_case_table_names=2 because file system for %s is case insensitive\" , mysql_real_data_home ) ;\n lower_case_table_names = 2 ;\n }\n }\n else if ( lower_case_table_names == 2 && ! ( lower_case_file_system = ( lower_case_file_system == 1 ) ) ) {\n if ( global_system_variables . log_warnings ) sql_print_warning ( \"lower_case_table_names was set to 2, even though your \" \"the file system '%s' is case sensitive. Now setting \" \"lower_case_table_names to 0 to avoid future problems.\" , mysql_real_data_home ) ;\n lower_case_table_names = 0 ;\n }\n else {\n lower_case_file_system = ( lower_case_file_system == 1 ) ;\n }\n table_alias_charset = ( lower_case_table_names ? files_charset_info : & my_charset_bin ) ;\n if ( ignore_db_dirs_process_additions ( ) ) {\n sql_print_error ( \"An error occurred while storing ignore_db_dirs to a hash.\" ) ;\n return 1 ;\n }\n return 0 ;\n }"}
{"idx": 10273, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( AppApiTest , ReloadIntoAppProcessWithJavaScript ) {\n extensions : : ProcessMap * process_map = extensions : : ProcessMap : : Get ( browser ( ) -> profile ( ) ) ;\n GURL base_url = GetTestBaseURL ( \"app_process\" ) ;\n LOG ( INFO ) << \"Loading extension.\" ;\n const Extension * app = LoadExtension ( test_data_dir_ . AppendASCII ( \"app_process\" ) ) ;\n LOG ( INFO ) << \"Loading extension - done.\" ;\n ASSERT_TRUE ( app ) ;\n LOG ( INFO ) << \"Disabling extension.\" ;\n DisableExtension ( app -> id ( ) ) ;\n LOG ( INFO ) << \"Disabling extension - done.\" ;\n LOG ( INFO ) << \"Navigate to path1/empty.html.\" ;\n ui_test_utils : : NavigateToURL ( browser ( ) , base_url . Resolve ( \"path1/empty.html\" ) ) ;\n LOG ( INFO ) << \"Navigate to path1/empty.html - done.\" ;\n WebContents * contents = browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 0 ) ;\n EXPECT_FALSE ( process_map -> Contains ( contents -> GetRenderProcessHost ( ) -> GetID ( ) ) ) ;\n LOG ( INFO ) << \"Enabling extension.\" ;\n EnableExtension ( app -> id ( ) ) ;\n LOG ( INFO ) << \"Enabling extension - done.\" ;\n content : : WindowedNotificationObserver js_reload_observer ( content : : NOTIFICATION_LOAD_STOP , content : : Source < NavigationController > ( & browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) -> GetController ( ) ) ) ;\n LOG ( INFO ) << \"Executing location.reload().\" ;\n ASSERT_TRUE ( content : : ExecuteScript ( contents , \"location.reload();\n\" ) ) ;\n js_reload_observer . Wait ( ) ;\n LOG ( INFO ) << \"Executing location.reload() - done.\" ;\n EXPECT_TRUE ( process_map -> Contains ( contents -> GetRenderProcessHost ( ) -> GetID ( ) ) ) ;\n LOG ( INFO ) << \"Disabling extension.\" ;\n DisableExtension ( app -> id ( ) ) ;\n LOG ( INFO ) << \"Disabling extension - done.\" ;\n content : : WindowedNotificationObserver js_reload_observer2 ( content : : NOTIFICATION_LOAD_STOP , content : : Source < NavigationController > ( & browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) -> GetController ( ) ) ) ;\n LOG ( INFO ) << \"Executing location = location.\" ;\n ASSERT_TRUE ( content : : ExecuteScript ( contents , \"location = location;\n\" ) ) ;\n js_reload_observer2 . Wait ( ) ;\n LOG ( INFO ) << \"Executing location = location - done.\" ;\n EXPECT_FALSE ( process_map -> Contains ( contents -> GetRenderProcessHost ( ) -> GetID ( ) ) ) ;\n }"}
{"idx": 10274, "target": 0, "func": "static int remoteStreamHandleRead ( struct qemud_client * client , struct qemud_client_stream * stream ) {\n char * buffer ;\n size_t bufferLen = REMOTE_MESSAGE_PAYLOAD_MAX ;\n int ret ;\n VIR_DEBUG ( \"stream=%p\" , stream ) ;\n if ( ! stream -> tx ) return 0 ;\n if ( VIR_ALLOC_N ( buffer , bufferLen ) < 0 ) return - 1 ;\n ret = virStreamRecv ( stream -> st , buffer , bufferLen ) ;\n if ( ret == - 2 ) {\n ret = 0 ;\n }\n else if ( ret < 0 ) {\n remote_error rerr ;\n memset ( & rerr , 0 , sizeof rerr ) ;\n remoteDispatchError ( & rerr ) ;\n ret = remoteSerializeStreamError ( client , & rerr , stream -> procedure , stream -> serial ) ;\n }\n else {\n stream -> tx = 0 ;\n if ( ret == 0 ) stream -> recvEOF = 1 ;\n ret = remoteSendStreamData ( client , stream , buffer , ret ) ;\n }\n VIR_FREE ( buffer ) ;\n return ret ;\n }"}
{"idx": 10275, "target": 0, "func": "static int int_dsa_size ( const EVP_PKEY * pkey ) {\n return ( DSA_size ( pkey -> pkey . dsa ) ) ;\n }"}
{"idx": 10276, "target": 0, "func": "static void pdf_show_string ( fz_context * ctx , pdf_run_processor * pr , unsigned char * buf , int len ) {\n pdf_gstate * gstate = pr -> gstate + pr -> gtop ;\n pdf_font_desc * fontdesc = gstate -> text . font ;\n if ( ! fontdesc ) {\n fz_warn ( ctx , \"cannot draw text since font and size not set\" ) ;\n return ;\n }\n show_string ( ctx , pr , buf , len ) ;\n }"}
{"idx": 10277, "target": 0, "func": "static struct row_pairs * gtkui_connections_add ( struct conn_object * co , void * conn , struct row_pairs * * list ) {\n GtkTreeIter iter ;\n char flags [ 2 ] , src [ MAX_ASCII_ADDR_LEN ] , dst [ MAX_ASCII_ADDR_LEN ] ;\n char proto [ 4 ] , status [ 8 ] , ccodes [ 8 ] ;\n unsigned int src_port = 0 , dst_port = 0 , tx = 0 , rx = 0 ;\n struct row_pairs * row = NULL ;\n if ( ! list ) return ( NULL ) ;\n memset ( & flags , 0 , sizeof ( flags ) ) ;\n memset ( & proto , 0 , sizeof ( proto ) ) ;\n memset ( & src , 0 , sizeof ( src ) ) ;\n memset ( & dst , 0 , sizeof ( dst ) ) ;\n memset ( & status , 0 , sizeof ( status ) ) ;\n memset ( & ccodes , 0 , sizeof ( ccodes ) ) ;\n conntrack_flagstr ( co , flags , sizeof ( flags ) ) ;\n conntrack_statusstr ( co , status , sizeof ( status ) ) ;\n conntrack_protostr ( co , proto , sizeof ( proto ) ) ;\n conntrack_countrystr ( co , ccodes , sizeof ( ccodes ) ) ;\n ip_addr_ntoa ( & co -> L3_addr1 , src ) ;\n ip_addr_ntoa ( & co -> L3_addr2 , dst ) ;\n src_port = ntohs ( co -> L4_addr1 ) ;\n dst_port = ntohs ( co -> L4_addr2 ) ;\n tx = co -> tx ;\n rx = co -> rx ;\n gtk_list_store_append ( ls_conns , & iter ) ;\n gtk_list_store_set ( ls_conns , & iter , 0 , flags , 1 , src , 2 , src_port , 3 , \"-\" , 4 , dst , 5 , dst_port , 6 , proto , 7 , status , 8 , tx , 9 , rx , 10 , ccodes , 11 , conn , - 1 ) ;\n if ( ! * list ) {\n row = malloc ( sizeof ( struct row_pairs ) ) ;\n if ( row == NULL ) {\n USER_MSG ( \"Failed create new connection row\\n\" ) ;\n DEBUG_MSG ( \"gktui_connections_add: failed to allocate memory for a new row\" ) ;\n }\n row -> prev = NULL ;\n }\n else {\n for ( row = * list ;\n row && row -> next ;\n row = row -> next ) ;\n row -> next = malloc ( sizeof ( struct row_pairs ) ) ;\n if ( row -> next == NULL ) {\n USER_MSG ( \"Failed create new connection row\\n\" ) ;\n DEBUG_MSG ( \"gktui_connections_add: failed to allocate memory for a new row\" ) ;\n }\n row -> next -> prev = row ;\n row = row -> next ;\n }\n row -> conn = conn ;\n row -> iter = iter ;\n row -> next = NULL ;\n if ( ! * list ) * list = row ;\n return ( row ) ;\n }"}
{"idx": 10278, "target": 0, "func": "void proto_register_dcerpc_spoolss ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_clientmajorversion , {\n \"Client major version\" , \"spoolss.clientmajorversion\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"Client printer driver major version\" , HFILL }\n }\n , {\n & hf_clientminorversion , {\n \"Client minor version\" , \"spoolss.clientminorversion\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"Client printer driver minor version\" , HFILL }\n }\n , {\n & hf_servermajorversion , {\n \"Server major version\" , \"spoolss.servermajorversion\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"Server printer driver major version\" , HFILL }\n }\n , {\n & hf_serverminorversion , {\n \"Server minor version\" , \"spoolss.serverminorversion\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"Server printer driver minor version\" , HFILL }\n }\n , {\n & hf_driverpath , {\n \"Driver path\" , \"spoolss.driverpath\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_datafile , {\n \"Data file\" , \"spoolss.datafile\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_configfile , {\n \"Config file\" , \"spoolss.configfile\" , FT_STRING , BASE_NONE , NULL , 0 , \"Printer name\" , HFILL }\n }\n , {\n & hf_helpfile , {\n \"Help file\" , \"spoolss.helpfile\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_monitorname , {\n \"Monitor name\" , \"spoolss.monitorname\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_defaultdatatype , {\n \"Default data type\" , \"spoolss.defaultdatatype\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_driverinfo_cversion , {\n \"Driver version\" , \"spoolss.driverversion\" , FT_UINT32 , BASE_DEC , VALS ( driverinfo_cversion_vals ) , 0 , \"Printer name\" , HFILL }\n }\n , {\n & hf_dependentfiles , {\n \"Dependent files\" , \"spoolss.dependentfiles\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_status , {\n \"Status\" , \"spoolss.printer_status\" , FT_UINT32 , BASE_DEC | BASE_EXT_STRING , & printer_status_vals_ext , 0 , NULL , HFILL }\n }\n , {\n & hf_previousdrivernames , {\n \"Previous Driver Names\" , \"spoolss.previousdrivernames\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_driverdate , {\n \"Driver Date\" , \"spoolss.driverdate\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_LOCAL , NULL , 0 , \"Date of driver creation\" , HFILL }\n }\n , {\n & hf_padding , {\n \"Padding\" , \"spoolss.padding\" , FT_UINT32 , BASE_HEX , NULL , 0 , \"Some padding - conveys no semantic information\" , HFILL }\n }\n , {\n & hf_driver_version_low , {\n \"Minor Driver Version\" , \"spoolss.minordriverversion\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Driver Version Low\" , HFILL }\n }\n , {\n & hf_driver_version_high , {\n \"Major Driver Version\" , \"spoolss.majordriverversion\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Driver Version High\" , HFILL }\n }\n , {\n & hf_mfgname , {\n \"Mfgname\" , \"spoolss.mfgname\" , FT_STRING , BASE_NONE , NULL , 0 , \"Manufacturer Name\" , HFILL }\n }\n , {\n & hf_oemurl , {\n \"OEM URL\" , \"spoolss.oemrul\" , FT_STRING , BASE_NONE , NULL , 0 , \"OEM URL - Website of Vendor\" , HFILL }\n }\n , {\n & hf_hardwareid , {\n \"Hardware ID\" , \"spoolss.hardwareid\" , FT_STRING , BASE_NONE , NULL , 0 , \"Hardware Identification Information\" , HFILL }\n }\n , {\n & hf_provider , {\n \"Provider\" , \"spoolss.provider\" , FT_STRING , BASE_NONE , NULL , 0 , \"Provider of Driver\" , HFILL }\n }\n , {\n & hf_setprinter_cmd , {\n \"Command\" , \"spoolss.setprinter_cmd\" , FT_UINT32 , BASE_DEC , VALS ( setprinter_cmd_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_enumprinters_flags , {\n \"Flags\" , \"spoolss.enumprinters.flags\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_enumprinters_flags_local , {\n \"Enum local\" , \"spoolss.enumprinters.flags.enum_local\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , PRINTER_ENUM_LOCAL , NULL , HFILL }\n }\n , {\n & hf_enumprinters_flags_name , {\n \"Enum name\" , \"spoolss.enumprinters.flags.enum_name\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , PRINTER_ENUM_NAME , NULL , HFILL }\n }\n , {\n & hf_enumprinters_flags_shared , {\n \"Enum shared\" , \"spoolss.enumprinters.flags.enum_shared\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , PRINTER_ENUM_SHARED , NULL , HFILL }\n }\n , {\n & hf_enumprinters_flags_default , {\n \"Enum default\" , \"spoolss.enumprinters.flags.enum_default\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , PRINTER_ENUM_DEFAULT , NULL , HFILL }\n }\n , {\n & hf_enumprinters_flags_connections , {\n \"Enum connections\" , \"spoolss.enumprinters.flags.enum_connections\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , PRINTER_ENUM_CONNECTIONS , NULL , HFILL }\n }\n , {\n & hf_enumprinters_flags_network , {\n \"Enum network\" , \"spoolss.enumprinters.flags.enum_network\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , PRINTER_ENUM_NETWORK , NULL , HFILL }\n }\n , {\n & hf_enumprinters_flags_remote , {\n \"Enum remote\" , \"spoolss.enumprinters.flags.enum_remote\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , PRINTER_ENUM_REMOTE , NULL , HFILL }\n }\n , {\n & hf_start_time , {\n \"Start time\" , \"spoolss.start_time\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_end_time , {\n \"End time\" , \"spoolss.end_time\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_elapsed_time , {\n \"Elapsed time\" , \"spoolss.elapsed_time\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_opnum , {\n \"Operation\" , \"spoolss.opnum\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_hnd , {\n \"Context handle\" , \"spoolss.hnd\" , FT_BYTES , BASE_NONE , NULL , 0x0 , \"SPOOLSS policy handle\" , HFILL }\n }\n , {\n & hf_rc , {\n \"Return code\" , \"spoolss.rc\" , FT_UINT32 , BASE_HEX | BASE_EXT_STRING , & DOS_errors_ext , 0x0 , \"SPOOLSS return code\" , HFILL }\n }\n , {\n & hf_offered , {\n \"Offered\" , \"spoolss.offered\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"Size of buffer offered in this request\" , HFILL }\n }\n , {\n & hf_needed , {\n \"Needed\" , \"spoolss.needed\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"Size of buffer required for request\" , HFILL }\n }\n , {\n & hf_returned , {\n \"Returned\" , \"spoolss.returned\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"Number of items returned\" , HFILL }\n }\n , {\n & hf_buffer_size , {\n \"Buffer size\" , \"spoolss.buffer.size\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"Size of buffer\" , HFILL }\n }\n , {\n & hf_buffer_data , {\n \"Buffer data\" , \"spoolss.buffer.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , \"Contents of buffer\" , HFILL }\n }\n , {\n & hf_string_parm_size , {\n \"String buffer size\" , \"spoolss.string.buffersize\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"Size of string buffer\" , HFILL }\n }\n , {\n & hf_string_parm_data , {\n \"String data\" , \"spoolss.string.data\" , FT_STRINGZ , BASE_NONE , NULL , 0x0 , \"Contents of string\" , HFILL }\n }\n , {\n & hf_offset , {\n \"Offset\" , \"spoolss.offset\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"Offset of data\" , HFILL }\n }\n , {\n & hf_level , {\n \"Info level\" , \"spoolss.enumjobs.level\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_printername , {\n \"Printer name\" , \"spoolss.printername\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_machinename , {\n \"Machine name\" , \"spoolss.machinename\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_notifyname , {\n \"Notify name\" , \"spoolss.notifyname\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printerdesc , {\n \"Printer description\" , \"spoolss.printerdesc\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printercomment , {\n \"Printer comment\" , \"spoolss.printercomment\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_servername , {\n \"Server name\" , \"spoolss.servername\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_sharename , {\n \"Share name\" , \"spoolss.sharename\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_portname , {\n \"Port name\" , \"spoolss.portname\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printerlocation , {\n \"Printer location\" , \"spoolss.printerlocation\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_environment , {\n \"Environment name\" , \"spoolss.environment\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_drivername , {\n \"Driver name\" , \"spoolss.drivername\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_username , {\n \"User name\" , \"spoolss.username\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_documentname , {\n \"Document name\" , \"spoolss.document\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_outputfile , {\n \"Output file\" , \"spoolss.outputfile\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_datatype , {\n \"Datatype\" , \"spoolss.datatype\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_textstatus , {\n \"Text status\" , \"spoolss.textstatus\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_sepfile , {\n \"Separator file\" , \"spoolss.setpfile\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_parameters , {\n \"Parameters\" , \"spoolss.parameters\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printprocessor , {\n \"Print processor\" , \"spoolss.printprocessor\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printerdata , {\n \"Data\" , \"spoolss.printerdata\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printerdata_key , {\n \"Key\" , \"spoolss.printerdata.key\" , FT_STRING , BASE_NONE , NULL , 0 , \"Printer data key\" , HFILL }\n }\n , {\n & hf_printerdata_value , {\n \"Value\" , \"spoolss.printerdata.value\" , FT_STRING , BASE_NONE , NULL , 0 , \"Printer data value\" , HFILL }\n }\n , {\n & hf_printerdata_type , {\n \"Type\" , \"spoolss.printerdata.type\" , FT_UINT32 , BASE_DEC | BASE_EXT_STRING , & reg_datatypes_ext , 0 , \"Printer data type\" , HFILL }\n }\n , {\n & hf_printerdata_size , {\n \"Size\" , \"spoolss.printerdata.size\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Printer data size\" , HFILL }\n }\n , {\n & hf_printerdata_data , {\n \"Data\" , \"spoolss.printerdata.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , \"Printer data\" , HFILL }\n }\n , {\n & hf_printerdata_data_dword , {\n \"DWORD data\" , \"spoolss.printerdata.data.dword\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printerdata_data_sz , {\n \"String data\" , \"spoolss.printerdata.data.sz\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_devmodectr_size , {\n \"Devicemode ctr size\" , \"spoolss.devicemodectr.size\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode , {\n \"Devicemode\" , \"spoolss.devmode\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_size , {\n \"Size\" , \"spoolss.devmode.size\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_spec_version , {\n \"Spec version\" , \"spoolss.devmode.spec_version\" , FT_UINT16 , BASE_DEC , VALS ( devmode_specversion_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_driver_version , {\n \"Driver version\" , \"spoolss.devmode.driver_version\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_size2 , {\n \"Size2\" , \"spoolss.devmode.size2\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_fields , {\n \"Fields\" , \"spoolss.devmode.fields\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_orientation , {\n \"Orientation\" , \"spoolss.devmode.orientation\" , FT_UINT16 , BASE_DEC , VALS ( devmode_orientation_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_paper_size , {\n \"Paper size\" , \"spoolss.devmode.paper_size\" , FT_UINT16 , BASE_DEC | BASE_EXT_STRING , & devmode_papersize_vals_ext , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_paper_width , {\n \"Paper width\" , \"spoolss.devmode.paper_width\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_paper_length , {\n \"Paper length\" , \"spoolss.devmode.paper_length\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_scale , {\n \"Scale\" , \"spoolss.devmode.scale\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_copies , {\n \"Copies\" , \"spoolss.devmode.copies\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_default_source , {\n \"Default source\" , \"spoolss.devmode.default_source\" , FT_UINT16 , BASE_DEC | BASE_EXT_STRING , & devmode_papersource_vals_ext , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_print_quality , {\n \"Print quality\" , \"spoolss.devmode.print_quality\" , FT_UINT16 , BASE_DEC , VALS ( devmode_printquality_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_color , {\n \"Color\" , \"spoolss.devmode.color\" , FT_UINT16 , BASE_DEC , VALS ( devmode_colour_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_duplex , {\n \"Duplex\" , \"spoolss.devmode.duplex\" , FT_UINT16 , BASE_DEC , VALS ( devmode_duplex_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_y_resolution , {\n \"Y resolution\" , \"spoolss.devmode.y_resolution\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_tt_option , {\n \"TT option\" , \"spoolss.devmode.tt_option\" , FT_UINT16 , BASE_DEC , VALS ( devmode_ttoption_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_collate , {\n \"Collate\" , \"spoolss.devmode.collate\" , FT_UINT16 , BASE_DEC , VALS ( devmode_collate_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_log_pixels , {\n \"Log pixels\" , \"spoolss.devmode.log_pixels\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_bits_per_pel , {\n \"Bits per pel\" , \"spoolss.devmode.bits_per_pel\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_pels_width , {\n \"Pels width\" , \"spoolss.devmode.pels_width\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_pels_height , {\n \"Pels height\" , \"spoolss.devmode.pels_height\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_display_flags , {\n \"Display flags\" , \"spoolss.devmode.display_flags\" , FT_UINT32 , BASE_DEC , VALS ( devmode_displayflags_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_display_freq , {\n \"Display frequency\" , \"spoolss.devmode.display_freq\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_icm_method , {\n \"ICM method\" , \"spoolss.devmode.icm_method\" , FT_UINT32 , BASE_DEC , VALS ( devmode_icmmethod_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_icm_intent , {\n \"ICM intent\" , \"spoolss.devmode.icm_intent\" , FT_UINT32 , BASE_DEC , VALS ( devmode_icmintent_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_media_type , {\n \"Media type\" , \"spoolss.devmode.media_type\" , FT_UINT32 , BASE_DEC , VALS ( devmode_mediatype_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_dither_type , {\n \"Dither type\" , \"spoolss.devmode.dither_type\" , FT_UINT32 , BASE_DEC , VALS ( devmode_dithertype_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_reserved1 , {\n \"Reserved1\" , \"spoolss.devmode.reserved1\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_reserved2 , {\n \"Reserved2\" , \"spoolss.devmode.reserved2\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_panning_width , {\n \"Panning width\" , \"spoolss.devmode.panning_width\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_panning_height , {\n \"Panning height\" , \"spoolss.devmode.panning_height\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_driver_extra_len , {\n \"Driver extra length\" , \"spoolss.devmode.driver_extra_len\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_driver_extra , {\n \"Driver extra\" , \"spoolss.devmode.driver_extra\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_fields_orientation , {\n \"Orientation\" , \"spoolss.devmode.fields.orientation\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , DEVMODE_ORIENTATION , NULL , HFILL }\n }\n , {\n & hf_devmode_fields_papersize , {\n \"Paper size\" , \"spoolss.devmode.fields.paper_size\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , DEVMODE_PAPERSIZE , NULL , HFILL }\n }\n , {\n & hf_devmode_fields_paperlength , {\n \"Paper length\" , \"spoolss.devmode.fields.paper_length\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , DEVMODE_PAPERLENGTH , NULL , HFILL }\n }\n , {\n & hf_devmode_fields_paperwidth , {\n \"Paper width\" , \"spoolss.devmode.fields.paper_width\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , DEVMODE_PAPERWIDTH , NULL , HFILL }\n }\n , {\n & hf_devmode_fields_scale , {\n \"Scale\" , \"spoolss.devmode.fields.scale\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , DEVMODE_SCALE , NULL , HFILL }\n }\n , {\n & hf_devmode_fields_position , {\n \"Position\" , \"spoolss.devmode.fields.position\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , DEVMODE_POSITION , NULL , HFILL }\n }\n , {\n & hf_devmode_fields_nup , {\n \"N-up\" , \"spoolss.devmode.fields.nup\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , DEVMODE_NUP , NULL , HFILL }\n }\n , {\n & hf_devmode_fields_copies , {\n \"Copies\" , \"spoolss.devmode.fields.copies\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , DEVMODE_COPIES , NULL , HFILL }\n }\n , {\n & hf_devmode_fields_defaultsource , {\n \"Default source\" , \"spoolss.devmode.fields.default_source\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , DEVMODE_DEFAULTSOURCE , NULL , HFILL }\n }\n , {\n & hf_devmode_fields_printquality , {\n \"Print quality\" , \"spoolss.devmode.fields.print_quality\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , DEVMODE_PRINTQUALITY , NULL , HFILL }\n }\n , {\n & hf_devmode_fields_color , {\n \"Color\" , \"spoolss.devmode.fields.color\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , DEVMODE_COLOR , NULL , HFILL }\n }\n , {\n & hf_devmode_fields_duplex , {\n \"Duplex\" , \"spoolss.devmode.fields.duplex\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , DEVMODE_DUPLEX , NULL , HFILL }\n }\n , {\n & hf_devmode_fields_yresolution , {\n \"Y resolution\" , \"spoolss.devmode.fields.y_resolution\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , DEVMODE_YRESOLUTION , NULL , HFILL }\n }\n , {\n & hf_devmode_fields_ttoption , {\n \"TT option\" , \"spoolss.devmode.fields.tt_option\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , DEVMODE_TTOPTION , NULL , HFILL }\n }\n , {\n & hf_devmode_fields_collate , {\n \"Collate\" , \"spoolss.devmode.fields.collate\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , DEVMODE_COLLATE , NULL , HFILL }\n }\n , {\n & hf_devmode_fields_formname , {\n \"Form name\" , \"spoolss.devmode.fields.form_name\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , DEVMODE_FORMNAME , NULL , HFILL }\n }\n , {\n & hf_devmode_fields_logpixels , {\n \"Log pixels\" , \"spoolss.devmode.fields.log_pixels\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , DEVMODE_LOGPIXELS , NULL , HFILL }\n }\n , {\n & hf_devmode_fields_bitsperpel , {\n \"Bits per pel\" , \"spoolss.devmode.fields.bits_per_pel\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , DEVMODE_BITSPERPEL , NULL , HFILL }\n }\n , {\n & hf_devmode_fields_pelswidth , {\n \"Pels width\" , \"spoolss.devmode.fields.pels_width\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , DEVMODE_PELSWIDTH , NULL , HFILL }\n }\n , {\n & hf_devmode_fields_pelsheight , {\n \"Pels height\" , \"spoolss.devmode.fields.pels_height\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , DEVMODE_PELSHEIGHT , NULL , HFILL }\n }\n , {\n & hf_devmode_fields_displayflags , {\n \"Display flags\" , \"spoolss.devmode.fields.display_flags\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , DEVMODE_DISPLAYFLAGS , NULL , HFILL }\n }\n , {\n & hf_devmode_fields_displayfrequency , {\n \"Display frequency\" , \"spoolss.devmode.fields.display_frequency\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , DEVMODE_DISPLAYFREQUENCY , NULL , HFILL }\n }\n , {\n & hf_devmode_fields_icmmethod , {\n \"ICM method\" , \"spoolss.devmode.fields.icm_method\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , DEVMODE_ICMMETHOD , NULL , HFILL }\n }\n , {\n & hf_devmode_fields_icmintent , {\n \"ICM intent\" , \"spoolss.devmode.fields.icm_intent\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , DEVMODE_ICMINTENT , NULL , HFILL }\n }\n , {\n & hf_devmode_fields_mediatype , {\n \"Media type\" , \"spoolss.devmode.fields.media_type\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , DEVMODE_MEDIATYPE , NULL , HFILL }\n }\n , {\n & hf_devmode_fields_dithertype , {\n \"Dither type\" , \"spoolss.devmode.fields.dither_type\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , DEVMODE_DITHERTYPE , NULL , HFILL }\n }\n , {\n & hf_devmode_fields_panningwidth , {\n \"Panning width\" , \"spoolss.devmode.fields.panning_width\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , DEVMODE_PANNINGWIDTH , NULL , HFILL }\n }\n , {\n & hf_devmode_fields_panningheight , {\n \"Panning height\" , \"spoolss.devmode.fields.panning_height\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , DEVMODE_PANNINGHEIGHT , NULL , HFILL }\n }\n , {\n & hf_enumprinterdata_enumindex , {\n \"Enum index\" , \"spoolss.enumprinterdata.enumindex\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"Index for start of enumeration\" , HFILL }\n }\n , {\n & hf_enumprinterdata_value_offered , {\n \"Value size offered\" , \"spoolss.enumprinterdata.value_offered\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"Buffer size offered for printerdata value\" , HFILL }\n }\n , {\n & hf_enumprinterdata_data_offered , {\n \"Data size offered\" , \"spoolss.enumprinterdata.data_offered\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"Buffer size offered for printerdata data\" , HFILL }\n }\n , {\n & hf_enumprinterdata_value_len , {\n \"Value length\" , \"spoolss.enumprinterdata.value_len\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"Size of printerdata value\" , HFILL }\n }\n , {\n & hf_enumprinterdata_value_needed , {\n \"Value size needed\" , \"spoolss.enumprinterdata.value_needed\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"Buffer size needed for printerdata value\" , HFILL }\n }\n , {\n & hf_enumprinterdata_data_needed , {\n \"Data size needed\" , \"spoolss.enumprinterdata.data_needed\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"Buffer size needed for printerdata data\" , HFILL }\n }\n , {\n & hf_job_id , {\n \"Job ID\" , \"spoolss.job.id\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"Job identification number\" , HFILL }\n }\n , {\n & hf_job_status , {\n \"Job status\" , \"spoolss.job.status\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_job_status_paused , {\n \"Paused\" , \"spoolss.job.status.paused\" , FT_BOOLEAN , 32 , TFS ( & tfs_job_status_paused ) , JOB_STATUS_PAUSED , NULL , HFILL }\n }\n , {\n & hf_job_status_error , {\n \"Error\" , \"spoolss.job.status.error\" , FT_BOOLEAN , 32 , TFS ( & tfs_job_status_error ) , JOB_STATUS_ERROR , NULL , HFILL }\n }\n , {\n & hf_job_status_deleting , {\n \"Deleting\" , \"spoolss.job.status.deleting\" , FT_BOOLEAN , 32 , TFS ( & tfs_job_status_deleting ) , JOB_STATUS_DELETING , NULL , HFILL }\n }\n , {\n & hf_job_status_spooling , {\n \"Spooling\" , \"spoolss.job.status.spooling\" , FT_BOOLEAN , 32 , TFS ( & tfs_job_status_spooling ) , JOB_STATUS_SPOOLING , NULL , HFILL }\n }\n , {\n & hf_job_status_printing , {\n \"Printing\" , \"spoolss.job.status.printing\" , FT_BOOLEAN , 32 , TFS ( & tfs_job_status_printing ) , JOB_STATUS_PRINTING , NULL , HFILL }\n }\n , {\n & hf_job_status_offline , {\n \"Offline\" , \"spoolss.job.status.offline\" , FT_BOOLEAN , 32 , TFS ( & tfs_job_status_offline ) , JOB_STATUS_OFFLINE , NULL , HFILL }\n }\n , {\n & hf_job_status_paperout , {\n \"Paperout\" , \"spoolss.job.status.paperout\" , FT_BOOLEAN , 32 , TFS ( & tfs_job_status_paperout ) , JOB_STATUS_PAPEROUT , NULL , HFILL }\n }\n , {\n & hf_job_status_printed , {\n \"Printed\" , \"spoolss.job.status.printed\" , FT_BOOLEAN , 32 , TFS ( & tfs_job_status_printed ) , JOB_STATUS_PRINTED , NULL , HFILL }\n }\n , {\n & hf_job_status_deleted , {\n \"Deleted\" , \"spoolss.job.status.deleted\" , FT_BOOLEAN , 32 , TFS ( & tfs_job_status_deleted ) , JOB_STATUS_DELETED , NULL , HFILL }\n }\n , {\n & hf_job_status_blocked , {\n \"Blocked\" , \"spoolss.job.status.blocked\" , FT_BOOLEAN , 32 , TFS ( & tfs_job_status_blocked ) , JOB_STATUS_BLOCKED , NULL , HFILL }\n }\n , {\n & hf_job_status_user_intervention , {\n \"User intervention\" , \"spoolss.job.status.user_intervention\" , FT_BOOLEAN , 32 , TFS ( & tfs_job_status_user_intervention ) , JOB_STATUS_USER_INTERVENTION , NULL , HFILL }\n }\n , {\n & hf_job_priority , {\n \"Job priority\" , \"spoolss.job.priority\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_job_position , {\n \"Job position\" , \"spoolss.job.position\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_job_totalpages , {\n \"Job total pages\" , \"spoolss.job.totalpages\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_job_totalbytes , {\n \"Job total bytes\" , \"spoolss.job.totalbytes\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_job_bytesprinted , {\n \"Job bytes printed\" , \"spoolss.job.bytesprinted\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_job_pagesprinted , {\n \"Job pages printed\" , \"spoolss.job.pagesprinted\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_job_size , {\n \"Job size\" , \"spoolss.job.size\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_form , {\n \"Data\" , \"spoolss.form\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_form_level , {\n \"Level\" , \"spoolss.form.level\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_form_name , {\n \"Name\" , \"spoolss.form.name\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_form_flags , {\n \"Flags\" , \"spoolss.form.flags\" , FT_UINT32 , BASE_DEC , VALS ( form_type_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_form_unknown , {\n \"Unknown\" , \"spoolss.form.unknown\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_form_width , {\n \"Width\" , \"spoolss.form.width\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_form_height , {\n \"Height\" , \"spoolss.form.height\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_form_left_margin , {\n \"Left margin\" , \"spoolss.form.left\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Left\" , HFILL }\n }\n , {\n & hf_form_top_margin , {\n \"Top\" , \"spoolss.form.top\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_form_horiz_len , {\n \"Horizontal\" , \"spoolss.form.horiz\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_form_vert_len , {\n \"Vertical\" , \"spoolss.form.vert\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_enumforms_num , {\n \"Num\" , \"spoolss.enumforms.num\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_notify_options_version , {\n \"Version\" , \"spoolss.notify_options.version\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_notify_options_flags , {\n \"Flags\" , \"spoolss.notify_options.flags\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_notify_options_count , {\n \"Count\" , \"spoolss.notify_options.count\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_notify_option_type , {\n \"Type\" , \"spoolss.notify_option.type\" , FT_UINT16 , BASE_DEC , VALS ( printer_notify_types ) , 0 , NULL , HFILL }\n }\n , {\n & hf_notify_option_reserved1 , {\n \"Reserved1\" , \"spoolss.notify_option.reserved1\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_notify_option_reserved2 , {\n \"Reserved2\" , \"spoolss.notify_option.reserved2\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_notify_option_reserved3 , {\n \"Reserved3\" , \"spoolss.notify_option.reserved3\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_notify_option_count , {\n \"Count\" , \"spoolss.notify_option.count\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_notify_option_data_count , {\n \"Count\" , \"spoolss.notify_option_data.count\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_notify_options_flags_refresh , {\n \"Refresh\" , \"spoolss.notify_options.flags.refresh\" , FT_BOOLEAN , 32 , TFS ( & tfs_notify_options_flags_refresh ) , PRINTER_NOTIFY_OPTIONS_REFRESH , NULL , HFILL }\n }\n , {\n & hf_notify_info_count , {\n \"Count\" , \"spoolss.notify_info.count\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_notify_info_version , {\n \"Version\" , \"spoolss.notify_info.version\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_notify_info_flags , {\n \"Flags\" , \"spoolss.notify_info.flags\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_notify_info_data_type , {\n \"Type\" , \"spoolss.notify_info_data.type\" , FT_UINT16 , BASE_DEC , VALS ( printer_notify_types ) , 0 , NULL , HFILL }\n }\n , {\n & hf_notify_field , {\n \"Field\" , \"spoolss.notify_field\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_notify_info_data_count , {\n \"Count\" , \"spoolss.notify_info_data.count\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_notify_info_data_id , {\n \"Job Id\" , \"spoolss.notify_info_data.jobid\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_notify_info_data_value1 , {\n \"Value1\" , \"spoolss.notify_info_data.value1\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_notify_info_data_value2 , {\n \"Value2\" , \"spoolss.notify_info_data.value2\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_notify_info_data_bufsize , {\n \"Buffer size\" , \"spoolss.notify_info_data.bufsize\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_notify_info_data_buffer , {\n \"Buffer\" , \"spoolss.notify_info_data.buffer\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_notify_info_data_buffer_len , {\n \"Buffer length\" , \"spoolss.notify_info_data.buffer.len\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_notify_info_data_buffer_data , {\n \"Buffer data\" , \"spoolss.notify_info_data.buffer.data\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rffpcnex_options , {\n \"Options\" , \"spoolss.rffpcnex.options\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"RFFPCNEX options\" , HFILL }\n }\n , {\n & hf_printerlocal , {\n \"Printer local\" , \"spoolss.printer_local\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rffpcnex_flags , {\n \"RFFPCNEX flags\" , \"spoolss.rffpcnex.flags\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rffpcnex_flags_add_printer , {\n \"Add printer\" , \"spoolss.rffpcnex.flags.add_printer\" , FT_BOOLEAN , 32 , TFS ( & tfs_rffpcnex_flags_add_printer ) , SPOOLSS_PRINTER_CHANGE_ADD_PRINTER , NULL , HFILL }\n }\n , {\n & hf_rffpcnex_flags_set_printer , {\n \"Set printer\" , \"spoolss.rffpcnex.flags.set_printer\" , FT_BOOLEAN , 32 , TFS ( & tfs_rffpcnex_flags_set_printer ) , SPOOLSS_PRINTER_CHANGE_SET_PRINTER , NULL , HFILL }\n }\n , {\n & hf_rffpcnex_flags_delete_printer , {\n \"Delete printer\" , \"spoolss.rffpcnex.flags.delete_printer\" , FT_BOOLEAN , 32 , TFS ( & tfs_rffpcnex_flags_delete_printer ) , SPOOLSS_PRINTER_CHANGE_DELETE_PRINTER , NULL , HFILL }\n }\n , {\n & hf_rffpcnex_flags_add_job , {\n \"Add job\" , \"spoolss.rffpcnex.flags.add_job\" , FT_BOOLEAN , 32 , TFS ( & tfs_rffpcnex_flags_add_job ) , SPOOLSS_PRINTER_CHANGE_ADD_JOB , NULL , HFILL }\n }\n , {\n & hf_rffpcnex_flags_set_job , {\n \"Set job\" , \"spoolss.rffpcnex.flags.set_job\" , FT_BOOLEAN , 32 , TFS ( & tfs_rffpcnex_flags_set_job ) , SPOOLSS_PRINTER_CHANGE_SET_JOB , NULL , HFILL }\n }\n , {\n & hf_rffpcnex_flags_delete_job , {\n \"Delete job\" , \"spoolss.rffpcnex.flags.delete_job\" , FT_BOOLEAN , 32 , TFS ( & tfs_rffpcnex_flags_delete_job ) , SPOOLSS_PRINTER_CHANGE_DELETE_JOB , NULL , HFILL }\n }\n , {\n & hf_rffpcnex_flags_write_job , {\n \"Write job\" , \"spoolss.rffpcnex.flags.write_job\" , FT_BOOLEAN , 32 , TFS ( & tfs_rffpcnex_flags_write_job ) , SPOOLSS_PRINTER_CHANGE_WRITE_JOB , NULL , HFILL }\n }\n , {\n & hf_rffpcnex_flags_add_form , {\n \"Add form\" , \"spoolss.rffpcnex.flags.add_form\" , FT_BOOLEAN , 32 , TFS ( & tfs_rffpcnex_flags_add_form ) , SPOOLSS_PRINTER_CHANGE_ADD_FORM , NULL , HFILL }\n }\n , {\n & hf_rffpcnex_flags_set_form , {\n \"Set form\" , \"spoolss.rffpcnex.flags.set_form\" , FT_BOOLEAN , 32 , TFS ( & tfs_rffpcnex_flags_set_form ) , SPOOLSS_PRINTER_CHANGE_SET_FORM , NULL , HFILL }\n }\n , {\n & hf_rffpcnex_flags_delete_form , {\n \"Delete form\" , \"spoolss.rffpcnex.flags.delete_form\" , FT_BOOLEAN , 32 , TFS ( & tfs_rffpcnex_flags_delete_form ) , SPOOLSS_PRINTER_CHANGE_DELETE_FORM , NULL , HFILL }\n }\n , {\n & hf_rffpcnex_flags_add_port , {\n \"Add port\" , \"spoolss.rffpcnex.flags.add_port\" , FT_BOOLEAN , 32 , TFS ( & tfs_rffpcnex_flags_add_port ) , SPOOLSS_PRINTER_CHANGE_ADD_PORT , NULL , HFILL }\n }\n , {\n & hf_rffpcnex_flags_configure_port , {\n \"Configure port\" , \"spoolss.rffpcnex.flags.configure_port\" , FT_BOOLEAN , 32 , TFS ( & tfs_rffpcnex_flags_configure_port ) , SPOOLSS_PRINTER_CHANGE_CONFIGURE_PORT , NULL , HFILL }\n }\n , {\n & hf_rffpcnex_flags_delete_port , {\n \"Delete port\" , \"spoolss.rffpcnex.flags.delete_port\" , FT_BOOLEAN , 32 , TFS ( & tfs_rffpcnex_flags_delete_port ) , SPOOLSS_PRINTER_CHANGE_DELETE_PORT , NULL , HFILL }\n }\n , {\n & hf_rffpcnex_flags_add_print_processor , {\n \"Add processor\" , \"spoolss.rffpcnex.flags.add_processor\" , FT_BOOLEAN , 32 , TFS ( & tfs_rffpcnex_flags_add_print_processor ) , SPOOLSS_PRINTER_CHANGE_ADD_PRINT_PROCESSOR , NULL , HFILL }\n }\n , {\n & hf_rffpcnex_flags_delete_print_processor , {\n \"Delete processor\" , \"spoolss.rffpcnex.flags.delete_processor\" , FT_BOOLEAN , 32 , TFS ( & tfs_rffpcnex_flags_delete_print_processor ) , SPOOLSS_PRINTER_CHANGE_DELETE_PRINT_PROCESSOR , NULL , HFILL }\n }\n , {\n & hf_rffpcnex_flags_add_driver , {\n \"Add driver\" , \"spoolss.rffpcnex.flags.add_driver\" , FT_BOOLEAN , 32 , TFS ( & tfs_rffpcnex_flags_add_driver ) , SPOOLSS_PRINTER_CHANGE_ADD_PRINTER_DRIVER , NULL , HFILL }\n }\n , {\n & hf_rffpcnex_flags_set_driver , {\n \"Set driver\" , \"spoolss.rffpcnex.flags.set_driver\" , FT_BOOLEAN , 32 , TFS ( & tfs_rffpcnex_flags_set_driver ) , SPOOLSS_PRINTER_CHANGE_SET_PRINTER_DRIVER , NULL , HFILL }\n }\n , {\n & hf_rffpcnex_flags_delete_driver , {\n \"Delete driver\" , \"spoolss.rffpcnex.flags.delete_driver\" , FT_BOOLEAN , 32 , TFS ( & tfs_rffpcnex_flags_delete_driver ) , SPOOLSS_PRINTER_CHANGE_DELETE_PRINTER_DRIVER , NULL , HFILL }\n }\n , {\n & hf_rffpcnex_flags_timeout , {\n \"Timeout\" , \"spoolss.rffpcnex.flags.timeout\" , FT_BOOLEAN , 32 , TFS ( & tfs_rffpcnex_flags_timeout ) , SPOOLSS_PRINTER_CHANGE_TIMEOUT , NULL , HFILL }\n }\n , {\n & hf_rffpcnex_flags_failed_printer_connection , {\n \"Failed printer connection\" , \"spoolss.rffpcnex.flags.failed_connection_printer\" , FT_BOOLEAN , 32 , TFS ( & tfs_rffpcnex_flags_failed_connection_printer ) , SPOOLSS_PRINTER_CHANGE_FAILED_CONNECTION_PRINTER , NULL , HFILL }\n }\n , {\n & hf_rrpcn_changelow , {\n \"Change low\" , \"spoolss.rrpcn.changelow\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rrpcn_changehigh , {\n \"Change high\" , \"spoolss.rrpcn.changehigh\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rrpcn_unk0 , {\n \"Unknown 0\" , \"spoolss.rrpcn.unk0\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rrpcn_unk1 , {\n \"Unknown 1\" , \"spoolss.rrpcn.unk1\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_replyopenprinter_unk0 , {\n \"Unknown 0\" , \"spoolss.replyopenprinter.unk0\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_replyopenprinter_unk1 , {\n \"Unknown 1\" , \"spoolss.replyopenprinter.unk1\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_devicename , {\n \"DeviceName\" , \"spoolss.devmode.devicename\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_devmode_form_name , {\n \"FormName\" , \"spoolss.devmode.form_name\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_relative_string , {\n \"String\" , \"spoolss.relative_string\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_value_name , {\n \"Value Name\" , \"spoolss.value_name\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_keybuffer , {\n \"Key\" , \"spoolss.hf_keybuffer\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_value_string , {\n \"Value\" , \"spoolss.value_string\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_attributes , {\n \"Attributes\" , \"spoolss.printer_attributes\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_attributes_queued , {\n \"Queued\" , \"spoolss.printer_attributes.queued\" , FT_BOOLEAN , 32 , TFS ( & tfs_printer_attributes_queued ) , PRINTER_ATTRIBUTE_QUEUED , NULL , HFILL }\n }\n , {\n & hf_printer_attributes_direct , {\n \"Direct\" , \"spoolss.printer_attributes.direct\" , FT_BOOLEAN , 32 , TFS ( & tfs_printer_attributes_direct ) , PRINTER_ATTRIBUTE_DIRECT , NULL , HFILL }\n }\n , {\n & hf_printer_attributes_default , {\n \"Default (9x/ME only)\" , \"spoolss.printer_attributes.default\" , FT_BOOLEAN , 32 , TFS ( & tfs_printer_attributes_default ) , PRINTER_ATTRIBUTE_DEFAULT , \"Default\" , HFILL }\n }\n , {\n & hf_printer_attributes_shared , {\n \"Shared\" , \"spoolss.printer_attributes.shared\" , FT_BOOLEAN , 32 , TFS ( & tfs_printer_attributes_shared ) , PRINTER_ATTRIBUTE_SHARED , NULL , HFILL }\n }\n , {\n & hf_printer_attributes_network , {\n \"Network\" , \"spoolss.printer_attributes.network\" , FT_BOOLEAN , 32 , TFS ( & tfs_printer_attributes_network ) , PRINTER_ATTRIBUTE_NETWORK , NULL , HFILL }\n }\n , {\n & hf_printer_attributes_hidden , {\n \"Hidden\" , \"spoolss.printer_attributes.hidden\" , FT_BOOLEAN , 32 , TFS ( & tfs_printer_attributes_hidden ) , PRINTER_ATTRIBUTE_HIDDEN , NULL , HFILL }\n }\n , {\n & hf_printer_attributes_local , {\n \"Local\" , \"spoolss.printer_attributes.local\" , FT_BOOLEAN , 32 , TFS ( & tfs_printer_attributes_local ) , PRINTER_ATTRIBUTE_LOCAL , NULL , HFILL }\n }\n , {\n & hf_printer_attributes_enable_devq , {\n \"Enable devq\" , \"spoolss.printer_attributes.enable_devq\" , FT_BOOLEAN , 32 , TFS ( & tfs_printer_attributes_enable_devq ) , PRINTER_ATTRIBUTE_ENABLE_DEVQ , \"Enable evq\" , HFILL }\n }\n , {\n & hf_printer_attributes_keep_printed_jobs , {\n \"Keep printed jobs\" , \"spoolss.printer_attributes.keep_printed_jobs\" , FT_BOOLEAN , 32 , TFS ( & tfs_printer_attributes_keep_printed_jobs ) , PRINTER_ATTRIBUTE_KEEPPRINTEDJOBS , NULL , HFILL }\n }\n , {\n & hf_printer_attributes_do_complete_first , {\n \"Do complete first\" , \"spoolss.printer_attributes.do_complete_first\" , FT_BOOLEAN , 32 , TFS ( & tfs_printer_attributes_do_complete_first ) , PRINTER_ATTRIBUTE_DO_COMPLETE_FIRST , NULL , HFILL }\n }\n , {\n & hf_printer_attributes_work_offline , {\n \"Work offline (9x/ME only)\" , \"spoolss.printer_attributes.work_offline\" , FT_BOOLEAN , 32 , TFS ( & tfs_printer_attributes_work_offline ) , PRINTER_ATTRIBUTE_WORK_OFFLINE , \"Work offline\" , HFILL }\n }\n , {\n & hf_printer_attributes_enable_bidi , {\n \"Enable bidi (9x/ME only)\" , \"spoolss.printer_attributes.enable_bidi\" , FT_BOOLEAN , 32 , TFS ( & tfs_printer_attributes_enable_bidi ) , PRINTER_ATTRIBUTE_ENABLE_BIDI , \"Enable bidi\" , HFILL }\n }\n , {\n & hf_printer_attributes_raw_only , {\n \"Raw only\" , \"spoolss.printer_attributes.raw_only\" , FT_BOOLEAN , 32 , TFS ( & tfs_printer_attributes_raw_only ) , PRINTER_ATTRIBUTE_RAW_ONLY , NULL , HFILL }\n }\n , {\n & hf_printer_attributes_published , {\n \"Published\" , \"spoolss.printer_attributes.published\" , FT_BOOLEAN , 32 , TFS ( & tfs_printer_attributes_published ) , PRINTER_ATTRIBUTE_PUBLISHED , NULL , HFILL }\n }\n , {\n & hf_time_year , {\n \"Year\" , \"spoolss.time.year\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_time_month , {\n \"Month\" , \"spoolss.time.month\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_time_dow , {\n \"Day of week\" , \"spoolss.time.dow\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_time_day , {\n \"Day\" , \"spoolss.time.day\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_time_hour , {\n \"Hour\" , \"spoolss.time.hour\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_time_minute , {\n \"Minute\" , \"spoolss.time.minute\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_time_second , {\n \"Second\" , \"spoolss.time.second\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_time_msec , {\n \"Millisecond\" , \"spoolss.time.msec\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_userlevel_size , {\n \"Size\" , \"spoolss.userlevel.size\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_userlevel_client , {\n \"Client\" , \"spoolss.userlevel.client\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_userlevel_user , {\n \"User\" , \"spoolss.userlevel.user\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_userlevel_build , {\n \"Build\" , \"spoolss.userlevel.build\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_userlevel_major , {\n \"Major\" , \"spoolss.userlevel.major\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_userlevel_minor , {\n \"Minor\" , \"spoolss.userlevel.minor\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_userlevel_processor , {\n \"Processor\" , \"spoolss.userlevel.processor\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_enumprinterdataex_name_offset , {\n \"Name offset\" , \"spoolss.enumprinterdataex.name_offset\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_enumprinterdataex_name_len , {\n \"Name len\" , \"spoolss.enumprinterdataex.name_len\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_enumprinterdataex_name , {\n \"Name\" , \"spoolss.enumprinterdataex.name\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_enumprinterdataex_val_offset , {\n \"Value offset\" , \"spoolss.enumprinterdataex.value_offset\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_enumprinterdataex_val_len , {\n \"Value len\" , \"spoolss.enumprinterdataex.value_len\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_enumprinterdataex_val_dword_high , {\n \"DWORD value (high)\" , \"spoolss.enumprinterdataex.val_dword.high\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_enumprinterdataex_value_null , {\n \"Value\" , \"spoolss.enumprinterdataex.val_null\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_enumprinterdataex_value_uint , {\n \"Value\" , \"spoolss.enumprinterdataex.val_uint\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_enumprinterdataex_value_binary , {\n \"Value\" , \"spoolss.enumprinterdataex.val_binary\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_enumprinterdataex_value_multi_sz , {\n \"Value\" , \"spoolss.enumprinterdataex.val_multi_sz\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_enumprinterdataex_val_dword_low , {\n \"DWORD value (low)\" , \"spoolss.enumprinterdataex.val_dword.low\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_routerreplyprinter_condition , {\n \"Condition\" , \"spoolss.routerreplyprinter.condition\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_routerreplyprinter_unknown1 , {\n \"Unknown1\" , \"spoolss.routerreplyprinter.unknown1\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_routerreplyprinter_changeid , {\n \"Change id\" , \"spoolss.routerreplyprinter.changeid\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_keybuffer_size , {\n \"Key Buffer size\" , \"spoolss.keybuffer.size\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"Size of buffer\" , HFILL }\n }\n , {\n & hf_setjob_cmd , {\n \"Set job command\" , \"spoolss.setjob.cmd\" , FT_UINT32 , BASE_DEC , VALS ( setjob_commands ) , 0x0 , \"Printer data name\" , HFILL }\n }\n , {\n & hf_enumjobs_firstjob , {\n \"First job\" , \"spoolss.enumjobs.firstjob\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"Index of first job to return\" , HFILL }\n }\n , {\n & hf_enumjobs_numjobs , {\n \"Num jobs\" , \"spoolss.enumjobs.numjobs\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"Number of jobs to return\" , HFILL }\n }\n , {\n & hf_secdescbuf_maxlen , {\n \"Max len\" , \"spoolss.secdescbuf.max_len\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_secdescbuf_undoc , {\n \"Undocumented\" , \"spoolss.secdescbuf.undoc\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_secdescbuf_len , {\n \"Length\" , \"spoolss.secdescbuf.len\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_spool_printer_info_devmode_ptr , {\n \"Devmode pointer\" , \"spoolss.spoolprinterinfo.devmode_ptr\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_spool_printer_info_secdesc_ptr , {\n \"Secdesc pointer\" , \"spoolss.spoolprinterinfo.secdesc_ptr\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_writeprinter_numwritten , {\n \"Num written\" , \"spoolss.writeprinter.numwritten\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"Number of bytes written\" , HFILL }\n }\n , {\n & hf_setprinterdataex_max_len , {\n \"Max len\" , \"spoolss.setprinterdataex.max_len\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_setprinterdataex_real_len , {\n \"Real len\" , \"spoolss.setprinterdataex.real_len\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_setprinterdataex_data , {\n \"Data\" , \"spoolss.setprinterdataex.data\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_access_required , {\n \"Access required\" , \"spoolss.access_required\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_server_access_admin , {\n \"Server admin\" , \"spoolss.access_mask.server_admin\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , SERVER_ACCESS_ADMINISTER , NULL , HFILL }\n }\n , {\n & hf_server_access_enum , {\n \"Server enum\" , \"spoolss.access_mask.server_enum\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , SERVER_ACCESS_ENUMERATE , NULL , HFILL }\n }\n , {\n & hf_printer_access_admin , {\n \"Printer admin\" , \"spoolss.access_mask.printer_admin\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , PRINTER_ACCESS_ADMINISTER , NULL , HFILL }\n }\n , {\n & hf_printer_access_use , {\n \"Printer use\" , \"spoolss.access_mask.printer_use\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , PRINTER_ACCESS_USE , NULL , HFILL }\n }\n , {\n & hf_job_access_admin , {\n \"Job admin\" , \"spoolss.access_mask.job_admin\" , FT_BOOLEAN , 32 , TFS ( & tfs_set_notset ) , JOB_ACCESS_ADMINISTER , NULL , HFILL }\n }\n , {\n & hf_printer_cjobs , {\n \"CJobs\" , \"spoolss.printer.cjobs\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_total_jobs , {\n \"Total jobs\" , \"spoolss.printer.total_jobs\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_total_bytes , {\n \"Total bytes\" , \"spoolss.printer.total_bytes\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_global_counter , {\n \"Global counter\" , \"spoolss.printer.global_counter\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_total_pages , {\n \"Total pages\" , \"spoolss.printer.total_pages\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_major_version , {\n \"Major version\" , \"spoolss.printer.major_version\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_build_version , {\n \"Build version\" , \"spoolss.printer.build_version\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_unk7 , {\n \"Unknown 7\" , \"spoolss.printer.unknown7\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_unk8 , {\n \"Unknown 8\" , \"spoolss.printer.unknown8\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_unk9 , {\n \"Unknown 9\" , \"spoolss.printer.unknown9\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_session_ctr , {\n \"Session counter\" , \"spoolss.printer.session_ctr\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Sessopm counter\" , HFILL }\n }\n , {\n & hf_printer_unk11 , {\n \"Unknown 11\" , \"spoolss.printer.unknown11\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_printer_errors , {\n \"Printer errors\" , \"spoolss.printer.printer_errors\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_unk13 , {\n \"Unknown 13\" , \"spoolss.printer.unknown13\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_unk14 , {\n \"Unknown 14\" , \"spoolss.printer.unknown14\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_unk15 , {\n \"Unknown 15\" , \"spoolss.printer.unknown15\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_unk16 , {\n \"Unknown 16\" , \"spoolss.printer.unknown16\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_changeid , {\n \"Change id\" , \"spoolss.printer.changeid\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_unk18 , {\n \"Unknown 18\" , \"spoolss.printer.unknown18\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_unk20 , {\n \"Unknown 20\" , \"spoolss.printer.unknown20\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_c_setprinter , {\n \"Csetprinter\" , \"spoolss.printer.c_setprinter\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_unk22 , {\n \"Unknown 22\" , \"spoolss.printer.unknown22\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_unk23 , {\n \"Unknown 23\" , \"spoolss.printer.unknown23\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_unk24 , {\n \"Unknown 24\" , \"spoolss.printer.unknown24\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_unk25 , {\n \"Unknown 25\" , \"spoolss.printer.unknown25\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_unk26 , {\n \"Unknown 26\" , \"spoolss.printer.unknown26\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_unk27 , {\n \"Unknown 27\" , \"spoolss.printer.unknown27\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_unk28 , {\n \"Unknown 28\" , \"spoolss.printer.unknown28\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_unk29 , {\n \"Unknown 29\" , \"spoolss.printer.unknown29\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_flags , {\n \"Flags\" , \"spoolss.printer.flags\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_priority , {\n \"Priority\" , \"spoolss.printer.priority\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_default_priority , {\n \"Default Priority\" , \"spoolss.printer.default_priority\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_averageppm , {\n \"Average PPM\" , \"spoolss.printer.averageppm\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_jobs , {\n \"Jobs\" , \"spoolss.printer.jobs\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_guid , {\n \"GUID\" , \"spoolss.printer.guid\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_printer_action , {\n \"Action\" , \"spoolss.printer.action\" , FT_UINT32 , BASE_DEC , VALS ( getprinter_action_vals ) , 0 , NULL , HFILL }\n }\n , }\n ;\n static gint * ett [ ] = {\n & ett_dcerpc_spoolss , & ett_PRINTER_DATATYPE , & ett_DEVMODE_CTR , & ett_DEVMODE , & ett_DEVMODE_fields , & ett_USER_LEVEL_CTR , & ett_USER_LEVEL_1 , & ett_BUFFER , & ett_PRINTER_INFO , & ett_SPOOL_PRINTER_INFO_LEVEL , & ett_PRINTER_INFO_0 , & ett_PRINTER_INFO_1 , & ett_PRINTER_INFO_2 , & ett_PRINTER_INFO_3 , & ett_PRINTER_INFO_7 , & ett_RELSTR , & ett_RELSTR_ARRAY , & ett_FORM_REL , & ett_FORM_CTR , & ett_FORM_1 , & ett_JOB_INFO_1 , & ett_JOB_INFO_2 , & ett_SEC_DESC_BUF , & ett_SYSTEM_TIME , & ett_DOC_INFO_1 , & ett_DOC_INFO , & ett_DOC_INFO_CTR , & ett_printerdata_value , & ett_printerdata_data , & ett_writeprinter_buffer , & ett_DRIVER_INFO_1 , & ett_DRIVER_INFO_2 , & ett_DRIVER_INFO_3 , & ett_DRIVER_INFO_6 , & ett_DRIVER_INFO_101 , & ett_rffpcnex_flags , & ett_notify_options_flags , & ett_NOTIFY_INFO_DATA , & ett_NOTIFY_OPTION , & ett_printer_attributes , & ett_job_status , & ett_enumprinters_flags , & ett_PRINTER_DATA_CTR , & ett_printer_enumdataex_value , }\n ;\n static ei_register_info ei [ ] = {\n {\n & ei_unimplemented_dissector , {\n \"spoolss.unimplemented_dissector\" , PI_UNDECODED , PI_WARN , \"Unimplemented dissector: SPOOLSS\" , EXPFILL }\n }\n , {\n & ei_unknown_data , {\n \"spoolss.unknown_data\" , PI_UNDECODED , PI_WARN , \"Unknown data follows\" , EXPFILL }\n }\n , {\n & ei_printer_info_level , {\n \"spoolss.printer.unknown\" , PI_PROTOCOL , PI_WARN , \"Unknown printer info level\" , EXPFILL }\n }\n , {\n & ei_spool_printer_info_level , {\n \"spoolss.spool_printer.unknown\" , PI_PROTOCOL , PI_WARN , \"Unknown spool printer info level\" , EXPFILL }\n }\n , {\n & ei_form_level , {\n \"spoolss.form.level.unknown\" , PI_PROTOCOL , PI_WARN , \"Unknown form info level\" , EXPFILL }\n }\n , {\n & ei_job_info_level , {\n \"spoolss.job_info.level.unknown\" , PI_PROTOCOL , PI_WARN , \"Unknown job info level\" , EXPFILL }\n }\n , {\n & ei_driver_info_level , {\n \"spoolss.driver_info.level.unknown\" , PI_PROTOCOL , PI_WARN , \"Unknown driver info level\" , EXPFILL }\n }\n , {\n & ei_level , {\n \"spoolss.level.unknown\" , PI_PROTOCOL , PI_WARN , \"Info level unknown\" , EXPFILL }\n }\n , {\n & ei_notify_info_data_type , {\n \"spoolss.notify_info_data.type.unknown\" , PI_PROTOCOL , PI_WARN , \"Unknown notify type\" , EXPFILL }\n }\n , {\n & ei_enumprinterdataex_value , {\n \"spoolss.enumprinterdataex.val_unknown\" , PI_PROTOCOL , PI_WARN , \"Unknown value type\" , EXPFILL }\n }\n , }\n ;\n expert_module_t * expert_dcerpc_spoolss ;\n proto_dcerpc_spoolss = proto_register_protocol ( \"Microsoft Spool Subsystem\" , \"SPOOLSS\" , \"spoolss\" ) ;\n proto_register_field_array ( proto_dcerpc_spoolss , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n expert_dcerpc_spoolss = expert_register_protocol ( proto_dcerpc_spoolss ) ;\n expert_register_field_array ( expert_dcerpc_spoolss , ei , array_length ( ei ) ) ;\n }"}
{"idx": 10279, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , NoAbortMetricsOnClientRedirect ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n GURL first_url ( embedded_test_server ( ) -> GetURL ( \"/title1.html\" ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , first_url ) ;\n GURL second_url ( embedded_test_server ( ) -> GetURL ( \"/title2.html\" ) ) ;\n NavigateParams params ( browser ( ) , second_url , ui : : PAGE_TRANSITION_LINK ) ;\n content : : TestNavigationManager manager ( browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) , second_url ) ;\n Navigate ( & params ) ;\n EXPECT_TRUE ( manager . WaitForRequestStart ( ) ) ;\n {\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : LOAD_EVENT ) ;\n EXPECT_TRUE ( content : : ExecuteScript ( browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) , \"window.location.reload();\n\" ) ) ;\n waiter -> Wait ( ) ;\n }\n manager . WaitForNavigationFinished ( ) ;\n EXPECT_TRUE ( histogram_tester_ . GetTotalCountsForPrefix ( \"PageLoad.Experimental.AbortTiming.\" ) . empty ( ) ) ;\n }"}
{"idx": 10280, "target": 0, "func": "static int SpoolssEnumPrinterDrivers_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ;\n guint32 level = GPOINTER_TO_UINT ( dcv -> se_data ) , num_drivers , i ;\n int buffer_offset ;\n BUFFER buffer ;\n offset = dissect_spoolss_buffer ( tvb , offset , pinfo , tree , di , drep , & buffer ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_needed , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_returned , & num_drivers ) ;\n buffer_offset = 0 ;\n for ( i = 0 ;\n i < num_drivers ;\n i ++ ) {\n switch ( level ) {\n case 1 : buffer_offset = dissect_DRIVER_INFO_1 ( buffer . tvb , buffer_offset , pinfo , buffer . tree , di , drep ) ;\n break ;\n case 2 : buffer_offset = dissect_DRIVER_INFO_2 ( buffer . tvb , buffer_offset , pinfo , buffer . tree , di , drep ) ;\n break ;\n case 3 : buffer_offset = dissect_DRIVER_INFO_3 ( buffer . tvb , buffer_offset , pinfo , buffer . tree , di , drep ) ;\n break ;\n case 6 : buffer_offset = dissect_DRIVER_INFO_6 ( buffer . tvb , buffer_offset , pinfo , buffer . tree , di , drep ) ;\n break ;\n case 101 : dissect_DRIVER_INFO_101 ( buffer . tvb , buffer_offset , pinfo , buffer . tree , di , drep ) ;\n goto done ;\n default : proto_tree_add_expert_format ( buffer . tree , pinfo , & ei_driver_info_level , buffer . tvb , buffer_offset , - 1 , \"Unknown driver info level %d\" , level ) ;\n goto done ;\n }\n }\n done : offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 10281, "target": 0, "func": "static void dtap_cc_release_complete ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_FALSE ;\n ELEM_OPT_TLV ( 0x08 , GSM_A_PDU_TYPE_DTAP , DE_CAUSE , NULL ) ;\n ELEM_OPT_TLV ( 0x1c , GSM_A_PDU_TYPE_DTAP , DE_FACILITY , NULL ) ;\n ELEM_OPT_TLV ( 0x7e , GSM_A_PDU_TYPE_DTAP , DE_USER_USER , NULL ) ;\n ELEM_OPT_TLV ( 0x7f , GSM_A_PDU_TYPE_DTAP , DE_SS_VER_IND , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 10282, "target": 0, "func": "static jpc_enc_prc_t * prc_create ( jpc_enc_prc_t * prc , jpc_enc_cp_t * cp , jpc_enc_band_t * band ) {\n uint_fast32_t prcno ;\n uint_fast32_t prcxind ;\n uint_fast32_t prcyind ;\n uint_fast32_t cbgtlx ;\n uint_fast32_t cbgtly ;\n uint_fast32_t tlprctlx ;\n uint_fast32_t tlprctly ;\n uint_fast32_t tlcbgtlx ;\n uint_fast32_t tlcbgtly ;\n uint_fast16_t rlvlno ;\n jpc_enc_rlvl_t * rlvl ;\n uint_fast32_t tlcblktlx ;\n uint_fast32_t tlcblktly ;\n uint_fast32_t brcblkbrx ;\n uint_fast32_t brcblkbry ;\n uint_fast32_t cblkno ;\n jpc_enc_cblk_t * cblk ;\n jpc_enc_tcmpt_t * tcmpt ;\n prc -> cblks = 0 ;\n prc -> incltree = 0 ;\n prc -> savincltree = 0 ;\n prc -> nlibtree = 0 ;\n prc -> savnlibtree = 0 ;\n rlvl = band -> rlvl ;\n tcmpt = rlvl -> tcmpt ;\n rlvlno = rlvl - tcmpt -> rlvls ;\n prcno = prc - band -> prcs ;\n prcxind = prcno % rlvl -> numhprcs ;\n prcyind = prcno / rlvl -> numhprcs ;\n prc -> band = band ;\n tlprctlx = JPC_FLOORTOMULTPOW2 ( rlvl -> tlx , rlvl -> prcwidthexpn ) ;\n tlprctly = JPC_FLOORTOMULTPOW2 ( rlvl -> tly , rlvl -> prcheightexpn ) ;\n if ( ! rlvlno ) {\n tlcbgtlx = tlprctlx ;\n tlcbgtly = tlprctly ;\n }\n else {\n tlcbgtlx = JPC_CEILDIVPOW2 ( tlprctlx , 1 ) ;\n tlcbgtly = JPC_CEILDIVPOW2 ( tlprctly , 1 ) ;\n }\n cbgtlx = tlcbgtlx + ( prcxind << rlvl -> cbgwidthexpn ) ;\n cbgtly = tlcbgtly + ( prcyind << rlvl -> cbgheightexpn ) ;\n prc -> tlx = JAS_MAX ( jas_seq2d_xstart ( band -> data ) , cbgtlx ) ;\n prc -> tly = JAS_MAX ( jas_seq2d_ystart ( band -> data ) , cbgtly ) ;\n prc -> brx = JAS_MIN ( jas_seq2d_xend ( band -> data ) , cbgtlx + ( 1 << rlvl -> cbgwidthexpn ) ) ;\n prc -> bry = JAS_MIN ( jas_seq2d_yend ( band -> data ) , cbgtly + ( 1 << rlvl -> cbgheightexpn ) ) ;\n if ( prc -> tlx < prc -> brx && prc -> tly < prc -> bry ) {\n tlcblktlx = JPC_FLOORTOMULTPOW2 ( prc -> tlx , rlvl -> cblkwidthexpn ) ;\n tlcblktly = JPC_FLOORTOMULTPOW2 ( prc -> tly , rlvl -> cblkheightexpn ) ;\n brcblkbrx = JPC_CEILTOMULTPOW2 ( prc -> brx , rlvl -> cblkwidthexpn ) ;\n brcblkbry = JPC_CEILTOMULTPOW2 ( prc -> bry , rlvl -> cblkheightexpn ) ;\n prc -> numhcblks = JPC_FLOORDIVPOW2 ( brcblkbrx - tlcblktlx , rlvl -> cblkwidthexpn ) ;\n prc -> numvcblks = JPC_FLOORDIVPOW2 ( brcblkbry - tlcblktly , rlvl -> cblkheightexpn ) ;\n prc -> numcblks = prc -> numhcblks * prc -> numvcblks ;\n if ( ! ( prc -> incltree = jpc_tagtree_create ( prc -> numhcblks , prc -> numvcblks ) ) ) {\n goto error ;\n }\n if ( ! ( prc -> nlibtree = jpc_tagtree_create ( prc -> numhcblks , prc -> numvcblks ) ) ) {\n goto error ;\n }\n if ( ! ( prc -> savincltree = jpc_tagtree_create ( prc -> numhcblks , prc -> numvcblks ) ) ) {\n goto error ;\n }\n if ( ! ( prc -> savnlibtree = jpc_tagtree_create ( prc -> numhcblks , prc -> numvcblks ) ) ) {\n goto error ;\n }\n if ( ! ( prc -> cblks = jas_alloc2 ( prc -> numcblks , sizeof ( jpc_enc_cblk_t ) ) ) ) {\n goto error ;\n }\n for ( cblkno = 0 , cblk = prc -> cblks ;\n cblkno < prc -> numcblks ;\n ++ cblkno , ++ cblk ) {\n cblk -> passes = 0 ;\n cblk -> stream = 0 ;\n cblk -> mqenc = 0 ;\n cblk -> data = 0 ;\n cblk -> flags = 0 ;\n cblk -> prc = prc ;\n }\n for ( cblkno = 0 , cblk = prc -> cblks ;\n cblkno < prc -> numcblks ;\n ++ cblkno , ++ cblk ) {\n if ( ! cblk_create ( cblk , cp , prc ) ) {\n goto error ;\n }\n }\n }\n else {\n prc -> tlx = prc -> brx ;\n prc -> tly = prc -> bry ;\n prc -> numcblks = 0 ;\n prc -> numhcblks = 0 ;\n prc -> numvcblks = 0 ;\n prc -> cblks = 0 ;\n prc -> incltree = 0 ;\n prc -> nlibtree = 0 ;\n prc -> savincltree = 0 ;\n prc -> savnlibtree = 0 ;\n }\n return prc ;\n error : prc_destroy ( prc ) ;\n return 0 ;\n }"}
{"idx": 10283, "target": 0, "func": "int jas_stream_printf ( jas_stream_t * stream , const char * fmt , ... ) {\n va_list ap ;\n char buf [ 4096 ] ;\n int ret ;\n va_start ( ap , fmt ) ;\n ret = vsnprintf ( buf , sizeof buf , fmt , ap ) ;\n jas_stream_puts ( stream , buf ) ;\n va_end ( ap ) ;\n return ret ;\n }"}
{"idx": 10284, "target": 0, "func": "int ssl_set_version_bound ( int method_version , int version , int * bound ) {\n if ( version == 0 ) {\n * bound = version ;\n return 1 ;\n }\n switch ( method_version ) {\n default : return 0 ;\n case TLS_ANY_VERSION : if ( version < SSL3_VERSION || version > TLS_MAX_VERSION ) return 0 ;\n break ;\n case DTLS_ANY_VERSION : if ( DTLS_VERSION_GT ( version , DTLS_MAX_VERSION ) || DTLS_VERSION_LT ( version , DTLS1_BAD_VER ) ) return 0 ;\n break ;\n }\n * bound = version ;\n return 1 ;\n }"}
{"idx": 10285, "target": 0, "func": "static int decode_frame_header ( ProresContext * ctx , const uint8_t * buf , const int data_size , AVCodecContext * avctx ) {\n int hdr_size , version , width , height , flags ;\n const uint8_t * ptr ;\n hdr_size = AV_RB16 ( buf ) ;\n if ( hdr_size > data_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"frame data too small\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n version = AV_RB16 ( buf + 2 ) ;\n if ( version >= 2 ) {\n av_log ( avctx , AV_LOG_ERROR , \"unsupported header version: %d\\n\" , version ) ;\n return AVERROR_INVALIDDATA ;\n }\n width = AV_RB16 ( buf + 8 ) ;\n height = AV_RB16 ( buf + 10 ) ;\n if ( width != avctx -> width || height != avctx -> height ) {\n av_log ( avctx , AV_LOG_ERROR , \"picture dimension changed: old: %d x %d, new: %d x %d\\n\" , avctx -> width , avctx -> height , width , height ) ;\n return AVERROR_INVALIDDATA ;\n }\n ctx -> frame_type = ( buf [ 12 ] >> 2 ) & 3 ;\n if ( ctx -> frame_type > 2 ) {\n av_log ( avctx , AV_LOG_ERROR , \"unsupported frame type: %d\\n\" , ctx -> frame_type ) ;\n return AVERROR_INVALIDDATA ;\n }\n ctx -> chroma_factor = ( buf [ 12 ] >> 6 ) & 3 ;\n ctx -> mb_chroma_factor = ctx -> chroma_factor + 2 ;\n ctx -> num_chroma_blocks = ( 1 << ctx -> chroma_factor ) >> 1 ;\n switch ( ctx -> chroma_factor ) {\n case 2 : avctx -> pix_fmt = AV_PIX_FMT_YUV422P10 ;\n break ;\n case 3 : avctx -> pix_fmt = AV_PIX_FMT_YUV444P10 ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"unsupported picture format: %d\\n\" , ctx -> pic_format ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ctx -> scantable_type != ctx -> frame_type ) {\n if ( ! ctx -> frame_type ) ff_init_scantable ( ctx -> dsp . idct_permutation , & ctx -> scantable , ff_prores_progressive_scan ) ;\n else ff_init_scantable ( ctx -> dsp . idct_permutation , & ctx -> scantable , ff_prores_interlaced_scan ) ;\n ctx -> scantable_type = ctx -> frame_type ;\n }\n if ( ctx -> frame_type ) {\n ctx -> frame -> interlaced_frame = 1 ;\n ctx -> frame -> top_field_first = ctx -> frame_type & 1 ;\n }\n else {\n ctx -> frame -> interlaced_frame = 0 ;\n }\n avctx -> color_primaries = buf [ 14 ] ;\n avctx -> color_trc = buf [ 15 ] ;\n avctx -> colorspace = buf [ 16 ] ;\n ctx -> alpha_info = buf [ 17 ] & 0xf ;\n if ( ctx -> alpha_info ) av_log_missing_feature ( avctx , \"Alpha channel\" , 0 ) ;\n ctx -> qmat_changed = 0 ;\n ptr = buf + 20 ;\n flags = buf [ 19 ] ;\n if ( flags & 2 ) {\n if ( ptr - buf > hdr_size - 64 ) {\n av_log ( avctx , AV_LOG_ERROR , \"header data too small\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( memcmp ( ctx -> qmat_luma , ptr , 64 ) ) {\n memcpy ( ctx -> qmat_luma , ptr , 64 ) ;\n ctx -> qmat_changed = 1 ;\n }\n ptr += 64 ;\n }\n else {\n memset ( ctx -> qmat_luma , 4 , 64 ) ;\n ctx -> qmat_changed = 1 ;\n }\n if ( flags & 1 ) {\n if ( ptr - buf > hdr_size - 64 ) {\n av_log ( avctx , AV_LOG_ERROR , \"header data too small\\n\" ) ;\n return - 1 ;\n }\n if ( memcmp ( ctx -> qmat_chroma , ptr , 64 ) ) {\n memcpy ( ctx -> qmat_chroma , ptr , 64 ) ;\n ctx -> qmat_changed = 1 ;\n }\n }\n else {\n memset ( ctx -> qmat_chroma , 4 , 64 ) ;\n ctx -> qmat_changed = 1 ;\n }\n return hdr_size ;\n }"}
{"idx": 10286, "target": 0, "func": "static void fdct8 ( const tran_low_t * input , tran_low_t * output ) {\n tran_high_t s0 , s1 , s2 , s3 , s4 , s5 , s6 , s7 ;\n tran_high_t t0 , t1 , t2 , t3 ;\n tran_high_t x0 , x1 , x2 , x3 ;\n s0 = input [ 0 ] + input [ 7 ] ;\n s1 = input [ 1 ] + input [ 6 ] ;\n s2 = input [ 2 ] + input [ 5 ] ;\n s3 = input [ 3 ] + input [ 4 ] ;\n s4 = input [ 3 ] - input [ 4 ] ;\n s5 = input [ 2 ] - input [ 5 ] ;\n s6 = input [ 1 ] - input [ 6 ] ;\n s7 = input [ 0 ] - input [ 7 ] ;\n x0 = s0 + s3 ;\n x1 = s1 + s2 ;\n x2 = s1 - s2 ;\n x3 = s0 - s3 ;\n t0 = ( x0 + x1 ) * cospi_16_64 ;\n t1 = ( x0 - x1 ) * cospi_16_64 ;\n t2 = x2 * cospi_24_64 + x3 * cospi_8_64 ;\n t3 = - x2 * cospi_8_64 + x3 * cospi_24_64 ;\n output [ 0 ] = fdct_round_shift ( t0 ) ;\n output [ 2 ] = fdct_round_shift ( t2 ) ;\n output [ 4 ] = fdct_round_shift ( t1 ) ;\n output [ 6 ] = fdct_round_shift ( t3 ) ;\n t0 = ( s6 - s5 ) * cospi_16_64 ;\n t1 = ( s6 + s5 ) * cospi_16_64 ;\n t2 = fdct_round_shift ( t0 ) ;\n t3 = fdct_round_shift ( t1 ) ;\n x0 = s4 + t2 ;\n x1 = s4 - t2 ;\n x2 = s7 - t3 ;\n x3 = s7 + t3 ;\n t0 = x0 * cospi_28_64 + x3 * cospi_4_64 ;\n t1 = x1 * cospi_12_64 + x2 * cospi_20_64 ;\n t2 = x2 * cospi_12_64 + x1 * - cospi_20_64 ;\n t3 = x3 * cospi_28_64 + x0 * - cospi_4_64 ;\n output [ 1 ] = fdct_round_shift ( t0 ) ;\n output [ 3 ] = fdct_round_shift ( t2 ) ;\n output [ 5 ] = fdct_round_shift ( t1 ) ;\n output [ 7 ] = fdct_round_shift ( t3 ) ;\n }"}
{"idx": 10287, "target": 0, "func": "static int dissect_h225_RegistrationReject ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_RegistrationReject , RegistrationReject_sequence ) ;\n return offset ;\n }"}
{"idx": 10288, "target": 0, "func": "static int dissect_nlm4_freeall ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n return dissect_nlm_freeall ( tvb , 0 , pinfo , tree , 4 ) ;\n }"}
{"idx": 10289, "target": 0, "func": "static char * strdur ( time_t duration ) {\n static char out [ 50 ] ;\n int neg , days , hours , minutes , seconds ;\n if ( duration < 0 ) {\n duration *= - 1 ;\n neg = 1 ;\n }\n else neg = 0 ;\n days = duration / ( 24 * 3600 ) ;\n duration %= 24 * 3600 ;\n hours = duration / 3600 ;\n duration %= 3600 ;\n minutes = duration / 60 ;\n duration %= 60 ;\n seconds = duration ;\n snprintf ( out , sizeof ( out ) , \"%s%d %s %02d:%02d:%02d\" , neg ? \"-\" : \"\" , days , days == 1 ? \"day\" : \"days\" , hours , minutes , seconds ) ;\n return out ;\n }"}
{"idx": 10290, "target": 0, "func": "static int show_chapters ( WriterContext * w , InputFile * ifile ) {\n AVFormatContext * fmt_ctx = ifile -> fmt_ctx ;\n int i , ret = 0 ;\n writer_print_section_header ( w , SECTION_ID_CHAPTERS ) ;\n for ( i = 0 ;\n i < fmt_ctx -> nb_chapters ;\n i ++ ) {\n AVChapter * chapter = fmt_ctx -> chapters [ i ] ;\n writer_print_section_header ( w , SECTION_ID_CHAPTER ) ;\n print_int ( \"id\" , chapter -> id ) ;\n print_q ( \"time_base\" , chapter -> time_base , '/' ) ;\n print_int ( \"start\" , chapter -> start ) ;\n print_time ( \"start_time\" , chapter -> start , & chapter -> time_base ) ;\n print_int ( \"end\" , chapter -> end ) ;\n print_time ( \"end_time\" , chapter -> end , & chapter -> time_base ) ;\n if ( do_show_chapter_tags ) ret = show_tags ( w , chapter -> metadata , SECTION_ID_CHAPTER_TAGS ) ;\n writer_print_section_footer ( w ) ;\n }\n writer_print_section_footer ( w ) ;\n return ret ;\n }"}
{"idx": 10291, "target": 0, "func": "static int udp6_ufo_send_check ( struct sk_buff * skb ) {\n struct ipv6hdr * ipv6h ;\n struct udphdr * uh ;\n if ( ! pskb_may_pull ( skb , sizeof ( * uh ) ) ) return - EINVAL ;\n ipv6h = ipv6_hdr ( skb ) ;\n uh = udp_hdr ( skb ) ;\n uh -> check = ~ csum_ipv6_magic ( & ipv6h -> saddr , & ipv6h -> daddr , skb -> len , IPPROTO_UDP , 0 ) ;\n skb -> csum_start = skb_transport_header ( skb ) - skb -> head ;\n skb -> csum_offset = offsetof ( struct udphdr , check ) ;\n skb -> ip_summed = CHECKSUM_PARTIAL ;\n return 0 ;\n }"}
{"idx": 10292, "target": 0, "func": "static inline picture_t * ffmpeg_NewPictBuf ( decoder_t * p_dec , AVCodecContext * p_context ) {\n decoder_sys_t * p_sys = p_dec -> p_sys ;\n int width = p_context -> coded_width ;\n int height = p_context -> coded_height ;\n if ( p_sys -> p_va == NULL ) {\n int aligns [ AV_NUM_DATA_POINTERS ] ;\n avcodec_align_dimensions2 ( p_context , & width , & height , aligns ) ;\n }\n if ( width == 0 || height == 0 || width > 8192 || height > 8192 || width < p_context -> width || height < p_context -> height ) {\n msg_Err ( p_dec , \"Invalid frame size %dx%d. vsz %dx%d\" , width , height , p_context -> width , p_context -> height ) ;\n return NULL ;\n }\n p_dec -> fmt_out . video . i_width = width ;\n p_dec -> fmt_out . video . i_height = height ;\n if ( width != p_context -> width || height != p_context -> height ) {\n p_dec -> fmt_out . video . i_visible_width = p_context -> width ;\n p_dec -> fmt_out . video . i_visible_height = p_context -> height ;\n }\n else {\n p_dec -> fmt_out . video . i_visible_width = width ;\n p_dec -> fmt_out . video . i_visible_height = height ;\n }\n if ( ! p_sys -> p_va && GetVlcChroma ( & p_dec -> fmt_out . video , p_context -> pix_fmt ) ) {\n p_dec -> fmt_out . video . i_chroma = VLC_CODEC_I420 ;\n }\n p_dec -> fmt_out . i_codec = p_dec -> fmt_out . video . i_chroma ;\n if ( p_dec -> fmt_in . video . i_sar_num > 0 && p_dec -> fmt_in . video . i_sar_den > 0 ) {\n p_dec -> fmt_out . video . i_sar_num = p_dec -> fmt_in . video . i_sar_num ;\n p_dec -> fmt_out . video . i_sar_den = p_dec -> fmt_in . video . i_sar_den ;\n }\n else {\n p_dec -> fmt_out . video . i_sar_num = p_context -> sample_aspect_ratio . num ;\n p_dec -> fmt_out . video . i_sar_den = p_context -> sample_aspect_ratio . den ;\n if ( ! p_dec -> fmt_out . video . i_sar_num || ! p_dec -> fmt_out . video . i_sar_den ) {\n p_dec -> fmt_out . video . i_sar_num = 1 ;\n p_dec -> fmt_out . video . i_sar_den = 1 ;\n }\n }\n if ( p_dec -> fmt_in . video . i_frame_rate > 0 && p_dec -> fmt_in . video . i_frame_rate_base > 0 ) {\n p_dec -> fmt_out . video . i_frame_rate = p_dec -> fmt_in . video . i_frame_rate ;\n p_dec -> fmt_out . video . i_frame_rate_base = p_dec -> fmt_in . video . i_frame_rate_base ;\n }\n # if LIBAVCODEC_VERSION_CHECK ( 56 , 5 , 0 , 7 , 100 ) else if ( p_context -> framerate . num > 0 && p_context -> framerate . den > 0 ) {\n p_dec -> fmt_out . video . i_frame_rate = p_context -> framerate . num ;\n p_dec -> fmt_out . video . i_frame_rate_base = p_context -> framerate . den ;\n # if LIBAVCODEC_VERSION_MICRO < 100 p_dec -> fmt_out . video . i_frame_rate_base *= __MAX ( p_context -> ticks_per_frame , 1 ) ;\n # endif }\n # endif else if ( p_context -> time_base . num > 0 && p_context -> time_base . den > 0 ) {\n p_dec -> fmt_out . video . i_frame_rate = p_context -> time_base . den ;\n p_dec -> fmt_out . video . i_frame_rate_base = p_context -> time_base . num * __MAX ( p_context -> ticks_per_frame , 1 ) ;\n }\n return decoder_NewPicture ( p_dec ) ;\n }"}
{"idx": 10293, "target": 0, "func": "void helpf ( FILE * errors , const char * fmt , ... ) {\n if ( fmt ) {\n va_list ap ;\n va_start ( ap , fmt ) ;\n fputs ( \"curl: \" , errors ) ;\n vfprintf ( errors , fmt , ap ) ;\n va_end ( ap ) ;\n }\n fprintf ( errors , \"curl: try 'curl --help' \" # ifdef USE_MANUAL \"or 'curl --manual' \" # endif \"for more information\\n\" ) ;\n }"}
{"idx": 10294, "target": 0, "func": "static gboolean has_fs_id ( GFile * file , const char * fs_id ) {\n const char * id ;\n GFileInfo * info ;\n gboolean res ;\n res = FALSE ;\n info = g_file_query_info ( file , G_FILE_ATTRIBUTE_ID_FILESYSTEM , G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS , NULL , NULL ) ;\n if ( info ) {\n id = g_file_info_get_attribute_string ( info , G_FILE_ATTRIBUTE_ID_FILESYSTEM ) ;\n if ( id && strcmp ( id , fs_id ) == 0 ) {\n res = TRUE ;\n }\n g_object_unref ( info ) ;\n }\n return res ;\n }"}
{"idx": 10295, "target": 0, "func": "Oid get_array_type ( Oid typid ) {\n HeapTuple tp ;\n Oid result = InvalidOid ;\n tp = SearchSysCache1 ( TYPEOID , ObjectIdGetDatum ( typid ) ) ;\n if ( HeapTupleIsValid ( tp ) ) {\n result = ( ( Form_pg_type ) GETSTRUCT ( tp ) ) -> typarray ;\n ReleaseSysCache ( tp ) ;\n }\n return result ;\n }"}
{"idx": 10296, "target": 0, "func": "TEST ( DownloadPrefsTest , NoAutoOpenForDisallowedFileTypes ) {\n const base : : FilePath kDangerousFilePath ( FILE_PATH_LITERAL ( \"/b/very-bad.swf\" ) ) ;\n content : : TestBrowserThreadBundle threads_are_required_for_testing_profile ;\n TestingProfile profile ;\n DownloadPrefs prefs ( & profile ) ;\n EXPECT_FALSE ( prefs . EnableAutoOpenBasedOnExtension ( kDangerousFilePath ) ) ;\n EXPECT_FALSE ( prefs . IsAutoOpenEnabledBasedOnExtension ( kDangerousFilePath ) ) ;\n }"}
{"idx": 10297, "target": 0, "func": "static int SpoolssRFFPCNEX_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 10298, "target": 1, "func": "ArchiveHandle * CloneArchive ( ArchiveHandle * AH ) {\n ArchiveHandle * clone ;\n clone = ( ArchiveHandle * ) pg_malloc ( sizeof ( ArchiveHandle ) ) ;\n memcpy ( clone , AH , sizeof ( ArchiveHandle ) ) ;\n memset ( & ( clone -> sqlparse ) , 0 , sizeof ( clone -> sqlparse ) ) ;\n clone -> connection = NULL ;\n clone -> connCancel = NULL ;\n clone -> currUser = NULL ;\n clone -> currSchema = NULL ;\n clone -> currTablespace = NULL ;\n clone -> currWithOids = - 1 ;\n if ( clone -> savedPassword ) clone -> savedPassword = pg_strdup ( clone -> savedPassword ) ;\n clone -> public . n_errors = 0 ;\n if ( AH -> mode == archModeRead ) {\n RestoreOptions * ropt = AH -> public . ropt ;\n Assert ( AH -> connection == NULL ) ;\n ConnectDatabase ( ( Archive * ) clone , ropt -> dbname , ropt -> pghost , ropt -> pgport , ropt -> username , ropt -> promptPassword ) ;\n _doSetFixedOutputState ( clone ) ;\n }\n else {\n char * dbname ;\n char * pghost ;\n char * pgport ;\n char * username ;\n Assert ( AH -> connection != NULL ) ;\n dbname = PQdb ( AH -> connection ) ;\n pghost = PQhost ( AH -> connection ) ;\n pgport = PQport ( AH -> connection ) ;\n username = PQuser ( AH -> connection ) ;\n ConnectDatabase ( ( Archive * ) clone , dbname , pghost , pgport , username , TRI_NO ) ;\n }\n ( clone -> ClonePtr ) ( clone ) ;\n Assert ( clone -> connection != NULL ) ;\n return clone ;\n }"}
{"idx": 10299, "target": 0, "func": "static void cpu_exec_nocache ( CPUArchState * env , int max_cycles , TranslationBlock * orig_tb ) {\n CPUState * cpu = ENV_GET_CPU ( env ) ;\n TranslationBlock * tb ;\n if ( max_cycles > CF_COUNT_MASK ) max_cycles = CF_COUNT_MASK ;\n tb = tb_gen_code ( env , orig_tb -> pc , orig_tb -> cs_base , orig_tb -> flags , max_cycles ) ;\n cpu -> current_tb = tb ;\n cpu_tb_exec ( cpu , tb -> tc_ptr ) ;\n cpu -> current_tb = NULL ;\n tb_phys_invalidate ( tb , - 1 ) ;\n tb_free ( tb ) ;\n }"}
{"idx": 10300, "target": 0, "func": "static int jbig2_decode_generic_template2 ( Jbig2Ctx * ctx , Jbig2Segment * segment , const Jbig2GenericRegionParams * params , Jbig2ArithState * as , Jbig2Image * image , Jbig2ArithCx * GB_stats ) {\n const int GBW = image -> width ;\n const int GBH = image -> height ;\n const int rowstride = image -> stride ;\n int x , y ;\n byte * gbreg_line = ( byte * ) image -> data ;\n # ifdef OUTPUT_PBM printf ( \"P4\\n%d %d\\n\" , GBW , GBH ) ;\n # endif if ( GBW <= 0 ) return 0 ;\n for ( y = 0 ;\n y < GBH ;\n y ++ ) {\n uint32_t CONTEXT ;\n uint32_t line_m1 ;\n uint32_t line_m2 ;\n int padded_width = ( GBW + 7 ) & - 8 ;\n line_m1 = ( y >= 1 ) ? gbreg_line [ - rowstride ] : 0 ;\n line_m2 = ( y >= 2 ) ? gbreg_line [ - ( rowstride << 1 ) ] << 4 : 0 ;\n CONTEXT = ( ( line_m1 >> 3 ) & 0x7c ) | ( ( line_m2 >> 3 ) & 0x380 ) ;\n for ( x = 0 ;\n x < padded_width ;\n x += 8 ) {\n byte result = 0 ;\n int x_minor ;\n int minor_width = GBW - x > 8 ? 8 : GBW - x ;\n if ( y >= 1 ) line_m1 = ( line_m1 << 8 ) | ( x + 8 < GBW ? gbreg_line [ - rowstride + ( x >> 3 ) + 1 ] : 0 ) ;\n if ( y >= 2 ) line_m2 = ( line_m2 << 8 ) | ( x + 8 < GBW ? gbreg_line [ - ( rowstride << 1 ) + ( x >> 3 ) + 1 ] << 4 : 0 ) ;\n for ( x_minor = 0 ;\n x_minor < minor_width ;\n x_minor ++ ) {\n bool bit ;\n bit = jbig2_arith_decode ( as , & GB_stats [ CONTEXT ] ) ;\n if ( bit < 0 ) return - 1 ;\n result |= bit << ( 7 - x_minor ) ;\n CONTEXT = ( ( CONTEXT & 0x1bd ) << 1 ) | bit | ( ( line_m1 >> ( 10 - x_minor ) ) & 0x4 ) | ( ( line_m2 >> ( 10 - x_minor ) ) & 0x80 ) ;\n }\n gbreg_line [ x >> 3 ] = result ;\n }\n # ifdef OUTPUT_PBM fwrite ( gbreg_line , 1 , rowstride , stdout ) ;\n # endif gbreg_line += rowstride ;\n }\n return 0 ;\n }"}
{"idx": 10301, "target": 0, "func": "static int vorbis_parse_setup_hdr_codebooks ( vorbis_context * vc ) {\n unsigned cb ;\n uint8_t * tmp_vlc_bits = NULL ;\n uint32_t * tmp_vlc_codes = NULL ;\n GetBitContext * gb = & vc -> gb ;\n uint16_t * codebook_multiplicands = NULL ;\n int ret = 0 ;\n vc -> codebook_count = get_bits ( gb , 8 ) + 1 ;\n av_dlog ( NULL , \" Codebooks: %d \\n\" , vc -> codebook_count ) ;\n vc -> codebooks = av_mallocz ( vc -> codebook_count * sizeof ( * vc -> codebooks ) ) ;\n tmp_vlc_bits = av_mallocz ( V_MAX_VLCS * sizeof ( * tmp_vlc_bits ) ) ;\n tmp_vlc_codes = av_mallocz ( V_MAX_VLCS * sizeof ( * tmp_vlc_codes ) ) ;\n codebook_multiplicands = av_malloc ( V_MAX_VLCS * sizeof ( * codebook_multiplicands ) ) ;\n if ( ! vc -> codebooks || ! tmp_vlc_bits || ! tmp_vlc_codes || ! codebook_multiplicands ) {\n ret = AVERROR ( ENOMEM ) ;\n goto error ;\n }\n for ( cb = 0 ;\n cb < vc -> codebook_count ;\n ++ cb ) {\n vorbis_codebook * codebook_setup = & vc -> codebooks [ cb ] ;\n unsigned ordered , t , entries , used_entries = 0 ;\n av_dlog ( NULL , \" %u. Codebook\\n\" , cb ) ;\n if ( get_bits ( gb , 24 ) != 0x564342 ) {\n av_log ( vc -> avctx , AV_LOG_ERROR , \" %u. Codebook setup data corrupt.\\n\" , cb ) ;\n ret = AVERROR_INVALIDDATA ;\n goto error ;\n }\n codebook_setup -> dimensions = get_bits ( gb , 16 ) ;\n if ( codebook_setup -> dimensions > 16 || codebook_setup -> dimensions == 0 ) {\n av_log ( vc -> avctx , AV_LOG_ERROR , \" %u. Codebook's dimension is invalid (%d).\\n\" , cb , codebook_setup -> dimensions ) ;\n ret = AVERROR_INVALIDDATA ;\n goto error ;\n }\n entries = get_bits ( gb , 24 ) ;\n if ( entries > V_MAX_VLCS ) {\n av_log ( vc -> avctx , AV_LOG_ERROR , \" %u. Codebook has too many entries (%u).\\n\" , cb , entries ) ;\n ret = AVERROR_INVALIDDATA ;\n goto error ;\n }\n ordered = get_bits1 ( gb ) ;\n av_dlog ( NULL , \" codebook_dimensions %d, codebook_entries %u\\n\" , codebook_setup -> dimensions , entries ) ;\n if ( ! ordered ) {\n unsigned ce , flag ;\n unsigned sparse = get_bits1 ( gb ) ;\n av_dlog ( NULL , \" not ordered \\n\" ) ;\n if ( sparse ) {\n av_dlog ( NULL , \" sparse \\n\" ) ;\n used_entries = 0 ;\n for ( ce = 0 ;\n ce < entries ;\n ++ ce ) {\n flag = get_bits1 ( gb ) ;\n if ( flag ) {\n tmp_vlc_bits [ ce ] = get_bits ( gb , 5 ) + 1 ;\n ++ used_entries ;\n }\n else tmp_vlc_bits [ ce ] = 0 ;\n }\n }\n else {\n av_dlog ( NULL , \" not sparse \\n\" ) ;\n used_entries = entries ;\n for ( ce = 0 ;\n ce < entries ;\n ++ ce ) tmp_vlc_bits [ ce ] = get_bits ( gb , 5 ) + 1 ;\n }\n }\n else {\n unsigned current_entry = 0 ;\n unsigned current_length = get_bits ( gb , 5 ) + 1 ;\n av_dlog ( NULL , \" ordered, current length: %u\\n\" , current_length ) ;\n used_entries = entries ;\n for ( ;\n current_entry < used_entries && current_length <= 32 ;\n ++ current_length ) {\n unsigned i , number ;\n av_dlog ( NULL , \" number bits: %u \" , ilog ( entries - current_entry ) ) ;\n number = get_bits ( gb , ilog ( entries - current_entry ) ) ;\n av_dlog ( NULL , \" number: %u\\n\" , number ) ;\n for ( i = current_entry ;\n i < number + current_entry ;\n ++ i ) if ( i < used_entries ) tmp_vlc_bits [ i ] = current_length ;\n current_entry += number ;\n }\n if ( current_entry > used_entries ) {\n av_log ( vc -> avctx , AV_LOG_ERROR , \" More codelengths than codes in codebook. \\n\" ) ;\n ret = AVERROR_INVALIDDATA ;\n goto error ;\n }\n }\n codebook_setup -> lookup_type = get_bits ( gb , 4 ) ;\n av_dlog ( NULL , \" lookup type: %d : %s \\n\" , codebook_setup -> lookup_type , codebook_setup -> lookup_type ? \"vq\" : \"no lookup\" ) ;\n if ( codebook_setup -> lookup_type == 1 ) {\n unsigned i , j , k ;\n unsigned codebook_lookup_values = ff_vorbis_nth_root ( entries , codebook_setup -> dimensions ) ;\n float codebook_minimum_value = vorbisfloat2float ( get_bits_long ( gb , 32 ) ) ;\n float codebook_delta_value = vorbisfloat2float ( get_bits_long ( gb , 32 ) ) ;\n unsigned codebook_value_bits = get_bits ( gb , 4 ) + 1 ;\n unsigned codebook_sequence_p = get_bits1 ( gb ) ;\n av_dlog ( NULL , \" We expect %d numbers for building the codevectors. \\n\" , codebook_lookup_values ) ;\n av_dlog ( NULL , \" delta %f minmum %f \\n\" , codebook_delta_value , codebook_minimum_value ) ;\n for ( i = 0 ;\n i < codebook_lookup_values ;\n ++ i ) {\n codebook_multiplicands [ i ] = get_bits ( gb , codebook_value_bits ) ;\n av_dlog ( NULL , \" multiplicands*delta+minmum : %e \\n\" , ( float ) codebook_multiplicands [ i ] * codebook_delta_value + codebook_minimum_value ) ;\n av_dlog ( NULL , \" multiplicand %u\\n\" , codebook_multiplicands [ i ] ) ;\n }\n codebook_setup -> codevectors = used_entries ? av_mallocz ( used_entries * codebook_setup -> dimensions * sizeof ( * codebook_setup -> codevectors ) ) : NULL ;\n for ( j = 0 , i = 0 ;\n i < entries ;\n ++ i ) {\n unsigned dim = codebook_setup -> dimensions ;\n if ( tmp_vlc_bits [ i ] ) {\n float last = 0.0 ;\n unsigned lookup_offset = i ;\n av_dlog ( vc -> avctx , \"Lookup offset %u ,\" , i ) ;\n for ( k = 0 ;\n k < dim ;\n ++ k ) {\n unsigned multiplicand_offset = lookup_offset % codebook_lookup_values ;\n codebook_setup -> codevectors [ j * dim + k ] = codebook_multiplicands [ multiplicand_offset ] * codebook_delta_value + codebook_minimum_value + last ;\n if ( codebook_sequence_p ) last = codebook_setup -> codevectors [ j * dim + k ] ;\n lookup_offset /= codebook_lookup_values ;\n }\n tmp_vlc_bits [ j ] = tmp_vlc_bits [ i ] ;\n av_dlog ( vc -> avctx , \"real lookup offset %u, vector: \" , j ) ;\n for ( k = 0 ;\n k < dim ;\n ++ k ) av_dlog ( vc -> avctx , \" %f \" , codebook_setup -> codevectors [ j * dim + k ] ) ;\n av_dlog ( vc -> avctx , \"\\n\" ) ;\n ++ j ;\n }\n }\n if ( j != used_entries ) {\n av_log ( vc -> avctx , AV_LOG_ERROR , \"Bug in codevector vector building code. \\n\" ) ;\n ret = AVERROR_INVALIDDATA ;\n goto error ;\n }\n entries = used_entries ;\n }\n else if ( codebook_setup -> lookup_type >= 2 ) {\n av_log ( vc -> avctx , AV_LOG_ERROR , \"Codebook lookup type not supported. \\n\" ) ;\n ret = AVERROR_INVALIDDATA ;\n goto error ;\n }\n if ( ff_vorbis_len2vlc ( tmp_vlc_bits , tmp_vlc_codes , entries ) ) {\n av_log ( vc -> avctx , AV_LOG_ERROR , \" Invalid code lengths while generating vlcs. \\n\" ) ;\n ret = AVERROR_INVALIDDATA ;\n goto error ;\n }\n codebook_setup -> maxdepth = 0 ;\n for ( t = 0 ;\n t < entries ;\n ++ t ) if ( tmp_vlc_bits [ t ] >= codebook_setup -> maxdepth ) codebook_setup -> maxdepth = tmp_vlc_bits [ t ] ;\n if ( codebook_setup -> maxdepth > 3 * V_NB_BITS ) codebook_setup -> nb_bits = V_NB_BITS2 ;\n else codebook_setup -> nb_bits = V_NB_BITS ;\n codebook_setup -> maxdepth = ( codebook_setup -> maxdepth + codebook_setup -> nb_bits - 1 ) / codebook_setup -> nb_bits ;\n if ( ( ret = init_vlc ( & codebook_setup -> vlc , codebook_setup -> nb_bits , entries , tmp_vlc_bits , sizeof ( * tmp_vlc_bits ) , sizeof ( * tmp_vlc_bits ) , tmp_vlc_codes , sizeof ( * tmp_vlc_codes ) , sizeof ( * tmp_vlc_codes ) , INIT_VLC_LE ) ) ) {\n av_log ( vc -> avctx , AV_LOG_ERROR , \" Error generating vlc tables. \\n\" ) ;\n goto error ;\n }\n }\n av_free ( tmp_vlc_bits ) ;\n av_free ( tmp_vlc_codes ) ;\n av_free ( codebook_multiplicands ) ;\n return 0 ;\n error : av_free ( tmp_vlc_bits ) ;\n av_free ( tmp_vlc_codes ) ;\n av_free ( codebook_multiplicands ) ;\n return ret ;\n }"}
{"idx": 10302, "target": 0, "func": "void pdf_tos_save ( fz_context * ctx , pdf_text_object_state * tos , fz_matrix save [ 2 ] ) {\n save [ 0 ] = tos -> tm ;\n save [ 1 ] = tos -> tlm ;\n }"}
{"idx": 10303, "target": 1, "func": "static int rv34_decode_mv ( RV34DecContext * r , int block_type ) {\n MpegEncContext * s = & r -> s ;\n GetBitContext * gb = & s -> gb ;\n int i , j , k , l ;\n int mv_pos = s -> mb_x * 2 + s -> mb_y * 2 * s -> b8_stride ;\n int next_bt ;\n memset ( r -> dmv , 0 , sizeof ( r -> dmv ) ) ;\n for ( i = 0 ;\n i < num_mvs [ block_type ] ;\n i ++ ) {\n r -> dmv [ i ] [ 0 ] = svq3_get_se_golomb ( gb ) ;\n r -> dmv [ i ] [ 1 ] = svq3_get_se_golomb ( gb ) ;\n }\n switch ( block_type ) {\n case RV34_MB_TYPE_INTRA : case RV34_MB_TYPE_INTRA16x16 : ZERO8x2 ( s -> current_picture_ptr -> f . motion_val [ 0 ] [ s -> mb_x * 2 + s -> mb_y * 2 * s -> b8_stride ] , s -> b8_stride ) ;\n return 0 ;\n case RV34_MB_SKIP : if ( s -> pict_type == AV_PICTURE_TYPE_P ) {\n ZERO8x2 ( s -> current_picture_ptr -> f . motion_val [ 0 ] [ s -> mb_x * 2 + s -> mb_y * 2 * s -> b8_stride ] , s -> b8_stride ) ;\n rv34_mc_1mv ( r , block_type , 0 , 0 , 0 , 2 , 2 , 0 ) ;\n break ;\n }\n case RV34_MB_B_DIRECT : if ( HAVE_THREADS && ( s -> avctx -> active_thread_type & FF_THREAD_FRAME ) ) ff_thread_await_progress ( & s -> next_picture_ptr -> f , FFMAX ( 0 , s -> mb_y - 1 ) , 0 ) ;\n next_bt = s -> next_picture_ptr -> f . mb_type [ s -> mb_x + s -> mb_y * s -> mb_stride ] ;\n if ( IS_INTRA ( next_bt ) || IS_SKIP ( next_bt ) ) {\n ZERO8x2 ( s -> current_picture_ptr -> f . motion_val [ 0 ] [ s -> mb_x * 2 + s -> mb_y * 2 * s -> b8_stride ] , s -> b8_stride ) ;\n ZERO8x2 ( s -> current_picture_ptr -> f . motion_val [ 1 ] [ s -> mb_x * 2 + s -> mb_y * 2 * s -> b8_stride ] , s -> b8_stride ) ;\n }\n else for ( j = 0 ;\n j < 2 ;\n j ++ ) for ( i = 0 ;\n i < 2 ;\n i ++ ) for ( k = 0 ;\n k < 2 ;\n k ++ ) for ( l = 0 ;\n l < 2 ;\n l ++ ) s -> current_picture_ptr -> f . motion_val [ l ] [ mv_pos + i + j * s -> b8_stride ] [ k ] = calc_add_mv ( r , l , s -> next_picture_ptr -> f . motion_val [ 0 ] [ mv_pos + i + j * s -> b8_stride ] [ k ] ) ;\n if ( ! ( IS_16X8 ( next_bt ) || IS_8X16 ( next_bt ) || IS_8X8 ( next_bt ) ) ) rv34_mc_2mv ( r , block_type ) ;\n else rv34_mc_2mv_skip ( r ) ;\n ZERO8x2 ( s -> current_picture_ptr -> f . motion_val [ 0 ] [ s -> mb_x * 2 + s -> mb_y * 2 * s -> b8_stride ] , s -> b8_stride ) ;\n break ;\n case RV34_MB_P_16x16 : case RV34_MB_P_MIX16x16 : rv34_pred_mv ( r , block_type , 0 , 0 ) ;\n rv34_mc_1mv ( r , block_type , 0 , 0 , 0 , 2 , 2 , 0 ) ;\n break ;\n case RV34_MB_B_FORWARD : case RV34_MB_B_BACKWARD : r -> dmv [ 1 ] [ 0 ] = r -> dmv [ 0 ] [ 0 ] ;\n r -> dmv [ 1 ] [ 1 ] = r -> dmv [ 0 ] [ 1 ] ;\n if ( r -> rv30 ) rv34_pred_mv_rv3 ( r , block_type , block_type == RV34_MB_B_BACKWARD ) ;\n else rv34_pred_mv_b ( r , block_type , block_type == RV34_MB_B_BACKWARD ) ;\n rv34_mc_1mv ( r , block_type , 0 , 0 , 0 , 2 , 2 , block_type == RV34_MB_B_BACKWARD ) ;\n break ;\n case RV34_MB_P_16x8 : case RV34_MB_P_8x16 : rv34_pred_mv ( r , block_type , 0 , 0 ) ;\n rv34_pred_mv ( r , block_type , 1 + ( block_type == RV34_MB_P_16x8 ) , 1 ) ;\n if ( block_type == RV34_MB_P_16x8 ) {\n rv34_mc_1mv ( r , block_type , 0 , 0 , 0 , 2 , 1 , 0 ) ;\n rv34_mc_1mv ( r , block_type , 0 , 8 , s -> b8_stride , 2 , 1 , 0 ) ;\n }\n if ( block_type == RV34_MB_P_8x16 ) {\n rv34_mc_1mv ( r , block_type , 0 , 0 , 0 , 1 , 2 , 0 ) ;\n rv34_mc_1mv ( r , block_type , 8 , 0 , 1 , 1 , 2 , 0 ) ;\n }\n break ;\n case RV34_MB_B_BIDIR : rv34_pred_mv_b ( r , block_type , 0 ) ;\n rv34_pred_mv_b ( r , block_type , 1 ) ;\n rv34_mc_2mv ( r , block_type ) ;\n break ;\n case RV34_MB_P_8x8 : for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n rv34_pred_mv ( r , block_type , i , i ) ;\n rv34_mc_1mv ( r , block_type , ( i & 1 ) << 3 , ( i & 2 ) << 2 , ( i & 1 ) + ( i >> 1 ) * s -> b8_stride , 1 , 1 , 0 ) ;\n }\n break ;\n }\n return 0 ;\n }"}
{"idx": 10304, "target": 0, "func": "static int tcomp ( const void * _t1 , const void * _t2 ) {\n struct taboff * t1 = * ( ( struct taboff * * ) _t1 ) , * t2 = * ( ( struct taboff * * ) _t2 ) ;\n return ( t1 -> orderingval - t2 -> orderingval ) ;\n }"}
{"idx": 10305, "target": 1, "func": "static void T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n const unsigned char * mySource = ( unsigned char * ) args -> source ;\n UChar * myTarget = args -> target ;\n int32_t * myOffsets = args -> offsets ;\n const unsigned char * sourceLimit = ( unsigned char * ) args -> sourceLimit ;\n const UChar * targetLimit = args -> targetLimit ;\n unsigned char * toUBytes = args -> converter -> toUBytes ;\n uint32_t ch , i ;\n int32_t offsetNum = 0 ;\n if ( args -> converter -> toUnicodeStatus && myTarget < targetLimit ) {\n i = args -> converter -> toULength ;\n args -> converter -> toULength = 0 ;\n ch = args -> converter -> toUnicodeStatus - 1 ;\n args -> converter -> toUnicodeStatus = 0 ;\n goto morebytes ;\n }\n while ( mySource < sourceLimit && myTarget < targetLimit ) {\n i = 0 ;\n ch = 0 ;\n morebytes : while ( i < sizeof ( uint32_t ) ) {\n if ( mySource < sourceLimit ) {\n ch |= ( ( uint8_t ) ( * mySource ) ) << ( i * 8 ) ;\n toUBytes [ i ++ ] = ( char ) * ( mySource ++ ) ;\n }\n else {\n args -> converter -> toUnicodeStatus = ch + 1 ;\n args -> converter -> toULength = ( int8_t ) i ;\n goto donefornow ;\n }\n }\n if ( ch <= MAXIMUM_UTF && ! U_IS_SURROGATE ( ch ) ) {\n if ( ch <= MAXIMUM_UCS2 ) {\n * ( myTarget ++ ) = ( UChar ) ch ;\n * ( myOffsets ++ ) = offsetNum ;\n }\n else {\n * ( myTarget ++ ) = U16_LEAD ( ch ) ;\n * ( myOffsets ++ ) = offsetNum ;\n ch = U16_TRAIL ( ch ) ;\n if ( myTarget < targetLimit ) {\n * ( myTarget ++ ) = ( UChar ) ch ;\n * ( myOffsets ++ ) = offsetNum ;\n }\n else {\n args -> converter -> UCharErrorBuffer [ 0 ] = ( UChar ) ch ;\n args -> converter -> UCharErrorBufferLength = 1 ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n }\n else {\n args -> converter -> toULength = ( int8_t ) i ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n offsetNum += i ;\n }\n donefornow : if ( mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS ( * err ) ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n args -> target = myTarget ;\n args -> source = ( const char * ) mySource ;\n args -> offsets = myOffsets ;\n }"}
{"idx": 10306, "target": 0, "func": "void parseNodeId ( proto_tree * tree , tvbuff_t * tvb , packet_info * pinfo , gint * pOffset , const char * szFieldName ) {\n proto_item * ti ;\n proto_tree * subtree = proto_tree_add_subtree_format ( tree , tvb , * pOffset , - 1 , ett_opcua_nodeid , & ti , \"%s: NodeId\" , szFieldName ) ;\n gint iOffset = * pOffset ;\n guint8 EncodingMask ;\n EncodingMask = tvb_get_guint8 ( tvb , iOffset ) ;\n proto_tree_add_item ( subtree , hf_opcua_nodeid_encodingmask , tvb , iOffset , 1 , ENC_LITTLE_ENDIAN ) ;\n iOffset ++ ;\n switch ( EncodingMask ) {\n case 0x00 : proto_tree_add_item ( subtree , hf_opcua_nodeid_numeric , tvb , iOffset , 1 , ENC_LITTLE_ENDIAN ) ;\n iOffset += 1 ;\n break ;\n case 0x01 : proto_tree_add_item ( subtree , hf_opcua_nodeid_nsindex , tvb , iOffset , 1 , ENC_LITTLE_ENDIAN ) ;\n iOffset += 1 ;\n proto_tree_add_item ( subtree , hf_opcua_nodeid_numeric , tvb , iOffset , 2 , ENC_LITTLE_ENDIAN ) ;\n iOffset += 2 ;\n break ;\n case 0x02 : proto_tree_add_item ( subtree , hf_opcua_nodeid_nsindex , tvb , iOffset , 2 , ENC_LITTLE_ENDIAN ) ;\n iOffset += 2 ;\n proto_tree_add_item ( subtree , hf_opcua_nodeid_numeric , tvb , iOffset , 4 , ENC_LITTLE_ENDIAN ) ;\n iOffset += 4 ;\n break ;\n case 0x03 : proto_tree_add_item ( subtree , hf_opcua_nodeid_nsindex , tvb , iOffset , 2 , ENC_LITTLE_ENDIAN ) ;\n iOffset += 2 ;\n parseString ( subtree , tvb , pinfo , & iOffset , hf_opcua_nodeid_string ) ;\n break ;\n case 0x04 : proto_tree_add_item ( subtree , hf_opcua_nodeid_nsindex , tvb , iOffset , 2 , ENC_LITTLE_ENDIAN ) ;\n iOffset += 2 ;\n parseGuid ( subtree , tvb , pinfo , & iOffset , hf_opcua_nodeid_guid ) ;\n break ;\n case 0x05 : proto_tree_add_item ( subtree , hf_opcua_nodeid_nsindex , tvb , iOffset , 2 , ENC_LITTLE_ENDIAN ) ;\n iOffset += 2 ;\n parseByteString ( subtree , tvb , pinfo , & iOffset , hf_opcua_nodeid_bytestring ) ;\n break ;\n }\n ;\n proto_item_set_end ( ti , tvb , iOffset ) ;\n * pOffset = iOffset ;\n }"}
{"idx": 10307, "target": 0, "func": "extern List as_mysql_get_clusters ( mysql_conn_t * mysql_conn , uid_t uid , slurmdb_cluster_cond_t * cluster_cond ) {\n char * query = NULL ;\n char * extra = NULL ;\n char * tmp = NULL ;\n List cluster_list = NULL ;\n ListIterator itr = NULL ;\n int i = 0 ;\n MYSQL_RES * result = NULL ;\n MYSQL_ROW row ;\n slurmdb_assoc_cond_t assoc_cond ;\n ListIterator assoc_itr = NULL ;\n slurmdb_cluster_rec_t * cluster = NULL ;\n slurmdb_assoc_rec_t * assoc = NULL ;\n List assoc_list = NULL ;\n char * cluster_req_inx [ ] = {\n \"name\" , \"classification\" , \"control_host\" , \"control_port\" , \"federation\" , \"fed_id\" , \"fed_state\" , \"fed_weight\" , \"rpc_version\" , \"dimensions\" , \"flags\" , \"plugin_id_select\" }\n ;\n enum {\n CLUSTER_REQ_NAME , CLUSTER_REQ_CLASS , CLUSTER_REQ_CH , CLUSTER_REQ_CP , CLUSTER_REQ_FEDR , CLUSTER_REQ_FEDID , CLUSTER_REQ_FEDSTATE , CLUSTER_REQ_FEDWEIGHT , CLUSTER_REQ_VERSION , CLUSTER_REQ_DIMS , CLUSTER_REQ_FLAGS , CLUSTER_REQ_PI_SELECT , CLUSTER_REQ_COUNT }\n ;\n if ( check_connection ( mysql_conn ) != SLURM_SUCCESS ) return NULL ;\n if ( ! cluster_cond ) {\n xstrcat ( extra , \" where deleted=0\" ) ;\n goto empty ;\n }\n _setup_cluster_cond_limits ( cluster_cond , & extra ) ;\n empty : xfree ( tmp ) ;\n i = 0 ;\n xstrfmtcat ( tmp , \"%s\" , cluster_req_inx [ i ] ) ;\n for ( i = 1 ;\n i < CLUSTER_REQ_COUNT ;\n i ++ ) {\n xstrfmtcat ( tmp , \", %s\" , cluster_req_inx [ i ] ) ;\n }\n query = xstrdup_printf ( \"select %s from %s%s\" , tmp , cluster_table , extra ) ;\n xfree ( tmp ) ;\n xfree ( extra ) ;\n if ( debug_flags & DEBUG_FLAG_DB_ASSOC ) DB_DEBUG ( mysql_conn -> conn , \"query\\n%s\" , query ) ;\n if ( ! ( result = mysql_db_query_ret ( mysql_conn , query , 0 ) ) ) {\n xfree ( query ) ;\n return NULL ;\n }\n xfree ( query ) ;\n cluster_list = list_create ( slurmdb_destroy_cluster_rec ) ;\n memset ( & assoc_cond , 0 , sizeof ( slurmdb_assoc_cond_t ) ) ;\n if ( cluster_cond ) {\n assoc_cond . with_deleted = cluster_cond -> with_deleted ;\n }\n assoc_cond . cluster_list = list_create ( NULL ) ;\n while ( ( row = mysql_fetch_row ( result ) ) ) {\n MYSQL_RES * result2 = NULL ;\n MYSQL_ROW row2 ;\n cluster = xmalloc ( sizeof ( slurmdb_cluster_rec_t ) ) ;\n slurmdb_init_cluster_rec ( cluster , 0 ) ;\n list_append ( cluster_list , cluster ) ;\n cluster -> name = xstrdup ( row [ CLUSTER_REQ_NAME ] ) ;\n list_append ( assoc_cond . cluster_list , cluster -> name ) ;\n cluster -> classification = slurm_atoul ( row [ CLUSTER_REQ_CLASS ] ) ;\n cluster -> control_host = xstrdup ( row [ CLUSTER_REQ_CH ] ) ;\n cluster -> control_port = slurm_atoul ( row [ CLUSTER_REQ_CP ] ) ;\n cluster -> fed . name = xstrdup ( row [ CLUSTER_REQ_FEDR ] ) ;\n cluster -> fed . id = slurm_atoul ( row [ CLUSTER_REQ_FEDID ] ) ;\n cluster -> fed . state = slurm_atoul ( row [ CLUSTER_REQ_FEDSTATE ] ) ;\n cluster -> fed . weight = slurm_atoul ( row [ CLUSTER_REQ_FEDWEIGHT ] ) ;\n cluster -> rpc_version = slurm_atoul ( row [ CLUSTER_REQ_VERSION ] ) ;\n cluster -> dimensions = slurm_atoul ( row [ CLUSTER_REQ_DIMS ] ) ;\n cluster -> flags = slurm_atoul ( row [ CLUSTER_REQ_FLAGS ] ) ;\n cluster -> plugin_id_select = slurm_atoul ( row [ CLUSTER_REQ_PI_SELECT ] ) ;\n query = xstrdup_printf ( \"select tres, cluster_nodes from \" \"\\\"%s_%s\\\" where time_end=0 and node_name='' limit 1\" , cluster -> name , event_table ) ;\n if ( debug_flags & DEBUG_FLAG_DB_TRES ) DB_DEBUG ( mysql_conn -> conn , \"query\\n%s\" , query ) ;\n if ( ! ( result2 = mysql_db_query_ret ( mysql_conn , query , 0 ) ) ) {\n xfree ( query ) ;\n continue ;\n }\n xfree ( query ) ;\n if ( ( row2 = mysql_fetch_row ( result2 ) ) ) {\n cluster -> tres_str = xstrdup ( row2 [ 0 ] ) ;\n if ( row2 [ 1 ] && row2 [ 1 ] [ 0 ] ) cluster -> nodes = xstrdup ( row2 [ 1 ] ) ;\n }\n mysql_free_result ( result2 ) ;\n if ( cluster_cond && cluster_cond -> with_usage ) {\n as_mysql_get_usage ( mysql_conn , uid , cluster , DBD_GET_CLUSTER_USAGE , cluster_cond -> usage_start , cluster_cond -> usage_end ) ;\n }\n }\n mysql_free_result ( result ) ;\n if ( ! list_count ( assoc_cond . cluster_list ) ) {\n FREE_NULL_LIST ( assoc_cond . cluster_list ) ;\n return cluster_list ;\n }\n assoc_cond . acct_list = list_create ( NULL ) ;\n list_append ( assoc_cond . acct_list , \"root\" ) ;\n assoc_cond . user_list = list_create ( NULL ) ;\n list_append ( assoc_cond . user_list , \"\" ) ;\n assoc_list = as_mysql_get_assocs ( mysql_conn , uid , & assoc_cond ) ;\n FREE_NULL_LIST ( assoc_cond . cluster_list ) ;\n FREE_NULL_LIST ( assoc_cond . acct_list ) ;\n FREE_NULL_LIST ( assoc_cond . user_list ) ;\n if ( ! assoc_list ) return cluster_list ;\n itr = list_iterator_create ( cluster_list ) ;\n assoc_itr = list_iterator_create ( assoc_list ) ;\n while ( ( cluster = list_next ( itr ) ) ) {\n while ( ( assoc = list_next ( assoc_itr ) ) ) {\n if ( xstrcmp ( assoc -> cluster , cluster -> name ) ) continue ;\n if ( cluster -> root_assoc ) {\n debug ( \"This cluster %s already has \" \"an association.\" , cluster -> name ) ;\n continue ;\n }\n cluster -> root_assoc = assoc ;\n list_remove ( assoc_itr ) ;\n }\n list_iterator_reset ( assoc_itr ) ;\n }\n list_iterator_destroy ( itr ) ;\n list_iterator_destroy ( assoc_itr ) ;\n if ( list_count ( assoc_list ) ) error ( \"I have %d left over associations\" , list_count ( assoc_list ) ) ;\n FREE_NULL_LIST ( assoc_list ) ;\n return cluster_list ;\n }"}
{"idx": 10308, "target": 0, "func": "static int jbig2_decode_generic_template0 ( Jbig2Ctx * ctx , Jbig2Segment * segment , const Jbig2GenericRegionParams * params , Jbig2ArithState * as , Jbig2Image * image , Jbig2ArithCx * GB_stats ) {\n const int GBW = image -> width ;\n const int GBH = image -> height ;\n const int rowstride = image -> stride ;\n int x , y ;\n byte * gbreg_line = ( byte * ) image -> data ;\n # ifdef OUTPUT_PBM printf ( \"P4\\n%d %d\\n\" , GBW , GBH ) ;\n # endif if ( GBW <= 0 ) return 0 ;\n for ( y = 0 ;\n y < GBH ;\n y ++ ) {\n uint32_t CONTEXT ;\n uint32_t line_m1 ;\n uint32_t line_m2 ;\n int padded_width = ( GBW + 7 ) & - 8 ;\n line_m1 = ( y >= 1 ) ? gbreg_line [ - rowstride ] : 0 ;\n line_m2 = ( y >= 2 ) ? gbreg_line [ - ( rowstride << 1 ) ] << 6 : 0 ;\n CONTEXT = ( line_m1 & 0x7f0 ) | ( line_m2 & 0xf800 ) ;\n for ( x = 0 ;\n x < padded_width ;\n x += 8 ) {\n byte result = 0 ;\n int x_minor ;\n int minor_width = GBW - x > 8 ? 8 : GBW - x ;\n if ( y >= 1 ) line_m1 = ( line_m1 << 8 ) | ( x + 8 < GBW ? gbreg_line [ - rowstride + ( x >> 3 ) + 1 ] : 0 ) ;\n if ( y >= 2 ) line_m2 = ( line_m2 << 8 ) | ( x + 8 < GBW ? gbreg_line [ - ( rowstride << 1 ) + ( x >> 3 ) + 1 ] << 6 : 0 ) ;\n for ( x_minor = 0 ;\n x_minor < minor_width ;\n x_minor ++ ) {\n bool bit ;\n bit = jbig2_arith_decode ( as , & GB_stats [ CONTEXT ] ) ;\n if ( bit < 0 ) return - 1 ;\n result |= bit << ( 7 - x_minor ) ;\n CONTEXT = ( ( CONTEXT & 0x7bf7 ) << 1 ) | bit | ( ( line_m1 >> ( 7 - x_minor ) ) & 0x10 ) | ( ( line_m2 >> ( 7 - x_minor ) ) & 0x800 ) ;\n }\n gbreg_line [ x >> 3 ] = result ;\n }\n # ifdef OUTPUT_PBM fwrite ( gbreg_line , 1 , rowstride , stdout ) ;\n # endif gbreg_line += rowstride ;\n }\n return 0 ;\n }"}
{"idx": 10309, "target": 0, "func": "static void dissect_coap_opt_uri_query ( tvbuff_t * tvb , proto_item * head_item , proto_tree * subtree , gint offset , gint opt_length , coap_info * coinfo , int hf ) {\n const guint8 * str = NULL ;\n wmem_strbuf_append_c ( coinfo -> uri_query_strbuf , ( wmem_strbuf_get_len ( coinfo -> uri_query_strbuf ) == 0 ) ? '?' : '&' ) ;\n if ( opt_length == 0 ) {\n str = nullstr ;\n }\n else {\n str = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset , opt_length , ENC_ASCII ) ;\n wmem_strbuf_append ( coinfo -> uri_query_strbuf , str ) ;\n }\n proto_tree_add_string ( subtree , hf , tvb , offset , opt_length , str ) ;\n proto_item_append_text ( head_item , \": %s\" , str ) ;\n }"}
{"idx": 10310, "target": 0, "func": "static const char * gpgsm_get_req_version ( void ) {\n return \"2.0.4\" ;\n }"}
{"idx": 10311, "target": 0, "func": "static vpx_codec_err_t ctrl_update_entropy ( vpx_codec_alg_priv_t * ctx , va_list args ) {\n const int update = va_arg ( args , int ) ;\n vp9_update_entropy ( ctx -> cpi , update ) ;\n return VPX_CODEC_OK ;\n }"}
{"idx": 10312, "target": 0, "func": "static int dissect_h245_EncryptedAlphanumeric ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_EncryptedAlphanumeric , EncryptedAlphanumeric_sequence ) ;\n return offset ;\n }"}
{"idx": 10313, "target": 0, "func": "static int decode_frame_headers ( Indeo3DecodeContext * ctx , AVCodecContext * avctx , const uint8_t * buf , int buf_size ) {\n const uint8_t * buf_ptr = buf , * bs_hdr ;\n uint32_t frame_num , word2 , check_sum , data_size ;\n uint32_t y_offset , u_offset , v_offset , starts [ 3 ] , ends [ 3 ] ;\n uint16_t height , width ;\n int i , j ;\n frame_num = bytestream_get_le32 ( & buf_ptr ) ;\n word2 = bytestream_get_le32 ( & buf_ptr ) ;\n check_sum = bytestream_get_le32 ( & buf_ptr ) ;\n data_size = bytestream_get_le32 ( & buf_ptr ) ;\n if ( ( frame_num ^ word2 ^ data_size ^ OS_HDR_ID ) != check_sum ) {\n av_log ( avctx , AV_LOG_ERROR , \"OS header checksum mismatch!\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n bs_hdr = buf_ptr ;\n if ( bytestream_get_le16 ( & buf_ptr ) != 32 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Unsupported codec version!\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n ctx -> frame_num = frame_num ;\n ctx -> frame_flags = bytestream_get_le16 ( & buf_ptr ) ;\n ctx -> data_size = ( bytestream_get_le32 ( & buf_ptr ) + 7 ) >> 3 ;\n ctx -> cb_offset = * buf_ptr ++ ;\n if ( ctx -> data_size == 16 ) return 4 ;\n if ( ctx -> data_size > buf_size ) ctx -> data_size = buf_size ;\n buf_ptr += 3 ;\n height = bytestream_get_le16 ( & buf_ptr ) ;\n width = bytestream_get_le16 ( & buf_ptr ) ;\n if ( av_image_check_size ( width , height , 0 , avctx ) ) return AVERROR_INVALIDDATA ;\n if ( width != ctx -> width || height != ctx -> height ) {\n int res ;\n av_dlog ( avctx , \"Frame dimensions changed!\\n\" ) ;\n if ( width < 16 || width > 640 || height < 16 || height > 480 || width & 3 || height & 3 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid picture dimensions: %d x %d!\\n\" , width , height ) ;\n return AVERROR_INVALIDDATA ;\n }\n ctx -> width = width ;\n ctx -> height = height ;\n free_frame_buffers ( ctx ) ;\n if ( ( res = allocate_frame_buffers ( ctx , avctx ) ) < 0 ) return res ;\n avcodec_set_dimensions ( avctx , width , height ) ;\n }\n y_offset = bytestream_get_le32 ( & buf_ptr ) ;\n v_offset = bytestream_get_le32 ( & buf_ptr ) ;\n u_offset = bytestream_get_le32 ( & buf_ptr ) ;\n starts [ 0 ] = y_offset ;\n starts [ 1 ] = v_offset ;\n starts [ 2 ] = u_offset ;\n for ( j = 0 ;\n j < 3 ;\n j ++ ) {\n ends [ j ] = ctx -> data_size ;\n for ( i = 2 ;\n i >= 0 ;\n i -- ) if ( starts [ i ] < ends [ j ] && starts [ i ] > starts [ j ] ) ends [ j ] = starts [ i ] ;\n }\n ctx -> y_data_size = ends [ 0 ] - starts [ 0 ] ;\n ctx -> v_data_size = ends [ 1 ] - starts [ 1 ] ;\n ctx -> u_data_size = ends [ 2 ] - starts [ 2 ] ;\n if ( FFMAX3 ( y_offset , v_offset , u_offset ) >= ctx -> data_size - 16 || FFMIN3 ( ctx -> y_data_size , ctx -> v_data_size , ctx -> u_data_size ) <= 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"One of the y/u/v offsets is invalid\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n ctx -> y_data_ptr = bs_hdr + y_offset ;\n ctx -> v_data_ptr = bs_hdr + v_offset ;\n ctx -> u_data_ptr = bs_hdr + u_offset ;\n ctx -> alt_quant = buf_ptr + sizeof ( uint32_t ) ;\n if ( ctx -> data_size == 16 ) {\n av_log ( avctx , AV_LOG_DEBUG , \"Sync frame encountered!\\n\" ) ;\n return 16 ;\n }\n if ( ctx -> frame_flags & BS_8BIT_PEL ) {\n av_log_ask_for_sample ( avctx , \"8-bit pixel format\\n\" ) ;\n return AVERROR_PATCHWELCOME ;\n }\n if ( ctx -> frame_flags & BS_MV_X_HALF || ctx -> frame_flags & BS_MV_Y_HALF ) {\n av_log_ask_for_sample ( avctx , \"halfpel motion vectors\\n\" ) ;\n return AVERROR_PATCHWELCOME ;\n }\n return 0 ;\n }"}
{"idx": 10314, "target": 0, "func": "void TIFFCvtIEEEFloatToNative ( TIFF * tif , u_int n , float * f ) {\n float_t * fp = ( float_t * ) f ;\n while ( n -- > 0 ) {\n IEEEFLOAT2NATIVE ( fp ) ;\n fp ++ ;\n }\n }"}
{"idx": 10315, "target": 0, "func": "int fz_colorspace_is_cmyk ( fz_context * ctx , const fz_colorspace * cs ) {\n return cs && cs -> type == FZ_COLORSPACE_CMYK ;\n }"}
{"idx": 10316, "target": 0, "func": "TEST_F ( AccountChooserDialogAndroidTest , CheckHistogramsReportingOnceAccountViaOnAccountClick ) {\n base : : HistogramTester histogram_tester ;\n AccountChooserDialogAndroid * dialog = CreateDialogOneAccount ( ) ;\n dialog -> OnCredentialClicked ( base : : android : : AttachCurrentThread ( ) , nullptr , , static_cast < int > ( password_manager : : CredentialType : : CREDENTIAL_TYPE_PASSWORD ) , false ) ;\n dialog -> Destroy ( base : : android : : AttachCurrentThread ( ) , nullptr ) ;\n histogram_tester . ExpectUniqueSample ( \"PasswordManager.AccountChooserDialog\" , password_manager : : metrics_util : : ACCOUNT_CHOOSER_CREDENTIAL_CHOSEN , 1 ) ;\n histogram_tester . ExpectUniqueSample ( \"PasswordManager.AccountChooserDialogOneAccount\" , password_manager : : metrics_util : : ACCOUNT_CHOOSER_CREDENTIAL_CHOSEN , 1 ) ;\n histogram_tester . ExpectTotalCount ( \"PasswordManager.AccountChooserDialogMultipleAccounts\" , 0 ) ;\n }"}
{"idx": 10317, "target": 0, "func": "static int s390_virtio_bridge_init ( SysBusDevice * dev ) {\n return 0 ;\n }"}
{"idx": 10318, "target": 0, "func": "static int dsa_pub_print ( BIO * bp , const EVP_PKEY * pkey , int indent , ASN1_PCTX * ctx ) {\n return do_dsa_print ( bp , pkey -> pkey . dsa , indent , 1 ) ;\n }"}
{"idx": 10319, "target": 0, "func": "static void virtio_net_tx_timer ( void * opaque ) {\n VirtIONet * n = opaque ;\n assert ( n -> vdev . vm_running ) ;\n n -> tx_waiting = 0 ;\n if ( ! ( n -> vdev . status & VIRTIO_CONFIG_S_DRIVER_OK ) ) return ;\n virtio_queue_set_notification ( n -> tx_vq , 1 ) ;\n virtio_net_flush_tx ( n , n -> tx_vq ) ;\n }"}
{"idx": 10320, "target": 0, "func": "static Int decUnitAddSub ( const Unit * a , Int alength , const Unit * b , Int blength , Int bshift , Unit * c , Int m ) {\n const Unit * alsu = a ;\n Unit * clsu = c ;\n Unit * minC ;\n Unit * maxC ;\n eInt carry = 0 ;\n Int add ;\n # if DECDPUN <= 4 Int est ;\n # endif # if DECTRACE if ( alength < 1 || blength < 1 ) printf ( \"decUnitAddSub: alen blen m %ld %ld [%ld]\\n\" , alength , blength , m ) ;\n # endif maxC = c + alength ;\n minC = c + blength ;\n if ( bshift != 0 ) {\n minC += bshift ;\n if ( a == c && bshift <= alength ) {\n c += bshift ;\n a += bshift ;\n }\n else for ( ;\n c < clsu + bshift ;\n a ++ , c ++ ) {\n if ( a < alsu + alength ) * c = * a ;\n else * c = 0 ;\n }\n }\n if ( minC > maxC ) {\n Unit * hold = minC ;\n minC = maxC ;\n maxC = hold ;\n }\n for ( ;\n c < minC ;\n c ++ ) {\n carry += * a ;\n a ++ ;\n carry += ( ( eInt ) * b ) * m ;\n b ++ ;\n if ( ( ueInt ) carry <= DECDPUNMAX ) {\n * c = ( Unit ) carry ;\n carry = 0 ;\n continue ;\n }\n # if DECDPUN == 4 if ( carry >= 0 ) {\n est = ( ( ( ueInt ) carry >> 11 ) * 53687 ) >> 18 ;\n * c = ( Unit ) ( carry - est * ( DECDPUNMAX + 1 ) ) ;\n carry = est ;\n if ( * c < DECDPUNMAX + 1 ) continue ;\n carry ++ ;\n * c -= DECDPUNMAX + 1 ;\n continue ;\n }\n carry = carry + ( eInt ) ( DECDPUNMAX + 1 ) * ( DECDPUNMAX + 1 ) ;\n est = ( ( ( ueInt ) carry >> 11 ) * 53687 ) >> 18 ;\n * c = ( Unit ) ( carry - est * ( DECDPUNMAX + 1 ) ) ;\n carry = est - ( DECDPUNMAX + 1 ) ;\n if ( * c < DECDPUNMAX + 1 ) continue ;\n carry ++ ;\n * c -= DECDPUNMAX + 1 ;\n # elif DECDPUN == 3 if ( carry >= 0 ) {\n est = ( ( ( ueInt ) carry >> 3 ) * 16777 ) >> 21 ;\n * c = ( Unit ) ( carry - est * ( DECDPUNMAX + 1 ) ) ;\n carry = est ;\n if ( * c < DECDPUNMAX + 1 ) continue ;\n carry ++ ;\n * c -= DECDPUNMAX + 1 ;\n continue ;\n }\n carry = carry + ( eInt ) ( DECDPUNMAX + 1 ) * ( DECDPUNMAX + 1 ) ;\n est = ( ( ( ueInt ) carry >> 3 ) * 16777 ) >> 21 ;\n * c = ( Unit ) ( carry - est * ( DECDPUNMAX + 1 ) ) ;\n carry = est - ( DECDPUNMAX + 1 ) ;\n if ( * c < DECDPUNMAX + 1 ) continue ;\n carry ++ ;\n * c -= DECDPUNMAX + 1 ;\n # elif DECDPUN <= 2 if ( carry >= 0 ) {\n est = QUOT10 ( carry , DECDPUN ) ;\n * c = ( Unit ) ( carry - est * ( DECDPUNMAX + 1 ) ) ;\n carry = est ;\n continue ;\n }\n carry = carry + ( eInt ) ( DECDPUNMAX + 1 ) * ( DECDPUNMAX + 1 ) ;\n est = QUOT10 ( carry , DECDPUN ) ;\n * c = ( Unit ) ( carry - est * ( DECDPUNMAX + 1 ) ) ;\n carry = est - ( DECDPUNMAX + 1 ) ;\n # else if ( ( ueInt ) carry < ( DECDPUNMAX + 1 ) * 2 ) {\n * c = ( Unit ) ( carry - ( DECDPUNMAX + 1 ) ) ;\n carry = 1 ;\n continue ;\n }\n if ( carry >= 0 ) {\n * c = ( Unit ) ( carry % ( DECDPUNMAX + 1 ) ) ;\n carry = carry / ( DECDPUNMAX + 1 ) ;\n continue ;\n }\n carry = carry + ( eInt ) ( DECDPUNMAX + 1 ) * ( DECDPUNMAX + 1 ) ;\n * c = ( Unit ) ( carry % ( DECDPUNMAX + 1 ) ) ;\n carry = carry / ( DECDPUNMAX + 1 ) - ( DECDPUNMAX + 1 ) ;\n # endif }\n if ( c < maxC ) for ( ;\n c < maxC ;\n c ++ ) {\n if ( a < alsu + alength ) {\n carry += * a ;\n a ++ ;\n }\n else {\n carry += ( ( eInt ) * b ) * m ;\n b ++ ;\n }\n if ( ( ueInt ) carry <= DECDPUNMAX ) {\n * c = ( Unit ) carry ;\n carry = 0 ;\n continue ;\n }\n # if DECDPUN == 4 if ( carry >= 0 ) {\n est = ( ( ( ueInt ) carry >> 11 ) * 53687 ) >> 18 ;\n * c = ( Unit ) ( carry - est * ( DECDPUNMAX + 1 ) ) ;\n carry = est ;\n if ( * c < DECDPUNMAX + 1 ) continue ;\n carry ++ ;\n * c -= DECDPUNMAX + 1 ;\n continue ;\n }\n carry = carry + ( eInt ) ( DECDPUNMAX + 1 ) * ( DECDPUNMAX + 1 ) ;\n est = ( ( ( ueInt ) carry >> 11 ) * 53687 ) >> 18 ;\n * c = ( Unit ) ( carry - est * ( DECDPUNMAX + 1 ) ) ;\n carry = est - ( DECDPUNMAX + 1 ) ;\n if ( * c < DECDPUNMAX + 1 ) continue ;\n carry ++ ;\n * c -= DECDPUNMAX + 1 ;\n # elif DECDPUN == 3 if ( carry >= 0 ) {\n est = ( ( ( ueInt ) carry >> 3 ) * 16777 ) >> 21 ;\n * c = ( Unit ) ( carry - est * ( DECDPUNMAX + 1 ) ) ;\n carry = est ;\n if ( * c < DECDPUNMAX + 1 ) continue ;\n carry ++ ;\n * c -= DECDPUNMAX + 1 ;\n continue ;\n }\n carry = carry + ( eInt ) ( DECDPUNMAX + 1 ) * ( DECDPUNMAX + 1 ) ;\n est = ( ( ( ueInt ) carry >> 3 ) * 16777 ) >> 21 ;\n * c = ( Unit ) ( carry - est * ( DECDPUNMAX + 1 ) ) ;\n carry = est - ( DECDPUNMAX + 1 ) ;\n if ( * c < DECDPUNMAX + 1 ) continue ;\n carry ++ ;\n * c -= DECDPUNMAX + 1 ;\n # elif DECDPUN <= 2 if ( carry >= 0 ) {\n est = QUOT10 ( carry , DECDPUN ) ;\n * c = ( Unit ) ( carry - est * ( DECDPUNMAX + 1 ) ) ;\n carry = est ;\n continue ;\n }\n carry = carry + ( eInt ) ( DECDPUNMAX + 1 ) * ( DECDPUNMAX + 1 ) ;\n est = QUOT10 ( carry , DECDPUN ) ;\n * c = ( Unit ) ( carry - est * ( DECDPUNMAX + 1 ) ) ;\n carry = est - ( DECDPUNMAX + 1 ) ;\n # else if ( ( ueInt ) carry < ( DECDPUNMAX + 1 ) * 2 ) {\n * c = ( Unit ) ( carry - ( DECDPUNMAX + 1 ) ) ;\n carry = 1 ;\n continue ;\n }\n if ( carry >= 0 ) {\n * c = ( Unit ) ( carry % ( DECDPUNMAX + 1 ) ) ;\n carry = carry / ( DECDPUNMAX + 1 ) ;\n continue ;\n }\n carry = carry + ( eInt ) ( DECDPUNMAX + 1 ) * ( DECDPUNMAX + 1 ) ;\n * c = ( Unit ) ( carry % ( DECDPUNMAX + 1 ) ) ;\n carry = carry / ( DECDPUNMAX + 1 ) - ( DECDPUNMAX + 1 ) ;\n # endif }\n if ( carry == 0 ) return c - clsu ;\n if ( carry > 0 ) {\n * c = ( Unit ) carry ;\n c ++ ;\n return c - clsu ;\n }\n add = 1 ;\n for ( c = clsu ;\n c < maxC ;\n c ++ ) {\n add = DECDPUNMAX + add - * c ;\n if ( add <= DECDPUNMAX ) {\n * c = ( Unit ) add ;\n add = 0 ;\n }\n else {\n * c = 0 ;\n add = 1 ;\n }\n }\n # if DECTRACE printf ( \"UAS borrow: add %ld, carry %ld\\n\" , add , carry ) ;\n # endif if ( ( add - carry - 1 ) != 0 ) {\n * c = ( Unit ) ( add - carry - 1 ) ;\n c ++ ;\n }\n return clsu - c ;\n }"}
{"idx": 10321, "target": 0, "func": "int elg_check_secret_key ( int algo , MPI * skey ) {\n ELG_secret_key sk ;\n if ( ! is_ELGAMAL ( algo ) ) return G10ERR_PUBKEY_ALGO ;\n if ( ! skey [ 0 ] || ! skey [ 1 ] || ! skey [ 2 ] || ! skey [ 3 ] ) return G10ERR_BAD_MPI ;\n sk . p = skey [ 0 ] ;\n sk . g = skey [ 1 ] ;\n sk . y = skey [ 2 ] ;\n sk . x = skey [ 3 ] ;\n if ( ! check_secret_key ( & sk ) ) return G10ERR_BAD_SECKEY ;\n return 0 ;\n }"}
{"idx": 10322, "target": 0, "func": "void PNGAPI png_set_iCCP ( png_structp png_ptr , png_infop info_ptr , png_charp name , int compression_type , png_charp profile , png_uint_32 proflen ) {\n png_charp new_iccp_name ;\n png_charp new_iccp_profile ;\n png_uint_32 length ;\n png_debug1 ( 1 , \"in %s storage function\" , \"iCCP\" ) ;\n if ( png_ptr == NULL || info_ptr == NULL || name == NULL || profile == NULL ) return ;\n length = png_strlen ( name ) + 1 ;\n new_iccp_name = ( png_charp ) png_malloc_warn ( png_ptr , length ) ;\n if ( new_iccp_name == NULL ) {\n png_warning ( png_ptr , \"Insufficient memory to process iCCP chunk.\" ) ;\n return ;\n }\n png_memcpy ( new_iccp_name , name , length ) ;\n new_iccp_profile = ( png_charp ) png_malloc_warn ( png_ptr , proflen ) ;\n if ( new_iccp_profile == NULL ) {\n png_free ( png_ptr , new_iccp_name ) ;\n png_warning ( png_ptr , \"Insufficient memory to process iCCP profile.\" ) ;\n return ;\n }\n png_memcpy ( new_iccp_profile , profile , ( png_size_t ) proflen ) ;\n png_free_data ( png_ptr , info_ptr , PNG_FREE_ICCP , 0 ) ;\n info_ptr -> iccp_proflen = proflen ;\n info_ptr -> iccp_name = new_iccp_name ;\n info_ptr -> iccp_profile = new_iccp_profile ;\n info_ptr -> iccp_compression = ( png_byte ) compression_type ;\n # ifdef PNG_FREE_ME_SUPPORTED info_ptr -> free_me |= PNG_FREE_ICCP ;\n # endif info_ptr -> valid |= PNG_INFO_iCCP ;\n }"}
{"idx": 10323, "target": 0, "func": "static int dissect_h245_MultiplexTableEntryNumber ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 65 \"../../asn1/h245/h245.cnf\" guint32 value ;\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 15U , & value , FALSE ) ;\n h223_mc = value & 0xf ;\n return offset ;\n }"}
{"idx": 10324, "target": 0, "func": "static void compress ( int init_bits , gdIOCtxPtr outfile , gdImagePtr im , GifCtx * ctx ) {\n register long fcode ;\n register code_int i ;\n register int c ;\n register code_int ent ;\n register code_int disp ;\n register code_int hsize_reg ;\n register int hshift ;\n ctx -> g_init_bits = init_bits ;\n ctx -> g_outfile = outfile ;\n ctx -> offset = 0 ;\n ctx -> out_count = 0 ;\n ctx -> clear_flg = 0 ;\n ctx -> in_count = 1 ;\n ctx -> maxcode = MAXCODE ( ctx -> n_bits = ctx -> g_init_bits ) ;\n ctx -> ClearCode = ( 1 << ( init_bits - 1 ) ) ;\n ctx -> EOFCode = ctx -> ClearCode + 1 ;\n ctx -> free_ent = ctx -> ClearCode + 2 ;\n char_init ( ctx ) ;\n ent = GIFNextPixel ( im , ctx ) ;\n hshift = 0 ;\n for ( fcode = ( long ) hsize ;\n fcode < 65536L ;\n fcode *= 2L ) {\n ++ hshift ;\n }\n hshift = 8 - hshift ;\n hsize_reg = hsize ;\n cl_hash ( ( count_int ) hsize_reg , ctx ) ;\n output ( ( code_int ) ctx -> ClearCode , ctx ) ;\n # ifdef SIGNED_COMPARE_SLOW while ( ( c = GIFNextPixel ( im ) ) != ( unsigned ) EOF ) {\n # else while ( ( c = GIFNextPixel ( im , ctx ) ) != EOF ) {\n # endif ++ ( ctx -> in_count ) ;\n fcode = ( long ) ( ( ( long ) c << maxbits ) + ent ) ;\n i = ( ( ( code_int ) c << hshift ) ^ ent ) ;\n if ( HashTabOf ( i ) == fcode ) {\n ent = CodeTabOf ( i ) ;\n continue ;\n }\n else if ( ( long ) HashTabOf ( i ) < 0 ) {\n goto nomatch ;\n }\n disp = hsize_reg - i ;\n if ( i == 0 ) {\n disp = 1 ;\n }\n probe : if ( ( i -= disp ) < 0 ) {\n i += hsize_reg ;\n }\n if ( HashTabOf ( i ) == fcode ) {\n ent = CodeTabOf ( i ) ;\n continue ;\n }\n if ( ( long ) HashTabOf ( i ) > 0 ) {\n goto probe ;\n }\n nomatch : output ( ( code_int ) ent , ctx ) ;\n ++ ( ctx -> out_count ) ;\n ent = c ;\n # ifdef SIGNED_COMPARE_SLOW if ( ( unsigned ) ctx -> free_ent < ( unsigned ) maxmaxcode ) {\n # else if ( ctx -> free_ent < maxmaxcode ) {\n # endif CodeTabOf ( i ) = ctx -> free_ent ++ ;\n HashTabOf ( i ) = fcode ;\n }\n else {\n cl_block ( ctx ) ;\n }\n }\n output ( ( code_int ) ent , ctx ) ;\n ++ ( ctx -> out_count ) ;\n output ( ( code_int ) ctx -> EOFCode , ctx ) ;\n }"}
{"idx": 10325, "target": 0, "func": "static void gst_asf_demux_add_global_tags ( GstASFDemux * demux , GstTagList * taglist ) {\n GstTagList * t ;\n GST_DEBUG_OBJECT ( demux , \"adding global tags: %\" GST_PTR_FORMAT , taglist ) ;\n if ( taglist == NULL ) return ;\n if ( gst_tag_list_is_empty ( taglist ) ) {\n gst_tag_list_unref ( taglist ) ;\n return ;\n }\n t = gst_tag_list_merge ( demux -> taglist , taglist , GST_TAG_MERGE_APPEND ) ;\n gst_tag_list_set_scope ( t , GST_TAG_SCOPE_GLOBAL ) ;\n if ( demux -> taglist ) gst_tag_list_unref ( demux -> taglist ) ;\n gst_tag_list_unref ( taglist ) ;\n demux -> taglist = t ;\n GST_LOG_OBJECT ( demux , \"global tags now: %\" GST_PTR_FORMAT , demux -> taglist ) ;\n }"}
{"idx": 10326, "target": 0, "func": "proto_item * proto_tree_add_uint64_format ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , guint64 value , const char * format , ... ) {\n proto_item * pi ;\n va_list ap ;\n pi = proto_tree_add_uint64 ( tree , hfindex , tvb , start , length , value ) ;\n if ( pi != tree ) {\n TRY_TO_FAKE_THIS_REPR ( pi ) ;\n va_start ( ap , format ) ;\n proto_tree_set_representation ( pi , format , ap ) ;\n va_end ( ap ) ;\n }\n return pi ;\n }"}
{"idx": 10327, "target": 0, "func": "static void prplcb_privacy_deny_added ( PurpleAccount * account , const char * name ) {\n struct im_connection * ic = purple_ic_by_pa ( account ) ;\n if ( ! g_slist_find_custom ( ic -> deny , name , ( GCompareFunc ) ic -> acc -> prpl -> handle_cmp ) ) {\n ic -> deny = g_slist_prepend ( ic -> deny , g_strdup ( name ) ) ;\n }\n }"}
{"idx": 10328, "target": 0, "func": "unsigned long # endif # undef mul # undef mul_add # define mul_add ( r , a , word , carry ) do {\n \\ register BN_ULONG high , low ;\n \\ asm ( \"mulq %3\" \\ : \"=a\" ( low ) , \"=d\" ( high ) \\ : \"a\" ( word ) , \"m\" ( a ) \\ : \"cc\" ) ;\n \\ asm ( \"addq %2,%0;\n adcq %3,%1\" \\ : \"+r\" ( carry ) , \"+d\" ( high ) \\ : \"a\" ( low ) , \"g\" ( 0 ) \\ : \"cc\" ) ;\n \\ asm ( \"addq %2,%0;\n adcq %3,%1\" \\ : \"+m\" ( r ) , \"+d\" ( high ) \\ : \"r\" ( carry ) , \"g\" ( 0 ) \\ : \"cc\" ) ;\n \\ carry = high ;\n \\ }\n while ( 0 ) # define mul ( r , a , word , carry ) do {\n \\ register BN_ULONG high , low ;\n \\ asm ( \"mulq %3\" \\ : \"=a\" ( low ) , \"=d\" ( high ) \\ : \"a\" ( word ) , \"g\" ( a ) \\ : \"cc\" ) ;\n \\ asm ( \"addq %2,%0;\n adcq %3,%1\" \\ : \"+r\" ( carry ) , \"+d\" ( high ) \\ : \"a\" ( low ) , \"g\" ( 0 ) \\ : \"cc\" ) ;\n \\ ( r ) = carry , carry = high ;\n \\ }\n while ( 0 ) # undef sqr # define sqr ( r0 , r1 , a ) \\ asm ( \"mulq %2\" \\ : \"=a\" ( r0 ) , \"=d\" ( r1 ) \\ : \"a\" ( a ) \\ : \"cc\" ) ;\n BN_ULONG bn_mul_add_words ( BN_ULONG * rp , const BN_ULONG * ap , int num , BN_ULONG w ) {\n BN_ULONG c1 = 0 ;\n if ( num <= 0 ) return ( c1 ) ;\n while ( num & ~ 3 ) {\n mul_add ( rp [ 0 ] , ap [ 0 ] , w , c1 ) ;\n mul_add ( rp [ 1 ] , ap [ 1 ] , w , c1 ) ;\n mul_add ( rp [ 2 ] , ap [ 2 ] , w , c1 ) ;\n mul_add ( rp [ 3 ] , ap [ 3 ] , w , c1 ) ;\n ap += 4 ;\n rp += 4 ;\n num -= 4 ;\n }\n if ( num ) {\n mul_add ( rp [ 0 ] , ap [ 0 ] , w , c1 ) ;\n if ( -- num == 0 ) return c1 ;\n mul_add ( rp [ 1 ] , ap [ 1 ] , w , c1 ) ;\n if ( -- num == 0 ) return c1 ;\n mul_add ( rp [ 2 ] , ap [ 2 ] , w , c1 ) ;\n return c1 ;\n }\n return ( c1 ) ;\n }\n BN_ULONG bn_mul_words ( BN_ULONG * rp , const BN_ULONG * ap , int num , BN_ULONG w ) {\n BN_ULONG c1 = 0 ;\n if ( num <= 0 ) return ( c1 ) ;\n while ( num & ~ 3 ) {\n mul ( rp [ 0 ] , ap [ 0 ] , w , c1 ) ;\n mul ( rp [ 1 ] , ap [ 1 ] , w , c1 ) ;\n mul ( rp [ 2 ] , ap [ 2 ] , w , c1 ) ;\n mul ( rp [ 3 ] , ap [ 3 ] , w , c1 ) ;\n ap += 4 ;\n rp += 4 ;\n num -= 4 ;\n }\n if ( num ) {\n mul ( rp [ 0 ] , ap [ 0 ] , w , c1 ) ;\n if ( -- num == 0 ) return c1 ;\n mul ( rp [ 1 ] , ap [ 1 ] , w , c1 ) ;\n if ( -- num == 0 ) return c1 ;\n mul ( rp [ 2 ] , ap [ 2 ] , w , c1 ) ;\n }\n return ( c1 ) ;\n }"}
{"idx": 10329, "target": 0, "func": "void rds_clear_recv_queue ( struct rds_sock * rs ) {\n struct sock * sk = rds_rs_to_sk ( rs ) ;\n struct rds_incoming * inc , * tmp ;\n unsigned long flags ;\n write_lock_irqsave ( & rs -> rs_recv_lock , flags ) ;\n list_for_each_entry_safe ( inc , tmp , & rs -> rs_recv_queue , i_item ) {\n rds_recv_rcvbuf_delta ( rs , sk , inc -> i_conn -> c_lcong , - be32_to_cpu ( inc -> i_hdr . h_len ) , inc -> i_hdr . h_dport ) ;\n list_del_init ( & inc -> i_item ) ;\n rds_inc_put ( inc ) ;\n }\n write_unlock_irqrestore ( & rs -> rs_recv_lock , flags ) ;\n }"}
{"idx": 10330, "target": 0, "func": "static int SpoolssRouterReplyPrinter_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 10331, "target": 0, "func": "static int dissect_DEVMODE ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n proto_item * item ;\n proto_tree * subtree ;\n guint16 driver_extra ;\n gint16 print_quality ;\n guint32 fields ;\n int struct_start = offset ;\n if ( di -> conformant_run ) return offset ;\n subtree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_DEVMODE , & item , \"Devicemode\" ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_devmode_size , NULL ) ;\n dissect_spoolss_uint16uni ( tvb , offset , pinfo , subtree , drep , NULL , hf_devmode_devicename ) ;\n offset += 64 ;\n offset = dissect_ndr_uint16 ( tvb , offset , pinfo , subtree , di , drep , hf_devmode_spec_version , NULL ) ;\n offset = dissect_ndr_uint16 ( tvb , offset , pinfo , subtree , di , drep , hf_devmode_driver_version , NULL ) ;\n offset = dissect_ndr_uint16 ( tvb , offset , pinfo , subtree , di , drep , hf_devmode_size2 , NULL ) ;\n offset = dissect_ndr_uint16 ( tvb , offset , pinfo , subtree , di , drep , hf_devmode_driver_extra_len , & driver_extra ) ;\n offset = dissect_DEVMODE_fields ( tvb , offset , pinfo , subtree , di , drep , & fields ) ;\n offset = dissect_ndr_uint16 ( tvb , offset , pinfo , subtree , di , drep , hf_devmode_orientation , NULL ) ;\n offset = dissect_ndr_uint16 ( tvb , offset , pinfo , subtree , di , drep , hf_devmode_paper_size , NULL ) ;\n offset = dissect_ndr_uint16 ( tvb , offset , pinfo , subtree , di , drep , hf_devmode_paper_length , NULL ) ;\n offset = dissect_ndr_uint16 ( tvb , offset , pinfo , subtree , di , drep , hf_devmode_paper_width , NULL ) ;\n offset = dissect_ndr_uint16 ( tvb , offset , pinfo , subtree , di , drep , hf_devmode_scale , NULL ) ;\n offset = dissect_ndr_uint16 ( tvb , offset , pinfo , subtree , di , drep , hf_devmode_copies , NULL ) ;\n offset = dissect_ndr_uint16 ( tvb , offset , pinfo , subtree , di , drep , hf_devmode_default_source , NULL ) ;\n offset = dissect_ndr_uint16 ( tvb , offset , pinfo , NULL , di , drep , hf_devmode_print_quality , & print_quality ) ;\n if ( print_quality < 0 ) proto_tree_add_item ( subtree , hf_devmode_print_quality , tvb , offset - 2 , 2 , DREP_ENC_INTEGER ( drep ) ) ;\n else proto_tree_add_uint_format_value ( subtree , hf_devmode_print_quality , tvb , offset - 4 , 4 , print_quality , \"%d dpi\" , print_quality ) ;\n offset = dissect_ndr_uint16 ( tvb , offset , pinfo , subtree , di , drep , hf_devmode_color , NULL ) ;\n offset = dissect_ndr_uint16 ( tvb , offset , pinfo , subtree , di , drep , hf_devmode_duplex , NULL ) ;\n offset = dissect_ndr_uint16 ( tvb , offset , pinfo , subtree , di , drep , hf_devmode_y_resolution , NULL ) ;\n offset = dissect_ndr_uint16 ( tvb , offset , pinfo , subtree , di , drep , hf_devmode_tt_option , NULL ) ;\n offset = dissect_ndr_uint16 ( tvb , offset , pinfo , subtree , di , drep , hf_devmode_collate , NULL ) ;\n dissect_spoolss_uint16uni ( tvb , offset , pinfo , subtree , drep , NULL , hf_devmode_form_name ) ;\n offset += 64 ;\n offset = dissect_ndr_uint16 ( tvb , offset , pinfo , subtree , di , drep , hf_devmode_log_pixels , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_devmode_bits_per_pel , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_devmode_pels_width , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_devmode_pels_height , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_devmode_display_flags , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_devmode_display_freq , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_devmode_icm_method , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_devmode_icm_intent , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_devmode_media_type , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_devmode_dither_type , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_devmode_reserved1 , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_devmode_reserved2 , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_devmode_panning_width , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_devmode_panning_height , NULL ) ;\n if ( driver_extra ) offset = dissect_ndr_uint8s ( tvb , offset , pinfo , subtree , di , drep , hf_devmode_driver_extra , driver_extra , NULL ) ;\n proto_item_set_len ( item , offset - struct_start ) ;\n return offset ;\n }"}
{"idx": 10332, "target": 0, "func": "static int dissect_h245_OCTET_STRING_SIZE_1_255 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 1 , 255 , FALSE , NULL ) ;\n return offset ;\n }"}
{"idx": 10333, "target": 0, "func": "int qemuMonitorJSONGetBlockStatsInfo ( qemuMonitorPtr mon , const char * dev_name , long long * rd_req , long long * rd_bytes , long long * rd_total_times , long long * wr_req , long long * wr_bytes , long long * wr_total_times , long long * flush_req , long long * flush_total_times , long long * errs ) {\n int ret ;\n int i ;\n int found = 0 ;\n virJSONValuePtr cmd = qemuMonitorJSONMakeCommand ( \"query-blockstats\" , NULL ) ;\n virJSONValuePtr reply = NULL ;\n virJSONValuePtr devices ;\n * rd_req = * rd_bytes = - 1 ;\n * wr_req = * wr_bytes = * errs = - 1 ;\n if ( rd_total_times ) * rd_total_times = - 1 ;\n if ( wr_total_times ) * wr_total_times = - 1 ;\n if ( flush_req ) * flush_req = - 1 ;\n if ( flush_total_times ) * flush_total_times = - 1 ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n if ( ret < 0 ) goto cleanup ;\n ret = - 1 ;\n devices = virJSONValueObjectGet ( reply , \"return\" ) ;\n if ( ! devices || devices -> type != VIR_JSON_TYPE_ARRAY ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"blockstats reply was missing device list\" ) ) ;\n goto cleanup ;\n }\n for ( i = 0 ;\n i < virJSONValueArraySize ( devices ) ;\n i ++ ) {\n virJSONValuePtr dev = virJSONValueArrayGet ( devices , i ) ;\n virJSONValuePtr stats ;\n const char * thisdev ;\n if ( ! dev || dev -> type != VIR_JSON_TYPE_OBJECT ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"blockstats device entry was not in expected format\" ) ) ;\n goto cleanup ;\n }\n if ( ( thisdev = virJSONValueObjectGetString ( dev , \"device\" ) ) == NULL ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"blockstats device entry was not in expected format\" ) ) ;\n goto cleanup ;\n }\n if ( STRPREFIX ( thisdev , QEMU_DRIVE_HOST_PREFIX ) ) thisdev += strlen ( QEMU_DRIVE_HOST_PREFIX ) ;\n if ( STRNEQ ( thisdev , dev_name ) ) continue ;\n found = 1 ;\n if ( ( stats = virJSONValueObjectGet ( dev , \"stats\" ) ) == NULL || stats -> type != VIR_JSON_TYPE_OBJECT ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"blockstats stats entry was not in expected format\" ) ) ;\n goto cleanup ;\n }\n if ( virJSONValueObjectGetNumberLong ( stats , \"rd_bytes\" , rd_bytes ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"cannot read %s statistic\" ) , \"rd_bytes\" ) ;\n goto cleanup ;\n }\n if ( virJSONValueObjectGetNumberLong ( stats , \"rd_operations\" , rd_req ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"cannot read %s statistic\" ) , \"rd_operations\" ) ;\n goto cleanup ;\n }\n if ( rd_total_times && virJSONValueObjectHasKey ( stats , \"rd_total_times_ns\" ) && ( virJSONValueObjectGetNumberLong ( stats , \"rd_total_times_ns\" , rd_total_times ) < 0 ) ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"cannot read %s statistic\" ) , \"rd_total_times_ns\" ) ;\n goto cleanup ;\n }\n if ( virJSONValueObjectGetNumberLong ( stats , \"wr_bytes\" , wr_bytes ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"cannot read %s statistic\" ) , \"wr_bytes\" ) ;\n goto cleanup ;\n }\n if ( virJSONValueObjectGetNumberLong ( stats , \"wr_operations\" , wr_req ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"cannot read %s statistic\" ) , \"wr_operations\" ) ;\n goto cleanup ;\n }\n if ( wr_total_times && virJSONValueObjectHasKey ( stats , \"wr_total_times_ns\" ) && ( virJSONValueObjectGetNumberLong ( stats , \"wr_total_times_ns\" , wr_total_times ) < 0 ) ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"cannot read %s statistic\" ) , \"wr_total_times_ns\" ) ;\n goto cleanup ;\n }\n if ( flush_req && virJSONValueObjectHasKey ( stats , \"flush_operations\" ) && ( virJSONValueObjectGetNumberLong ( stats , \"flush_operations\" , flush_req ) < 0 ) ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"cannot read %s statistic\" ) , \"flush_operations\" ) ;\n goto cleanup ;\n }\n if ( flush_total_times && virJSONValueObjectHasKey ( stats , \"flush_total_times_ns\" ) && ( virJSONValueObjectGetNumberLong ( stats , \"flush_total_times_ns\" , flush_total_times ) < 0 ) ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"cannot read %s statistic\" ) , \"flush_total_times_ns\" ) ;\n goto cleanup ;\n }\n }\n if ( ! found ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"cannot find statistics for device '%s'\" ) , dev_name ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 10334, "target": 0, "func": "static bool parse_certificatePolicies ( chunk_t blob , int level0 , private_x509_cert_t * this ) {\n x509_cert_policy_t * policy = NULL ;\n asn1_parser_t * parser ;\n chunk_t object ;\n int objectID , qualifier = OID_UNKNOWN ;\n bool success ;\n parser = asn1_parser_create ( certificatePoliciesObject , blob ) ;\n parser -> set_top_level ( parser , level0 ) ;\n while ( parser -> iterate ( parser , & objectID , & object ) ) {\n switch ( objectID ) {\n case CERT_POLICY_ID : INIT ( policy , . oid = chunk_clone ( object ) , ) ;\n this -> cert_policies -> insert_last ( this -> cert_policies , policy ) ;\n break ;\n case CERT_POLICY_QUALIFIER_ID : qualifier = asn1_known_oid ( object ) ;\n break ;\n case CERT_POLICY_CPS_URI : if ( policy && ! policy -> cps_uri && object . len && qualifier == OID_POLICY_QUALIFIER_CPS && chunk_printable ( object , NULL , 0 ) ) {\n policy -> cps_uri = strndup ( object . ptr , object . len ) ;\n }\n break ;\n case CERT_POLICY_EXPLICIT_TEXT : break ;\n default : break ;\n }\n }\n success = parser -> success ( parser ) ;\n parser -> destroy ( parser ) ;\n return success ;\n }"}
{"idx": 10335, "target": 0, "func": "static const char * cmd_action ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n return add_rule ( cmd , ( directory_config * ) _dcfg , RULE_TYPE_ACTION , SECACTION_TARGETS , SECACTION_ARGS , p1 ) ;\n }"}
{"idx": 10336, "target": 0, "func": "TSReturnCode TSHttpSsnClientFdGet ( TSHttpSsn ssnp , int * fdp ) {\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) fdp ) == TS_SUCCESS ) ;\n VConnection * basecs = reinterpret_cast < VConnection * > ( ssnp ) ;\n ProxyClientSession * cs = dynamic_cast < ProxyClientSession * > ( basecs ) ;\n if ( cs == nullptr ) {\n return TS_ERROR ;\n }\n NetVConnection * vc = cs -> get_netvc ( ) ;\n if ( vc == nullptr ) {\n return TS_ERROR ;\n }\n * fdp = vc -> get_socket ( ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 10337, "target": 0, "func": "EVP_PKEY * X509_REQ_get_pubkey ( X509_REQ * req ) {\n if ( ( req == NULL ) || ( req -> req_info == NULL ) ) return ( NULL ) ;\n return ( X509_PUBKEY_get ( req -> req_info -> pubkey ) ) ;\n }"}
{"idx": 10338, "target": 0, "func": "static void e1000e_set_status ( E1000ECore * core , int index , uint32_t val ) {\n if ( ( val & E1000_STATUS_PHYRA ) == 0 ) {\n core -> mac [ index ] &= ~ E1000_STATUS_PHYRA ;\n }\n }"}
{"idx": 10339, "target": 0, "func": "static void AddEncodedName ( NamTab * nt , char * utf8name , uint16 lang , uint16 strid ) {\n NameEntry * ne ;\n int maclang , macenc = - 1 , specific ;\n char * macname = NULL ;\n if ( strid == ttf_postscriptname && lang != 0x409 ) return ;\n if ( nt -> cur + 6 >= nt -> max ) {\n if ( nt -> cur == 0 ) nt -> entries = malloc ( ( nt -> max = 100 ) * sizeof ( NameEntry ) ) ;\n else nt -> entries = realloc ( nt -> entries , ( nt -> max += 100 ) * sizeof ( NameEntry ) ) ;\n }\n ne = nt -> entries + nt -> cur ;\n ne -> platform = 3 ;\n ne -> specific = 1 ;\n ne -> lang = lang ;\n ne -> strid = strid ;\n ne -> offset = ftell ( nt -> strings ) ;\n ne -> len = 2 * utf82u_strlen ( utf8name ) ;\n dumpustr ( nt -> strings , utf8name ) ;\n ++ ne ;\n if ( nt -> format == ff_ttfsym ) {\n * ne = ne [ - 1 ] ;\n ne -> specific = 0 ;\n ++ ne ;\n }\n maclang = WinLangToMac ( lang ) ;\n if ( ! nt -> applemode && lang != 0x409 ) maclang = 0xffff ;\n if ( maclang != 0xffff ) {\n # ifdef FONTFORGE_CONFIG_APPLE_UNICODE_NAMES if ( strid != ttf_postscriptname ) {\n * ne = ne [ - 1 ] ;\n ne -> platform = 0 ;\n ne -> specific = 0 ;\n ne -> lang = maclang ;\n ++ ne ;\n }\n # endif macenc = MacEncFromMacLang ( maclang ) ;\n macname = Utf8ToMacStr ( utf8name , macenc , maclang ) ;\n if ( macname != NULL ) {\n ne -> platform = 1 ;\n ne -> specific = macenc ;\n ne -> lang = maclang ;\n ne -> strid = strid ;\n ne -> offset = ftell ( nt -> strings ) ;\n ne -> len = strlen ( macname ) ;\n dumpstr ( nt -> strings , macname ) ;\n ++ ne ;\n free ( macname ) ;\n }\n }\n specific = nt -> encoding_name -> is_korean ? 5 : nt -> encoding_name -> is_japanese ? 2 : nt -> encoding_name -> is_simplechinese ? 3 : strmatch ( nt -> encoding_name -> enc_name , \"EUC-GB12345\" ) == 0 ? 3 : nt -> encoding_name -> is_tradchinese ? 4 : - 1 ;\n if ( specific != - 1 ) {\n ne -> platform = 3 ;\n ne -> specific = specific ;\n ne -> lang = lang ;\n ne -> strid = strid ;\n if ( macname != NULL && ( ( specific == 2 && macenc == 1 ) || ( specific == 3 && macenc == 25 ) || ( specific == 4 && macenc == 2 ) || ( specific == 5 && macenc == 3 ) ) ) {\n ne -> offset = ne [ - 1 ] . offset ;\n ne -> len = ne [ - 1 ] . len ;\n }\n else {\n char * space , * out ;\n const char * encname ;\n ICONV_CONST char * in ;\n Encoding * enc ;\n size_t inlen , outlen ;\n ne -> offset = ftell ( nt -> strings ) ;\n encname = nt -> encoding_name -> is_japanese ? \"SJIS\" : strmatch ( nt -> encoding_name -> enc_name , \"JOHAB\" ) == 0 ? \"JOHAB\" : nt -> encoding_name -> is_korean ? \"EUC-KR\" : nt -> encoding_name -> is_simplechinese ? \"EUC-CN\" : nt -> encoding_name -> enc_name ;\n enc = FindOrMakeEncoding ( encname ) ;\n if ( enc == NULL ) -- ne ;\n else {\n unichar_t * uin = utf82u_copy ( utf8name ) ;\n outlen = 3 * strlen ( utf8name ) + 10 ;\n out = space = malloc ( outlen + 2 ) ;\n in = ( char * ) uin ;\n inlen = 2 * u_strlen ( uin ) ;\n iconv ( enc -> fromunicode , NULL , NULL , NULL , NULL ) ;\n iconv ( enc -> fromunicode , & in , & inlen , & out , & outlen ) ;\n out [ 0 ] = '\\0' ;\n out [ 1 ] = '\\0' ;\n ne -> offset = ftell ( nt -> strings ) ;\n ne -> len = strlen ( space ) ;\n dumpstr ( nt -> strings , space ) ;\n free ( space ) ;\n free ( uin ) ;\n }\n }\n ++ ne ;\n }\n nt -> cur = ne - nt -> entries ;\n }"}
{"idx": 10340, "target": 0, "func": "static void dumptype42 ( FILE * type42 , struct alltabs * at , enum fontformat format ) {\n FILE * temp = tmpfile ( ) ;\n struct hexout hexout ;\n int i , length ;\n dumpttf ( temp , at ) ;\n rewind ( temp ) ;\n hexout . type42 = type42 ;\n hexout . bytesout = 0 ;\n qsort ( at -> tabdir . ordered , at -> tabdir . numtab , sizeof ( struct taboff * ) , tcomp2 ) ;\n dumphex ( & hexout , temp , at -> tabdir . ordered [ 0 ] -> offset ) ;\n for ( i = 0 ;\n i < at -> tabdir . numtab ;\n ++ i ) {\n if ( at -> tabdir . ordered [ i ] -> length > 65534 && at -> tabdir . ordered [ i ] -> tag == CHR ( 'g' , 'l' , 'y' , 'f' ) ) {\n uint32 last = 0 ;\n int j ;\n fseek ( temp , at -> tabdir . ordered [ i ] -> offset , SEEK_SET ) ;\n for ( j = 0 ;\n j < at -> maxp . numGlyphs ;\n ++ j ) {\n if ( at -> gi . loca [ j + 1 ] - last > 65534 ) {\n dumphex ( & hexout , temp , at -> gi . loca [ j ] - last ) ;\n last = at -> gi . loca [ j ] ;\n }\n }\n dumphex ( & hexout , temp , at -> gi . loca [ j ] - last ) ;\n }\n else {\n if ( i < at -> tabdir . numtab - 1 ) length = at -> tabdir . ordered [ i + 1 ] -> offset - at -> tabdir . ordered [ i ] -> offset ;\n else {\n fseek ( temp , 0 , SEEK_END ) ;\n length = ftell ( temp ) - at -> tabdir . ordered [ i ] -> offset ;\n }\n fseek ( temp , at -> tabdir . ordered [ i ] -> offset , SEEK_SET ) ;\n dumphex ( & hexout , temp , length ) ;\n }\n }\n fclose ( temp ) ;\n }"}
{"idx": 10341, "target": 0, "func": "static GdkPixbuf * get_pixbuf_for_content ( goffset file_len , char * file_contents ) {\n gboolean res ;\n GdkPixbuf * pixbuf , * pixbuf2 ;\n GdkPixbufLoader * loader ;\n gsize chunk_len ;\n pixbuf = NULL ;\n loader = gdk_pixbuf_loader_new ( ) ;\n g_signal_connect ( loader , \"size-prepared\" , G_CALLBACK ( thumbnail_loader_size_prepared ) , NULL ) ;\n res = TRUE ;\n while ( res && file_len > 0 ) {\n chunk_len = file_len ;\n res = gdk_pixbuf_loader_write ( loader , ( guchar * ) file_contents , chunk_len , NULL ) ;\n file_contents += chunk_len ;\n file_len -= chunk_len ;\n }\n if ( res ) {\n res = gdk_pixbuf_loader_close ( loader , NULL ) ;\n }\n if ( res ) {\n pixbuf = g_object_ref ( gdk_pixbuf_loader_get_pixbuf ( loader ) ) ;\n }\n g_object_unref ( G_OBJECT ( loader ) ) ;\n if ( pixbuf ) {\n pixbuf2 = gdk_pixbuf_apply_embedded_orientation ( pixbuf ) ;\n g_object_unref ( pixbuf ) ;\n pixbuf = pixbuf2 ;\n }\n return pixbuf ;\n }"}
{"idx": 10342, "target": 0, "func": "int main ( int argc ATTRIBUTE_UNUSED , char * * argv ATTRIBUTE_UNUSED ) {\n fprintf ( stderr , \"libxml was not compiled with catalog and output support\\n\" ) ;\n return ( 1 ) ;\n }"}
{"idx": 10343, "target": 0, "func": "void TSHttpTxnClientKeepaliveSet ( TSHttpTxn txnp , int set ) {\n HttpSM * sm = ( HttpSM * ) txnp ;\n HttpTransact : : State * s = & ( sm -> t_state ) ;\n s -> hdr_info . trust_response_cl = ( set != 0 ) ;\n }"}
{"idx": 10344, "target": 0, "func": "static void ardp_parse_header ( tvbuff_t * tvb , packet_info * pinfo , alljoyn_ardp_tree_data * tree_data ) {\n guint8 flags , header_length ;\n gint eaklen , packet_length ;\n guint16 data_length ;\n packet_length = tvb_reported_length ( tvb ) ;\n flags = tvb_get_guint8 ( tvb , 0 ) ;\n tree_data -> syn = ( flags & ARDP_SYN ) != 0 ;\n tree_data -> ack = ( flags & ARDP_ACK ) != 0 ;\n tree_data -> eak = ( flags & ARDP_EAK ) != 0 ;\n tree_data -> rst = ( flags & ARDP_RST ) != 0 ;\n tree_data -> nul = ( flags & ARDP_NUL ) != 0 ;\n header_length = 2 * tvb_get_guint8 ( tvb , ARDP_HEADER_LEN_OFFSET ) ;\n if ( packet_length < ARDP_DATA_LENGTH_OFFSET + 2 ) {\n set_pinfo_desegment ( pinfo , 0 , ARDP_DATA_LENGTH_OFFSET + 2 - packet_length ) ;\n tree_data -> offset = ARDP_HEADER_LEN_OFFSET + 1 ;\n return ;\n }\n data_length = tvb_get_ntohs ( tvb , ARDP_DATA_LENGTH_OFFSET ) ;\n if ( packet_length < header_length + data_length ) {\n set_pinfo_desegment ( pinfo , 0 , header_length + data_length - packet_length ) ;\n tree_data -> offset = ARDP_DATA_LENGTH_OFFSET + 2 ;\n return ;\n }\n proto_tree_add_item ( tree_data -> alljoyn_tree , hf_ardp_syn_flag , tvb , tree_data -> offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree_data -> alljoyn_tree , hf_ardp_ack_flag , tvb , tree_data -> offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree_data -> alljoyn_tree , hf_ardp_eak_flag , tvb , tree_data -> offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree_data -> alljoyn_tree , hf_ardp_rst_flag , tvb , tree_data -> offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree_data -> alljoyn_tree , hf_ardp_nul_flag , tvb , tree_data -> offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree_data -> alljoyn_tree , hf_ardp_unused_flag , tvb , tree_data -> offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree_data -> alljoyn_tree , hf_ardp_version_field , tvb , tree_data -> offset , 1 , ENC_NA ) ;\n tree_data -> offset += 1 ;\n proto_tree_add_item ( tree_data -> alljoyn_tree , hf_ardp_hlen , tvb , tree_data -> offset , 1 , ENC_NA ) ;\n tree_data -> offset += 1 ;\n proto_tree_add_item ( tree_data -> alljoyn_tree , hf_ardp_src , tvb , tree_data -> offset , 2 , ENC_BIG_ENDIAN ) ;\n tree_data -> offset += 2 ;\n proto_tree_add_item ( tree_data -> alljoyn_tree , hf_ardp_dst , tvb , tree_data -> offset , 2 , ENC_BIG_ENDIAN ) ;\n tree_data -> offset += 2 ;\n proto_tree_add_item ( tree_data -> alljoyn_tree , hf_ardp_dlen , tvb , tree_data -> offset , 2 , ENC_BIG_ENDIAN ) ;\n tree_data -> offset += 2 ;\n proto_tree_add_item ( tree_data -> alljoyn_tree , hf_ardp_seq , tvb , tree_data -> offset , 4 , ENC_BIG_ENDIAN ) ;\n tree_data -> sequence = tvb_get_ntohl ( tvb , tree_data -> offset ) ;\n tree_data -> offset += 4 ;\n proto_tree_add_item ( tree_data -> alljoyn_tree , hf_ardp_ack , tvb , tree_data -> offset , 4 , ENC_BIG_ENDIAN ) ;\n tree_data -> acknowledge = tvb_get_ntohl ( tvb , tree_data -> offset ) ;\n tree_data -> offset += 4 ;\n if ( tree_data -> syn ) {\n proto_tree_add_item ( tree_data -> alljoyn_tree , hf_ardp_segmax , tvb , tree_data -> offset , 2 , ENC_BIG_ENDIAN ) ;\n tree_data -> offset += 2 ;\n proto_tree_add_item ( tree_data -> alljoyn_tree , hf_ardp_segbmax , tvb , tree_data -> offset , 2 , ENC_BIG_ENDIAN ) ;\n tree_data -> offset += 2 ;\n proto_tree_add_item ( tree_data -> alljoyn_tree , hf_ardp_dackt , tvb , tree_data -> offset , 4 , ENC_BIG_ENDIAN ) ;\n tree_data -> offset += 4 ;\n proto_tree_add_item ( tree_data -> alljoyn_tree , hf_ardp_options , tvb , tree_data -> offset , 2 , ENC_BIG_ENDIAN ) ;\n tree_data -> offset += 2 ;\n }\n else {\n proto_tree_add_item ( tree_data -> alljoyn_tree , hf_ardp_ttl , tvb , tree_data -> offset , 4 , ENC_BIG_ENDIAN ) ;\n tree_data -> offset += 4 ;\n proto_tree_add_item ( tree_data -> alljoyn_tree , hf_ardp_lcs , tvb , tree_data -> offset , 4 , ENC_BIG_ENDIAN ) ;\n tree_data -> offset += 4 ;\n proto_tree_add_item ( tree_data -> alljoyn_tree , hf_ardp_nsa , tvb , tree_data -> offset , 4 , ENC_BIG_ENDIAN ) ;\n tree_data -> offset += 4 ;\n proto_tree_add_item ( tree_data -> alljoyn_tree , hf_ardp_fss , tvb , tree_data -> offset , 4 , ENC_BIG_ENDIAN ) ;\n tree_data -> start_sequence = tvb_get_ntohl ( tvb , tree_data -> offset ) ;\n tree_data -> offset += 4 ;\n proto_tree_add_item ( tree_data -> alljoyn_tree , hf_ardp_fcnt , tvb , tree_data -> offset , 2 , ENC_BIG_ENDIAN ) ;\n tree_data -> fragment_count = tvb_get_ntohs ( tvb , tree_data -> offset ) ;\n tree_data -> offset += 2 ;\n eaklen = header_length - ARDP_FIXED_HDR_LEN ;\n if ( eaklen > 0 ) {\n if ( tree_data -> eak ) {\n proto_tree_add_item ( tree_data -> alljoyn_tree , hf_ardp_bmp , tvb , tree_data -> offset , eaklen , ENC_NA ) ;\n }\n tree_data -> offset += eaklen ;\n }\n }\n }"}
{"idx": 10345, "target": 0, "func": "static int dumpcffhmtx ( struct alltabs * at , SplineFont * sf , int bitmaps ) {\n DBounds b ;\n SplineChar * sc ;\n int i , cnt ;\n int dovmetrics = sf -> hasvmetrics ;\n int width = at -> gi . fixed_width ;\n at -> gi . hmtx = tmpfile ( ) ;\n if ( dovmetrics ) at -> gi . vmtx = tmpfile ( ) ;\n FigureFullMetricsEnd ( sf , & at -> gi , bitmaps ) ;\n if ( at -> gi . bygid [ 0 ] != - 1 && ( sf -> glyphs [ at -> gi . bygid [ 0 ] ] -> width == width || width <= 0 ) ) {\n putshort ( at -> gi . hmtx , sf -> glyphs [ at -> gi . bygid [ 0 ] ] -> width ) ;\n SplineCharLayerFindBounds ( sf -> glyphs [ at -> gi . bygid [ 0 ] ] , at -> gi . layer , & b ) ;\n putshort ( at -> gi . hmtx , b . minx ) ;\n if ( dovmetrics ) {\n putshort ( at -> gi . vmtx , sf -> glyphs [ at -> gi . bygid [ 0 ] ] -> vwidth ) ;\n putshort ( at -> gi . vmtx , b . miny ) ;\n }\n }\n else {\n putshort ( at -> gi . hmtx , width <= 0 ? ( sf -> ascent + sf -> descent ) / 2 : width ) ;\n putshort ( at -> gi . hmtx , 0 ) ;\n if ( dovmetrics ) {\n putshort ( at -> gi . vmtx , sf -> ascent + sf -> descent ) ;\n putshort ( at -> gi . vmtx , 0 ) ;\n }\n }\n cnt = 1 ;\n if ( bitmaps ) {\n if ( width <= 0 ) width = ( sf -> ascent + sf -> descent ) / 3 ;\n putshort ( at -> gi . hmtx , width ) ;\n putshort ( at -> gi . hmtx , 0 ) ;\n if ( dovmetrics ) {\n putshort ( at -> gi . vmtx , sf -> ascent + sf -> descent ) ;\n putshort ( at -> gi . vmtx , 0 ) ;\n }\n putshort ( at -> gi . hmtx , width ) ;\n putshort ( at -> gi . hmtx , 0 ) ;\n if ( dovmetrics ) {\n putshort ( at -> gi . vmtx , sf -> ascent + sf -> descent ) ;\n putshort ( at -> gi . vmtx , 0 ) ;\n }\n cnt = 3 ;\n }\n for ( i = cnt ;\n i < at -> gi . gcnt ;\n ++ i ) if ( at -> gi . bygid [ i ] != - 1 ) {\n sc = sf -> glyphs [ at -> gi . bygid [ i ] ] ;\n if ( SCWorthOutputting ( sc ) ) {\n if ( i <= at -> gi . lasthwidth ) putshort ( at -> gi . hmtx , sc -> width ) ;\n SplineCharLayerFindBounds ( sc , at -> gi . layer , & b ) ;\n putshort ( at -> gi . hmtx , b . minx ) ;\n if ( dovmetrics ) {\n if ( i <= at -> gi . lastvwidth ) putshort ( at -> gi . vmtx , sc -> vwidth ) ;\n putshort ( at -> gi . vmtx , b . maxy ) ;\n }\n ++ cnt ;\n if ( i == at -> gi . lasthwidth ) at -> gi . hfullcnt = cnt ;\n if ( i == at -> gi . lastvwidth ) at -> gi . vfullcnt = cnt ;\n }\n }\n at -> gi . hmtxlen = ftell ( at -> gi . hmtx ) ;\n if ( at -> gi . hmtxlen & 2 ) putshort ( at -> gi . hmtx , 0 ) ;\n if ( dovmetrics ) {\n at -> gi . vmtxlen = ftell ( at -> gi . vmtx ) ;\n if ( at -> gi . vmtxlen & 2 ) putshort ( at -> gi . vmtx , 0 ) ;\n }\n at -> gi . maxp -> numGlyphs = cnt ;\n return ( true ) ;\n }"}
{"idx": 10346, "target": 0, "func": "static void build_config ( char * prefix , struct manager_ctx * manager , struct server * server ) {\n char * path = NULL ;\n int path_size = strlen ( prefix ) + strlen ( server -> port ) + 20 ;\n path = ss_malloc ( path_size ) ;\n snprintf ( path , path_size , \"%s/.shadowsocks_%s.conf\" , prefix , server -> port ) ;\n FILE * f = fopen ( path , \"w+\" ) ;\n if ( f == NULL ) {\n if ( verbose ) {\n LOGE ( \"unable to open config file\" ) ;\n }\n ss_free ( path ) ;\n return ;\n }\n fprintf ( f , \"{\n\\n\" ) ;\n fprintf ( f , \"\\\"server_port\\\":%d,\\n\" , atoi ( server -> port ) ) ;\n fprintf ( f , \"\\\"password\\\":\\\"%s\\\"\" , server -> password ) ;\n if ( server -> method ) fprintf ( f , \",\\n\\\"method\\\":\\\"%s\\\"\" , server -> method ) ;\n else if ( manager -> method ) fprintf ( f , \",\\n\\\"method\\\":\\\"%s\\\"\" , manager -> method ) ;\n if ( server -> fast_open [ 0 ] ) fprintf ( f , \",\\n\\\"fast_open\\\": %s\" , server -> fast_open ) ;\n if ( server -> mode ) fprintf ( f , \",\\n\\\"mode\\\":\\\"%s\\\"\" , server -> mode ) ;\n if ( server -> plugin ) fprintf ( f , \",\\n\\\"plugin\\\":\\\"%s\\\"\" , server -> plugin ) ;\n if ( server -> plugin_opts ) fprintf ( f , \",\\n\\\"plugin_opts\\\":\\\"%s\\\"\" , server -> plugin_opts ) ;\n fprintf ( f , \"\\n}\n\\n\" ) ;\n fclose ( f ) ;\n ss_free ( path ) ;\n }"}
{"idx": 10347, "target": 0, "func": "static void remote_ls ( const char * path , int flags , void ( * userFunc ) ( struct remote_ls_ctx * ls ) , void * userData ) {\n char * url = xstrfmt ( \"%s%s\" , repo -> url , path ) ;\n struct active_request_slot * slot ;\n struct slot_results results ;\n struct strbuf in_buffer = STRBUF_INIT ;\n struct buffer out_buffer = {\n STRBUF_INIT , 0 }\n ;\n struct curl_slist * dav_headers = NULL ;\n struct xml_ctx ctx ;\n struct remote_ls_ctx ls ;\n ls . flags = flags ;\n ls . path = xstrdup ( path ) ;\n ls . dentry_name = NULL ;\n ls . dentry_flags = 0 ;\n ls . userData = userData ;\n ls . userFunc = userFunc ;\n strbuf_addf ( & out_buffer . buf , PROPFIND_ALL_REQUEST ) ;\n dav_headers = curl_slist_append ( dav_headers , \"Depth: 1\" ) ;\n dav_headers = curl_slist_append ( dav_headers , \"Content-Type: text/xml\" ) ;\n slot = get_active_slot ( ) ;\n slot -> results = & results ;\n curl_setup_http ( slot -> curl , url , DAV_PROPFIND , & out_buffer , fwrite_buffer ) ;\n curl_easy_setopt ( slot -> curl , CURLOPT_HTTPHEADER , dav_headers ) ;\n curl_easy_setopt ( slot -> curl , CURLOPT_FILE , & in_buffer ) ;\n if ( start_active_slot ( slot ) ) {\n run_active_slot ( slot ) ;\n if ( results . curl_result == CURLE_OK ) {\n XML_Parser parser = XML_ParserCreate ( NULL ) ;\n enum XML_Status result ;\n ctx . name = xcalloc ( 10 , 1 ) ;\n ctx . len = 0 ;\n ctx . cdata = NULL ;\n ctx . userFunc = handle_remote_ls_ctx ;\n ctx . userData = & ls ;\n XML_SetUserData ( parser , & ctx ) ;\n XML_SetElementHandler ( parser , xml_start_tag , xml_end_tag ) ;\n XML_SetCharacterDataHandler ( parser , xml_cdata ) ;\n result = XML_Parse ( parser , in_buffer . buf , in_buffer . len , 1 ) ;\n free ( ctx . name ) ;\n if ( result != XML_STATUS_OK ) {\n fprintf ( stderr , \"XML error: %s\\n\" , XML_ErrorString ( XML_GetErrorCode ( parser ) ) ) ;\n }\n XML_ParserFree ( parser ) ;\n }\n }\n else {\n fprintf ( stderr , \"Unable to start PROPFIND request\\n\" ) ;\n }\n free ( ls . path ) ;\n free ( url ) ;\n strbuf_release ( & out_buffer . buf ) ;\n strbuf_release ( & in_buffer ) ;\n curl_slist_free_all ( dav_headers ) ;\n }"}
{"idx": 10348, "target": 0, "func": "void vp9_rc_postencode_update_drop_frame ( VP9_COMP * cpi ) {\n update_buffer_level ( cpi , 0 ) ;\n cpi -> common . last_frame_type = cpi -> common . frame_type ;\n cpi -> rc . frames_since_key ++ ;\n cpi -> rc . frames_to_key -- ;\n }"}
{"idx": 10349, "target": 0, "func": "static void DupTagList ( struct _cmsContext_struct * ctx , const struct _cmsContext_struct * src ) {\n _cmsTagPluginChunkType newHead = {\n NULL }\n ;\n _cmsTagLinkedList * entry ;\n _cmsTagLinkedList * Anterior = NULL ;\n _cmsTagPluginChunkType * head = ( _cmsTagPluginChunkType * ) src -> chunks [ TagPlugin ] ;\n for ( entry = head -> Tag ;\n entry != NULL ;\n entry = entry -> Next ) {\n _cmsTagLinkedList * newEntry = ( _cmsTagLinkedList * ) _cmsSubAllocDup ( ctx -> MemPool , entry , sizeof ( _cmsTagLinkedList ) ) ;\n if ( newEntry == NULL ) return ;\n newEntry -> Next = NULL ;\n if ( Anterior ) Anterior -> Next = newEntry ;\n Anterior = newEntry ;\n if ( newHead . Tag == NULL ) newHead . Tag = newEntry ;\n }\n ctx -> chunks [ TagPlugin ] = _cmsSubAllocDup ( ctx -> MemPool , & newHead , sizeof ( _cmsTagPluginChunkType ) ) ;\n }"}
{"idx": 10350, "target": 0, "func": "static void curses_connection_data_help ( void ) {\n char help [ ] = \"HELP: shortcut list:\\n\\n\" \" ARROWS - switch between panels\\n\" \" j - switch from split to joined view\\n\" \" y - inject characters interactively\\n\" \" Y - inject characters from a file\\n\" \" k - kill the connection\" ;\n curses_message ( help ) ;\n }"}
{"idx": 10351, "target": 0, "func": "TEST_F ( ShortcutsProviderTest , RemoveDuplicates ) {\n base : : string16 text ( ASCIIToUTF16 ( \"dupl\" ) ) ;\n ExpectedURLs expected_urls ;\n expected_urls . push_back ( ExpectedURLAndAllowedToBeDefault ( \"http://duplicate.com/\" , true ) ) ;\n RunShortcutsProviderTest ( provider_ , text , false , expected_urls , \"http://duplicate.com/\" , ASCIIToUTF16 ( \"icate.com\" ) ) ;\n }"}
{"idx": 10352, "target": 0, "func": "static int dissect_h245_T_returnedFunction ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 990 \"../../asn1/h245/h245.cnf\" tvbuff_t * next_tvb = NULL ;\n proto_item * item ;\n proto_tree * subtree ;\n h245_packet_info * saved_h245_pi ;\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , NO_BOUND , NO_BOUND , FALSE , & next_tvb ) ;\n if ( next_tvb && tvb_length ( next_tvb ) ) {\n saved_h245_pi = h245_pi ;\n h245_pi = NULL ;\n item = proto_tree_add_text ( tree , next_tvb , 0 , - 1 , \"The returned function\" ) ;\n subtree = proto_item_add_subtree ( item , ett_h245_returnedFunction ) ;\n PROTO_ITEM_SET_GENERATED ( item ) ;\n dissect_h245_MultimediaSystemControlMessage ( next_tvb , 0 , actx , subtree , hf_h245_pdu_type ) ;\n h245_pi = saved_h245_pi ;\n }\n return offset ;\n }"}
{"idx": 10353, "target": 0, "func": "void ctl_clr_stats ( void ) {\n ctltimereset = current_time ;\n numctlreq = 0 ;\n numctlbadpkts = 0 ;\n numctlresponses = 0 ;\n numctlfrags = 0 ;\n numctlerrors = 0 ;\n numctlfrags = 0 ;\n numctltooshort = 0 ;\n numctlinputresp = 0 ;\n numctlinputfrag = 0 ;\n numctlinputerr = 0 ;\n numctlbadoffset = 0 ;\n numctlbadversion = 0 ;\n numctldatatooshort = 0 ;\n numctlbadop = 0 ;\n numasyncmsgs = 0 ;\n }"}
{"idx": 10354, "target": 0, "func": "static void virtio_init_pci ( VirtIOPCIProxy * proxy , VirtIODevice * vdev , uint16_t vendor , uint16_t device , uint16_t class_code , uint8_t pif ) {\n uint8_t * config ;\n uint32_t size ;\n proxy -> vdev = vdev ;\n config = proxy -> pci_dev . config ;\n pci_config_set_vendor_id ( config , vendor ) ;\n pci_config_set_device_id ( config , device ) ;\n config [ 0x08 ] = VIRTIO_PCI_ABI_VERSION ;\n config [ 0x09 ] = pif ;\n pci_config_set_class ( config , class_code ) ;\n config [ PCI_HEADER_TYPE ] = PCI_HEADER_TYPE_NORMAL ;\n config [ 0x2c ] = vendor & 0xFF ;\n config [ 0x2d ] = ( vendor >> 8 ) & 0xFF ;\n config [ 0x2e ] = vdev -> device_id & 0xFF ;\n config [ 0x2f ] = ( vdev -> device_id >> 8 ) & 0xFF ;\n config [ 0x3d ] = 1 ;\n if ( vdev -> nvectors && ! msix_init ( & proxy -> pci_dev , vdev -> nvectors , 1 , 0 ) ) {\n pci_register_bar ( & proxy -> pci_dev , 1 , msix_bar_size ( & proxy -> pci_dev ) , PCI_BASE_ADDRESS_SPACE_MEMORY , msix_mmio_map ) ;\n }\n else vdev -> nvectors = 0 ;\n proxy -> pci_dev . config_write = virtio_write_config ;\n size = VIRTIO_PCI_REGION_SIZE ( & proxy -> pci_dev ) + vdev -> config_len ;\n if ( size & ( size - 1 ) ) size = 1 << qemu_fls ( size ) ;\n pci_register_bar ( & proxy -> pci_dev , 0 , size , PCI_BASE_ADDRESS_SPACE_IO , virtio_map ) ;\n virtio_bind_device ( vdev , & virtio_pci_bindings , proxy ) ;\n proxy -> host_features |= 0x1 << VIRTIO_F_NOTIFY_ON_EMPTY ;\n proxy -> host_features |= 0x1 << VIRTIO_F_BAD_FEATURE ;\n proxy -> host_features = vdev -> get_features ( vdev , proxy -> host_features ) ;\n }"}
{"idx": 10355, "target": 0, "func": "static void test_bug11718 ( ) {\n MYSQL_RES * res ;\n int rc ;\n const char * query = \"select str_to_date(concat(f3),'%Y%m%d') from t1,t2 \" \"where f1=f2 order by f1\" ;\n myheader ( \"test_bug11718\" ) ;\n rc = mysql_query ( mysql , \"drop table if exists t1, t2\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t1 (f1 int)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t2 (f2 int, f3 numeric(8))\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t1 values (1), (2)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t2 values (1,20050101), (2,20050202)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , query ) ;\n myquery ( rc ) ;\n res = mysql_store_result ( mysql ) ;\n if ( ! opt_silent ) printf ( \"return type: %s\" , ( res -> fields [ 0 ] . type == MYSQL_TYPE_DATE ) ? \"DATE\" : \"not DATE\" ) ;\n DIE_UNLESS ( res -> fields [ 0 ] . type == MYSQL_TYPE_DATE ) ;\n mysql_free_result ( res ) ;\n rc = mysql_query ( mysql , \"drop table t1, t2\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 10356, "target": 0, "func": "jpc_pchg_t * jpc_pchg_copy ( jpc_pchg_t * pchg ) {\n jpc_pchg_t * newpchg ;\n if ( ! ( newpchg = jas_malloc ( sizeof ( jpc_pchg_t ) ) ) ) {\n return 0 ;\n }\n * newpchg = * pchg ;\n return newpchg ;\n }"}
{"idx": 10357, "target": 1, "func": "static void init_config ( struct VP9_COMP * cpi , VP9EncoderConfig * oxcf ) {\n VP9_COMMON * const cm = & cpi -> common ;\n cpi -> oxcf = * oxcf ;\n cpi -> framerate = oxcf -> init_framerate ;\n cm -> profile = oxcf -> profile ;\n cm -> bit_depth = oxcf -> bit_depth ;\n cm -> color_space = UNKNOWN ;\n cm -> width = oxcf -> width ;\n cm -> height = oxcf -> height ;\n vp9_alloc_compressor_data ( cpi ) ;\n cpi -> svc . number_spatial_layers = oxcf -> ss_number_layers ;\n cpi -> svc . number_temporal_layers = oxcf -> ts_number_layers ;\n if ( ( cpi -> svc . number_temporal_layers > 1 && cpi -> oxcf . rc_mode == VPX_CBR ) || ( ( cpi -> svc . number_temporal_layers > 1 || cpi -> svc . number_spatial_layers > 1 ) && cpi -> oxcf . pass == 2 ) ) {\n vp9_init_layer_context ( cpi ) ;\n }\n vp9_change_config ( cpi , oxcf ) ;\n cpi -> static_mb_pct = 0 ;\n cpi -> ref_frame_flags = 0 ;\n init_buffer_indices ( cpi ) ;\n set_tile_limits ( cpi ) ;\n }"}
{"idx": 10358, "target": 0, "func": "static PyObject * authGSSClientStep ( PyObject * self , PyObject * args ) {\n gss_client_state * state ;\n PyObject * pystate ;\n char * challenge = NULL ;\n int result = 0 ;\n if ( ! PyArg_ParseTuple ( args , \"Os\" , & pystate , & challenge ) ) return NULL ;\n # if PY_MAJOR_VERSION >= 3 if ( ! PyCapsule_CheckExact ( pystate ) ) {\n # else if ( ! PyCObject_Check ( pystate ) ) {\n # endif PyErr_SetString ( PyExc_TypeError , \"Expected a context object\" ) ;\n return NULL ;\n }\n # if PY_MAJOR_VERSION >= 3 state = PyCapsule_GetPointer ( pystate , NULL ) ;\n # else state = ( gss_client_state * ) PyCObject_AsVoidPtr ( pystate ) ;\n # endif if ( state == NULL ) return NULL ;\n result = authenticate_gss_client_step ( state , challenge ) ;\n if ( result == AUTH_GSS_ERROR ) return NULL ;\n return Py_BuildValue ( \"i\" , result ) ;\n }"}
{"idx": 10359, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ProfileListDesktopBrowserTest , MAYBE_SignOut ) {\n if ( ! profiles : : IsMultipleProfilesEnabled ( ) ) return ;\n ProfileManager * profile_manager = g_browser_process -> profile_manager ( ) ;\n Profile * current_profile = browser ( ) -> profile ( ) ;\n ProfileInfoCache & cache = profile_manager -> GetProfileInfoCache ( ) ;\n size_t index = cache . GetIndexOfProfileWithPath ( current_profile -> GetPath ( ) ) ;\n AvatarMenu * menu = GetAvatarMenu ( & cache ) ;\n menu -> RebuildMenu ( ) ;\n BrowserList * browser_list = BrowserList : : GetInstance ( chrome : : GetActiveDesktop ( ) ) ;\n EXPECT_EQ ( 1U , browser_list -> size ( ) ) ;\n content : : WindowedNotificationObserver window_close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , content : : Source < Browser > ( browser ( ) ) ) ;\n EXPECT_FALSE ( cache . ProfileIsSigninRequiredAtIndex ( index ) ) ;\n profiles : : LockProfile ( current_profile ) ;\n window_close_observer . Wait ( ) ;\n EXPECT_TRUE ( cache . ProfileIsSigninRequiredAtIndex ( index ) ) ;\n EXPECT_EQ ( 0U , browser_list -> size ( ) ) ;\n UserManager : : Hide ( ) ;\n }"}
{"idx": 10360, "target": 0, "func": "static void json_print_str ( WriterContext * wctx , const char * key , const char * value ) {\n JSONContext * json = wctx -> priv ;\n if ( wctx -> nb_item [ wctx -> level ] ) printf ( \"%s\" , json -> item_sep ) ;\n if ( ! json -> compact ) JSON_INDENT ( ) ;\n json_print_item_str ( wctx , key , value ) ;\n }"}
{"idx": 10361, "target": 0, "func": "static int dissect_t38_T_fec_info ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_t38_T_fec_info , T_fec_info_sequence ) ;\n return offset ;\n }"}
{"idx": 10362, "target": 1, "func": "void * xmlListSearch ( xmlListPtr l , void * data ) {\n xmlLinkPtr lk ;\n if ( l == NULL ) return ( NULL ) ;\n lk = xmlListLinkSearch ( l , data ) ;\n if ( lk ) return ( lk -> data ) ;\n return NULL ;\n }"}
{"idx": 10363, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize ) ;\n DECL_PIOCTL ( PGetCacheSize )"}
{"idx": 10364, "target": 0, "func": "int EVP_CIPHER_CTX_set_key_length ( EVP_CIPHER_CTX * c , int keylen ) {\n if ( c -> cipher -> flags & EVP_CIPH_CUSTOM_KEY_LENGTH ) return EVP_CIPHER_CTX_ctrl ( c , EVP_CTRL_SET_KEY_LENGTH , keylen , NULL ) ;\n if ( c -> key_len == keylen ) return 1 ;\n if ( ( keylen > 0 ) && ( c -> cipher -> flags & EVP_CIPH_VARIABLE_LENGTH ) ) {\n c -> key_len = keylen ;\n return 1 ;\n }\n EVPerr ( EVP_F_EVP_CIPHER_CTX_SET_KEY_LENGTH , EVP_R_INVALID_KEY_LENGTH ) ;\n return 0 ;\n }"}
{"idx": 10365, "target": 0, "func": "void ufile_fill_uchar_buffer ( UFILE * f ) {\n UErrorCode status ;\n const char * mySource ;\n const char * mySourceEnd ;\n UChar * myTarget ;\n int32_t bufferSize ;\n int32_t maxCPBytes ;\n int32_t bytesRead ;\n int32_t availLength ;\n int32_t dataSize ;\n char charBuffer [ UFILE_CHARBUFFER_SIZE ] ;\n u_localized_string * str ;\n if ( f -> fFile == NULL ) {\n return ;\n }\n str = & f -> str ;\n dataSize = ( int32_t ) ( str -> fLimit - str -> fPos ) ;\n if ( f -> fFileno == 0 && dataSize > 0 ) {\n return ;\n }\n if ( dataSize != 0 ) {\n u_memmove ( f -> fUCBuffer , str -> fPos , dataSize ) ;\n }\n availLength = UFILE_UCHARBUFFER_SIZE - dataSize ;\n maxCPBytes = availLength / ( f -> fConverter != NULL ? ( 2 * ucnv_getMinCharSize ( f -> fConverter ) ) : 1 ) ;\n if ( f -> fFileno == 0 ) {\n char * retStr = fgets ( charBuffer , ufmt_min ( maxCPBytes , UFILE_CHARBUFFER_SIZE ) , f -> fFile ) ;\n bytesRead = ( int32_t ) ( retStr ? uprv_strlen ( charBuffer ) : 0 ) ;\n }\n else {\n bytesRead = ( int32_t ) fread ( charBuffer , sizeof ( char ) , ufmt_min ( maxCPBytes , UFILE_CHARBUFFER_SIZE ) , f -> fFile ) ;\n }\n status = U_ZERO_ERROR ;\n mySource = charBuffer ;\n mySourceEnd = charBuffer + bytesRead ;\n myTarget = f -> fUCBuffer + dataSize ;\n bufferSize = UFILE_UCHARBUFFER_SIZE ;\n if ( f -> fConverter != NULL ) {\n ucnv_toUnicode ( f -> fConverter , & myTarget , f -> fUCBuffer + bufferSize , & mySource , mySourceEnd , NULL , ( UBool ) ( feof ( f -> fFile ) != 0 ) , & status ) ;\n }\n else {\n u_charsToUChars ( mySource , myTarget , bytesRead ) ;\n myTarget += bytesRead ;\n }\n str -> fPos = str -> fBuffer ;\n str -> fLimit = myTarget ;\n }"}
{"idx": 10366, "target": 0, "func": "static void update_quantizer_histogram ( struct stream_state * stream ) {\n if ( stream -> config . cfg . g_pass != VPX_RC_FIRST_PASS ) {\n int q ;\n vpx_codec_control ( & stream -> encoder , VP8E_GET_LAST_QUANTIZER_64 , & q ) ;\n ctx_exit_on_error ( & stream -> encoder , \"Failed to read quantizer\" ) ;\n stream -> counts [ q ] ++ ;\n }\n }"}
{"idx": 10367, "target": 0, "func": "static inline uint16_t NVRAM_get_word ( m48t59_t * nvram , uint32_t addr ) {\n uint16_t tmp ;\n m48t59_set_addr ( nvram , addr ) ;\n tmp = m48t59_read ( nvram ) << 8 ;\n m48t59_set_addr ( nvram , addr + 1 ) ;\n tmp |= m48t59_read ( nvram ) ;\n return tmp ;\n }"}
{"idx": 10368, "target": 0, "func": "int xsnprintf_func ( char * str , int n , const char * fmt , ... ) {\n va_list a ;\n int ret ;\n va_start ( a , fmt ) ;\n ret = vsnprintf_func ( str , n , fmt , a ) ;\n va_end ( a ) ;\n if ( ret < 0 ) {\n ret = n ;\n }\n return ret ;\n }"}
{"idx": 10369, "target": 0, "func": "static gboolean should_skip_file ( NautilusDirectory * directory , GFileInfo * info ) {\n static gboolean show_hidden_files_changed_callback_installed = FALSE ;\n if ( ! show_hidden_files_changed_callback_installed ) {\n g_signal_connect_swapped ( gtk_filechooser_preferences , \"changed::\" NAUTILUS_PREFERENCES_SHOW_HIDDEN_FILES , G_CALLBACK ( show_hidden_files_changed_callback ) , NULL ) ;\n show_hidden_files_changed_callback_installed = TRUE ;\n show_hidden_files_changed_callback ( NULL ) ;\n }\n if ( ! show_hidden_files && ( g_file_info_get_is_hidden ( info ) || g_file_info_get_is_backup ( info ) ) ) {\n return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 10370, "target": 0, "func": "static int isup_calls_packet ( void * ptr _U_ , packet_info * pinfo , epan_dissect_t * edt _U_ , const void * isup_info _U_ ) {\n voip_calls_tapinfo_t * tapinfo = & the_tapinfo_struct ;\n voip_calls_info_t * tmp_listinfo ;\n voip_calls_info_t * callsinfo = NULL ;\n isup_calls_info_t * tmp_isupinfo ;\n gboolean found = FALSE ;\n gboolean forward = FALSE ;\n gboolean right_pair ;\n GList * list ;\n gchar * frame_label = NULL ;\n gchar * comment = NULL ;\n const isup_tap_rec_t * pi = ( const isup_tap_rec_t * ) isup_info ;\n if ( mtp3_frame_num != pinfo -> fd -> num ) return 0 ;\n list = g_list_first ( tapinfo -> callsinfo_list ) ;\n while ( list ) {\n right_pair = TRUE ;\n tmp_listinfo = ( voip_calls_info_t * ) list -> data ;\n if ( ( tmp_listinfo -> protocol == VOIP_ISUP ) && ( tmp_listinfo -> call_active_state == VOIP_ACTIVE ) ) {\n tmp_isupinfo = ( isup_calls_info_t * ) tmp_listinfo -> prot_info ;\n if ( ( tmp_isupinfo -> cic == pinfo -> circuit_id ) && ( tmp_isupinfo -> ni == mtp3_ni ) ) {\n if ( ( tmp_isupinfo -> opc == mtp3_opc ) && ( tmp_isupinfo -> dpc == mtp3_dpc ) ) {\n forward = TRUE ;\n }\n else if ( ( tmp_isupinfo -> dpc == mtp3_opc ) && ( tmp_isupinfo -> opc == mtp3_dpc ) ) {\n forward = FALSE ;\n }\n else {\n right_pair = FALSE ;\n }\n if ( right_pair ) {\n if ( tmp_listinfo -> call_state == VOIP_CALL_SETUP ) {\n found = TRUE ;\n }\n else if ( pi -> message_type != 1 ) {\n found = TRUE ;\n }\n else {\n tmp_listinfo -> call_active_state = VOIP_INACTIVE ;\n }\n }\n if ( found ) {\n callsinfo = ( voip_calls_info_t * ) ( list -> data ) ;\n break ;\n }\n }\n }\n list = g_list_next ( list ) ;\n }\n if ( ( callsinfo == NULL ) && ( pi -> message_type == 1 ) ) {\n callsinfo = ( voip_calls_info_t * ) g_malloc0 ( sizeof ( voip_calls_info_t ) ) ;\n callsinfo -> call_active_state = VOIP_ACTIVE ;\n callsinfo -> call_state = VOIP_UNKNOWN ;\n COPY_ADDRESS ( & ( callsinfo -> initial_speaker ) , & ( pinfo -> src ) ) ;\n callsinfo -> selected = FALSE ;\n callsinfo -> start_fd = pinfo -> fd ;\n callsinfo -> start_rel_ts = pinfo -> rel_ts ;\n callsinfo -> protocol = VOIP_ISUP ;\n if ( pi -> calling_number != NULL ) {\n callsinfo -> from_identity = g_strdup ( pi -> calling_number ) ;\n }\n if ( pi -> called_number != NULL ) {\n callsinfo -> to_identity = g_strdup ( pi -> called_number ) ;\n }\n callsinfo -> prot_info = g_malloc ( sizeof ( isup_calls_info_t ) ) ;\n callsinfo -> free_prot_info = g_free ;\n tmp_isupinfo = ( isup_calls_info_t * ) callsinfo -> prot_info ;\n tmp_isupinfo -> opc = mtp3_opc ;\n tmp_isupinfo -> dpc = mtp3_dpc ;\n tmp_isupinfo -> ni = mtp3_ni ;\n tmp_isupinfo -> cic = pinfo -> circuit_id ;\n callsinfo -> npackets = 0 ;\n callsinfo -> call_num = tapinfo -> ncalls ++ ;\n tapinfo -> callsinfo_list = g_list_prepend ( tapinfo -> callsinfo_list , callsinfo ) ;\n }\n if ( callsinfo != NULL ) {\n callsinfo -> stop_fd = pinfo -> fd ;\n callsinfo -> stop_rel_ts = pinfo -> rel_ts ;\n ++ ( callsinfo -> npackets ) ;\n frame_label = g_strdup ( val_to_str_ext_const ( pi -> message_type , & isup_message_type_value_acro_ext , \"Unknown\" ) ) ;\n if ( callsinfo -> npackets == 1 ) {\n if ( ( pi -> calling_number != NULL ) && ( pi -> called_number != NULL ) ) {\n comment = g_strdup_printf ( \"Call from %s to %s\" , pi -> calling_number , pi -> called_number ) ;\n }\n }\n else if ( callsinfo -> npackets == 2 ) {\n if ( forward ) {\n comment = g_strdup_printf ( \"%i-%i -> %i-%i. Cic:%i\" , mtp3_ni , mtp3_opc , mtp3_ni , mtp3_dpc , pinfo -> circuit_id ) ;\n }\n else {\n comment = g_strdup_printf ( \"%i-%i -> %i-%i. Cic:%i\" , mtp3_ni , mtp3_dpc , mtp3_ni , mtp3_opc , pinfo -> circuit_id ) ;\n }\n }\n switch ( pi -> message_type ) {\n case 1 : callsinfo -> call_state = VOIP_CALL_SETUP ;\n break ;\n case 7 : case 9 : callsinfo -> call_state = VOIP_IN_CALL ;\n break ;\n case 12 : if ( callsinfo -> call_state == VOIP_CALL_SETUP ) {\n if ( forward ) {\n callsinfo -> call_state = VOIP_CANCELLED ;\n }\n else {\n callsinfo -> call_state = VOIP_REJECTED ;\n tapinfo -> rejected_calls ++ ;\n }\n }\n else if ( callsinfo -> call_state == VOIP_IN_CALL ) {\n callsinfo -> call_state = VOIP_COMPLETED ;\n tapinfo -> completed_calls ++ ;\n }\n comment = g_strdup_printf ( \"Cause %i - %s\" , pi -> cause_value , val_to_str_ext_const ( pi -> cause_value , & q931_cause_code_vals_ext , \"(Unknown)\" ) ) ;\n break ;\n }\n ++ ( tapinfo -> npackets ) ;\n add_to_graph ( tapinfo , pinfo , frame_label , comment , callsinfo -> call_num , & ( pinfo -> src ) , & ( pinfo -> dst ) , 1 ) ;\n g_free ( comment ) ;\n g_free ( frame_label ) ;\n }\n tapinfo -> redraw = TRUE ;\n return 1 ;\n }"}
{"idx": 10371, "target": 0, "func": "static krb5_error_code process_db_args ( krb5_context context , char * * db_args , xargs_t * xargs , OPERATION optype ) {\n int i = 0 ;\n krb5_error_code st = 0 ;\n char * arg = NULL , * arg_val = NULL ;\n char * * dptr = NULL ;\n unsigned int arg_val_len = 0 ;\n if ( db_args ) {\n for ( i = 0 ;\n db_args [ i ] ;\n ++ i ) {\n arg = strtok_r ( db_args [ i ] , \"=\" , & arg_val ) ;\n if ( strcmp ( arg , TKTPOLICY_ARG ) == 0 ) {\n dptr = & xargs -> tktpolicydn ;\n }\n else {\n if ( strcmp ( arg , USERDN_ARG ) == 0 ) {\n if ( optype == MODIFY_PRINCIPAL || xargs -> dn != NULL || xargs -> containerdn != NULL || xargs -> linkdn != NULL ) {\n st = EINVAL ;\n k5_setmsg ( context , st , _ ( \"%s option not supported\" ) , arg ) ;\n goto cleanup ;\n }\n dptr = & xargs -> dn ;\n }\n else if ( strcmp ( arg , CONTAINERDN_ARG ) == 0 ) {\n if ( optype == MODIFY_PRINCIPAL || xargs -> dn != NULL || xargs -> containerdn != NULL ) {\n st = EINVAL ;\n k5_setmsg ( context , st , _ ( \"%s option not supported\" ) , arg ) ;\n goto cleanup ;\n }\n dptr = & xargs -> containerdn ;\n }\n else if ( strcmp ( arg , LINKDN_ARG ) == 0 ) {\n if ( xargs -> dn != NULL || xargs -> linkdn != NULL ) {\n st = EINVAL ;\n k5_setmsg ( context , st , _ ( \"%s option not supported\" ) , arg ) ;\n goto cleanup ;\n }\n dptr = & xargs -> linkdn ;\n }\n else {\n st = EINVAL ;\n k5_setmsg ( context , st , _ ( \"unknown option: %s\" ) , arg ) ;\n goto cleanup ;\n }\n xargs -> dn_from_kbd = TRUE ;\n if ( arg_val == NULL || strlen ( arg_val ) == 0 ) {\n st = EINVAL ;\n k5_setmsg ( context , st , _ ( \"%s option value missing\" ) , arg ) ;\n goto cleanup ;\n }\n }\n if ( arg_val == NULL ) {\n st = EINVAL ;\n k5_setmsg ( context , st , _ ( \"%s option value missing\" ) , arg ) ;\n goto cleanup ;\n }\n arg_val_len = strlen ( arg_val ) + 1 ;\n if ( strcmp ( arg , TKTPOLICY_ARG ) == 0 ) {\n if ( ( st = krb5_ldap_name_to_policydn ( context , arg_val , dptr ) ) != 0 ) goto cleanup ;\n }\n else {\n * dptr = k5memdup ( arg_val , arg_val_len , & st ) ;\n if ( * dptr == NULL ) goto cleanup ;\n }\n }\n }\n cleanup : return st ;\n }"}
{"idx": 10372, "target": 0, "func": "ParseResult http_parser_parse_req ( HTTPParser * parser , HdrHeap * heap , HTTPHdrImpl * hh , const char * * start , const char * end , bool must_copy_strings , bool eof , bool strict_uri_parsing ) {\n if ( parser -> m_parsing_http ) {\n MIMEScanner * scanner = & parser -> m_mime_parser . m_scanner ;\n URLImpl * url ;\n ParseResult err ;\n bool line_is_real ;\n const char * cur ;\n const char * line_start ;\n const char * real_end ;\n const char * method_start ;\n const char * method_end ;\n const char * url_start ;\n const char * url_end ;\n const char * version_start ;\n const char * version_end ;\n real_end = end ;\n start : hh -> m_polarity = HTTP_TYPE_REQUEST ;\n if ( scanner -> m_line_length >= UINT16_MAX ) {\n return PARSE_RESULT_ERROR ;\n }\n err = mime_scanner_get ( scanner , start , real_end , & line_start , & end , & line_is_real , eof , MIME_SCANNER_TYPE_LINE ) ;\n if ( err < 0 ) {\n return err ;\n }\n if ( err == PARSE_RESULT_DONE ) {\n return PARSE_RESULT_ERROR ;\n }\n if ( err == PARSE_RESULT_CONT ) {\n return err ;\n }\n cur = line_start ;\n ink_assert ( ( end - cur ) >= 0 ) ;\n ink_assert ( ( end - cur ) < UINT16_MAX ) ;\n must_copy_strings = ( must_copy_strings || ( ! line_is_real ) ) ;\n # if ( ENABLE_PARSER_FAST_PATHS ) if ( end - cur >= 16 ) {\n if ( ( ( cur [ 0 ] ^ 'G' ) | ( cur [ 1 ] ^ 'E' ) | ( cur [ 2 ] ^ 'T' ) ) != 0 ) {\n goto slow_case ;\n }\n if ( ( ( end [ - 10 ] ^ 'H' ) | ( end [ - 9 ] ^ 'T' ) | ( end [ - 8 ] ^ 'T' ) | ( end [ - 7 ] ^ 'P' ) | ( end [ - 6 ] ^ '/' ) | ( end [ - 4 ] ^ '.' ) | ( end [ - 2 ] ^ '\\r' ) | ( end [ - 1 ] ^ '\\n' ) ) != 0 ) {\n goto slow_case ;\n }\n if ( ! ( is_digit ( end [ - 5 ] ) && is_digit ( end [ - 3 ] ) ) ) {\n goto slow_case ;\n }\n if ( ! ( ParseRules : : is_space ( cur [ 3 ] ) && ( ! ParseRules : : is_space ( cur [ 4 ] ) ) && ( ! ParseRules : : is_space ( end [ - 12 ] ) ) && ParseRules : : is_space ( end [ - 11 ] ) ) ) {\n goto slow_case ;\n }\n if ( & ( cur [ 4 ] ) >= & ( end [ - 11 ] ) ) {\n goto slow_case ;\n }\n int32_t version = HTTP_VERSION ( end [ - 5 ] - '0' , end [ - 3 ] - '0' ) ;\n http_hdr_method_set ( heap , hh , & ( cur [ 0 ] ) , hdrtoken_wks_to_index ( HTTP_METHOD_GET ) , 3 , must_copy_strings ) ;\n ink_assert ( hh -> u . req . m_url_impl != nullptr ) ;\n url = hh -> u . req . m_url_impl ;\n url_start = & ( cur [ 4 ] ) ;\n err = : : url_parse ( heap , url , & url_start , & ( end [ - 11 ] ) , must_copy_strings , strict_uri_parsing ) ;\n if ( err < 0 ) {\n return err ;\n }\n http_hdr_version_set ( hh , version ) ;\n end = real_end ;\n parser -> m_parsing_http = false ;\n if ( version == HTTP_VERSION ( 0 , 9 ) ) {\n return PARSE_RESULT_ERROR ;\n }\n ParseResult ret = mime_parser_parse ( & parser -> m_mime_parser , heap , hh -> m_fields_impl , start , end , must_copy_strings , eof ) ;\n if ( ret == PARSE_RESULT_DONE ) {\n ret = validate_hdr_host ( hh ) ;\n }\n if ( ret == PARSE_RESULT_DONE ) {\n ret = validate_hdr_content_length ( heap , hh ) ;\n }\n return ret ;\n }\n # endif slow_case : method_start = nullptr ;\n method_end = nullptr ;\n url_start = nullptr ;\n url_end = nullptr ;\n version_start = nullptr ;\n version_end = nullptr ;\n url = nullptr ;\n if ( ParseRules : : is_cr ( * cur ) ) GETNEXT ( done ) ;\n if ( ParseRules : : is_lf ( * cur ) ) {\n goto start ;\n }\n parse_method1 : if ( ParseRules : : is_ws ( * cur ) ) {\n GETNEXT ( done ) ;\n goto parse_method1 ;\n }\n if ( ! ParseRules : : is_token ( * cur ) ) {\n goto done ;\n }\n method_start = cur ;\n GETNEXT ( done ) ;\n parse_method2 : if ( ParseRules : : is_ws ( * cur ) ) {\n method_end = cur ;\n goto parse_version1 ;\n }\n if ( ! ParseRules : : is_token ( * cur ) ) {\n goto done ;\n }\n GETNEXT ( done ) ;\n goto parse_method2 ;\n parse_version1 : cur = end - 1 ;\n if ( ParseRules : : is_lf ( * cur ) && ( cur >= line_start ) ) {\n cur -= 1 ;\n }\n if ( ParseRules : : is_cr ( * cur ) && ( cur >= line_start ) ) {\n cur -= 1 ;\n }\n while ( ParseRules : : is_ws ( * cur ) && ( cur >= line_start ) ) {\n cur -= 1 ;\n }\n version_end = cur + 1 ;\n parse_version2 : if ( ParseRules : : is_digit ( * cur ) ) {\n GETPREV ( parse_url ) ;\n goto parse_version2 ;\n }\n if ( * cur == '.' ) {\n GETPREV ( parse_url ) ;\n goto parse_version3 ;\n }\n goto parse_url ;\n parse_version3 : if ( ParseRules : : is_digit ( * cur ) ) {\n GETPREV ( parse_url ) ;\n goto parse_version3 ;\n }\n if ( * cur == '/' ) {\n GETPREV ( parse_url ) ;\n goto parse_version4 ;\n }\n goto parse_url ;\n parse_version4 : if ( ( * cur != 'P' ) && ( * cur != 'p' ) ) {\n goto parse_url ;\n }\n GETPREV ( parse_url ) ;\n if ( ( * cur != 'T' ) && ( * cur != 't' ) ) {\n goto parse_url ;\n }\n GETPREV ( parse_url ) ;\n if ( ( * cur != 'T' ) && ( * cur != 't' ) ) {\n goto parse_url ;\n }\n GETPREV ( parse_url ) ;\n if ( ( * cur != 'H' ) && ( * cur != 'h' ) ) {\n goto parse_url ;\n }\n version_start = cur ;\n parse_url : url_start = method_end + 1 ;\n if ( version_start ) {\n url_end = version_start - 1 ;\n }\n else {\n url_end = end - 1 ;\n }\n while ( ( url_start < end ) && ParseRules : : is_ws ( * url_start ) ) {\n url_start += 1 ;\n }\n while ( ( url_end >= line_start ) && ParseRules : : is_wslfcr ( * url_end ) ) {\n url_end -= 1 ;\n }\n url_end += 1 ;\n done : if ( ! method_start || ! method_end ) {\n return PARSE_RESULT_ERROR ;\n }\n ink_assert ( url_start ) ;\n ink_assert ( url_end ) ;\n int method_wks_idx = hdrtoken_tokenize ( method_start , ( int ) ( method_end - method_start ) ) ;\n http_hdr_method_set ( heap , hh , method_start , method_wks_idx , ( int ) ( method_end - method_start ) , must_copy_strings ) ;\n ink_assert ( hh -> u . req . m_url_impl != nullptr ) ;\n url = hh -> u . req . m_url_impl ;\n err = : : url_parse ( heap , url , & url_start , url_end , must_copy_strings , strict_uri_parsing ) ;\n if ( err < 0 ) {\n return err ;\n }\n int32_t version ;\n if ( version_start && version_end ) {\n version = http_parse_version ( version_start , version_end ) ;\n }\n else {\n return PARSE_RESULT_ERROR ;\n }\n if ( version == HTTP_VERSION ( 0 , 9 ) ) {\n return PARSE_RESULT_ERROR ;\n }\n http_hdr_version_set ( hh , version ) ;\n end = real_end ;\n parser -> m_parsing_http = false ;\n ParseResult ret = mime_parser_parse ( & parser -> m_mime_parser , heap , hh -> m_fields_impl , start , end , must_copy_strings , eof ) ;\n if ( ret == PARSE_RESULT_DONE ) {\n ret = validate_hdr_host ( hh ) ;\n }\n if ( ret == PARSE_RESULT_DONE ) {\n ret = validate_hdr_content_length ( heap , hh ) ;\n }\n return ret ;\n }\n return mime_parser_parse ( & parser -> m_mime_parser , heap , hh -> m_fields_impl , start , end , must_copy_strings , eof ) ;\n }"}
{"idx": 10373, "target": 0, "func": "err_status_t srtp_stream_alloc ( srtp_stream_ctx_t * * str_ptr , const srtp_policy_t * p ) {\n srtp_stream_ctx_t * str ;\n err_status_t stat ;\n str = ( srtp_stream_ctx_t * ) crypto_alloc ( sizeof ( srtp_stream_ctx_t ) ) ;\n if ( str == NULL ) return err_status_alloc_fail ;\n * str_ptr = str ;\n stat = crypto_kernel_alloc_cipher ( p -> rtp . cipher_type , & str -> rtp_cipher , p -> rtp . cipher_key_len , p -> rtp . auth_tag_len ) ;\n if ( stat ) {\n crypto_free ( str ) ;\n return stat ;\n }\n stat = crypto_kernel_alloc_auth ( p -> rtp . auth_type , & str -> rtp_auth , p -> rtp . auth_key_len , p -> rtp . auth_tag_len ) ;\n if ( stat ) {\n cipher_dealloc ( str -> rtp_cipher ) ;\n crypto_free ( str ) ;\n return stat ;\n }\n str -> limit = ( key_limit_ctx_t * ) crypto_alloc ( sizeof ( key_limit_ctx_t ) ) ;\n if ( str -> limit == NULL ) {\n auth_dealloc ( str -> rtp_auth ) ;\n cipher_dealloc ( str -> rtp_cipher ) ;\n crypto_free ( str ) ;\n return err_status_alloc_fail ;\n }\n stat = crypto_kernel_alloc_cipher ( p -> rtcp . cipher_type , & str -> rtcp_cipher , p -> rtcp . cipher_key_len , p -> rtcp . auth_tag_len ) ;\n if ( stat ) {\n auth_dealloc ( str -> rtp_auth ) ;\n cipher_dealloc ( str -> rtp_cipher ) ;\n crypto_free ( str -> limit ) ;\n crypto_free ( str ) ;\n return stat ;\n }\n stat = crypto_kernel_alloc_auth ( p -> rtcp . auth_type , & str -> rtcp_auth , p -> rtcp . auth_key_len , p -> rtcp . auth_tag_len ) ;\n if ( stat ) {\n cipher_dealloc ( str -> rtcp_cipher ) ;\n auth_dealloc ( str -> rtp_auth ) ;\n cipher_dealloc ( str -> rtp_cipher ) ;\n crypto_free ( str -> limit ) ;\n crypto_free ( str ) ;\n return stat ;\n }\n stat = ekt_alloc ( & str -> ekt , p -> ekt ) ;\n if ( stat ) {\n auth_dealloc ( str -> rtcp_auth ) ;\n cipher_dealloc ( str -> rtcp_cipher ) ;\n auth_dealloc ( str -> rtp_auth ) ;\n cipher_dealloc ( str -> rtp_cipher ) ;\n crypto_free ( str -> limit ) ;\n crypto_free ( str ) ;\n return stat ;\n }\n return err_status_ok ;\n }"}
{"idx": 10374, "target": 0, "func": "static RefChar * revrefs ( RefChar * cur ) {\n RefChar * p , * n ;\n if ( cur == NULL ) return ( NULL ) ;\n p = NULL ;\n for ( ;\n ( n = cur -> next ) != NULL ;\n cur = n ) {\n cur -> next = p ;\n p = cur ;\n }\n cur -> next = p ;\n return ( cur ) ;\n }"}
{"idx": 10375, "target": 0, "func": "static int vvalue_tvb_get1 ( tvbuff_t * tvb , int offset , void * val ) {\n guint8 * ui1 = ( guint8 * ) val ;\n * ui1 = tvb_get_guint8 ( tvb , offset ) ;\n return 1 ;\n }"}
{"idx": 10376, "target": 1, "func": "static void iax2_add_ts_fields ( packet_info * pinfo , proto_tree * iax2_tree , iax_packet_data * iax_packet , guint16 shortts ) {\n guint32 longts = shortts ;\n nstime_t ts ;\n proto_item * item ;\n if ( iax_packet -> call_data == NULL ) {\n return ;\n }\n if ( iax_packet -> abstime . secs == - 1 ) {\n time_t start_secs = iax_packet -> call_data -> start_time . secs ;\n time_t abs_secs = start_secs + longts / 1000 ;\n while ( abs_secs < pinfo -> fd -> abs_ts . secs - 16 ) {\n longts += 32768 ;\n abs_secs = start_secs + longts / 1000 ;\n }\n iax_packet -> abstime . secs = abs_secs ;\n iax_packet -> abstime . nsecs = iax_packet -> call_data -> start_time . nsecs + ( longts % 1000 ) * 1000000 ;\n if ( iax_packet -> abstime . nsecs >= 1000000000 ) {\n iax_packet -> abstime . nsecs -= 1000000000 ;\n iax_packet -> abstime . secs ++ ;\n }\n }\n iax2_info -> timestamp = longts ;\n if ( iax2_tree ) {\n item = proto_tree_add_time ( iax2_tree , hf_iax2_absts , NULL , 0 , 0 , & iax_packet -> abstime ) ;\n PROTO_ITEM_SET_GENERATED ( item ) ;\n ts = pinfo -> fd -> abs_ts ;\n nstime_delta ( & ts , & ts , & iax_packet -> abstime ) ;\n item = proto_tree_add_time ( iax2_tree , hf_iax2_lateness , NULL , 0 , 0 , & ts ) ;\n PROTO_ITEM_SET_GENERATED ( item ) ;\n }\n }"}
{"idx": 10377, "target": 0, "func": "bool type_is_rowtype ( Oid typid ) {\n return ( typid == RECORDOID || get_typtype ( typid ) == TYPTYPE_COMPOSITE ) ;\n }"}
{"idx": 10378, "target": 0, "func": "static int dissect_h245_VBDMode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_VBDMode , VBDMode_sequence ) ;\n return offset ;\n }"}
{"idx": 10379, "target": 0, "func": "static int config_filters_request ( struct config_connection * conn ) {\n struct config_filter_parser * const * filters = config_filter_get_all ( config_filter ) ;\n o_stream_cork ( conn -> output ) ;\n while ( * filters != NULL ) {\n const struct config_filter * filter = & ( * filters ) -> filter ;\n o_stream_nsend_str ( conn -> output , \"FILTER\" ) ;\n if ( filter -> service != NULL ) o_stream_nsend_str ( conn -> output , t_strdup_printf ( \"\\tservice=%s\" , filter -> service ) ) ;\n if ( filter -> local_name != NULL ) o_stream_nsend_str ( conn -> output , t_strdup_printf ( \"\\tlocal-name=%s\" , filter -> local_name ) ) ;\n if ( filter -> local_bits > 0 ) o_stream_nsend_str ( conn -> output , t_strdup_printf ( \"\\tlocal-net=%s/%u\" , net_ip2addr ( & filter -> local_net ) , filter -> local_bits ) ) ;\n if ( filter -> remote_bits > 0 ) o_stream_nsend_str ( conn -> output , t_strdup_printf ( \"\\tremote-net=%s/%u\" , net_ip2addr ( & filter -> remote_net ) , filter -> remote_bits ) ) ;\n o_stream_nsend_str ( conn -> output , \"\\n\" ) ;\n filters ++ ;\n }\n o_stream_nsend_str ( conn -> output , \"\\n\" ) ;\n o_stream_uncork ( conn -> output ) ;\n return 0 ;\n }"}
{"idx": 10380, "target": 0, "func": "static void page_flush_tb_1 ( int level , void * * lp ) {\n int i ;\n if ( * lp == NULL ) {\n return ;\n }\n if ( level == 0 ) {\n PageDesc * pd = * lp ;\n for ( i = 0 ;\n i < L2_SIZE ;\n ++ i ) {\n pd [ i ] . first_tb = NULL ;\n invalidate_page_bitmap ( pd + i ) ;\n }\n }\n else {\n void * * pp = * lp ;\n for ( i = 0 ;\n i < L2_SIZE ;\n ++ i ) {\n page_flush_tb_1 ( level - 1 , pp + i ) ;\n }\n }\n }"}
{"idx": 10381, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize ) ;\n DECL_PIOCTL ( PGetCacheSize ) ;\n DECL_PIOCTL ( PRemoveCallBack ) ;\n DECL_PIOCTL ( PNewCell ) ;\n DECL_PIOCTL ( PNewAlias ) ;\n DECL_PIOCTL ( PListCells ) ;\n DECL_PIOCTL ( PListAliases ) ;\n DECL_PIOCTL ( PRemoveMount ) ;\n DECL_PIOCTL ( PGetCellStatus ) ;\n DECL_PIOCTL ( PSetCellStatus ) ;\n DECL_PIOCTL ( PFlushVolumeData ) ;\n DECL_PIOCTL ( PFlushAllVolumeData ) ;\n DECL_PIOCTL ( PGetVnodeXStatus ) ;\n DECL_PIOCTL ( PGetVnodeXStatus2 ) ;\n DECL_PIOCTL ( PSetSysName )"}
{"idx": 10382, "target": 0, "func": "static struct kwajd_stream * lzh_init ( struct mspack_system * sys , struct mspack_file * in , struct mspack_file * out ) {\n struct kwajd_stream * lzh ;\n if ( ! sys || ! in || ! out ) return NULL ;\n if ( ! ( lzh = ( struct kwajd_stream * ) sys -> alloc ( sys , sizeof ( struct kwajd_stream ) ) ) ) return NULL ;\n lzh -> sys = sys ;\n lzh -> input = in ;\n lzh -> output = out ;\n return lzh ;\n }"}
{"idx": 10383, "target": 0, "func": "proto_item * proto_tree_add_item_new ( proto_tree * tree , header_field_info * hfinfo , tvbuff_t * tvb , const gint start , gint length , const guint encoding ) {\n field_info * new_fi ;\n gint item_length ;\n DISSECTOR_ASSERT_HINT ( hfinfo != NULL , \"Not passed hfi!\" ) ;\n get_hfi_length ( hfinfo , tvb , start , & length , & item_length ) ;\n test_length ( hfinfo , tvb , start , item_length ) ;\n CHECK_FOR_NULL_TREE ( tree ) ;\n TRY_TO_FAKE_THIS_ITEM ( tree , hfinfo -> id , hfinfo ) ;\n new_fi = new_field_info ( tree , hfinfo , tvb , start , item_length ) ;\n return proto_tree_new_item ( new_fi , tree , tvb , start , length , encoding ) ;\n }"}
{"idx": 10384, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( HttpsEngagementPageLoadMetricsBrowserTest , SameOrigin_Https ) {\n StartHttpsServer ( false ) ;\n NavigateTwiceInTabAndClose ( https_test_server_ -> GetURL ( \"/simple.html\" ) , https_test_server_ -> GetURL ( \"/empty.html\" ) ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpEngagementHistogram , 0 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementHistogram , 2 ) ;\n FakeUserMetricsUpload ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementSessionPercentage , 1 ) ;\n int32_t ratio_bucket = histogram_tester_ . GetAllSamples ( internal : : kHttpsEngagementSessionPercentage ) [ 0 ] . min ;\n EXPECT_EQ ( 100 , ratio_bucket ) ;\n }"}
{"idx": 10385, "target": 1, "func": "rfbBool rfbProcessFileTransfer ( rfbClientPtr cl , uint8_t contentType , uint8_t contentParam , uint32_t size , uint32_t length ) {\n char * buffer = NULL , * p = NULL ;\n int retval = 0 ;\n char filename1 [ MAX_PATH ] ;\n char filename2 [ MAX_PATH ] ;\n char szFileTime [ MAX_PATH ] ;\n struct stat statbuf ;\n uint32_t sizeHtmp = 0 ;\n int n = 0 ;\n char timespec [ 64 ] ;\n # ifdef LIBVNCSERVER_HAVE_LIBZ unsigned char compBuff [ sz_rfbBlockSize ] ;\n unsigned long nRawBytes = sz_rfbBlockSize ;\n int nRet = 0 ;\n # endif FILEXFER_ALLOWED_OR_CLOSE_AND_RETURN ( \"\" , cl , FALSE ) ;\n switch ( contentType ) {\n case rfbDirContentRequest : switch ( contentParam ) {\n case rfbRDrivesList : filename2 [ 0 ] = 'C' ;\n filename2 [ 1 ] = ':' ;\n filename2 [ 2 ] = 'l' ;\n filename2 [ 3 ] = 0 ;\n filename2 [ 4 ] = 0 ;\n retval = rfbSendFileTransferMessage ( cl , rfbDirPacket , rfbADrivesList , 0 , 5 , filename2 ) ;\n if ( buffer != NULL ) free ( buffer ) ;\n return retval ;\n break ;\n case rfbRDirContent : if ( ( buffer = rfbProcessFileTransferReadBuffer ( cl , length ) ) == NULL ) return FALSE ;\n retval = rfbSendDirContent ( cl , length , buffer ) ;\n if ( buffer != NULL ) free ( buffer ) ;\n return retval ;\n }\n break ;\n case rfbDirPacket : rfbLog ( \"rfbProcessFileTransfer() rfbDirPacket\\n\" ) ;\n break ;\n case rfbFileAcceptHeader : rfbLog ( \"rfbProcessFileTransfer() rfbFileAcceptHeader\\n\" ) ;\n break ;\n case rfbCommandReturn : rfbLog ( \"rfbProcessFileTransfer() rfbCommandReturn\\n\" ) ;\n break ;\n case rfbFileChecksums : rfbLog ( \"rfbProcessFileTransfer() rfbFileChecksums\\n\" ) ;\n break ;\n case rfbFileTransferAccess : rfbLog ( \"rfbProcessFileTransfer() rfbFileTransferAccess\\n\" ) ;\n break ;\n case rfbFileTransferRequest : if ( ( buffer = rfbProcessFileTransferReadBuffer ( cl , length ) ) == NULL ) return FALSE ;\n if ( ! rfbFilenameTranslate2UNIX ( cl , buffer , filename1 , sizeof ( filename1 ) ) ) goto fail ;\n cl -> fileTransfer . fd = open ( filename1 , O_RDONLY , 0744 ) ;\n if ( DB ) rfbLog ( \"rfbProcessFileTransfer() rfbFileTransferRequest(\\\"%s\\\"->\\\"%s\\\") Open: %s fd=%d\\n\" , buffer , filename1 , ( cl -> fileTransfer . fd == - 1 ? \"Failed\" : \"Success\" ) , cl -> fileTransfer . fd ) ;\n if ( cl -> fileTransfer . fd != - 1 ) {\n if ( fstat ( cl -> fileTransfer . fd , & statbuf ) != 0 ) {\n close ( cl -> fileTransfer . fd ) ;\n cl -> fileTransfer . fd = - 1 ;\n }\n else {\n strftime ( timespec , sizeof ( timespec ) , \"%m/%d/%Y %H:%M\" , gmtime ( & statbuf . st_ctime ) ) ;\n buffer = realloc ( buffer , length + strlen ( timespec ) + 2 ) ;\n if ( buffer == NULL ) {\n rfbLog ( \"rfbProcessFileTransfer() rfbFileTransferRequest: Failed to malloc %d bytes\\n\" , length + strlen ( timespec ) + 2 ) ;\n return FALSE ;\n }\n strcat ( buffer , \",\" ) ;\n strcat ( buffer , timespec ) ;\n length = strlen ( buffer ) ;\n if ( DB ) rfbLog ( \"rfbProcessFileTransfer() buffer is now: \\\"%s\\\"\\n\" , buffer ) ;\n }\n }\n cl -> fileTransfer . compressionEnabled = ( size == 1 ) ;\n retval = rfbSendFileTransferMessage ( cl , rfbFileHeader , 0 , ( cl -> fileTransfer . fd == - 1 ? - 1 : statbuf . st_size ) , length , buffer ) ;\n if ( cl -> fileTransfer . fd == - 1 ) {\n if ( buffer != NULL ) free ( buffer ) ;\n return retval ;\n }\n cl -> fileTransfer . fileSize = statbuf . st_size ;\n cl -> fileTransfer . numPackets = statbuf . st_size / sz_rfbBlockSize ;\n cl -> fileTransfer . receiving = 0 ;\n cl -> fileTransfer . sending = 0 ;\n sizeHtmp = 0 ;\n LOCK ( cl -> sendMutex ) ;\n if ( rfbWriteExact ( cl , ( char * ) & sizeHtmp , 4 ) < 0 ) {\n rfbLogPerror ( \"rfbProcessFileTransfer: write\" ) ;\n rfbCloseClient ( cl ) ;\n UNLOCK ( cl -> sendMutex ) ;\n if ( buffer != NULL ) free ( buffer ) ;\n return FALSE ;\n }\n UNLOCK ( cl -> sendMutex ) ;\n break ;\n case rfbFileHeader : if ( size == - 1 ) {\n rfbLog ( \"rfbProcessFileTransfer() rfbFileHeader (error, aborting)\\n\" ) ;\n close ( cl -> fileTransfer . fd ) ;\n cl -> fileTransfer . fd = - 1 ;\n return TRUE ;\n }\n cl -> fileTransfer . sending = 1 ;\n return rfbSendFileTransferChunk ( cl ) ;\n break ;\n case rfbFileTransferOffer : if ( ( buffer = rfbProcessFileTransferReadBuffer ( cl , length ) ) == NULL ) return FALSE ;\n p = strrchr ( buffer , ',' ) ;\n if ( p != NULL ) {\n * p = '\\0' ;\n strncpy ( szFileTime , p + 1 , sizeof ( szFileTime ) ) ;\n szFileTime [ sizeof ( szFileTime ) - 1 ] = '\\x00' ;\n }\n else szFileTime [ 0 ] = 0 ;\n if ( ( n = rfbReadExact ( cl , ( char * ) & sizeHtmp , 4 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessFileTransfer: read sizeHtmp\" ) ;\n rfbCloseClient ( cl ) ;\n if ( buffer != NULL ) free ( buffer ) ;\n return FALSE ;\n }\n sizeHtmp = Swap32IfLE ( sizeHtmp ) ;\n if ( ! rfbFilenameTranslate2UNIX ( cl , buffer , filename1 , sizeof ( filename1 ) ) ) goto fail ;\n cl -> fileTransfer . fd = open ( filename1 , O_CREAT | O_WRONLY | O_TRUNC , 0744 ) ;\n if ( DB ) rfbLog ( \"rfbProcessFileTransfer() rfbFileTransferOffer(\\\"%s\\\"->\\\"%s\\\") %s %s fd=%d\\n\" , buffer , filename1 , ( cl -> fileTransfer . fd == - 1 ? \"Failed\" : \"Success\" ) , ( cl -> fileTransfer . fd == - 1 ? strerror ( errno ) : \"\" ) , cl -> fileTransfer . fd ) ;\n retval = rfbSendFileTransferMessage ( cl , rfbFileAcceptHeader , 0 , ( cl -> fileTransfer . fd == - 1 ? - 1 : 0 ) , length , buffer ) ;\n if ( cl -> fileTransfer . fd == - 1 ) {\n free ( buffer ) ;\n return retval ;\n }\n cl -> fileTransfer . fileSize = size ;\n cl -> fileTransfer . numPackets = size / sz_rfbBlockSize ;\n cl -> fileTransfer . receiving = 1 ;\n cl -> fileTransfer . sending = 0 ;\n break ;\n case rfbFilePacket : if ( ( buffer = rfbProcessFileTransferReadBuffer ( cl , length ) ) == NULL ) return FALSE ;\n if ( cl -> fileTransfer . fd != - 1 ) {\n if ( size == 0 ) retval = write ( cl -> fileTransfer . fd , buffer , length ) ;\n else {\n # ifdef LIBVNCSERVER_HAVE_LIBZ nRet = uncompress ( compBuff , & nRawBytes , ( const unsigned char * ) buffer , length ) ;\n if ( nRet == Z_OK ) retval = write ( cl -> fileTransfer . fd , ( char * ) compBuff , nRawBytes ) ;\n else retval = - 1 ;\n # else retval = write ( cl -> fileTransfer . fd , buffer , length ) ;\n # endif }\n if ( retval == - 1 ) {\n close ( cl -> fileTransfer . fd ) ;\n cl -> fileTransfer . fd = - 1 ;\n cl -> fileTransfer . sending = 0 ;\n cl -> fileTransfer . receiving = 0 ;\n }\n }\n break ;\n case rfbEndOfFile : if ( DB ) rfbLog ( \"rfbProcessFileTransfer() rfbEndOfFile\\n\" ) ;\n if ( cl -> fileTransfer . fd != - 1 ) close ( cl -> fileTransfer . fd ) ;\n cl -> fileTransfer . fd = - 1 ;\n cl -> fileTransfer . sending = 0 ;\n cl -> fileTransfer . receiving = 0 ;\n break ;\n case rfbAbortFileTransfer : if ( DB ) rfbLog ( \"rfbProcessFileTransfer() rfbAbortFileTransfer\\n\" ) ;\n if ( cl -> fileTransfer . fd != - 1 ) {\n close ( cl -> fileTransfer . fd ) ;\n cl -> fileTransfer . fd = - 1 ;\n cl -> fileTransfer . sending = 0 ;\n cl -> fileTransfer . receiving = 0 ;\n }\n else {\n if ( contentParam == 0 ) {\n rfbLog ( \"rfbProcessFileTransfer() File Transfer Permission DENIED! (Client Version <=RC18)\\n\" ) ;\n return rfbSendFileTransferMessage ( cl , rfbAbortFileTransfer , 0 , - 1 , 0 , \"\" ) ;\n }\n if ( cl -> screen -> getFileTransferPermission != NULL ) {\n if ( cl -> screen -> getFileTransferPermission ( cl ) == TRUE ) {\n rfbLog ( \"rfbProcessFileTransfer() File Transfer Permission Granted!\\n\" ) ;\n return rfbSendFileTransferMessage ( cl , rfbFileTransferAccess , 0 , 1 , 0 , \"\" ) ;\n }\n else {\n rfbLog ( \"rfbProcessFileTransfer() File Transfer Permission DENIED!\\n\" ) ;\n return rfbSendFileTransferMessage ( cl , rfbFileTransferAccess , 0 , - 1 , 0 , \"\" ) ;\n }\n }\n else {\n if ( cl -> screen -> permitFileTransfer ) {\n rfbLog ( \"rfbProcessFileTransfer() File Transfer Permission Granted!\\n\" ) ;\n return rfbSendFileTransferMessage ( cl , rfbFileTransferAccess , 0 , 1 , 0 , \"\" ) ;\n }\n else {\n rfbLog ( \"rfbProcessFileTransfer() File Transfer Permission DENIED by default!\\n\" ) ;\n return rfbSendFileTransferMessage ( cl , rfbFileTransferAccess , 0 , - 1 , 0 , \"\" ) ;\n }\n }\n }\n break ;\n case rfbCommand : if ( ( buffer = rfbProcessFileTransferReadBuffer ( cl , length ) ) == NULL ) return FALSE ;\n switch ( contentParam ) {\n case rfbCDirCreate : if ( ! rfbFilenameTranslate2UNIX ( cl , buffer , filename1 , sizeof ( filename1 ) ) ) goto fail ;\n retval = mkdir ( filename1 , 0755 ) ;\n if ( DB ) rfbLog ( \"rfbProcessFileTransfer() rfbCommand: rfbCDirCreate(\\\"%s\\\"->\\\"%s\\\") %s\\n\" , buffer , filename1 , ( retval == - 1 ? \"Failed\" : \"Success\" ) ) ;\n retval = rfbSendFileTransferMessage ( cl , rfbCommandReturn , rfbADirCreate , retval , length , buffer ) ;\n if ( buffer != NULL ) free ( buffer ) ;\n return retval ;\n case rfbCFileDelete : if ( ! rfbFilenameTranslate2UNIX ( cl , buffer , filename1 , sizeof ( filename1 ) ) ) goto fail ;\n if ( stat ( filename1 , & statbuf ) == 0 ) {\n if ( S_ISDIR ( statbuf . st_mode ) ) retval = rmdir ( filename1 ) ;\n else retval = unlink ( filename1 ) ;\n }\n else retval = - 1 ;\n retval = rfbSendFileTransferMessage ( cl , rfbCommandReturn , rfbAFileDelete , retval , length , buffer ) ;\n if ( buffer != NULL ) free ( buffer ) ;\n return retval ;\n case rfbCFileRename : p = strrchr ( buffer , '*' ) ;\n if ( p != NULL ) {\n * p = '\\0' ;\n if ( ! rfbFilenameTranslate2UNIX ( cl , buffer , filename1 , sizeof ( filename1 ) ) ) goto fail ;\n if ( ! rfbFilenameTranslate2UNIX ( cl , p + 1 , filename2 , sizeof ( filename2 ) ) ) goto fail ;\n retval = rename ( filename1 , filename2 ) ;\n if ( DB ) rfbLog ( \"rfbProcessFileTransfer() rfbCommand: rfbCFileRename(\\\"%s\\\"->\\\"%s\\\" -->> \\\"%s\\\"->\\\"%s\\\") %s\\n\" , buffer , filename1 , p + 1 , filename2 , ( retval == - 1 ? \"Failed\" : \"Success\" ) ) ;\n * p = '*' ;\n retval = rfbSendFileTransferMessage ( cl , rfbCommandReturn , rfbAFileRename , retval , length , buffer ) ;\n if ( buffer != NULL ) free ( buffer ) ;\n return retval ;\n }\n break ;\n }\n break ;\n }\n if ( buffer != NULL ) free ( buffer ) ;\n return TRUE ;\n fail : if ( buffer != NULL ) free ( buffer ) ;\n return FALSE ;\n }"}
{"idx": 10386, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize ) ;\n DECL_PIOCTL ( PGetCacheSize ) ;\n DECL_PIOCTL ( PRemoveCallBack ) ;\n DECL_PIOCTL ( PNewCell ) ;\n DECL_PIOCTL ( PNewAlias ) ;\n DECL_PIOCTL ( PListCells ) ;\n DECL_PIOCTL ( PListAliases ) ;\n DECL_PIOCTL ( PRemoveMount ) ;\n DECL_PIOCTL ( PGetCellStatus ) ;\n DECL_PIOCTL ( PSetCellStatus ) ;\n DECL_PIOCTL ( PFlushVolumeData ) ;\n DECL_PIOCTL ( PFlushAllVolumeData ) ;\n DECL_PIOCTL ( PGetVnodeXStatus ) ;\n DECL_PIOCTL ( PGetVnodeXStatus2 ) ;\n DECL_PIOCTL ( PSetSysName ) ;\n DECL_PIOCTL ( PSetSPrefs ) ;\n DECL_PIOCTL ( PSetSPrefs33 ) ;\n DECL_PIOCTL ( PGetSPrefs ) ;\n DECL_PIOCTL ( PExportAfs ) ;\n DECL_PIOCTL ( PGag ) ;\n DECL_PIOCTL ( PTwiddleRx ) ;\n DECL_PIOCTL ( PGetInitParams ) ;\n DECL_PIOCTL ( PGetRxkcrypt ) ;\n DECL_PIOCTL ( PSetRxkcrypt ) ;\n DECL_PIOCTL ( PGetCPrefs ) ;\n DECL_PIOCTL ( PSetCPrefs ) ;\n DECL_PIOCTL ( PFlushMount ) ;\n DECL_PIOCTL ( PRxStatProc ) ;\n DECL_PIOCTL ( PRxStatPeer ) ;\n DECL_PIOCTL ( PPrefetchFromTape ) ;\n DECL_PIOCTL ( PFsCmd ) ;\n DECL_PIOCTL ( PCallBackAddr ) ;\n DECL_PIOCTL ( PDiscon ) ;\n DECL_PIOCTL ( PNFSNukeCreds )"}
{"idx": 10387, "target": 0, "func": "void send_protected_args ( int fd , char * args [ ] ) {\n int i ;\n # ifdef ICONV_OPTION int convert = ic_send != ( iconv_t ) - 1 ;\n xbuf outbuf , inbuf ;\n if ( convert ) alloc_xbuf ( & outbuf , 1024 ) ;\n # endif for ( i = 0 ;\n args [ i ] ;\n i ++ ) {\n }\n args [ i ] = \"rsync\" ;\n if ( DEBUG_GTE ( CMD , 1 ) ) print_child_argv ( \"protected args:\" , args + i + 1 ) ;\n do {\n if ( ! args [ i ] [ 0 ] ) write_buf ( fd , \".\" , 2 ) ;\n # ifdef ICONV_OPTION else if ( convert ) {\n INIT_XBUF_STRLEN ( inbuf , args [ i ] ) ;\n iconvbufs ( ic_send , & inbuf , & outbuf , ICB_EXPAND_OUT | ICB_INCLUDE_BAD | ICB_INCLUDE_INCOMPLETE | ICB_INIT ) ;\n outbuf . buf [ outbuf . len ] = '\\0' ;\n write_buf ( fd , outbuf . buf , outbuf . len + 1 ) ;\n outbuf . len = 0 ;\n }\n # endif else write_buf ( fd , args [ i ] , strlen ( args [ i ] ) + 1 ) ;\n }\n while ( args [ ++ i ] ) ;\n write_byte ( fd , 0 ) ;\n # ifdef ICONV_OPTION if ( convert ) free ( outbuf . buf ) ;\n # endif }"}
{"idx": 10388, "target": 0, "func": "static void prplcb_blist_new ( PurpleBlistNode * node ) {\n if ( node -> type == PURPLE_BLIST_BUDDY_NODE ) {\n PurpleBuddy * bud = ( PurpleBuddy * ) node ;\n struct im_connection * ic = purple_ic_by_pa ( bud -> account ) ;\n if ( ic == NULL ) {\n return ;\n }\n imcb_add_buddy ( ic , bud -> name , NULL ) ;\n prplcb_blist_update ( NULL , node ) ;\n }\n }"}
{"idx": 10389, "target": 0, "func": "TEST ( DownloadPrefsTest , AutoOpenPrefSkipsDangerousFileTypesInPrefs ) {\n const base : : FilePath kDangerousFilePath ( FILE_PATH_LITERAL ( \"/b/very-bad.swf\" ) ) ;\n const base : : FilePath kSafeFilePath ( FILE_PATH_LITERAL ( \"/goodothing-wrong.txt\" ) ) ;\n content : : TestBrowserThreadBundle threads_are_required_for_testing_profile ;\n TestingProfile profile ;\n profile . GetPrefs ( ) -> SetString ( prefs : : kDownloadExtensionsToOpen , \"swf:txt\" ) ;\n DownloadPrefs prefs ( & profile ) ;\n EXPECT_FALSE ( prefs . IsAutoOpenEnabledBasedOnExtension ( kDangerousFilePath ) ) ;\n EXPECT_TRUE ( prefs . IsAutoOpenEnabledBasedOnExtension ( kSafeFilePath ) ) ;\n }"}
{"idx": 10390, "target": 0, "func": "void vp9_idct8x8_12_add_sse2 ( const int16_t * input , uint8_t * dest , int stride ) {\n const __m128i zero = _mm_setzero_si128 ( ) ;\n const __m128i rounding = _mm_set1_epi32 ( DCT_CONST_ROUNDING ) ;\n const __m128i final_rounding = _mm_set1_epi16 ( 1 << 4 ) ;\n const __m128i stg1_0 = pair_set_epi16 ( cospi_28_64 , - cospi_4_64 ) ;\n const __m128i stg1_1 = pair_set_epi16 ( cospi_4_64 , cospi_28_64 ) ;\n const __m128i stg1_2 = pair_set_epi16 ( - cospi_20_64 , cospi_12_64 ) ;\n const __m128i stg1_3 = pair_set_epi16 ( cospi_12_64 , cospi_20_64 ) ;\n const __m128i stg2_0 = pair_set_epi16 ( cospi_16_64 , cospi_16_64 ) ;\n const __m128i stg2_1 = pair_set_epi16 ( cospi_16_64 , - cospi_16_64 ) ;\n const __m128i stg2_2 = pair_set_epi16 ( cospi_24_64 , - cospi_8_64 ) ;\n const __m128i stg2_3 = pair_set_epi16 ( cospi_8_64 , cospi_24_64 ) ;\n const __m128i stg3_0 = pair_set_epi16 ( - cospi_16_64 , cospi_16_64 ) ;\n __m128i in0 , in1 , in2 , in3 , in4 , in5 , in6 , in7 ;\n __m128i stp1_0 , stp1_1 , stp1_2 , stp1_3 , stp1_4 , stp1_5 , stp1_6 , stp1_7 ;\n __m128i stp2_0 , stp2_1 , stp2_2 , stp2_3 , stp2_4 , stp2_5 , stp2_6 , stp2_7 ;\n __m128i tmp0 , tmp1 , tmp2 , tmp3 , tmp4 , tmp5 , tmp6 , tmp7 ;\n in0 = _mm_load_si128 ( ( const __m128i * ) input ) ;\n in1 = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 1 ) ) ;\n in2 = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 2 ) ) ;\n in3 = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 3 ) ) ;\n TRANSPOSE_8X8_10 ( in0 , in1 , in2 , in3 , in0 , in1 ) ;\n {\n const __m128i lo_17 = _mm_unpackhi_epi16 ( in0 , zero ) ;\n const __m128i lo_35 = _mm_unpackhi_epi16 ( in1 , zero ) ;\n tmp0 = _mm_madd_epi16 ( lo_17 , stg1_0 ) ;\n tmp2 = _mm_madd_epi16 ( lo_17 , stg1_1 ) ;\n tmp4 = _mm_madd_epi16 ( lo_35 , stg1_2 ) ;\n tmp6 = _mm_madd_epi16 ( lo_35 , stg1_3 ) ;\n tmp0 = _mm_add_epi32 ( tmp0 , rounding ) ;\n tmp2 = _mm_add_epi32 ( tmp2 , rounding ) ;\n tmp4 = _mm_add_epi32 ( tmp4 , rounding ) ;\n tmp6 = _mm_add_epi32 ( tmp6 , rounding ) ;\n tmp0 = _mm_srai_epi32 ( tmp0 , DCT_CONST_BITS ) ;\n tmp2 = _mm_srai_epi32 ( tmp2 , DCT_CONST_BITS ) ;\n tmp4 = _mm_srai_epi32 ( tmp4 , DCT_CONST_BITS ) ;\n tmp6 = _mm_srai_epi32 ( tmp6 , DCT_CONST_BITS ) ;\n stp1_4 = _mm_packs_epi32 ( tmp0 , tmp2 ) ;\n stp1_5 = _mm_packs_epi32 ( tmp4 , tmp6 ) ;\n }\n {\n const __m128i lo_04 = _mm_unpacklo_epi16 ( in0 , zero ) ;\n const __m128i lo_26 = _mm_unpacklo_epi16 ( in1 , zero ) ;\n tmp0 = _mm_madd_epi16 ( lo_04 , stg2_0 ) ;\n tmp2 = _mm_madd_epi16 ( lo_04 , stg2_1 ) ;\n tmp4 = _mm_madd_epi16 ( lo_26 , stg2_2 ) ;\n tmp6 = _mm_madd_epi16 ( lo_26 , stg2_3 ) ;\n tmp0 = _mm_add_epi32 ( tmp0 , rounding ) ;\n tmp2 = _mm_add_epi32 ( tmp2 , rounding ) ;\n tmp4 = _mm_add_epi32 ( tmp4 , rounding ) ;\n tmp6 = _mm_add_epi32 ( tmp6 , rounding ) ;\n tmp0 = _mm_srai_epi32 ( tmp0 , DCT_CONST_BITS ) ;\n tmp2 = _mm_srai_epi32 ( tmp2 , DCT_CONST_BITS ) ;\n tmp4 = _mm_srai_epi32 ( tmp4 , DCT_CONST_BITS ) ;\n tmp6 = _mm_srai_epi32 ( tmp6 , DCT_CONST_BITS ) ;\n stp2_0 = _mm_packs_epi32 ( tmp0 , tmp2 ) ;\n stp2_2 = _mm_packs_epi32 ( tmp6 , tmp4 ) ;\n tmp0 = _mm_adds_epi16 ( stp1_4 , stp1_5 ) ;\n tmp1 = _mm_subs_epi16 ( stp1_4 , stp1_5 ) ;\n stp2_4 = tmp0 ;\n stp2_5 = _mm_unpacklo_epi64 ( tmp1 , zero ) ;\n stp2_6 = _mm_unpackhi_epi64 ( tmp1 , zero ) ;\n }\n {\n const __m128i lo_56 = _mm_unpacklo_epi16 ( stp2_5 , stp2_6 ) ;\n tmp4 = _mm_adds_epi16 ( stp2_0 , stp2_2 ) ;\n tmp6 = _mm_subs_epi16 ( stp2_0 , stp2_2 ) ;\n stp1_2 = _mm_unpackhi_epi64 ( tmp6 , tmp4 ) ;\n stp1_3 = _mm_unpacklo_epi64 ( tmp6 , tmp4 ) ;\n tmp0 = _mm_madd_epi16 ( lo_56 , stg3_0 ) ;\n tmp2 = _mm_madd_epi16 ( lo_56 , stg2_0 ) ;\n tmp0 = _mm_add_epi32 ( tmp0 , rounding ) ;\n tmp2 = _mm_add_epi32 ( tmp2 , rounding ) ;\n tmp0 = _mm_srai_epi32 ( tmp0 , DCT_CONST_BITS ) ;\n tmp2 = _mm_srai_epi32 ( tmp2 , DCT_CONST_BITS ) ;\n stp1_5 = _mm_packs_epi32 ( tmp0 , tmp2 ) ;\n }\n tmp0 = _mm_adds_epi16 ( stp1_3 , stp2_4 ) ;\n tmp1 = _mm_adds_epi16 ( stp1_2 , stp1_5 ) ;\n tmp2 = _mm_subs_epi16 ( stp1_3 , stp2_4 ) ;\n tmp3 = _mm_subs_epi16 ( stp1_2 , stp1_5 ) ;\n TRANSPOSE_4X8_10 ( tmp0 , tmp1 , tmp2 , tmp3 , in0 , in1 , in2 , in3 ) IDCT8 ( in0 , in1 , in2 , in3 , zero , zero , zero , zero , in0 , in1 , in2 , in3 , in4 , in5 , in6 , in7 ) ;\n in0 = _mm_adds_epi16 ( in0 , final_rounding ) ;\n in1 = _mm_adds_epi16 ( in1 , final_rounding ) ;\n in2 = _mm_adds_epi16 ( in2 , final_rounding ) ;\n in3 = _mm_adds_epi16 ( in3 , final_rounding ) ;\n in4 = _mm_adds_epi16 ( in4 , final_rounding ) ;\n in5 = _mm_adds_epi16 ( in5 , final_rounding ) ;\n in6 = _mm_adds_epi16 ( in6 , final_rounding ) ;\n in7 = _mm_adds_epi16 ( in7 , final_rounding ) ;\n in0 = _mm_srai_epi16 ( in0 , 5 ) ;\n in1 = _mm_srai_epi16 ( in1 , 5 ) ;\n in2 = _mm_srai_epi16 ( in2 , 5 ) ;\n in3 = _mm_srai_epi16 ( in3 , 5 ) ;\n in4 = _mm_srai_epi16 ( in4 , 5 ) ;\n in5 = _mm_srai_epi16 ( in5 , 5 ) ;\n in6 = _mm_srai_epi16 ( in6 , 5 ) ;\n in7 = _mm_srai_epi16 ( in7 , 5 ) ;\n RECON_AND_STORE ( dest , in0 ) ;\n RECON_AND_STORE ( dest , in1 ) ;\n RECON_AND_STORE ( dest , in2 ) ;\n RECON_AND_STORE ( dest , in3 ) ;\n RECON_AND_STORE ( dest , in4 ) ;\n RECON_AND_STORE ( dest , in5 ) ;\n RECON_AND_STORE ( dest , in6 ) ;\n RECON_AND_STORE ( dest , in7 ) ;\n }"}
{"idx": 10391, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FullscreenControllerInteractiveTest , MAYBE_TestTabDoesntExitMouseLockOnSubFrameNavigation ) {\n ASSERT_TRUE ( test_server ( ) -> Start ( ) ) ;\n GURL url ( test_server ( ) -> GetURL ( kFullscreenMouseLockHTML ) ) ;\n GURL url_with_fragment ( url . spec ( ) + \"#fragment\" ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , url ) ;\n ASSERT_TRUE ( ui_test_utils : : SendKeyPressAndWait ( browser ( ) , ui : : VKEY_1 , false , false , false , false , chrome : : NOTIFICATION_MOUSE_LOCK_CHANGED , content : : NotificationService : : AllSources ( ) ) ) ;\n ASSERT_TRUE ( IsFullscreenBubbleDisplayed ( ) ) ;\n ASSERT_TRUE ( IsMouseLockPermissionRequested ( ) ) ;\n ASSERT_FALSE ( IsMouseLocked ( ) ) ;\n AcceptCurrentFullscreenOrMouseLockRequest ( ) ;\n ASSERT_TRUE ( IsMouseLocked ( ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , url_with_fragment ) ;\n ASSERT_TRUE ( IsMouseLocked ( ) ) ;\n }"}
{"idx": 10392, "target": 0, "func": "static int update_remote ( unsigned char * sha1 , struct remote_lock * lock ) {\n struct active_request_slot * slot ;\n struct slot_results results ;\n struct buffer out_buffer = {\n STRBUF_INIT , 0 }\n ;\n struct curl_slist * dav_headers ;\n dav_headers = get_dav_token_headers ( lock , DAV_HEADER_IF ) ;\n strbuf_addf ( & out_buffer . buf , \"%s\\n\" , sha1_to_hex ( sha1 ) ) ;\n slot = get_active_slot ( ) ;\n slot -> results = & results ;\n curl_setup_http ( slot -> curl , lock -> url , DAV_PUT , & out_buffer , fwrite_null ) ;\n curl_easy_setopt ( slot -> curl , CURLOPT_HTTPHEADER , dav_headers ) ;\n if ( start_active_slot ( slot ) ) {\n run_active_slot ( slot ) ;\n strbuf_release ( & out_buffer . buf ) ;\n if ( results . curl_result != CURLE_OK ) {\n fprintf ( stderr , \"PUT error: curl result=%d, HTTP code=%ld\\n\" , results . curl_result , results . http_code ) ;\n return 0 ;\n }\n }\n else {\n strbuf_release ( & out_buffer . buf ) ;\n fprintf ( stderr , \"Unable to start PUT request\\n\" ) ;\n return 0 ;\n }\n return 1 ;\n }"}
{"idx": 10393, "target": 0, "func": "static int alloc_mi ( VP9_COMMON * cm , int mi_size ) {\n int i ;\n for ( i = 0 ;\n i < 2 ;\n ++ i ) {\n cm -> mip_array [ i ] = ( MODE_INFO * ) vpx_calloc ( mi_size , sizeof ( MODE_INFO ) ) ;\n if ( cm -> mip_array [ i ] == NULL ) return 1 ;\n }\n cm -> mi_alloc_size = mi_size ;\n cm -> mi_idx = 0 ;\n cm -> prev_mi_idx = 1 ;\n cm -> mip = cm -> mip_array [ cm -> mi_idx ] ;\n cm -> prev_mip = cm -> mip_array [ cm -> prev_mi_idx ] ;\n return 0 ;\n }"}
{"idx": 10394, "target": 0, "func": "void PNGAPI png_set_cHRM ( png_structp png_ptr , png_infop info_ptr , double white_x , double white_y , double red_x , double red_y , double green_x , double green_y , double blue_x , double blue_y ) {\n png_debug1 ( 1 , \"in %s storage function\" , \"cHRM\" ) ;\n if ( png_ptr == NULL || info_ptr == NULL ) return ;\n info_ptr -> x_white = ( float ) white_x ;\n info_ptr -> y_white = ( float ) white_y ;\n info_ptr -> x_red = ( float ) red_x ;\n info_ptr -> y_red = ( float ) red_y ;\n info_ptr -> x_green = ( float ) green_x ;\n info_ptr -> y_green = ( float ) green_y ;\n info_ptr -> x_blue = ( float ) blue_x ;\n info_ptr -> y_blue = ( float ) blue_y ;\n # ifdef PNG_FIXED_POINT_SUPPORTED info_ptr -> int_x_white = ( png_fixed_point ) ( white_x * 100000. + 0.5 ) ;\n info_ptr -> int_y_white = ( png_fixed_point ) ( white_y * 100000. + 0.5 ) ;\n info_ptr -> int_x_red = ( png_fixed_point ) ( red_x * 100000. + 0.5 ) ;\n info_ptr -> int_y_red = ( png_fixed_point ) ( red_y * 100000. + 0.5 ) ;\n info_ptr -> int_x_green = ( png_fixed_point ) ( green_x * 100000. + 0.5 ) ;\n info_ptr -> int_y_green = ( png_fixed_point ) ( green_y * 100000. + 0.5 ) ;\n info_ptr -> int_x_blue = ( png_fixed_point ) ( blue_x * 100000. + 0.5 ) ;\n info_ptr -> int_y_blue = ( png_fixed_point ) ( blue_y * 100000. + 0.5 ) ;\n # endif info_ptr -> valid |= PNG_INFO_cHRM ;\n }"}
{"idx": 10395, "target": 0, "func": "static int parseMemoryStat ( char * * text , unsigned int tag , const char * search , virDomainMemoryStatPtr stat ) {\n char * dummy ;\n unsigned long long value ;\n if ( STRPREFIX ( * text , search ) ) {\n * text += strlen ( search ) ;\n if ( virStrToLong_ull ( * text , & dummy , 10 , & value ) ) {\n VIR_DEBUG ( \"error reading %s: %s\" , search , * text ) ;\n return 0 ;\n }\n switch ( tag ) {\n case VIR_DOMAIN_MEMORY_STAT_ACTUAL_BALLOON : value <<= 10 ;\n break ;\n case VIR_DOMAIN_MEMORY_STAT_SWAP_IN : case VIR_DOMAIN_MEMORY_STAT_SWAP_OUT : case VIR_DOMAIN_MEMORY_STAT_UNUSED : case VIR_DOMAIN_MEMORY_STAT_AVAILABLE : value >>= 10 ;\n }\n stat -> tag = tag ;\n stat -> val = value ;\n return 1 ;\n }\n return 0 ;\n }"}
{"idx": 10396, "target": 0, "func": "static int IRQ_get_next ( OpenPICState * opp , IRQQueue * q ) {\n IRQ_check ( opp , q ) ;\n return q -> next ;\n }"}
{"idx": 10397, "target": 0, "func": "bool kvm_has_x2apic_api ( void ) {\n return has_x2apic_api ;\n }"}
{"idx": 10398, "target": 0, "func": "static int get_twopass_worst_quality ( const VP9_COMP * cpi , const FIRSTPASS_STATS * stats , int section_target_bandwidth ) {\n const RATE_CONTROL * const rc = & cpi -> rc ;\n const VP9EncoderConfig * const oxcf = & cpi -> oxcf ;\n if ( section_target_bandwidth <= 0 ) {\n return rc -> worst_quality ;\n }\n else {\n const int num_mbs = cpi -> common . MBs ;\n const double section_err = stats -> coded_error / stats -> count ;\n const double err_per_mb = section_err / num_mbs ;\n const double speed_term = 1.0 + 0.04 * oxcf -> speed ;\n const int target_norm_bits_per_mb = ( ( uint64_t ) section_target_bandwidth << BPER_MB_NORMBITS ) / num_mbs ;\n int q ;\n int is_svc_upper_layer = 0 ;\n if ( is_two_pass_svc ( cpi ) && cpi -> svc . spatial_layer_id > 0 ) is_svc_upper_layer = 1 ;\n for ( q = rc -> best_quality ;\n q < rc -> worst_quality ;\n ++ q ) {\n const double factor = calc_correction_factor ( err_per_mb , ERR_DIVISOR , is_svc_upper_layer ? SVC_FACTOR_PT_LOW : FACTOR_PT_LOW , FACTOR_PT_HIGH , q , cpi -> common . bit_depth ) ;\n const int bits_per_mb = vp9_rc_bits_per_mb ( INTER_FRAME , q , factor * speed_term , cpi -> common . bit_depth ) ;\n if ( bits_per_mb <= target_norm_bits_per_mb ) break ;\n }\n if ( cpi -> oxcf . rc_mode == VPX_CQ ) q = MAX ( q , oxcf -> cq_level ) ;\n return q ;\n }\n }"}
{"idx": 10399, "target": 0, "func": "PHP_FUNCTION ( locale_canonicalize ) {\n get_icu_value_src_php ( LOC_CANONICALIZE_TAG , INTERNAL_FUNCTION_PARAM_PASSTHRU ) ;\n }"}
{"idx": 10400, "target": 0, "func": "static inline void cirrus_bitblt_fgcol ( CirrusVGAState * s ) {\n unsigned int color ;\n switch ( s -> cirrus_blt_pixelwidth ) {\n case 1 : s -> cirrus_blt_fgcol = s -> cirrus_shadow_gr1 ;\n break ;\n case 2 : color = s -> cirrus_shadow_gr1 | ( s -> vga . gr [ 0x11 ] << 8 ) ;\n s -> cirrus_blt_fgcol = le16_to_cpu ( color ) ;\n break ;\n case 3 : s -> cirrus_blt_fgcol = s -> cirrus_shadow_gr1 | ( s -> vga . gr [ 0x11 ] << 8 ) | ( s -> vga . gr [ 0x13 ] << 16 ) ;\n break ;\n default : case 4 : color = s -> cirrus_shadow_gr1 | ( s -> vga . gr [ 0x11 ] << 8 ) | ( s -> vga . gr [ 0x13 ] << 16 ) | ( s -> vga . gr [ 0x15 ] << 24 ) ;\n s -> cirrus_blt_fgcol = le32_to_cpu ( color ) ;\n break ;\n }\n }"}
{"idx": 10401, "target": 0, "func": "static int dissect_usb_audio_bulk ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * parent_tree , void * data ) {\n usb_conv_info_t * usb_conv_info ;\n proto_tree * tree ;\n proto_item * ti ;\n gint offset , length ;\n gint i ;\n if ( data == NULL ) return 0 ;\n usb_conv_info = ( usb_conv_info_t * ) data ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"USBAUDIO\" ) ;\n ti = proto_tree_add_protocol_format ( parent_tree , proto_usb_audio , tvb , 0 , - 1 , \"USB Audio\" ) ;\n tree = proto_item_add_subtree ( ti , ett_usb_audio ) ;\n length = tvb_reported_length ( tvb ) ;\n offset = 0 ;\n switch ( usb_conv_info -> interfaceSubclass ) {\n case AUDIO_IF_SUBCLASS_MIDISTREAMING : col_set_str ( pinfo -> cinfo , COL_INFO , \"USB-MIDI Event Packets\" ) ;\n for ( i = 0 ;\n i < length / 4 ;\n i ++ ) {\n dissect_usb_midi_event ( tvb , pinfo , tree , parent_tree , offset ) ;\n offset += 4 ;\n }\n break ;\n default : proto_tree_add_expert ( tree , pinfo , & ei_usb_audio_undecoded , tvb , offset , length ) ;\n }\n return length ;\n }"}
{"idx": 10402, "target": 0, "func": "static void signal_channel_destroyed ( CHANNEL_REC * channel ) {\n WINDOW_REC * window ;\n g_return_if_fail ( channel != NULL ) ;\n window = window_item_window ( ( WI_ITEM_REC * ) channel ) ;\n if ( window == NULL ) return ;\n window_item_destroy ( ( WI_ITEM_REC * ) channel ) ;\n if ( channel -> joined && ! channel -> left && ! channel -> server -> disconnected ) {\n window_bind_add ( window , channel -> server -> tag , channel -> visible_name ) ;\n }\n else if ( ! channel -> joined || channel -> left ) window_auto_destroy ( window ) ;\n }"}
{"idx": 10403, "target": 0, "func": "inline static void _slurm_rpc_accounting_register_ctld ( slurm_msg_t * msg ) {\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n DEF_TIMERS ;\n START_TIMER ;\n debug2 ( \"Processing RPC: ACCOUNTING_REGISTER_CTLD from uid=%d\" , uid ) ;\n if ( ! validate_super_user ( uid ) ) {\n error ( \"Registration request from non-super user uid=%d\" , uid ) ;\n return ;\n }\n clusteracct_storage_g_register_ctld ( acct_db_conn , slurmctld_conf . slurmctld_port ) ;\n END_TIMER2 ( \"_slurm_rpc_accounting_register_ctld\" ) ;\n }"}
{"idx": 10404, "target": 0, "func": "static gboolean gsm_a_dtap_mm_stat_packet ( void * tapdata , packet_info * pinfo _U_ , epan_dissect_t * edt _U_ , const void * gatr_ptr ) {\n return gsm_a_stat_packet ( tapdata , gatr_ptr , BSSAP_PDU_TYPE_DTAP , PD_MM ) ;\n }"}
{"idx": 10405, "target": 0, "func": "static inline void SetPixelAlphaTraits ( Image * image , const PixelTrait traits ) {\n image -> channel_map [ AlphaPixelChannel ] . traits = traits ;\n }"}
{"idx": 10406, "target": 0, "func": "static void redoos2 ( struct alltabs * at ) {\n int i ;\n at -> os2f = tmpfile ( ) ;\n putshort ( at -> os2f , at -> os2 . version ) ;\n putshort ( at -> os2f , at -> os2 . avgCharWid ) ;\n putshort ( at -> os2f , at -> os2 . weightClass ) ;\n putshort ( at -> os2f , at -> os2 . widthClass ) ;\n putshort ( at -> os2f , at -> os2 . fstype ) ;\n putshort ( at -> os2f , at -> os2 . ysubXSize ) ;\n putshort ( at -> os2f , at -> os2 . ysubYSize ) ;\n putshort ( at -> os2f , at -> os2 . ysubXOff ) ;\n putshort ( at -> os2f , at -> os2 . ysubYOff ) ;\n putshort ( at -> os2f , at -> os2 . ysupXSize ) ;\n putshort ( at -> os2f , at -> os2 . ysupYSize ) ;\n putshort ( at -> os2f , at -> os2 . ysupXOff ) ;\n putshort ( at -> os2f , at -> os2 . ysupYOff ) ;\n putshort ( at -> os2f , at -> os2 . yStrikeoutSize ) ;\n putshort ( at -> os2f , at -> os2 . yStrikeoutPos ) ;\n putshort ( at -> os2f , at -> os2 . sFamilyClass ) ;\n for ( i = 0 ;\n i < 10 ;\n ++ i ) putc ( at -> os2 . panose [ i ] , at -> os2f ) ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) putlong ( at -> os2f , at -> os2 . unicoderange [ i ] ) ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) putc ( at -> os2 . achVendID [ i ] , at -> os2f ) ;\n putshort ( at -> os2f , at -> os2 . fsSel ) ;\n putshort ( at -> os2f , at -> os2 . firstcharindex ) ;\n putshort ( at -> os2f , at -> os2 . lastcharindex ) ;\n putshort ( at -> os2f , at -> os2 . ascender ) ;\n putshort ( at -> os2f , at -> os2 . descender ) ;\n putshort ( at -> os2f , at -> os2 . linegap ) ;\n putshort ( at -> os2f , at -> os2 . winascent ) ;\n putshort ( at -> os2f , at -> os2 . windescent ) ;\n if ( at -> os2 . version >= 1 ) {\n putlong ( at -> os2f , at -> os2 . ulCodePage [ 0 ] ) ;\n putlong ( at -> os2f , at -> os2 . ulCodePage [ 1 ] ) ;\n }\n if ( at -> os2 . version >= 2 ) {\n putshort ( at -> os2f , at -> os2 . xHeight ) ;\n putshort ( at -> os2f , at -> os2 . capHeight ) ;\n putshort ( at -> os2f , at -> os2 . defChar ) ;\n putshort ( at -> os2f , at -> os2 . breakChar ) ;\n putshort ( at -> os2f , at -> os2 . maxContext ) ;\n }\n at -> os2len = ftell ( at -> os2f ) ;\n if ( ( at -> os2len & 2 ) != 0 ) putshort ( at -> os2f , 0 ) ;\n }"}
{"idx": 10407, "target": 0, "func": "void mpi_set ( MPI w , MPI u ) {\n mpi_ptr_t wp , up ;\n mpi_size_t usize = u -> nlimbs ;\n int usign = u -> sign ;\n RESIZE_IF_NEEDED ( w , usize ) ;\n wp = w -> d ;\n up = u -> d ;\n MPN_COPY ( wp , up , usize ) ;\n w -> nlimbs = usize ;\n w -> nbits = u -> nbits ;\n w -> flags = u -> flags ;\n w -> sign = usign ;\n }"}
{"idx": 10408, "target": 0, "func": "static void U_CALLCONV _Latin1ToUnicodeWithOffsets ( UConverterToUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n const uint8_t * source ;\n UChar * target ;\n int32_t targetCapacity , length ;\n int32_t * offsets ;\n int32_t sourceIndex ;\n source = ( const uint8_t * ) pArgs -> source ;\n target = pArgs -> target ;\n targetCapacity = ( int32_t ) ( pArgs -> targetLimit - pArgs -> target ) ;\n offsets = pArgs -> offsets ;\n sourceIndex = 0 ;\n length = ( int32_t ) ( ( const uint8_t * ) pArgs -> sourceLimit - source ) ;\n if ( length <= targetCapacity ) {\n targetCapacity = length ;\n }\n else {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n length = targetCapacity ;\n }\n if ( targetCapacity >= 8 ) {\n int32_t count , loops ;\n loops = count = targetCapacity >> 3 ;\n length = targetCapacity &= 0x7 ;\n do {\n target [ 0 ] = source [ 0 ] ;\n target [ 1 ] = source [ 1 ] ;\n target [ 2 ] = source [ 2 ] ;\n target [ 3 ] = source [ 3 ] ;\n target [ 4 ] = source [ 4 ] ;\n target [ 5 ] = source [ 5 ] ;\n target [ 6 ] = source [ 6 ] ;\n target [ 7 ] = source [ 7 ] ;\n target += 8 ;\n source += 8 ;\n }\n while ( -- count > 0 ) ;\n if ( offsets != NULL ) {\n do {\n offsets [ 0 ] = sourceIndex ++ ;\n offsets [ 1 ] = sourceIndex ++ ;\n offsets [ 2 ] = sourceIndex ++ ;\n offsets [ 3 ] = sourceIndex ++ ;\n offsets [ 4 ] = sourceIndex ++ ;\n offsets [ 5 ] = sourceIndex ++ ;\n offsets [ 6 ] = sourceIndex ++ ;\n offsets [ 7 ] = sourceIndex ++ ;\n offsets += 8 ;\n }\n while ( -- loops > 0 ) ;\n }\n }\n while ( targetCapacity > 0 ) {\n * target ++ = * source ++ ;\n -- targetCapacity ;\n }\n pArgs -> source = ( const char * ) source ;\n pArgs -> target = target ;\n if ( offsets != NULL ) {\n while ( length > 0 ) {\n * offsets ++ = sourceIndex ++ ;\n -- length ;\n }\n pArgs -> offsets = offsets ;\n }\n }"}
{"idx": 10409, "target": 0, "func": "int main ( int argc , char * argv [ ] ) {\n uint16 bitspersample , shortv ;\n uint32 imagewidth , imagelength ;\n uint16 config = PLANARCONFIG_CONTIG ;\n uint32 rowsperstrip = ( uint32 ) - 1 ;\n uint16 photometric = PHOTOMETRIC_RGB ;\n uint16 * rmap , * gmap , * bmap ;\n uint32 row ;\n int cmap = - 1 ;\n TIFF * in , * out ;\n int c ;\n extern int optind ;\n extern char * optarg ;\n while ( ( c = getopt ( argc , argv , \"C:c:p:r:\" ) ) != - 1 ) switch ( c ) {\n case 'C' : cmap = atoi ( optarg ) ;\n break ;\n case 'c' : if ( ! processCompressOptions ( optarg ) ) usage ( ) ;\n break ;\n case 'p' : if ( streq ( optarg , \"separate\" ) ) config = PLANARCONFIG_SEPARATE ;\n else if ( streq ( optarg , \"contig\" ) ) config = PLANARCONFIG_CONTIG ;\n else usage ( ) ;\n break ;\n case 'r' : rowsperstrip = atoi ( optarg ) ;\n break ;\n case '?' : usage ( ) ;\n }\n if ( argc - optind != 2 ) usage ( ) ;\n in = TIFFOpen ( argv [ optind ] , \"r\" ) ;\n if ( in == NULL ) return ( - 1 ) ;\n if ( ! TIFFGetField ( in , TIFFTAG_PHOTOMETRIC , & shortv ) || shortv != PHOTOMETRIC_PALETTE ) {\n fprintf ( stderr , \"%s: Expecting a palette image.\\n\" , argv [ optind ] ) ;\n return ( - 1 ) ;\n }\n if ( ! TIFFGetField ( in , TIFFTAG_COLORMAP , & rmap , & gmap , & bmap ) ) {\n fprintf ( stderr , \"%s: No colormap (not a valid palette image).\\n\" , argv [ optind ] ) ;\n return ( - 1 ) ;\n }\n bitspersample = 0 ;\n TIFFGetField ( in , TIFFTAG_BITSPERSAMPLE , & bitspersample ) ;\n if ( bitspersample != 8 ) {\n fprintf ( stderr , \"%s: Sorry, can only handle 8-bit images.\\n\" , argv [ optind ] ) ;\n return ( - 1 ) ;\n }\n out = TIFFOpen ( argv [ optind + 1 ] , \"w\" ) ;\n if ( out == NULL ) return ( - 2 ) ;\n cpTags ( in , out ) ;\n TIFFGetField ( in , TIFFTAG_IMAGEWIDTH , & imagewidth ) ;\n TIFFGetField ( in , TIFFTAG_IMAGELENGTH , & imagelength ) ;\n if ( compression != ( uint16 ) - 1 ) TIFFSetField ( out , TIFFTAG_COMPRESSION , compression ) ;\n else TIFFGetField ( in , TIFFTAG_COMPRESSION , & compression ) ;\n switch ( compression ) {\n case COMPRESSION_JPEG : if ( jpegcolormode == JPEGCOLORMODE_RGB ) photometric = PHOTOMETRIC_YCBCR ;\n else photometric = PHOTOMETRIC_RGB ;\n TIFFSetField ( out , TIFFTAG_JPEGQUALITY , quality ) ;\n TIFFSetField ( out , TIFFTAG_JPEGCOLORMODE , jpegcolormode ) ;\n break ;\n case COMPRESSION_LZW : case COMPRESSION_DEFLATE : if ( predictor != 0 ) TIFFSetField ( out , TIFFTAG_PREDICTOR , predictor ) ;\n break ;\n }\n TIFFSetField ( out , TIFFTAG_PHOTOMETRIC , photometric ) ;\n TIFFSetField ( out , TIFFTAG_SAMPLESPERPIXEL , 3 ) ;\n TIFFSetField ( out , TIFFTAG_PLANARCONFIG , config ) ;\n TIFFSetField ( out , TIFFTAG_ROWSPERSTRIP , rowsperstrip = TIFFDefaultStripSize ( out , rowsperstrip ) ) ;\n ( void ) TIFFGetField ( in , TIFFTAG_PLANARCONFIG , & shortv ) ;\n if ( cmap == - 1 ) cmap = checkcmap ( 1 << bitspersample , rmap , gmap , bmap ) ;\n if ( cmap == 16 ) {\n int i ;\n for ( i = ( 1 << bitspersample ) - 1 ;\n i >= 0 ;\n i -- ) {\n # define CVT ( x ) ( ( ( x ) * 255 ) / ( ( 1L << 16 ) - 1 ) ) rmap [ i ] = CVT ( rmap [ i ] ) ;\n gmap [ i ] = CVT ( gmap [ i ] ) ;\n bmap [ i ] = CVT ( bmap [ i ] ) ;\n }\n }\n {\n unsigned char * ibuf , * obuf ;\n register unsigned char * pp ;\n register uint32 x ;\n ibuf = ( unsigned char * ) _TIFFmalloc ( TIFFScanlineSize ( in ) ) ;\n obuf = ( unsigned char * ) _TIFFmalloc ( TIFFScanlineSize ( out ) ) ;\n switch ( config ) {\n case PLANARCONFIG_CONTIG : for ( row = 0 ;\n row < imagelength ;\n row ++ ) {\n if ( ! TIFFReadScanline ( in , ibuf , row , 0 ) ) goto done ;\n pp = obuf ;\n for ( x = 0 ;\n x < imagewidth ;\n x ++ ) {\n * pp ++ = ( unsigned char ) rmap [ ibuf [ x ] ] ;\n * pp ++ = ( unsigned char ) gmap [ ibuf [ x ] ] ;\n * pp ++ = ( unsigned char ) bmap [ ibuf [ x ] ] ;\n }\n if ( ! TIFFWriteScanline ( out , obuf , row , 0 ) ) goto done ;\n }\n break ;\n case PLANARCONFIG_SEPARATE : for ( row = 0 ;\n row < imagelength ;\n row ++ ) {\n if ( ! TIFFReadScanline ( in , ibuf , row , 0 ) ) goto done ;\n for ( pp = obuf , x = 0 ;\n x < imagewidth ;\n x ++ ) * pp ++ = ( unsigned char ) rmap [ ibuf [ x ] ] ;\n if ( ! TIFFWriteScanline ( out , obuf , row , 0 ) ) goto done ;\n for ( pp = obuf , x = 0 ;\n x < imagewidth ;\n x ++ ) * pp ++ = ( unsigned char ) gmap [ ibuf [ x ] ] ;\n if ( ! TIFFWriteScanline ( out , obuf , row , 0 ) ) goto done ;\n for ( pp = obuf , x = 0 ;\n x < imagewidth ;\n x ++ ) * pp ++ = ( unsigned char ) bmap [ ibuf [ x ] ] ;\n if ( ! TIFFWriteScanline ( out , obuf , row , 0 ) ) goto done ;\n }\n break ;\n }\n _TIFFfree ( ibuf ) ;\n _TIFFfree ( obuf ) ;\n }\n done : ( void ) TIFFClose ( in ) ;\n ( void ) TIFFClose ( out ) ;\n return ( 0 ) ;\n }"}
{"idx": 10410, "target": 0, "func": "void _TIFFfree ( tdata_t p ) {\n free ( p ) ;\n }"}
{"idx": 10411, "target": 0, "func": "static void reorder_block ( MPADecodeContext * s , GranuleDef * g ) {\n int i , j , len ;\n INTFLOAT * ptr , * dst , * ptr1 ;\n INTFLOAT tmp [ 576 ] ;\n if ( g -> block_type != 2 ) return ;\n if ( g -> switch_point ) {\n if ( s -> sample_rate_index != 8 ) ptr = g -> sb_hybrid + 36 ;\n else ptr = g -> sb_hybrid + 72 ;\n }\n else {\n ptr = g -> sb_hybrid ;\n }\n for ( i = g -> short_start ;\n i < 13 ;\n i ++ ) {\n len = band_size_short [ s -> sample_rate_index ] [ i ] ;\n ptr1 = ptr ;\n dst = tmp ;\n for ( j = len ;\n j > 0 ;\n j -- ) {\n * dst ++ = ptr [ 0 * len ] ;\n * dst ++ = ptr [ 1 * len ] ;\n * dst ++ = ptr [ 2 * len ] ;\n ptr ++ ;\n }\n ptr += 2 * len ;\n memcpy ( ptr1 , tmp , len * 3 * sizeof ( * ptr1 ) ) ;\n }\n }"}
{"idx": 10412, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n FourXContext * const f = avctx -> priv_data ;\n AVFrame * picture = data ;\n int i , frame_4cc , frame_size , ret ;\n frame_4cc = AV_RL32 ( buf ) ;\n if ( buf_size != AV_RL32 ( buf + 4 ) + 8 || buf_size < 20 ) av_log ( f -> avctx , AV_LOG_ERROR , \"size mismatch %d %d\\n\" , buf_size , AV_RL32 ( buf + 4 ) ) ;\n if ( frame_4cc == AV_RL32 ( \"cfrm\" ) ) {\n int free_index = - 1 ;\n const int data_size = buf_size - 20 ;\n const int id = AV_RL32 ( buf + 12 ) ;\n const int whole_size = AV_RL32 ( buf + 16 ) ;\n CFrameBuffer * cfrm ;\n for ( i = 0 ;\n i < CFRAME_BUFFER_COUNT ;\n i ++ ) if ( f -> cfrm [ i ] . id && f -> cfrm [ i ] . id < avctx -> frame_number ) av_log ( f -> avctx , AV_LOG_ERROR , \"lost c frame %d\\n\" , f -> cfrm [ i ] . id ) ;\n for ( i = 0 ;\n i < CFRAME_BUFFER_COUNT ;\n i ++ ) {\n if ( f -> cfrm [ i ] . id == id ) break ;\n if ( f -> cfrm [ i ] . size == 0 ) free_index = i ;\n }\n if ( i >= CFRAME_BUFFER_COUNT ) {\n i = free_index ;\n f -> cfrm [ i ] . id = id ;\n }\n cfrm = & f -> cfrm [ i ] ;\n cfrm -> data = av_fast_realloc ( cfrm -> data , & cfrm -> allocated_size , cfrm -> size + data_size + FF_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( ! cfrm -> data ) {\n av_log ( f -> avctx , AV_LOG_ERROR , \"realloc failure\" ) ;\n return AVERROR ( ENOMEM ) ;\n }\n memcpy ( cfrm -> data + cfrm -> size , buf + 20 , data_size ) ;\n cfrm -> size += data_size ;\n if ( cfrm -> size >= whole_size ) {\n buf = cfrm -> data ;\n frame_size = cfrm -> size ;\n if ( id != avctx -> frame_number ) av_log ( f -> avctx , AV_LOG_ERROR , \"cframe id mismatch %d %d\\n\" , id , avctx -> frame_number ) ;\n cfrm -> size = cfrm -> id = 0 ;\n frame_4cc = AV_RL32 ( \"pfrm\" ) ;\n }\n else return buf_size ;\n }\n else {\n buf = buf + 12 ;\n frame_size = buf_size - 12 ;\n }\n avctx -> flags |= CODEC_FLAG_EMU_EDGE ;\n if ( ( ret = ff_get_buffer ( avctx , picture , AV_GET_BUFFER_FLAG_REF ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( frame_4cc == AV_RL32 ( \"ifr2\" ) ) {\n picture -> pict_type = AV_PICTURE_TYPE_I ;\n if ( ( ret = decode_i2_frame ( f , picture , buf - 4 , frame_size + 4 ) ) < 0 ) return ret ;\n }\n else if ( frame_4cc == AV_RL32 ( \"ifrm\" ) ) {\n picture -> pict_type = AV_PICTURE_TYPE_I ;\n if ( ( ret = decode_i_frame ( f , picture , buf , frame_size ) ) < 0 ) return ret ;\n }\n else if ( frame_4cc == AV_RL32 ( \"pfrm\" ) || frame_4cc == AV_RL32 ( \"pfr2\" ) ) {\n if ( ! f -> last_picture -> data [ 0 ] ) {\n if ( ( ret = ff_get_buffer ( avctx , f -> last_picture , AV_GET_BUFFER_FLAG_REF ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n memset ( f -> last_picture -> data [ 0 ] , 0 , avctx -> height * FFABS ( f -> last_picture -> linesize [ 0 ] ) ) ;\n }\n picture -> pict_type = AV_PICTURE_TYPE_P ;\n if ( ( ret = decode_p_frame ( f , picture , buf , frame_size ) ) < 0 ) return ret ;\n }\n else if ( frame_4cc == AV_RL32 ( \"snd_\" ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"ignoring snd_ chunk length:%d\\n\" , buf_size ) ;\n }\n else {\n av_log ( avctx , AV_LOG_ERROR , \"ignoring unknown chunk length:%d\\n\" , buf_size ) ;\n }\n picture -> key_frame = picture -> pict_type == AV_PICTURE_TYPE_I ;\n av_frame_unref ( f -> last_picture ) ;\n if ( ( ret = av_frame_ref ( f -> last_picture , picture ) ) < 0 ) return ret ;\n * got_frame = 1 ;\n emms_c ( ) ;\n return buf_size ;\n }"}
{"idx": 10413, "target": 0, "func": "static void encode_breakout_test ( VP9_COMP * cpi , MACROBLOCK * x , BLOCK_SIZE bsize , int mi_row , int mi_col , MV_REFERENCE_FRAME ref_frame , PREDICTION_MODE this_mode , unsigned int var_y , unsigned int sse_y , struct buf_2d yv12_mb [ ] [ MAX_MB_PLANE ] , int * rate , int64_t * dist ) {\n MACROBLOCKD * xd = & x -> e_mbd ;\n MB_MODE_INFO * mbmi = & xd -> mi [ 0 ] . src_mi -> mbmi ;\n const BLOCK_SIZE uv_size = get_plane_block_size ( bsize , & xd -> plane [ 1 ] ) ;\n unsigned int var = var_y , sse = sse_y ;\n unsigned int thresh_ac ;\n unsigned int thresh_dc ;\n if ( x -> encode_breakout > 0 ) {\n const unsigned int max_thresh = 36000 ;\n const unsigned int min_thresh = MIN ( ( ( unsigned int ) x -> encode_breakout << 4 ) , max_thresh ) ;\n thresh_ac = ( xd -> plane [ 0 ] . dequant [ 1 ] * xd -> plane [ 0 ] . dequant [ 1 ] ) / 9 ;\n thresh_ac = clamp ( thresh_ac , min_thresh , max_thresh ) ;\n thresh_ac >>= - ( b_width_log2 ( bsize ) + b_height_log2 ( bsize ) ) ;\n thresh_dc = ( xd -> plane [ 0 ] . dequant [ 0 ] * xd -> plane [ 0 ] . dequant [ 0 ] >> 6 ) ;\n }\n else {\n thresh_ac = 0 ;\n thresh_dc = 0 ;\n }\n if ( var <= thresh_ac && ( sse - var ) <= thresh_dc ) {\n unsigned int sse_u , sse_v ;\n unsigned int var_u , var_v ;\n if ( x -> encode_breakout == 0 ) {\n xd -> plane [ 1 ] . pre [ 0 ] = yv12_mb [ ref_frame ] [ 1 ] ;\n xd -> plane [ 2 ] . pre [ 0 ] = yv12_mb [ ref_frame ] [ 2 ] ;\n vp9_build_inter_predictors_sbuv ( xd , mi_row , mi_col , bsize ) ;\n }\n var_u = cpi -> fn_ptr [ uv_size ] . vf ( x -> plane [ 1 ] . src . buf , x -> plane [ 1 ] . src . stride , xd -> plane [ 1 ] . dst . buf , xd -> plane [ 1 ] . dst . stride , & sse_u ) ;\n if ( ( var_u * 4 <= thresh_ac ) && ( sse_u - var_u <= thresh_dc ) ) {\n var_v = cpi -> fn_ptr [ uv_size ] . vf ( x -> plane [ 2 ] . src . buf , x -> plane [ 2 ] . src . stride , xd -> plane [ 2 ] . dst . buf , xd -> plane [ 2 ] . dst . stride , & sse_v ) ;\n if ( ( var_v * 4 <= thresh_ac ) && ( sse_v - var_v <= thresh_dc ) ) {\n x -> skip = 1 ;\n * rate = cpi -> inter_mode_cost [ mbmi -> mode_context [ ref_frame ] ] [ INTER_OFFSET ( this_mode ) ] ;\n * dist = ( sse << 4 ) ;\n }\n }\n }\n }"}
{"idx": 10414, "target": 0, "func": "int vp9_loop_filter_worker ( LFWorkerData * const lf_data , void * unused ) {\n ( void ) unused ;\n vp9_loop_filter_rows ( lf_data -> frame_buffer , lf_data -> cm , lf_data -> planes , lf_data -> start , lf_data -> stop , lf_data -> y_only ) ;\n return 1 ;\n }"}
{"idx": 10415, "target": 0, "func": "int64_t vp9_block_error_c ( const tran_low_t * coeff , const tran_low_t * dqcoeff , intptr_t block_size , int64_t * ssz ) {\n int i ;\n int64_t error = 0 , sqcoeff = 0 ;\n for ( i = 0 ;\n i < block_size ;\n i ++ ) {\n const int diff = coeff [ i ] - dqcoeff [ i ] ;\n error += diff * diff ;\n sqcoeff += coeff [ i ] * coeff [ i ] ;\n }\n * ssz = sqcoeff ;\n return error ;\n }"}
{"idx": 10416, "target": 0, "func": "static int get_sync_range ( int width ) {\n if ( width < 640 ) return 1 ;\n else if ( width <= 1280 ) return 2 ;\n else if ( width <= 4096 ) return 4 ;\n else return 8 ;\n }"}
{"idx": 10417, "target": 0, "func": "static int parse_CInGroupSortAggregSet_type ( tvbuff_t * tvb , int offset , proto_tree * tree , enum CInGroupSortAggregSet_type * type ) {\n guint8 tmp = tvb_get_guint8 ( tvb , offset ) ;\n switch ( tmp ) {\n case GroupIdDefault : * type = GroupIdDefault ;\n break ;\n case GroupIdMinValue : * type = GroupIdMinValue ;\n break ;\n case GroupIdNull : * type = GroupIdNull ;\n break ;\n case GroupIdValue : * type = GroupIdValue ;\n break ;\n default : DISSECTOR_ASSERT ( FALSE ) ;\n break ;\n }\n proto_tree_add_uint ( tree , hf_mswsp_cingroupsortaggregset_type , tvb , offset , 1 , * type ) ;\n return offset + 1 ;\n }"}
{"idx": 10418, "target": 0, "func": "void pdf_add_codespace ( fz_context * ctx , pdf_cmap * cmap , unsigned int low , unsigned int high , int n ) {\n if ( cmap -> codespace_len + 1 == nelem ( cmap -> codespace ) ) {\n fz_warn ( ctx , \"assert: too many code space ranges\" ) ;\n return ;\n }\n cmap -> codespace [ cmap -> codespace_len ] . n = n ;\n cmap -> codespace [ cmap -> codespace_len ] . low = low ;\n cmap -> codespace [ cmap -> codespace_len ] . high = high ;\n cmap -> codespace_len ++ ;\n }"}
{"idx": 10419, "target": 0, "func": "static inline void set_mv_intra ( AVSContext * h ) {\n h -> mv [ MV_FWD_X0 ] = ff_cavs_intra_mv ;\n set_mvs ( & h -> mv [ MV_FWD_X0 ] , BLK_16X16 ) ;\n h -> mv [ MV_BWD_X0 ] = ff_cavs_intra_mv ;\n set_mvs ( & h -> mv [ MV_BWD_X0 ] , BLK_16X16 ) ;\n if ( h -> cur . f -> pict_type != AV_PICTURE_TYPE_B ) h -> col_type_base [ h -> mbidx ] = I_8X8 ;\n }"}
{"idx": 10420, "target": 0, "func": "static UBool _isExtensionSubtag ( const char * s , int32_t len ) {\n if ( len < 0 ) {\n len = ( int32_t ) uprv_strlen ( s ) ;\n }\n if ( len >= 2 && len <= 8 && _isAlphaNumericString ( s , len ) ) {\n return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 10421, "target": 0, "func": "fz_colorspace * fz_default_gray ( fz_context * ctx , const fz_default_colorspaces * default_cs ) {\n if ( default_cs ) return default_cs -> gray ;\n else return fz_device_gray ( ctx ) ;\n }"}
{"idx": 10422, "target": 0, "func": "TEST_F ( BrowsingDataRemoverImplTest , RemoveQuotaManagedDataForLastHour ) {\n BlockUntilBrowsingDataRemoved ( AnHourAgo ( ) , base : : Time : : Max ( ) , BrowsingDataRemover : : REMOVE_FILE_SYSTEMS | BrowsingDataRemover : : REMOVE_WEBSQL | BrowsingDataRemover : : REMOVE_APPCACHE | BrowsingDataRemover : : REMOVE_SERVICE_WORKERS | BrowsingDataRemover : : REMOVE_CACHE_STORAGE | BrowsingDataRemover : : REMOVE_INDEXEDDB , false ) ;\n EXPECT_EQ ( BrowsingDataRemover : : REMOVE_FILE_SYSTEMS | BrowsingDataRemover : : REMOVE_WEBSQL | BrowsingDataRemover : : REMOVE_APPCACHE | BrowsingDataRemover : : REMOVE_SERVICE_WORKERS | BrowsingDataRemover : : REMOVE_CACHE_STORAGE | BrowsingDataRemover : : REMOVE_INDEXEDDB , GetRemovalMask ( ) ) ;\n EXPECT_EQ ( BrowsingDataHelper : : UNPROTECTED_WEB , GetOriginTypeMask ( ) ) ;\n StoragePartitionRemovalData removal_data = GetStoragePartitionRemovalData ( ) ;\n EXPECT_EQ ( removal_data . remove_mask , StoragePartition : : REMOVE_DATA_MASK_FILE_SYSTEMS | StoragePartition : : REMOVE_DATA_MASK_WEBSQL | StoragePartition : : REMOVE_DATA_MASK_APPCACHE | StoragePartition : : REMOVE_DATA_MASK_SERVICE_WORKERS | StoragePartition : : REMOVE_DATA_MASK_CACHE_STORAGE | StoragePartition : : REMOVE_DATA_MASK_INDEXEDDB ) ;\n uint32_t expected_quota_mask = ~ StoragePartition : : QUOTA_MANAGED_STORAGE_MASK_PERSISTENT ;\n EXPECT_EQ ( removal_data . quota_storage_remove_mask , expected_quota_mask ) ;\n EXPECT_EQ ( removal_data . remove_begin , GetBeginTime ( ) ) ;\n }"}
{"idx": 10423, "target": 0, "func": "PCIBus * typhoon_init ( ram_addr_t ram_size , ISABus * * isa_bus , qemu_irq * p_rtc_irq , AlphaCPU * cpus [ 4 ] , pci_map_irq_fn sys_map_irq ) {\n const uint64_t MB = 1024 * 1024 ;\n const uint64_t GB = 1024 * MB ;\n MemoryRegion * addr_space = get_system_memory ( ) ;\n MemoryRegion * addr_space_io = get_system_io ( ) ;\n DeviceState * dev ;\n TyphoonState * s ;\n PCIHostState * phb ;\n PCIBus * b ;\n int i ;\n dev = qdev_create ( NULL , TYPE_TYPHOON_PCI_HOST_BRIDGE ) ;\n qdev_init_nofail ( dev ) ;\n s = TYPHOON_PCI_HOST_BRIDGE ( dev ) ;\n phb = PCI_HOST_BRIDGE ( dev ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n AlphaCPU * cpu = cpus [ i ] ;\n s -> cchip . cpu [ i ] = cpu ;\n if ( cpu != NULL ) {\n cpu -> alarm_timer = qemu_new_timer_ns ( rtc_clock , typhoon_alarm_timer , ( void * ) ( ( uintptr_t ) s + i ) ) ;\n }\n }\n * p_rtc_irq = * qemu_allocate_irqs ( typhoon_set_timer_irq , s , 1 ) ;\n memory_region_init_ram ( & s -> ram_region , OBJECT ( s ) , \"ram\" , ram_size ) ;\n vmstate_register_ram_global ( & s -> ram_region ) ;\n memory_region_add_subregion ( addr_space , 0 , & s -> ram_region ) ;\n memory_region_init_io ( & s -> pchip . region , OBJECT ( s ) , & pchip_ops , s , \"pchip0\" , 256 * MB ) ;\n memory_region_add_subregion ( addr_space , 0x80180000000ULL , & s -> pchip . region ) ;\n memory_region_init_io ( & s -> cchip . region , OBJECT ( s ) , & cchip_ops , s , \"cchip0\" , 256 * MB ) ;\n memory_region_add_subregion ( addr_space , 0x801a0000000ULL , & s -> cchip . region ) ;\n memory_region_init_io ( & s -> dchip_region , OBJECT ( s ) , & dchip_ops , s , \"dchip0\" , 256 * MB ) ;\n memory_region_add_subregion ( addr_space , 0x801b0000000ULL , & s -> dchip_region ) ;\n memory_region_init ( & s -> pchip . reg_mem , OBJECT ( s ) , \"pci0-mem\" , 4 * GB ) ;\n memory_region_add_subregion ( addr_space , 0x80000000000ULL , & s -> pchip . reg_mem ) ;\n memory_region_init_io ( & s -> pchip . reg_io , OBJECT ( s ) , & alpha_pci_bw_io_ops , NULL , \"pci0-io\" , 32 * MB ) ;\n memory_region_add_subregion ( addr_space , 0x801fc000000ULL , & s -> pchip . reg_io ) ;\n b = pci_register_bus ( dev , \"pci\" , typhoon_set_irq , sys_map_irq , s , & s -> pchip . reg_mem , addr_space_io , 0 , 64 , TYPE_PCI_BUS ) ;\n phb -> bus = b ;\n memory_region_init_io ( & s -> pchip . reg_iack , OBJECT ( s ) , & alpha_pci_iack_ops , b , \"pci0-iack\" , 64 * MB ) ;\n memory_region_add_subregion ( addr_space , 0x801f8000000ULL , & s -> pchip . reg_iack ) ;\n memory_region_init_io ( & s -> pchip . reg_conf , OBJECT ( s ) , & alpha_pci_conf1_ops , b , \"pci0-conf\" , 16 * MB ) ;\n memory_region_add_subregion ( addr_space , 0x801fe000000ULL , & s -> pchip . reg_conf ) ;\n {\n qemu_irq isa_pci_irq , * isa_irqs ;\n * isa_bus = isa_bus_new ( NULL , addr_space_io ) ;\n isa_pci_irq = * qemu_allocate_irqs ( typhoon_set_isa_irq , s , 1 ) ;\n isa_irqs = i8259_init ( * isa_bus , isa_pci_irq ) ;\n isa_bus_irqs ( * isa_bus , isa_irqs ) ;\n }\n return b ;\n }"}
{"idx": 10424, "target": 0, "func": "int remoteEncodeClientMessageHeader ( struct qemud_client_message * msg ) {\n XDR xdr ;\n int ret = - 1 ;\n unsigned int len = 0 ;\n msg -> bufferLength = sizeof ( msg -> buffer ) ;\n msg -> bufferOffset = 0 ;\n xdrmem_create ( & xdr , msg -> buffer , msg -> bufferLength , XDR_ENCODE ) ;\n if ( ! xdr_u_int ( & xdr , & len ) ) {\n goto cleanup ;\n }\n if ( ! xdr_remote_message_header ( & xdr , & msg -> hdr ) ) goto cleanup ;\n len = xdr_getpos ( & xdr ) ;\n xdr_setpos ( & xdr , 0 ) ;\n if ( ! xdr_u_int ( & xdr , & len ) ) {\n goto cleanup ;\n }\n msg -> bufferOffset += len ;\n ret = 0 ;\n cleanup : xdr_destroy ( & xdr ) ;\n return ret ;\n }"}
{"idx": 10425, "target": 0, "func": "static int compress_bidder_init ( struct archive_read_filter * self ) {\n struct private_data * state ;\n static const size_t out_block_size = 64 * 1024 ;\n void * out_block ;\n int code ;\n self -> code = ARCHIVE_FILTER_COMPRESS ;\n self -> name = \"compress (.Z)\" ;\n state = ( struct private_data * ) calloc ( sizeof ( * state ) , 1 ) ;\n out_block = malloc ( out_block_size ) ;\n if ( state == NULL || out_block == NULL ) {\n free ( out_block ) ;\n free ( state ) ;\n archive_set_error ( & self -> archive -> archive , ENOMEM , \"Can't allocate data for %s decompression\" , self -> name ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n self -> data = state ;\n state -> out_block_size = out_block_size ;\n state -> out_block = out_block ;\n self -> read = compress_filter_read ;\n self -> skip = NULL ;\n self -> close = compress_filter_close ;\n ( void ) getbits ( self , 8 ) ;\n ( void ) getbits ( self , 8 ) ;\n code = getbits ( self , 8 ) ;\n if ( ( code & 0x1f ) > 16 ) {\n archive_set_error ( & self -> archive -> archive , - 1 , \"Invalid compressed data\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n state -> maxcode_bits = code & 0x1f ;\n state -> maxcode = ( 1 << state -> maxcode_bits ) ;\n state -> use_reset_code = code & 0x80 ;\n state -> free_ent = 256 ;\n state -> stackp = state -> stack ;\n if ( state -> use_reset_code ) state -> free_ent ++ ;\n state -> bits = 9 ;\n state -> section_end_code = ( 1 << state -> bits ) - 1 ;\n state -> oldcode = - 1 ;\n for ( code = 255 ;\n code >= 0 ;\n code -- ) {\n state -> prefix [ code ] = 0 ;\n state -> suffix [ code ] = code ;\n }\n next_code ( self ) ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 10426, "target": 0, "func": "static const char * lookup_name ( struct cpio * cpio , struct name_cache * * name_cache_variable , int ( * lookup_fn ) ( struct cpio * , const char * * , id_t ) , id_t id ) {\n char asnum [ 16 ] ;\n struct name_cache * cache ;\n const char * name ;\n int slot ;\n if ( * name_cache_variable == NULL ) {\n * name_cache_variable = malloc ( sizeof ( struct name_cache ) ) ;\n if ( * name_cache_variable == NULL ) lafe_errc ( 1 , ENOMEM , \"No more memory\" ) ;\n memset ( * name_cache_variable , 0 , sizeof ( struct name_cache ) ) ;\n ( * name_cache_variable ) -> size = name_cache_size ;\n }\n cache = * name_cache_variable ;\n cache -> probes ++ ;\n slot = id % cache -> size ;\n if ( cache -> cache [ slot ] . name != NULL ) {\n if ( cache -> cache [ slot ] . id == id ) {\n cache -> hits ++ ;\n return ( cache -> cache [ slot ] . name ) ;\n }\n free ( cache -> cache [ slot ] . name ) ;\n cache -> cache [ slot ] . name = NULL ;\n }\n if ( lookup_fn ( cpio , & name , id ) == 0 ) {\n if ( name == NULL || name [ 0 ] == '\\0' ) {\n snprintf ( asnum , sizeof ( asnum ) , \"%u\" , ( unsigned ) id ) ;\n name = asnum ;\n }\n cache -> cache [ slot ] . name = strdup ( name ) ;\n if ( cache -> cache [ slot ] . name != NULL ) {\n cache -> cache [ slot ] . id = id ;\n return ( cache -> cache [ slot ] . name ) ;\n }\n }\n return ( NULL ) ;\n }"}
{"idx": 10427, "target": 1, "func": "static int roq_encode_end ( AVCodecContext * avctx ) {\n RoqContext * enc = avctx -> priv_data ;\n avctx -> release_buffer ( avctx , enc -> last_frame ) ;\n avctx -> release_buffer ( avctx , enc -> current_frame ) ;\n av_free ( enc -> tmpData ) ;\n av_free ( enc -> this_motion4 ) ;\n av_free ( enc -> last_motion4 ) ;\n av_free ( enc -> this_motion8 ) ;\n av_free ( enc -> last_motion8 ) ;\n return 0 ;\n }"}
{"idx": 10428, "target": 1, "func": "static void _HZ_GetUnicodeSet ( const UConverter * cnv , const USetAdder * sa , UConverterUnicodeSet which , UErrorCode * pErrorCode ) {\n sa -> addRange ( sa -> set , 0 , 0x7f ) ;\n ucnv_MBCSGetFilteredUnicodeSetForUnicode ( ( ( UConverterDataHZ * ) cnv -> extraInfo ) -> gbConverter -> sharedData , sa , which , UCNV_SET_FILTER_HZ , pErrorCode ) ;\n }"}
{"idx": 10429, "target": 1, "func": "size_t vpx_svc_get_frame_size ( const SvcContext * svc_ctx ) {\n const SvcInternal * const si = get_const_svc_internal ( svc_ctx ) ;\n if ( svc_ctx == NULL || si == NULL || si -> frame_list == NULL ) return 0 ;\n return si -> frame_list -> size ;\n }"}
{"idx": 10430, "target": 0, "func": "static int dissect_h245_AddConnectionReq ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_AddConnectionReq , AddConnectionReq_sequence ) ;\n return offset ;\n }"}
{"idx": 10431, "target": 0, "func": "static void getSingleRun ( UBiDi * pBiDi , UBiDiLevel level ) {\n pBiDi -> runs = pBiDi -> simpleRuns ;\n pBiDi -> runCount = 1 ;\n pBiDi -> runs [ 0 ] . logicalStart = MAKE_INDEX_ODD_PAIR ( 0 , level ) ;\n pBiDi -> runs [ 0 ] . visualLimit = pBiDi -> length ;\n pBiDi -> runs [ 0 ] . insertRemove = 0 ;\n }"}
{"idx": 10432, "target": 0, "func": "type_init ( ehci_pci_register_types ) struct ehci_companions {\n const char * name ;\n int func ;\n int port ;\n }\n ;\n static const struct ehci_companions ich9_1d [ ] = {\n {\n . name = \"ich9-usb-uhci1\" , . func = 0 , . port = 0 }\n , {\n . name = \"ich9-usb-uhci2\" , . func = 1 , . port = 2 }\n , {\n . name = \"ich9-usb-uhci3\" , . func = 2 , . port = 4 }\n , }"}
{"idx": 10433, "target": 0, "func": "TEST_F ( TemplateURLParserTest , TestMSDN ) {\n ASSERT_NO_FATAL_FAILURE ( ParseFile ( \"msdn.xml\" , nullptr ) ) ;\n ASSERT_TRUE ( template_url_ ) ;\n EXPECT_EQ ( ASCIIToUTF16 ( \"Search \\\" MSDN\" ) , template_url_ -> short_name ( ) ) ;\n EXPECT_EQ ( GURL ( \"http://search.msdn.microsoft.com/search/favicon.ico\" ) , template_url_ -> favicon_url ( ) ) ;\n EXPECT_TRUE ( template_url_ -> url_ref ( ) . SupportsReplacement ( SearchTermsData ( ) ) ) ;\n EXPECT_EQ ( \"http://search.msdn.microsoft.com/search/default.aspx?\" \"Query={\nsearchTerms}\n&brand=msdn&locale=en-US\" , template_url_ -> url ( ) ) ;\n }"}
{"idx": 10434, "target": 0, "func": "static unsigned long dtls1_max_handshake_message_len ( const SSL * s ) {\n unsigned long max_len = DTLS1_HM_HEADER_LENGTH + SSL3_RT_MAX_ENCRYPTED_LENGTH ;\n if ( max_len < ( unsigned long ) s -> max_cert_list ) return s -> max_cert_list ;\n return max_len ;\n }"}
{"idx": 10435, "target": 0, "func": "static void tgq_decode_mb ( TgqContext * s , AVFrame * frame , int mb_y , int mb_x ) {\n int mode ;\n int i ;\n int8_t dc [ 6 ] ;\n mode = bytestream2_get_byte ( & s -> gb ) ;\n if ( mode > 12 ) {\n GetBitContext gb ;\n init_get_bits ( & gb , s -> gb . buffer , FFMIN ( s -> gb . buffer_end - s -> gb . buffer , mode ) * 8 ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) tgq_decode_block ( s , s -> block [ i ] , & gb ) ;\n tgq_idct_put_mb ( s , s -> block , frame , mb_x , mb_y ) ;\n bytestream2_skip ( & s -> gb , mode ) ;\n }\n else {\n if ( mode == 3 ) {\n memset ( dc , bytestream2_get_byte ( & s -> gb ) , 4 ) ;\n dc [ 4 ] = bytestream2_get_byte ( & s -> gb ) ;\n dc [ 5 ] = bytestream2_get_byte ( & s -> gb ) ;\n }\n else if ( mode == 6 ) {\n bytestream2_get_buffer ( & s -> gb , dc , 6 ) ;\n }\n else if ( mode == 12 ) {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n dc [ i ] = bytestream2_get_byte ( & s -> gb ) ;\n bytestream2_skip ( & s -> gb , 1 ) ;\n }\n }\n else {\n av_log ( s -> avctx , AV_LOG_ERROR , \"unsupported mb mode %i\\n\" , mode ) ;\n }\n tgq_idct_put_mb_dconly ( s , frame , mb_x , mb_y , dc ) ;\n }\n }"}
{"idx": 10436, "target": 0, "func": "void vp9_temporal_filter ( VP9_COMP * cpi , int distance ) {\n VP9_COMMON * const cm = & cpi -> common ;\n RATE_CONTROL * const rc = & cpi -> rc ;\n int frame ;\n int frames_to_blur ;\n int start_frame ;\n int strength ;\n int frames_to_blur_backward ;\n int frames_to_blur_forward ;\n struct scale_factors sf ;\n YV12_BUFFER_CONFIG * frames [ MAX_LAG_BUFFERS ] = {\n NULL }\n ;\n adjust_arnr_filter ( cpi , distance , rc -> gfu_boost , & frames_to_blur , & strength ) ;\n frames_to_blur_backward = ( frames_to_blur / 2 ) ;\n frames_to_blur_forward = ( ( frames_to_blur - 1 ) / 2 ) ;\n start_frame = distance + frames_to_blur_forward ;\n for ( frame = 0 ;\n frame < frames_to_blur ;\n ++ frame ) {\n const int which_buffer = start_frame - frame ;\n struct lookahead_entry * buf = vp9_lookahead_peek ( cpi -> lookahead , which_buffer ) ;\n frames [ frames_to_blur - 1 - frame ] = & buf -> img ;\n }\n if ( is_two_pass_svc ( cpi ) ) {\n int frame_used = 0 ;\n # if CONFIG_VP9_HIGHBITDEPTH vp9_setup_scale_factors_for_frame ( & sf , get_frame_new_buffer ( cm ) -> y_crop_width , get_frame_new_buffer ( cm ) -> y_crop_height , get_frame_new_buffer ( cm ) -> y_crop_width , get_frame_new_buffer ( cm ) -> y_crop_height , cm -> use_highbitdepth ) ;\n # else vp9_setup_scale_factors_for_frame ( & sf , get_frame_new_buffer ( cm ) -> y_crop_width , get_frame_new_buffer ( cm ) -> y_crop_height , get_frame_new_buffer ( cm ) -> y_crop_width , get_frame_new_buffer ( cm ) -> y_crop_height ) ;\n # endif for ( frame = 0 ;\n frame < frames_to_blur ;\n ++ frame ) {\n if ( cm -> mi_cols * MI_SIZE != frames [ frame ] -> y_width || cm -> mi_rows * MI_SIZE != frames [ frame ] -> y_height ) {\n if ( vp9_realloc_frame_buffer ( & cpi -> svc . scaled_frames [ frame_used ] , cm -> width , cm -> height , cm -> subsampling_x , cm -> subsampling_y , # if CONFIG_VP9_HIGHBITDEPTH cm -> use_highbitdepth , # endif VP9_ENC_BORDER_IN_PIXELS , NULL , NULL , NULL ) ) vpx_internal_error ( & cm -> error , VPX_CODEC_MEM_ERROR , \"Failed to reallocate alt_ref_buffer\" ) ;\n frames [ frame ] = vp9_scale_if_required ( cm , frames [ frame ] , & cpi -> svc . scaled_frames [ frame_used ] ) ;\n ++ frame_used ;\n }\n }\n }\n else {\n # if CONFIG_VP9_HIGHBITDEPTH vp9_setup_scale_factors_for_frame ( & sf , frames [ 0 ] -> y_crop_width , frames [ 0 ] -> y_crop_height , frames [ 0 ] -> y_crop_width , frames [ 0 ] -> y_crop_height , cm -> use_highbitdepth ) ;\n # else vp9_setup_scale_factors_for_frame ( & sf , frames [ 0 ] -> y_crop_width , frames [ 0 ] -> y_crop_height , frames [ 0 ] -> y_crop_width , frames [ 0 ] -> y_crop_height ) ;\n # endif }\n temporal_filter_iterate_c ( cpi , frames , frames_to_blur , frames_to_blur_backward , strength , & sf ) ;\n }"}
{"idx": 10437, "target": 0, "func": "static struct mspack_file * mspack_fmap_open ( struct mspack_system * self , const char * filename , int mode ) {\n struct mspack_name * mspack_name ;\n struct mspack_handle * mspack_handle ;\n struct mspack_system_ex * self_ex ;\n const char * fmode ;\n const struct mspack_system * mptr = self ;\n if ( ! filename ) {\n cli_dbgmsg ( \"%s() failed at %d\\n\" , __func__ , __LINE__ ) ;\n return NULL ;\n }\n mspack_handle = malloc ( sizeof ( * mspack_handle ) ) ;\n if ( ! mspack_handle ) {\n cli_dbgmsg ( \"%s() failed at %d\\n\" , __func__ , __LINE__ ) ;\n return NULL ;\n }\n switch ( mode ) {\n case MSPACK_SYS_OPEN_READ : mspack_handle -> type = FILETYPE_FMAP ;\n mspack_name = ( struct mspack_name * ) filename ;\n mspack_handle -> fmap = mspack_name -> fmap ;\n mspack_handle -> org = mspack_name -> org ;\n mspack_handle -> offset = 0 ;\n return ( struct mspack_file * ) mspack_handle ;\n case MSPACK_SYS_OPEN_WRITE : fmode = \"wb\" ;\n break ;\n case MSPACK_SYS_OPEN_UPDATE : fmode = \"r+b\" ;\n break ;\n case MSPACK_SYS_OPEN_APPEND : fmode = \"ab\" ;\n break ;\n default : cli_dbgmsg ( \"%s() wrong mode\\n\" , __func__ ) ;\n goto out_err ;\n }\n mspack_handle -> type = FILETYPE_FILENAME ;\n mspack_handle -> f = fopen ( filename , fmode ) ;\n if ( ! mspack_handle -> f ) {\n cli_dbgmsg ( \"%s() failed %d\\n\" , __func__ , __LINE__ ) ;\n goto out_err ;\n }\n self_ex = ( struct mspack_system_ex * ) ( ( char * ) mptr - offsetof ( struct mspack_system_ex , ops ) ) ;\n mspack_handle -> max_size = self_ex -> max_size ;\n return ( struct mspack_file * ) mspack_handle ;\n out_err : free ( mspack_handle ) ;\n return NULL ;\n }"}
{"idx": 10438, "target": 0, "func": "static int dissect_h245_T_audioLayer ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_audioLayer , T_audioLayer_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 10439, "target": 0, "func": "static hb_bool_t _try_make_writable_inplace_unix ( hb_blob_t * blob ) {\n # if defined ( HAVE_SYS_MMAN_H ) && defined ( HAVE_MPROTECT ) uintptr_t pagesize = - 1 , mask , length ;\n const char * addr ;\n # if defined ( HAVE_SYSCONF ) && defined ( _SC_PAGE_SIZE ) pagesize = ( uintptr_t ) sysconf ( _SC_PAGE_SIZE ) ;\n # elif defined ( HAVE_SYSCONF ) && defined ( _SC_PAGESIZE ) pagesize = ( uintptr_t ) sysconf ( _SC_PAGESIZE ) ;\n # elif defined ( HAVE_GETPAGESIZE ) pagesize = ( uintptr_t ) getpagesize ( ) ;\n # endif if ( ( uintptr_t ) - 1L == pagesize ) {\n DEBUG_MSG_FUNC ( BLOB , blob , \"failed to get pagesize: %s\" , strerror ( errno ) ) ;\n return false ;\n }\n DEBUG_MSG_FUNC ( BLOB , blob , \"pagesize is %lu\" , ( unsigned long ) pagesize ) ;\n mask = ~ ( pagesize - 1 ) ;\n addr = ( const char * ) ( ( ( uintptr_t ) blob -> data ) & mask ) ;\n length = ( const char * ) ( ( ( uintptr_t ) blob -> data + blob -> length + pagesize - 1 ) & mask ) - addr ;\n DEBUG_MSG_FUNC ( BLOB , blob , \"calling mprotect on [%p..%p] (%lu bytes)\" , addr , addr + length , ( unsigned long ) length ) ;\n if ( - 1 == mprotect ( ( void * ) addr , length , PROT_READ | PROT_WRITE ) ) {\n DEBUG_MSG_FUNC ( BLOB , blob , \"mprotect failed: %s\" , strerror ( errno ) ) ;\n return false ;\n }\n blob -> mode = HB_MEMORY_MODE_WRITABLE ;\n DEBUG_MSG_FUNC ( BLOB , blob , \"successfully made [%p..%p] (%lu bytes) writable\\n\" , addr , addr + length , ( unsigned long ) length ) ;\n return true ;\n # else return false ;\n # endif }"}
{"idx": 10440, "target": 0, "func": "static int dissect_h245_T_pktMode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_pktMode , T_pktMode_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 10441, "target": 0, "func": "void kadm5_set_use_password_server ( void ) {\n use_password_server = 1 ;\n }"}
{"idx": 10442, "target": 0, "func": "static void file_change_d ( const char * p , struct branch * b ) {\n static struct strbuf uq = STRBUF_INIT ;\n const char * endp ;\n strbuf_reset ( & uq ) ;\n if ( ! unquote_c_style ( & uq , p , & endp ) ) {\n if ( * endp ) die ( \"Garbage after path in: %s\" , command_buf . buf ) ;\n p = uq . buf ;\n }\n tree_content_remove ( & b -> branch_tree , p , NULL , 1 ) ;\n }"}
{"idx": 10443, "target": 0, "func": "int MBS_ApplyPatch ( const MBSPatchHeader * header , int patchfd , unsigned char * fbuffer , int filefd ) {\n unsigned char * fbufstart = fbuffer ;\n unsigned char * fbufend = fbuffer + header -> slen ;\n unsigned char * buf = ( unsigned char * ) malloc ( header -> cblen + header -> difflen + header -> extralen ) ;\n if ( ! buf ) return MEM_ERROR ;\n int rv = OK ;\n int r = header -> cblen + header -> difflen + header -> extralen ;\n unsigned char * wb = buf ;\n while ( r ) {\n int c = read ( patchfd , wb , ( r > SSIZE_MAX ) ? SSIZE_MAX : r ) ;\n if ( c < 0 ) {\n rv = READ_ERROR ;\n goto end ;\n }\n r -= c ;\n wb += c ;\n if ( c == 0 && r ) {\n rv = UNEXPECTED_ERROR ;\n goto end ;\n }\n }\n {\n MBSPatchTriple * ctrlsrc = ( MBSPatchTriple * ) buf ;\n if ( header -> cblen % sizeof ( MBSPatchTriple ) != 0 ) {\n rv = UNEXPECTED_ERROR ;\n goto end ;\n }\n unsigned char * diffsrc = buf + header -> cblen ;\n unsigned char * extrasrc = diffsrc + header -> difflen ;\n MBSPatchTriple * ctrlend = ( MBSPatchTriple * ) diffsrc ;\n unsigned char * diffend = extrasrc ;\n unsigned char * extraend = extrasrc + header -> extralen ;\n while ( ctrlsrc < ctrlend ) {\n ctrlsrc -> x = ntohl ( ctrlsrc -> x ) ;\n ctrlsrc -> y = ntohl ( ctrlsrc -> y ) ;\n ctrlsrc -> z = ntohl ( ctrlsrc -> z ) ;\n # ifdef DEBUG_bsmedberg printf ( \"Applying block:\\n\" \" x: %u\\n\" \" y: %u\\n\" \" z: %i\\n\" , ctrlsrc -> x , ctrlsrc -> y , ctrlsrc -> z ) ;\n # endif if ( ctrlsrc -> x > static_cast < size_t > ( fbufend - fbuffer ) || ctrlsrc -> x > static_cast < size_t > ( diffend - diffsrc ) ) {\n rv = UNEXPECTED_ERROR ;\n goto end ;\n }\n for ( unsigned int i = 0 ;\n i < ctrlsrc -> x ;\n ++ i ) {\n diffsrc [ i ] += fbuffer [ i ] ;\n }\n if ( ( int ) write ( filefd , diffsrc , ctrlsrc -> x ) != ctrlsrc -> x ) {\n rv = WRITE_ERROR ;\n goto end ;\n }\n fbuffer += ctrlsrc -> x ;\n diffsrc += ctrlsrc -> x ;\n if ( ctrlsrc -> y > static_cast < size_t > ( extraend - extrasrc ) ) {\n rv = UNEXPECTED_ERROR ;\n goto end ;\n }\n if ( ( int ) write ( filefd , extrasrc , ctrlsrc -> y ) != ctrlsrc -> y ) {\n rv = WRITE_ERROR ;\n goto end ;\n }\n extrasrc += ctrlsrc -> y ;\n if ( ctrlsrc -> z < fbufstart - fbuffer || ctrlsrc -> z > fbufend - fbuffer ) {\n rv = UNEXPECTED_ERROR ;\n goto end ;\n }\n fbuffer += ctrlsrc -> z ;\n ++ ctrlsrc ;\n }\n }\n end : free ( buf ) ;\n return rv ;\n }"}
{"idx": 10444, "target": 1, "func": "static int ra144_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n static const uint8_t sizes [ LPC_ORDER ] = {\n 6 , 5 , 5 , 4 , 4 , 3 , 3 , 3 , 3 , 2 }\n ;\n unsigned int refl_rms [ NBLOCKS ] ;\n uint16_t block_coefs [ NBLOCKS ] [ LPC_ORDER ] ;\n unsigned int lpc_refl [ LPC_ORDER ] ;\n int i , j ;\n int ret ;\n int16_t * samples ;\n unsigned int energy ;\n RA144Context * ractx = avctx -> priv_data ;\n GetBitContext gb ;\n frame -> nb_samples = NBLOCKS * BLOCKSIZE ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n samples = ( int16_t * ) frame -> data [ 0 ] ;\n if ( buf_size < FRAMESIZE ) {\n av_log ( avctx , AV_LOG_ERROR , \"Frame too small (%d bytes). Truncated file?\\n\" , buf_size ) ;\n * got_frame_ptr = 0 ;\n return buf_size ;\n }\n init_get_bits ( & gb , buf , FRAMESIZE * 8 ) ;\n for ( i = 0 ;\n i < LPC_ORDER ;\n i ++ ) lpc_refl [ i ] = ff_lpc_refl_cb [ i ] [ get_bits ( & gb , sizes [ i ] ) ] ;\n ff_eval_coefs ( ractx -> lpc_coef [ 0 ] , lpc_refl ) ;\n ractx -> lpc_refl_rms [ 0 ] = ff_rms ( lpc_refl ) ;\n energy = ff_energy_tab [ get_bits ( & gb , 5 ) ] ;\n refl_rms [ 0 ] = ff_interp ( ractx , block_coefs [ 0 ] , 1 , 1 , ractx -> old_energy ) ;\n refl_rms [ 1 ] = ff_interp ( ractx , block_coefs [ 1 ] , 2 , energy <= ractx -> old_energy , ff_t_sqrt ( energy * ractx -> old_energy ) >> 12 ) ;\n refl_rms [ 2 ] = ff_interp ( ractx , block_coefs [ 2 ] , 3 , 0 , energy ) ;\n refl_rms [ 3 ] = ff_rescale_rms ( ractx -> lpc_refl_rms [ 0 ] , energy ) ;\n ff_int_to_int16 ( block_coefs [ 3 ] , ractx -> lpc_coef [ 0 ] ) ;\n for ( i = 0 ;\n i < NBLOCKS ;\n i ++ ) {\n do_output_subblock ( ractx , block_coefs [ i ] , refl_rms [ i ] , & gb ) ;\n for ( j = 0 ;\n j < BLOCKSIZE ;\n j ++ ) * samples ++ = av_clip_int16 ( ractx -> curr_sblock [ j + 10 ] << 2 ) ;\n }\n ractx -> old_energy = energy ;\n ractx -> lpc_refl_rms [ 1 ] = ractx -> lpc_refl_rms [ 0 ] ;\n FFSWAP ( unsigned int * , ractx -> lpc_coef [ 0 ] , ractx -> lpc_coef [ 1 ] ) ;\n * got_frame_ptr = 1 ;\n return FRAMESIZE ;\n }"}
{"idx": 10445, "target": 0, "func": "static int dissect_h225_SEQUENCE_OF_TunnelledProtocol ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_SEQUENCE_OF_TunnelledProtocol , SEQUENCE_OF_TunnelledProtocol_sequence_of ) ;\n return offset ;\n }"}
{"idx": 10446, "target": 0, "func": "void RECORD_LAYER_init ( RECORD_LAYER * rl , SSL * s ) {\n rl -> s = s ;\n RECORD_LAYER_set_first_record ( & s -> rlayer ) ;\n SSL3_RECORD_clear ( rl -> rrec , SSL_MAX_PIPELINES ) ;\n }"}
{"idx": 10447, "target": 0, "func": "static int ebml_read_length ( MatroskaDemuxContext * matroska , AVIOContext * pb , uint64_t * number ) {\n int res = ebml_read_num ( matroska , pb , 8 , number ) ;\n if ( res > 0 && * number + 1 == 1ULL << ( 7 * res ) ) * number = 0xffffffffffffffULL ;\n return res ;\n }"}
{"idx": 10448, "target": 0, "func": "static void show_object ( struct object * object , const char * name , void * data ) {\n struct bitmap * base = data ;\n bitmap_set ( base , find_object_pos ( object -> oid . hash ) ) ;\n mark_as_seen ( object ) ;\n }"}
{"idx": 10449, "target": 0, "func": "static int strToMatch ( const char * str , char * retstr ) {\n char * anchor = NULL ;\n const char * anchor1 = NULL ;\n int result = 0 ;\n if ( ( ! str ) || str [ 0 ] == '\\0' ) {\n return result ;\n }\n else {\n anchor = retstr ;\n anchor1 = str ;\n while ( ( * str ) != '\\0' ) {\n if ( * str == '-' ) {\n * retstr = '_' ;\n }\n else {\n * retstr = tolower ( * str ) ;\n }\n str ++ ;\n retstr ++ ;\n }\n * retstr = '\\0' ;\n retstr = anchor ;\n str = anchor1 ;\n result = 1 ;\n }\n return ( result ) ;\n }"}
{"idx": 10450, "target": 0, "func": "static inline void mlt_compensate_output ( COOKContext * q , float * decode_buffer , cook_gains * gains_ptr , float * previous_buffer , float * out ) {\n imlt_gain ( q , decode_buffer , gains_ptr , previous_buffer ) ;\n if ( out ) q -> saturate_output ( q , out ) ;\n }"}
{"idx": 10451, "target": 0, "func": "static int parse_CSort ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree _U_ , const char * fmt , ... ) {\n guint32 col , ord , ind ;\n proto_item * item ;\n proto_tree * tree ;\n const char * txt ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CSort , & item , txt ) ;\n col = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_cscort_column , tvb , offset , 4 , col ) ;\n offset += 4 ;\n ord = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_cscort_order , tvb , offset , 4 , ord ) ;\n offset += 4 ;\n ind = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_cscort_individual , tvb , offset , 4 , ind ) ;\n offset += 4 ;\n offset = parse_lcid ( tvb , offset , tree , \"lcid\" ) ;\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 10452, "target": 0, "func": "int evbuffer_remove ( struct evbuffer * buf , void * data , size_t datlen ) {\n size_t nread = datlen ;\n if ( nread >= buf -> off ) nread = buf -> off ;\n memcpy ( data , buf -> buffer , nread ) ;\n evbuffer_drain ( buf , nread ) ;\n return ( nread ) ;\n }"}
{"idx": 10453, "target": 1, "func": "static int vc1_decode_p_mb ( VC1Context * v ) {\n MpegEncContext * s = & v -> s ;\n GetBitContext * gb = & s -> gb ;\n int i , j ;\n int mb_pos = s -> mb_x + s -> mb_y * s -> mb_stride ;\n int cbp ;\n int mqdiff , mquant ;\n int ttmb = v -> ttfrm ;\n int mb_has_coeffs = 1 ;\n int dmv_x , dmv_y ;\n int index , index1 ;\n int val , sign ;\n int first_block = 1 ;\n int dst_idx , off ;\n int skipped , fourmv ;\n int block_cbp = 0 , pat , block_tt = 0 , block_intra = 0 ;\n mquant = v -> pq ;\n if ( v -> mv_type_is_raw ) fourmv = get_bits1 ( gb ) ;\n else fourmv = v -> mv_type_mb_plane [ mb_pos ] ;\n if ( v -> skip_is_raw ) skipped = get_bits1 ( gb ) ;\n else skipped = v -> s . mbskip_table [ mb_pos ] ;\n if ( ! fourmv ) {\n if ( ! skipped ) {\n GET_MVDATA ( dmv_x , dmv_y ) ;\n if ( s -> mb_intra ) {\n s -> current_picture . f . motion_val [ 1 ] [ s -> block_index [ 0 ] ] [ 0 ] = 0 ;\n s -> current_picture . f . motion_val [ 1 ] [ s -> block_index [ 0 ] ] [ 1 ] = 0 ;\n }\n s -> current_picture . f . mb_type [ mb_pos ] = s -> mb_intra ? MB_TYPE_INTRA : MB_TYPE_16x16 ;\n vc1_pred_mv ( v , 0 , dmv_x , dmv_y , 1 , v -> range_x , v -> range_y , v -> mb_type [ 0 ] , 0 , 0 ) ;\n if ( s -> mb_intra && ! mb_has_coeffs ) {\n GET_MQUANT ( ) ;\n s -> ac_pred = get_bits1 ( gb ) ;\n cbp = 0 ;\n }\n else if ( mb_has_coeffs ) {\n if ( s -> mb_intra ) s -> ac_pred = get_bits1 ( gb ) ;\n cbp = get_vlc2 ( & v -> s . gb , v -> cbpcy_vlc -> table , VC1_CBPCY_P_VLC_BITS , 2 ) ;\n GET_MQUANT ( ) ;\n }\n else {\n mquant = v -> pq ;\n cbp = 0 ;\n }\n s -> current_picture . f . qscale_table [ mb_pos ] = mquant ;\n if ( ! v -> ttmbf && ! s -> mb_intra && mb_has_coeffs ) ttmb = get_vlc2 ( gb , ff_vc1_ttmb_vlc [ v -> tt_index ] . table , VC1_TTMB_VLC_BITS , 2 ) ;\n if ( ! s -> mb_intra ) vc1_mc_1mv ( v , 0 ) ;\n dst_idx = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n s -> dc_val [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n dst_idx += i >> 2 ;\n val = ( ( cbp >> ( 5 - i ) ) & 1 ) ;\n off = ( i & 4 ) ? 0 : ( ( i & 1 ) * 8 + ( i & 2 ) * 4 * s -> linesize ) ;\n v -> mb_type [ 0 ] [ s -> block_index [ i ] ] = s -> mb_intra ;\n if ( s -> mb_intra ) {\n v -> a_avail = v -> c_avail = 0 ;\n if ( i == 2 || i == 3 || ! s -> first_slice_line ) v -> a_avail = v -> mb_type [ 0 ] [ s -> block_index [ i ] - s -> block_wrap [ i ] ] ;\n if ( i == 1 || i == 3 || s -> mb_x ) v -> c_avail = v -> mb_type [ 0 ] [ s -> block_index [ i ] - 1 ] ;\n vc1_decode_intra_block ( v , s -> block [ i ] , i , val , mquant , ( i & 4 ) ? v -> codingset2 : v -> codingset ) ;\n if ( ( i > 3 ) && ( s -> flags & CODEC_FLAG_GRAY ) ) continue ;\n v -> vc1dsp . vc1_inv_trans_8x8 ( s -> block [ i ] ) ;\n if ( v -> rangeredfrm ) for ( j = 0 ;\n j < 64 ;\n j ++ ) s -> block [ i ] [ j ] <<= 1 ;\n s -> dsp . put_signed_pixels_clamped ( s -> block [ i ] , s -> dest [ dst_idx ] + off , i & 4 ? s -> uvlinesize : s -> linesize ) ;\n if ( v -> pq >= 9 && v -> overlap ) {\n if ( v -> c_avail ) v -> vc1dsp . vc1_h_overlap ( s -> dest [ dst_idx ] + off , i & 4 ? s -> uvlinesize : s -> linesize ) ;\n if ( v -> a_avail ) v -> vc1dsp . vc1_v_overlap ( s -> dest [ dst_idx ] + off , i & 4 ? s -> uvlinesize : s -> linesize ) ;\n }\n block_cbp |= 0xF << ( i << 2 ) ;\n block_intra |= 1 << i ;\n }\n else if ( val ) {\n pat = vc1_decode_p_block ( v , s -> block [ i ] , i , mquant , ttmb , first_block , s -> dest [ dst_idx ] + off , ( i & 4 ) ? s -> uvlinesize : s -> linesize , ( i & 4 ) && ( s -> flags & CODEC_FLAG_GRAY ) , & block_tt ) ;\n block_cbp |= pat << ( i << 2 ) ;\n if ( ! v -> ttmbf && ttmb < 8 ) ttmb = - 1 ;\n first_block = 0 ;\n }\n }\n }\n else {\n s -> mb_intra = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n v -> mb_type [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n s -> dc_val [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n }\n s -> current_picture . f . mb_type [ mb_pos ] = MB_TYPE_SKIP ;\n s -> current_picture . f . qscale_table [ mb_pos ] = 0 ;\n vc1_pred_mv ( v , 0 , 0 , 0 , 1 , v -> range_x , v -> range_y , v -> mb_type [ 0 ] , 0 , 0 ) ;\n vc1_mc_1mv ( v , 0 ) ;\n }\n }\n else {\n if ( ! skipped ) {\n int intra_count = 0 , coded_inter = 0 ;\n int is_intra [ 6 ] , is_coded [ 6 ] ;\n cbp = get_vlc2 ( & v -> s . gb , v -> cbpcy_vlc -> table , VC1_CBPCY_P_VLC_BITS , 2 ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n val = ( ( cbp >> ( 5 - i ) ) & 1 ) ;\n s -> dc_val [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n s -> mb_intra = 0 ;\n if ( i < 4 ) {\n dmv_x = dmv_y = 0 ;\n s -> mb_intra = 0 ;\n mb_has_coeffs = 0 ;\n if ( val ) {\n GET_MVDATA ( dmv_x , dmv_y ) ;\n }\n vc1_pred_mv ( v , i , dmv_x , dmv_y , 0 , v -> range_x , v -> range_y , v -> mb_type [ 0 ] , 0 , 0 ) ;\n if ( ! s -> mb_intra ) vc1_mc_4mv_luma ( v , i , 0 ) ;\n intra_count += s -> mb_intra ;\n is_intra [ i ] = s -> mb_intra ;\n is_coded [ i ] = mb_has_coeffs ;\n }\n if ( i & 4 ) {\n is_intra [ i ] = ( intra_count >= 3 ) ;\n is_coded [ i ] = val ;\n }\n if ( i == 4 ) vc1_mc_4mv_chroma ( v , 0 ) ;\n v -> mb_type [ 0 ] [ s -> block_index [ i ] ] = is_intra [ i ] ;\n if ( ! coded_inter ) coded_inter = ! is_intra [ i ] & is_coded [ i ] ;\n }\n dst_idx = 0 ;\n if ( ! intra_count && ! coded_inter ) goto end ;\n GET_MQUANT ( ) ;\n s -> current_picture . f . qscale_table [ mb_pos ] = mquant ;\n {\n int intrapred = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) if ( is_intra [ i ] ) {\n if ( ( ( ! s -> first_slice_line || ( i == 2 || i == 3 ) ) && v -> mb_type [ 0 ] [ s -> block_index [ i ] - s -> block_wrap [ i ] ] ) || ( ( s -> mb_x || ( i == 1 || i == 3 ) ) && v -> mb_type [ 0 ] [ s -> block_index [ i ] - 1 ] ) ) {\n intrapred = 1 ;\n break ;\n }\n }\n if ( intrapred ) s -> ac_pred = get_bits1 ( gb ) ;\n else s -> ac_pred = 0 ;\n }\n if ( ! v -> ttmbf && coded_inter ) ttmb = get_vlc2 ( gb , ff_vc1_ttmb_vlc [ v -> tt_index ] . table , VC1_TTMB_VLC_BITS , 2 ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n dst_idx += i >> 2 ;\n off = ( i & 4 ) ? 0 : ( ( i & 1 ) * 8 + ( i & 2 ) * 4 * s -> linesize ) ;\n s -> mb_intra = is_intra [ i ] ;\n if ( is_intra [ i ] ) {\n v -> a_avail = v -> c_avail = 0 ;\n if ( i == 2 || i == 3 || ! s -> first_slice_line ) v -> a_avail = v -> mb_type [ 0 ] [ s -> block_index [ i ] - s -> block_wrap [ i ] ] ;\n if ( i == 1 || i == 3 || s -> mb_x ) v -> c_avail = v -> mb_type [ 0 ] [ s -> block_index [ i ] - 1 ] ;\n vc1_decode_intra_block ( v , s -> block [ i ] , i , is_coded [ i ] , mquant , ( i & 4 ) ? v -> codingset2 : v -> codingset ) ;\n if ( ( i > 3 ) && ( s -> flags & CODEC_FLAG_GRAY ) ) continue ;\n v -> vc1dsp . vc1_inv_trans_8x8 ( s -> block [ i ] ) ;\n if ( v -> rangeredfrm ) for ( j = 0 ;\n j < 64 ;\n j ++ ) s -> block [ i ] [ j ] <<= 1 ;\n s -> dsp . put_signed_pixels_clamped ( s -> block [ i ] , s -> dest [ dst_idx ] + off , ( i & 4 ) ? s -> uvlinesize : s -> linesize ) ;\n if ( v -> pq >= 9 && v -> overlap ) {\n if ( v -> c_avail ) v -> vc1dsp . vc1_h_overlap ( s -> dest [ dst_idx ] + off , i & 4 ? s -> uvlinesize : s -> linesize ) ;\n if ( v -> a_avail ) v -> vc1dsp . vc1_v_overlap ( s -> dest [ dst_idx ] + off , i & 4 ? s -> uvlinesize : s -> linesize ) ;\n }\n block_cbp |= 0xF << ( i << 2 ) ;\n block_intra |= 1 << i ;\n }\n else if ( is_coded [ i ] ) {\n pat = vc1_decode_p_block ( v , s -> block [ i ] , i , mquant , ttmb , first_block , s -> dest [ dst_idx ] + off , ( i & 4 ) ? s -> uvlinesize : s -> linesize , ( i & 4 ) && ( s -> flags & CODEC_FLAG_GRAY ) , & block_tt ) ;\n block_cbp |= pat << ( i << 2 ) ;\n if ( ! v -> ttmbf && ttmb < 8 ) ttmb = - 1 ;\n first_block = 0 ;\n }\n }\n }\n else {\n s -> mb_intra = 0 ;\n s -> current_picture . f . qscale_table [ mb_pos ] = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n v -> mb_type [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n s -> dc_val [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n }\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n vc1_pred_mv ( v , i , 0 , 0 , 0 , v -> range_x , v -> range_y , v -> mb_type [ 0 ] , 0 , 0 ) ;\n vc1_mc_4mv_luma ( v , i , 0 ) ;\n }\n vc1_mc_4mv_chroma ( v , 0 ) ;\n s -> current_picture . f . qscale_table [ mb_pos ] = 0 ;\n }\n }\n end : v -> cbp [ s -> mb_x ] = block_cbp ;\n v -> ttblk [ s -> mb_x ] = block_tt ;\n v -> is_intra [ s -> mb_x ] = block_intra ;\n return 0 ;\n }"}
{"idx": 10454, "target": 0, "func": "static void dumpcffnames ( SplineFont * sf , FILE * cfff ) {\n char * pt ;\n putshort ( cfff , 1 ) ;\n putc ( '\\1' , cfff ) ;\n putc ( '\\1' , cfff ) ;\n putc ( '\\1' + strlen ( sf -> fontname ) , cfff ) ;\n for ( pt = sf -> fontname ;\n * pt ;\n ++ pt ) putc ( * pt , cfff ) ;\n }"}
{"idx": 10455, "target": 1, "func": "xmlLinkPtr xmlListEnd ( xmlListPtr l ) {\n if ( l == NULL ) return ( NULL ) ;\n return ( l -> sentinel -> prev ) ;\n }"}
{"idx": 10456, "target": 0, "func": "size_t WriteStr ( ArchiveHandle * AH , const char * c ) {\n size_t res ;\n if ( c ) {\n int len = strlen ( c ) ;\n res = WriteInt ( AH , len ) ;\n ( * AH -> WriteBufPtr ) ( AH , c , len ) ;\n res += len ;\n }\n else res = WriteInt ( AH , - 1 ) ;\n return res ;\n }"}
{"idx": 10457, "target": 0, "func": "static void update_alt_ref_frame_stats ( VP9_COMP * cpi ) {\n RATE_CONTROL * const rc = & cpi -> rc ;\n rc -> frames_since_golden = 0 ;\n rc -> source_alt_ref_pending = 0 ;\n rc -> source_alt_ref_active = 1 ;\n }"}
{"idx": 10458, "target": 0, "func": "static int wma_decode_superframe ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n WMACodecContext * s = avctx -> priv_data ;\n int nb_frames , bit_offset , i , pos , len , ret ;\n uint8_t * q ;\n float * * samples ;\n int samples_offset ;\n tprintf ( avctx , \"***decode_superframe:\\n\" ) ;\n if ( buf_size == 0 ) {\n s -> last_superframe_len = 0 ;\n return 0 ;\n }\n if ( buf_size < avctx -> block_align ) {\n av_log ( avctx , AV_LOG_ERROR , \"Input packet size too small (%d < %d)\\n\" , buf_size , avctx -> block_align ) ;\n return AVERROR_INVALIDDATA ;\n }\n buf_size = avctx -> block_align ;\n init_get_bits ( & s -> gb , buf , buf_size * 8 ) ;\n if ( s -> use_bit_reservoir ) {\n skip_bits ( & s -> gb , 4 ) ;\n nb_frames = get_bits ( & s -> gb , 4 ) - ( s -> last_superframe_len <= 0 ) ;\n }\n else {\n nb_frames = 1 ;\n }\n frame -> nb_samples = nb_frames * s -> frame_len ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n samples = ( float * * ) frame -> extended_data ;\n samples_offset = 0 ;\n if ( s -> use_bit_reservoir ) {\n bit_offset = get_bits ( & s -> gb , s -> byte_offset_bits + 3 ) ;\n if ( bit_offset > get_bits_left ( & s -> gb ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid last frame bit offset %d > buf size %d (%d)\\n\" , bit_offset , get_bits_left ( & s -> gb ) , buf_size ) ;\n goto fail ;\n }\n if ( s -> last_superframe_len > 0 ) {\n if ( ( s -> last_superframe_len + ( ( bit_offset + 7 ) >> 3 ) ) > MAX_CODED_SUPERFRAME_SIZE ) goto fail ;\n q = s -> last_superframe + s -> last_superframe_len ;\n len = bit_offset ;\n while ( len > 7 ) {\n * q ++ = ( get_bits ) ( & s -> gb , 8 ) ;\n len -= 8 ;\n }\n if ( len > 0 ) {\n * q ++ = ( get_bits ) ( & s -> gb , len ) << ( 8 - len ) ;\n }\n memset ( q , 0 , FF_INPUT_BUFFER_PADDING_SIZE ) ;\n init_get_bits ( & s -> gb , s -> last_superframe , s -> last_superframe_len * 8 + bit_offset ) ;\n if ( s -> last_bitoffset > 0 ) skip_bits ( & s -> gb , s -> last_bitoffset ) ;\n if ( wma_decode_frame ( s , samples , samples_offset ) < 0 ) goto fail ;\n samples_offset += s -> frame_len ;\n nb_frames -- ;\n }\n pos = bit_offset + 4 + 4 + s -> byte_offset_bits + 3 ;\n if ( pos >= MAX_CODED_SUPERFRAME_SIZE * 8 || pos > buf_size * 8 ) return AVERROR_INVALIDDATA ;\n init_get_bits ( & s -> gb , buf + ( pos >> 3 ) , ( buf_size - ( pos >> 3 ) ) * 8 ) ;\n len = pos & 7 ;\n if ( len > 0 ) skip_bits ( & s -> gb , len ) ;\n s -> reset_block_lengths = 1 ;\n for ( i = 0 ;\n i < nb_frames ;\n i ++ ) {\n if ( wma_decode_frame ( s , samples , samples_offset ) < 0 ) goto fail ;\n samples_offset += s -> frame_len ;\n }\n pos = get_bits_count ( & s -> gb ) + ( ( bit_offset + 4 + 4 + s -> byte_offset_bits + 3 ) & ~ 7 ) ;\n s -> last_bitoffset = pos & 7 ;\n pos >>= 3 ;\n len = buf_size - pos ;\n if ( len > MAX_CODED_SUPERFRAME_SIZE || len < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"len %d invalid\\n\" , len ) ;\n goto fail ;\n }\n s -> last_superframe_len = len ;\n memcpy ( s -> last_superframe , buf + pos , len ) ;\n }\n else {\n if ( wma_decode_frame ( s , samples , samples_offset ) < 0 ) goto fail ;\n samples_offset += s -> frame_len ;\n }\n av_dlog ( s -> avctx , \"%d %d %d %d outbytes:%td eaten:%d\\n\" , s -> frame_len_bits , s -> block_len_bits , s -> frame_len , s -> block_len , ( int8_t * ) samples - ( int8_t * ) data , avctx -> block_align ) ;\n * got_frame_ptr = 1 ;\n return avctx -> block_align ;\n fail : s -> last_superframe_len = 0 ;\n return - 1 ;\n }"}
{"idx": 10459, "target": 0, "func": "static tvbuff_t * remove_markers ( tvbuff_t * tvb , packet_info * pinfo , guint32 marker_offset , guint32 num_markers , guint32 orig_length ) {\n guint8 * mfree_buff = NULL ;\n guint32 mfree_buff_length , tot_copy , cur_copy ;\n guint32 source_offset ;\n tvbuff_t * mfree_tvb = NULL ;\n DISSECTOR_ASSERT ( num_markers > 0 ) ;\n DISSECTOR_ASSERT ( orig_length > MPA_MARKER_LEN * num_markers ) ;\n DISSECTOR_ASSERT ( tvb_captured_length ( tvb ) == orig_length ) ;\n mfree_buff_length = orig_length - ( MPA_MARKER_LEN * num_markers ) ;\n mfree_buff = ( guint8 * ) wmem_alloc ( pinfo -> pool , mfree_buff_length ) ;\n tot_copy = 0 ;\n source_offset = 0 ;\n cur_copy = marker_offset ;\n while ( tot_copy < mfree_buff_length ) {\n tvb_memcpy ( tvb , mfree_buff + tot_copy , source_offset , cur_copy ) ;\n tot_copy += cur_copy ;\n source_offset += cur_copy + MPA_MARKER_LEN ;\n cur_copy = MIN ( MPA_MARKER_INTERVAL , ( mfree_buff_length - tot_copy ) ) ;\n }\n mfree_tvb = tvb_new_child_real_data ( tvb , mfree_buff , mfree_buff_length , mfree_buff_length ) ;\n add_new_data_source ( pinfo , mfree_tvb , \"FPDU without Markers\" ) ;\n return mfree_tvb ;\n }"}
{"idx": 10460, "target": 0, "func": "void cpu_check_irqs ( CPUSPARCState * env ) {\n CPUState * cs ;\n if ( env -> pil_in && ( env -> interrupt_index == 0 || ( env -> interrupt_index & ~ 15 ) == TT_EXTINT ) ) {\n unsigned int i ;\n for ( i = 15 ;\n i > 0 ;\n i -- ) {\n if ( env -> pil_in & ( 1 << i ) ) {\n int old_interrupt = env -> interrupt_index ;\n env -> interrupt_index = TT_EXTINT | i ;\n if ( old_interrupt != env -> interrupt_index ) {\n cs = CPU ( sparc_env_get_cpu ( env ) ) ;\n trace_sun4m_cpu_interrupt ( i ) ;\n cpu_interrupt ( cs , CPU_INTERRUPT_HARD ) ;\n }\n break ;\n }\n }\n }\n else if ( ! env -> pil_in && ( env -> interrupt_index & ~ 15 ) == TT_EXTINT ) {\n cs = CPU ( sparc_env_get_cpu ( env ) ) ;\n trace_sun4m_cpu_reset_interrupt ( env -> interrupt_index & 15 ) ;\n env -> interrupt_index = 0 ;\n cpu_reset_interrupt ( cs , CPU_INTERRUPT_HARD ) ;\n }\n }"}
{"idx": 10461, "target": 0, "func": "static int dissect_pcp_message_start ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , int offset ) {\n proto_item * pcp_start_item ;\n proto_tree * pcp_start_tree ;\n guint32 status ;\n pcp_start_item = proto_tree_add_item ( tree , hf_pcp_start , tvb , 0 , - 1 , ENC_NA ) ;\n pcp_start_tree = proto_item_add_subtree ( pcp_start_item , ett_pcp ) ;\n col_append_str ( pinfo -> cinfo , COL_INFO , \"[START]\" ) ;\n status = tvb_get_ntohl ( tvb , offset ) ;\n proto_tree_add_item ( pcp_start_tree , hf_pcp_start_status , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n if ( tvb_reported_length_remaining ( tvb , offset ) == 0 ) {\n if ( status == PCP_SECURE_ACK_SUCCESSFUL ) {\n expert_add_info ( pinfo , tree , & ei_pcp_ssl_upgrade ) ;\n ssl_starttls_ack ( find_dissector ( \"ssl\" ) , pinfo , pcp_handle ) ;\n }\n else {\n expert_add_info ( pinfo , tree , & ei_pcp_ssl_upgrade_failed ) ;\n }\n }\n else {\n proto_tree_add_item ( pcp_start_tree , hf_pcp_start_zero , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( pcp_start_tree , hf_pcp_start_version , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset += 1 ;\n proto_tree_add_item ( pcp_start_tree , hf_pcp_start_licensed , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset += 1 ;\n offset = dissect_pcp_partial_features ( tvb , pinfo , pcp_start_tree , offset ) ;\n }\n return offset ;\n }"}
{"idx": 10462, "target": 0, "func": "static void DeleteDecoder ( decoder_t * p_dec ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n msg_Dbg ( p_dec , \"killing decoder fourcc `%4.4s', %u PES in FIFO\" , ( char * ) & p_dec -> fmt_in . i_codec , ( unsigned ) block_FifoCount ( p_owner -> p_fifo ) ) ;\n block_FifoEmpty ( p_owner -> p_fifo ) ;\n block_FifoRelease ( p_owner -> p_fifo ) ;\n if ( p_owner -> p_aout ) {\n aout_DecFlush ( p_owner -> p_aout ) ;\n aout_DecDelete ( p_owner -> p_aout ) ;\n input_resource_PutAout ( p_owner -> p_resource , p_owner -> p_aout ) ;\n if ( p_owner -> p_input != NULL ) input_SendEventAout ( p_owner -> p_input ) ;\n }\n if ( p_owner -> p_vout ) {\n vout_Reset ( p_owner -> p_vout ) ;\n input_resource_RequestVout ( p_owner -> p_resource , p_owner -> p_vout , NULL , 0 , true ) ;\n if ( p_owner -> p_input != NULL ) input_SendEventVout ( p_owner -> p_input ) ;\n }\n # ifdef ENABLE_SOUT if ( p_owner -> p_sout_input ) {\n sout_InputDelete ( p_owner -> p_sout_input ) ;\n es_format_Clean ( & p_owner -> sout ) ;\n }\n # endif if ( p_dec -> fmt_out . i_cat == SPU_ES ) {\n vout_thread_t * p_vout = input_resource_HoldVout ( p_owner -> p_resource ) ;\n if ( p_vout ) {\n if ( p_owner -> p_spu_vout == p_vout ) vout_FlushSubpictureChannel ( p_vout , p_owner -> i_spu_channel ) ;\n vlc_object_release ( p_vout ) ;\n }\n }\n es_format_Clean ( & p_dec -> fmt_in ) ;\n es_format_Clean ( & p_dec -> fmt_out ) ;\n if ( p_dec -> p_description ) vlc_meta_Delete ( p_dec -> p_description ) ;\n es_format_Clean ( & p_owner -> fmt_description ) ;\n if ( p_owner -> p_description ) vlc_meta_Delete ( p_owner -> p_description ) ;\n if ( p_owner -> p_packetizer ) {\n module_unneed ( p_owner -> p_packetizer , p_owner -> p_packetizer -> p_module ) ;\n es_format_Clean ( & p_owner -> p_packetizer -> fmt_in ) ;\n es_format_Clean ( & p_owner -> p_packetizer -> fmt_out ) ;\n if ( p_owner -> p_packetizer -> p_description ) vlc_meta_Delete ( p_owner -> p_packetizer -> p_description ) ;\n vlc_object_release ( p_owner -> p_packetizer ) ;\n }\n vlc_cond_destroy ( & p_owner -> wait_acknowledge ) ;\n vlc_cond_destroy ( & p_owner -> wait_request ) ;\n vlc_mutex_destroy ( & p_owner -> lock ) ;\n vlc_object_release ( p_dec ) ;\n free ( p_owner ) ;\n }"}
{"idx": 10463, "target": 0, "func": "MPI # ifdef M_DEBUG mpi_debug_alloc_secure ( unsigned nlimbs , const char * info ) # else mpi_alloc_secure ( unsigned nlimbs ) # endif {\n MPI a ;\n if ( DBG_MEMORY ) log_debug ( \"mpi_alloc_secure(%u)\\n\" , nlimbs * BITS_PER_MPI_LIMB ) ;\n # ifdef M_DEBUG a = m_debug_alloc ( sizeof * a , info ) ;\n a -> d = nlimbs ? mpi_debug_alloc_limb_space ( nlimbs , 1 , info ) : NULL ;\n # else a = xmalloc ( sizeof * a ) ;\n a -> d = nlimbs ? mpi_alloc_limb_space ( nlimbs , 1 ) : NULL ;\n # endif a -> alloced = nlimbs ;\n a -> flags = 1 ;\n a -> nlimbs = 0 ;\n a -> sign = 0 ;\n a -> nbits = 0 ;\n return a ;\n }"}
{"idx": 10464, "target": 0, "func": "static void dissect_mode_byte ( proto_tree * tree , tvbuff_t * tvb , int offset , packet_info * pinfo ) {\n proto_item * mode_item , * run_idle_item , * tbd_item , * tbd2_item ;\n proto_tree * mode_tree ;\n guint8 mode_byte ;\n mode_byte = tvb_get_guint8 ( tvb , offset ) ;\n mode_item = proto_tree_add_item ( tree , hf_cipsafety_mode_byte , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n mode_tree = proto_item_add_subtree ( mode_item , ett_cipsafety_mode_byte ) ;\n proto_tree_add_item ( mode_tree , hf_cipsafety_mode_byte_ping_count , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( mode_tree , hf_cipsafety_mode_byte_not_tbd , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( mode_tree , hf_cipsafety_mode_byte_tbd_2_copy , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( mode_tree , hf_cipsafety_mode_byte_not_run_idle , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n tbd_item = proto_tree_add_item ( mode_tree , hf_cipsafety_mode_byte_tbd , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n tbd2_item = proto_tree_add_item ( mode_tree , hf_cipsafety_mode_byte_tbd_2_bit , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n run_idle_item = proto_tree_add_item ( mode_tree , hf_cipsafety_mode_byte_run_idle , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n if ( ( ( ( mode_byte & 0x20 ) >> 5 ) & 0x01 ) == ( ( ( mode_byte & 0x04 ) >> 2 ) & 0x01 ) ) expert_add_info ( pinfo , tbd_item , & ei_cipsafety_tbd2_not_complemented ) ;\n if ( ( ( ( mode_byte & 0x40 ) >> 6 ) & 0x01 ) != ( ( ( mode_byte & 0x08 ) >> 3 ) & 0x01 ) ) expert_add_info ( pinfo , tbd2_item , & ei_cipsafety_tbd_not_copied ) ;\n if ( ( ( ( mode_byte & 0x80 ) >> 7 ) & 0x01 ) == ( ( ( mode_byte & 0x10 ) >> 4 ) & 0x01 ) ) expert_add_info ( pinfo , run_idle_item , & ei_cipsafety_run_idle_not_complemented ) ;\n }"}
{"idx": 10465, "target": 0, "func": "int dissect_ber_tagged_type ( gboolean implicit_tag , asn1_ctx_t * actx , proto_tree * tree , tvbuff_t * tvb , int offset , gint hf_id , gint8 tag_cls , gint32 tag_tag , gboolean tag_impl , ber_type_fn type ) {\n gint8 tmp_cls ;\n gint32 tmp_tag ;\n guint32 tmp_len ;\n tvbuff_t * next_tvb = tvb ;\n proto_item * cause ;\n # ifdef DEBUG_BER {\n const char * name ;\n header_field_info * hfinfo ;\n if ( hf_id >= 0 ) {\n hfinfo = proto_registrar_get_nth ( hf_id ) ;\n name = hfinfo -> name ;\n }\n else {\n name = \"unnamed\" ;\n }\n if ( tvb_reported_length_remaining ( tvb , offset ) > 3 ) {\n printf ( \"dissect_ber_tagged_type(%s) entered implicit_tag:%d offset:%d len:%d %02x:%02x:%02x\\n\" , name , implicit_tag , offset , tvb_reported_length_remaining ( tvb , offset ) , tvb_get_guint8 ( tvb , offset ) , tvb_get_guint8 ( tvb , offset + 1 ) , tvb_get_guint8 ( tvb , offset + 2 ) ) ;\n }\n else {\n printf ( \"dissect_ber_tagged_type(%s) entered\\n\" , name ) ;\n }\n }\n # endif if ( implicit_tag ) {\n offset = type ( tag_impl , tvb , offset , actx , tree , hf_id ) ;\n return offset ;\n }\n offset = dissect_ber_identifier ( actx -> pinfo , tree , tvb , offset , & tmp_cls , NULL , & tmp_tag ) ;\n offset = dissect_ber_length ( actx -> pinfo , tree , tvb , offset , & tmp_len , NULL ) ;\n if ( ( tmp_cls != tag_cls ) || ( tmp_tag != tag_tag ) ) {\n cause = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset , tmp_len , \"wrong_tag\" , \"Wrong tag in tagged type - expected class:%s(%d) tag:%d (%s) but found class:%s(%d) tag:%d\" , val_to_str_const ( tag_cls , ber_class_codes , \"Unknown\" ) , tag_cls , tag_tag , val_to_str_ext_const ( tag_tag , & ber_uni_tag_codes_ext , \"Unknown\" ) , val_to_str_const ( tmp_cls , ber_class_codes , \"Unknown\" ) , tmp_cls , tmp_tag ) ;\n expert_add_info ( actx -> pinfo , cause , & ei_ber_wrong_tag_in_tagged_type ) ;\n }\n if ( tag_impl ) {\n next_tvb = ber_tvb_new_subset_length ( tvb , offset , tmp_len ) ;\n type ( tag_impl , next_tvb , 0 , actx , tree , hf_id ) ;\n offset += tmp_len ;\n }\n else {\n offset = type ( tag_impl , tvb , offset , actx , tree , hf_id ) ;\n }\n return offset ;\n }"}
{"idx": 10466, "target": 0, "func": "static XMLRPCCmd * createXMLCommand ( const char * name , XMLRPCMethodFunc func ) {\n XMLRPCCmd * xml = NULL ;\n xml = smalloc ( sizeof ( XMLRPCCmd ) ) ;\n xml -> name = sstrdup ( name ) ;\n xml -> func = func ;\n xml -> mod_name = NULL ;\n xml -> core = 0 ;\n xml -> next = NULL ;\n return xml ;\n }"}
{"idx": 10467, "target": 0, "func": "static void pitch_sharpening ( AMRWBContext * ctx , float * fixed_vector ) {\n int i ;\n for ( i = AMRWB_SFR_SIZE - 1 ;\n i != 0 ;\n i -- ) fixed_vector [ i ] -= fixed_vector [ i - 1 ] * ctx -> tilt_coef ;\n for ( i = ctx -> pitch_lag_int ;\n i < AMRWB_SFR_SIZE ;\n i ++ ) fixed_vector [ i ] += fixed_vector [ i - ctx -> pitch_lag_int ] * 0.85 ;\n }"}
{"idx": 10468, "target": 1, "func": "void mpi_set_ui ( MPI w , unsigned long u ) {\n RESIZE_IF_NEEDED ( w , 1 ) ;\n w -> d [ 0 ] = u ;\n w -> nlimbs = u ? 1 : 0 ;\n w -> sign = 0 ;\n w -> nbits = 0 ;\n w -> flags = 0 ;\n }"}
{"idx": 10469, "target": 0, "func": "static void restrict_update_of_old_passwords_var ( THD * thd , enum_var_type var_type ) {\n if ( var_type == OPT_GLOBAL ) {\n pthread_mutex_lock ( & LOCK_global_system_variables ) ;\n global_system_variables . old_passwords = 1 ;\n pthread_mutex_unlock ( & LOCK_global_system_variables ) ;\n }\n else thd -> variables . old_passwords = 1 ;\n }"}
{"idx": 10470, "target": 0, "func": "void SSL3_RECORD_release ( SSL3_RECORD * r , unsigned int num_recs ) {\n unsigned int i ;\n for ( i = 0 ;\n i < num_recs ;\n i ++ ) {\n OPENSSL_free ( r [ i ] . comp ) ;\n r [ i ] . comp = NULL ;\n }\n }"}
{"idx": 10471, "target": 0, "func": "static void export_pamenv ( void ) {\n char * * env ;\n env = pam_getenvlist ( pamh ) ;\n while ( env && * env ) {\n if ( putenv ( * env ) != 0 ) err ( EXIT_FAILURE , NULL ) ;\n env ++ ;\n }\n }"}
{"idx": 10472, "target": 0, "func": "int vp9_diamond_search_sad_c ( const MACROBLOCK * x , const search_site_config * cfg , MV * ref_mv , MV * best_mv , int search_param , int sad_per_bit , int * num00 , const vp9_variance_fn_ptr_t * fn_ptr , const MV * center_mv ) {\n int i , j , step ;\n const MACROBLOCKD * const xd = & x -> e_mbd ;\n uint8_t * what = x -> plane [ 0 ] . src . buf ;\n const int what_stride = x -> plane [ 0 ] . src . stride ;\n const uint8_t * in_what ;\n const int in_what_stride = xd -> plane [ 0 ] . pre [ 0 ] . stride ;\n const uint8_t * best_address ;\n unsigned int bestsad = INT_MAX ;\n int best_site = 0 ;\n int last_site = 0 ;\n int ref_row ;\n int ref_col ;\n const search_site * ss = & cfg -> ss [ search_param * cfg -> searches_per_step ] ;\n const int tot_steps = ( cfg -> ss_count / cfg -> searches_per_step ) - search_param ;\n const MV fcenter_mv = {\n center_mv -> row >> 3 , center_mv -> col >> 3 }\n ;\n clamp_mv ( ref_mv , x -> mv_col_min , x -> mv_col_max , x -> mv_row_min , x -> mv_row_max ) ;\n ref_row = ref_mv -> row ;\n ref_col = ref_mv -> col ;\n * num00 = 0 ;\n best_mv -> row = ref_row ;\n best_mv -> col = ref_col ;\n in_what = xd -> plane [ 0 ] . pre [ 0 ] . buf + ref_row * in_what_stride + ref_col ;\n best_address = in_what ;\n bestsad = fn_ptr -> sdf ( what , what_stride , in_what , in_what_stride ) + mvsad_err_cost ( x , best_mv , & fcenter_mv , sad_per_bit ) ;\n i = 1 ;\n for ( step = 0 ;\n step < tot_steps ;\n step ++ ) {\n int all_in = 1 , t ;\n all_in &= ( ( best_mv -> row + ss [ i ] . mv . row ) > x -> mv_row_min ) ;\n all_in &= ( ( best_mv -> row + ss [ i + 1 ] . mv . row ) < x -> mv_row_max ) ;\n all_in &= ( ( best_mv -> col + ss [ i + 2 ] . mv . col ) > x -> mv_col_min ) ;\n all_in &= ( ( best_mv -> col + ss [ i + 3 ] . mv . col ) < x -> mv_col_max ) ;\n if ( all_in ) {\n unsigned int sad_array [ 4 ] ;\n for ( j = 0 ;\n j < cfg -> searches_per_step ;\n j += 4 ) {\n unsigned char const * block_offset [ 4 ] ;\n for ( t = 0 ;\n t < 4 ;\n t ++ ) block_offset [ t ] = ss [ i + t ] . offset + best_address ;\n fn_ptr -> sdx4df ( what , what_stride , block_offset , in_what_stride , sad_array ) ;\n for ( t = 0 ;\n t < 4 ;\n t ++ , i ++ ) {\n if ( sad_array [ t ] < bestsad ) {\n const MV this_mv = {\n best_mv -> row + ss [ i ] . mv . row , best_mv -> col + ss [ i ] . mv . col }\n ;\n sad_array [ t ] += mvsad_err_cost ( x , & this_mv , & fcenter_mv , sad_per_bit ) ;\n if ( sad_array [ t ] < bestsad ) {\n bestsad = sad_array [ t ] ;\n best_site = i ;\n }\n }\n }\n }\n }\n else {\n for ( j = 0 ;\n j < cfg -> searches_per_step ;\n j ++ ) {\n const MV this_mv = {\n best_mv -> row + ss [ i ] . mv . row , best_mv -> col + ss [ i ] . mv . col }\n ;\n if ( is_mv_in ( x , & this_mv ) ) {\n const uint8_t * const check_here = ss [ i ] . offset + best_address ;\n unsigned int thissad = fn_ptr -> sdf ( what , what_stride , check_here , in_what_stride ) ;\n if ( thissad < bestsad ) {\n thissad += mvsad_err_cost ( x , & this_mv , & fcenter_mv , sad_per_bit ) ;\n if ( thissad < bestsad ) {\n bestsad = thissad ;\n best_site = i ;\n }\n }\n }\n i ++ ;\n }\n }\n if ( best_site != last_site ) {\n best_mv -> row += ss [ best_site ] . mv . row ;\n best_mv -> col += ss [ best_site ] . mv . col ;\n best_address += ss [ best_site ] . offset ;\n last_site = best_site ;\n # if defined ( NEW_DIAMOND_SEARCH ) while ( 1 ) {\n const MV this_mv = {\n best_mv -> row + ss [ best_site ] . mv . row , best_mv -> col + ss [ best_site ] . mv . col }\n ;\n if ( is_mv_in ( x , & this_mv ) ) {\n const uint8_t * const check_here = ss [ best_site ] . offset + best_address ;\n unsigned int thissad = fn_ptr -> sdf ( what , what_stride , check_here , in_what_stride ) ;\n if ( thissad < bestsad ) {\n thissad += mvsad_err_cost ( x , & this_mv , & fcenter_mv , sad_per_bit ) ;\n if ( thissad < bestsad ) {\n bestsad = thissad ;\n best_mv -> row += ss [ best_site ] . mv . row ;\n best_mv -> col += ss [ best_site ] . mv . col ;\n best_address += ss [ best_site ] . offset ;\n continue ;\n }\n }\n }\n break ;\n }\n ;\n # endif }\n else if ( best_address == in_what ) {\n ( * num00 ) ++ ;\n }\n }\n return bestsad ;\n }"}
{"idx": 10473, "target": 0, "func": "static gint64 steamdiscover_dissect_header ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , gint offset , gint bytes_left ) {\n gint len ;\n gint64 value ;\n gint64 msg_type = - 1 ;\n protobuf_desc_t pb = {\n tvb , offset , bytes_left }\n ;\n protobuf_tag_t tag = {\n 0 , 0 , 0 }\n ;\n while ( protobuf_iter_next ( & pb , & tag ) ) {\n switch ( tag . field_number ) {\n case STEAMDISCOVER_FN_HEADER_CLIENTID : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_uint64 ( tree , hf_steam_ihs_discovery_header_clientid , pb . tvb , pb . offset , len , ( guint64 ) value ) ;\n break ;\n case STEAMDISCOVER_FN_HEADER_MSGTYPE : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n msg_type = value ;\n proto_tree_add_uint64 ( tree , hf_steam_ihs_discovery_header_msgtype , pb . tvb , pb . offset , len , ( guint64 ) value ) ;\n break ;\n case STEAMDISCOVER_FN_HEADER_INSTANCEID : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_uint64 ( tree , hf_steam_ihs_discovery_header_instanceid , pb . tvb , pb . offset , len , ( guint64 ) value ) ;\n break ;\n default : len = protobuf_dissect_unknown_field ( & pb , & tag , pinfo , tree , NULL ) ;\n break ;\n }\n protobuf_seek_forward ( & pb , len ) ;\n }\n return msg_type ;\n }"}
{"idx": 10474, "target": 0, "func": "static ossl_inline type * lh_ ## type ## _delete ( LHASH_OF ( type ) * lh , const type * d ) {\n return ( type * ) OPENSSL_LH_delete ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline type * lh_ ## type ## _retrieve ( LHASH_OF ( type ) * lh , const type * d ) {\n return ( type * ) OPENSSL_LH_retrieve ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline int lh_ ## type ## _error ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_error ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _num_items ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_num_items ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _node_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _node_usage_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_usage_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING ) ;\n # ifdef _MSC_VER # pragma warning ( push ) # pragma warning ( disable : 4090 ) # endif DEFINE_LHASH_OF ( OPENSSL_CSTRING )"}
{"idx": 10475, "target": 0, "func": "void CommitTransaction ( Archive * AHX ) {\n ArchiveHandle * AH = ( ArchiveHandle * ) AHX ;\n ExecuteSqlCommand ( AH , \"COMMIT\" , \"could not commit database transaction\" ) ;\n }"}
{"idx": 10476, "target": 0, "func": "static inline struct link_map * find_needed ( const char * name ) {\n struct r_scope_elem * scope = & GL ( dl_ns ) [ LM_ID_BASE ] . _ns_loaded -> l_searchlist ;\n unsigned int n = scope -> r_nlist ;\n while ( n -- > 0 ) if ( _dl_name_match_p ( name , scope -> r_list [ n ] ) ) return scope -> r_list [ n ] ;\n return NULL ;\n }"}
{"idx": 10477, "target": 0, "func": "static inline void pxa2xx_rtc_int_update ( PXA2xxRTCState * s ) {\n qemu_set_irq ( s -> rtc_irq , ! ! ( s -> rtsr & 0x2553 ) ) ;\n }"}
{"idx": 10478, "target": 0, "func": "void do_device_del ( Monitor * mon , const QDict * qdict ) {\n const char * id = qdict_get_str ( qdict , \"id\" ) ;\n DeviceState * dev ;\n dev = qdev_find_recursive ( main_system_bus , id ) ;\n if ( NULL == dev ) {\n qemu_error ( \"Device '%s' not found\\n\" , id ) ;\n return ;\n }\n qdev_unplug ( dev ) ;\n }"}
{"idx": 10479, "target": 0, "func": "void ff_mpeg_flush ( AVCodecContext * avctx ) {\n int i ;\n MpegEncContext * s = avctx -> priv_data ;\n if ( s == NULL || s -> picture == NULL ) return ;\n for ( i = 0 ;\n i < MAX_PICTURE_COUNT ;\n i ++ ) ff_mpeg_unref_picture ( s , & s -> picture [ i ] ) ;\n s -> current_picture_ptr = s -> last_picture_ptr = s -> next_picture_ptr = NULL ;\n s -> mb_x = s -> mb_y = 0 ;\n s -> parse_context . state = - 1 ;\n s -> parse_context . frame_start_found = 0 ;\n s -> parse_context . overread = 0 ;\n s -> parse_context . overread_index = 0 ;\n s -> parse_context . index = 0 ;\n s -> parse_context . last_index = 0 ;\n s -> bitstream_buffer_size = 0 ;\n s -> pp_time = 0 ;\n }"}
{"idx": 10480, "target": 0, "func": "void PNGAPI png_set_oFFs ( png_structp png_ptr , png_infop info_ptr , png_int_32 offset_x , png_int_32 offset_y , int unit_type ) {\n png_debug1 ( 1 , \"in %s storage function\" , \"oFFs\" ) ;\n if ( png_ptr == NULL || info_ptr == NULL ) return ;\n info_ptr -> x_offset = offset_x ;\n info_ptr -> y_offset = offset_y ;\n info_ptr -> offset_unit_type = ( png_byte ) unit_type ;\n info_ptr -> valid |= PNG_INFO_oFFs ;\n }"}
{"idx": 10481, "target": 0, "func": "TEST_F ( BrowsingDataRemoverImplTest , RemoveQuotaManagedDataForeverOnlyTemporary ) {\n # if BUILDFLAG ( ENABLE_EXTENSIONS ) CreateMockPolicy ( ) ;\n # endif BlockUntilBrowsingDataRemoved ( base : : Time ( ) , base : : Time : : Max ( ) , BrowsingDataRemover : : REMOVE_FILE_SYSTEMS | BrowsingDataRemover : : REMOVE_WEBSQL | BrowsingDataRemover : : REMOVE_APPCACHE | BrowsingDataRemover : : REMOVE_SERVICE_WORKERS | BrowsingDataRemover : : REMOVE_CACHE_STORAGE | BrowsingDataRemover : : REMOVE_INDEXEDDB , false ) ;\n EXPECT_EQ ( BrowsingDataRemover : : REMOVE_FILE_SYSTEMS | BrowsingDataRemover : : REMOVE_WEBSQL | BrowsingDataRemover : : REMOVE_APPCACHE | BrowsingDataRemover : : REMOVE_SERVICE_WORKERS | BrowsingDataRemover : : REMOVE_CACHE_STORAGE | BrowsingDataRemover : : REMOVE_INDEXEDDB , GetRemovalMask ( ) ) ;\n EXPECT_EQ ( BrowsingDataHelper : : UNPROTECTED_WEB , GetOriginTypeMask ( ) ) ;\n StoragePartitionRemovalData removal_data = GetStoragePartitionRemovalData ( ) ;\n EXPECT_EQ ( removal_data . remove_mask , StoragePartition : : REMOVE_DATA_MASK_FILE_SYSTEMS | StoragePartition : : REMOVE_DATA_MASK_WEBSQL | StoragePartition : : REMOVE_DATA_MASK_APPCACHE | StoragePartition : : REMOVE_DATA_MASK_SERVICE_WORKERS | StoragePartition : : REMOVE_DATA_MASK_CACHE_STORAGE | StoragePartition : : REMOVE_DATA_MASK_INDEXEDDB ) ;\n EXPECT_EQ ( removal_data . quota_storage_remove_mask , StoragePartition : : QUOTA_MANAGED_STORAGE_MASK_ALL ) ;\n EXPECT_TRUE ( removal_data . origin_matcher . Run ( kOrigin1 , mock_policy ( ) ) ) ;\n EXPECT_TRUE ( removal_data . origin_matcher . Run ( kOrigin2 , mock_policy ( ) ) ) ;\n EXPECT_TRUE ( removal_data . origin_matcher . Run ( kOrigin3 , mock_policy ( ) ) ) ;\n }"}
{"idx": 10482, "target": 0, "func": "int mysql_real_query_for_lazy ( const char * buf , int length ) {\n for ( uint retry = 0 ;\n ;\n retry ++ ) {\n int error ;\n if ( ! mysql_real_query ( & mysql , buf , length ) ) return 0 ;\n error = put_error ( & mysql ) ;\n if ( mysql_errno ( & mysql ) != CR_SERVER_GONE_ERROR || retry > 1 || ! opt_reconnect ) return error ;\n if ( reconnect ( ) ) return error ;\n }\n }"}
{"idx": 10483, "target": 0, "func": "static void PREP_io_write ( void * opaque , uint32_t addr , uint32_t val ) {\n PPC_IO_DPRINTF ( \"0x%08x => 0x%08x\\n\" , addr - PPC_IO_BASE , val ) ;\n PREP_fake_io [ addr - 0x0398 ] = val ;\n }"}
{"idx": 10484, "target": 0, "func": "static void dummyloca ( struct alltabs * at ) {\n at -> loca = tmpfile ( ) ;\n if ( at -> head . locais32 ) {\n putlong ( at -> loca , 0 ) ;\n at -> localen = sizeof ( int32 ) ;\n }\n else {\n putshort ( at -> loca , 0 ) ;\n at -> localen = sizeof ( int16 ) ;\n putshort ( at -> loca , 0 ) ;\n }\n }"}
{"idx": 10485, "target": 0, "func": "static void dump_esp_combs ( struct sk_buff * skb , const struct xfrm_tmpl * t ) {\n struct sadb_prop * p ;\n int i , k ;\n p = ( struct sadb_prop * ) skb_put ( skb , sizeof ( struct sadb_prop ) ) ;\n p -> sadb_prop_len = sizeof ( struct sadb_prop ) / 8 ;\n p -> sadb_prop_exttype = SADB_EXT_PROPOSAL ;\n p -> sadb_prop_replay = 32 ;\n memset ( p -> sadb_prop_reserved , 0 , sizeof ( p -> sadb_prop_reserved ) ) ;\n for ( i = 0 ;\n ;\n i ++ ) {\n const struct xfrm_algo_desc * ealg = xfrm_ealg_get_byidx ( i ) ;\n if ( ! ealg ) break ;\n if ( ! ealg -> pfkey_supported ) continue ;\n if ( ! ( ealg_tmpl_set ( t , ealg ) && ealg -> available ) ) continue ;\n for ( k = 1 ;\n ;\n k ++ ) {\n struct sadb_comb * c ;\n const struct xfrm_algo_desc * aalg = xfrm_aalg_get_byidx ( k ) ;\n if ( ! aalg ) break ;\n if ( ! aalg -> pfkey_supported ) continue ;\n if ( ! ( aalg_tmpl_set ( t , aalg ) && aalg -> available ) ) continue ;\n c = ( struct sadb_comb * ) skb_put ( skb , sizeof ( struct sadb_comb ) ) ;\n memset ( c , 0 , sizeof ( * c ) ) ;\n p -> sadb_prop_len += sizeof ( struct sadb_comb ) / 8 ;\n c -> sadb_comb_auth = aalg -> desc . sadb_alg_id ;\n c -> sadb_comb_auth_minbits = aalg -> desc . sadb_alg_minbits ;\n c -> sadb_comb_auth_maxbits = aalg -> desc . sadb_alg_maxbits ;\n c -> sadb_comb_encrypt = ealg -> desc . sadb_alg_id ;\n c -> sadb_comb_encrypt_minbits = ealg -> desc . sadb_alg_minbits ;\n c -> sadb_comb_encrypt_maxbits = ealg -> desc . sadb_alg_maxbits ;\n c -> sadb_comb_hard_addtime = 24 * 60 * 60 ;\n c -> sadb_comb_soft_addtime = 20 * 60 * 60 ;\n c -> sadb_comb_hard_usetime = 8 * 60 * 60 ;\n c -> sadb_comb_soft_usetime = 7 * 60 * 60 ;\n }\n }\n }"}
{"idx": 10486, "target": 0, "func": "static int selinux_socket_bind ( struct socket * sock , struct sockaddr * address , int addrlen ) {\n struct sock * sk = sock -> sk ;\n u16 family ;\n int err ;\n err = sock_has_perm ( current , sk , SOCKET__BIND ) ;\n if ( err ) goto out ;\n family = sk -> sk_family ;\n if ( family == PF_INET || family == PF_INET6 ) {\n char * addrp ;\n struct sk_security_struct * sksec = sk -> sk_security ;\n struct common_audit_data ad ;\n struct lsm_network_audit net = {\n 0 , }\n ;\n struct sockaddr_in * addr4 = NULL ;\n struct sockaddr_in6 * addr6 = NULL ;\n unsigned short snum ;\n u32 sid , node_perm ;\n if ( family == PF_INET ) {\n addr4 = ( struct sockaddr_in * ) address ;\n snum = ntohs ( addr4 -> sin_port ) ;\n addrp = ( char * ) & addr4 -> sin_addr . s_addr ;\n }\n else {\n addr6 = ( struct sockaddr_in6 * ) address ;\n snum = ntohs ( addr6 -> sin6_port ) ;\n addrp = ( char * ) & addr6 -> sin6_addr . s6_addr ;\n }\n if ( snum ) {\n int low , high ;\n inet_get_local_port_range ( sock_net ( sk ) , & low , & high ) ;\n if ( snum < max ( PROT_SOCK , low ) || snum > high ) {\n err = sel_netport_sid ( sk -> sk_protocol , snum , & sid ) ;\n if ( err ) goto out ;\n ad . type = LSM_AUDIT_DATA_NET ;\n ad . u . net = & net ;\n ad . u . net -> sport = htons ( snum ) ;\n ad . u . net -> family = family ;\n err = avc_has_perm ( sksec -> sid , sid , sksec -> sclass , SOCKET__NAME_BIND , & ad ) ;\n if ( err ) goto out ;\n }\n }\n switch ( sksec -> sclass ) {\n case SECCLASS_TCP_SOCKET : node_perm = TCP_SOCKET__NODE_BIND ;\n break ;\n case SECCLASS_UDP_SOCKET : node_perm = UDP_SOCKET__NODE_BIND ;\n break ;\n case SECCLASS_DCCP_SOCKET : node_perm = DCCP_SOCKET__NODE_BIND ;\n break ;\n default : node_perm = RAWIP_SOCKET__NODE_BIND ;\n break ;\n }\n err = sel_netnode_sid ( addrp , family , & sid ) ;\n if ( err ) goto out ;\n ad . type = LSM_AUDIT_DATA_NET ;\n ad . u . net = & net ;\n ad . u . net -> sport = htons ( snum ) ;\n ad . u . net -> family = family ;\n if ( family == PF_INET ) ad . u . net -> v4info . saddr = addr4 -> sin_addr . s_addr ;\n else ad . u . net -> v6info . saddr = addr6 -> sin6_addr ;\n err = avc_has_perm ( sksec -> sid , sid , sksec -> sclass , node_perm , & ad ) ;\n if ( err ) goto out ;\n }\n out : return err ;\n }"}
{"idx": 10487, "target": 0, "func": "unsigned long ossl_statem_server_max_message_size ( SSL * s ) {\n OSSL_STATEM * st = & s -> statem ;\n switch ( st -> hand_state ) {\n case TLS_ST_SR_CLNT_HELLO : return CLIENT_HELLO_MAX_LENGTH ;\n case TLS_ST_SR_CERT : return s -> max_cert_list ;\n case TLS_ST_SR_KEY_EXCH : return CLIENT_KEY_EXCH_MAX_LENGTH ;\n case TLS_ST_SR_CERT_VRFY : return SSL3_RT_MAX_PLAIN_LENGTH ;\n # ifndef OPENSSL_NO_NEXTPROTONEG case TLS_ST_SR_NEXT_PROTO : return NEXT_PROTO_MAX_LENGTH ;\n # endif case TLS_ST_SR_CHANGE : return CCS_MAX_LENGTH ;\n case TLS_ST_SR_FINISHED : return FINISHED_MAX_LENGTH ;\n default : break ;\n }\n return 0 ;\n }"}
{"idx": 10488, "target": 0, "func": "static int dissect_h245_RTPPayloadType ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 924 \"../../asn1/h245/h245.cnf\" rfc_number = 0 ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_RTPPayloadType , RTPPayloadType_sequence ) ;\n return offset ;\n }"}
{"idx": 10489, "target": 0, "func": "int jbig2_end_of_stripe ( Jbig2Ctx * ctx , Jbig2Segment * segment , const uint8_t * segment_data ) {\n Jbig2Page page = ctx -> pages [ ctx -> current_page ] ;\n uint32_t end_row ;\n end_row = jbig2_get_uint32 ( segment_data ) ;\n if ( end_row < page . end_row ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"end of stripe segment with non-positive end row advance\" \" (new end row %d vs current end row %d)\" , end_row , page . end_row ) ;\n }\n else {\n jbig2_error ( ctx , JBIG2_SEVERITY_INFO , segment -> number , \"end of stripe: advancing end row to %d\" , end_row ) ;\n }\n page . end_row = end_row ;\n return 0 ;\n }"}
{"idx": 10490, "target": 0, "func": "MSG_PROCESS_RETURN tls_process_cert_verify ( SSL * s , PACKET * pkt ) {\n EVP_PKEY * pkey = NULL ;\n const unsigned char * sig , * data ;\n # ifndef OPENSSL_NO_GOST unsigned char * gost_data = NULL ;\n # endif int al , ret = MSG_PROCESS_ERROR ;\n int type = 0 , j ;\n unsigned int len ;\n X509 * peer ;\n const EVP_MD * md = NULL ;\n long hdatalen = 0 ;\n void * hdata ;\n EVP_MD_CTX * mctx = EVP_MD_CTX_new ( ) ;\n if ( mctx == NULL ) {\n SSLerr ( SSL_F_TLS_PROCESS_CERT_VERIFY , ERR_R_MALLOC_FAILURE ) ;\n al = SSL_AD_INTERNAL_ERROR ;\n goto f_err ;\n }\n peer = s -> session -> peer ;\n pkey = X509_get0_pubkey ( peer ) ;\n type = X509_certificate_type ( peer , pkey ) ;\n if ( ! ( type & EVP_PKT_SIGN ) ) {\n SSLerr ( SSL_F_TLS_PROCESS_CERT_VERIFY , SSL_R_SIGNATURE_FOR_NON_SIGNING_CERTIFICATE ) ;\n al = SSL_AD_ILLEGAL_PARAMETER ;\n goto f_err ;\n }\n # ifndef OPENSSL_NO_GOST if ( PACKET_remaining ( pkt ) == 64 && EVP_PKEY_id ( pkey ) == NID_id_GostR3410_2001 ) {\n len = 64 ;\n }\n else # endif {\n if ( SSL_USE_SIGALGS ( s ) ) {\n int rv ;\n if ( ! PACKET_get_bytes ( pkt , & sig , 2 ) ) {\n al = SSL_AD_DECODE_ERROR ;\n goto f_err ;\n }\n rv = tls12_check_peer_sigalg ( & md , s , sig , pkey ) ;\n if ( rv == - 1 ) {\n al = SSL_AD_INTERNAL_ERROR ;\n goto f_err ;\n }\n else if ( rv == 0 ) {\n al = SSL_AD_DECODE_ERROR ;\n goto f_err ;\n }\n # ifdef SSL_DEBUG fprintf ( stderr , \"USING TLSv1.2 HASH %s\\n\" , EVP_MD_name ( md ) ) ;\n # endif }\n else {\n int idx = ssl_cert_type ( NULL , pkey ) ;\n if ( idx >= 0 ) md = s -> s3 -> tmp . md [ idx ] ;\n if ( md == NULL ) {\n al = SSL_AD_INTERNAL_ERROR ;\n goto f_err ;\n }\n }\n if ( ! PACKET_get_net_2 ( pkt , & len ) ) {\n SSLerr ( SSL_F_TLS_PROCESS_CERT_VERIFY , SSL_R_LENGTH_MISMATCH ) ;\n al = SSL_AD_DECODE_ERROR ;\n goto f_err ;\n }\n }\n j = EVP_PKEY_size ( pkey ) ;\n if ( ( ( int ) len > j ) || ( ( int ) PACKET_remaining ( pkt ) > j ) || ( PACKET_remaining ( pkt ) == 0 ) ) {\n SSLerr ( SSL_F_TLS_PROCESS_CERT_VERIFY , SSL_R_WRONG_SIGNATURE_SIZE ) ;\n al = SSL_AD_DECODE_ERROR ;\n goto f_err ;\n }\n if ( ! PACKET_get_bytes ( pkt , & data , len ) ) {\n SSLerr ( SSL_F_TLS_PROCESS_CERT_VERIFY , SSL_R_LENGTH_MISMATCH ) ;\n al = SSL_AD_DECODE_ERROR ;\n goto f_err ;\n }\n hdatalen = BIO_get_mem_data ( s -> s3 -> handshake_buffer , & hdata ) ;\n if ( hdatalen <= 0 ) {\n SSLerr ( SSL_F_TLS_PROCESS_CERT_VERIFY , ERR_R_INTERNAL_ERROR ) ;\n al = SSL_AD_INTERNAL_ERROR ;\n goto f_err ;\n }\n # ifdef SSL_DEBUG fprintf ( stderr , \"Using client verify alg %s\\n\" , EVP_MD_name ( md ) ) ;\n # endif if ( ! EVP_VerifyInit_ex ( mctx , md , NULL ) || ! EVP_VerifyUpdate ( mctx , hdata , hdatalen ) ) {\n SSLerr ( SSL_F_TLS_PROCESS_CERT_VERIFY , ERR_R_EVP_LIB ) ;\n al = SSL_AD_INTERNAL_ERROR ;\n goto f_err ;\n }\n # ifndef OPENSSL_NO_GOST {\n int pktype = EVP_PKEY_id ( pkey ) ;\n if ( pktype == NID_id_GostR3410_2001 || pktype == NID_id_GostR3410_2012_256 || pktype == NID_id_GostR3410_2012_512 ) {\n if ( ( gost_data = OPENSSL_malloc ( len ) ) == NULL ) {\n SSLerr ( SSL_F_TLS_PROCESS_CERT_VERIFY , ERR_R_MALLOC_FAILURE ) ;\n al = SSL_AD_INTERNAL_ERROR ;\n goto f_err ;\n }\n BUF_reverse ( gost_data , data , len ) ;\n data = gost_data ;\n }\n }\n # endif if ( s -> version == SSL3_VERSION && ! EVP_MD_CTX_ctrl ( mctx , EVP_CTRL_SSL3_MASTER_SECRET , s -> session -> master_key_length , s -> session -> master_key ) ) {\n SSLerr ( SSL_F_TLS_PROCESS_CERT_VERIFY , ERR_R_EVP_LIB ) ;\n al = SSL_AD_INTERNAL_ERROR ;\n goto f_err ;\n }\n if ( EVP_VerifyFinal ( mctx , data , len , pkey ) <= 0 ) {\n al = SSL_AD_DECRYPT_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CERT_VERIFY , SSL_R_BAD_SIGNATURE ) ;\n goto f_err ;\n }\n ret = MSG_PROCESS_CONTINUE_PROCESSING ;\n if ( 0 ) {\n f_err : ssl3_send_alert ( s , SSL3_AL_FATAL , al ) ;\n ossl_statem_set_error ( s ) ;\n }\n BIO_free ( s -> s3 -> handshake_buffer ) ;\n s -> s3 -> handshake_buffer = NULL ;\n EVP_MD_CTX_free ( mctx ) ;\n # ifndef OPENSSL_NO_GOST OPENSSL_free ( gost_data ) ;\n # endif return ret ;\n }"}
{"idx": 10491, "target": 0, "func": "void mime_header_decoder_delete ( struct mime_header_decoder_data * pd ) {\n if ( pd ) {\n mbfl_convert_filter_delete ( pd -> conv2_filter ) ;\n mbfl_convert_filter_delete ( pd -> conv1_filter ) ;\n mbfl_convert_filter_delete ( pd -> deco_filter ) ;\n mbfl_memory_device_clear ( & pd -> outdev ) ;\n mbfl_memory_device_clear ( & pd -> tmpdev ) ;\n mbfl_free ( ( void * ) pd ) ;\n }\n }"}
{"idx": 10492, "target": 0, "func": "static void prplcb_roomlist_create ( PurpleRoomlist * list ) {\n struct purple_roomlist_data * rld ;\n list -> ui_data = rld = g_new0 ( struct purple_roomlist_data , 1 ) ;\n rld -> topic = - 1 ;\n }"}
{"idx": 10493, "target": 0, "func": "static inline void insert_dotted_circles ( const hb_ot_shape_plan_t * plan HB_UNUSED , hb_font_t * font , hb_buffer_t * buffer ) {\n bool has_broken_syllables = false ;\n unsigned int count = buffer -> len ;\n hb_glyph_info_t * info = buffer -> info ;\n for ( unsigned int i = 0 ;\n i < count ;\n i ++ ) if ( ( info [ i ] . syllable ( ) & 0x0F ) == broken_cluster ) {\n has_broken_syllables = true ;\n break ;\n }\n if ( likely ( ! has_broken_syllables ) ) return ;\n hb_codepoint_t dottedcircle_glyph ;\n if ( ! font -> get_glyph ( 0x25CCu , 0 , & dottedcircle_glyph ) ) return ;\n hb_glyph_info_t dottedcircle = {\n 0 }\n ;\n dottedcircle . codepoint = 0x25CCu ;\n set_indic_properties ( dottedcircle ) ;\n dottedcircle . codepoint = dottedcircle_glyph ;\n buffer -> clear_output ( ) ;\n buffer -> idx = 0 ;\n unsigned int last_syllable = 0 ;\n while ( buffer -> idx < buffer -> len ) {\n unsigned int syllable = buffer -> cur ( ) . syllable ( ) ;\n syllable_type_t syllable_type = ( syllable_type_t ) ( syllable & 0x0F ) ;\n if ( unlikely ( last_syllable != syllable && syllable_type == broken_cluster ) ) {\n last_syllable = syllable ;\n hb_glyph_info_t info = dottedcircle ;\n info . cluster = buffer -> cur ( ) . cluster ;\n info . mask = buffer -> cur ( ) . mask ;\n info . syllable ( ) = buffer -> cur ( ) . syllable ( ) ;\n while ( buffer -> idx < buffer -> len && last_syllable == buffer -> cur ( ) . syllable ( ) && buffer -> cur ( ) . indic_category ( ) == OT_Repha ) buffer -> next_glyph ( ) ;\n buffer -> output_info ( info ) ;\n }\n else buffer -> next_glyph ( ) ;\n }\n buffer -> swap_buffers ( ) ;\n }"}
{"idx": 10494, "target": 0, "func": "static int very_broken_op ( int a , int b ) {\n int x = a * b + 200 ;\n int size ;\n const uint8_t * rtab ;\n if ( x % 400 || b % 5 ) return x / 400 ;\n x /= 400 ;\n size = tabs [ b / 5 ] . size ;\n rtab = tabs [ b / 5 ] . tab ;\n return x - rtab [ size * av_log2 ( 2 * ( x - 1 ) / size ) + ( x - 1 ) % size ] ;\n }"}
{"idx": 10495, "target": 0, "func": "static void tree_data_add_maybe_interesting_field ( tree_data_t * tree_data , field_info * fi ) {\n const header_field_info * hfinfo = fi -> hfinfo ;\n if ( hfinfo -> ref_type == HF_REF_TYPE_DIRECT ) {\n GPtrArray * ptrs = NULL ;\n if ( tree_data -> interesting_hfids == NULL ) {\n tree_data -> interesting_hfids = g_hash_table_new ( g_direct_hash , NULL ) ;\n }\n else if ( g_hash_table_size ( tree_data -> interesting_hfids ) ) {\n ptrs = ( GPtrArray * ) g_hash_table_lookup ( tree_data -> interesting_hfids , GINT_TO_POINTER ( hfinfo -> id ) ) ;\n }\n if ( ! ptrs ) {\n ptrs = g_ptr_array_new ( ) ;\n g_hash_table_insert ( tree_data -> interesting_hfids , GINT_TO_POINTER ( hfinfo -> id ) , ptrs ) ;\n }\n g_ptr_array_add ( ptrs , fi ) ;\n }\n }"}
{"idx": 10496, "target": 0, "func": "char check_if_ignore_table ( const char * table_name , char * table_type ) {\n char result = IGNORE_NONE ;\n char buff [ FN_REFLEN + 80 ] , show_name_buff [ FN_REFLEN ] ;\n MYSQL_RES * res = NULL ;\n MYSQL_ROW row ;\n DBUG_ENTER ( \"check_if_ignore_table\" ) ;\n DBUG_ASSERT ( 2 * sizeof ( table_name ) < sizeof ( show_name_buff ) ) ;\n my_snprintf ( buff , sizeof ( buff ) , \"show table status like %s\" , quote_for_like ( table_name , show_name_buff ) ) ;\n if ( mysql_query_with_error_report ( mysql , & res , buff ) ) {\n if ( mysql_errno ( mysql ) != ER_PARSE_ERROR ) {\n verbose_msg ( \"-- Warning: Couldn't get status information for \" \"table %s (%s)\\n\" , table_name , mysql_error ( mysql ) ) ;\n DBUG_RETURN ( result ) ;\n }\n }\n if ( ! ( row = mysql_fetch_row ( res ) ) ) {\n fprintf ( stderr , \"Error: Couldn't read status information for table %s (%s)\\n\" , table_name , mysql_error ( mysql ) ) ;\n mysql_free_result ( res ) ;\n DBUG_RETURN ( result ) ;\n }\n if ( ! ( row [ 1 ] ) ) strmake ( table_type , \"VIEW\" , NAME_LEN - 1 ) ;\n else {\n strmake ( table_type , row [ 1 ] , NAME_LEN - 1 ) ;\n if ( opt_delayed ) {\n if ( strcmp ( table_type , \"MyISAM\" ) && strcmp ( table_type , \"ISAM\" ) && strcmp ( table_type , \"ARCHIVE\" ) && strcmp ( table_type , \"HEAP\" ) && strcmp ( table_type , \"MEMORY\" ) ) result = IGNORE_INSERT_DELAYED ;\n }\n if ( ! opt_no_data && ( ! my_strcasecmp ( & my_charset_latin1 , table_type , \"MRG_MyISAM\" ) || ! strcmp ( table_type , \"MRG_ISAM\" ) || ! strcmp ( table_type , \"FEDERATED\" ) ) ) result = IGNORE_DATA ;\n }\n mysql_free_result ( res ) ;\n DBUG_RETURN ( result ) ;\n }"}
{"idx": 10497, "target": 0, "func": "static int dissect_btgatt_microbit_magnetometer_period ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , void * data ) {\n btatt_data_t * att_data = ( btatt_data_t * ) data ;\n gint offset = 0 ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) return - 1 ;\n proto_tree_add_item ( tree , hf_gatt_microbit_magnetometer_period , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n return offset ;\n }"}
{"idx": 10498, "target": 1, "func": "static _Bool have_gcrypt ( void ) {\n static _Bool result = 0 ;\n static _Bool need_init = 1 ;\n if ( ! need_init ) return ( result ) ;\n need_init = 0 ;\n # if HAVE_LIBGCRYPT # if GCRYPT_VERSION_NUMBER < 0x010600 gcry_control ( GCRYCTL_SET_THREAD_CBS , & gcry_threads_pthread ) ;\n # endif if ( ! gcry_check_version ( GCRYPT_VERSION ) ) return ( 0 ) ;\n gcry_control ( GCRYCTL_INIT_SECMEM , 32768 , 0 ) ;\n gcry_control ( GCRYCTL_INITIALIZATION_FINISHED , 0 ) ;\n result = 1 ;\n return ( 1 ) ;\n # else return ( 0 ) ;\n # endif }"}
{"idx": 10499, "target": 0, "func": "int init_dumping_tables ( char * qdatabase ) {\n DBUG_ENTER ( \"init_dumping_tables\" ) ;\n if ( ! opt_create_db ) {\n char qbuf [ 256 ] ;\n MYSQL_ROW row ;\n MYSQL_RES * dbinfo ;\n my_snprintf ( qbuf , sizeof ( qbuf ) , \"SHOW CREATE DATABASE IF NOT EXISTS %s\" , qdatabase ) ;\n if ( mysql_query ( mysql , qbuf ) || ! ( dbinfo = mysql_store_result ( mysql ) ) ) {\n if ( opt_drop_database ) fprintf ( md_result_file , \"\\n/*!40000 DROP DATABASE IF EXISTS %s*/;\n\\n\" , qdatabase ) ;\n fprintf ( md_result_file , \"\\nCREATE DATABASE /*!32312 IF NOT EXISTS*/ %s;\n\\n\" , qdatabase ) ;\n }\n else {\n if ( opt_drop_database ) fprintf ( md_result_file , \"\\n/*!40000 DROP DATABASE IF EXISTS %s*/;\n\\n\" , qdatabase ) ;\n row = mysql_fetch_row ( dbinfo ) ;\n if ( row [ 1 ] ) {\n fprintf ( md_result_file , \"\\n%s;\n\\n\" , row [ 1 ] ) ;\n }\n mysql_free_result ( dbinfo ) ;\n }\n }\n DBUG_RETURN ( 0 ) ;\n }"}
{"idx": 10500, "target": 0, "func": "TEST_F ( TemplateURLTest , RLZFromAppList ) {\n base : : string16 rlz_string = search_terms_data_ . GetRlzParameterValue ( true ) ;\n TemplateURLData data ;\n data . SetURL ( \"http://bar/?{\ngoogle:RLZ}\n{\nsearchTerms}\n\" ) ;\n TemplateURL url ( data ) ;\n EXPECT_TRUE ( url . url_ref ( ) . IsValid ( search_terms_data_ ) ) ;\n ASSERT_TRUE ( url . url_ref ( ) . SupportsReplacement ( search_terms_data_ ) ) ;\n TemplateURLRef : : SearchTermsArgs args ( ASCIIToUTF16 ( \"x\" ) ) ;\n args . from_app_list = true ;\n GURL result ( url . url_ref ( ) . ReplaceSearchTerms ( args , search_terms_data_ ) ) ;\n ASSERT_TRUE ( result . is_valid ( ) ) ;\n EXPECT_EQ ( \"http://bar/?rlz=\" + base : : UTF16ToUTF8 ( rlz_string ) + \"&x\" , result . spec ( ) ) ;\n }"}
{"idx": 10501, "target": 0, "func": "static int decode_picture ( ProresContext * ctx , int pic_num , AVCodecContext * avctx ) {\n int slice_num , slice_width , x_pos , y_pos ;\n slice_num = 0 ;\n ctx -> pic_num = pic_num ;\n for ( y_pos = 0 ;\n y_pos < ctx -> num_y_mbs ;\n y_pos ++ ) {\n slice_width = 1 << ctx -> slice_width_factor ;\n for ( x_pos = 0 ;\n x_pos < ctx -> num_x_mbs && slice_width ;\n x_pos += slice_width ) {\n while ( ctx -> num_x_mbs - x_pos < slice_width ) slice_width >>= 1 ;\n ctx -> slice_data [ slice_num ] . slice_num = slice_num ;\n ctx -> slice_data [ slice_num ] . x_pos = x_pos ;\n ctx -> slice_data [ slice_num ] . y_pos = y_pos ;\n ctx -> slice_data [ slice_num ] . slice_width = slice_width ;\n slice_num ++ ;\n }\n }\n return avctx -> execute ( avctx , decode_slice , ctx -> slice_data , NULL , slice_num , sizeof ( ctx -> slice_data [ 0 ] ) ) ;\n }"}
{"idx": 10502, "target": 0, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DIRECTORYSTRING ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DISPLAYTEXT ) DECLARE_ASN1_FUNCTIONS ( ASN1_PRINTABLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_T61STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_IA5STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_GENERALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTCTIME ) DECLARE_ASN1_FUNCTIONS ( ASN1_GENERALIZEDTIME ) DECLARE_ASN1_FUNCTIONS ( ASN1_TIME )"}
{"idx": 10503, "target": 0, "func": "static void extrapolate_isf ( float isf [ LP_ORDER_16k ] ) {\n float diff_isf [ LP_ORDER - 2 ] , diff_mean ;\n float corr_lag [ 3 ] ;\n float est , scale ;\n int i , j , i_max_corr ;\n isf [ LP_ORDER_16k - 1 ] = isf [ LP_ORDER - 1 ] ;\n for ( i = 0 ;\n i < LP_ORDER - 2 ;\n i ++ ) diff_isf [ i ] = isf [ i + 1 ] - isf [ i ] ;\n diff_mean = 0.0 ;\n for ( i = 2 ;\n i < LP_ORDER - 2 ;\n i ++ ) diff_mean += diff_isf [ i ] * ( 1.0f / ( LP_ORDER - 4 ) ) ;\n i_max_corr = 0 ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n corr_lag [ i ] = auto_correlation ( diff_isf , diff_mean , i + 2 ) ;\n if ( corr_lag [ i ] > corr_lag [ i_max_corr ] ) i_max_corr = i ;\n }\n i_max_corr ++ ;\n for ( i = LP_ORDER - 1 ;\n i < LP_ORDER_16k - 1 ;\n i ++ ) isf [ i ] = isf [ i - 1 ] + isf [ i - 1 - i_max_corr ] - isf [ i - 2 - i_max_corr ] ;\n est = 7965 + ( isf [ 2 ] - isf [ 3 ] - isf [ 4 ] ) / 6.0 ;\n scale = 0.5 * ( FFMIN ( est , 7600 ) - isf [ LP_ORDER - 2 ] ) / ( isf [ LP_ORDER_16k - 2 ] - isf [ LP_ORDER - 2 ] ) ;\n for ( i = LP_ORDER - 1 , j = 0 ;\n i < LP_ORDER_16k - 1 ;\n i ++ , j ++ ) diff_isf [ j ] = scale * ( isf [ i ] - isf [ i - 1 ] ) ;\n for ( i = 1 ;\n i < LP_ORDER_16k - LP_ORDER ;\n i ++ ) if ( diff_isf [ i ] + diff_isf [ i - 1 ] < 5.0 ) {\n if ( diff_isf [ i ] > diff_isf [ i - 1 ] ) {\n diff_isf [ i - 1 ] = 5.0 - diff_isf [ i ] ;\n }\n else diff_isf [ i ] = 5.0 - diff_isf [ i - 1 ] ;\n }\n for ( i = LP_ORDER - 1 , j = 0 ;\n i < LP_ORDER_16k - 1 ;\n i ++ , j ++ ) isf [ i ] = isf [ i - 1 ] + diff_isf [ j ] * ( 1.0f / ( 1 << 15 ) ) ;\n for ( i = 0 ;\n i < LP_ORDER_16k - 1 ;\n i ++ ) isf [ i ] *= 0.8 ;\n }"}
{"idx": 10504, "target": 0, "func": "static void vout_del_buffer ( decoder_t * p_dec , picture_t * p_pic ) {\n vout_ReleasePicture ( p_dec -> p_owner -> p_vout , p_pic ) ;\n }"}
{"idx": 10505, "target": 0, "func": "AttrNumber get_attnum ( Oid relid , const char * attname ) {\n HeapTuple tp ;\n tp = SearchSysCacheAttName ( relid , attname ) ;\n if ( HeapTupleIsValid ( tp ) ) {\n Form_pg_attribute att_tup = ( Form_pg_attribute ) GETSTRUCT ( tp ) ;\n AttrNumber result ;\n result = att_tup -> attnum ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }\n else return InvalidAttrNumber ;\n }"}
{"idx": 10506, "target": 0, "func": "static bool contain_leaked_vars_walker ( Node * node , void * context ) {\n if ( node == NULL ) return false ;\n switch ( nodeTag ( node ) ) {\n case T_Var : case T_Const : case T_Param : case T_ArrayRef : case T_ArrayExpr : case T_FieldSelect : case T_FieldStore : case T_NamedArgExpr : case T_BoolExpr : case T_RelabelType : case T_CollateExpr : case T_CaseExpr : case T_CaseTestExpr : case T_RowExpr : case T_MinMaxExpr : case T_NullTest : case T_BooleanTest : case T_List : break ;\n case T_FuncExpr : case T_OpExpr : case T_DistinctExpr : case T_NullIfExpr : case T_ScalarArrayOpExpr : case T_CoerceViaIO : case T_ArrayCoerceExpr : if ( check_functions_in_node ( node , contain_leaked_vars_checker , context ) && contain_var_clause ( node ) ) return true ;\n break ;\n case T_RowCompareExpr : {\n RowCompareExpr * rcexpr = ( RowCompareExpr * ) node ;\n ListCell * opid ;\n ListCell * larg ;\n ListCell * rarg ;\n forthree ( opid , rcexpr -> opnos , larg , rcexpr -> largs , rarg , rcexpr -> rargs ) {\n Oid funcid = get_opcode ( lfirst_oid ( opid ) ) ;\n if ( ! get_func_leakproof ( funcid ) && ( contain_var_clause ( ( Node * ) lfirst ( larg ) ) || contain_var_clause ( ( Node * ) lfirst ( rarg ) ) ) ) return true ;\n }\n }\n break ;\n case T_CurrentOfExpr : return false ;\n default : return true ;\n }\n return expression_tree_walker ( node , contain_leaked_vars_walker , context ) ;\n }"}
{"idx": 10507, "target": 0, "func": "static void pxa2xx_i2s_data_req ( void * opaque , int tx , int rx ) {\n PXA2xxI2SState * s = ( PXA2xxI2SState * ) opaque ;\n uint32_t * sample ;\n if ( s -> enable && s -> tx_len ) s -> status |= 1 << 5 ;\n if ( s -> enable && s -> rx_len ) s -> status |= 1 << 6 ;\n s -> tx_len = tx - s -> fifo_len ;\n s -> rx_len = rx ;\n if ( s -> enable ) for ( sample = s -> fifo ;\n s -> fifo_len ;\n s -> fifo_len -- , sample ++ ) s -> codec_out ( s -> opaque , * sample ) ;\n pxa2xx_i2s_update ( s ) ;\n }"}
{"idx": 10508, "target": 0, "func": "static gpgme_error_t uiserver_cancel ( void * engine ) {\n engine_uiserver_t uiserver = engine ;\n if ( ! uiserver ) return gpg_error ( GPG_ERR_INV_VALUE ) ;\n if ( uiserver -> status_cb . fd != - 1 ) _gpgme_io_close ( uiserver -> status_cb . fd ) ;\n if ( uiserver -> input_cb . fd != - 1 ) _gpgme_io_close ( uiserver -> input_cb . fd ) ;\n if ( uiserver -> output_cb . fd != - 1 ) _gpgme_io_close ( uiserver -> output_cb . fd ) ;\n if ( uiserver -> message_cb . fd != - 1 ) _gpgme_io_close ( uiserver -> message_cb . fd ) ;\n if ( uiserver -> assuan_ctx ) {\n assuan_release ( uiserver -> assuan_ctx ) ;\n uiserver -> assuan_ctx = NULL ;\n }\n return 0 ;\n }"}
{"idx": 10509, "target": 1, "func": "int i2d_ ## name ( type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;\n int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING )"}
{"idx": 10510, "target": 0, "func": "bool parsePGArray ( const char * atext , char * * * itemarray , int * nitems ) {\n int inputlen ;\n char * * items ;\n char * strings ;\n int curitem ;\n * itemarray = NULL ;\n * nitems = 0 ;\n inputlen = strlen ( atext ) ;\n if ( inputlen < 2 || atext [ 0 ] != '{\n' || atext [ inputlen - 1 ] != '}\n' ) return false ;\n items = ( char * * ) malloc ( inputlen * ( sizeof ( char * ) + sizeof ( char ) ) ) ;\n if ( items == NULL ) return false ;\n * itemarray = items ;\n strings = ( char * ) ( items + inputlen ) ;\n atext ++ ;\n curitem = 0 ;\n while ( * atext != '}\n' ) {\n if ( * atext == '\\0' ) return false ;\n items [ curitem ] = strings ;\n while ( * atext != '}\n' && * atext != ',' ) {\n if ( * atext == '\\0' ) return false ;\n if ( * atext != '\"' ) * strings ++ = * atext ++ ;\n else {\n atext ++ ;\n while ( * atext != '\"' ) {\n if ( * atext == '\\0' ) return false ;\n if ( * atext == '\\\\' ) {\n atext ++ ;\n if ( * atext == '\\0' ) return false ;\n }\n * strings ++ = * atext ++ ;\n }\n atext ++ ;\n }\n }\n * strings ++ = '\\0' ;\n if ( * atext == ',' ) atext ++ ;\n curitem ++ ;\n }\n if ( atext [ 1 ] != '\\0' ) return false ;\n * nitems = curitem ;\n return true ;\n }"}
{"idx": 10511, "target": 0, "func": "static inline void cirrus_bitblt_bgcol ( CirrusVGAState * s ) {\n unsigned int color ;\n switch ( s -> cirrus_blt_pixelwidth ) {\n case 1 : s -> cirrus_blt_bgcol = s -> cirrus_shadow_gr0 ;\n break ;\n case 2 : color = s -> cirrus_shadow_gr0 | ( s -> vga . gr [ 0x10 ] << 8 ) ;\n s -> cirrus_blt_bgcol = le16_to_cpu ( color ) ;\n break ;\n case 3 : s -> cirrus_blt_bgcol = s -> cirrus_shadow_gr0 | ( s -> vga . gr [ 0x10 ] << 8 ) | ( s -> vga . gr [ 0x12 ] << 16 ) ;\n break ;\n default : case 4 : color = s -> cirrus_shadow_gr0 | ( s -> vga . gr [ 0x10 ] << 8 ) | ( s -> vga . gr [ 0x12 ] << 16 ) | ( s -> vga . gr [ 0x14 ] << 24 ) ;\n s -> cirrus_blt_bgcol = le32_to_cpu ( color ) ;\n break ;\n }\n }"}
{"idx": 10512, "target": 0, "func": "List * make_ands_implicit ( Expr * clause ) {\n if ( clause == NULL ) return NIL ;\n else if ( and_clause ( ( Node * ) clause ) ) return ( ( BoolExpr * ) clause ) -> args ;\n else if ( IsA ( clause , Const ) && ! ( ( Const * ) clause ) -> constisnull && DatumGetBool ( ( ( Const * ) clause ) -> constvalue ) ) return NIL ;\n else return list_make1 ( clause ) ;\n }"}
{"idx": 10513, "target": 0, "func": "static void pdf_run_Td ( fz_context * ctx , pdf_processor * proc , float tx , float ty ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_tos_translate ( & pr -> tos , tx , ty ) ;\n }"}
{"idx": 10514, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n WNV1Context * const l = avctx -> priv_data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n AVFrame * const p = & l -> pic ;\n unsigned char * Y , * U , * V ;\n int i , j , ret ;\n int prev_y = 0 , prev_u = 0 , prev_v = 0 ;\n uint8_t * rbuf ;\n rbuf = av_malloc ( buf_size + FF_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( ! rbuf ) {\n av_log ( avctx , AV_LOG_ERROR , \"Cannot allocate temporary buffer\\n\" ) ;\n return AVERROR ( ENOMEM ) ;\n }\n if ( p -> data [ 0 ] ) avctx -> release_buffer ( avctx , p ) ;\n p -> reference = 0 ;\n if ( ( ret = ff_get_buffer ( avctx , p ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n av_free ( rbuf ) ;\n return ret ;\n }\n p -> key_frame = 1 ;\n for ( i = 8 ;\n i < buf_size ;\n i ++ ) rbuf [ i ] = ff_reverse [ buf [ i ] ] ;\n init_get_bits ( & l -> gb , rbuf + 8 , ( buf_size - 8 ) * 8 ) ;\n if ( buf [ 2 ] >> 4 == 6 ) l -> shift = 2 ;\n else {\n l -> shift = 8 - ( buf [ 2 ] >> 4 ) ;\n if ( l -> shift > 4 ) {\n av_log_ask_for_sample ( avctx , \"Unknown WNV1 frame header value %i\\n\" , buf [ 2 ] >> 4 ) ;\n l -> shift = 4 ;\n }\n if ( l -> shift < 1 ) {\n av_log_ask_for_sample ( avctx , \"Unknown WNV1 frame header value %i\\n\" , buf [ 2 ] >> 4 ) ;\n l -> shift = 1 ;\n }\n }\n Y = p -> data [ 0 ] ;\n U = p -> data [ 1 ] ;\n V = p -> data [ 2 ] ;\n for ( j = 0 ;\n j < avctx -> height ;\n j ++ ) {\n for ( i = 0 ;\n i < avctx -> width / 2 ;\n i ++ ) {\n Y [ i * 2 ] = wnv1_get_code ( l , prev_y ) ;\n prev_u = U [ i ] = wnv1_get_code ( l , prev_u ) ;\n prev_y = Y [ ( i * 2 ) + 1 ] = wnv1_get_code ( l , Y [ i * 2 ] ) ;\n prev_v = V [ i ] = wnv1_get_code ( l , prev_v ) ;\n }\n Y += p -> linesize [ 0 ] ;\n U += p -> linesize [ 1 ] ;\n V += p -> linesize [ 2 ] ;\n }\n * got_frame = 1 ;\n * ( AVFrame * ) data = l -> pic ;\n av_free ( rbuf ) ;\n return buf_size ;\n }"}
{"idx": 10515, "target": 0, "func": "static int selinux_task_getioprio ( struct task_struct * p ) {\n return current_has_perm ( p , PROCESS__GETSCHED ) ;\n }"}
{"idx": 10516, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , TestProtocolsWithNoDefaultAreHandled ) {\n ProtocolHandler ph1 = CreateProtocolHandler ( \"test\" , \"test1\" ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ;\n registry ( ) -> ClearDefault ( \"test\" ) ;\n std : : vector < std : : string > handled_protocols ;\n registry ( ) -> GetRegisteredProtocols ( & handled_protocols ) ;\n ASSERT_EQ ( static_cast < size_t > ( 1 ) , handled_protocols . size ( ) ) ;\n ASSERT_EQ ( \"test\" , handled_protocols [ 0 ] ) ;\n }"}
{"idx": 10517, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , UseCounterFeaturesInMainFrame ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : LOAD_EVENT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/page_load_metrics/use_counter_features.html\" ) ) ;\n waiter -> Wait ( ) ;\n NavigateToUntrackedUrl ( ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kFeaturesHistogramName , static_cast < int32_t > ( WebFeature : : kTextWholeText ) , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kFeaturesHistogramName , static_cast < int32_t > ( WebFeature : : kV8Element_Animate_Method ) , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kFeaturesHistogramName , static_cast < int32_t > ( WebFeature : : kNavigatorVibrate ) , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kFeaturesHistogramName , static_cast < int32_t > ( WebFeature : : kDataUriHasOctothorpe ) , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kFeaturesHistogramName , static_cast < int32_t > ( WebFeature : : kApplicationCacheManifestSelectSecureOrigin ) , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kFeaturesHistogramName , static_cast < int32_t > ( WebFeature : : kPageVisits ) , 1 ) ;\n }"}
{"idx": 10518, "target": 0, "func": "static inline unsigned make_16bit ( unsigned value ) {\n value &= 0xFFC0 ;\n return value + ( value >> 10 ) ;\n }"}
{"idx": 10519, "target": 1, "func": "void vp9_predict_intra_block ( const MACROBLOCKD * xd , int block_idx , int bwl_in , TX_SIZE tx_size , PREDICTION_MODE mode , const uint8_t * ref , int ref_stride , uint8_t * dst , int dst_stride , int aoff , int loff , int plane ) {\n const int bwl = bwl_in - tx_size ;\n const int wmask = ( 1 << bwl ) - 1 ;\n const int have_top = ( block_idx >> bwl ) || xd -> up_available ;\n const int have_left = ( block_idx & wmask ) || xd -> left_available ;\n const int have_right = ( ( block_idx & wmask ) != wmask ) ;\n const int x = aoff * 4 ;\n const int y = loff * 4 ;\n assert ( bwl >= 0 ) ;\n build_intra_predictors ( xd , ref , ref_stride , dst , dst_stride , mode , tx_size , have_top , have_left , have_right , x , y , plane ) ;\n }"}
{"idx": 10520, "target": 0, "func": "static void dtap_cc_release ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_TRUE ;\n ELEM_OPT_TLV ( 0x08 , GSM_A_PDU_TYPE_DTAP , DE_CAUSE , NULL ) ;\n ELEM_OPT_TLV ( 0x08 , GSM_A_PDU_TYPE_DTAP , DE_CAUSE , \" 2\" ) ;\n ELEM_OPT_TLV ( 0x1c , GSM_A_PDU_TYPE_DTAP , DE_FACILITY , NULL ) ;\n ELEM_OPT_TLV ( 0x7e , GSM_A_PDU_TYPE_DTAP , DE_USER_USER , NULL ) ;\n ELEM_OPT_TLV ( 0x7f , GSM_A_PDU_TYPE_DTAP , DE_SS_VER_IND , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 10521, "target": 0, "func": "static int virtio_blk_init_pci ( PCIDevice * pci_dev ) {\n VirtIOPCIProxy * proxy = DO_UPCAST ( VirtIOPCIProxy , pci_dev , pci_dev ) ;\n VirtIODevice * vdev ;\n if ( proxy -> class_code != PCI_CLASS_STORAGE_SCSI && proxy -> class_code != PCI_CLASS_STORAGE_OTHER ) proxy -> class_code = PCI_CLASS_STORAGE_SCSI ;\n if ( ! proxy -> dinfo ) {\n qemu_error ( \"virtio-blk-pci: drive property not set\\n\" ) ;\n return - 1 ;\n }\n vdev = virtio_blk_init ( & pci_dev -> qdev , proxy -> dinfo ) ;\n vdev -> nvectors = proxy -> nvectors ;\n virtio_init_pci ( proxy , vdev , PCI_VENDOR_ID_REDHAT_QUMRANET , PCI_DEVICE_ID_VIRTIO_BLOCK , proxy -> class_code , 0x00 ) ;\n proxy -> nvectors = vdev -> nvectors ;\n return 0 ;\n }"}
{"idx": 10522, "target": 0, "func": "static PyObject * authGSSClientResponseConf ( PyObject * self , PyObject * args ) {\n gss_client_state * state ;\n PyObject * pystate ;\n if ( ! PyArg_ParseTuple ( args , \"O\" , & pystate ) ) return NULL ;\n # if PY_MAJOR_VERSION >= 3 if ( ! PyCapsule_CheckExact ( pystate ) ) {\n # else if ( ! PyCObject_Check ( pystate ) ) {\n # endif PyErr_SetString ( PyExc_TypeError , \"Expected a context object\" ) ;\n return NULL ;\n }\n # if PY_MAJOR_VERSION >= 3 state = PyCapsule_GetPointer ( pystate , NULL ) ;\n # else state = ( gss_client_state * ) PyCObject_AsVoidPtr ( pystate ) ;\n # endif if ( state == NULL ) return NULL ;\n return Py_BuildValue ( \"i\" , state -> responseConf ) ;\n }"}
{"idx": 10523, "target": 0, "func": "static void register_smram_listener ( Notifier * n , void * unused ) {\n MemoryRegion * smram = ( MemoryRegion * ) object_resolve_path ( \"/machine/smram\" , NULL ) ;\n memory_region_init ( & smram_as_root , OBJECT ( kvm_state ) , \"mem-container-smram\" , ~ 0ull ) ;\n memory_region_set_enabled ( & smram_as_root , true ) ;\n memory_region_init_alias ( & smram_as_mem , OBJECT ( kvm_state ) , \"mem-smram\" , get_system_memory ( ) , 0 , ~ 0ull ) ;\n memory_region_add_subregion_overlap ( & smram_as_root , 0 , & smram_as_mem , 0 ) ;\n memory_region_set_enabled ( & smram_as_mem , true ) ;\n if ( smram ) {\n memory_region_add_subregion_overlap ( & smram_as_root , 0 , smram , 10 ) ;\n memory_region_set_enabled ( smram , true ) ;\n }\n address_space_init ( & smram_address_space , & smram_as_root , \"KVM-SMRAM\" ) ;\n kvm_memory_listener_register ( kvm_state , & smram_listener , & smram_address_space , 1 ) ;\n }"}
{"idx": 10524, "target": 0, "func": "static void pdf_run_gs_ca ( fz_context * ctx , pdf_processor * proc , float alpha ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_gstate * gstate = pdf_flush_text ( ctx , pr ) ;\n gstate -> fill . alpha = fz_clamp ( alpha , 0 , 1 ) ;\n }"}
{"idx": 10525, "target": 0, "func": "int dissect_h225_ReleaseCompleteReason ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 713 \"./asn1/h225/h225.cnf\" gint32 value ;\n h225_packet_info * h225_pi ;\n h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_ReleaseCompleteReason , ReleaseCompleteReason_choice , & value ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> reason = value ;\n }\n return offset ;\n }"}
{"idx": 10526, "target": 1, "func": "guint16 de_mid ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string , int string_len ) {\n guint8 oct ;\n guint32 curr_offset ;\n guint32 value ;\n gboolean odd ;\n const gchar * digit_str ;\n proto_item * ti ;\n curr_offset = offset ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n switch ( oct & 0x07 ) {\n case 0 : proto_tree_add_item ( tree , hf_gsm_a_unused , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_odd_even_ind , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_mobile_identity_type , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n if ( add_string ) g_snprintf ( add_string , string_len , \" - No Identity Code\" ) ;\n curr_offset ++ ;\n if ( len > 1 ) {\n expert_add_info ( pinfo , tree , & ei_gsm_a_format_not_supported ) ;\n }\n curr_offset += len - 1 ;\n break ;\n case 3 : case 1 : odd = oct & 0x08 ;\n proto_tree_add_item ( tree , hf_gsm_a_id_dig_1 , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_odd_even_ind , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_mobile_identity_type , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n if ( ( oct & 0x07 ) == 3 ) {\n digit_str = tvb_bcd_dig_to_wmem_packet_str ( tvb , curr_offset , len - ( curr_offset - offset ) , NULL , TRUE ) ;\n proto_tree_add_string_format ( tree , hf_gsm_a_imeisv , tvb , curr_offset , len - ( curr_offset - offset ) , digit_str , \"BCD Digits: %s\" , digit_str ) ;\n }\n else {\n digit_str = dissect_e212_imsi ( tvb , pinfo , tree , curr_offset , len - ( curr_offset - offset ) , TRUE ) ;\n }\n if ( sccp_assoc && ! sccp_assoc -> calling_party ) {\n sccp_assoc -> calling_party = wmem_strdup_printf ( wmem_file_scope ( ) , ( ( oct & 0x07 ) == 3 ) ? \"IMEISV: %s\" : \"IMSI: %s\" , digit_str ) ;\n }\n if ( add_string ) g_snprintf ( add_string , string_len , \" - %s (%s)\" , ( ( oct & 0x07 ) == 3 ) ? \"IMEISV\" : \"IMSI\" , digit_str ) ;\n curr_offset += len - ( curr_offset - offset ) ;\n if ( ! odd ) {\n proto_tree_add_item ( tree , hf_gsm_a_filler , tvb , curr_offset - 1 , 1 , ENC_NA ) ;\n }\n break ;\n case 2 : proto_tree_add_uint_format_value ( tree , hf_gsm_a_identity_digit1 , tvb , curr_offset , 1 , oct , \"%c\" , Dgt1_9_bcd . out [ ( oct & 0xf0 ) >> 4 ] ) ;\n proto_tree_add_item ( tree , hf_gsm_a_odd_even_ind , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_mobile_identity_type , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n if ( curr_offset - offset >= len ) return ( curr_offset - offset ) ;\n digit_str = tvb_bcd_dig_to_wmem_packet_str ( tvb , curr_offset , len - ( curr_offset - offset ) , NULL , FALSE ) ;\n proto_tree_add_string_format ( tree , hf_gsm_a_imei , tvb , curr_offset , len - ( curr_offset - offset ) , digit_str , \"BCD Digits: %s\" , digit_str ) ;\n if ( add_string ) g_snprintf ( add_string , string_len , \" - IMEI (%s)\" , digit_str ) ;\n curr_offset += len - ( curr_offset - offset ) ;\n break ;\n case 4 : proto_tree_add_item ( tree , hf_gsm_a_unused , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_odd_even_ind , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_mobile_identity_type , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n value = tvb_get_ntohl ( tvb , curr_offset ) ;\n proto_tree_add_uint ( tree , hf_gsm_a_tmsi , tvb , curr_offset , 4 , value ) ;\n if ( add_string ) g_snprintf ( add_string , string_len , \" - TMSI/P-TMSI (0x%04x)\" , value ) ;\n curr_offset += 4 ;\n break ;\n case 5 : proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , curr_offset << 3 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_mbs_ses_id_ind , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_tmgi_mcc_mnc_ind , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_odd_even_ind , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_mobile_identity_type , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n proto_tree_add_item ( tree , hf_gsm_a_mbs_service_id , tvb , curr_offset , 3 , ENC_BIG_ENDIAN ) ;\n curr_offset += 3 ;\n if ( ( oct & 0x10 ) == 0x10 ) {\n curr_offset = dissect_e212_mcc_mnc ( tvb , pinfo , tree , curr_offset , E212_NONE , TRUE ) ;\n }\n if ( ( oct & 0x20 ) == 0x20 ) {\n proto_tree_add_item ( tree , hf_gsm_a_mbs_session_id , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n }\n break ;\n default : proto_tree_add_item ( tree , hf_gsm_a_odd_even_ind , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n ti = proto_tree_add_item ( tree , hf_gsm_a_mobile_identity_type , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n expert_add_info_format ( pinfo , ti , & ei_gsm_a_mobile_identity_type , \"Unknown format %u\" , ( oct & 0x07 ) ) ;\n if ( add_string ) g_snprintf ( add_string , string_len , \" - Format Unknown\" ) ;\n curr_offset += len ;\n break ;\n }\n EXTRANEOUS_DATA_CHECK ( len , curr_offset - offset , pinfo , & ei_gsm_a_extraneous_data ) ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 10527, "target": 0, "func": "int dtls1_retransmit_message ( SSL * s , unsigned short seq , unsigned long frag_off , int * found ) {\n int ret ;\n pitem * item ;\n hm_fragment * frag ;\n unsigned long header_length ;\n unsigned char seq64be [ 8 ] ;\n struct dtls1_retransmit_state saved_state ;\n unsigned char save_write_sequence [ 8 ] ;\n memset ( seq64be , 0 , sizeof ( seq64be ) ) ;\n seq64be [ 6 ] = ( unsigned char ) ( seq >> 8 ) ;\n seq64be [ 7 ] = ( unsigned char ) seq ;\n item = pqueue_find ( s -> d1 -> sent_messages , seq64be ) ;\n if ( item == NULL ) {\n fprintf ( stderr , \"retransmit: message %d non-existant\\n\" , seq ) ;\n * found = 0 ;\n return 0 ;\n }\n * found = 1 ;\n frag = ( hm_fragment * ) item -> data ;\n if ( frag -> msg_header . is_ccs ) header_length = DTLS1_CCS_HEADER_LENGTH ;\n else header_length = DTLS1_HM_HEADER_LENGTH ;\n memcpy ( s -> init_buf -> data , frag -> fragment , frag -> msg_header . msg_len + header_length ) ;\n s -> init_num = frag -> msg_header . msg_len + header_length ;\n dtls1_set_message_header_int ( s , frag -> msg_header . type , frag -> msg_header . msg_len , frag -> msg_header . seq , 0 , frag -> msg_header . frag_len ) ;\n saved_state . enc_write_ctx = s -> enc_write_ctx ;\n saved_state . write_hash = s -> write_hash ;\n saved_state . compress = s -> compress ;\n saved_state . session = s -> session ;\n saved_state . epoch = s -> d1 -> w_epoch ;\n saved_state . epoch = s -> d1 -> w_epoch ;\n s -> d1 -> retransmitting = 1 ;\n s -> enc_write_ctx = frag -> msg_header . saved_retransmit_state . enc_write_ctx ;\n s -> write_hash = frag -> msg_header . saved_retransmit_state . write_hash ;\n s -> compress = frag -> msg_header . saved_retransmit_state . compress ;\n s -> session = frag -> msg_header . saved_retransmit_state . session ;\n s -> d1 -> w_epoch = frag -> msg_header . saved_retransmit_state . epoch ;\n if ( frag -> msg_header . saved_retransmit_state . epoch == saved_state . epoch - 1 ) {\n memcpy ( save_write_sequence , s -> s3 -> write_sequence , sizeof ( s -> s3 -> write_sequence ) ) ;\n memcpy ( s -> s3 -> write_sequence , s -> d1 -> last_write_sequence , sizeof ( s -> s3 -> write_sequence ) ) ;\n }\n ret = dtls1_do_write ( s , frag -> msg_header . is_ccs ? SSL3_RT_CHANGE_CIPHER_SPEC : SSL3_RT_HANDSHAKE ) ;\n s -> enc_write_ctx = saved_state . enc_write_ctx ;\n s -> write_hash = saved_state . write_hash ;\n s -> compress = saved_state . compress ;\n s -> session = saved_state . session ;\n s -> d1 -> w_epoch = saved_state . epoch ;\n if ( frag -> msg_header . saved_retransmit_state . epoch == saved_state . epoch - 1 ) {\n memcpy ( s -> d1 -> last_write_sequence , s -> s3 -> write_sequence , sizeof ( s -> s3 -> write_sequence ) ) ;\n memcpy ( s -> s3 -> write_sequence , save_write_sequence , sizeof ( s -> s3 -> write_sequence ) ) ;\n }\n s -> d1 -> retransmitting = 0 ;\n ( void ) BIO_flush ( SSL_get_wbio ( s ) ) ;\n return ret ;\n }"}
{"idx": 10528, "target": 0, "func": "static int tscc2_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n TSCC2Context * c = avctx -> priv_data ;\n GetByteContext gb ;\n uint32_t frame_type , size ;\n int i , val , len , pos = 0 ;\n int num_mb = c -> mb_width * c -> mb_height ;\n int ret ;\n bytestream2_init ( & gb , buf , buf_size ) ;\n frame_type = bytestream2_get_byte ( & gb ) ;\n if ( frame_type > 1 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Incorrect frame type %d\\n\" , frame_type ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ( ret = ff_reget_buffer ( avctx , & c -> pic ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( frame_type == 0 ) {\n * got_frame = 1 ;\n if ( ( ret = av_frame_ref ( data , & c -> pic ) ) < 0 ) return ret ;\n return buf_size ;\n }\n if ( bytestream2_get_bytes_left ( & gb ) < 4 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Frame is too short\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n c -> quant [ 0 ] = bytestream2_get_byte ( & gb ) ;\n c -> quant [ 1 ] = bytestream2_get_byte ( & gb ) ;\n if ( c -> quant [ 0 ] < 2 || c -> quant [ 0 ] > NUM_VLC_SETS + 1 || c -> quant [ 1 ] < 2 || c -> quant [ 1 ] > NUM_VLC_SETS + 1 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid quantisers %d / %d\\n\" , c -> quant [ 0 ] , c -> quant [ 1 ] ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n c -> q [ 0 ] [ i ] = tscc2_quants [ c -> quant [ 0 ] - 2 ] [ i ] ;\n c -> q [ 1 ] [ i ] = tscc2_quants [ c -> quant [ 1 ] - 2 ] [ i ] ;\n }\n bytestream2_skip ( & gb , 1 ) ;\n size = bytestream2_get_le32 ( & gb ) ;\n if ( size > bytestream2_get_bytes_left ( & gb ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Slice properties chunk is too large\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( i = 0 ;\n i < size ;\n i ++ ) {\n val = bytestream2_get_byte ( & gb ) ;\n len = val & 0x3F ;\n val >>= 6 ;\n if ( pos + len > num_mb ) {\n av_log ( avctx , AV_LOG_ERROR , \"Too many slice properties\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n memset ( c -> slice_quants + pos , val , len ) ;\n pos += len ;\n }\n if ( pos < num_mb ) {\n av_log ( avctx , AV_LOG_ERROR , \"Too few slice properties (%d / %d)\\n\" , pos , num_mb ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( i = 0 ;\n i < c -> mb_height ;\n i ++ ) {\n size = bytestream2_peek_byte ( & gb ) ;\n if ( size & 1 ) {\n size = bytestream2_get_byte ( & gb ) - 1 ;\n }\n else {\n size = bytestream2_get_le32 ( & gb ) >> 1 ;\n }\n if ( ! size ) {\n int skip_row = 1 , j , off = i * c -> mb_width ;\n for ( j = 0 ;\n j < c -> mb_width ;\n j ++ ) {\n if ( c -> slice_quants [ off + j ] == 1 || c -> slice_quants [ off + j ] == 2 ) {\n skip_row = 0 ;\n break ;\n }\n }\n if ( ! skip_row ) {\n av_log ( avctx , AV_LOG_ERROR , \"Non-skip row with zero size\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n if ( bytestream2_get_bytes_left ( & gb ) < size ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid slice size (%d/%d)\\n\" , size , bytestream2_get_bytes_left ( & gb ) ) ;\n return AVERROR_INVALIDDATA ;\n }\n ret = tscc2_decode_slice ( c , i , buf + bytestream2_tell ( & gb ) , size ) ;\n if ( ret ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error decoding slice %d\\n\" , i ) ;\n return ret ;\n }\n bytestream2_skip ( & gb , size ) ;\n }\n * got_frame = 1 ;\n if ( ( ret = av_frame_ref ( data , & c -> pic ) ) < 0 ) return ret ;\n return buf_size ;\n }"}
{"idx": 10529, "target": 0, "func": "REGRESSION_TEST ( SDK_API_TSIOBufferStart ) ( RegressionTest * test , int , int * pstatus ) {\n bool test_passed = false ;\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n TSIOBuffer bufp = TSIOBufferSizedCreate ( TS_IOBUFFER_SIZE_INDEX_4K ) ;\n TSIOBufferReader readerp = TSIOBufferReaderAlloc ( bufp ) ;\n if ( TSIOBufferStart ( bufp ) == TSIOBufferReaderStart ( readerp ) ) {\n SDK_RPRINT ( test , \"TSIOBufferStart\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( test , \"TSIOBufferReaderStart\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSIOBufferStart\" , \"TestCase1\" , TC_FAIL , \"failed\" ) ;\n SDK_RPRINT ( test , \"TSIOBufferReaderStart\" , \"TestCase1\" , TC_FAIL , \"failed\" ) ;\n }\n * pstatus = ( ( test_passed == true ) ? REGRESSION_TEST_PASSED : REGRESSION_TEST_FAILED ) ;\n return ;\n }"}
{"idx": 10530, "target": 0, "func": "static void test_bug1664 ( ) {\n MYSQL_STMT * stmt ;\n int rc , int_data ;\n const char * data ;\n const char * str_data = \"Simple string\" ;\n MYSQL_BIND my_bind [ 2 ] ;\n const char * query = \"INSERT INTO test_long_data(col2, col1) VALUES(?, ?)\" ;\n myheader ( \"test_bug1664\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_long_data\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_long_data(col1 int, col2 long varchar)\" ) ;\n myquery ( rc ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_prepare ( stmt , query , strlen ( query ) ) ;\n check_execute ( stmt , rc ) ;\n verify_param_count ( stmt , 2 ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 0 ] . buffer = ( void * ) str_data ;\n my_bind [ 0 ] . buffer_length = strlen ( str_data ) ;\n my_bind [ 1 ] . buffer = ( void * ) & int_data ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_LONG ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n int_data = 1 ;\n data = \"\" ;\n rc = mysql_stmt_send_long_data ( stmt , 0 , data , strlen ( data ) ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n verify_col_data ( \"test_long_data\" , \"col1\" , \"1\" ) ;\n verify_col_data ( \"test_long_data\" , \"col2\" , \"\" ) ;\n rc = mysql_query ( mysql , \"DELETE FROM test_long_data\" ) ;\n myquery ( rc ) ;\n data = ( char * ) \"Data\" ;\n rc = mysql_stmt_send_long_data ( stmt , 0 , data , strlen ( data ) ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n verify_col_data ( \"test_long_data\" , \"col1\" , \"1\" ) ;\n verify_col_data ( \"test_long_data\" , \"col2\" , \"Data\" ) ;\n rc = mysql_query ( mysql , \"DELETE FROM test_long_data\" ) ;\n myquery ( rc ) ;\n int_data = 2 ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n verify_col_data ( \"test_long_data\" , \"col1\" , \"2\" ) ;\n verify_col_data ( \"test_long_data\" , \"col2\" , str_data ) ;\n rc = mysql_query ( mysql , \"DELETE FROM test_long_data\" ) ;\n myquery ( rc ) ;\n data = ( char * ) \"SomeOtherData\" ;\n rc = mysql_stmt_send_long_data ( stmt , 0 , data , strlen ( data ) ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n verify_col_data ( \"test_long_data\" , \"col1\" , \"2\" ) ;\n verify_col_data ( \"test_long_data\" , \"col2\" , \"SomeOtherData\" ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"DELETE FROM test_long_data\" ) ;\n myquery ( rc ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_prepare ( stmt , query , strlen ( query ) ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n data = ( char * ) \"SomeData\" ;\n rc = mysql_stmt_send_long_data ( stmt , 0 , data , strlen ( data ) ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_reset ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n verify_col_data ( \"test_long_data\" , \"col1\" , \"2\" ) ;\n verify_col_data ( \"test_long_data\" , \"col2\" , str_data ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"DROP TABLE test_long_data\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 10531, "target": 0, "func": "static int dissect_rsl_ie_sup_codec_types ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_item * ti ;\n proto_tree * ie_tree ;\n guint length ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_SUP_CODEC_TYPES ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_ie_sup_codec_types , & ti , \"Supported Codec Types IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n length = tvb_get_guint8 ( tvb , offset ) ;\n proto_item_set_len ( ti , length + 2 ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_length , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( tree , hf_rsl_codec_list , tvb , offset , length , ENC_NA ) ;\n return offset + length ;\n }"}
{"idx": 10532, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , TestLoadEnabledGetsPropogatedToIO ) {\n std : : string mailto ( \"mailto\" ) ;\n ProtocolHandler ph1 = CreateProtocolHandler ( mailto , \"MailtoHandler\" ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ;\n scoped_ptr < ProtocolHandlerRegistry : : JobInterceptorFactory > interceptor ( registry ( ) -> CreateJobInterceptorFactory ( ) ) ;\n AssertWillHandle ( mailto , true , interceptor . get ( ) ) ;\n registry ( ) -> Disable ( ) ;\n AssertWillHandle ( mailto , false , interceptor . get ( ) ) ;\n }"}
{"idx": 10533, "target": 1, "func": "extern int name ( int , locale_t ) __THROW __exctype_l ( isalnum_l ) ;\n __exctype_l ( isalpha_l ) ;\n __exctype_l ( iscntrl_l ) ;\n __exctype_l ( isdigit_l ) ;\n __exctype_l ( islower_l ) ;\n __exctype_l ( isgraph_l ) ;\n __exctype_l ( isprint_l )"}
{"idx": 10534, "target": 0, "func": "int mbfl_buffer_converter_flush ( mbfl_buffer_converter * convd ) {\n if ( convd == NULL ) {\n return - 1 ;\n }\n if ( convd -> filter1 != NULL ) {\n mbfl_convert_filter_flush ( convd -> filter1 ) ;\n }\n if ( convd -> filter2 != NULL ) {\n mbfl_convert_filter_flush ( convd -> filter2 ) ;\n }\n return 0 ;\n }"}
{"idx": 10535, "target": 0, "func": "static void dissect_iax2 ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree ) {\n proto_item * iax2_item ;\n proto_tree * iax2_tree ;\n proto_tree * full_mini_subtree = NULL ;\n guint32 offset = 0 , len ;\n guint16 scallno = 0 ;\n guint16 stmp ;\n packet_type type ;\n proto_item * full_mini_base ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , PROTO_TAG_IAX2 ) ;\n col_clear ( pinfo -> cinfo , COL_INFO ) ;\n iax2_item = proto_tree_add_item ( tree , proto_iax2 , tvb , offset , - 1 , ENC_NA ) ;\n iax2_tree = proto_item_add_subtree ( iax2_item , ett_iax2 ) ;\n stmp = tvb_get_ntohs ( tvb , offset ) ;\n if ( stmp == 0 ) {\n offset += 2 ;\n stmp = tvb_get_ntohs ( tvb , offset ) ;\n if ( stmp & 0x8000 ) {\n type = IAX2_MINI_VIDEO_PACKET ;\n scallno = stmp & 0x7FFF ;\n offset += 2 ;\n }\n else {\n type = IAX2_TRUNK_PACKET ;\n }\n }\n else {\n scallno = tvb_get_ntohs ( tvb , offset ) ;\n offset += 2 ;\n if ( scallno & 0x8000 ) type = IAX2_FULL_PACKET ;\n else {\n type = IAX2_MINI_VOICE_PACKET ;\n }\n scallno &= 0x7FFF ;\n }\n full_mini_base = proto_tree_add_uint ( iax2_tree , hf_iax2_packet_type , tvb , 0 , offset , type ) ;\n full_mini_subtree = proto_item_add_subtree ( full_mini_base , ett_iax2_full_mini_subtree ) ;\n if ( scallno != 0 ) proto_tree_add_item ( full_mini_subtree , hf_iax2_scallno , tvb , offset - 2 , 2 , ENC_BIG_ENDIAN ) ;\n iax2_info -> ptype = type ;\n iax2_info -> scallno = 0 ;\n iax2_info -> dcallno = 0 ;\n iax2_info -> ftype = 0 ;\n iax2_info -> csub = 0 ;\n iax2_info -> payload_len = 0 ;\n iax2_info -> timestamp = 0 ;\n iax2_info -> callState = VOIP_NO_STATE ;\n iax2_info -> messageName = NULL ;\n iax2_info -> callingParty = NULL ;\n iax2_info -> calledParty = NULL ;\n iax2_info -> payload_data = NULL ;\n switch ( type ) {\n case IAX2_FULL_PACKET : len = dissect_fullpacket ( tvb , offset , scallno , pinfo , full_mini_subtree , tree ) ;\n break ;\n case IAX2_MINI_VOICE_PACKET : iax2_info -> messageName = \"MINI_VOICE_PACKET\" ;\n len = dissect_minipacket ( tvb , offset , scallno , pinfo , full_mini_subtree , tree ) ;\n break ;\n case IAX2_MINI_VIDEO_PACKET : iax2_info -> messageName = \"MINI_VIDEO_PACKET\" ;\n len = dissect_minivideopacket ( tvb , offset , scallno , pinfo , full_mini_subtree , tree ) ;\n break ;\n case IAX2_TRUNK_PACKET : iax2_info -> messageName = \"TRUNK_PACKET\" ;\n len = dissect_trunkpacket ( tvb , offset , scallno , pinfo , full_mini_subtree , tree ) ;\n break ;\n default : len = 0 ;\n }\n proto_item_set_len ( iax2_item , len ) ;\n tap_queue_packet ( iax2_tap , pinfo , iax2_info ) ;\n }"}
{"idx": 10536, "target": 0, "func": "static void pk_transaction_download_packages ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) {\n gboolean ret ;\n gint retval ;\n guint length ;\n gboolean store_in_cache ;\n g_autoptr ( GError ) error = NULL ;\n g_autofree gchar * directory = NULL ;\n g_autofree gchar * * package_ids = NULL ;\n g_autofree gchar * package_ids_temp = NULL ;\n g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;\n g_return_if_fail ( transaction -> priv -> tid != NULL ) ;\n g_variant_get ( params , \"(b^a&s)\" , & store_in_cache , & package_ids ) ;\n package_ids_temp = pk_package_ids_to_string ( package_ids ) ;\n g_debug ( \"DownloadPackages method called: %s\" , package_ids_temp ) ;\n if ( ! pk_backend_is_implemented ( transaction -> priv -> backend , PK_ROLE_ENUM_DOWNLOAD_PACKAGES ) ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NOT_SUPPORTED , \"DownloadPackages not supported by backend\" ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n length = g_strv_length ( package_ids ) ;\n if ( length > PK_TRANSACTION_MAX_PACKAGES_TO_PROCESS ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NUMBER_OF_PACKAGES_INVALID , \"Too many packages to process (%i/%i)\" , length , PK_TRANSACTION_MAX_PACKAGES_TO_PROCESS ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n ret = pk_package_ids_check ( package_ids ) ;\n if ( ! ret ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_PACKAGE_ID_INVALID , \"The package id's '%s' are not valid\" , package_ids_temp ) ;\n goto out ;\n }\n if ( ! store_in_cache ) {\n directory = g_build_filename ( LOCALSTATEDIR , \"cache\" , \"PackageKit\" , \"downloads\" , transaction -> priv -> tid , NULL ) ;\n retval = g_mkdir_with_parents ( directory , 0775 ) ;\n if ( retval != 0 ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_DENIED , \"cannot create %s\" , directory ) ;\n goto out ;\n }\n }\n transaction -> priv -> cached_package_ids = g_strdupv ( package_ids ) ;\n transaction -> priv -> cached_directory = g_strdup ( directory ) ;\n pk_transaction_set_role ( transaction , PK_ROLE_ENUM_DOWNLOAD_PACKAGES ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_READY ) ;\n out : pk_transaction_dbus_return ( context , error ) ;\n }"}
{"idx": 10537, "target": 0, "func": "static void kadm5_free_principal ( krb5_context context , krb5_principal val ) {\n register krb5_int32 i ;\n if ( ! val ) return ;\n if ( val -> data ) {\n i = krb5_princ_size ( context , val ) ;\n while ( -- i >= 0 ) krb5_db_free ( context , krb5_princ_component ( context , val , i ) -> data ) ;\n krb5_db_free ( context , val -> data ) ;\n }\n if ( val -> realm . data ) krb5_db_free ( context , val -> realm . data ) ;\n krb5_db_free ( context , val ) ;\n }"}
{"idx": 10538, "target": 0, "func": "static MAIN_WINDOW_REC * mainwindows_find_lower_right ( MAIN_WINDOW_REC * window ) {\n MAIN_WINDOW_REC * best ;\n best = mainwindows_find_right ( window , FALSE ) ;\n if ( best == NULL ) best = mainwindows_find_lower ( window ) ;\n return best ;\n }"}
{"idx": 10539, "target": 0, "func": "void nautilus_directory_stop_monitoring_file_list ( NautilusDirectory * directory ) {\n if ( ! directory -> details -> file_list_monitored ) {\n g_assert ( directory -> details -> directory_load_in_progress == NULL ) ;\n return ;\n }\n directory -> details -> file_list_monitored = FALSE ;\n file_list_cancel ( directory ) ;\n nautilus_file_list_unref ( directory -> details -> file_list ) ;\n directory -> details -> directory_loaded = FALSE ;\n }"}
{"idx": 10540, "target": 0, "func": "int dissect_ber_constrained_integer ( gboolean implicit_tag , asn1_ctx_t * actx , proto_tree * tree , tvbuff_t * tvb , int offset , gint32 min_len , gint32 max_len , gint hf_id , guint32 * value ) {\n gint64 val ;\n offset = dissect_ber_integer64 ( implicit_tag , actx , tree , tvb , offset , hf_id , & val ) ;\n if ( value ) {\n * value = ( guint32 ) val ;\n }\n ber_check_value ( ( guint32 ) val , min_len , max_len , actx , actx -> created_item ) ;\n return offset ;\n }"}
{"idx": 10541, "target": 0, "func": "static int proc_releaseinterface ( struct usb_dev_state * ps , void __user * arg ) {\n unsigned int ifnum ;\n int ret ;\n if ( get_user ( ifnum , ( unsigned int __user * ) arg ) ) return - EFAULT ;\n ret = releaseintf ( ps , ifnum ) ;\n if ( ret < 0 ) return ret ;\n destroy_async_on_interface ( ps , ifnum ) ;\n return 0 ;\n }"}
{"idx": 10542, "target": 0, "func": "static void die ( int error_num , const char * fmt_reason , ... ) {\n char buffer [ 1000 ] ;\n va_list args ;\n va_start ( args , fmt_reason ) ;\n my_vsnprintf ( buffer , sizeof ( buffer ) , fmt_reason , args ) ;\n va_end ( args ) ;\n fprintf ( stderr , \"%s: %s\\n\" , my_progname_short , buffer ) ;\n fflush ( stderr ) ;\n ignore_errors = 0 ;\n maybe_exit ( error_num ) ;\n }"}
{"idx": 10543, "target": 0, "func": "static int dissect_h225_T_pdu_item ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_T_pdu_item , T_pdu_item_sequence ) ;\n return offset ;\n }"}
{"idx": 10544, "target": 0, "func": "static void test_persistent ( void ) {\n struct event ev , ev2 ;\n int i ;\n setup_test ( \"Persist read/write: \" ) ;\n memset ( rbuf , 0 , sizeof ( rbuf ) ) ;\n for ( i = 0 ;\n i < sizeof ( wbuf ) ;\n i ++ ) wbuf [ i ] = i ;\n roff = woff = 0 ;\n usepersist = 1 ;\n event_set ( & ev , pair [ 0 ] , EV_WRITE | EV_PERSIST , multiple_write_cb , & ev ) ;\n if ( event_add ( & ev , NULL ) == - 1 ) exit ( 1 ) ;\n event_set ( & ev2 , pair [ 1 ] , EV_READ | EV_PERSIST , multiple_read_cb , & ev2 ) ;\n if ( event_add ( & ev2 , NULL ) == - 1 ) exit ( 1 ) ;\n event_dispatch ( ) ;\n if ( roff == woff ) test_ok = memcmp ( rbuf , wbuf , sizeof ( wbuf ) ) == 0 ;\n cleanup_test ( ) ;\n }"}
{"idx": 10545, "target": 0, "func": "static uint32_t e1000e_mac_ics_read ( E1000ECore * core , int index ) {\n trace_e1000e_irq_read_ics ( core -> mac [ ICS ] ) ;\n return core -> mac [ ICS ] ;\n }"}
{"idx": 10546, "target": 0, "func": "static int add_slave_statements ( void ) {\n if ( opt_comments ) fprintf ( md_result_file , \"\\n--\\n-- start slave statement to make a recovery dump)\\n--\\n\\n\" ) ;\n fprintf ( md_result_file , \"START SLAVE;\n\\n\" ) ;\n return ( 0 ) ;\n }"}
{"idx": 10547, "target": 0, "func": "METHOD ( certificate_t , equals , bool , private_x509_cert_t * this , certificate_t * other ) {\n chunk_t encoding ;\n bool equal ;\n if ( this == ( private_x509_cert_t * ) other ) {\n return TRUE ;\n }\n if ( other -> get_type ( other ) != CERT_X509 ) {\n return FALSE ;\n }\n if ( other -> equals == ( void * ) equals ) {\n return chunk_equals ( this -> encoding , ( ( private_x509_cert_t * ) other ) -> encoding ) ;\n }\n if ( ! other -> get_encoding ( other , CERT_ASN1_DER , & encoding ) ) {\n return FALSE ;\n }\n equal = chunk_equals ( this -> encoding , encoding ) ;\n free ( encoding . ptr ) ;\n return equal ;\n }"}
{"idx": 10548, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( HttpsEngagementPageLoadMetricsBrowserTest , OtherScheme ) {\n NavigateInForegroundAndCloseWithTiming ( GURL ( chrome : : kChromeUIVersionURL ) ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpEngagementHistogram , 0 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementHistogram , 0 ) ;\n FakeUserMetricsUpload ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementSessionPercentage , 0 ) ;\n }"}
{"idx": 10549, "target": 0, "func": "static void spl_filesystem_file_free_line ( spl_filesystem_object * intern TSRMLS_DC ) {\n if ( intern -> u . file . current_line ) {\n efree ( intern -> u . file . current_line ) ;\n intern -> u . file . current_line = NULL ;\n }\n if ( intern -> u . file . current_zval ) {\n zval_ptr_dtor ( & intern -> u . file . current_zval ) ;\n intern -> u . file . current_zval = NULL ;\n }\n }"}
{"idx": 10550, "target": 0, "func": "static void U_CALLCONV _CompoundTextClose ( UConverter * converter ) {\n UConverterDataCompoundText * myConverterData = ( UConverterDataCompoundText * ) ( converter -> extraInfo ) ;\n int32_t i ;\n if ( converter -> extraInfo != NULL ) {\n for ( i = 0 ;\n i < NUM_OF_CONVERTERS ;\n i ++ ) {\n if ( myConverterData -> myConverterArray [ i ] != NULL ) {\n ucnv_unloadSharedDataIfReady ( myConverterData -> myConverterArray [ i ] ) ;\n }\n }\n uprv_free ( converter -> extraInfo ) ;\n }\n }"}
{"idx": 10551, "target": 0, "func": "void raw6_icmp_error ( struct sk_buff * skb , int nexthdr , u8 type , u8 code , int inner_offset , __be32 info ) {\n struct sock * sk ;\n int hash ;\n struct in6_addr * saddr , * daddr ;\n struct net * net ;\n hash = nexthdr & ( RAW_HTABLE_SIZE - 1 ) ;\n read_lock ( & raw_v6_hashinfo . lock ) ;\n sk = sk_head ( & raw_v6_hashinfo . ht [ hash ] ) ;\n if ( sk != NULL ) {\n struct ipv6hdr * ip6h = ( struct ipv6hdr * ) skb -> data ;\n saddr = & ip6h -> saddr ;\n daddr = & ip6h -> daddr ;\n net = dev_net ( skb -> dev ) ;\n while ( ( sk = __raw_v6_lookup ( net , sk , nexthdr , saddr , daddr , IP6CB ( skb ) -> iif ) ) ) {\n rawv6_err ( sk , skb , NULL , type , code , inner_offset , info ) ;\n sk = sk_next ( sk ) ;\n }\n }\n read_unlock ( & raw_v6_hashinfo . lock ) ;\n }"}
{"idx": 10552, "target": 0, "func": "void proto_register_netbios ( void ) {\n static gint * ett [ ] = {\n & ett_netb , & ett_netb_name , & ett_netb_flags , & ett_netb_status , & ett_netb_fragments , & ett_netb_fragment , }\n ;\n static hf_register_info hf_netb [ ] = {\n {\n & hf_netb_cmd , {\n \"Command\" , \"netbios.command\" , FT_UINT8 , BASE_HEX | BASE_EXT_STRING , & cmd_vals_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_netb_hdr_len , {\n \"Length\" , \"netbios.hdr_len\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Header Length\" , HFILL }\n }\n , {\n & hf_netb_delimiter , {\n \"Delimiter\" , \"netbios.delimiter\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_netb_xmit_corrl , {\n \"Transmit Correlator\" , \"netbios.xmit_corrl\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_netb_resp_corrl , {\n \"Response Correlator\" , \"netbios.resp_corrl\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_netb_call_name_type , {\n \"Caller's Name Type\" , \"netbios.call_name_type\" , FT_UINT8 , BASE_HEX , VALS ( name_types ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_netb_nb_name_type , {\n \"NetBIOS Name Type\" , \"netbios.nb_name_type\" , FT_UINT8 , BASE_HEX | BASE_EXT_STRING , & nb_name_type_vals_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_netb_nb_name , {\n \"NetBIOS Name\" , \"netbios.nb_name\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_netb_version , {\n \"NetBIOS Version\" , \"netbios.version\" , FT_BOOLEAN , 8 , TFS ( & netb_version_str ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_netbios_no_receive_flags , {\n \"Flags\" , \"netbios.no_receive_flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_netbios_no_receive_flags_send_no_ack , {\n \"SEND.NO.ACK data received\" , \"netbios.no_receive_flags.send_no_ack\" , FT_BOOLEAN , 8 , TFS ( & tfs_no_yes ) , 0x02 , NULL , HFILL }\n }\n , {\n & hf_netb_largest_frame , {\n \"Largest Frame\" , \"netbios.largest_frame\" , FT_UINT8 , BASE_DEC , VALS ( max_frame_size_vals ) , 0x0E , NULL , HFILL }\n }\n , {\n & hf_netb_status_buffer_len , {\n \"Length of status buffer\" , \"netbios.status_buffer_len\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_netb_status , {\n \"Status\" , \"netbios.status\" , FT_UINT8 , BASE_DEC , VALS ( status_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_netb_name_type , {\n \"Name type\" , \"netbios.name_type\" , FT_UINT16 , BASE_DEC , VALS ( name_types ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_netb_max_data_recv_size , {\n \"Maximum data receive size\" , \"netbios.max_data_recv_size\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_netb_termination_indicator , {\n \"Termination indicator\" , \"netbios.termination_indicator\" , FT_UINT16 , BASE_HEX , VALS ( termination_indicator_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_netb_num_data_bytes_accepted , {\n \"Number of data bytes accepted\" , \"netbios.num_data_bytes_accepted\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_netb_local_ses_no , {\n \"Local Session No.\" , \"netbios.local_session\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_netb_remote_ses_no , {\n \"Remote Session No.\" , \"netbios.remote_session\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_netb_flags , {\n \"Flags\" , \"netbios.flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_netb_flags_send_no_ack , {\n \"Handle SEND.NO.ACK\" , \"netbios.flags.send_no_ack\" , FT_BOOLEAN , 8 , TFS ( & tfs_yes_no ) , 0x80 , NULL , HFILL }\n }\n , {\n & hf_netb_flags_ack , {\n \"Acknowledge\" , \"netbios.flags.ack\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , 0x08 , NULL , HFILL }\n }\n , {\n & hf_netb_flags_ack_with_data , {\n \"Acknowledge with data\" , \"netbios.flags.ack_with_data\" , FT_BOOLEAN , 8 , TFS ( & flags_allowed ) , 0x04 , NULL , HFILL }\n }\n , {\n & hf_netb_flags_ack_expected , {\n \"Acknowledge expected\" , \"netbios.flags.ack_expected\" , FT_BOOLEAN , 8 , TFS ( & tfs_yes_no ) , 0x02 , NULL , HFILL }\n }\n , {\n & hf_netb_flags_recv_cont_req , {\n \"RECEIVE_CONTINUE requested\" , \"netbios.flags.recv_cont_req\" , FT_BOOLEAN , 8 , TFS ( & tfs_yes_no ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_netb_data2 , {\n \"DATA2 value\" , \"netbios.data2\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_netb_data2_frame , {\n \"Data length exceeds maximum frame size\" , \"netbios.data2.frame\" , FT_BOOLEAN , 16 , TFS ( & tfs_yes_no ) , 0x8000 , NULL , HFILL }\n }\n , {\n & hf_netb_data2_user , {\n \"Data length exceeds user's buffer\" , \"netbios.data2.user\" , FT_BOOLEAN , 16 , TFS ( & tfs_yes_no ) , 0x4000 , NULL , HFILL }\n }\n , {\n & hf_netb_data2_status , {\n \"Status data length\" , \"netbios.data2.status\" , FT_UINT16 , BASE_DEC , NULL , 0x3FFF , NULL , HFILL }\n }\n , {\n & hf_netb_datagram_mac , {\n \"Sender's MAC Address\" , \"netbios.datagram_mac\" , FT_ETHER , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_netb_datagram_bcast_mac , {\n \"Sender's Node Address\" , \"netbios.datagram_bcast_mac\" , FT_ETHER , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_netb_resync_indicator , {\n \"Re-sync indicator\" , \"netbios.resync_indicator\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_netb_status_request , {\n \"Status request\" , \"netbios.status_request\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_netb_local_session_no , {\n \"Local Session No.\" , \"netbios.local_session_no\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_netb_state_of_name , {\n \"State of name\" , \"netbios.state_of_name\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_netb_status_response , {\n \"Status response\" , \"netbios.status_response\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_netb_fragment_overlap , {\n \"Fragment overlap\" , \"netbios.fragment.overlap\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , \"Fragment overlaps with other fragments\" , HFILL }\n }\n , {\n & hf_netb_fragment_overlap_conflict , {\n \"Conflicting data in fragment overlap\" , \"netbios.fragment.overlap.conflict\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , \"Overlapping fragments contained conflicting data\" , HFILL }\n }\n , {\n & hf_netb_fragment_multiple_tails , {\n \"Multiple tail fragments found\" , \"netbios.fragment.multipletails\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , \"Several tails were found when defragmenting the packet\" , HFILL }\n }\n , {\n & hf_netb_fragment_too_long_fragment , {\n \"Fragment too long\" , \"netbios.fragment.toolongfragment\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , \"Fragment contained data past end of packet\" , HFILL }\n }\n , {\n & hf_netb_fragment_error , {\n \"Defragmentation error\" , \"netbios.fragment.error\" , FT_FRAMENUM , BASE_NONE , NULL , 0x0 , \"Defragmentation error due to illegal fragments\" , HFILL }\n }\n , {\n & hf_netb_fragment_count , {\n \"Fragment count\" , \"netbios.fragment.count\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_netb_fragment , {\n \"NetBIOS Fragment\" , \"netbios.fragment\" , FT_FRAMENUM , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_netb_fragments , {\n \"NetBIOS Fragments\" , \"netbios.fragments\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_netb_reassembled_length , {\n \"Reassembled NetBIOS length\" , \"netbios.reassembled.length\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"The total length of the reassembled payload\" , HFILL }\n }\n , }\n ;\n static ei_register_info ei [ ] = {\n {\n & ei_netb_unknown_command_data , {\n \"netbios.unknown_command_data\" , PI_UNDECODED , PI_WARN , \"Unknown NetBIOS command data\" , EXPFILL }\n }\n , }\n ;\n module_t * netbios_module ;\n expert_module_t * expert_netbios ;\n proto_netbios = proto_register_protocol ( \"NetBIOS\" , \"NetBIOS\" , \"netbios\" ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n proto_register_field_array ( proto_netbios , hf_netb , array_length ( hf_netb ) ) ;\n expert_netbios = expert_register_protocol ( proto_netbios ) ;\n expert_register_field_array ( expert_netbios , ei , array_length ( ei ) ) ;\n netbios_heur_subdissector_list = register_heur_dissector_list ( \"netbios\" , proto_netbios ) ;\n netbios_module = prefs_register_protocol ( proto_netbios , NULL ) ;\n prefs_register_bool_preference ( netbios_module , \"defragment\" , \"Reassemble fragmented NetBIOS messages spanning multiple frames\" , \"Whether the NetBIOS dissector should defragment messages spanning multiple frames\" , & netbios_defragment ) ;\n register_init_routine ( netbios_init ) ;\n register_cleanup_routine ( netbios_cleanup ) ;\n }"}
{"idx": 10553, "target": 0, "func": "static cmsBool Type_LUT8_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) {\n cmsUInt32Number j , nTabSize ;\n cmsUInt8Number val ;\n cmsPipeline * NewLUT = ( cmsPipeline * ) Ptr ;\n cmsStage * mpe ;\n _cmsStageToneCurvesData * PreMPE = NULL , * PostMPE = NULL ;\n _cmsStageMatrixData * MatMPE = NULL ;\n _cmsStageCLutData * clut = NULL ;\n int clutPoints ;\n mpe = NewLUT -> Elements ;\n if ( mpe -> Type == cmsSigMatrixElemType ) {\n MatMPE = ( _cmsStageMatrixData * ) mpe -> Data ;\n mpe = mpe -> Next ;\n }\n if ( mpe != NULL && mpe -> Type == cmsSigCurveSetElemType ) {\n PreMPE = ( _cmsStageToneCurvesData * ) mpe -> Data ;\n mpe = mpe -> Next ;\n }\n if ( mpe != NULL && mpe -> Type == cmsSigCLutElemType ) {\n clut = ( _cmsStageCLutData * ) mpe -> Data ;\n mpe = mpe -> Next ;\n }\n if ( mpe != NULL && mpe -> Type == cmsSigCurveSetElemType ) {\n PostMPE = ( _cmsStageToneCurvesData * ) mpe -> Data ;\n mpe = mpe -> Next ;\n }\n if ( mpe != NULL ) {\n cmsSignalError ( mpe -> ContextID , cmsERROR_UNKNOWN_EXTENSION , \"LUT is not suitable to be saved as LUT8\" ) ;\n return FALSE ;\n }\n if ( clut == NULL ) clutPoints = 0 ;\n else clutPoints = clut -> Params -> nSamples [ 0 ] ;\n if ( ! _cmsWriteUInt8Number ( io , ( cmsUInt8Number ) NewLUT -> InputChannels ) ) return FALSE ;\n if ( ! _cmsWriteUInt8Number ( io , ( cmsUInt8Number ) NewLUT -> OutputChannels ) ) return FALSE ;\n if ( ! _cmsWriteUInt8Number ( io , ( cmsUInt8Number ) clutPoints ) ) return FALSE ;\n if ( ! _cmsWriteUInt8Number ( io , 0 ) ) return FALSE ;\n if ( MatMPE != NULL ) {\n if ( ! _cmsWrite15Fixed16Number ( io , MatMPE -> Double [ 0 ] ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , MatMPE -> Double [ 1 ] ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , MatMPE -> Double [ 2 ] ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , MatMPE -> Double [ 3 ] ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , MatMPE -> Double [ 4 ] ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , MatMPE -> Double [ 5 ] ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , MatMPE -> Double [ 6 ] ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , MatMPE -> Double [ 7 ] ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , MatMPE -> Double [ 8 ] ) ) return FALSE ;\n }\n else {\n if ( ! _cmsWrite15Fixed16Number ( io , 1 ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , 0 ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , 0 ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , 0 ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , 1 ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , 0 ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , 0 ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , 0 ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , 1 ) ) return FALSE ;\n }\n if ( ! Write8bitTables ( self -> ContextID , io , NewLUT -> InputChannels , PreMPE ) ) return FALSE ;\n nTabSize = uipow ( NewLUT -> OutputChannels , clutPoints , NewLUT -> InputChannels ) ;\n if ( nTabSize == ( cmsUInt32Number ) - 1 ) return FALSE ;\n if ( nTabSize > 0 ) {\n if ( clut != NULL ) {\n for ( j = 0 ;\n j < nTabSize ;\n j ++ ) {\n val = ( cmsUInt8Number ) FROM_16_TO_8 ( clut -> Tab . T [ j ] ) ;\n if ( ! _cmsWriteUInt8Number ( io , val ) ) return FALSE ;\n }\n }\n }\n if ( ! Write8bitTables ( self -> ContextID , io , NewLUT -> OutputChannels , PostMPE ) ) return FALSE ;\n return TRUE ;\n cmsUNUSED_PARAMETER ( nItems ) ;\n }"}
{"idx": 10554, "target": 0, "func": "static inline MagickBooleanType IsPixelInfoEquivalent ( const PixelInfo * restrict p , const PixelInfo * restrict q ) {\n if ( ( p -> alpha_trait != UndefinedPixelTrait ) && ( q -> alpha_trait == UndefinedPixelTrait ) && ( AbsolutePixelValue ( p -> alpha - OpaqueAlpha ) >= MagickEpsilon ) ) return ( MagickFalse ) ;\n if ( ( q -> alpha_trait != UndefinedPixelTrait ) && ( p -> alpha_trait == UndefinedPixelTrait ) && ( AbsolutePixelValue ( q -> alpha - OpaqueAlpha ) ) >= MagickEpsilon ) return ( MagickFalse ) ;\n if ( ( p -> alpha_trait != UndefinedPixelTrait ) && ( q -> alpha_trait != UndefinedPixelTrait ) ) {\n if ( AbsolutePixelValue ( p -> alpha - q -> alpha ) >= MagickEpsilon ) return ( MagickFalse ) ;\n if ( AbsolutePixelValue ( p -> alpha - TransparentAlpha ) < MagickEpsilon ) return ( MagickTrue ) ;\n }\n if ( AbsolutePixelValue ( p -> red - q -> red ) >= MagickEpsilon ) return ( MagickFalse ) ;\n if ( AbsolutePixelValue ( p -> green - q -> green ) >= MagickEpsilon ) return ( MagickFalse ) ;\n if ( AbsolutePixelValue ( p -> blue - q -> blue ) >= MagickEpsilon ) return ( MagickFalse ) ;\n if ( ( p -> colorspace == CMYKColorspace ) && ( AbsolutePixelValue ( p -> black - q -> black ) >= MagickEpsilon ) ) return ( MagickFalse ) ;\n return ( MagickTrue ) ;\n }"}
{"idx": 10555, "target": 0, "func": "static int zmbv_decode_xor_32 ( ZmbvContext * c ) {\n uint8_t * src = c -> decomp_buf ;\n uint32_t * output , * prev ;\n int8_t * mvec ;\n int x , y ;\n int d , dx , dy , bw2 , bh2 ;\n int block ;\n int i , j ;\n int mx , my ;\n output = ( uint32_t * ) c -> cur ;\n prev = ( uint32_t * ) c -> prev ;\n mvec = ( int8_t * ) src ;\n src += ( ( c -> bx * c -> by * 2 + 3 ) & ~ 3 ) ;\n block = 0 ;\n for ( y = 0 ;\n y < c -> height ;\n y += c -> bh ) {\n bh2 = ( ( c -> height - y ) > c -> bh ) ? c -> bh : ( c -> height - y ) ;\n for ( x = 0 ;\n x < c -> width ;\n x += c -> bw ) {\n uint32_t * out , * tprev ;\n d = mvec [ block ] & 1 ;\n dx = mvec [ block ] >> 1 ;\n dy = mvec [ block + 1 ] >> 1 ;\n block += 2 ;\n bw2 = ( ( c -> width - x ) > c -> bw ) ? c -> bw : ( c -> width - x ) ;\n out = output + x ;\n tprev = prev + x + dx + dy * c -> width ;\n mx = x + dx ;\n my = y + dy ;\n for ( j = 0 ;\n j < bh2 ;\n j ++ ) {\n if ( my + j < 0 || my + j >= c -> height ) {\n memset ( out , 0 , bw2 * 4 ) ;\n }\n else {\n for ( i = 0 ;\n i < bw2 ;\n i ++ ) {\n if ( mx + i < 0 || mx + i >= c -> width ) out [ i ] = 0 ;\n else out [ i ] = tprev [ i ] ;\n }\n }\n out += c -> width ;\n tprev += c -> width ;\n }\n if ( d ) {\n out = output + x ;\n for ( j = 0 ;\n j < bh2 ;\n j ++ ) {\n for ( i = 0 ;\n i < bw2 ;\n i ++ ) {\n out [ i ] ^= * ( ( uint32_t * ) src ) ;\n src += 4 ;\n }\n out += c -> width ;\n }\n }\n }\n output += c -> width * c -> bh ;\n prev += c -> width * c -> bh ;\n }\n if ( src - c -> decomp_buf != c -> decomp_len ) av_log ( c -> avctx , AV_LOG_ERROR , \"Used %ti of %i bytes\\n\" , src - c -> decomp_buf , c -> decomp_len ) ;\n return 0 ;\n }"}
{"idx": 10556, "target": 0, "func": "static void dumpTimestamp ( const char * msg ) {\n char buf [ 64 ] ;\n time_t now = time ( NULL ) ;\n if ( strftime ( buf , sizeof ( buf ) , PGDUMP_STRFTIME_FMT , localtime ( & now ) ) != 0 ) fprintf ( OPF , \"-- %s %s\\n\\n\" , msg , buf ) ;\n }"}
{"idx": 10557, "target": 0, "func": "static const char * ultag_getLanguage ( const ULanguageTag * langtag ) {\n return langtag -> language ;\n }"}
{"idx": 10558, "target": 0, "func": "static void sliplink_print ( netdissect_options * ndo , register const u_char * p , register const struct ip * ip , register u_int length ) {\n int dir ;\n u_int hlen ;\n dir = p [ SLX_DIR ] ;\n switch ( dir ) {\n case SLIPDIR_IN : ND_PRINT ( ( ndo , \"I \" ) ) ;\n break ;\n case SLIPDIR_OUT : ND_PRINT ( ( ndo , \"O \" ) ) ;\n break ;\n default : ND_PRINT ( ( ndo , \"Invalid direction %d \" , dir ) ) ;\n dir = - 1 ;\n break ;\n }\n if ( ndo -> ndo_nflag ) {\n register int i ;\n for ( i = SLX_CHDR ;\n i < SLX_CHDR + CHDR_LEN - 1 ;\n ++ i ) ND_PRINT ( ( ndo , \"%02x.\" , p [ i ] ) ) ;\n ND_PRINT ( ( ndo , \"%02x: \" , p [ SLX_CHDR + CHDR_LEN - 1 ] ) ) ;\n return ;\n }\n switch ( p [ SLX_CHDR ] & 0xf0 ) {\n case TYPE_IP : ND_PRINT ( ( ndo , \"ip %d: \" , length + SLIP_HDRLEN ) ) ;\n break ;\n case TYPE_UNCOMPRESSED_TCP : lastconn = ( ( const struct ip * ) & p [ SLX_CHDR ] ) -> ip_p ;\n ND_PRINT ( ( ndo , \"utcp %d: \" , lastconn ) ) ;\n if ( dir == - 1 ) {\n return ;\n }\n hlen = IP_HL ( ip ) ;\n hlen += TH_OFF ( ( const struct tcphdr * ) & ( ( const int * ) ip ) [ hlen ] ) ;\n lastlen [ dir ] [ lastconn ] = length - ( hlen << 2 ) ;\n break ;\n default : if ( dir == - 1 ) {\n return ;\n }\n if ( p [ SLX_CHDR ] & TYPE_COMPRESSED_TCP ) {\n compressed_sl_print ( ndo , & p [ SLX_CHDR ] , ip , length , dir ) ;\n ND_PRINT ( ( ndo , \": \" ) ) ;\n }\n else ND_PRINT ( ( ndo , \"slip-%d!: \" , p [ SLX_CHDR ] ) ) ;\n }\n }"}
{"idx": 10559, "target": 0, "func": "static void ohci_frame_boundary ( void * opaque ) {\n OHCIState * ohci = opaque ;\n struct ohci_hcca hcca ;\n if ( ohci_read_hcca ( ohci , ohci -> hcca , & hcca ) ) {\n trace_usb_ohci_hcca_read_error ( ohci -> hcca ) ;\n ohci_die ( ohci ) ;\n return ;\n }\n if ( ohci -> ctl & OHCI_CTL_PLE ) {\n int n ;\n n = ohci -> frame_number & 0x1f ;\n ohci_service_ed_list ( ohci , le32_to_cpu ( hcca . intr [ n ] ) , 0 ) ;\n }\n if ( ohci -> old_ctl & ( ~ ohci -> ctl ) & ( OHCI_CTL_BLE | OHCI_CTL_CLE ) ) {\n if ( ohci -> async_td ) {\n usb_cancel_packet ( & ohci -> usb_packet ) ;\n ohci -> async_td = 0 ;\n }\n ohci_stop_endpoints ( ohci ) ;\n }\n ohci -> old_ctl = ohci -> ctl ;\n ohci_process_lists ( ohci , 0 ) ;\n if ( ohci -> intr_status & OHCI_INTR_UE ) {\n return ;\n }\n ohci -> frt = ohci -> fit ;\n ohci -> frame_number = ( ohci -> frame_number + 1 ) & 0xffff ;\n hcca . frame = cpu_to_le16 ( ohci -> frame_number ) ;\n if ( ohci -> done_count == 0 && ! ( ohci -> intr_status & OHCI_INTR_WD ) ) {\n if ( ! ohci -> done ) abort ( ) ;\n if ( ohci -> intr & ohci -> intr_status ) ohci -> done |= 1 ;\n hcca . done = cpu_to_le32 ( ohci -> done ) ;\n ohci -> done = 0 ;\n ohci -> done_count = 7 ;\n ohci_set_interrupt ( ohci , OHCI_INTR_WD ) ;\n }\n if ( ohci -> done_count != 7 && ohci -> done_count != 0 ) ohci -> done_count -- ;\n ohci_sof ( ohci ) ;\n if ( ohci_put_hcca ( ohci , ohci -> hcca , & hcca ) ) {\n ohci_die ( ohci ) ;\n }\n }"}
{"idx": 10560, "target": 0, "func": "static int dissect_h225_SEQUENCE_OF_H248PackagesDescriptor ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_SEQUENCE_OF_H248PackagesDescriptor , SEQUENCE_OF_H248PackagesDescriptor_sequence_of ) ;\n return offset ;\n }"}
{"idx": 10561, "target": 0, "func": "static inline int c6_to_8 ( int v ) {\n int b ;\n v &= 0x3f ;\n b = v & 1 ;\n return ( v << 2 ) | ( b << 1 ) | b ;\n }"}
{"idx": 10562, "target": 0, "func": "static gboolean check_lbmpdm_encoding ( tvbuff_t * tvb , int offset , int * encoding ) {\n guint8 magic_byte_1 ;\n guint8 magic_byte_2 ;\n guint8 magic_byte_3 ;\n guint8 magic_byte_4 ;\n gboolean result = TRUE ;\n magic_byte_1 = tvb_get_guint8 ( tvb , offset ) ;\n magic_byte_2 = tvb_get_guint8 ( tvb , offset + 1 ) ;\n magic_byte_3 = tvb_get_guint8 ( tvb , offset + 2 ) ;\n magic_byte_4 = tvb_get_guint8 ( tvb , offset + 3 ) ;\n if ( ( magic_byte_1 == PDM_MSG_HDR_BE_MAGIC_BYTE_1 ) && ( magic_byte_2 == PDM_MSG_HDR_BE_MAGIC_BYTE_2 ) && ( magic_byte_3 == PDM_MSG_HDR_BE_MAGIC_BYTE_3 ) && ( magic_byte_4 == PDM_MSG_HDR_BE_MAGIC_BYTE_4 ) ) {\n * encoding = ENC_BIG_ENDIAN ;\n }\n else if ( ( magic_byte_1 == PDM_MSG_HDR_LE_MAGIC_BYTE_1 ) && ( magic_byte_2 == PDM_MSG_HDR_LE_MAGIC_BYTE_2 ) && ( magic_byte_3 == PDM_MSG_HDR_LE_MAGIC_BYTE_3 ) && ( magic_byte_4 == PDM_MSG_HDR_LE_MAGIC_BYTE_4 ) ) {\n * encoding = ENC_LITTLE_ENDIAN ;\n }\n else {\n result = FALSE ;\n }\n return ( result ) ;\n }"}
{"idx": 10563, "target": 0, "func": "static inline size_t GetPixelMetacontentExtent ( const Image * restrict image ) {\n return ( image -> metacontent_extent ) ;\n }"}
{"idx": 10564, "target": 0, "func": "int table2myisam ( TABLE * table_arg , MI_KEYDEF * * keydef_out , MI_COLUMNDEF * * recinfo_out , uint * records_out ) {\n uint i , j , recpos , minpos , fieldpos , temp_length , length ;\n enum ha_base_keytype type = HA_KEYTYPE_BINARY ;\n uchar * record ;\n KEY * pos ;\n MI_KEYDEF * keydef ;\n MI_COLUMNDEF * recinfo , * recinfo_pos ;\n HA_KEYSEG * keyseg ;\n TABLE_SHARE * share = table_arg -> s ;\n uint options = share -> db_options_in_use ;\n DBUG_ENTER ( \"table2myisam\" ) ;\n if ( ! ( my_multi_malloc ( MYF ( MY_WME ) , recinfo_out , ( share -> fields * 2 + 2 ) * sizeof ( MI_COLUMNDEF ) , keydef_out , share -> keys * sizeof ( MI_KEYDEF ) , & keyseg , ( share -> key_parts + share -> keys ) * sizeof ( HA_KEYSEG ) , NullS ) ) ) DBUG_RETURN ( HA_ERR_OUT_OF_MEM ) ;\n keydef = * keydef_out ;\n recinfo = * recinfo_out ;\n pos = table_arg -> key_info ;\n for ( i = 0 ;\n i < share -> keys ;\n i ++ , pos ++ ) {\n keydef [ i ] . flag = ( ( uint16 ) pos -> flags & ( HA_NOSAME | HA_FULLTEXT | HA_SPATIAL ) ) ;\n keydef [ i ] . key_alg = pos -> algorithm == HA_KEY_ALG_UNDEF ? ( pos -> flags & HA_SPATIAL ? HA_KEY_ALG_RTREE : HA_KEY_ALG_BTREE ) : pos -> algorithm ;\n keydef [ i ] . block_length = pos -> block_size ;\n keydef [ i ] . seg = keyseg ;\n keydef [ i ] . keysegs = pos -> key_parts ;\n for ( j = 0 ;\n j < pos -> key_parts ;\n j ++ ) {\n Field * field = pos -> key_part [ j ] . field ;\n type = field -> key_type ( ) ;\n keydef [ i ] . seg [ j ] . flag = pos -> key_part [ j ] . key_part_flag ;\n if ( options & HA_OPTION_PACK_KEYS || ( pos -> flags & ( HA_PACK_KEY | HA_BINARY_PACK_KEY | HA_SPACE_PACK_USED ) ) ) {\n if ( pos -> key_part [ j ] . length > 8 && ( type == HA_KEYTYPE_TEXT || type == HA_KEYTYPE_NUM || ( type == HA_KEYTYPE_BINARY && ! field -> zero_pack ( ) ) ) ) {\n if ( j == 0 ) keydef [ i ] . flag |= HA_PACK_KEY ;\n if ( ! ( field -> flags & ZEROFILL_FLAG ) && ( field -> type ( ) == MYSQL_TYPE_STRING || field -> type ( ) == MYSQL_TYPE_VAR_STRING || ( ( int ) ( pos -> key_part [ j ] . length - field -> decimals ( ) ) ) >= 4 ) ) keydef [ i ] . seg [ j ] . flag |= HA_SPACE_PACK ;\n }\n else if ( j == 0 && ( ! ( pos -> flags & HA_NOSAME ) || pos -> key_length > 16 ) ) keydef [ i ] . flag |= HA_BINARY_PACK_KEY ;\n }\n keydef [ i ] . seg [ j ] . type = ( int ) type ;\n keydef [ i ] . seg [ j ] . start = pos -> key_part [ j ] . offset ;\n keydef [ i ] . seg [ j ] . length = pos -> key_part [ j ] . length ;\n keydef [ i ] . seg [ j ] . bit_start = keydef [ i ] . seg [ j ] . bit_end = keydef [ i ] . seg [ j ] . bit_length = 0 ;\n keydef [ i ] . seg [ j ] . bit_pos = 0 ;\n keydef [ i ] . seg [ j ] . language = field -> charset_for_protocol ( ) -> number ;\n if ( field -> null_ptr ) {\n keydef [ i ] . seg [ j ] . null_bit = field -> null_bit ;\n keydef [ i ] . seg [ j ] . null_pos = ( uint ) ( field -> null_ptr - ( uchar * ) table_arg -> record [ 0 ] ) ;\n }\n else {\n keydef [ i ] . seg [ j ] . null_bit = 0 ;\n keydef [ i ] . seg [ j ] . null_pos = 0 ;\n }\n if ( field -> type ( ) == MYSQL_TYPE_BLOB || field -> type ( ) == MYSQL_TYPE_GEOMETRY ) {\n keydef [ i ] . seg [ j ] . flag |= HA_BLOB_PART ;\n keydef [ i ] . seg [ j ] . bit_start = ( uint ) ( field -> pack_length ( ) - share -> blob_ptr_size ) ;\n }\n else if ( field -> type ( ) == MYSQL_TYPE_BIT ) {\n keydef [ i ] . seg [ j ] . bit_length = ( ( Field_bit * ) field ) -> bit_len ;\n keydef [ i ] . seg [ j ] . bit_start = ( ( Field_bit * ) field ) -> bit_ofs ;\n keydef [ i ] . seg [ j ] . bit_pos = ( uint ) ( ( ( Field_bit * ) field ) -> bit_ptr - ( uchar * ) table_arg -> record [ 0 ] ) ;\n }\n }\n keyseg += pos -> key_parts ;\n }\n if ( table_arg -> found_next_number_field ) keydef [ share -> next_number_index ] . flag |= HA_AUTO_KEY ;\n record = table_arg -> record [ 0 ] ;\n recpos = 0 ;\n recinfo_pos = recinfo ;\n while ( recpos < ( uint ) share -> reclength ) {\n Field * * field , * found = 0 ;\n minpos = share -> reclength ;\n length = 0 ;\n for ( field = table_arg -> field ;\n * field ;\n field ++ ) {\n if ( ( fieldpos = ( * field ) -> offset ( record ) ) >= recpos && fieldpos <= minpos ) {\n if ( ! ( temp_length = ( * field ) -> pack_length_in_rec ( ) ) ) continue ;\n if ( ! found || fieldpos < minpos || ( fieldpos == minpos && temp_length < length ) ) {\n minpos = fieldpos ;\n found = * field ;\n length = temp_length ;\n }\n }\n }\n DBUG_PRINT ( \"loop\" , ( \"found: 0x%lx recpos: %d minpos: %d length: %d\" , ( long ) found , recpos , minpos , length ) ) ;\n if ( recpos != minpos ) {\n bzero ( ( char * ) recinfo_pos , sizeof ( * recinfo_pos ) ) ;\n recinfo_pos -> type = ( int ) FIELD_NORMAL ;\n recinfo_pos ++ -> length = ( uint16 ) ( minpos - recpos ) ;\n }\n if ( ! found ) break ;\n if ( found -> flags & BLOB_FLAG ) recinfo_pos -> type = ( int ) FIELD_BLOB ;\n else if ( found -> type ( ) == MYSQL_TYPE_VARCHAR ) recinfo_pos -> type = FIELD_VARCHAR ;\n else if ( ! ( options & HA_OPTION_PACK_RECORD ) ) recinfo_pos -> type = ( int ) FIELD_NORMAL ;\n else if ( found -> zero_pack ( ) ) recinfo_pos -> type = ( int ) FIELD_SKIP_ZERO ;\n else recinfo_pos -> type = ( int ) ( ( length <= 3 || ( found -> flags & ZEROFILL_FLAG ) ) ? FIELD_NORMAL : found -> type ( ) == MYSQL_TYPE_STRING || found -> type ( ) == MYSQL_TYPE_VAR_STRING ? FIELD_SKIP_ENDSPACE : FIELD_SKIP_PRESPACE ) ;\n if ( found -> null_ptr ) {\n recinfo_pos -> null_bit = found -> null_bit ;\n recinfo_pos -> null_pos = ( uint ) ( found -> null_ptr - ( uchar * ) table_arg -> record [ 0 ] ) ;\n }\n else {\n recinfo_pos -> null_bit = 0 ;\n recinfo_pos -> null_pos = 0 ;\n }\n ( recinfo_pos ++ ) -> length = ( uint16 ) length ;\n recpos = minpos + length ;\n DBUG_PRINT ( \"loop\" , ( \"length: %d type: %d\" , recinfo_pos [ - 1 ] . length , recinfo_pos [ - 1 ] . type ) ) ;\n }\n * records_out = ( uint ) ( recinfo_pos - recinfo ) ;\n DBUG_RETURN ( 0 ) ;\n }"}
{"idx": 10565, "target": 0, "func": "static int do_cgroup_set ( const char * cgroup_path , const char * sub_filename , const char * value ) {\n const char * parts [ 3 ] = {\n cgroup_path , sub_filename , NULL }\n ;\n char * filename ;\n int ret , saved_errno ;\n filename = lxc_string_join ( \"/\" , parts , false ) ;\n if ( ! filename ) return - 1 ;\n ret = lxc_write_to_file ( filename , value , strlen ( value ) , false ) ;\n saved_errno = errno ;\n free ( filename ) ;\n errno = saved_errno ;\n return ret ;\n }"}
{"idx": 10566, "target": 0, "func": "static gboolean confirm_empty_trash ( CommonJob * job ) {\n char * prompt ;\n int response ;\n if ( ! should_confirm_trash ( ) ) {\n return TRUE ;\n }\n prompt = f ( _ ( \"Empty all items from Trash?\" ) ) ;\n response = run_warning ( job , prompt , f ( _ ( \"All items in the Trash will be permanently deleted.\" ) ) , NULL , FALSE , CANCEL , _ ( \"Empty _Trash\" ) , NULL ) ;\n return ( response == 1 ) ;\n }"}
{"idx": 10567, "target": 0, "func": "void vp9_idct16x16_256_add_c ( const tran_low_t * input , uint8_t * dest , int stride ) {\n tran_low_t out [ 16 * 16 ] ;\n tran_low_t * outptr = out ;\n int i , j ;\n tran_low_t temp_in [ 16 ] , temp_out [ 16 ] ;\n for ( i = 0 ;\n i < 16 ;\n ++ i ) {\n idct16 ( input , outptr ) ;\n input += 16 ;\n outptr += 16 ;\n }\n for ( i = 0 ;\n i < 16 ;\n ++ i ) {\n for ( j = 0 ;\n j < 16 ;\n ++ j ) temp_in [ j ] = out [ j * 16 + i ] ;\n idct16 ( temp_in , temp_out ) ;\n for ( j = 0 ;\n j < 16 ;\n ++ j ) dest [ j * stride + i ] = clip_pixel ( ROUND_POWER_OF_TWO ( temp_out [ j ] , 6 ) + dest [ j * stride + i ] ) ;\n }\n }"}
{"idx": 10568, "target": 0, "func": "static int selinux_netlink_send ( struct sock * sk , struct sk_buff * skb ) {\n return selinux_nlmsg_perm ( sk , skb ) ;\n }"}
{"idx": 10569, "target": 0, "func": "static int dissect_ber_external_U ( gboolean implicit_tag , tvbuff_t * tvb , int offset , asn1_ctx_t * actx _U_ , proto_tree * tree , int hf_index _U_ ) {\n offset = dissect_ber_sequence ( implicit_tag , actx , tree , tvb , offset , external_U_sequence , hf_index , ett_ber_EXTERNAL ) ;\n return offset ;\n }"}
{"idx": 10570, "target": 0, "func": "static int dissect_diameter_subscription_id_type ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree _U_ , void * data _U_ ) {\n subscription_id_type = tvb_get_ntohl ( tvb , 0 ) ;\n return 0 ;\n }"}
{"idx": 10571, "target": 0, "func": "static void test_buffers ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND my_bind [ 2 ] ;\n int rc ;\n ulong length ;\n my_bool is_null ;\n char buffer [ 20 ] ;\n myheader ( \"test_buffers\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_buffer\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_buffer(str varchar(20))\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into test_buffer values('MySQL')\\ , ('Database'), ('Open-Source'), ('Popular')\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"select str from test_buffer\" ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n memset ( buffer , 0 , sizeof ( buffer ) ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . length = & length ;\n my_bind [ 0 ] . is_null = & is_null ;\n my_bind [ 0 ] . buffer_length = 1 ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 0 ] . buffer = ( void * ) buffer ;\n my_bind [ 0 ] . error = & my_bind [ 0 ] . error_value ;\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_store_result ( stmt ) ;\n check_execute ( stmt , rc ) ;\n buffer [ 1 ] = 'X' ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_DATA_TRUNCATED ) ;\n DIE_UNLESS ( my_bind [ 0 ] . error_value ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n data: %s (%lu)\" , buffer , length ) ;\n DIE_UNLESS ( buffer [ 0 ] == 'M' ) ;\n DIE_UNLESS ( buffer [ 1 ] == 'X' ) ;\n DIE_UNLESS ( length == 5 ) ;\n my_bind [ 0 ] . buffer_length = 8 ;\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n data: %s (%lu)\" , buffer , length ) ;\n DIE_UNLESS ( strncmp ( buffer , \"Database\" , 8 ) == 0 ) ;\n DIE_UNLESS ( length == 8 ) ;\n my_bind [ 0 ] . buffer_length = 12 ;\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n data: %s (%lu)\" , buffer , length ) ;\n DIE_UNLESS ( strcmp ( buffer , \"Open-Source\" ) == 0 ) ;\n DIE_UNLESS ( length == 11 ) ;\n my_bind [ 0 ] . buffer_length = 6 ;\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_DATA_TRUNCATED ) ;\n DIE_UNLESS ( my_bind [ 0 ] . error_value ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n data: %s (%lu)\" , buffer , length ) ;\n DIE_UNLESS ( strncmp ( buffer , \"Popula\" , 6 ) == 0 ) ;\n DIE_UNLESS ( length == 7 ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 10572, "target": 0, "func": "static void * Type_DateTime_Dup ( struct _cms_typehandler_struct * self , const void * Ptr , cmsUInt32Number n ) {\n return _cmsDupMem ( self -> ContextID , Ptr , sizeof ( struct tm ) ) ;\n cmsUNUSED_PARAMETER ( n ) ;\n }"}
{"idx": 10573, "target": 0, "func": "static int frame_is_boosted ( const VP9_COMP * cpi ) {\n return frame_is_intra_only ( & cpi -> common ) || cpi -> refresh_alt_ref_frame || ( cpi -> refresh_golden_frame && ! cpi -> rc . is_src_frame_alt_ref ) || vp9_is_upper_layer_key_frame ( cpi ) ;\n }"}
{"idx": 10574, "target": 0, "func": "static void selinux_tun_dev_free_security ( void * security ) {\n kfree ( security ) ;\n }"}
{"idx": 10575, "target": 0, "func": "vpx_codec_err_t vpx_codec_enc_init_ver ( vpx_codec_ctx_t * ctx , vpx_codec_iface_t * iface , const vpx_codec_enc_cfg_t * cfg , vpx_codec_flags_t flags , int ver ) {\n vpx_codec_err_t res ;\n if ( ver != VPX_ENCODER_ABI_VERSION ) res = VPX_CODEC_ABI_MISMATCH ;\n else if ( ! ctx || ! iface || ! cfg ) res = VPX_CODEC_INVALID_PARAM ;\n else if ( iface -> abi_version != VPX_CODEC_INTERNAL_ABI_VERSION ) res = VPX_CODEC_ABI_MISMATCH ;\n else if ( ! ( iface -> caps & VPX_CODEC_CAP_ENCODER ) ) res = VPX_CODEC_INCAPABLE ;\n else if ( ( flags & VPX_CODEC_USE_PSNR ) && ! ( iface -> caps & VPX_CODEC_CAP_PSNR ) ) res = VPX_CODEC_INCAPABLE ;\n else if ( ( flags & VPX_CODEC_USE_OUTPUT_PARTITION ) && ! ( iface -> caps & VPX_CODEC_CAP_OUTPUT_PARTITION ) ) res = VPX_CODEC_INCAPABLE ;\n else {\n ctx -> iface = iface ;\n ctx -> name = iface -> name ;\n ctx -> priv = NULL ;\n ctx -> init_flags = flags ;\n ctx -> config . enc = cfg ;\n res = ctx -> iface -> init ( ctx , NULL ) ;\n if ( res ) {\n ctx -> err_detail = ctx -> priv ? ctx -> priv -> err_detail : NULL ;\n vpx_codec_destroy ( ctx ) ;\n }\n }\n return SAVE_STATUS ( ctx , res ) ;\n }"}
{"idx": 10576, "target": 0, "func": "static int dissect_q931_ie_cs0 ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n dissect_q931_IEs ( tvb , pinfo , NULL , tree , FALSE , 0 , 0 , NULL ) ;\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 10577, "target": 1, "func": "int xmlListPushFront ( xmlListPtr l , void * data ) {\n xmlLinkPtr lkPlace , lkNew ;\n if ( l == NULL ) return ( 0 ) ;\n lkPlace = l -> sentinel ;\n lkNew = ( xmlLinkPtr ) xmlMalloc ( sizeof ( xmlLink ) ) ;\n if ( lkNew == NULL ) {\n xmlGenericError ( xmlGenericErrorContext , \"Cannot initialize memory for new link\" ) ;\n return ( 0 ) ;\n }\n lkNew -> data = data ;\n lkNew -> next = lkPlace -> next ;\n ( lkPlace -> next ) -> prev = lkNew ;\n lkPlace -> next = lkNew ;\n lkNew -> prev = lkPlace ;\n return 1 ;\n }"}
{"idx": 10578, "target": 0, "func": "static gboolean make_file_name_valid_for_dest_fs ( char * filename , const char * dest_fs_type ) {\n if ( dest_fs_type != NULL && filename != NULL ) {\n if ( ! strcmp ( dest_fs_type , \"fat\" ) || ! strcmp ( dest_fs_type , \"vfat\" ) || ! strcmp ( dest_fs_type , \"msdos\" ) || ! strcmp ( dest_fs_type , \"msdosfs\" ) ) {\n gboolean ret ;\n int i , old_len ;\n ret = fat_str_replace ( filename , '_' ) ;\n old_len = strlen ( filename ) ;\n for ( i = 0 ;\n i < old_len ;\n i ++ ) {\n if ( filename [ i ] != ' ' ) {\n g_strchomp ( filename ) ;\n ret |= ( old_len != strlen ( filename ) ) ;\n break ;\n }\n }\n return ret ;\n }\n }\n return FALSE ;\n }"}
{"idx": 10579, "target": 0, "func": "static int dissect_h225_SecurityErrors2 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_SecurityErrors2 , SecurityErrors2_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 10580, "target": 0, "func": "static const char * csv_escape_str ( AVBPrint * dst , const char * src , const char sep , void * log_ctx ) {\n char meta_chars [ ] = {\n sep , '\"' , '\\n' , '\\r' , '\\0' }\n ;\n int needs_quoting = ! ! src [ strcspn ( src , meta_chars ) ] ;\n if ( needs_quoting ) av_bprint_chars ( dst , '\"' , 1 ) ;\n for ( ;\n * src ;\n src ++ ) {\n if ( * src == '\"' ) av_bprint_chars ( dst , '\"' , 1 ) ;\n av_bprint_chars ( dst , * src , 1 ) ;\n }\n if ( needs_quoting ) av_bprint_chars ( dst , '\"' , 1 ) ;\n return dst -> str ;\n }"}
{"idx": 10581, "target": 0, "func": "guint16 de_serv_cat ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n curr_offset = offset ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , curr_offset << 3 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_serv_cat_b7 , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_serv_cat_b6 , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_serv_cat_b5 , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_serv_cat_b4 , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_serv_cat_b3 , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_serv_cat_b2 , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_serv_cat_b1 , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n return len ;\n }"}
{"idx": 10582, "target": 0, "func": "static uint64_t xhci_runtime_read ( void * ptr , hwaddr reg , unsigned size ) {\n XHCIState * xhci = ptr ;\n uint32_t ret = 0 ;\n if ( reg < 0x20 ) {\n switch ( reg ) {\n case 0x00 : ret = xhci_mfindex_get ( xhci ) & 0x3fff ;\n break ;\n default : trace_usb_xhci_unimplemented ( \"runtime read\" , reg ) ;\n break ;\n }\n }\n else {\n int v = ( reg - 0x20 ) / 0x20 ;\n XHCIInterrupter * intr = & xhci -> intr [ v ] ;\n switch ( reg & 0x1f ) {\n case 0x00 : ret = intr -> iman ;\n break ;\n case 0x04 : ret = intr -> imod ;\n break ;\n case 0x08 : ret = intr -> erstsz ;\n break ;\n case 0x10 : ret = intr -> erstba_low ;\n break ;\n case 0x14 : ret = intr -> erstba_high ;\n break ;\n case 0x18 : ret = intr -> erdp_low ;\n break ;\n case 0x1c : ret = intr -> erdp_high ;\n break ;\n }\n }\n trace_usb_xhci_runtime_read ( reg , ret ) ;\n return ret ;\n }"}
{"idx": 10583, "target": 0, "func": "static inline int mpeg4_decode_block ( MpegEncContext * s , int16_t * block , int n , int coded , int intra , int rvlc ) {\n int level , i , last , run ;\n int dc_pred_dir ;\n RLTable * rl ;\n RL_VLC_ELEM * rl_vlc ;\n const uint8_t * scan_table ;\n int qmul , qadd ;\n if ( intra ) {\n if ( s -> use_intra_dc_vlc ) {\n if ( s -> partitioned_frame ) {\n level = s -> dc_val [ 0 ] [ s -> block_index [ n ] ] ;\n if ( n < 4 ) level = FASTDIV ( ( level + ( s -> y_dc_scale >> 1 ) ) , s -> y_dc_scale ) ;\n else level = FASTDIV ( ( level + ( s -> c_dc_scale >> 1 ) ) , s -> c_dc_scale ) ;\n dc_pred_dir = ( s -> pred_dir_table [ s -> mb_x + s -> mb_y * s -> mb_stride ] << n ) & 32 ;\n }\n else {\n level = mpeg4_decode_dc ( s , n , & dc_pred_dir ) ;\n if ( level < 0 ) return - 1 ;\n }\n block [ 0 ] = level ;\n i = 0 ;\n }\n else {\n i = - 1 ;\n ff_mpeg4_pred_dc ( s , n , 0 , & dc_pred_dir , 0 ) ;\n }\n if ( ! coded ) goto not_coded ;\n if ( rvlc ) {\n rl = & ff_rvlc_rl_intra ;\n rl_vlc = ff_rvlc_rl_intra . rl_vlc [ 0 ] ;\n }\n else {\n rl = & ff_mpeg4_rl_intra ;\n rl_vlc = ff_mpeg4_rl_intra . rl_vlc [ 0 ] ;\n }\n if ( s -> ac_pred ) {\n if ( dc_pred_dir == 0 ) scan_table = s -> intra_v_scantable . permutated ;\n else scan_table = s -> intra_h_scantable . permutated ;\n }\n else {\n scan_table = s -> intra_scantable . permutated ;\n }\n qmul = 1 ;\n qadd = 0 ;\n }\n else {\n i = - 1 ;\n if ( ! coded ) {\n s -> block_last_index [ n ] = i ;\n return 0 ;\n }\n if ( rvlc ) rl = & ff_rvlc_rl_inter ;\n else rl = & ff_h263_rl_inter ;\n scan_table = s -> intra_scantable . permutated ;\n if ( s -> mpeg_quant ) {\n qmul = 1 ;\n qadd = 0 ;\n if ( rvlc ) {\n rl_vlc = ff_rvlc_rl_inter . rl_vlc [ 0 ] ;\n }\n else {\n rl_vlc = ff_h263_rl_inter . rl_vlc [ 0 ] ;\n }\n }\n else {\n qmul = s -> qscale << 1 ;\n qadd = ( s -> qscale - 1 ) | 1 ;\n if ( rvlc ) {\n rl_vlc = ff_rvlc_rl_inter . rl_vlc [ s -> qscale ] ;\n }\n else {\n rl_vlc = ff_h263_rl_inter . rl_vlc [ s -> qscale ] ;\n }\n }\n }\n {\n OPEN_READER ( re , & s -> gb ) ;\n for ( ;\n ;\n ) {\n UPDATE_CACHE ( re , & s -> gb ) ;\n GET_RL_VLC ( level , run , re , & s -> gb , rl_vlc , TEX_VLC_BITS , 2 , 0 ) ;\n if ( level == 0 ) {\n if ( rvlc ) {\n if ( SHOW_UBITS ( re , & s -> gb , 1 ) == 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"1. marker bit missing in rvlc esc\\n\" ) ;\n return - 1 ;\n }\n ;\n SKIP_CACHE ( re , & s -> gb , 1 ) ;\n last = SHOW_UBITS ( re , & s -> gb , 1 ) ;\n SKIP_CACHE ( re , & s -> gb , 1 ) ;\n run = SHOW_UBITS ( re , & s -> gb , 6 ) ;\n SKIP_COUNTER ( re , & s -> gb , 1 + 1 + 6 ) ;\n UPDATE_CACHE ( re , & s -> gb ) ;\n if ( SHOW_UBITS ( re , & s -> gb , 1 ) == 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"2. marker bit missing in rvlc esc\\n\" ) ;\n return - 1 ;\n }\n ;\n SKIP_CACHE ( re , & s -> gb , 1 ) ;\n level = SHOW_UBITS ( re , & s -> gb , 11 ) ;\n SKIP_CACHE ( re , & s -> gb , 11 ) ;\n if ( SHOW_UBITS ( re , & s -> gb , 5 ) != 0x10 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"reverse esc missing\\n\" ) ;\n return - 1 ;\n }\n ;\n SKIP_CACHE ( re , & s -> gb , 5 ) ;\n level = level * qmul + qadd ;\n level = ( level ^ SHOW_SBITS ( re , & s -> gb , 1 ) ) - SHOW_SBITS ( re , & s -> gb , 1 ) ;\n SKIP_COUNTER ( re , & s -> gb , 1 + 11 + 5 + 1 ) ;\n i += run + 1 ;\n if ( last ) i += 192 ;\n }\n else {\n int cache ;\n cache = GET_CACHE ( re , & s -> gb ) ;\n if ( IS_3IV1 ) cache ^= 0xC0000000 ;\n if ( cache & 0x80000000 ) {\n if ( cache & 0x40000000 ) {\n SKIP_CACHE ( re , & s -> gb , 2 ) ;\n last = SHOW_UBITS ( re , & s -> gb , 1 ) ;\n SKIP_CACHE ( re , & s -> gb , 1 ) ;\n run = SHOW_UBITS ( re , & s -> gb , 6 ) ;\n SKIP_COUNTER ( re , & s -> gb , 2 + 1 + 6 ) ;\n UPDATE_CACHE ( re , & s -> gb ) ;\n if ( IS_3IV1 ) {\n level = SHOW_SBITS ( re , & s -> gb , 12 ) ;\n LAST_SKIP_BITS ( re , & s -> gb , 12 ) ;\n }\n else {\n if ( SHOW_UBITS ( re , & s -> gb , 1 ) == 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"1. marker bit missing in 3. esc\\n\" ) ;\n return - 1 ;\n }\n ;\n SKIP_CACHE ( re , & s -> gb , 1 ) ;\n level = SHOW_SBITS ( re , & s -> gb , 12 ) ;\n SKIP_CACHE ( re , & s -> gb , 12 ) ;\n if ( SHOW_UBITS ( re , & s -> gb , 1 ) == 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"2. marker bit missing in 3. esc\\n\" ) ;\n return - 1 ;\n }\n SKIP_COUNTER ( re , & s -> gb , 1 + 12 + 1 ) ;\n }\n if ( level > 0 ) level = level * qmul + qadd ;\n else level = level * qmul - qadd ;\n if ( ( unsigned ) ( level + 2048 ) > 4095 ) {\n if ( s -> err_recognition & AV_EF_BITSTREAM ) {\n if ( level > 2560 || level < - 2560 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"|level| overflow in 3. esc, qp=%d\\n\" , s -> qscale ) ;\n return - 1 ;\n }\n }\n level = level < 0 ? - 2048 : 2047 ;\n }\n i += run + 1 ;\n if ( last ) i += 192 ;\n }\n else {\n SKIP_BITS ( re , & s -> gb , 2 ) ;\n GET_RL_VLC ( level , run , re , & s -> gb , rl_vlc , TEX_VLC_BITS , 2 , 1 ) ;\n i += run + rl -> max_run [ run >> 7 ] [ level / qmul ] + 1 ;\n level = ( level ^ SHOW_SBITS ( re , & s -> gb , 1 ) ) - SHOW_SBITS ( re , & s -> gb , 1 ) ;\n LAST_SKIP_BITS ( re , & s -> gb , 1 ) ;\n }\n }\n else {\n SKIP_BITS ( re , & s -> gb , 1 ) ;\n GET_RL_VLC ( level , run , re , & s -> gb , rl_vlc , TEX_VLC_BITS , 2 , 1 ) ;\n i += run ;\n level = level + rl -> max_level [ run >> 7 ] [ ( run - 1 ) & 63 ] * qmul ;\n level = ( level ^ SHOW_SBITS ( re , & s -> gb , 1 ) ) - SHOW_SBITS ( re , & s -> gb , 1 ) ;\n LAST_SKIP_BITS ( re , & s -> gb , 1 ) ;\n }\n }\n }\n else {\n i += run ;\n level = ( level ^ SHOW_SBITS ( re , & s -> gb , 1 ) ) - SHOW_SBITS ( re , & s -> gb , 1 ) ;\n LAST_SKIP_BITS ( re , & s -> gb , 1 ) ;\n }\n if ( i > 62 ) {\n i -= 192 ;\n if ( i & ( ~ 63 ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"ac-tex damaged at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n block [ scan_table [ i ] ] = level ;\n break ;\n }\n block [ scan_table [ i ] ] = level ;\n }\n CLOSE_READER ( re , & s -> gb ) ;\n }\n not_coded : if ( intra ) {\n if ( ! s -> use_intra_dc_vlc ) {\n block [ 0 ] = ff_mpeg4_pred_dc ( s , n , block [ 0 ] , & dc_pred_dir , 0 ) ;\n i -= i >> 31 ;\n }\n ff_mpeg4_pred_ac ( s , block , n , dc_pred_dir ) ;\n if ( s -> ac_pred ) {\n i = 63 ;\n }\n }\n s -> block_last_index [ n ] = i ;\n return 0 ;\n }"}
{"idx": 10584, "target": 0, "func": "static int is_compound_reference_allowed ( const VP9_COMMON * cm ) {\n int i ;\n for ( i = 1 ;\n i < REFS_PER_FRAME ;\n ++ i ) if ( cm -> ref_frame_sign_bias [ i + 1 ] != cm -> ref_frame_sign_bias [ 1 ] ) return 1 ;\n return 0 ;\n }"}
{"idx": 10585, "target": 1, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE )"}
{"idx": 10586, "target": 0, "func": "static void free_picture_tables ( Picture * pic ) {\n int i ;\n av_buffer_unref ( & pic -> mb_var_buf ) ;\n av_buffer_unref ( & pic -> mc_mb_var_buf ) ;\n av_buffer_unref ( & pic -> mb_mean_buf ) ;\n av_buffer_unref ( & pic -> mbskip_table_buf ) ;\n av_buffer_unref ( & pic -> qscale_table_buf ) ;\n av_buffer_unref ( & pic -> mb_type_buf ) ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n av_buffer_unref ( & pic -> motion_val_buf [ i ] ) ;\n av_buffer_unref ( & pic -> ref_index_buf [ i ] ) ;\n }\n }"}
{"idx": 10587, "target": 0, "func": "static int dissect_h225_Q954Details ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_Q954Details , Q954Details_sequence ) ;\n return offset ;\n }"}
{"idx": 10588, "target": 0, "func": "static void set_seg ( struct kvm_segment * lhs , const SegmentCache * rhs ) {\n unsigned flags = rhs -> flags ;\n lhs -> selector = rhs -> selector ;\n lhs -> base = rhs -> base ;\n lhs -> limit = rhs -> limit ;\n lhs -> type = ( flags >> DESC_TYPE_SHIFT ) & 15 ;\n lhs -> present = ( flags & DESC_P_MASK ) != 0 ;\n lhs -> dpl = ( flags >> DESC_DPL_SHIFT ) & 3 ;\n lhs -> db = ( flags >> DESC_B_SHIFT ) & 1 ;\n lhs -> s = ( flags & DESC_S_MASK ) != 0 ;\n lhs -> l = ( flags >> DESC_L_SHIFT ) & 1 ;\n lhs -> g = ( flags & DESC_G_MASK ) != 0 ;\n lhs -> avl = ( flags & DESC_AVL_MASK ) != 0 ;\n lhs -> unusable = ! lhs -> present ;\n lhs -> padding = 0 ;\n }"}
{"idx": 10589, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n MDECContext * const a = avctx -> priv_data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n AVFrame * picture = data ;\n AVFrame * const p = & a -> picture ;\n int i , ret ;\n if ( p -> data [ 0 ] ) ff_thread_release_buffer ( avctx , p ) ;\n p -> reference = 0 ;\n if ( ( ret = ff_thread_get_buffer ( avctx , p ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n p -> pict_type = AV_PICTURE_TYPE_I ;\n p -> key_frame = 1 ;\n av_fast_malloc ( & a -> bitstream_buffer , & a -> bitstream_buffer_size , buf_size + FF_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( ! a -> bitstream_buffer ) return AVERROR ( ENOMEM ) ;\n for ( i = 0 ;\n i < buf_size ;\n i += 2 ) {\n a -> bitstream_buffer [ i ] = buf [ i + 1 ] ;\n a -> bitstream_buffer [ i + 1 ] = buf [ i ] ;\n }\n init_get_bits ( & a -> gb , a -> bitstream_buffer , buf_size * 8 ) ;\n skip_bits ( & a -> gb , 32 ) ;\n a -> qscale = get_bits ( & a -> gb , 16 ) ;\n a -> version = get_bits ( & a -> gb , 16 ) ;\n a -> last_dc [ 0 ] = a -> last_dc [ 1 ] = a -> last_dc [ 2 ] = 128 ;\n for ( a -> mb_x = 0 ;\n a -> mb_x < a -> mb_width ;\n a -> mb_x ++ ) {\n for ( a -> mb_y = 0 ;\n a -> mb_y < a -> mb_height ;\n a -> mb_y ++ ) {\n if ( ( ret = decode_mb ( a , a -> block ) ) < 0 ) return ret ;\n idct_put ( a , a -> mb_x , a -> mb_y ) ;\n }\n }\n p -> quality = a -> qscale * FF_QP2LAMBDA ;\n memset ( p -> qscale_table , a -> qscale , a -> mb_width ) ;\n * picture = a -> picture ;\n * got_frame = 1 ;\n return ( get_bits_count ( & a -> gb ) + 31 ) / 32 * 4 ;\n }"}
{"idx": 10590, "target": 0, "func": "static ExprDoneCond ExecEvalFuncArgs ( FunctionCallInfo fcinfo , List * argList , ExprContext * econtext ) {\n ExprDoneCond argIsDone ;\n int i ;\n ListCell * arg ;\n argIsDone = ExprSingleResult ;\n i = 0 ;\n foreach ( arg , argList ) {\n ExprState * argstate = ( ExprState * ) lfirst ( arg ) ;\n ExprDoneCond thisArgIsDone ;\n fcinfo -> arg [ i ] = ExecEvalExpr ( argstate , econtext , & fcinfo -> argnull [ i ] , & thisArgIsDone ) ;\n if ( thisArgIsDone != ExprSingleResult ) {\n if ( argIsDone != ExprSingleResult ) ereport ( ERROR , ( errcode ( ERRCODE_FEATURE_NOT_SUPPORTED ) , errmsg ( \"functions and operators can take at most one set argument\" ) ) ) ;\n argIsDone = thisArgIsDone ;\n }\n i ++ ;\n }\n Assert ( i == fcinfo -> nargs ) ;\n return argIsDone ;\n }"}
{"idx": 10591, "target": 0, "func": "static int pxa2xx_i2c_slave_init ( I2CSlave * i2c ) {\n return 0 ;\n }"}
{"idx": 10592, "target": 0, "func": "static void encode_frame_rate ( VC2EncContext * s ) {\n put_bits ( & s -> pb , 1 , ! s -> strict_compliance ) ;\n if ( ! s -> strict_compliance ) {\n AVCodecContext * avctx = s -> avctx ;\n put_vc2_ue_uint ( & s -> pb , 0 ) ;\n put_vc2_ue_uint ( & s -> pb , avctx -> time_base . den ) ;\n put_vc2_ue_uint ( & s -> pb , avctx -> time_base . num ) ;\n }\n }"}
{"idx": 10593, "target": 0, "func": "static void arm_mptimer_register_types ( void ) {\n type_register_static ( & arm_mptimer_info ) ;\n }"}
{"idx": 10594, "target": 0, "func": "static chr newline ( void ) {\n return CHR ( '\\n' ) ;\n }"}
{"idx": 10595, "target": 0, "func": "static inline void idct_put ( ASV1Context * a , AVFrame * frame , int mb_x , int mb_y ) {\n int16_t ( * block ) [ 64 ] = a -> block ;\n int linesize = frame -> linesize [ 0 ] ;\n uint8_t * dest_y = frame -> data [ 0 ] + ( mb_y * 16 * linesize ) + mb_x * 16 ;\n uint8_t * dest_cb = frame -> data [ 1 ] + ( mb_y * 8 * frame -> linesize [ 1 ] ) + mb_x * 8 ;\n uint8_t * dest_cr = frame -> data [ 2 ] + ( mb_y * 8 * frame -> linesize [ 2 ] ) + mb_x * 8 ;\n a -> dsp . idct_put ( dest_y , linesize , block [ 0 ] ) ;\n a -> dsp . idct_put ( dest_y + 8 , linesize , block [ 1 ] ) ;\n a -> dsp . idct_put ( dest_y + 8 * linesize , linesize , block [ 2 ] ) ;\n a -> dsp . idct_put ( dest_y + 8 * linesize + 8 , linesize , block [ 3 ] ) ;\n if ( ! ( a -> avctx -> flags & CODEC_FLAG_GRAY ) ) {\n a -> dsp . idct_put ( dest_cb , frame -> linesize [ 1 ] , block [ 4 ] ) ;\n a -> dsp . idct_put ( dest_cr , frame -> linesize [ 2 ] , block [ 5 ] ) ;\n }\n }"}
{"idx": 10596, "target": 0, "func": "unsigned int vp9_variance ## W ## x ## H ## _c ( const uint8_t * a , int a_stride , const uint8_t * b , int b_stride , unsigned int * sse ) {\n int sum ;\n variance ( a , a_stride , b , b_stride , W , H , sse , & sum ) ;\n return * sse - ( ( ( int64_t ) sum * sum ) / ( W * H ) ) ;\n \\ }\n # define SUBPIX_VAR ( W , H ) unsigned int vp9_sub_pixel_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp2 , W , dst , dst_stride , sse ) ;\n \\ }\n # define SUBPIX_AVG_VAR ( W , H ) unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 ) VAR ( 8 , 4 ) SUBPIX_VAR ( 8 , 4 ) SUBPIX_AVG_VAR ( 8 , 4 ) VAR ( 8 , 8 ) SUBPIX_VAR ( 8 , 8 ) SUBPIX_AVG_VAR ( 8 , 8 ) VAR ( 8 , 16 ) SUBPIX_VAR ( 8 , 16 ) SUBPIX_AVG_VAR ( 8 , 16 ) VAR ( 16 , 8 ) SUBPIX_VAR ( 16 , 8 ) SUBPIX_AVG_VAR ( 16 , 8 ) VAR ( 16 , 16 ) SUBPIX_VAR ( 16 , 16 ) SUBPIX_AVG_VAR ( 16 , 16 ) VAR ( 16 , 32 ) SUBPIX_VAR ( 16 , 32 ) SUBPIX_AVG_VAR ( 16 , 32 ) VAR ( 32 , 16 ) SUBPIX_VAR ( 32 , 16 ) SUBPIX_AVG_VAR ( 32 , 16 ) VAR ( 32 , 32 ) SUBPIX_VAR ( 32 , 32 ) SUBPIX_AVG_VAR ( 32 , 32 ) VAR ( 32 , 64 )"}
{"idx": 10597, "target": 0, "func": "static int dissect_h225_OBJECT_IDENTIFIER ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_object_identifier ( tvb , offset , actx , tree , hf_index , NULL ) ;\n return offset ;\n }"}
{"idx": 10598, "target": 0, "func": "static void convert_to_rgb32 ( uint8_t * dst , const uint8_t * src , int width , int loco ) {\n if ( loco ) convert_to_rgb32_loco ( dst , src , width , 1 ) ;\n else convert_to_rgb32_loco ( dst , src , width , 0 ) ;\n }"}
{"idx": 10599, "target": 1, "func": "static int do_cmd ( xd3_stream * stream , const char * buf ) {\n int ret ;\n if ( ( ret = system ( buf ) ) != 0 ) {\n if ( WIFEXITED ( ret ) ) {\n stream -> msg = \"command exited non-zero\" ;\n IF_DEBUG1 ( XPR ( NT \"command was: %s\\n\" , buf ) ) ;\n }\n else {\n stream -> msg = \"abnormal command termination\" ;\n }\n return XD3_INTERNAL ;\n }\n return 0 ;\n }"}
{"idx": 10600, "target": 0, "func": "static char * fstrndup ( const char * ptr , unsigned long len ) {\n char * result ;\n if ( len <= 0 ) return NULL ;\n result = ALLOC_N ( char , len ) ;\n memcpy ( result , ptr , len ) ;\n return result ;\n }"}
{"idx": 10601, "target": 0, "func": "void ff_mpeg_draw_horiz_band ( MpegEncContext * s , int y , int h ) {\n int draw_edges = s -> unrestricted_mv && ! s -> intra_only ;\n ff_draw_horiz_band ( s -> avctx , & s -> dsp , & s -> current_picture , & s -> last_picture , y , h , s -> picture_structure , s -> first_field , draw_edges , s -> low_delay , s -> v_edge_pos , s -> h_edge_pos ) ;\n }"}
{"idx": 10602, "target": 0, "func": "static void application_launch_parameters_free ( ApplicationLaunchParameters * parameters ) {\n g_object_unref ( parameters -> application ) ;\n g_list_free_full ( parameters -> uris , g_free ) ;\n g_free ( parameters ) ;\n }"}
{"idx": 10603, "target": 0, "func": "static int dissect_amf ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , void * data _U_ ) {\n proto_item * ti ;\n proto_tree * amf_tree , * headers_tree , * messages_tree ;\n int offset ;\n guint header_count , message_count , i ;\n guint string_length ;\n guint header_length , message_length ;\n gboolean amf3_encoding = FALSE ;\n ti = proto_tree_add_item ( tree , proto_amf , tvb , 0 , - 1 , ENC_NA ) ;\n amf_tree = proto_item_add_subtree ( ti , ett_amf ) ;\n offset = 0 ;\n proto_tree_add_item ( amf_tree , hf_amf_version , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n offset += 2 ;\n header_count = tvb_get_ntohs ( tvb , offset ) ;\n proto_tree_add_uint ( amf_tree , hf_amf_header_count , tvb , offset , 2 , header_count ) ;\n offset += 2 ;\n if ( header_count != 0 ) {\n headers_tree = proto_tree_add_subtree ( amf_tree , tvb , offset , - 1 , ett_amf_headers , NULL , \"Headers\" ) ;\n for ( i = 0 ;\n i < header_count ;\n i ++ ) {\n string_length = tvb_get_ntohs ( tvb , offset ) ;\n proto_tree_add_item ( headers_tree , hf_amf_header_name , tvb , offset , 2 , ENC_UTF_8 | ENC_BIG_ENDIAN ) ;\n offset += 2 + string_length ;\n proto_tree_add_item ( headers_tree , hf_amf_header_must_understand , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n header_length = tvb_get_ntohl ( tvb , offset ) ;\n if ( header_length == 0xFFFFFFFF ) proto_tree_add_uint_format_value ( headers_tree , hf_amf_header_length , tvb , offset , 4 , header_length , \"Unknown\" ) ;\n else proto_tree_add_uint ( headers_tree , hf_amf_header_length , tvb , offset , 4 , header_length ) ;\n offset += 4 ;\n if ( amf3_encoding ) offset = dissect_amf3_value_type ( tvb , offset , headers_tree , NULL ) ;\n else offset = dissect_amf0_value_type ( tvb , offset , headers_tree , & amf3_encoding , NULL ) ;\n }\n }\n message_count = tvb_get_ntohs ( tvb , offset ) ;\n proto_tree_add_uint ( amf_tree , hf_amf_message_count , tvb , offset , 2 , message_count ) ;\n offset += 2 ;\n if ( message_count != 0 ) {\n messages_tree = proto_tree_add_subtree ( amf_tree , tvb , offset , - 1 , ett_amf_messages , NULL , \"Messages\" ) ;\n for ( i = 0 ;\n i < message_count ;\n i ++ ) {\n string_length = tvb_get_ntohs ( tvb , offset ) ;\n proto_tree_add_item ( messages_tree , hf_amf_message_target_uri , tvb , offset , 2 , ENC_UTF_8 | ENC_BIG_ENDIAN ) ;\n offset += 2 + string_length ;\n string_length = tvb_get_ntohs ( tvb , offset ) ;\n proto_tree_add_item ( messages_tree , hf_amf_message_response_uri , tvb , offset , 2 , ENC_UTF_8 | ENC_BIG_ENDIAN ) ;\n offset += 2 + string_length ;\n message_length = tvb_get_ntohl ( tvb , offset ) ;\n if ( message_length == 0xFFFFFFFF ) proto_tree_add_uint_format_value ( messages_tree , hf_amf_message_length , tvb , offset , 4 , message_length , \"Unknown\" ) ;\n else proto_tree_add_uint ( messages_tree , hf_amf_message_length , tvb , offset , 4 , message_length ) ;\n offset += 4 ;\n offset = dissect_rtmpt_body_command ( tvb , offset , messages_tree , FALSE ) ;\n }\n }\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 10604, "target": 0, "func": "static unsigned long get_match ( char * s , struct masks * m ) {\n while ( m -> name ) {\n if ( strcmp ( s , m -> name ) == 0 ) return m -> mask ;\n else m ++ ;\n }\n return 0 ;\n }"}
{"idx": 10605, "target": 0, "func": "const uint8_t * ff_h264_decode_nal ( H264Context * h , const uint8_t * src , int * dst_length , int * consumed , int length ) {\n int i , si , di ;\n uint8_t * dst ;\n int bufidx ;\n h -> nal_ref_idc = src [ 0 ] >> 5 ;\n h -> nal_unit_type = src [ 0 ] & 0x1F ;\n src ++ ;\n length -- ;\n # define STARTCODE_TEST if ( i + 2 < length && src [ i + 1 ] == 0 && src [ i + 2 ] <= 3 ) {\n if ( src [ i + 2 ] != 3 ) {\n length = i ;\n }\n break ;\n }\n # if HAVE_FAST_UNALIGNED # define FIND_FIRST_ZERO if ( i > 0 && ! src [ i ] ) i -- ;\n while ( src [ i ] ) i ++ # if HAVE_FAST_64BIT for ( i = 0 ;\n i + 1 < length ;\n i += 9 ) {\n if ( ! ( ( ~ AV_RN64A ( src + i ) & ( AV_RN64A ( src + i ) - 0x0100010001000101ULL ) ) & 0x8000800080008080ULL ) ) continue ;\n FIND_FIRST_ZERO ;\n STARTCODE_TEST ;\n i -= 7 ;\n }\n # else for ( i = 0 ;\n i + 1 < length ;\n i += 5 ) {\n if ( ! ( ( ~ AV_RN32A ( src + i ) & ( AV_RN32A ( src + i ) - 0x01000101U ) ) & 0x80008080U ) ) continue ;\n FIND_FIRST_ZERO ;\n STARTCODE_TEST ;\n i -= 3 ;\n }\n # endif # else for ( i = 0 ;\n i + 1 < length ;\n i += 2 ) {\n if ( src [ i ] ) continue ;\n if ( i > 0 && src [ i - 1 ] == 0 ) i -- ;\n STARTCODE_TEST ;\n }\n # endif bufidx = h -> nal_unit_type == NAL_DPC ? 1 : 0 ;\n si = h -> rbsp_buffer_size [ bufidx ] ;\n av_fast_padded_malloc ( & h -> rbsp_buffer [ bufidx ] , & h -> rbsp_buffer_size [ bufidx ] , length + MAX_MBPAIR_SIZE ) ;\n dst = h -> rbsp_buffer [ bufidx ] ;\n if ( dst == NULL ) return NULL ;\n if ( i >= length - 1 ) {\n / o escaped 0 * dst_length = length ;\n * consumed = length + 1 ;\n if ( h -> avctx -> flags2 & CODEC_FLAG2_FAST ) {\n return src ;\n }\n else {\n memcpy ( dst , src , length ) ;\n return dst ;\n }\n }\n memcpy ( dst , src , i ) ;\n si = di = i ;\n while ( si + 2 < length ) {\n if ( src [ si + 2 ] > 3 ) {\n dst [ di ++ ] = src [ si ++ ] ;\n dst [ di ++ ] = src [ si ++ ] ;\n }\n else if ( src [ si ] == 0 && src [ si + 1 ] == 0 ) {\n if ( src [ si + 2 ] == 3 ) {\n dst [ di ++ ] = 0 ;\n dst [ di ++ ] = 0 ;\n si += 3 ;\n continue ;\n }\n else goto nsc ;\n }\n dst [ di ++ ] = src [ si ++ ] ;\n }\n while ( si < length ) dst [ di ++ ] = src [ si ++ ] ;\n nsc : memset ( dst + di , 0 , FF_INPUT_BUFFER_PADDING_SIZE ) ;\n * dst_length = di ;\n * consumed = si + 1 ;\n return dst ;\n }"}
{"idx": 10606, "target": 0, "func": "static int dissct_rsl_msg ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , int offset ) {\n guint8 msg_disc , msg_type , sys_info_type ;\n msg_disc = tvb_get_guint8 ( tvb , offset ++ ) >> 1 ;\n msg_type = tvb_get_guint8 ( tvb , offset ) & 0x7f ;\n proto_tree_add_item ( tree , hf_rsl_msg_type , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n if ( msg_disc == RSL_MSGDISC_IPACCESS ) {\n offset = dissct_rsl_ipaccess_msg ( tvb , pinfo , tree , offset ) ;\n return offset ;\n }\n offset ++ ;\n switch ( msg_type ) {\n case RSL_MSG_TYPE_DATA_REQ : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_link_id ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_L3_inf ( tvb , pinfo , tree , offset , TRUE , L3_INF_OTHER ) ;\n break ;\n case RSL_MSG_TYPE_DATA_IND : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_link_id ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_L3_inf ( tvb , pinfo , tree , offset , TRUE , L3_INF_OTHER ) ;\n break ;\n case RSL_MSG_TYPE_ERROR_IND : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_link_id ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_rlm_cause ( tvb , pinfo , tree , offset , TRUE ) ;\n break ;\n case RSL_MSG_TYPE_EST_REQ : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_link_id ( tvb , pinfo , tree , offset , TRUE ) ;\n break ;\n case RSL_MSG_TYPE_EST_CONF : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_link_id ( tvb , pinfo , tree , offset , TRUE ) ;\n break ;\n case RSL_MSG_EST_IND : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_link_id ( tvb , pinfo , tree , offset , TRUE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 1 ) offset = dissect_rsl_ie_L3_inf ( tvb , pinfo , tree , offset , FALSE , L3_INF_OTHER ) ;\n break ;\n case RSL_MSG_REL_REQ : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_link_id ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_rel_mode ( tvb , pinfo , tree , offset , TRUE ) ;\n break ;\n case RSL_MSG_REL_CONF : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_link_id ( tvb , pinfo , tree , offset , TRUE ) ;\n break ;\n case RSL_MSG_REL_IND : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_link_id ( tvb , pinfo , tree , offset , TRUE ) ;\n break ;\n case RSL_MSG_UNIT_DATA_REQ : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_link_id ( tvb , pinfo , tree , offset , TRUE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_L3_inf ( tvb , pinfo , tree , offset , FALSE , L3_INF_OTHER ) ;\n break ;\n case RSL_MSG_BCCH_INFO : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_sys_info_type ( tvb , pinfo , tree , offset , TRUE , & sys_info_type ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_full_bcch_inf ( tvb , pinfo , tree , offset , TRUE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_starting_time ( tvb , pinfo , tree , offset , FALSE ) ;\n break ;\n case RSL_MSG_CCCH_LOAD_IND : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_rach_load ( tvb , pinfo , tree , offset , FALSE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_paging_load ( tvb , pinfo , tree , offset , FALSE ) ;\n break ;\n case RSL_MSG_CHANRQD : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_req_ref ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_access_delay ( tvb , pinfo , tree , offset , TRUE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_phy_ctx ( tvb , pinfo , tree , offset , FALSE ) ;\n break ;\n case RSL_MSG_DELETE_IND : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_full_imm_ass_inf ( tvb , pinfo , tree , offset , TRUE ) ;\n break ;\n case RSL_MSG_PAGING_CMD : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_paging_grp ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_ms_id ( tvb , pinfo , tree , offset , TRUE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_ch_needed ( tvb , pinfo , tree , offset , FALSE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_emlpp_prio ( tvb , pinfo , tree , offset , FALSE ) ;\n break ;\n case RSL_MSG_IMM_ASS_CMD : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_full_imm_ass_inf ( tvb , pinfo , tree , offset , TRUE ) ;\n break ;\n case RSL_MSG_SMS_BC_REQ : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_smscb_inf ( tvb , pinfo , tree , offset , TRUE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_smscb_ch_ind ( tvb , pinfo , tree , offset , FALSE ) ;\n break ;\n case RSL_MSG_RF_RES_IND : offset = dissect_rsl_ie_resource_inf ( tvb , pinfo , tree , offset , TRUE ) ;\n break ;\n case RSL_MSG_SACCH_FILL : offset = dissect_rsl_ie_sys_info_type ( tvb , pinfo , tree , offset , TRUE , & sys_info_type ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_L3_inf ( tvb , pinfo , tree , offset , FALSE , ( sys_info_type == 0x48 ) ? L3_INF_SACCH : L3_INF_OTHER ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_starting_time ( tvb , pinfo , tree , offset , FALSE ) ;\n break ;\n case RSL_MSG_OVERLOAD : offset = dissect_rsl_ie_cause ( tvb , pinfo , tree , offset , TRUE ) ;\n break ;\n case RSL_MSG_ERROR_REPORT : offset = dissect_rsl_ie_cause ( tvb , pinfo , tree , offset , TRUE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_message_id ( tvb , pinfo , tree , offset , FALSE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_link_id ( tvb , pinfo , tree , offset , TRUE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_err_msg ( tvb , pinfo , tree , offset , TRUE ) ;\n break ;\n case RSL_MSG_SMS_BC_CMD : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_cb_cmd_type ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_smscb_mess ( tvb , pinfo , tree , offset , TRUE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_smscb_ch_ind ( tvb , pinfo , tree , offset , FALSE ) ;\n break ;\n case RSL_MSG_CBCH_LOAD_IND : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_cbch_load_inf ( tvb , pinfo , tree , offset , TRUE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_smscb_ch_ind ( tvb , pinfo , tree , offset , FALSE ) ;\n break ;\n case RSL_MSG_NOT_CMD : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_cmd_ind ( tvb , pinfo , tree , offset , TRUE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_grp_call_ref ( tvb , pinfo , tree , offset , FALSE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_ch_desc ( tvb , pinfo , tree , offset , FALSE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_nch_drx ( tvb , pinfo , tree , offset , FALSE ) ;\n break ;\n case RSL_MSG_CHAN_ACTIV : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_act_type ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_ch_mode ( tvb , pinfo , tree , offset , TRUE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_ch_id ( tvb , pinfo , tree , offset , FALSE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_enc_inf ( tvb , pinfo , tree , offset , FALSE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_ho_ref ( tvb , pinfo , tree , offset , FALSE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_bs_power ( tvb , pinfo , tree , offset , FALSE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_ms_pow ( tvb , pinfo , tree , offset , FALSE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_timing_adv ( tvb , pinfo , tree , offset , FALSE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_phy_ctx ( tvb , pinfo , tree , offset , FALSE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_uic ( tvb , pinfo , tree , offset , FALSE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_main_ch_ref ( tvb , pinfo , tree , offset , FALSE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_multirate_conf ( tvb , pinfo , tree , offset , FALSE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_multirate_cntrl ( tvb , pinfo , tree , offset , FALSE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_sup_codec_types ( tvb , pinfo , tree , offset , FALSE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_tfo_transp_cont ( tvb , pinfo , tree , offset , FALSE ) ;\n break ;\n case RSL_MSG_CHAN_ACTIV_ACK : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_frame_no ( tvb , pinfo , tree , offset , TRUE ) ;\n break ;\n case RSL_MSG_CHAN_ACTIV_N_ACK : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_cause ( tvb , pinfo , tree , offset , TRUE ) ;\n break ;\n case RSL_MSG_CONN_FAIL : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_cause ( tvb , pinfo , tree , offset , TRUE ) ;\n break ;\n case RSL_MSG_DEACTIVATE_SACCH : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n break ;\n case RSL_MSG_ENCR_CMD : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_enc_inf ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_link_id ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_L3_inf ( tvb , pinfo , tree , offset , TRUE , L3_INF_OTHER ) ;\n break ;\n case RSL_MSG_HANDODET : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_access_delay ( tvb , pinfo , tree , offset , FALSE ) ;\n break ;\n case RSL_MSG_MEAS_RES : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_meas_res_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_uplik_meas ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_bs_power ( tvb , pinfo , tree , offset , TRUE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_l1_inf ( tvb , pinfo , tree , offset , FALSE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n if ( ( tvb_get_guint8 ( tvb , offset + 3 ) & 0xFE ) == 0x10 ) {\n offset = dissect_rsl_ie_L3_inf ( tvb , pinfo , tree , offset , FALSE , L3_INF_SACCH ) ;\n }\n else {\n offset = dissect_rsl_ie_L3_inf ( tvb , pinfo , tree , offset , FALSE , L3_INF_OTHER ) ;\n }\n }\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_ms_timing_offset ( tvb , pinfo , tree , offset , FALSE ) ;\n break ;\n case RSL_MSG_MODE_MODIFY_REQ : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_ch_mode ( tvb , pinfo , tree , offset , TRUE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_enc_inf ( tvb , pinfo , tree , offset , FALSE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_main_ch_ref ( tvb , pinfo , tree , offset , FALSE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_multirate_conf ( tvb , pinfo , tree , offset , FALSE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_multirate_cntrl ( tvb , pinfo , tree , offset , FALSE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_sup_codec_types ( tvb , pinfo , tree , offset , FALSE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_tfo_transp_cont ( tvb , pinfo , tree , offset , FALSE ) ;\n break ;\n case RSL_MSG_MODE_MODIFY_ACK : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n break ;\n case RSL_MSG_MODE_MODIFY_NACK : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_cause ( tvb , pinfo , tree , offset , TRUE ) ;\n break ;\n case RSL_MSG_PHY_CONTEXT_REQ : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n break ;\n case RSL_MSG_PHY_CONTEXT_CONF : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_bs_power ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_ms_pow ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_timing_adv ( tvb , pinfo , tree , offset , TRUE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_phy_ctx ( tvb , pinfo , tree , offset , FALSE ) ;\n break ;\n case RSL_MSG_RF_CHAN_REL : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n break ;\n case RSL_MSG_MS_POWER_CONTROL : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_ms_pow ( tvb , pinfo , tree , offset , FALSE ) ;\n break ;\n case RSL_MSG_BS_POWER_CONTROL : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_bs_power ( tvb , pinfo , tree , offset , TRUE ) ;\n break ;\n case RSL_MSG_PREPROC_CONFIG : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n break ;\n case RSL_MSG_PREPROC_MEAS_RES : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n break ;\n case RSL_MSG_RF_CHAN_REL_ACK : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n break ;\n case RSL_MSG_SACCH_INFO_MODIFY : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_sys_info_type ( tvb , pinfo , tree , offset , TRUE , & sys_info_type ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_L3_inf ( tvb , pinfo , tree , offset , FALSE , ( sys_info_type == 0x48 ) ? L3_INF_SACCH : L3_INF_OTHER ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_starting_time ( tvb , pinfo , tree , offset , FALSE ) ;\n break ;\n case RSL_MSG_TALKER_DET : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n break ;\n case RSL_MSG_LISTENER_DET : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n break ;\n case RSL_MSG_REMOTE_CODEC_CONF_REP : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_codec_conf ( tvb , pinfo , tree , offset , TRUE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_sup_codec_types ( tvb , pinfo , tree , offset , FALSE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_tfo_transp_cont ( tvb , pinfo , tree , offset , FALSE ) ;\n break ;\n case RSL_MSG_R_T_D_REP : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_rtd ( tvb , pinfo , tree , offset , TRUE ) ;\n break ;\n case RSL_MSG_PRE_HANDO_NOTIF : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_multirate_cntrl ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_codec_conf ( tvb , pinfo , tree , offset , TRUE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_tfo_transp_cont ( tvb , pinfo , tree , offset , FALSE ) ;\n break ;\n case RSL_MSG_MR_CODEC_MOD_REQ : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_multirate_conf ( tvb , pinfo , tree , offset , FALSE ) ;\n break ;\n case RSL_MSG_MR_CODEC_MOD_ACK : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_multirate_conf ( tvb , pinfo , tree , offset , FALSE ) ;\n break ;\n case RSL_MSG_MR_CODEC_MOD_NACK : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_cause ( tvb , pinfo , tree , offset , TRUE ) ;\n break ;\n case RSL_MSG_MR_CODEC_MOD_PER : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_multirate_conf ( tvb , pinfo , tree , offset , TRUE ) ;\n break ;\n case RSL_MSG_TFO_REP : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_tfo_status ( tvb , pinfo , tree , offset , TRUE ) ;\n break ;\n case RSL_MSG_TFO_MOD_REQ : offset = dissect_rsl_ie_ch_no ( tvb , pinfo , tree , offset , TRUE ) ;\n offset = dissect_rsl_ie_multirate_cntrl ( tvb , pinfo , tree , offset , TRUE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_sup_codec_types ( tvb , pinfo , tree , offset , FALSE ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) offset = dissect_rsl_ie_tfo_transp_cont ( tvb , pinfo , tree , offset , FALSE ) ;\n break ;\n case RSL_MSG_LOC_INF : offset = dissect_rsl_ie_llp_apdu ( tvb , pinfo , tree , offset , TRUE ) ;\n break ;\n case RSL_MSG_TYPE_IPAC_MEAS_PP_DEF : case RSL_MSG_TYPE_IPAC_HO_CAND_INQ : case RSL_MSG_TYPE_IPAC_HO_CAND_RESP : case RSL_MSG_TYPE_IPAC_PDCH_ACT : case RSL_MSG_TYPE_IPAC_PDCH_ACT_ACK : case RSL_MSG_TYPE_IPAC_PDCH_ACT_NACK : case RSL_MSG_TYPE_IPAC_PDCH_DEACT : case RSL_MSG_TYPE_IPAC_PDCH_DEACT_ACK : case RSL_MSG_TYPE_IPAC_PDCH_DEACT_NACK : if ( global_rsl_use_nano_bts ) offset = dissct_rsl_ipaccess_msg ( tvb , pinfo , tree , offset - 1 ) ;\n default : break ;\n }\n return offset ;\n }"}
{"idx": 10607, "target": 0, "func": "static int com_edit ( String * buffer , char * line __attribute__ ( ( unused ) ) ) {\n char filename [ FN_REFLEN ] , buff [ 160 ] ;\n int fd , tmp , error ;\n const char * editor ;\n MY_STAT stat_arg ;\n if ( ( fd = create_temp_file ( filename , NullS , \"sql\" , O_CREAT | O_WRONLY , MYF ( MY_WME ) ) ) < 0 ) goto err ;\n if ( buffer -> is_empty ( ) && ! old_buffer . is_empty ( ) ) ( void ) my_write ( fd , ( uchar * ) old_buffer . ptr ( ) , old_buffer . length ( ) , MYF ( MY_WME ) ) ;\n else ( void ) my_write ( fd , ( uchar * ) buffer -> ptr ( ) , buffer -> length ( ) , MYF ( MY_WME ) ) ;\n ( void ) my_close ( fd , MYF ( 0 ) ) ;\n if ( ! ( editor = ( char * ) getenv ( \"EDITOR\" ) ) && ! ( editor = ( char * ) getenv ( \"VISUAL\" ) ) ) editor = \"vi\" ;\n strxmov ( buff , editor , \" \" , filename , NullS ) ;\n if ( ( error = system ( buff ) ) ) {\n char errmsg [ 100 ] ;\n sprintf ( errmsg , \"Command '%.40s' failed\" , buff ) ;\n put_info ( errmsg , INFO_ERROR , 0 , NullS ) ;\n goto err ;\n }\n if ( ! my_stat ( filename , & stat_arg , MYF ( MY_WME ) ) ) goto err ;\n if ( ( fd = my_open ( filename , O_RDONLY , MYF ( MY_WME ) ) ) < 0 ) goto err ;\n ( void ) buffer -> alloc ( ( uint ) stat_arg . st_size ) ;\n if ( ( tmp = read ( fd , ( char * ) buffer -> ptr ( ) , buffer -> alloced_length ( ) ) ) >= 0L ) buffer -> length ( ( uint ) tmp ) ;\n else buffer -> length ( 0 ) ;\n ( void ) my_close ( fd , MYF ( 0 ) ) ;\n ( void ) my_delete ( filename , MYF ( MY_WME ) ) ;\n err : return 0 ;\n }"}
{"idx": 10608, "target": 1, "func": "int main ( int argc , char * * argv ) {\n struct event evfifo ;\n # ifdef WIN32 HANDLE socket ;\n socket = CreateFile ( \"test.txt\" , GENERIC_READ , 0 , NULL , OPEN_EXISTING , FILE_ATTRIBUTE_NORMAL , NULL ) ;\n if ( socket == INVALID_HANDLE_VALUE ) return 1 ;\n # else struct stat st ;\n const char * fifo = \"event.fifo\" ;\n int socket ;\n if ( lstat ( fifo , & st ) == 0 ) {\n if ( ( st . st_mode & S_IFMT ) == S_IFREG ) {\n errno = EEXIST ;\n perror ( \"lstat\" ) ;\n exit ( 1 ) ;\n }\n }\n unlink ( fifo ) ;\n if ( mkfifo ( fifo , 0600 ) == - 1 ) {\n perror ( \"mkfifo\" ) ;\n exit ( 1 ) ;\n }\n # ifdef __linux socket = open ( fifo , O_RDWR | O_NONBLOCK , 0 ) ;\n # else socket = open ( fifo , O_RDONLY | O_NONBLOCK , 0 ) ;\n # endif if ( socket == - 1 ) {\n perror ( \"open\" ) ;\n exit ( 1 ) ;\n }\n fprintf ( stderr , \"Write data to %s\\n\" , fifo ) ;\n # endif event_init ( ) ;\n # ifdef WIN32 event_set ( & evfifo , ( int ) socket , EV_READ , fifo_read , & evfifo ) ;\n # else event_set ( & evfifo , socket , EV_READ , fifo_read , & evfifo ) ;\n # endif event_add ( & evfifo , NULL ) ;\n event_dispatch ( ) ;\n # ifdef WIN32 CloseHandle ( socket ) ;\n # endif return ( 0 ) ;\n }"}
{"idx": 10609, "target": 0, "func": "int getnetnum ( const char * hname , sockaddr_u * num , char * fullhost , int af ) {\n struct addrinfo hints , * ai = NULL ;\n ZERO ( hints ) ;\n hints . ai_flags = AI_CANONNAME ;\n # ifdef AI_ADDRCONFIG hints . ai_flags |= AI_ADDRCONFIG ;\n # endif if ( decodenetnum ( hname , num ) ) {\n if ( fullhost != NULL ) getnameinfo ( & num -> sa , SOCKLEN ( num ) , fullhost , LENHOSTNAME , NULL , 0 , 0 ) ;\n return 1 ;\n }\n else if ( getaddrinfo ( hname , \"ntp\" , & hints , & ai ) == 0 ) {\n INSIST ( sizeof ( * num ) >= ai -> ai_addrlen ) ;\n memcpy ( num , ai -> ai_addr , ai -> ai_addrlen ) ;\n if ( fullhost != NULL ) {\n if ( ai -> ai_canonname != NULL ) strlcpy ( fullhost , ai -> ai_canonname , LENHOSTNAME ) ;\n else getnameinfo ( & num -> sa , SOCKLEN ( num ) , fullhost , LENHOSTNAME , NULL , 0 , 0 ) ;\n }\n freeaddrinfo ( ai ) ;\n return 1 ;\n }\n fprintf ( stderr , \"***Can't find host %s\\n\" , hname ) ;\n return 0 ;\n }"}
{"idx": 10610, "target": 0, "func": "static int get_description ( struct NntpData * nntp_data , char * wildmat , char * msg ) {\n char buf [ STRING ] ;\n char * cmd = NULL ;\n struct NntpServer * nserv = nntp_data -> nserv ;\n if ( ! wildmat ) wildmat = nntp_data -> group ;\n if ( nserv -> hasLIST_NEWSGROUPS ) cmd = \"LIST NEWSGROUPS\" ;\n else if ( nserv -> hasXGTITLE ) cmd = \"XGTITLE\" ;\n else return 0 ;\n snprintf ( buf , sizeof ( buf ) , \"%s %s\\r\\n\" , cmd , wildmat ) ;\n int rc = nntp_fetch_lines ( nntp_data , buf , sizeof ( buf ) , msg , fetch_description , nserv ) ;\n if ( rc > 0 ) {\n mutt_error ( \"%s: %s\" , cmd , buf ) ;\n }\n return rc ;\n }"}
{"idx": 10611, "target": 0, "func": "int i2d_EC_PUBKEY_fp ( FILE * fp , EC_KEY * eckey ) {\n return ASN1_i2d_fp_of ( EC_KEY , i2d_EC_PUBKEY , fp , eckey ) ;\n }"}
{"idx": 10612, "target": 0, "func": "static void steamdiscover_dissect_body_streamingrequest ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , gint offset , gint bytes_left ) {\n gint len ;\n gint64 value ;\n protobuf_desc_t pb = {\n tvb , offset , bytes_left }\n ;\n protobuf_tag_t tag = {\n 0 , 0 , 0 }\n ;\n while ( protobuf_iter_next ( & pb , & tag ) ) {\n switch ( tag . field_number ) {\n case STEAMDISCOVER_FN_STREAMINGREQUEST_REQUESTID : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_uint ( tree , hf_steam_ihs_discovery_body_streamingrequest_requestid , pb . tvb , pb . offset , len , ( guint32 ) value ) ;\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"%s ID=%08x\" , hf_steam_ihs_discovery_header_msgtype_strings [ STEAMDISCOVER_MSGTYPE_DEVICESTREAMINGREQUEST ] . strptr , ( guint32 ) value ) ;\n break ;\n case STEAMDISCOVER_FN_STREAMINGREQUEST_MAXIMUMRESOLUTIONX : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_int ( tree , hf_steam_ihs_discovery_body_streamingrequest_maximumresolutionx , pb . tvb , pb . offset , len , ( gint32 ) value ) ;\n break ;\n case STEAMDISCOVER_FN_STREAMINGREQUEST_MAXIMUMRESOLUTIONY : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_int ( tree , hf_steam_ihs_discovery_body_streamingrequest_maximumresolutiony , pb . tvb , pb . offset , len , ( gint32 ) value ) ;\n break ;\n case STEAMDISCOVER_FN_STREAMINGREQUEST_AUDIOCHANNELCOUNT : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_int ( tree , hf_steam_ihs_discovery_body_streamingrequest_audiochannelcount , pb . tvb , pb . offset , len , ( gint32 ) value ) ;\n break ;\n case STEAMDISCOVER_FN_STREAMINGREQUEST_DEVICEVERSION : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_LENGTHDELIMITED ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_item ( tree , hf_steam_ihs_discovery_body_streamingrequest_deviceversion , pb . tvb , pb . offset + len , ( gint ) value , ENC_UTF_8 | ENC_NA ) ;\n len += ( gint ) value ;\n break ;\n case STEAMDISCOVER_FN_STREAMINGREQUEST_STREAMDESKTOP : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_boolean ( tree , hf_steam_ihs_discovery_body_streamingrequest_streamdesktop , pb . tvb , pb . offset , len , ( gint32 ) value ) ;\n break ;\n case STEAMDISCOVER_FN_STREAMINGREQUEST_DEVICETOKEN : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_LENGTHDELIMITED ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_item ( tree , hf_steam_ihs_discovery_body_streamingrequest_devicetoken , pb . tvb , pb . offset + len , ( gint ) value , ENC_NA ) ;\n len += ( gint ) value ;\n break ;\n case STEAMDISCOVER_FN_STREAMINGREQUEST_PIN : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_LENGTHDELIMITED ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_item ( tree , hf_steam_ihs_discovery_body_streamingrequest_pin , pb . tvb , pb . offset + len , ( gint ) value , ENC_NA ) ;\n len += ( gint ) value ;\n break ;\n case STEAMDISCOVER_FN_STREAMINGREQUEST_ENABLEVIDEOSTREAMING : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_boolean ( tree , hf_steam_ihs_discovery_body_streamingrequest_enablevideostreaming , pb . tvb , pb . offset , len , ( gint32 ) value ) ;\n break ;\n case STEAMDISCOVER_FN_STREAMINGREQUEST_ENABLEAUDIOSTREAMING : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_boolean ( tree , hf_steam_ihs_discovery_body_streamingrequest_enableaudiostreaming , pb . tvb , pb . offset , len , ( gint32 ) value ) ;\n break ;\n case STEAMDISCOVER_FN_STREAMINGREQUEST_ENABLEINPUTSTREAMING : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_boolean ( tree , hf_steam_ihs_discovery_body_streamingrequest_enableinputstreaming , pb . tvb , pb . offset , len , ( gint32 ) value ) ;\n break ;\n default : len = protobuf_dissect_unknown_field ( & pb , & tag , pinfo , tree , NULL ) ;\n break ;\n }\n protobuf_seek_forward ( & pb , len ) ;\n }\n }"}
{"idx": 10613, "target": 0, "func": "static void g2cmyk ( fz_context * ctx , fz_color_converter * cc , float * dv , const float * sv ) {\n dv [ 0 ] = 0 ;\n dv [ 1 ] = 0 ;\n dv [ 2 ] = 0 ;\n dv [ 3 ] = 1 - sv [ 0 ] ;\n }"}
{"idx": 10614, "target": 0, "func": "unsigned long # endif # undef mul # undef mul_add # define mul_add ( r , a , word , carry ) do {\n \\ register BN_ULONG high , low ;\n \\ asm ( \"mulq %3\" \\ : \"=a\" ( low ) , \"=d\" ( high ) \\ : \"a\" ( word ) , \"m\" ( a ) \\ : \"cc\" ) ;\n \\ asm ( \"addq %2,%0;\n adcq %3,%1\" \\ : \"+r\" ( carry ) , \"+d\" ( high ) \\ : \"a\" ( low ) , \"g\" ( 0 ) \\ : \"cc\" ) ;\n \\ asm ( \"addq %2,%0;\n adcq %3,%1\" \\ : \"+m\" ( r ) , \"+d\" ( high ) \\ : \"r\" ( carry ) , \"g\" ( 0 ) \\ : \"cc\" ) ;\n \\ carry = high ;\n \\ }\n while ( 0 ) # define mul ( r , a , word , carry ) do {\n \\ register BN_ULONG high , low ;\n \\ asm ( \"mulq %3\" \\ : \"=a\" ( low ) , \"=d\" ( high ) \\ : \"a\" ( word ) , \"g\" ( a ) \\ : \"cc\" ) ;\n \\ asm ( \"addq %2,%0;\n adcq %3,%1\" \\ : \"+r\" ( carry ) , \"+d\" ( high ) \\ : \"a\" ( low ) , \"g\" ( 0 ) \\ : \"cc\" ) ;\n \\ ( r ) = carry , carry = high ;\n \\ }\n while ( 0 ) # undef sqr # define sqr ( r0 , r1 , a ) \\ asm ( \"mulq %2\" \\ : \"=a\" ( r0 ) , \"=d\" ( r1 ) \\ : \"a\" ( a ) \\ : \"cc\" ) ;\n BN_ULONG bn_mul_add_words ( BN_ULONG * rp , const BN_ULONG * ap , int num , BN_ULONG w ) {\n BN_ULONG c1 = 0 ;\n if ( num <= 0 ) return ( c1 ) ;\n while ( num & ~ 3 ) {\n mul_add ( rp [ 0 ] , ap [ 0 ] , w , c1 ) ;\n mul_add ( rp [ 1 ] , ap [ 1 ] , w , c1 ) ;\n mul_add ( rp [ 2 ] , ap [ 2 ] , w , c1 ) ;\n mul_add ( rp [ 3 ] , ap [ 3 ] , w , c1 ) ;\n ap += 4 ;\n rp += 4 ;\n num -= 4 ;\n }\n if ( num ) {\n mul_add ( rp [ 0 ] , ap [ 0 ] , w , c1 ) ;\n if ( -- num == 0 ) return c1 ;\n mul_add ( rp [ 1 ] , ap [ 1 ] , w , c1 ) ;\n if ( -- num == 0 ) return c1 ;\n mul_add ( rp [ 2 ] , ap [ 2 ] , w , c1 ) ;\n return c1 ;\n }\n return ( c1 ) ;\n }"}
{"idx": 10615, "target": 0, "func": "static bool get_variable_range ( PlannerInfo * root , VariableStatData * vardata , Oid sortop , Datum * min , Datum * max ) {\n Datum tmin = 0 ;\n Datum tmax = 0 ;\n bool have_data = false ;\n int16 typLen ;\n bool typByVal ;\n Oid opfuncoid ;\n Datum * values ;\n int nvalues ;\n int i ;\n # ifdef NOT_USED if ( get_actual_variable_range ( root , vardata , sortop , min , max ) ) return true ;\n # endif if ( ! HeapTupleIsValid ( vardata -> statsTuple ) ) {\n return false ;\n }\n if ( ! statistic_proc_security_check ( vardata , ( opfuncoid = get_opcode ( sortop ) ) ) ) return false ;\n get_typlenbyval ( vardata -> atttype , & typLen , & typByVal ) ;\n if ( get_attstatsslot ( vardata -> statsTuple , vardata -> atttype , vardata -> atttypmod , STATISTIC_KIND_HISTOGRAM , sortop , NULL , & values , & nvalues , NULL , NULL ) ) {\n if ( nvalues > 0 ) {\n tmin = datumCopy ( values [ 0 ] , typByVal , typLen ) ;\n tmax = datumCopy ( values [ nvalues - 1 ] , typByVal , typLen ) ;\n have_data = true ;\n }\n free_attstatsslot ( vardata -> atttype , values , nvalues , NULL , 0 ) ;\n }\n else if ( get_attstatsslot ( vardata -> statsTuple , vardata -> atttype , vardata -> atttypmod , STATISTIC_KIND_HISTOGRAM , InvalidOid , NULL , & values , & nvalues , NULL , NULL ) ) {\n free_attstatsslot ( vardata -> atttype , values , nvalues , NULL , 0 ) ;\n return false ;\n }\n if ( get_attstatsslot ( vardata -> statsTuple , vardata -> atttype , vardata -> atttypmod , STATISTIC_KIND_MCV , InvalidOid , NULL , & values , & nvalues , NULL , NULL ) ) {\n bool tmin_is_mcv = false ;\n bool tmax_is_mcv = false ;\n FmgrInfo opproc ;\n fmgr_info ( opfuncoid , & opproc ) ;\n for ( i = 0 ;\n i < nvalues ;\n i ++ ) {\n if ( ! have_data ) {\n tmin = tmax = values [ i ] ;\n tmin_is_mcv = tmax_is_mcv = have_data = true ;\n continue ;\n }\n if ( DatumGetBool ( FunctionCall2Coll ( & opproc , DEFAULT_COLLATION_OID , values [ i ] , tmin ) ) ) {\n tmin = values [ i ] ;\n tmin_is_mcv = true ;\n }\n if ( DatumGetBool ( FunctionCall2Coll ( & opproc , DEFAULT_COLLATION_OID , tmax , values [ i ] ) ) ) {\n tmax = values [ i ] ;\n tmax_is_mcv = true ;\n }\n }\n if ( tmin_is_mcv ) tmin = datumCopy ( tmin , typByVal , typLen ) ;\n if ( tmax_is_mcv ) tmax = datumCopy ( tmax , typByVal , typLen ) ;\n free_attstatsslot ( vardata -> atttype , values , nvalues , NULL , 0 ) ;\n }\n * min = tmin ;\n * max = tmax ;\n return have_data ;\n }"}
{"idx": 10616, "target": 0, "func": "static gcry_err_code_t sexp_to_sig ( gcry_sexp_t sexp , gcry_mpi_t * * retarray , gcry_module_t * retalgo , int opaque ) {\n gcry_err_code_t err = 0 ;\n gcry_sexp_t list , l2 ;\n char * name ;\n const char * elems ;\n gcry_mpi_t * array ;\n gcry_module_t module ;\n gcry_pk_spec_t * pubkey ;\n list = gcry_sexp_find_token ( sexp , \"sig-val\" , 0 ) ;\n if ( ! list ) return GPG_ERR_INV_OBJ ;\n l2 = gcry_sexp_nth ( list , 1 ) ;\n if ( ! l2 ) {\n gcry_sexp_release ( list ) ;\n return GPG_ERR_NO_OBJ ;\n }\n name = _gcry_sexp_nth_string ( l2 , 0 ) ;\n if ( ! name ) {\n gcry_sexp_release ( list ) ;\n gcry_sexp_release ( l2 ) ;\n return GPG_ERR_INV_OBJ ;\n }\n else if ( ! strcmp ( name , \"flags\" ) ) {\n gcry_free ( name ) ;\n gcry_sexp_release ( l2 ) ;\n l2 = gcry_sexp_nth ( list , 2 ) ;\n if ( ! l2 ) {\n gcry_sexp_release ( list ) ;\n return GPG_ERR_INV_OBJ ;\n }\n name = _gcry_sexp_nth_string ( l2 , 0 ) ;\n }\n ath_mutex_lock ( & pubkeys_registered_lock ) ;\n module = gcry_pk_lookup_name ( name ) ;\n ath_mutex_unlock ( & pubkeys_registered_lock ) ;\n gcry_free ( name ) ;\n name = NULL ;\n if ( ! module ) {\n gcry_sexp_release ( l2 ) ;\n gcry_sexp_release ( list ) ;\n return GPG_ERR_PUBKEY_ALGO ;\n }\n else pubkey = ( gcry_pk_spec_t * ) module -> spec ;\n elems = pubkey -> elements_sig ;\n array = gcry_calloc ( strlen ( elems ) + 1 , sizeof * array ) ;\n if ( ! array ) err = gpg_err_code_from_syserror ( ) ;\n if ( ! err ) err = sexp_elements_extract ( list , elems , array , NULL , opaque ) ;\n gcry_sexp_release ( l2 ) ;\n gcry_sexp_release ( list ) ;\n if ( err ) {\n ath_mutex_lock ( & pubkeys_registered_lock ) ;\n _gcry_module_release ( module ) ;\n ath_mutex_unlock ( & pubkeys_registered_lock ) ;\n gcry_free ( array ) ;\n }\n else {\n * retarray = array ;\n * retalgo = module ;\n }\n return err ;\n }"}
{"idx": 10617, "target": 0, "func": "static void test_bug1946 ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n const char * query = \"INSERT INTO prepare_command VALUES (?)\" ;\n myheader ( \"test_bug1946\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS prepare_command\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE prepare_command(ID INT)\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n rc = mysql_real_query ( mysql , query , strlen ( query ) ) ;\n DIE_UNLESS ( rc != 0 ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"Got error (as expected):\\n\" ) ;\n myerror ( NULL ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"DROP TABLE prepare_command\" ) ;\n }"}
{"idx": 10618, "target": 0, "func": "static void ohci_wakeup ( USBPort * port1 ) {\n OHCIState * s = port1 -> opaque ;\n OHCIPort * port = & s -> rhport [ port1 -> index ] ;\n uint32_t intr = 0 ;\n if ( port -> ctrl & OHCI_PORT_PSS ) {\n trace_usb_ohci_port_wakeup ( port1 -> index ) ;\n port -> ctrl |= OHCI_PORT_PSSC ;\n port -> ctrl &= ~ OHCI_PORT_PSS ;\n intr = OHCI_INTR_RHSC ;\n }\n if ( ( s -> ctl & OHCI_CTL_HCFS ) == OHCI_USB_SUSPEND ) {\n trace_usb_ohci_remote_wakeup ( s -> name ) ;\n s -> ctl &= ~ OHCI_CTL_HCFS ;\n s -> ctl |= OHCI_USB_RESUME ;\n intr = OHCI_INTR_RD ;\n }\n ohci_set_interrupt ( s , intr ) ;\n }"}
{"idx": 10619, "target": 0, "func": "struct mszipd_stream * mszipd_init ( struct mspack_system * system , struct mspack_file * input , struct mspack_file * output , int input_buffer_size , int repair_mode ) {\n struct mszipd_stream * zip ;\n if ( ! system ) return NULL ;\n input_buffer_size = ( input_buffer_size + 1 ) & - 2 ;\n if ( input_buffer_size < 2 ) return NULL ;\n if ( ! ( zip = ( struct mszipd_stream * ) system -> alloc ( system , sizeof ( struct mszipd_stream ) ) ) ) {\n return NULL ;\n }\n zip -> inbuf = ( unsigned char * ) system -> alloc ( system , ( size_t ) input_buffer_size ) ;\n if ( ! zip -> inbuf ) {\n system -> free ( zip ) ;\n return NULL ;\n }\n zip -> sys = system ;\n zip -> input = input ;\n zip -> output = output ;\n zip -> inbuf_size = input_buffer_size ;\n zip -> input_end = 0 ;\n zip -> error = MSPACK_ERR_OK ;\n zip -> repair_mode = repair_mode ;\n zip -> flush_window = & mszipd_flush_window ;\n zip -> i_ptr = zip -> i_end = & zip -> inbuf [ 0 ] ;\n zip -> o_ptr = zip -> o_end = NULL ;\n zip -> bit_buffer = 0 ;\n zip -> bits_left = 0 ;\n return zip ;\n }"}
{"idx": 10620, "target": 0, "func": "static gboolean is_writeable_response ( guint8 opcode ) {\n return ( opcode == ATT_OPCODE_WRITE_RESPONSE || opcode == ATT_OPCODE_WRITE_PREPARE_RESPONSE ) ;\n }"}
{"idx": 10621, "target": 0, "func": "static void count_children_done ( NautilusDirectory * directory , NautilusFile * count_file , gboolean succeeded , int count ) {\n g_assert ( NAUTILUS_IS_FILE ( count_file ) ) ;\n count_file -> details -> directory_count_is_up_to_date = TRUE ;\n if ( ! succeeded ) {\n count_file -> details -> directory_count_failed = TRUE ;\n count_file -> details -> got_directory_count = FALSE ;\n count_file -> details -> directory_count = 0 ;\n }\n else {\n count_file -> details -> directory_count_failed = FALSE ;\n count_file -> details -> got_directory_count = TRUE ;\n count_file -> details -> directory_count = count ;\n }\n directory -> details -> count_in_progress = NULL ;\n nautilus_file_changed ( count_file ) ;\n async_job_end ( directory , \"directory count\" ) ;\n nautilus_directory_async_state_changed ( directory ) ;\n }"}
{"idx": 10622, "target": 0, "func": "void ff_h264_filter_mb ( H264Context * h , int mb_x , int mb_y , uint8_t * img_y , uint8_t * img_cb , uint8_t * img_cr , unsigned int linesize , unsigned int uvlinesize ) {\n const int mb_xy = mb_x + mb_y * h -> mb_stride ;\n const int mb_type = h -> cur_pic . mb_type [ mb_xy ] ;\n const int mvy_limit = IS_INTERLACED ( mb_type ) ? 2 : 4 ;\n int first_vertical_edge_done = 0 ;\n av_unused int dir ;\n int chroma = ! ( CONFIG_GRAY && ( h -> flags & CODEC_FLAG_GRAY ) ) ;\n int qp_bd_offset = 6 * ( h -> sps . bit_depth_luma - 8 ) ;\n int a = h -> slice_alpha_c0_offset - qp_bd_offset ;\n int b = h -> slice_beta_offset - qp_bd_offset ;\n if ( FRAME_MBAFF && IS_INTERLACED ( mb_type ^ h -> left_type [ LTOP ] ) && h -> left_type [ LTOP ] ) {\n DECLARE_ALIGNED ( 8 , int16_t , bS ) [ 8 ] ;\n int qp [ 2 ] ;\n int bqp [ 2 ] ;\n int rqp [ 2 ] ;\n int mb_qp , mbn0_qp , mbn1_qp ;\n int i ;\n first_vertical_edge_done = 1 ;\n if ( IS_INTRA ( mb_type ) ) {\n AV_WN64A ( & bS [ 0 ] , 0x0004000400040004ULL ) ;\n AV_WN64A ( & bS [ 4 ] , 0x0004000400040004ULL ) ;\n }\n else {\n static const uint8_t offset [ 2 ] [ 2 ] [ 8 ] = {\n {\n {\n 3 + 4 * 0 , 3 + 4 * 0 , 3 + 4 * 0 , 3 + 4 * 0 , 3 + 4 * 1 , 3 + 4 * 1 , 3 + 4 * 1 , 3 + 4 * 1 }\n , {\n 3 + 4 * 2 , 3 + 4 * 2 , 3 + 4 * 2 , 3 + 4 * 2 , 3 + 4 * 3 , 3 + 4 * 3 , 3 + 4 * 3 , 3 + 4 * 3 }\n , }\n , {\n {\n 3 + 4 * 0 , 3 + 4 * 1 , 3 + 4 * 2 , 3 + 4 * 3 , 3 + 4 * 0 , 3 + 4 * 1 , 3 + 4 * 2 , 3 + 4 * 3 }\n , {\n 3 + 4 * 0 , 3 + 4 * 1 , 3 + 4 * 2 , 3 + 4 * 3 , 3 + 4 * 0 , 3 + 4 * 1 , 3 + 4 * 2 , 3 + 4 * 3 }\n , }\n }\n ;\n const uint8_t * off = offset [ MB_FIELD ] [ mb_y & 1 ] ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n int j = MB_FIELD ? i >> 2 : i & 1 ;\n int mbn_xy = h -> left_mb_xy [ LEFT ( j ) ] ;\n int mbn_type = h -> left_type [ LEFT ( j ) ] ;\n if ( IS_INTRA ( mbn_type ) ) bS [ i ] = 4 ;\n else {\n bS [ i ] = 1 + ! ! ( h -> non_zero_count_cache [ 12 + 8 * ( i >> 1 ) ] | ( ( ! h -> pps . cabac && IS_8x8DCT ( mbn_type ) ) ? ( h -> cbp_table [ mbn_xy ] & ( ( ( MB_FIELD ? ( i & 2 ) : ( mb_y & 1 ) ) ? 8 : 2 ) << 12 ) ) : h -> non_zero_count [ mbn_xy ] [ off [ i ] ] ) ) ;\n }\n }\n }\n mb_qp = h -> cur_pic . qscale_table [ mb_xy ] ;\n mbn0_qp = h -> cur_pic . qscale_table [ h -> left_mb_xy [ 0 ] ] ;\n mbn1_qp = h -> cur_pic . qscale_table [ h -> left_mb_xy [ 1 ] ] ;\n qp [ 0 ] = ( mb_qp + mbn0_qp + 1 ) >> 1 ;\n bqp [ 0 ] = ( get_chroma_qp ( h , 0 , mb_qp ) + get_chroma_qp ( h , 0 , mbn0_qp ) + 1 ) >> 1 ;\n rqp [ 0 ] = ( get_chroma_qp ( h , 1 , mb_qp ) + get_chroma_qp ( h , 1 , mbn0_qp ) + 1 ) >> 1 ;\n qp [ 1 ] = ( mb_qp + mbn1_qp + 1 ) >> 1 ;\n bqp [ 1 ] = ( get_chroma_qp ( h , 0 , mb_qp ) + get_chroma_qp ( h , 0 , mbn1_qp ) + 1 ) >> 1 ;\n rqp [ 1 ] = ( get_chroma_qp ( h , 1 , mb_qp ) + get_chroma_qp ( h , 1 , mbn1_qp ) + 1 ) >> 1 ;\n tprintf ( h -> avctx , \"filter mb:%d/%d MBAFF, QPy:%d/%d, QPb:%d/%d QPr:%d/%d ls:%d uvls:%d\" , mb_x , mb_y , qp [ 0 ] , qp [ 1 ] , bqp [ 0 ] , bqp [ 1 ] , rqp [ 0 ] , rqp [ 1 ] , linesize , uvlinesize ) ;\n {\n int i ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) tprintf ( h -> avctx , \" bS[%d]:%d\" , i , bS [ i ] ) ;\n tprintf ( h -> avctx , \"\\n\" ) ;\n }\n if ( MB_FIELD ) {\n filter_mb_mbaff_edgev ( h , img_y , linesize , bS , 1 , qp [ 0 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgev ( h , img_y + 8 * linesize , linesize , bS + 4 , 1 , qp [ 1 ] , a , b , 1 ) ;\n if ( chroma ) {\n if ( CHROMA444 ) {\n filter_mb_mbaff_edgev ( h , img_cb , uvlinesize , bS , 1 , bqp [ 0 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgev ( h , img_cb + 8 * uvlinesize , uvlinesize , bS + 4 , 1 , bqp [ 1 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgev ( h , img_cr , uvlinesize , bS , 1 , rqp [ 0 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgev ( h , img_cr + 8 * uvlinesize , uvlinesize , bS + 4 , 1 , rqp [ 1 ] , a , b , 1 ) ;\n }\n else if ( CHROMA422 ) {\n filter_mb_mbaff_edgecv ( h , img_cb , uvlinesize , bS , 1 , bqp [ 0 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgecv ( h , img_cb + 8 * uvlinesize , uvlinesize , bS + 4 , 1 , bqp [ 1 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgecv ( h , img_cr , uvlinesize , bS , 1 , rqp [ 0 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgecv ( h , img_cr + 8 * uvlinesize , uvlinesize , bS + 4 , 1 , rqp [ 1 ] , a , b , 1 ) ;\n }\n else {\n filter_mb_mbaff_edgecv ( h , img_cb , uvlinesize , bS , 1 , bqp [ 0 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgecv ( h , img_cb + 4 * uvlinesize , uvlinesize , bS + 4 , 1 , bqp [ 1 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgecv ( h , img_cr , uvlinesize , bS , 1 , rqp [ 0 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgecv ( h , img_cr + 4 * uvlinesize , uvlinesize , bS + 4 , 1 , rqp [ 1 ] , a , b , 1 ) ;\n }\n }\n }\n else {\n filter_mb_mbaff_edgev ( h , img_y , 2 * linesize , bS , 2 , qp [ 0 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgev ( h , img_y + linesize , 2 * linesize , bS + 1 , 2 , qp [ 1 ] , a , b , 1 ) ;\n if ( chroma ) {\n if ( CHROMA444 ) {\n filter_mb_mbaff_edgev ( h , img_cb , 2 * uvlinesize , bS , 2 , bqp [ 0 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgev ( h , img_cb + uvlinesize , 2 * uvlinesize , bS + 1 , 2 , bqp [ 1 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgev ( h , img_cr , 2 * uvlinesize , bS , 2 , rqp [ 0 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgev ( h , img_cr + uvlinesize , 2 * uvlinesize , bS + 1 , 2 , rqp [ 1 ] , a , b , 1 ) ;\n }\n else {\n filter_mb_mbaff_edgecv ( h , img_cb , 2 * uvlinesize , bS , 2 , bqp [ 0 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgecv ( h , img_cb + uvlinesize , 2 * uvlinesize , bS + 1 , 2 , bqp [ 1 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgecv ( h , img_cr , 2 * uvlinesize , bS , 2 , rqp [ 0 ] , a , b , 1 ) ;\n filter_mb_mbaff_edgecv ( h , img_cr + uvlinesize , 2 * uvlinesize , bS + 1 , 2 , rqp [ 1 ] , a , b , 1 ) ;\n }\n }\n }\n }\n # if CONFIG_SMALL for ( dir = 0 ;\n dir < 2 ;\n dir ++ ) filter_mb_dir ( h , mb_x , mb_y , img_y , img_cb , img_cr , linesize , uvlinesize , mb_xy , mb_type , mvy_limit , dir ? 0 : first_vertical_edge_done , a , b , chroma , dir ) ;\n # else filter_mb_dir ( h , mb_x , mb_y , img_y , img_cb , img_cr , linesize , uvlinesize , mb_xy , mb_type , mvy_limit , first_vertical_edge_done , a , b , chroma , 0 ) ;\n filter_mb_dir ( h , mb_x , mb_y , img_y , img_cb , img_cr , linesize , uvlinesize , mb_xy , mb_type , mvy_limit , 0 , a , b , chroma , 1 ) ;\n # endif }"}
{"idx": 10623, "target": 0, "func": "static int qemuMonitorTextCommandWithHandler ( qemuMonitorPtr mon , const char * cmd , qemuMonitorPasswordHandler passwordHandler , void * passwordOpaque , int scm_fd , char * * reply ) {\n int ret ;\n qemuMonitorMessage msg ;\n * reply = NULL ;\n memset ( & msg , 0 , sizeof msg ) ;\n if ( virAsprintf ( & msg . txBuffer , \"%s\\r\" , cmd ) < 0 ) {\n virReportOOMError ( ) ;\n return - 1 ;\n }\n msg . txLength = strlen ( msg . txBuffer ) ;\n msg . txFD = scm_fd ;\n msg . passwordHandler = passwordHandler ;\n msg . passwordOpaque = passwordOpaque ;\n VIR_DEBUG ( \"Send command '%s' for write with FD %d\" , cmd , scm_fd ) ;\n ret = qemuMonitorSend ( mon , & msg ) ;\n VIR_DEBUG ( \"Receive command reply ret=%d rxLength=%d rxBuffer='%s'\" , ret , msg . rxLength , msg . rxBuffer ) ;\n memset ( msg . txBuffer , 0 , msg . txLength ) ;\n VIR_FREE ( msg . txBuffer ) ;\n if ( ret >= 0 ) {\n if ( msg . rxBuffer ) {\n * reply = msg . rxBuffer ;\n }\n else {\n * reply = strdup ( \"\" ) ;\n if ( ! * reply ) {\n virReportOOMError ( ) ;\n return - 1 ;\n }\n }\n }\n return ret ;\n }"}
{"idx": 10624, "target": 0, "func": "int jpc_enc_encodetiledata ( jpc_enc_t * enc ) {\n assert ( enc -> tmpstream ) ;\n if ( jpc_enc_encpkts ( enc , enc -> tmpstream ) ) {\n return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 10625, "target": 0, "func": "static void basic_ec_math_simplified ( void ) {\n gpg_error_t err ;\n gcry_ctx_t ctx ;\n gcry_mpi_point_t G , Q ;\n gcry_mpi_t d ;\n gcry_mpi_t x , y , z ;\n gcry_sexp_t sexp ;\n wherestr = \"basic_ec_math_simplified\" ;\n show ( \"checking basic math functions for EC (variant)\\n\" ) ;\n d = hex2mpi ( \"D4EF27E32F8AD8E2A1C6DDEBB1D235A69E3CEF9BCE90273D\" ) ;\n Q = gcry_mpi_point_new ( 0 ) ;\n err = gcry_mpi_ec_new ( & ctx , NULL , \"NIST P-192\" ) ;\n if ( err ) die ( \"gcry_mpi_ec_new failed: %s\\n\" , gpg_strerror ( err ) ) ;\n G = gcry_mpi_ec_get_point ( \"g\" , ctx , 1 ) ;\n if ( ! G ) die ( \"gcry_mpi_ec_get_point(G) failed\\n\" ) ;\n gcry_mpi_ec_mul ( Q , d , G , ctx ) ;\n x = gcry_mpi_new ( 0 ) ;\n y = gcry_mpi_new ( 0 ) ;\n z = gcry_mpi_new ( 0 ) ;\n gcry_mpi_point_get ( x , y , z , Q ) ;\n if ( cmp_mpihex ( x , \"222D9EC717C89D047E0898C9185B033CD11C0A981EE6DC66\" ) || cmp_mpihex ( y , \"605DE0A82D70D3E0F84A127D0739ED33D657DF0D054BFDE8\" ) || cmp_mpihex ( z , \"00B06B519071BC536999AC8F2D3934B3C1FC9EACCD0A31F88F\" ) ) fail ( \"computed public key does not match\\n\" ) ;\n if ( debug ) {\n print_mpi ( \"Q.x\" , x ) ;\n print_mpi ( \"Q.y\" , y ) ;\n print_mpi ( \"Q.z\" , z ) ;\n }\n if ( gcry_mpi_ec_get_affine ( x , y , Q , ctx ) ) fail ( \"failed to get affine coordinates\\n\" ) ;\n if ( cmp_mpihex ( x , \"008532093BA023F4D55C0424FA3AF9367E05F309DC34CDC3FE\" ) || cmp_mpihex ( y , \"00C13CA9E617C6C8487BFF6A726E3C4F277913D97117939966\" ) ) fail ( \"computed affine coordinates of public key do not match\\n\" ) ;\n if ( debug ) {\n print_mpi ( \"q.x\" , x ) ;\n print_mpi ( \"q.y\" , y ) ;\n }\n gcry_mpi_release ( z ) ;\n gcry_mpi_release ( y ) ;\n gcry_mpi_release ( x ) ;\n err = gcry_mpi_ec_set_point ( \"g\" , G , ctx ) ;\n if ( err ) die ( \"gcry_mpi_ec_set_point(G) failed\\n\" ) ;\n err = gcry_mpi_ec_set_mpi ( \"d\" , d , ctx ) ;\n if ( err ) die ( \"gcry_mpi_ec_set_mpi(d) failed\\n\" ) ;\n err = gcry_pubkey_get_sexp ( & sexp , 0 , ctx ) ;\n if ( err ) fail ( \"gcry_pubkey_get_sexp(0) failed: %s\\n\" , gpg_strerror ( err ) ) ;\n else if ( debug ) print_sexp ( \"Result of gcry_pubkey_get_sexp (0):\\n\" , sexp ) ;\n gcry_sexp_release ( sexp ) ;\n err = gcry_pubkey_get_sexp ( & sexp , GCRY_PK_GET_PUBKEY , ctx ) ;\n if ( err ) fail ( \"gcry_pubkey_get_sexp(GET_PUBKEY) failed: %s\\n\" , gpg_strerror ( err ) ) ;\n else if ( debug ) print_sexp ( \"Result of gcry_pubkey_get_sexp (GET_PUBKEY):\\n\" , sexp ) ;\n gcry_sexp_release ( sexp ) ;\n err = gcry_mpi_ec_set_mpi ( \"d\" , NULL , ctx ) ;\n if ( err ) die ( \"gcry_mpi_ec_set_mpi(d=NULL) failed\\n\" ) ;\n err = gcry_pubkey_get_sexp ( & sexp , 0 , ctx ) ;\n if ( err ) fail ( \"gcry_pubkey_get_sexp(0 w/o d) failed: %s\\n\" , gpg_strerror ( err ) ) ;\n else if ( debug ) print_sexp ( \"Result of gcry_pubkey_get_sexp (0 w/o d):\\n\" , sexp ) ;\n gcry_sexp_release ( sexp ) ;\n err = gcry_pubkey_get_sexp ( & sexp , GCRY_PK_GET_SECKEY , ctx ) ;\n if ( gpg_err_code ( err ) != GPG_ERR_NO_SECKEY ) fail ( \"gcry_pubkey_get_sexp(GET_SECKEY) returned wrong error: %s\\n\" , gpg_strerror ( err ) ) ;\n gcry_sexp_release ( sexp ) ;\n err = gcry_mpi_ec_set_point ( \"q\" , NULL , ctx ) ;\n if ( err ) die ( \"gcry_mpi_ec_set_point(q=NULL) failed\\n\" ) ;\n err = gcry_pubkey_get_sexp ( & sexp , 0 , ctx ) ;\n if ( gpg_err_code ( err ) != GPG_ERR_BAD_CRYPT_CTX ) fail ( \"gcry_pubkey_get_sexp(0 w/o Q,d) returned wrong error: %s\\n\" , gpg_strerror ( err ) ) ;\n gcry_sexp_release ( sexp ) ;\n gcry_mpi_point_release ( Q ) ;\n gcry_mpi_release ( d ) ;\n gcry_mpi_point_release ( G ) ;\n gcry_ctx_release ( ctx ) ;\n }"}
{"idx": 10626, "target": 0, "func": "ParseResult mime_scanner_get ( MIMEScanner * S , const char * * raw_input_s , const char * raw_input_e , const char * * output_s , const char * * output_e , bool * output_shares_raw_input , bool raw_input_eof , int raw_input_scan_type ) {\n const char * raw_input_c , * lf_ptr ;\n ParseResult zret = PARSE_RESULT_CONT ;\n static const char RAW_CR = ParseRules : : CHAR_CR ;\n ink_assert ( ( raw_input_s != nullptr ) && ( * raw_input_s != nullptr ) ) ;\n ink_assert ( raw_input_e != nullptr ) ;\n raw_input_c = * raw_input_s ;\n while ( PARSE_RESULT_CONT == zret && raw_input_c < raw_input_e ) {\n ptrdiff_t runway = raw_input_e - raw_input_c ;\n switch ( S -> m_state ) {\n case MIME_PARSE_BEFORE : if ( ParseRules : : is_cr ( * raw_input_c ) ) {\n ++ raw_input_c ;\n if ( runway >= 2 && ParseRules : : is_lf ( * raw_input_c ) ) {\n ++ raw_input_c ;\n zret = PARSE_RESULT_DONE ;\n }\n else {\n S -> m_state = MIME_PARSE_FOUND_CR ;\n }\n }\n else if ( ParseRules : : is_lf ( * raw_input_c ) ) {\n ++ raw_input_c ;\n zret = PARSE_RESULT_DONE ;\n }\n else {\n S -> m_state = MIME_PARSE_INSIDE ;\n }\n break ;\n case MIME_PARSE_FOUND_CR : if ( ParseRules : : is_lf ( * raw_input_c ) ) {\n ++ raw_input_c ;\n zret = PARSE_RESULT_DONE ;\n }\n else {\n mime_scanner_append ( S , & RAW_CR , 1 ) ;\n S -> m_state = MIME_PARSE_INSIDE ;\n }\n break ;\n case MIME_PARSE_INSIDE : lf_ptr = static_cast < const char * > ( memchr ( raw_input_c , ParseRules : : CHAR_LF , runway ) ) ;\n if ( lf_ptr ) {\n raw_input_c = lf_ptr + 1 ;\n if ( MIME_SCANNER_TYPE_LINE == raw_input_scan_type ) {\n zret = PARSE_RESULT_OK ;\n S -> m_state = MIME_PARSE_BEFORE ;\n }\n else {\n S -> m_state = MIME_PARSE_AFTER ;\n }\n }\n else {\n raw_input_c = raw_input_e ;\n }\n break ;\n case MIME_PARSE_AFTER : if ( ParseRules : : is_ws ( * raw_input_c ) ) {\n char * unfold = const_cast < char * > ( raw_input_c - 1 ) ;\n * unfold -- = ' ' ;\n if ( ParseRules : : is_cr ( * unfold ) ) {\n * unfold = ' ' ;\n }\n S -> m_state = MIME_PARSE_INSIDE ;\n }\n else {\n S -> m_state = MIME_PARSE_BEFORE ;\n zret = PARSE_RESULT_OK ;\n }\n break ;\n }\n }\n ptrdiff_t data_size = raw_input_c - * raw_input_s ;\n if ( PARSE_RESULT_CONT == zret ) {\n if ( raw_input_eof ) {\n if ( 0 == data_size ) {\n if ( MIME_PARSE_INSIDE != S -> m_state ) {\n S -> m_state = MIME_PARSE_BEFORE ;\n zret = PARSE_RESULT_DONE ;\n }\n else {\n zret = PARSE_RESULT_ERROR ;\n }\n }\n else if ( MIME_PARSE_AFTER == S -> m_state ) {\n S -> m_state = MIME_PARSE_BEFORE ;\n zret = PARSE_RESULT_OK ;\n }\n else {\n zret = PARSE_RESULT_ERROR ;\n }\n }\n else if ( data_size ) {\n if ( MIME_PARSE_INSIDE == S -> m_state ) {\n mime_scanner_append ( S , * raw_input_s , data_size ) ;\n data_size = 0 ;\n }\n else if ( MIME_PARSE_AFTER == S -> m_state ) {\n S -> m_state = MIME_PARSE_BEFORE ;\n zret = PARSE_RESULT_OK ;\n }\n }\n }\n if ( data_size && S -> m_line_length ) {\n mime_scanner_append ( S , * raw_input_s , data_size ) ;\n }\n * output_shares_raw_input = 0 == S -> m_line_length ;\n if ( PARSE_RESULT_CONT != zret ) {\n if ( 0 != S -> m_line_length ) {\n * output_s = S -> m_line ;\n * output_e = * output_s + S -> m_line_length ;\n S -> m_line_length = 0 ;\n }\n else {\n * output_s = * raw_input_s ;\n * output_e = raw_input_c ;\n }\n }\n if ( zret != PARSE_RESULT_ERROR && memchr ( * raw_input_s , '\\0' , raw_input_c - * raw_input_s ) != nullptr ) {\n zret = PARSE_RESULT_ERROR ;\n }\n * raw_input_s = raw_input_c ;\n return zret ;\n }"}
{"idx": 10627, "target": 0, "func": "static hb_bool_t hb_font_get_glyph_h_origin_nil ( hb_font_t * font , void * font_data HB_UNUSED , hb_codepoint_t glyph , hb_position_t * x , hb_position_t * y , void * user_data HB_UNUSED ) {\n if ( font -> parent ) {\n hb_bool_t ret = font -> parent -> get_glyph_h_origin ( glyph , x , y ) ;\n if ( ret ) font -> parent_scale_position ( x , y ) ;\n return ret ;\n }\n * x = * y = 0 ;\n return false ;\n }"}
{"idx": 10628, "target": 0, "func": "static vpx_codec_err_t ctrl_set_aq_mode ( vpx_codec_alg_priv_t * ctx , va_list args ) {\n struct vp9_extracfg extra_cfg = ctx -> extra_cfg ;\n extra_cfg . aq_mode = CAST ( VP9E_SET_AQ_MODE , args ) ;\n return update_extra_cfg ( ctx , & extra_cfg ) ;\n }"}
{"idx": 10629, "target": 0, "func": "static PHP_NAMED_FUNCTION ( zif_zip_entry_filesize ) {\n php_zip_entry_get_info ( INTERNAL_FUNCTION_PARAM_PASSTHRU , 2 ) ;\n }"}
{"idx": 10630, "target": 0, "func": "static void handle_null_request ( int tun_fd , int dns_fd , struct query * q , int domain_len ) {\n struct in_addr tempip ;\n char in [ 512 ] ;\n char logindata [ 16 ] ;\n char out [ 64 * 1024 ] ;\n char unpacked [ 64 * 1024 ] ;\n char * tmp [ 2 ] ;\n int userid ;\n int read ;\n userid = - 1 ;\n if ( domain_len < 2 ) return ;\n memcpy ( in , q -> name , MIN ( domain_len , sizeof ( in ) ) ) ;\n if ( in [ 0 ] == 'V' || in [ 0 ] == 'v' ) {\n int version = 0 ;\n read = unpack_data ( unpacked , sizeof ( unpacked ) , & ( in [ 1 ] ) , domain_len - 1 , b32 ) ;\n if ( read > 4 ) {\n version = ( ( ( unpacked [ 0 ] & 0xff ) << 24 ) | ( ( unpacked [ 1 ] & 0xff ) << 16 ) | ( ( unpacked [ 2 ] & 0xff ) << 8 ) | ( ( unpacked [ 3 ] & 0xff ) ) ) ;\n }\n if ( version == VERSION ) {\n userid = find_available_user ( ) ;\n if ( userid >= 0 ) {\n int i ;\n struct sockaddr_in * tempin ;\n users [ userid ] . seed = rand ( ) ;\n tempin = ( struct sockaddr_in * ) & ( q -> from ) ;\n memcpy ( & ( users [ userid ] . host ) , & ( tempin -> sin_addr ) , sizeof ( struct in_addr ) ) ;\n memcpy ( & ( users [ userid ] . q ) , q , sizeof ( struct query ) ) ;\n users [ userid ] . encoder = get_base32_encoder ( ) ;\n users [ userid ] . downenc = 'T' ;\n send_version_response ( dns_fd , VERSION_ACK , users [ userid ] . seed , userid , q ) ;\n syslog ( LOG_INFO , \"accepted version for user #%d from %s\" , userid , format_addr ( & q -> from , q -> fromlen ) ) ;\n users [ userid ] . q . id = 0 ;\n users [ userid ] . q . id2 = 0 ;\n users [ userid ] . q_sendrealsoon . id = 0 ;\n users [ userid ] . q_sendrealsoon . id2 = 0 ;\n users [ userid ] . q_sendrealsoon_new = 0 ;\n users [ userid ] . outpacket . len = 0 ;\n users [ userid ] . outpacket . offset = 0 ;\n users [ userid ] . outpacket . sentlen = 0 ;\n users [ userid ] . outpacket . seqno = 0 ;\n users [ userid ] . outpacket . fragment = 0 ;\n users [ userid ] . outfragresent = 0 ;\n users [ userid ] . inpacket . len = 0 ;\n users [ userid ] . inpacket . offset = 0 ;\n users [ userid ] . inpacket . seqno = 0 ;\n users [ userid ] . inpacket . fragment = 0 ;\n users [ userid ] . fragsize = 100 ;\n users [ userid ] . conn = CONN_DNS_NULL ;\n users [ userid ] . lazy = 0 ;\n # ifdef OUTPACKETQ_LEN users [ userid ] . outpacketq_nexttouse = 0 ;\n users [ userid ] . outpacketq_filled = 0 ;\n # endif # ifdef DNSCACHE_LEN {\n for ( i = 0 ;\n i < DNSCACHE_LEN ;\n i ++ ) {\n users [ userid ] . dnscache_q [ i ] . id = 0 ;\n users [ userid ] . dnscache_answerlen [ i ] = 0 ;\n }\n }\n users [ userid ] . dnscache_lastfilled = 0 ;\n # endif for ( i = 0 ;\n i < QMEMPING_LEN ;\n i ++ ) users [ userid ] . qmemping_type [ i ] = T_UNSET ;\n users [ userid ] . qmemping_lastfilled = 0 ;\n for ( i = 0 ;\n i < QMEMDATA_LEN ;\n i ++ ) users [ userid ] . qmemdata_type [ i ] = T_UNSET ;\n users [ userid ] . qmemdata_lastfilled = 0 ;\n }\n else {\n send_version_response ( dns_fd , VERSION_FULL , created_users , 0 , q ) ;\n syslog ( LOG_INFO , \"dropped user from %s, server full\" , format_addr ( & q -> from , q -> fromlen ) ) ;\n }\n }\n else {\n send_version_response ( dns_fd , VERSION_NACK , VERSION , 0 , q ) ;\n syslog ( LOG_INFO , \"dropped user from %s, sent bad version %08X\" , format_addr ( & q -> from , q -> fromlen ) , version ) ;\n }\n return ;\n }\n else if ( in [ 0 ] == 'L' || in [ 0 ] == 'l' ) {\n read = unpack_data ( unpacked , sizeof ( unpacked ) , & ( in [ 1 ] ) , domain_len - 1 , b32 ) ;\n if ( read < 17 ) {\n write_dns ( dns_fd , q , \"BADLEN\" , 6 , 'T' ) ;\n return ;\n }\n userid = unpacked [ 0 ] ;\n if ( check_user_and_ip ( userid , q ) != 0 ) {\n write_dns ( dns_fd , q , \"BADIP\" , 5 , 'T' ) ;\n syslog ( LOG_WARNING , \"dropped login request from user #%d from unexpected source %s\" , userid , format_addr ( & q -> from , q -> fromlen ) ) ;\n return ;\n }\n else {\n users [ userid ] . last_pkt = time ( NULL ) ;\n login_calculate ( logindata , 16 , password , users [ userid ] . seed ) ;\n if ( read >= 18 && ( memcmp ( logindata , unpacked + 1 , 16 ) == 0 ) ) {\n users [ userid ] . authenticated = 1 ;\n tempip . s_addr = my_ip ;\n tmp [ 0 ] = strdup ( inet_ntoa ( tempip ) ) ;\n tempip . s_addr = users [ userid ] . tun_ip ;\n tmp [ 1 ] = strdup ( inet_ntoa ( tempip ) ) ;\n read = snprintf ( out , sizeof ( out ) , \"%s-%s-%d-%d\" , tmp [ 0 ] , tmp [ 1 ] , my_mtu , netmask ) ;\n write_dns ( dns_fd , q , out , read , users [ userid ] . downenc ) ;\n q -> id = 0 ;\n syslog ( LOG_NOTICE , \"accepted password from user #%d, given IP %s\" , userid , tmp [ 1 ] ) ;\n free ( tmp [ 1 ] ) ;\n free ( tmp [ 0 ] ) ;\n }\n else {\n write_dns ( dns_fd , q , \"LNAK\" , 4 , 'T' ) ;\n syslog ( LOG_WARNING , \"rejected login request from user #%d from %s, bad password\" , userid , format_addr ( & q -> from , q -> fromlen ) ) ;\n }\n }\n return ;\n }\n else if ( in [ 0 ] == 'I' || in [ 0 ] == 'i' ) {\n in_addr_t replyaddr ;\n unsigned addr ;\n char reply [ 5 ] ;\n userid = b32_8to5 ( in [ 1 ] ) ;\n if ( check_authenticated_user_and_ip ( userid , q ) != 0 ) {\n write_dns ( dns_fd , q , \"BADIP\" , 5 , 'T' ) ;\n return ;\n }\n if ( ns_ip != INADDR_ANY ) {\n replyaddr = ns_ip ;\n }\n else {\n memcpy ( & replyaddr , & q -> destination . s_addr , sizeof ( in_addr_t ) ) ;\n }\n addr = htonl ( replyaddr ) ;\n reply [ 0 ] = 'I' ;\n reply [ 1 ] = ( addr >> 24 ) & 0xFF ;\n reply [ 2 ] = ( addr >> 16 ) & 0xFF ;\n reply [ 3 ] = ( addr >> 8 ) & 0xFF ;\n reply [ 4 ] = ( addr >> 0 ) & 0xFF ;\n write_dns ( dns_fd , q , reply , sizeof ( reply ) , 'T' ) ;\n }\n else if ( in [ 0 ] == 'Z' || in [ 0 ] == 'z' ) {\n write_dns ( dns_fd , q , in , domain_len , 'T' ) ;\n return ;\n }\n else if ( in [ 0 ] == 'S' || in [ 0 ] == 's' ) {\n int codec ;\n struct encoder * enc ;\n if ( domain_len < 3 ) {\n write_dns ( dns_fd , q , \"BADLEN\" , 6 , 'T' ) ;\n return ;\n }\n userid = b32_8to5 ( in [ 1 ] ) ;\n if ( check_authenticated_user_and_ip ( userid , q ) != 0 ) {\n write_dns ( dns_fd , q , \"BADIP\" , 5 , 'T' ) ;\n return ;\n }\n codec = b32_8to5 ( in [ 2 ] ) ;\n switch ( codec ) {\n case 5 : enc = get_base32_encoder ( ) ;\n user_switch_codec ( userid , enc ) ;\n write_dns ( dns_fd , q , enc -> name , strlen ( enc -> name ) , users [ userid ] . downenc ) ;\n break ;\n case 6 : enc = get_base64_encoder ( ) ;\n user_switch_codec ( userid , enc ) ;\n write_dns ( dns_fd , q , enc -> name , strlen ( enc -> name ) , users [ userid ] . downenc ) ;\n break ;\n case 26 : enc = get_base64u_encoder ( ) ;\n user_switch_codec ( userid , enc ) ;\n write_dns ( dns_fd , q , enc -> name , strlen ( enc -> name ) , users [ userid ] . downenc ) ;\n break ;\n case 7 : enc = get_base128_encoder ( ) ;\n user_switch_codec ( userid , enc ) ;\n write_dns ( dns_fd , q , enc -> name , strlen ( enc -> name ) , users [ userid ] . downenc ) ;\n break ;\n default : write_dns ( dns_fd , q , \"BADCODEC\" , 8 , users [ userid ] . downenc ) ;\n break ;\n }\n return ;\n }\n else if ( in [ 0 ] == 'O' || in [ 0 ] == 'o' ) {\n if ( domain_len < 3 ) {\n write_dns ( dns_fd , q , \"BADLEN\" , 6 , 'T' ) ;\n return ;\n }\n userid = b32_8to5 ( in [ 1 ] ) ;\n if ( check_authenticated_user_and_ip ( userid , q ) != 0 ) {\n write_dns ( dns_fd , q , \"BADIP\" , 5 , 'T' ) ;\n return ;\n }\n switch ( in [ 2 ] ) {\n case 'T' : case 't' : users [ userid ] . downenc = 'T' ;\n write_dns ( dns_fd , q , \"Base32\" , 6 , users [ userid ] . downenc ) ;\n break ;\n case 'S' : case 's' : users [ userid ] . downenc = 'S' ;\n write_dns ( dns_fd , q , \"Base64\" , 6 , users [ userid ] . downenc ) ;\n break ;\n case 'U' : case 'u' : users [ userid ] . downenc = 'U' ;\n write_dns ( dns_fd , q , \"Base64u\" , 7 , users [ userid ] . downenc ) ;\n break ;\n case 'V' : case 'v' : users [ userid ] . downenc = 'V' ;\n write_dns ( dns_fd , q , \"Base128\" , 7 , users [ userid ] . downenc ) ;\n break ;\n case 'R' : case 'r' : users [ userid ] . downenc = 'R' ;\n write_dns ( dns_fd , q , \"Raw\" , 3 , users [ userid ] . downenc ) ;\n break ;\n case 'L' : case 'l' : users [ userid ] . lazy = 1 ;\n write_dns ( dns_fd , q , \"Lazy\" , 4 , users [ userid ] . downenc ) ;\n break ;\n case 'I' : case 'i' : users [ userid ] . lazy = 0 ;\n write_dns ( dns_fd , q , \"Immediate\" , 9 , users [ userid ] . downenc ) ;\n break ;\n default : write_dns ( dns_fd , q , \"BADCODEC\" , 8 , users [ userid ] . downenc ) ;\n break ;\n }\n return ;\n }\n else if ( in [ 0 ] == 'Y' || in [ 0 ] == 'y' ) {\n int i ;\n char * datap ;\n int datalen ;\n if ( domain_len < 6 ) {\n write_dns ( dns_fd , q , \"BADLEN\" , 6 , 'T' ) ;\n return ;\n }\n i = b32_8to5 ( in [ 2 ] ) ;\n switch ( i ) {\n case 1 : datap = DOWNCODECCHECK1 ;\n datalen = DOWNCODECCHECK1_LEN ;\n break ;\n default : write_dns ( dns_fd , q , \"BADLEN\" , 6 , 'T' ) ;\n return ;\n }\n switch ( in [ 1 ] ) {\n case 'T' : case 't' : if ( q -> type == T_TXT || q -> type == T_SRV || q -> type == T_MX || q -> type == T_CNAME || q -> type == T_A ) {\n write_dns ( dns_fd , q , datap , datalen , 'T' ) ;\n return ;\n }\n break ;\n case 'S' : case 's' : if ( q -> type == T_TXT || q -> type == T_SRV || q -> type == T_MX || q -> type == T_CNAME || q -> type == T_A ) {\n write_dns ( dns_fd , q , datap , datalen , 'S' ) ;\n return ;\n }\n break ;\n case 'U' : case 'u' : if ( q -> type == T_TXT || q -> type == T_SRV || q -> type == T_MX || q -> type == T_CNAME || q -> type == T_A ) {\n write_dns ( dns_fd , q , datap , datalen , 'U' ) ;\n return ;\n }\n break ;\n case 'V' : case 'v' : if ( q -> type == T_TXT || q -> type == T_SRV || q -> type == T_MX || q -> type == T_CNAME || q -> type == T_A ) {\n write_dns ( dns_fd , q , datap , datalen , 'V' ) ;\n return ;\n }\n break ;\n case 'R' : case 'r' : if ( q -> type == T_NULL || q -> type == T_TXT ) {\n write_dns ( dns_fd , q , datap , datalen , 'R' ) ;\n return ;\n }\n break ;\n }\n write_dns ( dns_fd , q , \"BADCODEC\" , 8 , 'T' ) ;\n return ;\n }\n else if ( in [ 0 ] == 'R' || in [ 0 ] == 'r' ) {\n int req_frag_size ;\n if ( domain_len < 16 ) {\n write_dns ( dns_fd , q , \"BADLEN\" , 6 , 'T' ) ;\n return ;\n }\n userid = ( b32_8to5 ( in [ 1 ] ) >> 1 ) & 15 ;\n if ( check_authenticated_user_and_ip ( userid , q ) != 0 ) {\n write_dns ( dns_fd , q , \"BADIP\" , 5 , 'T' ) ;\n return ;\n }\n req_frag_size = ( ( b32_8to5 ( in [ 1 ] ) & 1 ) << 10 ) | ( ( b32_8to5 ( in [ 2 ] ) & 31 ) << 5 ) | ( b32_8to5 ( in [ 3 ] ) & 31 ) ;\n if ( req_frag_size < 2 || req_frag_size > 2047 ) {\n write_dns ( dns_fd , q , \"BADFRAG\" , 7 , users [ userid ] . downenc ) ;\n }\n else {\n char buf [ 2048 ] ;\n int i ;\n unsigned int v = ( ( unsigned int ) rand ( ) ) & 0xff ;\n memset ( buf , 0 , sizeof ( buf ) ) ;\n buf [ 0 ] = ( req_frag_size >> 8 ) & 0xff ;\n buf [ 1 ] = req_frag_size & 0xff ;\n buf [ 2 ] = 107 ;\n for ( i = 3 ;\n i < 2048 ;\n i ++ , v = ( v + 107 ) & 0xff ) buf [ i ] = v ;\n write_dns ( dns_fd , q , buf , req_frag_size , users [ userid ] . downenc ) ;\n }\n return ;\n }\n else if ( in [ 0 ] == 'N' || in [ 0 ] == 'n' ) {\n int max_frag_size ;\n read = unpack_data ( unpacked , sizeof ( unpacked ) , & ( in [ 1 ] ) , domain_len - 1 , b32 ) ;\n if ( read < 3 ) {\n write_dns ( dns_fd , q , \"BADLEN\" , 6 , 'T' ) ;\n return ;\n }\n userid = unpacked [ 0 ] ;\n if ( check_authenticated_user_and_ip ( userid , q ) != 0 ) {\n write_dns ( dns_fd , q , \"BADIP\" , 5 , 'T' ) ;\n return ;\n }\n max_frag_size = ( ( unpacked [ 1 ] & 0xff ) << 8 ) | ( unpacked [ 2 ] & 0xff ) ;\n if ( max_frag_size < 2 ) {\n write_dns ( dns_fd , q , \"BADFRAG\" , 7 , users [ userid ] . downenc ) ;\n }\n else {\n users [ userid ] . fragsize = max_frag_size ;\n write_dns ( dns_fd , q , & unpacked [ 1 ] , 2 , users [ userid ] . downenc ) ;\n }\n return ;\n }\n else if ( in [ 0 ] == 'P' || in [ 0 ] == 'p' ) {\n int dn_seq ;\n int dn_frag ;\n int didsend = 0 ;\n if ( q -> id == 0 ) return ;\n read = unpack_data ( unpacked , sizeof ( unpacked ) , & ( in [ 1 ] ) , domain_len - 1 , b32 ) ;\n if ( read < 4 ) return ;\n userid = unpacked [ 0 ] ;\n if ( check_authenticated_user_and_ip ( userid , q ) != 0 ) {\n write_dns ( dns_fd , q , \"BADIP\" , 5 , 'T' ) ;\n return ;\n }\n # ifdef DNSCACHE_LEN if ( answer_from_dnscache ( dns_fd , userid , q ) ) return ;\n # endif if ( answer_from_qmem ( dns_fd , q , users [ userid ] . qmemping_cmc , users [ userid ] . qmemping_type , QMEMPING_LEN , ( void * ) unpacked ) ) return ;\n if ( users [ userid ] . q . id != 0 && q -> type == users [ userid ] . q . type && ! strcmp ( q -> name , users [ userid ] . q . name ) && users [ userid ] . lazy ) {\n if ( debug >= 2 ) {\n fprintf ( stderr , \"PING pkt from user %d = dupe from impatient DNS server, remembering\\n\" , userid ) ;\n }\n users [ userid ] . q . id2 = q -> id ;\n users [ userid ] . q . fromlen2 = q -> fromlen ;\n memcpy ( & ( users [ userid ] . q . from2 ) , & ( q -> from ) , q -> fromlen ) ;\n return ;\n }\n if ( users [ userid ] . q_sendrealsoon . id != 0 && q -> type == users [ userid ] . q_sendrealsoon . type && ! strcmp ( q -> name , users [ userid ] . q_sendrealsoon . name ) ) {\n if ( debug >= 2 ) {\n fprintf ( stderr , \"PING pkt from user %d = dupe from impatient DNS server, remembering\\n\" , userid ) ;\n }\n users [ userid ] . q_sendrealsoon . id2 = q -> id ;\n users [ userid ] . q_sendrealsoon . fromlen2 = q -> fromlen ;\n memcpy ( & ( users [ userid ] . q_sendrealsoon . from2 ) , & ( q -> from ) , q -> fromlen ) ;\n return ;\n }\n dn_seq = unpacked [ 1 ] >> 4 ;\n dn_frag = unpacked [ 1 ] & 15 ;\n if ( debug >= 1 ) {\n fprintf ( stderr , \"PING pkt from user %d, ack for downstream %d/%d\\n\" , userid , dn_seq , dn_frag ) ;\n }\n process_downstream_ack ( userid , dn_seq , dn_frag ) ;\n if ( debug >= 3 ) {\n fprintf ( stderr , \"PINGret (if any) will ack upstream %d/%d\\n\" , users [ userid ] . inpacket . seqno , users [ userid ] . inpacket . fragment ) ;\n }\n if ( users [ userid ] . q_sendrealsoon . id != 0 ) {\n send_chunk_or_dataless ( dns_fd , userid , & users [ userid ] . q_sendrealsoon ) ;\n }\n if ( users [ userid ] . q . id != 0 ) {\n didsend = 1 ;\n if ( send_chunk_or_dataless ( dns_fd , userid , & users [ userid ] . q ) == 1 ) didsend = 0 ;\n }\n memcpy ( & ( users [ userid ] . q ) , q , sizeof ( struct query ) ) ;\n users [ userid ] . last_pkt = time ( NULL ) ;\n if ( ( ! didsend && users [ userid ] . outpacket . len > 0 ) || ! users [ userid ] . lazy ) send_chunk_or_dataless ( dns_fd , userid , & users [ userid ] . q ) ;\n }\n else if ( ( in [ 0 ] >= '0' && in [ 0 ] <= '9' ) || ( in [ 0 ] >= 'a' && in [ 0 ] <= 'f' ) || ( in [ 0 ] >= 'A' && in [ 0 ] <= 'F' ) ) {\n int up_seq , up_frag , dn_seq , dn_frag , lastfrag ;\n int upstream_ok = 1 ;\n int didsend = 0 ;\n int code = - 1 ;\n if ( domain_len < 6 ) return ;\n if ( q -> id == 0 ) return ;\n if ( ( in [ 0 ] >= '0' && in [ 0 ] <= '9' ) ) code = in [ 0 ] - '0' ;\n if ( ( in [ 0 ] >= 'a' && in [ 0 ] <= 'f' ) ) code = in [ 0 ] - 'a' + 10 ;\n if ( ( in [ 0 ] >= 'A' && in [ 0 ] <= 'F' ) ) code = in [ 0 ] - 'A' + 10 ;\n userid = code ;\n if ( check_authenticated_user_and_ip ( userid , q ) != 0 ) {\n write_dns ( dns_fd , q , \"BADIP\" , 5 , 'T' ) ;\n return ;\n }\n # ifdef DNSCACHE_LEN if ( answer_from_dnscache ( dns_fd , userid , q ) ) return ;\n # endif if ( answer_from_qmem_data ( dns_fd , userid , q ) ) return ;\n if ( users [ userid ] . q . id != 0 && q -> type == users [ userid ] . q . type && ! strcmp ( q -> name , users [ userid ] . q . name ) && users [ userid ] . lazy ) {\n if ( debug >= 2 ) {\n fprintf ( stderr , \"IN pkt from user %d = dupe from impatient DNS server, remembering\\n\" , userid ) ;\n }\n users [ userid ] . q . id2 = q -> id ;\n users [ userid ] . q . fromlen2 = q -> fromlen ;\n memcpy ( & ( users [ userid ] . q . from2 ) , & ( q -> from ) , q -> fromlen ) ;\n return ;\n }\n if ( users [ userid ] . q_sendrealsoon . id != 0 && q -> type == users [ userid ] . q_sendrealsoon . type && ! strcmp ( q -> name , users [ userid ] . q_sendrealsoon . name ) ) {\n if ( debug >= 2 ) {\n fprintf ( stderr , \"IN pkt from user %d = dupe from impatient DNS server, remembering\\n\" , userid ) ;\n }\n users [ userid ] . q_sendrealsoon . id2 = q -> id ;\n users [ userid ] . q_sendrealsoon . fromlen2 = q -> fromlen ;\n memcpy ( & ( users [ userid ] . q_sendrealsoon . from2 ) , & ( q -> from ) , q -> fromlen ) ;\n return ;\n }\n up_seq = ( b32_8to5 ( in [ 1 ] ) >> 2 ) & 7 ;\n up_frag = ( ( b32_8to5 ( in [ 1 ] ) & 3 ) << 2 ) | ( ( b32_8to5 ( in [ 2 ] ) >> 3 ) & 3 ) ;\n dn_seq = ( b32_8to5 ( in [ 2 ] ) & 7 ) ;\n dn_frag = b32_8to5 ( in [ 3 ] ) >> 1 ;\n lastfrag = b32_8to5 ( in [ 3 ] ) & 1 ;\n process_downstream_ack ( userid , dn_seq , dn_frag ) ;\n if ( up_seq == users [ userid ] . inpacket . seqno && up_frag <= users [ userid ] . inpacket . fragment ) {\n if ( debug >= 1 ) {\n fprintf ( stderr , \"IN pkt seq# %d, frag %d, dropped duplicate frag\\n\" , up_seq , up_frag ) ;\n }\n upstream_ok = 0 ;\n }\n else if ( up_seq != users [ userid ] . inpacket . seqno && recent_seqno ( users [ userid ] . inpacket . seqno , up_seq ) ) {\n if ( debug >= 1 ) {\n fprintf ( stderr , \"IN pkt seq# %d, frag %d, dropped duplicate recent seqno\\n\" , up_seq , up_frag ) ;\n }\n upstream_ok = 0 ;\n }\n else if ( up_seq != users [ userid ] . inpacket . seqno ) {\n users [ userid ] . inpacket . seqno = up_seq ;\n users [ userid ] . inpacket . fragment = up_frag ;\n users [ userid ] . inpacket . len = 0 ;\n users [ userid ] . inpacket . offset = 0 ;\n }\n else {\n users [ userid ] . inpacket . fragment = up_frag ;\n }\n if ( debug >= 3 ) {\n fprintf ( stderr , \"INpack with upstream %d/%d, we are going to ack upstream %d/%d\\n\" , up_seq , up_frag , users [ userid ] . inpacket . seqno , users [ userid ] . inpacket . fragment ) ;\n }\n if ( upstream_ok ) {\n read = unpack_data ( unpacked , sizeof ( unpacked ) , & ( in [ 5 ] ) , domain_len - 5 , users [ userid ] . encoder ) ;\n read = MIN ( read , sizeof ( users [ userid ] . inpacket . data ) - users [ userid ] . inpacket . offset ) ;\n memcpy ( users [ userid ] . inpacket . data + users [ userid ] . inpacket . offset , unpacked , read ) ;\n users [ userid ] . inpacket . len += read ;\n users [ userid ] . inpacket . offset += read ;\n if ( debug >= 1 ) {\n fprintf ( stderr , \"IN pkt seq# %d, frag %d (last=%d), fragsize %d, total %d, from user %d\\n\" , up_seq , up_frag , lastfrag , read , users [ userid ] . inpacket . len , userid ) ;\n }\n }\n if ( upstream_ok && lastfrag ) {\n handle_full_packet ( tun_fd , dns_fd , userid ) ;\n }\n if ( users [ userid ] . q_sendrealsoon . id != 0 ) {\n didsend = 1 ;\n if ( send_chunk_or_dataless ( dns_fd , userid , & users [ userid ] . q_sendrealsoon ) == 1 ) didsend = 0 ;\n }\n if ( users [ userid ] . q . id != 0 ) {\n if ( ( users [ userid ] . outpacket . len > 0 && ! didsend ) || ( upstream_ok && ! lastfrag && ! didsend ) || ( ! upstream_ok && ! didsend ) || ! users [ userid ] . lazy ) {\n didsend = 1 ;\n if ( send_chunk_or_dataless ( dns_fd , userid , & users [ userid ] . q ) == 1 ) didsend = 0 ;\n }\n else {\n memcpy ( & ( users [ userid ] . q_sendrealsoon ) , & ( users [ userid ] . q ) , sizeof ( struct query ) ) ;\n users [ userid ] . q_sendrealsoon_new = 1 ;\n users [ userid ] . q . id = 0 ;\n didsend = 1 ;\n }\n }\n memcpy ( & ( users [ userid ] . q ) , q , sizeof ( struct query ) ) ;\n users [ userid ] . last_pkt = time ( NULL ) ;\n if ( users [ userid ] . outpacket . len > 0 && ! didsend ) send_chunk_or_dataless ( dns_fd , userid , & users [ userid ] . q ) ;\n else if ( ! didsend || ! users [ userid ] . lazy ) {\n if ( upstream_ok && lastfrag ) {\n memcpy ( & ( users [ userid ] . q_sendrealsoon ) , & ( users [ userid ] . q ) , sizeof ( struct query ) ) ;\n users [ userid ] . q_sendrealsoon_new = 1 ;\n users [ userid ] . q . id = 0 ;\n }\n else {\n send_chunk_or_dataless ( dns_fd , userid , & users [ userid ] . q ) ;\n }\n }\n }\n }"}
{"idx": 10631, "target": 0, "func": "static int matroska_parse_block ( MatroskaDemuxContext * matroska , uint8_t * data , int size , int64_t pos , uint64_t cluster_time , uint64_t block_duration , int is_keyframe , int64_t cluster_pos ) {\n uint64_t timecode = AV_NOPTS_VALUE ;\n MatroskaTrack * track ;\n int res = 0 ;\n AVStream * st ;\n int16_t block_time ;\n uint32_t * lace_size = NULL ;\n int n , flags , laces = 0 ;\n uint64_t num , duration ;\n if ( ( n = matroska_ebmlnum_uint ( matroska , data , size , & num ) ) < 0 ) {\n av_log ( matroska -> ctx , AV_LOG_ERROR , \"EBML block data error\\n\" ) ;\n return n ;\n }\n data += n ;\n size -= n ;\n track = matroska_find_track_by_num ( matroska , num ) ;\n if ( ! track || ! track -> stream ) {\n av_log ( matroska -> ctx , AV_LOG_INFO , \"Invalid stream %\" PRIu64 \" or size %u\\n\" , num , size ) ;\n return AVERROR_INVALIDDATA ;\n }\n else if ( size <= 3 ) return 0 ;\n st = track -> stream ;\n if ( st -> discard >= AVDISCARD_ALL ) return res ;\n block_time = AV_RB16 ( data ) ;\n data += 2 ;\n flags = * data ++ ;\n size -= 3 ;\n if ( is_keyframe == - 1 ) is_keyframe = flags & 0x80 ? AV_PKT_FLAG_KEY : 0 ;\n if ( cluster_time != ( uint64_t ) - 1 && ( block_time >= 0 || cluster_time >= - block_time ) ) {\n timecode = cluster_time + block_time - track -> codec_delay ;\n if ( track -> type == MATROSKA_TRACK_TYPE_SUBTITLE && timecode < track -> end_timecode ) is_keyframe = 0 ;\n if ( is_keyframe ) av_add_index_entry ( st , cluster_pos , timecode , 0 , 0 , AVINDEX_KEYFRAME ) ;\n }\n if ( matroska -> skip_to_keyframe && track -> type != MATROSKA_TRACK_TYPE_SUBTITLE ) {\n if ( ! is_keyframe || timecode < matroska -> skip_to_timecode ) return res ;\n matroska -> skip_to_keyframe = 0 ;\n }\n res = matroska_parse_laces ( matroska , & data , & size , ( flags & 0x06 ) >> 1 , & lace_size , & laces ) ;\n if ( res ) goto end ;\n if ( block_duration != AV_NOPTS_VALUE ) {\n duration = block_duration / laces ;\n if ( block_duration != duration * laces ) {\n av_log ( matroska -> ctx , AV_LOG_WARNING , \"Incorrect block_duration, possibly corrupted container\" ) ;\n }\n }\n else {\n duration = track -> default_duration / matroska -> time_scale ;\n block_duration = duration * laces ;\n }\n if ( timecode != AV_NOPTS_VALUE ) track -> end_timecode = FFMAX ( track -> end_timecode , timecode + block_duration ) ;\n for ( n = 0 ;\n n < laces ;\n n ++ ) {\n if ( ( st -> codec -> codec_id == AV_CODEC_ID_RA_288 || st -> codec -> codec_id == AV_CODEC_ID_COOK || st -> codec -> codec_id == AV_CODEC_ID_SIPR || st -> codec -> codec_id == AV_CODEC_ID_ATRAC3 ) && st -> codec -> block_align && track -> audio . sub_packet_size ) {\n res = matroska_parse_rm_audio ( matroska , track , st , data , lace_size [ n ] , timecode , duration , pos ) ;\n if ( res ) goto end ;\n }\n else {\n res = matroska_parse_frame ( matroska , track , st , data , lace_size [ n ] , timecode , duration , pos , ! n ? is_keyframe : 0 ) ;\n if ( res ) goto end ;\n }\n if ( timecode != AV_NOPTS_VALUE ) timecode = duration ? timecode + duration : AV_NOPTS_VALUE ;\n data += lace_size [ n ] ;\n }\n end : av_free ( lace_size ) ;\n return res ;\n }"}
{"idx": 10632, "target": 0, "func": "kadm5_ret_t kadm5_get_principal ( void * server_handle , krb5_principal principal , kadm5_principal_ent_t entry , long in_mask ) {\n krb5_db_entry * kdb ;\n osa_princ_ent_rec adb ;\n krb5_error_code ret = 0 ;\n long mask ;\n int i ;\n kadm5_server_handle_t handle = server_handle ;\n CHECK_HANDLE ( server_handle ) ;\n krb5_clear_error_message ( handle -> context ) ;\n mask = in_mask ;\n memset ( entry , 0 , sizeof ( * entry ) ) ;\n if ( principal == NULL ) return EINVAL ;\n if ( ( ret = kdb_get_entry ( handle , principal , & kdb , & adb ) ) ) return ret ;\n if ( ( mask & KADM5_POLICY ) && adb . policy && ( adb . aux_attributes & KADM5_POLICY ) ) {\n if ( ( entry -> policy = strdup ( adb . policy ) ) == NULL ) {\n ret = ENOMEM ;\n goto done ;\n }\n }\n if ( mask & KADM5_AUX_ATTRIBUTES ) entry -> aux_attributes = adb . aux_attributes ;\n if ( ( mask & KADM5_PRINCIPAL ) && ( ret = krb5_copy_principal ( handle -> context , kdb -> princ , & entry -> principal ) ) ) {\n goto done ;\n }\n if ( mask & KADM5_PRINC_EXPIRE_TIME ) entry -> princ_expire_time = kdb -> expiration ;\n if ( ( mask & KADM5_LAST_PWD_CHANGE ) && ( ret = krb5_dbe_lookup_last_pwd_change ( handle -> context , kdb , & ( entry -> last_pwd_change ) ) ) ) {\n goto done ;\n }\n if ( mask & KADM5_PW_EXPIRATION ) entry -> pw_expiration = kdb -> pw_expiration ;\n if ( mask & KADM5_MAX_LIFE ) entry -> max_life = kdb -> max_life ;\n if ( ( mask & KADM5_MOD_NAME ) || ( mask & KADM5_MOD_TIME ) ) {\n ret = krb5_dbe_lookup_mod_princ_data ( handle -> context , kdb , & ( entry -> mod_date ) , & ( entry -> mod_name ) ) ;\n if ( ret ) {\n goto done ;\n }\n if ( ! ( mask & KADM5_MOD_TIME ) ) entry -> mod_date = 0 ;\n if ( ! ( mask & KADM5_MOD_NAME ) ) {\n krb5_free_principal ( handle -> context , entry -> mod_name ) ;\n entry -> mod_name = NULL ;\n }\n }\n if ( mask & KADM5_ATTRIBUTES ) entry -> attributes = kdb -> attributes ;\n if ( mask & KADM5_KVNO ) for ( entry -> kvno = 0 , i = 0 ;\n i < kdb -> n_key_data ;\n i ++ ) if ( ( krb5_kvno ) kdb -> key_data [ i ] . key_data_kvno > entry -> kvno ) entry -> kvno = kdb -> key_data [ i ] . key_data_kvno ;\n if ( mask & KADM5_MKVNO ) {\n ret = krb5_dbe_get_mkvno ( handle -> context , kdb , & entry -> mkvno ) ;\n if ( ret ) goto done ;\n }\n if ( mask & KADM5_MAX_RLIFE ) entry -> max_renewable_life = kdb -> max_renewable_life ;\n if ( mask & KADM5_LAST_SUCCESS ) entry -> last_success = kdb -> last_success ;\n if ( mask & KADM5_LAST_FAILED ) entry -> last_failed = kdb -> last_failed ;\n if ( mask & KADM5_FAIL_AUTH_COUNT ) entry -> fail_auth_count = kdb -> fail_auth_count ;\n if ( mask & KADM5_TL_DATA ) {\n krb5_tl_data * tl , * tl2 ;\n entry -> tl_data = NULL ;\n tl = kdb -> tl_data ;\n while ( tl ) {\n if ( tl -> tl_data_type > 255 ) {\n if ( ( tl2 = dup_tl_data ( tl ) ) == NULL ) {\n ret = ENOMEM ;\n goto done ;\n }\n tl2 -> tl_data_next = entry -> tl_data ;\n entry -> tl_data = tl2 ;\n entry -> n_tl_data ++ ;\n }\n tl = tl -> tl_data_next ;\n }\n }\n if ( mask & KADM5_KEY_DATA ) {\n entry -> n_key_data = kdb -> n_key_data ;\n if ( entry -> n_key_data ) {\n entry -> key_data = k5calloc ( entry -> n_key_data , sizeof ( krb5_key_data ) , & ret ) ;\n if ( entry -> key_data == NULL ) goto done ;\n }\n else entry -> key_data = NULL ;\n for ( i = 0 ;\n i < entry -> n_key_data ;\n i ++ ) ret = krb5_copy_key_data_contents ( handle -> context , & kdb -> key_data [ i ] , & entry -> key_data [ i ] ) ;\n if ( ret ) goto done ;\n }\n ret = KADM5_OK ;\n done : if ( ret && entry -> principal ) {\n krb5_free_principal ( handle -> context , entry -> principal ) ;\n entry -> principal = NULL ;\n }\n kdb_free_entry ( handle , kdb , & adb ) ;\n return ret ;\n }"}
{"idx": 10633, "target": 0, "func": "static int ts_lua_http_client_packet_mark_set ( lua_State * L ) {\n int value ;\n ts_lua_http_ctx * http_ctx ;\n GET_HTTP_CONTEXT ( http_ctx , L ) ;\n value = luaL_checkinteger ( L , 1 ) ;\n TSDebug ( TS_LUA_DEBUG_TAG , \"client packet mark set\" ) ;\n TSHttpTxnClientPacketMarkSet ( http_ctx -> txnp , value ) ;\n return 0 ;\n }"}
{"idx": 10634, "target": 0, "func": "static UChar32 U_CALLCONV _UTF32GetNextUChar ( UConverterToUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n switch ( pArgs -> converter -> mode ) {\n case 8 : return T_UConverter_getNextUChar_UTF32_BE ( pArgs , pErrorCode ) ;\n case 9 : return T_UConverter_getNextUChar_UTF32_LE ( pArgs , pErrorCode ) ;\n default : return UCNV_GET_NEXT_UCHAR_USE_TO_U ;\n }\n }"}
{"idx": 10635, "target": 0, "func": "int X509_REQ_add1_attr_by_txt ( X509_REQ * req , const char * attrname , int type , const unsigned char * bytes , int len ) {\n if ( X509at_add1_attr_by_txt ( & req -> req_info -> attributes , attrname , type , bytes , len ) ) return 1 ;\n return 0 ;\n }"}
{"idx": 10636, "target": 0, "func": "static void init_dequant4_coeff_table ( H264Context * h ) {\n int i , j , q , x ;\n const int max_qp = 51 + 6 * ( h -> sps . bit_depth_luma - 8 ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n h -> dequant4_coeff [ i ] = h -> dequant4_buffer [ i ] ;\n for ( j = 0 ;\n j < i ;\n j ++ ) if ( ! memcmp ( h -> pps . scaling_matrix4 [ j ] , h -> pps . scaling_matrix4 [ i ] , * sizeof ( uint8_t ) ) ) {\n h -> dequant4_coeff [ i ] = h -> dequant4_buffer [ j ] ;\n break ;\n }\n if ( j < i ) continue ;\n for ( q = 0 ;\n q < max_qp + 1 ;\n q ++ ) {\n int shift = div6 [ q ] + 2 ;\n int idx = rem6 [ q ] ;\n for ( x = 0 ;\n x < 16 ;\n x ++ ) h -> dequant4_coeff [ i ] [ q ] [ ( x >> 2 ) | ( ( x << 2 ) & 0xF ) ] = ( ( uint32_t ) dequant4_coeff_init [ idx ] [ ( x & 1 ) + ( ( x >> 2 ) & 1 ) ] * h -> pps . scaling_matrix4 [ i ] [ x ] ) << shift ;\n }\n }\n }"}
{"idx": 10637, "target": 0, "func": "static void iadst16_sse2 ( __m128i * in0 , __m128i * in1 ) {\n array_transpose_16x16 ( in0 , in1 ) ;\n iadst16_8col ( in0 ) ;\n iadst16_8col ( in1 ) ;\n }"}
{"idx": 10638, "target": 0, "func": "static void stroke_add_conn ( private_stroke_socket_t * this , stroke_msg_t * msg ) {\n pop_string ( msg , & msg -> add_conn . name ) ;\n DBG1 ( DBG_CFG , \"received stroke: add connection '%s'\" , msg -> add_conn . name ) ;\n DBG2 ( DBG_CFG , \"conn %s\" , msg -> add_conn . name ) ;\n pop_end ( msg , \"left\" , & msg -> add_conn . me ) ;\n pop_end ( msg , \"right\" , & msg -> add_conn . other ) ;\n pop_string ( msg , & msg -> add_conn . eap_identity ) ;\n pop_string ( msg , & msg -> add_conn . aaa_identity ) ;\n pop_string ( msg , & msg -> add_conn . xauth_identity ) ;\n pop_string ( msg , & msg -> add_conn . algorithms . ike ) ;\n pop_string ( msg , & msg -> add_conn . algorithms . esp ) ;\n pop_string ( msg , & msg -> add_conn . algorithms . ah ) ;\n pop_string ( msg , & msg -> add_conn . ikeme . mediated_by ) ;\n pop_string ( msg , & msg -> add_conn . ikeme . peerid ) ;\n DBG_OPT ( \" eap_identity=%s\" , msg -> add_conn . eap_identity ) ;\n DBG_OPT ( \" aaa_identity=%s\" , msg -> add_conn . aaa_identity ) ;\n DBG_OPT ( \" xauth_identity=%s\" , msg -> add_conn . xauth_identity ) ;\n DBG_OPT ( \" ike=%s\" , msg -> add_conn . algorithms . ike ) ;\n DBG_OPT ( \" esp=%s\" , msg -> add_conn . algorithms . esp ) ;\n DBG_OPT ( \" ah=%s\" , msg -> add_conn . algorithms . ah ) ;\n DBG_OPT ( \" dpddelay=%d\" , msg -> add_conn . dpd . delay ) ;\n DBG_OPT ( \" dpdtimeout=%d\" , msg -> add_conn . dpd . timeout ) ;\n DBG_OPT ( \" dpdaction=%d\" , msg -> add_conn . dpd . action ) ;\n DBG_OPT ( \" closeaction=%d\" , msg -> add_conn . close_action ) ;\n DBG_OPT ( \" sha256_96=%s\" , msg -> add_conn . sha256_96 ? \"yes\" : \"no\" ) ;\n DBG_OPT ( \" mediation=%s\" , msg -> add_conn . ikeme . mediation ? \"yes\" : \"no\" ) ;\n DBG_OPT ( \" mediated_by=%s\" , msg -> add_conn . ikeme . mediated_by ) ;\n DBG_OPT ( \" me_peerid=%s\" , msg -> add_conn . ikeme . peerid ) ;\n DBG_OPT ( \" keyexchange=ikev%u\" , msg -> add_conn . version ) ;\n this -> config -> add ( this -> config , msg ) ;\n this -> attribute -> add_dns ( this -> attribute , msg ) ;\n this -> handler -> add_attributes ( this -> handler , msg ) ;\n }"}
{"idx": 10639, "target": 0, "func": "int logcat_open ( wtap * wth , int * err , gchar * * err_info _U_ ) {\n int local_err ;\n gchar * local_err_info ;\n gint version ;\n gint tmp_version ;\n struct logcat_phdr * logcat ;\n version = detect_version ( wth , & local_err , & local_err_info ) ;\n if ( version <= 0 ) return 0 ;\n tmp_version = detect_version ( wth , & local_err , & local_err_info ) ;\n if ( tmp_version < 0 && ! file_eof ( wth -> fh ) ) {\n return 0 ;\n }\n else if ( tmp_version > 0 ) {\n if ( tmp_version != version ) return 0 ;\n tmp_version = detect_version ( wth , & local_err , & local_err_info ) ;\n if ( tmp_version != version && ! file_eof ( wth -> fh ) ) return 0 ;\n }\n if ( file_seek ( wth -> fh , 0 , SEEK_SET , err ) == - 1 ) return - 1 ;\n logcat = ( struct logcat_phdr * ) g_malloc ( sizeof ( struct logcat_phdr ) ) ;\n logcat -> version = version ;\n wth -> priv = logcat ;\n wth -> file_type_subtype = WTAP_FILE_TYPE_SUBTYPE_LOGCAT ;\n wth -> file_encap = WTAP_ENCAP_LOGCAT ;\n wth -> snapshot_length = 0 ;\n wth -> subtype_read = logcat_read ;\n wth -> subtype_seek_read = logcat_seek_read ;\n wth -> tsprecision = WTAP_FILE_TSPREC_USEC ;\n return 1 ;\n }"}
{"idx": 10640, "target": 0, "func": "extern int name ( int ) __THROW __exctype ( isalnum ) ;\n __exctype ( isalpha ) ;\n __exctype ( iscntrl ) ;\n __exctype ( isdigit ) ;\n __exctype ( islower ) ;\n __exctype ( isgraph ) ;\n __exctype ( isprint ) ;\n __exctype ( ispunct ) ;\n __exctype ( isspace ) ;\n __exctype ( isupper ) ;\n __exctype ( isxdigit ) ;\n extern int tolower ( int __c ) __THROW ;\n extern int toupper ( int __c ) __THROW ;\n # ifdef __USE_ISOC99 __exctype ( isblank ) ;\n # endif # ifdef __USE_GNU extern int isctype ( int __c , int __mask ) __THROW ;\n # endif # if defined __USE_MISC || defined __USE_XOPEN extern int isascii ( int __c ) __THROW ;\n extern int toascii ( int __c ) __THROW ;\n __exctype ( _toupper )"}
{"idx": 10641, "target": 0, "func": "static void model256_reset ( Model256 * m ) {\n int i ;\n for ( i = 0 ;\n i < 255 ;\n i ++ ) m -> weights [ i ] = 1 ;\n m -> weights [ 255 ] = 0 ;\n m -> tot_weight = 0 ;\n m -> upd_val = 256 ;\n m -> till_rescale = 1 ;\n model256_update ( m , 255 ) ;\n m -> till_rescale = m -> upd_val = ( 256 + 6 ) >> 1 ;\n }"}
{"idx": 10642, "target": 0, "func": "static void test_rfc822_parse_content_param ( void ) {\n const char * input = \";\n key1=value1#$!%&'*+-.^_`{\n|}\n~\" \";\n key2=\\\" \\\\\\\"(),/:;\n<=>?@[\\\\\\\\]\\\"\" ;\n const struct {\n const char * key , * value ;\n }\n output [ ] = {\n {\n \"key1\" , \"value1#$!%&'*+-.^_`{\n|}\n~\" }\n , {\n \"key2\" , \" \\\"(),/:;\n<=>?@[\\\\]\" }\n }\n ;\n struct rfc822_parser_context parser ;\n const char * key , * value ;\n unsigned int i = 0 ;\n int ret ;\n test_begin ( \"rfc822 parse content param\" ) ;\n rfc822_parser_init ( & parser , ( const void * ) input , strlen ( input ) , NULL ) ;\n while ( ( ret = rfc822_parse_content_param ( & parser , & key , & value ) ) > 0 && i < N_ELEMENTS ( output ) ) {\n test_assert_idx ( strcmp ( output [ i ] . key , key ) == 0 , i ) ;\n test_assert_idx ( strcmp ( output [ i ] . value , value ) == 0 , i ) ;\n i ++ ;\n }\n rfc822_parser_deinit ( & parser ) ;\n test_assert ( ret == 0 ) ;\n test_assert ( i == N_ELEMENTS ( output ) ) ;\n test_end ( ) ;\n }"}
{"idx": 10643, "target": 1, "func": "static int parse_CBaseStorageVariant ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree _U_ , struct CBaseStorageVariant * value , const char * text ) {\n int i , len ;\n proto_item * ti , * ti_type , * ti_val ;\n proto_tree * tree , * tr ;\n enum vType highType ;\n ZERO_STRUCT ( * value ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CBaseStorageVariant , & ti , text ) ;\n parse_vType ( tvb , offset , & value -> vType ) ;\n value -> type = vType_get_type ( value -> vType ) ;\n DISSECTOR_ASSERT ( value -> type != NULL ) ;\n ti_type = proto_tree_add_string ( tree , hf_mswsp_cbasestorvariant_vtype , tvb , offset , 2 , value -> type -> str ) ;\n offset += 2 ;\n value -> vData1 = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_cbasestorvariant_vdata1 , tvb , offset , 1 , value -> vData1 ) ;\n offset += 1 ;\n value -> vData2 = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_cbasestorvariant_vdata2 , tvb , offset , 1 , value -> vData2 ) ;\n offset += 1 ;\n highType = ( enum vType ) ( value -> vType & 0xFF00 ) ;\n ti_val = proto_tree_add_string ( tree , hf_mswsp_cbasestorvariant_vvalue , tvb , offset , 0 , \"\" ) ;\n switch ( highType ) {\n case VT_EMPTY : DISSECTOR_ASSERT_HINT ( value -> type -> tvb_get != 0 , \"type that we don't know yet how to handle, please submit a bug with trace\" ) ;\n len = value -> type -> tvb_get ( tvb , offset , & value -> vValue . vt_single ) ;\n offset += len ;\n break ;\n case VT_VECTOR : proto_item_append_text ( ti_type , \"|VT_VECTOR\" ) ;\n tr = proto_item_add_subtree ( ti_val , ett_CBaseStorageVariant_Vector ) ;\n len = vvalue_tvb_vector ( tvb , offset , & value -> vValue . vt_vector , value -> type ) ;\n proto_tree_add_uint ( tr , hf_mswsp_cbasestorvariant_num , tvb , offset , 4 , value -> vValue . vt_vector . len ) ;\n offset += len ;\n break ;\n case VT_ARRAY : {\n guint16 cDims , fFeatures ;\n guint32 cbElements , cElements , lLbound ;\n int num = 1 ;\n proto_item_append_text ( ti_type , \"|VT_ARRAY\" ) ;\n tr = proto_item_add_subtree ( ti_val , ett_CBaseStorageVariant_Array ) ;\n cDims = tvb_get_letohs ( tvb , offset ) ;\n proto_tree_add_uint ( tr , hf_mswsp_cbasestorvariant_cdims , tvb , offset , 2 , cDims ) ;\n offset += 2 ;\n fFeatures = tvb_get_letohs ( tvb , offset ) ;\n proto_tree_add_uint ( tr , hf_mswsp_cbasestorvariant_ffeatures , tvb , offset , 2 , fFeatures ) ;\n offset += 2 ;\n cbElements = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tr , hf_mswsp_cbasestorvariant_cbelements , tvb , offset , 4 , cbElements ) ;\n offset += 4 ;\n for ( i = 0 ;\n i < cDims ;\n i ++ ) {\n cElements = tvb_get_letohl ( tvb , offset ) ;\n lLbound = tvb_get_letohl ( tvb , offset + 4 ) ;\n proto_tree_add_string_format ( tr , hf_mswsp_cbasestorvariant_rgsabound , tvb , offset , 8 , \"\" , \"Rgsabound[%d]: (%d:%d)\" , i , cElements , lLbound ) ;\n offset += 8 ;\n num *= cElements ;\n }\n len = vvalue_tvb_vector_internal ( tvb , offset , & value -> vValue . vt_array . vData , value -> type , num ) ;\n offset += len ;\n break ;\n }\n default : proto_item_append_text ( ti_type , \"|0x%x\" , highType ) ;\n }\n proto_item_set_end ( ti , tvb , offset ) ;\n proto_item_set_end ( ti_val , tvb , offset ) ;\n proto_item_append_text ( ti_val , \" %s\" , str_CBaseStorageVariant ( value , FALSE ) ) ;\n proto_item_append_text ( ti , \" %s\" , str_CBaseStorageVariant ( value , TRUE ) ) ;\n return offset ;\n }"}
{"idx": 10644, "target": 0, "func": "static int guess_ni_flag ( AVFormatContext * s ) {\n int i ;\n int64_t last_start = 0 ;\n int64_t first_end = INT64_MAX ;\n int64_t oldpos = avio_tell ( s -> pb ) ;\n for ( i = 0 ;\n i < s -> nb_streams ;\n i ++ ) {\n AVStream * st = s -> streams [ i ] ;\n int n = st -> nb_index_entries ;\n unsigned int size ;\n if ( n <= 0 ) continue ;\n if ( n >= 2 ) {\n int64_t pos = st -> index_entries [ 0 ] . pos ;\n unsigned tag [ 2 ] ;\n avio_seek ( s -> pb , pos , SEEK_SET ) ;\n tag [ 0 ] = avio_r8 ( s -> pb ) ;\n tag [ 1 ] = avio_r8 ( s -> pb ) ;\n avio_rl16 ( s -> pb ) ;\n size = avio_rl32 ( s -> pb ) ;\n if ( get_stream_idx ( tag ) == i && pos + size > st -> index_entries [ 1 ] . pos ) last_start = INT64_MAX ;\n if ( get_stream_idx ( tag ) == i && size == st -> index_entries [ 0 ] . size + 8 ) last_start = INT64_MAX ;\n }\n if ( st -> index_entries [ 0 ] . pos > last_start ) last_start = st -> index_entries [ 0 ] . pos ;\n if ( st -> index_entries [ n - 1 ] . pos < first_end ) first_end = st -> index_entries [ n - 1 ] . pos ;\n }\n avio_seek ( s -> pb , oldpos , SEEK_SET ) ;\n if ( last_start > first_end ) return 1 ;\n return check_stream_max_drift ( s ) ;\n }"}
{"idx": 10645, "target": 1, "func": "tdata_t _TIFFmalloc ( tsize_t s ) {\n if ( s == 0 ) return ( ( void * ) NULL ) ;\n return ( malloc ( ( size_t ) s ) ) ;\n }"}
{"idx": 10646, "target": 1, "func": "static void vc1_mc_4mv_chroma ( VC1Context * v , int dir ) {\n MpegEncContext * s = & v -> s ;\n H264ChromaContext * h264chroma = & v -> h264chroma ;\n uint8_t * srcU , * srcV ;\n int uvmx , uvmy , uvsrc_x , uvsrc_y ;\n int k , tx = 0 , ty = 0 ;\n int mvx [ 4 ] , mvy [ 4 ] , intra [ 4 ] , mv_f [ 4 ] ;\n int valid_count ;\n int chroma_ref_type = v -> cur_field_type , off = 0 ;\n int v_edge_pos = s -> v_edge_pos >> v -> field_mode ;\n if ( ! v -> field_mode && ! v -> s . last_picture . f . data [ 0 ] ) return ;\n if ( s -> flags & CODEC_FLAG_GRAY ) return ;\n for ( k = 0 ;\n k < 4 ;\n k ++ ) {\n mvx [ k ] = s -> mv [ dir ] [ k ] [ 0 ] ;\n mvy [ k ] = s -> mv [ dir ] [ k ] [ 1 ] ;\n intra [ k ] = v -> mb_type [ 0 ] [ s -> block_index [ k ] ] ;\n if ( v -> field_mode ) mv_f [ k ] = v -> mv_f [ dir ] [ s -> block_index [ k ] + v -> blocks_off ] ;\n }\n if ( ! v -> field_mode || ( v -> field_mode && ! v -> numref ) ) {\n valid_count = get_chroma_mv ( mvx , mvy , intra , 0 , & tx , & ty ) ;\n chroma_ref_type = v -> reffield ;\n if ( ! valid_count ) {\n s -> current_picture . f . motion_val [ 1 ] [ s -> block_index [ 0 ] + v -> blocks_off ] [ 0 ] = 0 ;\n s -> current_picture . f . motion_val [ 1 ] [ s -> block_index [ 0 ] + v -> blocks_off ] [ 1 ] = 0 ;\n v -> luma_mv [ s -> mb_x ] [ 0 ] = v -> luma_mv [ s -> mb_x ] [ 1 ] = 0 ;\n return ;\n / o need to do MC for intra blocks }\n }\n else {\n int dominant = 0 ;\n if ( mv_f [ 0 ] + mv_f [ 1 ] + mv_f [ 2 ] + mv_f [ 3 ] > 2 ) dominant = 1 ;\n valid_count = get_chroma_mv ( mvx , mvy , mv_f , dominant , & tx , & ty ) ;\n if ( dominant ) chroma_ref_type = ! v -> cur_field_type ;\n }\n if ( v -> field_mode && chroma_ref_type == 1 && v -> cur_field_type == 1 && ! v -> s . last_picture . f . data [ 0 ] ) return ;\n s -> current_picture . f . motion_val [ 1 ] [ s -> block_index [ 0 ] + v -> blocks_off ] [ 0 ] = tx ;\n s -> current_picture . f . motion_val [ 1 ] [ s -> block_index [ 0 ] + v -> blocks_off ] [ 1 ] = ty ;\n uvmx = ( tx + ( ( tx & 3 ) == 3 ) ) >> 1 ;\n uvmy = ( ty + ( ( ty & 3 ) == 3 ) ) >> 1 ;\n v -> luma_mv [ s -> mb_x ] [ 0 ] = uvmx ;\n v -> luma_mv [ s -> mb_x ] [ 1 ] = uvmy ;\n if ( v -> fastuvmc ) {\n uvmx = uvmx + ( ( uvmx < 0 ) ? ( uvmx & 1 ) : - ( uvmx & 1 ) ) ;\n uvmy = uvmy + ( ( uvmy < 0 ) ? ( uvmy & 1 ) : - ( uvmy & 1 ) ) ;\n }\n if ( v -> cur_field_type != chroma_ref_type ) uvmy += 2 - 4 * chroma_ref_type ;\n uvsrc_x = s -> mb_x * 8 + ( uvmx >> 2 ) ;\n uvsrc_y = s -> mb_y * 8 + ( uvmy >> 2 ) ;\n if ( v -> profile != PROFILE_ADVANCED ) {\n uvsrc_x = av_clip ( uvsrc_x , - 8 , s -> mb_width * 8 ) ;\n uvsrc_y = av_clip ( uvsrc_y , - 8 , s -> mb_height * 8 ) ;\n }\n else {\n uvsrc_x = av_clip ( uvsrc_x , - 8 , s -> avctx -> coded_width >> 1 ) ;\n uvsrc_y = av_clip ( uvsrc_y , - 8 , s -> avctx -> coded_height >> 1 ) ;\n }\n if ( ! dir ) {\n if ( v -> field_mode ) {\n if ( ( v -> cur_field_type != chroma_ref_type ) && v -> cur_field_type ) {\n srcU = s -> current_picture . f . data [ 1 ] + uvsrc_y * s -> uvlinesize + uvsrc_x ;\n srcV = s -> current_picture . f . data [ 2 ] + uvsrc_y * s -> uvlinesize + uvsrc_x ;\n }\n else {\n srcU = s -> last_picture . f . data [ 1 ] + uvsrc_y * s -> uvlinesize + uvsrc_x ;\n srcV = s -> last_picture . f . data [ 2 ] + uvsrc_y * s -> uvlinesize + uvsrc_x ;\n }\n }\n else {\n srcU = s -> last_picture . f . data [ 1 ] + uvsrc_y * s -> uvlinesize + uvsrc_x ;\n srcV = s -> last_picture . f . data [ 2 ] + uvsrc_y * s -> uvlinesize + uvsrc_x ;\n }\n }\n else {\n srcU = s -> next_picture . f . data [ 1 ] + uvsrc_y * s -> uvlinesize + uvsrc_x ;\n srcV = s -> next_picture . f . data [ 2 ] + uvsrc_y * s -> uvlinesize + uvsrc_x ;\n }\n if ( v -> field_mode ) {\n if ( chroma_ref_type ) {\n srcU += s -> current_picture_ptr -> f . linesize [ 1 ] ;\n srcV += s -> current_picture_ptr -> f . linesize [ 2 ] ;\n }\n off = v -> cur_field_type ? s -> current_picture_ptr -> f . linesize [ 1 ] : 0 ;\n }\n if ( v -> rangeredfrm || ( v -> mv_mode == MV_PMODE_INTENSITY_COMP ) || s -> h_edge_pos < 18 || v_edge_pos < 18 || ( unsigned ) uvsrc_x > ( s -> h_edge_pos >> 1 ) - 9 || ( unsigned ) uvsrc_y > ( v_edge_pos >> 1 ) - 9 ) {\n s -> vdsp . emulated_edge_mc ( s -> edge_emu_buffer , srcU , s -> uvlinesize , 8 + 1 , 8 + 1 , uvsrc_x , uvsrc_y , s -> h_edge_pos >> 1 , v_edge_pos >> 1 ) ;\n s -> vdsp . emulated_edge_mc ( s -> edge_emu_buffer + 16 , srcV , s -> uvlinesize , 8 + 1 , 8 + 1 , uvsrc_x , uvsrc_y , s -> h_edge_pos >> 1 , v_edge_pos >> 1 ) ;\n srcU = s -> edge_emu_buffer ;\n srcV = s -> edge_emu_buffer + 16 ;\n if ( v -> rangeredfrm ) {\n int i , j ;\n uint8_t * src , * src2 ;\n src = srcU ;\n src2 = srcV ;\n for ( j = 0 ;\n j < 9 ;\n j ++ ) {\n for ( i = 0 ;\n i < 9 ;\n i ++ ) {\n src [ i ] = ( ( src [ i ] - 128 ) >> 1 ) + 128 ;\n src2 [ i ] = ( ( src2 [ i ] - 128 ) >> 1 ) + 128 ;\n }\n src += s -> uvlinesize ;\n src2 += s -> uvlinesize ;\n }\n }\n if ( v -> mv_mode == MV_PMODE_INTENSITY_COMP ) {\n int i , j ;\n uint8_t * src , * src2 ;\n src = srcU ;\n src2 = srcV ;\n for ( j = 0 ;\n j < 9 ;\n j ++ ) {\n for ( i = 0 ;\n i < 9 ;\n i ++ ) {\n src [ i ] = v -> lutuv [ src [ i ] ] ;\n src2 [ i ] = v -> lutuv [ src2 [ i ] ] ;\n }\n src += s -> uvlinesize ;\n src2 += s -> uvlinesize ;\n }\n }\n }\n uvmx = ( uvmx & 3 ) << 1 ;\n uvmy = ( uvmy & 3 ) << 1 ;\n if ( ! v -> rnd ) {\n h264chroma -> put_h264_chroma_pixels_tab [ 0 ] ( s -> dest [ 1 ] + off , srcU , s -> uvlinesize , 8 , uvmx , uvmy ) ;\n h264chroma -> put_h264_chroma_pixels_tab [ 0 ] ( s -> dest [ 2 ] + off , srcV , s -> uvlinesize , 8 , uvmx , uvmy ) ;\n }\n else {\n v -> vc1dsp . put_no_rnd_vc1_chroma_pixels_tab [ 0 ] ( s -> dest [ 1 ] + off , srcU , s -> uvlinesize , 8 , uvmx , uvmy ) ;\n v -> vc1dsp . put_no_rnd_vc1_chroma_pixels_tab [ 0 ] ( s -> dest [ 2 ] + off , srcV , s -> uvlinesize , 8 , uvmx , uvmy ) ;\n }\n }"}
{"idx": 10647, "target": 1, "func": "SPL_METHOD ( SplFileObject , func_name ) \\ {\n \\ spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n \\ FileFunctionCall ( func_name , ZEND_NUM_ARGS ( ) , NULL ) ;\n \\ }\n SPL_METHOD ( SplFileObject , fgetcsv ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char delimiter = intern -> u . file . delimiter , enclosure = intern -> u . file . enclosure , escape = intern -> u . file . escape ;\n char * delim = NULL , * enclo = NULL , * esc = NULL ;\n int d_len = 0 , e_len = 0 , esc_len = 0 ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"|sss\" , & delim , & d_len , & enclo , & e_len , & esc , & esc_len ) == SUCCESS ) {\n switch ( ZEND_NUM_ARGS ( ) ) {\n case 3 : if ( esc_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"escape must be a character\" ) ;\n RETURN_FALSE ;\n }\n escape = esc [ 0 ] ;\n case 2 : if ( e_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"enclosure must be a character\" ) ;\n RETURN_FALSE ;\n }\n enclosure = enclo [ 0 ] ;\n case 1 : if ( d_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"delimiter must be a character\" ) ;\n RETURN_FALSE ;\n }\n delimiter = delim [ 0 ] ;\n case 0 : break ;\n }\n spl_filesystem_file_read_csv ( intern , delimiter , enclosure , escape , return_value TSRMLS_CC ) ;\n }\n }\n SPL_METHOD ( SplFileObject , fputcsv ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char delimiter = intern -> u . file . delimiter , enclosure = intern -> u . file . enclosure , escape = intern -> u . file . escape ;\n char * delim = NULL , * enclo = NULL , * esc = NULL ;\n int d_len = 0 , e_len = 0 , esc_len = 0 , ret ;\n zval * fields = NULL ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"a|sss\" , & fields , & delim , & d_len , & enclo , & e_len , & esc , & esc_len ) == SUCCESS ) {\n switch ( ZEND_NUM_ARGS ( ) ) {\n case 4 : if ( esc_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"escape must be a character\" ) ;\n RETURN_FALSE ;\n }\n escape = esc [ 0 ] ;\n case 3 : if ( e_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"enclosure must be a character\" ) ;\n RETURN_FALSE ;\n }\n enclosure = enclo [ 0 ] ;\n case 2 : if ( d_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"delimiter must be a character\" ) ;\n RETURN_FALSE ;\n }\n delimiter = delim [ 0 ] ;\n case 1 : case 0 : break ;\n }\n ret = php_fputcsv ( intern -> u . file . stream , fields , delimiter , enclosure , escape TSRMLS_CC ) ;\n RETURN_LONG ( ret ) ;\n }\n }\n SPL_METHOD ( SplFileObject , setCsvControl ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char delimiter = ',' , enclosure = '\"' , escape = '\\\\' ;\n char * delim = NULL , * enclo = NULL , * esc = NULL ;\n int d_len = 0 , e_len = 0 , esc_len = 0 ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"|sss\" , & delim , & d_len , & enclo , & e_len , & esc , & esc_len ) == SUCCESS ) {\n switch ( ZEND_NUM_ARGS ( ) ) {\n case 3 : if ( esc_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"escape must be a character\" ) ;\n RETURN_FALSE ;\n }\n escape = esc [ 0 ] ;\n case 2 : if ( e_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"enclosure must be a character\" ) ;\n RETURN_FALSE ;\n }\n enclosure = enclo [ 0 ] ;\n case 1 : if ( d_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"delimiter must be a character\" ) ;\n RETURN_FALSE ;\n }\n delimiter = delim [ 0 ] ;\n case 0 : break ;\n }\n intern -> u . file . delimiter = delimiter ;\n intern -> u . file . enclosure = enclosure ;\n intern -> u . file . escape = escape ;\n }\n }\n SPL_METHOD ( SplFileObject , getCsvControl ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char delimiter [ 2 ] , enclosure [ 2 ] ;\n array_init ( return_value ) ;\n delimiter [ 0 ] = intern -> u . file . delimiter ;\n delimiter [ 1 ] = '\\0' ;\n enclosure [ 0 ] = intern -> u . file . enclosure ;\n enclosure [ 1 ] = '\\0' ;\n add_next_index_string ( return_value , delimiter , 1 ) ;\n add_next_index_string ( return_value , enclosure , 1 ) ;\n }\n FileFunction ( flock )"}
{"idx": 10648, "target": 0, "func": "static guint32 uncompress_subclass ( guint8 csub ) {\n if ( csub & 0x80 ) {\n if ( csub == 0xff ) return ( guint32 ) - 1 ;\n else return 1 << ( csub & 0x1F ) ;\n }\n else return ( guint32 ) csub ;\n }"}
{"idx": 10649, "target": 0, "func": "mbfl_string * mbfl_substr ( mbfl_string * string , mbfl_string * result , int from , int length ) {\n const mbfl_encoding * encoding ;\n int n , m , k , len , start , end ;\n unsigned char * p , * w ;\n const unsigned char * mbtab ;\n encoding = mbfl_no2encoding ( string -> no_encoding ) ;\n if ( encoding == NULL || string == NULL || result == NULL ) {\n return NULL ;\n }\n mbfl_string_init ( result ) ;\n result -> no_language = string -> no_language ;\n result -> no_encoding = string -> no_encoding ;\n if ( ( encoding -> flag & ( MBFL_ENCTYPE_SBCS | MBFL_ENCTYPE_WCS2BE | MBFL_ENCTYPE_WCS2LE | MBFL_ENCTYPE_WCS4BE | MBFL_ENCTYPE_WCS4LE ) ) || encoding -> mblen_table != NULL ) {\n len = string -> len ;\n start = from ;\n end = from + length ;\n if ( encoding -> flag & ( MBFL_ENCTYPE_WCS2BE | MBFL_ENCTYPE_WCS2LE ) ) {\n start *= 2 ;\n end = start + length * 2 ;\n }\n else if ( encoding -> flag & ( MBFL_ENCTYPE_WCS4BE | MBFL_ENCTYPE_WCS4LE ) ) {\n start *= 4 ;\n end = start + length * 4 ;\n }\n else if ( encoding -> mblen_table != NULL ) {\n mbtab = encoding -> mblen_table ;\n start = 0 ;\n end = 0 ;\n n = 0 ;\n k = 0 ;\n p = string -> val ;\n if ( p != NULL ) {\n while ( k <= from ) {\n start = n ;\n if ( n >= len ) {\n break ;\n }\n m = mbtab [ * p ] ;\n n += m ;\n p += m ;\n k ++ ;\n }\n k = 0 ;\n end = start ;\n while ( k < length ) {\n end = n ;\n if ( n >= len ) {\n break ;\n }\n m = mbtab [ * p ] ;\n n += m ;\n p += m ;\n k ++ ;\n }\n }\n }\n if ( start > len ) {\n start = len ;\n }\n if ( start < 0 ) {\n start = 0 ;\n }\n if ( end > len ) {\n end = len ;\n }\n if ( end < 0 ) {\n end = 0 ;\n }\n if ( start > end ) {\n start = end ;\n }\n n = end - start ;\n result -> len = 0 ;\n result -> val = w = ( unsigned char * ) mbfl_malloc ( ( n + 8 ) * sizeof ( unsigned char ) ) ;\n if ( w != NULL ) {\n p = string -> val ;\n if ( p != NULL ) {\n p += start ;\n result -> len = n ;\n while ( n > 0 ) {\n * w ++ = * p ++ ;\n n -- ;\n }\n }\n * w ++ = '\\0' ;\n * w ++ = '\\0' ;\n * w ++ = '\\0' ;\n * w = '\\0' ;\n }\n else {\n result = NULL ;\n }\n }\n else {\n mbfl_memory_device device ;\n struct collector_substr_data pc ;\n mbfl_convert_filter * decoder ;\n mbfl_convert_filter * encoder ;\n mbfl_memory_device_init ( & device , length + 1 , 0 ) ;\n mbfl_string_init ( result ) ;\n result -> no_language = string -> no_language ;\n result -> no_encoding = string -> no_encoding ;\n decoder = mbfl_convert_filter_new ( mbfl_no_encoding_wchar , string -> no_encoding , mbfl_memory_device_output , 0 , & device ) ;\n encoder = mbfl_convert_filter_new ( string -> no_encoding , mbfl_no_encoding_wchar , collector_substr , 0 , & pc ) ;\n if ( decoder == NULL || encoder == NULL ) {\n mbfl_convert_filter_delete ( encoder ) ;\n mbfl_convert_filter_delete ( decoder ) ;\n return NULL ;\n }\n pc . next_filter = decoder ;\n pc . start = from ;\n pc . stop = from + length ;\n pc . output = 0 ;\n p = string -> val ;\n n = string -> len ;\n if ( p != NULL ) {\n while ( n > 0 ) {\n if ( ( * encoder -> filter_function ) ( * p ++ , encoder ) < 0 ) {\n break ;\n }\n n -- ;\n }\n }\n mbfl_convert_filter_flush ( encoder ) ;\n mbfl_convert_filter_flush ( decoder ) ;\n result = mbfl_memory_device_result ( & device , result ) ;\n mbfl_convert_filter_delete ( encoder ) ;\n mbfl_convert_filter_delete ( decoder ) ;\n }\n return result ;\n }"}
{"idx": 10650, "target": 0, "func": "static int dtls1_retrieve_buffered_fragment ( SSL * s , long max , int * ok ) {\n pitem * item ;\n hm_fragment * frag ;\n int al ;\n * ok = 0 ;\n item = pqueue_peek ( s -> d1 -> buffered_messages ) ;\n if ( item == NULL ) return 0 ;\n frag = ( hm_fragment * ) item -> data ;\n if ( frag -> reassembly != NULL ) return 0 ;\n if ( s -> d1 -> handshake_read_seq == frag -> msg_header . seq ) {\n unsigned long frag_len = frag -> msg_header . frag_len ;\n pqueue_pop ( s -> d1 -> buffered_messages ) ;\n al = dtls1_preprocess_fragment ( s , & frag -> msg_header , max ) ;\n if ( al == 0 ) {\n unsigned char * p = ( unsigned char * ) s -> init_buf -> data + DTLS1_HM_HEADER_LENGTH ;\n memcpy ( & p [ frag -> msg_header . frag_off ] , frag -> fragment , frag -> msg_header . frag_len ) ;\n }\n dtls1_hm_fragment_free ( frag ) ;\n pitem_free ( item ) ;\n if ( al == 0 ) {\n * ok = 1 ;\n return frag_len ;\n }\n ssl3_send_alert ( s , SSL3_AL_FATAL , al ) ;\n s -> init_num = 0 ;\n * ok = 0 ;\n return - 1 ;\n }\n else return 0 ;\n }"}
{"idx": 10651, "target": 0, "func": "static int dissect_spoolss_relstr ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep , int hf_index , int struct_start , char * * data ) {\n proto_item * item ;\n proto_tree * subtree ;\n guint32 relstr_offset , relstr_start , relstr_end ;\n char * text ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , NULL , di , drep , hf_offset , & relstr_offset ) ;\n relstr_start = relstr_offset + struct_start ;\n if ( relstr_offset ) {\n relstr_end = dissect_spoolss_uint16uni ( tvb , relstr_start , pinfo , NULL , drep , & text , hf_relative_string ) ;\n }\n else {\n text = g_strdup ( \"\" ) ;\n relstr_end = relstr_start ;\n }\n item = proto_tree_add_string ( tree , hf_index , tvb , relstr_start , relstr_end - relstr_start , text ) ;\n subtree = proto_item_add_subtree ( item , ett_RELSTR ) ;\n dissect_ndr_uint32 ( tvb , offset - 4 , pinfo , subtree , di , drep , hf_offset , NULL ) ;\n if ( relstr_offset ) dissect_spoolss_uint16uni ( tvb , relstr_start , pinfo , subtree , drep , NULL , hf_relative_string ) ;\n if ( data ) * data = text ;\n else g_free ( text ) ;\n return offset ;\n }"}
{"idx": 10652, "target": 0, "func": "static int wma_decode_frame ( WMACodecContext * s , float * * samples , int samples_offset ) {\n int ret , ch ;\n # ifdef TRACE tprintf ( s -> avctx , \"***decode_frame: %d size=%d\\n\" , s -> frame_count ++ , s -> frame_len ) ;\n # endif s -> block_num = 0 ;\n s -> block_pos = 0 ;\n for ( ;\n ;\n ) {\n ret = wma_decode_block ( s ) ;\n if ( ret < 0 ) return - 1 ;\n if ( ret ) break ;\n }\n for ( ch = 0 ;\n ch < s -> avctx -> channels ;\n ch ++ ) {\n memcpy ( samples [ ch ] + samples_offset , s -> frame_out [ ch ] , s -> frame_len * sizeof ( * s -> frame_out [ ch ] ) ) ;\n memmove ( & s -> frame_out [ ch ] [ 0 ] , & s -> frame_out [ ch ] [ s -> frame_len ] , s -> frame_len * sizeof ( * s -> frame_out [ ch ] ) ) ;\n # ifdef TRACE dump_floats ( s , \"samples\" , 6 , samples [ ch ] + samples_offset , s -> frame_len ) ;\n # endif }\n return 0 ;\n }"}
{"idx": 10653, "target": 0, "func": "static int pubkey_get_nsig ( int algorithm ) {\n gcry_module_t pubkey ;\n int nsig = 0 ;\n REGISTER_DEFAULT_PUBKEYS ;\n ath_mutex_lock ( & pubkeys_registered_lock ) ;\n pubkey = _gcry_module_lookup_id ( pubkeys_registered , algorithm ) ;\n if ( pubkey ) {\n nsig = strlen ( ( ( gcry_pk_spec_t * ) pubkey -> spec ) -> elements_sig ) ;\n _gcry_module_release ( pubkey ) ;\n }\n ath_mutex_unlock ( & pubkeys_registered_lock ) ;\n return nsig ;\n }"}
{"idx": 10654, "target": 0, "func": "static int dissect_h245_H222LogicalChannelParameters ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_H222LogicalChannelParameters , H222LogicalChannelParameters_sequence ) ;\n return offset ;\n }"}
{"idx": 10655, "target": 0, "func": "static int dissect_zbee_zcl_groups ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n proto_tree * payload_tree ;\n zbee_zcl_packet * zcl ;\n guint offset = 0 ;\n guint8 cmd_id ;\n gint rem_len ;\n if ( data == NULL ) return 0 ;\n zcl = ( zbee_zcl_packet * ) data ;\n cmd_id = zcl -> cmd_id ;\n if ( zcl -> direction == ZBEE_ZCL_FCF_TO_SERVER ) {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"%s, Seq: %u\" , val_to_str_const ( cmd_id , zbee_zcl_groups_srv_rx_cmd_names , \"Unknown Command\" ) , zcl -> tran_seqno ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_groups_srv_rx_cmd_id , tvb , offset , 1 , cmd_id ) ;\n rem_len = tvb_reported_length_remaining ( tvb , ++ offset ) ;\n if ( rem_len > 0 ) {\n payload_tree = proto_tree_add_subtree ( tree , tvb , offset , rem_len , ett_zbee_zcl_groups , NULL , \"Payload\" ) ;\n switch ( cmd_id ) {\n case ZBEE_ZCL_CMD_ID_GROUPS_ADD_GROUP : dissect_zcl_groups_add_group_or_if_identifying ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_GROUPS_VIEW_GROUP : dissect_zcl_groups_view_group ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_GROUPS_ADD_GET_GROUP_MEMBERSHIP : dissect_zcl_groups_get_group_membership ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_GROUPS_REMOVE_GROUP : dissect_zcl_groups_remove_group ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_GROUPS_REMOVE_ALL_GROUPS : break ;\n case ZBEE_ZCL_CMD_ID_GROUPS_ADD_GROUP_IF_IDENTIFYING : dissect_zcl_groups_add_group_or_if_identifying ( tvb , payload_tree , & offset ) ;\n break ;\n default : break ;\n }\n }\n }\n else {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"%s, Seq: %u\" , val_to_str_const ( cmd_id , zbee_zcl_groups_srv_tx_cmd_names , \"Unknown Command\" ) , zcl -> tran_seqno ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_groups_srv_tx_cmd_id , tvb , offset , 1 , cmd_id ) ;\n rem_len = tvb_reported_length_remaining ( tvb , ++ offset ) ;\n if ( rem_len > 0 ) {\n payload_tree = proto_tree_add_subtree ( tree , tvb , offset , rem_len , ett_zbee_zcl_groups , NULL , \"Payload\" ) ;\n switch ( cmd_id ) {\n case ZBEE_ZCL_CMD_ID_GROUPS_ADD_GROUP_RESPONSE : dissect_zcl_groups_add_remove_group_response ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_GROUPS_VIEW_GROUP_RESPONSE : dissect_zcl_groups_view_group_response ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_GROUPS_GET_GROUP_MEMBERSHIP_RESPONSE : dissect_zcl_groups_get_group_membership_response ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_GROUPS_REMOVE_GROUP_RESPONSE : dissect_zcl_groups_add_remove_group_response ( tvb , payload_tree , & offset ) ;\n break ;\n default : break ;\n }\n }\n }\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 10656, "target": 0, "func": "SPL_METHOD ( SplFileObject , fwrite ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char * str ;\n int str_len ;\n long length = 0 ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"s|l\" , & str , & str_len , & length ) == FAILURE ) {\n return ;\n }\n if ( ZEND_NUM_ARGS ( ) > 1 ) {\n str_len = MAX ( 0 , MIN ( length , str_len ) ) ;\n }\n if ( ! str_len ) {\n RETURN_LONG ( 0 ) ;\n }\n RETURN_LONG ( php_stream_write ( intern -> u . file . stream , str , str_len ) ) ;\n }"}
{"idx": 10657, "target": 0, "func": "static void ber_defragment_init ( void ) {\n reassembly_table_init ( & octet_segment_reassembly_table , & addresses_reassembly_table_functions ) ;\n }"}
{"idx": 10658, "target": 0, "func": "static int get_fixed_vtype_dataize ( enum vType vtype ) {\n struct vtype_data * vt_type = vType_get_type ( vtype ) ;\n if ( vt_type ) {\n return vt_type -> size ;\n }\n return - 1 ;\n }"}
{"idx": 10659, "target": 0, "func": "const char * SSL_rstate_string ( const SSL * s ) {\n const char * str ;\n switch ( s -> rstate ) {\n case SSL_ST_READ_HEADER : str = \"RH\" ;\n break ;\n case SSL_ST_READ_BODY : str = \"RB\" ;\n break ;\n case SSL_ST_READ_DONE : str = \"RD\" ;\n break ;\n default : str = \"unknown\" ;\n break ;\n }\n return ( str ) ;\n }"}
{"idx": 10660, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( BlockedAppApiTest , MAYBE_OpenAppFromIframe ) {\n const Extension * app = LoadExtension ( test_data_dir_ . AppendASCII ( \"app_process\" ) ) ;\n ASSERT_TRUE ( app ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , GetTestBaseURL ( \"app_process\" ) . Resolve ( \"path3/container.html\" ) ) ;\n WebContents * tab = browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) ;\n PopupBlockerTabHelper * popup_blocker_tab_helper = PopupBlockerTabHelper : : FromWebContents ( tab ) ;\n if ( ! popup_blocker_tab_helper -> GetBlockedPopupsCount ( ) ) {\n content : : WindowedNotificationObserver observer ( chrome : : NOTIFICATION_WEB_CONTENT_SETTINGS_CHANGED , content : : NotificationService : : AllSources ( ) ) ;\n observer . Wait ( ) ;\n }\n EXPECT_EQ ( 1u , popup_blocker_tab_helper -> GetBlockedPopupsCount ( ) ) ;\n }"}
{"idx": 10661, "target": 0, "func": "static void dtap_sms_cp_data ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_TRUE ;\n ELEM_MAND_LV ( GSM_A_PDU_TYPE_DTAP , DE_CP_USER_DATA , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 10662, "target": 1, "func": "bool add_edge_h ( connection_t * c ) {\n edge_t * e ;\n node_t * from , * to ;\n char from_name [ MAX_STRING_SIZE ] ;\n char to_name [ MAX_STRING_SIZE ] ;\n char to_address [ MAX_STRING_SIZE ] ;\n char to_port [ MAX_STRING_SIZE ] ;\n sockaddr_t address ;\n uint32_t options ;\n int weight ;\n if ( sscanf ( c -> buffer , \"%*d %*x \" MAX_STRING \" \" MAX_STRING \" \" MAX_STRING \" \" MAX_STRING \" %x %d\" , from_name , to_name , to_address , to_port , & options , & weight ) != 6 ) {\n logger ( LOG_ERR , \"Got bad %s from %s (%s)\" , \"ADD_EDGE\" , c -> name , c -> hostname ) ;\n return false ;\n }\n if ( ! check_id ( from_name ) || ! check_id ( to_name ) ) {\n logger ( LOG_ERR , \"Got bad %s from %s (%s): %s\" , \"ADD_EDGE\" , c -> name , c -> hostname , \"invalid name\" ) ;\n return false ;\n }\n if ( seen_request ( c -> buffer ) ) {\n return true ;\n }\n from = lookup_node ( from_name ) ;\n to = lookup_node ( to_name ) ;\n if ( tunnelserver && from != myself && from != c -> node && to != myself && to != c -> node ) {\n ifdebug ( PROTOCOL ) logger ( LOG_WARNING , \"Ignoring indirect %s from %s (%s)\" , \"ADD_EDGE\" , c -> name , c -> hostname ) ;\n return true ;\n }\n if ( ! from ) {\n from = new_node ( ) ;\n from -> name = xstrdup ( from_name ) ;\n node_add ( from ) ;\n }\n if ( ! to ) {\n to = new_node ( ) ;\n to -> name = xstrdup ( to_name ) ;\n node_add ( to ) ;\n }\n address = str2sockaddr ( to_address , to_port ) ;\n e = lookup_edge ( from , to ) ;\n if ( e ) {\n if ( e -> weight != weight || e -> options != options || sockaddrcmp ( & e -> address , & address ) ) {\n if ( from == myself ) {\n ifdebug ( PROTOCOL ) logger ( LOG_WARNING , \"Got %s from %s (%s) for ourself which does not match existing entry\" , \"ADD_EDGE\" , c -> name , c -> hostname ) ;\n send_add_edge ( c , e ) ;\n return true ;\n }\n else {\n ifdebug ( PROTOCOL ) logger ( LOG_WARNING , \"Got %s from %s (%s) which does not match existing entry\" , \"ADD_EDGE\" , c -> name , c -> hostname ) ;\n e -> options = options ;\n if ( sockaddrcmp ( & e -> address , & address ) ) {\n sockaddrfree ( & e -> address ) ;\n e -> address = address ;\n }\n if ( e -> weight != weight ) {\n avl_node_t * node = avl_unlink ( edge_weight_tree , e ) ;\n e -> weight = weight ;\n avl_insert_node ( edge_weight_tree , node ) ;\n }\n goto done ;\n }\n }\n else {\n return true ;\n }\n }\n else if ( from == myself ) {\n ifdebug ( PROTOCOL ) logger ( LOG_WARNING , \"Got %s from %s (%s) for ourself which does not exist\" , \"ADD_EDGE\" , c -> name , c -> hostname ) ;\n contradicting_add_edge ++ ;\n e = new_edge ( ) ;\n e -> from = from ;\n e -> to = to ;\n send_del_edge ( c , e ) ;\n free_edge ( e ) ;\n return true ;\n }\n e = new_edge ( ) ;\n e -> from = from ;\n e -> to = to ;\n e -> address = address ;\n e -> options = options ;\n e -> weight = weight ;\n edge_add ( e ) ;\n done : if ( ! tunnelserver ) {\n forward_request ( c ) ;\n }\n graph ( ) ;\n return true ;\n }"}
{"idx": 10663, "target": 0, "func": "jas_image_t * jas_image_chclrspc ( jas_image_t * image , jas_cmprof_t * outprof , int intent ) {\n jas_image_t * inimage ;\n int minhstep ;\n int minvstep ;\n int i ;\n int j ;\n int k ;\n int n ;\n int hstep ;\n int vstep ;\n int numinauxchans ;\n int numoutauxchans ;\n int numinclrchans ;\n int numoutclrchans ;\n int prec ;\n jas_image_t * outimage ;\n int cmpttype ;\n int numoutchans ;\n jas_cmprof_t * inprof ;\n jas_cmprof_t * tmpprof ;\n jas_image_cmptparm_t cmptparm ;\n int width ;\n int height ;\n jas_cmxform_t * xform ;\n jas_cmpixmap_t inpixmap ;\n jas_cmpixmap_t outpixmap ;\n jas_cmcmptfmt_t * incmptfmts ;\n jas_cmcmptfmt_t * outcmptfmts ;\n # if 0 jas_eprintf ( \"IMAGE\\n\" ) ;\n jas_image_dump ( image , stderr ) ;\n # endif if ( ! ( inimage = jas_image_copy ( image ) ) ) goto error ;\n image = 0 ;\n if ( ! jas_image_ishomosamp ( inimage ) ) {\n minhstep = jas_image_cmpthstep ( inimage , 0 ) ;\n minvstep = jas_image_cmptvstep ( inimage , 0 ) ;\n for ( i = 1 ;\n i < jas_image_numcmpts ( inimage ) ;\n ++ i ) {\n hstep = jas_image_cmpthstep ( inimage , i ) ;\n vstep = jas_image_cmptvstep ( inimage , i ) ;\n if ( hstep < minhstep ) minhstep = hstep ;\n if ( vstep < minvstep ) minvstep = vstep ;\n }\n n = jas_image_numcmpts ( inimage ) ;\n for ( i = 0 ;\n i < n ;\n ++ i ) {\n cmpttype = jas_image_cmpttype ( inimage , i ) ;\n if ( jas_image_sampcmpt ( inimage , i , i + 1 , 0 , 0 , minhstep , minvstep , jas_image_cmptsgnd ( inimage , i ) , jas_image_cmptprec ( inimage , i ) ) ) goto error ;\n jas_image_setcmpttype ( inimage , i + 1 , cmpttype ) ;\n jas_image_delcmpt ( inimage , i ) ;\n }\n }\n width = jas_image_cmptwidth ( inimage , 0 ) ;\n height = jas_image_cmptheight ( inimage , 0 ) ;\n hstep = jas_image_cmpthstep ( inimage , 0 ) ;\n vstep = jas_image_cmptvstep ( inimage , 0 ) ;\n inprof = jas_image_cmprof ( inimage ) ;\n assert ( inprof ) ;\n numinclrchans = jas_clrspc_numchans ( jas_cmprof_clrspc ( inprof ) ) ;\n numinauxchans = jas_image_numcmpts ( inimage ) - numinclrchans ;\n numoutclrchans = jas_clrspc_numchans ( jas_cmprof_clrspc ( outprof ) ) ;\n numoutauxchans = 0 ;\n numoutchans = numoutclrchans + numoutauxchans ;\n prec = 8 ;\n if ( ! ( outimage = jas_image_create0 ( ) ) ) goto error ;\n for ( i = 0 ;\n i < numoutclrchans ;\n ++ i ) {\n cmptparm . tlx = 0 ;\n cmptparm . tly = 0 ;\n cmptparm . hstep = hstep ;\n cmptparm . vstep = vstep ;\n cmptparm . width = width ;\n cmptparm . height = height ;\n cmptparm . prec = prec ;\n cmptparm . sgnd = 0 ;\n if ( jas_image_addcmpt ( outimage , - 1 , & cmptparm ) ) goto error ;\n jas_image_setcmpttype ( outimage , i , JAS_IMAGE_CT_COLOR ( i ) ) ;\n }\n # if 0 for ( i = 0 ;\n i < jas_image_numcmpts ( inimage ) ;\n ++ i ) {\n if ( ! ISCOLOR ( jas_image_cmpttype ( inimage , i ) ) ) {\n jas_image_copycmpt ( outimage , - 1 , inimage , i ) ;\n }\n }\n # endif if ( ! ( tmpprof = jas_cmprof_copy ( outprof ) ) ) goto error ;\n assert ( ! jas_image_cmprof ( outimage ) ) ;\n jas_image_setcmprof ( outimage , tmpprof ) ;\n tmpprof = 0 ;\n jas_image_setclrspc ( outimage , jas_cmprof_clrspc ( outprof ) ) ;\n if ( ! ( xform = jas_cmxform_create ( inprof , outprof , 0 , JAS_CMXFORM_OP_FWD , intent , 0 ) ) ) goto error ;\n inpixmap . numcmpts = numinclrchans ;\n incmptfmts = malloc ( numinclrchans * sizeof ( jas_cmcmptfmt_t ) ) ;\n assert ( incmptfmts ) ;\n inpixmap . cmptfmts = incmptfmts ;\n for ( i = 0 ;\n i < numinclrchans ;\n ++ i ) {\n j = jas_image_getcmptbytype ( inimage , JAS_IMAGE_CT_COLOR ( i ) ) ;\n assert ( j >= 0 ) ;\n if ( ! ( incmptfmts [ i ] . buf = malloc ( width * sizeof ( long ) ) ) ) goto error ;\n incmptfmts [ i ] . prec = jas_image_cmptprec ( inimage , j ) ;\n incmptfmts [ i ] . sgnd = jas_image_cmptsgnd ( inimage , j ) ;\n incmptfmts [ i ] . width = width ;\n incmptfmts [ i ] . height = 1 ;\n }\n outpixmap . numcmpts = numoutclrchans ;\n outcmptfmts = malloc ( numoutclrchans * sizeof ( jas_cmcmptfmt_t ) ) ;\n assert ( outcmptfmts ) ;\n outpixmap . cmptfmts = outcmptfmts ;\n for ( i = 0 ;\n i < numoutclrchans ;\n ++ i ) {\n j = jas_image_getcmptbytype ( outimage , JAS_IMAGE_CT_COLOR ( i ) ) ;\n assert ( j >= 0 ) ;\n if ( ! ( outcmptfmts [ i ] . buf = malloc ( width * sizeof ( long ) ) ) ) goto error ;\n outcmptfmts [ i ] . prec = jas_image_cmptprec ( outimage , j ) ;\n outcmptfmts [ i ] . sgnd = jas_image_cmptsgnd ( outimage , j ) ;\n outcmptfmts [ i ] . width = width ;\n outcmptfmts [ i ] . height = 1 ;\n }\n for ( i = 0 ;\n i < height ;\n ++ i ) {\n for ( j = 0 ;\n j < numinclrchans ;\n ++ j ) {\n k = jas_image_getcmptbytype ( inimage , JAS_IMAGE_CT_COLOR ( j ) ) ;\n if ( jas_image_readcmpt2 ( inimage , k , 0 , i , width , 1 , incmptfmts [ j ] . buf ) ) goto error ;\n }\n jas_cmxform_apply ( xform , & inpixmap , & outpixmap ) ;\n for ( j = 0 ;\n j < numoutclrchans ;\n ++ j ) {\n k = jas_image_getcmptbytype ( outimage , JAS_IMAGE_CT_COLOR ( j ) ) ;\n if ( jas_image_writecmpt2 ( outimage , k , 0 , i , width , 1 , outcmptfmts [ j ] . buf ) ) goto error ;\n }\n }\n for ( i = 0 ;\n i < numoutclrchans ;\n ++ i ) jas_free ( outcmptfmts [ i ] . buf ) ;\n jas_free ( outcmptfmts ) ;\n for ( i = 0 ;\n i < numinclrchans ;\n ++ i ) jas_free ( incmptfmts [ i ] . buf ) ;\n jas_free ( incmptfmts ) ;\n jas_cmxform_destroy ( xform ) ;\n jas_image_destroy ( inimage ) ;\n # if 0 jas_eprintf ( \"INIMAGE\\n\" ) ;\n jas_image_dump ( inimage , stderr ) ;\n jas_eprintf ( \"OUTIMAGE\\n\" ) ;\n jas_image_dump ( outimage , stderr ) ;\n # endif return outimage ;\n error : return 0 ;\n }"}
{"idx": 10664, "target": 0, "func": "void fz_clamp_color ( fz_context * ctx , const fz_colorspace * cs , const float * in , float * out ) {\n cs -> clamp ( cs , in , out ) ;\n }"}
{"idx": 10665, "target": 0, "func": "static int dissect_h225_Alerting_UUIE ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 507 \"./asn1/h225/h225.cnf\" h225_packet_info * h225_pi ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_Alerting_UUIE , Alerting_UUIE_sequence ) ;\n # line 511 \"./asn1/h225/h225.cnf\" h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> cs_type = H225_ALERTING ;\n if ( contains_faststart ) {\n char temp [ 50 ] ;\n g_snprintf ( temp , 50 , \"%s OLC (%s)\" , val_to_str ( h225_pi -> cs_type , T_h323_message_body_vals , \"<unknown>\" ) , h225_pi -> frame_label ) ;\n g_strlcpy ( h225_pi -> frame_label , temp , 50 ) ;\n }\n else g_snprintf ( h225_pi -> frame_label , 50 , \"%s\" , val_to_str ( h225_pi -> cs_type , T_h323_message_body_vals , \"<unknown>\" ) ) ;\n }\n return offset ;\n }"}
{"idx": 10666, "target": 0, "func": "static int mss1_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n MSS1Context * ctx = avctx -> priv_data ;\n MSS12Context * c = & ctx -> ctx ;\n GetBitContext gb ;\n ArithCoder acoder ;\n int pal_changed = 0 ;\n int ret ;\n init_get_bits ( & gb , buf , buf_size * 8 ) ;\n arith_init ( & acoder , & gb ) ;\n if ( ( ret = ff_reget_buffer ( avctx , & ctx -> pic ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n c -> pal_pic = ctx -> pic . data [ 0 ] + ctx -> pic . linesize [ 0 ] * ( avctx -> height - 1 ) ;\n c -> pal_stride = - ctx -> pic . linesize [ 0 ] ;\n c -> keyframe = ! arith_get_bit ( & acoder ) ;\n if ( c -> keyframe ) {\n c -> corrupted = 0 ;\n ff_mss12_slicecontext_reset ( & ctx -> sc ) ;\n pal_changed = decode_pal ( c , & acoder ) ;\n ctx -> pic . key_frame = 1 ;\n ctx -> pic . pict_type = AV_PICTURE_TYPE_I ;\n }\n else {\n if ( c -> corrupted ) return AVERROR_INVALIDDATA ;\n ctx -> pic . key_frame = 0 ;\n ctx -> pic . pict_type = AV_PICTURE_TYPE_P ;\n }\n c -> corrupted = ff_mss12_decode_rect ( & ctx -> sc , & acoder , 0 , 0 , avctx -> width , avctx -> height ) ;\n if ( c -> corrupted ) return AVERROR_INVALIDDATA ;\n memcpy ( ctx -> pic . data [ 1 ] , c -> pal , AVPALETTE_SIZE ) ;\n ctx -> pic . palette_has_changed = pal_changed ;\n if ( ( ret = av_frame_ref ( data , & ctx -> pic ) ) < 0 ) return ret ;\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 10667, "target": 0, "func": "static inline void add_to_write_order ( struct object_entry * * wo , unsigned int * endp , struct object_entry * e ) {\n if ( e -> filled ) return ;\n wo [ ( * endp ) ++ ] = e ;\n e -> filled = 1 ;\n }"}
{"idx": 10668, "target": 0, "func": "static PyObject * string_splitlines ( PyStringObject * self , PyObject * args ) {\n int keepends = 0 ;\n if ( ! PyArg_ParseTuple ( args , \"|i:splitlines\" , & keepends ) ) return NULL ;\n return stringlib_splitlines ( ( PyObject * ) self , PyString_AS_STRING ( self ) , PyString_GET_SIZE ( self ) , keepends ) ;\n }"}
{"idx": 10669, "target": 0, "func": "static int svq3_decode_end ( AVCodecContext * avctx ) {\n SVQ3Context * s = avctx -> priv_data ;\n H264Context * h = & s -> h ;\n free_picture ( avctx , s -> cur_pic ) ;\n free_picture ( avctx , s -> next_pic ) ;\n free_picture ( avctx , s -> last_pic ) ;\n av_freep ( & s -> cur_pic ) ;\n av_freep ( & s -> next_pic ) ;\n av_freep ( & s -> last_pic ) ;\n av_frame_unref ( & h -> cur_pic . f ) ;\n ff_h264_free_context ( h ) ;\n return 0 ;\n }"}
{"idx": 10670, "target": 0, "func": "static gint rtmpt_basic_header_length ( gint id ) {\n switch ( id & 0x3f ) {\n case 0 : return 2 ;\n case 1 : return 3 ;\n default : return 1 ;\n }\n }"}
{"idx": 10671, "target": 1, "func": "static uint32_t offsetTOCEntryCount ( const UDataMemory * pData ) {\n int32_t retVal = 0 ;\n const UDataOffsetTOC * toc = ( UDataOffsetTOC * ) pData -> toc ;\n if ( toc != NULL ) {\n retVal = toc -> count ;\n }\n return retVal ;\n }"}
{"idx": 10672, "target": 0, "func": "static uint64_t openpic_msi_read ( void * opaque , hwaddr addr , unsigned size ) {\n OpenPICState * opp = opaque ;\n uint64_t r = 0 ;\n int i , srs ;\n DPRINTF ( \"%s: addr %#\" HWADDR_PRIx \"\\n\" , __func__ , addr ) ;\n if ( addr & 0xF ) {\n return - 1 ;\n }\n srs = addr >> 4 ;\n switch ( addr ) {\n case 0x00 : case 0x10 : case 0x20 : case 0x30 : case 0x40 : case 0x50 : case 0x60 : case 0x70 : r = opp -> msi [ srs ] . msir ;\n opp -> msi [ srs ] . msir = 0 ;\n openpic_set_irq ( opp , opp -> irq_msi + srs , 0 ) ;\n break ;\n case 0x120 : for ( i = 0 ;\n i < MAX_MSI ;\n i ++ ) {\n r |= ( opp -> msi [ i ] . msir ? 1 : 0 ) << i ;\n }\n break ;\n }\n return r ;\n }"}
{"idx": 10673, "target": 0, "func": "static struct isoent * isoent_find_child ( struct isoent * isoent , const char * child_name ) {\n struct isoent * np ;\n np = ( struct isoent * ) __archive_rb_tree_find_node ( & ( isoent -> rbtree ) , child_name ) ;\n return ( np ) ;\n }"}
{"idx": 10674, "target": 0, "func": "static void qio_channel_websock_finalize ( Object * obj ) {\n QIOChannelWebsock * ioc = QIO_CHANNEL_WEBSOCK ( obj ) ;\n buffer_free ( & ioc -> encinput ) ;\n buffer_free ( & ioc -> encoutput ) ;\n buffer_free ( & ioc -> rawinput ) ;\n buffer_free ( & ioc -> rawoutput ) ;\n buffer_free ( & ioc -> ping_reply ) ;\n object_unref ( OBJECT ( ioc -> master ) ) ;\n if ( ioc -> io_tag ) {\n g_source_remove ( ioc -> io_tag ) ;\n }\n if ( ioc -> io_err ) {\n error_free ( ioc -> io_err ) ;\n }\n }"}
{"idx": 10675, "target": 0, "func": "bool cpu_restore_state ( CPUArchState * env , uintptr_t retaddr ) {\n TranslationBlock * tb ;\n tb = tb_find_pc ( retaddr ) ;\n if ( tb ) {\n cpu_restore_state_from_tb ( tb , env , retaddr ) ;\n return true ;\n }\n return false ;\n }"}
{"idx": 10676, "target": 0, "func": "static enum AVPixelFormat get_chroma_format ( SchroChromaFormat schro_pix_fmt ) {\n int num_formats = sizeof ( schro_pixel_format_map ) / sizeof ( schro_pixel_format_map [ 0 ] ) ;\n int idx ;\n for ( idx = 0 ;\n idx < num_formats ;\n ++ idx ) if ( schro_pixel_format_map [ idx ] . schro_pix_fmt == schro_pix_fmt ) return schro_pixel_format_map [ idx ] . ff_pix_fmt ;\n return AV_PIX_FMT_NONE ;\n }"}
{"idx": 10677, "target": 0, "func": "static long string_hash ( PyStringObject * a ) {\n register Py_ssize_t len ;\n register unsigned char * p ;\n register long x ;\n # ifdef Py_DEBUG assert ( _Py_HashSecret_Initialized ) ;\n # endif if ( a -> ob_shash != - 1 ) return a -> ob_shash ;\n len = Py_SIZE ( a ) ;\n if ( len == 0 ) {\n a -> ob_shash = 0 ;\n return 0 ;\n }\n p = ( unsigned char * ) a -> ob_sval ;\n x = _Py_HashSecret . prefix ;\n x ^= * p << 7 ;\n while ( -- len >= 0 ) x = ( 1000003 * x ) ^ * p ++ ;\n x ^= Py_SIZE ( a ) ;\n x ^= _Py_HashSecret . suffix ;\n if ( x == - 1 ) x = - 2 ;\n a -> ob_shash = x ;\n return x ;\n }"}
{"idx": 10678, "target": 0, "func": "static void stroke_reread ( private_stroke_socket_t * this , stroke_msg_t * msg , FILE * out ) {\n this -> cred -> reread ( this -> cred , msg , out ) ;\n }"}
{"idx": 10679, "target": 0, "func": "static void sprintf_hexa ( char * s , uint8_t * p_data , int i_data ) {\n static const char hex [ 16 ] = \"0123456789abcdef\" ;\n for ( int i = 0 ;\n i < i_data ;\n i ++ ) {\n s [ 2 * i + 0 ] = hex [ ( p_data [ i ] >> 4 ) & 0xf ] ;\n s [ 2 * i + 1 ] = hex [ ( p_data [ i ] ) & 0xf ] ;\n }\n s [ 2 * i_data ] = '\\0' ;\n }"}
{"idx": 10680, "target": 1, "func": "static void update_frames ( AVCodecContext * avctx ) {\n Vp3DecodeContext * s = avctx -> priv_data ;\n if ( s -> last_frame . data [ 0 ] && s -> last_frame . type != FF_BUFFER_TYPE_COPY ) ff_thread_release_buffer ( avctx , & s -> last_frame ) ;\n s -> last_frame = s -> current_frame ;\n if ( s -> keyframe ) {\n if ( s -> golden_frame . data [ 0 ] ) ff_thread_release_buffer ( avctx , & s -> golden_frame ) ;\n s -> golden_frame = s -> current_frame ;\n s -> last_frame . type = FF_BUFFER_TYPE_COPY ;\n }\n s -> current_frame . data [ 0 ] = NULL ;\n }"}
{"idx": 10681, "target": 0, "func": "int mime_field_presence_get ( MIMEHdrImpl * h , const char * well_known_str ) {\n uint64_t mask = mime_field_presence_mask ( well_known_str ) ;\n return ( ( mask == 0 ) ? 1 : ( ( h -> m_presence_bits & mask ) == 0 ? 0 : 1 ) ) ;\n }"}
{"idx": 10682, "target": 0, "func": "static int init_block_mapping ( Vp3DecodeContext * s ) {\n int sb_x , sb_y , plane ;\n int x , y , i , j = 0 ;\n for ( plane = 0 ;\n plane < 3 ;\n plane ++ ) {\n int sb_width = plane ? s -> c_superblock_width : s -> y_superblock_width ;\n int sb_height = plane ? s -> c_superblock_height : s -> y_superblock_height ;\n int frag_width = s -> fragment_width [ ! ! plane ] ;\n int frag_height = s -> fragment_height [ ! ! plane ] ;\n for ( sb_y = 0 ;\n sb_y < sb_height ;\n sb_y ++ ) for ( sb_x = 0 ;\n sb_x < sb_width ;\n sb_x ++ ) for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n x = 4 * sb_x + hilbert_offset [ i ] [ 0 ] ;\n y = 4 * sb_y + hilbert_offset [ i ] [ 1 ] ;\n if ( x < frag_width && y < frag_height ) s -> superblock_fragments [ j ++ ] = s -> fragment_start [ plane ] + y * frag_width + x ;\n else s -> superblock_fragments [ j ++ ] = - 1 ;\n }\n }\n return 0 ;\n }"}
{"idx": 10683, "target": 0, "func": "static gcry_err_code_t dummy_sign ( int algorithm , gcry_mpi_t * resarr , gcry_mpi_t data , gcry_mpi_t * skey , int flags , int hashalgo ) {\n ( void ) algorithm ;\n ( void ) resarr ;\n ( void ) data ;\n ( void ) skey ;\n ( void ) flags ;\n ( void ) hashalgo ;\n fips_signal_error ( \"using dummy public key function\" ) ;\n return GPG_ERR_NOT_IMPLEMENTED ;\n }"}
{"idx": 10684, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames )"}
{"idx": 10685, "target": 0, "func": "static void pmac_ide_writew ( void * opaque , hwaddr addr , uint32_t val ) {\n MACIOIDEState * d = opaque ;\n addr = ( addr & 0xFFF ) >> 4 ;\n val = bswap16 ( val ) ;\n if ( addr == 0 ) {\n ide_data_writew ( & d -> bus , 0 , val ) ;\n }\n }"}
{"idx": 10686, "target": 0, "func": "void vp9_build_inter_predictor ( const uint8_t * src , int src_stride , uint8_t * dst , int dst_stride , const MV * src_mv , const struct scale_factors * sf , int w , int h , int ref , const InterpKernel * kernel , enum mv_precision precision , int x , int y ) {\n const int is_q4 = precision == MV_PRECISION_Q4 ;\n const MV mv_q4 = {\n is_q4 ? src_mv -> row : src_mv -> row * 2 , is_q4 ? src_mv -> col : src_mv -> col * 2 }\n ;\n MV32 mv = vp9_scale_mv ( & mv_q4 , x , y , sf ) ;\n const int subpel_x = mv . col & SUBPEL_MASK ;\n const int subpel_y = mv . row & SUBPEL_MASK ;\n src += ( mv . row >> SUBPEL_BITS ) * src_stride + ( mv . col >> SUBPEL_BITS ) ;\n inter_predictor ( src , src_stride , dst , dst_stride , subpel_x , subpel_y , sf , w , h , ref , kernel , sf -> x_step_q4 , sf -> y_step_q4 ) ;\n }"}
{"idx": 10687, "target": 0, "func": "void evhttp_response_code ( struct evhttp_request * req , int code , const char * reason ) {\n req -> kind = EVHTTP_RESPONSE ;\n req -> response_code = code ;\n if ( req -> response_code_line != NULL ) free ( req -> response_code_line ) ;\n req -> response_code_line = strdup ( reason ) ;\n }"}
{"idx": 10688, "target": 0, "func": "static int selinux_inode_link ( struct dentry * old_dentry , struct inode * dir , struct dentry * new_dentry ) {\n return may_link ( dir , old_dentry , MAY_LINK ) ;\n }"}
{"idx": 10689, "target": 0, "func": "static void y4m_convert_411_420jpeg ( y4m_input * _y4m , unsigned char * _dst , unsigned char * _aux ) {\n unsigned char * tmp ;\n int c_w ;\n int c_h ;\n int c_sz ;\n int dst_c_w ;\n int dst_c_h ;\n int dst_c_sz ;\n int tmp_sz ;\n int pli ;\n int y ;\n int x ;\n _dst += _y4m -> pic_w * _y4m -> pic_h ;\n c_w = ( _y4m -> pic_w + _y4m -> src_c_dec_h - 1 ) / _y4m -> src_c_dec_h ;\n c_h = _y4m -> pic_h ;\n dst_c_w = ( _y4m -> pic_w + _y4m -> dst_c_dec_h - 1 ) / _y4m -> dst_c_dec_h ;\n dst_c_h = ( _y4m -> pic_h + _y4m -> dst_c_dec_v - 1 ) / _y4m -> dst_c_dec_v ;\n c_sz = c_w * c_h ;\n dst_c_sz = dst_c_w * dst_c_h ;\n tmp_sz = dst_c_w * c_h ;\n tmp = _aux + 2 * c_sz ;\n for ( pli = 1 ;\n pli < 3 ;\n pli ++ ) {\n for ( y = 0 ;\n y < c_h ;\n y ++ ) {\n for ( x = 0 ;\n x < OC_MINI ( c_w , 1 ) ;\n x ++ ) {\n tmp [ x << 1 ] = ( unsigned char ) OC_CLAMPI ( 0 , ( 111 * _aux [ 0 ] + 18 * _aux [ OC_MINI ( 1 , c_w - 1 ) ] - _aux [ OC_MINI ( 2 , c_w - 1 ) ] + 64 ) >> 7 , 255 ) ;\n tmp [ x << 1 | 1 ] = ( unsigned char ) OC_CLAMPI ( 0 , ( 47 * _aux [ 0 ] + 86 * _aux [ OC_MINI ( 1 , c_w - 1 ) ] - 5 * _aux [ OC_MINI ( 2 , c_w - 1 ) ] + 64 ) >> 7 , 255 ) ;\n }\n for ( ;\n x < c_w - 2 ;\n x ++ ) {\n tmp [ x << 1 ] = ( unsigned char ) OC_CLAMPI ( 0 , ( _aux [ x - 1 ] + 110 * _aux [ x ] + 18 * _aux [ x + 1 ] - _aux [ x + 2 ] + 64 ) >> 7 , 255 ) ;\n tmp [ x << 1 | 1 ] = ( unsigned char ) OC_CLAMPI ( 0 , ( - 3 * _aux [ x - 1 ] + 50 * _aux [ x ] + 86 * _aux [ x + 1 ] - 5 * _aux [ x + 2 ] + 64 ) >> 7 , 255 ) ;\n }\n for ( ;\n x < c_w ;\n x ++ ) {\n tmp [ x << 1 ] = ( unsigned char ) OC_CLAMPI ( 0 , ( _aux [ x - 1 ] + 110 * _aux [ x ] + 18 * _aux [ OC_MINI ( x + 1 , c_w - 1 ) ] - _aux [ c_w - 1 ] + 64 ) >> 7 , 255 ) ;\n if ( ( x << 1 | 1 ) < dst_c_w ) {\n tmp [ x << 1 | 1 ] = ( unsigned char ) OC_CLAMPI ( 0 , ( - 3 * _aux [ x - 1 ] + 50 * _aux [ x ] + 86 * _aux [ OC_MINI ( x + 1 , c_w - 1 ) ] - 5 * _aux [ c_w - 1 ] + 64 ) >> 7 , 255 ) ;\n }\n }\n tmp += dst_c_w ;\n _aux += c_w ;\n }\n tmp -= tmp_sz ;\n y4m_422jpeg_420jpeg_helper ( _dst , tmp , dst_c_w , c_h ) ;\n _dst += dst_c_sz ;\n }\n }"}
{"idx": 10690, "target": 0, "func": "int qemuMonitorTextGetMemoryStats ( qemuMonitorPtr mon , virDomainMemoryStatPtr stats , unsigned int nr_stats ) {\n char * reply = NULL ;\n int ret = 0 ;\n char * offset ;\n if ( qemuMonitorHMPCommand ( mon , \"info balloon\" , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , _ ( \"could not query memory balloon statistics\" ) ) ;\n return - 1 ;\n }\n if ( ( offset = strstr ( reply , BALLOON_PREFIX ) ) != NULL ) {\n offset += strlen ( BALLOON_PREFIX ) ;\n ret = qemuMonitorParseBalloonInfo ( offset , stats , nr_stats ) ;\n }\n VIR_FREE ( reply ) ;\n return ret ;\n }"}
{"idx": 10691, "target": 0, "func": "void vp8_subtract_b_c ( BLOCK * be , BLOCKD * bd , int pitch ) {\n unsigned char * src_ptr = ( * ( be -> base_src ) + be -> src ) ;\n short * diff_ptr = be -> src_diff ;\n unsigned char * pred_ptr = bd -> predictor ;\n int src_stride = be -> src_stride ;\n int r , c ;\n for ( r = 0 ;\n r < 4 ;\n r ++ ) {\n for ( c = 0 ;\n c < 4 ;\n c ++ ) {\n diff_ptr [ c ] = src_ptr [ c ] - pred_ptr [ c ] ;\n }\n diff_ptr += pitch ;\n pred_ptr += pitch ;\n src_ptr += src_stride ;\n }\n }"}
{"idx": 10692, "target": 1, "func": "void min_heap_dtor ( min_heap_t * s ) {\n free ( s -> p ) ;\n }"}
{"idx": 10693, "target": 0, "func": "static void virtio_balloon_to_target ( void * opaque , ram_addr_t target ) {\n VirtIOBalloon * dev = opaque ;\n if ( target > ram_size ) {\n target = ram_size ;\n }\n if ( target ) {\n dev -> num_pages = ( ram_size - target ) >> VIRTIO_BALLOON_PFN_SHIFT ;\n virtio_notify_config ( & dev -> vdev ) ;\n }\n }"}
{"idx": 10694, "target": 0, "func": "int ff_h264_decode_extradata ( H264Context * h , const uint8_t * buf , int size ) {\n AVCodecContext * avctx = h -> avctx ;\n int ret ;\n if ( ! buf || size <= 0 ) return - 1 ;\n if ( buf [ 0 ] == 1 ) {\n int i , cnt , nalsize ;\n const unsigned char * p = buf ;\n h -> is_avc = 1 ;\n if ( size < 7 ) {\n av_log ( avctx , AV_LOG_ERROR , \"avcC too short\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n h -> nal_length_size = 2 ;\n cnt = * ( p + 5 ) & 0x1f ;\n p += 6 ;\n for ( i = 0 ;\n i < cnt ;\n i ++ ) {\n nalsize = AV_RB16 ( p ) + 2 ;\n if ( nalsize > size - ( p - buf ) ) return AVERROR_INVALIDDATA ;\n ret = decode_nal_units ( h , p , nalsize , 1 ) ;\n if ( ret < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Decoding sps %d from avcC failed\\n\" , i ) ;\n return ret ;\n }\n p += nalsize ;\n }\n cnt = * ( p ++ ) ;\n for ( i = 0 ;\n i < cnt ;\n i ++ ) {\n nalsize = AV_RB16 ( p ) + 2 ;\n if ( nalsize > size - ( p - buf ) ) return AVERROR_INVALIDDATA ;\n ret = decode_nal_units ( h , p , nalsize , 1 ) ;\n if ( ret < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Decoding pps %d from avcC failed\\n\" , i ) ;\n return ret ;\n }\n p += nalsize ;\n }\n h -> nal_length_size = ( buf [ 4 ] & 0x03 ) + 1 ;\n }\n else {\n h -> is_avc = 0 ;\n ret = decode_nal_units ( h , buf , size , 1 ) ;\n if ( ret < 0 ) return ret ;\n }\n return size ;\n }"}
{"idx": 10695, "target": 0, "func": "extern rtype gnu_dev_ ## name proto __THROW __attribute_const__ ;\n # define __SYSMACROS_IMPL_TEMPL ( rtype , name , proto ) __extension__ __extern_inline __attribute_const__ rtype __NTH ( gnu_dev_ ## name proto ) __BEGIN_DECLS __SYSMACROS_DECLARE_MAJOR ( __SYSMACROS_DECL_TEMPL )"}
{"idx": 10696, "target": 0, "func": "static int dca_parse_audio_coding_header ( DCAContext * s , int base_channel ) {\n int i , j ;\n static const float adj_table [ 4 ] = {\n 1.0 , 1.1250 , 1.2500 , 1.4375 }\n ;\n static const int bitlen [ 11 ] = {\n 0 , 1 , 2 , 2 , 2 , 2 , 3 , 3 , 3 , 3 , 3 }\n ;\n static const int thr [ 11 ] = {\n 0 , 1 , 3 , 3 , 3 , 3 , 7 , 7 , 7 , 7 , 7 }\n ;\n s -> total_channels = get_bits ( & s -> gb , 3 ) + 1 + base_channel ;\n s -> prim_channels = s -> total_channels ;\n if ( s -> prim_channels > DCA_PRIM_CHANNELS_MAX ) s -> prim_channels = DCA_PRIM_CHANNELS_MAX ;\n for ( i = base_channel ;\n i < s -> prim_channels ;\n i ++ ) {\n s -> subband_activity [ i ] = get_bits ( & s -> gb , 5 ) + 2 ;\n if ( s -> subband_activity [ i ] > DCA_SUBBANDS ) s -> subband_activity [ i ] = DCA_SUBBANDS ;\n }\n for ( i = base_channel ;\n i < s -> prim_channels ;\n i ++ ) {\n s -> vq_start_subband [ i ] = get_bits ( & s -> gb , 5 ) + 1 ;\n if ( s -> vq_start_subband [ i ] > DCA_SUBBANDS ) s -> vq_start_subband [ i ] = DCA_SUBBANDS ;\n }\n get_array ( & s -> gb , s -> joint_intensity + base_channel , s -> prim_channels - base_channel , 3 ) ;\n get_array ( & s -> gb , s -> transient_huffman + base_channel , s -> prim_channels - base_channel , 2 ) ;\n get_array ( & s -> gb , s -> scalefactor_huffman + base_channel , s -> prim_channels - base_channel , 3 ) ;\n get_array ( & s -> gb , s -> bitalloc_huffman + base_channel , s -> prim_channels - base_channel , 3 ) ;\n if ( ! base_channel ) memset ( s -> quant_index_huffman , 0 , sizeof ( s -> quant_index_huffman ) ) ;\n for ( j = 1 ;\n j < 11 ;\n j ++ ) for ( i = base_channel ;\n i < s -> prim_channels ;\n i ++ ) s -> quant_index_huffman [ i ] [ j ] = get_bits ( & s -> gb , bitlen [ j ] ) ;\n for ( j = 0 ;\n j < 11 ;\n j ++ ) for ( i = base_channel ;\n i < s -> prim_channels ;\n i ++ ) s -> scalefactor_adj [ i ] [ j ] = 1 ;\n for ( j = 1 ;\n j < 11 ;\n j ++ ) for ( i = base_channel ;\n i < s -> prim_channels ;\n i ++ ) if ( s -> quant_index_huffman [ i ] [ j ] < thr [ j ] ) s -> scalefactor_adj [ i ] [ j ] = adj_table [ get_bits ( & s -> gb , 2 ) ] ;\n if ( s -> crc_present ) {\n get_bits ( & s -> gb , 16 ) ;\n }\n s -> current_subframe = 0 ;\n s -> current_subsubframe = 0 ;\n # ifdef TRACE av_log ( s -> avctx , AV_LOG_DEBUG , \"subframes: %i\\n\" , s -> subframes ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"prim channels: %i\\n\" , s -> prim_channels ) ;\n for ( i = base_channel ;\n i < s -> prim_channels ;\n i ++ ) {\n av_log ( s -> avctx , AV_LOG_DEBUG , \"subband activity: %i\\n\" , s -> subband_activity [ i ] ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"vq start subband: %i\\n\" , s -> vq_start_subband [ i ] ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"joint intensity: %i\\n\" , s -> joint_intensity [ i ] ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"transient mode codebook: %i\\n\" , s -> transient_huffman [ i ] ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"scale factor codebook: %i\\n\" , s -> scalefactor_huffman [ i ] ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"bit allocation quantizer: %i\\n\" , s -> bitalloc_huffman [ i ] ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"quant index huff:\" ) ;\n for ( j = 0 ;\n j < 11 ;\n j ++ ) av_log ( s -> avctx , AV_LOG_DEBUG , \" %i\" , s -> quant_index_huffman [ i ] [ j ] ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"\\n\" ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"scalefac adj:\" ) ;\n for ( j = 0 ;\n j < 11 ;\n j ++ ) av_log ( s -> avctx , AV_LOG_DEBUG , \" %1.3f\" , s -> scalefactor_adj [ i ] [ j ] ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"\\n\" ) ;\n }\n # endif return 0 ;\n }"}
{"idx": 10697, "target": 0, "func": "unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 ) VAR ( 8 , 4 ) SUBPIX_VAR ( 8 , 4 ) SUBPIX_AVG_VAR ( 8 , 4 ) VAR ( 8 , 8 ) SUBPIX_VAR ( 8 , 8 ) SUBPIX_AVG_VAR ( 8 , 8 ) VAR ( 8 , 16 ) SUBPIX_VAR ( 8 , 16 ) SUBPIX_AVG_VAR ( 8 , 16 ) VAR ( 16 , 8 ) SUBPIX_VAR ( 16 , 8 ) SUBPIX_AVG_VAR ( 16 , 8 ) VAR ( 16 , 16 ) SUBPIX_VAR ( 16 , 16 ) SUBPIX_AVG_VAR ( 16 , 16 ) VAR ( 16 , 32 ) SUBPIX_VAR ( 16 , 32 ) SUBPIX_AVG_VAR ( 16 , 32 ) VAR ( 32 , 16 ) SUBPIX_VAR ( 32 , 16 ) SUBPIX_AVG_VAR ( 32 , 16 ) VAR ( 32 , 32 ) SUBPIX_VAR ( 32 , 32 ) SUBPIX_AVG_VAR ( 32 , 32 ) VAR ( 32 , 64 ) SUBPIX_VAR ( 32 , 64 ) SUBPIX_AVG_VAR ( 32 , 64 ) VAR ( 64 , 32 ) SUBPIX_VAR ( 64 , 32 ) SUBPIX_AVG_VAR ( 64 , 32 )"}
{"idx": 10698, "target": 0, "func": "static int check_reqid ( struct xfrm_policy * xp , int dir , int count , void * ptr ) {\n int i ;\n u32 reqid = * ( u32 * ) ptr ;\n for ( i = 0 ;\n i < xp -> xfrm_nr ;\n i ++ ) {\n if ( xp -> xfrm_vec [ i ] . reqid == reqid ) return - EEXIST ;\n }\n return 0 ;\n }"}
{"idx": 10699, "target": 0, "func": "static void cl_block ( GifCtx * ctx ) {\n cl_hash ( ( count_int ) hsize , ctx ) ;\n ctx -> free_ent = ctx -> ClearCode + 2 ;\n ctx -> clear_flg = 1 ;\n output ( ( code_int ) ctx -> ClearCode , ctx ) ;\n }"}
{"idx": 10700, "target": 0, "func": "static int chk_index ( MI_CHECK * param , MI_INFO * info , MI_KEYDEF * keyinfo , my_off_t page , uchar * buff , ha_rows * keys , ha_checksum * key_checksum , uint level ) {\n int flag ;\n uint used_length , comp_flag , nod_flag , key_length = 0 ;\n uchar key [ HA_MAX_POSSIBLE_KEY_BUFF ] , * temp_buff , * keypos , * old_keypos , * endpos ;\n my_off_t next_page , record ;\n char llbuff [ 22 ] ;\n uint diff_pos [ 2 ] ;\n DBUG_ENTER ( \"chk_index\" ) ;\n DBUG_DUMP ( \"buff\" , ( uchar * ) buff , mi_getint ( buff ) ) ;\n if ( keyinfo -> flag & HA_SPATIAL ) DBUG_RETURN ( 0 ) ;\n if ( ! ( temp_buff = ( uchar * ) my_alloca ( ( uint ) keyinfo -> block_length ) ) ) {\n mi_check_print_error ( param , \"Not enough memory for keyblock\" ) ;\n DBUG_RETURN ( - 1 ) ;\n }\n if ( keyinfo -> flag & HA_NOSAME ) comp_flag = SEARCH_FIND | SEARCH_UPDATE ;\n else comp_flag = SEARCH_SAME ;\n nod_flag = mi_test_if_nod ( buff ) ;\n used_length = mi_getint ( buff ) ;\n keypos = buff + 2 + nod_flag ;\n endpos = buff + used_length ;\n param -> keydata += used_length ;\n param -> totaldata += keyinfo -> block_length ;\n param -> key_blocks ++ ;\n if ( level > param -> max_level ) param -> max_level = level ;\n if ( used_length > keyinfo -> block_length ) {\n mi_check_print_error ( param , \"Wrong pageinfo at page: %s\" , llstr ( page , llbuff ) ) ;\n goto err ;\n }\n for ( ;\n ;\n ) {\n if ( * killed_ptr ( param ) ) goto err ;\n memcpy ( ( char * ) info -> lastkey , ( char * ) key , key_length ) ;\n info -> lastkey_length = key_length ;\n if ( nod_flag ) {\n next_page = _mi_kpos ( nod_flag , keypos ) ;\n if ( chk_index_down ( param , info , keyinfo , next_page , temp_buff , keys , key_checksum , level + 1 ) ) goto err ;\n }\n old_keypos = keypos ;\n if ( keypos >= endpos || ( key_length = ( * keyinfo -> get_key ) ( keyinfo , nod_flag , & keypos , key ) ) == 0 ) break ;\n if ( keypos > endpos ) {\n mi_check_print_error ( param , \"Wrong key block length at page: %s\" , llstr ( page , llbuff ) ) ;\n goto err ;\n }\n if ( ( * keys ) ++ && ( flag = ha_key_cmp ( keyinfo -> seg , info -> lastkey , key , key_length , comp_flag , diff_pos ) ) >= 0 ) {\n DBUG_DUMP ( \"old\" , ( uchar * ) info -> lastkey , info -> lastkey_length ) ;\n DBUG_DUMP ( \"new\" , ( uchar * ) key , key_length ) ;\n DBUG_DUMP ( \"new_in_page\" , ( uchar * ) old_keypos , ( uint ) ( keypos - old_keypos ) ) ;\n if ( comp_flag & SEARCH_FIND && flag == 0 ) mi_check_print_error ( param , \"Found duplicated key at page %s\" , llstr ( page , llbuff ) ) ;\n else mi_check_print_error ( param , \"Key in wrong position at page %s\" , llstr ( page , llbuff ) ) ;\n goto err ;\n }\n if ( param -> testflag & T_STATISTICS ) {\n if ( * keys != 1L ) {\n if ( param -> stats_method == MI_STATS_METHOD_NULLS_NOT_EQUAL ) ha_key_cmp ( keyinfo -> seg , info -> lastkey , key , USE_WHOLE_KEY , SEARCH_FIND | SEARCH_NULL_ARE_NOT_EQUAL , diff_pos ) ;\n else if ( param -> stats_method == MI_STATS_METHOD_IGNORE_NULLS ) {\n diff_pos [ 0 ] = mi_collect_stats_nonulls_next ( keyinfo -> seg , param -> notnull_count , info -> lastkey , key ) ;\n }\n param -> unique_count [ diff_pos [ 0 ] - 1 ] ++ ;\n }\n else {\n if ( param -> stats_method == MI_STATS_METHOD_IGNORE_NULLS ) mi_collect_stats_nonulls_first ( keyinfo -> seg , param -> notnull_count , key ) ;\n }\n }\n ( * key_checksum ) += mi_byte_checksum ( ( uchar * ) key , key_length - info -> s -> rec_reflength ) ;\n record = _mi_dpos ( info , 0 , key + key_length ) ;\n if ( keyinfo -> flag & HA_FULLTEXT ) {\n uint off ;\n int subkeys ;\n get_key_full_length_rdonly ( off , key ) ;\n subkeys = ft_sintXkorr ( key + off ) ;\n if ( subkeys < 0 ) {\n ha_rows tmp_keys = 0 ;\n if ( chk_index_down ( param , info , & info -> s -> ft2_keyinfo , record , temp_buff , & tmp_keys , key_checksum , 1 ) ) goto err ;\n if ( tmp_keys + subkeys ) {\n mi_check_print_error ( param , \"Number of words in the 2nd level tree \" \"does not match the number in the header. \" \"Parent word in on the page %s, offset %u\" , llstr ( page , llbuff ) , ( uint ) ( old_keypos - buff ) ) ;\n goto err ;\n }\n ( * keys ) += tmp_keys - 1 ;\n continue ;\n }\n }\n if ( record >= info -> state -> data_file_length ) {\n # ifndef DBUG_OFF char llbuff2 [ 22 ] , llbuff3 [ 22 ] ;\n # endif mi_check_print_error ( param , \"Found key at page %s that points to record outside datafile\" , llstr ( page , llbuff ) ) ;\n DBUG_PRINT ( \"test\" , ( \"page: %s record: %s filelength: %s\" , llstr ( page , llbuff ) , llstr ( record , llbuff2 ) , llstr ( info -> state -> data_file_length , llbuff3 ) ) ) ;\n DBUG_DUMP ( \"key\" , ( uchar * ) key , key_length ) ;\n DBUG_DUMP ( \"new_in_page\" , ( uchar * ) old_keypos , ( uint ) ( keypos - old_keypos ) ) ;\n goto err ;\n }\n param -> record_checksum += ( ha_checksum ) record ;\n }\n if ( keypos != endpos ) {\n mi_check_print_error ( param , \"Keyblock size at page %s is not correct. Block length: %d key length: %d\" , llstr ( page , llbuff ) , used_length , ( keypos - buff ) ) ;\n goto err ;\n }\n my_afree ( ( uchar * ) temp_buff ) ;\n DBUG_RETURN ( 0 ) ;\n err : my_afree ( ( uchar * ) temp_buff ) ;\n DBUG_RETURN ( 1 ) ;\n }"}
{"idx": 10701, "target": 0, "func": "int DTLSv1_listen ( SSL * s , BIO_ADDR * client ) {\n int next , n , ret = 0 , clearpkt = 0 ;\n unsigned char cookie [ DTLS1_COOKIE_LENGTH ] ;\n unsigned char seq [ SEQ_NUM_SIZE ] ;\n const unsigned char * data ;\n unsigned char * p , * buf ;\n unsigned long reclen , fragoff , fraglen , msglen ;\n unsigned int rectype , versmajor , msgseq , msgtype , clientvers , cookielen ;\n BIO * rbio , * wbio ;\n BUF_MEM * bufm ;\n BIO_ADDR * tmpclient = NULL ;\n PACKET pkt , msgpkt , msgpayload , session , cookiepkt ;\n if ( ! SSL_clear ( s ) ) return - 1 ;\n ERR_clear_error ( ) ;\n rbio = SSL_get_rbio ( s ) ;\n wbio = SSL_get_wbio ( s ) ;\n if ( ! rbio || ! wbio ) {\n SSLerr ( SSL_F_DTLSV1_LISTEN , SSL_R_BIO_NOT_SET ) ;\n return - 1 ;\n }\n BIO_ctrl ( SSL_get_rbio ( s ) , BIO_CTRL_DGRAM_SET_PEEK_MODE , 1 , NULL ) ;\n if ( ( s -> version & 0xff00 ) != ( DTLS1_VERSION & 0xff00 ) ) {\n SSLerr ( SSL_F_DTLSV1_LISTEN , SSL_R_UNSUPPORTED_SSL_VERSION ) ;\n return - 1 ;\n }\n if ( s -> init_buf == NULL ) {\n if ( ( bufm = BUF_MEM_new ( ) ) == NULL ) {\n SSLerr ( SSL_F_DTLSV1_LISTEN , ERR_R_MALLOC_FAILURE ) ;\n return - 1 ;\n }\n if ( ! BUF_MEM_grow ( bufm , SSL3_RT_MAX_PLAIN_LENGTH ) ) {\n BUF_MEM_free ( bufm ) ;\n SSLerr ( SSL_F_DTLSV1_LISTEN , ERR_R_MALLOC_FAILURE ) ;\n return - 1 ;\n }\n s -> init_buf = bufm ;\n }\n buf = ( unsigned char * ) s -> init_buf -> data ;\n do {\n clear_sys_error ( ) ;\n n = BIO_read ( rbio , buf , SSL3_RT_MAX_PLAIN_LENGTH ) ;\n if ( n <= 0 ) {\n if ( BIO_should_retry ( rbio ) ) {\n goto end ;\n }\n return - 1 ;\n }\n clearpkt = 1 ;\n if ( ! PACKET_buf_init ( & pkt , buf , n ) ) {\n SSLerr ( SSL_F_DTLSV1_LISTEN , ERR_R_INTERNAL_ERROR ) ;\n return - 1 ;\n }\n if ( n < DTLS1_RT_HEADER_LENGTH ) {\n SSLerr ( SSL_F_DTLSV1_LISTEN , SSL_R_RECORD_TOO_SMALL ) ;\n goto end ;\n }\n if ( s -> msg_callback ) s -> msg_callback ( 0 , 0 , SSL3_RT_HEADER , buf , DTLS1_RT_HEADER_LENGTH , s , s -> msg_callback_arg ) ;\n if ( ! PACKET_get_1 ( & pkt , & rectype ) || ! PACKET_get_1 ( & pkt , & versmajor ) ) {\n SSLerr ( SSL_F_DTLSV1_LISTEN , SSL_R_LENGTH_MISMATCH ) ;\n goto end ;\n }\n if ( rectype != SSL3_RT_HANDSHAKE ) {\n SSLerr ( SSL_F_DTLSV1_LISTEN , SSL_R_UNEXPECTED_MESSAGE ) ;\n goto end ;\n }\n if ( versmajor != DTLS1_VERSION_MAJOR ) {\n SSLerr ( SSL_F_DTLSV1_LISTEN , SSL_R_BAD_PROTOCOL_VERSION_NUMBER ) ;\n goto end ;\n }\n if ( ! PACKET_forward ( & pkt , 1 ) || ! PACKET_copy_bytes ( & pkt , seq , SEQ_NUM_SIZE ) || ! PACKET_get_length_prefixed_2 ( & pkt , & msgpkt ) ) {\n SSLerr ( SSL_F_DTLSV1_LISTEN , SSL_R_LENGTH_MISMATCH ) ;\n goto end ;\n }\n if ( seq [ 0 ] != 0 || seq [ 1 ] != 0 ) {\n SSLerr ( SSL_F_DTLSV1_LISTEN , SSL_R_UNEXPECTED_MESSAGE ) ;\n goto end ;\n }\n data = PACKET_data ( & msgpkt ) ;\n if ( ! PACKET_get_1 ( & msgpkt , & msgtype ) || ! PACKET_get_net_3 ( & msgpkt , & msglen ) || ! PACKET_get_net_2 ( & msgpkt , & msgseq ) || ! PACKET_get_net_3 ( & msgpkt , & fragoff ) || ! PACKET_get_net_3 ( & msgpkt , & fraglen ) || ! PACKET_get_sub_packet ( & msgpkt , & msgpayload , fraglen ) || PACKET_remaining ( & msgpkt ) != 0 ) {\n SSLerr ( SSL_F_DTLSV1_LISTEN , SSL_R_LENGTH_MISMATCH ) ;\n goto end ;\n }\n if ( msgtype != SSL3_MT_CLIENT_HELLO ) {\n SSLerr ( SSL_F_DTLSV1_LISTEN , SSL_R_UNEXPECTED_MESSAGE ) ;\n goto end ;\n }\n if ( msgseq > 2 ) {\n SSLerr ( SSL_F_DTLSV1_LISTEN , SSL_R_INVALID_SEQUENCE_NUMBER ) ;\n goto end ;\n }\n if ( fragoff != 0 || fraglen > msglen ) {\n SSLerr ( SSL_F_DTLSV1_LISTEN , SSL_R_FRAGMENTED_CLIENT_HELLO ) ;\n goto end ;\n }\n if ( s -> msg_callback ) s -> msg_callback ( 0 , s -> version , SSL3_RT_HANDSHAKE , data , fraglen + DTLS1_HM_HEADER_LENGTH , s , s -> msg_callback_arg ) ;\n if ( ! PACKET_get_net_2 ( & msgpayload , & clientvers ) ) {\n SSLerr ( SSL_F_DTLSV1_LISTEN , SSL_R_LENGTH_MISMATCH ) ;\n goto end ;\n }\n if ( DTLS_VERSION_LT ( clientvers , ( unsigned int ) s -> method -> version ) && s -> method -> version != DTLS_ANY_VERSION ) {\n SSLerr ( SSL_F_DTLSV1_LISTEN , SSL_R_WRONG_VERSION_NUMBER ) ;\n goto end ;\n }\n if ( ! PACKET_forward ( & msgpayload , SSL3_RANDOM_SIZE ) || ! PACKET_get_length_prefixed_1 ( & msgpayload , & session ) || ! PACKET_get_length_prefixed_1 ( & msgpayload , & cookiepkt ) ) {\n SSLerr ( SSL_F_DTLSV1_LISTEN , SSL_R_LENGTH_MISMATCH ) ;\n goto end ;\n }\n if ( PACKET_remaining ( & cookiepkt ) == 0 ) {\n next = LISTEN_SEND_VERIFY_REQUEST ;\n }\n else {\n if ( s -> ctx -> app_verify_cookie_cb == NULL ) {\n SSLerr ( SSL_F_DTLSV1_LISTEN , SSL_R_NO_VERIFY_COOKIE_CALLBACK ) ;\n return - 1 ;\n }\n if ( s -> ctx -> app_verify_cookie_cb ( s , PACKET_data ( & cookiepkt ) , PACKET_remaining ( & cookiepkt ) ) == 0 ) {\n next = LISTEN_SEND_VERIFY_REQUEST ;\n }\n else {\n next = LISTEN_SUCCESS ;\n }\n }\n if ( next == LISTEN_SEND_VERIFY_REQUEST ) {\n BIO_ctrl ( SSL_get_rbio ( s ) , BIO_CTRL_DGRAM_SET_PEEK_MODE , 0 , NULL ) ;\n BIO_read ( rbio , buf , SSL3_RT_MAX_PLAIN_LENGTH ) ;\n BIO_ctrl ( SSL_get_rbio ( s ) , BIO_CTRL_DGRAM_SET_PEEK_MODE , 1 , NULL ) ;\n if ( s -> ctx -> app_gen_cookie_cb == NULL || s -> ctx -> app_gen_cookie_cb ( s , cookie , & cookielen ) == 0 || cookielen > 255 ) {\n SSLerr ( SSL_F_DTLSV1_LISTEN , SSL_R_COOKIE_GEN_CALLBACK_FAILURE ) ;\n return - 1 ;\n }\n p = & buf [ DTLS1_RT_HEADER_LENGTH ] ;\n msglen = dtls_raw_hello_verify_request ( p + DTLS1_HM_HEADER_LENGTH , cookie , cookielen ) ;\n * p ++ = DTLS1_MT_HELLO_VERIFY_REQUEST ;\n l2n3 ( msglen , p ) ;\n s2n ( 0 , p ) ;\n l2n3 ( 0 , p ) ;\n l2n3 ( msglen , p ) ;\n reclen = msglen + DTLS1_HM_HEADER_LENGTH ;\n p = buf ;\n * ( p ++ ) = SSL3_RT_HANDSHAKE ;\n if ( s -> method -> version == DTLS_ANY_VERSION ) {\n * ( p ++ ) = DTLS1_VERSION >> 8 ;\n * ( p ++ ) = DTLS1_VERSION & 0xff ;\n }\n else {\n * ( p ++ ) = s -> version >> 8 ;\n * ( p ++ ) = s -> version & 0xff ;\n }\n memcpy ( p , seq , SEQ_NUM_SIZE ) ;\n p += SEQ_NUM_SIZE ;\n s2n ( reclen , p ) ;\n reclen += DTLS1_RT_HEADER_LENGTH ;\n if ( s -> msg_callback ) s -> msg_callback ( 1 , 0 , SSL3_RT_HEADER , buf , DTLS1_RT_HEADER_LENGTH , s , s -> msg_callback_arg ) ;\n if ( ( tmpclient = BIO_ADDR_new ( ) ) == NULL ) {\n SSLerr ( SSL_F_DTLSV1_LISTEN , ERR_R_MALLOC_FAILURE ) ;\n goto end ;\n }\n if ( BIO_dgram_get_peer ( rbio , tmpclient ) > 0 ) {\n ( void ) BIO_dgram_set_peer ( wbio , tmpclient ) ;\n }\n BIO_ADDR_free ( tmpclient ) ;\n tmpclient = NULL ;\n if ( BIO_write ( wbio , buf , reclen ) < ( int ) reclen ) {\n if ( BIO_should_retry ( wbio ) ) {\n goto end ;\n }\n return - 1 ;\n }\n if ( BIO_flush ( wbio ) <= 0 ) {\n if ( BIO_should_retry ( wbio ) ) {\n goto end ;\n }\n return - 1 ;\n }\n }\n }\n while ( next != LISTEN_SUCCESS ) ;\n s -> d1 -> handshake_read_seq = 1 ;\n s -> d1 -> handshake_write_seq = 1 ;\n s -> d1 -> next_handshake_write_seq = 1 ;\n DTLS_RECORD_LAYER_set_write_sequence ( & s -> rlayer , seq ) ;\n SSL_set_options ( s , SSL_OP_COOKIE_EXCHANGE ) ;\n ossl_statem_set_hello_verify_done ( s ) ;\n if ( BIO_dgram_get_peer ( rbio , client ) <= 0 ) BIO_ADDR_clear ( client ) ;\n ret = 1 ;\n clearpkt = 0 ;\n end : BIO_ADDR_free ( tmpclient ) ;\n BIO_ctrl ( SSL_get_rbio ( s ) , BIO_CTRL_DGRAM_SET_PEEK_MODE , 0 , NULL ) ;\n if ( clearpkt ) {\n BIO_read ( rbio , buf , SSL3_RT_MAX_PLAIN_LENGTH ) ;\n }\n return ret ;\n }"}
{"idx": 10702, "target": 0, "func": "static const gchar * get_register_name_from_address ( guint64 addr , gboolean * is_custom_register , u3v_conv_info_t * u3v_conv_info ) {\n const gchar * address_string = NULL ;\n guint32 offset_address ;\n if ( is_custom_register != NULL ) {\n * is_custom_register = FALSE ;\n }\n if ( addr < 0x10000 ) {\n offset_address = ( guint32 ) addr ;\n address_string = try_val_to_str ( offset_address , bootstrap_register_names_abrm ) ;\n }\n if ( u3v_conv_info && u3v_conv_info -> sbrm_addr != 0 && ( addr >= u3v_conv_info -> sbrm_addr ) ) {\n offset_address = ( guint32 ) ( addr - u3v_conv_info -> sbrm_addr ) ;\n address_string = try_val_to_str ( offset_address , bootstrap_register_names_sbrm ) ;\n }\n if ( u3v_conv_info && u3v_conv_info -> sirm_addr != 0 && ( addr >= u3v_conv_info -> sirm_addr ) ) {\n offset_address = ( guint32 ) ( addr - u3v_conv_info -> sirm_addr ) ;\n address_string = try_val_to_str ( offset_address , bootstrap_register_names_sirm ) ;\n }\n if ( u3v_conv_info && u3v_conv_info -> eirm_addr != 0 && ( addr >= u3v_conv_info -> eirm_addr ) ) {\n offset_address = ( guint32 ) ( addr - u3v_conv_info -> eirm_addr ) ;\n address_string = try_val_to_str ( offset_address , bootstrap_register_names_eirm ) ;\n }\n if ( ! address_string ) {\n address_string = wmem_strdup_printf ( wmem_packet_scope ( ) , \"[Addr:0x%016\" G_GINT64_MODIFIER \"X]\" , addr ) ;\n if ( is_custom_register != NULL ) {\n * is_custom_register = TRUE ;\n }\n }\n return address_string ;\n }"}
{"idx": 10703, "target": 0, "func": "static void deep_count_state_free ( DeepCountState * state ) {\n if ( state -> enumerator ) {\n if ( ! g_file_enumerator_is_closed ( state -> enumerator ) ) {\n g_file_enumerator_close_async ( state -> enumerator , 0 , NULL , NULL , NULL ) ;\n }\n g_object_unref ( state -> enumerator ) ;\n }\n g_object_unref ( state -> cancellable ) ;\n if ( state -> deep_count_location ) {\n g_object_unref ( state -> deep_count_location ) ;\n }\n g_list_free_full ( state -> deep_count_subdirectories , g_object_unref ) ;\n g_array_free ( state -> seen_deep_count_inodes , TRUE ) ;\n g_free ( state -> fs_id ) ;\n g_free ( state ) ;\n }"}
{"idx": 10704, "target": 0, "func": "static inline void pcnet_rmd_load ( PCNetState * s , struct pcnet_RMD * rmd , hwaddr addr ) {\n if ( ! BCR_SSIZE32 ( s ) ) {\n struct {\n uint32_t rbadr ;\n int16_t buf_length ;\n int16_t msg_length ;\n }\n rda ;\n s -> phys_mem_read ( s -> dma_opaque , addr , ( void * ) & rda , sizeof ( rda ) , 0 ) ;\n rmd -> rbadr = le32_to_cpu ( rda . rbadr ) & 0xffffff ;\n rmd -> buf_length = le16_to_cpu ( rda . buf_length ) ;\n rmd -> status = ( le32_to_cpu ( rda . rbadr ) >> 16 ) & 0xff00 ;\n rmd -> msg_length = le16_to_cpu ( rda . msg_length ) ;\n rmd -> res = 0 ;\n }\n else {\n s -> phys_mem_read ( s -> dma_opaque , addr , ( void * ) rmd , sizeof ( * rmd ) , 0 ) ;\n le32_to_cpus ( & rmd -> rbadr ) ;\n le16_to_cpus ( ( uint16_t * ) & rmd -> buf_length ) ;\n le16_to_cpus ( ( uint16_t * ) & rmd -> status ) ;\n le32_to_cpus ( & rmd -> msg_length ) ;\n le32_to_cpus ( & rmd -> res ) ;\n if ( BCR_SWSTYLE ( s ) == 3 ) {\n uint32_t tmp = rmd -> rbadr ;\n rmd -> rbadr = rmd -> msg_length ;\n rmd -> msg_length = tmp ;\n }\n }\n }"}
{"idx": 10705, "target": 0, "func": "int main ( ) {\n pthread_key_create ( & threadKey , nullptr ) ;\n Utils : : init ( & Debug , & Error ) ;\n {\n cout << endl << \"===================== Test 1\" << endl ;\n Utils : : HeaderValueList whitelistCookies ;\n whitelistCookies . push_back ( \"c1\" ) ;\n whitelistCookies . push_back ( \"c2\" ) ;\n whitelistCookies . push_back ( \"c3\" ) ;\n whitelistCookies . push_back ( \"c4\" ) ;\n whitelistCookies . push_back ( \"c5\" ) ;\n Variables esi_vars ( \"vars_test\" , & Debug , & Error , whitelistCookies ) ;\n const char * strings [ ] = {\n \"Cookie\" , \";\n c1=v1;\n c2=v2;\n ;\n c3;\n c4=;\n c5=v5 \" , \"Host\" , \"example.com\" , \"Referer\" , \"google.com\" , \"Blah\" , \"Blah\" , \"Accept-Language\" , \"en-gb , en-us , ,\" , \"Accept-Language\" , \"ka-in\" , nullptr }\n ;\n HttpHeaderList headers ;\n addToHeaderList ( strings , headers ) ;\n esi_vars . populate ( headers ) ;\n esi_vars . populate ( \"a=b&c=d&e=f\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nc1}\n\" ) == \"v1\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nc2}\n\" ) == \"v2\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nc3}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nc4}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nc5}\n\" ) == \"v5\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nc2}\n\" ) != \"v1\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nC1}\n\" ) != \"v1\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_USER_AGENT\" ) . size ( ) == 0 ) ;\n assert ( esi_vars . getValue ( \"BLAH\" ) . size ( ) == 0 ) ;\n assert ( esi_vars . getValue ( \"HTTP_HOST\" ) == \"example.com\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_host\" ) == \"example.com\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_REFERER\" ) == \"google.com\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_BLAH\" ) . size ( ) == 0 ) ;\n assert ( esi_vars . getValue ( \"HTTP_ACCEPT_LANGUAGE{\nen-gb}\n\" ) == \"true\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_ACCEPT_LANGUAGE{\nen-us}\n\" ) == \"true\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_ACCEPT_LANGUAGE{\nes-us}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) == \"a=b&c=d&e=f\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\na}\n\" ) == \"b\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\ne}\n\" ) == \"f\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\nz}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nc1\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIEc1\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIEc1}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"{\nc1}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nc1{\nc2}\n}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nc1{\nc2}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nc1c}\n2}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nc1c2}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"{\nc1c2}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\n}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nc1}\nc\" ) == \"\" ) ;\n esi_vars . populate ( HttpHeader ( \"hosT\" , - 1 , \"localhost\" , - 1 ) ) ;\n assert ( esi_vars . getValue ( \"HTTP_HOST\" ) == \"localhost\" ) ;\n esi_vars . populate ( HttpHeader ( \"User-agent\" , - 1 , \"Mozilla/5.0 (Windows;\n U;\n Windows NT 5.1;\n en-US;\n rv:1.9.1.6) \" \"Gecko/20091201 Firefox/3.5.6 (.NETgecko CLR 3.5.30729)\" , - 1 ) ) ;\n assert ( esi_vars . getValue ( \"HTTP_ACCEPT_LANGUAGE{\nka-in}\n\" ) == \"true\" ) ;\n esi_vars . clear ( ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\na}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nc1}\n\" ) == \"\" ) ;\n esi_vars . populate ( headers ) ;\n esi_vars . populate ( \"a=b&c=d&e=f\" ) ;\n Expression esi_expr ( \"vars_test\" , & Debug , & Error , esi_vars ) ;\n assert ( esi_expr . expand ( nullptr ) == \"\" ) ;\n assert ( esi_expr . expand ( \"\" ) == \"\" ) ;\n assert ( esi_expr . expand ( \"blah\" ) == \"blah\" ) ;\n assert ( esi_expr . expand ( \"blah$(HTTP_HOST\" ) == \"\" ) ;\n assert ( esi_expr . expand ( \"blah$A(HTTP_HOST)\" ) == \"blah$A(HTTP_HOST)\" ) ;\n assert ( esi_expr . expand ( \"blah$()\" ) == \"blah\" ) ;\n assert ( esi_expr . expand ( \"blah-$(HTTP_HOST)\" ) == \"blah-example.com\" ) ;\n assert ( esi_expr . expand ( \"blah-$(HTTP_REFERER)\" ) == \"blah-google.com\" ) ;\n assert ( esi_expr . expand ( \"blah-$(HTTP_COOKIE{\nc1}\n)\" ) == \"blah-v1\" ) ;\n assert ( esi_expr . expand ( \"blah-$(HTTP_COOKIE{\nc1a}\n)\" ) == \"blah-\" ) ;\n assert ( esi_expr . expand ( \"blah-$(HTTP_COOKIE{\nc1}\n$(HTTP_HOST))\" ) == \"\" ) ;\n assert ( esi_expr . expand ( \"blah-$(HTTP_COOKIE{\nc1}\n)-$(HTTP_HOST)\" ) == \"blah-v1-example.com\" ) ;\n assert ( esi_expr . expand ( \"$()\" ) == \"\" ) ;\n assert ( esi_expr . expand ( \"$(HTTP_COOKIE{\nc1}\n)$(HTTP_COOKIE{\nc2}\n)$(HTTP_HOST)\" ) == \"v1v2example.com\" ) ;\n assert ( esi_expr . expand ( \"'blah\" ) == \"\" ) ;\n assert ( esi_expr . expand ( \"\\\"blah\" ) == \"\" ) ;\n assert ( esi_expr . expand ( \"'blah'\" ) == \"blah\" ) ;\n assert ( esi_expr . expand ( \"\\\"blah\\\"\" ) == \"blah\" ) ;\n assert ( esi_expr . expand ( \"'$(HTTP_COOKIE{\nc1}\n)'\" ) == \"v1\" ) ;\n assert ( esi_expr . expand ( \"\\\"$(HTTP_HOST)\\\"\" ) == \"example.com\" ) ;\n assert ( esi_expr . expand ( \" blah \" ) == \"blah\" ) ;\n assert ( esi_expr . expand ( \" $(HTTP_REFERER) $(HTTP_HOST) \" ) == \"google.com example.com\" ) ;\n assert ( esi_expr . expand ( \" ' foo ' \" ) == \" foo \" ) ;\n assert ( esi_expr . expand ( \" ' foo '\" ) == \" foo \" ) ;\n assert ( esi_expr . expand ( \"bar \" ) == \"bar\" ) ;\n assert ( esi_expr . evaluate ( \"foo\" ) == true ) ;\n assert ( esi_expr . evaluate ( \"\" ) == false ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_HOST)\" ) == true ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_XHOST)\" ) == false ) ;\n assert ( esi_expr . evaluate ( \"foo == foo\" ) == true ) ;\n assert ( esi_expr . evaluate ( \"'foo' == \\\"foo\\\"\" ) == true ) ;\n assert ( esi_expr . evaluate ( \"foo == foo1\" ) == false ) ;\n assert ( esi_expr . evaluate ( \"'foo' == \\\"foo1\\\"\" ) == false ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_REFERER) == google.com\" ) == true ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_HOST)=='example.com'\" ) == true ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_REFERER) != google.com\" ) == false ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_HOST)!='example.com'\" ) == false ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_HOST) == 'facebook.com'\" ) == false ) ;\n assert ( esi_expr . evaluate ( \"!\" ) == true ) ;\n assert ( esi_expr . evaluate ( \"!abc\" ) == false ) ;\n assert ( esi_expr . evaluate ( \"!$(FOO_BAR)\" ) == true ) ;\n assert ( esi_expr . evaluate ( \"!$(HTTP_HOST)\" ) == false ) ;\n assert ( esi_expr . evaluate ( \"abc!abc\" ) == true ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nc1}\n) == 'v1'\" ) == true ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nc1b}\n) == 'v1'\" ) == false ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nc1}\n) <= 'v2'\" ) == true ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nc1}\n) < 'v2'\" ) == true ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nc1}\n) >= 'v0'\" ) == true ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nc1}\n) > 'v2'\" ) == false ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nc1}\n) & 'v2'\" ) == true ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nfoo}\n) & $(HTTP_COOKIE{\nbar}\n)\" ) == false ) ;\n assert ( esi_expr . evaluate ( \"'' | $(HTTP_COOKIE{\nc1}\n)\" ) == true ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nfoo}\n) | $(HTTP_COOKIE{\nbar}\n)\" ) == false ) ;\n assert ( esi_expr . expand ( \"foo|bar\" ) == \"foo|bar\" ) ;\n assert ( esi_expr . expand ( \"$(HTTP_HOST|\" ) == \"\" ) ;\n assert ( esi_expr . expand ( \"$(HTTP_HOST|foo\" ) == \"\" ) ;\n assert ( esi_expr . expand ( \"$(HTTP_HOST|foo)\" ) == \"example.com\" ) ;\n assert ( esi_expr . expand ( \"$(HTTP_XHOST|foo)\" ) == \"foo\" ) ;\n assert ( esi_expr . expand ( \"$(|foo)\" ) == \"foo\" ) ;\n assert ( esi_expr . expand ( \"$(HTTP_ACCEPT_LANGUAGE{\nen-uk}\n)\" ) == \"\" ) ;\n assert ( esi_expr . expand ( \"$(HTTP_ACCEPT_LANGUAGE{\nen-uk}\n|'yes')\" ) == \"yes\" ) ;\n assert ( esi_expr . expand ( \"$(HTTP_ACCEPT_LANGUAGE{\nen-uk}\n|'yes with space')\" ) == \"yes with space\" ) ;\n assert ( esi_expr . expand ( \"$(HTTP_ACCEPT_LANGUAGE{\nen-gb}\n|'yes')\" ) == \"true\" ) ;\n assert ( esi_expr . expand ( \"$(HTTP_ACCEPT_LANGUAGE{\nen-gb}\n|'yes)\" ) == \"\" ) ;\n assert ( esi_expr . expand ( \"$(HTTP_ACCEPT_LANGUAGE{\nen-uk}\n|'yes)\" ) == \"\" ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nnon-existent}\n) < 7\" ) == false ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nc1}\n) > $(HTTP_COOKIE{\nnon-existent}\n)\" ) == false ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nnon-existent}\n) <= 7\" ) == false ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nc1}\n) >= $(HTTP_COOKIE{\nnon-existent}\n)\" ) == false ) ;\n esi_vars . clear ( ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) . size ( ) == 0 ) ;\n esi_vars . populate ( \"a\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) == \"a\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\na}\n\" ) . size ( ) == 0 ) ;\n esi_vars . clear ( ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) . size ( ) == 0 ) ;\n esi_vars . populate ( \"\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\na}\n\" ) . size ( ) == 0 ) ;\n esi_vars . clear ( ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) . size ( ) == 0 ) ;\n esi_vars . populate ( \"a=b\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) == \"a=b\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\na}\n\" ) == \"b\" ) ;\n esi_vars . clear ( ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) . size ( ) == 0 ) ;\n esi_vars . populate ( \"a=b&\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) == \"a=b&\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\na}\n\" ) == \"b\" ) ;\n esi_vars . clear ( ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) . size ( ) == 0 ) ;\n esi_vars . populate ( \"&a=b&\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) == \"&a=b&\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\na}\n\" ) == \"b\" ) ;\n esi_vars . clear ( ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) . size ( ) == 0 ) ;\n esi_vars . populate ( \"name1=value1&name2=value2&name3=val%32ue\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) == \"name1=value1&name2=value2&name3=val%32ue\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\nname1}\n\" ) == \"value1\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\nname2}\n\" ) == \"value2\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\nname3}\n\" ) == \"val%32ue\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\nname4}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\n}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\nfoo}\n\" ) == \"\" ) ;\n esi_vars . clear ( ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) . size ( ) == 0 ) ;\n esi_vars . populate ( \"=\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) == \"=\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\na}\n\" ) == \"\" ) ;\n esi_vars . clear ( ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) . size ( ) == 0 ) ;\n esi_vars . populate ( \"a=&\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) == \"a=&\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\na}\n\" ) == \"\" ) ;\n esi_vars . clear ( ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) . size ( ) == 0 ) ;\n esi_vars . populate ( \"=b&\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) == \"=b&\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\na}\n\" ) == \"\" ) ;\n esi_vars . clear ( ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) . size ( ) == 0 ) ;\n esi_vars . populate ( \"foo=bar&blah=&\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) == \"foo=bar&blah=&\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\nfoo}\n\" ) == \"bar\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\nblah}\n\" ) == \"\" ) ;\n esi_vars . clear ( ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) . size ( ) == 0 ) ;\n esi_vars . populate ( \"=blah&foo=bar\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING\" ) == \"=blah&foo=bar\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\nfoo}\n\" ) == \"bar\" ) ;\n assert ( esi_vars . getValue ( \"QUERY_STRING{\nblah}\n\" ) == \"\" ) ;\n }\n {\n cout << endl << \"===================== Test 2\" << endl ;\n gFakeDebugLog . assign ( \"\" ) ;\n Utils : : HeaderValueList whitelistCookies ;\n Variables esi_vars ( \"vars_test\" , & fakeDebug , & Error , whitelistCookies ) ;\n esi_vars . populate ( HttpHeader ( \"Host\" , - 1 , \"example.com\" , - 1 ) ) ;\n esi_vars . populate ( HttpHeader ( \"Referer\" , - 1 , \"google.com\" , - 1 ) ) ;\n const char * PARSING_DEBUG_MESSAGE = \"Parsing headers\" ;\n assert ( gFakeDebugLog . find ( PARSING_DEBUG_MESSAGE ) >= gFakeDebugLog . size ( ) ) ;\n assert ( esi_vars . getValue ( \"HTTP_HOST\" ) == \"example.com\" ) ;\n size_t str_pos = gFakeDebugLog . find ( PARSING_DEBUG_MESSAGE ) ;\n assert ( str_pos < gFakeDebugLog . size ( ) ) ;\n assert ( esi_vars . getValue ( \"HTTP_REFERER\" ) == \"google.com\" ) ;\n assert ( gFakeDebugLog . rfind ( PARSING_DEBUG_MESSAGE ) == str_pos ) ;\n esi_vars . populate ( HttpHeader ( \"Host\" , - 1 , \"localhost\" , - 1 ) ) ;\n assert ( esi_vars . getValue ( \"HTTP_HOST\" ) == \"localhost\" ) ;\n assert ( gFakeDebugLog . rfind ( PARSING_DEBUG_MESSAGE ) == str_pos ) ;\n assert ( esi_vars . getValue ( \"HTTP_HOST\" ) == \"localhost\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_REFERER\" ) == \"google.com\" ) ;\n esi_vars . clear ( ) ;\n esi_vars . populate ( HttpHeader ( \"Host\" , - 1 , \"home\" , - 1 ) ) ;\n assert ( esi_vars . getValue ( \"HTTP_HOST\" ) == \"home\" ) ;\n assert ( gFakeDebugLog . rfind ( PARSING_DEBUG_MESSAGE ) != str_pos ) ;\n assert ( esi_vars . getValue ( \"HTTP_REFERER\" ) == \"\" ) ;\n }\n {\n cout << endl << \"===================== Test 3\" << endl ;\n Utils : : HeaderValueList whitelistCookies ;\n whitelistCookies . push_back ( \"age\" ) ;\n whitelistCookies . push_back ( \"grade\" ) ;\n whitelistCookies . push_back ( \"avg\" ) ;\n whitelistCookies . push_back ( \"t1\" ) ;\n whitelistCookies . push_back ( \"t2\" ) ;\n whitelistCookies . push_back ( \"t3\" ) ;\n whitelistCookies . push_back ( \"t4\" ) ;\n whitelistCookies . push_back ( \"t5\" ) ;\n whitelistCookies . push_back ( \"c1\" ) ;\n Variables esi_vars ( \"vars_test\" , & Debug , & Error , whitelistCookies ) ;\n esi_vars . populate ( HttpHeader ( \"Host\" , - 1 , \"example.com\" , - 1 ) ) ;\n esi_vars . populate ( HttpHeader ( \"Referer\" , - 1 , \"google.com\" , - 1 ) ) ;\n esi_vars . populate ( HttpHeader ( \"Cookie\" , - 1 , \"age=21;\n grade=-5;\n avg=4.3;\n t1=\\\" \\\";\n t2=0.0\" , - 1 ) ) ;\n esi_vars . populate ( HttpHeader ( \"Cookie\" , - 1 , \"t3=-0;\n t4=0;\n t5=6\" , - 1 ) ) ;\n Expression esi_expr ( \"vars_test\" , & Debug , & Error , esi_vars ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nage}\n) >= -9\" ) ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nage}\n) > 9\" ) ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nage}\n) < 22\" ) ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nage}\n) <= 22.1\" ) ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nage}\n) > 100a\" ) ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nt1}\n)\" ) ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\ngrade}\n)\" ) ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\ngrade}\n) == -5\" ) ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\ngrade}\n) != -5.1\" ) ) ;\n assert ( esi_expr . evaluate ( \"!$(HTTP_COOKIE{\nt2}\n)\" ) ) ;\n assert ( esi_expr . evaluate ( \"!$(HTTP_COOKIE{\nt3}\n)\" ) ) ;\n assert ( esi_expr . evaluate ( \"!$(HTTP_COOKIE{\nt4}\n)\" ) ) ;\n assert ( esi_expr . evaluate ( \"+4.3 == $(HTTP_COOKIE{\navg}\n)\" ) ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\ngrade}\n) < -0x2\" ) ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nt2}\n) | 1\" ) ) ;\n assert ( ! esi_expr . evaluate ( \"$(HTTP_COOKIE{\nt3}\n) & 1\" ) ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nt5}\n) == 6\" ) ) ;\n string strange_cookie ( \"c1=123\" ) ;\n strange_cookie [ 4 ] = '\\0' ;\n esi_vars . populate ( HttpHeader ( \"Cookie\" , - 1 , strange_cookie . data ( ) , strange_cookie . size ( ) ) ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nc1}\n\" ) . size ( ) == 3 ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nc1}\n\" ) [ 1 ] == '\\0' ) ;\n assert ( esi_expr . evaluate ( \"$(HTTP_COOKIE{\nc1}\n) != 1\" ) ) ;\n }\n {\n cout << endl << \"===================== Test 4\" << endl ;\n Utils : : HeaderValueList whitelistCookies ;\n whitelistCookies . push_back ( \"FPS\" ) ;\n whitelistCookies . push_back ( \"mb\" ) ;\n whitelistCookies . push_back ( \"Y\" ) ;\n whitelistCookies . push_back ( \"C\" ) ;\n whitelistCookies . push_back ( \"F\" ) ;\n whitelistCookies . push_back ( \"a\" ) ;\n whitelistCookies . push_back ( \"c\" ) ;\n Variables esi_vars ( \"vars_test\" , & Debug , & Error , whitelistCookies ) ;\n string cookie_str ( \"FPS=dl;\n mb=d=OPsv7rvU4FFaAOoIRi75BBuqdMdbMLFuDwQmk6nKrCgno7L4xuN44zm7QBQJRmQSh8ken6GSVk8-&v=1;\n C=mg=1;\n \" \"Y=v=1&n=fmaptagvuff50&l=fc0d94i7/o&p=m2f0000313000400&r=8j&lg=en-US&intl=us;\n \" \"F=a=4KvLV9IMvTJnIAqCk25y9Use6hnPALtUf3n78PihlcIqvmzoW.Ax8UyW8_oxtgFNrrdmooqZmPa7WsX4gE.\" \"6sI69wuNwRKrRPFT29h9lhwuxxLz0RuQedVXhJhc323Q-&b=8gQZ\" ) ;\n esi_vars . populate ( HttpHeader ( \"Cookie\" , - 1 , cookie_str . data ( ) , cookie_str . size ( ) ) ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nFPS}\n\" ) == \"dl\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nmb}\n\" ) == \"d=OPsv7rvU4FFaAOoIRi75BBuqdMdbMLFuDwQmk6nKrCgno7L4xuN44zm7QBQJRmQSh8ken6GSVk8-&v=1\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nY;\nn}\n\" ) == \"fmaptagvuff50\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nY;\nl}\n\" ) == \"fc0d94i7/o\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nY;\nintl}\n\" ) == \"us\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nC}\n\" ) == \"mg=1\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nnon-existent}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nY}\n\" ) == \"v=1&n=fmaptagvuff50&l=fc0d94i7/o&p=m2f0000313000400&r=8j&lg=en-US&intl=us\" ) ;\n esi_vars . populate ( HttpHeader ( \"Host\" , - 1 , \"www.example.com\" , - 1 ) ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nF}\n\" ) == \"a=4KvLV9IMvTJnIAqCk25y9Use6hnPALtUf3n78PihlcIqvmzoW.\" \"Ax8UyW8_oxtgFNrrdmooqZmPa7WsX4gE.6sI69wuNwRKrRPFT29h9lhwuxxLz0RuQedVXhJhc323Q-&b=8gQZ\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_HOST\" ) == \"www.example.com\" ) ;\n esi_vars . populate ( HttpHeader ( \"Cookie\" , - 1 , \"a=b;\n c=d\" , - 1 ) ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nY;\nintl}\n\" ) == \"us\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nF}\n\" ) == \"a=4KvLV9IMvTJnIAqCk25y9Use6hnPALtUf3n78PihlcIqvmzoW.\" \"Ax8UyW8_oxtgFNrrdmooqZmPa7WsX4gE.6sI69wuNwRKrRPFT29h9lhwuxxLz0RuQedVXhJhc323Q-&b=8gQZ\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\na}\n\" ) == \"b\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nc}\n\" ) == \"d\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_HOST\" ) == \"www.example.com\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nY;\nblah}\n\" ) == \"\" ) ;\n esi_vars . clear ( ) ;\n esi_vars . populate ( HttpHeader ( \"Cookie\" , - 1 , \"Y=junk\" , - 1 ) ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nY}\n\" ) == \"junk\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nY;\nintl}\n\" ) == \"\" ) ;\n }\n {\n cout << endl << \"===================== Test 5\" << endl ;\n Utils : : HeaderValueList whitelistCookies ;\n Variables esi_vars ( \"vars_test\" , & Debug , & Error , whitelistCookies ) ;\n esi_vars . populate ( HttpHeader ( \"hdr1\" , - 1 , \"hval1\" , - 1 ) ) ;\n esi_vars . populate ( HttpHeader ( \"Hdr2\" , - 1 , \"hval2\" , - 1 ) ) ;\n esi_vars . populate ( HttpHeader ( \"@Intenal-hdr1\" , - 1 , \"internal-hval1\" , - 1 ) ) ;\n esi_vars . populate ( HttpHeader ( \"cookie\" , - 1 , \"x=y\" , - 1 ) ) ;\n assert ( esi_vars . getValue ( \"HTTP_HEADER{\nhdr1}\n\" ) == \"hval1\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_HEADER{\nhdr2}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_HEADER{\nHdr2}\n\" ) == \"hval2\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_HEADER{\nnon-existent}\n\" ) == \"\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_HEADER{\n@Intenal-hdr1}\n\" ) == \"internal-hval1\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_HEADER{\ncookie}\n\" ) == \"\" ) ;\n }\n {\n cout << endl << \"===================== Test 6\" << endl ;\n Utils : : HeaderValueList whitelistCookies ;\n whitelistCookies . push_back ( \"*\" ) ;\n Variables esi_vars ( \"vars_test\" , & Debug , & Error , whitelistCookies ) ;\n esi_vars . populate ( HttpHeader ( \"Host\" , - 1 , \"example.com\" , - 1 ) ) ;\n esi_vars . populate ( HttpHeader ( \"Cookie\" , - 1 , \"age=21;\n grade=-5;\n avg=4.3;\n t1=\\\" \\\";\n t2=0.0\" , - 1 ) ) ;\n esi_vars . populate ( HttpHeader ( \"Cookie\" , - 1 , \"t3=-0;\n t4=0;\n t5=6\" , - 1 ) ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nage}\n\" ) == \"21\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\ngrade}\n\" ) == \"-5\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\navg}\n\" ) == \"4.3\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nt1}\n\" ) == \" \" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nt2}\n\" ) == \"0.0\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nt3}\n\" ) == \"-0\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nt4}\n\" ) == \"0\" ) ;\n assert ( esi_vars . getValue ( \"HTTP_COOKIE{\nt5}\n\" ) == \"6\" ) ;\n }\n cout << endl << \"All tests passed!\" << endl ;\n return 0 ;\n }"}
{"idx": 10706, "target": 0, "func": "static void dchip_write ( void * opaque , hwaddr addr , uint64_t val , unsigned size ) {\n }"}
{"idx": 10707, "target": 0, "func": "static void parseqatom ( struct vars * v , int stopper , int type , struct state * lp , struct state * rp , struct subre * top ) {\n struct state * s ;\n struct state * s2 ;\n # define ARCV ( t , val ) newarc ( v -> nfa , t , val , lp , rp ) int m , n ;\n struct subre * atom ;\n struct subre * t ;\n int cap ;\n int latype ;\n int subno ;\n int atomtype ;\n int qprefer ;\n int f ;\n struct subre * * atomp ;\n atom = NULL ;\n assert ( lp -> nouts == 0 ) ;\n assert ( rp -> nins == 0 ) ;\n subno = 0 ;\n atomtype = v -> nexttype ;\n switch ( atomtype ) {\n case '^' : ARCV ( '^' , 1 ) ;\n if ( v -> cflags & REG_NLANCH ) ARCV ( BEHIND , v -> nlcolor ) ;\n NEXT ( ) ;\n return ;\n break ;\n case '$' : ARCV ( '$' , 1 ) ;\n if ( v -> cflags & REG_NLANCH ) ARCV ( AHEAD , v -> nlcolor ) ;\n NEXT ( ) ;\n return ;\n break ;\n case SBEGIN : ARCV ( '^' , 1 ) ;\n ARCV ( '^' , 0 ) ;\n NEXT ( ) ;\n return ;\n break ;\n case SEND : ARCV ( '$' , 1 ) ;\n ARCV ( '$' , 0 ) ;\n NEXT ( ) ;\n return ;\n break ;\n case '<' : wordchrs ( v ) ;\n s = newstate ( v -> nfa ) ;\n NOERR ( ) ;\n nonword ( v , BEHIND , lp , s ) ;\n word ( v , AHEAD , s , rp ) ;\n return ;\n break ;\n case '>' : wordchrs ( v ) ;\n s = newstate ( v -> nfa ) ;\n NOERR ( ) ;\n word ( v , BEHIND , lp , s ) ;\n nonword ( v , AHEAD , s , rp ) ;\n return ;\n break ;\n case WBDRY : wordchrs ( v ) ;\n s = newstate ( v -> nfa ) ;\n NOERR ( ) ;\n nonword ( v , BEHIND , lp , s ) ;\n word ( v , AHEAD , s , rp ) ;\n s = newstate ( v -> nfa ) ;\n NOERR ( ) ;\n word ( v , BEHIND , lp , s ) ;\n nonword ( v , AHEAD , s , rp ) ;\n return ;\n break ;\n case NWBDRY : wordchrs ( v ) ;\n s = newstate ( v -> nfa ) ;\n NOERR ( ) ;\n word ( v , BEHIND , lp , s ) ;\n word ( v , AHEAD , s , rp ) ;\n s = newstate ( v -> nfa ) ;\n NOERR ( ) ;\n nonword ( v , BEHIND , lp , s ) ;\n nonword ( v , AHEAD , s , rp ) ;\n return ;\n break ;\n case LACON : latype = v -> nextvalue ;\n NEXT ( ) ;\n s = newstate ( v -> nfa ) ;\n s2 = newstate ( v -> nfa ) ;\n NOERR ( ) ;\n t = parse ( v , ')' , LACON , s , s2 ) ;\n freesubre ( v , t ) ;\n NOERR ( ) ;\n assert ( SEE ( ')' ) ) ;\n NEXT ( ) ;\n processlacon ( v , s , s2 , latype , lp , rp ) ;\n return ;\n break ;\n case '*' : case '+' : case '?' : case '{\n' : ERR ( REG_BADRPT ) ;\n return ;\n break ;\n default : ERR ( REG_ASSERT ) ;\n return ;\n break ;\n case ')' : if ( ( v -> cflags & REG_ADVANCED ) != REG_EXTENDED ) {\n ERR ( REG_EPAREN ) ;\n return ;\n }\n NOTE ( REG_UPBOTCH ) ;\n case PLAIN : onechr ( v , v -> nextvalue , lp , rp ) ;\n okcolors ( v -> nfa , v -> cm ) ;\n NOERR ( ) ;\n NEXT ( ) ;\n break ;\n case '[' : if ( v -> nextvalue == 1 ) bracket ( v , lp , rp ) ;\n else cbracket ( v , lp , rp ) ;\n assert ( SEE ( ']' ) || ISERR ( ) ) ;\n NEXT ( ) ;\n break ;\n case '.' : rainbow ( v -> nfa , v -> cm , PLAIN , ( v -> cflags & REG_NLSTOP ) ? v -> nlcolor : COLORLESS , lp , rp ) ;\n NEXT ( ) ;\n break ;\n case '(' : cap = ( type == LACON ) ? 0 : v -> nextvalue ;\n if ( cap ) {\n v -> nsubexp ++ ;\n subno = v -> nsubexp ;\n if ( ( size_t ) subno >= v -> nsubs ) moresubs ( v , subno ) ;\n assert ( ( size_t ) subno < v -> nsubs ) ;\n }\n else atomtype = PLAIN ;\n NEXT ( ) ;\n s = newstate ( v -> nfa ) ;\n s2 = newstate ( v -> nfa ) ;\n NOERR ( ) ;\n EMPTYARC ( lp , s ) ;\n EMPTYARC ( s2 , rp ) ;\n NOERR ( ) ;\n atom = parse ( v , ')' , type , s , s2 ) ;\n assert ( SEE ( ')' ) || ISERR ( ) ) ;\n NEXT ( ) ;\n NOERR ( ) ;\n if ( cap ) {\n v -> subs [ subno ] = atom ;\n t = subre ( v , '(' , atom -> flags | CAP , lp , rp ) ;\n NOERR ( ) ;\n t -> subno = subno ;\n t -> left = atom ;\n atom = t ;\n }\n break ;\n case BACKREF : INSIST ( type != LACON , REG_ESUBREG ) ;\n INSIST ( v -> nextvalue < v -> nsubs , REG_ESUBREG ) ;\n INSIST ( v -> subs [ v -> nextvalue ] != NULL , REG_ESUBREG ) ;\n NOERR ( ) ;\n assert ( v -> nextvalue > 0 ) ;\n atom = subre ( v , 'b' , BACKR , lp , rp ) ;\n NOERR ( ) ;\n subno = v -> nextvalue ;\n atom -> subno = subno ;\n EMPTYARC ( lp , rp ) ;\n NEXT ( ) ;\n break ;\n }\n switch ( v -> nexttype ) {\n case '*' : m = 0 ;\n n = DUPINF ;\n qprefer = ( v -> nextvalue ) ? LONGER : SHORTER ;\n NEXT ( ) ;\n break ;\n case '+' : m = 1 ;\n n = DUPINF ;\n qprefer = ( v -> nextvalue ) ? LONGER : SHORTER ;\n NEXT ( ) ;\n break ;\n case '?' : m = 0 ;\n n = 1 ;\n qprefer = ( v -> nextvalue ) ? LONGER : SHORTER ;\n NEXT ( ) ;\n break ;\n case '{\n' : NEXT ( ) ;\n m = scannum ( v ) ;\n if ( EAT ( ',' ) ) {\n if ( SEE ( DIGIT ) ) n = scannum ( v ) ;\n else n = DUPINF ;\n if ( m > n ) {\n ERR ( REG_BADBR ) ;\n return ;\n }\n qprefer = ( v -> nextvalue ) ? LONGER : SHORTER ;\n }\n else {\n n = m ;\n qprefer = 0 ;\n }\n if ( ! SEE ( '}\n' ) ) {\n ERR ( REG_BADBR ) ;\n return ;\n }\n NEXT ( ) ;\n break ;\n default : m = n = 1 ;\n qprefer = 0 ;\n break ;\n }\n if ( m == 0 && n == 0 ) {\n if ( atom != NULL ) freesubre ( v , atom ) ;\n if ( atomtype == '(' ) v -> subs [ subno ] = NULL ;\n delsub ( v -> nfa , lp , rp ) ;\n EMPTYARC ( lp , rp ) ;\n return ;\n }\n assert ( ! MESSY ( top -> flags ) ) ;\n f = top -> flags | qprefer | ( ( atom != NULL ) ? atom -> flags : 0 ) ;\n if ( atomtype != '(' && atomtype != BACKREF && ! MESSY ( UP ( f ) ) ) {\n if ( ! ( m == 1 && n == 1 ) ) repeat ( v , lp , rp , m , n ) ;\n if ( atom != NULL ) freesubre ( v , atom ) ;\n top -> flags = f ;\n return ;\n }\n if ( atom == NULL ) {\n atom = subre ( v , '=' , 0 , lp , rp ) ;\n NOERR ( ) ;\n }\n s = newstate ( v -> nfa ) ;\n s2 = newstate ( v -> nfa ) ;\n NOERR ( ) ;\n moveouts ( v -> nfa , lp , s ) ;\n moveins ( v -> nfa , rp , s2 ) ;\n NOERR ( ) ;\n atom -> begin = s ;\n atom -> end = s2 ;\n s = newstate ( v -> nfa ) ;\n NOERR ( ) ;\n EMPTYARC ( lp , s ) ;\n NOERR ( ) ;\n t = subre ( v , '.' , COMBINE ( qprefer , atom -> flags ) , lp , rp ) ;\n NOERR ( ) ;\n t -> left = atom ;\n atomp = & t -> left ;\n assert ( top -> op == '=' && top -> left == NULL && top -> right == NULL ) ;\n top -> left = subre ( v , '=' , top -> flags , top -> begin , lp ) ;\n NOERR ( ) ;\n top -> op = '.' ;\n top -> right = t ;\n if ( atomtype == BACKREF ) {\n assert ( atom -> begin -> nouts == 1 ) ;\n delsub ( v -> nfa , atom -> begin , atom -> end ) ;\n assert ( v -> subs [ subno ] != NULL ) ;\n dupnfa ( v -> nfa , v -> subs [ subno ] -> begin , v -> subs [ subno ] -> end , atom -> begin , atom -> end ) ;\n NOERR ( ) ;\n }\n if ( atomtype == BACKREF ) {\n EMPTYARC ( s , atom -> begin ) ;\n repeat ( v , atom -> begin , atom -> end , m , n ) ;\n atom -> min = ( short ) m ;\n atom -> max = ( short ) n ;\n atom -> flags |= COMBINE ( qprefer , atom -> flags ) ;\n s2 = atom -> end ;\n }\n else if ( m == 1 && n == 1 ) {\n EMPTYARC ( s , atom -> begin ) ;\n s2 = atom -> end ;\n }\n else if ( m > 0 && ! ( atom -> flags & BACKR ) ) {\n dupnfa ( v -> nfa , atom -> begin , atom -> end , s , atom -> begin ) ;\n assert ( m >= 1 && m != DUPINF && n >= 1 ) ;\n repeat ( v , s , atom -> begin , m - 1 , ( n == DUPINF ) ? n : n - 1 ) ;\n f = COMBINE ( qprefer , atom -> flags ) ;\n t = subre ( v , '.' , f , s , atom -> end ) ;\n NOERR ( ) ;\n t -> left = subre ( v , '=' , PREF ( f ) , s , atom -> begin ) ;\n NOERR ( ) ;\n t -> right = atom ;\n * atomp = t ;\n s2 = atom -> end ;\n }\n else {\n s2 = newstate ( v -> nfa ) ;\n NOERR ( ) ;\n moveouts ( v -> nfa , atom -> end , s2 ) ;\n NOERR ( ) ;\n dupnfa ( v -> nfa , atom -> begin , atom -> end , s , s2 ) ;\n repeat ( v , s , s2 , m , n ) ;\n f = COMBINE ( qprefer , atom -> flags ) ;\n t = subre ( v , '*' , f , s , s2 ) ;\n NOERR ( ) ;\n t -> min = ( short ) m ;\n t -> max = ( short ) n ;\n t -> left = atom ;\n * atomp = t ;\n }\n t = top -> right ;\n if ( ! ( SEE ( '|' ) || SEE ( stopper ) || SEE ( EOS ) ) ) t -> right = parsebranch ( v , stopper , type , s2 , rp , 1 ) ;\n else {\n EMPTYARC ( s2 , rp ) ;\n t -> right = subre ( v , '=' , 0 , s2 , rp ) ;\n }\n NOERR ( ) ;\n assert ( SEE ( '|' ) || SEE ( stopper ) || SEE ( EOS ) ) ;\n t -> flags |= COMBINE ( t -> flags , t -> right -> flags ) ;\n top -> flags |= COMBINE ( top -> flags , t -> flags ) ;\n }"}
{"idx": 10708, "target": 0, "func": "int WriteTTC ( const char * filename , struct sflist * sfs , enum fontformat format , enum bitmapformat bf , int flags , int layer , enum ttc_flags ttcflags ) {\n struct sflist * sfitem , * sfi2 ;\n int ok = 1 ;\n FILE * ttc ;\n int cnt , offset ;\n int dobruteforce ;\n struct alltabs * ret ;\n SplineFont dummysf ;\n if ( strstr ( filename , \"://\" ) != NULL ) {\n if ( ( ttc = tmpfile ( ) ) == NULL ) return ( 0 ) ;\n }\n else {\n if ( ( ttc = fopen ( filename , \"wb+\" ) ) == NULL ) return ( 0 ) ;\n }\n format = ( ttcflags & ttc_flag_cff ) ? ff_otf : ff_ttf ;\n dobruteforce = true ;\n if ( ( ttcflags & ttc_flag_trymerge ) && bf == bf_none ) {\n dobruteforce = false ;\n ret = ttc_prep ( sfs , format , bf , flags , layer , & dummysf ) ;\n if ( ret == NULL ) dobruteforce = true ;\n else ttc_dump ( ttc , ret , format , flags , ttcflags ) ;\n free ( ret ) ;\n }\n if ( dobruteforce ) {\n for ( sfitem = sfs , cnt = 0 ;\n sfitem != NULL ;\n sfitem = sfitem -> next , ++ cnt ) {\n sfitem -> tempttf = tmpfile ( ) ;\n if ( sfitem -> tempttf == NULL ) ok = 0 ;\n else ok = _WriteTTFFont ( sfitem -> tempttf , sfitem -> sf , format , sfitem -> sizes , bf , flags & ~ ttf_flag_dummyDSIG , sfitem -> map , layer ) ;\n if ( ! ok ) {\n for ( sfi2 = sfs ;\n sfi2 != NULL ;\n sfi2 = sfi2 -> next ) if ( sfi2 -> tempttf != NULL ) fclose ( sfi2 -> tempttf ) ;\n fclose ( ttc ) ;\n return ( true ) ;\n }\n fseek ( sfitem -> tempttf , 0 , SEEK_END ) ;\n sfitem -> len = ftell ( sfitem -> tempttf ) ;\n }\n putlong ( ttc , CHR ( 't' , 't' , 'c' , 'f' ) ) ;\n if ( flags & ttf_flag_dummyDSIG ) {\n putlong ( ttc , 0x00020000 ) ;\n offset = 4 * ( 3 + cnt + 4 ) ;\n }\n else {\n putlong ( ttc , 0x00010000 ) ;\n offset = 4 * ( 3 + cnt ) ;\n }\n putlong ( ttc , cnt ) ;\n for ( sfitem = sfs ;\n sfitem != NULL ;\n sfitem = sfitem -> next ) {\n putlong ( ttc , offset ) ;\n offset += ( ( sfitem -> len + 3 ) >> 2 ) << 2 ;\n }\n if ( flags & ttf_flag_dummyDSIG ) {\n putlong ( ttc , CHR ( 'D' , 'S' , 'I' , 'G' ) ) ;\n putlong ( ttc , 8 ) ;\n putlong ( ttc , 0x00000001 ) ;\n putlong ( ttc , 0 ) ;\n }\n for ( sfitem = sfs ;\n sfitem != NULL ;\n sfitem = sfitem -> next ) CopySFNTAndFixup ( ttc , sfitem -> tempttf ) ;\n if ( ftell ( ttc ) != offset ) IError ( \"Miscalculated offsets in ttc\" ) ;\n }\n else if ( strstr ( filename , \"://\" ) != NULL && ok ) ok = URLFromFile ( filename , ttc ) ;\n if ( ferror ( ttc ) ) ok = false ;\n if ( fclose ( ttc ) == - 1 ) ok = false ;\n if ( ! ok ) LogError ( _ ( \"Something went wrong\" ) ) ;\n return ( ok ) ;\n }"}
{"idx": 10709, "target": 0, "func": "TEST_F ( TemplateURLTest , SearchClient ) {\n const std : : string base_url_str ( \"http://google.com/?\" ) ;\n const std : : string terms_str ( \"{\nsearchTerms}\n&{\ngoogle:searchClient}\n\" ) ;\n const std : : string full_url_str = base_url_str + terms_str ;\n const base : : string16 terms ( ASCIIToUTF16 ( terms_str ) ) ;\n search_terms_data_ . set_google_base_url ( base_url_str ) ;\n TemplateURLData data ;\n data . SetURL ( full_url_str ) ;\n TemplateURL url ( data ) ;\n EXPECT_TRUE ( url . url_ref ( ) . IsValid ( search_terms_data_ ) ) ;\n ASSERT_TRUE ( url . url_ref ( ) . SupportsReplacement ( search_terms_data_ ) ) ;\n TemplateURLRef : : SearchTermsArgs search_terms_args ( ASCIIToUTF16 ( \"foobar\" ) ) ;\n GURL result ( url . url_ref ( ) . ReplaceSearchTerms ( search_terms_args , search_terms_data_ ) ) ;\n ASSERT_TRUE ( result . is_valid ( ) ) ;\n EXPECT_EQ ( \"http://google.com/?foobar&\" , result . spec ( ) ) ;\n search_terms_data_ . set_search_client ( \"search_client\" ) ;\n GURL result_2 ( url . url_ref ( ) . ReplaceSearchTerms ( search_terms_args , search_terms_data_ ) ) ;\n ASSERT_TRUE ( result_2 . is_valid ( ) ) ;\n EXPECT_EQ ( \"http://google.com/?foobar&client=search_client&\" , result_2 . spec ( ) ) ;\n }"}
{"idx": 10710, "target": 0, "func": "static inline void tm2_high_chroma ( int * data , int stride , int * last , int * CD , int * deltas ) {\n int i , j ;\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n CD [ j ] += deltas [ i + j * 2 ] ;\n last [ i ] += CD [ j ] ;\n data [ i ] = last [ i ] ;\n }\n data += stride ;\n }\n }"}
{"idx": 10711, "target": 0, "func": "static char * default_opaque_literal_attr ( tvbuff_t * tvb , guint32 offset , const char * token _U_ , guint8 codepage _U_ , guint32 * length ) {\n guint32 data_len = tvb_get_guintvar ( tvb , offset , length ) ;\n char * str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"(%d bytes of opaque data)\" , data_len ) ;\n * length += data_len ;\n return str ;\n }"}
{"idx": 10712, "target": 0, "func": "CURLcode Curl_add_buffer ( Curl_send_buffer * in , const void * inptr , size_t size ) {\n char * new_rb ;\n size_t new_size ;\n if ( ~ size < in -> size_used ) {\n Curl_safefree ( in -> buffer ) ;\n free ( in ) ;\n return CURLE_OUT_OF_MEMORY ;\n }\n if ( ! in -> buffer || ( ( in -> size_used + size ) > ( in -> size_max - 1 ) ) ) {\n if ( ( size > ( size_t ) - 1 / 2 ) || ( in -> size_used > ( size_t ) - 1 / 2 ) || ( ~ ( size * 2 ) < ( in -> size_used * 2 ) ) ) new_size = ( size_t ) - 1 ;\n else new_size = ( in -> size_used + size ) * 2 ;\n if ( in -> buffer ) new_rb = realloc ( in -> buffer , new_size ) ;\n else new_rb = malloc ( new_size ) ;\n if ( ! new_rb ) {\n Curl_safefree ( in -> buffer ) ;\n free ( in ) ;\n return CURLE_OUT_OF_MEMORY ;\n }\n in -> buffer = new_rb ;\n in -> size_max = new_size ;\n }\n memcpy ( & in -> buffer [ in -> size_used ] , inptr , size ) ;\n in -> size_used += size ;\n return CURLE_OK ;\n }"}
{"idx": 10713, "target": 0, "func": "inline static void _slurm_rpc_job_notify ( slurm_msg_t * msg ) {\n int error_code ;\n slurmctld_lock_t job_read_lock = {\n NO_LOCK , READ_LOCK , NO_LOCK , NO_LOCK , READ_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n job_notify_msg_t * notify_msg = ( job_notify_msg_t * ) msg -> data ;\n struct job_record * job_ptr ;\n DEF_TIMERS ;\n START_TIMER ;\n debug ( \"Processing RPC: REQUEST_JOB_NOTIFY from uid=%d\" , uid ) ;\n lock_slurmctld ( job_read_lock ) ;\n job_ptr = find_job_record ( notify_msg -> job_id ) ;\n if ( ! job_ptr && ! _route_msg_to_origin ( msg , NULL , notify_msg -> job_id , uid ) ) {\n unlock_slurmctld ( job_read_lock ) ;\n return ;\n }\n if ( ! job_ptr ) error_code = ESLURM_INVALID_JOB_ID ;\n else if ( job_ptr -> batch_flag && fed_mgr_cluster_rec && job_ptr -> fed_details && fed_mgr_is_origin_job ( job_ptr ) && IS_JOB_REVOKED ( job_ptr ) && job_ptr -> fed_details -> cluster_lock && ( job_ptr -> fed_details -> cluster_lock != fed_mgr_cluster_rec -> fed . id ) ) {\n slurmdb_cluster_rec_t * dst = fed_mgr_get_cluster_by_id ( job_ptr -> fed_details -> cluster_lock ) ;\n if ( dst ) {\n slurm_send_reroute_msg ( msg , dst ) ;\n info ( \"%s: %s job %d uid %d routed to %s\" , __func__ , rpc_num2string ( msg -> msg_type ) , job_ptr -> job_id , uid , dst -> name ) ;\n unlock_slurmctld ( job_read_lock ) ;\n END_TIMER2 ( \"_slurm_rpc_job_notify\" ) ;\n return ;\n }\n error ( \"couldn't find cluster by cluster id %d\" , job_ptr -> fed_details -> cluster_lock ) ;\n error_code = ESLURM_INVALID_CLUSTER_NAME ;\n }\n else if ( ( job_ptr -> user_id == uid ) || validate_slurm_user ( uid ) ) error_code = srun_user_message ( job_ptr , notify_msg -> message ) ;\n else {\n error_code = ESLURM_USER_ID_MISSING ;\n error ( \"Security violation, REQUEST_JOB_NOTIFY RPC \" \"from uid=%d for jobid %u owner %d\" , uid , notify_msg -> job_id , job_ptr -> user_id ) ;\n }\n unlock_slurmctld ( job_read_lock ) ;\n END_TIMER2 ( \"_slurm_rpc_job_notify\" ) ;\n slurm_send_rc_msg ( msg , error_code ) ;\n }"}
{"idx": 10714, "target": 0, "func": "char * Curl_memdup ( const char * src , size_t length ) {\n char * buffer = malloc ( length ) ;\n if ( ! buffer ) return NULL ;\n memcpy ( buffer , src , length ) ;\n return buffer ;\n }"}
{"idx": 10715, "target": 0, "func": "static void * Type_UcrBg_Read ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number * nItems , cmsUInt32Number SizeOfTag ) {\n cmsUcrBg * n = ( cmsUcrBg * ) _cmsMallocZero ( self -> ContextID , sizeof ( cmsUcrBg ) ) ;\n cmsUInt32Number CountUcr , CountBg ;\n char * ASCIIString ;\n * nItems = 0 ;\n if ( n == NULL ) return NULL ;\n if ( ! _cmsReadUInt32Number ( io , & CountUcr ) ) return NULL ;\n if ( SizeOfTag < sizeof ( cmsUInt32Number ) ) return NULL ;\n SizeOfTag -= sizeof ( cmsUInt32Number ) ;\n n -> Ucr = cmsBuildTabulatedToneCurve16 ( self -> ContextID , CountUcr , NULL ) ;\n if ( n -> Ucr == NULL ) return NULL ;\n if ( ! _cmsReadUInt16Array ( io , CountUcr , n -> Ucr -> Table16 ) ) return NULL ;\n if ( SizeOfTag < sizeof ( cmsUInt32Number ) ) return NULL ;\n SizeOfTag -= CountUcr * sizeof ( cmsUInt16Number ) ;\n if ( ! _cmsReadUInt32Number ( io , & CountBg ) ) return NULL ;\n if ( SizeOfTag < sizeof ( cmsUInt32Number ) ) return NULL ;\n SizeOfTag -= sizeof ( cmsUInt32Number ) ;\n n -> Bg = cmsBuildTabulatedToneCurve16 ( self -> ContextID , CountBg , NULL ) ;\n if ( n -> Bg == NULL ) return NULL ;\n if ( ! _cmsReadUInt16Array ( io , CountBg , n -> Bg -> Table16 ) ) return NULL ;\n if ( SizeOfTag < CountBg * sizeof ( cmsUInt16Number ) ) return NULL ;\n SizeOfTag -= CountBg * sizeof ( cmsUInt16Number ) ;\n if ( SizeOfTag == UINT_MAX ) return NULL ;\n n -> Desc = cmsMLUalloc ( self -> ContextID , 1 ) ;\n if ( n -> Desc == NULL ) return NULL ;\n ASCIIString = ( char * ) _cmsMalloc ( self -> ContextID , SizeOfTag + 1 ) ;\n if ( io -> Read ( io , ASCIIString , sizeof ( char ) , SizeOfTag ) != SizeOfTag ) return NULL ;\n ASCIIString [ SizeOfTag ] = 0 ;\n cmsMLUsetASCII ( n -> Desc , cmsNoLanguage , cmsNoCountry , ASCIIString ) ;\n _cmsFree ( self -> ContextID , ASCIIString ) ;\n * nItems = 1 ;\n return ( void * ) n ;\n }"}
{"idx": 10716, "target": 0, "func": "void nautilus_directory_cancel_callback_internal ( NautilusDirectory * directory , NautilusFile * file , NautilusDirectoryCallback directory_callback , NautilusFileCallback file_callback , gpointer callback_data ) {\n ReadyCallback callback ;\n GList * node ;\n if ( directory == NULL ) {\n return ;\n }\n g_assert ( NAUTILUS_IS_DIRECTORY ( directory ) ) ;\n g_assert ( file == NULL || NAUTILUS_IS_FILE ( file ) ) ;\n g_assert ( file != NULL || directory_callback != NULL ) ;\n g_assert ( file == NULL || file_callback != NULL ) ;\n callback . file = file ;\n if ( file == NULL ) {\n callback . callback . directory = directory_callback ;\n }\n else {\n callback . callback . file = file_callback ;\n }\n callback . callback_data = callback_data ;\n do {\n node = g_list_find_custom ( directory -> details -> call_when_ready_list , & callback , ready_callback_key_compare ) ;\n if ( node != NULL ) {\n remove_callback_link ( directory , node ) ;\n nautilus_directory_async_state_changed ( directory ) ;\n }\n }\n while ( node != NULL ) ;\n }"}
{"idx": 10717, "target": 0, "func": "rfbBool rfbSendLastRectMarker ( rfbClientPtr cl ) {\n rfbFramebufferUpdateRectHeader rect ;\n if ( cl -> ublen + sz_rfbFramebufferUpdateRectHeader > UPDATE_BUF_SIZE ) {\n if ( ! rfbSendUpdateBuf ( cl ) ) return FALSE ;\n }\n rect . encoding = Swap32IfLE ( rfbEncodingLastRect ) ;\n rect . r . x = 0 ;\n rect . r . y = 0 ;\n rect . r . w = 0 ;\n rect . r . h = 0 ;\n memcpy ( & cl -> updateBuf [ cl -> ublen ] , ( char * ) & rect , sz_rfbFramebufferUpdateRectHeader ) ;\n cl -> ublen += sz_rfbFramebufferUpdateRectHeader ;\n rfbStatRecordEncodingSent ( cl , rfbEncodingLastRect , sz_rfbFramebufferUpdateRectHeader , sz_rfbFramebufferUpdateRectHeader ) ;\n return TRUE ;\n }"}
{"idx": 10718, "target": 1, "func": "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 readonly_source_fs ) {\n GFile * dest , * new_dest ;\n g_autofree gchar * dest_uri = NULL ;\n GError * error ;\n GFileCopyFlags flags ;\n char * primary , * secondary , * details ;\n int response ;\n ProgressData pdata ;\n gboolean would_recurse , is_merge ;\n CommonJob * job ;\n gboolean res ;\n int unique_name_nr ;\n gboolean handled_invalid_filename ;\n job = ( CommonJob * ) copy_job ;\n if ( should_skip_file ( job , src ) ) {\n * skipped_file = TRUE ;\n return ;\n }\n unique_name_nr = 1 ;\n handled_invalid_filename = * dest_fs_type != NULL ;\n if ( unique_names ) {\n dest = get_unique_target_file ( src , dest_dir , same_fs , * dest_fs_type , unique_name_nr ++ ) ;\n }\n else if ( copy_job -> target_name != NULL ) {\n dest = get_target_file_with_custom_name ( src , dest_dir , * dest_fs_type , same_fs , copy_job -> target_name ) ;\n }\n else {\n dest = get_target_file ( src , dest_dir , * dest_fs_type , same_fs ) ;\n }\n if ( test_dir_is_parent ( dest_dir , src ) ) {\n if ( job -> skip_all_error ) {\n goto out ;\n }\n primary = copy_job -> is_move ? g_strdup ( _ ( \"You cannot move a folder into itself.\" ) ) : g_strdup ( _ ( \"You cannot copy a folder into itself.\" ) ) ;\n secondary = g_strdup ( _ ( \"The destination folder is inside the source folder.\" ) ) ;\n response = run_cancel_or_skip_warning ( job , primary , secondary , NULL , source_info -> num_files , source_info -> num_files - transfer_info -> num_files ) ;\n if ( response == 0 || response == GTK_RESPONSE_DELETE_EVENT ) {\n abort_job ( job ) ;\n }\n else if ( response == 1 ) {\n job -> skip_all_error = TRUE ;\n }\n else if ( response == 2 ) {\n }\n else {\n g_assert_not_reached ( ) ;\n }\n goto out ;\n }\n if ( test_dir_is_parent ( src , dest ) ) {\n if ( job -> skip_all_error ) {\n goto out ;\n }\n primary = copy_job -> is_move ? g_strdup ( _ ( \"You cannot move a file over itself.\" ) ) : g_strdup ( _ ( \"You cannot copy a file over itself.\" ) ) ;\n secondary = g_strdup ( _ ( \"The source file would be overwritten by the destination.\" ) ) ;\n response = run_cancel_or_skip_warning ( job , primary , secondary , NULL , source_info -> num_files , source_info -> num_files - transfer_info -> num_files ) ;\n if ( response == 0 || response == GTK_RESPONSE_DELETE_EVENT ) {\n abort_job ( job ) ;\n }\n else if ( response == 1 ) {\n job -> skip_all_error = TRUE ;\n }\n else if ( response == 2 ) {\n }\n else {\n g_assert_not_reached ( ) ;\n }\n goto out ;\n }\n retry : error = NULL ;\n flags = G_FILE_COPY_NOFOLLOW_SYMLINKS ;\n if ( overwrite ) {\n flags |= G_FILE_COPY_OVERWRITE ;\n }\n if ( readonly_source_fs ) {\n flags |= G_FILE_COPY_TARGET_DEFAULT_PERMS ;\n }\n pdata . job = copy_job ;\n pdata . last_size = 0 ;\n pdata . source_info = source_info ;\n pdata . transfer_info = transfer_info ;\n if ( copy_job -> is_move ) {\n res = g_file_move ( src , dest , flags , job -> cancellable , copy_file_progress_callback , & pdata , & error ) ;\n }\n else {\n res = g_file_copy ( src , dest , flags , job -> cancellable , copy_file_progress_callback , & pdata , & error ) ;\n }\n if ( res ) {\n GFile * real ;\n real = map_possibly_volatile_file_to_real ( dest , job -> cancellable , & error ) ;\n if ( real == NULL ) {\n res = FALSE ;\n }\n else {\n g_object_unref ( dest ) ;\n dest = real ;\n }\n }\n if ( res ) {\n transfer_info -> num_files ++ ;\n report_copy_progress ( copy_job , source_info , transfer_info ) ;\n if ( debuting_files ) {\n dest_uri = g_file_get_uri ( dest ) ;\n if ( position ) {\n nautilus_file_changes_queue_schedule_position_set ( dest , * position , job -> screen_num ) ;\n }\n else if ( eel_uri_is_desktop ( dest_uri ) ) {\n nautilus_file_changes_queue_schedule_position_remove ( dest ) ;\n }\n g_hash_table_replace ( debuting_files , g_object_ref ( dest ) , GINT_TO_POINTER ( TRUE ) ) ;\n }\n if ( copy_job -> is_move ) {\n nautilus_file_changes_queue_file_moved ( src , dest ) ;\n }\n else {\n nautilus_file_changes_queue_file_added ( dest ) ;\n }\n if ( copy_job -> desktop_location != NULL && g_file_equal ( copy_job -> desktop_location , dest_dir ) && is_trusted_desktop_file ( src , job -> cancellable ) ) {\n mark_desktop_file_trusted ( job , job -> cancellable , dest , FALSE ) ;\n }\n if ( job -> undo_info != NULL ) {\n nautilus_file_undo_info_ext_add_origin_target_pair ( NAUTILUS_FILE_UNDO_INFO_EXT ( job -> undo_info ) , src , dest ) ;\n }\n g_object_unref ( dest ) ;\n return ;\n }\n if ( ! handled_invalid_filename && IS_IO_ERROR ( error , INVALID_FILENAME ) ) {\n handled_invalid_filename = TRUE ;\n g_assert ( * dest_fs_type == NULL ) ;\n * dest_fs_type = query_fs_type ( dest_dir , job -> cancellable ) ;\n if ( unique_names ) {\n new_dest = get_unique_target_file ( src , dest_dir , same_fs , * dest_fs_type , unique_name_nr ) ;\n }\n else {\n new_dest = get_target_file ( src , dest_dir , * dest_fs_type , same_fs ) ;\n }\n if ( ! g_file_equal ( dest , new_dest ) ) {\n g_object_unref ( dest ) ;\n dest = new_dest ;\n g_error_free ( error ) ;\n goto retry ;\n }\n else {\n g_object_unref ( new_dest ) ;\n }\n }\n if ( ! overwrite && IS_IO_ERROR ( error , EXISTS ) ) {\n gboolean is_merge ;\n FileConflictResponse * response ;\n g_error_free ( error ) ;\n if ( unique_names ) {\n g_object_unref ( dest ) ;\n dest = get_unique_target_file ( src , dest_dir , same_fs , * dest_fs_type , unique_name_nr ++ ) ;\n goto retry ;\n }\n is_merge = FALSE ;\n if ( is_dir ( dest ) && is_dir ( src ) ) {\n is_merge = TRUE ;\n }\n if ( ( is_merge && job -> merge_all ) || ( ! is_merge && job -> replace_all ) ) {\n overwrite = TRUE ;\n goto retry ;\n }\n if ( job -> skip_all_conflict ) {\n goto out ;\n }\n response = handle_copy_move_conflict ( job , src , dest , dest_dir ) ;\n if ( response -> id == GTK_RESPONSE_CANCEL || response -> id == GTK_RESPONSE_DELETE_EVENT ) {\n file_conflict_response_free ( response ) ;\n abort_job ( job ) ;\n }\n else if ( response -> id == CONFLICT_RESPONSE_SKIP ) {\n if ( response -> apply_to_all ) {\n job -> skip_all_conflict = TRUE ;\n }\n file_conflict_response_free ( response ) ;\n }\n else if ( response -> id == CONFLICT_RESPONSE_REPLACE ) {\n if ( response -> apply_to_all ) {\n if ( is_merge ) {\n job -> merge_all = TRUE ;\n }\n else {\n job -> replace_all = TRUE ;\n }\n }\n overwrite = TRUE ;\n file_conflict_response_free ( response ) ;\n goto retry ;\n }\n else if ( response -> id == CONFLICT_RESPONSE_RENAME ) {\n g_object_unref ( dest ) ;\n dest = get_target_file_for_display_name ( dest_dir , response -> new_name ) ;\n file_conflict_response_free ( response ) ;\n goto retry ;\n }\n else {\n g_assert_not_reached ( ) ;\n }\n }\n else if ( overwrite && IS_IO_ERROR ( error , IS_DIRECTORY ) ) {\n gboolean existing_file_deleted ;\n DeleteExistingFileData data ;\n g_error_free ( error ) ;\n data . job = job ;\n data . source = src ;\n existing_file_deleted = delete_file_recursively ( dest , job -> cancellable , existing_file_removed_callback , & data ) ;\n if ( existing_file_deleted ) {\n goto retry ;\n }\n }\n else if ( IS_IO_ERROR ( error , WOULD_RECURSE ) || IS_IO_ERROR ( error , WOULD_MERGE ) ) {\n is_merge = error -> code == G_IO_ERROR_WOULD_MERGE ;\n would_recurse = error -> code == G_IO_ERROR_WOULD_RECURSE ;\n g_error_free ( error ) ;\n if ( overwrite && would_recurse ) {\n error = NULL ;\n if ( ! g_file_delete ( dest , job -> cancellable , & error ) && ! IS_IO_ERROR ( error , NOT_FOUND ) ) {\n if ( job -> skip_all_error ) {\n g_error_free ( error ) ;\n goto out ;\n }\n if ( copy_job -> is_move ) {\n primary = f ( _ ( \"Error while moving \u201c%B\u201d.\" ) , src ) ;\n }\n else {\n primary = f ( _ ( \"Error while copying \u201c%B\u201d.\" ) , src ) ;\n }\n secondary = f ( _ ( \"Could not remove the already existing file with the same name in %F.\" ) , dest_dir ) ;\n details = error -> message ;\n response = run_warning ( job , primary , secondary , details , TRUE , CANCEL , SKIP_ALL , SKIP , NULL ) ;\n g_error_free ( error ) ;\n if ( response == 0 || response == GTK_RESPONSE_DELETE_EVENT ) {\n abort_job ( job ) ;\n }\n else if ( response == 1 ) {\n job -> skip_all_error = TRUE ;\n }\n else if ( response == 2 ) {\n }\n else {\n g_assert_not_reached ( ) ;\n }\n goto out ;\n }\n if ( error ) {\n g_error_free ( error ) ;\n error = NULL ;\n }\n nautilus_file_changes_queue_file_removed ( dest ) ;\n }\n if ( is_merge ) {\n same_fs = FALSE ;\n }\n if ( ! copy_move_directory ( copy_job , src , & dest , same_fs , would_recurse , dest_fs_type , source_info , transfer_info , debuting_files , skipped_file , readonly_source_fs ) ) {\n g_assert ( * dest_fs_type != NULL ) ;\n handled_invalid_filename = TRUE ;\n goto retry ;\n }\n g_object_unref ( dest ) ;\n return ;\n }\n else if ( IS_IO_ERROR ( error , CANCELLED ) ) {\n g_error_free ( error ) ;\n }\n else {\n if ( job -> skip_all_error ) {\n g_error_free ( error ) ;\n goto out ;\n }\n primary = f ( _ ( \"Error while copying \u201c%B\u201d.\" ) , src ) ;\n secondary = f ( _ ( \"There was an error copying the file into %F.\" ) , dest_dir ) ;\n details = error -> message ;\n response = run_cancel_or_skip_warning ( job , primary , secondary , details , source_info -> num_files , source_info -> num_files - transfer_info -> num_files ) ;\n g_error_free ( error ) ;\n if ( response == 0 || response == GTK_RESPONSE_DELETE_EVENT ) {\n abort_job ( job ) ;\n }\n else if ( response == 1 ) {\n job -> skip_all_error = TRUE ;\n }\n else if ( response == 2 ) {\n }\n else {\n g_assert_not_reached ( ) ;\n }\n }\n out : * skipped_file = TRUE ;\n g_object_unref ( dest ) ;\n }"}
{"idx": 10719, "target": 0, "func": "static int aes_xts_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n EVP_AES_XTS_CTX * xctx = EVP_C_DATA ( EVP_AES_XTS_CTX , ctx ) ;\n if ( ! iv && ! key ) return 1 ;\n if ( key ) do {\n # ifdef AES_XTS_ASM xctx -> stream = enc ? AES_xts_encrypt : AES_xts_decrypt ;\n # else xctx -> stream = NULL ;\n # endif # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n if ( enc ) {\n HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) HWAES_encrypt ;\n # ifdef HWAES_xts_encrypt xctx -> stream = HWAES_xts_encrypt ;\n # endif }\n else {\n HWAES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) HWAES_decrypt ;\n # ifdef HWAES_xts_decrypt xctx -> stream = HWAES_xts_decrypt ;\n # endif }\n HWAES_set_encrypt_key ( key + EVP_CIPHER_CTX_key_length ( ctx ) / 2 , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks2 . ks ) ;\n xctx -> xts . block2 = ( block128_f ) HWAES_encrypt ;\n xctx -> xts . key1 = & xctx -> ks1 ;\n break ;\n }"}
{"idx": 10720, "target": 1, "func": "static int escape124_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n Escape124Context * s = avctx -> priv_data ;\n GetBitContext gb ;\n unsigned frame_flags , frame_size ;\n unsigned i ;\n unsigned superblock_index , cb_index = 1 , superblock_col_index = 0 , superblocks_per_row = avctx -> width / 8 , skip = - 1 ;\n uint16_t * old_frame_data , * new_frame_data ;\n unsigned old_stride , new_stride ;\n AVFrame new_frame = {\n {\n 0 }\n }\n ;\n init_get_bits ( & gb , buf , buf_size * 8 ) ;\n if ( ! can_safely_read ( & gb , 64 ) ) return - 1 ;\n frame_flags = get_bits_long ( & gb , 32 ) ;\n frame_size = get_bits_long ( & gb , 32 ) ;\n if ( ! ( frame_flags & 0x114 ) || ! ( frame_flags & 0x7800000 ) ) {\n av_log ( NULL , AV_LOG_DEBUG , \"Skipping frame\\n\" ) ;\n * got_frame = 1 ;\n * ( AVFrame * ) data = s -> frame ;\n return frame_size ;\n }\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n if ( frame_flags & ( 1 << ( 17 + i ) ) ) {\n unsigned cb_depth , cb_size ;\n if ( i == 2 ) {\n cb_size = get_bits_long ( & gb , 20 ) ;\n cb_depth = av_log2 ( cb_size - 1 ) + 1 ;\n }\n else {\n cb_depth = get_bits ( & gb , 4 ) ;\n if ( i == 0 ) {\n cb_size = 1 << cb_depth ;\n }\n else {\n cb_size = s -> num_superblocks << cb_depth ;\n }\n }\n av_free ( s -> codebooks [ i ] . blocks ) ;\n s -> codebooks [ i ] = unpack_codebook ( & gb , cb_depth , cb_size ) ;\n if ( ! s -> codebooks [ i ] . blocks ) return - 1 ;\n }\n }\n new_frame . reference = 3 ;\n if ( ff_get_buffer ( avctx , & new_frame ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return - 1 ;\n }\n new_frame_data = ( uint16_t * ) new_frame . data [ 0 ] ;\n new_stride = new_frame . linesize [ 0 ] / 2 ;\n old_frame_data = ( uint16_t * ) s -> frame . data [ 0 ] ;\n old_stride = s -> frame . linesize [ 0 ] / 2 ;\n for ( superblock_index = 0 ;\n superblock_index < s -> num_superblocks ;\n superblock_index ++ ) {\n MacroBlock mb ;\n SuperBlock sb ;\n unsigned multi_mask = 0 ;\n if ( skip == - 1 ) {\n skip = decode_skip_count ( & gb ) ;\n }\n if ( skip ) {\n copy_superblock ( new_frame_data , new_stride , old_frame_data , old_stride ) ;\n }\n else {\n copy_superblock ( sb . pixels , 8 , old_frame_data , old_stride ) ;\n while ( can_safely_read ( & gb , 1 ) && ! get_bits1 ( & gb ) ) {\n unsigned mask ;\n mb = decode_macroblock ( s , & gb , & cb_index , superblock_index ) ;\n mask = get_bits ( & gb , 16 ) ;\n multi_mask |= mask ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n if ( mask & mask_matrix [ i ] ) {\n insert_mb_into_sb ( & sb , mb , i ) ;\n }\n }\n }\n if ( can_safely_read ( & gb , 1 ) && ! get_bits1 ( & gb ) ) {\n unsigned inv_mask = get_bits ( & gb , 4 ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n if ( inv_mask & ( 1 << i ) ) {\n multi_mask ^= 0xF << i * 4 ;\n }\n else {\n multi_mask ^= get_bits ( & gb , 4 ) << i * 4 ;\n }\n }\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n if ( multi_mask & mask_matrix [ i ] ) {\n if ( ! can_safely_read ( & gb , 1 ) ) break ;\n mb = decode_macroblock ( s , & gb , & cb_index , superblock_index ) ;\n insert_mb_into_sb ( & sb , mb , i ) ;\n }\n }\n }\n else if ( frame_flags & ( 1 << 16 ) ) {\n while ( can_safely_read ( & gb , 1 ) && ! get_bits1 ( & gb ) ) {\n mb = decode_macroblock ( s , & gb , & cb_index , superblock_index ) ;\n insert_mb_into_sb ( & sb , mb , get_bits ( & gb , 4 ) ) ;\n }\n }\n copy_superblock ( new_frame_data , new_stride , sb . pixels , 8 ) ;\n }\n superblock_col_index ++ ;\n new_frame_data += 8 ;\n if ( old_frame_data ) old_frame_data += 8 ;\n if ( superblock_col_index == superblocks_per_row ) {\n new_frame_data += new_stride * 8 - superblocks_per_row * 8 ;\n if ( old_frame_data ) old_frame_data += old_stride * 8 - superblocks_per_row * 8 ;\n superblock_col_index = 0 ;\n }\n skip -- ;\n }\n av_log ( NULL , AV_LOG_DEBUG , \"Escape sizes: %i, %i, %i\\n\" , frame_size , buf_size , get_bits_count ( & gb ) / 8 ) ;\n if ( s -> frame . data [ 0 ] ) avctx -> release_buffer ( avctx , & s -> frame ) ;\n * ( AVFrame * ) data = s -> frame = new_frame ;\n * got_frame = 1 ;\n return frame_size ;\n }"}
{"idx": 10721, "target": 0, "func": "static int inflate ( struct mszipd_stream * zip ) {\n unsigned int last_block , block_type , distance , length , this_run , i ;\n register unsigned int bit_buffer ;\n register int bits_left ;\n register unsigned short sym ;\n unsigned char * i_ptr , * i_end ;\n RESTORE_BITS ;\n do {\n READ_BITS ( last_block , 1 ) ;\n READ_BITS ( block_type , 2 ) ;\n if ( block_type == 0 ) {\n unsigned char lens_buf [ 4 ] ;\n i = bits_left & 7 ;\n REMOVE_BITS ( i ) ;\n for ( i = 0 ;\n ( bits_left >= 8 ) ;\n i ++ ) {\n if ( i == 4 ) return INF_ERR_BITBUF ;\n lens_buf [ i ] = PEEK_BITS ( 8 ) ;\n REMOVE_BITS ( 8 ) ;\n }\n if ( bits_left != 0 ) return INF_ERR_BITBUF ;\n while ( i < 4 ) {\n READ_IF_NEEDED ;\n lens_buf [ i ++ ] = * i_ptr ++ ;\n }\n length = lens_buf [ 0 ] | ( lens_buf [ 1 ] << 8 ) ;\n i = lens_buf [ 2 ] | ( lens_buf [ 3 ] << 8 ) ;\n if ( length != ( ~ i & 0xFFFF ) ) return INF_ERR_COMPLEMENT ;\n while ( length > 0 ) {\n READ_IF_NEEDED ;\n this_run = length ;\n if ( this_run > ( unsigned int ) ( i_end - i_ptr ) ) this_run = i_end - i_ptr ;\n if ( this_run > ( MSZIP_FRAME_SIZE - zip -> window_posn ) ) this_run = MSZIP_FRAME_SIZE - zip -> window_posn ;\n zip -> sys -> copy ( i_ptr , & zip -> window [ zip -> window_posn ] , this_run ) ;\n zip -> window_posn += this_run ;\n i_ptr += this_run ;\n length -= this_run ;\n FLUSH_IF_NEEDED ;\n }\n }\n else if ( ( block_type == 1 ) || ( block_type == 2 ) ) {\n unsigned int match_posn , code ;\n if ( block_type == 1 ) {\n i = 0 ;\n while ( i < 144 ) zip -> LITERAL_len [ i ++ ] = 8 ;\n while ( i < 256 ) zip -> LITERAL_len [ i ++ ] = 9 ;\n while ( i < 280 ) zip -> LITERAL_len [ i ++ ] = 7 ;\n while ( i < 288 ) zip -> LITERAL_len [ i ++ ] = 8 ;\n for ( i = 0 ;\n i < 32 ;\n i ++ ) zip -> DISTANCE_len [ i ] = 5 ;\n }\n else {\n STORE_BITS ;\n if ( ( i = zip_read_lens ( zip ) ) ) return i ;\n RESTORE_BITS ;\n }\n if ( make_decode_table ( MSZIP_LITERAL_MAXSYMBOLS , MSZIP_LITERAL_TABLEBITS , & zip -> LITERAL_len [ 0 ] , & zip -> LITERAL_table [ 0 ] ) ) {\n return INF_ERR_LITERALTBL ;\n }\n if ( make_decode_table ( MSZIP_DISTANCE_MAXSYMBOLS , MSZIP_DISTANCE_TABLEBITS , & zip -> DISTANCE_len [ 0 ] , & zip -> DISTANCE_table [ 0 ] ) ) {\n return INF_ERR_DISTANCETBL ;\n }\n for ( ;\n ;\n ) {\n READ_HUFFSYM ( LITERAL , code ) ;\n if ( code < 256 ) {\n zip -> window [ zip -> window_posn ++ ] = ( unsigned char ) code ;\n FLUSH_IF_NEEDED ;\n }\n else if ( code == 256 ) {\n break ;\n }\n else {\n code -= 257 ;\n if ( code >= 29 ) return INF_ERR_LITCODE ;\n READ_BITS_T ( length , lit_extrabits [ code ] ) ;\n length += lit_lengths [ code ] ;\n READ_HUFFSYM ( DISTANCE , code ) ;\n if ( code >= 30 ) return INF_ERR_DISTCODE ;\n READ_BITS_T ( distance , dist_extrabits [ code ] ) ;\n distance += dist_offsets [ code ] ;\n match_posn = ( ( distance > zip -> window_posn ) ? MSZIP_FRAME_SIZE : 0 ) + zip -> window_posn - distance ;\n if ( length < 12 ) {\n while ( length -- ) {\n zip -> window [ zip -> window_posn ++ ] = zip -> window [ match_posn ++ ] ;\n match_posn &= MSZIP_FRAME_SIZE - 1 ;\n FLUSH_IF_NEEDED ;\n }\n }\n else {\n unsigned char * runsrc , * rundest ;\n do {\n this_run = length ;\n if ( ( match_posn + this_run ) > MSZIP_FRAME_SIZE ) this_run = MSZIP_FRAME_SIZE - match_posn ;\n if ( ( zip -> window_posn + this_run ) > MSZIP_FRAME_SIZE ) this_run = MSZIP_FRAME_SIZE - zip -> window_posn ;\n rundest = & zip -> window [ zip -> window_posn ] ;\n zip -> window_posn += this_run ;\n runsrc = & zip -> window [ match_posn ] ;\n match_posn += this_run ;\n length -= this_run ;\n while ( this_run -- ) * rundest ++ = * runsrc ++ ;\n if ( match_posn == MSZIP_FRAME_SIZE ) match_posn = 0 ;\n FLUSH_IF_NEEDED ;\n }\n while ( length > 0 ) ;\n }\n }\n }\n }\n else {\n return INF_ERR_BLOCKTYPE ;\n }\n }\n while ( ! last_block ) ;\n if ( zip -> window_posn ) {\n if ( zip -> flush_window ( zip , zip -> window_posn ) ) return INF_ERR_FLUSH ;\n }\n STORE_BITS ;\n return 0 ;\n }"}
{"idx": 10722, "target": 0, "func": "WRITE_TRAN ossl_statem_server_write_transition ( SSL * s ) {\n OSSL_STATEM * st = & s -> statem ;\n switch ( st -> hand_state ) {\n case TLS_ST_BEFORE : return WRITE_TRAN_FINISHED ;\n case TLS_ST_OK : st -> hand_state = TLS_ST_SW_HELLO_REQ ;\n return WRITE_TRAN_CONTINUE ;\n case TLS_ST_SW_HELLO_REQ : st -> hand_state = TLS_ST_OK ;\n ossl_statem_set_in_init ( s , 0 ) ;\n return WRITE_TRAN_CONTINUE ;\n case TLS_ST_SR_CLNT_HELLO : if ( SSL_IS_DTLS ( s ) && ! s -> d1 -> cookie_verified && ( SSL_get_options ( s ) & SSL_OP_COOKIE_EXCHANGE ) ) st -> hand_state = DTLS_ST_SW_HELLO_VERIFY_REQUEST ;\n else st -> hand_state = TLS_ST_SW_SRVR_HELLO ;\n return WRITE_TRAN_CONTINUE ;\n case DTLS_ST_SW_HELLO_VERIFY_REQUEST : return WRITE_TRAN_FINISHED ;\n case TLS_ST_SW_SRVR_HELLO : if ( s -> hit ) {\n if ( s -> tlsext_ticket_expected ) st -> hand_state = TLS_ST_SW_SESSION_TICKET ;\n else st -> hand_state = TLS_ST_SW_CHANGE ;\n }\n else {\n if ( ! ( s -> s3 -> tmp . new_cipher -> algorithm_auth & ( SSL_aNULL | SSL_aSRP | SSL_aPSK ) ) ) {\n st -> hand_state = TLS_ST_SW_CERT ;\n }\n else if ( send_server_key_exchange ( s ) ) {\n st -> hand_state = TLS_ST_SW_KEY_EXCH ;\n }\n else if ( send_certificate_request ( s ) ) {\n st -> hand_state = TLS_ST_SW_CERT_REQ ;\n }\n else {\n st -> hand_state = TLS_ST_SW_SRVR_DONE ;\n }\n }\n return WRITE_TRAN_CONTINUE ;\n case TLS_ST_SW_CERT : if ( s -> tlsext_status_expected ) {\n st -> hand_state = TLS_ST_SW_CERT_STATUS ;\n return WRITE_TRAN_CONTINUE ;\n }\n case TLS_ST_SW_CERT_STATUS : if ( send_server_key_exchange ( s ) ) {\n st -> hand_state = TLS_ST_SW_KEY_EXCH ;\n return WRITE_TRAN_CONTINUE ;\n }\n case TLS_ST_SW_KEY_EXCH : if ( send_certificate_request ( s ) ) {\n st -> hand_state = TLS_ST_SW_CERT_REQ ;\n return WRITE_TRAN_CONTINUE ;\n }\n case TLS_ST_SW_CERT_REQ : st -> hand_state = TLS_ST_SW_SRVR_DONE ;\n return WRITE_TRAN_CONTINUE ;\n case TLS_ST_SW_SRVR_DONE : return WRITE_TRAN_FINISHED ;\n case TLS_ST_SR_FINISHED : if ( s -> hit ) {\n st -> hand_state = TLS_ST_OK ;\n ossl_statem_set_in_init ( s , 0 ) ;\n return WRITE_TRAN_CONTINUE ;\n }\n else if ( s -> tlsext_ticket_expected ) {\n st -> hand_state = TLS_ST_SW_SESSION_TICKET ;\n }\n else {\n st -> hand_state = TLS_ST_SW_CHANGE ;\n }\n return WRITE_TRAN_CONTINUE ;\n case TLS_ST_SW_SESSION_TICKET : st -> hand_state = TLS_ST_SW_CHANGE ;\n return WRITE_TRAN_CONTINUE ;\n case TLS_ST_SW_CHANGE : st -> hand_state = TLS_ST_SW_FINISHED ;\n return WRITE_TRAN_CONTINUE ;\n case TLS_ST_SW_FINISHED : if ( s -> hit ) {\n return WRITE_TRAN_FINISHED ;\n }\n st -> hand_state = TLS_ST_OK ;\n ossl_statem_set_in_init ( s , 0 ) ;\n return WRITE_TRAN_CONTINUE ;\n default : return WRITE_TRAN_ERROR ;\n }\n }"}
{"idx": 10723, "target": 0, "func": "static void netbios_data_first_middle_flags ( tvbuff_t * tvb , proto_tree * tree , int offset ) {\n proto_tree * field_tree ;\n proto_item * tf ;\n tf = proto_tree_add_item ( tree , hf_netb_flags , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n field_tree = proto_item_add_subtree ( tf , ett_netb_flags ) ;\n proto_tree_add_item ( field_tree , hf_netb_flags_ack , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( field_tree , hf_netb_flags_ack_expected , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( field_tree , hf_netb_flags_recv_cont_req , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n }"}
{"idx": 10724, "target": 0, "func": "int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * x , unsigned char * d , int len ) {\n return M_ASN1_BIT_STRING_set ( x , d , len ) ;\n }"}
{"idx": 10725, "target": 0, "func": "static inline int unhex ( int a ) {\n if ( a >= 'A' && a <= 'F' ) return a - 'A' + 0xA ;\n if ( a >= 'a' && a <= 'f' ) return a - 'a' + 0xA ;\n if ( a >= '0' && a <= '9' ) return a - '0' ;\n return 0 ;\n }"}
{"idx": 10726, "target": 0, "func": "static void * writer_child_next ( void * obj , void * prev ) {\n WriterContext * ctx = obj ;\n if ( ! prev && ctx -> writer && ctx -> writer -> priv_class && ctx -> priv ) return ctx -> priv ;\n return NULL ;\n }"}
{"idx": 10727, "target": 0, "func": "static void set_fixed_partitioning ( VP9_COMP * cpi , const TileInfo * const tile , MODE_INFO * mi_8x8 , int mi_row , int mi_col , BLOCK_SIZE bsize ) {\n VP9_COMMON * const cm = & cpi -> common ;\n const int mis = cm -> mi_stride ;\n const int row8x8_remaining = tile -> mi_row_end - mi_row ;\n const int col8x8_remaining = tile -> mi_col_end - mi_col ;\n int block_row , block_col ;\n MODE_INFO * mi_upper_left = cm -> mi + mi_row * mis + mi_col ;\n int bh = num_8x8_blocks_high_lookup [ bsize ] ;\n int bw = num_8x8_blocks_wide_lookup [ bsize ] ;\n assert ( ( row8x8_remaining > 0 ) && ( col8x8_remaining > 0 ) ) ;\n if ( ( col8x8_remaining >= MI_BLOCK_SIZE ) && ( row8x8_remaining >= MI_BLOCK_SIZE ) ) {\n for ( block_row = 0 ;\n block_row < MI_BLOCK_SIZE ;\n block_row += bh ) {\n for ( block_col = 0 ;\n block_col < MI_BLOCK_SIZE ;\n block_col += bw ) {\n int index = block_row * mis + block_col ;\n mi_8x8 [ index ] . src_mi = mi_upper_left + index ;\n mi_8x8 [ index ] . src_mi -> mbmi . sb_type = bsize ;\n }\n }\n }\n else {\n set_partial_b64x64_partition ( mi_upper_left , mis , bh , bw , row8x8_remaining , col8x8_remaining , bsize , mi_8x8 ) ;\n }\n }"}
{"idx": 10728, "target": 0, "func": "void proto_reg_handoff_zbee_zcl_part ( void ) {\n dissector_handle_t part_handle ;\n part_handle = find_dissector ( ZBEE_PROTOABBREV_ZCL_PART ) ;\n dissector_add_uint ( \"zbee.zcl.cluster\" , ZBEE_ZCL_CID_PARTITION , part_handle ) ;\n zbee_zcl_init_cluster ( proto_zbee_zcl_part , ett_zbee_zcl_part , ZBEE_ZCL_CID_PARTITION , hf_zbee_zcl_part_attr_id , hf_zbee_zcl_part_srv_rx_cmd_id , hf_zbee_zcl_part_srv_tx_cmd_id , NULL ) ;\n }"}
{"idx": 10729, "target": 0, "func": "static gboolean gst_asf_demux_get_string ( gchar * * p_str , guint16 * p_strlen , guint8 * * p_data , guint64 * p_size ) {\n guint16 s_length ;\n guint8 * s ;\n * p_str = NULL ;\n if ( * p_size < 2 ) return FALSE ;\n s_length = gst_asf_demux_get_uint16 ( p_data , p_size ) ;\n if ( p_strlen ) * p_strlen = s_length ;\n if ( s_length == 0 ) {\n GST_WARNING ( \"zero-length string\" ) ;\n * p_str = g_strdup ( \"\" ) ;\n return TRUE ;\n }\n if ( ! gst_asf_demux_get_bytes ( & s , s_length , p_data , p_size ) ) return FALSE ;\n g_assert ( s != NULL ) ;\n if ( s [ s_length - 1 ] != '\\0' ) {\n s = g_realloc ( s , s_length + 1 ) ;\n s [ s_length ] = '\\0' ;\n }\n * p_str = ( gchar * ) s ;\n return TRUE ;\n }"}
{"idx": 10730, "target": 0, "func": "static void vacuum_all_databases ( vacuumingOptions * vacopts , bool analyze_in_stages , const char * maintenance_db , const char * host , const char * port , const char * username , enum trivalue prompt_password , int concurrentCons , const char * progname , bool echo , bool quiet ) {\n PGconn * conn ;\n PGresult * result ;\n PQExpBufferData connstr ;\n int stage ;\n int i ;\n conn = connectMaintenanceDatabase ( maintenance_db , host , port , username , prompt_password , progname ) ;\n result = executeQuery ( conn , \"SELECT datname FROM pg_database WHERE datallowconn ORDER BY 1;\n\" , progname , echo ) ;\n PQfinish ( conn ) ;\n initPQExpBuffer ( & connstr ) ;\n if ( analyze_in_stages ) {\n for ( stage = 0 ;\n stage < ANALYZE_NUM_STAGES ;\n stage ++ ) {\n for ( i = 0 ;\n i < PQntuples ( result ) ;\n i ++ ) {\n resetPQExpBuffer ( & connstr ) ;\n appendPQExpBuffer ( & connstr , \"dbname=\" ) ;\n appendConnStrVal ( & connstr , PQgetvalue ( result , i , 0 ) ) ;\n vacuum_one_database ( connstr . data , vacopts , stage , NULL , host , port , username , prompt_password , concurrentCons , progname , echo , quiet ) ;\n }\n }\n }\n else {\n for ( i = 0 ;\n i < PQntuples ( result ) ;\n i ++ ) {\n resetPQExpBuffer ( & connstr ) ;\n appendPQExpBuffer ( & connstr , \"dbname=\" ) ;\n appendConnStrVal ( & connstr , PQgetvalue ( result , i , 0 ) ) ;\n vacuum_one_database ( connstr . data , vacopts , ANALYZE_NO_STAGE , NULL , host , port , username , prompt_password , concurrentCons , progname , echo , quiet ) ;\n }\n }\n termPQExpBuffer ( & connstr ) ;\n PQclear ( result ) ;\n }"}
{"idx": 10731, "target": 0, "func": "static void unfold_blk ( struct block * * blk ) {\n struct unfold_elm * ue = NULL ;\n BUG_IF ( * blk == NULL ) ;\n ef_debug ( 1 , \"+\" ) ;\n do {\n switch ( ( * blk ) -> type ) {\n case BLK_INSTR : SAFE_CALLOC ( ue , 1 , sizeof ( struct unfold_elm ) ) ;\n memcpy ( & ue -> fop , ( * blk ) -> un . ins , sizeof ( struct filter_op ) ) ;\n TAILQ_INSERT_TAIL ( & unfolded_tree , ue , next ) ;\n break ;\n case BLK_IFBLK : unfold_ifblk ( blk ) ;\n break ;\n default : BUG ( \"undefined tree element\" ) ;\n break ;\n }\n }\n while ( ( * blk = ( * blk ) -> next ) ) ;\n }"}
{"idx": 10732, "target": 1, "func": "static size_t read_uncompressed_header ( VP9Decoder * pbi , struct vp9_read_bit_buffer * rb ) {\n VP9_COMMON * const cm = & pbi -> common ;\n size_t sz ;\n int i ;\n cm -> last_frame_type = cm -> frame_type ;\n if ( vp9_rb_read_literal ( rb , 2 ) != VP9_FRAME_MARKER ) vpx_internal_error ( & cm -> error , VPX_CODEC_UNSUP_BITSTREAM , \"Invalid frame marker\" ) ;\n cm -> profile = vp9_read_profile ( rb ) ;\n if ( cm -> profile >= MAX_PROFILES ) vpx_internal_error ( & cm -> error , VPX_CODEC_UNSUP_BITSTREAM , \"Unsupported bitstream profile\" ) ;\n cm -> show_existing_frame = vp9_rb_read_bit ( rb ) ;\n if ( cm -> show_existing_frame ) {\n const int frame_to_show = cm -> ref_frame_map [ vp9_rb_read_literal ( rb , 3 ) ] ;\n if ( frame_to_show < 0 || cm -> frame_bufs [ frame_to_show ] . ref_count < 1 ) vpx_internal_error ( & cm -> error , VPX_CODEC_UNSUP_BITSTREAM , \"Buffer %d does not contain a decoded frame\" , frame_to_show ) ;\n ref_cnt_fb ( cm -> frame_bufs , & cm -> new_fb_idx , frame_to_show ) ;\n pbi -> refresh_frame_flags = 0 ;\n cm -> lf . filter_level = 0 ;\n cm -> show_frame = 1 ;\n return 0 ;\n }\n cm -> frame_type = ( FRAME_TYPE ) vp9_rb_read_bit ( rb ) ;\n cm -> show_frame = vp9_rb_read_bit ( rb ) ;\n cm -> error_resilient_mode = vp9_rb_read_bit ( rb ) ;\n if ( cm -> frame_type == KEY_FRAME ) {\n if ( ! vp9_read_sync_code ( rb ) ) vpx_internal_error ( & cm -> error , VPX_CODEC_UNSUP_BITSTREAM , \"Invalid frame sync code\" ) ;\n read_bitdepth_colorspace_sampling ( cm , rb ) ;\n pbi -> refresh_frame_flags = ( 1 << REF_FRAMES ) - 1 ;\n for ( i = 0 ;\n i < REFS_PER_FRAME ;\n ++ i ) {\n cm -> frame_refs [ i ] . idx = - 1 ;\n cm -> frame_refs [ i ] . buf = NULL ;\n }\n setup_frame_size ( cm , rb ) ;\n }\n else {\n cm -> intra_only = cm -> show_frame ? 0 : vp9_rb_read_bit ( rb ) ;\n cm -> reset_frame_context = cm -> error_resilient_mode ? : vp9_rb_read_literal ( rb , 2 ) ;\n if ( cm -> intra_only ) {\n if ( ! vp9_read_sync_code ( rb ) ) vpx_internal_error ( & cm -> error , VPX_CODEC_UNSUP_BITSTREAM , \"Invalid frame sync code\" ) ;\n if ( cm -> profile > PROFILE_0 ) {\n read_bitdepth_colorspace_sampling ( cm , rb ) ;\n }\n else {\n cm -> color_space = BT_601 ;\n cm -> subsampling_y = cm -> subsampling_x = 1 ;\n }\n pbi -> refresh_frame_flags = vp9_rb_read_literal ( rb , REF_FRAMES ) ;\n setup_frame_size ( cm , rb ) ;\n }\n else {\n pbi -> refresh_frame_flags = vp9_rb_read_literal ( rb , REF_FRAMES ) ;\n for ( i = 0 ;\n i < REFS_PER_FRAME ;\n ++ i ) {\n const int ref = vp9_rb_read_literal ( rb , REF_FRAMES_LOG2 ) ;\n const int idx = cm -> ref_frame_map [ ref ] ;\n RefBuffer * const ref_frame = & cm -> frame_refs [ i ] ;\n ref_frame -> idx = idx ;\n ref_frame -> buf = & cm -> frame_bufs [ idx ] . buf ;\n cm -> ref_frame_sign_bias [ LAST_FRAME + i ] = vp9_rb_read_bit ( rb ) ;\n }\n setup_frame_size_with_refs ( cm , rb ) ;\n cm -> allow_high_precision_mv = vp9_rb_read_bit ( rb ) ;\n cm -> interp_filter = read_interp_filter ( rb ) ;\n for ( i = 0 ;\n i < REFS_PER_FRAME ;\n ++ i ) {\n RefBuffer * const ref_buf = & cm -> frame_refs [ i ] ;\n vp9_setup_scale_factors_for_frame ( & ref_buf -> sf , ref_buf -> buf -> y_crop_width , ref_buf -> buf -> y_crop_height , cm -> width , cm -> height ) ;\n if ( vp9_is_scaled ( & ref_buf -> sf ) ) vp9_extend_frame_borders ( ref_buf -> buf ) ;\n }\n }\n }\n if ( ! cm -> error_resilient_mode ) {\n cm -> refresh_frame_context = vp9_rb_read_bit ( rb ) ;\n cm -> frame_parallel_decoding_mode = vp9_rb_read_bit ( rb ) ;\n }\n else {\n cm -> refresh_frame_context = 0 ;\n cm -> frame_parallel_decoding_mode = 1 ;\n }\n cm -> frame_context_idx = vp9_rb_read_literal ( rb , FRAME_CONTEXTS_LOG2 ) ;\n if ( frame_is_intra_only ( cm ) || cm -> error_resilient_mode ) vp9_setup_past_independence ( cm ) ;\n setup_loopfilter ( & cm -> lf , rb ) ;\n setup_quantization ( cm , & pbi -> mb , rb ) ;\n setup_segmentation ( & cm -> seg , rb ) ;\n setup_tile_info ( cm , rb ) ;\n sz = vp9_rb_read_literal ( rb , 16 ) ;\n if ( sz == 0 ) vpx_internal_error ( & cm -> error , VPX_CODEC_CORRUPT_FRAME , \"Invalid header size\" ) ;\n return sz ;\n }"}
{"idx": 10733, "target": 0, "func": "static VALUE ossl_cipher_pkcs5_keyivgen ( int argc , VALUE * argv , VALUE self ) {\n EVP_CIPHER_CTX * ctx ;\n const EVP_MD * digest ;\n VALUE vpass , vsalt , viter , vdigest ;\n unsigned char key [ EVP_MAX_KEY_LENGTH ] , iv [ EVP_MAX_IV_LENGTH ] , * salt = NULL ;\n int iter ;\n rb_scan_args ( argc , argv , \"13\" , & vpass , & vsalt , & viter , & vdigest ) ;\n StringValue ( vpass ) ;\n if ( ! NIL_P ( vsalt ) ) {\n StringValue ( vsalt ) ;\n if ( RSTRING_LEN ( vsalt ) != PKCS5_SALT_LEN ) ossl_raise ( eCipherError , \"salt must be an 8-octet string\" ) ;\n salt = ( unsigned char * ) RSTRING_PTR ( vsalt ) ;\n }\n iter = NIL_P ( viter ) ? 2048 : NUM2INT ( viter ) ;\n digest = NIL_P ( vdigest ) ? EVP_md5 ( ) : GetDigestPtr ( vdigest ) ;\n GetCipher ( self , ctx ) ;\n EVP_BytesToKey ( EVP_CIPHER_CTX_cipher ( ctx ) , digest , salt , ( unsigned char * ) RSTRING_PTR ( vpass ) , RSTRING_LENINT ( vpass ) , iter , key , iv ) ;\n if ( EVP_CipherInit_ex ( ctx , NULL , NULL , key , iv , - 1 ) != 1 ) ossl_raise ( eCipherError , NULL ) ;\n OPENSSL_cleanse ( key , sizeof key ) ;\n OPENSSL_cleanse ( iv , sizeof iv ) ;\n rb_ivar_set ( self , id_key_set , Qtrue ) ;\n return Qnil ;\n }"}
{"idx": 10734, "target": 0, "func": "TEST_F ( SSLErrorAssistantTest , CaptivePortalCertificateList ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n EXPECT_EQ ( 1u , ssl_info ( ) . public_key_hashes . size ( ) ) ;\n auto config_proto = std : : make_unique < chrome_browser_ssl : : SSLErrorAssistantConfig > ( ) ;\n config_proto -> set_version_id ( kLargeVersionId ) ;\n config_proto -> add_captive_portal_cert ( ) -> set_sha256_hash ( \"sha256/boxfish\" ) ;\n config_proto -> add_captive_portal_cert ( ) -> set_sha256_hash ( \"sha256/treecreeper\" ) ;\n error_assistant ( ) -> SetErrorAssistantProto ( std : : move ( config_proto ) ) ;\n EXPECT_FALSE ( error_assistant ( ) -> IsKnownCaptivePortalCertificate ( ssl_info ( ) ) ) ;\n error_assistant ( ) -> ResetForTesting ( ) ;\n config_proto . reset ( new chrome_browser_ssl : : SSLErrorAssistantConfig ( ) ) ;\n config_proto -> set_version_id ( kLargeVersionId ) ;\n config_proto -> add_captive_portal_cert ( ) -> set_sha256_hash ( \"sha256/boxfish\" ) ;\n config_proto -> add_captive_portal_cert ( ) -> set_sha256_hash ( ssl_info ( ) . public_key_hashes [ 0 ] . ToString ( ) ) ;\n config_proto -> add_captive_portal_cert ( ) -> set_sha256_hash ( \"sha256/treecreeper\" ) ;\n error_assistant ( ) -> SetErrorAssistantProto ( std : : move ( config_proto ) ) ;\n EXPECT_TRUE ( error_assistant ( ) -> IsKnownCaptivePortalCertificate ( ssl_info ( ) ) ) ;\n }"}
{"idx": 10735, "target": 0, "func": "static int rtp_packetize_mp4a_latm ( sout_stream_id_sys_t * id , block_t * in ) {\n int i_max = rtp_mtu ( id ) - 2 ;\n int latmhdrsize = in -> i_buffer / 0xff + 1 ;\n int i_count = ( in -> i_buffer + i_max - 1 ) / i_max ;\n uint8_t * p_data = in -> p_buffer , * p_header = NULL ;\n int i_data = in -> i_buffer ;\n int i ;\n for ( i = 0 ;\n i < i_count ;\n i ++ ) {\n int i_payload = __MIN ( i_max , i_data ) ;\n block_t * out ;\n if ( i != 0 ) latmhdrsize = 0 ;\n out = block_Alloc ( 12 + latmhdrsize + i_payload ) ;\n rtp_packetize_common ( id , out , ( ( i == i_count - 1 ) ? 1 : 0 ) , ( in -> i_pts > VLC_TS_INVALID ? in -> i_pts : in -> i_dts ) ) ;\n if ( i == 0 ) {\n int tmp = in -> i_buffer ;\n p_header = out -> p_buffer + 12 ;\n while ( tmp > 0xfe ) {\n * p_header = 0xff ;\n p_header ++ ;\n tmp -= 0xff ;\n }\n * p_header = tmp ;\n }\n memcpy ( & out -> p_buffer [ 12 + latmhdrsize ] , p_data , i_payload ) ;\n out -> i_dts = in -> i_dts + i * in -> i_length / i_count ;\n out -> i_length = in -> i_length / i_count ;\n rtp_packetize_send ( id , out ) ;\n p_data += i_payload ;\n i_data -= i_payload ;\n }\n block_Release ( in ) ;\n return VLC_SUCCESS ;\n }"}
{"idx": 10736, "target": 0, "func": "void remoteDispatchError ( remote_error * rerr ) {\n virErrorPtr verr = virGetLastError ( ) ;\n if ( verr ) remoteDispatchCopyError ( rerr , verr ) ;\n else remoteDispatchGenericError ( rerr ) ;\n }"}
{"idx": 10737, "target": 0, "func": "char * SRP_create_verifier ( const char * user , const char * pass , char * * salt , char * * verifier , const char * N , const char * g ) {\n int len ;\n char * result = NULL , * vf = NULL ;\n BIGNUM * N_bn = NULL , * g_bn = NULL , * s = NULL , * v = NULL ;\n unsigned char tmp [ MAX_LEN ] ;\n unsigned char tmp2 [ MAX_LEN ] ;\n char * defgNid = NULL ;\n int vfsize = 0 ;\n if ( ( user == NULL ) || ( pass == NULL ) || ( salt == NULL ) || ( verifier == NULL ) ) goto err ;\n if ( N ) {\n if ( ! ( len = t_fromb64 ( tmp , N ) ) ) goto err ;\n N_bn = BN_bin2bn ( tmp , len , NULL ) ;\n if ( ! ( len = t_fromb64 ( tmp , g ) ) ) goto err ;\n g_bn = BN_bin2bn ( tmp , len , NULL ) ;\n defgNid = \"*\" ;\n }\n else {\n SRP_gN * gN = SRP_get_gN_by_id ( g , NULL ) ;\n if ( gN == NULL ) goto err ;\n N_bn = gN -> N ;\n g_bn = gN -> g ;\n defgNid = gN -> id ;\n }\n if ( * salt == NULL ) {\n if ( RAND_pseudo_bytes ( tmp2 , SRP_RANDOM_SALT_LEN ) < 0 ) goto err ;\n s = BN_bin2bn ( tmp2 , SRP_RANDOM_SALT_LEN , NULL ) ;\n }\n else {\n if ( ! ( len = t_fromb64 ( tmp2 , * salt ) ) ) goto err ;\n s = BN_bin2bn ( tmp2 , len , NULL ) ;\n }\n if ( ! SRP_create_verifier_BN ( user , pass , & s , & v , N_bn , g_bn ) ) goto err ;\n BN_bn2bin ( v , tmp ) ;\n vfsize = BN_num_bytes ( v ) * 2 ;\n if ( ( ( vf = OPENSSL_malloc ( vfsize ) ) == NULL ) ) goto err ;\n t_tob64 ( vf , tmp , BN_num_bytes ( v ) ) ;\n if ( * salt == NULL ) {\n char * tmp_salt ;\n if ( ( tmp_salt = OPENSSL_malloc ( SRP_RANDOM_SALT_LEN * 2 ) ) == NULL ) {\n goto err ;\n }\n t_tob64 ( tmp_salt , tmp2 , SRP_RANDOM_SALT_LEN ) ;\n * salt = tmp_salt ;\n }\n * verifier = vf ;\n vf = NULL ;\n result = defgNid ;\n err : if ( N ) {\n BN_free ( N_bn ) ;\n BN_free ( g_bn ) ;\n }\n OPENSSL_cleanse ( vf , vfsize ) ;\n OPENSSL_free ( vf ) ;\n BN_clear_free ( s ) ;\n BN_clear_free ( v ) ;\n return result ;\n }"}
{"idx": 10738, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ProfileBrowserTest , ExitType ) {\n base : : ScopedTempDir temp_dir ;\n ASSERT_TRUE ( temp_dir . CreateUniqueTempDir ( ) ) ;\n MockProfileDelegate delegate ;\n EXPECT_CALL ( delegate , OnProfileCreated ( testing : : NotNull ( ) , true , true ) ) ;\n {\n std : : unique_ptr < Profile > profile ( CreateProfile ( temp_dir . path ( ) , & delegate , Profile : : CREATE_MODE_SYNCHRONOUS ) ) ;\n PrefService * prefs = profile -> GetPrefs ( ) ;\n std : : string crash_value ( prefs -> GetString ( prefs : : kSessionExitType ) ) ;\n profile -> SetExitType ( Profile : : EXIT_SESSION_ENDED ) ;\n std : : string first_call_value ( prefs -> GetString ( prefs : : kSessionExitType ) ) ;\n EXPECT_NE ( crash_value , first_call_value ) ;\n profile -> SetExitType ( Profile : : EXIT_NORMAL ) ;\n std : : string second_call_value ( prefs -> GetString ( prefs : : kSessionExitType ) ) ;\n EXPECT_EQ ( first_call_value , second_call_value ) ;\n profile -> SetExitType ( Profile : : EXIT_CRASHED ) ;\n std : : string final_value ( prefs -> GetString ( prefs : : kSessionExitType ) ) ;\n EXPECT_EQ ( crash_value , final_value ) ;\n }\n FlushIoTaskRunnerAndSpinThreads ( ) ;\n }"}
{"idx": 10739, "target": 0, "func": "void ff_svq3_luma_dc_dequant_idct_c ( int16_t * output , int16_t * input , int qp ) {\n const int qmul = svq3_dequant_coeff [ qp ] ;\n # define stride 16 int i ;\n int temp [ 16 ] ;\n static const uint8_t x_offset [ 4 ] = {\n 0 , 1 * stride , 4 * stride , 5 * stride }\n ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n const int z0 = 13 * ( input [ 4 * i + 0 ] + input [ 4 * i + 2 ] ) ;\n const int z1 = 13 * ( input [ 4 * i + 0 ] - input [ 4 * i + 2 ] ) ;\n const int z2 = 7 * input [ 4 * i + 1 ] - 17 * input [ 4 * i + 3 ] ;\n const int z3 = 17 * input [ 4 * i + 1 ] + 7 * input [ 4 * i + 3 ] ;\n temp [ 4 * i + 0 ] = z0 + z3 ;\n temp [ 4 * i + 1 ] = z1 + z2 ;\n temp [ 4 * i + 2 ] = z1 - z2 ;\n temp [ 4 * i + 3 ] = z0 - z3 ;\n }\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n const int offset = x_offset [ i ] ;\n const int z0 = 13 * ( temp [ 4 * 0 + i ] + temp [ 4 * 2 + i ] ) ;\n const int z1 = 13 * ( temp [ 4 * 0 + i ] - temp [ 4 * 2 + i ] ) ;\n const int z2 = 7 * temp [ 4 * 1 + i ] - 17 * temp [ 4 * 3 + i ] ;\n const int z3 = 17 * temp [ 4 * 1 + i ] + 7 * temp [ 4 * 3 + i ] ;\n output [ stride * 0 + offset ] = ( z0 + z3 ) * qmul + 0x80000 >> 20 ;\n output [ stride * 2 + offset ] = ( z1 + z2 ) * qmul + 0x80000 >> 20 ;\n output [ stride * 8 + offset ] = ( z1 - z2 ) * qmul + 0x80000 >> 20 ;\n output [ stride * 10 + offset ] = ( z0 - z3 ) * qmul + 0x80000 >> 20 ;\n }\n }"}
{"idx": 10740, "target": 1, "func": "static void encode_frame_to_data_rate ( VP8_COMP * cpi , unsigned long * size , unsigned char * dest , unsigned char * dest_end , unsigned int * frame_flags ) {\n int Q ;\n int frame_over_shoot_limit ;\n int frame_under_shoot_limit ;\n int Loop = 0 ;\n int loop_count ;\n VP8_COMMON * cm = & cpi -> common ;\n int active_worst_qchanged = 0 ;\n # if ! ( CONFIG_REALTIME_ONLY ) int q_low ;\n int q_high ;\n int zbin_oq_high ;\n int zbin_oq_low = 0 ;\n int top_index ;\n int bottom_index ;\n int overshoot_seen = 0 ;\n int undershoot_seen = 0 ;\n # endif int drop_mark = ( int ) ( cpi -> oxcf . drop_frames_water_mark * cpi -> oxcf . optimal_buffer_level / 100 ) ;\n int drop_mark75 = drop_mark * 2 / 3 ;\n int drop_mark50 = drop_mark / 4 ;\n int drop_mark25 = drop_mark / 8 ;\n vp8_clear_system_state ( ) ;\n # if CONFIG_MULTITHREAD if ( cpi -> b_lpf_running ) {\n sem_wait ( & cpi -> h_event_end_lpf ) ;\n cpi -> b_lpf_running = 0 ;\n }\n # endif if ( cpi -> force_next_frame_intra ) {\n cm -> frame_type = KEY_FRAME ;\n cpi -> force_next_frame_intra = 0 ;\n }\n # if ! ( CONFIG_REALTIME_ONLY ) if ( cpi -> pass == 2 ) {\n if ( cpi -> common . refresh_alt_ref_frame ) {\n cpi -> per_frame_bandwidth = cpi -> twopass . gf_bits ;\n cpi -> target_bandwidth = ( int ) ( cpi -> twopass . gf_bits * cpi -> output_framerate ) ;\n }\n }\n else # endif cpi -> per_frame_bandwidth = ( int ) ( cpi -> target_bandwidth / cpi -> output_framerate ) ;\n cm -> copy_buffer_to_gf = 0 ;\n cm -> copy_buffer_to_arf = 0 ;\n cpi -> mb . zbin_over_quant = 0 ;\n cpi -> mb . zbin_mode_boost = 0 ;\n cpi -> mb . zbin_mode_boost_enabled = 1 ;\n if ( cpi -> pass == 2 ) {\n if ( cpi -> gfu_boost <= 400 ) {\n cpi -> mb . zbin_mode_boost_enabled = 0 ;\n }\n }\n if ( cpi -> source_alt_ref_active ) cpi -> common . ref_frame_sign_bias [ ALTREF_FRAME ] = 1 ;\n else cpi -> common . ref_frame_sign_bias [ ALTREF_FRAME ] = 0 ;\n if ( ( cm -> current_video_frame == 0 ) || ( cm -> frame_flags & FRAMEFLAGS_KEY ) || ( cpi -> oxcf . auto_key && ( cpi -> frames_since_key % cpi -> key_frame_frequency == 0 ) ) ) {\n cm -> frame_type = KEY_FRAME ;\n # if CONFIG_TEMPORAL_DENOISING if ( cpi -> oxcf . noise_sensitivity == 4 ) {\n vp8_denoiser_set_parameters ( & cpi -> denoiser , kDenoiserOnYUV ) ;\n }\n # endif }\n # if CONFIG_MULTI_RES_ENCODING if ( cpi -> oxcf . mr_encoder_id ) {\n LOWER_RES_FRAME_INFO * low_res_frame_info = ( LOWER_RES_FRAME_INFO * ) cpi -> oxcf . mr_low_res_mode_info ;\n cm -> frame_type = low_res_frame_info -> frame_type ;\n if ( cm -> frame_type != KEY_FRAME ) {\n cpi -> mr_low_res_mv_avail = 1 ;\n cpi -> mr_low_res_mv_avail &= ! ( low_res_frame_info -> is_frame_dropped ) ;\n if ( cpi -> ref_frame_flags & VP8_LAST_FRAME ) cpi -> mr_low_res_mv_avail &= ( cpi -> current_ref_frames [ LAST_FRAME ] == low_res_frame_info -> low_res_ref_frames [ LAST_FRAME ] ) ;\n if ( cpi -> ref_frame_flags & VP8_GOLD_FRAME ) cpi -> mr_low_res_mv_avail &= ( cpi -> current_ref_frames [ GOLDEN_FRAME ] == low_res_frame_info -> low_res_ref_frames [ GOLDEN_FRAME ] ) ;\n if ( cpi -> ref_frame_flags & VP8_ALTR_FRAME ) cpi -> mr_low_res_mv_avail &= ( cpi -> current_ref_frames [ ALTREF_FRAME ] == low_res_frame_info -> low_res_ref_frames [ ALTREF_FRAME ] ) ;\n }\n }\n # endif cpi -> closest_reference_frame = LAST_FRAME ;\n if ( cm -> frame_type != KEY_FRAME ) {\n int i ;\n MV_REFERENCE_FRAME closest_ref = INTRA_FRAME ;\n if ( cpi -> ref_frame_flags & VP8_LAST_FRAME ) {\n closest_ref = LAST_FRAME ;\n }\n else if ( cpi -> ref_frame_flags & VP8_GOLD_FRAME ) {\n closest_ref = GOLDEN_FRAME ;\n }\n else if ( cpi -> ref_frame_flags & VP8_ALTR_FRAME ) {\n closest_ref = ALTREF_FRAME ;\n }\n for ( i = 1 ;\n i <= 3 ;\n i ++ ) {\n vpx_ref_frame_type_t ref_frame_type = ( vpx_ref_frame_type_t ) ( ( i == 3 ) ? 4 : i ) ;\n if ( cpi -> ref_frame_flags & ref_frame_type ) {\n if ( ( cm -> current_video_frame - cpi -> current_ref_frames [ i ] ) < ( cm -> current_video_frame - cpi -> current_ref_frames [ closest_ref ] ) ) {\n closest_ref = i ;\n }\n }\n }\n cpi -> closest_reference_frame = closest_ref ;\n }\n if ( cm -> frame_type == KEY_FRAME ) {\n int i ;\n setup_features ( cpi ) ;\n cpi -> source_alt_ref_active = 0 ;\n for ( i = 0 ;\n i < MAX_MODES ;\n i ++ ) {\n cpi -> mb . rd_thresh_mult [ i ] = 128 ;\n }\n vpx_memset ( cpi -> consec_zero_last , 0 , cm -> mb_rows * cm -> mb_cols ) ;\n }\n # if 0 {\n cpi -> one_pass_frame_index = cm -> current_video_frame % MAX_LAG_BUFFERS ;\n cpi -> one_pass_frame_stats [ cpi -> one_pass_frame_index ] . frames_so_far = 0 ;\n cpi -> one_pass_frame_stats [ cpi -> one_pass_frame_index ] . frame_intra_error = 0.0 ;\n cpi -> one_pass_frame_stats [ cpi -> one_pass_frame_index ] . frame_coded_error = 0.0 ;\n cpi -> one_pass_frame_stats [ cpi -> one_pass_frame_index ] . frame_pcnt_inter = 0.0 ;\n cpi -> one_pass_frame_stats [ cpi -> one_pass_frame_index ] . frame_pcnt_motion = 0.0 ;\n cpi -> one_pass_frame_stats [ cpi -> one_pass_frame_index ] . frame_mvr = 0.0 ;\n cpi -> one_pass_frame_stats [ cpi -> one_pass_frame_index ] . frame_mvr_abs = 0.0 ;\n cpi -> one_pass_frame_stats [ cpi -> one_pass_frame_index ] . frame_mvc = 0.0 ;\n cpi -> one_pass_frame_stats [ cpi -> one_pass_frame_index ] . frame_mvc_abs = 0.0 ;\n }\n # endif update_rd_ref_frame_probs ( cpi ) ;\n if ( cpi -> drop_frames_allowed ) {\n if ( ( cpi -> buffer_level > drop_mark ) && ( cpi -> decimation_factor > 0 ) ) cpi -> decimation_factor -- ;\n if ( cpi -> buffer_level > drop_mark75 && cpi -> decimation_factor > 0 ) cpi -> decimation_factor = 1 ;\n else if ( cpi -> buffer_level < drop_mark25 && ( cpi -> decimation_factor == 2 || cpi -> decimation_factor == 3 ) ) {\n cpi -> decimation_factor = 3 ;\n }\n else if ( cpi -> buffer_level < drop_mark50 && ( cpi -> decimation_factor == 1 || cpi -> decimation_factor == 2 ) ) {\n cpi -> decimation_factor = 2 ;\n }\n else if ( cpi -> buffer_level < drop_mark75 && ( cpi -> decimation_factor == 0 || cpi -> decimation_factor == 1 ) ) {\n cpi -> decimation_factor = 1 ;\n }\n }\n if ( cpi -> decimation_factor > 0 ) {\n switch ( cpi -> decimation_factor ) {\n case 1 : cpi -> per_frame_bandwidth = cpi -> per_frame_bandwidth * 3 / 2 ;\n break ;\n case 2 : cpi -> per_frame_bandwidth = cpi -> per_frame_bandwidth * 5 / 4 ;\n break ;\n case 3 : cpi -> per_frame_bandwidth = cpi -> per_frame_bandwidth * 5 / 4 ;\n break ;\n }\n if ( cm -> frame_type == KEY_FRAME ) {\n cpi -> decimation_count = cpi -> decimation_factor ;\n }\n else if ( cpi -> decimation_count > 0 ) {\n cpi -> decimation_count -- ;\n cpi -> bits_off_target += cpi -> av_per_frame_bandwidth ;\n if ( cpi -> bits_off_target > cpi -> oxcf . maximum_buffer_size ) cpi -> bits_off_target = cpi -> oxcf . maximum_buffer_size ;\n # if CONFIG_MULTI_RES_ENCODING vp8_store_drop_frame_info ( cpi ) ;\n # endif cm -> current_video_frame ++ ;\n cpi -> frames_since_key ++ ;\n cpi -> temporal_pattern_counter ++ ;\n # if CONFIG_INTERNAL_STATS cpi -> count ++ ;\n # endif cpi -> buffer_level = cpi -> bits_off_target ;\n if ( cpi -> oxcf . number_of_layers > 1 ) {\n unsigned int i ;\n for ( i = cpi -> current_layer + 1 ;\n i < cpi -> oxcf . number_of_layers ;\n i ++ ) {\n LAYER_CONTEXT * lc = & cpi -> layer_context [ i ] ;\n lc -> bits_off_target += ( int ) ( lc -> target_bandwidth / lc -> framerate ) ;\n if ( lc -> bits_off_target > lc -> maximum_buffer_size ) lc -> bits_off_target = lc -> maximum_buffer_size ;\n lc -> buffer_level = lc -> bits_off_target ;\n }\n }\n return ;\n }\n else cpi -> decimation_count = cpi -> decimation_factor ;\n }\n else cpi -> decimation_count = 0 ;\n if ( ! vp8_pick_frame_size ( cpi ) ) {\n # if CONFIG_MULTI_RES_ENCODING vp8_store_drop_frame_info ( cpi ) ;\n # endif cm -> current_video_frame ++ ;\n cpi -> frames_since_key ++ ;\n cpi -> temporal_pattern_counter ++ ;\n return ;\n }\n if ( ( cpi -> oxcf . end_usage == USAGE_STREAM_FROM_SERVER ) && ( cpi -> buffer_level >= cpi -> oxcf . optimal_buffer_level ) && cpi -> buffered_mode ) {\n int Adjustment = cpi -> active_worst_quality / 4 ;\n if ( Adjustment ) {\n int buff_lvl_step ;\n if ( cpi -> buffer_level < cpi -> oxcf . maximum_buffer_size ) {\n buff_lvl_step = ( int ) ( ( cpi -> oxcf . maximum_buffer_size - cpi -> oxcf . optimal_buffer_level ) / Adjustment ) ;\n if ( buff_lvl_step ) Adjustment = ( int ) ( ( cpi -> buffer_level - cpi -> oxcf . optimal_buffer_level ) / buff_lvl_step ) ;\n else Adjustment = 0 ;\n }\n cpi -> active_worst_quality -= Adjustment ;\n if ( cpi -> active_worst_quality < cpi -> active_best_quality ) cpi -> active_worst_quality = cpi -> active_best_quality ;\n }\n }\n if ( ( cpi -> pass == 2 ) || ( cpi -> ni_frames > 150 ) ) {\n vp8_clear_system_state ( ) ;\n Q = cpi -> active_worst_quality ;\n if ( cm -> frame_type == KEY_FRAME ) {\n if ( cpi -> pass == 2 ) {\n if ( cpi -> gfu_boost > 600 ) cpi -> active_best_quality = kf_low_motion_minq [ Q ] ;\n else cpi -> active_best_quality = kf_high_motion_minq [ Q ] ;\n if ( cpi -> this_key_frame_forced ) {\n if ( cpi -> active_best_quality > cpi -> avg_frame_qindex * 7 / 8 ) cpi -> active_best_quality = cpi -> avg_frame_qindex * 7 / 8 ;\n else if ( cpi -> active_best_quality < cpi -> avg_frame_qindex >> 2 ) cpi -> active_best_quality = cpi -> avg_frame_qindex >> 2 ;\n }\n }\n else cpi -> active_best_quality = kf_high_motion_minq [ Q ] ;\n }\n else if ( cpi -> oxcf . number_of_layers == 1 && ( cm -> refresh_golden_frame || cpi -> common . refresh_alt_ref_frame ) ) {\n if ( ( cpi -> frames_since_key > 1 ) && ( cpi -> avg_frame_qindex < cpi -> active_worst_quality ) ) {\n Q = cpi -> avg_frame_qindex ;\n }\n if ( ( cpi -> oxcf . end_usage == USAGE_CONSTRAINED_QUALITY ) && ( Q < cpi -> cq_target_quality ) ) {\n Q = cpi -> cq_target_quality ;\n }\n if ( cpi -> pass == 2 ) {\n if ( cpi -> gfu_boost > 1000 ) cpi -> active_best_quality = gf_low_motion_minq [ Q ] ;\n else if ( cpi -> gfu_boost < 400 ) cpi -> active_best_quality = gf_high_motion_minq [ Q ] ;\n else cpi -> active_best_quality = gf_mid_motion_minq [ Q ] ;\n if ( cpi -> oxcf . end_usage == USAGE_CONSTRAINED_QUALITY ) {\n cpi -> active_best_quality = cpi -> active_best_quality * 15 / 16 ;\n }\n }\n else cpi -> active_best_quality = gf_high_motion_minq [ Q ] ;\n }\n else {\n cpi -> active_best_quality = inter_minq [ Q ] ;\n if ( ( cpi -> oxcf . end_usage == USAGE_CONSTRAINED_QUALITY ) && ( cpi -> active_best_quality < cpi -> cq_target_quality ) ) {\n if ( cpi -> rolling_actual_bits < cpi -> min_frame_bandwidth ) cpi -> active_best_quality = cpi -> oxcf . cq_level ;\n else cpi -> active_best_quality = cpi -> cq_target_quality ;\n }\n }\n if ( cpi -> oxcf . end_usage == USAGE_STREAM_FROM_SERVER ) {\n if ( cpi -> buffer_level >= cpi -> oxcf . maximum_buffer_size ) cpi -> active_best_quality = cpi -> best_quality ;\n else if ( cpi -> buffer_level > cpi -> oxcf . optimal_buffer_level ) {\n int Fraction = ( int ) ( ( ( cpi -> buffer_level - cpi -> oxcf . optimal_buffer_level ) * 128 ) / ( cpi -> oxcf . maximum_buffer_size - cpi -> oxcf . optimal_buffer_level ) ) ;\n int min_qadjustment = ( ( cpi -> active_best_quality - cpi -> best_quality ) * Fraction ) / 128 ;\n cpi -> active_best_quality -= min_qadjustment ;\n }\n }\n }\n else if ( cpi -> oxcf . end_usage == USAGE_CONSTRAINED_QUALITY ) {\n if ( ( cm -> frame_type == KEY_FRAME ) || cm -> refresh_golden_frame || cpi -> common . refresh_alt_ref_frame ) {\n cpi -> active_best_quality = cpi -> best_quality ;\n }\n else if ( cpi -> active_best_quality < cpi -> cq_target_quality ) {\n cpi -> active_best_quality = cpi -> cq_target_quality ;\n }\n }\n if ( cpi -> active_worst_quality > cpi -> worst_quality ) cpi -> active_worst_quality = cpi -> worst_quality ;\n if ( cpi -> active_best_quality < cpi -> best_quality ) cpi -> active_best_quality = cpi -> best_quality ;\n if ( cpi -> active_worst_quality < cpi -> active_best_quality ) cpi -> active_worst_quality = cpi -> active_best_quality ;\n Q = vp8_regulate_q ( cpi , cpi -> this_frame_target ) ;\n # if ! ( CONFIG_REALTIME_ONLY ) if ( cm -> frame_type == KEY_FRAME ) zbin_oq_high = 0 ;\n else if ( ( cpi -> oxcf . number_of_layers == 1 ) && ( ( cm -> refresh_alt_ref_frame || ( cm -> refresh_golden_frame && ! cpi -> source_alt_ref_active ) ) ) ) {\n zbin_oq_high = 16 ;\n }\n else zbin_oq_high = ZBIN_OQ_MAX ;\n # endif if ( cpi -> cyclic_refresh_mode_enabled ) {\n if ( cpi -> current_layer == 0 ) cyclic_background_refresh ( cpi , Q , 0 ) ;\n else disable_segmentation ( cpi ) ;\n }\n vp8_compute_frame_size_bounds ( cpi , & frame_under_shoot_limit , & frame_over_shoot_limit ) ;\n # if ! ( CONFIG_REALTIME_ONLY ) bottom_index = cpi -> active_best_quality ;\n top_index = cpi -> active_worst_quality ;\n q_low = cpi -> active_best_quality ;\n q_high = cpi -> active_worst_quality ;\n # endif vp8_save_coding_context ( cpi ) ;\n loop_count = 0 ;\n scale_and_extend_source ( cpi -> un_scaled_source , cpi ) ;\n # if ! ( CONFIG_REALTIME_ONLY ) && CONFIG_POSTPROC && ! ( CONFIG_TEMPORAL_DENOISING ) if ( cpi -> oxcf . noise_sensitivity > 0 ) {\n unsigned char * src ;\n int l = 0 ;\n switch ( cpi -> oxcf . noise_sensitivity ) {\n case 1 : l = 20 ;\n break ;\n case 2 : l = 40 ;\n break ;\n case 3 : l = 60 ;\n break ;\n case 4 : l = 80 ;\n break ;\n case 5 : l = 100 ;\n break ;\n case 6 : l = 150 ;\n break ;\n }\n if ( cm -> frame_type == KEY_FRAME ) {\n vp8_de_noise ( cm , cpi -> Source , cpi -> Source , l , 1 , 0 ) ;\n }\n else {\n vp8_de_noise ( cm , cpi -> Source , cpi -> Source , l , 1 , 0 ) ;\n src = cpi -> Source -> y_buffer ;\n if ( cpi -> Source -> y_stride < 0 ) {\n src += cpi -> Source -> y_stride * ( cpi -> Source -> y_height - 1 ) ;\n }\n }\n }\n # endif # ifdef OUTPUT_YUV_SRC vp8_write_yuv_frame ( yuv_file , cpi -> Source ) ;\n # endif do {\n vp8_clear_system_state ( ) ;\n vp8_set_quantizer ( cpi , Q ) ;\n if ( cpi -> common . mb_no_coeff_skip ) {\n cpi -> prob_skip_false = cpi -> base_skip_false_prob [ Q ] ;\n if ( cm -> frame_type != KEY_FRAME ) {\n if ( cpi -> common . refresh_alt_ref_frame ) {\n if ( cpi -> last_skip_false_probs [ 2 ] != 0 ) cpi -> prob_skip_false = cpi -> last_skip_false_probs [ 2 ] ;\n }\n else if ( cpi -> common . refresh_golden_frame ) {\n if ( cpi -> last_skip_false_probs [ 1 ] != 0 ) cpi -> prob_skip_false = cpi -> last_skip_false_probs [ 1 ] ;\n }\n else {\n if ( cpi -> last_skip_false_probs [ 0 ] != 0 ) cpi -> prob_skip_false = cpi -> last_skip_false_probs [ 0 ] ;\n }\n if ( cpi -> prob_skip_false < 5 ) cpi -> prob_skip_false = 5 ;\n if ( cpi -> prob_skip_false > 250 ) cpi -> prob_skip_false = 250 ;\n if ( cpi -> oxcf . number_of_layers == 1 && cpi -> is_src_frame_alt_ref ) cpi -> prob_skip_false = 1 ;\n }\n # if 0 if ( cpi -> pass != 1 ) {\n FILE * f = fopen ( \"skip.stt\" , \"a\" ) ;\n fprintf ( f , \"%d, %d, %4d \" , cpi -> common . refresh_golden_frame , cpi -> common . refresh_alt_ref_frame , cpi -> prob_skip_false ) ;\n fclose ( f ) ;\n }\n # endif }\n if ( cm -> frame_type == KEY_FRAME ) {\n if ( resize_key_frame ( cpi ) ) {\n Q = vp8_regulate_q ( cpi , cpi -> this_frame_target ) ;\n if ( cpi -> cyclic_refresh_mode_enabled ) {\n if ( cpi -> current_layer == 0 ) cyclic_background_refresh ( cpi , Q , 0 ) ;\n else disable_segmentation ( cpi ) ;\n }\n vpx_memset ( cpi -> consec_zero_last , 0 , cm -> mb_rows * cm -> mb_cols ) ;\n vp8_set_quantizer ( cpi , Q ) ;\n }\n vp8_setup_key_frame ( cpi ) ;\n }\n # if CONFIG_REALTIME_ONLY & CONFIG_ONTHEFLY_BITPACKING {\n if ( cpi -> oxcf . error_resilient_mode ) cm -> refresh_entropy_probs = 0 ;\n if ( cpi -> oxcf . error_resilient_mode & VPX_ERROR_RESILIENT_PARTITIONS ) {\n if ( cm -> frame_type == KEY_FRAME ) cm -> refresh_entropy_probs = 1 ;\n }\n if ( cm -> refresh_entropy_probs == 0 ) {\n vpx_memcpy ( & cm -> lfc , & cm -> fc , sizeof ( cm -> fc ) ) ;\n }\n vp8_update_coef_context ( cpi ) ;\n vp8_update_coef_probs ( cpi ) ;\n vp8_encode_frame ( cpi ) ;\n }\n # else vp8_encode_frame ( cpi ) ;\n cpi -> projected_frame_size -= vp8_estimate_entropy_savings ( cpi ) ;\n cpi -> projected_frame_size = ( cpi -> projected_frame_size > 0 ) ? cpi -> projected_frame_size : 0 ;\n # endif vp8_clear_system_state ( ) ;\n if ( cpi -> pass != 2 && cpi -> oxcf . auto_key && cm -> frame_type != KEY_FRAME && cpi -> compressor_speed != 2 ) {\n # if ! ( CONFIG_REALTIME_ONLY ) if ( decide_key_frame ( cpi ) ) {\n cm -> frame_type = KEY_FRAME ;\n vp8_pick_frame_size ( cpi ) ;\n cpi -> source_alt_ref_active = 0 ;\n setup_features ( cpi ) ;\n vp8_restore_coding_context ( cpi ) ;\n Q = vp8_regulate_q ( cpi , cpi -> this_frame_target ) ;\n vp8_compute_frame_size_bounds ( cpi , & frame_under_shoot_limit , & frame_over_shoot_limit ) ;\n bottom_index = cpi -> active_best_quality ;\n top_index = cpi -> active_worst_quality ;\n q_low = cpi -> active_best_quality ;\n q_high = cpi -> active_worst_quality ;\n loop_count ++ ;\n Loop = 1 ;\n continue ;\n }\n # endif }\n vp8_clear_system_state ( ) ;\n if ( frame_over_shoot_limit == 0 ) frame_over_shoot_limit = 1 ;\n if ( ( ( cpi -> pass != 2 ) || ( cpi -> oxcf . end_usage == USAGE_STREAM_FROM_SERVER ) ) && ( Q == cpi -> active_worst_quality ) && ( cpi -> active_worst_quality < cpi -> worst_quality ) && ( cpi -> projected_frame_size > frame_over_shoot_limit ) ) {\n int over_size_percent = ( ( cpi -> projected_frame_size - frame_over_shoot_limit ) * 100 ) / frame_over_shoot_limit ;\n while ( ( cpi -> active_worst_quality < cpi -> worst_quality ) && ( over_size_percent > 0 ) ) {\n cpi -> active_worst_quality ++ ;\n over_size_percent = ( int ) ( over_size_percent * 0.96 ) ;\n }\n # if ! ( CONFIG_REALTIME_ONLY ) top_index = cpi -> active_worst_quality ;\n # endif active_worst_qchanged = 1 ;\n }\n else active_worst_qchanged = 0 ;\n # if ! ( CONFIG_REALTIME_ONLY ) if ( ( cm -> frame_type == KEY_FRAME ) && cpi -> this_key_frame_forced ) {\n int last_q = Q ;\n int kf_err = vp8_calc_ss_err ( cpi -> Source , & cm -> yv12_fb [ cm -> new_fb_idx ] ) ;\n if ( kf_err > ( ( cpi -> ambient_err * 7 ) >> 3 ) ) {\n q_high = ( Q > q_low ) ? ( Q - 1 ) : q_low ;\n Q = ( q_high + q_low ) >> 1 ;\n }\n else if ( kf_err < ( cpi -> ambient_err >> 1 ) ) {\n q_low = ( Q < q_high ) ? ( Q + 1 ) : q_high ;\n Q = ( q_high + q_low + 1 ) >> 1 ;\n }\n if ( Q > q_high ) Q = q_high ;\n else if ( Q < q_low ) Q = q_low ;\n Loop = Q != last_q ;\n }\n else if ( recode_loop_test ( cpi , frame_over_shoot_limit , frame_under_shoot_limit , Q , top_index , bottom_index ) ) {\n int last_q = Q ;\n int Retries = 0 ;\n if ( cpi -> projected_frame_size > cpi -> this_frame_target ) {\n q_low = ( Q < q_high ) ? ( Q + 1 ) : q_high ;\n if ( cpi -> mb . zbin_over_quant > 0 ) zbin_oq_low = ( cpi -> mb . zbin_over_quant < zbin_oq_high ) ? ( cpi -> mb . zbin_over_quant + 1 ) : zbin_oq_high ;\n if ( undershoot_seen ) {\n if ( ! active_worst_qchanged ) vp8_update_rate_correction_factors ( cpi , 1 ) ;\n Q = ( q_high + q_low + 1 ) / 2 ;\n if ( Q < MAXQ ) cpi -> mb . zbin_over_quant = 0 ;\n else {\n zbin_oq_low = ( cpi -> mb . zbin_over_quant < zbin_oq_high ) ? ( cpi -> mb . zbin_over_quant + 1 ) : zbin_oq_high ;\n cpi -> mb . zbin_over_quant = ( zbin_oq_high + zbin_oq_low ) / 2 ;\n }\n }\n else {\n if ( ! active_worst_qchanged ) vp8_update_rate_correction_factors ( cpi , 0 ) ;\n Q = vp8_regulate_q ( cpi , cpi -> this_frame_target ) ;\n while ( ( ( Q < q_low ) || ( cpi -> mb . zbin_over_quant < zbin_oq_low ) ) && ( Retries < 10 ) ) {\n vp8_update_rate_correction_factors ( cpi , 0 ) ;\n Q = vp8_regulate_q ( cpi , cpi -> this_frame_target ) ;\n Retries ++ ;\n }\n }\n overshoot_seen = 1 ;\n }\n else {\n if ( cpi -> mb . zbin_over_quant == 0 ) q_high = ( Q > q_low ) ? ( Q - 1 ) : q_low ;\n else zbin_oq_high = ( cpi -> mb . zbin_over_quant > zbin_oq_low ) ? ( cpi -> mb . zbin_over_quant - 1 ) : zbin_oq_low ;\n if ( overshoot_seen ) {\n if ( ! active_worst_qchanged ) vp8_update_rate_correction_factors ( cpi , 1 ) ;\n Q = ( q_high + q_low ) / 2 ;\n if ( Q < MAXQ ) cpi -> mb . zbin_over_quant = 0 ;\n else cpi -> mb . zbin_over_quant = ( zbin_oq_high + zbin_oq_low ) / 2 ;\n }\n else {\n if ( ! active_worst_qchanged ) vp8_update_rate_correction_factors ( cpi , 0 ) ;\n Q = vp8_regulate_q ( cpi , cpi -> this_frame_target ) ;\n if ( ( cpi -> oxcf . end_usage == USAGE_CONSTRAINED_QUALITY ) && ( Q < q_low ) ) {\n q_low = Q ;\n }\n while ( ( ( Q > q_high ) || ( cpi -> mb . zbin_over_quant > zbin_oq_high ) ) && ( Retries < 10 ) ) {\n vp8_update_rate_correction_factors ( cpi , 0 ) ;\n Q = vp8_regulate_q ( cpi , cpi -> this_frame_target ) ;\n Retries ++ ;\n }\n }\n undershoot_seen = 1 ;\n }\n if ( Q > q_high ) Q = q_high ;\n else if ( Q < q_low ) Q = q_low ;\n cpi -> mb . zbin_over_quant = ( cpi -> mb . zbin_over_quant < zbin_oq_low ) ? zbin_oq_low : ( cpi -> mb . zbin_over_quant > zbin_oq_high ) ? zbin_oq_high : cpi -> mb . zbin_over_quant ;\n Loop = Q != last_q ;\n }\n else # endif Loop = 0 ;\n if ( cpi -> is_src_frame_alt_ref ) Loop = 0 ;\n if ( Loop == 1 ) {\n vp8_restore_coding_context ( cpi ) ;\n loop_count ++ ;\n # if CONFIG_INTERNAL_STATS cpi -> tot_recode_hits ++ ;\n # endif }\n }\n while ( Loop == 1 ) ;\n # if 0 {\n cpi -> one_pass_frame_stats [ cpi -> one_pass_frame_index ] . frame_coded_error = ( double ) cpi -> prediction_error ;\n cpi -> one_pass_frame_stats [ cpi -> one_pass_frame_index ] . frame_intra_error = ( double ) cpi -> intra_error ;\n cpi -> one_pass_frame_stats [ cpi -> one_pass_frame_index ] . frame_pcnt_inter = ( double ) ( 100 - cpi -> this_frame_percent_intra ) / 100.0 ;\n }\n # endif if ( cpi -> next_key_frame_forced && ( cpi -> twopass . frames_to_key == 0 ) ) {\n cpi -> ambient_err = vp8_calc_ss_err ( cpi -> Source , & cm -> yv12_fb [ cm -> new_fb_idx ] ) ;\n }\n # if CONFIG_MULTI_RES_ENCODING if ( ! cpi -> oxcf . mr_encoder_id && cm -> show_frame ) # else if ( cm -> show_frame ) # endif {\n int mb_row ;\n int mb_col ;\n MODE_INFO * tmp = cm -> mip ;\n if ( cm -> frame_type != KEY_FRAME ) {\n for ( mb_row = 0 ;\n mb_row < cm -> mb_rows + 1 ;\n mb_row ++ ) {\n for ( mb_col = 0 ;\n mb_col < cm -> mb_cols + 1 ;\n mb_col ++ ) {\n if ( tmp -> mbmi . ref_frame != INTRA_FRAME ) cpi -> lfmv [ mb_col + mb_row * ( cm -> mode_info_stride + 1 ) ] . as_int = tmp -> mbmi . mv . as_int ;\n cpi -> lf_ref_frame_sign_bias [ mb_col + mb_row * ( cm -> mode_info_stride + 1 ) ] = cm -> ref_frame_sign_bias [ tmp -> mbmi . ref_frame ] ;\n cpi -> lf_ref_frame [ mb_col + mb_row * ( cm -> mode_info_stride + 1 ) ] = tmp -> mbmi . ref_frame ;\n tmp ++ ;\n }\n }\n }\n }\n {\n int mb_row ;\n int mb_col ;\n MODE_INFO * tmp = cm -> mi ;\n cpi -> zeromv_count = 0 ;\n if ( cm -> frame_type != KEY_FRAME ) {\n for ( mb_row = 0 ;\n mb_row < cm -> mb_rows ;\n mb_row ++ ) {\n for ( mb_col = 0 ;\n mb_col < cm -> mb_cols ;\n mb_col ++ ) {\n if ( tmp -> mbmi . mode == ZEROMV && tmp -> mbmi . ref_frame == LAST_FRAME ) cpi -> zeromv_count ++ ;\n tmp ++ ;\n }\n tmp ++ ;\n }\n }\n }\n # if CONFIG_MULTI_RES_ENCODING vp8_cal_dissimilarity ( cpi ) ;\n # endif if ( cpi -> oxcf . number_of_layers == 1 ) vp8_update_gf_useage_maps ( cpi , cm , & cpi -> mb ) ;\n if ( cm -> frame_type == KEY_FRAME ) cm -> refresh_last_frame = 1 ;\n # if 0 {\n FILE * f = fopen ( \"gfactive.stt\" , \"a\" ) ;\n fprintf ( f , \"%8d %8d %8d %8d %8d\\n\" , cm -> current_video_frame , ( 100 * cpi -> gf_active_count ) / ( cpi -> common . mb_rows * cpi -> common . mb_cols ) , cpi -> this_iiratio , cpi -> next_iiratio , cm -> refresh_golden_frame ) ;\n fclose ( f ) ;\n }\n # endif if ( ! cpi -> oxcf . error_resilient_mode && cm -> refresh_golden_frame ) cm -> copy_buffer_to_arf = 2 ;\n else cm -> copy_buffer_to_arf = 0 ;\n cm -> frame_to_show = & cm -> yv12_fb [ cm -> new_fb_idx ] ;\n # if CONFIG_TEMPORAL_DENOISING if ( cpi -> oxcf . noise_sensitivity == 4 && cpi -> frames_since_key % 8 == 0 && cm -> frame_type != KEY_FRAME ) {\n process_denoiser_mode_change ( cpi ) ;\n }\n # endif # if CONFIG_MULTITHREAD if ( cpi -> b_multi_threaded ) {\n sem_post ( & cpi -> h_event_start_lpf ) ;\n cpi -> b_lpf_running = 1 ;\n }\n else # endif {\n vp8_loopfilter_frame ( cpi , cm ) ;\n }\n update_reference_frames ( cpi ) ;\n # ifdef OUTPUT_YUV_DENOISED vp8_write_yuv_frame ( yuv_denoised_file , & cpi -> denoiser . yv12_running_avg [ INTRA_FRAME ] ) ;\n # endif # if ! ( CONFIG_REALTIME_ONLY & CONFIG_ONTHEFLY_BITPACKING ) if ( cpi -> oxcf . error_resilient_mode ) {\n cm -> refresh_entropy_probs = 0 ;\n }\n # endif # if CONFIG_MULTITHREAD if ( cpi -> b_multi_threaded ) sem_wait ( & cpi -> h_event_end_lpf ) ;\n # endif vp8_pack_bitstream ( cpi , dest , dest_end , size ) ;\n # if CONFIG_MULTITHREAD if ( cpi -> b_lpf_running && cpi -> b_calculate_psnr ) {\n sem_wait ( & cpi -> h_event_end_lpf ) ;\n cpi -> b_lpf_running = 0 ;\n }\n # endif cm -> last_frame_type = cm -> frame_type ;\n cpi -> total_byte_count += ( * size ) ;\n cpi -> projected_frame_size = ( * size ) << 3 ;\n if ( cpi -> oxcf . number_of_layers > 1 ) {\n unsigned int i ;\n for ( i = cpi -> current_layer + 1 ;\n i < cpi -> oxcf . number_of_layers ;\n i ++ ) cpi -> layer_context [ i ] . total_byte_count += ( * size ) ;\n }\n if ( ! active_worst_qchanged ) vp8_update_rate_correction_factors ( cpi , 2 ) ;\n cpi -> last_q [ cm -> frame_type ] = cm -> base_qindex ;\n if ( cm -> frame_type == KEY_FRAME ) {\n vp8_adjust_key_frame_context ( cpi ) ;\n }\n if ( cm -> frame_type != KEY_FRAME ) cpi -> avg_frame_qindex = ( 2 + 3 * cpi -> avg_frame_qindex + cm -> base_qindex ) >> 2 ;\n if ( ( cm -> frame_type != KEY_FRAME ) && ( ( cpi -> oxcf . number_of_layers > 1 ) || ( ! cm -> refresh_golden_frame && ! cm -> refresh_alt_ref_frame ) ) ) {\n cpi -> ni_frames ++ ;\n if ( cpi -> pass == 2 ) {\n cpi -> ni_tot_qi += Q ;\n cpi -> ni_av_qi = ( cpi -> ni_tot_qi / cpi -> ni_frames ) ;\n }\n else {\n if ( cpi -> ni_frames > 150 ) {\n cpi -> ni_tot_qi += Q ;\n cpi -> ni_av_qi = ( cpi -> ni_tot_qi / cpi -> ni_frames ) ;\n }\n else {\n cpi -> ni_tot_qi += Q ;\n cpi -> ni_av_qi = ( ( cpi -> ni_tot_qi / cpi -> ni_frames ) + cpi -> worst_quality + 1 ) / 2 ;\n }\n if ( Q > cpi -> ni_av_qi ) cpi -> ni_av_qi = Q - 1 ;\n }\n }\n if ( ! cm -> show_frame ) cpi -> bits_off_target -= cpi -> projected_frame_size ;\n else cpi -> bits_off_target += cpi -> av_per_frame_bandwidth - cpi -> projected_frame_size ;\n if ( cpi -> bits_off_target > cpi -> oxcf . maximum_buffer_size ) cpi -> bits_off_target = cpi -> oxcf . maximum_buffer_size ;\n cpi -> rolling_target_bits = ( ( cpi -> rolling_target_bits * 3 ) + cpi -> this_frame_target + 2 ) / 4 ;\n cpi -> rolling_actual_bits = ( ( cpi -> rolling_actual_bits * 3 ) + cpi -> projected_frame_size + 2 ) / 4 ;\n cpi -> long_rolling_target_bits = ( ( cpi -> long_rolling_target_bits * 31 ) + cpi -> this_frame_target + 16 ) / 32 ;\n cpi -> long_rolling_actual_bits = ( ( cpi -> long_rolling_actual_bits * 31 ) + cpi -> projected_frame_size + 16 ) / 32 ;\n cpi -> total_actual_bits += cpi -> projected_frame_size ;\n cpi -> total_target_vs_actual += ( cpi -> this_frame_target - cpi -> projected_frame_size ) ;\n cpi -> buffer_level = cpi -> bits_off_target ;\n if ( cpi -> oxcf . number_of_layers > 1 ) {\n unsigned int i ;\n for ( i = cpi -> current_layer + 1 ;\n i < cpi -> oxcf . number_of_layers ;\n i ++ ) {\n LAYER_CONTEXT * lc = & cpi -> layer_context [ i ] ;\n int bits_off_for_this_layer = ( int ) ( lc -> target_bandwidth / lc -> framerate - cpi -> projected_frame_size ) ;\n lc -> bits_off_target += bits_off_for_this_layer ;\n if ( lc -> bits_off_target > lc -> maximum_buffer_size ) lc -> bits_off_target = lc -> maximum_buffer_size ;\n lc -> total_actual_bits += cpi -> projected_frame_size ;\n lc -> total_target_vs_actual += bits_off_for_this_layer ;\n lc -> buffer_level = lc -> bits_off_target ;\n }\n }\n if ( cm -> frame_type == KEY_FRAME ) {\n cpi -> twopass . kf_group_bits += cpi -> this_frame_target - cpi -> projected_frame_size ;\n if ( cpi -> twopass . kf_group_bits < 0 ) cpi -> twopass . kf_group_bits = 0 ;\n }\n else if ( cm -> refresh_golden_frame || cm -> refresh_alt_ref_frame ) {\n cpi -> twopass . gf_group_bits += cpi -> this_frame_target - cpi -> projected_frame_size ;\n if ( cpi -> twopass . gf_group_bits < 0 ) cpi -> twopass . gf_group_bits = 0 ;\n }\n if ( cm -> frame_type != KEY_FRAME ) {\n if ( cpi -> common . refresh_alt_ref_frame ) {\n cpi -> last_skip_false_probs [ 2 ] = cpi -> prob_skip_false ;\n cpi -> last_skip_probs_q [ 2 ] = cm -> base_qindex ;\n }\n else if ( cpi -> common . refresh_golden_frame ) {\n cpi -> last_skip_false_probs [ 1 ] = cpi -> prob_skip_false ;\n cpi -> last_skip_probs_q [ 1 ] = cm -> base_qindex ;\n }\n else {\n cpi -> last_skip_false_probs [ 0 ] = cpi -> prob_skip_false ;\n cpi -> last_skip_probs_q [ 0 ] = cm -> base_qindex ;\n cpi -> base_skip_false_prob [ cm -> base_qindex ] = cpi -> prob_skip_false ;\n }\n }\n # if 0 && CONFIG_INTERNAL_STATS {\n FILE * f = fopen ( \"tmp.stt\" , \"a\" ) ;\n vp8_clear_system_state ( ) ;\n if ( cpi -> twopass . total_left_stats . coded_error != 0.0 ) fprintf ( f , \"%10d %10d %10d %10d %10d %10\" PRId64 \" %10\" PRId64 \"%10\" PRId64 \" %10d %6d %6d %6d %6d %5d %5d %5d %8d \" \"%8.2lf %\" PRId64 \" %10.3lf %10\" PRId64 \" %8d\\n\" , cpi -> common . current_video_frame , cpi -> this_frame_target , cpi -> projected_frame_size , ( cpi -> projected_frame_size - cpi -> this_frame_target ) , cpi -> total_target_vs_actual , cpi -> buffer_level , ( cpi -> oxcf . starting_buffer_level - cpi -> bits_off_target ) , cpi -> total_actual_bits , cm -> base_qindex , cpi -> active_best_quality , cpi -> active_worst_quality , cpi -> ni_av_qi , cpi -> cq_target_quality , cm -> refresh_golden_frame , cm -> refresh_alt_ref_frame , cm -> frame_type , cpi -> gfu_boost , cpi -> twopass . est_max_qcorrection_factor , cpi -> twopass . bits_left , cpi -> twopass . total_left_stats . coded_error , ( double ) cpi -> twopass . bits_left / cpi -> twopass . total_left_stats . coded_error , cpi -> tot_recode_hits ) ;\n else fprintf ( f , \"%10d %10d %10d %10d %10d %10\" PRId64 \" %10\" PRId64 \"%10\" PRId64 \" %10d %6d %6d %6d %6d %5d %5d %5d %8d \" \"%8.2lf %\" PRId64 \" %10.3lf %8d\\n\" , cpi -> common . current_video_frame , cpi -> this_frame_target , cpi -> projected_frame_size , ( cpi -> projected_frame_size - cpi -> this_frame_target ) , cpi -> total_target_vs_actual , cpi -> buffer_level , ( cpi -> oxcf . starting_buffer_level - cpi -> bits_off_target ) , cpi -> total_actual_bits , cm -> base_qindex , cpi -> active_best_quality , cpi -> active_worst_quality , cpi -> ni_av_qi , cpi -> cq_target_quality , cm -> refresh_golden_frame , cm -> refresh_alt_ref_frame , cm -> frame_type , cpi -> gfu_boost , cpi -> twopass . est_max_qcorrection_factor , cpi -> twopass . bits_left , cpi -> twopass . total_left_stats . coded_error , cpi -> tot_recode_hits ) ;\n fclose ( f ) ;\n {\n FILE * fmodes = fopen ( \"Modes.stt\" , \"a\" ) ;\n fprintf ( fmodes , \"%6d:%1d:%1d:%1d \" , cpi -> common . current_video_frame , cm -> frame_type , cm -> refresh_golden_frame , cm -> refresh_alt_ref_frame ) ;\n fprintf ( fmodes , \"\\n\" ) ;\n fclose ( fmodes ) ;\n }\n }\n # endif if ( cm -> refresh_golden_frame == 1 ) cm -> frame_flags = cm -> frame_flags | FRAMEFLAGS_GOLDEN ;\n else cm -> frame_flags = cm -> frame_flags & ~ FRAMEFLAGS_GOLDEN ;\n if ( cm -> refresh_alt_ref_frame == 1 ) cm -> frame_flags = cm -> frame_flags | FRAMEFLAGS_ALTREF ;\n else cm -> frame_flags = cm -> frame_flags & ~ FRAMEFLAGS_ALTREF ;\n if ( cm -> refresh_last_frame & cm -> refresh_golden_frame ) cpi -> gold_is_last = 1 ;\n else if ( cm -> refresh_last_frame ^ cm -> refresh_golden_frame ) cpi -> gold_is_last = 0 ;\n if ( cm -> refresh_last_frame & cm -> refresh_alt_ref_frame ) cpi -> alt_is_last = 1 ;\n else if ( cm -> refresh_last_frame ^ cm -> refresh_alt_ref_frame ) cpi -> alt_is_last = 0 ;\n if ( cm -> refresh_alt_ref_frame & cm -> refresh_golden_frame ) cpi -> gold_is_alt = 1 ;\n else if ( cm -> refresh_alt_ref_frame ^ cm -> refresh_golden_frame ) cpi -> gold_is_alt = 0 ;\n cpi -> ref_frame_flags = VP8_ALTR_FRAME | VP8_GOLD_FRAME | VP8_LAST_FRAME ;\n if ( cpi -> gold_is_last ) cpi -> ref_frame_flags &= ~ VP8_GOLD_FRAME ;\n if ( cpi -> alt_is_last ) cpi -> ref_frame_flags &= ~ VP8_ALTR_FRAME ;\n if ( cpi -> gold_is_alt ) cpi -> ref_frame_flags &= ~ VP8_ALTR_FRAME ;\n if ( ! cpi -> oxcf . error_resilient_mode ) {\n if ( cpi -> oxcf . play_alternate && cm -> refresh_alt_ref_frame && ( cm -> frame_type != KEY_FRAME ) ) update_alt_ref_frame_stats ( cpi ) ;\n else update_golden_frame_stats ( cpi ) ;\n }\n if ( cm -> frame_type == KEY_FRAME ) {\n * frame_flags = cm -> frame_flags | FRAMEFLAGS_KEY ;\n cm -> frame_type = INTER_FRAME ;\n cpi -> last_frame_percent_intra = 100 ;\n }\n else {\n * frame_flags = cm -> frame_flags & ~ FRAMEFLAGS_KEY ;\n cpi -> last_frame_percent_intra = cpi -> this_frame_percent_intra ;\n }\n cpi -> mb . e_mbd . update_mb_segmentation_map = 0 ;\n cpi -> mb . e_mbd . update_mb_segmentation_data = 0 ;\n cpi -> mb . e_mbd . mode_ref_lf_delta_update = 0 ;\n if ( cm -> show_frame ) {\n cm -> current_video_frame ++ ;\n cpi -> frames_since_key ++ ;\n cpi -> temporal_pattern_counter ++ ;\n }\n # if 0 {\n char filename [ 512 ] ;\n FILE * recon_file ;\n sprintf ( filename , \"enc%04d.yuv\" , ( int ) cm -> current_video_frame ) ;\n recon_file = fopen ( filename , \"wb\" ) ;\n fwrite ( cm -> yv12_fb [ cm -> lst_fb_idx ] . buffer_alloc , cm -> yv12_fb [ cm -> lst_fb_idx ] . frame_size , 1 , recon_file ) ;\n fclose ( recon_file ) ;\n }\n # endif }"}
{"idx": 10741, "target": 0, "func": "hb_tag_t hb_ot_tag_from_language ( hb_language_t language ) {\n const char * lang_str , * s ;\n if ( language == HB_LANGUAGE_INVALID ) return HB_OT_TAG_DEFAULT_LANGUAGE ;\n lang_str = hb_language_to_string ( language ) ;\n s = strstr ( lang_str , \"x-hbot\" ) ;\n if ( s ) {\n char tag [ 4 ] ;\n int i ;\n s += 6 ;\n for ( i = 0 ;\n i < 4 && ISALPHA ( s [ i ] ) ;\n i ++ ) tag [ i ] = TOUPPER ( s [ i ] ) ;\n if ( i ) {\n for ( ;\n i < 4 ;\n i ++ ) tag [ i ] = ' ' ;\n return HB_TAG_CHAR4 ( tag ) ;\n }\n }\n {\n const LangTag * lang_tag ;\n lang_tag = ( LangTag * ) bsearch ( lang_str , ot_languages , ARRAY_LENGTH ( ot_languages ) , sizeof ( LangTag ) , ( hb_compare_func_t ) lang_compare_first_component ) ;\n if ( lang_tag ) return lang_tag -> tag ;\n }\n if ( 0 == lang_compare_first_component ( lang_str , \"zh\" ) ) {\n unsigned int i ;\n for ( i = 0 ;\n i < ARRAY_LENGTH ( ot_languages_zh ) ;\n i ++ ) {\n const LangTagLong * lang_tag ;\n lang_tag = & ot_languages_zh [ i ] ;\n if ( lang_matches ( lang_str , lang_tag -> language ) ) return lang_tag -> tag ;\n }\n return HB_TAG ( 'Z' , 'H' , 'S' , ' ' ) ;\n }\n s = strchr ( lang_str , '-' ) ;\n if ( ! s ) s = lang_str + strlen ( lang_str ) ;\n if ( s - lang_str == 3 ) {\n return hb_tag_from_string ( lang_str , s - lang_str ) & ~ 0x20202000u ;\n }\n return HB_OT_TAG_DEFAULT_LANGUAGE ;\n }"}
{"idx": 10742, "target": 0, "func": "static void qtrle_decode_8bpp ( QtrleContext * s , int row_ptr , int lines_to_change ) {\n int rle_code ;\n int pixel_ptr ;\n int row_inc = s -> frame . linesize [ 0 ] ;\n unsigned char pi1 , pi2 , pi3 , pi4 ;\n unsigned char * rgb = s -> frame . data [ 0 ] ;\n int pixel_limit = s -> frame . linesize [ 0 ] * s -> avctx -> height ;\n while ( lines_to_change -- ) {\n pixel_ptr = row_ptr + ( 4 * ( bytestream2_get_byte ( & s -> g ) - 1 ) ) ;\n CHECK_PIXEL_PTR ( 0 ) ;\n while ( ( rle_code = ( signed char ) bytestream2_get_byte ( & s -> g ) ) != - 1 ) {\n if ( rle_code == 0 ) {\n pixel_ptr += ( 4 * ( bytestream2_get_byte ( & s -> g ) - 1 ) ) ;\n CHECK_PIXEL_PTR ( 0 ) ;\n }\n else if ( rle_code < 0 ) {\n rle_code = - rle_code ;\n pi1 = bytestream2_get_byte ( & s -> g ) ;\n pi2 = bytestream2_get_byte ( & s -> g ) ;\n pi3 = bytestream2_get_byte ( & s -> g ) ;\n pi4 = bytestream2_get_byte ( & s -> g ) ;\n CHECK_PIXEL_PTR ( rle_code * 4 ) ;\n while ( rle_code -- ) {\n rgb [ pixel_ptr ++ ] = pi1 ;\n rgb [ pixel_ptr ++ ] = pi2 ;\n rgb [ pixel_ptr ++ ] = pi3 ;\n rgb [ pixel_ptr ++ ] = pi4 ;\n }\n }\n else {\n rle_code *= 4 ;\n CHECK_PIXEL_PTR ( rle_code ) ;\n while ( rle_code -- ) {\n rgb [ pixel_ptr ++ ] = bytestream2_get_byte ( & s -> g ) ;\n }\n }\n }\n row_ptr += row_inc ;\n }\n }"}
{"idx": 10743, "target": 0, "func": "static int gx_ttfReader__Tell ( ttfReader * self ) {\n gx_ttfReader * r = ( gx_ttfReader * ) self ;\n return r -> pos ;\n }"}
{"idx": 10744, "target": 0, "func": "static int dissect_h245_INTEGER_1_3600 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 3600U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 10745, "target": 0, "func": "static int isoent_cmp_node_iso9660 ( const struct archive_rb_node * n1 , const struct archive_rb_node * n2 ) {\n const struct idrent * e1 = ( const struct idrent * ) n1 ;\n const struct idrent * e2 = ( const struct idrent * ) n2 ;\n return ( isoent_cmp_iso9660_identifier ( e2 -> isoent , e1 -> isoent ) ) ;\n }"}
{"idx": 10746, "target": 0, "func": "static UBool hasCESU8Data ( const UConverter * cnv ) {\n # if UCONFIG_ONLY_HTML_CONVERSION return FALSE ;\n # else return ( UBool ) ( cnv -> sharedData == & _CESU8Data ) ;\n # endif }"}
{"idx": 10747, "target": 0, "func": "void fe_server_init ( void ) {\n command_bind ( \"server\" , NULL , ( SIGNAL_FUNC ) cmd_server ) ;\n command_bind ( \"server connect\" , NULL , ( SIGNAL_FUNC ) cmd_server_connect ) ;\n command_bind ( \"server add\" , NULL , ( SIGNAL_FUNC ) cmd_server_add ) ;\n command_bind ( \"server modify\" , NULL , ( SIGNAL_FUNC ) cmd_server_modify ) ;\n command_bind ( \"server remove\" , NULL , ( SIGNAL_FUNC ) cmd_server_remove ) ;\n command_bind_first ( \"server\" , NULL , ( SIGNAL_FUNC ) server_command ) ;\n command_bind_first ( \"disconnect\" , NULL , ( SIGNAL_FUNC ) server_command ) ;\n command_set_options ( \"server add\" , \"4 6 !! ssl nossl +ssl_cert +ssl_pkey +ssl_pass ssl_verify nossl_verify +ssl_cafile +ssl_capath +ssl_ciphers +ssl_fingerprint tls notls +tls_cert +tls_pkey +tls_pass tls_verify notls_verify +tls_cafile +tls_capath +tls_ciphers +tls_pinned_cert +tls_pinned_pubkey auto noauto proxy noproxy -host -port noautosendcmd\" ) ;\n command_set_options ( \"server modify\" , \"4 6 !! ssl nossl +ssl_cert +ssl_pkey +ssl_pass ssl_verify nossl_verify +ssl_cafile +ssl_capath +ssl_ciphers +ssl_fingerprint tls notls +tls_cert +tls_pkey +tls_pass tls_verify notls_verify +tls_cafile +tls_capath +tls_ciphers +tls_pinned_cert +tls_pinned_pubkey auto noauto proxy noproxy -host -port noautosendcmd\" ) ;\n signal_add ( \"server looking\" , ( SIGNAL_FUNC ) sig_server_looking ) ;\n signal_add ( \"server connecting\" , ( SIGNAL_FUNC ) sig_server_connecting ) ;\n signal_add ( \"server connected\" , ( SIGNAL_FUNC ) sig_server_connected ) ;\n signal_add ( \"server connect failed\" , ( SIGNAL_FUNC ) sig_connect_failed ) ;\n signal_add ( \"server disconnected\" , ( SIGNAL_FUNC ) sig_server_disconnected ) ;\n signal_add ( \"server quit\" , ( SIGNAL_FUNC ) sig_server_quit ) ;\n signal_add ( \"server lag disconnect\" , ( SIGNAL_FUNC ) sig_server_lag_disconnected ) ;\n signal_add ( \"server reconnect remove\" , ( SIGNAL_FUNC ) sig_server_reconnect_removed ) ;\n signal_add ( \"server reconnect not found\" , ( SIGNAL_FUNC ) sig_server_reconnect_not_found ) ;\n signal_add ( \"chat protocol unknown\" , ( SIGNAL_FUNC ) sig_chat_protocol_unknown ) ;\n }"}
{"idx": 10748, "target": 0, "func": "static int cpu_restore_state_from_tb ( TranslationBlock * tb , CPUArchState * env , uintptr_t searched_pc ) {\n TCGContext * s = & tcg_ctx ;\n int j ;\n uintptr_t tc_ptr ;\n # ifdef CONFIG_PROFILER int64_t ti ;\n # endif # ifdef CONFIG_PROFILER ti = profile_getclock ( ) ;\n # endif tcg_func_start ( s ) ;\n gen_intermediate_code_pc ( env , tb ) ;\n if ( use_icount ) {\n env -> icount_decr . u16 . low += tb -> icount ;\n env -> can_do_io = 0 ;\n }\n tc_ptr = ( uintptr_t ) tb -> tc_ptr ;\n if ( searched_pc < tc_ptr ) return - 1 ;\n s -> tb_next_offset = tb -> tb_next_offset ;\n # ifdef USE_DIRECT_JUMP s -> tb_jmp_offset = tb -> tb_jmp_offset ;\n s -> tb_next = NULL ;\n # else s -> tb_jmp_offset = NULL ;\n s -> tb_next = tb -> tb_next ;\n # endif j = tcg_gen_code_search_pc ( s , ( uint8_t * ) tc_ptr , searched_pc - tc_ptr ) ;\n if ( j < 0 ) return - 1 ;\n while ( s -> gen_opc_instr_start [ j ] == 0 ) {\n j -- ;\n }\n env -> icount_decr . u16 . low -= s -> gen_opc_icount [ j ] ;\n restore_state_to_opc ( env , tb , j ) ;\n # ifdef CONFIG_PROFILER s -> restore_time += profile_getclock ( ) - ti ;\n s -> restore_count ++ ;\n # endif return 0 ;\n }"}
{"idx": 10749, "target": 0, "func": "int kvm_device_msi_deassign ( KVMState * s , uint32_t dev_id ) {\n return kvm_deassign_irq_internal ( s , dev_id , KVM_DEV_IRQ_GUEST_MSI | KVM_DEV_IRQ_HOST_MSI ) ;\n }"}
{"idx": 10750, "target": 0, "func": "static int dissect_DRIVER_INFO_101 ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n proto_tree * subtree ;\n int struct_start = offset ;\n subtree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_DRIVER_INFO_101 , NULL , \"Driver info level 101\" ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_driverinfo_cversion , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_drivername , struct_start , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_environment , struct_start , NULL ) ;\n proto_tree_add_expert ( subtree , pinfo , & ei_unknown_data , tvb , offset , 0 ) ;\n return offset ;\n }"}
{"idx": 10751, "target": 0, "func": "static inline int pfkey_mode_from_xfrm ( int mode ) {\n switch ( mode ) {\n case XFRM_MODE_TRANSPORT : return IPSEC_MODE_TRANSPORT ;\n case XFRM_MODE_TUNNEL : return IPSEC_MODE_TUNNEL ;\n case XFRM_MODE_BEET : return IPSEC_MODE_BEET ;\n default : return - 1 ;\n }\n }"}
{"idx": 10752, "target": 0, "func": "static void pxa2xx_rtc_sysbus_class_init ( ObjectClass * klass , void * data ) {\n DeviceClass * dc = DEVICE_CLASS ( klass ) ;\n SysBusDeviceClass * k = SYS_BUS_DEVICE_CLASS ( klass ) ;\n k -> init = pxa2xx_rtc_init ;\n dc -> desc = \"PXA2xx RTC Controller\" ;\n dc -> vmsd = & vmstate_pxa2xx_rtc_regs ;\n }"}
{"idx": 10753, "target": 0, "func": "static void write_tile_info ( const VP9_COMMON * const cm , struct vp9_write_bit_buffer * wb ) {\n int min_log2_tile_cols , max_log2_tile_cols , ones ;\n vp9_get_tile_n_bits ( cm -> mi_cols , & min_log2_tile_cols , & max_log2_tile_cols ) ;\n ones = cm -> log2_tile_cols - min_log2_tile_cols ;\n while ( ones -- ) vp9_wb_write_bit ( wb , 1 ) ;\n if ( cm -> log2_tile_cols < max_log2_tile_cols ) vp9_wb_write_bit ( wb , 0 ) ;\n vp9_wb_write_bit ( wb , cm -> log2_tile_rows != 0 ) ;\n if ( cm -> log2_tile_rows != 0 ) vp9_wb_write_bit ( wb , cm -> log2_tile_rows != 1 ) ;\n }"}
{"idx": 10754, "target": 0, "func": "TEST ( WinUtils , SameObject ) {\n using sandbox : : SameObject ;\n wchar_t temp_directory [ MAX_PATH ] ;\n wchar_t my_folder [ MAX_PATH ] ;\n ASSERT_NE ( : : GetTempPath ( MAX_PATH , temp_directory ) , 0u ) ;\n ASSERT_NE ( : : GetTempFileName ( temp_directory , L\"test\" , 0 , my_folder ) , 0u ) ;\n ASSERT_TRUE ( : : DeleteFile ( my_folder ) ) ;\n ASSERT_TRUE ( : : CreateDirectory ( my_folder , NULL ) ) ;\n base : : string16 folder ( my_folder ) ;\n base : : string16 file_name = folder + L\"\\\\foo.txt\" ;\n const ULONG kSharing = FILE_SHARE_WRITE | FILE_SHARE_READ | FILE_SHARE_DELETE ;\n base : : win : : ScopedHandle file ( CreateFile ( file_name . c_str ( ) , GENERIC_WRITE , kSharing , NULL , CREATE_ALWAYS , FILE_FLAG_DELETE_ON_CLOSE , NULL ) ) ;\n EXPECT_TRUE ( file . IsValid ( ) ) ;\n base : : string16 file_name_nt1 = base : : string16 ( L\"\\\\??\\\\\" ) + file_name ;\n base : : string16 file_name_nt2 = base : : string16 ( L\"\\\\??\\\\\" ) + folder + L\"\\\\FOO.txT\" ;\n EXPECT_TRUE ( SameObject ( file . Get ( ) , file_name_nt1 . c_str ( ) ) ) ;\n EXPECT_TRUE ( SameObject ( file . Get ( ) , file_name_nt2 . c_str ( ) ) ) ;\n file . Close ( ) ;\n EXPECT_TRUE ( : : RemoveDirectory ( my_folder ) ) ;\n }"}
{"idx": 10755, "target": 0, "func": "int test_mod_exp_mont_consttime ( BIO * bp , BN_CTX * ctx ) {\n BIGNUM * a , * b , * c , * d , * e ;\n int i ;\n a = BN_new ( ) ;\n b = BN_new ( ) ;\n c = BN_new ( ) ;\n d = BN_new ( ) ;\n e = BN_new ( ) ;\n BN_bntest_rand ( c , 30 , 0 , 1 ) ;\n for ( i = 0 ;\n i < num2 ;\n i ++ ) {\n BN_bntest_rand ( a , 20 + i * 5 , 0 , 0 ) ;\n BN_bntest_rand ( b , 2 + i , 0 , 0 ) ;\n if ( ! BN_mod_exp_mont_consttime ( d , a , b , c , ctx , NULL ) ) return ( 00 ) ;\n if ( bp != NULL ) {\n if ( ! results ) {\n BN_print ( bp , a ) ;\n BIO_puts ( bp , \" ^ \" ) ;\n BN_print ( bp , b ) ;\n BIO_puts ( bp , \" % \" ) ;\n BN_print ( bp , c ) ;\n BIO_puts ( bp , \" - \" ) ;\n }\n BN_print ( bp , d ) ;\n BIO_puts ( bp , \"\\n\" ) ;\n }\n BN_exp ( e , a , b , ctx ) ;\n BN_sub ( e , e , d ) ;\n BN_div ( a , b , e , c , ctx ) ;\n if ( ! BN_is_zero ( b ) ) {\n fprintf ( stderr , \"Modulo exponentiation test failed!\\n\" ) ;\n return 0 ;\n }\n }\n BN_free ( a ) ;\n BN_free ( b ) ;\n BN_free ( c ) ;\n BN_free ( d ) ;\n BN_free ( e ) ;\n return ( 1 ) ;\n }"}
{"idx": 10756, "target": 0, "func": "static void dissect_rsvp_call_attributes ( proto_tree * ti _U_ , packet_info * pinfo , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length _U_ , int rsvp_class _U_ , int type _U_ ) {\n int offset2 = offset + 4 ;\n guint16 tlv_type ;\n guint16 tlv_len ;\n tlv_type = tvb_get_ntohs ( tvb , offset2 ) ;\n tlv_len = tvb_get_ntohs ( tvb , offset2 + 2 ) ;\n if ( tlv_len < 4 ) {\n proto_tree_add_expert_format ( rsvp_object_tree , pinfo , & ei_rsvp_invalid_length , tvb , offset2 + 2 , 2 , \"Invalid TLV length\" ) ;\n return ;\n }\n switch ( tlv_type ) {\n case 2 : proto_tree_add_item ( rsvp_object_tree , hf_rsvp_call_attributes_endpont_id , tvb , offset2 + 4 , tlv_len - 4 , ENC_NA | ENC_ASCII ) ;\n break ;\n }\n }"}
{"idx": 10757, "target": 0, "func": "static int kvm_put_mp_state ( X86CPU * cpu ) {\n struct kvm_mp_state mp_state = {\n . mp_state = cpu -> env . mp_state }\n ;\n return kvm_vcpu_ioctl ( CPU ( cpu ) , KVM_SET_MP_STATE , & mp_state ) ;\n }"}
{"idx": 10758, "target": 0, "func": "TEST_F ( OmniboxEditTest , AdjustTextForCopy ) {\n struct Data {\n const char * perm_text ;\n const int sel_start ;\n const bool is_all_selected ;\n const char * input ;\n const char * expected_output ;\n const bool write_url ;\n const char * expected_url ;\n }\n input [ ] = {\n {\n \"a.de/b\" , 0 , true , \"a.de/b\" , \"http://a.de/b\" , true , \"http://a.de/b\" , }\n , {\n \"a.de/b\" , 0 , false , \"a.de/\" , \"http://a.de/\" , true , \"http://a.de/\" }\n , {\n \"a.de/b\" , 0 , false , \"a.de/c\" , \"http://a.de/c\" , true , \"http://a.de/c\" }\n , {\n \"a.de/b\" , 0 , false , \"a.com/b\" , \"a.com/b\" , false , \"\" }\n , {\n \"a.de/b\" , 1 , false , \"a.de/b\" , \"a.de/b\" , false , \"\" }\n , {\n \"a.de/\" , 0 , false , \"a.d\" , \"a.d\" , false , \"\" }\n , {\n \"https://a.com/\" , 0 , false , \"a.com/\" , \"a.com/\" , false , \"\" }\n , {\n \"a.de/\" , 0 , false , \"a.de.com/\" , \"a.de.com/\" , false , \"\" }\n , {\n \"a.de/\" , 0 , false , \"http://a.de/\" , \"http://a.de/\" , true , \"http://a.de/\" }\n , {\n \"b/foo\" , 0 , true , \"b/foo\" , \"http://b/foo\" , true , \"http://b/foo\" }\n , {\n \"www.google.com/search?\" , 0 , false , \"foo\" , \"foo\" , false , \"\" }\n , }\n ;\n for ( size_t i = 0 ;\n i < arraysize ( input ) ;\n ++ i ) {\n toolbar_model ( ) -> set_text ( base : : ASCIIToUTF16 ( input [ i ] . perm_text ) ) ;\n model ( ) -> UpdatePermanentText ( ) ;\n base : : string16 result = base : : ASCIIToUTF16 ( input [ i ] . input ) ;\n GURL url ;\n bool write_url ;\n model ( ) -> AdjustTextForCopy ( input [ i ] . sel_start , input [ i ] . is_all_selected , & result , & url , & write_url ) ;\n EXPECT_EQ ( base : : ASCIIToUTF16 ( input [ i ] . expected_output ) , result ) << \"@: \" << i ;\n EXPECT_EQ ( input [ i ] . write_url , write_url ) << \" @\" << i ;\n if ( write_url ) EXPECT_EQ ( input [ i ] . expected_url , url . spec ( ) ) << \" @\" << i ;\n }\n }"}
{"idx": 10759, "target": 0, "func": "static void show_usage ( void ) {\n av_log ( NULL , AV_LOG_INFO , \"Simple multimedia streams analyzer\\n\" ) ;\n av_log ( NULL , AV_LOG_INFO , \"usage: %s [OPTIONS] [INPUT_FILE]\\n\" , program_name ) ;\n av_log ( NULL , AV_LOG_INFO , \"\\n\" ) ;\n }"}
{"idx": 10760, "target": 0, "func": "bool contain_volatile_functions ( Node * clause ) {\n return contain_volatile_functions_walker ( clause , NULL ) ;\n }"}
{"idx": 10761, "target": 0, "func": "static void cpu_irq_change ( AlphaCPU * cpu , uint64_t req ) {\n if ( cpu != NULL ) {\n CPUState * cs = CPU ( cpu ) ;\n if ( req ) {\n cpu_interrupt ( cs , CPU_INTERRUPT_HARD ) ;\n }\n else {\n cpu_reset_interrupt ( cs , CPU_INTERRUPT_HARD ) ;\n }\n }\n }"}
{"idx": 10762, "target": 0, "func": "static int dissect_rsl_ie_l1_inf ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_tree * ie_tree ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_L1_INF ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 3 , ett_ie_l1_inf , NULL , \"L1 Information IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_l1inf_power_lev , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_l1inf_fpc , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_act_timing_adv , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n return offset ;\n }"}
{"idx": 10763, "target": 0, "func": "PREDICTION_MODE vp9_left_block_mode ( const MODE_INFO * cur_mi , const MODE_INFO * left_mi , int b ) {\n if ( b == 0 || b == 2 ) {\n if ( ! left_mi || is_inter_block ( & left_mi -> mbmi ) ) return DC_PRED ;\n return get_y_mode ( left_mi , b + 1 ) ;\n }\n else {\n assert ( b == 1 || b == 3 ) ;\n return cur_mi -> bmi [ b - 1 ] . as_mode ;\n }\n }"}
{"idx": 10764, "target": 0, "func": "static void usage ( ) {\n puts ( \"Usage: icucal [OPTIONS] [[MONTH] YEAR]\" ) ;\n puts ( \"\" ) ;\n puts ( \"Options:\" ) ;\n puts ( \" -h, --help Print this message and exit.\" ) ;\n puts ( \" -v, --version Print the version number of cal and exit.\" ) ;\n puts ( \" -l, --long Use long names.\" ) ;\n puts ( \"\" ) ;\n puts ( \"Arguments (optional):\" ) ;\n puts ( \" MONTH An integer (1-12) indicating the month to display\" ) ;\n puts ( \" YEAR An integer indicating the year to display\" ) ;\n puts ( \"\" ) ;\n puts ( \"For an interesting calendar, look at October 1582\" ) ;\n }"}
{"idx": 10765, "target": 0, "func": "static char * lxc_cgroup_get_hierarchy_abs_path_data ( const char * subsystem , struct cgfs_data * d ) {\n struct cgroup_process_info * info = d -> info ;\n struct cgroup_mount_point * mp = NULL ;\n info = find_info_for_subsystem ( info , subsystem ) ;\n if ( ! info ) return NULL ;\n if ( info -> designated_mount_point ) {\n mp = info -> designated_mount_point ;\n }\n else {\n mp = lxc_cgroup_find_mount_point ( info -> hierarchy , info -> cgroup_path , true ) ;\n if ( ! mp ) return NULL ;\n }\n return cgroup_to_absolute_path ( mp , info -> cgroup_path , NULL ) ;\n }"}
{"idx": 10766, "target": 0, "func": "static int seqvideo_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n int ret ;\n SeqVideoContext * seq = avctx -> priv_data ;\n if ( ( ret = ff_reget_buffer ( avctx , & seq -> frame ) ) < 0 ) {\n av_log ( seq -> avctx , AV_LOG_ERROR , \"tiertexseqvideo: reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( seqvideo_decode ( seq , buf , buf_size ) ) return AVERROR_INVALIDDATA ;\n if ( ( ret = av_frame_ref ( data , & seq -> frame ) ) < 0 ) return ret ;\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 10767, "target": 1, "func": "TEST_F ( UsbBlocklistTest , StaticEntries ) {\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x1050 , 0x0111 , 0x0100 }\n ) ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x1050 , 0x0112 , 0x0100 }\n ) ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x1050 , 0x0115 , 0x0100 }\n ) ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x1050 , 0x0116 , 0x0100 }\n ) ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x1050 , 0x0211 , 0x0100 }\n ) ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x1050 , 0x0404 , 0x0100 }\n ) ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x1050 , 0x0405 , 0x0100 }\n ) ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x1050 , 0x0406 , 0x0100 }\n ) ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x1050 , 0x0407 , 0x0100 }\n ) ) ;\n EXPECT_FALSE ( list ( ) . IsExcluded ( {\n 0x1050 , 0x0200 , 0x0100 }\n ) ) ;\n }"}
{"idx": 10768, "target": 0, "func": "static uint32_t U_CALLCONV uprv_readSwapUInt32 ( uint32_t x ) {\n return ( uint32_t ) ( ( x << 24 ) | ( ( x << 8 ) & 0xff0000 ) | ( ( x >> 8 ) & 0xff00 ) | ( x >> 24 ) ) ;\n }"}
{"idx": 10769, "target": 0, "func": "static void mips_jazz_init ( MemoryRegion * address_space , MemoryRegion * address_space_io , ram_addr_t ram_size , const char * cpu_model , enum jazz_model_e jazz_model ) {\n char * filename ;\n int bios_size , n ;\n MIPSCPU * cpu ;\n CPUMIPSState * env ;\n qemu_irq * rc4030 , * i8259 ;\n rc4030_dma * dmas ;\n void * rc4030_opaque ;\n MemoryRegion * rtc = g_new ( MemoryRegion , 1 ) ;\n MemoryRegion * i8042 = g_new ( MemoryRegion , 1 ) ;\n MemoryRegion * dma_dummy = g_new ( MemoryRegion , 1 ) ;\n NICInfo * nd ;\n DeviceState * dev ;\n SysBusDevice * sysbus ;\n ISABus * isa_bus ;\n ISADevice * pit ;\n DriveInfo * fds [ MAX_FD ] ;\n qemu_irq esp_reset , dma_enable ;\n qemu_irq * cpu_exit_irq ;\n MemoryRegion * ram = g_new ( MemoryRegion , 1 ) ;\n MemoryRegion * bios = g_new ( MemoryRegion , 1 ) ;\n MemoryRegion * bios2 = g_new ( MemoryRegion , 1 ) ;\n if ( cpu_model == NULL ) {\n # ifdef TARGET_MIPS64 cpu_model = \"R4000\" ;\n # else cpu_model = \"24Kf\" ;\n # endif }\n cpu = cpu_mips_init ( cpu_model ) ;\n if ( cpu == NULL ) {\n fprintf ( stderr , \"Unable to find CPU definition\\n\" ) ;\n exit ( 1 ) ;\n }\n env = & cpu -> env ;\n qemu_register_reset ( main_cpu_reset , cpu ) ;\n memory_region_init_ram ( ram , NULL , \"mips_jazz.ram\" , ram_size ) ;\n vmstate_register_ram_global ( ram ) ;\n memory_region_add_subregion ( address_space , 0 , ram ) ;\n memory_region_init_ram ( bios , NULL , \"mips_jazz.bios\" , MAGNUM_BIOS_SIZE ) ;\n vmstate_register_ram_global ( bios ) ;\n memory_region_set_readonly ( bios , true ) ;\n memory_region_init_alias ( bios2 , NULL , \"mips_jazz.bios\" , bios , 0 , MAGNUM_BIOS_SIZE ) ;\n memory_region_add_subregion ( address_space , 0x1fc00000LL , bios ) ;\n memory_region_add_subregion ( address_space , 0xfff00000LL , bios2 ) ;\n if ( bios_name == NULL ) bios_name = BIOS_FILENAME ;\n filename = qemu_find_file ( QEMU_FILE_TYPE_BIOS , bios_name ) ;\n if ( filename ) {\n bios_size = load_image_targphys ( filename , 0xfff00000LL , MAGNUM_BIOS_SIZE ) ;\n g_free ( filename ) ;\n }\n else {\n bios_size = - 1 ;\n }\n if ( bios_size < 0 || bios_size > MAGNUM_BIOS_SIZE ) {\n fprintf ( stderr , \"qemu: Could not load MIPS bios '%s'\\n\" , bios_name ) ;\n exit ( 1 ) ;\n }\n cpu_mips_irq_init_cpu ( env ) ;\n cpu_mips_clock_init ( env ) ;\n rc4030_opaque = rc4030_init ( env -> irq [ 6 ] , env -> irq [ 3 ] , & rc4030 , & dmas , address_space ) ;\n memory_region_init_io ( dma_dummy , NULL , & dma_dummy_ops , NULL , \"dummy_dma\" , 0x1000 ) ;\n memory_region_add_subregion ( address_space , 0x8000d000 , dma_dummy ) ;\n isa_bus = isa_bus_new ( NULL , address_space_io ) ;\n i8259 = i8259_init ( isa_bus , env -> irq [ 4 ] ) ;\n isa_bus_irqs ( isa_bus , i8259 ) ;\n cpu_exit_irq = qemu_allocate_irqs ( cpu_request_exit , NULL , 1 ) ;\n DMA_init ( 0 , cpu_exit_irq ) ;\n pit = pit_init ( isa_bus , 0x40 , 0 , NULL ) ;\n pcspk_init ( isa_bus , pit ) ;\n isa_mmio_init ( 0x90000000 , 0x01000000 ) ;\n isa_mem_base = 0x11000000 ;\n switch ( jazz_model ) {\n case JAZZ_MAGNUM : dev = qdev_create ( NULL , \"sysbus-g364\" ) ;\n qdev_init_nofail ( dev ) ;\n sysbus = SYS_BUS_DEVICE ( dev ) ;\n sysbus_mmio_map ( sysbus , 0 , 0x60080000 ) ;\n sysbus_mmio_map ( sysbus , 1 , 0x40000000 ) ;\n sysbus_connect_irq ( sysbus , 0 , rc4030 [ 3 ] ) ;\n {\n MemoryRegion * rom_mr = g_new ( MemoryRegion , 1 ) ;\n memory_region_init_ram ( rom_mr , NULL , \"g364fb.rom\" , 0x80000 ) ;\n vmstate_register_ram_global ( rom_mr ) ;\n memory_region_set_readonly ( rom_mr , true ) ;\n uint8_t * rom = memory_region_get_ram_ptr ( rom_mr ) ;\n memory_region_add_subregion ( address_space , 0x60000000 , rom_mr ) ;\n rom [ 0 ] = 0x10 ;\n }\n break ;\n case JAZZ_PICA61 : isa_vga_mm_init ( 0x40000000 , 0x60000000 , 0 , get_system_memory ( ) ) ;\n break ;\n default : break ;\n }\n for ( n = 0 ;\n n < nb_nics ;\n n ++ ) {\n nd = & nd_table [ n ] ;\n if ( ! nd -> model ) nd -> model = g_strdup ( \"dp83932\" ) ;\n if ( strcmp ( nd -> model , \"dp83932\" ) == 0 ) {\n dp83932_init ( nd , 0x80001000 , 2 , get_system_memory ( ) , rc4030 [ 4 ] , rc4030_opaque , rc4030_dma_memory_rw ) ;\n break ;\n }\n else if ( is_help_option ( nd -> model ) ) {\n fprintf ( stderr , \"qemu: Supported NICs: dp83932\\n\" ) ;\n exit ( 1 ) ;\n }\n else {\n fprintf ( stderr , \"qemu: Unsupported NIC: %s\\n\" , nd -> model ) ;\n exit ( 1 ) ;\n }\n }\n esp_init ( 0x80002000 , 0 , rc4030_dma_read , rc4030_dma_write , dmas [ 0 ] , rc4030 [ 5 ] , & esp_reset , & dma_enable ) ;\n if ( drive_get_max_bus ( IF_FLOPPY ) >= MAX_FD ) {\n fprintf ( stderr , \"qemu: too many floppy drives\\n\" ) ;\n exit ( 1 ) ;\n }\n for ( n = 0 ;\n n < MAX_FD ;\n n ++ ) {\n fds [ n ] = drive_get ( IF_FLOPPY , 0 , n ) ;\n }\n fdctrl_init_sysbus ( rc4030 [ 1 ] , 0 , 0x80003000 , fds ) ;\n rtc_init ( isa_bus , 1980 , NULL ) ;\n memory_region_init_io ( rtc , NULL , & rtc_ops , NULL , \"rtc\" , 0x1000 ) ;\n memory_region_add_subregion ( address_space , 0x80004000 , rtc ) ;\n i8042_mm_init ( rc4030 [ 6 ] , rc4030 [ 7 ] , i8042 , 0x1000 , 0x1 ) ;\n memory_region_add_subregion ( address_space , 0x80005000 , i8042 ) ;\n if ( serial_hds [ 0 ] ) {\n serial_mm_init ( address_space , 0x80006000 , 0 , rc4030 [ 8 ] , 8000000 / 16 , serial_hds [ 0 ] , DEVICE_NATIVE_ENDIAN ) ;\n }\n if ( serial_hds [ 1 ] ) {\n serial_mm_init ( address_space , 0x80007000 , 0 , rc4030 [ 9 ] , 8000000 / 16 , serial_hds [ 1 ] , DEVICE_NATIVE_ENDIAN ) ;\n }\n if ( parallel_hds [ 0 ] ) parallel_mm_init ( address_space , 0x80008000 , 0 , rc4030 [ 0 ] , parallel_hds [ 0 ] ) ;\n dev = qdev_create ( NULL , \"ds1225y\" ) ;\n qdev_init_nofail ( dev ) ;\n sysbus = SYS_BUS_DEVICE ( dev ) ;\n sysbus_mmio_map ( sysbus , 0 , 0x80009000 ) ;\n sysbus_create_simple ( \"jazz-led\" , 0x8000f000 , NULL ) ;\n }"}
{"idx": 10770, "target": 0, "func": "static void dtap_cc_notify ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_FALSE ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_NOT_IND , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 10771, "target": 0, "func": "static void xps_parse_poly_bezier_segment ( fz_context * doc , fz_path * path , fz_xml * root , int stroking , int * skipped_stroke ) {\n char * points_att = fz_xml_att ( root , \"Points\" ) ;\n char * is_stroked_att = fz_xml_att ( root , \"IsStroked\" ) ;\n float x [ 3 ] , y [ 3 ] ;\n int is_stroked ;\n char * s ;\n int n ;\n if ( ! points_att ) {\n fz_warn ( doc , \"PolyBezierSegment element has no points\" ) ;\n return ;\n }\n is_stroked = 1 ;\n if ( is_stroked_att && ! strcmp ( is_stroked_att , \"false\" ) ) is_stroked = 0 ;\n if ( ! is_stroked ) * skipped_stroke = 1 ;\n s = points_att ;\n n = 0 ;\n while ( * s != 0 ) {\n while ( * s == ' ' ) s ++ ;\n s = xps_parse_point ( s , & x [ n ] , & y [ n ] ) ;\n n ++ ;\n if ( n == 3 ) {\n if ( stroking && ! is_stroked ) fz_moveto ( doc , path , x [ 2 ] , y [ 2 ] ) ;\n else fz_curveto ( doc , path , x [ 0 ] , y [ 0 ] , x [ 1 ] , y [ 1 ] , x [ 2 ] , y [ 2 ] ) ;\n n = 0 ;\n }\n }\n }"}
{"idx": 10772, "target": 1, "func": "void ff_vdpau_h264_picture_complete ( H264Context * h ) {\n struct vdpau_render_state * render ;\n render = ( struct vdpau_render_state * ) h -> cur_pic_ptr -> f . data [ 0 ] ;\n assert ( render ) ;\n render -> info . h264 . slice_count = h -> slice_num ;\n if ( render -> info . h264 . slice_count < 1 ) return ;\n render -> info . h264 . is_reference = ( h -> cur_pic_ptr -> f . reference & 3 ) ? VDP_TRUE : VDP_FALSE ;\n render -> info . h264 . field_pic_flag = h -> picture_structure != PICT_FRAME ;\n render -> info . h264 . bottom_field_flag = h -> picture_structure == PICT_BOTTOM_FIELD ;\n render -> info . h264 . num_ref_frames = h -> sps . ref_frame_count ;\n render -> info . h264 . mb_adaptive_frame_field_flag = h -> sps . mb_aff && ! render -> info . h264 . field_pic_flag ;\n render -> info . h264 . constrained_intra_pred_flag = h -> pps . constrained_intra_pred ;\n render -> info . h264 . weighted_pred_flag = h -> pps . weighted_pred ;\n render -> info . h264 . weighted_bipred_idc = h -> pps . weighted_bipred_idc ;\n render -> info . h264 . frame_mbs_only_flag = h -> sps . frame_mbs_only_flag ;\n render -> info . h264 . transform_8x8_mode_flag = h -> pps . transform_8x8_mode ;\n render -> info . h264 . chroma_qp_index_offset = h -> pps . chroma_qp_index_offset [ 0 ] ;\n render -> info . h264 . second_chroma_qp_index_offset = h -> pps . chroma_qp_index_offset [ 1 ] ;\n render -> info . h264 . pic_init_qp_minus26 = h -> pps . init_qp - 26 ;\n render -> info . h264 . num_ref_idx_l0_active_minus1 = h -> pps . ref_count [ 0 ] - 1 ;\n render -> info . h264 . num_ref_idx_l1_active_minus1 = h -> pps . ref_count [ 1 ] - 1 ;\n render -> info . h264 . log2_max_frame_num_minus4 = h -> sps . log2_max_frame_num - 4 ;\n render -> info . h264 . pic_order_cnt_type = h -> sps . poc_type ;\n render -> info . h264 . log2_max_pic_order_cnt_lsb_minus4 = h -> sps . poc_type ? 0 : h -> sps . log2_max_poc_lsb - 4 ;\n render -> info . h264 . delta_pic_order_always_zero_flag = h -> sps . delta_pic_order_always_zero_flag ;\n render -> info . h264 . direct_8x8_inference_flag = h -> sps . direct_8x8_inference_flag ;\n render -> info . h264 . entropy_coding_mode_flag = h -> pps . cabac ;\n render -> info . h264 . pic_order_present_flag = h -> pps . pic_order_present ;\n render -> info . h264 . deblocking_filter_control_present_flag = h -> pps . deblocking_filter_parameters_present ;\n render -> info . h264 . redundant_pic_cnt_present_flag = h -> pps . redundant_pic_cnt_present ;\n memcpy ( render -> info . h264 . scaling_lists_4x4 , h -> pps . scaling_matrix4 , sizeof ( render -> info . h264 . scaling_lists_4x4 ) ) ;\n memcpy ( render -> info . h264 . scaling_lists_8x8 [ 0 ] , h -> pps . scaling_matrix8 [ 0 ] , sizeof ( render -> info . h264 . scaling_lists_8x8 [ 0 ] ) ) ;\n memcpy ( render -> info . h264 . scaling_lists_8x8 [ 1 ] , h -> pps . scaling_matrix8 [ 3 ] , sizeof ( render -> info . h264 . scaling_lists_8x8 [ 0 ] ) ) ;\n ff_h264_draw_horiz_band ( h , 0 , h -> avctx -> height ) ;\n render -> bitstream_buffers_used = 0 ;\n }"}
{"idx": 10773, "target": 0, "func": "static int AddEntry ( struct pskeydict * dict , struct psstack * stack , int sp ) {\n int i ;\n if ( dict -> cnt >= dict -> max ) {\n if ( dict -> cnt == 0 ) {\n dict -> max = 30 ;\n dict -> entries = malloc ( dict -> max * sizeof ( struct pskeyval ) ) ;\n }\n else {\n dict -> max += 30 ;\n dict -> entries = realloc ( dict -> entries , dict -> max * sizeof ( struct pskeyval ) ) ;\n }\n }\n if ( sp < 2 ) return ( sp ) ;\n if ( stack [ sp - 2 ] . type != ps_string && stack [ sp - 2 ] . type != ps_lit ) {\n LogError ( _ ( \"Key for a def must be a string or name literal\\n\" ) ) ;\n return ( sp - 2 ) ;\n }\n for ( i = 0 ;\n i < dict -> cnt ;\n ++ i ) if ( strcmp ( dict -> entries [ i ] . key , stack [ sp - 2 ] . u . str ) == 0 ) break ;\n if ( i != dict -> cnt ) {\n free ( stack [ sp - 2 ] . u . str ) ;\n if ( dict -> entries [ i ] . type == ps_string || dict -> entries [ i ] . type == ps_instr || dict -> entries [ i ] . type == ps_lit ) free ( dict -> entries [ i ] . u . str ) ;\n }\n else {\n memset ( & dict -> entries [ i ] , '\\0' , sizeof ( struct pskeyval ) ) ;\n dict -> entries [ i ] . key = stack [ sp - 2 ] . u . str ;\n ++ dict -> cnt ;\n }\n dict -> entries [ i ] . type = stack [ sp - 1 ] . type ;\n dict -> entries [ i ] . u = stack [ sp - 1 ] . u ;\n return ( sp - 2 ) ;\n }"}
{"idx": 10774, "target": 0, "func": "static ssize_t qio_channel_websock_read_wire ( QIOChannelWebsock * ioc , Error * * errp ) {\n ssize_t ret ;\n if ( ioc -> encinput . offset < 4096 ) {\n size_t want = 4096 - ioc -> encinput . offset ;\n buffer_reserve ( & ioc -> encinput , want ) ;\n ret = qio_channel_read ( ioc -> master , ( char * ) ioc -> encinput . buffer + ioc -> encinput . offset , want , errp ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n if ( ret == 0 && ioc -> encinput . offset == 0 ) {\n ioc -> io_eof = TRUE ;\n return 0 ;\n }\n ioc -> encinput . offset += ret ;\n }\n while ( ioc -> encinput . offset != 0 ) {\n if ( ioc -> payload_remain == 0 ) {\n ret = qio_channel_websock_decode_header ( ioc , errp ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n }\n ret = qio_channel_websock_decode_payload ( ioc , errp ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n }\n return 1 ;\n }"}
{"idx": 10775, "target": 0, "func": "TSReturnCode TSMimeHdrFieldValueDateInsert ( TSMBuffer bufp , TSMLoc hdr , TSMLoc field , time_t value ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( hdr ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( hdr ) == TS_SUCCESS ) ) ;\n sdk_assert ( sdk_sanity_check_field_handle ( field , hdr ) == TS_SUCCESS ) ;\n if ( ! isWriteable ( bufp ) ) {\n return TS_ERROR ;\n }\n if ( TSMimeHdrFieldValuesClear ( bufp , hdr , field ) == TS_ERROR ) {\n return TS_ERROR ;\n }\n char tmp [ 33 ] ;\n int len = mime_format_date ( tmp , value ) ;\n ( void ) TSMimeFieldValueSet ( bufp , field , - 1 , tmp , len ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 10776, "target": 0, "func": "TEST ( DownloadPrefsTest , AutoOpenForSafeFiles ) {\n const base : : FilePath kSafeFilePath ( FILE_PATH_LITERAL ( \"/goodothing-wrong.txt\" ) ) ;\n const base : : FilePath kAnotherSafeFilePath ( FILE_PATH_LITERAL ( \"/okot-bad.txt\" ) ) ;\n content : : TestBrowserThreadBundle threads_are_required_for_testing_profile ;\n TestingProfile profile ;\n DownloadPrefs prefs ( & profile ) ;\n EXPECT_TRUE ( prefs . EnableAutoOpenBasedOnExtension ( kSafeFilePath ) ) ;\n EXPECT_TRUE ( prefs . IsAutoOpenEnabledBasedOnExtension ( kSafeFilePath ) ) ;\n EXPECT_TRUE ( prefs . IsAutoOpenEnabledBasedOnExtension ( kAnotherSafeFilePath ) ) ;\n }"}
{"idx": 10777, "target": 1, "func": "SPL_METHOD ( SplFileObject , ftell ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n long ret = php_stream_tell ( intern -> u . file . stream ) ;\n if ( ret == - 1 ) {\n RETURN_FALSE ;\n }\n else {\n RETURN_LONG ( ret ) ;\n }\n }"}
{"idx": 10778, "target": 0, "func": "static bool mark_as_dependent ( THD * thd , SELECT_LEX * last , SELECT_LEX * current , Item_ident * resolved_item , Item_ident * mark_item ) {\n DBUG_ENTER ( \"mark_as_dependent\" ) ;\n if ( mark_item && mark_item -> can_be_depended ) {\n DBUG_PRINT ( \"info\" , ( \"mark_item: %p lex: %p\" , mark_item , last ) ) ;\n mark_item -> depended_from = last ;\n }\n if ( current -> mark_as_dependent ( thd , last , mark_item ) ) DBUG_RETURN ( TRUE ) ;\n if ( thd -> lex -> describe & DESCRIBE_EXTENDED ) {\n const char * db_name = ( resolved_item -> db_name ? resolved_item -> db_name : \"\" ) ;\n const char * table_name = ( resolved_item -> table_name ? resolved_item -> table_name : \"\" ) ;\n push_warning_printf ( thd , MYSQL_ERROR : : WARN_LEVEL_NOTE , ER_WARN_FIELD_RESOLVED , ER ( ER_WARN_FIELD_RESOLVED ) , db_name , ( db_name [ 0 ] ? \".\" : \"\" ) , table_name , ( table_name [ 0 ] ? \".\" : \"\" ) , resolved_item -> field_name , current -> select_number , last -> select_number ) ;\n }\n DBUG_RETURN ( FALSE ) ;\n }"}
{"idx": 10779, "target": 0, "func": "gs_main_instance * gs_main_alloc_instance ( gs_memory_t * mem ) {\n gs_main_instance * minst ;\n if ( mem == NULL ) return NULL ;\n minst = ( gs_main_instance * ) gs_alloc_bytes_immovable ( mem , sizeof ( gs_main_instance ) , \"init_main_instance\" ) ;\n if ( minst == NULL ) return NULL ;\n memcpy ( minst , & gs_main_instance_init_values , sizeof ( gs_main_instance_init_values ) ) ;\n minst -> heap = mem ;\n mem -> gs_lib_ctx -> top_of_system = minst ;\n return minst ;\n }"}
{"idx": 10780, "target": 0, "func": "static double calculate_modified_err ( const TWO_PASS * twopass , const VP9EncoderConfig * oxcf , const FIRSTPASS_STATS * this_frame ) {\n const FIRSTPASS_STATS * const stats = & twopass -> total_stats ;\n const double av_err = stats -> coded_error / stats -> count ;\n const double modified_error = av_err * pow ( this_frame -> coded_error / DOUBLE_DIVIDE_CHECK ( av_err ) , oxcf -> two_pass_vbrbias / 100.0 ) ;\n return fclamp ( modified_error , twopass -> modified_error_min , twopass -> modified_error_max ) ;\n }"}
{"idx": 10781, "target": 0, "func": "static int decode_tilehdr ( WMAProDecodeCtx * s ) {\n uint16_t num_samples [ WMAPRO_MAX_CHANNELS ] = {\n 0 }\n ;\n uint8_t contains_subframe [ WMAPRO_MAX_CHANNELS ] ;\n int channels_for_cur_subframe = s -> avctx -> channels ;\n int fixed_channel_layout = 0 ;\n int min_channel_len = 0 ;\n int c ;\n for ( c = 0 ;\n c < s -> avctx -> channels ;\n c ++ ) s -> channel [ c ] . num_subframes = 0 ;\n if ( s -> max_num_subframes == 1 || get_bits1 ( & s -> gb ) ) fixed_channel_layout = 1 ;\n do {\n int subframe_len ;\n for ( c = 0 ;\n c < s -> avctx -> channels ;\n c ++ ) {\n if ( num_samples [ c ] == min_channel_len ) {\n if ( fixed_channel_layout || channels_for_cur_subframe == 1 || ( min_channel_len == s -> samples_per_frame - s -> min_samples_per_subframe ) ) contains_subframe [ c ] = 1 ;\n else contains_subframe [ c ] = get_bits1 ( & s -> gb ) ;\n }\n else contains_subframe [ c ] = 0 ;\n }\n if ( ( subframe_len = decode_subframe_length ( s , min_channel_len ) ) <= 0 ) return AVERROR_INVALIDDATA ;\n min_channel_len += subframe_len ;\n for ( c = 0 ;\n c < s -> avctx -> channels ;\n c ++ ) {\n WMAProChannelCtx * chan = & s -> channel [ c ] ;\n if ( contains_subframe [ c ] ) {\n if ( chan -> num_subframes >= MAX_SUBFRAMES ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"broken frame: num subframes > 31\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n chan -> subframe_len [ chan -> num_subframes ] = subframe_len ;\n num_samples [ c ] += subframe_len ;\n ++ chan -> num_subframes ;\n if ( num_samples [ c ] > s -> samples_per_frame ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"broken frame: \" \"channel len > samples_per_frame\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n else if ( num_samples [ c ] <= min_channel_len ) {\n if ( num_samples [ c ] < min_channel_len ) {\n channels_for_cur_subframe = 0 ;\n min_channel_len = num_samples [ c ] ;\n }\n ++ channels_for_cur_subframe ;\n }\n }\n }\n while ( min_channel_len < s -> samples_per_frame ) ;\n for ( c = 0 ;\n c < s -> avctx -> channels ;\n c ++ ) {\n int i ;\n int offset = 0 ;\n for ( i = 0 ;\n i < s -> channel [ c ] . num_subframes ;\n i ++ ) {\n av_dlog ( s -> avctx , \"frame[%i] channel[%i] subframe[%i]\" \" len %i\\n\" , s -> frame_num , c , i , s -> channel [ c ] . subframe_len [ i ] ) ;\n s -> channel [ c ] . subframe_offset [ i ] = offset ;\n offset += s -> channel [ c ] . subframe_len [ i ] ;\n }\n }\n return 0 ;\n }"}
{"idx": 10782, "target": 0, "func": "static void qemuMonitorJSONHandleBlockJob ( qemuMonitorPtr mon , virJSONValuePtr data ) {\n const char * device ;\n const char * type_str ;\n int type = VIR_DOMAIN_BLOCK_JOB_TYPE_UNKNOWN ;\n unsigned long long offset , len ;\n int status = VIR_DOMAIN_BLOCK_JOB_FAILED ;\n if ( ( device = virJSONValueObjectGetString ( data , \"device\" ) ) == NULL ) {\n VIR_WARN ( \"missing device in block job event\" ) ;\n goto out ;\n }\n if ( virJSONValueObjectGetNumberUlong ( data , \"offset\" , & offset ) < 0 ) {\n VIR_WARN ( \"missing offset in block job event\" ) ;\n goto out ;\n }\n if ( virJSONValueObjectGetNumberUlong ( data , \"len\" , & len ) < 0 ) {\n VIR_WARN ( \"missing len in block job event\" ) ;\n goto out ;\n }\n if ( ( type_str = virJSONValueObjectGetString ( data , \"type\" ) ) == NULL ) {\n VIR_WARN ( \"missing type in block job event\" ) ;\n goto out ;\n }\n if ( STREQ ( type_str , \"stream\" ) ) type = VIR_DOMAIN_BLOCK_JOB_TYPE_PULL ;\n if ( offset != 0 && offset == len ) status = VIR_DOMAIN_BLOCK_JOB_COMPLETED ;\n out : qemuMonitorEmitBlockJob ( mon , device , type , status ) ;\n }"}
{"idx": 10783, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( DownloadExtensionTest , DownloadExtensionTest_OnDeterminingFilename_ParentDirInvalid ) {\n ASSERT_TRUE ( StartEmbeddedTestServer ( ) ) ;\n GoOnTheRecord ( ) ;\n LoadExtension ( \"downloads_split\" ) ;\n AddFilenameDeterminer ( ) ;\n std : : string download_url = embedded_test_server ( ) -> GetURL ( \"/slow?0\" ) . spec ( ) ;\n std : : unique_ptr < base : : Value > result ( RunFunctionAndReturnResult ( new DownloadsDownloadFunction ( ) , base : : StringPrintf ( \"[{\n\\\"url\\\": \\\"%s\\\"}\n]\" , download_url . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( result . get ( ) ) ;\n int result_id = - 1 ;\n ASSERT_TRUE ( result -> GetAsInteger ( & result_id ) ) ;\n DownloadItem * item = GetCurrentManager ( ) -> GetDownload ( result_id ) ;\n ASSERT_TRUE ( item ) ;\n ScopedCancellingItem canceller ( item ) ;\n ASSERT_EQ ( download_url , item -> GetOriginalUrl ( ) . spec ( ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnCreated : : kEventName , base : : StringPrintf ( \"[{\n\\\"danger\\\": \\\"safe\\\",\" \" \\\"incognito\\\": false,\" \" \\\"id\\\": %d,\" \" \\\"mime\\\": \\\"text/plain\\\",\" \" \\\"paused\\\": false,\" \" \\\"url\\\": \\\"%s\\\"}\n]\" , result_id , download_url . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnDeterminingFilename : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"filename\\\":\\\"slow.txt\\\"}\n]\" , result_id ) ) ) ;\n ASSERT_TRUE ( item -> GetTargetFilePath ( ) . empty ( ) ) ;\n ASSERT_EQ ( DownloadItem : : IN_PROGRESS , item -> GetState ( ) ) ;\n std : : string error ;\n ASSERT_FALSE ( ExtensionDownloadsEventRouter : : DetermineFilename ( browser ( ) -> profile ( ) , false , GetExtensionId ( ) , result_id , base : : FilePath ( FILE_PATH_LITERAL ( \"..\" ) ) , downloads : : FILENAME_CONFLICT_ACTION_UNIQUIFY , & error ) ) ;\n EXPECT_STREQ ( errors : : kInvalidFilename , error . c_str ( ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnChanged : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"filename\\\": {\n\" \" \\\"previous\\\": \\\"\\\",\" \" \\\"current\\\": \\\"%s\\\"}\n}\n]\" , result_id , GetFilename ( \"slow.txt\" ) . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnChanged : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"state\\\": {\n\" \" \\\"previous\\\": \\\"in_progress\\\",\" \" \\\"current\\\": \\\"complete\\\"}\n}\n]\" , result_id ) ) ) ;\n }"}
{"idx": 10784, "target": 1, "func": "void spl_filesystem_info_set_filename ( spl_filesystem_object * intern , char * path , int len , int use_copy TSRMLS_DC ) {\n char * p1 , * p2 ;\n if ( intern -> file_name ) {\n efree ( intern -> file_name ) ;\n }\n intern -> file_name = use_copy ? estrndup ( path , len ) : path ;\n intern -> file_name_len = len ;\n while ( IS_SLASH_AT ( intern -> file_name , intern -> file_name_len - 1 ) && intern -> file_name_len > 1 ) {\n intern -> file_name [ intern -> file_name_len - 1 ] = 0 ;\n intern -> file_name_len -- ;\n }\n p1 = strrchr ( intern -> file_name , '/' ) ;\n # if defined ( PHP_WIN32 ) || defined ( NETWARE ) p2 = strrchr ( intern -> file_name , '\\\\' ) ;\n # else p2 = 0 ;\n # endif if ( p1 || p2 ) {\n intern -> _path_len = ( p1 > p2 ? p1 : p2 ) - intern -> file_name ;\n }\n else {\n intern -> _path_len = 0 ;\n }\n if ( intern -> _path ) {\n efree ( intern -> _path ) ;\n }\n intern -> _path = estrndup ( path , intern -> _path_len ) ;\n }"}
{"idx": 10785, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize ) ;\n DECL_PIOCTL ( PGetCacheSize ) ;\n DECL_PIOCTL ( PRemoveCallBack ) ;\n DECL_PIOCTL ( PNewCell ) ;\n DECL_PIOCTL ( PNewAlias ) ;\n DECL_PIOCTL ( PListCells )"}
{"idx": 10786, "target": 0, "func": "static void decode_bgr_bitstream ( HYuvContext * s , int count ) {\n if ( s -> decorrelate ) {\n if ( s -> bitstream_bpp == 24 ) decode_bgr_1 ( s , count , 1 , 0 ) ;\n else decode_bgr_1 ( s , count , 1 , 1 ) ;\n }\n else {\n if ( s -> bitstream_bpp == 24 ) decode_bgr_1 ( s , count , 0 , 0 ) ;\n else decode_bgr_1 ( s , count , 0 , 1 ) ;\n }\n }"}
{"idx": 10787, "target": 0, "func": "unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 ) VAR ( 8 , 4 ) SUBPIX_VAR ( 8 , 4 ) SUBPIX_AVG_VAR ( 8 , 4 ) VAR ( 8 , 8 ) SUBPIX_VAR ( 8 , 8 ) SUBPIX_AVG_VAR ( 8 , 8 ) VAR ( 8 , 16 ) SUBPIX_VAR ( 8 , 16 ) SUBPIX_AVG_VAR ( 8 , 16 ) VAR ( 16 , 8 ) SUBPIX_VAR ( 16 , 8 ) SUBPIX_AVG_VAR ( 16 , 8 ) VAR ( 16 , 16 ) SUBPIX_VAR ( 16 , 16 ) SUBPIX_AVG_VAR ( 16 , 16 ) VAR ( 16 , 32 ) SUBPIX_VAR ( 16 , 32 ) SUBPIX_AVG_VAR ( 16 , 32 )"}
{"idx": 10788, "target": 0, "func": "static int tunnel ( int tun_fd , int dns_fd , int bind_fd , int max_idle_time ) {\n struct timeval tv ;\n fd_set fds ;\n int i ;\n int userid ;\n time_t last_action = time ( NULL ) ;\n while ( running ) {\n int maxfd ;\n tv . tv_sec = 10 ;\n tv . tv_usec = 0 ;\n for ( userid = 0 ;\n userid < created_users ;\n userid ++ ) {\n if ( users [ userid ] . active && ! users [ userid ] . disabled && users [ userid ] . last_pkt + 60 > time ( NULL ) ) {\n users [ userid ] . q_sendrealsoon_new = 0 ;\n if ( users [ userid ] . q_sendrealsoon . id != 0 ) {\n tv . tv_sec = 0 ;\n tv . tv_usec = 20000 ;\n }\n }\n }\n FD_ZERO ( & fds ) ;\n FD_SET ( dns_fd , & fds ) ;\n maxfd = dns_fd ;\n if ( bind_fd ) {\n FD_SET ( bind_fd , & fds ) ;\n maxfd = MAX ( bind_fd , maxfd ) ;\n }\n if ( ! all_users_waiting_to_send ( ) ) {\n FD_SET ( tun_fd , & fds ) ;\n maxfd = MAX ( tun_fd , maxfd ) ;\n }\n i = select ( maxfd + 1 , & fds , NULL , NULL , & tv ) ;\n if ( i < 0 ) {\n if ( running ) warn ( \"select\" ) ;\n return 1 ;\n }\n if ( i == 0 ) {\n if ( max_idle_time ) {\n if ( last_action + max_idle_time < time ( NULL ) ) {\n for ( userid = 0 ;\n userid < created_users ;\n userid ++ ) {\n last_action = ( users [ userid ] . last_pkt > last_action ) ? users [ userid ] . last_pkt : last_action ;\n }\n if ( last_action + max_idle_time < time ( NULL ) ) {\n fprintf ( stderr , \"Idling since too long, shutting down...\\n\" ) ;\n running = 0 ;\n }\n }\n }\n }\n else {\n if ( FD_ISSET ( tun_fd , & fds ) ) {\n tunnel_tun ( tun_fd , dns_fd ) ;\n }\n if ( FD_ISSET ( dns_fd , & fds ) ) {\n tunnel_dns ( tun_fd , dns_fd , bind_fd ) ;\n }\n if ( FD_ISSET ( bind_fd , & fds ) ) {\n tunnel_bind ( bind_fd , dns_fd ) ;\n }\n }\n for ( userid = 0 ;\n userid < created_users ;\n userid ++ ) if ( users [ userid ] . active && ! users [ userid ] . disabled && users [ userid ] . last_pkt + 60 > time ( NULL ) && users [ userid ] . q_sendrealsoon . id != 0 && users [ userid ] . conn == CONN_DNS_NULL && ! users [ userid ] . q_sendrealsoon_new ) send_chunk_or_dataless ( dns_fd , userid , & users [ userid ] . q_sendrealsoon ) ;\n }\n return 0 ;\n }"}
{"idx": 10789, "target": 0, "func": "void vp9_encode_frame ( VP9_COMP * cpi ) {\n VP9_COMMON * const cm = & cpi -> common ;\n RD_OPT * const rd_opt = & cpi -> rd ;\n if ( ! frame_is_intra_only ( cm ) ) {\n if ( ( cm -> ref_frame_sign_bias [ ALTREF_FRAME ] == cm -> ref_frame_sign_bias [ GOLDEN_FRAME ] ) || ( cm -> ref_frame_sign_bias [ ALTREF_FRAME ] == cm -> ref_frame_sign_bias [ LAST_FRAME ] ) ) {\n cm -> allow_comp_inter_inter = 0 ;\n }\n else {\n cm -> allow_comp_inter_inter = 1 ;\n cm -> comp_fixed_ref = ALTREF_FRAME ;\n cm -> comp_var_ref [ 0 ] = LAST_FRAME ;\n cm -> comp_var_ref [ 1 ] = GOLDEN_FRAME ;\n }\n }\n if ( cpi -> sf . frame_parameter_update ) {\n int i ;\n const MV_REFERENCE_FRAME frame_type = get_frame_type ( cpi ) ;\n int64_t * const mode_thrs = rd_opt -> prediction_type_threshes [ frame_type ] ;\n int64_t * const filter_thrs = rd_opt -> filter_threshes [ frame_type ] ;\n int * const tx_thrs = rd_opt -> tx_select_threshes [ frame_type ] ;\n const int is_alt_ref = frame_type == ALTREF_FRAME ;\n if ( is_alt_ref || ! cm -> allow_comp_inter_inter ) cm -> reference_mode = SINGLE_REFERENCE ;\n else if ( mode_thrs [ COMPOUND_REFERENCE ] > mode_thrs [ SINGLE_REFERENCE ] && mode_thrs [ COMPOUND_REFERENCE ] > mode_thrs [ REFERENCE_MODE_SELECT ] && check_dual_ref_flags ( cpi ) && cpi -> static_mb_pct == 100 ) cm -> reference_mode = COMPOUND_REFERENCE ;\n else if ( mode_thrs [ SINGLE_REFERENCE ] > mode_thrs [ REFERENCE_MODE_SELECT ] ) cm -> reference_mode = SINGLE_REFERENCE ;\n else cm -> reference_mode = REFERENCE_MODE_SELECT ;\n if ( cm -> interp_filter == SWITCHABLE ) cm -> interp_filter = get_interp_filter ( filter_thrs , is_alt_ref ) ;\n encode_frame_internal ( cpi ) ;\n for ( i = 0 ;\n i < REFERENCE_MODES ;\n ++ i ) mode_thrs [ i ] = ( mode_thrs [ i ] + rd_opt -> comp_pred_diff [ i ] / cm -> MBs ) / 2 ;\n for ( i = 0 ;\n i < SWITCHABLE_FILTER_CONTEXTS ;\n ++ i ) filter_thrs [ i ] = ( filter_thrs [ i ] + rd_opt -> filter_diff [ i ] / cm -> MBs ) / 2 ;\n for ( i = 0 ;\n i < TX_MODES ;\n ++ i ) {\n int64_t pd = rd_opt -> tx_select_diff [ i ] ;\n if ( i == TX_MODE_SELECT ) pd -= RDCOST ( cpi -> mb . rdmult , cpi -> mb . rddiv , 2048 * ( TX_SIZES - 1 ) , 0 ) ;\n tx_thrs [ i ] = ( tx_thrs [ i ] + ( int ) ( pd / cm -> MBs ) ) / 2 ;\n }\n if ( cm -> reference_mode == REFERENCE_MODE_SELECT ) {\n int single_count_zero = 0 ;\n int comp_count_zero = 0 ;\n for ( i = 0 ;\n i < COMP_INTER_CONTEXTS ;\n i ++ ) {\n single_count_zero += cm -> counts . comp_inter [ i ] [ 0 ] ;\n comp_count_zero += cm -> counts . comp_inter [ i ] [ 1 ] ;\n }\n if ( comp_count_zero == 0 ) {\n cm -> reference_mode = SINGLE_REFERENCE ;\n vp9_zero ( cm -> counts . comp_inter ) ;\n }\n else if ( single_count_zero == 0 ) {\n cm -> reference_mode = COMPOUND_REFERENCE ;\n vp9_zero ( cm -> counts . comp_inter ) ;\n }\n }\n if ( cm -> tx_mode == TX_MODE_SELECT ) {\n int count4x4 = 0 ;\n int count8x8_lp = 0 , count8x8_8x8p = 0 ;\n int count16x16_16x16p = 0 , count16x16_lp = 0 ;\n int count32x32 = 0 ;\n for ( i = 0 ;\n i < TX_SIZE_CONTEXTS ;\n ++ i ) {\n count4x4 += cm -> counts . tx . p32x32 [ i ] [ TX_4X4 ] ;\n count4x4 += cm -> counts . tx . p16x16 [ i ] [ TX_4X4 ] ;\n count4x4 += cm -> counts . tx . p8x8 [ i ] [ TX_4X4 ] ;\n count8x8_lp += cm -> counts . tx . p32x32 [ i ] [ TX_8X8 ] ;\n count8x8_lp += cm -> counts . tx . p16x16 [ i ] [ TX_8X8 ] ;\n count8x8_8x8p += cm -> counts . tx . p8x8 [ i ] [ TX_8X8 ] ;\n count16x16_16x16p += cm -> counts . tx . p16x16 [ i ] [ TX_16X16 ] ;\n count16x16_lp += cm -> counts . tx . p32x32 [ i ] [ TX_16X16 ] ;\n count32x32 += cm -> counts . tx . p32x32 [ i ] [ TX_32X32 ] ;\n }\n if ( count4x4 == 0 && count16x16_lp == 0 && count16x16_16x16p == 0 && count32x32 == 0 ) {\n cm -> tx_mode = ALLOW_8X8 ;\n reset_skip_tx_size ( cm , TX_8X8 ) ;\n }\n else if ( count8x8_8x8p == 0 && count16x16_16x16p == 0 && count8x8_lp == 0 && count16x16_lp == 0 && count32x32 == 0 ) {\n cm -> tx_mode = ONLY_4X4 ;\n reset_skip_tx_size ( cm , TX_4X4 ) ;\n }\n else if ( count8x8_lp == 0 && count16x16_lp == 0 && count4x4 == 0 ) {\n cm -> tx_mode = ALLOW_32X32 ;\n }\n else if ( count32x32 == 0 && count8x8_lp == 0 && count4x4 == 0 ) {\n cm -> tx_mode = ALLOW_16X16 ;\n reset_skip_tx_size ( cm , TX_16X16 ) ;\n }\n }\n }\n else {\n cm -> reference_mode = SINGLE_REFERENCE ;\n encode_frame_internal ( cpi ) ;\n }\n }"}
{"idx": 10790, "target": 0, "func": "static inline void rv34_mc ( RV34DecContext * r , const int block_type , const int xoff , const int yoff , int mv_off , const int width , const int height , int dir , const int thirdpel , int weighted , qpel_mc_func ( * qpel_mc ) [ 16 ] , h264_chroma_mc_func ( * chroma_mc ) ) {\n MpegEncContext * s = & r -> s ;\n uint8_t * Y , * U , * V , * srcY , * srcU , * srcV ;\n int dxy , mx , my , umx , umy , lx , ly , uvmx , uvmy , src_x , src_y , uvsrc_x , uvsrc_y ;\n int mv_pos = s -> mb_x * 2 + s -> mb_y * 2 * s -> b8_stride + mv_off ;\n int is16x16 = 1 ;\n if ( thirdpel ) {\n int chroma_mx , chroma_my ;\n mx = ( s -> current_picture_ptr -> motion_val [ dir ] [ mv_pos ] [ 0 ] + ( 3 << 24 ) ) / 3 - ( 1 << 24 ) ;\n my = ( s -> current_picture_ptr -> motion_val [ dir ] [ mv_pos ] [ 1 ] + ( 3 << 24 ) ) / 3 - ( 1 << 24 ) ;\n lx = ( s -> current_picture_ptr -> motion_val [ dir ] [ mv_pos ] [ 0 ] + ( 3 << 24 ) ) % 3 ;\n ly = ( s -> current_picture_ptr -> motion_val [ dir ] [ mv_pos ] [ 1 ] + ( 3 << 24 ) ) % 3 ;\n chroma_mx = s -> current_picture_ptr -> motion_val [ dir ] [ mv_pos ] [ 0 ] / 2 ;\n chroma_my = s -> current_picture_ptr -> motion_val [ dir ] [ mv_pos ] [ 1 ] / 2 ;\n umx = ( chroma_mx + ( 3 << 24 ) ) / 3 - ( 1 << 24 ) ;\n umy = ( chroma_my + ( 3 << 24 ) ) / 3 - ( 1 << 24 ) ;\n uvmx = chroma_coeffs [ ( chroma_mx + ( 3 << 24 ) ) % 3 ] ;\n uvmy = chroma_coeffs [ ( chroma_my + ( 3 << 24 ) ) % 3 ] ;\n }\n else {\n int cx , cy ;\n mx = s -> current_picture_ptr -> motion_val [ dir ] [ mv_pos ] [ 0 ] >> 2 ;\n my = s -> current_picture_ptr -> motion_val [ dir ] [ mv_pos ] [ 1 ] >> 2 ;\n lx = s -> current_picture_ptr -> motion_val [ dir ] [ mv_pos ] [ 0 ] & 3 ;\n ly = s -> current_picture_ptr -> motion_val [ dir ] [ mv_pos ] [ 1 ] & 3 ;\n cx = s -> current_picture_ptr -> motion_val [ dir ] [ mv_pos ] [ 0 ] / 2 ;\n cy = s -> current_picture_ptr -> motion_val [ dir ] [ mv_pos ] [ 1 ] / 2 ;\n umx = cx >> 2 ;\n umy = cy >> 2 ;\n uvmx = ( cx & 3 ) << 1 ;\n uvmy = ( cy & 3 ) << 1 ;\n if ( uvmx == 6 && uvmy == 6 ) uvmx = uvmy = 4 ;\n }\n if ( HAVE_THREADS && ( s -> avctx -> active_thread_type & FF_THREAD_FRAME ) ) {\n int mb_row = s -> mb_y + ( ( yoff + my + 5 + 8 * height ) >> 4 ) ;\n ThreadFrame * f = dir ? & s -> next_picture_ptr -> tf : & s -> last_picture_ptr -> tf ;\n ff_thread_await_progress ( f , mb_row , 0 ) ;\n }\n dxy = ly * 4 + lx ;\n srcY = dir ? s -> next_picture_ptr -> f . data [ 0 ] : s -> last_picture_ptr -> f . data [ 0 ] ;\n srcU = dir ? s -> next_picture_ptr -> f . data [ 1 ] : s -> last_picture_ptr -> f . data [ 1 ] ;\n srcV = dir ? s -> next_picture_ptr -> f . data [ 2 ] : s -> last_picture_ptr -> f . data [ 2 ] ;\n src_x = s -> mb_x * 16 + xoff + mx ;\n src_y = s -> mb_y * 16 + yoff + my ;\n uvsrc_x = s -> mb_x * 8 + ( xoff >> 1 ) + umx ;\n uvsrc_y = s -> mb_y * 8 + ( yoff >> 1 ) + umy ;\n srcY += src_y * s -> linesize + src_x ;\n srcU += uvsrc_y * s -> uvlinesize + uvsrc_x ;\n srcV += uvsrc_y * s -> uvlinesize + uvsrc_x ;\n if ( s -> h_edge_pos - ( width << 3 ) < 6 || s -> v_edge_pos - ( height << 3 ) < 6 || ( unsigned ) ( src_x - ! ! lx * 2 ) > s -> h_edge_pos - ! ! lx * 2 - ( width << 3 ) - 4 || ( unsigned ) ( src_y - ! ! ly * 2 ) > s -> v_edge_pos - ! ! ly * 2 - ( height << 3 ) - 4 ) {\n uint8_t * uvbuf = s -> edge_emu_buffer + 22 * s -> linesize ;\n srcY -= 2 + 2 * s -> linesize ;\n s -> vdsp . emulated_edge_mc ( s -> edge_emu_buffer , srcY , s -> linesize , ( width << 3 ) + 6 , ( height << 3 ) + 6 , src_x - 2 , src_y - 2 , s -> h_edge_pos , s -> v_edge_pos ) ;\n srcY = s -> edge_emu_buffer + 2 + 2 * s -> linesize ;\n s -> vdsp . emulated_edge_mc ( uvbuf , srcU , s -> uvlinesize , ( width << 2 ) + 1 , ( height << 2 ) + 1 , uvsrc_x , uvsrc_y , s -> h_edge_pos >> 1 , s -> v_edge_pos >> 1 ) ;\n s -> vdsp . emulated_edge_mc ( uvbuf + 16 , srcV , s -> uvlinesize , ( width << 2 ) + 1 , ( height << 2 ) + 1 , uvsrc_x , uvsrc_y , s -> h_edge_pos >> 1 , s -> v_edge_pos >> 1 ) ;\n srcU = uvbuf ;\n srcV = uvbuf + 16 ;\n }\n if ( ! weighted ) {\n Y = s -> dest [ 0 ] + xoff + yoff * s -> linesize ;\n U = s -> dest [ 1 ] + ( xoff >> 1 ) + ( yoff >> 1 ) * s -> uvlinesize ;\n V = s -> dest [ 2 ] + ( xoff >> 1 ) + ( yoff >> 1 ) * s -> uvlinesize ;\n }\n else {\n Y = r -> tmp_b_block_y [ dir ] + xoff + yoff * s -> linesize ;\n U = r -> tmp_b_block_uv [ dir * 2 ] + ( xoff >> 1 ) + ( yoff >> 1 ) * s -> uvlinesize ;\n V = r -> tmp_b_block_uv [ dir * 2 + 1 ] + ( xoff >> 1 ) + ( yoff >> 1 ) * s -> uvlinesize ;\n }\n if ( block_type == RV34_MB_P_16x8 ) {\n qpel_mc [ 1 ] [ dxy ] ( Y , srcY , s -> linesize ) ;\n Y += 8 ;\n srcY += 8 ;\n }\n else if ( block_type == RV34_MB_P_8x16 ) {\n qpel_mc [ 1 ] [ dxy ] ( Y , srcY , s -> linesize ) ;\n Y += 8 * s -> linesize ;\n srcY += 8 * s -> linesize ;\n }\n is16x16 = ( block_type != RV34_MB_P_8x8 ) && ( block_type != RV34_MB_P_16x8 ) && ( block_type != RV34_MB_P_8x16 ) ;\n qpel_mc [ ! is16x16 ] [ dxy ] ( Y , srcY , s -> linesize ) ;\n chroma_mc [ 2 - width ] ( U , srcU , s -> uvlinesize , height * 4 , uvmx , uvmy ) ;\n chroma_mc [ 2 - width ] ( V , srcV , s -> uvlinesize , height * 4 , uvmx , uvmy ) ;\n }"}
{"idx": 10791, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( MessageCenterNotificationsTest , UpdateNonProgressToProgressNotificationWhenCenterVisible ) {\n # if defined ( OS_WIN ) && defined ( USE_ASH ) if ( base : : CommandLine : : ForCurrentProcess ( ) -> HasSwitch ( switches : : kAshBrowserTests ) ) return ;\n # endif TestAddObserver observer ( message_center ( ) ) ;\n TestDelegate * delegate ;\n Notification notification = CreateTestNotification ( \"n\" , & delegate ) ;\n manager ( ) -> Add ( notification , profile ( ) ) ;\n const std : : string notification_id = manager ( ) -> GetMessageCenterNotificationIdForTest ( \"n\" , profile ( ) ) ;\n message_center ( ) -> ClickOnNotification ( notification_id ) ;\n message_center ( ) -> SetVisibility ( message_center : : VISIBILITY_MESSAGE_CENTER ) ;\n observer . reset_logs ( ) ;\n notification . set_type ( message_center : : NOTIFICATION_TYPE_PROGRESS ) ;\n manager ( ) -> Update ( notification , profile ( ) ) ;\n EXPECT_EQ ( \"\" , observer . log ( notification_id ) ) ;\n message_center ( ) -> SetVisibility ( message_center : : VISIBILITY_TRANSIENT ) ;\n EXPECT_EQ ( base : : StringPrintf ( \"update-%s\" , notification_id . c_str ( ) ) , observer . log ( notification_id ) ) ;\n delegate -> Release ( ) ;\n }"}
{"idx": 10792, "target": 0, "func": "static inline bool ipv6_addr_orchid ( const struct in6_addr * a ) {\n return ( a -> s6_addr32 [ 0 ] & htonl ( 0xfffffff0 ) ) == htonl ( 0x20010010 ) ;\n }"}
{"idx": 10793, "target": 0, "func": "static void mc_part ( H264Context * h , int n , int square , int height , int delta , uint8_t * dest_y , uint8_t * dest_cb , uint8_t * dest_cr , int x_offset , int y_offset , qpel_mc_func * qpix_put , h264_chroma_mc_func chroma_put , qpel_mc_func * qpix_avg , h264_chroma_mc_func chroma_avg , h264_weight_func * weight_op , h264_biweight_func * weight_avg , int list0 , int list1 ) {\n if ( ( h -> use_weight == 2 && list0 && list1 && ( h -> implicit_weight [ h -> ref_cache [ 0 ] [ scan8 [ n ] ] ] [ h -> ref_cache [ 1 ] [ scan8 [ n ] ] ] [ h -> mb_y & 1 ] != 32 ) ) || h -> use_weight == 1 ) mc_part_weighted ( h , n , square , height , delta , dest_y , dest_cb , dest_cr , x_offset , y_offset , qpix_put , chroma_put , weight_op [ 0 ] , weight_op [ 1 ] , weight_avg [ 0 ] , weight_avg [ 1 ] , list0 , list1 , PIXEL_SHIFT , CHROMA_IDC ) ;\n else mc_part_std ( h , n , square , height , delta , dest_y , dest_cb , dest_cr , x_offset , y_offset , qpix_put , chroma_put , qpix_avg , chroma_avg , list0 , list1 , PIXEL_SHIFT , CHROMA_IDC ) ;\n }"}
{"idx": 10794, "target": 0, "func": "static USBPort * xhci_lookup_uport ( XHCIState * xhci , uint32_t * slot_ctx ) {\n USBPort * uport ;\n char path [ 32 ] ;\n int i , pos , port ;\n port = ( slot_ctx [ 1 ] >> 16 ) & 0xFF ;\n if ( port < 1 || port > xhci -> numports ) {\n return NULL ;\n }\n port = xhci -> ports [ port - 1 ] . uport -> index + 1 ;\n pos = snprintf ( path , sizeof ( path ) , \"%d\" , port ) ;\n for ( i = 0 ;\n i < 5 ;\n i ++ ) {\n port = ( slot_ctx [ 0 ] >> 4 * i ) & 0x0f ;\n if ( ! port ) {\n break ;\n }\n pos += snprintf ( path + pos , sizeof ( path ) - pos , \".%d\" , port ) ;\n }\n QTAILQ_FOREACH ( uport , & xhci -> bus . used , next ) {\n if ( strcmp ( uport -> path , path ) == 0 ) {\n return uport ;\n }\n }\n return NULL ;\n }"}
{"idx": 10795, "target": 0, "func": "static int decode_channel_transform ( WMAProDecodeCtx * s ) {\n int i ;\n s -> num_chgroups = 0 ;\n if ( s -> avctx -> channels > 1 ) {\n int remaining_channels = s -> channels_for_cur_subframe ;\n if ( get_bits1 ( & s -> gb ) ) {\n av_log_ask_for_sample ( s -> avctx , \"unsupported channel transform bit\\n\" ) ;\n return AVERROR_PATCHWELCOME ;\n }\n for ( s -> num_chgroups = 0 ;\n remaining_channels && s -> num_chgroups < s -> channels_for_cur_subframe ;\n s -> num_chgroups ++ ) {\n WMAProChannelGrp * chgroup = & s -> chgroup [ s -> num_chgroups ] ;\n float * * channel_data = chgroup -> channel_data ;\n chgroup -> num_channels = 0 ;\n chgroup -> transform = 0 ;\n if ( remaining_channels > 2 ) {\n for ( i = 0 ;\n i < s -> channels_for_cur_subframe ;\n i ++ ) {\n int channel_idx = s -> channel_indexes_for_cur_subframe [ i ] ;\n if ( ! s -> channel [ channel_idx ] . grouped && get_bits1 ( & s -> gb ) ) {\n ++ chgroup -> num_channels ;\n s -> channel [ channel_idx ] . grouped = 1 ;\n * channel_data ++ = s -> channel [ channel_idx ] . coeffs ;\n }\n }\n }\n else {\n chgroup -> num_channels = remaining_channels ;\n for ( i = 0 ;\n i < s -> channels_for_cur_subframe ;\n i ++ ) {\n int channel_idx = s -> channel_indexes_for_cur_subframe [ i ] ;\n if ( ! s -> channel [ channel_idx ] . grouped ) * channel_data ++ = s -> channel [ channel_idx ] . coeffs ;\n s -> channel [ channel_idx ] . grouped = 1 ;\n }\n }\n if ( chgroup -> num_channels == 2 ) {\n if ( get_bits1 ( & s -> gb ) ) {\n if ( get_bits1 ( & s -> gb ) ) {\n av_log_ask_for_sample ( s -> avctx , \"unsupported channel transform type\\n\" ) ;\n }\n }\n else {\n chgroup -> transform = 1 ;\n if ( s -> avctx -> channels == 2 ) {\n chgroup -> decorrelation_matrix [ 0 ] = 1.0 ;\n chgroup -> decorrelation_matrix [ 1 ] = - 1.0 ;\n chgroup -> decorrelation_matrix [ 2 ] = 1.0 ;\n chgroup -> decorrelation_matrix [ 3 ] = 1.0 ;\n }\n else {\n chgroup -> decorrelation_matrix [ 0 ] = 0.70703125 ;\n chgroup -> decorrelation_matrix [ 1 ] = - 0.70703125 ;\n chgroup -> decorrelation_matrix [ 2 ] = 0.70703125 ;\n chgroup -> decorrelation_matrix [ 3 ] = 0.70703125 ;\n }\n }\n }\n else if ( chgroup -> num_channels > 2 ) {\n if ( get_bits1 ( & s -> gb ) ) {\n chgroup -> transform = 1 ;\n if ( get_bits1 ( & s -> gb ) ) {\n decode_decorrelation_matrix ( s , chgroup ) ;\n }\n else {\n if ( chgroup -> num_channels > 6 ) {\n av_log_ask_for_sample ( s -> avctx , \"coupled channels > 6\\n\" ) ;\n }\n else {\n memcpy ( chgroup -> decorrelation_matrix , default_decorrelation [ chgroup -> num_channels ] , chgroup -> num_channels * chgroup -> num_channels * sizeof ( * chgroup -> decorrelation_matrix ) ) ;\n }\n }\n }\n }\n if ( chgroup -> transform ) {\n if ( ! get_bits1 ( & s -> gb ) ) {\n int i ;\n for ( i = 0 ;\n i < s -> num_bands ;\n i ++ ) {\n chgroup -> transform_band [ i ] = get_bits1 ( & s -> gb ) ;\n }\n }\n else {\n memset ( chgroup -> transform_band , 1 , s -> num_bands ) ;\n }\n }\n remaining_channels -= chgroup -> num_channels ;\n }\n }\n return 0 ;\n }"}
{"idx": 10796, "target": 0, "func": "jas_stream_t * jas_stream_tmpfile ( ) {\n jas_stream_t * stream ;\n jas_stream_fileobj_t * obj ;\n if ( ! ( stream = jas_stream_create ( ) ) ) {\n return 0 ;\n }\n stream -> openmode_ = JAS_STREAM_READ | JAS_STREAM_WRITE | JAS_STREAM_BINARY ;\n if ( ! ( obj = jas_malloc ( sizeof ( jas_stream_fileobj_t ) ) ) ) {\n jas_stream_destroy ( stream ) ;\n return 0 ;\n }\n obj -> fd = - 1 ;\n obj -> flags = 0 ;\n obj -> pathname [ 0 ] = '\\0' ;\n stream -> obj_ = obj ;\n tmpnam ( obj -> pathname ) ;\n if ( ( obj -> fd = open ( obj -> pathname , O_CREAT | O_EXCL | O_RDWR | O_TRUNC | O_BINARY , JAS_STREAM_PERMS ) ) < 0 ) {\n jas_stream_destroy ( stream ) ;\n return 0 ;\n }\n if ( unlink ( obj -> pathname ) ) {\n obj -> flags |= JAS_STREAM_FILEOBJ_DELONCLOSE ;\n }\n jas_stream_initbuf ( stream , JAS_STREAM_FULLBUF , 0 , 0 ) ;\n stream -> ops_ = & jas_stream_fileops ;\n return stream ;\n }"}
{"idx": 10797, "target": 0, "func": "static int svq1_encode_plane ( SVQ1Context * s , int plane , unsigned char * src_plane , unsigned char * ref_plane , unsigned char * decoded_plane , int width , int height , int src_stride , int stride ) {\n int x , y ;\n int i ;\n int block_width , block_height ;\n int level ;\n int threshold [ 6 ] ;\n uint8_t * src = s -> scratchbuf + stride * 16 ;\n const int lambda = ( s -> picture . quality * s -> picture . quality ) >> ( 2 * FF_LAMBDA_SHIFT ) ;\n threshold [ 5 ] = QUALITY_THRESHOLD ;\n for ( level = 4 ;\n level >= 0 ;\n level -- ) threshold [ level ] = threshold [ level + 1 ] * THRESHOLD_MULTIPLIER ;\n block_width = ( width + 15 ) / 16 ;\n block_height = ( height + 15 ) / 16 ;\n if ( s -> picture . pict_type == AV_PICTURE_TYPE_P ) {\n s -> m . avctx = s -> avctx ;\n s -> m . current_picture_ptr = & s -> m . current_picture ;\n s -> m . last_picture_ptr = & s -> m . last_picture ;\n s -> m . last_picture . f . data [ 0 ] = ref_plane ;\n s -> m . linesize = s -> m . last_picture . f . linesize [ 0 ] = s -> m . new_picture . f . linesize [ 0 ] = s -> m . current_picture . f . linesize [ 0 ] = stride ;\n s -> m . width = width ;\n s -> m . height = height ;\n s -> m . mb_width = block_width ;\n s -> m . mb_height = block_height ;\n s -> m . mb_stride = s -> m . mb_width + 1 ;\n s -> m . b8_stride = 2 * s -> m . mb_width + 1 ;\n s -> m . f_code = 1 ;\n s -> m . pict_type = s -> picture . pict_type ;\n s -> m . me_method = s -> avctx -> me_method ;\n s -> m . me . scene_change_score = 0 ;\n s -> m . flags = s -> avctx -> flags ;\n s -> m . lambda = s -> picture . quality ;\n s -> m . qscale = s -> m . lambda * 139 + FF_LAMBDA_SCALE * 64 >> FF_LAMBDA_SHIFT + 7 ;\n s -> m . lambda2 = s -> m . lambda * s -> m . lambda + FF_LAMBDA_SCALE / 2 >> FF_LAMBDA_SHIFT ;\n if ( ! s -> motion_val8 [ plane ] ) {\n s -> motion_val8 [ plane ] = av_mallocz ( ( s -> m . b8_stride * block_height * 2 + 2 ) * 2 * sizeof ( int16_t ) ) ;\n s -> motion_val16 [ plane ] = av_mallocz ( ( s -> m . mb_stride * ( block_height + 2 ) + 1 ) * 2 * sizeof ( int16_t ) ) ;\n }\n s -> m . mb_type = s -> mb_type ;\n s -> m . current_picture . mb_mean = ( uint8_t * ) s -> dummy ;\n s -> m . current_picture . mb_var = ( uint16_t * ) s -> dummy ;\n s -> m . current_picture . mc_mb_var = ( uint16_t * ) s -> dummy ;\n s -> m . current_picture . mb_type = s -> dummy ;\n s -> m . current_picture . motion_val [ 0 ] = s -> motion_val8 [ plane ] + 2 ;\n s -> m . p_mv_table = s -> motion_val16 [ plane ] + s -> m . mb_stride + 1 ;\n s -> m . dsp = s -> dsp ;\n ff_init_me ( & s -> m ) ;\n s -> m . me . dia_size = s -> avctx -> dia_size ;\n s -> m . first_slice_line = 1 ;\n for ( y = 0 ;\n y < block_height ;\n y ++ ) {\n s -> m . new_picture . f . data [ 0 ] = src - y * 16 * stride ;\n s -> m . mb_y = y ;\n for ( i = 0 ;\n i < 16 && i + 16 * y < height ;\n i ++ ) {\n memcpy ( & src [ i * stride ] , & src_plane [ ( i + 16 * y ) * src_stride ] , width ) ;\n for ( x = width ;\n x < 16 * block_width ;\n x ++ ) src [ i * stride + x ] = src [ i * stride + x - 1 ] ;\n }\n for ( ;\n i < 16 && i + 16 * y < 16 * block_height ;\n i ++ ) memcpy ( & src [ i * stride ] , & src [ ( i - 1 ) * stride ] , 16 * block_width ) ;\n for ( x = 0 ;\n x < block_width ;\n x ++ ) {\n s -> m . mb_x = x ;\n ff_init_block_index ( & s -> m ) ;\n ff_update_block_index ( & s -> m ) ;\n ff_estimate_p_frame_motion ( & s -> m , x , y ) ;\n }\n s -> m . first_slice_line = 0 ;\n }\n ff_fix_long_p_mvs ( & s -> m ) ;\n ff_fix_long_mvs ( & s -> m , NULL , 0 , s -> m . p_mv_table , s -> m . f_code , CANDIDATE_MB_TYPE_INTER , 0 ) ;\n }\n s -> m . first_slice_line = 1 ;\n for ( y = 0 ;\n y < block_height ;\n y ++ ) {\n for ( i = 0 ;\n i < 16 && i + 16 * y < height ;\n i ++ ) {\n memcpy ( & src [ i * stride ] , & src_plane [ ( i + 16 * y ) * src_stride ] , width ) ;\n for ( x = width ;\n x < 16 * block_width ;\n x ++ ) src [ i * stride + x ] = src [ i * stride + x - 1 ] ;\n }\n for ( ;\n i < 16 && i + 16 * y < 16 * block_height ;\n i ++ ) memcpy ( & src [ i * stride ] , & src [ ( i - 1 ) * stride ] , 16 * block_width ) ;\n s -> m . mb_y = y ;\n for ( x = 0 ;\n x < block_width ;\n x ++ ) {\n uint8_t reorder_buffer [ 3 ] [ 6 ] [ 7 * 32 ] ;\n int count [ 3 ] [ 6 ] ;\n int offset = y * 16 * stride + x * 16 ;\n uint8_t * decoded = decoded_plane + offset ;\n uint8_t * ref = ref_plane + offset ;\n int score [ 4 ] = {\n 0 , 0 , 0 , 0 }\n , best ;\n uint8_t * temp = s -> scratchbuf ;\n if ( s -> pb . buf_end - s -> pb . buf - ( put_bits_count ( & s -> pb ) >> 3 ) < 3000 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"encoded frame too large\\n\" ) ;\n return - 1 ;\n }\n s -> m . mb_x = x ;\n ff_init_block_index ( & s -> m ) ;\n ff_update_block_index ( & s -> m ) ;\n if ( s -> picture . pict_type == AV_PICTURE_TYPE_I || ( s -> m . mb_type [ x + y * s -> m . mb_stride ] & CANDIDATE_MB_TYPE_INTRA ) ) {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) init_put_bits ( & s -> reorder_pb [ i ] , reorder_buffer [ 0 ] [ i ] , 7 * 32 ) ;\n if ( s -> picture . pict_type == AV_PICTURE_TYPE_P ) {\n const uint8_t * vlc = ff_svq1_block_type_vlc [ SVQ1_BLOCK_INTRA ] ;\n put_bits ( & s -> reorder_pb [ 5 ] , vlc [ 1 ] , vlc [ 0 ] ) ;\n score [ 0 ] = vlc [ 1 ] * lambda ;\n }\n score [ 0 ] += encode_block ( s , src + 16 * x , NULL , temp , stride , 5 , 64 , lambda , 1 ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n count [ 0 ] [ i ] = put_bits_count ( & s -> reorder_pb [ i ] ) ;\n flush_put_bits ( & s -> reorder_pb [ i ] ) ;\n }\n }\n else score [ 0 ] = INT_MAX ;\n best = 0 ;\n if ( s -> picture . pict_type == AV_PICTURE_TYPE_P ) {\n const uint8_t * vlc = ff_svq1_block_type_vlc [ SVQ1_BLOCK_INTER ] ;\n int mx , my , pred_x , pred_y , dxy ;\n int16_t * motion_ptr ;\n motion_ptr = ff_h263_pred_motion ( & s -> m , 0 , 0 , & pred_x , & pred_y ) ;\n if ( s -> m . mb_type [ x + y * s -> m . mb_stride ] & CANDIDATE_MB_TYPE_INTER ) {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) init_put_bits ( & s -> reorder_pb [ i ] , reorder_buffer [ 1 ] [ i ] , 7 * 32 ) ;\n put_bits ( & s -> reorder_pb [ 5 ] , vlc [ 1 ] , vlc [ 0 ] ) ;\n s -> m . pb = s -> reorder_pb [ 5 ] ;\n mx = motion_ptr [ 0 ] ;\n my = motion_ptr [ 1 ] ;\n assert ( mx >= - 32 && mx <= 31 ) ;\n assert ( my >= - 32 && my <= 31 ) ;\n assert ( pred_x >= - 32 && pred_x <= 31 ) ;\n assert ( pred_y >= - 32 && pred_y <= 31 ) ;\n ff_h263_encode_motion ( & s -> m , mx - pred_x , 1 ) ;\n ff_h263_encode_motion ( & s -> m , my - pred_y , 1 ) ;\n s -> reorder_pb [ 5 ] = s -> m . pb ;\n score [ 1 ] += lambda * put_bits_count ( & s -> reorder_pb [ 5 ] ) ;\n dxy = ( mx & 1 ) + 2 * ( my & 1 ) ;\n s -> dsp . put_pixels_tab [ 0 ] [ dxy ] ( temp + 16 , ref + ( mx >> 1 ) + stride * ( my >> 1 ) , stride , 16 ) ;\n score [ 1 ] += encode_block ( s , src + 16 * x , temp + 16 , decoded , stride , 5 , 64 , lambda , 0 ) ;\n best = score [ 1 ] <= score [ 0 ] ;\n vlc = ff_svq1_block_type_vlc [ SVQ1_BLOCK_SKIP ] ;\n score [ 2 ] = s -> dsp . sse [ 0 ] ( NULL , src + 16 * x , ref , stride , 16 ) ;\n score [ 2 ] += vlc [ 1 ] * lambda ;\n if ( score [ 2 ] < score [ best ] && mx == 0 && my == 0 ) {\n best = 2 ;\n s -> dsp . put_pixels_tab [ 0 ] [ 0 ] ( decoded , ref , stride , 16 ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) count [ 2 ] [ i ] = 0 ;\n put_bits ( & s -> pb , vlc [ 1 ] , vlc [ 0 ] ) ;\n }\n }\n if ( best == 1 ) {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n count [ 1 ] [ i ] = put_bits_count ( & s -> reorder_pb [ i ] ) ;\n flush_put_bits ( & s -> reorder_pb [ i ] ) ;\n }\n }\n else {\n motion_ptr [ 0 ] = motion_ptr [ 1 ] = motion_ptr [ 2 ] = motion_ptr [ 3 ] = motion_ptr [ 0 + 2 * s -> m . b8_stride ] = motion_ptr [ 1 + 2 * s -> m . b8_stride ] = motion_ptr [ 2 + 2 * s -> m . b8_stride ] = motion_ptr [ 3 + 2 * s -> m . b8_stride ] = 0 ;\n }\n }\n s -> rd_total += score [ best ] ;\n for ( i = 5 ;\n i >= 0 ;\n i -- ) avpriv_copy_bits ( & s -> pb , reorder_buffer [ best ] [ i ] , count [ best ] [ i ] ) ;\n if ( best == 0 ) s -> dsp . put_pixels_tab [ 0 ] [ 0 ] ( decoded , temp , stride , 16 ) ;\n }\n s -> m . first_slice_line = 0 ;\n }\n return 0 ;\n }"}
{"idx": 10798, "target": 0, "func": "static int ogg_read_header ( AVFormatContext * s ) {\n struct ogg * ogg = s -> priv_data ;\n int ret , i ;\n ogg -> curidx = - 1 ;\n do {\n ret = ogg_packet ( s , NULL , NULL , NULL , NULL ) ;\n if ( ret < 0 ) {\n ogg_read_close ( s ) ;\n return ret ;\n }\n }\n while ( ! ogg -> headers ) ;\n av_log ( s , AV_LOG_TRACE , \"found headers\\n\" ) ;\n for ( i = 0 ;\n i < ogg -> nstreams ;\n i ++ ) {\n struct ogg_stream * os = ogg -> streams + i ;\n if ( ogg -> streams [ i ] . header < 0 ) {\n av_log ( s , AV_LOG_ERROR , \"Header parsing failed for stream %d\\n\" , i ) ;\n ogg -> streams [ i ] . codec = NULL ;\n av_freep ( & ogg -> streams [ i ] . private ) ;\n }\n else if ( os -> codec && os -> nb_header < os -> codec -> nb_header ) {\n av_log ( s , AV_LOG_WARNING , \"Headers mismatch for stream %d: \" \"expected %d received %d.\\n\" , i , os -> codec -> nb_header , os -> nb_header ) ;\n if ( s -> error_recognition & AV_EF_EXPLODE ) return AVERROR_INVALIDDATA ;\n }\n if ( os -> start_granule != OGG_NOGRANULE_VALUE ) os -> lastpts = s -> streams [ i ] -> start_time = ogg_gptopts ( s , i , os -> start_granule , NULL ) ;\n }\n ret = ogg_get_length ( s ) ;\n if ( ret < 0 ) {\n ogg_read_close ( s ) ;\n return ret ;\n }\n return 0 ;\n }"}
{"idx": 10799, "target": 0, "func": "TEST_F ( ProcessUtilTest , MAYBE_GetTerminationStatusCrash ) {\n const std : : string signal_file = ProcessUtilTest : : GetSignalFilePath ( kSignalFileCrash ) ;\n remove ( signal_file . c_str ( ) ) ;\n base : : Process process = SpawnChild ( \"CrashingChildProcess\" ) ;\n ASSERT_TRUE ( process . IsValid ( ) ) ;\n int exit_code = 42 ;\n EXPECT_EQ ( base : : TERMINATION_STATUS_STILL_RUNNING , base : : GetTerminationStatus ( process . Handle ( ) , & exit_code ) ) ;\n EXPECT_EQ ( kExpectedStillRunningExitCode , exit_code ) ;\n SignalChildren ( signal_file . c_str ( ) ) ;\n exit_code = 42 ;\n base : : TerminationStatus status = WaitForChildTermination ( process . Handle ( ) , & exit_code ) ;\n EXPECT_EQ ( base : : TERMINATION_STATUS_PROCESS_CRASHED , status ) ;\n # if defined ( OS_WIN ) EXPECT_EQ ( 0xc0000005 , exit_code ) ;\n # elif defined ( OS_POSIX ) int signaled = WIFSIGNALED ( exit_code ) ;\n EXPECT_NE ( 0 , signaled ) ;\n int signal = WTERMSIG ( exit_code ) ;\n EXPECT_EQ ( SIGSEGV , signal ) ;\n # endif base : : debug : : EnableInProcessStackDumping ( ) ;\n remove ( signal_file . c_str ( ) ) ;\n }"}
{"idx": 10800, "target": 0, "func": "TEST_F ( ExtensionServiceSyncTest , DeferredSyncStartupOnInstall ) {\n InitializeEmptyExtensionService ( ) ;\n service ( ) -> Init ( ) ;\n ASSERT_TRUE ( service ( ) -> is_ready ( ) ) ;\n bool flare_was_called = false ;\n syncer : : ModelType triggered_type ( syncer : : UNSPECIFIED ) ;\n base : : WeakPtrFactory < ExtensionServiceSyncTest > factory ( this ) ;\n extension_sync_service ( ) -> SetSyncStartFlareForTesting ( base : : Bind ( & ExtensionServiceSyncTest : : MockSyncStartFlare , factory . GetWeakPtr ( ) , & flare_was_called , & triggered_type ) ) ;\n base : : FilePath path = data_dir ( ) . AppendASCII ( \"good.crx\" ) ;\n InstallCRX ( path , INSTALL_NEW ) ;\n EXPECT_TRUE ( flare_was_called ) ;\n EXPECT_EQ ( syncer : : EXTENSIONS , triggered_type ) ;\n flare_was_called = false ;\n triggered_type = syncer : : UNSPECIFIED ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , syncer : : SyncDataList ( ) , base : : MakeUnique < syncer : : FakeSyncChangeProcessor > ( ) , base : : MakeUnique < syncer : : SyncErrorFactoryMock > ( ) ) ;\n path = data_dir ( ) . AppendASCII ( \"page_action.crx\" ) ;\n InstallCRX ( path , INSTALL_NEW ) ;\n EXPECT_FALSE ( flare_was_called ) ;\n ASSERT_EQ ( syncer : : UNSPECIFIED , triggered_type ) ;\n }"}
{"idx": 10801, "target": 0, "func": "static inline void vga_draw_glyph_line ( uint8_t * d , uint32_t font_data , uint32_t xorcol , uint32_t bgcol ) {\n ( ( uint32_t * ) d ) [ 0 ] = ( - ( ( font_data >> 7 ) ) & xorcol ) ^ bgcol ;\n ( ( uint32_t * ) d ) [ 1 ] = ( - ( ( font_data >> 6 ) & 1 ) & xorcol ) ^ bgcol ;\n ( ( uint32_t * ) d ) [ 2 ] = ( - ( ( font_data >> 5 ) & 1 ) & xorcol ) ^ bgcol ;\n ( ( uint32_t * ) d ) [ 3 ] = ( - ( ( font_data >> 4 ) & 1 ) & xorcol ) ^ bgcol ;\n ( ( uint32_t * ) d ) [ 4 ] = ( - ( ( font_data >> 3 ) & 1 ) & xorcol ) ^ bgcol ;\n ( ( uint32_t * ) d ) [ 5 ] = ( - ( ( font_data >> 2 ) & 1 ) & xorcol ) ^ bgcol ;\n ( ( uint32_t * ) d ) [ 6 ] = ( - ( ( font_data >> 1 ) & 1 ) & xorcol ) ^ bgcol ;\n ( ( uint32_t * ) d ) [ 7 ] = ( - ( ( font_data >> 0 ) & 1 ) & xorcol ) ^ bgcol ;\n }"}
{"idx": 10802, "target": 1, "func": "static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 10803, "target": 0, "func": "void gx_device_init ( gx_device * dev , const gx_device * proto , gs_memory_t * mem , bool internal ) {\n memcpy ( dev , proto , proto -> params_size ) ;\n dev -> memory = mem ;\n dev -> retained = ! internal ;\n rc_init ( dev , mem , ( internal ? 0 : 1 ) ) ;\n rc_increment ( dev -> icc_struct ) ;\n }"}
{"idx": 10804, "target": 0, "func": "static inline bool e1000e_rx_csum_enabled ( E1000ECore * core ) {\n return ( core -> mac [ RXCSUM ] & E1000_RXCSUM_PCSD ) ? false : true ;\n }"}
{"idx": 10805, "target": 0, "func": "TSReturnCode TSUrlHttpQuerySet ( TSMBuffer bufp , TSMLoc obj , const char * value , int length ) {\n return URLPartSet ( bufp , obj , value , length , & URL : : query_set ) ;\n }"}
{"idx": 10806, "target": 0, "func": "hidden_proto ( _nss_dns_gethostbyname3_r ) enum nss_status _nss_dns_gethostbyname3_r ( const char * name , int af , struct hostent * result , char * buffer , size_t buflen , int * errnop , int * h_errnop , int32_t * ttlp , char * * canonp ) {\n union {\n querybuf * buf ;\n u_char * ptr ;\n }\n host_buffer ;\n querybuf * orig_host_buffer ;\n char tmp [ NS_MAXDNAME ] ;\n int size , type , n ;\n const char * cp ;\n int map = 0 ;\n int olderr = errno ;\n enum nss_status status ;\n if ( __res_maybe_init ( & _res , 0 ) == - 1 ) return NSS_STATUS_UNAVAIL ;\n switch ( af ) {\n case AF_INET : size = INADDRSZ ;\n type = T_A ;\n break ;\n case AF_INET6 : size = IN6ADDRSZ ;\n type = T_AAAA ;\n break ;\n default : * h_errnop = NO_DATA ;\n * errnop = EAFNOSUPPORT ;\n return NSS_STATUS_UNAVAIL ;\n }\n result -> h_addrtype = af ;\n result -> h_length = size ;\n if ( strchr ( name , '.' ) == NULL && ( cp = res_hostalias ( & _res , name , tmp , sizeof ( tmp ) ) ) != NULL ) name = cp ;\n host_buffer . buf = orig_host_buffer = ( querybuf * ) alloca ( 1024 ) ;\n n = __libc_res_nsearch ( & _res , name , C_IN , type , host_buffer . buf -> buf , 1024 , & host_buffer . ptr , NULL , NULL , NULL , NULL ) ;\n if ( n < 0 ) {\n switch ( errno ) {\n case ESRCH : status = NSS_STATUS_TRYAGAIN ;\n h_errno = TRY_AGAIN ;\n break ;\n case EMFILE : case ENFILE : h_errno = NETDB_INTERNAL ;\n case ECONNREFUSED : case ETIMEDOUT : status = NSS_STATUS_UNAVAIL ;\n break ;\n default : status = NSS_STATUS_NOTFOUND ;\n break ;\n }\n * h_errnop = h_errno ;\n if ( h_errno == TRY_AGAIN ) * errnop = EAGAIN ;\n else __set_errno ( olderr ) ;\n if ( af == AF_INET6 && ( _res . options & RES_USE_INET6 ) ) n = __libc_res_nsearch ( & _res , name , C_IN , T_A , host_buffer . buf -> buf , host_buffer . buf != orig_host_buffer ? MAXPACKET : 1024 , & host_buffer . ptr , NULL , NULL , NULL , NULL ) ;\n if ( n < 0 ) {\n if ( host_buffer . buf != orig_host_buffer ) free ( host_buffer . buf ) ;\n return status ;\n }\n map = 1 ;\n result -> h_addrtype = AF_INET ;\n result -> h_length = INADDRSZ ;\n }\n status = getanswer_r ( host_buffer . buf , n , name , type , result , buffer , buflen , errnop , h_errnop , map , ttlp , canonp ) ;\n if ( host_buffer . buf != orig_host_buffer ) free ( host_buffer . buf ) ;\n return status ;\n }"}
{"idx": 10807, "target": 0, "func": "static void macio_ide_initfn ( Object * obj ) {\n SysBusDevice * d = SYS_BUS_DEVICE ( obj ) ;\n MACIOIDEState * s = MACIO_IDE ( obj ) ;\n ide_bus_new ( & s -> bus , sizeof ( s -> bus ) , DEVICE ( obj ) , 0 , 2 ) ;\n memory_region_init_io ( & s -> mem , obj , & pmac_ide_ops , s , \"pmac-ide\" , 0x1000 ) ;\n sysbus_init_mmio ( d , & s -> mem ) ;\n sysbus_init_irq ( d , & s -> irq ) ;\n sysbus_init_irq ( d , & s -> dma_irq ) ;\n }"}
{"idx": 10808, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ExtensionPreferenceApiTest , OnChangeSplit ) {\n extensions : : ResultCatcher catcher ;\n catcher . RestrictToBrowserContext ( profile_ ) ;\n extensions : : ResultCatcher catcher_incognito ;\n catcher_incognito . RestrictToBrowserContext ( profile_ -> GetOffTheRecordProfile ( ) ) ;\n OpenURLOffTheRecord ( profile_ , GURL ( \"chrome:/ewtab/\" ) ) ;\n ExtensionTestMessageListener listener1 ( \"changeDefault regular ready\" , true ) ;\n ExtensionTestMessageListener listener_incognito1 ( \"changeDefault incognito ready\" , true ) ;\n ExtensionTestMessageListener listener2 ( \"changeIncognitoOnly regular ready\" , true ) ;\n ExtensionTestMessageListener listener_incognito2 ( \"changeIncognitoOnly incognito ready\" , true ) ;\n ExtensionTestMessageListener listener3 ( \"changeIncognitoOnly regular listening\" , true ) ;\n ExtensionTestMessageListener listener_incognito3 ( \"changeIncognitoOnly incognito pref set\" , false ) ;\n ExtensionTestMessageListener listener4 ( \"changeDefaultOnly regular ready\" , true ) ;\n ExtensionTestMessageListener listener_incognito4 ( \"changeDefaultOnly incognito ready\" , true ) ;\n ExtensionTestMessageListener listener5 ( \"changeDefaultOnly regular pref set\" , false ) ;\n ExtensionTestMessageListener listener_incognito5 ( \"changeDefaultOnly incognito listening\" , true ) ;\n ExtensionTestMessageListener listener6 ( \"changeIncognitoOnlyBack regular ready\" , true ) ;\n ExtensionTestMessageListener listener_incognito6 ( \"changeIncognitoOnlyBack incognito ready\" , true ) ;\n ExtensionTestMessageListener listener7 ( \"changeIncognitoOnlyBack regular listening\" , true ) ;\n ExtensionTestMessageListener listener_incognito7 ( \"changeIncognitoOnlyBack incognito pref set\" , false ) ;\n ExtensionTestMessageListener listener8 ( \"clearIncognito regular ready\" , true ) ;\n ExtensionTestMessageListener listener_incognito8 ( \"clearIncognito incognito ready\" , true ) ;\n ExtensionTestMessageListener listener9 ( \"clearIncognito regular listening\" , true ) ;\n ExtensionTestMessageListener listener_incognito9 ( \"clearIncognito incognito pref cleared\" , false ) ;\n ExtensionTestMessageListener listener10 ( \"clearDefault regular ready\" , true ) ;\n ExtensionTestMessageListener listener_incognito10 ( \"clearDefault incognito ready\" , true ) ;\n base : : FilePath extension_data_dir = test_data_dir_ . AppendASCII ( \"preference\" ) . AppendASCII ( \"onchange_split\" ) ;\n ASSERT_TRUE ( LoadExtensionIncognito ( extension_data_dir ) ) ;\n EXPECT_TRUE ( listener1 . WaitUntilSatisfied ( ) ) ;\n EXPECT_TRUE ( listener_incognito1 . WaitUntilSatisfied ( ) ) ;\n listener1 . Reply ( \"ok\" ) ;\n listener_incognito1 . Reply ( \"ok\" ) ;\n EXPECT_TRUE ( listener2 . WaitUntilSatisfied ( ) ) ;\n EXPECT_TRUE ( listener_incognito2 . WaitUntilSatisfied ( ) ) ;\n EXPECT_TRUE ( listener3 . WaitUntilSatisfied ( ) ) ;\n listener2 . Reply ( \"ok\" ) ;\n listener_incognito2 . Reply ( \"ok\" ) ;\n EXPECT_TRUE ( listener_incognito3 . WaitUntilSatisfied ( ) ) ;\n listener3 . Reply ( \"ok\" ) ;\n EXPECT_TRUE ( listener4 . WaitUntilSatisfied ( ) ) ;\n EXPECT_TRUE ( listener_incognito4 . WaitUntilSatisfied ( ) ) ;\n EXPECT_TRUE ( listener_incognito5 . WaitUntilSatisfied ( ) ) ;\n listener4 . Reply ( \"ok\" ) ;\n listener_incognito4 . Reply ( \"ok\" ) ;\n EXPECT_TRUE ( listener5 . WaitUntilSatisfied ( ) ) ;\n listener_incognito5 . Reply ( \"ok\" ) ;\n EXPECT_TRUE ( listener6 . WaitUntilSatisfied ( ) ) ;\n EXPECT_TRUE ( listener_incognito6 . WaitUntilSatisfied ( ) ) ;\n EXPECT_TRUE ( listener7 . WaitUntilSatisfied ( ) ) ;\n listener6 . Reply ( \"ok\" ) ;\n listener_incognito6 . Reply ( \"ok\" ) ;\n EXPECT_TRUE ( listener_incognito7 . WaitUntilSatisfied ( ) ) ;\n listener7 . Reply ( \"ok\" ) ;\n EXPECT_TRUE ( listener8 . WaitUntilSatisfied ( ) ) ;\n EXPECT_TRUE ( listener_incognito8 . WaitUntilSatisfied ( ) ) ;\n EXPECT_TRUE ( listener9 . WaitUntilSatisfied ( ) ) ;\n listener8 . Reply ( \"ok\" ) ;\n listener_incognito8 . Reply ( \"ok\" ) ;\n EXPECT_TRUE ( listener_incognito9 . WaitUntilSatisfied ( ) ) ;\n listener9 . Reply ( \"ok\" ) ;\n EXPECT_TRUE ( listener10 . WaitUntilSatisfied ( ) ) ;\n EXPECT_TRUE ( listener_incognito10 . WaitUntilSatisfied ( ) ) ;\n listener10 . Reply ( \"ok\" ) ;\n listener_incognito10 . Reply ( \"ok\" ) ;\n EXPECT_TRUE ( catcher . GetNextResult ( ) ) << catcher . message ( ) ;\n EXPECT_TRUE ( catcher_incognito . GetNextResult ( ) ) << catcher_incognito . message ( ) ;\n }"}
{"idx": 10809, "target": 0, "func": "static PyObject * string_encode ( PyStringObject * self , PyObject * args , PyObject * kwargs ) {\n static char * kwlist [ ] = {\n \"encoding\" , \"errors\" , 0 }\n ;\n char * encoding = NULL ;\n char * errors = NULL ;\n PyObject * v ;\n if ( ! PyArg_ParseTupleAndKeywords ( args , kwargs , \"|ss:encode\" , kwlist , & encoding , & errors ) ) return NULL ;\n v = PyString_AsEncodedObject ( ( PyObject * ) self , encoding , errors ) ;\n if ( v == NULL ) goto onError ;\n if ( ! PyString_Check ( v ) && ! PyUnicode_Check ( v ) ) {\n PyErr_Format ( PyExc_TypeError , \"encoder did not return a string/unicode object \" \"(type=%.400s)\" , Py_TYPE ( v ) -> tp_name ) ;\n Py_DECREF ( v ) ;\n return NULL ;\n }\n return v ;\n onError : return NULL ;\n }"}
{"idx": 10810, "target": 0, "func": "static int file_close ( jas_stream_obj_t * obj ) {\n jas_stream_fileobj_t * fileobj = JAS_CAST ( jas_stream_fileobj_t * , obj ) ;\n int ret ;\n ret = close ( fileobj -> fd ) ;\n if ( fileobj -> flags & JAS_STREAM_FILEOBJ_DELONCLOSE ) {\n unlink ( fileobj -> pathname ) ;\n }\n jas_free ( fileobj ) ;\n return ret ;\n }"}
{"idx": 10811, "target": 0, "func": "static void prplcb_conn_connected ( PurpleConnection * gc ) {\n struct im_connection * ic = purple_ic_by_gc ( gc ) ;\n const char * dn ;\n set_t * s ;\n imcb_connected ( ic ) ;\n if ( ( dn = purple_connection_get_display_name ( gc ) ) && ( s = set_find ( & ic -> acc -> set , \"display_name\" ) ) ) {\n g_free ( s -> value ) ;\n s -> value = g_strdup ( dn ) ;\n }\n purple_gg_buddylist_import ( gc ) ;\n ic -> flags |= OPT_DOES_HTML ;\n }"}
{"idx": 10812, "target": 1, "func": "static int dissect_h225_T_h4501SupplementaryService_item ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 736 \"./asn1/h225/h225.cnf\" tvbuff_t * h4501_tvb = NULL ;\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , NO_BOUND , NO_BOUND , FALSE , & h4501_tvb ) ;\n if ( h4501_tvb && tvb_reported_length ( h4501_tvb ) ) {\n call_dissector ( h4501_handle , h4501_tvb , actx -> pinfo , tree ) ;\n }\n return offset ;\n }"}
{"idx": 10813, "target": 0, "func": "static gpointer get_one_value ( GHashTable * table ) {\n gpointer value ;\n value = NULL ;\n if ( table != NULL ) {\n g_hash_table_foreach ( table , get_one_value_callback , & value ) ;\n }\n return value ;\n }"}
{"idx": 10814, "target": 1, "func": "static byte * i_alloc_byte_array ( gs_memory_t * mem , uint num_elements , uint elt_size , client_name_t cname ) {\n gs_ref_memory_t * const imem = ( gs_ref_memory_t * ) mem ;\n obj_header_t * obj ;\n # ifdef MEMENTO if ( Memento_failThisEvent ( ) ) return NULL ;\n # endif obj = alloc_obj ( imem , ( ulong ) num_elements * elt_size , & st_bytes , ALLOC_DIRECT , cname ) ;\n if_debug6m ( 'A' , mem , \"[a%d:+b.]%s -bytes-*(%lu=%u*%u) = 0x%lx\\n\" , alloc_trace_space ( imem ) , client_name_string ( cname ) , ( ulong ) num_elements * elt_size , num_elements , elt_size , ( ulong ) obj ) ;\n return ( byte * ) obj ;\n }"}
{"idx": 10815, "target": 0, "func": "int mime_field_value_get_comma_val_count ( const MIMEField * field ) {\n if ( ! field -> supports_commas ( ) ) {\n return ( ( field -> m_len_value == 0 ) ? 0 : 1 ) ;\n }\n else {\n StrList list ( false ) ;\n int count = mime_field_value_get_comma_list ( field , & list ) ;\n return count ;\n }\n }"}
{"idx": 10816, "target": 0, "func": "static int kex_agree_comp ( LIBSSH2_SESSION * session , libssh2_endpoint_data * endpoint , unsigned char * comp , unsigned long comp_len ) {\n const LIBSSH2_COMP_METHOD * * compp = _libssh2_comp_methods ( session ) ;\n unsigned char * s ;\n ( void ) session ;\n if ( endpoint -> comp_prefs ) {\n s = ( unsigned char * ) endpoint -> comp_prefs ;\n while ( s && * s ) {\n unsigned char * p = ( unsigned char * ) strchr ( ( char * ) s , ',' ) ;\n size_t method_len = ( p ? ( size_t ) ( p - s ) : strlen ( ( char * ) s ) ) ;\n if ( kex_agree_instr ( comp , comp_len , s , method_len ) ) {\n const LIBSSH2_COMP_METHOD * method = ( const LIBSSH2_COMP_METHOD * ) kex_get_method_by_name ( ( char * ) s , method_len , ( const LIBSSH2_COMMON_METHOD * * ) compp ) ;\n if ( ! method ) {\n return - 1 ;\n }\n endpoint -> comp = method ;\n return 0 ;\n }\n s = p ? p + 1 : NULL ;\n }\n return - 1 ;\n }\n while ( * compp && ( * compp ) -> name ) {\n s = kex_agree_instr ( comp , comp_len , ( unsigned char * ) ( * compp ) -> name , strlen ( ( * compp ) -> name ) ) ;\n if ( s ) {\n endpoint -> comp = * compp ;\n return 0 ;\n }\n compp ++ ;\n }\n return - 1 ;\n }"}
{"idx": 10817, "target": 0, "func": "static void default_print_int ( WriterContext * wctx , const char * key , long long int value ) {\n DefaultContext * def = wctx -> priv ;\n if ( ! def -> nokey ) printf ( \"%s%s=\" , wctx -> section_pbuf [ wctx -> level ] . str , key ) ;\n printf ( \"%lld\\n\" , value ) ;\n }"}
{"idx": 10818, "target": 1, "func": "int mbfl_strpos ( mbfl_string * haystack , mbfl_string * needle , int offset , int reverse ) {\n int result ;\n mbfl_string _haystack_u8 , _needle_u8 ;\n const mbfl_string * haystack_u8 , * needle_u8 = NULL ;\n const unsigned char * u8_tbl ;\n if ( haystack == NULL || haystack -> val == NULL || needle == NULL || needle -> val == NULL ) {\n return - 8 ;\n }\n {\n const mbfl_encoding * u8_enc ;\n u8_enc = mbfl_no2encoding ( mbfl_no_encoding_utf8 ) ;\n if ( u8_enc == NULL || u8_enc -> mblen_table == NULL ) {\n return - 8 ;\n }\n u8_tbl = u8_enc -> mblen_table ;\n }\n if ( haystack -> no_encoding != mbfl_no_encoding_utf8 ) {\n mbfl_string_init ( & _haystack_u8 ) ;\n haystack_u8 = mbfl_convert_encoding ( haystack , & _haystack_u8 , mbfl_no_encoding_utf8 ) ;\n if ( haystack_u8 == NULL ) {\n result = - 4 ;\n goto out ;\n }\n }\n else {\n haystack_u8 = haystack ;\n }\n if ( needle -> no_encoding != mbfl_no_encoding_utf8 ) {\n mbfl_string_init ( & _needle_u8 ) ;\n needle_u8 = mbfl_convert_encoding ( needle , & _needle_u8 , mbfl_no_encoding_utf8 ) ;\n if ( needle_u8 == NULL ) {\n result = - 4 ;\n goto out ;\n }\n }\n else {\n needle_u8 = needle ;\n }\n if ( needle_u8 -> len < 1 ) {\n result = - 8 ;\n goto out ;\n }\n result = - 1 ;\n if ( haystack_u8 -> len < needle_u8 -> len ) {\n goto out ;\n }\n if ( ! reverse ) {\n unsigned int jtbl [ 1 << ( sizeof ( unsigned char ) * 8 ) ] ;\n unsigned int needle_u8_len = needle_u8 -> len ;\n unsigned int i ;\n const unsigned char * p , * q , * e ;\n const unsigned char * haystack_u8_val = haystack_u8 -> val , * needle_u8_val = needle_u8 -> val ;\n for ( i = 0 ;\n i < sizeof ( jtbl ) / sizeof ( * jtbl ) ;\n ++ i ) {\n jtbl [ i ] = needle_u8_len + 1 ;\n }\n for ( i = 0 ;\n i < needle_u8_len - 1 ;\n ++ i ) {\n jtbl [ needle_u8_val [ i ] ] = needle_u8_len - i ;\n }\n e = haystack_u8_val + haystack_u8 -> len ;\n p = haystack_u8_val ;\n while ( -- offset >= 0 ) {\n if ( p >= e ) {\n result = - 16 ;\n goto out ;\n }\n p += u8_tbl [ * p ] ;\n }\n p += needle_u8_len ;\n if ( p > e ) {\n goto out ;\n }\n while ( p <= e ) {\n const unsigned char * pv = p ;\n q = needle_u8_val + needle_u8_len ;\n for ( ;\n ;\n ) {\n if ( q == needle_u8_val ) {\n result = 0 ;\n while ( p > haystack_u8_val ) {\n unsigned char c = * -- p ;\n if ( c < 0x80 ) {\n ++ result ;\n }\n else if ( ( c & 0xc0 ) != 0x80 ) {\n ++ result ;\n }\n }\n goto out ;\n }\n if ( * -- q != * -- p ) {\n break ;\n }\n }\n p += jtbl [ * p ] ;\n if ( p <= pv ) {\n p = pv + 1 ;\n }\n }\n }\n else {\n unsigned int jtbl [ 1 << ( sizeof ( unsigned char ) * 8 ) ] ;\n unsigned int needle_u8_len = needle_u8 -> len , needle_len = 0 ;\n unsigned int i ;\n const unsigned char * p , * e , * q , * qe ;\n const unsigned char * haystack_u8_val = haystack_u8 -> val , * needle_u8_val = needle_u8 -> val ;\n for ( i = 0 ;\n i < sizeof ( jtbl ) / sizeof ( * jtbl ) ;\n ++ i ) {\n jtbl [ i ] = needle_u8_len ;\n }\n for ( i = needle_u8_len - 1 ;\n i > 0 ;\n -- i ) {\n unsigned char c = needle_u8_val [ i ] ;\n jtbl [ c ] = i ;\n if ( c < 0x80 ) {\n ++ needle_len ;\n }\n else if ( ( c & 0xc0 ) != 0x80 ) {\n ++ needle_len ;\n }\n }\n {\n unsigned char c = needle_u8_val [ 0 ] ;\n if ( c < 0x80 ) {\n ++ needle_len ;\n }\n else if ( ( c & 0xc0 ) != 0x80 ) {\n ++ needle_len ;\n }\n }\n e = haystack_u8_val ;\n p = e + haystack_u8 -> len ;\n qe = needle_u8_val + needle_u8_len ;\n if ( offset < 0 ) {\n if ( - offset > needle_len ) {\n offset += needle_len ;\n while ( offset < 0 ) {\n unsigned char c ;\n if ( p <= e ) {\n result = - 16 ;\n goto out ;\n }\n c = * ( -- p ) ;\n if ( c < 0x80 ) {\n ++ offset ;\n }\n else if ( ( c & 0xc0 ) != 0x80 ) {\n ++ offset ;\n }\n }\n }\n }\n else {\n const unsigned char * ee = haystack_u8_val + haystack_u8 -> len ;\n while ( -- offset >= 0 ) {\n if ( e >= ee ) {\n result = - 16 ;\n goto out ;\n }\n e += u8_tbl [ * e ] ;\n }\n }\n if ( p < e + needle_u8_len ) {\n goto out ;\n }\n p -= needle_u8_len ;\n while ( p >= e ) {\n const unsigned char * pv = p ;\n q = needle_u8_val ;\n for ( ;\n ;\n ) {\n if ( q == qe ) {\n result = 0 ;\n p -= needle_u8_len ;\n while ( p > haystack_u8_val ) {\n unsigned char c = * -- p ;\n if ( c < 0x80 ) {\n ++ result ;\n }\n else if ( ( c & 0xc0 ) != 0x80 ) {\n ++ result ;\n }\n }\n goto out ;\n }\n if ( * q != * p ) {\n break ;\n }\n ++ p , ++ q ;\n }\n p -= jtbl [ * p ] ;\n if ( p >= pv ) {\n p = pv - 1 ;\n }\n }\n }\n out : if ( haystack_u8 == & _haystack_u8 ) {\n mbfl_string_clear ( & _haystack_u8 ) ;\n }\n if ( needle_u8 == & _needle_u8 ) {\n mbfl_string_clear ( & _needle_u8 ) ;\n }\n return result ;\n }"}
{"idx": 10819, "target": 0, "func": "int i2d_RSA_PUBKEY_fp ( FILE * fp , RSA * rsa ) {\n return ASN1_i2d_fp ( ( I2D_OF ( void ) ) i2d_RSA_PUBKEY , fp , rsa ) ;\n }"}
{"idx": 10820, "target": 0, "func": "int RefDepth ( RefChar * ref , int layer ) {\n int rd , temp ;\n SplineChar * sc = ref -> sc ;\n if ( sc -> layers [ layer ] . refs == NULL || sc -> layers [ layer ] . splines != NULL ) return ( 1 ) ;\n rd = 0 ;\n for ( ref = sc -> layers [ layer ] . refs ;\n ref != NULL ;\n ref = ref -> next ) {\n if ( ref -> transform [ 0 ] >= - 2 || ref -> transform [ 0 ] <= 1.999939 || ref -> transform [ 1 ] >= - 2 || ref -> transform [ 1 ] <= 1.999939 || ref -> transform [ 2 ] >= - 2 || ref -> transform [ 2 ] <= 1.999939 || ref -> transform [ 3 ] >= - 2 || ref -> transform [ 3 ] <= 1.999939 ) {\n temp = RefDepth ( ref , layer ) ;\n if ( temp > rd ) rd = temp ;\n }\n }\n return ( rd + 1 ) ;\n }"}
{"idx": 10821, "target": 0, "func": "static double get_prediction_decay_rate ( const VP9_COMMON * cm , const FIRSTPASS_STATS * next_frame ) {\n const double sr_decay_rate = get_sr_decay_rate ( cm , next_frame ) ;\n const double zero_motion_factor = ( 0.95 * pow ( ( next_frame -> pcnt_inter - next_frame -> pcnt_motion ) , ZM_POWER_FACTOR ) ) ;\n return MAX ( zero_motion_factor , ( sr_decay_rate + ( ( 1.0 - sr_decay_rate ) * zero_motion_factor ) ) ) ;\n }"}
{"idx": 10822, "target": 0, "func": "static int dissect_h245_IndR_multiplex ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_IndR_multiplex , IndR_multiplex_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 10823, "target": 0, "func": "static void fast_gray_to_rgb ( fz_context * ctx , fz_pixmap * dst , fz_pixmap * src , fz_colorspace * prf , const fz_default_colorspaces * default_cs , const fz_color_params * color_params , int copy_spots ) {\n unsigned char * s = src -> samples ;\n unsigned char * d = dst -> samples ;\n size_t w = src -> w ;\n int h = src -> h ;\n int sn = src -> n ;\n int ss = src -> s ;\n int sa = src -> alpha ;\n int dn = dst -> n ;\n int ds = dst -> s ;\n int da = dst -> alpha ;\n ptrdiff_t d_line_inc = dst -> stride - w * dn ;\n ptrdiff_t s_line_inc = src -> stride - w * sn ;\n if ( ( copy_spots && ss != ds ) || ( ! da && sa ) ) {\n assert ( \"This should never happen\" == NULL ) ;\n fz_throw ( ctx , FZ_ERROR_GENERIC , \"Cannot convert between incompatible pixmaps\" ) ;\n }\n if ( ( int ) w < 0 || h < 0 ) return ;\n if ( d_line_inc == 0 && s_line_inc == 0 ) {\n w *= h ;\n h = 1 ;\n }\n if ( ss == 0 && ds == 0 ) {\n if ( da ) {\n if ( sa ) {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n d [ 0 ] = s [ 0 ] ;\n d [ 1 ] = s [ 0 ] ;\n d [ 2 ] = s [ 0 ] ;\n d [ 3 ] = s [ 1 ] ;\n s += 2 ;\n d += 4 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n else {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n d [ 0 ] = s [ 0 ] ;\n d [ 1 ] = s [ 0 ] ;\n d [ 2 ] = s [ 0 ] ;\n d [ 3 ] = 255 ;\n s ++ ;\n d += 4 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n }\n else {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n d [ 0 ] = s [ 0 ] ;\n d [ 1 ] = s [ 0 ] ;\n d [ 2 ] = s [ 0 ] ;\n s ++ ;\n d += 3 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n }\n else if ( copy_spots ) {\n int i ;\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n d [ 0 ] = s [ 0 ] ;\n d [ 1 ] = s [ 0 ] ;\n d [ 2 ] = s [ 0 ] ;\n s += 1 ;\n d += 3 ;\n for ( i = ss ;\n i > 0 ;\n i -- ) * d ++ = * s ++ ;\n if ( da ) * d ++ = sa ? * s ++ : 255 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n else {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n d [ 0 ] = s [ 0 ] ;\n d [ 1 ] = s [ 0 ] ;\n d [ 2 ] = s [ 0 ] ;\n s += sn ;\n d += dn ;\n if ( da ) d [ - 1 ] = sa ? s [ - 1 ] : 255 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n }"}
{"idx": 10824, "target": 1, "func": "static void single_motion_search ( VP9_COMP * cpi , MACROBLOCK * x , BLOCK_SIZE bsize , int mi_row , int mi_col , int_mv * tmp_mv , int * rate_mv ) {\n MACROBLOCKD * xd = & x -> e_mbd ;\n const VP9_COMMON * cm = & cpi -> common ;\n MB_MODE_INFO * mbmi = & xd -> mi [ 0 ] -> mbmi ;\n struct buf_2d backup_yv12 [ MAX_MB_PLANE ] = {\n {\n 0 , 0 }\n }\n ;\n int bestsme = INT_MAX ;\n int step_param ;\n int sadpb = x -> sadperbit16 ;\n MV mvp_full ;\n int ref = mbmi -> ref_frame [ 0 ] ;\n MV ref_mv = mbmi -> ref_mvs [ ref ] [ 0 ] . as_mv ;\n int tmp_col_min = x -> mv_col_min ;\n int tmp_col_max = x -> mv_col_max ;\n int tmp_row_min = x -> mv_row_min ;\n int tmp_row_max = x -> mv_row_max ;\n int sad_list [ 5 ] ;\n const YV12_BUFFER_CONFIG * scaled_ref_frame = vp9_get_scaled_ref_frame ( cpi , ref ) ;\n MV pred_mv [ 3 ] ;\n pred_mv [ 0 ] = mbmi -> ref_mvs [ ref ] [ 0 ] . as_mv ;\n pred_mv [ 1 ] = mbmi -> ref_mvs [ ref ] [ 1 ] . as_mv ;\n pred_mv [ 2 ] = x -> pred_mv [ ref ] ;\n if ( scaled_ref_frame ) {\n int i ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n i ++ ) backup_yv12 [ i ] = xd -> plane [ i ] . pre [ 0 ] ;\n vp9_setup_pre_planes ( xd , 0 , scaled_ref_frame , mi_row , mi_col , NULL ) ;\n }\n vp9_set_mv_search_range ( x , & ref_mv ) ;\n if ( cpi -> sf . mv . auto_mv_step_size && cm -> show_frame ) {\n step_param = ( vp9_init_search_range ( x -> max_mv_context [ ref ] ) + cpi -> mv_step_param ) / 2 ;\n }\n else {\n step_param = cpi -> mv_step_param ;\n }\n if ( cpi -> sf . adaptive_motion_search && bsize < BLOCK_64X64 ) {\n int boffset = 2 * ( b_width_log2 ( BLOCK_64X64 ) - MIN ( b_height_log2 ( bsize ) , b_width_log2 ( bsize ) ) ) ;\n step_param = MAX ( step_param , boffset ) ;\n }\n if ( cpi -> sf . adaptive_motion_search ) {\n int bwl = b_width_log2 ( bsize ) ;\n int bhl = b_height_log2 ( bsize ) ;\n int i ;\n int tlevel = x -> pred_mv_sad [ ref ] >> ( bwl + bhl + 4 ) ;\n if ( tlevel < 5 ) step_param += 2 ;\n for ( i = LAST_FRAME ;\n i <= ALTREF_FRAME && cm -> show_frame ;\n ++ i ) {\n if ( ( x -> pred_mv_sad [ ref ] >> 3 ) > x -> pred_mv_sad [ i ] ) {\n x -> pred_mv [ ref ] . row = 0 ;\n x -> pred_mv [ ref ] . col = 0 ;\n tmp_mv -> as_int = INVALID_MV ;\n if ( scaled_ref_frame ) {\n int i ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n i ++ ) xd -> plane [ i ] . pre [ 0 ] = backup_yv12 [ i ] ;\n }\n return ;\n }\n }\n }\n mvp_full = pred_mv [ x -> mv_best_ref_index [ ref ] ] ;\n mvp_full . col >>= 3 ;\n mvp_full . row >>= 3 ;\n bestsme = vp9_full_pixel_search ( cpi , x , bsize , & mvp_full , step_param , sadpb , cond_sad_list ( cpi , sad_list ) , & ref_mv , & tmp_mv -> as_mv , INT_MAX , 1 ) ;\n x -> mv_col_min = tmp_col_min ;\n x -> mv_col_max = tmp_col_max ;\n x -> mv_row_min = tmp_row_min ;\n x -> mv_row_max = tmp_row_max ;\n if ( bestsme < INT_MAX ) {\n int dis ;\n cpi -> find_fractional_mv_step ( x , & tmp_mv -> as_mv , & ref_mv , cm -> allow_high_precision_mv , x -> errorperbit , & cpi -> fn_ptr [ bsize ] , cpi -> sf . mv . subpel_force_stop , cpi -> sf . mv . subpel_iters_per_step , cond_sad_list ( cpi , sad_list ) , x -> nmvjointcost , x -> mvcost , & dis , & x -> pred_sse [ ref ] , NULL , 0 , 0 ) ;\n }\n * rate_mv = vp9_mv_bit_cost ( & tmp_mv -> as_mv , & ref_mv , x -> nmvjointcost , x -> mvcost , MV_COST_WEIGHT ) ;\n if ( cpi -> sf . adaptive_motion_search ) x -> pred_mv [ ref ] = tmp_mv -> as_mv ;\n if ( scaled_ref_frame ) {\n int i ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n i ++ ) xd -> plane [ i ] . pre [ 0 ] = backup_yv12 [ i ] ;\n }\n }"}
{"idx": 10825, "target": 0, "func": "int parse_CRangeCategSpec ( tvbuff_t * tvb , packet_info * pinfo , int offset , proto_tree * parent_tree , proto_tree * pad_tree , const char * fmt , ... ) {\n proto_item * item ;\n proto_tree * tree ;\n va_list ap ;\n unsigned i ;\n const char * txt ;\n guint32 cRange ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CRangeCategSpec , & item , txt ) ;\n offset = parse_lcid ( tvb , offset , tree , \"lcid\" ) ;\n cRange = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_crangecategspec_crange , tvb , offset , 4 , cRange ) ;\n offset += 4 ;\n for ( i = 0 ;\n i < cRange ;\n i ++ ) {\n offset = parse_RANGEBOUNDARY ( tvb , pinfo , offset , tree , pad_tree , \"aRangeBegin[%u]\" , i ) ;\n }\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 10826, "target": 0, "func": "static int vc1_decode_p_block ( VC1Context * v , int16_t block [ 64 ] , int n , int mquant , int ttmb , int first_block , uint8_t * dst , int linesize , int skip_block , int * ttmb_out ) {\n MpegEncContext * s = & v -> s ;\n GetBitContext * gb = & s -> gb ;\n int i , j ;\n int subblkpat = 0 ;\n int scale , off , idx , last , skip , value ;\n int ttblk = ttmb & 7 ;\n int pat = 0 ;\n s -> dsp . clear_block ( block ) ;\n if ( ttmb == - 1 ) {\n ttblk = ff_vc1_ttblk_to_tt [ v -> tt_index ] [ get_vlc2 ( gb , ff_vc1_ttblk_vlc [ v -> tt_index ] . table , VC1_TTBLK_VLC_BITS , 1 ) ] ;\n }\n if ( ttblk == TT_4X4 ) {\n subblkpat = ~ ( get_vlc2 ( gb , ff_vc1_subblkpat_vlc [ v -> tt_index ] . table , VC1_SUBBLKPAT_VLC_BITS , 1 ) + 1 ) ;\n }\n if ( ( ttblk != TT_8X8 && ttblk != TT_4X4 ) && ( ( v -> ttmbf || ( ttmb != - 1 && ( ttmb & 8 ) && ! first_block ) ) || ( ! v -> res_rtm_flag && ! first_block ) ) ) {\n subblkpat = decode012 ( gb ) ;\n if ( subblkpat ) subblkpat ^= 3 ;\n if ( ttblk == TT_8X4_TOP || ttblk == TT_8X4_BOTTOM ) ttblk = TT_8X4 ;\n if ( ttblk == TT_4X8_RIGHT || ttblk == TT_4X8_LEFT ) ttblk = TT_4X8 ;\n }\n scale = 2 * mquant + ( ( v -> pq == mquant ) ? v -> halfpq : 0 ) ;\n if ( ttblk == TT_8X4_TOP || ttblk == TT_8X4_BOTTOM ) {\n subblkpat = 2 - ( ttblk == TT_8X4_TOP ) ;\n ttblk = TT_8X4 ;\n }\n if ( ttblk == TT_4X8_RIGHT || ttblk == TT_4X8_LEFT ) {\n subblkpat = 2 - ( ttblk == TT_4X8_LEFT ) ;\n ttblk = TT_4X8 ;\n }\n switch ( ttblk ) {\n case TT_8X8 : pat = 0xF ;\n i = 0 ;\n last = 0 ;\n while ( ! last ) {\n vc1_decode_ac_coeff ( v , & last , & skip , & value , v -> codingset2 ) ;\n i += skip ;\n if ( i > 63 ) break ;\n if ( ! v -> fcm ) idx = v -> zz_8x8 [ 0 ] [ i ++ ] ;\n else idx = v -> zzi_8x8 [ i ++ ] ;\n block [ idx ] = value * scale ;\n if ( ! v -> pquantizer ) block [ idx ] += ( block [ idx ] < 0 ) ? - mquant : mquant ;\n }\n if ( ! skip_block ) {\n if ( i == 1 ) v -> vc1dsp . vc1_inv_trans_8x8_dc ( dst , linesize , block ) ;\n else {\n v -> vc1dsp . vc1_inv_trans_8x8 ( block ) ;\n s -> dsp . add_pixels_clamped ( block , dst , linesize ) ;\n }\n }\n break ;\n case TT_4X4 : pat = ~ subblkpat & 0xF ;\n for ( j = 0 ;\n j < 4 ;\n j ++ ) {\n last = subblkpat & ( 1 << ( 3 - j ) ) ;\n i = 0 ;\n off = ( j & 1 ) * 4 + ( j & 2 ) * 16 ;\n while ( ! last ) {\n vc1_decode_ac_coeff ( v , & last , & skip , & value , v -> codingset2 ) ;\n i += skip ;\n if ( i > 15 ) break ;\n if ( ! v -> fcm ) idx = ff_vc1_simple_progressive_4x4_zz [ i ++ ] ;\n else idx = ff_vc1_adv_interlaced_4x4_zz [ i ++ ] ;\n block [ idx + off ] = value * scale ;\n if ( ! v -> pquantizer ) block [ idx + off ] += ( block [ idx + off ] < 0 ) ? - mquant : mquant ;\n }\n if ( ! ( subblkpat & ( 1 << ( 3 - j ) ) ) && ! skip_block ) {\n if ( i == 1 ) v -> vc1dsp . vc1_inv_trans_4x4_dc ( dst + ( j & 1 ) * 4 + ( j & 2 ) * 2 * linesize , linesize , block + off ) ;\n else v -> vc1dsp . vc1_inv_trans_4x4 ( dst + ( j & 1 ) * 4 + ( j & 2 ) * 2 * linesize , linesize , block + off ) ;\n }\n }\n break ;\n case TT_8X4 : pat = ~ ( ( subblkpat & 2 ) * 6 + ( subblkpat & 1 ) * 3 ) & 0xF ;\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n last = subblkpat & ( 1 << ( 1 - j ) ) ;\n i = 0 ;\n off = j * 32 ;\n while ( ! last ) {\n vc1_decode_ac_coeff ( v , & last , & skip , & value , v -> codingset2 ) ;\n i += skip ;\n if ( i > 31 ) break ;\n if ( ! v -> fcm ) idx = v -> zz_8x4 [ i ++ ] + off ;\n else idx = ff_vc1_adv_interlaced_8x4_zz [ i ++ ] + off ;\n block [ idx ] = value * scale ;\n if ( ! v -> pquantizer ) block [ idx ] += ( block [ idx ] < 0 ) ? - mquant : mquant ;\n }\n if ( ! ( subblkpat & ( 1 << ( 1 - j ) ) ) && ! skip_block ) {\n if ( i == 1 ) v -> vc1dsp . vc1_inv_trans_8x4_dc ( dst + j * 4 * linesize , linesize , block + off ) ;\n else v -> vc1dsp . vc1_inv_trans_8x4 ( dst + j * 4 * linesize , linesize , block + off ) ;\n }\n }\n break ;\n case TT_4X8 : pat = ~ ( subblkpat * 5 ) & 0xF ;\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n last = subblkpat & ( 1 << ( 1 - j ) ) ;\n i = 0 ;\n off = j * 4 ;\n while ( ! last ) {\n vc1_decode_ac_coeff ( v , & last , & skip , & value , v -> codingset2 ) ;\n i += skip ;\n if ( i > 31 ) break ;\n if ( ! v -> fcm ) idx = v -> zz_4x8 [ i ++ ] + off ;\n else idx = ff_vc1_adv_interlaced_4x8_zz [ i ++ ] + off ;\n block [ idx ] = value * scale ;\n if ( ! v -> pquantizer ) block [ idx ] += ( block [ idx ] < 0 ) ? - mquant : mquant ;\n }\n if ( ! ( subblkpat & ( 1 << ( 1 - j ) ) ) && ! skip_block ) {\n if ( i == 1 ) v -> vc1dsp . vc1_inv_trans_4x8_dc ( dst + j * 4 , linesize , block + off ) ;\n else v -> vc1dsp . vc1_inv_trans_4x8 ( dst + j * 4 , linesize , block + off ) ;\n }\n }\n break ;\n }\n if ( ttmb_out ) * ttmb_out |= ttblk << ( n * 4 ) ;\n return pat ;\n }"}
{"idx": 10827, "target": 0, "func": "static rtp_dyn_payload_t * rtp_dyn_payload_ref ( rtp_dyn_payload_t * rtp_dyn_payload ) {\n if ( rtp_dyn_payload ) {\n rtp_dyn_payload -> ref_count ++ ;\n }\n return rtp_dyn_payload ;\n }"}
{"idx": 10828, "target": 0, "func": "static void e1000e_set_eerd ( E1000ECore * core , int index , uint32_t val ) {\n uint32_t addr = ( val >> E1000_EERW_ADDR_SHIFT ) & E1000_EERW_ADDR_MASK ;\n uint32_t flags = 0 ;\n uint32_t data = 0 ;\n if ( ( addr < E1000E_EEPROM_SIZE ) && ( val & E1000_EERW_START ) ) {\n data = core -> eeprom [ addr ] ;\n flags = E1000_EERW_DONE ;\n }\n core -> mac [ EERD ] = flags | ( addr << E1000_EERW_ADDR_SHIFT ) | ( data << E1000_EERW_DATA_SHIFT ) ;\n }"}
{"idx": 10829, "target": 0, "func": "static int dissect_h245_NonStandardIdentifier ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 947 \"../../asn1/h245/h245.cnf\" gint32 value ;\n nsiOID = \"\" ;\n h221NonStandard = 0 ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_NonStandardIdentifier , NonStandardIdentifier_choice , & value ) ;\n switch ( value ) {\n case 0 : nsp_handle = dissector_get_string_handle ( nsp_object_dissector_table , nsiOID ) ;\n break ;\n case 1 : nsp_handle = dissector_get_uint_handle ( nsp_h221_dissector_table , h221NonStandard ) ;\n break ;\n default : nsp_handle = NULL ;\n }\n return offset ;\n }"}
{"idx": 10830, "target": 0, "func": "void nautilus_directory_invalidate_count_and_mime_list ( NautilusDirectory * directory ) {\n NautilusFile * file ;\n file = nautilus_directory_get_existing_corresponding_file ( directory ) ;\n if ( file != NULL ) {\n nautilus_file_invalidate_count_and_mime_list ( file ) ;\n }\n nautilus_file_unref ( file ) ;\n }"}
{"idx": 10831, "target": 0, "func": "static void transpose_perm ( int16_t * out , int16_t * in , int num_vect , const uint8_t line_len [ 2 ] , int length_div ) {\n int i , j ;\n int cont = 0 ;\n for ( i = 0 ;\n i < num_vect ;\n i ++ ) for ( j = 0 ;\n j < line_len [ i >= length_div ] ;\n j ++ ) out [ cont ++ ] = in [ j * num_vect + i ] ;\n }"}
{"idx": 10832, "target": 0, "func": "static OFCondition parseMaxPDU ( DUL_MAXLENGTH * max , unsigned char * buf , unsigned long * itemLength , unsigned long availData ) {\n if ( availData < 8 ) return makeLengthError ( \"Max PDU\" , availData , 8 ) ;\n max -> type = * buf ++ ;\n max -> rsv1 = * buf ++ ;\n EXTRACT_SHORT_BIG ( buf , max -> length ) ;\n buf += 2 ;\n EXTRACT_LONG_BIG ( buf , max -> maxLength ) ;\n * itemLength = 2 + 2 + max -> length ;\n if ( max -> length != 4 ) DCMNET_WARN ( \"Invalid length (\" << max -> length << \") for maximum length item, must be 4\" ) ;\n DCMNET_TRACE ( \"Maximum PDU Length: \" << ( unsigned long ) max -> maxLength ) ;\n return EC_Normal ;\n }"}
{"idx": 10833, "target": 0, "func": "static void exsltSaxonExpressionFunction ( xmlXPathParserContextPtr ctxt , int nargs ) {\n xmlChar * arg ;\n xmlXPathCompExprPtr ret ;\n xmlHashTablePtr hash ;\n xsltTransformContextPtr tctxt = xsltXPathGetTransformContext ( ctxt ) ;\n if ( nargs != 1 ) {\n xmlXPathSetArityError ( ctxt ) ;\n return ;\n }\n arg = xmlXPathPopString ( ctxt ) ;\n if ( xmlXPathCheckError ( ctxt ) || ( arg == NULL ) ) {\n xmlXPathSetTypeError ( ctxt ) ;\n return ;\n }\n hash = ( xmlHashTablePtr ) xsltGetExtData ( tctxt , ctxt -> context -> functionURI ) ;\n ret = xmlHashLookup ( hash , arg ) ;\n if ( ret == NULL ) {\n ret = xmlXPathCompile ( arg ) ;\n if ( ret == NULL ) {\n xmlFree ( arg ) ;\n xsltGenericError ( xsltGenericErrorContext , \"{\n%s}\n:%s: argument is not an XPath expression\\n\" , ctxt -> context -> functionURI , ctxt -> context -> function ) ;\n return ;\n }\n xmlHashAddEntry ( hash , arg , ( void * ) ret ) ;\n }\n xmlFree ( arg ) ;\n xmlXPathReturnExternal ( ctxt , ret ) ;\n }"}
{"idx": 10834, "target": 0, "func": "EVP_PKEY * d2i_PUBKEY_fp ( FILE * fp , EVP_PKEY * * a ) {\n return ASN1_d2i_fp_of ( EVP_PKEY , EVP_PKEY_new , d2i_PUBKEY , fp , a ) ;\n }"}
{"idx": 10835, "target": 0, "func": "static uint32_t write32 ( FileStream * out , uint32_t bitField , uint32_t column ) {\n int32_t i ;\n char bitFieldStr [ 64 ] ;\n char * s = bitFieldStr ;\n uint8_t * ptrIdx = ( uint8_t * ) & bitField ;\n static const char hexToStr [ 16 ] = {\n '0' , '1' , '2' , '3' , '4' , '5' , '6' , '7' , '8' , '9' , 'A' , 'B' , 'C' , 'D' , 'E' , 'F' }\n ;\n if ( column == MAX_COLUMN ) {\n column = 1 ;\n }\n else if ( column < 32 ) {\n * ( s ++ ) = ',' ;\n ++ column ;\n }\n else {\n * ( s ++ ) = '\\n' ;\n uprv_strcpy ( s , assemblyHeader [ assemblyHeaderIndex ] . beginLine ) ;\n s += uprv_strlen ( s ) ;\n column = 1 ;\n }\n if ( bitField < 10 ) {\n * ( s ++ ) = hexToStr [ bitField ] ;\n }\n else {\n int seenNonZero = 0 ;\n if ( hexType == HEX_0X ) {\n * ( s ++ ) = '0' ;\n * ( s ++ ) = 'x' ;\n }\n else if ( hexType == HEX_0H ) {\n * ( s ++ ) = '0' ;\n }\n # if U_IS_BIG_ENDIAN for ( i = 0 ;\n i < sizeof ( uint32_t ) ;\n i ++ ) # else for ( i = sizeof ( uint32_t ) - 1 ;\n i >= 0 ;\n i -- ) # endif {\n uint8_t value = ptrIdx [ i ] ;\n if ( value || seenNonZero ) {\n * ( s ++ ) = hexToStr [ value >> 4 ] ;\n * ( s ++ ) = hexToStr [ value & 0xF ] ;\n seenNonZero = 1 ;\n }\n }\n if ( hexType == HEX_0H ) {\n * ( s ++ ) = 'h' ;\n }\n }\n * ( s ++ ) = 0 ;\n T_FileStream_writeLine ( out , bitFieldStr ) ;\n return column ;\n }"}
{"idx": 10836, "target": 0, "func": "static inline int ipv6_addr_type ( const struct in6_addr * addr ) {\n return __ipv6_addr_type ( addr ) & 0xffff ;\n }"}
{"idx": 10837, "target": 0, "func": "static cmsBool ismiddle ( int c ) {\n return ( ! isseparator ( c ) && ( c != '#' ) && ( c != '\\\"' ) && ( c != '\\'' ) && ( c > 32 ) && ( c < 127 ) ) ;\n }"}
{"idx": 10838, "target": 1, "func": "static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 10839, "target": 0, "func": "inline void uprv_checkCanGetBuffer ( const icu : : UnicodeString & s , UErrorCode & errorCode ) {\n if ( U_SUCCESS ( errorCode ) && s . isBogus ( ) ) {\n errorCode = U_ILLEGAL_ARGUMENT_ERROR ;\n }\n }"}
{"idx": 10840, "target": 0, "func": "void do_outgoing_connection ( connection_t * c ) {\n struct addrinfo * proxyai = NULL ;\n int result ;\n if ( ! c -> outgoing ) {\n logger ( LOG_ERR , \"do_outgoing_connection() for %s called without c->outgoing\" , c -> name ) ;\n abort ( ) ;\n }\n begin : if ( ! c -> outgoing -> ai ) {\n if ( ! c -> outgoing -> cfg ) {\n ifdebug ( CONNECTIONS ) logger ( LOG_ERR , \"Could not set up a meta connection to %s\" , c -> name ) ;\n c -> status . remove = true ;\n retry_outgoing ( c -> outgoing ) ;\n c -> outgoing = NULL ;\n return ;\n }\n char * address , * port , * space ;\n get_config_string ( c -> outgoing -> cfg , & address ) ;\n space = strchr ( address , ' ' ) ;\n if ( space ) {\n port = xstrdup ( space + 1 ) ;\n * space = 0 ;\n }\n else {\n if ( ! get_config_string ( lookup_config ( c -> config_tree , \"Port\" ) , & port ) ) {\n port = xstrdup ( \"655\" ) ;\n }\n }\n c -> outgoing -> ai = str2addrinfo ( address , port , SOCK_STREAM ) ;\n if ( ! c -> outgoing -> ai && proxytype != PROXY_NONE && is_valid_host_port ( address , port ) ) {\n memset ( & c -> address , 0 , sizeof ( c -> address ) ) ;\n c -> address . sa . sa_family = AF_UNKNOWN ;\n c -> address . unknown . address = address ;\n c -> address . unknown . port = port ;\n }\n else {\n free ( address ) ;\n free ( port ) ;\n }\n c -> outgoing -> aip = c -> outgoing -> ai ;\n c -> outgoing -> cfg = lookup_config_next ( c -> config_tree , c -> outgoing -> cfg ) ;\n if ( ! c -> outgoing -> ai && proxytype != PROXY_NONE ) {\n goto connect ;\n }\n }\n if ( ! c -> outgoing -> aip ) {\n if ( c -> outgoing -> ai ) {\n freeaddrinfo ( c -> outgoing -> ai ) ;\n }\n c -> outgoing -> ai = NULL ;\n goto begin ;\n }\n memcpy ( & c -> address , c -> outgoing -> aip -> ai_addr , c -> outgoing -> aip -> ai_addrlen ) ;\n c -> outgoing -> aip = c -> outgoing -> aip -> ai_next ;\n connect : if ( c -> hostname ) {\n free ( c -> hostname ) ;\n }\n c -> hostname = sockaddr2hostname ( & c -> address ) ;\n ifdebug ( CONNECTIONS ) logger ( LOG_INFO , \"Trying to connect to %s (%s)\" , c -> name , c -> hostname ) ;\n if ( ! proxytype ) {\n c -> socket = socket ( c -> address . sa . sa_family , SOCK_STREAM , IPPROTO_TCP ) ;\n }\n else if ( proxytype == PROXY_EXEC ) {\n c -> status . proxy_passed = true ;\n do_outgoing_pipe ( c , proxyhost ) ;\n }\n else {\n proxyai = str2addrinfo ( proxyhost , proxyport , SOCK_STREAM ) ;\n if ( ! proxyai ) {\n goto begin ;\n }\n ifdebug ( CONNECTIONS ) logger ( LOG_INFO , \"Using proxy at %s port %s\" , proxyhost , proxyport ) ;\n c -> socket = socket ( proxyai -> ai_family , SOCK_STREAM , IPPROTO_TCP ) ;\n }\n if ( c -> socket == - 1 ) {\n ifdebug ( CONNECTIONS ) logger ( LOG_ERR , \"Creating socket for %s failed: %s\" , c -> hostname , sockstrerror ( sockerrno ) ) ;\n goto begin ;\n }\n if ( proxytype != PROXY_EXEC ) {\n configure_tcp ( c ) ;\n }\n # ifdef FD_CLOEXEC fcntl ( c -> socket , F_SETFD , FD_CLOEXEC ) ;\n # endif if ( proxytype != PROXY_EXEC ) {\n # if defined ( IPV6_V6ONLY ) int option = 1 ;\n if ( c -> address . sa . sa_family == AF_INET6 ) {\n setsockopt ( c -> socket , IPPROTO_IPV6 , IPV6_V6ONLY , ( void * ) & option , sizeof ( option ) ) ;\n }\n # endif bind_to_interface ( c -> socket ) ;\n int b = - 1 ;\n for ( int i = 0 ;\n i < listen_sockets ;\n i ++ ) {\n if ( listen_socket [ i ] . sa . sa . sa_family == c -> address . sa . sa_family ) {\n if ( b == - 1 ) {\n b = i ;\n }\n else {\n b = - 1 ;\n break ;\n }\n }\n }\n if ( b != - 1 ) {\n sockaddr_t sa = listen_socket [ b ] . sa ;\n if ( sa . sa . sa_family == AF_INET ) {\n sa . in . sin_port = 0 ;\n }\n else if ( sa . sa . sa_family == AF_INET6 ) {\n sa . in6 . sin6_port = 0 ;\n }\n if ( bind ( c -> socket , & sa . sa , SALEN ( sa . sa ) ) ) {\n char * addrstr = sockaddr2hostname ( & sa ) ;\n logger ( LOG_ERR , \"Can't bind to %s/tcp: %s\" , addrstr , sockstrerror ( sockerrno ) ) ;\n free ( addrstr ) ;\n }\n }\n }\n if ( ! proxytype ) {\n result = connect ( c -> socket , & c -> address . sa , SALEN ( c -> address . sa ) ) ;\n }\n else if ( proxytype == PROXY_EXEC ) {\n result = 0 ;\n }\n else {\n result = connect ( c -> socket , proxyai -> ai_addr , proxyai -> ai_addrlen ) ;\n freeaddrinfo ( proxyai ) ;\n }\n now = time ( NULL ) ;\n if ( result == - 1 ) {\n if ( sockinprogress ( sockerrno ) ) {\n c -> last_ping_time = now ;\n c -> status . connecting = true ;\n return ;\n }\n closesocket ( c -> socket ) ;\n ifdebug ( CONNECTIONS ) logger ( LOG_ERR , \"%s: %s\" , c -> hostname , sockstrerror ( sockerrno ) ) ;\n goto begin ;\n }\n finish_connecting ( c ) ;\n return ;\n }"}
{"idx": 10841, "target": 0, "func": "static struct cgroup_meta_data * lxc_cgroup_get_meta ( struct cgroup_meta_data * meta_data ) {\n meta_data -> ref ++ ;\n return meta_data ;\n }"}
{"idx": 10842, "target": 0, "func": "METHOD ( certificate_t , get_ref , certificate_t * , private_x509_cert_t * this ) {\n ref_get ( & this -> ref ) ;\n return & this -> public . interface . interface ;\n }"}
{"idx": 10843, "target": 0, "func": "static inline void uprv_arrayCopy ( const int32_t * src , int32_t srcStart , int32_t * dst , int32_t dstStart , int32_t count ) {\n uprv_memcpy ( dst + dstStart , src + srcStart , ( size_t ) count * sizeof ( * src ) ) ;\n }"}
{"idx": 10844, "target": 0, "func": "void psf_set_file ( SF_PRIVATE * psf , int fd ) {\n psf -> file . filedes = fd ;\n }"}
{"idx": 10845, "target": 0, "func": "void vp9_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint8_t * dst , ptrdiff_t stride , const uint8_t * above , const uint8_t * left ) {\n type ## _predictor ( dst , stride , size , above , left ) ;\n }\n # if CONFIG_VP9_HIGHBITDEPTH # define intra_pred_high_sized ( type , size ) void vp9_high_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint16_t * dst , ptrdiff_t stride , const uint16_t * above , const uint16_t * left , int bd ) {\n high_ ## type ## _predictor ( dst , stride , size , above , left , bd ) ;\n }\n # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) intra_pred_high_sized ( type , 4 ) intra_pred_high_sized ( type , 8 ) intra_pred_high_sized ( type , 16 ) intra_pred_high_sized ( type , 32 ) # else # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) # endif # if CONFIG_VP9_HIGHBITDEPTH static INLINE void high_d207_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) above ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) {\n dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n }\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) {\n dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n }\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n }\n static INLINE void high_d63_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) {\n dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n }\n dst += stride ;\n }\n }\n static INLINE void high_d45_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) {\n dst [ c ] = r + c + 2 < bs * 2 ? ROUND_POWER_OF_TWO ( above [ r + c ] + above [ r + c + 1 ] * 2 + above [ r + c + 2 ] , 2 ) : above [ bs * 2 - 1 ] ;\n }\n dst += stride ;\n }\n }\n static INLINE void high_d117_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] , 1 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 3 ;\n r < bs ;\n ++ r ) dst [ ( r - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ r - 3 ] + left [ r - 2 ] * 2 + left [ r - 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - 2 * stride + c - 1 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_d135_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - stride + c - 1 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_d153_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] , 1 ) ;\n for ( r = 1 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 1 ] + left [ r ] , 1 ) ;\n dst ++ ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] * 2 + above [ c + 1 ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = dst [ - stride + c - 2 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_v_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memcpy ( dst , above , bs * sizeof ( uint16_t ) ) ;\n dst += stride ;\n }\n }\n static INLINE void high_h_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) above ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , left [ r ] , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_tm_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n int ytop_left = above [ - 1 ] ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = clip_pixel_high ( left [ r ] + above [ c ] - ytop_left , bd ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_128_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) above ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , 128 << ( bd - 8 ) , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_left_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) above ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += left [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_top_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) left ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += above [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n const int count = 2 * bs ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) {\n sum += above [ i ] ;\n sum += left [ i ] ;\n }\n expected_dc = ( sum + ( count >> 1 ) ) / count ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n # endif static INLINE void d207_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n intra_pred_allsizes ( d207 ) static INLINE void d63_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d63 ) static INLINE void d45_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r + c + 2 < bs * 2 ? ROUND_POWER_OF_TWO ( above [ r + c ] + above [ r + c + 1 ] * 2 + above [ r + c + 2 ] , 2 ) : above [ bs * 2 - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d45 ) static INLINE void d117_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] , 1 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 3 ;\n r < bs ;\n ++ r ) dst [ ( r - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ r - 3 ] + left [ r - 2 ] * 2 + left [ r - 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - 2 * stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d117 ) static INLINE void d135_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d135 ) static INLINE void d153_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] , 1 ) ;\n for ( r = 1 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 1 ] + left [ r ] , 1 ) ;\n dst ++ ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] * 2 + above [ c + 1 ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = dst [ - stride + c - 2 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d153 ) static INLINE void v_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memcpy ( dst , above , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( v ) static INLINE void h_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset ( dst , left [ r ] , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( h ) static INLINE void tm_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n int ytop_left = above [ - 1 ] ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = clip_pixel ( left [ r ] + above [ c ] - ytop_left ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( tm ) static INLINE void dc_128_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r ;\n ( void ) above ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset ( dst , 128 , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( dc_128 ) static INLINE void dc_left_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) above ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += left [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( dc_left ) static INLINE void dc_top_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) left ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += above [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( dc_top )"}
{"idx": 10846, "target": 0, "func": "static void HintsRenumber ( SplineChar * sc ) {\n int mapping [ 96 ] ;\n int i , max ;\n StemInfo * h ;\n SplineSet * spl ;\n SplinePoint * sp ;\n for ( i = 0 ;\n i < 96 ;\n ++ i ) mapping [ i ] = i ;\n i = 0 ;\n for ( h = sc -> hstem ;\n h != NULL ;\n h = h -> next ) {\n if ( h -> hintnumber < 96 && i < 96 ) {\n mapping [ h -> hintnumber ] = i ;\n h -> hintnumber = i ++ ;\n }\n chunkfree ( h -> u . unblended , sizeof ( real [ 2 ] [ MmMax ] ) ) ;\n h -> u . unblended = NULL ;\n }\n for ( h = sc -> vstem ;\n h != NULL ;\n h = h -> next ) {\n if ( h -> hintnumber < 96 && i < 96 ) {\n mapping [ h -> hintnumber ] = i ;\n h -> hintnumber = i ++ ;\n }\n chunkfree ( h -> u . unblended , sizeof ( real [ 2 ] [ MmMax ] ) ) ;\n h -> u . unblended = NULL ;\n }\n max = i ;\n for ( i = 0 ;\n i < max ;\n ++ i ) if ( mapping [ i ] != i ) break ;\n if ( i == max ) return ;\n for ( i = 0 ;\n i < sc -> countermask_cnt ;\n ++ i ) RemapHintMask ( & sc -> countermasks [ i ] , mapping , max ) ;\n for ( spl = sc -> layers [ ly_fore ] . splines ;\n spl != NULL ;\n spl = spl -> next ) {\n for ( sp = spl -> first ;\n ;\n ) {\n RemapHintMask ( sp -> hintmask , mapping , max ) ;\n if ( sp -> next == NULL ) break ;\n sp = sp -> next -> to ;\n if ( sp == spl -> first ) break ;\n }\n }\n }"}
{"idx": 10847, "target": 0, "func": "static krb5_error_code kadm5_copy_principal ( krb5_context context , krb5_const_principal inprinc , krb5_principal * outprinc ) {\n register krb5_principal tempprinc ;\n register int i , nelems ;\n tempprinc = ( krb5_principal ) krb5_db_alloc ( context , NULL , sizeof ( krb5_principal_data ) ) ;\n if ( tempprinc == 0 ) return ENOMEM ;\n VALGRIND_CHECK_DEFINED ( * inprinc ) ;\n * tempprinc = * inprinc ;\n nelems = ( int ) krb5_princ_size ( context , inprinc ) ;\n tempprinc -> data = krb5_db_alloc ( context , NULL , nelems * sizeof ( krb5_data ) ) ;\n if ( tempprinc -> data == 0 ) {\n krb5_db_free ( context , ( char * ) tempprinc ) ;\n return ENOMEM ;\n }\n for ( i = 0 ;\n i < nelems ;\n i ++ ) {\n unsigned int len = krb5_princ_component ( context , inprinc , i ) -> length ;\n krb5_princ_component ( context , tempprinc , i ) -> length = len ;\n if ( ( ( krb5_princ_component ( context , tempprinc , i ) -> data = krb5_db_alloc ( context , NULL , len ) ) == 0 ) && len ) {\n while ( -- i >= 0 ) krb5_db_free ( context , krb5_princ_component ( context , tempprinc , i ) -> data ) ;\n krb5_db_free ( context , tempprinc -> data ) ;\n krb5_db_free ( context , tempprinc ) ;\n return ENOMEM ;\n }\n if ( len ) memcpy ( krb5_princ_component ( context , tempprinc , i ) -> data , krb5_princ_component ( context , inprinc , i ) -> data , len ) ;\n krb5_princ_component ( context , tempprinc , i ) -> magic = KV5M_DATA ;\n }\n tempprinc -> realm . data = krb5_db_alloc ( context , NULL , tempprinc -> realm . length = inprinc -> realm . length ) ;\n if ( ! tempprinc -> realm . data && tempprinc -> realm . length ) {\n for ( i = 0 ;\n i < nelems ;\n i ++ ) krb5_db_free ( context , krb5_princ_component ( context , tempprinc , i ) -> data ) ;\n krb5_db_free ( context , tempprinc -> data ) ;\n krb5_db_free ( context , tempprinc ) ;\n return ENOMEM ;\n }\n if ( tempprinc -> realm . length ) memcpy ( tempprinc -> realm . data , inprinc -> realm . data , inprinc -> realm . length ) ;\n * outprinc = tempprinc ;\n return 0 ;\n }"}
{"idx": 10848, "target": 0, "func": "METHOD ( x509_t , get_authKeyIdentifier , chunk_t , private_x509_cert_t * this ) {\n return this -> authKeyIdentifier ;\n }"}
{"idx": 10849, "target": 0, "func": "int TSActionDone ( TSAction actionp ) {\n return ( ( Action * ) actionp == ACTION_RESULT_DONE ) ? 1 : 0 ;\n }"}
{"idx": 10850, "target": 0, "func": "static void libopenjpeg_copy_to_packed16 ( AVFrame * picture , opj_image_t * image ) {\n uint16_t * img_ptr ;\n int index , x , y , c ;\n int adjust [ 4 ] ;\n for ( x = 0 ;\n x < image -> numcomps ;\n x ++ ) adjust [ x ] = FFMAX ( FFMIN ( 16 - image -> comps [ x ] . prec , 8 ) , 0 ) ;\n for ( y = 0 ;\n y < picture -> height ;\n y ++ ) {\n index = y * picture -> width ;\n img_ptr = ( uint16_t * ) ( picture -> data [ 0 ] + y * picture -> linesize [ 0 ] ) ;\n for ( x = 0 ;\n x < picture -> width ;\n x ++ , index ++ ) {\n for ( c = 0 ;\n c < image -> numcomps ;\n c ++ ) {\n * img_ptr ++ = image -> comps [ c ] . data [ index ] << adjust [ c ] ;\n }\n }\n }\n }"}
{"idx": 10851, "target": 0, "func": "Oid get_element_type ( Oid typid ) {\n HeapTuple tp ;\n tp = SearchSysCache1 ( TYPEOID , ObjectIdGetDatum ( typid ) ) ;\n if ( HeapTupleIsValid ( tp ) ) {\n Form_pg_type typtup = ( Form_pg_type ) GETSTRUCT ( tp ) ;\n Oid result ;\n if ( typtup -> typlen == - 1 ) result = typtup -> typelem ;\n else result = InvalidOid ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }\n else return InvalidOid ;\n }"}
{"idx": 10852, "target": 1, "func": "SPL_METHOD ( SplFileObject , rewind ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n spl_filesystem_file_rewind ( getThis ( ) , intern TSRMLS_CC ) ;\n }"}
{"idx": 10853, "target": 0, "func": "static void get_tile_buffer ( const uint8_t * const data_end , int is_last , struct vpx_internal_error_info * error_info , const uint8_t * * data , vpx_decrypt_cb decrypt_cb , void * decrypt_state , TileBuffer * buf ) {\n size_t size ;\n if ( ! is_last ) {\n if ( ! read_is_valid ( * data , 4 , data_end ) ) vpx_internal_error ( error_info , VPX_CODEC_CORRUPT_FRAME , \"Truncated packet or corrupt tile length\" ) ;\n if ( decrypt_cb ) {\n uint8_t be_data [ 4 ] ;\n decrypt_cb ( decrypt_state , * data , be_data , 4 ) ;\n size = mem_get_be32 ( be_data ) ;\n }\n else {\n size = mem_get_be32 ( * data ) ;\n }\n * data += 4 ;\n if ( size > ( size_t ) ( data_end - * data ) ) vpx_internal_error ( error_info , VPX_CODEC_CORRUPT_FRAME , \"Truncated packet or corrupt tile size\" ) ;\n }\n else {\n size = data_end - * data ;\n }\n buf -> data = * data ;\n buf -> size = size ;\n * data += size ;\n }"}
{"idx": 10854, "target": 0, "func": "static int dissect_pvfs2_common_header ( tvbuff_t * tvb , proto_tree * tree , int offset ) {\n proto_tree_add_item ( tree , hf_pvfs_release_number , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_pvfs_encoding , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_pvfs_server_op , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n return offset ;\n }"}
{"idx": 10855, "target": 0, "func": "static int32_t u_scanf_scanset_handler ( UFILE * input , u_scanf_spec_info * info , ufmt_args * args , const UChar * fmt , int32_t * fmtConsumed , int32_t * argConverted ) {\n USet * scanset ;\n UErrorCode status = U_ZERO_ERROR ;\n int32_t chLeft = INT32_MAX ;\n UChar32 c ;\n UChar * alias = ( UChar * ) ( args [ 0 ] . ptrValue ) ;\n UBool isNotEOF = FALSE ;\n UBool readCharacter = FALSE ;\n scanset = uset_open ( 0 , - 1 ) ;\n fmt -- ;\n if ( info -> fWidth >= 0 ) {\n chLeft = info -> fWidth ;\n }\n * fmtConsumed = uset_applyPattern ( scanset , fmt , - 1 , 0 , & status ) ;\n if ( U_SUCCESS ( status ) ) {\n c = 0 ;\n while ( chLeft > 0 ) {\n if ( ( isNotEOF = ufile_getch32 ( input , & c ) ) && uset_contains ( scanset , c ) ) {\n readCharacter = TRUE ;\n if ( ! info -> fSkipArg ) {\n int32_t idx = 0 ;\n UBool isError = FALSE ;\n U16_APPEND ( alias , idx , chLeft , c , isError ) ;\n if ( isError ) {\n break ;\n }\n alias += idx ;\n }\n chLeft -= ( 1 + U_IS_SUPPLEMENTARY ( c ) ) ;\n }\n else {\n break ;\n }\n }\n if ( isNotEOF && chLeft > 0 ) {\n u_fungetc ( c , input ) ;\n }\n }\n uset_close ( scanset ) ;\n if ( ! readCharacter ) return - 1 ;\n else if ( ! info -> fSkipArg ) {\n * alias = 0x00 ;\n }\n * argConverted = ! info -> fSkipArg ;\n return ( info -> fWidth >= 0 ? info -> fWidth : INT32_MAX ) - chLeft ;\n }"}
{"idx": 10856, "target": 1, "func": "xmlHashTablePtr xmlHashCreate ( int size ) {\n xmlHashTablePtr table ;\n if ( size <= 0 ) size = 256 ;\n table = xmlMalloc ( sizeof ( xmlHashTable ) ) ;\n if ( table ) {\n table -> dict = NULL ;\n table -> size = size ;\n table -> nbElems = 0 ;\n table -> table = xmlMalloc ( size * sizeof ( xmlHashEntry ) ) ;\n if ( table -> table ) {\n memset ( table -> table , 0 , size * sizeof ( xmlHashEntry ) ) ;\n return ( table ) ;\n }\n xmlFree ( table ) ;\n }\n return ( NULL ) ;\n }"}
{"idx": 10857, "target": 0, "func": "static void copy_rules_phase ( apr_pool_t * mp , apr_array_header_t * parent_phase_arr , apr_array_header_t * child_phase_arr , apr_array_header_t * exceptions_arr ) {\n rule_exception * * exceptions ;\n msre_rule * * rules ;\n int i , j ;\n int mode = 0 ;\n rules = ( msre_rule * * ) parent_phase_arr -> elts ;\n for ( i = 0 ;\n i < parent_phase_arr -> nelts ;\n i ++ ) {\n msre_rule * rule = ( msre_rule * ) rules [ i ] ;\n int copy = 1 ;\n if ( mode == 0 ) {\n exceptions = ( rule_exception * * ) exceptions_arr -> elts ;\n for ( j = 0 ;\n j < exceptions_arr -> nelts ;\n j ++ ) {\n switch ( exceptions [ j ] -> type ) {\n case RULE_EXCEPTION_REMOVE_ID : if ( ( rule -> actionset != NULL ) && ( rule -> actionset -> id != NULL ) ) {\n int ruleid = atoi ( rule -> actionset -> id ) ;\n if ( rule_id_in_range ( ruleid , exceptions [ j ] -> param ) ) copy -- ;\n }\n break ;\n case RULE_EXCEPTION_REMOVE_MSG : if ( ( rule -> actionset != NULL ) && ( rule -> actionset -> msg != NULL ) ) {\n char * my_error_msg = NULL ;\n int rc = msc_regexec ( exceptions [ j ] -> param_data , rule -> actionset -> msg , strlen ( rule -> actionset -> msg ) , & my_error_msg ) ;\n if ( rc >= 0 ) copy -- ;\n }\n break ;\n case RULE_EXCEPTION_REMOVE_TAG : if ( ( rule -> actionset != NULL ) && ( apr_is_empty_table ( rule -> actionset -> actions ) == 0 ) ) {\n char * my_error_msg = NULL ;\n const apr_array_header_t * tarr = NULL ;\n const apr_table_entry_t * telts = NULL ;\n int c ;\n tarr = apr_table_elts ( rule -> actionset -> actions ) ;\n telts = ( const apr_table_entry_t * ) tarr -> elts ;\n for ( c = 0 ;\n c < tarr -> nelts ;\n c ++ ) {\n msre_action * action = ( msre_action * ) telts [ c ] . val ;\n if ( strcmp ( \"tag\" , action -> metadata -> name ) == 0 ) {\n int rc = msc_regexec ( exceptions [ j ] -> param_data , action -> param , strlen ( action -> param ) , & my_error_msg ) ;\n if ( rc >= 0 ) copy -- ;\n }\n }\n }\n break ;\n }\n }\n if ( copy > 0 ) {\n # ifdef DEBUG_CONF ap_log_perror ( APLOG_MARK , APLOG_STARTUP | APLOG_NOERRNO , 0 , mp , \"Copy rule %pp [id \\\"%s\\\"]\" , rule , rule -> actionset -> id ) ;\n # endif * ( msre_rule * * ) apr_array_push ( child_phase_arr ) = rule ;\n if ( rule -> actionset -> is_chained ) mode = 2 ;\n }\n else {\n if ( rule -> actionset -> is_chained ) mode = 1 ;\n }\n }\n else {\n if ( mode == 2 ) {\n # ifdef DEBUG_CONF ap_log_perror ( APLOG_MARK , APLOG_STARTUP | APLOG_NOERRNO , 0 , mp , \"Copy chain %pp for rule %pp [id \\\"%s\\\"]\" , rule , rule -> chain_starter , rule -> chain_starter -> actionset -> id ) ;\n # endif * ( msre_rule * * ) apr_array_push ( child_phase_arr ) = rule ;\n }\n if ( ( rule -> actionset == NULL ) || ( rule -> actionset -> is_chained == 0 ) ) mode = 0 ;\n }\n }\n }"}
{"idx": 10858, "target": 0, "func": "static void * Type_ViewingConditions_Read ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number * nItems , cmsUInt32Number SizeOfTag ) {\n cmsICCViewingConditions * vc = NULL ;\n vc = ( cmsICCViewingConditions * ) _cmsMallocZero ( self -> ContextID , sizeof ( cmsICCViewingConditions ) ) ;\n if ( vc == NULL ) return NULL ;\n * nItems = 0 ;\n if ( ! _cmsReadXYZNumber ( io , & vc -> IlluminantXYZ ) ) goto Error ;\n if ( ! _cmsReadXYZNumber ( io , & vc -> SurroundXYZ ) ) goto Error ;\n if ( ! _cmsReadUInt32Number ( io , & vc -> IlluminantType ) ) goto Error ;\n * nItems = 1 ;\n return ( void * ) vc ;\n Error : if ( vc != NULL ) _cmsFree ( self -> ContextID , vc ) ;\n return NULL ;\n cmsUNUSED_PARAMETER ( SizeOfTag ) ;\n }"}
{"idx": 10859, "target": 0, "func": "static int try_grow_upper ( MAIN_WINDOW_REC * window , int count ) {\n MAIN_WINDOW_REC * grow_win ;\n grow_win = mainwindows_find_upper ( window ) ;\n if ( grow_win != NULL ) {\n MAIN_WINDOW_REC * win ;\n GSList * grow_list , * shrink_list , * tmp ;\n grow_list = mainwindows_get_line ( grow_win ) ;\n shrink_list = mainwindows_get_line ( window ) ;\n for ( tmp = grow_list ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n win = tmp -> data ;\n win -> last_line += count ;\n }\n for ( tmp = shrink_list ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n win = tmp -> data ;\n win -> first_line += count ;\n }\n mainwindows_resize_two ( grow_list , shrink_list , count ) ;\n g_slist_free ( shrink_list ) ;\n g_slist_free ( grow_list ) ;\n }\n return grow_win != NULL ;\n }"}
{"idx": 10860, "target": 0, "func": "static bool ohci_eof_timer_needed ( void * opaque ) {\n OHCIState * ohci = opaque ;\n return timer_pending ( ohci -> eof_timer ) ;\n }"}
{"idx": 10861, "target": 0, "func": "static afs_int32 iNewEntry ( struct rx_call * call , char aname [ ] , afs_int32 aid , afs_int32 oid , afs_int32 * cid ) {\n struct ubik_trans * tt ;\n afs_int32 code ;\n afs_int32 gflag = 0 ;\n int admin ;\n stolower ( aname ) ;\n code = Initdb ( ) ;\n if ( code != PRSUCCESS ) return code ;\n code = ubik_BeginTrans ( dbase , UBIK_WRITETRANS , & tt ) ;\n if ( code ) return code ;\n code = ubik_SetLock ( tt , 1 , 1 , LOCKWRITE ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = read_DbHeader ( tt ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = WhoIsThis ( call , tt , cid ) ;\n if ( code ) ABORT_WITH ( tt , PRPERM ) ;\n admin = IsAMemberOf ( tt , * cid , SYSADMINID ) ;\n if ( aid == 0 ) ABORT_WITH ( tt , PRPERM ) ;\n if ( aid < 0 ) {\n gflag |= PRGRP ;\n if ( ! admin && ! pr_noAuth && ( aid != ntohl ( cheader . maxGroup ) - 1 ) ) ABORT_WITH ( tt , PRPERM ) ;\n }\n if ( FindByID ( tt , aid ) ) ABORT_WITH ( tt , PRIDEXIST ) ;\n if ( ! CreateOK ( tt , * cid , oid , gflag , admin ) ) ABORT_WITH ( tt , PRPERM ) ;\n code = CreateEntry ( tt , aname , & aid , 1 , gflag , oid , * cid ) ;\n if ( code != PRSUCCESS ) ABORT_WITH ( tt , code ) ;\n code = ubik_EndTrans ( tt ) ;\n if ( code ) return code ;\n return PRSUCCESS ;\n }"}
{"idx": 10862, "target": 0, "func": "static int proc_disconnect_claim ( struct usb_dev_state * ps , void __user * arg ) {\n struct usbdevfs_disconnect_claim dc ;\n struct usb_interface * intf ;\n if ( copy_from_user ( & dc , arg , sizeof ( dc ) ) ) return - EFAULT ;\n intf = usb_ifnum_to_if ( ps -> dev , dc . interface ) ;\n if ( ! intf ) return - EINVAL ;\n if ( intf -> dev . driver ) {\n struct usb_driver * driver = to_usb_driver ( intf -> dev . driver ) ;\n if ( ps -> privileges_dropped ) return - EACCES ;\n if ( ( dc . flags & USBDEVFS_DISCONNECT_CLAIM_IF_DRIVER ) && strncmp ( dc . driver , intf -> dev . driver -> name , sizeof ( dc . driver ) ) != 0 ) return - EBUSY ;\n if ( ( dc . flags & USBDEVFS_DISCONNECT_CLAIM_EXCEPT_DRIVER ) && strncmp ( dc . driver , intf -> dev . driver -> name , sizeof ( dc . driver ) ) == 0 ) return - EBUSY ;\n dev_dbg ( & intf -> dev , \"disconnect by usbfs\\n\" ) ;\n usb_driver_release_interface ( driver , intf ) ;\n }\n return claimintf ( ps , dc . interface ) ;\n }"}
{"idx": 10863, "target": 0, "func": "int ntpqmain ( int argc , char * argv [ ] ) {\n u_int ihost ;\n int icmd ;\n # ifdef SYS_VXWORKS clear_globals ( ) ;\n taskPrioritySet ( taskIdSelf ( ) , 100 ) ;\n # endif delay_time . l_ui = 0 ;\n delay_time . l_uf = DEFDELAY ;\n init_lib ( ) ;\n ssl_applink ( ) ;\n init_auth ( ) ;\n if ( ! ipv6_works ) ai_fam_default = AF_INET ;\n {\n char * list ;\n char * msg , * fmt ;\n list = list_digest_names ( ) ;\n for ( icmd = 0 ;\n icmd < sizeof ( builtins ) / sizeof ( builtins [ 0 ] ) ;\n icmd ++ ) {\n if ( strcmp ( \"keytype\" , builtins [ icmd ] . keyword ) == 0 ) break ;\n }\n INSIST ( icmd < sizeof ( builtins ) / sizeof ( builtins [ 0 ] ) ) ;\n # ifdef OPENSSL builtins [ icmd ] . desc [ 0 ] = \"digest-name\" ;\n fmt = \"set key type to use for authenticated requests, one of:%s\" ;\n # else builtins [ icmd ] . desc [ 0 ] = \"md5\" ;\n fmt = \"set key type to use for authenticated requests (%s)\" ;\n # endif msg = emalloc ( strlen ( fmt ) + strlen ( list ) - strlen ( \"%s\" ) + 1 ) ;\n sprintf ( msg , fmt , list ) ;\n builtins [ icmd ] . comment = msg ;\n free ( list ) ;\n }\n progname = argv [ 0 ] ;\n {\n int optct = ntpOptionProcess ( & ntpqOptions , argc , argv ) ;\n argc -= optct ;\n argv += optct ;\n }\n debug = OPT_VALUE_SET_DEBUG_LEVEL ;\n if ( HAVE_OPT ( IPV4 ) ) ai_fam_templ = AF_INET ;\n else if ( HAVE_OPT ( IPV6 ) ) ai_fam_templ = AF_INET6 ;\n else ai_fam_templ = ai_fam_default ;\n if ( HAVE_OPT ( INTERACTIVE ) ) interactive = 1 ;\n if ( HAVE_OPT ( NUMERIC ) ) showhostnames = 0 ;\n if ( HAVE_OPT ( WIDE ) ) wideremote = 1 ;\n old_rv = HAVE_OPT ( OLD_RV ) ;\n if ( 0 == argc ) {\n ADDHOST ( DEFHOST ) ;\n }\n else {\n for ( ihost = 0 ;\n ihost < ( u_int ) argc ;\n ihost ++ ) {\n if ( '-' == * argv [ ihost ] ) {\n if ( '4' == argv [ ihost ] [ 1 ] ) {\n ai_fam_templ = AF_INET ;\n continue ;\n }\n else if ( '6' == argv [ ihost ] [ 1 ] ) {\n ai_fam_templ = AF_INET6 ;\n continue ;\n }\n else {\n }\n }\n ADDHOST ( argv [ ihost ] ) ;\n }\n }\n if ( numcmds == 0 && interactive == 0 && isatty ( fileno ( stdin ) ) && isatty ( fileno ( stderr ) ) ) {\n interactive = 1 ;\n }\n # ifndef SYS_WINNT if ( interactive ) ( void ) signal_no_reset ( SIGINT , abortcmd ) ;\n # endif if ( numcmds == 0 ) {\n ( void ) openhost ( chosts [ 0 ] . name , chosts [ 0 ] . fam ) ;\n getcmds ( ) ;\n }\n else {\n for ( ihost = 0 ;\n ihost < numhosts ;\n ihost ++ ) {\n if ( openhost ( chosts [ ihost ] . name , chosts [ ihost ] . fam ) ) for ( icmd = 0 ;\n icmd < numcmds ;\n icmd ++ ) docmd ( ccmds [ icmd ] ) ;\n }\n }\n # ifdef SYS_WINNT WSACleanup ( ) ;\n # endif return 0 ;\n }"}
{"idx": 10864, "target": 0, "func": "void btcostestimate ( PlannerInfo * root , IndexPath * path , double loop_count , Cost * indexStartupCost , Cost * indexTotalCost , Selectivity * indexSelectivity , double * indexCorrelation ) {\n IndexOptInfo * index = path -> indexinfo ;\n List * qinfos ;\n GenericCosts costs ;\n Oid relid ;\n AttrNumber colnum ;\n VariableStatData vardata ;\n double numIndexTuples ;\n Cost descentCost ;\n List * indexBoundQuals ;\n int indexcol ;\n bool eqQualHere ;\n bool found_saop ;\n bool found_is_null_op ;\n double num_sa_scans ;\n ListCell * lc ;\n qinfos = deconstruct_indexquals ( path ) ;\n indexBoundQuals = NIL ;\n indexcol = 0 ;\n eqQualHere = false ;\n found_saop = false ;\n found_is_null_op = false ;\n num_sa_scans = 1 ;\n foreach ( lc , qinfos ) {\n IndexQualInfo * qinfo = ( IndexQualInfo * ) lfirst ( lc ) ;\n RestrictInfo * rinfo = qinfo -> rinfo ;\n Expr * clause = rinfo -> clause ;\n Oid clause_op ;\n int op_strategy ;\n if ( indexcol != qinfo -> indexcol ) {\n if ( ! eqQualHere ) break ;\n eqQualHere = false ;\n indexcol ++ ;\n if ( indexcol != qinfo -> indexcol ) break ;\n }\n if ( IsA ( clause , ScalarArrayOpExpr ) ) {\n int alength = estimate_array_length ( qinfo -> other_operand ) ;\n found_saop = true ;\n if ( alength > 1 ) num_sa_scans *= alength ;\n }\n else if ( IsA ( clause , NullTest ) ) {\n NullTest * nt = ( NullTest * ) clause ;\n if ( nt -> nulltesttype == IS_NULL ) {\n found_is_null_op = true ;\n eqQualHere = true ;\n }\n }\n clause_op = qinfo -> clause_op ;\n if ( OidIsValid ( clause_op ) ) {\n op_strategy = get_op_opfamily_strategy ( clause_op , index -> opfamily [ indexcol ] ) ;\n Assert ( op_strategy != 0 ) ;\n if ( op_strategy == BTEqualStrategyNumber ) eqQualHere = true ;\n }\n indexBoundQuals = lappend ( indexBoundQuals , rinfo ) ;\n }\n if ( index -> unique && indexcol == index -> ncolumns - 1 && eqQualHere && ! found_saop && ! found_is_null_op ) numIndexTuples = 1.0 ;\n else {\n List * selectivityQuals ;\n Selectivity btreeSelectivity ;\n selectivityQuals = add_predicate_to_quals ( index , indexBoundQuals ) ;\n btreeSelectivity = clauselist_selectivity ( root , selectivityQuals , index -> rel -> relid , JOIN_INNER , NULL ) ;\n numIndexTuples = btreeSelectivity * index -> rel -> tuples ;\n numIndexTuples = rint ( numIndexTuples / num_sa_scans ) ;\n }\n MemSet ( & costs , 0 , sizeof ( costs ) ) ;\n costs . numIndexTuples = numIndexTuples ;\n genericcostestimate ( root , path , loop_count , qinfos , & costs ) ;\n if ( index -> tuples > 1 ) {\n descentCost = ceil ( log ( index -> tuples ) / log ( 2.0 ) ) * cpu_operator_cost ;\n costs . indexStartupCost += descentCost ;\n costs . indexTotalCost += costs . num_sa_scans * descentCost ;\n }\n descentCost = ( index -> tree_height + 1 ) * 50.0 * cpu_operator_cost ;\n costs . indexStartupCost += descentCost ;\n costs . indexTotalCost += costs . num_sa_scans * descentCost ;\n MemSet ( & vardata , 0 , sizeof ( vardata ) ) ;\n if ( index -> indexkeys [ 0 ] != 0 ) {\n RangeTblEntry * rte = planner_rt_fetch ( index -> rel -> relid , root ) ;\n Assert ( rte -> rtekind == RTE_RELATION ) ;\n relid = rte -> relid ;\n Assert ( relid != InvalidOid ) ;\n colnum = index -> indexkeys [ 0 ] ;\n if ( get_relation_stats_hook && ( * get_relation_stats_hook ) ( root , rte , colnum , & vardata ) ) {\n if ( HeapTupleIsValid ( vardata . statsTuple ) && ! vardata . freefunc ) elog ( ERROR , \"no function provided to release variable stats with\" ) ;\n }\n else {\n vardata . statsTuple = SearchSysCache3 ( STATRELATTINH , ObjectIdGetDatum ( relid ) , Int16GetDatum ( colnum ) , BoolGetDatum ( rte -> inh ) ) ;\n vardata . freefunc = ReleaseSysCache ;\n }\n }\n else {\n relid = index -> indexoid ;\n colnum = 1 ;\n if ( get_index_stats_hook && ( * get_index_stats_hook ) ( root , relid , colnum , & vardata ) ) {\n if ( HeapTupleIsValid ( vardata . statsTuple ) && ! vardata . freefunc ) elog ( ERROR , \"no function provided to release variable stats with\" ) ;\n }\n else {\n vardata . statsTuple = SearchSysCache3 ( STATRELATTINH , ObjectIdGetDatum ( relid ) , Int16GetDatum ( colnum ) , BoolGetDatum ( false ) ) ;\n vardata . freefunc = ReleaseSysCache ;\n }\n }\n if ( HeapTupleIsValid ( vardata . statsTuple ) ) {\n Oid sortop ;\n float4 * numbers ;\n int nnumbers ;\n sortop = get_opfamily_member ( index -> opfamily [ 0 ] , index -> opcintype [ 0 ] , index -> opcintype [ 0 ] , BTLessStrategyNumber ) ;\n if ( OidIsValid ( sortop ) && get_attstatsslot ( vardata . statsTuple , InvalidOid , 0 , STATISTIC_KIND_CORRELATION , sortop , NULL , NULL , NULL , & numbers , & nnumbers ) ) {\n double varCorrelation ;\n Assert ( nnumbers == 1 ) ;\n varCorrelation = numbers [ 0 ] ;\n if ( index -> reverse_sort [ 0 ] ) varCorrelation = - varCorrelation ;\n if ( index -> ncolumns > 1 ) costs . indexCorrelation = varCorrelation * 0.75 ;\n else costs . indexCorrelation = varCorrelation ;\n free_attstatsslot ( InvalidOid , NULL , 0 , numbers , nnumbers ) ;\n }\n }\n ReleaseVariableStats ( vardata ) ;\n * indexStartupCost = costs . indexStartupCost ;\n * indexTotalCost = costs . indexTotalCost ;\n * indexSelectivity = costs . indexSelectivity ;\n * indexCorrelation = costs . indexCorrelation ;\n }"}
{"idx": 10865, "target": 0, "func": "GSList * mainwindows_get_line ( MAIN_WINDOW_REC * rec ) {\n MAIN_WINDOW_REC * win ;\n GSList * list ;\n list = NULL ;\n for ( win = mainwindows_find_left ( rec , FALSE ) ;\n win != NULL ;\n win = mainwindows_find_left ( win , FALSE ) ) {\n list = g_slist_append ( list , win ) ;\n }\n if ( rec != NULL ) list = g_slist_append ( list , rec ) ;\n for ( win = mainwindows_find_right ( rec , FALSE ) ;\n win != NULL ;\n win = mainwindows_find_right ( win , FALSE ) ) {\n list = g_slist_append ( list , win ) ;\n }\n return list ;\n }"}
{"idx": 10866, "target": 0, "func": "static void pdf_run_Tz ( fz_context * ctx , pdf_processor * proc , float scale ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_gstate * gstate = pr -> gstate + pr -> gtop ;\n gstate -> text . scale = scale / 100 ;\n }"}
{"idx": 10867, "target": 0, "func": "static VALUE ossl_x509name_to_s ( int argc , VALUE * argv , VALUE self ) {\n X509_NAME * name ;\n VALUE flag , str ;\n BIO * out ;\n unsigned long iflag ;\n rb_scan_args ( argc , argv , \"01\" , & flag ) ;\n if ( NIL_P ( flag ) ) return ossl_x509name_to_s_old ( self ) ;\n else iflag = NUM2ULONG ( flag ) ;\n if ( ! ( out = BIO_new ( BIO_s_mem ( ) ) ) ) ossl_raise ( eX509NameError , NULL ) ;\n GetX509Name ( self , name ) ;\n if ( ! X509_NAME_print_ex ( out , name , 0 , iflag ) ) {\n BIO_free ( out ) ;\n ossl_raise ( eX509NameError , NULL ) ;\n }\n str = ossl_membio2str ( out ) ;\n return str ;\n }"}
{"idx": 10868, "target": 0, "func": "static int ac3_parse_header ( AC3DecodeContext * s ) {\n GetBitContext * gbc = & s -> gbc ;\n int i ;\n i = ! s -> channel_mode ;\n do {\n skip_bits ( gbc , 5 ) ;\n if ( get_bits1 ( gbc ) ) skip_bits ( gbc , 8 ) ;\n if ( get_bits1 ( gbc ) ) skip_bits ( gbc , 8 ) ;\n if ( get_bits1 ( gbc ) ) skip_bits ( gbc , 7 ) ;\n }\n while ( i -- ) ;\n skip_bits ( gbc , 2 ) ;\n if ( get_bits1 ( gbc ) ) skip_bits ( gbc , 14 ) ;\n if ( get_bits1 ( gbc ) ) skip_bits ( gbc , 14 ) ;\n if ( get_bits1 ( gbc ) ) {\n i = get_bits ( gbc , 6 ) ;\n do {\n skip_bits ( gbc , 8 ) ;\n }\n while ( i -- ) ;\n }\n return 0 ;\n }"}
{"idx": 10869, "target": 0, "func": "METHOD ( certificate_t , issued_by , bool , private_x509_cert_t * this , certificate_t * issuer , signature_scheme_t * schemep ) {\n public_key_t * key ;\n signature_scheme_t scheme ;\n bool valid ;\n x509_t * x509 = ( x509_t * ) issuer ;\n if ( & this -> public . interface . interface == issuer ) {\n if ( this -> flags & X509_SELF_SIGNED ) {\n return TRUE ;\n }\n }\n else {\n if ( issuer -> get_type ( issuer ) != CERT_X509 ) {\n return FALSE ;\n }\n if ( ! ( x509 -> get_flags ( x509 ) & X509_CA ) ) {\n return FALSE ;\n }\n }\n if ( ! this -> issuer -> equals ( this -> issuer , issuer -> get_subject ( issuer ) ) ) {\n return FALSE ;\n }\n scheme = signature_scheme_from_oid ( this -> algorithm ) ;\n if ( scheme == SIGN_UNKNOWN ) {\n return FALSE ;\n }\n key = issuer -> get_public_key ( issuer ) ;\n if ( ! key ) {\n return FALSE ;\n }\n valid = key -> verify ( key , scheme , this -> tbsCertificate , this -> signature ) ;\n key -> destroy ( key ) ;\n if ( valid && schemep ) {\n * schemep = scheme ;\n }\n return valid ;\n }"}
{"idx": 10870, "target": 0, "func": "static CURLFORMcode FormAdd ( struct curl_httppost * * httppost , struct curl_httppost * * last_post , va_list params ) {\n FormInfo * first_form , * current_form , * form = NULL ;\n CURLFORMcode return_value = CURL_FORMADD_OK ;\n const char * prevtype = NULL ;\n struct curl_httppost * post = NULL ;\n CURLformoption option ;\n struct curl_forms * forms = NULL ;\n char * array_value = NULL ;\n bool array_state = FALSE ;\n first_form = calloc ( 1 , sizeof ( struct FormInfo ) ) ;\n if ( ! first_form ) return CURL_FORMADD_MEMORY ;\n current_form = first_form ;\n while ( return_value == CURL_FORMADD_OK ) {\n if ( array_state && forms ) {\n option = forms -> option ;\n array_value = ( char * ) forms -> value ;\n forms ++ ;\n if ( CURLFORM_END == option ) {\n array_state = FALSE ;\n continue ;\n }\n }\n else {\n option = va_arg ( params , CURLformoption ) ;\n if ( CURLFORM_END == option ) break ;\n }\n switch ( option ) {\n case CURLFORM_ARRAY : if ( array_state ) return_value = CURL_FORMADD_ILLEGAL_ARRAY ;\n else {\n forms = va_arg ( params , struct curl_forms * ) ;\n if ( forms ) array_state = TRUE ;\n else return_value = CURL_FORMADD_NULL ;\n }\n break ;\n case CURLFORM_PTRNAME : # ifdef CURL_DOES_CONVERSIONS # else current_form -> flags |= HTTPPOST_PTRNAME ;\n # endif case CURLFORM_COPYNAME : if ( current_form -> name ) return_value = CURL_FORMADD_OPTION_TWICE ;\n else {\n char * name = array_state ? array_value : va_arg ( params , char * ) ;\n if ( name ) current_form -> name = name ;\n else return_value = CURL_FORMADD_NULL ;\n }\n break ;\n case CURLFORM_NAMELENGTH : if ( current_form -> namelength ) return_value = CURL_FORMADD_OPTION_TWICE ;\n else current_form -> namelength = array_state ? ( size_t ) array_value : ( size_t ) va_arg ( params , long ) ;\n break ;\n case CURLFORM_PTRCONTENTS : current_form -> flags |= HTTPPOST_PTRCONTENTS ;\n case CURLFORM_COPYCONTENTS : if ( current_form -> value ) return_value = CURL_FORMADD_OPTION_TWICE ;\n else {\n char * value = array_state ? array_value : va_arg ( params , char * ) ;\n if ( value ) current_form -> value = value ;\n else return_value = CURL_FORMADD_NULL ;\n }\n break ;\n case CURLFORM_CONTENTSLENGTH : if ( current_form -> contentslength ) return_value = CURL_FORMADD_OPTION_TWICE ;\n else current_form -> contentslength = array_state ? ( size_t ) array_value : ( size_t ) va_arg ( params , long ) ;\n break ;\n case CURLFORM_FILECONTENT : if ( current_form -> flags & ( HTTPPOST_PTRCONTENTS | HTTPPOST_READFILE ) ) return_value = CURL_FORMADD_OPTION_TWICE ;\n else {\n const char * filename = array_state ? array_value : va_arg ( params , char * ) ;\n if ( filename ) {\n current_form -> value = strdup ( filename ) ;\n if ( ! current_form -> value ) return_value = CURL_FORMADD_MEMORY ;\n else {\n current_form -> flags |= HTTPPOST_READFILE ;\n current_form -> value_alloc = TRUE ;\n }\n }\n else return_value = CURL_FORMADD_NULL ;\n }\n break ;\n case CURLFORM_FILE : {\n const char * filename = array_state ? array_value : va_arg ( params , char * ) ;\n if ( current_form -> value ) {\n if ( current_form -> flags & HTTPPOST_FILENAME ) {\n if ( filename ) {\n char * fname = strdup ( filename ) ;\n if ( ! fname ) return_value = CURL_FORMADD_MEMORY ;\n else {\n form = AddFormInfo ( fname , NULL , current_form ) ;\n if ( ! form ) {\n Curl_safefree ( fname ) ;\n return_value = CURL_FORMADD_MEMORY ;\n }\n else {\n form -> value_alloc = TRUE ;\n current_form = form ;\n form = NULL ;\n }\n }\n }\n else return_value = CURL_FORMADD_NULL ;\n }\n else return_value = CURL_FORMADD_OPTION_TWICE ;\n }\n else {\n if ( filename ) {\n current_form -> value = strdup ( filename ) ;\n if ( ! current_form -> value ) return_value = CURL_FORMADD_MEMORY ;\n else {\n current_form -> flags |= HTTPPOST_FILENAME ;\n current_form -> value_alloc = TRUE ;\n }\n }\n else return_value = CURL_FORMADD_NULL ;\n }\n break ;\n }\n case CURLFORM_BUFFERPTR : current_form -> flags |= HTTPPOST_PTRBUFFER | HTTPPOST_BUFFER ;\n if ( current_form -> buffer ) return_value = CURL_FORMADD_OPTION_TWICE ;\n else {\n char * buffer = array_state ? array_value : va_arg ( params , char * ) ;\n if ( buffer ) {\n current_form -> buffer = buffer ;\n current_form -> value = buffer ;\n }\n else return_value = CURL_FORMADD_NULL ;\n }\n break ;\n case CURLFORM_BUFFERLENGTH : if ( current_form -> bufferlength ) return_value = CURL_FORMADD_OPTION_TWICE ;\n else current_form -> bufferlength = array_state ? ( size_t ) array_value : ( size_t ) va_arg ( params , long ) ;\n break ;\n case CURLFORM_STREAM : current_form -> flags |= HTTPPOST_CALLBACK ;\n if ( current_form -> userp ) return_value = CURL_FORMADD_OPTION_TWICE ;\n else {\n char * userp = array_state ? array_value : va_arg ( params , char * ) ;\n if ( userp ) {\n current_form -> userp = userp ;\n current_form -> value = userp ;\n }\n else return_value = CURL_FORMADD_NULL ;\n }\n break ;\n case CURLFORM_CONTENTTYPE : {\n const char * contenttype = array_state ? array_value : va_arg ( params , char * ) ;\n if ( current_form -> contenttype ) {\n if ( current_form -> flags & HTTPPOST_FILENAME ) {\n if ( contenttype ) {\n char * type = strdup ( contenttype ) ;\n if ( ! type ) return_value = CURL_FORMADD_MEMORY ;\n else {\n form = AddFormInfo ( NULL , type , current_form ) ;\n if ( ! form ) {\n Curl_safefree ( type ) ;\n return_value = CURL_FORMADD_MEMORY ;\n }\n else {\n form -> contenttype_alloc = TRUE ;\n current_form = form ;\n form = NULL ;\n }\n }\n }\n else return_value = CURL_FORMADD_NULL ;\n }\n else return_value = CURL_FORMADD_OPTION_TWICE ;\n }\n else {\n if ( contenttype ) {\n current_form -> contenttype = strdup ( contenttype ) ;\n if ( ! current_form -> contenttype ) return_value = CURL_FORMADD_MEMORY ;\n else current_form -> contenttype_alloc = TRUE ;\n }\n else return_value = CURL_FORMADD_NULL ;\n }\n break ;\n }\n case CURLFORM_CONTENTHEADER : {\n struct curl_slist * list = array_state ? ( struct curl_slist * ) array_value : va_arg ( params , struct curl_slist * ) ;\n if ( current_form -> contentheader ) return_value = CURL_FORMADD_OPTION_TWICE ;\n else current_form -> contentheader = list ;\n break ;\n }\n case CURLFORM_FILENAME : case CURLFORM_BUFFER : {\n const char * filename = array_state ? array_value : va_arg ( params , char * ) ;\n if ( current_form -> showfilename ) return_value = CURL_FORMADD_OPTION_TWICE ;\n else {\n current_form -> showfilename = strdup ( filename ) ;\n if ( ! current_form -> showfilename ) return_value = CURL_FORMADD_MEMORY ;\n else current_form -> showfilename_alloc = TRUE ;\n }\n break ;\n }\n default : return_value = CURL_FORMADD_UNKNOWN_OPTION ;\n break ;\n }\n }\n if ( CURL_FORMADD_OK != return_value ) {\n FormInfo * ptr ;\n for ( ptr = first_form ;\n ptr != NULL ;\n ptr = ptr -> more ) {\n if ( ptr -> name_alloc ) {\n Curl_safefree ( ptr -> name ) ;\n ptr -> name_alloc = FALSE ;\n }\n if ( ptr -> value_alloc ) {\n Curl_safefree ( ptr -> value ) ;\n ptr -> value_alloc = FALSE ;\n }\n if ( ptr -> contenttype_alloc ) {\n Curl_safefree ( ptr -> contenttype ) ;\n ptr -> contenttype_alloc = FALSE ;\n }\n if ( ptr -> showfilename_alloc ) {\n Curl_safefree ( ptr -> showfilename ) ;\n ptr -> showfilename_alloc = FALSE ;\n }\n }\n }\n if ( CURL_FORMADD_OK == return_value ) {\n post = NULL ;\n for ( form = first_form ;\n form != NULL ;\n form = form -> more ) {\n if ( ( ( ! form -> name || ! form -> value ) && ! post ) || ( ( form -> contentslength ) && ( form -> flags & HTTPPOST_FILENAME ) ) || ( ( form -> flags & HTTPPOST_FILENAME ) && ( form -> flags & HTTPPOST_PTRCONTENTS ) ) || ( ( ! form -> buffer ) && ( form -> flags & HTTPPOST_BUFFER ) && ( form -> flags & HTTPPOST_PTRBUFFER ) ) || ( ( form -> flags & HTTPPOST_READFILE ) && ( form -> flags & HTTPPOST_PTRCONTENTS ) ) ) {\n return_value = CURL_FORMADD_INCOMPLETE ;\n break ;\n }\n else {\n if ( ( ( form -> flags & HTTPPOST_FILENAME ) || ( form -> flags & HTTPPOST_BUFFER ) ) && ! form -> contenttype ) {\n char * f = form -> flags & HTTPPOST_BUFFER ? form -> showfilename : form -> value ;\n form -> contenttype = strdup ( ContentTypeForFilename ( f , prevtype ) ) ;\n if ( ! form -> contenttype ) {\n return_value = CURL_FORMADD_MEMORY ;\n break ;\n }\n form -> contenttype_alloc = TRUE ;\n }\n if ( ! ( form -> flags & HTTPPOST_PTRNAME ) && ( form == first_form ) ) {\n if ( form -> name ) {\n form -> name = Curl_memdup ( form -> name , form -> namelength ? form -> namelength : strlen ( form -> name ) + 1 ) ;\n }\n if ( ! form -> name ) {\n return_value = CURL_FORMADD_MEMORY ;\n break ;\n }\n form -> name_alloc = TRUE ;\n }\n if ( ! ( form -> flags & ( HTTPPOST_FILENAME | HTTPPOST_READFILE | HTTPPOST_PTRCONTENTS | HTTPPOST_PTRBUFFER | HTTPPOST_CALLBACK ) ) && form -> value ) {\n form -> value = Curl_memdup ( form -> value , form -> contentslength ? form -> contentslength : strlen ( form -> value ) + 1 ) ;\n if ( ! form -> value ) {\n return_value = CURL_FORMADD_MEMORY ;\n break ;\n }\n form -> value_alloc = TRUE ;\n }\n post = AddHttpPost ( form -> name , form -> namelength , form -> value , form -> contentslength , form -> buffer , form -> bufferlength , form -> contenttype , form -> flags , form -> contentheader , form -> showfilename , form -> userp , post , httppost , last_post ) ;\n if ( ! post ) {\n return_value = CURL_FORMADD_MEMORY ;\n break ;\n }\n if ( form -> contenttype ) prevtype = form -> contenttype ;\n }\n }\n if ( CURL_FORMADD_OK != return_value ) {\n FormInfo * ptr ;\n for ( ptr = form ;\n ptr != NULL ;\n ptr = ptr -> more ) {\n if ( ptr -> name_alloc ) {\n Curl_safefree ( ptr -> name ) ;\n ptr -> name_alloc = FALSE ;\n }\n if ( ptr -> value_alloc ) {\n Curl_safefree ( ptr -> value ) ;\n ptr -> value_alloc = FALSE ;\n }\n if ( ptr -> contenttype_alloc ) {\n Curl_safefree ( ptr -> contenttype ) ;\n ptr -> contenttype_alloc = FALSE ;\n }\n if ( ptr -> showfilename_alloc ) {\n Curl_safefree ( ptr -> showfilename ) ;\n ptr -> showfilename_alloc = FALSE ;\n }\n }\n }\n }\n while ( first_form ) {\n FormInfo * ptr = first_form -> more ;\n Curl_safefree ( first_form ) ;\n first_form = ptr ;\n }\n return return_value ;\n }"}
{"idx": 10871, "target": 0, "func": "static void virtio_ioport_write ( void * opaque , uint32_t addr , uint32_t val ) {\n VirtIOPCIProxy * proxy = opaque ;\n VirtIODevice * vdev = proxy -> vdev ;\n target_phys_addr_t pa ;\n switch ( addr ) {\n case VIRTIO_PCI_GUEST_FEATURES : if ( val & ( 1 << VIRTIO_F_BAD_FEATURE ) ) {\n if ( vdev -> bad_features ) val = proxy -> host_features & vdev -> bad_features ( vdev ) ;\n else val = 0 ;\n }\n if ( vdev -> set_features ) vdev -> set_features ( vdev , val ) ;\n vdev -> guest_features = val ;\n break ;\n case VIRTIO_PCI_QUEUE_PFN : pa = ( target_phys_addr_t ) val << VIRTIO_PCI_QUEUE_ADDR_SHIFT ;\n if ( pa == 0 ) {\n virtio_reset ( proxy -> vdev ) ;\n msix_unuse_all_vectors ( & proxy -> pci_dev ) ;\n }\n else virtio_queue_set_addr ( vdev , vdev -> queue_sel , pa ) ;\n break ;\n case VIRTIO_PCI_QUEUE_SEL : if ( val < VIRTIO_PCI_QUEUE_MAX ) vdev -> queue_sel = val ;\n break ;\n case VIRTIO_PCI_QUEUE_NOTIFY : virtio_queue_notify ( vdev , val ) ;\n break ;\n case VIRTIO_PCI_STATUS : vdev -> status = val & 0xFF ;\n if ( vdev -> status == 0 ) {\n virtio_reset ( proxy -> vdev ) ;\n msix_unuse_all_vectors ( & proxy -> pci_dev ) ;\n }\n break ;\n case VIRTIO_MSI_CONFIG_VECTOR : msix_vector_unuse ( & proxy -> pci_dev , vdev -> config_vector ) ;\n if ( msix_vector_use ( & proxy -> pci_dev , val ) < 0 ) val = VIRTIO_NO_VECTOR ;\n vdev -> config_vector = val ;\n break ;\n case VIRTIO_MSI_QUEUE_VECTOR : msix_vector_unuse ( & proxy -> pci_dev , virtio_queue_vector ( vdev , vdev -> queue_sel ) ) ;\n if ( msix_vector_use ( & proxy -> pci_dev , val ) < 0 ) val = VIRTIO_NO_VECTOR ;\n virtio_queue_set_vector ( vdev , vdev -> queue_sel , val ) ;\n break ;\n default : fprintf ( stderr , \"%s: unexpected address 0x%x value 0x%x\\n\" , __func__ , addr , val ) ;\n break ;\n }\n }"}
{"idx": 10872, "target": 0, "func": "static void ohci_roothub_reset ( OHCIState * ohci ) {\n OHCIPort * port ;\n int i ;\n ohci_bus_stop ( ohci ) ;\n ohci -> rhdesc_a = OHCI_RHA_NPS | ohci -> num_ports ;\n ohci -> rhdesc_b = 0x0 ;\n ohci -> rhstatus = 0 ;\n for ( i = 0 ;\n i < ohci -> num_ports ;\n i ++ ) {\n port = & ohci -> rhport [ i ] ;\n port -> ctrl = 0 ;\n if ( port -> port . dev && port -> port . dev -> attached ) {\n usb_port_reset ( & port -> port ) ;\n }\n }\n if ( ohci -> async_td ) {\n usb_cancel_packet ( & ohci -> usb_packet ) ;\n ohci -> async_td = 0 ;\n }\n ohci_stop_endpoints ( ohci ) ;\n }"}
{"idx": 10873, "target": 0, "func": "static unsigned int hb_ucdn_eastasian_width ( hb_unicode_funcs_t * ufuncs , hb_codepoint_t unicode , void * user_data HB_UNUSED ) {\n int w = ucdn_get_east_asian_width ( unicode ) ;\n return ( w == UCDN_EAST_ASIAN_F || w == UCDN_EAST_ASIAN_W ) ? 2 : 1 ;\n }"}
{"idx": 10874, "target": 0, "func": "static __inline__ int TLV_OK ( const void * tlv , __u16 space ) {\n return ( space >= TLV_SPACE ( 0 ) ) && ( ntohs ( ( ( struct tlv_desc * ) tlv ) -> tlv_len ) <= space ) ;\n }"}
{"idx": 10875, "target": 0, "func": "static int dissect_mswsp_smb ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n smb_info_t * si = ( smb_info_t * ) data ;\n gboolean in = si -> request ;\n smb_fid_info_t * fid_info = NULL ;\n fid_info = find_fid_info ( si ) ;\n if ( ! fid_info || ! fid_info -> fsi || ! fid_info -> fsi -> filename ) {\n return 0 ;\n }\n if ( g_ascii_strcasecmp ( fid_info -> fsi -> filename , \"\\\\MsFteWds\" ) != 0 ) {\n return 0 ;\n }\n p_add_proto_data ( wmem_file_scope ( ) , pinfo , proto_mswsp , 0 , ( void * ) & SMB1 ) ;\n return dissect_mswsp ( tvb , pinfo , tree , in , data ) ;\n }"}
{"idx": 10876, "target": 0, "func": "static vpx_codec_err_t ctrl_set_enable_auto_alt_ref ( vpx_codec_alg_priv_t * ctx , va_list args ) {\n struct vp9_extracfg extra_cfg = ctx -> extra_cfg ;\n extra_cfg . enable_auto_alt_ref = CAST ( VP8E_SET_ENABLEAUTOALTREF , args ) ;\n return update_extra_cfg ( ctx , & extra_cfg ) ;\n }"}
{"idx": 10877, "target": 0, "func": "static void http_skip_ws ( const char * & buf , int & len ) {\n while ( len > 0 && * buf && ParseRules : : is_ws ( * buf ) ) {\n buf += 1 ;\n len -= 1 ;\n }\n }"}
{"idx": 10878, "target": 0, "func": "static void vga_draw_line2d2 ( VGACommonState * vga , uint8_t * d , uint32_t addr , int width ) {\n uint32_t plane_mask , * palette , data , v ;\n int x ;\n palette = vga -> last_palette ;\n plane_mask = mask16 [ vga -> ar [ VGA_ATC_PLANE_ENABLE ] & 0xf ] ;\n width >>= 3 ;\n for ( x = 0 ;\n x < width ;\n x ++ ) {\n data = vga_read_dword_le ( vga , addr ) ;\n data &= plane_mask ;\n v = expand2 [ GET_PLANE ( data , 0 ) ] ;\n v |= expand2 [ GET_PLANE ( data , 2 ) ] << 2 ;\n PUT_PIXEL2 ( d , 0 , palette [ v >> 12 ] ) ;\n PUT_PIXEL2 ( d , 1 , palette [ ( v >> 8 ) & 0xf ] ) ;\n PUT_PIXEL2 ( d , 2 , palette [ ( v >> 4 ) & 0xf ] ) ;\n PUT_PIXEL2 ( d , 3 , palette [ ( v >> 0 ) & 0xf ] ) ;\n v = expand2 [ GET_PLANE ( data , 1 ) ] ;\n v |= expand2 [ GET_PLANE ( data , 3 ) ] << 2 ;\n PUT_PIXEL2 ( d , 4 , palette [ v >> 12 ] ) ;\n PUT_PIXEL2 ( d , 5 , palette [ ( v >> 8 ) & 0xf ] ) ;\n PUT_PIXEL2 ( d , 6 , palette [ ( v >> 4 ) & 0xf ] ) ;\n PUT_PIXEL2 ( d , 7 , palette [ ( v >> 0 ) & 0xf ] ) ;\n d += 64 ;\n addr += 4 ;\n }\n }"}
{"idx": 10879, "target": 0, "func": "int chk_data_link ( MI_CHECK * param , MI_INFO * info , int extend ) {\n int error , got_error , flag ;\n uint key , UNINIT_VAR ( left_length ) , b_type , field ;\n ha_rows records , del_blocks ;\n my_off_t used , empty , pos , splits , UNINIT_VAR ( start_recpos ) , del_length , link_used , start_block ;\n uchar * record = 0 , * UNINIT_VAR ( to ) ;\n char llbuff [ 22 ] , llbuff2 [ 22 ] , llbuff3 [ 22 ] ;\n ha_checksum intern_record_checksum ;\n ha_checksum key_checksum [ HA_MAX_POSSIBLE_KEY ] ;\n my_bool static_row_size ;\n MI_KEYDEF * keyinfo ;\n MI_BLOCK_INFO block_info ;\n DBUG_ENTER ( \"chk_data_link\" ) ;\n if ( ! ( param -> testflag & T_SILENT ) ) {\n if ( extend ) puts ( \"- check records and index references\" ) ;\n else puts ( \"- check record links\" ) ;\n }\n if ( ! mi_alloc_rec_buff ( info , - 1 , & record ) ) {\n mi_check_print_error ( param , \"Not enough memory for record\" ) ;\n DBUG_RETURN ( - 1 ) ;\n }\n records = del_blocks = 0 ;\n used = link_used = splits = del_length = 0 ;\n intern_record_checksum = param -> glob_crc = 0 ;\n got_error = error = 0 ;\n empty = info -> s -> pack . header_length ;\n static_row_size = 1 ;\n if ( info -> s -> data_file_type == COMPRESSED_RECORD ) {\n for ( field = 0 ;\n field < info -> s -> base . fields ;\n field ++ ) {\n if ( info -> s -> rec [ field ] . base_type == FIELD_BLOB || info -> s -> rec [ field ] . base_type == FIELD_VARCHAR ) {\n static_row_size = 0 ;\n break ;\n }\n }\n }\n pos = my_b_tell ( & param -> read_cache ) ;\n bzero ( ( char * ) key_checksum , info -> s -> base . keys * sizeof ( key_checksum [ 0 ] ) ) ;\n while ( pos < info -> state -> data_file_length ) {\n if ( * killed_ptr ( param ) ) goto err2 ;\n switch ( info -> s -> data_file_type ) {\n case STATIC_RECORD : if ( my_b_read ( & param -> read_cache , ( uchar * ) record , info -> s -> base . pack_reclength ) ) goto err ;\n start_recpos = pos ;\n pos += info -> s -> base . pack_reclength ;\n splits ++ ;\n if ( * record == '\\0' ) {\n del_blocks ++ ;\n del_length += info -> s -> base . pack_reclength ;\n continue ;\n }\n param -> glob_crc += mi_static_checksum ( info , record ) ;\n used += info -> s -> base . pack_reclength ;\n break ;\n case DYNAMIC_RECORD : flag = block_info . second_read = 0 ;\n block_info . next_filepos = pos ;\n do {\n if ( _mi_read_cache ( & param -> read_cache , ( uchar * ) block_info . header , ( start_block = block_info . next_filepos ) , sizeof ( block_info . header ) , ( flag ? 0 : READING_NEXT ) | READING_HEADER ) ) goto err ;\n if ( start_block & ( MI_DYN_ALIGN_SIZE - 1 ) ) {\n mi_check_print_error ( param , \"Wrong aligned block at %s\" , llstr ( start_block , llbuff ) ) ;\n goto err2 ;\n }\n b_type = _mi_get_block_info ( & block_info , - 1 , start_block ) ;\n if ( b_type & ( BLOCK_DELETED | BLOCK_ERROR | BLOCK_SYNC_ERROR | BLOCK_FATAL_ERROR ) ) {\n if ( b_type & BLOCK_SYNC_ERROR ) {\n if ( flag ) {\n mi_check_print_error ( param , \"Unexpected byte: %d at link: %s\" , ( int ) block_info . header [ 0 ] , llstr ( start_block , llbuff ) ) ;\n goto err2 ;\n }\n pos = block_info . filepos + block_info . block_len ;\n goto next ;\n }\n if ( b_type & BLOCK_DELETED ) {\n if ( block_info . block_len < info -> s -> base . min_block_length ) {\n mi_check_print_error ( param , \"Deleted block with impossible length %lu at %s\" , block_info . block_len , llstr ( pos , llbuff ) ) ;\n goto err2 ;\n }\n if ( ( block_info . next_filepos != HA_OFFSET_ERROR && block_info . next_filepos >= info -> state -> data_file_length ) || ( block_info . prev_filepos != HA_OFFSET_ERROR && block_info . prev_filepos >= info -> state -> data_file_length ) ) {\n mi_check_print_error ( param , \"Delete link points outside datafile at %s\" , llstr ( pos , llbuff ) ) ;\n goto err2 ;\n }\n del_blocks ++ ;\n del_length += block_info . block_len ;\n pos = block_info . filepos + block_info . block_len ;\n splits ++ ;\n goto next ;\n }\n mi_check_print_error ( param , \"Wrong bytesec: %d-%d-%d at linkstart: %s\" , block_info . header [ 0 ] , block_info . header [ 1 ] , block_info . header [ 2 ] , llstr ( start_block , llbuff ) ) ;\n goto err2 ;\n }\n if ( info -> state -> data_file_length < block_info . filepos + block_info . block_len ) {\n mi_check_print_error ( param , \"Recordlink that points outside datafile at %s\" , llstr ( pos , llbuff ) ) ;\n got_error = 1 ;\n break ;\n }\n splits ++ ;\n if ( ! flag ++ ) {\n start_recpos = pos ;\n pos = block_info . filepos + block_info . block_len ;\n if ( block_info . rec_len > ( uint ) info -> s -> base . max_pack_length ) {\n mi_check_print_error ( param , \"Found too long record (%lu) at %s\" , ( ulong ) block_info . rec_len , llstr ( start_recpos , llbuff ) ) ;\n got_error = 1 ;\n break ;\n }\n if ( info -> s -> base . blobs ) {\n if ( ! ( to = mi_alloc_rec_buff ( info , block_info . rec_len , & info -> rec_buff ) ) ) {\n mi_check_print_error ( param , \"Not enough memory (%lu) for blob at %s\" , ( ulong ) block_info . rec_len , llstr ( start_recpos , llbuff ) ) ;\n got_error = 1 ;\n break ;\n }\n }\n else to = info -> rec_buff ;\n left_length = block_info . rec_len ;\n }\n if ( left_length < block_info . data_len ) {\n mi_check_print_error ( param , \"Found too long record (%lu) at %s\" , ( ulong ) block_info . data_len , llstr ( start_recpos , llbuff ) ) ;\n got_error = 1 ;\n break ;\n }\n if ( _mi_read_cache ( & param -> read_cache , ( uchar * ) to , block_info . filepos , ( uint ) block_info . data_len , flag == 1 ? READING_NEXT : 0 ) ) goto err ;\n to += block_info . data_len ;\n link_used += block_info . filepos - start_block ;\n used += block_info . filepos - start_block + block_info . data_len ;\n empty += block_info . block_len - block_info . data_len ;\n left_length -= block_info . data_len ;\n if ( left_length ) {\n if ( b_type & BLOCK_LAST ) {\n mi_check_print_error ( param , \"Wrong record length %s of %s at %s\" , llstr ( block_info . rec_len - left_length , llbuff ) , llstr ( block_info . rec_len , llbuff2 ) , llstr ( start_recpos , llbuff3 ) ) ;\n got_error = 1 ;\n break ;\n }\n if ( info -> state -> data_file_length < block_info . next_filepos ) {\n mi_check_print_error ( param , \"Found next-recordlink that points outside datafile at %s\" , llstr ( block_info . filepos , llbuff ) ) ;\n got_error = 1 ;\n break ;\n }\n }\n }\n while ( left_length ) ;\n if ( ! got_error ) {\n if ( _mi_rec_unpack ( info , record , info -> rec_buff , block_info . rec_len ) == MY_FILE_ERROR ) {\n mi_check_print_error ( param , \"Found wrong record at %s\" , llstr ( start_recpos , llbuff ) ) ;\n got_error = 1 ;\n }\n else {\n info -> checksum = mi_checksum ( info , record ) ;\n if ( param -> testflag & ( T_EXTEND | T_MEDIUM | T_VERBOSE ) ) {\n if ( _mi_rec_check ( info , record , info -> rec_buff , block_info . rec_len , test ( info -> s -> calc_checksum ) ) ) {\n mi_check_print_error ( param , \"Found wrong packed record at %s\" , llstr ( start_recpos , llbuff ) ) ;\n got_error = 1 ;\n }\n }\n if ( ! got_error ) param -> glob_crc += info -> checksum ;\n }\n }\n else if ( ! flag ) pos = block_info . filepos + block_info . block_len ;\n break ;\n case COMPRESSED_RECORD : if ( _mi_read_cache ( & param -> read_cache , ( uchar * ) block_info . header , pos , info -> s -> pack . ref_length , READING_NEXT ) ) goto err ;\n start_recpos = pos ;\n splits ++ ;\n ( void ) _mi_pack_get_block_info ( info , & info -> bit_buff , & block_info , & info -> rec_buff , - 1 , start_recpos ) ;\n pos = block_info . filepos + block_info . rec_len ;\n if ( block_info . rec_len < ( uint ) info -> s -> min_pack_length || block_info . rec_len > ( uint ) info -> s -> max_pack_length ) {\n mi_check_print_error ( param , \"Found block with wrong recordlength: %d at %s\" , block_info . rec_len , llstr ( start_recpos , llbuff ) ) ;\n got_error = 1 ;\n break ;\n }\n if ( _mi_read_cache ( & param -> read_cache , ( uchar * ) info -> rec_buff , block_info . filepos , block_info . rec_len , READING_NEXT ) ) goto err ;\n if ( _mi_pack_rec_unpack ( info , & info -> bit_buff , record , info -> rec_buff , block_info . rec_len ) ) {\n mi_check_print_error ( param , \"Found wrong record at %s\" , llstr ( start_recpos , llbuff ) ) ;\n got_error = 1 ;\n }\n if ( static_row_size ) param -> glob_crc += mi_static_checksum ( info , record ) ;\n else param -> glob_crc += mi_checksum ( info , record ) ;\n link_used += ( block_info . filepos - start_recpos ) ;\n used += ( pos - start_recpos ) ;\n break ;\n case BLOCK_RECORD : assert ( 0 ) ;\n }\n if ( ! got_error ) {\n intern_record_checksum += ( ha_checksum ) start_recpos ;\n records ++ ;\n if ( param -> testflag & T_WRITE_LOOP && records % WRITE_COUNT == 0 ) {\n printf ( \"%s\\r\" , llstr ( records , llbuff ) ) ;\n ( void ) fflush ( stdout ) ;\n }\n for ( key = 0 , keyinfo = info -> s -> keyinfo ;\n key < info -> s -> base . keys ;\n key ++ , keyinfo ++ ) {\n if ( mi_is_key_active ( info -> s -> state . key_map , key ) ) {\n if ( ! ( keyinfo -> flag & HA_FULLTEXT ) ) {\n uint key_length = _mi_make_key ( info , key , info -> lastkey , record , start_recpos ) ;\n if ( extend ) {\n int search_result = # ifdef HAVE_RTREE_KEYS ( keyinfo -> flag & HA_SPATIAL ) ? rtree_find_first ( info , key , info -> lastkey , key_length , MBR_EQUAL | MBR_DATA ) : # endif _mi_search ( info , keyinfo , info -> lastkey , key_length , SEARCH_SAME , info -> s -> state . key_root [ key ] ) ;\n if ( search_result ) {\n mi_check_print_error ( param , \"Record at: %10s \" \"Can't find key for index: %2d\" , llstr ( start_recpos , llbuff ) , key + 1 ) ;\n if ( error ++ > MAXERR || ! ( param -> testflag & T_VERBOSE ) ) goto err2 ;\n }\n }\n else key_checksum [ key ] += mi_byte_checksum ( ( uchar * ) info -> lastkey , key_length ) ;\n }\n }\n }\n }\n else {\n got_error = 0 ;\n if ( error ++ > MAXERR || ! ( param -> testflag & T_VERBOSE ) ) goto err2 ;\n }\n next : ;\n }\n if ( param -> testflag & T_WRITE_LOOP ) {\n ( void ) fputs ( \" \\r\" , stdout ) ;\n ( void ) fflush ( stdout ) ;\n }\n if ( records != info -> state -> records ) {\n mi_check_print_error ( param , \"Record-count is not ok;\n is %-10s Should be: %s\" , llstr ( records , llbuff ) , llstr ( info -> state -> records , llbuff2 ) ) ;\n error = 1 ;\n }\n else if ( param -> record_checksum && param -> record_checksum != intern_record_checksum ) {\n mi_check_print_error ( param , \"Keypointers and record positions doesn't match\" ) ;\n error = 1 ;\n }\n else if ( param -> glob_crc != info -> state -> checksum && ( info -> s -> options & ( HA_OPTION_CHECKSUM | HA_OPTION_COMPRESS_RECORD ) ) ) {\n mi_check_print_warning ( param , \"Record checksum is not the same as checksum stored in the index file\\n\" ) ;\n error = 1 ;\n }\n else if ( ! extend ) {\n for ( key = 0 ;\n key < info -> s -> base . keys ;\n key ++ ) {\n if ( key_checksum [ key ] != param -> key_crc [ key ] && ! ( info -> s -> keyinfo [ key ] . flag & ( HA_FULLTEXT | HA_SPATIAL ) ) ) {\n mi_check_print_error ( param , \"Checksum for key: %2d doesn't match checksum for records\" , key + 1 ) ;\n error = 1 ;\n }\n }\n }\n if ( del_length != info -> state -> empty ) {\n mi_check_print_warning ( param , \"Found %s deleted space. Should be %s\" , llstr ( del_length , llbuff2 ) , llstr ( info -> state -> empty , llbuff ) ) ;\n }\n if ( used + empty + del_length != info -> state -> data_file_length ) {\n mi_check_print_warning ( param , \"Found %s record-data and %s unused data and %s deleted-data\" , llstr ( used , llbuff ) , llstr ( empty , llbuff2 ) , llstr ( del_length , llbuff3 ) ) ;\n mi_check_print_warning ( param , \"Total %s, Should be: %s\" , llstr ( ( used + empty + del_length ) , llbuff ) , llstr ( info -> state -> data_file_length , llbuff2 ) ) ;\n }\n if ( del_blocks != info -> state -> del ) {\n mi_check_print_warning ( param , \"Found %10s deleted blocks Should be: %s\" , llstr ( del_blocks , llbuff ) , llstr ( info -> state -> del , llbuff2 ) ) ;\n }\n if ( splits != info -> s -> state . split ) {\n mi_check_print_warning ( param , \"Found %10s key parts. Should be: %s\" , llstr ( splits , llbuff ) , llstr ( info -> s -> state . split , llbuff2 ) ) ;\n }\n if ( param -> testflag & T_INFO ) {\n if ( param -> warning_printed || param -> error_printed ) puts ( \"\" ) ;\n if ( used != 0 && ! param -> error_printed ) {\n printf ( \"Records:%18s M.recordlength:%9lu Packed:%14.0f%%\\n\" , llstr ( records , llbuff ) , ( long ) ( ( used - link_used ) / records ) , ( info -> s -> base . blobs ? 0.0 : ( ulonglong2double ( ( ulonglong ) info -> s -> base . reclength * records ) - my_off_t2double ( used ) ) / ulonglong2double ( ( ulonglong ) info -> s -> base . reclength * records ) * 100.0 ) ) ;\n printf ( \"Recordspace used:%9.0f%% Empty space:%12d%% Blocks/Record: %6.2f\\n\" , ( ulonglong2double ( used - link_used ) / ulonglong2double ( used - link_used + empty ) * 100.0 ) , ( ! records ? 100 : ( int ) ( ulonglong2double ( del_length + empty ) / my_off_t2double ( used ) * 100.0 ) ) , ulonglong2double ( splits - del_blocks ) / records ) ;\n }\n printf ( \"Record blocks:%12s Delete blocks:%10s\\n\" , llstr ( splits - del_blocks , llbuff ) , llstr ( del_blocks , llbuff2 ) ) ;\n printf ( \"Record data: %12s Deleted data: %10s\\n\" , llstr ( used - link_used , llbuff ) , llstr ( del_length , llbuff2 ) ) ;\n printf ( \"Lost space: %12s Linkdata: %10s\\n\" , llstr ( empty , llbuff ) , llstr ( link_used , llbuff2 ) ) ;\n }\n my_free ( mi_get_rec_buff_ptr ( info , record ) ) ;\n DBUG_RETURN ( error ) ;\n err : mi_check_print_error ( param , \"got error: %d when reading datafile at record: %s\" , my_errno , llstr ( records , llbuff ) ) ;\n err2 : my_free ( mi_get_rec_buff_ptr ( info , record ) ) ;\n param -> testflag |= T_RETRY_WITHOUT_QUICK ;\n DBUG_RETURN ( 1 ) ;\n }"}
{"idx": 10880, "target": 0, "func": "static int for_neg_int_continue ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n register es_ptr ep = esp ;\n int var = ep [ - 3 ] . value . intval ;\n if ( var < ep [ - 1 ] . value . intval ) {\n esp -= 5 ;\n return o_pop_estack ;\n }\n push ( 1 ) ;\n make_int ( op , var ) ;\n ep [ - 3 ] . value . intval = var + ep [ - 2 ] . value . intval ;\n ref_assign ( ep + 2 , ep ) ;\n esp = ep + 2 ;\n return o_push_estack ;\n }"}
{"idx": 10881, "target": 0, "func": "static void lookup_doit ( void * a ) {\n struct lookup_args * args = ( struct lookup_args * ) a ;\n const ElfW ( Sym ) * ref = NULL ;\n args -> result = NULL ;\n lookup_t l = _dl_lookup_symbol_x ( args -> name , args -> map , & ref , args -> map -> l_local_scope , NULL , 0 , DL_LOOKUP_RETURN_NEWEST , NULL ) ;\n if ( ref != NULL ) args -> result = DL_SYMBOL_ADDRESS ( l , ref ) ;\n }"}
{"idx": 10882, "target": 0, "func": "SPL_METHOD ( SplFileObject , fgetcsv ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char delimiter = intern -> u . file . delimiter , enclosure = intern -> u . file . enclosure , escape = intern -> u . file . escape ;\n char * delim = NULL , * enclo = NULL , * esc = NULL ;\n int d_len = 0 , e_len = 0 , esc_len = 0 ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"|sss\" , & delim , & d_len , & enclo , & e_len , & esc , & esc_len ) == SUCCESS ) {\n switch ( ZEND_NUM_ARGS ( ) ) {\n case 3 : if ( esc_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"escape must be a character\" ) ;\n RETURN_FALSE ;\n }\n escape = esc [ 0 ] ;\n case 2 : if ( e_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"enclosure must be a character\" ) ;\n RETURN_FALSE ;\n }\n enclosure = enclo [ 0 ] ;\n case 1 : if ( d_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"delimiter must be a character\" ) ;\n RETURN_FALSE ;\n }\n delimiter = delim [ 0 ] ;\n case 0 : break ;\n }\n spl_filesystem_file_read_csv ( intern , delimiter , enclosure , escape , return_value TSRMLS_CC ) ;\n }\n }"}
{"idx": 10883, "target": 0, "func": "void hb_set_add_range ( hb_set_t * set , hb_codepoint_t first , hb_codepoint_t last ) {\n set -> add_range ( first , last ) ;\n }"}
{"idx": 10884, "target": 0, "func": "static const char * evhttp_method ( enum evhttp_cmd_type type ) {\n const char * method ;\n switch ( type ) {\n case EVHTTP_REQ_GET : method = \"GET\" ;\n break ;\n case EVHTTP_REQ_POST : method = \"POST\" ;\n break ;\n case EVHTTP_REQ_HEAD : method = \"HEAD\" ;\n break ;\n default : method = NULL ;\n break ;\n }\n return ( method ) ;\n }"}
{"idx": 10885, "target": 0, "func": "static void Pass2Encode ( VP8_COMP * cpi , unsigned long * size , unsigned char * dest , unsigned char * dest_end , unsigned int * frame_flags ) {\n if ( ! cpi -> common . refresh_alt_ref_frame ) vp8_second_pass ( cpi ) ;\n encode_frame_to_data_rate ( cpi , size , dest , dest_end , frame_flags ) ;\n cpi -> twopass . bits_left -= 8 * * size ;\n if ( ! cpi -> common . refresh_alt_ref_frame ) {\n double two_pass_min_rate = ( double ) ( cpi -> oxcf . target_bandwidth * cpi -> oxcf . two_pass_vbrmin_section / 100 ) ;\n cpi -> twopass . bits_left += ( int64_t ) ( two_pass_min_rate / cpi -> framerate ) ;\n }\n }"}
{"idx": 10886, "target": 0, "func": "static inline int ohci_read_hcca ( OHCIState * ohci , dma_addr_t addr , struct ohci_hcca * hcca ) {\n return dma_memory_read ( ohci -> as , addr + ohci -> localmem_base , hcca , sizeof ( * hcca ) ) ;\n }"}
{"idx": 10887, "target": 1, "func": "static inline bool is_one_of ( const hb_glyph_info_t & info , unsigned int flags ) {\n if ( _hb_glyph_info_ligated ( & info ) ) return false ;\n return ! ! ( FLAG ( info . myanmar_category ( ) ) & flags ) ;\n }"}
{"idx": 10888, "target": 0, "func": "char * get_rel_name ( Oid relid ) {\n HeapTuple tp ;\n tp = SearchSysCache1 ( RELOID , ObjectIdGetDatum ( relid ) ) ;\n if ( HeapTupleIsValid ( tp ) ) {\n Form_pg_class reltup = ( Form_pg_class ) GETSTRUCT ( tp ) ;\n char * result ;\n result = pstrdup ( NameStr ( reltup -> relname ) ) ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }\n else return NULL ;\n }"}
{"idx": 10889, "target": 0, "func": "static int dissect_NOTIFY_OPTIONS_ARRAY_CTR ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n if ( di -> conformant_run ) return offset ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_notify_options_version , NULL ) ;\n offset = dissect_notify_options_flags ( tvb , offset , pinfo , tree , di , drep ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_notify_options_count , NULL ) ;\n offset = dissect_ndr_pointer ( tvb , offset , pinfo , tree , di , drep , dissect_NOTIFY_OPTIONS_ARRAY , NDR_POINTER_UNIQUE , \"Notify Options Array\" , - 1 ) ;\n return offset ;\n }"}
{"idx": 10890, "target": 0, "func": "int linux_udev_start_event_monitor ( void ) {\n int r ;\n assert ( udev_ctx == NULL ) ;\n udev_ctx = device : : udev_new ( ) ;\n if ( ! udev_ctx ) {\n usbi_err ( NULL , \"could not create udev context\" ) ;\n return LIBUSB_ERROR_OTHER ;\n }\n udev_monitor = device : : udev_monitor_new_from_netlink ( udev_ctx , \"udev\" ) ;\n if ( ! udev_monitor ) {\n usbi_err ( NULL , \"could not initialize udev monitor\" ) ;\n goto err_free_ctx ;\n }\n r = device : : udev_monitor_filter_add_match_subsystem_devtype ( udev_monitor , \"usb\" , 0 ) ;\n if ( r ) {\n usbi_err ( NULL , \"could not initialize udev monitor filter for \\\"usb\\\" subsystem\" ) ;\n goto err_free_monitor ;\n }\n if ( device : : udev_monitor_enable_receiving ( udev_monitor ) ) {\n usbi_err ( NULL , \"failed to enable the udev monitor\" ) ;\n goto err_free_monitor ;\n }\n udev_monitor_fd = device : : udev_monitor_get_fd ( udev_monitor ) ;\n r = fcntl ( udev_monitor_fd , F_GETFL ) ;\n if ( r == - 1 ) {\n usbi_err ( NULL , \"getting udev monitor fd flags (%d)\" , errno ) ;\n goto err_free_monitor ;\n }\n r = fcntl ( udev_monitor_fd , F_SETFL , r | O_NONBLOCK ) ;\n if ( r ) {\n usbi_err ( NULL , \"setting udev monitor fd flags (%d)\" , errno ) ;\n goto err_free_monitor ;\n }\n r = usbi_pipe ( udev_control_pipe ) ;\n if ( r ) {\n usbi_err ( NULL , \"could not create udev control pipe\" ) ;\n goto err_free_monitor ;\n }\n r = pthread_create ( & linux_event_thread , NULL , linux_udev_event_thread_main , NULL ) ;\n if ( r ) {\n usbi_err ( NULL , \"creating hotplug event thread (%d)\" , r ) ;\n goto err_close_pipe ;\n }\n return LIBUSB_SUCCESS ;\n err_close_pipe : close ( udev_control_pipe [ 0 ] ) ;\n close ( udev_control_pipe [ 1 ] ) ;\n err_free_monitor : device : : udev_monitor_unref ( udev_monitor ) ;\n udev_monitor = NULL ;\n udev_monitor_fd = - 1 ;\n err_free_ctx : device : : udev_unref ( udev_ctx ) ;\n udev_ctx = NULL ;\n return LIBUSB_ERROR_OTHER ;\n }"}
{"idx": 10891, "target": 0, "func": "static void iax_init_protocol ( void ) {\n iax_circuit_hashtab = g_hash_table_new ( iax_circuit_hash , iax_circuit_equal ) ;\n circuitcount = 0 ;\n iax_fid_table = g_hash_table_new ( g_direct_hash , g_direct_equal ) ;\n reassembly_table_init ( & iax_reassembly_table , & addresses_reassembly_table_functions ) ;\n }"}
{"idx": 10892, "target": 0, "func": "static inline u32 signal_to_av ( int sig ) {\n u32 perm = 0 ;\n switch ( sig ) {\n case SIGCHLD : perm = PROCESS__SIGCHLD ;\n break ;\n case SIGKILL : perm = PROCESS__SIGKILL ;\n break ;\n case SIGSTOP : perm = PROCESS__SIGSTOP ;\n break ;\n default : perm = PROCESS__SIGNAL ;\n break ;\n }\n return perm ;\n }"}
{"idx": 10893, "target": 0, "func": "static int ts_lua_http_config_float_set ( lua_State * L ) {\n int conf ;\n float value ;\n ts_lua_http_ctx * http_ctx ;\n GET_HTTP_CONTEXT ( http_ctx , L ) ;\n conf = luaL_checkinteger ( L , 1 ) ;\n value = luaL_checknumber ( L , 2 ) ;\n TSHttpTxnConfigFloatSet ( http_ctx -> txnp , conf , value ) ;\n return 0 ;\n }"}
{"idx": 10894, "target": 0, "func": "hb_bool_t hb_set_is_empty ( const hb_set_t * set ) {\n return set -> is_empty ( ) ;\n }"}
{"idx": 10895, "target": 0, "func": "static int dissect_h245_T_messageContent ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h245_T_messageContent , T_messageContent_sequence_of ) ;\n return offset ;\n }"}
{"idx": 10896, "target": 0, "func": "static int ts_lua_http_server_packet_mark_set ( lua_State * L ) {\n int value ;\n ts_lua_http_ctx * http_ctx ;\n GET_HTTP_CONTEXT ( http_ctx , L ) ;\n value = luaL_checkinteger ( L , 1 ) ;\n TSDebug ( TS_LUA_DEBUG_TAG , \"server packet mark set\" ) ;\n TSHttpTxnServerPacketMarkSet ( http_ctx -> txnp , value ) ;\n return 0 ;\n }"}
{"idx": 10897, "target": 0, "func": "static inline MagickRealType GetPixelLuma ( const Image * restrict image , const Quantum * restrict pixel ) {\n if ( image -> colorspace == GRAYColorspace ) return ( ( MagickRealType ) pixel [ image -> channel_map [ GrayPixelChannel ] . offset ] ) ;\n return ( 0.212656f * pixel [ image -> channel_map [ RedPixelChannel ] . offset ] + 0.715158f * pixel [ image -> channel_map [ GreenPixelChannel ] . offset ] + 0.072186f * pixel [ image -> channel_map [ BluePixelChannel ] . offset ] ) ;\n }"}
{"idx": 10898, "target": 0, "func": "static void vga_draw_glyph16 ( uint8_t * d , int linesize , const uint8_t * font_ptr , int h , uint32_t fgcol , uint32_t bgcol ) {\n uint32_t font_data , xorcol ;\n xorcol = bgcol ^ fgcol ;\n do {\n font_data = font_ptr [ 0 ] ;\n vga_draw_glyph_line ( d , expand4to8 [ font_data >> 4 ] , xorcol , bgcol ) ;\n vga_draw_glyph_line ( d + 32 , expand4to8 [ font_data & 0x0f ] , xorcol , bgcol ) ;\n font_ptr += 4 ;\n d += linesize ;\n }\n while ( -- h ) ;\n }"}
{"idx": 10899, "target": 0, "func": "long dtls1_default_timeout ( void ) {\n return ( 60 * 60 * 2 ) ;\n }"}
{"idx": 10900, "target": 0, "func": "static void rv40_adaptive_loop_filter ( RV34DSPContext * rdsp , uint8_t * src , int stride , int dmode , int lim_q1 , int lim_p1 , int alpha , int beta , int beta2 , int chroma , int edge , int dir ) {\n int filter_p1 , filter_q1 ;\n int strong ;\n int lims ;\n strong = rdsp -> rv40_loop_filter_strength [ dir ] ( src , stride , beta , beta2 , edge , & filter_p1 , & filter_q1 ) ;\n lims = filter_p1 + filter_q1 + ( ( lim_q1 + lim_p1 ) >> 1 ) + 1 ;\n if ( strong ) {\n rdsp -> rv40_strong_loop_filter [ dir ] ( src , stride , alpha , lims , dmode , chroma ) ;\n }\n else if ( filter_p1 & filter_q1 ) {\n rdsp -> rv40_weak_loop_filter [ dir ] ( src , stride , 1 , 1 , alpha , beta , lims , lim_q1 , lim_p1 ) ;\n }\n else if ( filter_p1 | filter_q1 ) {\n rdsp -> rv40_weak_loop_filter [ dir ] ( src , stride , filter_p1 , filter_q1 , alpha , beta , lims >> 1 , lim_q1 >> 1 , lim_p1 >> 1 ) ;\n }\n }"}
{"idx": 10901, "target": 0, "func": "static void _proc_multi_msg ( uint32_t rpc_uid , slurm_msg_t * msg ) {\n slurm_msg_t sub_msg , response_msg ;\n ctld_list_msg_t * ctld_req_msg , ctld_resp_msg ;\n List full_resp_list = NULL ;\n Buf single_req_buf = NULL ;\n Buf ret_buf , resp_buf = NULL ;\n ListIterator iter = NULL ;\n int rc ;\n if ( ! msg -> conn ) {\n error ( \"Security violation, REQUEST_CTLD_MULT_MSG RPC from uid=%d\" , rpc_uid ) ;\n slurm_send_rc_msg ( msg , ESLURM_ACCESS_DENIED ) ;\n return ;\n }\n ctld_req_msg = ( ctld_list_msg_t * ) msg -> data ;\n full_resp_list = list_create ( _ctld_free_list_msg ) ;\n iter = list_iterator_create ( ctld_req_msg -> my_list ) ;\n while ( ( single_req_buf = list_next ( iter ) ) ) {\n slurm_msg_t_init ( & sub_msg ) ;\n if ( unpack16 ( & sub_msg . msg_type , single_req_buf ) || unpack_msg ( & sub_msg , single_req_buf ) ) {\n error ( \"Sub-message unpack error for REQUEST_CTLD_MULT_MSG %u RPC\" , sub_msg . msg_type ) ;\n ret_buf = _build_rc_buf ( SLURM_ERROR , msg -> protocol_version ) ;\n list_append ( full_resp_list , ret_buf ) ;\n continue ;\n }\n sub_msg . conn = msg -> conn ;\n sub_msg . auth_cred = msg -> auth_cred ;\n ret_buf = NULL ;\n if ( slurmctld_conf . debug_flags & DEBUG_FLAG_PROTOCOL ) {\n char * p = rpc_num2string ( sub_msg . msg_type ) ;\n info ( \"%s: received opcode %s\" , __func__ , p ) ;\n }\n switch ( sub_msg . msg_type ) {\n case REQUEST_PING : rc = SLURM_SUCCESS ;\n ret_buf = _build_rc_buf ( rc , msg -> protocol_version ) ;\n break ;\n case REQUEST_SIB_MSG : _slurm_rpc_sib_msg ( rpc_uid , & sub_msg ) ;\n ret_buf = _build_rc_buf ( SLURM_SUCCESS , msg -> protocol_version ) ;\n break ;\n default : error ( \"%s: Unsupported Message Type:%s\" , __func__ , rpc_num2string ( sub_msg . msg_type ) ) ;\n }\n ( void ) slurm_free_msg_data ( sub_msg . msg_type , sub_msg . data ) ;\n if ( ! ret_buf ) {\n ret_buf = _build_rc_buf ( SLURM_ERROR , msg -> protocol_version ) ;\n }\n list_append ( full_resp_list , ret_buf ) ;\n }\n list_iterator_destroy ( iter ) ;\n ctld_resp_msg . my_list = full_resp_list ;\n slurm_msg_t_init ( & response_msg ) ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . address = msg -> address ;\n response_msg . conn = msg -> conn ;\n response_msg . msg_type = RESPONSE_CTLD_MULT_MSG ;\n response_msg . data = & ctld_resp_msg ;\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n FREE_NULL_LIST ( full_resp_list ) ;\n free_buf ( resp_buf ) ;\n return ;\n }"}
{"idx": 10902, "target": 0, "func": "static int dissect_nlm1_test ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n return dissect_nlm_test ( tvb , 0 , pinfo , tree , 1 , ( rpc_call_info_value * ) data ) ;\n }"}
{"idx": 10903, "target": 0, "func": "int i2d_X509_fp ( FILE * fp , X509 * x509 ) {\n return ASN1_item_i2d_fp ( ASN1_ITEM_rptr ( X509 ) , fp , x509 ) ;\n }"}
{"idx": 10904, "target": 0, "func": "static void kvm_getput_reg ( __u64 * kvm_reg , target_ulong * qemu_reg , int set ) {\n if ( set ) {\n * kvm_reg = * qemu_reg ;\n }\n else {\n * qemu_reg = * kvm_reg ;\n }\n }"}
{"idx": 10905, "target": 0, "func": "int ApplyBinaryPatch ( const wchar_t * old_file , const wchar_t * patch_file , const wchar_t * new_file ) {\n int ret = OK ;\n int ofd = - 1 ;\n int nfd = - 1 ;\n unsigned char * buf = NULL ;\n int pfd = _wopen ( patch_file , O_RDONLY | _O_BINARY ) ;\n if ( pfd < 0 ) return READ_ERROR ;\n do {\n MBSPatchHeader header ;\n if ( ( ret = MBS_ReadHeader ( pfd , & header ) ) ) break ;\n ofd = _wopen ( old_file , O_RDONLY | _O_BINARY ) ;\n if ( ofd < 0 ) {\n ret = READ_ERROR ;\n break ;\n }\n struct stat os ;\n if ( ( ret = fstat ( ofd , & os ) ) ) {\n ret = READ_ERROR ;\n break ;\n }\n if ( os . st_size != header . slen ) {\n ret = UNEXPECTED_ERROR ;\n break ;\n }\n buf = ( unsigned char * ) malloc ( header . slen ) ;\n if ( ! buf ) {\n ret = MEM_ERROR ;\n break ;\n }\n if ( read ( ofd , buf , header . slen ) != header . slen ) {\n ret = READ_ERROR ;\n break ;\n }\n if ( CalculateCrc ( buf , header . slen ) != header . scrc32 ) {\n ret = CRC_ERROR ;\n break ;\n }\n nfd = _wopen ( new_file , O_WRONLY | O_TRUNC | O_CREAT | _O_BINARY ) ;\n if ( nfd < 0 ) {\n ret = READ_ERROR ;\n break ;\n }\n ret = MBS_ApplyPatch ( & header , pfd , buf , nfd ) ;\n }\n while ( 0 ) ;\n free ( buf ) ;\n close ( pfd ) ;\n if ( ofd >= 0 ) close ( ofd ) ;\n if ( nfd >= 0 ) close ( nfd ) ;\n return ret ;\n }"}
{"idx": 10906, "target": 0, "func": "int EVP_DecryptInit_ex ( EVP_CIPHER_CTX * ctx , const EVP_CIPHER * cipher , ENGINE * impl , const unsigned char * key , const unsigned char * iv ) {\n return EVP_CipherInit_ex ( ctx , cipher , impl , key , iv , 0 ) ;\n }"}
{"idx": 10907, "target": 0, "func": "void vp9_fdct8x8_1_c ( const int16_t * input , tran_low_t * output , int stride ) {\n int r , c ;\n tran_low_t sum = 0 ;\n for ( r = 0 ;\n r < 8 ;\n ++ r ) for ( c = 0 ;\n c < 8 ;\n ++ c ) sum += input [ r * stride + c ] ;\n output [ 0 ] = sum ;\n output [ 1 ] = 0 ;\n }"}
{"idx": 10908, "target": 1, "func": "static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 10909, "target": 0, "func": "static void ImportOpacityQuantum ( const Image * image , QuantumInfo * quantum_info , const MagickSizeType number_pixels , const unsigned char * magick_restrict p , Quantum * magick_restrict q , ExceptionInfo * exception ) {\n QuantumAny range ;\n register ssize_t x ;\n unsigned int pixel ;\n assert ( image != ( Image * ) NULL ) ;\n assert ( image -> signature == MagickCoreSignature ) ;\n switch ( quantum_info -> depth ) {\n case 8 : {\n unsigned char pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelOpacity ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 16 : {\n unsigned short pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelOpacity ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelOpacity ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 32 : {\n unsigned int pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n float pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelOpacity ( image , ClampToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelOpacity ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 64 : {\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n double pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelOpacity ( image , ClampToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n default : {\n range = GetQuantumRange ( quantum_info -> depth ) ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelOpacity ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n }"}
{"idx": 10910, "target": 0, "func": "static __always_inline __u64 __swab64p ( const __u64 * p ) {\n # ifdef __arch_swab64p return __arch_swab64p ( p ) ;\n # else return __swab64 ( * p ) ;\n # endif }"}
{"idx": 10911, "target": 0, "func": "static inline int get_dwords ( OHCIState * ohci , dma_addr_t addr , uint32_t * buf , int num ) {\n int i ;\n addr += ohci -> localmem_base ;\n for ( i = 0 ;\n i < num ;\n i ++ , buf ++ , addr += sizeof ( * buf ) ) {\n if ( dma_memory_read ( ohci -> as , addr , buf , sizeof ( * buf ) ) ) {\n return - 1 ;\n }\n * buf = le32_to_cpu ( * buf ) ;\n }\n return 0 ;\n }"}
{"idx": 10912, "target": 0, "func": "static int dissect_h245_T_iPXAddress ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_iPXAddress , T_iPXAddress_sequence ) ;\n return offset ;\n }"}
{"idx": 10913, "target": 0, "func": "static vpx_codec_err_t ctrl_set_svc_layer_id ( vpx_codec_alg_priv_t * ctx , va_list args ) {\n vpx_svc_layer_id_t * const data = va_arg ( args , vpx_svc_layer_id_t * ) ;\n VP9_COMP * const cpi = ( VP9_COMP * ) ctx -> cpi ;\n SVC * const svc = & cpi -> svc ;\n svc -> spatial_layer_id = data -> spatial_layer_id ;\n svc -> temporal_layer_id = data -> temporal_layer_id ;\n if ( svc -> temporal_layer_id < 0 || svc -> temporal_layer_id >= ( int ) ctx -> cfg . ts_number_layers ) {\n return VPX_CODEC_INVALID_PARAM ;\n }\n if ( svc -> spatial_layer_id < 0 || svc -> spatial_layer_id >= ( int ) ctx -> cfg . ss_number_layers ) {\n return VPX_CODEC_INVALID_PARAM ;\n }\n return VPX_CODEC_OK ;\n }"}
{"idx": 10914, "target": 0, "func": "static TRBCCode xhci_enable_ep ( XHCIState * xhci , unsigned int slotid , unsigned int epid , dma_addr_t pctx , uint32_t * ctx ) {\n XHCISlot * slot ;\n XHCIEPContext * epctx ;\n trace_usb_xhci_ep_enable ( slotid , epid ) ;\n assert ( slotid >= 1 && slotid <= xhci -> numslots ) ;\n assert ( epid >= 1 && epid <= 31 ) ;\n slot = & xhci -> slots [ slotid - 1 ] ;\n if ( slot -> eps [ epid - 1 ] ) {\n xhci_disable_ep ( xhci , slotid , epid ) ;\n }\n epctx = xhci_alloc_epctx ( xhci , slotid , epid ) ;\n slot -> eps [ epid - 1 ] = epctx ;\n xhci_init_epctx ( epctx , pctx , ctx ) ;\n DPRINTF ( \"xhci: endpoint %d.%d type is %d, max transaction (burst) \" \"size is %d\\n\" , epid / 2 , epid % 2 , epctx -> type , epctx -> max_psize ) ;\n epctx -> mfindex_last = 0 ;\n epctx -> state = EP_RUNNING ;\n ctx [ 0 ] &= ~ EP_STATE_MASK ;\n ctx [ 0 ] |= EP_RUNNING ;\n return CC_SUCCESS ;\n }"}
{"idx": 10915, "target": 0, "func": "void proto_register_pkt_ccc ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_pkt_ccc_id , {\n \"PacketCable CCC Identifier\" , \"pkt_ccc.ccc_id\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_pkt_ccc_ts , {\n \"PacketCable CCC Timestamp\" , \"pkt_ccc.ts\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_UTC , NULL , 0x0 , NULL , HFILL }\n }\n , }\n ;\n static gint * ett [ ] = {\n & ett_pkt_ccc , }\n ;\n module_t * pkt_ccc_module ;\n proto_pkt_ccc = proto_register_protocol ( \"PacketCable Call Content Connection\" , \"PKT CCC\" , \"pkt_ccc\" ) ;\n proto_register_field_array ( proto_pkt_ccc , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n new_register_dissector ( \"pkt_ccc\" , dissect_pkt_ccc , proto_pkt_ccc ) ;\n pkt_ccc_module = prefs_register_protocol ( proto_pkt_ccc , proto_reg_handoff_pkt_ccc ) ;\n prefs_register_uint_preference ( pkt_ccc_module , \"udp_port\" , \"UDP port\" , \"Decode packets on this UDP port as PacketCable CCC\" , 10 , & global_pkt_ccc_udp_port ) ;\n }"}
{"idx": 10916, "target": 0, "func": "static void * spl_ptr_llist_first ( spl_ptr_llist * llist ) {\n spl_ptr_llist_element * head = llist -> head ;\n if ( head == NULL ) {\n return NULL ;\n }\n else {\n return head -> data ;\n }\n }"}
{"idx": 10917, "target": 0, "func": "static void read_sysvars ( void ) {\n const struct ctl_var * v ;\n struct ctl_var * kv ;\n u_int n ;\n u_int gotvar ;\n const u_char * cs ;\n char * valuep ;\n const char * pch ;\n u_char * wants ;\n size_t wants_count ;\n rpkt . status = htons ( ctlsysstatus ( ) ) ;\n if ( res_authokay ) ctl_sys_num_events = 0 ;\n wants_count = CS_MAXCODE + 1 + count_var ( ext_sys_var ) ;\n wants = emalloc_zero ( wants_count ) ;\n gotvar = 0 ;\n while ( NULL != ( v = ctl_getitem ( sys_var , & valuep ) ) ) {\n if ( ! ( EOV & v -> flags ) ) {\n INSIST ( v -> code < wants_count ) ;\n wants [ v -> code ] = 1 ;\n gotvar = 1 ;\n }\n else {\n v = ctl_getitem ( ext_sys_var , & valuep ) ;\n INSIST ( v != NULL ) ;\n if ( EOV & v -> flags ) {\n ctl_error ( CERR_UNKNOWNVAR ) ;\n free ( wants ) ;\n return ;\n }\n n = v -> code + CS_MAXCODE + 1 ;\n INSIST ( n < wants_count ) ;\n wants [ n ] = 1 ;\n gotvar = 1 ;\n }\n }\n if ( gotvar ) {\n for ( n = 1 ;\n n <= CS_MAXCODE ;\n n ++ ) if ( wants [ n ] ) ctl_putsys ( n ) ;\n for ( n = 0 ;\n n + CS_MAXCODE + 1 < wants_count ;\n n ++ ) if ( wants [ n + CS_MAXCODE + 1 ] ) {\n pch = ext_sys_var [ n ] . text ;\n ctl_putdata ( pch , strlen ( pch ) , 0 ) ;\n }\n }\n else {\n for ( cs = def_sys_var ;\n * cs != 0 ;\n cs ++ ) ctl_putsys ( ( int ) * cs ) ;\n for ( kv = ext_sys_var ;\n kv && ! ( EOV & kv -> flags ) ;\n kv ++ ) if ( DEF & kv -> flags ) ctl_putdata ( kv -> text , strlen ( kv -> text ) , 0 ) ;\n }\n free ( wants ) ;\n ctl_flushpkt ( 0 ) ;\n }"}
{"idx": 10918, "target": 0, "func": "static int execstack_continue ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n return do_execstack ( i_ctx_p , false , false , op ) ;\n }"}
{"idx": 10919, "target": 0, "func": "char * xmlrpc_decode_string ( char * buf ) {\n const char * p ;\n char * q ;\n p = buf ;\n q = buf ;\n while ( * p != '\\0' ) {\n if ( * p == '&' ) {\n p ++ ;\n if ( ! strncmp ( p , \"gt;\n\" , 3 ) ) * q ++ = '>' , p += 3 ;\n else if ( ! strncmp ( p , \"lt;\n\" , 3 ) ) * q ++ = '<' , p += 3 ;\n else if ( ! strncmp ( p , \"quot;\n\" , 5 ) ) * q ++ = '\"' , p += 5 ;\n else if ( ! strncmp ( p , \"amp;\n\" , 4 ) ) * q ++ = '&' , p += 4 ;\n else if ( * p == '#' ) {\n p ++ ;\n * q ++ = ( char ) atoi ( p ) ;\n while ( * p != ';\n' && * p != '\\0' ) p ++ ;\n }\n }\n else * q ++ = * p ++ ;\n }\n * q = '\\0' ;\n return buf ;\n }"}
{"idx": 10920, "target": 0, "func": "static void virLogResetOutputs ( void ) {\n virLogOutputListFree ( virLogOutputs , virLogNbOutputs ) ;\n virLogOutputs = NULL ;\n virLogNbOutputs = 0 ;\n }"}
{"idx": 10921, "target": 0, "func": "static void test_store_result1 ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n myheader ( \"test_store_result1\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_store_result\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_store_result(col1 int , col2 varchar(50))\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_store_result VALUES(10, 'venu'), (20, 'mysql')\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_store_result(col2) VALUES('monty')\" ) ;\n myquery ( rc ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT * FROM test_store_result\" ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_store_result ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = 0 ;\n while ( mysql_stmt_fetch ( stmt ) != MYSQL_NO_DATA ) rc ++ ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n total rows: %d\" , rc ) ;\n DIE_UNLESS ( rc == 3 ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_store_result ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = 0 ;\n while ( mysql_stmt_fetch ( stmt ) != MYSQL_NO_DATA ) rc ++ ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n total rows: %d\" , rc ) ;\n DIE_UNLESS ( rc == 3 ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 10922, "target": 0, "func": "static int h261_decode_mb ( H261Context * h ) {\n MpegEncContext * const s = & h -> s ;\n int i , cbp , xy ;\n cbp = 63 ;\n do {\n h -> mba_diff = get_vlc2 ( & s -> gb , h261_mba_vlc . table , H261_MBA_VLC_BITS , 2 ) ;\n if ( h -> mba_diff == MBA_STARTCODE ) {\n h -> gob_start_code_skipped = 1 ;\n return SLICE_END ;\n }\n }\n while ( h -> mba_diff == MBA_STUFFING ) ;\n if ( h -> mba_diff < 0 ) {\n if ( get_bits_left ( & s -> gb ) <= 7 ) return SLICE_END ;\n av_log ( s -> avctx , AV_LOG_ERROR , \"illegal mba at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return SLICE_ERROR ;\n }\n h -> mba_diff += 1 ;\n h -> current_mba += h -> mba_diff ;\n if ( h -> current_mba > MBA_STUFFING ) return SLICE_ERROR ;\n s -> mb_x = ( ( h -> gob_number - 1 ) % 2 ) * 11 + ( ( h -> current_mba - 1 ) % 11 ) ;\n s -> mb_y = ( ( h -> gob_number - 1 ) / 2 ) * 3 + ( ( h -> current_mba - 1 ) / 11 ) ;\n xy = s -> mb_x + s -> mb_y * s -> mb_stride ;\n ff_init_block_index ( s ) ;\n ff_update_block_index ( s ) ;\n h -> mtype = get_vlc2 ( & s -> gb , h261_mtype_vlc . table , H261_MTYPE_VLC_BITS , 2 ) ;\n h -> mtype = h261_mtype_map [ h -> mtype ] ;\n if ( IS_QUANT ( h -> mtype ) ) {\n ff_set_qscale ( s , get_bits ( & s -> gb , 5 ) ) ;\n }\n s -> mb_intra = IS_INTRA4x4 ( h -> mtype ) ;\n if ( IS_16X16 ( h -> mtype ) ) {\n if ( ( h -> current_mba == 1 ) || ( h -> current_mba == 12 ) || ( h -> current_mba == 23 ) || ( h -> mba_diff != 1 ) ) {\n h -> current_mv_x = 0 ;\n h -> current_mv_y = 0 ;\n }\n h -> current_mv_x = decode_mv_component ( & s -> gb , h -> current_mv_x ) ;\n h -> current_mv_y = decode_mv_component ( & s -> gb , h -> current_mv_y ) ;\n }\n else {\n h -> current_mv_x = 0 ;\n h -> current_mv_y = 0 ;\n }\n if ( HAS_CBP ( h -> mtype ) ) {\n cbp = get_vlc2 ( & s -> gb , h261_cbp_vlc . table , H261_CBP_VLC_BITS , 2 ) + 1 ;\n }\n if ( s -> mb_intra ) {\n s -> current_picture . mb_type [ xy ] = MB_TYPE_INTRA ;\n goto intra ;\n }\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n s -> current_picture . mb_type [ xy ] = MB_TYPE_16x16 | MB_TYPE_L0 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = h -> current_mv_x * 2 ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = h -> current_mv_y * 2 ;\n intra : if ( s -> mb_intra || HAS_CBP ( h -> mtype ) ) {\n s -> dsp . clear_blocks ( s -> block [ 0 ] ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( h261_decode_block ( h , s -> block [ i ] , i , cbp & 32 ) < 0 ) {\n return SLICE_ERROR ;\n }\n cbp += cbp ;\n }\n }\n else {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) s -> block_last_index [ i ] = - 1 ;\n }\n ff_MPV_decode_mb ( s , s -> block ) ;\n return SLICE_OK ;\n }"}
{"idx": 10923, "target": 0, "func": "int jas_image_ishomosamp ( jas_image_t * image ) {\n jas_image_coord_t hstep ;\n jas_image_coord_t vstep ;\n int result ;\n int i ;\n hstep = jas_image_cmpthstep ( image , 0 ) ;\n vstep = jas_image_cmptvstep ( image , 0 ) ;\n result = 1 ;\n for ( i = 0 ;\n i < image -> numcmpts_ ;\n ++ i ) {\n if ( jas_image_cmpthstep ( image , i ) != hstep || jas_image_cmptvstep ( image , i ) != vstep ) {\n result = 0 ;\n break ;\n }\n }\n return result ;\n }"}
{"idx": 10924, "target": 0, "func": "int vp9_rc_clamp_pframe_target_size ( const VP9_COMP * const cpi , int target ) {\n const RATE_CONTROL * rc = & cpi -> rc ;\n const int min_frame_target = MAX ( rc -> min_frame_bandwidth , rc -> avg_frame_bandwidth >> 5 ) ;\n if ( target < min_frame_target ) target = min_frame_target ;\n if ( cpi -> refresh_golden_frame && rc -> is_src_frame_alt_ref ) {\n target = min_frame_target ;\n }\n if ( target > rc -> max_frame_bandwidth ) target = rc -> max_frame_bandwidth ;\n return target ;\n }"}
{"idx": 10925, "target": 0, "func": "void server_free_command ( struct iovec * * command ) {\n struct iovec * * arg ;\n for ( arg = command ;\n * arg != NULL ;\n arg ++ ) {\n if ( ( * arg ) -> iov_base != NULL ) free ( ( * arg ) -> iov_base ) ;\n free ( * arg ) ;\n }\n free ( command ) ;\n }"}
{"idx": 10926, "target": 1, "func": "static int xps_parse_gradient_stops ( xps_document * doc , char * base_uri , fz_xml * node , struct stop * stops , int maxcount ) {\n fz_colorspace * colorspace ;\n float sample [ 8 ] ;\n float rgb [ 3 ] ;\n int before , after ;\n int count ;\n int i ;\n maxcount -= 2 ;\n count = 0 ;\n while ( node && count < maxcount ) {\n if ( ! strcmp ( fz_xml_tag ( node ) , \"GradientStop\" ) ) {\n char * offset = fz_xml_att ( node , \"Offset\" ) ;\n char * color = fz_xml_att ( node , \"Color\" ) ;\n if ( offset && color ) {\n stops [ count ] . offset = fz_atof ( offset ) ;\n stops [ count ] . index = count ;\n xps_parse_color ( doc , base_uri , color , & colorspace , sample ) ;\n fz_convert_color ( doc -> ctx , fz_device_rgb ( doc -> ctx ) , rgb , colorspace , sample + 1 ) ;\n stops [ count ] . r = rgb [ 0 ] ;\n stops [ count ] . g = rgb [ 1 ] ;\n stops [ count ] . b = rgb [ 2 ] ;\n stops [ count ] . a = sample [ 0 ] ;\n count ++ ;\n }\n }\n node = fz_xml_next ( node ) ;\n }\n if ( count == 0 ) {\n fz_warn ( doc -> ctx , \"gradient brush has no gradient stops\" ) ;\n stops [ 0 ] . offset = 0 ;\n stops [ 0 ] . r = 0 ;\n stops [ 0 ] . g = 0 ;\n stops [ 0 ] . b = 0 ;\n stops [ 0 ] . a = 1 ;\n stops [ 1 ] . offset = 1 ;\n stops [ 1 ] . r = 1 ;\n stops [ 1 ] . g = 1 ;\n stops [ 1 ] . b = 1 ;\n stops [ 1 ] . a = 1 ;\n return 2 ;\n }\n if ( count == maxcount ) fz_warn ( doc -> ctx , \"gradient brush exceeded maximum number of gradient stops\" ) ;\n qsort ( stops , count , sizeof ( struct stop ) , cmp_stop ) ;\n before = - 1 ;\n after = - 1 ;\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n if ( stops [ i ] . offset < 0 ) before = i ;\n if ( stops [ i ] . offset > 1 ) {\n after = i ;\n break ;\n }\n }\n if ( before > 0 ) {\n memmove ( stops , stops + before , ( count - before ) * sizeof ( struct stop ) ) ;\n count -= before ;\n }\n if ( after >= 0 ) count = after + 1 ;\n if ( count == 1 ) {\n stops [ 1 ] = stops [ 0 ] ;\n stops [ 0 ] . offset = 0 ;\n stops [ 1 ] . offset = 1 ;\n return 2 ;\n }\n if ( stops [ 0 ] . offset < 0 ) {\n float d = - stops [ 0 ] . offset / ( stops [ 1 ] . offset - stops [ 0 ] . offset ) ;\n stops [ 0 ] . offset = 0 ;\n stops [ 0 ] . r = lerp ( stops [ 0 ] . r , stops [ 1 ] . r , d ) ;\n stops [ 0 ] . g = lerp ( stops [ 0 ] . g , stops [ 1 ] . g , d ) ;\n stops [ 0 ] . b = lerp ( stops [ 0 ] . b , stops [ 1 ] . b , d ) ;\n stops [ 0 ] . a = lerp ( stops [ 0 ] . a , stops [ 1 ] . a , d ) ;\n }\n if ( stops [ count - 1 ] . offset > 1 ) {\n float d = ( 1 - stops [ count - 2 ] . offset ) / ( stops [ count - 1 ] . offset - stops [ count - 2 ] . offset ) ;\n stops [ count - 1 ] . offset = 1 ;\n stops [ count - 1 ] . r = lerp ( stops [ count - 2 ] . r , stops [ count - 1 ] . r , d ) ;\n stops [ count - 1 ] . g = lerp ( stops [ count - 2 ] . g , stops [ count - 1 ] . g , d ) ;\n stops [ count - 1 ] . b = lerp ( stops [ count - 2 ] . b , stops [ count - 1 ] . b , d ) ;\n stops [ count - 1 ] . a = lerp ( stops [ count - 2 ] . a , stops [ count - 1 ] . a , d ) ;\n }\n if ( stops [ 0 ] . offset > 0 ) {\n memmove ( stops + 1 , stops , count * sizeof ( struct stop ) ) ;\n stops [ 0 ] = stops [ 1 ] ;\n stops [ 0 ] . offset = 0 ;\n count ++ ;\n }\n if ( stops [ count - 1 ] . offset < 1 ) {\n stops [ count ] = stops [ count - 1 ] ;\n stops [ count ] . offset = 1 ;\n count ++ ;\n }\n return count ;\n }"}
{"idx": 10927, "target": 0, "func": "static unsigned char * extra_get_record ( struct isoent * isoent , int * space , int * off , int * loc ) {\n struct extr_rec * rec ;\n isoent = isoent -> parent ;\n if ( off != NULL ) {\n rec = isoent -> extr_rec_list . current ;\n if ( DR_SAFETY > LOGICAL_BLOCK_SIZE - rec -> offset ) rec = rec -> next ;\n }\n else {\n rec = extra_last_record ( isoent ) ;\n if ( rec == NULL || DR_SAFETY > LOGICAL_BLOCK_SIZE - rec -> offset ) {\n rec = malloc ( sizeof ( * rec ) ) ;\n if ( rec == NULL ) return ( NULL ) ;\n rec -> location = 0 ;\n rec -> offset = 0 ;\n rec -> next = NULL ;\n if ( isoent -> extr_rec_list . last == NULL ) isoent -> extr_rec_list . last = & ( isoent -> extr_rec_list . first ) ;\n * isoent -> extr_rec_list . last = rec ;\n isoent -> extr_rec_list . last = & ( rec -> next ) ;\n }\n }\n * space = LOGICAL_BLOCK_SIZE - rec -> offset - DR_SAFETY ;\n if ( * space & 0x01 ) * space -= 1 ;\n if ( off != NULL ) * off = rec -> offset ;\n if ( loc != NULL ) * loc = rec -> location ;\n isoent -> extr_rec_list . current = rec ;\n return ( & rec -> buf [ rec -> offset ] ) ;\n }"}
{"idx": 10928, "target": 0, "func": "static void extra_close_record ( struct ctl_extr_rec * ctl , int ce_size ) {\n int padding = 0 ;\n if ( ce_size > 0 ) extra_tell_used_size ( ctl , ce_size ) ;\n if ( ctl -> cur_len & 0x01 ) {\n ctl -> cur_len ++ ;\n if ( ctl -> bp != NULL ) ctl -> bp [ ctl -> cur_len ] = 0 ;\n padding = 1 ;\n }\n if ( ctl -> use_extr ) {\n if ( ctl -> ce_ptr != NULL ) set_SUSP_CE ( ctl -> ce_ptr , ctl -> extr_loc , ctl -> extr_off , ctl -> cur_len - padding ) ;\n }\n else ctl -> dr_len = ctl -> cur_len ;\n }"}
{"idx": 10929, "target": 0, "func": "static const char * U_CALLCONV _ISCIIgetName ( const UConverter * cnv ) {\n if ( cnv -> extraInfo ) {\n UConverterDataISCII * myData = ( UConverterDataISCII * ) cnv -> extraInfo ;\n return myData -> name ;\n }\n return NULL ;\n }"}
{"idx": 10930, "target": 0, "func": "void proto_registrar_dump_ftypes ( void ) {\n int fte ;\n for ( fte = 0 ;\n fte < FT_NUM_TYPES ;\n fte ++ ) {\n ws_debug_printf ( \"%s\\t%s\\n\" , ftype_name ( ( ftenum_t ) fte ) , ftype_pretty_name ( ( ftenum_t ) fte ) ) ;\n }\n }"}
{"idx": 10931, "target": 0, "func": "static void OnLocationSettingsDialogOutcome ( JNIEnv * env , const base : : android : : JavaParamRef < jclass > & jcaller , jlong callback_ptr , int result ) {\n auto * callback = reinterpret_cast < LocationSettingsDialogOutcomeCallback * > ( callback_ptr ) ;\n std : : move ( * callback ) . Run ( static_cast < LocationSettingsDialogOutcome > ( result ) ) ;\n delete callback ;\n }"}
{"idx": 10932, "target": 0, "func": "Datum GetAttributeByName ( HeapTupleHeader tuple , const char * attname , bool * isNull ) {\n AttrNumber attrno ;\n Datum result ;\n Oid tupType ;\n int32 tupTypmod ;\n TupleDesc tupDesc ;\n HeapTupleData tmptup ;\n int i ;\n if ( attname == NULL ) elog ( ERROR , \"invalid attribute name\" ) ;\n if ( isNull == NULL ) elog ( ERROR , \"a NULL isNull pointer was passed\" ) ;\n if ( tuple == NULL ) {\n * isNull = true ;\n return ( Datum ) 0 ;\n }\n tupType = HeapTupleHeaderGetTypeId ( tuple ) ;\n tupTypmod = HeapTupleHeaderGetTypMod ( tuple ) ;\n tupDesc = lookup_rowtype_tupdesc ( tupType , tupTypmod ) ;\n attrno = InvalidAttrNumber ;\n for ( i = 0 ;\n i < tupDesc -> natts ;\n i ++ ) {\n if ( namestrcmp ( & ( tupDesc -> attrs [ i ] -> attname ) , attname ) == 0 ) {\n attrno = tupDesc -> attrs [ i ] -> attnum ;\n break ;\n }\n }\n if ( attrno == InvalidAttrNumber ) elog ( ERROR , \"attribute \\\"%s\\\" does not exist\" , attname ) ;\n tmptup . t_len = HeapTupleHeaderGetDatumLength ( tuple ) ;\n ItemPointerSetInvalid ( & ( tmptup . t_self ) ) ;\n tmptup . t_tableOid = InvalidOid ;\n tmptup . t_data = tuple ;\n result = heap_getattr ( & tmptup , attrno , tupDesc , isNull ) ;\n ReleaseTupleDesc ( tupDesc ) ;\n return result ;\n }"}
{"idx": 10933, "target": 0, "func": "static void insertionSort ( char * array , int32_t length , int32_t itemSize , UComparator * cmp , const void * context , UErrorCode * pErrorCode ) {\n UAlignedMemory v [ STACK_ITEM_SIZE / sizeof ( UAlignedMemory ) + 1 ] ;\n void * pv ;\n if ( itemSize <= STACK_ITEM_SIZE ) {\n pv = v ;\n }\n else {\n pv = uprv_malloc ( itemSize ) ;\n if ( pv == NULL ) {\n * pErrorCode = U_MEMORY_ALLOCATION_ERROR ;\n return ;\n }\n }\n doInsertionSort ( array , length , itemSize , cmp , context , pv ) ;\n if ( pv != v ) {\n uprv_free ( pv ) ;\n }\n }"}
{"idx": 10934, "target": 0, "func": "static int rm_read_packet ( AVFormatContext * s , AVPacket * pkt ) {\n RMDemuxContext * rm = s -> priv_data ;\n AVStream * st = NULL ;\n int i , len , res , seq = 1 ;\n int64_t timestamp , pos ;\n int flags ;\n for ( ;\n ;\n ) {\n if ( rm -> audio_pkt_cnt ) {\n st = s -> streams [ rm -> audio_stream_num ] ;\n res = ff_rm_retrieve_cache ( s , s -> pb , st , st -> priv_data , pkt ) ;\n if ( res < 0 ) return res ;\n flags = 0 ;\n }\n else {\n if ( rm -> old_format ) {\n RMStream * ast ;\n st = s -> streams [ 0 ] ;\n ast = st -> priv_data ;\n timestamp = AV_NOPTS_VALUE ;\n len = ! ast -> audio_framesize ? RAW_PACKET_SIZE : ast -> coded_framesize * ast -> sub_packet_h / 2 ;\n flags = ( seq ++ == 1 ) ? 2 : 0 ;\n pos = avio_tell ( s -> pb ) ;\n }\n else {\n len = rm_sync ( s , & timestamp , & flags , & i , & pos ) ;\n if ( len > 0 ) st = s -> streams [ i ] ;\n }\n if ( avio_feof ( s -> pb ) ) return AVERROR_EOF ;\n if ( len <= 0 ) return AVERROR ( EIO ) ;\n res = ff_rm_parse_packet ( s , s -> pb , st , st -> priv_data , len , pkt , & seq , flags , timestamp ) ;\n if ( res < - 1 ) return res ;\n if ( ( flags & 2 ) && ( seq & 0x7F ) == 1 ) av_add_index_entry ( st , pos , timestamp , 0 , 0 , AVINDEX_KEYFRAME ) ;\n if ( res ) continue ;\n }\n if ( ( st -> discard >= AVDISCARD_NONKEY && ! ( flags & 2 ) ) || st -> discard >= AVDISCARD_ALL ) {\n av_packet_unref ( pkt ) ;\n }\n else break ;\n }\n return 0 ;\n }"}
{"idx": 10935, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ProfileBrowserTest , DISABLED_CreateOldProfileAsynchronous ) {\n base : : ScopedTempDir temp_dir ;\n ASSERT_TRUE ( temp_dir . CreateUniqueTempDir ( ) ) ;\n CreatePrefsFileInDirectory ( temp_dir . path ( ) ) ;\n MockProfileDelegate delegate ;\n EXPECT_CALL ( delegate , OnProfileCreated ( testing : : NotNull ( ) , true , false ) ) ;\n {\n content : : WindowedNotificationObserver observer ( chrome : : NOTIFICATION_PROFILE_CREATED , content : : NotificationService : : AllSources ( ) ) ;\n std : : unique_ptr < Profile > profile ( CreateProfile ( temp_dir . path ( ) , & delegate , Profile : : CREATE_MODE_ASYNCHRONOUS ) ) ;\n observer . Wait ( ) ;\n CheckChromeVersion ( profile . get ( ) , false ) ;\n }\n FlushIoTaskRunnerAndSpinThreads ( ) ;\n }"}
{"idx": 10936, "target": 0, "func": "int evdns_resolv_conf_parse ( int flags , const char * const filename ) {\n struct stat st ;\n int fd , n , r ;\n u8 * resolv ;\n char * start ;\n int err = 0 ;\n log ( EVDNS_LOG_DEBUG , \"Parsing resolv.conf file %s\" , filename ) ;\n fd = open ( filename , O_RDONLY ) ;\n if ( fd < 0 ) {\n evdns_resolv_set_defaults ( flags ) ;\n return 1 ;\n }\n if ( fstat ( fd , & st ) ) {\n err = 2 ;\n goto out1 ;\n }\n if ( ! st . st_size ) {\n evdns_resolv_set_defaults ( flags ) ;\n err = ( flags & DNS_OPTION_NAMESERVERS ) ? 6 : 0 ;\n goto out1 ;\n }\n if ( st . st_size > 65535 ) {\n err = 3 ;\n goto out1 ;\n }\n resolv = ( u8 * ) malloc ( ( size_t ) st . st_size + 1 ) ;\n if ( ! resolv ) {\n err = 4 ;\n goto out1 ;\n }\n n = 0 ;\n while ( ( r = read ( fd , resolv + n , ( size_t ) st . st_size - n ) ) > 0 ) {\n n += r ;\n if ( n == st . st_size ) break ;\n assert ( n < st . st_size ) ;\n }\n if ( r < 0 ) {\n err = 5 ;\n goto out2 ;\n }\n resolv [ n ] = 0 ;\n start = ( char * ) resolv ;\n for ( ;\n ;\n ) {\n char * const newline = strchr ( start , '\\n' ) ;\n if ( ! newline ) {\n resolv_conf_parse_line ( start , flags ) ;\n break ;\n }\n else {\n * newline = 0 ;\n resolv_conf_parse_line ( start , flags ) ;\n start = newline + 1 ;\n }\n }\n if ( ! server_head && ( flags & DNS_OPTION_NAMESERVERS ) ) {\n evdns_nameserver_ip_add ( \"127.0.0.1\" ) ;\n err = 6 ;\n }\n if ( flags & DNS_OPTION_SEARCH && ( ! global_search_state || global_search_state -> num_domains == 0 ) ) {\n search_set_from_hostname ( ) ;\n }\n out2 : free ( resolv ) ;\n out1 : close ( fd ) ;\n return err ;\n }"}
{"idx": 10937, "target": 0, "func": "TSReturnCode TSHttpTxnPristineUrlGet ( TSHttpTxn txnp , TSMBuffer * bufp , TSMLoc * url_loc ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) url_loc ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n HTTPHdr * hptr = & ( sm -> t_state . hdr_info . client_request ) ;\n if ( hptr -> valid ( ) ) {\n * ( reinterpret_cast < HTTPHdr * * > ( bufp ) ) = hptr ;\n * url_loc = ( TSMLoc ) sm -> t_state . unmapped_url . m_url_impl ;\n if ( sdk_sanity_check_mbuffer ( * bufp ) == TS_SUCCESS ) {\n if ( * url_loc == nullptr ) {\n * url_loc = ( TSMLoc ) hptr -> m_http -> u . req . m_url_impl ;\n }\n if ( * url_loc ) {\n return TS_SUCCESS ;\n }\n }\n }\n return TS_ERROR ;\n }"}
{"idx": 10938, "target": 0, "func": "static int read_block_data ( MLPDecodeContext * m , GetBitContext * gbp , unsigned int substr ) {\n SubStream * s = & m -> substream [ substr ] ;\n unsigned int i , ch , expected_stream_pos = 0 ;\n int ret ;\n if ( s -> data_check_present ) {\n expected_stream_pos = get_bits_count ( gbp ) ;\n expected_stream_pos += get_bits ( gbp , 16 ) ;\n av_log_ask_for_sample ( m -> avctx , \"This file contains some features \" \"we have not tested yet.\\n\" ) ;\n }\n if ( s -> blockpos + s -> blocksize > m -> access_unit_size ) {\n av_log ( m -> avctx , AV_LOG_ERROR , \"too many audio samples in frame\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n memset ( & m -> bypassed_lsbs [ s -> blockpos ] [ 0 ] , 0 , s -> blocksize * sizeof ( m -> bypassed_lsbs [ 0 ] ) ) ;\n for ( i = 0 ;\n i < s -> blocksize ;\n i ++ ) if ( ( ret = read_huff_channels ( m , gbp , substr , i ) ) < 0 ) return ret ;\n for ( ch = s -> min_channel ;\n ch <= s -> max_channel ;\n ch ++ ) filter_channel ( m , substr , ch ) ;\n s -> blockpos += s -> blocksize ;\n if ( s -> data_check_present ) {\n if ( get_bits_count ( gbp ) != expected_stream_pos ) av_log ( m -> avctx , AV_LOG_ERROR , \"block data length mismatch\\n\" ) ;\n skip_bits ( gbp , 8 ) ;\n }\n return 0 ;\n }"}
{"idx": 10939, "target": 0, "func": "static int dissect_h245_ModeDescription ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_set_of ( tvb , offset , actx , tree , hf_index , ett_h245_ModeDescription , ModeDescription_set_of , 1 , 256 , FALSE ) ;\n return offset ;\n }"}
{"idx": 10940, "target": 0, "func": "static int tree_content_get ( struct tree_entry * root , const char * p , struct tree_entry * leaf , int allow_root ) {\n struct tree_content * t ;\n const char * slash1 ;\n unsigned int i , n ;\n struct tree_entry * e ;\n slash1 = strchrnul ( p , '/' ) ;\n n = slash1 - p ;\n if ( ! n && ! allow_root ) die ( \"Empty path component found in input\" ) ;\n if ( ! root -> tree ) load_tree ( root ) ;\n if ( ! n ) {\n e = root ;\n goto found_entry ;\n }\n t = root -> tree ;\n for ( i = 0 ;\n i < t -> entry_count ;\n i ++ ) {\n e = t -> entries [ i ] ;\n if ( e -> name -> str_len == n && ! strncmp_icase ( p , e -> name -> str_dat , n ) ) {\n if ( ! * slash1 ) goto found_entry ;\n if ( ! S_ISDIR ( e -> versions [ 1 ] . mode ) ) return 0 ;\n if ( ! e -> tree ) load_tree ( e ) ;\n return tree_content_get ( e , slash1 + 1 , leaf , 0 ) ;\n }\n }\n return 0 ;\n found_entry : memcpy ( leaf , e , sizeof ( * leaf ) ) ;\n if ( e -> tree && is_null_sha1 ( e -> versions [ 1 ] . sha1 ) ) leaf -> tree = dup_tree_content ( e -> tree ) ;\n else leaf -> tree = NULL ;\n return 1 ;\n }"}
{"idx": 10941, "target": 0, "func": "static void test_cuted_rows ( ) {\n int rc , count ;\n MYSQL_RES * result ;\n myheader ( \"test_cuted_rows\" ) ;\n mysql_query ( mysql , \"DROP TABLE if exists t1\" ) ;\n mysql_query ( mysql , \"DROP TABLE if exists t2\" ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE t1(c1 tinyint)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE t2(c1 int not null)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO t1 values(10), (NULL), (NULL)\" ) ;\n myquery ( rc ) ;\n count = mysql_warning_count ( mysql ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n total warnings: %d\" , count ) ;\n DIE_UNLESS ( count == 0 ) ;\n rc = mysql_query ( mysql , \"INSERT INTO t2 SELECT * FROM t1\" ) ;\n myquery ( rc ) ;\n count = mysql_warning_count ( mysql ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n total warnings: %d\" , count ) ;\n DIE_UNLESS ( count == 2 ) ;\n rc = mysql_query ( mysql , \"SHOW WARNINGS\" ) ;\n myquery ( rc ) ;\n result = mysql_store_result ( mysql ) ;\n mytest ( result ) ;\n rc = my_process_result_set ( result ) ;\n DIE_UNLESS ( rc == 2 ) ;\n mysql_free_result ( result ) ;\n rc = mysql_query ( mysql , \"INSERT INTO t1 VALUES('junk'), (876789)\" ) ;\n myquery ( rc ) ;\n count = mysql_warning_count ( mysql ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n total warnings: %d\" , count ) ;\n DIE_UNLESS ( count == 2 ) ;\n rc = mysql_query ( mysql , \"SHOW WARNINGS\" ) ;\n myquery ( rc ) ;\n result = mysql_store_result ( mysql ) ;\n mytest ( result ) ;\n rc = my_process_result_set ( result ) ;\n DIE_UNLESS ( rc == 2 ) ;\n mysql_free_result ( result ) ;\n }"}
{"idx": 10942, "target": 1, "func": "static void encode_rd_sb_row ( VP9_COMP * cpi , const TileInfo * const tile , int mi_row , TOKENEXTRA * * tp ) {\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCKD * const xd = & cpi -> mb . e_mbd ;\n SPEED_FEATURES * const sf = & cpi -> sf ;\n int mi_col ;\n vpx_memset ( & xd -> left_context , 0 , sizeof ( xd -> left_context ) ) ;\n vpx_memset ( xd -> left_seg_context , 0 , sizeof ( xd -> left_seg_context ) ) ;\n for ( mi_col = tile -> mi_col_start ;\n mi_col < tile -> mi_col_end ;\n mi_col += MI_BLOCK_SIZE ) {\n int dummy_rate ;\n int64_t dummy_dist ;\n int i ;\n if ( sf -> adaptive_pred_interp_filter ) {\n for ( i = 0 ;\n i < 64 ;\n ++ i ) cpi -> leaf_tree [ i ] . pred_interp_filter = SWITCHABLE ;\n for ( i = 0 ;\n i < 64 ;\n ++ i ) {\n cpi -> pc_tree [ i ] . vertical [ 0 ] . pred_interp_filter = SWITCHABLE ;\n cpi -> pc_tree [ i ] . vertical [ 1 ] . pred_interp_filter = SWITCHABLE ;\n cpi -> pc_tree [ i ] . horizontal [ 0 ] . pred_interp_filter = SWITCHABLE ;\n cpi -> pc_tree [ i ] . horizontal [ 1 ] . pred_interp_filter = SWITCHABLE ;\n }\n }\n vp9_zero ( cpi -> mb . pred_mv ) ;\n cpi -> pc_root -> index = 0 ;\n if ( ( sf -> partition_search_type == SEARCH_PARTITION && sf -> use_lastframe_partitioning ) || sf -> partition_search_type == FIXED_PARTITION || sf -> partition_search_type == VAR_BASED_PARTITION || sf -> partition_search_type == VAR_BASED_FIXED_PARTITION ) {\n const int idx_str = cm -> mi_stride * mi_row + mi_col ;\n MODE_INFO * * mi = cm -> mi_grid_visible + idx_str ;\n MODE_INFO * * prev_mi = cm -> prev_mi_grid_visible + idx_str ;\n cpi -> mb . source_variance = UINT_MAX ;\n if ( sf -> partition_search_type == FIXED_PARTITION ) {\n set_offsets ( cpi , tile , mi_row , mi_col , BLOCK_64X64 ) ;\n set_fixed_partitioning ( cpi , tile , mi , mi_row , mi_col , sf -> always_this_block_size ) ;\n rd_use_partition ( cpi , tile , mi , tp , mi_row , mi_col , BLOCK_64X64 , & dummy_rate , & dummy_dist , 1 , cpi -> pc_root ) ;\n }\n else if ( cpi -> skippable_frame || sf -> partition_search_type == VAR_BASED_FIXED_PARTITION ) {\n BLOCK_SIZE bsize ;\n set_offsets ( cpi , tile , mi_row , mi_col , BLOCK_64X64 ) ;\n bsize = get_rd_var_based_fixed_partition ( cpi , mi_row , mi_col ) ;\n set_fixed_partitioning ( cpi , tile , mi , mi_row , mi_col , bsize ) ;\n rd_use_partition ( cpi , tile , mi , tp , mi_row , mi_col , BLOCK_64X64 , & dummy_rate , & dummy_dist , 1 , cpi -> pc_root ) ;\n }\n else if ( sf -> partition_search_type == VAR_BASED_PARTITION ) {\n choose_partitioning ( cpi , tile , mi_row , mi_col ) ;\n rd_use_partition ( cpi , tile , mi , tp , mi_row , mi_col , BLOCK_64X64 , & dummy_rate , & dummy_dist , 1 , cpi -> pc_root ) ;\n }\n else {\n GF_GROUP * gf_grp = & cpi -> twopass . gf_group ;\n int last_was_mid_sequence_overlay = 0 ;\n if ( ( cpi -> oxcf . pass == 2 ) && ( gf_grp -> index ) ) {\n if ( gf_grp -> update_type [ gf_grp -> index - 1 ] == OVERLAY_UPDATE ) last_was_mid_sequence_overlay = 1 ;\n }\n if ( ( cpi -> rc . frames_since_key % sf -> last_partitioning_redo_frequency ) == 0 || last_was_mid_sequence_overlay || cm -> prev_mi == 0 || cm -> show_frame == 0 || cm -> frame_type == KEY_FRAME || cpi -> rc . is_src_frame_alt_ref || ( ( sf -> use_lastframe_partitioning == LAST_FRAME_PARTITION_LOW_MOTION ) && sb_has_motion ( cm , prev_mi , sf -> lf_motion_threshold ) ) ) {\n if ( sf -> auto_min_max_partition_size ) {\n set_offsets ( cpi , tile , mi_row , mi_col , BLOCK_64X64 ) ;\n rd_auto_partition_range ( cpi , tile , mi_row , mi_col , & sf -> min_partition_size , & sf -> max_partition_size ) ;\n }\n rd_pick_partition ( cpi , tile , tp , mi_row , mi_col , BLOCK_64X64 , & dummy_rate , & dummy_dist , INT64_MAX , cpi -> pc_root ) ;\n }\n else {\n if ( sf -> constrain_copy_partition && sb_has_motion ( cm , prev_mi , sf -> lf_motion_threshold ) ) constrain_copy_partitioning ( cpi , tile , mi , prev_mi , mi_row , mi_col , BLOCK_16X16 ) ;\n else copy_partitioning ( cm , mi , prev_mi ) ;\n rd_use_partition ( cpi , tile , mi , tp , mi_row , mi_col , BLOCK_64X64 , & dummy_rate , & dummy_dist , 1 , cpi -> pc_root ) ;\n }\n }\n }\n else {\n if ( sf -> auto_min_max_partition_size ) {\n set_offsets ( cpi , tile , mi_row , mi_col , BLOCK_64X64 ) ;\n rd_auto_partition_range ( cpi , tile , mi_row , mi_col , & sf -> min_partition_size , & sf -> max_partition_size ) ;\n }\n rd_pick_partition ( cpi , tile , tp , mi_row , mi_col , BLOCK_64X64 , & dummy_rate , & dummy_dist , INT64_MAX , cpi -> pc_root ) ;\n }\n }\n }"}
{"idx": 10943, "target": 0, "func": "static void cmd_window_rgrow ( const char * data ) {\n int count ;\n count = * data == '\\0' ? 1 : atoi ( data ) ;\n if ( ! mainwindow_rgrow ( WINDOW_MAIN ( active_win ) , count ) ) {\n printformat_window ( active_win , MSGLEVEL_CLIENTNOTICE , TXT_WINDOW_TOO_SMALL ) ;\n }\n }"}
{"idx": 10944, "target": 0, "func": "static void pdf_run_y ( fz_context * ctx , pdf_processor * proc , float x1 , float y1 , float x3 , float y3 ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n fz_curvetoy ( ctx , pr -> path , x1 , y1 , x3 , y3 ) ;\n }"}
{"idx": 10945, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FullscreenControllerInteractiveTest , MAYBE_TestTabExitsMouseLockOnNavigation ) {\n ASSERT_TRUE ( test_server ( ) -> Start ( ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , test_server ( ) -> GetURL ( kFullscreenMouseLockHTML ) ) ;\n ASSERT_TRUE ( ui_test_utils : : SendKeyPressAndWait ( browser ( ) , ui : : VKEY_1 , false , false , false , false , chrome : : NOTIFICATION_MOUSE_LOCK_CHANGED , content : : NotificationService : : AllSources ( ) ) ) ;\n ASSERT_TRUE ( IsFullscreenBubbleDisplayed ( ) ) ;\n ASSERT_TRUE ( IsMouseLockPermissionRequested ( ) ) ;\n ASSERT_FALSE ( IsMouseLocked ( ) ) ;\n AcceptCurrentFullscreenOrMouseLockRequest ( ) ;\n ASSERT_TRUE ( IsMouseLocked ( ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , GURL ( \"chrome:/ewtab\" ) ) ;\n ASSERT_FALSE ( IsMouseLocked ( ) ) ;\n }"}
{"idx": 10946, "target": 0, "func": "static void decode_partition ( VP9_COMMON * const cm , MACROBLOCKD * const xd , const TileInfo * const tile , int mi_row , int mi_col , vp9_reader * r , BLOCK_SIZE bsize ) {\n const int hbs = num_8x8_blocks_wide_lookup [ bsize ] / 2 ;\n PARTITION_TYPE partition ;\n BLOCK_SIZE subsize , uv_subsize ;\n if ( mi_row >= cm -> mi_rows || mi_col >= cm -> mi_cols ) return ;\n partition = read_partition ( cm , xd , hbs , mi_row , mi_col , bsize , r ) ;\n subsize = get_subsize ( bsize , partition ) ;\n uv_subsize = ss_size_lookup [ subsize ] [ cm -> subsampling_x ] [ cm -> subsampling_y ] ;\n if ( subsize >= BLOCK_8X8 && uv_subsize == BLOCK_INVALID ) vpx_internal_error ( & cm -> error , VPX_CODEC_CORRUPT_FRAME , \"Invalid block size.\" ) ;\n if ( subsize < BLOCK_8X8 ) {\n decode_block ( cm , xd , tile , mi_row , mi_col , r , subsize ) ;\n }\n else {\n switch ( partition ) {\n case PARTITION_NONE : decode_block ( cm , xd , tile , mi_row , mi_col , r , subsize ) ;\n break ;\n case PARTITION_HORZ : decode_block ( cm , xd , tile , mi_row , mi_col , r , subsize ) ;\n if ( mi_row + hbs < cm -> mi_rows ) decode_block ( cm , xd , tile , mi_row + hbs , mi_col , r , subsize ) ;\n break ;\n case PARTITION_VERT : decode_block ( cm , xd , tile , mi_row , mi_col , r , subsize ) ;\n if ( mi_col + hbs < cm -> mi_cols ) decode_block ( cm , xd , tile , mi_row , mi_col + hbs , r , subsize ) ;\n break ;\n case PARTITION_SPLIT : decode_partition ( cm , xd , tile , mi_row , mi_col , r , subsize ) ;\n decode_partition ( cm , xd , tile , mi_row , mi_col + hbs , r , subsize ) ;\n decode_partition ( cm , xd , tile , mi_row + hbs , mi_col , r , subsize ) ;\n decode_partition ( cm , xd , tile , mi_row + hbs , mi_col + hbs , r , subsize ) ;\n break ;\n default : assert ( 0 && \"Invalid partition type\" ) ;\n }\n }\n if ( bsize >= BLOCK_8X8 && ( bsize == BLOCK_8X8 || partition != PARTITION_SPLIT ) ) update_partition_context ( xd , mi_row , mi_col , subsize , bsize ) ;\n }"}
{"idx": 10947, "target": 0, "func": "static decNumber * decQuantizeOp ( decNumber * res , const decNumber * lhs , const decNumber * rhs , decContext * set , Flag quant , uInt * status ) {\n # if DECSUBSET decNumber * alloclhs = NULL ;\n decNumber * allocrhs = NULL ;\n # endif const decNumber * inrhs = rhs ;\n Int reqdigits = set -> digits ;\n Int reqexp ;\n Int residue = 0 ;\n Int etiny = set -> emin - ( reqdigits - 1 ) ;\n # if DECCHECK if ( decCheckOperands ( res , lhs , rhs , set ) ) return res ;\n # endif do {\n # if DECSUBSET if ( ! set -> extended ) {\n if ( lhs -> digits > reqdigits ) {\n alloclhs = decRoundOperand ( lhs , set , status ) ;\n if ( alloclhs == NULL ) break ;\n lhs = alloclhs ;\n }\n if ( rhs -> digits > reqdigits ) {\n allocrhs = decRoundOperand ( rhs , set , status ) ;\n if ( allocrhs == NULL ) break ;\n rhs = allocrhs ;\n }\n }\n # endif if ( SPECIALARGS ) {\n if ( SPECIALARGS & ( DECSNAN | DECNAN ) ) decNaNs ( res , lhs , rhs , set , status ) ;\n else if ( ( lhs -> bits ^ rhs -> bits ) & DECINF ) * status |= DEC_Invalid_operation ;\n else uprv_decNumberCopy ( res , lhs ) ;\n break ;\n }\n if ( quant ) reqexp = inrhs -> exponent ;\n else {\n reqexp = decGetInt ( inrhs ) ;\n }\n # if DECSUBSET if ( ! set -> extended ) etiny = set -> emin ;\n # endif if ( reqexp == BADINT || reqexp == BIGODD || reqexp == BIGEVEN || ( reqexp < etiny ) || ( reqexp > set -> emax ) ) {\n * status |= DEC_Invalid_operation ;\n break ;\n }\n if ( ISZERO ( lhs ) ) {\n uprv_decNumberCopy ( res , lhs ) ;\n res -> exponent = reqexp ;\n # if DECSUBSET if ( ! set -> extended ) res -> bits = 0 ;\n # endif }\n else {\n Int adjust = reqexp - lhs -> exponent ;\n if ( ( lhs -> digits - adjust ) > reqdigits ) {\n * status |= DEC_Invalid_operation ;\n break ;\n }\n if ( adjust > 0 ) {\n decContext workset ;\n workset = * set ;\n workset . digits = lhs -> digits - adjust ;\n decCopyFit ( res , lhs , & workset , & residue , status ) ;\n decApplyRound ( res , & workset , residue , status ) ;\n residue = 0 ;\n if ( res -> exponent > reqexp ) {\n if ( res -> digits == reqdigits ) {\n * status &= ~ ( DEC_Inexact | DEC_Rounded ) ;\n * status |= DEC_Invalid_operation ;\n break ;\n }\n res -> digits = decShiftToMost ( res -> lsu , res -> digits , 1 ) ;\n res -> exponent -- ;\n }\n # if DECSUBSET if ( ISZERO ( res ) && ! set -> extended ) res -> bits = 0 ;\n # endif }\n else {\n uprv_decNumberCopy ( res , lhs ) ;\n if ( adjust < 0 ) {\n res -> digits = decShiftToMost ( res -> lsu , res -> digits , - adjust ) ;\n res -> exponent += adjust ;\n }\n }\n }\n if ( res -> exponent > set -> emax - res -> digits + 1 ) {\n * status |= DEC_Invalid_operation ;\n break ;\n }\n else {\n decFinalize ( res , set , & residue , status ) ;\n * status &= ~ DEC_Underflow ;\n }\n }\n while ( 0 ) ;\n # if DECSUBSET if ( allocrhs != NULL ) free ( allocrhs ) ;\n if ( alloclhs != NULL ) free ( alloclhs ) ;\n # endif return res ;\n }"}
{"idx": 10948, "target": 0, "func": "static void xhci_set_ep_state ( XHCIState * xhci , XHCIEPContext * epctx , XHCIStreamContext * sctx , uint32_t state ) {\n XHCIRing * ring = NULL ;\n uint32_t ctx [ 5 ] ;\n uint32_t ctx2 [ 2 ] ;\n xhci_dma_read_u32s ( xhci , epctx -> pctx , ctx , sizeof ( ctx ) ) ;\n ctx [ 0 ] &= ~ EP_STATE_MASK ;\n ctx [ 0 ] |= state ;\n if ( epctx -> nr_pstreams ) {\n if ( sctx != NULL ) {\n ring = & sctx -> ring ;\n xhci_dma_read_u32s ( xhci , sctx -> pctx , ctx2 , sizeof ( ctx2 ) ) ;\n ctx2 [ 0 ] &= 0xe ;\n ctx2 [ 0 ] |= sctx -> ring . dequeue | sctx -> ring . ccs ;\n ctx2 [ 1 ] = ( sctx -> ring . dequeue >> 16 ) >> 16 ;\n xhci_dma_write_u32s ( xhci , sctx -> pctx , ctx2 , sizeof ( ctx2 ) ) ;\n }\n }\n else {\n ring = & epctx -> ring ;\n }\n if ( ring ) {\n ctx [ 2 ] = ring -> dequeue | ring -> ccs ;\n ctx [ 3 ] = ( ring -> dequeue >> 16 ) >> 16 ;\n DPRINTF ( \"xhci: set epctx: \" DMA_ADDR_FMT \" state=%d dequeue=%08x%08x\\n\" , epctx -> pctx , state , ctx [ 3 ] , ctx [ 2 ] ) ;\n }\n xhci_dma_write_u32s ( xhci , epctx -> pctx , ctx , sizeof ( ctx ) ) ;\n if ( epctx -> state != state ) {\n trace_usb_xhci_ep_state ( epctx -> slotid , epctx -> epid , ep_state_name ( epctx -> state ) , ep_state_name ( state ) ) ;\n }\n epctx -> state = state ;\n }"}
{"idx": 10949, "target": 0, "func": "static void pcnet_bcr_writew ( PCNetState * s , uint32_t rap , uint32_t val ) {\n rap &= 127 ;\n # ifdef PCNET_DEBUG_BCR printf ( \"pcnet_bcr_writew rap=%d val=0x%04x\\n\" , rap , val ) ;\n # endif switch ( rap ) {\n case BCR_SWS : if ( ! ( CSR_STOP ( s ) || CSR_SPND ( s ) ) ) return ;\n val &= ~ 0x0300 ;\n switch ( val & 0x00ff ) {\n case 0 : val |= 0x0200 ;\n break ;\n case 1 : val |= 0x0100 ;\n break ;\n case 2 : case 3 : val |= 0x0300 ;\n break ;\n default : printf ( \"Bad SWSTYLE=0x%02x\\n\" , val & 0xff ) ;\n val = 0x0200 ;\n break ;\n }\n # ifdef PCNET_DEBUG printf ( \"BCR_SWS=0x%04x\\n\" , val ) ;\n # endif case BCR_LNKST : case BCR_LED1 : case BCR_LED2 : case BCR_LED3 : case BCR_MC : case BCR_FDC : case BCR_BSBC : case BCR_EECAS : case BCR_PLAT : s -> bcr [ rap ] = val ;\n break ;\n default : break ;\n }\n }"}
{"idx": 10950, "target": 0, "func": "TSReturnCode TSBase64Encode ( const char * str , size_t str_len , char * dst , size_t dst_size , size_t * length ) {\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) str ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) dst ) == TS_SUCCESS ) ;\n return ats_base64_encode ( str , str_len , dst , dst_size , length ) ? TS_SUCCESS : TS_ERROR ;\n }"}
{"idx": 10951, "target": 0, "func": "static int dissect_h225_RasUsageInfoTypes ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_RasUsageInfoTypes , RasUsageInfoTypes_sequence ) ;\n return offset ;\n }"}
{"idx": 10952, "target": 1, "func": "static void process_envvars ( enum mode * modep ) {\n char * * runp = _environ ;\n char * envline ;\n enum mode mode = normal ;\n char * debug_output = NULL ;\n GLRO ( dl_profile_output ) = & \"/var/tmp\\0/var/profile\" [ __libc_enable_secure ? 9 : 0 ] ;\n while ( ( envline = _dl_next_ld_env_entry ( & runp ) ) != NULL ) {\n size_t len = 0 ;\n while ( envline [ len ] != '\\0' && envline [ len ] != '=' ) ++ len ;\n if ( envline [ len ] != '=' ) continue ;\n switch ( len ) {\n case 4 : if ( memcmp ( envline , \"WARN\" , 4 ) == 0 ) GLRO ( dl_verbose ) = envline [ 5 ] != '\\0' ;\n break ;\n case 5 : if ( memcmp ( envline , \"DEBUG\" , 5 ) == 0 ) {\n process_dl_debug ( & envline [ 6 ] ) ;\n break ;\n }\n if ( memcmp ( envline , \"AUDIT\" , 5 ) == 0 ) process_dl_audit ( & envline [ 6 ] ) ;\n break ;\n case 7 : if ( memcmp ( envline , \"VERBOSE\" , 7 ) == 0 ) {\n version_info = envline [ 8 ] != '\\0' ;\n break ;\n }\n if ( memcmp ( envline , \"PRELOAD\" , 7 ) == 0 ) {\n preloadlist = & envline [ 8 ] ;\n break ;\n }\n if ( memcmp ( envline , \"PROFILE\" , 7 ) == 0 && envline [ 8 ] != '\\0' ) GLRO ( dl_profile ) = & envline [ 8 ] ;\n break ;\n case 8 : if ( memcmp ( envline , \"BIND_NOW\" , 8 ) == 0 ) {\n GLRO ( dl_lazy ) = envline [ 9 ] == '\\0' ;\n break ;\n }\n if ( memcmp ( envline , \"BIND_NOT\" , 8 ) == 0 ) GLRO ( dl_bind_not ) = envline [ 9 ] != '\\0' ;\n break ;\n case 9 : if ( ! __libc_enable_secure && memcmp ( envline , \"SHOW_AUXV\" , 9 ) == 0 ) _dl_show_auxv ( ) ;\n break ;\n case 10 : if ( memcmp ( envline , \"HWCAP_MASK\" , 10 ) == 0 ) GLRO ( dl_hwcap_mask ) = __strtoul_internal ( & envline [ 11 ] , NULL , 0 , 0 ) ;\n break ;\n case 11 : if ( ! __libc_enable_secure && memcmp ( envline , \"ORIGIN_PATH\" , 11 ) == 0 ) GLRO ( dl_origin_path ) = & envline [ 12 ] ;\n break ;\n case 12 : if ( memcmp ( envline , \"LIBRARY_PATH\" , 12 ) == 0 ) {\n library_path = & envline [ 13 ] ;\n break ;\n }\n if ( memcmp ( envline , \"DEBUG_OUTPUT\" , 12 ) == 0 ) {\n debug_output = & envline [ 13 ] ;\n break ;\n }\n if ( ! __libc_enable_secure && memcmp ( envline , \"DYNAMIC_WEAK\" , 12 ) == 0 ) GLRO ( dl_dynamic_weak ) = 1 ;\n break ;\n case 13 : # ifdef EXTRA_LD_ENVVARS_13 EXTRA_LD_ENVVARS_13 # endif if ( ! __libc_enable_secure && memcmp ( envline , \"USE_LOAD_BIAS\" , 13 ) == 0 ) {\n GLRO ( dl_use_load_bias ) = envline [ 14 ] == '1' ? - 1 : 0 ;\n break ;\n }\n if ( memcmp ( envline , \"POINTER_GUARD\" , 13 ) == 0 ) GLRO ( dl_pointer_guard ) = envline [ 14 ] != '0' ;\n break ;\n case 14 : if ( ! __libc_enable_secure && memcmp ( envline , \"PROFILE_OUTPUT\" , 14 ) == 0 && envline [ 15 ] != '\\0' ) GLRO ( dl_profile_output ) = & envline [ 15 ] ;\n break ;\n case 16 : if ( memcmp ( envline , \"TRACE_PRELINKING\" , 16 ) == 0 ) {\n mode = trace ;\n GLRO ( dl_verbose ) = 1 ;\n GLRO ( dl_debug_mask ) |= DL_DEBUG_PRELINK ;\n GLRO ( dl_trace_prelink ) = & envline [ 17 ] ;\n }\n break ;\n case 20 : if ( memcmp ( envline , \"TRACE_LOADED_OBJECTS\" , 20 ) == 0 ) mode = trace ;\n break ;\n # ifdef EXTRA_LD_ENVVARS EXTRA_LD_ENVVARS # endif }\n }\n * modep = mode ;\n if ( __builtin_expect ( __libc_enable_secure , 0 ) ) {\n static const char unsecure_envvars [ ] = # ifdef EXTRA_UNSECURE_ENVVARS EXTRA_UNSECURE_ENVVARS # endif UNSECURE_ENVVARS ;\n const char * nextp ;\n nextp = unsecure_envvars ;\n do {\n unsetenv ( nextp ) ;\n nextp = ( char * ) ( strchr ) ( nextp , '\\0' ) + 1 ;\n }\n while ( * nextp != '\\0' ) ;\n if ( __access ( \"/etc/suid-debug\" , F_OK ) != 0 ) {\n unsetenv ( \"MALLOC_CHECK_\" ) ;\n GLRO ( dl_debug_mask ) = 0 ;\n }\n if ( mode != normal ) _exit ( 5 ) ;\n }\n else if ( any_debug && debug_output != NULL ) {\n # ifdef O_NOFOLLOW const int flags = O_WRONLY | O_APPEND | O_CREAT | O_NOFOLLOW ;\n # else const int flags = O_WRONLY | O_APPEND | O_CREAT ;\n # endif size_t name_len = strlen ( debug_output ) ;\n char buf [ name_len + 12 ] ;\n char * startp ;\n buf [ name_len + 11 ] = '\\0' ;\n startp = _itoa ( __getpid ( ) , & buf [ name_len + 11 ] , 10 , 0 ) ;\n * -- startp = '.' ;\n startp = memcpy ( startp - name_len , debug_output , name_len ) ;\n GLRO ( dl_debug_fd ) = __open ( startp , flags , DEFFILEMODE ) ;\n if ( GLRO ( dl_debug_fd ) == - 1 ) GLRO ( dl_debug_fd ) = STDOUT_FILENO ;\n }\n }"}
{"idx": 10953, "target": 0, "func": "int vp9_get_frame_buffer ( void * cb_priv , size_t min_size , vpx_codec_frame_buffer_t * fb ) {\n int i ;\n InternalFrameBufferList * const int_fb_list = ( InternalFrameBufferList * ) cb_priv ;\n if ( int_fb_list == NULL ) return - 1 ;\n for ( i = 0 ;\n i < int_fb_list -> num_internal_frame_buffers ;\n ++ i ) {\n if ( ! int_fb_list -> int_fb [ i ] . in_use ) break ;\n }\n if ( i == int_fb_list -> num_internal_frame_buffers ) return - 1 ;\n if ( int_fb_list -> int_fb [ i ] . size < min_size ) {\n int_fb_list -> int_fb [ i ] . data = ( uint8_t * ) vpx_realloc ( int_fb_list -> int_fb [ i ] . data , min_size ) ;\n if ( ! int_fb_list -> int_fb [ i ] . data ) return - 1 ;\n vpx_memset ( int_fb_list -> int_fb [ i ] . data , 0 , min_size ) ;\n int_fb_list -> int_fb [ i ] . size = min_size ;\n }\n fb -> data = int_fb_list -> int_fb [ i ] . data ;\n fb -> size = int_fb_list -> int_fb [ i ] . size ;\n int_fb_list -> int_fb [ i ] . in_use = 1 ;\n fb -> priv = & int_fb_list -> int_fb [ i ] ;\n return 0 ;\n }"}
{"idx": 10954, "target": 0, "func": "static void more_files_callback ( GObject * source_object , GAsyncResult * res , gpointer user_data ) {\n DirectoryLoadState * state ;\n NautilusDirectory * directory ;\n GError * error ;\n GList * files , * l ;\n GFileInfo * info ;\n state = user_data ;\n if ( state -> directory == NULL ) {\n directory_load_state_free ( state ) ;\n return ;\n }\n directory = nautilus_directory_ref ( state -> directory ) ;\n g_assert ( directory -> details -> directory_load_in_progress != NULL ) ;\n g_assert ( directory -> details -> directory_load_in_progress == state ) ;\n error = NULL ;\n files = g_file_enumerator_next_files_finish ( state -> enumerator , res , & error ) ;\n for ( l = files ;\n l != NULL ;\n l = l -> next ) {\n info = l -> data ;\n directory_load_one ( directory , info ) ;\n g_object_unref ( info ) ;\n }\n if ( files == NULL ) {\n directory_load_done ( directory , error ) ;\n directory_load_state_free ( state ) ;\n }\n else {\n g_file_enumerator_next_files_async ( state -> enumerator , DIRECTORY_LOAD_ITEMS_PER_CALLBACK , G_PRIORITY_DEFAULT , state -> cancellable , more_files_callback , state ) ;\n }\n nautilus_directory_unref ( directory ) ;\n if ( error ) {\n g_error_free ( error ) ;\n }\n g_list_free ( files ) ;\n }"}
{"idx": 10955, "target": 0, "func": "static struct sk_buff * tipc_tlv_alloc ( int size ) {\n int hdr_len ;\n struct sk_buff * buf ;\n size = TLV_SPACE ( size ) ;\n hdr_len = nlmsg_total_size ( GENL_HDRLEN + TIPC_GENL_HDRLEN ) ;\n buf = alloc_skb ( hdr_len + size , GFP_KERNEL ) ;\n if ( ! buf ) return NULL ;\n skb_reserve ( buf , hdr_len ) ;\n return buf ;\n }"}
{"idx": 10956, "target": 0, "func": "static int32 getuint32 ( FILE * ttf ) {\n int ch1 = getc ( ttf ) ;\n int ch2 = getc ( ttf ) ;\n int ch3 = getc ( ttf ) ;\n int ch4 = getc ( ttf ) ;\n if ( ch4 == EOF ) return ( EOF ) ;\n return ( ( ch1 << 24 ) | ( ch2 << 16 ) | ( ch3 << 8 ) | ch4 ) ;\n }"}
{"idx": 10957, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ExtensionApiTest , SandboxedPages ) {\n EXPECT_TRUE ( RunExtensionSubtest ( \"sandboxed_pages\" , \"main.html\" ) ) << message_ ;\n }"}
{"idx": 10958, "target": 0, "func": "void proto_register_nlm ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_nlm_procedure_v1 , {\n \"V1 Procedure\" , \"nlm.procedure_v1\" , FT_UINT32 , BASE_DEC , VALS ( nlm1_proc_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_nlm_procedure_v2 , {\n \"V2 Procedure\" , \"nlm.procedure_v2\" , FT_UINT32 , BASE_DEC , VALS ( nlm2_proc_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_nlm_procedure_v3 , {\n \"V3 Procedure\" , \"nlm.procedure_v3\" , FT_UINT32 , BASE_DEC , VALS ( nlm3_proc_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_nlm_procedure_v4 , {\n \"V4 Procedure\" , \"nlm.procedure_v4\" , FT_UINT32 , BASE_DEC , VALS ( nlm4_proc_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_nlm_cookie , {\n \"cookie\" , \"nlm.cookie\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_nlm_block , {\n \"block\" , \"nlm.block\" , FT_BOOLEAN , BASE_NONE , TFS ( & tfs_yes_no ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_nlm_exclusive , {\n \"exclusive\" , \"nlm.exclusive\" , FT_BOOLEAN , BASE_NONE , TFS ( & tfs_yes_no ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_nlm_lock , {\n \"lock\" , \"nlm.lock\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_nlm_lock_caller_name , {\n \"caller_name\" , \"nlm.lock.caller_name\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_nlm_lock_owner , {\n \"owner\" , \"nlm.lock.owner\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_nlm_lock_svid , {\n \"svid\" , \"nlm.lock.svid\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_nlm_lock_l_offset64 , {\n \"l_offset\" , \"nlm.lock.l_offset\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_nlm_lock_l_offset , {\n \"l_offset\" , \"nlm.lock.l_offset\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_nlm_lock_l_len64 , {\n \"l_len\" , \"nlm.lock.l_len\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_nlm_lock_l_len , {\n \"l_len\" , \"nlm.lock.l_len\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_nlm_reclaim , {\n \"reclaim\" , \"nlm.reclaim\" , FT_BOOLEAN , BASE_NONE , TFS ( & tfs_yes_no ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_nlm_state , {\n \"state\" , \"nlm.state\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"STATD state\" , HFILL }\n }\n , {\n & hf_nlm_stat , {\n \"stat\" , \"nlm.stat\" , FT_UINT32 , BASE_DEC , VALS ( names_nlm_stats ) , 0 , NULL , HFILL }\n }\n , {\n & hf_nlm_test_stat , {\n \"test_stat\" , \"nlm.test_stat\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_nlm_test_stat_stat , {\n \"stat\" , \"nlm.test_stat.stat\" , FT_UINT32 , BASE_DEC , VALS ( names_nlm_stats ) , 0 , NULL , HFILL }\n }\n , {\n & hf_nlm_holder , {\n \"holder\" , \"nlm.holder\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_nlm_share , {\n \"share\" , \"nlm.share\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_nlm_share_mode , {\n \"mode\" , \"nlm.share.mode\" , FT_UINT32 , BASE_DEC , VALS ( names_fsh_mode ) , 0 , NULL , HFILL }\n }\n , {\n & hf_nlm_share_access , {\n \"access\" , \"nlm.share.access\" , FT_UINT32 , BASE_DEC , VALS ( names_fsh_access ) , 0 , NULL , HFILL }\n }\n , {\n & hf_nlm_share_name , {\n \"name\" , \"nlm.share.name\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_nlm_sequence , {\n \"sequence\" , \"nlm.sequence\" , FT_INT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_nlm_request_in , {\n \"Request MSG in\" , \"nlm.msg_in\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"The RES packet is a response to the MSG in this packet\" , HFILL }\n }\n , {\n & hf_nlm_reply_in , {\n \"Reply RES in\" , \"nlm.res_in\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"The response to this MSG packet is in this packet\" , HFILL }\n }\n , {\n & hf_nlm_time , {\n \"Time from request\" , \"nlm.time\" , FT_RELATIVE_TIME , BASE_NONE , NULL , 0 , \"Time between Request and Reply for async NLM calls\" , HFILL }\n }\n , }\n ;\n static gint * ett [ ] = {\n & ett_nlm , & ett_nlm_lock , }\n ;\n module_t * nlm_module ;\n proto_nlm = proto_register_protocol ( \"Network Lock Manager Protocol\" , \"NLM\" , \"nlm\" ) ;\n proto_register_field_array ( proto_nlm , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n nlm_module = prefs_register_protocol ( proto_nlm , NULL ) ;\n prefs_register_bool_preference ( nlm_module , \"msg_res_matching\" , \"Match MSG/RES packets for async NLM\" , \"Whether the dissector will track and match MSG and RES calls for asynchronous NLM\" , & nlm_match_msgres ) ;\n register_init_routine ( nlm_msg_res_match_init ) ;\n register_cleanup_routine ( nlm_msg_res_match_cleanup ) ;\n }"}
{"idx": 10959, "target": 0, "func": "static int sse_diff_thresh ( BLOCK_SIZE bs , int increase_denoising , int mv_row , int mv_col ) {\n if ( mv_row * mv_row + mv_col * mv_col > noise_motion_thresh ( bs , increase_denoising ) ) {\n return 0 ;\n }\n else {\n return widths [ bs ] * heights [ bs ] * 20 ;\n }\n }"}
{"idx": 10960, "target": 0, "func": "static gint h225ras_call_equal ( gconstpointer k1 , gconstpointer k2 ) {\n const h225ras_call_info_key * key1 = ( const h225ras_call_info_key * ) k1 ;\n const h225ras_call_info_key * key2 = ( const h225ras_call_info_key * ) k2 ;\n return ( key1 -> reqSeqNum == key2 -> reqSeqNum && key1 -> conversation == key2 -> conversation ) ;\n }"}
{"idx": 10961, "target": 0, "func": "static void ohci_sof ( OHCIState * ohci ) {\n ohci_eof_timer ( ohci ) ;\n ohci_set_interrupt ( ohci , OHCI_INTR_SF ) ;\n }"}
{"idx": 10962, "target": 0, "func": "void pdf_tos_newline ( pdf_text_object_state * tos , float leading ) {\n fz_pre_translate ( & tos -> tlm , 0 , - leading ) ;\n tos -> tm = tos -> tlm ;\n }"}
{"idx": 10963, "target": 0, "func": "static inline void vc1_pred_mv_intfr ( VC1Context * v , int n , int dmv_x , int dmv_y , int mvn , int r_x , int r_y , uint8_t * is_intra ) {\n MpegEncContext * s = & v -> s ;\n int xy , wrap , off = 0 ;\n int A [ 2 ] , B [ 2 ] , C [ 2 ] ;\n int px , py ;\n int a_valid = 0 , b_valid = 0 , c_valid = 0 ;\n int field_a , field_b , field_c ;\n int total_valid , num_samefield , num_oppfield ;\n int pos_c , pos_b , n_adj ;\n wrap = s -> b8_stride ;\n xy = s -> block_index [ n ] ;\n if ( s -> mb_intra ) {\n s -> mv [ 0 ] [ n ] [ 0 ] = s -> current_picture . motion_val [ 0 ] [ xy ] [ 0 ] = 0 ;\n s -> mv [ 0 ] [ n ] [ 1 ] = s -> current_picture . motion_val [ 0 ] [ xy ] [ 1 ] = 0 ;\n s -> current_picture . motion_val [ 1 ] [ xy ] [ 0 ] = 0 ;\n s -> current_picture . motion_val [ 1 ] [ xy ] [ 1 ] = 0 ;\n if ( mvn == 1 ) {\n s -> current_picture . motion_val [ 0 ] [ xy + 1 ] [ 0 ] = 0 ;\n s -> current_picture . motion_val [ 0 ] [ xy + 1 ] [ 1 ] = 0 ;\n s -> current_picture . motion_val [ 0 ] [ xy + wrap ] [ 0 ] = 0 ;\n s -> current_picture . motion_val [ 0 ] [ xy + wrap ] [ 1 ] = 0 ;\n s -> current_picture . motion_val [ 0 ] [ xy + wrap + 1 ] [ 0 ] = 0 ;\n s -> current_picture . motion_val [ 0 ] [ xy + wrap + 1 ] [ 1 ] = 0 ;\n v -> luma_mv [ s -> mb_x ] [ 0 ] = v -> luma_mv [ s -> mb_x ] [ 1 ] = 0 ;\n s -> current_picture . motion_val [ 1 ] [ xy + 1 ] [ 0 ] = 0 ;\n s -> current_picture . motion_val [ 1 ] [ xy + 1 ] [ 1 ] = 0 ;\n s -> current_picture . motion_val [ 1 ] [ xy + wrap ] [ 0 ] = 0 ;\n s -> current_picture . motion_val [ 1 ] [ xy + wrap ] [ 1 ] = 0 ;\n s -> current_picture . motion_val [ 1 ] [ xy + wrap + 1 ] [ 0 ] = 0 ;\n s -> current_picture . motion_val [ 1 ] [ xy + wrap + 1 ] [ 1 ] = 0 ;\n }\n return ;\n }\n off = ( ( n == 0 ) || ( n == 1 ) ) ? 1 : - 1 ;\n if ( s -> mb_x || ( n == 1 ) || ( n == 3 ) ) {\n if ( ( v -> blk_mv_type [ xy ] ) || ( ! v -> blk_mv_type [ xy ] && ! v -> blk_mv_type [ xy - 1 ] ) ) {\n A [ 0 ] = s -> current_picture . motion_val [ 0 ] [ xy - 1 ] [ 0 ] ;\n A [ 1 ] = s -> current_picture . motion_val [ 0 ] [ xy - 1 ] [ 1 ] ;\n a_valid = 1 ;\n }\n else {\n A [ 0 ] = ( s -> current_picture . motion_val [ 0 ] [ xy - 1 ] [ 0 ] + s -> current_picture . motion_val [ 0 ] [ xy - 1 + off * wrap ] [ 0 ] + 1 ) >> 1 ;\n A [ 1 ] = ( s -> current_picture . motion_val [ 0 ] [ xy - 1 ] [ 1 ] + s -> current_picture . motion_val [ 0 ] [ xy - 1 + off * wrap ] [ 1 ] + 1 ) >> 1 ;\n a_valid = 1 ;\n }\n if ( ! ( n & 1 ) && v -> is_intra [ s -> mb_x - 1 ] ) {\n a_valid = 0 ;\n A [ 0 ] = A [ 1 ] = 0 ;\n }\n }\n else A [ 0 ] = A [ 1 ] = 0 ;\n B [ 0 ] = B [ 1 ] = C [ 0 ] = C [ 1 ] = 0 ;\n if ( n == 0 || n == 1 || v -> blk_mv_type [ xy ] ) {\n if ( ! s -> first_slice_line ) {\n if ( ! v -> is_intra [ s -> mb_x - s -> mb_stride ] ) {\n b_valid = 1 ;\n n_adj = n | 2 ;\n pos_b = s -> block_index [ n_adj ] - 2 * wrap ;\n if ( v -> blk_mv_type [ pos_b ] && v -> blk_mv_type [ xy ] ) {\n n_adj = ( n & 2 ) | ( n & 1 ) ;\n }\n B [ 0 ] = s -> current_picture . motion_val [ 0 ] [ s -> block_index [ n_adj ] - 2 * wrap ] [ 0 ] ;\n B [ 1 ] = s -> current_picture . motion_val [ 0 ] [ s -> block_index [ n_adj ] - 2 * wrap ] [ 1 ] ;\n if ( v -> blk_mv_type [ pos_b ] && ! v -> blk_mv_type [ xy ] ) {\n B [ 0 ] = ( B [ 0 ] + s -> current_picture . motion_val [ 0 ] [ s -> block_index [ n_adj ^ 2 ] - 2 * wrap ] [ 0 ] + 1 ) >> 1 ;\n B [ 1 ] = ( B [ 1 ] + s -> current_picture . motion_val [ 0 ] [ s -> block_index [ n_adj ^ 2 ] - 2 * wrap ] [ 1 ] + 1 ) >> 1 ;\n }\n }\n if ( s -> mb_width > 1 ) {\n if ( ! v -> is_intra [ s -> mb_x - s -> mb_stride + 1 ] ) {\n c_valid = 1 ;\n n_adj = 2 ;\n pos_c = s -> block_index [ 2 ] - 2 * wrap + 2 ;\n if ( v -> blk_mv_type [ pos_c ] && v -> blk_mv_type [ xy ] ) {\n n_adj = n & 2 ;\n }\n C [ 0 ] = s -> current_picture . motion_val [ 0 ] [ s -> block_index [ n_adj ] - 2 * wrap + 2 ] [ 0 ] ;\n C [ 1 ] = s -> current_picture . motion_val [ 0 ] [ s -> block_index [ n_adj ] - 2 * wrap + 2 ] [ 1 ] ;\n if ( v -> blk_mv_type [ pos_c ] && ! v -> blk_mv_type [ xy ] ) {\n C [ 0 ] = ( 1 + C [ 0 ] + ( s -> current_picture . motion_val [ 0 ] [ s -> block_index [ n_adj ^ 2 ] - 2 * wrap + 2 ] [ 0 ] ) ) >> 1 ;\n C [ 1 ] = ( 1 + C [ 1 ] + ( s -> current_picture . motion_val [ 0 ] [ s -> block_index [ n_adj ^ 2 ] - 2 * wrap + 2 ] [ 1 ] ) ) >> 1 ;\n }\n if ( s -> mb_x == s -> mb_width - 1 ) {\n if ( ! v -> is_intra [ s -> mb_x - s -> mb_stride - 1 ] ) {\n c_valid = 1 ;\n n_adj = 3 ;\n pos_c = s -> block_index [ 3 ] - 2 * wrap - 2 ;\n if ( v -> blk_mv_type [ pos_c ] && v -> blk_mv_type [ xy ] ) {\n n_adj = n | 1 ;\n }\n C [ 0 ] = s -> current_picture . motion_val [ 0 ] [ s -> block_index [ n_adj ] - 2 * wrap - 2 ] [ 0 ] ;\n C [ 1 ] = s -> current_picture . motion_val [ 0 ] [ s -> block_index [ n_adj ] - 2 * wrap - 2 ] [ 1 ] ;\n if ( v -> blk_mv_type [ pos_c ] && ! v -> blk_mv_type [ xy ] ) {\n C [ 0 ] = ( 1 + C [ 0 ] + s -> current_picture . motion_val [ 0 ] [ s -> block_index [ 1 ] - 2 * wrap - 2 ] [ 0 ] ) >> 1 ;\n C [ 1 ] = ( 1 + C [ 1 ] + s -> current_picture . motion_val [ 0 ] [ s -> block_index [ 1 ] - 2 * wrap - 2 ] [ 1 ] ) >> 1 ;\n }\n }\n else c_valid = 0 ;\n }\n }\n }\n }\n }\n else {\n pos_b = s -> block_index [ 1 ] ;\n b_valid = 1 ;\n B [ 0 ] = s -> current_picture . motion_val [ 0 ] [ pos_b ] [ 0 ] ;\n B [ 1 ] = s -> current_picture . motion_val [ 0 ] [ pos_b ] [ 1 ] ;\n pos_c = s -> block_index [ 0 ] ;\n c_valid = 1 ;\n C [ 0 ] = s -> current_picture . motion_val [ 0 ] [ pos_c ] [ 0 ] ;\n C [ 1 ] = s -> current_picture . motion_val [ 0 ] [ pos_c ] [ 1 ] ;\n }\n total_valid = a_valid + b_valid + c_valid ;\n if ( ! s -> mb_x && ! ( n == 1 || n == 3 ) ) {\n A [ 0 ] = A [ 1 ] = 0 ;\n }\n if ( ( s -> first_slice_line && v -> blk_mv_type [ xy ] ) || ( s -> first_slice_line && ! ( n & 2 ) ) ) {\n B [ 0 ] = B [ 1 ] = C [ 0 ] = C [ 1 ] = 0 ;\n }\n if ( ! v -> blk_mv_type [ xy ] ) {\n if ( s -> mb_width == 1 ) {\n px = B [ 0 ] ;\n py = B [ 1 ] ;\n }\n else {\n if ( total_valid >= 2 ) {\n px = mid_pred ( A [ 0 ] , B [ 0 ] , C [ 0 ] ) ;\n py = mid_pred ( A [ 1 ] , B [ 1 ] , C [ 1 ] ) ;\n }\n else if ( total_valid ) {\n if ( a_valid ) {\n px = A [ 0 ] ;\n py = A [ 1 ] ;\n }\n if ( b_valid ) {\n px = B [ 0 ] ;\n py = B [ 1 ] ;\n }\n if ( c_valid ) {\n px = C [ 0 ] ;\n py = C [ 1 ] ;\n }\n }\n else px = py = 0 ;\n }\n }\n else {\n if ( a_valid ) field_a = ( A [ 1 ] & 4 ) ? 1 : 0 ;\n else field_a = 0 ;\n if ( b_valid ) field_b = ( B [ 1 ] & 4 ) ? 1 : 0 ;\n else field_b = 0 ;\n if ( c_valid ) field_c = ( C [ 1 ] & 4 ) ? 1 : 0 ;\n else field_c = 0 ;\n num_oppfield = field_a + field_b + field_c ;\n num_samefield = total_valid - num_oppfield ;\n if ( total_valid == 3 ) {\n if ( ( num_samefield == 3 ) || ( num_oppfield == 3 ) ) {\n px = mid_pred ( A [ 0 ] , B [ 0 ] , C [ 0 ] ) ;\n py = mid_pred ( A [ 1 ] , B [ 1 ] , C [ 1 ] ) ;\n }\n else if ( num_samefield >= num_oppfield ) {\n px = ! field_a ? A [ 0 ] : B [ 0 ] ;\n py = ! field_a ? A [ 1 ] : B [ 1 ] ;\n }\n else {\n px = field_a ? A [ 0 ] : B [ 0 ] ;\n py = field_a ? A [ 1 ] : B [ 1 ] ;\n }\n }\n else if ( total_valid == 2 ) {\n if ( num_samefield >= num_oppfield ) {\n if ( ! field_a && a_valid ) {\n px = A [ 0 ] ;\n py = A [ 1 ] ;\n }\n else if ( ! field_b && b_valid ) {\n px = B [ 0 ] ;\n py = B [ 1 ] ;\n }\n else if ( c_valid ) {\n px = C [ 0 ] ;\n py = C [ 1 ] ;\n }\n else px = py = 0 ;\n }\n else {\n if ( field_a && a_valid ) {\n px = A [ 0 ] ;\n py = A [ 1 ] ;\n }\n else if ( field_b && b_valid ) {\n px = B [ 0 ] ;\n py = B [ 1 ] ;\n }\n else if ( c_valid ) {\n px = C [ 0 ] ;\n py = C [ 1 ] ;\n }\n }\n }\n else if ( total_valid == 1 ) {\n px = ( a_valid ) ? A [ 0 ] : ( ( b_valid ) ? B [ 0 ] : C [ 0 ] ) ;\n py = ( a_valid ) ? A [ 1 ] : ( ( b_valid ) ? B [ 1 ] : C [ 1 ] ) ;\n }\n else px = py = 0 ;\n }\n s -> mv [ 0 ] [ n ] [ 0 ] = s -> current_picture . motion_val [ 0 ] [ xy ] [ 0 ] = ( ( px + dmv_x + r_x ) & ( ( r_x << 1 ) - 1 ) ) - r_x ;\n s -> mv [ 0 ] [ n ] [ 1 ] = s -> current_picture . motion_val [ 0 ] [ xy ] [ 1 ] = ( ( py + dmv_y + r_y ) & ( ( r_y << 1 ) - 1 ) ) - r_y ;\n if ( mvn == 1 ) {\n s -> current_picture . motion_val [ 0 ] [ xy + 1 ] [ 0 ] = s -> current_picture . motion_val [ 0 ] [ xy ] [ 0 ] ;\n s -> current_picture . motion_val [ 0 ] [ xy + 1 ] [ 1 ] = s -> current_picture . motion_val [ 0 ] [ xy ] [ 1 ] ;\n s -> current_picture . motion_val [ 0 ] [ xy + wrap ] [ 0 ] = s -> current_picture . motion_val [ 0 ] [ xy ] [ 0 ] ;\n s -> current_picture . motion_val [ 0 ] [ xy + wrap ] [ 1 ] = s -> current_picture . motion_val [ 0 ] [ xy ] [ 1 ] ;\n s -> current_picture . motion_val [ 0 ] [ xy + wrap + 1 ] [ 0 ] = s -> current_picture . motion_val [ 0 ] [ xy ] [ 0 ] ;\n s -> current_picture . motion_val [ 0 ] [ xy + wrap + 1 ] [ 1 ] = s -> current_picture . motion_val [ 0 ] [ xy ] [ 1 ] ;\n }\n else if ( mvn == 2 ) {\n s -> current_picture . motion_val [ 0 ] [ xy + 1 ] [ 0 ] = s -> current_picture . motion_val [ 0 ] [ xy ] [ 0 ] ;\n s -> current_picture . motion_val [ 0 ] [ xy + 1 ] [ 1 ] = s -> current_picture . motion_val [ 0 ] [ xy ] [ 1 ] ;\n s -> mv [ 0 ] [ n + 1 ] [ 0 ] = s -> mv [ 0 ] [ n ] [ 0 ] ;\n s -> mv [ 0 ] [ n + 1 ] [ 1 ] = s -> mv [ 0 ] [ n ] [ 1 ] ;\n }\n }"}
{"idx": 10964, "target": 0, "func": "void vp9_set_rd_speed_thresholds ( VP9_COMP * cpi ) {\n int i ;\n RD_OPT * const rd = & cpi -> rd ;\n SPEED_FEATURES * const sf = & cpi -> sf ;\n for ( i = 0 ;\n i < MAX_MODES ;\n ++ i ) rd -> thresh_mult [ i ] = cpi -> oxcf . mode == BEST ? - 500 : 0 ;\n if ( sf -> adaptive_rd_thresh ) {\n rd -> thresh_mult [ THR_NEARESTMV ] = 300 ;\n rd -> thresh_mult [ THR_NEARESTG ] = 300 ;\n rd -> thresh_mult [ THR_NEARESTA ] = 300 ;\n }\n else {\n rd -> thresh_mult [ THR_NEARESTMV ] = 0 ;\n rd -> thresh_mult [ THR_NEARESTG ] = 0 ;\n rd -> thresh_mult [ THR_NEARESTA ] = 0 ;\n }\n rd -> thresh_mult [ THR_DC ] += 1000 ;\n rd -> thresh_mult [ THR_NEWMV ] += 1000 ;\n rd -> thresh_mult [ THR_NEWA ] += 1000 ;\n rd -> thresh_mult [ THR_NEWG ] += 1000 ;\n rd -> thresh_mult [ THR_NEWMV ] += sf -> elevate_newmv_thresh ;\n rd -> thresh_mult [ THR_NEARMV ] += 1000 ;\n rd -> thresh_mult [ THR_NEARA ] += 1000 ;\n rd -> thresh_mult [ THR_COMP_NEARESTLA ] += 1000 ;\n rd -> thresh_mult [ THR_COMP_NEARESTGA ] += 1000 ;\n rd -> thresh_mult [ THR_TM ] += 1000 ;\n rd -> thresh_mult [ THR_COMP_NEARLA ] += 1500 ;\n rd -> thresh_mult [ THR_COMP_NEWLA ] += 2000 ;\n rd -> thresh_mult [ THR_NEARG ] += 1000 ;\n rd -> thresh_mult [ THR_COMP_NEARGA ] += 1500 ;\n rd -> thresh_mult [ THR_COMP_NEWGA ] += 2000 ;\n rd -> thresh_mult [ THR_ZEROMV ] += 2000 ;\n rd -> thresh_mult [ THR_ZEROG ] += 2000 ;\n rd -> thresh_mult [ THR_ZEROA ] += 2000 ;\n rd -> thresh_mult [ THR_COMP_ZEROLA ] += 2500 ;\n rd -> thresh_mult [ THR_COMP_ZEROGA ] += 2500 ;\n rd -> thresh_mult [ THR_H_PRED ] += 2000 ;\n rd -> thresh_mult [ THR_V_PRED ] += 2000 ;\n rd -> thresh_mult [ THR_D45_PRED ] += 2500 ;\n rd -> thresh_mult [ THR_D135_PRED ] += 2500 ;\n rd -> thresh_mult [ THR_D117_PRED ] += 2500 ;\n rd -> thresh_mult [ THR_D153_PRED ] += 2500 ;\n rd -> thresh_mult [ THR_D207_PRED ] += 2500 ;\n rd -> thresh_mult [ THR_D63_PRED ] += 2500 ;\n }"}
{"idx": 10965, "target": 1, "func": "void kadmin_modprinc ( int argc , char * argv [ ] ) {\n kadm5_principal_ent_rec princ , oldprinc ;\n krb5_principal kprinc = NULL ;\n long mask ;\n krb5_error_code retval ;\n char * pass , * canon = NULL ;\n krb5_boolean randkey = FALSE ;\n int n_ks_tuple = 0 ;\n krb5_key_salt_tuple * ks_tuple = NULL ;\n if ( argc < 2 ) {\n kadmin_modprinc_usage ( ) ;\n return ;\n }\n memset ( & oldprinc , 0 , sizeof ( oldprinc ) ) ;\n memset ( & princ , 0 , sizeof ( princ ) ) ;\n retval = kadmin_parse_name ( argv [ argc - 1 ] , & kprinc ) ;\n if ( retval ) {\n com_err ( \"modify_principal\" , retval , _ ( \"while parsing principal\" ) ) ;\n return ;\n }\n retval = krb5_unparse_name ( context , kprinc , & canon ) ;\n if ( retval ) {\n com_err ( \"modify_principal\" , retval , _ ( \"while canonicalizing principal\" ) ) ;\n goto cleanup ;\n }\n retval = kadm5_get_principal ( handle , kprinc , & oldprinc , KADM5_PRINCIPAL_NORMAL_MASK ) ;\n if ( retval ) {\n com_err ( \"modify_principal\" , retval , _ ( \"while getting \\\"%s\\\".\" ) , canon ) ;\n goto cleanup ;\n }\n princ . attributes = oldprinc . attributes ;\n kadm5_free_principal_ent ( handle , & oldprinc ) ;\n retval = kadmin_parse_princ_args ( argc , argv , & princ , & mask , & pass , & randkey , & ks_tuple , & n_ks_tuple , \"modify_principal\" ) ;\n if ( retval || ks_tuple != NULL || randkey || pass ) {\n kadmin_modprinc_usage ( ) ;\n goto cleanup ;\n }\n if ( mask ) {\n retval = kadm5_modify_principal ( handle , & princ , mask ) ;\n }\n if ( retval ) {\n com_err ( \"modify_principal\" , retval , _ ( \"while modifying \\\"%s\\\".\" ) , canon ) ;\n goto cleanup ;\n }\n printf ( _ ( \"Principal \\\"%s\\\" modified.\\n\" ) , canon ) ;\n cleanup : krb5_free_principal ( context , kprinc ) ;\n krb5_free_principal ( context , princ . principal ) ;\n kadmin_free_tl_data ( & princ . n_tl_data , & princ . tl_data ) ;\n free ( canon ) ;\n free ( ks_tuple ) ;\n }"}
{"idx": 10966, "target": 0, "func": "static int read_frame ( struct VpxDecInputContext * input , uint8_t * * buf , size_t * bytes_in_buffer , size_t * buffer_size ) {\n switch ( input -> vpx_input_ctx -> file_type ) {\n # if CONFIG_WEBM_IO case FILE_TYPE_WEBM : return webm_read_frame ( input -> webm_ctx , buf , bytes_in_buffer , buffer_size ) ;\n # endif case FILE_TYPE_RAW : return raw_read_frame ( input -> vpx_input_ctx -> file , buf , bytes_in_buffer , buffer_size ) ;\n case FILE_TYPE_IVF : return ivf_read_frame ( input -> vpx_input_ctx -> file , buf , bytes_in_buffer , buffer_size ) ;\n default : return 1 ;\n }\n }"}
{"idx": 10967, "target": 0, "func": "static void pdf_run_v ( fz_context * ctx , pdf_processor * proc , float x2 , float y2 , float x3 , float y3 ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n fz_curvetov ( ctx , pr -> path , x2 , y2 , x3 , y3 ) ;\n }"}
{"idx": 10968, "target": 0, "func": "static Py_ssize_t string_buffer_getcharbuf ( PyStringObject * self , Py_ssize_t index , const char * * ptr ) {\n if ( index != 0 ) {\n PyErr_SetString ( PyExc_SystemError , \"accessing non-existent string segment\" ) ;\n return - 1 ;\n }\n * ptr = self -> ob_sval ;\n return Py_SIZE ( self ) ;\n }"}
{"idx": 10969, "target": 1, "func": "int parse_RANGEBOUNDARY ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree , const char * fmt , ... ) {\n guint32 ulType ;\n guint8 labelPresent ;\n proto_item * item ;\n proto_tree * tree ;\n const char * txt ;\n struct CBaseStorageVariant prval ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_RANGEBOUNDARY , & item , txt ) ;\n ulType = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_mswsp_rangeboundry_ultype , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n proto_item_append_text ( item , \": Type 0x%08x\" , ulType ) ;\n offset += 4 ;\n ZERO_STRUCT ( prval ) ;\n offset = parse_CBaseStorageVariant ( tvb , offset , tree , pad_tree , & prval , \"prVal\" ) ;\n labelPresent = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_mswsp_rangeboundry_labelpresent , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 1 ;\n if ( labelPresent ) {\n guint32 ccLabel ;\n const guint8 * label ;\n offset = parse_padding ( tvb , offset , 4 , pad_tree , \"paddingLabelPresent\" ) ;\n ccLabel = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_item_ret_uint ( tree , hf_mswsp_rangeboundry_cclabel , tvb , offset , 4 , ENC_LITTLE_ENDIAN , & ccLabel ) ;\n offset += 4 ;\n proto_tree_add_item_ret_string ( tree , hf_mswsp_rangeboundry_label , tvb , offset , 2 * ccLabel , ENC_LITTLE_ENDIAN | ENC_UCS_2 , wmem_packet_scope ( ) , & label ) ;\n proto_item_append_text ( item , \" Label: \\\"%s\\\"\" , label ) ;\n offset += 2 * ccLabel ;\n }\n proto_item_append_text ( item , \" Val: %s\" , str_CBaseStorageVariant ( & prval , TRUE ) ) ;\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 10970, "target": 0, "func": "MSG_PROCESS_RETURN tls_process_client_certificate ( SSL * s , PACKET * pkt ) {\n int i , al = SSL_AD_INTERNAL_ERROR , ret = MSG_PROCESS_ERROR ;\n X509 * x = NULL ;\n unsigned long l , llen ;\n const unsigned char * certstart , * certbytes ;\n STACK_OF ( X509 ) * sk = NULL ;\n PACKET spkt ;\n if ( ( sk = sk_X509_new_null ( ) ) == NULL ) {\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_CERTIFICATE , ERR_R_MALLOC_FAILURE ) ;\n goto f_err ;\n }\n if ( ! PACKET_get_net_3 ( pkt , & llen ) || ! PACKET_get_sub_packet ( pkt , & spkt , llen ) || PACKET_remaining ( pkt ) != 0 ) {\n al = SSL_AD_DECODE_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_CERTIFICATE , SSL_R_LENGTH_MISMATCH ) ;\n goto f_err ;\n }\n while ( PACKET_remaining ( & spkt ) > 0 ) {\n if ( ! PACKET_get_net_3 ( & spkt , & l ) || ! PACKET_get_bytes ( & spkt , & certbytes , l ) ) {\n al = SSL_AD_DECODE_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_CERTIFICATE , SSL_R_CERT_LENGTH_MISMATCH ) ;\n goto f_err ;\n }\n certstart = certbytes ;\n x = d2i_X509 ( NULL , ( const unsigned char * * ) & certbytes , l ) ;\n if ( x == NULL ) {\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_CERTIFICATE , ERR_R_ASN1_LIB ) ;\n goto f_err ;\n }\n if ( certbytes != ( certstart + l ) ) {\n al = SSL_AD_DECODE_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_CERTIFICATE , SSL_R_CERT_LENGTH_MISMATCH ) ;\n goto f_err ;\n }\n if ( ! sk_X509_push ( sk , x ) ) {\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_CERTIFICATE , ERR_R_MALLOC_FAILURE ) ;\n goto f_err ;\n }\n x = NULL ;\n }\n if ( sk_X509_num ( sk ) <= 0 ) {\n if ( s -> version == SSL3_VERSION ) {\n al = SSL_AD_HANDSHAKE_FAILURE ;\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_CERTIFICATE , SSL_R_NO_CERTIFICATES_RETURNED ) ;\n goto f_err ;\n }\n else if ( ( s -> verify_mode & SSL_VERIFY_PEER ) && ( s -> verify_mode & SSL_VERIFY_FAIL_IF_NO_PEER_CERT ) ) {\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_CERTIFICATE , SSL_R_PEER_DID_NOT_RETURN_A_CERTIFICATE ) ;\n al = SSL_AD_HANDSHAKE_FAILURE ;\n goto f_err ;\n }\n if ( s -> s3 -> handshake_buffer && ! ssl3_digest_cached_records ( s , 0 ) ) {\n goto f_err ;\n }\n }\n else {\n EVP_PKEY * pkey ;\n i = ssl_verify_cert_chain ( s , sk ) ;\n if ( i <= 0 ) {\n al = ssl_verify_alarm_type ( s -> verify_result ) ;\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_CERTIFICATE , SSL_R_CERTIFICATE_VERIFY_FAILED ) ;\n goto f_err ;\n }\n if ( i > 1 ) {\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_CERTIFICATE , i ) ;\n al = SSL_AD_HANDSHAKE_FAILURE ;\n goto f_err ;\n }\n pkey = X509_get0_pubkey ( sk_X509_value ( sk , 0 ) ) ;\n if ( pkey == NULL ) {\n al = SSL3_AD_HANDSHAKE_FAILURE ;\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_CERTIFICATE , SSL_R_UNKNOWN_CERTIFICATE_TYPE ) ;\n goto f_err ;\n }\n }\n X509_free ( s -> session -> peer ) ;\n s -> session -> peer = sk_X509_shift ( sk ) ;\n s -> session -> verify_result = s -> verify_result ;\n sk_X509_pop_free ( s -> session -> peer_chain , X509_free ) ;\n s -> session -> peer_chain = sk ;\n sk = NULL ;\n ret = MSG_PROCESS_CONTINUE_READING ;\n goto done ;\n f_err : ssl3_send_alert ( s , SSL3_AL_FATAL , al ) ;\n ossl_statem_set_error ( s ) ;\n done : X509_free ( x ) ;\n sk_X509_pop_free ( sk , X509_free ) ;\n return ret ;\n }"}
{"idx": 10971, "target": 0, "func": "static int restore_time ( struct cpio * cpio , struct archive_entry * entry , const char * name , int fd ) {\n # ifndef HAVE_UTIMES static int warned = 0 ;\n ( void ) cpio ;\n ( void ) entry ;\n ( void ) name ;\n if ( ! warned ) lafe_warnc ( 0 , \"Can't restore access times on this platform\" ) ;\n warned = 1 ;\n return ( fd ) ;\n # else # if defined ( _WIN32 ) && ! defined ( __CYGWIN__ ) struct __timeval times [ 2 ] ;\n # else struct timeval times [ 2 ] ;\n # endif if ( ! cpio -> option_atime_restore ) return ( fd ) ;\n times [ 1 ] . tv_sec = archive_entry_mtime ( entry ) ;\n times [ 1 ] . tv_usec = archive_entry_mtime_nsec ( entry ) / 1000 ;\n times [ 0 ] . tv_sec = archive_entry_atime ( entry ) ;\n times [ 0 ] . tv_usec = archive_entry_atime_nsec ( entry ) / 1000 ;\n # if defined ( HAVE_FUTIMES ) && ! defined ( __CYGWIN__ ) if ( fd >= 0 && futimes ( fd , times ) == 0 ) return ( fd ) ;\n # endif if ( fd >= 0 ) {\n close ( fd ) ;\n fd = - 1 ;\n }\n # ifdef HAVE_LUTIMES if ( lutimes ( name , times ) != 0 ) # else if ( ( AE_IFLNK != archive_entry_filetype ( entry ) ) && utimes ( name , times ) != 0 ) # endif lafe_warnc ( errno , \"Can't update time for %s\" , name ) ;\n # endif return ( fd ) ;\n }"}
{"idx": 10972, "target": 0, "func": "extern List as_mysql_get_resvs ( mysql_conn_t * mysql_conn , uid_t uid , slurmdb_reservation_cond_t * resv_cond ) {\n char * query = NULL ;\n char * extra = NULL ;\n char * tmp = NULL ;\n List resv_list = NULL ;\n int i = 0 , is_admin = 1 ;\n MYSQL_RES * result = NULL ;\n MYSQL_ROW row ;\n uint16_t private_data = 0 ;\n slurmdb_job_cond_t job_cond ;\n void * curr_cluster = NULL ;\n List local_cluster_list = NULL ;\n List use_cluster_list = as_mysql_cluster_list ;\n ListIterator itr = NULL ;\n char * cluster_name = NULL ;\n uint16_t with_usage = 0 ;\n char * resv_req_inx [ ] = {\n \"id_resv\" , \"assoclist\" , \"flags\" , \"nodelist\" , \"node_inx\" , \"resv_name\" , \"time_start\" , \"time_end\" , \"tres\" }\n ;\n enum {\n RESV_REQ_ID , RESV_REQ_ASSOCS , RESV_REQ_FLAGS , RESV_REQ_NODES , RESV_REQ_NODE_INX , RESV_REQ_NAME , RESV_REQ_START , RESV_REQ_END , RESV_REQ_TRES , RESV_REQ_COUNT }\n ;\n if ( ! resv_cond ) {\n xstrcat ( extra , \" where deleted=0\" ) ;\n goto empty ;\n }\n if ( check_connection ( mysql_conn ) != SLURM_SUCCESS ) return NULL ;\n private_data = slurm_get_private_data ( ) ;\n if ( private_data & PRIVATE_DATA_RESERVATIONS ) {\n if ( ! ( is_admin = is_user_min_admin_level ( mysql_conn , uid , SLURMDB_ADMIN_OPERATOR ) ) ) {\n error ( \"Only admins can look at reservations\" ) ;\n errno = ESLURM_ACCESS_DENIED ;\n return NULL ;\n }\n }\n memset ( & job_cond , 0 , sizeof ( slurmdb_job_cond_t ) ) ;\n if ( resv_cond -> nodes ) {\n job_cond . usage_start = resv_cond -> time_start ;\n job_cond . usage_end = resv_cond -> time_end ;\n job_cond . used_nodes = resv_cond -> nodes ;\n job_cond . cluster_list = resv_cond -> cluster_list ;\n local_cluster_list = setup_cluster_list_with_inx ( mysql_conn , & job_cond , ( void * * ) & curr_cluster ) ;\n }\n else if ( with_usage ) {\n job_cond . usage_start = resv_cond -> time_start ;\n job_cond . usage_end = resv_cond -> time_end ;\n }\n ( void ) _setup_resv_cond_limits ( resv_cond , & extra ) ;\n with_usage = resv_cond -> with_usage ;\n if ( resv_cond -> cluster_list && list_count ( resv_cond -> cluster_list ) ) use_cluster_list = resv_cond -> cluster_list ;\n empty : xfree ( tmp ) ;\n xstrfmtcat ( tmp , \"t1.%s\" , resv_req_inx [ i ] ) ;\n for ( i = 1 ;\n i < RESV_REQ_COUNT ;\n i ++ ) {\n xstrfmtcat ( tmp , \", t1.%s\" , resv_req_inx [ i ] ) ;\n }\n if ( use_cluster_list == as_mysql_cluster_list ) slurm_mutex_lock ( & as_mysql_cluster_list_lock ) ;\n itr = list_iterator_create ( use_cluster_list ) ;\n while ( ( cluster_name = list_next ( itr ) ) ) {\n if ( query ) xstrcat ( query , \" union \" ) ;\n xstrfmtcat ( query , \"select distinct %s,'%s' as cluster \" \"from \\\"%s_%s\\\" as t1%s\" , tmp , cluster_name , cluster_name , resv_table , extra ? extra : \"\" ) ;\n }\n list_iterator_destroy ( itr ) ;\n if ( use_cluster_list == as_mysql_cluster_list ) slurm_mutex_unlock ( & as_mysql_cluster_list_lock ) ;\n if ( query ) xstrcat ( query , \" order by cluster, resv_name;\n\" ) ;\n xfree ( tmp ) ;\n xfree ( extra ) ;\n if ( debug_flags & DEBUG_FLAG_DB_RESV ) DB_DEBUG ( mysql_conn -> conn , \"query\\n%s\" , query ) ;\n if ( ! ( result = mysql_db_query_ret ( mysql_conn , query , 0 ) ) ) {\n xfree ( query ) ;\n FREE_NULL_LIST ( local_cluster_list ) ;\n return NULL ;\n }\n xfree ( query ) ;\n resv_list = list_create ( slurmdb_destroy_reservation_rec ) ;\n while ( ( row = mysql_fetch_row ( result ) ) ) {\n slurmdb_reservation_rec_t * resv = xmalloc ( sizeof ( slurmdb_reservation_rec_t ) ) ;\n int start = slurm_atoul ( row [ RESV_REQ_START ] ) ;\n list_append ( resv_list , resv ) ;\n if ( ! good_nodes_from_inx ( local_cluster_list , & curr_cluster , row [ RESV_REQ_NODE_INX ] , start ) ) continue ;\n resv -> id = slurm_atoul ( row [ RESV_REQ_ID ] ) ;\n if ( with_usage ) {\n if ( ! job_cond . resvid_list ) job_cond . resvid_list = list_create ( NULL ) ;\n list_append ( job_cond . resvid_list , row [ RESV_REQ_ID ] ) ;\n }\n resv -> name = xstrdup ( row [ RESV_REQ_NAME ] ) ;\n resv -> cluster = xstrdup ( row [ RESV_REQ_COUNT ] ) ;\n resv -> assocs = xstrdup ( row [ RESV_REQ_ASSOCS ] ) ;\n resv -> nodes = xstrdup ( row [ RESV_REQ_NODES ] ) ;\n resv -> time_start = start ;\n resv -> time_end = slurm_atoul ( row [ RESV_REQ_END ] ) ;\n resv -> flags = slurm_atoul ( row [ RESV_REQ_FLAGS ] ) ;\n resv -> tres_str = xstrdup ( row [ RESV_REQ_TRES ] ) ;\n }\n FREE_NULL_LIST ( local_cluster_list ) ;\n if ( with_usage && resv_list && list_count ( resv_list ) ) {\n List job_list = as_mysql_jobacct_process_get_jobs ( mysql_conn , uid , & job_cond ) ;\n ListIterator itr = NULL , itr2 = NULL ;\n slurmdb_job_rec_t * job = NULL ;\n slurmdb_reservation_rec_t * resv = NULL ;\n if ( ! job_list || ! list_count ( job_list ) ) goto no_jobs ;\n itr = list_iterator_create ( job_list ) ;\n itr2 = list_iterator_create ( resv_list ) ;\n while ( ( job = list_next ( itr ) ) ) {\n int set = 0 ;\n while ( ( resv = list_next ( itr2 ) ) ) {\n int start = job -> start ;\n int end = job -> end ;\n int elapsed = 0 ;\n if ( resv -> id != job -> resvid ) continue ;\n set = 1 ;\n if ( start < resv -> time_start ) start = resv -> time_start ;\n if ( ! end || end > resv -> time_end ) end = resv -> time_end ;\n if ( ( elapsed = ( end - start ) ) < 1 ) continue ;\n slurmdb_transfer_tres_time ( & resv -> tres_list , job -> tres_alloc_str , elapsed ) ;\n }\n list_iterator_reset ( itr2 ) ;\n if ( ! set ) {\n error ( \"we got a job %u with no reservation \" \"associatied with it?\" , job -> jobid ) ;\n }\n }\n list_iterator_destroy ( itr2 ) ;\n list_iterator_destroy ( itr ) ;\n no_jobs : FREE_NULL_LIST ( job_list ) ;\n }\n FREE_NULL_LIST ( job_cond . resvid_list ) ;\n mysql_free_result ( result ) ;\n return resv_list ;\n }"}
{"idx": 10973, "target": 0, "func": "static int zreusablestream ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n os_ptr source_op = op - 1 ;\n long length = max_long ;\n bool close_source ;\n int code ;\n check_type ( * op , t_boolean ) ;\n close_source = op -> value . boolval ;\n if ( r_has_type ( source_op , t_string ) ) {\n uint size = r_size ( source_op ) ;\n check_read ( * source_op ) ;\n code = make_rss ( i_ctx_p , source_op , source_op -> value . const_bytes , size , r_space ( source_op ) , 0L , size , false ) ;\n }\n else if ( r_has_type ( source_op , t_astruct ) ) {\n uint size = gs_object_size ( imemory , source_op -> value . pstruct ) ;\n if ( gs_object_type ( imemory , source_op -> value . pstruct ) != & st_bytes ) return_error ( gs_error_rangecheck ) ;\n check_read ( * source_op ) ;\n code = make_rss ( i_ctx_p , source_op , ( const byte * ) source_op -> value . pstruct , size , r_space ( source_op ) , 0L , size , true ) ;\n }\n else if ( r_has_type ( source_op , t_array ) ) {\n int i , blk_cnt , blk_sz ;\n ref * blk_ref ;\n ulong filelen = 0 ;\n check_read ( * source_op ) ;\n blk_cnt = r_size ( source_op ) ;\n blk_ref = source_op -> value . refs ;\n if ( blk_cnt > 0 ) {\n blk_sz = r_size ( blk_ref ) ;\n for ( i = 0 ;\n i < blk_cnt ;\n i ++ ) {\n int len ;\n check_read_type ( blk_ref [ i ] , t_string ) ;\n len = r_size ( & blk_ref [ i ] ) ;\n if ( len > blk_sz || ( len < blk_sz && i < blk_cnt - 1 ) ) return_error ( gs_error_rangecheck ) ;\n filelen += len ;\n }\n }\n if ( filelen == 0 ) {\n code = make_rss ( i_ctx_p , source_op , ( unsigned char * ) \"\" , 0 , r_space ( source_op ) , 0 , 0 , false ) ;\n }\n else {\n code = make_aos ( i_ctx_p , source_op , blk_sz , r_size ( & blk_ref [ blk_cnt - 1 ] ) , filelen ) ;\n }\n }\n else {\n long offset = 0 ;\n stream * source ;\n stream * s ;\n check_read_file ( i_ctx_p , source , source_op ) ;\n s = source ;\n rs : if ( s -> cbuf_string . data != 0 ) {\n long pos = stell ( s ) ;\n long avail = sbufavailable ( s ) + pos ;\n offset += pos ;\n code = make_rss ( i_ctx_p , source_op , s -> cbuf_string . data , s -> cbuf_string . size , imemory_space ( ( const gs_ref_memory_t * ) s -> memory ) , offset , min ( avail , length ) , false ) ;\n }\n else if ( s -> file != 0 ) {\n if ( ~ s -> modes & ( s_mode_read | s_mode_seek ) ) return_error ( gs_error_ioerror ) ;\n code = make_rfs ( i_ctx_p , source_op , s , offset + stell ( s ) , length ) ;\n }\n else if ( s -> state -> templat == & s_SFD_template ) {\n const stream_SFD_state * const sfd_state = ( const stream_SFD_state * ) s -> state ;\n if ( sfd_state -> eod . size != 0 ) return_error ( gs_error_rangecheck ) ;\n offset += sfd_state -> skip_count - sbufavailable ( s ) ;\n if ( sfd_state -> count != 0 ) {\n long left = max ( sfd_state -> count , 0 ) + sbufavailable ( s ) ;\n if ( left < length ) length = left ;\n }\n s = s -> strm ;\n goto rs ;\n }\n else return_error ( gs_error_rangecheck ) ;\n if ( close_source ) {\n stream * rs = fptr ( source_op ) ;\n rs -> strm = source ;\n rs -> close_strm = true ;\n }\n }\n if ( code >= 0 ) pop ( 1 ) ;\n return code ;\n }"}
{"idx": 10974, "target": 0, "func": "List * get_op_btree_interpretation ( Oid opno ) {\n List * result = NIL ;\n OpBtreeInterpretation * thisresult ;\n CatCList * catlist ;\n int i ;\n catlist = SearchSysCacheList1 ( AMOPOPID , ObjectIdGetDatum ( opno ) ) ;\n for ( i = 0 ;\n i < catlist -> n_members ;\n i ++ ) {\n HeapTuple op_tuple = & catlist -> members [ i ] -> tuple ;\n Form_pg_amop op_form = ( Form_pg_amop ) GETSTRUCT ( op_tuple ) ;\n StrategyNumber op_strategy ;\n if ( op_form -> amopmethod != BTREE_AM_OID ) continue ;\n op_strategy = ( StrategyNumber ) op_form -> amopstrategy ;\n Assert ( op_strategy >= 1 && op_strategy <= 5 ) ;\n thisresult = ( OpBtreeInterpretation * ) palloc ( sizeof ( OpBtreeInterpretation ) ) ;\n thisresult -> opfamily_id = op_form -> amopfamily ;\n thisresult -> strategy = op_strategy ;\n thisresult -> oplefttype = op_form -> amoplefttype ;\n thisresult -> oprighttype = op_form -> amoprighttype ;\n result = lappend ( result , thisresult ) ;\n }\n ReleaseSysCacheList ( catlist ) ;\n if ( result == NIL ) {\n Oid op_negator = get_negator ( opno ) ;\n if ( OidIsValid ( op_negator ) ) {\n catlist = SearchSysCacheList1 ( AMOPOPID , ObjectIdGetDatum ( op_negator ) ) ;\n for ( i = 0 ;\n i < catlist -> n_members ;\n i ++ ) {\n HeapTuple op_tuple = & catlist -> members [ i ] -> tuple ;\n Form_pg_amop op_form = ( Form_pg_amop ) GETSTRUCT ( op_tuple ) ;\n StrategyNumber op_strategy ;\n if ( op_form -> amopmethod != BTREE_AM_OID ) continue ;\n op_strategy = ( StrategyNumber ) op_form -> amopstrategy ;\n Assert ( op_strategy >= 1 && op_strategy <= 5 ) ;\n if ( op_strategy != BTEqualStrategyNumber ) continue ;\n thisresult = ( OpBtreeInterpretation * ) palloc ( sizeof ( OpBtreeInterpretation ) ) ;\n thisresult -> opfamily_id = op_form -> amopfamily ;\n thisresult -> strategy = ROWCOMPARE_NE ;\n thisresult -> oplefttype = op_form -> amoplefttype ;\n thisresult -> oprighttype = op_form -> amoprighttype ;\n result = lappend ( result , thisresult ) ;\n }\n ReleaseSysCacheList ( catlist ) ;\n }\n }\n return result ;\n }"}
{"idx": 10975, "target": 0, "func": "static void scls_init ( QEMUMachineInitArgs * args ) {\n ram_addr_t RAM_size = args -> ram_size ;\n const char * cpu_model = args -> cpu_model ;\n const char * kernel_filename = args -> kernel_filename ;\n const char * kernel_cmdline = args -> kernel_cmdline ;\n const char * initrd_filename = args -> initrd_filename ;\n const char * boot_device = args -> boot_device ;\n sun4m_hw_init ( & sun4m_hwdefs [ 7 ] , RAM_size , boot_device , kernel_filename , kernel_cmdline , initrd_filename , cpu_model ) ;\n }"}
{"idx": 10976, "target": 0, "func": "static inline uint32_t cirrus_src32 ( CirrusVGAState * s , uint32_t srcaddr ) {\n uint32_t * src ;\n if ( s -> cirrus_srccounter ) {\n src = ( void * ) & s -> cirrus_bltbuf [ srcaddr & ( CIRRUS_BLTBUFSIZE - 1 ) & ~ 3 ] ;\n }\n else {\n src = ( void * ) & s -> vga . vram_ptr [ srcaddr & s -> cirrus_addr_mask & ~ 3 ] ;\n }\n return * src ;\n }"}
{"idx": 10977, "target": 0, "func": "static void sig_channel_joined ( CHANNEL_REC * channel ) {\n if ( settings_get_bool ( \"show_names_on_join\" ) && ! channel -> session_rejoin ) fe_channels_nicklist ( channel , CHANNEL_NICKLIST_FLAG_ALL ) ;\n }"}
{"idx": 10978, "target": 1, "func": "static int parse_CNodeRestriction ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree , struct CNodeRestriction * v , const char * fmt , ... ) {\n proto_tree * tree ;\n proto_item * item ;\n unsigned i ;\n const char * txt ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CNodeRestriction , & item , txt ) ;\n v -> cNode = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_cnoderestrict_cnode , tvb , offset , 4 , v -> cNode ) ;\n offset += 4 ;\n for ( i = 0 ;\n i < v -> cNode ;\n i ++ ) {\n struct CRestriction r ;\n ZERO_STRUCT ( r ) ;\n offset = parse_CRestriction ( tvb , offset , tree , pad_tree , & r , \"paNode[%u]\" , i ) ;\n offset = parse_padding ( tvb , offset , 4 , tree , \"padding_paNode[%u]\" , i ) ;\n }\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 10979, "target": 0, "func": "static void add_int_to_prompt ( int toadd ) {\n char buffer [ 16 ] ;\n int10_to_str ( toadd , buffer , 10 ) ;\n processed_prompt . append ( buffer ) ;\n }"}
{"idx": 10980, "target": 0, "func": "gboolean proto_is_frame_protocol ( const wmem_list_t * layers , const char * proto_name ) {\n wmem_list_frame_t * protos = wmem_list_head ( layers ) ;\n int proto_id ;\n const char * name ;\n while ( protos != NULL ) {\n proto_id = GPOINTER_TO_INT ( wmem_list_frame_data ( protos ) ) ;\n name = proto_get_protocol_filter_name ( proto_id ) ;\n if ( ! strcmp ( name , proto_name ) ) {\n return TRUE ;\n }\n protos = wmem_list_frame_next ( protos ) ;\n }\n return FALSE ;\n }"}
{"idx": 10981, "target": 0, "func": "static void restore_toc_entries_postfork ( ArchiveHandle * AH , TocEntry * pending_list ) {\n RestoreOptions * ropt = AH -> public . ropt ;\n TocEntry * te ;\n ahlog ( AH , 2 , \"entering restore_toc_entries_postfork\\n\" ) ;\n ConnectDatabase ( ( Archive * ) AH , ropt -> dbname , ropt -> pghost , ropt -> pgport , ropt -> username , ropt -> promptPassword ) ;\n _doSetFixedOutputState ( AH ) ;\n for ( te = pending_list -> par_next ;\n te != pending_list ;\n te = te -> par_next ) {\n ahlog ( AH , 1 , \"processing missed item %d %s %s\\n\" , te -> dumpId , te -> desc , te -> tag ) ;\n ( void ) restore_toc_entry ( AH , te , false ) ;\n }\n }"}
{"idx": 10982, "target": 0, "func": "static int ogg_get_length ( AVFormatContext * s ) {\n struct ogg * ogg = s -> priv_data ;\n int i , ret ;\n int64_t size , end ;\n int streams_left = 0 ;\n if ( ! s -> pb -> seekable ) return 0 ;\n if ( s -> duration != AV_NOPTS_VALUE ) return 0 ;\n size = avio_size ( s -> pb ) ;\n if ( size < 0 ) return 0 ;\n end = size > MAX_PAGE_SIZE ? size - MAX_PAGE_SIZE : 0 ;\n ret = ogg_save ( s ) ;\n if ( ret < 0 ) return ret ;\n avio_seek ( s -> pb , end , SEEK_SET ) ;\n ogg -> page_pos = - 1 ;\n while ( ! ogg_read_page ( s , & i ) ) {\n if ( ogg -> streams [ i ] . granule != - 1 && ogg -> streams [ i ] . granule != 0 && ogg -> streams [ i ] . codec ) {\n s -> streams [ i ] -> duration = ogg_gptopts ( s , i , ogg -> streams [ i ] . granule , NULL ) ;\n if ( s -> streams [ i ] -> start_time != AV_NOPTS_VALUE ) {\n s -> streams [ i ] -> duration -= s -> streams [ i ] -> start_time ;\n streams_left -= ( ogg -> streams [ i ] . got_start == - 1 ) ;\n ogg -> streams [ i ] . got_start = 1 ;\n }\n else if ( ! ogg -> streams [ i ] . got_start ) {\n ogg -> streams [ i ] . got_start = - 1 ;\n streams_left ++ ;\n }\n }\n }\n ogg_restore ( s , 0 ) ;\n ret = ogg_save ( s ) ;\n if ( ret < 0 ) return ret ;\n avio_seek ( s -> pb , s -> internal -> data_offset , SEEK_SET ) ;\n ogg_reset ( s ) ;\n while ( streams_left > 0 && ! ogg_packet ( s , & i , NULL , NULL , NULL ) ) {\n int64_t pts ;\n if ( i < 0 ) continue ;\n pts = ogg_calc_pts ( s , i , NULL ) ;\n if ( pts != AV_NOPTS_VALUE && s -> streams [ i ] -> start_time == AV_NOPTS_VALUE && ! ogg -> streams [ i ] . got_start ) {\n s -> streams [ i ] -> duration -= pts ;\n ogg -> streams [ i ] . got_start = 1 ;\n streams_left -- ;\n }\n else if ( s -> streams [ i ] -> start_time != AV_NOPTS_VALUE && ! ogg -> streams [ i ] . got_start ) {\n ogg -> streams [ i ] . got_start = 1 ;\n streams_left -- ;\n }\n }\n ogg_restore ( s , 0 ) ;\n return 0 ;\n }"}
{"idx": 10983, "target": 0, "func": "rfbBool rfbSendDirContent ( rfbClientPtr cl , int length , char * buffer ) {\n char retfilename [ MAX_PATH ] ;\n char path [ MAX_PATH ] ;\n struct stat statbuf ;\n RFB_FIND_DATA win32filename ;\n int nOptLen = 0 , retval = 0 ;\n # ifdef WIN32 WIN32_FIND_DATAA winFindData ;\n HANDLE findHandle ;\n int pathLen , basePathLength ;\n char * basePath ;\n # else DIR * dirp = NULL ;\n struct dirent * direntp = NULL ;\n # endif FILEXFER_ALLOWED_OR_CLOSE_AND_RETURN ( \"\" , cl , FALSE ) ;\n if ( ! rfbFilenameTranslate2UNIX ( cl , buffer , path , sizeof ( path ) ) ) return FALSE ;\n if ( DB ) rfbLog ( \"rfbProcessFileTransfer() rfbDirContentRequest: rfbRDirContent: \\\"%s\\\"->\\\"%s\\\"\\n\" , buffer , path ) ;\n # ifdef WIN32 pathLen = strlen ( path ) ;\n basePath = malloc ( pathLen + 3 ) ;\n memcpy ( basePath , path , pathLen ) ;\n basePathLength = pathLen ;\n basePath [ basePathLength ] = '\\\\' ;\n basePath [ basePathLength + 1 ] = '*' ;\n basePath [ basePathLength + 2 ] = '\\0' ;\n memset ( & winFindData , 0 , sizeof ( winFindData ) ) ;\n findHandle = FindFirstFileA ( path , & winFindData ) ;\n free ( basePath ) ;\n if ( findHandle == INVALID_HANDLE_VALUE ) # else dirp = opendir ( path ) ;\n if ( dirp == NULL ) # endif return rfbSendFileTransferMessage ( cl , rfbDirPacket , rfbADirectory , 0 , 0 , NULL ) ;\n if ( rfbSendFileTransferMessage ( cl , rfbDirPacket , rfbADirectory , 0 , length , buffer ) == FALSE ) return FALSE ;\n # ifdef WIN32 while ( findHandle != INVALID_HANDLE_VALUE ) # else for ( direntp = readdir ( dirp ) ;\n direntp != NULL ;\n direntp = readdir ( dirp ) ) # endif {\n # ifdef WIN32 snprintf ( retfilename , sizeof ( retfilename ) , \"%s/%s\" , path , winFindData . cFileName ) ;\n # else snprintf ( retfilename , sizeof ( retfilename ) , \"%s/%s\" , path , direntp -> d_name ) ;\n # endif retval = stat ( retfilename , & statbuf ) ;\n if ( retval == 0 ) {\n memset ( ( char * ) & win32filename , 0 , sizeof ( win32filename ) ) ;\n # ifdef WIN32 win32filename . dwFileAttributes = winFindData . dwFileAttributes ;\n win32filename . ftCreationTime . dwLowDateTime = winFindData . ftCreationTime . dwLowDateTime ;\n win32filename . ftCreationTime . dwHighDateTime = winFindData . ftCreationTime . dwHighDateTime ;\n win32filename . ftLastAccessTime . dwLowDateTime = winFindData . ftLastAccessTime . dwLowDateTime ;\n win32filename . ftLastAccessTime . dwHighDateTime = winFindData . ftLastAccessTime . dwHighDateTime ;\n win32filename . ftLastWriteTime . dwLowDateTime = winFindData . ftLastWriteTime . dwLowDateTime ;\n win32filename . ftLastWriteTime . dwHighDateTime = winFindData . ftLastWriteTime . dwHighDateTime ;\n win32filename . nFileSizeLow = winFindData . nFileSizeLow ;\n win32filename . nFileSizeHigh = winFindData . nFileSizeHigh ;\n win32filename . dwReserved0 = winFindData . dwReserved0 ;\n win32filename . dwReserved1 = winFindData . dwReserved1 ;\n strcpy ( ( char * ) win32filename . cFileName , winFindData . cFileName ) ;\n strcpy ( ( char * ) win32filename . cAlternateFileName , winFindData . cAlternateFileName ) ;\n # else win32filename . dwFileAttributes = Swap32IfBE ( RFB_FILE_ATTRIBUTE_NORMAL ) ;\n if ( S_ISDIR ( statbuf . st_mode ) ) win32filename . dwFileAttributes = Swap32IfBE ( RFB_FILE_ATTRIBUTE_DIRECTORY ) ;\n win32filename . ftCreationTime . dwLowDateTime = Swap32IfBE ( statbuf . st_ctime ) ;\n win32filename . ftCreationTime . dwHighDateTime = 0 ;\n win32filename . ftLastAccessTime . dwLowDateTime = Swap32IfBE ( statbuf . st_atime ) ;\n win32filename . ftLastAccessTime . dwHighDateTime = 0 ;\n win32filename . ftLastWriteTime . dwLowDateTime = Swap32IfBE ( statbuf . st_mtime ) ;\n win32filename . ftLastWriteTime . dwHighDateTime = 0 ;\n win32filename . nFileSizeLow = Swap32IfBE ( statbuf . st_size ) ;\n win32filename . nFileSizeHigh = 0 ;\n win32filename . dwReserved0 = 0 ;\n win32filename . dwReserved1 = 0 ;\n strcpy ( ( char * ) win32filename . cFileName , direntp -> d_name ) ;\n # endif if ( ( strcmp ( ( char * ) win32filename . cFileName , \"..\" ) == 0 ) || ( win32filename . cFileName [ 0 ] != '.' ) ) {\n nOptLen = sizeof ( RFB_FIND_DATA ) - MAX_PATH - 14 + strlen ( ( char * ) win32filename . cFileName ) ;\n if ( rfbSendFileTransferMessage ( cl , rfbDirPacket , rfbADirectory , 0 , nOptLen , ( char * ) & win32filename ) == FALSE ) {\n # ifdef WIN32 FindClose ( findHandle ) ;\n # else closedir ( dirp ) ;\n # endif return FALSE ;\n }\n }\n }\n # ifdef WIN32 if ( FindNextFileA ( findHandle , & winFindData ) == 0 ) {\n FindClose ( findHandle ) ;\n findHandle = INVALID_HANDLE_VALUE ;\n }\n # endif }\n # ifdef WIN32 if ( findHandle != INVALID_HANDLE_VALUE ) {\n FindClose ( findHandle ) ;\n }\n # else closedir ( dirp ) ;\n # endif return rfbSendFileTransferMessage ( cl , rfbDirPacket , 0 , 0 , 0 , NULL ) ;\n }"}
{"idx": 10984, "target": 0, "func": "static int scale_vector ( int16_t * dst , const int16_t * vector , int length ) {\n int bits , max = 0 ;\n int i ;\n for ( i = 0 ;\n i < length ;\n i ++ ) max |= FFABS ( vector [ i ] ) ;\n max = FFMIN ( max , 0x7FFF ) ;\n bits = normalize_bits ( max , 15 ) ;\n for ( i = 0 ;\n i < length ;\n i ++ ) dst [ i ] = vector [ i ] << bits >> 3 ;\n return bits - 3 ;\n }"}
{"idx": 10985, "target": 0, "func": "bool equality_ops_are_compatible ( Oid opno1 , Oid opno2 ) {\n bool result ;\n CatCList * catlist ;\n int i ;\n if ( opno1 == opno2 ) return true ;\n catlist = SearchSysCacheList1 ( AMOPOPID , ObjectIdGetDatum ( opno1 ) ) ;\n result = false ;\n for ( i = 0 ;\n i < catlist -> n_members ;\n i ++ ) {\n HeapTuple op_tuple = & catlist -> members [ i ] -> tuple ;\n Form_pg_amop op_form = ( Form_pg_amop ) GETSTRUCT ( op_tuple ) ;\n if ( op_form -> amopmethod == BTREE_AM_OID || op_form -> amopmethod == HASH_AM_OID ) {\n if ( op_in_opfamily ( opno2 , op_form -> amopfamily ) ) {\n result = true ;\n break ;\n }\n }\n }\n ReleaseSysCacheList ( catlist ) ;\n return result ;\n }"}
{"idx": 10986, "target": 0, "func": "int k12_dump_can_write_encap ( int encap ) {\n if ( encap == WTAP_ENCAP_PER_PACKET ) return WTAP_ERR_ENCAP_PER_PACKET_UNSUPPORTED ;\n if ( encap != WTAP_ENCAP_K12 ) return WTAP_ERR_UNWRITABLE_ENCAP ;\n return 0 ;\n }"}
{"idx": 10987, "target": 0, "func": "static int pbase_tree_cache_ix ( const unsigned char * sha1 ) {\n return sha1 [ 0 ] % ARRAY_SIZE ( pbase_tree_cache ) ;\n }"}
{"idx": 10988, "target": 0, "func": "static inline float mulawinv ( float y , float clip , float mu ) {\n y = av_clipf ( y / clip , - 1 , 1 ) ;\n return clip * FFSIGN ( y ) * ( exp ( log ( 1 + mu ) * fabs ( y ) ) - 1 ) / mu ;\n }"}
{"idx": 10989, "target": 0, "func": "int mbfl_encoding_detector_feed ( mbfl_encoding_detector * identd , mbfl_string * string ) {\n int i , n , num , bad , res ;\n unsigned char * p ;\n mbfl_identify_filter * filter ;\n res = 0 ;\n if ( identd != NULL && string != NULL && string -> val != NULL ) {\n num = identd -> filter_list_size ;\n n = string -> len ;\n p = string -> val ;\n bad = 0 ;\n while ( n > 0 ) {\n for ( i = 0 ;\n i < num ;\n i ++ ) {\n filter = identd -> filter_list [ i ] ;\n if ( ! filter -> flag ) {\n ( * filter -> filter_function ) ( * p , filter ) ;\n if ( filter -> flag ) {\n bad ++ ;\n }\n }\n }\n if ( ( num - 1 ) <= bad ) {\n res = 1 ;\n break ;\n }\n p ++ ;\n n -- ;\n }\n }\n return res ;\n }"}
{"idx": 10990, "target": 0, "func": "int xps_encode_font_char ( fz_font * font , int code ) {\n FT_Face face = font -> ft_face ;\n int gid = FT_Get_Char_Index ( face , code ) ;\n if ( gid == 0 && face -> charmap && face -> charmap -> platform_id == 3 && face -> charmap -> encoding_id == 0 ) gid = FT_Get_Char_Index ( face , 0xF000 | code ) ;\n return gid ;\n }"}
{"idx": 10991, "target": 0, "func": "static void vvalue_strbuf_append_i2 ( wmem_strbuf_t * strbuf , void * ptr ) {\n gint16 i2 = * ( gint16 * ) ptr ;\n wmem_strbuf_append_printf ( strbuf , \"%d\" , ( int ) i2 ) ;\n }"}
{"idx": 10992, "target": 0, "func": "static void fail ( const char * format , ... ) {\n va_list arg_ptr ;\n va_start ( arg_ptr , format ) ;\n vfprintf ( stderr , format , arg_ptr ) ;\n va_end ( arg_ptr ) ;\n error_count ++ ;\n }"}
{"idx": 10993, "target": 0, "func": "static int dissect_h245_FlowControlIndication ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_FlowControlIndication , FlowControlIndication_sequence ) ;\n return offset ;\n }"}
{"idx": 10994, "target": 0, "func": "static int alloc_tl_data ( krb5_int16 n_tl_data , krb5_tl_data * * tldp ) {\n krb5_tl_data * * tlp = tldp ;\n int i ;\n for ( i = 0 ;\n i < n_tl_data ;\n i ++ ) {\n * tlp = calloc ( 1 , sizeof ( krb5_tl_data ) ) ;\n if ( * tlp == NULL ) return ENOMEM ;\n memset ( * tlp , 0 , sizeof ( krb5_tl_data ) ) ;\n tlp = & ( ( * tlp ) -> tl_data_next ) ;\n }\n return 0 ;\n }"}
{"idx": 10995, "target": 0, "func": "static void report_usage ( FILE * out , int count , size_t bytes , backtrace_t * bt , bool detailed ) {\n fprintf ( out , \"%zu bytes total, %d allocations, %zu bytes average:\\n\" , bytes , count , bytes / count ) ;\n bt -> log ( bt , out , detailed ) ;\n }"}
{"idx": 10996, "target": 0, "func": "static int dissect_h245_LogicalChannelRateRelease ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_LogicalChannelRateRelease , LogicalChannelRateRelease_sequence ) ;\n return offset ;\n }"}
{"idx": 10997, "target": 0, "func": "static void dissect_zcl_ota_queryspecfilersp ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n guint8 status ;\n status = tvb_get_guint8 ( tvb , * offset ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_status , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n if ( status == ZBEE_ZCL_STAT_SUCCESS ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_manufacturer_code , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_image_type , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n dissect_zcl_ota_file_version_field ( tvb , tree , offset ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_image_size , tvb , * offset , 4 , ENC_LITTLE_ENDIAN ) ;\n * offset += 4 ;\n }\n }"}
{"idx": 10998, "target": 0, "func": "static char * xps_parse_glyph_index ( char * s , int * glyph_index ) {\n if ( * s >= '0' && * s <= '9' ) s = xps_parse_digits ( s , glyph_index ) ;\n return s ;\n }"}
{"idx": 10999, "target": 0, "func": "static int parse_CInGroupSortAggregSet ( tvbuff_t * tvb , packet_info * pinfo , int offset , proto_tree * parent_tree , proto_tree * pad_tree , const char * fmt , ... ) {\n proto_item * item ;\n proto_tree * tree ;\n va_list ap ;\n enum CInGroupSortAggregSet_type type ;\n const char * txt ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CInGroupSortAggregSet , & item , txt ) ;\n offset = parse_CInGroupSortAggregSet_type ( tvb , offset , tree , & type ) ;\n offset = parse_padding ( tvb , offset , 4 , pad_tree , \"CInGroupSortAggregSet\" ) ;\n if ( type == GroupIdValue ) {\n struct CBaseStorageVariant id ;\n offset = parse_CBaseStorageVariant ( tvb , pinfo , offset , tree , pad_tree , & id , \"inGroupId\" ) ;\n }\n offset = parse_CSortSet ( tvb , offset , tree , pad_tree , \"SortSet\" ) ;\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 11000, "target": 0, "func": "static void setup_mi ( VP9_COMMON * cm ) {\n cm -> mi = cm -> mip + cm -> mi_stride + 1 ;\n cm -> prev_mi = cm -> prev_mip + cm -> mi_stride + 1 ;\n vpx_memset ( cm -> mip , 0 , cm -> mi_stride * ( cm -> mi_rows + 1 ) * sizeof ( * cm -> mip ) ) ;\n clear_mi_border ( cm , cm -> prev_mip ) ;\n }"}
{"idx": 11001, "target": 1, "func": "struct event_base * event_base_new ( void ) {\n int i ;\n struct event_base * base ;\n if ( ( base = calloc ( 1 , sizeof ( struct event_base ) ) ) == NULL ) event_err ( 1 , \"%s: calloc\" , __func__ ) ;\n gettime ( base , & base -> event_tv ) ;\n min_heap_ctor ( & base -> timeheap ) ;\n TAILQ_INIT ( & base -> eventqueue ) ;\n base -> sig . ev_signal_pair [ 0 ] = - 1 ;\n base -> sig . ev_signal_pair [ 1 ] = - 1 ;\n base -> evbase = NULL ;\n for ( i = 0 ;\n eventops [ i ] && ! base -> evbase ;\n i ++ ) {\n base -> evsel = eventops [ i ] ;\n base -> evbase = base -> evsel -> init ( base ) ;\n }\n if ( base -> evbase == NULL ) event_errx ( 1 , \"%s: no event mechanism available\" , __func__ ) ;\n if ( evutil_getenv ( \"EVENT_SHOW_METHOD\" ) ) event_msgx ( \"libevent using: %s\\n\" , base -> evsel -> name ) ;\n event_base_priority_init ( base , 1 ) ;\n return ( base ) ;\n }"}
{"idx": 11002, "target": 0, "func": "static int switch_character_set_results ( MYSQL * mysql , const char * cs_name ) {\n char query_buffer [ QUERY_LENGTH ] ;\n size_t query_length ;\n if ( ! server_supports_switching_charsets ) return FALSE ;\n query_length = my_snprintf ( query_buffer , sizeof ( query_buffer ) , \"SET SESSION character_set_results = '%s'\" , ( const char * ) cs_name ) ;\n return mysql_real_query ( mysql , query_buffer , query_length ) ;\n }"}
{"idx": 11003, "target": 0, "func": "static void update_frame_size ( VP9_COMP * cpi ) {\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCKD * const xd = & cpi -> mb . e_mbd ;\n vp9_set_mb_mi ( cm , cm -> width , cm -> height ) ;\n vp9_init_context_buffers ( cm ) ;\n init_macroblockd ( cm , xd ) ;\n if ( is_two_pass_svc ( cpi ) ) {\n if ( vp9_realloc_frame_buffer ( & cpi -> alt_ref_buffer , cm -> width , cm -> height , cm -> subsampling_x , cm -> subsampling_y , # if CONFIG_VP9_HIGHBITDEPTH cm -> use_highbitdepth , # endif VP9_ENC_BORDER_IN_PIXELS , NULL , NULL , NULL ) ) vpx_internal_error ( & cm -> error , VPX_CODEC_MEM_ERROR , \"Failed to reallocate alt_ref_buffer\" ) ;\n }\n }"}
{"idx": 11004, "target": 0, "func": "static int cirrus_bitblt_videotocpu ( CirrusVGAState * s ) {\n # ifdef DEBUG_BITBLT printf ( \"cirrus: bitblt (video to cpu) is not implemented yet\\n\" ) ;\n # endif return 0 ;\n }"}
{"idx": 11005, "target": 0, "func": "static void xps_draw_one_radial_gradient ( xps_document * doc , const fz_matrix * ctm , struct stop * stops , int count , int extend , float x0 , float y0 , float r0 , float x1 , float y1 , float r1 ) {\n fz_shade * shade ;\n shade = fz_malloc_struct ( doc -> ctx , fz_shade ) ;\n FZ_INIT_STORABLE ( shade , 1 , fz_free_shade_imp ) ;\n shade -> colorspace = fz_device_rgb ( doc -> ctx ) ;\n shade -> bbox = fz_infinite_rect ;\n shade -> matrix = fz_identity ;\n shade -> use_background = 0 ;\n shade -> use_function = 1 ;\n shade -> type = FZ_RADIAL ;\n shade -> u . l_or_r . extend [ 0 ] = extend ;\n shade -> u . l_or_r . extend [ 1 ] = extend ;\n xps_sample_gradient_stops ( shade , stops , count ) ;\n shade -> u . l_or_r . coords [ 0 ] [ 0 ] = x0 ;\n shade -> u . l_or_r . coords [ 0 ] [ 1 ] = y0 ;\n shade -> u . l_or_r . coords [ 0 ] [ 2 ] = r0 ;\n shade -> u . l_or_r . coords [ 1 ] [ 0 ] = x1 ;\n shade -> u . l_or_r . coords [ 1 ] [ 1 ] = y1 ;\n shade -> u . l_or_r . coords [ 1 ] [ 2 ] = r1 ;\n fz_fill_shade ( doc -> dev , shade , ctm , 1 ) ;\n fz_drop_shade ( doc -> ctx , shade ) ;\n }"}
{"idx": 11006, "target": 0, "func": "static int dissect_h225_INTEGER_1_256 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 256U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 11007, "target": 0, "func": "inline static void _slurm_rpc_set_debug_level ( slurm_msg_t * msg ) {\n int debug_level ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n slurmctld_lock_t config_write_lock = {\n WRITE_LOCK , NO_LOCK , NO_LOCK , NO_LOCK , NO_LOCK }\n ;\n set_debug_level_msg_t * request_msg = ( set_debug_level_msg_t * ) msg -> data ;\n log_options_t log_opts = LOG_OPTS_INITIALIZER ;\n debug2 ( \"Processing RPC: REQUEST_SET_DEBUG_LEVEL from uid=%d\" , uid ) ;\n if ( ! validate_super_user ( uid ) ) {\n error ( \"set debug level request from non-super user uid=%d\" , uid ) ;\n slurm_send_rc_msg ( msg , EACCES ) ;\n return ;\n }\n debug_level = MIN ( request_msg -> debug_level , ( LOG_LEVEL_END - 1 ) ) ;\n debug_level = MAX ( debug_level , LOG_LEVEL_QUIET ) ;\n lock_slurmctld ( config_write_lock ) ;\n if ( slurmctld_config . daemonize ) {\n log_opts . stderr_level = LOG_LEVEL_QUIET ;\n if ( slurmctld_conf . slurmctld_logfile ) {\n log_opts . logfile_level = debug_level ;\n log_opts . syslog_level = LOG_LEVEL_QUIET ;\n }\n else {\n log_opts . syslog_level = debug_level ;\n log_opts . logfile_level = LOG_LEVEL_QUIET ;\n }\n }\n else {\n log_opts . syslog_level = LOG_LEVEL_QUIET ;\n log_opts . stderr_level = debug_level ;\n if ( slurmctld_conf . slurmctld_logfile ) log_opts . logfile_level = debug_level ;\n else log_opts . logfile_level = LOG_LEVEL_QUIET ;\n }\n log_alter ( log_opts , LOG_DAEMON , slurmctld_conf . slurmctld_logfile ) ;\n unlock_slurmctld ( config_write_lock ) ;\n if ( debug_level != slurmctld_conf . slurmctld_debug ) info ( \"Set debug level to %d\" , debug_level ) ;\n slurmctld_conf . slurmctld_debug = debug_level ;\n slurmctld_conf . last_update = time ( NULL ) ;\n slurm_send_rc_msg ( msg , SLURM_SUCCESS ) ;\n }"}
{"idx": 11008, "target": 0, "func": "static VALUE mBignum_to_json ( int argc , VALUE * argv , VALUE self ) {\n GENERATE_JSON ( bignum ) ;\n }"}
{"idx": 11009, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ChooserDialogViewTest , InitialState ) {\n EXPECT_EQ ( table_view_ -> RowCount ( ) , 1 ) ;\n EXPECT_EQ ( table_model_ -> GetText ( 0 , 0 ) , l10n_util : : GetStringUTF16 ( IDS_DEVICE_CHOOSER_NO_DEVICES_FOUND_PROMPT ) ) ;\n EXPECT_FALSE ( table_view_ -> enabled ( ) ) ;\n EXPECT_EQ ( table_view_ -> SelectedRowCount ( ) , 0 ) ;\n EXPECT_EQ ( table_view_ -> FirstSelectedRow ( ) , - 1 ) ;\n }"}
{"idx": 11010, "target": 0, "func": "void dissect_zcl_appl_idt_attr_data ( proto_tree * tree , tvbuff_t * tvb , guint * offset , guint16 attr_id , guint data_type ) {\n proto_tree * sub_tree ;\n guint64 value64 ;\n switch ( attr_id ) {\n case ZBEE_ZCL_ATTR_ID_APPL_IDT_BASIC_IDENT : value64 = tvb_get_letoh56 ( tvb , * offset ) ;\n sub_tree = proto_tree_add_subtree_format ( tree , tvb , * offset , 8 , ett_zbee_zcl_appl_idt_basic , NULL , \"Basic Identification: 0x%\" G_GINT64_MODIFIER \"x\" , value64 ) ;\n proto_tree_add_item ( sub_tree , hf_zbee_zcl_appl_idt_company_id , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_zbee_zcl_appl_idt_brand_id , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_zbee_zcl_appl_idt_prod_type_id , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_zbee_zcl_appl_idt_ceced_spec_ver , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_APPL_IDT_COMPANY_ID : proto_tree_add_item ( tree , hf_zbee_zcl_appl_idt_company_id , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_APPL_IDT_BRAND_ID : proto_tree_add_item ( tree , hf_zbee_zcl_appl_idt_brand_id , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_APPL_IDT_PROD_TYPE_NAME : proto_tree_add_item ( tree , hf_zbee_zcl_appl_idt_string_len , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_appl_idt_prod_type_name , tvb , * offset , 2 , ENC_BIG_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_APPL_IDT_PROD_TYPE_ID : proto_tree_add_item ( tree , hf_zbee_zcl_appl_idt_prod_type_id , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_APPL_IDT_CECED_SPEC_VER : proto_tree_add_item ( tree , hf_zbee_zcl_appl_idt_ceced_spec_ver , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n break ;\n default : dissect_zcl_attr_data ( tvb , tree , offset , data_type ) ;\n break ;\n }\n }"}
{"idx": 11011, "target": 0, "func": "static int mono_decode ( COOKContext * q , COOKSubpacket * p , float * mlt_buffer ) {\n int category_index [ 128 ] = {\n 0 }\n ;\n int category [ 128 ] = {\n 0 }\n ;\n int quant_index_table [ 102 ] ;\n int res ;\n if ( ( res = decode_envelope ( q , p , quant_index_table ) ) < 0 ) return res ;\n q -> num_vectors = get_bits ( & q -> gb , p -> log2_numvector_size ) ;\n categorize ( q , p , quant_index_table , category , category_index ) ;\n expand_category ( q , category , category_index ) ;\n decode_vectors ( q , p , category , quant_index_table , mlt_buffer ) ;\n return 0 ;\n }"}
{"idx": 11012, "target": 0, "func": "static void uprv_start ( UTimer * timer ) {\n gettimeofday ( & timer -> start , 0 ) ;\n }"}
{"idx": 11013, "target": 0, "func": "static void choose_intra_uv_mode ( VP9_COMP * cpi , PICK_MODE_CONTEXT * ctx , BLOCK_SIZE bsize , TX_SIZE max_tx_size , int * rate_uv , int * rate_uv_tokenonly , int64_t * dist_uv , int * skip_uv , PREDICTION_MODE * mode_uv ) {\n MACROBLOCK * const x = & cpi -> mb ;\n if ( cpi -> sf . use_uv_intra_rd_estimate ) {\n rd_sbuv_dcpred ( cpi , x , rate_uv , rate_uv_tokenonly , dist_uv , skip_uv , bsize < BLOCK_8X8 ? BLOCK_8X8 : bsize ) ;\n }\n else {\n rd_pick_intra_sbuv_mode ( cpi , x , ctx , rate_uv , rate_uv_tokenonly , dist_uv , skip_uv , bsize < BLOCK_8X8 ? BLOCK_8X8 : bsize , max_tx_size ) ;\n }\n * mode_uv = x -> e_mbd . mi [ 0 ] . src_mi -> mbmi . uv_mode ;\n }"}
{"idx": 11014, "target": 0, "func": "static void nonrd_pick_partition ( VP9_COMP * cpi , const TileInfo * const tile , TOKENEXTRA * * tp , int mi_row , int mi_col , BLOCK_SIZE bsize , int * rate , int64_t * dist , int do_recon , int64_t best_rd , PC_TREE * pc_tree ) {\n const SPEED_FEATURES * const sf = & cpi -> sf ;\n const VP9EncoderConfig * const oxcf = & cpi -> oxcf ;\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCK * const x = & cpi -> mb ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n const int ms = num_8x8_blocks_wide_lookup [ bsize ] / 2 ;\n TOKENEXTRA * tp_orig = * tp ;\n PICK_MODE_CONTEXT * ctx = & pc_tree -> none ;\n int i ;\n BLOCK_SIZE subsize = bsize ;\n int this_rate , sum_rate = 0 , best_rate = INT_MAX ;\n int64_t this_dist , sum_dist = 0 , best_dist = INT64_MAX ;\n int64_t sum_rd = 0 ;\n int do_split = bsize >= BLOCK_8X8 ;\n int do_rect = 1 ;\n const int force_horz_split = ( mi_row + ms >= cm -> mi_rows ) ;\n const int force_vert_split = ( mi_col + ms >= cm -> mi_cols ) ;\n const int xss = x -> e_mbd . plane [ 1 ] . subsampling_x ;\n const int yss = x -> e_mbd . plane [ 1 ] . subsampling_y ;\n int partition_none_allowed = ! force_horz_split && ! force_vert_split ;\n int partition_horz_allowed = ! force_vert_split && yss <= xss && bsize >= BLOCK_8X8 ;\n int partition_vert_allowed = ! force_horz_split && xss <= yss && bsize >= BLOCK_8X8 ;\n ( void ) * tp_orig ;\n assert ( num_8x8_blocks_wide_lookup [ bsize ] == num_8x8_blocks_high_lookup [ bsize ] ) ;\n if ( sf -> auto_min_max_partition_size ) {\n partition_none_allowed &= ( bsize <= sf -> max_partition_size && bsize >= sf -> min_partition_size ) ;\n partition_horz_allowed &= ( ( bsize <= sf -> max_partition_size && bsize > sf -> min_partition_size ) || force_horz_split ) ;\n partition_vert_allowed &= ( ( bsize <= sf -> max_partition_size && bsize > sf -> min_partition_size ) || force_vert_split ) ;\n do_split &= bsize > sf -> min_partition_size ;\n }\n if ( sf -> use_square_partition_only ) {\n partition_horz_allowed &= force_horz_split ;\n partition_vert_allowed &= force_vert_split ;\n }\n if ( partition_none_allowed ) {\n nonrd_pick_sb_modes ( cpi , tile , mi_row , mi_col , & this_rate , & this_dist , bsize , ctx ) ;\n ctx -> mic . mbmi = xd -> mi [ 0 ] . src_mi -> mbmi ;\n ctx -> skip_txfm [ 0 ] = x -> skip_txfm [ 0 ] ;\n ctx -> skip = x -> skip ;\n if ( this_rate != INT_MAX ) {\n int pl = partition_plane_context ( xd , mi_row , mi_col , bsize ) ;\n this_rate += cpi -> partition_cost [ pl ] [ PARTITION_NONE ] ;\n sum_rd = RDCOST ( x -> rdmult , x -> rddiv , this_rate , this_dist ) ;\n if ( sum_rd < best_rd ) {\n int64_t stop_thresh = 4096 ;\n int64_t stop_thresh_rd ;\n best_rate = this_rate ;\n best_dist = this_dist ;\n best_rd = sum_rd ;\n if ( bsize >= BLOCK_8X8 ) pc_tree -> partitioning = PARTITION_NONE ;\n stop_thresh >>= 8 - ( b_width_log2 ( bsize ) + b_height_log2 ( bsize ) ) ;\n stop_thresh_rd = RDCOST ( x -> rdmult , x -> rddiv , 0 , stop_thresh ) ;\n if ( ! x -> e_mbd . lossless && best_rd < stop_thresh_rd ) {\n do_split = 0 ;\n do_rect = 0 ;\n }\n }\n }\n }\n store_pred_mv ( x , ctx ) ;\n sum_rd = 0 ;\n if ( do_split ) {\n int pl = partition_plane_context ( xd , mi_row , mi_col , bsize ) ;\n sum_rate += cpi -> partition_cost [ pl ] [ PARTITION_SPLIT ] ;\n subsize = get_subsize ( bsize , PARTITION_SPLIT ) ;\n for ( i = 0 ;\n i < 4 && sum_rd < best_rd ;\n ++ i ) {\n const int x_idx = ( i & 1 ) * ms ;\n const int y_idx = ( i >> 1 ) * ms ;\n if ( mi_row + y_idx >= cm -> mi_rows || mi_col + x_idx >= cm -> mi_cols ) continue ;\n load_pred_mv ( x , ctx ) ;\n nonrd_pick_partition ( cpi , tile , tp , mi_row + y_idx , mi_col + x_idx , subsize , & this_rate , & this_dist , 0 , best_rd - sum_rd , pc_tree -> split [ i ] ) ;\n if ( this_rate == INT_MAX ) {\n sum_rd = INT64_MAX ;\n }\n else {\n sum_rate += this_rate ;\n sum_dist += this_dist ;\n sum_rd = RDCOST ( x -> rdmult , x -> rddiv , sum_rate , sum_dist ) ;\n }\n }\n if ( sum_rd < best_rd ) {\n best_rate = sum_rate ;\n best_dist = sum_dist ;\n best_rd = sum_rd ;\n pc_tree -> partitioning = PARTITION_SPLIT ;\n }\n else {\n if ( sf -> less_rectangular_check ) do_rect &= ! partition_none_allowed ;\n }\n }\n if ( partition_horz_allowed && do_rect ) {\n subsize = get_subsize ( bsize , PARTITION_HORZ ) ;\n if ( sf -> adaptive_motion_search ) load_pred_mv ( x , ctx ) ;\n nonrd_pick_sb_modes ( cpi , tile , mi_row , mi_col , & this_rate , & this_dist , subsize , & pc_tree -> horizontal [ 0 ] ) ;\n pc_tree -> horizontal [ 0 ] . mic . mbmi = xd -> mi [ 0 ] . src_mi -> mbmi ;\n pc_tree -> horizontal [ 0 ] . skip_txfm [ 0 ] = x -> skip_txfm [ 0 ] ;\n pc_tree -> horizontal [ 0 ] . skip = x -> skip ;\n sum_rd = RDCOST ( x -> rdmult , x -> rddiv , sum_rate , sum_dist ) ;\n if ( sum_rd < best_rd && mi_row + ms < cm -> mi_rows ) {\n load_pred_mv ( x , ctx ) ;\n nonrd_pick_sb_modes ( cpi , tile , mi_row + ms , mi_col , & this_rate , & this_dist , subsize , & pc_tree -> horizontal [ 1 ] ) ;\n pc_tree -> horizontal [ 1 ] . mic . mbmi = xd -> mi [ 0 ] . src_mi -> mbmi ;\n pc_tree -> horizontal [ 1 ] . skip_txfm [ 0 ] = x -> skip_txfm [ 0 ] ;\n pc_tree -> horizontal [ 1 ] . skip = x -> skip ;\n if ( this_rate == INT_MAX ) {\n sum_rd = INT64_MAX ;\n }\n else {\n int pl = partition_plane_context ( xd , mi_row , mi_col , bsize ) ;\n this_rate += cpi -> partition_cost [ pl ] [ PARTITION_HORZ ] ;\n sum_rate += this_rate ;\n sum_dist += this_dist ;\n sum_rd = RDCOST ( x -> rdmult , x -> rddiv , sum_rate , sum_dist ) ;\n }\n }\n if ( sum_rd < best_rd ) {\n best_rd = sum_rd ;\n best_rate = sum_rate ;\n best_dist = sum_dist ;\n pc_tree -> partitioning = PARTITION_HORZ ;\n }\n }\n if ( partition_vert_allowed && do_rect ) {\n subsize = get_subsize ( bsize , PARTITION_VERT ) ;\n if ( sf -> adaptive_motion_search ) load_pred_mv ( x , ctx ) ;\n nonrd_pick_sb_modes ( cpi , tile , mi_row , mi_col , & this_rate , & this_dist , subsize , & pc_tree -> vertical [ 0 ] ) ;\n pc_tree -> vertical [ 0 ] . mic . mbmi = xd -> mi [ 0 ] . src_mi -> mbmi ;\n pc_tree -> vertical [ 0 ] . skip_txfm [ 0 ] = x -> skip_txfm [ 0 ] ;\n pc_tree -> vertical [ 0 ] . skip = x -> skip ;\n sum_rd = RDCOST ( x -> rdmult , x -> rddiv , sum_rate , sum_dist ) ;\n if ( sum_rd < best_rd && mi_col + ms < cm -> mi_cols ) {\n load_pred_mv ( x , ctx ) ;\n nonrd_pick_sb_modes ( cpi , tile , mi_row , mi_col + ms , & this_rate , & this_dist , subsize , & pc_tree -> vertical [ 1 ] ) ;\n pc_tree -> vertical [ 1 ] . mic . mbmi = xd -> mi [ 0 ] . src_mi -> mbmi ;\n pc_tree -> vertical [ 1 ] . skip_txfm [ 0 ] = x -> skip_txfm [ 0 ] ;\n pc_tree -> vertical [ 1 ] . skip = x -> skip ;\n if ( this_rate == INT_MAX ) {\n sum_rd = INT64_MAX ;\n }\n else {\n int pl = partition_plane_context ( xd , mi_row , mi_col , bsize ) ;\n this_rate += cpi -> partition_cost [ pl ] [ PARTITION_VERT ] ;\n sum_rate += this_rate ;\n sum_dist += this_dist ;\n sum_rd = RDCOST ( x -> rdmult , x -> rddiv , sum_rate , sum_dist ) ;\n }\n }\n if ( sum_rd < best_rd ) {\n best_rate = sum_rate ;\n best_dist = sum_dist ;\n best_rd = sum_rd ;\n pc_tree -> partitioning = PARTITION_VERT ;\n }\n }\n ( void ) best_rd ;\n * rate = best_rate ;\n * dist = best_dist ;\n if ( best_rate == INT_MAX ) return ;\n subsize = get_subsize ( bsize , pc_tree -> partitioning ) ;\n fill_mode_info_sb ( cm , x , mi_row , mi_col , bsize , subsize , pc_tree ) ;\n if ( best_rate < INT_MAX && best_dist < INT64_MAX && do_recon ) {\n int output_enabled = ( bsize == BLOCK_64X64 ) ;\n if ( ( oxcf -> aq_mode == COMPLEXITY_AQ ) && cm -> seg . update_map ) {\n vp9_select_in_frame_q_segment ( cpi , mi_row , mi_col , output_enabled , best_rate ) ;\n }\n if ( oxcf -> aq_mode == CYCLIC_REFRESH_AQ ) vp9_cyclic_refresh_set_rate_and_dist_sb ( cpi -> cyclic_refresh , best_rate , best_dist ) ;\n encode_sb_rt ( cpi , tile , tp , mi_row , mi_col , output_enabled , bsize , pc_tree ) ;\n }\n if ( bsize == BLOCK_64X64 ) {\n assert ( tp_orig < * tp ) ;\n assert ( best_rate < INT_MAX ) ;\n assert ( best_dist < INT64_MAX ) ;\n }\n else {\n assert ( tp_orig == * tp ) ;\n }\n }"}
{"idx": 11015, "target": 1, "func": "static Asn1Generic * DecodeAsn1DerSet ( const unsigned char * buffer , uint32_t max_size , uint8_t depth , uint32_t * errcode ) {\n const unsigned char * d_ptr = buffer ;\n uint32_t d_length , numbytes , el_max_size ;\n uint8_t c ;\n uint32_t seq_index ;\n Asn1Generic * node ;\n Asn1Generic * child ;\n d_ptr ++ ;\n node = Asn1GenericNew ( ) ;\n if ( node == NULL ) return NULL ;\n node -> type = ASN1_SET ;\n node -> data = NULL ;\n c = d_ptr [ 0 ] ;\n if ( ( c & ( 1 << 7 ) ) >> 7 == 0 ) {\n d_length = c ;\n d_ptr ++ ;\n }\n else {\n numbytes = c & 0x7f ;\n d_ptr ++ ;\n if ( DecodeAsn1BuildValue ( & d_ptr , & d_length , numbytes , errcode ) == - 1 ) {\n SCFree ( node ) ;\n return NULL ;\n }\n }\n node -> length = d_length + ( d_ptr - buffer ) ;\n if ( node -> length > max_size ) {\n if ( errcode ) * errcode = ERR_DER_ELEMENT_SIZE_TOO_BIG ;\n SCFree ( node ) ;\n return NULL ;\n }\n seq_index = 0 ;\n el_max_size = max_size - ( d_ptr - buffer ) ;\n child = DecodeAsn1DerGeneric ( d_ptr , el_max_size , depth , seq_index , errcode ) ;\n node -> data = child ;\n return ( Asn1Generic * ) node ;\n }"}
{"idx": 11016, "target": 0, "func": "static char * allocString ( uint32_t length ) {\n uint32_t top = stringTop + length ;\n char * p ;\n if ( top > STRING_STORE_SIZE ) {\n fprintf ( stderr , \"gencmn: out of memory\\n\" ) ;\n exit ( U_MEMORY_ALLOCATION_ERROR ) ;\n }\n p = stringStore + stringTop ;\n stringTop = top ;\n return p ;\n }"}
{"idx": 11017, "target": 0, "func": "static int parse_uin32_array ( tvbuff_t * tvb , int offset , proto_tree * tree , guint32 count , const char * fmt , ... ) {\n guint32 v , i ;\n proto_item * item ;\n const char * txt ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n proto_tree_add_subtree ( tree , tvb , offset , count * 4 , ett_mswsp_uin32_array , & item , txt ) ;\n proto_item_append_text ( item , \" count %u [\" , count ) ;\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n v = tvb_get_letohl ( tvb , offset ) ;\n offset += 4 ;\n if ( i > 0 ) {\n proto_item_append_text ( item , \",%u\" , v ) ;\n }\n else {\n proto_item_append_text ( item , \"%u\" , v ) ;\n }\n }\n proto_item_append_text ( item , \"]\" ) ;\n return offset ;\n }"}
{"idx": 11018, "target": 0, "func": "static double exsltMathMax ( xmlNodeSetPtr ns ) {\n double ret , cur ;\n int i ;\n if ( ( ns == NULL ) || ( ns -> nodeNr == 0 ) ) return ( xmlXPathNAN ) ;\n ret = xmlXPathCastNodeToNumber ( ns -> nodeTab [ 0 ] ) ;\n if ( xmlXPathIsNaN ( ret ) ) return ( xmlXPathNAN ) ;\n for ( i = 1 ;\n i < ns -> nodeNr ;\n i ++ ) {\n cur = xmlXPathCastNodeToNumber ( ns -> nodeTab [ i ] ) ;\n if ( xmlXPathIsNaN ( cur ) ) return ( xmlXPathNAN ) ;\n if ( cur > ret ) ret = cur ;\n }\n return ( ret ) ;\n }"}
{"idx": 11019, "target": 1, "func": "static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_null ( void ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_null ( ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_reserve ( sk_ ## t1 ## _compfunc compare , int n ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_reserve ( ( OPENSSL_sk_compfunc ) compare , n ) ;\n }\n static ossl_inline int sk_ ## t1 ## _reserve ( STACK_OF ( t1 ) * sk , int n ) {\n return OPENSSL_sk_reserve ( ( OPENSSL_STACK * ) sk , n ) ;\n }\n static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 11020, "target": 0, "func": "static void dtap_cc_start_dtmf_ack ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_FALSE ;\n ELEM_MAND_TV ( 0x2c , GSM_A_PDU_TYPE_DTAP , DE_KEYPAD_FACILITY , NULL , ei_gsm_a_dtap_missing_mandatory_element ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 11021, "target": 0, "func": "void ptvcursor_set_tree ( ptvcursor_t * ptvc , proto_tree * tree ) {\n ptvc -> tree = tree ;\n }"}
{"idx": 11022, "target": 1, "func": "int jbig2_decode_text_region ( Jbig2Ctx * ctx , Jbig2Segment * segment , const Jbig2TextRegionParams * params , const Jbig2SymbolDict * const * dicts , const int n_dicts , Jbig2Image * image , const byte * data , const size_t size , Jbig2ArithCx * GR_stats , Jbig2ArithState * as , Jbig2WordStream * ws ) {\n uint32_t NINSTANCES ;\n uint32_t ID ;\n int32_t STRIPT ;\n int32_t FIRSTS ;\n int32_t DT ;\n int32_t DFS ;\n int32_t IDS ;\n int32_t CURS ;\n int32_t CURT ;\n int S , T ;\n int x , y ;\n bool first_symbol ;\n uint32_t index , SBNUMSYMS ;\n Jbig2Image * IB = NULL ;\n Jbig2HuffmanState * hs = NULL ;\n Jbig2HuffmanTable * SBSYMCODES = NULL ;\n int code = 0 ;\n int RI ;\n SBNUMSYMS = 0 ;\n for ( index = 0 ;\n index < n_dicts ;\n index ++ ) {\n SBNUMSYMS += dicts [ index ] -> n_symbols ;\n }\n jbig2_error ( ctx , JBIG2_SEVERITY_DEBUG , segment -> number , \"symbol list contains %d glyphs in %d dictionaries\" , SBNUMSYMS , n_dicts ) ;\n if ( params -> SBHUFF ) {\n Jbig2HuffmanTable * runcodes = NULL ;\n Jbig2HuffmanParams runcodeparams ;\n Jbig2HuffmanLine runcodelengths [ 35 ] ;\n Jbig2HuffmanLine * symcodelengths = NULL ;\n Jbig2HuffmanParams symcodeparams ;\n int err , len , range , r ;\n jbig2_error ( ctx , JBIG2_SEVERITY_DEBUG , segment -> number , \"huffman coded text region\" ) ;\n hs = jbig2_huffman_new ( ctx , ws ) ;\n if ( hs == NULL ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"failed to allocate storage for text region\" ) ;\n return - 1 ;\n }\n for ( index = 0 ;\n index < 35 ;\n index ++ ) {\n runcodelengths [ index ] . PREFLEN = jbig2_huffman_get_bits ( hs , 4 , & code ) ;\n if ( code < 0 ) goto cleanup1 ;\n runcodelengths [ index ] . RANGELEN = 0 ;\n runcodelengths [ index ] . RANGELOW = index ;\n jbig2_error ( ctx , JBIG2_SEVERITY_DEBUG , segment -> number , \" read runcode%d length %d\" , index , runcodelengths [ index ] . PREFLEN ) ;\n }\n runcodeparams . HTOOB = 0 ;\n runcodeparams . lines = runcodelengths ;\n runcodeparams . n_lines = 35 ;\n runcodes = jbig2_build_huffman_table ( ctx , & runcodeparams ) ;\n if ( runcodes == NULL ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"error constructing symbol id runcode table!\" ) ;\n code = - 1 ;\n goto cleanup1 ;\n }\n symcodelengths = jbig2_new ( ctx , Jbig2HuffmanLine , SBNUMSYMS ) ;\n if ( symcodelengths == NULL ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"memory allocation failure reading symbol ID huffman table!\" ) ;\n code = - 1 ;\n goto cleanup1 ;\n }\n index = 0 ;\n while ( index < SBNUMSYMS ) {\n code = jbig2_huffman_get ( hs , runcodes , & err ) ;\n if ( err != 0 || code < 0 || code >= 35 ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"error reading symbol ID huffman table!\" ) ;\n code = err ? err : - 1 ;\n goto cleanup1 ;\n }\n if ( code < 32 ) {\n len = code ;\n range = 1 ;\n }\n else {\n if ( code == 32 ) {\n if ( index < 1 ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"error decoding symbol id table: run length with no antecedent!\" ) ;\n code = - 1 ;\n goto cleanup1 ;\n }\n len = symcodelengths [ index - 1 ] . PREFLEN ;\n }\n else {\n len = 0 ;\n }\n err = 0 ;\n if ( code == 32 ) range = jbig2_huffman_get_bits ( hs , 2 , & err ) + 3 ;\n else if ( code == 33 ) range = jbig2_huffman_get_bits ( hs , 3 , & err ) + 3 ;\n else if ( code == 34 ) range = jbig2_huffman_get_bits ( hs , 7 , & err ) + 11 ;\n if ( err < 0 ) goto cleanup1 ;\n }\n jbig2_error ( ctx , JBIG2_SEVERITY_DEBUG , segment -> number , \" read runcode%d at index %d (length %d range %d)\" , code , index , len , range ) ;\n if ( index + range > SBNUMSYMS ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"runlength extends %d entries beyond the end of symbol id table!\" , index + range - SBNUMSYMS ) ;\n range = SBNUMSYMS - index ;\n }\n for ( r = 0 ;\n r < range ;\n r ++ ) {\n symcodelengths [ index + r ] . PREFLEN = len ;\n symcodelengths [ index + r ] . RANGELEN = 0 ;\n symcodelengths [ index + r ] . RANGELOW = index + r ;\n }\n index += r ;\n }\n if ( index < SBNUMSYMS ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"runlength codes do not cover the available symbol set\" ) ;\n }\n symcodeparams . HTOOB = 0 ;\n symcodeparams . lines = symcodelengths ;\n symcodeparams . n_lines = SBNUMSYMS ;\n jbig2_huffman_skip ( hs ) ;\n SBSYMCODES = jbig2_build_huffman_table ( ctx , & symcodeparams ) ;\n cleanup1 : jbig2_free ( ctx -> allocator , symcodelengths ) ;\n jbig2_release_huffman_table ( ctx , runcodes ) ;\n if ( SBSYMCODES == NULL ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"could not construct Symbol ID huffman table!\" ) ;\n jbig2_huffman_free ( ctx , hs ) ;\n return ( ( code != 0 ) ? code : - 1 ) ;\n }\n }\n jbig2_image_clear ( ctx , image , params -> SBDEFPIXEL ) ;\n if ( params -> SBHUFF ) {\n STRIPT = jbig2_huffman_get ( hs , params -> SBHUFFDT , & code ) ;\n }\n else {\n code = jbig2_arith_int_decode ( params -> IADT , as , & STRIPT ) ;\n }\n if ( code < 0 ) goto cleanup2 ;\n STRIPT *= - ( params -> SBSTRIPS ) ;\n FIRSTS = 0 ;\n NINSTANCES = 0 ;\n while ( NINSTANCES < params -> SBNUMINSTANCES ) {\n if ( params -> SBHUFF ) {\n DT = jbig2_huffman_get ( hs , params -> SBHUFFDT , & code ) ;\n }\n else {\n code = jbig2_arith_int_decode ( params -> IADT , as , & DT ) ;\n }\n if ( code < 0 ) goto cleanup2 ;\n DT *= params -> SBSTRIPS ;\n STRIPT += DT ;\n first_symbol = TRUE ;\n for ( ;\n ;\n ) {\n if ( first_symbol ) {\n if ( params -> SBHUFF ) {\n DFS = jbig2_huffman_get ( hs , params -> SBHUFFFS , & code ) ;\n }\n else {\n code = jbig2_arith_int_decode ( params -> IAFS , as , & DFS ) ;\n }\n if ( code < 0 ) goto cleanup2 ;\n FIRSTS += DFS ;\n CURS = FIRSTS ;\n first_symbol = FALSE ;\n }\n else {\n if ( NINSTANCES > params -> SBNUMINSTANCES ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"too many NINSTANCES (%d) decoded\" , NINSTANCES ) ;\n break ;\n }\n if ( params -> SBHUFF ) {\n IDS = jbig2_huffman_get ( hs , params -> SBHUFFDS , & code ) ;\n }\n else {\n code = jbig2_arith_int_decode ( params -> IADS , as , & IDS ) ;\n }\n if ( code ) {\n break ;\n }\n CURS += IDS + params -> SBDSOFFSET ;\n }\n if ( params -> SBSTRIPS == 1 ) {\n CURT = 0 ;\n }\n else if ( params -> SBHUFF ) {\n CURT = jbig2_huffman_get_bits ( hs , params -> LOGSBSTRIPS , & code ) ;\n }\n else {\n code = jbig2_arith_int_decode ( params -> IAIT , as , & CURT ) ;\n }\n if ( code < 0 ) goto cleanup2 ;\n T = STRIPT + CURT ;\n if ( params -> SBHUFF ) {\n ID = jbig2_huffman_get ( hs , SBSYMCODES , & code ) ;\n }\n else {\n code = jbig2_arith_iaid_decode ( params -> IAID , as , ( int * ) & ID ) ;\n }\n if ( code < 0 ) goto cleanup2 ;\n if ( ID >= SBNUMSYMS ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"symbol id out of range! (%d/%d)\" , ID , SBNUMSYMS ) ;\n goto cleanup2 ;\n }\n {\n uint32_t id = ID ;\n index = 0 ;\n while ( id >= dicts [ index ] -> n_symbols ) id -= dicts [ index ++ ] -> n_symbols ;\n IB = jbig2_image_clone ( ctx , dicts [ index ] -> glyphs [ id ] ) ;\n if ( ! IB ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"missing glyph %d/%d!\" , index , id ) ;\n goto cleanup2 ;\n }\n }\n if ( params -> SBREFINE ) {\n if ( params -> SBHUFF ) {\n RI = jbig2_huffman_get_bits ( hs , 1 , & code ) ;\n }\n else {\n code = jbig2_arith_int_decode ( params -> IARI , as , & RI ) ;\n }\n if ( code < 0 ) goto cleanup2 ;\n }\n else {\n RI = 0 ;\n }\n if ( RI ) {\n Jbig2RefinementRegionParams rparams ;\n Jbig2Image * IBO ;\n int32_t RDW , RDH , RDX , RDY ;\n Jbig2Image * refimage ;\n int BMSIZE = 0 ;\n int code1 = 0 ;\n int code2 = 0 ;\n int code3 = 0 ;\n int code4 = 0 ;\n int code5 = 0 ;\n if ( ! params -> SBHUFF ) {\n code1 = jbig2_arith_int_decode ( params -> IARDW , as , & RDW ) ;\n code2 = jbig2_arith_int_decode ( params -> IARDH , as , & RDH ) ;\n code3 = jbig2_arith_int_decode ( params -> IARDX , as , & RDX ) ;\n code4 = jbig2_arith_int_decode ( params -> IARDY , as , & RDY ) ;\n }\n else {\n RDW = jbig2_huffman_get ( hs , params -> SBHUFFRDW , & code1 ) ;\n RDH = jbig2_huffman_get ( hs , params -> SBHUFFRDH , & code2 ) ;\n RDX = jbig2_huffman_get ( hs , params -> SBHUFFRDX , & code3 ) ;\n RDY = jbig2_huffman_get ( hs , params -> SBHUFFRDY , & code4 ) ;\n BMSIZE = jbig2_huffman_get ( hs , params -> SBHUFFRSIZE , & code5 ) ;\n jbig2_huffman_skip ( hs ) ;\n }\n if ( ( code1 < 0 ) || ( code2 < 0 ) || ( code3 < 0 ) || ( code4 < 0 ) || ( code5 < 0 ) ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"failed to decode data\" ) ;\n goto cleanup2 ;\n }\n IBO = IB ;\n refimage = jbig2_image_new ( ctx , IBO -> width + RDW , IBO -> height + RDH ) ;\n if ( refimage == NULL ) {\n jbig2_image_release ( ctx , IBO ) ;\n if ( params -> SBHUFF ) {\n jbig2_release_huffman_table ( ctx , SBSYMCODES ) ;\n }\n return jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"couldn't allocate reference image\" ) ;\n }\n jbig2_image_clear ( ctx , refimage , 0x00 ) ;\n rparams . GRTEMPLATE = params -> SBRTEMPLATE ;\n rparams . reference = IBO ;\n rparams . DX = ( RDW >> 1 ) + RDX ;\n rparams . DY = ( RDH >> 1 ) + RDY ;\n rparams . TPGRON = 0 ;\n memcpy ( rparams . grat , params -> sbrat , 4 ) ;\n code = jbig2_decode_refinement_region ( ctx , segment , & rparams , as , refimage , GR_stats ) ;\n if ( code < 0 ) {\n jbig2_image_release ( ctx , refimage ) ;\n goto cleanup2 ;\n }\n IB = refimage ;\n jbig2_image_release ( ctx , IBO ) ;\n if ( params -> SBHUFF ) {\n jbig2_huffman_advance ( hs , BMSIZE ) ;\n }\n }\n if ( ( ! params -> TRANSPOSED ) && ( params -> REFCORNER > 1 ) ) {\n CURS += IB -> width - 1 ;\n }\n else if ( ( params -> TRANSPOSED ) && ! ( params -> REFCORNER & 1 ) ) {\n CURS += IB -> height - 1 ;\n }\n S = CURS ;\n if ( ! params -> TRANSPOSED ) {\n switch ( params -> REFCORNER ) {\n case JBIG2_CORNER_TOPLEFT : x = S ;\n y = T ;\n break ;\n case JBIG2_CORNER_TOPRIGHT : x = S - IB -> width + 1 ;\n y = T ;\n break ;\n case JBIG2_CORNER_BOTTOMLEFT : x = S ;\n y = T - IB -> height + 1 ;\n break ;\n default : case JBIG2_CORNER_BOTTOMRIGHT : x = S - IB -> width + 1 ;\n y = T - IB -> height + 1 ;\n break ;\n }\n }\n else {\n switch ( params -> REFCORNER ) {\n case JBIG2_CORNER_TOPLEFT : x = T ;\n y = S ;\n break ;\n case JBIG2_CORNER_TOPRIGHT : x = T - IB -> width + 1 ;\n y = S ;\n break ;\n case JBIG2_CORNER_BOTTOMLEFT : x = T ;\n y = S - IB -> height + 1 ;\n break ;\n default : case JBIG2_CORNER_BOTTOMRIGHT : x = T - IB -> width + 1 ;\n y = S - IB -> height + 1 ;\n break ;\n }\n }\n # ifdef JBIG2_DEBUG jbig2_error ( ctx , JBIG2_SEVERITY_DEBUG , segment -> number , \"composing glyph id %d: %dx%d @ (%d,%d) symbol %d/%d\" , ID , IB -> width , IB -> height , x , y , NINSTANCES + 1 , params -> SBNUMINSTANCES ) ;\n # endif code = jbig2_image_compose ( ctx , image , IB , x , y , params -> SBCOMBOP ) ;\n if ( code < 0 ) {\n jbig2_image_release ( ctx , IB ) ;\n goto cleanup2 ;\n }\n if ( ( ! params -> TRANSPOSED ) && ( params -> REFCORNER < 2 ) ) {\n CURS += IB -> width - 1 ;\n }\n else if ( ( params -> TRANSPOSED ) && ( params -> REFCORNER & 1 ) ) {\n CURS += IB -> height - 1 ;\n }\n NINSTANCES ++ ;\n jbig2_image_release ( ctx , IB ) ;\n }\n }\n cleanup2 : if ( params -> SBHUFF ) {\n jbig2_release_huffman_table ( ctx , SBSYMCODES ) ;\n }\n jbig2_huffman_free ( ctx , hs ) ;\n return code ;\n }"}
{"idx": 11023, "target": 0, "func": "static int selinux_inode_setattr ( struct dentry * dentry , struct iattr * iattr ) {\n const struct cred * cred = current_cred ( ) ;\n unsigned int ia_valid = iattr -> ia_valid ;\n __u32 av = FILE__WRITE ;\n if ( ia_valid & ATTR_FORCE ) {\n ia_valid &= ~ ( ATTR_KILL_SUID | ATTR_KILL_SGID | ATTR_MODE | ATTR_FORCE ) ;\n if ( ! ia_valid ) return 0 ;\n }\n if ( ia_valid & ( ATTR_MODE | ATTR_UID | ATTR_GID | ATTR_ATIME_SET | ATTR_MTIME_SET | ATTR_TIMES_SET ) ) return dentry_has_perm ( cred , dentry , FILE__SETATTR ) ;\n if ( selinux_policycap_openperm && ( ia_valid & ATTR_SIZE ) && ! ( ia_valid & ATTR_FILE ) ) av |= FILE__OPEN ;\n return dentry_has_perm ( cred , dentry , av ) ;\n }"}
{"idx": 11024, "target": 0, "func": "static void http_chunked_cb ( struct evhttp_request * req , void * arg ) {\n struct timeval when = {\n 0 , 0 }\n ;\n struct chunk_req_state * state = malloc ( sizeof ( struct chunk_req_state ) ) ;\n event_debug ( ( \"%s: called\\n\" , __func__ ) ) ;\n memset ( state , 0 , sizeof ( struct chunk_req_state ) ) ;\n state -> req = req ;\n evhttp_send_reply_start ( req , HTTP_OK , \"Everything is fine\" ) ;\n event_once ( - 1 , EV_TIMEOUT , http_chunked_trickle_cb , state , & when ) ;\n }"}
{"idx": 11025, "target": 1, "func": "static gint parse_arg ( tvbuff_t * tvb , packet_info * pinfo , proto_item * header_item , guint encoding , gint offset , proto_tree * field_tree , gboolean is_reply_to , guint8 type_id , guint8 field_code , guint8 * * signature , guint8 * signature_length , gint field_starting_offset ) {\n gint length ;\n gint padding_start ;\n const gchar * header_type_name = NULL ;\n switch ( type_id ) {\n case ARG_INVALID : header_type_name = \"invalid\" ;\n offset = round_to_8byte ( offset + 1 , field_starting_offset ) ;\n break ;\n case ARG_ARRAY : {\n static gchar bad_array_format [ ] = \"BAD DATA: Array length (in bytes) is %d. Remaining packet length is %d.\" ;\n proto_item * item ;\n proto_tree * tree ;\n guint8 * sig_saved ;\n gint starting_offset ;\n gint number_of_items = 0 ;\n guint8 remaining_sig_length = * signature_length ;\n gint packet_length = ( gint ) tvb_reported_length ( tvb ) ;\n header_type_name = \"array\" ;\n if ( * signature == NULL || * signature_length < 1 ) {\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"BAD DATA: A %s argument needs a signature.\" , header_type_name ) ;\n return tvb_reported_length ( tvb ) ;\n }\n sig_saved = ( * signature ) + 1 ;\n padding_start = offset ;\n offset = round_to_4byte ( offset , field_starting_offset ) ;\n add_padding_item ( padding_start , offset , tvb , field_tree ) ;\n length = ( gint ) get_uint32 ( tvb , offset , encoding ) ;\n padding_start = offset + 4 ;\n starting_offset = pad_according_to_type ( padding_start , field_starting_offset , packet_length , * sig_saved ) ;\n if ( length < 0 || length > MAX_ARRAY_LEN || starting_offset + length > packet_length ) {\n col_add_fstr ( pinfo -> cinfo , COL_INFO , bad_array_format , length , tvb_reported_length_remaining ( tvb , starting_offset ) ) ;\n return tvb_reported_length ( tvb ) ;\n }\n item = proto_tree_add_item ( field_tree , hf_alljoyn_mess_body_array , tvb , offset , ( starting_offset - offset ) + length , encoding ) ;\n tree = proto_item_add_subtree ( item , ett_alljoyn_mess_body_parameters ) ;\n offset = starting_offset ;\n add_padding_item ( padding_start , offset , tvb , tree ) ;\n if ( 0 == length ) {\n advance_to_end_of_signature ( signature , & remaining_sig_length ) ;\n }\n else {\n while ( ( offset - starting_offset ) < length ) {\n guint8 * sig_pointer ;\n number_of_items ++ ;\n sig_pointer = sig_saved ;\n remaining_sig_length = * signature_length - 1 ;\n offset = parse_arg ( tvb , pinfo , header_item , encoding , offset , tree , is_reply_to , * sig_pointer , field_code , & sig_pointer , & remaining_sig_length , field_starting_offset ) ;\n * signature = sig_pointer ;\n }\n }\n * signature_length = remaining_sig_length ;\n if ( item ) {\n proto_item_append_text ( item , \" of %d '%c' elements\" , number_of_items , * sig_saved ) ;\n }\n }\n break ;\n case ARG_BOOLEAN : header_type_name = \"boolean\" ;\n padding_start = offset ;\n offset = round_to_4byte ( offset , field_starting_offset ) ;\n add_padding_item ( padding_start , offset , tvb , field_tree ) ;\n proto_tree_add_item ( field_tree , hf_alljoyn_boolean , tvb , offset , 4 , encoding ) ;\n offset += 4 ;\n break ;\n case ARG_DOUBLE : header_type_name = \"IEEE 754 double\" ;\n padding_start = offset ;\n offset = round_to_8byte ( offset , field_starting_offset ) ;\n add_padding_item ( padding_start , offset , tvb , field_tree ) ;\n proto_tree_add_item ( field_tree , hf_alljoyn_double , tvb , offset , 8 , encoding ) ;\n offset += 8 ;\n break ;\n case ARG_SIGNATURE : header_type_name = \"signature\" ;\n * signature_length = tvb_get_guint8 ( tvb , offset ) ;\n if ( * signature_length + 2 > tvb_reported_length_remaining ( tvb , offset ) ) {\n gint bytes_left = tvb_reported_length_remaining ( tvb , offset ) ;\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"BAD DATA: Signature length is %d. Only %d bytes left in packet.\" , ( gint ) ( * signature_length ) , bytes_left ) ;\n return tvb_reported_length ( tvb ) ;\n }\n length = * signature_length + 1 ;\n proto_tree_add_item ( field_tree , hf_alljoyn_mess_body_signature_length , tvb , offset , 1 , encoding ) ;\n offset += 1 ;\n proto_tree_add_item ( field_tree , hf_alljoyn_mess_body_signature , tvb , offset , length , ENC_ASCII | ENC_NA ) ;\n * signature = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset , length , ENC_ASCII ) ;\n if ( HDR_SIGNATURE == field_code ) {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" (%s)\" , * signature ) ;\n }\n offset += length ;\n break ;\n case ARG_HANDLE : header_type_name = \"socket handle\" ;\n padding_start = offset ;\n offset = round_to_4byte ( offset , field_starting_offset ) ;\n add_padding_item ( padding_start , offset , tvb , field_tree ) ;\n proto_tree_add_item ( field_tree , hf_alljoyn_handle , tvb , offset , 4 , encoding ) ;\n offset += 4 ;\n break ;\n case ARG_INT32 : header_type_name = \"int32\" ;\n padding_start = offset ;\n offset = round_to_4byte ( offset , field_starting_offset ) ;\n add_padding_item ( padding_start , offset , tvb , field_tree ) ;\n proto_tree_add_item ( field_tree , hf_alljoyn_int32 , tvb , offset , 4 , encoding ) ;\n offset += 4 ;\n break ;\n case ARG_INT16 : header_type_name = \"int16\" ;\n padding_start = offset ;\n offset = round_to_2byte ( offset , field_starting_offset ) ;\n add_padding_item ( padding_start , offset , tvb , field_tree ) ;\n proto_tree_add_item ( field_tree , hf_alljoyn_int16 , tvb , offset , 2 , encoding ) ;\n offset += 2 ;\n break ;\n case ARG_OBJ_PATH : header_type_name = \"object path\" ;\n length = get_uint32 ( tvb , offset , encoding ) + 1 ;\n if ( length < 0 || length > MAX_ARRAY_LEN || length + 4 > tvb_reported_length_remaining ( tvb , offset ) ) {\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"BAD DATA: Object path length is %d. Only %d bytes left in packet.\" , length , tvb_reported_length_remaining ( tvb , offset + 4 ) ) ;\n return tvb_reported_length ( tvb ) ;\n }\n proto_tree_add_item ( field_tree , hf_alljoyn_uint32 , tvb , offset , 4 , encoding ) ;\n offset += 4 ;\n proto_tree_add_item ( field_tree , hf_alljoyn_string_data , tvb , offset , length , ENC_ASCII | ENC_NA ) ;\n offset += length ;\n break ;\n case ARG_UINT16 : header_type_name = \"uint16\" ;\n padding_start = offset ;\n offset = round_to_2byte ( offset , field_starting_offset ) ;\n add_padding_item ( padding_start , offset , tvb , field_tree ) ;\n proto_tree_add_item ( field_tree , hf_alljoyn_uint16 , tvb , offset , 2 , encoding ) ;\n offset += 2 ;\n break ;\n case ARG_STRING : header_type_name = \"string\" ;\n padding_start = offset ;\n offset = round_to_4byte ( offset , field_starting_offset ) ;\n add_padding_item ( padding_start , offset , tvb , field_tree ) ;\n proto_tree_add_item ( field_tree , hf_alljoyn_string_size_32bit , tvb , offset , 4 , encoding ) ;\n length = ( gint ) get_uint32 ( tvb , offset , encoding ) ;\n if ( length < 0 || length > tvb_reported_length_remaining ( tvb , offset ) ) {\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"BAD DATA: String length is %d. Remaining packet length is %d.\" , length , ( gint ) tvb_reported_length_remaining ( tvb , offset ) ) ;\n return tvb_reported_length ( tvb ) ;\n }\n length += 1 ;\n offset += 4 ;\n proto_tree_add_item ( field_tree , hf_alljoyn_string_data , tvb , offset , length , ENC_UTF_8 | ENC_NA ) ;\n if ( HDR_MEMBER == field_code ) {\n guint8 * member_name ;\n member_name = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset , length , ENC_UTF_8 ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" %s\" , member_name ) ;\n }\n offset += length ;\n break ;\n case ARG_UINT64 : header_type_name = \"uint64\" ;\n padding_start = offset ;\n offset = round_to_8byte ( offset , field_starting_offset ) ;\n add_padding_item ( padding_start , offset , tvb , field_tree ) ;\n proto_tree_add_item ( field_tree , hf_alljoyn_uint64 , tvb , offset , 8 , encoding ) ;\n offset += 8 ;\n break ;\n case ARG_UINT32 : header_type_name = \"uint32\" ;\n padding_start = offset ;\n offset = round_to_4byte ( offset , field_starting_offset ) ;\n add_padding_item ( padding_start , offset , tvb , field_tree ) ;\n if ( is_reply_to ) {\n static const gchar format [ ] = \" Replies to: %09u\" ;\n guint32 replies_to ;\n replies_to = get_uint32 ( tvb , offset , encoding ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , format , replies_to ) ;\n if ( header_item ) {\n proto_item * item ;\n item = proto_tree_add_item ( field_tree , hf_alljoyn_uint32 , tvb , offset , 4 , encoding ) ;\n proto_item_set_text ( item , format + 1 , replies_to ) ;\n }\n }\n else {\n proto_tree_add_item ( field_tree , hf_alljoyn_uint32 , tvb , offset , 4 , encoding ) ;\n }\n offset += 4 ;\n break ;\n case ARG_VARIANT : {\n proto_item * item ;\n proto_tree * tree ;\n guint8 * sig_saved ;\n guint8 * sig_pointer ;\n guint8 variant_sig_length ;\n header_type_name = \"variant\" ;\n variant_sig_length = tvb_get_guint8 ( tvb , offset ) ;\n length = variant_sig_length ;\n if ( length > tvb_reported_length_remaining ( tvb , offset ) ) {\n gint bytes_left = tvb_reported_length_remaining ( tvb , offset ) ;\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"BAD DATA: Variant signature length is %d. Only %d bytes left in packet.\" , length , bytes_left ) ;\n offset = tvb_reported_length ( tvb ) ;\n }\n length += 1 ;\n item = proto_tree_add_item ( field_tree , hf_alljoyn_mess_body_variant , tvb , offset , 4 , encoding ) ;\n tree = proto_item_add_subtree ( item , ett_alljoyn_mess_body_parameters ) ;\n proto_tree_add_item ( tree , hf_alljoyn_mess_body_signature_length , tvb , offset , 1 , encoding ) ;\n offset += 1 ;\n tree = proto_item_add_subtree ( item , ett_alljoyn_mess_body_parameters ) ;\n proto_tree_add_item ( tree , hf_alljoyn_mess_body_signature , tvb , offset , length , ENC_ASCII | ENC_NA ) ;\n sig_saved = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset , length , ENC_ASCII ) ;\n offset += length ;\n sig_pointer = sig_saved ;\n while ( ( ( sig_pointer - sig_saved ) < ( length - 1 ) ) && ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) ) {\n proto_item_append_text ( item , \"%c\" , * sig_pointer ) ;\n offset = parse_arg ( tvb , pinfo , header_item , encoding , offset , tree , is_reply_to , * sig_pointer , field_code , & sig_pointer , & variant_sig_length , field_starting_offset ) ;\n }\n proto_item_append_text ( item , \"'\" ) ;\n proto_item_set_end ( item , tvb , offset ) ;\n }\n break ;\n case ARG_INT64 : header_type_name = \"int64\" ;\n padding_start = offset ;\n offset = round_to_8byte ( offset , field_starting_offset ) ;\n add_padding_item ( padding_start , offset , tvb , field_tree ) ;\n proto_tree_add_item ( field_tree , hf_alljoyn_int64 , tvb , offset , 8 , encoding ) ;\n offset += 8 ;\n break ;\n case ARG_BYTE : header_type_name = \"byte\" ;\n proto_tree_add_item ( field_tree , hf_alljoyn_uint8 , tvb , offset , 1 , encoding ) ;\n offset += 1 ;\n break ;\n case ARG_DICT_ENTRY : case ARG_STRUCT : {\n proto_item * item ;\n proto_tree * tree ;\n int hf ;\n guint8 type_stop ;\n if ( type_id == ARG_STRUCT ) {\n header_type_name = \"structure\" ;\n hf = hf_alljoyn_mess_body_structure ;\n type_stop = ')' ;\n }\n else {\n header_type_name = \"dictionary\" ;\n hf = hf_alljoyn_mess_body_dictionary_entry ;\n type_stop = '}\n' ;\n }\n if ( * signature == NULL || * signature_length < 1 ) {\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"BAD DATA: A %s argument needs a signature.\" , header_type_name ) ;\n return tvb_reported_length ( tvb ) ;\n }\n item = proto_tree_add_item ( field_tree , hf , tvb , offset , 4 , encoding ) ;\n append_struct_signature ( item , * signature , * signature_length , type_stop ) ;\n tree = proto_item_add_subtree ( item , ett_alljoyn_mess_body_parameters ) ;\n padding_start = offset ;\n offset = pad_according_to_type ( offset , field_starting_offset , tvb_reported_length ( tvb ) , type_id ) ;\n add_padding_item ( padding_start , offset , tvb , tree ) ;\n ( * signature ) ++ ;\n ( * signature_length ) -- ;\n while ( * signature && * * signature && * * signature != type_stop && tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n offset = parse_arg ( tvb , pinfo , header_item , encoding , offset , tree , is_reply_to , * * signature , field_code , signature , signature_length , field_starting_offset ) ;\n }\n proto_item_set_end ( item , tvb , offset ) ;\n }\n break ;\n default : header_type_name = \"unexpected\" ;\n offset = tvb_reported_length ( tvb ) ;\n break ;\n }\n if ( * signature && ARG_ARRAY != type_id && HDR_INVALID == field_code ) {\n ( * signature ) ++ ;\n ( * signature_length ) -- ;\n }\n if ( NULL != header_item && NULL != header_type_name ) {\n proto_item_append_text ( header_item , \"%s\" , header_type_name ) ;\n }\n if ( offset > ( gint ) tvb_reported_length ( tvb ) ) {\n offset = ( gint ) tvb_reported_length ( tvb ) ;\n }\n return offset ;\n }"}
{"idx": 11026, "target": 0, "func": "static gboolean every_finfo ( proto_node * node , gpointer data ) {\n field_info * fi = PNODE_FINFO ( node ) ;\n if ( fi && fi -> hfinfo ) {\n g_ptr_array_add ( ( ( ffdata_t * ) data ) -> array , fi ) ;\n }\n return FALSE ;\n }"}
{"idx": 11027, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n AnsiContext * s = avctx -> priv_data ;\n uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n const uint8_t * buf_end = buf + buf_size ;\n int ret , i , count ;\n ret = avctx -> reget_buffer ( avctx , & s -> frame ) ;\n if ( ret < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( ! avctx -> frame_number ) {\n memset ( s -> frame . data [ 0 ] , 0 , avctx -> height * FFABS ( s -> frame . linesize [ 0 ] ) ) ;\n memset ( s -> frame . data [ 1 ] , 0 , AVPALETTE_SIZE ) ;\n }\n s -> frame . pict_type = AV_PICTURE_TYPE_I ;\n s -> frame . palette_has_changed = 1 ;\n memcpy ( s -> frame . data [ 1 ] , ff_cga_palette , 16 * 4 ) ;\n while ( buf < buf_end ) {\n switch ( s -> state ) {\n case STATE_NORMAL : switch ( buf [ 0 ] ) {\n case 0x00 : case 0x07 : case 0x1A : break ;\n case 0x08 : s -> x = FFMAX ( s -> x - 1 , 0 ) ;\n break ;\n case 0x09 : i = s -> x / FONT_WIDTH ;\n count = ( ( i + 8 ) & ~ 7 ) - i ;\n for ( i = 0 ;\n i < count ;\n i ++ ) draw_char ( avctx , ' ' ) ;\n break ;\n case 0x0A : hscroll ( avctx ) ;\n case 0x0D : s -> x = 0 ;\n break ;\n case 0x0C : erase_screen ( avctx ) ;\n break ;\n case 0x1B : s -> state = STATE_ESCAPE ;\n break ;\n default : draw_char ( avctx , buf [ 0 ] ) ;\n }\n break ;\n case STATE_ESCAPE : if ( buf [ 0 ] == '[' ) {\n s -> state = STATE_CODE ;\n s -> nb_args = 0 ;\n s -> args [ 0 ] = 0 ;\n }\n else {\n s -> state = STATE_NORMAL ;\n draw_char ( avctx , 0x1B ) ;\n continue ;\n }\n break ;\n case STATE_CODE : switch ( buf [ 0 ] ) {\n case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : if ( s -> nb_args < MAX_NB_ARGS ) s -> args [ s -> nb_args ] = s -> args [ s -> nb_args ] * 10 + buf [ 0 ] - '0' ;\n break ;\n case ';\n' : s -> nb_args ++ ;\n if ( s -> nb_args < MAX_NB_ARGS ) s -> args [ s -> nb_args ] = 0 ;\n break ;\n case 'M' : s -> state = STATE_MUSIC_PREAMBLE ;\n break ;\n case '=' : case '?' : break ;\n default : if ( s -> nb_args > MAX_NB_ARGS ) av_log ( avctx , AV_LOG_WARNING , \"args overflow (%i)\\n\" , s -> nb_args ) ;\n if ( s -> nb_args < MAX_NB_ARGS && s -> args [ s -> nb_args ] ) s -> nb_args ++ ;\n if ( ( ret = execute_code ( avctx , buf [ 0 ] ) ) < 0 ) return ret ;\n s -> state = STATE_NORMAL ;\n }\n break ;\n case STATE_MUSIC_PREAMBLE : if ( buf [ 0 ] == 0x0E || buf [ 0 ] == 0x1B ) s -> state = STATE_NORMAL ;\n break ;\n }\n buf ++ ;\n }\n * got_frame = 1 ;\n * ( AVFrame * ) data = s -> frame ;\n return buf_size ;\n }"}
{"idx": 11028, "target": 0, "func": "gboolean proto_tree_set_visible ( proto_tree * tree , gboolean visible ) {\n gboolean old_visible = PTREE_DATA ( tree ) -> visible ;\n PTREE_DATA ( tree ) -> visible = visible ;\n return old_visible ;\n }"}
{"idx": 11029, "target": 1, "func": "static void encode_frame_internal ( VP9_COMP * cpi ) {\n SPEED_FEATURES * const sf = & cpi -> sf ;\n RD_OPT * const rd_opt = & cpi -> rd ;\n MACROBLOCK * const x = & cpi -> mb ;\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n xd -> mi = cm -> mi_grid_visible ;\n xd -> mi [ 0 ] = cm -> mi ;\n vp9_zero ( cm -> counts ) ;\n vp9_zero ( cpi -> coef_counts ) ;\n vp9_zero ( rd_opt -> comp_pred_diff ) ;\n vp9_zero ( rd_opt -> filter_diff ) ;\n vp9_zero ( rd_opt -> tx_select_diff ) ;\n vp9_zero ( rd_opt -> tx_select_threshes ) ;\n xd -> lossless = cm -> base_qindex == 0 && cm -> y_dc_delta_q == 0 && cm -> uv_dc_delta_q == 0 && cm -> uv_ac_delta_q == 0 ;\n cm -> tx_mode = select_tx_mode ( cpi ) ;\n x -> fwd_txm4x4 = xd -> lossless ? vp9_fwht4x4 : vp9_fdct4x4 ;\n x -> itxm_add = xd -> lossless ? vp9_iwht4x4_add : vp9_idct4x4_add ;\n if ( xd -> lossless ) {\n x -> optimize = 0 ;\n cm -> lf . filter_level = 0 ;\n cpi -> zbin_mode_boost_enabled = 0 ;\n }\n vp9_frame_init_quantizer ( cpi ) ;\n vp9_initialize_rd_consts ( cpi ) ;\n vp9_initialize_me_consts ( cpi , cm -> base_qindex ) ;\n init_encode_frame_mb_context ( cpi ) ;\n set_prev_mi ( cm ) ;\n x -> quant_fp = cpi -> sf . use_quant_fp ;\n vp9_zero ( x -> skip_txfm ) ;\n if ( sf -> use_nonrd_pick_mode ) {\n int i ;\n struct macroblock_plane * const p = x -> plane ;\n struct macroblockd_plane * const pd = xd -> plane ;\n PICK_MODE_CONTEXT * ctx = & cpi -> pc_root -> none ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n ++ i ) {\n p [ i ] . coeff = ctx -> coeff_pbuf [ i ] [ 0 ] ;\n p [ i ] . qcoeff = ctx -> qcoeff_pbuf [ i ] [ 0 ] ;\n pd [ i ] . dqcoeff = ctx -> dqcoeff_pbuf [ i ] [ 0 ] ;\n p [ i ] . eobs = ctx -> eobs_pbuf [ i ] [ 0 ] ;\n }\n vp9_zero ( x -> zcoeff_blk ) ;\n if ( sf -> partition_search_type == SOURCE_VAR_BASED_PARTITION ) source_var_based_partition_search_method ( cpi ) ;\n }\n {\n struct vpx_usec_timer emr_timer ;\n vpx_usec_timer_start ( & emr_timer ) ;\n # if CONFIG_FP_MB_STATS if ( cpi -> use_fp_mb_stats ) {\n input_fpmb_stats ( & cpi -> twopass . firstpass_mb_stats , cm , & cpi -> twopass . this_frame_mb_stats ) ;\n }\n # endif encode_tiles ( cpi ) ;\n vpx_usec_timer_mark ( & emr_timer ) ;\n cpi -> time_encode_sb_row += vpx_usec_timer_elapsed ( & emr_timer ) ;\n }\n sf -> skip_encode_frame = sf -> skip_encode_sb ? get_skip_encode_frame ( cm ) : 0 ;\n # if 0 cpi -> last_frame_distortion = cpi -> frame_distortion ;\n # endif }"}
{"idx": 11030, "target": 0, "func": "int dissect_ber_constrained_octet_string ( gboolean implicit_tag , asn1_ctx_t * actx , proto_tree * tree , tvbuff_t * tvb , int offset , gint32 min_len , gint32 max_len , gint hf_id , tvbuff_t * * out_tvb ) {\n gint8 ber_class ;\n gboolean pc , ind ;\n gint32 tag ;\n guint32 len ;\n guint encoding ;\n int hoffset ;\n int end_offset ;\n proto_item * it , * cause ;\n guint32 len_remain ;\n # ifdef DEBUG_BER {\n const char * name ;\n header_field_info * hfinfo ;\n if ( hf_id >= 0 ) {\n hfinfo = proto_registrar_get_nth ( hf_id ) ;\n name = hfinfo -> name ;\n }\n else {\n name = \"unnamed\" ;\n }\n if ( tvb_reported_length_remaining ( tvb , offset ) > 3 ) {\n printf ( \"OCTET STRING dissect_ber_octet string(%s) entered implicit_tag:%d offset:%d len:%d %02x:%02x:%02x\\n\" , name , implicit_tag , offset , tvb_reported_length_remaining ( tvb , offset ) , tvb_get_guint8 ( tvb , offset ) , tvb_get_guint8 ( tvb , offset + 1 ) , tvb_get_guint8 ( tvb , offset + 2 ) ) ;\n }\n else {\n printf ( \"OCTET STRING dissect_ber_octet_string(%s) entered\\n\" , name ) ;\n }\n }\n # endif if ( out_tvb ) * out_tvb = NULL ;\n if ( ! implicit_tag ) {\n hoffset = offset ;\n offset = dissect_ber_identifier ( actx -> pinfo , tree , tvb , offset , & ber_class , & pc , & tag ) ;\n offset = dissect_ber_length ( actx -> pinfo , tree , tvb , offset , & len , & ind ) ;\n end_offset = offset + len ;\n if ( ( ber_class != BER_CLASS_APP ) && ( ber_class != BER_CLASS_PRI ) ) {\n if ( ( ber_class != BER_CLASS_UNI ) || ( ( tag < BER_UNI_TAG_NumericString ) && ( tag != BER_UNI_TAG_OCTETSTRING ) && ( tag != BER_UNI_TAG_UTF8String ) ) ) {\n tvb_ensure_bytes_exist ( tvb , hoffset , 2 ) ;\n cause = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset , len , \"octetstring_expected\" , \"OctetString expected but class:%s(%d) %s tag:%d was unexpected\" , val_to_str_const ( ber_class , ber_class_codes , \"Unknown\" ) , ber_class , pc ? ber_pc_codes_short . true_string : ber_pc_codes_short . false_string , tag ) ;\n expert_add_info ( actx -> pinfo , cause , & ei_ber_expected_octet_string ) ;\n if ( decode_unexpected ) {\n proto_tree * unknown_tree = proto_item_add_subtree ( cause , ett_ber_unknown ) ;\n dissect_unknown_ber ( actx -> pinfo , tvb , hoffset , unknown_tree ) ;\n }\n return end_offset ;\n }\n }\n }\n else {\n get_last_ber_identifier ( & ber_class , & pc , & tag ) ;\n get_last_ber_length ( & len , & ind ) ;\n end_offset = offset + len ;\n len_remain = ( guint32 ) tvb_reported_length_remaining ( tvb , offset ) ;\n if ( ind && ( len_remain == ( len - 2 ) ) ) {\n len -= 2 ;\n end_offset -= 2 ;\n ind = FALSE ;\n }\n else if ( len_remain < len ) {\n cause = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset , len , \"illegal_length\" , \"length:%u longer than tvb_reported_length_remaining:%d\" , len , len_remain ) ;\n expert_add_info ( actx -> pinfo , cause , & ei_ber_error_length ) ;\n return end_offset ;\n }\n }\n actx -> created_item = NULL ;\n if ( pc ) {\n end_offset = reassemble_octet_string ( actx , tree , hf_id , tvb , offset , len , ind , out_tvb ) ;\n }\n else {\n gint length_remaining ;\n length_remaining = tvb_reported_length_remaining ( tvb , offset ) ;\n # if 0 if ( length_remaining < 1 ) {\n return end_offset ;\n }\n # endif if ( len <= ( guint32 ) length_remaining ) {\n length_remaining = len ;\n }\n if ( hf_id >= 0 ) {\n switch ( tag ) {\n case BER_UNI_TAG_UTF8String : encoding = ENC_UTF_8 | ENC_NA ;\n break ;\n case BER_UNI_TAG_NumericString : case BER_UNI_TAG_PrintableString : case BER_UNI_TAG_VisibleString : case BER_UNI_TAG_IA5String : encoding = ENC_ASCII | ENC_NA ;\n break ;\n case BER_UNI_TAG_TeletexString : encoding = ENC_ASCII | ENC_NA ;\n break ;\n case BER_UNI_TAG_VideotexString : encoding = ENC_ASCII | ENC_NA ;\n break ;\n case BER_UNI_TAG_GraphicString : case BER_UNI_TAG_GeneralString : encoding = ENC_ASCII | ENC_NA ;\n break ;\n case BER_UNI_TAG_UniversalString : encoding = ENC_UCS_4 | ENC_BIG_ENDIAN ;\n break ;\n case BER_UNI_TAG_CHARACTERSTRING : encoding = ENC_ASCII | ENC_NA ;\n break ;\n case BER_UNI_TAG_BMPString : encoding = ENC_UCS_2 | ENC_BIG_ENDIAN ;\n break ;\n default : encoding = ENC_BIG_ENDIAN ;\n break ;\n }\n it = ber_proto_tree_add_item ( actx -> pinfo , tree , hf_id , tvb , offset , length_remaining , encoding ) ;\n actx -> created_item = it ;\n ber_check_length ( length_remaining , min_len , max_len , actx , it , FALSE ) ;\n }\n else {\n proto_tree_add_item ( tree , hf_ber_unknown_octetstring , tvb , offset , len , ENC_NA ) ;\n }\n if ( out_tvb ) {\n * out_tvb = ber_tvb_new_subset_length ( tvb , offset , len ) ;\n }\n }\n return end_offset ;\n }"}
{"idx": 11031, "target": 0, "func": "static inline int check_pixel ( uint8_t * buf , uint8_t * start , uint8_t * end ) {\n return buf >= start && buf < end ;\n }"}
{"idx": 11032, "target": 0, "func": "void uwsgi_php_set ( char * opt ) {\n uwsgi_sapi_module . ini_entries = realloc ( uwsgi_sapi_module . ini_entries , uphp . ini_size + strlen ( opt ) + 2 ) ;\n memcpy ( uwsgi_sapi_module . ini_entries + uphp . ini_size , opt , strlen ( opt ) ) ;\n uphp . ini_size += strlen ( opt ) + 1 ;\n uwsgi_sapi_module . ini_entries [ uphp . ini_size - 1 ] = '\\n' ;\n uwsgi_sapi_module . ini_entries [ uphp . ini_size ] = 0 ;\n }"}
{"idx": 11033, "target": 0, "func": "static XHCIPort * xhci_lookup_port ( XHCIState * xhci , struct USBPort * uport ) {\n int index ;\n if ( ! uport -> dev ) {\n return NULL ;\n }\n switch ( uport -> dev -> speed ) {\n case USB_SPEED_LOW : case USB_SPEED_FULL : case USB_SPEED_HIGH : if ( xhci_get_flag ( xhci , XHCI_FLAG_SS_FIRST ) ) {\n index = uport -> index + xhci -> numports_3 ;\n }\n else {\n index = uport -> index ;\n }\n break ;\n case USB_SPEED_SUPER : if ( xhci_get_flag ( xhci , XHCI_FLAG_SS_FIRST ) ) {\n index = uport -> index ;\n }\n else {\n index = uport -> index + xhci -> numports_2 ;\n }\n break ;\n default : return NULL ;\n }\n return & xhci -> ports [ index ] ;\n }"}
{"idx": 11034, "target": 0, "func": "TEST_F ( TemplateURLParserTest , TestFirefoxYahoo ) {\n ParamFilterImpl filter ( std : : string ( ) , \"Mozilla\" ) ;\n ASSERT_NO_FATAL_FAILURE ( ParseFile ( \"firefox_yahoo.xml\" , & filter ) ) ;\n ASSERT_TRUE ( template_url_ ) ;\n EXPECT_EQ ( ASCIIToUTF16 ( \"Yahoo\" ) , template_url_ -> short_name ( ) ) ;\n EXPECT_TRUE ( template_url_ -> url_ref ( ) . SupportsReplacement ( SearchTermsData ( ) ) ) ;\n EXPECT_EQ ( \"http://ff.search.yahoo.com/gossip?\" \"output=fxjson&command={\nsearchTerms}\n\" , template_url_ -> suggestions_url ( ) ) ;\n EXPECT_EQ ( \"http://search.yahoo.com/search?p={\nsearchTerms}\n&ei=UTF-8\" , template_url_ -> url ( ) ) ;\n ASSERT_EQ ( 1U , template_url_ -> input_encodings ( ) . size ( ) ) ;\n EXPECT_EQ ( \"UTF-8\" , template_url_ -> input_encodings ( ) [ 0 ] ) ;\n EXPECT_EQ ( GURL ( \"http://search.yahoo.com/favicon.ico\" ) , template_url_ -> favicon_url ( ) ) ;\n }"}
{"idx": 11035, "target": 0, "func": "int gs_copydevice2 ( gx_device * * pnew_dev , const gx_device * dev , bool keep_open , gs_memory_t * mem ) {\n gx_device * new_dev ;\n const gs_memory_struct_type_t * std = dev -> stype ;\n const gs_memory_struct_type_t * new_std ;\n gs_memory_struct_type_t * a_std = 0 ;\n int code ;\n if ( dev -> stype_is_dynamic ) {\n a_std = ( gs_memory_struct_type_t * ) gs_alloc_bytes_immovable ( mem -> non_gc_memory , sizeof ( * std ) , \"gs_copydevice(stype)\" ) ;\n if ( ! a_std ) return_error ( gs_error_VMerror ) ;\n * a_std = * std ;\n new_std = a_std ;\n }\n else if ( std != 0 && std -> ssize == dev -> params_size ) {\n new_std = std ;\n }\n else {\n a_std = ( gs_memory_struct_type_t * ) gs_alloc_bytes_immovable ( mem -> non_gc_memory , sizeof ( * std ) , \"gs_copydevice(stype)\" ) ;\n if ( ! a_std ) return_error ( gs_error_VMerror ) ;\n gx_device_make_struct_type ( a_std , dev ) ;\n new_std = a_std ;\n }\n new_dev = gs_alloc_struct_immovable ( mem , gx_device , new_std , \"gs_copydevice(device)\" ) ;\n if ( new_dev == 0 ) {\n gs_free_object ( mem -> non_gc_memory , a_std , \"gs_copydevice(stype)\" ) ;\n return_error ( gs_error_VMerror ) ;\n }\n gx_device_init ( new_dev , dev , mem , false ) ;\n gx_device_set_procs ( new_dev ) ;\n new_dev -> stype = new_std ;\n new_dev -> stype_is_dynamic = new_std != std ;\n new_dev -> is_open = dev -> is_open && keep_open ;\n fill_dev_proc ( new_dev , finish_copydevice , gx_default_finish_copydevice ) ;\n code = dev_proc ( new_dev , finish_copydevice ) ( new_dev , dev ) ;\n if ( code < 0 ) {\n gs_free_object ( mem , new_dev , \"gs_copydevice(device)\" ) ;\n # if 0 if ( a_std ) gs_free_object ( dev -> memory -> non_gc_memory , a_std , \"gs_copydevice(stype)\" ) ;\n # endif return code ;\n }\n * pnew_dev = new_dev ;\n return 0 ;\n }"}
{"idx": 11036, "target": 0, "func": "GPtrArray * proto_all_finfos ( proto_tree * tree ) {\n ffdata_t ffdata ;\n ffdata . array = g_ptr_array_new ( ) ;\n ffdata . id = 0 ;\n proto_tree_traverse_pre_order ( tree , every_finfo , & ffdata ) ;\n return ffdata . array ;\n }"}
{"idx": 11037, "target": 0, "func": "int test_div_word ( BIO * bp ) {\n BIGNUM a , b ;\n BN_ULONG r , s ;\n int i ;\n BN_init ( & a ) ;\n BN_init ( & b ) ;\n for ( i = 0 ;\n i < num0 ;\n i ++ ) {\n do {\n BN_bntest_rand ( & a , 512 , - 1 , 0 ) ;\n BN_bntest_rand ( & b , BN_BITS2 , - 1 , 0 ) ;\n s = b . d [ 0 ] ;\n }\n while ( ! s ) ;\n BN_copy ( & b , & a ) ;\n r = BN_div_word ( & b , s ) ;\n if ( bp != NULL ) {\n if ( ! results ) {\n BN_print ( bp , & a ) ;\n BIO_puts ( bp , \" / \" ) ;\n print_word ( bp , s ) ;\n BIO_puts ( bp , \" - \" ) ;\n }\n BN_print ( bp , & b ) ;\n BIO_puts ( bp , \"\\n\" ) ;\n if ( ! results ) {\n BN_print ( bp , & a ) ;\n BIO_puts ( bp , \" % \" ) ;\n print_word ( bp , s ) ;\n BIO_puts ( bp , \" - \" ) ;\n }\n print_word ( bp , r ) ;\n BIO_puts ( bp , \"\\n\" ) ;\n }\n BN_mul_word ( & b , s ) ;\n BN_add_word ( & b , r ) ;\n BN_sub ( & b , & a , & b ) ;\n if ( ! BN_is_zero ( & b ) ) {\n fprintf ( stderr , \"Division (word) test failed!\\n\" ) ;\n return 0 ;\n }\n }\n BN_free ( & a ) ;\n BN_free ( & b ) ;\n return ( 1 ) ;\n }"}
{"idx": 11038, "target": 0, "func": "static int dissect_zbee_zcl_appl_stats ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n proto_tree * payload_tree ;\n zbee_zcl_packet * zcl ;\n guint offset = 0 ;\n guint8 cmd_id ;\n gint rem_len ;\n if ( data == NULL ) return 0 ;\n zcl = ( zbee_zcl_packet * ) data ;\n cmd_id = zcl -> cmd_id ;\n if ( zcl -> direction == ZBEE_ZCL_FCF_TO_SERVER ) {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"%s, Seq: %u\" , val_to_str_const ( cmd_id , zbee_zcl_appl_stats_srv_rx_cmd_names , \"Unknown Command\" ) , zcl -> tran_seqno ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_appl_stats_srv_rx_cmd_id , tvb , offset , 1 , cmd_id ) ;\n rem_len = tvb_reported_length_remaining ( tvb , ++ offset ) ;\n if ( rem_len > 0 ) {\n payload_tree = proto_tree_add_subtree ( tree , tvb , offset , rem_len , ett_zbee_zcl_appl_stats , NULL , \"Payload\" ) ;\n switch ( cmd_id ) {\n case ZBEE_ZCL_CMD_ID_APPL_STATS_LOG_REQ : dissect_zcl_appl_stats_log_req ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_APPL_STATS_LOG_QUEUE_REQ : break ;\n default : break ;\n }\n }\n }\n else {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"%s, Seq: %u\" , val_to_str_const ( cmd_id , zbee_zcl_appl_stats_srv_tx_cmd_names , \"Unknown Command\" ) , zcl -> tran_seqno ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_appl_stats_srv_tx_cmd_id , tvb , offset , 1 , cmd_id ) ;\n rem_len = tvb_reported_length_remaining ( tvb , ++ offset ) ;\n if ( rem_len > 0 ) {\n payload_tree = proto_tree_add_subtree ( tree , tvb , offset , rem_len , ett_zbee_zcl_appl_stats , NULL , \"Payload\" ) ;\n switch ( cmd_id ) {\n case ZBEE_ZCL_CMD_ID_APPL_STATS_LOG_NOTIF : case ZBEE_ZCL_CMD_ID_APPL_STATS_LOG_RSP : dissect_zcl_appl_stats_log_rsp ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_APPL_STATS_LOG_QUEUE_RSP : case ZBEE_ZCL_CMD_ID_APPL_STATS_STATS_AVAILABLE : dissect_zcl_appl_stats_log_queue_rsp ( tvb , payload_tree , & offset ) ;\n break ;\n default : break ;\n }\n }\n }\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 11039, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , MAYBE_TestInstallDefaultHandler ) {\n RecreateRegistry ( false ) ;\n registry ( ) -> AddPredefinedHandler ( CreateProtocolHandler ( \"test\" , GURL ( \"http://test.com/%s\" ) ) ) ;\n registry ( ) -> InitProtocolSettings ( ) ;\n std : : vector < std : : string > protocols ;\n registry ( ) -> GetRegisteredProtocols ( & protocols ) ;\n ASSERT_EQ ( static_cast < size_t > ( 1 ) , protocols . size ( ) ) ;\n }"}
{"idx": 11040, "target": 0, "func": "static int tipc_nl_compat_bearer_disable ( struct tipc_nl_compat_cmd_doit * cmd , struct sk_buff * skb , struct tipc_nl_compat_msg * msg ) {\n char * name ;\n struct nlattr * bearer ;\n name = ( char * ) TLV_DATA ( msg -> req ) ;\n bearer = nla_nest_start ( skb , TIPC_NLA_BEARER ) ;\n if ( ! bearer ) return - EMSGSIZE ;\n if ( nla_put_string ( skb , TIPC_NLA_BEARER_NAME , name ) ) return - EMSGSIZE ;\n nla_nest_end ( skb , bearer ) ;\n return 0 ;\n }"}
{"idx": 11041, "target": 0, "func": "int archive_string_append_from_wcs ( struct archive_string * as , const wchar_t * w , size_t len ) {\n ( void ) as ;\n ( void ) w ;\n ( void ) len ;\n errno = ENOSYS ;\n return ( - 1 ) ;\n }"}
{"idx": 11042, "target": 0, "func": "void TSHttpTxnClientIncomingPortSet ( TSHttpTxn txnp , int port ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = reinterpret_cast < HttpSM * > ( txnp ) ;\n sm -> t_state . client_info . dst_addr . port ( ) = htons ( port ) ;\n }"}
{"idx": 11043, "target": 0, "func": "static gpgme_error_t _uiserver_decrypt ( void * engine , int verify , gpgme_data_t ciph , gpgme_data_t plain ) {\n engine_uiserver_t uiserver = engine ;\n gpgme_error_t err ;\n const char * protocol ;\n char * cmd ;\n if ( ! uiserver ) return gpg_error ( GPG_ERR_INV_VALUE ) ;\n if ( uiserver -> protocol == GPGME_PROTOCOL_DEFAULT ) protocol = \"\" ;\n else if ( uiserver -> protocol == GPGME_PROTOCOL_OpenPGP ) protocol = \" --protocol=OpenPGP\" ;\n else if ( uiserver -> protocol == GPGME_PROTOCOL_CMS ) protocol = \" --protocol=CMS\" ;\n else return gpgme_error ( GPG_ERR_UNSUPPORTED_PROTOCOL ) ;\n if ( asprintf ( & cmd , \"DECRYPT%s%s\" , protocol , verify ? \"\" : \" --no-verify\" ) < 0 ) return gpg_error_from_syserror ( ) ;\n uiserver -> input_cb . data = ciph ;\n err = uiserver_set_fd ( uiserver , INPUT_FD , map_data_enc ( uiserver -> input_cb . data ) ) ;\n if ( err ) {\n free ( cmd ) ;\n return gpg_error ( GPG_ERR_GENERAL ) ;\n }\n uiserver -> output_cb . data = plain ;\n err = uiserver_set_fd ( uiserver , OUTPUT_FD , 0 ) ;\n if ( err ) {\n free ( cmd ) ;\n return gpg_error ( GPG_ERR_GENERAL ) ;\n }\n uiserver -> inline_data = NULL ;\n err = start ( engine , cmd ) ;\n free ( cmd ) ;\n return err ;\n }"}
{"idx": 11044, "target": 1, "func": "void vmmouse_get_data ( uint32_t * data ) {\n CPUX86State * env = cpu_single_env ;\n data [ 0 ] = env -> regs [ R_EAX ] ;\n data [ 1 ] = env -> regs [ R_EBX ] ;\n data [ 2 ] = env -> regs [ R_ECX ] ;\n data [ 3 ] = env -> regs [ R_EDX ] ;\n data [ 4 ] = env -> regs [ R_ESI ] ;\n data [ 5 ] = env -> regs [ R_EDI ] ;\n }"}
{"idx": 11045, "target": 0, "func": "int ff_set_systematic_pal2 ( uint32_t pal [ 256 ] , enum PixelFormat pix_fmt ) {\n int i ;\n for ( i = 0 ;\n i < 256 ;\n i ++ ) {\n int r , g , b ;\n switch ( pix_fmt ) {\n case PIX_FMT_RGB8 : r = ( i >> 5 ) * 36 ;\n g = ( ( i >> 2 ) & 7 ) * 36 ;\n b = ( i & 3 ) * 85 ;\n break ;\n case PIX_FMT_BGR8 : b = ( i >> 6 ) * 85 ;\n g = ( ( i >> 3 ) & 7 ) * 36 ;\n r = ( i & 7 ) * 36 ;\n break ;\n case PIX_FMT_RGB4_BYTE : r = ( i >> 3 ) * 255 ;\n g = ( ( i >> 1 ) & 3 ) * 85 ;\n b = ( i & 1 ) * 255 ;\n break ;\n case PIX_FMT_BGR4_BYTE : b = ( i >> 3 ) * 255 ;\n g = ( ( i >> 1 ) & 3 ) * 85 ;\n r = ( i & 1 ) * 255 ;\n break ;\n case PIX_FMT_GRAY8 : r = b = g = i ;\n break ;\n default : return AVERROR ( EINVAL ) ;\n }\n pal [ i ] = b + ( g << 8 ) + ( r << 16 ) ;\n }\n return 0 ;\n }"}
{"idx": 11046, "target": 0, "func": "static void openpic_save_IRQ_queue ( QEMUFile * f , IRQQueue * q ) {\n unsigned int i ;\n for ( i = 0 ;\n i < ARRAY_SIZE ( q -> queue ) ;\n i ++ ) {\n qemu_put_be32 ( f , ( uint32_t ) q -> queue [ i ] ) ;\n # if LONG_MAX > 0x7FFFFFFF qemu_put_be32 ( f , ( uint32_t ) ( q -> queue [ i ] >> 32 ) ) ;\n # endif }\n qemu_put_sbe32s ( f , & q -> next ) ;\n qemu_put_sbe32s ( f , & q -> priority ) ;\n }"}
{"idx": 11047, "target": 0, "func": "static void proto_tree_set_representation_value ( proto_item * pi , const char * format , va_list ap ) {\n g_assert ( pi ) ;\n if ( PTREE_DATA ( pi ) -> visible && ! PROTO_ITEM_IS_HIDDEN ( pi ) ) {\n int ret = 0 ;\n field_info * fi = PITEM_FINFO ( pi ) ;\n header_field_info * hf ;\n DISSECTOR_ASSERT ( fi ) ;\n hf = fi -> hfinfo ;\n ITEM_LABEL_NEW ( PNODE_POOL ( pi ) , fi -> rep ) ;\n if ( hf -> bitmask && ( hf -> type == FT_BOOLEAN || IS_FT_UINT ( hf -> type ) ) ) {\n guint64 val ;\n char * p ;\n if ( IS_FT_UINT ( hf -> type ) ) val = fvalue_get_uinteger ( & fi -> value ) ;\n else val = fvalue_get_uinteger64 ( & fi -> value ) ;\n val <<= hfinfo_bitshift ( hf ) ;\n p = decode_bitfield_value ( fi -> rep -> representation , val , hf -> bitmask , hfinfo_container_bitwidth ( hf ) ) ;\n ret = ( int ) ( p - fi -> rep -> representation ) ;\n }\n ret += g_snprintf ( fi -> rep -> representation + ret , ITEM_LABEL_LENGTH - ret , \"%s: \" , hf -> name ) ;\n if ( ret < ITEM_LABEL_LENGTH ) {\n ret += g_vsnprintf ( fi -> rep -> representation + ret , ITEM_LABEL_LENGTH - ret , format , ap ) ;\n }\n if ( ret >= ITEM_LABEL_LENGTH ) {\n LABEL_MARK_TRUNCATED_START ( fi -> rep -> representation ) ;\n }\n }\n }"}
{"idx": 11048, "target": 0, "func": "PHP_FUNCTION ( locale_lookup ) {\n char * fallback_loc = NULL ;\n int fallback_loc_len = 0 ;\n const char * loc_range = NULL ;\n int loc_range_len = 0 ;\n zval * arr = NULL ;\n HashTable * hash_arr = NULL ;\n zend_bool boolCanonical = 0 ;\n char * result = NULL ;\n intl_error_reset ( NULL TSRMLS_CC ) ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"as|bs\" , & arr , & loc_range , & loc_range_len , & boolCanonical , & fallback_loc , & fallback_loc_len ) == FAILURE ) {\n intl_error_set ( NULL , U_ILLEGAL_ARGUMENT_ERROR , \"locale_lookup: unable to parse input params\" , 0 TSRMLS_CC ) ;\n RETURN_FALSE ;\n }\n if ( loc_range_len == 0 ) {\n loc_range = intl_locale_get_default ( TSRMLS_C ) ;\n }\n hash_arr = HASH_OF ( arr ) ;\n if ( ! hash_arr || zend_hash_num_elements ( hash_arr ) == 0 ) {\n RETURN_EMPTY_STRING ( ) ;\n }\n result = lookup_loc_range ( loc_range , hash_arr , boolCanonical TSRMLS_CC ) ;\n if ( result == NULL || result [ 0 ] == '\\0' ) {\n if ( fallback_loc ) {\n result = estrndup ( fallback_loc , fallback_loc_len ) ;\n }\n else {\n RETURN_EMPTY_STRING ( ) ;\n }\n }\n RETVAL_STRINGL ( result , strlen ( result ) , 0 ) ;\n }"}
{"idx": 11049, "target": 0, "func": "static int decode_udvm_multitype_operand ( guint8 * buff , guint operand_address , guint16 * value ) {\n guint test_bits ;\n guint bytecode ;\n guint offset = operand_address ;\n guint16 operand ;\n guint32 result ;\n guint8 temp_data ;\n guint16 temp_data16 ;\n guint16 memmory_addr = 0 ;\n * value = 0 ;\n if ( operand_address >= UDVM_MEMORY_SIZE ) return - 1 ;\n bytecode = buff [ operand_address ] ;\n test_bits = ( bytecode & 0xc0 ) >> 6 ;\n switch ( test_bits ) {\n case 0 : operand = buff [ operand_address ] ;\n * value = operand ;\n offset ++ ;\n break ;\n case 1 : memmory_addr = ( bytecode & 0x3f ) * 2 ;\n temp_data16 = buff [ memmory_addr ] << 8 ;\n temp_data16 = temp_data16 | buff [ ( memmory_addr + 1 ) & 0xffff ] ;\n * value = temp_data16 ;\n offset ++ ;\n break ;\n case 2 : test_bits = ( bytecode & 0xe0 ) >> 5 ;\n if ( test_bits == 5 ) {\n temp_data = buff [ operand_address ] & 0x1f ;\n operand = temp_data << 8 ;\n temp_data = buff [ ( operand_address + 1 ) & 0xffff ] ;\n operand = operand | temp_data ;\n * value = operand ;\n offset = offset + 2 ;\n }\n else {\n test_bits = ( bytecode & 0xf0 ) >> 4 ;\n if ( test_bits == 9 ) {\n temp_data = buff [ operand_address ] & 0x0f ;\n operand = temp_data << 8 ;\n temp_data = buff [ ( operand_address + 1 ) & 0xffff ] ;\n operand = operand | temp_data ;\n operand = operand + 61440 ;\n * value = operand ;\n offset = offset + 2 ;\n }\n else {\n test_bits = ( bytecode & 0x08 ) >> 3 ;\n if ( test_bits == 1 ) {\n result = 1 << ( ( buff [ operand_address ] & 0x07 ) + 8 ) ;\n operand = result & 0xffff ;\n * value = operand ;\n offset ++ ;\n }\n else {\n test_bits = ( bytecode & 0x0e ) >> 1 ;\n if ( test_bits == 3 ) {\n result = 1 << ( ( buff [ operand_address ] & 0x01 ) + 6 ) ;\n operand = result & 0xffff ;\n * value = operand ;\n offset ++ ;\n }\n else {\n offset ++ ;\n temp_data16 = buff [ ( operand_address + 1 ) & 0xffff ] << 8 ;\n temp_data16 = temp_data16 | buff [ ( operand_address + 2 ) & 0xffff ] ;\n if ( ( bytecode & 0x01 ) == 1 ) {\n memmory_addr = temp_data16 ;\n temp_data16 = buff [ memmory_addr ] << 8 ;\n temp_data16 = temp_data16 | buff [ ( memmory_addr + 1 ) & 0xffff ] ;\n }\n * value = temp_data16 ;\n offset = offset + 2 ;\n }\n }\n }\n }\n break ;\n case 3 : test_bits = ( bytecode & 0x20 ) >> 5 ;\n if ( test_bits == 1 ) {\n operand = ( buff [ operand_address ] & 0x1f ) + 65504 ;\n * value = operand ;\n offset ++ ;\n }\n else {\n memmory_addr = buff [ operand_address ] & 0x1f ;\n memmory_addr = memmory_addr << 8 ;\n memmory_addr = memmory_addr | buff [ ( operand_address + 1 ) & 0xffff ] ;\n temp_data16 = buff [ memmory_addr ] << 8 ;\n temp_data16 = temp_data16 | buff [ ( memmory_addr + 1 ) & 0xffff ] ;\n * value = temp_data16 ;\n offset = offset + 2 ;\n }\n default : break ;\n }\n return offset ;\n }"}
{"idx": 11050, "target": 0, "func": "void gs_make_mem_device ( gx_device_memory * dev , const gx_device_memory * mdproto , gs_memory_t * mem , int page_device , gx_device * target ) {\n gx_device_init ( ( gx_device * ) dev , ( const gx_device * ) mdproto , mem , true ) ;\n dev -> stype = & st_device_memory ;\n switch ( page_device ) {\n case - 1 : set_dev_proc ( dev , get_page_device , gx_default_get_page_device ) ;\n break ;\n case 1 : set_dev_proc ( dev , get_page_device , gx_page_device_get_page_device ) ;\n break ;\n }\n if ( target == 0 ) {\n if ( dev -> color_info . depth == 1 ) {\n dev -> cached_colors . black = 1 ;\n dev -> cached_colors . white = 0 ;\n }\n else {\n dev -> cached_colors . black = 0 ;\n dev -> cached_colors . white = ( 1 << dev -> color_info . depth ) - 1 ;\n }\n dev -> graphics_type_tag = GS_UNKNOWN_TAG ;\n }\n else {\n gx_device_set_target ( ( gx_device_forward * ) dev , target ) ;\n gx_device_forward_color_procs ( ( gx_device_forward * ) dev ) ;\n gx_device_copy_color_procs ( ( gx_device * ) dev , target ) ;\n dev -> color_info . separable_and_linear = target -> color_info . separable_and_linear ;\n dev -> cached_colors = target -> cached_colors ;\n dev -> graphics_type_tag = target -> graphics_type_tag ;\n # define COPY_PROC ( p ) set_dev_proc ( dev , p , target -> procs . p ) COPY_PROC ( put_image ) ;\n # undef COPY_PROC }\n if ( dev -> color_info . depth == 1 ) {\n gx_color_value cv [ GX_DEVICE_COLOR_MAX_COMPONENTS ] ;\n uchar k ;\n if ( target != 0 ) {\n for ( k = 0 ;\n k < target -> color_info . num_components ;\n k ++ ) {\n cv [ k ] = 0 ;\n }\n }\n gdev_mem_mono_set_inverted ( dev , ( target == 0 || ( * dev_proc ( dev , encode_color ) ) ( ( gx_device * ) dev , cv ) != 0 ) ) ;\n }\n check_device_separable ( ( gx_device * ) dev ) ;\n gx_device_fill_in_procs ( ( gx_device * ) dev ) ;\n dev -> band_y = 0 ;\n }"}
{"idx": 11051, "target": 0, "func": "static VALUE cState_configure ( VALUE self , VALUE opts ) {\n VALUE tmp ;\n GET_STATE ( self ) ;\n tmp = rb_check_convert_type ( opts , T_HASH , \"Hash\" , \"to_hash\" ) ;\n if ( NIL_P ( tmp ) ) tmp = rb_convert_type ( opts , T_HASH , \"Hash\" , \"to_h\" ) ;\n opts = tmp ;\n tmp = rb_hash_aref ( opts , ID2SYM ( i_indent ) ) ;\n if ( RTEST ( tmp ) ) {\n unsigned long len ;\n Check_Type ( tmp , T_STRING ) ;\n len = RSTRING_LEN ( tmp ) ;\n state -> indent = fstrndup ( RSTRING_PTR ( tmp ) , len + 1 ) ;\n state -> indent_len = len ;\n }\n tmp = rb_hash_aref ( opts , ID2SYM ( i_space ) ) ;\n if ( RTEST ( tmp ) ) {\n unsigned long len ;\n Check_Type ( tmp , T_STRING ) ;\n len = RSTRING_LEN ( tmp ) ;\n state -> space = fstrndup ( RSTRING_PTR ( tmp ) , len + 1 ) ;\n state -> space_len = len ;\n }\n tmp = rb_hash_aref ( opts , ID2SYM ( i_space_before ) ) ;\n if ( RTEST ( tmp ) ) {\n unsigned long len ;\n Check_Type ( tmp , T_STRING ) ;\n len = RSTRING_LEN ( tmp ) ;\n state -> space_before = fstrndup ( RSTRING_PTR ( tmp ) , len + 1 ) ;\n state -> space_before_len = len ;\n }\n tmp = rb_hash_aref ( opts , ID2SYM ( i_array_nl ) ) ;\n if ( RTEST ( tmp ) ) {\n unsigned long len ;\n Check_Type ( tmp , T_STRING ) ;\n len = RSTRING_LEN ( tmp ) ;\n state -> array_nl = fstrndup ( RSTRING_PTR ( tmp ) , len + 1 ) ;\n state -> array_nl_len = len ;\n }\n tmp = rb_hash_aref ( opts , ID2SYM ( i_object_nl ) ) ;\n if ( RTEST ( tmp ) ) {\n unsigned long len ;\n Check_Type ( tmp , T_STRING ) ;\n len = RSTRING_LEN ( tmp ) ;\n state -> object_nl = fstrndup ( RSTRING_PTR ( tmp ) , len + 1 ) ;\n state -> object_nl_len = len ;\n }\n tmp = ID2SYM ( i_max_nesting ) ;\n state -> max_nesting = 100 ;\n if ( option_given_p ( opts , tmp ) ) {\n VALUE max_nesting = rb_hash_aref ( opts , tmp ) ;\n if ( RTEST ( max_nesting ) ) {\n Check_Type ( max_nesting , T_FIXNUM ) ;\n state -> max_nesting = FIX2LONG ( max_nesting ) ;\n }\n else {\n state -> max_nesting = 0 ;\n }\n }\n tmp = ID2SYM ( i_depth ) ;\n state -> depth = 0 ;\n if ( option_given_p ( opts , tmp ) ) {\n VALUE depth = rb_hash_aref ( opts , tmp ) ;\n if ( RTEST ( depth ) ) {\n Check_Type ( depth , T_FIXNUM ) ;\n state -> depth = FIX2LONG ( depth ) ;\n }\n else {\n state -> depth = 0 ;\n }\n }\n tmp = ID2SYM ( i_buffer_initial_length ) ;\n if ( option_given_p ( opts , tmp ) ) {\n VALUE buffer_initial_length = rb_hash_aref ( opts , tmp ) ;\n if ( RTEST ( buffer_initial_length ) ) {\n long initial_length ;\n Check_Type ( buffer_initial_length , T_FIXNUM ) ;\n initial_length = FIX2LONG ( buffer_initial_length ) ;\n if ( initial_length > 0 ) state -> buffer_initial_length = initial_length ;\n }\n }\n tmp = rb_hash_aref ( opts , ID2SYM ( i_allow_nan ) ) ;\n state -> allow_nan = RTEST ( tmp ) ;\n tmp = rb_hash_aref ( opts , ID2SYM ( i_ascii_only ) ) ;\n state -> ascii_only = RTEST ( tmp ) ;\n return self ;\n }"}
{"idx": 11052, "target": 0, "func": "unsigned long # define BN_LONG long # define BN_BITS 128 # define BN_BYTES 8 # define BN_BITS2 64 # define BN_BITS4 32 # define BN_MASK ( 0xffffffffffffffffffffffffffffffffLL ) # define BN_MASK2 ( 0xffffffffffffffffL ) # define BN_MASK2l ( 0xffffffffL ) # define BN_MASK2h ( 0xffffffff00000000L ) # define BN_MASK2h1 ( 0xffffffff80000000L ) # define BN_TBIT ( 0x8000000000000000L ) # define BN_DEC_CONV ( 10000000000000000000UL ) # define BN_DEC_FMT1 \"%lu\" # define BN_DEC_FMT2 \"%019lu\" # define BN_DEC_NUM 19 # define BN_HEX_FMT1 \"%lX\" # define BN_HEX_FMT2 \"%016lX\" # endif # ifdef SIXTY_FOUR_BIT # undef BN_LLONG # undef BN_ULLONG # define BN_ULONG unsigned long long # define BN_LONG long long # define BN_BITS 128 # define BN_BYTES 8 # define BN_BITS2 64 # define BN_BITS4 32 # define BN_MASK2 ( 0xffffffffffffffffLL ) # define BN_MASK2l ( 0xffffffffL ) # define BN_MASK2h ( 0xffffffff00000000LL ) # define BN_MASK2h1 ( 0xffffffff80000000LL ) # define BN_TBIT ( 0x8000000000000000LL ) # define BN_DEC_CONV ( 10000000000000000000ULL ) # define BN_DEC_FMT1 \"%llu\" # define BN_DEC_FMT2 \"%019llu\" # define BN_DEC_NUM 19 # define BN_HEX_FMT1 \"%llX\" # define BN_HEX_FMT2 \"%016llX\" # endif # ifdef THIRTY_TWO_BIT # ifdef BN_LLONG # if defined ( _WIN32 ) && ! defined ( __GNUC__ ) # define BN_ULLONG unsigned __int64 # define BN_MASK ( 0xffffffffffffffffI64 ) # else # define BN_ULLONG unsigned long long # define BN_MASK ( 0xffffffffffffffffLL ) # endif # endif # define BN_ULONG unsigned int # define BN_LONG int # define BN_BITS 64 # define BN_BYTES 4 # define BN_BITS2 32 # define BN_BITS4 16 # define BN_MASK2 ( 0xffffffffL ) # define BN_MASK2l ( 0xffff ) # define BN_MASK2h1 ( 0xffff8000L ) # define BN_MASK2h ( 0xffff0000L ) # define BN_TBIT ( 0x80000000L ) # define BN_DEC_CONV ( 1000000000L ) # define BN_DEC_FMT1 \"%u\" # define BN_DEC_FMT2 \"%09u\" # define BN_DEC_NUM 9 # define BN_HEX_FMT1 \"%X\" # define BN_HEX_FMT2 \"%08X\" # endif # define BN_DEFAULT_BITS 1280 # define BN_FLG_MALLOCED 0x01 # define BN_FLG_STATIC_DATA 0x02 # define BN_FLG_CONSTTIME 0x04 # ifndef OPENSSL_NO_DEPRECATED # define BN_FLG_EXP_CONSTTIME BN_FLG_CONSTTIME # endif # ifndef OPENSSL_NO_DEPRECATED # define BN_FLG_FREE 0x8000 # endif # define BN_set_flags ( b , n ) ( ( b ) -> flags |= ( n ) ) # define BN_get_flags ( b , n ) ( ( b ) -> flags & ( n ) ) # define BN_with_flags ( dest , b , n ) ( ( dest ) -> d = ( b ) -> d , \\ ( dest ) -> top = ( b ) -> top , \\ ( dest ) -> dmax = ( b ) -> dmax , \\ ( dest ) -> neg = ( b ) -> neg , \\ ( dest ) -> flags = ( ( ( dest ) -> flags & BN_FLG_MALLOCED ) \\ | ( ( b ) -> flags & ~ BN_FLG_MALLOCED ) \\ | BN_FLG_STATIC_DATA \\ | ( n ) ) ) # if 0 typedef struct bignum_st BIGNUM ;\n typedef struct bignum_ctx BN_CTX ;\n typedef struct bn_blinding_st BN_BLINDING ;\n typedef struct bn_mont_ctx_st BN_MONT_CTX ;\n typedef struct bn_recp_ctx_st BN_RECP_CTX ;\n typedef struct bn_gencb_st BN_GENCB ;\n # endif struct bignum_st {\n BN_ULONG * d ;\n int top ;\n int dmax ;\n int neg ;\n int flags ;\n }\n ;\n struct bn_mont_ctx_st {\n int ri ;\n BIGNUM RR ;\n BIGNUM N ;\n BIGNUM Ni ;\n BN_ULONG n0 [ 2 ] ;\n int flags ;\n }\n ;\n struct bn_recp_ctx_st {\n BIGNUM N ;\n BIGNUM Nr ;\n int num_bits ;\n int shift ;\n int flags ;\n }\n ;\n struct bn_gencb_st {\n unsigned int ver ;\n void * arg ;\n union {\n void ( * cb_1 ) ( int , int , void * ) ;\n int ( * cb_2 ) ( int , int , BN_GENCB * ) ;\n }\n cb ;\n }\n ;\n int BN_GENCB_call ( BN_GENCB * cb , int a , int b ) ;\n # define BN_GENCB_set_old ( gencb , callback , cb_arg ) {\n \\ BN_GENCB * tmp_gencb = ( gencb ) ;\n \\ tmp_gencb -> ver = 1 ;\n \\ tmp_gencb -> arg = ( cb_arg ) ;\n \\ tmp_gencb -> cb . cb_1 = ( callback ) ;\n }\n # define BN_GENCB_set ( gencb , callback , cb_arg ) {\n \\ BN_GENCB * tmp_gencb = ( gencb ) ;\n \\ tmp_gencb -> ver = 2 ;\n \\ tmp_gencb -> arg = ( cb_arg ) ;\n \\ tmp_gencb -> cb . cb_2 = ( callback ) ;\n }\n # define BN_prime_checks 0 # define BN_prime_checks_for_size ( b ) ( ( b ) >= 1300 ? 2 : \\ ( b ) >= 850 ? 3 : \\ ( b ) >= 650 ? 4 : \\ ( b ) >= 550 ? 5 : \\ ( b ) >= 450 ? 6 : \\ ( b ) >= 400 ? 7 : \\ ( b ) >= 350 ? 8 : \\ ( b ) >= 300 ? 9 : \\ ( b ) >= 250 ? 12 : \\ ( b ) >= 200 ? 15 : \\ ( b ) >= 150 ? 18 : \\ 27 ) # define BN_num_bytes ( a ) ( ( BN_num_bits ( a ) + 7 ) / 8 ) # define BN_abs_is_word ( a , w ) ( ( ( ( a ) -> top == 1 ) && ( ( a ) -> d [ 0 ] == ( BN_ULONG ) ( w ) ) ) || \\ ( ( ( w ) == 0 ) && ( ( a ) -> top == 0 ) ) ) # define BN_is_zero ( a ) ( ( a ) -> top == 0 ) # define BN_is_one ( a ) ( BN_abs_is_word ( ( a ) , 1 ) && ! ( a ) -> neg ) # define BN_is_word ( a , w ) ( BN_abs_is_word ( ( a ) , ( w ) ) && ( ! ( w ) || ! ( a ) -> neg ) ) # define BN_is_odd ( a ) ( ( ( a ) -> top > 0 ) && ( ( a ) -> d [ 0 ] & 1 ) ) # define BN_one ( a ) ( BN_set_word ( ( a ) , 1 ) ) # define BN_zero_ex ( a ) \\ do {\n \\ BIGNUM * _tmp_bn = ( a ) ;\n \\ _tmp_bn -> top = 0 ;\n \\ _tmp_bn -> neg = 0 ;\n \\ }\n while ( 0 ) # ifdef OPENSSL_NO_DEPRECATED # define BN_zero ( a ) BN_zero_ex ( a ) # else # define BN_zero ( a ) ( BN_set_word ( ( a ) , 0 ) ) # endif const BIGNUM * BN_value_one ( void ) ;\n char * BN_options ( void ) ;\n BN_CTX * BN_CTX_new ( void ) ;\n # ifndef OPENSSL_NO_DEPRECATED void BN_CTX_init ( BN_CTX * c ) ;\n # endif void BN_CTX_free ( BN_CTX * c ) ;\n void BN_CTX_start ( BN_CTX * ctx ) ;\n BIGNUM * BN_CTX_get ( BN_CTX * ctx ) ;\n void BN_CTX_end ( BN_CTX * ctx ) ;\n int BN_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_pseudo_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_pseudo_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_num_bits ( const BIGNUM * a ) ;\n int BN_num_bits_word ( BN_ULONG l ) ;\n BIGNUM * BN_new ( void ) ;\n void BN_init ( BIGNUM * ) ;\n void BN_clear_free ( BIGNUM * a ) ;\n BIGNUM * BN_copy ( BIGNUM * a , const BIGNUM * b ) ;\n void BN_swap ( BIGNUM * a , BIGNUM * b ) ;\n BIGNUM * BN_bin2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2bin ( const BIGNUM * a , unsigned char * to ) ;\n BIGNUM * BN_mpi2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2mpi ( const BIGNUM * a , unsigned char * to ) ;\n int BN_sub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_usub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_uadd ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n int BN_sqr ( BIGNUM * r , const BIGNUM * a , BN_CTX * ctx ) ;\n void BN_set_negative ( BIGNUM * b , int n ) ;\n # define BN_is_negative ( a ) ( ( a ) -> neg != 0 ) int BN_div ( BIGNUM * dv , BIGNUM * rem , const BIGNUM * m , const BIGNUM * d , BN_CTX * ctx ) ;\n # define BN_mod ( rem , m , d , ctx ) BN_div ( NULL , ( rem ) , ( m ) , ( d ) , ( ctx ) ) int BN_nnmod ( BIGNUM * r , const BIGNUM * m , const BIGNUM * d , BN_CTX * ctx ) ;\n int BN_mod_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_add_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m ) ;\n int BN_mod_sub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_sub_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m ) ;\n int BN_mod_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_sqr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift1 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift1_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m ) ;\n int BN_mod_lshift ( BIGNUM * r , const BIGNUM * a , int n , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift_quick ( BIGNUM * r , const BIGNUM * a , int n , const BIGNUM * m ) ;\n BN_ULONG BN_mod_word ( const BIGNUM * a , BN_ULONG w ) ;\n BN_ULONG BN_div_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_mul_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_add_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_sub_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_set_word ( BIGNUM * a , BN_ULONG w ) ;\n BN_ULONG BN_get_word ( const BIGNUM * a ) ;\n int BN_cmp ( const BIGNUM * a , const BIGNUM * b ) ;\n void BN_free ( BIGNUM * a ) ;\n int BN_is_bit_set ( const BIGNUM * a , int n ) ;\n int BN_lshift ( BIGNUM * r , const BIGNUM * a , int n ) ;\n int BN_lshift1 ( BIGNUM * r , const BIGNUM * a ) ;\n int BN_exp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_mod_exp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_exp_mont ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) ;\n int BN_mod_exp_mont_consttime ( BIGNUM * rr , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * in_mont ) ;\n int BN_mod_exp_mont_word ( BIGNUM * r , BN_ULONG a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) ;\n int BN_mod_exp2_mont ( BIGNUM * r , const BIGNUM * a1 , const BIGNUM * p1 , const BIGNUM * a2 , const BIGNUM * p2 , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) ;\n int BN_mod_exp_simple ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mask_bits ( BIGNUM * a , int n ) ;\n # ifndef OPENSSL_NO_FP_API int BN_print_fp ( FILE * fp , const BIGNUM * a ) ;\n # endif # ifdef HEADER_BIO_H int BN_print ( BIO * fp , const BIGNUM * a ) ;\n # else int BN_print ( void * fp , const BIGNUM * a ) ;\n # endif int BN_reciprocal ( BIGNUM * r , const BIGNUM * m , int len , BN_CTX * ctx ) ;\n int BN_rshift ( BIGNUM * r , const BIGNUM * a , int n ) ;\n int BN_rshift1 ( BIGNUM * r , const BIGNUM * a ) ;\n void BN_clear ( BIGNUM * a ) ;\n BIGNUM * BN_dup ( const BIGNUM * a ) ;\n int BN_ucmp ( const BIGNUM * a , const BIGNUM * b ) ;\n int BN_set_bit ( BIGNUM * a , int n ) ;\n int BN_clear_bit ( BIGNUM * a , int n ) ;\n char * BN_bn2hex ( const BIGNUM * a ) ;\n char * BN_bn2dec ( const BIGNUM * a ) ;\n int BN_hex2bn ( BIGNUM * * a , const char * str ) ;\n int BN_dec2bn ( BIGNUM * * a , const char * str ) ;\n int BN_asc2bn ( BIGNUM * * a , const char * str ) ;\n int BN_gcd ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n int BN_kronecker ( const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n BIGNUM * BN_mod_inverse ( BIGNUM * ret , const BIGNUM * a , const BIGNUM * n , BN_CTX * ctx ) ;\n BIGNUM * BN_mod_sqrt ( BIGNUM * ret , const BIGNUM * a , const BIGNUM * n , BN_CTX * ctx ) ;\n void BN_consttime_swap ( BN_ULONG swap , BIGNUM * a , BIGNUM * b , int nwords ) ;\n # ifndef OPENSSL_NO_DEPRECATED BIGNUM * BN_generate_prime ( BIGNUM * ret , int bits , int safe , const BIGNUM * add , const BIGNUM * rem , void ( * callback ) ( int , int , void * ) , void * cb_arg ) ;\n int BN_is_prime ( const BIGNUM * p , int nchecks , void ( * callback ) ( int , int , void * ) , BN_CTX * ctx , void * cb_arg ) ;\n int BN_is_prime_fasttest ( const BIGNUM * p , int nchecks , void ( * callback ) ( int , int , void * ) , BN_CTX * ctx , void * cb_arg , int do_trial_division ) ;\n # endif int BN_generate_prime_ex ( BIGNUM * ret , int bits , int safe , const BIGNUM * add , const BIGNUM * rem , BN_GENCB * cb ) ;\n int BN_is_prime_ex ( const BIGNUM * p , int nchecks , BN_CTX * ctx , BN_GENCB * cb ) ;\n int BN_is_prime_fasttest_ex ( const BIGNUM * p , int nchecks , BN_CTX * ctx , int do_trial_division , BN_GENCB * cb ) ;\n int BN_X931_generate_Xpq ( BIGNUM * Xp , BIGNUM * Xq , int nbits , BN_CTX * ctx ) ;\n int BN_X931_derive_prime_ex ( BIGNUM * p , BIGNUM * p1 , BIGNUM * p2 , const BIGNUM * Xp , const BIGNUM * Xp1 , const BIGNUM * Xp2 , const BIGNUM * e , BN_CTX * ctx , BN_GENCB * cb ) ;\n int BN_X931_generate_prime_ex ( BIGNUM * p , BIGNUM * p1 , BIGNUM * p2 , BIGNUM * Xp1 , BIGNUM * Xp2 , const BIGNUM * Xp , const BIGNUM * e , BN_CTX * ctx , BN_GENCB * cb ) ;\n BN_MONT_CTX * BN_MONT_CTX_new ( void ) ;\n void BN_MONT_CTX_init ( BN_MONT_CTX * ctx ) ;\n int BN_mod_mul_montgomery ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_MONT_CTX * mont , BN_CTX * ctx ) ;\n # define BN_to_montgomery ( r , a , mont , ctx ) BN_mod_mul_montgomery ( \\ ( r ) , ( a ) , & ( ( mont ) -> RR ) , ( mont ) , ( ctx ) ) int BN_from_montgomery ( BIGNUM * r , const BIGNUM * a , BN_MONT_CTX * mont , BN_CTX * ctx ) ;\n void BN_MONT_CTX_free ( BN_MONT_CTX * mont ) ;\n int BN_MONT_CTX_set ( BN_MONT_CTX * mont , const BIGNUM * mod , BN_CTX * ctx ) ;\n BN_MONT_CTX * BN_MONT_CTX_copy ( BN_MONT_CTX * to , BN_MONT_CTX * from ) ;\n BN_MONT_CTX * BN_MONT_CTX_set_locked ( BN_MONT_CTX * * pmont , int lock , const BIGNUM * mod , BN_CTX * ctx ) ;\n # define BN_BLINDING_NO_UPDATE 0x00000001 # define BN_BLINDING_NO_RECREATE 0x00000002 BN_BLINDING * BN_BLINDING_new ( const BIGNUM * A , const BIGNUM * Ai , BIGNUM * mod ) ;\n void BN_BLINDING_free ( BN_BLINDING * b ) ;\n int BN_BLINDING_update ( BN_BLINDING * b , BN_CTX * ctx ) ;\n int BN_BLINDING_convert ( BIGNUM * n , BN_BLINDING * b , BN_CTX * ctx ) ;\n int BN_BLINDING_invert ( BIGNUM * n , BN_BLINDING * b , BN_CTX * ctx ) ;\n int BN_BLINDING_convert_ex ( BIGNUM * n , BIGNUM * r , BN_BLINDING * b , BN_CTX * ) ;\n int BN_BLINDING_invert_ex ( BIGNUM * n , const BIGNUM * r , BN_BLINDING * b , BN_CTX * ) ;\n # ifndef OPENSSL_NO_DEPRECATED unsigned long BN_BLINDING_get_thread_id ( const BN_BLINDING * ) ;\n void BN_BLINDING_set_thread_id ( BN_BLINDING * , unsigned long ) ;\n # endif CRYPTO_THREADID * BN_BLINDING_thread_id ( BN_BLINDING * ) ;\n unsigned long BN_BLINDING_get_flags ( const BN_BLINDING * ) ;\n void BN_BLINDING_set_flags ( BN_BLINDING * , unsigned long ) ;\n BN_BLINDING * BN_BLINDING_create_param ( BN_BLINDING * b , const BIGNUM * e , BIGNUM * m , BN_CTX * ctx , int ( * bn_mod_exp ) ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) , BN_MONT_CTX * m_ctx ) ;\n # ifndef OPENSSL_NO_DEPRECATED void BN_set_params ( int mul , int high , int low , int mont ) ;\n int BN_get_params ( int which ) ;\n # endif void BN_RECP_CTX_init ( BN_RECP_CTX * recp ) ;\n BN_RECP_CTX * BN_RECP_CTX_new ( void ) ;\n void BN_RECP_CTX_free ( BN_RECP_CTX * recp ) ;\n int BN_RECP_CTX_set ( BN_RECP_CTX * recp , const BIGNUM * rdiv , BN_CTX * ctx ) ;\n int BN_mod_mul_reciprocal ( BIGNUM * r , const BIGNUM * x , const BIGNUM * y , BN_RECP_CTX * recp , BN_CTX * ctx ) ;\n int BN_mod_exp_recp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_div_recp ( BIGNUM * dv , BIGNUM * rem , const BIGNUM * m , BN_RECP_CTX * recp , BN_CTX * ctx ) ;\n # ifndef OPENSSL_NO_EC2M int BN_GF2m_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n # define BN_GF2m_sub ( r , a , b ) BN_GF2m_add ( r , a , b ) int BN_GF2m_mod ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p ) ;\n int BN_GF2m_mod_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_inv ( BIGNUM * r , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_div ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_exp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqrt ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_solve_quad ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n # define BN_GF2m_cmp ( a , b ) BN_ucmp ( ( a ) , ( b ) ) int BN_GF2m_mod_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] ) ;\n int BN_GF2m_mod_mul_arr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqr_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_inv_arr ( BIGNUM * r , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_div_arr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_exp_arr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqrt_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_solve_quad_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_poly2arr ( const BIGNUM * a , int p [ ] , int max ) ;\n int BN_GF2m_arr2poly ( const int p [ ] , BIGNUM * a ) ;\n # endif int BN_nist_mod_192 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_224 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_256 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_384 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_521 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n const BIGNUM * BN_get0_nist_prime_192 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_224 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_256 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_384 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_521 ( void ) ;\n int ( * BN_nist_mod_func ( const BIGNUM * p ) ) ( BIGNUM * r , const BIGNUM * a , const BIGNUM * field , BN_CTX * ctx ) ;\n int BN_generate_dsa_nonce ( BIGNUM * out , const BIGNUM * range , const BIGNUM * priv , const unsigned char * message , size_t message_len , BN_CTX * ctx ) ;\n # define bn_expand ( a , bits ) ( ( ( ( ( ( bits + BN_BITS2 - 1 ) ) / BN_BITS2 ) ) <= ( a ) -> dmax ) ? \\ ( a ) : bn_expand2 ( ( a ) , ( bits + BN_BITS2 - 1 ) / BN_BITS2 ) ) # define bn_wexpand ( a , words ) ( ( ( words ) <= ( a ) -> dmax ) ? ( a ) : bn_expand2 ( ( a ) , ( words ) ) ) BIGNUM * bn_expand2 ( BIGNUM * a , int words ) ;\n # ifndef OPENSSL_NO_DEPRECATED BIGNUM * bn_dup_expand ( const BIGNUM * a , int words ) ;\n # endif # ifdef BN_DEBUG # include < assert . h > # ifdef BN_DEBUG_RAND # ifndef RAND_pseudo_bytes int RAND_pseudo_bytes ( unsigned char * buf , int num ) ;\n # define BN_DEBUG_TRIX # endif # define bn_pollute ( a ) \\ do {\n \\ const BIGNUM * _bnum1 = ( a ) ;\n \\ if ( _bnum1 -> top < _bnum1 -> dmax ) {\n \\ unsigned char _tmp_char ;\n \\ \\ BN_ULONG * _not_const ;\n \\ memcpy ( & _not_const , & _bnum1 -> d , sizeof ( BN_ULONG * ) ) ;\n \\ RAND_pseudo_bytes ( & _tmp_char , 1 ) ;\n \\ memset ( ( unsigned char * ) ( _not_const + _bnum1 -> top ) , _tmp_char , \\ ( _bnum1 -> dmax - _bnum1 -> top ) * sizeof ( BN_ULONG ) ) ;\n \\ }\n \\ }\n while ( 0 ) # ifdef BN_DEBUG_TRIX # undef RAND_pseudo_bytes # endif # else # define bn_pollute ( a ) # endif # define bn_check_top ( a ) \\ do {\n \\ const BIGNUM * _bnum2 = ( a ) ;\n \\ if ( _bnum2 != NULL ) {\n \\ assert ( ( _bnum2 -> top == 0 ) || \\ ( _bnum2 -> d [ _bnum2 -> top - 1 ] != 0 ) ) ;\n \\ bn_pollute ( _bnum2 ) ;\n \\ }\n \\ }\n while ( 0 ) # define bn_fix_top ( a ) bn_check_top ( a ) # define bn_check_size ( bn , bits ) bn_wcheck_size ( bn , ( ( bits + BN_BITS2 - 1 ) ) / BN_BITS2 ) # define bn_wcheck_size ( bn , words ) \\ do {\n \\ const BIGNUM * _bnum2 = ( bn ) ;\n \\ assert ( words <= ( _bnum2 ) -> dmax && words >= ( _bnum2 ) -> top ) ;\n \\ }\n while ( 0 ) # else # define bn_pollute ( a ) # define bn_check_top ( a ) # define bn_fix_top ( a ) bn_correct_top ( a ) # define bn_check_size ( bn , bits ) # define bn_wcheck_size ( bn , words ) # endif # define bn_correct_top ( a ) \\ {\n \\ BN_ULONG * ftl ;\n \\ int tmp_top = ( a ) -> top ;\n \\ if ( tmp_top > 0 ) \\ {\n \\ for ( ftl = & ( ( a ) -> d [ tmp_top - 1 ] ) ;\n tmp_top > 0 ;\n tmp_top -- ) \\ if ( * ( ftl -- ) ) break ;\n \\ ( a ) -> top = tmp_top ;\n \\ }\n \\ bn_pollute ( a ) ;\n \\ }\n BN_ULONG bn_mul_add_words ( BN_ULONG * rp , const BN_ULONG * ap , int num , BN_ULONG w ) ;\n BN_ULONG bn_mul_words ( BN_ULONG * rp , const BN_ULONG * ap , int num , BN_ULONG w ) ;\n void bn_sqr_words ( BN_ULONG * rp , const BN_ULONG * ap , int num ) ;\n BN_ULONG bn_div_words ( BN_ULONG h , BN_ULONG l , BN_ULONG d )"}
{"idx": 11053, "target": 0, "func": "int MDC2_Update ( MDC2_CTX * c , const unsigned char * in , size_t len ) {\n size_t i , j ;\n i = c -> num ;\n if ( i != 0 ) {\n if ( len < MDC2_BLOCK - i ) {\n memcpy ( & ( c -> data [ i ] ) , in , len ) ;\n c -> num += ( int ) len ;\n return 1 ;\n }\n else {\n j = MDC2_BLOCK - i ;\n memcpy ( & ( c -> data [ i ] ) , in , j ) ;\n len -= j ;\n in += j ;\n c -> num = 0 ;\n mdc2_body ( c , & ( c -> data [ 0 ] ) , MDC2_BLOCK ) ;\n }\n }\n i = len & ~ ( ( size_t ) MDC2_BLOCK - 1 ) ;\n if ( i > 0 ) mdc2_body ( c , in , i ) ;\n j = len - i ;\n if ( j > 0 ) {\n memcpy ( & ( c -> data [ 0 ] ) , & ( in [ i ] ) , j ) ;\n c -> num = ( int ) j ;\n }\n return 1 ;\n }"}
{"idx": 11054, "target": 0, "func": "static int dissect_h245_T_differentPort ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_differentPort , T_differentPort_sequence ) ;\n return offset ;\n }"}
{"idx": 11055, "target": 0, "func": "static int dissect_h225_InfoRequest ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_InfoRequest , InfoRequest_sequence ) ;\n return offset ;\n }"}
{"idx": 11056, "target": 0, "func": "static int h261_decode_gob ( H261Context * h ) {\n MpegEncContext * const s = & h -> s ;\n ff_set_qscale ( s , s -> qscale ) ;\n while ( h -> current_mba <= MBA_STUFFING ) {\n int ret ;\n ret = h261_decode_mb ( h ) ;\n if ( ret < 0 ) {\n if ( ret == SLICE_END ) {\n h261_decode_mb_skipped ( h , h -> current_mba , 33 ) ;\n return 0 ;\n }\n av_log ( s -> avctx , AV_LOG_ERROR , \"Error at MB: %d\\n\" , s -> mb_x + s -> mb_y * s -> mb_stride ) ;\n return - 1 ;\n }\n h261_decode_mb_skipped ( h , h -> current_mba - h -> mba_diff , h -> current_mba - 1 ) ;\n }\n return - 1 ;\n }"}
{"idx": 11057, "target": 0, "func": "static void dissect_coap_opt_ctype ( tvbuff_t * tvb , proto_item * head_item , proto_tree * subtree , gint offset , gint opt_length , int hf , coap_info * coinfo ) {\n if ( opt_length == 0 ) {\n coinfo -> ctype_value = 0 ;\n }\n else {\n coinfo -> ctype_value = coap_get_opt_uint ( tvb , offset , opt_length ) ;\n }\n coinfo -> ctype_str = val_to_str ( coinfo -> ctype_value , vals_ctype , \"Unknown Type %u\" ) ;\n proto_tree_add_string ( subtree , hf , tvb , offset , opt_length , coinfo -> ctype_str ) ;\n proto_item_append_text ( head_item , \": %s\" , coinfo -> ctype_str ) ;\n }"}
{"idx": 11058, "target": 0, "func": "inline void mime_hdr_reset_accelerators_and_presence_bits ( MIMEHdrImpl * mh ) {\n mime_hdr_init_accelerators_and_presence_bits ( mh ) ;\n for ( MIMEFieldBlockImpl * fblock = & ( mh -> m_first_fblock ) ;\n fblock != nullptr ;\n fblock = fblock -> m_next ) {\n for ( MIMEField * field = fblock -> m_field_slots , * limit = field + fblock -> m_freetop ;\n field < limit ;\n ++ field ) {\n if ( field -> is_live ( ) ) {\n field -> m_wks_idx = hdrtoken_tokenize ( field -> m_ptr_name , field -> m_len_name ) ;\n if ( field -> is_dup_head ( ) ) {\n mime_hdr_set_accelerators_and_presence_bits ( mh , field ) ;\n }\n }\n }\n }\n }"}
{"idx": 11059, "target": 0, "func": "int ff_mpeg4_set_direct_mv ( MpegEncContext * s , int mx , int my ) {\n const int mb_index = s -> mb_x + s -> mb_y * s -> mb_stride ;\n const int colocated_mb_type = s -> next_picture . mb_type [ mb_index ] ;\n uint16_t time_pp ;\n uint16_t time_pb ;\n int i ;\n if ( IS_8X8 ( colocated_mb_type ) ) {\n s -> mv_type = MV_TYPE_8X8 ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n ff_mpeg4_set_one_direct_mv ( s , mx , my , i ) ;\n }\n return MB_TYPE_DIRECT2 | MB_TYPE_8x8 | MB_TYPE_L0L1 ;\n }\n else if ( IS_INTERLACED ( colocated_mb_type ) ) {\n s -> mv_type = MV_TYPE_FIELD ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n int field_select = s -> next_picture . ref_index [ 0 ] [ 4 * mb_index + 2 * i ] ;\n s -> field_select [ 0 ] [ i ] = field_select ;\n s -> field_select [ 1 ] [ i ] = i ;\n if ( s -> top_field_first ) {\n time_pp = s -> pp_field_time - field_select + i ;\n time_pb = s -> pb_field_time - field_select + i ;\n }\n else {\n time_pp = s -> pp_field_time + field_select - i ;\n time_pb = s -> pb_field_time + field_select - i ;\n }\n s -> mv [ 0 ] [ i ] [ 0 ] = s -> p_field_mv_table [ i ] [ 0 ] [ mb_index ] [ 0 ] * time_pb / time_pp + mx ;\n s -> mv [ 0 ] [ i ] [ 1 ] = s -> p_field_mv_table [ i ] [ 0 ] [ mb_index ] [ 1 ] * time_pb / time_pp + my ;\n s -> mv [ 1 ] [ i ] [ 0 ] = mx ? s -> mv [ 0 ] [ i ] [ 0 ] - s -> p_field_mv_table [ i ] [ 0 ] [ mb_index ] [ 0 ] : s -> p_field_mv_table [ i ] [ 0 ] [ mb_index ] [ 0 ] * ( time_pb - time_pp ) / time_pp ;\n s -> mv [ 1 ] [ i ] [ 1 ] = my ? s -> mv [ 0 ] [ i ] [ 1 ] - s -> p_field_mv_table [ i ] [ 0 ] [ mb_index ] [ 1 ] : s -> p_field_mv_table [ i ] [ 0 ] [ mb_index ] [ 1 ] * ( time_pb - time_pp ) / time_pp ;\n }\n return MB_TYPE_DIRECT2 | MB_TYPE_16x8 | MB_TYPE_L0L1 | MB_TYPE_INTERLACED ;\n }\n else {\n ff_mpeg4_set_one_direct_mv ( s , mx , my , 0 ) ;\n s -> mv [ 0 ] [ 1 ] [ 0 ] = s -> mv [ 0 ] [ 2 ] [ 0 ] = s -> mv [ 0 ] [ 3 ] [ 0 ] = s -> mv [ 0 ] [ 0 ] [ 0 ] ;\n s -> mv [ 0 ] [ 1 ] [ 1 ] = s -> mv [ 0 ] [ 2 ] [ 1 ] = s -> mv [ 0 ] [ 3 ] [ 1 ] = s -> mv [ 0 ] [ 0 ] [ 1 ] ;\n s -> mv [ 1 ] [ 1 ] [ 0 ] = s -> mv [ 1 ] [ 2 ] [ 0 ] = s -> mv [ 1 ] [ 3 ] [ 0 ] = s -> mv [ 1 ] [ 0 ] [ 0 ] ;\n s -> mv [ 1 ] [ 1 ] [ 1 ] = s -> mv [ 1 ] [ 2 ] [ 1 ] = s -> mv [ 1 ] [ 3 ] [ 1 ] = s -> mv [ 1 ] [ 0 ] [ 1 ] ;\n if ( ( s -> avctx -> workaround_bugs & FF_BUG_DIRECT_BLOCKSIZE ) || ! s -> quarter_sample ) s -> mv_type = MV_TYPE_16X16 ;\n else s -> mv_type = MV_TYPE_8X8 ;\n return MB_TYPE_DIRECT2 | MB_TYPE_16x16 | MB_TYPE_L0L1 ;\n }\n }"}
{"idx": 11060, "target": 0, "func": "static int mimic_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n int swap_buf_size = buf_size - MIMIC_HEADER_SIZE ;\n MimicContext * ctx = avctx -> priv_data ;\n GetByteContext gb ;\n int is_pframe ;\n int width , height ;\n int quality , num_coeffs ;\n int res ;\n if ( buf_size <= MIMIC_HEADER_SIZE ) {\n av_log ( avctx , AV_LOG_ERROR , \"insufficient data\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n bytestream2_init ( & gb , buf , MIMIC_HEADER_SIZE ) ;\n bytestream2_skip ( & gb , 2 ) ;\n quality = bytestream2_get_le16u ( & gb ) ;\n width = bytestream2_get_le16u ( & gb ) ;\n height = bytestream2_get_le16u ( & gb ) ;\n bytestream2_skip ( & gb , 4 ) ;\n is_pframe = bytestream2_get_le32u ( & gb ) ;\n num_coeffs = bytestream2_get_byteu ( & gb ) ;\n bytestream2_skip ( & gb , 3 ) ;\n if ( ! ctx -> avctx ) {\n int i ;\n if ( ! ( width == 160 && height == 120 ) && ! ( width == 320 && height == 240 ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid width/height!\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n ctx -> avctx = avctx ;\n avctx -> width = width ;\n avctx -> height = height ;\n avctx -> pix_fmt = AV_PIX_FMT_YUV420P ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n ctx -> num_vblocks [ i ] = - ( ( - height ) >> ( 3 + ! ! i ) ) ;\n ctx -> num_hblocks [ i ] = width >> ( 3 + ! ! i ) ;\n }\n }\n else if ( width != ctx -> avctx -> width || height != ctx -> avctx -> height ) {\n av_log_missing_feature ( avctx , \"resolution changing\" , 1 ) ;\n return AVERROR_PATCHWELCOME ;\n }\n if ( is_pframe && ! ctx -> frames [ ctx -> prev_index ] . f -> data [ 0 ] ) {\n av_log ( avctx , AV_LOG_ERROR , \"decoding must start with keyframe\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n ff_thread_release_buffer ( avctx , & ctx -> frames [ ctx -> cur_index ] ) ;\n ctx -> frames [ ctx -> cur_index ] . f -> pict_type = is_pframe ? AV_PICTURE_TYPE_P : AV_PICTURE_TYPE_I ;\n if ( ( res = ff_thread_get_buffer ( avctx , & ctx -> frames [ ctx -> cur_index ] , AV_GET_BUFFER_FLAG_REF ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return res ;\n }\n ctx -> next_prev_index = ctx -> cur_index ;\n ctx -> next_cur_index = ( ctx -> cur_index - 1 ) & 15 ;\n prepare_avpic ( ctx , & ctx -> flipped_ptrs [ ctx -> cur_index ] , ctx -> frames [ ctx -> cur_index ] . f ) ;\n ff_thread_finish_setup ( avctx ) ;\n av_fast_padded_malloc ( & ctx -> swap_buf , & ctx -> swap_buf_size , swap_buf_size ) ;\n if ( ! ctx -> swap_buf ) return AVERROR ( ENOMEM ) ;\n ctx -> dsp . bswap_buf ( ctx -> swap_buf , ( const uint32_t * ) ( buf + MIMIC_HEADER_SIZE ) , swap_buf_size >> 2 ) ;\n init_get_bits ( & ctx -> gb , ctx -> swap_buf , swap_buf_size << 3 ) ;\n res = decode ( ctx , quality , num_coeffs , ! is_pframe ) ;\n ff_thread_report_progress ( & ctx -> frames [ ctx -> cur_index ] , INT_MAX , 0 ) ;\n if ( res < 0 ) {\n if ( ! ( avctx -> active_thread_type & FF_THREAD_FRAME ) ) {\n ff_thread_release_buffer ( avctx , & ctx -> frames [ ctx -> cur_index ] ) ;\n return res ;\n }\n }\n if ( ( res = av_frame_ref ( data , ctx -> frames [ ctx -> cur_index ] . f ) ) < 0 ) return res ;\n * got_frame = 1 ;\n ctx -> prev_index = ctx -> next_prev_index ;\n ctx -> cur_index = ctx -> next_cur_index ;\n ff_thread_release_buffer ( avctx , & ctx -> frames [ ctx -> cur_index ] ) ;\n return buf_size ;\n }"}
{"idx": 11061, "target": 0, "func": "static void file_info_start ( NautilusDirectory * directory , NautilusFile * file , gboolean * doing_io ) {\n GFile * location ;\n GetInfoState * state ;\n file_info_stop ( directory ) ;\n if ( directory -> details -> get_info_in_progress != NULL ) {\n * doing_io = TRUE ;\n return ;\n }\n if ( ! is_needy ( file , lacks_info , REQUEST_FILE_INFO ) ) {\n return ;\n }\n * doing_io = TRUE ;\n if ( ! async_job_start ( directory , \"file info\" ) ) {\n return ;\n }\n directory -> details -> get_info_file = file ;\n file -> details -> get_info_failed = FALSE ;\n if ( file -> details -> get_info_error ) {\n g_error_free ( file -> details -> get_info_error ) ;\n file -> details -> get_info_error = NULL ;\n }\n state = g_new ( GetInfoState , 1 ) ;\n state -> directory = directory ;\n state -> cancellable = g_cancellable_new ( ) ;\n directory -> details -> get_info_in_progress = state ;\n location = nautilus_file_get_location ( file ) ;\n g_file_query_info_async ( location , NAUTILUS_FILE_DEFAULT_ATTRIBUTES , 0 , G_PRIORITY_DEFAULT , state -> cancellable , query_info_callback , state ) ;\n g_object_unref ( location ) ;\n }"}
{"idx": 11062, "target": 0, "func": "static CLEAR_MARKS_PROC ( aos_clear_marks ) {\n aos_state_t * const pptr = vptr ;\n r_clear_attrs ( & pptr -> blocks , l_mark ) ;\n }"}
{"idx": 11063, "target": 0, "func": "void nautilus_file_operations_unmount_mount_full ( GtkWindow * parent_window , GMount * mount , GMountOperation * mount_operation , gboolean eject , gboolean check_trash , NautilusUnmountCallback callback , gpointer callback_data ) {\n UnmountData * data ;\n int response ;\n data = g_new0 ( UnmountData , 1 ) ;\n data -> callback = callback ;\n data -> callback_data = callback_data ;\n if ( parent_window ) {\n data -> parent_window = parent_window ;\n g_object_add_weak_pointer ( G_OBJECT ( data -> parent_window ) , ( gpointer * ) & data -> parent_window ) ;\n }\n if ( mount_operation ) {\n data -> mount_operation = g_object_ref ( mount_operation ) ;\n }\n data -> eject = eject ;\n data -> mount = g_object_ref ( mount ) ;\n if ( check_trash && has_trash_files ( mount ) ) {\n response = prompt_empty_trash ( parent_window ) ;\n if ( response == GTK_RESPONSE_ACCEPT ) {\n GTask * task ;\n EmptyTrashJob * job ;\n job = op_job_new ( EmptyTrashJob , parent_window ) ;\n job -> should_confirm = FALSE ;\n job -> trash_dirs = get_trash_dirs_for_mount ( mount ) ;\n job -> done_callback = empty_trash_for_unmount_done ;\n job -> done_callback_data = data ;\n task = g_task_new ( NULL , NULL , empty_trash_task_done , job ) ;\n g_task_set_task_data ( task , job , NULL ) ;\n g_task_run_in_thread ( task , empty_trash_thread_func ) ;\n g_object_unref ( task ) ;\n return ;\n }\n else if ( response == GTK_RESPONSE_CANCEL ) {\n if ( callback ) {\n callback ( callback_data ) ;\n }\n unmount_data_free ( data ) ;\n return ;\n }\n }\n do_unmount ( data ) ;\n }"}
{"idx": 11064, "target": 0, "func": "PGresult * ExecuteSqlQuery ( Archive * AHX , const char * query , ExecStatusType status ) {\n ArchiveHandle * AH = ( ArchiveHandle * ) AHX ;\n PGresult * res ;\n res = PQexec ( AH -> connection , query ) ;\n if ( PQresultStatus ( res ) != status ) die_on_query_failure ( AH , modulename , query ) ;\n return res ;\n }"}
{"idx": 11065, "target": 0, "func": "static void Type_DateTime_Free ( struct _cms_typehandler_struct * self , void * Ptr ) {\n _cmsFree ( self -> ContextID , Ptr ) ;\n }"}
{"idx": 11066, "target": 0, "func": "static int virtio_pci_load_config ( void * opaque , QEMUFile * f ) {\n VirtIOPCIProxy * proxy = opaque ;\n int ret ;\n ret = pci_device_load ( & proxy -> pci_dev , f ) ;\n if ( ret ) {\n return ret ;\n }\n msix_load ( & proxy -> pci_dev , f ) ;\n if ( msix_present ( & proxy -> pci_dev ) ) {\n qemu_get_be16s ( f , & proxy -> vdev -> config_vector ) ;\n }\n else {\n proxy -> vdev -> config_vector = VIRTIO_NO_VECTOR ;\n }\n if ( proxy -> vdev -> config_vector != VIRTIO_NO_VECTOR ) {\n return msix_vector_use ( & proxy -> pci_dev , proxy -> vdev -> config_vector ) ;\n }\n return 0 ;\n }"}
{"idx": 11067, "target": 0, "func": "static void proto_tree_set_representation ( proto_item * pi , const char * format , va_list ap ) {\n int ret ;\n field_info * fi = PITEM_FINFO ( pi ) ;\n DISSECTOR_ASSERT ( fi ) ;\n if ( ! PROTO_ITEM_IS_HIDDEN ( pi ) ) {\n ITEM_LABEL_NEW ( PNODE_POOL ( pi ) , fi -> rep ) ;\n ret = g_vsnprintf ( fi -> rep -> representation , ITEM_LABEL_LENGTH , format , ap ) ;\n if ( ret >= ITEM_LABEL_LENGTH ) {\n LABEL_MARK_TRUNCATED_START ( fi -> rep -> representation ) ;\n }\n }\n }"}
{"idx": 11068, "target": 0, "func": "static void gx_ttfExport__DebugPaint ( ttfExport * self ) {\n }"}
{"idx": 11069, "target": 0, "func": "const vpx_codec_cx_pkt_t * vpx_codec_get_cx_data ( vpx_codec_ctx_t * ctx , vpx_codec_iter_t * iter ) {\n const vpx_codec_cx_pkt_t * pkt = NULL ;\n if ( ctx ) {\n if ( ! iter ) ctx -> err = VPX_CODEC_INVALID_PARAM ;\n else if ( ! ctx -> iface || ! ctx -> priv ) ctx -> err = VPX_CODEC_ERROR ;\n else if ( ! ( ctx -> iface -> caps & VPX_CODEC_CAP_ENCODER ) ) ctx -> err = VPX_CODEC_INCAPABLE ;\n else pkt = ctx -> iface -> enc . get_cx_data ( get_alg_priv ( ctx ) , iter ) ;\n }\n if ( pkt && pkt -> kind == VPX_CODEC_CX_FRAME_PKT ) {\n vpx_codec_priv_t * const priv = ctx -> priv ;\n char * const dst_buf = ( char * ) priv -> enc . cx_data_dst_buf . buf ;\n if ( dst_buf && pkt -> data . raw . buf != dst_buf && pkt -> data . raw . sz + priv -> enc . cx_data_pad_before + priv -> enc . cx_data_pad_after <= priv -> enc . cx_data_dst_buf . sz ) {\n vpx_codec_cx_pkt_t * modified_pkt = & priv -> enc . cx_data_pkt ;\n memcpy ( dst_buf + priv -> enc . cx_data_pad_before , pkt -> data . raw . buf , pkt -> data . raw . sz ) ;\n * modified_pkt = * pkt ;\n modified_pkt -> data . raw . buf = dst_buf ;\n modified_pkt -> data . raw . sz += priv -> enc . cx_data_pad_before + priv -> enc . cx_data_pad_after ;\n pkt = modified_pkt ;\n }\n if ( dst_buf == pkt -> data . raw . buf ) {\n priv -> enc . cx_data_dst_buf . buf = dst_buf + pkt -> data . raw . sz ;\n priv -> enc . cx_data_dst_buf . sz -= pkt -> data . raw . sz ;\n }\n }\n return pkt ;\n }"}
{"idx": 11070, "target": 0, "func": "static guint32 dissect_netb_session_confirm ( tvbuff_t * tvb , packet_info * pinfo _U_ , int offset , proto_tree * tree ) {\n netbios_add_ses_confirm_flags ( tvb , tree , offset + NB_FLAGS ) ;\n nb_data2 ( hf_netb_max_data_recv_size , tvb , offset , tree ) ;\n nb_xmit_corrl ( tvb , offset , tree ) ;\n nb_resp_corrl ( tvb , offset , tree ) ;\n nb_remote_session ( tvb , offset , tree ) ;\n nb_local_session ( tvb , offset , tree ) ;\n return 0 ;\n }"}
{"idx": 11071, "target": 0, "func": "static int selinux_msg_queue_associate ( struct msg_queue * msq , int msqflg ) {\n struct ipc_security_struct * isec ;\n struct common_audit_data ad ;\n u32 sid = current_sid ( ) ;\n isec = msq -> q_perm . security ;\n ad . type = LSM_AUDIT_DATA_IPC ;\n ad . u . ipc_id = msq -> q_perm . key ;\n return avc_has_perm ( sid , isec -> sid , SECCLASS_MSGQ , MSGQ__ASSOCIATE , & ad ) ;\n }"}
{"idx": 11072, "target": 0, "func": "static inline void ResetLZWInfo ( LZWInfo * lzw_info ) {\n size_t one ;\n lzw_info -> bits = lzw_info -> data_size + 1 ;\n one = 1 ;\n lzw_info -> maximum_code = one << lzw_info -> bits ;\n lzw_info -> slot = lzw_info -> maximum_data_value + 3 ;\n lzw_info -> genesis = MagickTrue ;\n }"}
{"idx": 11073, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , PaintInDynamicChildFrame ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : FIRST_LAYOUT ) ;\n waiter -> AddPageExpectation ( TimingField : : LOAD_EVENT ) ;\n waiter -> AddSubFrameExpectation ( TimingField : : FIRST_PAINT ) ;\n waiter -> AddSubFrameExpectation ( TimingField : : FIRST_CONTENTFUL_PAINT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/page_load_metrics/dynamic_iframe.html\" ) ) ;\n waiter -> Wait ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramFirstLayout , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramLoad , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramFirstPaint , 1 ) ;\n }"}
{"idx": 11074, "target": 1, "func": "void vp9_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint8_t * dst , ptrdiff_t stride , const uint8_t * above , const uint8_t * left ) {\n type ## _predictor ( dst , stride , size , above , left ) ;\n }\n # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) static INLINE void d207_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n intra_pred_allsizes ( d207 ) static INLINE void d63_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d63 ) static INLINE void d45_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r + c + 2 < bs * 2 ? ROUND_POWER_OF_TWO ( above [ r + c ] + above [ r + c + 1 ] * 2 + above [ r + c + 2 ] , 2 ) : above [ bs * 2 - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d45 ) static INLINE void d117_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] , 1 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 3 ;\n r < bs ;\n ++ r ) dst [ ( r - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ r - 3 ] + left [ r - 2 ] * 2 + left [ r - 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - 2 * stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d117 ) static INLINE void d135_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d135 ) static INLINE void d153_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] , 1 ) ;\n for ( r = 1 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 1 ] + left [ r ] , 1 ) ;\n dst ++ ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] * 2 + above [ c + 1 ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = dst [ - stride + c - 2 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d153 ) static INLINE void v_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memcpy ( dst , above , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( v )"}
{"idx": 11075, "target": 0, "func": "static void filter_selectively_horiz ( uint8_t * s , int pitch , unsigned int mask_16x16 , unsigned int mask_8x8 , unsigned int mask_4x4 , unsigned int mask_4x4_int , const loop_filter_info_n * lfi_n , const uint8_t * lfl ) {\n unsigned int mask ;\n int count ;\n for ( mask = mask_16x16 | mask_8x8 | mask_4x4 | mask_4x4_int ;\n mask ;\n mask >>= count ) {\n const loop_filter_thresh * lfi = lfi_n -> lfthr + * lfl ;\n count = 1 ;\n if ( mask & 1 ) {\n if ( mask_16x16 & 1 ) {\n if ( ( mask_16x16 & 3 ) == 3 ) {\n vp9_lpf_horizontal_16 ( s , pitch , lfi -> mblim , lfi -> lim , lfi -> hev_thr , 2 ) ;\n count = 2 ;\n }\n else {\n vp9_lpf_horizontal_16 ( s , pitch , lfi -> mblim , lfi -> lim , lfi -> hev_thr , 1 ) ;\n }\n }\n else if ( mask_8x8 & 1 ) {\n if ( ( mask_8x8 & 3 ) == 3 ) {\n const loop_filter_thresh * lfin = lfi_n -> lfthr + * ( lfl + 1 ) ;\n vp9_lpf_horizontal_8_dual ( s , pitch , lfi -> mblim , lfi -> lim , lfi -> hev_thr , lfin -> mblim , lfin -> lim , lfin -> hev_thr ) ;\n if ( ( mask_4x4_int & 3 ) == 3 ) {\n vp9_lpf_horizontal_4_dual ( s + 4 * pitch , pitch , lfi -> mblim , lfi -> lim , lfi -> hev_thr , lfin -> mblim , lfin -> lim , lfin -> hev_thr ) ;\n }\n else {\n if ( mask_4x4_int & 1 ) vp9_lpf_horizontal_4 ( s + 4 * pitch , pitch , lfi -> mblim , lfi -> lim , lfi -> hev_thr , 1 ) ;\n else if ( mask_4x4_int & 2 ) vp9_lpf_horizontal_4 ( s + 8 + 4 * pitch , pitch , lfin -> mblim , lfin -> lim , lfin -> hev_thr , 1 ) ;\n }\n count = 2 ;\n }\n else {\n vp9_lpf_horizontal_8 ( s , pitch , lfi -> mblim , lfi -> lim , lfi -> hev_thr , 1 ) ;\n if ( mask_4x4_int & 1 ) vp9_lpf_horizontal_4 ( s + 4 * pitch , pitch , lfi -> mblim , lfi -> lim , lfi -> hev_thr , 1 ) ;\n }\n }\n else if ( mask_4x4 & 1 ) {\n if ( ( mask_4x4 & 3 ) == 3 ) {\n const loop_filter_thresh * lfin = lfi_n -> lfthr + * ( lfl + 1 ) ;\n vp9_lpf_horizontal_4_dual ( s , pitch , lfi -> mblim , lfi -> lim , lfi -> hev_thr , lfin -> mblim , lfin -> lim , lfin -> hev_thr ) ;\n if ( ( mask_4x4_int & 3 ) == 3 ) {\n vp9_lpf_horizontal_4_dual ( s + 4 * pitch , pitch , lfi -> mblim , lfi -> lim , lfi -> hev_thr , lfin -> mblim , lfin -> lim , lfin -> hev_thr ) ;\n }\n else {\n if ( mask_4x4_int & 1 ) vp9_lpf_horizontal_4 ( s + 4 * pitch , pitch , lfi -> mblim , lfi -> lim , lfi -> hev_thr , 1 ) ;\n else if ( mask_4x4_int & 2 ) vp9_lpf_horizontal_4 ( s + 8 + 4 * pitch , pitch , lfin -> mblim , lfin -> lim , lfin -> hev_thr , 1 ) ;\n }\n count = 2 ;\n }\n else {\n vp9_lpf_horizontal_4 ( s , pitch , lfi -> mblim , lfi -> lim , lfi -> hev_thr , 1 ) ;\n if ( mask_4x4_int & 1 ) vp9_lpf_horizontal_4 ( s + 4 * pitch , pitch , lfi -> mblim , lfi -> lim , lfi -> hev_thr , 1 ) ;\n }\n }\n else if ( mask_4x4_int & 1 ) {\n vp9_lpf_horizontal_4 ( s + 4 * pitch , pitch , lfi -> mblim , lfi -> lim , lfi -> hev_thr , 1 ) ;\n }\n }\n s += 8 * count ;\n lfl += count ;\n mask_16x16 >>= count ;\n mask_8x8 >>= count ;\n mask_4x4 >>= count ;\n mask_4x4_int >>= count ;\n }\n }"}
{"idx": 11076, "target": 0, "func": "int qemuMonitorTextGetBlockStatsInfo ( qemuMonitorPtr mon , const char * dev_name , long long * rd_req , long long * rd_bytes , long long * rd_total_times , long long * wr_req , long long * wr_bytes , long long * wr_total_times , long long * flush_req , long long * flush_total_times , long long * errs ) {\n char * info = NULL ;\n int ret = - 1 ;\n char * dummy ;\n const char * p , * eol ;\n int devnamelen = strlen ( dev_name ) ;\n if ( qemuMonitorHMPCommand ( mon , \"info blockstats\" , & info ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , _ ( \"'info blockstats' command failed\" ) ) ;\n goto cleanup ;\n }\n if ( strstr ( info , \"\\ninfo \" ) ) {\n qemuReportError ( VIR_ERR_OPERATION_INVALID , \"%s\" , _ ( \"'info blockstats' not supported by this qemu\" ) ) ;\n goto cleanup ;\n }\n * rd_req = * rd_bytes = - 1 ;\n * wr_req = * wr_bytes = * errs = - 1 ;\n if ( rd_total_times ) * rd_total_times = - 1 ;\n if ( wr_total_times ) * wr_total_times = - 1 ;\n if ( flush_req ) * flush_req = - 1 ;\n if ( flush_total_times ) * flush_total_times = - 1 ;\n p = info ;\n while ( * p ) {\n if ( STRPREFIX ( p , QEMU_DRIVE_HOST_PREFIX ) ) p += strlen ( QEMU_DRIVE_HOST_PREFIX ) ;\n if ( STREQLEN ( p , dev_name , devnamelen ) && p [ devnamelen ] == ':' && p [ devnamelen + 1 ] == ' ' ) {\n eol = strchr ( p , '\\n' ) ;\n if ( ! eol ) eol = p + strlen ( p ) ;\n p += devnamelen + 2 ;\n while ( * p ) {\n if ( STRPREFIX ( p , \"rd_bytes=\" ) ) {\n p += strlen ( \"rd_bytes=\" ) ;\n if ( virStrToLong_ll ( p , & dummy , 10 , rd_bytes ) == - 1 ) VIR_DEBUG ( \"error reading rd_bytes: %s\" , p ) ;\n }\n else if ( STRPREFIX ( p , \"wr_bytes=\" ) ) {\n p += strlen ( \"wr_bytes=\" ) ;\n if ( virStrToLong_ll ( p , & dummy , 10 , wr_bytes ) == - 1 ) VIR_DEBUG ( \"error reading wr_bytes: %s\" , p ) ;\n }\n else if ( STRPREFIX ( p , \"rd_operations=\" ) ) {\n p += strlen ( \"rd_operations=\" ) ;\n if ( virStrToLong_ll ( p , & dummy , 10 , rd_req ) == - 1 ) VIR_DEBUG ( \"error reading rd_req: %s\" , p ) ;\n }\n else if ( STRPREFIX ( p , \"wr_operations=\" ) ) {\n p += strlen ( \"wr_operations=\" ) ;\n if ( virStrToLong_ll ( p , & dummy , 10 , wr_req ) == - 1 ) VIR_DEBUG ( \"error reading wr_req: %s\" , p ) ;\n }\n else if ( rd_total_times && STRPREFIX ( p , \"rd_total_times_ns=\" ) ) {\n p += strlen ( \"rd_total_times_ns=\" ) ;\n if ( virStrToLong_ll ( p , & dummy , 10 , rd_total_times ) == - 1 ) VIR_DEBUG ( \"error reading rd_total_times: %s\" , p ) ;\n }\n else if ( wr_total_times && STRPREFIX ( p , \"wr_total_times_ns=\" ) ) {\n p += strlen ( \"wr_total_times_ns=\" ) ;\n if ( virStrToLong_ll ( p , & dummy , 10 , wr_total_times ) == - 1 ) VIR_DEBUG ( \"error reading wr_total_times: %s\" , p ) ;\n }\n else if ( flush_req && STRPREFIX ( p , \"flush_operations=\" ) ) {\n p += strlen ( \"flush_operations=\" ) ;\n if ( virStrToLong_ll ( p , & dummy , 10 , flush_req ) == - 1 ) VIR_DEBUG ( \"error reading flush_req: %s\" , p ) ;\n }\n else if ( flush_total_times && STRPREFIX ( p , \"flush_total_times_ns=\" ) ) {\n p += strlen ( \"flush_total_times_ns=\" ) ;\n if ( virStrToLong_ll ( p , & dummy , 10 , flush_total_times ) == - 1 ) VIR_DEBUG ( \"error reading flush_total_times: %s\" , p ) ;\n }\n else {\n VIR_DEBUG ( \"unknown block stat near %s\" , p ) ;\n }\n p = strchr ( p , ' ' ) ;\n if ( ! p || p >= eol ) break ;\n p ++ ;\n }\n ret = 0 ;\n goto cleanup ;\n }\n p = strchr ( p , '\\n' ) ;\n if ( ! p ) break ;\n p ++ ;\n }\n qemuReportError ( VIR_ERR_INVALID_ARG , _ ( \"no stats found for device %s\" ) , dev_name ) ;\n cleanup : VIR_FREE ( info ) ;\n return ret ;\n }"}
{"idx": 11077, "target": 0, "func": "static int ref_frame ( Vp3DecodeContext * s , ThreadFrame * dst , ThreadFrame * src ) {\n ff_thread_release_buffer ( s -> avctx , dst ) ;\n if ( src -> f -> data [ 0 ] ) return ff_thread_ref_frame ( dst , src ) ;\n return 0 ;\n }"}
{"idx": 11078, "target": 0, "func": "proto_item * proto_tree_add_text_valist_internal ( proto_tree * tree , tvbuff_t * tvb , gint start , gint length , const char * format , va_list ap ) {\n proto_item * pi ;\n header_field_info * hfinfo ;\n if ( length == - 1 ) {\n length = 0 ;\n }\n tvb_ensure_bytes_exist ( tvb , start , length ) ;\n CHECK_FOR_NULL_TREE ( tree ) ;\n TRY_TO_FAKE_THIS_ITEM ( tree , hf_text_only , hfinfo ) ;\n pi = proto_tree_add_text_node ( tree , tvb , start , length ) ;\n TRY_TO_FAKE_THIS_REPR ( pi ) ;\n proto_tree_set_representation ( pi , format , ap ) ;\n return pi ;\n }"}
{"idx": 11079, "target": 0, "func": "static inline void idct_put ( MDECContext * a , AVFrame * frame , int mb_x , int mb_y ) {\n int16_t ( * block ) [ 64 ] = a -> block ;\n int linesize = frame -> linesize [ 0 ] ;\n uint8_t * dest_y = frame -> data [ 0 ] + ( mb_y * 16 * linesize ) + mb_x * 16 ;\n uint8_t * dest_cb = frame -> data [ 1 ] + ( mb_y * 8 * frame -> linesize [ 1 ] ) + mb_x * 8 ;\n uint8_t * dest_cr = frame -> data [ 2 ] + ( mb_y * 8 * frame -> linesize [ 2 ] ) + mb_x * 8 ;\n a -> dsp . idct_put ( dest_y , linesize , block [ 0 ] ) ;\n a -> dsp . idct_put ( dest_y + 8 , linesize , block [ 1 ] ) ;\n a -> dsp . idct_put ( dest_y + 8 * linesize , linesize , block [ 2 ] ) ;\n a -> dsp . idct_put ( dest_y + 8 * linesize + 8 , linesize , block [ 3 ] ) ;\n if ( ! ( a -> avctx -> flags & CODEC_FLAG_GRAY ) ) {\n a -> dsp . idct_put ( dest_cb , frame -> linesize [ 1 ] , block [ 4 ] ) ;\n a -> dsp . idct_put ( dest_cr , frame -> linesize [ 2 ] , block [ 5 ] ) ;\n }\n }"}
{"idx": 11080, "target": 0, "func": "static void xhci_mfwrap_timer ( void * opaque ) {\n XHCIState * xhci = opaque ;\n XHCIEvent wrap = {\n ER_MFINDEX_WRAP , CC_SUCCESS }\n ;\n xhci_event ( xhci , & wrap , 0 ) ;\n xhci_mfwrap_update ( xhci ) ;\n }"}
{"idx": 11081, "target": 0, "func": "static int row_dim_exists ( zval * object , zval * member , int check_empty TSRMLS_DC ) {\n return row_prop_exists ( object , member , check_empty , NULL TSRMLS_CC ) ;\n }"}
{"idx": 11082, "target": 0, "func": "static guint16 de_sub_addr ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * * extracted_address ) {\n guint32 curr_offset , ia5_string_len , i ;\n guint8 type_of_sub_addr , afi , dig1 , dig2 , oct ;\n gchar * ia5_string ;\n gboolean invalid_ia5_char ;\n proto_item * item ;\n curr_offset = offset ;\n * extracted_address = NULL ;\n proto_tree_add_item ( tree , hf_gsm_a_extension , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_type_of_sub_addr , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_odd_even_ind , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( curr_offset << 3 ) + 5 , 3 , ENC_BIG_ENDIAN ) ;\n type_of_sub_addr = ( tvb_get_guint8 ( tvb , curr_offset ) & 0x70 ) >> 4 ;\n curr_offset ++ ;\n NO_MORE_DATA_CHECK ( len ) ;\n if ( ! type_of_sub_addr ) {\n afi = tvb_get_guint8 ( tvb , curr_offset ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_afi , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n NO_MORE_DATA_CHECK ( len ) ;\n if ( afi == 0x50 ) {\n ia5_string_len = len - ( curr_offset - offset ) ;\n ia5_string = ( guint8 * ) tvb_memdup ( wmem_packet_scope ( ) , tvb , curr_offset , ia5_string_len ) ;\n * extracted_address = ( gchar * ) wmem_alloc ( wmem_packet_scope ( ) , ia5_string_len + 1 ) ;\n invalid_ia5_char = FALSE ;\n for ( i = 0 ;\n i < ia5_string_len ;\n i ++ ) {\n dig1 = ( ia5_string [ i ] & 0xf0 ) >> 4 ;\n dig2 = ia5_string [ i ] & 0x0f ;\n oct = ( dig1 * 10 ) + dig2 + 32 ;\n if ( oct > 127 ) invalid_ia5_char = TRUE ;\n ia5_string [ i ] = oct ;\n }\n IA5_7BIT_decode ( * extracted_address , ia5_string , ia5_string_len ) ;\n item = proto_tree_add_string ( tree , hf_gsm_a_dtap_subaddress , tvb , curr_offset , len - ( curr_offset - offset ) , * extracted_address ) ;\n if ( invalid_ia5_char ) expert_add_info ( pinfo , item , & ei_gsm_a_dtap_invalid_ia5_character ) ;\n return ( len ) ;\n }\n }\n proto_tree_add_item ( tree , hf_gsm_a_dtap_subaddress_information , tvb , curr_offset , len - ( curr_offset - offset ) , ENC_NA ) ;\n return ( len ) ;\n }"}
{"idx": 11083, "target": 0, "func": "static void gain_scale ( G723_1_Context * p , int16_t * buf , int energy ) {\n int num , denom , gain , bits1 , bits2 ;\n int i ;\n num = energy ;\n denom = 0 ;\n for ( i = 0 ;\n i < SUBFRAME_LEN ;\n i ++ ) {\n int temp = buf [ i ] >> 2 ;\n temp *= temp ;\n denom = av_sat_dadd32 ( denom , temp ) ;\n }\n if ( num && denom ) {\n bits1 = normalize_bits ( num , 31 ) ;\n bits2 = normalize_bits ( denom , 31 ) ;\n num = num << bits1 >> 1 ;\n denom <<= bits2 ;\n bits2 = 5 + bits1 - bits2 ;\n bits2 = FFMAX ( 0 , bits2 ) ;\n gain = ( num >> 1 ) / ( denom >> 16 ) ;\n gain = square_root ( gain << 16 >> bits2 ) ;\n }\n else {\n gain = 1 << 12 ;\n }\n for ( i = 0 ;\n i < SUBFRAME_LEN ;\n i ++ ) {\n p -> pf_gain = ( 15 * p -> pf_gain + gain + ( 1 << 3 ) ) >> 4 ;\n buf [ i ] = av_clip_int16 ( ( buf [ i ] * ( p -> pf_gain + ( p -> pf_gain >> 4 ) ) + ( 1 << 10 ) ) >> 11 ) ;\n }\n }"}
{"idx": 11084, "target": 0, "func": "msc_engine * modsecurity_create ( apr_pool_t * mp , int processing_mode ) {\n msc_engine * msce = NULL ;\n msce = apr_pcalloc ( mp , sizeof ( msc_engine ) ) ;\n if ( msce == NULL ) return NULL ;\n msce -> mp = mp ;\n msce -> processing_mode = processing_mode ;\n msce -> msre = msre_engine_create ( msce -> mp ) ;\n if ( msce -> msre == NULL ) return NULL ;\n msre_engine_register_default_variables ( msce -> msre ) ;\n msre_engine_register_default_operators ( msce -> msre ) ;\n msre_engine_register_default_tfns ( msce -> msre ) ;\n msre_engine_register_default_actions ( msce -> msre ) ;\n return msce ;\n }"}
{"idx": 11085, "target": 0, "func": "static void spl_filesystem_dir_it_current_data ( zend_object_iterator * iter , zval * * * data TSRMLS_DC ) {\n spl_filesystem_iterator * iterator = ( spl_filesystem_iterator * ) iter ;\n * data = & iterator -> current ;\n }"}
{"idx": 11086, "target": 0, "func": "const char * _gcry_pk_aliased_algo_name ( int algorithm ) {\n const char * name = NULL ;\n gcry_module_t module ;\n REGISTER_DEFAULT_PUBKEYS ;\n ath_mutex_lock ( & pubkeys_registered_lock ) ;\n module = _gcry_module_lookup_id ( pubkeys_registered , algorithm ) ;\n if ( module ) {\n gcry_pk_spec_t * pubkey = ( gcry_pk_spec_t * ) module -> spec ;\n name = pubkey -> aliases ? * pubkey -> aliases : NULL ;\n if ( ! name || ! * name ) name = pubkey -> name ;\n _gcry_module_release ( module ) ;\n }\n ath_mutex_unlock ( & pubkeys_registered_lock ) ;\n return name ;\n }"}
{"idx": 11087, "target": 0, "func": "int recreate_table ( MI_CHECK * param , MI_INFO * * org_info , char * filename ) {\n int error ;\n MI_INFO info ;\n MYISAM_SHARE share ;\n MI_KEYDEF * keyinfo , * key , * key_end ;\n HA_KEYSEG * keysegs , * keyseg ;\n MI_COLUMNDEF * recdef , * rec , * end ;\n MI_UNIQUEDEF * uniquedef , * u_ptr , * u_end ;\n MI_STATUS_INFO status_info ;\n uint unpack , key_parts ;\n ha_rows max_records ;\n ulonglong file_length , tmp_length ;\n MI_CREATE_INFO create_info ;\n DBUG_ENTER ( \"recreate_table\" ) ;\n error = 1 ;\n info = * * org_info ;\n status_info = ( * org_info ) -> state [ 0 ] ;\n info . state = & status_info ;\n share = * ( * org_info ) -> s ;\n unpack = ( share . options & HA_OPTION_COMPRESS_RECORD ) && ( param -> testflag & T_UNPACK ) ;\n if ( ! ( keyinfo = ( MI_KEYDEF * ) my_alloca ( sizeof ( MI_KEYDEF ) * share . base . keys ) ) ) DBUG_RETURN ( 0 ) ;\n memcpy ( ( uchar * ) keyinfo , ( uchar * ) share . keyinfo , ( size_t ) ( sizeof ( MI_KEYDEF ) * share . base . keys ) ) ;\n key_parts = share . base . all_key_parts ;\n if ( ! ( keysegs = ( HA_KEYSEG * ) my_alloca ( sizeof ( HA_KEYSEG ) * ( key_parts + share . base . keys ) ) ) ) {\n my_afree ( ( uchar * ) keyinfo ) ;\n DBUG_RETURN ( 1 ) ;\n }\n if ( ! ( recdef = ( MI_COLUMNDEF * ) my_alloca ( sizeof ( MI_COLUMNDEF ) * ( share . base . fields + 1 ) ) ) ) {\n my_afree ( ( uchar * ) keyinfo ) ;\n my_afree ( ( uchar * ) keysegs ) ;\n DBUG_RETURN ( 1 ) ;\n }\n if ( ! ( uniquedef = ( MI_UNIQUEDEF * ) my_alloca ( sizeof ( MI_UNIQUEDEF ) * ( share . state . header . uniques + 1 ) ) ) ) {\n my_afree ( ( uchar * ) recdef ) ;\n my_afree ( ( uchar * ) keyinfo ) ;\n my_afree ( ( uchar * ) keysegs ) ;\n DBUG_RETURN ( 1 ) ;\n }\n memcpy ( ( uchar * ) recdef , ( uchar * ) share . rec , ( size_t ) ( sizeof ( MI_COLUMNDEF ) * ( share . base . fields + 1 ) ) ) ;\n for ( rec = recdef , end = recdef + share . base . fields ;\n rec != end ;\n rec ++ ) {\n if ( unpack && ! ( share . options & HA_OPTION_PACK_RECORD ) && rec -> type != FIELD_BLOB && rec -> type != FIELD_VARCHAR && rec -> type != FIELD_CHECK ) rec -> type = ( int ) FIELD_NORMAL ;\n }\n memcpy ( ( uchar * ) keysegs , ( uchar * ) share . keyparts , ( size_t ) ( sizeof ( HA_KEYSEG ) * ( key_parts + share . base . keys + share . state . header . uniques ) ) ) ;\n keyseg = keysegs ;\n for ( key = keyinfo , key_end = keyinfo + share . base . keys ;\n key != key_end ;\n key ++ ) {\n key -> seg = keyseg ;\n for ( ;\n keyseg -> type ;\n keyseg ++ ) {\n if ( param -> language ) keyseg -> language = param -> language ;\n }\n keyseg ++ ;\n }\n memcpy ( ( uchar * ) uniquedef , ( uchar * ) share . uniqueinfo , ( size_t ) ( sizeof ( MI_UNIQUEDEF ) * ( share . state . header . uniques ) ) ) ;\n for ( u_ptr = uniquedef , u_end = uniquedef + share . state . header . uniques ;\n u_ptr != u_end ;\n u_ptr ++ ) {\n u_ptr -> seg = keyseg ;\n keyseg += u_ptr -> keysegs + 1 ;\n }\n unpack = ( share . options & HA_OPTION_COMPRESS_RECORD ) && ( param -> testflag & T_UNPACK ) ;\n share . options &= ~ HA_OPTION_TEMP_COMPRESS_RECORD ;\n file_length = ( ulonglong ) mysql_file_seek ( info . dfile , 0L , MY_SEEK_END , MYF ( 0 ) ) ;\n tmp_length = file_length + file_length / 10 ;\n set_if_bigger ( file_length , param -> max_data_file_length ) ;\n set_if_bigger ( file_length , tmp_length ) ;\n set_if_bigger ( file_length , ( ulonglong ) share . base . max_data_file_length ) ;\n if ( share . options & HA_OPTION_COMPRESS_RECORD ) share . base . records = max_records = info . state -> records ;\n else if ( ! ( share . options & HA_OPTION_PACK_RECORD ) ) max_records = ( ha_rows ) ( file_length / share . base . pack_reclength ) ;\n else max_records = 0 ;\n ( void ) mi_close ( * org_info ) ;\n bzero ( ( char * ) & create_info , sizeof ( create_info ) ) ;\n create_info . max_rows = max_records ;\n create_info . reloc_rows = share . base . reloc ;\n create_info . old_options = ( share . options | ( unpack ? HA_OPTION_TEMP_COMPRESS_RECORD : 0 ) ) ;\n create_info . data_file_length = file_length ;\n create_info . auto_increment = share . state . auto_increment ;\n create_info . language = ( param -> language ? param -> language : share . state . header . language ) ;\n create_info . key_file_length = status_info . key_file_length ;\n create_info . with_auto_increment = TRUE ;\n if ( mi_create ( filename , share . base . keys - share . state . header . uniques , keyinfo , share . base . fields , recdef , share . state . header . uniques , uniquedef , & create_info , HA_DONT_TOUCH_DATA ) ) {\n mi_check_print_error ( param , \"Got error %d when trying to recreate indexfile\" , my_errno ) ;\n goto end ;\n }\n * org_info = mi_open ( filename , O_RDWR , ( param -> testflag & T_WAIT_FOREVER ) ? HA_OPEN_WAIT_IF_LOCKED : ( param -> testflag & T_DESCRIPT ) ? HA_OPEN_IGNORE_IF_LOCKED : HA_OPEN_ABORT_IF_LOCKED ) ;\n if ( ! * org_info ) {\n mi_check_print_error ( param , \"Got error %d when trying to open re-created indexfile\" , my_errno ) ;\n goto end ;\n }\n ( * org_info ) -> s -> options &= ~ HA_OPTION_READ_ONLY_DATA ;\n ( void ) _mi_readinfo ( * org_info , F_WRLCK , 0 ) ;\n ( * org_info ) -> state -> records = info . state -> records ;\n if ( share . state . create_time ) ( * org_info ) -> s -> state . create_time = share . state . create_time ;\n ( * org_info ) -> s -> state . unique = ( * org_info ) -> this_unique = share . state . unique ;\n ( * org_info ) -> state -> checksum = info . state -> checksum ;\n ( * org_info ) -> state -> del = info . state -> del ;\n ( * org_info ) -> s -> state . dellink = share . state . dellink ;\n ( * org_info ) -> state -> empty = info . state -> empty ;\n ( * org_info ) -> state -> data_file_length = info . state -> data_file_length ;\n if ( update_state_info ( param , * org_info , UPDATE_TIME | UPDATE_STAT | UPDATE_OPEN_COUNT ) ) goto end ;\n error = 0 ;\n end : my_afree ( ( uchar * ) uniquedef ) ;\n my_afree ( ( uchar * ) keyinfo ) ;\n my_afree ( ( uchar * ) recdef ) ;\n my_afree ( ( uchar * ) keysegs ) ;\n DBUG_RETURN ( error ) ;\n }"}
{"idx": 11088, "target": 0, "func": "int archive_mstring_copy_mbs_len_l ( struct archive_mstring * aes , const char * mbs , size_t len , struct archive_string_conv * sc ) {\n int r ;\n if ( mbs == NULL ) {\n aes -> aes_set = 0 ;\n return ( 0 ) ;\n }\n archive_string_empty ( & ( aes -> aes_mbs ) ) ;\n archive_wstring_empty ( & ( aes -> aes_wcs ) ) ;\n archive_string_empty ( & ( aes -> aes_utf8 ) ) ;\n # if defined ( _WIN32 ) && ! defined ( __CYGWIN__ ) if ( sc == NULL ) {\n if ( archive_string_append ( & ( aes -> aes_mbs ) , mbs , mbsnbytes ( mbs , len ) ) == NULL ) {\n aes -> aes_set = 0 ;\n r = - 1 ;\n }\n else {\n aes -> aes_set = AES_SET_MBS ;\n r = 0 ;\n }\n # if defined ( HAVE_ICONV ) }\n else if ( sc != NULL && sc -> cd_w != ( iconv_t ) - 1 ) {\n iconv_t cd = sc -> cd ;\n unsigned from_cp ;\n int flag ;\n sc -> cd = sc -> cd_w ;\n r = archive_strncpy_l ( & ( aes -> aes_utf8 ) , mbs , len , sc ) ;\n sc -> cd = cd ;\n if ( r != 0 ) {\n aes -> aes_set = 0 ;\n return ( r ) ;\n }\n aes -> aes_set = AES_SET_UTF8 ;\n flag = sc -> flag ;\n sc -> flag &= ~ ( SCONV_NORMALIZATION_C | SCONV_TO_UTF16 | SCONV_FROM_UTF16 ) ;\n from_cp = sc -> from_cp ;\n sc -> from_cp = CP_UTF8 ;\n r = archive_wstring_append_from_mbs_in_codepage ( & ( aes -> aes_wcs ) , aes -> aes_utf8 . s , aes -> aes_utf8 . length , sc ) ;\n sc -> flag = flag ;\n sc -> from_cp = from_cp ;\n if ( r == 0 ) aes -> aes_set |= AES_SET_WCS ;\n # endif }\n else {\n r = archive_wstring_append_from_mbs_in_codepage ( & ( aes -> aes_wcs ) , mbs , len , sc ) ;\n if ( r == 0 ) aes -> aes_set = AES_SET_WCS ;\n else aes -> aes_set = 0 ;\n }\n # else r = archive_strncpy_l ( & ( aes -> aes_mbs ) , mbs , len , sc ) ;\n if ( r == 0 ) aes -> aes_set = AES_SET_MBS ;\n else aes -> aes_set = 0 ;\n # endif return ( r ) ;\n }"}
{"idx": 11089, "target": 0, "func": "TSReturnCode TSMimeHdrFieldValueInt64Set ( TSMBuffer bufp , TSMLoc hdr , TSMLoc field , int idx , int64_t value ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( hdr ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( hdr ) == TS_SUCCESS ) ) ;\n sdk_assert ( sdk_sanity_check_field_handle ( field , hdr ) == TS_SUCCESS ) ;\n if ( ! isWriteable ( bufp ) ) {\n return TS_ERROR ;\n }\n char tmp [ 20 ] ;\n int len = mime_format_int64 ( tmp , value , sizeof ( tmp ) ) ;\n TSMimeFieldValueSet ( bufp , field , idx , tmp , len ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 11090, "target": 0, "func": "static int dissect_h245_SEQUENCE_SIZE_1_256_OF_EscrowData ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h245_SEQUENCE_SIZE_1_256_OF_EscrowData , SEQUENCE_SIZE_1_256_OF_EscrowData_sequence_of , 1 , 256 , FALSE ) ;\n return offset ;\n }"}
{"idx": 11091, "target": 0, "func": "static int execstack2_continue ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n return do_execstack ( i_ctx_p , op -> value . boolval , true , op - 1 ) ;\n }"}
{"idx": 11092, "target": 0, "func": "void validate_positive_rational ( const char * msg , struct vpx_rational * rat ) {\n if ( rat -> den < 0 ) {\n rat -> num *= - 1 ;\n rat -> den *= - 1 ;\n }\n if ( rat -> num < 0 ) die ( \"Error: %s must be positive\\n\" , msg ) ;\n if ( ! rat -> den ) die ( \"Error: %s has zero denominator\\n\" , msg ) ;\n }"}
{"idx": 11093, "target": 1, "func": "void vp9_choose_segmap_coding_method ( VP9_COMMON * cm , MACROBLOCKD * xd ) {\n struct segmentation * seg = & cm -> seg ;\n int no_pred_cost ;\n int t_pred_cost = INT_MAX ;\n int i , tile_col , mi_row , mi_col ;\n int temporal_predictor_count [ PREDICTION_PROBS ] [ 2 ] = {\n {\n 0 }\n }\n ;\n int no_pred_segcounts [ MAX_SEGMENTS ] = {\n 0 }\n ;\n int t_unpred_seg_counts [ MAX_SEGMENTS ] = {\n 0 }\n ;\n vp9_prob no_pred_tree [ SEG_TREE_PROBS ] ;\n vp9_prob t_pred_tree [ SEG_TREE_PROBS ] ;\n vp9_prob t_nopred_prob [ PREDICTION_PROBS ] ;\n vpx_memset ( seg -> tree_probs , 255 , sizeof ( seg -> tree_probs ) ) ;\n vpx_memset ( seg -> pred_probs , 255 , sizeof ( seg -> pred_probs ) ) ;\n for ( tile_col = 0 ;\n tile_col < 1 << cm -> log2_tile_cols ;\n tile_col ++ ) {\n TileInfo tile ;\n MODE_INFO * * mi_ptr ;\n vp9_tile_init ( & tile , cm , 0 , tile_col ) ;\n mi_ptr = cm -> mi_grid_visible + tile . mi_col_start ;\n for ( mi_row = 0 ;\n mi_row < cm -> mi_rows ;\n mi_row += 8 , mi_ptr += 8 * cm -> mi_stride ) {\n MODE_INFO * * mi = mi_ptr ;\n for ( mi_col = tile . mi_col_start ;\n mi_col < tile . mi_col_end ;\n mi_col += 8 , mi += 8 ) count_segs_sb ( cm , xd , & tile , mi , no_pred_segcounts , temporal_predictor_count , t_unpred_seg_counts , mi_row , mi_col , BLOCK_64X64 ) ;\n }\n }\n calc_segtree_probs ( no_pred_segcounts , no_pred_tree ) ;\n no_pred_cost = cost_segmap ( no_pred_segcounts , no_pred_tree ) ;\n if ( ! frame_is_intra_only ( cm ) ) {\n calc_segtree_probs ( t_unpred_seg_counts , t_pred_tree ) ;\n t_pred_cost = cost_segmap ( t_unpred_seg_counts , t_pred_tree ) ;\n for ( i = 0 ;\n i < PREDICTION_PROBS ;\n i ++ ) {\n const int count0 = temporal_predictor_count [ i ] [ 0 ] ;\n const int count1 = temporal_predictor_count [ i ] [ 1 ] ;\n t_nopred_prob [ i ] = get_binary_prob ( count0 , count1 ) ;\n t_pred_cost += count0 * vp9_cost_zero ( t_nopred_prob [ i ] ) + count1 * vp9_cost_one ( t_nopred_prob [ i ] ) ;\n }\n }\n if ( t_pred_cost < no_pred_cost ) {\n seg -> temporal_update = 1 ;\n vpx_memcpy ( seg -> tree_probs , t_pred_tree , sizeof ( t_pred_tree ) ) ;\n vpx_memcpy ( seg -> pred_probs , t_nopred_prob , sizeof ( t_nopred_prob ) ) ;\n }\n else {\n seg -> temporal_update = 0 ;\n vpx_memcpy ( seg -> tree_probs , no_pred_tree , sizeof ( no_pred_tree ) ) ;\n }\n }"}
{"idx": 11094, "target": 0, "func": "TEST_F ( WebFrameTest , GetCanonicalUrlForSharingNone ) {\n FrameTestHelpers : : WebViewHelper web_view_helper ;\n web_view_helper . InitializeAndLoad ( \"about:blank\" ) ;\n WebLocalFrameImpl * frame = web_view_helper . LocalMainFrame ( ) ;\n EXPECT_TRUE ( frame -> GetDocument ( ) . CanonicalUrlForSharing ( ) . IsNull ( ) ) ;\n }"}
{"idx": 11095, "target": 0, "func": "static void qio_channel_websock_encode ( QIOChannelWebsock * ioc ) {\n if ( ! ioc -> rawoutput . offset ) {\n return ;\n }\n qio_channel_websock_encode_buffer ( ioc , & ioc -> encoutput , QIO_CHANNEL_WEBSOCK_OPCODE_BINARY_FRAME , & ioc -> rawoutput ) ;\n buffer_reset ( & ioc -> rawoutput ) ;\n }"}
{"idx": 11096, "target": 0, "func": "TEST_F ( BrowsingDataRemoverImplTest , RemoveDownloadsByTimeOnly ) {\n RemoveDownloadsTester tester ( GetBrowserContext ( ) ) ;\n base : : Callback < bool ( const GURL & ) > filter = BrowsingDataFilterBuilder : : BuildNoopFilter ( ) ;\n EXPECT_CALL ( * tester . download_manager ( ) , RemoveDownloadsByURLAndTime ( ProbablySameFilter ( filter ) , _ , _ ) ) ;\n BlockUntilBrowsingDataRemoved ( base : : Time ( ) , base : : Time : : Max ( ) , BrowsingDataRemover : : REMOVE_DOWNLOADS , false ) ;\n }"}
{"idx": 11097, "target": 0, "func": "static int vc1_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size , n_slices = 0 , i , ret ;\n VC1Context * v = avctx -> priv_data ;\n MpegEncContext * s = & v -> s ;\n AVFrame * pict = data ;\n uint8_t * buf2 = NULL ;\n const uint8_t * buf_start = buf ;\n int mb_height , n_slices1 ;\n struct {\n uint8_t * buf ;\n GetBitContext gb ;\n int mby_start ;\n }\n * slices = NULL , * tmp ;\n if ( buf_size == 0 || ( buf_size == 4 && AV_RB32 ( buf ) == VC1_CODE_ENDOFSEQ ) ) {\n if ( s -> low_delay == 0 && s -> next_picture_ptr ) {\n if ( ( ret = av_frame_ref ( pict , & s -> next_picture_ptr -> f ) ) < 0 ) return ret ;\n s -> next_picture_ptr = NULL ;\n * got_frame = 1 ;\n }\n return 0 ;\n }\n if ( s -> avctx -> codec -> capabilities & CODEC_CAP_HWACCEL_VDPAU ) {\n if ( v -> profile < PROFILE_ADVANCED ) avctx -> pix_fmt = AV_PIX_FMT_VDPAU_WMV3 ;\n else avctx -> pix_fmt = AV_PIX_FMT_VDPAU_VC1 ;\n }\n if ( avctx -> codec_id == AV_CODEC_ID_VC1 || avctx -> codec_id == AV_CODEC_ID_VC1IMAGE ) {\n int buf_size2 = 0 ;\n buf2 = av_mallocz ( buf_size + FF_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( IS_MARKER ( AV_RB32 ( buf ) ) ) {\n const uint8_t * start , * end , * next ;\n int size ;\n next = buf ;\n for ( start = buf , end = buf + buf_size ;\n next < end ;\n start = next ) {\n next = find_next_marker ( start + 4 , end ) ;\n size = next - start - 4 ;\n if ( size <= 0 ) continue ;\n switch ( AV_RB32 ( start ) ) {\n case VC1_CODE_FRAME : if ( avctx -> hwaccel || s -> avctx -> codec -> capabilities & CODEC_CAP_HWACCEL_VDPAU ) buf_start = start ;\n buf_size2 = vc1_unescape_buffer ( start + 4 , size , buf2 ) ;\n break ;\n case VC1_CODE_FIELD : {\n int buf_size3 ;\n tmp = av_realloc ( slices , sizeof ( * slices ) * ( n_slices + 1 ) ) ;\n if ( ! tmp ) goto err ;\n slices = tmp ;\n slices [ n_slices ] . buf = av_mallocz ( buf_size + FF_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( ! slices [ n_slices ] . buf ) goto err ;\n buf_size3 = vc1_unescape_buffer ( start + 4 , size , slices [ n_slices ] . buf ) ;\n init_get_bits ( & slices [ n_slices ] . gb , slices [ n_slices ] . buf , buf_size3 << 3 ) ;\n slices [ n_slices ] . mby_start = s -> mb_height >> 1 ;\n n_slices1 = n_slices - 1 ;\n n_slices ++ ;\n break ;\n }\n case VC1_CODE_ENTRYPOINT : buf_size2 = vc1_unescape_buffer ( start + 4 , size , buf2 ) ;\n init_get_bits ( & s -> gb , buf2 , buf_size2 * 8 ) ;\n ff_vc1_decode_entry_point ( avctx , v , & s -> gb ) ;\n break ;\n case VC1_CODE_SLICE : {\n int buf_size3 ;\n tmp = av_realloc ( slices , sizeof ( * slices ) * ( n_slices + 1 ) ) ;\n if ( ! tmp ) goto err ;\n slices = tmp ;\n slices [ n_slices ] . buf = av_mallocz ( buf_size + FF_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( ! slices [ n_slices ] . buf ) goto err ;\n buf_size3 = vc1_unescape_buffer ( start + 4 , size , slices [ n_slices ] . buf ) ;\n init_get_bits ( & slices [ n_slices ] . gb , slices [ n_slices ] . buf , buf_size3 << 3 ) ;\n slices [ n_slices ] . mby_start = get_bits ( & slices [ n_slices ] . gb , 9 ) ;\n n_slices ++ ;\n break ;\n }\n }\n }\n }\n else if ( v -> interlace && ( ( buf [ 0 ] & 0xC0 ) == 0xC0 ) ) {\n const uint8_t * divider ;\n int buf_size3 ;\n divider = find_next_marker ( buf , buf + buf_size ) ;\n if ( ( divider == ( buf + buf_size ) ) || AV_RB32 ( divider ) != VC1_CODE_FIELD ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error in WVC1 interlaced frame\\n\" ) ;\n goto err ;\n }\n else {\n tmp = av_realloc ( slices , sizeof ( * slices ) * ( n_slices + 1 ) ) ;\n if ( ! tmp ) goto err ;\n slices = tmp ;\n slices [ n_slices ] . buf = av_mallocz ( buf_size + FF_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( ! slices [ n_slices ] . buf ) goto err ;\n buf_size3 = vc1_unescape_buffer ( divider + 4 , buf + buf_size - divider - 4 , slices [ n_slices ] . buf ) ;\n init_get_bits ( & slices [ n_slices ] . gb , slices [ n_slices ] . buf , buf_size3 << 3 ) ;\n slices [ n_slices ] . mby_start = s -> mb_height >> 1 ;\n n_slices1 = n_slices - 1 ;\n n_slices ++ ;\n }\n buf_size2 = vc1_unescape_buffer ( buf , divider - buf , buf2 ) ;\n }\n else {\n buf_size2 = vc1_unescape_buffer ( buf , buf_size , buf2 ) ;\n }\n init_get_bits ( & s -> gb , buf2 , buf_size2 * 8 ) ;\n }\n else init_get_bits ( & s -> gb , buf , buf_size * 8 ) ;\n if ( v -> res_sprite ) {\n v -> new_sprite = ! get_bits1 ( & s -> gb ) ;\n v -> two_sprites = get_bits1 ( & s -> gb ) ;\n if ( avctx -> codec_id == AV_CODEC_ID_WMV3IMAGE || avctx -> codec_id == AV_CODEC_ID_VC1IMAGE ) {\n if ( v -> new_sprite ) {\n avctx -> width = avctx -> coded_width = v -> sprite_width ;\n avctx -> height = avctx -> coded_height = v -> sprite_height ;\n }\n else {\n goto image ;\n }\n }\n }\n if ( s -> context_initialized && ( s -> width != avctx -> coded_width || s -> height != avctx -> coded_height ) ) {\n ff_vc1_decode_end ( avctx ) ;\n }\n if ( ! s -> context_initialized ) {\n if ( ff_msmpeg4_decode_init ( avctx ) < 0 || ff_vc1_decode_init_alloc_tables ( v ) < 0 ) goto err ;\n s -> low_delay = ! avctx -> has_b_frames || v -> res_sprite ;\n if ( v -> profile == PROFILE_ADVANCED ) {\n s -> h_edge_pos = avctx -> coded_width ;\n s -> v_edge_pos = avctx -> coded_height ;\n }\n }\n if ( s -> current_picture_ptr == NULL || s -> current_picture_ptr -> f . data [ 0 ] ) {\n int i = ff_find_unused_picture ( s , 0 ) ;\n if ( i < 0 ) goto err ;\n s -> current_picture_ptr = & s -> picture [ i ] ;\n }\n v -> pic_header_flag = 0 ;\n if ( v -> profile < PROFILE_ADVANCED ) {\n if ( ff_vc1_parse_frame_header ( v , & s -> gb ) == - 1 ) {\n goto err ;\n }\n }\n else {\n if ( ff_vc1_parse_frame_header_adv ( v , & s -> gb ) == - 1 ) {\n goto err ;\n }\n }\n if ( ( avctx -> codec_id == AV_CODEC_ID_WMV3IMAGE || avctx -> codec_id == AV_CODEC_ID_VC1IMAGE ) && s -> pict_type != AV_PICTURE_TYPE_I ) {\n av_log ( v -> s . avctx , AV_LOG_ERROR , \"Sprite decoder: expected I-frame\\n\" ) ;\n goto err ;\n }\n s -> current_picture_ptr -> f . repeat_pict = 0 ;\n if ( v -> rff ) {\n s -> current_picture_ptr -> f . repeat_pict = 1 ;\n }\n else if ( v -> rptfrm ) {\n s -> current_picture_ptr -> f . repeat_pict = v -> rptfrm * 2 ;\n }\n s -> current_picture . f . pict_type = s -> pict_type ;\n s -> current_picture . f . key_frame = s -> pict_type == AV_PICTURE_TYPE_I ;\n if ( s -> last_picture_ptr == NULL && ( s -> pict_type == AV_PICTURE_TYPE_B || s -> droppable ) ) {\n goto err ;\n }\n if ( ( avctx -> skip_frame >= AVDISCARD_NONREF && s -> pict_type == AV_PICTURE_TYPE_B ) || ( avctx -> skip_frame >= AVDISCARD_NONKEY && s -> pict_type != AV_PICTURE_TYPE_I ) || avctx -> skip_frame >= AVDISCARD_ALL ) {\n goto end ;\n }\n if ( s -> next_p_frame_damaged ) {\n if ( s -> pict_type == AV_PICTURE_TYPE_B ) goto end ;\n else s -> next_p_frame_damaged = 0 ;\n }\n if ( ff_MPV_frame_start ( s , avctx ) < 0 ) {\n goto err ;\n }\n s -> me . qpel_put = s -> dsp . put_qpel_pixels_tab ;\n s -> me . qpel_avg = s -> dsp . avg_qpel_pixels_tab ;\n if ( ( CONFIG_VC1_VDPAU_DECODER ) && s -> avctx -> codec -> capabilities & CODEC_CAP_HWACCEL_VDPAU ) ff_vdpau_vc1_decode_picture ( s , buf_start , ( buf + buf_size ) - buf_start ) ;\n else if ( avctx -> hwaccel ) {\n if ( avctx -> hwaccel -> start_frame ( avctx , buf , buf_size ) < 0 ) goto err ;\n if ( avctx -> hwaccel -> decode_slice ( avctx , buf_start , ( buf + buf_size ) - buf_start ) < 0 ) goto err ;\n if ( avctx -> hwaccel -> end_frame ( avctx ) < 0 ) goto err ;\n }\n else {\n ff_mpeg_er_frame_start ( s ) ;\n v -> bits = buf_size * 8 ;\n v -> end_mb_x = s -> mb_width ;\n if ( v -> field_mode ) {\n uint8_t * tmp [ 2 ] ;\n s -> current_picture . f . linesize [ 0 ] <<= 1 ;\n s -> current_picture . f . linesize [ 1 ] <<= 1 ;\n s -> current_picture . f . linesize [ 2 ] <<= 1 ;\n s -> linesize <<= 1 ;\n s -> uvlinesize <<= 1 ;\n tmp [ 0 ] = v -> mv_f_last [ 0 ] ;\n tmp [ 1 ] = v -> mv_f_last [ 1 ] ;\n v -> mv_f_last [ 0 ] = v -> mv_f_next [ 0 ] ;\n v -> mv_f_last [ 1 ] = v -> mv_f_next [ 1 ] ;\n v -> mv_f_next [ 0 ] = v -> mv_f [ 0 ] ;\n v -> mv_f_next [ 1 ] = v -> mv_f [ 1 ] ;\n v -> mv_f [ 0 ] = tmp [ 0 ] ;\n v -> mv_f [ 1 ] = tmp [ 1 ] ;\n }\n mb_height = s -> mb_height >> v -> field_mode ;\n for ( i = 0 ;\n i <= n_slices ;\n i ++ ) {\n if ( i > 0 && slices [ i - 1 ] . mby_start >= mb_height ) {\n if ( v -> field_mode <= 0 ) {\n av_log ( v -> s . avctx , AV_LOG_ERROR , \"Slice %d starts beyond \" \"picture boundary (%d >= %d)\\n\" , i , slices [ i - 1 ] . mby_start , mb_height ) ;\n continue ;\n }\n v -> second_field = 1 ;\n v -> blocks_off = s -> mb_width * s -> mb_height << 1 ;\n v -> mb_off = s -> mb_stride * s -> mb_height >> 1 ;\n }\n else {\n v -> second_field = 0 ;\n v -> blocks_off = 0 ;\n v -> mb_off = 0 ;\n }\n if ( i ) {\n v -> pic_header_flag = 0 ;\n if ( v -> field_mode && i == n_slices1 + 2 ) {\n if ( ff_vc1_parse_frame_header_adv ( v , & s -> gb ) < 0 ) {\n av_log ( v -> s . avctx , AV_LOG_ERROR , \"Field header damaged\\n\" ) ;\n continue ;\n }\n }\n else if ( get_bits1 ( & s -> gb ) ) {\n v -> pic_header_flag = 1 ;\n if ( ff_vc1_parse_frame_header_adv ( v , & s -> gb ) < 0 ) {\n av_log ( v -> s . avctx , AV_LOG_ERROR , \"Slice header damaged\\n\" ) ;\n continue ;\n }\n }\n }\n s -> start_mb_y = ( i == 0 ) ? 0 : FFMAX ( 0 , slices [ i - 1 ] . mby_start % mb_height ) ;\n if ( ! v -> field_mode || v -> second_field ) s -> end_mb_y = ( i == n_slices ) ? mb_height : FFMIN ( mb_height , slices [ i ] . mby_start % mb_height ) ;\n else s -> end_mb_y = ( i <= n_slices1 + 1 ) ? mb_height : FFMIN ( mb_height , slices [ i ] . mby_start % mb_height ) ;\n ff_vc1_decode_blocks ( v ) ;\n if ( i != n_slices ) s -> gb = slices [ i ] . gb ;\n }\n if ( v -> field_mode ) {\n v -> second_field = 0 ;\n if ( s -> pict_type == AV_PICTURE_TYPE_B ) {\n memcpy ( v -> mv_f_base , v -> mv_f_next_base , 2 * ( s -> b8_stride * ( s -> mb_height * 2 + 1 ) + s -> mb_stride * ( s -> mb_height + 1 ) * 2 ) ) ;\n }\n s -> current_picture . f . linesize [ 0 ] >>= 1 ;\n s -> current_picture . f . linesize [ 1 ] >>= 1 ;\n s -> current_picture . f . linesize [ 2 ] >>= 1 ;\n s -> linesize >>= 1 ;\n s -> uvlinesize >>= 1 ;\n }\n av_dlog ( s -> avctx , \"Consumed %i/%i bits\\n\" , get_bits_count ( & s -> gb ) , s -> gb . size_in_bits ) ;\n ff_er_frame_end ( & s -> er ) ;\n }\n ff_MPV_frame_end ( s ) ;\n if ( avctx -> codec_id == AV_CODEC_ID_WMV3IMAGE || avctx -> codec_id == AV_CODEC_ID_VC1IMAGE ) {\n image : avctx -> width = avctx -> coded_width = v -> output_width ;\n avctx -> height = avctx -> coded_height = v -> output_height ;\n if ( avctx -> skip_frame >= AVDISCARD_NONREF ) goto end ;\n # if CONFIG_WMV3IMAGE_DECODER || CONFIG_VC1IMAGE_DECODER if ( vc1_decode_sprites ( v , & s -> gb ) ) goto err ;\n # endif if ( ( ret = av_frame_ref ( pict , & v -> sprite_output_frame ) ) < 0 ) goto err ;\n * got_frame = 1 ;\n }\n else {\n if ( s -> pict_type == AV_PICTURE_TYPE_B || s -> low_delay ) {\n if ( ( ret = av_frame_ref ( pict , & s -> current_picture_ptr -> f ) ) < 0 ) goto err ;\n ff_print_debug_info ( s , s -> current_picture_ptr ) ;\n }\n else if ( s -> last_picture_ptr != NULL ) {\n if ( ( ret = av_frame_ref ( pict , & s -> last_picture_ptr -> f ) ) < 0 ) goto err ;\n ff_print_debug_info ( s , s -> last_picture_ptr ) ;\n }\n if ( s -> last_picture_ptr || s -> low_delay ) {\n * got_frame = 1 ;\n }\n }\n end : av_free ( buf2 ) ;\n for ( i = 0 ;\n i < n_slices ;\n i ++ ) av_free ( slices [ i ] . buf ) ;\n av_free ( slices ) ;\n return buf_size ;\n err : av_free ( buf2 ) ;\n for ( i = 0 ;\n i < n_slices ;\n i ++ ) av_free ( slices [ i ] . buf ) ;\n av_free ( slices ) ;\n return - 1 ;\n }"}
{"idx": 11098, "target": 0, "func": "static int dissect_btgatt_microbit_temperature_period ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , void * data ) {\n btatt_data_t * att_data = ( btatt_data_t * ) data ;\n gint offset = 0 ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) return - 1 ;\n proto_tree_add_item ( tree , hf_gatt_microbit_temperature_period , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n return offset ;\n }"}
{"idx": 11099, "target": 0, "func": "static int create_and_bind ( const char * host , const char * port , int protocol ) {\n struct addrinfo hints ;\n struct addrinfo * result , * rp , * ipv4v6bindall ;\n int s , listen_sock = - 1 ;\n memset ( & hints , 0 , sizeof ( struct addrinfo ) ) ;\n hints . ai_family = AF_UNSPEC ;\n hints . ai_socktype = protocol == IPPROTO_TCP ? SOCK_STREAM : SOCK_DGRAM ;\n hints . ai_flags = AI_PASSIVE | AI_ADDRCONFIG ;\n hints . ai_protocol = protocol ;\n s = getaddrinfo ( host , port , & hints , & result ) ;\n if ( s != 0 ) {\n LOGE ( \"getaddrinfo: %s\" , gai_strerror ( s ) ) ;\n return - 1 ;\n }\n rp = result ;\n if ( ! host ) {\n ipv4v6bindall = result ;\n while ( ipv4v6bindall ) {\n if ( ipv4v6bindall -> ai_family == AF_INET6 ) {\n rp = ipv4v6bindall ;\n break ;\n }\n ipv4v6bindall = ipv4v6bindall -> ai_next ;\n }\n }\n for ( ;\n rp != NULL ;\n rp = rp -> ai_next ) {\n listen_sock = socket ( rp -> ai_family , rp -> ai_socktype , rp -> ai_protocol ) ;\n if ( listen_sock == - 1 ) {\n continue ;\n }\n if ( rp -> ai_family == AF_INET6 ) {\n int ipv6only = host ? 1 : 0 ;\n setsockopt ( listen_sock , IPPROTO_IPV6 , IPV6_V6ONLY , & ipv6only , sizeof ( ipv6only ) ) ;\n }\n int opt = 1 ;\n setsockopt ( listen_sock , SOL_SOCKET , SO_REUSEADDR , & opt , sizeof ( opt ) ) ;\n # ifdef SO_NOSIGPIPE setsockopt ( listen_sock , SOL_SOCKET , SO_NOSIGPIPE , & opt , sizeof ( opt ) ) ;\n # endif s = bind ( listen_sock , rp -> ai_addr , rp -> ai_addrlen ) ;\n if ( s == 0 ) {\n close ( listen_sock ) ;\n break ;\n }\n else {\n ERROR ( \"bind\" ) ;\n }\n }\n if ( ! result ) {\n freeaddrinfo ( result ) ;\n }\n if ( rp == NULL ) {\n LOGE ( \"Could not bind\" ) ;\n return - 1 ;\n }\n return listen_sock ;\n }"}
{"idx": 11100, "target": 0, "func": "void vp9_read_frame_size ( struct vp9_read_bit_buffer * rb , int * width , int * height ) {\n const int w = vp9_rb_read_literal ( rb , 16 ) + 1 ;\n const int h = vp9_rb_read_literal ( rb , 16 ) + 1 ;\n * width = w ;\n * height = h ;\n }"}
{"idx": 11101, "target": 0, "func": "static int mpeg4_decode_mb ( MpegEncContext * s , int16_t block [ 6 ] [ 64 ] ) {\n int cbpc , cbpy , i , cbp , pred_x , pred_y , mx , my , dquant ;\n int16_t * mot_val ;\n static int8_t quant_tab [ 4 ] = {\n - 1 , - 2 , 1 , 2 }\n ;\n const int xy = s -> mb_x + s -> mb_y * s -> mb_stride ;\n assert ( s -> h263_pred ) ;\n if ( s -> pict_type == AV_PICTURE_TYPE_P || s -> pict_type == AV_PICTURE_TYPE_S ) {\n do {\n if ( get_bits1 ( & s -> gb ) ) {\n s -> mb_intra = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) s -> block_last_index [ i ] = - 1 ;\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n if ( s -> pict_type == AV_PICTURE_TYPE_S && s -> vol_sprite_usage == GMC_SPRITE ) {\n s -> current_picture . mb_type [ xy ] = MB_TYPE_SKIP | MB_TYPE_GMC | MB_TYPE_16x16 | MB_TYPE_L0 ;\n s -> mcsel = 1 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = get_amv ( s , 0 ) ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = get_amv ( s , 1 ) ;\n s -> mb_skipped = 0 ;\n }\n else {\n s -> current_picture . mb_type [ xy ] = MB_TYPE_SKIP | MB_TYPE_16x16 | MB_TYPE_L0 ;\n s -> mcsel = 0 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = 0 ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = 0 ;\n s -> mb_skipped = 1 ;\n }\n goto end ;\n }\n cbpc = get_vlc2 ( & s -> gb , ff_h263_inter_MCBPC_vlc . table , INTER_MCBPC_VLC_BITS , 2 ) ;\n if ( cbpc < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"cbpc damaged at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n }\n while ( cbpc == 20 ) ;\n s -> dsp . clear_blocks ( s -> block [ 0 ] ) ;\n dquant = cbpc & 8 ;\n s -> mb_intra = ( ( cbpc & 4 ) != 0 ) ;\n if ( s -> mb_intra ) goto intra ;\n if ( s -> pict_type == AV_PICTURE_TYPE_S && s -> vol_sprite_usage == GMC_SPRITE && ( cbpc & 16 ) == 0 ) s -> mcsel = get_bits1 ( & s -> gb ) ;\n else s -> mcsel = 0 ;\n cbpy = get_vlc2 ( & s -> gb , ff_h263_cbpy_vlc . table , CBPY_VLC_BITS , 1 ) ^ 0x0F ;\n cbp = ( cbpc & 3 ) | ( cbpy << 2 ) ;\n if ( dquant ) {\n ff_set_qscale ( s , s -> qscale + quant_tab [ get_bits ( & s -> gb , 2 ) ] ) ;\n }\n if ( ( ! s -> progressive_sequence ) && ( cbp || ( s -> workaround_bugs & FF_BUG_XVID_ILACE ) ) ) s -> interlaced_dct = get_bits1 ( & s -> gb ) ;\n s -> mv_dir = MV_DIR_FORWARD ;\n if ( ( cbpc & 16 ) == 0 ) {\n if ( s -> mcsel ) {\n s -> current_picture . mb_type [ xy ] = MB_TYPE_GMC | MB_TYPE_16x16 | MB_TYPE_L0 ;\n s -> mv_type = MV_TYPE_16X16 ;\n mx = get_amv ( s , 0 ) ;\n my = get_amv ( s , 1 ) ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = mx ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = my ;\n }\n else if ( ( ! s -> progressive_sequence ) && get_bits1 ( & s -> gb ) ) {\n s -> current_picture . mb_type [ xy ] = MB_TYPE_16x8 | MB_TYPE_L0 | MB_TYPE_INTERLACED ;\n s -> mv_type = MV_TYPE_FIELD ;\n s -> field_select [ 0 ] [ 0 ] = get_bits1 ( & s -> gb ) ;\n s -> field_select [ 0 ] [ 1 ] = get_bits1 ( & s -> gb ) ;\n ff_h263_pred_motion ( s , 0 , 0 , & pred_x , & pred_y ) ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n mx = ff_h263_decode_motion ( s , pred_x , s -> f_code ) ;\n if ( mx >= 0xffff ) return - 1 ;\n my = ff_h263_decode_motion ( s , pred_y / 2 , s -> f_code ) ;\n if ( my >= 0xffff ) return - 1 ;\n s -> mv [ 0 ] [ i ] [ 0 ] = mx ;\n s -> mv [ 0 ] [ i ] [ 1 ] = my ;\n }\n }\n else {\n s -> current_picture . mb_type [ xy ] = MB_TYPE_16x16 | MB_TYPE_L0 ;\n s -> mv_type = MV_TYPE_16X16 ;\n ff_h263_pred_motion ( s , 0 , 0 , & pred_x , & pred_y ) ;\n mx = ff_h263_decode_motion ( s , pred_x , s -> f_code ) ;\n if ( mx >= 0xffff ) return - 1 ;\n my = ff_h263_decode_motion ( s , pred_y , s -> f_code ) ;\n if ( my >= 0xffff ) return - 1 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = mx ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = my ;\n }\n }\n else {\n s -> current_picture . mb_type [ xy ] = MB_TYPE_8x8 | MB_TYPE_L0 ;\n s -> mv_type = MV_TYPE_8X8 ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n mot_val = ff_h263_pred_motion ( s , i , 0 , & pred_x , & pred_y ) ;\n mx = ff_h263_decode_motion ( s , pred_x , s -> f_code ) ;\n if ( mx >= 0xffff ) return - 1 ;\n my = ff_h263_decode_motion ( s , pred_y , s -> f_code ) ;\n if ( my >= 0xffff ) return - 1 ;\n s -> mv [ 0 ] [ i ] [ 0 ] = mx ;\n s -> mv [ 0 ] [ i ] [ 1 ] = my ;\n mot_val [ 0 ] = mx ;\n mot_val [ 1 ] = my ;\n }\n }\n }\n else if ( s -> pict_type == AV_PICTURE_TYPE_B ) {\n int modb1 ;\n int modb2 ;\n int mb_type ;\n s -> mb_intra = 0 ;\n s -> mcsel = 0 ;\n if ( s -> mb_x == 0 ) {\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n s -> last_mv [ i ] [ 0 ] [ 0 ] = s -> last_mv [ i ] [ 0 ] [ 1 ] = s -> last_mv [ i ] [ 1 ] [ 0 ] = s -> last_mv [ i ] [ 1 ] [ 1 ] = 0 ;\n }\n ff_thread_await_progress ( & s -> next_picture_ptr -> tf , s -> mb_y , 0 ) ;\n }\n s -> mb_skipped = s -> next_picture . mbskip_table [ s -> mb_y * s -> mb_stride + s -> mb_x ] ;\n if ( s -> mb_skipped ) {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) s -> block_last_index [ i ] = - 1 ;\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = 0 ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = 0 ;\n s -> mv [ 1 ] [ 0 ] [ 0 ] = 0 ;\n s -> mv [ 1 ] [ 0 ] [ 1 ] = 0 ;\n s -> current_picture . mb_type [ xy ] = MB_TYPE_SKIP | MB_TYPE_16x16 | MB_TYPE_L0 ;\n goto end ;\n }\n modb1 = get_bits1 ( & s -> gb ) ;\n if ( modb1 ) {\n mb_type = MB_TYPE_DIRECT2 | MB_TYPE_SKIP | MB_TYPE_L0L1 ;\n cbp = 0 ;\n }\n else {\n modb2 = get_bits1 ( & s -> gb ) ;\n mb_type = get_vlc2 ( & s -> gb , mb_type_b_vlc . table , MB_TYPE_B_VLC_BITS , 1 ) ;\n if ( mb_type < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"illegal MB_type\\n\" ) ;\n return - 1 ;\n }\n mb_type = mb_type_b_map [ mb_type ] ;\n if ( modb2 ) cbp = 0 ;\n else {\n s -> dsp . clear_blocks ( s -> block [ 0 ] ) ;\n cbp = get_bits ( & s -> gb , 6 ) ;\n }\n if ( ( ! IS_DIRECT ( mb_type ) ) && cbp ) {\n if ( get_bits1 ( & s -> gb ) ) {\n ff_set_qscale ( s , s -> qscale + get_bits1 ( & s -> gb ) * 4 - 2 ) ;\n }\n }\n if ( ! s -> progressive_sequence ) {\n if ( cbp ) s -> interlaced_dct = get_bits1 ( & s -> gb ) ;\n if ( ! IS_DIRECT ( mb_type ) && get_bits1 ( & s -> gb ) ) {\n mb_type |= MB_TYPE_16x8 | MB_TYPE_INTERLACED ;\n mb_type &= ~ MB_TYPE_16x16 ;\n if ( USES_LIST ( mb_type , 0 ) ) {\n s -> field_select [ 0 ] [ 0 ] = get_bits1 ( & s -> gb ) ;\n s -> field_select [ 0 ] [ 1 ] = get_bits1 ( & s -> gb ) ;\n }\n if ( USES_LIST ( mb_type , 1 ) ) {\n s -> field_select [ 1 ] [ 0 ] = get_bits1 ( & s -> gb ) ;\n s -> field_select [ 1 ] [ 1 ] = get_bits1 ( & s -> gb ) ;\n }\n }\n }\n s -> mv_dir = 0 ;\n if ( ( mb_type & ( MB_TYPE_DIRECT2 | MB_TYPE_INTERLACED ) ) == 0 ) {\n s -> mv_type = MV_TYPE_16X16 ;\n if ( USES_LIST ( mb_type , 0 ) ) {\n s -> mv_dir = MV_DIR_FORWARD ;\n mx = ff_h263_decode_motion ( s , s -> last_mv [ 0 ] [ 0 ] [ 0 ] , s -> f_code ) ;\n my = ff_h263_decode_motion ( s , s -> last_mv [ 0 ] [ 0 ] [ 1 ] , s -> f_code ) ;\n s -> last_mv [ 0 ] [ 1 ] [ 0 ] = s -> last_mv [ 0 ] [ 0 ] [ 0 ] = s -> mv [ 0 ] [ 0 ] [ 0 ] = mx ;\n s -> last_mv [ 0 ] [ 1 ] [ 1 ] = s -> last_mv [ 0 ] [ 0 ] [ 1 ] = s -> mv [ 0 ] [ 0 ] [ 1 ] = my ;\n }\n if ( USES_LIST ( mb_type , 1 ) ) {\n s -> mv_dir |= MV_DIR_BACKWARD ;\n mx = ff_h263_decode_motion ( s , s -> last_mv [ 1 ] [ 0 ] [ 0 ] , s -> b_code ) ;\n my = ff_h263_decode_motion ( s , s -> last_mv [ 1 ] [ 0 ] [ 1 ] , s -> b_code ) ;\n s -> last_mv [ 1 ] [ 1 ] [ 0 ] = s -> last_mv [ 1 ] [ 0 ] [ 0 ] = s -> mv [ 1 ] [ 0 ] [ 0 ] = mx ;\n s -> last_mv [ 1 ] [ 1 ] [ 1 ] = s -> last_mv [ 1 ] [ 0 ] [ 1 ] = s -> mv [ 1 ] [ 0 ] [ 1 ] = my ;\n }\n }\n else if ( ! IS_DIRECT ( mb_type ) ) {\n s -> mv_type = MV_TYPE_FIELD ;\n if ( USES_LIST ( mb_type , 0 ) ) {\n s -> mv_dir = MV_DIR_FORWARD ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n mx = ff_h263_decode_motion ( s , s -> last_mv [ 0 ] [ i ] [ 0 ] , s -> f_code ) ;\n my = ff_h263_decode_motion ( s , s -> last_mv [ 0 ] [ i ] [ 1 ] / 2 , s -> f_code ) ;\n s -> last_mv [ 0 ] [ i ] [ 0 ] = s -> mv [ 0 ] [ i ] [ 0 ] = mx ;\n s -> last_mv [ 0 ] [ i ] [ 1 ] = ( s -> mv [ 0 ] [ i ] [ 1 ] = my ) * 2 ;\n }\n }\n if ( USES_LIST ( mb_type , 1 ) ) {\n s -> mv_dir |= MV_DIR_BACKWARD ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n mx = ff_h263_decode_motion ( s , s -> last_mv [ 1 ] [ i ] [ 0 ] , s -> b_code ) ;\n my = ff_h263_decode_motion ( s , s -> last_mv [ 1 ] [ i ] [ 1 ] / 2 , s -> b_code ) ;\n s -> last_mv [ 1 ] [ i ] [ 0 ] = s -> mv [ 1 ] [ i ] [ 0 ] = mx ;\n s -> last_mv [ 1 ] [ i ] [ 1 ] = ( s -> mv [ 1 ] [ i ] [ 1 ] = my ) * 2 ;\n }\n }\n }\n }\n if ( IS_DIRECT ( mb_type ) ) {\n if ( IS_SKIP ( mb_type ) ) mx = my = 0 ;\n else {\n mx = ff_h263_decode_motion ( s , 0 , 1 ) ;\n my = ff_h263_decode_motion ( s , 0 , 1 ) ;\n }\n s -> mv_dir = MV_DIR_FORWARD | MV_DIR_BACKWARD | MV_DIRECT ;\n mb_type |= ff_mpeg4_set_direct_mv ( s , mx , my ) ;\n }\n s -> current_picture . mb_type [ xy ] = mb_type ;\n }\n else {\n do {\n cbpc = get_vlc2 ( & s -> gb , ff_h263_intra_MCBPC_vlc . table , INTRA_MCBPC_VLC_BITS , 2 ) ;\n if ( cbpc < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"I cbpc damaged at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n }\n while ( cbpc == 8 ) ;\n dquant = cbpc & 4 ;\n s -> mb_intra = 1 ;\n intra : s -> ac_pred = get_bits1 ( & s -> gb ) ;\n if ( s -> ac_pred ) s -> current_picture . mb_type [ xy ] = MB_TYPE_INTRA | MB_TYPE_ACPRED ;\n else s -> current_picture . mb_type [ xy ] = MB_TYPE_INTRA ;\n cbpy = get_vlc2 ( & s -> gb , ff_h263_cbpy_vlc . table , CBPY_VLC_BITS , 1 ) ;\n if ( cbpy < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"I cbpy damaged at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n cbp = ( cbpc & 3 ) | ( cbpy << 2 ) ;\n s -> use_intra_dc_vlc = s -> qscale < s -> intra_dc_threshold ;\n if ( dquant ) {\n ff_set_qscale ( s , s -> qscale + quant_tab [ get_bits ( & s -> gb , 2 ) ] ) ;\n }\n if ( ! s -> progressive_sequence ) s -> interlaced_dct = get_bits1 ( & s -> gb ) ;\n s -> dsp . clear_blocks ( s -> block [ 0 ] ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( mpeg4_decode_block ( s , block [ i ] , i , cbp & 32 , 1 , 0 ) < 0 ) return - 1 ;\n cbp += cbp ;\n }\n goto end ;\n }\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( mpeg4_decode_block ( s , block [ i ] , i , cbp & 32 , 0 , 0 ) < 0 ) return - 1 ;\n cbp += cbp ;\n }\n end : if ( s -> codec_id == AV_CODEC_ID_MPEG4 ) {\n if ( mpeg4_is_resync ( s ) ) {\n const int delta = s -> mb_x + 1 == s -> mb_width ? 2 : 1 ;\n if ( s -> pict_type == AV_PICTURE_TYPE_B && s -> next_picture . mbskip_table [ xy + delta ] ) {\n ff_thread_await_progress ( & s -> next_picture_ptr -> tf , ( s -> mb_x + delta >= s -> mb_width ) ? FFMIN ( s -> mb_y + 1 , s -> mb_height - 1 ) : s -> mb_y , 0 ) ;\n }\n if ( s -> pict_type == AV_PICTURE_TYPE_B && s -> next_picture . mbskip_table [ xy + delta ] ) return SLICE_OK ;\n return SLICE_END ;\n }\n }\n return SLICE_OK ;\n }"}
{"idx": 11102, "target": 0, "func": "TEST_F ( AutocompleteResultTest , SortAndCullWithMatchDups ) {\n TemplateURLData url_data ;\n url_data . SetShortName ( base : : ASCIIToUTF16 ( \"unittest\" ) ) ;\n url_data . SetKeyword ( base : : ASCIIToUTF16 ( \"foo\" ) ) ;\n url_data . SetURL ( \"http://www.foo.com/s?q={\nsearchTerms}\n\" ) ;\n template_url_service_ . get ( ) -> Add ( new TemplateURL ( url_data ) ) ;\n AutocompleteMatch dup_match ;\n dup_match . destination_url = GURL ( \"http://www.foo.com/s?q=foo&oq=dup\" ) ;\n std : : vector < AutocompleteMatch > dups ;\n dups . push_back ( dup_match ) ;\n TestData data [ ] = {\n {\n 0 , 1 , 1300 , true , dups }\n , {\n 1 , 1 , 1200 , true }\n , {\n 2 , 1 , 1100 , true }\n , {\n 3 , 1 , 1000 , true , dups }\n , {\n 4 , 2 , 900 , true }\n , {\n 5 , 1 , 800 , true }\n , }\n ;\n ACMatches matches ;\n PopulateAutocompleteMatches ( data , arraysize ( data ) , & matches ) ;\n matches [ 0 ] . destination_url = GURL ( \"http://www.foo.com/s?q=foo\" ) ;\n matches [ 1 ] . destination_url = GURL ( \"http://www.foo.com/s?q=foo2\" ) ;\n matches [ 2 ] . destination_url = GURL ( \"http://www.foo.com/s?q=foo&oq=f\" ) ;\n matches [ 3 ] . destination_url = GURL ( \"http://www.foo.com/s?q=foo&aqs=0\" ) ;\n matches [ 4 ] . destination_url = GURL ( \"http://www.foo.com/\" ) ;\n matches [ 5 ] . destination_url = GURL ( \"http://www.foo.com/s?q=foo2&oq=f\" ) ;\n AutocompleteInput input ( base : : string16 ( ) , base : : string16 : : npos , std : : string ( ) , GURL ( ) , OmniboxEventProto : : INVALID_SPEC , false , false , false , true , false , TestSchemeClassifier ( ) ) ;\n AutocompleteResult result ;\n result . AppendMatches ( input , matches ) ;\n result . SortAndCull ( input , template_url_service_ . get ( ) ) ;\n ASSERT_EQ ( 3U , result . size ( ) ) ;\n ASSERT_EQ ( 4U , result . match_at ( 0 ) -> duplicate_matches . size ( ) ) ;\n const AutocompleteMatch * first_match = result . match_at ( 0 ) ;\n EXPECT_EQ ( matches [ 2 ] . destination_url , first_match -> duplicate_matches . at ( 1 ) . destination_url ) ;\n EXPECT_EQ ( dup_match . destination_url , first_match -> duplicate_matches . at ( 2 ) . destination_url ) ;\n EXPECT_EQ ( matches [ 3 ] . destination_url , first_match -> duplicate_matches . at ( 3 ) . destination_url ) ;\n ASSERT_EQ ( 1U , result . match_at ( 1 ) -> duplicate_matches . size ( ) ) ;\n EXPECT_EQ ( matches [ 5 ] . destination_url , result . match_at ( 1 ) -> duplicate_matches . at ( 0 ) . destination_url ) ;\n }"}
{"idx": 11103, "target": 0, "func": "static void FigureFullMetricsEnd ( SplineFont * sf , struct glyphinfo * gi , int istt ) {\n int i , lasti , lastv , lastdefault = istt ? 3 : 1 ;\n int width , vwidth ;\n lasti = lastv = gi -> gcnt - 1 ;\n for ( i = gi -> gcnt - 1 ;\n i > lastdefault && gi -> bygid [ i ] == - 1 ;\n -- i ) ;\n if ( i >= lastdefault ) {\n width = sf -> glyphs [ gi -> bygid [ i ] ] -> width ;\n vwidth = sf -> glyphs [ gi -> bygid [ i ] ] -> vwidth ;\n lasti = lastv = i ;\n for ( i = lasti - 1 ;\n i >= lastdefault ;\n -- i ) {\n if ( SCWorthOutputting ( sf -> glyphs [ gi -> bygid [ i ] ] ) ) {\n if ( sf -> glyphs [ gi -> bygid [ i ] ] -> width != width ) break ;\n else lasti = i ;\n }\n }\n gi -> lasthwidth = lasti ;\n if ( sf -> hasvmetrics ) {\n for ( i = lastv - 1 ;\n i >= lastdefault ;\n -- i ) {\n if ( SCWorthOutputting ( sf -> glyphs [ gi -> bygid [ i ] ] ) ) {\n if ( sf -> glyphs [ gi -> bygid [ i ] ] -> vwidth != vwidth ) break ;\n else lastv = i ;\n }\n }\n gi -> lastvwidth = lastv ;\n }\n }\n else {\n gi -> lasthwidth = 0 ;\n gi -> lastvwidth = 0 ;\n }\n }"}
{"idx": 11104, "target": 0, "func": "static int dissect_usb_video_colorformat ( proto_tree * tree , tvbuff_t * tvb , int offset ) {\n proto_tree_add_item ( tree , hf_usb_vid_color_primaries , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_usb_vid_transfer_characteristics , tvb , offset + 1 , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_usb_vid_matrix_coefficients , tvb , offset + 2 , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n return offset ;\n }"}
{"idx": 11105, "target": 0, "func": "static int dissect_h245_T_distribution ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_distribution , T_distribution_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 11106, "target": 1, "func": "static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 11107, "target": 0, "func": "static inline void vc1_pred_b_mv_intfi ( VC1Context * v , int n , int * dmv_x , int * dmv_y , int mv1 , int * pred_flag ) {\n int dir = ( v -> bmvtype == BMV_TYPE_BACKWARD ) ? 1 : 0 ;\n MpegEncContext * s = & v -> s ;\n int mb_pos = s -> mb_x + s -> mb_y * s -> mb_stride ;\n if ( v -> bmvtype == BMV_TYPE_DIRECT ) {\n int total_opp , k , f ;\n if ( s -> next_picture . mb_type [ mb_pos + v -> mb_off ] != MB_TYPE_INTRA ) {\n s -> mv [ 0 ] [ 0 ] [ 0 ] = scale_mv ( s -> next_picture . motion_val [ 1 ] [ s -> block_index [ 0 ] + v -> blocks_off ] [ 0 ] , v -> bfraction , 0 , s -> quarter_sample ) ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = scale_mv ( s -> next_picture . motion_val [ 1 ] [ s -> block_index [ 0 ] + v -> blocks_off ] [ 1 ] , v -> bfraction , 0 , s -> quarter_sample ) ;\n s -> mv [ 1 ] [ 0 ] [ 0 ] = scale_mv ( s -> next_picture . motion_val [ 1 ] [ s -> block_index [ 0 ] + v -> blocks_off ] [ 0 ] , v -> bfraction , 1 , s -> quarter_sample ) ;\n s -> mv [ 1 ] [ 0 ] [ 1 ] = scale_mv ( s -> next_picture . motion_val [ 1 ] [ s -> block_index [ 0 ] + v -> blocks_off ] [ 1 ] , v -> bfraction , 1 , s -> quarter_sample ) ;\n total_opp = v -> mv_f_next [ 0 ] [ s -> block_index [ 0 ] + v -> blocks_off ] + v -> mv_f_next [ 0 ] [ s -> block_index [ 1 ] + v -> blocks_off ] + v -> mv_f_next [ 0 ] [ s -> block_index [ 2 ] + v -> blocks_off ] + v -> mv_f_next [ 0 ] [ s -> block_index [ 3 ] + v -> blocks_off ] ;\n f = ( total_opp > 2 ) ? 1 : 0 ;\n }\n else {\n s -> mv [ 0 ] [ 0 ] [ 0 ] = s -> mv [ 0 ] [ 0 ] [ 1 ] = 0 ;\n s -> mv [ 1 ] [ 0 ] [ 0 ] = s -> mv [ 1 ] [ 0 ] [ 1 ] = 0 ;\n f = 0 ;\n }\n v -> ref_field_type [ 0 ] = v -> ref_field_type [ 1 ] = v -> cur_field_type ^ f ;\n for ( k = 0 ;\n k < 4 ;\n k ++ ) {\n s -> current_picture . motion_val [ 0 ] [ s -> block_index [ k ] + v -> blocks_off ] [ 0 ] = s -> mv [ 0 ] [ 0 ] [ 0 ] ;\n s -> current_picture . motion_val [ 0 ] [ s -> block_index [ k ] + v -> blocks_off ] [ 1 ] = s -> mv [ 0 ] [ 0 ] [ 1 ] ;\n s -> current_picture . motion_val [ 1 ] [ s -> block_index [ k ] + v -> blocks_off ] [ 0 ] = s -> mv [ 1 ] [ 0 ] [ 0 ] ;\n s -> current_picture . motion_val [ 1 ] [ s -> block_index [ k ] + v -> blocks_off ] [ 1 ] = s -> mv [ 1 ] [ 0 ] [ 1 ] ;\n v -> mv_f [ 0 ] [ s -> block_index [ k ] + v -> blocks_off ] = f ;\n v -> mv_f [ 1 ] [ s -> block_index [ k ] + v -> blocks_off ] = f ;\n }\n return ;\n }\n if ( v -> bmvtype == BMV_TYPE_INTERPOLATED ) {\n vc1_pred_mv ( v , 0 , dmv_x [ 0 ] , dmv_y [ 0 ] , 1 , v -> range_x , v -> range_y , v -> mb_type [ 0 ] , pred_flag [ 0 ] , 0 ) ;\n vc1_pred_mv ( v , 0 , dmv_x [ 1 ] , dmv_y [ 1 ] , 1 , v -> range_x , v -> range_y , v -> mb_type [ 0 ] , pred_flag [ 1 ] , 1 ) ;\n return ;\n }\n if ( dir ) {\n vc1_pred_mv ( v , n , dmv_x [ 1 ] , dmv_y [ 1 ] , mv1 , v -> range_x , v -> range_y , v -> mb_type [ 0 ] , pred_flag [ 1 ] , 1 ) ;\n if ( n == 3 || mv1 ) {\n vc1_pred_mv ( v , 0 , dmv_x [ 0 ] , dmv_y [ 0 ] , 1 , v -> range_x , v -> range_y , v -> mb_type [ 0 ] , 0 , 0 ) ;\n }\n }\n else {\n vc1_pred_mv ( v , n , dmv_x [ 0 ] , dmv_y [ 0 ] , mv1 , v -> range_x , v -> range_y , v -> mb_type [ 0 ] , pred_flag [ 0 ] , 0 ) ;\n if ( n == 3 || mv1 ) {\n vc1_pred_mv ( v , 0 , dmv_x [ 1 ] , dmv_y [ 1 ] , 1 , v -> range_x , v -> range_y , v -> mb_type [ 0 ] , 0 , 1 ) ;\n }\n }\n }"}
{"idx": 11108, "target": 0, "func": "static int zneedinput ( i_ctx_t * i_ctx_p ) {\n return gs_error_NeedInput ;\n }"}
{"idx": 11109, "target": 0, "func": "const char * vpx_svc_dump_statistics ( SvcContext * svc_ctx ) {\n int number_of_frames ;\n int i , j ;\n uint32_t bytes_total = 0 ;\n double scale [ COMPONENTS ] ;\n double psnr [ COMPONENTS ] ;\n double mse [ COMPONENTS ] ;\n double y_scale ;\n SvcInternal * const si = get_svc_internal ( svc_ctx ) ;\n if ( svc_ctx == NULL || si == NULL ) return NULL ;\n svc_log_reset ( svc_ctx ) ;\n number_of_frames = si -> psnr_pkt_received ;\n if ( number_of_frames <= 0 ) return vpx_svc_get_message ( svc_ctx ) ;\n svc_log ( svc_ctx , SVC_LOG_INFO , \"\\n\" ) ;\n for ( i = 0 ;\n i < svc_ctx -> spatial_layers ;\n ++ i ) {\n svc_log ( svc_ctx , SVC_LOG_INFO , \"Layer %d Average PSNR=[%2.3f, %2.3f, %2.3f, %2.3f], Bytes=[%u]\\n\" , i , ( double ) si -> psnr_sum [ i ] [ 0 ] / number_of_frames , ( double ) si -> psnr_sum [ i ] [ 1 ] / number_of_frames , ( double ) si -> psnr_sum [ i ] [ 2 ] / number_of_frames , ( double ) si -> psnr_sum [ i ] [ 3 ] / number_of_frames , si -> bytes_sum [ i ] ) ;\n y_scale = si -> width * si -> height * 255.0 * 255.0 * number_of_frames ;\n scale [ 1 ] = y_scale ;\n scale [ 2 ] = scale [ 3 ] = y_scale / 4 ;\n scale [ 0 ] = y_scale * 1.5 ;\n for ( j = 0 ;\n j < COMPONENTS ;\n j ++ ) {\n psnr [ j ] = calc_psnr ( si -> sse_sum [ i ] [ j ] / scale [ j ] ) ;\n mse [ j ] = si -> sse_sum [ i ] [ j ] * 255.0 * 255.0 / scale [ j ] ;\n }\n svc_log ( svc_ctx , SVC_LOG_INFO , \"Layer %d Overall PSNR=[%2.3f, %2.3f, %2.3f, %2.3f]\\n\" , i , psnr [ 0 ] , psnr [ 1 ] , psnr [ 2 ] , psnr [ 3 ] ) ;\n svc_log ( svc_ctx , SVC_LOG_INFO , \"Layer %d Overall MSE=[%2.3f, %2.3f, %2.3f, %2.3f]\\n\" , i , mse [ 0 ] , mse [ 1 ] , mse [ 2 ] , mse [ 3 ] ) ;\n bytes_total += si -> bytes_sum [ i ] ;\n si -> bytes_sum [ i ] = 0 ;\n for ( j = 0 ;\n j < COMPONENTS ;\n ++ j ) {\n si -> psnr_sum [ i ] [ j ] = 0 ;\n si -> sse_sum [ i ] [ j ] = 0 ;\n }\n }\n si -> psnr_pkt_received = 0 ;\n svc_log ( svc_ctx , SVC_LOG_INFO , \"Total Bytes=[%u]\\n\" , bytes_total ) ;\n return vpx_svc_get_message ( svc_ctx ) ;\n }"}
{"idx": 11110, "target": 0, "func": "static void update_reference_frames ( VP8_COMP * cpi ) {\n VP8_COMMON * cm = & cpi -> common ;\n YV12_BUFFER_CONFIG * yv12_fb = cm -> yv12_fb ;\n if ( cm -> frame_type == KEY_FRAME ) {\n yv12_fb [ cm -> new_fb_idx ] . flags |= VP8_GOLD_FRAME | VP8_ALTR_FRAME ;\n yv12_fb [ cm -> gld_fb_idx ] . flags &= ~ VP8_GOLD_FRAME ;\n yv12_fb [ cm -> alt_fb_idx ] . flags &= ~ VP8_ALTR_FRAME ;\n cm -> alt_fb_idx = cm -> gld_fb_idx = cm -> new_fb_idx ;\n cpi -> current_ref_frames [ GOLDEN_FRAME ] = cm -> current_video_frame ;\n cpi -> current_ref_frames [ ALTREF_FRAME ] = cm -> current_video_frame ;\n }\n else {\n if ( cm -> refresh_alt_ref_frame ) {\n assert ( ! cm -> copy_buffer_to_arf ) ;\n cm -> yv12_fb [ cm -> new_fb_idx ] . flags |= VP8_ALTR_FRAME ;\n cm -> yv12_fb [ cm -> alt_fb_idx ] . flags &= ~ VP8_ALTR_FRAME ;\n cm -> alt_fb_idx = cm -> new_fb_idx ;\n cpi -> current_ref_frames [ ALTREF_FRAME ] = cm -> current_video_frame ;\n }\n else if ( cm -> copy_buffer_to_arf ) {\n assert ( ! ( cm -> copy_buffer_to_arf & ~ 0x3 ) ) ;\n if ( cm -> copy_buffer_to_arf == 1 ) {\n if ( cm -> alt_fb_idx != cm -> lst_fb_idx ) {\n yv12_fb [ cm -> lst_fb_idx ] . flags |= VP8_ALTR_FRAME ;\n yv12_fb [ cm -> alt_fb_idx ] . flags &= ~ VP8_ALTR_FRAME ;\n cm -> alt_fb_idx = cm -> lst_fb_idx ;\n cpi -> current_ref_frames [ ALTREF_FRAME ] = cpi -> current_ref_frames [ LAST_FRAME ] ;\n }\n }\n else {\n if ( cm -> alt_fb_idx != cm -> gld_fb_idx ) {\n yv12_fb [ cm -> gld_fb_idx ] . flags |= VP8_ALTR_FRAME ;\n yv12_fb [ cm -> alt_fb_idx ] . flags &= ~ VP8_ALTR_FRAME ;\n cm -> alt_fb_idx = cm -> gld_fb_idx ;\n cpi -> current_ref_frames [ ALTREF_FRAME ] = cpi -> current_ref_frames [ GOLDEN_FRAME ] ;\n }\n }\n }\n if ( cm -> refresh_golden_frame ) {\n assert ( ! cm -> copy_buffer_to_gf ) ;\n cm -> yv12_fb [ cm -> new_fb_idx ] . flags |= VP8_GOLD_FRAME ;\n cm -> yv12_fb [ cm -> gld_fb_idx ] . flags &= ~ VP8_GOLD_FRAME ;\n cm -> gld_fb_idx = cm -> new_fb_idx ;\n cpi -> current_ref_frames [ GOLDEN_FRAME ] = cm -> current_video_frame ;\n }\n else if ( cm -> copy_buffer_to_gf ) {\n assert ( ! ( cm -> copy_buffer_to_arf & ~ 0x3 ) ) ;\n if ( cm -> copy_buffer_to_gf == 1 ) {\n if ( cm -> gld_fb_idx != cm -> lst_fb_idx ) {\n yv12_fb [ cm -> lst_fb_idx ] . flags |= VP8_GOLD_FRAME ;\n yv12_fb [ cm -> gld_fb_idx ] . flags &= ~ VP8_GOLD_FRAME ;\n cm -> gld_fb_idx = cm -> lst_fb_idx ;\n cpi -> current_ref_frames [ GOLDEN_FRAME ] = cpi -> current_ref_frames [ LAST_FRAME ] ;\n }\n }\n else {\n if ( cm -> alt_fb_idx != cm -> gld_fb_idx ) {\n yv12_fb [ cm -> alt_fb_idx ] . flags |= VP8_GOLD_FRAME ;\n yv12_fb [ cm -> gld_fb_idx ] . flags &= ~ VP8_GOLD_FRAME ;\n cm -> gld_fb_idx = cm -> alt_fb_idx ;\n cpi -> current_ref_frames [ GOLDEN_FRAME ] = cpi -> current_ref_frames [ ALTREF_FRAME ] ;\n }\n }\n }\n }\n if ( cm -> refresh_last_frame ) {\n cm -> yv12_fb [ cm -> new_fb_idx ] . flags |= VP8_LAST_FRAME ;\n cm -> yv12_fb [ cm -> lst_fb_idx ] . flags &= ~ VP8_LAST_FRAME ;\n cm -> lst_fb_idx = cm -> new_fb_idx ;\n cpi -> current_ref_frames [ LAST_FRAME ] = cm -> current_video_frame ;\n }\n # if CONFIG_TEMPORAL_DENOISING if ( cpi -> oxcf . noise_sensitivity ) {\n if ( cm -> frame_type == KEY_FRAME ) {\n int i ;\n for ( i = LAST_FRAME ;\n i < MAX_REF_FRAMES ;\n ++ i ) vp8_yv12_copy_frame ( cpi -> Source , & cpi -> denoiser . yv12_running_avg [ i ] ) ;\n }\n else {\n vp8_yv12_extend_frame_borders ( & cpi -> denoiser . yv12_running_avg [ INTRA_FRAME ] ) ;\n if ( cm -> refresh_alt_ref_frame || cm -> copy_buffer_to_arf ) {\n vp8_yv12_copy_frame ( & cpi -> denoiser . yv12_running_avg [ INTRA_FRAME ] , & cpi -> denoiser . yv12_running_avg [ ALTREF_FRAME ] ) ;\n }\n if ( cm -> refresh_golden_frame || cm -> copy_buffer_to_gf ) {\n vp8_yv12_copy_frame ( & cpi -> denoiser . yv12_running_avg [ INTRA_FRAME ] , & cpi -> denoiser . yv12_running_avg [ GOLDEN_FRAME ] ) ;\n }\n if ( cm -> refresh_last_frame ) {\n vp8_yv12_copy_frame ( & cpi -> denoiser . yv12_running_avg [ INTRA_FRAME ] , & cpi -> denoiser . yv12_running_avg [ LAST_FRAME ] ) ;\n }\n }\n if ( cpi -> oxcf . noise_sensitivity == 4 ) vp8_yv12_copy_frame ( cpi -> Source , & cpi -> denoiser . yv12_last_source ) ;\n }\n # endif }"}
{"idx": 11111, "target": 0, "func": "static int dissect_rsl_ie_act_type ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_tree * ie_tree ;\n guint8 ie_id ;\n guint octet ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_ACT_TYPE ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 2 , ett_ie_act_type , NULL , \"Activation Type IE \" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_rbit , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n octet = ( tvb_get_guint8 ( tvb , offset ) & 0x06 ) >> 1 ;\n proto_tree_add_item ( ie_tree , hf_rsl_a3a2 , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n switch ( octet ) {\n case 0 : proto_tree_add_item ( ie_tree , hf_rsl_a1_0 , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n break ;\n case 1 : proto_tree_add_item ( ie_tree , hf_rsl_a1_1 , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n break ;\n case 2 : proto_tree_add_item ( ie_tree , hf_rsl_a1_2 , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n break ;\n default : break ;\n }\n offset ++ ;\n return offset ;\n }"}
{"idx": 11112, "target": 0, "func": "int ff_h263_resync ( MpegEncContext * s ) {\n int left , pos , ret ;\n if ( s -> codec_id == AV_CODEC_ID_MPEG4 ) {\n skip_bits1 ( & s -> gb ) ;\n align_get_bits ( & s -> gb ) ;\n }\n if ( show_bits ( & s -> gb , 16 ) == 0 ) {\n pos = get_bits_count ( & s -> gb ) ;\n if ( CONFIG_MPEG4_DECODER && s -> codec_id == AV_CODEC_ID_MPEG4 ) ret = ff_mpeg4_decode_video_packet_header ( s ) ;\n else ret = h263_decode_gob_header ( s ) ;\n if ( ret >= 0 ) return pos ;\n }\n s -> gb = s -> last_resync_gb ;\n align_get_bits ( & s -> gb ) ;\n left = get_bits_left ( & s -> gb ) ;\n for ( ;\n left > 16 + 1 + 5 + 5 ;\n left -= 8 ) {\n if ( show_bits ( & s -> gb , 16 ) == 0 ) {\n GetBitContext bak = s -> gb ;\n pos = get_bits_count ( & s -> gb ) ;\n if ( CONFIG_MPEG4_DECODER && s -> codec_id == AV_CODEC_ID_MPEG4 ) ret = ff_mpeg4_decode_video_packet_header ( s ) ;\n else ret = h263_decode_gob_header ( s ) ;\n if ( ret >= 0 ) return pos ;\n s -> gb = bak ;\n }\n skip_bits ( & s -> gb , 8 ) ;\n }\n return - 1 ;\n }"}
{"idx": 11113, "target": 0, "func": "static void dtls1_set_message_header_int ( SSL * s , unsigned char mt , unsigned long len , unsigned short seq_num , unsigned long frag_off , unsigned long frag_len ) {\n struct hm_header_st * msg_hdr = & s -> d1 -> w_msg_hdr ;\n msg_hdr -> type = mt ;\n msg_hdr -> msg_len = len ;\n msg_hdr -> seq = seq_num ;\n msg_hdr -> frag_off = frag_off ;\n msg_hdr -> frag_len = frag_len ;\n }"}
{"idx": 11114, "target": 0, "func": "static int is_a_member ( int val , int * vals , int num_vals ) {\n int lokke ;\n for ( lokke = 0 ;\n lokke < num_vals ;\n lokke ++ ) if ( val == vals [ lokke ] ) return 1 ;\n return 0 ;\n }"}
{"idx": 11115, "target": 0, "func": "PHP_MINFO_FUNCTION ( uwsgi_php_minfo ) {\n php_info_print_table_start ( ) ;\n php_info_print_table_row ( 2 , \"uwsgi api\" , \"enabled\" ) ;\n if ( uwsgi . caches ) {\n php_info_print_table_row ( 2 , \"uwsgi cache\" , \"enabled\" ) ;\n }\n else {\n php_info_print_table_row ( 2 , \"uwsgi cache\" , \"disabled\" ) ;\n }\n php_info_print_table_end ( ) ;\n }"}
{"idx": 11116, "target": 0, "func": "static void setos2 ( struct os2 * os2 , struct alltabs * at , SplineFont * sf , enum fontformat format ) {\n int i , cnt1 , cnt2 , first , last , avg1 , avg2 , gid ;\n char * pt ;\n static int const weightFactors [ 26 ] = {\n 64 , 14 , 27 , 35 , 100 , 20 , 14 , 42 , 63 , 3 , 6 , 35 , 20 , 56 , 56 , 17 , 4 , 49 , 56 , 71 , 31 , 10 , 18 , 3 , 18 , 2 }\n ;\n EncMap * map ;\n SplineChar * sc ;\n int modformat = format ;\n os2 -> version = 1 ;\n if ( format == ff_otf || format == ff_otfcid ) os2 -> version = 3 ;\n if ( sf -> use_typo_metrics || sf -> weight_width_slope_only ) os2 -> version = 4 ;\n if ( sf -> os2_version > os2 -> version ) os2 -> version = sf -> os2_version ;\n if ( ( format >= ff_ttf && format <= ff_otfdfont ) && ( at -> gi . flags & ttf_flag_symbol ) ) modformat = ff_ttfsym ;\n os2 -> weightClass = sf -> pfminfo . weight ;\n os2 -> widthClass = sf -> pfminfo . width ;\n os2 -> fstype = 0x8 ;\n if ( sf -> pfminfo . fstype != - 1 ) os2 -> fstype = sf -> pfminfo . fstype ;\n if ( ! sf -> pfminfo . subsuper_set ) SFDefaultOS2SubSuper ( & sf -> pfminfo , sf -> ascent + sf -> descent , sf -> italicangle ) ;\n os2 -> ysupYSize = sf -> pfminfo . os2_supysize ;\n os2 -> ysubXSize = sf -> pfminfo . os2_subxsize ;\n os2 -> ysubYSize = sf -> pfminfo . os2_subysize ;\n os2 -> ysupXSize = sf -> pfminfo . os2_supxsize ;\n os2 -> ysubYOff = sf -> pfminfo . os2_subyoff ;\n os2 -> ysubXOff = sf -> pfminfo . os2_subxoff ;\n os2 -> ysupXOff = sf -> pfminfo . os2_supxoff ;\n os2 -> ysupYOff = sf -> pfminfo . os2_supyoff ;\n os2 -> yStrikeoutSize = sf -> pfminfo . os2_strikeysize ;\n os2 -> yStrikeoutPos = sf -> pfminfo . os2_strikeypos ;\n if ( sf -> pfminfo . stylemap != - 1 ) {\n int changed = 0 ;\n os2 -> fsSel = sf -> pfminfo . stylemap ;\n if ( at -> head . macstyle & 1 && ! ( os2 -> fsSel & 32 ) ) {\n at -> head . macstyle &= 0x7E ;\n changed = 1 ;\n }\n if ( at -> head . macstyle & 2 && ! ( os2 -> fsSel & 1 ) ) {\n at -> head . macstyle &= 0x7D ;\n changed = 1 ;\n }\n if ( changed ) redohead ( at ) ;\n }\n else {\n os2 -> fsSel = ( at -> head . macstyle & 1 ? 32 : 0 ) | ( at -> head . macstyle & 2 ? 1 : 0 ) ;\n if ( os2 -> fsSel == 0 && sf -> pfminfo . weight == 400 ) os2 -> fsSel = 64 ;\n }\n if ( sf -> fullname != NULL && strstrmatch ( sf -> fullname , \"outline\" ) != NULL ) os2 -> fsSel |= 8 ;\n if ( os2 -> version >= 4 ) {\n if ( strstrmatch ( sf -> fontname , \"Obli\" ) != NULL ) {\n os2 -> fsSel |= 512 ;\n }\n if ( sf -> use_typo_metrics ) os2 -> fsSel |= 128 ;\n if ( sf -> weight_width_slope_only ) os2 -> fsSel |= 256 ;\n }\n if ( sf -> pfminfo . typoascent_add ) os2 -> ascender = sf -> ascent + sf -> pfminfo . os2_typoascent ;\n else os2 -> ascender = sf -> pfminfo . os2_typoascent ;\n if ( sf -> pfminfo . typodescent_add ) os2 -> descender = - sf -> descent + sf -> pfminfo . os2_typodescent ;\n else os2 -> descender = sf -> pfminfo . os2_typodescent ;\n WinBB ( sf , & os2 -> winascent , & os2 -> windescent , at ) ;\n os2 -> linegap = sf -> pfminfo . os2_typolinegap ;\n os2 -> sFamilyClass = sf -> pfminfo . os2_family_class ;\n avg1 = avg2 = last = 0 ;\n first = 0xffff ;\n cnt1 = cnt2 = 0 ;\n for ( i = 0 ;\n i < sf -> glyphcnt ;\n ++ i ) if ( ( sc = sf -> glyphs [ i ] ) != NULL ) {\n if ( SCWorthOutputting ( sc ) && sc -> unicodeenc != - 1 ) {\n if ( ( format >= ff_ttf && format <= ff_otfdfont && sc -> ttf_glyph > 2 ) || ( format >= ff_ttf && format <= ff_otfdfont && sc -> ttf_glyph > 0 ) ) {\n if ( sc -> unicodeenc <= 0xffff ) {\n if ( sc -> unicodeenc < first ) first = sc -> unicodeenc ;\n if ( sc -> unicodeenc > last ) last = sc -> unicodeenc ;\n }\n else {\n last = 0xffff ;\n }\n }\n if ( sc -> width != 0 ) {\n avg2 += sc -> width ;\n ++ cnt2 ;\n }\n if ( sc -> unicodeenc == ' ' ) {\n avg1 += sc -> width * 166 ;\n ++ cnt1 ;\n }\n else if ( sc -> unicodeenc >= 'a' && sc -> unicodeenc <= 'z' ) {\n avg1 += sc -> width * weightFactors [ sc -> unicodeenc - 'a' ] ;\n ++ cnt1 ;\n }\n }\n }\n if ( sf -> pfminfo . hasunicoderanges ) memcpy ( os2 -> unicoderange , sf -> pfminfo . unicoderanges , sizeof ( os2 -> unicoderange ) ) ;\n else OS2FigureUnicodeRanges ( sf , os2 -> unicoderange ) ;\n if ( modformat == ff_ttfsym ) memset ( os2 -> unicoderange , 0 , sizeof ( os2 -> unicoderange ) ) ;\n if ( sf -> pfminfo . pfmset ) strncpy ( os2 -> achVendID , sf -> pfminfo . os2_vendor , 4 ) ;\n else if ( TTFFoundry != NULL ) strncpy ( os2 -> achVendID , TTFFoundry , 4 ) ;\n else memcpy ( os2 -> achVendID , \"PfEd\" , 4 ) ;\n for ( pt = os2 -> achVendID ;\n pt < os2 -> achVendID && * pt != '\\0' ;\n ++ pt ) ;\n while ( pt < os2 -> achVendID ) * pt ++ = ' ' ;\n os2 -> avgCharWid = 500 ;\n os2 -> v1_avgCharWid = os2 -> v3_avgCharWid = 0 ;\n if ( cnt1 == 27 ) os2 -> v1_avgCharWid = avg1 / 1000 ;\n if ( cnt2 != 0 ) os2 -> v3_avgCharWid = avg2 / cnt2 ;\n memcpy ( os2 -> panose , sf -> pfminfo . panose , sizeof ( os2 -> panose ) ) ;\n map = at -> map ;\n if ( modformat == ff_ttfsym ) {\n if ( sf -> pfminfo . hascodepages ) memcpy ( os2 -> ulCodePage , sf -> pfminfo . codepages , sizeof ( os2 -> ulCodePage ) ) ;\n else {\n os2 -> ulCodePage [ 0 ] = 0x80000000 ;\n os2 -> ulCodePage [ 1 ] = 0 ;\n }\n if ( AlreadyMSSymbolArea ( sf , map ) ) {\n first = 0xf0ff ;\n last = 0 ;\n for ( i = 0xf020 ;\n i < map -> enccount && i <= 0xf0ff ;\n ++ i ) if ( ( gid = map -> map [ i ] ) != - 1 && sf -> glyphs [ gid ] != NULL && sf -> glyphs [ gid ] -> ttf_glyph != - 1 ) {\n if ( i < first ) first = i ;\n if ( i > last ) last = i ;\n }\n for ( i = 0 ;\n i < map -> enccount && i <= 255 ;\n ++ i ) if ( ( gid = map -> map [ i ] ) != - 1 && sf -> glyphs [ gid ] != NULL && sf -> glyphs [ gid ] -> ttf_glyph != - 1 ) {\n if ( i + 0xf000 < first ) first = i + 0xf000 ;\n if ( i + 0xf000 > last ) last = i + 0xf000 ;\n }\n os2 -> firstcharindex = first ;\n os2 -> lastcharindex = last ;\n }\n else {\n first = 255 ;\n last = 0 ;\n for ( i = 0 ;\n i < map -> enccount && i <= 255 ;\n ++ i ) if ( ( gid = map -> map [ i ] ) != - 1 && sf -> glyphs [ gid ] != NULL && sf -> glyphs [ gid ] -> ttf_glyph != - 1 ) {\n if ( i < first ) first = i ;\n if ( i > last ) last = i ;\n }\n for ( i = 0xf020 ;\n i < map -> enccount && i <= 0xf0ff ;\n ++ i ) if ( ( gid = map -> map [ i ] ) != - 1 && sf -> glyphs [ gid ] != NULL && sf -> glyphs [ gid ] -> ttf_glyph != - 1 ) {\n if ( i - 0xf000 < first ) first = i - 0xf000 ;\n if ( i - 0xf000 > last ) last = i - 0xf000 ;\n }\n if ( first < ' ' ) first = ' ' ;\n os2 -> firstcharindex = 0xf000 + first ;\n os2 -> lastcharindex = 0xf000 + last ;\n }\n }\n else {\n os2 -> firstcharindex = first ;\n os2 -> lastcharindex = last ;\n if ( sf -> pfminfo . hascodepages ) memcpy ( os2 -> ulCodePage , sf -> pfminfo . codepages , sizeof ( os2 -> ulCodePage ) ) ;\n else OS2FigureCodePages ( sf , os2 -> ulCodePage ) ;\n if ( ! sf -> pfminfo . hascodepages ) if ( ( os2 -> ulCodePage [ 0 ] & ~ ( 1U << 31 ) ) == 0 && os2 -> ulCodePage [ 1 ] == 0 ) os2 -> ulCodePage [ 0 ] |= 1 ;\n }\n if ( os2 -> version >= 2 ) {\n if ( sf -> pfminfo . os2_xheight != 0 ) os2 -> xHeight = sf -> pfminfo . os2_xheight ;\n else {\n double xh = SFXHeight ( sf , at -> gi . layer , true ) ;\n os2 -> xHeight = ( xh >= 0.0 ? xh : 0 ) ;\n }\n if ( sf -> pfminfo . os2_capheight != 0 ) os2 -> capHeight = sf -> pfminfo . os2_capheight ;\n else {\n double caph = SFCapHeight ( sf , at -> gi . layer , true ) ;\n os2 -> capHeight = ( caph >= 0.0 ? caph : 0 ) ;\n }\n os2 -> defChar = 0 ;\n if ( format == ff_otf || format == ff_otfcid ) os2 -> defChar = ' ' ;\n os2 -> breakChar = ' ' ;\n os2 -> maxContext = 1 ;\n }\n if ( os2 -> version >= 3 && os2 -> v3_avgCharWid != 0 ) os2 -> avgCharWid = os2 -> v3_avgCharWid ;\n else if ( os2 -> v1_avgCharWid != 0 ) os2 -> avgCharWid = os2 -> v1_avgCharWid ;\n else if ( os2 -> v3_avgCharWid != 0 ) os2 -> avgCharWid = os2 -> v3_avgCharWid ;\n }"}
{"idx": 11117, "target": 0, "func": "static void dtap_mm_loc_upd_rej ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_FALSE ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_REJ_CAUSE , NULL ) ;\n ELEM_OPT_TLV ( 0x36 , GSM_A_PDU_TYPE_DTAP , DE_MM_TIMER , \" - T3246 value\" ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 11118, "target": 0, "func": "static void transform_add ( TSHttpTxn txnp , TransformTestData * test_data ) {\n TSVConn connp ;\n auto * data = new AppendTransformTestData ;\n data -> test_data = test_data ;\n connp = TSTransformCreate ( transformtest_transform , txnp ) ;\n TSContDataSet ( connp , data ) ;\n if ( connp == nullptr ) {\n SDK_RPRINT ( data -> test_data -> test , \"TSHttpTxnTransform\" , \"\" , TC_FAIL , \"Unable to create Transformation.\" ) ;\n return ;\n }\n TSHttpTxnHookAdd ( txnp , TS_HTTP_RESPONSE_TRANSFORM_HOOK , connp ) ;\n return ;\n }"}
{"idx": 11119, "target": 0, "func": "void pcnet_ioport_writew ( void * opaque , uint32_t addr , uint32_t val ) {\n PCNetState * s = opaque ;\n pcnet_poll_timer ( s ) ;\n # ifdef PCNET_DEBUG_IO printf ( \"pcnet_ioport_writew addr=0x%08x val=0x%04x\\n\" , addr , val ) ;\n # endif if ( ! BCR_DWIO ( s ) ) {\n switch ( addr & 0x0f ) {\n case 0x00 : pcnet_csr_writew ( s , s -> rap , val ) ;\n break ;\n case 0x02 : s -> rap = val & 0x7f ;\n break ;\n case 0x06 : pcnet_bcr_writew ( s , s -> rap , val ) ;\n break ;\n }\n }\n pcnet_update_irq ( s ) ;\n }"}
{"idx": 11120, "target": 0, "func": "static void test_decode ( struct stream_state * stream , enum TestDecodeFatality fatal , const VpxInterface * codec ) {\n vpx_image_t enc_img , dec_img ;\n if ( stream -> mismatch_seen ) return ;\n if ( strcmp ( codec -> name , \"vp8\" ) == 0 ) {\n struct vpx_ref_frame ref_enc , ref_dec ;\n int width , height ;\n width = ( stream -> config . cfg . g_w + 15 ) & ~ 15 ;\n height = ( stream -> config . cfg . g_h + 15 ) & ~ 15 ;\n vpx_img_alloc ( & ref_enc . img , VPX_IMG_FMT_I420 , width , height , 1 ) ;\n enc_img = ref_enc . img ;\n vpx_img_alloc ( & ref_dec . img , VPX_IMG_FMT_I420 , width , height , 1 ) ;\n dec_img = ref_dec . img ;\n ref_enc . frame_type = VP8_LAST_FRAME ;\n ref_dec . frame_type = VP8_LAST_FRAME ;\n vpx_codec_control ( & stream -> encoder , VP8_COPY_REFERENCE , & ref_enc ) ;\n vpx_codec_control ( & stream -> decoder , VP8_COPY_REFERENCE , & ref_dec ) ;\n }\n else {\n struct vp9_ref_frame ref_enc , ref_dec ;\n ref_enc . idx = 0 ;\n ref_dec . idx = 0 ;\n vpx_codec_control ( & stream -> encoder , VP9_GET_REFERENCE , & ref_enc ) ;\n enc_img = ref_enc . img ;\n vpx_codec_control ( & stream -> decoder , VP9_GET_REFERENCE , & ref_dec ) ;\n dec_img = ref_dec . img ;\n # if CONFIG_VP9 && CONFIG_VP9_HIGHBITDEPTH if ( ( enc_img . fmt & VPX_IMG_FMT_HIGHBITDEPTH ) != ( dec_img . fmt & VPX_IMG_FMT_HIGHBITDEPTH ) ) {\n if ( enc_img . fmt & VPX_IMG_FMT_HIGHBITDEPTH ) {\n vpx_img_alloc ( & enc_img , enc_img . fmt - VPX_IMG_FMT_HIGHBITDEPTH , enc_img . d_w , enc_img . d_h , 16 ) ;\n img_cast_16_to_8 ( & enc_img , & ref_enc . img ) ;\n }\n if ( dec_img . fmt & VPX_IMG_FMT_HIGHBITDEPTH ) {\n vpx_img_alloc ( & dec_img , dec_img . fmt - VPX_IMG_FMT_HIGHBITDEPTH , dec_img . d_w , dec_img . d_h , 16 ) ;\n img_cast_16_to_8 ( & dec_img , & ref_dec . img ) ;\n }\n }\n # endif }\n ctx_exit_on_error ( & stream -> encoder , \"Failed to get encoder reference frame\" ) ;\n ctx_exit_on_error ( & stream -> decoder , \"Failed to get decoder reference frame\" ) ;\n if ( ! compare_img ( & enc_img , & dec_img ) ) {\n int y [ 4 ] , u [ 4 ] , v [ 4 ] ;\n # if CONFIG_VP9 && CONFIG_VP9_HIGHBITDEPTH if ( enc_img . fmt & VPX_IMG_FMT_HIGHBITDEPTH ) {\n find_mismatch_high ( & enc_img , & dec_img , y , u , v ) ;\n }\n else {\n find_mismatch ( & enc_img , & dec_img , y , u , v ) ;\n }\n # else find_mismatch ( & enc_img , & dec_img , y , u , v ) ;\n # endif stream -> decoder . err = 1 ;\n warn_or_exit_on_error ( & stream -> decoder , fatal == TEST_DECODE_FATAL , \"Stream %d: Encode/decode mismatch on frame %d at\" \" Y[%d, %d] {\n%d/%d}\n,\" \" U[%d, %d] {\n%d/%d}\n,\" \" V[%d, %d] {\n%d/%d}\n\" , stream -> index , stream -> frames_out , y [ 0 ] , y [ 1 ] , y [ 2 ] , y [ 3 ] , u [ 0 ] , u [ 1 ] , u [ 2 ] , u [ 3 ] , v [ 0 ] , v [ 1 ] , v [ 2 ] , v [ 3 ] ) ;\n stream -> mismatch_seen = stream -> frames_out ;\n }\n vpx_img_free ( & enc_img ) ;\n vpx_img_free ( & dec_img ) ;\n }"}
{"idx": 11121, "target": 0, "func": "static void test_evbuffer ( void ) {\n struct evbuffer * evb = evbuffer_new ( ) ;\n setup_test ( \"Testing Evbuffer: \" ) ;\n evbuffer_add_printf ( evb , \"%s/%d\" , \"hello\" , 1 ) ;\n if ( EVBUFFER_LENGTH ( evb ) == 7 && strcmp ( ( char * ) EVBUFFER_DATA ( evb ) , \"hello/1\" ) == 0 ) test_ok = 1 ;\n evbuffer_free ( evb ) ;\n cleanup_test ( ) ;\n }"}
{"idx": 11122, "target": 0, "func": "static List * expand_function_arguments ( List * args , Oid result_type , HeapTuple func_tuple ) {\n Form_pg_proc funcform = ( Form_pg_proc ) GETSTRUCT ( func_tuple ) ;\n bool has_named_args = false ;\n ListCell * lc ;\n foreach ( lc , args ) {\n Node * arg = ( Node * ) lfirst ( lc ) ;\n if ( IsA ( arg , NamedArgExpr ) ) {\n has_named_args = true ;\n break ;\n }\n }\n if ( has_named_args ) {\n args = reorder_function_arguments ( args , func_tuple ) ;\n recheck_cast_function_args ( args , result_type , func_tuple ) ;\n }\n else if ( list_length ( args ) < funcform -> pronargs ) {\n args = add_function_defaults ( args , func_tuple ) ;\n recheck_cast_function_args ( args , result_type , func_tuple ) ;\n }\n return args ;\n }"}
{"idx": 11123, "target": 0, "func": "static afs_int32 setMax ( struct rx_call * call , afs_int32 aid , afs_int32 gflag , afs_int32 * cid ) {\n afs_int32 code ;\n struct ubik_trans * tt ;\n code = Initdb ( ) ;\n if ( code != PRSUCCESS ) return code ;\n code = ubik_BeginTrans ( dbase , UBIK_WRITETRANS , & tt ) ;\n if ( code ) return code ;\n code = ubik_SetLock ( tt , 1 , 1 , LOCKWRITE ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = read_DbHeader ( tt ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = WhoIsThis ( call , tt , cid ) ;\n if ( code ) ABORT_WITH ( tt , PRPERM ) ;\n if ( ! AccessOK ( tt , * cid , 0 , 0 , 0 ) ) ABORT_WITH ( tt , PRPERM ) ;\n if ( ( ( gflag & PRGRP ) && ( aid > 0 ) ) || ( ! ( gflag & PRGRP ) && ( aid < 0 ) ) ) ABORT_WITH ( tt , PRBADARG ) ;\n code = SetMax ( tt , aid , gflag ) ;\n if ( code != PRSUCCESS ) ABORT_WITH ( tt , code ) ;\n code = ubik_EndTrans ( tt ) ;\n if ( code ) return code ;\n return PRSUCCESS ;\n }"}
{"idx": 11124, "target": 1, "func": "static void final_reordering_syllable ( const hb_ot_shape_plan_t * plan , hb_buffer_t * buffer , unsigned int start , unsigned int end ) {\n const indic_shape_plan_t * indic_plan = ( const indic_shape_plan_t * ) plan -> data ;\n hb_glyph_info_t * info = buffer -> info ;\n if ( indic_plan -> virama_glyph ) {\n unsigned int virama_glyph = indic_plan -> virama_glyph ;\n for ( unsigned int i = start ;\n i < end ;\n i ++ ) if ( info [ i ] . codepoint == virama_glyph && _hb_glyph_info_ligated ( & info [ i ] ) && _hb_glyph_info_multiplied ( & info [ i ] ) ) {\n info [ i ] . indic_category ( ) = OT_H ;\n _hb_glyph_info_clear_ligated_and_multiplied ( & info [ i ] ) ;\n }\n }\n bool try_pref = ! ! indic_plan -> mask_array [ PREF ] ;\n unsigned int base ;\n for ( base = start ;\n base < end ;\n base ++ ) if ( info [ base ] . indic_position ( ) >= POS_BASE_C ) {\n if ( try_pref && base + 1 < end && indic_plan -> config -> pref_len == 2 ) {\n for ( unsigned int i = base + 1 ;\n i < end ;\n i ++ ) if ( ( info [ i ] . mask & indic_plan -> mask_array [ PREF ] ) != 0 ) {\n if ( ! ( _hb_glyph_info_substituted ( & info [ i ] ) && _hb_glyph_info_ligated_and_didnt_multiply ( & info [ i ] ) ) ) {\n base = i ;\n while ( base < end && is_halant_or_coeng ( info [ base ] ) ) base ++ ;\n info [ base ] . indic_position ( ) = POS_BASE_C ;\n try_pref = false ;\n }\n break ;\n }\n }\n if ( start < base && info [ base ] . indic_position ( ) > POS_BASE_C ) base -- ;\n break ;\n }\n if ( base == end && start < base && is_one_of ( info [ base - 1 ] , FLAG ( OT_ZWJ ) ) ) base -- ;\n if ( base < end ) while ( start < base && is_one_of ( info [ base ] , ( FLAG ( OT_N ) | HALANT_OR_COENG_FLAGS ) ) ) base -- ;\n if ( start + 1 < end && start < base ) {\n unsigned int new_pos = base == end ? base - 2 : base - 1 ;\n if ( buffer -> props . script != HB_SCRIPT_MALAYALAM && buffer -> props . script != HB_SCRIPT_TAMIL ) {\n while ( new_pos > start && ! ( is_one_of ( info [ new_pos ] , ( FLAG ( OT_M ) | HALANT_OR_COENG_FLAGS ) ) ) ) new_pos -- ;\n if ( is_halant_or_coeng ( info [ new_pos ] ) && info [ new_pos ] . indic_position ( ) != POS_PRE_M ) {\n if ( new_pos + 1 < end && is_joiner ( info [ new_pos + 1 ] ) ) new_pos ++ ;\n }\n else new_pos = start ;\n }\n if ( start < new_pos && info [ new_pos ] . indic_position ( ) != POS_PRE_M ) {\n for ( unsigned int i = new_pos ;\n i > start ;\n i -- ) if ( info [ i - 1 ] . indic_position ( ) == POS_PRE_M ) {\n unsigned int old_pos = i - 1 ;\n hb_glyph_info_t tmp = info [ old_pos ] ;\n memmove ( & info [ old_pos ] , & info [ old_pos + 1 ] , ( new_pos - old_pos ) * sizeof ( info [ 0 ] ) ) ;\n info [ new_pos ] = tmp ;\n if ( old_pos < base && base <= new_pos ) base -- ;\n buffer -> merge_clusters ( new_pos , MIN ( end , base + 1 ) ) ;\n new_pos -- ;\n }\n }\n else {\n for ( unsigned int i = start ;\n i < base ;\n i ++ ) if ( info [ i ] . indic_position ( ) == POS_PRE_M ) {\n buffer -> merge_clusters ( i , MIN ( end , base + 1 ) ) ;\n break ;\n }\n }\n }\n if ( start + 1 < end && info [ start ] . indic_position ( ) == POS_RA_TO_BECOME_REPH && ( ( info [ start ] . indic_category ( ) == OT_Repha ) ^ _hb_glyph_info_ligated_and_didnt_multiply ( & info [ start ] ) ) ) {\n unsigned int new_reph_pos ;\n reph_position_t reph_pos = indic_plan -> config -> reph_pos ;\n assert ( reph_pos != REPH_POS_DONT_CARE ) ;\n if ( reph_pos == REPH_POS_AFTER_POST ) {\n goto reph_step_5 ;\n }\n {\n new_reph_pos = start + 1 ;\n while ( new_reph_pos < base && ! is_halant_or_coeng ( info [ new_reph_pos ] ) ) new_reph_pos ++ ;\n if ( new_reph_pos < base && is_halant_or_coeng ( info [ new_reph_pos ] ) ) {\n if ( new_reph_pos + 1 < base && is_joiner ( info [ new_reph_pos + 1 ] ) ) new_reph_pos ++ ;\n goto reph_move ;\n }\n }\n if ( reph_pos == REPH_POS_AFTER_MAIN ) {\n new_reph_pos = base ;\n while ( new_reph_pos + 1 < end && info [ new_reph_pos + 1 ] . indic_position ( ) <= POS_AFTER_MAIN ) new_reph_pos ++ ;\n if ( new_reph_pos < end ) goto reph_move ;\n }\n if ( reph_pos == REPH_POS_AFTER_SUB ) {\n new_reph_pos = base ;\n while ( new_reph_pos < end && ! ( FLAG ( info [ new_reph_pos + 1 ] . indic_position ( ) ) & ( FLAG ( POS_POST_C ) | FLAG ( POS_AFTER_POST ) | FLAG ( POS_SMVD ) ) ) ) new_reph_pos ++ ;\n if ( new_reph_pos < end ) goto reph_move ;\n }\n reph_step_5 : {\n new_reph_pos = start + 1 ;\n while ( new_reph_pos < base && ! is_halant_or_coeng ( info [ new_reph_pos ] ) ) new_reph_pos ++ ;\n if ( new_reph_pos < base && is_halant_or_coeng ( info [ new_reph_pos ] ) ) {\n if ( new_reph_pos + 1 < base && is_joiner ( info [ new_reph_pos + 1 ] ) ) new_reph_pos ++ ;\n goto reph_move ;\n }\n }\n {\n new_reph_pos = end - 1 ;\n while ( new_reph_pos > start && info [ new_reph_pos ] . indic_position ( ) == POS_SMVD ) new_reph_pos -- ;\n if ( ! hb_options ( ) . uniscribe_bug_compatible && unlikely ( is_halant_or_coeng ( info [ new_reph_pos ] ) ) ) {\n for ( unsigned int i = base + 1 ;\n i < new_reph_pos ;\n i ++ ) if ( info [ i ] . indic_category ( ) == OT_M ) {\n new_reph_pos -- ;\n }\n }\n goto reph_move ;\n }\n reph_move : {\n buffer -> merge_clusters ( start , new_reph_pos + 1 ) ;\n hb_glyph_info_t reph = info [ start ] ;\n memmove ( & info [ start ] , & info [ start + 1 ] , ( new_reph_pos - start ) * sizeof ( info [ 0 ] ) ) ;\n info [ new_reph_pos ] = reph ;\n if ( start < base && base <= new_reph_pos ) base -- ;\n }\n }\n if ( try_pref && base + 1 < end ) {\n unsigned int pref_len = indic_plan -> config -> pref_len ;\n for ( unsigned int i = base + 1 ;\n i < end ;\n i ++ ) if ( ( info [ i ] . mask & indic_plan -> mask_array [ PREF ] ) != 0 ) {\n if ( _hb_glyph_info_substituted ( & info [ i ] ) && ( ( pref_len == 1 ) ^ _hb_glyph_info_ligated_and_didnt_multiply ( & info [ i ] ) ) ) {\n unsigned int new_pos = base ;\n if ( buffer -> props . script != HB_SCRIPT_MALAYALAM && buffer -> props . script != HB_SCRIPT_TAMIL ) {\n while ( new_pos > start && ! ( is_one_of ( info [ new_pos - 1 ] , FLAG ( OT_M ) | HALANT_OR_COENG_FLAGS ) ) ) new_pos -- ;\n if ( new_pos > start && info [ new_pos - 1 ] . indic_category ( ) == OT_M ) {\n unsigned int old_pos = i ;\n for ( unsigned int i = base + 1 ;\n i < old_pos ;\n i ++ ) if ( info [ i ] . indic_category ( ) == OT_M ) {\n new_pos -- ;\n break ;\n }\n }\n }\n if ( new_pos > start && is_halant_or_coeng ( info [ new_pos - 1 ] ) ) {\n if ( new_pos < end && is_joiner ( info [ new_pos ] ) ) new_pos ++ ;\n }\n {\n unsigned int old_pos = i ;\n buffer -> merge_clusters ( new_pos , old_pos + 1 ) ;\n hb_glyph_info_t tmp = info [ old_pos ] ;\n memmove ( & info [ new_pos + 1 ] , & info [ new_pos ] , ( old_pos - new_pos ) * sizeof ( info [ 0 ] ) ) ;\n info [ new_pos ] = tmp ;\n if ( new_pos <= base && base < old_pos ) base ++ ;\n }\n }\n break ;\n }\n }\n if ( info [ start ] . indic_position ( ) == POS_PRE_M && ( ! start || ! ( FLAG ( _hb_glyph_info_get_general_category ( & info [ start - 1 ] ) ) & FLAG_RANGE ( HB_UNICODE_GENERAL_CATEGORY_FORMAT , HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK ) ) ) ) info [ start ] . mask |= indic_plan -> mask_array [ INIT ] ;\n if ( hb_options ( ) . uniscribe_bug_compatible ) {\n switch ( ( hb_tag_t ) plan -> props . script ) {\n case HB_SCRIPT_TAMIL : case HB_SCRIPT_SINHALA : break ;\n default : buffer -> merge_clusters ( start , end ) ;\n break ;\n }\n }\n }"}
{"idx": 11125, "target": 0, "func": "static void _hb_ ## name ## _destroy ( hb_ ## name ## _t * l ) {\n free ( l ) ;\n }\n HB_DEFINE_BOXED_TYPE ( name , _hb_ ## name ## _reference , _hb_ ## name ## _destroy ) ;\n HB_DEFINE_OBJECT_TYPE ( buffer ) HB_DEFINE_OBJECT_TYPE ( blob ) HB_DEFINE_OBJECT_TYPE ( face ) HB_DEFINE_OBJECT_TYPE ( font ) HB_DEFINE_OBJECT_TYPE ( font_funcs ) HB_DEFINE_OBJECT_TYPE ( set ) HB_DEFINE_OBJECT_TYPE ( shape_plan ) HB_DEFINE_OBJECT_TYPE ( unicode_funcs ) HB_DEFINE_VALUE_TYPE ( feature )"}
{"idx": 11126, "target": 0, "func": "int TSHttpTxnClientRespHdrBytesGet ( TSHttpTxn txnp ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n return sm -> client_response_hdr_bytes ;\n }"}
{"idx": 11127, "target": 0, "func": "static int astream_read_next ( struct attachment_istream * astream , bool * retry_r ) {\n struct istream_private * stream = & astream -> istream ;\n struct message_block block ;\n size_t old_size , new_size ;\n const char * error ;\n int ret ;\n * retry_r = FALSE ;\n if ( stream -> pos - stream -> skip >= i_stream_get_max_buffer_size ( & stream -> istream ) ) return - 2 ;\n old_size = stream -> pos - stream -> skip ;\n switch ( message_parser_parse_next_block ( astream -> parser , & block ) ) {\n case - 1 : ret = astream_end_of_part ( astream , & error ) ;\n if ( ret > 0 ) {\n new_size = stream -> pos - stream -> skip ;\n return new_size - old_size ;\n }\n stream -> istream . eof = TRUE ;\n stream -> istream . stream_errno = stream -> parent -> stream_errno ;\n if ( ret < 0 ) {\n io_stream_set_error ( & stream -> iostream , \"%s\" , error ) ;\n stream -> istream . stream_errno = EIO ;\n }\n astream -> cur_part = NULL ;\n return - 1 ;\n case 0 : return 0 ;\n default : break ;\n }\n if ( block . part != astream -> cur_part && astream -> cur_part != NULL ) {\n if ( astream_end_of_part ( astream , & error ) < 0 ) {\n io_stream_set_error ( & stream -> iostream , \"%s\" , error ) ;\n stream -> istream . stream_errno = EIO ;\n return - 1 ;\n }\n }\n astream -> cur_part = block . part ;\n if ( block . hdr != NULL ) {\n astream_parse_header ( astream , block . hdr ) ;\n }\n else if ( block . size == 0 ) {\n if ( astream_want_attachment ( astream , block . part ) ) {\n astream -> part . state = MAIL_ATTACHMENT_STATE_MAYBE ;\n astream -> part . start_offset = stream -> parent -> v_offset ;\n }\n }\n else {\n astream_add_body ( astream , & block ) ;\n }\n new_size = stream -> pos - stream -> skip ;\n * retry_r = new_size == old_size ;\n return new_size - old_size ;\n }"}
{"idx": 11128, "target": 0, "func": "int qemuMonitorTextCloseFileHandle ( qemuMonitorPtr mon , const char * fdname ) {\n char * cmd ;\n char * reply = NULL ;\n int ret = - 1 ;\n if ( virAsprintf ( & cmd , \"closefd %s\" , fdname ) < 0 ) {\n virReportOOMError ( ) ;\n return - 1 ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"failed to close fd in qemu with '%s'\" ) , cmd ) ;\n goto cleanup ;\n }\n if ( strstr ( reply , \"unknown command:\" ) ) {\n qemuReportError ( VIR_ERR_OPERATION_INVALID , _ ( \"qemu does not support closing of file handles: %s\" ) , reply ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( cmd ) ;\n VIR_FREE ( reply ) ;\n return ret ;\n }"}
{"idx": 11129, "target": 0, "func": "void vp9_decoder_remove ( VP9Decoder * pbi ) {\n VP9_COMMON * const cm = & pbi -> common ;\n int i ;\n vp9_get_worker_interface ( ) -> end ( & pbi -> lf_worker ) ;\n vpx_free ( pbi -> lf_worker . data1 ) ;\n vpx_free ( pbi -> tile_data ) ;\n for ( i = 0 ;\n i < pbi -> num_tile_workers ;\n ++ i ) {\n VP9Worker * const worker = & pbi -> tile_workers [ i ] ;\n vp9_get_worker_interface ( ) -> end ( worker ) ;\n vpx_free ( worker -> data1 ) ;\n vpx_free ( worker -> data2 ) ;\n }\n vpx_free ( pbi -> tile_workers ) ;\n if ( pbi -> num_tile_workers > 0 ) {\n vp9_loop_filter_dealloc ( & pbi -> lf_row_sync ) ;\n }\n vp9_remove_common ( cm ) ;\n vpx_free ( pbi ) ;\n }"}
{"idx": 11130, "target": 1, "func": "static gint detect_version ( wtap * wth , int * err , gchar * * err_info ) {\n gint bytes_read ;\n guint16 payload_length ;\n guint16 try_header_size ;\n guint8 * buffer ;\n gint64 file_offset ;\n guint32 log_length ;\n guint32 tag_length ;\n guint16 tmp ;\n file_offset = file_tell ( wth -> fh ) ;\n bytes_read = file_read ( & tmp , 2 , wth -> fh ) ;\n if ( bytes_read != 2 ) {\n * err = file_error ( wth -> fh , err_info ) ;\n if ( * err == 0 && bytes_read != 0 ) * err = WTAP_ERR_SHORT_READ ;\n return - 1 ;\n }\n payload_length = pletoh16 ( & tmp ) ;\n bytes_read = file_read ( & tmp , 2 , wth -> fh ) ;\n if ( bytes_read != 2 ) {\n * err = file_error ( wth -> fh , err_info ) ;\n if ( * err == 0 && bytes_read != 0 ) * err = WTAP_ERR_SHORT_READ ;\n return - 1 ;\n }\n try_header_size = pletoh16 ( & tmp ) ;\n buffer = ( guint8 * ) g_malloc ( 5 * 4 + payload_length ) ;\n bytes_read = file_read ( buffer , 5 * 4 + payload_length , wth -> fh ) ;\n if ( bytes_read != 5 * 4 + payload_length ) {\n if ( bytes_read != 4 * 4 + payload_length ) {\n * err = file_error ( wth -> fh , err_info ) ;\n if ( * err == 0 && bytes_read != 0 ) * err = WTAP_ERR_SHORT_READ ;\n g_free ( buffer ) ;\n return - 1 ;\n }\n }\n if ( try_header_size == 24 ) {\n tag_length = ( guint32 ) strlen ( buffer + 5 * 4 + 1 ) + 1 ;\n log_length = ( guint32 ) strlen ( buffer + 5 * 4 + 1 + tag_length ) + 1 ;\n if ( payload_length == 1 + tag_length + log_length ) {\n g_free ( buffer ) ;\n return 2 ;\n }\n }\n tag_length = ( guint32 ) strlen ( buffer + 4 * 4 + 1 ) + 1 ;\n log_length = ( guint32 ) strlen ( buffer + 4 * 4 + 1 + tag_length ) + 1 ;\n if ( payload_length == 1 + tag_length + log_length ) {\n if ( file_seek ( wth -> fh , file_offset + 4 * 4 + 1 + tag_length + log_length , SEEK_SET , err ) == - 1 ) {\n g_free ( buffer ) ;\n return - 1 ;\n }\n g_free ( buffer ) ;\n return 1 ;\n }\n g_free ( buffer ) ;\n return 0 ;\n }"}
{"idx": 11131, "target": 0, "func": "static void decode_transform_coeffs ( AC3DecodeContext * s , int blk ) {\n int ch , end ;\n int got_cplchan = 0 ;\n mant_groups m ;\n m . b1 = m . b2 = m . b4 = 0 ;\n for ( ch = 1 ;\n ch <= s -> channels ;\n ch ++ ) {\n decode_transform_coeffs_ch ( s , blk , ch , & m ) ;\n if ( s -> channel_in_cpl [ ch ] ) {\n if ( ! got_cplchan ) {\n decode_transform_coeffs_ch ( s , blk , CPL_CH , & m ) ;\n calc_transform_coeffs_cpl ( s ) ;\n got_cplchan = 1 ;\n }\n end = s -> end_freq [ CPL_CH ] ;\n }\n else {\n end = s -> end_freq [ ch ] ;\n }\n do s -> fixed_coeffs [ ch ] [ end ] = 0 ;\n while ( ++ end < 256 ) ;\n }\n remove_dithering ( s ) ;\n }"}
{"idx": 11132, "target": 0, "func": "static int dissect_usb_video_frame ( proto_tree * tree , tvbuff_t * tvb , int offset , guint8 subtype ) {\n static const int * capability_bits [ ] = {\n & hf_usb_vid_frame_stills_supported , & hf_usb_vid_frame_fixed_frame_rate , NULL }\n ;\n proto_item * desc_item ;\n guint8 bFrameIntervalType ;\n guint8 frame_index ;\n guint16 frame_width ;\n guint16 frame_height ;\n frame_index = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_usb_vid_frame_index , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_usb_vid_frame_capabilities , ett_frame_capability_flags , capability_bits , ENC_NA ) ;\n offset ++ ;\n proto_tree_add_item ( tree , hf_usb_vid_frame_width , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_usb_vid_frame_height , tvb , offset + 2 , 2 , ENC_LITTLE_ENDIAN ) ;\n frame_width = tvb_get_letohs ( tvb , offset ) ;\n frame_height = tvb_get_letohs ( tvb , offset + 2 ) ;\n desc_item = proto_tree_get_parent ( tree ) ;\n proto_item_append_text ( desc_item , \" (Index %2u): %4u x %4u\" , frame_index , frame_width , frame_height ) ;\n proto_tree_add_item ( tree , hf_usb_vid_frame_min_bit_rate , tvb , offset + 4 , 4 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_usb_vid_frame_max_bit_rate , tvb , offset + 8 , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 12 ;\n if ( subtype != VS_FRAME_FRAME_BASED ) {\n proto_tree_add_item ( tree , hf_usb_vid_frame_max_frame_sz , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n }\n proto_tree_add_item ( tree , hf_usb_vid_frame_default_interval , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n bFrameIntervalType = tvb_get_guint8 ( tvb , offset ) ;\n if ( bFrameIntervalType == 0 ) {\n proto_tree_add_uint_format_value ( tree , hf_usb_vid_frame_interval_type , tvb , offset , 1 , bFrameIntervalType , \"Continuous (0)\" ) ;\n offset ++ ;\n if ( subtype == VS_FRAME_FRAME_BASED ) {\n proto_tree_add_item ( tree , hf_usb_vid_frame_bytes_per_line , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n }\n proto_tree_add_item ( tree , hf_usb_vid_frame_min_interval , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_usb_vid_frame_max_interval , tvb , offset + 4 , 4 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_usb_vid_frame_step_interval , tvb , offset + 8 , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 12 ;\n }\n else {\n guint8 i ;\n proto_tree_add_uint_format_value ( tree , hf_usb_vid_frame_interval_type , tvb , offset , 1 , bFrameIntervalType , \"Discrete (%u choice%s)\" , bFrameIntervalType , ( bFrameIntervalType > 1 ) ? \"s\" : \"\" ) ;\n offset ++ ;\n if ( subtype == VS_FRAME_FRAME_BASED ) {\n proto_tree_add_item ( tree , hf_usb_vid_frame_bytes_per_line , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n }\n for ( i = 0 ;\n i < bFrameIntervalType ;\n ++ i ) {\n proto_tree_add_item ( tree , hf_usb_vid_frame_interval , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n }\n }\n return offset ;\n }"}
{"idx": 11133, "target": 0, "func": "void vpx_img_free ( vpx_image_t * img ) {\n if ( img ) {\n if ( img -> img_data && img -> img_data_owner ) img_buf_free ( img -> img_data ) ;\n if ( img -> self_allocd ) free ( img ) ;\n }\n }"}
{"idx": 11134, "target": 0, "func": "static void truemotion1_decode_24bit ( TrueMotion1Context * s ) {\n int y ;\n int pixels_left ;\n unsigned int predictor_pair ;\n unsigned int horiz_pred ;\n unsigned int * vert_pred ;\n unsigned int * current_pixel_pair ;\n unsigned char * current_line = s -> frame . data [ 0 ] ;\n int keyframe = s -> flags & FLAG_KEYFRAME ;\n const unsigned char * mb_change_bits = s -> mb_change_bits ;\n unsigned char mb_change_byte ;\n unsigned char mb_change_byte_mask ;\n int mb_change_index ;\n int index_stream_index = 0 ;\n int index ;\n memset ( s -> vert_pred , 0 , s -> avctx -> width * sizeof ( unsigned int ) ) ;\n GET_NEXT_INDEX ( ) ;\n for ( y = 0 ;\n y < s -> avctx -> height ;\n y ++ ) {\n horiz_pred = 0 ;\n current_pixel_pair = ( unsigned int * ) current_line ;\n vert_pred = s -> vert_pred ;\n mb_change_index = 0 ;\n mb_change_byte = mb_change_bits [ mb_change_index ++ ] ;\n mb_change_byte_mask = 0x01 ;\n pixels_left = s -> avctx -> width ;\n while ( pixels_left > 0 ) {\n if ( keyframe || ( ( mb_change_byte & mb_change_byte_mask ) == 0 ) ) {\n switch ( y & 3 ) {\n case 0 : if ( s -> block_width == 2 ) {\n APPLY_C_PREDICTOR_24 ( ) ;\n APPLY_Y_PREDICTOR_24 ( ) ;\n OUTPUT_PIXEL_PAIR ( ) ;\n APPLY_C_PREDICTOR_24 ( ) ;\n APPLY_Y_PREDICTOR_24 ( ) ;\n OUTPUT_PIXEL_PAIR ( ) ;\n }\n else {\n APPLY_C_PREDICTOR_24 ( ) ;\n APPLY_Y_PREDICTOR_24 ( ) ;\n OUTPUT_PIXEL_PAIR ( ) ;\n APPLY_Y_PREDICTOR_24 ( ) ;\n OUTPUT_PIXEL_PAIR ( ) ;\n }\n break ;\n case 1 : case 3 : APPLY_Y_PREDICTOR_24 ( ) ;\n OUTPUT_PIXEL_PAIR ( ) ;\n APPLY_Y_PREDICTOR_24 ( ) ;\n OUTPUT_PIXEL_PAIR ( ) ;\n break ;\n case 2 : if ( s -> block_type == BLOCK_2x2 ) {\n APPLY_C_PREDICTOR_24 ( ) ;\n APPLY_Y_PREDICTOR_24 ( ) ;\n OUTPUT_PIXEL_PAIR ( ) ;\n APPLY_C_PREDICTOR_24 ( ) ;\n APPLY_Y_PREDICTOR_24 ( ) ;\n OUTPUT_PIXEL_PAIR ( ) ;\n }\n else if ( s -> block_type == BLOCK_4x2 ) {\n APPLY_C_PREDICTOR_24 ( ) ;\n APPLY_Y_PREDICTOR_24 ( ) ;\n OUTPUT_PIXEL_PAIR ( ) ;\n APPLY_Y_PREDICTOR_24 ( ) ;\n OUTPUT_PIXEL_PAIR ( ) ;\n }\n else {\n APPLY_Y_PREDICTOR_24 ( ) ;\n OUTPUT_PIXEL_PAIR ( ) ;\n APPLY_Y_PREDICTOR_24 ( ) ;\n OUTPUT_PIXEL_PAIR ( ) ;\n }\n break ;\n }\n }\n else {\n * vert_pred ++ = * current_pixel_pair ++ ;\n horiz_pred = * current_pixel_pair - * vert_pred ;\n * vert_pred ++ = * current_pixel_pair ++ ;\n }\n if ( ! keyframe ) {\n mb_change_byte_mask <<= 1 ;\n if ( ! mb_change_byte_mask ) {\n mb_change_byte = mb_change_bits [ mb_change_index ++ ] ;\n mb_change_byte_mask = 0x01 ;\n }\n }\n pixels_left -= 2 ;\n }\n if ( ( ( y + 1 ) & 3 ) == 0 ) mb_change_bits += s -> mb_change_bits_row_size ;\n current_line += s -> frame . linesize [ 0 ] ;\n }\n }"}
{"idx": 11135, "target": 0, "func": "const char * keyring_get_resource_name ( KEYRING_HANDLE hd ) {\n if ( ! hd || ! hd -> resource ) return NULL ;\n return hd -> resource -> fname ;\n }"}
{"idx": 11136, "target": 0, "func": "void gx_device_finalize ( const gs_memory_t * cmem , void * vptr ) {\n gx_device * const dev = ( gx_device * ) vptr ;\n ( void ) cmem ;\n if ( dev -> icc_struct != NULL ) {\n rc_decrement ( dev -> icc_struct , \"gx_device_finalize(icc_profile)\" ) ;\n }\n if ( dev -> finalize ) dev -> finalize ( dev ) ;\n if ( dev -> child ) dev -> child -> parent = dev -> parent ;\n if ( dev -> parent ) dev -> parent -> child = dev -> child ;\n if ( dev -> PageList ) {\n rc_decrement ( dev -> PageList , \"gx_device_finalize(PageList)\" ) ;\n dev -> PageList = 0 ;\n }\n discard ( gs_closedevice ( dev ) ) ;\n if ( dev -> stype_is_dynamic ) gs_free_const_object ( dev -> memory -> non_gc_memory , dev -> stype , \"gx_device_finalize\" ) ;\n # ifdef DEBUG if ( gs_debug_c ( '^' ) ) dev -> rc . memory = NULL ;\n # endif }"}
{"idx": 11137, "target": 1, "func": "static inline bool is_one_of ( const hb_glyph_info_t & info , unsigned int flags ) {\n if ( _hb_glyph_info_ligated ( & info ) ) return false ;\n return ! ! ( FLAG ( info . indic_category ( ) ) & flags ) ;\n }"}
{"idx": 11138, "target": 0, "func": "struct qtmd_stream * qtmd_init ( struct mspack_system * system , struct mspack_file * input , struct mspack_file * output , int window_bits , int input_buffer_size ) {\n unsigned int window_size = 1 << window_bits ;\n struct qtmd_stream * qtm ;\n int i ;\n if ( ! system ) return NULL ;\n if ( window_bits < 10 || window_bits > 21 ) return NULL ;\n input_buffer_size = ( input_buffer_size + 1 ) & - 2 ;\n if ( input_buffer_size < 2 ) return NULL ;\n if ( ! ( qtm = ( struct qtmd_stream * ) system -> alloc ( system , sizeof ( struct qtmd_stream ) ) ) ) {\n return NULL ;\n }\n qtm -> window = ( unsigned char * ) system -> alloc ( system , ( size_t ) window_size ) ;\n qtm -> inbuf = ( unsigned char * ) system -> alloc ( system , ( size_t ) input_buffer_size ) ;\n if ( ! qtm -> window || ! qtm -> inbuf ) {\n system -> free ( qtm -> window ) ;\n system -> free ( qtm -> inbuf ) ;\n system -> free ( qtm ) ;\n return NULL ;\n }\n qtm -> sys = system ;\n qtm -> input = input ;\n qtm -> output = output ;\n qtm -> inbuf_size = input_buffer_size ;\n qtm -> window_size = window_size ;\n qtm -> window_posn = 0 ;\n qtm -> frame_todo = QTM_FRAME_SIZE ;\n qtm -> header_read = 0 ;\n qtm -> error = MSPACK_ERR_OK ;\n qtm -> i_ptr = qtm -> i_end = & qtm -> inbuf [ 0 ] ;\n qtm -> o_ptr = qtm -> o_end = & qtm -> window [ 0 ] ;\n qtm -> input_end = 0 ;\n qtm -> bits_left = 0 ;\n qtm -> bit_buffer = 0 ;\n i = window_bits * 2 ;\n qtmd_init_model ( & qtm -> model0 , & qtm -> m0sym [ 0 ] , 0 , 64 ) ;\n qtmd_init_model ( & qtm -> model1 , & qtm -> m1sym [ 0 ] , 64 , 64 ) ;\n qtmd_init_model ( & qtm -> model2 , & qtm -> m2sym [ 0 ] , 128 , 64 ) ;\n qtmd_init_model ( & qtm -> model3 , & qtm -> m3sym [ 0 ] , 192 , 64 ) ;\n qtmd_init_model ( & qtm -> model4 , & qtm -> m4sym [ 0 ] , 0 , ( i > 24 ) ? 24 : i ) ;\n qtmd_init_model ( & qtm -> model5 , & qtm -> m5sym [ 0 ] , 0 , ( i > 36 ) ? 36 : i ) ;\n qtmd_init_model ( & qtm -> model6 , & qtm -> m6sym [ 0 ] , 0 , i ) ;\n qtmd_init_model ( & qtm -> model6len , & qtm -> m6lsym [ 0 ] , 0 , 27 ) ;\n qtmd_init_model ( & qtm -> model7 , & qtm -> m7sym [ 0 ] , 0 , 7 ) ;\n return qtm ;\n }"}
{"idx": 11139, "target": 1, "func": "static void initial_reordering_non_myanmar_cluster ( const hb_ot_shape_plan_t * plan HB_UNUSED , hb_face_t * face HB_UNUSED , hb_buffer_t * buffer HB_UNUSED , unsigned int start HB_UNUSED , unsigned int end HB_UNUSED ) {\n }"}
{"idx": 11140, "target": 0, "func": "static long file_seek ( jas_stream_obj_t * obj , long offset , int origin ) {\n jas_stream_fileobj_t * fileobj = JAS_CAST ( jas_stream_fileobj_t * , obj ) ;\n return lseek ( fileobj -> fd , offset , origin ) ;\n }"}
{"idx": 11141, "target": 0, "func": "static int xmlLinkCompare ( const void * data0 , const void * data1 ) {\n if ( data0 < data1 ) return ( - 1 ) ;\n else if ( data0 == data1 ) return ( 0 ) ;\n return ( 1 ) ;\n }"}
{"idx": 11142, "target": 0, "func": "static void dissect_rsvp_hop ( proto_item * ti , packet_info * pinfo , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int type ) {\n int offset2 = offset + 4 ;\n switch ( type ) {\n case 1 : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"1 - IPv4\" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_hop_neighbor_address_ipv4 , tvb , offset2 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_hop_logical_interface , tvb , offset2 + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_set_text ( ti , \"HOP: IPv4, %s\" , tvb_ip_to_str ( tvb , offset2 ) ) ;\n break ;\n case 2 : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"2 - IPv6\" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_hop_neighbor_address_ipv6 , tvb , offset2 , 16 , ENC_NA ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_hop_logical_interface , tvb , offset2 + 16 , 4 , ENC_BIG_ENDIAN ) ;\n break ;\n case 3 : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"3 - IPv4 IF-ID\" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_hop_neighbor_address_ipv4 , tvb , offset2 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_hop_logical_interface , tvb , offset2 + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_set_text ( ti , \"HOP: IPv4 IF-ID. Control IPv4: %s. \" , tvb_ip_to_str ( tvb , offset2 ) ) ;\n dissect_rsvp_ifid_tlv ( ti , pinfo , rsvp_object_tree , tvb , offset + 12 , obj_length - 12 , TREE ( TT_HOP_SUBOBJ ) ) ;\n break ;\n case 4 : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"4 - IPv6 IF-ID\" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_hop_neighbor_address_ipv6 , tvb , offset2 , 16 , ENC_NA ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_hop_logical_interface , tvb , offset2 + 16 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_set_text ( ti , \"HOP: IPv6 IF-ID. Control IPv6: %s. \" , tvb_ip6_to_str ( tvb , offset2 ) ) ;\n dissect_rsvp_ifid_tlv ( ti , pinfo , rsvp_object_tree , tvb , offset + 24 , obj_length - 24 , TREE ( TT_HOP_SUBOBJ ) ) ;\n break ;\n default : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"Unknown (%u)\" , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_hop_data , tvb , offset2 , obj_length - 4 , ENC_NA ) ;\n break ;\n }\n }"}
{"idx": 11143, "target": 0, "func": "static PyObject * string_rindex ( PyStringObject * self , PyObject * args ) {\n Py_ssize_t result = string_find_internal ( self , args , - 1 ) ;\n if ( result == - 2 ) return NULL ;\n if ( result == - 1 ) {\n PyErr_SetString ( PyExc_ValueError , \"substring not found\" ) ;\n return NULL ;\n }\n return PyInt_FromSsize_t ( result ) ;\n }"}
{"idx": 11144, "target": 0, "func": "static void callOnErr ( const relpTcp_t * __restrict__ const pThis , char * __restrict__ const emsg , const relpRetVal ecode ) {\n char objinfo [ 1024 ] ;\n pThis -> pEngine -> dbgprint ( \"librelp: generic error: ecode %d, \" \"emsg '%s'\\n\" , ecode , emsg ) ;\n if ( pThis -> pEngine -> onErr != NULL ) {\n if ( pThis -> pSrv == NULL ) {\n snprintf ( objinfo , sizeof ( objinfo ) , \"conn to srvr %s:%s\" , pThis -> pClt -> pSess -> srvAddr , pThis -> pClt -> pSess -> srvPort ) ;\n }\n else if ( pThis -> pRemHostIP == NULL ) {\n snprintf ( objinfo , sizeof ( objinfo ) , \"lstn %s\" , pThis -> pSrv -> pLstnPort ) ;\n }\n else {\n snprintf ( objinfo , sizeof ( objinfo ) , \"lstn %s: conn to clt %s/%s\" , pThis -> pSrv -> pLstnPort , pThis -> pRemHostIP , pThis -> pRemHostName ) ;\n }\n objinfo [ sizeof ( objinfo ) - 1 ] = '\\0' ;\n pThis -> pEngine -> onErr ( pThis -> pUsr , objinfo , emsg , ecode ) ;\n }\n }"}
{"idx": 11145, "target": 1, "func": "static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING )"}
{"idx": 11146, "target": 1, "func": "const char * SSL_state_string_long ( const SSL * s ) {\n const char * str ;\n switch ( s -> state ) {\n case SSL_ST_BEFORE : str = \"before SSL initialization\" ;\n break ;\n case SSL_ST_ACCEPT : str = \"before accept initialization\" ;\n break ;\n case SSL_ST_CONNECT : str = \"before connect initialization\" ;\n break ;\n case SSL_ST_OK : str = \"SSL negotiation finished successfully\" ;\n break ;\n case SSL_ST_RENEGOTIATE : str = \"SSL renegotiate ciphers\" ;\n break ;\n case SSL_ST_BEFORE | SSL_ST_CONNECT : str = \"before/connect initialization\" ;\n break ;\n case SSL_ST_OK | SSL_ST_CONNECT : str = \"ok/connect SSL initialization\" ;\n break ;\n case SSL_ST_BEFORE | SSL_ST_ACCEPT : str = \"before/accept initialization\" ;\n break ;\n case SSL_ST_OK | SSL_ST_ACCEPT : str = \"ok/accept SSL initialization\" ;\n break ;\n # ifndef OPENSSL_NO_SSL2 case SSL2_ST_CLIENT_START_ENCRYPTION : str = \"SSLv2 client start encryption\" ;\n break ;\n case SSL2_ST_SERVER_START_ENCRYPTION : str = \"SSLv2 server start encryption\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_HELLO_A : str = \"SSLv2 write client hello A\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_HELLO_B : str = \"SSLv2 write client hello B\" ;\n break ;\n case SSL2_ST_GET_SERVER_HELLO_A : str = \"SSLv2 read server hello A\" ;\n break ;\n case SSL2_ST_GET_SERVER_HELLO_B : str = \"SSLv2 read server hello B\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_MASTER_KEY_A : str = \"SSLv2 write client master key A\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_MASTER_KEY_B : str = \"SSLv2 write client master key B\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_FINISHED_A : str = \"SSLv2 write client finished A\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_FINISHED_B : str = \"SSLv2 write client finished B\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_CERTIFICATE_A : str = \"SSLv2 write client certificate A\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_CERTIFICATE_B : str = \"SSLv2 write client certificate B\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_CERTIFICATE_C : str = \"SSLv2 write client certificate C\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_CERTIFICATE_D : str = \"SSLv2 write client certificate D\" ;\n break ;\n case SSL2_ST_GET_SERVER_VERIFY_A : str = \"SSLv2 read server verify A\" ;\n break ;\n case SSL2_ST_GET_SERVER_VERIFY_B : str = \"SSLv2 read server verify B\" ;\n break ;\n case SSL2_ST_GET_SERVER_FINISHED_A : str = \"SSLv2 read server finished A\" ;\n break ;\n case SSL2_ST_GET_SERVER_FINISHED_B : str = \"SSLv2 read server finished B\" ;\n break ;\n case SSL2_ST_GET_CLIENT_HELLO_A : str = \"SSLv2 read client hello A\" ;\n break ;\n case SSL2_ST_GET_CLIENT_HELLO_B : str = \"SSLv2 read client hello B\" ;\n break ;\n case SSL2_ST_GET_CLIENT_HELLO_C : str = \"SSLv2 read client hello C\" ;\n break ;\n case SSL2_ST_SEND_SERVER_HELLO_A : str = \"SSLv2 write server hello A\" ;\n break ;\n case SSL2_ST_SEND_SERVER_HELLO_B : str = \"SSLv2 write server hello B\" ;\n break ;\n case SSL2_ST_GET_CLIENT_MASTER_KEY_A : str = \"SSLv2 read client master key A\" ;\n break ;\n case SSL2_ST_GET_CLIENT_MASTER_KEY_B : str = \"SSLv2 read client master key B\" ;\n break ;\n case SSL2_ST_SEND_SERVER_VERIFY_A : str = \"SSLv2 write server verify A\" ;\n break ;\n case SSL2_ST_SEND_SERVER_VERIFY_B : str = \"SSLv2 write server verify B\" ;\n break ;\n case SSL2_ST_SEND_SERVER_VERIFY_C : str = \"SSLv2 write server verify C\" ;\n break ;\n case SSL2_ST_GET_CLIENT_FINISHED_A : str = \"SSLv2 read client finished A\" ;\n break ;\n case SSL2_ST_GET_CLIENT_FINISHED_B : str = \"SSLv2 read client finished B\" ;\n break ;\n case SSL2_ST_SEND_SERVER_FINISHED_A : str = \"SSLv2 write server finished A\" ;\n break ;\n case SSL2_ST_SEND_SERVER_FINISHED_B : str = \"SSLv2 write server finished B\" ;\n break ;\n case SSL2_ST_SEND_REQUEST_CERTIFICATE_A : str = \"SSLv2 write request certificate A\" ;\n break ;\n case SSL2_ST_SEND_REQUEST_CERTIFICATE_B : str = \"SSLv2 write request certificate B\" ;\n break ;\n case SSL2_ST_SEND_REQUEST_CERTIFICATE_C : str = \"SSLv2 write request certificate C\" ;\n break ;\n case SSL2_ST_SEND_REQUEST_CERTIFICATE_D : str = \"SSLv2 write request certificate D\" ;\n break ;\n case SSL2_ST_X509_GET_SERVER_CERTIFICATE : str = \"SSLv2 X509 read server certificate\" ;\n break ;\n case SSL2_ST_X509_GET_CLIENT_CERTIFICATE : str = \"SSLv2 X509 read client certificate\" ;\n break ;\n # endif # ifndef OPENSSL_NO_SSL3 case SSL3_ST_CW_CLNT_HELLO_A : str = \"SSLv3 write client hello A\" ;\n break ;\n case SSL3_ST_CW_CLNT_HELLO_B : str = \"SSLv3 write client hello B\" ;\n break ;\n case SSL3_ST_CR_SRVR_HELLO_A : str = \"SSLv3 read server hello A\" ;\n break ;\n case SSL3_ST_CR_SRVR_HELLO_B : str = \"SSLv3 read server hello B\" ;\n break ;\n case SSL3_ST_CR_CERT_A : str = \"SSLv3 read server certificate A\" ;\n break ;\n case SSL3_ST_CR_CERT_B : str = \"SSLv3 read server certificate B\" ;\n break ;\n case SSL3_ST_CR_KEY_EXCH_A : str = \"SSLv3 read server key exchange A\" ;\n break ;\n case SSL3_ST_CR_KEY_EXCH_B : str = \"SSLv3 read server key exchange B\" ;\n break ;\n case SSL3_ST_CR_CERT_REQ_A : str = \"SSLv3 read server certificate request A\" ;\n break ;\n case SSL3_ST_CR_CERT_REQ_B : str = \"SSLv3 read server certificate request B\" ;\n break ;\n case SSL3_ST_CR_SESSION_TICKET_A : str = \"SSLv3 read server session ticket A\" ;\n break ;\n case SSL3_ST_CR_SESSION_TICKET_B : str = \"SSLv3 read server session ticket B\" ;\n break ;\n case SSL3_ST_CR_SRVR_DONE_A : str = \"SSLv3 read server done A\" ;\n break ;\n case SSL3_ST_CR_SRVR_DONE_B : str = \"SSLv3 read server done B\" ;\n break ;\n case SSL3_ST_CW_CERT_A : str = \"SSLv3 write client certificate A\" ;\n break ;\n case SSL3_ST_CW_CERT_B : str = \"SSLv3 write client certificate B\" ;\n break ;\n case SSL3_ST_CW_CERT_C : str = \"SSLv3 write client certificate C\" ;\n break ;\n case SSL3_ST_CW_CERT_D : str = \"SSLv3 write client certificate D\" ;\n break ;\n case SSL3_ST_CW_KEY_EXCH_A : str = \"SSLv3 write client key exchange A\" ;\n break ;\n case SSL3_ST_CW_KEY_EXCH_B : str = \"SSLv3 write client key exchange B\" ;\n break ;\n case SSL3_ST_CW_CERT_VRFY_A : str = \"SSLv3 write certificate verify A\" ;\n break ;\n case SSL3_ST_CW_CERT_VRFY_B : str = \"SSLv3 write certificate verify B\" ;\n break ;\n case SSL3_ST_CW_CHANGE_A : case SSL3_ST_SW_CHANGE_A : str = \"SSLv3 write change cipher spec A\" ;\n break ;\n case SSL3_ST_CW_CHANGE_B : case SSL3_ST_SW_CHANGE_B : str = \"SSLv3 write change cipher spec B\" ;\n break ;\n case SSL3_ST_CW_FINISHED_A : case SSL3_ST_SW_FINISHED_A : str = \"SSLv3 write finished A\" ;\n break ;\n case SSL3_ST_CW_FINISHED_B : case SSL3_ST_SW_FINISHED_B : str = \"SSLv3 write finished B\" ;\n break ;\n case SSL3_ST_CR_CHANGE_A : case SSL3_ST_SR_CHANGE_A : str = \"SSLv3 read change cipher spec A\" ;\n break ;\n case SSL3_ST_CR_CHANGE_B : case SSL3_ST_SR_CHANGE_B : str = \"SSLv3 read change cipher spec B\" ;\n break ;\n case SSL3_ST_CR_FINISHED_A : case SSL3_ST_SR_FINISHED_A : str = \"SSLv3 read finished A\" ;\n break ;\n case SSL3_ST_CR_FINISHED_B : case SSL3_ST_SR_FINISHED_B : str = \"SSLv3 read finished B\" ;\n break ;\n case SSL3_ST_CW_FLUSH : case SSL3_ST_SW_FLUSH : str = \"SSLv3 flush data\" ;\n break ;\n case SSL3_ST_SR_CLNT_HELLO_A : str = \"SSLv3 read client hello A\" ;\n break ;\n case SSL3_ST_SR_CLNT_HELLO_B : str = \"SSLv3 read client hello B\" ;\n break ;\n case SSL3_ST_SR_CLNT_HELLO_C : str = \"SSLv3 read client hello C\" ;\n break ;\n case SSL3_ST_SW_HELLO_REQ_A : str = \"SSLv3 write hello request A\" ;\n break ;\n case SSL3_ST_SW_HELLO_REQ_B : str = \"SSLv3 write hello request B\" ;\n break ;\n case SSL3_ST_SW_HELLO_REQ_C : str = \"SSLv3 write hello request C\" ;\n break ;\n case SSL3_ST_SW_SRVR_HELLO_A : str = \"SSLv3 write server hello A\" ;\n break ;\n case SSL3_ST_SW_SRVR_HELLO_B : str = \"SSLv3 write server hello B\" ;\n break ;\n case SSL3_ST_SW_CERT_A : str = \"SSLv3 write certificate A\" ;\n break ;\n case SSL3_ST_SW_CERT_B : str = \"SSLv3 write certificate B\" ;\n break ;\n case SSL3_ST_SW_KEY_EXCH_A : str = \"SSLv3 write key exchange A\" ;\n break ;\n case SSL3_ST_SW_KEY_EXCH_B : str = \"SSLv3 write key exchange B\" ;\n break ;\n case SSL3_ST_SW_CERT_REQ_A : str = \"SSLv3 write certificate request A\" ;\n break ;\n case SSL3_ST_SW_CERT_REQ_B : str = \"SSLv3 write certificate request B\" ;\n break ;\n case SSL3_ST_SW_SESSION_TICKET_A : str = \"SSLv3 write session ticket A\" ;\n break ;\n case SSL3_ST_SW_SESSION_TICKET_B : str = \"SSLv3 write session ticket B\" ;\n break ;\n case SSL3_ST_SW_SRVR_DONE_A : str = \"SSLv3 write server done A\" ;\n break ;\n case SSL3_ST_SW_SRVR_DONE_B : str = \"SSLv3 write server done B\" ;\n break ;\n case SSL3_ST_SR_CERT_A : str = \"SSLv3 read client certificate A\" ;\n break ;\n case SSL3_ST_SR_CERT_B : str = \"SSLv3 read client certificate B\" ;\n break ;\n case SSL3_ST_SR_KEY_EXCH_A : str = \"SSLv3 read client key exchange A\" ;\n break ;\n case SSL3_ST_SR_KEY_EXCH_B : str = \"SSLv3 read client key exchange B\" ;\n break ;\n case SSL3_ST_SR_CERT_VRFY_A : str = \"SSLv3 read certificate verify A\" ;\n break ;\n case SSL3_ST_SR_CERT_VRFY_B : str = \"SSLv3 read certificate verify B\" ;\n break ;\n # endif case SSL23_ST_CW_CLNT_HELLO_A : str = \"SSLv2/v3 write client hello A\" ;\n break ;\n case SSL23_ST_CW_CLNT_HELLO_B : str = \"SSLv2/v3 write client hello B\" ;\n break ;\n case SSL23_ST_CR_SRVR_HELLO_A : str = \"SSLv2/v3 read server hello A\" ;\n break ;\n case SSL23_ST_CR_SRVR_HELLO_B : str = \"SSLv2/v3 read server hello B\" ;\n break ;\n case SSL23_ST_SR_CLNT_HELLO_A : str = \"SSLv2/v3 read client hello A\" ;\n break ;\n case SSL23_ST_SR_CLNT_HELLO_B : str = \"SSLv2/v3 read client hello B\" ;\n break ;\n case DTLS1_ST_CR_HELLO_VERIFY_REQUEST_A : str = \"DTLS1 read hello verify request A\" ;\n break ;\n case DTLS1_ST_CR_HELLO_VERIFY_REQUEST_B : str = \"DTLS1 read hello verify request B\" ;\n break ;\n case DTLS1_ST_SW_HELLO_VERIFY_REQUEST_A : str = \"DTLS1 write hello verify request A\" ;\n break ;\n case DTLS1_ST_SW_HELLO_VERIFY_REQUEST_B : str = \"DTLS1 write hello verify request B\" ;\n break ;\n default : str = \"unknown state\" ;\n break ;\n }\n return ( str ) ;\n }"}
{"idx": 11147, "target": 0, "func": "int evdns_init ( void ) {\n int res = 0 ;\n # ifdef WIN32 res = evdns_config_windows_nameservers ( ) ;\n # else res = evdns_resolv_conf_parse ( DNS_OPTIONS_ALL , \"/etc/resolv.conf\" ) ;\n # endif return ( res ) ;\n }"}
{"idx": 11148, "target": 0, "func": "static void dtap_mm_id_req ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint curr_len ;\n proto_tree * subtree ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_FALSE ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , curr_offset << 3 , 4 , ENC_BIG_ENDIAN ) ;\n subtree = proto_tree_add_subtree ( tree , tvb , curr_offset , 1 , ett_gsm_dtap_elem [ DE_ID_TYPE ] , NULL , val_to_str_ext_const ( DE_ID_TYPE , & gsm_dtap_elem_strings_ext , \"\" ) ) ;\n proto_tree_add_bits_item ( subtree , hf_gsm_a_spare_bits , tvb , ( curr_offset << 3 ) + 4 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_type_of_identity , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n curr_len -- ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 11149, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( UnloadTest , BrowserListCloseBeforeUnloadCancel ) {\n NavigateToDataURL ( BEFORE_UNLOAD_HTML , \"beforeunload\" ) ;\n UnloadResults unload_results ;\n BrowserList : : CloseAllBrowsersWithProfile ( browser ( ) -> profile ( ) , base : : Bind ( & UnloadResults : : AddSuccess , base : : Unretained ( & unload_results ) ) , base : : Bind ( & UnloadResults : : AddAbort , base : : Unretained ( & unload_results ) ) , false ) ;\n base : : string16 expected_title = base : : ASCIIToUTF16 ( \"cancelled\" ) ;\n content : : TitleWatcher title_watcher ( browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) , expected_title ) ;\n ClickModalDialogButton ( false ) ;\n ASSERT_EQ ( expected_title , title_watcher . WaitAndGetTitle ( ) ) ;\n EXPECT_EQ ( 0 , unload_results . get_successes ( ) ) ;\n EXPECT_EQ ( 1 , unload_results . get_aborts ( ) ) ;\n content : : WindowedNotificationObserver window_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , content : : NotificationService : : AllSources ( ) ) ;\n chrome : : CloseWindow ( browser ( ) ) ;\n ClickModalDialogButton ( true ) ;\n window_observer . Wait ( ) ;\n }"}
{"idx": 11150, "target": 1, "func": "static guint32 parse_wbxml_tag ( proto_tree * tree , tvbuff_t * tvb , guint32 offset , guint32 str_tbl , guint8 * level , guint8 * codepage_stag , guint8 * codepage_attr ) {\n guint32 tvb_len = tvb_reported_length ( tvb ) ;\n guint32 off = offset ;\n guint32 len ;\n guint str_len ;\n guint32 ent ;\n guint32 idx ;\n guint8 peek ;\n guint32 tag_len ;\n guint8 tag_save_known = 0 ;\n guint8 tag_new_known = 0 ;\n const char * tag_save_literal ;\n const char * tag_new_literal ;\n char * tag_save_buf = NULL ;\n char * tag_new_buf = NULL ;\n guint8 parsing_tag_content = FALSE ;\n tag_save_literal = NULL ;\n DebugLog ( ( \"parse_wbxml_tag (level = %u, offset = %u)\\n\" , * level , offset ) ) ;\n while ( off < tvb_len ) {\n peek = tvb_get_guint8 ( tvb , off ) ;\n DebugLog ( ( \"STAG: (top of while) level = %3u, peek = 0x%02X, off = %u, tvb_len = %u\\n\" , * level , peek , off , tvb_len ) ) ;\n if ( ( peek & 0x3F ) < 4 ) switch ( peek ) {\n case 0x00 : * codepage_stag = tvb_get_guint8 ( tvb , off + 1 ) ;\n proto_tree_add_text ( tree , tvb , off , 2 , \" | Tag | T -->%3d \" \"| SWITCH_PAGE (Tag code page) \" \"|\" , * codepage_stag ) ;\n off += 2 ;\n break ;\n case 0x01 : if ( tag_save_known ) {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| END (Known Tag 0x%02X) \" \"| %s</%s>\" , * level , * codepage_stag , tag_save_known , Indent ( * level ) , tag_save_literal ) ;\n }\n else {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| END (Literal Tag) \" \"| %s</%s>\" , * level , * codepage_stag , Indent ( * level ) , tag_save_literal ? tag_save_literal : \"\" ) ;\n }\n ( * level ) -- ;\n off ++ ;\n DebugLog ( ( \"STAG: level = %u, Return: len = %u\\n\" , * level , off - offset ) ) ;\n return ( off - offset ) ;\n case 0x02 : ent = tvb_get_guintvar ( tvb , off + 1 , & len ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Tag | T %3d \" \"| ENTITY \" \"| %s'&#%u;\n'\" , * level , * codepage_stag , Indent ( * level ) , ent ) ;\n off += 1 + len ;\n break ;\n case 0x03 : len = tvb_strsize ( tvb , off + 1 ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Tag | T %3d \" \"| STR_I (Inline string) \" \"| %s\\'%s\\'\" , * level , * codepage_stag , Indent ( * level ) , tvb_format_text ( tvb , off + 1 , len - 1 ) ) ;\n off += 1 + len ;\n break ;\n case 0x40 : case 0x41 : case 0x42 : len = tvb_strsize ( tvb , off + 1 ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Tag | T %3d \" \"| EXT_I_%1x (Extension Token) \" \"| %s(Inline string extension: \\'%s\\')\" , * level , * codepage_stag , peek & 0x0f , Indent ( * level ) , tvb_format_text ( tvb , off + 1 , len - 1 ) ) ;\n off += 1 + len ;\n break ;\n case 0x43 : proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| PI (XML Processing Instruction) \" \"| %s<?xml\" , * level , * codepage_stag , Indent ( * level ) ) ;\n len = parse_wbxml_attribute_list ( tree , tvb , off , str_tbl , * level , codepage_attr ) ;\n off += len ;\n if ( off >= tvb_len ) {\n DebugLog ( ( \"STAG: level = %u, ThrowException: len = %u (short frame)\\n\" , * level , off - offset ) ) ;\n THROW ( ReportedBoundsError ) ;\n }\n proto_tree_add_text ( tree , tvb , off - 1 , 1 , \" %3d | Tag | T %3d \" \"| END (PI) \" \"| %s?>\" , * level , * codepage_stag , Indent ( * level ) ) ;\n break ;\n case 0x80 : case 0x81 : case 0x82 : idx = tvb_get_guintvar ( tvb , off + 1 , & len ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Tag | T %3d \" \"| EXT_T_%1x (Extension Token) \" \"| %s(Extension Token, integer value: %u)\" , * level , * codepage_stag , peek & 0x0f , Indent ( * level ) , idx ) ;\n off += 1 + len ;\n break ;\n case 0x83 : idx = tvb_get_guintvar ( tvb , off + 1 , & len ) ;\n str_len = tvb_strsize ( tvb , str_tbl + idx ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Tag | T %3d \" \"| STR_T (Tableref string) \" \"| %s\\'%s\\'\" , * level , * codepage_stag , Indent ( * level ) , tvb_format_text ( tvb , str_tbl + idx , str_len - 1 ) ) ;\n off += 1 + len ;\n break ;\n case 0xC0 : case 0xC1 : case 0xC2 : proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| EXT_%1x (Extension Token) \" \"| %s(Single-byte extension)\" , * level , * codepage_stag , peek & 0x0f , Indent ( * level ) ) ;\n off ++ ;\n break ;\n case 0xC3 : if ( tvb_get_guint8 ( tvb , 0 ) ) {\n idx = tvb_get_guintvar ( tvb , off + 1 , & len ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len + idx , \" %3d | Tag | T %3d \" \"| OPAQUE (Opaque data) \" \"| %s(%d bytes of opaque data)\" , * level , * codepage_stag , Indent ( * level ) , idx ) ;\n off += 1 + len + idx ;\n }\n else {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| RESERVED_2 (Invalid Token!) \" \"| WBXML 1.0 parsing stops here.\" , * level , * codepage_stag ) ;\n off = tvb_len ;\n DebugLog ( ( \"STAG: level = %u, Return: len = %u\\n\" , * level , off - offset ) ) ;\n return ( off - offset ) ;\n }\n break ;\n }\n else {\n tag_len = 0 ;\n if ( ( peek & 0x3F ) == 4 ) {\n DebugLog ( ( \"STAG: LITERAL tag (peek = 0x%02X, off = %u)\" \" - TableRef follows!\\n\" , peek , off ) ) ;\n idx = tvb_get_guintvar ( tvb , off + 1 , & tag_len ) ;\n str_len = tvb_strsize ( tvb , str_tbl + idx ) ;\n tag_new_literal = ( const gchar * ) tvb_get_ptr ( tvb , str_tbl + idx , str_len ) ;\n tag_new_known = 0 ;\n }\n else {\n tag_new_known = peek & 0x3F ;\n tag_new_buf = wmem_strdup_printf ( wmem_packet_scope ( ) , \"Tag_0x%02X\" , tag_new_known ) ;\n tag_new_literal = tag_new_buf ;\n }\n if ( peek & 0x40 ) {\n if ( parsing_tag_content ) {\n DebugLog ( ( \"STAG: Tag in Tag - RECURSE! (off = %u)\\n\" , off ) ) ;\n ( * level ) ++ ;\n len = parse_wbxml_tag ( tree , tvb , off , str_tbl , level , codepage_stag , codepage_attr ) ;\n off += len ;\n }\n else {\n if ( ( peek & 0x3F ) == 4 ) {\n tag_save_literal = tag_new_literal ;\n tag_save_known = 0 ;\n }\n else {\n tag_save_known = tag_new_known ;\n tag_save_buf = wmem_strdup_printf ( wmem_packet_scope ( ) , \"Tag_0x%02X\" , tag_new_known ) ;\n tag_save_literal = tag_save_buf ;\n }\n if ( peek & 0x80 ) {\n if ( tag_new_known ) {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| Known Tag 0x%02X (AC) \" \"| %s<%s\" , * level , * codepage_stag , tag_new_known , Indent ( * level ) , tag_new_literal ) ;\n off ++ ;\n }\n else {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| LITERAL_AC (Literal tag) (AC) \" \"| %s<%s\" , * level , * codepage_stag , Indent ( * level ) , tag_new_literal ) ;\n off += 1 + tag_len ;\n }\n len = parse_wbxml_attribute_list ( tree , tvb , off , str_tbl , * level , codepage_attr ) ;\n off += len ;\n if ( off >= tvb_len ) {\n DebugLog ( ( \"STAG: level = %u, ThrowException: \" \"len = %u (short frame)\\n\" , * level , off - offset ) ) ;\n THROW ( ReportedBoundsError ) ;\n }\n proto_tree_add_text ( tree , tvb , off - 1 , 1 , \" %3d | Tag | T %3d \" \"| END (attribute list) \" \"| %s>\" , * level , * codepage_stag , Indent ( * level ) ) ;\n }\n else {\n if ( tag_new_known ) {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| Known Tag 0x%02X (.C) \" \"| %s<%s>\" , * level , * codepage_stag , tag_new_known , Indent ( * level ) , tag_new_literal ) ;\n off ++ ;\n }\n else {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| LITERAL_C (Literal Tag) (.C) \" \"| %s<%s>\" , * level , * codepage_stag , Indent ( * level ) , tag_new_literal ) ;\n off += 1 + tag_len ;\n }\n }\n parsing_tag_content = TRUE ;\n DebugLog ( ( \"Tag in Tag - No recursion this time! \" \"(off = %u)\\n\" , off ) ) ;\n }\n }\n else {\n DebugLog ( ( \"<Tag/> in Tag - No recursion! (off = %u)\\n\" , off ) ) ;\n ( * level ) ++ ;\n if ( peek & 0x80 ) {\n if ( tag_new_known ) {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| Known Tag 0x%02X (A.) \" \"| %s<%s\" , * level , * codepage_stag , tag_new_known , Indent ( * level ) , tag_new_literal ) ;\n off ++ ;\n len = parse_wbxml_attribute_list ( tree , tvb , off , str_tbl , * level , codepage_attr ) ;\n off += len ;\n if ( off >= tvb_len ) {\n DebugLog ( ( \"STAG: level = %u, ThrowException: \" \"len = %u (short frame)\\n\" , * level , off - offset ) ) ;\n THROW ( ReportedBoundsError ) ;\n }\n proto_tree_add_text ( tree , tvb , off - 1 , 1 , \" %3d | Tag | T %3d \" \"| END (Known Tag) \" \"| %s/>\" , * level , * codepage_stag , Indent ( * level ) ) ;\n }\n else {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| LITERAL_A (Literal Tag) (A.) \" \"| %s<%s\" , * level , * codepage_stag , Indent ( * level ) , tag_new_literal ) ;\n off += 1 + tag_len ;\n len = parse_wbxml_attribute_list ( tree , tvb , off , str_tbl , * level , codepage_attr ) ;\n off += len ;\n if ( off >= tvb_len ) {\n DebugLog ( ( \"STAG: level = %u, ThrowException: \" \"len = %u (short frame)\\n\" , * level , off - offset ) ) ;\n THROW ( ReportedBoundsError ) ;\n }\n proto_tree_add_text ( tree , tvb , off - 1 , 1 , \" %3d | Tag | T %3d \" \"| END (Literal Tag) \" \"| %s/>\" , * level , * codepage_stag , Indent ( * level ) ) ;\n }\n }\n else {\n if ( tag_new_known ) {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| Known Tag 0x%02x (..) \" \"| %s<%s />\" , * level , * codepage_stag , tag_new_known , Indent ( * level ) , tag_new_literal ) ;\n off ++ ;\n }\n else {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| LITERAL (Literal Tag) (..) \" \"| %s<%s />\" , * level , * codepage_stag , Indent ( * level ) , tag_new_literal ) ;\n off += 1 + tag_len ;\n }\n }\n ( * level ) -- ;\n }\n }\n }\n DebugLog ( ( \"STAG: level = %u, Return: len = %u (end of function body)\\n\" , * level , off - offset ) ) ;\n return ( off - offset ) ;\n }"}
{"idx": 11151, "target": 0, "func": "static void e1000e_set_dbal ( E1000ECore * core , int index , uint32_t val ) {\n core -> mac [ index ] = val & E1000_XDBAL_MASK ;\n }"}
{"idx": 11152, "target": 0, "func": "int udpv6_recvmsg ( struct kiocb * iocb , struct sock * sk , struct msghdr * msg , size_t len , int noblock , int flags , int * addr_len ) {\n struct ipv6_pinfo * np = inet6_sk ( sk ) ;\n struct inet_sock * inet = inet_sk ( sk ) ;\n struct sk_buff * skb ;\n unsigned int ulen ;\n int peeked ;\n int err ;\n int is_udplite = IS_UDPLITE ( sk ) ;\n int is_udp4 ;\n if ( addr_len ) * addr_len = sizeof ( struct sockaddr_in6 ) ;\n if ( flags & MSG_ERRQUEUE ) return ipv6_recv_error ( sk , msg , len ) ;\n if ( np -> rxpmtu && np -> rxopt . bits . rxpmtu ) return ipv6_recv_rxpmtu ( sk , msg , len ) ;\n try_again : skb = __skb_recv_datagram ( sk , flags | ( noblock ? MSG_DONTWAIT : 0 ) , & peeked , & err ) ;\n if ( ! skb ) goto out ;\n ulen = skb -> len - sizeof ( struct udphdr ) ;\n if ( len > ulen ) len = ulen ;\n else if ( len < ulen ) msg -> msg_flags |= MSG_TRUNC ;\n is_udp4 = ( skb -> protocol == htons ( ETH_P_IP ) ) ;\n if ( len < ulen || UDP_SKB_CB ( skb ) -> partial_cov ) {\n if ( udp_lib_checksum_complete ( skb ) ) goto csum_copy_err ;\n }\n if ( skb_csum_unnecessary ( skb ) ) err = skb_copy_datagram_iovec ( skb , sizeof ( struct udphdr ) , msg -> msg_iov , len ) ;\n else {\n err = skb_copy_and_csum_datagram_iovec ( skb , sizeof ( struct udphdr ) , msg -> msg_iov ) ;\n if ( err == - EINVAL ) goto csum_copy_err ;\n }\n if ( err ) goto out_free ;\n if ( ! peeked ) {\n if ( is_udp4 ) UDP_INC_STATS_USER ( sock_net ( sk ) , UDP_MIB_INDATAGRAMS , is_udplite ) ;\n else UDP6_INC_STATS_USER ( sock_net ( sk ) , UDP_MIB_INDATAGRAMS , is_udplite ) ;\n }\n sock_recv_ts_and_drops ( msg , sk , skb ) ;\n if ( msg -> msg_name ) {\n struct sockaddr_in6 * sin6 ;\n sin6 = ( struct sockaddr_in6 * ) msg -> msg_name ;\n sin6 -> sin6_family = AF_INET6 ;\n sin6 -> sin6_port = udp_hdr ( skb ) -> source ;\n sin6 -> sin6_flowinfo = 0 ;\n sin6 -> sin6_scope_id = 0 ;\n if ( is_udp4 ) ipv6_addr_set_v4mapped ( ip_hdr ( skb ) -> saddr , & sin6 -> sin6_addr ) ;\n else {\n ipv6_addr_copy ( & sin6 -> sin6_addr , & ipv6_hdr ( skb ) -> saddr ) ;\n if ( ipv6_addr_type ( & sin6 -> sin6_addr ) & IPV6_ADDR_LINKLOCAL ) sin6 -> sin6_scope_id = IP6CB ( skb ) -> iif ;\n }\n }\n if ( is_udp4 ) {\n if ( inet -> cmsg_flags ) ip_cmsg_recv ( msg , skb ) ;\n }\n else {\n if ( np -> rxopt . all ) datagram_recv_ctl ( sk , msg , skb ) ;\n }\n err = len ;\n if ( flags & MSG_TRUNC ) err = ulen ;\n out_free : skb_free_datagram_locked ( sk , skb ) ;\n out : return err ;\n csum_copy_err : lock_sock_bh ( sk ) ;\n if ( ! skb_kill_datagram ( sk , skb , flags ) ) {\n if ( is_udp4 ) UDP_INC_STATS_USER ( sock_net ( sk ) , UDP_MIB_INERRORS , is_udplite ) ;\n else UDP6_INC_STATS_USER ( sock_net ( sk ) , UDP_MIB_INERRORS , is_udplite ) ;\n }\n unlock_sock_bh ( sk ) ;\n if ( flags & MSG_DONTWAIT ) return - EAGAIN ;\n goto try_again ;\n }"}
{"idx": 11153, "target": 0, "func": "TSReturnCode TSUrlHttpFragmentSet ( TSMBuffer bufp , TSMLoc obj , const char * value , int length ) {\n return URLPartSet ( bufp , obj , value , length , & URL : : fragment_set ) ;\n }"}
{"idx": 11154, "target": 0, "func": "static void sbr_qmf_deint_neg_c ( float * v , const float * src ) {\n const union av_intfloat32 * si = ( const union av_intfloat32 * ) src ;\n union av_intfloat32 * vi = ( union av_intfloat32 * ) v ;\n int i ;\n for ( i = 0 ;\n i < 32 ;\n i ++ ) {\n vi [ i ] . i = si [ 63 - 2 * i ] . i ;\n vi [ 63 - i ] . i = si [ 63 - 2 * i - 1 ] . i ^ ( 1U << 31 ) ;\n }\n }"}
{"idx": 11155, "target": 0, "func": "static void dealloc_raw_frame_buffers ( VP8_COMP * cpi ) {\n # if VP8_TEMPORAL_ALT_REF vp8_yv12_de_alloc_frame_buffer ( & cpi -> alt_ref_buffer ) ;\n # endif vp8_lookahead_destroy ( cpi -> lookahead ) ;\n }"}
{"idx": 11156, "target": 0, "func": "static int selinux_tun_dev_attach ( struct sock * sk , void * security ) {\n struct tun_security_struct * tunsec = security ;\n struct sk_security_struct * sksec = sk -> sk_security ;\n sksec -> sid = tunsec -> sid ;\n sksec -> sclass = SECCLASS_TUN_SOCKET ;\n return 0 ;\n }"}
{"idx": 11157, "target": 0, "func": "void appendShellString ( PQExpBuffer buf , const char * str ) {\n const char * p ;\n # ifndef WIN32 appendPQExpBufferChar ( buf , '\\'' ) ;\n for ( p = str ;\n * p ;\n p ++ ) {\n if ( * p == '\\n' || * p == '\\r' ) {\n fprintf ( stderr , _ ( \"shell command argument contains a newline or carriage return: \\\"%s\\\"\\n\" ) , str ) ;\n exit ( EXIT_FAILURE ) ;\n }\n if ( * p == '\\'' ) appendPQExpBufferStr ( buf , \"'\\\"'\\\"'\" ) ;\n else appendPQExpBufferChar ( buf , * p ) ;\n }\n appendPQExpBufferChar ( buf , '\\'' ) ;\n # else int backslash_run_length = 0 ;\n appendPQExpBufferStr ( buf , \"^\\\"\" ) ;\n for ( p = str ;\n * p ;\n p ++ ) {\n if ( * p == '\\n' || * p == '\\r' ) {\n fprintf ( stderr , _ ( \"shell command argument contains a newline or carriage return: \\\"%s\\\"\\n\" ) , str ) ;\n exit ( EXIT_FAILURE ) ;\n }\n if ( * p == '\"' ) {\n while ( backslash_run_length ) {\n appendPQExpBufferStr ( buf , \"^\\\\\" ) ;\n backslash_run_length -- ;\n }\n appendPQExpBufferStr ( buf , \"^\\\\\" ) ;\n }\n else if ( * p == '\\\\' ) backslash_run_length ++ ;\n else backslash_run_length = 0 ;\n if ( ! ( ( * p >= 'a' && * p <= 'z' ) || ( * p >= 'A' && * p <= 'Z' ) || ( * p >= '0' && * p <= '9' ) ) ) appendPQExpBufferChar ( buf , '^' ) ;\n appendPQExpBufferChar ( buf , * p ) ;\n }\n while ( backslash_run_length ) {\n appendPQExpBufferStr ( buf , \"^\\\\\" ) ;\n backslash_run_length -- ;\n }\n appendPQExpBufferStr ( buf , \"^\\\"\" ) ;\n # endif }"}
{"idx": 11158, "target": 0, "func": "static void _slurm_rpc_get_priority_factors ( slurm_msg_t * msg ) {\n DEF_TIMERS ;\n priority_factors_request_msg_t * req_msg = ( priority_factors_request_msg_t * ) msg -> data ;\n priority_factors_response_msg_t resp_msg ;\n slurm_msg_t response_msg ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n START_TIMER ;\n debug2 ( \"Processing RPC: REQUEST_PRIORITY_FACTORS from uid=%d\" , uid ) ;\n resp_msg . priority_factors_list = priority_g_get_priority_factors_list ( req_msg , uid ) ;\n slurm_msg_t_init ( & response_msg ) ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . address = msg -> address ;\n response_msg . conn = msg -> conn ;\n response_msg . msg_type = RESPONSE_PRIORITY_FACTORS ;\n response_msg . data = & resp_msg ;\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n FREE_NULL_LIST ( resp_msg . priority_factors_list ) ;\n END_TIMER2 ( \"_slurm_rpc_get_priority_factors\" ) ;\n debug2 ( \"_slurm_rpc_get_priority_factors %s\" , TIME_STR ) ;\n }"}
{"idx": 11159, "target": 1, "func": "static int32_t u_printf_hex_handler ( const u_printf_stream_handler * handler , void * context , ULocaleBundle * formatBundle , const u_printf_spec_info * info , const ufmt_args * args ) {\n int64_t num = args [ 0 ] . int64Value ;\n UChar result [ UPRINTF_BUFFER_SIZE ] ;\n int32_t len = UPRINTF_BUFFER_SIZE ;\n if ( info -> fIsShort ) num &= UINT16_MAX ;\n else if ( ! info -> fIsLongLong ) num &= UINT32_MAX ;\n ufmt_64tou ( result , & len , num , 16 , ( UBool ) ( info -> fSpec == 0x0078 ) , ( info -> fPrecision == - 1 && info -> fZero ) ? info -> fWidth : info -> fPrecision ) ;\n if ( num != 0 && info -> fAlt && len < UPRINTF_BUFFER_SIZE - 2 ) {\n memmove ( result + 2 , result , len * sizeof ( UChar ) ) ;\n result [ 0 ] = 0x0030 ;\n result [ 1 ] = info -> fSpec ;\n len += 2 ;\n }\n return handler -> pad_and_justify ( context , info , result , len ) ;\n }"}
{"idx": 11160, "target": 0, "func": "relpRetVal relpTcpEnableTLS ( relpTcp_t __attribute__ ( ( unused ) ) * pThis ) {\n ENTER_RELPFUNC ;\n RELPOBJ_assert ( pThis , Tcp ) ;\n # ifdef ENABLE_TLS pThis -> bEnableTLS = 1 ;\n # else iRet = RELP_RET_ERR_NO_TLS ;\n # endif LEAVE_RELPFUNC ;\n }"}
{"idx": 11161, "target": 0, "func": "static int kex_method_diffie_hellman_group1_sha1_key_exchange ( LIBSSH2_SESSION * session , key_exchange_state_low_t * key_state ) {\n static const unsigned char p_value [ 128 ] = {\n 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xC9 , 0x0F , 0xDA , 0xA2 , 0x21 , 0x68 , 0xC2 , 0x34 , 0xC4 , 0xC6 , 0x62 , 0x8B , 0x80 , 0xDC , 0x1C , 0xD1 , 0x29 , 0x02 , 0x4E , 0x08 , 0x8A , 0x67 , 0xCC , 0x74 , 0x02 , 0x0B , 0xBE , 0xA6 , 0x3B , 0x13 , 0x9B , 0x22 , 0x51 , 0x4A , 0x08 , 0x79 , 0x8E , 0x34 , 0x04 , 0xDD , 0xEF , 0x95 , 0x19 , 0xB3 , 0xCD , 0x3A , 0x43 , 0x1B , 0x30 , 0x2B , 0x0A , 0x6D , 0xF2 , 0x5F , 0x14 , 0x37 , 0x4F , 0xE1 , 0x35 , 0x6D , 0x6D , 0x51 , 0xC2 , 0x45 , 0xE4 , 0x85 , 0xB5 , 0x76 , 0x62 , 0x5E , 0x7E , 0xC6 , 0xF4 , 0x4C , 0x42 , 0xE9 , 0xA6 , 0x37 , 0xED , 0x6B , 0x0B , 0xFF , 0x5C , 0xB6 , 0xF4 , 0x06 , 0xB7 , 0xED , 0xEE , 0x38 , 0x6B , 0xFB , 0x5A , 0x89 , 0x9F , 0xA5 , 0xAE , 0x9F , 0x24 , 0x11 , 0x7C , 0x4B , 0x1F , 0xE6 , 0x49 , 0x28 , 0x66 , 0x51 , 0xEC , 0xE6 , 0x53 , 0x81 , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF }\n ;\n int ret ;\n if ( key_state -> state == libssh2_NB_state_idle ) {\n key_state -> p = _libssh2_bn_init_from_bin ( ) ;\n key_state -> g = _libssh2_bn_init ( ) ;\n _libssh2_bn_set_word ( key_state -> g , 2 ) ;\n _libssh2_bn_from_bin ( key_state -> p , 128 , p_value ) ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Initiating Diffie-Hellman Group1 Key Exchange\" ) ;\n key_state -> state = libssh2_NB_state_created ;\n }\n ret = diffie_hellman_sha1 ( session , key_state -> g , key_state -> p , 128 , SSH_MSG_KEXDH_INIT , SSH_MSG_KEXDH_REPLY , NULL , 0 , & key_state -> exchange_state ) ;\n if ( ret == LIBSSH2_ERROR_EAGAIN ) {\n return ret ;\n }\n _libssh2_bn_free ( key_state -> p ) ;\n key_state -> p = NULL ;\n _libssh2_bn_free ( key_state -> g ) ;\n key_state -> g = NULL ;\n key_state -> state = libssh2_NB_state_idle ;\n return ret ;\n }"}
{"idx": 11162, "target": 0, "func": "static int dissect_h245_CallInformationResp ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_CallInformationResp , CallInformationResp_sequence ) ;\n return offset ;\n }"}
{"idx": 11163, "target": 0, "func": "TEST_F ( TemplateURLTest , URLRefTestSearchTerms ) {\n struct SearchTermsCase {\n const char * url ;\n const base : : string16 terms ;\n const std : : string output ;\n }\n search_term_cases [ ] = {\n {\n \"http://foo{\nsearchTerms}\n\" , ASCIIToUTF16 ( \"sea rch/bar\" ) , \"http://foosea%20rch/bar\" }\n , {\n \"http://foo{\nsearchTerms}\n?boo=abc\" , ASCIIToUTF16 ( \"sea rch/bar\" ) , \"http://foosea%20rch/bar?boo=abc\" }\n , {\n \"http://foo/?boo={\nsearchTerms}\n\" , ASCIIToUTF16 ( \"sea rch/bar\" ) , \"http://foo/?boo=sea+rch%2Fbar\" }\n , {\n \"http://en.wikipedia.org/{\nsearchTerms}\n\" , ASCIIToUTF16 ( \"wiki/?\" ) , \"http://en.wikipedia.org/wiki/%3F\" }\n }\n ;\n for ( size_t i = 0 ;\n i < arraysize ( search_term_cases ) ;\n ++ i ) {\n const SearchTermsCase & value = search_term_cases [ i ] ;\n TemplateURLData data ;\n data . SetURL ( value . url ) ;\n TemplateURL url ( data ) ;\n EXPECT_TRUE ( url . url_ref ( ) . IsValid ( search_terms_data_ ) ) ;\n ASSERT_TRUE ( url . url_ref ( ) . SupportsReplacement ( search_terms_data_ ) ) ;\n GURL result ( url . url_ref ( ) . ReplaceSearchTerms ( TemplateURLRef : : SearchTermsArgs ( value . terms ) , search_terms_data_ ) ) ;\n ASSERT_TRUE ( result . is_valid ( ) ) ;\n EXPECT_EQ ( value . output , result . spec ( ) ) ;\n }\n }"}
{"idx": 11164, "target": 0, "func": "static int32_t u_printf_double_handler ( const u_printf_stream_handler * handler , void * context , ULocaleBundle * formatBundle , const u_printf_spec_info * info , const ufmt_args * args ) {\n double num = ( double ) ( args [ 0 ] . doubleValue ) ;\n UNumberFormat * format ;\n UChar result [ UPRINTF_BUFFER_SIZE ] ;\n UChar prefixBuffer [ UPRINTF_BUFFER_SIZE ] ;\n int32_t prefixBufferLen = sizeof ( prefixBuffer ) ;\n int32_t minDecimalDigits ;\n int32_t maxDecimalDigits ;\n int32_t resultLen ;\n UErrorCode status = U_ZERO_ERROR ;\n prefixBuffer [ 0 ] = 0 ;\n format = u_locbund_getNumberFormat ( formatBundle , UNUM_DECIMAL ) ;\n if ( format == 0 ) return 0 ;\n minDecimalDigits = unum_getAttribute ( format , UNUM_MIN_FRACTION_DIGITS ) ;\n maxDecimalDigits = unum_getAttribute ( format , UNUM_MAX_FRACTION_DIGITS ) ;\n if ( info -> fPrecision != - 1 ) {\n unum_setAttribute ( format , UNUM_FRACTION_DIGITS , info -> fPrecision ) ;\n }\n else if ( info -> fAlt ) {\n unum_setAttribute ( format , UNUM_FRACTION_DIGITS , 6 ) ;\n }\n else {\n unum_setAttribute ( format , UNUM_FRACTION_DIGITS , 6 ) ;\n }\n if ( info -> fShowSign ) {\n u_printf_set_sign ( format , info , prefixBuffer , & prefixBufferLen , & status ) ;\n }\n resultLen = unum_formatDouble ( format , num , result , UPRINTF_BUFFER_SIZE , 0 , & status ) ;\n if ( U_FAILURE ( status ) ) {\n resultLen = 0 ;\n }\n unum_setAttribute ( format , UNUM_MIN_FRACTION_DIGITS , minDecimalDigits ) ;\n unum_setAttribute ( format , UNUM_MAX_FRACTION_DIGITS , maxDecimalDigits ) ;\n if ( info -> fShowSign ) {\n UErrorCode localStatus = U_ZERO_ERROR ;\n u_printf_reset_sign ( format , info , prefixBuffer , & prefixBufferLen , & localStatus ) ;\n }\n return handler -> pad_and_justify ( context , info , result , resultLen ) ;\n }"}
{"idx": 11165, "target": 1, "func": "int main ( int argc , char * * argv ) {\n using std : : string ;\n if ( argc != 2 ) {\n fprintf ( stderr , \"One argument, the input filename, must be provided.\\n\" ) ;\n return 1 ;\n }\n string filename ( argv [ 1 ] ) ;\n string outfilename = filename . substr ( 0 , filename . find_last_of ( \".\" ) ) + \".woff2\" ;\n fprintf ( stdout , \"Processing %s => %s\\n\" , filename . c_str ( ) , outfilename . c_str ( ) ) ;\n string input = woff2 : : GetFileContent ( filename ) ;\n const uint8_t * input_data = reinterpret_cast < const uint8_t * > ( input . data ( ) ) ;\n size_t output_size = woff2 : : MaxWOFF2CompressedSize ( input_data , input . size ( ) ) ;\n string output ( output_size , 0 ) ;\n uint8_t * output_data = reinterpret_cast < uint8_t * > ( & output [ 0 ] ) ;\n if ( ! woff2 : : ConvertTTFToWOFF2 ( input_data , input . size ( ) , output_data , & output_size ) ) {\n fprintf ( stderr , \"Compression failed.\\n\" ) ;\n return 1 ;\n }\n output . resize ( output_size ) ;\n woff2 : : SetFileContents ( outfilename , output ) ;\n return 0 ;\n }"}
{"idx": 11166, "target": 0, "func": "MULTIPROCESS_TEST_MAIN ( SlowChildProcess ) {\n WaitToDie ( ProcessUtilTest : : GetSignalFilePath ( kSignalFileSlow ) . c_str ( ) ) ;\n return 0 ;\n }"}
{"idx": 11167, "target": 1, "func": "SPL_METHOD ( RecursiveDirectoryIterator , getChildren ) {\n zval * zpath , * zflags ;\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n spl_filesystem_object * subdir ;\n char slash = SPL_HAS_FLAG ( intern -> flags , SPL_FILE_DIR_UNIXPATHS ) ? '/' : DEFAULT_SLASH ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n spl_filesystem_object_get_file_name ( intern TSRMLS_CC ) ;\n MAKE_STD_ZVAL ( zflags ) ;\n MAKE_STD_ZVAL ( zpath ) ;\n ZVAL_LONG ( zflags , intern -> flags ) ;\n ZVAL_STRINGL ( zpath , intern -> file_name , intern -> file_name_len , 1 ) ;\n spl_instantiate_arg_ex2 ( Z_OBJCE_P ( getThis ( ) ) , & return_value , 0 , zpath , zflags TSRMLS_CC ) ;\n zval_ptr_dtor ( & zpath ) ;\n zval_ptr_dtor ( & zflags ) ;\n subdir = ( spl_filesystem_object * ) zend_object_store_get_object ( return_value TSRMLS_CC ) ;\n if ( subdir ) {\n if ( intern -> u . dir . sub_path && intern -> u . dir . sub_path [ 0 ] ) {\n subdir -> u . dir . sub_path_len = spprintf ( & subdir -> u . dir . sub_path , 0 , \"%s%c%s\" , intern -> u . dir . sub_path , slash , intern -> u . dir . entry . d_name ) ;\n }\n else {\n subdir -> u . dir . sub_path_len = strlen ( intern -> u . dir . entry . d_name ) ;\n subdir -> u . dir . sub_path = estrndup ( intern -> u . dir . entry . d_name , subdir -> u . dir . sub_path_len ) ;\n }\n subdir -> info_class = intern -> info_class ;\n subdir -> file_class = intern -> file_class ;\n subdir -> oth = intern -> oth ;\n }\n }"}
{"idx": 11168, "target": 0, "func": "static void * Type_Text_Description_Read ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number * nItems , cmsUInt32Number SizeOfTag ) {\n char * Text = NULL ;\n cmsMLU * mlu = NULL ;\n cmsUInt32Number AsciiCount ;\n cmsUInt32Number i , UnicodeCode , UnicodeCount ;\n cmsUInt16Number ScriptCodeCode , Dummy ;\n cmsUInt8Number ScriptCodeCount ;\n * nItems = 0 ;\n if ( SizeOfTag < sizeof ( cmsUInt32Number ) ) return NULL ;\n if ( ! _cmsReadUInt32Number ( io , & AsciiCount ) ) return NULL ;\n SizeOfTag -= sizeof ( cmsUInt32Number ) ;\n if ( SizeOfTag < AsciiCount ) return NULL ;\n mlu = cmsMLUalloc ( self -> ContextID , 1 ) ;\n if ( mlu == NULL ) return NULL ;\n Text = ( char * ) _cmsMalloc ( self -> ContextID , AsciiCount + 1 ) ;\n if ( Text == NULL ) goto Error ;\n if ( io -> Read ( io , Text , sizeof ( char ) , AsciiCount ) != AsciiCount ) goto Error ;\n SizeOfTag -= AsciiCount ;\n Text [ AsciiCount ] = 0 ;\n if ( ! cmsMLUsetASCII ( mlu , cmsNoLanguage , cmsNoCountry , Text ) ) goto Error ;\n _cmsFree ( self -> ContextID , ( void * ) Text ) ;\n Text = NULL ;\n if ( SizeOfTag < 2 * sizeof ( cmsUInt32Number ) ) goto Done ;\n if ( ! _cmsReadUInt32Number ( io , & UnicodeCode ) ) goto Done ;\n if ( ! _cmsReadUInt32Number ( io , & UnicodeCount ) ) goto Done ;\n SizeOfTag -= 2 * sizeof ( cmsUInt32Number ) ;\n if ( SizeOfTag < UnicodeCount * sizeof ( cmsUInt16Number ) ) goto Done ;\n for ( i = 0 ;\n i < UnicodeCount ;\n i ++ ) {\n if ( ! io -> Read ( io , & Dummy , sizeof ( cmsUInt16Number ) , 1 ) ) goto Done ;\n }\n SizeOfTag -= UnicodeCount * sizeof ( cmsUInt16Number ) ;\n if ( SizeOfTag >= sizeof ( cmsUInt16Number ) + sizeof ( cmsUInt8Number ) + 67 ) {\n if ( ! _cmsReadUInt16Number ( io , & ScriptCodeCode ) ) goto Done ;\n if ( ! _cmsReadUInt8Number ( io , & ScriptCodeCount ) ) goto Done ;\n for ( i = 0 ;\n i < 67 ;\n i ++ ) {\n if ( ! io -> Read ( io , & Dummy , sizeof ( cmsUInt8Number ) , 1 ) ) goto Error ;\n }\n }\n Done : * nItems = 1 ;\n return mlu ;\n Error : if ( Text ) _cmsFree ( self -> ContextID , ( void * ) Text ) ;\n if ( mlu ) cmsMLUfree ( mlu ) ;\n return NULL ;\n }"}
{"idx": 11169, "target": 0, "func": "int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL ) DECLARE_PEM_rw ( PKCS7 , PKCS7 ) DECLARE_PEM_rw ( NETSCAPE_CERT_SEQUENCE , NETSCAPE_CERT_SEQUENCE ) DECLARE_PEM_rw ( PKCS8 , X509_SIG ) DECLARE_PEM_rw ( PKCS8_PRIV_KEY_INFO , PKCS8_PRIV_KEY_INFO ) # ifndef OPENSSL_NO_RSA DECLARE_PEM_rw_cb ( RSAPrivateKey , RSA ) DECLARE_PEM_rw_const ( RSAPublicKey , RSA ) DECLARE_PEM_rw ( RSA_PUBKEY , RSA ) # endif # ifndef OPENSSL_NO_DSA DECLARE_PEM_rw_cb ( DSAPrivateKey , DSA ) DECLARE_PEM_rw ( DSA_PUBKEY , DSA )"}
{"idx": 11170, "target": 0, "func": "static int rm_read_audio_stream_info ( AVFormatContext * s , AVIOContext * pb , AVStream * st , RMStream * ast , int read_all ) {\n char buf [ 256 ] ;\n uint32_t version ;\n int ret ;\n version = avio_rb16 ( pb ) ;\n if ( version == 3 ) {\n unsigned bytes_per_minute ;\n int header_size = avio_rb16 ( pb ) ;\n int64_t startpos = avio_tell ( pb ) ;\n avio_skip ( pb , 8 ) ;\n bytes_per_minute = avio_rb16 ( pb ) ;\n avio_skip ( pb , 4 ) ;\n rm_read_metadata ( s , pb , 0 ) ;\n if ( ( startpos + header_size ) >= avio_tell ( pb ) + 2 ) {\n avio_r8 ( pb ) ;\n get_str8 ( pb , buf , sizeof ( buf ) ) ;\n }\n if ( ( startpos + header_size ) > avio_tell ( pb ) ) avio_skip ( pb , header_size + startpos - avio_tell ( pb ) ) ;\n if ( bytes_per_minute ) st -> codecpar -> bit_rate = 8LL * bytes_per_minute / 60 ;\n st -> codecpar -> sample_rate = 8000 ;\n st -> codecpar -> channels = 1 ;\n st -> codecpar -> channel_layout = AV_CH_LAYOUT_MONO ;\n st -> codecpar -> codec_type = AVMEDIA_TYPE_AUDIO ;\n st -> codecpar -> codec_id = AV_CODEC_ID_RA_144 ;\n ast -> deint_id = DEINT_ID_INT0 ;\n }\n else {\n int flavor , sub_packet_h , coded_framesize , sub_packet_size ;\n int codecdata_length ;\n unsigned bytes_per_minute ;\n avio_skip ( pb , 2 ) ;\n avio_rb32 ( pb ) ;\n avio_rb32 ( pb ) ;\n avio_rb16 ( pb ) ;\n avio_rb32 ( pb ) ;\n flavor = avio_rb16 ( pb ) ;\n ast -> coded_framesize = coded_framesize = avio_rb32 ( pb ) ;\n avio_rb32 ( pb ) ;\n bytes_per_minute = avio_rb32 ( pb ) ;\n if ( version == 4 ) {\n if ( bytes_per_minute ) st -> codecpar -> bit_rate = 8LL * bytes_per_minute / 60 ;\n }\n avio_rb32 ( pb ) ;\n ast -> sub_packet_h = sub_packet_h = avio_rb16 ( pb ) ;\n st -> codecpar -> block_align = avio_rb16 ( pb ) ;\n ast -> sub_packet_size = sub_packet_size = avio_rb16 ( pb ) ;\n avio_rb16 ( pb ) ;\n if ( version == 5 ) {\n avio_rb16 ( pb ) ;\n avio_rb16 ( pb ) ;\n avio_rb16 ( pb ) ;\n }\n st -> codecpar -> sample_rate = avio_rb16 ( pb ) ;\n avio_rb32 ( pb ) ;\n st -> codecpar -> channels = avio_rb16 ( pb ) ;\n if ( version == 5 ) {\n ast -> deint_id = avio_rl32 ( pb ) ;\n avio_read ( pb , buf , 4 ) ;\n buf [ 4 ] = 0 ;\n }\n else {\n AV_WL32 ( buf , 0 ) ;\n get_str8 ( pb , buf , sizeof ( buf ) ) ;\n ast -> deint_id = AV_RL32 ( buf ) ;\n get_str8 ( pb , buf , sizeof ( buf ) ) ;\n }\n st -> codecpar -> codec_type = AVMEDIA_TYPE_AUDIO ;\n st -> codecpar -> codec_tag = AV_RL32 ( buf ) ;\n st -> codecpar -> codec_id = ff_codec_get_id ( ff_rm_codec_tags , st -> codecpar -> codec_tag ) ;\n switch ( st -> codecpar -> codec_id ) {\n case AV_CODEC_ID_AC3 : st -> need_parsing = AVSTREAM_PARSE_FULL ;\n break ;\n case AV_CODEC_ID_RA_288 : st -> codecpar -> extradata_size = 0 ;\n av_freep ( & st -> codecpar -> extradata ) ;\n ast -> audio_framesize = st -> codecpar -> block_align ;\n st -> codecpar -> block_align = coded_framesize ;\n break ;\n case AV_CODEC_ID_COOK : st -> need_parsing = AVSTREAM_PARSE_HEADERS ;\n case AV_CODEC_ID_ATRAC3 : case AV_CODEC_ID_SIPR : if ( read_all ) {\n codecdata_length = 0 ;\n }\n else {\n avio_rb16 ( pb ) ;\n avio_r8 ( pb ) ;\n if ( version == 5 ) avio_r8 ( pb ) ;\n codecdata_length = avio_rb32 ( pb ) ;\n if ( codecdata_length + AV_INPUT_BUFFER_PADDING_SIZE <= ( unsigned ) codecdata_length ) {\n av_log ( s , AV_LOG_ERROR , \"codecdata_length too large\\n\" ) ;\n return - 1 ;\n }\n }\n ast -> audio_framesize = st -> codecpar -> block_align ;\n if ( st -> codecpar -> codec_id == AV_CODEC_ID_SIPR ) {\n if ( flavor > 3 ) {\n av_log ( s , AV_LOG_ERROR , \"bad SIPR file flavor %d\\n\" , flavor ) ;\n return - 1 ;\n }\n st -> codecpar -> block_align = ff_sipr_subpk_size [ flavor ] ;\n st -> need_parsing = AVSTREAM_PARSE_FULL_RAW ;\n }\n else {\n if ( sub_packet_size <= 0 ) {\n av_log ( s , AV_LOG_ERROR , \"sub_packet_size is invalid\\n\" ) ;\n return - 1 ;\n }\n st -> codecpar -> block_align = ast -> sub_packet_size ;\n }\n if ( ( ret = rm_read_extradata ( s , pb , st -> codecpar , codecdata_length ) ) < 0 ) return ret ;\n break ;\n case AV_CODEC_ID_AAC : avio_rb16 ( pb ) ;\n avio_r8 ( pb ) ;\n if ( version == 5 ) avio_r8 ( pb ) ;\n codecdata_length = avio_rb32 ( pb ) ;\n if ( codecdata_length + AV_INPUT_BUFFER_PADDING_SIZE <= ( unsigned ) codecdata_length ) {\n av_log ( s , AV_LOG_ERROR , \"codecdata_length too large\\n\" ) ;\n return - 1 ;\n }\n if ( codecdata_length >= 1 ) {\n avio_r8 ( pb ) ;\n if ( ( ret = rm_read_extradata ( s , pb , st -> codecpar , codecdata_length - 1 ) ) < 0 ) return ret ;\n }\n break ;\n }\n switch ( ast -> deint_id ) {\n case DEINT_ID_INT4 : if ( ast -> coded_framesize > ast -> audio_framesize || sub_packet_h <= 1 || ast -> coded_framesize * sub_packet_h > ( 2 + ( sub_packet_h & 1 ) ) * ast -> audio_framesize ) return AVERROR_INVALIDDATA ;\n if ( ast -> coded_framesize * sub_packet_h != 2 * ast -> audio_framesize ) {\n avpriv_request_sample ( s , \"mismatching interleaver parameters\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n break ;\n case DEINT_ID_GENR : if ( ast -> sub_packet_size <= 0 || ast -> sub_packet_size > ast -> audio_framesize ) return AVERROR_INVALIDDATA ;\n if ( ast -> audio_framesize % ast -> sub_packet_size ) return AVERROR_INVALIDDATA ;\n break ;\n case DEINT_ID_SIPR : case DEINT_ID_INT0 : case DEINT_ID_VBRS : case DEINT_ID_VBRF : break ;\n default : av_log ( s , AV_LOG_ERROR , \"Unknown interleaver %\" PRIX32 \"\\n\" , ast -> deint_id ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ast -> deint_id == DEINT_ID_INT4 || ast -> deint_id == DEINT_ID_GENR || ast -> deint_id == DEINT_ID_SIPR ) {\n if ( st -> codecpar -> block_align <= 0 || ast -> audio_framesize * sub_packet_h > ( unsigned ) INT_MAX || ast -> audio_framesize * sub_packet_h < st -> codecpar -> block_align ) return AVERROR_INVALIDDATA ;\n if ( av_new_packet ( & ast -> pkt , ast -> audio_framesize * sub_packet_h ) < 0 ) return AVERROR ( ENOMEM ) ;\n }\n if ( read_all ) {\n avio_r8 ( pb ) ;\n avio_r8 ( pb ) ;\n avio_r8 ( pb ) ;\n rm_read_metadata ( s , pb , 0 ) ;\n }\n }\n return 0 ;\n }"}
{"idx": 11171, "target": 0, "func": "static char * wv_csp13_opaque_literal_tag ( tvbuff_t * tvb , guint32 offset , const char * token , guint8 codepage _U_ , guint32 * length ) {\n guint32 data_len = tvb_get_guintvar ( tvb , offset , length ) ;\n char * str = NULL ;\n if ( token && ( ( strcmp ( token , \"Code\" ) == 0 ) || ( strcmp ( token , \"ContentSize\" ) == 0 ) || ( strcmp ( token , \"MessageCount\" ) == 0 ) || ( strcmp ( token , \"Validity\" ) == 0 ) || ( strcmp ( token , \"KeepAliveTime\" ) == 0 ) || ( strcmp ( token , \"TimeToLive\" ) == 0 ) || ( strcmp ( token , \"AcceptedContentLength\" ) == 0 ) || ( strcmp ( token , \"MultiTrans\" ) == 0 ) || ( strcmp ( token , \"ParserSize\" ) == 0 ) || ( strcmp ( token , \"ServerPollMin\" ) == 0 ) || ( strcmp ( token , \"TCPPort\" ) == 0 ) || ( strcmp ( token , \"UDPPort\" ) == 0 ) || ( strcmp ( token , \"HistoryPeriod\" ) == 0 ) || ( strcmp ( token , \"MaxWatcherList\" ) == 0 ) || ( strcmp ( token , \"SearchFindings\" ) == 0 ) || ( strcmp ( token , \"SearchID\" ) == 0 ) || ( strcmp ( token , \"SearchIndex\" ) == 0 ) || ( strcmp ( token , \"SearchLimit\" ) == 0 ) || ( strcmp ( token , \"AcceptedPullLength\" ) == 0 ) || ( strcmp ( token , \"AcceptedPushLength\" ) == 0 ) || ( strcmp ( token , \"AcceptedRichContentLength\" ) == 0 ) || ( strcmp ( token , \"AcceptedTextContentLength\" ) == 0 ) || ( strcmp ( token , \"SessionPriority\" ) == 0 ) || ( strcmp ( token , \"UserSessionLimit\" ) == 0 ) || ( strcmp ( token , \"MultiTransPerMessage\" ) == 0 ) || ( strcmp ( token , \"ContentPolicyLimit\" ) == 0 ) || ( strcmp ( token , \"AnswerOptionID\" ) == 0 ) || ( strcmp ( token , \"SegmentCount\" ) == 0 ) || ( strcmp ( token , \"SegmentReference\" ) == 0 ) || ( strcmp ( token , \"TryAgainTimeout\" ) == 0 ) || ( strcmp ( token , \"GroupContentLimit\" ) == 0 ) || ( strcmp ( token , \"MessageTotalCount\" ) == 0 ) || ( strcmp ( token , \"PairID\" ) == 0 ) ) ) {\n str = wv_integer_from_opaque ( tvb , offset + * length , data_len ) ;\n }\n else if ( token && ( ( strcmp ( token , \"DateTime\" ) == 0 ) || ( strcmp ( token , \"DeliveryTime\" ) == 0 ) ) ) {\n str = wv_datetime_from_opaque ( tvb , offset + * length , data_len ) ;\n }\n if ( str == NULL ) {\n str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"(%d bytes of unparsed opaque data)\" , data_len ) ;\n }\n * length += data_len ;\n return str ;\n }"}
{"idx": 11172, "target": 0, "func": "static void ohci_mem_write ( void * opaque , hwaddr addr , uint64_t val , unsigned size ) {\n OHCIState * ohci = opaque ;\n if ( addr & 3 ) {\n trace_usb_ohci_mem_write_unaligned ( addr ) ;\n return ;\n }\n if ( addr >= 0x54 && addr < 0x54 + ohci -> num_ports * 4 ) {\n ohci_port_set_status ( ohci , ( addr - 0x54 ) >> 2 , val ) ;\n return ;\n }\n switch ( addr >> 2 ) {\n case 1 : ohci_set_ctl ( ohci , val ) ;\n break ;\n case 2 : val = ( val & ~ OHCI_STATUS_SOC ) ;\n ohci -> status |= val ;\n if ( ohci -> status & OHCI_STATUS_HCR ) ohci_soft_reset ( ohci ) ;\n break ;\n case 3 : ohci -> intr_status &= ~ val ;\n ohci_intr_update ( ohci ) ;\n break ;\n case 4 : ohci -> intr |= val ;\n ohci_intr_update ( ohci ) ;\n break ;\n case 5 : ohci -> intr &= ~ val ;\n ohci_intr_update ( ohci ) ;\n break ;\n case 6 : ohci -> hcca = val & OHCI_HCCA_MASK ;\n break ;\n case 7 : break ;\n case 8 : ohci -> ctrl_head = val & OHCI_EDPTR_MASK ;\n break ;\n case 9 : ohci -> ctrl_cur = val & OHCI_EDPTR_MASK ;\n break ;\n case 10 : ohci -> bulk_head = val & OHCI_EDPTR_MASK ;\n break ;\n case 11 : ohci -> bulk_cur = val & OHCI_EDPTR_MASK ;\n break ;\n case 13 : ohci -> fsmps = ( val & OHCI_FMI_FSMPS ) >> 16 ;\n ohci -> fit = ( val & OHCI_FMI_FIT ) >> 31 ;\n ohci_set_frame_interval ( ohci , val ) ;\n break ;\n case 15 : break ;\n case 16 : ohci -> pstart = val & 0xffff ;\n break ;\n case 17 : ohci -> lst = val & 0xffff ;\n break ;\n case 18 : ohci -> rhdesc_a &= ~ OHCI_RHA_RW_MASK ;\n ohci -> rhdesc_a |= val & OHCI_RHA_RW_MASK ;\n break ;\n case 19 : break ;\n case 20 : ohci_set_hub_status ( ohci , val ) ;\n break ;\n case 24 : ohci -> hstatus &= ~ ( val & ohci -> hmask ) ;\n break ;\n case 25 : ohci -> hreset = val & ~ OHCI_HRESET_FSBIR ;\n if ( val & OHCI_HRESET_FSBIR ) ohci_hard_reset ( ohci ) ;\n break ;\n case 26 : ohci -> hmask = val ;\n break ;\n case 27 : ohci -> htest = val ;\n break ;\n default : trace_usb_ohci_mem_write_bad_offset ( addr ) ;\n break ;\n }\n }"}
{"idx": 11173, "target": 0, "func": "Jbig2Image * jbig2_page_out ( Jbig2Ctx * ctx ) {\n int index ;\n for ( index = 0 ;\n index < ctx -> max_page_index ;\n index ++ ) {\n if ( ctx -> pages [ index ] . state == JBIG2_PAGE_COMPLETE ) {\n Jbig2Image * img = ctx -> pages [ index ] . image ;\n uint32_t page_number = ctx -> pages [ index ] . number ;\n ctx -> pages [ index ] . state = JBIG2_PAGE_RETURNED ;\n if ( img != NULL ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_DEBUG , - 1 , \"page %d returned to the client\" , page_number ) ;\n return jbig2_image_clone ( ctx , img ) ;\n }\n else {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , - 1 , \"page %d returned with no associated image\" , page_number ) ;\n ;\n }\n }\n }\n return NULL ;\n }"}
{"idx": 11174, "target": 0, "func": "static int dissect_h245_INTEGER_1_15 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 15U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 11175, "target": 0, "func": "static void reset_h245_pi ( void * dummy _U_ ) {\n h245_pi = NULL ;\n }"}
{"idx": 11176, "target": 0, "func": "void pdf_map_one_to_many ( fz_context * ctx , pdf_cmap * cmap , unsigned int low , int * values , int len ) {\n if ( len == 1 ) {\n add_range ( ctx , cmap , low , low , values [ 0 ] , 1 , 0 ) ;\n return ;\n }\n if ( len == 2 && values [ 0 ] >= 0xD800 && values [ 0 ] <= 0xDBFF && values [ 1 ] >= 0xDC00 && values [ 1 ] <= 0xDFFF ) {\n int rune = ( ( values [ 0 ] - 0xD800 ) << 10 ) + ( values [ 1 ] - 0xDC00 ) + 0x10000 ;\n add_range ( ctx , cmap , low , low , rune , 1 , 0 ) ;\n return ;\n }\n if ( len > PDF_MRANGE_CAP ) {\n fz_warn ( ctx , \"ignoring one to many mapping in cmap %s\" , cmap -> cmap_name ) ;\n return ;\n }\n add_mrange ( ctx , cmap , low , values , len ) ;\n }"}
{"idx": 11177, "target": 1, "func": "static void encode_block_intra ( int plane , int block , BLOCK_SIZE plane_bsize , TX_SIZE tx_size , void * arg ) {\n struct encode_b_args * const args = arg ;\n MACROBLOCK * const x = args -> x ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n MB_MODE_INFO * mbmi = & xd -> mi [ 0 ] -> mbmi ;\n struct macroblock_plane * const p = & x -> plane [ plane ] ;\n struct macroblockd_plane * const pd = & xd -> plane [ plane ] ;\n int16_t * coeff = BLOCK_OFFSET ( p -> coeff , block ) ;\n int16_t * qcoeff = BLOCK_OFFSET ( p -> qcoeff , block ) ;\n int16_t * dqcoeff = BLOCK_OFFSET ( pd -> dqcoeff , block ) ;\n const scan_order * scan_order ;\n TX_TYPE tx_type ;\n PREDICTION_MODE mode ;\n const int bwl = b_width_log2 ( plane_bsize ) ;\n const int diff_stride = 4 * ( 1 << bwl ) ;\n uint8_t * src , * dst ;\n int16_t * src_diff ;\n uint16_t * eob = & p -> eobs [ block ] ;\n const int src_stride = p -> src . stride ;\n const int dst_stride = pd -> dst . stride ;\n int i , j ;\n txfrm_block_to_raster_xy ( plane_bsize , tx_size , block , & i , & j ) ;\n dst = & pd -> dst . buf [ 4 * ( j * dst_stride + i ) ] ;\n src = & p -> src . buf [ 4 * ( j * src_stride + i ) ] ;\n src_diff = & p -> src_diff [ 4 * ( j * diff_stride + i ) ] ;\n switch ( tx_size ) {\n case TX_32X32 : scan_order = & vp9_default_scan_orders [ TX_32X32 ] ;\n mode = plane == 0 ? mbmi -> mode : mbmi -> uv_mode ;\n vp9_predict_intra_block ( xd , block >> 6 , bwl , TX_32X32 , mode , x -> skip_encode ? src : dst , x -> skip_encode ? src_stride : dst_stride , dst , dst_stride , i , j , plane ) ;\n if ( ! x -> skip_recode ) {\n vp9_subtract_block ( 32 , 32 , src_diff , diff_stride , src , src_stride , dst , dst_stride ) ;\n fdct32x32 ( x -> use_lp32x32fdct , src_diff , coeff , diff_stride ) ;\n vp9_quantize_b_32x32 ( coeff , 1024 , x -> skip_block , p -> zbin , p -> round , p -> quant , p -> quant_shift , qcoeff , dqcoeff , pd -> dequant , p -> zbin_extra , eob , scan_order -> scan , scan_order -> iscan ) ;\n }\n if ( ! x -> skip_encode && * eob ) vp9_idct32x32_add ( dqcoeff , dst , dst_stride , * eob ) ;\n break ;\n case TX_16X16 : tx_type = get_tx_type ( pd -> plane_type , xd ) ;\n scan_order = & vp9_scan_orders [ TX_16X16 ] [ tx_type ] ;\n mode = plane == 0 ? mbmi -> mode : mbmi -> uv_mode ;\n vp9_predict_intra_block ( xd , block >> 4 , bwl , TX_16X16 , mode , x -> skip_encode ? src : dst , x -> skip_encode ? src_stride : dst_stride , dst , dst_stride , i , j , plane ) ;\n if ( ! x -> skip_recode ) {\n vp9_subtract_block ( 16 , 16 , src_diff , diff_stride , src , src_stride , dst , dst_stride ) ;\n vp9_fht16x16 ( src_diff , coeff , diff_stride , tx_type ) ;\n vp9_quantize_b ( coeff , 256 , x -> skip_block , p -> zbin , p -> round , p -> quant , p -> quant_shift , qcoeff , dqcoeff , pd -> dequant , p -> zbin_extra , eob , scan_order -> scan , scan_order -> iscan ) ;\n }\n if ( ! x -> skip_encode && * eob ) vp9_iht16x16_add ( tx_type , dqcoeff , dst , dst_stride , * eob ) ;\n break ;\n case TX_8X8 : tx_type = get_tx_type ( pd -> plane_type , xd ) ;\n scan_order = & vp9_scan_orders [ TX_8X8 ] [ tx_type ] ;\n mode = plane == 0 ? mbmi -> mode : mbmi -> uv_mode ;\n vp9_predict_intra_block ( xd , block >> 2 , bwl , TX_8X8 , mode , x -> skip_encode ? src : dst , x -> skip_encode ? src_stride : dst_stride , dst , dst_stride , i , j , plane ) ;\n if ( ! x -> skip_recode ) {\n vp9_subtract_block ( 8 , 8 , src_diff , diff_stride , src , src_stride , dst , dst_stride ) ;\n vp9_fht8x8 ( src_diff , coeff , diff_stride , tx_type ) ;\n vp9_quantize_b ( coeff , 64 , x -> skip_block , p -> zbin , p -> round , p -> quant , p -> quant_shift , qcoeff , dqcoeff , pd -> dequant , p -> zbin_extra , eob , scan_order -> scan , scan_order -> iscan ) ;\n }\n if ( ! x -> skip_encode && * eob ) vp9_iht8x8_add ( tx_type , dqcoeff , dst , dst_stride , * eob ) ;\n break ;\n case TX_4X4 : tx_type = get_tx_type_4x4 ( pd -> plane_type , xd , block ) ;\n scan_order = & vp9_scan_orders [ TX_4X4 ] [ tx_type ] ;\n mode = plane == 0 ? get_y_mode ( xd -> mi [ 0 ] , block ) : mbmi -> uv_mode ;\n vp9_predict_intra_block ( xd , block , bwl , TX_4X4 , mode , x -> skip_encode ? src : dst , x -> skip_encode ? src_stride : dst_stride , dst , dst_stride , i , j , plane ) ;\n if ( ! x -> skip_recode ) {\n vp9_subtract_block ( 4 , 4 , src_diff , diff_stride , src , src_stride , dst , dst_stride ) ;\n if ( tx_type != DCT_DCT ) vp9_fht4x4 ( src_diff , coeff , diff_stride , tx_type ) ;\n else x -> fwd_txm4x4 ( src_diff , coeff , diff_stride ) ;\n vp9_quantize_b ( coeff , 16 , x -> skip_block , p -> zbin , p -> round , p -> quant , p -> quant_shift , qcoeff , dqcoeff , pd -> dequant , p -> zbin_extra , eob , scan_order -> scan , scan_order -> iscan ) ;\n }\n if ( ! x -> skip_encode && * eob ) {\n if ( tx_type == DCT_DCT ) x -> itxm_add ( dqcoeff , dst , dst_stride , * eob ) ;\n else vp9_iht4x4_16_add ( dqcoeff , dst , dst_stride , tx_type ) ;\n }\n break ;\n default : assert ( 0 ) ;\n break ;\n }\n if ( * eob ) * ( args -> skip ) = 0 ;\n }"}
{"idx": 11178, "target": 1, "func": "static int msrle_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n MsrleContext * s = avctx -> priv_data ;\n int istride = FFALIGN ( avctx -> width * avctx -> bits_per_coded_sample , 32 ) / 8 ;\n int ret ;\n s -> buf = buf ;\n s -> size = buf_size ;\n s -> frame . reference = 1 ;\n s -> frame . buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE ;\n if ( ( ret = avctx -> reget_buffer ( avctx , & s -> frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( avctx -> bits_per_coded_sample <= 8 ) {\n const uint8_t * pal = av_packet_get_side_data ( avpkt , AV_PKT_DATA_PALETTE , NULL ) ;\n if ( pal ) {\n s -> frame . palette_has_changed = 1 ;\n memcpy ( s -> pal , pal , AVPALETTE_SIZE ) ;\n }\n memcpy ( s -> frame . data [ 1 ] , s -> pal , AVPALETTE_SIZE ) ;\n }\n if ( avctx -> height * istride == avpkt -> size ) {\n int linesize = avctx -> width * avctx -> bits_per_coded_sample / 8 ;\n uint8_t * ptr = s -> frame . data [ 0 ] ;\n uint8_t * buf = avpkt -> data + ( avctx -> height - 1 ) * istride ;\n int i , j ;\n for ( i = 0 ;\n i < avctx -> height ;\n i ++ ) {\n if ( avctx -> bits_per_coded_sample == 4 ) {\n for ( j = 0 ;\n j < avctx -> width - 1 ;\n j += 2 ) {\n ptr [ j + 0 ] = buf [ j >> 1 ] >> 4 ;\n ptr [ j + 1 ] = buf [ j >> 1 ] & 0xF ;\n }\n if ( avctx -> width & 1 ) ptr [ j + 0 ] = buf [ j >> 1 ] >> 4 ;\n }\n else {\n memcpy ( ptr , buf , linesize ) ;\n }\n buf -= istride ;\n ptr += s -> frame . linesize [ 0 ] ;\n }\n }\n else {\n bytestream2_init ( & s -> gb , buf , buf_size ) ;\n ff_msrle_decode ( avctx , ( AVPicture * ) & s -> frame , avctx -> bits_per_coded_sample , & s -> gb ) ;\n }\n * got_frame = 1 ;\n * ( AVFrame * ) data = s -> frame ;\n return buf_size ;\n }"}
{"idx": 11179, "target": 0, "func": "static ssize_t compress_filter_read ( struct archive_read_filter * self , const void * * pblock ) {\n struct private_data * state ;\n unsigned char * p , * start , * end ;\n int ret ;\n state = ( struct private_data * ) self -> data ;\n if ( state -> end_of_stream ) {\n * pblock = NULL ;\n return ( 0 ) ;\n }\n p = start = ( unsigned char * ) state -> out_block ;\n end = start + state -> out_block_size ;\n while ( p < end && ! state -> end_of_stream ) {\n if ( state -> stackp > state -> stack ) {\n * p ++ = * -- state -> stackp ;\n }\n else {\n ret = next_code ( self ) ;\n if ( ret == - 1 ) state -> end_of_stream = ret ;\n else if ( ret != ARCHIVE_OK ) return ( ret ) ;\n }\n }\n * pblock = start ;\n return ( p - start ) ;\n }"}
{"idx": 11180, "target": 0, "func": "int release_vp9_frame_buffer ( void * cb_priv , vpx_codec_frame_buffer_t * fb ) {\n struct ExternalFrameBuffer * const ext_fb = ( struct ExternalFrameBuffer * ) fb -> priv ;\n ( void ) cb_priv ;\n ext_fb -> in_use = 0 ;\n return 0 ;\n }"}
{"idx": 11181, "target": 0, "func": "static void writer_print_data_hash ( WriterContext * wctx , const char * name , uint8_t * data , int size ) {\n char * p , buf [ AV_HASH_MAX_SIZE * 2 + 64 ] = {\n 0 }\n ;\n if ( ! hash ) return ;\n av_hash_init ( hash ) ;\n av_hash_update ( hash , data , size ) ;\n snprintf ( buf , sizeof ( buf ) , \"%s:\" , av_hash_get_name ( hash ) ) ;\n p = buf + strlen ( buf ) ;\n av_hash_final_hex ( hash , p , buf + sizeof ( buf ) - p ) ;\n writer_print_string ( wctx , name , buf , 0 ) ;\n }"}
{"idx": 11182, "target": 0, "func": "void TSLifecycleHookAdd ( TSLifecycleHookID id , TSCont contp ) {\n sdk_assert ( sdk_sanity_check_continuation ( contp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_lifecycle_hook_id ( id ) == TS_SUCCESS ) ;\n lifecycle_hooks -> append ( id , ( INKContInternal * ) contp ) ;\n }"}
{"idx": 11183, "target": 0, "func": "static int dump_all_databases ( ) {\n MYSQL_ROW row ;\n MYSQL_RES * tableres ;\n int result = 0 ;\n if ( mysql_query_with_error_report ( mysql , & tableres , \"SHOW DATABASES\" ) ) return 1 ;\n while ( ( row = mysql_fetch_row ( tableres ) ) ) {\n if ( mysql_get_server_version ( mysql ) >= FIRST_INFORMATION_SCHEMA_VERSION && ! my_strcasecmp ( & my_charset_latin1 , row [ 0 ] , INFORMATION_SCHEMA_DB_NAME ) ) continue ;\n if ( mysql_get_server_version ( mysql ) >= FIRST_PERFORMANCE_SCHEMA_VERSION && ! my_strcasecmp ( & my_charset_latin1 , row [ 0 ] , PERFORMANCE_SCHEMA_DB_NAME ) ) continue ;\n if ( dump_all_tables_in_db ( row [ 0 ] ) ) result = 1 ;\n }\n mysql_free_result ( tableres ) ;\n if ( seen_views ) {\n if ( mysql_query ( mysql , \"SHOW DATABASES\" ) || ! ( tableres = mysql_store_result ( mysql ) ) ) {\n fprintf ( stderr , \"%s: Error: Couldn't execute 'SHOW DATABASES': %s\\n\" , my_progname_short , mysql_error ( mysql ) ) ;\n return 1 ;\n }\n while ( ( row = mysql_fetch_row ( tableres ) ) ) {\n if ( mysql_get_server_version ( mysql ) >= FIRST_INFORMATION_SCHEMA_VERSION && ! my_strcasecmp ( & my_charset_latin1 , row [ 0 ] , INFORMATION_SCHEMA_DB_NAME ) ) continue ;\n if ( mysql_get_server_version ( mysql ) >= FIRST_PERFORMANCE_SCHEMA_VERSION && ! my_strcasecmp ( & my_charset_latin1 , row [ 0 ] , PERFORMANCE_SCHEMA_DB_NAME ) ) continue ;\n if ( dump_all_views_in_db ( row [ 0 ] ) ) result = 1 ;\n }\n mysql_free_result ( tableres ) ;\n }\n return result ;\n }"}
{"idx": 11184, "target": 0, "func": "guint16 elem_tlv ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint8 iei , gint pdu_type , int idx , guint32 offset , guint len _U_ , const gchar * name_add ) {\n guint8 oct ;\n guint16 parm_len ;\n guint8 lengt_length = 1 ;\n guint16 consumed ;\n guint32 curr_offset ;\n proto_tree * subtree ;\n proto_item * item ;\n value_string_ext elem_names_ext ;\n gint * elem_ett ;\n const gchar * elem_name ;\n guint16 ( * * elem_funcs ) ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string , int string_len ) ;\n curr_offset = offset ;\n consumed = 0 ;\n SET_ELEM_VARS ( pdu_type , elem_names_ext , elem_ett , elem_funcs , & ei_gsm_a_unknown_pdu_type ) ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n if ( oct == iei ) {\n parm_len = tvb_get_guint8 ( tvb , curr_offset + 1 ) ;\n elem_name = try_val_to_str_ext ( idx , & elem_names_ext ) ;\n if ( elem_name == NULL ) {\n proto_tree_add_expert_format ( tree , pinfo , & ei_gsm_a_unknown_element , tvb , curr_offset , parm_len + 1 + lengt_length , \"Unknown - aborting dissection%s\" , ( name_add == NULL ) || ( name_add [ 0 ] == '\\0' ) ? \"\" : name_add ) ;\n return consumed ;\n }\n subtree = proto_tree_add_subtree_format ( tree , tvb , curr_offset , parm_len + 1 + lengt_length , elem_ett [ idx ] , & item , \"%s%s\" , elem_name , ( name_add == NULL ) || ( name_add [ 0 ] == '\\0' ) ? \"\" : name_add ) ;\n proto_tree_add_uint ( subtree , get_hf_elem_id ( pdu_type ) , tvb , curr_offset , 1 , oct ) ;\n proto_tree_add_uint ( subtree , hf_gsm_a_length , tvb , curr_offset + 1 , lengt_length , parm_len ) ;\n if ( parm_len > 0 ) {\n if ( elem_funcs [ idx ] == NULL ) {\n proto_tree_add_item ( subtree , hf_gsm_a_element_value , tvb , curr_offset + 1 + lengt_length , parm_len , ENC_NA ) ;\n consumed = ( guint8 ) parm_len ;\n }\n else {\n gchar * a_add_string ;\n a_add_string = ( gchar * ) wmem_alloc ( wmem_packet_scope ( ) , 1024 ) ;\n a_add_string [ 0 ] = '\\0' ;\n consumed = ( * elem_funcs [ idx ] ) ( tvb , subtree , pinfo , curr_offset + 2 , parm_len , a_add_string , 1024 ) ;\n if ( a_add_string [ 0 ] != '\\0' ) {\n proto_item_append_text ( item , \"%s\" , a_add_string ) ;\n }\n }\n }\n consumed += 1 + lengt_length ;\n }\n return consumed ;\n }"}
{"idx": 11185, "target": 0, "func": "static int dissect_pvfs2_mgmt_remove_dirent_request ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"handle\" , NULL ) ;\n offset = dissect_pvfs_fs_id ( tvb , tree , offset ) ;\n offset += 4 ;\n offset = dissect_pvfs_string ( tvb , tree , hf_pvfs_path , offset , NULL ) ;\n return offset ;\n }"}
{"idx": 11186, "target": 1, "func": "extern rtype gnu_dev_ ## name proto __THROW __attribute_const__ ;\n # define __SYSMACROS_IMPL_TEMPL ( rtype , name , proto ) __extension__ __extern_inline __attribute_const__ rtype __NTH ( gnu_dev_ ## name proto ) __BEGIN_DECLS __SYSMACROS_DECLARE_MAJOR ( __SYSMACROS_DECL_TEMPL )"}
{"idx": 11187, "target": 0, "func": "static void filter_selectively_vert ( uint8_t * s , int pitch , unsigned int mask_16x16 , unsigned int mask_8x8 , unsigned int mask_4x4 , unsigned int mask_4x4_int , const loop_filter_info_n * lfi_n , const uint8_t * lfl ) {\n unsigned int mask ;\n for ( mask = mask_16x16 | mask_8x8 | mask_4x4 | mask_4x4_int ;\n mask ;\n mask >>= 1 ) {\n const loop_filter_thresh * lfi = lfi_n -> lfthr + * lfl ;\n if ( mask & 1 ) {\n if ( mask_16x16 & 1 ) {\n vp9_lpf_vertical_16 ( s , pitch , lfi -> mblim , lfi -> lim , lfi -> hev_thr ) ;\n }\n else if ( mask_8x8 & 1 ) {\n vp9_lpf_vertical_8 ( s , pitch , lfi -> mblim , lfi -> lim , lfi -> hev_thr , 1 ) ;\n }\n else if ( mask_4x4 & 1 ) {\n vp9_lpf_vertical_4 ( s , pitch , lfi -> mblim , lfi -> lim , lfi -> hev_thr , 1 ) ;\n }\n }\n if ( mask_4x4_int & 1 ) vp9_lpf_vertical_4 ( s + 4 , pitch , lfi -> mblim , lfi -> lim , lfi -> hev_thr , 1 ) ;\n s += 8 ;\n lfl += 1 ;\n mask_16x16 >>= 1 ;\n mask_8x8 >>= 1 ;\n mask_4x4 >>= 1 ;\n mask_4x4_int >>= 1 ;\n }\n }"}
{"idx": 11188, "target": 0, "func": "static void indent ( int32_t count , FILE * f ) {\n char c [ BUF_SIZE ] ;\n if ( count <= 0 ) {\n return ;\n }\n if ( count < BUF_SIZE ) {\n memset ( c , ( int ) ' ' , count ) ;\n fwrite ( c , sizeof ( char ) , count , f ) ;\n }\n else {\n int32_t i ;\n for ( i = 0 ;\n i < count ;\n ++ i ) putc ( ' ' , f ) ;\n }\n }"}
{"idx": 11189, "target": 0, "func": "static VALUE ossl_cipher_name ( VALUE self ) {\n EVP_CIPHER_CTX * ctx ;\n GetCipher ( self , ctx ) ;\n return rb_str_new2 ( EVP_CIPHER_name ( EVP_CIPHER_CTX_cipher ( ctx ) ) ) ;\n }"}
{"idx": 11190, "target": 0, "func": "static inline bool ipv6_addr_v4mapped ( const struct in6_addr * a ) {\n return ( a -> s6_addr32 [ 0 ] | a -> s6_addr32 [ 1 ] | ( a -> s6_addr32 [ 2 ] ^ htonl ( 0x0000ffff ) ) ) == 0 ;\n }"}
{"idx": 11191, "target": 0, "func": "struct archive_wstring * archive_wstrcat ( struct archive_wstring * as , const wchar_t * p ) {\n return archive_wstrncat ( as , p , 0x1000000 ) ;\n }"}
{"idx": 11192, "target": 0, "func": "static int dissect_ber_sq_of ( gboolean implicit_tag , gint32 type , asn1_ctx_t * actx , proto_tree * parent_tree , tvbuff_t * tvb , int offset , gint32 min_len , gint32 max_len , const ber_sequence_t * seq , gint hf_id , gint ett_id ) {\n gint8 classx ;\n gboolean pcx , ind = FALSE , ind_field ;\n gint32 tagx ;\n guint32 lenx ;\n proto_tree * tree = parent_tree ;\n proto_item * item = NULL ;\n proto_item * causex ;\n int cnt , hoffsetx , end_offset ;\n gboolean have_cnt ;\n header_field_info * hfi ;\n tvbuff_t * next_tvb ;\n # ifdef DEBUG_BER_SQ_OF {\n const char * name ;\n header_field_info * hfinfo ;\n if ( hf_id >= 0 ) {\n hfinfo = proto_registrar_get_nth ( hf_id ) ;\n name = hfinfo -> name ;\n }\n else {\n name = \"unnamed\" ;\n }\n if ( tvb_reported_length_remaining ( tvb , offset ) > 3 ) {\n printf ( \"SQ OF dissect_ber_sq_of(%s) entered implicit_tag:%d offset:%d len:%d %02x:%02x:%02x\\n\" , name , implicit_tag , offset , tvb_reported_length_remaining ( tvb , offset ) , tvb_get_guint8 ( tvb , offset ) , tvb_get_guint8 ( tvb , offset + 1 ) , tvb_get_guint8 ( tvb , offset + 2 ) ) ;\n }\n else {\n printf ( \"SQ OF dissect_ber_sq_of(%s) entered\\n\" , name ) ;\n }\n }\n # endif if ( ! implicit_tag ) {\n hoffsetx = offset ;\n offset = dissect_ber_identifier ( actx -> pinfo , tree , tvb , offset , & classx , & pcx , & tagx ) ;\n offset = dissect_ber_length ( actx -> pinfo , tree , tvb , offset , & lenx , & ind ) ;\n end_offset = offset + lenx ;\n if ( ( classx != BER_CLASS_APP ) && ( classx != BER_CLASS_PRI ) ) {\n if ( ! pcx || ( ! implicit_tag && ( ( classx != BER_CLASS_UNI ) || ( tagx != type ) ) ) ) {\n tvb_ensure_bytes_exist ( tvb , hoffsetx , 2 ) ;\n causex = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset , lenx , ( type == BER_UNI_TAG_SEQUENCE ) ? \"set_of_expected\" : \"sequence_of_expected\" , \"%s Of expected but class:%s(%d) %s tag:%d was unexpected\" , ( type == BER_UNI_TAG_SEQUENCE ) ? \"Set\" : \"Sequence\" , val_to_str_const ( classx , ber_class_codes , \"Unknown\" ) , classx , pcx ? ber_pc_codes_short . true_string : ber_pc_codes_short . false_string , tagx ) ;\n if ( type == BER_UNI_TAG_SEQUENCE ) {\n expert_add_info_format ( actx -> pinfo , causex , & ei_ber_expected_set , \"BER Error: Set Of expected\" ) ;\n }\n else {\n expert_add_info_format ( actx -> pinfo , causex , & ei_ber_expected_sequence , \"BER Error: Sequence Of expected\" ) ;\n }\n if ( decode_unexpected ) {\n proto_tree * unknown_tree = proto_item_add_subtree ( causex , ett_ber_unknown ) ;\n dissect_unknown_ber ( actx -> pinfo , tvb , hoffsetx , unknown_tree ) ;\n }\n return end_offset ;\n }\n }\n }\n else {\n lenx = tvb_reported_length_remaining ( tvb , offset ) ;\n end_offset = offset + lenx ;\n }\n cnt = 0 ;\n have_cnt = FALSE ;\n hoffsetx = offset ;\n if ( tvb_captured_length_remaining ( tvb , offset ) == tvb_reported_length_remaining ( tvb , offset ) ) {\n have_cnt = TRUE ;\n while ( offset < end_offset ) {\n guint32 len ;\n gint s_offset ;\n s_offset = offset ;\n if ( ( tvb_get_guint8 ( tvb , offset ) == 0 ) && ( tvb_get_guint8 ( tvb , offset + 1 ) == 0 ) ) {\n break ;\n }\n offset = get_ber_identifier ( tvb , offset , NULL , NULL , NULL ) ;\n offset = get_ber_length ( tvb , offset , & len , & ind ) ;\n offset += len ;\n cnt ++ ;\n if ( offset <= s_offset ) {\n have_cnt = FALSE ;\n cnt = 0 ;\n break ;\n }\n }\n }\n offset = hoffsetx ;\n if ( hf_id >= 0 ) {\n hfi = proto_registrar_get_nth ( hf_id ) ;\n if ( parent_tree ) {\n if ( hfi -> type == FT_NONE ) {\n item = proto_tree_add_item ( parent_tree , hf_id , tvb , offset , lenx , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( item , \":\" ) ;\n }\n else {\n if ( have_cnt ) {\n item = proto_tree_add_uint ( parent_tree , hf_id , tvb , offset , lenx , cnt ) ;\n proto_item_append_text ( item , ( cnt == 1 ) ? \" item\" : \" items\" ) ;\n }\n else item = proto_tree_add_uint_format_value ( parent_tree , hf_id , tvb , offset , lenx , cnt , \"unknown number of items\" ) ;\n }\n tree = proto_item_add_subtree ( item , ett_id ) ;\n ber_check_items ( cnt , min_len , max_len , actx , item ) ;\n }\n }\n while ( offset < end_offset ) {\n gint8 ber_class ;\n gboolean pc ;\n gint32 tag ;\n guint32 len ;\n int eoffset ;\n int hoffset ;\n proto_item * cause ;\n gboolean imp_tag ;\n hoffset = offset ;\n if ( ( tvb_get_guint8 ( tvb , offset ) == 0 ) && ( tvb_get_guint8 ( tvb , offset + 1 ) == 0 ) ) {\n if ( show_internal_ber_fields ) {\n proto_tree_add_item ( tree , hf_ber_seq_of_eoc , tvb , hoffset , end_offset - hoffset , ENC_NA ) ;\n }\n return offset + 2 ;\n }\n offset = get_ber_identifier ( tvb , offset , & ber_class , & pc , & tag ) ;\n offset = get_ber_length ( tvb , offset , & len , & ind_field ) ;\n eoffset = offset + len ;\n if ( eoffset <= hoffset ) THROW ( ReportedBoundsError ) ;\n if ( ( ber_class == BER_CLASS_UNI ) && ( tag == BER_UNI_TAG_EOC ) ) {\n hoffset = dissect_ber_identifier ( actx -> pinfo , tree , tvb , hoffset , NULL , NULL , NULL ) ;\n dissect_ber_length ( actx -> pinfo , tree , tvb , hoffset , NULL , NULL ) ;\n return eoffset ;\n }\n if ( seq -> ber_class != BER_CLASS_ANY ) {\n if ( ( seq -> ber_class != ber_class ) || ( seq -> tag != tag ) ) {\n if ( ! ( seq -> flags & BER_FLAGS_NOTCHKTAG ) ) {\n if ( seq -> ber_class == BER_CLASS_UNI ) {\n cause = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset , len , \"wrong_field\" , \"Wrong field in SQ OF expected class:%s(%d) tag:%d(%s) but found class:%s(%d) tag:%d\" , val_to_str_const ( seq -> ber_class , ber_class_codes , \"Unknown\" ) , seq -> ber_class , seq -> tag , val_to_str_ext_const ( seq -> tag , & ber_uni_tag_codes_ext , \"Unknown\" ) , val_to_str_const ( ber_class , ber_class_codes , \"Unknown\" ) , ber_class , tag ) ;\n }\n else {\n cause = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset , len , \"wrong_field\" , \"Wrong field in SQ OF expected class:%s(%d) tag:%d but found class:%s(%d) tag:%d\" , val_to_str_const ( seq -> ber_class , ber_class_codes , \"Unknown\" ) , seq -> ber_class , seq -> tag , val_to_str_const ( ber_class , ber_class_codes , \"Unknown\" ) , ber_class , tag ) ;\n }\n expert_add_info_format ( actx -> pinfo , cause , & ei_ber_sequence_field_wrong , \"BER Error: Wrong field in SEQUENCE OF\" ) ;\n if ( decode_unexpected ) {\n proto_tree * unknown_tree = proto_item_add_subtree ( cause , ett_ber_unknown ) ;\n dissect_unknown_ber ( actx -> pinfo , tvb , hoffset , unknown_tree ) ;\n }\n offset = eoffset ;\n continue ;\n }\n }\n }\n if ( ! ( seq -> flags & BER_FLAGS_NOOWNTAG ) && ! ( seq -> flags & BER_FLAGS_IMPLTAG ) ) {\n hoffset = dissect_ber_identifier ( actx -> pinfo , tree , tvb , hoffset , NULL , NULL , NULL ) ;\n hoffset = dissect_ber_length ( actx -> pinfo , tree , tvb , hoffset , NULL , NULL ) ;\n }\n if ( ( seq -> flags == BER_FLAGS_IMPLTAG ) && ( seq -> ber_class == BER_CLASS_CON ) ) {\n hoffset = dissect_ber_identifier ( actx -> pinfo , tree , tvb , hoffset , NULL , NULL , NULL ) ;\n hoffset = dissect_ber_length ( actx -> pinfo , tree , tvb , hoffset , NULL , NULL ) ;\n }\n next_tvb = ber_tvb_new_subset_length ( tvb , hoffset , eoffset - hoffset ) ;\n imp_tag = FALSE ;\n if ( seq -> flags == BER_FLAGS_IMPLTAG ) imp_tag = TRUE ;\n seq -> func ( imp_tag , next_tvb , 0 , actx , tree , * seq -> p_id ) ;\n cnt ++ ;\n offset = eoffset ;\n }\n if ( offset != end_offset ) {\n tvb_ensure_bytes_exist ( tvb , offset - 2 , 2 ) ;\n causex = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset - 2 , 2 , \"illegal_length\" , \"%s Of ate %d too many bytes\" , ( type == BER_UNI_TAG_SEQUENCE ) ? \"Set\" : \"Sequence\" , offset - end_offset ) ;\n expert_add_info_format ( actx -> pinfo , causex , & ei_ber_error_length , \"BER Error:too many byte in %s\" , ( type == BER_UNI_TAG_SEQUENCE ) ? \"Set\" : \"Sequence\" ) ;\n }\n return end_offset ;\n }"}
{"idx": 11193, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ExternalProtocolDialogBrowserTest , TestAccept ) {\n ShowDialog ( ) ;\n EXPECT_TRUE ( dialog_ -> Accept ( ) ) ;\n EXPECT_TRUE ( called_ ) ;\n EXPECT_TRUE ( accept_ ) ;\n EXPECT_FALSE ( remember_ ) ;\n histogram_tester_ . ExpectBucketCount ( ExternalProtocolHandler : : kHandleStateMetric , ExternalProtocolHandler : : LAUNCH , 1 ) ;\n }"}
{"idx": 11194, "target": 1, "func": "static int mv_refs_rt ( const VP9_COMMON * cm , const MACROBLOCKD * xd , const TileInfo * const tile , MODE_INFO * mi , MV_REFERENCE_FRAME ref_frame , int_mv * mv_ref_list , int mi_row , int mi_col ) {\n const int * ref_sign_bias = cm -> ref_frame_sign_bias ;\n int i , refmv_count = 0 ;\n const POSITION * const mv_ref_search = mv_ref_blocks [ mi -> mbmi . sb_type ] ;\n int different_ref_found = 0 ;\n int context_counter = 0 ;\n int const_motion = 0 ;\n vpx_memset ( mv_ref_list , 0 , sizeof ( * mv_ref_list ) * MAX_MV_REF_CANDIDATES ) ;\n for ( i = 0 ;\n i < 2 ;\n ++ i ) {\n const POSITION * const mv_ref = & mv_ref_search [ i ] ;\n if ( is_inside ( tile , mi_col , mi_row , cm -> mi_rows , mv_ref ) ) {\n const MODE_INFO * const candidate_mi = xd -> mi [ mv_ref -> col + mv_ref -> row * xd -> mi_stride ] ;\n const MB_MODE_INFO * const candidate = & candidate_mi -> mbmi ;\n context_counter += mode_2_counter [ candidate -> mode ] ;\n different_ref_found = 1 ;\n if ( candidate -> ref_frame [ 0 ] == ref_frame ) ADD_MV_REF_LIST ( get_sub_block_mv ( candidate_mi , 0 , mv_ref -> col , - 1 ) ) ;\n }\n }\n const_motion = 1 ;\n for ( ;\n i < MVREF_NEIGHBOURS && ! refmv_count ;\n ++ i ) {\n const POSITION * const mv_ref = & mv_ref_search [ i ] ;\n if ( is_inside ( tile , mi_col , mi_row , cm -> mi_rows , mv_ref ) ) {\n const MB_MODE_INFO * const candidate = & xd -> mi [ mv_ref -> col + mv_ref -> row * xd -> mi_stride ] -> mbmi ;\n different_ref_found = 1 ;\n if ( candidate -> ref_frame [ 0 ] == ref_frame ) ADD_MV_REF_LIST ( candidate -> mv [ 0 ] ) ;\n }\n }\n if ( different_ref_found && ! refmv_count ) {\n for ( i = 0 ;\n i < MVREF_NEIGHBOURS ;\n ++ i ) {\n const POSITION * mv_ref = & mv_ref_search [ i ] ;\n if ( is_inside ( tile , mi_col , mi_row , cm -> mi_rows , mv_ref ) ) {\n const MB_MODE_INFO * const candidate = & xd -> mi [ mv_ref -> col + mv_ref -> row * xd -> mi_stride ] -> mbmi ;\n IF_DIFF_REF_FRAME_ADD_MV ( candidate ) ;\n }\n }\n }\n Done : mi -> mbmi . mode_context [ ref_frame ] = counter_to_context [ context_counter ] ;\n for ( i = 0 ;\n i < MAX_MV_REF_CANDIDATES ;\n ++ i ) clamp_mv_ref ( & mv_ref_list [ i ] . as_mv , xd ) ;\n return const_motion ;\n }"}
{"idx": 11195, "target": 0, "func": "static void encode_without_recode_loop ( VP9_COMP * cpi , int q ) {\n VP9_COMMON * const cm = & cpi -> common ;\n vp9_clear_system_state ( ) ;\n vp9_set_quantizer ( cm , q ) ;\n setup_frame ( cpi ) ;\n if ( cpi -> oxcf . aq_mode == VARIANCE_AQ ) {\n vp9_vaq_frame_setup ( cpi ) ;\n }\n else if ( cpi -> oxcf . aq_mode == COMPLEXITY_AQ ) {\n vp9_setup_in_frame_q_adj ( cpi ) ;\n }\n else if ( cpi -> oxcf . aq_mode == CYCLIC_REFRESH_AQ ) {\n vp9_cyclic_refresh_setup ( cpi ) ;\n }\n vp9_encode_frame ( cpi ) ;\n vp9_clear_system_state ( ) ;\n }"}
{"idx": 11196, "target": 0, "func": "void proto_reg_handoff_umts_mac ( void ) {\n rlc_pcch_handle = find_dissector_add_dependency ( \"rlc.pcch\" , proto_umts_mac ) ;\n rlc_ccch_handle = find_dissector_add_dependency ( \"rlc.ccch\" , proto_umts_mac ) ;\n rlc_ctch_handle = find_dissector_add_dependency ( \"rlc.ctch\" , proto_umts_mac ) ;\n rlc_dcch_handle = find_dissector_add_dependency ( \"rlc.dcch\" , proto_umts_mac ) ;\n rlc_ps_dtch_handle = find_dissector_add_dependency ( \"rlc.ps_dtch\" , proto_umts_mac ) ;\n rrc_handle = find_dissector_add_dependency ( \"rrc\" , proto_umts_mac ) ;\n }"}
{"idx": 11197, "target": 1, "func": "int linux_udev_stop_event_monitor ( void ) {\n char dummy = 1 ;\n int r ;\n assert ( udev_ctx != NULL ) ;\n assert ( udev_monitor != NULL ) ;\n assert ( udev_monitor_fd != - 1 ) ;\n r = usbi_write ( udev_control_pipe [ 1 ] , & dummy , sizeof ( dummy ) ) ;\n if ( r <= 0 ) {\n usbi_warn ( NULL , \"udev control pipe signal failed\" ) ;\n }\n pthread_join ( linux_event_thread , NULL ) ;\n udev_monitor_unref ( udev_monitor ) ;\n udev_monitor = NULL ;\n udev_monitor_fd = - 1 ;\n udev_unref ( udev_ctx ) ;\n udev_ctx = NULL ;\n close ( udev_control_pipe [ 0 ] ) ;\n close ( udev_control_pipe [ 1 ] ) ;\n udev_control_pipe [ 0 ] = - 1 ;\n udev_control_pipe [ 1 ] = - 1 ;\n return LIBUSB_SUCCESS ;\n }"}
{"idx": 11198, "target": 0, "func": "EC_GROUP * d2i_ECPKParameters ( EC_GROUP * * a , const unsigned char * * in , long len ) {\n EC_GROUP * group = NULL ;\n ECPKPARAMETERS * params = NULL ;\n if ( ( params = d2i_ECPKPARAMETERS ( NULL , in , len ) ) == NULL ) {\n ECerr ( EC_F_D2I_ECPKPARAMETERS , EC_R_D2I_ECPKPARAMETERS_FAILURE ) ;\n ECPKPARAMETERS_free ( params ) ;\n return NULL ;\n }\n if ( ( group = ec_asn1_pkparameters2group ( params ) ) == NULL ) {\n ECerr ( EC_F_D2I_ECPKPARAMETERS , EC_R_PKPARAMETERS2GROUP_FAILURE ) ;\n return NULL ;\n }\n if ( a && * a ) EC_GROUP_clear_free ( * a ) ;\n if ( a ) * a = group ;\n ECPKPARAMETERS_free ( params ) ;\n return ( group ) ;\n }"}
{"idx": 11199, "target": 0, "func": "static inline Quantum GetPixelMagenta ( const Image * restrict image , const Quantum * restrict pixel ) {\n return ( pixel [ image -> channel_map [ MagentaPixelChannel ] . offset ] ) ;\n }"}
{"idx": 11200, "target": 0, "func": "char * curl_mvaprintf ( const char * format , va_list ap_save ) {\n int retcode ;\n struct asprintf info ;\n info . buffer = NULL ;\n info . len = 0 ;\n info . alloc = 0 ;\n info . fail = 0 ;\n retcode = dprintf_formatf ( & info , alloc_addbyter , format , ap_save ) ;\n if ( ( - 1 == retcode ) || info . fail ) {\n if ( info . alloc ) free ( info . buffer ) ;\n return NULL ;\n }\n if ( info . alloc ) {\n info . buffer [ info . len ] = 0 ;\n return info . buffer ;\n }\n else return strdup ( \"\" ) ;\n }"}
{"idx": 11201, "target": 0, "func": "static int dissect_nlm1_lock ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n return dissect_nlm_lock ( tvb , 0 , pinfo , tree , 1 , ( rpc_call_info_value * ) data ) ;\n }"}
{"idx": 11202, "target": 0, "func": "static GstFlowReturn gst_asf_demux_process_ext_stream_props ( GstASFDemux * demux , guint8 * data , guint64 size ) {\n AsfStreamExtProps esp ;\n AsfStream * stream = NULL ;\n AsfObject stream_obj ;\n guint16 stream_name_count ;\n guint16 num_payload_ext ;\n guint64 len ;\n guint8 * stream_obj_data = NULL ;\n guint8 * data_start ;\n guint obj_size ;\n guint i , stream_num ;\n data_start = data ;\n obj_size = ( guint ) size ;\n esp . payload_extensions = NULL ;\n if ( size < 64 ) goto not_enough_data ;\n esp . valid = TRUE ;\n esp . start_time = gst_asf_demux_get_uint64 ( & data , & size ) * GST_MSECOND ;\n esp . end_time = gst_asf_demux_get_uint64 ( & data , & size ) * GST_MSECOND ;\n esp . data_bitrate = gst_asf_demux_get_uint32 ( & data , & size ) ;\n esp . buffer_size = gst_asf_demux_get_uint32 ( & data , & size ) ;\n esp . intial_buf_fullness = gst_asf_demux_get_uint32 ( & data , & size ) ;\n esp . data_bitrate2 = gst_asf_demux_get_uint32 ( & data , & size ) ;\n esp . buffer_size2 = gst_asf_demux_get_uint32 ( & data , & size ) ;\n esp . intial_buf_fullness2 = gst_asf_demux_get_uint32 ( & data , & size ) ;\n esp . max_obj_size = gst_asf_demux_get_uint32 ( & data , & size ) ;\n esp . flags = gst_asf_demux_get_uint32 ( & data , & size ) ;\n stream_num = gst_asf_demux_get_uint16 ( & data , & size ) ;\n esp . lang_idx = gst_asf_demux_get_uint16 ( & data , & size ) ;\n esp . avg_time_per_frame = gst_asf_demux_get_uint64 ( & data , & size ) ;\n stream_name_count = gst_asf_demux_get_uint16 ( & data , & size ) ;\n num_payload_ext = gst_asf_demux_get_uint16 ( & data , & size ) ;\n GST_INFO ( \"start_time = %\" GST_TIME_FORMAT , GST_TIME_ARGS ( esp . start_time ) ) ;\n GST_INFO ( \"end_time = %\" GST_TIME_FORMAT , GST_TIME_ARGS ( esp . end_time ) ) ;\n GST_INFO ( \"flags = %08x\" , esp . flags ) ;\n GST_INFO ( \"average time per frame = %\" GST_TIME_FORMAT , GST_TIME_ARGS ( esp . avg_time_per_frame * 100 ) ) ;\n GST_INFO ( \"stream number = %u\" , stream_num ) ;\n GST_INFO ( \"stream language ID idx = %u (%s)\" , esp . lang_idx , ( esp . lang_idx < demux -> num_languages ) ? GST_STR_NULL ( demux -> languages [ esp . lang_idx ] ) : \"??\" ) ;\n GST_INFO ( \"stream name count = %u\" , stream_name_count ) ;\n for ( i = 0 ;\n i < stream_name_count ;\n ++ i ) {\n guint16 stream_lang_idx G_GNUC_UNUSED ;\n gchar * stream_name = NULL ;\n if ( size < 2 ) goto not_enough_data ;\n stream_lang_idx = gst_asf_demux_get_uint16 ( & data , & size ) ;\n if ( ! gst_asf_demux_get_string ( & stream_name , NULL , & data , & size ) ) goto not_enough_data ;\n GST_INFO ( \"stream name %d: %s\" , i , GST_STR_NULL ( stream_name ) ) ;\n g_free ( stream_name ) ;\n }\n GST_LOG ( \"payload extension systems count = %u\" , num_payload_ext ) ;\n if ( num_payload_ext > 0 ) esp . payload_extensions = g_new0 ( AsfPayloadExtension , num_payload_ext + 1 ) ;\n for ( i = 0 ;\n i < num_payload_ext ;\n ++ i ) {\n AsfPayloadExtension ext ;\n ASFGuid ext_guid ;\n guint32 sys_info_len ;\n if ( size < 16 + 2 + 4 ) goto not_enough_data ;\n gst_asf_demux_get_guid ( & ext_guid , & data , & size ) ;\n ext . id = gst_asf_demux_identify_guid ( asf_payload_ext_guids , & ext_guid ) ;\n ext . len = gst_asf_demux_get_uint16 ( & data , & size ) ;\n sys_info_len = gst_asf_demux_get_uint32 ( & data , & size ) ;\n GST_LOG ( \"payload systems info len = %u\" , sys_info_len ) ;\n if ( ! gst_asf_demux_skip_bytes ( sys_info_len , & data , & size ) ) goto not_enough_data ;\n esp . payload_extensions [ i ] = ext ;\n }\n GST_LOG ( \"bytes read: %u/%u\" , ( guint ) ( data - data_start ) , obj_size ) ;\n if ( size == 0 ) {\n stream = gst_asf_demux_get_stream ( demux , stream_num ) ;\n goto done ;\n }\n if ( size < ASF_OBJECT_HEADER_SIZE ) goto not_enough_data ;\n if ( ! asf_demux_peek_object ( demux , data , size , & stream_obj , TRUE ) ) goto corrupted_stream ;\n if ( stream_obj . id != ASF_OBJ_STREAM ) goto expected_stream_object ;\n if ( stream_obj . size < ASF_OBJECT_HEADER_SIZE || stream_obj . size > ( 10 * 1024 * 1024 ) ) goto not_enough_data ;\n gst_asf_demux_skip_bytes ( ASF_OBJECT_HEADER_SIZE , & data , & size ) ;\n len = stream_obj . size - ASF_OBJECT_HEADER_SIZE ;\n if ( ! gst_asf_demux_get_bytes ( & stream_obj_data , len , & data , & size ) ) goto not_enough_data ;\n stream = gst_asf_demux_parse_stream_object ( demux , stream_obj_data , len ) ;\n g_free ( stream_obj_data ) ;\n done : if ( stream ) {\n stream -> ext_props = esp ;\n if ( stream -> is_video && stream -> caps ) {\n GValue framerate = {\n 0 }\n ;\n GstStructure * s ;\n gint num , denom ;\n g_value_init ( & framerate , GST_TYPE_FRACTION ) ;\n num = GST_SECOND / 100 ;\n denom = esp . avg_time_per_frame ;\n if ( denom == 0 ) {\n denom = GST_SECOND / 2500 ;\n }\n gst_value_set_fraction ( & framerate , num , denom ) ;\n stream -> caps = gst_caps_make_writable ( stream -> caps ) ;\n s = gst_caps_get_structure ( stream -> caps , 0 ) ;\n gst_structure_set_value ( s , \"framerate\" , & framerate ) ;\n g_value_unset ( & framerate ) ;\n GST_DEBUG_OBJECT ( demux , \"setting framerate of %d/%d = %f\" , num , denom , ( ( gdouble ) num ) / denom ) ;\n }\n if ( stream -> ext_props . lang_idx < demux -> num_languages ) {\n if ( stream -> pending_tags == NULL ) stream -> pending_tags = gst_tag_list_new_empty ( ) ;\n GST_LOG_OBJECT ( demux , \"stream %u has language '%s'\" , stream -> id , demux -> languages [ stream -> ext_props . lang_idx ] ) ;\n gst_tag_list_add ( stream -> pending_tags , GST_TAG_MERGE_APPEND , GST_TAG_LANGUAGE_CODE , demux -> languages [ stream -> ext_props . lang_idx ] , NULL ) ;\n }\n }\n else if ( gst_asf_demux_is_unknown_stream ( demux , stream_num ) ) {\n GST_WARNING_OBJECT ( demux , \"Ext. stream properties for unknown stream\" ) ;\n }\n if ( ! stream ) g_free ( esp . payload_extensions ) ;\n return GST_FLOW_OK ;\n not_enough_data : {\n GST_WARNING_OBJECT ( demux , \"short read parsing ext stream props object!\" ) ;\n g_free ( esp . payload_extensions ) ;\n return GST_FLOW_OK ;\n }\n expected_stream_object : {\n GST_WARNING_OBJECT ( demux , \"error parsing extended stream properties \" \"object: expected embedded stream object, but got %s object instead!\" , gst_asf_get_guid_nick ( asf_object_guids , stream_obj . id ) ) ;\n g_free ( esp . payload_extensions ) ;\n return GST_FLOW_OK ;\n }\n corrupted_stream : {\n GST_WARNING_OBJECT ( demux , \"Corrupted stream\" ) ;\n g_free ( esp . payload_extensions ) ;\n return GST_FLOW_ERROR ;\n }\n }"}
{"idx": 11203, "target": 0, "func": "void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 ) sadMxN ( 16 , 32 ) sadMxNx4D ( 16 , 32 ) sadMxN ( 16 , 16 ) sadMxNxK ( 16 , 16 , 3 ) sadMxNxK ( 16 , 16 , 8 ) sadMxNx4D ( 16 , 16 ) sadMxN ( 16 , 8 ) sadMxNxK ( 16 , 8 , 3 ) sadMxNxK ( 16 , 8 , 8 ) sadMxNx4D ( 16 , 8 ) sadMxN ( 8 , 16 ) sadMxNxK ( 8 , 16 , 3 ) sadMxNxK ( 8 , 16 , 8 ) sadMxNx4D ( 8 , 16 ) sadMxN ( 8 , 8 ) sadMxNxK ( 8 , 8 , 3 ) sadMxNxK ( 8 , 8 , 8 ) sadMxNx4D ( 8 , 8 )"}
{"idx": 11204, "target": 0, "func": "static int cert_status_cb ( SSL * s , void * arg ) {\n tlsextstatusctx * srctx = arg ;\n BIO * err = srctx -> err ;\n char * host , * port , * path ;\n int use_ssl ;\n unsigned char * rspder = NULL ;\n int rspderlen ;\n STACK_OF ( OPENSSL_STRING ) * aia = NULL ;\n X509 * x = NULL ;\n X509_STORE_CTX inctx ;\n X509_OBJECT obj ;\n OCSP_REQUEST * req = NULL ;\n OCSP_RESPONSE * resp = NULL ;\n OCSP_CERTID * id = NULL ;\n STACK_OF ( X509_EXTENSION ) * exts ;\n int ret = SSL_TLSEXT_ERR_NOACK ;\n int i ;\n # if 0 STACK_OF ( OCSP_RESPID ) * ids ;\n SSL_get_tlsext_status_ids ( s , & ids ) ;\n BIO_printf ( err , \"cert_status: received %d ids\\n\" , sk_OCSP_RESPID_num ( ids ) ) ;\n # endif if ( srctx -> verbose ) BIO_puts ( err , \"cert_status: callback called\\n\" ) ;\n x = SSL_get_certificate ( s ) ;\n aia = X509_get1_ocsp ( x ) ;\n if ( aia ) {\n if ( ! OCSP_parse_url ( sk_OPENSSL_STRING_value ( aia , 0 ) , & host , & port , & path , & use_ssl ) ) {\n BIO_puts ( err , \"cert_status: can't parse AIA URL\\n\" ) ;\n goto err ;\n }\n if ( srctx -> verbose ) BIO_printf ( err , \"cert_status: AIA URL: %s\\n\" , sk_OPENSSL_STRING_value ( aia , 0 ) ) ;\n }\n else {\n if ( ! srctx -> host ) {\n BIO_puts ( srctx -> err , \"cert_status: no AIA and no default responder URL\\n\" ) ;\n goto done ;\n }\n host = srctx -> host ;\n path = srctx -> path ;\n port = srctx -> port ;\n use_ssl = srctx -> use_ssl ;\n }\n if ( ! X509_STORE_CTX_init ( & inctx , SSL_CTX_get_cert_store ( SSL_get_SSL_CTX ( s ) ) , NULL , NULL ) ) goto err ;\n if ( X509_STORE_get_by_subject ( & inctx , X509_LU_X509 , X509_get_issuer_name ( x ) , & obj ) <= 0 ) {\n BIO_puts ( err , \"cert_status: Can't retrieve issuer certificate.\\n\" ) ;\n X509_STORE_CTX_cleanup ( & inctx ) ;\n goto done ;\n }\n req = OCSP_REQUEST_new ( ) ;\n if ( ! req ) goto err ;\n id = OCSP_cert_to_id ( NULL , x , obj . data . x509 ) ;\n X509_free ( obj . data . x509 ) ;\n X509_STORE_CTX_cleanup ( & inctx ) ;\n if ( ! id ) goto err ;\n if ( ! OCSP_request_add0_id ( req , id ) ) goto err ;\n id = NULL ;\n SSL_get_tlsext_status_exts ( s , & exts ) ;\n for ( i = 0 ;\n i < sk_X509_EXTENSION_num ( exts ) ;\n i ++ ) {\n X509_EXTENSION * ext = sk_X509_EXTENSION_value ( exts , i ) ;\n if ( ! OCSP_REQUEST_add_ext ( req , ext , - 1 ) ) goto err ;\n }\n resp = process_responder ( err , req , host , path , port , use_ssl , NULL , srctx -> timeout ) ;\n if ( ! resp ) {\n BIO_puts ( err , \"cert_status: error querying responder\\n\" ) ;\n goto done ;\n }\n rspderlen = i2d_OCSP_RESPONSE ( resp , & rspder ) ;\n if ( rspderlen <= 0 ) goto err ;\n SSL_set_tlsext_status_ocsp_resp ( s , rspder , rspderlen ) ;\n if ( srctx -> verbose ) {\n BIO_puts ( err , \"cert_status: ocsp response sent:\\n\" ) ;\n OCSP_RESPONSE_print ( err , resp , 2 ) ;\n }\n ret = SSL_TLSEXT_ERR_OK ;\n done : if ( ret != SSL_TLSEXT_ERR_OK ) ERR_print_errors ( err ) ;\n if ( aia ) {\n OPENSSL_free ( host ) ;\n OPENSSL_free ( path ) ;\n OPENSSL_free ( port ) ;\n X509_email_free ( aia ) ;\n }\n if ( id ) OCSP_CERTID_free ( id ) ;\n if ( req ) OCSP_REQUEST_free ( req ) ;\n if ( resp ) OCSP_RESPONSE_free ( resp ) ;\n return ret ;\n err : ret = SSL_TLSEXT_ERR_ALERT_FATAL ;\n goto done ;\n }\n # ifndef OPENSSL_NO_NEXTPROTONEG typedef struct tlsextnextprotoctx_st {\n unsigned char * data ;\n unsigned int len ;\n }\n tlsextnextprotoctx ;\n static int next_proto_cb ( SSL * s , const unsigned char * * data , unsigned int * len , void * arg ) {\n tlsextnextprotoctx * next_proto = arg ;\n * data = next_proto -> data ;\n * len = next_proto -> len ;\n return SSL_TLSEXT_ERR_OK ;\n }\n # endif # endif int MAIN ( int , char * * ) ;\n # ifndef OPENSSL_NO_JPAKE static char * jpake_secret = NULL ;\n # endif # ifndef OPENSSL_NO_SRP static srpsrvparm srp_callback_parm ;\n # endif # ifndef OPENSSL_NO_SRTP static char * srtp_profiles = NULL ;\n # endif int MAIN ( int argc , char * argv [ ] ) {\n X509_VERIFY_PARAM * vpm = NULL ;\n int badarg = 0 ;\n short port = PORT ;\n char * CApath = NULL , * CAfile = NULL ;\n unsigned char * context = NULL ;\n char * dhfile = NULL ;\n # ifndef OPENSSL_NO_ECDH char * named_curve = NULL ;\n # endif int badop = 0 , bugs = 0 ;\n int ret = 1 ;\n int off = 0 ;\n int no_tmp_rsa = 0 , no_dhe = 0 , nocert = 0 ;\n # ifndef OPENSSL_NO_ECDH int no_ecdhe = 0 ;\n # endif int state = 0 ;\n const SSL_METHOD * meth = NULL ;\n int socket_type = SOCK_STREAM ;\n ENGINE * e = NULL ;\n char * inrand = NULL ;\n int s_cert_format = FORMAT_PEM , s_key_format = FORMAT_PEM ;\n char * passarg = NULL , * pass = NULL ;\n char * dpassarg = NULL , * dpass = NULL ;\n int s_dcert_format = FORMAT_PEM , s_dkey_format = FORMAT_PEM ;\n X509 * s_cert = NULL , * s_dcert = NULL ;\n EVP_PKEY * s_key = NULL , * s_dkey = NULL ;\n int no_cache = 0 ;\n # ifndef OPENSSL_NO_TLSEXT EVP_PKEY * s_key2 = NULL ;\n X509 * s_cert2 = NULL ;\n tlsextctx tlsextcbp = {\n NULL , NULL , SSL_TLSEXT_ERR_ALERT_WARNING }\n ;\n # ifndef OPENSSL_NO_NEXTPROTONEG const char * next_proto_neg_in = NULL ;\n tlsextnextprotoctx next_proto ;\n # endif # endif # ifndef OPENSSL_NO_PSK static char * psk_identity_hint = NULL ;\n # endif # ifndef OPENSSL_NO_SRP char * srpuserseed = NULL ;\n char * srp_verifier_file = NULL ;\n # endif meth = SSLv23_server_method ( ) ;\n local_argc = argc ;\n local_argv = argv ;\n apps_startup ( ) ;\n # ifdef MONOLITH s_server_init ( ) ;\n # endif if ( bio_err == NULL ) bio_err = BIO_new_fp ( stderr , BIO_NOCLOSE ) ;\n if ( ! load_config ( bio_err , NULL ) ) goto end ;\n verify_depth = 0 ;\n # ifdef FIONBIO s_nbio = 0 ;\n # endif s_nbio_test = 0 ;\n argc -- ;\n argv ++ ;\n while ( argc >= 1 ) {\n if ( ( strcmp ( * argv , \"-port\" ) == 0 ) || ( strcmp ( * argv , \"-accept\" ) == 0 ) ) {\n if ( -- argc < 1 ) goto bad ;\n if ( ! extract_port ( * ( ++ argv ) , & port ) ) goto bad ;\n }\n else if ( strcmp ( * argv , \"-verify\" ) == 0 ) {\n s_server_verify = SSL_VERIFY_PEER | SSL_VERIFY_CLIENT_ONCE ;\n if ( -- argc < 1 ) goto bad ;\n verify_depth = atoi ( * ( ++ argv ) ) ;\n BIO_printf ( bio_err , \"verify depth is %d\\n\" , verify_depth ) ;\n }\n else if ( strcmp ( * argv , \"-Verify\" ) == 0 ) {\n s_server_verify = SSL_VERIFY_PEER | SSL_VERIFY_FAIL_IF_NO_PEER_CERT | SSL_VERIFY_CLIENT_ONCE ;\n if ( -- argc < 1 ) goto bad ;\n verify_depth = atoi ( * ( ++ argv ) ) ;\n BIO_printf ( bio_err , \"verify depth is %d, must return a certificate\\n\" , verify_depth ) ;\n }\n else if ( strcmp ( * argv , \"-context\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n context = ( unsigned char * ) * ( ++ argv ) ;\n }\n else if ( strcmp ( * argv , \"-cert\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n s_cert_file = * ( ++ argv ) ;\n }\n else if ( strcmp ( * argv , \"-certform\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n s_cert_format = str2fmt ( * ( ++ argv ) ) ;\n }\n else if ( strcmp ( * argv , \"-key\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n s_key_file = * ( ++ argv ) ;\n }\n else if ( strcmp ( * argv , \"-keyform\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n s_key_format = str2fmt ( * ( ++ argv ) ) ;\n }\n else if ( strcmp ( * argv , \"-pass\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n passarg = * ( ++ argv ) ;\n }\n else if ( strcmp ( * argv , \"-dhparam\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n dhfile = * ( ++ argv ) ;\n }\n # ifndef OPENSSL_NO_ECDH else if ( strcmp ( * argv , \"-named_curve\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n named_curve = * ( ++ argv ) ;\n }\n # endif else if ( strcmp ( * argv , \"-dcertform\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n s_dcert_format = str2fmt ( * ( ++ argv ) ) ;\n }\n else if ( strcmp ( * argv , \"-dcert\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n s_dcert_file = * ( ++ argv ) ;\n }\n else if ( strcmp ( * argv , \"-dkeyform\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n s_dkey_format = str2fmt ( * ( ++ argv ) ) ;\n }\n else if ( strcmp ( * argv , \"-dpass\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n dpassarg = * ( ++ argv ) ;\n }\n else if ( strcmp ( * argv , \"-dkey\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n s_dkey_file = * ( ++ argv ) ;\n }\n else if ( strcmp ( * argv , \"-nocert\" ) == 0 ) {\n nocert = 1 ;\n }\n else if ( strcmp ( * argv , \"-CApath\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n CApath = * ( ++ argv ) ;\n }\n else if ( strcmp ( * argv , \"-no_cache\" ) == 0 ) no_cache = 1 ;\n else if ( args_verify ( & argv , & argc , & badarg , bio_err , & vpm ) ) {\n if ( badarg ) goto bad ;\n continue ;\n }\n else if ( strcmp ( * argv , \"-verify_return_error\" ) == 0 ) verify_return_error = 1 ;\n else if ( strcmp ( * argv , \"-serverpref\" ) == 0 ) {\n off |= SSL_OP_CIPHER_SERVER_PREFERENCE ;\n }\n else if ( strcmp ( * argv , \"-legacy_renegotiation\" ) == 0 ) off |= SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION ;\n else if ( strcmp ( * argv , \"-cipher\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n cipher = * ( ++ argv ) ;\n }\n else if ( strcmp ( * argv , \"-CAfile\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n CAfile = * ( ++ argv ) ;\n }\n # ifdef FIONBIO else if ( strcmp ( * argv , \"-nbio\" ) == 0 ) {\n s_nbio = 1 ;\n }\n # endif else if ( strcmp ( * argv , \"-nbio_test\" ) == 0 ) {\n # ifdef FIONBIO s_nbio = 1 ;\n # endif s_nbio_test = 1 ;\n }\n else if ( strcmp ( * argv , \"-debug\" ) == 0 ) {\n s_debug = 1 ;\n }\n # ifndef OPENSSL_NO_TLSEXT else if ( strcmp ( * argv , \"-tlsextdebug\" ) == 0 ) s_tlsextdebug = 1 ;\n else if ( strcmp ( * argv , \"-status\" ) == 0 ) s_tlsextstatus = 1 ;\n else if ( strcmp ( * argv , \"-status_verbose\" ) == 0 ) {\n s_tlsextstatus = 1 ;\n tlscstatp . verbose = 1 ;\n }\n else if ( ! strcmp ( * argv , \"-status_timeout\" ) ) {\n s_tlsextstatus = 1 ;\n if ( -- argc < 1 ) goto bad ;\n tlscstatp . timeout = atoi ( * ( ++ argv ) ) ;\n }\n else if ( ! strcmp ( * argv , \"-status_url\" ) ) {\n s_tlsextstatus = 1 ;\n if ( -- argc < 1 ) goto bad ;\n if ( ! OCSP_parse_url ( * ( ++ argv ) , & tlscstatp . host , & tlscstatp . port , & tlscstatp . path , & tlscstatp . use_ssl ) ) {\n BIO_printf ( bio_err , \"Error parsing URL\\n\" ) ;\n goto bad ;\n }\n }\n # endif else if ( strcmp ( * argv , \"-msg\" ) == 0 ) {\n s_msg = 1 ;\n }\n else if ( strcmp ( * argv , \"-hack\" ) == 0 ) {\n hack = 1 ;\n }\n else if ( strcmp ( * argv , \"-state\" ) == 0 ) {\n state = 1 ;\n }\n else if ( strcmp ( * argv , \"-crlf\" ) == 0 ) {\n s_crlf = 1 ;\n }\n else if ( strcmp ( * argv , \"-quiet\" ) == 0 ) {\n s_quiet = 1 ;\n }\n else if ( strcmp ( * argv , \"-bugs\" ) == 0 ) {\n bugs = 1 ;\n }\n else if ( strcmp ( * argv , \"-no_tmp_rsa\" ) == 0 ) {\n no_tmp_rsa = 1 ;\n }\n else if ( strcmp ( * argv , \"-no_dhe\" ) == 0 ) {\n no_dhe = 1 ;\n }\n # ifndef OPENSSL_NO_ECDH else if ( strcmp ( * argv , \"-no_ecdhe\" ) == 0 ) {\n no_ecdhe = 1 ;\n }\n # endif # ifndef OPENSSL_NO_PSK else if ( strcmp ( * argv , \"-psk_hint\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n psk_identity_hint = * ( ++ argv ) ;\n }\n else if ( strcmp ( * argv , \"-psk\" ) == 0 ) {\n size_t i ;\n if ( -- argc < 1 ) goto bad ;\n psk_key = * ( ++ argv ) ;\n for ( i = 0 ;\n i < strlen ( psk_key ) ;\n i ++ ) {\n if ( isxdigit ( ( unsigned char ) psk_key [ i ] ) ) continue ;\n BIO_printf ( bio_err , \"Not a hex number '%s'\\n\" , * argv ) ;\n goto bad ;\n }\n }\n # endif # ifndef OPENSSL_NO_SRP else if ( strcmp ( * argv , \"-srpvfile\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n srp_verifier_file = * ( ++ argv ) ;\n meth = TLSv1_server_method ( ) ;\n }\n else if ( strcmp ( * argv , \"-srpuserseed\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n srpuserseed = * ( ++ argv ) ;\n meth = TLSv1_server_method ( ) ;\n }\n # endif else if ( strcmp ( * argv , \"-www\" ) == 0 ) {\n www = 1 ;\n }\n else if ( strcmp ( * argv , \"-WWW\" ) == 0 ) {\n www = 2 ;\n }\n else if ( strcmp ( * argv , \"-HTTP\" ) == 0 ) {\n www = 3 ;\n }\n else if ( strcmp ( * argv , \"-no_ssl2\" ) == 0 ) {\n off |= SSL_OP_NO_SSLv2 ;\n }\n else if ( strcmp ( * argv , \"-no_ssl3\" ) == 0 ) {\n off |= SSL_OP_NO_SSLv3 ;\n }\n else if ( strcmp ( * argv , \"-no_tls1\" ) == 0 ) {\n off |= SSL_OP_NO_TLSv1 ;\n }\n else if ( strcmp ( * argv , \"-no_tls1_1\" ) == 0 ) {\n off |= SSL_OP_NO_TLSv1_1 ;\n }\n else if ( strcmp ( * argv , \"-no_tls1_2\" ) == 0 ) {\n off |= SSL_OP_NO_TLSv1_2 ;\n }\n else if ( strcmp ( * argv , \"-no_comp\" ) == 0 ) {\n off |= SSL_OP_NO_COMPRESSION ;\n }\n # ifndef OPENSSL_NO_TLSEXT else if ( strcmp ( * argv , \"-no_ticket\" ) == 0 ) {\n off |= SSL_OP_NO_TICKET ;\n }\n # endif # ifndef OPENSSL_NO_SSL2 else if ( strcmp ( * argv , \"-ssl2\" ) == 0 ) {\n meth = SSLv2_server_method ( ) ;\n }\n # endif # ifndef OPENSSL_NO_SSL3_METHOD else if ( strcmp ( * argv , \"-ssl3\" ) == 0 ) {\n meth = SSLv3_server_method ( ) ;\n }\n # endif # ifndef OPENSSL_NO_TLS1 else if ( strcmp ( * argv , \"-tls1\" ) == 0 ) {\n meth = TLSv1_server_method ( ) ;\n }\n else if ( strcmp ( * argv , \"-tls1_1\" ) == 0 ) {\n meth = TLSv1_1_server_method ( ) ;\n }\n else if ( strcmp ( * argv , \"-tls1_2\" ) == 0 ) {\n meth = TLSv1_2_server_method ( ) ;\n }\n # endif # ifndef OPENSSL_NO_DTLS1 else if ( strcmp ( * argv , \"-dtls1\" ) == 0 ) {\n meth = DTLSv1_server_method ( ) ;\n socket_type = SOCK_DGRAM ;\n }\n else if ( strcmp ( * argv , \"-timeout\" ) == 0 ) enable_timeouts = 1 ;\n else if ( strcmp ( * argv , \"-mtu\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n socket_mtu = atol ( * ( ++ argv ) ) ;\n }\n else if ( strcmp ( * argv , \"-chain\" ) == 0 ) cert_chain = 1 ;\n # endif else if ( strcmp ( * argv , \"-id_prefix\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n session_id_prefix = * ( ++ argv ) ;\n }\n # ifndef OPENSSL_NO_ENGINE else if ( strcmp ( * argv , \"-engine\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n engine_id = * ( ++ argv ) ;\n }\n # endif else if ( strcmp ( * argv , \"-rand\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n inrand = * ( ++ argv ) ;\n }\n # ifndef OPENSSL_NO_TLSEXT else if ( strcmp ( * argv , \"-servername\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n tlsextcbp . servername = * ( ++ argv ) ;\n }\n else if ( strcmp ( * argv , \"-servername_fatal\" ) == 0 ) {\n tlsextcbp . extension_error = SSL_TLSEXT_ERR_ALERT_FATAL ;\n }\n else if ( strcmp ( * argv , \"-cert2\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n s_cert_file2 = * ( ++ argv ) ;\n }\n else if ( strcmp ( * argv , \"-key2\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n s_key_file2 = * ( ++ argv ) ;\n }\n # ifndef OPENSSL_NO_NEXTPROTONEG else if ( strcmp ( * argv , \"-nextprotoneg\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n next_proto_neg_in = * ( ++ argv ) ;\n }\n # endif # endif # if ! defined ( OPENSSL_NO_JPAKE ) && ! defined ( OPENSSL_NO_PSK ) else if ( strcmp ( * argv , \"-jpake\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n jpake_secret = * ( ++ argv ) ;\n }\n # endif # ifndef OPENSSL_NO_SRTP else if ( strcmp ( * argv , \"-use_srtp\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n srtp_profiles = * ( ++ argv ) ;\n }\n # endif else if ( strcmp ( * argv , \"-keymatexport\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n keymatexportlabel = * ( ++ argv ) ;\n }\n else if ( strcmp ( * argv , \"-keymatexportlen\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n keymatexportlen = atoi ( * ( ++ argv ) ) ;\n if ( keymatexportlen == 0 ) goto bad ;\n }\n else {\n BIO_printf ( bio_err , \"unknown option %s\\n\" , * argv ) ;\n badop = 1 ;\n break ;\n }\n argc -- ;\n argv ++ ;\n }\n if ( badop ) {\n bad : sv_usage ( ) ;\n goto end ;\n }\n # ifndef OPENSSL_NO_DTLS1 if ( www && socket_type == SOCK_DGRAM ) {\n BIO_printf ( bio_err , \"Can't use -HTTP, -www or -WWW with DTLS\\n\" ) ;\n goto end ;\n }\n # endif # if ! defined ( OPENSSL_NO_JPAKE ) && ! defined ( OPENSSL_NO_PSK ) if ( jpake_secret ) {\n if ( psk_key ) {\n BIO_printf ( bio_err , \"Can't use JPAKE and PSK together\\n\" ) ;\n goto end ;\n }\n psk_identity = \"JPAKE\" ;\n if ( cipher ) {\n BIO_printf ( bio_err , \"JPAKE sets cipher to PSK\\n\" ) ;\n goto end ;\n }\n cipher = \"PSK\" ;\n }\n # endif SSL_load_error_strings ( ) ;\n OpenSSL_add_ssl_algorithms ( ) ;\n # ifndef OPENSSL_NO_ENGINE e = setup_engine ( bio_err , engine_id , 1 ) ;\n # endif if ( ! app_passwd ( bio_err , passarg , dpassarg , & pass , & dpass ) ) {\n BIO_printf ( bio_err , \"Error getting password\\n\" ) ;\n goto end ;\n }\n if ( s_key_file == NULL ) s_key_file = s_cert_file ;\n # ifndef OPENSSL_NO_TLSEXT if ( s_key_file2 == NULL ) s_key_file2 = s_cert_file2 ;\n # endif if ( nocert == 0 ) {\n s_key = load_key ( bio_err , s_key_file , s_key_format , 0 , pass , e , \"server certificate private key file\" ) ;\n if ( ! s_key ) {\n ERR_print_errors ( bio_err ) ;\n goto end ;\n }\n s_cert = load_cert ( bio_err , s_cert_file , s_cert_format , NULL , e , \"server certificate file\" ) ;\n if ( ! s_cert ) {\n ERR_print_errors ( bio_err ) ;\n goto end ;\n }\n # ifndef OPENSSL_NO_TLSEXT if ( tlsextcbp . servername ) {\n s_key2 = load_key ( bio_err , s_key_file2 , s_key_format , 0 , pass , e , \"second server certificate private key file\" ) ;\n if ( ! s_key2 ) {\n ERR_print_errors ( bio_err ) ;\n goto end ;\n }\n s_cert2 = load_cert ( bio_err , s_cert_file2 , s_cert_format , NULL , e , \"second server certificate file\" ) ;\n if ( ! s_cert2 ) {\n ERR_print_errors ( bio_err ) ;\n goto end ;\n }\n }\n # endif }\n # if ! defined ( OPENSSL_NO_TLSEXT ) && ! defined ( OPENSSL_NO_NEXTPROTONEG ) if ( next_proto_neg_in ) {\n unsigned short len ;\n next_proto . data = next_protos_parse ( & len , next_proto_neg_in ) ;\n if ( next_proto . data == NULL ) goto end ;\n next_proto . len = len ;\n }\n else {\n next_proto . data = NULL ;\n }\n # endif if ( s_dcert_file ) {\n if ( s_dkey_file == NULL ) s_dkey_file = s_dcert_file ;\n s_dkey = load_key ( bio_err , s_dkey_file , s_dkey_format , 0 , dpass , e , \"second certificate private key file\" ) ;\n if ( ! s_dkey ) {\n ERR_print_errors ( bio_err ) ;\n goto end ;\n }\n s_dcert = load_cert ( bio_err , s_dcert_file , s_dcert_format , NULL , e , \"second server certificate file\" ) ;\n if ( ! s_dcert ) {\n ERR_print_errors ( bio_err ) ;\n goto end ;\n }\n }\n if ( ! app_RAND_load_file ( NULL , bio_err , 1 ) && inrand == NULL && ! RAND_status ( ) ) {\n BIO_printf ( bio_err , \"warning, not much extra random data, consider using the -rand option\\n\" ) ;\n }\n if ( inrand != NULL ) BIO_printf ( bio_err , \"%ld semi-random bytes loaded\\n\" , app_RAND_load_files ( inrand ) ) ;\n if ( bio_s_out == NULL ) {\n if ( s_quiet && ! s_debug && ! s_msg ) {\n bio_s_out = BIO_new ( BIO_s_null ( ) ) ;\n }\n else {\n if ( bio_s_out == NULL ) bio_s_out = BIO_new_fp ( stdout , BIO_NOCLOSE ) ;\n }\n }\n # if ! defined ( OPENSSL_NO_RSA ) || ! defined ( OPENSSL_NO_DSA ) || ! defined ( OPENSSL_NO_ECDSA ) if ( nocert ) # endif {\n s_cert_file = NULL ;\n s_key_file = NULL ;\n s_dcert_file = NULL ;\n s_dkey_file = NULL ;\n # ifndef OPENSSL_NO_TLSEXT s_cert_file2 = NULL ;\n s_key_file2 = NULL ;\n # endif }\n ctx = SSL_CTX_new ( meth ) ;\n if ( ctx == NULL ) {\n ERR_print_errors ( bio_err ) ;\n goto end ;\n }\n if ( session_id_prefix ) {\n if ( strlen ( session_id_prefix ) >= 32 ) BIO_printf ( bio_err , \"warning: id_prefix is too long, only one new session will be possible\\n\" ) ;\n else if ( strlen ( session_id_prefix ) >= 16 ) BIO_printf ( bio_err , \"warning: id_prefix is too long if you use SSLv2\\n\" ) ;\n if ( ! SSL_CTX_set_generate_session_id ( ctx , generate_session_id ) ) {\n BIO_printf ( bio_err , \"error setting 'id_prefix'\\n\" ) ;\n ERR_print_errors ( bio_err ) ;\n goto end ;\n }\n BIO_printf ( bio_err , \"id_prefix '%s' set.\\n\" , session_id_prefix ) ;\n }\n SSL_CTX_set_quiet_shutdown ( ctx , 1 ) ;\n if ( bugs ) SSL_CTX_set_options ( ctx , SSL_OP_ALL ) ;\n if ( hack ) SSL_CTX_set_options ( ctx , SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG ) ;\n SSL_CTX_set_options ( ctx , off ) ;\n if ( state ) SSL_CTX_set_info_callback ( ctx , apps_ssl_info_callback ) ;\n if ( no_cache ) SSL_CTX_set_session_cache_mode ( ctx , SSL_SESS_CACHE_OFF ) ;\n else SSL_CTX_sess_set_cache_size ( ctx , 128 ) ;\n # ifndef OPENSSL_NO_SRTP if ( srtp_profiles != NULL ) SSL_CTX_set_tlsext_use_srtp ( ctx , srtp_profiles ) ;\n # endif # if 0 if ( cipher == NULL ) cipher = getenv ( \"SSL_CIPHER\" ) ;\n # endif # if 0 if ( s_cert_file == NULL ) {\n BIO_printf ( bio_err , \"You must specify a certificate file for the server to use\\n\" ) ;\n goto end ;\n }\n # endif if ( ( ! SSL_CTX_load_verify_locations ( ctx , CAfile , CApath ) ) || ( ! SSL_CTX_set_default_verify_paths ( ctx ) ) ) {\n ERR_print_errors ( bio_err ) ;\n }\n if ( vpm ) SSL_CTX_set1_param ( ctx , vpm ) ;\n # ifndef OPENSSL_NO_TLSEXT if ( s_cert2 ) {\n ctx2 = SSL_CTX_new ( meth ) ;\n if ( ctx2 == NULL ) {\n ERR_print_errors ( bio_err ) ;\n goto end ;\n }\n }\n if ( ctx2 ) {\n BIO_printf ( bio_s_out , \"Setting secondary ctx parameters\\n\" ) ;\n if ( session_id_prefix ) {\n if ( strlen ( session_id_prefix ) >= 32 ) BIO_printf ( bio_err , \"warning: id_prefix is too long, only one new session will be possible\\n\" ) ;\n else if ( strlen ( session_id_prefix ) >= 16 ) BIO_printf ( bio_err , \"warning: id_prefix is too long if you use SSLv2\\n\" ) ;\n if ( ! SSL_CTX_set_generate_session_id ( ctx2 , generate_session_id ) ) {\n BIO_printf ( bio_err , \"error setting 'id_prefix'\\n\" ) ;\n ERR_print_errors ( bio_err ) ;\n goto end ;\n }\n BIO_printf ( bio_err , \"id_prefix '%s' set.\\n\" , session_id_prefix ) ;\n }\n SSL_CTX_set_quiet_shutdown ( ctx2 , 1 ) ;\n if ( bugs ) SSL_CTX_set_options ( ctx2 , SSL_OP_ALL ) ;\n if ( hack ) SSL_CTX_set_options ( ctx2 , SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG ) ;\n SSL_CTX_set_options ( ctx2 , off ) ;\n if ( state ) SSL_CTX_set_info_callback ( ctx2 , apps_ssl_info_callback ) ;\n if ( no_cache ) SSL_CTX_set_session_cache_mode ( ctx2 , SSL_SESS_CACHE_OFF ) ;\n else SSL_CTX_sess_set_cache_size ( ctx2 , 128 ) ;\n if ( ( ! SSL_CTX_load_verify_locations ( ctx2 , CAfile , CApath ) ) || ( ! SSL_CTX_set_default_verify_paths ( ctx2 ) ) ) {\n ERR_print_errors ( bio_err ) ;\n }\n if ( vpm ) SSL_CTX_set1_param ( ctx2 , vpm ) ;\n }\n # ifndef OPENSSL_NO_NEXTPROTONEG if ( next_proto . data ) SSL_CTX_set_next_protos_advertised_cb ( ctx , next_proto_cb , & next_proto ) ;\n # endif # endif # ifndef OPENSSL_NO_DH if ( ! no_dhe ) {\n DH * dh = NULL ;\n if ( dhfile ) dh = load_dh_param ( dhfile ) ;\n else if ( s_cert_file ) dh = load_dh_param ( s_cert_file ) ;\n if ( dh != NULL ) {\n BIO_printf ( bio_s_out , \"Setting temp DH parameters\\n\" ) ;\n }\n else {\n BIO_printf ( bio_s_out , \"Using default temp DH parameters\\n\" ) ;\n dh = get_dh2048 ( ) ;\n if ( dh == NULL ) {\n ERR_print_errors ( bio_err ) ;\n goto end ;\n }\n }\n ( void ) BIO_flush ( bio_s_out ) ;\n SSL_CTX_set_tmp_dh ( ctx , dh ) ;\n # ifndef OPENSSL_NO_TLSEXT if ( ctx2 ) {\n if ( ! dhfile ) {\n DH * dh2 = load_dh_param ( s_cert_file2 ) ;\n if ( dh2 != NULL ) {\n BIO_printf ( bio_s_out , \"Setting temp DH parameters\\n\" ) ;\n ( void ) BIO_flush ( bio_s_out ) ;\n DH_free ( dh ) ;\n dh = dh2 ;\n }\n }\n SSL_CTX_set_tmp_dh ( ctx2 , dh ) ;\n }\n # endif DH_free ( dh ) ;\n }\n # endif # ifndef OPENSSL_NO_ECDH if ( ! no_ecdhe ) {\n EC_KEY * ecdh = NULL ;\n if ( named_curve ) {\n int nid = OBJ_sn2nid ( named_curve ) ;\n if ( nid == 0 ) {\n BIO_printf ( bio_err , \"unknown curve name (%s)\\n\" , named_curve ) ;\n goto end ;\n }\n ecdh = EC_KEY_new_by_curve_name ( nid ) ;\n if ( ecdh == NULL ) {\n BIO_printf ( bio_err , \"unable to create curve (%s)\\n\" , named_curve ) ;\n goto end ;\n }\n }\n if ( ecdh != NULL ) {\n BIO_printf ( bio_s_out , \"Setting temp ECDH parameters\\n\" ) ;\n }\n else {\n BIO_printf ( bio_s_out , \"Using default temp ECDH parameters\\n\" ) ;\n ecdh = EC_KEY_new_by_curve_name ( NID_X9_62_prime256v1 ) ;\n if ( ecdh == NULL ) {\n BIO_printf ( bio_err , \"unable to create curve (nistp256)\\n\" ) ;\n goto end ;\n }\n }\n ( void ) BIO_flush ( bio_s_out ) ;\n SSL_CTX_set_tmp_ecdh ( ctx , ecdh ) ;\n # ifndef OPENSSL_NO_TLSEXT if ( ctx2 ) SSL_CTX_set_tmp_ecdh ( ctx2 , ecdh ) ;\n # endif EC_KEY_free ( ecdh ) ;\n }\n # endif if ( ! set_cert_key_stuff ( ctx , s_cert , s_key ) ) goto end ;\n # ifndef OPENSSL_NO_TLSEXT if ( ctx2 && ! set_cert_key_stuff ( ctx2 , s_cert2 , s_key2 ) ) goto end ;\n # endif if ( s_dcert != NULL ) {\n if ( ! set_cert_key_stuff ( ctx , s_dcert , s_dkey ) ) goto end ;\n }\n # ifndef OPENSSL_NO_RSA # if 1 if ( ! no_tmp_rsa ) {\n SSL_CTX_set_tmp_rsa_callback ( ctx , tmp_rsa_cb ) ;\n # ifndef OPENSSL_NO_TLSEXT if ( ctx2 ) SSL_CTX_set_tmp_rsa_callback ( ctx2 , tmp_rsa_cb ) ;\n # endif }\n # else if ( ! no_tmp_rsa && SSL_CTX_need_tmp_RSA ( ctx ) ) {\n RSA * rsa ;\n BIO_printf ( bio_s_out , \"Generating temp (512 bit) RSA key...\" ) ;\n BIO_flush ( bio_s_out ) ;\n rsa = RSA_generate_key ( 512 , RSA_F4 , NULL ) ;\n if ( ! SSL_CTX_set_tmp_rsa ( ctx , rsa ) ) {\n ERR_print_errors ( bio_err ) ;\n goto end ;\n }\n # ifndef OPENSSL_NO_TLSEXT if ( ctx2 ) {\n if ( ! SSL_CTX_set_tmp_rsa ( ctx2 , rsa ) ) {\n ERR_print_errors ( bio_err ) ;\n goto end ;\n }\n }\n # endif RSA_free ( rsa ) ;\n BIO_printf ( bio_s_out , \"\\n\" ) ;\n }\n # endif # endif # ifndef OPENSSL_NO_PSK # ifdef OPENSSL_NO_JPAKE if ( psk_key != NULL ) # else if ( psk_key != NULL || jpake_secret ) # endif {\n if ( s_debug ) BIO_printf ( bio_s_out , \"PSK key given or JPAKE in use, setting server callback\\n\" ) ;\n SSL_CTX_set_psk_server_callback ( ctx , psk_server_cb ) ;\n }\n if ( ! SSL_CTX_use_psk_identity_hint ( ctx , psk_identity_hint ) ) {\n BIO_printf ( bio_err , \"error setting PSK identity hint to context\\n\" ) ;\n ERR_print_errors ( bio_err ) ;\n goto end ;\n }\n # endif if ( cipher != NULL ) {\n if ( ! SSL_CTX_set_cipher_list ( ctx , cipher ) ) {\n BIO_printf ( bio_err , \"error setting cipher list\\n\" ) ;\n ERR_print_errors ( bio_err ) ;\n goto end ;\n }\n # ifndef OPENSSL_NO_TLSEXT if ( ctx2 && ! SSL_CTX_set_cipher_list ( ctx2 , cipher ) ) {\n BIO_printf ( bio_err , \"error setting cipher list\\n\" ) ;\n ERR_print_errors ( bio_err ) ;\n goto end ;\n }\n # endif }\n SSL_CTX_set_verify ( ctx , s_server_verify , verify_callback ) ;\n SSL_CTX_set_session_id_context ( ctx , ( void * ) & s_server_session_id_context , sizeof s_server_session_id_context ) ;\n SSL_CTX_set_cookie_generate_cb ( ctx , generate_cookie_callback ) ;\n SSL_CTX_set_cookie_verify_cb ( ctx , verify_cookie_callback ) ;\n # ifndef OPENSSL_NO_TLSEXT if ( ctx2 ) {\n SSL_CTX_set_verify ( ctx2 , s_server_verify , verify_callback ) ;\n SSL_CTX_set_session_id_context ( ctx2 , ( void * ) & s_server_session_id_context , sizeof s_server_session_id_context ) ;\n tlsextcbp . biodebug = bio_s_out ;\n SSL_CTX_set_tlsext_servername_callback ( ctx2 , ssl_servername_cb ) ;\n SSL_CTX_set_tlsext_servername_arg ( ctx2 , & tlsextcbp ) ;\n SSL_CTX_set_tlsext_servername_callback ( ctx , ssl_servername_cb ) ;\n SSL_CTX_set_tlsext_servername_arg ( ctx , & tlsextcbp ) ;\n }\n # endif # ifndef OPENSSL_NO_SRP if ( srp_verifier_file != NULL ) {\n srp_callback_parm . vb = SRP_VBASE_new ( srpuserseed ) ;\n srp_callback_parm . user = NULL ;\n srp_callback_parm . login = NULL ;\n if ( ( ret = SRP_VBASE_init ( srp_callback_parm . vb , srp_verifier_file ) ) != SRP_NO_ERROR ) {\n BIO_printf ( bio_err , \"Cannot initialize SRP verifier file \\\"%s\\\":ret=%d\\n\" , srp_verifier_file , ret ) ;\n goto end ;\n }\n SSL_CTX_set_verify ( ctx , SSL_VERIFY_NONE , verify_callback ) ;\n SSL_CTX_set_srp_cb_arg ( ctx , & srp_callback_parm ) ;\n SSL_CTX_set_srp_username_callback ( ctx , ssl_srp_server_param_cb ) ;\n }\n else # endif if ( CAfile != NULL ) {\n SSL_CTX_set_client_CA_list ( ctx , SSL_load_client_CA_file ( CAfile ) ) ;\n # ifndef OPENSSL_NO_TLSEXT if ( ctx2 ) SSL_CTX_set_client_CA_list ( ctx2 , SSL_load_client_CA_file ( CAfile ) ) ;\n # endif }\n BIO_printf ( bio_s_out , \"ACCEPT\\n\" ) ;\n ( void ) BIO_flush ( bio_s_out ) ;\n if ( www ) do_server ( port , socket_type , & accept_socket , www_body , context ) ;\n else do_server ( port , socket_type , & accept_socket , sv_body , context ) ;\n print_stats ( bio_s_out , ctx ) ;\n ret = 0 ;\n end : if ( ctx != NULL ) SSL_CTX_free ( ctx ) ;\n if ( s_cert ) X509_free ( s_cert ) ;\n if ( s_dcert ) X509_free ( s_dcert ) ;\n if ( s_key ) EVP_PKEY_free ( s_key ) ;\n if ( s_dkey ) EVP_PKEY_free ( s_dkey ) ;\n if ( pass ) OPENSSL_free ( pass ) ;\n if ( dpass ) OPENSSL_free ( dpass ) ;\n if ( vpm ) X509_VERIFY_PARAM_free ( vpm ) ;\n # ifndef OPENSSL_NO_TLSEXT if ( tlscstatp . host ) OPENSSL_free ( tlscstatp . host ) ;\n if ( tlscstatp . port ) OPENSSL_free ( tlscstatp . port ) ;\n if ( tlscstatp . path ) OPENSSL_free ( tlscstatp . path ) ;\n if ( ctx2 != NULL ) SSL_CTX_free ( ctx2 ) ;\n if ( s_cert2 ) X509_free ( s_cert2 ) ;\n if ( s_key2 ) EVP_PKEY_free ( s_key2 ) ;\n # endif if ( bio_s_out != NULL ) {\n BIO_free ( bio_s_out ) ;\n bio_s_out = NULL ;\n }\n apps_shutdown ( ) ;\n OPENSSL_EXIT ( ret ) ;\n }\n static void print_stats ( BIO * bio , SSL_CTX * ssl_ctx ) {\n BIO_printf ( bio , \"%4ld items in the session cache\\n\" , SSL_CTX_sess_number ( ssl_ctx ) ) ;\n BIO_printf ( bio , \"%4ld client connects (SSL_connect())\\n\" , SSL_CTX_sess_connect ( ssl_ctx ) ) ;\n BIO_printf ( bio , \"%4ld client renegotiates (SSL_connect())\\n\" , SSL_CTX_sess_connect_renegotiate ( ssl_ctx ) ) ;\n BIO_printf ( bio , \"%4ld client connects that finished\\n\" , SSL_CTX_sess_connect_good ( ssl_ctx ) ) ;\n BIO_printf ( bio , \"%4ld server accepts (SSL_accept())\\n\" , SSL_CTX_sess_accept ( ssl_ctx ) ) ;\n BIO_printf ( bio , \"%4ld server renegotiates (SSL_accept())\\n\" , SSL_CTX_sess_accept_renegotiate ( ssl_ctx ) ) ;\n BIO_printf ( bio , \"%4ld server accepts that finished\\n\" , SSL_CTX_sess_accept_good ( ssl_ctx ) ) ;\n BIO_printf ( bio , \"%4ld session cache hits\\n\" , SSL_CTX_sess_hits ( ssl_ctx ) ) ;\n BIO_printf ( bio , \"%4ld session cache misses\\n\" , SSL_CTX_sess_misses ( ssl_ctx ) ) ;\n BIO_printf ( bio , \"%4ld session cache timeouts\\n\" , SSL_CTX_sess_timeouts ( ssl_ctx ) ) ;\n BIO_printf ( bio , \"%4ld callback cache hits\\n\" , SSL_CTX_sess_cb_hits ( ssl_ctx ) ) ;\n BIO_printf ( bio , \"%4ld cache full overflows (%ld allowed)\\n\" , SSL_CTX_sess_cache_full ( ssl_ctx ) , SSL_CTX_sess_get_cache_size ( ssl_ctx ) ) ;\n }\n static int sv_body ( char * hostname , int s , unsigned char * context ) {\n char * buf = NULL ;\n fd_set readfds ;\n int ret = 1 , width ;\n int k , i ;\n unsigned long l ;\n SSL * con = NULL ;\n BIO * sbio ;\n # ifndef OPENSSL_NO_KRB5 KSSL_CTX * kctx ;\n # endif struct timeval timeout ;\n # if defined ( OPENSSL_SYS_WINDOWS ) || defined ( OPENSSL_SYS_MSDOS ) || defined ( OPENSSL_SYS_NETWARE ) || defined ( OPENSSL_SYS_BEOS_R5 ) struct timeval tv ;\n # else struct timeval * timeoutp ;\n # endif if ( ( buf = OPENSSL_malloc ( bufsize ) ) == NULL ) {\n BIO_printf ( bio_err , \"out of memory\\n\" ) ;\n goto err ;\n }\n # ifdef FIONBIO if ( s_nbio ) {\n unsigned long sl = 1 ;\n if ( ! s_quiet ) BIO_printf ( bio_err , \"turning on non blocking io\\n\" ) ;\n if ( BIO_socket_ioctl ( s , FIONBIO , & sl ) < 0 ) ERR_print_errors ( bio_err ) ;\n }\n # endif if ( con == NULL ) {\n con = SSL_new ( ctx ) ;\n # ifndef OPENSSL_NO_TLSEXT if ( s_tlsextdebug ) {\n SSL_set_tlsext_debug_callback ( con , tlsext_cb ) ;\n SSL_set_tlsext_debug_arg ( con , bio_s_out ) ;\n }\n if ( s_tlsextstatus ) {\n SSL_CTX_set_tlsext_status_cb ( ctx , cert_status_cb ) ;\n tlscstatp . err = bio_err ;\n SSL_CTX_set_tlsext_status_arg ( ctx , & tlscstatp ) ;\n }\n # endif # ifndef OPENSSL_NO_KRB5 if ( ( kctx = kssl_ctx_new ( ) ) != NULL ) {\n SSL_set0_kssl_ctx ( con , kctx ) ;\n kssl_ctx_setstring ( kctx , KSSL_SERVICE , KRB5SVC ) ;\n kssl_ctx_setstring ( kctx , KSSL_KEYTAB , KRB5KEYTAB ) ;\n }\n # endif if ( context ) SSL_set_session_id_context ( con , context , strlen ( ( char * ) context ) ) ;\n }\n SSL_clear ( con ) ;\n # if 0 # ifdef TLSEXT_TYPE_opaque_prf_input SSL_set_tlsext_opaque_prf_input ( con , \"Test server\" , 11 ) ;\n # endif # endif if ( SSL_version ( con ) == DTLS1_VERSION ) {\n sbio = BIO_new_dgram ( s , BIO_NOCLOSE ) ;\n if ( enable_timeouts ) {\n timeout . tv_sec = 0 ;\n timeout . tv_usec = DGRAM_RCV_TIMEOUT ;\n BIO_ctrl ( sbio , BIO_CTRL_DGRAM_SET_RECV_TIMEOUT , 0 , & timeout ) ;\n timeout . tv_sec = 0 ;\n timeout . tv_usec = DGRAM_SND_TIMEOUT ;\n BIO_ctrl ( sbio , BIO_CTRL_DGRAM_SET_SEND_TIMEOUT , 0 , & timeout ) ;\n }\n if ( socket_mtu ) {\n if ( socket_mtu < DTLS_get_link_min_mtu ( con ) ) {\n BIO_printf ( bio_err , \"MTU too small. Must be at least %ld\\n\" , DTLS_get_link_min_mtu ( con ) ) ;\n ret = - 1 ;\n BIO_free ( sbio ) ;\n goto err ;\n }\n SSL_set_options ( con , SSL_OP_NO_QUERY_MTU ) ;\n if ( ! DTLS_set_link_mtu ( con , socket_mtu ) ) {\n BIO_printf ( bio_err , \"Failed to set MTU\\n\" ) ;\n ret = - 1 ;\n BIO_free ( sbio ) ;\n goto err ;\n }\n }\n else BIO_ctrl ( sbio , BIO_CTRL_DGRAM_MTU_DISCOVER , 0 , NULL ) ;\n SSL_set_options ( con , SSL_OP_COOKIE_EXCHANGE ) ;\n }\n else sbio = BIO_new_socket ( s , BIO_NOCLOSE ) ;\n if ( s_nbio_test ) {\n BIO * test ;\n test = BIO_new ( BIO_f_nbio_test ( ) ) ;\n sbio = BIO_push ( test , sbio ) ;\n }\n # ifndef OPENSSL_NO_JPAKE if ( jpake_secret ) jpake_server_auth ( bio_s_out , sbio , jpake_secret ) ;\n # endif SSL_set_bio ( con , sbio , sbio ) ;\n SSL_set_accept_state ( con ) ;\n if ( s_debug ) {\n SSL_set_debug ( con , 1 ) ;\n BIO_set_callback ( SSL_get_rbio ( con ) , bio_dump_callback ) ;\n BIO_set_callback_arg ( SSL_get_rbio ( con ) , ( char * ) bio_s_out ) ;\n }\n if ( s_msg ) {\n SSL_set_msg_callback ( con , msg_cb ) ;\n SSL_set_msg_callback_arg ( con , bio_s_out ) ;\n }\n # ifndef OPENSSL_NO_TLSEXT if ( s_tlsextdebug ) {\n SSL_set_tlsext_debug_callback ( con , tlsext_cb ) ;\n SSL_set_tlsext_debug_arg ( con , bio_s_out ) ;\n }\n # endif width = s + 1 ;\n for ( ;\n ;\n ) {\n int read_from_terminal ;\n int read_from_sslcon ;\n read_from_terminal = 0 ;\n read_from_sslcon = SSL_pending ( con ) ;\n if ( ! read_from_sslcon ) {\n FD_ZERO ( & readfds ) ;\n # if ! defined ( OPENSSL_SYS_WINDOWS ) && ! defined ( OPENSSL_SYS_MSDOS ) && ! defined ( OPENSSL_SYS_NETWARE ) && ! defined ( OPENSSL_SYS_BEOS_R5 ) openssl_fdset ( fileno ( stdin ) , & readfds ) ;\n # endif openssl_fdset ( s , & readfds ) ;\n # if defined ( OPENSSL_SYS_WINDOWS ) || defined ( OPENSSL_SYS_MSDOS ) || defined ( OPENSSL_SYS_NETWARE ) tv . tv_sec = 1 ;\n tv . tv_usec = 0 ;\n i = select ( width , ( void * ) & readfds , NULL , NULL , & tv ) ;\n if ( ( i < 0 ) || ( ! i && ! _kbhit ( ) ) ) continue ;\n if ( _kbhit ( ) ) read_from_terminal = 1 ;\n # elif defined ( OPENSSL_SYS_BEOS_R5 ) tv . tv_sec = 1 ;\n tv . tv_usec = 0 ;\n ( void ) fcntl ( fileno ( stdin ) , F_SETFL , O_NONBLOCK ) ;\n i = select ( width , ( void * ) & readfds , NULL , NULL , & tv ) ;\n if ( ( i < 0 ) || ( ! i && read ( fileno ( stdin ) , buf , 0 ) < 0 ) ) continue ;\n if ( read ( fileno ( stdin ) , buf , 0 ) >= 0 ) read_from_terminal = 1 ;\n ( void ) fcntl ( fileno ( stdin ) , F_SETFL , 0 ) ;\n # else if ( ( SSL_version ( con ) == DTLS1_VERSION ) && DTLSv1_get_timeout ( con , & timeout ) ) timeoutp = & timeout ;\n else timeoutp = NULL ;\n i = select ( width , ( void * ) & readfds , NULL , NULL , timeoutp ) ;\n if ( ( SSL_version ( con ) == DTLS1_VERSION ) && DTLSv1_handle_timeout ( con ) > 0 ) {\n BIO_printf ( bio_err , \"TIMEOUT occured\\n\" ) ;\n }\n if ( i <= 0 ) continue ;\n if ( FD_ISSET ( fileno ( stdin ) , & readfds ) ) read_from_terminal = 1 ;\n # endif if ( FD_ISSET ( s , & readfds ) ) read_from_sslcon = 1 ;\n }\n if ( read_from_terminal ) {\n if ( s_crlf ) {\n int j , lf_num ;\n i = raw_read_stdin ( buf , bufsize / 2 ) ;\n lf_num = 0 ;\n for ( j = 0 ;\n j < i ;\n j ++ ) if ( buf [ j ] == '\\n' ) lf_num ++ ;\n for ( j = i - 1 ;\n j >= 0 ;\n j -- ) {\n buf [ j + lf_num ] = buf [ j ] ;\n if ( buf [ j ] == '\\n' ) {\n lf_num -- ;\n i ++ ;\n buf [ j + lf_num ] = '\\r' ;\n }\n }\n assert ( lf_num == 0 ) ;\n }\n else i = raw_read_stdin ( buf , bufsize ) ;\n if ( ! s_quiet ) {\n if ( ( i <= 0 ) || ( buf [ 0 ] == 'Q' ) ) {\n BIO_printf ( bio_s_out , \"DONE\\n\" ) ;\n SHUTDOWN ( s ) ;\n close_accept_socket ( ) ;\n ret = - 11 ;\n goto err ;\n }\n if ( ( i <= 0 ) || ( buf [ 0 ] == 'q' ) ) {\n BIO_printf ( bio_s_out , \"DONE\\n\" ) ;\n if ( SSL_version ( con ) != DTLS1_VERSION ) SHUTDOWN ( s ) ;\n goto err ;\n }\n # ifndef OPENSSL_NO_HEARTBEATS if ( ( buf [ 0 ] == 'B' ) && ( ( buf [ 1 ] == '\\n' ) || ( buf [ 1 ] == '\\r' ) ) ) {\n BIO_printf ( bio_err , \"HEARTBEATING\\n\" ) ;\n SSL_heartbeat ( con ) ;\n i = 0 ;\n continue ;\n }\n # endif if ( ( buf [ 0 ] == 'r' ) && ( ( buf [ 1 ] == '\\n' ) || ( buf [ 1 ] == '\\r' ) ) ) {\n SSL_renegotiate ( con ) ;\n i = SSL_do_handshake ( con ) ;\n printf ( \"SSL_do_handshake -> %d\\n\" , i ) ;\n i = 0 ;\n continue ;\n }\n if ( ( buf [ 0 ] == 'R' ) && ( ( buf [ 1 ] == '\\n' ) || ( buf [ 1 ] == '\\r' ) ) ) {\n SSL_set_verify ( con , SSL_VERIFY_PEER | SSL_VERIFY_CLIENT_ONCE , NULL ) ;\n SSL_renegotiate ( con ) ;\n i = SSL_do_handshake ( con ) ;\n printf ( \"SSL_do_handshake -> %d\\n\" , i ) ;\n i = 0 ;\n continue ;\n }\n if ( buf [ 0 ] == 'P' ) {\n static const char * str = \"Lets print some clear text\\n\" ;\n BIO_write ( SSL_get_wbio ( con ) , str , strlen ( str ) ) ;\n }\n if ( buf [ 0 ] == 'S' ) {\n print_stats ( bio_s_out , SSL_get_SSL_CTX ( con ) ) ;\n }\n }\n # ifdef CHARSET_EBCDIC ebcdic2ascii ( buf , buf , i ) ;\n # endif l = k = 0 ;\n for ( ;\n ;\n ) {\n # ifdef RENEG {\n static count = 0 ;\n if ( ++ count == 100 ) {\n count = 0 ;\n SSL_renegotiate ( con ) ;\n }\n }\n # endif k = SSL_write ( con , & ( buf [ l ] ) , ( unsigned int ) i ) ;\n # ifndef OPENSSL_NO_SRP while ( SSL_get_error ( con , k ) == SSL_ERROR_WANT_X509_LOOKUP ) {\n BIO_printf ( bio_s_out , \"LOOKUP renego during write\\n\" ) ;\n SRP_user_pwd_free ( srp_callback_parm . user ) ;\n srp_callback_parm . user = SRP_VBASE_get1_by_user ( srp_callback_parm . vb , srp_callback_parm . login ) ;\n if ( srp_callback_parm . user ) BIO_printf ( bio_s_out , \"LOOKUP done %s\\n\" , srp_callback_parm . user -> info ) ;\n else BIO_printf ( bio_s_out , \"LOOKUP not successful\\n\" ) ;\n k = SSL_write ( con , & ( buf [ l ] ) , ( unsigned int ) i ) ;\n }\n # endif switch ( SSL_get_error ( con , k ) ) {\n case SSL_ERROR_NONE : break ;\n case SSL_ERROR_WANT_WRITE : case SSL_ERROR_WANT_READ : case SSL_ERROR_WANT_X509_LOOKUP : BIO_printf ( bio_s_out , \"Write BLOCK\\n\" ) ;\n break ;\n case SSL_ERROR_SYSCALL : case SSL_ERROR_SSL : BIO_printf ( bio_s_out , \"ERROR\\n\" ) ;\n ERR_print_errors ( bio_err ) ;\n ret = 1 ;\n goto err ;\n case SSL_ERROR_ZERO_RETURN : BIO_printf ( bio_s_out , \"DONE\\n\" ) ;\n ret = 1 ;\n goto err ;\n }\n if ( k > 0 ) {\n l += k ;\n i -= k ;\n }\n if ( i <= 0 ) break ;\n }\n }\n if ( read_from_sslcon ) {\n if ( ! SSL_is_init_finished ( con ) ) {\n i = init_ssl_connection ( con ) ;\n if ( i < 0 ) {\n ret = 0 ;\n goto err ;\n }\n else if ( i == 0 ) {\n ret = 1 ;\n goto err ;\n }\n }\n else {\n again : i = SSL_read ( con , ( char * ) buf , bufsize ) ;\n # ifndef OPENSSL_NO_SRP while ( SSL_get_error ( con , i ) == SSL_ERROR_WANT_X509_LOOKUP ) {\n BIO_printf ( bio_s_out , \"LOOKUP renego during read\\n\" ) ;\n SRP_user_pwd_free ( srp_callback_parm . user ) ;\n srp_callback_parm . user = SRP_VBASE_get1_by_user ( srp_callback_parm . vb , srp_callback_parm . login ) ;\n if ( srp_callback_parm . user ) BIO_printf ( bio_s_out , \"LOOKUP done %s\\n\" , srp_callback_parm . user -> info ) ;\n else BIO_printf ( bio_s_out , \"LOOKUP not successful\\n\" ) ;\n i = SSL_read ( con , ( char * ) buf , bufsize ) ;\n }\n # endif switch ( SSL_get_error ( con , i ) ) {\n case SSL_ERROR_NONE : # ifdef CHARSET_EBCDIC ascii2ebcdic ( buf , buf , i ) ;\n # endif raw_write_stdout ( buf , ( unsigned int ) i ) ;\n if ( SSL_pending ( con ) ) goto again ;\n break ;\n case SSL_ERROR_WANT_WRITE : case SSL_ERROR_WANT_READ : BIO_printf ( bio_s_out , \"Read BLOCK\\n\" ) ;\n break ;\n case SSL_ERROR_SYSCALL : case SSL_ERROR_SSL : BIO_printf ( bio_s_out , \"ERROR\\n\" ) ;\n ERR_print_errors ( bio_err ) ;\n ret = 1 ;\n goto err ;\n case SSL_ERROR_ZERO_RETURN : BIO_printf ( bio_s_out , \"DONE\\n\" ) ;\n ret = 1 ;\n goto err ;\n }\n }\n }\n }\n err : if ( con != NULL ) {\n BIO_printf ( bio_s_out , \"shutting down SSL\\n\" ) ;\n # if 1 SSL_set_shutdown ( con , SSL_SENT_SHUTDOWN | SSL_RECEIVED_SHUTDOWN ) ;\n # else SSL_shutdown ( con ) ;\n # endif SSL_free ( con ) ;\n }\n BIO_printf ( bio_s_out , \"CONNECTION CLOSED\\n\" ) ;\n if ( buf != NULL ) {\n OPENSSL_cleanse ( buf , bufsize ) ;\n OPENSSL_free ( buf ) ;\n }\n if ( ret >= 0 ) BIO_printf ( bio_s_out , \"ACCEPT\\n\" ) ;\n return ( ret ) ;\n }\n static void close_accept_socket ( void ) {\n BIO_printf ( bio_err , \"shutdown accept socket\\n\" ) ;\n if ( accept_socket >= 0 ) {\n SHUTDOWN2 ( accept_socket ) ;\n }\n }\n static int init_ssl_connection ( SSL * con ) {\n int i ;\n const char * str ;\n X509 * peer ;\n long verify_error ;\n MS_STATIC char buf [ BUFSIZ ] ;\n # ifndef OPENSSL_NO_KRB5 char * client_princ ;\n # endif # if ! defined ( OPENSSL_NO_TLSEXT ) && ! defined ( OPENSSL_NO_NEXTPROTONEG ) const unsigned char * next_proto_neg ;\n unsigned next_proto_neg_len ;\n # endif unsigned char * exportedkeymat ;\n i = SSL_accept ( con ) ;\n # ifndef OPENSSL_NO_SRP while ( i <= 0 && SSL_get_error ( con , i ) == SSL_ERROR_WANT_X509_LOOKUP ) {\n BIO_printf ( bio_s_out , \"LOOKUP during accept %s\\n\" , srp_callback_parm . login ) ;\n SRP_user_pwd_free ( srp_callback_parm . user ) ;\n srp_callback_parm . user = SRP_VBASE_get1_by_user ( srp_callback_parm . vb , srp_callback_parm . login ) ;\n if ( srp_callback_parm . user ) BIO_printf ( bio_s_out , \"LOOKUP done %s\\n\" , srp_callback_parm . user -> info ) ;\n else BIO_printf ( bio_s_out , \"LOOKUP not successful\\n\" ) ;\n i = SSL_accept ( con ) ;\n }\n # endif if ( i <= 0 ) {\n if ( BIO_sock_should_retry ( i ) ) {\n BIO_printf ( bio_s_out , \"DELAY\\n\" ) ;\n return ( 1 ) ;\n }\n BIO_printf ( bio_err , \"ERROR\\n\" ) ;\n verify_error = SSL_get_verify_result ( con ) ;\n if ( verify_error != X509_V_OK ) {\n BIO_printf ( bio_err , \"verify error:%s\\n\" , X509_verify_cert_error_string ( verify_error ) ) ;\n }\n else ERR_print_errors ( bio_err ) ;\n return ( 0 ) ;\n }\n PEM_write_bio_SSL_SESSION ( bio_s_out , SSL_get_session ( con ) ) ;\n peer = SSL_get_peer_certificate ( con ) ;\n if ( peer != NULL ) {\n BIO_printf ( bio_s_out , \"Client certificate\\n\" ) ;\n PEM_write_bio_X509 ( bio_s_out , peer ) ;\n X509_NAME_oneline ( X509_get_subject_name ( peer ) , buf , sizeof buf ) ;\n BIO_printf ( bio_s_out , \"subject=%s\\n\" , buf ) ;\n X509_NAME_oneline ( X509_get_issuer_name ( peer ) , buf , sizeof buf ) ;\n BIO_printf ( bio_s_out , \"issuer=%s\\n\" , buf ) ;\n X509_free ( peer ) ;\n }\n if ( SSL_get_shared_ciphers ( con , buf , sizeof buf ) != NULL ) BIO_printf ( bio_s_out , \"Shared ciphers:%s\\n\" , buf ) ;\n str = SSL_CIPHER_get_name ( SSL_get_current_cipher ( con ) ) ;\n BIO_printf ( bio_s_out , \"CIPHER is %s\\n\" , ( str != NULL ) ? str : \"(NONE)\" ) ;\n # if ! defined ( OPENSSL_NO_TLSEXT ) && ! defined ( OPENSSL_NO_NEXTPROTONEG ) SSL_get0_next_proto_negotiated ( con , & next_proto_neg , & next_proto_neg_len ) ;\n if ( next_proto_neg ) {\n BIO_printf ( bio_s_out , \"NEXTPROTO is \" ) ;\n BIO_write ( bio_s_out , next_proto_neg , next_proto_neg_len ) ;\n BIO_printf ( bio_s_out , \"\\n\" ) ;\n }\n # endif # ifndef OPENSSL_NO_SRTP {\n SRTP_PROTECTION_PROFILE * srtp_profile = SSL_get_selected_srtp_profile ( con ) ;\n if ( srtp_profile ) BIO_printf ( bio_s_out , \"SRTP Extension negotiated, profile=%s\\n\" , srtp_profile -> name ) ;\n }\n # endif if ( SSL_cache_hit ( con ) ) BIO_printf ( bio_s_out , \"Reused session-id\\n\" ) ;\n if ( SSL_ctrl ( con , SSL_CTRL_GET_FLAGS , 0 , NULL ) & TLS1_FLAGS_TLS_PADDING_BUG ) BIO_printf ( bio_s_out , \"Peer has incorrect TLSv1 block padding\\n\" ) ;\n # ifndef OPENSSL_NO_KRB5 client_princ = kssl_ctx_get0_client_princ ( SSL_get0_kssl_ctx ( con ) ) ;\n if ( client_princ != NULL ) {\n BIO_printf ( bio_s_out , \"Kerberos peer principal is %s\\n\" , client_princ ) ;\n }\n # endif BIO_printf ( bio_s_out , \"Secure Renegotiation IS%s supported\\n\" , SSL_get_secure_renegotiation_support ( con ) ? \"\" : \" NOT\" ) ;\n if ( keymatexportlabel != NULL ) {\n BIO_printf ( bio_s_out , \"Keying material exporter:\\n\" ) ;\n BIO_printf ( bio_s_out , \" Label: '%s'\\n\" , keymatexportlabel ) ;\n BIO_printf ( bio_s_out , \" Length: %i bytes\\n\" , keymatexportlen ) ;\n exportedkeymat = OPENSSL_malloc ( keymatexportlen ) ;\n if ( exportedkeymat != NULL ) {\n if ( ! SSL_export_keying_material ( con , exportedkeymat , keymatexportlen , keymatexportlabel , strlen ( keymatexportlabel ) , NULL , 0 , 0 ) ) {\n BIO_printf ( bio_s_out , \" Error\\n\" ) ;\n }\n else {\n BIO_printf ( bio_s_out , \" Keying material: \" ) ;\n for ( i = 0 ;\n i < keymatexportlen ;\n i ++ ) BIO_printf ( bio_s_out , \"%02X\" , exportedkeymat [ i ] ) ;\n BIO_printf ( bio_s_out , \"\\n\" ) ;\n }\n OPENSSL_free ( exportedkeymat ) ;\n }\n }\n return ( 1 ) ;\n }\n # ifndef OPENSSL_NO_DH static DH * load_dh_param ( const char * dhfile ) {\n DH * ret = NULL ;\n BIO * bio ;\n if ( ( bio = BIO_new_file ( dhfile , \"r\" ) ) == NULL ) goto err ;\n ret = PEM_read_bio_DHparams ( bio , NULL , NULL , NULL ) ;\n err : if ( bio != NULL ) BIO_free ( bio ) ;\n return ( ret ) ;\n }\n # endif # ifndef OPENSSL_NO_KRB5 char * client_princ ;\n # endif # if 0 static int load_CA ( SSL_CTX * ctx , char * file ) {\n FILE * in ;\n X509 * x = NULL ;\n if ( ( in = fopen ( file , \"r\" ) ) == NULL ) return ( 0 ) ;\n for ( ;\n ;\n ) {\n if ( PEM_read_X509 ( in , & x , NULL ) == NULL ) break ;\n SSL_CTX_add_client_CA ( ctx , x ) ;\n }\n if ( x != NULL ) X509_free ( x ) ;\n fclose ( in ) ;\n return ( 1 ) ;\n }\n # endif static int www_body ( char * hostname , int s , unsigned char * context ) {\n char * buf = NULL ;\n int ret = 1 ;\n int i , j , k , dot ;\n SSL * con ;\n const SSL_CIPHER * c ;\n BIO * io , * ssl_bio , * sbio ;\n # ifndef OPENSSL_NO_KRB5 KSSL_CTX * kctx ;\n # endif buf = OPENSSL_malloc ( bufsize ) ;\n if ( buf == NULL ) return ( 0 ) ;\n io = BIO_new ( BIO_f_buffer ( ) ) ;\n ssl_bio = BIO_new ( BIO_f_ssl ( ) ) ;\n if ( ( io == NULL ) || ( ssl_bio == NULL ) ) goto err ;\n # ifdef FIONBIO if ( s_nbio ) {\n unsigned long sl = 1 ;\n if ( ! s_quiet ) BIO_printf ( bio_err , \"turning on non blocking io\\n\" ) ;\n if ( BIO_socket_ioctl ( s , FIONBIO , & sl ) < 0 ) ERR_print_errors ( bio_err ) ;\n }\n # endif if ( ! BIO_set_write_buffer_size ( io , bufsize ) ) goto err ;\n if ( ( con = SSL_new ( ctx ) ) == NULL ) goto err ;\n # ifndef OPENSSL_NO_TLSEXT if ( s_tlsextdebug ) {\n SSL_set_tlsext_debug_callback ( con , tlsext_cb ) ;\n SSL_set_tlsext_debug_arg ( con , bio_s_out ) ;\n }\n # endif # ifndef OPENSSL_NO_KRB5 if ( ( kctx = kssl_ctx_new ( ) ) != NULL ) {\n kssl_ctx_setstring ( kctx , KSSL_SERVICE , KRB5SVC ) ;\n kssl_ctx_setstring ( kctx , KSSL_KEYTAB , KRB5KEYTAB ) ;\n }\n # endif if ( context ) SSL_set_session_id_context ( con , context , strlen ( ( char * ) context ) ) ;\n sbio = BIO_new_socket ( s , BIO_NOCLOSE ) ;\n if ( s_nbio_test ) {\n BIO * test ;\n test = BIO_new ( BIO_f_nbio_test ( ) ) ;\n sbio = BIO_push ( test , sbio ) ;\n }\n SSL_set_bio ( con , sbio , sbio ) ;\n SSL_set_accept_state ( con ) ;\n BIO_set_ssl ( ssl_bio , con , BIO_CLOSE ) ;\n BIO_push ( io , ssl_bio ) ;\n # ifdef CHARSET_EBCDIC io = BIO_push ( BIO_new ( BIO_f_ebcdic_filter ( ) ) , io ) ;\n # endif if ( s_debug ) {\n SSL_set_debug ( con , 1 ) ;\n BIO_set_callback ( SSL_get_rbio ( con ) , bio_dump_callback ) ;\n BIO_set_callback_arg ( SSL_get_rbio ( con ) , ( char * ) bio_s_out ) ;\n }\n if ( s_msg ) {\n SSL_set_msg_callback ( con , msg_cb ) ;\n SSL_set_msg_callback_arg ( con , bio_s_out ) ;\n }\n for ( ;\n ;\n ) {\n if ( hack ) {\n i = SSL_accept ( con ) ;\n # ifndef OPENSSL_NO_SRP while ( i <= 0 && SSL_get_error ( con , i ) == SSL_ERROR_WANT_X509_LOOKUP ) {\n BIO_printf ( bio_s_out , \"LOOKUP during accept %s\\n\" , srp_callback_parm . login ) ;\n SRP_user_pwd_free ( srp_callback_parm . user ) ;\n srp_callback_parm . user = SRP_VBASE_get1_by_user ( srp_callback_parm . vb , srp_callback_parm . login ) ;\n if ( srp_callback_parm . user ) BIO_printf ( bio_s_out , \"LOOKUP done %s\\n\" , srp_callback_parm . user -> info ) ;\n else BIO_printf ( bio_s_out , \"LOOKUP not successful\\n\" ) ;\n i = SSL_accept ( con ) ;\n }\n # endif switch ( SSL_get_error ( con , i ) ) {\n case SSL_ERROR_NONE : break ;\n case SSL_ERROR_WANT_WRITE : case SSL_ERROR_WANT_READ : case SSL_ERROR_WANT_X509_LOOKUP : continue ;\n case SSL_ERROR_SYSCALL : case SSL_ERROR_SSL : case SSL_ERROR_ZERO_RETURN : ret = 1 ;\n goto err ;\n }\n SSL_renegotiate ( con ) ;\n SSL_write ( con , NULL , 0 ) ;\n }\n i = BIO_gets ( io , buf , bufsize - 1 ) ;\n if ( i < 0 ) {\n if ( ! BIO_should_retry ( io ) ) {\n if ( ! s_quiet ) ERR_print_errors ( bio_err ) ;\n goto err ;\n }\n else {\n BIO_printf ( bio_s_out , \"read R BLOCK\\n\" ) ;\n # ifndef OPENSSL_NO_SRP if ( BIO_should_io_special ( io ) && BIO_get_retry_reason ( io ) == BIO_RR_SSL_X509_LOOKUP ) {\n BIO_printf ( bio_s_out , \"LOOKUP renego during read\\n\" ) ;\n SRP_user_pwd_free ( srp_callback_parm . user ) ;\n srp_callback_parm . user = SRP_VBASE_get1_by_user ( srp_callback_parm . vb , srp_callback_parm . login ) ;\n if ( srp_callback_parm . user ) BIO_printf ( bio_s_out , \"LOOKUP done %s\\n\" , srp_callback_parm . user -> info ) ;\n else BIO_printf ( bio_s_out , \"LOOKUP not successful\\n\" ) ;\n continue ;\n }\n # endif # if defined ( OPENSSL_SYS_NETWARE ) delay ( 1000 ) ;\n # elif ! defined ( OPENSSL_SYS_MSDOS ) && ! defined ( __DJGPP__ ) sleep ( 1 ) ;\n # endif continue ;\n }\n }\n else if ( i == 0 ) {\n ret = 1 ;\n goto end ;\n }\n if ( ( ( www == 1 ) && ( strncmp ( \"GET \" , buf , 4 ) == 0 ) ) || ( ( www == 2 ) && ( strncmp ( \"GET /stats \" , buf , 11 ) == 0 ) ) ) {\n char * p ;\n X509 * peer ;\n STACK_OF ( SSL_CIPHER ) * sk ;\n static const char * space = \" \" ;\n BIO_puts ( io , \"HTTP/1.0 200 ok\\r\\nContent-type: text/html\\r\\n\\r\\n\" ) ;\n BIO_puts ( io , \"<HTML><BODY BGCOLOR=\\\"#ffffff\\\">\\n\" ) ;\n BIO_puts ( io , \"<pre>\\n\" ) ;\n BIO_puts ( io , \"\\n\" ) ;\n for ( i = 0 ;\n i < local_argc ;\n i ++ ) {\n BIO_puts ( io , local_argv [ i ] ) ;\n BIO_write ( io , \" \" , 1 ) ;\n }\n BIO_puts ( io , \"\\n\" ) ;\n BIO_printf ( io , \"Secure Renegotiation IS%s supported\\n\" , SSL_get_secure_renegotiation_support ( con ) ? \"\" : \" NOT\" ) ;\n BIO_printf ( io , \"Ciphers supported in s_server binary\\n\" ) ;\n sk = SSL_get_ciphers ( con ) ;\n j = sk_SSL_CIPHER_num ( sk ) ;\n for ( i = 0 ;\n i < j ;\n i ++ ) {\n c = sk_SSL_CIPHER_value ( sk , i ) ;\n BIO_printf ( io , \"%-11s:%-25s\" , SSL_CIPHER_get_version ( c ) , SSL_CIPHER_get_name ( c ) ) ;\n if ( ( ( ( i + 1 ) % 2 ) == 0 ) && ( i + 1 != j ) ) BIO_puts ( io , \"\\n\" ) ;\n }\n BIO_puts ( io , \"\\n\" ) ;\n p = SSL_get_shared_ciphers ( con , buf , bufsize ) ;\n if ( p != NULL ) {\n BIO_printf ( io , \"---\\nCiphers common between both SSL end points:\\n\" ) ;\n j = i = 0 ;\n while ( * p ) {\n if ( * p == ':' ) {\n BIO_write ( io , space , 26 - j ) ;\n i ++ ;\n j = 0 ;\n BIO_write ( io , ( ( i % 3 ) ? \" \" : \"\\n\" ) , 1 ) ;\n }\n else {\n BIO_write ( io , p , 1 ) ;\n j ++ ;\n }\n p ++ ;\n }\n BIO_puts ( io , \"\\n\" ) ;\n }\n BIO_printf ( io , ( SSL_cache_hit ( con ) ? \"---\\nReused, \" : \"---\\nNew, \" ) ) ;\n c = SSL_get_current_cipher ( con ) ;\n BIO_printf ( io , \"%s, Cipher is %s\\n\" , SSL_CIPHER_get_version ( c ) , SSL_CIPHER_get_name ( c ) ) ;\n SSL_SESSION_print ( io , SSL_get_session ( con ) ) ;\n BIO_printf ( io , \"---\\n\" ) ;\n print_stats ( io , SSL_get_SSL_CTX ( con ) ) ;\n BIO_printf ( io , \"---\\n\" ) ;\n peer = SSL_get_peer_certificate ( con ) ;\n if ( peer != NULL ) {\n BIO_printf ( io , \"Client certificate\\n\" ) ;\n X509_print ( io , peer ) ;\n PEM_write_bio_X509 ( io , peer ) ;\n }\n else BIO_puts ( io , \"no client certificate available\\n\" ) ;\n BIO_puts ( io , \"</BODY></HTML>\\r\\n\\r\\n\" ) ;\n break ;\n }\n else if ( ( www == 2 || www == 3 ) && ( strncmp ( \"GET /\" , buf , 5 ) == 0 ) ) {\n BIO * file ;\n char * p , * e ;\n static const char * text = \"HTTP/1.0 200 ok\\r\\nContent-type: text/plain\\r\\n\\r\\n\" ;\n p = & ( buf [ 5 ] ) ;\n dot = 1 ;\n for ( e = p ;\n * e != '\\0' ;\n e ++ ) {\n if ( e [ 0 ] == ' ' ) break ;\n switch ( dot ) {\n case 1 : dot = ( e [ 0 ] == '.' ) ? 2 : 0 ;\n break ;\n case 2 : dot = ( e [ 0 ] == '.' ) ? 3 : 0 ;\n break ;\n case 3 : dot = ( e [ 0 ] == '/' ) ? - 1 : 0 ;\n break ;\n }\n if ( dot == 0 ) dot = ( e [ 0 ] == '/' ) ? 1 : 0 ;\n }\n dot = ( dot == 3 ) || ( dot == - 1 ) ;\n if ( * e == '\\0' ) {\n BIO_puts ( io , text ) ;\n BIO_printf ( io , \"'%s' is an invalid file name\\r\\n\" , p ) ;\n break ;\n }\n * e = '\\0' ;\n if ( dot ) {\n BIO_puts ( io , text ) ;\n BIO_printf ( io , \"'%s' contains '..' reference\\r\\n\" , p ) ;\n break ;\n }\n if ( * p == '/' ) {\n BIO_puts ( io , text ) ;\n BIO_printf ( io , \"'%s' is an invalid path\\r\\n\" , p ) ;\n break ;\n }\n # if 0 if ( e [ - 1 ] == '/' ) strcat ( p , \"index.html\" ) ;\n # endif if ( app_isdir ( p ) > 0 ) {\n # if 0 strcat ( p , \"/index.html\" ) ;\n # else BIO_puts ( io , text ) ;\n BIO_printf ( io , \"'%s' is a directory\\r\\n\" , p ) ;\n break ;\n # endif }\n if ( ( file = BIO_new_file ( p , \"r\" ) ) == NULL ) {\n BIO_puts ( io , text ) ;\n BIO_printf ( io , \"Error opening '%s'\\r\\n\" , p ) ;\n ERR_print_errors ( io ) ;\n break ;\n }\n if ( ! s_quiet ) BIO_printf ( bio_err , \"FILE:%s\\n\" , p ) ;\n if ( www == 2 ) {\n i = strlen ( p ) ;\n if ( ( ( i > 5 ) && ( strcmp ( & ( p [ i - 5 ] ) , \".html\" ) == 0 ) ) || ( ( i > 4 ) && ( strcmp ( & ( p [ i - 4 ] ) , \".php\" ) == 0 ) ) || ( ( i > 4 ) && ( strcmp ( & ( p [ i - 4 ] ) , \".htm\" ) == 0 ) ) ) BIO_puts ( io , \"HTTP/1.0 200 ok\\r\\nContent-type: text/html\\r\\n\\r\\n\" ) ;\n else BIO_puts ( io , \"HTTP/1.0 200 ok\\r\\nContent-type: text/plain\\r\\n\\r\\n\" ) ;\n }\n for ( ;\n ;\n ) {\n i = BIO_read ( file , buf , bufsize ) ;\n if ( i <= 0 ) break ;\n # ifdef RENEG total_bytes += i ;\n fprintf ( stderr , \"%d\\n\" , i ) ;\n if ( total_bytes > 3 * 1024 ) {\n total_bytes = 0 ;\n fprintf ( stderr , \"RENEGOTIATE\\n\" ) ;\n SSL_renegotiate ( con ) ;\n }\n # endif for ( j = 0 ;\n j < i ;\n ) {\n # ifdef RENEG {\n static count = 0 ;\n if ( ++ count == 13 ) {\n SSL_renegotiate ( con ) ;\n }\n }\n # endif k = BIO_write ( io , & ( buf [ j ] ) , i - j ) ;\n if ( k <= 0 ) {\n if ( ! BIO_should_retry ( io ) ) goto write_error ;\n else {\n BIO_printf ( bio_s_out , \"rwrite W BLOCK\\n\" ) ;\n }\n }\n else {\n j += k ;\n }\n }\n }\n write_error : BIO_free ( file ) ;\n break ;\n }\n }\n for ( ;\n ;\n ) {\n i = ( int ) BIO_flush ( io ) ;\n if ( i <= 0 ) {\n if ( ! BIO_should_retry ( io ) ) break ;\n }\n else break ;\n }\n end : # if 1 SSL_set_shutdown ( con , SSL_SENT_SHUTDOWN | SSL_RECEIVED_SHUTDOWN ) ;\n # else # endif err : if ( ret >= 0 ) BIO_printf ( bio_s_out , \"ACCEPT\\n\" ) ;\n if ( buf != NULL ) OPENSSL_free ( buf ) ;\n if ( io != NULL ) BIO_free_all ( io ) ;\n return ( ret ) ;\n }\n # ifndef OPENSSL_NO_RSA static RSA MS_CALLBACK * tmp_rsa_cb ( SSL * s , int is_export , int keylength ) {\n BIGNUM * bn = NULL ;\n static RSA * rsa_tmp = NULL ;\n if ( ! rsa_tmp && ( ( bn = BN_new ( ) ) == NULL ) ) BIO_printf ( bio_err , \"Allocation error in generating RSA key\\n\" ) ;\n if ( ! rsa_tmp && bn ) {\n if ( ! s_quiet ) {\n BIO_printf ( bio_err , \"Generating temp (%d bit) RSA key...\" , keylength ) ;\n ( void ) BIO_flush ( bio_err ) ;\n }\n if ( ! BN_set_word ( bn , RSA_F4 ) || ( ( rsa_tmp = RSA_new ( ) ) == NULL ) || ! RSA_generate_key_ex ( rsa_tmp , keylength , bn , NULL ) ) {\n if ( rsa_tmp ) RSA_free ( rsa_tmp ) ;\n rsa_tmp = NULL ;\n }\n if ( ! s_quiet ) {\n BIO_printf ( bio_err , \"\\n\" ) ;\n ( void ) BIO_flush ( bio_err ) ;\n }\n BN_free ( bn ) ;\n }\n return ( rsa_tmp ) ;\n }\n # endif # define MAX_SESSION_ID_ATTEMPTS 10 static int generate_session_id ( const SSL * ssl , unsigned char * id , unsigned int * id_len ) {\n unsigned int count = 0 ;\n do {\n if ( RAND_pseudo_bytes ( id , * id_len ) < 0 ) return 0 ;\n memcpy ( id , session_id_prefix , ( strlen ( session_id_prefix ) < * id_len ) ? strlen ( session_id_prefix ) : * id_len ) ;\n }\n while ( SSL_has_matching_session_id ( ssl , id , * id_len ) && ( ++ count < MAX_SESSION_ID_ATTEMPTS ) ) ;\n if ( count >= MAX_SESSION_ID_ATTEMPTS ) return 0 ;\n return 1 ;\n }"}
{"idx": 11205, "target": 1, "func": "int i2d_ ## name ( type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;\n int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING )"}
{"idx": 11206, "target": 0, "func": "static void ss5_init ( QEMUMachineInitArgs * args ) {\n ram_addr_t RAM_size = args -> ram_size ;\n const char * cpu_model = args -> cpu_model ;\n const char * kernel_filename = args -> kernel_filename ;\n const char * kernel_cmdline = args -> kernel_cmdline ;\n const char * initrd_filename = args -> initrd_filename ;\n const char * boot_device = args -> boot_device ;\n sun4m_hw_init ( & sun4m_hwdefs [ 0 ] , RAM_size , boot_device , kernel_filename , kernel_cmdline , initrd_filename , cpu_model ) ;\n }"}
{"idx": 11207, "target": 0, "func": "TSHttpParser TSHttpParserCreate ( void ) {\n TSHttpParser parser = reinterpret_cast < TSHttpParser > ( ats_malloc ( sizeof ( HTTPParser ) ) ) ;\n http_parser_init ( ( HTTPParser * ) parser ) ;\n return parser ;\n }"}
{"idx": 11208, "target": 0, "func": "static char * sapi_uwsgi_read_cookies ( TSRMLS_D ) {\n uint16_t len = 0 ;\n struct wsgi_request * wsgi_req = ( struct wsgi_request * ) SG ( server_context ) ;\n char * cookie = uwsgi_get_var ( wsgi_req , ( char * ) \"HTTP_COOKIE\" , 11 , & len ) ;\n if ( cookie ) {\n return estrndup ( cookie , len ) ;\n }\n return NULL ;\n }"}
{"idx": 11209, "target": 0, "func": "proto_item * proto_tree_add_guid ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , const e_guid_t * value_ptr ) {\n proto_item * pi ;\n header_field_info * hfinfo ;\n CHECK_FOR_NULL_TREE ( tree ) ;\n TRY_TO_FAKE_THIS_ITEM ( tree , hfindex , hfinfo ) ;\n DISSECTOR_ASSERT_FIELD_TYPE ( hfinfo , FT_GUID ) ;\n pi = proto_tree_add_pi ( tree , hfinfo , tvb , start , & length ) ;\n proto_tree_set_guid ( PNODE_FINFO ( pi ) , value_ptr ) ;\n return pi ;\n }"}
{"idx": 11210, "target": 0, "func": "static bool is_abs_modrm ( uint8_t modrm ) {\n return ( modrm & 0xc7 ) == 0x05 ;\n }"}
{"idx": 11211, "target": 0, "func": "static void cmd_channel_list ( void ) {\n GString * str ;\n GSList * tmp ;\n str = g_string_new ( NULL ) ;\n printformat ( NULL , NULL , MSGLEVEL_CLIENTCRAP , TXT_CHANSETUP_HEADER ) ;\n for ( tmp = setupchannels ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n CHANNEL_SETUP_REC * rec = tmp -> data ;\n g_string_truncate ( str , 0 ) ;\n if ( rec -> autojoin ) g_string_append ( str , \"autojoin, \" ) ;\n if ( rec -> botmasks != NULL && * rec -> botmasks != '\\0' ) g_string_append_printf ( str , \"bots: %s, \" , rec -> botmasks ) ;\n if ( rec -> autosendcmd != NULL && * rec -> autosendcmd != '\\0' ) g_string_append_printf ( str , \"botcmd: %s, \" , rec -> autosendcmd ) ;\n if ( str -> len > 2 ) g_string_truncate ( str , str -> len - 2 ) ;\n printformat ( NULL , NULL , MSGLEVEL_CLIENTCRAP , TXT_CHANSETUP_LINE , rec -> name , rec -> chatnet == NULL ? \"\" : rec -> chatnet , rec -> password == NULL ? \"\" : rec -> password , str -> str ) ;\n }\n g_string_free ( str , TRUE ) ;\n printformat ( NULL , NULL , MSGLEVEL_CLIENTCRAP , TXT_CHANSETUP_FOOTER ) ;\n }"}
{"idx": 11212, "target": 0, "func": "void ff_xvmc_pack_pblocks ( MpegEncContext * s , int cbp ) {\n int i , j = 0 ;\n const int mb_block_count = 4 + ( 1 << s -> chroma_format ) ;\n cbp <<= 12 - mb_block_count ;\n for ( i = 0 ;\n i < mb_block_count ;\n i ++ ) {\n if ( cbp & ( 1 << 11 ) ) s -> pblocks [ i ] = & s -> block [ j ++ ] ;\n else s -> pblocks [ i ] = NULL ;\n cbp += cbp ;\n }\n }"}
{"idx": 11213, "target": 0, "func": "static void stubHashScannerFull ( void * payload , void * data , const xmlChar * name , const xmlChar * name2 ATTRIBUTE_UNUSED , const xmlChar * name3 ATTRIBUTE_UNUSED ) {\n stubData * stubdata = ( stubData * ) data ;\n stubdata -> hashscanner ( payload , stubdata -> data , ( xmlChar * ) name ) ;\n }"}
{"idx": 11214, "target": 0, "func": "gboolean nautilus_mime_file_launches ( NautilusFile * file ) {\n ActivationAction activation_action ;\n activation_action = get_activation_action ( file ) ;\n return ( activation_action == ACTIVATION_ACTION_LAUNCH ) ;\n }"}
{"idx": 11215, "target": 0, "func": "void proto_register_lbmpdm ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_lbmpdm_magic , {\n \"Magic\" , \"lbmpdm.magic\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_encoding , {\n \"Encoding\" , \"lbmpdm.encoding\" , FT_STRING , BASE_NONE , NULL , 0x0 , \"encoding as determined by magic number\" , HFILL }\n }\n , {\n & hf_lbmpdm_ver , {\n \"Version\" , \"lbmpdm.ver\" , FT_UINT8 , BASE_DEC , NULL , PDM_HDR_VER_TYPE_VER_MASK , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_type , {\n \"Type\" , \"lbmpdm.type\" , FT_UINT8 , BASE_DEC , NULL , PDM_HDR_VER_TYPE_TYPE_MASK , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_next_hdr , {\n \"Next Header\" , \"lbmpdm.next_hdr\" , FT_UINT8 , BASE_DEC_HEX , VALS ( lbmpdm_next_header ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_def_major_ver , {\n \"Definition Major Version\" , \"lbmpdm.def_major_ver\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_def_minor_ver , {\n \"Definition Minor Version\" , \"lbmpdm.def_minor_ver\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_def_id , {\n \"Definition ID\" , \"lbmpdm.def_id\" , FT_UINT32 , BASE_DEC_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_len , {\n \"Length\" , \"lbmpdm.len\" , FT_UINT32 , BASE_DEC_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_segments , {\n \"Segments\" , \"lbmpdm.segments\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_segment , {\n \"Segment\" , \"lbmpdm.segment\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_segment_next_hdr , {\n \"Next Header\" , \"lbmpdm.segment.next_hdr\" , FT_UINT8 , BASE_DEC_HEX , VALS ( lbmpdm_next_header ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_segment_flags , {\n \"Flags\" , \"lbmpdm.segment.flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_segment_res , {\n \"Reserved\" , \"lbmpdm.segment.res\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_segment_len , {\n \"Length\" , \"lbmpdm.segment.len\" , FT_UINT32 , BASE_DEC_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_segment_def_id , {\n \"Definition ID\" , \"lbmpdm.segment_def.id\" , FT_UINT32 , BASE_DEC_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_segment_def_num_fields , {\n \"Number Of Fields\" , \"lbmpdm.segment_def.num_fields\" , FT_UINT32 , BASE_DEC_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_segment_def_field_names_type , {\n \"Field Names Type\" , \"lbmpdm.segment_def.field_names_type\" , FT_UINT8 , BASE_HEX , VALS ( lbmpdm_field_name_type ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_segment_def_finalized , {\n \"Finalized\" , \"lbmpdm.segment_def.finalized\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_segment_def_msg_vers_major , {\n \"Definition Major Version\" , \"lbmpdm.segment_def.msg_vers_major\" , FT_UINT8 , BASE_DEC_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_segment_def_msg_vers_minor , {\n \"Definition Minor Version\" , \"lbmpdm.segment_def.msg_vers_minor\" , FT_UINT8 , BASE_DEC_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_segment_def_fixed_req_section_len , {\n \"Fixed Required Section Length\" , \"lbmpdm.segment_def.fixed_req_section_len\" , FT_UINT32 , BASE_DEC_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_segment_def_field_info_len , {\n \"Field Information Length\" , \"lbmpdm.segment_def.field_info_len\" , FT_UINT32 , BASE_DEC_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_segment_def_field , {\n \"Field Definition\" , \"lbmpdm.segment_def.field\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_segment_def_field_def_len , {\n \"Definition Length\" , \"lbmpdm.segment_def.field.def_len\" , FT_UINT32 , BASE_DEC_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_segment_def_field_id , {\n \"ID\" , \"lbmpdm.segment_def.field.id\" , FT_UINT32 , BASE_DEC_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_segment_def_field_len , {\n \"Length\" , \"lbmpdm.segment_def.field.len\" , FT_UINT32 , BASE_DEC_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_segment_def_field_fixed_str_len , {\n \"Fixed String Length\" , \"lbmpdm.segment_def.field.fixed_str_len\" , FT_UINT32 , BASE_DEC_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_segment_def_field_num_arr_elem , {\n \"Number Of Array Elements\" , \"lbmpdm.segment_def.field.num_arr_elem\" , FT_UINT32 , BASE_DEC_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_segment_def_field_req , {\n \"Required\" , \"lbmpdm.segment_def.field.req\" , FT_UINT8 , BASE_HEX , VALS ( lbmpdm_field_required ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_segment_def_field_fixed , {\n \"Fixed Length Field\" , \"lbmpdm.segment_def.field.fixed\" , FT_UINT8 , BASE_HEX , VALS ( lbmpdm_field_fixed_length ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_segment_def_field_fld_int_name , {\n \"Field Integer Name\" , \"lbmpdm.segment_def.field.fld_int_name\" , FT_INT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_segment_def_field_str_name_len , {\n \"String Name Length\" , \"lbmpdm.segment_def.field.str_name_len\" , FT_INT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_segment_def_field_str_name , {\n \"String Name\" , \"lbmpdm.segment_def.field.str_name\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_segment_def_field_fld_type , {\n \"Field Type\" , \"lbmpdm.segment_def.field.fld_type\" , FT_UINT16 , BASE_DEC_HEX , VALS ( lbmpdm_field_type ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_offset_entry , {\n \"Offset Entry\" , \"lbmpdm.segment_ofs.entry\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_offset_entry_id , {\n \"ID\" , \"lbmpdm.segment_ofs.entry.id\" , FT_UINT32 , BASE_DEC_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_offset_entry_offset , {\n \"Offset\" , \"lbmpdm.segment_ofs.entry.offset\" , FT_UINT32 , BASE_DEC_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_segment_data , {\n \"Data\" , \"lbmpdm.segment.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_field , {\n \"Field\" , \"lbmpdm.field\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_field_id , {\n \"ID\" , \"lbmpdm.field.id\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_field_string_name , {\n \"String Name\" , \"lbmpdm.field.string_name\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_field_int_name , {\n \"Integer Name\" , \"lbmpdm.field.int_name\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_field_type , {\n \"Type\" , \"lbmpdm.field.type\" , FT_UINT16 , BASE_DEC_HEX , VALS ( lbmpdm_field_type ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_field_total_length , {\n \"Total Length\" , \"lbmpdm.field.total_length\" , FT_UINT32 , BASE_DEC_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_field_length , {\n \"Length\" , \"lbmpdm.field.length\" , FT_UINT32 , BASE_DEC_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_field_value_boolean , {\n \"Boolean Value\" , \"lbmpdm.field.value_boolean\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_field_value_int8 , {\n \"INT8 Value\" , \"lbmpdm.field.value_int8\" , FT_INT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_field_value_uint8 , {\n \"UINT8 Value\" , \"lbmpdm.field.value_uint8\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_field_value_int16 , {\n \"INT16 Value\" , \"lbmpdm.field.value_int16\" , FT_INT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_field_value_uint16 , {\n \"UINT16 Value\" , \"lbmpdm.field.value_uint16\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_field_value_int32 , {\n \"INT32 Value\" , \"lbmpdm.field.value_int32\" , FT_INT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_field_value_uint32 , {\n \"UINT32 Value\" , \"lbmpdm.field.value_uint32\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_field_value_int64 , {\n \"INT64 Value\" , \"lbmpdm.field.value_int64\" , FT_INT64 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_field_value_uint64 , {\n \"UINT64 Value\" , \"lbmpdm.field.value_uint64\" , FT_UINT64 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_field_value_float , {\n \"FLOAT Value\" , \"lbmpdm.field.value_float\" , FT_FLOAT , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_field_value_double , {\n \"DOUBLE Value\" , \"lbmpdm.field.value_double\" , FT_DOUBLE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_field_value_decimal , {\n \"DECIMAL Value\" , \"lbmpdm.field.value_decimal\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_field_value_timestamp , {\n \"TIMESTAMP Value\" , \"lbmpdm.field.value_timestamp\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_LOCAL , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_field_value_fixed_string , {\n \"FIXED STRING Value\" , \"lbmpdm.field.value_fixed_string\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_field_value_string , {\n \"STRING Value\" , \"lbmpdm.field.value_string\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_field_value_fixed_unicode , {\n \"FIXED UNICODE Value\" , \"lbmpdm.field.value_fixed_unicode\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_field_value_unicode , {\n \"UNICODE Value\" , \"lbmpdm.field.value_unicode\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_field_value_blob , {\n \"BLOB Value\" , \"lbmpdm.field.value_blob\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_lbmpdm_field_value_message , {\n \"MESSAGE Value\" , \"lbmpdm.field.value_message\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n }\n ;\n static gint * ett [ ] = {\n & ett_lbmpdm , & ett_lbmpdm_segments , & ett_lbmpdm_segment , & ett_lbmpdm_offset_entry , & ett_lbmpdm_segment_def_field , & ett_lbmpdm_field }\n ;\n proto_lbmpdm = proto_register_protocol ( \"LBMPDM Protocol\" , \"LBMPDM\" , \"lbmpdm\" ) ;\n proto_register_field_array ( proto_lbmpdm , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n lbmpdm_definition_table = wmem_tree_new_autoreset ( wmem_epan_scope ( ) , wmem_file_scope ( ) ) ;\n }"}
{"idx": 11216, "target": 0, "func": "static gint dissect_rtp ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n proto_item * ti = NULL ;\n proto_tree * volatile rtp_tree = NULL ;\n proto_tree * rtp_csrc_tree = NULL ;\n proto_tree * rtp_hext_tree = NULL ;\n guint8 octet1 , octet2 ;\n unsigned int version ;\n gboolean padding_set ;\n gboolean extension_set ;\n unsigned int csrc_count ;\n gboolean marker_set ;\n unsigned int payload_type ;\n const gchar * payload_type_str = NULL ;\n gboolean is_srtp = FALSE ;\n unsigned int i = 0 ;\n unsigned int hdr_extension_len = 0 ;\n unsigned int hdr_extension_id = 0 ;\n volatile unsigned int padding_count ;\n gint length , reported_length ;\n int data_len ;\n volatile unsigned int offset = 0 ;\n guint16 seq_num ;\n guint32 timestamp ;\n guint32 sync_src ;\n guint32 csrc_item ;\n struct _rtp_conversation_info * p_conv_data = NULL ;\n unsigned int hdrext_offset = 0 ;\n tvbuff_t * newtvb = NULL ;\n const char * pt = NULL ;\n static struct _rtp_info rtp_info_arr [ 4 ] ;\n static int rtp_info_current = 0 ;\n struct _rtp_info * rtp_info ;\n rtp_info_current ++ ;\n if ( rtp_info_current == 4 ) {\n rtp_info_current = 0 ;\n }\n rtp_info = & rtp_info_arr [ rtp_info_current ] ;\n octet1 = tvb_get_guint8 ( tvb , offset ) ;\n version = RTP_VERSION ( octet1 ) ;\n if ( version == 0 ) {\n switch ( global_rtp_version0_type ) {\n case RTP0_STUN : call_dissector ( stun_handle , tvb , pinfo , tree ) ;\n return tvb_length ( tvb ) ;\n case RTP0_CLASSICSTUN : call_dissector ( classicstun_handle , tvb , pinfo , tree ) ;\n return tvb_length ( tvb ) ;\n case RTP0_T38 : call_dissector ( t38_handle , tvb , pinfo , tree ) ;\n return tvb_length ( tvb ) ;\n case RTP0_SPRT : call_dissector ( sprt_handle , tvb , pinfo , tree ) ;\n return tvb_length ( tvb ) ;\n case RTP0_INVALID : if ( ! ( tvb_memeql ( tvb , 4 , \"ZRTP\" , 4 ) ) ) {\n call_dissector ( zrtp_handle , tvb , pinfo , tree ) ;\n return tvb_length ( tvb ) ;\n }\n default : ;\n }\n }\n rtp_info -> info_version = version ;\n if ( version != 2 ) {\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"RTP\" ) ;\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"Unknown RTP version %u\" , version ) ;\n if ( tree ) {\n ti = proto_tree_add_item ( tree , proto_rtp , tvb , offset , - 1 , ENC_NA ) ;\n rtp_tree = proto_item_add_subtree ( ti , ett_rtp ) ;\n proto_tree_add_uint ( rtp_tree , hf_rtp_version , tvb , offset , 1 , octet1 ) ;\n }\n return offset ;\n }\n padding_set = RTP_PADDING ( octet1 ) ;\n extension_set = RTP_EXTENSION ( octet1 ) ;\n csrc_count = RTP_CSRC_COUNT ( octet1 ) ;\n octet2 = tvb_get_guint8 ( tvb , offset + 1 ) ;\n marker_set = RTP_MARKER ( octet2 ) ;\n payload_type = RTP_PAYLOAD_TYPE ( octet2 ) ;\n if ( marker_set && payload_type >= FIRST_RTCP_CONFLICT_PAYLOAD_TYPE && payload_type <= LAST_RTCP_CONFLICT_PAYLOAD_TYPE ) {\n call_dissector ( rtcp_handle , tvb , pinfo , tree ) ;\n return tvb_length ( tvb ) ;\n }\n seq_num = tvb_get_ntohs ( tvb , offset + 2 ) ;\n timestamp = tvb_get_ntohl ( tvb , offset + 4 ) ;\n sync_src = tvb_get_ntohl ( tvb , offset + 8 ) ;\n rtp_info -> info_padding_set = padding_set ;\n rtp_info -> info_padding_count = 0 ;\n rtp_info -> info_marker_set = marker_set ;\n rtp_info -> info_is_video = FALSE ;\n rtp_info -> info_payload_type = payload_type ;\n rtp_info -> info_seq_num = seq_num ;\n rtp_info -> info_timestamp = timestamp ;\n rtp_info -> info_sync_src = sync_src ;\n rtp_info -> info_is_srtp = FALSE ;\n rtp_info -> info_setup_frame_num = 0 ;\n rtp_info -> info_payload_type_str = NULL ;\n rtp_info -> info_payload_rate = 0 ;\n length = tvb_length_remaining ( tvb , offset ) ;\n reported_length = tvb_reported_length_remaining ( tvb , offset ) ;\n if ( reported_length >= 0 && length >= reported_length ) {\n rtp_info -> info_all_data_present = TRUE ;\n rtp_info -> info_data_len = reported_length ;\n rtp_info -> info_data = tvb_get_ptr ( tvb , 0 , - 1 ) ;\n }\n else {\n rtp_info -> info_all_data_present = FALSE ;\n rtp_info -> info_data_len = 0 ;\n rtp_info -> info_data = NULL ;\n }\n get_conv_info ( pinfo , rtp_info ) ;\n p_conv_data = ( struct _rtp_conversation_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_rtp , 0 ) ;\n if ( p_conv_data ) rtp_info -> info_is_video = p_conv_data -> is_video ;\n if ( p_conv_data && p_conv_data -> srtp_info ) is_srtp = TRUE ;\n rtp_info -> info_is_srtp = is_srtp ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , ( is_srtp ) ? \"SRTP\" : \"RTP\" ) ;\n p_conv_data = ( struct _rtp_conversation_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_rtp , 0 ) ;\n # if 0 if ( p_conv_data && p_conv_data -> srtp_info ) {\n srtp_info = p_conv_data -> srtp_info ;\n if ( rtp_info -> info_all_data_present ) {\n srtp_offset = rtp_info -> info_data_len - srtp_info -> mki_len - srtp_info -> auth_tag_len ;\n }\n }\n # endif if ( p_conv_data && p_conv_data -> bta2dp_info && p_conv_data -> bta2dp_info -> codec_dissector ) {\n rtp_info -> info_payload_type_str = ( const char * ) dissector_handle_get_short_name ( p_conv_data -> bta2dp_info -> codec_dissector ) ;\n }\n else if ( p_conv_data && p_conv_data -> btvdp_info && p_conv_data -> btvdp_info -> codec_dissector ) {\n rtp_info -> info_payload_type_str = ( const char * ) dissector_handle_get_short_name ( p_conv_data -> btvdp_info -> codec_dissector ) ;\n }\n if ( ( payload_type > 95 ) && ( payload_type < 128 ) ) {\n if ( p_conv_data && p_conv_data -> rtp_dyn_payload ) {\n int sample_rate = 0 ;\n # ifdef DEBUG_CONVERSATION rtp_dump_dyn_payload ( p_conv_data -> rtp_dyn_payload ) ;\n # endif DPRINT ( ( \"looking up conversation data for dyn_pt=%d\" , payload_type ) ) ;\n if ( rtp_dyn_payload_get_full ( p_conv_data -> rtp_dyn_payload , payload_type , & payload_type_str , & sample_rate ) ) {\n DPRINT ( ( \"found conversation data for dyn_pt=%d, enc_name=%s\" , payload_type , payload_type_str ) ) ;\n rtp_info -> info_payload_type_str = payload_type_str ;\n rtp_info -> info_payload_rate = sample_rate ;\n }\n }\n }\n if ( p_conv_data && p_conv_data -> bta2dp_info ) {\n pt = ( p_conv_data -> bta2dp_info -> codec_dissector ) ? dissector_handle_get_short_name ( p_conv_data -> bta2dp_info -> codec_dissector ) : \"Unknown\" ;\n }\n else if ( p_conv_data && p_conv_data -> btvdp_info ) {\n pt = ( p_conv_data -> btvdp_info -> codec_dissector ) ? dissector_handle_get_short_name ( p_conv_data -> btvdp_info -> codec_dissector ) : \"Unknown\" ;\n }\n else {\n pt = ( payload_type_str ? payload_type_str : val_to_str_ext ( payload_type , & rtp_payload_type_vals_ext , \"Unknown (%u)\" ) ) ;\n }\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"PT=%s, SSRC=0x%X, Seq=%u, Time=%u%s\" , pt , sync_src , seq_num , timestamp , marker_set ? \", Mark\" : \"\" ) ;\n if ( tree ) {\n proto_tree * item ;\n ti = proto_tree_add_item ( tree , proto_rtp , tvb , offset , - 1 , ENC_NA ) ;\n rtp_tree = proto_item_add_subtree ( ti , ett_rtp ) ;\n if ( global_rtp_show_setup_info ) {\n show_setup_info ( tvb , pinfo , rtp_tree ) ;\n }\n proto_tree_add_uint ( rtp_tree , hf_rtp_version , tvb , offset , 1 , octet1 ) ;\n proto_tree_add_boolean ( rtp_tree , hf_rtp_padding , tvb , offset , 1 , octet1 ) ;\n proto_tree_add_boolean ( rtp_tree , hf_rtp_extension , tvb , offset , 1 , octet1 ) ;\n proto_tree_add_uint ( rtp_tree , hf_rtp_csrc_count , tvb , offset , 1 , octet1 ) ;\n offset ++ ;\n proto_tree_add_boolean ( rtp_tree , hf_rtp_marker , tvb , offset , 1 , octet2 ) ;\n proto_tree_add_uint_format ( rtp_tree , hf_rtp_payload_type , tvb , offset , 1 , octet2 , \"Payload type: %s (%u)\" , pt , payload_type ) ;\n offset ++ ;\n proto_tree_add_uint ( rtp_tree , hf_rtp_seq_nr , tvb , offset , 2 , seq_num ) ;\n if ( p_conv_data != NULL ) {\n item = proto_tree_add_uint ( rtp_tree , hf_rtp_ext_seq_nr , tvb , offset , 2 , p_conv_data -> extended_seqno ) ;\n PROTO_ITEM_SET_GENERATED ( item ) ;\n }\n offset += 2 ;\n proto_tree_add_uint ( rtp_tree , hf_rtp_timestamp , tvb , offset , 4 , timestamp ) ;\n offset += 4 ;\n proto_tree_add_uint ( rtp_tree , hf_rtp_ssrc , tvb , offset , 4 , sync_src ) ;\n offset += 4 ;\n }\n else {\n offset += 12 ;\n }\n if ( csrc_count > 0 ) {\n ti = proto_tree_add_item ( rtp_tree , hf_rtp_csrc_items , tvb , offset , csrc_count * 4 , ENC_NA ) ;\n proto_item_append_text ( ti , \" (%u items)\" , csrc_count ) ;\n rtp_csrc_tree = proto_item_add_subtree ( ti , ett_csrc_list ) ;\n for ( i = 0 ;\n i < csrc_count ;\n i ++ ) {\n csrc_item = tvb_get_ntohl ( tvb , offset ) ;\n proto_tree_add_uint_format ( rtp_csrc_tree , hf_rtp_csrc_item , tvb , offset , 4 , csrc_item , \"CSRC item %d: 0x%X\" , i , csrc_item ) ;\n offset += 4 ;\n }\n }\n if ( extension_set ) {\n hdr_extension_id = tvb_get_ntohs ( tvb , offset ) ;\n if ( tree ) proto_tree_add_uint ( rtp_tree , hf_rtp_prof_define , tvb , offset , 2 , hdr_extension_id ) ;\n offset += 2 ;\n hdr_extension_len = tvb_get_ntohs ( tvb , offset ) ;\n if ( tree ) proto_tree_add_uint ( rtp_tree , hf_rtp_length , tvb , offset , 2 , hdr_extension_len ) ;\n offset += 2 ;\n if ( hdr_extension_len > 0 ) {\n if ( tree ) {\n ti = proto_tree_add_item ( rtp_tree , hf_rtp_hdr_exts , tvb , offset , hdr_extension_len * 4 , ENC_NA ) ;\n rtp_hext_tree = proto_item_add_subtree ( ti , ett_hdr_ext ) ;\n }\n newtvb = tvb_new_subset ( tvb , offset , hdr_extension_len * 4 , hdr_extension_len * 4 ) ;\n if ( hdr_extension_id == RTP_RFC5215_ONE_BYTE_SIG ) {\n dissect_rtp_hext_rfc5215_onebyte ( newtvb , pinfo , rtp_hext_tree ) ;\n }\n else if ( ( hdr_extension_id & RTP_RFC5215_TWO_BYTE_MASK ) == RTP_RFC5215_TWO_BYTE_SIG ) {\n dissect_rtp_hext_rfc5215_twobytes ( tvb , offset - 4 , hdr_extension_id , newtvb , pinfo , rtp_hext_tree ) ;\n }\n else {\n if ( ! ( dissector_try_uint ( rtp_hdr_ext_dissector_table , hdr_extension_id , newtvb , pinfo , rtp_hext_tree ) ) ) {\n hdrext_offset = offset ;\n for ( i = 0 ;\n i < hdr_extension_len ;\n i ++ ) {\n if ( tree ) proto_tree_add_uint ( rtp_hext_tree , hf_rtp_hdr_ext , tvb , hdrext_offset , 4 , tvb_get_ntohl ( tvb , hdrext_offset ) ) ;\n hdrext_offset += 4 ;\n }\n }\n }\n }\n offset += hdr_extension_len * 4 ;\n }\n if ( padding_set ) {\n if ( tvb_length ( tvb ) < tvb_reported_length ( tvb ) ) {\n if ( tree ) proto_tree_add_text ( rtp_tree , tvb , 0 , 0 , \"Frame has padding, but not all the frame data was captured\" ) ;\n call_dissector ( data_handle , tvb_new_subset_remaining ( tvb , offset ) , pinfo , rtp_tree ) ;\n return tvb_length ( tvb ) ;\n }\n padding_count = tvb_get_guint8 ( tvb , tvb_reported_length ( tvb ) - 1 ) ;\n data_len = tvb_reported_length_remaining ( tvb , offset ) - padding_count ;\n rtp_info -> info_payload_offset = offset ;\n rtp_info -> info_payload_len = tvb_length_remaining ( tvb , offset ) ;\n rtp_info -> info_padding_count = padding_count ;\n if ( p_conv_data && p_conv_data -> bta2dp_info ) {\n if ( p_conv_data -> bta2dp_info -> codec_dissector == sbc_handle ) {\n rtp_info -> info_payload_offset += 1 ;\n rtp_info -> info_payload_len -= 1 ;\n }\n if ( p_conv_data -> bta2dp_info -> content_protection_type == BTAVDTP_CONTENT_PROTECTION_TYPE_SCMS_T ) {\n rtp_info -> info_payload_offset += 1 ;\n rtp_info -> info_payload_len -= 1 ;\n }\n }\n if ( p_conv_data && p_conv_data -> btvdp_info && p_conv_data -> bta2dp_info -> content_protection_type == BTAVDTP_CONTENT_PROTECTION_TYPE_SCMS_T ) {\n rtp_info -> info_payload_offset += 1 ;\n rtp_info -> info_payload_len -= 1 ;\n }\n if ( data_len > 0 ) {\n TRY {\n dissect_rtp_data ( tvb , pinfo , tree , rtp_tree , offset , data_len , data_len , payload_type ) ;\n }\n CATCH_ALL {\n if ( ! pinfo -> flags . in_error_pkt ) tap_queue_packet ( rtp_tap , pinfo , rtp_info ) ;\n RETHROW ;\n }\n ENDTRY ;\n offset += data_len ;\n }\n else if ( data_len < 0 ) {\n padding_count = tvb_reported_length_remaining ( tvb , offset ) ;\n }\n if ( padding_count > 1 ) {\n if ( tree ) proto_tree_add_item ( rtp_tree , hf_rtp_padding_data , tvb , offset , padding_count - 1 , ENC_NA ) ;\n offset += padding_count - 1 ;\n }\n if ( tree ) proto_tree_add_item ( rtp_tree , hf_rtp_padding_count , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n }\n else {\n rtp_info -> info_payload_offset = offset ;\n rtp_info -> info_payload_len = tvb_length_remaining ( tvb , offset ) ;\n if ( p_conv_data && p_conv_data -> bta2dp_info ) {\n if ( p_conv_data -> bta2dp_info -> codec_dissector == sbc_handle ) {\n rtp_info -> info_payload_offset += 1 ;\n rtp_info -> info_payload_len -= 1 ;\n }\n if ( p_conv_data -> bta2dp_info -> content_protection_type == BTAVDTP_CONTENT_PROTECTION_TYPE_SCMS_T ) {\n rtp_info -> info_payload_offset += 1 ;\n rtp_info -> info_payload_len -= 1 ;\n }\n }\n if ( p_conv_data && p_conv_data -> btvdp_info && p_conv_data -> bta2dp_info -> content_protection_type == BTAVDTP_CONTENT_PROTECTION_TYPE_SCMS_T ) {\n rtp_info -> info_payload_offset += 1 ;\n rtp_info -> info_payload_len -= 1 ;\n }\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n TRY {\n dissect_rtp_data ( tvb , pinfo , tree , rtp_tree , offset , tvb_length_remaining ( tvb , offset ) , tvb_reported_length_remaining ( tvb , offset ) , payload_type ) ;\n }\n CATCH_ALL {\n if ( ! pinfo -> flags . in_error_pkt ) tap_queue_packet ( rtp_tap , pinfo , rtp_info ) ;\n RETHROW ;\n }\n ENDTRY ;\n }\n }\n if ( ! pinfo -> flags . in_error_pkt ) tap_queue_packet ( rtp_tap , pinfo , rtp_info ) ;\n return offset ;\n }"}
{"idx": 11217, "target": 0, "func": "void vp9_iwht4x4_add ( const tran_low_t * input , uint8_t * dest , int stride , int eob ) {\n if ( eob > 1 ) vp9_iwht4x4_16_add ( input , dest , stride ) ;\n else vp9_iwht4x4_1_add ( input , dest , stride ) ;\n }"}
{"idx": 11218, "target": 0, "func": "static int32_t u_scanf_scientific_handler ( UFILE * input , u_scanf_spec_info * info , ufmt_args * args , const UChar * fmt , int32_t * fmtConsumed , int32_t * argConverted ) {\n ( void ) fmt ;\n ( void ) fmtConsumed ;\n int32_t len ;\n double num ;\n UNumberFormat * format ;\n int32_t parsePos = 0 ;\n int32_t skipped ;\n UErrorCode status = U_ZERO_ERROR ;\n UChar srcExpBuf [ UPRINTF_SYMBOL_BUFFER_SIZE ] ;\n int32_t srcLen , expLen ;\n UChar expBuf [ UPRINTF_SYMBOL_BUFFER_SIZE ] ;\n skipped = u_scanf_skip_leading_ws ( input , info -> fPadChar ) ;\n ufile_fill_uchar_buffer ( input ) ;\n len = ( int32_t ) ( input -> str . fLimit - input -> str . fPos ) ;\n if ( info -> fWidth != - 1 ) len = ufmt_min ( len , info -> fWidth ) ;\n format = u_locbund_getNumberFormat ( & input -> str . fBundle , UNUM_SCIENTIFIC ) ;\n if ( format == 0 ) return 0 ;\n srcLen = unum_getSymbol ( format , UNUM_EXPONENTIAL_SYMBOL , srcExpBuf , sizeof ( srcExpBuf ) , & status ) ;\n if ( info -> fSpec == ( UChar ) 0x65 ) {\n expLen = u_strToLower ( expBuf , ( int32_t ) sizeof ( expBuf ) , srcExpBuf , srcLen , input -> str . fBundle . fLocale , & status ) ;\n }\n else {\n expLen = u_strToUpper ( expBuf , ( int32_t ) sizeof ( expBuf ) , srcExpBuf , srcLen , input -> str . fBundle . fLocale , & status ) ;\n }\n unum_setSymbol ( format , UNUM_EXPONENTIAL_SYMBOL , expBuf , expLen , & status ) ;\n skipped += u_scanf_skip_leading_positive_sign ( input , format , & status ) ;\n num = unum_parseDouble ( format , input -> str . fPos , len , & parsePos , & status ) ;\n if ( ! info -> fSkipArg ) {\n if ( info -> fIsLong ) * ( double * ) ( args [ 0 ] . ptrValue ) = num ;\n else if ( info -> fIsLongDouble ) * ( long double * ) ( args [ 0 ] . ptrValue ) = num ;\n else * ( float * ) ( args [ 0 ] . ptrValue ) = ( float ) num ;\n }\n input -> str . fPos += parsePos ;\n * argConverted = ! info -> fSkipArg ;\n return parsePos + skipped ;\n }"}
{"idx": 11219, "target": 0, "func": "static void update_state ( AMRContext * p ) {\n memcpy ( p -> prev_lsp_sub4 , p -> lsp [ 3 ] , LP_FILTER_ORDER * sizeof ( p -> lsp [ 3 ] [ 0 ] ) ) ;\n memmove ( & p -> excitation_buf [ 0 ] , & p -> excitation_buf [ AMR_SUBFRAME_SIZE ] , ( PITCH_DELAY_MAX + LP_FILTER_ORDER + 1 ) * sizeof ( float ) ) ;\n memmove ( & p -> pitch_gain [ 0 ] , & p -> pitch_gain [ 1 ] , 4 * sizeof ( float ) ) ;\n memmove ( & p -> fixed_gain [ 0 ] , & p -> fixed_gain [ 1 ] , 4 * sizeof ( float ) ) ;\n memmove ( & p -> samples_in [ 0 ] , & p -> samples_in [ AMR_SUBFRAME_SIZE ] , LP_FILTER_ORDER * sizeof ( float ) ) ;\n }"}
{"idx": 11220, "target": 0, "func": "static void decode_power_conf_frequency ( gchar * s , guint32 value ) {\n if ( value == 0x00 ) g_snprintf ( s , ITEM_LABEL_LENGTH , \"Frequency too low to be measured (or DC supply)\" ) ;\n else if ( value == 0xfe ) g_snprintf ( s , ITEM_LABEL_LENGTH , \"Frequency too high to be measured\" ) ;\n else if ( value == 0xff ) g_snprintf ( s , ITEM_LABEL_LENGTH , \"Frequency could not be measured\" ) ;\n else g_snprintf ( s , ITEM_LABEL_LENGTH , \"%d [Hz]\" , value * 2 ) ;\n return ;\n }"}
{"idx": 11221, "target": 0, "func": "static void copy_prev_row ( Jbig2Image * image , int row ) {\n if ( ! row ) {\n memset ( image -> data , 0 , image -> stride ) ;\n }\n else {\n uint8_t * src = image -> data + ( row - 1 ) * image -> stride ;\n memcpy ( src + image -> stride , src , image -> stride ) ;\n }\n }"}
{"idx": 11222, "target": 0, "func": "int gx_device_close_output_file ( const gx_device * dev , const char * fname , FILE * file ) {\n gs_parsed_file_name_t parsed ;\n const char * fmt ;\n int code = gx_parse_output_file_name ( & parsed , & fmt , fname , strlen ( fname ) , dev -> memory ) ;\n if ( code < 0 ) return code ;\n if ( parsed . iodev ) {\n if ( ! strcmp ( parsed . iodev -> dname , \"%stdout%\" ) ) return 0 ;\n if ( parsed . iodev != iodev_default ( dev -> memory ) ) return parsed . iodev -> procs . fclose ( parsed . iodev , file ) ;\n }\n gp_close_printer ( dev -> memory , file , ( parsed . fname ? parsed . fname : fname ) ) ;\n return 0 ;\n }"}
{"idx": 11223, "target": 0, "func": "static int dissect_h245_RequestChannelCloseAck ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_RequestChannelCloseAck , RequestChannelCloseAck_sequence ) ;\n return offset ;\n }"}
{"idx": 11224, "target": 0, "func": "static struct pskeyval * lookup ( struct pskeydict * dict , char * tokbuf ) {\n int i ;\n for ( i = 0 ;\n i < dict -> cnt ;\n ++ i ) if ( strcmp ( dict -> entries [ i ] . key , tokbuf ) == 0 ) return ( & dict -> entries [ i ] ) ;\n return ( NULL ) ;\n }"}
{"idx": 11225, "target": 0, "func": "static int dissect_h225_H322Caps ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_H322Caps , H322Caps_sequence ) ;\n return offset ;\n }"}
{"idx": 11226, "target": 0, "func": "static void timeout_correct ( struct event_base * base , struct timeval * tv ) {\n struct event * * pev ;\n unsigned int size ;\n struct timeval off ;\n if ( use_monotonic ) return ;\n gettime ( base , tv ) ;\n if ( evutil_timercmp ( tv , & base -> event_tv , >= ) ) {\n base -> event_tv = * tv ;\n return ;\n }\n event_debug ( ( \"%s: time is running backwards, corrected\" , __func__ ) ) ;\n evutil_timersub ( & base -> event_tv , tv , & off ) ;\n pev = base -> timeheap . p ;\n size = base -> timeheap . n ;\n for ( ;\n size -- > 0 ;\n ++ pev ) {\n struct timeval * ev_tv = & ( * * pev ) . ev_timeout ;\n evutil_timersub ( ev_tv , & off , ev_tv ) ;\n }\n base -> event_tv = * tv ;\n }"}
{"idx": 11227, "target": 0, "func": "static int dissect_h225_T_nsp_data ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 817 \"./asn1/h225/h225.cnf\" tvbuff_t * next_tvb = NULL ;\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , NO_BOUND , NO_BOUND , FALSE , & next_tvb ) ;\n if ( next_tvb && tvb_reported_length ( next_tvb ) ) {\n call_dissector ( ( nsp_handle ) ? nsp_handle : data_handle , next_tvb , actx -> pinfo , tree ) ;\n }\n return offset ;\n }"}
{"idx": 11228, "target": 0, "func": "IN_PROC_BROWSER_TEST_P ( SupervisedUserNavigationThrottleTest , BlockMainFrameWithInterstitial ) {\n BlockHost ( kExampleHost2 ) ;\n GURL allowed_url = embedded_test_server ( ) -> GetURL ( kExampleHost , \"/supervised_user/simple.html\" ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , allowed_url ) ;\n EXPECT_FALSE ( IsInterstitialBeingShown ( browser ( ) ) ) ;\n GURL blocked_url = embedded_test_server ( ) -> GetURL ( kExampleHost2 , \"/supervised_user/simple.html\" ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , blocked_url ) ;\n EXPECT_TRUE ( IsInterstitialBeingShown ( browser ( ) ) ) ;\n }"}
{"idx": 11229, "target": 0, "func": "static void WinBB ( SplineFont * sf , uint16 * winascent , uint16 * windescent , struct alltabs * at ) {\n * winascent = at -> head . ymax ;\n * windescent = - at -> head . ymin ;\n if ( sf -> cidmaster != NULL ) sf = sf -> cidmaster ;\n if ( sf -> pfminfo . winascent_add ) * winascent += sf -> pfminfo . os2_winascent ;\n else * winascent = sf -> pfminfo . os2_winascent ;\n if ( sf -> pfminfo . windescent_add ) * windescent += sf -> pfminfo . os2_windescent ;\n else * windescent = sf -> pfminfo . os2_windescent ;\n }"}
{"idx": 11230, "target": 0, "func": "chunk_t x509_build_crlDistributionPoints ( linked_list_t * list , int extn ) {\n chunk_t crlDistributionPoints = chunk_empty ;\n enumerator_t * enumerator ;\n x509_cdp_t * cdp ;\n if ( list -> get_count ( list ) == 0 ) {\n return chunk_empty ;\n }\n enumerator = list -> create_enumerator ( list ) ;\n while ( enumerator -> enumerate ( enumerator , & cdp ) ) {\n chunk_t distributionPoint , crlIssuer = chunk_empty ;\n if ( cdp -> issuer ) {\n crlIssuer = asn1_wrap ( ASN1_CONTEXT_C_2 , \"m\" , build_generalName ( cdp -> issuer ) ) ;\n }\n distributionPoint = asn1_wrap ( ASN1_SEQUENCE , \"mm\" , asn1_wrap ( ASN1_CONTEXT_C_0 , \"m\" , asn1_wrap ( ASN1_CONTEXT_C_0 , \"m\" , asn1_wrap ( ASN1_CONTEXT_S_6 , \"c\" , chunk_create ( cdp -> uri , strlen ( cdp -> uri ) ) ) ) ) , crlIssuer ) ;\n crlDistributionPoints = chunk_cat ( \"mm\" , crlDistributionPoints , distributionPoint ) ;\n }\n enumerator -> destroy ( enumerator ) ;\n return asn1_wrap ( ASN1_SEQUENCE , \"mm\" , asn1_build_known_oid ( extn ) , asn1_wrap ( ASN1_OCTET_STRING , \"m\" , asn1_wrap ( ASN1_SEQUENCE , \"m\" , crlDistributionPoints ) ) ) ;\n }"}
{"idx": 11231, "target": 0, "func": "int xmlListRemoveLast ( xmlListPtr l , void * data ) {\n xmlLinkPtr lk ;\n if ( l == NULL ) return ( 0 ) ;\n lk = xmlListLinkReverseSearch ( l , data ) ;\n if ( lk != NULL ) {\n xmlLinkDeallocator ( l , lk ) ;\n return 1 ;\n }\n return 0 ;\n }"}
{"idx": 11232, "target": 0, "func": "static void pdf_drop_run_processor ( fz_context * ctx , pdf_processor * proc ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n while ( pr -> gtop ) pdf_grestore ( ctx , pr ) ;\n pdf_drop_material ( ctx , & pr -> gstate [ 0 ] . fill ) ;\n pdf_drop_material ( ctx , & pr -> gstate [ 0 ] . stroke ) ;\n pdf_drop_font ( ctx , pr -> gstate [ 0 ] . text . font ) ;\n pdf_drop_xobject ( ctx , pr -> gstate [ 0 ] . softmask ) ;\n fz_drop_stroke_state ( ctx , pr -> gstate [ 0 ] . stroke_state ) ;\n while ( pr -> gstate [ 0 ] . clip_depth -- ) fz_pop_clip ( ctx , pr -> dev ) ;\n fz_drop_path ( ctx , pr -> path ) ;\n fz_drop_text ( ctx , pr -> tos . text ) ;\n fz_drop_default_colorspaces ( ctx , pr -> default_cs ) ;\n fz_free ( ctx , pr -> gstate ) ;\n }"}
{"idx": 11233, "target": 0, "func": "static void libgsm_flush ( AVCodecContext * avctx ) {\n LibGSMDecodeContext * s = avctx -> priv_data ;\n int one = 1 ;\n gsm_destroy ( s -> state ) ;\n s -> state = gsm_create ( ) ;\n if ( avctx -> codec_id == AV_CODEC_ID_GSM_MS ) gsm_option ( s -> state , GSM_OPT_WAV49 , & one ) ;\n }"}
{"idx": 11234, "target": 1, "func": "static int aasc_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n AascContext * s = avctx -> priv_data ;\n int compr , i , stride , ret ;\n s -> frame . reference = 1 ;\n s -> frame . buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE ;\n if ( ( ret = avctx -> reget_buffer ( avctx , & s -> frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n compr = AV_RL32 ( buf ) ;\n buf += 4 ;\n buf_size -= 4 ;\n switch ( compr ) {\n case 0 : stride = ( avctx -> width * 3 + 3 ) & ~ 3 ;\n for ( i = avctx -> height - 1 ;\n i >= 0 ;\n i -- ) {\n memcpy ( s -> frame . data [ 0 ] + i * s -> frame . linesize [ 0 ] , buf , avctx -> width * 3 ) ;\n buf += stride ;\n }\n break ;\n case 1 : bytestream2_init ( & s -> gb , buf , buf_size ) ;\n ff_msrle_decode ( avctx , ( AVPicture * ) & s -> frame , 8 , & s -> gb ) ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"Unknown compression type %d\\n\" , compr ) ;\n return AVERROR_INVALIDDATA ;\n }\n * got_frame = 1 ;\n * ( AVFrame * ) data = s -> frame ;\n return buf_size ;\n }"}
{"idx": 11235, "target": 0, "func": "static char * strsep_quotes ( char * * stringp , const char delim ) {\n char * s ;\n int c ;\n char * tok ;\n if ( ( s = * stringp ) == NULL ) return ( NULL ) ;\n for ( tok = s ;\n ;\n ) {\n if ( * s == '\\\"' ) while ( * ( ++ s ) != '\\\"' && * s != '\\0' ) ;\n c = * s ++ ;\n if ( c == delim || c == 0 ) {\n if ( c == 0 ) s = NULL ;\n else s [ - 1 ] = 0 ;\n * stringp = s ;\n return ( tok ) ;\n }\n }\n }"}
{"idx": 11236, "target": 0, "func": "static int kvm_get_apic ( X86CPU * cpu ) {\n DeviceState * apic = cpu -> apic_state ;\n struct kvm_lapic_state kapic ;\n int ret ;\n if ( apic && kvm_irqchip_in_kernel ( ) ) {\n ret = kvm_vcpu_ioctl ( CPU ( cpu ) , KVM_GET_LAPIC , & kapic ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n kvm_get_apic_state ( apic , & kapic ) ;\n }\n return 0 ;\n }"}
{"idx": 11237, "target": 0, "func": "static void nameserver_ready_callback ( int fd , short events , void * arg ) {\n struct nameserver * ns = ( struct nameserver * ) arg ;\n ( void ) fd ;\n if ( events & EV_WRITE ) {\n ns -> choked = 0 ;\n if ( ! evdns_transmit ( ) ) {\n nameserver_write_waiting ( ns , 0 ) ;\n }\n }\n if ( events & EV_READ ) {\n nameserver_read ( ns ) ;\n }\n }"}
{"idx": 11238, "target": 0, "func": "int main_file_close ( main_file * xfile ) {\n int ret = 0 ;\n if ( ! main_file_isopen ( xfile ) ) {\n return 0 ;\n }\n # if XD3_STDIO ret = fclose ( xfile -> file ) ;\n xfile -> file = NULL ;\n # elif XD3_POSIX ret = close ( xfile -> file ) ;\n xfile -> file = - 1 ;\n # elif XD3_WIN32 if ( ! CloseHandle ( xfile -> file ) ) {\n ret = get_errno ( ) ;\n }\n xfile -> file = INVALID_HANDLE_VALUE ;\n # endif if ( ret != 0 ) {\n XF_ERROR ( \"close\" , xfile -> filename , ret = get_errno ( ) ) ;\n }\n return ret ;\n }"}
{"idx": 11239, "target": 0, "func": "static void init_slot ( ParallelSlot * slot , PGconn * conn , const char * progname ) {\n slot -> connection = conn ;\n slot -> isFree = true ;\n slot -> sock = PQsocket ( conn ) ;\n if ( slot -> sock < 0 ) {\n fprintf ( stderr , _ ( \"%s: invalid socket: %s\" ) , progname , PQerrorMessage ( conn ) ) ;\n exit ( 1 ) ;\n }\n }"}
{"idx": 11240, "target": 0, "func": "void config_filter_deinit ( struct config_filter_context * * _ctx ) {\n struct config_filter_context * ctx = * _ctx ;\n unsigned int i ;\n * _ctx = NULL ;\n for ( i = 0 ;\n ctx -> parsers [ i ] != NULL ;\n i ++ ) config_filter_parsers_free ( ctx -> parsers [ i ] -> parsers ) ;\n pool_unref ( & ctx -> pool ) ;\n }"}
{"idx": 11241, "target": 0, "func": "static int zend_is_callable_check_func ( int check_flags , zval * callable , zend_fcall_info_cache * fcc , int strict_class , char * * error TSRMLS_DC ) {\n zend_class_entry * ce_org = fcc -> calling_scope ;\n int retval = 0 ;\n char * mname , * lmname ;\n const char * colon ;\n int clen , mlen ;\n zend_class_entry * last_scope ;\n HashTable * ftable ;\n int call_via_handler = 0 ;\n if ( error ) {\n * error = NULL ;\n }\n fcc -> calling_scope = NULL ;\n fcc -> function_handler = NULL ;\n if ( ! ce_org ) {\n if ( Z_STRVAL_P ( callable ) [ 0 ] == '\\\\' ) {\n mlen = Z_STRLEN_P ( callable ) - 1 ;\n lmname = zend_str_tolower_dup ( Z_STRVAL_P ( callable ) + 1 , mlen ) ;\n }\n else {\n mlen = Z_STRLEN_P ( callable ) ;\n lmname = zend_str_tolower_dup ( Z_STRVAL_P ( callable ) , mlen ) ;\n }\n if ( zend_hash_find ( EG ( function_table ) , lmname , mlen + 1 , ( void * * ) & fcc -> function_handler ) == SUCCESS ) {\n efree ( lmname ) ;\n return 1 ;\n }\n efree ( lmname ) ;\n }\n if ( ( colon = zend_memrchr ( Z_STRVAL_P ( callable ) , ':' , Z_STRLEN_P ( callable ) ) ) != NULL && colon > Z_STRVAL_P ( callable ) && * ( colon - 1 ) == ':' ) {\n colon -- ;\n clen = colon - Z_STRVAL_P ( callable ) ;\n mlen = Z_STRLEN_P ( callable ) - clen - 2 ;\n if ( colon == Z_STRVAL_P ( callable ) ) {\n if ( error ) zend_spprintf ( error , 0 , \"invalid function name\" ) ;\n return 0 ;\n }\n last_scope = EG ( scope ) ;\n if ( ce_org ) {\n EG ( scope ) = ce_org ;\n }\n if ( ! zend_is_callable_check_class ( Z_STRVAL_P ( callable ) , clen , fcc , & strict_class , error TSRMLS_CC ) ) {\n EG ( scope ) = last_scope ;\n return 0 ;\n }\n EG ( scope ) = last_scope ;\n ftable = & fcc -> calling_scope -> function_table ;\n if ( ce_org && ! instanceof_function ( ce_org , fcc -> calling_scope TSRMLS_CC ) ) {\n if ( error ) zend_spprintf ( error , 0 , \"class '%s' is not a subclass of '%s'\" , ce_org -> name , fcc -> calling_scope -> name ) ;\n return 0 ;\n }\n mname = Z_STRVAL_P ( callable ) + clen + 2 ;\n }\n else if ( ce_org ) {\n mlen = Z_STRLEN_P ( callable ) ;\n mname = Z_STRVAL_P ( callable ) ;\n ftable = & ce_org -> function_table ;\n fcc -> calling_scope = ce_org ;\n }\n else {\n if ( error && ! ( check_flags & IS_CALLABLE_CHECK_SILENT ) ) {\n zend_spprintf ( error , 0 , \"function '%s' not found or invalid function name\" , Z_STRVAL_P ( callable ) ) ;\n }\n return 0 ;\n }\n lmname = zend_str_tolower_dup ( mname , mlen ) ;\n if ( strict_class && fcc -> calling_scope && mlen == sizeof ( ZEND_CONSTRUCTOR_FUNC_NAME ) - 1 && ! memcmp ( lmname , ZEND_CONSTRUCTOR_FUNC_NAME , sizeof ( ZEND_CONSTRUCTOR_FUNC_NAME ) - 1 ) ) {\n fcc -> function_handler = fcc -> calling_scope -> constructor ;\n if ( fcc -> function_handler ) {\n retval = 1 ;\n }\n }\n else if ( zend_hash_find ( ftable , lmname , mlen + 1 , ( void * * ) & fcc -> function_handler ) == SUCCESS ) {\n retval = 1 ;\n if ( ( fcc -> function_handler -> op_array . fn_flags & ZEND_ACC_CHANGED ) && ! strict_class && EG ( scope ) && instanceof_function ( fcc -> function_handler -> common . scope , EG ( scope ) TSRMLS_CC ) ) {\n zend_function * priv_fbc ;\n if ( zend_hash_find ( & EG ( scope ) -> function_table , lmname , mlen + 1 , ( void * * ) & priv_fbc ) == SUCCESS && priv_fbc -> common . fn_flags & ZEND_ACC_PRIVATE && priv_fbc -> common . scope == EG ( scope ) ) {\n fcc -> function_handler = priv_fbc ;\n }\n }\n if ( ( check_flags & IS_CALLABLE_CHECK_NO_ACCESS ) == 0 && ( fcc -> calling_scope && ( ( fcc -> object_ptr && fcc -> calling_scope -> __call ) || ( ! fcc -> object_ptr && fcc -> calling_scope -> __callstatic ) ) ) ) {\n if ( fcc -> function_handler -> op_array . fn_flags & ZEND_ACC_PRIVATE ) {\n if ( ! zend_check_private ( fcc -> function_handler , fcc -> object_ptr ? Z_OBJCE_P ( fcc -> object_ptr ) : EG ( scope ) , lmname , mlen TSRMLS_CC ) ) {\n retval = 0 ;\n fcc -> function_handler = NULL ;\n goto get_function_via_handler ;\n }\n }\n else if ( fcc -> function_handler -> common . fn_flags & ZEND_ACC_PROTECTED ) {\n if ( ! zend_check_protected ( fcc -> function_handler -> common . scope , EG ( scope ) ) ) {\n retval = 0 ;\n fcc -> function_handler = NULL ;\n goto get_function_via_handler ;\n }\n }\n }\n }\n else {\n get_function_via_handler : if ( fcc -> object_ptr && fcc -> calling_scope == ce_org ) {\n if ( strict_class && ce_org -> __call ) {\n fcc -> function_handler = emalloc ( sizeof ( zend_internal_function ) ) ;\n fcc -> function_handler -> internal_function . type = ZEND_INTERNAL_FUNCTION ;\n fcc -> function_handler -> internal_function . module = ( ce_org -> type == ZEND_INTERNAL_CLASS ) ? ce_org -> info . internal . module : NULL ;\n fcc -> function_handler -> internal_function . handler = zend_std_call_user_call ;\n fcc -> function_handler -> internal_function . arg_info = NULL ;\n fcc -> function_handler -> internal_function . num_args = 0 ;\n fcc -> function_handler -> internal_function . scope = ce_org ;\n fcc -> function_handler -> internal_function . fn_flags = ZEND_ACC_CALL_VIA_HANDLER ;\n fcc -> function_handler -> internal_function . function_name = estrndup ( mname , mlen ) ;\n call_via_handler = 1 ;\n retval = 1 ;\n }\n else if ( Z_OBJ_HT_P ( fcc -> object_ptr ) -> get_method ) {\n fcc -> function_handler = Z_OBJ_HT_P ( fcc -> object_ptr ) -> get_method ( & fcc -> object_ptr , mname , mlen , NULL TSRMLS_CC ) ;\n if ( fcc -> function_handler ) {\n if ( strict_class && ( ! fcc -> function_handler -> common . scope || ! instanceof_function ( ce_org , fcc -> function_handler -> common . scope TSRMLS_CC ) ) ) {\n if ( ( fcc -> function_handler -> common . fn_flags & ZEND_ACC_CALL_VIA_HANDLER ) != 0 ) {\n if ( fcc -> function_handler -> type != ZEND_OVERLOADED_FUNCTION ) {\n efree ( ( char * ) fcc -> function_handler -> common . function_name ) ;\n }\n efree ( fcc -> function_handler ) ;\n }\n }\n else {\n retval = 1 ;\n call_via_handler = ( fcc -> function_handler -> common . fn_flags & ZEND_ACC_CALL_VIA_HANDLER ) != 0 ;\n }\n }\n }\n }\n else if ( fcc -> calling_scope ) {\n if ( fcc -> calling_scope -> get_static_method ) {\n fcc -> function_handler = fcc -> calling_scope -> get_static_method ( fcc -> calling_scope , mname , mlen TSRMLS_CC ) ;\n }\n else {\n fcc -> function_handler = zend_std_get_static_method ( fcc -> calling_scope , mname , mlen , NULL TSRMLS_CC ) ;\n }\n if ( fcc -> function_handler ) {\n retval = 1 ;\n call_via_handler = ( fcc -> function_handler -> common . fn_flags & ZEND_ACC_CALL_VIA_HANDLER ) != 0 ;\n if ( call_via_handler && ! fcc -> object_ptr && EG ( This ) && Z_OBJ_HT_P ( EG ( This ) ) -> get_class_entry && instanceof_function ( Z_OBJCE_P ( EG ( This ) ) , fcc -> calling_scope TSRMLS_CC ) ) {\n fcc -> object_ptr = EG ( This ) ;\n }\n }\n }\n }\n if ( retval ) {\n if ( fcc -> calling_scope && ! call_via_handler ) {\n if ( ! fcc -> object_ptr && ( fcc -> function_handler -> common . fn_flags & ZEND_ACC_ABSTRACT ) ) {\n if ( error ) {\n zend_spprintf ( error , 0 , \"cannot call abstract method %s::%s()\" , fcc -> calling_scope -> name , fcc -> function_handler -> common . function_name ) ;\n retval = 0 ;\n }\n else {\n zend_error ( E_ERROR , \"Cannot call abstract method %s::%s()\" , fcc -> calling_scope -> name , fcc -> function_handler -> common . function_name ) ;\n }\n }\n else if ( ! fcc -> object_ptr && ! ( fcc -> function_handler -> common . fn_flags & ZEND_ACC_STATIC ) ) {\n int severity ;\n char * verb ;\n if ( fcc -> function_handler -> common . fn_flags & ZEND_ACC_ALLOW_STATIC ) {\n severity = E_STRICT ;\n verb = \"should not\" ;\n }\n else {\n severity = E_ERROR ;\n verb = \"cannot\" ;\n }\n if ( ( check_flags & IS_CALLABLE_CHECK_IS_STATIC ) != 0 ) {\n retval = 0 ;\n }\n if ( EG ( This ) && instanceof_function ( Z_OBJCE_P ( EG ( This ) ) , fcc -> calling_scope TSRMLS_CC ) ) {\n fcc -> object_ptr = EG ( This ) ;\n if ( error ) {\n zend_spprintf ( error , 0 , \"non-static method %s::%s() %s be called statically, assuming $this from compatible context %s\" , fcc -> calling_scope -> name , fcc -> function_handler -> common . function_name , verb , Z_OBJCE_P ( EG ( This ) ) -> name ) ;\n if ( severity == E_ERROR ) {\n retval = 0 ;\n }\n }\n else if ( retval ) {\n zend_error ( severity , \"Non-static method %s::%s() %s be called statically, assuming $this from compatible context %s\" , fcc -> calling_scope -> name , fcc -> function_handler -> common . function_name , verb , Z_OBJCE_P ( EG ( This ) ) -> name ) ;\n }\n }\n else {\n if ( error ) {\n zend_spprintf ( error , 0 , \"non-static method %s::%s() %s be called statically\" , fcc -> calling_scope -> name , fcc -> function_handler -> common . function_name , verb ) ;\n if ( severity == E_ERROR ) {\n retval = 0 ;\n }\n }\n else if ( retval ) {\n zend_error ( severity , \"Non-static method %s::%s() %s be called statically\" , fcc -> calling_scope -> name , fcc -> function_handler -> common . function_name , verb ) ;\n }\n }\n }\n if ( retval && ( check_flags & IS_CALLABLE_CHECK_NO_ACCESS ) == 0 ) {\n if ( fcc -> function_handler -> op_array . fn_flags & ZEND_ACC_PRIVATE ) {\n if ( ! zend_check_private ( fcc -> function_handler , fcc -> object_ptr ? Z_OBJCE_P ( fcc -> object_ptr ) : EG ( scope ) , lmname , mlen TSRMLS_CC ) ) {\n if ( error ) {\n if ( * error ) {\n efree ( * error ) ;\n }\n zend_spprintf ( error , 0 , \"cannot access private method %s::%s()\" , fcc -> calling_scope -> name , fcc -> function_handler -> common . function_name ) ;\n }\n retval = 0 ;\n }\n }\n else if ( ( fcc -> function_handler -> common . fn_flags & ZEND_ACC_PROTECTED ) ) {\n if ( ! zend_check_protected ( fcc -> function_handler -> common . scope , EG ( scope ) ) ) {\n if ( error ) {\n if ( * error ) {\n efree ( * error ) ;\n }\n zend_spprintf ( error , 0 , \"cannot access protected method %s::%s()\" , fcc -> calling_scope -> name , fcc -> function_handler -> common . function_name ) ;\n }\n retval = 0 ;\n }\n }\n }\n }\n }\n else if ( error && ! ( check_flags & IS_CALLABLE_CHECK_SILENT ) ) {\n if ( fcc -> calling_scope ) {\n if ( error ) zend_spprintf ( error , 0 , \"class '%s' does not have a method '%s'\" , fcc -> calling_scope -> name , mname ) ;\n }\n else {\n if ( error ) zend_spprintf ( error , 0 , \"function '%s' does not exist\" , mname ) ;\n }\n }\n efree ( lmname ) ;\n if ( fcc -> object_ptr ) {\n fcc -> called_scope = Z_OBJCE_P ( fcc -> object_ptr ) ;\n }\n if ( retval ) {\n fcc -> initialized = 1 ;\n }\n return retval ;\n }"}
{"idx": 11242, "target": 0, "func": "static void qtrle_decode_1bpp ( QtrleContext * s , int row_ptr , int lines_to_change ) {\n int rle_code ;\n int pixel_ptr ;\n int row_inc = s -> frame . linesize [ 0 ] ;\n unsigned char pi0 , pi1 ;\n unsigned char * rgb = s -> frame . data [ 0 ] ;\n int pixel_limit = s -> frame . linesize [ 0 ] * s -> avctx -> height ;\n int skip ;\n row_ptr -= row_inc ;\n pixel_ptr = row_ptr ;\n lines_to_change ++ ;\n while ( lines_to_change ) {\n skip = bytestream2_get_byte ( & s -> g ) ;\n rle_code = ( signed char ) bytestream2_get_byte ( & s -> g ) ;\n if ( rle_code == 0 ) break ;\n if ( skip & 0x80 ) {\n lines_to_change -- ;\n row_ptr += row_inc ;\n pixel_ptr = row_ptr + 2 * ( skip & 0x7f ) ;\n }\n else pixel_ptr += 2 * skip ;\n CHECK_PIXEL_PTR ( 0 ) ;\n if ( rle_code < 0 ) {\n rle_code = - rle_code ;\n pi0 = bytestream2_get_byte ( & s -> g ) ;\n pi1 = bytestream2_get_byte ( & s -> g ) ;\n CHECK_PIXEL_PTR ( rle_code * 2 ) ;\n while ( rle_code -- ) {\n rgb [ pixel_ptr ++ ] = pi0 ;\n rgb [ pixel_ptr ++ ] = pi1 ;\n }\n }\n else {\n rle_code *= 2 ;\n CHECK_PIXEL_PTR ( rle_code ) ;\n while ( rle_code -- ) rgb [ pixel_ptr ++ ] = bytestream2_get_byte ( & s -> g ) ;\n }\n }\n }"}
{"idx": 11243, "target": 0, "func": "static void decode_zcl_ota_req_time ( gchar * s , guint32 value ) {\n if ( value == ZBEE_ZCL_OTA_TIME_WAIT ) {\n g_snprintf ( s , ITEM_LABEL_LENGTH , \"Wrong Value\" ) ;\n }\n else {\n gchar * tmp = time_secs_to_str ( NULL , value ) ;\n g_snprintf ( s , ITEM_LABEL_LENGTH , \"%s from now\" , tmp ) ;\n wmem_free ( NULL , tmp ) ;\n }\n return ;\n }"}
{"idx": 11244, "target": 0, "func": "static int png_decode_idat ( PNGDecContext * s , int length ) {\n int ret ;\n s -> zstream . avail_in = FFMIN ( length , bytestream2_get_bytes_left ( & s -> gb ) ) ;\n s -> zstream . next_in = s -> gb . buffer ;\n bytestream2_skip ( & s -> gb , length ) ;\n while ( s -> zstream . avail_in > 0 ) {\n ret = inflate ( & s -> zstream , Z_PARTIAL_FLUSH ) ;\n if ( ret != Z_OK && ret != Z_STREAM_END ) {\n return - 1 ;\n }\n if ( s -> zstream . avail_out == 0 ) {\n if ( ! ( s -> state & PNG_ALLIMAGE ) ) {\n png_handle_row ( s ) ;\n }\n s -> zstream . avail_out = s -> crow_size ;\n s -> zstream . next_out = s -> crow_buf ;\n }\n }\n return 0 ;\n }"}
{"idx": 11245, "target": 0, "func": "int raw6_local_deliver ( struct sk_buff * skb , int nexthdr ) {\n struct sock * raw_sk ;\n raw_sk = sk_head ( & raw_v6_hashinfo . ht [ nexthdr & ( MAX_INET_PROTOS - 1 ) ] ) ;\n if ( raw_sk && ! ipv6_raw_deliver ( skb , nexthdr ) ) raw_sk = NULL ;\n return raw_sk != NULL ;\n }"}
{"idx": 11246, "target": 0, "func": "int vp8_receive_raw_frame ( VP8_COMP * cpi , unsigned int frame_flags , YV12_BUFFER_CONFIG * sd , int64_t time_stamp , int64_t end_time ) {\n struct vpx_usec_timer timer ;\n int res = 0 ;\n vpx_usec_timer_start ( & timer ) ;\n if ( sd -> y_width != cpi -> oxcf . Width || sd -> y_height != cpi -> oxcf . Height ) {\n assert ( cpi -> oxcf . lag_in_frames < 2 ) ;\n dealloc_raw_frame_buffers ( cpi ) ;\n alloc_raw_frame_buffers ( cpi ) ;\n }\n if ( vp8_lookahead_push ( cpi -> lookahead , sd , time_stamp , end_time , frame_flags , cpi -> active_map_enabled ? cpi -> active_map : NULL ) ) res = - 1 ;\n vpx_usec_timer_mark ( & timer ) ;\n cpi -> time_receive_data += vpx_usec_timer_elapsed ( & timer ) ;\n return res ;\n }"}
{"idx": 11247, "target": 0, "func": "void mpi_assign_limb_space ( MPI a , mpi_ptr_t ap , unsigned nlimbs ) {\n mpi_free_limb_space ( a -> d ) ;\n a -> d = ap ;\n a -> alloced = nlimbs ;\n }"}
{"idx": 11248, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FastUnloadTest , PRE_WindowCloseFinishesUnload ) {\n NavigateToPage ( \"no_listeners\" ) ;\n NavigateToPageInNewTab ( \"unload_sleep_before_cookie\" ) ;\n EXPECT_EQ ( 2 , browser ( ) -> tab_strip_model ( ) -> count ( ) ) ;\n EXPECT_EQ ( \"\" , GetCookies ( \"no_listeners\" ) ) ;\n content : : WindowedNotificationObserver window_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , content : : NotificationService : : AllSources ( ) ) ;\n chrome : : CloseWindow ( browser ( ) ) ;\n window_observer . Wait ( ) ;\n }"}
{"idx": 11249, "target": 0, "func": "static int set_var_thresh_from_histogram ( VP9_COMP * cpi ) {\n const SPEED_FEATURES * const sf = & cpi -> sf ;\n const VP9_COMMON * const cm = & cpi -> common ;\n const uint8_t * src = cpi -> Source -> y_buffer ;\n const uint8_t * last_src = cpi -> Last_Source -> y_buffer ;\n const int src_stride = cpi -> Source -> y_stride ;\n const int last_stride = cpi -> Last_Source -> y_stride ;\n const int cutoff = ( MIN ( cm -> width , cm -> height ) >= 720 ) ? ( cm -> MBs * VAR_HIST_LARGE_CUT_OFF / 100 ) : ( cm -> MBs * VAR_HIST_SMALL_CUT_OFF / 100 ) ;\n DECLARE_ALIGNED_ARRAY ( 16 , int , hist , VAR_HIST_BINS ) ;\n diff * var16 = cpi -> source_diff_var ;\n int sum = 0 ;\n int i , j ;\n vpx_memset ( hist , 0 , VAR_HIST_BINS * sizeof ( hist [ 0 ] ) ) ;\n for ( i = 0 ;\n i < cm -> mb_rows ;\n i ++ ) {\n for ( j = 0 ;\n j < cm -> mb_cols ;\n j ++ ) {\n vp9_get16x16var ( src , src_stride , last_src , last_stride , & var16 -> sse , & var16 -> sum ) ;\n var16 -> var = var16 -> sse - ( ( ( uint32_t ) var16 -> sum * var16 -> sum ) >> 8 ) ;\n if ( var16 -> var >= VAR_HIST_MAX_BG_VAR ) hist [ VAR_HIST_BINS - 1 ] ++ ;\n else hist [ var16 -> var / VAR_HIST_FACTOR ] ++ ;\n src += 16 ;\n last_src += 16 ;\n var16 ++ ;\n }\n src = src - cm -> mb_cols * 16 + 16 * src_stride ;\n last_src = last_src - cm -> mb_cols * 16 + 16 * last_stride ;\n }\n cpi -> source_var_thresh = 0 ;\n if ( hist [ VAR_HIST_BINS - 1 ] < cutoff ) {\n for ( i = 0 ;\n i < VAR_HIST_BINS - 1 ;\n i ++ ) {\n sum += hist [ i ] ;\n if ( sum > cutoff ) {\n cpi -> source_var_thresh = ( i + 1 ) * VAR_HIST_FACTOR ;\n return 0 ;\n }\n }\n }\n return sf -> search_type_check_frequency ;\n }"}
{"idx": 11250, "target": 0, "func": "static int rtp_packetize_amr ( sout_stream_id_sys_t * id , block_t * in ) {\n int i_max = rtp_mtu ( id ) - 2 ;\n int i_count = ( in -> i_buffer + i_max - 1 ) / i_max ;\n uint8_t * p_data = in -> p_buffer ;\n int i_data = in -> i_buffer ;\n int i ;\n for ( i = 0 ;\n i < i_count ;\n i ++ ) {\n int i_payload = __MIN ( i_max , i_data ) ;\n block_t * out = block_Alloc ( 14 + i_payload ) ;\n rtp_packetize_common ( id , out , ( ( i == i_count - 1 ) ? 1 : 0 ) , ( in -> i_pts > VLC_TS_INVALID ? in -> i_pts : in -> i_dts ) ) ;\n out -> p_buffer [ 12 ] = 0xF0 ;\n out -> p_buffer [ 13 ] = p_data [ 0 ] & 0x7C ;\n memcpy ( & out -> p_buffer [ 14 ] , p_data + 1 , i_payload - 1 ) ;\n out -> i_buffer -- ;\n out -> i_dts = in -> i_dts + i * in -> i_length / i_count ;\n out -> i_length = in -> i_length / i_count ;\n rtp_packetize_send ( id , out ) ;\n p_data += i_payload ;\n i_data -= i_payload ;\n }\n block_Release ( in ) ;\n return VLC_SUCCESS ;\n }"}
{"idx": 11251, "target": 0, "func": "static void encode_scan_format ( VC2EncContext * s ) {\n put_bits ( & s -> pb , 1 , ! s -> strict_compliance ) ;\n if ( ! s -> strict_compliance ) put_vc2_ue_uint ( & s -> pb , s -> interlaced ) ;\n }"}
{"idx": 11252, "target": 0, "func": "static void http_failure_test ( void ) {\n struct bufferevent * bev ;\n int fd ;\n const char * http_request ;\n short port = - 1 ;\n test_ok = 0 ;\n fprintf ( stdout , \"Testing Bad HTTP Request: \" ) ;\n http = http_setup ( & port , NULL ) ;\n fd = http_connect ( \"127.0.0.1\" , port ) ;\n bev = bufferevent_new ( fd , http_failure_readcb , http_writecb , http_errorcb , NULL ) ;\n http_request = \"illegal request\\r\\n\" ;\n bufferevent_write ( bev , http_request , strlen ( http_request ) ) ;\n event_dispatch ( ) ;\n bufferevent_free ( bev ) ;\n EVUTIL_CLOSESOCKET ( fd ) ;\n evhttp_free ( http ) ;\n if ( test_ok != 2 ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n fprintf ( stdout , \"OK\\n\" ) ;\n }"}
{"idx": 11253, "target": 0, "func": "static void json_print_section_footer ( WriterContext * wctx ) {\n JSONContext * json = wctx -> priv ;\n const struct section * section = wctx -> section [ wctx -> level ] ;\n if ( wctx -> level == 0 ) {\n json -> indent_level -- ;\n printf ( \"\\n}\n\\n\" ) ;\n }\n else if ( section -> flags & SECTION_FLAG_IS_ARRAY ) {\n printf ( \"\\n\" ) ;\n json -> indent_level -- ;\n JSON_INDENT ( ) ;\n printf ( \"]\" ) ;\n }\n else {\n printf ( \"%s\" , json -> item_start_end ) ;\n json -> indent_level -- ;\n if ( ! json -> compact ) JSON_INDENT ( ) ;\n printf ( \"}\n\" ) ;\n }\n }"}
{"idx": 11254, "target": 0, "func": "TEST_F ( WebFrameSimTest , DisplayNoneIFramePrints ) {\n SimRequest main_resource ( \"https://example.com/test.html\" , \"text/html\" ) ;\n SimRequest frame_resource ( \"https://example.com/frame.html\" , \"text/html\" ) ;\n LoadURL ( \"https://example.com/test.html\" ) ;\n main_resource . Complete ( \"<!DOCTYPE html>\" \"<iframe src=frame.html style='display: none'></iframe>\" ) ;\n frame_resource . Complete ( \"<!DOCTYPE html>\" \"<html><body>This is a visible iframe.</body></html>\" ) ;\n Element * element = GetDocument ( ) . QuerySelector ( \"iframe\" ) ;\n HTMLFrameOwnerElement * frame_owner_element = ToHTMLFrameOwnerElement ( element ) ;\n Document * iframe_doc = frame_owner_element -> contentDocument ( ) ;\n EXPECT_FALSE ( iframe_doc -> documentElement ( ) -> GetLayoutObject ( ) ) ;\n FloatSize page_size ( 400 , 400 ) ;\n float maximum_shrink_ratio = 1.0 ;\n iframe_doc -> GetFrame ( ) -> StartPrinting ( page_size , page_size , maximum_shrink_ratio ) ;\n EXPECT_TRUE ( iframe_doc -> documentElement ( ) -> GetLayoutObject ( ) ) ;\n iframe_doc -> GetFrame ( ) -> EndPrinting ( ) ;\n EXPECT_FALSE ( iframe_doc -> documentElement ( ) -> GetLayoutObject ( ) ) ;\n }"}
{"idx": 11255, "target": 1, "func": "static int qsort_comparison_function_int16 ( const void * a , const void * b ) {\n return * ( const int16_t * ) a - * ( const int16_t * ) b ;\n }"}
{"idx": 11256, "target": 0, "func": "static void activation_mount_not_mounted ( ActivateParameters * parameters ) {\n NautilusFile * file ;\n GFile * location ;\n LaunchLocation * loc ;\n GMountOperation * mount_op ;\n GList * l , * next , * files ;\n if ( parameters -> not_mounted != NULL ) {\n file = parameters -> not_mounted -> data ;\n mount_op = gtk_mount_operation_new ( parameters -> parent_window ) ;\n g_mount_operation_set_password_save ( mount_op , G_PASSWORD_SAVE_FOR_SESSION ) ;\n g_signal_connect ( mount_op , \"notify::is-showing\" , G_CALLBACK ( activate_mount_op_active ) , parameters ) ;\n location = nautilus_file_get_location ( file ) ;\n g_file_mount_enclosing_volume ( location , 0 , mount_op , parameters -> cancellable , activation_mount_not_mounted_callback , parameters ) ;\n g_object_unref ( location ) ;\n g_object_unref ( mount_op ) ;\n return ;\n }\n parameters -> tried_mounting = TRUE ;\n if ( parameters -> locations == NULL ) {\n activation_parameters_free ( parameters ) ;\n return ;\n }\n for ( l = parameters -> locations ;\n l != NULL ;\n l = next ) {\n loc = l -> data ;\n next = l -> next ;\n nautilus_file_invalidate_all_attributes ( loc -> file ) ;\n }\n files = get_file_list_for_launch_locations ( parameters -> locations ) ;\n nautilus_file_list_call_when_ready ( files , nautilus_mime_actions_get_required_file_attributes ( ) , & parameters -> files_handle , activate_callback , parameters ) ;\n nautilus_file_list_free ( files ) ;\n }"}
{"idx": 11257, "target": 0, "func": "static void qemuMonitorJSONHandleVNCConnect ( qemuMonitorPtr mon , virJSONValuePtr data ) {\n qemuMonitorJSONHandleVNC ( mon , data , VIR_DOMAIN_EVENT_GRAPHICS_CONNECT ) ;\n }"}
{"idx": 11258, "target": 0, "func": "static gboolean contains_uppercase ( const char * s1 ) {\n const char * ch ;\n for ( ch = s1 ;\n * ch != '\\0' ;\n ch ++ ) {\n if ( g_ascii_isupper ( * ch ) ) return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 11259, "target": 1, "func": "struct qtmd_stream * qtmd_init ( struct mspack_system * system , struct mspack_file * input , struct mspack_file * output , int window_bits , int input_buffer_size ) {\n unsigned int window_size = 1 << window_bits ;\n struct qtmd_stream * qtm ;\n int i ;\n if ( ! system ) return NULL ;\n if ( window_bits < 10 || window_bits > 21 ) return NULL ;\n input_buffer_size = ( input_buffer_size + 1 ) & - 2 ;\n if ( input_buffer_size < 2 ) return NULL ;\n if ( ! ( qtm = ( struct qtmd_stream * ) system -> alloc ( system , sizeof ( struct qtmd_stream ) ) ) ) {\n return NULL ;\n }\n qtm -> window = ( unsigned char * ) system -> alloc ( system , ( size_t ) window_size ) ;\n qtm -> inbuf = ( unsigned char * ) system -> alloc ( system , ( size_t ) input_buffer_size ) ;\n if ( ! qtm -> window || ! qtm -> inbuf ) {\n system -> free ( qtm -> window ) ;\n system -> free ( qtm -> inbuf ) ;\n system -> free ( qtm ) ;\n return NULL ;\n }\n qtm -> sys = system ;\n qtm -> input = input ;\n qtm -> output = output ;\n qtm -> inbuf_size = input_buffer_size ;\n qtm -> window_size = window_size ;\n qtm -> window_posn = 0 ;\n qtm -> frame_todo = QTM_FRAME_SIZE ;\n qtm -> header_read = 0 ;\n qtm -> error = MSPACK_ERR_OK ;\n qtm -> i_ptr = qtm -> i_end = & qtm -> inbuf [ 0 ] ;\n qtm -> o_ptr = qtm -> o_end = & qtm -> window [ 0 ] ;\n qtm -> input_end = 0 ;\n qtm -> bits_left = 0 ;\n qtm -> bit_buffer = 0 ;\n i = window_bits * 2 ;\n qtmd_init_model ( & qtm -> model0 , & qtm -> m0sym [ 0 ] , 0 , 64 ) ;\n qtmd_init_model ( & qtm -> model1 , & qtm -> m1sym [ 0 ] , 64 , 64 ) ;\n qtmd_init_model ( & qtm -> model2 , & qtm -> m2sym [ 0 ] , 128 , 64 ) ;\n qtmd_init_model ( & qtm -> model3 , & qtm -> m3sym [ 0 ] , 192 , 64 ) ;\n qtmd_init_model ( & qtm -> model4 , & qtm -> m4sym [ 0 ] , 0 , ( i > 24 ) ? 24 : i ) ;\n qtmd_init_model ( & qtm -> model5 , & qtm -> m5sym [ 0 ] , 0 , ( i > 36 ) ? 36 : i ) ;\n qtmd_init_model ( & qtm -> model6 , & qtm -> m6sym [ 0 ] , 0 , i ) ;\n qtmd_init_model ( & qtm -> model6len , & qtm -> m6lsym [ 0 ] , 0 , 27 ) ;\n qtmd_init_model ( & qtm -> model7 , & qtm -> m7sym [ 0 ] , 0 , 7 ) ;\n return qtm ;\n }"}
{"idx": 11260, "target": 0, "func": "static void help ( void ) {\n printf ( _ ( \"%s extracts a PostgreSQL database cluster into an SQL script file.\\n\\n\" ) , progname ) ;\n printf ( _ ( \"Usage:\\n\" ) ) ;\n printf ( _ ( \" %s [OPTION]...\\n\" ) , progname ) ;\n printf ( _ ( \"\\nGeneral options:\\n\" ) ) ;\n printf ( _ ( \" -f, --file=FILENAME output file name\\n\" ) ) ;\n printf ( _ ( \" -V, --version output version information, then exit\\n\" ) ) ;\n printf ( _ ( \" --lock-wait-timeout=TIMEOUT fail after waiting TIMEOUT for a table lock\\n\" ) ) ;\n printf ( _ ( \" -?, --help show this help, then exit\\n\" ) ) ;\n printf ( _ ( \"\\nOptions controlling the output content:\\n\" ) ) ;\n printf ( _ ( \" -a, --data-only dump only the data, not the schema\\n\" ) ) ;\n printf ( _ ( \" -c, --clean clean (drop) databases before recreating\\n\" ) ) ;\n printf ( _ ( \" -g, --globals-only dump only global objects, no databases\\n\" ) ) ;\n printf ( _ ( \" -o, --oids include OIDs in dump\\n\" ) ) ;\n printf ( _ ( \" -O, --no-owner skip restoration of object ownership\\n\" ) ) ;\n printf ( _ ( \" -r, --roles-only dump only roles, no databases or tablespaces\\n\" ) ) ;\n printf ( _ ( \" -s, --schema-only dump only the schema, no data\\n\" ) ) ;\n printf ( _ ( \" -S, --superuser=NAME superuser user name to use in the dump\\n\" ) ) ;\n printf ( _ ( \" -t, --tablespaces-only dump only tablespaces, no databases or roles\\n\" ) ) ;\n printf ( _ ( \" -x, --no-privileges do not dump privileges (grant/revoke)\\n\" ) ) ;\n printf ( _ ( \" --binary-upgrade for use by upgrade utilities only\\n\" ) ) ;\n printf ( _ ( \" --column-inserts dump data as INSERT commands with column names\\n\" ) ) ;\n printf ( _ ( \" --disable-dollar-quoting disable dollar quoting, use SQL standard quoting\\n\" ) ) ;\n printf ( _ ( \" --disable-triggers disable triggers during data-only restore\\n\" ) ) ;\n printf ( _ ( \" --if-exists use IF EXISTS when dropping objects\\n\" ) ) ;\n printf ( _ ( \" --inserts dump data as INSERT commands, rather than COPY\\n\" ) ) ;\n printf ( _ ( \" --no-security-labels do not dump security label assignments\\n\" ) ) ;\n printf ( _ ( \" --no-tablespaces do not dump tablespace assignments\\n\" ) ) ;\n printf ( _ ( \" --no-unlogged-table-data do not dump unlogged table data\\n\" ) ) ;\n printf ( _ ( \" --quote-all-identifiers quote all identifiers, even if not key words\\n\" ) ) ;\n printf ( _ ( \" --use-set-session-authorization\\n\" \" use SET SESSION AUTHORIZATION commands instead of\\n\" \" ALTER OWNER commands to set ownership\\n\" ) ) ;\n printf ( _ ( \"\\nConnection options:\\n\" ) ) ;\n printf ( _ ( \" -d, --dbname=CONNSTR connect using connection string\\n\" ) ) ;\n printf ( _ ( \" -h, --host=HOSTNAME database server host or socket directory\\n\" ) ) ;\n printf ( _ ( \" -l, --database=DBNAME alternative default database\\n\" ) ) ;\n printf ( _ ( \" -p, --port=PORT database server port number\\n\" ) ) ;\n printf ( _ ( \" -U, --username=NAME connect as specified database user\\n\" ) ) ;\n printf ( _ ( \" -w, --no-password never prompt for password\\n\" ) ) ;\n printf ( _ ( \" -W, --password force password prompt (should happen automatically)\\n\" ) ) ;\n printf ( _ ( \" --role=ROLENAME do SET ROLE before dump\\n\" ) ) ;\n printf ( _ ( \"\\nIf -f/--file is not used, then the SQL script will be written to the standard\\n\" \"output.\\n\\n\" ) ) ;\n printf ( _ ( \"Report bugs to <pgsql-bugs@postgresql.org>.\\n\" ) ) ;\n }"}
{"idx": 11261, "target": 0, "func": "void bn_sqr_words ( BN_ULONG * r , const BN_ULONG * a , int n ) {\n if ( n <= 0 ) return ;\n while ( n & ~ 3 ) {\n sqr ( r [ 0 ] , r [ 1 ] , a [ 0 ] ) ;\n sqr ( r [ 2 ] , r [ 3 ] , a [ 1 ] ) ;\n sqr ( r [ 4 ] , r [ 5 ] , a [ 2 ] ) ;\n sqr ( r [ 6 ] , r [ 7 ] , a [ 3 ] ) ;\n a += 4 ;\n r += 8 ;\n n -= 4 ;\n }\n if ( n ) {\n sqr ( r [ 0 ] , r [ 1 ] , a [ 0 ] ) ;\n if ( -- n == 0 ) return ;\n sqr ( r [ 2 ] , r [ 3 ] , a [ 1 ] ) ;\n if ( -- n == 0 ) return ;\n sqr ( r [ 4 ] , r [ 5 ] , a [ 2 ] ) ;\n }\n }"}
{"idx": 11262, "target": 0, "func": "static int kvm_get_xcrs ( X86CPU * cpu ) {\n CPUX86State * env = & cpu -> env ;\n int i , ret ;\n struct kvm_xcrs xcrs ;\n if ( ! has_xcrs ) {\n return 0 ;\n }\n ret = kvm_vcpu_ioctl ( CPU ( cpu ) , KVM_GET_XCRS , & xcrs ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n for ( i = 0 ;\n i < xcrs . nr_xcrs ;\n i ++ ) {\n if ( xcrs . xcrs [ i ] . xcr == 0 ) {\n env -> xcr0 = xcrs . xcrs [ i ] . value ;\n break ;\n }\n }\n return 0 ;\n }"}
{"idx": 11263, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( BluetoothChooserBrowserTest , InvokeDialog_PairedModal ) {\n set_status ( FakeBluetoothChooserController : : BluetoothStatus : : IDLE ) ;\n AddPairedDevice ( ) ;\n RunDialog ( ) ;\n }"}
{"idx": 11264, "target": 1, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING )"}
{"idx": 11265, "target": 0, "func": "void jas_image_dump ( jas_image_t * image , FILE * out ) {\n long buf [ 1024 ] ;\n int cmptno ;\n int n ;\n int i ;\n int width ;\n int height ;\n jas_image_cmpt_t * cmpt ;\n for ( cmptno = 0 ;\n cmptno < image -> numcmpts_ ;\n ++ cmptno ) {\n cmpt = image -> cmpts_ [ cmptno ] ;\n fprintf ( out , \"prec=%d, sgnd=%d, cmpttype=%d\\n\" , cmpt -> prec_ , cmpt -> sgnd_ , cmpt -> type_ ) ;\n width = jas_image_cmptwidth ( image , cmptno ) ;\n height = jas_image_cmptheight ( image , cmptno ) ;\n n = JAS_MIN ( 16 , width ) ;\n if ( jas_image_readcmpt2 ( image , cmptno , 0 , 0 , n , 1 , buf ) ) {\n abort ( ) ;\n }\n for ( i = 0 ;\n i < n ;\n ++ i ) {\n fprintf ( out , \" f(%d,%d)=%ld\" , i , 0 , buf [ i ] ) ;\n }\n fprintf ( out , \"\\n\" ) ;\n if ( jas_image_readcmpt2 ( image , cmptno , width - n , height - 1 , n , 1 , buf ) ) {\n abort ( ) ;\n }\n for ( i = 0 ;\n i < n ;\n ++ i ) {\n fprintf ( out , \" f(%d,%d)=%ld\" , width - n + i , height - 1 , buf [ i ] ) ;\n }\n fprintf ( out , \"\\n\" ) ;\n }\n }"}
{"idx": 11266, "target": 0, "func": "static char * custom_full_name_to_string ( char * format , va_list va ) {\n GFile * file ;\n file = va_arg ( va , GFile * ) ;\n return g_file_get_parse_name ( file ) ;\n }"}
{"idx": 11267, "target": 0, "func": "static int dissect_spoolss_printer_enum_values ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n guint32 start_offset = offset ;\n guint32 name_offset , name_len , val_offset , val_len , val_type ;\n char * name ;\n proto_item * item ;\n proto_tree * subtree ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , NULL , di , drep , hf_enumprinterdataex_name_offset , & name_offset ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , NULL , di , drep , hf_enumprinterdataex_name_len , & name_len ) ;\n dissect_spoolss_uint16uni ( tvb , start_offset + name_offset , pinfo , NULL , drep , & name , hf_enumprinterdataex_name ) ;\n subtree = proto_tree_add_subtree_format ( tree , tvb , offset , 0 , ett_printer_enumdataex_value , & item , \"Name: %s\" , name ) ;\n proto_tree_add_uint ( subtree , hf_enumprinterdataex_name_offset , tvb , offset - 8 , 4 , name_offset ) ;\n proto_tree_add_uint ( subtree , hf_enumprinterdataex_name_len , tvb , offset - 4 , 4 , name_len ) ;\n proto_tree_add_string ( subtree , hf_enumprinterdataex_name , tvb , start_offset + name_offset , ( ( int ) strlen ( name ) + 1 ) * 2 , name ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_printerdata_type , & val_type ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_enumprinterdataex_val_offset , & val_offset ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_enumprinterdataex_val_len , & val_len ) ;\n if ( val_len == 0 ) {\n proto_tree_add_uint_format_value ( subtree , hf_enumprinterdataex_value_null , tvb , start_offset + val_offset , 4 , 0 , \"(null)\" ) ;\n goto done ;\n }\n switch ( val_type ) {\n case DCERPC_REG_DWORD : {\n guint32 value ;\n guint16 low , high ;\n int offset2 = start_offset + val_offset ;\n offset2 = dissect_ndr_uint16 ( tvb , offset2 , pinfo , subtree , di , drep , hf_enumprinterdataex_val_dword_low , & low ) ;\n dissect_ndr_uint16 ( tvb , offset2 , pinfo , subtree , di , drep , hf_enumprinterdataex_val_dword_high , & high ) ;\n value = ( high << 16 ) | low ;\n proto_tree_add_uint ( subtree , hf_enumprinterdataex_value_uint , tvb , start_offset + val_offset , 4 , value ) ;\n proto_item_append_text ( item , \", Value: %d\" , value ) ;\n break ;\n }\n case DCERPC_REG_SZ : {\n char * value ;\n dissect_spoolss_uint16uni ( tvb , start_offset + val_offset , pinfo , subtree , drep , & value , hf_value_string ) ;\n proto_item_append_text ( item , \", Value: %s\" , value ) ;\n g_free ( value ) ;\n break ;\n }\n case DCERPC_REG_BINARY : proto_tree_add_bytes_format_value ( subtree , hf_enumprinterdataex_value_binary , tvb , start_offset + val_offset , val_len , NULL , \"<binary data>\" ) ;\n break ;\n case DCERPC_REG_MULTI_SZ : proto_tree_add_bytes_format_value ( subtree , hf_enumprinterdataex_value_multi_sz , tvb , start_offset + val_offset , val_len , NULL , \"<REG_MULTI_SZ not implemented>\" ) ;\n break ;\n default : proto_tree_add_expert_format ( subtree , pinfo , & ei_enumprinterdataex_value , tvb , start_offset + val_offset , val_len , \"%s: unknown type %d\" , name , val_type ) ;\n }\n done : g_free ( name ) ;\n return offset ;\n }"}
{"idx": 11268, "target": 0, "func": "static OFCondition parseSCUSCPRole ( PRV_SCUSCPROLE * role , unsigned char * buf , unsigned long * length , unsigned long availData ) {\n unsigned short UIDLength ;\n if ( availData < 8 ) return makeLengthError ( \"SCU-SCP role list\" , availData , 8 ) ;\n role -> type = * buf ++ ;\n role -> rsv1 = * buf ++ ;\n EXTRACT_SHORT_BIG ( buf , role -> length ) ;\n buf += 2 ;\n EXTRACT_SHORT_BIG ( buf , UIDLength ) ;\n buf += 2 ;\n if ( availData - 4 < role -> length ) return makeLengthError ( \"SCU-SCP role list\" , availData , 0 , role -> length ) ;\n if ( role -> length < 4 ) return makeLengthError ( \"SCU-SCP role list UID\" , role -> length , 4 ) ;\n if ( role -> length - 4 < UIDLength ) return makeLengthError ( \"SCU-SCP role list UID\" , role -> length , 0 , UIDLength ) ;\n OFStandard : : strlcpy ( role -> SOPClassUID , ( char * ) buf , sizeof ( role -> SOPClassUID ) ) ;\n if ( UIDLength > sizeof ( role -> SOPClassUID ) ) {\n DCMNET_WARN ( \"Provided role SOP Class UID \" << role -> SOPClassUID << \" is shorter than its announced length \" << UIDLength << \" (ignored)\" ) ;\n }\n buf += UIDLength ;\n role -> SCURole = * buf ++ ;\n role -> SCPRole = * buf ++ ;\n * length = 2 + 2 + role -> length ;\n DCMNET_TRACE ( \"Subitem parse: Type \" << STD_NAMESPACE hex << STD_NAMESPACE setfill ( '0' ) << STD_NAMESPACE setw ( 2 ) << ( unsigned int ) role -> type << STD_NAMESPACE dec << \", Length \" << STD_NAMESPACE setw ( 4 ) << ( int ) role -> length << \", Content: \" << role -> SOPClassUID << \" \" << ( int ) role -> SCURole << \" \" << ( int ) role -> SCPRole ) ;\n return EC_Normal ;\n }"}
{"idx": 11269, "target": 0, "func": "static decNumber * decDecap ( decNumber * dn , Int drop ) {\n Unit * msu ;\n Int cut ;\n if ( drop >= dn -> digits ) {\n # if DECCHECK if ( drop > dn -> digits ) printf ( \"decDecap called with drop>digits [%ld>%ld]\\n\" , ( LI ) drop , ( LI ) dn -> digits ) ;\n # endif dn -> lsu [ 0 ] = 0 ;\n dn -> digits = 1 ;\n return dn ;\n }\n msu = dn -> lsu + D2U ( dn -> digits - drop ) - 1 ;\n cut = MSUDIGITS ( dn -> digits - drop ) ;\n if ( cut != DECDPUN ) * msu %= powers [ cut ] ;\n dn -> digits = decGetDigits ( dn -> lsu , msu - dn -> lsu + 1 ) ;\n return dn ;\n }"}
{"idx": 11270, "target": 0, "func": "static int dissect_h245_T_gstnOptions ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_gstnOptions , T_gstnOptions_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 11271, "target": 1, "func": "static krb5_error_code build_principal_va ( krb5_context context , krb5_principal princ , unsigned int rlen , const char * realm , va_list ap ) {\n krb5_error_code retval = 0 ;\n char * r = NULL ;\n krb5_data * data = NULL ;\n krb5_int32 count = 0 ;\n krb5_int32 size = 2 ;\n char * component = NULL ;\n data = malloc ( size * sizeof ( krb5_data ) ) ;\n if ( ! data ) {\n retval = ENOMEM ;\n }\n if ( ! retval ) {\n r = strdup ( realm ) ;\n if ( ! r ) {\n retval = ENOMEM ;\n }\n }\n while ( ! retval && ( component = va_arg ( ap , char * ) ) ) {\n if ( count == size ) {\n krb5_data * new_data = NULL ;\n size *= 2 ;\n new_data = realloc ( data , size * sizeof ( krb5_data ) ) ;\n if ( new_data ) {\n data = new_data ;\n }\n else {\n retval = ENOMEM ;\n }\n }\n if ( ! retval ) {\n data [ count ] . length = strlen ( component ) ;\n data [ count ] . data = strdup ( component ) ;\n if ( ! data [ count ] . data ) {\n retval = ENOMEM ;\n }\n count ++ ;\n }\n }\n if ( ! retval ) {\n princ -> type = KRB5_NT_UNKNOWN ;\n princ -> magic = KV5M_PRINCIPAL ;\n princ -> realm = make_data ( r , rlen ) ;\n princ -> data = data ;\n princ -> length = count ;\n r = NULL ;\n data = NULL ;\n }\n if ( data ) {\n while ( -- count >= 0 ) {\n free ( data [ count ] . data ) ;\n }\n free ( data ) ;\n }\n free ( r ) ;\n return retval ;\n }"}
{"idx": 11272, "target": 0, "func": "static void U_CALLCONV T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n const UChar * mySource = args -> source ;\n unsigned char * myTarget ;\n int32_t * myOffsets ;\n const UChar * sourceLimit = args -> sourceLimit ;\n const unsigned char * targetLimit = ( unsigned char * ) args -> targetLimit ;\n UChar32 ch , ch2 ;\n int32_t offsetNum = 0 ;\n unsigned int indexToWrite ;\n unsigned char temp [ sizeof ( uint32_t ) ] ;\n if ( mySource >= sourceLimit ) {\n return ;\n }\n if ( args -> converter -> fromUnicodeStatus == UCNV_NEED_TO_WRITE_BOM ) {\n static const char bom [ ] = {\n 0 , 0 , ( char ) 0xfe , ( char ) 0xff }\n ;\n ucnv_fromUWriteBytes ( args -> converter , bom , 4 , & args -> target , args -> targetLimit , & args -> offsets , - 1 , err ) ;\n args -> converter -> fromUnicodeStatus = 0 ;\n }\n myTarget = ( unsigned char * ) args -> target ;\n myOffsets = args -> offsets ;\n temp [ 0 ] = 0 ;\n if ( args -> converter -> fromUChar32 ) {\n ch = args -> converter -> fromUChar32 ;\n args -> converter -> fromUChar32 = 0 ;\n goto lowsurogate ;\n }\n while ( mySource < sourceLimit && myTarget < targetLimit ) {\n ch = * ( mySource ++ ) ;\n if ( U_IS_SURROGATE ( ch ) ) {\n if ( U_IS_LEAD ( ch ) ) {\n lowsurogate : if ( mySource < sourceLimit ) {\n ch2 = * mySource ;\n if ( U_IS_TRAIL ( ch2 ) ) {\n ch = ( ( ch - SURROGATE_HIGH_START ) << HALF_SHIFT ) + ch2 + SURROGATE_LOW_BASE ;\n mySource ++ ;\n }\n else {\n args -> converter -> fromUChar32 = ch ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n }\n else {\n args -> converter -> fromUChar32 = ch ;\n if ( args -> flush ) {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n break ;\n }\n }\n else {\n args -> converter -> fromUChar32 = ch ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n }\n temp [ 1 ] = ( uint8_t ) ( ch >> 16 & 0x1F ) ;\n temp [ 2 ] = ( uint8_t ) ( ch >> 8 ) ;\n temp [ 3 ] = ( uint8_t ) ( ch ) ;\n for ( indexToWrite = 0 ;\n indexToWrite <= sizeof ( uint32_t ) - 1 ;\n indexToWrite ++ ) {\n if ( myTarget < targetLimit ) {\n * ( myTarget ++ ) = temp [ indexToWrite ] ;\n * ( myOffsets ++ ) = offsetNum ;\n }\n else {\n args -> converter -> charErrorBuffer [ args -> converter -> charErrorBufferLength ++ ] = temp [ indexToWrite ] ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n offsetNum = offsetNum + 1 + ( temp [ 1 ] != 0 ) ;\n }\n if ( mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS ( * err ) ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n args -> target = ( char * ) myTarget ;\n args -> source = mySource ;\n args -> offsets = myOffsets ;\n }"}
{"idx": 11273, "target": 0, "func": "static void write_selected_tx_size ( const VP9_COMMON * cm , const MACROBLOCKD * xd , TX_SIZE tx_size , BLOCK_SIZE bsize , vp9_writer * w ) {\n const TX_SIZE max_tx_size = max_txsize_lookup [ bsize ] ;\n const vp9_prob * const tx_probs = get_tx_probs2 ( max_tx_size , xd , & cm -> fc . tx_probs ) ;\n vp9_write ( w , tx_size != TX_4X4 , tx_probs [ 0 ] ) ;\n if ( tx_size != TX_4X4 && max_tx_size >= TX_16X16 ) {\n vp9_write ( w , tx_size != TX_8X8 , tx_probs [ 1 ] ) ;\n if ( tx_size != TX_8X8 && max_tx_size >= TX_32X32 ) vp9_write ( w , tx_size != TX_16X16 , tx_probs [ 2 ] ) ;\n }\n }"}
{"idx": 11274, "target": 0, "func": "static void store_tree ( struct tree_entry * root ) {\n struct tree_content * t ;\n unsigned int i , j , del ;\n struct last_object lo = {\n STRBUF_INIT , 0 , 0 , 1 }\n ;\n struct object_entry * le = NULL ;\n if ( ! is_null_sha1 ( root -> versions [ 1 ] . sha1 ) ) return ;\n if ( ! root -> tree ) load_tree ( root ) ;\n t = root -> tree ;\n for ( i = 0 ;\n i < t -> entry_count ;\n i ++ ) {\n if ( t -> entries [ i ] -> tree ) store_tree ( t -> entries [ i ] ) ;\n }\n if ( ! ( root -> versions [ 0 ] . mode & NO_DELTA ) ) le = find_object ( root -> versions [ 0 ] . sha1 ) ;\n if ( S_ISDIR ( root -> versions [ 0 ] . mode ) && le && le -> pack_id == pack_id ) {\n mktree ( t , 0 , & old_tree ) ;\n lo . data = old_tree ;\n lo . offset = le -> idx . offset ;\n lo . depth = t -> delta_depth ;\n }\n mktree ( t , 1 , & new_tree ) ;\n store_object ( OBJ_TREE , & new_tree , & lo , root -> versions [ 1 ] . sha1 , 0 ) ;\n t -> delta_depth = lo . depth ;\n for ( i = 0 , j = 0 , del = 0 ;\n i < t -> entry_count ;\n i ++ ) {\n struct tree_entry * e = t -> entries [ i ] ;\n if ( e -> versions [ 1 ] . mode ) {\n e -> versions [ 0 ] . mode = e -> versions [ 1 ] . mode ;\n hashcpy ( e -> versions [ 0 ] . sha1 , e -> versions [ 1 ] . sha1 ) ;\n t -> entries [ j ++ ] = e ;\n }\n else {\n release_tree_entry ( e ) ;\n del ++ ;\n }\n }\n t -> entry_count -= del ;\n }"}
{"idx": 11275, "target": 0, "func": "TEST_P ( GLES2DecoderTestWithCHROMIUMPathRendering , MatrixLoadfCHROMIUMImmediateValidArgs ) {\n cmds : : MatrixLoadfCHROMIUMImmediate & cmd = * GetImmediateAs < cmds : : MatrixLoadfCHROMIUMImmediate > ( ) ;\n SpecializedSetup < cmds : : MatrixLoadfCHROMIUMImmediate , 0 > ( true ) ;\n GLfloat temp [ 16 ] = {\n 0 , }\n ;\n cmd . Init ( GL_PATH_PROJECTION_CHROMIUM , & temp [ 0 ] ) ;\n EXPECT_CALL ( * gl_ , MatrixLoadfEXT ( GL_PATH_PROJECTION_CHROMIUM , PointsToArray ( temp , 16 ) ) ) ;\n EXPECT_EQ ( error : : kNoError , ExecuteImmediateCmd ( cmd , sizeof ( temp ) ) ) ;\n EXPECT_EQ ( GL_NO_ERROR , GetGLError ( ) ) ;\n }"}
{"idx": 11276, "target": 0, "func": "static void qemuMonitorJSONHandleWatchdog ( qemuMonitorPtr mon , virJSONValuePtr data ) {\n const char * action ;\n int actionID ;\n if ( ! ( action = virJSONValueObjectGetString ( data , \"action\" ) ) ) {\n VIR_WARN ( \"missing action in watchdog event\" ) ;\n }\n if ( action ) {\n if ( ( actionID = qemuMonitorWatchdogActionTypeFromString ( action ) ) < 0 ) {\n VIR_WARN ( \"unknown action %s in watchdog event\" , action ) ;\n actionID = VIR_DOMAIN_EVENT_WATCHDOG_NONE ;\n }\n }\n else {\n actionID = VIR_DOMAIN_EVENT_WATCHDOG_NONE ;\n }\n qemuMonitorEmitWatchdog ( mon , actionID ) ;\n }"}
{"idx": 11277, "target": 0, "func": "void fill_effective_table_privileges ( THD * thd , GRANT_INFO * grant , const char * db , const char * table ) {\n Security_context * sctx = thd -> security_ctx ;\n DBUG_ENTER ( \"fill_effective_table_privileges\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"Host: '%s', Ip: '%s', User: '%s', table: `%s`.`%s`\" , sctx -> priv_host , ( sctx -> ip ? sctx -> ip : \"(NULL)\" ) , ( sctx -> priv_user ? sctx -> priv_user : \"(NULL)\" ) , db , table ) ) ;\n if ( ! initialized ) {\n DBUG_PRINT ( \"info\" , ( \"skip grants\" ) ) ;\n grant -> privilege = ~ NO_ACCESS ;\n DBUG_PRINT ( \"info\" , ( \"privilege 0x%lx\" , grant -> privilege ) ) ;\n DBUG_VOID_RETURN ;\n }\n grant -> privilege = sctx -> master_access ;\n if ( ! sctx -> priv_user ) {\n DBUG_PRINT ( \"info\" , ( \"privilege 0x%lx\" , grant -> privilege ) ) ;\n DBUG_VOID_RETURN ;\n }\n grant -> privilege |= acl_get ( sctx -> host , sctx -> ip , sctx -> priv_user , db , 0 ) ;\n rw_rdlock ( & LOCK_grant ) ;\n if ( grant -> version != grant_version ) {\n grant -> grant_table = table_hash_search ( sctx -> host , sctx -> ip , db , sctx -> priv_user , table , 0 ) ;\n grant -> version = grant_version ;\n }\n if ( grant -> grant_table != 0 ) {\n grant -> privilege |= grant -> grant_table -> privs ;\n }\n rw_unlock ( & LOCK_grant ) ;\n DBUG_PRINT ( \"info\" , ( \"privilege 0x%lx\" , grant -> privilege ) ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 11278, "target": 0, "func": "static void print_version ( void ) {\n printf ( \"%s Ver 2.7 for %s at %s\\n\" , my_progname , SYSTEM_TYPE , MACHINE_TYPE ) ;\n }"}
{"idx": 11279, "target": 0, "func": "static unsigned long get_pfxmatch ( char * * s , struct masks * m ) {\n while ( m -> name ) {\n if ( strncmp ( * s , m -> name , strlen ( m -> name ) ) == 0 ) {\n * s += strlen ( m -> name ) ;\n return m -> mask ;\n }\n else {\n m ++ ;\n }\n }\n return 0 ;\n }"}
{"idx": 11280, "target": 0, "func": "guint16 de_d_gb_call_ref ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset = offset ;\n proto_tree_add_item ( tree , hf_gsm_a_group_call_reference , tvb , curr_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_service_flag , tvb , curr_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_af_acknowledgement , tvb , curr_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_call_priority , tvb , curr_offset , 4 , ENC_BIG_ENDIAN ) ;\n curr_offset += 4 ;\n proto_tree_add_item ( tree , hf_gsm_a_ciphering_info , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( curr_offset << 3 ) + 4 , 4 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 11281, "target": 0, "func": "static vpx_codec_frame_flags_t get_frame_pkt_flags ( const VP9_COMP * cpi , unsigned int lib_flags ) {\n vpx_codec_frame_flags_t flags = lib_flags << 16 ;\n if ( lib_flags & FRAMEFLAGS_KEY # if CONFIG_SPATIAL_SVC || ( is_two_pass_svc ( cpi ) && cpi -> svc . layer_context [ 0 ] . is_key_frame ) # endif ) flags |= VPX_FRAME_IS_KEY ;\n if ( cpi -> droppable ) flags |= VPX_FRAME_IS_DROPPABLE ;\n return flags ;\n }"}
{"idx": 11282, "target": 0, "func": "static void dissect_q931_IEs ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * root_tree , proto_tree * q931_tree , gboolean is_over_ip , int offset , int initial_codeset , q931_packet_info * q931_pi ) {\n proto_item * ti ;\n proto_tree * ie_tree = NULL ;\n guint8 info_element ;\n guint8 dummy ;\n guint16 info_element_len ;\n int codeset , locked_codeset ;\n gboolean non_locking_shift , first_segment ;\n tvbuff_t * h225_tvb , * next_tvb ;\n e164_info_t e164_info ;\n e164_info . e164_number_type = NONE ;\n e164_info . nature_of_address = NONE ;\n e164_info . E164_number_str = \"\" ;\n e164_info . E164_number_length = NONE ;\n codeset = locked_codeset = initial_codeset ;\n first_segment = FALSE ;\n while ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n info_element = tvb_get_guint8 ( tvb , offset ) ;\n if ( ( info_element & Q931_IE_SO_MASK ) && ( ( info_element & Q931_IE_SO_IDENTIFIER_MASK ) == Q931_IE_SHIFT ) ) {\n non_locking_shift = info_element & Q931_IE_SHIFT_NON_LOCKING ;\n codeset = info_element & Q931_IE_SHIFT_CODESET ;\n if ( ! non_locking_shift ) locked_codeset = codeset ;\n if ( q931_tree != NULL ) {\n proto_tree_add_uint_format ( q931_tree , hf_q931_locking_codeset , tvb , offset , 1 , codeset , \"%s shift to codeset %u: %s\" , ( non_locking_shift ? \"Non-locking\" : \"Locking\" ) , codeset , val_to_str ( codeset , q931_codeset_vals , \"Unknown (0x%02X)\" ) ) ;\n }\n offset += 1 ;\n continue ;\n }\n if ( info_element & Q931_IE_SO_MASK ) {\n if ( dissector_get_uint_handle ( codeset_dissector_table , codeset ) || dissector_get_uint_handle ( ie_dissector_table , ( codeset << 8 ) | ( info_element & Q931_IE_SO_IDENTIFIER_MASK ) ) ) {\n next_tvb = tvb_new_subset_length ( tvb , offset , 1 ) ;\n if ( dissector_try_uint ( ie_dissector_table , ( codeset << 8 ) | ( info_element & Q931_IE_SO_IDENTIFIER_MASK ) , next_tvb , pinfo , q931_tree ) || dissector_try_uint ( codeset_dissector_table , codeset , next_tvb , pinfo , q931_tree ) ) {\n offset += 1 ;\n codeset = locked_codeset ;\n continue ;\n }\n }\n switch ( ( codeset << 8 ) | ( info_element & Q931_IE_SO_IDENTIFIER_MASK ) ) {\n case CS0 | Q931_IE_MORE_DATA_OR_SEND_COMP : switch ( info_element ) {\n case Q931_IE_MORE_DATA : proto_tree_add_item ( q931_tree , hf_q931_more_data , tvb , offset , 1 , ENC_NA ) ;\n break ;\n case Q931_IE_SENDING_COMPLETE : proto_tree_add_item ( q931_tree , hf_q931_sending_complete , tvb , offset , 1 , ENC_NA ) ;\n break ;\n default : proto_tree_add_expert_format ( q931_tree , pinfo , & ei_q931_information_element , tvb , offset , 1 , \"Unknown information element (0x%02X)\" , info_element ) ;\n break ;\n }\n break ;\n case CS0 | Q931_IE_CONGESTION_LEVEL : proto_tree_add_item ( q931_tree , hf_q931_congestion_level , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n break ;\n case CS0 | Q931_IE_REPEAT_INDICATOR : proto_tree_add_item ( q931_tree , hf_q931_repeat_indicator , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n break ;\n default : proto_tree_add_expert_format ( q931_tree , pinfo , & ei_q931_information_element , tvb , offset , 1 , \"Unknown information element (0x%02X)\" , info_element ) ;\n break ;\n }\n offset += 1 ;\n codeset = locked_codeset ;\n continue ;\n }\n if ( is_over_ip && tvb_bytes_exist ( tvb , offset , 4 ) && codeset == 0 && tvb_get_guint8 ( tvb , offset ) == Q931_IE_USER_USER && tvb_get_guint8 ( tvb , offset + 3 ) == Q931_PROTOCOL_DISCRIMINATOR_ASN1 ) {\n info_element_len = tvb_get_ntohs ( tvb , offset + 1 ) ;\n if ( q931_tree != NULL ) {\n ie_tree = proto_tree_add_subtree ( q931_tree , tvb , offset , 1 + 2 + info_element_len , ett_q931_ie [ info_element ] , NULL , val_to_str ( info_element , q931_info_element_vals [ codeset ] , \"Unknown information element (0x%02X)\" ) ) ;\n proto_tree_add_uint_format_value ( ie_tree , hf_q931_information_element , tvb , offset , 1 , info_element , \"%s\" , val_to_str ( info_element , q931_info_element_vals [ codeset ] , \"Unknown (0x%02X)\" ) ) ;\n proto_tree_add_item ( ie_tree , hf_q931_information_element_len , tvb , offset + 1 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_q931_user_protocol_discriminator , tvb , offset + 3 , 1 , ENC_NA ) ;\n }\n if ( info_element_len > 1 ) {\n if ( ! pinfo -> can_desegment ) {\n info_element_len = MIN ( info_element_len , tvb_captured_length_remaining ( tvb , offset + 3 ) ) ;\n }\n if ( h225_handle != NULL ) {\n h225_tvb = tvb_new_subset_length ( tvb , offset + 4 , info_element_len - 1 ) ;\n call_dissector ( h225_handle , h225_tvb , pinfo , root_tree ) ;\n }\n else {\n proto_tree_add_item ( ie_tree , hf_q931_user_information_bytes , tvb , offset + 4 , info_element_len - 1 , ENC_NA ) ;\n }\n }\n offset += 1 + 2 + info_element_len ;\n }\n else {\n info_element_len = tvb_get_guint8 ( tvb , offset + 1 ) ;\n if ( first_segment && ( tvb_reported_length_remaining ( tvb , offset + 2 ) < info_element_len ) ) {\n proto_tree_add_expert ( q931_tree , pinfo , & ei_q931_incomplete_ie , tvb , offset , - 1 ) ;\n break ;\n }\n if ( dissector_get_uint_handle ( codeset_dissector_table , codeset ) || dissector_get_uint_handle ( ie_dissector_table , ( codeset << 8 ) | info_element ) ) {\n next_tvb = tvb_new_subset_length ( tvb , offset , info_element_len + 2 ) ;\n if ( dissector_try_uint ( ie_dissector_table , ( codeset << 8 ) | info_element , next_tvb , pinfo , q931_tree ) || dissector_try_uint ( codeset_dissector_table , codeset , next_tvb , pinfo , q931_tree ) ) {\n offset += 2 + info_element_len ;\n codeset = locked_codeset ;\n continue ;\n }\n }\n ie_tree = proto_tree_add_subtree ( q931_tree , tvb , offset , 1 + 1 + info_element_len , ett_q931_ie [ info_element ] , & ti , val_to_str ( info_element , q931_info_element_vals [ codeset ] , \"Unknown information element (0x%02X)\" ) ) ;\n proto_tree_add_uint_format_value ( ie_tree , hf_q931_information_element , tvb , offset , 1 , info_element , \"%s\" , val_to_str ( info_element , q931_info_element_vals [ codeset ] , \"Unknown (0x%02X)\" ) ) ;\n proto_tree_add_uint ( ie_tree , hf_q931_information_element_len , tvb , offset + 1 , 1 , info_element_len ) ;\n if ( ( ( codeset << 8 ) | info_element ) == ( CS0 | Q931_IE_SEGMENTED_MESSAGE ) ) {\n dissect_q931_segmented_message_ie ( tvb , pinfo , offset + 2 , info_element_len , ie_tree , ti ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" of %s\" , val_to_str_ext ( tvb_get_guint8 ( tvb , offset + 3 ) , & q931_message_type_vals_ext , \"Unknown message type (0x%02X)\" ) ) ;\n if ( tvb_get_guint8 ( tvb , offset + 2 ) & 0x80 ) {\n first_segment = TRUE ;\n }\n else {\n proto_tree_add_item ( q931_tree , hf_q931_message_segment , tvb , offset + 4 , - 1 , ENC_NA ) ;\n info_element_len += tvb_reported_length_remaining ( tvb , offset + 4 ) ;\n }\n }\n else {\n switch ( ( codeset << 8 ) | info_element ) {\n case CS0 | Q931_IE_BEARER_CAPABILITY : case CS0 | Q931_IE_LOW_LAYER_COMPAT : if ( q931_tree != NULL ) {\n dissect_q931_bearer_capability_ie ( tvb , offset + 2 , info_element_len , ie_tree ) ;\n }\n break ;\n case CS0 | Q931_IE_CAUSE : dissect_q931_cause_ie_with_info ( tvb , offset + 2 , info_element_len , ie_tree , hf_q931_cause_value , & dummy , q931_info_element_vals0 , q931_pi ) ;\n break ;\n case CS0 | Q931_IE_CHANGE_STATUS : if ( q931_tree != NULL ) {\n dissect_q931_change_status_ie ( tvb , offset + 2 , info_element_len , ie_tree ) ;\n }\n break ;\n case CS0 | Q931_IE_CALL_STATE : if ( q931_tree != NULL ) {\n dissect_q931_call_state_ie ( tvb , offset + 2 , info_element_len , ie_tree ) ;\n }\n break ;\n case CS0 | Q931_IE_CHANNEL_IDENTIFICATION : if ( q931_tree != NULL ) {\n dissect_q931_channel_identification_ie ( tvb , offset + 2 , info_element_len , ie_tree ) ;\n }\n break ;\n case CS0 | Q931_IE_PROGRESS_INDICATOR : if ( q931_tree != NULL ) {\n dissect_q931_progress_indicator_ie ( tvb , offset + 2 , info_element_len , ie_tree ) ;\n }\n break ;\n case CS0 | Q931_IE_NETWORK_SPECIFIC_FACIL : case CS0 | Q931_IE_TRANSIT_NETWORK_SEL : if ( q931_tree != NULL ) {\n dissect_q931_ns_facilities_ie ( tvb , offset + 2 , info_element_len , ie_tree ) ;\n }\n break ;\n case CS0 | Q931_IE_NOTIFICATION_INDICATOR : if ( q931_tree != NULL ) {\n dissect_q931_notification_indicator_ie ( tvb , offset + 2 , info_element_len , ie_tree ) ;\n }\n break ;\n case CS0 | Q931_IE_DISPLAY : if ( q931_tree != NULL ) {\n dissect_q931_ia5_ie ( tvb , offset + 2 , info_element_len , ie_tree , hf_q931_display_information ) ;\n }\n break ;\n case CS0 | Q931_IE_DATE_TIME : dissect_q931_date_time_ie ( tvb , pinfo , offset + 2 , info_element_len , ie_tree ) ;\n break ;\n case CS0 | Q931_IE_KEYPAD_FACILITY : if ( q931_tree != NULL ) {\n dissect_q931_ia5_ie ( tvb , offset + 2 , info_element_len , ie_tree , hf_q931_keypad_facility ) ;\n }\n break ;\n case CS0 | Q931_IE_SIGNAL : dissect_q931_signal_ie ( tvb , pinfo , offset + 2 , info_element_len , ie_tree , ti ) ;\n break ;\n case CS0 | Q931_IE_INFORMATION_RATE : dissect_q931_information_rate_ie ( tvb , pinfo , offset + 2 , info_element_len , ie_tree , ti ) ;\n break ;\n case CS0 | Q931_IE_E2E_TRANSIT_DELAY : dissect_q931_e2e_transit_delay_ie ( tvb , pinfo , offset + 2 , info_element_len , ie_tree , ti ) ;\n break ;\n case CS0 | Q931_IE_TD_SELECTION_AND_INT : dissect_q931_td_selection_and_int_ie ( tvb , pinfo , offset + 2 , info_element_len , ie_tree , ti ) ;\n break ;\n case CS0 | Q931_IE_PL_BINARY_PARAMETERS : if ( q931_tree != NULL ) {\n dissect_q931_pl_binary_parameters_ie ( tvb , offset + 2 , info_element_len , ie_tree ) ;\n }\n break ;\n case CS0 | Q931_IE_PL_WINDOW_SIZE : if ( q931_tree != NULL ) {\n dissect_q931_pl_window_size_ie ( tvb , offset + 2 , info_element_len , ie_tree ) ;\n }\n break ;\n case CS0 | Q931_IE_PACKET_SIZE : if ( q931_tree != NULL ) {\n dissect_q931_packet_size_ie ( tvb , offset + 2 , info_element_len , ie_tree ) ;\n }\n break ;\n case CS0 | Q931_IE_CUG : if ( q931_tree != NULL ) {\n dissect_q931_cug_ie ( tvb , offset + 2 , info_element_len , ie_tree ) ;\n }\n break ;\n case CS0 | Q931_IE_REVERSE_CHARGE_IND : if ( q931_tree != NULL ) {\n dissect_q931_reverse_charge_ind_ie ( tvb , offset + 2 , info_element_len , ie_tree ) ;\n }\n break ;\n case CS0 | Q931_IE_CONNECTED_NUMBER_DEFAULT : if ( q931_tree != NULL ) {\n dissect_q931_number_ie ( tvb , offset + 2 , info_element_len , ie_tree , hf_q931_connected_number , e164_info , q931_pi ) ;\n }\n break ;\n case CS0 | Q931_IE_CALLING_PARTY_NUMBER : e164_info . e164_number_type = CALLING_PARTY_NUMBER ;\n dissect_q931_number_ie ( tvb , offset + 2 , info_element_len , ie_tree , hf_q931_calling_party_number , e164_info , q931_pi ) ;\n break ;\n case CS0 | Q931_IE_CALLED_PARTY_NUMBER : e164_info . e164_number_type = CALLED_PARTY_NUMBER ;\n dissect_q931_number_ie ( tvb , offset + 2 , info_element_len , ie_tree , hf_q931_called_party_number , e164_info , q931_pi ) ;\n break ;\n case CS0 | Q931_IE_CALLING_PARTY_SUBADDR : case CS0 | Q931_IE_CALLED_PARTY_SUBADDR : if ( q931_tree != NULL ) {\n dissect_q931_party_subaddr_ie ( tvb , offset + 2 , info_element_len , ie_tree ) ;\n }\n break ;\n case CS0 | Q931_IE_REDIRECTING_NUMBER : if ( q931_tree != NULL ) {\n dissect_q931_number_ie ( tvb , offset + 2 , info_element_len , ie_tree , hf_q931_redirecting_number , e164_info , q931_pi ) ;\n }\n break ;\n case CS0 | Q931_IE_RESTART_INDICATOR : dissect_q931_restart_indicator_ie ( tvb , pinfo , offset + 2 , info_element_len , ie_tree , ti ) ;\n break ;\n case CS0 | Q931_IE_HIGH_LAYER_COMPAT : if ( q931_tree != NULL ) {\n dissect_q931_high_layer_compat_ie ( tvb , offset + 2 , info_element_len , ie_tree ) ;\n }\n break ;\n case CS0 | Q931_IE_USER_USER : if ( q931_tree != NULL ) {\n dissect_q931_user_user_ie ( tvb , pinfo , offset + 2 , info_element_len , ie_tree ) ;\n }\n break ;\n case CS5 | Q931_IE_PARTY_CATEGORY : if ( q931_tree != NULL ) {\n dissect_q931_party_category_ie ( tvb , offset + 2 , info_element_len , ie_tree ) ;\n }\n break ;\n case CS6 | Q931_IE_DISPLAY : if ( q931_tree != NULL ) {\n dissect_q931_ia5_ie ( tvb , offset + 2 , info_element_len , ie_tree , hf_q931_avaya_display ) ;\n }\n break ;\n default : if ( q931_tree != NULL ) {\n proto_tree_add_item ( ie_tree , hf_q931_data , tvb , offset + 2 , info_element_len , ENC_NA ) ;\n }\n break ;\n }\n }\n offset += 1 + 1 + info_element_len ;\n }\n codeset = locked_codeset ;\n }\n tap_queue_packet ( q931_tap , pinfo , q931_pi ) ;\n }"}
{"idx": 11283, "target": 1, "func": "static UChar32 ucnv_getNextUChar_UTF8 ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n UConverter * cnv ;\n const uint8_t * sourceInitial ;\n const uint8_t * source ;\n uint16_t extraBytesToWrite ;\n uint8_t myByte ;\n UChar32 ch ;\n int8_t i , isLegalSequence ;\n cnv = args -> converter ;\n sourceInitial = source = ( const uint8_t * ) args -> source ;\n if ( source >= ( const uint8_t * ) args -> sourceLimit ) {\n * err = U_INDEX_OUTOFBOUNDS_ERROR ;\n return 0xffff ;\n }\n myByte = ( uint8_t ) * ( source ++ ) ;\n if ( myByte < 0x80 ) {\n args -> source = ( const char * ) source ;\n return ( UChar32 ) myByte ;\n }\n extraBytesToWrite = ( uint16_t ) bytesFromUTF8 [ myByte ] ;\n if ( extraBytesToWrite == 0 ) {\n cnv -> toUBytes [ 0 ] = myByte ;\n cnv -> toULength = 1 ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n args -> source = ( const char * ) source ;\n return 0xffff ;\n }\n if ( ( ( const char * ) source + extraBytesToWrite - 1 ) > args -> sourceLimit ) {\n cnv -> toUBytes [ 0 ] = myByte ;\n i = 1 ;\n * err = U_TRUNCATED_CHAR_FOUND ;\n while ( source < ( const uint8_t * ) args -> sourceLimit ) {\n if ( U8_IS_TRAIL ( myByte = * source ) ) {\n cnv -> toUBytes [ i ++ ] = myByte ;\n ++ source ;\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n }\n cnv -> toULength = i ;\n args -> source = ( const char * ) source ;\n return 0xffff ;\n }\n isLegalSequence = 1 ;\n ch = myByte << 6 ;\n switch ( extraBytesToWrite ) {\n case 6 : ch += ( myByte = * source ) ;\n ch <<= 6 ;\n if ( ! U8_IS_TRAIL ( myByte ) ) {\n isLegalSequence = 0 ;\n break ;\n }\n ++ source ;\n U_FALLTHROUGH ;\n case 5 : ch += ( myByte = * source ) ;\n ch <<= 6 ;\n if ( ! U8_IS_TRAIL ( myByte ) ) {\n isLegalSequence = 0 ;\n break ;\n }\n ++ source ;\n U_FALLTHROUGH ;\n case 4 : ch += ( myByte = * source ) ;\n ch <<= 6 ;\n if ( ! U8_IS_TRAIL ( myByte ) ) {\n isLegalSequence = 0 ;\n break ;\n }\n ++ source ;\n U_FALLTHROUGH ;\n case 3 : ch += ( myByte = * source ) ;\n ch <<= 6 ;\n if ( ! U8_IS_TRAIL ( myByte ) ) {\n isLegalSequence = 0 ;\n break ;\n }\n ++ source ;\n U_FALLTHROUGH ;\n case 2 : ch += ( myByte = * source ) ;\n if ( ! U8_IS_TRAIL ( myByte ) ) {\n isLegalSequence = 0 ;\n break ;\n }\n ++ source ;\n }\n ;\n ch -= offsetsFromUTF8 [ extraBytesToWrite ] ;\n args -> source = ( const char * ) source ;\n if ( isLegalSequence && ( uint32_t ) ch <= MAXIMUM_UTF && ( uint32_t ) ch >= utf8_minChar32 [ extraBytesToWrite ] && ! U_IS_SURROGATE ( ch ) ) {\n return ch ;\n }\n for ( i = 0 ;\n sourceInitial < source ;\n ++ i ) {\n cnv -> toUBytes [ i ] = * sourceInitial ++ ;\n }\n cnv -> toULength = i ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n return 0xffff ;\n }"}
{"idx": 11284, "target": 0, "func": "static int dissect_nlm1_unlock ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n return dissect_nlm_unlock ( tvb , 0 , pinfo , tree , 1 , ( rpc_call_info_value * ) data ) ;\n }"}
{"idx": 11285, "target": 0, "func": "static void dissect_zcl_appl_stats_log_req ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_appl_stats_log_id , tvb , * offset , 4 , ENC_LITTLE_ENDIAN ) ;\n * offset += 4 ;\n }"}
{"idx": 11286, "target": 0, "func": "static int com_warnings ( String * buffer __attribute__ ( ( unused ) ) , char * line __attribute__ ( ( unused ) ) ) {\n show_warnings = 1 ;\n put_info ( \"Show warnings enabled.\" , INFO_INFO ) ;\n return 0 ;\n }"}
{"idx": 11287, "target": 0, "func": "void EVP_DecodeInit ( EVP_ENCODE_CTX * ctx ) {\n ctx -> num = 0 ;\n ctx -> length = 0 ;\n ctx -> line_num = 0 ;\n ctx -> expect_nl = 0 ;\n }"}
{"idx": 11288, "target": 0, "func": "const char * fz_colorspace_name ( fz_context * ctx , const fz_colorspace * cs ) {\n return cs ? cs -> name : \"\" ;\n }"}
{"idx": 11289, "target": 1, "func": "static void fmtfp ( char * * sbuffer , char * * buffer , size_t * currlen , size_t * maxlen , LDOUBLE fvalue , int min , int max , int flags ) {\n int signvalue = 0 ;\n LDOUBLE ufvalue ;\n char iconvert [ 20 ] ;\n char fconvert [ 20 ] ;\n int iplace = 0 ;\n int fplace = 0 ;\n int padlen = 0 ;\n int zpadlen = 0 ;\n long intpart ;\n long fracpart ;\n long max10 ;\n if ( max < 0 ) max = 6 ;\n ufvalue = abs_val ( fvalue ) ;\n if ( fvalue < 0 ) signvalue = '-' ;\n else if ( flags & DP_F_PLUS ) signvalue = '+' ;\n else if ( flags & DP_F_SPACE ) signvalue = ' ' ;\n intpart = ( long ) ufvalue ;\n if ( max > 9 ) max = 9 ;\n max10 = roundv ( pow_10 ( max ) ) ;\n fracpart = roundv ( pow_10 ( max ) * ( ufvalue - intpart ) ) ;\n if ( fracpart >= max10 ) {\n intpart ++ ;\n fracpart -= max10 ;\n }\n do {\n iconvert [ iplace ++ ] = \"0123456789\" [ intpart % 10 ] ;\n intpart = ( intpart / 10 ) ;\n }\n while ( intpart && ( iplace < ( int ) sizeof ( iconvert ) ) ) ;\n if ( iplace == sizeof iconvert ) iplace -- ;\n iconvert [ iplace ] = 0 ;\n do {\n fconvert [ fplace ++ ] = \"0123456789\" [ fracpart % 10 ] ;\n fracpart = ( fracpart / 10 ) ;\n }\n while ( fplace < max ) ;\n if ( fplace == sizeof fconvert ) fplace -- ;\n fconvert [ fplace ] = 0 ;\n padlen = min - iplace - max - 1 - ( ( signvalue ) ? 1 : 0 ) ;\n zpadlen = max - fplace ;\n if ( zpadlen < 0 ) zpadlen = 0 ;\n if ( padlen < 0 ) padlen = 0 ;\n if ( flags & DP_F_MINUS ) padlen = - padlen ;\n if ( ( flags & DP_F_ZERO ) && ( padlen > 0 ) ) {\n if ( signvalue ) {\n doapr_outch ( sbuffer , buffer , currlen , maxlen , signvalue ) ;\n -- padlen ;\n signvalue = 0 ;\n }\n while ( padlen > 0 ) {\n doapr_outch ( sbuffer , buffer , currlen , maxlen , '0' ) ;\n -- padlen ;\n }\n }\n while ( padlen > 0 ) {\n doapr_outch ( sbuffer , buffer , currlen , maxlen , ' ' ) ;\n -- padlen ;\n }\n if ( signvalue ) doapr_outch ( sbuffer , buffer , currlen , maxlen , signvalue ) ;\n while ( iplace > 0 ) doapr_outch ( sbuffer , buffer , currlen , maxlen , iconvert [ -- iplace ] ) ;\n if ( max > 0 || ( flags & DP_F_NUM ) ) {\n doapr_outch ( sbuffer , buffer , currlen , maxlen , '.' ) ;\n while ( fplace > 0 ) doapr_outch ( sbuffer , buffer , currlen , maxlen , fconvert [ -- fplace ] ) ;\n }\n while ( zpadlen > 0 ) {\n doapr_outch ( sbuffer , buffer , currlen , maxlen , '0' ) ;\n -- zpadlen ;\n }\n while ( padlen < 0 ) {\n doapr_outch ( sbuffer , buffer , currlen , maxlen , ' ' ) ;\n ++ padlen ;\n }\n }"}
{"idx": 11290, "target": 0, "func": "static void prplcb_blist_remove ( PurpleBuddyList * list , PurpleBlistNode * node ) {\n }"}
{"idx": 11291, "target": 0, "func": "static Datum ExecEvalNullTest ( NullTestState * nstate , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n NullTest * ntest = ( NullTest * ) nstate -> xprstate . expr ;\n Datum result ;\n result = ExecEvalExpr ( nstate -> arg , econtext , isNull , isDone ) ;\n if ( isDone && * isDone == ExprEndResult ) return result ;\n if ( ntest -> argisrow && ! ( * isNull ) ) {\n HeapTupleHeader tuple ;\n Oid tupType ;\n int32 tupTypmod ;\n TupleDesc tupDesc ;\n HeapTupleData tmptup ;\n int att ;\n tuple = DatumGetHeapTupleHeader ( result ) ;\n tupType = HeapTupleHeaderGetTypeId ( tuple ) ;\n tupTypmod = HeapTupleHeaderGetTypMod ( tuple ) ;\n tupDesc = get_cached_rowtype ( tupType , tupTypmod , & nstate -> argdesc , econtext ) ;\n tmptup . t_len = HeapTupleHeaderGetDatumLength ( tuple ) ;\n tmptup . t_data = tuple ;\n for ( att = 1 ;\n att <= tupDesc -> natts ;\n att ++ ) {\n if ( tupDesc -> attrs [ att - 1 ] -> attisdropped ) continue ;\n if ( heap_attisnull ( & tmptup , att ) ) {\n if ( ntest -> nulltesttype == IS_NOT_NULL ) return BoolGetDatum ( false ) ;\n }\n else {\n if ( ntest -> nulltesttype == IS_NULL ) return BoolGetDatum ( false ) ;\n }\n }\n return BoolGetDatum ( true ) ;\n }\n else {\n switch ( ntest -> nulltesttype ) {\n case IS_NULL : if ( * isNull ) {\n * isNull = false ;\n return BoolGetDatum ( true ) ;\n }\n else return BoolGetDatum ( false ) ;\n case IS_NOT_NULL : if ( * isNull ) {\n * isNull = false ;\n return BoolGetDatum ( false ) ;\n }\n else return BoolGetDatum ( true ) ;\n default : elog ( ERROR , \"unrecognized nulltesttype: %d\" , ( int ) ntest -> nulltesttype ) ;\n return ( Datum ) 0 ;\n }\n }\n }"}
{"idx": 11292, "target": 0, "func": "void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) {\n if ( a -> value . ptr != NULL ) {\n ASN1_TYPE * * tmp_a = & a ;\n ASN1_primitive_free ( ( ASN1_VALUE * * ) tmp_a , NULL ) ;\n }\n a -> type = type ;\n if ( type == V_ASN1_BOOLEAN ) a -> value . boolean = value ? 0xff : 0 ;\n else a -> value . ptr = value ;\n }"}
{"idx": 11293, "target": 0, "func": "int flush_pending_blocks ( MI_SORT_PARAM * sort_param ) {\n uint nod_flag , length ;\n my_off_t filepos , key_file_length ;\n SORT_KEY_BLOCKS * key_block ;\n SORT_INFO * sort_info = sort_param -> sort_info ;\n myf myf_rw = sort_info -> param -> myf_rw ;\n MI_INFO * info = sort_info -> info ;\n MI_KEYDEF * keyinfo = sort_param -> keyinfo ;\n DBUG_ENTER ( \"flush_pending_blocks\" ) ;\n filepos = HA_OFFSET_ERROR ;\n nod_flag = 0 ;\n for ( key_block = sort_info -> key_block ;\n key_block -> inited ;\n key_block ++ ) {\n key_block -> inited = 0 ;\n length = mi_getint ( key_block -> buff ) ;\n if ( nod_flag ) _mi_kpointer ( info , key_block -> end_pos , filepos ) ;\n key_file_length = info -> state -> key_file_length ;\n bzero ( ( uchar * ) key_block -> buff + length , keyinfo -> block_length - length ) ;\n if ( ( filepos = _mi_new ( info , keyinfo , DFLT_INIT_HITS ) ) == HA_OFFSET_ERROR ) DBUG_RETURN ( 1 ) ;\n if ( key_file_length == info -> state -> key_file_length ) {\n if ( _mi_write_keypage ( info , keyinfo , filepos , DFLT_INIT_HITS , key_block -> buff ) ) DBUG_RETURN ( 1 ) ;\n }\n else if ( mysql_file_pwrite ( info -> s -> kfile , ( uchar * ) key_block -> buff , ( uint ) keyinfo -> block_length , filepos , myf_rw ) ) DBUG_RETURN ( 1 ) ;\n DBUG_DUMP ( \"buff\" , ( uchar * ) key_block -> buff , length ) ;\n nod_flag = 1 ;\n }\n info -> s -> state . key_root [ sort_param -> key ] = filepos ;\n DBUG_RETURN ( 0 ) ;\n }"}
{"idx": 11294, "target": 0, "func": "static bfd_boolean srec_read_section ( bfd * abfd , asection * section , bfd_byte * contents ) {\n int c ;\n bfd_size_type sofar = 0 ;\n bfd_boolean error = FALSE ;\n bfd_byte * buf = NULL ;\n size_t bufsize = 0 ;\n if ( bfd_seek ( abfd , section -> filepos , SEEK_SET ) != 0 ) goto error_return ;\n while ( ( c = srec_get_byte ( abfd , & error ) ) != EOF ) {\n bfd_byte hdr [ 3 ] ;\n unsigned int bytes ;\n bfd_vma address ;\n bfd_byte * data ;\n if ( c == '\\r' || c == '\\n' ) continue ;\n BFD_ASSERT ( c == 'S' ) ;\n if ( bfd_bread ( hdr , ( bfd_size_type ) 3 , abfd ) != 3 ) goto error_return ;\n BFD_ASSERT ( ISHEX ( hdr [ 1 ] ) && ISHEX ( hdr [ 2 ] ) ) ;\n bytes = HEX ( hdr + 1 ) ;\n if ( bytes * 2 > bufsize ) {\n if ( buf != NULL ) free ( buf ) ;\n buf = ( bfd_byte * ) bfd_malloc ( ( bfd_size_type ) bytes * 2 ) ;\n if ( buf == NULL ) goto error_return ;\n bufsize = bytes * 2 ;\n }\n if ( bfd_bread ( buf , ( bfd_size_type ) bytes * 2 , abfd ) != bytes * 2 ) goto error_return ;\n address = 0 ;\n data = buf ;\n switch ( hdr [ 0 ] ) {\n default : BFD_ASSERT ( sofar == section -> size ) ;\n if ( buf != NULL ) free ( buf ) ;\n return TRUE ;\n case '3' : address = HEX ( data ) ;\n data += 2 ;\n -- bytes ;\n case '2' : address = ( address << 8 ) | HEX ( data ) ;\n data += 2 ;\n -- bytes ;\n case '1' : address = ( address << 8 ) | HEX ( data ) ;\n data += 2 ;\n address = ( address << 8 ) | HEX ( data ) ;\n data += 2 ;\n bytes -= 2 ;\n if ( address != section -> vma + sofar ) {\n BFD_ASSERT ( sofar == section -> size ) ;\n if ( buf != NULL ) free ( buf ) ;\n return TRUE ;\n }\n -- bytes ;\n while ( bytes -- != 0 ) {\n contents [ sofar ] = HEX ( data ) ;\n data += 2 ;\n ++ sofar ;\n }\n break ;\n }\n }\n if ( error ) goto error_return ;\n BFD_ASSERT ( sofar == section -> size ) ;\n if ( buf != NULL ) free ( buf ) ;\n return TRUE ;\n error_return : if ( buf != NULL ) free ( buf ) ;\n return FALSE ;\n }"}
{"idx": 11295, "target": 0, "func": "static int pxa2xx_clkcfg_read ( CPUARMState * env , const ARMCPRegInfo * ri , uint64_t * value ) {\n PXA2xxState * s = ( PXA2xxState * ) ri -> opaque ;\n * value = s -> clkcfg ;\n return 0 ;\n }"}
{"idx": 11296, "target": 0, "func": "void * ps2_mouse_init ( void ( * update_irq ) ( void * , int ) , void * update_arg ) {\n PS2MouseState * s = ( PS2MouseState * ) g_malloc0 ( sizeof ( PS2MouseState ) ) ;\n trace_ps2_mouse_init ( s ) ;\n s -> common . update_irq = update_irq ;\n s -> common . update_arg = update_arg ;\n vmstate_register ( NULL , 0 , & vmstate_ps2_mouse , s ) ;\n qemu_input_handler_register ( ( DeviceState * ) s , & ps2_mouse_handler ) ;\n qemu_register_reset ( ps2_mouse_reset , s ) ;\n return s ;\n }"}
{"idx": 11297, "target": 0, "func": "static cmsBool SynError ( cmsIT8 * it8 , const char * Txt , ... ) {\n char Buffer [ 256 ] , ErrMsg [ 1024 ] ;\n va_list args ;\n va_start ( args , Txt ) ;\n vsnprintf ( Buffer , 255 , Txt , args ) ;\n Buffer [ 255 ] = 0 ;\n va_end ( args ) ;\n snprintf ( ErrMsg , 1023 , \"%s: Line %d, %s\" , it8 -> FileStack [ it8 -> IncludeSP ] -> FileName , it8 -> lineno , Buffer ) ;\n ErrMsg [ 1023 ] = 0 ;\n it8 -> sy = SSYNERROR ;\n cmsSignalError ( it8 -> ContextID , cmsERROR_CORRUPTION_DETECTED , \"%s\" , ErrMsg ) ;\n return FALSE ;\n }"}
{"idx": 11298, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( BookmarkBubbleSignInDelegateTest , OnSignInLinkClickedIncognito ) {\n ReplaceBlank ( browser ( ) ) ;\n Browser * incognito_browser = CreateIncognitoBrowser ( ) ;\n int starting_tab_count_normal = browser ( ) -> tab_strip_model ( ) -> count ( ) ;\n int starting_tab_count_incognito = incognito_browser -> tab_strip_model ( ) -> count ( ) ;\n scoped_ptr < BookmarkBubbleDelegate > delegate ;\n delegate . reset ( new BookmarkBubbleSignInDelegate ( incognito_browser ) ) ;\n delegate -> OnSignInLinkClicked ( ) ;\n if ( kHasProfileChooser ) {\n EXPECT_FALSE ( ProfileChooserView : : IsShowing ( ) ) ;\n }\n else {\n int tab_count_normal = browser ( ) -> tab_strip_model ( ) -> count ( ) ;\n EXPECT_EQ ( starting_tab_count_normal + 1 , tab_count_normal ) ;\n }\n int tab_count_incognito = incognito_browser -> tab_strip_model ( ) -> count ( ) ;\n EXPECT_EQ ( starting_tab_count_incognito , tab_count_incognito ) ;\n }"}
{"idx": 11299, "target": 1, "func": "static void rv34_pred_mv_rv3 ( RV34DecContext * r , int block_type , int dir ) {\n MpegEncContext * s = & r -> s ;\n int mv_pos = s -> mb_x * 2 + s -> mb_y * 2 * s -> b8_stride ;\n int A [ 2 ] = {\n 0 }\n , B [ 2 ] , C [ 2 ] ;\n int i , j , k ;\n int mx , my ;\n int * avail = r -> avail_cache + avail_indexes [ 0 ] ;\n if ( avail [ - 1 ] ) {\n A [ 0 ] = s -> current_picture_ptr -> f . motion_val [ 0 ] [ mv_pos - 1 ] [ 0 ] ;\n A [ 1 ] = s -> current_picture_ptr -> f . motion_val [ 0 ] [ mv_pos - 1 ] [ 1 ] ;\n }\n if ( avail [ - 4 ] ) {\n B [ 0 ] = s -> current_picture_ptr -> f . motion_val [ 0 ] [ mv_pos - s -> b8_stride ] [ 0 ] ;\n B [ 1 ] = s -> current_picture_ptr -> f . motion_val [ 0 ] [ mv_pos - s -> b8_stride ] [ 1 ] ;\n }\n else {\n B [ 0 ] = A [ 0 ] ;\n B [ 1 ] = A [ 1 ] ;\n }\n if ( ! avail [ - 4 + 2 ] ) {\n if ( avail [ - 4 ] && ( avail [ - 1 ] ) ) {\n C [ 0 ] = s -> current_picture_ptr -> f . motion_val [ 0 ] [ mv_pos - s -> b8_stride - 1 ] [ 0 ] ;\n C [ 1 ] = s -> current_picture_ptr -> f . motion_val [ 0 ] [ mv_pos - s -> b8_stride - 1 ] [ 1 ] ;\n }\n else {\n C [ 0 ] = A [ 0 ] ;\n C [ 1 ] = A [ 1 ] ;\n }\n }\n else {\n C [ 0 ] = s -> current_picture_ptr -> f . motion_val [ 0 ] [ mv_pos - s -> b8_stride + 2 ] [ 0 ] ;\n C [ 1 ] = s -> current_picture_ptr -> f . motion_val [ 0 ] [ mv_pos - s -> b8_stride + 2 ] [ 1 ] ;\n }\n mx = mid_pred ( A [ 0 ] , B [ 0 ] , C [ 0 ] ) ;\n my = mid_pred ( A [ 1 ] , B [ 1 ] , C [ 1 ] ) ;\n mx += r -> dmv [ 0 ] [ 0 ] ;\n my += r -> dmv [ 0 ] [ 1 ] ;\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n for ( k = 0 ;\n k < 2 ;\n k ++ ) {\n s -> current_picture_ptr -> f . motion_val [ k ] [ mv_pos + i + j * s -> b8_stride ] [ 0 ] = mx ;\n s -> current_picture_ptr -> f . motion_val [ k ] [ mv_pos + i + j * s -> b8_stride ] [ 1 ] = my ;\n }\n }\n }\n }"}
{"idx": 11300, "target": 0, "func": "int32 get_atttypmod ( Oid relid , AttrNumber attnum ) {\n HeapTuple tp ;\n tp = SearchSysCache2 ( ATTNUM , ObjectIdGetDatum ( relid ) , Int16GetDatum ( attnum ) ) ;\n if ( HeapTupleIsValid ( tp ) ) {\n Form_pg_attribute att_tup = ( Form_pg_attribute ) GETSTRUCT ( tp ) ;\n int32 result ;\n result = att_tup -> atttypmod ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }\n else return - 1 ;\n }"}
{"idx": 11301, "target": 0, "func": "static int ogg_save ( AVFormatContext * s ) {\n struct ogg * ogg = s -> priv_data ;\n struct ogg_state * ost = av_malloc ( sizeof ( * ost ) + ( ogg -> nstreams - 1 ) * sizeof ( * ogg -> streams ) ) ;\n int i ;\n int ret = 0 ;\n if ( ! ost ) return AVERROR ( ENOMEM ) ;\n ost -> pos = avio_tell ( s -> pb ) ;\n ost -> curidx = ogg -> curidx ;\n ost -> next = ogg -> state ;\n ost -> nstreams = ogg -> nstreams ;\n memcpy ( ost -> streams , ogg -> streams , ogg -> nstreams * sizeof ( * ogg -> streams ) ) ;\n for ( i = 0 ;\n i < ogg -> nstreams ;\n i ++ ) {\n struct ogg_stream * os = ogg -> streams + i ;\n os -> buf = av_mallocz ( os -> bufsize + AV_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( os -> buf ) memcpy ( os -> buf , ost -> streams [ i ] . buf , os -> bufpos ) ;\n else ret = AVERROR ( ENOMEM ) ;\n os -> new_metadata = NULL ;\n os -> new_metadata_size = 0 ;\n }\n ogg -> state = ost ;\n if ( ret < 0 ) ogg_restore ( s , 0 ) ;\n return ret ;\n }"}
{"idx": 11302, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( DownloadNotificationTest , IncognitoDownloadFile ) {\n PrepareIncognitoBrowser ( ) ;\n CreateDownloadForBrowserAndURL ( incognito_browser ( ) , GURL ( net : : URLRequestSlowDownloadJob : : kKnownSizeUrl ) ) ;\n EXPECT_EQ ( l10n_util : : GetStringFUTF16 ( IDS_DOWNLOAD_STATUS_IN_PROGRESS_TITLE , download_item ( ) -> GetFileNameToReportUser ( ) . LossyDisplayName ( ) ) , notification ( ) -> title ( ) ) ;\n EXPECT_EQ ( message_center : : NOTIFICATION_TYPE_PROGRESS , notification ( ) -> type ( ) ) ;\n EXPECT_TRUE ( content : : DownloadItemUtils : : GetBrowserContext ( download_item ( ) ) -> IsOffTheRecord ( ) ) ;\n content : : DownloadTestObserverTerminal download_terminal_observer ( GetDownloadManager ( incognito_browser ( ) ) , 1 , content : : DownloadTestObserver : : ON_DANGEROUS_DOWNLOAD_FAIL ) ;\n ui_test_utils : : NavigateToURL ( incognito_browser ( ) , GURL ( net : : URLRequestSlowDownloadJob : : kFinishDownloadUrl ) ) ;\n download_terminal_observer . WaitForFinished ( ) ;\n EXPECT_EQ ( l10n_util : : GetStringUTF16 ( IDS_DOWNLOAD_STATUS_COMPLETE_TITLE ) , notification ( ) -> title ( ) ) ;\n EXPECT_EQ ( download_item ( ) -> GetFileNameToReportUser ( ) . LossyDisplayName ( ) , notification ( ) -> message ( ) ) ;\n EXPECT_EQ ( message_center : : NOTIFICATION_TYPE_BASE_FORMAT , notification ( ) -> type ( ) ) ;\n EXPECT_TRUE ( incognito_display_service_ -> GetNotification ( notification_id ( ) ) ) ;\n EXPECT_FALSE ( GetIncognitoDownloadManagerDelegate ( ) -> opened ( ) ) ;\n incognito_display_service_ -> SimulateClick ( NotificationHandler : : Type : : TRANSIENT , notification_id ( ) , base : : nullopt , base : : nullopt ) ;\n EXPECT_TRUE ( GetIncognitoDownloadManagerDelegate ( ) -> opened ( ) ) ;\n EXPECT_FALSE ( GetDownloadManagerDelegate ( ) -> opened ( ) ) ;\n EXPECT_FALSE ( incognito_display_service_ -> GetNotification ( notification_id ( ) ) ) ;\n chrome : : CloseWindow ( incognito_browser ( ) ) ;\n }"}
{"idx": 11303, "target": 0, "func": "struct message_decoder_context * message_decoder_init ( normalizer_func_t * normalizer , enum message_decoder_flags flags ) {\n struct message_decoder_context * ctx ;\n ctx = i_new ( struct message_decoder_context , 1 ) ;\n ctx -> flags = flags ;\n ctx -> normalizer = normalizer ;\n ctx -> buf = buffer_create_dynamic ( default_pool , 8192 ) ;\n ctx -> buf2 = buffer_create_dynamic ( default_pool , 8192 ) ;\n ctx -> encoding_buf = buffer_create_dynamic ( default_pool , 128 ) ;\n return ctx ;\n }"}
{"idx": 11304, "target": 0, "func": "static void xhci_xfer_report ( XHCITransfer * xfer ) {\n uint32_t edtla = 0 ;\n unsigned int left ;\n bool reported = 0 ;\n bool shortpkt = 0 ;\n XHCIEvent event = {\n ER_TRANSFER , CC_SUCCESS }\n ;\n XHCIState * xhci = xfer -> epctx -> xhci ;\n int i ;\n left = xfer -> packet . actual_length ;\n for ( i = 0 ;\n i < xfer -> trb_count ;\n i ++ ) {\n XHCITRB * trb = & xfer -> trbs [ i ] ;\n unsigned int chunk = 0 ;\n switch ( TRB_TYPE ( * trb ) ) {\n case TR_SETUP : chunk = trb -> status & 0x1ffff ;\n if ( chunk > 8 ) {\n chunk = 8 ;\n }\n break ;\n case TR_DATA : case TR_NORMAL : case TR_ISOCH : chunk = trb -> status & 0x1ffff ;\n if ( chunk > left ) {\n chunk = left ;\n if ( xfer -> status == CC_SUCCESS ) {\n shortpkt = 1 ;\n }\n }\n left -= chunk ;\n edtla += chunk ;\n break ;\n case TR_STATUS : reported = 0 ;\n shortpkt = 0 ;\n break ;\n }\n if ( ! reported && ( ( trb -> control & TRB_TR_IOC ) || ( shortpkt && ( trb -> control & TRB_TR_ISP ) ) || ( xfer -> status != CC_SUCCESS && left == 0 ) ) ) {\n event . slotid = xfer -> epctx -> slotid ;\n event . epid = xfer -> epctx -> epid ;\n event . length = ( trb -> status & 0x1ffff ) - chunk ;\n event . flags = 0 ;\n event . ptr = trb -> addr ;\n if ( xfer -> status == CC_SUCCESS ) {\n event . ccode = shortpkt ? CC_SHORT_PACKET : CC_SUCCESS ;\n }\n else {\n event . ccode = xfer -> status ;\n }\n if ( TRB_TYPE ( * trb ) == TR_EVDATA ) {\n event . ptr = trb -> parameter ;\n event . flags |= TRB_EV_ED ;\n event . length = edtla & 0xffffff ;\n DPRINTF ( \"xhci_xfer_data: EDTLA=%d\\n\" , event . length ) ;\n edtla = 0 ;\n }\n xhci_event ( xhci , & event , TRB_INTR ( * trb ) ) ;\n reported = 1 ;\n if ( xfer -> status != CC_SUCCESS ) {\n return ;\n }\n }\n switch ( TRB_TYPE ( * trb ) ) {\n case TR_SETUP : reported = 0 ;\n shortpkt = 0 ;\n break ;\n }\n }\n }"}
{"idx": 11305, "target": 0, "func": "static void exsltMathConstantFunction ( xmlXPathParserContextPtr ctxt , int nargs ) {\n double ret ;\n xmlChar * name ;\n if ( nargs != 2 ) {\n xmlXPathSetArityError ( ctxt ) ;\n return ;\n }\n ret = xmlXPathPopNumber ( ctxt ) ;\n if ( xmlXPathCheckError ( ctxt ) ) return ;\n name = xmlXPathPopString ( ctxt ) ;\n if ( xmlXPathCheckError ( ctxt ) ) return ;\n ret = exsltMathConstant ( name , ret ) ;\n if ( name != NULL ) xmlFree ( name ) ;\n xmlXPathReturnNumber ( ctxt , ret ) ;\n }"}
{"idx": 11306, "target": 0, "func": "void vp9_set_high_precision_mv ( VP9_COMP * cpi , int allow_high_precision_mv ) {\n MACROBLOCK * const mb = & cpi -> mb ;\n cpi -> common . allow_high_precision_mv = allow_high_precision_mv ;\n if ( cpi -> common . allow_high_precision_mv ) {\n mb -> mvcost = mb -> nmvcost_hp ;\n mb -> mvsadcost = mb -> nmvsadcost_hp ;\n }\n else {\n mb -> mvcost = mb -> nmvcost ;\n mb -> mvsadcost = mb -> nmvsadcost ;\n }\n }"}
{"idx": 11307, "target": 0, "func": "void uprint ( const UChar * s , FILE * f , UErrorCode * status ) {\n UConverter * converter ;\n char buf [ BUF_SIZE ] ;\n int32_t sourceLen ;\n const UChar * mySource ;\n const UChar * mySourceEnd ;\n char * myTarget ;\n int32_t arraySize ;\n if ( s == 0 ) return ;\n sourceLen = u_strlen ( s ) ;\n mySource = s ;\n mySourceEnd = mySource + sourceLen ;\n myTarget = buf ;\n arraySize = BUF_SIZE ;\n converter = ucnv_open ( 0 , status ) ;\n if ( U_FAILURE ( * status ) ) goto finish ;\n do {\n * status = U_ZERO_ERROR ;\n ucnv_fromUnicode ( converter , & myTarget , myTarget + arraySize , & mySource , mySourceEnd , NULL , TRUE , status ) ;\n fwrite ( buf , sizeof ( char ) , myTarget - buf , f ) ;\n myTarget = buf ;\n arraySize = BUF_SIZE ;\n }\n while ( * status == U_BUFFER_OVERFLOW_ERROR ) ;\n finish : ucnv_close ( converter ) ;\n }"}
{"idx": 11308, "target": 0, "func": "static int tscc2_decode_mb ( TSCC2Context * c , int * q , int vlc_set , uint8_t * dst , int stride , int plane ) {\n GetBitContext * gb = & c -> gb ;\n int prev_dc , dc , nc , ac , bpos , val ;\n int i , j , k , l ;\n if ( get_bits1 ( gb ) ) {\n if ( get_bits1 ( gb ) ) {\n val = get_bits ( gb , 8 ) ;\n for ( i = 0 ;\n i < 8 ;\n i ++ , dst += stride ) memset ( dst , val , 16 ) ;\n }\n else {\n if ( get_bits_left ( gb ) < 16 * 8 * 8 ) return AVERROR_INVALIDDATA ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n for ( j = 0 ;\n j < 16 ;\n j ++ ) dst [ j ] = get_bits ( gb , 8 ) ;\n dst += stride ;\n }\n }\n return 0 ;\n }\n prev_dc = 0 ;\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n for ( k = 0 ;\n k < 4 ;\n k ++ ) {\n if ( ! ( j | k ) ) {\n dc = get_bits ( gb , 8 ) ;\n }\n else {\n dc = get_vlc2 ( gb , c -> dc_vlc . table , 9 , 2 ) ;\n if ( dc == - 1 ) return AVERROR_INVALIDDATA ;\n if ( dc == 0x100 ) dc = get_bits ( gb , 8 ) ;\n }\n dc = ( dc + prev_dc ) & 0xFF ;\n prev_dc = dc ;\n c -> block [ 0 ] = dc ;\n nc = get_vlc2 ( gb , c -> nc_vlc [ vlc_set ] . table , 9 , 1 ) ;\n if ( nc == - 1 ) return AVERROR_INVALIDDATA ;\n bpos = 1 ;\n memset ( c -> block + 1 , 0 , 15 * sizeof ( * c -> block ) ) ;\n for ( l = 0 ;\n l < nc ;\n l ++ ) {\n ac = get_vlc2 ( gb , c -> ac_vlc [ vlc_set ] . table , 9 , 2 ) ;\n if ( ac == - 1 ) return AVERROR_INVALIDDATA ;\n if ( ac == 0x1000 ) ac = get_bits ( gb , 12 ) ;\n bpos += ac & 0xF ;\n if ( bpos >= 16 ) return AVERROR_INVALIDDATA ;\n val = sign_extend ( ac >> 4 , 8 ) ;\n c -> block [ tscc2_zigzag [ bpos ++ ] ] = val ;\n }\n tscc2_idct4_put ( c -> block , q , dst + k * 4 , stride ) ;\n }\n dst += 4 * stride ;\n }\n return 0 ;\n }"}
{"idx": 11309, "target": 0, "func": "static int qemuMonitorJSONIOProcessLine ( qemuMonitorPtr mon , const char * line , qemuMonitorMessagePtr msg ) {\n virJSONValuePtr obj = NULL ;\n int ret = - 1 ;\n VIR_DEBUG ( \"Line [%s]\" , line ) ;\n if ( ! ( obj = virJSONValueFromString ( line ) ) ) goto cleanup ;\n if ( obj -> type != VIR_JSON_TYPE_OBJECT ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"Parsed JSON reply '%s' isn't an object\" ) , line ) ;\n goto cleanup ;\n }\n if ( virJSONValueObjectHasKey ( obj , \"QMP\" ) == 1 ) {\n ret = 0 ;\n }\n else if ( virJSONValueObjectHasKey ( obj , \"event\" ) == 1 ) {\n PROBE ( QEMU_MONITOR_RECV_EVENT , \"mon=%p event=%s\" , mon , line ) ;\n ret = qemuMonitorJSONIOProcessEvent ( mon , obj ) ;\n }\n else if ( virJSONValueObjectHasKey ( obj , \"error\" ) == 1 || virJSONValueObjectHasKey ( obj , \"return\" ) == 1 ) {\n PROBE ( QEMU_MONITOR_RECV_REPLY , \"mon=%p reply=%s\" , mon , line ) ;\n if ( msg ) {\n msg -> rxObject = obj ;\n msg -> finished = 1 ;\n obj = NULL ;\n ret = 0 ;\n }\n else {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"Unexpected JSON reply '%s'\" ) , line ) ;\n }\n }\n else {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"Unknown JSON reply '%s'\" ) , line ) ;\n }\n cleanup : virJSONValueFree ( obj ) ;\n return ret ;\n }"}
{"idx": 11310, "target": 0, "func": "unsigned int vp9_sub_pixel_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp2 , W , dst , dst_stride , sse ) ;\n \\ }\n # define SUBPIX_AVG_VAR ( W , H ) unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 ) VAR ( 8 , 4 ) SUBPIX_VAR ( 8 , 4 )"}
{"idx": 11311, "target": 0, "func": "int vp8_get_quantizer ( VP8_COMP * cpi ) {\n return cpi -> common . base_qindex ;\n }"}
{"idx": 11312, "target": 0, "func": "mgs_srvconf_rec * mgs_find_sni_server ( gnutls_session_t session ) {\n int rv ;\n unsigned int sni_type ;\n size_t data_len = MAX_HOST_LEN ;\n char sni_name [ MAX_HOST_LEN ] ;\n mgs_handle_t * ctxt ;\n # if USING_2_1_RECENT vhost_cb_rec cbx ;\n # else server_rec * s ;\n mgs_srvconf_rec * tsc ;\n # endif if ( session == NULL ) return NULL ;\n _gnutls_log ( debug_log_fp , \"%s: %d\\n\" , __func__ , __LINE__ ) ;\n ctxt = gnutls_transport_get_ptr ( session ) ;\n rv = gnutls_server_name_get ( ctxt -> session , sni_name , & data_len , & sni_type , 0 ) ;\n if ( rv != 0 ) {\n return NULL ;\n }\n if ( sni_type != GNUTLS_NAME_DNS ) {\n ap_log_error ( APLOG_MARK , APLOG_CRIT , 0 , ctxt -> c -> base_server , \"GnuTLS: Unknown type '%d' for SNI: \" \"'%s'\" , sni_type , sni_name ) ;\n return NULL ;\n }\n # if USING_2_1_RECENT cbx . ctxt = ctxt ;\n cbx . sc = NULL ;\n cbx . sni_name = sni_name ;\n rv = ap_vhost_iterate_given_conn ( ctxt -> c , vhost_cb , & cbx ) ;\n if ( rv == 1 ) {\n return cbx . sc ;\n }\n # else for ( s = ap_server_conf ;\n s ;\n s = s -> next ) {\n tsc = ( mgs_srvconf_rec * ) ap_get_module_config ( s -> module_config , & gnutls_module ) ;\n if ( tsc -> enabled != GNUTLS_ENABLED_TRUE ) {\n continue ;\n }\n if ( check_server_aliases ( x , s , tsc ) ) {\n return tsc ;\n }\n # endif return NULL ;\n }\n static void create_gnutls_handle ( conn_rec * c ) {\n mgs_srvconf_rec * sc = ( mgs_srvconf_rec * ) ap_get_module_config ( c -> base_server -> module_config , & gnutls_module ) ;\n _gnutls_log ( debug_log_fp , \"%s: %d\\n\" , __func__ , __LINE__ ) ;\n mgs_handle_t * ctxt = ( mgs_handle_t * ) ap_get_module_config ( c -> conn_config , & gnutls_module ) ;\n if ( ctxt == NULL ) {\n ap_log_cerror ( APLOG_MARK , APLOG_DEBUG , 0 , c , \"%s: allocating connection memory\" , __func__ ) ;\n ctxt = apr_pcalloc ( c -> pool , sizeof ( * ctxt ) ) ;\n ap_set_module_config ( c -> conn_config , & gnutls_module , ctxt ) ;\n }\n ctxt -> enabled = GNUTLS_ENABLED_TRUE ;\n ctxt -> c = c ;\n ctxt -> sc = sc ;\n ctxt -> status = 0 ;\n ctxt -> input_rc = APR_SUCCESS ;\n ctxt -> input_bb = apr_brigade_create ( c -> pool , c -> bucket_alloc ) ;\n ctxt -> input_cbuf . length = 0 ;\n ctxt -> output_rc = APR_SUCCESS ;\n ctxt -> output_bb = apr_brigade_create ( c -> pool , c -> bucket_alloc ) ;\n ctxt -> output_blen = 0 ;\n ctxt -> output_length = 0 ;\n int err = gnutls_init ( & ctxt -> session , GNUTLS_SERVER ) ;\n if ( err != GNUTLS_E_SUCCESS ) ap_log_cerror ( APLOG_MARK , APLOG_ERR , err , c , \"gnutls_init failed!\" ) ;\n if ( session_ticket_key . data != NULL && ctxt -> sc -> tickets != 0 ) {\n err = gnutls_session_ticket_enable_server ( ctxt -> session , & session_ticket_key ) ;\n if ( err != GNUTLS_E_SUCCESS ) ap_log_cerror ( APLOG_MARK , APLOG_ERR , err , c , \"gnutls_session_ticket_enable_server failed!\" ) ;\n }\n err = gnutls_priority_set_direct ( ctxt -> session , \"NORMAL\" , NULL ) ;\n if ( err != GNUTLS_E_SUCCESS ) ap_log_cerror ( APLOG_MARK , APLOG_ERR , err , c , \"gnutls_priority_set_direct failed!\" ) ;\n gnutls_handshake_set_post_client_hello_function ( ctxt -> session , mgs_select_virtual_server_cb ) ;\n mgs_cache_session_init ( ctxt ) ;\n gnutls_transport_set_pull_function ( ctxt -> session , mgs_transport_read ) ;\n gnutls_transport_set_push_function ( ctxt -> session , mgs_transport_write ) ;\n gnutls_transport_set_ptr ( ctxt -> session , ctxt ) ;\n ctxt -> input_filter = ap_add_input_filter ( GNUTLS_INPUT_FILTER_NAME , ctxt , NULL , c ) ;\n ctxt -> output_filter = ap_add_output_filter ( GNUTLS_OUTPUT_FILTER_NAME , ctxt , NULL , c ) ;\n }\n int mgs_hook_pre_connection ( conn_rec * c , void * csd __attribute__ ( ( unused ) ) ) {\n _gnutls_log ( debug_log_fp , \"%s: %d\\n\" , __func__ , __LINE__ ) ;\n mgs_srvconf_rec * sc = ( mgs_srvconf_rec * ) ap_get_module_config ( c -> base_server -> module_config , & gnutls_module ) ;\n mgs_handle_t * ctxt = ( mgs_handle_t * ) ap_get_module_config ( c -> conn_config , & gnutls_module ) ;\n if ( ( sc && ( ! sc -> enabled || sc -> proxy_enabled == GNUTLS_ENABLED_TRUE ) ) || ( ctxt && ctxt -> enabled == GNUTLS_ENABLED_FALSE ) ) {\n ap_log_cerror ( APLOG_MARK , APLOG_DEBUG , 0 , c , \"%s declined connection\" , __func__ ) ;\n return DECLINED ;\n }\n create_gnutls_handle ( c ) ;\n return OK ;\n }\n int mgs_hook_fixups ( request_rec * r ) {\n unsigned char sbuf [ GNUTLS_MAX_SESSION_ID ] ;\n char buf [ AP_IOBUFSIZE ] ;\n const char * tmp ;\n size_t len ;\n mgs_handle_t * ctxt ;\n int rv = OK ;\n if ( r == NULL ) return DECLINED ;\n _gnutls_log ( debug_log_fp , \"%s: %d\\n\" , __func__ , __LINE__ ) ;\n apr_table_t * env = r -> subprocess_env ;\n ctxt = ap_get_module_config ( r -> connection -> conn_config , & gnutls_module ) ;\n if ( ! ctxt || ctxt -> enabled != GNUTLS_ENABLED_TRUE || ctxt -> session == NULL ) {\n ap_log_rerror ( APLOG_MARK , APLOG_DEBUG , 0 , r , \"request declined in %s\" , __func__ ) ;\n return DECLINED ;\n }\n apr_table_setn ( env , \"HTTPS\" , \"on\" ) ;\n apr_table_setn ( env , \"SSL_VERSION_LIBRARY\" , \"GnuTLS/\" LIBGNUTLS_VERSION ) ;\n apr_table_setn ( env , \"SSL_VERSION_INTERFACE\" , \"mod_gnutls/\" MOD_GNUTLS_VERSION ) ;\n apr_table_setn ( env , \"SSL_PROTOCOL\" , gnutls_protocol_get_name ( gnutls_protocol_get_version ( ctxt -> session ) ) ) ;\n apr_table_setn ( env , \"SSL_CIPHER\" , gnutls_cipher_suite_get_name ( gnutls_kx_get ( ctxt -> session ) , gnutls_cipher_get ( ctxt -> session ) , gnutls_mac_get ( ctxt -> session ) ) ) ;\n apr_table_setn ( env , \"SSL_COMPRESS_METHOD\" , gnutls_compression_get_name ( gnutls_compression_get ( ctxt -> session ) ) ) ;\n # ifdef ENABLE_SRP if ( ctxt -> sc -> srp_tpasswd_conf_file != NULL && ctxt -> sc -> srp_tpasswd_file != NULL ) {\n tmp = gnutls_srp_server_get_username ( ctxt -> session ) ;\n apr_table_setn ( env , \"SSL_SRP_USER\" , ( tmp != NULL ) ? tmp : \"\" ) ;\n }\n else {\n apr_table_unset ( env , \"SSL_SRP_USER\" ) ;\n }\n # endif if ( apr_table_get ( env , \"SSL_CLIENT_VERIFY\" ) == NULL ) apr_table_setn ( env , \"SSL_CLIENT_VERIFY\" , \"NONE\" ) ;\n unsigned int key_size = 8 * gnutls_cipher_get_key_size ( gnutls_cipher_get ( ctxt -> session ) ) ;\n tmp = apr_psprintf ( r -> pool , \"%u\" , key_size ) ;\n apr_table_setn ( env , \"SSL_CIPHER_USEKEYSIZE\" , tmp ) ;\n apr_table_setn ( env , \"SSL_CIPHER_ALGKEYSIZE\" , tmp ) ;\n apr_table_setn ( env , \"SSL_CIPHER_EXPORT\" , ( key_size <= 40 ) ? \"true\" : \"false\" ) ;\n int dhsize = gnutls_dh_get_prime_bits ( ctxt -> session ) ;\n if ( dhsize > 0 ) {\n tmp = apr_psprintf ( r -> pool , \"%d\" , dhsize ) ;\n apr_table_setn ( env , \"SSL_DH_PRIME_BITS\" , tmp ) ;\n }\n len = sizeof ( sbuf ) ;\n gnutls_session_get_id ( ctxt -> session , sbuf , & len ) ;\n tmp = mgs_session_id2sz ( sbuf , len , buf , sizeof ( buf ) ) ;\n apr_table_setn ( env , \"SSL_SESSION_ID\" , apr_pstrdup ( r -> pool , tmp ) ) ;\n if ( gnutls_certificate_type_get ( ctxt -> session ) == GNUTLS_CRT_X509 ) {\n mgs_add_common_cert_vars ( r , ctxt -> sc -> certs_x509_chain [ 0 ] , 0 , ctxt -> sc -> export_certificates_size ) ;\n }\n else if ( gnutls_certificate_type_get ( ctxt -> session ) == GNUTLS_CRT_OPENPGP ) {\n mgs_add_common_pgpcert_vars ( r , ctxt -> sc -> cert_pgp , 0 , ctxt -> sc -> export_certificates_size ) ;\n }\n return rv ;\n }\n int mgs_hook_authz ( request_rec * r ) {\n int rv ;\n mgs_handle_t * ctxt ;\n mgs_dirconf_rec * dc ;\n if ( r == NULL ) return DECLINED ;\n dc = ap_get_module_config ( r -> per_dir_config , & gnutls_module ) ;\n _gnutls_log ( debug_log_fp , \"%s: %d\\n\" , __func__ , __LINE__ ) ;\n ctxt = ap_get_module_config ( r -> connection -> conn_config , & gnutls_module ) ;\n if ( ! ctxt || ctxt -> session == NULL ) {\n return DECLINED ;\n }\n if ( dc -> client_verify_mode == GNUTLS_CERT_IGNORE ) {\n ap_log_rerror ( APLOG_MARK , APLOG_DEBUG , 0 , r , \"GnuTLS: Directory set to Ignore Client Certificate!\" ) ;\n }\n else {\n if ( ctxt -> sc -> client_verify_mode < dc -> client_verify_mode ) {\n ap_log_rerror ( APLOG_MARK , APLOG_DEBUG , 0 , r , \"GnuTLS: Attempting to rehandshake with peer. %d %d\" , ctxt -> sc -> client_verify_mode , dc -> client_verify_mode ) ;\n rv = mgs_cert_verify ( r , ctxt ) ;\n if ( rv != DECLINED && rv != HTTP_FORBIDDEN ) return rv ;\n gnutls_certificate_server_set_request ( ctxt -> session , dc -> client_verify_mode ) ;\n if ( mgs_rehandshake ( ctxt ) != 0 ) {\n return HTTP_FORBIDDEN ;\n }\n }\n else if ( ctxt -> sc -> client_verify_mode == GNUTLS_CERT_IGNORE ) {\n # if MOD_GNUTLS_DEBUG ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Peer is set to IGNORE\" ) ;\n # endif return DECLINED ;\n }\n rv = mgs_cert_verify ( r , ctxt ) ;\n if ( rv != DECLINED && ( rv != HTTP_FORBIDDEN || dc -> client_verify_mode == GNUTLS_CERT_REQUIRE || ( dc -> client_verify_mode == - 1 && ctxt -> sc -> client_verify_mode == GNUTLS_CERT_REQUIRE ) ) ) {\n return rv ;\n }\n }\n return DECLINED ;\n }\n # define MGS_SIDE ( suffix ) ( ( side == 0 ) ? \"SSL_SERVER\" suffix : \"SSL_CLIENT\" suffix ) static void mgs_add_common_cert_vars ( request_rec * r , gnutls_x509_crt_t cert , int side , size_t export_cert_size ) {\n unsigned char sbuf [ 64 ] ;\n char buf [ AP_IOBUFSIZE ] ;\n const char * tmp ;\n char * tmp2 ;\n size_t len ;\n int ret , i ;\n if ( r == NULL ) return ;\n apr_table_t * env = r -> subprocess_env ;\n _gnutls_log ( debug_log_fp , \"%s: %d\\n\" , __func__ , __LINE__ ) ;\n if ( export_cert_size > 0 ) {\n len = 0 ;\n ret = gnutls_x509_crt_export ( cert , GNUTLS_X509_FMT_PEM , NULL , & len ) ;\n if ( ret == GNUTLS_E_SHORT_MEMORY_BUFFER ) {\n if ( len >= export_cert_size ) {\n apr_table_setn ( env , MGS_SIDE ( \"_CERT\" ) , \"GNUTLS_CERTIFICATE_SIZE_LIMIT_EXCEEDED\" ) ;\n ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Failed to export too-large X.509 certificate to environment\" ) ;\n }\n else {\n char * cert_buf = apr_palloc ( r -> pool , len + 1 ) ;\n if ( cert_buf != NULL && gnutls_x509_crt_export ( cert , GNUTLS_X509_FMT_PEM , cert_buf , & len ) >= 0 ) {\n cert_buf [ len ] = 0 ;\n apr_table_setn ( env , MGS_SIDE ( \"_CERT\" ) , cert_buf ) ;\n }\n else {\n ap_log_rerror ( APLOG_MARK , APLOG_WARNING , 0 , r , \"GnuTLS: failed to export X.509 certificate\" ) ;\n }\n }\n }\n else {\n ap_log_rerror ( APLOG_MARK , APLOG_WARNING , 0 , r , \"GnuTLS: dazed and confused about X.509 certificate size\" ) ;\n }\n }\n len = sizeof ( buf ) ;\n gnutls_x509_crt_get_dn ( cert , buf , & len ) ;\n apr_table_setn ( env , MGS_SIDE ( \"_S_DN\" ) , apr_pstrmemdup ( r -> pool , buf , len ) ) ;\n len = sizeof ( buf ) ;\n gnutls_x509_crt_get_issuer_dn ( cert , buf , & len ) ;\n apr_table_setn ( env , MGS_SIDE ( \"_I_DN\" ) , apr_pstrmemdup ( r -> pool , buf , len ) ) ;\n len = sizeof ( sbuf ) ;\n gnutls_x509_crt_get_serial ( cert , sbuf , & len ) ;\n tmp = mgs_session_id2sz ( sbuf , len , buf , sizeof ( buf ) ) ;\n apr_table_setn ( env , MGS_SIDE ( \"_M_SERIAL\" ) , apr_pstrdup ( r -> pool , tmp ) ) ;\n ret = gnutls_x509_crt_get_version ( cert ) ;\n if ( ret > 0 ) apr_table_setn ( env , MGS_SIDE ( \"_M_VERSION\" ) , apr_psprintf ( r -> pool , \"%u\" , ret ) ) ;\n apr_table_setn ( env , MGS_SIDE ( \"_CERT_TYPE\" ) , \"X.509\" ) ;\n tmp = mgs_time2sz ( gnutls_x509_crt_get_expiration_time ( cert ) , buf , sizeof ( buf ) ) ;\n apr_table_setn ( env , MGS_SIDE ( \"_V_END\" ) , apr_pstrdup ( r -> pool , tmp ) ) ;\n tmp = mgs_time2sz ( gnutls_x509_crt_get_activation_time ( cert ) , buf , sizeof ( buf ) ) ;\n apr_table_setn ( env , MGS_SIDE ( \"_V_START\" ) , apr_pstrdup ( r -> pool , tmp ) ) ;\n ret = gnutls_x509_crt_get_signature_algorithm ( cert ) ;\n if ( ret >= 0 ) {\n apr_table_setn ( env , MGS_SIDE ( \"_A_SIG\" ) , gnutls_sign_algorithm_get_name ( ret ) ) ;\n }\n ret = gnutls_x509_crt_get_pk_algorithm ( cert , NULL ) ;\n if ( ret >= 0 ) {\n apr_table_setn ( env , MGS_SIDE ( \"_A_KEY\" ) , gnutls_pk_algorithm_get_name ( ret ) ) ;\n }\n for ( i = 0 ;\n ! ( ret < 0 ) ;\n i ++ ) {\n const char * san , * sanlabel ;\n len = 0 ;\n ret = gnutls_x509_crt_get_subject_alt_name ( cert , i , NULL , & len , NULL ) ;\n if ( ret == GNUTLS_E_SHORT_MEMORY_BUFFER && len > 1 ) {\n tmp2 = apr_palloc ( r -> pool , len + 1 ) ;\n ret = gnutls_x509_crt_get_subject_alt_name ( cert , i , tmp2 , & len , NULL ) ;\n tmp2 [ len ] = 0 ;\n sanlabel = apr_psprintf ( r -> pool , \"%s%u\" , MGS_SIDE ( \"_S_AN\" ) , i ) ;\n if ( ret == GNUTLS_SAN_DNSNAME ) {\n san = apr_psprintf ( r -> pool , \"DNSNAME:%s\" , tmp2 ) ;\n }\n else if ( ret == GNUTLS_SAN_RFC822NAME ) {\n san = apr_psprintf ( r -> pool , \"RFC822NAME:%s\" , tmp2 ) ;\n }\n else if ( ret == GNUTLS_SAN_URI ) {\n san = apr_psprintf ( r -> pool , \"URI:%s\" , tmp2 ) ;\n }\n else {\n san = \"UNSUPPORTED\" ;\n }\n apr_table_setn ( env , sanlabel , san ) ;\n }\n }\n }\n static void mgs_add_common_pgpcert_vars ( request_rec * r , gnutls_openpgp_crt_t cert , int side , size_t export_cert_size ) {\n unsigned char sbuf [ 64 ] ;\n char buf [ AP_IOBUFSIZE ] ;\n const char * tmp ;\n size_t len ;\n int ret ;\n if ( r == NULL ) return ;\n _gnutls_log ( debug_log_fp , \"%s: %d\\n\" , __func__ , __LINE__ ) ;\n apr_table_t * env = r -> subprocess_env ;\n if ( export_cert_size > 0 ) {\n len = 0 ;\n ret = gnutls_openpgp_crt_export ( cert , GNUTLS_OPENPGP_FMT_BASE64 , NULL , & len ) ;\n if ( ret == GNUTLS_E_SHORT_MEMORY_BUFFER ) {\n if ( len >= export_cert_size ) {\n apr_table_setn ( env , MGS_SIDE ( \"_CERT\" ) , \"GNUTLS_CERTIFICATE_SIZE_LIMIT_EXCEEDED\" ) ;\n ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Failed to export too-large OpenPGP certificate to environment\" ) ;\n }\n else {\n char * cert_buf = apr_palloc ( r -> pool , len + 1 ) ;\n if ( cert_buf != NULL && gnutls_openpgp_crt_export ( cert , GNUTLS_OPENPGP_FMT_BASE64 , cert_buf , & len ) >= 0 ) {\n cert_buf [ len ] = 0 ;\n apr_table_setn ( env , MGS_SIDE ( \"_CERT\" ) , cert_buf ) ;\n }\n else {\n ap_log_rerror ( APLOG_MARK , APLOG_WARNING , 0 , r , \"GnuTLS: failed to export OpenPGP certificate\" ) ;\n }\n }\n }\n else {\n ap_log_rerror ( APLOG_MARK , APLOG_WARNING , 0 , r , \"GnuTLS: dazed and confused about OpenPGP certificate size\" ) ;\n }\n }\n len = sizeof ( buf ) ;\n gnutls_openpgp_crt_get_name ( cert , 0 , buf , & len ) ;\n apr_table_setn ( env , MGS_SIDE ( \"_NAME\" ) , apr_pstrmemdup ( r -> pool , buf , len ) ) ;\n len = sizeof ( sbuf ) ;\n gnutls_openpgp_crt_get_fingerprint ( cert , sbuf , & len ) ;\n tmp = mgs_session_id2sz ( sbuf , len , buf , sizeof ( buf ) ) ;\n apr_table_setn ( env , MGS_SIDE ( \"_FINGERPRINT\" ) , apr_pstrdup ( r -> pool , tmp ) ) ;\n ret = gnutls_openpgp_crt_get_version ( cert ) ;\n if ( ret > 0 ) apr_table_setn ( env , MGS_SIDE ( \"_M_VERSION\" ) , apr_psprintf ( r -> pool , \"%u\" , ret ) ) ;\n apr_table_setn ( env , MGS_SIDE ( \"_CERT_TYPE\" ) , \"OPENPGP\" ) ;\n tmp = mgs_time2sz ( gnutls_openpgp_crt_get_expiration_time ( cert ) , buf , sizeof ( buf ) ) ;\n apr_table_setn ( env , MGS_SIDE ( \"_V_END\" ) , apr_pstrdup ( r -> pool , tmp ) ) ;\n tmp = mgs_time2sz ( gnutls_openpgp_crt_get_creation_time ( cert ) , buf , sizeof ( buf ) ) ;\n apr_table_setn ( env , MGS_SIDE ( \"_V_START\" ) , apr_pstrdup ( r -> pool , tmp ) ) ;\n ret = gnutls_openpgp_crt_get_pk_algorithm ( cert , NULL ) ;\n if ( ret >= 0 ) {\n apr_table_setn ( env , MGS_SIDE ( \"_A_KEY\" ) , gnutls_pk_algorithm_get_name ( ret ) ) ;\n }\n }\n static int mgs_cert_verify ( request_rec * r , mgs_handle_t * ctxt ) {\n const gnutls_datum_t * cert_list ;\n unsigned int cert_list_size , status ;\n int rv = GNUTLS_E_NO_CERTIFICATE_FOUND , ret ;\n unsigned int ch_size = 0 ;\n union {\n gnutls_x509_crt_t x509 [ MAX_CHAIN_SIZE ] ;\n gnutls_openpgp_crt_t pgp ;\n }\n cert ;\n apr_time_t expiration_time , cur_time ;\n if ( r == NULL || ctxt == NULL || ctxt -> session == NULL ) return HTTP_FORBIDDEN ;\n _gnutls_log ( debug_log_fp , \"%s: %d\\n\" , __func__ , __LINE__ ) ;\n cert_list = gnutls_certificate_get_peers ( ctxt -> session , & cert_list_size ) ;\n if ( cert_list == NULL || cert_list_size == 0 ) {\n if ( ctxt -> sc -> client_verify_mode == GNUTLS_CERT_REQUEST ) return OK ;\n ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Failed to Verify Peer: \" \"Client did not submit a certificate\" ) ;\n return HTTP_FORBIDDEN ;\n }\n if ( gnutls_certificate_type_get ( ctxt -> session ) == GNUTLS_CRT_X509 ) {\n ap_log_rerror ( APLOG_MARK , APLOG_DEBUG , 0 , r , \"GnuTLS: A Chain of %d certificate(s) was provided for validation\" , cert_list_size ) ;\n for ( ch_size = 0 ;\n ch_size < cert_list_size ;\n ch_size ++ ) {\n gnutls_x509_crt_init ( & cert . x509 [ ch_size ] ) ;\n rv = gnutls_x509_crt_import ( cert . x509 [ ch_size ] , & cert_list [ ch_size ] , GNUTLS_X509_FMT_DER ) ;\n if ( rv != GNUTLS_E_SUCCESS ) {\n if ( ch_size < 1 ) {\n ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Failed to Verify Peer: \" \"Failed to import peer certificates.\" ) ;\n ret = HTTP_FORBIDDEN ;\n goto exit ;\n }\n ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Failed to import some peer certificates. Using %d certificates\" , ch_size ) ;\n rv = GNUTLS_E_SUCCESS ;\n break ;\n }\n }\n }\n else if ( gnutls_certificate_type_get ( ctxt -> session ) == GNUTLS_CRT_OPENPGP ) {\n if ( cert_list_size > 1 ) {\n ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Failed to Verify Peer: \" \"Chained Client Certificates are not supported.\" ) ;\n return HTTP_FORBIDDEN ;\n }\n gnutls_openpgp_crt_init ( & cert . pgp ) ;\n rv = gnutls_openpgp_crt_import ( cert . pgp , & cert_list [ 0 ] , GNUTLS_OPENPGP_FMT_RAW ) ;\n }\n else return HTTP_FORBIDDEN ;\n if ( rv < 0 ) {\n ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Failed to Verify Peer: \" \"Failed to import peer certificates.\" ) ;\n ret = HTTP_FORBIDDEN ;\n goto exit ;\n }\n if ( gnutls_certificate_type_get ( ctxt -> session ) == GNUTLS_CRT_X509 ) {\n apr_time_ansi_put ( & expiration_time , gnutls_x509_crt_get_expiration_time ( cert . x509 [ 0 ] ) ) ;\n ap_log_rerror ( APLOG_MARK , APLOG_DEBUG , 0 , r , \"GnuTLS: Verifying list of %d certificate(s) via method '%s'\" , ch_size , mgs_readable_cvm ( ctxt -> sc -> client_verify_method ) ) ;\n switch ( ctxt -> sc -> client_verify_method ) {\n case mgs_cvm_cartel : rv = gnutls_x509_crt_list_verify ( cert . x509 , ch_size , ctxt -> sc -> ca_list , ctxt -> sc -> ca_list_size , NULL , 0 , 0 , & status ) ;\n break ;\n # ifdef ENABLE_MSVA case mgs_cvm_msva : {\n struct msv_response * resp = NULL ;\n struct msv_query q = {\n . context = \"https\" , . peertype = \"client\" , . pkctype = \"x509pem\" }\n ;\n msv_ctxt_t ctx = msv_ctxt_init ( NULL ) ;\n char cert_pem_buf [ 10 * 1024 ] ;\n size_t len = sizeof ( cert_pem_buf ) ;\n rv = 0 ;\n if ( gnutls_x509_crt_export ( cert . x509 [ 0 ] , GNUTLS_X509_FMT_PEM , cert_pem_buf , & len ) >= 0 ) {\n q . peername = mgs_x509_construct_uid ( r , cert . x509 [ 0 ] ) ;\n q . pkcdata = cert_pem_buf ;\n rv = msv_query_agent ( ctx , q , & resp ) ;\n if ( rv == LIBMSV_ERROR_SUCCESS ) {\n status = 0 ;\n }\n else if ( rv == LIBMSV_ERROR_INVALID ) {\n ap_log_rerror ( APLOG_MARK , APLOG_DEBUG , 0 , r , \"GnuTLS: Monkeysphere validation failed: (message: %s)\" , resp -> message ) ;\n status = GNUTLS_CERT_INVALID ;\n }\n else {\n ap_log_rerror ( APLOG_MARK , APLOG_DEBUG , 0 , r , \"GnuTLS: Error communicating with the Monkeysphere Validation Agent: (%d) %s\" , rv , msv_strerror ( ctx , rv ) ) ;\n status = GNUTLS_CERT_INVALID ;\n rv = - 1 ;\n }\n }\n else {\n ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Could not convert the client certificate to PEM format\" ) ;\n status = GNUTLS_CERT_INVALID ;\n rv = GNUTLS_E_ASN1_ELEMENT_NOT_FOUND ;\n }\n msv_response_destroy ( resp ) ;\n msv_ctxt_destroy ( ctx ) ;\n }\n break ;\n # endif default : ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Failed to Verify X.509 Peer: method '%s' is not supported\" , mgs_readable_cvm ( ctxt -> sc -> client_verify_method ) ) ;\n }\n }\n else {\n apr_time_ansi_put ( & expiration_time , gnutls_openpgp_crt_get_expiration_time ( cert . pgp ) ) ;\n switch ( ctxt -> sc -> client_verify_method ) {\n case mgs_cvm_cartel : rv = gnutls_openpgp_crt_verify_ring ( cert . pgp , ctxt -> sc -> pgp_list , 0 , & status ) ;\n break ;\n # ifdef ENABLE_MSVA case mgs_cvm_msva : ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: OpenPGP verification via MSVA is not yet implemented\" ) ;\n rv = GNUTLS_E_UNIMPLEMENTED_FEATURE ;\n break ;\n # endif default : ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Failed to Verify OpenPGP Peer: method '%s' is not supported\" , mgs_readable_cvm ( ctxt -> sc -> client_verify_method ) ) ;\n }\n }\n if ( rv < 0 ) {\n ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Failed to Verify Peer certificate: (%d) %s\" , rv , gnutls_strerror ( rv ) ) ;\n if ( rv == GNUTLS_E_NO_CERTIFICATE_FOUND ) ap_log_rerror ( APLOG_MARK , APLOG_EMERG , 0 , r , \"GnuTLS: No certificate was found for verification. Did you set the GnuTLSX509CAFile or GnuTLSPGPKeyringFile directives?\" ) ;\n ret = HTTP_FORBIDDEN ;\n goto exit ;\n }\n cur_time = apr_time_now ( ) ;\n if ( status & GNUTLS_CERT_SIGNER_NOT_FOUND ) {\n ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Could not find Signer for Peer Certificate\" ) ;\n }\n if ( status & GNUTLS_CERT_SIGNER_NOT_CA ) {\n ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Peer's Certificate signer is not a CA\" ) ;\n }\n if ( status & GNUTLS_CERT_INSECURE_ALGORITHM ) {\n ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Peer's Certificate is using insecure algorithms\" ) ;\n }\n if ( status & GNUTLS_CERT_EXPIRED || status & GNUTLS_CERT_NOT_ACTIVATED ) {\n ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Peer's Certificate signer is expired or not yet activated\" ) ;\n }\n if ( status & GNUTLS_CERT_INVALID ) {\n ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Peer Certificate is invalid.\" ) ;\n }\n else if ( status & GNUTLS_CERT_REVOKED ) {\n ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Peer Certificate is revoked.\" ) ;\n }\n if ( gnutls_certificate_type_get ( ctxt -> session ) == GNUTLS_CRT_X509 ) mgs_add_common_cert_vars ( r , cert . x509 [ 0 ] , 1 , ctxt -> sc -> export_certificates_size ) ;\n else if ( gnutls_certificate_type_get ( ctxt -> session ) == GNUTLS_CRT_OPENPGP ) mgs_add_common_pgpcert_vars ( r , cert . pgp , 1 , ctxt -> sc -> export_certificates_size ) ;\n {\n unsigned long remain = ( apr_time_sec ( expiration_time ) - apr_time_sec ( cur_time ) ) / 86400 ;\n apr_table_setn ( r -> subprocess_env , \"SSL_CLIENT_V_REMAIN\" , apr_psprintf ( r -> pool , \"%lu\" , remain ) ) ;\n }\n if ( status == 0 ) {\n apr_table_setn ( r -> subprocess_env , \"SSL_CLIENT_VERIFY\" , \"SUCCESS\" ) ;\n ret = OK ;\n }\n else {\n apr_table_setn ( r -> subprocess_env , \"SSL_CLIENT_VERIFY\" , \"FAILED\" ) ;\n if ( ctxt -> sc -> client_verify_mode == GNUTLS_CERT_REQUEST ) ret = OK ;\n else ret = HTTP_FORBIDDEN ;\n }\n exit : if ( gnutls_certificate_type_get ( ctxt -> session ) == GNUTLS_CRT_X509 ) {\n unsigned int i ;\n for ( i = 0 ;\n i < ch_size ;\n i ++ ) {\n gnutls_x509_crt_deinit ( cert . x509 [ i ] ) ;\n }\n }\n else if ( gnutls_certificate_type_get ( ctxt -> session ) == GNUTLS_CRT_OPENPGP ) gnutls_openpgp_crt_deinit ( cert . pgp ) ;\n return ret ;\n }\n # ifdef ENABLE_MSVA static const char * mgs_x509_leaf_oid_from_dn ( apr_pool_t * pool , const char * oid , gnutls_x509_crt_t cert ) {\n int rv = GNUTLS_E_SUCCESS , i ;\n size_t sz = 0 , lastsz = 0 ;\n char * data = NULL ;\n i = - 1 ;\n while ( rv != GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE ) {\n i ++ ;\n lastsz = sz ;\n sz = 0 ;\n rv = gnutls_x509_crt_get_dn_by_oid ( cert , oid , i , 0 , NULL , & sz ) ;\n }\n if ( i > 0 ) {\n data = apr_palloc ( pool , lastsz ) ;\n sz = lastsz ;\n rv = gnutls_x509_crt_get_dn_by_oid ( cert , oid , i - 1 , 0 , data , & sz ) ;\n if ( rv == GNUTLS_E_SUCCESS ) return data ;\n }\n return NULL ;\n }\n static const char * mgs_x509_first_type_from_san ( apr_pool_t * pool , gnutls_x509_subject_alt_name_t target , gnutls_x509_crt_t cert ) {\n int rv = GNUTLS_E_SUCCESS ;\n size_t sz ;\n char * data = NULL ;\n unsigned int i ;\n gnutls_x509_subject_alt_name_t thistype ;\n i = 0 ;\n while ( rv != GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE ) {\n sz = 0 ;\n rv = gnutls_x509_crt_get_subject_alt_name2 ( cert , i , NULL , & sz , & thistype , NULL ) ;\n if ( rv == GNUTLS_E_SHORT_MEMORY_BUFFER && thistype == target ) {\n data = apr_palloc ( pool , sz ) ;\n rv = gnutls_x509_crt_get_subject_alt_name2 ( cert , i , data , & sz , & thistype , NULL ) ;\n if ( rv >= 0 && ( thistype == target ) ) return data ;\n }\n i ++ ;\n }\n return NULL ;\n }\n static const char * mgs_x509_construct_uid ( request_rec * r , gnutls_x509_crt_t cert ) {\n apr_pool_t * pool = r -> pool ;\n const char * name = NULL , * comment = NULL , * email = NULL ;\n const char * ret = NULL ;\n apr_pool_t * sp = NULL ;\n if ( APR_SUCCESS != apr_pool_create ( & sp , pool ) ) return NULL ;\n name = mgs_x509_leaf_oid_from_dn ( sp , GNUTLS_OID_X520_COMMON_NAME , cert ) ;\n comment = mgs_x509_leaf_oid_from_dn ( sp , GNUTLS_OID_X520_PSEUDONYM , cert ) ;\n email = mgs_x509_first_type_from_san ( sp , GNUTLS_SAN_RFC822NAME , cert ) ;\n if ( email == NULL ) email = mgs_x509_leaf_oid_from_dn ( sp , GNUTLS_OID_PKCS9_EMAIL , cert ) ;\n if ( name == NULL && email == NULL ) {\n ap_log_rerror ( APLOG_MARK , APLOG_INFO , 0 , r , \"GnuTLS: Need either a name or an e-mail address to get a User ID from an X.509 certificate.\" ) ;\n goto end ;\n }\n if ( name ) {\n if ( comment ) {\n if ( email ) {\n ret = apr_psprintf ( pool , \"%s (%s) <%s>\" , name , comment , email ) ;\n }\n else {\n ret = apr_psprintf ( pool , \"%s (%s)\" , name , comment ) ;\n }\n }\n else {\n if ( email ) {\n ret = apr_psprintf ( pool , \"%s <%s>\" , name , email ) ;\n }\n else {\n ret = apr_pstrdup ( pool , name ) ;\n }\n }\n }\n else {\n if ( comment ) {\n ret = apr_psprintf ( pool , \"(%s) <%s>\" , comment , email ) ;\n }\n else {\n ret = apr_psprintf ( pool , \"<%s>\" , email ) ;\n }\n }\n end : apr_pool_destroy ( sp ) ;\n return ret ;\n }\n # endif static int mgs_status_hook ( request_rec * r , int flags __attribute__ ( ( unused ) ) ) {\n mgs_srvconf_rec * sc ;\n if ( r == NULL ) return OK ;\n sc = ( mgs_srvconf_rec * ) ap_get_module_config ( r -> server -> module_config , & gnutls_module ) ;\n _gnutls_log ( debug_log_fp , \"%s: %d\\n\" , __func__ , __LINE__ ) ;\n ap_rputs ( \"<hr>\\n\" , r ) ;\n ap_rputs ( \"<h2>GnuTLS Information:</h2>\\n<dl>\\n\" , r ) ;\n ap_rprintf ( r , \"<dt>GnuTLS version:</dt><dd>%s</dd>\\n\" , gnutls_check_version ( NULL ) ) ;\n ap_rputs ( \"<dt>Built against:</dt><dd>\" GNUTLS_VERSION \"</dd>\\n\" , r ) ;\n ap_rprintf ( r , \"<dt>using TLS:</dt><dd>%s</dd>\\n\" , ( sc -> enabled == GNUTLS_ENABLED_FALSE ? \"no\" : \"yes\" ) ) ;\n if ( sc -> enabled != GNUTLS_ENABLED_FALSE ) {\n mgs_handle_t * ctxt ;\n ctxt = ap_get_module_config ( r -> connection -> conn_config , & gnutls_module ) ;\n if ( ctxt && ctxt -> session != NULL ) {\n # if GNUTLS_VERSION_MAJOR < 3 ap_rprintf ( r , \"<dt>This TLS Session:</dt><dd>%s</dd>\\n\" , gnutls_cipher_suite_get_name ( gnutls_kx_get ( ctxt -> session ) , gnutls_cipher_get ( ctxt -> session ) , gnutls_mac_get ( ctxt -> session ) ) ) ;\n # else char * z = NULL ;\n z = gnutls_session_get_desc ( ctxt -> session ) ;\n if ( z ) {\n ap_rprintf ( r , \"<dt>This TLS Session:</dt><dd>%s</dd>\\n\" , z ) ;\n gnutls_free ( z ) ;\n }\n # endif }\n }\n ap_rputs ( \"</dl>\\n\" , r ) ;\n return OK ;\n }"}
{"idx": 11313, "target": 0, "func": "static __always_inline __u32 __swab32p ( const __u32 * p ) {\n # ifdef __arch_swab32p return __arch_swab32p ( p ) ;\n # else return __swab32 ( * p ) ;\n # endif }"}
{"idx": 11314, "target": 0, "func": "static VALUE ossl_x509name_to_s_old ( VALUE self ) {\n X509_NAME * name ;\n char * buf ;\n VALUE str ;\n GetX509Name ( self , name ) ;\n buf = X509_NAME_oneline ( name , NULL , 0 ) ;\n str = rb_str_new2 ( buf ) ;\n OPENSSL_free ( buf ) ;\n return str ;\n }"}
{"idx": 11315, "target": 0, "func": "static int SpoolssEnumJobs_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ;\n guint32 level ;\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , NULL , NULL , FALSE , FALSE ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_enumjobs_firstjob , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_enumjobs_numjobs , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_level , & level ) ;\n if ( ! pinfo -> fd -> flags . visited ) {\n dcv -> se_data = GUINT_TO_POINTER ( ( int ) level ) ;\n }\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", level %d\" , level ) ;\n offset = dissect_spoolss_buffer ( tvb , offset , pinfo , tree , di , drep , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_offered , NULL ) ;\n return offset ;\n }"}
{"idx": 11316, "target": 0, "func": "static const char * passphrase_callback ( struct archive * a , void * _client_data ) {\n struct cpio * cpio = ( struct cpio * ) _client_data ;\n ( void ) a ;\n if ( cpio -> ppbuff == NULL ) {\n cpio -> ppbuff = malloc ( PPBUFF_SIZE ) ;\n if ( cpio -> ppbuff == NULL ) lafe_errc ( 1 , errno , \"Out of memory\" ) ;\n }\n return lafe_readpassphrase ( \"Enter passphrase:\" , cpio -> ppbuff , PPBUFF_SIZE ) ;\n }"}
{"idx": 11317, "target": 0, "func": "static Datum ExecEvalCaseTestExpr ( ExprState * exprstate , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n if ( isDone ) * isDone = ExprSingleResult ;\n * isNull = econtext -> caseValue_isNull ;\n return econtext -> caseValue_datum ;\n }"}
{"idx": 11318, "target": 1, "func": "static int SRP_user_pwd_set_sv_BN ( SRP_user_pwd * vinfo , BIGNUM * s , BIGNUM * v ) {\n vinfo -> v = v ;\n vinfo -> s = s ;\n return ( vinfo -> s != NULL && vinfo -> v != NULL ) ;\n }"}
{"idx": 11319, "target": 0, "func": "static int idreg_init1 ( SysBusDevice * dev ) {\n IDRegState * s = FROM_SYSBUS ( IDRegState , dev ) ;\n memory_region_init_ram ( & s -> mem , OBJECT ( s ) , \"sun4m.idreg\" , sizeof ( idreg_data ) ) ;\n vmstate_register_ram_global ( & s -> mem ) ;\n memory_region_set_readonly ( & s -> mem , true ) ;\n sysbus_init_mmio ( dev , & s -> mem ) ;\n return 0 ;\n }"}
{"idx": 11320, "target": 0, "func": "static void nlm_print_msgres_reply ( packet_info * pinfo , proto_tree * tree , tvbuff_t * tvb ) {\n nlm_msg_res_matched_data * md ;\n md = ( nlm_msg_res_matched_data * ) g_hash_table_lookup ( nlm_msg_res_matched , GINT_TO_POINTER ( pinfo -> fd -> num ) ) ;\n if ( md ) {\n nstime_t ns ;\n proto_tree_add_uint ( tree , hf_nlm_request_in , tvb , 0 , 0 , md -> req_frame ) ;\n nstime_delta ( & ns , & pinfo -> fd -> abs_ts , & md -> ns ) ;\n proto_tree_add_time ( tree , hf_nlm_time , tvb , 0 , 0 , & ns ) ;\n }\n }"}
{"idx": 11321, "target": 1, "func": "char * ksba_oid_to_str ( const char * buffer , size_t length ) {\n const unsigned char * buf = buffer ;\n char * string , * p ;\n int n = 0 ;\n unsigned long val , valmask ;\n valmask = ( unsigned long ) 0xfe << ( 8 * ( sizeof ( valmask ) - 1 ) ) ;\n string = p = xtrymalloc ( length * ( 1 + 3 ) + 2 + 1 ) ;\n if ( ! string ) return NULL ;\n if ( ! length ) {\n * p = 0 ;\n return string ;\n }\n if ( buf [ 0 ] < 40 ) p += sprintf ( p , \"0.%d\" , buf [ n ] ) ;\n else if ( buf [ 0 ] < 80 ) p += sprintf ( p , \"1.%d\" , buf [ n ] - 40 ) ;\n else {\n val = buf [ n ] & 0x7f ;\n while ( ( buf [ n ] & 0x80 ) && ++ n < length ) {\n if ( ( val & valmask ) ) goto badoid ;\n val <<= 7 ;\n val |= buf [ n ] & 0x7f ;\n }\n val -= 80 ;\n sprintf ( p , \"2.%lu\" , val ) ;\n p += strlen ( p ) ;\n }\n for ( n ++ ;\n n < length ;\n n ++ ) {\n val = buf [ n ] & 0x7f ;\n while ( ( buf [ n ] & 0x80 ) && ++ n < length ) {\n if ( ( val & valmask ) ) goto badoid ;\n val <<= 7 ;\n val |= buf [ n ] & 0x7f ;\n }\n sprintf ( p , \".%lu\" , val ) ;\n p += strlen ( p ) ;\n }\n * p = 0 ;\n return string ;\n badoid : xfree ( string ) ;\n return xtrystrdup ( \"1.3.6.1.4.1.11591.2.12242973\" ) ;\n }"}
{"idx": 11322, "target": 0, "func": "static void cmd_window_ddown ( void ) {\n MAIN_WINDOW_REC * rec ;\n rec = mainwindows_find_lower ( active_mainwin ) ;\n if ( rec == NULL ) rec = mainwindows_find_lower ( NULL ) ;\n if ( rec != NULL ) window_set_active ( rec -> active ) ;\n }"}
{"idx": 11323, "target": 1, "func": "static void tcmpt_destroy ( jpc_enc_tcmpt_t * tcmpt ) {\n jpc_enc_rlvl_t * rlvl ;\n uint_fast16_t rlvlno ;\n if ( tcmpt -> rlvls ) {\n for ( rlvlno = 0 , rlvl = tcmpt -> rlvls ;\n rlvlno < tcmpt -> numrlvls ;\n ++ rlvlno , ++ rlvl ) {\n rlvl_destroy ( rlvl ) ;\n }\n jas_free ( tcmpt -> rlvls ) ;\n }\n if ( tcmpt -> data ) {\n jas_seq2d_destroy ( tcmpt -> data ) ;\n }\n if ( tcmpt -> tsfb ) {\n jpc_tsfb_destroy ( tcmpt -> tsfb ) ;\n }\n }"}
{"idx": 11324, "target": 0, "func": "static int dissect_h245_EncryptionCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h245_EncryptionCapability , EncryptionCapability_sequence_of , 1 , 256 , FALSE ) ;\n return offset ;\n }"}
{"idx": 11325, "target": 0, "func": "static int dissect_h225_GatekeeperReject ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_GatekeeperReject , GatekeeperReject_sequence ) ;\n return offset ;\n }"}
{"idx": 11326, "target": 1, "func": "TEST_F ( ScoredHistoryMatchTest , ScoringTLD ) {\n base : : Time now = base : : Time : : NowFromSystemTime ( ) ;\n std : : string url_string ( \"http://fedcba.com/\" ) ;\n const GURL url ( url_string ) ;\n history : : URLRow row ( MakeURLRow ( url_string . c_str ( ) , \"\" , 8 , 3 , 1 ) ) ;\n RowWordStarts word_starts ;\n PopulateWordStarts ( row , & word_starts ) ;\n WordStarts two_words_no_offsets ( 2 , 0u ) ;\n VisitInfoVector visits = CreateVisitInfoVector ( 8 , 3 , now ) ;\n ScoredHistoryMatch scored ( row , visits , std : : string ( ) , ASCIIToUTF16 ( \"fed com\" ) , Make2Terms ( \"fed\" , \"com\" ) , two_words_no_offsets , word_starts , false , nullptr , now ) ;\n EXPECT_EQ ( 0 , scored . raw_score ) ;\n base : : AutoReset < bool > reset ( & ScoredHistoryMatch : : allow_tld_matches_ , true ) ;\n ScoredHistoryMatch scored_with_tld ( row , visits , std : : string ( ) , ASCIIToUTF16 ( \"fed com\" ) , Make2Terms ( \"fed\" , \"com\" ) , two_words_no_offsets , word_starts , false , nullptr , now ) ;\n EXPECT_GT ( scored_with_tld . raw_score , 0 ) ;\n }"}
{"idx": 11327, "target": 0, "func": "static OFCondition parseDummy ( unsigned char * buf , unsigned long * itemLength , unsigned long availData ) {\n if ( availData < 4 ) return makeLengthError ( \"dummy item\" , availData , 4 ) ;\n unsigned short userLength ;\n buf ++ ;\n buf ++ ;\n EXTRACT_SHORT_BIG ( buf , userLength ) ;\n buf += 2 ;\n * itemLength = userLength + 4 ;\n if ( availData - 4 < userLength ) return makeLengthError ( \"dummy item\" , availData , 0 , userLength ) ;\n return EC_Normal ;\n }"}
{"idx": 11328, "target": 1, "func": "static void _LMBCSFromUnicode ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n ulmbcs_byte_t lastConverterIndex = 0 ;\n UChar uniChar ;\n ulmbcs_byte_t LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n ulmbcs_byte_t * pLMBCS ;\n int32_t bytes_written ;\n UBool groups_tried [ ULMBCS_GRP_LAST + 1 ] ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n int sourceIndex = 0 ;\n ulmbcs_byte_t OldConverterIndex = 0 ;\n while ( args -> source < args -> sourceLimit && ! U_FAILURE ( * err ) ) {\n OldConverterIndex = extraInfo -> localeConverterIndex ;\n if ( args -> target >= args -> targetLimit ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n uniChar = * ( args -> source ) ;\n bytes_written = 0 ;\n pLMBCS = LMBCS ;\n if ( ( uniChar >= 0x80 ) && ( uniChar <= 0xff ) && ( uniChar != 0xB1 ) && ( uniChar != 0xD7 ) && ( uniChar != 0xF7 ) && ( uniChar != 0xB0 ) && ( uniChar != 0xB4 ) && ( uniChar != 0xB6 ) && ( uniChar != 0xA7 ) && ( uniChar != 0xA8 ) ) {\n extraInfo -> localeConverterIndex = ULMBCS_GRP_L1 ;\n }\n if ( ( ( uniChar > ULMBCS_C0END ) && ( uniChar < ULMBCS_C1START ) ) || uniChar == 0 || uniChar == ULMBCS_HT || uniChar == ULMBCS_CR || uniChar == ULMBCS_LF || uniChar == ULMBCS_123SYSTEMRANGE ) {\n * pLMBCS ++ = ( ulmbcs_byte_t ) uniChar ;\n bytes_written = 1 ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t group = FindLMBCSUniRange ( uniChar ) ;\n if ( group == ULMBCS_GRP_UNICODE ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group == ULMBCS_GRP_CTRL ) {\n if ( uniChar <= ULMBCS_C0END ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( ULMBCS_CTRLOFFSET + uniChar ) ;\n }\n else if ( uniChar >= ULMBCS_C1START && uniChar <= ULMBCS_C1START + ULMBCS_CTRLOFFSET ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( uniChar & 0x00FF ) ;\n }\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group < ULMBCS_GRP_UNICODE ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , group , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n uprv_memset ( groups_tried , 0 , sizeof ( groups_tried ) ) ;\n if ( ( extraInfo -> OptGroup != 1 ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> OptGroup ) ) ) {\n if ( extraInfo -> localeConverterIndex < ULMBCS_DOUBLEOPTGROUP_START ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_L1 , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n else {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && ( extraInfo -> localeConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> localeConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written && ( lastConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , lastConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , lastConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t grp_start ;\n ulmbcs_byte_t grp_end ;\n ulmbcs_byte_t grp_ix ;\n grp_start = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_DOUBLEOPTGROUP_START : ULMBCS_GRP_L1 ) ;\n grp_end = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_GRP_LAST : ULMBCS_GRP_TH ) ;\n if ( group == ULMBCS_AMBIGUOUS_ALL ) {\n grp_start = ULMBCS_GRP_L1 ;\n grp_end = ULMBCS_GRP_LAST ;\n }\n for ( grp_ix = grp_start ;\n grp_ix <= grp_end && ! bytes_written ;\n grp_ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ grp_ix ] && ! groups_tried [ grp_ix ] ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , grp_ix , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && grp_start == ULMBCS_GRP_L1 ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n }\n }\n args -> source ++ ;\n pLMBCS = LMBCS ;\n while ( args -> target < args -> targetLimit && bytes_written -- ) {\n * ( args -> target ) ++ = * pLMBCS ++ ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = sourceIndex ;\n }\n }\n sourceIndex ++ ;\n if ( bytes_written > 0 ) {\n uint8_t * pErrorBuffer = args -> converter -> charErrorBuffer ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n args -> converter -> charErrorBufferLength = ( int8_t ) bytes_written ;\n while ( bytes_written -- ) {\n * pErrorBuffer ++ = * pLMBCS ++ ;\n }\n }\n extraInfo -> localeConverterIndex = OldConverterIndex ;\n }\n }"}
{"idx": 11329, "target": 0, "func": "static const char * cgfs_canonical_path ( void * hdata ) {\n struct cgfs_data * d = hdata ;\n struct cgroup_process_info * info_ptr ;\n char * path = NULL ;\n if ( ! d ) return NULL ;\n for ( info_ptr = d -> info ;\n info_ptr ;\n info_ptr = info_ptr -> next ) {\n if ( ! path ) path = info_ptr -> cgroup_path ;\n else if ( strcmp ( path , info_ptr -> cgroup_path ) != 0 ) {\n ERROR ( \"not all paths match %s, %s has path %s\" , path , info_ptr -> hierarchy -> subsystems [ 0 ] , info_ptr -> cgroup_path ) ;\n return NULL ;\n }\n }\n return path ;\n }"}
{"idx": 11330, "target": 0, "func": "static void decode_mclms ( WmallDecodeCtx * s ) {\n s -> mclms_order = ( get_bits ( & s -> gb , 4 ) + 1 ) * 2 ;\n s -> mclms_scaling = get_bits ( & s -> gb , 4 ) ;\n if ( get_bits1 ( & s -> gb ) ) {\n int i , send_coef_bits ;\n int cbits = av_log2 ( s -> mclms_scaling + 1 ) ;\n if ( 1 << cbits < s -> mclms_scaling + 1 ) cbits ++ ;\n send_coef_bits = ( cbits ? get_bits ( & s -> gb , cbits ) : 0 ) + 2 ;\n for ( i = 0 ;\n i < s -> mclms_order * s -> num_channels * s -> num_channels ;\n i ++ ) s -> mclms_coeffs [ i ] = get_bits ( & s -> gb , send_coef_bits ) ;\n for ( i = 0 ;\n i < s -> num_channels ;\n i ++ ) {\n int c ;\n for ( c = 0 ;\n c < i ;\n c ++ ) s -> mclms_coeffs_cur [ i * s -> num_channels + c ] = get_bits ( & s -> gb , send_coef_bits ) ;\n }\n }\n }"}
{"idx": 11331, "target": 1, "func": "static int cinepak_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int ret = 0 , buf_size = avpkt -> size ;\n CinepakContext * s = avctx -> priv_data ;\n s -> data = buf ;\n s -> size = buf_size ;\n s -> frame . reference = 1 ;\n s -> frame . buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE ;\n if ( ( ret = avctx -> reget_buffer ( avctx , & s -> frame ) ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( s -> palette_video ) {\n const uint8_t * pal = av_packet_get_side_data ( avpkt , AV_PKT_DATA_PALETTE , NULL ) ;\n if ( pal ) {\n s -> frame . palette_has_changed = 1 ;\n memcpy ( s -> pal , pal , AVPALETTE_SIZE ) ;\n }\n }\n cinepak_decode ( s ) ;\n if ( s -> palette_video ) memcpy ( s -> frame . data [ 1 ] , s -> pal , AVPALETTE_SIZE ) ;\n * got_frame = 1 ;\n * ( AVFrame * ) data = s -> frame ;\n return buf_size ;\n }"}
{"idx": 11332, "target": 0, "func": "Expr * make_orclause ( List * orclauses ) {\n BoolExpr * expr = makeNode ( BoolExpr ) ;\n expr -> boolop = OR_EXPR ;\n expr -> args = orclauses ;\n expr -> location = - 1 ;\n return ( Expr * ) expr ;\n }"}
{"idx": 11333, "target": 0, "func": "proto_item * parseUInt32 ( proto_tree * tree , tvbuff_t * tvb , packet_info * pinfo _U_ , gint * pOffset , int hfIndex ) {\n proto_item * item = proto_tree_add_item ( tree , hfIndex , tvb , * pOffset , 4 , ENC_LITTLE_ENDIAN ) ;\n * pOffset += 4 ;\n return item ;\n }"}
{"idx": 11334, "target": 0, "func": "TEST_F ( NativeBackendLibsecretTest , PSLMatchingDisabledForNonHTMLForms ) {\n CheckMatchingWithScheme ( PasswordForm : : SCHEME_BASIC ) ;\n CheckMatchingWithScheme ( PasswordForm : : SCHEME_DIGEST ) ;\n CheckMatchingWithScheme ( PasswordForm : : SCHEME_OTHER ) ;\n }"}
{"idx": 11335, "target": 0, "func": "static int dsa_param_decode ( EVP_PKEY * pkey , const unsigned char * * pder , int derlen ) {\n DSA * dsa ;\n if ( ( dsa = d2i_DSAparams ( NULL , pder , derlen ) ) == NULL ) {\n DSAerr ( DSA_F_DSA_PARAM_DECODE , ERR_R_DSA_LIB ) ;\n return 0 ;\n }\n EVP_PKEY_assign_DSA ( pkey , dsa ) ;\n return 1 ;\n }"}
{"idx": 11336, "target": 0, "func": "static void _uhash_internalSetResizePolicy ( UHashtable * hash , enum UHashResizePolicy policy ) {\n U_ASSERT ( hash != NULL ) ;\n U_ASSERT ( ( ( int32_t ) policy ) >= 0 ) ;\n U_ASSERT ( ( ( int32_t ) policy ) < 3 ) ;\n hash -> lowWaterRatio = RESIZE_POLICY_RATIO_TABLE [ policy * 2 ] ;\n hash -> highWaterRatio = RESIZE_POLICY_RATIO_TABLE [ policy * 2 + 1 ] ;\n }"}
{"idx": 11337, "target": 0, "func": "int jpc_pchglist_numpchgs ( jpc_pchglist_t * pchglist ) {\n return pchglist -> numpchgs ;\n }"}
{"idx": 11338, "target": 0, "func": "static gboolean is_mpa_req ( tvbuff_t * tvb , packet_info * pinfo ) {\n conversation_t * conversation = NULL ;\n mpa_state_t * state = NULL ;\n guint8 mcrres ;\n if ( tvb_get_ntoh64 ( tvb , 0 ) != MPA_REQ_REP_FRAME || tvb_get_ntoh64 ( tvb , 8 ) != MPA_ID_REQ_FRAME ) return FALSE ;\n conversation = find_or_create_conversation ( pinfo ) ;\n if ( ! get_mpa_state ( conversation ) ) {\n state = init_mpa_state ( ) ;\n mcrres = tvb_get_guint8 ( tvb , 16 ) ;\n state -> ini_exp_m_res = mcrres & MPA_MARKER_FLAG ;\n state -> crc = mcrres & MPA_CRC_FLAG ;\n state -> revision = tvb_get_guint8 ( tvb , 17 ) ;\n state -> req_frame_num = pinfo -> num ;\n state -> minfo [ MPA_INITIATOR ] . port = pinfo -> srcport ;\n state -> minfo [ MPA_RESPONDER ] . port = pinfo -> destport ;\n conversation_add_proto_data ( conversation , proto_iwarp_mpa , state ) ;\n if ( mcrres & MPA_RESERVED_FLAG ) expert_add_info ( pinfo , NULL , & ei_mpa_res_field_not_set0 ) ;\n if ( state -> revision != 1 ) expert_add_info ( pinfo , NULL , & ei_mpa_rev_field_not_set1 ) ;\n }\n return TRUE ;\n }"}
{"idx": 11339, "target": 0, "func": "static gpgme_error_t gpgsm_keylist ( void * engine , const char * pattern , int secret_only , gpgme_keylist_mode_t mode ) {\n engine_gpgsm_t gpgsm = engine ;\n char * line ;\n gpgme_error_t err ;\n int list_mode = 0 ;\n if ( mode & GPGME_KEYLIST_MODE_LOCAL ) list_mode |= 1 ;\n if ( mode & GPGME_KEYLIST_MODE_EXTERN ) list_mode |= 2 ;\n if ( ! pattern ) pattern = \"\" ;\n if ( secret_only || ( mode & GPGME_KEYLIST_MODE_WITH_SECRET ) ) gpgsm_assuan_simple_command ( gpgsm -> assuan_ctx , \"GETINFO agent-check\" , NULL , NULL ) ;\n if ( asprintf ( & line , \"OPTION list-mode=%d\" , ( list_mode & 3 ) ) < 0 ) return gpg_error_from_syserror ( ) ;\n err = gpgsm_assuan_simple_command ( gpgsm -> assuan_ctx , line , NULL , NULL ) ;\n free ( line ) ;\n if ( err ) return err ;\n gpgsm_assuan_simple_command ( gpgsm -> assuan_ctx , ( mode & GPGME_KEYLIST_MODE_VALIDATE ) ? \"OPTION with-validation=1\" : \"OPTION with-validation=0\" , NULL , NULL ) ;\n gpgsm_assuan_simple_command ( gpgsm -> assuan_ctx , ( mode & GPGME_KEYLIST_MODE_EPHEMERAL ) ? \"OPTION with-ephemeral-keys=1\" : \"OPTION with-ephemeral-keys=0\" , NULL , NULL ) ;\n gpgsm_assuan_simple_command ( gpgsm -> assuan_ctx , ( mode & GPGME_KEYLIST_MODE_WITH_SECRET ) ? \"OPTION with-secret=1\" : \"OPTION with-secret=0\" , NULL , NULL ) ;\n line = malloc ( 15 + strlen ( pattern ) + 1 ) ;\n if ( ! line ) return gpg_error_from_syserror ( ) ;\n if ( secret_only ) {\n strcpy ( line , \"LISTSECRETKEYS \" ) ;\n strcpy ( & line [ 15 ] , pattern ) ;\n }\n else {\n strcpy ( line , \"LISTKEYS \" ) ;\n strcpy ( & line [ 9 ] , pattern ) ;\n }\n gpgsm_clear_fd ( gpgsm , INPUT_FD ) ;\n gpgsm_clear_fd ( gpgsm , OUTPUT_FD ) ;\n gpgsm_clear_fd ( gpgsm , MESSAGE_FD ) ;\n gpgsm -> inline_data = NULL ;\n err = start ( gpgsm , line ) ;\n free ( line ) ;\n return err ;\n }"}
{"idx": 11340, "target": 0, "func": "static VP9_DENOISER_DECISION perform_motion_compensation ( VP9_DENOISER * denoiser , MACROBLOCK * mb , BLOCK_SIZE bs , int increase_denoising , int mi_row , int mi_col , PICK_MODE_CONTEXT * ctx , int * motion_magnitude ) {\n int mv_col , mv_row ;\n int sse_diff = ctx -> zeromv_sse - ctx -> newmv_sse ;\n MV_REFERENCE_FRAME frame ;\n MACROBLOCKD * filter_mbd = & mb -> e_mbd ;\n MB_MODE_INFO * mbmi = & filter_mbd -> mi [ 0 ] . src_mi -> mbmi ;\n MB_MODE_INFO saved_mbmi ;\n int i , j ;\n struct buf_2d saved_dst [ MAX_MB_PLANE ] ;\n struct buf_2d saved_pre [ MAX_MB_PLANE ] [ 2 ] ;\n saved_mbmi = * mbmi ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n ++ i ) {\n for ( j = 0 ;\n j < 2 ;\n ++ j ) {\n saved_pre [ i ] [ j ] = filter_mbd -> plane [ i ] . pre [ j ] ;\n }\n saved_dst [ i ] = filter_mbd -> plane [ i ] . dst ;\n }\n mv_col = ctx -> best_sse_mv . as_mv . col ;\n mv_row = ctx -> best_sse_mv . as_mv . row ;\n * motion_magnitude = mv_row * mv_row + mv_col * mv_col ;\n frame = ctx -> best_reference_frame ;\n if ( frame != INTRA_FRAME && sse_diff > sse_diff_thresh ( bs , increase_denoising , mv_row , mv_col ) ) {\n mbmi -> ref_frame [ 0 ] = ctx -> best_reference_frame ;\n mbmi -> mode = ctx -> best_sse_inter_mode ;\n mbmi -> mv [ 0 ] = ctx -> best_sse_mv ;\n }\n else {\n frame = ctx -> best_zeromv_reference_frame ;\n mbmi -> ref_frame [ 0 ] = ctx -> best_zeromv_reference_frame ;\n mbmi -> mode = ZEROMV ;\n mbmi -> mv [ 0 ] . as_int = 0 ;\n ctx -> best_sse_inter_mode = ZEROMV ;\n ctx -> best_sse_mv . as_int = 0 ;\n ctx -> newmv_sse = ctx -> zeromv_sse ;\n }\n for ( j = 0 ;\n j < 2 ;\n ++ j ) {\n filter_mbd -> plane [ 0 ] . pre [ j ] . buf = block_start ( denoiser -> running_avg_y [ frame ] . y_buffer , denoiser -> running_avg_y [ frame ] . y_stride , mi_row , mi_col ) ;\n filter_mbd -> plane [ 0 ] . pre [ j ] . stride = denoiser -> running_avg_y [ frame ] . y_stride ;\n filter_mbd -> plane [ 1 ] . pre [ j ] . buf = block_start ( denoiser -> running_avg_y [ frame ] . u_buffer , denoiser -> running_avg_y [ frame ] . uv_stride , mi_row , mi_col ) ;\n filter_mbd -> plane [ 1 ] . pre [ j ] . stride = denoiser -> running_avg_y [ frame ] . uv_stride ;\n filter_mbd -> plane [ 2 ] . pre [ j ] . buf = block_start ( denoiser -> running_avg_y [ frame ] . v_buffer , denoiser -> running_avg_y [ frame ] . uv_stride , mi_row , mi_col ) ;\n filter_mbd -> plane [ 2 ] . pre [ j ] . stride = denoiser -> running_avg_y [ frame ] . uv_stride ;\n }\n filter_mbd -> plane [ 0 ] . dst . buf = block_start ( denoiser -> mc_running_avg_y . y_buffer , denoiser -> mc_running_avg_y . y_stride , mi_row , mi_col ) ;\n filter_mbd -> plane [ 0 ] . dst . stride = denoiser -> mc_running_avg_y . y_stride ;\n filter_mbd -> plane [ 1 ] . dst . buf = block_start ( denoiser -> mc_running_avg_y . u_buffer , denoiser -> mc_running_avg_y . uv_stride , mi_row , mi_col ) ;\n filter_mbd -> plane [ 1 ] . dst . stride = denoiser -> mc_running_avg_y . uv_stride ;\n filter_mbd -> plane [ 2 ] . dst . buf = block_start ( denoiser -> mc_running_avg_y . v_buffer , denoiser -> mc_running_avg_y . uv_stride , mi_row , mi_col ) ;\n filter_mbd -> plane [ 2 ] . dst . stride = denoiser -> mc_running_avg_y . uv_stride ;\n vp9_build_inter_predictors_sby ( filter_mbd , mv_row , mv_col , bs ) ;\n * mbmi = saved_mbmi ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n ++ i ) {\n for ( j = 0 ;\n j < 2 ;\n ++ j ) {\n filter_mbd -> plane [ i ] . pre [ j ] = saved_pre [ i ] [ j ] ;\n }\n filter_mbd -> plane [ i ] . dst = saved_dst [ i ] ;\n }\n mv_row = ctx -> best_sse_mv . as_mv . row ;\n mv_col = ctx -> best_sse_mv . as_mv . col ;\n if ( ctx -> newmv_sse > sse_thresh ( bs , increase_denoising ) ) {\n return COPY_BLOCK ;\n }\n if ( mv_row * mv_row + mv_col * mv_col > * noise_motion_thresh ( bs , increase_denoising ) ) {\n return COPY_BLOCK ;\n }\n return FILTER_BLOCK ;\n }"}
{"idx": 11341, "target": 0, "func": "static int grid_fit ( gx_device_spot_analyzer * padev , gx_path * path , gs_font_type42 * pfont , const gs_log2_scale_point * pscale , gx_ttfExport * e , ttfOutliner * o ) {\n gs_gstate gs_stub ;\n gx_fill_params params ;\n gx_device_color devc_stub ;\n int code ;\n t1_hinter_aux h ;\n gs_matrix m , fm , fmb ;\n gs_matrix_fixed ctm_temp ;\n bool atp = gs_currentaligntopixels ( pfont -> dir ) ;\n int FontType = 1 ;\n fixed sbx = 0 , sby = 0 ;\n double scale = 1.0 / o -> pFont -> nUnitsPerEm ;\n gs_fixed_rect bbox ;\n m . xx = o -> post_transform . a ;\n m . xy = o -> post_transform . b ;\n m . yx = o -> post_transform . c ;\n m . yy = o -> post_transform . d ;\n m . tx = o -> post_transform . tx ;\n m . ty = o -> post_transform . ty ;\n code = gs_matrix_fixed_from_matrix ( & ctm_temp , & m ) ;\n if ( code < 0 ) return code ;\n code = gs_matrix_scale ( & pfont -> FontMatrix , scale , scale , & fm ) ;\n if ( code < 0 ) return code ;\n code = gs_matrix_scale ( & pfont -> base -> FontMatrix , scale , scale , & fmb ) ;\n if ( code < 0 ) return code ;\n t1_hinter__init ( & h . super , path ) ;\n code = t1_hinter__set_mapping ( & h . super , & ctm_temp , & fm , & fmb , pscale -> x , pscale -> x , 0 , 0 , ctm_temp . tx_fixed , ctm_temp . ty_fixed , atp ) ;\n if ( code < 0 ) return code ;\n if ( ! h . super . disable_hinting ) {\n o -> post_transform . a = o -> post_transform . d = 1 ;\n o -> post_transform . b = o -> post_transform . c = 0 ;\n o -> post_transform . tx = o -> post_transform . ty = 0 ;\n ttfOutliner__DrawGlyphOutline ( o ) ;\n if ( e -> error ) return e -> error ;\n code = t1_hinter__set_font42_data ( & h . super , FontType , & pfont -> data , false ) ;\n if ( code < 0 ) return code ;\n code = t1_hinter__sbw ( & h . super , sbx , sby , e -> w . x , e -> w . y ) ;\n if ( code < 0 ) return code ;\n code = gx_path_bbox ( path , & bbox ) ;\n if ( code < 0 ) return code ;\n memset ( & gs_stub , 0 , sizeof ( gs_stub ) ) ;\n gs_stub . memory = padev -> memory ;\n set_nonclient_dev_color ( & devc_stub , 1 ) ;\n params . rule = gx_rule_winding_number ;\n params . adjust . x = params . adjust . y = 0 ;\n params . flatness = fixed2float ( max ( bbox . q . x - bbox . p . x , bbox . q . y - bbox . p . y ) ) / 100.0 ;\n for ( h . transpose = 0 ;\n h . transpose < 2 ;\n h . transpose ++ ) {\n h . midx = ( padev -> xmin + padev -> xmax ) / 2 ;\n if ( h . transpose ) transpose_path ( path ) ;\n gx_san_begin ( padev ) ;\n code = dev_proc ( padev , fill_path ) ( ( gx_device * ) padev , & gs_stub , path , & params , & devc_stub , NULL ) ;\n gx_san_end ( padev ) ;\n if ( code >= 0 ) code = gx_san_generate_stems ( padev , OVERALL_HINT && h . transpose , & h , stem_hint_handler ) ;\n if ( h . transpose ) transpose_path ( path ) ;\n if ( code < 0 ) return code ;\n }\n code = path_to_hinter ( & h . super , path ) ;\n if ( code < 0 ) return code ;\n code = gx_path_new ( path ) ;\n if ( code < 0 ) return code ;\n code = t1_hinter__endglyph ( & h . super ) ;\n }\n else {\n ttfOutliner__DrawGlyphOutline ( o ) ;\n if ( e -> error ) return e -> error ;\n }\n return code ;\n }"}
{"idx": 11342, "target": 1, "func": "static void ucnv_UTF8FromUTF8 ( UConverterFromUnicodeArgs * pFromUArgs , UConverterToUnicodeArgs * pToUArgs , UErrorCode * pErrorCode ) {\n UConverter * utf8 ;\n const uint8_t * source , * sourceLimit ;\n uint8_t * target ;\n int32_t targetCapacity ;\n int32_t count ;\n int8_t oldToULength , toULength , toULimit ;\n UChar32 c ;\n uint8_t b , t1 , t2 ;\n utf8 = pToUArgs -> converter ;\n source = ( uint8_t * ) pToUArgs -> source ;\n sourceLimit = ( uint8_t * ) pToUArgs -> sourceLimit ;\n target = ( uint8_t * ) pFromUArgs -> target ;\n targetCapacity = ( int32_t ) ( pFromUArgs -> targetLimit - pFromUArgs -> target ) ;\n c = ( UChar32 ) utf8 -> toUnicodeStatus ;\n if ( c != 0 ) {\n toULength = oldToULength = utf8 -> toULength ;\n toULimit = ( int8_t ) utf8 -> mode ;\n }\n else {\n toULength = oldToULength = toULimit = 0 ;\n }\n count = ( int32_t ) ( sourceLimit - source ) + oldToULength ;\n if ( count < toULimit ) {\n }\n else if ( targetCapacity < toULimit ) {\n * pErrorCode = U_USING_DEFAULT_WARNING ;\n return ;\n }\n else {\n int32_t i ;\n if ( count > targetCapacity ) {\n count = targetCapacity ;\n }\n i = 0 ;\n while ( i < 3 && i < ( count - toULimit ) ) {\n b = source [ count - oldToULength - i - 1 ] ;\n if ( U8_IS_TRAIL ( b ) ) {\n ++ i ;\n }\n else {\n if ( i < U8_COUNT_TRAIL_BYTES ( b ) ) {\n count -= i + 1 ;\n }\n break ;\n }\n }\n }\n if ( c != 0 ) {\n utf8 -> toUnicodeStatus = 0 ;\n utf8 -> toULength = 0 ;\n goto moreBytes ;\n }\n while ( count > 0 ) {\n b = * source ++ ;\n if ( ( int8_t ) b >= 0 ) {\n * target ++ = b ;\n -- count ;\n continue ;\n }\n else {\n if ( b > 0xe0 ) {\n if ( ( t1 = source [ 0 ] ) >= 0x80 && ( ( b < 0xed && ( t1 <= 0xbf ) ) || ( b == 0xed && ( t1 <= 0x9f ) ) ) && ( t2 = source [ 1 ] ) >= 0x80 && t2 <= 0xbf ) {\n source += 2 ;\n * target ++ = b ;\n * target ++ = t1 ;\n * target ++ = t2 ;\n count -= 3 ;\n continue ;\n }\n }\n else if ( b < 0xe0 ) {\n if ( b >= 0xc2 && ( t1 = * source ) >= 0x80 && t1 <= 0xbf ) {\n ++ source ;\n * target ++ = b ;\n * target ++ = t1 ;\n count -= 2 ;\n continue ;\n }\n }\n else if ( b == 0xe0 ) {\n if ( ( t1 = source [ 0 ] ) >= 0xa0 && t1 <= 0xbf && ( t2 = source [ 1 ] ) >= 0x80 && t2 <= 0xbf ) {\n source += 2 ;\n * target ++ = b ;\n * target ++ = t1 ;\n * target ++ = t2 ;\n count -= 3 ;\n continue ;\n }\n }\n oldToULength = 0 ;\n toULength = 1 ;\n toULimit = U8_COUNT_TRAIL_BYTES ( b ) + 1 ;\n c = b ;\n moreBytes : while ( toULength < toULimit ) {\n if ( source < sourceLimit ) {\n b = * source ;\n if ( U8_IS_TRAIL ( b ) ) {\n ++ source ;\n ++ toULength ;\n c = ( c << 6 ) + b ;\n }\n else {\n break ;\n }\n }\n else {\n source -= ( toULength - oldToULength ) ;\n while ( oldToULength < toULength ) {\n utf8 -> toUBytes [ oldToULength ++ ] = * source ++ ;\n }\n utf8 -> toUnicodeStatus = c ;\n utf8 -> toULength = toULength ;\n utf8 -> mode = toULimit ;\n pToUArgs -> source = ( char * ) source ;\n pFromUArgs -> target = ( char * ) target ;\n return ;\n }\n }\n if ( toULength == toULimit && ( toULength == 3 || toULength == 2 ) && ( c -= utf8_offsets [ toULength ] ) >= utf8_minLegal [ toULength ] && ( c <= 0xd7ff || 0xe000 <= c ) ) {\n }\n else if ( toULength == toULimit && toULength == 4 && ( 0x10000 <= ( c -= utf8_offsets [ 4 ] ) && c <= 0x10ffff ) ) {\n }\n else {\n source -= ( toULength - oldToULength ) ;\n while ( oldToULength < toULength ) {\n utf8 -> toUBytes [ oldToULength ++ ] = * source ++ ;\n }\n utf8 -> toULength = toULength ;\n pToUArgs -> source = ( char * ) source ;\n pFromUArgs -> target = ( char * ) target ;\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n return ;\n }\n {\n int8_t i ;\n for ( i = 0 ;\n i < oldToULength ;\n ++ i ) {\n * target ++ = utf8 -> toUBytes [ i ] ;\n }\n source -= ( toULength - oldToULength ) ;\n for ( ;\n i < toULength ;\n ++ i ) {\n * target ++ = * source ++ ;\n }\n count -= toULength ;\n }\n }\n }\n if ( U_SUCCESS ( * pErrorCode ) && source < sourceLimit ) {\n if ( target == ( const uint8_t * ) pFromUArgs -> targetLimit ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n else {\n b = * source ;\n toULimit = U8_COUNT_TRAIL_BYTES ( b ) + 1 ;\n if ( toULimit > ( sourceLimit - source ) ) {\n toULength = 0 ;\n c = b ;\n for ( ;\n ;\n ) {\n utf8 -> toUBytes [ toULength ++ ] = b ;\n if ( ++ source == sourceLimit ) {\n utf8 -> toUnicodeStatus = c ;\n utf8 -> toULength = toULength ;\n utf8 -> mode = toULimit ;\n break ;\n }\n else if ( ! U8_IS_TRAIL ( b = * source ) ) {\n utf8 -> toULength = toULength ;\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n c = ( c << 6 ) + b ;\n }\n }\n else {\n * pErrorCode = U_USING_DEFAULT_WARNING ;\n }\n }\n }\n pToUArgs -> source = ( char * ) source ;\n pFromUArgs -> target = ( char * ) target ;\n }"}
{"idx": 11343, "target": 0, "func": "static void examine_simple_variable ( PlannerInfo * root , Var * var , VariableStatData * vardata ) {\n RangeTblEntry * rte = root -> simple_rte_array [ var -> varno ] ;\n Assert ( IsA ( rte , RangeTblEntry ) ) ;\n if ( get_relation_stats_hook && ( * get_relation_stats_hook ) ( root , rte , var -> varattno , vardata ) ) {\n if ( HeapTupleIsValid ( vardata -> statsTuple ) && ! vardata -> freefunc ) elog ( ERROR , \"no function provided to release variable stats with\" ) ;\n }\n else if ( rte -> rtekind == RTE_RELATION ) {\n vardata -> statsTuple = SearchSysCache3 ( STATRELATTINH , ObjectIdGetDatum ( rte -> relid ) , Int16GetDatum ( var -> varattno ) , BoolGetDatum ( rte -> inh ) ) ;\n vardata -> freefunc = ReleaseSysCache ;\n if ( HeapTupleIsValid ( vardata -> statsTuple ) ) {\n vardata -> acl_ok = ( pg_class_aclcheck ( rte -> relid , GetUserId ( ) , ACL_SELECT ) == ACLCHECK_OK ) || ( pg_attribute_aclcheck ( rte -> relid , var -> varattno , GetUserId ( ) , ACL_SELECT ) == ACLCHECK_OK ) ;\n }\n else {\n vardata -> acl_ok = true ;\n }\n }\n else if ( rte -> rtekind == RTE_SUBQUERY && ! rte -> inh ) {\n Query * subquery = rte -> subquery ;\n RelOptInfo * rel ;\n TargetEntry * ste ;\n if ( var -> varattno == InvalidAttrNumber ) return ;\n if ( subquery -> setOperations || subquery -> groupClause ) return ;\n rel = find_base_rel ( root , var -> varno ) ;\n if ( rel -> subroot == NULL ) return ;\n Assert ( IsA ( rel -> subroot , PlannerInfo ) ) ;\n subquery = rel -> subroot -> parse ;\n Assert ( IsA ( subquery , Query ) ) ;\n ste = get_tle_by_resno ( subquery -> targetList , var -> varattno ) ;\n if ( ste == NULL || ste -> resjunk ) elog ( ERROR , \"subquery %s does not have attribute %d\" , rte -> eref -> aliasname , var -> varattno ) ;\n var = ( Var * ) ste -> expr ;\n if ( subquery -> distinctClause ) {\n if ( list_length ( subquery -> distinctClause ) == 1 && targetIsInSortList ( ste , InvalidOid , subquery -> distinctClause ) ) vardata -> isunique = true ;\n return ;\n }\n if ( rte -> security_barrier ) return ;\n if ( var && IsA ( var , Var ) && var -> varlevelsup == 0 ) {\n examine_simple_variable ( rel -> subroot , var , vardata ) ;\n }\n }\n else {\n }\n }"}
{"idx": 11344, "target": 0, "func": "static int dissect_h245_MasterSlaveDetermination ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MasterSlaveDetermination , MasterSlaveDetermination_sequence ) ;\n # line 572 \"../../asn1/h245/h245.cnf\" if ( h245_pi != NULL ) h245_pi -> msg_type = H245_MastSlvDet ;\n return offset ;\n }"}
{"idx": 11345, "target": 0, "func": "static struct isoent * isoent_create_virtual_dir ( struct archive_write * a , struct iso9660 * iso9660 , const char * pathname ) {\n struct isofile * file ;\n struct isoent * isoent ;\n file = isofile_new ( a , NULL ) ;\n if ( file == NULL ) return ( NULL ) ;\n archive_entry_set_pathname ( file -> entry , pathname ) ;\n archive_entry_unset_mtime ( file -> entry ) ;\n archive_entry_unset_atime ( file -> entry ) ;\n archive_entry_unset_ctime ( file -> entry ) ;\n archive_entry_set_uid ( file -> entry , getuid ( ) ) ;\n archive_entry_set_gid ( file -> entry , getgid ( ) ) ;\n archive_entry_set_mode ( file -> entry , 0555 | AE_IFDIR ) ;\n archive_entry_set_nlink ( file -> entry , 2 ) ;\n if ( isofile_gen_utility_names ( a , file ) < ARCHIVE_WARN ) {\n isofile_free ( file ) ;\n return ( NULL ) ;\n }\n isofile_add_entry ( iso9660 , file ) ;\n isoent = isoent_new ( file ) ;\n if ( isoent == NULL ) return ( NULL ) ;\n isoent -> dir = 1 ;\n isoent -> virtual = 1 ;\n return ( isoent ) ;\n }"}
{"idx": 11346, "target": 0, "func": "static inline int pnm_space ( int c ) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' ;\n }"}
{"idx": 11347, "target": 0, "func": "static int dissect_h245_INTEGER_1_32 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 32U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 11348, "target": 1, "func": "static void event_process_active ( struct event_base * base ) {\n struct event * ev ;\n struct event_list * activeq = NULL ;\n int i ;\n short ncalls ;\n for ( i = 0 ;\n i < base -> nactivequeues ;\n ++ i ) {\n if ( TAILQ_FIRST ( base -> activequeues [ i ] ) != NULL ) {\n activeq = base -> activequeues [ i ] ;\n break ;\n }\n }\n assert ( activeq != NULL ) ;\n for ( ev = TAILQ_FIRST ( activeq ) ;\n ev ;\n ev = TAILQ_FIRST ( activeq ) ) {\n if ( ev -> ev_events & EV_PERSIST ) event_queue_remove ( base , ev , EVLIST_ACTIVE ) ;\n else event_del ( ev ) ;\n ncalls = ev -> ev_ncalls ;\n ev -> ev_pncalls = & ncalls ;\n while ( ncalls ) {\n ncalls -- ;\n ev -> ev_ncalls = ncalls ;\n ( * ev -> ev_callback ) ( ( int ) ev -> ev_fd , ev -> ev_res , ev -> ev_arg ) ;\n if ( base -> event_break ) return ;\n }\n }\n }"}
{"idx": 11349, "target": 0, "func": "static int replace_user_table ( THD * thd , TABLE * table , const LEX_USER & combo , ulong rights , bool revoke_grant , bool can_create_user , bool no_auto_create ) {\n int error = - 1 ;\n bool old_row_exists = 0 ;\n const char * password = \"\" ;\n uint password_len = 0 ;\n char what = ( revoke_grant ) ? 'N' : 'Y' ;\n uchar user_key [ MAX_KEY_LENGTH ] ;\n LEX * lex = thd -> lex ;\n DBUG_ENTER ( \"replace_user_table\" ) ;\n safe_mutex_assert_owner ( & acl_cache -> lock ) ;\n if ( combo . password . str && combo . password . str [ 0 ] ) {\n if ( combo . password . length != SCRAMBLED_PASSWORD_CHAR_LENGTH && combo . password . length != SCRAMBLED_PASSWORD_CHAR_LENGTH_323 ) {\n my_error ( ER_PASSWD_LENGTH , MYF ( 0 ) , SCRAMBLED_PASSWORD_CHAR_LENGTH ) ;\n DBUG_RETURN ( - 1 ) ;\n }\n password_len = combo . password . length ;\n password = combo . password . str ;\n }\n table -> use_all_columns ( ) ;\n table -> field [ 0 ] -> store ( combo . host . str , combo . host . length , system_charset_info ) ;\n table -> field [ 1 ] -> store ( combo . user . str , combo . user . length , system_charset_info ) ;\n key_copy ( user_key , table -> record [ 0 ] , table -> key_info , table -> key_info -> key_length ) ;\n if ( table -> file -> index_read_idx_map ( table -> record [ 0 ] , 0 , user_key , HA_WHOLE_KEY , HA_READ_KEY_EXACT ) ) {\n if ( what == 'N' ) {\n my_error ( ER_NONEXISTING_GRANT , MYF ( 0 ) , combo . user . str , combo . host . str ) ;\n goto end ;\n }\n else if ( ! password_len && no_auto_create ) {\n my_error ( ER_PASSWORD_NO_MATCH , MYF ( 0 ) ) ;\n goto end ;\n }\n else if ( ! can_create_user ) {\n my_error ( ER_CANT_CREATE_USER_WITH_GRANT , MYF ( 0 ) ) ;\n goto end ;\n }\n old_row_exists = 0 ;\n restore_record ( table , s -> default_values ) ;\n table -> field [ 0 ] -> store ( combo . host . str , combo . host . length , system_charset_info ) ;\n table -> field [ 1 ] -> store ( combo . user . str , combo . user . length , system_charset_info ) ;\n table -> field [ 2 ] -> store ( password , password_len , system_charset_info ) ;\n }\n else {\n old_row_exists = 1 ;\n store_record ( table , record [ 1 ] ) ;\n if ( combo . password . str ) table -> field [ 2 ] -> store ( password , password_len , system_charset_info ) ;\n else if ( ! rights && ! revoke_grant && lex -> ssl_type == SSL_TYPE_NOT_SPECIFIED && ! lex -> mqh . specified_limits ) {\n DBUG_RETURN ( 0 ) ;\n }\n }\n Field * * tmp_field ;\n ulong priv ;\n uint next_field ;\n for ( tmp_field = table -> field + 3 , priv = SELECT_ACL ;\n * tmp_field && ( * tmp_field ) -> real_type ( ) == MYSQL_TYPE_ENUM && ( ( Field_enum * ) ( * tmp_field ) ) -> typelib -> count == 2 ;\n tmp_field ++ , priv <<= 1 ) {\n if ( priv & rights ) ( * tmp_field ) -> store ( & what , 1 , & my_charset_latin1 ) ;\n }\n rights = get_access ( table , 3 , & next_field ) ;\n DBUG_PRINT ( \"info\" , ( \"table fields: %d\" , table -> s -> fields ) ) ;\n if ( table -> s -> fields >= 31 ) {\n switch ( lex -> ssl_type ) {\n case SSL_TYPE_ANY : table -> field [ next_field ] -> store ( STRING_WITH_LEN ( \"ANY\" ) , & my_charset_latin1 ) ;\n table -> field [ next_field + 1 ] -> store ( \"\" , 0 , & my_charset_latin1 ) ;\n table -> field [ next_field + 2 ] -> store ( \"\" , 0 , & my_charset_latin1 ) ;\n table -> field [ next_field + 3 ] -> store ( \"\" , 0 , & my_charset_latin1 ) ;\n break ;\n case SSL_TYPE_X509 : table -> field [ next_field ] -> store ( STRING_WITH_LEN ( \"X509\" ) , & my_charset_latin1 ) ;\n table -> field [ next_field + 1 ] -> store ( \"\" , 0 , & my_charset_latin1 ) ;\n table -> field [ next_field + 2 ] -> store ( \"\" , 0 , & my_charset_latin1 ) ;\n table -> field [ next_field + 3 ] -> store ( \"\" , 0 , & my_charset_latin1 ) ;\n break ;\n case SSL_TYPE_SPECIFIED : table -> field [ next_field ] -> store ( STRING_WITH_LEN ( \"SPECIFIED\" ) , & my_charset_latin1 ) ;\n table -> field [ next_field + 1 ] -> store ( \"\" , 0 , & my_charset_latin1 ) ;\n table -> field [ next_field + 2 ] -> store ( \"\" , 0 , & my_charset_latin1 ) ;\n table -> field [ next_field + 3 ] -> store ( \"\" , 0 , & my_charset_latin1 ) ;\n if ( lex -> ssl_cipher ) table -> field [ next_field + 1 ] -> store ( lex -> ssl_cipher , strlen ( lex -> ssl_cipher ) , system_charset_info ) ;\n if ( lex -> x509_issuer ) table -> field [ next_field + 2 ] -> store ( lex -> x509_issuer , strlen ( lex -> x509_issuer ) , system_charset_info ) ;\n if ( lex -> x509_subject ) table -> field [ next_field + 3 ] -> store ( lex -> x509_subject , strlen ( lex -> x509_subject ) , system_charset_info ) ;\n break ;\n case SSL_TYPE_NOT_SPECIFIED : break ;\n case SSL_TYPE_NONE : table -> field [ next_field ] -> store ( \"\" , 0 , & my_charset_latin1 ) ;\n table -> field [ next_field + 1 ] -> store ( \"\" , 0 , & my_charset_latin1 ) ;\n table -> field [ next_field + 2 ] -> store ( \"\" , 0 , & my_charset_latin1 ) ;\n table -> field [ next_field + 3 ] -> store ( \"\" , 0 , & my_charset_latin1 ) ;\n break ;\n }\n next_field += 4 ;\n USER_RESOURCES mqh = lex -> mqh ;\n if ( mqh . specified_limits & USER_RESOURCES : : QUERIES_PER_HOUR ) table -> field [ next_field ] -> store ( ( longlong ) mqh . questions , TRUE ) ;\n if ( mqh . specified_limits & USER_RESOURCES : : UPDATES_PER_HOUR ) table -> field [ next_field + 1 ] -> store ( ( longlong ) mqh . updates , TRUE ) ;\n if ( mqh . specified_limits & USER_RESOURCES : : CONNECTIONS_PER_HOUR ) table -> field [ next_field + 2 ] -> store ( ( longlong ) mqh . conn_per_hour , TRUE ) ;\n if ( table -> s -> fields >= 36 && ( mqh . specified_limits & USER_RESOURCES : : USER_CONNECTIONS ) ) table -> field [ next_field + 3 ] -> store ( ( longlong ) mqh . user_conn , TRUE ) ;\n mqh_used = mqh_used || mqh . questions || mqh . updates || mqh . conn_per_hour ;\n }\n if ( old_row_exists ) {\n if ( cmp_record ( table , record [ 1 ] ) ) {\n if ( ( error = table -> file -> ha_update_row ( table -> record [ 1 ] , table -> record [ 0 ] ) ) && error != HA_ERR_RECORD_IS_THE_SAME ) {\n table -> file -> print_error ( error , MYF ( 0 ) ) ;\n error = - 1 ;\n goto end ;\n }\n else error = 0 ;\n }\n }\n else if ( ( error = table -> file -> ha_write_row ( table -> record [ 0 ] ) ) ) {\n if ( table -> file -> is_fatal_error ( error , HA_CHECK_DUP ) ) {\n table -> file -> print_error ( error , MYF ( 0 ) ) ;\n error = - 1 ;\n goto end ;\n }\n }\n error = 0 ;\n end : if ( ! error ) {\n acl_cache -> clear ( 1 ) ;\n if ( old_row_exists ) acl_update_user ( combo . user . str , combo . host . str , combo . password . str , password_len , lex -> ssl_type , lex -> ssl_cipher , lex -> x509_issuer , lex -> x509_subject , & lex -> mqh , rights ) ;\n else acl_insert_user ( combo . user . str , combo . host . str , password , password_len , lex -> ssl_type , lex -> ssl_cipher , lex -> x509_issuer , lex -> x509_subject , & lex -> mqh , rights ) ;\n }\n DBUG_RETURN ( error ) ;\n }"}
{"idx": 11350, "target": 0, "func": "static void list_curves ( void ) {\n int idx ;\n const char * name ;\n unsigned int nbits ;\n for ( idx = 0 ;\n ( name = gcry_pk_get_curve ( NULL , idx , & nbits ) ) ;\n idx ++ ) {\n if ( verbose ) printf ( \"%s - %u bits\\n\" , name , nbits ) ;\n }\n if ( idx != N_CURVES ) fail ( \"expected %d curves but got %d\\n\" , N_CURVES , idx ) ;\n if ( gcry_pk_get_curve ( NULL , - 1 , NULL ) ) fail ( \"curve iteration failed\\n\" ) ;\n }"}
{"idx": 11351, "target": 0, "func": "rfbClientIteratorPtr rfbGetClientIteratorWithClosed ( rfbScreenInfoPtr rfbScreen ) {\n rfbClientIteratorPtr i = ( rfbClientIteratorPtr ) malloc ( sizeof ( struct rfbClientIterator ) ) ;\n i -> next = NULL ;\n i -> screen = rfbScreen ;\n i -> closedToo = TRUE ;\n return i ;\n }"}
{"idx": 11352, "target": 0, "func": "int main ( int argc , char * * argv ) {\n # ifdef WIN32 WORD wVersionRequested ;\n WSADATA wsaData ;\n int err ;\n wVersionRequested = MAKEWORD ( 2 , 2 ) ;\n err = WSAStartup ( wVersionRequested , & wsaData ) ;\n # endif # ifndef WIN32 if ( signal ( SIGPIPE , SIG_IGN ) == SIG_ERR ) return ( 1 ) ;\n # endif setvbuf ( stdout , NULL , _IONBF , 0 ) ;\n global_base = event_init ( ) ;\n test_registerfds ( ) ;\n test_evutil_strtoll ( ) ;\n test_priorities ( 1 ) ;\n test_priorities ( 2 ) ;\n test_priorities ( 3 ) ;\n test_evbuffer ( ) ;\n test_evbuffer_find ( ) ;\n test_evbuffer_readln ( ) ;\n test_bufferevent ( ) ;\n test_bufferevent_watermarks ( ) ;\n test_free_active_base ( ) ;\n test_event_base_new ( ) ;\n http_suite ( ) ;\n # ifndef WIN32 rpc_suite ( ) ;\n # endif dns_suite ( ) ;\n # ifndef WIN32 test_fork ( ) ;\n # endif test_simpleread ( ) ;\n test_simplewrite ( ) ;\n test_multiple ( ) ;\n test_persistent ( ) ;\n test_combined ( ) ;\n test_simpletimeout ( ) ;\n # ifndef WIN32 test_simplesignal ( ) ;\n test_multiplesignal ( ) ;\n test_immediatesignal ( ) ;\n # endif test_loopexit ( ) ;\n test_loopbreak ( ) ;\n test_loopexit_multiple ( ) ;\n test_multiple_events_for_same_fd ( ) ;\n test_want_only_once ( ) ;\n evtag_test ( ) ;\n # ifndef WIN32 rpc_test ( ) ;\n test_signal_dealloc ( ) ;\n test_signal_pipeloss ( ) ;\n test_signal_switchbase ( ) ;\n test_signal_restore ( ) ;\n test_signal_assert ( ) ;\n test_signal_while_processing ( ) ;\n # endif return ( 0 ) ;\n }"}
{"idx": 11353, "target": 0, "func": "static void ohci_realize_pxa ( DeviceState * dev , Error * * errp ) {\n OHCISysBusState * s = SYSBUS_OHCI ( dev ) ;\n SysBusDevice * sbd = SYS_BUS_DEVICE ( dev ) ;\n usb_ohci_init ( & s -> ohci , dev , s -> num_ports , s -> dma_offset , NULL , 0 , & address_space_memory , & error_abort ) ;\n sysbus_init_irq ( sbd , & s -> ohci . irq ) ;\n sysbus_init_mmio ( sbd , & s -> ohci . mem ) ;\n }"}
{"idx": 11354, "target": 0, "func": "char * qemuAliasFromHostdev ( const virDomainHostdevDef * hostdev ) {\n char * ret ;\n if ( ! hostdev -> info -> alias ) {\n virReportError ( VIR_ERR_INVALID_ARG , \"%s\" , _ ( \"hostdev does not have an alias\" ) ) ;\n return NULL ;\n }\n ignore_value ( virAsprintf ( & ret , \"%s-%s\" , virDomainDeviceAddressTypeToString ( hostdev -> info -> type ) , hostdev -> info -> alias ) ) ;\n return ret ;\n }"}
{"idx": 11355, "target": 1, "func": "static void _HZClose ( UConverter * cnv ) {\n if ( cnv -> extraInfo != NULL ) {\n ucnv_close ( ( ( UConverterDataHZ * ) ( cnv -> extraInfo ) ) -> gbConverter ) ;\n if ( ! cnv -> isExtraLocal ) {\n uprv_free ( cnv -> extraInfo ) ;\n }\n cnv -> extraInfo = NULL ;\n }\n }"}
{"idx": 11356, "target": 0, "func": "static void write_delta_q ( struct vp9_write_bit_buffer * wb , int delta_q ) {\n if ( delta_q != 0 ) {\n vp9_wb_write_bit ( wb , 1 ) ;\n vp9_wb_write_literal ( wb , abs ( delta_q ) , 4 ) ;\n vp9_wb_write_bit ( wb , delta_q < 0 ) ;\n }\n else {\n vp9_wb_write_bit ( wb , 0 ) ;\n }\n }"}
{"idx": 11357, "target": 0, "func": "static struct cvec * eclass ( struct vars * v , celt c , int cases ) {\n struct cvec * cv ;\n if ( ( v -> cflags & REG_FAKE ) && c == 'x' ) {\n cv = getcvec ( v , 4 , 0 ) ;\n addchr ( cv , ( chr ) 'x' ) ;\n addchr ( cv , ( chr ) 'y' ) ;\n if ( cases ) {\n addchr ( cv , ( chr ) 'X' ) ;\n addchr ( cv , ( chr ) 'Y' ) ;\n }\n return cv ;\n }\n if ( cases ) return allcases ( v , c ) ;\n cv = getcvec ( v , 1 , 0 ) ;\n assert ( cv != NULL ) ;\n addchr ( cv , ( chr ) c ) ;\n return cv ;\n }"}
{"idx": 11358, "target": 0, "func": "static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 11359, "target": 0, "func": "static int zloop ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n check_proc ( * op ) ;\n check_estack ( 4 ) ;\n push_mark_estack ( es_for , no_cleanup ) ;\n * ++ esp = * op ;\n make_op_estack ( esp + 1 , loop_continue ) ;\n pop ( 1 ) ;\n return loop_continue ( i_ctx_p ) ;\n }"}
{"idx": 11360, "target": 0, "func": "static float noise_enhancer ( float fixed_gain , float * prev_tr_gain , float voice_fac , float stab_fac ) {\n float sm_fac = 0.5 * ( 1 - voice_fac ) * stab_fac ;\n float g0 ;\n if ( fixed_gain < * prev_tr_gain ) {\n g0 = FFMIN ( * prev_tr_gain , fixed_gain + fixed_gain * ( 6226 * ( 1.0f / ( 1 << 15 ) ) ) ) ;\n }\n else g0 = FFMAX ( * prev_tr_gain , fixed_gain * ( 27536 * ( 1.0f / ( 1 << 15 ) ) ) ) ;\n * prev_tr_gain = g0 ;\n return sm_fac * g0 + ( 1 - sm_fac ) * fixed_gain ;\n }"}
{"idx": 11361, "target": 0, "func": "static const UChar * u_file_translit ( UFILE * f , const UChar * src , int32_t * count , UBool flush ) {\n int32_t newlen ;\n int32_t junkCount = 0 ;\n int32_t textLength ;\n int32_t textLimit ;\n UTransPosition pos ;\n UErrorCode status = U_ZERO_ERROR ;\n if ( count == NULL ) {\n count = & junkCount ;\n }\n if ( ( ! f ) || ( ! f -> fTranslit ) || ( ! f -> fTranslit -> translit ) ) {\n return src ;\n }\n if ( f -> fTranslit -> length > f -> fTranslit -> pos ) {\n memmove ( f -> fTranslit -> buffer , f -> fTranslit -> buffer + f -> fTranslit -> pos , ( f -> fTranslit -> length - f -> fTranslit -> pos ) * sizeof ( UChar ) ) ;\n }\n f -> fTranslit -> length -= f -> fTranslit -> pos ;\n f -> fTranslit -> pos = 0 ;\n newlen = ( * count + f -> fTranslit -> length ) * 4 ;\n if ( newlen > f -> fTranslit -> capacity ) {\n if ( f -> fTranslit -> buffer == NULL ) {\n f -> fTranslit -> buffer = ( UChar * ) uprv_malloc ( newlen * sizeof ( UChar ) ) ;\n }\n else {\n f -> fTranslit -> buffer = ( UChar * ) uprv_realloc ( f -> fTranslit -> buffer , newlen * sizeof ( UChar ) ) ;\n }\n if ( f -> fTranslit -> buffer == NULL ) {\n return NULL ;\n }\n f -> fTranslit -> capacity = newlen ;\n }\n u_strncpy ( f -> fTranslit -> buffer + f -> fTranslit -> length , src , * count ) ;\n f -> fTranslit -> length += * count ;\n if ( flush == FALSE ) {\n textLength = f -> fTranslit -> length ;\n pos . contextStart = 0 ;\n pos . contextLimit = textLength ;\n pos . start = 0 ;\n pos . limit = textLength ;\n utrans_transIncrementalUChars ( f -> fTranslit -> translit , f -> fTranslit -> buffer , & textLength , f -> fTranslit -> capacity , & pos , & status ) ;\n * count = pos . start ;\n f -> fTranslit -> pos = pos . start ;\n f -> fTranslit -> length = pos . limit ;\n return f -> fTranslit -> buffer ;\n }\n else {\n textLength = f -> fTranslit -> length ;\n textLimit = f -> fTranslit -> length ;\n utrans_transUChars ( f -> fTranslit -> translit , f -> fTranslit -> buffer , & textLength , f -> fTranslit -> capacity , 0 , & textLimit , & status ) ;\n * count = textLimit ;\n f -> fTranslit -> pos = 0 ;\n f -> fTranslit -> length = 0 ;\n return f -> fTranslit -> buffer ;\n }\n }"}
{"idx": 11362, "target": 0, "func": "static enum nss_status gaih_getanswer_slice ( const querybuf * answer , int anslen , const char * qname , struct gaih_addrtuple * * * patp , char * * bufferp , size_t * buflenp , int * errnop , int * h_errnop , int32_t * ttlp , int * firstp ) {\n char * buffer = * bufferp ;\n size_t buflen = * buflenp ;\n struct gaih_addrtuple * * pat = * patp ;\n const HEADER * hp = & answer -> hdr ;\n int ancount = ntohs ( hp -> ancount ) ;\n int qdcount = ntohs ( hp -> qdcount ) ;\n const u_char * cp = answer -> buf + HFIXEDSZ ;\n const u_char * end_of_message = answer -> buf + anslen ;\n if ( __glibc_unlikely ( qdcount != 1 ) ) {\n * h_errnop = NO_RECOVERY ;\n return NSS_STATUS_UNAVAIL ;\n }\n u_char packtmp [ NS_MAXCDNAME ] ;\n int n = __ns_name_unpack ( answer -> buf , end_of_message , cp , packtmp , sizeof packtmp ) ;\n if ( n != - 1 && __ns_name_ntop ( packtmp , buffer , buflen ) == - 1 ) {\n if ( __builtin_expect ( errno , 0 ) == EMSGSIZE ) {\n too_small : * errnop = ERANGE ;\n * h_errnop = NETDB_INTERNAL ;\n return NSS_STATUS_TRYAGAIN ;\n }\n n = - 1 ;\n }\n if ( __builtin_expect ( n < 0 || ( res_hnok ( buffer ) == 0 && ( errno = EBADMSG ) ) , 0 ) ) {\n * errnop = errno ;\n * h_errnop = NO_RECOVERY ;\n return NSS_STATUS_UNAVAIL ;\n }\n cp += n + QFIXEDSZ ;\n int haveanswer = 0 ;\n int had_error = 0 ;\n char * canon = NULL ;\n char * h_name = NULL ;\n int h_namelen = 0 ;\n if ( ancount == 0 ) return NSS_STATUS_NOTFOUND ;\n while ( ancount -- > 0 && cp < end_of_message && had_error == 0 ) {\n n = __ns_name_unpack ( answer -> buf , end_of_message , cp , packtmp , sizeof packtmp ) ;\n if ( n != - 1 && ( h_namelen = __ns_name_ntop ( packtmp , buffer , buflen ) ) == - 1 ) {\n if ( __builtin_expect ( errno , 0 ) == EMSGSIZE ) goto too_small ;\n n = - 1 ;\n }\n if ( __glibc_unlikely ( n < 0 || res_hnok ( buffer ) == 0 ) ) {\n ++ had_error ;\n continue ;\n }\n if ( * firstp && canon == NULL ) {\n h_name = buffer ;\n buffer += h_namelen ;\n buflen -= h_namelen ;\n }\n cp += n ;\n if ( __glibc_unlikely ( cp + 10 > end_of_message ) ) {\n ++ had_error ;\n continue ;\n }\n int type = __ns_get16 ( cp ) ;\n cp += INT16SZ ;\n int class = __ns_get16 ( cp ) ;\n cp += INT16SZ ;\n int32_t ttl = __ns_get32 ( cp ) ;\n cp += INT32SZ ;\n n = __ns_get16 ( cp ) ;\n cp += INT16SZ ;\n if ( class != C_IN ) {\n cp += n ;\n continue ;\n }\n if ( type == T_CNAME ) {\n char tbuf [ MAXDNAME ] ;\n if ( ttlp != NULL && ttl < * ttlp ) * ttlp = ttl ;\n n = dn_expand ( answer -> buf , end_of_message , cp , tbuf , sizeof tbuf ) ;\n if ( __glibc_unlikely ( n < 0 || res_hnok ( tbuf ) == 0 ) ) {\n ++ had_error ;\n continue ;\n }\n cp += n ;\n if ( * firstp ) {\n if ( h_name + h_namelen == buffer ) {\n buffer = h_name ;\n buflen += h_namelen ;\n }\n n = strlen ( tbuf ) + 1 ;\n if ( __glibc_unlikely ( n > buflen ) ) goto too_small ;\n if ( __glibc_unlikely ( n >= MAXHOSTNAMELEN ) ) {\n ++ had_error ;\n continue ;\n }\n canon = buffer ;\n buffer = __mempcpy ( buffer , tbuf , n ) ;\n buflen -= n ;\n h_namelen = 0 ;\n }\n continue ;\n }\n # if 1 if ( __glibc_unlikely ( type != T_A && type != T_AAAA ) ) # else if ( __builtin_expect ( type == T_SIG , 0 ) || __builtin_expect ( type == T_KEY , 0 ) || __builtin_expect ( type == T_NXT , 0 ) || __builtin_expect ( type == T_PTR , 0 ) || __builtin_expect ( type == T_DNAME , 0 ) ) # endif {\n syslog ( LOG_DEBUG | LOG_AUTH , \"getaddrinfo*.gaih_getanswer: got type \\\"%s\\\"\" , p_type ( type ) ) ;\n cp += n ;\n continue ;\n }\n if ( type != T_A && type != T_AAAA ) abort ( ) ;\n if ( * pat == NULL ) {\n uintptr_t pad = ( - ( uintptr_t ) buffer % __alignof__ ( struct gaih_addrtuple ) ) ;\n buffer += pad ;\n buflen = buflen > pad ? buflen - pad : 0 ;\n if ( __builtin_expect ( buflen < sizeof ( struct gaih_addrtuple ) , 0 ) ) goto too_small ;\n * pat = ( struct gaih_addrtuple * ) buffer ;\n buffer += sizeof ( struct gaih_addrtuple ) ;\n buflen -= sizeof ( struct gaih_addrtuple ) ;\n }\n ( * pat ) -> name = NULL ;\n ( * pat ) -> next = NULL ;\n if ( * firstp ) {\n if ( ttlp != NULL && ttl < * ttlp ) * ttlp = ttl ;\n ( * pat ) -> name = canon ? : h_name ;\n * firstp = 0 ;\n }\n ( * pat ) -> family = type == T_A ? AF_INET : AF_INET6 ;\n if ( __builtin_expect ( ( type == T_A && n != INADDRSZ ) || ( type == T_AAAA && n != IN6ADDRSZ ) , 0 ) ) {\n ++ had_error ;\n continue ;\n }\n memcpy ( ( * pat ) -> addr , cp , n ) ;\n cp += n ;\n ( * pat ) -> scopeid = 0 ;\n pat = & ( ( * pat ) -> next ) ;\n haveanswer = 1 ;\n }\n if ( haveanswer ) {\n * patp = pat ;\n * bufferp = buffer ;\n * buflenp = buflen ;\n * h_errnop = NETDB_SUCCESS ;\n return NSS_STATUS_SUCCESS ;\n }\n return canon == NULL ? NSS_STATUS_TRYAGAIN : NSS_STATUS_NOTFOUND ;\n }"}
{"idx": 11363, "target": 0, "func": "static void * U_CALLCONV myMemRealloc ( const void * context , void * mem , size_t size ) {\n char * p = ( char * ) mem ;\n char * retPtr ;\n if ( p != NULL ) {\n p -= sizeof ( ctest_AlignedMemory ) ;\n }\n retPtr = realloc ( p , size + sizeof ( ctest_AlignedMemory ) ) ;\n if ( retPtr != NULL ) {\n p += sizeof ( ctest_AlignedMemory ) ;\n }\n return retPtr ;\n }"}
{"idx": 11364, "target": 0, "func": "int i2d_ ## name ( type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;\n int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DIRECTORYSTRING )"}
{"idx": 11365, "target": 0, "func": "static cmsBool Type_LUTA2B_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) {\n cmsPipeline * Lut = ( cmsPipeline * ) Ptr ;\n int inputChan , outputChan ;\n cmsStage * A = NULL , * B = NULL , * M = NULL ;\n cmsStage * Matrix = NULL ;\n cmsStage * CLUT = NULL ;\n cmsUInt32Number offsetB = 0 , offsetMat = 0 , offsetM = 0 , offsetC = 0 , offsetA = 0 ;\n cmsUInt32Number BaseOffset , DirectoryPos , CurrentPos ;\n BaseOffset = io -> Tell ( io ) - sizeof ( _cmsTagBase ) ;\n if ( Lut -> Elements != NULL ) if ( ! cmsPipelineCheckAndRetreiveStages ( Lut , 1 , cmsSigCurveSetElemType , & B ) ) if ( ! cmsPipelineCheckAndRetreiveStages ( Lut , 3 , cmsSigCurveSetElemType , cmsSigMatrixElemType , cmsSigCurveSetElemType , & M , & Matrix , & B ) ) if ( ! cmsPipelineCheckAndRetreiveStages ( Lut , 3 , cmsSigCurveSetElemType , cmsSigCLutElemType , cmsSigCurveSetElemType , & A , & CLUT , & B ) ) if ( ! cmsPipelineCheckAndRetreiveStages ( Lut , 5 , cmsSigCurveSetElemType , cmsSigCLutElemType , cmsSigCurveSetElemType , cmsSigMatrixElemType , cmsSigCurveSetElemType , & A , & CLUT , & M , & Matrix , & B ) ) {\n cmsSignalError ( self -> ContextID , cmsERROR_NOT_SUITABLE , \"LUT is not suitable to be saved as LutAToB\" ) ;\n return FALSE ;\n }\n inputChan = cmsPipelineInputChannels ( Lut ) ;\n outputChan = cmsPipelineOutputChannels ( Lut ) ;\n if ( ! _cmsWriteUInt8Number ( io , ( cmsUInt8Number ) inputChan ) ) return FALSE ;\n if ( ! _cmsWriteUInt8Number ( io , ( cmsUInt8Number ) outputChan ) ) return FALSE ;\n if ( ! _cmsWriteUInt16Number ( io , 0 ) ) return FALSE ;\n DirectoryPos = io -> Tell ( io ) ;\n if ( ! _cmsWriteUInt32Number ( io , 0 ) ) return FALSE ;\n if ( ! _cmsWriteUInt32Number ( io , 0 ) ) return FALSE ;\n if ( ! _cmsWriteUInt32Number ( io , 0 ) ) return FALSE ;\n if ( ! _cmsWriteUInt32Number ( io , 0 ) ) return FALSE ;\n if ( ! _cmsWriteUInt32Number ( io , 0 ) ) return FALSE ;\n if ( A != NULL ) {\n offsetA = io -> Tell ( io ) - BaseOffset ;\n if ( ! WriteSetOfCurves ( self , io , cmsSigParametricCurveType , A ) ) return FALSE ;\n }\n if ( CLUT != NULL ) {\n offsetC = io -> Tell ( io ) - BaseOffset ;\n if ( ! WriteCLUT ( self , io , Lut -> SaveAs8Bits ? 1 : 2 , CLUT ) ) return FALSE ;\n }\n if ( M != NULL ) {\n offsetM = io -> Tell ( io ) - BaseOffset ;\n if ( ! WriteSetOfCurves ( self , io , cmsSigParametricCurveType , M ) ) return FALSE ;\n }\n if ( Matrix != NULL ) {\n offsetMat = io -> Tell ( io ) - BaseOffset ;\n if ( ! WriteMatrix ( self , io , Matrix ) ) return FALSE ;\n }\n if ( B != NULL ) {\n offsetB = io -> Tell ( io ) - BaseOffset ;\n if ( ! WriteSetOfCurves ( self , io , cmsSigParametricCurveType , B ) ) return FALSE ;\n }\n CurrentPos = io -> Tell ( io ) ;\n if ( ! io -> Seek ( io , DirectoryPos ) ) return FALSE ;\n if ( ! _cmsWriteUInt32Number ( io , offsetB ) ) return FALSE ;\n if ( ! _cmsWriteUInt32Number ( io , offsetMat ) ) return FALSE ;\n if ( ! _cmsWriteUInt32Number ( io , offsetM ) ) return FALSE ;\n if ( ! _cmsWriteUInt32Number ( io , offsetC ) ) return FALSE ;\n if ( ! _cmsWriteUInt32Number ( io , offsetA ) ) return FALSE ;\n if ( ! io -> Seek ( io , CurrentPos ) ) return FALSE ;\n return TRUE ;\n cmsUNUSED_PARAMETER ( nItems ) ;\n }"}
{"idx": 11366, "target": 0, "func": "static int dissect_ber_any_oid_str ( gboolean implicit_tag , asn1_ctx_t * actx , proto_tree * tree , tvbuff_t * tvb , int offset , gint hf_id , const char * * value_stringx , gboolean is_absolute ) {\n tvbuff_t * value_tvb = NULL ;\n guint length ;\n offset = dissect_ber_any_oid ( implicit_tag , actx , tree , tvb , offset , hf_id , ( value_stringx ) ? & value_tvb : NULL , is_absolute ) ;\n if ( value_stringx ) {\n if ( value_tvb && ( length = tvb_reported_length ( value_tvb ) ) ) {\n * value_stringx = oid_encoded2string ( wmem_packet_scope ( ) , tvb_get_ptr ( value_tvb , 0 , length ) , length ) ;\n }\n else {\n * value_stringx = \"\" ;\n }\n }\n return offset ;\n }"}
{"idx": 11367, "target": 0, "func": "X509 * d2i_X509_fp ( FILE * fp , X509 * * x509 ) {\n return ASN1_item_d2i_fp ( ASN1_ITEM_rptr ( X509 ) , fp , x509 ) ;\n }"}
{"idx": 11368, "target": 0, "func": "char * ber_start ( BerElement * ber ) {\n return ber -> ber_buf ;\n }"}
{"idx": 11369, "target": 0, "func": "void append_info ( DYNAMIC_STRING * ds , ulonglong affected_rows , const char * info ) {\n char buf [ 40 ] , buff2 [ 21 ] ;\n sprintf ( buf , \"affected rows: %s\\n\" , llstr ( affected_rows , buff2 ) ) ;\n dynstr_append ( ds , buf ) ;\n if ( info ) {\n dynstr_append ( ds , \"info: \" ) ;\n dynstr_append ( ds , info ) ;\n dynstr_append_mem ( ds , \"\\n\" , 1 ) ;\n }\n }"}
{"idx": 11370, "target": 0, "func": "static void gst_asf_demux_release_old_pads ( GstASFDemux * demux ) {\n GST_DEBUG_OBJECT ( demux , \"Releasing old pads\" ) ;\n while ( demux -> old_num_streams > 0 ) {\n gst_pad_push_event ( demux -> old_stream [ demux -> old_num_streams - 1 ] . pad , gst_event_new_eos ( ) ) ;\n gst_asf_demux_free_stream ( demux , & demux -> old_stream [ demux -> old_num_streams - 1 ] ) ;\n -- demux -> old_num_streams ;\n }\n memset ( demux -> old_stream , 0 , sizeof ( demux -> old_stream ) ) ;\n demux -> old_num_streams = 0 ;\n }"}
{"idx": 11371, "target": 1, "func": "static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 11372, "target": 0, "func": "void fz_fin_cached_color_converter ( fz_context * ctx , fz_color_converter * cc_ ) {\n fz_cached_color_converter * cc ;\n if ( cc_ == NULL ) return ;\n cc = cc_ -> opaque ;\n if ( cc == NULL ) return ;\n cc_ -> opaque = NULL ;\n fz_drop_hash_table ( ctx , cc -> hash ) ;\n fz_drop_color_converter ( ctx , & cc -> base ) ;\n fz_free ( ctx , cc ) ;\n }"}
{"idx": 11373, "target": 0, "func": "static int qemuMonitorTextParseBlockIoThrottle ( const char * result , const char * device , virDomainBlockIoTuneInfoPtr reply ) {\n char * dummy = NULL ;\n int ret = - 1 ;\n const char * p , * eol ;\n int devnamelen = strlen ( device ) ;\n p = result ;\n while ( * p ) {\n if ( STRPREFIX ( p , QEMU_DRIVE_HOST_PREFIX ) ) p += strlen ( QEMU_DRIVE_HOST_PREFIX ) ;\n if ( STREQLEN ( p , device , devnamelen ) && p [ devnamelen ] == ':' && p [ devnamelen + 1 ] == ' ' ) {\n eol = strchr ( p , '\\n' ) ;\n if ( ! eol ) eol = p + strlen ( p ) ;\n p += devnamelen + 2 ;\n while ( * p ) {\n if ( STRPREFIX ( p , \"bps=\" ) ) {\n p += strlen ( \"bps=\" ) ;\n if ( virStrToLong_ull ( p , & dummy , 10 , & reply -> total_bytes_sec ) == - 1 ) VIR_DEBUG ( \"error reading total_bytes_sec: %s\" , p ) ;\n }\n else if ( STRPREFIX ( p , \"bps_rd=\" ) ) {\n p += strlen ( \"bps_rd=\" ) ;\n if ( virStrToLong_ull ( p , & dummy , 10 , & reply -> read_bytes_sec ) == - 1 ) VIR_DEBUG ( \"error reading read_bytes_sec: %s\" , p ) ;\n }\n else if ( STRPREFIX ( p , \"bps_wr=\" ) ) {\n p += strlen ( \"bps_wr=\" ) ;\n if ( virStrToLong_ull ( p , & dummy , 10 , & reply -> write_bytes_sec ) == - 1 ) VIR_DEBUG ( \"error reading write_bytes_sec: %s\" , p ) ;\n }\n else if ( STRPREFIX ( p , \"iops=\" ) ) {\n p += strlen ( \"iops=\" ) ;\n if ( virStrToLong_ull ( p , & dummy , 10 , & reply -> total_iops_sec ) == - 1 ) VIR_DEBUG ( \"error reading total_iops_sec: %s\" , p ) ;\n }\n else if ( STRPREFIX ( p , \"iops_rd=\" ) ) {\n p += strlen ( \"iops_rd=\" ) ;\n if ( virStrToLong_ull ( p , & dummy , 10 , & reply -> read_iops_sec ) == - 1 ) VIR_DEBUG ( \"error reading read_iops_sec: %s\" , p ) ;\n }\n else if ( STRPREFIX ( p , \"iops_wr=\" ) ) {\n p += strlen ( \"iops_wr=\" ) ;\n if ( virStrToLong_ull ( p , & dummy , 10 , & reply -> write_iops_sec ) == - 1 ) VIR_DEBUG ( \"error reading write_iops_sec: %s\" , p ) ;\n }\n else {\n VIR_DEBUG ( \" unknown block info %s\" , p ) ;\n }\n p = strchr ( p , ' ' ) ;\n if ( ! p || p >= eol ) break ;\n p ++ ;\n }\n ret = 0 ;\n goto cleanup ;\n }\n p = strchr ( p , '\\n' ) ;\n if ( ! p ) break ;\n p ++ ;\n }\n qemuReportError ( VIR_ERR_INVALID_ARG , _ ( \"No info for device '%s'\" ) , device ) ;\n cleanup : return ret ;\n }"}
{"idx": 11374, "target": 1, "func": "TEST_F ( ProtocolHandlerRegistryTest , TestIsSameOrigin ) {\n ProtocolHandler ph1 = CreateProtocolHandler ( \"mailto\" , GURL ( \"http://test.com/%s\" ) , \"test1\" ) ;\n ProtocolHandler ph2 = CreateProtocolHandler ( \"mailto\" , GURL ( \"http://test.com/updated-url/%s\" ) , \"test2\" ) ;\n ProtocolHandler ph3 = CreateProtocolHandler ( \"mailto\" , GURL ( \"http://other.com/%s\" ) , \"test\" ) ;\n ASSERT_EQ ( ph1 . url ( ) . GetOrigin ( ) == ph2 . url ( ) . GetOrigin ( ) , ph1 . IsSameOrigin ( ph2 ) ) ;\n ASSERT_EQ ( ph1 . url ( ) . GetOrigin ( ) == ph2 . url ( ) . GetOrigin ( ) , ph2 . IsSameOrigin ( ph1 ) ) ;\n ASSERT_EQ ( ph2 . url ( ) . GetOrigin ( ) == ph3 . url ( ) . GetOrigin ( ) , ph2 . IsSameOrigin ( ph3 ) ) ;\n ASSERT_EQ ( ph3 . url ( ) . GetOrigin ( ) == ph2 . url ( ) . GetOrigin ( ) , ph3 . IsSameOrigin ( ph2 ) ) ;\n }"}
{"idx": 11375, "target": 0, "func": "static afs_int32 put_prentries ( struct prentry * tentry , prentries * bulkentries ) {\n struct prlistentries * entry ;\n if ( bulkentries -> prentries_val == 0 ) {\n bulkentries -> prentries_len = 0 ;\n bulkentries -> prentries_val = ( struct prlistentries * ) malloc ( PR_MAXENTRIES * sizeof ( struct prentry ) ) ;\n if ( ! bulkentries -> prentries_val ) {\n return ( PRNOMEM ) ;\n }\n }\n if ( bulkentries -> prentries_len >= PR_MAXENTRIES ) {\n return ( - 1 ) ;\n }\n entry = ( struct prlistentries * ) bulkentries -> prentries_val ;\n entry += bulkentries -> prentries_len ;\n entry -> flags = tentry -> flags >> PRIVATE_SHIFT ;\n if ( entry -> flags == 0 ) {\n entry -> flags = ( ( tentry -> flags & PRGRP ) ? prp_group_default : prp_user_default ) >> PRIVATE_SHIFT ;\n }\n entry -> owner = tentry -> owner ;\n entry -> id = tentry -> id ;\n entry -> creator = tentry -> creator ;\n entry -> ngroups = tentry -> ngroups ;\n entry -> nusers = tentry -> nusers ;\n entry -> count = tentry -> count ;\n strncpy ( entry -> name , tentry -> name , PR_MAXNAMELEN ) ;\n memset ( entry -> reserved , 0 , sizeof ( entry -> reserved ) ) ;\n bulkentries -> prentries_len ++ ;\n return 0 ;\n }"}
{"idx": 11376, "target": 0, "func": "void bn_sqr_comba8 ( BN_ULONG * r , const BN_ULONG * a ) {\n BN_ULONG c1 , c2 , c3 ;\n c1 = 0 ;\n c2 = 0 ;\n c3 = 0 ;\n sqr_add_c ( a , 0 , c1 , c2 , c3 ) ;\n r [ 0 ] = c1 ;\n c1 = 0 ;\n sqr_add_c2 ( a , 1 , 0 , c2 , c3 , c1 ) ;\n r [ 1 ] = c2 ;\n c2 = 0 ;\n sqr_add_c ( a , 1 , c3 , c1 , c2 ) ;\n sqr_add_c2 ( a , 2 , 0 , c3 , c1 , c2 ) ;\n r [ 2 ] = c3 ;\n c3 = 0 ;\n sqr_add_c2 ( a , 3 , 0 , c1 , c2 , c3 ) ;\n sqr_add_c2 ( a , 2 , 1 , c1 , c2 , c3 ) ;\n r [ 3 ] = c1 ;\n c1 = 0 ;\n sqr_add_c ( a , 2 , c2 , c3 , c1 ) ;\n sqr_add_c2 ( a , 3 , 1 , c2 , c3 , c1 ) ;\n sqr_add_c2 ( a , 4 , 0 , c2 , c3 , c1 ) ;\n r [ 4 ] = c2 ;\n c2 = 0 ;\n sqr_add_c2 ( a , 5 , 0 , c3 , c1 , c2 ) ;\n sqr_add_c2 ( a , 4 , 1 , c3 , c1 , c2 ) ;\n sqr_add_c2 ( a , 3 , 2 , c3 , c1 , c2 ) ;\n r [ 5 ] = c3 ;\n c3 = 0 ;\n sqr_add_c ( a , 3 , c1 , c2 , c3 ) ;\n sqr_add_c2 ( a , 4 , 2 , c1 , c2 , c3 ) ;\n sqr_add_c2 ( a , 5 , 1 , c1 , c2 , c3 ) ;\n sqr_add_c2 ( a , 6 , 0 , c1 , c2 , c3 ) ;\n r [ 6 ] = c1 ;\n c1 = 0 ;\n sqr_add_c2 ( a , 7 , 0 , c2 , c3 , c1 ) ;\n sqr_add_c2 ( a , 6 , 1 , c2 , c3 , c1 ) ;\n sqr_add_c2 ( a , 5 , 2 , c2 , c3 , c1 ) ;\n sqr_add_c2 ( a , 4 , 3 , c2 , c3 , c1 ) ;\n r [ 7 ] = c2 ;\n c2 = 0 ;\n sqr_add_c ( a , 4 , c3 , c1 , c2 ) ;\n sqr_add_c2 ( a , 5 , 3 , c3 , c1 , c2 ) ;\n sqr_add_c2 ( a , 6 , 2 , c3 , c1 , c2 ) ;\n sqr_add_c2 ( a , 7 , 1 , c3 , c1 , c2 ) ;\n r [ 8 ] = c3 ;\n c3 = 0 ;\n sqr_add_c2 ( a , 7 , 2 , c1 , c2 , c3 ) ;\n sqr_add_c2 ( a , 6 , 3 , c1 , c2 , c3 ) ;\n sqr_add_c2 ( a , 5 , 4 , c1 , c2 , c3 ) ;\n r [ 9 ] = c1 ;\n c1 = 0 ;\n sqr_add_c ( a , 5 , c2 , c3 , c1 ) ;\n sqr_add_c2 ( a , 6 , 4 , c2 , c3 , c1 ) ;\n sqr_add_c2 ( a , 7 , 3 , c2 , c3 , c1 ) ;\n r [ 10 ] = c2 ;\n c2 = 0 ;\n sqr_add_c2 ( a , 7 , 4 , c3 , c1 , c2 ) ;\n sqr_add_c2 ( a , 6 , 5 , c3 , c1 , c2 ) ;\n r [ 11 ] = c3 ;\n c3 = 0 ;\n sqr_add_c ( a , 6 , c1 , c2 , c3 ) ;\n sqr_add_c2 ( a , 7 , 5 , c1 , c2 , c3 ) ;\n r [ 12 ] = c1 ;\n c1 = 0 ;\n sqr_add_c2 ( a , 7 , 6 , c2 , c3 , c1 ) ;\n r [ 13 ] = c2 ;\n c2 = 0 ;\n sqr_add_c ( a , 7 , c3 , c1 , c2 ) ;\n r [ 14 ] = c3 ;\n r [ 15 ] = c1 ;\n }"}
{"idx": 11377, "target": 0, "func": "static void pdf_run_b ( fz_context * ctx , pdf_processor * proc ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_show_path ( ctx , pr , 1 , 1 , 1 , 0 ) ;\n }"}
{"idx": 11378, "target": 0, "func": "unsigned long # define BN_BYTES 8 # endif # ifdef SIXTY_FOUR_BIT # define BN_ULONG unsigned long long # define BN_BYTES 8 # endif # ifdef THIRTY_TWO_BIT # define BN_ULONG unsigned int # define BN_BYTES 4 # endif # define BN_BITS2 ( BN_BYTES * 8 ) # define BN_BITS ( BN_BITS2 * 2 ) # define BN_TBIT ( ( BN_ULONG ) 1 << ( BN_BITS2 - 1 ) ) # define BN_FLG_MALLOCED 0x01 # define BN_FLG_STATIC_DATA 0x02 # define BN_FLG_CONSTTIME 0x04 # define BN_FLG_SECURE 0x08 # if OPENSSL_API_COMPAT < 0x00908000L # define BN_FLG_EXP_CONSTTIME BN_FLG_CONSTTIME # define BN_FLG_FREE 0x8000 # endif void BN_set_flags ( BIGNUM * b , int n ) ;\n int BN_get_flags ( const BIGNUM * b , int n ) ;\n # define BN_RAND_TOP_ANY - 1 # define BN_RAND_TOP_ONE 0 # define BN_RAND_TOP_TWO 1 # define BN_RAND_BOTTOM_ANY 0 # define BN_RAND_BOTTOM_ODD 1 void BN_with_flags ( BIGNUM * dest , const BIGNUM * b , int flags ) ;\n int BN_GENCB_call ( BN_GENCB * cb , int a , int b ) ;\n BN_GENCB * BN_GENCB_new ( void ) ;\n void BN_GENCB_free ( BN_GENCB * cb ) ;\n void BN_GENCB_set_old ( BN_GENCB * gencb , void ( * callback ) ( int , int , void * ) , void * cb_arg ) ;\n void BN_GENCB_set ( BN_GENCB * gencb , int ( * callback ) ( int , int , BN_GENCB * ) , void * cb_arg ) ;\n void * BN_GENCB_get_arg ( BN_GENCB * cb ) ;\n # define BN_prime_checks 0 # define BN_prime_checks_for_size ( b ) ( ( b ) >= 3747 ? 3 : ( b ) >= 1345 ? 4 : ( b ) >= 476 ? 5 : ( b ) >= 400 ? 6 : ( b ) >= 347 ? 7 : ( b ) >= 308 ? 8 : ( b ) >= 55 ? 27 : 34 ) # define BN_num_bytes ( a ) ( ( BN_num_bits ( a ) + 7 ) / 8 ) int BN_abs_is_word ( const BIGNUM * a , const BN_ULONG w ) ;\n int BN_is_zero ( const BIGNUM * a ) ;\n int BN_is_one ( const BIGNUM * a ) ;\n int BN_is_word ( const BIGNUM * a , const BN_ULONG w ) ;\n int BN_is_odd ( const BIGNUM * a ) ;\n # define BN_one ( a ) ( BN_set_word ( ( a ) , 1 ) ) void BN_zero_ex ( BIGNUM * a ) ;\n # if OPENSSL_API_COMPAT >= 0x00908000L # define BN_zero ( a ) BN_zero_ex ( a ) # else # define BN_zero ( a ) ( BN_set_word ( ( a ) , 0 ) ) # endif const BIGNUM * BN_value_one ( void ) ;\n char * BN_options ( void ) ;\n BN_CTX * BN_CTX_new ( void ) ;\n BN_CTX * BN_CTX_secure_new ( void ) ;\n void BN_CTX_free ( BN_CTX * c ) ;\n void BN_CTX_start ( BN_CTX * ctx ) ;\n BIGNUM * BN_CTX_get ( BN_CTX * ctx ) ;\n void BN_CTX_end ( BN_CTX * ctx ) ;\n int BN_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_priv_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_priv_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_pseudo_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_pseudo_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_num_bits ( const BIGNUM * a ) ;\n int BN_num_bits_word ( BN_ULONG l ) ;\n int BN_security_bits ( int L , int N ) ;\n BIGNUM * BN_new ( void ) ;\n BIGNUM * BN_secure_new ( void ) ;\n void BN_clear_free ( BIGNUM * a ) ;\n BIGNUM * BN_copy ( BIGNUM * a , const BIGNUM * b ) ;\n void BN_swap ( BIGNUM * a , BIGNUM * b ) ;\n BIGNUM * BN_bin2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2bin ( const BIGNUM * a , unsigned char * to ) ;\n int BN_bn2binpad ( const BIGNUM * a , unsigned char * to , int tolen ) ;\n BIGNUM * BN_lebin2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2lebinpad ( const BIGNUM * a , unsigned char * to , int tolen ) ;\n BIGNUM * BN_mpi2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2mpi ( const BIGNUM * a , unsigned char * to ) ;\n int BN_sub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_usub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_uadd ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n int BN_sqr ( BIGNUM * r , const BIGNUM * a , BN_CTX * ctx ) ;\n void BN_set_negative ( BIGNUM * b , int n ) ;\n int BN_is_negative ( const BIGNUM * b ) ;\n int BN_div ( BIGNUM * dv , BIGNUM * rem , const BIGNUM * m , const BIGNUM * d , BN_CTX * ctx ) ;\n # define BN_mod ( rem , m , d , ctx ) BN_div ( NULL , ( rem ) , ( m ) , ( d ) , ( ctx ) ) int BN_nnmod ( BIGNUM * r , const BIGNUM * m , const BIGNUM * d , BN_CTX * ctx ) ;\n int BN_mod_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_add_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m ) ;\n int BN_mod_sub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_sub_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m ) ;\n int BN_mod_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_sqr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift1 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift1_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m ) ;\n int BN_mod_lshift ( BIGNUM * r , const BIGNUM * a , int n , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift_quick ( BIGNUM * r , const BIGNUM * a , int n , const BIGNUM * m ) ;\n BN_ULONG BN_mod_word ( const BIGNUM * a , BN_ULONG w )"}
{"idx": 11379, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize ) ;\n DECL_PIOCTL ( PGetCacheSize ) ;\n DECL_PIOCTL ( PRemoveCallBack ) ;\n DECL_PIOCTL ( PNewCell ) ;\n DECL_PIOCTL ( PNewAlias ) ;\n DECL_PIOCTL ( PListCells ) ;\n DECL_PIOCTL ( PListAliases ) ;\n DECL_PIOCTL ( PRemoveMount ) ;\n DECL_PIOCTL ( PGetCellStatus ) ;\n DECL_PIOCTL ( PSetCellStatus ) ;\n DECL_PIOCTL ( PFlushVolumeData ) ;\n DECL_PIOCTL ( PFlushAllVolumeData ) ;\n DECL_PIOCTL ( PGetVnodeXStatus ) ;\n DECL_PIOCTL ( PGetVnodeXStatus2 ) ;\n DECL_PIOCTL ( PSetSysName ) ;\n DECL_PIOCTL ( PSetSPrefs ) ;\n DECL_PIOCTL ( PSetSPrefs33 ) ;\n DECL_PIOCTL ( PGetSPrefs )"}
{"idx": 11380, "target": 1, "func": "TEST_F ( WebUsbDetectorTest , ThreeUsbDeviceAddedAndRemovedDifferentOrder ) {\n base : : string16 product_name_1 = base : : UTF8ToUTF16 ( kProductName_1 ) ;\n GURL landing_page_1 ( kLandingPage_1 ) ;\n scoped_refptr < device : : MockUsbDevice > device_1 ( new device : : MockUsbDevice ( 0 , 1 , \"Google\" , kProductName_1 , \"002\" , landing_page_1 ) ) ;\n std : : string guid_1 = device_1 -> guid ( ) ;\n base : : string16 product_name_2 = base : : UTF8ToUTF16 ( kProductName_2 ) ;\n GURL landing_page_2 ( kLandingPage_2 ) ;\n scoped_refptr < device : : MockUsbDevice > device_2 ( new device : : MockUsbDevice ( 3 , 4 , \"Google\" , kProductName_2 , \"005\" , landing_page_2 ) ) ;\n std : : string guid_2 = device_2 -> guid ( ) ;\n base : : string16 product_name_3 = base : : UTF8ToUTF16 ( kProductName_3 ) ;\n GURL landing_page_3 ( kLandingPage_3 ) ;\n scoped_refptr < device : : MockUsbDevice > device_3 ( new device : : MockUsbDevice ( 6 , 7 , \"Google\" , kProductName_3 , \"008\" , landing_page_3 ) ) ;\n std : : string guid_3 = device_3 -> guid ( ) ;\n Initialize ( ) ;\n device_client_ . usb_service ( ) -> AddDevice ( device_1 ) ;\n message_center : : Notification * notification_1 = message_center_ -> FindVisibleNotificationById ( guid_1 ) ;\n ASSERT_TRUE ( notification_1 != nullptr ) ;\n base : : string16 expected_title_1 = base : : ASCIIToUTF16 ( \"Google Product A detected\" ) ;\n EXPECT_EQ ( expected_title_1 , notification_1 -> title ( ) ) ;\n base : : string16 expected_message_1 = base : : ASCIIToUTF16 ( \"Go to www.google.com/A to connect.\" ) ;\n EXPECT_EQ ( expected_message_1 , notification_1 -> message ( ) ) ;\n EXPECT_TRUE ( notification_1 -> delegate ( ) != nullptr ) ;\n device_client_ . usb_service ( ) -> AddDevice ( device_2 ) ;\n message_center : : Notification * notification_2 = message_center_ -> FindVisibleNotificationById ( guid_2 ) ;\n ASSERT_TRUE ( notification_2 != nullptr ) ;\n base : : string16 expected_title_2 = base : : ASCIIToUTF16 ( \"Google Product B detected\" ) ;\n EXPECT_EQ ( expected_title_2 , notification_2 -> title ( ) ) ;\n base : : string16 expected_message_2 = base : : ASCIIToUTF16 ( \"Go to www.google.com/B to connect.\" ) ;\n EXPECT_EQ ( expected_message_2 , notification_2 -> message ( ) ) ;\n EXPECT_TRUE ( notification_2 -> delegate ( ) != nullptr ) ;\n device_client_ . usb_service ( ) -> RemoveDevice ( device_2 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_2 ) == nullptr ) ;\n device_client_ . usb_service ( ) -> AddDevice ( device_3 ) ;\n message_center : : Notification * notification_3 = message_center_ -> FindVisibleNotificationById ( guid_3 ) ;\n ASSERT_TRUE ( notification_3 != nullptr ) ;\n base : : string16 expected_title_3 = base : : ASCIIToUTF16 ( \"Google Product C detected\" ) ;\n EXPECT_EQ ( expected_title_3 , notification_3 -> title ( ) ) ;\n base : : string16 expected_message_3 = base : : ASCIIToUTF16 ( \"Go to www.google.com/C to connect.\" ) ;\n EXPECT_EQ ( expected_message_3 , notification_3 -> message ( ) ) ;\n EXPECT_TRUE ( notification_3 -> delegate ( ) != nullptr ) ;\n device_client_ . usb_service ( ) -> RemoveDevice ( device_1 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_1 ) == nullptr ) ;\n device_client_ . usb_service ( ) -> RemoveDevice ( device_3 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_3 ) == nullptr ) ;\n }"}
{"idx": 11381, "target": 0, "func": "static void dissect_rsvp_diffserv ( proto_tree * ti , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int type ) {\n int mapnb , count ;\n int * hfindexes [ ] = {\n & hf_rsvp_filter [ RSVPF_DIFFSERV_MAP ] , & hf_rsvp_filter [ RSVPF_DIFFSERV_MAP_EXP ] , & hf_rsvp_filter [ RSVPF_DIFFSERV_PHBID ] , & hf_rsvp_filter [ RSVPF_DIFFSERV_PHBID_DSCP ] , & hf_rsvp_filter [ RSVPF_DIFFSERV_PHBID_CODE ] , & hf_rsvp_filter [ RSVPF_DIFFSERV_PHBID_BIT14 ] , & hf_rsvp_filter [ RSVPF_DIFFSERV_PHBID_BIT15 ] }\n ;\n gint * etts [ ] = {\n & TREE ( TT_DIFFSERV_MAP ) , & TREE ( TT_DIFFSERV_MAP_PHBID ) }\n ;\n proto_item_set_text ( ti , \"DIFFSERV: \" ) ;\n offset += 3 ;\n switch ( type ) {\n case 1 : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset , 1 , type , \"1 - E-LSP\" ) ;\n proto_tree_add_uint ( rsvp_object_tree , hf_rsvp_filter [ RSVPF_DIFFSERV_MAPNB ] , tvb , offset + 4 , 1 , mapnb = tvb_get_guint8 ( tvb , offset + 4 ) & 15 ) ;\n proto_item_append_text ( ti , \"E-LSP, %u MAP%s\" , mapnb , ( mapnb == 0 ) ? \"\" : \"s\" ) ;\n offset += 5 ;\n for ( count = 0 ;\n count < mapnb ;\n count ++ ) {\n dissect_diffserv_mpls_common ( tvb , rsvp_object_tree , type , offset , hfindexes , etts ) ;\n offset += 4 ;\n }\n break ;\n case 2 : proto_item_append_text ( ti , \"L-LSP\" ) ;\n proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset , 1 , type , \"2 - L-LSP\" ) ;\n dissect_diffserv_mpls_common ( tvb , rsvp_object_tree , type , offset + 3 , hfindexes , etts ) ;\n break ;\n default : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset , 1 , type , \"Unknown (%u)\" , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_diffserv_data , tvb , offset + 1 , obj_length - 4 , ENC_NA ) ;\n break ;\n }\n }"}
{"idx": 11382, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( MimeHandlerViewTest , NonAsciiHeaders ) {\n RunTest ( \"testNonAsciiHeaders.csv\" ) ;\n }"}
{"idx": 11383, "target": 0, "func": "GType hb_gobject_ ## name ## _get_type ( void ) \\ {\n static gsize type_id = 0 ;\n if ( g_once_init_enter ( & type_id ) ) {\n GType id = g_boxed_type_register_static ( g_intern_static_string ( \"hb_\" # name \"_t\" ) , ( GBoxedCopyFunc ) copy_func , ( GBoxedFreeFunc ) free_func ) ;\n g_once_init_leave ( & type_id , id ) ;\n }\n return type_id ;\n \\ }\n # define HB_DEFINE_OBJECT_TYPE ( name ) HB_DEFINE_BOXED_TYPE ( name , hb_ ## name ## _reference , hb_ ## name ## _destroy ) ;\n # define HB_DEFINE_VALUE_TYPE ( name ) static hb_ ## name ## _t * _hb_ ## name ## _reference ( const hb_ ## name ## _t * l ) {\n hb_ ## name ## _t * c = ( hb_ ## name ## _t * ) calloc ( 1 , sizeof ( hb_ ## name ## _t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * l ;\n return c ;\n }\n static void _hb_ ## name ## _destroy ( hb_ ## name ## _t * l ) {\n free ( l ) ;\n }\n HB_DEFINE_BOXED_TYPE ( name , _hb_ ## name ## _reference , _hb_ ## name ## _destroy ) ;\n HB_DEFINE_OBJECT_TYPE ( buffer ) HB_DEFINE_OBJECT_TYPE ( blob ) HB_DEFINE_OBJECT_TYPE ( face ) HB_DEFINE_OBJECT_TYPE ( font )"}
{"idx": 11384, "target": 0, "func": "jpc_enc_tile_t * jpc_enc_tile_create ( jpc_enc_cp_t * cp , jas_image_t * image , int tileno ) {\n jpc_enc_tile_t * tile ;\n uint_fast32_t htileno ;\n uint_fast32_t vtileno ;\n uint_fast16_t lyrno ;\n uint_fast16_t cmptno ;\n jpc_enc_tcmpt_t * tcmpt ;\n if ( ! ( tile = jas_malloc ( sizeof ( jpc_enc_tile_t ) ) ) ) {\n goto error ;\n }\n tile -> tcmpts = 0 ;\n tile -> lyrsizes = 0 ;\n tile -> numtcmpts = cp -> numcmpts ;\n tile -> pi = 0 ;\n tile -> tileno = tileno ;\n htileno = tileno % cp -> numhtiles ;\n vtileno = tileno / cp -> numhtiles ;\n tile -> tlx = JAS_MAX ( cp -> tilegrdoffx + htileno * cp -> tilewidth , cp -> imgareatlx ) ;\n tile -> tly = JAS_MAX ( cp -> tilegrdoffy + vtileno * cp -> tileheight , cp -> imgareatly ) ;\n tile -> brx = JAS_MIN ( cp -> tilegrdoffx + ( htileno + 1 ) * cp -> tilewidth , cp -> refgrdwidth ) ;\n tile -> bry = JAS_MIN ( cp -> tilegrdoffy + ( vtileno + 1 ) * cp -> tileheight , cp -> refgrdheight ) ;\n tile -> intmode = cp -> tcp . intmode ;\n tile -> csty = cp -> tcp . csty ;\n tile -> prg = cp -> tcp . prg ;\n tile -> mctid = cp -> tcp . mctid ;\n tile -> numlyrs = cp -> tcp . numlyrs ;\n if ( ! ( tile -> lyrsizes = jas_alloc2 ( tile -> numlyrs , sizeof ( uint_fast32_t ) ) ) ) {\n goto error ;\n }\n for ( lyrno = 0 ;\n lyrno < tile -> numlyrs ;\n ++ lyrno ) {\n tile -> lyrsizes [ lyrno ] = 0 ;\n }\n if ( ! ( tile -> tcmpts = jas_alloc2 ( cp -> numcmpts , sizeof ( jpc_enc_tcmpt_t ) ) ) ) {\n goto error ;\n }\n for ( cmptno = 0 , tcmpt = tile -> tcmpts ;\n cmptno < cp -> numcmpts ;\n ++ cmptno , ++ tcmpt ) {\n tcmpt -> rlvls = 0 ;\n tcmpt -> tsfb = 0 ;\n tcmpt -> data = 0 ;\n }\n for ( cmptno = 0 , tcmpt = tile -> tcmpts ;\n cmptno < cp -> numcmpts ;\n ++ cmptno , ++ tcmpt ) {\n if ( ! tcmpt_create ( tcmpt , cp , image , tile ) ) {\n goto error ;\n }\n }\n switch ( tile -> mctid ) {\n case JPC_MCT_RCT : tile -> tcmpts [ 0 ] . synweight = jpc_dbltofix ( sqrt ( 3.0 ) ) ;\n tile -> tcmpts [ 1 ] . synweight = jpc_dbltofix ( sqrt ( 0.6875 ) ) ;\n tile -> tcmpts [ 2 ] . synweight = jpc_dbltofix ( sqrt ( 0.6875 ) ) ;\n break ;\n case JPC_MCT_ICT : tile -> tcmpts [ 0 ] . synweight = jpc_dbltofix ( sqrt ( 3.0000 ) ) ;\n tile -> tcmpts [ 1 ] . synweight = jpc_dbltofix ( sqrt ( 3.2584 ) ) ;\n tile -> tcmpts [ 2 ] . synweight = jpc_dbltofix ( sqrt ( 2.4755 ) ) ;\n break ;\n default : case JPC_MCT_NONE : for ( cmptno = 0 , tcmpt = tile -> tcmpts ;\n cmptno < cp -> numcmpts ;\n ++ cmptno , ++ tcmpt ) {\n tcmpt -> synweight = JPC_FIX_ONE ;\n }\n break ;\n }\n if ( ! ( tile -> pi = jpc_enc_pi_create ( cp , tile ) ) ) {\n goto error ;\n }\n return tile ;\n error : if ( tile ) {\n jpc_enc_tile_destroy ( tile ) ;\n }\n return 0 ;\n }"}
{"idx": 11385, "target": 0, "func": "static gboolean test_dir_is_parent ( GFile * child , GFile * root ) {\n GFile * f , * tmp ;\n f = g_file_dup ( child ) ;\n while ( f ) {\n if ( g_file_equal ( f , root ) ) {\n g_object_unref ( f ) ;\n return TRUE ;\n }\n tmp = f ;\n f = g_file_get_parent ( f ) ;\n g_object_unref ( tmp ) ;\n }\n if ( f ) {\n g_object_unref ( f ) ;\n }\n return FALSE ;\n }"}
{"idx": 11386, "target": 0, "func": "PREDICTION_MODE vp9_above_block_mode ( const MODE_INFO * cur_mi , const MODE_INFO * above_mi , int b ) {\n if ( b == 0 || b == 1 ) {\n if ( ! above_mi || is_inter_block ( & above_mi -> mbmi ) ) return DC_PRED ;\n return get_y_mode ( above_mi , b + 2 ) ;\n }\n else {\n assert ( b == 2 || b == 3 ) ;\n return cur_mi -> bmi [ b - 2 ] . as_mode ;\n }\n }"}
{"idx": 11387, "target": 0, "func": "static void test_bug6049 ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND my_bind [ 1 ] ;\n MYSQL_RES * res ;\n MYSQL_ROW row ;\n const char * stmt_text ;\n char buffer [ 30 ] ;\n ulong length ;\n int rc ;\n myheader ( \"test_bug6049\" ) ;\n stmt_text = \"SELECT MAKETIME(-25, 12, 12)\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n res = mysql_store_result ( mysql ) ;\n row = mysql_fetch_row ( res ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 0 ] . buffer = & buffer ;\n my_bind [ 0 ] . buffer_length = sizeof ( buffer ) ;\n my_bind [ 0 ] . length = & length ;\n mysql_stmt_bind_result ( stmt , my_bind ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == 0 ) ;\n if ( ! opt_silent ) {\n printf ( \"Result from query: %s\\n\" , row [ 0 ] ) ;\n printf ( \"Result from prepared statement: %s\\n\" , ( char * ) buffer ) ;\n }\n DIE_UNLESS ( strcmp ( row [ 0 ] , ( char * ) buffer ) == 0 ) ;\n mysql_free_result ( res ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 11388, "target": 0, "func": "static void pcnet_transmit ( PCNetState * s ) {\n hwaddr xmit_cxda = 0 ;\n int count = CSR_XMTRL ( s ) - 1 ;\n int add_crc = 0 ;\n int bcnt ;\n s -> xmit_pos = - 1 ;\n if ( ! CSR_TXON ( s ) ) {\n s -> csr [ 0 ] &= ~ 0x0008 ;\n return ;\n }\n s -> tx_busy = 1 ;\n txagain : if ( pcnet_tdte_poll ( s ) ) {\n struct pcnet_TMD tmd ;\n TMDLOAD ( & tmd , PHYSADDR ( s , CSR_CXDA ( s ) ) ) ;\n # ifdef PCNET_DEBUG_TMD printf ( \" TMDLOAD 0x%08x\\n\" , PHYSADDR ( s , CSR_CXDA ( s ) ) ) ;\n PRINT_TMD ( & tmd ) ;\n # endif if ( GET_FIELD ( tmd . status , TMDS , STP ) ) {\n s -> xmit_pos = 0 ;\n xmit_cxda = PHYSADDR ( s , CSR_CXDA ( s ) ) ;\n if ( BCR_SWSTYLE ( s ) != 1 ) add_crc = GET_FIELD ( tmd . status , TMDS , ADDFCS ) ;\n }\n if ( s -> lnkst == 0 && ( ! CSR_LOOP ( s ) || ( ! CSR_INTL ( s ) && ! BCR_TMAULOOP ( s ) ) ) ) {\n SET_FIELD ( & tmd . misc , TMDM , LCAR , 1 ) ;\n SET_FIELD ( & tmd . status , TMDS , ERR , 1 ) ;\n SET_FIELD ( & tmd . status , TMDS , OWN , 0 ) ;\n s -> csr [ 0 ] |= 0xa000 ;\n s -> xmit_pos = - 1 ;\n goto txdone ;\n }\n if ( s -> xmit_pos < 0 ) {\n goto txdone ;\n }\n bcnt = 4096 - GET_FIELD ( tmd . length , TMDL , BCNT ) ;\n if ( s -> xmit_pos + bcnt > sizeof ( s -> buffer ) - 4 ) {\n s -> xmit_pos = - 1 ;\n goto txdone ;\n }\n s -> phys_mem_read ( s -> dma_opaque , PHYSADDR ( s , tmd . tbadr ) , s -> buffer + s -> xmit_pos , bcnt , CSR_BSWP ( s ) ) ;\n s -> xmit_pos += bcnt ;\n if ( ! GET_FIELD ( tmd . status , TMDS , ENP ) ) {\n goto txdone ;\n }\n # ifdef PCNET_DEBUG printf ( \"pcnet_transmit size=%d\\n\" , s -> xmit_pos ) ;\n # endif if ( CSR_LOOP ( s ) ) {\n if ( BCR_SWSTYLE ( s ) == 1 ) add_crc = ! GET_FIELD ( tmd . status , TMDS , NOFCS ) ;\n s -> looptest = add_crc ? PCNET_LOOPTEST_CRC : PCNET_LOOPTEST_NOCRC ;\n pcnet_receive ( qemu_get_queue ( s -> nic ) , s -> buffer , s -> xmit_pos ) ;\n s -> looptest = 0 ;\n }\n else {\n if ( s -> nic ) {\n qemu_send_packet ( qemu_get_queue ( s -> nic ) , s -> buffer , s -> xmit_pos ) ;\n }\n }\n s -> csr [ 0 ] &= ~ 0x0008 ;\n s -> csr [ 4 ] |= 0x0004 ;\n s -> xmit_pos = - 1 ;\n txdone : SET_FIELD ( & tmd . status , TMDS , OWN , 0 ) ;\n TMDSTORE ( & tmd , PHYSADDR ( s , CSR_CXDA ( s ) ) ) ;\n if ( ! CSR_TOKINTD ( s ) || ( CSR_LTINTEN ( s ) && GET_FIELD ( tmd . status , TMDS , LTINT ) ) ) {\n s -> csr [ 0 ] |= 0x0200 ;\n }\n if ( CSR_XMTRC ( s ) <= 1 ) {\n CSR_XMTRC ( s ) = CSR_XMTRL ( s ) ;\n }\n else {\n CSR_XMTRC ( s ) -- ;\n }\n if ( count -- ) {\n goto txagain ;\n }\n }\n else if ( s -> xmit_pos >= 0 ) {\n struct pcnet_TMD tmd ;\n TMDLOAD ( & tmd , xmit_cxda ) ;\n SET_FIELD ( & tmd . misc , TMDM , BUFF , 1 ) ;\n SET_FIELD ( & tmd . misc , TMDM , UFLO , 1 ) ;\n SET_FIELD ( & tmd . status , TMDS , ERR , 1 ) ;\n SET_FIELD ( & tmd . status , TMDS , OWN , 0 ) ;\n TMDSTORE ( & tmd , xmit_cxda ) ;\n s -> csr [ 0 ] |= 0x0200 ;\n if ( ! CSR_DXSUFLO ( s ) ) {\n s -> csr [ 0 ] &= ~ 0x0010 ;\n }\n else if ( count -- ) {\n goto txagain ;\n }\n }\n s -> tx_busy = 0 ;\n }"}
{"idx": 11389, "target": 0, "func": "static long get_millisecs_now ( void ) {\n # ifndef _WIN32 struct timeval tv ;\n gettimeofday ( & tv , NULL ) ;\n return ( tv . tv_sec ) * 1000L + ( tv . tv_usec ) / 1000 ;\n # else SYSTEMTIME st ;\n FILETIME ft ;\n __int64 * pi = ( __int64 * ) & ft ;\n GetLocalTime ( & st ) ;\n SystemTimeToFileTime ( & st , & ft ) ;\n return ( long ) ( ( * pi ) / 10000 ) ;\n # endif }"}
{"idx": 11390, "target": 0, "func": "static void uiserver_set_status_handler ( void * engine , engine_status_handler_t fnc , void * fnc_value ) {\n engine_uiserver_t uiserver = engine ;\n uiserver -> status . fnc = fnc ;\n uiserver -> status . fnc_value = fnc_value ;\n }"}
{"idx": 11391, "target": 0, "func": "int ASN1_TYPE_get ( ASN1_TYPE * a ) {\n if ( ( a -> value . ptr != NULL ) || ( a -> type == V_ASN1_NULL ) ) return ( a -> type ) ;\n else return ( 0 ) ;\n }"}
{"idx": 11392, "target": 0, "func": "static int dissect_h245_AudioCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 487 \"../../asn1/h245/h245.cnf\" gint32 value ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_AudioCapability , AudioCapability_choice , & value ) ;\n codec_type = val_to_str ( value , h245_AudioCapability_short_vals , \"<unknown>\" ) ;\n return offset ;\n }"}
{"idx": 11393, "target": 0, "func": "static void selinux_file_set_fowner ( struct file * file ) {\n struct file_security_struct * fsec ;\n fsec = file -> f_security ;\n fsec -> fown_sid = current_sid ( ) ;\n }"}
{"idx": 11394, "target": 0, "func": "EXCLUSIVE_REGRESSION_TEST ( SDK_API_HttpTxnTransform ) ( RegressionTest * test , int , int * pstatus ) {\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n Debug ( UTDBG_TAG \"_transform\" , \"Starting test\" ) ;\n TSCont cont = TSContCreate ( transform_hook_handler , TSMutexCreate ( ) ) ;\n if ( cont == nullptr ) {\n SDK_RPRINT ( test , \"TSHttpSsn\" , \"TestCase1\" , TC_FAIL , \"Unable to create Continuation.\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n return ;\n }\n TransformTestData * socktest = ( TransformTestData * ) TSmalloc ( sizeof ( TransformTestData ) ) ;\n socktest -> test = test ;\n socktest -> pstatus = pstatus ;\n socktest -> test_passed_txn_transform_resp_get = true ;\n socktest -> test_passed_txn_transformed_resp_cache = false ;\n socktest -> test_passed_txn_transformed_resp_cache = false ;\n socktest -> test_passed_transform_create = false ;\n socktest -> req_no = 1 ;\n socktest -> magic = MAGIC_ALIVE ;\n TSContDataSet ( cont , socktest ) ;\n load ( TRANSFORM_APPEND_STRING ) ;\n TSHttpHookAdd ( TS_HTTP_READ_REQUEST_HDR_HOOK , cont ) ;\n TSHttpHookAdd ( TS_HTTP_READ_RESPONSE_HDR_HOOK , cont ) ;\n socktest -> os = synserver_create ( SYNSERVER_LISTEN_PORT ) ;\n synserver_start ( socktest -> os ) ;\n socktest -> browser1 = synclient_txn_create ( ) ;\n socktest -> browser2 = synclient_txn_create ( ) ;\n socktest -> browser3 = synclient_txn_create ( ) ;\n socktest -> browser4 = synclient_txn_create ( ) ;\n socktest -> request1 = generate_request ( 4 ) ;\n socktest -> request2 = generate_request ( 5 ) ;\n Debug ( UTDBG_TAG \"_transform\" , \"Running Browser 1\" ) ;\n synclient_txn_send_request ( socktest -> browser1 , socktest -> request1 ) ;\n TSContSchedule ( cont , 25 , TS_THREAD_POOL_DEFAULT ) ;\n return ;\n }"}
{"idx": 11395, "target": 0, "func": "static int dissect_h245_H221NonStandardID ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 966 \"../../asn1/h245/h245.cnf\" t35CountryCode = 0 ;\n t35Extension = 0 ;\n manufacturerCode = 0 ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_H221NonStandardID , H221NonStandardID_sequence ) ;\n # line 970 \"../../asn1/h245/h245.cnf\" h221NonStandard = ( ( t35CountryCode * 256 ) + t35Extension ) * 65536 + manufacturerCode ;\n proto_tree_add_uint ( tree , hf_h245Manufacturer , tvb , ( offset >> 3 ) - 4 , 4 , h221NonStandard ) ;\n return offset ;\n }"}
{"idx": 11396, "target": 0, "func": "static void decSetOverflow ( decNumber * dn , decContext * set , uInt * status ) {\n Flag needmax = 0 ;\n uByte sign = dn -> bits & DECNEG ;\n if ( ISZERO ( dn ) ) {\n Int emax = set -> emax ;\n if ( set -> clamp ) emax -= set -> digits - 1 ;\n if ( dn -> exponent > emax ) {\n dn -> exponent = emax ;\n * status |= DEC_Clamped ;\n }\n return ;\n }\n uprv_decNumberZero ( dn ) ;\n switch ( set -> round ) {\n case DEC_ROUND_DOWN : {\n needmax = 1 ;\n break ;\n }\n case DEC_ROUND_05UP : {\n needmax = 1 ;\n break ;\n }\n case DEC_ROUND_CEILING : {\n if ( sign ) needmax = 1 ;\n break ;\n }\n case DEC_ROUND_FLOOR : {\n if ( ! sign ) needmax = 1 ;\n break ;\n }\n default : break ;\n }\n if ( needmax ) {\n decSetMaxValue ( dn , set ) ;\n dn -> bits = sign ;\n }\n else dn -> bits = sign | DECINF ;\n * status |= DEC_Overflow | DEC_Inexact | DEC_Rounded ;\n }"}
{"idx": 11397, "target": 0, "func": "static const char * cmd_cookiev0_separator ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n if ( strlen ( p1 ) != 1 ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid cookie v0 separator: %s\" , p1 ) ;\n }\n dcfg -> cookiev0_separator = p1 ;\n return NULL ;\n }"}
{"idx": 11398, "target": 0, "func": "void vp9_initialize_me_consts ( VP9_COMP * cpi , int qindex ) {\n # if CONFIG_VP9_HIGHBITDEPTH switch ( cpi -> common . bit_depth ) {\n case VPX_BITS_8 : cpi -> mb . sadperbit16 = sad_per_bit16lut_8 [ qindex ] ;\n cpi -> mb . sadperbit4 = sad_per_bit4lut_8 [ qindex ] ;\n break ;\n case VPX_BITS_10 : cpi -> mb . sadperbit16 = sad_per_bit16lut_10 [ qindex ] ;\n cpi -> mb . sadperbit4 = sad_per_bit4lut_10 [ qindex ] ;\n break ;\n case VPX_BITS_12 : cpi -> mb . sadperbit16 = sad_per_bit16lut_12 [ qindex ] ;\n cpi -> mb . sadperbit4 = sad_per_bit4lut_12 [ qindex ] ;\n break ;\n default : assert ( 0 && \"bit_depth should be VPX_BITS_8, VPX_BITS_10 or VPX_BITS_12\" ) ;\n }\n # else cpi -> mb . sadperbit16 = sad_per_bit16lut_8 [ qindex ] ;\n cpi -> mb . sadperbit4 = sad_per_bit4lut_8 [ qindex ] ;\n # endif }"}
{"idx": 11399, "target": 0, "func": "static void t38_defragment_init ( void ) {\n reassembly_table_init ( & data_reassembly_table , & addresses_reassembly_table_functions ) ;\n }"}
{"idx": 11400, "target": 0, "func": "int ec_GF2m_have_precompute_mult ( const EC_GROUP * group ) {\n return ec_wNAF_have_precompute_mult ( group ) ;\n }"}
{"idx": 11401, "target": 0, "func": "static void display_refresh ( DisplayChangeListener * dcl ) {\n SimpleSpiceDisplay * ssd = container_of ( dcl , SimpleSpiceDisplay , dcl ) ;\n qemu_spice_display_refresh ( ssd ) ;\n }"}
{"idx": 11402, "target": 0, "func": "static void message_decode_body_init_charset ( struct message_decoder_context * ctx , struct message_part * part ) {\n ctx -> binary_input = ctx -> content_charset == NULL && ( ctx -> flags & MESSAGE_DECODER_FLAG_RETURN_BINARY ) != 0 && ( part -> flags & ( MESSAGE_PART_FLAG_TEXT | MESSAGE_PART_FLAG_MESSAGE_RFC822 ) ) == 0 ;\n if ( ctx -> binary_input ) return ;\n if ( ctx -> charset_trans != NULL && ctx -> content_charset != NULL && strcasecmp ( ctx -> content_charset , ctx -> charset_trans_charset ) == 0 ) {\n charset_to_utf8_reset ( ctx -> charset_trans ) ;\n return ;\n }\n if ( ctx -> charset_trans != NULL ) charset_to_utf8_end ( & ctx -> charset_trans ) ;\n i_free_and_null ( ctx -> charset_trans_charset ) ;\n ctx -> charset_trans_charset = i_strdup ( ctx -> content_charset != NULL ? ctx -> content_charset : \"UTF-8\" ) ;\n if ( charset_to_utf8_begin ( ctx -> charset_trans_charset , ctx -> normalizer , & ctx -> charset_trans ) < 0 ) ctx -> charset_trans = charset_utf8_to_utf8_begin ( ctx -> normalizer ) ;\n }"}
{"idx": 11403, "target": 0, "func": "static void callback_for_move_to_trash ( GHashTable * debuting_uris , gboolean user_cancelled , MoveTrashCBData * data ) {\n if ( data -> real_callback ) {\n data -> real_callback ( debuting_uris , ! user_cancelled , data -> real_data ) ;\n }\n g_slice_free ( MoveTrashCBData , data ) ;\n }"}
{"idx": 11404, "target": 0, "func": "static int shorten_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n ShortenContext * s = avctx -> priv_data ;\n int i , input_buf_size = 0 ;\n int ret ;\n if ( s -> max_framesize == 0 ) {\n void * tmp_ptr ;\n s -> max_framesize = 1024 ;\n tmp_ptr = av_fast_realloc ( s -> bitstream , & s -> allocated_bitstream_size , s -> max_framesize ) ;\n if ( ! tmp_ptr ) {\n av_log ( avctx , AV_LOG_ERROR , \"error allocating bitstream buffer\\n\" ) ;\n return AVERROR ( ENOMEM ) ;\n }\n s -> bitstream = tmp_ptr ;\n }\n if ( 1 && s -> max_framesize ) {\n buf_size = FFMIN ( buf_size , s -> max_framesize - s -> bitstream_size ) ;\n input_buf_size = buf_size ;\n if ( s -> bitstream_index + s -> bitstream_size + buf_size > s -> allocated_bitstream_size ) {\n memmove ( s -> bitstream , & s -> bitstream [ s -> bitstream_index ] , s -> bitstream_size ) ;\n s -> bitstream_index = 0 ;\n }\n if ( buf ) memcpy ( & s -> bitstream [ s -> bitstream_index + s -> bitstream_size ] , buf , buf_size ) ;\n buf = & s -> bitstream [ s -> bitstream_index ] ;\n buf_size += s -> bitstream_size ;\n s -> bitstream_size = buf_size ;\n if ( buf_size < s -> max_framesize && avpkt -> data ) {\n * got_frame_ptr = 0 ;\n return input_buf_size ;\n }\n }\n init_get_bits ( & s -> gb , buf , buf_size * 8 ) ;\n skip_bits ( & s -> gb , s -> bitindex ) ;\n if ( ! s -> got_header ) {\n if ( ( ret = read_header ( s ) ) < 0 ) return ret ;\n * got_frame_ptr = 0 ;\n goto finish_frame ;\n }\n if ( s -> got_quit_command ) {\n * got_frame_ptr = 0 ;\n return avpkt -> size ;\n }\n s -> cur_chan = 0 ;\n while ( s -> cur_chan < s -> channels ) {\n unsigned cmd ;\n int len ;\n if ( get_bits_left ( & s -> gb ) < 3 + FNSIZE ) {\n * got_frame_ptr = 0 ;\n break ;\n }\n cmd = get_ur_golomb_shorten ( & s -> gb , FNSIZE ) ;\n if ( cmd > FN_VERBATIM ) {\n av_log ( avctx , AV_LOG_ERROR , \"unknown shorten function %d\\n\" , cmd ) ;\n * got_frame_ptr = 0 ;\n break ;\n }\n if ( ! is_audio_command [ cmd ] ) {\n switch ( cmd ) {\n case FN_VERBATIM : len = get_ur_golomb_shorten ( & s -> gb , VERBATIM_CKSIZE_SIZE ) ;\n while ( len -- ) get_ur_golomb_shorten ( & s -> gb , VERBATIM_BYTE_SIZE ) ;\n break ;\n case FN_BITSHIFT : s -> bitshift = get_ur_golomb_shorten ( & s -> gb , BITSHIFTSIZE ) ;\n break ;\n case FN_BLOCKSIZE : {\n unsigned blocksize = get_uint ( s , av_log2 ( s -> blocksize ) ) ;\n if ( blocksize > s -> blocksize ) {\n av_log ( avctx , AV_LOG_ERROR , \"Increasing block size is not supported\\n\" ) ;\n return AVERROR_PATCHWELCOME ;\n }\n if ( ! blocksize || blocksize > MAX_BLOCKSIZE ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid or unsupported \" \"block size: %d\\n\" , blocksize ) ;\n return AVERROR ( EINVAL ) ;\n }\n s -> blocksize = blocksize ;\n break ;\n }\n case FN_QUIT : s -> got_quit_command = 1 ;\n break ;\n }\n if ( cmd == FN_BLOCKSIZE || cmd == FN_QUIT ) {\n * got_frame_ptr = 0 ;\n break ;\n }\n }\n else {\n int residual_size = 0 ;\n int channel = s -> cur_chan ;\n int32_t coffset ;\n if ( cmd != FN_ZERO ) {\n residual_size = get_ur_golomb_shorten ( & s -> gb , ENERGYSIZE ) ;\n if ( s -> version == 0 ) residual_size -- ;\n }\n if ( s -> nmean == 0 ) coffset = s -> offset [ channel ] [ 0 ] ;\n else {\n int32_t sum = ( s -> version < 2 ) ? 0 : s -> nmean / 2 ;\n for ( i = 0 ;\n i < s -> nmean ;\n i ++ ) sum += s -> offset [ channel ] [ i ] ;\n coffset = sum / s -> nmean ;\n if ( s -> version >= 2 ) coffset >>= FFMIN ( 1 , s -> bitshift ) ;\n }\n if ( cmd == FN_ZERO ) {\n for ( i = 0 ;\n i < s -> blocksize ;\n i ++ ) s -> decoded [ channel ] [ i ] = 0 ;\n }\n else {\n if ( ( ret = decode_subframe_lpc ( s , cmd , channel , residual_size , coffset ) ) < 0 ) return ret ;\n }\n if ( s -> nmean > 0 ) {\n int32_t sum = ( s -> version < 2 ) ? 0 : s -> blocksize / 2 ;\n for ( i = 0 ;\n i < s -> blocksize ;\n i ++ ) sum += s -> decoded [ channel ] [ i ] ;\n for ( i = 1 ;\n i < s -> nmean ;\n i ++ ) s -> offset [ channel ] [ i - 1 ] = s -> offset [ channel ] [ i ] ;\n if ( s -> version < 2 ) s -> offset [ channel ] [ s -> nmean - 1 ] = sum / s -> blocksize ;\n else s -> offset [ channel ] [ s -> nmean - 1 ] = ( sum / s -> blocksize ) << s -> bitshift ;\n }\n for ( i = - s -> nwrap ;\n i < 0 ;\n i ++ ) s -> decoded [ channel ] [ i ] = s -> decoded [ channel ] [ i + s -> blocksize ] ;\n fix_bitshift ( s , s -> decoded [ channel ] ) ;\n s -> cur_chan ++ ;\n if ( s -> cur_chan == s -> channels ) {\n frame -> nb_samples = s -> blocksize ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n output_buffer ( ( int16_t * * ) frame -> extended_data , s -> channels , s -> blocksize , s -> decoded ) ;\n * got_frame_ptr = 1 ;\n }\n }\n }\n if ( s -> cur_chan < s -> channels ) * got_frame_ptr = 0 ;\n finish_frame : s -> bitindex = get_bits_count ( & s -> gb ) - 8 * ( get_bits_count ( & s -> gb ) / 8 ) ;\n i = get_bits_count ( & s -> gb ) / 8 ;\n if ( i > buf_size ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"overread: %d\\n\" , i - buf_size ) ;\n s -> bitstream_size = 0 ;\n s -> bitstream_index = 0 ;\n return AVERROR_INVALIDDATA ;\n }\n if ( s -> bitstream_size ) {\n s -> bitstream_index += i ;\n s -> bitstream_size -= i ;\n return input_buf_size ;\n }\n else return i ;\n }"}
{"idx": 11405, "target": 0, "func": "static int dissect_pvfs2_mgmt_get_dirdata_handle_request ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"handle\" , NULL ) ;\n offset = dissect_pvfs_fs_id ( tvb , tree , offset ) ;\n return offset ;\n }"}
{"idx": 11406, "target": 0, "func": "void ff_rm_free_rmstream ( RMStream * rms ) {\n av_packet_unref ( & rms -> pkt ) ;\n }"}
{"idx": 11407, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ContentSettingBubbleDialogTest , InvokeDialog_mediastream_camera ) {\n RunDialog ( ) ;\n }"}
{"idx": 11408, "target": 0, "func": "static int dissect_h225_CallCreditCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_CallCreditCapability , CallCreditCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 11409, "target": 0, "func": "int32_t rleStringToUCharArray ( uint16_t * src , int32_t srcLen , uint16_t * target , int32_t tgtLen , UErrorCode * status ) {\n int32_t length = 0 ;\n int32_t ai = 0 ;\n int i = 2 ;\n if ( ! status || U_FAILURE ( * status ) ) {\n return 0 ;\n }\n if ( srcLen == - 1 ) {\n srcLen = u_strlen ( src ) ;\n }\n if ( srcLen <= 2 ) {\n return 2 ;\n }\n length = ( ( ( int32_t ) src [ 0 ] ) << 16 ) | ( ( int32_t ) src [ 1 ] ) ;\n if ( target == NULL ) {\n return length ;\n }\n if ( tgtLen < length ) {\n * status = U_BUFFER_OVERFLOW_ERROR ;\n return length ;\n }\n for ( ;\n i < srcLen ;\n ++ i ) {\n uint16_t c = src [ i ] ;\n if ( c == ESCAPE ) {\n c = src [ ++ i ] ;\n if ( c == ESCAPE ) {\n target [ ai ++ ] = c ;\n }\n else {\n int32_t runLength = ( int32_t ) c ;\n uint16_t runValue = src [ ++ i ] ;\n int j = 0 ;\n for ( ;\n j < runLength ;\n ++ j ) {\n target [ ai ++ ] = runValue ;\n }\n }\n }\n else {\n target [ ai ++ ] = c ;\n }\n }\n if ( ai != length ) {\n * status = U_INTERNAL_PROGRAM_ERROR ;\n }\n return length ;\n }"}
{"idx": 11410, "target": 0, "func": "static int dissect_h225_SEQUENCE_OF_ClearToken ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_SEQUENCE_OF_ClearToken , SEQUENCE_OF_ClearToken_sequence_of ) ;\n return offset ;\n }"}
{"idx": 11411, "target": 0, "func": "static int dissect_h245_T_nonCollapsingRaw ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 689 \"../../asn1/h245/h245.cnf\" tvbuff_t * value_tvb ;\n gef_ctx_t * parent_gefx ;\n gef_ctx_t * gefx ;\n parent_gefx = gef_ctx_get ( actx -> private_data ) ;\n actx -> private_data = gef_ctx_alloc ( parent_gefx , \"nonCollapsingRaw\" ) ;\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , NO_BOUND , NO_BOUND , FALSE , & value_tvb ) ;\n gefx = gef_ctx_get ( actx -> private_data ) ;\n if ( gefx ) {\n dissector_try_string ( gef_content_dissector_table , gefx -> key , value_tvb , actx -> pinfo , tree , actx ) ;\n }\n actx -> private_data = parent_gefx ;\n return offset ;\n }"}
{"idx": 11412, "target": 0, "func": "static void intra_pred_vert ( uint8_t * d , uint8_t * top , uint8_t * left , int stride ) {\n int y ;\n uint64_t a = AV_RN64 ( & top [ 1 ] ) ;\n for ( y = 0 ;\n y < 8 ;\n y ++ ) {\n * ( ( uint64_t * ) ( d + y * stride ) ) = a ;\n }\n }"}
{"idx": 11413, "target": 0, "func": "static void test_bug31669 ( ) {\n int rc ;\n static char buff [ LARGE_BUFFER_SIZE + 1 ] ;\n # ifndef EMBEDDED_LIBRARY static char user [ USERNAME_CHAR_LENGTH + 1 ] ;\n static char db [ NAME_CHAR_LEN + 1 ] ;\n static char query [ LARGE_BUFFER_SIZE * 2 ] ;\n # endif MYSQL * l_mysql ;\n DBUG_ENTER ( \"test_bug31669\" ) ;\n myheader ( \"test_bug31669\" ) ;\n l_mysql = mysql_client_init ( NULL ) ;\n DIE_UNLESS ( l_mysql != NULL ) ;\n l_mysql = mysql_real_connect ( l_mysql , opt_host , opt_user , opt_password , current_db , opt_port , opt_unix_socket , 0 ) ;\n DIE_UNLESS ( l_mysql != 0 ) ;\n rc = mysql_change_user ( l_mysql , NULL , NULL , NULL ) ;\n DIE_UNLESS ( rc ) ;\n reconnect ( & l_mysql ) ;\n rc = mysql_change_user ( l_mysql , \"\" , \"\" , \"\" ) ;\n DIE_UNLESS ( rc ) ;\n reconnect ( & l_mysql ) ;\n memset ( buff , 'a' , sizeof ( buff ) ) ;\n buff [ sizeof ( buff ) - 1 ] = '\\0' ;\n rc = mysql_change_user ( l_mysql , buff , buff , buff ) ;\n DIE_UNLESS ( rc ) ;\n reconnect ( & l_mysql ) ;\n rc = mysql_change_user ( mysql , opt_user , opt_password , current_db ) ;\n DIE_UNLESS ( ! rc ) ;\n # ifndef EMBEDDED_LIBRARY memset ( db , 'a' , sizeof ( db ) ) ;\n db [ NAME_CHAR_LEN ] = 0 ;\n strxmov ( query , \"CREATE DATABASE IF NOT EXISTS \" , db , NullS ) ;\n rc = mysql_query ( mysql , query ) ;\n myquery ( rc ) ;\n memset ( user , 'b' , sizeof ( user ) ) ;\n user [ USERNAME_CHAR_LENGTH ] = 0 ;\n memset ( buff , 'c' , sizeof ( buff ) ) ;\n buff [ LARGE_BUFFER_SIZE ] = 0 ;\n strxmov ( query , \"GRANT ALL PRIVILEGES ON *.* TO '\" , user , \"'@'%' IDENTIFIED BY \" \"'\" , buff , \"' WITH GRANT OPTION\" , NullS ) ;\n rc = mysql_query ( mysql , query ) ;\n myquery ( rc ) ;\n strxmov ( query , \"GRANT ALL PRIVILEGES ON *.* TO '\" , user , \"'@'localhost' IDENTIFIED BY \" \"'\" , buff , \"' WITH GRANT OPTION\" , NullS ) ;\n rc = mysql_query ( mysql , query ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"FLUSH PRIVILEGES\" ) ;\n myquery ( rc ) ;\n rc = mysql_change_user ( l_mysql , user , buff , db ) ;\n DIE_UNLESS ( ! rc ) ;\n user [ USERNAME_CHAR_LENGTH - 1 ] = 'a' ;\n rc = mysql_change_user ( l_mysql , user , buff , db ) ;\n DIE_UNLESS ( rc ) ;\n reconnect ( & l_mysql ) ;\n user [ USERNAME_CHAR_LENGTH - 1 ] = 'b' ;\n buff [ LARGE_BUFFER_SIZE - 1 ] = 'd' ;\n rc = mysql_change_user ( l_mysql , user , buff , db ) ;\n DIE_UNLESS ( rc ) ;\n reconnect ( & l_mysql ) ;\n buff [ LARGE_BUFFER_SIZE - 1 ] = 'c' ;\n db [ NAME_CHAR_LEN - 1 ] = 'e' ;\n rc = mysql_change_user ( l_mysql , user , buff , db ) ;\n DIE_UNLESS ( rc ) ;\n reconnect ( & l_mysql ) ;\n db [ NAME_CHAR_LEN - 1 ] = 'a' ;\n rc = mysql_change_user ( l_mysql , user , buff , db ) ;\n DIE_UNLESS ( ! rc ) ;\n rc = mysql_change_user ( l_mysql , user + 1 , buff + 1 , db + 1 ) ;\n DIE_UNLESS ( rc ) ;\n reconnect ( & l_mysql ) ;\n rc = mysql_change_user ( mysql , opt_user , opt_password , current_db ) ;\n DIE_UNLESS ( ! rc ) ;\n strxmov ( query , \"DROP DATABASE \" , db , NullS ) ;\n rc = mysql_query ( mysql , query ) ;\n myquery ( rc ) ;\n strxmov ( query , \"DELETE FROM mysql.user WHERE User='\" , user , \"'\" , NullS ) ;\n rc = mysql_query ( mysql , query ) ;\n myquery ( rc ) ;\n DIE_UNLESS ( mysql_affected_rows ( mysql ) == 2 ) ;\n mysql_close ( l_mysql ) ;\n # endif DBUG_VOID_RETURN ;\n }"}
{"idx": 11414, "target": 0, "func": "static gpgme_error_t status_handler ( void * opaque , int fd ) {\n struct io_cb_data * data = ( struct io_cb_data * ) opaque ;\n engine_gpgsm_t gpgsm = ( engine_gpgsm_t ) data -> handler_value ;\n gpgme_error_t err = 0 ;\n char * line ;\n size_t linelen ;\n do {\n err = assuan_read_line ( gpgsm -> assuan_ctx , & line , & linelen ) ;\n if ( err ) {\n TRACE3 ( DEBUG_CTX , \"gpgme:status_handler\" , gpgsm , \"fd 0x%x: error from assuan (%d) getting status line : %s\" , fd , err , gpg_strerror ( err ) ) ;\n }\n else if ( linelen >= 3 && line [ 0 ] == 'E' && line [ 1 ] == 'R' && line [ 2 ] == 'R' && ( line [ 3 ] == '\\0' || line [ 3 ] == ' ' ) ) {\n if ( line [ 3 ] == ' ' ) err = atoi ( & line [ 4 ] ) ;\n if ( ! err ) err = gpg_error ( GPG_ERR_GENERAL ) ;\n TRACE2 ( DEBUG_CTX , \"gpgme:status_handler\" , gpgsm , \"fd 0x%x: ERR line - mapped to: %s\" , fd , err ? gpg_strerror ( err ) : \"ok\" ) ;\n }\n else if ( linelen >= 2 && line [ 0 ] == 'O' && line [ 1 ] == 'K' && ( line [ 2 ] == '\\0' || line [ 2 ] == ' ' ) ) {\n if ( gpgsm -> status . fnc ) err = gpgsm -> status . fnc ( gpgsm -> status . fnc_value , GPGME_STATUS_EOF , \"\" ) ;\n if ( ! err && gpgsm -> colon . fnc && gpgsm -> colon . any ) {\n gpgsm -> colon . any = 0 ;\n err = gpgsm -> colon . fnc ( gpgsm -> colon . fnc_value , NULL ) ;\n }\n TRACE2 ( DEBUG_CTX , \"gpgme:status_handler\" , gpgsm , \"fd 0x%x: OK line - final status: %s\" , fd , err ? gpg_strerror ( err ) : \"ok\" ) ;\n _gpgme_io_close ( gpgsm -> status_cb . fd ) ;\n return err ;\n }\n else if ( linelen > 2 && line [ 0 ] == 'D' && line [ 1 ] == ' ' && gpgsm -> colon . fnc ) {\n char * src = line + 2 ;\n char * end = line + linelen ;\n char * dst ;\n char * * aline = & gpgsm -> colon . attic . line ;\n int * alinelen = & gpgsm -> colon . attic . linelen ;\n if ( gpgsm -> colon . attic . linesize < * alinelen + linelen + 1 ) {\n char * newline = realloc ( * aline , * alinelen + linelen + 1 ) ;\n if ( ! newline ) err = gpg_error_from_syserror ( ) ;\n else {\n * aline = newline ;\n gpgsm -> colon . attic . linesize = * alinelen + linelen + 1 ;\n }\n }\n if ( ! err ) {\n dst = * aline + * alinelen ;\n while ( ! err && src < end ) {\n if ( * src == '%' && src + 2 < end ) {\n ++ src ;\n * dst = _gpgme_hextobyte ( src ) ;\n ( * alinelen ) ++ ;\n src += 2 ;\n }\n else {\n * dst = * src ++ ;\n ( * alinelen ) ++ ;\n }\n if ( * dst == '\\n' ) {\n gpgsm -> colon . any = 1 ;\n if ( * alinelen > 1 && * ( dst - 1 ) == '\\r' ) dst -- ;\n * dst = '\\0' ;\n err = gpgsm -> colon . fnc ( gpgsm -> colon . fnc_value , * aline ) ;\n if ( ! err ) {\n dst = * aline ;\n * alinelen = 0 ;\n }\n }\n else dst ++ ;\n }\n }\n TRACE2 ( DEBUG_CTX , \"gpgme:status_handler\" , gpgsm , \"fd 0x%x: D line;\n final status: %s\" , fd , err ? gpg_strerror ( err ) : \"ok\" ) ;\n }\n else if ( linelen > 2 && line [ 0 ] == 'D' && line [ 1 ] == ' ' && gpgsm -> inline_data ) {\n char * src = line + 2 ;\n char * end = line + linelen ;\n char * dst = src ;\n gpgme_ssize_t nwritten ;\n linelen = 0 ;\n while ( src < end ) {\n if ( * src == '%' && src + 2 < end ) {\n ++ src ;\n * dst ++ = _gpgme_hextobyte ( src ) ;\n src += 2 ;\n }\n else * dst ++ = * src ++ ;\n linelen ++ ;\n }\n src = line + 2 ;\n while ( linelen > 0 ) {\n nwritten = gpgme_data_write ( gpgsm -> inline_data , src , linelen ) ;\n if ( ! nwritten || ( nwritten < 0 && errno != EINTR ) || nwritten > linelen ) {\n err = gpg_error_from_syserror ( ) ;\n break ;\n }\n src += nwritten ;\n linelen -= nwritten ;\n }\n TRACE2 ( DEBUG_CTX , \"gpgme:status_handler\" , gpgsm , \"fd 0x%x: D inlinedata;\n final status: %s\" , fd , err ? gpg_strerror ( err ) : \"ok\" ) ;\n }\n else if ( linelen > 2 && line [ 0 ] == 'S' && line [ 1 ] == ' ' ) {\n char * rest ;\n gpgme_status_code_t r ;\n rest = strchr ( line + 2 , ' ' ) ;\n if ( ! rest ) rest = line + linelen ;\n else * ( rest ++ ) = 0 ;\n r = _gpgme_parse_status ( line + 2 ) ;\n if ( r >= 0 ) {\n if ( gpgsm -> status . fnc ) err = gpgsm -> status . fnc ( gpgsm -> status . fnc_value , r , rest ) ;\n }\n else fprintf ( stderr , \"[UNKNOWN STATUS]%s %s\" , line + 2 , rest ) ;\n TRACE3 ( DEBUG_CTX , \"gpgme:status_handler\" , gpgsm , \"fd 0x%x: S line (%s) - final status: %s\" , fd , line + 2 , err ? gpg_strerror ( err ) : \"ok\" ) ;\n }\n else if ( linelen >= 7 && line [ 0 ] == 'I' && line [ 1 ] == 'N' && line [ 2 ] == 'Q' && line [ 3 ] == 'U' && line [ 4 ] == 'I' && line [ 5 ] == 'R' && line [ 6 ] == 'E' && ( line [ 7 ] == '\\0' || line [ 7 ] == ' ' ) ) {\n char * keyword = line + 7 ;\n while ( * keyword == ' ' ) keyword ++ ;\n ;\n default_inq_cb ( gpgsm , keyword ) ;\n assuan_write_line ( gpgsm -> assuan_ctx , \"END\" ) ;\n }\n }\n while ( ! err && assuan_pending_line ( gpgsm -> assuan_ctx ) ) ;\n return err ;\n }"}
{"idx": 11415, "target": 0, "func": "void ts_print ( netdissect_options * ndo , register const struct timeval * tvp ) {\n register int s ;\n struct tm * tm ;\n time_t Time ;\n char buf [ TS_BUF_SIZE ] ;\n static struct timeval tv_ref ;\n struct timeval tv_result ;\n int negative_offset ;\n int nano_prec ;\n switch ( ndo -> ndo_tflag ) {\n case 0 : s = ( tvp -> tv_sec + thiszone ) % 86400 ;\n ND_PRINT ( ( ndo , \"%s \" , ts_format ( ndo , s , tvp -> tv_usec , buf ) ) ) ;\n break ;\n case 1 : break ;\n case 2 : ND_PRINT ( ( ndo , \"%s \" , ts_unix_format ( ndo , tvp -> tv_sec , tvp -> tv_usec , buf ) ) ) ;\n break ;\n case 3 : case 5 : # ifdef HAVE_PCAP_SET_TSTAMP_PRECISION switch ( ndo -> ndo_tstamp_precision ) {\n case PCAP_TSTAMP_PRECISION_MICRO : nano_prec = 0 ;\n break ;\n case PCAP_TSTAMP_PRECISION_NANO : nano_prec = 1 ;\n break ;\n default : nano_prec = 0 ;\n break ;\n }\n # else nano_prec = 0 ;\n # endif if ( ! ( netdissect_timevalisset ( & tv_ref ) ) ) tv_ref = * tvp ;\n negative_offset = netdissect_timevalcmp ( tvp , & tv_ref , < ) ;\n if ( negative_offset ) netdissect_timevalsub ( & tv_ref , tvp , & tv_result , nano_prec ) ;\n else netdissect_timevalsub ( tvp , & tv_ref , & tv_result , nano_prec ) ;\n ND_PRINT ( ( ndo , ( negative_offset ? \"-\" : \" \" ) ) ) ;\n ND_PRINT ( ( ndo , \"%s \" , ts_format ( ndo , tv_result . tv_sec , tv_result . tv_usec , buf ) ) ) ;\n if ( ndo -> ndo_tflag == 3 ) tv_ref = * tvp ;\n break ;\n case 4 : s = ( tvp -> tv_sec + thiszone ) % 86400 ;\n Time = ( tvp -> tv_sec + thiszone ) - s ;\n tm = gmtime ( & Time ) ;\n if ( ! tm ) ND_PRINT ( ( ndo , \"Date fail \" ) ) ;\n else ND_PRINT ( ( ndo , \"%04d-%02d-%02d %s \" , tm -> tm_year + 1900 , tm -> tm_mon + 1 , tm -> tm_mday , ts_format ( ndo , s , tvp -> tv_usec , buf ) ) ) ;\n break ;\n }\n }"}
{"idx": 11416, "target": 0, "func": "static int dissect_h245_T_iP6Address ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_iP6Address , T_iP6Address_sequence ) ;\n return offset ;\n }"}
{"idx": 11417, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens )"}
{"idx": 11418, "target": 0, "func": "static void test_fork ( void ) {\n int status , got_sigchld = 0 ;\n struct event ev , sig_ev ;\n pid_t pid ;\n setup_test ( \"After fork: \" ) ;\n write ( pair [ 0 ] , TEST1 , strlen ( TEST1 ) + 1 ) ;\n event_set ( & ev , pair [ 1 ] , EV_READ , simple_read_cb , & ev ) ;\n if ( event_add ( & ev , NULL ) == - 1 ) exit ( 1 ) ;\n signal_set ( & sig_ev , SIGCHLD , child_signal_cb , & got_sigchld ) ;\n signal_add ( & sig_ev , NULL ) ;\n if ( ( pid = fork ( ) ) == 0 ) {\n if ( event_reinit ( current_base ) == - 1 ) {\n fprintf ( stderr , \"FAILED (reinit)\\n\" ) ;\n exit ( 1 ) ;\n }\n signal_del ( & sig_ev ) ;\n called = 0 ;\n event_dispatch ( ) ;\n exit ( test_ok != 0 || called != 2 ? - 2 : 76 ) ;\n }\n sleep ( 1 ) ;\n write ( pair [ 0 ] , TEST1 , strlen ( TEST1 ) + 1 ) ;\n if ( waitpid ( pid , & status , 0 ) == - 1 ) {\n fprintf ( stderr , \"FAILED (fork)\\n\" ) ;\n exit ( 1 ) ;\n }\n if ( WEXITSTATUS ( status ) != 76 ) {\n fprintf ( stderr , \"FAILED (exit): %d\\n\" , WEXITSTATUS ( status ) ) ;\n exit ( 1 ) ;\n }\n write ( pair [ 0 ] , TEST1 , strlen ( TEST1 ) + 1 ) ;\n shutdown ( pair [ 0 ] , SHUT_WR ) ;\n event_dispatch ( ) ;\n if ( ! got_sigchld ) {\n fprintf ( stdout , \"FAILED (sigchld)\\n\" ) ;\n exit ( 1 ) ;\n }\n signal_del ( & sig_ev ) ;\n cleanup_test ( ) ;\n }"}
{"idx": 11419, "target": 0, "func": "proto_tree * ptvcursor_tree ( ptvcursor_t * ptvc ) {\n if ( ! ptvc ) return NULL ;\n return ptvc -> tree ;\n }"}
{"idx": 11420, "target": 0, "func": "static uint16_t * build_linear_table ( int length ) {\n int i ;\n uint16_t * output = malloc ( sizeof ( uint16_t ) * length ) ;\n if ( ! output ) return NULL ;\n for ( i = 0 ;\n i < length ;\n i ++ ) {\n double x = ( ( double ) i * 65535. ) / ( double ) ( length - 1 ) ;\n uint16_fract_t input = floor ( x + .5 ) ;\n output [ i ] = input ;\n }\n return output ;\n }"}
{"idx": 11421, "target": 0, "func": "static int dissect_h245_NULL ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_null ( tvb , offset , actx , tree , hf_index ) ;\n return offset ;\n }"}
{"idx": 11422, "target": 0, "func": "static struct object_list * * process_blob ( struct blob * blob , struct object_list * * p ) {\n struct object * obj = & blob -> object ;\n obj -> flags |= LOCAL ;\n if ( obj -> flags & ( UNINTERESTING | SEEN ) ) return p ;\n obj -> flags |= SEEN ;\n return add_one_object ( obj , p ) ;\n }"}
{"idx": 11423, "target": 0, "func": "static void purple_set_away ( struct im_connection * ic , char * state_txt , char * message ) {\n struct purple_data * pd = ic -> proto_data ;\n GList * status_types = purple_account_get_status_types ( pd -> account ) , * st ;\n PurpleStatusType * pst = NULL ;\n GList * args = NULL ;\n for ( st = status_types ;\n st ;\n st = st -> next ) {\n pst = st -> data ;\n if ( state_txt == NULL && purple_status_type_get_primitive ( pst ) == PURPLE_STATUS_AVAILABLE ) {\n break ;\n }\n if ( state_txt != NULL && g_strcasecmp ( state_txt , purple_status_type_get_name ( pst ) ) == 0 ) {\n break ;\n }\n }\n if ( message && purple_status_type_get_attr ( pst , \"message\" ) ) {\n args = g_list_append ( args , \"message\" ) ;\n args = g_list_append ( args , message ) ;\n }\n purple_account_set_status_list ( pd -> account , st ? purple_status_type_get_id ( pst ) : \"away\" , TRUE , args ) ;\n g_list_free ( args ) ;\n }"}
{"idx": 11424, "target": 1, "func": "static void rfbProcessClientNormalMessage ( rfbClientPtr cl ) {\n int n = 0 ;\n rfbClientToServerMsg msg ;\n char * str ;\n int i ;\n uint32_t enc = 0 ;\n uint32_t lastPreferredEncoding = - 1 ;\n char encBuf [ 64 ] ;\n char encBuf2 [ 64 ] ;\n if ( ( n = rfbReadExact ( cl , ( char * ) & msg , 1 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n switch ( msg . type ) {\n case rfbSetPixelFormat : if ( ( n = rfbReadExact ( cl , ( ( char * ) & msg ) + 1 , sz_rfbSetPixelFormatMsg - 1 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n cl -> format . bitsPerPixel = msg . spf . format . bitsPerPixel ;\n cl -> format . depth = msg . spf . format . depth ;\n cl -> format . bigEndian = ( msg . spf . format . bigEndian ? TRUE : FALSE ) ;\n cl -> format . trueColour = ( msg . spf . format . trueColour ? TRUE : FALSE ) ;\n cl -> format . redMax = Swap16IfLE ( msg . spf . format . redMax ) ;\n cl -> format . greenMax = Swap16IfLE ( msg . spf . format . greenMax ) ;\n cl -> format . blueMax = Swap16IfLE ( msg . spf . format . blueMax ) ;\n cl -> format . redShift = msg . spf . format . redShift ;\n cl -> format . greenShift = msg . spf . format . greenShift ;\n cl -> format . blueShift = msg . spf . format . blueShift ;\n cl -> readyForSetColourMapEntries = TRUE ;\n cl -> screen -> setTranslateFunction ( cl ) ;\n rfbStatRecordMessageRcvd ( cl , msg . type , sz_rfbSetPixelFormatMsg , sz_rfbSetPixelFormatMsg ) ;\n return ;\n case rfbFixColourMapEntries : if ( ( n = rfbReadExact ( cl , ( ( char * ) & msg ) + 1 , sz_rfbFixColourMapEntriesMsg - 1 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n rfbStatRecordMessageRcvd ( cl , msg . type , sz_rfbSetPixelFormatMsg , sz_rfbSetPixelFormatMsg ) ;\n rfbLog ( \"rfbProcessClientNormalMessage: %s\" , \"FixColourMapEntries unsupported\\n\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n case rfbSetEncodings : {\n if ( ( n = rfbReadExact ( cl , ( ( char * ) & msg ) + 1 , sz_rfbSetEncodingsMsg - 1 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n msg . se . nEncodings = Swap16IfLE ( msg . se . nEncodings ) ;\n rfbStatRecordMessageRcvd ( cl , msg . type , sz_rfbSetEncodingsMsg + ( msg . se . nEncodings * 4 ) , sz_rfbSetEncodingsMsg + ( msg . se . nEncodings * 4 ) ) ;\n if ( cl -> preferredEncoding != - 1 ) lastPreferredEncoding = cl -> preferredEncoding ;\n cl -> preferredEncoding = - 1 ;\n cl -> useCopyRect = FALSE ;\n cl -> useNewFBSize = FALSE ;\n cl -> cursorWasChanged = FALSE ;\n cl -> useRichCursorEncoding = FALSE ;\n cl -> enableCursorPosUpdates = FALSE ;\n cl -> enableCursorShapeUpdates = FALSE ;\n cl -> enableCursorShapeUpdates = FALSE ;\n cl -> enableLastRectEncoding = FALSE ;\n cl -> enableKeyboardLedState = FALSE ;\n cl -> enableSupportedMessages = FALSE ;\n cl -> enableSupportedEncodings = FALSE ;\n cl -> enableServerIdentity = FALSE ;\n # if defined ( LIBVNCSERVER_HAVE_LIBZ ) || defined ( LIBVNCSERVER_HAVE_LIBPNG ) cl -> tightQualityLevel = - 1 ;\n # ifdef LIBVNCSERVER_HAVE_LIBJPEG cl -> tightCompressLevel = TIGHT_DEFAULT_COMPRESSION ;\n cl -> turboSubsampLevel = TURBO_DEFAULT_SUBSAMP ;\n cl -> turboQualityLevel = - 1 ;\n # endif # endif for ( i = 0 ;\n i < msg . se . nEncodings ;\n i ++ ) {\n if ( ( n = rfbReadExact ( cl , ( char * ) & enc , 4 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n enc = Swap32IfLE ( enc ) ;\n switch ( enc ) {\n case rfbEncodingCopyRect : cl -> useCopyRect = TRUE ;\n break ;\n case rfbEncodingRaw : case rfbEncodingRRE : case rfbEncodingCoRRE : case rfbEncodingHextile : case rfbEncodingUltra : # ifdef LIBVNCSERVER_HAVE_LIBZ case rfbEncodingZlib : case rfbEncodingZRLE : case rfbEncodingZYWRLE : # ifdef LIBVNCSERVER_HAVE_LIBJPEG case rfbEncodingTight : # endif # endif # ifdef LIBVNCSERVER_HAVE_LIBPNG case rfbEncodingTightPng : # endif if ( cl -> preferredEncoding == - 1 ) cl -> preferredEncoding = enc ;\n break ;\n case rfbEncodingXCursor : if ( ! cl -> screen -> dontConvertRichCursorToXCursor ) {\n rfbLog ( \"Enabling X-style cursor updates for client %s\\n\" , cl -> host ) ;\n if ( ! cl -> enableCursorShapeUpdates ) rfbRedrawAfterHideCursor ( cl , NULL ) ;\n cl -> enableCursorShapeUpdates = TRUE ;\n cl -> cursorWasChanged = TRUE ;\n }\n break ;\n case rfbEncodingRichCursor : rfbLog ( \"Enabling full-color cursor updates for client %s\\n\" , cl -> host ) ;\n if ( ! cl -> enableCursorShapeUpdates ) rfbRedrawAfterHideCursor ( cl , NULL ) ;\n cl -> enableCursorShapeUpdates = TRUE ;\n cl -> useRichCursorEncoding = TRUE ;\n cl -> cursorWasChanged = TRUE ;\n break ;\n case rfbEncodingPointerPos : if ( ! cl -> enableCursorPosUpdates ) {\n rfbLog ( \"Enabling cursor position updates for client %s\\n\" , cl -> host ) ;\n cl -> enableCursorPosUpdates = TRUE ;\n cl -> cursorWasMoved = TRUE ;\n }\n break ;\n case rfbEncodingLastRect : if ( ! cl -> enableLastRectEncoding ) {\n rfbLog ( \"Enabling LastRect protocol extension for client \" \"%s\\n\" , cl -> host ) ;\n cl -> enableLastRectEncoding = TRUE ;\n }\n break ;\n case rfbEncodingNewFBSize : if ( ! cl -> useNewFBSize ) {\n rfbLog ( \"Enabling NewFBSize protocol extension for client \" \"%s\\n\" , cl -> host ) ;\n cl -> useNewFBSize = TRUE ;\n }\n break ;\n case rfbEncodingKeyboardLedState : if ( ! cl -> enableKeyboardLedState ) {\n rfbLog ( \"Enabling KeyboardLedState protocol extension for client \" \"%s\\n\" , cl -> host ) ;\n cl -> enableKeyboardLedState = TRUE ;\n }\n break ;\n case rfbEncodingSupportedMessages : if ( ! cl -> enableSupportedMessages ) {\n rfbLog ( \"Enabling SupportedMessages protocol extension for client \" \"%s\\n\" , cl -> host ) ;\n cl -> enableSupportedMessages = TRUE ;\n }\n break ;\n case rfbEncodingSupportedEncodings : if ( ! cl -> enableSupportedEncodings ) {\n rfbLog ( \"Enabling SupportedEncodings protocol extension for client \" \"%s\\n\" , cl -> host ) ;\n cl -> enableSupportedEncodings = TRUE ;\n }\n break ;\n case rfbEncodingServerIdentity : if ( ! cl -> enableServerIdentity ) {\n rfbLog ( \"Enabling ServerIdentity protocol extension for client \" \"%s\\n\" , cl -> host ) ;\n cl -> enableServerIdentity = TRUE ;\n }\n break ;\n case rfbEncodingXvp : if ( cl -> screen -> xvpHook ) {\n rfbLog ( \"Enabling Xvp protocol extension for client \" \"%s\\n\" , cl -> host ) ;\n if ( ! rfbSendXvp ( cl , 1 , rfbXvp_Init ) ) {\n rfbCloseClient ( cl ) ;\n return ;\n }\n }\n break ;\n default : # if defined ( LIBVNCSERVER_HAVE_LIBZ ) || defined ( LIBVNCSERVER_HAVE_LIBPNG ) if ( enc >= ( uint32_t ) rfbEncodingCompressLevel0 && enc <= ( uint32_t ) rfbEncodingCompressLevel9 ) {\n cl -> zlibCompressLevel = enc & 0x0F ;\n # ifdef LIBVNCSERVER_HAVE_LIBJPEG cl -> tightCompressLevel = enc & 0x0F ;\n rfbLog ( \"Using compression level %d for client %s\\n\" , cl -> tightCompressLevel , cl -> host ) ;\n # endif }\n else if ( enc >= ( uint32_t ) rfbEncodingQualityLevel0 && enc <= ( uint32_t ) rfbEncodingQualityLevel9 ) {\n cl -> tightQualityLevel = enc & 0x0F ;\n rfbLog ( \"Using image quality level %d for client %s\\n\" , cl -> tightQualityLevel , cl -> host ) ;\n # ifdef LIBVNCSERVER_HAVE_LIBJPEG cl -> turboQualityLevel = tight2turbo_qual [ enc & 0x0F ] ;\n cl -> turboSubsampLevel = tight2turbo_subsamp [ enc & 0x0F ] ;\n rfbLog ( \"Using JPEG subsampling %d, Q%d for client %s\\n\" , cl -> turboSubsampLevel , cl -> turboQualityLevel , cl -> host ) ;\n }\n else if ( enc >= ( uint32_t ) rfbEncodingFineQualityLevel0 + 1 && enc <= ( uint32_t ) rfbEncodingFineQualityLevel100 ) {\n cl -> turboQualityLevel = enc & 0xFF ;\n rfbLog ( \"Using fine quality level %d for client %s\\n\" , cl -> turboQualityLevel , cl -> host ) ;\n }\n else if ( enc >= ( uint32_t ) rfbEncodingSubsamp1X && enc <= ( uint32_t ) rfbEncodingSubsampGray ) {\n cl -> turboSubsampLevel = enc & 0xFF ;\n rfbLog ( \"Using subsampling level %d for client %s\\n\" , cl -> turboSubsampLevel , cl -> host ) ;\n # endif }\n else # endif {\n rfbExtensionData * e ;\n for ( e = cl -> extensions ;\n e ;\n ) {\n rfbExtensionData * next = e -> next ;\n if ( e -> extension -> enablePseudoEncoding && e -> extension -> enablePseudoEncoding ( cl , & e -> data , ( int ) enc ) ) break ;\n e = next ;\n }\n if ( e == NULL ) {\n rfbBool handled = FALSE ;\n rfbProtocolExtension * e ;\n for ( e = rfbGetExtensionIterator ( ) ;\n e ;\n ) {\n int * encs = e -> pseudoEncodings ;\n while ( encs && * encs != 0 ) {\n if ( * encs == ( int ) enc ) {\n void * data = NULL ;\n if ( ! e -> enablePseudoEncoding ( cl , & data , ( int ) enc ) ) {\n rfbLog ( \"Installed extension pretends to handle pseudo encoding 0x%x, but does not!\\n\" , ( int ) enc ) ;\n }\n else {\n rfbEnableExtension ( cl , e , data ) ;\n handled = TRUE ;\n e = NULL ;\n break ;\n }\n }\n encs ++ ;\n }\n if ( e ) e = e -> next ;\n }\n rfbReleaseExtensionIterator ( ) ;\n if ( ! handled ) rfbLog ( \"rfbProcessClientNormalMessage: \" \"ignoring unsupported encoding type %s\\n\" , encodingName ( enc , encBuf , sizeof ( encBuf ) ) ) ;\n }\n }\n }\n }\n if ( cl -> preferredEncoding == - 1 ) {\n if ( lastPreferredEncoding == - 1 ) {\n cl -> preferredEncoding = rfbEncodingRaw ;\n rfbLog ( \"Defaulting to %s encoding for client %s\\n\" , encodingName ( cl -> preferredEncoding , encBuf , sizeof ( encBuf ) ) , cl -> host ) ;\n }\n else {\n cl -> preferredEncoding = lastPreferredEncoding ;\n rfbLog ( \"Sticking with %s encoding for client %s\\n\" , encodingName ( cl -> preferredEncoding , encBuf , sizeof ( encBuf ) ) , cl -> host ) ;\n }\n }\n else {\n if ( lastPreferredEncoding == - 1 ) {\n rfbLog ( \"Using %s encoding for client %s\\n\" , encodingName ( cl -> preferredEncoding , encBuf , sizeof ( encBuf ) ) , cl -> host ) ;\n }\n else {\n rfbLog ( \"Switching from %s to %s Encoding for client %s\\n\" , encodingName ( lastPreferredEncoding , encBuf2 , sizeof ( encBuf2 ) ) , encodingName ( cl -> preferredEncoding , encBuf , sizeof ( encBuf ) ) , cl -> host ) ;\n }\n }\n if ( cl -> enableCursorPosUpdates && ! cl -> enableCursorShapeUpdates ) {\n rfbLog ( \"Disabling cursor position updates for client %s\\n\" , cl -> host ) ;\n cl -> enableCursorPosUpdates = FALSE ;\n }\n return ;\n }\n case rfbFramebufferUpdateRequest : {\n sraRegionPtr tmpRegion ;\n if ( ( n = rfbReadExact ( cl , ( ( char * ) & msg ) + 1 , sz_rfbFramebufferUpdateRequestMsg - 1 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n rfbStatRecordMessageRcvd ( cl , msg . type , sz_rfbFramebufferUpdateRequestMsg , sz_rfbFramebufferUpdateRequestMsg ) ;\n if ( ! rectSwapIfLEAndClip ( & msg . fur . x , & msg . fur . y , & msg . fur . w , & msg . fur . h , cl ) ) {\n rfbLog ( \"Warning, ignoring rfbFramebufferUpdateRequest: %dXx%dY-%dWx%dH\\n\" , msg . fur . x , msg . fur . y , msg . fur . w , msg . fur . h ) ;\n return ;\n }\n tmpRegion = sraRgnCreateRect ( msg . fur . x , msg . fur . y , msg . fur . x + msg . fur . w , msg . fur . y + msg . fur . h ) ;\n LOCK ( cl -> updateMutex ) ;\n sraRgnOr ( cl -> requestedRegion , tmpRegion ) ;\n if ( ! cl -> readyForSetColourMapEntries ) {\n cl -> readyForSetColourMapEntries = TRUE ;\n if ( ! cl -> format . trueColour ) {\n if ( ! rfbSetClientColourMap ( cl , 0 , 0 ) ) {\n sraRgnDestroy ( tmpRegion ) ;\n TSIGNAL ( cl -> updateCond ) ;\n UNLOCK ( cl -> updateMutex ) ;\n return ;\n }\n }\n }\n if ( ! msg . fur . incremental ) {\n sraRgnOr ( cl -> modifiedRegion , tmpRegion ) ;\n sraRgnSubtract ( cl -> copyRegion , tmpRegion ) ;\n }\n TSIGNAL ( cl -> updateCond ) ;\n UNLOCK ( cl -> updateMutex ) ;\n sraRgnDestroy ( tmpRegion ) ;\n return ;\n }\n case rfbKeyEvent : if ( ( n = rfbReadExact ( cl , ( ( char * ) & msg ) + 1 , sz_rfbKeyEventMsg - 1 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n rfbStatRecordMessageRcvd ( cl , msg . type , sz_rfbKeyEventMsg , sz_rfbKeyEventMsg ) ;\n if ( ! cl -> viewOnly ) {\n cl -> screen -> kbdAddEvent ( msg . ke . down , ( rfbKeySym ) Swap32IfLE ( msg . ke . key ) , cl ) ;\n }\n return ;\n case rfbPointerEvent : if ( ( n = rfbReadExact ( cl , ( ( char * ) & msg ) + 1 , sz_rfbPointerEventMsg - 1 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n rfbStatRecordMessageRcvd ( cl , msg . type , sz_rfbPointerEventMsg , sz_rfbPointerEventMsg ) ;\n if ( cl -> screen -> pointerClient && cl -> screen -> pointerClient != cl ) return ;\n if ( msg . pe . buttonMask == 0 ) cl -> screen -> pointerClient = NULL ;\n else cl -> screen -> pointerClient = cl ;\n if ( ! cl -> viewOnly ) {\n if ( msg . pe . buttonMask != cl -> lastPtrButtons || cl -> screen -> deferPtrUpdateTime == 0 ) {\n cl -> screen -> ptrAddEvent ( msg . pe . buttonMask , ScaleX ( cl -> scaledScreen , cl -> screen , Swap16IfLE ( msg . pe . x ) ) , ScaleY ( cl -> scaledScreen , cl -> screen , Swap16IfLE ( msg . pe . y ) ) , cl ) ;\n cl -> lastPtrButtons = msg . pe . buttonMask ;\n }\n else {\n cl -> lastPtrX = ScaleX ( cl -> scaledScreen , cl -> screen , Swap16IfLE ( msg . pe . x ) ) ;\n cl -> lastPtrY = ScaleY ( cl -> scaledScreen , cl -> screen , Swap16IfLE ( msg . pe . y ) ) ;\n cl -> lastPtrButtons = msg . pe . buttonMask ;\n }\n }\n return ;\n case rfbFileTransfer : if ( ( n = rfbReadExact ( cl , ( ( char * ) & msg ) + 1 , sz_rfbFileTransferMsg - 1 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n msg . ft . size = Swap32IfLE ( msg . ft . size ) ;\n msg . ft . length = Swap32IfLE ( msg . ft . length ) ;\n rfbProcessFileTransfer ( cl , msg . ft . contentType , msg . ft . contentParam , msg . ft . size , msg . ft . length ) ;\n return ;\n case rfbSetSW : if ( ( n = rfbReadExact ( cl , ( ( char * ) & msg ) + 1 , sz_rfbSetSWMsg - 1 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n msg . sw . x = Swap16IfLE ( msg . sw . x ) ;\n msg . sw . y = Swap16IfLE ( msg . sw . y ) ;\n rfbStatRecordMessageRcvd ( cl , msg . type , sz_rfbSetSWMsg , sz_rfbSetSWMsg ) ;\n rfbLog ( \"Received a rfbSetSingleWindow(%d x, %d y)\\n\" , msg . sw . x , msg . sw . y ) ;\n if ( cl -> screen -> setSingleWindow != NULL ) cl -> screen -> setSingleWindow ( cl , msg . sw . x , msg . sw . y ) ;\n return ;\n case rfbSetServerInput : if ( ( n = rfbReadExact ( cl , ( ( char * ) & msg ) + 1 , sz_rfbSetServerInputMsg - 1 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n rfbStatRecordMessageRcvd ( cl , msg . type , sz_rfbSetServerInputMsg , sz_rfbSetServerInputMsg ) ;\n rfbLog ( \"Received a rfbSetServerInput(%d status)\\n\" , msg . sim . status ) ;\n if ( cl -> screen -> setServerInput != NULL ) cl -> screen -> setServerInput ( cl , msg . sim . status ) ;\n return ;\n case rfbTextChat : if ( ( n = rfbReadExact ( cl , ( ( char * ) & msg ) + 1 , sz_rfbTextChatMsg - 1 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n msg . tc . pad2 = Swap16IfLE ( msg . tc . pad2 ) ;\n msg . tc . length = Swap32IfLE ( msg . tc . length ) ;\n switch ( msg . tc . length ) {\n case rfbTextChatOpen : case rfbTextChatClose : case rfbTextChatFinished : str = NULL ;\n rfbStatRecordMessageRcvd ( cl , msg . type , sz_rfbTextChatMsg , sz_rfbTextChatMsg ) ;\n break ;\n default : if ( ( msg . tc . length > 0 ) && ( msg . tc . length < rfbTextMaxSize ) ) {\n str = ( char * ) malloc ( msg . tc . length ) ;\n if ( str == NULL ) {\n rfbLog ( \"Unable to malloc %d bytes for a TextChat Message\\n\" , msg . tc . length ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n if ( ( n = rfbReadExact ( cl , str , msg . tc . length ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n free ( str ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n rfbStatRecordMessageRcvd ( cl , msg . type , sz_rfbTextChatMsg + msg . tc . length , sz_rfbTextChatMsg + msg . tc . length ) ;\n }\n else {\n rfbLog ( \"client sent us a Text Message that is too big %d>%d\\n\" , msg . tc . length , rfbTextMaxSize ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n }\n if ( cl -> screen -> setTextChat != NULL ) cl -> screen -> setTextChat ( cl , msg . tc . length , str ) ;\n free ( str ) ;\n return ;\n case rfbClientCutText : if ( ( n = rfbReadExact ( cl , ( ( char * ) & msg ) + 1 , sz_rfbClientCutTextMsg - 1 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n msg . cct . length = Swap32IfLE ( msg . cct . length ) ;\n str = ( char * ) malloc ( msg . cct . length ) ;\n if ( str == NULL ) {\n rfbLogPerror ( \"rfbProcessClientNormalMessage: not enough memory\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n if ( ( n = rfbReadExact ( cl , str , msg . cct . length ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n free ( str ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n rfbStatRecordMessageRcvd ( cl , msg . type , sz_rfbClientCutTextMsg + msg . cct . length , sz_rfbClientCutTextMsg + msg . cct . length ) ;\n if ( ! cl -> viewOnly ) {\n cl -> screen -> setXCutText ( str , msg . cct . length , cl ) ;\n }\n free ( str ) ;\n return ;\n case rfbPalmVNCSetScaleFactor : cl -> PalmVNC = TRUE ;\n if ( ( n = rfbReadExact ( cl , ( ( char * ) & msg ) + 1 , sz_rfbSetScaleMsg - 1 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n if ( msg . ssc . scale == 0 ) {\n rfbLogPerror ( \"rfbProcessClientNormalMessage: will not accept a scale factor of zero\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n rfbStatRecordMessageRcvd ( cl , msg . type , sz_rfbSetScaleMsg , sz_rfbSetScaleMsg ) ;\n rfbLog ( \"rfbSetScale(%d)\\n\" , msg . ssc . scale ) ;\n rfbScalingSetup ( cl , cl -> screen -> width / msg . ssc . scale , cl -> screen -> height / msg . ssc . scale ) ;\n rfbSendNewScaleSize ( cl ) ;\n return ;\n case rfbSetScale : if ( ( n = rfbReadExact ( cl , ( ( char * ) & msg ) + 1 , sz_rfbSetScaleMsg - 1 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n if ( msg . ssc . scale == 0 ) {\n rfbLogPerror ( \"rfbProcessClientNormalMessage: will not accept a scale factor of zero\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n rfbStatRecordMessageRcvd ( cl , msg . type , sz_rfbSetScaleMsg , sz_rfbSetScaleMsg ) ;\n rfbLog ( \"rfbSetScale(%d)\\n\" , msg . ssc . scale ) ;\n rfbScalingSetup ( cl , cl -> screen -> width / msg . ssc . scale , cl -> screen -> height / msg . ssc . scale ) ;\n rfbSendNewScaleSize ( cl ) ;\n return ;\n case rfbXvp : if ( ( n = rfbReadExact ( cl , ( ( char * ) & msg ) + 1 , sz_rfbXvpMsg - 1 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessClientNormalMessage: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n rfbStatRecordMessageRcvd ( cl , msg . type , sz_rfbXvpMsg , sz_rfbXvpMsg ) ;\n if ( msg . xvp . version != 1 ) {\n rfbSendXvp ( cl , msg . xvp . version , rfbXvp_Fail ) ;\n }\n else {\n if ( cl -> screen -> xvpHook && ! cl -> screen -> xvpHook ( cl , msg . xvp . version , msg . xvp . code ) ) rfbSendXvp ( cl , 1 , rfbXvp_Fail ) ;\n }\n return ;\n default : {\n rfbExtensionData * e , * next ;\n for ( e = cl -> extensions ;\n e ;\n ) {\n next = e -> next ;\n if ( e -> extension -> handleMessage && e -> extension -> handleMessage ( cl , e -> data , & msg ) ) {\n rfbStatRecordMessageRcvd ( cl , msg . type , 0 , 0 ) ;\n return ;\n }\n e = next ;\n }\n rfbLog ( \"rfbProcessClientNormalMessage: unknown message type %d\\n\" , msg . type ) ;\n rfbLog ( \" ... closing connection\\n\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n }\n }"}
{"idx": 11425, "target": 0, "func": "static int dissect_h225_RTPSession ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_RTPSession , RTPSession_sequence ) ;\n return offset ;\n }"}
{"idx": 11426, "target": 0, "func": "static int selinux_inode_setotherxattr ( struct dentry * dentry , const char * name ) {\n const struct cred * cred = current_cred ( ) ;\n if ( ! strncmp ( name , XATTR_SECURITY_PREFIX , sizeof XATTR_SECURITY_PREFIX - 1 ) ) {\n if ( ! strcmp ( name , XATTR_NAME_CAPS ) ) {\n if ( ! capable ( CAP_SETFCAP ) ) return - EPERM ;\n }\n else if ( ! capable ( CAP_SYS_ADMIN ) ) {\n return - EPERM ;\n }\n }\n return dentry_has_perm ( cred , dentry , FILE__SETATTR ) ;\n }"}
{"idx": 11427, "target": 0, "func": "static int imc_decode_block ( AVCodecContext * avctx , IMCContext * q , int ch ) {\n int stream_format_code ;\n int imc_hdr , i , j , ret ;\n int flag ;\n int bits , summer ;\n int counter , bitscount ;\n IMCChannel * chctx = q -> chctx + ch ;\n imc_hdr = get_bits ( & q -> gb , 9 ) ;\n if ( imc_hdr & 0x18 ) {\n av_log ( avctx , AV_LOG_ERROR , \"frame header check failed!\\n\" ) ;\n av_log ( avctx , AV_LOG_ERROR , \"got %X.\\n\" , imc_hdr ) ;\n return AVERROR_INVALIDDATA ;\n }\n stream_format_code = get_bits ( & q -> gb , 3 ) ;\n if ( stream_format_code & 1 ) {\n av_log_ask_for_sample ( avctx , \"Stream format %X is not supported\\n\" , stream_format_code ) ;\n return AVERROR_PATCHWELCOME ;\n }\n if ( stream_format_code & 0x04 ) chctx -> decoder_reset = 1 ;\n if ( chctx -> decoder_reset ) {\n for ( i = 0 ;\n i < BANDS ;\n i ++ ) chctx -> old_floor [ i ] = 1.0 ;\n for ( i = 0 ;\n i < COEFFS ;\n i ++ ) chctx -> CWdecoded [ i ] = 0 ;\n chctx -> decoder_reset = 0 ;\n }\n flag = get_bits1 ( & q -> gb ) ;\n imc_read_level_coeffs ( q , stream_format_code , chctx -> levlCoeffBuf ) ;\n if ( stream_format_code & 0x4 ) imc_decode_level_coefficients ( q , chctx -> levlCoeffBuf , chctx -> flcoeffs1 , chctx -> flcoeffs2 ) ;\n else imc_decode_level_coefficients2 ( q , chctx -> levlCoeffBuf , chctx -> old_floor , chctx -> flcoeffs1 , chctx -> flcoeffs2 ) ;\n memcpy ( chctx -> old_floor , chctx -> flcoeffs1 , 32 * sizeof ( float ) ) ;\n counter = 0 ;\n for ( i = 0 ;\n i < BANDS ;\n i ++ ) {\n if ( chctx -> levlCoeffBuf [ i ] == 16 ) {\n chctx -> bandWidthT [ i ] = 0 ;\n counter ++ ;\n }\n else chctx -> bandWidthT [ i ] = band_tab [ i + 1 ] - band_tab [ i ] ;\n }\n memset ( chctx -> bandFlagsBuf , 0 , BANDS * sizeof ( int ) ) ;\n for ( i = 0 ;\n i < BANDS - 1 ;\n i ++ ) {\n if ( chctx -> bandWidthT [ i ] ) chctx -> bandFlagsBuf [ i ] = get_bits1 ( & q -> gb ) ;\n }\n imc_calculate_coeffs ( q , chctx -> flcoeffs1 , chctx -> flcoeffs2 , chctx -> bandWidthT , chctx -> flcoeffs3 , chctx -> flcoeffs5 ) ;\n bitscount = 0 ;\n if ( stream_format_code & 0x2 ) {\n bitscount += 15 ;\n chctx -> bitsBandT [ 0 ] = 5 ;\n chctx -> CWlengthT [ 0 ] = 5 ;\n chctx -> CWlengthT [ 1 ] = 5 ;\n chctx -> CWlengthT [ 2 ] = 5 ;\n for ( i = 1 ;\n i < 4 ;\n i ++ ) {\n bits = ( chctx -> levlCoeffBuf [ i ] == 16 ) ? 0 : 5 ;\n chctx -> bitsBandT [ i ] = bits ;\n for ( j = band_tab [ i ] ;\n j < band_tab [ i + 1 ] ;\n j ++ ) {\n chctx -> CWlengthT [ j ] = bits ;\n bitscount += bits ;\n }\n }\n }\n if ( avctx -> codec_id == AV_CODEC_ID_IAC ) {\n bitscount += ! ! chctx -> bandWidthT [ BANDS - 1 ] ;\n if ( ! ( stream_format_code & 0x2 ) ) bitscount += 16 ;\n }\n if ( ( ret = bit_allocation ( q , chctx , stream_format_code , 512 - bitscount - get_bits_count ( & q -> gb ) , flag ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Bit allocations failed\\n\" ) ;\n chctx -> decoder_reset = 1 ;\n return ret ;\n }\n for ( i = 0 ;\n i < BANDS ;\n i ++ ) {\n chctx -> sumLenArr [ i ] = 0 ;\n chctx -> skipFlagRaw [ i ] = 0 ;\n for ( j = band_tab [ i ] ;\n j < band_tab [ i + 1 ] ;\n j ++ ) chctx -> sumLenArr [ i ] += chctx -> CWlengthT [ j ] ;\n if ( chctx -> bandFlagsBuf [ i ] ) if ( ( ( ( band_tab [ i + 1 ] - band_tab [ i ] ) * 1.5 ) > chctx -> sumLenArr [ i ] ) && ( chctx -> sumLenArr [ i ] > 0 ) ) chctx -> skipFlagRaw [ i ] = 1 ;\n }\n imc_get_skip_coeff ( q , chctx ) ;\n for ( i = 0 ;\n i < BANDS ;\n i ++ ) {\n chctx -> flcoeffs6 [ i ] = chctx -> flcoeffs1 [ i ] ;\n if ( chctx -> bandFlagsBuf [ i ] && ( band_tab [ i + 1 ] - band_tab [ i ] ) != chctx -> skipFlagCount [ i ] ) {\n chctx -> flcoeffs6 [ i ] *= q -> sqrt_tab [ band_tab [ i + 1 ] - band_tab [ i ] ] / q -> sqrt_tab [ ( band_tab [ i + 1 ] - band_tab [ i ] - chctx -> skipFlagCount [ i ] ) ] ;\n }\n }\n bits = summer = 0 ;\n for ( i = 0 ;\n i < BANDS ;\n i ++ ) {\n if ( chctx -> bandFlagsBuf [ i ] ) {\n for ( j = band_tab [ i ] ;\n j < band_tab [ i + 1 ] ;\n j ++ ) {\n if ( chctx -> skipFlags [ j ] ) {\n summer += chctx -> CWlengthT [ j ] ;\n chctx -> CWlengthT [ j ] = 0 ;\n }\n }\n bits += chctx -> skipFlagBits [ i ] ;\n summer -= chctx -> skipFlagBits [ i ] ;\n }\n }\n imc_adjust_bit_allocation ( q , chctx , summer ) ;\n for ( i = 0 ;\n i < BANDS ;\n i ++ ) {\n chctx -> sumLenArr [ i ] = 0 ;\n for ( j = band_tab [ i ] ;\n j < band_tab [ i + 1 ] ;\n j ++ ) if ( ! chctx -> skipFlags [ j ] ) chctx -> sumLenArr [ i ] += chctx -> CWlengthT [ j ] ;\n }\n memset ( chctx -> codewords , 0 , sizeof ( chctx -> codewords ) ) ;\n if ( imc_get_coeffs ( q , chctx ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Read coefficients failed\\n\" ) ;\n chctx -> decoder_reset = 1 ;\n return AVERROR_INVALIDDATA ;\n }\n if ( inverse_quant_coeff ( q , chctx , stream_format_code ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Inverse quantization of coefficients failed\\n\" ) ;\n chctx -> decoder_reset = 1 ;\n return AVERROR_INVALIDDATA ;\n }\n memset ( chctx -> skipFlags , 0 , sizeof ( chctx -> skipFlags ) ) ;\n imc_imdct256 ( q , chctx , avctx -> channels ) ;\n return 0 ;\n }"}
{"idx": 11428, "target": 0, "func": "static inline int adjust_pred16 ( int itype , int up , int left ) {\n if ( ! up && ! left ) itype = DC_128_PRED8x8 ;\n else if ( ! up ) {\n if ( itype == PLANE_PRED8x8 ) itype = HOR_PRED8x8 ;\n if ( itype == VERT_PRED8x8 ) itype = HOR_PRED8x8 ;\n if ( itype == DC_PRED8x8 ) itype = LEFT_DC_PRED8x8 ;\n }\n else if ( ! left ) {\n if ( itype == PLANE_PRED8x8 ) itype = VERT_PRED8x8 ;\n if ( itype == HOR_PRED8x8 ) itype = VERT_PRED8x8 ;\n if ( itype == DC_PRED8x8 ) itype = TOP_DC_PRED8x8 ;\n }\n return itype ;\n }"}
{"idx": 11429, "target": 0, "func": "static void dissect_rtmpt_common ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , rtmpt_conv_t * rconv , int cdir , guint32 seq , guint32 lastackseq ) {\n int offset = 0 ;\n int remain ;\n int want ;\n guint8 header_type ;\n int basic_hlen ;\n int message_hlen ;\n guint32 id ;\n guint32 ts = 0 ;\n guint32 tsd = 0 ;\n int body_len ;\n guint8 cmd ;\n guint32 src ;\n int chunk_size ;\n guint32 save_seq = 0 ;\n rtmpt_frag_t * tf ;\n rtmpt_id_t * ti ;\n rtmpt_packet_t * tp ;\n tvbuff_t * pktbuf ;\n remain = tvb_reported_length ( tvb ) ;\n if ( ! remain ) return ;\n RTMPT_DEBUG ( \"Segment: cdir=%d seq=%d-%d\\n\" , cdir , seq , seq + remain - 1 ) ;\n if ( pinfo -> fd -> flags . visited ) {\n wmem_stack_t * packets ;\n packets = wmem_stack_new ( wmem_packet_scope ( ) ) ;\n wmem_stack_push ( packets , 0 ) ;\n tp = ( rtmpt_packet_t * ) wmem_tree_lookup32_le ( rconv -> packets [ cdir ] , seq + remain - 1 ) ;\n while ( tp && tp -> lastseq >= seq && tp -> lastseq >= save_seq ) {\n wmem_stack_push ( packets , tp ) ;\n save_seq = tp -> lastseq + 1 ;\n tp = ( rtmpt_packet_t * ) wmem_tree_lookup32_le ( rconv -> packets [ cdir ] , tp -> lastseq - 1 ) ;\n }\n while ( ( tp = ( rtmpt_packet_t * ) wmem_stack_pop ( packets ) ) != NULL ) {\n if ( tp -> resident ) {\n pktbuf = tvb_new_child_real_data ( tvb , tp -> data . p , tp -> have , tp -> have ) ;\n add_new_data_source ( pinfo , pktbuf , \"Unchunked RTMP\" ) ;\n }\n else {\n pktbuf = tvb_new_subset_length ( tvb , tp -> data . offset , tp -> have ) ;\n }\n dissect_rtmpt ( pktbuf , pinfo , tree , rconv , cdir , tp ) ;\n }\n return ;\n }\n while ( remain > 0 ) {\n tf = NULL ;\n ti = NULL ;\n tp = NULL ;\n if ( offset == 0 ) {\n tf = ( rtmpt_frag_t * ) wmem_tree_lookup32_le ( rconv -> frags [ cdir ] , seq + offset - 1 ) ;\n if ( tf ) {\n RTMPT_DEBUG ( \" tf seq=%d lseq=%d h=%d l=%d\\n\" , tf -> seq , tf -> lastseq , tf -> have , tf -> len ) ;\n if ( tf -> have >= tf -> len || seq + offset < tf -> seq || seq + offset > tf -> lastseq + tf -> len - tf -> have ) {\n tf = NULL ;\n }\n else if ( ! tf -> ishdr ) {\n ti = ( rtmpt_id_t * ) wmem_tree_lookup32 ( rconv -> ids [ cdir ] , tf -> saved . id ) ;\n if ( ti ) {\n tp = ( rtmpt_packet_t * ) wmem_tree_lookup32_le ( ti -> packets , seq + offset - 1 ) ;\n }\n if ( tp && tp -> chunkwant ) {\n goto unchunk ;\n }\n tf = NULL ;\n ti = NULL ;\n tp = NULL ;\n }\n if ( tf ) {\n want = tf -> len - tf -> have ;\n if ( remain < want ) want = remain ;\n tvb_memcpy ( tvb , tf -> saved . d + tf -> have , offset , want ) ;\n id = tf -> saved . d [ 0 ] ;\n header_type = ( id >> 6 ) & 3 ;\n basic_hlen = rtmpt_basic_header_length ( id ) ;\n if ( ( header_type < 3 ) && ( tf -> have < ( basic_hlen + 3 ) ) && ( tf -> have + want >= ( basic_hlen + 3 ) ) ) {\n if ( pntoh24 ( tf -> saved . d + basic_hlen ) == 0xffffff ) {\n tf -> len += 4 ;\n }\n }\n tf -> have += want ;\n tf -> lastseq = seq + want - 1 ;\n remain -= want ;\n offset += want ;\n if ( tf -> have < tf -> len ) {\n return ;\n }\n }\n }\n }\n if ( ! tf ) {\n id = tvb_get_guint8 ( tvb , offset ) ;\n if ( id == RTMPT_MAGIC && seq + offset == RTMPT_HANDSHAKE_OFFSET_1 ) {\n header_type = 4 ;\n basic_hlen = 1 ;\n message_hlen = 0 ;\n id = lastackseq == 1 ? RTMPT_TYPE_HANDSHAKE_1 : RTMPT_TYPE_HANDSHAKE_2 ;\n }\n else if ( seq + offset == RTMPT_HANDSHAKE_OFFSET_2 ) {\n header_type = 4 ;\n basic_hlen = 0 ;\n message_hlen = 0 ;\n id = RTMPT_TYPE_HANDSHAKE_3 ;\n }\n else {\n header_type = ( id >> 6 ) & 3 ;\n basic_hlen = rtmpt_basic_header_length ( id ) ;\n message_hlen = rtmpt_message_header_length ( id ) ;\n if ( ( header_type < 3 ) && ( remain >= ( basic_hlen + 3 ) ) ) {\n if ( tvb_get_ntoh24 ( tvb , offset + basic_hlen ) == 0xffffff ) {\n message_hlen += 4 ;\n }\n }\n if ( remain < ( basic_hlen + message_hlen ) ) {\n tf = wmem_new ( wmem_file_scope ( ) , rtmpt_frag_t ) ;\n tf -> ishdr = 1 ;\n tf -> seq = seq + offset ;\n tf -> lastseq = tf -> seq + remain - 1 ;\n tf -> len = basic_hlen + message_hlen ;\n tvb_memcpy ( tvb , tf -> saved . d , offset , remain ) ;\n tf -> have = remain ;\n wmem_tree_insert32 ( rconv -> frags [ cdir ] , seq + offset , tf ) ;\n return ;\n }\n id = id & 0x3f ;\n if ( id == 0 ) id = tvb_get_guint8 ( tvb , offset + 1 ) + 64 ;\n else if ( id == 1 ) id = tvb_get_letohs ( tvb , offset + 1 ) + 64 ;\n }\n }\n else {\n id = tf -> saved . d [ 0 ] ;\n header_type = ( id >> 6 ) & 3 ;\n basic_hlen = rtmpt_basic_header_length ( id ) ;\n message_hlen = tf -> len - basic_hlen ;\n id = id & 0x3f ;\n if ( id == 0 ) id = tf -> saved . d [ 1 ] + 64 ;\n else if ( id == 1 ) id = pletoh16 ( tf -> saved . d + 1 ) + 64 ;\n }\n if ( id <= RTMPT_ID_MAX ) ti = ( rtmpt_id_t * ) wmem_tree_lookup32 ( rconv -> ids [ cdir ] , id ) ;\n if ( ti ) tp = ( rtmpt_packet_t * ) wmem_tree_lookup32_le ( ti -> packets , seq + offset - 1 ) ;\n if ( header_type == 0 ) src = tf ? pntoh32 ( tf -> saved . d + basic_hlen + 7 ) : tvb_get_ntohl ( tvb , offset + basic_hlen + 7 ) ;\n else if ( ti ) src = ti -> src ;\n else src = 0 ;\n if ( header_type < 2 ) cmd = tf ? tf -> saved . d [ basic_hlen + 6 ] : tvb_get_guint8 ( tvb , offset + basic_hlen + 6 ) ;\n else if ( ti ) cmd = ti -> cmd ;\n else cmd = 0 ;\n if ( id > RTMPT_ID_MAX ) {\n if ( id == RTMPT_TYPE_HANDSHAKE_1 ) chunk_size = body_len = 1536 ;\n else if ( id == RTMPT_TYPE_HANDSHAKE_2 ) chunk_size = body_len = 3072 ;\n else chunk_size = body_len = 1536 ;\n }\n else {\n chunk_size = GPOINTER_TO_INT ( wmem_tree_lookup32_le ( rconv -> chunksize [ cdir ] , seq + offset - 1 ) ) ;\n if ( ! chunk_size ) chunk_size = RTMPT_DEFAULT_CHUNK_SIZE ;\n if ( header_type < 2 ) body_len = tf ? pntoh24 ( tf -> saved . d + basic_hlen + 3 ) : tvb_get_ntoh24 ( tvb , offset + basic_hlen + 3 ) ;\n else if ( ti ) body_len = ti -> len ;\n else body_len = chunk_size ;\n if ( body_len > ( gint ) rtmpt_max_packet_size ) {\n return ;\n }\n }\n if ( ! ti || ! tp || header_type < 3 || tp -> have == tp -> want || tp -> chunkhave != tp -> chunkwant ) {\n RTMPT_DEBUG ( \"New packet cdir=%d seq=%d ti=%p tp=%p header_type=%d header_len=%d id=%d tph=%d tpw=%d len=%d cs=%d\\n\" , cdir , seq + offset , ti , tp , header_type , basic_hlen + message_hlen , id , tp ? tp -> have : 0 , tp ? tp -> want : 0 , body_len , chunk_size ) ;\n if ( ! ti ) {\n ti = wmem_new ( wmem_file_scope ( ) , rtmpt_id_t ) ;\n ti -> packets = wmem_tree_new ( wmem_file_scope ( ) ) ;\n ti -> ts = 0 ;\n ti -> tsd = 0 ;\n wmem_tree_insert32 ( rconv -> ids [ cdir ] , id , ti ) ;\n }\n if ( header_type == 0 ) {\n ts = tf ? pntoh24 ( tf -> saved . d + basic_hlen ) : tvb_get_ntoh24 ( tvb , offset + basic_hlen ) ;\n if ( ts == 0xffffff ) {\n ts = tf ? pntoh32 ( tf -> saved . d + basic_hlen + 11 ) : tvb_get_ntohl ( tvb , offset + basic_hlen + 11 ) ;\n }\n tsd = ts - ti -> ts ;\n }\n else if ( header_type < 3 ) {\n tsd = tf ? pntoh24 ( tf -> saved . d + basic_hlen ) : tvb_get_ntoh24 ( tvb , offset + basic_hlen ) ;\n if ( tsd == 0xffffff ) {\n ts = tf ? pntoh32 ( tf -> saved . d + basic_hlen + message_hlen - 4 ) : tvb_get_ntohl ( tvb , offset + basic_hlen + message_hlen - 4 ) ;\n tsd = ti -> tsd ;\n }\n else {\n ts = ti -> ts + tsd ;\n }\n }\n else {\n ts = ti -> ts + ti -> tsd ;\n tsd = ti -> tsd ;\n }\n tp = wmem_new ( wmem_file_scope ( ) , rtmpt_packet_t ) ;\n tp -> seq = tp -> lastseq = tf ? tf -> seq : seq + offset ;\n tp -> have = 0 ;\n tp -> want = basic_hlen + message_hlen + body_len ;\n tp -> chunkwant = 0 ;\n tp -> chunkhave = 0 ;\n tp -> bhlen = basic_hlen ;\n tp -> mhlen = message_hlen ;\n tp -> fmt = header_type ;\n tp -> id = id ;\n tp -> ts = ts ;\n tp -> len = body_len ;\n if ( id > RTMPT_ID_MAX ) tp -> cmd = id ;\n else tp -> cmd = cmd & 0x7f ;\n tp -> src = src ;\n tp -> txid = 0 ;\n tp -> isresponse = FALSE ;\n tp -> otherframe = 0 ;\n ti -> ts = ts ;\n ti -> tsd = tsd ;\n ti -> len = body_len ;\n ti -> cmd = cmd ;\n ti -> src = src ;\n wmem_tree_insert32 ( ti -> packets , tp -> seq , tp ) ;\n if ( ! tf && body_len <= chunk_size && tp -> want <= remain ) {\n tp -> resident = FALSE ;\n tp -> data . offset = offset ;\n tp -> lastseq = seq + offset + tp -> want - 1 ;\n tp -> have = tp -> want ;\n wmem_tree_insert32 ( rconv -> packets [ cdir ] , tp -> lastseq , tp ) ;\n pktbuf = tvb_new_subset_length ( tvb , tp -> data . offset , tp -> have ) ;\n dissect_rtmpt ( pktbuf , pinfo , tree , rconv , cdir , tp ) ;\n offset += tp -> want ;\n remain -= tp -> want ;\n continue ;\n }\n else {\n tp -> resident = TRUE ;\n tp -> data . p = ( guint8 * ) wmem_alloc ( wmem_file_scope ( ) , tp -> bhlen + tp -> mhlen + tp -> len ) ;\n if ( tf && tf -> ishdr ) {\n memcpy ( tp -> data . p , tf -> saved . d , tf -> len ) ;\n }\n else {\n tvb_memcpy ( tvb , tp -> data . p , offset , basic_hlen + message_hlen ) ;\n offset += basic_hlen + message_hlen ;\n remain -= basic_hlen + message_hlen ;\n }\n tp -> lastseq = seq + offset - 1 ;\n tp -> have = basic_hlen + message_hlen ;\n if ( tp -> have == tp -> want ) {\n wmem_tree_insert32 ( rconv -> packets [ cdir ] , tp -> lastseq , tp ) ;\n pktbuf = tvb_new_child_real_data ( tvb , tp -> data . p , tp -> have , tp -> have ) ;\n add_new_data_source ( pinfo , pktbuf , \"Unchunked RTMP\" ) ;\n dissect_rtmpt ( pktbuf , pinfo , tree , rconv , cdir , tp ) ;\n continue ;\n }\n tp -> chunkwant = chunk_size ;\n if ( tp -> chunkwant > tp -> want - tp -> have ) tp -> chunkwant = tp -> want - tp -> have ;\n }\n }\n else {\n RTMPT_DEBUG ( \"Old packet cdir=%d seq=%d ti=%p tp=%p header_len=%d id=%d tph=%d tpw=%d len=%d cs=%d\\n\" , cdir , seq + offset , ti , tp , basic_hlen + message_hlen , id , tp ? tp -> have : 0 , tp ? tp -> want : 0 , body_len , chunk_size ) ;\n tp -> chunkwant = chunk_size ;\n if ( tp -> chunkwant > tp -> want - tp -> have ) tp -> chunkwant = tp -> want - tp -> have ;\n offset += basic_hlen + message_hlen ;\n remain -= basic_hlen + message_hlen ;\n }\n tf = NULL ;\n unchunk : want = tp -> chunkwant - tp -> chunkhave ;\n if ( want > remain ) want = remain ;\n RTMPT_DEBUG ( \" cw=%d ch=%d r=%d w=%d\\n\" , tp -> chunkwant , tp -> chunkhave , remain , want ) ;\n tvb_memcpy ( tvb , tp -> data . p + tp -> have , offset , want ) ;\n if ( tf ) {\n tf -> have += want ;\n tf -> lastseq = seq + offset + want - 1 ;\n }\n tp -> lastseq = seq + offset + want - 1 ;\n tp -> have += want ;\n tp -> chunkhave += want ;\n offset += want ;\n remain -= want ;\n if ( tp -> chunkhave == tp -> chunkwant ) {\n tp -> chunkhave = 0 ;\n tp -> chunkwant = 0 ;\n }\n if ( tp -> have == tp -> want ) {\n wmem_tree_insert32 ( rconv -> packets [ cdir ] , tp -> lastseq , tp ) ;\n pktbuf = tvb_new_child_real_data ( tvb , tp -> data . p , tp -> have , tp -> have ) ;\n add_new_data_source ( pinfo , pktbuf , \"Unchunked RTMP\" ) ;\n dissect_rtmpt ( pktbuf , pinfo , tree , rconv , cdir , tp ) ;\n }\n else if ( tp -> chunkhave < tp -> chunkwant ) {\n rtmpt_frag_t * tf2 = wmem_new ( wmem_file_scope ( ) , rtmpt_frag_t ) ;\n tf2 -> ishdr = 0 ;\n tf2 -> seq = seq + offset - want ;\n tf2 -> lastseq = tf2 -> seq + remain - 1 + want ;\n tf2 -> have = tp -> chunkhave ;\n tf2 -> len = tp -> chunkwant ;\n tf2 -> saved . id = tp -> id ;\n RTMPT_DEBUG ( \" inserting tf @ %d\\n\" , seq + offset - want - 1 ) ;\n wmem_tree_insert32 ( rconv -> frags [ cdir ] , seq + offset - want - 1 , tf2 ) ;\n }\n }\n }"}
{"idx": 11430, "target": 0, "func": "static int option_parse_index_version ( const struct option * opt , const char * arg , int unset ) {\n char * c ;\n const char * val = arg ;\n pack_idx_opts . version = strtoul ( val , & c , 10 ) ;\n if ( pack_idx_opts . version > 2 ) die ( _ ( \"unsupported index version %s\" ) , val ) ;\n if ( * c == ',' && c [ 1 ] ) pack_idx_opts . off32_limit = strtoul ( c + 1 , & c , 0 ) ;\n if ( * c || pack_idx_opts . off32_limit & 0x80000000 ) die ( _ ( \"bad index version '%s'\" ) , val ) ;\n return 0 ;\n }"}
{"idx": 11431, "target": 0, "func": "static void destroy_string_fifo ( string_fifo * fifo ) {\n string_node * sn ;\n if ( fifo != NULL ) {\n do {\n UNLINK_FIFO ( sn , * fifo , link ) ;\n if ( sn != NULL ) {\n if ( sn -> s != NULL ) free ( sn -> s ) ;\n free ( sn ) ;\n }\n }\n while ( sn != NULL ) ;\n free ( fifo ) ;\n }\n }"}
{"idx": 11432, "target": 0, "func": "int ssl_cert_type ( X509 * x , EVP_PKEY * pkey ) {\n EVP_PKEY * pk ;\n int ret = - 1 , i ;\n if ( pkey == NULL ) pk = X509_get_pubkey ( x ) ;\n else pk = pkey ;\n if ( pk == NULL ) goto err ;\n i = pk -> type ;\n if ( i == EVP_PKEY_RSA ) {\n ret = SSL_PKEY_RSA_ENC ;\n }\n else if ( i == EVP_PKEY_DSA ) {\n ret = SSL_PKEY_DSA_SIGN ;\n }\n # ifndef OPENSSL_NO_EC else if ( i == EVP_PKEY_EC ) {\n ret = SSL_PKEY_ECC ;\n }\n # endif else if ( i == NID_id_GostR3410_94 || i == NID_id_GostR3410_94_cc ) {\n ret = SSL_PKEY_GOST94 ;\n }\n else if ( i == NID_id_GostR3410_2001 || i == NID_id_GostR3410_2001_cc ) {\n ret = SSL_PKEY_GOST01 ;\n }\n err : if ( ! pkey ) EVP_PKEY_free ( pk ) ;\n return ( ret ) ;\n }"}
{"idx": 11433, "target": 0, "func": "static void rv34_decoder_free ( RV34DecContext * r ) {\n av_freep ( & r -> intra_types_hist ) ;\n r -> intra_types = NULL ;\n av_freep ( & r -> tmp_b_block_base ) ;\n av_freep ( & r -> mb_type ) ;\n av_freep ( & r -> cbp_luma ) ;\n av_freep ( & r -> cbp_chroma ) ;\n av_freep ( & r -> deblock_coefs ) ;\n }"}
{"idx": 11434, "target": 0, "func": "static char * _zip_readstr ( unsigned char * * buf , int len , int nulp , struct zip_error * error ) {\n char * r , * o ;\n r = ( char * ) malloc ( nulp ? len + 1 : len ) ;\n if ( ! r ) {\n _zip_error_set ( error , ZIP_ER_MEMORY , 0 ) ;\n return NULL ;\n }\n memcpy ( r , * buf , len ) ;\n * buf += len ;\n if ( nulp ) {\n r [ len ] = 0 ;\n for ( o = r ;\n o < r + len ;\n o ++ ) if ( * o == '\\0' ) * o = ' ' ;\n }\n return r ;\n }"}
{"idx": 11435, "target": 0, "func": "static void ATinit ( struct alltabs * at , SplineFont * sf , EncMap * map , int flags , int layer , enum fontformat format , enum bitmapformat bf , int * bsizes ) {\n at -> gi . flags = flags ;\n at -> gi . layer = layer ;\n at -> gi . is_ttf = format == ff_ttf || format == ff_ttfsym || format == ff_ttfmacbin || format == ff_ttfdfont ;\n at -> gi . sf = sf ;\n at -> applemode = ( flags & ttf_flag_applemode ) ? 1 : 0 ;\n at -> opentypemode = ( flags & ttf_flag_otmode ) ? 1 : 0 ;\n at -> msbitmaps = bsizes != NULL && at -> opentypemode ;\n at -> applebitmaps = bsizes != NULL && at -> applemode ;\n at -> gi . onlybitmaps = format == ff_none ;\n if ( bf == bf_sfnt_dfont ) {\n at -> msbitmaps = false ;\n at -> applebitmaps = true ;\n at -> opentypemode = false ;\n at -> gi . onlybitmaps = true ;\n }\n if ( bf == bf_sfnt_ms ) {\n at -> msbitmaps = true ;\n at -> applebitmaps = false ;\n at -> applemode = false ;\n at -> gi . onlybitmaps = true ;\n }\n if ( bf == bf_otb ) {\n at -> otbbitmaps = true ;\n at -> applebitmaps = at -> msbitmaps = false ;\n at -> applemode = false ;\n at -> gi . onlybitmaps = true ;\n }\n if ( bsizes != NULL && ! at -> applebitmaps && ! at -> otbbitmaps && ! at -> msbitmaps ) at -> msbitmaps = true ;\n at -> gi . bsizes = bsizes ;\n at -> gi . fixed_width = CIDOneWidth ( sf ) ;\n at -> isotf = format == ff_otf || format == ff_otfcid ;\n at -> format = format ;\n at -> next_strid = 256 ;\n if ( at -> applemode && sf -> mm != NULL && sf -> mm -> apple && ( format == ff_ttf || format == ff_ttfsym || format == ff_ttfmacbin || format == ff_ttfdfont ) && MMValid ( sf -> mm , false ) ) {\n at -> dovariations = true ;\n at -> gi . dovariations = true ;\n sf = sf -> mm -> normal ;\n }\n at -> sf = sf ;\n at -> map = map ;\n }"}
{"idx": 11436, "target": 0, "func": "static int vcr1_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n VCR1Context * const a = avctx -> priv_data ;\n AVFrame * const p = data ;\n const uint8_t * bytestream = buf ;\n int i , x , y , ret ;\n if ( ( ret = ff_get_buffer ( avctx , p , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n p -> pict_type = AV_PICTURE_TYPE_I ;\n p -> key_frame = 1 ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n a -> delta [ i ] = * bytestream ++ ;\n bytestream ++ ;\n }\n for ( y = 0 ;\n y < avctx -> height ;\n y ++ ) {\n int offset ;\n uint8_t * luma = & p -> data [ 0 ] [ y * p -> linesize [ 0 ] ] ;\n if ( ( y & 3 ) == 0 ) {\n uint8_t * cb = & p -> data [ 1 ] [ ( y >> 2 ) * p -> linesize [ 1 ] ] ;\n uint8_t * cr = & p -> data [ 2 ] [ ( y >> 2 ) * p -> linesize [ 2 ] ] ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) a -> offset [ i ] = * bytestream ++ ;\n offset = a -> offset [ 0 ] - a -> delta [ bytestream [ 2 ] & 0xF ] ;\n for ( x = 0 ;\n x < avctx -> width ;\n x += 4 ) {\n luma [ 0 ] = offset += a -> delta [ bytestream [ 2 ] & 0xF ] ;\n luma [ 1 ] = offset += a -> delta [ bytestream [ 2 ] >> 4 ] ;\n luma [ 2 ] = offset += a -> delta [ bytestream [ 0 ] & 0xF ] ;\n luma [ 3 ] = offset += a -> delta [ bytestream [ 0 ] >> 4 ] ;\n luma += 4 ;\n * cb ++ = bytestream [ 3 ] ;\n * cr ++ = bytestream [ 1 ] ;\n bytestream += 4 ;\n }\n }\n else {\n offset = a -> offset [ y & 3 ] - a -> delta [ bytestream [ 2 ] & 0xF ] ;\n for ( x = 0 ;\n x < avctx -> width ;\n x += 8 ) {\n luma [ 0 ] = offset += a -> delta [ bytestream [ 2 ] & 0xF ] ;\n luma [ 1 ] = offset += a -> delta [ bytestream [ 2 ] >> 4 ] ;\n luma [ 2 ] = offset += a -> delta [ bytestream [ 3 ] & 0xF ] ;\n luma [ 3 ] = offset += a -> delta [ bytestream [ 3 ] >> 4 ] ;\n luma [ 4 ] = offset += a -> delta [ bytestream [ 0 ] & 0xF ] ;\n luma [ 5 ] = offset += a -> delta [ bytestream [ 0 ] >> 4 ] ;\n luma [ 6 ] = offset += a -> delta [ bytestream [ 1 ] & 0xF ] ;\n luma [ 7 ] = offset += a -> delta [ bytestream [ 1 ] >> 4 ] ;\n luma += 8 ;\n bytestream += 4 ;\n }\n }\n }\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 11437, "target": 0, "func": "rfbBool rfbSendServerIdentity ( rfbClientPtr cl ) {\n rfbFramebufferUpdateRectHeader rect ;\n char buffer [ 512 ] ;\n snprintf ( buffer , sizeof ( buffer ) - 1 , \"%s (%s)\" , ( cl -> screen -> versionString == NULL ? \"unknown\" : cl -> screen -> versionString ) , LIBVNCSERVER_PACKAGE_STRING ) ;\n if ( cl -> ublen + sz_rfbFramebufferUpdateRectHeader + ( strlen ( buffer ) + 1 ) > UPDATE_BUF_SIZE ) {\n if ( ! rfbSendUpdateBuf ( cl ) ) return FALSE ;\n }\n rect . encoding = Swap32IfLE ( rfbEncodingServerIdentity ) ;\n rect . r . x = 0 ;\n rect . r . y = 0 ;\n rect . r . w = Swap16IfLE ( strlen ( buffer ) + 1 ) ;\n rect . r . h = 0 ;\n memcpy ( & cl -> updateBuf [ cl -> ublen ] , ( char * ) & rect , sz_rfbFramebufferUpdateRectHeader ) ;\n cl -> ublen += sz_rfbFramebufferUpdateRectHeader ;\n memcpy ( & cl -> updateBuf [ cl -> ublen ] , buffer , strlen ( buffer ) + 1 ) ;\n cl -> ublen += strlen ( buffer ) + 1 ;\n rfbStatRecordEncodingSent ( cl , rfbEncodingServerIdentity , sz_rfbFramebufferUpdateRectHeader + strlen ( buffer ) + 1 , sz_rfbFramebufferUpdateRectHeader + strlen ( buffer ) + 1 ) ;\n if ( ! rfbSendUpdateBuf ( cl ) ) return FALSE ;\n return TRUE ;\n }"}
{"idx": 11438, "target": 0, "func": "TEST_F ( AutocompleteResultTest , Swap ) {\n AutocompleteResult r1 ;\n AutocompleteResult r2 ;\n r1 . Swap ( & r2 ) ;\n EXPECT_EQ ( r1 . end ( ) , r1 . default_match ( ) ) ;\n EXPECT_EQ ( r2 . end ( ) , r2 . default_match ( ) ) ;\n ACMatches matches ;\n AutocompleteMatch match ;\n match . relevance = 1 ;\n match . allowed_to_be_default_match = true ;\n AutocompleteInput input ( base : : ASCIIToUTF16 ( \"a\" ) , base : : string16 : : npos , std : : string ( ) , GURL ( ) , OmniboxEventProto : : INVALID_SPEC , false , false , false , true , false , TestSchemeClassifier ( ) ) ;\n matches . push_back ( match ) ;\n r1 . AppendMatches ( input , matches ) ;\n r1 . SortAndCull ( input , template_url_service_ . get ( ) ) ;\n EXPECT_EQ ( r1 . begin ( ) , r1 . default_match ( ) ) ;\n EXPECT_EQ ( \"http://a/\" , r1 . alternate_nav_url ( ) . spec ( ) ) ;\n r1 . Swap ( & r2 ) ;\n EXPECT_TRUE ( r1 . empty ( ) ) ;\n EXPECT_EQ ( r1 . end ( ) , r1 . default_match ( ) ) ;\n EXPECT_TRUE ( r1 . alternate_nav_url ( ) . is_empty ( ) ) ;\n ASSERT_FALSE ( r2 . empty ( ) ) ;\n EXPECT_EQ ( r2 . begin ( ) , r2 . default_match ( ) ) ;\n EXPECT_EQ ( \"http://a/\" , r2 . alternate_nav_url ( ) . spec ( ) ) ;\n }"}
{"idx": 11439, "target": 0, "func": "Oid get_op_rettype ( Oid opno ) {\n HeapTuple tp ;\n tp = SearchSysCache1 ( OPEROID , ObjectIdGetDatum ( opno ) ) ;\n if ( HeapTupleIsValid ( tp ) ) {\n Form_pg_operator optup = ( Form_pg_operator ) GETSTRUCT ( tp ) ;\n Oid result ;\n result = optup -> oprresult ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }\n else return InvalidOid ;\n }"}
{"idx": 11440, "target": 0, "func": "static int utf16_to_unicode ( uint32_t * pwc , const char * s , size_t n , int be ) {\n const char * utf16 = s ;\n unsigned uc ;\n if ( n == 0 ) return ( 0 ) ;\n if ( n == 1 ) {\n * pwc = UNICODE_R_CHAR ;\n return ( - 1 ) ;\n }\n if ( be ) uc = archive_be16dec ( utf16 ) ;\n else uc = archive_le16dec ( utf16 ) ;\n utf16 += 2 ;\n if ( IS_HIGH_SURROGATE_LA ( uc ) ) {\n unsigned uc2 ;\n if ( n >= 4 ) {\n if ( be ) uc2 = archive_be16dec ( utf16 ) ;\n else uc2 = archive_le16dec ( utf16 ) ;\n }\n else uc2 = 0 ;\n if ( IS_LOW_SURROGATE_LA ( uc2 ) ) {\n uc = combine_surrogate_pair ( uc , uc2 ) ;\n utf16 += 2 ;\n }\n else {\n * pwc = UNICODE_R_CHAR ;\n return ( - 2 ) ;\n }\n }\n if ( IS_SURROGATE_PAIR_LA ( uc ) || uc > UNICODE_MAX ) {\n * pwc = UNICODE_R_CHAR ;\n return ( ( ( int ) ( utf16 - s ) ) * - 1 ) ;\n }\n * pwc = uc ;\n return ( ( int ) ( utf16 - s ) ) ;\n }"}
{"idx": 11441, "target": 0, "func": "static void nameserver_send_probe ( struct nameserver * const ns ) {\n struct request * req ;\n log ( EVDNS_LOG_DEBUG , \"Sending probe to %s\" , debug_ntoa ( ns -> address ) ) ;\n req = request_new ( TYPE_A , \"www.google.com\" , DNS_QUERY_NO_SEARCH , nameserver_probe_callback , ns ) ;\n if ( ! req ) return ;\n request_trans_id_set ( req , transaction_id_pick ( ) ) ;\n req -> ns = ns ;\n request_submit ( req ) ;\n }"}
{"idx": 11442, "target": 0, "func": "static int dct_quantize_trellis_c ( MpegEncContext * s , int16_t * block , int n , int qscale , int * overflow ) {\n const int * qmat ;\n const uint8_t * scantable = s -> intra_scantable . scantable ;\n const uint8_t * perm_scantable = s -> intra_scantable . permutated ;\n int max = 0 ;\n unsigned int threshold1 , threshold2 ;\n int bias = 0 ;\n int run_tab [ 65 ] ;\n int level_tab [ 65 ] ;\n int score_tab [ 65 ] ;\n int survivor [ 65 ] ;\n int survivor_count ;\n int last_run = 0 ;\n int last_level = 0 ;\n int last_score = 0 ;\n int last_i ;\n int coeff [ 2 ] [ 64 ] ;\n int coeff_count [ 64 ] ;\n int qmul , qadd , start_i , last_non_zero , i , dc ;\n const int esc_length = s -> ac_esc_length ;\n uint8_t * length ;\n uint8_t * last_length ;\n const int lambda = s -> lambda2 >> ( FF_LAMBDA_SHIFT - 6 ) ;\n s -> dsp . fdct ( block ) ;\n if ( s -> dct_error_sum ) s -> denoise_dct ( s , block ) ;\n qmul = qscale * 16 ;\n qadd = ( ( qscale - 1 ) | 1 ) * 8 ;\n if ( s -> mb_intra ) {\n int q ;\n if ( ! s -> h263_aic ) {\n if ( n < 4 ) q = s -> y_dc_scale ;\n else q = s -> c_dc_scale ;\n q = q << 3 ;\n }\n else {\n q = 1 << 3 ;\n qadd = 0 ;\n }\n block [ 0 ] = ( block [ 0 ] + ( q >> 1 ) ) / q ;\n start_i = 1 ;\n last_non_zero = 0 ;\n qmat = s -> q_intra_matrix [ qscale ] ;\n if ( s -> mpeg_quant || s -> out_format == FMT_MPEG1 ) bias = 1 << ( QMAT_SHIFT - 1 ) ;\n length = s -> intra_ac_vlc_length ;\n last_length = s -> intra_ac_vlc_last_length ;\n }\n else {\n start_i = 0 ;\n last_non_zero = - 1 ;\n qmat = s -> q_inter_matrix [ qscale ] ;\n length = s -> inter_ac_vlc_length ;\n last_length = s -> inter_ac_vlc_last_length ;\n }\n last_i = start_i ;\n threshold1 = ( 1 << QMAT_SHIFT ) - bias - 1 ;\n threshold2 = ( threshold1 << 1 ) ;\n for ( i = 63 ;\n i >= start_i ;\n i -- ) {\n const int j = scantable [ i ] ;\n int level = block [ j ] * qmat [ j ] ;\n if ( ( ( unsigned ) ( level + threshold1 ) ) > threshold2 ) {\n last_non_zero = i ;\n break ;\n }\n }\n for ( i = start_i ;\n i <= last_non_zero ;\n i ++ ) {\n const int j = scantable [ i ] ;\n int level = block [ j ] * qmat [ j ] ;\n if ( ( ( unsigned ) ( level + threshold1 ) ) > threshold2 ) {\n if ( level > 0 ) {\n level = ( bias + level ) >> QMAT_SHIFT ;\n coeff [ 0 ] [ i ] = level ;\n coeff [ 1 ] [ i ] = level - 1 ;\n }\n else {\n level = ( bias - level ) >> QMAT_SHIFT ;\n coeff [ 0 ] [ i ] = - level ;\n coeff [ 1 ] [ i ] = - level + 1 ;\n }\n coeff_count [ i ] = FFMIN ( level , 2 ) ;\n assert ( coeff_count [ i ] ) ;\n max |= level ;\n }\n else {\n coeff [ 0 ] [ i ] = ( level >> 31 ) | 1 ;\n coeff_count [ i ] = 1 ;\n }\n }\n * overflow = s -> max_qcoeff < max ;\n if ( last_non_zero < start_i ) {\n memset ( block + start_i , 0 , ( 64 - start_i ) * sizeof ( int16_t ) ) ;\n return last_non_zero ;\n }\n score_tab [ start_i ] = 0 ;\n survivor [ 0 ] = start_i ;\n survivor_count = 1 ;\n for ( i = start_i ;\n i <= last_non_zero ;\n i ++ ) {\n int level_index , j , zero_distortion ;\n int dct_coeff = FFABS ( block [ scantable [ i ] ] ) ;\n int best_score = 256 * 256 * 256 * 120 ;\n if ( s -> dsp . fdct == ff_fdct_ifast ) dct_coeff = ( dct_coeff * ff_inv_aanscales [ scantable [ i ] ] ) >> 12 ;\n zero_distortion = dct_coeff * dct_coeff ;\n for ( level_index = 0 ;\n level_index < coeff_count [ i ] ;\n level_index ++ ) {\n int distortion ;\n int level = coeff [ level_index ] [ i ] ;\n const int alevel = FFABS ( level ) ;\n int unquant_coeff ;\n assert ( level ) ;\n if ( s -> out_format == FMT_H263 ) {\n unquant_coeff = alevel * qmul + qadd ;\n }\n else {\n j = s -> dsp . idct_permutation [ scantable [ i ] ] ;\n if ( s -> mb_intra ) {\n unquant_coeff = ( int ) ( alevel * qscale * s -> intra_matrix [ j ] ) >> 3 ;\n unquant_coeff = ( unquant_coeff - 1 ) | 1 ;\n }\n else {\n unquant_coeff = ( ( ( alevel << 1 ) + 1 ) * qscale * ( ( int ) s -> inter_matrix [ j ] ) ) >> 4 ;\n unquant_coeff = ( unquant_coeff - 1 ) | 1 ;\n }\n unquant_coeff <<= 3 ;\n }\n distortion = ( unquant_coeff - dct_coeff ) * ( unquant_coeff - dct_coeff ) - zero_distortion ;\n level += 64 ;\n if ( ( level & ( ~ 127 ) ) == 0 ) {\n for ( j = survivor_count - 1 ;\n j >= 0 ;\n j -- ) {\n int run = i - survivor [ j ] ;\n int score = distortion + length [ UNI_AC_ENC_INDEX ( run , level ) ] * lambda ;\n score += score_tab [ i - run ] ;\n if ( score < best_score ) {\n best_score = score ;\n run_tab [ i + 1 ] = run ;\n level_tab [ i + 1 ] = level - 64 ;\n }\n }\n if ( s -> out_format == FMT_H263 ) {\n for ( j = survivor_count - 1 ;\n j >= 0 ;\n j -- ) {\n int run = i - survivor [ j ] ;\n int score = distortion + last_length [ UNI_AC_ENC_INDEX ( run , level ) ] * lambda ;\n score += score_tab [ i - run ] ;\n if ( score < last_score ) {\n last_score = score ;\n last_run = run ;\n last_level = level - 64 ;\n last_i = i + 1 ;\n }\n }\n }\n }\n else {\n distortion += esc_length * lambda ;\n for ( j = survivor_count - 1 ;\n j >= 0 ;\n j -- ) {\n int run = i - survivor [ j ] ;\n int score = distortion + score_tab [ i - run ] ;\n if ( score < best_score ) {\n best_score = score ;\n run_tab [ i + 1 ] = run ;\n level_tab [ i + 1 ] = level - 64 ;\n }\n }\n if ( s -> out_format == FMT_H263 ) {\n for ( j = survivor_count - 1 ;\n j >= 0 ;\n j -- ) {\n int run = i - survivor [ j ] ;\n int score = distortion + score_tab [ i - run ] ;\n if ( score < last_score ) {\n last_score = score ;\n last_run = run ;\n last_level = level - 64 ;\n last_i = i + 1 ;\n }\n }\n }\n }\n }\n score_tab [ i + 1 ] = best_score ;\n if ( last_non_zero <= 27 ) {\n for ( ;\n survivor_count ;\n survivor_count -- ) {\n if ( score_tab [ survivor [ survivor_count - 1 ] ] <= best_score ) break ;\n }\n }\n else {\n for ( ;\n survivor_count ;\n survivor_count -- ) {\n if ( score_tab [ survivor [ survivor_count - 1 ] ] <= best_score + lambda ) break ;\n }\n }\n survivor [ survivor_count ++ ] = i + 1 ;\n }\n if ( s -> out_format != FMT_H263 ) {\n last_score = 256 * 256 * 256 * 120 ;\n for ( i = survivor [ 0 ] ;\n i <= last_non_zero + 1 ;\n i ++ ) {\n int score = score_tab [ i ] ;\n if ( i ) score += lambda * 2 ;\n if ( score < last_score ) {\n last_score = score ;\n last_i = i ;\n last_level = level_tab [ i ] ;\n last_run = run_tab [ i ] ;\n }\n }\n }\n s -> coded_score [ n ] = last_score ;\n dc = FFABS ( block [ 0 ] ) ;\n last_non_zero = last_i - 1 ;\n memset ( block + start_i , 0 , ( 64 - start_i ) * sizeof ( int16_t ) ) ;\n if ( last_non_zero < start_i ) return last_non_zero ;\n if ( last_non_zero == 0 && start_i == 0 ) {\n int best_level = 0 ;\n int best_score = dc * dc ;\n for ( i = 0 ;\n i < coeff_count [ 0 ] ;\n i ++ ) {\n int level = coeff [ i ] [ 0 ] ;\n int alevel = FFABS ( level ) ;\n int unquant_coeff , score , distortion ;\n if ( s -> out_format == FMT_H263 ) {\n unquant_coeff = ( alevel * qmul + qadd ) >> 3 ;\n }\n else {\n unquant_coeff = ( ( ( alevel << 1 ) + 1 ) * qscale * ( ( int ) s -> inter_matrix [ 0 ] ) ) >> 4 ;\n unquant_coeff = ( unquant_coeff - 1 ) | 1 ;\n }\n unquant_coeff = ( unquant_coeff + 4 ) >> 3 ;\n unquant_coeff <<= 3 + 3 ;\n distortion = ( unquant_coeff - dc ) * ( unquant_coeff - dc ) ;\n level += 64 ;\n if ( ( level & ( ~ 127 ) ) == 0 ) score = distortion + last_length [ UNI_AC_ENC_INDEX ( 0 , level ) ] * lambda ;\n else score = distortion + esc_length * lambda ;\n if ( score < best_score ) {\n best_score = score ;\n best_level = level - 64 ;\n }\n }\n block [ 0 ] = best_level ;\n s -> coded_score [ n ] = best_score - dc * dc ;\n if ( best_level == 0 ) return - 1 ;\n else return last_non_zero ;\n }\n i = last_i ;\n assert ( last_level ) ;\n block [ perm_scantable [ last_non_zero ] ] = last_level ;\n i -= last_run + 1 ;\n for ( ;\n i > start_i ;\n i -= run_tab [ i ] + 1 ) {\n block [ perm_scantable [ i - 1 ] ] = level_tab [ i ] ;\n }\n return last_non_zero ;\n }"}
{"idx": 11443, "target": 0, "func": "static void dtap_tp_epc_activate_test_mode ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_len = len ;\n curr_offset = offset ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_TP_EPC_UE_TEST_LOOP_MODE , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 11444, "target": 0, "func": "static struct mswsp_ct * get_create_converstation_data ( packet_info * pinfo ) {\n struct mswsp_ct * ct = NULL ;\n conversation_t * conversation ;\n conversation = find_or_create_conversation ( pinfo ) ;\n if ( ! conversation ) {\n return NULL ;\n }\n ct = ( struct mswsp_ct * ) conversation_get_proto_data ( conversation , proto_mswsp ) ;\n if ( ! ct ) {\n ct = wmem_new ( wmem_file_scope ( ) , struct mswsp_ct ) ;\n ct -> GSL_message_data = NULL ;\n conversation_add_proto_data ( conversation , proto_mswsp , ct ) ;\n }\n return ct ;\n }"}
{"idx": 11445, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n ZmbvContext * const c = avctx -> priv_data ;\n int zret = Z_OK ;\n int len = buf_size ;\n int hi_ver , lo_ver , ret ;\n uint8_t * tmp ;\n if ( c -> pic . data [ 0 ] ) avctx -> release_buffer ( avctx , & c -> pic ) ;\n c -> pic . reference = 1 ;\n c -> pic . buffer_hints = FF_BUFFER_HINTS_VALID ;\n if ( ( ret = ff_get_buffer ( avctx , & c -> pic ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n c -> flags = buf [ 0 ] ;\n buf ++ ;\n len -- ;\n if ( c -> flags & ZMBV_KEYFRAME ) {\n hi_ver = buf [ 0 ] ;\n lo_ver = buf [ 1 ] ;\n c -> comp = buf [ 2 ] ;\n c -> fmt = buf [ 3 ] ;\n c -> bw = buf [ 4 ] ;\n c -> bh = buf [ 5 ] ;\n c -> decode_intra = NULL ;\n c -> decode_xor = NULL ;\n buf += 6 ;\n len -= 6 ;\n av_log ( avctx , AV_LOG_DEBUG , \"Flags=%X ver=%i.%i comp=%i fmt=%i blk=%ix%i\\n\" , c -> flags , hi_ver , lo_ver , c -> comp , c -> fmt , c -> bw , c -> bh ) ;\n if ( hi_ver != 0 || lo_ver != 1 ) {\n av_log_ask_for_sample ( avctx , \"Unsupported version %i.%i\\n\" , hi_ver , lo_ver ) ;\n return AVERROR_PATCHWELCOME ;\n }\n if ( c -> bw == 0 || c -> bh == 0 ) {\n av_log_ask_for_sample ( avctx , \"Unsupported block size %ix%i\\n\" , c -> bw , c -> bh ) ;\n return AVERROR_PATCHWELCOME ;\n }\n if ( c -> comp != 0 && c -> comp != 1 ) {\n av_log_ask_for_sample ( avctx , \"Unsupported compression type %i\\n\" , c -> comp ) ;\n return AVERROR_PATCHWELCOME ;\n }\n switch ( c -> fmt ) {\n case ZMBV_FMT_8BPP : c -> bpp = 8 ;\n c -> decode_intra = zmbv_decode_intra ;\n c -> decode_xor = zmbv_decode_xor_8 ;\n break ;\n case ZMBV_FMT_15BPP : case ZMBV_FMT_16BPP : c -> bpp = 16 ;\n c -> decode_intra = zmbv_decode_intra ;\n c -> decode_xor = zmbv_decode_xor_16 ;\n break ;\n # ifdef ZMBV_ENABLE_24BPP case ZMBV_FMT_24BPP : c -> bpp = 24 ;\n c -> decode_intra = zmbv_decode_intra ;\n c -> decode_xor = zmbv_decode_xor_24 ;\n break ;\n # endif case ZMBV_FMT_32BPP : c -> bpp = 32 ;\n c -> decode_intra = zmbv_decode_intra ;\n c -> decode_xor = zmbv_decode_xor_32 ;\n break ;\n default : c -> decode_intra = NULL ;\n c -> decode_xor = NULL ;\n av_log_ask_for_sample ( avctx , \"Unsupported (for now) format %i\\n\" , c -> fmt ) ;\n return AVERROR_PATCHWELCOME ;\n }\n zret = inflateReset ( & c -> zstream ) ;\n if ( zret != Z_OK ) {\n av_log ( avctx , AV_LOG_ERROR , \"Inflate reset error: %d\\n\" , zret ) ;\n return AVERROR_UNKNOWN ;\n }\n tmp = av_realloc ( c -> cur , avctx -> width * avctx -> height * ( c -> bpp / 8 ) ) ;\n if ( ! tmp ) return AVERROR ( ENOMEM ) ;\n c -> cur = tmp ;\n tmp = av_realloc ( c -> prev , avctx -> width * avctx -> height * ( c -> bpp / 8 ) ) ;\n if ( ! tmp ) return AVERROR ( ENOMEM ) ;\n c -> prev = tmp ;\n c -> bx = ( c -> width + c -> bw - 1 ) / c -> bw ;\n c -> by = ( c -> height + c -> bh - 1 ) / c -> bh ;\n }\n if ( c -> decode_intra == NULL ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error! Got no format or no keyframe!\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( c -> comp == 0 ) {\n memcpy ( c -> decomp_buf , buf , len ) ;\n c -> decomp_size = 1 ;\n }\n else {\n c -> zstream . total_in = c -> zstream . total_out = 0 ;\n c -> zstream . next_in = buf ;\n c -> zstream . avail_in = len ;\n c -> zstream . next_out = c -> decomp_buf ;\n c -> zstream . avail_out = c -> decomp_size ;\n zret = inflate ( & c -> zstream , Z_SYNC_FLUSH ) ;\n if ( zret != Z_OK && zret != Z_STREAM_END ) {\n av_log ( avctx , AV_LOG_ERROR , \"inflate error %d\\n\" , zret ) ;\n return AVERROR_INVALIDDATA ;\n }\n c -> decomp_len = c -> zstream . total_out ;\n }\n if ( c -> flags & ZMBV_KEYFRAME ) {\n c -> pic . key_frame = 1 ;\n c -> pic . pict_type = AV_PICTURE_TYPE_I ;\n c -> decode_intra ( c ) ;\n }\n else {\n c -> pic . key_frame = 0 ;\n c -> pic . pict_type = AV_PICTURE_TYPE_P ;\n if ( c -> decomp_len ) c -> decode_xor ( c ) ;\n }\n {\n uint8_t * out , * src ;\n int i , j ;\n out = c -> pic . data [ 0 ] ;\n src = c -> cur ;\n switch ( c -> fmt ) {\n case ZMBV_FMT_8BPP : for ( j = 0 ;\n j < c -> height ;\n j ++ ) {\n for ( i = 0 ;\n i < c -> width ;\n i ++ ) {\n out [ i * 3 + 0 ] = c -> pal [ ( * src ) * 3 + 0 ] ;\n out [ i * 3 + 1 ] = c -> pal [ ( * src ) * 3 + 1 ] ;\n out [ i * 3 + 2 ] = c -> pal [ ( * src ) * 3 + 2 ] ;\n src ++ ;\n }\n out += c -> pic . linesize [ 0 ] ;\n }\n break ;\n case ZMBV_FMT_15BPP : for ( j = 0 ;\n j < c -> height ;\n j ++ ) {\n for ( i = 0 ;\n i < c -> width ;\n i ++ ) {\n uint16_t tmp = AV_RL16 ( src ) ;\n src += 2 ;\n out [ i * 3 + 0 ] = ( tmp & 0x7C00 ) >> 7 ;\n out [ i * 3 + 1 ] = ( tmp & 0x03E0 ) >> 2 ;\n out [ i * 3 + 2 ] = ( tmp & 0x001F ) << 3 ;\n }\n out += c -> pic . linesize [ 0 ] ;\n }\n break ;\n case ZMBV_FMT_16BPP : for ( j = 0 ;\n j < c -> height ;\n j ++ ) {\n for ( i = 0 ;\n i < c -> width ;\n i ++ ) {\n uint16_t tmp = AV_RL16 ( src ) ;\n src += 2 ;\n out [ i * 3 + 0 ] = ( tmp & 0xF800 ) >> 8 ;\n out [ i * 3 + 1 ] = ( tmp & 0x07E0 ) >> 3 ;\n out [ i * 3 + 2 ] = ( tmp & 0x001F ) << 3 ;\n }\n out += c -> pic . linesize [ 0 ] ;\n }\n break ;\n # ifdef ZMBV_ENABLE_24BPP case ZMBV_FMT_24BPP : for ( j = 0 ;\n j < c -> height ;\n j ++ ) {\n memcpy ( out , src , c -> width * 3 ) ;\n src += c -> width * 3 ;\n out += c -> pic . linesize [ 0 ] ;\n }\n break ;\n # endif case ZMBV_FMT_32BPP : for ( j = 0 ;\n j < c -> height ;\n j ++ ) {\n for ( i = 0 ;\n i < c -> width ;\n i ++ ) {\n uint32_t tmp = AV_RL32 ( src ) ;\n src += 4 ;\n AV_WB24 ( out + ( i * 3 ) , tmp ) ;\n }\n out += c -> pic . linesize [ 0 ] ;\n }\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"Cannot handle format %i\\n\" , c -> fmt ) ;\n }\n FFSWAP ( uint8_t * , c -> cur , c -> prev ) ;\n }\n * got_frame = 1 ;\n * ( AVFrame * ) data = c -> pic ;\n return buf_size ;\n }"}
{"idx": 11446, "target": 0, "func": "static int dissect_h245_T_t35Extension ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 255U , & t35Extension , FALSE ) ;\n return offset ;\n }"}
{"idx": 11447, "target": 0, "func": "enum ImapAuthRes imap_auth_login ( struct ImapData * idata , const char * method ) {\n char q_user [ SHORT_STRING ] , q_pass [ SHORT_STRING ] ;\n char buf [ STRING ] ;\n int rc ;\n if ( mutt_bit_isset ( idata -> capabilities , LOGINDISABLED ) ) {\n mutt_message ( _ ( \"LOGIN disabled on this server.\" ) ) ;\n return IMAP_AUTH_UNAVAIL ;\n }\n if ( mutt_account_getuser ( & idata -> conn -> account ) < 0 ) return IMAP_AUTH_FAILURE ;\n if ( mutt_account_getpass ( & idata -> conn -> account ) < 0 ) return IMAP_AUTH_FAILURE ;\n mutt_message ( _ ( \"Logging in...\" ) ) ;\n imap_quote_string ( q_user , sizeof ( q_user ) , idata -> conn -> account . user , false ) ;\n imap_quote_string ( q_pass , sizeof ( q_pass ) , idata -> conn -> account . pass , false ) ;\n if ( DebugLevel < IMAP_LOG_PASS ) mutt_debug ( 2 , \"Sending LOGIN command for %s...\\n\" , idata -> conn -> account . user ) ;\n snprintf ( buf , sizeof ( buf ) , \"LOGIN %s %s\" , q_user , q_pass ) ;\n rc = imap_exec ( idata , buf , IMAP_CMD_FAIL_OK | IMAP_CMD_PASS ) ;\n if ( ! rc ) {\n mutt_clear_error ( ) ;\n return IMAP_AUTH_SUCCESS ;\n }\n mutt_error ( _ ( \"Login failed.\" ) ) ;\n return IMAP_AUTH_FAILURE ;\n }"}
{"idx": 11448, "target": 1, "func": "int ff_decode_sbr_extension ( AACContext * ac , SpectralBandReplication * sbr , GetBitContext * gb_host , int crc , int cnt , int id_aac ) {\n unsigned int num_sbr_bits = 0 , num_align_bits ;\n unsigned bytes_read ;\n GetBitContext gbc = * gb_host , * gb = & gbc ;\n skip_bits_long ( gb_host , cnt * 8 - 4 ) ;\n sbr -> reset = 0 ;\n if ( ! sbr -> sample_rate ) sbr -> sample_rate = 2 * ac -> oc [ 1 ] . m4ac . sample_rate ;\n if ( ! ac -> oc [ 1 ] . m4ac . ext_sample_rate ) ac -> oc [ 1 ] . m4ac . ext_sample_rate = 2 * ac -> oc [ 1 ] . m4ac . sample_rate ;\n if ( crc ) {\n skip_bits ( gb , 10 ) ;\n num_sbr_bits += 10 ;\n }\n sbr -> kx [ 0 ] = sbr -> kx [ 1 ] ;\n sbr -> m [ 0 ] = sbr -> m [ 1 ] ;\n sbr -> kx_and_m_pushed = 1 ;\n num_sbr_bits ++ ;\n if ( get_bits1 ( gb ) ) num_sbr_bits += read_sbr_header ( sbr , gb ) ;\n if ( sbr -> reset ) sbr_reset ( ac , sbr ) ;\n if ( sbr -> start ) num_sbr_bits += read_sbr_data ( ac , sbr , gb , id_aac ) ;\n num_align_bits = ( ( cnt << 3 ) - 4 - num_sbr_bits ) & 7 ;\n bytes_read = ( ( num_sbr_bits + num_align_bits + 4 ) >> 3 ) ;\n if ( bytes_read > cnt ) {\n av_log ( ac -> avctx , AV_LOG_ERROR , \"Expected to read %d SBR bytes actually read %d.\\n\" , cnt , bytes_read ) ;\n }\n return cnt ;\n }"}
{"idx": 11449, "target": 0, "func": "TEST_F ( HistoryQuickProviderTest , PreventInlineAutocomplete ) {\n std : : vector < std : : string > expected_urls ;\n expected_urls . push_back ( \"http://popularsitewithroot.com/\" ) ;\n RunTest ( ASCIIToUTF16 ( \"popularsitewithr\" ) , false , expected_urls , true , ASCIIToUTF16 ( \"popularsitewithroot.com\" ) , ASCIIToUTF16 ( \"oot.com\" ) ) ;\n RunTest ( ASCIIToUTF16 ( \"popularsitewithr\" ) , true , expected_urls , false , ASCIIToUTF16 ( \"popularsitewithroot.com\" ) , ASCIIToUTF16 ( \"oot.com\" ) ) ;\n RunTest ( ASCIIToUTF16 ( \"popularsitewithroot.com\" ) , true , expected_urls , true , ASCIIToUTF16 ( \"popularsitewithroot.com\" ) , base : : string16 ( ) ) ;\n RunTest ( ASCIIToUTF16 ( \"popularsitewithroot.com/\" ) , true , expected_urls , true , ASCIIToUTF16 ( \"popularsitewithroot.com\" ) , base : : string16 ( ) ) ;\n }"}
{"idx": 11450, "target": 0, "func": "static int old_dsa_priv_encode ( const EVP_PKEY * pkey , unsigned char * * pder ) {\n return i2d_DSAPrivateKey ( pkey -> pkey . dsa , pder ) ;\n }"}
{"idx": 11451, "target": 0, "func": "static void fast_cmyk_to_gray ( fz_context * ctx , fz_pixmap * dst , fz_pixmap * src , fz_colorspace * prf , const fz_default_colorspaces * default_cs , const fz_color_params * color_params , int copy_spots ) {\n unsigned char * s = src -> samples ;\n unsigned char * d = dst -> samples ;\n size_t w = src -> w ;\n int h = src -> h ;\n int sn = src -> n ;\n int ss = src -> s ;\n int sa = src -> alpha ;\n int dn = dst -> n ;\n int ds = dst -> s ;\n int da = dst -> alpha ;\n ptrdiff_t d_line_inc = dst -> stride - w * dn ;\n ptrdiff_t s_line_inc = src -> stride - w * sn ;\n if ( ( copy_spots && ss != ds ) || ( ! da && sa ) ) {\n assert ( \"This should never happen\" == NULL ) ;\n fz_throw ( ctx , FZ_ERROR_GENERIC , \"Cannot convert between incompatible pixmaps\" ) ;\n }\n if ( ( int ) w < 0 || h < 0 ) return ;\n if ( d_line_inc == 0 && s_line_inc == 0 ) {\n w *= h ;\n h = 1 ;\n }\n if ( ss == 0 && ds == 0 ) {\n if ( da ) {\n if ( sa ) {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n unsigned char c = fz_mul255 ( s [ 0 ] , 77 ) ;\n unsigned char m = fz_mul255 ( s [ 1 ] , 150 ) ;\n unsigned char y = fz_mul255 ( s [ 2 ] , 28 ) ;\n d [ 0 ] = 255 - ( unsigned char ) fz_mini ( c + m + y + s [ 3 ] , 255 ) ;\n d [ 1 ] = s [ 4 ] ;\n s += 5 ;\n d += 2 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n else {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n unsigned char c = fz_mul255 ( s [ 0 ] , 77 ) ;\n unsigned char m = fz_mul255 ( s [ 1 ] , 150 ) ;\n unsigned char y = fz_mul255 ( s [ 2 ] , 28 ) ;\n d [ 0 ] = 255 - ( unsigned char ) fz_mini ( c + m + y + s [ 3 ] , 255 ) ;\n d [ 1 ] = 255 ;\n s += 3 ;\n d += 2 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n }\n else {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n unsigned char c = fz_mul255 ( s [ 0 ] , 77 ) ;\n unsigned char m = fz_mul255 ( s [ 1 ] , 150 ) ;\n unsigned char y = fz_mul255 ( s [ 2 ] , 28 ) ;\n d [ 0 ] = 255 - ( unsigned char ) fz_mini ( c + m + y + s [ 3 ] , 255 ) ;\n s += 4 ;\n d ++ ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n }\n else if ( copy_spots ) {\n while ( h -- ) {\n int i ;\n size_t ww = w ;\n while ( ww -- ) {\n unsigned char c = fz_mul255 ( s [ 0 ] , 77 ) ;\n unsigned char m = fz_mul255 ( s [ 1 ] , 150 ) ;\n unsigned char y = fz_mul255 ( s [ 2 ] , 28 ) ;\n d [ 0 ] = 255 - ( unsigned char ) fz_mini ( c + m + y + s [ 3 ] , 255 ) ;\n s += 4 ;\n d ++ ;\n for ( i = ss ;\n i > 0 ;\n i -- ) * d ++ = * s ++ ;\n if ( da ) * d ++ = sa ? * s ++ : 255 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n else {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n unsigned char c = fz_mul255 ( 255 - s [ 0 ] , 77 ) ;\n unsigned char m = fz_mul255 ( 255 - s [ 1 ] , 150 ) ;\n unsigned char y = fz_mul255 ( 255 - s [ 2 ] , 28 ) ;\n d [ 0 ] = ( unsigned char ) fz_maxi ( s [ 3 ] - c - m - y , 0 ) ;\n s += sn ;\n d += dn ;\n if ( da ) d [ - 1 ] = sa ? s [ - 1 ] : 255 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n }"}
{"idx": 11452, "target": 1, "func": "void xps_parse_color ( xps_document * doc , char * base_uri , char * string , fz_colorspace * * csp , float * samples ) {\n char * p ;\n int i , n ;\n char buf [ 1024 ] ;\n char * profile ;\n * csp = fz_device_rgb ( doc -> ctx ) ;\n samples [ 0 ] = 1 ;\n samples [ 1 ] = 0 ;\n samples [ 2 ] = 0 ;\n samples [ 3 ] = 0 ;\n if ( string [ 0 ] == '#' ) {\n if ( strlen ( string ) == 9 ) {\n samples [ 0 ] = unhex ( string [ 1 ] ) * 16 + unhex ( string [ 2 ] ) ;\n samples [ 1 ] = unhex ( string [ 3 ] ) * 16 + unhex ( string [ 4 ] ) ;\n samples [ 2 ] = unhex ( string [ 5 ] ) * 16 + unhex ( string [ 6 ] ) ;\n samples [ 3 ] = unhex ( string [ 7 ] ) * 16 + unhex ( string [ 8 ] ) ;\n }\n else {\n samples [ 0 ] = 255 ;\n samples [ 1 ] = unhex ( string [ 1 ] ) * 16 + unhex ( string [ 2 ] ) ;\n samples [ 2 ] = unhex ( string [ 3 ] ) * 16 + unhex ( string [ 4 ] ) ;\n samples [ 3 ] = unhex ( string [ 5 ] ) * 16 + unhex ( string [ 6 ] ) ;\n }\n samples [ 0 ] /= 255 ;\n samples [ 1 ] /= 255 ;\n samples [ 2 ] /= 255 ;\n samples [ 3 ] /= 255 ;\n }\n else if ( string [ 0 ] == 's' && string [ 1 ] == 'c' && string [ 2 ] == '#' ) {\n if ( count_commas ( string ) == 2 ) sscanf ( string , \"sc#%g,%g,%g\" , samples + 1 , samples + 2 , samples + 3 ) ;\n if ( count_commas ( string ) == 3 ) sscanf ( string , \"sc#%g,%g,%g,%g\" , samples , samples + 1 , samples + 2 , samples + 3 ) ;\n }\n else if ( strstr ( string , \"ContextColor \" ) == string ) {\n fz_strlcpy ( buf , string , sizeof buf ) ;\n profile = strchr ( buf , ' ' ) ;\n if ( ! profile ) {\n fz_warn ( doc -> ctx , \"cannot find icc profile uri in '%s'\" , string ) ;\n return ;\n }\n * profile ++ = 0 ;\n p = strchr ( profile , ' ' ) ;\n if ( ! p ) {\n fz_warn ( doc -> ctx , \"cannot find component values in '%s'\" , profile ) ;\n return ;\n }\n * p ++ = 0 ;\n n = count_commas ( p ) + 1 ;\n i = 0 ;\n while ( i < n ) {\n samples [ i ++ ] = fz_atof ( p ) ;\n p = strchr ( p , ',' ) ;\n if ( ! p ) break ;\n p ++ ;\n if ( * p == ' ' ) p ++ ;\n }\n while ( i < n ) {\n samples [ i ++ ] = 0 ;\n }\n switch ( n ) {\n case 2 : * csp = fz_device_gray ( doc -> ctx ) ;\n break ;\n case 4 : * csp = fz_device_rgb ( doc -> ctx ) ;\n break ;\n case 5 : * csp = fz_device_cmyk ( doc -> ctx ) ;\n break ;\n default : * csp = fz_device_gray ( doc -> ctx ) ;\n break ;\n }\n }\n }"}
{"idx": 11453, "target": 0, "func": "int dissect_h225_GenericData ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 828 \"./asn1/h225/h225.cnf\" void * priv_data = actx -> private_data ;\n gef_ctx_t * gefx ;\n gefx = gef_ctx_get ( actx -> private_data ) ;\n if ( ! gefx ) {\n gefx = gef_ctx_alloc ( NULL , \"GenericData\" ) ;\n actx -> private_data = gefx ;\n }\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_GenericData , GenericData_sequence ) ;\n # line 838 \"./asn1/h225/h225.cnf\" actx -> private_data = priv_data ;\n return offset ;\n }"}
{"idx": 11454, "target": 0, "func": "static UChar32 U_CALLCONV _Latin1GetNextUChar ( UConverterToUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n const uint8_t * source = ( const uint8_t * ) pArgs -> source ;\n if ( source < ( const uint8_t * ) pArgs -> sourceLimit ) {\n pArgs -> source = ( const char * ) ( source + 1 ) ;\n return * source ;\n }\n * pErrorCode = U_INDEX_OUTOFBOUNDS_ERROR ;\n return 0xffff ;\n }"}
{"idx": 11455, "target": 0, "func": "static void cmd_window_dup ( void ) {\n MAIN_WINDOW_REC * rec ;\n rec = mainwindows_find_upper ( active_mainwin ) ;\n if ( rec == NULL ) rec = mainwindows_find_upper ( NULL ) ;\n if ( rec != NULL ) window_set_active ( rec -> active ) ;\n }"}
{"idx": 11456, "target": 0, "func": "static int h263_decode_block ( MpegEncContext * s , int16_t * block , int n , int coded ) {\n int code , level , i , j , last , run ;\n RLTable * rl = & ff_h263_rl_inter ;\n const uint8_t * scan_table ;\n GetBitContext gb = s -> gb ;\n scan_table = s -> intra_scantable . permutated ;\n if ( s -> h263_aic && s -> mb_intra ) {\n rl = & ff_rl_intra_aic ;\n i = 0 ;\n if ( s -> ac_pred ) {\n if ( s -> h263_aic_dir ) scan_table = s -> intra_v_scantable . permutated ;\n else scan_table = s -> intra_h_scantable . permutated ;\n }\n }\n else if ( s -> mb_intra ) {\n if ( s -> codec_id == AV_CODEC_ID_RV10 ) {\n # if CONFIG_RV10_DECODER if ( s -> rv10_version == 3 && s -> pict_type == AV_PICTURE_TYPE_I ) {\n int component , diff ;\n component = ( n <= 3 ? 0 : n - 4 + 1 ) ;\n level = s -> last_dc [ component ] ;\n if ( s -> rv10_first_dc_coded [ component ] ) {\n diff = ff_rv_decode_dc ( s , n ) ;\n if ( diff == 0xffff ) return - 1 ;\n level += diff ;\n level = level & 0xff ;\n s -> last_dc [ component ] = level ;\n }\n else {\n s -> rv10_first_dc_coded [ component ] = 1 ;\n }\n }\n else {\n level = get_bits ( & s -> gb , 8 ) ;\n if ( level == 255 ) level = 128 ;\n }\n # endif }\n else {\n level = get_bits ( & s -> gb , 8 ) ;\n if ( ( level & 0x7F ) == 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"illegal dc %d at %d %d\\n\" , level , s -> mb_x , s -> mb_y ) ;\n if ( s -> err_recognition & AV_EF_BITSTREAM ) return - 1 ;\n }\n if ( level == 255 ) level = 128 ;\n }\n block [ 0 ] = level ;\n i = 1 ;\n }\n else {\n i = 0 ;\n }\n if ( ! coded ) {\n if ( s -> mb_intra && s -> h263_aic ) goto not_coded ;\n s -> block_last_index [ n ] = i - 1 ;\n return 0 ;\n }\n retry : for ( ;\n ;\n ) {\n code = get_vlc2 ( & s -> gb , rl -> vlc . table , TEX_VLC_BITS , 2 ) ;\n if ( code < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"illegal ac vlc code at %dx%d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n if ( code == rl -> n ) {\n if ( CONFIG_FLV_DECODER && s -> h263_flv > 1 ) {\n ff_flv2_decode_ac_esc ( & s -> gb , & level , & run , & last ) ;\n }\n else {\n last = get_bits1 ( & s -> gb ) ;\n run = get_bits ( & s -> gb , 6 ) ;\n level = ( int8_t ) get_bits ( & s -> gb , 8 ) ;\n if ( level == - 128 ) {\n if ( s -> codec_id == AV_CODEC_ID_RV10 ) {\n level = get_sbits ( & s -> gb , 12 ) ;\n }\n else {\n level = get_bits ( & s -> gb , 5 ) ;\n level |= get_sbits ( & s -> gb , 6 ) << 5 ;\n }\n }\n }\n }\n else {\n run = rl -> table_run [ code ] ;\n level = rl -> table_level [ code ] ;\n last = code >= rl -> last ;\n if ( get_bits1 ( & s -> gb ) ) level = - level ;\n }\n i += run ;\n if ( i >= 64 ) {\n if ( s -> alt_inter_vlc && rl == & ff_h263_rl_inter && ! s -> mb_intra ) {\n rl = & ff_rl_intra_aic ;\n i = 0 ;\n s -> gb = gb ;\n s -> dsp . clear_block ( block ) ;\n goto retry ;\n }\n av_log ( s -> avctx , AV_LOG_ERROR , \"run overflow at %dx%d i:%d\\n\" , s -> mb_x , s -> mb_y , s -> mb_intra ) ;\n return - 1 ;\n }\n j = scan_table [ i ] ;\n block [ j ] = level ;\n if ( last ) break ;\n i ++ ;\n }\n not_coded : if ( s -> mb_intra && s -> h263_aic ) {\n ff_h263_pred_acdc ( s , block , n ) ;\n i = 63 ;\n }\n s -> block_last_index [ n ] = i ;\n return 0 ;\n }"}
{"idx": 11457, "target": 0, "func": "static int isoent_cmp_key_iso9660 ( const struct archive_rb_node * node , const void * key ) {\n const struct isoent * isoent = ( const struct isoent * ) key ;\n const struct idrent * idrent = ( const struct idrent * ) node ;\n return ( isoent_cmp_iso9660_identifier ( isoent , idrent -> isoent ) ) ;\n }"}
{"idx": 11458, "target": 1, "func": "int vp9_compute_rd_mult ( const VP9_COMP * cpi , int qindex ) {\n const int q = vp9_dc_quant ( qindex , 0 ) ;\n int rdmult = 88 * q * q / 24 ;\n if ( cpi -> oxcf . pass == 2 && ( cpi -> common . frame_type != KEY_FRAME ) ) {\n const GF_GROUP * const gf_group = & cpi -> twopass . gf_group ;\n const FRAME_UPDATE_TYPE frame_type = gf_group -> update_type [ gf_group -> index ] ;\n const int boost_index = MIN ( 15 , ( cpi -> rc . gfu_boost / 100 ) ) ;\n rdmult = ( rdmult * rd_frame_type_factor [ frame_type ] ) >> 7 ;\n rdmult += ( ( rdmult * rd_boost_factor [ boost_index ] ) >> 7 ) ;\n }\n return rdmult ;\n }"}
{"idx": 11459, "target": 0, "func": "unsigned int vp9_variance ## W ## x ## H ## _c ( const uint8_t * a , int a_stride , const uint8_t * b , int b_stride , unsigned int * sse ) {\n int sum ;\n variance ( a , a_stride , b , b_stride , W , H , sse , & sum ) ;\n return * sse - ( ( ( int64_t ) sum * sum ) / ( W * H ) ) ;\n \\ }\n # define SUBPIX_VAR ( W , H ) unsigned int vp9_sub_pixel_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp2 , W , dst , dst_stride , sse ) ;\n \\ }\n # define SUBPIX_AVG_VAR ( W , H ) unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 ) VAR ( 8 , 4 ) SUBPIX_VAR ( 8 , 4 ) SUBPIX_AVG_VAR ( 8 , 4 ) VAR ( 8 , 8 ) SUBPIX_VAR ( 8 , 8 ) SUBPIX_AVG_VAR ( 8 , 8 ) VAR ( 8 , 16 ) SUBPIX_VAR ( 8 , 16 ) SUBPIX_AVG_VAR ( 8 , 16 ) VAR ( 16 , 8 ) SUBPIX_VAR ( 16 , 8 ) SUBPIX_AVG_VAR ( 16 , 8 ) VAR ( 16 , 16 ) SUBPIX_VAR ( 16 , 16 ) SUBPIX_AVG_VAR ( 16 , 16 ) VAR ( 16 , 32 )"}
{"idx": 11460, "target": 0, "func": "static int32_t u_scanf_skip_leading_positive_sign ( UFILE * input , UNumberFormat * format , UErrorCode * status ) {\n UChar c ;\n int32_t count = 0 ;\n UBool isNotEOF ;\n UChar plusSymbol [ USCANF_SYMBOL_BUFFER_SIZE ] ;\n int32_t symbolLen ;\n UErrorCode localStatus = U_ZERO_ERROR ;\n if ( U_SUCCESS ( * status ) ) {\n symbolLen = unum_getSymbol ( format , UNUM_PLUS_SIGN_SYMBOL , plusSymbol , UPRV_LENGTHOF ( plusSymbol ) , & localStatus ) ;\n if ( U_SUCCESS ( localStatus ) ) {\n while ( ( isNotEOF = ufile_getch ( input , & c ) ) && ( count < symbolLen && c == plusSymbol [ count ] ) ) {\n count ++ ;\n }\n if ( isNotEOF ) {\n u_fungetc ( c , input ) ;\n }\n }\n }\n return count ;\n }"}
{"idx": 11461, "target": 0, "func": "static __always_inline __be32 __cpu_to_be32p ( const __u32 * p ) {\n return ( __be32 ) __swab32p ( p ) ;\n }"}
{"idx": 11462, "target": 0, "func": "static inline int predict ( int16_t * src , int16_t * last ) {\n const int LT = last [ - 1 ] ;\n const int T = last [ 0 ] ;\n const int L = src [ - 1 ] ;\n return mid_pred ( L , L + T - LT , T ) ;\n }"}
{"idx": 11463, "target": 1, "func": "static void _HZReset ( UConverter * cnv , UConverterResetChoice choice ) {\n if ( choice <= UCNV_RESET_TO_UNICODE ) {\n cnv -> toUnicodeStatus = 0 ;\n cnv -> mode = 0 ;\n if ( cnv -> extraInfo != NULL ) {\n ( ( UConverterDataHZ * ) cnv -> extraInfo ) -> isStateDBCS = FALSE ;\n ( ( UConverterDataHZ * ) cnv -> extraInfo ) -> isEmptySegment = FALSE ;\n }\n }\n if ( choice != UCNV_RESET_TO_UNICODE ) {\n cnv -> fromUnicodeStatus = 0 ;\n cnv -> fromUChar32 = 0x0000 ;\n if ( cnv -> extraInfo != NULL ) {\n ( ( UConverterDataHZ * ) cnv -> extraInfo ) -> isEscapeAppended = FALSE ;\n ( ( UConverterDataHZ * ) cnv -> extraInfo ) -> targetIndex = 0 ;\n ( ( UConverterDataHZ * ) cnv -> extraInfo ) -> sourceIndex = 0 ;\n ( ( UConverterDataHZ * ) cnv -> extraInfo ) -> isTargetUCharDBCS = FALSE ;\n }\n }\n }"}
{"idx": 11464, "target": 0, "func": "static ASN1_INTEGER * obj_to_asn1int ( VALUE obj ) {\n return num_to_asn1integer ( obj , NULL ) ;\n }"}
{"idx": 11465, "target": 0, "func": "TSReturnCode compare_field_names ( RegressionTest * , TSMBuffer bufp1 , TSMLoc mime_loc1 , TSMLoc field_loc1 , TSMBuffer bufp2 , TSMLoc mime_loc2 , TSMLoc field_loc2 ) {\n const char * name1 ;\n const char * name2 ;\n int length1 ;\n int length2 ;\n name1 = TSMimeHdrFieldNameGet ( bufp1 , mime_loc1 , field_loc1 , & length1 ) ;\n name2 = TSMimeHdrFieldNameGet ( bufp2 , mime_loc2 , field_loc2 , & length2 ) ;\n if ( ( length1 == length2 ) && ( strncmp ( name1 , name2 , length1 ) == 0 ) ) {\n return TS_SUCCESS ;\n }\n else {\n return TS_ERROR ;\n }\n }"}
{"idx": 11466, "target": 0, "func": "static hb_bool_t hb_icu_unicode_compose ( hb_unicode_funcs_t * ufuncs HB_UNUSED , hb_codepoint_t a , hb_codepoint_t b , hb_codepoint_t * ab , void * user_data HB_UNUSED ) {\n # if U_ICU_VERSION_MAJOR_NUM >= 49 {\n UChar32 ret = unorm2_composePair ( normalizer , a , b ) ;\n if ( ret < 0 ) return false ;\n * ab = ret ;\n return true ;\n }\n # endif UChar utf16 [ 4 ] , normalized [ 5 ] ;\n unsigned int len ;\n hb_bool_t ret , err ;\n UErrorCode icu_err ;\n len = 0 ;\n err = false ;\n U16_APPEND ( utf16 , len , ARRAY_LENGTH ( utf16 ) , a , err ) ;\n if ( err ) return false ;\n U16_APPEND ( utf16 , len , ARRAY_LENGTH ( utf16 ) , b , err ) ;\n if ( err ) return false ;\n icu_err = U_ZERO_ERROR ;\n len = unorm_normalize ( utf16 , len , UNORM_NFC , 0 , normalized , ARRAY_LENGTH ( normalized ) , & icu_err ) ;\n if ( U_FAILURE ( icu_err ) ) return false ;\n if ( u_countChar32 ( normalized , len ) == 1 ) {\n U16_GET_UNSAFE ( normalized , 0 , * ab ) ;\n ret = true ;\n }\n else {\n ret = false ;\n }\n return ret ;\n }"}
{"idx": 11467, "target": 0, "func": "rfbBool rfbSendKeyboardLedState ( rfbClientPtr cl ) {\n rfbFramebufferUpdateRectHeader rect ;\n if ( cl -> ublen + sz_rfbFramebufferUpdateRectHeader > UPDATE_BUF_SIZE ) {\n if ( ! rfbSendUpdateBuf ( cl ) ) return FALSE ;\n }\n rect . encoding = Swap32IfLE ( rfbEncodingKeyboardLedState ) ;\n rect . r . x = Swap16IfLE ( cl -> lastKeyboardLedState ) ;\n rect . r . y = 0 ;\n rect . r . w = 0 ;\n rect . r . h = 0 ;\n memcpy ( & cl -> updateBuf [ cl -> ublen ] , ( char * ) & rect , sz_rfbFramebufferUpdateRectHeader ) ;\n cl -> ublen += sz_rfbFramebufferUpdateRectHeader ;\n rfbStatRecordEncodingSent ( cl , rfbEncodingKeyboardLedState , sz_rfbFramebufferUpdateRectHeader , sz_rfbFramebufferUpdateRectHeader ) ;\n if ( ! rfbSendUpdateBuf ( cl ) ) return FALSE ;\n return TRUE ;\n }"}
{"idx": 11468, "target": 0, "func": "static int dwarf_elf_object_access_internals_init ( void * obj_in , dwarf_elf_handle elf , int * error ) {\n dwarf_elf_object_access_internals_t * obj = ( dwarf_elf_object_access_internals_t * ) obj_in ;\n char * ehdr_ident = 0 ;\n Dwarf_Half machine = 0 ;\n obj -> elf = elf ;\n if ( ( ehdr_ident = elf_getident ( elf , NULL ) ) == NULL ) {\n * error = DW_DLE_ELF_GETIDENT_ERROR ;\n return DW_DLV_ERROR ;\n }\n obj -> is_64bit = ( ehdr_ident [ EI_CLASS ] == ELFCLASS64 ) ;\n if ( ehdr_ident [ EI_DATA ] == ELFDATA2LSB ) {\n obj -> endianness = DW_OBJECT_LSB ;\n }\n else if ( ehdr_ident [ EI_DATA ] == ELFDATA2MSB ) {\n obj -> endianness = DW_OBJECT_MSB ;\n }\n if ( obj -> is_64bit ) {\n # ifdef HAVE_ELF64_GETEHDR obj -> ehdr64 = elf64_getehdr ( elf ) ;\n if ( obj -> ehdr64 == NULL ) {\n * error = DW_DLE_ELF_GETEHDR_ERROR ;\n return DW_DLV_ERROR ;\n }\n obj -> section_count = obj -> ehdr64 -> e_shnum ;\n machine = obj -> ehdr64 -> e_machine ;\n obj -> machine = machine ;\n # else * error = DW_DLE_NO_ELF64_SUPPORT ;\n return DW_DLV_ERROR ;\n # endif }\n else {\n obj -> ehdr32 = elf32_getehdr ( elf ) ;\n if ( obj -> ehdr32 == NULL ) {\n * error = DW_DLE_ELF_GETEHDR_ERROR ;\n return DW_DLV_ERROR ;\n }\n obj -> section_count = obj -> ehdr32 -> e_shnum ;\n machine = obj -> ehdr32 -> e_machine ;\n obj -> machine = machine ;\n }\n obj -> length_size = obj -> is_64bit ? 8 : 4 ;\n obj -> pointer_size = obj -> is_64bit ? 8 : 4 ;\n # ifdef WIN32 if ( obj -> is_64bit && machine == EM_PPC64 ) {\n obj -> pointer_size = 4 ;\n }\n # endif if ( obj -> is_64bit && machine != EM_MIPS ) {\n obj -> length_size = 4 ;\n }\n return DW_DLV_OK ;\n }"}
{"idx": 11469, "target": 0, "func": "static guint16 de_tp_epc_horizontal_velocity ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n curr_offset = offset ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_dtap_epc_bearing , tvb , curr_offset << 3 , 9 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_dtap_epc_horizontal_speed , tvb , ( curr_offset << 3 ) + 9 , 11 , ENC_BIG_ENDIAN ) ;\n curr_offset += 3 ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 11470, "target": 0, "func": "static void jbig2_decode_mmr_consume ( Jbig2MmrCtx * mmr , int n_bits ) {\n mmr -> word <<= n_bits ;\n mmr -> bit_index += n_bits ;\n while ( mmr -> bit_index >= 8 ) {\n mmr -> bit_index -= 8 ;\n if ( mmr -> data_index + 4 < mmr -> size ) mmr -> word |= ( mmr -> data [ mmr -> data_index + 4 ] << mmr -> bit_index ) ;\n mmr -> data_index ++ ;\n }\n }"}
{"idx": 11471, "target": 0, "func": "static bool expression_returns_set_rows_walker ( Node * node , double * count ) {\n if ( node == NULL ) return false ;\n if ( IsA ( node , FuncExpr ) ) {\n FuncExpr * expr = ( FuncExpr * ) node ;\n if ( expr -> funcretset ) * count *= get_func_rows ( expr -> funcid ) ;\n }\n if ( IsA ( node , OpExpr ) ) {\n OpExpr * expr = ( OpExpr * ) node ;\n if ( expr -> opretset ) {\n set_opfuncid ( expr ) ;\n * count *= get_func_rows ( expr -> opfuncid ) ;\n }\n }\n if ( IsA ( node , Aggref ) ) return false ;\n if ( IsA ( node , WindowFunc ) ) return false ;\n if ( IsA ( node , DistinctExpr ) ) return false ;\n if ( IsA ( node , NullIfExpr ) ) return false ;\n if ( IsA ( node , ScalarArrayOpExpr ) ) return false ;\n if ( IsA ( node , BoolExpr ) ) return false ;\n if ( IsA ( node , SubLink ) ) return false ;\n if ( IsA ( node , SubPlan ) ) return false ;\n if ( IsA ( node , AlternativeSubPlan ) ) return false ;\n if ( IsA ( node , ArrayExpr ) ) return false ;\n if ( IsA ( node , RowExpr ) ) return false ;\n if ( IsA ( node , RowCompareExpr ) ) return false ;\n if ( IsA ( node , CoalesceExpr ) ) return false ;\n if ( IsA ( node , MinMaxExpr ) ) return false ;\n if ( IsA ( node , XmlExpr ) ) return false ;\n return expression_tree_walker ( node , expression_returns_set_rows_walker , ( void * ) count ) ;\n }"}
{"idx": 11472, "target": 0, "func": "static void dissect_field_value ( tvbuff_t * tvb , int offset , proto_tree * tree , guint16 field_type , int field_length , int encoding ) {\n switch ( field_type ) {\n case PDM_TYPE_BOOLEAN : proto_tree_add_item ( tree , hf_lbmpdm_field_value_boolean , tvb , offset , field_length , encoding ) ;\n break ;\n case PDM_TYPE_INT8 : proto_tree_add_item ( tree , hf_lbmpdm_field_value_int8 , tvb , offset , field_length , encoding ) ;\n break ;\n case PDM_TYPE_UINT8 : proto_tree_add_item ( tree , hf_lbmpdm_field_value_uint8 , tvb , offset , field_length , encoding ) ;\n break ;\n case PDM_TYPE_INT16 : proto_tree_add_item ( tree , hf_lbmpdm_field_value_int16 , tvb , offset , field_length , encoding ) ;\n break ;\n case PDM_TYPE_UINT16 : proto_tree_add_item ( tree , hf_lbmpdm_field_value_uint16 , tvb , offset , field_length , encoding ) ;\n break ;\n case PDM_TYPE_INT32 : proto_tree_add_item ( tree , hf_lbmpdm_field_value_int32 , tvb , offset , field_length , encoding ) ;\n break ;\n case PDM_TYPE_UINT32 : proto_tree_add_item ( tree , hf_lbmpdm_field_value_uint32 , tvb , offset , field_length , encoding ) ;\n break ;\n case PDM_TYPE_INT64 : proto_tree_add_item ( tree , hf_lbmpdm_field_value_int64 , tvb , offset , field_length , encoding ) ;\n break ;\n case PDM_TYPE_UINT64 : proto_tree_add_item ( tree , hf_lbmpdm_field_value_uint64 , tvb , offset , field_length , encoding ) ;\n break ;\n case PDM_TYPE_FLOAT : proto_tree_add_item ( tree , hf_lbmpdm_field_value_float , tvb , offset , field_length , encoding ) ;\n break ;\n case PDM_TYPE_DOUBLE : proto_tree_add_item ( tree , hf_lbmpdm_field_value_double , tvb , offset , field_length , encoding ) ;\n break ;\n case PDM_TYPE_DECIMAL : {\n gint64 mantissa ;\n gint8 exponent ;\n gint64 whole = 0 ;\n guint64 fraction = 0 ;\n gint8 shift_count ;\n exponent = ( gint8 ) tvb_get_guint8 ( tvb , offset ) ;\n mantissa = ( gint64 ) lbmpdm_fetch_uint64_encoded ( tvb , offset + 1 , encoding ) ;\n if ( exponent >= 0 ) {\n whole = mantissa ;\n shift_count = exponent ;\n while ( shift_count > 0 ) {\n whole *= 10 ;\n shift_count -- ;\n }\n proto_tree_add_none_format ( tree , hf_lbmpdm_field_value_decimal , tvb , offset , field_length , \"DECIMAL Value: %\" G_GINT64_FORMAT \" (%\" G_GINT64_FORMAT \"e%d)\" , whole , mantissa , exponent ) ;\n }\n else {\n guint64 divisor = 1 ;\n int decimal_digits = - exponent ;\n shift_count = decimal_digits ;\n while ( shift_count > 0 ) {\n divisor *= 10 ;\n shift_count -- ;\n }\n if ( mantissa < 0 ) {\n whole = - mantissa ;\n }\n else {\n whole = mantissa ;\n }\n fraction = whole % divisor ;\n whole /= divisor ;\n if ( mantissa < 0 ) {\n whole *= - 1 ;\n }\n proto_tree_add_none_format ( tree , hf_lbmpdm_field_value_decimal , tvb , offset , field_length , \"DECIMAL Value: %\" G_GINT64_FORMAT \".%0*\" G_GUINT64_FORMAT \" (%\" G_GINT64_FORMAT \"e%d)\" , whole , decimal_digits , fraction , mantissa , exponent ) ;\n }\n }\n break ;\n case PDM_TYPE_TIMESTAMP : {\n nstime_t timestamp ;\n timestamp . secs = ( time_t ) lbmpdm_fetch_uint32_encoded ( tvb , offset , encoding ) ;\n timestamp . nsecs = ( int ) ( lbmpdm_fetch_uint32_encoded ( tvb , offset + 4 , encoding ) * 1000 ) ;\n proto_tree_add_time ( tree , hf_lbmpdm_field_value_timestamp , tvb , offset , field_length , & timestamp ) ;\n }\n break ;\n case PDM_TYPE_FIX_STRING : proto_tree_add_item ( tree , hf_lbmpdm_field_value_fixed_string , tvb , offset , field_length , encoding ) ;\n break ;\n case PDM_TYPE_STRING : proto_tree_add_item ( tree , hf_lbmpdm_field_value_string , tvb , offset , field_length , encoding ) ;\n break ;\n case PDM_TYPE_FIX_UNICODE : proto_tree_add_item ( tree , hf_lbmpdm_field_value_fixed_unicode , tvb , offset , field_length , encoding ) ;\n break ;\n case PDM_TYPE_UNICODE : proto_tree_add_item ( tree , hf_lbmpdm_field_value_unicode , tvb , offset , field_length , encoding ) ;\n break ;\n case PDM_TYPE_BLOB : proto_tree_add_item ( tree , hf_lbmpdm_field_value_blob , tvb , offset , field_length , encoding ) ;\n break ;\n case PDM_TYPE_MESSAGE : proto_tree_add_item ( tree , hf_lbmpdm_field_value_message , tvb , offset , field_length , encoding ) ;\n break ;\n default : break ;\n }\n }"}
{"idx": 11473, "target": 0, "func": "static int dissect_h245_T_rfc2733 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_rfc2733 , T_rfc2733_sequence ) ;\n return offset ;\n }"}
{"idx": 11474, "target": 0, "func": "TEST_F ( TemplateURLTest , InvalidateCachedValues ) {\n TemplateURLData data ;\n data . SetURL ( \"{\ngoogle:baseURL}\nsearch?q={\nsearchTerms}\n\" ) ;\n data . suggestions_url = \"{\ngoogle:baseSuggestURL}\nsearch?q={\nsearchTerms}\n\" ;\n data . instant_url = \"{\ngoogle:baseURL}\nwebhp\" ;\n data . image_url = \"{\ngoogle:baseURL}\nsearchbyimage/upload\" ;\n data . new_tab_url = \"{\ngoogle:baseURL}\n_/chromeewtab\" ;\n data . contextual_search_url = \"{\ngoogle:baseURL}\n_/contextualsearch\" ;\n data . alternate_urls . push_back ( \"{\ngoogle:baseURL}\ns#q={\nsearchTerms}\n\" ) ;\n TemplateURL url ( data ) ;\n TemplateURLRef : : SearchTermsArgs search_terms_args ( ASCIIToUTF16 ( \"X\" ) ) ;\n base : : string16 search_terms ;\n EXPECT_TRUE ( url . HasGoogleBaseURLs ( search_terms_data_ ) ) ;\n EXPECT_EQ ( \"http://www.google.com/search?q=X\" , url . url_ref ( ) . ReplaceSearchTerms ( search_terms_args , search_terms_data_ ) ) ;\n EXPECT_EQ ( \"http://www.google.com/s#q=X\" , url . url_refs ( ) [ 0 ] . ReplaceSearchTerms ( search_terms_args , search_terms_data_ ) ) ;\n EXPECT_EQ ( \"http://www.google.com/search?q=X\" , url . url_refs ( ) [ 1 ] . ReplaceSearchTerms ( search_terms_args , search_terms_data_ ) ) ;\n EXPECT_EQ ( \"http://www.google.com/complete/search?q=X\" , url . suggestions_url_ref ( ) . ReplaceSearchTerms ( search_terms_args , search_terms_data_ ) ) ;\n EXPECT_EQ ( \"http://www.google.com/webhp\" , url . instant_url_ref ( ) . ReplaceSearchTerms ( search_terms_args , search_terms_data_ ) ) ;\n EXPECT_EQ ( \"http://www.google.com/searchbyimage/upload\" , url . image_url_ref ( ) . ReplaceSearchTerms ( search_terms_args , search_terms_data_ ) ) ;\n EXPECT_EQ ( \"http://www.google.com/_/chromeewtab\" , url . new_tab_url_ref ( ) . ReplaceSearchTerms ( search_terms_args , search_terms_data_ ) ) ;\n EXPECT_EQ ( \"http://www.google.com/_/contextualsearch\" , url . contextual_search_url_ref ( ) . ReplaceSearchTerms ( search_terms_args , search_terms_data_ ) ) ;\n EXPECT_TRUE ( url . ExtractSearchTermsFromURL ( GURL ( \"http://www.google.com/search?q=Y+Z\" ) , search_terms_data_ , & search_terms ) ) ;\n EXPECT_EQ ( base : : ASCIIToUTF16 ( \"Y Z\" ) , search_terms ) ;\n EXPECT_TRUE ( url . ExtractSearchTermsFromURL ( GURL ( \"http://www.google.com/s#q=123\" ) , search_terms_data_ , & search_terms ) ) ;\n EXPECT_EQ ( base : : ASCIIToUTF16 ( \"123\" ) , search_terms ) ;\n search_terms_data_ . set_google_base_url ( \"https://www.foo.org/\" ) ;\n url . InvalidateCachedValues ( ) ;\n EXPECT_TRUE ( url . HasGoogleBaseURLs ( search_terms_data_ ) ) ;\n EXPECT_EQ ( \"https://www.foo.org/search?q=X\" , url . url_ref ( ) . ReplaceSearchTerms ( search_terms_args , search_terms_data_ ) ) ;\n EXPECT_EQ ( \"https://www.foo.org/s#q=X\" , url . url_refs ( ) [ 0 ] . ReplaceSearchTerms ( search_terms_args , search_terms_data_ ) ) ;\n EXPECT_EQ ( \"https://www.foo.org/search?q=X\" , url . url_refs ( ) [ 1 ] . ReplaceSearchTerms ( search_terms_args , search_terms_data_ ) ) ;\n EXPECT_EQ ( \"https://www.foo.org/complete/search?q=X\" , url . suggestions_url_ref ( ) . ReplaceSearchTerms ( search_terms_args , search_terms_data_ ) ) ;\n EXPECT_EQ ( \"https://www.foo.org/webhp\" , url . instant_url_ref ( ) . ReplaceSearchTerms ( search_terms_args , search_terms_data_ ) ) ;\n EXPECT_EQ ( \"https://www.foo.org/searchbyimage/upload\" , url . image_url_ref ( ) . ReplaceSearchTerms ( search_terms_args , search_terms_data_ ) ) ;\n EXPECT_EQ ( \"https://www.foo.org/_/chromeewtab\" , url . new_tab_url_ref ( ) . ReplaceSearchTerms ( search_terms_args , search_terms_data_ ) ) ;\n EXPECT_EQ ( \"https://www.foo.org/_/contextualsearch\" , url . contextual_search_url_ref ( ) . ReplaceSearchTerms ( search_terms_args , search_terms_data_ ) ) ;\n EXPECT_TRUE ( url . ExtractSearchTermsFromURL ( GURL ( \"https://www.foo.org/search?q=Y+Z\" ) , search_terms_data_ , & search_terms ) ) ;\n EXPECT_EQ ( base : : ASCIIToUTF16 ( \"Y Z\" ) , search_terms ) ;\n EXPECT_TRUE ( url . ExtractSearchTermsFromURL ( GURL ( \"https://www.foo.org/s#q=123\" ) , search_terms_data_ , & search_terms ) ) ;\n EXPECT_EQ ( base : : ASCIIToUTF16 ( \"123\" ) , search_terms ) ;\n search_terms_data_ . set_google_base_url ( \"http://www.google.com/\" ) ;\n }"}
{"idx": 11475, "target": 0, "func": "static int dissect_pcp_message ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n proto_item * root_pcp_item ;\n proto_tree * pcp_tree ;\n conversation_t * conversation ;\n pcp_conv_info_t * pcp_conv_info ;\n guint32 packet_type ;\n gint32 err_bytes ;\n int offset = 0 ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"PCP\" ) ;\n col_clear ( pinfo -> cinfo , COL_INFO ) ;\n conversation = find_or_create_conversation ( pinfo ) ;\n pcp_conv_info = ( pcp_conv_info_t * ) conversation_get_proto_data ( conversation , proto_pcp ) ;\n if ( pcp_conv_info == NULL ) {\n pcp_conv_info = ( pcp_conv_info_t * ) wmem_alloc ( wmem_file_scope ( ) , sizeof ( pcp_conv_info_t ) ) ;\n conversation_add_proto_data ( conversation , proto_pcp , pcp_conv_info ) ;\n pcp_conv_info -> pmid_name_candidates = wmem_array_new ( wmem_file_scope ( ) , sizeof ( guint8 * ) ) ;\n pcp_conv_info -> pmid_to_name = wmem_map_new ( wmem_file_scope ( ) , g_direct_hash , g_direct_equal ) ;\n pcp_conv_info -> last_pmns_names_frame = 0 ;\n pcp_conv_info -> last_processed_pmns_names_frame = 0 ;\n }\n root_pcp_item = proto_tree_add_item ( tree , proto_pcp , tvb , 0 , - 1 , ENC_NA ) ;\n pcp_tree = proto_item_add_subtree ( root_pcp_item , ett_pcp ) ;\n packet_type = tvb_get_ntohl ( tvb , 4 ) ;\n if ( pinfo -> srcport == PCP_PORT || pinfo -> srcport == PMPROXY_PORT ) {\n col_set_str ( pinfo -> cinfo , COL_INFO , \"Server > Client \" ) ;\n }\n else {\n col_set_str ( pinfo -> cinfo , COL_INFO , \"Client > Server \" ) ;\n }\n proto_tree_add_item ( pcp_tree , hf_pcp_pdu_length , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( pcp_tree , hf_pcp_pdu_type , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( pcp_tree , hf_pcp_pdu_pid , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n switch ( packet_type ) {\n case PCP_PDU_CREDS : dissect_pcp_message_creds ( tvb , pinfo , pcp_tree , offset ) ;\n break ;\n case PCP_PDU_START_OR_ERROR : err_bytes = tvb_get_ntohl ( tvb , offset ) ;\n if ( err_bytes < 0 ) {\n dissect_pcp_message_error ( tvb , pinfo , pcp_tree , offset ) ;\n }\n else {\n dissect_pcp_message_start ( tvb , pinfo , pcp_tree , offset ) ;\n }\n break ;\n case PCP_PDU_PMNS_TRAVERSE : dissect_pcp_message_pmns_traverse ( tvb , pinfo , pcp_tree , offset ) ;\n break ;\n case PCP_PDU_PMNS_NAMES : dissect_pcp_message_pmns_names ( tvb , pinfo , pcp_tree , offset ) ;\n break ;\n case PCP_PDU_PMNS_CHILD : dissect_pcp_message_pmns_child ( tvb , pinfo , pcp_tree , offset ) ;\n break ;\n case PCP_PDU_PMNS_IDS : dissect_pcp_message_pmns_ids ( tvb , pinfo , pcp_tree , offset ) ;\n break ;\n case PCP_PDU_PROFILE : dissect_pcp_message_profile ( tvb , pinfo , pcp_tree , offset ) ;\n break ;\n case PCP_PDU_FETCH : dissect_pcp_message_fetch ( tvb , pinfo , pcp_tree , offset ) ;\n break ;\n case PCP_PDU_RESULT : dissect_pcp_message_result ( tvb , pinfo , pcp_tree , offset ) ;\n break ;\n case PCP_PDU_DESC_REQ : dissect_pcp_message_desc_req ( tvb , pinfo , pcp_tree , offset ) ;\n break ;\n case PCP_PDU_DESC : dissect_pcp_message_desc ( tvb , pinfo , pcp_tree , offset ) ;\n break ;\n case PCP_PDU_INSTANCE_REQ : dissect_pcp_message_instance_req ( tvb , pinfo , pcp_tree , offset ) ;\n break ;\n case PCP_PDU_INSTANCE : dissect_pcp_message_instance ( tvb , pinfo , pcp_tree , offset ) ;\n break ;\n case PCP_PDU_TEXT_REQ : dissect_pcp_message_text_req ( tvb , pinfo , pcp_tree , offset ) ;\n break ;\n case PCP_PDU_TEXT : dissect_pcp_message_text ( tvb , pinfo , pcp_tree , offset ) ;\n break ;\n case PCP_PDU_USER_AUTH : dissect_pcp_message_user_auth ( tvb , pinfo , pcp_tree , offset ) ;\n break ;\n default : col_append_str ( pinfo -> cinfo , COL_INFO , \"[UNIMPLEMENTED TYPE]\" ) ;\n expert_add_info ( pinfo , pcp_tree , & ei_pcp_unimplemented_packet_type ) ;\n break ;\n }\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 11476, "target": 0, "func": "static int selinux_task_setnice ( struct task_struct * p , int nice ) {\n return current_has_perm ( p , PROCESS__SETSCHED ) ;\n }"}
{"idx": 11477, "target": 0, "func": "void hb_face_set_glyph_count ( hb_face_t * face , unsigned int glyph_count ) {\n if ( face -> immutable ) return ;\n face -> num_glyphs = glyph_count ;\n }"}
{"idx": 11478, "target": 0, "func": "gboolean k12_dump_open ( wtap_dumper * wdh , int * err ) {\n k12_dump_t * k12 ;\n if ( ! wtap_dump_file_write ( wdh , k12_file_magic , 8 , err ) ) {\n return FALSE ;\n }\n if ( wtap_dump_file_seek ( wdh , K12_FILE_HDR_LEN , SEEK_SET , err ) == - 1 ) return FALSE ;\n wdh -> subtype_write = k12_dump ;\n wdh -> subtype_finish = k12_dump_finish ;\n k12 = ( k12_dump_t * ) g_malloc ( sizeof ( k12_dump_t ) ) ;\n wdh -> priv = ( void * ) k12 ;\n k12 -> file_len = K12_FILE_HDR_LEN ;\n k12 -> num_of_records = 0 ;\n k12 -> file_offset = K12_FILE_HDR_LEN ;\n return TRUE ;\n }"}
{"idx": 11479, "target": 0, "func": "guint16 de_sup_codec_list ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n guint8 length ;\n proto_tree * subtree ;\n guint8 sysid_counter ;\n curr_offset = offset ;\n sysid_counter = 0 ;\n while ( len > ( curr_offset - offset ) ) {\n sysid_counter ++ ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_sysid , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_bitmap_length , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n length = tvb_get_guint8 ( tvb , curr_offset ) ;\n curr_offset ++ ;\n if ( length > 0 ) {\n subtree = proto_tree_add_subtree_format ( tree , tvb , curr_offset , length , ett_gsm_dtap_elem [ DE_SUP_CODEC_LIST ] , NULL , \"Codec Bitmap for SysID %u\" , sysid_counter ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_codec_tdma_efr , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_codec_umts_amr_2 , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_codec_umts_amr , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_codec_hr_amr , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_codec_fr_amr , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_codec_gsm_efr , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_codec_gsm_hr , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_codec_gsm_fr , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n length -- ;\n if ( length > 0 ) {\n proto_tree_add_bits_item ( subtree , hf_gsm_a_spare_bits , tvb , curr_offset << 3 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_codec_ohr_amr_wb , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_codec_ofr_amr_wb , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_codec_ohr_amr , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_codec_umts_amr_wb , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_codec_fr_amr_wb , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_codec_pdc_efr , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n length -- ;\n }\n }\n curr_offset = curr_offset + length ;\n }\n return ( curr_offset - offset ) ;\n }"}
{"idx": 11480, "target": 0, "func": "static int user_key_command_allowed2 ( struct ssh * ssh , struct passwd * user_pw , struct sshkey * key , struct sshauthopt * * authoptsp ) {\n struct passwd * runas_pw = NULL ;\n FILE * f = NULL ;\n int r , ok , found_key = 0 ;\n int i , uid_swapped = 0 , ac = 0 ;\n pid_t pid ;\n char * username = NULL , * key_fp = NULL , * keytext = NULL ;\n char uidstr [ 32 ] , * tmp , * command = NULL , * * av = NULL ;\n void ( * osigchld ) ( int ) ;\n if ( authoptsp != NULL ) * authoptsp = NULL ;\n if ( options . authorized_keys_command == NULL ) return 0 ;\n if ( options . authorized_keys_command_user == NULL ) {\n error ( \"No user for AuthorizedKeysCommand specified, skipping\" ) ;\n return 0 ;\n }\n osigchld = signal ( SIGCHLD , SIG_DFL ) ;\n username = percent_expand ( options . authorized_keys_command_user , \"u\" , user_pw -> pw_name , ( char * ) NULL ) ;\n runas_pw = getpwnam ( username ) ;\n if ( runas_pw == NULL ) {\n error ( \"AuthorizedKeysCommandUser \\\"%s\\\" not found: %s\" , username , strerror ( errno ) ) ;\n goto out ;\n }\n if ( ( key_fp = sshkey_fingerprint ( key , options . fingerprint_hash , SSH_FP_DEFAULT ) ) == NULL ) {\n error ( \"%s: sshkey_fingerprint failed\" , __func__ ) ;\n goto out ;\n }\n if ( ( r = sshkey_to_base64 ( key , & keytext ) ) != 0 ) {\n error ( \"%s: sshkey_to_base64 failed: %s\" , __func__ , ssh_err ( r ) ) ;\n goto out ;\n }\n if ( argv_split ( options . authorized_keys_command , & ac , & av ) != 0 ) {\n error ( \"AuthorizedKeysCommand \\\"%s\\\" contains invalid quotes\" , command ) ;\n goto out ;\n }\n if ( ac == 0 ) {\n error ( \"AuthorizedKeysCommand \\\"%s\\\" yielded no arguments\" , command ) ;\n goto out ;\n }\n snprintf ( uidstr , sizeof ( uidstr ) , \"%llu\" , ( unsigned long long ) user_pw -> pw_uid ) ;\n for ( i = 1 ;\n i < ac ;\n i ++ ) {\n tmp = percent_expand ( av [ i ] , \"U\" , uidstr , \"u\" , user_pw -> pw_name , \"h\" , user_pw -> pw_dir , \"t\" , sshkey_ssh_name ( key ) , \"f\" , key_fp , \"k\" , keytext , ( char * ) NULL ) ;\n if ( tmp == NULL ) fatal ( \"%s: percent_expand failed\" , __func__ ) ;\n free ( av [ i ] ) ;\n av [ i ] = tmp ;\n }\n command = argv_assemble ( ac , av ) ;\n if ( ac == 1 ) {\n av = xreallocarray ( av , ac + 2 , sizeof ( * av ) ) ;\n av [ 1 ] = xstrdup ( user_pw -> pw_name ) ;\n av [ 2 ] = NULL ;\n free ( command ) ;\n xasprintf ( & command , \"%s %s\" , av [ 0 ] , av [ 1 ] ) ;\n }\n if ( ( pid = subprocess ( \"AuthorizedKeysCommand\" , runas_pw , command , ac , av , & f , SSH_SUBPROCESS_STDOUT_CAPTURE | SSH_SUBPROCESS_STDERR_DISCARD ) ) == 0 ) goto out ;\n uid_swapped = 1 ;\n temporarily_use_uid ( runas_pw ) ;\n ok = check_authkeys_file ( ssh , user_pw , f , options . authorized_keys_command , key , authoptsp ) ;\n fclose ( f ) ;\n f = NULL ;\n if ( exited_cleanly ( pid , \"AuthorizedKeysCommand\" , command , 0 ) != 0 ) goto out ;\n found_key = ok ;\n out : if ( f != NULL ) fclose ( f ) ;\n signal ( SIGCHLD , osigchld ) ;\n for ( i = 0 ;\n i < ac ;\n i ++ ) free ( av [ i ] ) ;\n free ( av ) ;\n if ( uid_swapped ) restore_uid ( ) ;\n free ( command ) ;\n free ( username ) ;\n free ( key_fp ) ;\n free ( keytext ) ;\n return found_key ;\n }"}
{"idx": 11481, "target": 0, "func": "static int dissect_h245_LogicalChannelRateRequest ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_LogicalChannelRateRequest , LogicalChannelRateRequest_sequence ) ;\n return offset ;\n }"}
{"idx": 11482, "target": 0, "func": "void kvm_arch_reset_vcpu ( X86CPU * cpu ) {\n CPUX86State * env = & cpu -> env ;\n env -> xcr0 = 1 ;\n if ( kvm_irqchip_in_kernel ( ) ) {\n env -> mp_state = cpu_is_bsp ( cpu ) ? KVM_MP_STATE_RUNNABLE : KVM_MP_STATE_UNINITIALIZED ;\n }\n else {\n env -> mp_state = KVM_MP_STATE_RUNNABLE ;\n }\n if ( cpu -> hyperv_synic ) {\n int i ;\n for ( i = 0 ;\n i < ARRAY_SIZE ( env -> msr_hv_synic_sint ) ;\n i ++ ) {\n env -> msr_hv_synic_sint [ i ] = HV_SINT_MASKED ;\n }\n }\n }"}
{"idx": 11483, "target": 0, "func": "static int parse_h264_sdp_line ( AVFormatContext * s , int st_index , PayloadContext * h264_data , const char * line ) {\n AVStream * stream ;\n const char * p = line ;\n if ( st_index < 0 ) return 0 ;\n stream = s -> streams [ st_index ] ;\n if ( av_strstart ( p , \"framesize:\" , & p ) ) {\n ff_h264_parse_framesize ( stream -> codecpar , p ) ;\n }\n else if ( av_strstart ( p , \"fmtp:\" , & p ) ) {\n return ff_parse_fmtp ( s , stream , h264_data , p , sdp_parse_fmtp_config_h264 ) ;\n }\n else if ( av_strstart ( p , \"cliprect:\" , & p ) ) {\n }\n return 0 ;\n }"}
{"idx": 11484, "target": 0, "func": "int qemuMonitorTextAddUSBDeviceExact ( qemuMonitorPtr mon , int bus , int dev ) {\n int ret ;\n char * addr ;\n if ( virAsprintf ( & addr , \"host:%.3d.%.3d\" , bus , dev ) < 0 ) {\n virReportOOMError ( ) ;\n return - 1 ;\n }\n ret = qemuMonitorTextAddUSBDevice ( mon , addr ) ;\n VIR_FREE ( addr ) ;\n return ret ;\n }"}
{"idx": 11485, "target": 0, "func": "void mvsyslog ( int level , const char * fmt , va_list ap ) {\n char buf [ 1024 ] ;\n mvsnprintf ( buf , sizeof ( buf ) , fmt , ap ) ;\n addto_syslog ( level , buf ) ;\n }"}
{"idx": 11486, "target": 0, "func": "static gboolean gst_asf_demux_check_first_ts ( GstASFDemux * demux , gboolean force ) {\n if ( G_UNLIKELY ( ! GST_CLOCK_TIME_IS_VALID ( demux -> first_ts ) ) ) {\n GstClockTime first_ts = GST_CLOCK_TIME_NONE ;\n int i ;\n for ( i = 0 ;\n i < demux -> num_streams ;\n ++ i ) {\n AsfStream * stream ;\n int j ;\n GstClockTime stream_min_ts = GST_CLOCK_TIME_NONE ;\n GstClockTime stream_min_ts2 = GST_CLOCK_TIME_NONE ;\n stream = & demux -> stream [ i ] ;\n for ( j = 0 ;\n j < stream -> payloads -> len ;\n ++ j ) {\n AsfPayload * payload = & g_array_index ( stream -> payloads , AsfPayload , j ) ;\n if ( GST_CLOCK_TIME_IS_VALID ( payload -> ts ) && ( ! GST_CLOCK_TIME_IS_VALID ( stream_min_ts ) || stream_min_ts > payload -> ts ) ) {\n stream_min_ts = payload -> ts ;\n }\n if ( GST_CLOCK_TIME_IS_VALID ( payload -> ts ) && payload -> ts > stream_min_ts && ( ! GST_CLOCK_TIME_IS_VALID ( stream_min_ts2 ) || stream_min_ts2 > payload -> ts ) ) {\n stream_min_ts2 = payload -> ts ;\n }\n }\n if ( stream_min_ts == 0 && stream_min_ts2 == GST_CLOCK_TIME_NONE && ! force ) return FALSE ;\n if ( stream_min_ts == 0 && stream_min_ts2 > GST_SECOND ) stream_min_ts = stream_min_ts2 ;\n if ( ! GST_CLOCK_TIME_IS_VALID ( stream_min_ts ) && ! force ) return FALSE ;\n if ( GST_CLOCK_TIME_IS_VALID ( stream_min_ts ) && ( ! GST_CLOCK_TIME_IS_VALID ( first_ts ) || first_ts > stream_min_ts ) ) first_ts = stream_min_ts ;\n }\n if ( ! GST_CLOCK_TIME_IS_VALID ( first_ts ) ) first_ts = 0 ;\n demux -> first_ts = first_ts ;\n for ( i = 0 ;\n i < demux -> num_streams ;\n ++ i ) {\n AsfStream * stream ;\n int j ;\n stream = & demux -> stream [ i ] ;\n for ( j = 0 ;\n j < stream -> payloads -> len ;\n ++ j ) {\n AsfPayload * payload = & g_array_index ( stream -> payloads , AsfPayload , j ) ;\n if ( GST_CLOCK_TIME_IS_VALID ( payload -> ts ) ) {\n if ( payload -> ts > first_ts ) payload -> ts -= first_ts ;\n else payload -> ts = 0 ;\n }\n }\n }\n }\n gst_asf_demux_check_segment_ts ( demux , 0 ) ;\n return TRUE ;\n }"}
{"idx": 11487, "target": 0, "func": "static void dissect_OpenLogicalChannel_PDU ( tvbuff_t * tvb _U_ , packet_info * pinfo _U_ , proto_tree * tree _U_ ) {\n asn1_ctx_t asn1_ctx ;\n asn1_ctx_init ( & asn1_ctx , ASN1_ENC_PER , TRUE , pinfo ) ;\n dissect_h245_OpenLogicalChannel ( tvb , 0 , & asn1_ctx , tree , hf_h245_OpenLogicalChannel_PDU ) ;\n }"}
{"idx": 11488, "target": 1, "func": "static int get_aq_c_strength ( int q_index ) {\n int base_quant = vp9_ac_quant ( q_index , 0 ) / 4 ;\n return ( base_quant > 20 ) + ( base_quant > 45 ) ;\n }"}
{"idx": 11489, "target": 0, "func": "static int read_block_types ( AVCodecContext * avctx , GetBitContext * gb , Bundle * b ) {\n int t , v ;\n int last = 0 ;\n const uint8_t * dec_end ;\n CHECK_READ_VAL ( gb , b , t ) ;\n dec_end = b -> cur_dec + t ;\n if ( dec_end > b -> data_end ) {\n av_log ( avctx , AV_LOG_ERROR , \"Too many block type values\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( get_bits1 ( gb ) ) {\n v = get_bits ( gb , 4 ) ;\n memset ( b -> cur_dec , v , t ) ;\n b -> cur_dec += t ;\n }\n else {\n while ( b -> cur_dec < dec_end ) {\n v = GET_HUFF ( gb , b -> tree ) ;\n if ( v < 12 ) {\n last = v ;\n * b -> cur_dec ++ = v ;\n }\n else {\n int run = bink_rlelens [ v - 12 ] ;\n if ( dec_end - b -> cur_dec < run ) return AVERROR_INVALIDDATA ;\n memset ( b -> cur_dec , last , run ) ;\n b -> cur_dec += run ;\n }\n }\n }\n return 0 ;\n }"}
{"idx": 11490, "target": 1, "func": "static void write_ref_frames ( const VP9_COMMON * cm , const MACROBLOCKD * xd , vp9_writer * w ) {\n const MB_MODE_INFO * const mbmi = & xd -> mi [ 0 ] -> mbmi ;\n const int is_compound = has_second_ref ( mbmi ) ;\n const int segment_id = mbmi -> segment_id ;\n if ( vp9_segfeature_active ( & cm -> seg , segment_id , SEG_LVL_REF_FRAME ) ) {\n assert ( ! is_compound ) ;\n assert ( mbmi -> ref_frame [ 0 ] == vp9_get_segdata ( & cm -> seg , segment_id , SEG_LVL_REF_FRAME ) ) ;\n }\n else {\n if ( cm -> reference_mode == REFERENCE_MODE_SELECT ) {\n vp9_write ( w , is_compound , vp9_get_reference_mode_prob ( cm , xd ) ) ;\n }\n else {\n assert ( ! is_compound == ( cm -> reference_mode == SINGLE_REFERENCE ) ) ;\n }\n if ( is_compound ) {\n vp9_write ( w , mbmi -> ref_frame [ 0 ] == GOLDEN_FRAME , vp9_get_pred_prob_comp_ref_p ( cm , xd ) ) ;\n }\n else {\n const int bit0 = mbmi -> ref_frame [ 0 ] != LAST_FRAME ;\n vp9_write ( w , bit0 , vp9_get_pred_prob_single_ref_p1 ( cm , xd ) ) ;\n if ( bit0 ) {\n const int bit1 = mbmi -> ref_frame [ 0 ] != GOLDEN_FRAME ;\n vp9_write ( w , bit1 , vp9_get_pred_prob_single_ref_p2 ( cm , xd ) ) ;\n }\n }\n }\n }"}
{"idx": 11491, "target": 0, "func": "static int dissect_h245_Params ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_Params , Params_sequence ) ;\n return offset ;\n }"}
{"idx": 11492, "target": 0, "func": "void purple_chat_kick ( struct groupchat * gc , char * who , const char * message ) {\n PurpleConversation * pc = gc -> data ;\n char * str = g_strdup_printf ( \"kick %s %s\" , who , message ) ;\n purple_conversation_do_command ( pc , str , NULL , NULL ) ;\n g_free ( str ) ;\n }"}
{"idx": 11493, "target": 0, "func": "static void show_warnings_before_error ( MYSQL * mysql ) {\n MYSQL_RES * res ;\n const char * query = \"SHOW WARNINGS\" ;\n DBUG_ENTER ( \"show_warnings_before_error\" ) ;\n if ( ! mysql ) DBUG_VOID_RETURN ;\n if ( mysql_query ( mysql , query ) ) {\n log_msg ( \"Error running query '%s': %d %s\" , query , mysql_errno ( mysql ) , mysql_error ( mysql ) ) ;\n DBUG_VOID_RETURN ;\n }\n if ( ( res = mysql_store_result ( mysql ) ) == NULL ) {\n DBUG_VOID_RETURN ;\n }\n if ( mysql_num_rows ( res ) <= 1 ) {\n }\n else {\n MYSQL_ROW row ;\n unsigned int row_num = 0 ;\n unsigned int num_fields = mysql_num_fields ( res ) ;\n fprintf ( stderr , \"\\nWarnings from just before the error:\\n\" ) ;\n while ( ( row = mysql_fetch_row ( res ) ) ) {\n unsigned int i ;\n unsigned long * lengths = mysql_fetch_lengths ( res ) ;\n if ( ++ row_num >= mysql_num_rows ( res ) ) {\n break ;\n }\n for ( i = 0 ;\n i < num_fields ;\n i ++ ) {\n fprintf ( stderr , \"%.*s \" , ( int ) lengths [ i ] , row [ i ] ? row [ i ] : \"NULL\" ) ;\n }\n fprintf ( stderr , \"\\n\" ) ;\n }\n }\n mysql_free_result ( res ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 11494, "target": 0, "func": "static int opt_sections ( void * optctx , const char * opt , const char * arg ) {\n printf ( \"Sections:\\n\" \"W.. = Section is a wrapper (contains other sections, no local entries)\\n\" \".A. = Section contains an array of elements of the same type\\n\" \"..V = Section may contain a variable number of fields with variable keys\\n\" \"FLAGS NAME/UNIQUE_NAME\\n\" \"---\\n\" ) ;\n print_section ( SECTION_ID_ROOT , 0 ) ;\n return 0 ;\n }"}
{"idx": 11495, "target": 1, "func": "static int txd_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n TXDContext * const s = avctx -> priv_data ;\n GetByteContext gb ;\n AVFrame * picture = data ;\n AVFrame * const p = & s -> picture ;\n unsigned int version , w , h , d3d_format , depth , stride , flags ;\n unsigned int y , v ;\n uint8_t * ptr ;\n uint32_t * pal ;\n int ret ;\n bytestream2_init ( & gb , avpkt -> data , avpkt -> size ) ;\n version = bytestream2_get_le32 ( & gb ) ;\n bytestream2_skip ( & gb , 72 ) ;\n d3d_format = bytestream2_get_le32 ( & gb ) ;\n w = bytestream2_get_le16 ( & gb ) ;\n h = bytestream2_get_le16 ( & gb ) ;\n depth = bytestream2_get_byte ( & gb ) ;\n bytestream2_skip ( & gb , 2 ) ;\n flags = bytestream2_get_byte ( & gb ) ;\n if ( version < 8 || version > 9 ) {\n av_log ( avctx , AV_LOG_ERROR , \"texture data version %i is unsupported\\n\" , version ) ;\n return AVERROR_PATCHWELCOME ;\n }\n if ( depth == 8 ) {\n avctx -> pix_fmt = AV_PIX_FMT_PAL8 ;\n }\n else if ( depth == 16 || depth == 32 ) {\n avctx -> pix_fmt = AV_PIX_FMT_RGB32 ;\n }\n else {\n av_log ( avctx , AV_LOG_ERROR , \"depth of %i is unsupported\\n\" , depth ) ;\n return AVERROR_PATCHWELCOME ;\n }\n if ( p -> data [ 0 ] ) avctx -> release_buffer ( avctx , p ) ;\n if ( ( ret = av_image_check_size ( w , h , 0 , avctx ) ) < 0 ) return ret ;\n if ( w != avctx -> width || h != avctx -> height ) avcodec_set_dimensions ( avctx , w , h ) ;\n if ( ( ret = ff_get_buffer ( avctx , p ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n p -> pict_type = AV_PICTURE_TYPE_I ;\n ptr = p -> data [ 0 ] ;\n stride = p -> linesize [ 0 ] ;\n if ( depth == 8 ) {\n pal = ( uint32_t * ) p -> data [ 1 ] ;\n for ( y = 0 ;\n y < 256 ;\n y ++ ) {\n v = bytestream2_get_be32 ( & gb ) ;\n pal [ y ] = ( v >> 8 ) + ( v << 24 ) ;\n }\n bytestream2_skip ( & gb , 4 ) ;\n for ( y = 0 ;\n y < h ;\n y ++ ) {\n bytestream2_get_buffer ( & gb , ptr , w ) ;\n ptr += stride ;\n }\n }\n else if ( depth == 16 ) {\n bytestream2_skip ( & gb , 4 ) ;\n switch ( d3d_format ) {\n case 0 : if ( ! ( flags & 1 ) ) goto unsupported ;\n case FF_S3TC_DXT1 : ff_decode_dxt1 ( & gb , ptr , w , h , stride ) ;\n break ;\n case FF_S3TC_DXT3 : ff_decode_dxt3 ( & gb , ptr , w , h , stride ) ;\n break ;\n default : goto unsupported ;\n }\n }\n else if ( depth == 32 ) {\n switch ( d3d_format ) {\n case 0x15 : case 0x16 : for ( y = 0 ;\n y < h ;\n y ++ ) {\n bytestream2_get_buffer ( & gb , ptr , w * 4 ) ;\n ptr += stride ;\n }\n break ;\n default : goto unsupported ;\n }\n }\n * picture = s -> picture ;\n * got_frame = 1 ;\n return avpkt -> size ;\n unsupported : av_log ( avctx , AV_LOG_ERROR , \"unsupported d3d format (%08x)\\n\" , d3d_format ) ;\n return AVERROR_PATCHWELCOME ;\n }"}
{"idx": 11496, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FastUnloadTest , MAYBE_UnloadHidden ) {\n NavigateToPage ( \"no_listeners\" ) ;\n NavigateToPageInNewTab ( \"unload_sets_cookie\" ) ;\n EXPECT_EQ ( \"\" , GetCookies ( \"no_listeners\" ) ) ;\n content : : WebContentsDestroyedWatcher destroyed_watcher ( browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) ) ;\n {\n base : : RunLoop run_loop ;\n FastTabCloseTabStripModelObserver observer ( browser ( ) -> tab_strip_model ( ) , & run_loop ) ;\n chrome : : CloseTab ( browser ( ) ) ;\n run_loop . Run ( ) ;\n }\n CheckTitle ( \"no_listeners\" ) ;\n EXPECT_EQ ( 1 , browser ( ) -> tab_strip_model ( ) -> count ( ) ) ;\n destroyed_watcher . Wait ( ) ;\n EXPECT_EQ ( \"unloaded=ohyeah\" , GetCookies ( \"no_listeners\" ) ) ;\n }"}
{"idx": 11497, "target": 0, "func": "void bitmap_writer_reuse_bitmaps ( struct packing_data * to_pack ) {\n if ( prepare_bitmap_git ( ) < 0 ) return ;\n writer . reused = kh_init_sha1 ( ) ;\n rebuild_existing_bitmaps ( to_pack , writer . reused , writer . show_progress ) ;\n }"}
{"idx": 11498, "target": 0, "func": "static int set_bps_params ( AVCodecContext * avctx ) {\n switch ( avctx -> bits_per_coded_sample ) {\n case 8 : avctx -> sample_fmt = AV_SAMPLE_FMT_U8P ;\n break ;\n case 16 : avctx -> sample_fmt = AV_SAMPLE_FMT_S16P ;\n break ;\n case 24 : avctx -> sample_fmt = AV_SAMPLE_FMT_S32P ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"unsupported bits per sample: %d\\n\" , avctx -> bits_per_coded_sample ) ;\n return AVERROR_INVALIDDATA ;\n }\n avctx -> bits_per_raw_sample = avctx -> bits_per_coded_sample ;\n return 0 ;\n }"}
{"idx": 11499, "target": 0, "func": "static int vaapi_h264_decode_slice ( AVCodecContext * avctx , const uint8_t * buffer , uint32_t size ) {\n H264Context * const h = avctx -> priv_data ;\n VASliceParameterBufferH264 * slice_param ;\n av_dlog ( avctx , \"vaapi_h264_decode_slice(): buffer %p, size %d\\n\" , buffer , size ) ;\n slice_param = ( VASliceParameterBufferH264 * ) ff_vaapi_alloc_slice ( avctx -> hwaccel_context , buffer , size ) ;\n if ( ! slice_param ) return - 1 ;\n slice_param -> slice_data_bit_offset = get_bits_count ( & h -> gb ) + 8 ;\n slice_param -> first_mb_in_slice = ( h -> mb_y >> FIELD_OR_MBAFF_PICTURE ) * h -> mb_width + h -> mb_x ;\n slice_param -> slice_type = ff_h264_get_slice_type ( h ) ;\n slice_param -> direct_spatial_mv_pred_flag = h -> slice_type == AV_PICTURE_TYPE_B ? h -> direct_spatial_mv_pred : 0 ;\n slice_param -> num_ref_idx_l0_active_minus1 = h -> list_count > 0 ? h -> ref_count [ 0 ] - 1 : 0 ;\n slice_param -> num_ref_idx_l1_active_minus1 = h -> list_count > 1 ? h -> ref_count [ 1 ] - 1 : 0 ;\n slice_param -> cabac_init_idc = h -> cabac_init_idc ;\n slice_param -> slice_qp_delta = h -> qscale - h -> pps . init_qp ;\n slice_param -> disable_deblocking_filter_idc = h -> deblocking_filter < 2 ? ! h -> deblocking_filter : h -> deblocking_filter ;\n slice_param -> slice_alpha_c0_offset_div2 = h -> slice_alpha_c0_offset / 2 - 26 ;\n slice_param -> slice_beta_offset_div2 = h -> slice_beta_offset / 2 - 26 ;\n slice_param -> luma_log2_weight_denom = h -> luma_log2_weight_denom ;\n slice_param -> chroma_log2_weight_denom = h -> chroma_log2_weight_denom ;\n fill_vaapi_RefPicList ( slice_param -> RefPicList0 , h -> ref_list [ 0 ] , h -> list_count > 0 ? h -> ref_count [ 0 ] : 0 ) ;\n fill_vaapi_RefPicList ( slice_param -> RefPicList1 , h -> ref_list [ 1 ] , h -> list_count > 1 ? h -> ref_count [ 1 ] : 0 ) ;\n fill_vaapi_plain_pred_weight_table ( h , 0 , & slice_param -> luma_weight_l0_flag , slice_param -> luma_weight_l0 , slice_param -> luma_offset_l0 , & slice_param -> chroma_weight_l0_flag , slice_param -> chroma_weight_l0 , slice_param -> chroma_offset_l0 ) ;\n fill_vaapi_plain_pred_weight_table ( h , 1 , & slice_param -> luma_weight_l1_flag , slice_param -> luma_weight_l1 , slice_param -> luma_offset_l1 , & slice_param -> chroma_weight_l1_flag , slice_param -> chroma_weight_l1 , slice_param -> chroma_offset_l1 ) ;\n return 0 ;\n }"}
{"idx": 11500, "target": 0, "func": "static void file_free_security ( struct file * file ) {\n struct file_security_struct * fsec = file -> f_security ;\n file -> f_security = NULL ;\n kmem_cache_free ( file_security_cache , fsec ) ;\n }"}
{"idx": 11501, "target": 0, "func": "static void dtap_gcc_setup ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_GCC_CALL_REF , NULL ) ;\n ELEM_OPT_TLV ( 0x7e , GSM_A_PDU_TYPE_DTAP , DE_USER_USER , NULL ) ;\n }"}
{"idx": 11502, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( HttpsEngagementPageLoadMetricsBrowserTest , SameOrigin_Http ) {\n StartHttpServer ( ) ;\n NavigateTwiceInTabAndClose ( http_test_server_ -> GetURL ( \"/simple.html\" ) , http_test_server_ -> GetURL ( \"/empty.html\" ) ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpEngagementHistogram , 2 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementHistogram , 0 ) ;\n }"}
{"idx": 11503, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , DocumentWriteBlock ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : FIRST_CONTENTFUL_PAINT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/page_load_metrics/document_write_script_block.html\" ) ) ;\n waiter -> Wait ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramDocWriteBlockParseStartToFirstContentfulPaint , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramDocWriteBlockCount , 1 ) ;\n }"}
{"idx": 11504, "target": 0, "func": "static void fast_rgb_to_gray ( fz_context * ctx , fz_pixmap * dst , fz_pixmap * src , fz_colorspace * prf , const fz_default_colorspaces * default_cs , const fz_color_params * color_params , int copy_spots ) {\n unsigned char * s = src -> samples ;\n unsigned char * d = dst -> samples ;\n size_t w = src -> w ;\n int h = src -> h ;\n int sn = src -> n ;\n int ss = src -> s ;\n int sa = src -> alpha ;\n int dn = dst -> n ;\n int ds = dst -> s ;\n int da = dst -> alpha ;\n ptrdiff_t d_line_inc = dst -> stride - w * dn ;\n ptrdiff_t s_line_inc = src -> stride - w * sn ;\n if ( ( copy_spots && ss != ds ) || ( ! da && sa ) ) {\n assert ( \"This should never happen\" == NULL ) ;\n fz_throw ( ctx , FZ_ERROR_GENERIC , \"Cannot convert between incompatible pixmaps\" ) ;\n }\n if ( ( int ) w < 0 || h < 0 ) return ;\n if ( d_line_inc == 0 && s_line_inc == 0 ) {\n w *= h ;\n h = 1 ;\n }\n if ( ss == 0 && ds == 0 ) {\n if ( da ) {\n if ( sa ) {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n d [ 0 ] = ( ( s [ 0 ] + 1 ) * 77 + ( s [ 1 ] + 1 ) * 150 + ( s [ 2 ] + 1 ) * 28 ) >> 8 ;\n d [ 1 ] = s [ 3 ] ;\n s += 4 ;\n d += 2 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n else {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n d [ 0 ] = ( ( s [ 0 ] + 1 ) * 77 + ( s [ 1 ] + 1 ) * 150 + ( s [ 2 ] + 1 ) * 28 ) >> 8 ;\n d [ 1 ] = 255 ;\n s += 3 ;\n d += 2 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n }\n else {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n d [ 0 ] = ( ( s [ 0 ] + 1 ) * 77 + ( s [ 1 ] + 1 ) * 150 + ( s [ 2 ] + 1 ) * 28 ) >> 8 ;\n s += 3 ;\n d ++ ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n }\n else if ( copy_spots ) {\n int i ;\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n d [ 0 ] = ( ( s [ 0 ] + 1 ) * 77 + ( s [ 1 ] + 1 ) * 150 + ( s [ 2 ] + 1 ) * 28 ) >> 8 ;\n s += 3 ;\n d ++ ;\n for ( i = ss ;\n i > 0 ;\n i -- ) * d ++ = * s ++ ;\n if ( da ) * d ++ = sa ? * s ++ : 255 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n else {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n d [ 0 ] = ( ( s [ 0 ] + 1 ) * 77 + ( s [ 1 ] + 1 ) * 150 + ( s [ 2 ] + 1 ) * 28 ) >> 8 ;\n s += sn ;\n d += dn ;\n if ( da ) d [ - 1 ] = sa ? s [ - 1 ] : 255 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n }"}
{"idx": 11505, "target": 0, "func": "proto_item * proto_tree_add_guid_format_value ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , const e_guid_t * value_ptr , const char * format , ... ) {\n proto_item * pi ;\n va_list ap ;\n pi = proto_tree_add_guid ( tree , hfindex , tvb , start , length , value_ptr ) ;\n if ( pi != tree ) {\n va_start ( ap , format ) ;\n proto_tree_set_representation_value ( pi , format , ap ) ;\n va_end ( ap ) ;\n }\n return pi ;\n }"}
{"idx": 11506, "target": 0, "func": "void set_current_connection ( struct st_connection * con ) {\n cur_con = con ;\n var_set_int ( \"$mysql_get_server_version\" , mysql_get_server_version ( con -> mysql ) ) ;\n var_set_string ( \"$CURRENT_CONNECTION\" , con -> name ) ;\n }"}
{"idx": 11507, "target": 0, "func": "static int dissect_nlm_shareres ( tvbuff_t * tvb , int offset , packet_info * pinfo _U_ , proto_tree * tree , int version _U_ ) {\n guint32 nlm_stat ;\n offset = dissect_rpc_data ( tvb , tree , hf_nlm_cookie , offset ) ;\n nlm_stat = tvb_get_ntohl ( tvb , offset ) ;\n if ( nlm_stat ) {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" %s\" , val_to_str ( nlm_stat , names_nlm_stats , \"Unknown Status (%u)\" ) ) ;\n }\n offset = dissect_rpc_uint32 ( tvb , tree , hf_nlm_stat , offset ) ;\n offset = dissect_rpc_uint32 ( tvb , tree , hf_nlm_sequence , offset ) ;\n return offset ;\n }"}
{"idx": 11508, "target": 0, "func": "guint32 getExtensionObjectType ( tvbuff_t * tvb , gint * pOffset ) {\n gint iOffset = * pOffset ;\n guint8 EncodingMask ;\n guint32 Numeric = 0 ;\n EncodingMask = tvb_get_guint8 ( tvb , iOffset ) ;\n iOffset ++ ;\n switch ( EncodingMask ) {\n case 0x00 : Numeric = tvb_get_guint8 ( tvb , iOffset ) ;\n break ;\n case 0x01 : iOffset += 1 ;\n Numeric = tvb_get_letohs ( tvb , iOffset ) ;\n break ;\n case 0x02 : iOffset += 2 ;\n Numeric = tvb_get_letohl ( tvb , iOffset ) ;\n break ;\n case 0x03 : case 0x04 : case 0x05 : case 0x06 : break ;\n }\n ;\n return Numeric ;\n }"}
{"idx": 11509, "target": 1, "func": "void vp9_quantize_fp_32x32_c ( const int16_t * coeff_ptr , intptr_t n_coeffs , int skip_block , const int16_t * zbin_ptr , const int16_t * round_ptr , const int16_t * quant_ptr , const int16_t * quant_shift_ptr , int16_t * qcoeff_ptr , int16_t * dqcoeff_ptr , const int16_t * dequant_ptr , int zbin_oq_value , uint16_t * eob_ptr , const int16_t * scan , const int16_t * iscan ) {\n int i , eob = - 1 ;\n ( void ) zbin_ptr ;\n ( void ) quant_shift_ptr ;\n ( void ) zbin_oq_value ;\n ( void ) iscan ;\n vpx_memset ( qcoeff_ptr , 0 , n_coeffs * sizeof ( int16_t ) ) ;\n vpx_memset ( dqcoeff_ptr , 0 , n_coeffs * sizeof ( int16_t ) ) ;\n if ( ! skip_block ) {\n for ( i = 0 ;\n i < n_coeffs ;\n i ++ ) {\n const int rc = scan [ i ] ;\n const int coeff = coeff_ptr [ rc ] ;\n const int coeff_sign = ( coeff >> 31 ) ;\n int tmp = 0 ;\n int abs_coeff = ( coeff ^ coeff_sign ) - coeff_sign ;\n if ( abs_coeff >= ( dequant_ptr [ rc != 0 ] >> 2 ) ) {\n abs_coeff += ROUND_POWER_OF_TWO ( round_ptr [ rc != 0 ] , 1 ) ;\n abs_coeff = clamp ( abs_coeff , INT16_MIN , INT16_MAX ) ;\n tmp = ( abs_coeff * quant_ptr [ rc != 0 ] ) >> 15 ;\n qcoeff_ptr [ rc ] = ( tmp ^ coeff_sign ) - coeff_sign ;\n dqcoeff_ptr [ rc ] = qcoeff_ptr [ rc ] * dequant_ptr [ rc != 0 ] / 2 ;\n }\n if ( tmp ) eob = i ;\n }\n }\n * eob_ptr = eob + 1 ;\n }"}
{"idx": 11510, "target": 0, "func": "static int vc1_decode_intra_block ( VC1Context * v , int16_t block [ 64 ] , int n , int coded , int mquant , int codingset ) {\n GetBitContext * gb = & v -> s . gb ;\n MpegEncContext * s = & v -> s ;\n int dc_pred_dir = 0 ;\n int i ;\n int16_t * dc_val ;\n int16_t * ac_val , * ac_val2 ;\n int dcdiff ;\n int mb_pos = s -> mb_x + s -> mb_y * s -> mb_stride ;\n int a_avail = v -> a_avail , c_avail = v -> c_avail ;\n int use_pred = s -> ac_pred ;\n int scale ;\n int q1 , q2 = 0 ;\n s -> dsp . clear_block ( block ) ;\n mquant = ( mquant < 1 ) ? 0 : ( ( mquant > 31 ) ? 31 : mquant ) ;\n s -> y_dc_scale = s -> y_dc_scale_table [ mquant ] ;\n s -> c_dc_scale = s -> c_dc_scale_table [ mquant ] ;\n if ( n < 4 ) {\n dcdiff = get_vlc2 ( & s -> gb , ff_msmp4_dc_luma_vlc [ s -> dc_table_index ] . table , DC_VLC_BITS , 3 ) ;\n }\n else {\n dcdiff = get_vlc2 ( & s -> gb , ff_msmp4_dc_chroma_vlc [ s -> dc_table_index ] . table , DC_VLC_BITS , 3 ) ;\n }\n if ( dcdiff < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Illegal DC VLC\\n\" ) ;\n return - 1 ;\n }\n if ( dcdiff ) {\n if ( dcdiff == 119 ) {\n if ( mquant == 1 ) dcdiff = get_bits ( gb , 10 ) ;\n else if ( mquant == 2 ) dcdiff = get_bits ( gb , 9 ) ;\n else dcdiff = get_bits ( gb , 8 ) ;\n }\n else {\n if ( mquant == 1 ) dcdiff = ( dcdiff << 2 ) + get_bits ( gb , 2 ) - 3 ;\n else if ( mquant == 2 ) dcdiff = ( dcdiff << 1 ) + get_bits1 ( gb ) - 1 ;\n }\n if ( get_bits1 ( gb ) ) dcdiff = - dcdiff ;\n }\n dcdiff += vc1_pred_dc ( & v -> s , v -> overlap , mquant , n , a_avail , c_avail , & dc_val , & dc_pred_dir ) ;\n * dc_val = dcdiff ;\n if ( n < 4 ) {\n block [ 0 ] = dcdiff * s -> y_dc_scale ;\n }\n else {\n block [ 0 ] = dcdiff * s -> c_dc_scale ;\n }\n i = 1 ;\n if ( ! a_avail ) dc_pred_dir = 1 ;\n if ( ! c_avail ) dc_pred_dir = 0 ;\n if ( ! a_avail && ! c_avail ) use_pred = 0 ;\n ac_val = s -> ac_val [ 0 ] [ 0 ] + s -> block_index [ n ] * 16 ;\n ac_val2 = ac_val ;\n scale = mquant * 2 + v -> halfpq ;\n if ( dc_pred_dir ) ac_val -= 16 ;\n else ac_val -= 16 * s -> block_wrap [ n ] ;\n q1 = s -> current_picture . qscale_table [ mb_pos ] ;\n if ( dc_pred_dir && c_avail && mb_pos ) q2 = s -> current_picture . qscale_table [ mb_pos - 1 ] ;\n if ( ! dc_pred_dir && a_avail && mb_pos >= s -> mb_stride ) q2 = s -> current_picture . qscale_table [ mb_pos - s -> mb_stride ] ;\n if ( dc_pred_dir && n == 1 ) q2 = q1 ;\n if ( ! dc_pred_dir && n == 2 ) q2 = q1 ;\n if ( n == 3 ) q2 = q1 ;\n if ( coded ) {\n int last = 0 , skip , value ;\n int k ;\n while ( ! last ) {\n vc1_decode_ac_coeff ( v , & last , & skip , & value , codingset ) ;\n i += skip ;\n if ( i > 63 ) break ;\n if ( v -> fcm == PROGRESSIVE ) block [ v -> zz_8x8 [ 0 ] [ i ++ ] ] = value ;\n else {\n if ( use_pred && ( v -> fcm == ILACE_FRAME ) ) {\n if ( ! dc_pred_dir ) block [ v -> zz_8x8 [ 2 ] [ i ++ ] ] = value ;\n else block [ v -> zz_8x8 [ 3 ] [ i ++ ] ] = value ;\n }\n else {\n block [ v -> zzi_8x8 [ i ++ ] ] = value ;\n }\n }\n }\n if ( use_pred ) {\n if ( q2 && q1 != q2 ) {\n q1 = q1 * 2 + ( ( q1 == v -> pq ) ? v -> halfpq : 0 ) - 1 ;\n q2 = q2 * 2 + ( ( q2 == v -> pq ) ? v -> halfpq : 0 ) - 1 ;\n if ( q1 < 1 ) return AVERROR_INVALIDDATA ;\n if ( dc_pred_dir ) {\n for ( k = 1 ;\n k < 8 ;\n k ++ ) block [ k << v -> left_blk_sh ] += ( ac_val [ k ] * q2 * ff_vc1_dqscale [ q1 - 1 ] + 0x20000 ) >> 18 ;\n }\n else {\n for ( k = 1 ;\n k < 8 ;\n k ++ ) block [ k << v -> top_blk_sh ] += ( ac_val [ k + 8 ] * q2 * ff_vc1_dqscale [ q1 - 1 ] + 0x20000 ) >> 18 ;\n }\n }\n else {\n if ( dc_pred_dir ) {\n for ( k = 1 ;\n k < 8 ;\n k ++ ) block [ k << v -> left_blk_sh ] += ac_val [ k ] ;\n }\n else {\n for ( k = 1 ;\n k < 8 ;\n k ++ ) block [ k << v -> top_blk_sh ] += ac_val [ k + 8 ] ;\n }\n }\n }\n for ( k = 1 ;\n k < 8 ;\n k ++ ) {\n ac_val2 [ k ] = block [ k << v -> left_blk_sh ] ;\n ac_val2 [ k + 8 ] = block [ k << v -> top_blk_sh ] ;\n }\n for ( k = 1 ;\n k < 64 ;\n k ++ ) if ( block [ k ] ) {\n block [ k ] *= scale ;\n if ( ! v -> pquantizer ) block [ k ] += ( block [ k ] < 0 ) ? - mquant : mquant ;\n }\n if ( use_pred ) i = 63 ;\n }\n else {\n int k ;\n memset ( ac_val2 , 0 , 16 * 2 ) ;\n if ( dc_pred_dir ) {\n if ( use_pred ) {\n memcpy ( ac_val2 , ac_val , 8 * 2 ) ;\n if ( q2 && q1 != q2 ) {\n q1 = q1 * 2 + ( ( q1 == v -> pq ) ? v -> halfpq : 0 ) - 1 ;\n q2 = q2 * 2 + ( ( q2 == v -> pq ) ? v -> halfpq : 0 ) - 1 ;\n if ( q1 < 1 ) return AVERROR_INVALIDDATA ;\n for ( k = 1 ;\n k < 8 ;\n k ++ ) ac_val2 [ k ] = ( ac_val2 [ k ] * q2 * ff_vc1_dqscale [ q1 - 1 ] + 0x20000 ) >> 18 ;\n }\n }\n }\n else {\n if ( use_pred ) {\n memcpy ( ac_val2 + 8 , ac_val + 8 , 8 * 2 ) ;\n if ( q2 && q1 != q2 ) {\n q1 = q1 * 2 + ( ( q1 == v -> pq ) ? v -> halfpq : 0 ) - 1 ;\n q2 = q2 * 2 + ( ( q2 == v -> pq ) ? v -> halfpq : 0 ) - 1 ;\n if ( q1 < 1 ) return AVERROR_INVALIDDATA ;\n for ( k = 1 ;\n k < 8 ;\n k ++ ) ac_val2 [ k + 8 ] = ( ac_val2 [ k + 8 ] * q2 * ff_vc1_dqscale [ q1 - 1 ] + 0x20000 ) >> 18 ;\n }\n }\n }\n if ( use_pred ) {\n if ( dc_pred_dir ) {\n for ( k = 1 ;\n k < 8 ;\n k ++ ) {\n block [ k << v -> left_blk_sh ] = ac_val2 [ k ] * scale ;\n if ( ! v -> pquantizer && block [ k << v -> left_blk_sh ] ) block [ k << v -> left_blk_sh ] += ( block [ k << v -> left_blk_sh ] < 0 ) ? - mquant : mquant ;\n }\n }\n else {\n for ( k = 1 ;\n k < 8 ;\n k ++ ) {\n block [ k << v -> top_blk_sh ] = ac_val2 [ k + 8 ] * scale ;\n if ( ! v -> pquantizer && block [ k << v -> top_blk_sh ] ) block [ k << v -> top_blk_sh ] += ( block [ k << v -> top_blk_sh ] < 0 ) ? - mquant : mquant ;\n }\n }\n i = 63 ;\n }\n }\n s -> block_last_index [ n ] = i ;\n return 0 ;\n }"}
{"idx": 11511, "target": 0, "func": "static bool decompose_indic ( const hb_ot_shape_normalize_context_t * c , hb_codepoint_t ab , hb_codepoint_t * a , hb_codepoint_t * b ) {\n switch ( ab ) {\n case 0x0931u : return false ;\n case 0x0B94u : return false ;\n case 0x0F77u : * a = 0x0FB2u ;\n * b = 0x0F81u ;\n return true ;\n case 0x0F79u : * a = 0x0FB3u ;\n * b = 0x0F81u ;\n return true ;\n case 0x17BEu : * a = 0x17C1u ;\n * b = 0x17BEu ;\n return true ;\n case 0x17BFu : * a = 0x17C1u ;\n * b = 0x17BFu ;\n return true ;\n case 0x17C0u : * a = 0x17C1u ;\n * b = 0x17C0u ;\n return true ;\n case 0x17C4u : * a = 0x17C1u ;\n * b = 0x17C4u ;\n return true ;\n case 0x17C5u : * a = 0x17C1u ;\n * b = 0x17C5u ;\n return true ;\n case 0x1925u : * a = 0x1920u ;\n * b = 0x1923u ;\n return true ;\n case 0x1926u : * a = 0x1920u ;\n * b = 0x1924u ;\n return true ;\n case 0x1B3Cu : * a = 0x1B42u ;\n * b = 0x1B3Cu ;\n return true ;\n case 0x1112Eu : * a = 0x11127u ;\n * b = 0x11131u ;\n return true ;\n case 0x1112Fu : * a = 0x11127u ;\n * b = 0x11132u ;\n return true ;\n # if 0 case 0x0B57u : * a = no decomp , -> RIGHT ;\n return true ;\n case 0x1C29u : * a = no decomp , -> LEFT ;\n return true ;\n case 0xA9C0u : * a = no decomp , -> RIGHT ;\n return true ;\n case 0x111BuF : * a = no decomp , -> ABOVE ;\n return true ;\n # endif }\n if ( ( ab == 0x0DDAu || hb_in_range ( ab , 0x0DDCu , 0x0DDEu ) ) ) {\n const indic_shape_plan_t * indic_plan = ( const indic_shape_plan_t * ) c -> plan -> data ;\n hb_codepoint_t glyph ;\n if ( hb_options ( ) . uniscribe_bug_compatible || ( c -> font -> get_glyph ( ab , 0 , & glyph ) && indic_plan -> pstf . would_substitute ( & glyph , 1 , c -> font -> face ) ) ) {\n * a = 0x0DD9u ;\n * b = ab ;\n return true ;\n }\n }\n return c -> unicode -> decompose ( ab , a , b ) ;\n }"}
{"idx": 11512, "target": 0, "func": "my_bool include_table ( const uchar * hash_key , size_t len ) {\n return ! my_hash_search ( & ignore_table , hash_key , len ) ;\n }"}
{"idx": 11513, "target": 0, "func": "void t38_init_tap ( void ) {\n GString * error_string ;\n if ( have_T38_tap_listener == FALSE ) {\n error_string = register_tap_listener ( \"t38\" , & ( the_tapinfo_struct . t38_dummy ) , NULL , 0 , voip_calls_dlg_reset , T38_packet , voip_calls_dlg_draw ) ;\n if ( error_string != NULL ) {\n simple_dialog ( ESD_TYPE_ERROR , ESD_BTN_OK , \"%s\" , error_string -> str ) ;\n g_string_free ( error_string , TRUE ) ;\n exit ( 1 ) ;\n }\n have_T38_tap_listener = TRUE ;\n }\n }"}
{"idx": 11514, "target": 0, "func": "void dissect_zcl_power_config_attr_data ( proto_tree * tree , tvbuff_t * tvb , guint * offset , guint16 attr_id , guint data_type ) {\n proto_item * it ;\n static const int * mains_alarm_mask [ ] = {\n & hf_zbee_zcl_power_config_mains_alarm_mask_low , & hf_zbee_zcl_power_config_mains_alarm_mask_high , & hf_zbee_zcl_power_config_mains_alarm_mask_reserved , NULL }\n ;\n static const int * batt_alarm_mask [ ] = {\n & hf_zbee_zcl_power_config_batt_alarm_mask_low , & hf_zbee_zcl_power_config_batt_alarm_mask_reserved , NULL }\n ;\n switch ( attr_id ) {\n case ZBEE_ZCL_ATTR_ID_POWER_CONF_MAINS_VOLTAGE : proto_tree_add_item ( tree , hf_zbee_zcl_power_config_mains_voltage , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_POWER_CONF_MAINS_FREQUENCY : proto_tree_add_item ( tree , hf_zbee_zcl_power_config_mains_frequency , tvb , * offset , 1 , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_POWER_CONF_MAINS_ALARM_MASK : proto_tree_add_bitmask ( tree , tvb , * offset , hf_zbee_zcl_power_config_mains_alarm_mask , ett_zbee_zcl_power_config_mains_alarm_mask , mains_alarm_mask , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_POWER_CONF_MAINS_VOLTAGE_MIN_THR : proto_tree_add_item ( tree , hf_zbee_zcl_power_config_mains_voltage_min_thr , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_POWER_CONF_MAINS_VOLTAGE_MAX_THR : proto_tree_add_item ( tree , hf_zbee_zcl_power_config_mains_voltage_max_thr , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_POWER_CONF_MAINS_VOLTAGE_DWELL_TP : it = proto_tree_add_item ( tree , hf_zbee_zcl_power_config_mains_voltage_dwell_tp , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_item_append_text ( it , \" [s]\" ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_POWER_CONF_BATTERY_SIZE : proto_tree_add_item ( tree , hf_zbee_zcl_power_config_batt_type , tvb , * offset , 1 , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_POWER_CONF_BATTERY_VOLTAGE : proto_tree_add_item ( tree , hf_zbee_zcl_power_config_batt_voltage , tvb , * offset , 1 , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_POWER_CONF_BATTERY_AH_RATING : proto_tree_add_item ( tree , hf_zbee_zcl_power_config_batt_ah_rating , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_POWER_CONF_BATTERY_RATED_VOLTAGE : proto_tree_add_item ( tree , hf_zbee_zcl_power_config_batt_rated_voltage , tvb , * offset , 1 , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_POWER_CONF_BATTERY_ALARM_MASK : proto_tree_add_bitmask ( tree , tvb , * offset , hf_zbee_zcl_power_config_batt_alarm_mask , ett_zbee_zcl_power_config_batt_alarm_mask , batt_alarm_mask , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_POWER_CONF_BATTERY_VOLTAGE_MIN_THR : proto_tree_add_item ( tree , hf_zbee_zcl_power_config_batt_voltage_min_thr , tvb , * offset , 1 , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_POWER_CONF_BATTERY_MANUFACTURER : case ZBEE_ZCL_ATTR_ID_POWER_CONF_BATTERY_QUANTITY : default : dissect_zcl_attr_data ( tvb , tree , offset , data_type ) ;\n break ;\n }\n }"}
{"idx": 11515, "target": 0, "func": "static void output ( code_int code , GifCtx * ctx ) {\n if ( ctx -> cur_bits == CUR_BITS_FINISHED ) return ;\n ctx -> cur_accum &= masks [ ctx -> cur_bits ] ;\n if ( ctx -> cur_bits > 0 ) {\n ctx -> cur_accum |= ( ( long ) code << ctx -> cur_bits ) ;\n }\n else {\n ctx -> cur_accum = code ;\n }\n ctx -> cur_bits += ctx -> n_bits ;\n while ( ctx -> cur_bits >= 8 ) {\n char_out ( ( unsigned int ) ( ctx -> cur_accum & 0xff ) , ctx ) ;\n ctx -> cur_accum >>= 8 ;\n ctx -> cur_bits -= 8 ;\n }\n if ( ctx -> free_ent > ctx -> maxcode || ctx -> clear_flg ) {\n if ( ctx -> clear_flg ) {\n ctx -> maxcode = MAXCODE ( ctx -> n_bits = ctx -> g_init_bits ) ;\n ctx -> clear_flg = 0 ;\n }\n else {\n ++ ( ctx -> n_bits ) ;\n if ( ctx -> n_bits == maxbits ) {\n ctx -> maxcode = maxmaxcode ;\n }\n else {\n ctx -> maxcode = MAXCODE ( ctx -> n_bits ) ;\n }\n }\n }\n if ( code == ctx -> EOFCode ) {\n while ( ctx -> cur_bits > 0 ) {\n char_out ( ( unsigned int ) ( ctx -> cur_accum & 0xff ) , ctx ) ;\n ctx -> cur_accum >>= 8 ;\n ctx -> cur_bits -= 8 ;\n }\n ctx -> cur_bits = CUR_BITS_FINISHED ;\n flush_char ( ctx ) ;\n }\n }"}
{"idx": 11516, "target": 1, "func": "static void _slurm_rpc_allocate_resources ( slurm_msg_t * msg ) {\n static int active_rpc_cnt = 0 ;\n int error_code = SLURM_SUCCESS ;\n slurm_msg_t response_msg ;\n DEF_TIMERS ;\n job_desc_msg_t * job_desc_msg = ( job_desc_msg_t * ) msg -> data ;\n resource_allocation_response_msg_t alloc_msg ;\n slurmctld_lock_t job_read_lock = {\n READ_LOCK , READ_LOCK , READ_LOCK , READ_LOCK , READ_LOCK }\n ;\n slurmctld_lock_t job_write_lock = {\n READ_LOCK , WRITE_LOCK , WRITE_LOCK , READ_LOCK , READ_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n int immediate = job_desc_msg -> immediate ;\n bool do_unlock = false ;\n bool reject_job = false ;\n struct job_record * job_ptr = NULL ;\n uint16_t port ;\n slurm_addr_t resp_addr ;\n char * err_msg = NULL , * job_submit_user_msg = NULL ;\n START_TIMER ;\n if ( slurmctld_config . submissions_disabled ) {\n info ( \"Submissions disabled on system\" ) ;\n error_code = ESLURM_SUBMISSIONS_DISABLED ;\n reject_job = true ;\n goto send_msg ;\n }\n if ( ( uid != job_desc_msg -> user_id ) && ( ! validate_slurm_user ( uid ) ) ) {\n error_code = ESLURM_USER_ID_MISSING ;\n error ( \"Security violation, RESOURCE_ALLOCATE from uid=%d\" , uid ) ;\n }\n debug2 ( \"sched: Processing RPC: REQUEST_RESOURCE_ALLOCATION from uid=%d\" , uid ) ;\n if ( ( job_desc_msg -> alloc_node == NULL ) || ( job_desc_msg -> alloc_node [ 0 ] == '\\0' ) ) {\n error_code = ESLURM_INVALID_NODE_NAME ;\n error ( \"REQUEST_RESOURCE_ALLOCATE lacks alloc_node from uid=%d\" , uid ) ;\n }\n if ( error_code == SLURM_SUCCESS ) {\n lock_slurmctld ( job_read_lock ) ;\n job_desc_msg -> pack_job_offset = NO_VAL ;\n error_code = validate_job_create_req ( job_desc_msg , uid , & err_msg ) ;\n unlock_slurmctld ( job_read_lock ) ;\n }\n if ( err_msg ) job_submit_user_msg = xstrdup ( err_msg ) ;\n # if HAVE_ALPS_CRAY if ( allocated_session_in_use ( job_desc_msg ) ) {\n error_code = ESLURM_RESERVATION_BUSY ;\n error ( \"attempt to nest ALPS allocation on %s:%d by uid=%d\" , job_desc_msg -> alloc_node , job_desc_msg -> alloc_sid , uid ) ;\n }\n # endif if ( error_code ) {\n reject_job = true ;\n }\n else if ( ! slurm_get_peer_addr ( msg -> conn_fd , & resp_addr ) ) {\n if ( ! job_desc_msg -> resp_host ) {\n job_desc_msg -> resp_host = xmalloc ( 16 ) ;\n slurm_get_ip_str ( & resp_addr , & port , job_desc_msg -> resp_host , 16 ) ;\n }\n dump_job_desc ( job_desc_msg ) ;\n do_unlock = true ;\n _throttle_start ( & active_rpc_cnt ) ;\n lock_slurmctld ( job_write_lock ) ;\n if ( fed_mgr_fed_rec ) {\n uint32_t job_id ;\n if ( fed_mgr_job_allocate ( msg , job_desc_msg , true , uid , msg -> protocol_version , & job_id , & error_code , & err_msg ) ) {\n reject_job = true ;\n }\n else if ( ! ( job_ptr = find_job_record ( job_id ) ) ) {\n error ( \"%s: can't find fed job that was just created. this should never happen\" , __func__ ) ;\n reject_job = true ;\n error_code = SLURM_ERROR ;\n }\n }\n else {\n job_desc_msg -> pack_job_offset = NO_VAL ;\n error_code = job_allocate ( job_desc_msg , immediate , false , NULL , true , uid , & job_ptr , & err_msg , msg -> protocol_version ) ;\n if ( ! job_ptr || ( error_code && job_ptr -> job_state == JOB_FAILED ) ) reject_job = true ;\n }\n END_TIMER2 ( \"_slurm_rpc_allocate_resources\" ) ;\n }\n else {\n reject_job = true ;\n if ( errno ) error_code = errno ;\n else error_code = SLURM_ERROR ;\n }\n send_msg : if ( ! reject_job ) {\n xassert ( job_ptr ) ;\n info ( \"sched: %s JobId=%u NodeList=%s %s\" , __func__ , job_ptr -> job_id , job_ptr -> nodes , TIME_STR ) ;\n _build_alloc_msg ( job_ptr , & alloc_msg , error_code , job_submit_user_msg ) ;\n if ( do_unlock ) {\n unlock_slurmctld ( job_write_lock ) ;\n _throttle_fini ( & active_rpc_cnt ) ;\n }\n slurm_msg_t_init ( & response_msg ) ;\n response_msg . conn = msg -> conn ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . msg_type = RESPONSE_RESOURCE_ALLOCATION ;\n response_msg . data = & alloc_msg ;\n if ( slurm_send_node_msg ( msg -> conn_fd , & response_msg ) < 0 ) _kill_job_on_msg_fail ( job_ptr -> job_id ) ;\n schedule_job_save ( ) ;\n schedule_node_save ( ) ;\n if ( ! alloc_msg . node_cnt ) queue_job_scheduler ( ) ;\n alloc_msg . working_cluster_rec = NULL ;\n slurm_free_resource_allocation_response_msg_members ( & alloc_msg ) ;\n }\n else {\n if ( do_unlock ) {\n unlock_slurmctld ( job_write_lock ) ;\n _throttle_fini ( & active_rpc_cnt ) ;\n }\n info ( \"%s: %s \" , __func__ , slurm_strerror ( error_code ) ) ;\n if ( err_msg ) slurm_send_rc_err_msg ( msg , error_code , err_msg ) ;\n else slurm_send_rc_msg ( msg , error_code ) ;\n }\n xfree ( err_msg ) ;\n xfree ( job_submit_user_msg ) ;\n }"}
{"idx": 11517, "target": 0, "func": "static void iadst4 ( const tran_low_t * input , tran_low_t * output ) {\n tran_high_t s0 , s1 , s2 , s3 , s4 , s5 , s6 , s7 ;\n tran_high_t x0 = input [ 0 ] ;\n tran_high_t x1 = input [ 1 ] ;\n tran_high_t x2 = input [ 2 ] ;\n tran_high_t x3 = input [ 3 ] ;\n if ( ! ( x0 | x1 | x2 | x3 ) ) {\n output [ 0 ] = output [ 1 ] = output [ 2 ] = output [ 3 ] = 0 ;\n return ;\n }\n s0 = sinpi_1_9 * x0 ;\n s1 = sinpi_2_9 * x0 ;\n s2 = sinpi_3_9 * x1 ;\n s3 = sinpi_4_9 * x2 ;\n s4 = sinpi_1_9 * x2 ;\n s5 = sinpi_2_9 * x3 ;\n s6 = sinpi_4_9 * x3 ;\n s7 = x0 - x2 + x3 ;\n x0 = s0 + s3 + s5 ;\n x1 = s1 - s4 - s6 ;\n x2 = sinpi_3_9 * s7 ;\n x3 = s2 ;\n s0 = x0 + x3 ;\n s1 = x1 + x3 ;\n s2 = x2 ;\n s3 = x0 + x1 - x3 ;\n output [ 0 ] = dct_const_round_shift ( s0 ) ;\n output [ 1 ] = dct_const_round_shift ( s1 ) ;\n output [ 2 ] = dct_const_round_shift ( s2 ) ;\n output [ 3 ] = dct_const_round_shift ( s3 ) ;\n }"}
{"idx": 11518, "target": 0, "func": "static unsigned int hc_entries ( unsigned int cnt ) {\n cnt = cnt & 7 ? ( cnt / 8 ) + 1 : cnt / 8 ;\n return cnt < avail_tree_table_sz ? cnt : avail_tree_table_sz - 1 ;\n }"}
{"idx": 11519, "target": 0, "func": "static int zisofs_finish_entry ( struct archive_write * a ) {\n ( void ) a ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 11520, "target": 0, "func": "static AsfStream * gst_asf_demux_parse_stream_object ( GstASFDemux * demux , guint8 * data , guint64 size ) {\n AsfCorrectionType correction_type ;\n AsfStreamType stream_type ;\n GstClockTime time_offset ;\n gboolean is_encrypted G_GNUC_UNUSED ;\n guint16 stream_id ;\n guint16 flags ;\n ASFGuid guid ;\n guint stream_specific_size ;\n guint type_specific_size G_GNUC_UNUSED ;\n guint unknown G_GNUC_UNUSED ;\n gboolean inspect_payload = FALSE ;\n AsfStream * stream = NULL ;\n if ( size < ( 16 + 16 + 8 + 4 + 4 + 2 + 4 ) ) goto not_enough_data ;\n gst_asf_demux_get_guid ( & guid , & data , & size ) ;\n stream_type = gst_asf_demux_identify_guid ( asf_stream_guids , & guid ) ;\n gst_asf_demux_get_guid ( & guid , & data , & size ) ;\n correction_type = gst_asf_demux_identify_guid ( asf_correction_guids , & guid ) ;\n time_offset = gst_asf_demux_get_uint64 ( & data , & size ) * 100 ;\n type_specific_size = gst_asf_demux_get_uint32 ( & data , & size ) ;\n stream_specific_size = gst_asf_demux_get_uint32 ( & data , & size ) ;\n flags = gst_asf_demux_get_uint16 ( & data , & size ) ;\n stream_id = flags & 0x7f ;\n is_encrypted = ! ! ( ( flags & 0x8000 ) << 15 ) ;\n unknown = gst_asf_demux_get_uint32 ( & data , & size ) ;\n GST_DEBUG_OBJECT ( demux , \"Found stream %u, time_offset=%\" GST_TIME_FORMAT , stream_id , GST_TIME_ARGS ( time_offset ) ) ;\n if ( stream_type == ASF_STREAM_EXT_EMBED_HEADER ) {\n AsfExtStreamType ext_stream_type ;\n gst_asf_demux_get_guid ( & guid , & data , & size ) ;\n ext_stream_type = gst_asf_demux_identify_guid ( asf_ext_stream_guids , & guid ) ;\n if ( ext_stream_type == ASF_EXT_STREAM_AUDIO ) {\n inspect_payload = TRUE ;\n gst_asf_demux_get_guid ( & guid , & data , & size ) ;\n gst_asf_demux_get_uint32 ( & data , & size ) ;\n gst_asf_demux_get_uint32 ( & data , & size ) ;\n gst_asf_demux_get_uint32 ( & data , & size ) ;\n gst_asf_demux_get_guid ( & guid , & data , & size ) ;\n gst_asf_demux_get_uint32 ( & data , & size ) ;\n stream_type = ASF_STREAM_AUDIO ;\n }\n }\n switch ( stream_type ) {\n case ASF_STREAM_AUDIO : {\n asf_stream_audio audio_object ;\n if ( ! gst_asf_demux_get_stream_audio ( & audio_object , & data , & size ) ) goto not_enough_data ;\n GST_INFO ( \"Object is an audio stream with %u bytes of additional data\" , audio_object . size ) ;\n stream = gst_asf_demux_add_audio_stream ( demux , & audio_object , stream_id , & data , & size ) ;\n switch ( correction_type ) {\n case ASF_CORRECTION_ON : {\n guint span , packet_size , chunk_size , data_size , silence_data ;\n GST_INFO ( \"Using error correction\" ) ;\n if ( size < ( 1 + 2 + 2 + 2 + 1 ) ) goto not_enough_data ;\n span = gst_asf_demux_get_uint8 ( & data , & size ) ;\n packet_size = gst_asf_demux_get_uint16 ( & data , & size ) ;\n chunk_size = gst_asf_demux_get_uint16 ( & data , & size ) ;\n data_size = gst_asf_demux_get_uint16 ( & data , & size ) ;\n silence_data = gst_asf_demux_get_uint8 ( & data , & size ) ;\n stream -> span = span ;\n GST_DEBUG_OBJECT ( demux , \"Descrambling ps:%u cs:%u ds:%u s:%u sd:%u\" , packet_size , chunk_size , data_size , span , silence_data ) ;\n if ( stream -> span > 1 ) {\n if ( chunk_size == 0 || ( ( packet_size / chunk_size ) <= 1 ) ) {\n stream -> span = 0 ;\n }\n else {\n stream -> ds_packet_size = packet_size ;\n stream -> ds_chunk_size = chunk_size ;\n }\n }\n else {\n stream -> ds_packet_size = packet_size ;\n stream -> ds_chunk_size = chunk_size ;\n }\n # if 0 if ( data_size > 1 ) gst_bytestream_flush ( demux -> bs , data_size - 1 ) ;\n # else if ( data_size > 1 ) {\n if ( ! gst_asf_demux_skip_bytes ( data_size - 1 , & data , & size ) ) {\n goto not_enough_data ;\n }\n }\n # endif break ;\n }\n case ASF_CORRECTION_OFF : {\n GST_INFO ( \"Error correction off\" ) ;\n if ( ! gst_asf_demux_skip_bytes ( stream_specific_size , & data , & size ) ) goto not_enough_data ;\n break ;\n }\n default : GST_ELEMENT_ERROR ( demux , STREAM , DEMUX , ( NULL ) , ( \"Audio stream using unknown error correction\" ) ) ;\n return NULL ;\n }\n break ;\n }\n case ASF_STREAM_VIDEO : {\n asf_stream_video_format video_format_object ;\n asf_stream_video video_object ;\n guint16 vsize ;\n if ( ! gst_asf_demux_get_stream_video ( & video_object , & data , & size ) ) goto not_enough_data ;\n vsize = video_object . size - 40 ;\n GST_INFO ( \"object is a video stream with %u bytes of \" \"additional data\" , vsize ) ;\n if ( ! gst_asf_demux_get_stream_video_format ( & video_format_object , & data , & size ) ) {\n goto not_enough_data ;\n }\n stream = gst_asf_demux_add_video_stream ( demux , & video_format_object , stream_id , & data , & size ) ;\n break ;\n }\n default : GST_WARNING_OBJECT ( demux , \"Unknown stream type for stream %u\" , stream_id ) ;\n demux -> other_streams = g_slist_append ( demux -> other_streams , GINT_TO_POINTER ( stream_id ) ) ;\n break ;\n }\n if ( stream ) stream -> inspect_payload = inspect_payload ;\n return stream ;\n not_enough_data : {\n GST_WARNING_OBJECT ( demux , \"Unexpected end of data parsing stream object\" ) ;\n return NULL ;\n }\n }"}
{"idx": 11521, "target": 0, "func": "static void apply_enable_disable ( attr_val_fifo * fifo , int enable ) {\n attr_val * curr_flag ;\n int option ;\n # ifdef BC_LIST_FRAMEWORK_NOT_YET_USED bc_entry * pentry ;\n # endif for ( curr_flag = HEAD_PFIFO ( fifo ) ;\n curr_flag != NULL ;\n curr_flag = curr_flag -> link ) {\n option = curr_flag -> value . i ;\n switch ( option ) {\n default : msyslog ( LOG_ERR , \"can not apply enable/disable token %d, unknown\" , option ) ;\n break ;\n case T_Auth : proto_config ( PROTO_AUTHENTICATE , enable , 0. , NULL ) ;\n break ;\n case T_Bclient : proto_config ( PROTO_BROADCLIENT , enable , 0. , NULL ) ;\n break ;\n case T_Calibrate : proto_config ( PROTO_CAL , enable , 0. , NULL ) ;\n break ;\n case T_Kernel : proto_config ( PROTO_KERNEL , enable , 0. , NULL ) ;\n break ;\n case T_Monitor : proto_config ( PROTO_MONITOR , enable , 0. , NULL ) ;\n break ;\n case T_Ntp : proto_config ( PROTO_NTP , enable , 0. , NULL ) ;\n break ;\n case T_Stats : proto_config ( PROTO_FILEGEN , enable , 0. , NULL ) ;\n break ;\n # ifdef BC_LIST_FRAMEWORK_NOT_YET_USED case T_Bc_bugXXXX : pentry = bc_list ;\n while ( pentry -> token ) {\n if ( pentry -> token == option ) break ;\n pentry ++ ;\n }\n if ( ! pentry -> token ) {\n msyslog ( LOG_ERR , \"compat token %d not in bc_list[]\" , option ) ;\n continue ;\n }\n pentry -> enabled = enable ;\n break ;\n # endif }\n }\n }"}
{"idx": 11522, "target": 0, "func": "static int ir2_decode_plane_inter ( Ir2Context * ctx , int width , int height , uint8_t * dst , int stride , const uint8_t * table ) {\n int j ;\n int out = 0 ;\n int c ;\n int t ;\n if ( width & 1 ) return AVERROR_INVALIDDATA ;\n for ( j = 0 ;\n j < height ;\n j ++ ) {\n out = 0 ;\n while ( out < width ) {\n c = ir2_get_code ( & ctx -> gb ) ;\n if ( c >= 0x80 ) {\n c -= 0x7F ;\n out += c * 2 ;\n }\n else {\n t = dst [ out ] + ( ( ( table [ c * 2 ] - 128 ) * 3 ) >> 2 ) ;\n t = av_clip_uint8 ( t ) ;\n dst [ out ] = t ;\n out ++ ;\n t = dst [ out ] + ( ( ( table [ ( c * 2 ) + 1 ] - 128 ) * 3 ) >> 2 ) ;\n t = av_clip_uint8 ( t ) ;\n dst [ out ] = t ;\n out ++ ;\n }\n }\n dst += stride ;\n }\n return 0 ;\n }"}
{"idx": 11523, "target": 1, "func": "static ossl_inline int sk_ ## t1 ## _num ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_num ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _value ( const STACK_OF ( t1 ) * sk , int idx ) {\n return ( t2 * ) OPENSSL_sk_value ( ( const OPENSSL_STACK * ) sk , idx ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new ( sk_ ## t1 ## _compfunc compare ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new ( ( OPENSSL_sk_compfunc ) compare ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_null ( void ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_null ( ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_reserve ( sk_ ## t1 ## _compfunc compare , int n ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_reserve ( ( OPENSSL_sk_compfunc ) compare , n ) ;\n }\n static ossl_inline int sk_ ## t1 ## _reserve ( STACK_OF ( t1 ) * sk , int n ) {\n return OPENSSL_sk_reserve ( ( OPENSSL_STACK * ) sk , n ) ;\n }\n static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 11524, "target": 0, "func": "static void keyid ( struct parse * pcmd , FILE * fp ) {\n if ( pcmd -> nargs == 0 ) {\n if ( info_auth_keyid == 0 ) ( void ) fprintf ( fp , \"no keyid defined\\n\" ) ;\n else ( void ) fprintf ( fp , \"keyid is %lu\\n\" , ( u_long ) info_auth_keyid ) ;\n }\n else {\n if ( pcmd -> argval [ 0 ] . uval > NTP_MAXKEY ) ( void ) fprintf ( fp , \"Invalid key identifier\\n\" ) ;\n info_auth_keyid = pcmd -> argval [ 0 ] . uval ;\n }\n }"}
{"idx": 11525, "target": 0, "func": "static GSList * get_sticky_windows_sorted ( MAIN_WINDOW_REC * mainwin ) {\n GSList * tmp , * list ;\n list = NULL ;\n for ( tmp = windows ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n WINDOW_REC * rec = tmp -> data ;\n if ( WINDOW_GUI ( rec ) -> sticky && WINDOW_MAIN ( rec ) == mainwin ) {\n list = g_slist_insert_sorted ( list , rec , ( GCompareFunc ) window_refnum_cmp ) ;\n }\n }\n return list ;\n }"}
{"idx": 11526, "target": 0, "func": "static void start_put ( struct transfer_request * request ) {\n char * hex = oid_to_hex ( & request -> obj -> oid ) ;\n struct active_request_slot * slot ;\n struct strbuf buf = STRBUF_INIT ;\n enum object_type type ;\n char hdr [ 50 ] ;\n void * unpacked ;\n unsigned long len ;\n int hdrlen ;\n ssize_t size ;\n git_zstream stream ;\n unpacked = read_sha1_file ( request -> obj -> oid . hash , & type , & len ) ;\n hdrlen = xsnprintf ( hdr , sizeof ( hdr ) , \"%s %lu\" , typename ( type ) , len ) + 1 ;\n git_deflate_init ( & stream , zlib_compression_level ) ;\n size = git_deflate_bound ( & stream , len + hdrlen ) ;\n strbuf_init ( & request -> buffer . buf , size ) ;\n request -> buffer . posn = 0 ;\n stream . next_out = ( unsigned char * ) request -> buffer . buf . buf ;\n stream . avail_out = size ;\n stream . next_in = ( void * ) hdr ;\n stream . avail_in = hdrlen ;\n while ( git_deflate ( & stream , 0 ) == Z_OK ) ;\n stream . next_in = unpacked ;\n stream . avail_in = len ;\n while ( git_deflate ( & stream , Z_FINISH ) == Z_OK ) ;\n git_deflate_end ( & stream ) ;\n free ( unpacked ) ;\n request -> buffer . buf . len = stream . total_out ;\n strbuf_addstr ( & buf , \"Destination: \" ) ;\n append_remote_object_url ( & buf , repo -> url , hex , 0 ) ;\n request -> dest = strbuf_detach ( & buf , NULL ) ;\n append_remote_object_url ( & buf , repo -> url , hex , 0 ) ;\n strbuf_add ( & buf , request -> lock -> tmpfile_suffix , 41 ) ;\n request -> url = strbuf_detach ( & buf , NULL ) ;\n slot = get_active_slot ( ) ;\n slot -> callback_func = process_response ;\n slot -> callback_data = request ;\n curl_setup_http ( slot -> curl , request -> url , DAV_PUT , & request -> buffer , fwrite_null ) ;\n if ( start_active_slot ( slot ) ) {\n request -> slot = slot ;\n request -> state = RUN_PUT ;\n }\n else {\n request -> state = ABORTED ;\n free ( request -> url ) ;\n request -> url = NULL ;\n }\n }"}
{"idx": 11527, "target": 0, "func": "int qemuMonitorTextAddPCIDisk ( qemuMonitorPtr mon , const char * path , const char * bus , virDomainDevicePCIAddress * guestAddr ) {\n char * cmd = NULL ;\n char * reply = NULL ;\n char * safe_path = NULL ;\n int tryOldSyntax = 0 ;\n int ret = - 1 ;\n safe_path = qemuMonitorEscapeArg ( path ) ;\n if ( ! safe_path ) {\n virReportOOMError ( ) ;\n return - 1 ;\n }\n try_command : if ( virAsprintf ( & cmd , \"pci_add %s storage file=%s,if=%s\" , ( tryOldSyntax ? \"0\" : \"pci_addr=auto\" ) , safe_path , bus ) < 0 ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"cannot attach %s disk %s\" ) , bus , path ) ;\n goto cleanup ;\n }\n if ( qemuMonitorTextParsePciAddReply ( mon , reply , guestAddr ) < 0 ) {\n if ( ! tryOldSyntax && strstr ( reply , \"invalid char in expression\" ) ) {\n VIR_FREE ( reply ) ;\n VIR_FREE ( cmd ) ;\n tryOldSyntax = 1 ;\n goto try_command ;\n }\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"adding %s disk failed %s: %s\" ) , bus , path , reply ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( safe_path ) ;\n VIR_FREE ( cmd ) ;\n VIR_FREE ( reply ) ;\n return ret ;\n }"}
{"idx": 11528, "target": 0, "func": "static int dissect_h225_UnregRejectReason ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 626 \"./asn1/h225/h225.cnf\" gint32 value ;\n h225_packet_info * h225_pi ;\n h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_UnregRejectReason , UnregRejectReason_choice , & value ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> reason = value ;\n }\n return offset ;\n }"}
{"idx": 11529, "target": 0, "func": "static void imlt_window_float ( COOKContext * q , float * inbuffer , cook_gains * gains_ptr , float * previous_buffer ) {\n const float fc = pow2tab [ gains_ptr -> previous [ 0 ] + 63 ] ;\n int i ;\n for ( i = 0 ;\n i < q -> samples_per_channel ;\n i ++ ) inbuffer [ i ] = inbuffer [ i ] * fc * q -> mlt_window [ i ] - previous_buffer [ i ] * q -> mlt_window [ q -> samples_per_channel - 1 - i ] ;\n }"}
{"idx": 11530, "target": 0, "func": "static guint16 de_ss_ver_ind ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ ) {\n guint8 oct ;\n guint32 curr_offset ;\n curr_offset = offset ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n proto_tree_add_uint_format_value ( tree , hf_gsm_a_dtap_ss_version_indicator , tvb , curr_offset , 1 , oct , \"%s\" , val_to_str_const ( oct , gsm_a_dtap_ss_ver_ind_vals , \"Reserved\" ) ) ;\n curr_offset ++ ;\n EXTRANEOUS_DATA_CHECK ( len , curr_offset - offset , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 11531, "target": 0, "func": "static int dissect_h245_NewATMVCIndication ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_NewATMVCIndication , NewATMVCIndication_sequence ) ;\n return offset ;\n }"}
{"idx": 11532, "target": 0, "func": "void vp9_rc_get_one_pass_cbr_params ( VP9_COMP * cpi ) {\n VP9_COMMON * const cm = & cpi -> common ;\n RATE_CONTROL * const rc = & cpi -> rc ;\n int target ;\n if ( ( cm -> current_video_frame == 0 || ( cpi -> frame_flags & FRAMEFLAGS_KEY ) || rc -> frames_to_key == 0 || ( cpi -> oxcf . auto_key && 0 ) ) ) {\n cm -> frame_type = KEY_FRAME ;\n rc -> this_key_frame_forced = cm -> current_video_frame != 0 && rc -> frames_to_key == 0 ;\n rc -> frames_to_key = cpi -> oxcf . key_freq ;\n rc -> kf_boost = DEFAULT_KF_BOOST ;\n rc -> source_alt_ref_active = 0 ;\n target = calc_iframe_target_size_one_pass_cbr ( cpi ) ;\n }\n else {\n cm -> frame_type = INTER_FRAME ;\n target = calc_pframe_target_size_one_pass_cbr ( cpi ) ;\n }\n vp9_rc_set_frame_target ( cpi , target ) ;\n rc -> frames_till_gf_update_due = INT_MAX ;\n rc -> baseline_gf_interval = INT_MAX ;\n }"}
{"idx": 11533, "target": 0, "func": "static void pk_transaction_set_role ( PkTransaction * transaction , PkRoleEnum role ) {\n transaction -> priv -> role = role ;\n if ( role == PK_ROLE_ENUM_INSTALL_FILES || role == PK_ROLE_ENUM_INSTALL_PACKAGES || role == PK_ROLE_ENUM_REMOVE_PACKAGES || role == PK_ROLE_ENUM_UPDATE_PACKAGES || role == PK_ROLE_ENUM_UPGRADE_SYSTEM || role == PK_ROLE_ENUM_REPAIR_SYSTEM ) {\n pk_transaction_make_exclusive ( transaction ) ;\n }\n pk_transaction_emit_property_changed ( transaction , \"Role\" , g_variant_new_uint32 ( role ) ) ;\n }"}
{"idx": 11534, "target": 0, "func": "static int dissect_h245_T_signalType ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_restricted_character_string ( tvb , offset , actx , tree , hf_index , 1 , 1 , FALSE , \"0123456789#*ABCD!\" , 17 , NULL ) ;\n return offset ;\n }"}
{"idx": 11535, "target": 0, "func": "static const char * ultag_getRegion ( const ULanguageTag * langtag ) {\n return langtag -> region ;\n }"}
{"idx": 11536, "target": 0, "func": "int mgs_hook_pre_config ( apr_pool_t * pconf , apr_pool_t * plog , apr_pool_t * ptemp __attribute__ ( ( unused ) ) ) {\n # if MOD_GNUTLS_DEBUG apr_file_open ( & debug_log_fp , \"/tmp/gnutls_debug\" , APR_APPEND | APR_WRITE | APR_CREATE , APR_OS_DEFAULT , pconf ) ;\n _gnutls_log ( debug_log_fp , \"%s: %d\\n\" , __func__ , __LINE__ ) ;\n gnutls_global_set_log_level ( 9 ) ;\n gnutls_global_set_log_function ( gnutls_debug_log_all ) ;\n _gnutls_log ( debug_log_fp , \"gnutls: %s\\n\" , gnutls_check_version ( NULL ) ) ;\n # endif int ret ;\n if ( gnutls_check_version ( LIBGNUTLS_VERSION ) == NULL ) {\n ap_log_perror ( APLOG_MARK , APLOG_EMERG , 0 , plog , \"gnutls_check_version() failed. Required: \" \"gnutls-%s Found: gnutls-%s\" , LIBGNUTLS_VERSION , gnutls_check_version ( NULL ) ) ;\n return DONE ;\n }\n ret = gnutls_global_init ( ) ;\n if ( ret < 0 ) {\n ap_log_perror ( APLOG_MARK , APLOG_EMERG , 0 , plog , \"gnutls_global_init: %s\" , gnutls_strerror ( ret ) ) ;\n return DONE ;\n }\n ret = gnutls_session_ticket_key_generate ( & session_ticket_key ) ;\n if ( ret < 0 ) {\n ap_log_perror ( APLOG_MARK , APLOG_EMERG , 0 , plog , \"gnutls_session_ticket_key_generate: %s\" , gnutls_strerror ( ret ) ) ;\n return DONE ;\n }\n AP_OPTIONAL_HOOK ( status_hook , mgs_status_hook , NULL , NULL , APR_HOOK_MIDDLE ) ;\n apr_pool_cleanup_register ( pconf , NULL , mgs_cleanup_pre_config , apr_pool_cleanup_null ) ;\n return OK ;\n }"}
{"idx": 11537, "target": 0, "func": "static void * DecoderThread ( void * p_data ) {\n decoder_t * p_dec = ( decoder_t * ) p_data ;\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n for ( ;\n ;\n ) {\n block_t * p_block = block_FifoGet ( p_owner -> p_fifo ) ;\n bool end_wait = ! p_block || p_block -> i_flags & BLOCK_FLAG_CORE_EOS ;\n DecoderSignalWait ( p_dec , end_wait ) ;\n if ( end_wait ) input_DecoderStopWait ( p_dec ) ;\n if ( p_block ) {\n int canc = vlc_savecancel ( ) ;\n if ( p_block -> i_flags & BLOCK_FLAG_CORE_EOS ) {\n block_Release ( p_block ) ;\n p_block = NULL ;\n }\n DecoderProcess ( p_dec , p_block ) ;\n vlc_restorecancel ( canc ) ;\n }\n }\n return NULL ;\n }"}
{"idx": 11538, "target": 0, "func": "int pdf_xobject_knockout ( fz_context * ctx , pdf_xobject * xobj ) {\n pdf_obj * group = pdf_dict_get ( ctx , xobj -> obj , PDF_NAME_Group ) ;\n if ( group ) return pdf_to_bool ( ctx , pdf_dict_get ( ctx , group , PDF_NAME_K ) ) ;\n return 0 ;\n }"}
{"idx": 11539, "target": 0, "func": "static int dissect_h245_VideoMode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 516 \"../../asn1/h245/h245.cnf\" gint32 value ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_VideoMode , VideoMode_choice , & value ) ;\n codec_type = val_to_str ( value , h245_VideoMode_vals , \"<unknown>\" ) ;\n return offset ;\n }"}
{"idx": 11540, "target": 0, "func": "int ASN1_BIT_STRING_get_bit ( ASN1_BIT_STRING * a , int n ) {\n int w , v ;\n w = n / 8 ;\n v = 1 << ( 7 - ( n & 0x07 ) ) ;\n if ( ( a == NULL ) || ( a -> length < ( w + 1 ) ) || ( a -> data == NULL ) ) return ( 0 ) ;\n return ( ( a -> data [ w ] & v ) != 0 ) ;\n }"}
{"idx": 11541, "target": 0, "func": "static int cirrus_vga_read_sr ( CirrusVGAState * s ) {\n switch ( s -> vga . sr_index ) {\n case 0x00 : case 0x01 : case 0x02 : case 0x03 : case 0x04 : return s -> vga . sr [ s -> vga . sr_index ] ;\n case 0x06 : return s -> vga . sr [ s -> vga . sr_index ] ;\n case 0x10 : case 0x30 : case 0x50 : case 0x70 : case 0x90 : case 0xb0 : case 0xd0 : case 0xf0 : return s -> vga . sr [ 0x10 ] ;\n case 0x11 : case 0x31 : case 0x51 : case 0x71 : case 0x91 : case 0xb1 : case 0xd1 : case 0xf1 : return s -> vga . sr [ 0x11 ] ;\n case 0x05 : case 0x07 : case 0x08 : case 0x09 : case 0x0a : case 0x0b : case 0x0c : case 0x0d : case 0x0e : case 0x0f : case 0x12 : case 0x13 : case 0x14 : case 0x15 : case 0x16 : case 0x17 : case 0x18 : case 0x19 : case 0x1a : case 0x1b : case 0x1c : case 0x1d : case 0x1e : case 0x1f : # ifdef DEBUG_CIRRUS printf ( \"cirrus: handled inport sr_index %02x\\n\" , s -> vga . sr_index ) ;\n # endif return s -> vga . sr [ s -> vga . sr_index ] ;\n default : # ifdef DEBUG_CIRRUS printf ( \"cirrus: inport sr_index %02x\\n\" , s -> vga . sr_index ) ;\n # endif return 0xff ;\n break ;\n }\n }"}
{"idx": 11542, "target": 0, "func": "static void encode_sb ( VP9_COMP * cpi , const TileInfo * const tile , TOKENEXTRA * * tp , int mi_row , int mi_col , int output_enabled , BLOCK_SIZE bsize , PC_TREE * pc_tree ) {\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCK * const x = & cpi -> mb ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n const int bsl = b_width_log2 ( bsize ) , hbs = ( 1 << bsl ) / 4 ;\n int ctx ;\n PARTITION_TYPE partition ;\n BLOCK_SIZE subsize = bsize ;\n if ( mi_row >= cm -> mi_rows || mi_col >= cm -> mi_cols ) return ;\n if ( bsize >= BLOCK_8X8 ) {\n ctx = partition_plane_context ( xd , mi_row , mi_col , bsize ) ;\n subsize = get_subsize ( bsize , pc_tree -> partitioning ) ;\n }\n else {\n ctx = 0 ;\n subsize = BLOCK_4X4 ;\n }\n partition = partition_lookup [ bsl ] [ subsize ] ;\n if ( output_enabled && bsize != BLOCK_4X4 ) cm -> counts . partition [ ctx ] [ partition ] ++ ;\n switch ( partition ) {\n case PARTITION_NONE : encode_b ( cpi , tile , tp , mi_row , mi_col , output_enabled , subsize , & pc_tree -> none ) ;\n break ;\n case PARTITION_VERT : encode_b ( cpi , tile , tp , mi_row , mi_col , output_enabled , subsize , & pc_tree -> vertical [ 0 ] ) ;\n if ( mi_col + hbs < cm -> mi_cols && bsize > BLOCK_8X8 ) {\n encode_b ( cpi , tile , tp , mi_row , mi_col + hbs , output_enabled , subsize , & pc_tree -> vertical [ 1 ] ) ;\n }\n break ;\n case PARTITION_HORZ : encode_b ( cpi , tile , tp , mi_row , mi_col , output_enabled , subsize , & pc_tree -> horizontal [ 0 ] ) ;\n if ( mi_row + hbs < cm -> mi_rows && bsize > BLOCK_8X8 ) {\n encode_b ( cpi , tile , tp , mi_row + hbs , mi_col , output_enabled , subsize , & pc_tree -> horizontal [ 1 ] ) ;\n }\n break ;\n case PARTITION_SPLIT : if ( bsize == BLOCK_8X8 ) {\n encode_b ( cpi , tile , tp , mi_row , mi_col , output_enabled , subsize , pc_tree -> leaf_split [ 0 ] ) ;\n }\n else {\n encode_sb ( cpi , tile , tp , mi_row , mi_col , output_enabled , subsize , pc_tree -> split [ 0 ] ) ;\n encode_sb ( cpi , tile , tp , mi_row , mi_col + hbs , output_enabled , subsize , pc_tree -> split [ 1 ] ) ;\n encode_sb ( cpi , tile , tp , mi_row + hbs , mi_col , output_enabled , subsize , pc_tree -> split [ 2 ] ) ;\n encode_sb ( cpi , tile , tp , mi_row + hbs , mi_col + hbs , output_enabled , subsize , pc_tree -> split [ 3 ] ) ;\n }\n break ;\n default : assert ( \"Invalid partition type.\" ) ;\n break ;\n }\n if ( partition != PARTITION_SPLIT || bsize == BLOCK_8X8 ) update_partition_context ( xd , mi_row , mi_col , subsize , bsize ) ;\n }"}
{"idx": 11543, "target": 0, "func": "static uint isam_key_length ( MI_INFO * info , register MI_KEYDEF * keyinfo ) {\n uint length ;\n HA_KEYSEG * keyseg ;\n DBUG_ENTER ( \"isam_key_length\" ) ;\n length = info -> s -> rec_reflength ;\n for ( keyseg = keyinfo -> seg ;\n keyseg -> type ;\n keyseg ++ ) length += keyseg -> length ;\n DBUG_PRINT ( \"exit\" , ( \"length: %d\" , length ) ) ;\n DBUG_RETURN ( length ) ;\n }"}
{"idx": 11544, "target": 0, "func": "int xmlIsBaseChar ( unsigned int ch ) {\n return ( xmlIsBaseCharQ ( ch ) ) ;\n }"}
{"idx": 11545, "target": 0, "func": "void addHeapMutexTest ( TestNode * * root ) {\n addTest ( root , & TestHeapFunctions , \"hpmufn/TestHeapFunctions\" ) ;\n }"}
{"idx": 11546, "target": 0, "func": "static void decode_exp_lsp ( WMACodecContext * s , int ch ) {\n float lsp_coefs [ NB_LSP_COEFS ] ;\n int val , i ;\n for ( i = 0 ;\n i < NB_LSP_COEFS ;\n i ++ ) {\n if ( i == 0 || i >= 8 ) val = get_bits ( & s -> gb , 3 ) ;\n else val = get_bits ( & s -> gb , 4 ) ;\n lsp_coefs [ i ] = ff_wma_lsp_codebook [ i ] [ val ] ;\n }\n wma_lsp_to_curve ( s , s -> exponents [ ch ] , & s -> max_exponent [ ch ] , s -> block_len , lsp_coefs ) ;\n }"}
{"idx": 11547, "target": 0, "func": "void rtp_dyn_payload_replace ( rtp_dyn_payload_t * rtp_dyn_payload , const guint8 pt , const gchar * encoding_name , const int sample_rate ) {\n if ( rtp_dyn_payload && rtp_dyn_payload -> table ) {\n encoding_name_and_rate_t * encoding_name_and_rate_pt = wmem_new ( wmem_file_scope ( ) , encoding_name_and_rate_t ) ;\n encoding_name_and_rate_pt -> encoding_name = wmem_strdup ( wmem_file_scope ( ) , encoding_name ) ;\n encoding_name_and_rate_pt -> sample_rate = sample_rate ;\n g_hash_table_replace ( rtp_dyn_payload -> table , GUINT_TO_POINTER ( pt ) , encoding_name_and_rate_pt ) ;\n }\n }"}
{"idx": 11548, "target": 0, "func": "static request_data_t * get_request ( tvbuff_t * tvb , gint offset , packet_info * pinfo , guint8 opcode , bluetooth_data_t * bluetooth_data ) {\n request_data_t * request_data ;\n wmem_tree_key_t key [ 4 ] ;\n wmem_tree_t * sub_wmemtree ;\n guint32 frame_number , curr_layer_num ;\n curr_layer_num = pinfo -> curr_layer_num ;\n key [ 0 ] . length = 1 ;\n key [ 0 ] . key = & bluetooth_data -> interface_id ;\n key [ 1 ] . length = 1 ;\n key [ 1 ] . key = & bluetooth_data -> adapter_id ;\n key [ 2 ] . length = 1 ;\n key [ 2 ] . key = & curr_layer_num ;\n key [ 3 ] . length = 0 ;\n key [ 3 ] . key = NULL ;\n frame_number = pinfo -> num ;\n sub_wmemtree = ( wmem_tree_t * ) wmem_tree_lookup32_array ( requests , key ) ;\n request_data = ( sub_wmemtree ) ? ( request_data_t * ) wmem_tree_lookup32_le ( sub_wmemtree , frame_number ) : NULL ;\n if ( request_data && request_data -> request_in_frame == pinfo -> num ) return request_data ;\n if ( request_data ) do {\n frame_number = request_data -> request_in_frame - 1 ;\n if ( request_data -> request_in_frame == pinfo -> num ) break ;\n switch ( opcode ) {\n case 0x01 : if ( tvb_captured_length_remaining ( tvb , offset ) < 1 ) return NULL ;\n opcode = tvb_get_guint8 ( tvb , 1 ) + 1 ;\n case 0x03 : case 0x05 : case 0x07 : case 0x09 : case 0x0b : case 0x0d : case 0x0f : case 0x11 : case 0x13 : case 0x17 : case 0x19 : case 0x1E : if ( request_data -> opcode == opcode - 1 ) return request_data ;\n break ;\n }\n }\n while ( 0 ) ;\n request_data = ( sub_wmemtree ) ? ( request_data_t * ) wmem_tree_lookup32_le ( sub_wmemtree , frame_number ) : NULL ;\n if ( ! request_data ) return NULL ;\n if ( request_data -> request_in_frame == pinfo -> num ) return request_data ;\n switch ( opcode ) {\n case 0x01 : if ( tvb_captured_length_remaining ( tvb , offset ) < 1 ) return NULL ;\n opcode = tvb_get_guint8 ( tvb , 1 ) + 1 ;\n case 0x03 : case 0x05 : case 0x07 : case 0x09 : case 0x0b : case 0x0d : case 0x0f : case 0x11 : case 0x13 : case 0x17 : case 0x19 : case 0x1E : if ( request_data -> opcode == opcode - 1 ) return request_data ;\n break ;\n case 0x1B : case 0x52 : case 0xD2 : return NULL ;\n case 0x02 : case 0x04 : case 0x06 : case 0x08 : case 0x0a : case 0x0c : case 0x0e : case 0x10 : case 0x12 : case 0x16 : case 0x18 : case 0x1D : default : return NULL ;\n }\n return NULL ;\n }"}
{"idx": 11549, "target": 0, "func": "static int dissect_h245_T84Profile ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T84Profile , T84Profile_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 11550, "target": 0, "func": "static int read_rgb24_component_line ( CLLCContext * ctx , GetBitContext * gb , int * top_left , VLC * vlc , uint8_t * outbuf ) {\n uint8_t * dst ;\n int pred , code ;\n int i ;\n OPEN_READER ( bits , gb ) ;\n dst = outbuf ;\n pred = * top_left ;\n for ( i = 0 ;\n i < ctx -> avctx -> width ;\n i ++ ) {\n UPDATE_CACHE ( bits , gb ) ;\n GET_VLC ( code , bits , gb , vlc -> table , 7 , 2 ) ;\n pred += code ;\n dst [ 0 ] = pred ;\n dst += 3 ;\n }\n CLOSE_READER ( bits , gb ) ;\n * top_left = dst [ - 3 * ctx -> avctx -> width ] ;\n return 0 ;\n }"}
{"idx": 11551, "target": 0, "func": "apr_status_t modsecurity_process_phase ( modsec_rec * msr , unsigned int phase ) {\n if ( ( msr -> was_intercepted ) && ( phase != PHASE_LOGGING ) ) {\n if ( msr -> txcfg -> debuglog_level >= 4 ) {\n msr_log ( msr , 4 , \"Skipping phase %d as request was already intercepted.\" , phase ) ;\n }\n return 0 ;\n }\n if ( msr -> phase >= phase ) {\n if ( msr -> txcfg -> debuglog_level >= 4 ) {\n msr_log ( msr , 4 , \"Skipping phase %d because it was previously run (at %d now).\" , phase , msr -> phase ) ;\n }\n return 0 ;\n }\n msr -> phase = phase ;\n if ( msr -> txcfg -> cache_trans == MODSEC_CACHE_ENABLED ) {\n if ( msr -> tcache ) {\n apr_hash_index_t * hi ;\n void * dummy ;\n apr_table_t * tab ;\n const void * key ;\n apr_ssize_t klen ;\n # ifdef CACHE_DEBUG apr_pool_t * mp = msr -> msc_rule_mptmp ;\n const apr_array_header_t * ctarr ;\n const apr_table_entry_t * ctelts ;\n msre_cache_rec * rec ;\n int cn = 0 ;\n int ri ;\n # else apr_pool_t * mp = msr -> mp ;\n # endif for ( hi = apr_hash_first ( mp , msr -> tcache ) ;\n hi ;\n hi = apr_hash_next ( hi ) ) {\n apr_hash_this ( hi , & key , & klen , & dummy ) ;\n tab = ( apr_table_t * ) dummy ;\n if ( tab == NULL ) continue ;\n # ifdef CACHE_DEBUG ctarr = apr_table_elts ( tab ) ;\n ctelts = ( const apr_table_entry_t * ) ctarr -> elts ;\n for ( ri = 0 ;\n ri < ctarr -> nelts ;\n ri ++ ) {\n cn ++ ;\n rec = ( msre_cache_rec * ) ctelts [ ri ] . val ;\n if ( rec -> changed ) {\n if ( msr -> txcfg -> debuglog_level >= 9 ) {\n msr_log ( msr , 9 , \"CACHE: %5d) hits=%d key=%pp %x;\n%s=\\\"%s\\\" (%pp - %pp)\" , cn , rec -> hits , key , rec -> num , rec -> path , log_escape_nq_ex ( mp , rec -> val , rec -> val_len ) , rec -> val , rec -> val + rec -> val_len ) ;\n }\n }\n else {\n if ( msr -> txcfg -> debuglog_level >= 9 ) {\n msr_log ( msr , 9 , \"CACHE: %5d) hits=%d key=%pp %x;\n%s=<no change>\" , cn , rec -> hits , key , rec -> num , rec -> path ) ;\n }\n }\n }\n # endif apr_table_clear ( tab ) ;\n apr_hash_set ( msr -> tcache , key , klen , NULL ) ;\n }\n if ( msr -> txcfg -> debuglog_level >= 9 ) {\n msr_log ( msr , 9 , \"Cleared transformation cache for phase %d\" , msr -> phase ) ;\n }\n }\n msr -> tcache_items = 0 ;\n msr -> tcache = apr_hash_make ( msr -> mp ) ;\n if ( msr -> tcache == NULL ) return - 1 ;\n }\n switch ( phase ) {\n case 1 : return modsecurity_process_phase_request_headers ( msr ) ;\n case 2 : return modsecurity_process_phase_request_body ( msr ) ;\n case 3 : return modsecurity_process_phase_response_headers ( msr ) ;\n case 4 : return modsecurity_process_phase_response_body ( msr ) ;\n case 5 : return modsecurity_process_phase_logging ( msr ) ;\n default : msr_log ( msr , 1 , \"Invalid processing phase: %d\" , msr -> phase ) ;\n break ;\n }\n return - 1 ;\n }"}
{"idx": 11552, "target": 0, "func": "static uint8_t lag_calc_zero_run ( int8_t x ) {\n return ( x << 1 ) ^ ( x >> 7 ) ;\n }"}
{"idx": 11553, "target": 0, "func": "static uint32_t PREP_io_800_readb ( void * opaque , uint32_t addr ) {\n uint32_t retval = 0xFF ;\n switch ( addr ) {\n case 0x0092 : retval = 0x40 ;\n break ;\n case 0x080C : retval = 0xFC ;\n break ;\n case 0x0818 : retval = 0x00 ;\n break ;\n case 0x081C : retval = syscontrol ;\n break ;\n case 0x0823 : retval = 0x03 ;\n break ;\n case 0x0850 : retval = 0x00 ;\n break ;\n default : break ;\n }\n PPC_IO_DPRINTF ( \"0x%08x <= 0x%08x\\n\" , addr - PPC_IO_BASE , retval ) ;\n return retval ;\n }"}
{"idx": 11554, "target": 0, "func": "int qemuAgentSetVCPUs ( qemuAgentPtr mon , qemuAgentCPUInfoPtr info , size_t ninfo ) {\n int rv ;\n int nmodified ;\n size_t i ;\n do {\n if ( ( rv = qemuAgentSetVCPUsCommand ( mon , info , ninfo , & nmodified ) ) < 0 ) return - 1 ;\n if ( rv == nmodified ) return 0 ;\n for ( i = 0 ;\n i < ninfo && rv > 0 ;\n i ++ ) {\n if ( ! info [ i ] . modified ) continue ;\n info [ i ] . modified = false ;\n rv -- ;\n }\n }\n while ( 1 ) ;\n return 0 ;\n }"}
{"idx": 11555, "target": 0, "func": "void mime_hdr_init ( MIMEHdrImpl * mh ) {\n mime_hdr_init_accelerators_and_presence_bits ( mh ) ;\n mime_hdr_cooked_stuff_init ( mh , nullptr ) ;\n obj_init_header ( ( HdrHeapObjImpl * ) & ( mh -> m_first_fblock ) , HDR_HEAP_OBJ_FIELD_BLOCK , sizeof ( MIMEFieldBlockImpl ) , 0 ) ;\n _mime_hdr_field_block_init ( & ( mh -> m_first_fblock ) ) ;\n mh -> m_fblock_list_tail = & ( mh -> m_first_fblock ) ;\n MIME_HDR_SANITY_CHECK ( mh ) ;\n }"}
{"idx": 11556, "target": 0, "func": "static int selinux_get_mnt_opts ( const struct super_block * sb , struct security_mnt_opts * opts ) {\n int rc = 0 , i ;\n struct superblock_security_struct * sbsec = sb -> s_security ;\n char * context = NULL ;\n u32 len ;\n char tmp ;\n security_init_mnt_opts ( opts ) ;\n if ( ! ( sbsec -> flags & SE_SBINITIALIZED ) ) return - EINVAL ;\n if ( ! ss_initialized ) return - EINVAL ;\n BUILD_BUG_ON ( SE_MNTMASK >= ( 1 << NUM_SEL_MNT_OPTS ) ) ;\n tmp = sbsec -> flags & SE_MNTMASK ;\n for ( i = 0 ;\n i < NUM_SEL_MNT_OPTS ;\n i ++ ) {\n if ( tmp & 0x01 ) opts -> num_mnt_opts ++ ;\n tmp >>= 1 ;\n }\n if ( sbsec -> flags & SBLABEL_MNT ) opts -> num_mnt_opts ++ ;\n opts -> mnt_opts = kcalloc ( opts -> num_mnt_opts , sizeof ( char * ) , GFP_ATOMIC ) ;\n if ( ! opts -> mnt_opts ) {\n rc = - ENOMEM ;\n goto out_free ;\n }\n opts -> mnt_opts_flags = kcalloc ( opts -> num_mnt_opts , sizeof ( int ) , GFP_ATOMIC ) ;\n if ( ! opts -> mnt_opts_flags ) {\n rc = - ENOMEM ;\n goto out_free ;\n }\n i = 0 ;\n if ( sbsec -> flags & FSCONTEXT_MNT ) {\n rc = security_sid_to_context ( sbsec -> sid , & context , & len ) ;\n if ( rc ) goto out_free ;\n opts -> mnt_opts [ i ] = context ;\n opts -> mnt_opts_flags [ i ++ ] = FSCONTEXT_MNT ;\n }\n if ( sbsec -> flags & CONTEXT_MNT ) {\n rc = security_sid_to_context ( sbsec -> mntpoint_sid , & context , & len ) ;\n if ( rc ) goto out_free ;\n opts -> mnt_opts [ i ] = context ;\n opts -> mnt_opts_flags [ i ++ ] = CONTEXT_MNT ;\n }\n if ( sbsec -> flags & DEFCONTEXT_MNT ) {\n rc = security_sid_to_context ( sbsec -> def_sid , & context , & len ) ;\n if ( rc ) goto out_free ;\n opts -> mnt_opts [ i ] = context ;\n opts -> mnt_opts_flags [ i ++ ] = DEFCONTEXT_MNT ;\n }\n if ( sbsec -> flags & ROOTCONTEXT_MNT ) {\n struct dentry * root = sbsec -> sb -> s_root ;\n struct inode_security_struct * isec = backing_inode_security ( root ) ;\n rc = security_sid_to_context ( isec -> sid , & context , & len ) ;\n if ( rc ) goto out_free ;\n opts -> mnt_opts [ i ] = context ;\n opts -> mnt_opts_flags [ i ++ ] = ROOTCONTEXT_MNT ;\n }\n if ( sbsec -> flags & SBLABEL_MNT ) {\n opts -> mnt_opts [ i ] = NULL ;\n opts -> mnt_opts_flags [ i ++ ] = SBLABEL_MNT ;\n }\n BUG_ON ( i != opts -> num_mnt_opts ) ;\n return 0 ;\n out_free : security_free_mnt_opts ( opts ) ;\n return rc ;\n }"}
{"idx": 11557, "target": 0, "func": "static int is_unvisited_pmns_names_frame ( packet_info * pinfo ) {\n pcp_conv_info_t * pcp_conv_info ;\n pcp_conv_info = get_pcp_conversation_info ( pinfo ) ;\n return pinfo -> num > pcp_conv_info -> last_processed_pmns_names_frame && pinfo -> num > pcp_conv_info -> last_pmns_names_frame ;\n }"}
{"idx": 11558, "target": 0, "func": "inline uint char_val ( char X ) {\n return ( uint ) ( X >= '0' && X <= '9' ? X - '0' : X >= 'A' && X <= 'Z' ? X - 'A' + 10 : X - 'a' + 10 ) ;\n }"}
{"idx": 11559, "target": 0, "func": "void proto_register_zbee_zcl_part ( void ) {\n guint8 i , j ;\n static hf_register_info hf [ ] = {\n {\n & hf_zbee_zcl_part_attr_id , {\n \"Attribute\" , \"zbee_zcl_general.part.attr_id\" , FT_UINT16 , BASE_HEX , VALS ( zbee_zcl_part_attr_names ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_part_srv_tx_cmd_id , {\n \"Command\" , \"zbee_zcl_general.part.cmd.srv_tx.id\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_part_srv_tx_cmd_names ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_part_srv_rx_cmd_id , {\n \"Command\" , \"zbee_zcl_general.part.cmd.srv_rx.id\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_part_srv_rx_cmd_names ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_part_opt , {\n \"Fragmentation Options\" , \"zbee_zcl_general.part.opt\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_part_opt_first_block , {\n \"First Block\" , \"zbee_zcl_general.part.opt.first_block\" , FT_UINT8 , BASE_HEX , NULL , ZBEE_ZCL_PART_OPT_1_BLOCK , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_part_opt_indic_len , {\n \"Indicator length\" , \"zbee_zcl_general.part.opt.indic_len\" , FT_UINT8 , BASE_DEC , VALS ( zbee_zcl_part_id_length_names ) , ZBEE_ZCL_PART_OPT_INDIC_LEN , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_part_opt_res , {\n \"Reserved\" , \"zbee_zcl_general.part.opt.res\" , FT_UINT8 , BASE_HEX , NULL , ZBEE_ZCL_PART_OPT_RESERVED , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_part_first_frame_id , {\n \"First Frame ID\" , \"zbee_zcl_general.part.first_frame_id\" , FT_UINT16 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_part_part_indicator , {\n \"Partition Indicator\" , \"zbee_zcl_general.part.part_indicator\" , FT_UINT16 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_part_part_frame_len , {\n \"Partition Frame Length\" , \"zbee_zcl_general.part.part_frame_length\" , FT_UINT8 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_part_part_frame , {\n \"Partition Frame\" , \"zbee_zcl_general.part.part_frame\" , FT_BYTES , SEP_COLON , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_part_partitioned_cluster_id , {\n \"Partitioned Cluster ID\" , \"zbee_zcl_general.part.part_cluster_id\" , FT_UINT16 , BASE_HEX , VALS ( zbee_aps_cid_names ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_part_ack_opt , {\n \"Ack Options\" , \"zbee_zcl_general.ack_opt.part\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_part_ack_opt_nack_id_len , {\n \"Nack Id Length\" , \"zbee_zcl_general.ack_opt.part.nack_id.len\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_part_id_length_names ) , ZBEE_ZCL_PART_ACK_OPT_NACK_LEN , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_part_ack_opt_res , {\n \"Reserved\" , \"zbee_zcl_general.part.ack_opt.reserved\" , FT_UINT8 , BASE_HEX , NULL , ZBEE_ZCL_PART_ACK_OPT_RESERVED , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_part_nack_id , {\n \"Nack Id\" , \"zbee_zcl_general.part.nack_id\" , FT_UINT16 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n }\n ;\n gint * ett [ ZBEE_ZCL_PART_NUM_ETT ] ;\n ett [ 0 ] = & ett_zbee_zcl_part ;\n ett [ 1 ] = & ett_zbee_zcl_part_fragm_options ;\n ett [ 2 ] = & ett_zbee_zcl_part_ack_opts ;\n for ( i = 0 , j = ZBEE_ZCL_PART_NUM_GENERIC_ETT ;\n i < ZBEE_ZCL_PART_NUM_NACK_ID_ETT ;\n i ++ , j ++ ) {\n ett_zbee_zcl_part_nack_id_list [ i ] = - 1 ;\n ett [ j ] = & ett_zbee_zcl_part_nack_id_list [ i ] ;\n }\n for ( i = 0 ;\n i < ZBEE_ZCL_PART_NUM_ATTRS_ID_ETT ;\n i ++ , j ++ ) {\n ett_zbee_zcl_part_attrs_id_list [ i ] = - 1 ;\n ett [ j ] = & ett_zbee_zcl_part_attrs_id_list [ i ] ;\n }\n proto_zbee_zcl_part = proto_register_protocol ( \"ZigBee ZCL Partition\" , \"ZCL Partition\" , ZBEE_PROTOABBREV_ZCL_PART ) ;\n proto_register_field_array ( proto_zbee_zcl_part , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n register_dissector ( ZBEE_PROTOABBREV_ZCL_PART , dissect_zbee_zcl_part , proto_zbee_zcl_part ) ;\n }"}
{"idx": 11560, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FastUnloadTest , BrowserListForceCloseAfterNormalCloseWithFastUnload ) {\n NavigateToDataURL ( BEFORE_UNLOAD_HTML , \"beforeunload\" ) ;\n content : : WindowedNotificationObserver window_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , content : : NotificationService : : AllSources ( ) ) ;\n UnloadResults unload_results ;\n BrowserList : : CloseAllBrowsersWithProfile ( browser ( ) -> profile ( ) , base : : Bind ( & UnloadResults : : AddSuccess , base : : Unretained ( & unload_results ) ) , base : : Bind ( & UnloadResults : : AddAbort , base : : Unretained ( & unload_results ) ) , false ) ;\n BrowserList : : CloseAllBrowsersWithProfile ( browser ( ) -> profile ( ) , base : : Bind ( & UnloadResults : : AddSuccess , base : : Unretained ( & unload_results ) ) , base : : Bind ( & UnloadResults : : AddAbort , base : : Unretained ( & unload_results ) ) , true ) ;\n window_observer . Wait ( ) ;\n EXPECT_EQ ( 1 , unload_results . get_successes ( ) ) ;\n EXPECT_EQ ( 0 , unload_results . get_aborts ( ) ) ;\n }"}
{"idx": 11561, "target": 0, "func": "int qemuAgentFSTrim ( qemuAgentPtr mon , unsigned long long minimum ) {\n int ret = - 1 ;\n virJSONValuePtr cmd ;\n virJSONValuePtr reply = NULL ;\n cmd = qemuAgentMakeCommand ( \"guest-fstrim\" , \"U:minimum\" , minimum , NULL ) ;\n if ( ! cmd ) return ret ;\n ret = qemuAgentCommand ( mon , cmd , & reply , false , VIR_DOMAIN_QEMU_AGENT_COMMAND_BLOCK ) ;\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 11562, "target": 0, "func": "static void decApplyRound ( decNumber * dn , decContext * set , Int residue , uInt * status ) {\n Int bump ;\n if ( residue == 0 ) return ;\n bump = 0 ;\n switch ( set -> round ) {\n case DEC_ROUND_05UP : {\n Int lsd5 = * dn -> lsu % 5 ;\n if ( residue < 0 && lsd5 != 1 ) bump = - 1 ;\n else if ( residue > 0 && lsd5 == 0 ) bump = 1 ;\n break ;\n }\n case DEC_ROUND_DOWN : {\n if ( residue < 0 ) bump = - 1 ;\n break ;\n }\n case DEC_ROUND_HALF_DOWN : {\n if ( residue > 5 ) bump = 1 ;\n break ;\n }\n case DEC_ROUND_HALF_EVEN : {\n if ( residue > 5 ) bump = 1 ;\n else if ( residue == 5 ) {\n if ( * dn -> lsu & 0x01 ) bump = 1 ;\n }\n break ;\n }\n case DEC_ROUND_HALF_UP : {\n if ( residue >= 5 ) bump = 1 ;\n break ;\n }\n case DEC_ROUND_UP : {\n if ( residue > 0 ) bump = 1 ;\n break ;\n }\n case DEC_ROUND_CEILING : {\n if ( decNumberIsNegative ( dn ) ) {\n if ( residue < 0 ) bump = - 1 ;\n }\n else {\n if ( residue > 0 ) bump = 1 ;\n }\n break ;\n }\n case DEC_ROUND_FLOOR : {\n if ( ! decNumberIsNegative ( dn ) ) {\n if ( residue < 0 ) bump = - 1 ;\n }\n else {\n if ( residue > 0 ) bump = 1 ;\n }\n break ;\n }\n default : {\n * status |= DEC_Invalid_context ;\n # if DECTRACE || ( DECCHECK && DECVERB ) printf ( \"Unknown rounding mode: %d\\n\" , set -> round ) ;\n # endif break ;\n }\n }\n if ( bump == 0 ) return ;\n if ( bump > 0 ) {\n Unit * up ;\n uInt count = dn -> digits ;\n for ( up = dn -> lsu ;\n ;\n up ++ ) {\n if ( count <= DECDPUN ) {\n if ( * up != powers [ count ] - 1 ) break ;\n * up = ( Unit ) powers [ count - 1 ] ;\n for ( up = up - 1 ;\n up >= dn -> lsu ;\n up -- ) * up = 0 ;\n dn -> exponent ++ ;\n if ( ( dn -> exponent + dn -> digits ) > set -> emax + 1 ) {\n decSetOverflow ( dn , set , status ) ;\n }\n return ;\n }\n if ( * up != DECDPUNMAX ) break ;\n count -= DECDPUN ;\n }\n }\n else {\n Unit * up , * sup ;\n uInt count = dn -> digits ;\n for ( up = dn -> lsu ;\n ;\n up ++ ) {\n if ( count <= DECDPUN ) {\n if ( * up != powers [ count - 1 ] ) break ;\n sup = up ;\n * up = ( Unit ) powers [ count ] - 1 ;\n for ( up = up - 1 ;\n up >= dn -> lsu ;\n up -- ) * up = ( Unit ) powers [ DECDPUN ] - 1 ;\n dn -> exponent -- ;\n if ( dn -> exponent + 1 == set -> emin - set -> digits + 1 ) {\n if ( count == 1 && dn -> digits == 1 ) * sup = 0 ;\n else {\n * sup = ( Unit ) powers [ count - 1 ] - 1 ;\n dn -> digits -- ;\n }\n dn -> exponent ++ ;\n * status |= DEC_Underflow | DEC_Subnormal | DEC_Inexact | DEC_Rounded ;\n }\n return ;\n }\n if ( * up != 0 ) break ;\n count -= DECDPUN ;\n }\n }\n decUnitAddSub ( dn -> lsu , D2U ( dn -> digits ) , uarrone , 1 , 0 , dn -> lsu , bump ) ;\n }"}
{"idx": 11563, "target": 0, "func": "SPL_METHOD ( SplFileObject , getChildren ) {\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n }"}
{"idx": 11564, "target": 0, "func": "int evdns_server_request_get_requesting_addr ( struct evdns_server_request * _req , struct sockaddr * sa , int addr_len ) {\n struct server_request * req = TO_SERVER_REQUEST ( _req ) ;\n if ( addr_len < ( int ) req -> addrlen ) return - 1 ;\n memcpy ( sa , & ( req -> addr ) , req -> addrlen ) ;\n return req -> addrlen ;\n }"}
{"idx": 11565, "target": 0, "func": "bool ExecQual ( List * qual , ExprContext * econtext , bool resultForNull ) {\n bool result ;\n MemoryContext oldContext ;\n ListCell * l ;\n EV_printf ( \"ExecQual: qual is \" ) ;\n EV_nodeDisplay ( qual ) ;\n EV_printf ( \"\\n\" ) ;\n oldContext = MemoryContextSwitchTo ( econtext -> ecxt_per_tuple_memory ) ;\n result = true ;\n foreach ( l , qual ) {\n ExprState * clause = ( ExprState * ) lfirst ( l ) ;\n Datum expr_value ;\n bool isNull ;\n expr_value = ExecEvalExpr ( clause , econtext , & isNull , NULL ) ;\n if ( isNull ) {\n if ( resultForNull == false ) {\n result = false ;\n break ;\n }\n }\n else {\n if ( ! DatumGetBool ( expr_value ) ) {\n result = false ;\n break ;\n }\n }\n }\n MemoryContextSwitchTo ( oldContext ) ;\n return result ;\n }"}
{"idx": 11566, "target": 0, "func": "static struct matrix build_mAB_matrix ( struct lutmABType * lut ) {\n struct matrix result ;\n if ( lut ) {\n result . m [ 0 ] [ 0 ] = s15Fixed16Number_to_float ( lut -> e00 ) ;\n result . m [ 0 ] [ 1 ] = s15Fixed16Number_to_float ( lut -> e01 ) ;\n result . m [ 0 ] [ 2 ] = s15Fixed16Number_to_float ( lut -> e02 ) ;\n result . m [ 1 ] [ 0 ] = s15Fixed16Number_to_float ( lut -> e10 ) ;\n result . m [ 1 ] [ 1 ] = s15Fixed16Number_to_float ( lut -> e11 ) ;\n result . m [ 1 ] [ 2 ] = s15Fixed16Number_to_float ( lut -> e12 ) ;\n result . m [ 2 ] [ 0 ] = s15Fixed16Number_to_float ( lut -> e20 ) ;\n result . m [ 2 ] [ 1 ] = s15Fixed16Number_to_float ( lut -> e21 ) ;\n result . m [ 2 ] [ 2 ] = s15Fixed16Number_to_float ( lut -> e22 ) ;\n result . invalid = false ;\n }\n else {\n memset ( & result , 0 , sizeof ( struct matrix ) ) ;\n result . invalid = true ;\n }\n return result ;\n }"}
{"idx": 11567, "target": 0, "func": "TEST_F ( ProfileInfoCacheTest , Sort ) {\n base : : string16 name_a = ASCIIToUTF16 ( \"apple\" ) ;\n GetCache ( ) -> AddProfileToCache ( GetProfilePath ( \"path_a\" ) , name_a , base : : string16 ( ) , 0 , std : : string ( ) ) ;\n base : : string16 name_c = ASCIIToUTF16 ( \"cat\" ) ;\n GetCache ( ) -> AddProfileToCache ( GetProfilePath ( \"path_c\" ) , name_c , base : : string16 ( ) , 0 , std : : string ( ) ) ;\n EXPECT_EQ ( name_a , GetCache ( ) -> GetNameOfProfileAtIndex ( 0 ) ) ;\n EXPECT_EQ ( name_c , GetCache ( ) -> GetNameOfProfileAtIndex ( 1 ) ) ;\n base : : string16 name_b = ASCIIToUTF16 ( \"Banana\" ) ;\n GetCache ( ) -> AddProfileToCache ( GetProfilePath ( \"path_b\" ) , name_b , base : : string16 ( ) , 0 , std : : string ( ) ) ;\n EXPECT_EQ ( name_a , GetCache ( ) -> GetNameOfProfileAtIndex ( 0 ) ) ;\n EXPECT_EQ ( name_b , GetCache ( ) -> GetNameOfProfileAtIndex ( 1 ) ) ;\n EXPECT_EQ ( name_c , GetCache ( ) -> GetNameOfProfileAtIndex ( 2 ) ) ;\n name_a = UTF8ToUTF16 ( \"dog\" ) ;\n GetCache ( ) -> SetNameOfProfileAtIndex ( 0 , name_a ) ;\n EXPECT_EQ ( name_b , GetCache ( ) -> GetNameOfProfileAtIndex ( 0 ) ) ;\n EXPECT_EQ ( name_c , GetCache ( ) -> GetNameOfProfileAtIndex ( 1 ) ) ;\n EXPECT_EQ ( name_a , GetCache ( ) -> GetNameOfProfileAtIndex ( 2 ) ) ;\n GetCache ( ) -> DeleteProfileFromCache ( GetProfilePath ( \"path_c\" ) ) ;\n EXPECT_EQ ( name_b , GetCache ( ) -> GetNameOfProfileAtIndex ( 0 ) ) ;\n EXPECT_EQ ( name_a , GetCache ( ) -> GetNameOfProfileAtIndex ( 1 ) ) ;\n }"}
{"idx": 11568, "target": 1, "func": "static void prc_destroy ( jpc_enc_prc_t * prc ) {\n jpc_enc_cblk_t * cblk ;\n uint_fast32_t cblkno ;\n if ( prc -> cblks ) {\n for ( cblkno = 0 , cblk = prc -> cblks ;\n cblkno < prc -> numcblks ;\n ++ cblkno , ++ cblk ) {\n cblk_destroy ( cblk ) ;\n }\n jas_free ( prc -> cblks ) ;\n }\n if ( prc -> incltree ) {\n jpc_tagtree_destroy ( prc -> incltree ) ;\n }\n if ( prc -> nlibtree ) {\n jpc_tagtree_destroy ( prc -> nlibtree ) ;\n }\n if ( prc -> savincltree ) {\n jpc_tagtree_destroy ( prc -> savincltree ) ;\n }\n if ( prc -> savnlibtree ) {\n jpc_tagtree_destroy ( prc -> savnlibtree ) ;\n }\n }"}
{"idx": 11569, "target": 0, "func": "int xmlThrDefDefaultBufferSize ( int v ) {\n int ret ;\n xmlMutexLock ( xmlThrDefMutex ) ;\n ret = xmlDefaultBufferSizeThrDef ;\n xmlDefaultBufferSizeThrDef = v ;\n xmlMutexUnlock ( xmlThrDefMutex ) ;\n return ret ;\n }"}
{"idx": 11570, "target": 1, "func": "static int _warc_read ( struct archive_read * a , const void * * buf , size_t * bsz , int64_t * off ) {\n struct warc_s * w = a -> format -> data ;\n const char * rab ;\n ssize_t nrd ;\n if ( w -> cntoff >= w -> cntlen ) {\n eof : * buf = NULL ;\n * bsz = 0U ;\n * off = w -> cntoff + 4U ;\n w -> unconsumed = 0U ;\n return ( ARCHIVE_EOF ) ;\n }\n rab = __archive_read_ahead ( a , 1U , & nrd ) ;\n if ( nrd < 0 ) {\n * bsz = 0U ;\n return ( int ) nrd ;\n }\n else if ( nrd == 0 ) {\n goto eof ;\n }\n else if ( ( size_t ) nrd > w -> cntlen - w -> cntoff ) {\n nrd = w -> cntlen - w -> cntoff ;\n }\n * off = w -> cntoff ;\n * bsz = nrd ;\n * buf = rab ;\n w -> cntoff += nrd ;\n w -> unconsumed = ( size_t ) nrd ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 11571, "target": 0, "func": "static cmsStage * ReadMatrix ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number Offset ) {\n cmsFloat64Number dMat [ 3 * 3 ] ;\n cmsFloat64Number dOff [ 3 ] ;\n cmsStage * Mat ;\n if ( ! io -> Seek ( io , Offset ) ) return NULL ;\n if ( ! _cmsRead15Fixed16Number ( io , & dMat [ 0 ] ) ) return NULL ;\n if ( ! _cmsRead15Fixed16Number ( io , & dMat [ 1 ] ) ) return NULL ;\n if ( ! _cmsRead15Fixed16Number ( io , & dMat [ 2 ] ) ) return NULL ;\n if ( ! _cmsRead15Fixed16Number ( io , & dMat [ 3 ] ) ) return NULL ;\n if ( ! _cmsRead15Fixed16Number ( io , & dMat [ 4 ] ) ) return NULL ;\n if ( ! _cmsRead15Fixed16Number ( io , & dMat [ 5 ] ) ) return NULL ;\n if ( ! _cmsRead15Fixed16Number ( io , & dMat [ 6 ] ) ) return NULL ;\n if ( ! _cmsRead15Fixed16Number ( io , & dMat [ 7 ] ) ) return NULL ;\n if ( ! _cmsRead15Fixed16Number ( io , & dMat [ 8 ] ) ) return NULL ;\n if ( ! _cmsRead15Fixed16Number ( io , & dOff [ 0 ] ) ) return NULL ;\n if ( ! _cmsRead15Fixed16Number ( io , & dOff [ 1 ] ) ) return NULL ;\n if ( ! _cmsRead15Fixed16Number ( io , & dOff [ 2 ] ) ) return NULL ;\n Mat = cmsStageAllocMatrix ( self -> ContextID , 3 , 3 , dMat , dOff ) ;\n return Mat ;\n }"}
{"idx": 11572, "target": 0, "func": "int ff_rv_decode_dc ( MpegEncContext * s , int n ) {\n int code ;\n if ( n < 4 ) {\n code = get_vlc2 ( & s -> gb , rv_dc_lum . table , DC_VLC_BITS , 2 ) ;\n if ( code < 0 ) {\n code = get_bits ( & s -> gb , 7 ) ;\n if ( code == 0x7c ) {\n code = ( int8_t ) ( get_bits ( & s -> gb , 7 ) + 1 ) ;\n }\n else if ( code == 0x7d ) {\n code = - 128 + get_bits ( & s -> gb , 7 ) ;\n }\n else if ( code == 0x7e ) {\n if ( get_bits1 ( & s -> gb ) == 0 ) code = ( int8_t ) ( get_bits ( & s -> gb , 8 ) + 1 ) ;\n else code = ( int8_t ) ( get_bits ( & s -> gb , 8 ) ) ;\n }\n else if ( code == 0x7f ) {\n skip_bits ( & s -> gb , 11 ) ;\n code = 1 ;\n }\n }\n else {\n code -= 128 ;\n }\n }\n else {\n code = get_vlc2 ( & s -> gb , rv_dc_chrom . table , DC_VLC_BITS , 2 ) ;\n if ( code < 0 ) {\n code = get_bits ( & s -> gb , 9 ) ;\n if ( code == 0x1fc ) {\n code = ( int8_t ) ( get_bits ( & s -> gb , 7 ) + 1 ) ;\n }\n else if ( code == 0x1fd ) {\n code = - 128 + get_bits ( & s -> gb , 7 ) ;\n }\n else if ( code == 0x1fe ) {\n skip_bits ( & s -> gb , 9 ) ;\n code = 1 ;\n }\n else {\n av_log ( s -> avctx , AV_LOG_ERROR , \"chroma dc error\\n\" ) ;\n return 0xffff ;\n }\n }\n else {\n code -= 128 ;\n }\n }\n return - code ;\n }"}
{"idx": 11573, "target": 0, "func": "static int mainwindows_compare_reverse ( MAIN_WINDOW_REC * w1 , MAIN_WINDOW_REC * w2 ) {\n return w1 -> first_line < w2 -> first_line ? 1 : w1 -> first_line > w2 -> first_line ? - 1 : w1 -> first_column < w2 -> first_column ? 1 : w1 -> first_column > w2 -> first_column ? - 1 : 0 ;\n }"}
{"idx": 11574, "target": 0, "func": "static int dissect_h245_T38FaxUdpOptions ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T38FaxUdpOptions , T38FaxUdpOptions_sequence ) ;\n return offset ;\n }"}
{"idx": 11575, "target": 0, "func": "static int dissect_rsl ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n proto_item * ti ;\n proto_tree * rsl_tree ;\n guint8 msg_type ;\n int offset = 0 ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"RSL\" ) ;\n col_clear ( pinfo -> cinfo , COL_INFO ) ;\n msg_type = tvb_get_guint8 ( tvb , offset + 1 ) & 0x7f ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"%s \" , val_to_str_ext ( msg_type , & rsl_msg_type_vals_ext , \"unknown %u\" ) ) ;\n top_tree = tree ;\n ti = proto_tree_add_item ( tree , proto_rsl , tvb , 0 , - 1 , ENC_NA ) ;\n if ( ! global_rsl_use_nano_bts ) {\n guint8 msg_disc = tvb_get_guint8 ( tvb , offset ) >> 1 ;\n if ( msg_disc == RSL_MSGDISC_IPACCESS ) return 0 ;\n }\n rsl_tree = proto_item_add_subtree ( ti , ett_rsl ) ;\n proto_tree_add_item ( rsl_tree , hf_rsl_msg_dsc , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsl_tree , hf_rsl_T_bit , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset = dissct_rsl_msg ( tvb , pinfo , rsl_tree , offset ) ;\n return offset ;\n }"}
{"idx": 11576, "target": 0, "func": "void do_get_replace_column ( struct st_command * command ) {\n char * from = command -> first_argument ;\n char * buff , * start ;\n DBUG_ENTER ( \"get_replace_columns\" ) ;\n free_replace_column ( ) ;\n if ( ! * from ) die ( \"Missing argument in %s\" , command -> query ) ;\n start = buff = ( char * ) my_malloc ( strlen ( from ) + 1 , MYF ( MY_WME | MY_FAE ) ) ;\n while ( * from ) {\n char * to ;\n uint column_number ;\n to = get_string ( & buff , & from , command ) ;\n if ( ! ( column_number = atoi ( to ) ) || column_number > MAX_COLUMNS ) die ( \"Wrong column number to replace_column in '%s'\" , command -> query ) ;\n if ( ! * from ) die ( \"Wrong number of arguments to replace_column in '%s'\" , command -> query ) ;\n to = get_string ( & buff , & from , command ) ;\n my_free ( replace_column [ column_number - 1 ] ) ;\n replace_column [ column_number - 1 ] = my_strdup ( to , MYF ( MY_WME | MY_FAE ) ) ;\n set_if_bigger ( max_replace_column , column_number ) ;\n }\n my_free ( start ) ;\n command -> last_argument = command -> end ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 11577, "target": 0, "func": "static int selinux_socket_sock_rcv_skb ( struct sock * sk , struct sk_buff * skb ) {\n int err ;\n struct sk_security_struct * sksec = sk -> sk_security ;\n u16 family = sk -> sk_family ;\n u32 sk_sid = sksec -> sid ;\n struct common_audit_data ad ;\n struct lsm_network_audit net = {\n 0 , }\n ;\n char * addrp ;\n u8 secmark_active ;\n u8 peerlbl_active ;\n if ( family != PF_INET && family != PF_INET6 ) return 0 ;\n if ( family == PF_INET6 && skb -> protocol == htons ( ETH_P_IP ) ) family = PF_INET ;\n if ( ! selinux_policycap_netpeer ) return selinux_sock_rcv_skb_compat ( sk , skb , family ) ;\n secmark_active = selinux_secmark_enabled ( ) ;\n peerlbl_active = selinux_peerlbl_enabled ( ) ;\n if ( ! secmark_active && ! peerlbl_active ) return 0 ;\n ad . type = LSM_AUDIT_DATA_NET ;\n ad . u . net = & net ;\n ad . u . net -> netif = skb -> skb_iif ;\n ad . u . net -> family = family ;\n err = selinux_parse_skb ( skb , & ad , & addrp , 1 , NULL ) ;\n if ( err ) return err ;\n if ( peerlbl_active ) {\n u32 peer_sid ;\n err = selinux_skb_peerlbl_sid ( skb , family , & peer_sid ) ;\n if ( err ) return err ;\n err = selinux_inet_sys_rcv_skb ( sock_net ( sk ) , skb -> skb_iif , addrp , family , peer_sid , & ad ) ;\n if ( err ) {\n selinux_netlbl_err ( skb , family , err , 0 ) ;\n return err ;\n }\n err = avc_has_perm ( sk_sid , peer_sid , SECCLASS_PEER , PEER__RECV , & ad ) ;\n if ( err ) {\n selinux_netlbl_err ( skb , family , err , 0 ) ;\n return err ;\n }\n }\n if ( secmark_active ) {\n err = avc_has_perm ( sk_sid , skb -> secmark , SECCLASS_PACKET , PACKET__RECV , & ad ) ;\n if ( err ) return err ;\n }\n return err ;\n }"}
{"idx": 11578, "target": 0, "func": "cmsBool _cmsRegisterTagTypePlugin ( cmsContext id , cmsPluginBase * Data ) {\n return RegisterTypesPlugin ( id , Data , TagTypePlugin ) ;\n }"}
{"idx": 11579, "target": 0, "func": "void ff_init_rl ( RLTable * rl , uint8_t static_store [ 2 ] [ 2 * MAX_RUN + MAX_LEVEL + 3 ] ) {\n int8_t max_level [ MAX_RUN + 1 ] , max_run [ MAX_LEVEL + 1 ] ;\n uint8_t index_run [ MAX_RUN + 1 ] ;\n int last , run , level , start , end , i ;\n if ( static_store && rl -> max_level [ 0 ] ) return ;\n for ( last = 0 ;\n last < 2 ;\n last ++ ) {\n if ( last == 0 ) {\n start = 0 ;\n end = rl -> last ;\n }\n else {\n start = rl -> last ;\n end = rl -> n ;\n }\n memset ( max_level , 0 , MAX_RUN + 1 ) ;\n memset ( max_run , 0 , MAX_LEVEL + 1 ) ;\n memset ( index_run , rl -> n , MAX_RUN + 1 ) ;\n for ( i = start ;\n i < end ;\n i ++ ) {\n run = rl -> table_run [ i ] ;\n level = rl -> table_level [ i ] ;\n if ( index_run [ run ] == rl -> n ) index_run [ run ] = i ;\n if ( level > max_level [ run ] ) max_level [ run ] = level ;\n if ( run > max_run [ level ] ) max_run [ level ] = run ;\n }\n if ( static_store ) rl -> max_level [ last ] = static_store [ last ] ;\n else rl -> max_level [ last ] = av_malloc ( MAX_RUN + 1 ) ;\n memcpy ( rl -> max_level [ last ] , max_level , MAX_RUN + 1 ) ;\n if ( static_store ) rl -> max_run [ last ] = static_store [ last ] + MAX_RUN + 1 ;\n else rl -> max_run [ last ] = av_malloc ( MAX_LEVEL + 1 ) ;\n memcpy ( rl -> max_run [ last ] , max_run , MAX_LEVEL + 1 ) ;\n if ( static_store ) rl -> index_run [ last ] = static_store [ last ] + MAX_RUN + MAX_LEVEL + 2 ;\n else rl -> index_run [ last ] = av_malloc ( MAX_RUN + 1 ) ;\n memcpy ( rl -> index_run [ last ] , index_run , MAX_RUN + 1 ) ;\n }\n }"}
{"idx": 11580, "target": 0, "func": "static int msmpeg4v2_decode_motion ( MpegEncContext * s , int pred , int f_code ) {\n int code , val , sign , shift ;\n code = get_vlc2 ( & s -> gb , v2_mv_vlc . table , V2_MV_VLC_BITS , 2 ) ;\n av_dlog ( s , \"MV code %d at %d %d pred: %d\\n\" , code , s -> mb_x , s -> mb_y , pred ) ;\n if ( code < 0 ) return 0xffff ;\n if ( code == 0 ) return pred ;\n sign = get_bits1 ( & s -> gb ) ;\n shift = f_code - 1 ;\n val = code ;\n if ( shift ) {\n val = ( val - 1 ) << shift ;\n val |= get_bits ( & s -> gb , shift ) ;\n val ++ ;\n }\n if ( sign ) val = - val ;\n val += pred ;\n if ( val <= - 64 ) val += 64 ;\n else if ( val >= 64 ) val -= 64 ;\n return val ;\n }"}
{"idx": 11581, "target": 0, "func": "void vp9_new_framerate ( VP9_COMP * cpi , double framerate ) {\n cpi -> framerate = framerate < 0.1 ? 30 : framerate ;\n vp9_rc_update_framerate ( cpi ) ;\n }"}
{"idx": 11582, "target": 0, "func": "static void pdf_run_G ( fz_context * ctx , pdf_processor * proc , float g ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pr -> dev -> flags &= ~ FZ_DEVFLAG_STROKECOLOR_UNDEFINED ;\n pdf_set_colorspace ( ctx , pr , PDF_STROKE , fz_device_gray ( ctx ) ) ;\n pdf_set_color ( ctx , pr , PDF_STROKE , & g ) ;\n }"}
{"idx": 11583, "target": 0, "func": "static void check_matching ( void ) {\n gpg_error_t err ;\n gcry_sexp_t key ;\n const char * name ;\n unsigned int nbits ;\n err = gcry_sexp_new ( & key , sample_key_1 , 0 , 1 ) ;\n if ( err ) die ( \"parsing s-expression string failed: %s\\n\" , gpg_strerror ( err ) ) ;\n name = gcry_pk_get_curve ( key , 0 , & nbits ) ;\n if ( ! name ) fail ( \"curve name not found for sample_key_1\\n\" ) ;\n else if ( strcmp ( name , sample_key_1_curve ) ) fail ( \"expected curve name %s but got %s for sample_key_1\\n\" , sample_key_1_curve , name ) ;\n else if ( nbits != sample_key_1_nbits ) fail ( \"expected curve size %u but got %u for sample_key_1\\n\" , sample_key_1_nbits , nbits ) ;\n gcry_sexp_release ( key ) ;\n err = gcry_sexp_new ( & key , sample_key_2 , 0 , 1 ) ;\n if ( err ) die ( \"parsing s-expression string failed: %s\\n\" , gpg_strerror ( err ) ) ;\n name = gcry_pk_get_curve ( key , 0 , & nbits ) ;\n if ( ! name ) fail ( \"curve name not found for sample_key_2\\n\" ) ;\n else if ( strcmp ( name , sample_key_2_curve ) ) fail ( \"expected curve name %s but got %s for sample_key_2\\n\" , sample_key_2_curve , name ) ;\n else if ( nbits != sample_key_2_nbits ) fail ( \"expected curve size %u but got %u for sample_key_2\\n\" , sample_key_2_nbits , nbits ) ;\n gcry_sexp_release ( key ) ;\n }"}
{"idx": 11584, "target": 0, "func": "static int dissect_h225_CallModel ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_CallModel , CallModel_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 11585, "target": 0, "func": "static void rds_recv_incoming_exthdrs ( struct rds_incoming * inc , struct rds_sock * rs ) {\n struct rds_header * hdr = & inc -> i_hdr ;\n unsigned int pos = 0 , type , len ;\n union {\n struct rds_ext_header_version version ;\n struct rds_ext_header_rdma rdma ;\n struct rds_ext_header_rdma_dest rdma_dest ;\n }\n buffer ;\n while ( 1 ) {\n len = sizeof ( buffer ) ;\n type = rds_message_next_extension ( hdr , & pos , & buffer , & len ) ;\n if ( type == RDS_EXTHDR_NONE ) break ;\n switch ( type ) {\n case RDS_EXTHDR_RDMA : rds_rdma_unuse ( rs , be32_to_cpu ( buffer . rdma . h_rdma_rkey ) , 0 ) ;\n break ;\n case RDS_EXTHDR_RDMA_DEST : inc -> i_rdma_cookie = rds_rdma_make_cookie ( be32_to_cpu ( buffer . rdma_dest . h_rdma_rkey ) , be32_to_cpu ( buffer . rdma_dest . h_rdma_offset ) ) ;\n break ;\n }\n }\n }"}
{"idx": 11586, "target": 0, "func": "static int vvalue_tvb_lpwstr ( tvbuff_t * tvb , int offset , void * val ) {\n struct data_str * str = ( struct data_str * ) val ;\n str -> len = tvb_get_letohl ( tvb , offset ) ;\n return 4 + vvalue_tvb_lpwstr_len ( tvb , offset + 4 , 0 , val ) ;\n }"}
{"idx": 11587, "target": 0, "func": "static gint get_record ( k12_t * file_data , FILE_T fh , gint64 file_offset , gboolean is_random , int * err , gchar * * err_info ) {\n guint8 * buffer = is_random ? file_data -> rand_read_buff : file_data -> seq_read_buff ;\n guint buffer_len = is_random ? file_data -> rand_read_buff_len : file_data -> seq_read_buff_len ;\n guint total_read = 0 ;\n guint left ;\n guint8 * writep ;\n # ifdef DEBUG_K12 guint actual_len ;\n # endif guint junky_offset = 8192 - ( gint ) ( ( file_offset - K12_FILE_HDR_LEN ) % 8192 ) ;\n K12_DBG ( 6 , ( \"get_record: ENTER: junky_offset=%\" G_GINT64_MODIFIER \"d, file_offset=%\" G_GINT64_MODIFIER \"d\" , junky_offset , file_offset ) ) ;\n if ( buffer == NULL ) {\n buffer = ( guint8 * ) g_malloc ( 8192 ) ;\n buffer_len = 8192 ;\n if ( is_random ) {\n file_data -> rand_read_buff = buffer ;\n file_data -> rand_read_buff_len = buffer_len ;\n }\n else {\n file_data -> seq_read_buff = buffer ;\n file_data -> seq_read_buff_len = buffer_len ;\n }\n }\n if ( junky_offset == 8192 ) {\n if ( ! file_skip ( fh , K12_FILE_BLOB_LEN , err ) ) return - 1 ;\n total_read += K12_FILE_BLOB_LEN ;\n }\n if ( ! wtap_read_bytes ( fh , buffer , 4 , err , err_info ) ) return - 1 ;\n total_read += 4 ;\n left = pntoh32 ( buffer + K12_RECORD_LEN ) ;\n # ifdef DEBUG_K12 actual_len = left ;\n # endif junky_offset -= 4 ;\n K12_DBG ( 5 , ( \"get_record: GET length=%u\" , left ) ) ;\n if ( left < 8 ) {\n * err = WTAP_ERR_BAD_FILE ;\n * err_info = g_strdup_printf ( \"k12: Record length %u is less than 8 bytes long\" , left ) ;\n return - 1 ;\n }\n if ( left > WTAP_MAX_PACKET_SIZE ) {\n * err = WTAP_ERR_BAD_FILE ;\n * err_info = g_strdup_printf ( \"k12: Record length %u is greater than the maximum %u\" , left , WTAP_MAX_PACKET_SIZE ) ;\n return - 1 ;\n }\n while ( left > buffer_len ) {\n buffer = ( guint8 * ) g_realloc ( buffer , buffer_len *= 2 ) ;\n if ( is_random ) {\n file_data -> rand_read_buff = buffer ;\n file_data -> rand_read_buff_len = buffer_len ;\n }\n else {\n file_data -> seq_read_buff = buffer ;\n file_data -> seq_read_buff_len = buffer_len ;\n }\n }\n writep = buffer + 4 ;\n left -= 4 ;\n do {\n K12_DBG ( 6 , ( \"get_record: looping left=%d junky_offset=%\" G_GINT64_MODIFIER \"d\" , left , junky_offset ) ) ;\n if ( junky_offset > left ) {\n if ( ! wtap_read_bytes ( fh , writep , left , err , err_info ) ) return - 1 ;\n total_read += left ;\n break ;\n }\n else {\n if ( ! wtap_read_bytes ( fh , writep , junky_offset , err , err_info ) ) return - 1 ;\n total_read += junky_offset ;\n writep += junky_offset ;\n if ( ! file_skip ( fh , K12_FILE_BLOB_LEN , err ) ) return - 1 ;\n total_read += K12_FILE_BLOB_LEN ;\n left -= junky_offset ;\n junky_offset = 8192 ;\n }\n }\n while ( left ) ;\n K12_HEX_ASCII_DUMP ( 5 , file_offset , \"GOT record\" , buffer , actual_len ) ;\n return total_read ;\n }"}
{"idx": 11588, "target": 0, "func": "kadm5_ret_t kadm5_get_strings ( void * server_handle , krb5_principal principal , krb5_string_attr * * strings_out , int * count_out ) {\n kadm5_server_handle_t handle = server_handle ;\n kadm5_ret_t ret ;\n krb5_db_entry * kdb = NULL ;\n * strings_out = NULL ;\n * count_out = 0 ;\n CHECK_HANDLE ( server_handle ) ;\n if ( principal == NULL ) return EINVAL ;\n ret = kdb_get_entry ( handle , principal , & kdb , NULL ) ;\n if ( ret ) return ret ;\n ret = krb5_dbe_get_strings ( handle -> context , kdb , strings_out , count_out ) ;\n kdb_free_entry ( handle , kdb , NULL ) ;\n return ret ;\n }"}
{"idx": 11589, "target": 0, "func": "static void timerblock_write ( void * opaque , hwaddr addr , uint64_t value , unsigned size ) {\n TimerBlock * tb = ( TimerBlock * ) opaque ;\n int64_t old ;\n switch ( addr ) {\n case 0 : tb -> load = value ;\n case 4 : if ( ( tb -> control & 1 ) && tb -> count ) {\n qemu_del_timer ( tb -> timer ) ;\n }\n tb -> count = value ;\n if ( tb -> control & 1 ) {\n timerblock_reload ( tb , 1 ) ;\n }\n break ;\n case 8 : old = tb -> control ;\n tb -> control = value ;\n if ( ( ( old & 1 ) == 0 ) && ( value & 1 ) ) {\n if ( tb -> count == 0 && ( tb -> control & 2 ) ) {\n tb -> count = tb -> load ;\n }\n timerblock_reload ( tb , 1 ) ;\n }\n break ;\n case 12 : tb -> status &= ~ value ;\n timerblock_update_irq ( tb ) ;\n break ;\n }\n }"}
{"idx": 11590, "target": 0, "func": "int jas_stream_display ( jas_stream_t * stream , FILE * fp , int n ) {\n unsigned char buf [ 16 ] ;\n int i ;\n int j ;\n int m ;\n int c ;\n int display ;\n int cnt ;\n cnt = n - ( n % 16 ) ;\n display = 1 ;\n for ( i = 0 ;\n i < n ;\n i += 16 ) {\n if ( n > 16 && i > 0 ) {\n display = ( i >= cnt ) ? 1 : 0 ;\n }\n if ( display ) {\n fprintf ( fp , \"%08x:\" , i ) ;\n }\n m = JAS_MIN ( n - i , 16 ) ;\n for ( j = 0 ;\n j < m ;\n ++ j ) {\n if ( ( c = jas_stream_getc ( stream ) ) == EOF ) {\n abort ( ) ;\n return - 1 ;\n }\n buf [ j ] = c ;\n }\n if ( display ) {\n for ( j = 0 ;\n j < m ;\n ++ j ) {\n fprintf ( fp , \" %02x\" , buf [ j ] ) ;\n }\n fputc ( ' ' , fp ) ;\n for ( ;\n j < 16 ;\n ++ j ) {\n fprintf ( fp , \" \" ) ;\n }\n for ( j = 0 ;\n j < m ;\n ++ j ) {\n if ( isprint ( buf [ j ] ) ) {\n fputc ( buf [ j ] , fp ) ;\n }\n else {\n fputc ( ' ' , fp ) ;\n }\n }\n fprintf ( fp , \"\\n\" ) ;\n }\n }\n return 0 ;\n }"}
{"idx": 11591, "target": 0, "func": "static void add_candidate_name_for_pmid_resolution ( packet_info * pinfo , tvbuff_t * tvb , int offset , int name_len ) {\n pcp_conv_info_t * pcp_conv_info ;\n guint8 * name ;\n pcp_conv_info = get_pcp_conversation_info ( pinfo ) ;\n if ( is_unvisited_pmns_names_frame ( pinfo ) ) {\n name = tvb_get_string_enc ( wmem_file_scope ( ) , tvb , offset , name_len , ENC_ASCII ) ;\n wmem_array_append_one ( pcp_conv_info -> pmid_name_candidates , name ) ;\n }\n }"}
{"idx": 11592, "target": 0, "func": "static int selinux_socket_getpeersec_dgram ( struct socket * sock , struct sk_buff * skb , u32 * secid ) {\n u32 peer_secid = SECSID_NULL ;\n u16 family ;\n struct inode_security_struct * isec ;\n if ( skb && skb -> protocol == htons ( ETH_P_IP ) ) family = PF_INET ;\n else if ( skb && skb -> protocol == htons ( ETH_P_IPV6 ) ) family = PF_INET6 ;\n else if ( sock ) family = sock -> sk -> sk_family ;\n else goto out ;\n if ( sock && family == PF_UNIX ) {\n isec = inode_security_novalidate ( SOCK_INODE ( sock ) ) ;\n peer_secid = isec -> sid ;\n }\n else if ( skb ) selinux_skb_peerlbl_sid ( skb , family , & peer_secid ) ;\n out : * secid = peer_secid ;\n if ( peer_secid == SECSID_NULL ) return - EINVAL ;\n return 0 ;\n }"}
{"idx": 11593, "target": 1, "func": "static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 11594, "target": 0, "func": "static int jbig2_decode_get_run ( Jbig2MmrCtx * mmr , const mmr_table_node * table , int initial_bits ) {\n int result = 0 ;\n int val ;\n do {\n val = jbig2_decode_get_code ( mmr , table , initial_bits ) ;\n result += val ;\n }\n while ( val >= 64 ) ;\n return result ;\n }"}
{"idx": 11595, "target": 0, "func": "static inline void iir_filter ( int16_t * fir_coef , int16_t * iir_coef , int16_t * src , int * dest ) {\n int m , n ;\n for ( m = 0 ;\n m < SUBFRAME_LEN ;\n m ++ ) {\n int64_t filter = 0 ;\n for ( n = 1 ;\n n <= LPC_ORDER ;\n n ++ ) {\n filter -= fir_coef [ n - 1 ] * src [ m - n ] - iir_coef [ n - 1 ] * ( dest [ m - n ] >> 16 ) ;\n }\n dest [ m ] = av_clipl_int32 ( ( src [ m ] << 16 ) + ( filter << 3 ) + ( 1 << 15 ) ) ;\n }\n }"}
{"idx": 11596, "target": 0, "func": "static void q931_cleanup ( void ) {\n reassembly_table_destroy ( & q931_reassembly_table ) ;\n }"}
{"idx": 11597, "target": 0, "func": "static const unsigned char * sha1_access ( size_t pos , void * table ) {\n struct pack_idx_entry * * index = table ;\n return index [ pos ] -> sha1 ;\n }"}
{"idx": 11598, "target": 0, "func": "static void qio_channel_websock_handshake_process ( QIOChannelWebsock * ioc , char * buffer , Error * * errp ) {\n QIOChannelWebsockHTTPHeader hdrs [ 32 ] ;\n size_t nhdrs = G_N_ELEMENTS ( hdrs ) ;\n const char * protocols = NULL , * version = NULL , * key = NULL , * host = NULL , * connection = NULL , * upgrade = NULL ;\n nhdrs = qio_channel_websock_extract_headers ( ioc , buffer , hdrs , nhdrs , errp ) ;\n if ( ! nhdrs ) {\n return ;\n }\n protocols = qio_channel_websock_find_header ( hdrs , nhdrs , QIO_CHANNEL_WEBSOCK_HEADER_PROTOCOL ) ;\n if ( ! protocols ) {\n error_setg ( errp , \"Missing websocket protocol header data\" ) ;\n goto bad_request ;\n }\n version = qio_channel_websock_find_header ( hdrs , nhdrs , QIO_CHANNEL_WEBSOCK_HEADER_VERSION ) ;\n if ( ! version ) {\n error_setg ( errp , \"Missing websocket version header data\" ) ;\n goto bad_request ;\n }\n key = qio_channel_websock_find_header ( hdrs , nhdrs , QIO_CHANNEL_WEBSOCK_HEADER_KEY ) ;\n if ( ! key ) {\n error_setg ( errp , \"Missing websocket key header data\" ) ;\n goto bad_request ;\n }\n host = qio_channel_websock_find_header ( hdrs , nhdrs , QIO_CHANNEL_WEBSOCK_HEADER_HOST ) ;\n if ( ! host ) {\n error_setg ( errp , \"Missing websocket host header data\" ) ;\n goto bad_request ;\n }\n connection = qio_channel_websock_find_header ( hdrs , nhdrs , QIO_CHANNEL_WEBSOCK_HEADER_CONNECTION ) ;\n if ( ! connection ) {\n error_setg ( errp , \"Missing websocket connection header data\" ) ;\n goto bad_request ;\n }\n upgrade = qio_channel_websock_find_header ( hdrs , nhdrs , QIO_CHANNEL_WEBSOCK_HEADER_UPGRADE ) ;\n if ( ! upgrade ) {\n error_setg ( errp , \"Missing websocket upgrade header data\" ) ;\n goto bad_request ;\n }\n if ( ! g_strrstr ( protocols , QIO_CHANNEL_WEBSOCK_PROTOCOL_BINARY ) ) {\n error_setg ( errp , \"No '%s' protocol is supported by client '%s'\" , QIO_CHANNEL_WEBSOCK_PROTOCOL_BINARY , protocols ) ;\n goto bad_request ;\n }\n if ( ! g_str_equal ( version , QIO_CHANNEL_WEBSOCK_SUPPORTED_VERSION ) ) {\n error_setg ( errp , \"Version '%s' is not supported by client '%s'\" , QIO_CHANNEL_WEBSOCK_SUPPORTED_VERSION , version ) ;\n goto bad_request ;\n }\n if ( strlen ( key ) != QIO_CHANNEL_WEBSOCK_CLIENT_KEY_LEN ) {\n error_setg ( errp , \"Key length '%zu' was not as expected '%d'\" , strlen ( key ) , QIO_CHANNEL_WEBSOCK_CLIENT_KEY_LEN ) ;\n goto bad_request ;\n }\n if ( strcasecmp ( connection , QIO_CHANNEL_WEBSOCK_CONNECTION_UPGRADE ) != 0 ) {\n error_setg ( errp , \"No connection upgrade requested '%s'\" , connection ) ;\n goto bad_request ;\n }\n if ( strcasecmp ( upgrade , QIO_CHANNEL_WEBSOCK_UPGRADE_WEBSOCKET ) != 0 ) {\n error_setg ( errp , \"Incorrect upgrade method '%s'\" , upgrade ) ;\n goto bad_request ;\n }\n qio_channel_websock_handshake_send_res_ok ( ioc , key , errp ) ;\n return ;\n bad_request : qio_channel_websock_handshake_send_res_err ( ioc , QIO_CHANNEL_WEBSOCK_HANDSHAKE_RES_BAD_REQUEST ) ;\n }"}
{"idx": 11599, "target": 0, "func": "static void libschroedinger_flush ( AVCodecContext * avctx ) {\n SchroDecoderParams * p_schro_params = avctx -> priv_data ;\n ff_schro_queue_free ( & p_schro_params -> dec_frame_queue , libschroedinger_decode_frame_free ) ;\n ff_schro_queue_init ( & p_schro_params -> dec_frame_queue ) ;\n schro_decoder_reset ( p_schro_params -> decoder ) ;\n p_schro_params -> eos_pulled = 0 ;\n p_schro_params -> eos_signalled = 0 ;\n }"}
{"idx": 11600, "target": 0, "func": "static int dissect_rsl_ie_ho_ref ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_tree * ie_tree ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_HO_REF ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 2 , ett_ie_ho_ref , NULL , \"Handover reference IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_ho_ref , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n return offset ;\n }"}
{"idx": 11601, "target": 0, "func": "void ff_cavs_load_intra_pred_luma ( AVSContext * h , uint8_t * top , uint8_t * * left , int block ) {\n int i ;\n switch ( block ) {\n case 0 : * left = h -> left_border_y ;\n h -> left_border_y [ 0 ] = h -> left_border_y [ 1 ] ;\n memset ( & h -> left_border_y [ 17 ] , h -> left_border_y [ 16 ] , 9 ) ;\n memcpy ( & top [ 1 ] , & h -> top_border_y [ h -> mbx * 16 ] , 16 ) ;\n top [ 17 ] = top [ 16 ] ;\n top [ 0 ] = top [ 1 ] ;\n if ( ( h -> flags & A_AVAIL ) && ( h -> flags & B_AVAIL ) ) h -> left_border_y [ 0 ] = top [ 0 ] = h -> topleft_border_y ;\n break ;\n case 1 : * left = h -> intern_border_y ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) h -> intern_border_y [ i + 1 ] = * ( h -> cy + 7 + i * h -> l_stride ) ;\n memset ( & h -> intern_border_y [ 9 ] , h -> intern_border_y [ 8 ] , 9 ) ;\n h -> intern_border_y [ 0 ] = h -> intern_border_y [ 1 ] ;\n memcpy ( & top [ 1 ] , & h -> top_border_y [ h -> mbx * 16 + 8 ] , 8 ) ;\n if ( h -> flags & C_AVAIL ) memcpy ( & top [ 9 ] , & h -> top_border_y [ ( h -> mbx + 1 ) * 16 ] , 8 ) ;\n else memset ( & top [ 9 ] , top [ 8 ] , 9 ) ;\n top [ 17 ] = top [ 16 ] ;\n top [ 0 ] = top [ 1 ] ;\n if ( h -> flags & B_AVAIL ) h -> intern_border_y [ 0 ] = top [ 0 ] = h -> top_border_y [ h -> mbx * 16 + 7 ] ;\n break ;\n case 2 : * left = & h -> left_border_y [ 8 ] ;\n memcpy ( & top [ 1 ] , h -> cy + 7 * h -> l_stride , 16 ) ;\n top [ 17 ] = top [ 16 ] ;\n top [ 0 ] = top [ 1 ] ;\n if ( h -> flags & A_AVAIL ) top [ 0 ] = h -> left_border_y [ 8 ] ;\n break ;\n case 3 : * left = & h -> intern_border_y [ 8 ] ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) h -> intern_border_y [ i + 9 ] = * ( h -> cy + 7 + ( i + 8 ) * h -> l_stride ) ;\n memset ( & h -> intern_border_y [ 17 ] , h -> intern_border_y [ 16 ] , 9 ) ;\n memcpy ( & top [ 0 ] , h -> cy + 7 + 7 * h -> l_stride , 9 ) ;\n memset ( & top [ 9 ] , top [ 8 ] , 9 ) ;\n break ;\n }\n }"}
{"idx": 11602, "target": 0, "func": "static int cgfs_nrtasks ( void * hdata ) {\n struct cgfs_data * d = hdata ;\n struct cgroup_process_info * info ;\n struct cgroup_mount_point * mp = NULL ;\n char * abs_path = NULL ;\n int ret ;\n if ( ! d ) {\n errno = ENOENT ;\n return - 1 ;\n }\n info = d -> info ;\n if ( ! info ) {\n errno = ENOENT ;\n return - 1 ;\n }\n if ( info -> designated_mount_point ) {\n mp = info -> designated_mount_point ;\n }\n else {\n mp = lxc_cgroup_find_mount_point ( info -> hierarchy , info -> cgroup_path , false ) ;\n if ( ! mp ) return - 1 ;\n }\n abs_path = cgroup_to_absolute_path ( mp , info -> cgroup_path , NULL ) ;\n if ( ! abs_path ) return - 1 ;\n ret = cgroup_recursive_task_count ( abs_path ) ;\n free ( abs_path ) ;\n return ret ;\n }"}
{"idx": 11603, "target": 0, "func": "int dissect_h225_ScreeningIndicator ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_enumerated ( tvb , offset , actx , tree , hf_index , 4 , NULL , TRUE , 0 , NULL ) ;\n return offset ;\n }"}
{"idx": 11604, "target": 1, "func": "int decodenetnum ( const char * num , sockaddr_u * netnum ) {\n struct addrinfo hints , * ai = NULL ;\n int err ;\n u_short port ;\n const char * cp ;\n const char * port_str ;\n char * pp ;\n char * np ;\n char name [ 80 ] ;\n REQUIRE ( num != NULL ) ;\n REQUIRE ( strlen ( num ) < sizeof ( name ) ) ;\n port_str = NULL ;\n if ( '[' != num [ 0 ] ) {\n pp = strchr ( num , ':' ) ;\n if ( NULL == pp ) cp = num ;\n else if ( NULL != strchr ( pp + 1 , ':' ) ) cp = num ;\n else {\n strlcpy ( name , num , sizeof ( name ) ) ;\n cp = name ;\n pp = strchr ( cp , ':' ) ;\n * pp = '\\0' ;\n port_str = pp + 1 ;\n }\n }\n else {\n cp = num + 1 ;\n np = name ;\n while ( * cp && ']' != * cp ) * np ++ = * cp ++ ;\n * np = 0 ;\n if ( ']' == cp [ 0 ] && ':' == cp [ 1 ] && '\\0' != cp [ 2 ] ) port_str = & cp [ 2 ] ;\n cp = name ;\n }\n ZERO ( hints ) ;\n hints . ai_flags = Z_AI_NUMERICHOST ;\n err = getaddrinfo ( cp , \"ntp\" , & hints , & ai ) ;\n if ( err != 0 ) return 0 ;\n INSIST ( ai -> ai_addrlen <= sizeof ( * netnum ) ) ;\n ZERO ( * netnum ) ;\n memcpy ( netnum , ai -> ai_addr , ai -> ai_addrlen ) ;\n freeaddrinfo ( ai ) ;\n if ( NULL == port_str || 1 != sscanf ( port_str , \"%hu\" , & port ) ) port = NTP_PORT ;\n SET_PORT ( netnum , port ) ;\n return 1 ;\n }"}
{"idx": 11605, "target": 1, "func": "static void exsltDynEvaluateFunction ( xmlXPathParserContextPtr ctxt , int nargs ) {\n xmlChar * str = NULL ;\n xmlXPathObjectPtr ret = NULL ;\n if ( ctxt == NULL ) return ;\n if ( nargs != 1 ) {\n xsltPrintErrorContext ( xsltXPathGetTransformContext ( ctxt ) , NULL , NULL ) ;\n xsltGenericError ( xsltGenericErrorContext , \"dyn:evalute() : invalid number of args %d\\n\" , nargs ) ;\n ctxt -> error = XPATH_INVALID_ARITY ;\n return ;\n }\n str = xmlXPathPopString ( ctxt ) ;\n if ( ! str || ! xmlStrlen ( str ) ) {\n if ( str ) xmlFree ( str ) ;\n valuePush ( ctxt , xmlXPathNewNodeSet ( NULL ) ) ;\n return ;\n }\n ret = xmlXPathEval ( str , ctxt -> context ) ;\n if ( ret ) valuePush ( ctxt , ret ) ;\n else {\n xsltGenericError ( xsltGenericErrorContext , \"dyn:evaluate() : unable to evaluate expression '%s'\\n\" , str ) ;\n valuePush ( ctxt , xmlXPathNewNodeSet ( NULL ) ) ;\n }\n xmlFree ( str ) ;\n return ;\n }"}
{"idx": 11606, "target": 0, "func": "static void alloc_objects ( unsigned int cnt ) {\n struct object_entry_pool * b ;\n b = xmalloc ( sizeof ( struct object_entry_pool ) + cnt * sizeof ( struct object_entry ) ) ;\n b -> next_pool = blocks ;\n b -> next_free = b -> entries ;\n b -> end = b -> entries + cnt ;\n blocks = b ;\n alloc_count += cnt ;\n }"}
{"idx": 11607, "target": 0, "func": "static MAIN_WINDOW_REC * mainwindows_find_upper ( MAIN_WINDOW_REC * window ) {\n int first_line ;\n MAIN_WINDOW_REC * best ;\n GSList * tmp ;\n if ( window != NULL ) first_line = window -> first_line ;\n else first_line = screen_height ;\n best = NULL ;\n for ( tmp = mainwindows ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n MAIN_WINDOW_REC * rec = tmp -> data ;\n if ( rec -> last_line < first_line && ( best == NULL || rec -> last_line > best -> last_line ) ) best = rec ;\n }\n return best ;\n }"}
{"idx": 11608, "target": 0, "func": "proto_item * parseFloat ( proto_tree * tree , tvbuff_t * tvb , packet_info * pinfo _U_ , gint * pOffset , int hfIndex ) {\n proto_item * item = proto_tree_add_item ( tree , hfIndex , tvb , * pOffset , ( int ) sizeof ( gfloat ) , ENC_LITTLE_ENDIAN ) ;\n * pOffset += ( int ) sizeof ( gfloat ) ;\n return item ;\n }"}
{"idx": 11609, "target": 0, "func": "static int dissect_h225_SEQUENCE_OF_RasUsageSpecification ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_SEQUENCE_OF_RasUsageSpecification , SEQUENCE_OF_RasUsageSpecification_sequence_of ) ;\n return offset ;\n }"}
{"idx": 11610, "target": 0, "func": "static int32_t ultag_getVariantsSize ( const ULanguageTag * langtag ) {\n int32_t size = 0 ;\n VariantListEntry * cur = langtag -> variants ;\n while ( TRUE ) {\n if ( cur == NULL ) {\n break ;\n }\n size ++ ;\n cur = cur -> next ;\n }\n return size ;\n }"}
{"idx": 11611, "target": 0, "func": "static void prplcb_conn_progress ( PurpleConnection * gc , const char * text , size_t step , size_t step_count ) {\n struct im_connection * ic = purple_ic_by_gc ( gc ) ;\n imcb_log ( ic , \"%s\" , text ) ;\n }"}
{"idx": 11612, "target": 0, "func": "static gint round_to_2byte ( gint current_offset , gint starting_offset ) {\n gint length = current_offset - starting_offset ;\n return starting_offset + ROUND_TO_2BYTE ( length ) ;\n }"}
{"idx": 11613, "target": 1, "func": "static xsltAttrVTPtr xsltSetAttrVTsegment ( xsltAttrVTPtr avt , void * val ) {\n if ( avt -> nb_seg >= avt -> max_seg ) {\n avt = ( xsltAttrVTPtr ) xmlRealloc ( avt , sizeof ( xsltAttrVT ) + avt -> max_seg * sizeof ( void * ) ) ;\n if ( avt == NULL ) {\n return NULL ;\n }\n memset ( & avt -> segments [ avt -> nb_seg ] , 0 , MAX_AVT_SEG * sizeof ( void * ) ) ;\n avt -> max_seg += MAX_AVT_SEG ;\n }\n avt -> segments [ avt -> nb_seg ++ ] = val ;\n return avt ;\n }"}
{"idx": 11614, "target": 0, "func": "static void ImportAlphaQuantum ( const Image * image , QuantumInfo * quantum_info , const MagickSizeType number_pixels , const unsigned char * magick_restrict p , Quantum * magick_restrict q , ExceptionInfo * exception ) {\n QuantumAny range ;\n register ssize_t x ;\n unsigned int pixel ;\n assert ( image != ( Image * ) NULL ) ;\n assert ( image -> signature == MagickCoreSignature ) ;\n switch ( quantum_info -> depth ) {\n case 8 : {\n unsigned char pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelAlpha ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 16 : {\n unsigned short pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelAlpha ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelAlpha ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 32 : {\n unsigned int pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n float pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelAlpha ( image , ClampToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelAlpha ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 64 : {\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n double pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelAlpha ( image , ClampToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n default : {\n range = GetQuantumRange ( quantum_info -> depth ) ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelAlpha ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n }"}
{"idx": 11615, "target": 0, "func": "static int dissect_rsl_ie_ch_no ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_tree * ie_tree ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_CH_NO ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 2 , ett_ie_ch_no , NULL , \"Channel number IE \" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_ch_no_Cbits , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ch_no_TN , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n return offset ;\n }"}
{"idx": 11616, "target": 0, "func": "static int isoent_make_path_table ( struct archive_write * a ) {\n struct iso9660 * iso9660 = a -> format_data ;\n int depth , r ;\n int dir_number ;\n if ( iso9660 -> dircnt_max >= MAX_DEPTH && ( ! iso9660 -> opt . limit_depth || iso9660 -> opt . iso_level == 4 ) ) r = isoent_alloc_path_table ( a , & ( iso9660 -> primary ) , iso9660 -> dircnt_max + 1 ) ;\n else r = isoent_alloc_path_table ( a , & ( iso9660 -> primary ) , MAX_DEPTH ) ;\n if ( r < 0 ) return ( r ) ;\n if ( iso9660 -> opt . joliet ) {\n r = isoent_alloc_path_table ( a , & ( iso9660 -> joliet ) , iso9660 -> dircnt_max + 1 ) ;\n if ( r < 0 ) return ( r ) ;\n }\n isoent_collect_dirs ( & ( iso9660 -> primary ) , NULL , 0 ) ;\n if ( iso9660 -> opt . joliet ) isoent_collect_dirs ( & ( iso9660 -> joliet ) , NULL , 0 ) ;\n if ( iso9660 -> opt . rr ) {\n r = isoent_rr_move ( a ) ;\n if ( r < 0 ) return ( r ) ;\n }\n isofile_connect_hardlink_files ( iso9660 ) ;\n r = isoent_traverse_tree ( a , & ( iso9660 -> primary ) ) ;\n if ( r < 0 ) return ( r ) ;\n if ( iso9660 -> opt . joliet ) {\n r = isoent_traverse_tree ( a , & ( iso9660 -> joliet ) ) ;\n if ( r < 0 ) return ( r ) ;\n }\n dir_number = 1 ;\n for ( depth = 0 ;\n depth < iso9660 -> primary . max_depth ;\n depth ++ ) {\n r = isoent_make_path_table_2 ( a , & ( iso9660 -> primary ) , depth , & dir_number ) ;\n if ( r < 0 ) return ( r ) ;\n }\n if ( iso9660 -> opt . joliet ) {\n dir_number = 1 ;\n for ( depth = 0 ;\n depth < iso9660 -> joliet . max_depth ;\n depth ++ ) {\n r = isoent_make_path_table_2 ( a , & ( iso9660 -> joliet ) , depth , & dir_number ) ;\n if ( r < 0 ) return ( r ) ;\n }\n }\n if ( iso9660 -> opt . limit_dirs && dir_number > 0xffff ) {\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"Too many directories(%d) over 65535.\" , dir_number ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n calculate_path_table_size ( & ( iso9660 -> primary ) ) ;\n if ( iso9660 -> opt . joliet ) calculate_path_table_size ( & ( iso9660 -> joliet ) ) ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 11617, "target": 0, "func": "static inline bool auth_principal_needs_rotating_keys ( EntityName & name ) {\n uint32_t ty ( name . get_type ( ) ) ;\n return ( ( ty == CEPH_ENTITY_TYPE_OSD ) || ( ty == CEPH_ENTITY_TYPE_MDS ) || ( ty == CEPH_ENTITY_TYPE_MGR ) ) ;\n }"}
{"idx": 11618, "target": 0, "func": "void free_replace_column ( ) {\n uint i ;\n for ( i = 0 ;\n i < max_replace_column ;\n i ++ ) {\n if ( replace_column [ i ] ) {\n my_free ( replace_column [ i ] ) ;\n replace_column [ i ] = 0 ;\n }\n }\n max_replace_column = 0 ;\n }"}
{"idx": 11619, "target": 0, "func": "static int decode_subframe ( WmallDecodeCtx * s ) {\n int offset = s -> samples_per_frame ;\n int subframe_len = s -> samples_per_frame ;\n int total_samples = s -> samples_per_frame * s -> num_channels ;\n int i , j , rawpcm_tile , padding_zeroes , res ;\n s -> subframe_offset = get_bits_count ( & s -> gb ) ;\n for ( i = 0 ;\n i < s -> num_channels ;\n i ++ ) {\n if ( offset > s -> channel [ i ] . decoded_samples ) {\n offset = s -> channel [ i ] . decoded_samples ;\n subframe_len = s -> channel [ i ] . subframe_len [ s -> channel [ i ] . cur_subframe ] ;\n }\n }\n s -> channels_for_cur_subframe = 0 ;\n for ( i = 0 ;\n i < s -> num_channels ;\n i ++ ) {\n const int cur_subframe = s -> channel [ i ] . cur_subframe ;\n total_samples -= s -> channel [ i ] . decoded_samples ;\n if ( offset == s -> channel [ i ] . decoded_samples && subframe_len == s -> channel [ i ] . subframe_len [ cur_subframe ] ) {\n total_samples -= s -> channel [ i ] . subframe_len [ cur_subframe ] ;\n s -> channel [ i ] . decoded_samples += s -> channel [ i ] . subframe_len [ cur_subframe ] ;\n s -> channel_indexes_for_cur_subframe [ s -> channels_for_cur_subframe ] = i ;\n ++ s -> channels_for_cur_subframe ;\n }\n }\n if ( ! total_samples ) s -> parsed_all_subframes = 1 ;\n s -> seekable_tile = get_bits1 ( & s -> gb ) ;\n if ( s -> seekable_tile ) {\n clear_codec_buffers ( s ) ;\n s -> do_arith_coding = get_bits1 ( & s -> gb ) ;\n if ( s -> do_arith_coding ) {\n av_log_missing_feature ( s -> avctx , \"Arithmetic coding\" , 1 ) ;\n return AVERROR_PATCHWELCOME ;\n }\n s -> do_ac_filter = get_bits1 ( & s -> gb ) ;\n s -> do_inter_ch_decorr = get_bits1 ( & s -> gb ) ;\n s -> do_mclms = get_bits1 ( & s -> gb ) ;\n if ( s -> do_ac_filter ) decode_ac_filter ( s ) ;\n if ( s -> do_mclms ) decode_mclms ( s ) ;\n if ( ( res = decode_cdlms ( s ) ) < 0 ) return res ;\n s -> movave_scaling = get_bits ( & s -> gb , 3 ) ;\n s -> quant_stepsize = get_bits ( & s -> gb , 8 ) + 1 ;\n reset_codec ( s ) ;\n }\n else if ( ! s -> cdlms [ 0 ] [ 0 ] . order ) {\n av_log ( s -> avctx , AV_LOG_DEBUG , \"Waiting for seekable tile\\n\" ) ;\n s -> frame . nb_samples = 0 ;\n return - 1 ;\n }\n rawpcm_tile = get_bits1 ( & s -> gb ) ;\n for ( i = 0 ;\n i < s -> num_channels ;\n i ++ ) s -> is_channel_coded [ i ] = 1 ;\n if ( ! rawpcm_tile ) {\n for ( i = 0 ;\n i < s -> num_channels ;\n i ++ ) s -> is_channel_coded [ i ] = get_bits1 ( & s -> gb ) ;\n if ( s -> bV3RTM ) {\n s -> do_lpc = get_bits1 ( & s -> gb ) ;\n if ( s -> do_lpc ) {\n decode_lpc ( s ) ;\n av_log_ask_for_sample ( s -> avctx , \"Inverse LPC filter not \" \"implemented. Expect wrong output.\\n\" ) ;\n }\n }\n else s -> do_lpc = 0 ;\n }\n if ( get_bits1 ( & s -> gb ) ) padding_zeroes = get_bits ( & s -> gb , 5 ) ;\n else padding_zeroes = 0 ;\n if ( rawpcm_tile ) {\n int bits = s -> bits_per_sample - padding_zeroes ;\n if ( bits <= 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Invalid number of padding bits in raw PCM tile\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n av_dlog ( s -> avctx , \"RAWPCM %d bits per sample. \" \"total %d bits, remain=%d\\n\" , bits , bits * s -> num_channels * subframe_len , get_bits_count ( & s -> gb ) ) ;\n for ( i = 0 ;\n i < s -> num_channels ;\n i ++ ) for ( j = 0 ;\n j < subframe_len ;\n j ++ ) s -> channel_coeffs [ i ] [ j ] = get_sbits ( & s -> gb , bits ) ;\n }\n else {\n for ( i = 0 ;\n i < s -> num_channels ;\n i ++ ) if ( s -> is_channel_coded [ i ] ) {\n decode_channel_residues ( s , i , subframe_len ) ;\n if ( s -> seekable_tile ) use_high_update_speed ( s , i ) ;\n else use_normal_update_speed ( s , i ) ;\n revert_cdlms ( s , i , 0 , subframe_len ) ;\n }\n else {\n memset ( s -> channel_residues [ i ] , 0 , sizeof ( * * s -> channel_residues ) * subframe_len ) ;\n }\n }\n if ( s -> do_mclms ) revert_mclms ( s , subframe_len ) ;\n if ( s -> do_inter_ch_decorr ) revert_inter_ch_decorr ( s , subframe_len ) ;\n if ( s -> do_ac_filter ) revert_acfilter ( s , subframe_len ) ;\n if ( s -> quant_stepsize != 1 ) for ( i = 0 ;\n i < s -> num_channels ;\n i ++ ) for ( j = 0 ;\n j < subframe_len ;\n j ++ ) s -> channel_residues [ i ] [ j ] *= s -> quant_stepsize ;\n for ( i = 0 ;\n i < s -> channels_for_cur_subframe ;\n i ++ ) {\n int c = s -> channel_indexes_for_cur_subframe [ i ] ;\n int subframe_len = s -> channel [ c ] . subframe_len [ s -> channel [ c ] . cur_subframe ] ;\n for ( j = 0 ;\n j < subframe_len ;\n j ++ ) {\n if ( s -> bits_per_sample == 16 ) {\n * s -> samples_16 [ c ] ++ = ( int16_t ) s -> channel_residues [ c ] [ j ] << padding_zeroes ;\n }\n else {\n * s -> samples_32 [ c ] ++ = s -> channel_residues [ c ] [ j ] << padding_zeroes ;\n }\n }\n }\n for ( i = 0 ;\n i < s -> channels_for_cur_subframe ;\n i ++ ) {\n int c = s -> channel_indexes_for_cur_subframe [ i ] ;\n if ( s -> channel [ c ] . cur_subframe >= s -> channel [ c ] . num_subframes ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"broken subframe\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n ++ s -> channel [ c ] . cur_subframe ;\n }\n return 0 ;\n }"}
{"idx": 11620, "target": 0, "func": "void proto_reg_handoff_coap ( void ) {\n media_type_dissector_table = find_dissector_table ( \"media_type\" ) ;\n dissector_add_uint_with_preference ( \"udp.port\" , DEFAULT_COAP_PORT , coap_handle ) ;\n dtls_dissector_add ( DEFAULT_COAPS_PORT , coap_handle ) ;\n oscore_handle = find_dissector ( \"oscore\" ) ;\n }"}
{"idx": 11621, "target": 0, "func": "static void e1000e_set_rdt ( E1000ECore * core , int index , uint32_t val ) {\n core -> mac [ index ] = val & 0xffff ;\n trace_e1000e_rx_set_rdt ( e1000e_mq_queue_idx ( RDT0 , index ) , val ) ;\n e1000e_start_recv ( core ) ;\n }"}
{"idx": 11622, "target": 0, "func": "static int qemuMonitorJSONGetMigrationStatusReply ( virJSONValuePtr reply , int * status , unsigned long long * transferred , unsigned long long * remaining , unsigned long long * total ) {\n virJSONValuePtr ret ;\n const char * statusstr ;\n unsigned long long t ;\n if ( ! ( ret = virJSONValueObjectGet ( reply , \"return\" ) ) ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"info migration reply was missing return data\" ) ) ;\n return - 1 ;\n }\n if ( ! ( statusstr = virJSONValueObjectGetString ( ret , \"status\" ) ) ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"info migration reply was missing return status\" ) ) ;\n return - 1 ;\n }\n if ( ( * status = qemuMonitorMigrationStatusTypeFromString ( statusstr ) ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"unexpected migration status in %s\" ) , statusstr ) ;\n return - 1 ;\n }\n if ( * status == QEMU_MONITOR_MIGRATION_STATUS_ACTIVE ) {\n virJSONValuePtr ram = virJSONValueObjectGet ( ret , \"ram\" ) ;\n if ( ! ram ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"migration was active, but no RAM info was set\" ) ) ;\n return - 1 ;\n }\n if ( virJSONValueObjectGetNumberUlong ( ram , \"transferred\" , transferred ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"migration was active, but RAM 'transferred' \" \"data was missing\" ) ) ;\n return - 1 ;\n }\n if ( virJSONValueObjectGetNumberUlong ( ram , \"remaining\" , remaining ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"migration was active, but RAM 'remaining' \" \"data was missing\" ) ) ;\n return - 1 ;\n }\n if ( virJSONValueObjectGetNumberUlong ( ram , \"total\" , total ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"migration was active, but RAM 'total' \" \"data was missing\" ) ) ;\n return - 1 ;\n }\n virJSONValuePtr disk = virJSONValueObjectGet ( ret , \"disk\" ) ;\n if ( ! disk ) {\n return 0 ;\n }\n if ( virJSONValueObjectGetNumberUlong ( disk , \"transferred\" , & t ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"disk migration was active, but 'transferred' \" \"data was missing\" ) ) ;\n return - 1 ;\n }\n * transferred += t ;\n if ( virJSONValueObjectGetNumberUlong ( disk , \"remaining\" , & t ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"disk migration was active, but 'remaining' \" \"data was missing\" ) ) ;\n return - 1 ;\n }\n * remaining += t ;\n if ( virJSONValueObjectGetNumberUlong ( disk , \"total\" , & t ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"disk migration was active, but 'total' \" \"data was missing\" ) ) ;\n return - 1 ;\n }\n * total += t ;\n }\n return 0 ;\n }"}
{"idx": 11623, "target": 0, "func": "void build_output_lut ( struct curveType * trc , uint16_t * * output_gamma_lut , size_t * output_gamma_lut_length ) {\n if ( trc -> type == PARAMETRIC_CURVE_TYPE ) {\n float gamma_table [ 256 ] ;\n uint16_t gamma_table_uint [ 256 ] ;\n uint16_t i ;\n uint16_t * inverted ;\n int inverted_size = 4096 ;\n compute_curve_gamma_table_type_parametric ( gamma_table , trc -> parameter , trc -> count ) ;\n for ( i = 0 ;\n i < 256 ;\n i ++ ) {\n gamma_table_uint [ i ] = ( uint16_t ) ( gamma_table [ i ] * 65535 ) ;\n }\n inverted = invert_lut ( gamma_table_uint , 256 , inverted_size ) ;\n if ( ! inverted ) return ;\n * output_gamma_lut = inverted ;\n * output_gamma_lut_length = inverted_size ;\n }\n else {\n if ( trc -> count == 0 ) {\n * output_gamma_lut = build_linear_table ( 4096 ) ;\n * output_gamma_lut_length = 4096 ;\n }\n else if ( trc -> count == 1 ) {\n float gamma = 1. / u8Fixed8Number_to_float ( trc -> data [ 0 ] ) ;\n * output_gamma_lut = build_pow_table ( gamma , 4096 ) ;\n * output_gamma_lut_length = 4096 ;\n }\n else {\n * output_gamma_lut_length = trc -> count ;\n if ( * output_gamma_lut_length < 256 ) * output_gamma_lut_length = 256 ;\n * output_gamma_lut = invert_lut ( trc -> data , trc -> count , * output_gamma_lut_length ) ;\n }\n }\n }"}
{"idx": 11624, "target": 0, "func": "static const char * cmd_hash_key ( cmd_parms * cmd , void * _dcfg , const char * _p1 , const char * _p2 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n char * p1 = NULL ;\n if ( dcfg == NULL ) return NULL ;\n if ( _p1 == NULL ) return NULL ;\n if ( strcasecmp ( _p1 , \"Rand\" ) == 0 ) {\n p1 = apr_pstrdup ( cmd -> pool , getkey ( cmd -> pool ) ) ;\n dcfg -> crypto_key = p1 ;\n dcfg -> crypto_key_len = strlen ( dcfg -> crypto_key ) ;\n }\n else {\n p1 = apr_pstrdup ( cmd -> pool , _p1 ) ;\n dcfg -> crypto_key = p1 ;\n dcfg -> crypto_key_len = strlen ( p1 ) ;\n }\n if ( _p2 == NULL ) {\n return NULL ;\n }\n else {\n if ( strcasecmp ( _p2 , \"KeyOnly\" ) == 0 ) dcfg -> crypto_key_add = HASH_KEYONLY ;\n else if ( strcasecmp ( _p2 , \"SessionID\" ) == 0 ) dcfg -> crypto_key_add = HASH_SESSIONID ;\n else if ( strcasecmp ( _p2 , \"RemoteIP\" ) == 0 ) dcfg -> crypto_key_add = HASH_REMOTEIP ;\n }\n return NULL ;\n }"}
{"idx": 11625, "target": 0, "func": "static int sql_connect ( char * host , char * database , char * user , char * password , uint silent ) {\n bool message = 0 ;\n uint count = 0 ;\n int error ;\n for ( ;\n ;\n ) {\n if ( ( error = sql_real_connect ( host , database , user , password , wait_flag ) ) >= 0 ) {\n if ( count ) {\n tee_fputs ( \"\\n\" , stderr ) ;\n ( void ) fflush ( stderr ) ;\n }\n return error ;\n }\n if ( ! wait_flag ) return ignore_errors ? - 1 : 1 ;\n if ( ! message && ! silent ) {\n message = 1 ;\n tee_fputs ( \"Waiting\" , stderr ) ;\n ( void ) fflush ( stderr ) ;\n }\n ( void ) sleep ( wait_time ) ;\n if ( ! silent ) {\n putc ( '.' , stderr ) ;\n ( void ) fflush ( stderr ) ;\n count ++ ;\n }\n }\n }"}
{"idx": 11626, "target": 0, "func": "void nautilus_file_operations_copy_move ( const GList * item_uris , GArray * relative_item_points , const char * target_dir , GdkDragAction copy_action , GtkWidget * parent_view , NautilusCopyCallback done_callback , gpointer done_callback_data ) {\n GList * locations ;\n GList * p ;\n GFile * dest , * src_dir ;\n GtkWindow * parent_window ;\n gboolean target_is_mapping ;\n gboolean have_nonmapping_source ;\n dest = NULL ;\n target_is_mapping = FALSE ;\n have_nonmapping_source = FALSE ;\n if ( target_dir ) {\n dest = g_file_new_for_uri ( target_dir ) ;\n if ( g_file_has_uri_scheme ( dest , \"burn\" ) ) {\n target_is_mapping = TRUE ;\n }\n }\n locations = location_list_from_uri_list ( item_uris ) ;\n for ( p = locations ;\n p != NULL ;\n p = p -> next ) {\n if ( ! g_file_has_uri_scheme ( ( GFile * ) p -> data , \"burn\" ) ) {\n have_nonmapping_source = TRUE ;\n }\n }\n if ( target_is_mapping && have_nonmapping_source && copy_action == GDK_ACTION_MOVE ) {\n copy_action = GDK_ACTION_COPY ;\n }\n parent_window = NULL ;\n if ( parent_view ) {\n parent_window = ( GtkWindow * ) gtk_widget_get_ancestor ( parent_view , GTK_TYPE_WINDOW ) ;\n }\n if ( copy_action == GDK_ACTION_COPY ) {\n src_dir = g_file_get_parent ( locations -> data ) ;\n if ( target_dir == NULL || ( src_dir != NULL && g_file_equal ( src_dir , dest ) ) ) {\n nautilus_file_operations_duplicate ( locations , relative_item_points , parent_window , done_callback , done_callback_data ) ;\n }\n else {\n nautilus_file_operations_copy ( locations , relative_item_points , dest , parent_window , done_callback , done_callback_data ) ;\n }\n if ( src_dir ) {\n g_object_unref ( src_dir ) ;\n }\n }\n else if ( copy_action == GDK_ACTION_MOVE ) {\n if ( g_file_has_uri_scheme ( dest , \"trash\" ) ) {\n MoveTrashCBData * cb_data ;\n cb_data = g_slice_new0 ( MoveTrashCBData ) ;\n cb_data -> real_callback = done_callback ;\n cb_data -> real_data = done_callback_data ;\n nautilus_file_operations_trash_or_delete ( locations , parent_window , ( NautilusDeleteCallback ) callback_for_move_to_trash , cb_data ) ;\n }\n else {\n nautilus_file_operations_move ( locations , relative_item_points , dest , parent_window , done_callback , done_callback_data ) ;\n }\n }\n else {\n nautilus_file_operations_link ( locations , relative_item_points , dest , parent_window , done_callback , done_callback_data ) ;\n }\n g_list_free_full ( locations , g_object_unref ) ;\n if ( dest ) {\n g_object_unref ( dest ) ;\n }\n }"}
{"idx": 11627, "target": 0, "func": "TSReturnCode TSCacheReady ( int * is_ready ) {\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) is_ready ) == TS_SUCCESS ) ;\n return TSCacheDataTypeReady ( TS_CACHE_DATA_TYPE_NONE , is_ready ) ;\n }"}
{"idx": 11628, "target": 0, "func": "static uint8_t yop_get_next_nibble ( YopDecContext * s ) {\n int ret ;\n if ( s -> low_nibble ) {\n ret = * s -> low_nibble & 0xf ;\n s -> low_nibble = NULL ;\n }\n else {\n s -> low_nibble = s -> srcptr ++ ;\n ret = * s -> low_nibble >> 4 ;\n }\n return ret ;\n }"}
{"idx": 11629, "target": 1, "func": "void vp9_idct8x8_add ( const int16_t * input , uint8_t * dest , int stride , int eob ) {\n if ( eob == 1 ) vp9_idct8x8_1_add ( input , dest , stride ) ;\n else if ( eob <= 12 ) vp9_idct8x8_12_add ( input , dest , stride ) ;\n else vp9_idct8x8_64_add ( input , dest , stride ) ;\n }"}
{"idx": 11630, "target": 0, "func": "void xps_parse_element ( xps_document * doc , const fz_matrix * ctm , const fz_rect * area , char * base_uri , xps_resource * dict , fz_xml * node ) {\n if ( doc -> cookie && doc -> cookie -> abort ) return ;\n if ( ! strcmp ( fz_xml_tag ( node ) , \"Path\" ) ) xps_parse_path ( doc , ctm , base_uri , dict , node ) ;\n if ( ! strcmp ( fz_xml_tag ( node ) , \"Glyphs\" ) ) xps_parse_glyphs ( doc , ctm , base_uri , dict , node ) ;\n if ( ! strcmp ( fz_xml_tag ( node ) , \"Canvas\" ) ) xps_parse_canvas ( doc , ctm , area , base_uri , dict , node ) ;\n if ( ! strcmp ( fz_xml_tag ( node ) , \"mc:AlternateContent\" ) ) {\n node = xps_lookup_alternate_content ( node ) ;\n if ( node ) xps_parse_element ( doc , ctm , area , base_uri , dict , node ) ;\n }\n }"}
{"idx": 11631, "target": 0, "func": "static int put_info ( const char * str , INFO_TYPE info_type , uint error , const char * sqlstate ) {\n FILE * file = ( info_type == INFO_ERROR ? stderr : stdout ) ;\n static int inited = 0 ;\n if ( status . batch ) {\n if ( info_type == INFO_ERROR ) {\n ( void ) fflush ( file ) ;\n fprintf ( file , \"ERROR\" ) ;\n if ( error ) {\n if ( sqlstate ) ( void ) fprintf ( file , \" %d (%s)\" , error , sqlstate ) ;\n else ( void ) fprintf ( file , \" %d\" , error ) ;\n }\n if ( status . query_start_line && line_numbers ) {\n ( void ) fprintf ( file , \" at line %lu\" , status . query_start_line ) ;\n if ( status . file_name ) ( void ) fprintf ( file , \" in file: '%s'\" , status . file_name ) ;\n }\n ( void ) fprintf ( file , \": %s\\n\" , str ) ;\n ( void ) fflush ( file ) ;\n if ( ! ignore_errors ) return 1 ;\n }\n else if ( info_type == INFO_RESULT && verbose > 1 ) tee_puts ( str , file ) ;\n if ( unbuffered ) fflush ( file ) ;\n return info_type == INFO_ERROR ? - 1 : 0 ;\n }\n if ( ! opt_silent || info_type == INFO_ERROR ) {\n if ( ! inited ) {\n # ifdef HAVE_SETUPTERM int errret ;\n have_curses = setupterm ( ( char * ) 0 , 1 , & errret ) != ERR ;\n # endif inited = 1 ;\n }\n if ( info_type == INFO_ERROR ) {\n if ( ! opt_nobeep ) {\n # ifdef _WIN32 MessageBeep ( MB_ICONWARNING ) ;\n # else putchar ( '\\a' ) ;\n # endif }\n my_vidattr ( A_STANDOUT ) ;\n if ( error ) {\n if ( sqlstate ) ( void ) tee_fprintf ( file , \"ERROR %d (%s)\" , error , sqlstate ) ;\n else ( void ) tee_fprintf ( file , \"ERROR %d\" , error ) ;\n }\n else tee_fputs ( \"ERROR\" , file ) ;\n if ( status . query_start_line && line_numbers ) {\n ( void ) fprintf ( file , \" at line %lu\" , status . query_start_line ) ;\n if ( status . file_name ) ( void ) fprintf ( file , \" in file: '%s'\" , status . file_name ) ;\n }\n tee_fputs ( \": \" , file ) ;\n }\n else my_vidattr ( A_BOLD ) ;\n ( void ) tee_puts ( str , file ) ;\n my_vidattr ( A_NORMAL ) ;\n }\n if ( unbuffered ) fflush ( file ) ;\n return info_type == INFO_ERROR ? ( ignore_errors ? - 1 : 1 ) : 0 ;\n }"}
{"idx": 11632, "target": 0, "func": "void proto_reg_handoff_pcp ( void ) {\n dissector_add_uint ( \"tcp.port\" , PCP_PORT , pcp_handle ) ;\n }"}
{"idx": 11633, "target": 0, "func": "static void log_read_interval ( const ReadInterval * interval , void * log_ctx , int log_level ) {\n av_log ( log_ctx , log_level , \"id:%d\" , interval -> id ) ;\n if ( interval -> has_start ) {\n av_log ( log_ctx , log_level , \" start:%s%s\" , interval -> start_is_offset ? \"+\" : \"\" , av_ts2timestr ( interval -> start , & AV_TIME_BASE_Q ) ) ;\n }\n else {\n av_log ( log_ctx , log_level , \" start:N/A\" ) ;\n }\n if ( interval -> has_end ) {\n av_log ( log_ctx , log_level , \" end:%s\" , interval -> end_is_offset ? \"+\" : \"\" ) ;\n if ( interval -> duration_frames ) av_log ( log_ctx , log_level , \"#%\" PRId64 , interval -> end ) ;\n else av_log ( log_ctx , log_level , \"%s\" , av_ts2timestr ( interval -> end , & AV_TIME_BASE_Q ) ) ;\n }\n else {\n av_log ( log_ctx , log_level , \" end:N/A\" ) ;\n }\n av_log ( log_ctx , log_level , \"\\n\" ) ;\n }"}
{"idx": 11634, "target": 0, "func": "static iax_call_data * iax_new_call ( packet_info * pinfo , guint32 scallno ) {\n iax_call_data * call ;\n guint circuit_id ;\n static const nstime_t millisecond = {\n 0 , 1000000 }\n ;\n # ifdef DEBUG_HASHING g_debug ( \"+ new_circuit: Handling NEW packet, frame %u\" , pinfo -> fd -> num ) ;\n # endif circuit_id = iax_circuit_lookup ( & pinfo -> src , pinfo -> ptype , pinfo -> srcport , scallno ) ;\n call = wmem_new ( wmem_file_scope ( ) , iax_call_data ) ;\n call -> dataformat = AST_DATAFORMAT_NULL ;\n call -> src_codec = 0 ;\n call -> dst_codec = 0 ;\n call -> n_forward_circuit_ids = 0 ;\n call -> n_reverse_circuit_ids = 0 ;\n call -> subdissector = NULL ;\n call -> start_time = pinfo -> fd -> abs_ts ;\n nstime_delta ( & call -> start_time , & call -> start_time , & millisecond ) ;\n init_dir_data ( & call -> dirdata [ 0 ] ) ;\n init_dir_data ( & call -> dirdata [ 1 ] ) ;\n iax2_new_circuit_for_call ( pinfo , NULL , circuit_id , pinfo -> fd -> num , call , FALSE ) ;\n return call ;\n }"}
{"idx": 11635, "target": 0, "func": "static void nvic_sysreg_write ( void * opaque , hwaddr addr , uint64_t value , unsigned size ) {\n nvic_state * s = ( nvic_state * ) opaque ;\n uint32_t offset = addr ;\n int i ;\n switch ( offset ) {\n case 0xd18 ... 0xd23 : for ( i = 0 ;\n i < size ;\n i ++ ) {\n s -> gic . priority1 [ ( offset - 0xd14 ) + i ] [ 0 ] = ( value >> ( i * 8 ) ) & 0xff ;\n }\n gic_update ( & s -> gic ) ;\n return ;\n }\n if ( size == 4 ) {\n nvic_writel ( s , offset , value ) ;\n return ;\n }\n qemu_log_mask ( LOG_GUEST_ERROR , \"NVIC: Bad write of size %d at offset 0x%x\\n\" , size , offset ) ;\n }"}
{"idx": 11636, "target": 0, "func": "static int dissect_h245_IA5String_SIZE_1_40 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_IA5String ( tvb , offset , actx , tree , hf_index , 1 , 40 , FALSE ) ;\n return offset ;\n }"}
{"idx": 11637, "target": 0, "func": "static int dissect_h225_DisengageConfirm ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_DisengageConfirm , DisengageConfirm_sequence ) ;\n return offset ;\n }"}
{"idx": 11638, "target": 0, "func": "static int svc_log ( SvcContext * svc_ctx , SVC_LOG_LEVEL level , const char * fmt , ... ) {\n char buf [ 512 ] ;\n int retval = 0 ;\n va_list ap ;\n SvcInternal * const si = get_svc_internal ( svc_ctx ) ;\n if ( level > svc_ctx -> log_level ) {\n return retval ;\n }\n va_start ( ap , fmt ) ;\n retval = vsnprintf ( buf , sizeof ( buf ) , fmt , ap ) ;\n va_end ( ap ) ;\n if ( svc_ctx -> log_print ) {\n printf ( \"%s\" , buf ) ;\n }\n else {\n strncat ( si -> message_buffer , buf , sizeof ( si -> message_buffer ) - strlen ( si -> message_buffer ) - 1 ) ;\n }\n if ( level == SVC_LOG_ERROR ) {\n si -> codec_ctx -> err_detail = si -> message_buffer ;\n }\n return retval ;\n }"}
{"idx": 11639, "target": 0, "func": "static uint32_t mt_exp_rand ( uint32_t mean , uint32_t max_value ) {\n double mean_d = mean ;\n double erand = log ( 1.0 / ( mt_random ( & static_mtrand ) / ( double ) UINT32_MAX ) ) ;\n uint32_t x = ( uint32_t ) ( mean_d * erand + 0.5 ) ;\n return min ( x , max_value ) ;\n }"}
{"idx": 11640, "target": 0, "func": "static void add_sconv_object ( struct archive * a , struct archive_string_conv * sc ) {\n struct archive_string_conv * * psc ;\n psc = & ( a -> sconv ) ;\n while ( * psc != NULL ) psc = & ( ( * psc ) -> next ) ;\n * psc = sc ;\n }"}
{"idx": 11641, "target": 1, "func": "static guint32 parse_wbxml_attribute_list ( proto_tree * tree , tvbuff_t * tvb , guint32 offset , guint32 str_tbl , guint8 level , guint8 * codepage_attr ) {\n guint32 tvb_len = tvb_reported_length ( tvb ) ;\n guint32 off = offset ;\n guint32 len ;\n guint str_len ;\n guint32 ent ;\n guint32 idx ;\n guint8 peek ;\n DebugLog ( ( \"parse_wbxml_attr (level = %u, offset = %u)\\n\" , level , offset ) ) ;\n while ( off < tvb_len ) {\n peek = tvb_get_guint8 ( tvb , off ) ;\n DebugLog ( ( \"ATTR: (top of while) level = %3u, peek = 0x%02X, \" \"off = %u, tvb_len = %u\\n\" , level , peek , off , tvb_len ) ) ;\n if ( ( peek & 0x3F ) < 5 ) switch ( peek ) {\n case 0x00 : * codepage_attr = tvb_get_guint8 ( tvb , off + 1 ) ;\n proto_tree_add_text ( tree , tvb , off , 2 , \" | Attr | A -->%3d \" \"| SWITCH_PAGE (Attr code page) |\" , * codepage_attr ) ;\n off += 2 ;\n break ;\n case 0x01 : off ++ ;\n DebugLog ( ( \"ATTR: level = %u, Return: len = %u\\n\" , level , off - offset ) ) ;\n return ( off - offset ) ;\n case 0x02 : ent = tvb_get_guintvar ( tvb , off + 1 , & len ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Attr | A %3d \" \"| ENTITY \" \"| %s'&#%u;\n'\" , level , * codepage_attr , Indent ( level ) , ent ) ;\n off += 1 + len ;\n break ;\n case 0x03 : len = tvb_strsize ( tvb , off + 1 ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Attr | A %3d \" \"| STR_I (Inline string) \" \"| %s\\'%s\\'\" , level , * codepage_attr , Indent ( level ) , tvb_format_text ( tvb , off + 1 , len - 1 ) ) ;\n off += 1 + len ;\n break ;\n case 0x04 : idx = tvb_get_guintvar ( tvb , off + 1 , & len ) ;\n str_len = tvb_strsize ( tvb , str_tbl + idx ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Attr | A %3d \" \"| LITERAL (Literal Attribute) \" \"| %s<%s />\" , level , * codepage_attr , Indent ( level ) , tvb_format_text ( tvb , str_tbl + idx , str_len - 1 ) ) ;\n off += 1 + len ;\n break ;\n case 0x40 : case 0x41 : case 0x42 : len = tvb_strsize ( tvb , off + 1 ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Attr | A %3d \" \"| EXT_I_%1x (Extension Token) \" \"| %s(Inline string extension: \\'%s\\')\" , level , * codepage_attr , peek & 0x0f , Indent ( level ) , tvb_format_text ( tvb , off + 1 , len - 1 ) ) ;\n off += 1 + len ;\n break ;\n case 0x80 : case 0x81 : case 0x82 : idx = tvb_get_guintvar ( tvb , off + 1 , & len ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Attr | A %3d \" \"| EXT_T_%1x (Extension Token) \" \"| %s(Extension Token, integer value: %u)\" , level , * codepage_attr , peek & 0x0f , Indent ( level ) , idx ) ;\n off += 1 + len ;\n break ;\n case 0x83 : idx = tvb_get_guintvar ( tvb , off + 1 , & len ) ;\n str_len = tvb_strsize ( tvb , str_tbl + idx ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Attr | A %3d \" \"| STR_T (Tableref string) \" \"| %s\\'%s\\'\" , level , * codepage_attr , Indent ( level ) , tvb_format_text ( tvb , str_tbl + idx , str_len - 1 ) ) ;\n off += 1 + len ;\n break ;\n case 0xC0 : case 0xC1 : case 0xC2 : proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Attr | A %3d \" \"| EXT_%1x (Extension Token) \" \"| %s(Single-byte extension)\" , level , * codepage_attr , peek & 0x0f , Indent ( level ) ) ;\n off ++ ;\n break ;\n case 0xC3 : if ( tvb_get_guint8 ( tvb , 0 ) ) {\n idx = tvb_get_guintvar ( tvb , off + 1 , & len ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len + idx , \" %3d | Attr | A %3d \" \"| OPAQUE (Opaque data) \" \"| %s(%d bytes of opaque data)\" , level , * codepage_attr , Indent ( level ) , idx ) ;\n off += 1 + len + idx ;\n }\n else {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Attr | A %3d \" \"| RESERVED_2 (Invalid Token!) \" \"| WBXML 1.0 parsing stops here.\" , level , * codepage_attr ) ;\n off = tvb_len ;\n DebugLog ( ( \"ATTR: level = %u, Return: len = %u\\n\" , level , off - offset ) ) ;\n return ( off - offset ) ;\n }\n break ;\n default : proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Attr | A %3d \" \"| %-10s (Invalid Token!) \" \"| WBXML parsing stops here.\" , level , * codepage_attr , val_to_str_ext ( peek , & vals_wbxml1x_global_tokens_ext , \"(unknown 0x%x)\" ) ) ;\n off = tvb_len ;\n break ;\n }\n else {\n if ( peek & 0x80 ) {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Attr | A %3d \" \"| Known attrValue 0x%02X \" \"| %sattrValue_0x%02X\" , level , * codepage_attr , peek & 0x7f , Indent ( level ) , peek ) ;\n off ++ ;\n }\n else {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Attr | A %3d \" \"| Known attrStart 0x%02X \" \"| %sattrStart_0x%02X\" , level , * codepage_attr , peek & 0x7f , Indent ( level ) , peek ) ;\n off ++ ;\n }\n }\n }\n DebugLog ( ( \"ATTR: level = %u, Return: len = %u (end of function body)\\n\" , level , off - offset ) ) ;\n return ( off - offset ) ;\n }"}
{"idx": 11642, "target": 0, "func": "static int dissect_h245_TerminalLabel ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_TerminalLabel , TerminalLabel_sequence ) ;\n return offset ;\n }"}
{"idx": 11643, "target": 0, "func": "static inline dma_addr_t xhci_addr64 ( uint32_t low , uint32_t high ) {\n if ( sizeof ( dma_addr_t ) == 4 ) {\n return low ;\n }\n else {\n return low | ( ( ( dma_addr_t ) high << 16 ) << 16 ) ;\n }\n }"}
{"idx": 11644, "target": 0, "func": "xmlHashTablePtr xmlHashCopy ( xmlHashTablePtr table , xmlHashCopier f ) {\n int i ;\n xmlHashEntryPtr iter ;\n xmlHashEntryPtr next ;\n xmlHashTablePtr ret ;\n if ( table == NULL ) return ( NULL ) ;\n if ( f == NULL ) return ( NULL ) ;\n ret = xmlHashCreate ( table -> size ) ;\n if ( ret == NULL ) return ( NULL ) ;\n if ( table -> table ) {\n for ( i = 0 ;\n i < table -> size ;\n i ++ ) {\n if ( table -> table [ i ] . valid == 0 ) continue ;\n iter = & ( table -> table [ i ] ) ;\n while ( iter ) {\n next = iter -> next ;\n xmlHashAddEntry3 ( ret , iter -> name , iter -> name2 , iter -> name3 , f ( iter -> payload , iter -> name ) ) ;\n iter = next ;\n }\n }\n }\n ret -> nbElems = table -> nbElems ;\n return ( ret ) ;\n }"}
{"idx": 11645, "target": 0, "func": "inline HTTPType http_hdr_type_get ( HTTPHdrImpl * hh ) {\n return ( hh -> m_polarity ) ;\n }"}
{"idx": 11646, "target": 0, "func": "TEST_F ( ScoredHistoryMatchTest , Inlining ) {\n base : : Time now = base : : Time : : NowFromSystemTime ( ) ;\n RowWordStarts word_starts ;\n WordStarts one_word_no_offset ( 1 , 0u ) ;\n VisitInfoVector visits ;\n {\n history : : URLRow row ( MakeURLRow ( \"http://www.google.com\" , \"abcdef\" , 3 , 30 , 1 ) ) ;\n PopulateWordStarts ( row , & word_starts ) ;\n ScoredHistoryMatch scored_a ( row , visits , ASCIIToUTF16 ( \"g\" ) , Make1Term ( \"g\" ) , one_word_no_offset , word_starts , false , nullptr , now ) ;\n EXPECT_FALSE ( scored_a . match_in_scheme ) ;\n ScoredHistoryMatch scored_b ( row , visits , ASCIIToUTF16 ( \"w\" ) , Make1Term ( \"w\" ) , one_word_no_offset , word_starts , false , nullptr , now ) ;\n EXPECT_FALSE ( scored_b . match_in_scheme ) ;\n ScoredHistoryMatch scored_c ( row , visits , ASCIIToUTF16 ( \"h\" ) , Make1Term ( \"h\" ) , one_word_no_offset , word_starts , false , nullptr , now ) ;\n EXPECT_TRUE ( scored_c . match_in_scheme ) ;\n ScoredHistoryMatch scored_d ( row , visits , ASCIIToUTF16 ( \"o\" ) , Make1Term ( \"o\" ) , one_word_no_offset , word_starts , false , nullptr , now ) ;\n EXPECT_FALSE ( scored_d . match_in_scheme ) ;\n }\n {\n history : : URLRow row ( MakeURLRow ( \"http://teams.foo.com\" , \"abcdef\" , 3 , 30 , 1 ) ) ;\n PopulateWordStarts ( row , & word_starts ) ;\n ScoredHistoryMatch scored_a ( row , visits , ASCIIToUTF16 ( \"t\" ) , Make1Term ( \"t\" ) , one_word_no_offset , word_starts , false , nullptr , now ) ;\n EXPECT_FALSE ( scored_a . match_in_scheme ) ;\n ScoredHistoryMatch scored_b ( row , visits , ASCIIToUTF16 ( \"f\" ) , Make1Term ( \"f\" ) , one_word_no_offset , word_starts , false , nullptr , now ) ;\n EXPECT_FALSE ( scored_b . match_in_scheme ) ;\n ScoredHistoryMatch scored_c ( row , visits , ASCIIToUTF16 ( \"o\" ) , Make1Term ( \"o\" ) , one_word_no_offset , word_starts , false , nullptr , now ) ;\n EXPECT_FALSE ( scored_c . match_in_scheme ) ;\n }\n {\n history : : URLRow row ( MakeURLRow ( \"https://www.testing.com\" , \"abcdef\" , 3 , 30 , 1 ) ) ;\n PopulateWordStarts ( row , & word_starts ) ;\n ScoredHistoryMatch scored_a ( row , visits , ASCIIToUTF16 ( \"t\" ) , Make1Term ( \"t\" ) , one_word_no_offset , word_starts , false , nullptr , now ) ;\n EXPECT_FALSE ( scored_a . match_in_scheme ) ;\n ScoredHistoryMatch scored_b ( row , visits , ASCIIToUTF16 ( \"h\" ) , Make1Term ( \"h\" ) , one_word_no_offset , word_starts , false , nullptr , now ) ;\n EXPECT_TRUE ( scored_b . match_in_scheme ) ;\n ScoredHistoryMatch scored_c ( row , visits , ASCIIToUTF16 ( \"w\" ) , Make1Term ( \"w\" ) , one_word_no_offset , word_starts , false , nullptr , now ) ;\n EXPECT_FALSE ( scored_c . match_in_scheme ) ;\n }\n {\n history : : URLRow row ( MakeURLRow ( \"http://www.xn--1lq90ic7f1rc.cn/xnblah\" , \"abcd\" , 3 , 30 , 1 ) ) ;\n PopulateWordStarts ( row , & word_starts ) ;\n ScoredHistoryMatch scored_a ( row , visits , ASCIIToUTF16 ( \"x\" ) , Make1Term ( \"x\" ) , one_word_no_offset , word_starts , false , nullptr , now ) ;\n EXPECT_FALSE ( scored_a . match_in_scheme ) ;\n ScoredHistoryMatch scored_b ( row , visits , ASCIIToUTF16 ( \"xn\" ) , Make1Term ( \"xn\" ) , one_word_no_offset , word_starts , false , nullptr , now ) ;\n EXPECT_FALSE ( scored_b . match_in_scheme ) ;\n ScoredHistoryMatch scored_c ( row , visits , ASCIIToUTF16 ( \"w\" ) , Make1Term ( \"w\" ) , one_word_no_offset , word_starts , false , nullptr , now ) ;\n EXPECT_FALSE ( scored_c . match_in_scheme ) ;\n }\n }"}
{"idx": 11647, "target": 0, "func": "static void test_view_2where ( ) {\n MYSQL_STMT * stmt ;\n int rc , i ;\n MYSQL_BIND my_bind [ 8 ] ;\n char parms [ 8 ] [ 100 ] ;\n ulong length [ 8 ] ;\n const char * query = \"select relid, report, handle, log_group, username, variant, type, \" \"version, erfdat, erftime, erfname, aedat, aetime, aename, dependvars, \" \"inactive from V_LTDX where mandt = ? and relid = ? and report = ? and \" \"handle = ? and log_group = ? and username in ( ? , ? ) and type = ?\" ;\n myheader ( \"test_view_2where\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS LTDX\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP VIEW IF EXISTS V_LTDX\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE LTDX (MANDT char(3) NOT NULL default '000', \" \" RELID char(2) NOT NULL, REPORT varchar(40) NOT NULL,\" \" HANDLE varchar(4) NOT NULL, LOG_GROUP varchar(4) NOT NULL,\" \" USERNAME varchar(12) NOT NULL,\" \" VARIANT varchar(12) NOT NULL,\" \" TYPE char(1) NOT NULL, SRTF2 int(11) NOT NULL,\" \" VERSION varchar(6) NOT NULL default '000000',\" \" ERFDAT varchar(8) NOT NULL default '00000000',\" \" ERFTIME varchar(6) NOT NULL default '000000',\" \" ERFNAME varchar(12) NOT NULL,\" \" AEDAT varchar(8) NOT NULL default '00000000',\" \" AETIME varchar(6) NOT NULL default '000000',\" \" AENAME varchar(12) NOT NULL,\" \" DEPENDVARS varchar(10) NOT NULL,\" \" INACTIVE char(1) NOT NULL, CLUSTR smallint(6) NOT NULL,\" \" CLUSTD blob,\" \" PRIMARY KEY (MANDT, RELID, REPORT, HANDLE, LOG_GROUP, \" \"USERNAME, VARIANT, TYPE, SRTF2))\" \" CHARSET=latin1 COLLATE latin1_bin\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE VIEW V_LTDX AS select T0001.MANDT AS \" \" MANDT,T0001.RELID AS RELID,T0001.REPORT AS \" \" REPORT,T0001.HANDLE AS HANDLE,T0001.LOG_GROUP AS \" \" LOG_GROUP,T0001.USERNAME AS USERNAME,T0001.VARIANT AS \" \" VARIANT,T0001.TYPE AS TYPE,T0001.VERSION AS \" \" VERSION,T0001.ERFDAT AS ERFDAT,T0001.ERFTIME AS \" \" ERFTIME,T0001.ERFNAME AS ERFNAME,T0001.AEDAT AS \" \" AEDAT,T0001.AETIME AS AETIME,T0001.AENAME AS \" \" AENAME,T0001.DEPENDVARS AS DEPENDVARS,T0001.INACTIVE AS \" \" INACTIVE from LTDX T0001 where (T0001.SRTF2 = 0)\" ) ;\n myquery ( rc ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n strmov ( parms [ i ] , \"1\" ) ;\n my_bind [ i ] . buffer_type = MYSQL_TYPE_VAR_STRING ;\n my_bind [ i ] . buffer = ( char * ) & parms [ i ] ;\n my_bind [ i ] . buffer_length = 100 ;\n my_bind [ i ] . is_null = 0 ;\n my_bind [ i ] . length = & length [ i ] ;\n length [ i ] = 1 ;\n }\n stmt = mysql_stmt_init ( mysql ) ;\n rc = mysql_stmt_prepare ( stmt , query , strlen ( query ) ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( 0 == rc ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"DROP VIEW V_LTDX\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP TABLE LTDX\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 11648, "target": 0, "func": "static void test_signal_while_processing ( void ) {\n struct event_base * base = event_init ( ) ;\n struct event ev , ev_timer ;\n struct timeval tv = {\n 0 , 0 }\n ;\n setup_test ( \"Receiving a signal while processing other signal: \" ) ;\n called = - 1 ;\n test_ok = 1 ;\n signal_set ( & ev , SIGUSR1 , signal_cb_swp , NULL ) ;\n signal_add ( & ev , NULL ) ;\n evtimer_set ( & ev_timer , timeout_cb_swp , & ev_timer ) ;\n evtimer_add ( & ev_timer , & tv ) ;\n event_dispatch ( ) ;\n event_base_free ( base ) ;\n cleanup_test ( ) ;\n return ;\n }"}
{"idx": 11649, "target": 0, "func": "static int64_t rm_read_dts ( AVFormatContext * s , int stream_index , int64_t * ppos , int64_t pos_limit ) {\n RMDemuxContext * rm = s -> priv_data ;\n int64_t pos , dts ;\n int stream_index2 , flags , len , h ;\n pos = * ppos ;\n if ( rm -> old_format ) return AV_NOPTS_VALUE ;\n if ( avio_seek ( s -> pb , pos , SEEK_SET ) < 0 ) return AV_NOPTS_VALUE ;\n rm -> remaining_len = 0 ;\n for ( ;\n ;\n ) {\n int seq = 1 ;\n AVStream * st ;\n len = rm_sync ( s , & dts , & flags , & stream_index2 , & pos ) ;\n if ( len < 0 ) return AV_NOPTS_VALUE ;\n st = s -> streams [ stream_index2 ] ;\n if ( st -> codecpar -> codec_type == AVMEDIA_TYPE_VIDEO ) {\n h = avio_r8 ( s -> pb ) ;\n len -- ;\n if ( ! ( h & 0x40 ) ) {\n seq = avio_r8 ( s -> pb ) ;\n len -- ;\n }\n }\n if ( ( flags & 2 ) && ( seq & 0x7F ) == 1 ) {\n av_log ( s , AV_LOG_TRACE , \"%d %d-%d %\" PRId64 \" %d\\n\" , flags , stream_index2 , stream_index , dts , seq ) ;\n av_add_index_entry ( st , pos , dts , 0 , 0 , AVINDEX_KEYFRAME ) ;\n if ( stream_index2 == stream_index ) break ;\n }\n avio_skip ( s -> pb , len ) ;\n }\n * ppos = pos ;\n return dts ;\n }"}
{"idx": 11650, "target": 1, "func": "static void sbr_env_estimate ( float ( * e_curr ) [ 48 ] , float X_high [ 64 ] [ 40 ] [ 2 ] , SpectralBandReplication * sbr , SBRData * ch_data ) {\n int e , m ;\n int kx1 = sbr -> kx [ 1 ] ;\n if ( sbr -> bs_interpol_freq ) {\n for ( e = 0 ;\n e < ch_data -> bs_num_env ;\n e ++ ) {\n const float recip_env_size = 0.5f / ( ch_data -> t_env [ e + 1 ] - ch_data -> t_env [ e ] ) ;\n int ilb = ch_data -> t_env [ e ] * 2 + ENVELOPE_ADJUSTMENT_OFFSET ;\n int iub = ch_data -> t_env [ e + 1 ] * 2 + ENVELOPE_ADJUSTMENT_OFFSET ;\n for ( m = 0 ;\n m < sbr -> m [ 1 ] ;\n m ++ ) {\n float sum = sbr -> dsp . sum_square ( X_high [ m + kx1 ] + ilb , iub - ilb ) ;\n e_curr [ e ] [ m ] = sum * recip_env_size ;\n }\n }\n }\n else {\n int k , p ;\n for ( e = 0 ;\n e < ch_data -> bs_num_env ;\n e ++ ) {\n const int env_size = 2 * ( ch_data -> t_env [ e + 1 ] - ch_data -> t_env [ e ] ) ;\n int ilb = ch_data -> t_env [ e ] * 2 + ENVELOPE_ADJUSTMENT_OFFSET ;\n int iub = ch_data -> t_env [ e + 1 ] * 2 + ENVELOPE_ADJUSTMENT_OFFSET ;\n const uint16_t * table = ch_data -> bs_freq_res [ e + 1 ] ? sbr -> f_tablehigh : sbr -> f_tablelow ;\n for ( p = 0 ;\n p < sbr -> n [ ch_data -> bs_freq_res [ e + 1 ] ] ;\n p ++ ) {\n float sum = 0.0f ;\n const int den = env_size * ( table [ p + 1 ] - table [ p ] ) ;\n for ( k = table [ p ] ;\n k < table [ p + 1 ] ;\n k ++ ) {\n sum += sbr -> dsp . sum_square ( X_high [ k ] + ilb , iub - ilb ) ;\n }\n sum /= den ;\n for ( k = table [ p ] ;\n k < table [ p + 1 ] ;\n k ++ ) {\n e_curr [ e ] [ k - kx1 ] = sum ;\n }\n }\n }\n }\n }"}
{"idx": 11651, "target": 0, "func": "static int dissect_h245_IS13818AudioSampling ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_IS13818AudioSampling , IS13818AudioSampling_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 11652, "target": 0, "func": "static int main_external_compression_finish ( void ) {\n int i ;\n int ret ;\n for ( i = 0 ;\n i < num_subprocs ;\n i += 1 ) {\n if ( ! ext_subprocs [ i ] ) {\n continue ;\n }\n if ( ( ret = main_waitpid_check ( ext_subprocs [ i ] ) ) ) {\n return ret ;\n }\n ext_subprocs [ i ] = 0 ;\n }\n return 0 ;\n }"}
{"idx": 11653, "target": 0, "func": "static int dissect_h245_OCTET_STRING_SIZE_1_256 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 1 , 256 , FALSE , NULL ) ;\n return offset ;\n }"}
{"idx": 11654, "target": 0, "func": "static int dissect_h225_ResourcesAvailableConfirm ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_ResourcesAvailableConfirm , ResourcesAvailableConfirm_sequence ) ;\n return offset ;\n }"}
{"idx": 11655, "target": 0, "func": "static inline port_type display_to_port_type ( field_display_e e ) {\n switch ( e ) {\n case BASE_PT_UDP : return PT_UDP ;\n case BASE_PT_TCP : return PT_TCP ;\n case BASE_PT_DCCP : return PT_DCCP ;\n case BASE_PT_SCTP : return PT_SCTP ;\n default : break ;\n }\n return PT_NONE ;\n }"}
{"idx": 11656, "target": 0, "func": "void PNGAPI png_set_keep_unknown_chunks ( png_structp png_ptr , int keep , png_bytep chunk_list , int num_chunks ) {\n png_bytep new_list , p ;\n int i , old_num_chunks ;\n if ( png_ptr == NULL ) return ;\n if ( num_chunks == 0 ) {\n if ( keep == PNG_HANDLE_CHUNK_ALWAYS || keep == PNG_HANDLE_CHUNK_IF_SAFE ) png_ptr -> flags |= PNG_FLAG_KEEP_UNKNOWN_CHUNKS ;\n else png_ptr -> flags &= ~ PNG_FLAG_KEEP_UNKNOWN_CHUNKS ;\n if ( keep == PNG_HANDLE_CHUNK_ALWAYS ) png_ptr -> flags |= PNG_FLAG_KEEP_UNSAFE_CHUNKS ;\n else png_ptr -> flags &= ~ PNG_FLAG_KEEP_UNSAFE_CHUNKS ;\n return ;\n }\n if ( chunk_list == NULL ) return ;\n old_num_chunks = png_ptr -> num_chunk_list ;\n new_list = ( png_bytep ) png_malloc ( png_ptr , ( png_uint_32 ) ( 5 * ( num_chunks + old_num_chunks ) ) ) ;\n if ( png_ptr -> chunk_list != NULL ) {\n png_memcpy ( new_list , png_ptr -> chunk_list , ( png_size_t ) ( 5 * old_num_chunks ) ) ;\n png_free ( png_ptr , png_ptr -> chunk_list ) ;\n png_ptr -> chunk_list = NULL ;\n }\n png_memcpy ( new_list + 5 * old_num_chunks , chunk_list , ( png_size_t ) ( 5 * num_chunks ) ) ;\n for ( p = new_list + 5 * old_num_chunks + 4 , i = 0 ;\n i < num_chunks ;\n i ++ , p += 5 ) * p = ( png_byte ) keep ;\n png_ptr -> num_chunk_list = old_num_chunks + num_chunks ;\n png_ptr -> chunk_list = new_list ;\n # ifdef PNG_FREE_ME_SUPPORTED png_ptr -> free_me |= PNG_FREE_LIST ;\n # endif }"}
{"idx": 11657, "target": 0, "func": "void EVP_EncodeFinal ( EVP_ENCODE_CTX * ctx , unsigned char * out , int * outl ) {\n unsigned int ret = 0 ;\n if ( ctx -> num != 0 ) {\n ret = EVP_EncodeBlock ( out , ctx -> enc_data , ctx -> num ) ;\n out [ ret ++ ] = '\\n' ;\n out [ ret ] = '\\0' ;\n ctx -> num = 0 ;\n }\n * outl = ret ;\n }"}
{"idx": 11658, "target": 0, "func": "static int dissect_h225_T_ipxAddress ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_T_ipxAddress , T_ipxAddress_sequence ) ;\n return offset ;\n }"}
{"idx": 11659, "target": 0, "func": "static inline void pxa2xx_rtc_rdal2_tick ( void * opaque ) {\n PXA2xxRTCState * s = ( PXA2xxRTCState * ) opaque ;\n s -> rtsr |= ( 1 << 6 ) ;\n pxa2xx_rtc_alarm_update ( s , s -> rtsr ) ;\n pxa2xx_rtc_int_update ( s ) ;\n }"}
{"idx": 11660, "target": 0, "func": "static int decode_frame ( FLACContext * s ) {\n int i , ret ;\n GetBitContext * gb = & s -> gb ;\n FLACFrameInfo fi ;\n if ( ff_flac_decode_frame_header ( s -> avctx , gb , & fi , 0 ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"invalid frame header\\n\" ) ;\n return - 1 ;\n }\n if ( s -> channels && fi . channels != s -> channels && s -> got_streaminfo ) {\n s -> channels = s -> avctx -> channels = fi . channels ;\n ff_flac_set_channel_layout ( s -> avctx ) ;\n ret = allocate_buffers ( s ) ;\n if ( ret < 0 ) return ret ;\n }\n s -> channels = s -> avctx -> channels = fi . channels ;\n if ( ! s -> avctx -> channel_layout ) ff_flac_set_channel_layout ( s -> avctx ) ;\n s -> ch_mode = fi . ch_mode ;\n if ( ! s -> bps && ! fi . bps ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"bps not found in STREAMINFO or frame header\\n\" ) ;\n return - 1 ;\n }\n if ( ! fi . bps ) {\n fi . bps = s -> bps ;\n }\n else if ( s -> bps && fi . bps != s -> bps ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"switching bps mid-stream is not \" \"supported\\n\" ) ;\n return - 1 ;\n }\n if ( ! s -> bps ) {\n s -> bps = s -> avctx -> bits_per_raw_sample = fi . bps ;\n flac_set_bps ( s ) ;\n }\n if ( ! s -> max_blocksize ) s -> max_blocksize = FLAC_MAX_BLOCKSIZE ;\n if ( fi . blocksize > s -> max_blocksize ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"blocksize %d > %d\\n\" , fi . blocksize , s -> max_blocksize ) ;\n return - 1 ;\n }\n s -> blocksize = fi . blocksize ;\n if ( ! s -> samplerate && ! fi . samplerate ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"sample rate not found in STREAMINFO\" \" or frame header\\n\" ) ;\n return - 1 ;\n }\n if ( fi . samplerate == 0 ) fi . samplerate = s -> samplerate ;\n s -> samplerate = s -> avctx -> sample_rate = fi . samplerate ;\n if ( ! s -> got_streaminfo ) {\n ret = allocate_buffers ( s ) ;\n if ( ret < 0 ) return ret ;\n ff_flacdsp_init ( & s -> dsp , s -> avctx -> sample_fmt , s -> bps ) ;\n s -> got_streaminfo = 1 ;\n dump_headers ( s -> avctx , ( FLACStreaminfo * ) s ) ;\n }\n for ( i = 0 ;\n i < s -> channels ;\n i ++ ) {\n if ( decode_subframe ( s , i ) < 0 ) return - 1 ;\n }\n align_get_bits ( gb ) ;\n skip_bits ( gb , 16 ) ;\n return 0 ;\n }"}
{"idx": 11661, "target": 0, "func": "static void initial_reordering_syllable ( const hb_ot_shape_plan_t * plan , hb_face_t * face , hb_buffer_t * buffer , unsigned int start , unsigned int end ) {\n syllable_type_t syllable_type = ( syllable_type_t ) ( buffer -> info [ start ] . syllable ( ) & 0x0F ) ;\n switch ( syllable_type ) {\n case vowel_syllable : case consonant_syllable : initial_reordering_consonant_syllable ( plan , face , buffer , start , end ) ;\n break ;\n case broken_cluster : case standalone_cluster : initial_reordering_standalone_cluster ( plan , face , buffer , start , end ) ;\n break ;\n case symbol_cluster : case non_indic_cluster : break ;\n }\n }"}
{"idx": 11662, "target": 0, "func": "GType hb_gobject_ ## name ## _get_type ( void ) \\ {\n static gsize type_id = 0 ;\n if ( g_once_init_enter ( & type_id ) ) {\n GType id = g_boxed_type_register_static ( g_intern_static_string ( \"hb_\" # name \"_t\" ) , ( GBoxedCopyFunc ) copy_func , ( GBoxedFreeFunc ) free_func ) ;\n g_once_init_leave ( & type_id , id ) ;\n }\n return type_id ;\n \\ }\n # define HB_DEFINE_OBJECT_TYPE ( name ) HB_DEFINE_BOXED_TYPE ( name , hb_ ## name ## _reference , hb_ ## name ## _destroy ) ;\n # define HB_DEFINE_VALUE_TYPE ( name ) static hb_ ## name ## _t * _hb_ ## name ## _reference ( const hb_ ## name ## _t * l ) {\n hb_ ## name ## _t * c = ( hb_ ## name ## _t * ) calloc ( 1 , sizeof ( hb_ ## name ## _t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * l ;\n return c ;\n }\n static void _hb_ ## name ## _destroy ( hb_ ## name ## _t * l ) {\n free ( l ) ;\n }\n HB_DEFINE_BOXED_TYPE ( name , _hb_ ## name ## _reference , _hb_ ## name ## _destroy ) ;\n HB_DEFINE_OBJECT_TYPE ( buffer ) HB_DEFINE_OBJECT_TYPE ( blob ) HB_DEFINE_OBJECT_TYPE ( face ) HB_DEFINE_OBJECT_TYPE ( font ) HB_DEFINE_OBJECT_TYPE ( font_funcs ) HB_DEFINE_OBJECT_TYPE ( set ) HB_DEFINE_OBJECT_TYPE ( shape_plan ) HB_DEFINE_OBJECT_TYPE ( unicode_funcs )"}
{"idx": 11663, "target": 0, "func": "static int dissect_pvfs2_mgmt_remove_object_response ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"handle\" , NULL ) ;\n offset = dissect_pvfs_fs_id ( tvb , tree , offset ) ;\n return offset ;\n }"}
{"idx": 11664, "target": 0, "func": "static void e1000e_msix_clear ( E1000ECore * core , uint32_t causes ) {\n if ( causes & E1000_ICR_RXQ0 ) {\n e1000e_msix_clear_one ( core , E1000_ICR_RXQ0 , E1000_IVAR_RXQ0 ( core -> mac [ IVAR ] ) ) ;\n }\n if ( causes & E1000_ICR_RXQ1 ) {\n e1000e_msix_clear_one ( core , E1000_ICR_RXQ1 , E1000_IVAR_RXQ1 ( core -> mac [ IVAR ] ) ) ;\n }\n if ( causes & E1000_ICR_TXQ0 ) {\n e1000e_msix_clear_one ( core , E1000_ICR_TXQ0 , E1000_IVAR_TXQ0 ( core -> mac [ IVAR ] ) ) ;\n }\n if ( causes & E1000_ICR_TXQ1 ) {\n e1000e_msix_clear_one ( core , E1000_ICR_TXQ1 , E1000_IVAR_TXQ1 ( core -> mac [ IVAR ] ) ) ;\n }\n if ( causes & E1000_ICR_OTHER ) {\n e1000e_msix_clear_one ( core , E1000_ICR_OTHER , E1000_IVAR_OTHER ( core -> mac [ IVAR ] ) ) ;\n }\n }"}
{"idx": 11665, "target": 0, "func": "int tm_init ( void * info , struct tm_roots * roots ) {\n tm_event_t nevent , revent ;\n char * env , * hold ;\n int err ;\n int nerr = 0 ;\n struct tcp_chan * chan = NULL ;\n if ( init_done ) {\n return ( TM_BADINIT ) ;\n }\n if ( ( tm_jobid = getenv ( \"PBS_JOBID\" ) ) == NULL ) {\n return ( TM_EBADENVIRONMENT ) ;\n }\n tm_jobid_len = strlen ( tm_jobid ) ;\n if ( ( tm_jobcookie = getenv ( \"PBS_JOBCOOKIE\" ) ) == NULL ) return TM_EBADENVIRONMENT ;\n tm_jobcookie_len = strlen ( tm_jobcookie ) ;\n if ( ( env = getenv ( \"PBS_NODENUM\" ) ) == NULL ) return TM_EBADENVIRONMENT ;\n tm_jobndid = ( tm_node_id ) strtol ( env , & hold , 10 ) ;\n if ( env == hold ) return TM_EBADENVIRONMENT ;\n if ( ( env = getenv ( \"PBS_TASKNUM\" ) ) == NULL ) return TM_EBADENVIRONMENT ;\n if ( ( tm_jobtid = atoi ( env ) ) == 0 ) return TM_EBADENVIRONMENT ;\n if ( ( env = getenv ( \"PBS_MOMPORT\" ) ) == NULL ) return TM_EBADENVIRONMENT ;\n if ( ( tm_momport = atoi ( env ) ) == 0 ) return TM_EBADENVIRONMENT ;\n init_done = 1 ;\n nevent = new_event ( ) ;\n if ( startcom ( TM_INIT , nevent , & chan ) != DIS_SUCCESS ) return TM_ESYSTEM ;\n DIS_tcp_wflush ( chan ) ;\n DIS_tcp_cleanup ( chan ) ;\n add_event ( nevent , TM_ERROR_NODE , TM_INIT , ( void * ) roots ) ;\n while ( TRUE ) {\n if ( ( err = tm_poll ( TM_NULL_EVENT , & revent , 1 , & nerr ) ) != TM_SUCCESS ) return err ;\n if ( event_count == 0 ) break ;\n }\n return nerr ;\n }"}
{"idx": 11666, "target": 0, "func": "static int dissect_h245_T_customPCF_item ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_customPCF_item , T_customPCF_item_sequence ) ;\n return offset ;\n }"}
{"idx": 11667, "target": 0, "func": "void remove_tap_listener_unistim_calls ( void ) {\n remove_tap_listener ( & ( the_tapinfo_struct . unistim_dummy ) ) ;\n have_unistim_tap_listener = FALSE ;\n }"}
{"idx": 11668, "target": 0, "func": "int qemuMonitorJSONGetBlockInfo ( qemuMonitorPtr mon , const char * devname , struct qemuDomainDiskInfo * info ) {\n int ret = 0 ;\n bool found = false ;\n int i ;\n virJSONValuePtr cmd = qemuMonitorJSONMakeCommand ( \"query-block\" , NULL ) ;\n virJSONValuePtr reply = NULL ;\n virJSONValuePtr devices ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n if ( ret < 0 ) goto cleanup ;\n ret = - 1 ;\n devices = virJSONValueObjectGet ( reply , \"return\" ) ;\n if ( ! devices || devices -> type != VIR_JSON_TYPE_ARRAY ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"block info reply was missing device list\" ) ) ;\n goto cleanup ;\n }\n for ( i = 0 ;\n i < virJSONValueArraySize ( devices ) ;\n i ++ ) {\n virJSONValuePtr dev = virJSONValueArrayGet ( devices , i ) ;\n const char * thisdev ;\n if ( ! dev || dev -> type != VIR_JSON_TYPE_OBJECT ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"block info device entry was not in expected format\" ) ) ;\n goto cleanup ;\n }\n if ( ( thisdev = virJSONValueObjectGetString ( dev , \"device\" ) ) == NULL ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"block info device entry was not in expected format\" ) ) ;\n goto cleanup ;\n }\n if ( STRPREFIX ( thisdev , QEMU_DRIVE_HOST_PREFIX ) ) thisdev += strlen ( QEMU_DRIVE_HOST_PREFIX ) ;\n if ( STRNEQ ( thisdev , devname ) ) continue ;\n found = true ;\n if ( virJSONValueObjectGetBoolean ( dev , \"removable\" , & info -> removable ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"cannot read %s value\" ) , \"removable\" ) ;\n goto cleanup ;\n }\n if ( virJSONValueObjectGetBoolean ( dev , \"locked\" , & info -> locked ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"cannot read %s value\" ) , \"locked\" ) ;\n goto cleanup ;\n }\n ignore_value ( virJSONValueObjectGetBoolean ( dev , \"tray-open\" , & info -> tray_open ) ) ;\n break ;\n }\n if ( ! found ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"cannot find info for device '%s'\" ) , devname ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 11669, "target": 0, "func": "static Asn1Generic * DecodeAsn1DerSequence ( const unsigned char * buffer , uint32_t max_size , uint8_t depth , uint32_t * errcode ) {\n const unsigned char * d_ptr = buffer ;\n uint32_t d_length , parsed_bytes , numbytes , el_max_size ;\n uint8_t c ;\n uint32_t seq_index ;\n Asn1Generic * node ;\n d_ptr ++ ;\n node = Asn1GenericNew ( ) ;\n if ( node == NULL ) return NULL ;\n node -> type = ASN1_SEQUENCE ;\n c = d_ptr [ 0 ] ;\n if ( ( c & ( 1 << 7 ) ) >> 7 == 0 ) {\n d_length = c ;\n d_ptr ++ ;\n }\n else {\n numbytes = c & 0x7f ;\n d_ptr ++ ;\n if ( DecodeAsn1BuildValue ( & d_ptr , & d_length , numbytes , errcode ) == - 1 ) {\n SCFree ( node ) ;\n return NULL ;\n }\n }\n node -> length = d_length + ( d_ptr - buffer ) ;\n if ( node -> length > max_size || node -> length < d_length ) {\n if ( errcode ) * errcode = ERR_DER_ELEMENT_SIZE_TOO_BIG ;\n SCFree ( node ) ;\n return NULL ;\n }\n parsed_bytes = 0 ;\n seq_index = 0 ;\n while ( parsed_bytes < d_length ) {\n el_max_size = max_size - ( d_ptr - buffer ) ;\n Asn1Generic * child = DecodeAsn1DerGeneric ( d_ptr , el_max_size , depth , seq_index , errcode ) ;\n if ( child == NULL ) {\n if ( errcode && * errcode != 0 ) {\n DerFree ( node ) ;\n return NULL ;\n }\n break ;\n }\n int ret = Asn1SequenceAppend ( node , child ) ;\n if ( ret == - 1 ) {\n DerFree ( child ) ;\n break ;\n }\n parsed_bytes += child -> length ;\n d_ptr += child -> length ;\n seq_index ++ ;\n }\n return ( Asn1Generic * ) node ;\n }"}
{"idx": 11670, "target": 1, "func": "static void _ISCIIReset ( UConverter * cnv , UConverterResetChoice choice ) {\n UConverterDataISCII * data = ( UConverterDataISCII * ) ( cnv -> extraInfo ) ;\n if ( choice <= UCNV_RESET_TO_UNICODE ) {\n cnv -> toUnicodeStatus = missingCharMarker ;\n cnv -> mode = 0 ;\n data -> currentDeltaToUnicode = data -> defDeltaToUnicode ;\n data -> currentMaskToUnicode = data -> defMaskToUnicode ;\n data -> contextCharToUnicode = NO_CHAR_MARKER ;\n data -> prevToUnicodeStatus = 0x0000 ;\n }\n if ( choice != UCNV_RESET_TO_UNICODE ) {\n cnv -> fromUChar32 = 0x0000 ;\n data -> contextCharFromUnicode = 0x00 ;\n data -> currentMaskFromUnicode = data -> defMaskToUnicode ;\n data -> currentDeltaFromUnicode = data -> defDeltaToUnicode ;\n data -> isFirstBuffer = TRUE ;\n data -> resetToDefaultToUnicode = FALSE ;\n }\n }"}
{"idx": 11671, "target": 0, "func": "static void * Type_Chromaticity_Dup ( struct _cms_typehandler_struct * self , const void * Ptr , cmsUInt32Number n ) {\n return _cmsDupMem ( self -> ContextID , Ptr , sizeof ( cmsCIExyYTRIPLE ) ) ;\n cmsUNUSED_PARAMETER ( n ) ;\n }"}
{"idx": 11672, "target": 0, "func": "afs_int32 SPR_ListEntry ( struct rx_call * call , afs_int32 aid , struct prcheckentry * aentry ) {\n afs_int32 code ;\n afs_int32 cid = ANONYMOUSID ;\n code = listEntry ( call , aid , aentry , & cid ) ;\n osi_auditU ( call , PTS_LstEntEvent , code , AUD_ID , aid , AUD_END ) ;\n ViceLog ( 125 , ( \"PTS_ListEntry: code %d cid %d aid %d\\n\" , code , cid , aid ) ) ;\n return code ;\n }"}
{"idx": 11673, "target": 0, "func": "static int RTP_packet ( void * ptr _U_ , packet_info * pinfo , epan_dissect_t * edt _U_ , void const * RTPinfo ) {\n voip_rtp_tapinfo_t * tapinfo = & the_tapinfo_rtp_struct ;\n voip_rtp_stream_info_t * tmp_listinfo ;\n voip_rtp_stream_info_t * strinfo = NULL ;\n GList * list ;\n struct _rtp_conversation_info * p_conv_data = NULL ;\n const struct _rtp_info * pi = ( const struct _rtp_info * ) RTPinfo ;\n if ( pi -> info_setup_frame_num == 0 ) {\n return 0 ;\n }\n # ifdef HAVE_LIBPORTAUDIO add_rtp_packet ( pi , pinfo ) ;\n # endif list = g_list_first ( tapinfo -> list ) ;\n while ( list ) {\n tmp_listinfo = ( voip_rtp_stream_info_t * ) list -> data ;\n if ( ( tmp_listinfo -> setup_frame_number == pi -> info_setup_frame_num ) && ( tmp_listinfo -> ssrc == pi -> info_sync_src ) && ( tmp_listinfo -> end_stream == FALSE ) ) {\n if ( tmp_listinfo -> pt != pi -> info_payload_type ) {\n tmp_listinfo -> end_stream = TRUE ;\n }\n else {\n strinfo = ( voip_rtp_stream_info_t * ) ( list -> data ) ;\n break ;\n }\n }\n list = g_list_next ( list ) ;\n }\n if ( ( rtp_evt_frame_num == pinfo -> fd -> num ) && ! strinfo && ( rtp_evt_end == TRUE ) ) {\n return 0 ;\n }\n if ( strinfo == NULL ) {\n strinfo = ( voip_rtp_stream_info_t * ) g_malloc ( sizeof ( voip_rtp_stream_info_t ) ) ;\n COPY_ADDRESS ( & ( strinfo -> src_addr ) , & ( pinfo -> src ) ) ;\n strinfo -> src_port = pinfo -> srcport ;\n COPY_ADDRESS ( & ( strinfo -> dest_addr ) , & ( pinfo -> dst ) ) ;\n strinfo -> dest_port = pinfo -> destport ;\n strinfo -> ssrc = pi -> info_sync_src ;\n strinfo -> end_stream = FALSE ;\n strinfo -> pt = pi -> info_payload_type ;\n strinfo -> pt_str = NULL ;\n strinfo -> is_srtp = pi -> info_is_srtp ;\n if ( ( strinfo -> pt >= PT_UNDF_96 ) && ( strinfo -> pt <= PT_UNDF_127 ) ) {\n p_conv_data = ( struct _rtp_conversation_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_get_id_by_filter_name ( \"rtp\" ) , 0 ) ;\n if ( p_conv_data && p_conv_data -> rtp_dyn_payload ) {\n const gchar * encoding_name = rtp_dyn_payload_get_name ( p_conv_data -> rtp_dyn_payload , strinfo -> pt ) ;\n if ( encoding_name ) {\n strinfo -> pt_str = g_strdup ( encoding_name ) ;\n }\n }\n }\n if ( ! strinfo -> pt_str ) strinfo -> pt_str = g_strdup ( val_to_str_ext ( strinfo -> pt , & rtp_payload_type_short_vals_ext , \"%u\" ) ) ;\n strinfo -> npackets = 0 ;\n strinfo -> start_fd = pinfo -> fd ;\n strinfo -> start_rel_ts = pinfo -> rel_ts ;\n strinfo -> setup_frame_number = pi -> info_setup_frame_num ;\n strinfo -> rtp_event = - 1 ;\n tapinfo -> list = g_list_prepend ( tapinfo -> list , strinfo ) ;\n }\n strinfo -> npackets ++ ;\n strinfo -> stop_fd = pinfo -> fd ;\n strinfo -> stop_rel_ts = pinfo -> rel_ts ;\n if ( rtp_evt_frame_num == pinfo -> fd -> num ) {\n strinfo -> rtp_event = rtp_evt ;\n if ( rtp_evt_end == TRUE ) {\n strinfo -> end_stream = TRUE ;\n }\n }\n the_tapinfo_struct . redraw = TRUE ;\n return 1 ;\n }"}
{"idx": 11674, "target": 0, "func": "static void setup_loopfilter ( struct loopfilter * lf , struct vp9_read_bit_buffer * rb ) {\n lf -> filter_level = vp9_rb_read_literal ( rb , 6 ) ;\n lf -> sharpness_level = vp9_rb_read_literal ( rb , 3 ) ;\n lf -> mode_ref_delta_update = 0 ;\n lf -> mode_ref_delta_enabled = vp9_rb_read_bit ( rb ) ;\n if ( lf -> mode_ref_delta_enabled ) {\n lf -> mode_ref_delta_update = vp9_rb_read_bit ( rb ) ;\n if ( lf -> mode_ref_delta_update ) {\n int i ;\n for ( i = 0 ;\n i < MAX_REF_LF_DELTAS ;\n i ++ ) if ( vp9_rb_read_bit ( rb ) ) lf -> ref_deltas [ i ] = vp9_rb_read_signed_literal ( rb , 6 ) ;\n for ( i = 0 ;\n i < MAX_MODE_LF_DELTAS ;\n i ++ ) if ( vp9_rb_read_bit ( rb ) ) lf -> mode_deltas [ i ] = vp9_rb_read_signed_literal ( rb , 6 ) ;\n }\n }\n }"}
{"idx": 11675, "target": 0, "func": "static gpg_error_t parse_keyblock_image ( iobuf_t iobuf , int pk_no , int uid_no , const u32 * sigstatus , kbnode_t * r_keyblock ) {\n gpg_error_t err ;\n PACKET * pkt ;\n kbnode_t keyblock = NULL ;\n kbnode_t node , * tail ;\n int in_cert , save_mode ;\n u32 n_sigs ;\n int pk_count , uid_count ;\n * r_keyblock = NULL ;\n pkt = xtrymalloc ( sizeof * pkt ) ;\n if ( ! pkt ) return gpg_error_from_syserror ( ) ;\n init_packet ( pkt ) ;\n save_mode = set_packet_list_mode ( 0 ) ;\n in_cert = 0 ;\n n_sigs = 0 ;\n tail = NULL ;\n pk_count = uid_count = 0 ;\n while ( ( err = parse_packet ( iobuf , pkt ) ) != - 1 ) {\n if ( gpg_err_code ( err ) == GPG_ERR_UNKNOWN_PACKET ) {\n free_packet ( pkt ) ;\n init_packet ( pkt ) ;\n continue ;\n }\n if ( err ) {\n log_error ( \"parse_keyblock_image: read error: %s\\n\" , gpg_strerror ( err ) ) ;\n err = gpg_error ( GPG_ERR_INV_KEYRING ) ;\n break ;\n }\n switch ( pkt -> pkttype ) {\n case PKT_PUBLIC_KEY : case PKT_PUBLIC_SUBKEY : case PKT_SECRET_KEY : case PKT_SECRET_SUBKEY : case PKT_USER_ID : case PKT_ATTRIBUTE : case PKT_SIGNATURE : break ;\n default : log_error ( \"skipped packet of type %d in keybox\\n\" , ( int ) pkt -> pkttype ) ;\n free_packet ( pkt ) ;\n init_packet ( pkt ) ;\n continue ;\n }\n if ( ! in_cert && pkt -> pkttype != PKT_PUBLIC_KEY ) {\n log_error ( \"parse_keyblock_image: first packet in a keybox blob \" \"is not a public key packet\\n\" ) ;\n err = gpg_error ( GPG_ERR_INV_KEYRING ) ;\n break ;\n }\n if ( in_cert && ( pkt -> pkttype == PKT_PUBLIC_KEY || pkt -> pkttype == PKT_SECRET_KEY ) ) {\n log_error ( \"parse_keyblock_image: \" \"multiple keyblocks in a keybox blob\\n\" ) ;\n err = gpg_error ( GPG_ERR_INV_KEYRING ) ;\n break ;\n }\n in_cert = 1 ;\n if ( pkt -> pkttype == PKT_SIGNATURE && sigstatus ) {\n PKT_signature * sig = pkt -> pkt . signature ;\n n_sigs ++ ;\n if ( n_sigs > sigstatus [ 0 ] ) {\n log_error ( \"parse_keyblock_image: \" \"more signatures than found in the meta data\\n\" ) ;\n err = gpg_error ( GPG_ERR_INV_KEYRING ) ;\n break ;\n }\n if ( sigstatus [ n_sigs ] ) {\n sig -> flags . checked = 1 ;\n if ( sigstatus [ n_sigs ] == 1 ) ;\n else if ( sigstatus [ n_sigs ] == 2 ) ;\n else if ( sigstatus [ n_sigs ] < 0x10000000 ) ;\n else {\n sig -> flags . valid = 1 ;\n }\n }\n }\n node = new_kbnode ( pkt ) ;\n switch ( pkt -> pkttype ) {\n case PKT_PUBLIC_KEY : case PKT_PUBLIC_SUBKEY : case PKT_SECRET_KEY : case PKT_SECRET_SUBKEY : if ( ++ pk_count == pk_no ) node -> flag |= 1 ;\n break ;\n case PKT_USER_ID : if ( ++ uid_count == uid_no ) node -> flag |= 2 ;\n break ;\n default : break ;\n }\n if ( ! keyblock ) keyblock = node ;\n else * tail = node ;\n tail = & node -> next ;\n pkt = xtrymalloc ( sizeof * pkt ) ;\n if ( ! pkt ) {\n err = gpg_error_from_syserror ( ) ;\n break ;\n }\n init_packet ( pkt ) ;\n }\n set_packet_list_mode ( save_mode ) ;\n if ( err == - 1 && keyblock ) err = 0 ;\n if ( ! err && sigstatus && n_sigs != sigstatus [ 0 ] ) {\n log_error ( \"parse_keyblock_image: signature count does not match\\n\" ) ;\n err = gpg_error ( GPG_ERR_INV_KEYRING ) ;\n }\n if ( err ) release_kbnode ( keyblock ) ;\n else * r_keyblock = keyblock ;\n free_packet ( pkt ) ;\n xfree ( pkt ) ;\n return err ;\n }"}
{"idx": 11676, "target": 0, "func": "static int astream_end_of_part ( struct attachment_istream * astream , const char * * error_r ) {\n struct attachment_istream_part * part = & astream -> part ;\n size_t old_size ;\n int ret = 0 ;\n switch ( part -> state ) {\n case MAIL_ATTACHMENT_STATE_NO : break ;\n case MAIL_ATTACHMENT_STATE_MAYBE : if ( part -> part_buf != NULL ) {\n stream_add_data ( astream , part -> part_buf -> data , part -> part_buf -> used ) ;\n ret = part -> part_buf -> used > 0 ? 1 : 0 ;\n }\n break ;\n case MAIL_ATTACHMENT_STATE_YES : old_size = astream -> istream . pos - astream -> istream . skip ;\n if ( astream_part_finish ( astream , error_r ) < 0 ) ret = - 1 ;\n else {\n ret = astream -> istream . pos - astream -> istream . skip - old_size ;\n }\n break ;\n }\n part -> state = MAIL_ATTACHMENT_STATE_NO ;\n astream_part_reset ( astream ) ;\n return ret ;\n }"}
{"idx": 11677, "target": 0, "func": "clump_t * clump_splay_walk_fwd ( clump_splay_walker * sw ) {\n clump_t * cp = sw -> cp ;\n int from = sw -> from ;\n if ( cp == NULL ) return NULL ;\n while ( 1 ) {\n if ( from == SPLAY_FROM_ABOVE ) {\n if ( cp -> left ) {\n cp = cp -> left ;\n from = SPLAY_FROM_ABOVE ;\n continue ;\n }\n from = SPLAY_FROM_LEFT ;\n if ( cp == sw -> end ) cp = NULL ;\n break ;\n }\n if ( from == SPLAY_FROM_LEFT ) {\n if ( cp -> right ) {\n cp = cp -> right ;\n from = SPLAY_FROM_ABOVE ;\n continue ;\n }\n from = SPLAY_FROM_RIGHT ;\n }\n if ( from == SPLAY_FROM_RIGHT ) {\n clump_t * old = cp ;\n cp = cp -> parent ;\n if ( cp == NULL ) {\n if ( sw -> end == NULL ) break ;\n cp = old ;\n from = SPLAY_FROM_ABOVE ;\n }\n else {\n from = ( cp -> left == old ? SPLAY_FROM_LEFT : SPLAY_FROM_RIGHT ) ;\n if ( from == SPLAY_FROM_LEFT ) {\n if ( cp == sw -> end ) cp = NULL ;\n break ;\n }\n }\n }\n }\n sw -> cp = cp ;\n sw -> from = from ;\n return cp ;\n }"}
{"idx": 11678, "target": 0, "func": "void kadmin_lock ( int argc , char * argv [ ] ) {\n kadm5_ret_t retval ;\n if ( locked ) return ;\n retval = kadm5_lock ( handle ) ;\n if ( retval ) {\n com_err ( \"lock\" , retval , \"\" ) ;\n return ;\n }\n locked = 1 ;\n }"}
{"idx": 11679, "target": 0, "func": "void vp9_quantize_b_32x32_c ( const tran_low_t * coeff_ptr , intptr_t n_coeffs , int skip_block , const int16_t * zbin_ptr , const int16_t * round_ptr , const int16_t * quant_ptr , const int16_t * quant_shift_ptr , tran_low_t * qcoeff_ptr , tran_low_t * dqcoeff_ptr , const int16_t * dequant_ptr , int zbin_oq_value , uint16_t * eob_ptr , const int16_t * scan , const int16_t * iscan ) {\n const int zbins [ 2 ] = {\n ROUND_POWER_OF_TWO ( zbin_ptr [ 0 ] + zbin_oq_value , 1 ) , ROUND_POWER_OF_TWO ( zbin_ptr [ 1 ] + zbin_oq_value , 1 ) }\n ;\n const int nzbins [ 2 ] = {\n zbins [ 0 ] * - 1 , zbins [ 1 ] * - 1 }\n ;\n int idx = 0 ;\n int idx_arr [ 1024 ] ;\n int i , eob = - 1 ;\n ( void ) iscan ;\n vpx_memset ( qcoeff_ptr , 0 , n_coeffs * sizeof ( * qcoeff_ptr ) ) ;\n vpx_memset ( dqcoeff_ptr , 0 , n_coeffs * sizeof ( * dqcoeff_ptr ) ) ;\n if ( ! skip_block ) {\n for ( i = 0 ;\n i < n_coeffs ;\n i ++ ) {\n const int rc = scan [ i ] ;\n const int coeff = coeff_ptr [ rc ] ;\n if ( coeff >= zbins [ rc != 0 ] || coeff <= nzbins [ rc != 0 ] ) idx_arr [ idx ++ ] = i ;\n }\n for ( i = 0 ;\n i < idx ;\n i ++ ) {\n const int rc = scan [ idx_arr [ i ] ] ;\n const int coeff = coeff_ptr [ rc ] ;\n const int coeff_sign = ( coeff >> 31 ) ;\n int tmp ;\n int abs_coeff = ( coeff ^ coeff_sign ) - coeff_sign ;\n abs_coeff += ROUND_POWER_OF_TWO ( round_ptr [ rc != 0 ] , 1 ) ;\n abs_coeff = clamp ( abs_coeff , INT16_MIN , INT16_MAX ) ;\n tmp = ( ( ( ( abs_coeff * quant_ptr [ rc != 0 ] ) >> 16 ) + abs_coeff ) * quant_shift_ptr [ rc != 0 ] ) >> 15 ;\n qcoeff_ptr [ rc ] = ( tmp ^ coeff_sign ) - coeff_sign ;\n dqcoeff_ptr [ rc ] = qcoeff_ptr [ rc ] * dequant_ptr [ rc != 0 ] / 2 ;\n if ( tmp ) eob = idx_arr [ i ] ;\n }\n }\n * eob_ptr = eob + 1 ;\n }"}
{"idx": 11680, "target": 1, "func": "static int32_t u_printf_pointer_handler ( const u_printf_stream_handler * handler , void * context , ULocaleBundle * formatBundle , const u_printf_spec_info * info , const ufmt_args * args ) {\n UChar result [ UPRINTF_BUFFER_SIZE ] ;\n int32_t len = UPRINTF_BUFFER_SIZE ;\n ufmt_ptou ( result , & len , args [ 0 ] . ptrValue , TRUE ) ;\n return handler -> pad_and_justify ( context , info , result , len ) ;\n }"}
{"idx": 11681, "target": 0, "func": "void xmlListPopFront ( xmlListPtr l ) {\n if ( ! xmlListEmpty ( l ) ) xmlLinkDeallocator ( l , l -> sentinel -> next ) ;\n }"}
{"idx": 11682, "target": 0, "func": "static int recode_loop_test ( VP8_COMP * cpi , int high_limit , int low_limit , int q , int maxq , int minq ) {\n int force_recode = 0 ;\n VP8_COMMON * cm = & cpi -> common ;\n if ( ( cpi -> sf . recode_loop == 1 ) || ( ( cpi -> sf . recode_loop == 2 ) && ( ( cm -> frame_type == KEY_FRAME ) || cm -> refresh_golden_frame || cm -> refresh_alt_ref_frame ) ) ) {\n if ( ( ( cpi -> projected_frame_size > high_limit ) && ( q < maxq ) ) || ( ( cpi -> projected_frame_size < low_limit ) && ( q > minq ) ) ) {\n force_recode = 1 ;\n }\n else if ( cpi -> oxcf . end_usage == USAGE_CONSTRAINED_QUALITY ) {\n if ( ( q > cpi -> cq_target_quality ) && ( cpi -> projected_frame_size < ( ( cpi -> this_frame_target * 7 ) >> 3 ) ) ) {\n force_recode = 1 ;\n }\n else if ( ( q > cpi -> oxcf . cq_level ) && ( cpi -> projected_frame_size < cpi -> min_frame_bandwidth ) && ( cpi -> active_best_quality > cpi -> oxcf . cq_level ) ) {\n force_recode = 1 ;\n cpi -> active_best_quality = cpi -> oxcf . cq_level ;\n }\n }\n }\n return force_recode ;\n }"}
{"idx": 11683, "target": 0, "func": "static void help ( ) {\n extern char * __progname ;\n fprintf ( stderr , \"iodine IP over DNS tunneling server\\n\" ) ;\n fprintf ( stderr , \"Usage: %s [-v] [-h] [-c] [-s] [-f] [-D] [-u user] \" \"[-t chrootdir] [-d device] [-m mtu] [-z context] \" \"[-l ip address to listen on] [-p port] [-n external ip] [-b dnsport] [-P password] \" \"[-F pidfile] tunnel_ip[etmask] topdomain\\n\" , __progname ) ;\n fprintf ( stderr , \" -v to print version info and exit\\n\" ) ;\n fprintf ( stderr , \" -h to print this help and exit\\n\" ) ;\n fprintf ( stderr , \" -c to disable check of client IP/port on each request\\n\" ) ;\n fprintf ( stderr , \" -s to skip creating and configuring the tun device, \" \"which then has to be created manually\\n\" ) ;\n fprintf ( stderr , \" -f to keep running in foreground\\n\" ) ;\n fprintf ( stderr , \" -D to increase debug level\\n\" ) ;\n fprintf ( stderr , \" (using -DD in UTF-8 terminal: \\\"LC_ALL=C luit iodined -DD ...\\\")\\n\" ) ;\n fprintf ( stderr , \" -u name to drop privileges and run as user 'name'\\n\" ) ;\n fprintf ( stderr , \" -t dir to chroot to directory dir\\n\" ) ;\n fprintf ( stderr , \" -d device to set tunnel device name\\n\" ) ;\n fprintf ( stderr , \" -m mtu to set tunnel device mtu\\n\" ) ;\n fprintf ( stderr , \" -z context to apply SELinux context after initialization\\n\" ) ;\n fprintf ( stderr , \" -l ip address to listen on for incoming dns traffic \" \"(default 0.0.0.0)\\n\" ) ;\n fprintf ( stderr , \" -p port to listen on for incoming dns traffic (default 53)\\n\" ) ;\n fprintf ( stderr , \" -n ip to respond with to NS queries\\n\" ) ;\n fprintf ( stderr , \" -b port to forward normal DNS queries to (on localhost)\\n\" ) ;\n fprintf ( stderr , \" -P password used for authentication (max 32 chars will be used)\\n\" ) ;\n fprintf ( stderr , \" -F pidfile to write pid to a file\\n\" ) ;\n fprintf ( stderr , \" -i maximum idle time before shutting down\\n\" ) ;\n fprintf ( stderr , \"tunnel_ip is the IP number of the local tunnel interface.\\n\" ) ;\n fprintf ( stderr , \" etmask sets the size of the tunnel network.\\n\" ) ;\n fprintf ( stderr , \"topdomain is the FQDN that is delegated to this server.\\n\" ) ;\n exit ( 0 ) ;\n }"}
{"idx": 11684, "target": 1, "func": "int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY )"}
{"idx": 11685, "target": 1, "func": "static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 11686, "target": 0, "func": "static gcry_err_code_t mgf1 ( unsigned char * output , size_t outlen , unsigned char * seed , size_t seedlen , int algo ) {\n size_t dlen , nbytes , n ;\n int idx ;\n gcry_md_hd_t hd ;\n gcry_error_t err ;\n err = gcry_md_open ( & hd , algo , 0 ) ;\n if ( err ) return gpg_err_code ( err ) ;\n dlen = gcry_md_get_algo_dlen ( algo ) ;\n nbytes = 0 ;\n idx = 0 ;\n while ( nbytes < outlen ) {\n unsigned char c [ 4 ] , * digest ;\n if ( idx ) gcry_md_reset ( hd ) ;\n c [ 0 ] = ( idx >> 24 ) & 0xFF ;\n c [ 1 ] = ( idx >> 16 ) & 0xFF ;\n c [ 2 ] = ( idx >> 8 ) & 0xFF ;\n c [ 3 ] = idx & 0xFF ;\n idx ++ ;\n gcry_md_write ( hd , seed , seedlen ) ;\n gcry_md_write ( hd , c , 4 ) ;\n digest = gcry_md_read ( hd , 0 ) ;\n n = ( outlen - nbytes < dlen ) ? ( outlen - nbytes ) : dlen ;\n memcpy ( output + nbytes , digest , n ) ;\n nbytes += n ;\n }\n gcry_md_close ( hd ) ;\n return GPG_ERR_NO_ERROR ;\n }"}
{"idx": 11687, "target": 0, "func": "int mbfl_strlen ( mbfl_string * string ) {\n int len , n , m , k ;\n unsigned char * p ;\n const unsigned char * mbtab ;\n const mbfl_encoding * encoding ;\n encoding = mbfl_no2encoding ( string -> no_encoding ) ;\n if ( encoding == NULL || string == NULL ) {\n return - 1 ;\n }\n len = 0 ;\n if ( encoding -> flag & MBFL_ENCTYPE_SBCS ) {\n len = string -> len ;\n }\n else if ( encoding -> flag & ( MBFL_ENCTYPE_WCS2BE | MBFL_ENCTYPE_WCS2LE ) ) {\n len = string -> len / 2 ;\n }\n else if ( encoding -> flag & ( MBFL_ENCTYPE_WCS4BE | MBFL_ENCTYPE_WCS4LE ) ) {\n len = string -> len / 4 ;\n }\n else if ( encoding -> mblen_table != NULL ) {\n mbtab = encoding -> mblen_table ;\n n = 0 ;\n p = string -> val ;\n k = string -> len ;\n if ( p != NULL ) {\n while ( n < k ) {\n m = mbtab [ * p ] ;\n n += m ;\n p += m ;\n len ++ ;\n }\n ;\n }\n }\n else {\n mbfl_convert_filter * filter = mbfl_convert_filter_new ( string -> no_encoding , mbfl_no_encoding_wchar , filter_count_output , 0 , & len ) ;\n if ( filter == NULL ) {\n return - 1 ;\n }\n n = string -> len ;\n p = string -> val ;\n if ( p != NULL ) {\n while ( n > 0 ) {\n ( * filter -> filter_function ) ( * p ++ , filter ) ;\n n -- ;\n }\n }\n mbfl_convert_filter_delete ( filter ) ;\n }\n return len ;\n }"}
{"idx": 11688, "target": 0, "func": "static uint32_t getHostID ( const ILcidPosixMap * this_0 , const char * posixID , UErrorCode * status ) {\n int32_t bestIdx = 0 ;\n int32_t bestIdxDiff = 0 ;\n int32_t posixIDlen = ( int32_t ) uprv_strlen ( posixID ) ;\n uint32_t idx ;\n for ( idx = 0 ;\n idx < this_0 -> numRegions ;\n idx ++ ) {\n int32_t sameChars = idCmp ( posixID , this_0 -> regionMaps [ idx ] . posixID ) ;\n if ( sameChars > bestIdxDiff && this_0 -> regionMaps [ idx ] . posixID [ sameChars ] == 0 ) {\n if ( posixIDlen == sameChars ) {\n return this_0 -> regionMaps [ idx ] . hostID ;\n }\n bestIdxDiff = sameChars ;\n bestIdx = idx ;\n }\n }\n if ( ( posixID [ bestIdxDiff ] == '_' || posixID [ bestIdxDiff ] == '@' ) && this_0 -> regionMaps [ bestIdx ] . posixID [ bestIdxDiff ] == 0 ) {\n * status = U_USING_FALLBACK_WARNING ;\n return this_0 -> regionMaps [ bestIdx ] . hostID ;\n }\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n return this_0 -> regionMaps -> hostID ;\n }"}
{"idx": 11689, "target": 0, "func": "static void encode_tiles ( VP9_COMP * cpi ) {\n const VP9_COMMON * const cm = & cpi -> common ;\n const int tile_cols = 1 << cm -> log2_tile_cols ;\n const int tile_rows = 1 << cm -> log2_tile_rows ;\n int tile_col , tile_row ;\n TOKENEXTRA * tok = cpi -> tok ;\n for ( tile_row = 0 ;\n tile_row < tile_rows ;\n ++ tile_row ) {\n for ( tile_col = 0 ;\n tile_col < tile_cols ;\n ++ tile_col ) {\n TileInfo tile ;\n TOKENEXTRA * old_tok = tok ;\n int mi_row ;\n vp9_tile_init ( & tile , cm , tile_row , tile_col ) ;\n for ( mi_row = tile . mi_row_start ;\n mi_row < tile . mi_row_end ;\n mi_row += MI_BLOCK_SIZE ) {\n if ( cpi -> sf . use_nonrd_pick_mode && ! frame_is_intra_only ( cm ) ) encode_nonrd_sb_row ( cpi , & tile , mi_row , & tok ) ;\n else encode_rd_sb_row ( cpi , & tile , mi_row , & tok ) ;\n }\n cpi -> tok_count [ tile_row ] [ tile_col ] = ( unsigned int ) ( tok - old_tok ) ;\n assert ( tok - cpi -> tok <= get_token_alloc ( cm -> mb_rows , cm -> mb_cols ) ) ;\n }\n }\n }"}
{"idx": 11690, "target": 0, "func": "static void dissect_u3v_read_mem_ack ( proto_tree * u3v_telegram_tree , tvbuff_t * tvb , packet_info * pinfo , gint startoffset , gint length , u3v_conv_info_t * u3v_conv_info , gencp_transaction_t * gencp_trans ) {\n guint64 addr = 0 ;\n const gchar * address_string = NULL ;\n gboolean is_custom_register = FALSE ;\n gboolean have_address = ( 0 != gencp_trans -> cmd_frame ) ;\n proto_item * item = NULL ;\n guint offset = startoffset ;\n guint byte_count = ( length ) ;\n addr = gencp_trans -> address ;\n dissect_u3v_register_bases ( addr , tvb , startoffset , u3v_conv_info ) ;\n if ( have_address ) {\n address_string = get_register_name_from_address ( addr , & is_custom_register , u3v_conv_info ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"%s\" , address_string ) ;\n }\n item = proto_tree_add_item ( u3v_telegram_tree , hf_u3v_scd_ack_readmem_ack , tvb , startoffset , length , ENC_NA ) ;\n u3v_telegram_tree = proto_item_add_subtree ( item , ett_u3v_payload_cmd ) ;\n if ( have_address ) {\n item = proto_tree_add_uint64 ( u3v_telegram_tree , hf_u3v_address , tvb , 0 , 0 , addr ) ;\n PROTO_ITEM_SET_GENERATED ( item ) ;\n if ( is_known_bootstrap_register ( addr , u3v_conv_info ) ) {\n dissect_u3v_register ( addr , u3v_telegram_tree , tvb , offset , byte_count , u3v_conv_info ) ;\n }\n else {\n proto_tree_add_item ( u3v_telegram_tree , hf_u3v_custom_memory_data , tvb , startoffset , length , ENC_NA ) ;\n }\n }\n }"}
{"idx": 11691, "target": 0, "func": "int jas_stream_copy ( jas_stream_t * out , jas_stream_t * in , int n ) {\n int all ;\n int c ;\n int m ;\n all = ( n < 0 ) ? 1 : 0 ;\n m = n ;\n while ( all || m > 0 ) {\n if ( ( c = jas_stream_getc_macro ( in ) ) == EOF ) {\n return ( ! all || jas_stream_error ( in ) ) ? ( - 1 ) : 0 ;\n }\n if ( jas_stream_putc_macro ( out , c ) == EOF ) {\n return - 1 ;\n }\n -- m ;\n }\n return 0 ;\n }"}
{"idx": 11692, "target": 0, "func": "static PREDICTION_MODE read_intra_mode_uv ( VP9_COMMON * cm , vp9_reader * r , PREDICTION_MODE y_mode ) {\n const PREDICTION_MODE uv_mode = read_intra_mode ( r , cm -> fc . uv_mode_prob [ y_mode ] ) ;\n if ( ! cm -> frame_parallel_decoding_mode ) ++ cm -> counts . uv_mode [ y_mode ] [ uv_mode ] ;\n return uv_mode ;\n }"}
{"idx": 11693, "target": 0, "func": "static void * show_parts ( void * arg ) {\n char * device = arg ;\n int nbd ;\n nbd = open ( device , O_RDWR ) ;\n if ( nbd >= 0 ) {\n close ( nbd ) ;\n }\n return NULL ;\n }"}
{"idx": 11694, "target": 0, "func": "static FILE * NeedsUCS2Table ( SplineFont * sf , int * ucs2len , EncMap * map , int issymbol ) {\n uint32 * avail = malloc ( 65536 * sizeof ( uint32 ) ) ;\n int i , j , l ;\n int segcnt , cnt = 0 , delta , rpos ;\n struct cmapseg {\n uint16 start , end ;\n uint16 delta ;\n uint16 rangeoff ;\n }\n * cmapseg ;\n uint16 * ranges ;\n SplineChar * sc ;\n FILE * format4 = tmpfile ( ) ;\n memset ( avail , 0xff , 65536 * sizeof ( uint32 ) ) ;\n if ( map -> enc -> is_unicodebmp || map -> enc -> is_unicodefull ) {\n int gid ;\n for ( i = 0 ;\n i < 65536 && i < map -> enccount ;\n ++ i ) if ( ( gid = map -> map [ i ] ) != - 1 && sf -> glyphs [ gid ] != NULL && sf -> glyphs [ gid ] -> ttf_glyph != - 1 ) {\n avail [ i ] = gid ;\n ++ cnt ;\n }\n }\n else {\n struct altuni * altuni ;\n for ( i = 0 ;\n i < sf -> glyphcnt ;\n ++ i ) {\n if ( ( sc = sf -> glyphs [ i ] ) != NULL && sc -> ttf_glyph != - 1 ) {\n if ( sc -> unicodeenc >= 0 && sc -> unicodeenc <= 0xffff ) {\n avail [ sc -> unicodeenc ] = i ;\n ++ cnt ;\n }\n for ( altuni = sc -> altuni ;\n altuni != NULL ;\n altuni = altuni -> next ) {\n if ( altuni -> unienc <= 0xffff && altuni -> vs == - 1 && altuni -> fid == 0 ) {\n avail [ altuni -> unienc ] = i ;\n ++ cnt ;\n }\n }\n }\n }\n }\n if ( issymbol ) {\n memset ( avail , 0xff , 0xf020 * sizeof ( uint32 ) ) ;\n memset ( avail + 0xf100 , 0xff , 0x0eff * sizeof ( uint32 ) ) ;\n }\n j = - 1 ;\n for ( i = segcnt = 0 ;\n i < 65536 ;\n ++ i ) {\n if ( avail [ i ] != 0xffffffff && j == - 1 ) {\n j = i ;\n ++ segcnt ;\n }\n else if ( j != - 1 && avail [ i ] == 0xffffffff ) j = - 1 ;\n }\n cmapseg = calloc ( segcnt + 1 , sizeof ( struct cmapseg ) ) ;\n ranges = malloc ( cnt * sizeof ( int16 ) ) ;\n j = - 1 ;\n for ( i = segcnt = 0 ;\n i < 65536 ;\n ++ i ) {\n if ( avail [ i ] != 0xffffffff && j == - 1 ) {\n j = i ;\n cmapseg [ segcnt ] . start = j ;\n ++ segcnt ;\n }\n else if ( j != - 1 && avail [ i ] == 0xffffffff ) {\n cmapseg [ segcnt - 1 ] . end = i - 1 ;\n j = - 1 ;\n }\n }\n if ( j != - 1 ) cmapseg [ segcnt - 1 ] . end = i - 1 ;\n cmapseg [ segcnt ] . start = cmapseg [ segcnt ] . end = 0xffff ;\n cmapseg [ segcnt ++ ] . delta = 1 ;\n rpos = 0 ;\n for ( i = 0 ;\n i < segcnt - 1 ;\n ++ i ) {\n l = avail [ cmapseg [ i ] . start ] ;\n sc = sf -> glyphs [ l ] ;\n delta = sc -> ttf_glyph - cmapseg [ i ] . start ;\n for ( j = cmapseg [ i ] . start ;\n j <= cmapseg [ i ] . end ;\n ++ j ) {\n l = avail [ j ] ;\n sc = sf -> glyphs [ l ] ;\n if ( delta != sc -> ttf_glyph - j ) break ;\n }\n if ( j > cmapseg [ i ] . end ) cmapseg [ i ] . delta = delta ;\n else {\n cmapseg [ i ] . rangeoff = ( rpos + ( segcnt - i ) ) * sizeof ( int16 ) ;\n for ( j = cmapseg [ i ] . start ;\n j <= cmapseg [ i ] . end ;\n ++ j ) {\n l = avail [ j ] ;\n sc = sf -> glyphs [ l ] ;\n ranges [ rpos ++ ] = sc -> ttf_glyph ;\n }\n }\n }\n free ( avail ) ;\n putshort ( format4 , 4 ) ;\n putshort ( format4 , ( 8 + 4 * segcnt + rpos ) * sizeof ( int16 ) ) ;\n putshort ( format4 , 0 ) ;\n putshort ( format4 , 2 * segcnt ) ;\n for ( j = 0 , i = 1 ;\n i <= segcnt ;\n i <<= 1 , ++ j ) ;\n putshort ( format4 , i ) ;\n putshort ( format4 , j - 1 ) ;\n putshort ( format4 , 2 * segcnt - i ) ;\n for ( i = 0 ;\n i < segcnt ;\n ++ i ) putshort ( format4 , cmapseg [ i ] . end ) ;\n putshort ( format4 , 0 ) ;\n for ( i = 0 ;\n i < segcnt ;\n ++ i ) putshort ( format4 , cmapseg [ i ] . start ) ;\n for ( i = 0 ;\n i < segcnt ;\n ++ i ) putshort ( format4 , cmapseg [ i ] . delta ) ;\n for ( i = 0 ;\n i < segcnt ;\n ++ i ) putshort ( format4 , cmapseg [ i ] . rangeoff ) ;\n for ( i = 0 ;\n i < rpos ;\n ++ i ) putshort ( format4 , ranges [ i ] ) ;\n free ( ranges ) ;\n free ( cmapseg ) ;\n * ucs2len = ftell ( format4 ) ;\n return ( format4 ) ;\n }"}
{"idx": 11695, "target": 0, "func": "void xsltFreeLocale ( xsltLocale locale ) {\n # ifdef XSLT_LOCALE_XLOCALE freelocale ( locale ) ;\n # endif }"}
{"idx": 11696, "target": 0, "func": "static gcry_err_code_t pubkey_verify ( int algorithm , gcry_mpi_t hash , gcry_mpi_t * data , gcry_mpi_t * pkey , struct pk_encoding_ctx * ctx ) {\n gcry_pk_spec_t * pubkey ;\n gcry_module_t module ;\n gcry_err_code_t rc ;\n int i ;\n if ( DBG_CIPHER && ! fips_mode ( ) ) {\n log_debug ( \"pubkey_verify: algo=%d\\n\" , algorithm ) ;\n for ( i = 0 ;\n i < pubkey_get_npkey ( algorithm ) ;\n i ++ ) log_mpidump ( \" pkey\" , pkey [ i ] ) ;\n for ( i = 0 ;\n i < pubkey_get_nsig ( algorithm ) ;\n i ++ ) log_mpidump ( \" sig\" , data [ i ] ) ;\n log_mpidump ( \" hash\" , hash ) ;\n }\n ath_mutex_lock ( & pubkeys_registered_lock ) ;\n module = _gcry_module_lookup_id ( pubkeys_registered , algorithm ) ;\n if ( module ) {\n pubkey = ( gcry_pk_spec_t * ) module -> spec ;\n rc = pubkey -> verify ( algorithm , hash , data , pkey , ctx -> verify_cmp , ctx , ctx -> flags , ctx -> hash_algo ) ;\n _gcry_module_release ( module ) ;\n goto ready ;\n }\n rc = GPG_ERR_PUBKEY_ALGO ;\n ready : ath_mutex_unlock ( & pubkeys_registered_lock ) ;\n return rc ;\n }"}
{"idx": 11697, "target": 1, "func": "void vp9_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint8_t * dst , ptrdiff_t stride , const uint8_t * above , const uint8_t * left ) {\n type ## _predictor ( dst , stride , size , above , left ) ;\n }\n # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) static INLINE void d207_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n intra_pred_allsizes ( d207 ) static INLINE void d63_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d63 )"}
{"idx": 11698, "target": 0, "func": "void PrintTOCSummary ( Archive * AHX ) {\n ArchiveHandle * AH = ( ArchiveHandle * ) AHX ;\n RestoreOptions * ropt = AH -> public . ropt ;\n TocEntry * te ;\n teSection curSection ;\n OutputContext sav ;\n const char * fmtName ;\n char stamp_str [ 64 ] ;\n sav = SaveOutput ( AH ) ;\n if ( ropt -> filename ) SetOutput ( AH , ropt -> filename , 0 ) ;\n if ( strftime ( stamp_str , sizeof ( stamp_str ) , PGDUMP_STRFTIME_FMT , localtime ( & AH -> createDate ) ) == 0 ) strcpy ( stamp_str , \"[unknown]\" ) ;\n ahprintf ( AH , \";\n\\n;\n Archive created at %s\\n\" , stamp_str ) ;\n ahprintf ( AH , \";\n dbname: %s\\n;\n TOC Entries: %d\\n;\n Compression: %d\\n\" , AH -> archdbname , AH -> tocCount , AH -> compression ) ;\n switch ( AH -> format ) {\n case archCustom : fmtName = \"CUSTOM\" ;\n break ;\n case archDirectory : fmtName = \"DIRECTORY\" ;\n break ;\n case archTar : fmtName = \"TAR\" ;\n break ;\n default : fmtName = \"UNKNOWN\" ;\n }\n ahprintf ( AH , \";\n Dump Version: %d.%d-%d\\n\" , AH -> vmaj , AH -> vmin , AH -> vrev ) ;\n ahprintf ( AH , \";\n Format: %s\\n\" , fmtName ) ;\n ahprintf ( AH , \";\n Integer: %d bytes\\n\" , ( int ) AH -> intSize ) ;\n ahprintf ( AH , \";\n Offset: %d bytes\\n\" , ( int ) AH -> offSize ) ;\n if ( AH -> archiveRemoteVersion ) ahprintf ( AH , \";\n Dumped from database version: %s\\n\" , AH -> archiveRemoteVersion ) ;\n if ( AH -> archiveDumpVersion ) ahprintf ( AH , \";\n Dumped by pg_dump version: %s\\n\" , AH -> archiveDumpVersion ) ;\n ahprintf ( AH , \";\n\\n;\n\\n;\n Selected TOC Entries:\\n;\n\\n\" ) ;\n curSection = SECTION_PRE_DATA ;\n for ( te = AH -> toc -> next ;\n te != AH -> toc ;\n te = te -> next ) {\n if ( te -> section != SECTION_NONE ) curSection = te -> section ;\n if ( ropt -> verbose || ( _tocEntryRequired ( te , curSection , ropt ) & ( REQ_SCHEMA | REQ_DATA ) ) != 0 ) ahprintf ( AH , \"%d;\n %u %u %s %s %s %s\\n\" , te -> dumpId , te -> catalogId . tableoid , te -> catalogId . oid , te -> desc , te -> namespace ? te -> namespace : \"-\" , te -> tag , te -> owner ) ;\n if ( ropt -> verbose && te -> nDeps > 0 ) {\n int i ;\n ahprintf ( AH , \";\n\\tdepends on:\" ) ;\n for ( i = 0 ;\n i < te -> nDeps ;\n i ++ ) ahprintf ( AH , \" %d\" , te -> dependencies [ i ] ) ;\n ahprintf ( AH , \"\\n\" ) ;\n }\n }\n if ( ropt -> strict_names ) StrictNamesCheck ( ropt ) ;\n if ( ropt -> filename ) RestoreOutput ( AH , sav ) ;\n }"}
{"idx": 11699, "target": 0, "func": "static gpointer btatt_handle_value ( packet_info * pinfo ) {\n guint16 * value_data ;\n value_data = ( guint16 * ) p_get_proto_data ( pinfo -> pool , pinfo , proto_btatt , PROTO_DATA_BTATT_HANDLE ) ;\n if ( value_data ) return GUINT_TO_POINTER ( ( gulong ) * value_data ) ;\n return NULL ;\n }"}
{"idx": 11700, "target": 0, "func": "unsigned int vp9_variance ## W ## x ## H ## _c ( const uint8_t * a , int a_stride , const uint8_t * b , int b_stride , unsigned int * sse ) {\n int sum ;\n variance ( a , a_stride , b , b_stride , W , H , sse , & sum ) ;\n return * sse - ( ( ( int64_t ) sum * sum ) / ( W * H ) ) ;\n \\ }\n # define SUBPIX_VAR ( W , H ) unsigned int vp9_sub_pixel_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp2 , W , dst , dst_stride , sse ) ;\n \\ }\n # define SUBPIX_AVG_VAR ( W , H ) unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 )"}
{"idx": 11701, "target": 0, "func": "TEST_F ( WebUsbDetectorTest , NotificationClickedWhileNoTabUrlIsLandingPage ) {\n GURL landing_page_1 ( kLandingPage_1 ) ;\n GURL landing_page_2 ( kLandingPage_2 ) ;\n scoped_refptr < device : : MockUsbDevice > device_1 ( new device : : MockUsbDevice ( 0 , 1 , \"Google\" , kProductName_1 , \"002\" , landing_page_1 ) ) ;\n std : : string guid_1 = device_1 -> guid ( ) ;\n TabStripModel * tab_strip_model = browser ( ) -> tab_strip_model ( ) ;\n base : : HistogramTester histogram_tester ;\n Initialize ( ) ;\n device_client_ . usb_service ( ) -> AddDevice ( device_1 ) ;\n message_center : : Notification * notification_1 = message_center_ -> FindVisibleNotificationById ( guid_1 ) ;\n ASSERT_TRUE ( notification_1 != nullptr ) ;\n EXPECT_EQ ( 0 , tab_strip_model -> count ( ) ) ;\n notification_1 -> Click ( ) ;\n EXPECT_EQ ( 1 , tab_strip_model -> count ( ) ) ;\n content : : WebContents * web_contents = tab_strip_model -> GetWebContentsAt ( tab_strip_model -> active_index ( ) ) ;\n EXPECT_EQ ( landing_page_1 , web_contents -> GetURL ( ) ) ;\n ASSERT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_1 ) == nullptr ) ;\n histogram_tester . ExpectUniqueSample ( \"WebUsb.NotificationClosed\" , 2 , 1 ) ;\n }"}
{"idx": 11702, "target": 1, "func": "static int libopus_decode ( AVCodecContext * avc , void * data , int * got_frame_ptr , AVPacket * pkt ) {\n struct libopus_context * opus = avc -> priv_data ;\n AVFrame * frame = data ;\n int ret , nb_samples ;\n frame -> nb_samples = MAX_FRAME_SIZE ;\n ret = ff_get_buffer ( avc , frame ) ;\n if ( ret < 0 ) {\n av_log ( avc , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( avc -> sample_fmt == AV_SAMPLE_FMT_S16 ) nb_samples = opus_multistream_decode ( opus -> dec , pkt -> data , pkt -> size , ( opus_int16 * ) frame -> data [ 0 ] , frame -> nb_samples , 0 ) ;\n else nb_samples = opus_multistream_decode_float ( opus -> dec , pkt -> data , pkt -> size , ( float * ) frame -> data [ 0 ] , frame -> nb_samples , 0 ) ;\n if ( nb_samples < 0 ) {\n av_log ( avc , AV_LOG_ERROR , \"Decoding error: %s\\n\" , opus_strerror ( nb_samples ) ) ;\n return ff_opus_error_to_averror ( nb_samples ) ;\n }\n frame -> nb_samples = nb_samples ;\n * got_frame_ptr = 1 ;\n return pkt -> size ;\n }"}
{"idx": 11703, "target": 1, "func": "ssize_t pcnet_receive ( NetClientState * nc , const uint8_t * buf , size_t size_ ) {\n PCNetState * s = qemu_get_nic_opaque ( nc ) ;\n int is_padr = 0 , is_bcast = 0 , is_ladr = 0 ;\n uint8_t buf1 [ 60 ] ;\n int remaining ;\n int crc_err = 0 ;\n int size = size_ ;\n if ( CSR_DRX ( s ) || CSR_STOP ( s ) || CSR_SPND ( s ) || ! size || ( CSR_LOOP ( s ) && ! s -> looptest ) ) {\n return - 1 ;\n }\n # ifdef PCNET_DEBUG printf ( \"pcnet_receive size=%d\\n\" , size ) ;\n # endif if ( size < MIN_BUF_SIZE ) {\n memcpy ( buf1 , buf , size ) ;\n memset ( buf1 + size , 0 , MIN_BUF_SIZE - size ) ;\n buf = buf1 ;\n size = MIN_BUF_SIZE ;\n }\n if ( CSR_PROM ( s ) || ( is_padr = padr_match ( s , buf , size ) ) || ( is_bcast = padr_bcast ( s , buf , size ) ) || ( is_ladr = ladr_match ( s , buf , size ) ) ) {\n pcnet_rdte_poll ( s ) ;\n if ( ! ( CSR_CRST ( s ) & 0x8000 ) && s -> rdra ) {\n struct pcnet_RMD rmd ;\n int rcvrc = CSR_RCVRC ( s ) - 1 , i ;\n hwaddr nrda ;\n for ( i = CSR_RCVRL ( s ) - 1 ;\n i > 0 ;\n i -- , rcvrc -- ) {\n if ( rcvrc <= 1 ) rcvrc = CSR_RCVRL ( s ) ;\n nrda = s -> rdra + ( CSR_RCVRL ( s ) - rcvrc ) * ( BCR_SWSTYLE ( s ) ? 16 : 8 ) ;\n RMDLOAD ( & rmd , nrda ) ;\n if ( GET_FIELD ( rmd . status , RMDS , OWN ) ) {\n # ifdef PCNET_DEBUG_RMD printf ( \"pcnet - scan buffer: RCVRC=%d PREV_RCVRC=%d\\n\" , rcvrc , CSR_RCVRC ( s ) ) ;\n # endif CSR_RCVRC ( s ) = rcvrc ;\n pcnet_rdte_poll ( s ) ;\n break ;\n }\n }\n }\n if ( ! ( CSR_CRST ( s ) & 0x8000 ) ) {\n # ifdef PCNET_DEBUG_RMD printf ( \"pcnet - no buffer: RCVRC=%d\\n\" , CSR_RCVRC ( s ) ) ;\n # endif s -> csr [ 0 ] |= 0x1000 ;\n CSR_MISSC ( s ) ++ ;\n }\n else {\n uint8_t * src = s -> buffer ;\n hwaddr crda = CSR_CRDA ( s ) ;\n struct pcnet_RMD rmd ;\n int pktcount = 0 ;\n if ( ! s -> looptest ) {\n if ( size > 4092 ) {\n # ifdef PCNET_DEBUG_RMD fprintf ( stderr , \"pcnet: truncates rx packet.\\n\" ) ;\n # endif size = 4092 ;\n }\n memcpy ( src , buf , size ) ;\n src [ size ] = 0 ;\n src [ size + 1 ] = 0 ;\n src [ size + 2 ] = 0 ;\n src [ size + 3 ] = 0 ;\n size += 4 ;\n }\n else if ( s -> looptest == PCNET_LOOPTEST_CRC || ! CSR_DXMTFCS ( s ) || size < MIN_BUF_SIZE + 4 ) {\n uint32_t fcs = ~ 0 ;\n uint8_t * p = src ;\n while ( p != & src [ size ] ) CRC ( fcs , * p ++ ) ;\n * ( uint32_t * ) p = htonl ( fcs ) ;\n size += 4 ;\n }\n else {\n uint32_t fcs = ~ 0 ;\n uint8_t * p = src ;\n while ( p != & src [ size ] ) CRC ( fcs , * p ++ ) ;\n crc_err = ( * ( uint32_t * ) p != htonl ( fcs ) ) ;\n }\n # ifdef PCNET_DEBUG_MATCH PRINT_PKTHDR ( buf ) ;\n # endif RMDLOAD ( & rmd , PHYSADDR ( s , crda ) ) ;\n SET_FIELD ( & rmd . status , RMDS , STP , 1 ) ;\n # define PCNET_RECV_STORE ( ) do {\n int count = MIN ( 4096 - GET_FIELD ( rmd . buf_length , RMDL , BCNT ) , remaining ) ;\n hwaddr rbadr = PHYSADDR ( s , rmd . rbadr ) ;\n s -> phys_mem_write ( s -> dma_opaque , rbadr , src , count , CSR_BSWP ( s ) ) ;\n src += count ;\n remaining -= count ;\n SET_FIELD ( & rmd . status , RMDS , OWN , 0 ) ;\n RMDSTORE ( & rmd , PHYSADDR ( s , crda ) ) ;\n pktcount ++ ;\n \\ }\n while ( 0 ) remaining = size ;\n PCNET_RECV_STORE ( ) ;\n if ( ( remaining > 0 ) && CSR_NRDA ( s ) ) {\n hwaddr nrda = CSR_NRDA ( s ) ;\n # ifdef PCNET_DEBUG_RMD PRINT_RMD ( & rmd ) ;\n # endif RMDLOAD ( & rmd , PHYSADDR ( s , nrda ) ) ;\n if ( GET_FIELD ( rmd . status , RMDS , OWN ) ) {\n crda = nrda ;\n PCNET_RECV_STORE ( ) ;\n # ifdef PCNET_DEBUG_RMD PRINT_RMD ( & rmd ) ;\n # endif if ( ( remaining > 0 ) && ( nrda = CSR_NNRD ( s ) ) ) {\n RMDLOAD ( & rmd , PHYSADDR ( s , nrda ) ) ;\n if ( GET_FIELD ( rmd . status , RMDS , OWN ) ) {\n crda = nrda ;\n PCNET_RECV_STORE ( ) ;\n }\n }\n }\n }\n # undef PCNET_RECV_STORE RMDLOAD ( & rmd , PHYSADDR ( s , crda ) ) ;\n if ( remaining == 0 ) {\n SET_FIELD ( & rmd . msg_length , RMDM , MCNT , size ) ;\n SET_FIELD ( & rmd . status , RMDS , ENP , 1 ) ;\n SET_FIELD ( & rmd . status , RMDS , PAM , ! CSR_PROM ( s ) && is_padr ) ;\n SET_FIELD ( & rmd . status , RMDS , LFAM , ! CSR_PROM ( s ) && is_ladr ) ;\n SET_FIELD ( & rmd . status , RMDS , BAM , ! CSR_PROM ( s ) && is_bcast ) ;\n if ( crc_err ) {\n SET_FIELD ( & rmd . status , RMDS , CRC , 1 ) ;\n SET_FIELD ( & rmd . status , RMDS , ERR , 1 ) ;\n }\n }\n else {\n SET_FIELD ( & rmd . status , RMDS , OFLO , 1 ) ;\n SET_FIELD ( & rmd . status , RMDS , BUFF , 1 ) ;\n SET_FIELD ( & rmd . status , RMDS , ERR , 1 ) ;\n }\n RMDSTORE ( & rmd , PHYSADDR ( s , crda ) ) ;\n s -> csr [ 0 ] |= 0x0400 ;\n # ifdef PCNET_DEBUG printf ( \"RCVRC=%d CRDA=0x%08x BLKS=%d\\n\" , CSR_RCVRC ( s ) , PHYSADDR ( s , CSR_CRDA ( s ) ) , pktcount ) ;\n # endif # ifdef PCNET_DEBUG_RMD PRINT_RMD ( & rmd ) ;\n # endif while ( pktcount -- ) {\n if ( CSR_RCVRC ( s ) <= 1 ) {\n CSR_RCVRC ( s ) = CSR_RCVRL ( s ) ;\n }\n else {\n CSR_RCVRC ( s ) -- ;\n }\n }\n pcnet_rdte_poll ( s ) ;\n }\n }\n pcnet_poll ( s ) ;\n pcnet_update_irq ( s ) ;\n return size_ ;\n }"}
{"idx": 11704, "target": 0, "func": "static int dissect_h245_FECData ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_FECData , FECData_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 11705, "target": 0, "func": "static int dissect_FORM_REL ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep , int struct_start ) {\n proto_item * item ;\n proto_tree * subtree ;\n guint32 flags ;\n int item_start = offset ;\n char * name = NULL ;\n subtree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_FORM_REL , & item , \"Form\" ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_form_flags , & flags ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_form_name , struct_start , & name ) ;\n if ( name ) {\n proto_item_append_text ( item , \": %s\" , name ) ;\n g_free ( name ) ;\n }\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_form_width , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_form_height , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_form_left_margin , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_form_top_margin , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_form_horiz_len , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_form_vert_len , NULL ) ;\n proto_item_set_len ( item , offset - item_start ) ;\n return offset ;\n }"}
{"idx": 11706, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n Indeo3DecodeContext * ctx = avctx -> priv_data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n AVFrame * frame = data ;\n int res ;\n res = decode_frame_headers ( ctx , avctx , buf , buf_size ) ;\n if ( res < 0 ) return res ;\n if ( res ) {\n * got_frame = 0 ;\n return buf_size ;\n }\n if ( ctx -> frame_flags & BS_NONREF && ( avctx -> skip_frame >= AVDISCARD_NONREF ) ) return 0 ;\n if ( ! ( ctx -> frame_flags & BS_KEYFRAME ) && avctx -> skip_frame >= AVDISCARD_NONKEY ) return 0 ;\n ctx -> buf_sel = ( ctx -> frame_flags >> BS_BUFFER ) & 1 ;\n if ( ( res = decode_plane ( ctx , avctx , ctx -> planes , ctx -> y_data_ptr , ctx -> y_data_size , 40 ) ) ) return res ;\n if ( ( res = decode_plane ( ctx , avctx , & ctx -> planes [ 1 ] , ctx -> u_data_ptr , ctx -> u_data_size , 10 ) ) ) return res ;\n if ( ( res = decode_plane ( ctx , avctx , & ctx -> planes [ 2 ] , ctx -> v_data_ptr , ctx -> v_data_size , 10 ) ) ) return res ;\n if ( ( res = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( ctx -> avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return res ;\n }\n output_plane ( & ctx -> planes [ 0 ] , ctx -> buf_sel , frame -> data [ 0 ] , frame -> linesize [ 0 ] , avctx -> height ) ;\n output_plane ( & ctx -> planes [ 1 ] , ctx -> buf_sel , frame -> data [ 1 ] , frame -> linesize [ 1 ] , ( avctx -> height + 3 ) >> 2 ) ;\n output_plane ( & ctx -> planes [ 2 ] , ctx -> buf_sel , frame -> data [ 2 ] , frame -> linesize [ 2 ] , ( avctx -> height + 3 ) >> 2 ) ;\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 11707, "target": 0, "func": "static void e1000e_rss_parse_packet ( E1000ECore * core , struct NetRxPkt * pkt , E1000E_RSSInfo * info ) {\n trace_e1000e_rx_rss_started ( ) ;\n if ( ! e1000e_rss_enabled ( core ) ) {\n info -> enabled = false ;\n info -> hash = 0 ;\n info -> queue = 0 ;\n info -> type = 0 ;\n trace_e1000e_rx_rss_disabled ( ) ;\n return ;\n }\n info -> enabled = true ;\n info -> type = e1000e_rss_get_hash_type ( core , pkt ) ;\n trace_e1000e_rx_rss_type ( info -> type ) ;\n if ( info -> type == E1000_MRQ_RSS_TYPE_NONE ) {\n info -> hash = 0 ;\n info -> queue = 0 ;\n return ;\n }\n info -> hash = e1000e_rss_calc_hash ( core , pkt , info ) ;\n info -> queue = E1000_RSS_QUEUE ( & core -> mac [ RETA ] , info -> hash ) ;\n }"}
{"idx": 11708, "target": 0, "func": "void vp9_xform_quant ( MACROBLOCK * x , int plane , int block , BLOCK_SIZE plane_bsize , TX_SIZE tx_size ) {\n MACROBLOCKD * const xd = & x -> e_mbd ;\n const struct macroblock_plane * const p = & x -> plane [ plane ] ;\n const struct macroblockd_plane * const pd = & xd -> plane [ plane ] ;\n const scan_order * const scan_order = & vp9_default_scan_orders [ tx_size ] ;\n tran_low_t * const coeff = BLOCK_OFFSET ( p -> coeff , block ) ;\n tran_low_t * const qcoeff = BLOCK_OFFSET ( p -> qcoeff , block ) ;\n tran_low_t * const dqcoeff = BLOCK_OFFSET ( pd -> dqcoeff , block ) ;\n uint16_t * const eob = & p -> eobs [ block ] ;\n const int diff_stride = 4 * num_4x4_blocks_wide_lookup [ plane_bsize ] ;\n int i , j ;\n const int16_t * src_diff ;\n txfrm_block_to_raster_xy ( plane_bsize , tx_size , block , & i , & j ) ;\n src_diff = & p -> src_diff [ 4 * ( j * diff_stride + i ) ] ;\n switch ( tx_size ) {\n case TX_32X32 : fdct32x32 ( x -> use_lp32x32fdct , src_diff , coeff , diff_stride ) ;\n vp9_quantize_b_32x32 ( coeff , 1024 , x -> skip_block , p -> zbin , p -> round , p -> quant , p -> quant_shift , qcoeff , dqcoeff , pd -> dequant , p -> zbin_extra , eob , scan_order -> scan , scan_order -> iscan ) ;\n break ;\n case TX_16X16 : vp9_fdct16x16 ( src_diff , coeff , diff_stride ) ;\n vp9_quantize_b ( coeff , 256 , x -> skip_block , p -> zbin , p -> round , p -> quant , p -> quant_shift , qcoeff , dqcoeff , pd -> dequant , p -> zbin_extra , eob , scan_order -> scan , scan_order -> iscan ) ;\n break ;\n case TX_8X8 : vp9_fdct8x8 ( src_diff , coeff , diff_stride ) ;\n vp9_quantize_b ( coeff , 64 , x -> skip_block , p -> zbin , p -> round , p -> quant , p -> quant_shift , qcoeff , dqcoeff , pd -> dequant , p -> zbin_extra , eob , scan_order -> scan , scan_order -> iscan ) ;\n break ;\n case TX_4X4 : x -> fwd_txm4x4 ( src_diff , coeff , diff_stride ) ;\n vp9_quantize_b ( coeff , 16 , x -> skip_block , p -> zbin , p -> round , p -> quant , p -> quant_shift , qcoeff , dqcoeff , pd -> dequant , p -> zbin_extra , eob , scan_order -> scan , scan_order -> iscan ) ;\n break ;\n default : assert ( 0 ) ;\n break ;\n }\n }"}
{"idx": 11709, "target": 0, "func": "cmsBool _cmsRegisterTagPlugin ( cmsContext id , cmsPluginBase * Data ) {\n cmsPluginTag * Plugin = ( cmsPluginTag * ) Data ;\n _cmsTagLinkedList * pt ;\n _cmsTagPluginChunkType * TagPluginChunk = ( _cmsTagPluginChunkType * ) _cmsContextGetClientChunk ( id , TagPlugin ) ;\n if ( Data == NULL ) {\n TagPluginChunk -> Tag = NULL ;\n return TRUE ;\n }\n pt = ( _cmsTagLinkedList * ) _cmsPluginMalloc ( id , sizeof ( _cmsTagLinkedList ) ) ;\n if ( pt == NULL ) return FALSE ;\n pt -> Signature = Plugin -> Signature ;\n pt -> Descriptor = Plugin -> Descriptor ;\n pt -> Next = TagPluginChunk -> Tag ;\n TagPluginChunk -> Tag = pt ;\n return TRUE ;\n }"}
{"idx": 11710, "target": 0, "func": "static int get_ref_frame_flags ( const VP9_COMP * cpi ) {\n const int * const map = cpi -> common . ref_frame_map ;\n const int gold_is_last = map [ cpi -> gld_fb_idx ] == map [ cpi -> lst_fb_idx ] ;\n const int alt_is_last = map [ cpi -> alt_fb_idx ] == map [ cpi -> lst_fb_idx ] ;\n const int gold_is_alt = map [ cpi -> gld_fb_idx ] == map [ cpi -> alt_fb_idx ] ;\n int flags = VP9_ALT_FLAG | VP9_GOLD_FLAG | VP9_LAST_FLAG ;\n if ( gold_is_last ) flags &= ~ VP9_GOLD_FLAG ;\n if ( cpi -> rc . frames_till_gf_update_due == INT_MAX && ! is_two_pass_svc ( cpi ) ) flags &= ~ VP9_GOLD_FLAG ;\n if ( alt_is_last ) flags &= ~ VP9_ALT_FLAG ;\n if ( gold_is_alt ) flags &= ~ VP9_ALT_FLAG ;\n return flags ;\n }"}
{"idx": 11711, "target": 0, "func": "CURLcode Curl_add_custom_headers ( struct connectdata * conn , bool is_connect , Curl_send_buffer * req_buffer ) {\n char * ptr ;\n struct curl_slist * h [ 2 ] ;\n struct curl_slist * headers ;\n int numlists = 1 ;\n struct Curl_easy * data = conn -> data ;\n int i ;\n enum proxy_use proxy ;\n if ( is_connect ) proxy = HEADER_CONNECT ;\n else proxy = conn -> bits . httpproxy && ! conn -> bits . tunnel_proxy ? HEADER_PROXY : HEADER_SERVER ;\n switch ( proxy ) {\n case HEADER_SERVER : h [ 0 ] = data -> set . headers ;\n break ;\n case HEADER_PROXY : h [ 0 ] = data -> set . headers ;\n if ( data -> set . sep_headers ) {\n h [ 1 ] = data -> set . proxyheaders ;\n numlists ++ ;\n }\n break ;\n case HEADER_CONNECT : if ( data -> set . sep_headers ) h [ 0 ] = data -> set . proxyheaders ;\n else h [ 0 ] = data -> set . headers ;\n break ;\n }\n for ( i = 0 ;\n i < numlists ;\n i ++ ) {\n headers = h [ i ] ;\n while ( headers ) {\n ptr = strchr ( headers -> data , ':' ) ;\n if ( ptr ) {\n ptr ++ ;\n while ( * ptr && ISSPACE ( * ptr ) ) ptr ++ ;\n if ( * ptr ) {\n if ( conn -> allocptr . host && checkprefix ( \"Host:\" , headers -> data ) ) ;\n else if ( data -> set . httpreq == HTTPREQ_POST_FORM && checkprefix ( \"Content-Type:\" , headers -> data ) ) ;\n else if ( conn -> bits . authneg && checkprefix ( \"Content-Length\" , headers -> data ) ) ;\n else if ( conn -> allocptr . te && checkprefix ( \"Connection\" , headers -> data ) ) ;\n else if ( ( conn -> httpversion == 20 ) && checkprefix ( \"Transfer-Encoding:\" , headers -> data ) ) ;\n else {\n CURLcode result = Curl_add_bufferf ( req_buffer , \"%s\\r\\n\" , headers -> data ) ;\n if ( result ) return result ;\n }\n }\n }\n else {\n ptr = strchr ( headers -> data , ';\n' ) ;\n if ( ptr ) {\n ptr ++ ;\n while ( * ptr && ISSPACE ( * ptr ) ) ptr ++ ;\n if ( * ptr ) {\n }\n else {\n if ( * ( -- ptr ) == ';\n' ) {\n CURLcode result ;\n * ptr = ':' ;\n result = Curl_add_bufferf ( req_buffer , \"%s\\r\\n\" , headers -> data ) ;\n if ( result ) return result ;\n }\n }\n }\n }\n headers = headers -> next ;\n }\n }\n return CURLE_OK ;\n }"}
{"idx": 11712, "target": 0, "func": "static int writekeys ( MI_SORT_PARAM * sort_param ) {\n register uint i ;\n uchar * key ;\n MI_INFO * info = sort_param -> sort_info -> info ;\n uchar * buff = sort_param -> record ;\n my_off_t filepos = sort_param -> filepos ;\n DBUG_ENTER ( \"writekeys\" ) ;\n key = info -> lastkey + info -> s -> base . max_key_length ;\n for ( i = 0 ;\n i < info -> s -> base . keys ;\n i ++ ) {\n if ( mi_is_key_active ( info -> s -> state . key_map , i ) ) {\n if ( info -> s -> keyinfo [ i ] . flag & HA_FULLTEXT ) {\n if ( _mi_ft_add ( info , i , key , buff , filepos ) ) goto err ;\n }\n # ifdef HAVE_SPATIAL else if ( info -> s -> keyinfo [ i ] . flag & HA_SPATIAL ) {\n uint key_length = _mi_make_key ( info , i , key , buff , filepos ) ;\n if ( rtree_insert ( info , i , key , key_length ) ) goto err ;\n }\n # endif else {\n uint key_length = _mi_make_key ( info , i , key , buff , filepos ) ;\n if ( _mi_ck_write ( info , i , key , key_length ) ) goto err ;\n }\n }\n }\n DBUG_RETURN ( 0 ) ;\n err : if ( my_errno == HA_ERR_FOUND_DUPP_KEY ) {\n info -> errkey = ( int ) i ;\n while ( i -- > 0 ) {\n if ( mi_is_key_active ( info -> s -> state . key_map , i ) ) {\n if ( info -> s -> keyinfo [ i ] . flag & HA_FULLTEXT ) {\n if ( _mi_ft_del ( info , i , key , buff , filepos ) ) break ;\n }\n else {\n uint key_length = _mi_make_key ( info , i , key , buff , filepos ) ;\n if ( _mi_ck_delete ( info , i , key , key_length ) ) break ;\n }\n }\n }\n }\n if ( sort_param -> calc_checksum ) sort_param -> sort_info -> param -> glob_crc -= info -> checksum ;\n DBUG_PRINT ( \"error\" , ( \"errno: %d\" , my_errno ) ) ;\n DBUG_RETURN ( - 1 ) ;\n }"}
{"idx": 11713, "target": 0, "func": "static void row_dim_write ( zval * object , zval * member , zval * value TSRMLS_DC ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"This PDORow is not from a writable result set\" ) ;\n }"}
{"idx": 11714, "target": 0, "func": "void putlong ( FILE * file , int val ) {\n putc ( ( val >> 24 ) & 0xff , file ) ;\n putc ( ( val >> 16 ) & 0xff , file ) ;\n putc ( ( val >> 8 ) & 0xff , file ) ;\n putc ( val & 0xff , file ) ;\n }"}
{"idx": 11715, "target": 1, "func": "static int mpc8_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n MPCContext * c = avctx -> priv_data ;\n GetBitContext gb2 , * gb = & gb2 ;\n int i , j , k , ch , cnt , res , t ;\n Band * bands = c -> bands ;\n int off ;\n int maxband , keyframe ;\n int last [ 2 ] ;\n frame -> nb_samples = MPC_FRAME_SIZE ;\n if ( ( res = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return res ;\n }\n keyframe = c -> cur_frame == 0 ;\n if ( keyframe ) {\n memset ( c -> Q , 0 , sizeof ( c -> Q ) ) ;\n c -> last_bits_used = 0 ;\n }\n init_get_bits ( gb , buf , buf_size * 8 ) ;\n skip_bits ( gb , c -> last_bits_used & 7 ) ;\n if ( keyframe ) maxband = mpc8_get_mod_golomb ( gb , c -> maxbands + 1 ) ;\n else {\n maxband = c -> last_max_band + get_vlc2 ( gb , band_vlc . table , MPC8_BANDS_BITS , 2 ) ;\n if ( maxband > 32 ) maxband -= 33 ;\n }\n if ( maxband > c -> maxbands + 1 ) return AVERROR_INVALIDDATA ;\n c -> last_max_band = maxband ;\n if ( maxband ) {\n last [ 0 ] = last [ 1 ] = 0 ;\n for ( i = maxband - 1 ;\n i >= 0 ;\n i -- ) {\n for ( ch = 0 ;\n ch < 2 ;\n ch ++ ) {\n last [ ch ] = get_vlc2 ( gb , res_vlc [ last [ ch ] > 2 ] . table , MPC8_RES_BITS , 2 ) + last [ ch ] ;\n if ( last [ ch ] > 15 ) last [ ch ] -= 17 ;\n bands [ i ] . res [ ch ] = last [ ch ] ;\n }\n }\n if ( c -> MSS ) {\n int mask ;\n cnt = 0 ;\n for ( i = 0 ;\n i < maxband ;\n i ++ ) if ( bands [ i ] . res [ 0 ] || bands [ i ] . res [ 1 ] ) cnt ++ ;\n t = mpc8_get_mod_golomb ( gb , cnt ) ;\n mask = mpc8_get_mask ( gb , cnt , t ) ;\n for ( i = maxband - 1 ;\n i >= 0 ;\n i -- ) if ( bands [ i ] . res [ 0 ] || bands [ i ] . res [ 1 ] ) {\n bands [ i ] . msf = mask & 1 ;\n mask >>= 1 ;\n }\n }\n }\n for ( i = maxband ;\n i < c -> maxbands ;\n i ++ ) bands [ i ] . res [ 0 ] = bands [ i ] . res [ 1 ] = 0 ;\n if ( keyframe ) {\n for ( i = 0 ;\n i < 32 ;\n i ++ ) c -> oldDSCF [ 0 ] [ i ] = c -> oldDSCF [ 1 ] [ i ] = 1 ;\n }\n for ( i = 0 ;\n i < maxband ;\n i ++ ) {\n if ( bands [ i ] . res [ 0 ] || bands [ i ] . res [ 1 ] ) {\n cnt = ! ! bands [ i ] . res [ 0 ] + ! ! bands [ i ] . res [ 1 ] - 1 ;\n if ( cnt >= 0 ) {\n t = get_vlc2 ( gb , scfi_vlc [ cnt ] . table , scfi_vlc [ cnt ] . bits , 1 ) ;\n if ( bands [ i ] . res [ 0 ] ) bands [ i ] . scfi [ 0 ] = t >> ( 2 * cnt ) ;\n if ( bands [ i ] . res [ 1 ] ) bands [ i ] . scfi [ 1 ] = t & 3 ;\n }\n }\n }\n for ( i = 0 ;\n i < maxband ;\n i ++ ) {\n for ( ch = 0 ;\n ch < 2 ;\n ch ++ ) {\n if ( ! bands [ i ] . res [ ch ] ) continue ;\n if ( c -> oldDSCF [ ch ] [ i ] ) {\n bands [ i ] . scf_idx [ ch ] [ 0 ] = get_bits ( gb , 7 ) - 6 ;\n c -> oldDSCF [ ch ] [ i ] = 0 ;\n }\n else {\n t = get_vlc2 ( gb , dscf_vlc [ 1 ] . table , MPC8_DSCF1_BITS , 2 ) ;\n if ( t == 64 ) t += get_bits ( gb , 6 ) ;\n bands [ i ] . scf_idx [ ch ] [ 0 ] = ( ( bands [ i ] . scf_idx [ ch ] [ 2 ] + t - 25 ) & 0x7F ) - 6 ;\n }\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n if ( ( bands [ i ] . scfi [ ch ] << j ) & 2 ) bands [ i ] . scf_idx [ ch ] [ j + 1 ] = bands [ i ] . scf_idx [ ch ] [ j ] ;\n else {\n t = get_vlc2 ( gb , dscf_vlc [ 0 ] . table , MPC8_DSCF0_BITS , 2 ) ;\n if ( t == 31 ) t = 64 + get_bits ( gb , 6 ) ;\n bands [ i ] . scf_idx [ ch ] [ j + 1 ] = ( ( bands [ i ] . scf_idx [ ch ] [ j ] + t - 25 ) & 0x7F ) - 6 ;\n }\n }\n }\n }\n for ( i = 0 , off = 0 ;\n i < maxband ;\n i ++ , off += SAMPLES_PER_BAND ) {\n for ( ch = 0 ;\n ch < 2 ;\n ch ++ ) {\n res = bands [ i ] . res [ ch ] ;\n switch ( res ) {\n case - 1 : for ( j = 0 ;\n j < SAMPLES_PER_BAND ;\n j ++ ) c -> Q [ ch ] [ off + j ] = ( av_lfg_get ( & c -> rnd ) & 0x3FC ) - 510 ;\n break ;\n case 0 : break ;\n case 1 : for ( j = 0 ;\n j < SAMPLES_PER_BAND ;\n j += SAMPLES_PER_BAND / 2 ) {\n cnt = get_vlc2 ( gb , q1_vlc . table , MPC8_Q1_BITS , 2 ) ;\n t = mpc8_get_mask ( gb , 18 , cnt ) ;\n for ( k = 0 ;\n k < SAMPLES_PER_BAND / 2 ;\n k ++ , t <<= 1 ) c -> Q [ ch ] [ off + j + k ] = ( t & 0x20000 ) ? ( get_bits1 ( gb ) << 1 ) - 1 : 0 ;\n }\n break ;\n case 2 : cnt = 6 ;\n for ( j = 0 ;\n j < SAMPLES_PER_BAND ;\n j += 3 ) {\n t = get_vlc2 ( gb , q2_vlc [ cnt > 3 ] . table , MPC8_Q2_BITS , 2 ) ;\n c -> Q [ ch ] [ off + j + 0 ] = mpc8_idx50 [ t ] ;\n c -> Q [ ch ] [ off + j + 1 ] = mpc8_idx51 [ t ] ;\n c -> Q [ ch ] [ off + j + 2 ] = mpc8_idx52 [ t ] ;\n cnt = ( cnt >> 1 ) + mpc8_huffq2 [ t ] ;\n }\n break ;\n case 3 : case 4 : for ( j = 0 ;\n j < SAMPLES_PER_BAND ;\n j += 2 ) {\n t = get_vlc2 ( gb , q3_vlc [ res - 3 ] . table , MPC8_Q3_BITS , 2 ) + q3_offsets [ res - 3 ] ;\n c -> Q [ ch ] [ off + j + 1 ] = t >> 4 ;\n c -> Q [ ch ] [ off + j + 0 ] = ( t & 8 ) ? ( t & 0xF ) - 16 : ( t & 0xF ) ;\n }\n break ;\n case 5 : case 6 : case 7 : case 8 : cnt = 2 * mpc8_thres [ res ] ;\n for ( j = 0 ;\n j < SAMPLES_PER_BAND ;\n j ++ ) {\n t = get_vlc2 ( gb , quant_vlc [ res - 5 ] [ cnt > mpc8_thres [ res ] ] . table , quant_vlc [ res - 5 ] [ cnt > mpc8_thres [ res ] ] . bits , 2 ) + quant_offsets [ res - 5 ] ;\n c -> Q [ ch ] [ off + j ] = t ;\n cnt = ( cnt >> 1 ) + FFABS ( c -> Q [ ch ] [ off + j ] ) ;\n }\n break ;\n default : for ( j = 0 ;\n j < SAMPLES_PER_BAND ;\n j ++ ) {\n c -> Q [ ch ] [ off + j ] = get_vlc2 ( gb , q9up_vlc . table , MPC8_Q9UP_BITS , 2 ) ;\n if ( res != 9 ) {\n c -> Q [ ch ] [ off + j ] <<= res - 9 ;\n c -> Q [ ch ] [ off + j ] |= get_bits ( gb , res - 9 ) ;\n }\n c -> Q [ ch ] [ off + j ] -= ( 1 << ( res - 2 ) ) - 1 ;\n }\n }\n }\n }\n ff_mpc_dequantize_and_synth ( c , maxband - 1 , ( int16_t * * ) frame -> extended_data , avctx -> channels ) ;\n c -> cur_frame ++ ;\n c -> last_bits_used = get_bits_count ( gb ) ;\n if ( get_bits_left ( gb ) < 8 ) c -> last_bits_used = buf_size << 3 ;\n if ( c -> cur_frame >= c -> frames ) c -> cur_frame = 0 ;\n * got_frame_ptr = 1 ;\n return c -> cur_frame ? c -> last_bits_used >> 3 : buf_size ;\n }"}
{"idx": 11716, "target": 0, "func": "static int chacha_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * inp , size_t len ) {\n EVP_CHACHA_KEY * key = data ( ctx ) ;\n unsigned int n , rem , ctr32 ;\n if ( ( n = key -> partial_len ) ) {\n while ( len && n < CHACHA_BLK_SIZE ) {\n * out ++ = * inp ++ ^ key -> buf [ n ++ ] ;\n len -- ;\n }\n key -> partial_len = n ;\n if ( len == 0 ) return 1 ;\n if ( n == CHACHA_BLK_SIZE ) {\n key -> partial_len = 0 ;\n key -> counter [ 0 ] ++ ;\n if ( key -> counter [ 0 ] == 0 ) key -> counter [ 1 ] ++ ;\n }\n }\n rem = ( unsigned int ) ( len % CHACHA_BLK_SIZE ) ;\n len -= rem ;\n ctr32 = key -> counter [ 0 ] ;\n while ( len >= CHACHA_BLK_SIZE ) {\n size_t blocks = len / CHACHA_BLK_SIZE ;\n if ( sizeof ( size_t ) > sizeof ( unsigned int ) && blocks > ( 1U << 28 ) ) blocks = ( 1U << 28 ) ;\n ctr32 += ( unsigned int ) blocks ;\n if ( ctr32 < blocks ) {\n blocks -= ctr32 ;\n ctr32 = 0 ;\n }\n blocks *= CHACHA_BLK_SIZE ;\n ChaCha20_ctr32 ( out , inp , blocks , key -> key . d , key -> counter ) ;\n len -= blocks ;\n inp += blocks ;\n out += blocks ;\n key -> counter [ 0 ] = ctr32 ;\n if ( ctr32 == 0 ) key -> counter [ 1 ] ++ ;\n }\n if ( rem ) {\n memset ( key -> buf , 0 , sizeof ( key -> buf ) ) ;\n ChaCha20_ctr32 ( key -> buf , key -> buf , CHACHA_BLK_SIZE , key -> key . d , key -> counter ) ;\n for ( n = 0 ;\n n < rem ;\n n ++ ) out [ n ] = inp [ n ] ^ key -> buf [ n ] ;\n key -> partial_len = rem ;\n }\n return 1 ;\n }"}
{"idx": 11717, "target": 0, "func": "static int dissect_h245_RefPictureSelection ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_RefPictureSelection , RefPictureSelection_sequence ) ;\n return offset ;\n }"}
{"idx": 11718, "target": 0, "func": "static int freev ( struct vars * v , int err ) {\n if ( v -> re != NULL ) rfree ( v -> re ) ;\n if ( v -> subs != v -> sub10 ) FREE ( v -> subs ) ;\n if ( v -> nfa != NULL ) freenfa ( v -> nfa ) ;\n if ( v -> tree != NULL ) freesubre ( v , v -> tree ) ;\n if ( v -> treechain != NULL ) cleanst ( v ) ;\n if ( v -> cv != NULL ) freecvec ( v -> cv ) ;\n if ( v -> cv2 != NULL ) freecvec ( v -> cv2 ) ;\n if ( v -> lacons != NULL ) freelacons ( v -> lacons , v -> nlacons ) ;\n ERR ( err ) ;\n return v -> err ;\n }"}
{"idx": 11719, "target": 0, "func": "static int decorrelate ( TAKDecContext * s , int c1 , int c2 , int length ) {\n GetBitContext * gb = & s -> gb ;\n int32_t * p1 = s -> decoded [ c1 ] + 1 ;\n int32_t * p2 = s -> decoded [ c2 ] + 1 ;\n int i ;\n int dshift , dfactor ;\n switch ( s -> dmode ) {\n case 1 : for ( i = 0 ;\n i < length ;\n i ++ ) {\n int32_t a = p1 [ i ] ;\n int32_t b = p2 [ i ] ;\n p2 [ i ] = a + b ;\n }\n break ;\n case 2 : for ( i = 0 ;\n i < length ;\n i ++ ) {\n int32_t a = p1 [ i ] ;\n int32_t b = p2 [ i ] ;\n p1 [ i ] = b - a ;\n }\n break ;\n case 3 : for ( i = 0 ;\n i < length ;\n i ++ ) {\n int32_t a = p1 [ i ] ;\n int32_t b = p2 [ i ] ;\n a -= b >> 1 ;\n p1 [ i ] = a ;\n p2 [ i ] = a + b ;\n }\n break ;\n case 4 : FFSWAP ( int32_t * , p1 , p2 ) ;\n case 5 : dshift = get_bits_esc4 ( gb ) ;\n dfactor = get_sbits ( gb , 10 ) ;\n for ( i = 0 ;\n i < length ;\n i ++ ) {\n int32_t a = p1 [ i ] ;\n int32_t b = p2 [ i ] ;\n b = dfactor * ( b >> dshift ) + 128 >> 8 << dshift ;\n p1 [ i ] = b - a ;\n }\n break ;\n case 6 : FFSWAP ( int32_t * , p1 , p2 ) ;\n case 7 : {\n LOCAL_ALIGNED_16 ( int16_t , filter , [ MAX_PREDICTORS ] ) ;\n int length2 , order_half , filter_order , dval1 , dval2 ;\n int av_uninit ( code_size ) ;\n memset ( filter , 0 , MAX_PREDICTORS * sizeof ( * filter ) ) ;\n if ( length < 256 ) return AVERROR_INVALIDDATA ;\n dshift = get_bits_esc4 ( gb ) ;\n filter_order = 8 << get_bits1 ( gb ) ;\n dval1 = get_bits1 ( gb ) ;\n dval2 = get_bits1 ( gb ) ;\n for ( i = 0 ;\n i < filter_order ;\n i ++ ) {\n if ( ! ( i & 3 ) ) code_size = 14 - get_bits ( gb , 3 ) ;\n filter [ i ] = get_sbits ( gb , code_size ) ;\n }\n order_half = filter_order / 2 ;\n length2 = length - ( filter_order - 1 ) ;\n if ( dval1 ) {\n for ( i = 0 ;\n i < order_half ;\n i ++ ) {\n int32_t a = p1 [ i ] ;\n int32_t b = p2 [ i ] ;\n p1 [ i ] = a + b ;\n }\n }\n if ( dval2 ) {\n for ( i = length2 + order_half ;\n i < length ;\n i ++ ) {\n int32_t a = p1 [ i ] ;\n int32_t b = p2 [ i ] ;\n p1 [ i ] = a + b ;\n }\n }\n av_fast_malloc ( & s -> residues , & s -> residues_buf_size , FFALIGN ( length + 16 , 16 ) * sizeof ( * s -> residues ) ) ;\n if ( ! s -> residues ) return AVERROR ( ENOMEM ) ;\n memset ( s -> residues , 0 , s -> residues_buf_size ) ;\n for ( i = 0 ;\n i < length ;\n i ++ ) s -> residues [ i ] = p2 [ i ] >> dshift ;\n p1 += order_half ;\n for ( i = 0 ;\n i < length2 ;\n i ++ ) {\n int v = 1 << 9 ;\n v += s -> dsp . scalarproduct_int16 ( & s -> residues [ i ] , filter , FFALIGN ( filter_order , 16 ) ) ;\n p1 [ i ] = ( av_clip ( v >> 10 , - 8192 , 8191 ) << dshift ) - p1 [ i ] ;\n }\n emms_c ( ) ;\n break ;\n }\n }\n return 0 ;\n }"}
{"idx": 11720, "target": 0, "func": "static int eightsvx_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n EightSvxContext * esc = avctx -> priv_data ;\n AVFrame * frame = data ;\n int buf_size ;\n int ch , ret ;\n int is_compr = ( avctx -> codec_id != AV_CODEC_ID_PCM_S8_PLANAR ) ;\n if ( avpkt -> data ) {\n int hdr_size = is_compr ? 2 : 0 ;\n int chan_size = ( avpkt -> size - hdr_size * avctx -> channels ) / avctx -> channels ;\n if ( avpkt -> size < hdr_size * avctx -> channels ) {\n av_log ( avctx , AV_LOG_ERROR , \"packet size is too small\\n\" ) ;\n return AVERROR ( EINVAL ) ;\n }\n if ( esc -> data [ 0 ] ) {\n av_log ( avctx , AV_LOG_ERROR , \"unexpected data after first packet\\n\" ) ;\n return AVERROR ( EINVAL ) ;\n }\n if ( is_compr ) {\n esc -> fib_acc [ 0 ] = avpkt -> data [ 1 ] + 128 ;\n if ( avctx -> channels == 2 ) esc -> fib_acc [ 1 ] = avpkt -> data [ 2 + chan_size + 1 ] + 128 ;\n }\n esc -> data_idx = 0 ;\n esc -> data_size = chan_size ;\n if ( ! ( esc -> data [ 0 ] = av_malloc ( chan_size ) ) ) return AVERROR ( ENOMEM ) ;\n if ( avctx -> channels == 2 ) {\n if ( ! ( esc -> data [ 1 ] = av_malloc ( chan_size ) ) ) {\n av_freep ( & esc -> data [ 0 ] ) ;\n return AVERROR ( ENOMEM ) ;\n }\n }\n memcpy ( esc -> data [ 0 ] , & avpkt -> data [ hdr_size ] , chan_size ) ;\n if ( avctx -> channels == 2 ) memcpy ( esc -> data [ 1 ] , & avpkt -> data [ 2 * hdr_size + chan_size ] , chan_size ) ;\n }\n if ( ! esc -> data [ 0 ] ) {\n av_log ( avctx , AV_LOG_ERROR , \"unexpected empty packet\\n\" ) ;\n return AVERROR ( EINVAL ) ;\n }\n buf_size = FFMIN ( MAX_FRAME_SIZE , esc -> data_size - esc -> data_idx ) ;\n if ( buf_size <= 0 ) {\n * got_frame_ptr = 0 ;\n return avpkt -> size ;\n }\n frame -> nb_samples = buf_size * ( is_compr + 1 ) ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n for ( ch = 0 ;\n ch < avctx -> channels ;\n ch ++ ) {\n if ( is_compr ) {\n delta_decode ( frame -> data [ ch ] , & esc -> data [ ch ] [ esc -> data_idx ] , buf_size , & esc -> fib_acc [ ch ] , esc -> table ) ;\n }\n else {\n raw_decode ( frame -> data [ ch ] , & esc -> data [ ch ] [ esc -> data_idx ] , buf_size ) ;\n }\n }\n esc -> data_idx += buf_size ;\n * got_frame_ptr = 1 ;\n return avpkt -> size ;\n }"}
{"idx": 11721, "target": 1, "func": "static int ipvideo_decode_block_opcode_0xE ( IpvideoContext * s ) {\n int y ;\n unsigned char pix ;\n pix = bytestream2_get_byte ( & s -> stream_ptr ) ;\n for ( y = 0 ;\n y < 8 ;\n y ++ ) {\n memset ( s -> pixel_ptr , pix , 8 ) ;\n s -> pixel_ptr += s -> stride ;\n }\n return 0 ;\n }"}
{"idx": 11722, "target": 0, "func": "static void write_variables ( struct recvbuf * rbufp , int restrict_mask ) {\n const struct ctl_var * v ;\n int ext_var ;\n char * valuep ;\n long val ;\n size_t octets ;\n char * vareqv ;\n const char * t ;\n char * tt ;\n val = 0 ;\n if ( res_associd != 0 ) {\n ctl_error ( CERR_PERMISSION ) ;\n return ;\n }\n rpkt . status = htons ( ctlsysstatus ( ) ) ;\n while ( ( v = ctl_getitem ( sys_var , & valuep ) ) != 0 ) {\n ext_var = 0 ;\n if ( v -> flags & EOV ) {\n if ( ( v = ctl_getitem ( ext_sys_var , & valuep ) ) != 0 ) {\n if ( v -> flags & EOV ) {\n ctl_error ( CERR_UNKNOWNVAR ) ;\n return ;\n }\n ext_var = 1 ;\n }\n else {\n break ;\n }\n }\n if ( ! ( v -> flags & CAN_WRITE ) ) {\n ctl_error ( CERR_PERMISSION ) ;\n return ;\n }\n if ( ! ext_var && ( * valuep == '\\0' || ! atoint ( valuep , & val ) ) ) {\n ctl_error ( CERR_BADFMT ) ;\n return ;\n }\n if ( ! ext_var && ( val & ~ LEAP_NOTINSYNC ) != 0 ) {\n ctl_error ( CERR_BADVALUE ) ;\n return ;\n }\n if ( ext_var ) {\n octets = strlen ( v -> text ) + strlen ( valuep ) + 2 ;\n vareqv = emalloc ( octets ) ;\n tt = vareqv ;\n t = v -> text ;\n while ( * t && * t != '=' ) * tt ++ = * t ++ ;\n * tt ++ = '=' ;\n memcpy ( tt , valuep , 1 + strlen ( valuep ) ) ;\n set_sys_var ( vareqv , 1 + strlen ( vareqv ) , v -> flags ) ;\n free ( vareqv ) ;\n }\n else {\n ctl_error ( CERR_UNSPEC ) ;\n return ;\n }\n }\n ctl_flushpkt ( 0 ) ;\n }"}
{"idx": 11723, "target": 0, "func": "static int dissect_h225_ResourcesAvailableIndicate ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_ResourcesAvailableIndicate , ResourcesAvailableIndicate_sequence ) ;\n return offset ;\n }"}
{"idx": 11724, "target": 0, "func": "static void mark_desktop_file_executable_task_thread_func ( GTask * task , gpointer source_object , gpointer task_data , GCancellable * cancellable ) {\n MarkTrustedJob * job = task_data ;\n CommonJob * common ;\n common = ( CommonJob * ) job ;\n nautilus_progress_info_start ( job -> common . progress ) ;\n mark_desktop_file_executable ( common , cancellable , job -> file , job -> interactive ) ;\n }"}
{"idx": 11725, "target": 0, "func": "static int matroska_parse_cluster ( MatroskaDemuxContext * matroska ) {\n MatroskaCluster cluster = {\n 0 }\n ;\n EbmlList * blocks_list ;\n MatroskaBlock * blocks ;\n int i , res ;\n int64_t pos ;\n if ( ! matroska -> contains_ssa ) return matroska_parse_cluster_incremental ( matroska ) ;\n pos = avio_tell ( matroska -> ctx -> pb ) ;\n matroska -> prev_pkt = NULL ;\n if ( matroska -> current_id ) pos -= 4 ;\n res = ebml_parse ( matroska , matroska_clusters , & cluster ) ;\n blocks_list = & cluster . blocks ;\n blocks = blocks_list -> elem ;\n for ( i = 0 ;\n i < blocks_list -> nb_elem && ! res ;\n i ++ ) if ( blocks [ i ] . bin . size > 0 && blocks [ i ] . bin . data ) {\n int is_keyframe = blocks [ i ] . non_simple ? ! blocks [ i ] . reference : - 1 ;\n if ( ! blocks [ i ] . non_simple ) blocks [ i ] . duration = AV_NOPTS_VALUE ;\n res = matroska_parse_block ( matroska , blocks [ i ] . bin . data , blocks [ i ] . bin . size , blocks [ i ] . bin . pos , cluster . timecode , blocks [ i ] . duration , is_keyframe , pos ) ;\n }\n ebml_free ( matroska_cluster , & cluster ) ;\n return res ;\n }"}
{"idx": 11726, "target": 0, "func": "static void check_locale_and_encoding ( DbInfo * olddb , DbInfo * newdb ) {\n if ( olddb -> db_encoding != newdb -> db_encoding ) pg_fatal ( \"encodings for database \\\"%s\\\" do not match: old \\\"%s\\\", new \\\"%s\\\"\\n\" , olddb -> db_name , pg_encoding_to_char ( olddb -> db_encoding ) , pg_encoding_to_char ( newdb -> db_encoding ) ) ;\n if ( ! equivalent_locale ( LC_COLLATE , olddb -> db_collate , newdb -> db_collate ) ) pg_fatal ( \"lc_collate values for database \\\"%s\\\" do not match: old \\\"%s\\\", new \\\"%s\\\"\\n\" , olddb -> db_name , olddb -> db_collate , newdb -> db_collate ) ;\n if ( ! equivalent_locale ( LC_CTYPE , olddb -> db_ctype , newdb -> db_ctype ) ) pg_fatal ( \"lc_ctype values for database \\\"%s\\\" do not match: old \\\"%s\\\", new \\\"%s\\\"\\n\" , olddb -> db_name , olddb -> db_ctype , newdb -> db_ctype ) ;\n }"}
{"idx": 11727, "target": 0, "func": "double vp9_vaq_rdmult_ratio ( int energy ) {\n ENERGY_IN_BOUNDS ( energy ) ;\n vp9_clear_system_state ( ) ;\n return RDMULT_RATIO ( energy ) ;\n }"}
{"idx": 11728, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( BookmarkBubbleSignInDelegateTest , OnSignInLinkClickedReusesBlank ) {\n int starting_tab_count = browser ( ) -> tab_strip_model ( ) -> count ( ) ;\n scoped_ptr < BookmarkBubbleDelegate > delegate ;\n delegate . reset ( new BookmarkBubbleSignInDelegate ( browser ( ) ) ) ;\n delegate -> OnSignInLinkClicked ( ) ;\n if ( kHasProfileChooser ) {\n EXPECT_TRUE ( ProfileChooserView : : IsShowing ( ) ) ;\n EXPECT_EQ ( starting_tab_count , browser ( ) -> tab_strip_model ( ) -> count ( ) ) ;\n }\n else {\n EXPECT_EQ ( starting_tab_count , browser ( ) -> tab_strip_model ( ) -> count ( ) ) ;\n }\n }"}
{"idx": 11729, "target": 0, "func": "VALUE rb_dlhandle_disable_close ( VALUE self ) {\n struct dl_handle * dlhandle ;\n Data_Get_Struct ( self , struct dl_handle , dlhandle ) ;\n dlhandle -> enable_close = 0 ;\n return Qnil ;\n }"}
{"idx": 11730, "target": 0, "func": "int ttfFont__Open_aux ( ttfFont * self , ttfInterpreter * tti , gx_ttfReader * r , gs_font_type42 * pfont , const gs_matrix * char_tm , const gs_log2_scale_point * log2_scale , bool design_grid ) {\n gs_point char_size , subpix_origin ;\n gs_matrix post_transform ;\n unsigned int nTTC = 0 ;\n bool dg ;\n decompose_matrix ( pfont , char_tm , log2_scale , design_grid , & char_size , & subpix_origin , & post_transform , & dg ) ;\n switch ( ttfFont__Open ( tti , self , & r -> super , nTTC , char_size . x , char_size . y , dg ) ) {\n case fNoError : return 0 ;\n case fMemoryError : return_error ( gs_error_VMerror ) ;\n case fUnimplemented : return_error ( gs_error_unregistered ) ;\n case fBadInstruction : WarnBadInstruction ( pfont , - 1 ) ;\n goto recover ;\n case fPatented : WarnPatented ( pfont , self , \"The font\" ) ;\n recover : self -> patented = true ;\n return 0 ;\n default : {\n int code = r -> super . Error ( & r -> super ) ;\n if ( code < 0 ) return code ;\n return_error ( gs_error_invalidfont ) ;\n }\n }\n }"}
{"idx": 11731, "target": 0, "func": "static void write_mb_info ( MpegEncContext * s ) {\n uint8_t * ptr = s -> mb_info_ptr + s -> mb_info_size - 12 ;\n int offset = put_bits_count ( & s -> pb ) ;\n int mba = s -> mb_x + s -> mb_width * ( s -> mb_y % s -> gob_index ) ;\n int gobn = s -> mb_y / s -> gob_index ;\n int pred_x , pred_y ;\n if ( CONFIG_H263_ENCODER ) ff_h263_pred_motion ( s , 0 , 0 , & pred_x , & pred_y ) ;\n bytestream_put_le32 ( & ptr , offset ) ;\n bytestream_put_byte ( & ptr , s -> qscale ) ;\n bytestream_put_byte ( & ptr , gobn ) ;\n bytestream_put_le16 ( & ptr , mba ) ;\n bytestream_put_byte ( & ptr , pred_x ) ;\n bytestream_put_byte ( & ptr , pred_y ) ;\n bytestream_put_byte ( & ptr , 0 ) ;\n bytestream_put_byte ( & ptr , 0 ) ;\n }"}
{"idx": 11732, "target": 0, "func": "static void nlm_register_unmatched_msg ( packet_info * pinfo , tvbuff_t * tvb , int offset ) {\n nlm_msg_res_unmatched_data * umd ;\n nlm_msg_res_unmatched_data * old_umd ;\n umd = ( nlm_msg_res_unmatched_data * ) g_malloc ( sizeof ( nlm_msg_res_unmatched_data ) ) ;\n umd -> req_frame = pinfo -> fd -> num ;\n umd -> ns = pinfo -> fd -> abs_ts ;\n umd -> cookie_len = tvb_get_ntohl ( tvb , offset ) ;\n umd -> cookie = ( const guint8 * ) tvb_memdup ( NULL , tvb , offset + 4 , umd -> cookie_len ) ;\n old_umd = ( nlm_msg_res_unmatched_data * ) g_hash_table_lookup ( nlm_msg_res_unmatched , ( gconstpointer ) umd ) ;\n if ( old_umd ) {\n g_hash_table_remove ( nlm_msg_res_unmatched , ( gconstpointer ) old_umd ) ;\n }\n g_hash_table_insert ( nlm_msg_res_unmatched , ( gpointer ) umd , ( gpointer ) umd ) ;\n }"}
{"idx": 11733, "target": 0, "func": "static void proto_tree_set_float ( field_info * fi , float value ) {\n fvalue_set_floating ( & fi -> value , value ) ;\n }"}
{"idx": 11734, "target": 0, "func": "static void file_change_deleteall ( struct branch * b ) {\n release_tree_content_recursive ( b -> branch_tree . tree ) ;\n hashclr ( b -> branch_tree . versions [ 0 ] . sha1 ) ;\n hashclr ( b -> branch_tree . versions [ 1 ] . sha1 ) ;\n load_tree ( & b -> branch_tree ) ;\n b -> num_notes = 0 ;\n }"}
{"idx": 11735, "target": 0, "func": "void vp9_update_mv_count ( VP9_COMMON * cm , const MACROBLOCKD * xd ) {\n const MODE_INFO * mi = xd -> mi [ 0 ] . src_mi ;\n const MB_MODE_INFO * const mbmi = & mi -> mbmi ;\n if ( mbmi -> sb_type < BLOCK_8X8 ) {\n const int num_4x4_w = num_4x4_blocks_wide_lookup [ mbmi -> sb_type ] ;\n const int num_4x4_h = num_4x4_blocks_high_lookup [ mbmi -> sb_type ] ;\n int idx , idy ;\n for ( idy = 0 ;\n idy < 2 ;\n idy += num_4x4_h ) {\n for ( idx = 0 ;\n idx < 2 ;\n idx += num_4x4_w ) {\n const int i = idy * 2 + idx ;\n if ( mi -> bmi [ i ] . as_mode == NEWMV ) inc_mvs ( mbmi , mi -> bmi [ i ] . as_mv , & cm -> counts . mv ) ;\n }\n }\n }\n else {\n if ( mbmi -> mode == NEWMV ) inc_mvs ( mbmi , mbmi -> mv , & cm -> counts . mv ) ;\n }\n }"}
{"idx": 11736, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( AppApiTest , MAYBE_BookmarkAppGetsNormalProcess ) {\n ExtensionService * service = extensions : : ExtensionSystem : : Get ( browser ( ) -> profile ( ) ) -> extension_service ( ) ;\n extensions : : ProcessMap * process_map = extensions : : ProcessMap : : Get ( browser ( ) -> profile ( ) ) ;\n GURL base_url = GetTestBaseURL ( \"app_process\" ) ;\n std : : string error ;\n scoped_refptr < const Extension > extension ;\n {\n base : : ThreadRestrictions : : ScopedAllowIO allow_io ;\n extension = extensions : : file_util : : LoadExtension ( test_data_dir_ . AppendASCII ( \"app_process\" ) , extensions : : Manifest : : UNPACKED , Extension : : FROM_BOOKMARK , & error ) ;\n }\n service -> OnExtensionInstalled ( extension . get ( ) , syncer : : StringOrdinal : : CreateInitialOrdinal ( ) , extensions : : kInstallFlagInstallImmediately ) ;\n ASSERT_TRUE ( extension . get ( ) ) ;\n ASSERT_TRUE ( extension -> from_bookmark ( ) ) ;\n ui_test_utils : : NavigateToURLWithDisposition ( browser ( ) , base_url . Resolve ( \"path1/empty.html\" ) , WindowOpenDisposition : : NEW_FOREGROUND_TAB , ui_test_utils : : BROWSER_TEST_WAIT_FOR_NAVIGATION ) ;\n EXPECT_FALSE ( process_map -> Contains ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 1 ) -> GetRenderProcessHost ( ) -> GetID ( ) ) ) ;\n EXPECT_FALSE ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 1 ) -> GetWebUI ( ) ) ;\n content : : WindowedNotificationObserver tab_added_observer ( chrome : : NOTIFICATION_TAB_ADDED , content : : NotificationService : : AllSources ( ) ) ;\n chrome : : NewTab ( browser ( ) ) ;\n tab_added_observer . Wait ( ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , base_url . Resolve ( \"path2/empty.html\" ) ) ;\n EXPECT_FALSE ( process_map -> Contains ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 2 ) -> GetRenderProcessHost ( ) -> GetID ( ) ) ) ;\n EXPECT_FALSE ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 2 ) -> GetWebUI ( ) ) ;\n ASSERT_EQ ( 3 , browser ( ) -> tab_strip_model ( ) -> count ( ) ) ;\n WebContents * tab = browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 1 ) ;\n EXPECT_NE ( tab -> GetRenderProcessHost ( ) , browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 2 ) -> GetRenderProcessHost ( ) ) ;\n ASSERT_EQ ( 1u , chrome : : GetBrowserCount ( browser ( ) -> profile ( ) ) ) ;\n OpenWindow ( tab , base_url . Resolve ( \"path1/empty.html\" ) , true , true , NULL ) ;\n OpenWindow ( tab , base_url . Resolve ( \"path2/empty.html\" ) , true , true , NULL ) ;\n const GURL & app_url ( base_url . Resolve ( \"path1/empty.html\" ) ) ;\n const GURL & non_app_url ( base_url . Resolve ( \"path3/empty.html\" ) ) ;\n RenderViewHost * host2 = browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 2 ) -> GetRenderViewHost ( ) ;\n NavigateInRenderer ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 2 ) , non_app_url ) ;\n EXPECT_EQ ( host2 -> GetProcess ( ) , browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 2 ) -> GetRenderProcessHost ( ) ) ;\n NavigateInRenderer ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 2 ) , app_url ) ;\n EXPECT_EQ ( host2 -> GetProcess ( ) , browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 2 ) -> GetRenderProcessHost ( ) ) ;\n }"}
{"idx": 11737, "target": 0, "func": "PHP_NAMED_FUNCTION ( zif_locale_get_default ) {\n RETURN_STRING ( intl_locale_get_default ( TSRMLS_C ) , TRUE ) ;\n }"}
{"idx": 11738, "target": 1, "func": "static void _cmd_window_show_opt ( const char * data , int right ) {\n MAIN_WINDOW_REC * parent ;\n WINDOW_REC * window ;\n if ( * data == '\\0' ) cmd_return_error ( CMDERR_NOT_ENOUGH_PARAMS ) ;\n if ( is_numeric ( data , '\\0' ) ) {\n window = window_find_refnum ( atoi ( data ) ) ;\n if ( window == NULL ) {\n printformat_window ( active_win , MSGLEVEL_CLIENTERROR , TXT_REFNUM_NOT_FOUND , data ) ;\n }\n }\n else {\n window = window_find_item ( active_win -> active_server , data ) ;\n }\n if ( window == NULL || is_window_visible ( window ) ) return ;\n if ( WINDOW_GUI ( window ) -> sticky ) {\n if ( ! settings_get_bool ( \"autounstick_windows\" ) ) {\n printformat_window ( active_win , MSGLEVEL_CLIENTERROR , TXT_CANT_SHOW_STICKY_WINDOWS ) ;\n return ;\n }\n }\n parent = mainwindow_create ( right ) ;\n parent -> active = window ;\n gui_window_reparent ( window , parent ) ;\n if ( settings_get_bool ( \"autostick_split_windows\" ) ) gui_window_set_sticky ( window ) ;\n active_mainwin = NULL ;\n window_set_active ( window ) ;\n }"}
{"idx": 11739, "target": 0, "func": "void vp9_setup_pc_tree ( VP9_COMMON * cm , VP9_COMP * cpi ) {\n int i , j ;\n const int leaf_nodes = 64 ;\n const int tree_nodes = 64 + 16 + 4 + 1 ;\n int pc_tree_index = 0 ;\n PC_TREE * this_pc ;\n PICK_MODE_CONTEXT * this_leaf ;\n int square_index = 1 ;\n int nodes ;\n vpx_free ( cpi -> leaf_tree ) ;\n CHECK_MEM_ERROR ( cm , cpi -> leaf_tree , vpx_calloc ( leaf_nodes , sizeof ( * cpi -> leaf_tree ) ) ) ;\n vpx_free ( cpi -> pc_tree ) ;\n CHECK_MEM_ERROR ( cm , cpi -> pc_tree , vpx_calloc ( tree_nodes , sizeof ( * cpi -> pc_tree ) ) ) ;\n this_pc = & cpi -> pc_tree [ 0 ] ;\n this_leaf = & cpi -> leaf_tree [ 0 ] ;\n for ( i = 0 ;\n i < leaf_nodes ;\n ++ i ) alloc_mode_context ( cm , 1 , & cpi -> leaf_tree [ i ] ) ;\n for ( pc_tree_index = 0 ;\n pc_tree_index < leaf_nodes ;\n ++ pc_tree_index ) {\n PC_TREE * const tree = & cpi -> pc_tree [ pc_tree_index ] ;\n tree -> block_size = square [ 0 ] ;\n alloc_tree_contexts ( cm , tree , 4 ) ;\n tree -> leaf_split [ 0 ] = this_leaf ++ ;\n for ( j = 1 ;\n j < 4 ;\n j ++ ) tree -> leaf_split [ j ] = tree -> leaf_split [ 0 ] ;\n }\n for ( nodes = 16 ;\n nodes > 0 ;\n nodes >>= 2 ) {\n for ( i = 0 ;\n i < nodes ;\n ++ i ) {\n PC_TREE * const tree = & cpi -> pc_tree [ pc_tree_index ] ;\n alloc_tree_contexts ( cm , tree , 4 << ( 2 * square_index ) ) ;\n tree -> block_size = square [ square_index ] ;\n for ( j = 0 ;\n j < 4 ;\n j ++ ) tree -> split [ j ] = this_pc ++ ;\n ++ pc_tree_index ;\n }\n ++ square_index ;\n }\n cpi -> pc_root = & cpi -> pc_tree [ tree_nodes - 1 ] ;\n cpi -> pc_root [ 0 ] . none . best_mode_index = 2 ;\n }"}
{"idx": 11740, "target": 0, "func": "static hb_unicode_general_category_t hb_ucdn_general_category ( hb_unicode_funcs_t * ufuncs , hb_codepoint_t unicode , void * user_data HB_UNUSED ) {\n return ( hb_unicode_general_category_t ) ucdn_get_general_category ( unicode ) ;\n }"}
{"idx": 11741, "target": 0, "func": "static void constrain_copy_partitioning ( VP9_COMP * const cpi , const TileInfo * const tile , MODE_INFO * mi_8x8 , MODE_INFO * prev_mi_8x8 , int mi_row , int mi_col , BLOCK_SIZE bsize ) {\n VP9_COMMON * const cm = & cpi -> common ;\n const int mis = cm -> mi_stride ;\n const int row8x8_remaining = tile -> mi_row_end - mi_row ;\n const int col8x8_remaining = tile -> mi_col_end - mi_col ;\n MODE_INFO * const mi_upper_left = cm -> mi + mi_row * mis + mi_col ;\n const int bh = num_8x8_blocks_high_lookup [ bsize ] ;\n const int bw = num_8x8_blocks_wide_lookup [ bsize ] ;\n int block_row , block_col ;\n assert ( ( row8x8_remaining > 0 ) && ( col8x8_remaining > 0 ) ) ;\n if ( ( col8x8_remaining >= MI_BLOCK_SIZE ) && ( row8x8_remaining >= MI_BLOCK_SIZE ) ) {\n for ( block_row = 0 ;\n block_row < MI_BLOCK_SIZE ;\n block_row += bh ) {\n for ( block_col = 0 ;\n block_col < MI_BLOCK_SIZE ;\n block_col += bw ) {\n const int index = block_row * mis + block_col ;\n MODE_INFO * prev_mi = prev_mi_8x8 [ index ] . src_mi ;\n const BLOCK_SIZE sb_type = prev_mi ? prev_mi -> mbmi . sb_type : 0 ;\n if ( prev_mi && sb_type <= bsize ) {\n int block_row2 , block_col2 ;\n for ( block_row2 = 0 ;\n block_row2 < bh ;\n ++ block_row2 ) {\n for ( block_col2 = 0 ;\n block_col2 < bw ;\n ++ block_col2 ) {\n const int index2 = ( block_row + block_row2 ) * mis + block_col + block_col2 ;\n prev_mi = prev_mi_8x8 [ index2 ] . src_mi ;\n if ( prev_mi ) {\n const ptrdiff_t offset = prev_mi - cm -> prev_mi ;\n mi_8x8 [ index2 ] . src_mi = cm -> mi + offset ;\n mi_8x8 [ index2 ] . src_mi -> mbmi . sb_type = prev_mi -> mbmi . sb_type ;\n }\n }\n }\n }\n else {\n mi_8x8 [ index ] . src_mi = mi_upper_left + index ;\n mi_8x8 [ index ] . src_mi -> mbmi . sb_type = bsize ;\n }\n }\n }\n }\n else {\n copy_partitioning ( cm , mi_8x8 , prev_mi_8x8 ) ;\n }\n }"}
{"idx": 11742, "target": 1, "func": "TEST_F ( ExternalProtocolHandlerTest , TestGetBlockStateUnknown ) {\n ExternalProtocolHandler : : BlockState block_state = ExternalProtocolHandler : : GetBlockState ( \"tel\" , profile_ . get ( ) ) ;\n EXPECT_EQ ( ExternalProtocolHandler : : UNKNOWN , block_state ) ;\n EXPECT_TRUE ( local_state_ -> GetDictionary ( prefs : : kExcludedSchemes ) -> empty ( ) ) ;\n EXPECT_FALSE ( profile_ -> GetPrefs ( ) -> GetDictionary ( prefs : : kExcludedSchemes ) -> empty ( ) ) ;\n }"}
{"idx": 11743, "target": 0, "func": "static int dissect_dns_answer ( tvbuff_t * tvb , int offsetx , int dns_data_offset , column_info * cinfo , proto_tree * dns_tree , packet_info * pinfo , gboolean is_mdns ) {\n int len ;\n const guchar * name ;\n gchar * name_out ;\n int name_len ;\n int dns_type ;\n int dns_class ;\n int flush ;\n const char * class_name ;\n const char * type_name ;\n int data_offset ;\n int cur_offset ;\n int data_start ;\n gushort data_len ;\n proto_tree * rr_tree = NULL ;\n proto_item * trr = NULL ;\n data_start = data_offset = offsetx ;\n cur_offset = offsetx ;\n len = get_dns_name_type_class ( tvb , offsetx , dns_data_offset , & name , & name_len , & dns_type , & dns_class ) ;\n data_offset += len ;\n cur_offset += len ;\n if ( is_mdns ) {\n flush = dns_class & C_FLUSH ;\n dns_class &= ~ C_FLUSH ;\n }\n else {\n flush = 0 ;\n }\n type_name = val_to_str_ext ( dns_type , & dns_types_vals_ext , \"Unknown (%d)\" ) ;\n class_name = val_to_str_const ( dns_class , dns_classes , \"Unknown\" ) ;\n data_offset += 4 ;\n cur_offset += 4 ;\n data_len = tvb_get_ntohs ( tvb , data_offset ) ;\n data_offset += 2 ;\n cur_offset += 2 ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \"%s\" , type_name ) ;\n if ( is_mdns && flush ) {\n col_append_str ( cinfo , COL_INFO , \", cache flush\" ) ;\n }\n }\n if ( dns_tree != NULL ) {\n name_out = format_text ( name , strlen ( name ) ) ;\n if ( dns_type != T_OPT ) {\n rr_tree = proto_tree_add_subtree_format ( dns_tree , tvb , offsetx , ( data_offset - data_start ) + data_len , ett_dns_rr , & trr , \"%s: type %s, class %s\" , name_out , type_name , class_name ) ;\n add_rr_to_tree ( rr_tree , tvb , offsetx , name , name_len , dns_type , pinfo , is_mdns ) ;\n }\n else {\n rr_tree = proto_tree_add_subtree_format ( dns_tree , tvb , offsetx , ( data_offset - data_start ) + data_len , ett_dns_rr , & trr , \"%s: type %s\" , name_out , type_name ) ;\n add_opt_rr_to_tree ( rr_tree , tvb , offsetx , name , name_len , is_mdns ) ;\n }\n if ( is_mdns && flush ) {\n proto_item_append_text ( trr , \", cache flush\" ) ;\n }\n }\n if ( data_len == 0 ) {\n return data_offset - data_start ;\n }\n switch ( dns_type ) {\n case T_A : {\n const char * addr ;\n addr = tvb_ip_to_str ( tvb , cur_offset ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , addr ) ;\n }\n proto_item_append_text ( trr , \", addr %s\" , addr ) ;\n proto_tree_add_item ( rr_tree , hf_dns_a , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n if ( dns_use_for_addr_resolution && ( dns_class & 0x7f ) == C_IN ) {\n guint32 addr_int ;\n tvb_memcpy ( tvb , & addr_int , cur_offset , sizeof ( addr_int ) ) ;\n add_ipv4_name ( addr_int , name ) ;\n }\n }\n break ;\n case T_NS : {\n const guchar * ns_name ;\n int ns_name_len ;\n ns_name_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & ns_name ) ;\n name_out = format_text ( ns_name , strlen ( ns_name ) ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name_out ) ;\n }\n proto_item_append_text ( trr , \", ns %s\" , name_out ) ;\n proto_tree_add_string ( rr_tree , hf_dns_ns , tvb , cur_offset , ns_name_len , name_out ) ;\n }\n break ;\n case T_MD : {\n int hostname_len ;\n const guchar * hostname_str ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n hostname_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & hostname_str ) ;\n proto_tree_add_string ( rr_tree , hf_dns_md , tvb , cur_offset , hostname_len , hostname_str ) ;\n }\n break ;\n case T_MF : {\n int hostname_len ;\n const guchar * hostname_str ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n hostname_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & hostname_str ) ;\n proto_tree_add_string ( rr_tree , hf_dns_mf , tvb , cur_offset , hostname_len , hostname_str ) ;\n }\n break ;\n case T_CNAME : {\n const guchar * cname ;\n int cname_len ;\n cname_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & cname ) ;\n name_out = format_text ( cname , strlen ( cname ) ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name_out ) ;\n }\n proto_item_append_text ( trr , \", cname %s\" , name_out ) ;\n proto_tree_add_string ( rr_tree , hf_dns_cname , tvb , cur_offset , cname_len , name_out ) ;\n }\n break ;\n case T_SOA : {\n const guchar * mname ;\n int mname_len ;\n const guchar * rname ;\n int rname_len ;\n proto_item * ti_soa ;\n mname_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & mname ) ;\n name_out = format_text ( mname , strlen ( mname ) ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name_out ) ;\n }\n proto_item_append_text ( trr , \", mname %s\" , name_out ) ;\n proto_tree_add_string ( rr_tree , hf_dns_soa_mname , tvb , cur_offset , mname_len , name_out ) ;\n cur_offset += mname_len ;\n rname_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & rname ) ;\n name_out = format_text ( rname , strlen ( rname ) ) ;\n proto_tree_add_string ( rr_tree , hf_dns_soa_rname , tvb , cur_offset , rname_len , name_out ) ;\n cur_offset += rname_len ;\n proto_tree_add_item ( rr_tree , hf_dns_soa_serial_number , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n cur_offset += 4 ;\n ti_soa = proto_tree_add_item ( rr_tree , hf_dns_soa_refresh_interval , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti_soa , \" (%s)\" , time_secs_to_str ( wmem_packet_scope ( ) , tvb_get_ntohl ( tvb , cur_offset ) ) ) ;\n cur_offset += 4 ;\n ti_soa = proto_tree_add_item ( rr_tree , hf_dns_soa_retry_interval , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti_soa , \" (%s)\" , time_secs_to_str ( wmem_packet_scope ( ) , tvb_get_ntohl ( tvb , cur_offset ) ) ) ;\n cur_offset += 4 ;\n ti_soa = proto_tree_add_item ( rr_tree , hf_dns_soa_expire_limit , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti_soa , \" (%s)\" , time_secs_to_str ( wmem_packet_scope ( ) , tvb_get_ntohl ( tvb , cur_offset ) ) ) ;\n cur_offset += 4 ;\n ti_soa = proto_tree_add_item ( rr_tree , hf_dns_soa_minimum_ttl , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti_soa , \" (%s)\" , time_secs_to_str ( wmem_packet_scope ( ) , tvb_get_ntohl ( tvb , cur_offset ) ) ) ;\n }\n break ;\n case T_MB : {\n int hostname_len ;\n const guchar * hostname_str ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n hostname_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & hostname_str ) ;\n proto_tree_add_string ( rr_tree , hf_dns_mb , tvb , cur_offset , hostname_len , hostname_str ) ;\n }\n break ;\n case T_MG : {\n int hostname_len ;\n const guchar * hostname_str ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n hostname_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & hostname_str ) ;\n proto_tree_add_string ( rr_tree , hf_dns_mg , tvb , cur_offset , hostname_len , hostname_str ) ;\n }\n break ;\n case T_MR : {\n int hostname_len ;\n const guchar * hostname_str ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n hostname_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & hostname_str ) ;\n proto_tree_add_string ( rr_tree , hf_dns_mr , tvb , cur_offset , hostname_len , hostname_str ) ;\n }\n break ;\n case T_NULL : {\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n proto_tree_add_item ( rr_tree , hf_dns_null , tvb , cur_offset , data_len , ENC_NA ) ;\n }\n break ;\n case T_WKS : {\n int rr_len = data_len ;\n const char * wks_addr ;\n guint8 protocol ;\n guint8 bits ;\n int mask ;\n int port_num ;\n int i ;\n proto_item * ti_wks ;\n wmem_strbuf_t * bitnames = wmem_strbuf_new_label ( wmem_packet_scope ( ) ) ;\n wks_addr = tvb_ip_to_str ( tvb , cur_offset ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , wks_addr ) ;\n }\n proto_item_append_text ( trr , \", addr %s\" , wks_addr ) ;\n proto_tree_add_item ( rr_tree , hf_dns_wks_address , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n cur_offset += 4 ;\n rr_len -= 4 ;\n proto_tree_add_item ( rr_tree , hf_dns_wks_protocol , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n protocol = tvb_get_guint8 ( tvb , cur_offset ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n port_num = 0 ;\n while ( rr_len != 0 ) {\n bits = tvb_get_guint8 ( tvb , cur_offset ) ;\n if ( bits != 0 ) {\n mask = 1 << 7 ;\n wmem_strbuf_truncate ( bitnames , 0 ) ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n if ( bits & mask ) {\n if ( wmem_strbuf_get_len ( bitnames ) > 0 ) {\n wmem_strbuf_append ( bitnames , \", \" ) ;\n }\n switch ( protocol ) {\n case IP_PROTO_TCP : wmem_strbuf_append ( bitnames , tcp_port_to_display ( wmem_packet_scope ( ) , port_num ) ) ;\n break ;\n case IP_PROTO_UDP : wmem_strbuf_append ( bitnames , udp_port_to_display ( wmem_packet_scope ( ) , port_num ) ) ;\n break ;\n default : wmem_strbuf_append_printf ( bitnames , \"%u\" , port_num ) ;\n break ;\n }\n }\n mask >>= 1 ;\n port_num ++ ;\n }\n ti_wks = proto_tree_add_item ( rr_tree , hf_dns_wks_bits , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti_wks , \" (%s)\" , wmem_strbuf_get_str ( bitnames ) ) ;\n }\n else {\n port_num += 8 ;\n }\n cur_offset += 1 ;\n rr_len -= 1 ;\n }\n }\n break ;\n case T_PTR : {\n const guchar * pname ;\n int pname_len ;\n pname_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & pname ) ;\n name_out = format_text ( pname , strlen ( pname ) ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name_out ) ;\n }\n proto_item_append_text ( trr , \", %s\" , name_out ) ;\n proto_tree_add_string ( rr_tree , hf_dns_ptr_domain_name , tvb , cur_offset , pname_len , name_out ) ;\n }\n break ;\n case T_HINFO : {\n int cpu_offset ;\n int cpu_len ;\n const char * cpu ;\n int os_offset ;\n int os_len ;\n const char * os ;\n cpu_offset = cur_offset ;\n cpu_len = tvb_get_guint8 ( tvb , cpu_offset ) ;\n cpu = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , cpu_offset + 1 , cpu_len , ENC_ASCII | ENC_NA ) ;\n os_offset = cpu_offset + 1 + cpu_len ;\n os_len = tvb_get_guint8 ( tvb , os_offset ) ;\n os = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , os_offset + 1 , os_len , ENC_ASCII | ENC_NA ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %.*s %.*s\" , cpu_len , cpu , os_len , os ) ;\n }\n proto_item_append_text ( trr , \", CPU %.*s, OS %.*s\" , cpu_len , cpu , os_len , os ) ;\n proto_tree_add_item ( rr_tree , hf_dns_hinfo_cpu_length , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_hinfo_cpu , tvb , cur_offset , cpu_len , ENC_ASCII | ENC_NA ) ;\n cur_offset += cpu_len ;\n proto_tree_add_item ( rr_tree , hf_dns_hinfo_os_length , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_hinfo_os , tvb , cur_offset , os_len , ENC_ASCII | ENC_NA ) ;\n }\n break ;\n case T_MINFO : {\n int rmailbx_len , emailbx_len ;\n const guchar * rmailbx_str , * emailbx_str ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n rmailbx_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & rmailbx_str ) ;\n proto_tree_add_string ( rr_tree , hf_dns_minfo_r_mailbox , tvb , cur_offset , rmailbx_len , rmailbx_str ) ;\n cur_offset += rmailbx_len ;\n emailbx_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & emailbx_str ) ;\n proto_tree_add_string ( rr_tree , hf_dns_minfo_e_mailbox , tvb , cur_offset , emailbx_len , emailbx_str ) ;\n }\n break ;\n case T_MX : {\n guint16 preference = 0 ;\n const guchar * mx_name ;\n int mx_name_len ;\n preference = tvb_get_ntohs ( tvb , cur_offset ) ;\n mx_name_len = get_dns_name ( tvb , cur_offset + 2 , 0 , dns_data_offset , & mx_name ) ;\n name_out = format_text ( mx_name , strlen ( mx_name ) ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %u %s\" , preference , name_out ) ;\n }\n proto_item_append_text ( trr , \", preference %u, mx %s\" , preference , name_out ) ;\n proto_tree_add_item ( rr_tree , hf_dns_mx_preference , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n proto_tree_add_string ( rr_tree , hf_dns_mx_mail_exchange , tvb , cur_offset , mx_name_len , name_out ) ;\n }\n break ;\n case T_TXT : {\n int rr_len = data_len ;\n int txt_offset ;\n int txt_len ;\n txt_offset = cur_offset ;\n while ( rr_len != 0 ) {\n txt_len = tvb_get_guint8 ( tvb , txt_offset ) ;\n proto_tree_add_item ( rr_tree , hf_dns_txt_length , tvb , txt_offset , 1 , ENC_BIG_ENDIAN ) ;\n txt_offset += 1 ;\n rr_len -= 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_txt , tvb , txt_offset , txt_len , ENC_ASCII | ENC_NA ) ;\n txt_offset += txt_len ;\n rr_len -= txt_len ;\n }\n }\n break ;\n case T_RP : {\n int mbox_dname_len , txt_dname_len ;\n const guchar * mbox_dname , * txt_dname ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n mbox_dname_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & mbox_dname ) ;\n proto_tree_add_string ( rr_tree , hf_dns_rp_mailbox , tvb , cur_offset , mbox_dname_len , mbox_dname ) ;\n cur_offset += mbox_dname_len ;\n txt_dname_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & txt_dname ) ;\n proto_tree_add_string ( rr_tree , hf_dns_rp_txt_rr , tvb , cur_offset , txt_dname_len , txt_dname ) ;\n }\n break ;\n case T_AFSDB : {\n const guchar * host_name ;\n int host_name_len ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n host_name_len = get_dns_name ( tvb , cur_offset + 2 , 0 , dns_data_offset , & host_name ) ;\n proto_tree_add_item ( rr_tree , hf_dns_afsdb_subtype , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n proto_tree_add_string ( rr_tree , hf_dns_afsdb_hostname , tvb , cur_offset , host_name_len , host_name ) ;\n }\n break ;\n case T_X25 : {\n guint8 x25_len ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n proto_tree_add_item ( rr_tree , hf_dns_x25_length , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n x25_len = tvb_get_guint8 ( tvb , cur_offset ) ;\n cur_offset += 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_x25_psdn_address , tvb , cur_offset , x25_len , ENC_ASCII | ENC_NA ) ;\n }\n break ;\n case T_ISDN : {\n guint8 isdn_address_len , isdn_sa_len ;\n int rr_len = data_len ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n proto_tree_add_item ( rr_tree , hf_dns_isdn_length , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n isdn_address_len = tvb_get_guint8 ( tvb , cur_offset ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_isdn_address , tvb , cur_offset , isdn_address_len , ENC_ASCII | ENC_NA ) ;\n cur_offset += isdn_address_len ;\n rr_len -= isdn_address_len ;\n if ( rr_len > 1 ) {\n proto_tree_add_item ( rr_tree , hf_dns_isdn_sa_length , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n isdn_sa_len = tvb_get_guint8 ( tvb , cur_offset ) ;\n cur_offset += 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_isdn_sa , tvb , cur_offset , isdn_sa_len , ENC_ASCII | ENC_NA ) ;\n }\n }\n break ;\n case T_RT : {\n const guchar * host_name ;\n int host_name_len ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n host_name_len = get_dns_name ( tvb , cur_offset + 2 , 0 , dns_data_offset , & host_name ) ;\n proto_tree_add_item ( rr_tree , hf_dns_rt_preference , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n proto_tree_add_string ( rr_tree , hf_dns_rt_intermediate_host , tvb , cur_offset , host_name_len , host_name ) ;\n }\n break ;\n case T_NSAP : {\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n proto_tree_add_item ( rr_tree , hf_dns_nsap_rdata , tvb , cur_offset , data_len , ENC_NA ) ;\n }\n break ;\n case T_NSAP_PTR : {\n int nsap_ptr_owner_len ;\n const guchar * nsap_ptr_owner ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n nsap_ptr_owner_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & nsap_ptr_owner ) ;\n proto_tree_add_string ( rr_tree , hf_dns_nsap_ptr_owner , tvb , cur_offset , nsap_ptr_owner_len , nsap_ptr_owner ) ;\n }\n break ;\n case T_KEY : {\n int rr_len = data_len ;\n guint16 flags ;\n proto_item * tf , * ti_gen ;\n proto_tree * flags_tree ;\n guint8 algo ;\n guint16 key_id ;\n tf = proto_tree_add_item ( rr_tree , hf_dns_key_flags , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n flags_tree = proto_item_add_subtree ( tf , ett_key_flags ) ;\n flags = tvb_get_ntohs ( tvb , cur_offset ) ;\n proto_tree_add_item ( flags_tree , hf_dns_key_flags_authentication , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flags_tree , hf_dns_key_flags_confidentiality , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n if ( ( flags & 0xC000 ) != 0xC000 ) {\n proto_tree_add_item ( flags_tree , hf_dns_key_flags_key_required , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flags_tree , hf_dns_key_flags_associated_user , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flags_tree , hf_dns_key_flags_associated_named_entity , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flags_tree , hf_dns_key_flags_ipsec , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flags_tree , hf_dns_key_flags_mime , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flags_tree , hf_dns_key_flags_signatory , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n }\n cur_offset += 2 ;\n rr_len -= 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_key_protocol , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_key_algorithm , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n algo = tvb_get_guint8 ( tvb , cur_offset ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n key_id = compute_key_id ( tvb , cur_offset - 4 , rr_len + 4 , algo ) ;\n ti_gen = proto_tree_add_uint ( rr_tree , hf_dns_key_key_id , tvb , 0 , 0 , key_id ) ;\n PROTO_ITEM_SET_GENERATED ( ti_gen ) ;\n if ( rr_len != 0 ) {\n proto_tree_add_item ( rr_tree , hf_dns_key_public_key , tvb , cur_offset , rr_len , ENC_NA ) ;\n }\n }\n break ;\n case T_PX : {\n int px_map822_len , px_mapx400_len ;\n const guchar * px_map822_dnsname , * px_mapx400_dnsname ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n proto_tree_add_item ( rr_tree , hf_dns_px_preference , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n px_map822_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & px_map822_dnsname ) ;\n proto_tree_add_string ( rr_tree , hf_dns_px_map822 , tvb , cur_offset , px_map822_len , px_map822_dnsname ) ;\n cur_offset += px_map822_len ;\n px_mapx400_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & px_mapx400_dnsname ) ;\n proto_tree_add_string ( rr_tree , hf_dns_px_mapx400 , tvb , cur_offset , px_mapx400_len , px_mapx400_dnsname ) ;\n }\n break ;\n case T_GPOS : {\n guint8 long_len , lat_len , alt_len ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n proto_tree_add_item ( rr_tree , hf_dns_gpos_longitude_length , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n long_len = tvb_get_guint8 ( tvb , cur_offset ) ;\n cur_offset += 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_gpos_longitude , tvb , cur_offset , long_len , ENC_ASCII | ENC_NA ) ;\n cur_offset += long_len ;\n proto_tree_add_item ( rr_tree , hf_dns_gpos_latitude_length , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n lat_len = tvb_get_guint8 ( tvb , cur_offset ) ;\n cur_offset += 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_gpos_latitude , tvb , cur_offset , lat_len , ENC_ASCII | ENC_NA ) ;\n cur_offset += lat_len ;\n proto_tree_add_item ( rr_tree , hf_dns_gpos_altitude_length , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n alt_len = tvb_get_guint8 ( tvb , cur_offset ) ;\n cur_offset += 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_gpos_altitude , tvb , cur_offset , alt_len , ENC_ASCII | ENC_NA ) ;\n }\n break ;\n case T_AAAA : {\n const char * addr6 ;\n addr6 = tvb_ip6_to_str ( tvb , cur_offset ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , addr6 ) ;\n }\n proto_item_append_text ( trr , \", addr %s\" , addr6 ) ;\n proto_tree_add_item ( rr_tree , hf_dns_aaaa , tvb , cur_offset , 16 , ENC_NA ) ;\n if ( dns_use_for_addr_resolution && ( dns_class & 0x7f ) == C_IN ) {\n struct e_in6_addr addr_in6 ;\n tvb_memcpy ( tvb , & addr_in6 , cur_offset , sizeof ( addr_in6 ) ) ;\n add_ipv6_name ( & addr_in6 , name ) ;\n }\n }\n break ;\n case T_LOC : {\n guint8 version ;\n proto_item * ti ;\n version = tvb_get_guint8 ( tvb , cur_offset ) ;\n proto_tree_add_item ( rr_tree , hf_dns_loc_version , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n if ( version == 0 ) {\n cur_offset ++ ;\n ti = proto_tree_add_item ( rr_tree , hf_dns_loc_size , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \" (%g m)\" , rfc1867_size ( tvb , cur_offset ) ) ;\n cur_offset ++ ;\n ti = proto_tree_add_item ( rr_tree , hf_dns_loc_horizontal_precision , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \" (%g m)\" , rfc1867_size ( tvb , cur_offset ) ) ;\n cur_offset ++ ;\n ti = proto_tree_add_item ( rr_tree , hf_dns_loc_vertical_precision , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \" (%g m)\" , rfc1867_size ( tvb , cur_offset ) ) ;\n cur_offset ++ ;\n ti = proto_tree_add_item ( rr_tree , hf_dns_loc_latitude , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \" (%s)\" , rfc1867_angle ( tvb , cur_offset , \"NS\" ) ) ;\n cur_offset += 4 ;\n ti = proto_tree_add_item ( rr_tree , hf_dns_loc_longitude , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \" (%s)\" , rfc1867_angle ( tvb , cur_offset , \"EW\" ) ) ;\n cur_offset += 4 ;\n ti = proto_tree_add_item ( rr_tree , hf_dns_loc_altitude , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \" (%g m)\" , ( ( gint32 ) tvb_get_ntohl ( tvb , cur_offset ) - 10000000 ) / 100.0 ) ;\n }\n else {\n proto_tree_add_item ( rr_tree , hf_dns_loc_unknown_data , tvb , cur_offset , data_len , ENC_NA ) ;\n }\n }\n break ;\n case T_NXT : {\n int rr_len = data_len ;\n const guchar * next_domain_name ;\n int next_domain_name_len ;\n next_domain_name_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & next_domain_name ) ;\n name_out = format_text ( next_domain_name , strlen ( next_domain_name ) ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name_out ) ;\n }\n proto_item_append_text ( trr , \", next domain name %s\" , name_out ) ;\n proto_tree_add_string ( rr_tree , hf_dns_nxt_next_domain_name , tvb , cur_offset , next_domain_name_len , name_out ) ;\n cur_offset += next_domain_name_len ;\n rr_len -= next_domain_name_len ;\n dissect_type_bitmap_nxt ( rr_tree , tvb , cur_offset , rr_len ) ;\n }\n break ;\n case T_SRV : {\n guint16 priority = 0 ;\n guint16 weight = 0 ;\n guint16 port = 0 ;\n const guchar * target ;\n int target_len ;\n proto_tree_add_item ( rr_tree , hf_dns_srv_priority , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n priority = tvb_get_ntohs ( tvb , cur_offset ) ;\n cur_offset += 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_srv_weight , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n weight = tvb_get_ntohs ( tvb , cur_offset ) ;\n cur_offset += 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_srv_port , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n port = tvb_get_ntohs ( tvb , cur_offset ) ;\n cur_offset += 2 ;\n target_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & target ) ;\n name_out = format_text ( target , strlen ( target ) ) ;\n proto_tree_add_string ( rr_tree , hf_dns_srv_target , tvb , cur_offset , target_len , name_out ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %u %u %u %s\" , priority , weight , port , name_out ) ;\n }\n proto_item_append_text ( trr , \", priority %u, weight %u, port %u, target %s\" , priority , weight , port , name_out ) ;\n }\n break ;\n case T_NAPTR : {\n proto_item * ti_len ;\n int offset = cur_offset ;\n guint16 order ;\n guint16 preference ;\n gchar * flags ;\n guint8 flags_len ;\n guint8 service_len ;\n guint8 regex_len ;\n const guchar * replacement ;\n int replacement_len ;\n proto_tree_add_item ( rr_tree , hf_dns_naptr_order , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n order = tvb_get_ntohs ( tvb , offset ) ;\n offset += 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_naptr_preference , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n preference = tvb_get_ntohs ( tvb , offset ) ;\n offset += 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_naptr_flags_length , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n flags_len = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_naptr_flags , tvb , offset , flags_len , ENC_ASCII | ENC_NA ) ;\n flags = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset , flags_len , ENC_ASCII | ENC_NA ) ;\n offset += flags_len ;\n proto_tree_add_item ( rr_tree , hf_dns_naptr_service_length , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n service_len = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_naptr_service , tvb , offset , service_len , ENC_ASCII | ENC_NA ) ;\n offset += service_len ;\n proto_tree_add_item ( rr_tree , hf_dns_naptr_regex_length , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n regex_len = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_naptr_regex , tvb , offset , regex_len , ENC_ASCII | ENC_NA ) ;\n offset += regex_len ;\n replacement_len = get_dns_name ( tvb , offset , 0 , dns_data_offset , & replacement ) ;\n name_out = format_text ( replacement , strlen ( replacement ) ) ;\n ti_len = proto_tree_add_uint ( rr_tree , hf_dns_naptr_replacement_length , tvb , offset , 0 , replacement_len ) ;\n PROTO_ITEM_SET_GENERATED ( ti_len ) ;\n proto_tree_add_string ( rr_tree , hf_dns_naptr_replacement , tvb , offset , replacement_len , name_out ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %u %u %s\" , order , preference , flags ) ;\n }\n proto_item_append_text ( trr , \", order %u, preference %u, flags %s\" , order , preference , flags ) ;\n }\n break ;\n case T_KX : {\n const guchar * kx_name ;\n int kx_name_len ;\n kx_name_len = get_dns_name ( tvb , cur_offset + 2 , 0 , dns_data_offset , & kx_name ) ;\n name_out = format_text ( kx_name , strlen ( kx_name ) ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %u %s\" , tvb_get_ntohs ( tvb , cur_offset ) , name_out ) ;\n }\n proto_item_append_text ( trr , \", preference %u, kx %s\" , tvb_get_ntohs ( tvb , cur_offset ) , name_out ) ;\n proto_tree_add_item ( rr_tree , hf_dns_kx_preference , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_string ( rr_tree , hf_dns_kx_key_exchange , tvb , cur_offset + 2 , kx_name_len , name_out ) ;\n }\n break ;\n case T_CERT : {\n int rr_len = data_len ;\n proto_tree_add_item ( rr_tree , hf_dns_cert_type , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n rr_len -= 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_cert_key_tag , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n rr_len -= 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_cert_algorithm , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n if ( rr_len != 0 ) {\n proto_tree_add_item ( rr_tree , hf_dns_cert_certificate , tvb , cur_offset , rr_len , ENC_NA ) ;\n }\n }\n break ;\n case T_A6 : {\n unsigned short pre_len ;\n unsigned short suf_len ;\n unsigned short suf_octet_count ;\n const guchar * pname ;\n int pname_len ;\n int a6_offset ;\n int suf_offset ;\n struct e_in6_addr suffix ;\n address suffix_addr ;\n a6_offset = cur_offset ;\n pre_len = tvb_get_guint8 ( tvb , cur_offset ) ;\n cur_offset ++ ;\n suf_len = 128 - pre_len ;\n suf_octet_count = suf_len ? ( suf_len - 1 ) / 8 + 1 : 0 ;\n for ( suf_offset = 0 ;\n suf_offset < 16 - suf_octet_count ;\n suf_offset ++ ) {\n suffix . bytes [ suf_offset ] = 0 ;\n }\n for ( ;\n suf_offset < 16 ;\n suf_offset ++ ) {\n suffix . bytes [ suf_offset ] = tvb_get_guint8 ( tvb , cur_offset ) ;\n cur_offset ++ ;\n }\n if ( pre_len > 0 ) {\n pname_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & pname ) ;\n }\n else {\n pname = \"\" ;\n pname_len = 0 ;\n }\n name_out = format_text ( pname , strlen ( pname ) ) ;\n SET_ADDRESS ( & suffix_addr , AT_IPv6 , 16 , suffix . bytes ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %d %s %s\" , pre_len , address_to_str ( wmem_packet_scope ( ) , & suffix_addr ) , name_out ) ;\n }\n proto_tree_add_item ( rr_tree , hf_dns_a6_prefix_len , tvb , a6_offset , 1 , ENC_BIG_ENDIAN ) ;\n a6_offset ++ ;\n if ( suf_len ) {\n proto_tree_add_ipv6 ( rr_tree , hf_dns_a6_address_suffix , tvb , a6_offset , suf_octet_count , suffix . bytes ) ;\n a6_offset += suf_octet_count ;\n }\n if ( pre_len > 0 ) {\n proto_tree_add_string ( rr_tree , hf_dns_a6_prefix_name , tvb , a6_offset , pname_len , name_out ) ;\n }\n proto_item_append_text ( trr , \", addr %d %s %s\" , pre_len , address_to_str ( wmem_packet_scope ( ) , & suffix_addr ) , name_out ) ;\n }\n break ;\n case T_DNAME : {\n const guchar * dname ;\n int dname_len ;\n dname_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & dname ) ;\n name_out = format_text ( dname , strlen ( dname ) ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name_out ) ;\n }\n proto_item_append_text ( trr , \", dname %s\" , name_out ) ;\n proto_tree_add_string ( rr_tree , hf_dns_dname , tvb , cur_offset , dname_len , name_out ) ;\n }\n break ;\n case T_OPT : {\n int rropt_len = data_len ;\n guint16 optcode , optlen ;\n proto_item * rropt , * rroptlen ;\n proto_tree * rropt_tree ;\n while ( rropt_len > 0 ) {\n optcode = tvb_get_ntohs ( tvb , cur_offset ) ;\n rropt_len -= 2 ;\n optlen = tvb_get_ntohs ( tvb , cur_offset + 2 ) ;\n rropt_len -= 2 ;\n rropt = proto_tree_add_item ( rr_tree , hf_dns_opt , tvb , cur_offset , 4 + optlen , ENC_NA ) ;\n proto_item_append_text ( rropt , \": %s\" , val_to_str ( optcode , edns0_opt_code_vals , \"Unknown (%d)\" ) ) ;\n rropt_tree = proto_item_add_subtree ( rropt , ett_dns_opts ) ;\n rropt = proto_tree_add_item ( rropt_tree , hf_dns_opt_code , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n rroptlen = proto_tree_add_item ( rropt_tree , hf_dns_opt_len , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n proto_tree_add_item ( rropt_tree , hf_dns_opt_data , tvb , cur_offset , optlen , ENC_NA ) ;\n switch ( optcode ) {\n case O_DAU : while ( optlen != 0 ) {\n proto_tree_add_item ( rropt_tree , hf_dns_opt_dau , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rropt_len -= 1 ;\n optlen -= 1 ;\n }\n break ;\n case O_DHU : while ( optlen != 0 ) {\n proto_tree_add_item ( rropt_tree , hf_dns_opt_dhu , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rropt_len -= 1 ;\n optlen -= 1 ;\n }\n break ;\n case O_N3U : while ( optlen != 0 ) {\n proto_tree_add_item ( rropt_tree , hf_dns_opt_n3u , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rropt_len -= 1 ;\n optlen -= 1 ;\n }\n break ;\n case O_CLIENT_SUBNET_EXP : expert_add_info_format ( pinfo , rropt , & ei_dns_depr_opc , \"Deprecated opcode. Client subnet OPT assigned as %d.\" , O_CLIENT_SUBNET ) ;\n case O_CLIENT_SUBNET : {\n guint16 family ;\n guint16 addr_len = optlen - 4 ;\n union {\n guint32 addr ;\n guint8 bytes [ 16 ] ;\n }\n ip_addr = {\n 0 }\n ;\n family = tvb_get_ntohs ( tvb , cur_offset ) ;\n proto_tree_add_item ( rropt_tree , hf_dns_opt_client_family , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n proto_tree_add_item ( rropt_tree , hf_dns_opt_client_netmask , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n proto_tree_add_item ( rropt_tree , hf_dns_opt_client_scope , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n if ( addr_len > 16 ) {\n expert_add_info ( pinfo , rroptlen , & ei_dns_opt_bad_length ) ;\n addr_len = 16 ;\n }\n tvb_memcpy ( tvb , ip_addr . bytes , cur_offset , addr_len ) ;\n switch ( family ) {\n case AFNUM_INET : proto_tree_add_ipv4 ( rropt_tree , hf_dns_opt_client_addr4 , tvb , cur_offset , addr_len , ip_addr . addr ) ;\n break ;\n case AFNUM_INET6 : proto_tree_add_ipv6 ( rropt_tree , hf_dns_opt_client_addr6 , tvb , cur_offset , addr_len , ip_addr . bytes ) ;\n break ;\n default : proto_tree_add_item ( rropt_tree , hf_dns_opt_client_addr , tvb , cur_offset , ( optlen - 4 ) , ENC_NA ) ;\n break ;\n }\n cur_offset += ( optlen - 4 ) ;\n rropt_len -= optlen ;\n }\n break ;\n default : cur_offset += optlen ;\n rropt_len -= optlen ;\n break ;\n }\n }\n }\n break ;\n case T_APL : {\n int rr_len = data_len ;\n guint16 afamily ;\n guint8 afdpart_len ;\n guint8 * addr_copy ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n while ( rr_len > 1 ) {\n afamily = tvb_get_ntohs ( tvb , cur_offset ) ;\n proto_tree_add_item ( rr_tree , hf_dns_apl_address_family , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n rr_len -= 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_apl_coded_prefix , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n afdpart_len = tvb_get_guint8 ( tvb , cur_offset ) & DNS_APL_AFDLENGTH ;\n proto_tree_add_item ( rr_tree , hf_dns_apl_negation , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rr_tree , hf_dns_apl_afdlength , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n if ( afamily == 1 && afdpart_len <= 4 ) {\n addr_copy = ( guint8 * ) wmem_alloc0 ( wmem_file_scope ( ) , 4 ) ;\n tvb_memcpy ( tvb , ( guint8 * ) addr_copy , cur_offset , afdpart_len ) ;\n proto_tree_add_ipv4 ( rr_tree , hf_dns_apl_afdpart_ipv4 , tvb , cur_offset , afdpart_len , * addr_copy ) ;\n }\n else if ( afamily == 2 && afdpart_len <= 16 ) {\n addr_copy = ( guint8 * ) wmem_alloc0 ( wmem_file_scope ( ) , 16 ) ;\n tvb_memcpy ( tvb , ( guint8 * ) addr_copy , cur_offset , afdpart_len ) ;\n proto_tree_add_ipv6 ( rr_tree , hf_dns_apl_afdpart_ipv6 , tvb , cur_offset , afdpart_len , addr_copy ) ;\n }\n else {\n proto_tree_add_item ( rr_tree , hf_dns_apl_afdpart_data , tvb , cur_offset , afdpart_len , ENC_NA ) ;\n }\n cur_offset += afdpart_len ;\n rr_len -= afdpart_len ;\n }\n }\n break ;\n case T_DS : case T_CDS : case T_DLV : {\n int rr_len = data_len ;\n proto_tree_add_item ( rr_tree , hf_dns_ds_key_id , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n rr_len -= 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_ds_algorithm , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_ds_digest_type , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_ds_digest , tvb , cur_offset , rr_len , ENC_NA ) ;\n }\n break ;\n case T_SSHFP : {\n int rr_len = data_len ;\n proto_tree_add_item ( rr_tree , hf_dns_sshfp_algorithm , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_sshfp_fingerprint_type , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n if ( rr_len != 0 ) {\n proto_tree_add_item ( rr_tree , hf_dns_sshfp_fingerprint , tvb , cur_offset , rr_len , ENC_NA ) ;\n }\n }\n break ;\n case T_IPSECKEY : {\n int rr_len = data_len ;\n guint8 gw_type ;\n const guchar * gw ;\n int gw_name_len ;\n proto_tree_add_item ( rr_tree , hf_dns_ipseckey_gateway_precedence , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_ipseckey_gateway_type , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n gw_type = tvb_get_guint8 ( tvb , cur_offset ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_ipseckey_gateway_algorithm , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n switch ( gw_type ) {\n case 0 : break ;\n case 1 : proto_tree_add_item ( rr_tree , hf_dns_ipseckey_gateway_ipv4 , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n cur_offset += 4 ;\n rr_len -= 4 ;\n break ;\n case 2 : proto_tree_add_item ( rr_tree , hf_dns_ipseckey_gateway_ipv6 , tvb , cur_offset , 16 , ENC_NA ) ;\n cur_offset += 16 ;\n rr_len -= 16 ;\n break ;\n case 3 : gw_name_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & gw ) ;\n proto_tree_add_string ( rr_tree , hf_dns_ipseckey_gateway_dns , tvb , cur_offset , gw_name_len , gw ) ;\n cur_offset += gw_name_len ;\n rr_len -= gw_name_len ;\n break ;\n default : break ;\n }\n if ( rr_len != 0 ) {\n proto_tree_add_item ( rr_tree , hf_dns_ipseckey_public_key , tvb , cur_offset , rr_len , ENC_NA ) ;\n }\n }\n break ;\n case T_RRSIG : case T_SIG : {\n int rr_len = data_len ;\n const guchar * signer_name ;\n int signer_name_len ;\n proto_item * ti ;\n proto_tree_add_item ( rr_tree , hf_dns_rrsig_type_covered , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n rr_len -= 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_rrsig_algorithm , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_rrsig_labels , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n ti = proto_tree_add_item ( rr_tree , hf_dns_rrsig_original_ttl , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \" (%s)\" , time_secs_to_str ( wmem_packet_scope ( ) , tvb_get_ntohl ( tvb , cur_offset ) ) ) ;\n cur_offset += 4 ;\n rr_len -= 4 ;\n proto_tree_add_item ( rr_tree , hf_dns_rrsig_signature_expiration , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n cur_offset += 4 ;\n rr_len -= 4 ;\n proto_tree_add_item ( rr_tree , hf_dns_rrsig_signature_inception , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n cur_offset += 4 ;\n rr_len -= 4 ;\n proto_tree_add_item ( rr_tree , hf_dns_rrsig_key_tag , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n rr_len -= 2 ;\n signer_name_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & signer_name ) ;\n proto_tree_add_string ( rr_tree , hf_dns_rrsig_signers_name , tvb , cur_offset , signer_name_len , signer_name ) ;\n cur_offset += signer_name_len ;\n rr_len -= signer_name_len ;\n if ( rr_len != 0 ) {\n proto_tree_add_item ( rr_tree , hf_dns_rrsig_signature , tvb , cur_offset , rr_len , ENC_NA ) ;\n }\n }\n break ;\n case T_NSEC : {\n int rr_len = data_len ;\n const guchar * next_domain_name ;\n int next_domain_name_len ;\n next_domain_name_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & next_domain_name ) ;\n name_out = format_text ( next_domain_name , strlen ( next_domain_name ) ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name_out ) ;\n }\n proto_item_append_text ( trr , \", next domain name %s\" , name_out ) ;\n proto_tree_add_string ( rr_tree , hf_dns_nsec_next_domain_name , tvb , cur_offset , next_domain_name_len , name_out ) ;\n cur_offset += next_domain_name_len ;\n rr_len -= next_domain_name_len ;\n dissect_type_bitmap ( rr_tree , tvb , cur_offset , rr_len ) ;\n }\n break ;\n case T_DNSKEY : case T_CDNSKEY : {\n int rr_len = data_len ;\n proto_item * tf , * ti_gen ;\n proto_tree * flags_tree ;\n guint16 key_id ;\n guint8 algo ;\n tf = proto_tree_add_item ( rr_tree , hf_dns_dnskey_flags , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n flags_tree = proto_item_add_subtree ( tf , ett_key_flags ) ;\n proto_tree_add_item ( flags_tree , hf_dns_dnskey_flags_zone_key , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flags_tree , hf_dns_dnskey_flags_key_revoked , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flags_tree , hf_dns_dnskey_flags_secure_entry_point , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flags_tree , hf_dns_dnskey_flags_reserved , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n rr_len -= 2 ;\n proto_tree_add_item ( flags_tree , hf_dns_dnskey_protocol , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n proto_tree_add_item ( flags_tree , hf_dns_dnskey_algorithm , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n algo = tvb_get_guint8 ( tvb , cur_offset ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n key_id = compute_key_id ( tvb , cur_offset - 4 , rr_len + 4 , algo ) ;\n ti_gen = proto_tree_add_uint ( rr_tree , hf_dns_dnskey_key_id , tvb , 0 , 0 , key_id ) ;\n PROTO_ITEM_SET_GENERATED ( ti_gen ) ;\n proto_tree_add_item ( rr_tree , hf_dns_dnskey_public_key , tvb , cur_offset , rr_len , ENC_NA ) ;\n }\n break ;\n case T_DHCID : {\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n proto_tree_add_item ( rr_tree , hf_dns_dhcid_rdata , tvb , cur_offset , data_len , ENC_NA ) ;\n }\n break ;\n case T_NSEC3 : {\n int rr_len , initial_offset = cur_offset ;\n guint8 salt_len , hash_len ;\n proto_item * flags_item ;\n proto_tree * flags_tree ;\n proto_tree_add_item ( rr_tree , hf_dns_nsec3_algo , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n flags_item = proto_tree_add_item ( rr_tree , hf_dns_nsec3_flags , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n flags_tree = proto_item_add_subtree ( flags_item , ett_nsec3_flags ) ;\n proto_tree_add_item ( flags_tree , hf_dns_nsec3_flag_optout , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_nsec3_iterations , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_nsec3_salt_length , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n salt_len = tvb_get_guint8 ( tvb , cur_offset ) ;\n cur_offset += 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_nsec3_salt_value , tvb , cur_offset , salt_len , ENC_NA ) ;\n cur_offset += salt_len ;\n proto_tree_add_item ( rr_tree , hf_dns_nsec3_hash_length , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n hash_len = tvb_get_guint8 ( tvb , cur_offset ) ;\n cur_offset += 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_nsec3_hash_value , tvb , cur_offset , hash_len , ENC_NA ) ;\n cur_offset += hash_len ;\n rr_len = data_len - ( cur_offset - initial_offset ) ;\n dissect_type_bitmap ( rr_tree , tvb , cur_offset , rr_len ) ;\n }\n break ;\n case T_NSEC3PARAM : {\n int salt_len ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n proto_tree_add_item ( rr_tree , hf_dns_nsec3_algo , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_nsec3_flags , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_nsec3_iterations , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_nsec3_salt_length , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n salt_len = tvb_get_guint8 ( tvb , cur_offset ) ;\n cur_offset += 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_nsec3_salt_value , tvb , cur_offset , salt_len , ENC_NA ) ;\n }\n break ;\n case T_TLSA : {\n int rr_len = data_len ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n proto_tree_add_item ( rr_tree , hf_dns_tlsa_certificate_usage , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset ++ ;\n rr_len -- ;\n proto_tree_add_item ( rr_tree , hf_dns_tlsa_selector , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset ++ ;\n rr_len -- ;\n proto_tree_add_item ( rr_tree , hf_dns_tlsa_matching_type , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset ++ ;\n rr_len -- ;\n proto_tree_add_item ( rr_tree , hf_dns_tlsa_certificate_association_data , tvb , cur_offset , rr_len , ENC_NA ) ;\n }\n break ;\n case T_HIP : {\n guint8 hit_len ;\n guint16 pk_len ;\n int rr_len = data_len ;\n int rendezvous_len ;\n const guchar * rend_server_dns_name ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n hit_len = tvb_get_guint8 ( tvb , cur_offset ) ;\n proto_tree_add_item ( rr_tree , hf_dns_hip_hit_length , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_hip_pk_algo , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n pk_len = tvb_get_ntohs ( tvb , cur_offset ) ;\n proto_tree_add_item ( rr_tree , hf_dns_hip_pk_length , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n rr_len -= 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_hip_hit , tvb , cur_offset , hit_len , ENC_NA ) ;\n cur_offset += hit_len ;\n rr_len -= hit_len ;\n proto_tree_add_item ( rr_tree , hf_dns_hip_pk , tvb , cur_offset , pk_len , ENC_NA ) ;\n cur_offset += pk_len ;\n rr_len -= pk_len ;\n while ( rr_len > 1 ) {\n rendezvous_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & rend_server_dns_name ) ;\n proto_tree_add_string ( rr_tree , hf_dns_hip_rendezvous_server , tvb , cur_offset , rendezvous_len , rend_server_dns_name ) ;\n cur_offset += rendezvous_len ;\n rr_len -= rendezvous_len ;\n }\n }\n break ;\n case T_OPENPGPKEY : {\n proto_tree_add_item ( rr_tree , hf_dns_openpgpkey , tvb , cur_offset , data_len , ENC_ASCII | ENC_NA ) ;\n }\n break ;\n case T_SPF : {\n int rr_len = data_len ;\n int spf_offset ;\n int spf_len ;\n spf_offset = cur_offset ;\n while ( rr_len != 0 ) {\n spf_len = tvb_get_guint8 ( tvb , spf_offset ) ;\n proto_tree_add_item ( rr_tree , hf_dns_spf_length , tvb , spf_offset , 1 , ENC_BIG_ENDIAN ) ;\n spf_offset += 1 ;\n rr_len -= 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_spf , tvb , spf_offset , spf_len , ENC_ASCII | ENC_NA ) ;\n spf_offset += spf_len ;\n rr_len -= spf_len ;\n }\n }\n break ;\n case T_NID : {\n proto_tree_add_item ( rr_tree , hf_dns_ilnp_nodeid_preference , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_ilnp_nodeid , tvb , cur_offset , 8 , ENC_NA ) ;\n }\n break ;\n case T_L32 : {\n proto_tree_add_item ( rr_tree , hf_dns_ilnp_locator32_preference , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_ilnp_locator32 , tvb , cur_offset , 4 , ENC_NA ) ;\n }\n break ;\n case T_L64 : {\n proto_tree_add_item ( rr_tree , hf_dns_ilnp_locator64_preference , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_ilnp_locator64 , tvb , cur_offset , 8 , ENC_NA ) ;\n }\n break ;\n case T_LP : {\n int lp_len ;\n const guchar * lp_str ;\n proto_tree_add_item ( rr_tree , hf_dns_ilnp_locatorfqdn_preference , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n lp_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & lp_str ) ;\n proto_tree_add_string ( rr_tree , hf_dns_ilnp_locatorfqdn , tvb , cur_offset , lp_len , lp_str ) ;\n }\n break ;\n case T_EUI48 : {\n proto_tree_add_item ( rr_tree , hf_dns_eui48 , tvb , cur_offset , 6 , ENC_NA ) ;\n }\n break ;\n case T_EUI64 : {\n proto_tree_add_item ( rr_tree , hf_dns_eui64 , tvb , cur_offset , 8 , ENC_NA ) ;\n }\n break ;\n case T_TKEY : {\n const guchar * tkey_algname ;\n int tkey_algname_len ;\n guint16 tkey_mode , tkey_keylen , tkey_otherlen ;\n proto_tree * key_tree ;\n proto_item * key_item ;\n tkey_algname_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & tkey_algname ) ;\n proto_tree_add_string ( rr_tree , hf_dns_tkey_algo_name , tvb , cur_offset , tkey_algname_len , tkey_algname ) ;\n cur_offset += tkey_algname_len ;\n proto_tree_add_item ( rr_tree , hf_dns_tkey_signature_inception , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n cur_offset += 4 ;\n proto_tree_add_item ( rr_tree , hf_dns_tkey_signature_expiration , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n cur_offset += 4 ;\n proto_tree_add_item ( rr_tree , hf_dns_tkey_mode , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n tkey_mode = tvb_get_ntohs ( tvb , cur_offset ) ;\n cur_offset += 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_tkey_error , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_tkey_key_size , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n tkey_keylen = tvb_get_ntohs ( tvb , cur_offset ) ;\n cur_offset += 2 ;\n if ( tkey_keylen != 0 ) {\n key_item = proto_tree_add_item ( rr_tree , hf_dns_tkey_key_data , tvb , cur_offset , tkey_keylen , ENC_NA ) ;\n key_tree = proto_item_add_subtree ( key_item , ett_t_key ) ;\n switch ( tkey_mode ) {\n case TKEYMODE_GSSAPI : {\n tvbuff_t * gssapi_tvb ;\n gssapi_tvb = tvb_new_subset_length ( tvb , cur_offset , tkey_keylen ) ;\n if ( tvb_strneql ( gssapi_tvb , 0 , \"NTLMSSP\" , 7 ) == 0 ) {\n call_dissector ( ntlmssp_handle , gssapi_tvb , pinfo , key_tree ) ;\n }\n else {\n call_dissector ( gssapi_handle , gssapi_tvb , pinfo , key_tree ) ;\n }\n break ;\n }\n default : break ;\n }\n cur_offset += tkey_keylen ;\n }\n proto_tree_add_item ( rr_tree , hf_dns_tkey_other_size , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n tkey_otherlen = tvb_get_ntohs ( tvb , cur_offset ) ;\n cur_offset += 2 ;\n if ( tkey_otherlen != 0 ) {\n proto_tree_add_item ( rr_tree , hf_dns_tkey_other_data , tvb , cur_offset , tkey_otherlen , ENC_NA ) ;\n }\n }\n break ;\n case T_TSIG : {\n guint16 tsig_siglen , tsig_otherlen ;\n const guchar * tsig_algname ;\n int tsig_algname_len ;\n proto_item * ti ;\n tsig_algname_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & tsig_algname ) ;\n proto_tree_add_string ( rr_tree , hf_dns_tsig_algorithm_name , tvb , cur_offset , tsig_algname_len , tsig_algname ) ;\n cur_offset += tsig_algname_len ;\n ti = proto_tree_add_item ( rr_tree , hf_dns_tsig_time_signed , tvb , cur_offset , 6 , ENC_NA ) ;\n if ( tvb_get_ntohs ( tvb , cur_offset ) ) {\n proto_item_append_text ( ti , \" (high bits set)\" ) ;\n }\n cur_offset += 6 ;\n proto_tree_add_item ( rr_tree , hf_dns_tsig_fudge , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n tsig_siglen = tvb_get_ntohs ( tvb , cur_offset ) ;\n proto_tree_add_item ( rr_tree , hf_dns_tsig_mac_size , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n if ( tsig_siglen != 0 ) {\n proto_item * mac_item ;\n proto_tree * mac_tree ;\n tvbuff_t * sub_tvb ;\n mac_item = proto_tree_add_item ( rr_tree , hf_dns_tsig_mac , tvb , cur_offset , tsig_siglen , ENC_NA ) ;\n mac_tree = proto_item_add_subtree ( mac_item , ett_dns_mac ) ;\n sub_tvb = tvb_new_subset_length ( tvb , cur_offset , tsig_siglen ) ;\n if ( ! dissector_try_string ( dns_tsig_dissector_table , tsig_algname , sub_tvb , pinfo , mac_tree , NULL ) ) {\n expert_add_info_format ( pinfo , mac_item , & ei_dns_tsig_alg , \"No dissector for algorithm:%s\" , tsig_algname ) ;\n }\n cur_offset += tsig_siglen ;\n }\n proto_tree_add_item ( rr_tree , hf_dns_tsig_original_id , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_tsig_error , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_tsig_other_len , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n tsig_otherlen = tvb_get_ntohs ( tvb , cur_offset ) ;\n cur_offset += 2 ;\n if ( tsig_otherlen != 0 ) {\n proto_tree_add_item ( rr_tree , hf_dns_tsig_other_data , tvb , cur_offset , tsig_otherlen , ENC_NA ) ;\n }\n }\n break ;\n case T_CAA : {\n proto_item * caa_item ;\n proto_tree * caa_tree ;\n guint8 tag_len ;\n const char * tag ;\n gushort value_len ;\n const guchar * value ;\n int cur_hf = - 1 ;\n caa_item = proto_tree_add_item ( rr_tree , hf_dns_caa_flags , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n caa_tree = proto_item_add_subtree ( caa_item , ett_caa_flags ) ;\n proto_tree_add_item ( caa_tree , hf_dns_caa_flag_issuer_critical , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset ++ ;\n tag_len = tvb_get_guint8 ( tvb , cur_offset ) ;\n tag = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , cur_offset + 1 , tag_len , ENC_ASCII | ENC_NA ) ;\n value_len = data_len - ( tag_len + 2 ) ;\n value = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , cur_offset + 1 + tag_len , value_len , ENC_ASCII | ENC_NA ) ;\n value = format_text ( value , value_len ) ;\n if ( strncmp ( tag , \"issue\" , tag_len ) == 0 ) {\n cur_hf = hf_dns_caa_issue ;\n }\n else if ( strncmp ( tag , \"issuewild\" , tag_len ) == 0 ) {\n cur_hf = hf_dns_caa_issuewild ;\n }\n else if ( strncmp ( tag , \"iodef\" , tag_len ) == 0 ) {\n cur_hf = hf_dns_caa_iodef ;\n }\n else {\n cur_hf = hf_dns_caa_unknown ;\n }\n caa_item = proto_tree_add_string ( rr_tree , cur_hf , tvb , cur_offset , 1 + tag_len + value_len , value ) ;\n caa_tree = proto_item_add_subtree ( caa_item , ett_caa_data ) ;\n proto_tree_add_uint ( caa_tree , hf_dns_caa_tag_length , tvb , cur_offset , 1 , tag_len ) ;\n proto_tree_add_string ( caa_tree , hf_dns_caa_tag , tvb , cur_offset + 1 , tag_len , tag ) ;\n proto_tree_add_string ( caa_tree , hf_dns_caa_value , tvb , cur_offset + 1 + tag_len , value_len , value ) ;\n }\n break ;\n case T_WINS : {\n int rr_len = data_len ;\n guint32 nservers ;\n proto_tree_add_item ( rr_tree , hf_dns_wins_local_flag , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n cur_offset += 4 ;\n rr_len -= 4 ;\n proto_tree_add_item ( rr_tree , hf_dns_wins_lookup_timeout , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n cur_offset += 4 ;\n rr_len -= 4 ;\n proto_tree_add_item ( rr_tree , hf_dns_wins_cache_timeout , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n cur_offset += 4 ;\n rr_len -= 4 ;\n proto_tree_add_item ( rr_tree , hf_dns_wins_nb_wins_servers , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n nservers = tvb_get_ntohl ( tvb , cur_offset ) ;\n cur_offset += 4 ;\n rr_len -= 4 ;\n while ( rr_len != 0 && nservers != 0 ) {\n proto_tree_add_item ( rr_tree , hf_dns_wins_server , tvb , cur_offset , 4 , ENC_NA ) ;\n cur_offset += 4 ;\n rr_len -= 4 ;\n nservers -- ;\n }\n }\n break ;\n case T_WINS_R : {\n const guchar * dname ;\n int dname_len ;\n proto_tree_add_item ( rr_tree , hf_dns_winsr_local_flag , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n cur_offset += 4 ;\n proto_tree_add_item ( rr_tree , hf_dns_winsr_lookup_timeout , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n cur_offset += 4 ;\n proto_tree_add_item ( rr_tree , hf_dns_winsr_cache_timeout , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n cur_offset += 4 ;\n dname_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & dname ) ;\n name_out = format_text ( dname , strlen ( dname ) ) ;\n proto_tree_add_string ( rr_tree , hf_dns_winsr_name_result_domain , tvb , cur_offset , dname_len , name_out ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name_out ) ;\n }\n proto_item_append_text ( trr , \", name result domain %s\" , name_out ) ;\n }\n break ;\n default : expert_add_info_format ( pinfo , trr , & ei_dns_undecoded_option , \"Dissector for DNS Type (%d)\" \" code not implemented, Contact Wireshark developers\" \" if you want this supported\" , dns_type ) ;\n proto_tree_add_item ( rr_tree , hf_dns_data , tvb , cur_offset , data_len , ENC_NA ) ;\n break ;\n }\n data_offset += data_len ;\n return data_offset - data_start ;\n }"}
{"idx": 11744, "target": 0, "func": "int HandleIoctl ( struct vcache * avc , afs_int32 acom , struct afs_ioctl * adata ) {\n afs_int32 code ;\n code = 0 ;\n AFS_STATCNT ( HandleIoctl ) ;\n switch ( acom & 0xff ) {\n case 1 : avc -> f . states |= CSafeStore ;\n avc -> asynchrony = 0 ;\n break ;\n case 3 : {\n struct cell * tcell ;\n afs_int32 i ;\n tcell = afs_GetCell ( avc -> f . fid . Cell , READ_LOCK ) ;\n if ( tcell ) {\n i = strlen ( tcell -> cellName ) + 1 ;\n if ( i > adata -> out_size ) {\n if ( adata -> out_size != 0 ) code = EFAULT ;\n }\n else {\n AFS_COPYOUT ( tcell -> cellName , adata -> out , i , code ) ;\n }\n afs_PutCell ( tcell , READ_LOCK ) ;\n }\n else code = ENOTTY ;\n }\n break ;\n case 49 : if ( adata -> out_size < sizeof ( struct cm_initparams ) ) {\n code = EFAULT ;\n }\n else {\n AFS_COPYOUT ( & cm_initParams , adata -> out , sizeof ( struct cm_initparams ) , code ) ;\n }\n break ;\n default : code = EINVAL ;\n # ifdef AFS_AIX51_ENV code = ENOSYS ;\n # endif break ;\n }\n return code ;\n }"}
{"idx": 11745, "target": 0, "func": "static int _utf8_to_unicode ( uint32_t * pwc , const char * s , size_t n ) {\n static const char utf8_count [ 256 ] = {\n 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 4 , 4 , 4 , 4 , 4 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }\n ;\n int ch , i ;\n int cnt ;\n uint32_t wc ;\n if ( n == 0 ) return ( 0 ) ;\n ch = ( unsigned char ) * s ;\n if ( ch == 0 ) return ( 0 ) ;\n cnt = utf8_count [ ch ] ;\n if ( ( int ) n < cnt ) {\n cnt = ( int ) n ;\n for ( i = 1 ;\n i < cnt ;\n i ++ ) {\n if ( ( s [ i ] & 0xc0 ) != 0x80 ) {\n cnt = i ;\n break ;\n }\n }\n goto invalid_sequence ;\n }\n switch ( cnt ) {\n case 1 : * pwc = ch & 0x7f ;\n return ( cnt ) ;\n case 2 : if ( ( s [ 1 ] & 0xc0 ) != 0x80 ) {\n cnt = 1 ;\n goto invalid_sequence ;\n }\n * pwc = ( ( ch & 0x1f ) << 6 ) | ( s [ 1 ] & 0x3f ) ;\n return ( cnt ) ;\n case 3 : if ( ( s [ 1 ] & 0xc0 ) != 0x80 ) {\n cnt = 1 ;\n goto invalid_sequence ;\n }\n if ( ( s [ 2 ] & 0xc0 ) != 0x80 ) {\n cnt = 2 ;\n goto invalid_sequence ;\n }\n wc = ( ( ch & 0x0f ) << 12 ) | ( ( s [ 1 ] & 0x3f ) << 6 ) | ( s [ 2 ] & 0x3f ) ;\n if ( wc < 0x800 ) goto invalid_sequence ;\n break ;\n case 4 : if ( ( s [ 1 ] & 0xc0 ) != 0x80 ) {\n cnt = 1 ;\n goto invalid_sequence ;\n }\n if ( ( s [ 2 ] & 0xc0 ) != 0x80 ) {\n cnt = 2 ;\n goto invalid_sequence ;\n }\n if ( ( s [ 3 ] & 0xc0 ) != 0x80 ) {\n cnt = 3 ;\n goto invalid_sequence ;\n }\n wc = ( ( ch & 0x07 ) << 18 ) | ( ( s [ 1 ] & 0x3f ) << 12 ) | ( ( s [ 2 ] & 0x3f ) << 6 ) | ( s [ 3 ] & 0x3f ) ;\n if ( wc < 0x10000 ) goto invalid_sequence ;\n break ;\n default : if ( ch == 0xc0 || ch == 0xc1 ) cnt = 2 ;\n else if ( ch >= 0xf5 && ch <= 0xf7 ) cnt = 4 ;\n else if ( ch >= 0xf8 && ch <= 0xfb ) cnt = 5 ;\n else if ( ch == 0xfc || ch == 0xfd ) cnt = 6 ;\n else cnt = 1 ;\n if ( ( int ) n < cnt ) cnt = ( int ) n ;\n for ( i = 1 ;\n i < cnt ;\n i ++ ) {\n if ( ( s [ i ] & 0xc0 ) != 0x80 ) {\n cnt = i ;\n break ;\n }\n }\n goto invalid_sequence ;\n }\n if ( wc > UNICODE_MAX ) goto invalid_sequence ;\n * pwc = wc ;\n return ( cnt ) ;\n invalid_sequence : * pwc = UNICODE_R_CHAR ;\n return ( cnt * - 1 ) ;\n }"}
{"idx": 11746, "target": 0, "func": "static inline int has_unprocessed_pmns_names_frame ( pcp_conv_info_t * pcp_conv_info ) {\n return pcp_conv_info -> last_pmns_names_frame > pcp_conv_info -> last_processed_pmns_names_frame ;\n }"}
{"idx": 11747, "target": 0, "func": "int i2d_ ## name ( type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;\n int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER )"}
{"idx": 11748, "target": 0, "func": "static void encode_unsigned_max ( struct vp9_write_bit_buffer * wb , int data , int max ) {\n vp9_wb_write_literal ( wb , data , get_unsigned_bits ( max ) ) ;\n }"}
{"idx": 11749, "target": 0, "func": "void ff_cavs_load_intra_pred_chroma ( AVSContext * h ) {\n h -> left_border_u [ 9 ] = h -> left_border_u [ 8 ] ;\n h -> left_border_v [ 9 ] = h -> left_border_v [ 8 ] ;\n h -> top_border_u [ h -> mbx * 10 + 9 ] = h -> top_border_u [ h -> mbx * 10 + 8 ] ;\n h -> top_border_v [ h -> mbx * 10 + 9 ] = h -> top_border_v [ h -> mbx * 10 + 8 ] ;\n if ( h -> mbx && h -> mby ) {\n h -> top_border_u [ h -> mbx * 10 ] = h -> left_border_u [ 0 ] = h -> topleft_border_u ;\n h -> top_border_v [ h -> mbx * 10 ] = h -> left_border_v [ 0 ] = h -> topleft_border_v ;\n }\n else {\n h -> left_border_u [ 0 ] = h -> left_border_u [ 1 ] ;\n h -> left_border_v [ 0 ] = h -> left_border_v [ 1 ] ;\n h -> top_border_u [ h -> mbx * 10 ] = h -> top_border_u [ h -> mbx * 10 + 1 ] ;\n h -> top_border_v [ h -> mbx * 10 ] = h -> top_border_v [ h -> mbx * 10 + 1 ] ;\n }\n }"}
{"idx": 11750, "target": 1, "func": "static int decode_13 ( AVCodecContext * avctx , DxaDecContext * c , uint8_t * dst , uint8_t * src , uint8_t * ref ) {\n uint8_t * code , * data , * mv , * msk , * tmp , * tmp2 ;\n int i , j , k ;\n int type , x , y , d , d2 ;\n int stride = c -> pic . linesize [ 0 ] ;\n uint32_t mask ;\n code = src + 12 ;\n data = code + ( ( avctx -> width * avctx -> height ) >> 4 ) ;\n mv = data + AV_RB32 ( src + 0 ) ;\n msk = mv + AV_RB32 ( src + 4 ) ;\n for ( j = 0 ;\n j < avctx -> height ;\n j += 4 ) {\n for ( i = 0 ;\n i < avctx -> width ;\n i += 4 ) {\n tmp = dst + i ;\n tmp2 = ref + i ;\n type = * code ++ ;\n switch ( type ) {\n case 4 : x = ( * mv ) >> 4 ;\n if ( x & 8 ) x = 8 - x ;\n y = ( * mv ++ ) & 0xF ;\n if ( y & 8 ) y = 8 - y ;\n tmp2 += x + y * stride ;\n case 0 : case 5 : for ( y = 0 ;\n y < 4 ;\n y ++ ) {\n memcpy ( tmp , tmp2 , 4 ) ;\n tmp += stride ;\n tmp2 += stride ;\n }\n break ;\n case 1 : case 10 : case 11 : case 12 : case 13 : case 14 : case 15 : if ( type == 1 ) {\n mask = AV_RB16 ( msk ) ;\n msk += 2 ;\n }\n else {\n type -= 10 ;\n mask = ( ( msk [ 0 ] & 0xF0 ) << shift1 [ type ] ) | ( ( msk [ 0 ] & 0xF ) << shift2 [ type ] ) ;\n msk ++ ;\n }\n for ( y = 0 ;\n y < 4 ;\n y ++ ) {\n for ( x = 0 ;\n x < 4 ;\n x ++ ) {\n tmp [ x ] = ( mask & 0x8000 ) ? * data ++ : tmp2 [ x ] ;\n mask <<= 1 ;\n }\n tmp += stride ;\n tmp2 += stride ;\n }\n break ;\n case 2 : for ( y = 0 ;\n y < 4 ;\n y ++ ) {\n memset ( tmp , data [ 0 ] , 4 ) ;\n tmp += stride ;\n }\n data ++ ;\n break ;\n case 3 : for ( y = 0 ;\n y < 4 ;\n y ++ ) {\n memcpy ( tmp , data , 4 ) ;\n data += 4 ;\n tmp += stride ;\n }\n break ;\n case 8 : mask = * msk ++ ;\n for ( k = 0 ;\n k < 4 ;\n k ++ ) {\n d = ( ( k & 1 ) << 1 ) + ( ( k & 2 ) * stride ) ;\n d2 = ( ( k & 1 ) << 1 ) + ( ( k & 2 ) * stride ) ;\n tmp2 = ref + i + d2 ;\n switch ( mask & 0xC0 ) {\n case 0x80 : x = ( * mv ) >> 4 ;\n if ( x & 8 ) x = 8 - x ;\n y = ( * mv ++ ) & 0xF ;\n if ( y & 8 ) y = 8 - y ;\n tmp2 += x + y * stride ;\n case 0x00 : tmp [ d + 0 ] = tmp2 [ 0 ] ;\n tmp [ d + 1 ] = tmp2 [ 1 ] ;\n tmp [ d + 0 + stride ] = tmp2 [ 0 + stride ] ;\n tmp [ d + 1 + stride ] = tmp2 [ 1 + stride ] ;\n break ;\n case 0x40 : tmp [ d + 0 ] = data [ 0 ] ;\n tmp [ d + 1 ] = data [ 0 ] ;\n tmp [ d + 0 + stride ] = data [ 0 ] ;\n tmp [ d + 1 + stride ] = data [ 0 ] ;\n data ++ ;\n break ;\n case 0xC0 : tmp [ d + 0 ] = * data ++ ;\n tmp [ d + 1 ] = * data ++ ;\n tmp [ d + 0 + stride ] = * data ++ ;\n tmp [ d + 1 + stride ] = * data ++ ;\n break ;\n }\n mask <<= 2 ;\n }\n break ;\n case 32 : mask = AV_RB16 ( msk ) ;\n msk += 2 ;\n for ( y = 0 ;\n y < 4 ;\n y ++ ) {\n for ( x = 0 ;\n x < 4 ;\n x ++ ) {\n tmp [ x ] = data [ mask & 1 ] ;\n mask >>= 1 ;\n }\n tmp += stride ;\n tmp2 += stride ;\n }\n data += 2 ;\n break ;\n case 33 : case 34 : mask = AV_RB32 ( msk ) ;\n msk += 4 ;\n for ( y = 0 ;\n y < 4 ;\n y ++ ) {\n for ( x = 0 ;\n x < 4 ;\n x ++ ) {\n tmp [ x ] = data [ mask & 3 ] ;\n mask >>= 2 ;\n }\n tmp += stride ;\n tmp2 += stride ;\n }\n data += type - 30 ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"Unknown opcode %d\\n\" , type ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n dst += stride * 4 ;\n ref += stride * 4 ;\n }\n return 0 ;\n }"}
{"idx": 11751, "target": 0, "func": "static int slirp_smb ( SlirpState * s , const char * exported_dir , struct in_addr vserver_addr ) {\n char smb_conf [ 128 ] ;\n char smb_cmdline [ 128 ] ;\n struct passwd * passwd ;\n FILE * f ;\n passwd = getpwuid ( geteuid ( ) ) ;\n if ( ! passwd ) {\n error_report ( \"failed to retrieve user name\" ) ;\n return - 1 ;\n }\n if ( access ( CONFIG_SMBD_COMMAND , F_OK ) ) {\n error_report ( \"could not find '%s', please install it\" , CONFIG_SMBD_COMMAND ) ;\n return - 1 ;\n }\n if ( access ( exported_dir , R_OK | X_OK ) ) {\n error_report ( \"error accessing shared directory '%s': %s\" , exported_dir , strerror ( errno ) ) ;\n return - 1 ;\n }\n snprintf ( s -> smb_dir , sizeof ( s -> smb_dir ) , \"/tmp/qemu-smb.XXXXXX\" ) ;\n if ( ! mkdtemp ( s -> smb_dir ) ) {\n error_report ( \"could not create samba server dir '%s'\" , s -> smb_dir ) ;\n s -> smb_dir [ 0 ] = 0 ;\n return - 1 ;\n }\n snprintf ( smb_conf , sizeof ( smb_conf ) , \"%s/%s\" , s -> smb_dir , \"smb.conf\" ) ;\n f = fopen ( smb_conf , \"w\" ) ;\n if ( ! f ) {\n slirp_smb_cleanup ( s ) ;\n error_report ( \"could not create samba server configuration file '%s'\" , smb_conf ) ;\n return - 1 ;\n }\n fprintf ( f , \"[global]\\n\" \"private dir=%s\\n\" \"interfaces=127.0.0.1\\n\" \"bind interfaces only=yes\\n\" \"pid directory=%s\\n\" \"lock directory=%s\\n\" \"state directory=%s\\n\" \"cache directory=%s\\n\" \"ncalrpc dir=%scalrpc\\n\" \"log file=%s/log.smbd\\n\" \"smb passwd file=%s/smbpasswd\\n\" \"security = user\\n\" \"map to guest = Bad User\\n\" \"load printers = no\\n\" \"printing = bsd\\n\" \"disable spoolss = yes\\n\" \"usershare max shares = 0\\n\" \"[qemu]\\n\" \"path=%s\\n\" \"read only=no\\n\" \"guest ok=yes\\n\" \"force user=%s\\n\" , s -> smb_dir , s -> smb_dir , s -> smb_dir , s -> smb_dir , s -> smb_dir , s -> smb_dir , s -> smb_dir , s -> smb_dir , exported_dir , passwd -> pw_name ) ;\n fclose ( f ) ;\n snprintf ( smb_cmdline , sizeof ( smb_cmdline ) , \"%s -l %s -s %s\" , CONFIG_SMBD_COMMAND , s -> smb_dir , smb_conf ) ;\n if ( slirp_add_exec ( s -> slirp , 0 , smb_cmdline , & vserver_addr , 139 ) < 0 || slirp_add_exec ( s -> slirp , 0 , smb_cmdline , & vserver_addr , 445 ) < 0 ) {\n slirp_smb_cleanup ( s ) ;\n error_report ( \"conflicting/invalid smbserver address\" ) ;\n return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 11752, "target": 0, "func": "static void print_long_term ( H264Context * h ) {\n uint32_t i ;\n if ( h -> avctx -> debug & FF_DEBUG_MMCO ) {\n av_log ( h -> avctx , AV_LOG_DEBUG , \"long term list:\\n\" ) ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n Picture * pic = h -> long_ref [ i ] ;\n if ( pic ) {\n av_log ( h -> avctx , AV_LOG_DEBUG , \"%d fn:%d poc:%d %p\\n\" , i , pic -> frame_num , pic -> poc , pic -> f . data [ 0 ] ) ;\n }\n }\n }\n }"}
{"idx": 11753, "target": 0, "func": "static int mpeg4_decode_partitioned_mb ( MpegEncContext * s , int16_t block [ 6 ] [ 64 ] ) {\n int cbp , mb_type ;\n const int xy = s -> mb_x + s -> mb_y * s -> mb_stride ;\n mb_type = s -> current_picture . mb_type [ xy ] ;\n cbp = s -> cbp_table [ xy ] ;\n s -> use_intra_dc_vlc = s -> qscale < s -> intra_dc_threshold ;\n if ( s -> current_picture . qscale_table [ xy ] != s -> qscale ) {\n ff_set_qscale ( s , s -> current_picture . qscale_table [ xy ] ) ;\n }\n if ( s -> pict_type == AV_PICTURE_TYPE_P || s -> pict_type == AV_PICTURE_TYPE_S ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n s -> mv [ 0 ] [ i ] [ 0 ] = s -> current_picture . motion_val [ 0 ] [ s -> block_index [ i ] ] [ 0 ] ;\n s -> mv [ 0 ] [ i ] [ 1 ] = s -> current_picture . motion_val [ 0 ] [ s -> block_index [ i ] ] [ 1 ] ;\n }\n s -> mb_intra = IS_INTRA ( mb_type ) ;\n if ( IS_SKIP ( mb_type ) ) {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) s -> block_last_index [ i ] = - 1 ;\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n if ( s -> pict_type == AV_PICTURE_TYPE_S && s -> vol_sprite_usage == GMC_SPRITE ) {\n s -> mcsel = 1 ;\n s -> mb_skipped = 0 ;\n }\n else {\n s -> mcsel = 0 ;\n s -> mb_skipped = 1 ;\n }\n }\n else if ( s -> mb_intra ) {\n s -> ac_pred = IS_ACPRED ( s -> current_picture . mb_type [ xy ] ) ;\n }\n else if ( ! s -> mb_intra ) {\n s -> mv_dir = MV_DIR_FORWARD ;\n if ( IS_8X8 ( mb_type ) ) {\n s -> mv_type = MV_TYPE_8X8 ;\n }\n else {\n s -> mv_type = MV_TYPE_16X16 ;\n }\n }\n }\n else {\n s -> mb_intra = 1 ;\n s -> ac_pred = IS_ACPRED ( s -> current_picture . mb_type [ xy ] ) ;\n }\n if ( ! IS_SKIP ( mb_type ) ) {\n int i ;\n s -> dsp . clear_blocks ( s -> block [ 0 ] ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( mpeg4_decode_block ( s , block [ i ] , i , cbp & 32 , s -> mb_intra , s -> rvlc ) < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"texture corrupted at %d %d %d\\n\" , s -> mb_x , s -> mb_y , s -> mb_intra ) ;\n return - 1 ;\n }\n cbp += cbp ;\n }\n }\n if ( -- s -> mb_num_left <= 0 ) {\n if ( mpeg4_is_resync ( s ) ) return SLICE_END ;\n else return SLICE_NOEND ;\n }\n else {\n if ( mpeg4_is_resync ( s ) ) {\n const int delta = s -> mb_x + 1 == s -> mb_width ? 2 : 1 ;\n if ( s -> cbp_table [ xy + delta ] ) return SLICE_END ;\n }\n return SLICE_OK ;\n }\n }"}
{"idx": 11754, "target": 0, "func": "static int arith2_get_number ( ArithCoder * c , int n ) {\n int range = c -> high - c -> low + 1 ;\n int scale = av_log2 ( range ) - av_log2 ( n ) ;\n int val ;\n if ( n << scale > range ) scale -- ;\n n <<= scale ;\n val = arith2_get_scaled_value ( c -> value - c -> low , n , range ) >> scale ;\n arith2_rescale_interval ( c , range , val << scale , ( val + 1 ) << scale , n ) ;\n arith2_normalise ( c ) ;\n return val ;\n }"}
{"idx": 11755, "target": 0, "func": "static int selinux_socket_sendmsg ( struct socket * sock , struct msghdr * msg , int size ) {\n return sock_has_perm ( current , sock -> sk , SOCKET__WRITE ) ;\n }"}
{"idx": 11756, "target": 0, "func": "static long usbdev_ioctl ( struct file * file , unsigned int cmd , unsigned long arg ) {\n int ret ;\n ret = usbdev_do_ioctl ( file , cmd , ( void __user * ) arg ) ;\n return ret ;\n }"}
{"idx": 11757, "target": 0, "func": "static char * xml_entities ( const char * s ) {\n struct strbuf buf = STRBUF_INIT ;\n strbuf_addstr_xml_quoted ( & buf , s ) ;\n return strbuf_detach ( & buf , NULL ) ;\n }"}
{"idx": 11758, "target": 0, "func": "static void gst_asf_demux_check_segment_ts ( GstASFDemux * demux , GstClockTime payload_ts ) {\n if ( G_UNLIKELY ( ! GST_CLOCK_TIME_IS_VALID ( demux -> segment_ts ) && GST_CLOCK_TIME_IS_VALID ( demux -> first_ts ) ) ) {\n GST_DEBUG_OBJECT ( demux , \"segment ts: %\" GST_TIME_FORMAT , GST_TIME_ARGS ( demux -> first_ts ) ) ;\n demux -> segment_ts = payload_ts ;\n if ( demux -> streaming ) gst_segment_do_seek ( & demux -> segment , demux -> in_segment . rate , GST_FORMAT_TIME , ( GstSeekFlags ) demux -> segment . flags , GST_SEEK_TYPE_SET , demux -> segment_ts , GST_SEEK_TYPE_NONE , 0 , NULL ) ;\n }\n }"}
{"idx": 11759, "target": 0, "func": "static bfd_boolean srec_write_symbols ( bfd * abfd ) {\n int i ;\n int count = bfd_get_symcount ( abfd ) ;\n if ( count ) {\n bfd_size_type len ;\n asymbol * * table = bfd_get_outsymbols ( abfd ) ;\n len = strlen ( abfd -> filename ) ;\n if ( bfd_bwrite ( \"$$ \" , ( bfd_size_type ) 3 , abfd ) != 3 || bfd_bwrite ( abfd -> filename , len , abfd ) != len || bfd_bwrite ( \"\\r\\n\" , ( bfd_size_type ) 2 , abfd ) != 2 ) return FALSE ;\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n asymbol * s = table [ i ] ;\n if ( ! bfd_is_local_label ( abfd , s ) && ( s -> flags & BSF_DEBUGGING ) == 0 ) {\n char buf [ 43 ] , * p ;\n len = strlen ( s -> name ) ;\n if ( bfd_bwrite ( \" \" , ( bfd_size_type ) 2 , abfd ) != 2 || bfd_bwrite ( s -> name , len , abfd ) != len ) return FALSE ;\n sprintf_vma ( buf + 2 , ( s -> value + s -> section -> output_section -> lma + s -> section -> output_offset ) ) ;\n p = buf + 2 ;\n while ( p [ 0 ] == '0' && p [ 1 ] != 0 ) p ++ ;\n len = strlen ( p ) ;\n p [ len ] = '\\r' ;\n p [ len + 1 ] = '\\n' ;\n * -- p = '$' ;\n * -- p = ' ' ;\n len += 4 ;\n if ( bfd_bwrite ( p , len , abfd ) != len ) return FALSE ;\n }\n }\n if ( bfd_bwrite ( \"$$ \\r\\n\" , ( bfd_size_type ) 5 , abfd ) != 5 ) return FALSE ;\n }\n return TRUE ;\n }"}
{"idx": 11760, "target": 0, "func": "int qemuMonitorTextSystemReset ( qemuMonitorPtr mon ) {\n char * info ;\n if ( qemuMonitorHMPCommand ( mon , \"system_reset\" , & info ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , _ ( \"system reset operation failed\" ) ) ;\n return - 1 ;\n }\n VIR_FREE ( info ) ;\n return 0 ;\n }"}
{"idx": 11761, "target": 0, "func": "static int handleAppendResult ( int result , smart_str * loc_name TSRMLS_DC ) {\n intl_error_reset ( NULL TSRMLS_CC ) ;\n if ( result == FAILURE ) {\n intl_error_set ( NULL , U_ILLEGAL_ARGUMENT_ERROR , \"locale_compose: parameter array element is not a string\" , 0 TSRMLS_CC ) ;\n smart_str_free ( loc_name ) ;\n return 0 ;\n }\n return 1 ;\n }"}
{"idx": 11762, "target": 1, "func": "static int ipvideo_decode_block_opcode_0x4 ( IpvideoContext * s ) {\n int x , y ;\n unsigned char B , BL , BH ;\n if ( ! s -> is_16bpp ) {\n B = bytestream2_get_byte ( & s -> stream_ptr ) ;\n }\n else {\n B = bytestream2_get_byte ( & s -> mv_ptr ) ;\n }\n BL = B & 0x0F ;\n BH = ( B >> 4 ) & 0x0F ;\n x = - 8 + BL ;\n y = - 8 + BH ;\n av_dlog ( NULL , \" motion byte = %d, (x, y) = (%d, %d)\\n\" , B , x , y ) ;\n return copy_from ( s , & s -> last_frame , x , y ) ;\n }"}
{"idx": 11763, "target": 0, "func": "static int decode_slice_header ( H264Context * h , H264Context * h0 ) {\n unsigned int first_mb_in_slice ;\n unsigned int pps_id ;\n int ret ;\n unsigned int slice_type , tmp , i , j ;\n int last_pic_structure , last_pic_droppable ;\n int must_reinit ;\n int needs_reinit = 0 ;\n int field_pic_flag , bottom_field_flag ;\n h -> me . qpel_put = h -> h264qpel . put_h264_qpel_pixels_tab ;\n h -> me . qpel_avg = h -> h264qpel . avg_h264_qpel_pixels_tab ;\n first_mb_in_slice = get_ue_golomb_long ( & h -> gb ) ;\n if ( first_mb_in_slice == 0 ) {\n if ( h0 -> current_slice && FIELD_PICTURE ( h ) ) {\n field_end ( h , 1 ) ;\n }\n h0 -> current_slice = 0 ;\n if ( ! h0 -> first_field ) {\n if ( h -> cur_pic_ptr && ! h -> droppable ) {\n ff_thread_report_progress ( & h -> cur_pic_ptr -> tf , INT_MAX , h -> picture_structure == PICT_BOTTOM_FIELD ) ;\n }\n h -> cur_pic_ptr = NULL ;\n }\n }\n slice_type = get_ue_golomb_31 ( & h -> gb ) ;\n if ( slice_type > 9 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"slice type too large (%d) at %d %d\\n\" , slice_type , h -> mb_x , h -> mb_y ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( slice_type > 4 ) {\n slice_type -= 5 ;\n h -> slice_type_fixed = 1 ;\n }\n else h -> slice_type_fixed = 0 ;\n slice_type = golomb_to_pict_type [ slice_type ] ;\n h -> slice_type = slice_type ;\n h -> slice_type_nos = slice_type & 3 ;\n h -> pict_type = h -> slice_type ;\n pps_id = get_ue_golomb ( & h -> gb ) ;\n if ( pps_id >= MAX_PPS_COUNT ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"pps_id %d out of range\\n\" , pps_id ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ! h0 -> pps_buffers [ pps_id ] ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"non-existing PPS %u referenced\\n\" , pps_id ) ;\n return AVERROR_INVALIDDATA ;\n }\n h -> pps = * h0 -> pps_buffers [ pps_id ] ;\n if ( ! h0 -> sps_buffers [ h -> pps . sps_id ] ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"non-existing SPS %u referenced\\n\" , h -> pps . sps_id ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( h -> pps . sps_id != h -> current_sps_id || h0 -> sps_buffers [ h -> pps . sps_id ] -> new ) {\n h0 -> sps_buffers [ h -> pps . sps_id ] -> new = 0 ;\n h -> current_sps_id = h -> pps . sps_id ;\n h -> sps = * h0 -> sps_buffers [ h -> pps . sps_id ] ;\n if ( h -> mb_width != h -> sps . mb_width || h -> mb_height != h -> sps . mb_height * ( 2 - h -> sps . frame_mbs_only_flag ) || h -> avctx -> bits_per_raw_sample != h -> sps . bit_depth_luma || h -> cur_chroma_format_idc != h -> sps . chroma_format_idc ) needs_reinit = 1 ;\n if ( h -> bit_depth_luma != h -> sps . bit_depth_luma || h -> chroma_format_idc != h -> sps . chroma_format_idc ) {\n h -> bit_depth_luma = h -> sps . bit_depth_luma ;\n h -> chroma_format_idc = h -> sps . chroma_format_idc ;\n needs_reinit = 1 ;\n }\n if ( ( ret = h264_set_parameter_from_sps ( h ) ) < 0 ) return ret ;\n }\n h -> avctx -> profile = ff_h264_get_profile ( & h -> sps ) ;\n h -> avctx -> level = h -> sps . level_idc ;\n h -> avctx -> refs = h -> sps . ref_frame_count ;\n must_reinit = ( h -> context_initialized && ( 16 * h -> sps . mb_width != h -> avctx -> coded_width || 16 * h -> sps . mb_height * ( 2 - h -> sps . frame_mbs_only_flag ) != h -> avctx -> coded_height || h -> avctx -> bits_per_raw_sample != h -> sps . bit_depth_luma || h -> cur_chroma_format_idc != h -> sps . chroma_format_idc || av_cmp_q ( h -> sps . sar , h -> avctx -> sample_aspect_ratio ) || h -> mb_width != h -> sps . mb_width || h -> mb_height != h -> sps . mb_height * ( 2 - h -> sps . frame_mbs_only_flag ) ) ) ;\n if ( h0 -> avctx -> pix_fmt != get_pixel_format ( h0 , 0 ) ) must_reinit = 1 ;\n h -> mb_width = h -> sps . mb_width ;\n h -> mb_height = h -> sps . mb_height * ( 2 - h -> sps . frame_mbs_only_flag ) ;\n h -> mb_num = h -> mb_width * h -> mb_height ;\n h -> mb_stride = h -> mb_width + 1 ;\n h -> b_stride = h -> mb_width * 4 ;\n h -> chroma_y_shift = h -> sps . chroma_format_idc <= 1 ;\n h -> width = 16 * h -> mb_width ;\n h -> height = 16 * h -> mb_height ;\n ret = init_dimensions ( h ) ;\n if ( ret < 0 ) return ret ;\n if ( h -> sps . video_signal_type_present_flag ) {\n h -> avctx -> color_range = h -> sps . full_range > 0 ? AVCOL_RANGE_JPEG : AVCOL_RANGE_MPEG ;\n if ( h -> sps . colour_description_present_flag ) {\n if ( h -> avctx -> colorspace != h -> sps . colorspace ) needs_reinit = 1 ;\n h -> avctx -> color_primaries = h -> sps . color_primaries ;\n h -> avctx -> color_trc = h -> sps . color_trc ;\n h -> avctx -> colorspace = h -> sps . colorspace ;\n }\n }\n if ( h -> context_initialized && ( h -> width != h -> avctx -> coded_width || h -> height != h -> avctx -> coded_height || must_reinit || needs_reinit ) ) {\n if ( h != h0 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"changing width/height on \" \"slice %d\\n\" , h0 -> current_slice + 1 ) ;\n return AVERROR_INVALIDDATA ;\n }\n flush_change ( h ) ;\n if ( ( ret = get_pixel_format ( h , 1 ) ) < 0 ) return ret ;\n h -> avctx -> pix_fmt = ret ;\n av_log ( h -> avctx , AV_LOG_INFO , \"Reinit context to %dx%d, \" \"pix_fmt: %s\\n\" , h -> width , h -> height , av_get_pix_fmt_name ( h -> avctx -> pix_fmt ) ) ;\n if ( ( ret = h264_slice_header_init ( h , 1 ) ) < 0 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"h264_slice_header_init() failed\\n\" ) ;\n return ret ;\n }\n }\n if ( ! h -> context_initialized ) {\n if ( h != h0 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"Cannot (re-)initialize context during parallel decoding.\\n\" ) ;\n return AVERROR_PATCHWELCOME ;\n }\n if ( ( ret = get_pixel_format ( h , 1 ) ) < 0 ) return ret ;\n h -> avctx -> pix_fmt = ret ;\n if ( ( ret = h264_slice_header_init ( h , 0 ) ) < 0 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"h264_slice_header_init() failed\\n\" ) ;\n return ret ;\n }\n }\n if ( h == h0 && h -> dequant_coeff_pps != pps_id ) {\n h -> dequant_coeff_pps = pps_id ;\n init_dequant_tables ( h ) ;\n }\n h -> frame_num = get_bits ( & h -> gb , h -> sps . log2_max_frame_num ) ;\n h -> mb_mbaff = 0 ;\n h -> mb_aff_frame = 0 ;\n last_pic_structure = h0 -> picture_structure ;\n last_pic_droppable = h0 -> droppable ;\n h -> droppable = h -> nal_ref_idc == 0 ;\n if ( h -> sps . frame_mbs_only_flag ) {\n h -> picture_structure = PICT_FRAME ;\n }\n else {\n if ( ! h -> sps . direct_8x8_inference_flag && slice_type == AV_PICTURE_TYPE_B ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"This stream was generated by a broken encoder, invalid 8x8 inference\\n\" ) ;\n return - 1 ;\n }\n field_pic_flag = get_bits1 ( & h -> gb ) ;\n if ( field_pic_flag ) {\n bottom_field_flag = get_bits1 ( & h -> gb ) ;\n h -> picture_structure = PICT_TOP_FIELD + bottom_field_flag ;\n }\n else {\n h -> picture_structure = PICT_FRAME ;\n h -> mb_aff_frame = h -> sps . mb_aff ;\n }\n }\n h -> mb_field_decoding_flag = h -> picture_structure != PICT_FRAME ;\n if ( h0 -> current_slice != 0 ) {\n if ( last_pic_structure != h -> picture_structure || last_pic_droppable != h -> droppable ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"Changing field mode (%d -> %d) between slices is not allowed\\n\" , last_pic_structure , h -> picture_structure ) ;\n h -> picture_structure = last_pic_structure ;\n h -> droppable = last_pic_droppable ;\n return AVERROR_INVALIDDATA ;\n }\n else if ( ! h0 -> cur_pic_ptr ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"unset cur_pic_ptr on %d. slice\\n\" , h0 -> current_slice + 1 ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n else {\n if ( h -> frame_num != h -> prev_frame_num ) {\n int unwrap_prev_frame_num = h -> prev_frame_num ;\n int max_frame_num = 1 << h -> sps . log2_max_frame_num ;\n if ( unwrap_prev_frame_num > h -> frame_num ) unwrap_prev_frame_num -= max_frame_num ;\n if ( ( h -> frame_num - unwrap_prev_frame_num ) > h -> sps . ref_frame_count ) {\n unwrap_prev_frame_num = ( h -> frame_num - h -> sps . ref_frame_count ) - 1 ;\n if ( unwrap_prev_frame_num < 0 ) unwrap_prev_frame_num += max_frame_num ;\n h -> prev_frame_num = unwrap_prev_frame_num ;\n }\n }\n if ( h0 -> first_field ) {\n assert ( h0 -> cur_pic_ptr ) ;\n assert ( h0 -> cur_pic_ptr -> f . buf [ 0 ] ) ;\n assert ( h0 -> cur_pic_ptr -> reference != DELAYED_PIC_REF ) ;\n if ( h0 -> cur_pic_ptr -> tf . owner == h0 -> avctx ) {\n ff_thread_report_progress ( & h0 -> cur_pic_ptr -> tf , INT_MAX , last_pic_structure == PICT_BOTTOM_FIELD ) ;\n }\n if ( ! FIELD_PICTURE ( h ) || h -> picture_structure == last_pic_structure ) {\n if ( last_pic_structure != PICT_FRAME ) {\n ff_thread_report_progress ( & h0 -> cur_pic_ptr -> tf , INT_MAX , last_pic_structure == PICT_TOP_FIELD ) ;\n }\n }\n else {\n if ( h0 -> cur_pic_ptr -> frame_num != h -> frame_num ) {\n if ( last_pic_structure != PICT_FRAME ) {\n ff_thread_report_progress ( & h0 -> cur_pic_ptr -> tf , INT_MAX , last_pic_structure == PICT_TOP_FIELD ) ;\n }\n }\n else {\n if ( ! ( ( last_pic_structure == PICT_TOP_FIELD && h -> picture_structure == PICT_BOTTOM_FIELD ) || ( last_pic_structure == PICT_BOTTOM_FIELD && h -> picture_structure == PICT_TOP_FIELD ) ) ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"Invalid field mode combination %d/%d\\n\" , last_pic_structure , h -> picture_structure ) ;\n h -> picture_structure = last_pic_structure ;\n h -> droppable = last_pic_droppable ;\n return AVERROR_INVALIDDATA ;\n }\n else if ( last_pic_droppable != h -> droppable ) {\n avpriv_request_sample ( h -> avctx , \"Found reference and non-reference fields in the same frame, which\" ) ;\n h -> picture_structure = last_pic_structure ;\n h -> droppable = last_pic_droppable ;\n return AVERROR_PATCHWELCOME ;\n }\n }\n }\n }\n while ( h -> frame_num != h -> prev_frame_num && ! h0 -> first_field && h -> frame_num != ( h -> prev_frame_num + 1 ) % ( 1 << h -> sps . log2_max_frame_num ) ) {\n Picture * prev = h -> short_ref_count ? h -> short_ref [ 0 ] : NULL ;\n av_log ( h -> avctx , AV_LOG_DEBUG , \"Frame num gap %d %d\\n\" , h -> frame_num , h -> prev_frame_num ) ;\n if ( ! h -> sps . gaps_in_frame_num_allowed_flag ) for ( i = 0 ;\n i < FF_ARRAY_ELEMS ( h -> last_pocs ) ;\n i ++ ) h -> last_pocs [ i ] = INT_MIN ;\n ret = h264_frame_start ( h ) ;\n if ( ret < 0 ) return ret ;\n h -> prev_frame_num ++ ;\n h -> prev_frame_num %= 1 << h -> sps . log2_max_frame_num ;\n h -> cur_pic_ptr -> frame_num = h -> prev_frame_num ;\n ff_thread_report_progress ( & h -> cur_pic_ptr -> tf , INT_MAX , 0 ) ;\n ff_thread_report_progress ( & h -> cur_pic_ptr -> tf , INT_MAX , 1 ) ;\n ret = ff_generate_sliding_window_mmcos ( h , 1 ) ;\n if ( ret < 0 && ( h -> avctx -> err_recognition & AV_EF_EXPLODE ) ) return ret ;\n ret = ff_h264_execute_ref_pic_marking ( h , h -> mmco , h -> mmco_index ) ;\n if ( ret < 0 && ( h -> avctx -> err_recognition & AV_EF_EXPLODE ) ) return ret ;\n if ( h -> short_ref_count ) {\n if ( prev ) {\n av_image_copy ( h -> short_ref [ 0 ] -> f . data , h -> short_ref [ 0 ] -> f . linesize , ( const uint8_t * * ) prev -> f . data , prev -> f . linesize , h -> avctx -> pix_fmt , h -> mb_width * 16 , h -> mb_height * 16 ) ;\n h -> short_ref [ 0 ] -> poc = prev -> poc + 2 ;\n }\n h -> short_ref [ 0 ] -> frame_num = h -> prev_frame_num ;\n }\n }\n if ( h0 -> first_field ) {\n assert ( h0 -> cur_pic_ptr ) ;\n assert ( h0 -> cur_pic_ptr -> f . buf [ 0 ] ) ;\n assert ( h0 -> cur_pic_ptr -> reference != DELAYED_PIC_REF ) ;\n if ( ! FIELD_PICTURE ( h ) || h -> picture_structure == last_pic_structure ) {\n h0 -> cur_pic_ptr = NULL ;\n h0 -> first_field = FIELD_PICTURE ( h ) ;\n }\n else {\n if ( h0 -> cur_pic_ptr -> frame_num != h -> frame_num ) {\n ff_thread_report_progress ( & h0 -> cur_pic_ptr -> tf , INT_MAX , h0 -> picture_structure == PICT_BOTTOM_FIELD ) ;\n h0 -> first_field = 1 ;\n h0 -> cur_pic_ptr = NULL ;\n }\n else {\n h0 -> first_field = 0 ;\n }\n }\n }\n else {\n h0 -> first_field = FIELD_PICTURE ( h ) ;\n }\n if ( ! FIELD_PICTURE ( h ) || h0 -> first_field ) {\n if ( h264_frame_start ( h ) < 0 ) {\n h0 -> first_field = 0 ;\n return AVERROR_INVALIDDATA ;\n }\n }\n else {\n release_unused_pictures ( h , 0 ) ;\n }\n if ( FIELD_PICTURE ( h ) ) {\n for ( i = ( h -> picture_structure == PICT_BOTTOM_FIELD ) ;\n i < h -> mb_height ;\n i ++ ) memset ( h -> slice_table + i * h -> mb_stride , - 1 , ( h -> mb_stride - ( i + 1 == h -> mb_height ) ) * sizeof ( * h -> slice_table ) ) ;\n }\n else {\n memset ( h -> slice_table , - 1 , ( h -> mb_height * h -> mb_stride - 1 ) * sizeof ( * h -> slice_table ) ) ;\n }\n h0 -> last_slice_type = - 1 ;\n }\n if ( h != h0 && ( ret = clone_slice ( h , h0 ) ) < 0 ) return ret ;\n for ( i = 0 ;\n i < h -> slice_context_count ;\n i ++ ) if ( h -> thread_context [ i ] ) {\n ret = alloc_scratch_buffers ( h -> thread_context [ i ] , h -> linesize ) ;\n if ( ret < 0 ) return ret ;\n }\n h -> cur_pic_ptr -> frame_num = h -> frame_num ;\n av_assert1 ( h -> mb_num == h -> mb_width * h -> mb_height ) ;\n if ( first_mb_in_slice << FIELD_OR_MBAFF_PICTURE ( h ) >= h -> mb_num || first_mb_in_slice >= h -> mb_num ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"first_mb_in_slice overflow\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n h -> resync_mb_x = h -> mb_x = first_mb_in_slice % h -> mb_width ;\n h -> resync_mb_y = h -> mb_y = ( first_mb_in_slice / h -> mb_width ) << FIELD_OR_MBAFF_PICTURE ( h ) ;\n if ( h -> picture_structure == PICT_BOTTOM_FIELD ) h -> resync_mb_y = h -> mb_y = h -> mb_y + 1 ;\n av_assert1 ( h -> mb_y < h -> mb_height ) ;\n if ( h -> picture_structure == PICT_FRAME ) {\n h -> curr_pic_num = h -> frame_num ;\n h -> max_pic_num = 1 << h -> sps . log2_max_frame_num ;\n }\n else {\n h -> curr_pic_num = 2 * h -> frame_num + 1 ;\n h -> max_pic_num = 1 << ( h -> sps . log2_max_frame_num + 1 ) ;\n }\n if ( h -> nal_unit_type == NAL_IDR_SLICE ) get_ue_golomb ( & h -> gb ) ;\n if ( h -> sps . poc_type == 0 ) {\n h -> poc_lsb = get_bits ( & h -> gb , h -> sps . log2_max_poc_lsb ) ;\n if ( h -> pps . pic_order_present == 1 && h -> picture_structure == PICT_FRAME ) h -> delta_poc_bottom = get_se_golomb ( & h -> gb ) ;\n }\n if ( h -> sps . poc_type == 1 && ! h -> sps . delta_pic_order_always_zero_flag ) {\n h -> delta_poc [ 0 ] = get_se_golomb ( & h -> gb ) ;\n if ( h -> pps . pic_order_present == 1 && h -> picture_structure == PICT_FRAME ) h -> delta_poc [ 1 ] = get_se_golomb ( & h -> gb ) ;\n }\n ff_init_poc ( h , h -> cur_pic_ptr -> field_poc , & h -> cur_pic_ptr -> poc ) ;\n if ( h -> pps . redundant_pic_cnt_present ) h -> redundant_pic_count = get_ue_golomb ( & h -> gb ) ;\n ret = ff_set_ref_count ( h ) ;\n if ( ret < 0 ) return ret ;\n if ( slice_type != AV_PICTURE_TYPE_I && ( h0 -> current_slice == 0 || slice_type != h0 -> last_slice_type || memcmp ( h0 -> last_ref_count , h0 -> ref_count , sizeof ( h0 -> ref_count ) ) ) ) {\n ff_h264_fill_default_ref_list ( h ) ;\n }\n if ( h -> slice_type_nos != AV_PICTURE_TYPE_I ) {\n ret = ff_h264_decode_ref_pic_list_reordering ( h ) ;\n if ( ret < 0 ) {\n h -> ref_count [ 1 ] = h -> ref_count [ 0 ] = 0 ;\n return ret ;\n }\n }\n if ( ( h -> pps . weighted_pred && h -> slice_type_nos == AV_PICTURE_TYPE_P ) || ( h -> pps . weighted_bipred_idc == 1 && h -> slice_type_nos == AV_PICTURE_TYPE_B ) ) ff_pred_weight_table ( h ) ;\n else if ( h -> pps . weighted_bipred_idc == 2 && h -> slice_type_nos == AV_PICTURE_TYPE_B ) {\n implicit_weight_table ( h , - 1 ) ;\n }\n else {\n h -> use_weight = 0 ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n h -> luma_weight_flag [ i ] = 0 ;\n h -> chroma_weight_flag [ i ] = 0 ;\n }\n }\n if ( h -> nal_ref_idc ) {\n ret = ff_h264_decode_ref_pic_marking ( h0 , & h -> gb , ! ( h -> avctx -> active_thread_type & FF_THREAD_FRAME ) || h0 -> current_slice == 0 ) ;\n if ( ret < 0 && ( h -> avctx -> err_recognition & AV_EF_EXPLODE ) ) return AVERROR_INVALIDDATA ;\n }\n if ( FRAME_MBAFF ( h ) ) {\n ff_h264_fill_mbaff_ref_list ( h ) ;\n if ( h -> pps . weighted_bipred_idc == 2 && h -> slice_type_nos == AV_PICTURE_TYPE_B ) {\n implicit_weight_table ( h , 0 ) ;\n implicit_weight_table ( h , 1 ) ;\n }\n }\n if ( h -> slice_type_nos == AV_PICTURE_TYPE_B && ! h -> direct_spatial_mv_pred ) ff_h264_direct_dist_scale_factor ( h ) ;\n ff_h264_direct_ref_list_init ( h ) ;\n if ( h -> slice_type_nos != AV_PICTURE_TYPE_I && h -> pps . cabac ) {\n tmp = get_ue_golomb_31 ( & h -> gb ) ;\n if ( tmp > 2 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"cabac_init_idc overflow\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n h -> cabac_init_idc = tmp ;\n }\n h -> last_qscale_diff = 0 ;\n tmp = h -> pps . init_qp + get_se_golomb ( & h -> gb ) ;\n if ( tmp > 51 + 6 * ( h -> sps . bit_depth_luma - 8 ) ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"QP %u out of range\\n\" , tmp ) ;\n return AVERROR_INVALIDDATA ;\n }\n h -> qscale = tmp ;\n h -> chroma_qp [ 0 ] = get_chroma_qp ( h , 0 , h -> qscale ) ;\n h -> chroma_qp [ 1 ] = get_chroma_qp ( h , 1 , h -> qscale ) ;\n if ( h -> slice_type == AV_PICTURE_TYPE_SP ) get_bits1 ( & h -> gb ) ;\n if ( h -> slice_type == AV_PICTURE_TYPE_SP || h -> slice_type == AV_PICTURE_TYPE_SI ) get_se_golomb ( & h -> gb ) ;\n h -> deblocking_filter = 1 ;\n h -> slice_alpha_c0_offset = 52 ;\n h -> slice_beta_offset = 52 ;\n if ( h -> pps . deblocking_filter_parameters_present ) {\n tmp = get_ue_golomb_31 ( & h -> gb ) ;\n if ( tmp > 2 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"deblocking_filter_idc %u out of range\\n\" , tmp ) ;\n return AVERROR_INVALIDDATA ;\n }\n h -> deblocking_filter = tmp ;\n if ( h -> deblocking_filter < 2 ) h -> deblocking_filter ^= 1 ;\n if ( h -> deblocking_filter ) {\n h -> slice_alpha_c0_offset += get_se_golomb ( & h -> gb ) << 1 ;\n h -> slice_beta_offset += get_se_golomb ( & h -> gb ) << 1 ;\n if ( h -> slice_alpha_c0_offset > 104U || h -> slice_beta_offset > 104U ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"deblocking filter parameters %d %d out of range\\n\" , h -> slice_alpha_c0_offset , h -> slice_beta_offset ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n }\n if ( h -> avctx -> skip_loop_filter >= AVDISCARD_ALL || ( h -> avctx -> skip_loop_filter >= AVDISCARD_NONKEY && h -> slice_type_nos != AV_PICTURE_TYPE_I ) || ( h -> avctx -> skip_loop_filter >= AVDISCARD_BIDIR && h -> slice_type_nos == AV_PICTURE_TYPE_B ) || ( h -> avctx -> skip_loop_filter >= AVDISCARD_NONREF && h -> nal_ref_idc == 0 ) ) h -> deblocking_filter = 0 ;\n if ( h -> deblocking_filter == 1 && h0 -> max_contexts > 1 ) {\n if ( h -> avctx -> flags2 & CODEC_FLAG2_FAST ) {\n h -> deblocking_filter = 2 ;\n }\n else {\n h0 -> max_contexts = 1 ;\n if ( ! h0 -> single_decode_warning ) {\n av_log ( h -> avctx , AV_LOG_INFO , \"Cannot parallelize deblocking type 1, decoding such frames in sequential order\\n\" ) ;\n h0 -> single_decode_warning = 1 ;\n }\n if ( h != h0 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"Deblocking switched inside frame.\\n\" ) ;\n return 1 ;\n }\n }\n }\n h -> qp_thresh = 15 + 52 - FFMIN ( h -> slice_alpha_c0_offset , h -> slice_beta_offset ) - FFMAX3 ( 0 , h -> pps . chroma_qp_index_offset [ 0 ] , h -> pps . chroma_qp_index_offset [ 1 ] ) + * ( h -> sps . bit_depth_luma - 8 ) ;\n h0 -> last_slice_type = slice_type ;\n memcpy ( h0 -> last_ref_count , h0 -> ref_count , sizeof ( h0 -> last_ref_count ) ) ;\n h -> slice_num = ++ h0 -> current_slice ;\n if ( h -> slice_num ) h0 -> slice_row [ ( h -> slice_num - 1 ) & ( MAX_SLICES - 1 ) ] = h -> resync_mb_y ;\n if ( h0 -> slice_row [ h -> slice_num & ( MAX_SLICES - 1 ) ] + 3 >= h -> resync_mb_y && h0 -> slice_row [ h -> slice_num & ( MAX_SLICES - 1 ) ] <= h -> resync_mb_y && h -> slice_num >= MAX_SLICES ) {\n av_log ( h -> avctx , AV_LOG_WARNING , \"Possibly too many slices (%d >= %d), increase MAX_SLICES and recompile if there are artifacts\\n\" , h -> slice_num , MAX_SLICES ) ;\n }\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n int id_list [ 16 ] ;\n int * ref2frm = h -> ref2frm [ h -> slice_num & ( MAX_SLICES - 1 ) ] [ j ] ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n id_list [ i ] = 60 ;\n if ( j < h -> list_count && i < h -> ref_count [ j ] && h -> ref_list [ j ] [ i ] . f . buf [ 0 ] ) {\n int k ;\n AVBuffer * buf = h -> ref_list [ j ] [ i ] . f . buf [ 0 ] -> buffer ;\n for ( k = 0 ;\n k < h -> short_ref_count ;\n k ++ ) if ( h -> short_ref [ k ] -> f . buf [ 0 ] -> buffer == buf ) {\n id_list [ i ] = k ;\n break ;\n }\n for ( k = 0 ;\n k < h -> long_ref_count ;\n k ++ ) if ( h -> long_ref [ k ] && h -> long_ref [ k ] -> f . buf [ 0 ] -> buffer == buf ) {\n id_list [ i ] = h -> short_ref_count + k ;\n break ;\n }\n }\n }\n ref2frm [ 0 ] = ref2frm [ 1 ] = - 1 ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) ref2frm [ i + 2 ] = 4 * id_list [ i ] + ( h -> ref_list [ j ] [ i ] . reference & 3 ) ;\n ref2frm [ 18 + 0 ] = ref2frm [ 18 + 1 ] = - 1 ;\n for ( i = 16 ;\n i < 48 ;\n i ++ ) ref2frm [ i + 4 ] = 4 * id_list [ ( i - 16 ) >> 1 ] + ( h -> ref_list [ j ] [ i ] . reference & 3 ) ;\n }\n if ( h -> ref_count [ 0 ] ) h -> er . last_pic = & h -> ref_list [ 0 ] [ 0 ] ;\n if ( h -> ref_count [ 1 ] ) h -> er . next_pic = & h -> ref_list [ 1 ] [ 0 ] ;\n h -> er . ref_count = h -> ref_count [ 0 ] ;\n if ( h -> avctx -> debug & FF_DEBUG_PICT_INFO ) {\n av_log ( h -> avctx , AV_LOG_DEBUG , \"slice:%d %s mb:%d %c%s%s pps:%u frame:%d poc:%d/%d ref:%d/%d qp:%d loop:%d:%d:%d weight:%d%s %s\\n\" , h -> slice_num , ( h -> picture_structure == PICT_FRAME ? \"F\" : h -> picture_structure == PICT_TOP_FIELD ? \"T\" : \"B\" ) , first_mb_in_slice , av_get_picture_type_char ( h -> slice_type ) , h -> slice_type_fixed ? \" fix\" : \"\" , h -> nal_unit_type == NAL_IDR_SLICE ? \" IDR\" : \"\" , pps_id , h -> frame_num , h -> cur_pic_ptr -> field_poc [ 0 ] , h -> cur_pic_ptr -> field_poc [ 1 ] , h -> ref_count [ 0 ] , h -> ref_count [ 1 ] , h -> qscale , h -> deblocking_filter , h -> slice_alpha_c0_offset / 2 - 26 , h -> slice_beta_offset / 2 - 26 , h -> use_weight , h -> use_weight == 1 && h -> use_weight_chroma ? \"c\" : \"\" , h -> slice_type == AV_PICTURE_TYPE_B ? ( h -> direct_spatial_mv_pred ? \"SPAT\" : \"TEMP\" ) : \"\" ) ;\n }\n return 0 ;\n }"}
{"idx": 11764, "target": 0, "func": "int dissect_h225_AliasAddress ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_AliasAddress , AliasAddress_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 11765, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , TestNotifications ) {\n ProtocolHandler ph1 = CreateProtocolHandler ( \"test\" , \"test1\" ) ;\n NotificationCounter counter ( profile ( ) ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ;\n ASSERT_TRUE ( counter . notified ( ) ) ;\n counter . Clear ( ) ;\n registry ( ) -> Disable ( ) ;\n ASSERT_TRUE ( counter . notified ( ) ) ;\n counter . Clear ( ) ;\n registry ( ) -> Enable ( ) ;\n ASSERT_TRUE ( counter . notified ( ) ) ;\n counter . Clear ( ) ;\n registry ( ) -> RemoveHandler ( ph1 ) ;\n ASSERT_TRUE ( counter . notified ( ) ) ;\n counter . Clear ( ) ;\n }"}
{"idx": 11766, "target": 0, "func": "void * jas_realloc ( void * ptr , size_t size ) {\n void * result ;\n JAS_DBGLOG ( 101 , ( \"jas_realloc(%x, %zu)\\n\" , ptr , size ) ) ;\n result = realloc ( ptr , size ) ;\n JAS_DBGLOG ( 100 , ( \"jas_realloc(%p, %zu) -> %p\\n\" , ptr , size , result ) ) ;\n return result ;\n }"}
{"idx": 11767, "target": 1, "func": "void vp9_setup_scale_factors_for_frame ( struct scale_factors * sf , int other_w , int other_h , int this_w , int this_h ) {\n if ( ! valid_ref_frame_size ( other_w , other_h , this_w , this_h ) ) {\n sf -> x_scale_fp = REF_INVALID_SCALE ;\n sf -> y_scale_fp = REF_INVALID_SCALE ;\n return ;\n }\n sf -> x_scale_fp = get_fixed_point_scale_factor ( other_w , this_w ) ;\n sf -> y_scale_fp = get_fixed_point_scale_factor ( other_h , this_h ) ;\n sf -> x_step_q4 = scaled_x ( 16 , sf ) ;\n sf -> y_step_q4 = scaled_y ( 16 , sf ) ;\n if ( vp9_is_scaled ( sf ) ) {\n sf -> scale_value_x = scaled_x ;\n sf -> scale_value_y = scaled_y ;\n }\n else {\n sf -> scale_value_x = unscaled_value ;\n sf -> scale_value_y = unscaled_value ;\n }\n if ( sf -> x_step_q4 == 16 ) {\n if ( sf -> y_step_q4 == 16 ) {\n sf -> predict [ 0 ] [ 0 ] [ 0 ] = vp9_convolve_copy ;\n sf -> predict [ 0 ] [ 0 ] [ 1 ] = vp9_convolve_avg ;\n sf -> predict [ 0 ] [ 1 ] [ 0 ] = vp9_convolve8_vert ;\n sf -> predict [ 0 ] [ 1 ] [ 1 ] = vp9_convolve8_avg_vert ;\n sf -> predict [ 1 ] [ 0 ] [ 0 ] = vp9_convolve8_horiz ;\n sf -> predict [ 1 ] [ 0 ] [ 1 ] = vp9_convolve8_avg_horiz ;\n }\n else {\n sf -> predict [ 0 ] [ 0 ] [ 0 ] = vp9_convolve8_vert ;\n sf -> predict [ 0 ] [ 0 ] [ 1 ] = vp9_convolve8_avg_vert ;\n sf -> predict [ 0 ] [ 1 ] [ 0 ] = vp9_convolve8_vert ;\n sf -> predict [ 0 ] [ 1 ] [ 1 ] = vp9_convolve8_avg_vert ;\n sf -> predict [ 1 ] [ 0 ] [ 0 ] = vp9_convolve8 ;\n sf -> predict [ 1 ] [ 0 ] [ 1 ] = vp9_convolve8_avg ;\n }\n }\n else {\n if ( sf -> y_step_q4 == 16 ) {\n sf -> predict [ 0 ] [ 0 ] [ 0 ] = vp9_convolve8_horiz ;\n sf -> predict [ 0 ] [ 0 ] [ 1 ] = vp9_convolve8_avg_horiz ;\n sf -> predict [ 0 ] [ 1 ] [ 0 ] = vp9_convolve8 ;\n sf -> predict [ 0 ] [ 1 ] [ 1 ] = vp9_convolve8_avg ;\n sf -> predict [ 1 ] [ 0 ] [ 0 ] = vp9_convolve8_horiz ;\n sf -> predict [ 1 ] [ 0 ] [ 1 ] = vp9_convolve8_avg_horiz ;\n }\n else {\n sf -> predict [ 0 ] [ 0 ] [ 0 ] = vp9_convolve8 ;\n sf -> predict [ 0 ] [ 0 ] [ 1 ] = vp9_convolve8_avg ;\n sf -> predict [ 0 ] [ 1 ] [ 0 ] = vp9_convolve8 ;\n sf -> predict [ 0 ] [ 1 ] [ 1 ] = vp9_convolve8_avg ;\n sf -> predict [ 1 ] [ 0 ] [ 0 ] = vp9_convolve8 ;\n sf -> predict [ 1 ] [ 0 ] [ 1 ] = vp9_convolve8_avg ;\n }\n }\n sf -> predict [ 1 ] [ 1 ] [ 0 ] = vp9_convolve8 ;\n sf -> predict [ 1 ] [ 1 ] [ 1 ] = vp9_convolve8_avg ;\n }"}
{"idx": 11768, "target": 0, "func": "static guint32 dissect_netb_name_resp ( tvbuff_t * tvb , packet_info * pinfo _U_ , int offset , proto_tree * tree ) {\n guint8 local_session_number = tvb_get_guint8 ( tvb , offset + NB_DATA2 ) ;\n switch ( local_session_number ) {\n case 0x00 : proto_tree_add_uint_format_value ( tree , hf_netb_state_of_name , tvb , offset + NB_DATA2 , 1 , local_session_number , \"No LISTEN pending, or FIND.NAME response\" ) ;\n break ;\n case 0xFF : proto_tree_add_uint_format_value ( tree , hf_netb_state_of_name , tvb , offset + NB_DATA2 , 1 , local_session_number , \"LISTEN pending, but insufficient resources to establish session\" ) ;\n break ;\n default : proto_tree_add_item ( tree , hf_netb_local_session_no , tvb , offset + NB_DATA2 , 1 , ENC_LITTLE_ENDIAN ) ;\n break ;\n }\n nb_call_name_type ( tvb , offset , tree ) ;\n nb_xmit_corrl ( tvb , offset , tree ) ;\n if ( local_session_number != 0x00 && local_session_number != 0xFF ) nb_resp_corrl ( tvb , offset , tree ) ;\n netbios_add_name ( \"Receiver's Name\" , tvb , offset + NB_RECVER_NAME , tree ) ;\n if ( local_session_number != 0x00 && local_session_number != 0xFF ) {\n netbios_add_name ( \"Sender's Name\" , tvb , offset + NB_SENDER_NAME , tree ) ;\n }\n return 0 ;\n }"}
{"idx": 11769, "target": 0, "func": "static PHP_NAMED_FUNCTION ( zif_zip_close ) {\n zval * zip ;\n zip_rsrc * z_rsrc = NULL ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"r\" , & zip ) == FAILURE ) {\n return ;\n }\n ZEND_FETCH_RESOURCE ( z_rsrc , zip_rsrc * , & zip , - 1 , le_zip_dir_name , le_zip_dir ) ;\n zend_list_delete ( Z_LVAL_P ( zip ) ) ;\n }"}
{"idx": 11770, "target": 0, "func": "static inline TranslationBlock * tb_find_fast ( CPUArchState * env ) {\n TranslationBlock * tb ;\n target_ulong cs_base , pc ;\n int flags ;\n cpu_get_tb_cpu_state ( env , & pc , & cs_base , & flags ) ;\n tb = env -> tb_jmp_cache [ tb_jmp_cache_hash_func ( pc ) ] ;\n if ( unlikely ( ! tb || tb -> pc != pc || tb -> cs_base != cs_base || tb -> flags != flags ) ) {\n tb = tb_find_slow ( env , pc , cs_base , flags ) ;\n }\n return tb ;\n }"}
{"idx": 11771, "target": 0, "func": "static int32_t U_CALLCONV uprv_swapArray32 ( const UDataSwapper * ds , const void * inData , int32_t length , void * outData , UErrorCode * pErrorCode ) {\n const uint32_t * p ;\n uint32_t * q ;\n int32_t count ;\n uint32_t x ;\n if ( pErrorCode == NULL || U_FAILURE ( * pErrorCode ) ) {\n return 0 ;\n }\n if ( ds == NULL || inData == NULL || length < 0 || ( length & 3 ) != 0 || outData == NULL ) {\n * pErrorCode = U_ILLEGAL_ARGUMENT_ERROR ;\n return 0 ;\n }\n p = ( const uint32_t * ) inData ;\n q = ( uint32_t * ) outData ;\n count = length / 4 ;\n while ( count > 0 ) {\n x = * p ++ ;\n * q ++ = ( uint32_t ) ( ( x << 24 ) | ( ( x << 8 ) & 0xff0000 ) | ( ( x >> 8 ) & 0xff00 ) | ( x >> 24 ) ) ;\n -- count ;\n }\n return length ;\n }"}
{"idx": 11772, "target": 0, "func": "int s390_virtio_hypercall ( CPUState * env ) {\n int r = 0 , i ;\n target_ulong mem = env -> regs [ 2 ] ;\n dprintf ( \"KVM hypercall: %ld\\n\" , env -> regs [ 1 ] ) ;\n switch ( env -> regs [ 1 ] ) {\n case KVM_S390_VIRTIO_NOTIFY : if ( mem > ram_size ) {\n VirtIOS390Device * dev = s390_virtio_bus_find_vring ( s390_bus , mem , & i ) ;\n if ( dev ) {\n virtio_queue_notify ( dev -> vdev , i ) ;\n }\n else {\n r = - EINVAL ;\n }\n }\n else {\n }\n break ;\n case KVM_S390_VIRTIO_RESET : {\n break ;\n }\n case KVM_S390_VIRTIO_SET_STATUS : {\n VirtIOS390Device * dev ;\n dev = s390_virtio_bus_find_mem ( s390_bus , mem ) ;\n if ( dev ) {\n s390_virtio_device_update_status ( dev ) ;\n }\n else {\n r = - EINVAL ;\n }\n break ;\n }\n default : r = - EINVAL ;\n break ;\n }\n env -> regs [ 2 ] = r ;\n return 0 ;\n }"}
{"idx": 11773, "target": 0, "func": "static int flic_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n if ( avctx -> pix_fmt == AV_PIX_FMT_PAL8 ) {\n return flic_decode_frame_8BPP ( avctx , data , got_frame , buf , buf_size ) ;\n }\n else if ( ( avctx -> pix_fmt == AV_PIX_FMT_RGB555 ) || ( avctx -> pix_fmt == AV_PIX_FMT_RGB565 ) ) {\n return flic_decode_frame_15_16BPP ( avctx , data , got_frame , buf , buf_size ) ;\n }\n else if ( avctx -> pix_fmt == AV_PIX_FMT_BGR24 ) {\n return flic_decode_frame_24BPP ( avctx , data , got_frame , buf , buf_size ) ;\n }\n av_log ( avctx , AV_LOG_ERROR , \"Unknown FLC format, my science cannot explain how this happened.\\n\" ) ;\n return AVERROR_BUG ;\n }"}
{"idx": 11774, "target": 1, "func": "static int svq3_decode_end ( AVCodecContext * avctx ) {\n SVQ3Context * s = avctx -> priv_data ;\n H264Context * h = & s -> h ;\n free_picture ( avctx , s -> cur_pic ) ;\n free_picture ( avctx , s -> next_pic ) ;\n free_picture ( avctx , s -> last_pic ) ;\n ff_h264_free_context ( h ) ;\n return 0 ;\n }"}
{"idx": 11775, "target": 0, "func": "static void server_command ( const char * data , SERVER_REC * server , WI_ITEM_REC * item ) {\n if ( server == NULL ) {\n server = active_win -> connect_server ;\n }\n signal_continue ( 3 , data , server , item ) ;\n }"}
{"idx": 11776, "target": 0, "func": "void * jas_realloc2 ( void * ptr , size_t num_elements , size_t element_size ) {\n size_t size ;\n if ( ! jas_safe_size_mul ( num_elements , element_size , & size ) ) {\n return 0 ;\n }\n return jas_realloc ( ptr , size ) ;\n }"}
{"idx": 11777, "target": 0, "func": "static void mime_db_changed_callback ( GObject * ignore , NautilusDirectory * dir ) {\n NautilusFileAttributes attrs ;\n g_assert ( dir != NULL ) ;\n g_assert ( dir -> details != NULL ) ;\n attrs = NAUTILUS_FILE_ATTRIBUTE_INFO | NAUTILUS_FILE_ATTRIBUTE_LINK_INFO | NAUTILUS_FILE_ATTRIBUTE_DIRECTORY_ITEM_MIME_TYPES ;\n nautilus_directory_force_reload_internal ( dir , attrs ) ;\n }"}
{"idx": 11778, "target": 0, "func": "static int com_charset ( String * buffer __attribute__ ( ( unused ) ) , char * line ) {\n char buff [ 256 ] , * param ;\n CHARSET_INFO * new_cs ;\n strmake_buf ( buff , line ) ;\n param = get_arg ( buff , GET ) ;\n if ( ! param || ! * param ) {\n return put_info ( \"Usage: \\\\C charset_name | charset charset_name\" , INFO_ERROR , 0 ) ;\n }\n new_cs = get_charset_by_csname ( param , MY_CS_PRIMARY , MYF ( MY_WME ) ) ;\n if ( new_cs ) {\n charset_info = new_cs ;\n mysql_set_character_set ( & mysql , charset_info -> csname ) ;\n default_charset = ( char * ) charset_info -> csname ;\n put_info ( \"Charset changed\" , INFO_INFO ) ;\n }\n else put_info ( \"Charset is not found\" , INFO_INFO ) ;\n return 0 ;\n }"}
{"idx": 11779, "target": 0, "func": "static void proto_tree_set_bytes_gbytearray ( field_info * fi , const GByteArray * value ) {\n GByteArray * bytes ;\n DISSECTOR_ASSERT ( value != NULL ) ;\n bytes = byte_array_dup ( value ) ;\n fvalue_set_byte_array ( & fi -> value , bytes ) ;\n }"}
{"idx": 11780, "target": 0, "func": "static int get_fixed_point_scale_factor ( int other_size , int this_size ) {\n return ( other_size << REF_SCALE_SHIFT ) / this_size ;\n }"}
{"idx": 11781, "target": 0, "func": "static int make_aos ( i_ctx_t * i_ctx_p , os_ptr op , int blk_sz , int blk_sz_last , uint file_sz ) {\n stream * s ;\n aos_state_t * ss ;\n byte * buf ;\n const int aos_buf_size = 1024 ;\n uint save_space = icurrent_space ;\n ialloc_set_space ( idmemory , r_space ( op ) ) ;\n s = s_alloc ( imemory , \"aos_stream\" ) ;\n ss = ( aos_state_t * ) s_alloc_state ( imemory , & st_aos_state , \"st_aos_state\" ) ;\n buf = gs_alloc_bytes ( imemory , aos_buf_size , \"aos_stream_buf\" ) ;\n if ( s == 0 || ss == 0 || buf == 0 ) {\n gs_free_object ( imemory , buf , \"aos_stream_buf\" ) ;\n gs_free_object ( imemory , ss , \"st_aos_state\" ) ;\n gs_free_object ( imemory , s , \"aos_stream\" ) ;\n ialloc_set_space ( idmemory , save_space ) ;\n return_error ( gs_error_VMerror ) ;\n }\n ialloc_set_space ( idmemory , save_space ) ;\n ss -> templat = & s_aos_template ;\n ss -> blocks = * op ;\n ss -> s = s ;\n ss -> blk_sz = blk_sz ;\n ss -> blk_sz_last = blk_sz_last ;\n ss -> file_sz = file_sz ;\n s_std_init ( s , buf , aos_buf_size , & s_aos_procs , s_mode_read + s_mode_seek ) ;\n s -> state = ( stream_state * ) ss ;\n s -> file_offset = 0 ;\n s -> file_limit = S_FILE_LIMIT_MAX ;\n s -> close_at_eod = false ;\n s -> read_id = 1 ;\n make_stream_file ( op , s , \"r\" ) ;\n return 0 ;\n }"}
{"idx": 11782, "target": 0, "func": "static int dissect_zbee_zcl_poll_ctrl ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n zbee_zcl_packet * zcl ;\n guint offset = 0 ;\n guint8 cmd_id ;\n if ( data == NULL ) return 0 ;\n zcl = ( zbee_zcl_packet * ) data ;\n cmd_id = zcl -> cmd_id ;\n if ( zcl -> direction == ZBEE_ZCL_FCF_TO_SERVER ) {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"%s, Seq: %u\" , val_to_str_const ( cmd_id , zbee_zcl_poll_ctrl_srv_rx_cmd_names , \"Unknown Command\" ) , zcl -> tran_seqno ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_poll_ctrl_srv_rx_cmd_id , tvb , offset , 1 , cmd_id ) ;\n offset ++ ;\n switch ( cmd_id ) {\n case ZBEE_ZCL_CMD_ID_POLL_CTRL_CHECK_IN_RESPONSE : proto_tree_add_item ( tree , hf_zbee_zcl_poll_ctrl_start_fast_polling , tvb , offset , 1 , ENC_NA ) ;\n offset ++ ;\n proto_tree_add_item ( tree , hf_zbee_zcl_poll_ctrl_fast_poll_timeout , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_POLL_CTRL_FAST_POLL_STOP : break ;\n case ZBEE_ZCL_CMD_ID_POLL_CTRL_SET_LONG_POLL : proto_tree_add_item ( tree , hf_zbee_zcl_poll_ctrl_new_long_poll_interval , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_POLL_CTRL_SET_SHORT_POLL : proto_tree_add_item ( tree , hf_zbee_zcl_poll_ctrl_new_short_poll_interval , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n break ;\n default : break ;\n }\n }\n else {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"%s, Seq: %u\" , val_to_str_const ( cmd_id , zbee_zcl_poll_ctrl_srv_tx_cmd_names , \"Unknown Command\" ) , zcl -> tran_seqno ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_poll_ctrl_srv_tx_cmd_id , tvb , offset , 1 , ENC_NA ) ;\n offset ++ ;\n switch ( cmd_id ) {\n case ZBEE_ZCL_CMD_ID_POLL_CTRL_CHECK_IN : default : break ;\n }\n }\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 11783, "target": 1, "func": "int DSA_verify ( int type , const unsigned char * dgst , int dgst_len , const unsigned char * sigbuf , int siglen , DSA * dsa ) {\n DSA_SIG * s ;\n int ret = - 1 ;\n s = DSA_SIG_new ( ) ;\n if ( s == NULL ) return ( ret ) ;\n if ( d2i_DSA_SIG ( & s , & sigbuf , siglen ) == NULL ) goto err ;\n ret = DSA_do_verify ( dgst , dgst_len , s , dsa ) ;\n err : DSA_SIG_free ( s ) ;\n return ( ret ) ;\n }"}
{"idx": 11784, "target": 0, "func": "HTTPValTE * http_parse_te ( const char * buf , int len , Arena * arena ) {\n HTTPValTE * val ;\n const char * s ;\n http_skip_ws ( buf , len ) ;\n s = buf ;\n while ( len > 0 && * buf && ( * buf != ';\n' ) ) {\n buf += 1 ;\n len -= 1 ;\n }\n val = ( HTTPValTE * ) arena -> alloc ( sizeof ( HTTPValTE ) ) ;\n val -> encoding = http_str_store ( arena , s , ( int ) ( buf - s ) ) ;\n val -> qvalue = http_parse_qvalue ( buf , len ) ;\n return val ;\n }"}
{"idx": 11785, "target": 0, "func": "static void dumpcffprivate ( SplineFont * sf , struct alltabs * at , int subfont , int subrcnt ) {\n char * pt ;\n FILE * private = subfont == - 1 ? at -> private : at -> fds [ subfont ] . private ;\n int mi , i ;\n real bluevalues [ 14 ] , otherblues [ 10 ] ;\n real snapcnt [ 12 ] ;\n real stemsnaph [ 12 ] , stemsnapv [ 12 ] ;\n real stdhw [ 1 ] , stdvw [ 1 ] ;\n int hasblue = 0 , hash = 0 , hasv = 0 , bs ;\n int nomwid , defwid ;\n EncMap * map = at -> map ;\n double bluescale ;\n if ( subfont == - 1 ) defwid = at -> defwid ;\n else defwid = at -> fds [ subfont ] . defwid ;\n dumpintoper ( private , defwid , 20 ) ;\n if ( subfont == - 1 ) nomwid = at -> nomwid ;\n else nomwid = at -> fds [ subfont ] . nomwid ;\n dumpintoper ( private , nomwid , 21 ) ;\n bs = SplineFontIsFlexible ( sf , at -> gi . layer , at -> gi . flags ) ;\n hasblue = PSDictHasEntry ( sf -> private , \"BlueValues\" ) != NULL ;\n hash = PSDictHasEntry ( sf -> private , \"StdHW\" ) != NULL ;\n hasv = PSDictHasEntry ( sf -> private , \"StdVW\" ) != NULL ;\n ff_progress_change_stages ( 2 + autohint_before_generate + ! hasblue ) ;\n if ( autohint_before_generate ) {\n ff_progress_change_line1 ( _ ( \"Auto Hinting Font...\" ) ) ;\n SplineFontAutoHint ( sf , at -> gi . layer ) ;\n ff_progress_next_stage ( ) ;\n }\n otherblues [ 0 ] = otherblues [ 1 ] = bluevalues [ 0 ] = bluevalues [ 1 ] = 0 ;\n if ( ! hasblue ) {\n FindBlues ( sf , at -> gi . layer , bluevalues , otherblues ) ;\n ff_progress_next_stage ( ) ;\n }\n stdhw [ 0 ] = stdvw [ 0 ] = 0 ;\n if ( ! hash ) {\n FindHStems ( sf , stemsnaph , snapcnt ) ;\n mi = - 1 ;\n for ( i = 0 ;\n i < 12 && stemsnaph [ i ] != 0 ;\n ++ i ) if ( mi == - 1 ) mi = i ;\n else if ( snapcnt [ i ] > snapcnt [ mi ] ) mi = i ;\n if ( mi != - 1 ) stdhw [ 0 ] = stemsnaph [ mi ] ;\n }\n if ( ! hasv ) {\n FindVStems ( sf , stemsnapv , snapcnt ) ;\n mi = - 1 ;\n for ( i = 0 ;\n i < 12 && stemsnapv [ i ] != 0 ;\n ++ i ) if ( mi == - 1 ) mi = i ;\n else if ( snapcnt [ i ] > snapcnt [ mi ] ) mi = i ;\n if ( mi != - 1 ) stdvw [ 0 ] = stemsnapv [ mi ] ;\n }\n ff_progress_change_line1 ( _ ( \"Saving OpenType Font\" ) ) ;\n if ( hasblue ) DumpStrArray ( PSDictHasEntry ( sf -> private , \"BlueValues\" ) , private , 6 ) ;\n else DumpDblArray ( bluevalues , sizeof ( bluevalues ) / sizeof ( bluevalues [ 0 ] ) , private , 6 ) ;\n if ( ( pt = PSDictHasEntry ( sf -> private , \"OtherBlues\" ) ) != NULL ) DumpStrArray ( pt , private , 7 ) ;\n else if ( ! hasblue ) DumpDblArray ( otherblues , sizeof ( otherblues ) / sizeof ( otherblues [ 0 ] ) , private , 7 ) ;\n if ( ( pt = PSDictHasEntry ( sf -> private , \"FamilyBlues\" ) ) != NULL ) DumpStrArray ( pt , private , 8 ) ;\n bluescale = BlueScaleFigure ( sf -> private , bluevalues , otherblues ) ;\n if ( ( pt = PSDictHasEntry ( sf -> private , \"FamilyOtherBlues\" ) ) != NULL ) DumpStrArray ( pt , private , 9 ) ;\n if ( ( pt = PSDictHasEntry ( sf -> private , \"BlueScale\" ) ) != NULL ) DumpStrDouble ( pt , private , ( 12 << 8 ) + 9 ) ;\n else if ( bluescale != - 1 ) dumpdbloper ( private , bluescale , ( 12 << 8 ) + 9 ) ;\n if ( ( pt = PSDictHasEntry ( sf -> private , \"BlueShift\" ) ) != NULL ) DumpStrDouble ( pt , private , ( 12 << 8 ) + 10 ) ;\n else dumpintoper ( private , bs , ( 12 << 8 ) + 10 ) ;\n if ( ( pt = PSDictHasEntry ( sf -> private , \"BlueFuzz\" ) ) != NULL ) DumpStrDouble ( pt , private , ( 12 << 8 ) + 11 ) ;\n if ( hash ) {\n DumpStrDouble ( PSDictHasEntry ( sf -> private , \"StdHW\" ) , private , 10 ) ;\n if ( ( pt = PSDictHasEntry ( sf -> private , \"StemSnapH\" ) ) != NULL ) DumpStrArray ( pt , private , ( 12 << 8 ) | 12 ) ;\n }\n else {\n if ( stdhw [ 0 ] != 0 ) dumpdbloper ( private , stdhw [ 0 ] , 10 ) ;\n DumpDblArray ( stemsnaph , sizeof ( stemsnaph ) / sizeof ( stemsnaph [ 0 ] ) , private , ( 12 << 8 ) | 12 ) ;\n }\n if ( hasv ) {\n DumpStrDouble ( PSDictHasEntry ( sf -> private , \"StdVW\" ) , private , 11 ) ;\n if ( ( pt = PSDictHasEntry ( sf -> private , \"StemSnapV\" ) ) != NULL ) DumpStrArray ( pt , private , ( 12 << 8 ) | 13 ) ;\n }\n else {\n if ( stdvw [ 0 ] != 0 ) dumpdbloper ( private , stdvw [ 0 ] , 11 ) ;\n DumpDblArray ( stemsnapv , sizeof ( stemsnapv ) / sizeof ( stemsnapv [ 0 ] ) , private , ( 12 << 8 ) | 13 ) ;\n }\n if ( ( pt = PSDictHasEntry ( sf -> private , \"ForceBold\" ) ) != NULL ) {\n dumpintoper ( private , * pt == 't' || * pt == 'T' , ( 12 << 8 ) | 14 ) ;\n }\n else if ( sf -> weight != NULL && ( strstrmatch ( sf -> weight , \"Bold\" ) != NULL || strstrmatch ( sf -> weight , \"Demi\" ) != NULL || strstrmatch ( sf -> weight , \"Fett\" ) != NULL || strstrmatch ( sf -> weight , \"Gras\" ) != NULL || strstrmatch ( sf -> weight , \"Heavy\" ) != NULL || strstrmatch ( sf -> weight , \"Black\" ) != NULL ) ) dumpintoper ( private , 1 , ( 12 << 8 ) | 14 ) ;\n if ( ( pt = PSDictHasEntry ( sf -> private , \"LanguageGroup\" ) ) != NULL ) DumpStrDouble ( pt , private , ( 12 << 8 ) + 17 ) ;\n else if ( map == NULL ) ;\n else if ( map -> enc -> is_japanese || map -> enc -> is_korean || map -> enc -> is_tradchinese || map -> enc -> is_simplechinese ) dumpintoper ( private , 1 , ( 12 << 8 ) | 17 ) ;\n if ( ( pt = PSDictHasEntry ( sf -> private , \"ExpansionFactor\" ) ) != NULL ) DumpStrDouble ( pt , private , ( 12 << 8 ) + 18 ) ;\n if ( subrcnt != 0 ) dumpsizedint ( private , false , ftell ( private ) + 3 + 1 , 19 ) ;\n if ( subfont == - 1 ) at -> privatelen = ftell ( private ) ;\n else at -> fds [ subfont ] . privatelen = ftell ( private ) ;\n }"}
{"idx": 11786, "target": 0, "func": "void remove_tap_listener_iax2_calls ( void ) {\n remove_tap_listener ( & ( the_tapinfo_struct . iax2_dummy ) ) ;\n have_iax2_tap_listener = FALSE ;\n }"}
{"idx": 11787, "target": 0, "func": "static void timerblock_reload ( TimerBlock * tb , int restart ) {\n if ( tb -> count == 0 ) {\n return ;\n }\n if ( restart ) {\n tb -> tick = qemu_get_clock_ns ( vm_clock ) ;\n }\n tb -> tick += ( int64_t ) tb -> count * timerblock_scale ( tb ) ;\n qemu_mod_timer ( tb -> timer , tb -> tick ) ;\n }"}
{"idx": 11788, "target": 0, "func": "static int dissect_rsl_ie_rtd ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_item * rtd_item ;\n proto_tree * ie_tree ;\n guint8 ie_id ;\n guint8 rtd ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_RTD ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_ie_rtd , NULL , \"Round Trip Delay IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n rtd = ( tvb_get_guint8 ( tvb , offset ) >> 1 ) * 20 ;\n rtd_item = proto_tree_add_uint ( tree , hf_rsl_rtd , tvb , offset , 1 , rtd ) ;\n proto_item_append_text ( rtd_item , \" ms\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_delay_ind , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n return offset ;\n }"}
{"idx": 11789, "target": 1, "func": "static int vp9_pattern_search ( const MACROBLOCK * x , MV * ref_mv , int search_param , int sad_per_bit , int do_init_search , int * sad_list , const vp9_variance_fn_ptr_t * vfp , int use_mvcost , const MV * center_mv , MV * best_mv , const int num_candidates [ MAX_PATTERN_SCALES ] , const MV candidates [ MAX_PATTERN_SCALES ] [ MAX_PATTERN_CANDIDATES ] ) {\n const MACROBLOCKD * const xd = & x -> e_mbd ;\n static const int search_param_to_steps [ MAX_MVSEARCH_STEPS ] = {\n 10 , 9 , 8 , 7 , 6 , 5 , 4 , 3 , 2 , 1 , 0 , }\n ;\n int i , s , t ;\n const struct buf_2d * const what = & x -> plane [ 0 ] . src ;\n const struct buf_2d * const in_what = & xd -> plane [ 0 ] . pre [ 0 ] ;\n int br , bc ;\n int bestsad = INT_MAX ;\n int thissad ;\n int k = - 1 ;\n const MV fcenter_mv = {\n center_mv -> row >> 3 , center_mv -> col >> 3 }\n ;\n int best_init_s = search_param_to_steps [ search_param ] ;\n clamp_mv ( ref_mv , x -> mv_col_min , x -> mv_col_max , x -> mv_row_min , x -> mv_row_max ) ;\n br = ref_mv -> row ;\n bc = ref_mv -> col ;\n bestsad = vfp -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , ref_mv ) , in_what -> stride ) + mvsad_err_cost ( x , ref_mv , & fcenter_mv , sad_per_bit ) ;\n if ( do_init_search ) {\n s = best_init_s ;\n best_init_s = - 1 ;\n for ( t = 0 ;\n t <= s ;\n ++ t ) {\n int best_site = - 1 ;\n if ( check_bounds ( x , br , bc , 1 << t ) ) {\n for ( i = 0 ;\n i < num_candidates [ t ] ;\n i ++ ) {\n const MV this_mv = {\n br + candidates [ t ] [ i ] . row , bc + candidates [ t ] [ i ] . col }\n ;\n thissad = vfp -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , & this_mv ) , in_what -> stride ) ;\n CHECK_BETTER }\n }\n else {\n for ( i = 0 ;\n i < num_candidates [ t ] ;\n i ++ ) {\n const MV this_mv = {\n br + candidates [ t ] [ i ] . row , bc + candidates [ t ] [ i ] . col }\n ;\n if ( ! is_mv_in ( x , & this_mv ) ) continue ;\n thissad = vfp -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , & this_mv ) , in_what -> stride ) ;\n CHECK_BETTER }\n }\n if ( best_site == - 1 ) {\n continue ;\n }\n else {\n best_init_s = t ;\n k = best_site ;\n }\n }\n if ( best_init_s != - 1 ) {\n br += candidates [ best_init_s ] [ k ] . row ;\n bc += candidates [ best_init_s ] [ k ] . col ;\n }\n }\n if ( best_init_s != - 1 ) {\n int best_site = - 1 ;\n s = best_init_s ;\n do {\n if ( ! do_init_search || s != best_init_s ) {\n if ( check_bounds ( x , br , bc , 1 << s ) ) {\n for ( i = 0 ;\n i < num_candidates [ s ] ;\n i ++ ) {\n const MV this_mv = {\n br + candidates [ s ] [ i ] . row , bc + candidates [ s ] [ i ] . col }\n ;\n thissad = vfp -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , & this_mv ) , in_what -> stride ) ;\n CHECK_BETTER }\n }\n else {\n for ( i = 0 ;\n i < num_candidates [ s ] ;\n i ++ ) {\n const MV this_mv = {\n br + candidates [ s ] [ i ] . row , bc + candidates [ s ] [ i ] . col }\n ;\n if ( ! is_mv_in ( x , & this_mv ) ) continue ;\n thissad = vfp -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , & this_mv ) , in_what -> stride ) ;\n CHECK_BETTER }\n }\n if ( best_site == - 1 ) {\n continue ;\n }\n else {\n br += candidates [ s ] [ best_site ] . row ;\n bc += candidates [ s ] [ best_site ] . col ;\n k = best_site ;\n }\n }\n do {\n int next_chkpts_indices [ PATTERN_CANDIDATES_REF ] ;\n best_site = - 1 ;\n next_chkpts_indices [ 0 ] = ( k == 0 ) ? num_candidates [ s ] - 1 : k - 1 ;\n next_chkpts_indices [ 1 ] = k ;\n next_chkpts_indices [ 2 ] = ( k == num_candidates [ s ] - 1 ) ? 0 : k + 1 ;\n if ( check_bounds ( x , br , bc , 1 << s ) ) {\n for ( i = 0 ;\n i < PATTERN_CANDIDATES_REF ;\n i ++ ) {\n const MV this_mv = {\n br + candidates [ s ] [ next_chkpts_indices [ i ] ] . row , bc + candidates [ s ] [ next_chkpts_indices [ i ] ] . col }\n ;\n thissad = vfp -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , & this_mv ) , in_what -> stride ) ;\n CHECK_BETTER }\n }\n else {\n for ( i = 0 ;\n i < PATTERN_CANDIDATES_REF ;\n i ++ ) {\n const MV this_mv = {\n br + candidates [ s ] [ next_chkpts_indices [ i ] ] . row , bc + candidates [ s ] [ next_chkpts_indices [ i ] ] . col }\n ;\n if ( ! is_mv_in ( x , & this_mv ) ) continue ;\n thissad = vfp -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , & this_mv ) , in_what -> stride ) ;\n CHECK_BETTER }\n }\n if ( best_site != - 1 ) {\n k = next_chkpts_indices [ best_site ] ;\n br += candidates [ s ] [ k ] . row ;\n bc += candidates [ s ] [ k ] . col ;\n }\n }\n while ( best_site != - 1 ) ;\n }\n while ( s -- ) ;\n }\n if ( sad_list ) {\n static const MV neighbors [ 4 ] = {\n {\n 0 , - 1 }\n , {\n - 1 , 0 }\n , {\n 0 , 1 }\n , {\n 1 , 0 }\n }\n ;\n sad_list [ 0 ] = bestsad ;\n if ( check_bounds ( x , br , bc , 1 ) ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n const MV this_mv = {\n br + neighbors [ i ] . row , bc + neighbors [ i ] . col }\n ;\n sad_list [ i + 1 ] = vfp -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , & this_mv ) , in_what -> stride ) ;\n }\n }\n else {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n const MV this_mv = {\n br + neighbors [ i ] . row , bc + neighbors [ i ] . col }\n ;\n if ( ! is_mv_in ( x , & this_mv ) ) sad_list [ i + 1 ] = INT_MAX ;\n else sad_list [ i + 1 ] = vfp -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , & this_mv ) , in_what -> stride ) ;\n }\n }\n }\n best_mv -> row = br ;\n best_mv -> col = bc ;\n return bestsad ;\n }"}
{"idx": 11790, "target": 0, "func": "static int truemotion1_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int ret , buf_size = avpkt -> size ;\n TrueMotion1Context * s = avctx -> priv_data ;\n s -> buf = buf ;\n s -> size = buf_size ;\n if ( ( ret = truemotion1_decode_header ( s ) ) < 0 ) return ret ;\n if ( ( ret = ff_reget_buffer ( avctx , & s -> frame ) ) < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( compression_types [ s -> compression ] . algorithm == ALGO_RGB24H ) {\n truemotion1_decode_24bit ( s ) ;\n }\n else if ( compression_types [ s -> compression ] . algorithm != ALGO_NOP ) {\n truemotion1_decode_16bit ( s ) ;\n }\n if ( ( ret = av_frame_ref ( data , & s -> frame ) ) < 0 ) return ret ;\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 11791, "target": 0, "func": "static void process_flags ( int argc , char * * argv ) {\n int c ;\n static struct option long_options [ ] = {\n {\n \"command\" , required_argument , NULL , 'c' }\n , {\n \"help\" , no_argument , NULL , 'h' }\n , {\n \"login\" , no_argument , NULL , 'l' }\n , {\n \"preserve-environment\" , no_argument , NULL , 'p' }\n , {\n \"shell\" , required_argument , NULL , 's' }\n , {\n NULL , 0 , NULL , '\\0' }\n }\n ;\n while ( ( c = getopt_long ( argc , argv , \"c:hlmps:\" , long_options , NULL ) ) != - 1 ) {\n switch ( c ) {\n case 'c' : command = optarg ;\n break ;\n case 'h' : usage ( E_SUCCESS ) ;\n break ;\n case 'l' : fakelogin = true ;\n break ;\n case 'm' : case 'p' : change_environment = false ;\n break ;\n case 's' : shellstr = optarg ;\n break ;\n default : usage ( E_USAGE ) ;\n }\n }\n if ( ( optind < argc ) && ( strcmp ( argv [ optind ] , \"-\" ) == 0 ) ) {\n fakelogin = true ;\n optind ++ ;\n if ( ( optind < argc ) && ( strcmp ( argv [ optind ] , \"--\" ) == 0 ) ) {\n optind ++ ;\n }\n }\n if ( ( optind < argc ) && ( '-' != argv [ optind ] [ 0 ] ) ) {\n STRFCPY ( name , argv [ optind ++ ] ) ;\n if ( ( optind < argc ) && ( strcmp ( argv [ optind ] , \"--\" ) == 0 ) ) {\n optind ++ ;\n }\n }\n if ( '\\0' == name [ 0 ] ) {\n struct passwd * root_pw = getpwnam ( \"root\" ) ;\n if ( ( NULL != root_pw ) && ( 0 == root_pw -> pw_uid ) ) {\n ( void ) strcpy ( name , \"root\" ) ;\n }\n else {\n root_pw = getpwuid ( 0 ) ;\n if ( NULL == root_pw ) {\n SYSLOG ( ( LOG_CRIT , \"There is no UID 0 user.\" ) ) ;\n su_failure ( caller_tty , true ) ;\n }\n ( void ) strcpy ( name , root_pw -> pw_name ) ;\n }\n }\n doshell = ( argc == optind ) ;\n if ( NULL != command ) {\n doshell = false ;\n }\n }"}
{"idx": 11792, "target": 0, "func": "void http_hdr_reason_set ( HdrHeap * heap , HTTPHdrImpl * hh , const char * value , int length , bool must_copy ) {\n ink_assert ( hh -> m_polarity == HTTP_TYPE_RESPONSE ) ;\n mime_str_u16_set ( heap , value , length , & ( hh -> u . resp . m_ptr_reason ) , & ( hh -> u . resp . m_len_reason ) , must_copy ) ;\n }"}
{"idx": 11793, "target": 0, "func": "static int decode_udvm_literal_operand ( guint8 * buff , guint operand_address , guint16 * value ) {\n guint bytecode ;\n guint16 operand ;\n guint test_bits ;\n guint offset = operand_address ;\n guint8 temp_data ;\n if ( operand_address >= UDVM_MEMORY_SIZE ) return - 1 ;\n bytecode = buff [ operand_address ] ;\n test_bits = bytecode >> 7 ;\n if ( test_bits == 1 ) {\n test_bits = bytecode >> 6 ;\n if ( test_bits == 2 ) {\n temp_data = buff [ operand_address ] & 0x1f ;\n operand = temp_data << 8 ;\n temp_data = buff [ ( operand_address + 1 ) & 0xffff ] ;\n operand = operand | temp_data ;\n * value = operand ;\n offset = offset + 2 ;\n }\n else {\n offset ++ ;\n temp_data = buff [ operand_address ] & 0x1f ;\n operand = temp_data << 8 ;\n temp_data = buff [ ( operand_address + 1 ) & 0xffff ] ;\n operand = operand | temp_data ;\n * value = operand ;\n offset = offset + 2 ;\n }\n }\n else {\n operand = ( bytecode & 0x7f ) ;\n * value = operand ;\n offset ++ ;\n }\n return offset ;\n }"}
{"idx": 11794, "target": 0, "func": "static mpa_state_t * get_mpa_state ( conversation_t * conversation ) {\n if ( conversation ) {\n return ( mpa_state_t * ) conversation_get_proto_data ( conversation , proto_iwarp_mpa ) ;\n }\n else {\n return NULL ;\n }\n }"}
{"idx": 11795, "target": 0, "func": "void nautilus_directory_cancel_loading_file_attributes ( NautilusDirectory * directory , NautilusFile * file , NautilusFileAttributes file_attributes ) {\n Request request ;\n nautilus_directory_remove_file_from_work_queue ( directory , file ) ;\n request = nautilus_directory_set_up_request ( file_attributes ) ;\n if ( REQUEST_WANTS_TYPE ( request , REQUEST_DIRECTORY_COUNT ) ) {\n cancel_directory_count_for_file ( directory , file ) ;\n }\n if ( REQUEST_WANTS_TYPE ( request , REQUEST_DEEP_COUNT ) ) {\n cancel_deep_counts_for_file ( directory , file ) ;\n }\n if ( REQUEST_WANTS_TYPE ( request , REQUEST_MIME_LIST ) ) {\n cancel_mime_list_for_file ( directory , file ) ;\n }\n if ( REQUEST_WANTS_TYPE ( request , REQUEST_FILE_INFO ) ) {\n cancel_file_info_for_file ( directory , file ) ;\n }\n if ( REQUEST_WANTS_TYPE ( request , REQUEST_FILESYSTEM_INFO ) ) {\n cancel_filesystem_info_for_file ( directory , file ) ;\n }\n if ( REQUEST_WANTS_TYPE ( request , REQUEST_LINK_INFO ) ) {\n cancel_link_info_for_file ( directory , file ) ;\n }\n if ( REQUEST_WANTS_TYPE ( request , REQUEST_THUMBNAIL ) ) {\n cancel_thumbnail_for_file ( directory , file ) ;\n }\n if ( REQUEST_WANTS_TYPE ( request , REQUEST_MOUNT ) ) {\n cancel_mount_for_file ( directory , file ) ;\n }\n nautilus_directory_async_state_changed ( directory ) ;\n }"}
{"idx": 11796, "target": 0, "func": "EXCLUSIVE_REGRESSION_TEST ( SDK_API_TSHttpConnectIntercept ) ( RegressionTest * test , int , int * pstatus ) {\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n TSDebug ( UTDBG_TAG , \"Starting test TSHttpConnectIntercept\" ) ;\n TSCont cont_test = TSContCreate ( cont_test_handler , TSMutexCreate ( ) ) ;\n ConnectTestData * data = ( ConnectTestData * ) TSmalloc ( sizeof ( ConnectTestData ) ) ;\n TSContDataSet ( cont_test , data ) ;\n data -> test = test ;\n data -> pstatus = pstatus ;\n data -> magic = MAGIC_ALIVE ;\n data -> test_case = TEST_CASE_CONNECT_ID1 ;\n TSHttpHookAdd ( TS_HTTP_READ_REQUEST_HDR_HOOK , cont_test ) ;\n data -> os = synserver_create ( SYNSERVER_DUMMY_PORT ) ;\n data -> browser = synclient_txn_create ( ) ;\n data -> request = generate_request ( 9 ) ;\n sockaddr_in addr ;\n ats_ip4_set ( & addr , 1 , 1 ) ;\n data -> vc = TSHttpConnect ( ats_ip_sa_cast ( & addr ) ) ;\n if ( TSVConnClosedGet ( data -> vc ) ) {\n SDK_RPRINT ( data -> test , \"TSHttpConnect\" , \"TestCase 1\" , TC_FAIL , \"Connect reported as closed immediately after open\" ) ;\n }\n synclient_txn_send_request_to_vc ( data -> browser , data -> request , data -> vc ) ;\n TSContSchedule ( cont_test , 25 , TS_THREAD_POOL_DEFAULT ) ;\n return ;\n }"}
{"idx": 11797, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , UseCounterAnimatedCSSPropertiesMixedContent ) {\n net : : EmbeddedTestServer https_server ( net : : EmbeddedTestServer : : TYPE_HTTPS ) ;\n https_server . AddDefaultHandlers ( base : : FilePath ( FILE_PATH_LITERAL ( \"chrome/test/data\" ) ) ) ;\n ASSERT_TRUE ( https_server . Start ( ) ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : LOAD_EVENT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , https_server . GetURL ( \"/page_load_metrics/use_counter_features.html\" ) ) ;\n waiter -> Wait ( ) ;\n NavigateToUntrackedUrl ( ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kAnimatedCssPropertiesHistogramName , 161 , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kAnimatedCssPropertiesHistogramName , 91 , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kAnimatedCssPropertiesHistogramName , blink : : mojom : : kTotalPagesMeasuredCSSSampleId , 1 ) ;\n }"}
{"idx": 11798, "target": 0, "func": "static void vvalue_strbuf_append_vector ( wmem_strbuf_t * strbuf , struct vt_vector val , struct vtype_data * type ) {\n const int elsize = ( type -> size == - 1 ) ? ( int ) sizeof ( struct data_blob ) : type -> size ;\n unsigned i ;\n guint8 * data = val . u . vt_ui1 ;\n wmem_strbuf_append_c ( strbuf , '[' ) ;\n for ( i = 0 ;\n i < val . len ;\n i ++ ) {\n if ( i > 0 ) {\n wmem_strbuf_append_c ( strbuf , ',' ) ;\n }\n type -> strbuf_append ( strbuf , data ) ;\n data += elsize ;\n }\n wmem_strbuf_append_c ( strbuf , ']' ) ;\n }"}
{"idx": 11799, "target": 0, "func": "static void OS2WeightCheck ( struct pfminfo * pfminfo , char * weight ) {\n if ( weight == NULL ) {\n }\n else if ( strstrmatch ( weight , \"medi\" ) != NULL ) {\n pfminfo -> weight = 500 ;\n pfminfo -> panose [ 2 ] = 6 ;\n }\n else if ( strstrmatch ( weight , \"demi\" ) != NULL || strstrmatch ( weight , \"halb\" ) != NULL || ( strstrmatch ( weight , \"semi\" ) != NULL && strstrmatch ( weight , \"bold\" ) != NULL ) ) {\n pfminfo -> weight = 600 ;\n pfminfo -> panose [ 2 ] = 7 ;\n }\n else if ( strstrmatch ( weight , \"bold\" ) != NULL || strstrmatch ( weight , \"fett\" ) != NULL || strstrmatch ( weight , \"gras\" ) != NULL ) {\n pfminfo -> weight = 700 ;\n pfminfo -> panose [ 2 ] = 8 ;\n }\n else if ( strstrmatch ( weight , \"heavy\" ) != NULL ) {\n pfminfo -> weight = 800 ;\n pfminfo -> panose [ 2 ] = 9 ;\n }\n else if ( strstrmatch ( weight , \"black\" ) != NULL ) {\n pfminfo -> weight = 900 ;\n pfminfo -> panose [ 2 ] = 10 ;\n }\n else if ( strstrmatch ( weight , \"nord\" ) != NULL ) {\n pfminfo -> weight = 950 ;\n pfminfo -> panose [ 2 ] = 11 ;\n }\n else if ( strstrmatch ( weight , \"thin\" ) != NULL ) {\n pfminfo -> weight = 100 ;\n pfminfo -> panose [ 2 ] = 2 ;\n }\n else if ( strstrmatch ( weight , \"extra\" ) != NULL || strstrmatch ( weight , \"light\" ) != NULL ) {\n pfminfo -> weight = 200 ;\n pfminfo -> panose [ 2 ] = 3 ;\n }\n else if ( strstrmatch ( weight , \"light\" ) != NULL ) {\n pfminfo -> weight = 300 ;\n pfminfo -> panose [ 2 ] = 4 ;\n }\n }"}
{"idx": 11800, "target": 0, "func": "void usage_exit ( ) {\n fprintf ( stderr , \"Usage: %s <options> input_filename output_filename\\n\" , exec_name ) ;\n fprintf ( stderr , \"Options:\\n\" ) ;\n arg_show_usage ( stderr , svc_args ) ;\n exit ( EXIT_FAILURE ) ;\n }"}
{"idx": 11801, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ExternalProtocolDialogBrowserTest , TestClose ) {\n ShowDialog ( ) ;\n EXPECT_TRUE ( dialog_ -> Close ( ) ) ;\n EXPECT_FALSE ( called_ ) ;\n EXPECT_FALSE ( accept_ ) ;\n EXPECT_FALSE ( remember_ ) ;\n histogram_tester_ . ExpectBucketCount ( ExternalProtocolHandler : : kHandleStateMetric , ExternalProtocolHandler : : DONT_LAUNCH , 1 ) ;\n }"}
{"idx": 11802, "target": 0, "func": "TSReturnCode TSHttpTxnConfigFind ( const char * name , int length , TSOverridableConfigKey * conf , TSRecordDataType * type ) {\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) name ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) conf ) == TS_SUCCESS ) ;\n TSOverridableConfigKey cnf = TS_CONFIG_NULL ;\n TSRecordDataType typ = TS_RECORDDATATYPE_INT ;\n if ( length == - 1 ) {\n length = strlen ( name ) ;\n }\n switch ( length ) {\n case 24 : if ( ! strncmp ( name , \"proxy.config.srv_enabled\" , length ) ) {\n cnf = TS_CONFIG_SRV_ENABLED ;\n }\n break ;\n case 28 : if ( ! strncmp ( name , \"proxy.config.http.cache.http\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_HTTP ;\n }\n break ;\n case 29 : if ( ! strncmp ( name , \"proxy.config.ssl.hsts_max_age\" , length ) ) {\n cnf = TS_CONFIG_SSL_HSTS_MAX_AGE ;\n }\n break ;\n case 31 : if ( ! strncmp ( name , \"proxy.config.http.chunking.size\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CHUNKING_SIZE ;\n }\n break ;\n case 33 : if ( ! strncmp ( name , \"proxy.config.http.cache.fuzz.time\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_FUZZ_TIME ;\n }\n else if ( ! strncmp ( name , \"proxy.config.ssl.client.cert.path\" , length ) ) {\n cnf = TS_CONFIG_SSL_CERT_FILEPATH ;\n typ = TS_RECORDDATATYPE_STRING ;\n }\n break ;\n case 34 : if ( ! strncmp ( name , \"proxy.config.http.chunking_enabled\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CHUNKING_ENABLED ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.cache.generation\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_GENERATION ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.insert_client_ip\" , length ) ) {\n cnf = TS_CONFIG_HTTP_ANONYMIZE_INSERT_CLIENT_IP ;\n }\n break ;\n case 35 : switch ( name [ length - 1 ] ) {\n case 'e' : if ( ! strncmp ( name , \"proxy.config.http.cache.range.write\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_RANGE_WRITE ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.allow_multi_range\" , length ) ) {\n cnf = TS_CONFIG_HTTP_ALLOW_MULTI_RANGE ;\n }\n break ;\n case 'p' : if ( ! strncmp ( name , \"proxy.config.http.normalize_ae_gzip\" , length ) ) {\n cnf = TS_CONFIG_HTTP_NORMALIZE_AE_GZIP ;\n }\n break ;\n }\n break ;\n case 36 : switch ( name [ length - 1 ] ) {\n case 'p' : if ( ! strncmp ( name , \"proxy.config.http.cache.range.lookup\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_RANGE_LOOKUP ;\n }\n break ;\n case 't' : if ( ! strncmp ( name , \"proxy.config.net.sock_packet_tos_out\" , length ) ) {\n cnf = TS_CONFIG_NET_SOCK_PACKET_TOS_OUT ;\n }\n break ;\n case 'd' : if ( ! strncmp ( name , \"proxy.config.http.slow.log.threshold\" , length ) ) {\n cnf = TS_CONFIG_HTTP_SLOW_LOG_THRESHOLD ;\n }\n break ;\n }\n break ;\n case 37 : switch ( name [ length - 1 ] ) {\n case 'd' : if ( ! strncmp ( name , \"proxy.config.http.redirection_enabled\" , length ) ) {\n cnf = TS_CONFIG_HTTP_ENABLE_REDIRECTION ;\n }\n break ;\n case 'e' : if ( ! strncmp ( name , \"proxy.config.http.cache.max_stale_age\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_MAX_STALE_AGE ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.cache.fuzz.min_time\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_FUZZ_MIN_TIME ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.default_buffer_size\" , length ) ) {\n cnf = TS_CONFIG_HTTP_DEFAULT_BUFFER_SIZE ;\n }\n else if ( ! strncmp ( name , \"proxy.config.ssl.client.cert.filename\" , length ) ) {\n cnf = TS_CONFIG_SSL_CERT_FILENAME ;\n typ = TS_RECORDDATATYPE_STRING ;\n }\n break ;\n case 'r' : if ( ! strncmp ( name , \"proxy.config.http.response_server_str\" , length ) ) {\n cnf = TS_CONFIG_HTTP_RESPONSE_SERVER_STR ;\n typ = TS_RECORDDATATYPE_STRING ;\n }\n else if ( ! strncmp ( name , \"proxy.config.ssl.client.verify.server\" , length ) ) {\n cnf = TS_CONFIG_SSL_CLIENT_VERIFY_SERVER ;\n }\n break ;\n case 't' : if ( ! strncmp ( name , \"proxy.config.http.keep_alive_post_out\" , length ) ) {\n cnf = TS_CONFIG_HTTP_KEEP_ALIVE_POST_OUT ;\n }\n else if ( ! strncmp ( name , \"proxy.config.net.sock_option_flag_out\" , length ) ) {\n cnf = TS_CONFIG_NET_SOCK_OPTION_FLAG_OUT ;\n }\n else if ( ! strncmp ( name , \"proxy.config.net.sock_packet_mark_out\" , length ) ) {\n cnf = TS_CONFIG_NET_SOCK_PACKET_MARK_OUT ;\n }\n else if ( ! strncmp ( name , \"proxy.config.websocket.active_timeout\" , length ) ) {\n cnf = TS_CONFIG_WEBSOCKET_ACTIVE_TIMEOUT ;\n }\n break ;\n }\n break ;\n case 38 : switch ( name [ length - 1 ] ) {\n case 'd' : if ( ! strncmp ( name , \"proxy.config.http.server_tcp_init_cwnd\" , length ) ) {\n cnf = TS_CONFIG_HTTP_SERVER_TCP_INIT_CWND ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.flow_control.enabled\" , length ) ) {\n cnf = TS_CONFIG_HTTP_FLOW_CONTROL_ENABLED ;\n }\n break ;\n break ;\n case 's' : if ( ! strncmp ( name , \"proxy.config.http.send_http11_requests\" , length ) ) {\n cnf = TS_CONFIG_HTTP_SEND_HTTP11_REQUESTS ;\n }\n break ;\n }\n break ;\n case 39 : switch ( name [ length - 1 ] ) {\n case 'e' : if ( ! strncmp ( name , \"proxy.config.body_factory.template_base\" , length ) ) {\n cnf = TS_CONFIG_BODY_FACTORY_TEMPLATE_BASE ;\n typ = TS_RECORDDATATYPE_STRING ;\n }\n break ;\n case 'm' : if ( ! strncmp ( name , \"proxy.config.http.anonymize_remove_from\" , length ) ) {\n cnf = TS_CONFIG_HTTP_ANONYMIZE_REMOVE_FROM ;\n }\n break ;\n case 'n' : if ( ! strncmp ( name , \"proxy.config.http.keep_alive_enabled_in\" , length ) ) {\n cnf = TS_CONFIG_HTTP_KEEP_ALIVE_ENABLED_IN ;\n }\n break ;\n case 's' : if ( ! strncmp ( name , \"proxy.config.http.doc_in_cache_skip_dns\" , length ) ) {\n cnf = TS_CONFIG_HTTP_DOC_IN_CACHE_SKIP_DNS ;\n }\n break ;\n }\n break ;\n case 40 : switch ( name [ length - 1 ] ) {\n case 'd' : if ( ! strncmp ( name , \"proxy.config.http.forward_connect_method\" , length ) ) {\n cnf = TS_CONFIG_HTTP_FORWARD_CONNECT_METHOD ;\n }\n break ;\n case 'e' : if ( ! strncmp ( name , \"proxy.config.http.down_server.cache_time\" , length ) ) {\n cnf = TS_CONFIG_HTTP_DOWN_SERVER_CACHE_TIME ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.insert_age_in_response\" , length ) ) {\n cnf = TS_CONFIG_HTTP_INSERT_AGE_IN_RESPONSE ;\n }\n break ;\n case 'r' : if ( ! strncmp ( name , \"proxy.config.url_remap.pristine_host_hdr\" , length ) ) {\n cnf = TS_CONFIG_URL_REMAP_PRISTINE_HOST_HDR ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.insert_request_via_str\" , length ) ) {\n cnf = TS_CONFIG_HTTP_INSERT_REQUEST_VIA_STR ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.flow_control.low_water\" , length ) ) {\n cnf = TS_CONFIG_HTTP_FLOW_CONTROL_LOW_WATER_MARK ;\n }\n break ;\n case 's' : if ( ! strncmp ( name , \"proxy.config.http.origin_max_connections\" , length ) ) {\n cnf = TS_CONFIG_HTTP_ORIGIN_MAX_CONNECTIONS ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.cache.required_headers\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_REQUIRED_HEADERS ;\n }\n else if ( ! strncmp ( name , \"proxy.config.ssl.hsts_include_subdomains\" , length ) ) {\n cnf = TS_CONFIG_SSL_HSTS_INCLUDE_SUBDOMAINS ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.number_of_redirections\" , length ) ) {\n cnf = TS_CONFIG_HTTP_NUMBER_OF_REDIRECTIONS ;\n }\n break ;\n case 't' : if ( ! strncmp ( name , \"proxy.config.http.keep_alive_enabled_out\" , length ) ) {\n cnf = TS_CONFIG_HTTP_KEEP_ALIVE_ENABLED_OUT ;\n }\n break ;\n case 'y' : if ( ! strncmp ( name , \"proxy.config.http.cache.fuzz.probability\" , length ) ) {\n typ = TS_RECORDDATATYPE_FLOAT ;\n cnf = TS_CONFIG_HTTP_CACHE_FUZZ_PROBABILITY ;\n }\n break ;\n }\n break ;\n case 41 : switch ( name [ length - 1 ] ) {\n case 'd' : if ( ! strncmp ( name , \"proxy.config.http.response_server_enabled\" , length ) ) {\n cnf = TS_CONFIG_HTTP_RESPONSE_SERVER_ENABLED ;\n }\n break ;\n case 'e' : if ( ! strncmp ( name , \"proxy.config.http.anonymize_remove_cookie\" , length ) ) {\n cnf = TS_CONFIG_HTTP_ANONYMIZE_REMOVE_COOKIE ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.request_header_max_size\" , length ) ) {\n cnf = TS_CONFIG_HTTP_REQUEST_HEADER_MAX_SIZE ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.safe_requests_retryable\" , length ) ) {\n cnf = TS_CONFIG_HTTP_SAFE_REQUESTS_RETRYABLE ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.parent_proxy.retry_time\" , length ) ) {\n cnf = TS_CONFIG_HTTP_PARENT_PROXY_RETRY_TIME ;\n }\n break ;\n case 'r' : if ( ! strncmp ( name , \"proxy.config.http.insert_response_via_str\" , length ) ) {\n cnf = TS_CONFIG_HTTP_INSERT_RESPONSE_VIA_STR ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.flow_control.high_water\" , length ) ) {\n cnf = TS_CONFIG_HTTP_FLOW_CONTROL_HIGH_WATER_MARK ;\n }\n break ;\n }\n break ;\n case 42 : switch ( name [ length - 1 ] ) {\n case 'd' : if ( ! strncmp ( name , \"proxy.config.http.negative_caching_enabled\" , length ) ) {\n cnf = TS_CONFIG_HTTP_NEGATIVE_CACHING_ENABLED ;\n }\n break ;\n case 'e' : if ( ! strncmp ( name , \"proxy.config.http.cache.when_to_revalidate\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_WHEN_TO_REVALIDATE ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.response_header_max_size\" , length ) ) {\n cnf = TS_CONFIG_HTTP_RESPONSE_HEADER_MAX_SIZE ;\n }\n break ;\n case 'r' : if ( ! strncmp ( name , \"proxy.config.http.anonymize_remove_referer\" , length ) ) {\n cnf = TS_CONFIG_HTTP_ANONYMIZE_REMOVE_REFERER ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.global_user_agent_header\" , length ) ) {\n cnf = TS_CONFIG_HTTP_GLOBAL_USER_AGENT_HEADER ;\n typ = TS_RECORDDATATYPE_STRING ;\n }\n break ;\n case 't' : if ( ! strncmp ( name , \"proxy.config.net.sock_recv_buffer_size_out\" , length ) ) {\n cnf = TS_CONFIG_NET_SOCK_RECV_BUFFER_SIZE_OUT ;\n }\n else if ( ! strncmp ( name , \"proxy.config.net.sock_send_buffer_size_out\" , length ) ) {\n cnf = TS_CONFIG_NET_SOCK_SEND_BUFFER_SIZE_OUT ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.connect_attempts_timeout\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CONNECT_ATTEMPTS_TIMEOUT ;\n }\n else if ( ! strncmp ( name , \"proxy.config.websocket.no_activity_timeout\" , length ) ) {\n cnf = TS_CONFIG_WEBSOCKET_NO_ACTIVITY_TIMEOUT ;\n }\n break ;\n }\n break ;\n case 43 : switch ( name [ length - 1 ] ) {\n case 'e' : if ( ! strncmp ( name , \"proxy.config.http.negative_caching_lifetime\" , length ) ) {\n cnf = TS_CONFIG_HTTP_NEGATIVE_CACHING_LIFETIME ;\n }\n break ;\n case 'k' : if ( ! strncmp ( name , \"proxy.config.http.default_buffer_water_mark\" , length ) ) {\n cnf = TS_CONFIG_HTTP_DEFAULT_BUFFER_WATER_MARK ;\n }\n break ;\n case 'l' : if ( ! strncmp ( name , \"proxy.config.http.cache.cluster_cache_local\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_CLUSTER_CACHE_LOCAL ;\n }\n break ;\n case 'r' : if ( ! strncmp ( name , \"proxy.config.http.cache.heuristic_lm_factor\" , length ) ) {\n typ = TS_RECORDDATATYPE_FLOAT ;\n cnf = TS_CONFIG_HTTP_CACHE_HEURISTIC_LM_FACTOR ;\n }\n break ;\n }\n break ;\n case 44 : switch ( name [ length - 1 ] ) {\n case 'p' : if ( ! strncmp ( name , \"proxy.config.http.anonymize_remove_client_ip\" , length ) ) {\n cnf = TS_CONFIG_HTTP_ANONYMIZE_REMOVE_CLIENT_IP ;\n }\n break ;\n case 'e' : if ( ! strncmp ( name , \"proxy.config.http.cache.open_read_retry_time\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_OPEN_READ_RETRY_TIME ;\n }\n break ;\n }\n break ;\n case 45 : switch ( name [ length - 1 ] ) {\n case 'd' : if ( ! strncmp ( name , \"proxy.config.http.down_server.abort_threshold\" , length ) ) {\n cnf = TS_CONFIG_HTTP_DOWN_SERVER_ABORT_THRESHOLD ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.parent_proxy.fail_threshold\" , length ) ) {\n cnf = TS_CONFIG_HTTP_PARENT_PROXY_FAIL_THRESHOLD ;\n }\n break ;\n case 'n' : if ( ! strncmp ( name , \"proxy.config.http.cache.ignore_authentication\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_IGNORE_AUTHENTICATION ;\n }\n break ;\n case 't' : if ( ! strncmp ( name , \"proxy.config.http.anonymize_remove_user_agent\" , length ) ) {\n cnf = TS_CONFIG_HTTP_ANONYMIZE_REMOVE_USER_AGENT ;\n }\n break ;\n case 's' : if ( ! strncmp ( name , \"proxy.config.http.connect_attempts_rr_retries\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CONNECT_ATTEMPTS_RR_RETRIES ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.cache.max_open_read_retries\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_MAX_OPEN_READ_RETRIES ;\n }\n break ;\n case 'e' : if ( 0 == strncmp ( name , \"proxy.config.http.auth_server_session_private\" , length ) ) {\n cnf = TS_CONFIG_HTTP_AUTH_SERVER_SESSION_PRIVATE ;\n }\n break ;\n case 'y' : if ( ! strncmp ( name , \"proxy.config.http.redirect_use_orig_cache_key\" , length ) ) {\n cnf = TS_CONFIG_HTTP_REDIRECT_USE_ORIG_CACHE_KEY ;\n }\n break ;\n }\n break ;\n case 46 : switch ( name [ length - 1 ] ) {\n case 'e' : if ( ! strncmp ( name , \"proxy.config.http.cache.ignore_client_no_cache\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_IGNORE_CLIENT_NO_CACHE ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.cache.ims_on_client_no_cache\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_IMS_ON_CLIENT_NO_CACHE ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.cache.ignore_server_no_cache\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_IGNORE_SERVER_NO_CACHE ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.cache.heuristic_min_lifetime\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_HEURISTIC_MIN_LIFETIME ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.cache.heuristic_max_lifetime\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_HEURISTIC_MAX_LIFETIME ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.origin_max_connections_queue\" , length ) ) {\n cnf = TS_CONFIG_HTTP_ORIGIN_MAX_CONNECTIONS_QUEUE ;\n }\n break ;\n case 'r' : if ( ! strncmp ( name , \"proxy.config.http.insert_squid_x_forwarded_for\" , length ) ) {\n cnf = TS_CONFIG_HTTP_INSERT_SQUID_X_FORWARDED_FOR ;\n }\n break ;\n case 's' : if ( ! strncmp ( name , \"proxy.config.http.connect_attempts_max_retries\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CONNECT_ATTEMPTS_MAX_RETRIES ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.cache.max_open_write_retries\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_MAX_OPEN_WRITE_RETRIES ;\n }\n break ;\n case 't' : if ( ! strncmp ( name , \"proxy.config.http.forward.proxy_auth_to_parent\" , length ) ) {\n cnf = TS_CONFIG_HTTP_FORWARD_PROXY_AUTH_TO_PARENT ;\n }\n break ;\n case 'h' : if ( 0 == strncmp ( name , \"proxy.config.http.server_session_sharing.match\" , length ) ) {\n cnf = TS_CONFIG_HTTP_SERVER_SESSION_SHARING_MATCH ;\n }\n break ;\n case 'n' : if ( ! strncmp ( name , \"proxy.config.http.cache.open_write_fail_action\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_OPEN_WRITE_FAIL_ACTION ;\n }\n break ;\n }\n break ;\n case 47 : switch ( name [ length - 1 ] ) {\n case 'b' : if ( ! strncmp ( name , \"proxy.config.http.parent_proxy.mark_down_hostdb\" , length ) ) {\n cnf = TS_CONFIG_PARENT_FAILURES_UPDATE_HOSTDB ;\n }\n break ;\n case 'd' : if ( ! strncmp ( name , \"proxy.config.http.negative_revalidating_enabled\" , length ) ) {\n cnf = TS_CONFIG_HTTP_NEGATIVE_REVALIDATING_ENABLED ;\n }\n break ;\n case 'e' : if ( ! strncmp ( name , \"proxy.config.http.cache.guaranteed_min_lifetime\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_GUARANTEED_MIN_LIFETIME ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.cache.guaranteed_max_lifetime\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_GUARANTEED_MAX_LIFETIME ;\n }\n break ;\n case 'n' : if ( ! strncmp ( name , \"proxy.config.http.transaction_active_timeout_in\" , length ) ) {\n cnf = TS_CONFIG_HTTP_TRANSACTION_ACTIVE_TIMEOUT_IN ;\n }\n break ;\n case 't' : if ( ! strncmp ( name , \"proxy.config.http.post_connect_attempts_timeout\" , length ) ) {\n cnf = TS_CONFIG_HTTP_POST_CONNECT_ATTEMPTS_TIMEOUT ;\n }\n break ;\n }\n break ;\n case 48 : switch ( name [ length - 1 ] ) {\n case 'e' : if ( ! strncmp ( name , \"proxy.config.http.cache.ignore_client_cc_max_age\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_IGNORE_CLIENT_CC_MAX_AGE ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.negative_revalidating_lifetime\" , length ) ) {\n cnf = TS_CONFIG_HTTP_NEGATIVE_REVALIDATING_LIFETIME ;\n }\n break ;\n case 't' : switch ( name [ length - 4 ] ) {\n case '_' : if ( ! strncmp ( name , \"proxy.config.http.transaction_active_timeout_out\" , length ) ) {\n cnf = TS_CONFIG_HTTP_TRANSACTION_ACTIVE_TIMEOUT_OUT ;\n }\n break ;\n case 'e' : if ( ! strncmp ( name , \"proxy.config.http.background_fill_active_timeout\" , length ) ) {\n cnf = TS_CONFIG_HTTP_BACKGROUND_FILL_ACTIVE_TIMEOUT ;\n }\n break ;\n }\n break ;\n }\n break ;\n case 49 : if ( ! strncmp ( name , \"proxy.config.http.attach_server_session_to_client\" , length ) ) {\n cnf = TS_CONFIG_HTTP_ATTACH_SERVER_SESSION_TO_CLIENT ;\n }\n break ;\n case 50 : if ( ! strncmp ( name , \"proxy.config.http.cache.cache_responses_to_cookies\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_CACHE_RESPONSES_TO_COOKIES ;\n }\n break ;\n case 51 : switch ( name [ length - 1 ] ) {\n case 'n' : if ( ! strncmp ( name , \"proxy.config.http.keep_alive_no_activity_timeout_in\" , length ) ) {\n cnf = TS_CONFIG_HTTP_KEEP_ALIVE_NO_ACTIVITY_TIMEOUT_IN ;\n }\n break ;\n case 'd' : if ( ! strncmp ( name , \"proxy.config.http.post.check.content_length.enabled\" , length ) ) {\n cnf = TS_CONFIG_HTTP_POST_CHECK_CONTENT_LENGTH_ENABLED ;\n }\n break ;\n }\n break ;\n case 52 : switch ( name [ length - 1 ] ) {\n case 'c' : if ( ! strncmp ( name , \"proxy.config.http.cache.cache_urls_that_look_dynamic\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_CACHE_URLS_THAT_LOOK_DYNAMIC ;\n }\n break ;\n case 'n' : if ( ! strncmp ( name , \"proxy.config.http.transaction_no_activity_timeout_in\" , length ) ) {\n cnf = TS_CONFIG_HTTP_TRANSACTION_NO_ACTIVITY_TIMEOUT_IN ;\n }\n break ;\n case 't' : if ( ! strncmp ( name , \"proxy.config.http.keep_alive_no_activity_timeout_out\" , length ) ) {\n cnf = TS_CONFIG_HTTP_KEEP_ALIVE_NO_ACTIVITY_TIMEOUT_OUT ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.uncacheable_requests_bypass_parent\" , length ) ) {\n cnf = TS_CONFIG_HTTP_UNCACHEABLE_REQUESTS_BYPASS_PARENT ;\n }\n break ;\n }\n break ;\n case 53 : switch ( name [ length - 1 ] ) {\n case 't' : if ( ! strncmp ( name , \"proxy.config.http.transaction_no_activity_timeout_out\" , length ) ) {\n cnf = TS_CONFIG_HTTP_TRANSACTION_NO_ACTIVITY_TIMEOUT_OUT ;\n }\n break ;\n case 'd' : if ( ! strncmp ( name , \"proxy.config.http.background_fill_completed_threshold\" , length ) ) {\n typ = TS_RECORDDATATYPE_FLOAT ;\n cnf = TS_CONFIG_HTTP_BACKGROUND_FILL_COMPLETED_THRESHOLD ;\n }\n break ;\n case 's' : if ( ! strncmp ( name , \"proxy.config.http.parent_proxy.total_connect_attempts\" , length ) ) {\n cnf = TS_CONFIG_HTTP_PARENT_PROXY_TOTAL_CONNECT_ATTEMPTS ;\n }\n break ;\n }\n break ;\n case 55 : if ( ! strncmp ( name , \"proxy.config.http.parent_proxy.connect_attempts_timeout\" , length ) ) {\n cnf = TS_CONFIG_HTTP_PARENT_CONNECT_ATTEMPT_TIMEOUT ;\n }\n break ;\n case 58 : if ( ! strncmp ( name , \"proxy.config.http.connect_attempts_max_retries_dead_server\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CONNECT_ATTEMPTS_MAX_RETRIES_DEAD_SERVER ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.parent_proxy.per_parent_connect_attempts\" , length ) ) {\n cnf = TS_CONFIG_HTTP_PER_PARENT_CONNECT_ATTEMPTS ;\n }\n break ;\n }\n * conf = cnf ;\n if ( type ) {\n * type = typ ;\n }\n return ( ( cnf != TS_CONFIG_NULL ) ? TS_SUCCESS : TS_ERROR ) ;\n }"}
{"idx": 11803, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( MessageCenterNotificationsTest , RetrieveBaseParts ) {\n EXPECT_TRUE ( manager ( ) ) ;\n EXPECT_TRUE ( message_center ( ) ) ;\n }"}
{"idx": 11804, "target": 0, "func": "void die ( const char * fmt , ... ) {\n char buff [ DIE_BUFF_SIZE ] ;\n va_list args ;\n va_start ( args , fmt ) ;\n make_error_message ( buff , sizeof ( buff ) , fmt , args ) ;\n really_die ( buff ) ;\n }"}
{"idx": 11805, "target": 0, "func": "static gpgme_error_t uiserver_set_locale ( void * engine , int category , const char * value ) {\n engine_uiserver_t uiserver = engine ;\n gpgme_error_t err ;\n char * optstr ;\n char * catstr ;\n if ( category == LC_CTYPE ) {\n catstr = \"lc-ctype\" ;\n if ( ! value && uiserver -> lc_ctype_set ) return gpg_error ( GPG_ERR_INV_VALUE ) ;\n if ( value ) uiserver -> lc_ctype_set = 1 ;\n }\n # ifdef LC_MESSAGES else if ( category == LC_MESSAGES ) {\n catstr = \"lc-messages\" ;\n if ( ! value && uiserver -> lc_messages_set ) return gpg_error ( GPG_ERR_INV_VALUE ) ;\n if ( value ) uiserver -> lc_messages_set = 1 ;\n }\n # endif else return gpg_error ( GPG_ERR_INV_VALUE ) ;\n if ( ! value ) return 0 ;\n if ( asprintf ( & optstr , \"OPTION %s=%s\" , catstr , value ) < 0 ) err = gpg_error_from_syserror ( ) ;\n else {\n err = assuan_transact ( uiserver -> assuan_ctx , optstr , NULL , NULL , NULL , NULL , NULL , NULL ) ;\n free ( optstr ) ;\n }\n return err ;\n }"}
{"idx": 11806, "target": 1, "func": "static void dissect_rtmpt_common ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , rtmpt_conv_t * rconv , int cdir , guint32 seq , guint32 lastackseq ) {\n int offset = 0 ;\n int remain ;\n int want ;\n guint8 header_type ;\n int basic_hlen ;\n int message_hlen ;\n guint32 id ;\n guint32 ts = 0 ;\n guint32 tsd = 0 ;\n int body_len ;\n guint8 cmd ;\n guint32 src ;\n int chunk_size ;\n rtmpt_frag_t * tf ;\n rtmpt_id_t * ti ;\n rtmpt_packet_t * tp ;\n tvbuff_t * pktbuf ;\n remain = tvb_reported_length ( tvb ) ;\n if ( ! remain ) return ;\n RTMPT_DEBUG ( \"Segment: cdir=%d seq=%d-%d\\n\" , cdir , seq , seq + remain - 1 ) ;\n if ( pinfo -> fd -> flags . visited ) {\n wmem_stack_t * packets ;\n packets = wmem_stack_new ( wmem_packet_scope ( ) ) ;\n wmem_stack_push ( packets , 0 ) ;\n tp = ( rtmpt_packet_t * ) wmem_tree_lookup32_le ( rconv -> packets [ cdir ] , seq + remain - 1 ) ;\n while ( tp && tp -> lastseq >= seq ) {\n wmem_stack_push ( packets , tp ) ;\n tp = ( rtmpt_packet_t * ) wmem_tree_lookup32_le ( rconv -> packets [ cdir ] , tp -> lastseq - 1 ) ;\n }\n while ( ( tp = ( rtmpt_packet_t * ) wmem_stack_pop ( packets ) ) != NULL ) {\n if ( tp -> resident ) {\n pktbuf = tvb_new_child_real_data ( tvb , tp -> data . p , tp -> have , tp -> have ) ;\n add_new_data_source ( pinfo , pktbuf , \"Unchunked RTMP\" ) ;\n }\n else {\n pktbuf = tvb_new_subset_length ( tvb , tp -> data . offset , tp -> have ) ;\n }\n dissect_rtmpt ( pktbuf , pinfo , tree , rconv , cdir , tp ) ;\n }\n return ;\n }\n while ( remain > 0 ) {\n tf = NULL ;\n ti = NULL ;\n tp = NULL ;\n if ( offset == 0 ) {\n tf = ( rtmpt_frag_t * ) wmem_tree_lookup32_le ( rconv -> frags [ cdir ] , seq + offset - 1 ) ;\n if ( tf ) {\n RTMPT_DEBUG ( \" tf seq=%d lseq=%d h=%d l=%d\\n\" , tf -> seq , tf -> lastseq , tf -> have , tf -> len ) ;\n if ( tf -> have >= tf -> len || seq + offset < tf -> seq || seq + offset > tf -> lastseq + tf -> len - tf -> have ) {\n tf = NULL ;\n }\n else if ( ! tf -> ishdr ) {\n ti = ( rtmpt_id_t * ) wmem_tree_lookup32 ( rconv -> ids [ cdir ] , tf -> saved . id ) ;\n if ( ti ) {\n tp = ( rtmpt_packet_t * ) wmem_tree_lookup32_le ( ti -> packets , seq + offset - 1 ) ;\n }\n if ( tp && tp -> chunkwant ) {\n goto unchunk ;\n }\n tf = NULL ;\n ti = NULL ;\n tp = NULL ;\n }\n if ( tf ) {\n want = tf -> len - tf -> have ;\n if ( remain < want ) want = remain ;\n tvb_memcpy ( tvb , tf -> saved . d + tf -> have , offset , want ) ;\n id = tf -> saved . d [ 0 ] ;\n header_type = ( id >> 6 ) & 3 ;\n basic_hlen = rtmpt_basic_header_length ( id ) ;\n if ( ( header_type < 3 ) && ( tf -> have < ( basic_hlen + 3 ) ) && ( tf -> have + want >= ( basic_hlen + 3 ) ) ) {\n if ( pntoh24 ( tf -> saved . d + basic_hlen ) == 0xffffff ) {\n tf -> len += 4 ;\n }\n }\n tf -> have += want ;\n tf -> lastseq = seq + want - 1 ;\n remain -= want ;\n offset += want ;\n if ( tf -> have < tf -> len ) {\n return ;\n }\n }\n }\n }\n if ( ! tf ) {\n id = tvb_get_guint8 ( tvb , offset ) ;\n if ( id == RTMPT_MAGIC && seq + offset == RTMPT_HANDSHAKE_OFFSET_1 ) {\n header_type = 4 ;\n basic_hlen = 1 ;\n message_hlen = 0 ;\n id = lastackseq == 1 ? RTMPT_TYPE_HANDSHAKE_1 : RTMPT_TYPE_HANDSHAKE_2 ;\n }\n else if ( seq + offset == RTMPT_HANDSHAKE_OFFSET_2 ) {\n header_type = 4 ;\n basic_hlen = 0 ;\n message_hlen = 0 ;\n id = RTMPT_TYPE_HANDSHAKE_3 ;\n }\n else {\n header_type = ( id >> 6 ) & 3 ;\n basic_hlen = rtmpt_basic_header_length ( id ) ;\n message_hlen = rtmpt_message_header_length ( id ) ;\n if ( ( header_type < 3 ) && ( remain >= ( basic_hlen + 3 ) ) ) {\n if ( tvb_get_ntoh24 ( tvb , offset + basic_hlen ) == 0xffffff ) {\n message_hlen += 4 ;\n }\n }\n if ( remain < ( basic_hlen + message_hlen ) ) {\n tf = wmem_new ( wmem_file_scope ( ) , rtmpt_frag_t ) ;\n tf -> ishdr = 1 ;\n tf -> seq = seq + offset ;\n tf -> lastseq = tf -> seq + remain - 1 ;\n tf -> len = basic_hlen + message_hlen ;\n tvb_memcpy ( tvb , tf -> saved . d , offset , remain ) ;\n tf -> have = remain ;\n wmem_tree_insert32 ( rconv -> frags [ cdir ] , seq + offset , tf ) ;\n return ;\n }\n id = id & 0x3f ;\n if ( id == 0 ) id = tvb_get_guint8 ( tvb , offset + 1 ) + 64 ;\n else if ( id == 1 ) id = tvb_get_letohs ( tvb , offset + 1 ) + 64 ;\n }\n }\n else {\n id = tf -> saved . d [ 0 ] ;\n header_type = ( id >> 6 ) & 3 ;\n basic_hlen = rtmpt_basic_header_length ( id ) ;\n message_hlen = tf -> len - basic_hlen ;\n id = id & 0x3f ;\n if ( id == 0 ) id = tf -> saved . d [ 1 ] + 64 ;\n else if ( id == 1 ) id = pletoh16 ( tf -> saved . d + 1 ) + 64 ;\n }\n if ( id <= RTMPT_ID_MAX ) ti = ( rtmpt_id_t * ) wmem_tree_lookup32 ( rconv -> ids [ cdir ] , id ) ;\n if ( ti ) tp = ( rtmpt_packet_t * ) wmem_tree_lookup32_le ( ti -> packets , seq + offset - 1 ) ;\n if ( header_type == 0 ) src = tf ? pntoh32 ( tf -> saved . d + basic_hlen + 7 ) : tvb_get_ntohl ( tvb , offset + basic_hlen + 7 ) ;\n else if ( ti ) src = ti -> src ;\n else src = 0 ;\n if ( header_type < 2 ) cmd = tf ? tf -> saved . d [ basic_hlen + 6 ] : tvb_get_guint8 ( tvb , offset + basic_hlen + 6 ) ;\n else if ( ti ) cmd = ti -> cmd ;\n else cmd = 0 ;\n if ( id > RTMPT_ID_MAX ) {\n if ( id == RTMPT_TYPE_HANDSHAKE_1 ) chunk_size = body_len = 1536 ;\n else if ( id == RTMPT_TYPE_HANDSHAKE_2 ) chunk_size = body_len = 3072 ;\n else chunk_size = body_len = 1536 ;\n }\n else {\n chunk_size = GPOINTER_TO_INT ( wmem_tree_lookup32_le ( rconv -> chunksize [ cdir ] , seq + offset - 1 ) ) ;\n if ( ! chunk_size ) chunk_size = RTMPT_DEFAULT_CHUNK_SIZE ;\n if ( header_type < 2 ) body_len = tf ? pntoh24 ( tf -> saved . d + basic_hlen + 3 ) : tvb_get_ntoh24 ( tvb , offset + basic_hlen + 3 ) ;\n else if ( ti ) body_len = ti -> len ;\n else body_len = chunk_size ;\n if ( body_len > ( gint ) rtmpt_max_packet_size ) {\n return ;\n }\n }\n if ( ! ti || ! tp || header_type < 3 || tp -> have == tp -> want || tp -> chunkhave != tp -> chunkwant ) {\n RTMPT_DEBUG ( \"New packet cdir=%d seq=%d ti=%p tp=%p header_type=%d header_len=%d id=%d tph=%d tpw=%d len=%d cs=%d\\n\" , cdir , seq + offset , ti , tp , header_type , basic_hlen + message_hlen , id , tp ? tp -> have : 0 , tp ? tp -> want : 0 , body_len , chunk_size ) ;\n if ( ! ti ) {\n ti = wmem_new ( wmem_file_scope ( ) , rtmpt_id_t ) ;\n ti -> packets = wmem_tree_new ( wmem_file_scope ( ) ) ;\n ti -> ts = 0 ;\n ti -> tsd = 0 ;\n wmem_tree_insert32 ( rconv -> ids [ cdir ] , id , ti ) ;\n }\n if ( header_type == 0 ) {\n ts = tf ? pntoh24 ( tf -> saved . d + basic_hlen ) : tvb_get_ntoh24 ( tvb , offset + basic_hlen ) ;\n if ( ts == 0xffffff ) {\n ts = tf ? pntoh32 ( tf -> saved . d + basic_hlen + 11 ) : tvb_get_ntohl ( tvb , offset + basic_hlen + 11 ) ;\n }\n tsd = ts - ti -> ts ;\n }\n else if ( header_type < 3 ) {\n tsd = tf ? pntoh24 ( tf -> saved . d + basic_hlen ) : tvb_get_ntoh24 ( tvb , offset + basic_hlen ) ;\n if ( tsd == 0xffffff ) {\n ts = tf ? pntoh32 ( tf -> saved . d + basic_hlen + message_hlen - 4 ) : tvb_get_ntohl ( tvb , offset + basic_hlen + message_hlen - 4 ) ;\n tsd = ti -> tsd ;\n }\n else {\n ts = ti -> ts + tsd ;\n }\n }\n else {\n ts = ti -> ts + ti -> tsd ;\n tsd = ti -> tsd ;\n }\n tp = wmem_new ( wmem_file_scope ( ) , rtmpt_packet_t ) ;\n tp -> seq = tp -> lastseq = tf ? tf -> seq : seq + offset ;\n tp -> have = 0 ;\n tp -> want = basic_hlen + message_hlen + body_len ;\n tp -> chunkwant = 0 ;\n tp -> chunkhave = 0 ;\n tp -> bhlen = basic_hlen ;\n tp -> mhlen = message_hlen ;\n tp -> fmt = header_type ;\n tp -> id = id ;\n tp -> ts = ts ;\n tp -> len = body_len ;\n if ( id > RTMPT_ID_MAX ) tp -> cmd = id ;\n else tp -> cmd = cmd & 0x7f ;\n tp -> src = src ;\n tp -> txid = 0 ;\n tp -> isresponse = FALSE ;\n tp -> otherframe = 0 ;\n ti -> ts = ts ;\n ti -> tsd = tsd ;\n ti -> len = body_len ;\n ti -> cmd = cmd ;\n ti -> src = src ;\n wmem_tree_insert32 ( ti -> packets , tp -> seq , tp ) ;\n if ( ! tf && body_len <= chunk_size && tp -> want <= remain ) {\n tp -> resident = FALSE ;\n tp -> data . offset = offset ;\n tp -> lastseq = seq + offset + tp -> want - 1 ;\n tp -> have = tp -> want ;\n wmem_tree_insert32 ( rconv -> packets [ cdir ] , tp -> lastseq , tp ) ;\n pktbuf = tvb_new_subset_length ( tvb , tp -> data . offset , tp -> have ) ;\n dissect_rtmpt ( pktbuf , pinfo , tree , rconv , cdir , tp ) ;\n offset += tp -> want ;\n remain -= tp -> want ;\n continue ;\n }\n else {\n tp -> resident = TRUE ;\n tp -> data . p = ( guint8 * ) wmem_alloc ( wmem_file_scope ( ) , tp -> bhlen + tp -> mhlen + tp -> len ) ;\n if ( tf && tf -> ishdr ) {\n memcpy ( tp -> data . p , tf -> saved . d , tf -> len ) ;\n }\n else {\n tvb_memcpy ( tvb , tp -> data . p , offset , basic_hlen + message_hlen ) ;\n offset += basic_hlen + message_hlen ;\n remain -= basic_hlen + message_hlen ;\n }\n tp -> lastseq = seq + offset - 1 ;\n tp -> have = basic_hlen + message_hlen ;\n if ( tp -> have == tp -> want ) {\n wmem_tree_insert32 ( rconv -> packets [ cdir ] , tp -> lastseq , tp ) ;\n pktbuf = tvb_new_child_real_data ( tvb , tp -> data . p , tp -> have , tp -> have ) ;\n add_new_data_source ( pinfo , pktbuf , \"Unchunked RTMP\" ) ;\n dissect_rtmpt ( pktbuf , pinfo , tree , rconv , cdir , tp ) ;\n continue ;\n }\n tp -> chunkwant = chunk_size ;\n if ( tp -> chunkwant > tp -> want - tp -> have ) tp -> chunkwant = tp -> want - tp -> have ;\n }\n }\n else {\n RTMPT_DEBUG ( \"Old packet cdir=%d seq=%d ti=%p tp=%p header_len=%d id=%d tph=%d tpw=%d len=%d cs=%d\\n\" , cdir , seq + offset , ti , tp , basic_hlen + message_hlen , id , tp ? tp -> have : 0 , tp ? tp -> want : 0 , body_len , chunk_size ) ;\n tp -> chunkwant = chunk_size ;\n if ( tp -> chunkwant > tp -> want - tp -> have ) tp -> chunkwant = tp -> want - tp -> have ;\n offset += basic_hlen + message_hlen ;\n remain -= basic_hlen + message_hlen ;\n }\n tf = NULL ;\n unchunk : want = tp -> chunkwant - tp -> chunkhave ;\n if ( want > remain ) want = remain ;\n RTMPT_DEBUG ( \" cw=%d ch=%d r=%d w=%d\\n\" , tp -> chunkwant , tp -> chunkhave , remain , want ) ;\n tvb_memcpy ( tvb , tp -> data . p + tp -> have , offset , want ) ;\n if ( tf ) {\n tf -> have += want ;\n tf -> lastseq = seq + offset + want - 1 ;\n }\n tp -> lastseq = seq + offset + want - 1 ;\n tp -> have += want ;\n tp -> chunkhave += want ;\n offset += want ;\n remain -= want ;\n if ( tp -> chunkhave == tp -> chunkwant ) {\n tp -> chunkhave = 0 ;\n tp -> chunkwant = 0 ;\n }\n if ( tp -> have == tp -> want ) {\n wmem_tree_insert32 ( rconv -> packets [ cdir ] , tp -> lastseq , tp ) ;\n pktbuf = tvb_new_child_real_data ( tvb , tp -> data . p , tp -> have , tp -> have ) ;\n add_new_data_source ( pinfo , pktbuf , \"Unchunked RTMP\" ) ;\n dissect_rtmpt ( pktbuf , pinfo , tree , rconv , cdir , tp ) ;\n }\n else if ( tp -> chunkhave < tp -> chunkwant ) {\n rtmpt_frag_t * tf2 = wmem_new ( wmem_file_scope ( ) , rtmpt_frag_t ) ;\n tf2 -> ishdr = 0 ;\n tf2 -> seq = seq + offset - want ;\n tf2 -> lastseq = tf2 -> seq + remain - 1 + want ;\n tf2 -> have = tp -> chunkhave ;\n tf2 -> len = tp -> chunkwant ;\n tf2 -> saved . id = tp -> id ;\n RTMPT_DEBUG ( \" inserting tf @ %d\\n\" , seq + offset - want - 1 ) ;\n wmem_tree_insert32 ( rconv -> frags [ cdir ] , seq + offset - want - 1 , tf2 ) ;\n }\n }\n }"}
{"idx": 11807, "target": 0, "func": "int qemuMonitorJSONGetVirtType ( qemuMonitorPtr mon , int * virtType ) {\n int ret ;\n virJSONValuePtr cmd = qemuMonitorJSONMakeCommand ( \"query-kvm\" , NULL ) ;\n virJSONValuePtr reply = NULL ;\n * virtType = VIR_DOMAIN_VIRT_QEMU ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n if ( ret == 0 ) {\n virJSONValuePtr data ;\n bool val = false ;\n if ( ! ( data = virJSONValueObjectGet ( reply , \"return\" ) ) ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"info kvm reply was missing return data\" ) ) ;\n ret = - 1 ;\n goto cleanup ;\n }\n if ( virJSONValueObjectGetBoolean ( data , \"enabled\" , & val ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"info kvm reply missing 'running' field\" ) ) ;\n ret = - 1 ;\n goto cleanup ;\n }\n if ( val ) * virtType = VIR_DOMAIN_VIRT_KVM ;\n }\n cleanup : virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 11808, "target": 0, "func": "static int32_t u_scanf_ustring_handler ( UFILE * input , u_scanf_spec_info * info , ufmt_args * args , const UChar * fmt , int32_t * fmtConsumed , int32_t * argConverted ) {\n ( void ) fmt ;\n ( void ) fmtConsumed ;\n UChar * arg = ( UChar * ) ( args [ 0 ] . ptrValue ) ;\n UChar * alias = arg ;\n int32_t count ;\n int32_t skipped = 0 ;\n UChar c ;\n UBool isNotEOF = FALSE ;\n if ( info -> fIsString ) {\n skipped = u_scanf_skip_leading_ws ( input , info -> fPadChar ) ;\n }\n count = 0 ;\n while ( ( info -> fWidth == - 1 || count < info -> fWidth ) && ( isNotEOF = ufile_getch ( input , & c ) ) && ( ! info -> fIsString || ( c != info -> fPadChar && ! u_isWhitespace ( c ) ) ) ) {\n if ( ! info -> fSkipArg ) {\n * alias ++ = c ;\n }\n ++ count ;\n }\n if ( ! info -> fSkipArg ) {\n if ( ( info -> fWidth == - 1 || count < info -> fWidth ) && isNotEOF ) {\n u_fungetc ( c , input ) ;\n }\n if ( info -> fIsString ) {\n * alias = 0x0000 ;\n }\n }\n * argConverted = ! info -> fSkipArg ;\n return count + skipped ;\n }"}
{"idx": 11809, "target": 0, "func": "static void log_frame_info ( VP9_COMMON * cm , const char * str , FILE * f ) {\n fprintf ( f , \"%s\" , str ) ;\n fprintf ( f , \"(Frame %d, Show:%d, Q:%d): \\n\" , cm -> current_video_frame , cm -> show_frame , cm -> base_qindex ) ;\n }"}
{"idx": 11810, "target": 1, "func": "static hb_user_data_key_t user_data_key_reference ( hb_user_data_key_t l ) {\n return l ;\n }"}
{"idx": 11811, "target": 0, "func": "int ff_h264_alloc_tables ( H264Context * h ) {\n const int big_mb_num = h -> mb_stride * ( h -> mb_height + 1 ) ;\n const int row_mb_num = 2 * h -> mb_stride * FFMAX ( h -> avctx -> thread_count , 1 ) ;\n int x , y , i ;\n FF_ALLOCZ_OR_GOTO ( h -> avctx , h -> intra4x4_pred_mode , row_mb_num * 8 * sizeof ( uint8_t ) , fail ) FF_ALLOCZ_OR_GOTO ( h -> avctx , h -> non_zero_count , big_mb_num * 48 * sizeof ( uint8_t ) , fail ) FF_ALLOCZ_OR_GOTO ( h -> avctx , h -> slice_table_base , ( big_mb_num + h -> mb_stride ) * sizeof ( * h -> slice_table_base ) , fail ) FF_ALLOCZ_OR_GOTO ( h -> avctx , h -> cbp_table , big_mb_num * sizeof ( uint16_t ) , fail ) FF_ALLOCZ_OR_GOTO ( h -> avctx , h -> chroma_pred_mode_table , big_mb_num * sizeof ( uint8_t ) , fail ) FF_ALLOCZ_OR_GOTO ( h -> avctx , h -> mvd_table [ 0 ] , * row_mb_num * sizeof ( uint8_t ) , fail ) ;\n FF_ALLOCZ_OR_GOTO ( h -> avctx , h -> mvd_table [ 1 ] , * row_mb_num * sizeof ( uint8_t ) , fail ) ;\n FF_ALLOCZ_OR_GOTO ( h -> avctx , h -> direct_table , * big_mb_num * sizeof ( uint8_t ) , fail ) ;\n FF_ALLOCZ_OR_GOTO ( h -> avctx , h -> list_counts , big_mb_num * sizeof ( uint8_t ) , fail ) memset ( h -> slice_table_base , - 1 , ( big_mb_num + h -> mb_stride ) * sizeof ( * h -> slice_table_base ) ) ;\n h -> slice_table = h -> slice_table_base + h -> mb_stride * 2 + 1 ;\n FF_ALLOCZ_OR_GOTO ( h -> avctx , h -> mb2b_xy , big_mb_num * sizeof ( uint32_t ) , fail ) ;\n FF_ALLOCZ_OR_GOTO ( h -> avctx , h -> mb2br_xy , big_mb_num * sizeof ( uint32_t ) , fail ) ;\n for ( y = 0 ;\n y < h -> mb_height ;\n y ++ ) for ( x = 0 ;\n x < h -> mb_width ;\n x ++ ) {\n const int mb_xy = x + y * h -> mb_stride ;\n const int b_xy = 4 * x + 4 * y * h -> b_stride ;\n h -> mb2b_xy [ mb_xy ] = b_xy ;\n h -> mb2br_xy [ mb_xy ] = 8 * ( FMO ? mb_xy : ( mb_xy % ( 2 * h -> mb_stride ) ) ) ;\n }\n if ( ! h -> dequant4_coeff [ 0 ] ) init_dequant_tables ( h ) ;\n if ( ! h -> DPB ) {\n h -> DPB = av_mallocz_array ( MAX_PICTURE_COUNT , sizeof ( * h -> DPB ) ) ;\n if ( ! h -> DPB ) return AVERROR ( ENOMEM ) ;\n for ( i = 0 ;\n i < MAX_PICTURE_COUNT ;\n i ++ ) avcodec_get_frame_defaults ( & h -> DPB [ i ] . f ) ;\n avcodec_get_frame_defaults ( & h -> cur_pic . f ) ;\n }\n return 0 ;\n fail : free_tables ( h , 1 ) ;\n return AVERROR ( ENOMEM ) ;\n }"}
{"idx": 11812, "target": 0, "func": "static inline int mpeg2_decode_block_non_intra ( MpegEncContext * s , int16_t * block , int n ) {\n int level , i , j , run ;\n RLTable * rl = & ff_rl_mpeg1 ;\n uint8_t * const scantable = s -> intra_scantable . permutated ;\n const uint16_t * quant_matrix ;\n const int qscale = s -> qscale ;\n int mismatch ;\n mismatch = 1 ;\n {\n OPEN_READER ( re , & s -> gb ) ;\n i = - 1 ;\n if ( n < 4 ) quant_matrix = s -> inter_matrix ;\n else quant_matrix = s -> chroma_inter_matrix ;\n UPDATE_CACHE ( re , & s -> gb ) ;\n if ( ( ( int32_t ) GET_CACHE ( re , & s -> gb ) ) < 0 ) {\n level = ( 3 * qscale * quant_matrix [ 0 ] ) >> 5 ;\n if ( GET_CACHE ( re , & s -> gb ) & 0x40000000 ) level = - level ;\n block [ 0 ] = level ;\n mismatch ^= level ;\n i ++ ;\n SKIP_BITS ( re , & s -> gb , 2 ) ;\n if ( ( ( int32_t ) GET_CACHE ( re , & s -> gb ) ) <= ( int32_t ) 0xBFFFFFFF ) goto end ;\n }\n for ( ;\n ;\n ) {\n GET_RL_VLC ( level , run , re , & s -> gb , rl -> rl_vlc [ 0 ] , TEX_VLC_BITS , 2 , 0 ) ;\n if ( level != 0 ) {\n i += run ;\n j = scantable [ i ] ;\n level = ( ( level * 2 + 1 ) * qscale * quant_matrix [ j ] ) >> 5 ;\n level = ( level ^ SHOW_SBITS ( re , & s -> gb , 1 ) ) - SHOW_SBITS ( re , & s -> gb , 1 ) ;\n SKIP_BITS ( re , & s -> gb , 1 ) ;\n }\n else {\n run = SHOW_UBITS ( re , & s -> gb , 6 ) + 1 ;\n LAST_SKIP_BITS ( re , & s -> gb , 6 ) ;\n UPDATE_CACHE ( re , & s -> gb ) ;\n level = SHOW_SBITS ( re , & s -> gb , 12 ) ;\n SKIP_BITS ( re , & s -> gb , 12 ) ;\n i += run ;\n j = scantable [ i ] ;\n if ( level < 0 ) {\n level = ( ( - level * 2 + 1 ) * qscale * quant_matrix [ j ] ) >> 5 ;\n level = - level ;\n }\n else {\n level = ( ( level * 2 + 1 ) * qscale * quant_matrix [ j ] ) >> 5 ;\n }\n }\n if ( i > 63 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"ac-tex damaged at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n mismatch ^= level ;\n block [ j ] = level ;\n if ( ( ( int32_t ) GET_CACHE ( re , & s -> gb ) ) <= ( int32_t ) 0xBFFFFFFF ) break ;\n UPDATE_CACHE ( re , & s -> gb ) ;\n }\n end : LAST_SKIP_BITS ( re , & s -> gb , 2 ) ;\n CLOSE_READER ( re , & s -> gb ) ;\n }\n block [ 63 ] ^= ( mismatch & 1 ) ;\n s -> block_last_index [ n ] = i ;\n return 0 ;\n }"}
{"idx": 11813, "target": 0, "func": "static int dsa_cmp_parameters ( const EVP_PKEY * a , const EVP_PKEY * b ) {\n if ( BN_cmp ( a -> pkey . dsa -> p , b -> pkey . dsa -> p ) || BN_cmp ( a -> pkey . dsa -> q , b -> pkey . dsa -> q ) || BN_cmp ( a -> pkey . dsa -> g , b -> pkey . dsa -> g ) ) return 0 ;\n else return 1 ;\n }"}
{"idx": 11814, "target": 0, "func": "static void imlt_gain ( COOKContext * q , float * inbuffer , cook_gains * gains_ptr , float * previous_buffer ) {\n float * buffer0 = q -> mono_mdct_output ;\n float * buffer1 = q -> mono_mdct_output + q -> samples_per_channel ;\n int i ;\n q -> mdct_ctx . imdct_calc ( & q -> mdct_ctx , q -> mono_mdct_output , inbuffer ) ;\n q -> imlt_window ( q , buffer1 , gains_ptr , previous_buffer ) ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) if ( gains_ptr -> now [ i ] || gains_ptr -> now [ i + 1 ] ) q -> interpolate ( q , & buffer1 [ q -> gain_size_factor * i ] , gains_ptr -> now [ i ] , gains_ptr -> now [ i + 1 ] ) ;\n memcpy ( previous_buffer , buffer0 , q -> samples_per_channel * sizeof ( * previous_buffer ) ) ;\n }"}
{"idx": 11815, "target": 0, "func": "static void dtap_bcc_set_param ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , curr_offset << 3 , 4 , ENC_NA ) ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_BCC_STATE_ATTR , NULL ) ;\n }"}
{"idx": 11816, "target": 0, "func": "static void parse_new_commit ( const char * arg ) {\n static struct strbuf msg = STRBUF_INIT ;\n struct branch * b ;\n char * author = NULL ;\n char * committer = NULL ;\n struct hash_list * merge_list = NULL ;\n unsigned int merge_count ;\n unsigned char prev_fanout , new_fanout ;\n const char * v ;\n b = lookup_branch ( arg ) ;\n if ( ! b ) b = new_branch ( arg ) ;\n read_next_command ( ) ;\n parse_mark ( ) ;\n if ( skip_prefix ( command_buf . buf , \"author \" , & v ) ) {\n author = parse_ident ( v ) ;\n read_next_command ( ) ;\n }\n if ( skip_prefix ( command_buf . buf , \"committer \" , & v ) ) {\n committer = parse_ident ( v ) ;\n read_next_command ( ) ;\n }\n if ( ! committer ) die ( \"Expected committer but didn't get one\" ) ;\n parse_data ( & msg , 0 , NULL ) ;\n read_next_command ( ) ;\n parse_from ( b ) ;\n merge_list = parse_merge ( & merge_count ) ;\n if ( ! b -> branch_tree . tree || ! max_active_branches ) {\n unload_one_branch ( ) ;\n load_branch ( b ) ;\n }\n prev_fanout = convert_num_notes_to_fanout ( b -> num_notes ) ;\n while ( command_buf . len > 0 ) {\n if ( skip_prefix ( command_buf . buf , \"M \" , & v ) ) file_change_m ( v , b ) ;\n else if ( skip_prefix ( command_buf . buf , \"D \" , & v ) ) file_change_d ( v , b ) ;\n else if ( skip_prefix ( command_buf . buf , \"R \" , & v ) ) file_change_cr ( v , b , 1 ) ;\n else if ( skip_prefix ( command_buf . buf , \"C \" , & v ) ) file_change_cr ( v , b , 0 ) ;\n else if ( skip_prefix ( command_buf . buf , \"N \" , & v ) ) note_change_n ( v , b , & prev_fanout ) ;\n else if ( ! strcmp ( \"deleteall\" , command_buf . buf ) ) file_change_deleteall ( b ) ;\n else if ( skip_prefix ( command_buf . buf , \"ls \" , & v ) ) parse_ls ( v , b ) ;\n else {\n unread_command_buf = 1 ;\n break ;\n }\n if ( read_next_command ( ) == EOF ) break ;\n }\n new_fanout = convert_num_notes_to_fanout ( b -> num_notes ) ;\n if ( new_fanout != prev_fanout ) b -> num_notes = change_note_fanout ( & b -> branch_tree , new_fanout ) ;\n store_tree ( & b -> branch_tree ) ;\n hashcpy ( b -> branch_tree . versions [ 0 ] . sha1 , b -> branch_tree . versions [ 1 ] . sha1 ) ;\n strbuf_reset ( & new_data ) ;\n strbuf_addf ( & new_data , \"tree %s\\n\" , sha1_to_hex ( b -> branch_tree . versions [ 1 ] . sha1 ) ) ;\n if ( ! is_null_sha1 ( b -> sha1 ) ) strbuf_addf ( & new_data , \"parent %s\\n\" , sha1_to_hex ( b -> sha1 ) ) ;\n while ( merge_list ) {\n struct hash_list * next = merge_list -> next ;\n strbuf_addf ( & new_data , \"parent %s\\n\" , sha1_to_hex ( merge_list -> sha1 ) ) ;\n free ( merge_list ) ;\n merge_list = next ;\n }\n strbuf_addf ( & new_data , \"author %s\\n\" \"committer %s\\n\" \"\\n\" , author ? author : committer , committer ) ;\n strbuf_addbuf ( & new_data , & msg ) ;\n free ( author ) ;\n free ( committer ) ;\n if ( ! store_object ( OBJ_COMMIT , & new_data , NULL , b -> sha1 , next_mark ) ) b -> pack_id = pack_id ;\n b -> last_commit = object_count_by_type [ OBJ_COMMIT ] ;\n }"}
{"idx": 11817, "target": 0, "func": "static uint64_t htonll ( uint64_t val ) {\n static int config = 0 ;\n uint32_t hi ;\n uint32_t lo ;\n if ( config == 0 ) {\n uint16_t h = 0x1234 ;\n uint16_t n = htons ( h ) ;\n if ( h == n ) config = 1 ;\n else config = 2 ;\n }\n if ( config == 1 ) return ( val ) ;\n hi = ( uint32_t ) ( val >> 32 ) ;\n lo = ( uint32_t ) ( val & 0x00000000FFFFFFFF ) ;\n hi = htonl ( hi ) ;\n lo = htonl ( lo ) ;\n return ( ( ( ( uint64_t ) lo ) << 32 ) | ( ( uint64_t ) hi ) ) ;\n }"}
{"idx": 11818, "target": 0, "func": "static int dissect_NOTIFY_INFO_DATA ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n proto_item * item ;\n proto_tree * subtree ;\n guint32 count ;\n guint16 type , field ;\n const char * field_string ;\n subtree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_NOTIFY_INFO_DATA , & item , \"\" ) ;\n offset = dissect_ndr_uint16 ( tvb , offset , pinfo , subtree , di , drep , hf_notify_info_data_type , & type ) ;\n offset = dissect_notify_field ( tvb , offset , pinfo , subtree , di , drep , type , & field ) ;\n switch ( type ) {\n case PRINTER_NOTIFY_TYPE : field_string = val_to_str_ext ( field , & printer_notify_option_data_vals_ext , \"Unknown (%d)\" ) ;\n break ;\n case JOB_NOTIFY_TYPE : field_string = val_to_str_ext ( field , & job_notify_option_data_vals_ext , \"Unknown (%d)\" ) ;\n break ;\n default : field_string = \"Unknown field\" ;\n break ;\n }\n proto_item_append_text ( item , \"%s, %s\" , val_to_str ( type , printer_notify_types , \"Unknown (%d)\" ) , field_string ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_notify_info_data_count , & count ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_notify_info_data_id , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_notify_info_data_count , NULL ) ;\n switch ( type ) {\n case PRINTER_NOTIFY_TYPE : offset = dissect_NOTIFY_INFO_DATA_printer ( tvb , offset , pinfo , subtree , item , di , drep , field ) ;\n break ;\n case JOB_NOTIFY_TYPE : offset = dissect_NOTIFY_INFO_DATA_job ( tvb , offset , pinfo , subtree , item , di , drep , field ) ;\n break ;\n default : expert_add_info ( pinfo , item , & ei_notify_info_data_type ) ;\n break ;\n }\n return offset ;\n }"}
{"idx": 11819, "target": 0, "func": "static int32_t compareBytes ( UCMTable * lTable , const UCMapping * l , UCMTable * rTable , const UCMapping * r , UBool lexical ) {\n const uint8_t * lb , * rb ;\n int32_t result , i , length ;\n if ( lexical ) {\n if ( l -> bLen <= r -> bLen ) {\n length = l -> bLen ;\n }\n else {\n length = r -> bLen ;\n }\n }\n else {\n result = l -> bLen - r -> bLen ;\n if ( result != 0 ) {\n return result ;\n }\n else {\n length = l -> bLen ;\n }\n }\n lb = UCM_GET_BYTES ( lTable , l ) ;\n rb = UCM_GET_BYTES ( rTable , r ) ;\n for ( i = 0 ;\n i < length ;\n ++ i ) {\n result = lb [ i ] - rb [ i ] ;\n if ( result != 0 ) {\n return result ;\n }\n }\n return l -> bLen - r -> bLen ;\n }"}
{"idx": 11820, "target": 0, "func": "static void rgb_to_lab ( fz_context * ctx , const fz_colorspace * cs , const float * rgb , float * lab ) {\n fz_warn ( ctx , \"cannot convert into L*a*b colorspace\" ) ;\n lab [ 0 ] = rgb [ 0 ] ;\n lab [ 1 ] = rgb [ 1 ] ;\n lab [ 2 ] = rgb [ 2 ] ;\n }"}
{"idx": 11821, "target": 0, "func": "static int dissect_h245_VBDCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_VBDCapability , VBDCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 11822, "target": 0, "func": "static UChar32 U_CALLCONV _UTF16BEGetNextUChar ( UConverterToUnicodeArgs * pArgs , UErrorCode * err ) {\n const uint8_t * s , * sourceLimit ;\n UChar32 c ;\n if ( pArgs -> converter -> mode < 8 ) {\n return UCNV_GET_NEXT_UCHAR_USE_TO_U ;\n }\n s = ( const uint8_t * ) pArgs -> source ;\n sourceLimit = ( const uint8_t * ) pArgs -> sourceLimit ;\n if ( s >= sourceLimit ) {\n * err = U_INDEX_OUTOFBOUNDS_ERROR ;\n return 0xffff ;\n }\n if ( s + 2 > sourceLimit ) {\n pArgs -> converter -> toUBytes [ 0 ] = * s ++ ;\n pArgs -> converter -> toULength = 1 ;\n pArgs -> source = ( const char * ) s ;\n * err = U_TRUNCATED_CHAR_FOUND ;\n return 0xffff ;\n }\n c = ( ( UChar32 ) * s << 8 ) | s [ 1 ] ;\n s += 2 ;\n if ( U_IS_SURROGATE ( c ) ) {\n if ( U16_IS_SURROGATE_LEAD ( c ) ) {\n if ( s + 2 <= sourceLimit ) {\n UChar trail ;\n trail = ( ( UChar ) * s << 8 ) | s [ 1 ] ;\n if ( U16_IS_TRAIL ( trail ) ) {\n c = U16_GET_SUPPLEMENTARY ( c , trail ) ;\n s += 2 ;\n }\n else {\n c = - 2 ;\n }\n }\n else {\n uint8_t * bytes = pArgs -> converter -> toUBytes ;\n s -= 2 ;\n pArgs -> converter -> toULength = ( int8_t ) ( sourceLimit - s ) ;\n do {\n * bytes ++ = * s ++ ;\n }\n while ( s < sourceLimit ) ;\n c = 0xffff ;\n * err = U_TRUNCATED_CHAR_FOUND ;\n }\n }\n else {\n c = - 2 ;\n }\n if ( c < 0 ) {\n uint8_t * bytes = pArgs -> converter -> toUBytes ;\n pArgs -> converter -> toULength = 2 ;\n * bytes = * ( s - 2 ) ;\n bytes [ 1 ] = * ( s - 1 ) ;\n c = 0xffff ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n pArgs -> source = ( const char * ) s ;\n return c ;\n }"}
{"idx": 11823, "target": 0, "func": "static gint rsvp_equal ( gconstpointer k1 , gconstpointer k2 ) {\n const struct rsvp_request_key * key1 = ( const struct rsvp_request_key * ) k1 ;\n const struct rsvp_request_key * key2 = ( const struct rsvp_request_key * ) k2 ;\n if ( key1 -> conversation != key2 -> conversation ) {\n return 0 ;\n }\n if ( key1 -> session_type != key2 -> session_type ) {\n return 0 ;\n }\n switch ( key1 -> session_type ) {\n case RSVP_SESSION_TYPE_IPV4 : if ( addresses_equal ( & key1 -> u . session_ipv4 . destination , & key2 -> u . session_ipv4 . destination ) == FALSE ) return 0 ;\n if ( key1 -> u . session_ipv4 . protocol != key2 -> u . session_ipv4 . protocol ) return 0 ;\n if ( key1 -> u . session_ipv4 . udp_dest_port != key2 -> u . session_ipv4 . udp_dest_port ) return 0 ;\n break ;\n case RSVP_SESSION_TYPE_IPV6 : break ;\n case RSVP_SESSION_TYPE_IPV4_LSP : if ( addresses_equal ( & key1 -> u . session_ipv4_lsp . destination , & key2 -> u . session_ipv4_lsp . destination ) == FALSE ) return 0 ;\n if ( key1 -> u . session_ipv4_lsp . udp_dest_port != key2 -> u . session_ipv4_lsp . udp_dest_port ) return 0 ;\n if ( key1 -> u . session_ipv4_lsp . ext_tunnel_id != key2 -> u . session_ipv4_lsp . ext_tunnel_id ) return 0 ;\n break ;\n case RSVP_SESSION_TYPE_AGGREGATE_IPV4 : if ( addresses_equal ( & key1 -> u . session_agg_ipv4 . destination , & key2 -> u . session_agg_ipv4 . destination ) == FALSE ) return 0 ;\n if ( key1 -> u . session_agg_ipv4 . dscp != key2 -> u . session_agg_ipv4 . dscp ) return 0 ;\n break ;\n case RSVP_SESSION_TYPE_AGGREGATE_IPV6 : break ;\n case RSVP_SESSION_TYPE_IPV4_UNI : if ( addresses_equal ( & key1 -> u . session_ipv4_uni . destination , & key2 -> u . session_ipv4_uni . destination ) == FALSE ) return 0 ;\n if ( key1 -> u . session_ipv4_uni . udp_dest_port != key2 -> u . session_ipv4_uni . udp_dest_port ) return 0 ;\n if ( key1 -> u . session_ipv4_uni . ext_tunnel_id != key2 -> u . session_ipv4_uni . ext_tunnel_id ) return 0 ;\n break ;\n case RSVP_SESSION_TYPE_IPV4_E_NNI : if ( addresses_equal ( & key1 -> u . session_ipv4_enni . destination , & key2 -> u . session_ipv4_enni . destination ) == FALSE ) return 0 ;\n if ( key1 -> u . session_ipv4_enni . udp_dest_port != key2 -> u . session_ipv4_enni . udp_dest_port ) return 0 ;\n if ( key1 -> u . session_ipv4_enni . ext_tunnel_id != key2 -> u . session_ipv4_enni . ext_tunnel_id ) return 0 ;\n break ;\n default : break ;\n }\n if ( addresses_equal ( & key1 -> source_info . source , & key2 -> source_info . source ) == FALSE ) return 0 ;\n if ( key1 -> source_info . udp_source_port != key2 -> source_info . udp_source_port ) return 0 ;\n return 1 ;\n }"}
{"idx": 11824, "target": 0, "func": "static void arith2_rescale_interval ( ArithCoder * c , int range , int low , int high , int n ) {\n int split = ( n << 1 ) - range ;\n if ( high > split ) c -> high = split + ( high - split << 1 ) ;\n else c -> high = high ;\n c -> high += c -> low - 1 ;\n if ( low > split ) c -> low += split + ( low - split << 1 ) ;\n else c -> low += low ;\n }"}
{"idx": 11825, "target": 0, "func": "static void e1000e_msix_notify_one ( E1000ECore * core , uint32_t cause , uint32_t int_cfg ) {\n uint32_t effective_eiac ;\n if ( E1000_IVAR_ENTRY_VALID ( int_cfg ) ) {\n uint32_t vec = E1000_IVAR_ENTRY_VEC ( int_cfg ) ;\n if ( vec < E1000E_MSIX_VEC_NUM ) {\n if ( ! e1000e_eitr_should_postpone ( core , vec ) ) {\n trace_e1000e_irq_msix_notify_vec ( vec ) ;\n msix_notify ( core -> owner , vec ) ;\n }\n }\n else {\n trace_e1000e_wrn_msix_vec_wrong ( cause , int_cfg ) ;\n }\n }\n else {\n trace_e1000e_wrn_msix_invalid ( cause , int_cfg ) ;\n }\n if ( core -> mac [ CTRL_EXT ] & E1000_CTRL_EXT_EIAME ) {\n trace_e1000e_irq_iam_clear_eiame ( core -> mac [ IAM ] , cause ) ;\n core -> mac [ IAM ] &= ~ cause ;\n }\n trace_e1000e_irq_icr_clear_eiac ( core -> mac [ ICR ] , core -> mac [ EIAC ] ) ;\n effective_eiac = core -> mac [ EIAC ] & cause ;\n if ( effective_eiac == E1000_ICR_OTHER ) {\n effective_eiac |= E1000_ICR_OTHER_CAUSES ;\n }\n core -> mac [ ICR ] &= ~ effective_eiac ;\n if ( ! ( core -> mac [ CTRL_EXT ] & E1000_CTRL_EXT_IAME ) ) {\n core -> mac [ IMS ] &= ~ effective_eiac ;\n }\n }"}
{"idx": 11826, "target": 0, "func": "void RECORD_LAYER_release ( RECORD_LAYER * rl ) {\n if ( SSL3_BUFFER_is_initialised ( & rl -> rbuf ) ) ssl3_release_read_buffer ( rl -> s ) ;\n if ( rl -> numwpipes > 0 ) ssl3_release_write_buffer ( rl -> s ) ;\n SSL3_RECORD_release ( rl -> rrec , SSL_MAX_PIPELINES ) ;\n }"}
{"idx": 11827, "target": 0, "func": "void kvm_arch_remove_all_hw_breakpoints ( void ) {\n nb_hw_breakpoint = 0 ;\n }"}
{"idx": 11828, "target": 0, "func": "static void config_tinker ( config_tree * ptree ) {\n attr_val * tinker ;\n int item ;\n item = - 1 ;\n tinker = HEAD_PFIFO ( ptree -> tinker ) ;\n for ( ;\n tinker != NULL ;\n tinker = tinker -> link ) {\n switch ( tinker -> attr ) {\n default : NTP_INSIST ( 0 ) ;\n break ;\n case T_Allan : item = LOOP_ALLAN ;\n break ;\n case T_Dispersion : item = LOOP_PHI ;\n break ;\n case T_Freq : item = LOOP_FREQ ;\n break ;\n case T_Huffpuff : item = LOOP_HUFFPUFF ;\n break ;\n case T_Panic : item = LOOP_PANIC ;\n break ;\n case T_Step : item = LOOP_MAX ;\n break ;\n case T_Stepout : item = LOOP_MINSTEP ;\n break ;\n }\n loop_config ( item , tinker -> value . d ) ;\n }\n }"}
{"idx": 11829, "target": 0, "func": "void fz_set_default_rgb ( fz_context * ctx , fz_default_colorspaces * default_cs , fz_colorspace * cs ) {\n if ( cs -> n == 3 ) {\n fz_drop_colorspace ( ctx , default_cs -> rgb ) ;\n default_cs -> rgb = fz_keep_colorspace ( ctx , cs ) ;\n }\n }"}
{"idx": 11830, "target": 0, "func": "static int getStrrtokenPos ( char * str , int savedPos ) {\n int result = - 1 ;\n int i ;\n for ( i = savedPos - 1 ;\n i >= 0 ;\n i -- ) {\n if ( isIDSeparator ( * ( str + i ) ) ) {\n if ( i >= 2 && isIDSeparator ( * ( str + i - 2 ) ) ) {\n result = i - 2 ;\n }\n else {\n result = i ;\n }\n break ;\n }\n }\n if ( result < 1 ) {\n result = - 1 ;\n }\n return result ;\n }"}
{"idx": 11831, "target": 0, "func": "static void extract_task_thread_func ( GTask * task , gpointer source_object , gpointer task_data , GCancellable * cancellable ) {\n ExtractJob * extract_job = task_data ;\n GList * l ;\n GList * existing_output_files = NULL ;\n gint total_files ;\n g_autofree guint64 * archive_compressed_sizes = NULL ;\n gint i ;\n g_timer_start ( extract_job -> common . time ) ;\n nautilus_progress_info_start ( extract_job -> common . progress ) ;\n nautilus_progress_info_set_details ( extract_job -> common . progress , _ ( \"Preparing to extract\" ) ) ;\n total_files = g_list_length ( extract_job -> source_files ) ;\n archive_compressed_sizes = g_malloc0_n ( total_files , sizeof ( guint64 ) ) ;\n extract_job -> total_compressed_size = 0 ;\n for ( l = extract_job -> source_files , i = 0 ;\n l != NULL && ! job_aborted ( ( CommonJob * ) extract_job ) ;\n l = l -> next , i ++ ) {\n GFile * source_file ;\n g_autoptr ( GFileInfo ) info = NULL ;\n source_file = G_FILE ( l -> data ) ;\n info = g_file_query_info ( source_file , G_FILE_ATTRIBUTE_STANDARD_SIZE , G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS , extract_job -> common . cancellable , NULL ) ;\n if ( info ) {\n archive_compressed_sizes [ i ] = g_file_info_get_size ( info ) ;\n extract_job -> total_compressed_size += archive_compressed_sizes [ i ] ;\n }\n }\n extract_job -> base_progress = 0 ;\n for ( l = extract_job -> source_files , i = 0 ;\n l != NULL && ! job_aborted ( ( CommonJob * ) extract_job ) ;\n l = l -> next , i ++ ) {\n g_autoptr ( AutoarExtractor ) extractor = NULL ;\n extractor = autoar_extractor_new ( G_FILE ( l -> data ) , extract_job -> destination_directory ) ;\n autoar_extractor_set_notify_interval ( extractor , PROGRESS_NOTIFY_INTERVAL ) ;\n g_signal_connect ( extractor , \"error\" , G_CALLBACK ( extract_job_on_error ) , extract_job ) ;\n g_signal_connect ( extractor , \"decide-destination\" , G_CALLBACK ( extract_job_on_decide_destination ) , extract_job ) ;\n g_signal_connect ( extractor , \"progress\" , G_CALLBACK ( extract_job_on_progress ) , extract_job ) ;\n g_signal_connect ( extractor , \"completed\" , G_CALLBACK ( extract_job_on_completed ) , extract_job ) ;\n extract_job -> archive_compressed_size = archive_compressed_sizes [ i ] ;\n autoar_extractor_start ( extractor , extract_job -> common . cancellable ) ;\n g_signal_handlers_disconnect_by_data ( extractor , extract_job ) ;\n extract_job -> base_progress += ( gdouble ) extract_job -> archive_compressed_size / ( gdouble ) extract_job -> total_compressed_size ;\n }\n if ( ! job_aborted ( ( CommonJob * ) extract_job ) ) {\n report_extract_final_progress ( extract_job , total_files ) ;\n }\n for ( l = extract_job -> output_files ;\n l != NULL ;\n l = l -> next ) {\n GFile * output_file ;\n output_file = G_FILE ( l -> data ) ;\n if ( g_file_query_exists ( output_file , NULL ) ) {\n existing_output_files = g_list_prepend ( existing_output_files , g_object_ref ( output_file ) ) ;\n }\n }\n g_list_free_full ( extract_job -> output_files , g_object_unref ) ;\n extract_job -> output_files = existing_output_files ;\n if ( extract_job -> common . undo_info ) {\n if ( extract_job -> output_files ) {\n NautilusFileUndoInfoExtract * undo_info ;\n undo_info = NAUTILUS_FILE_UNDO_INFO_EXTRACT ( extract_job -> common . undo_info ) ;\n nautilus_file_undo_info_extract_set_outputs ( undo_info , extract_job -> output_files ) ;\n }\n else {\n g_clear_object ( & extract_job -> common . undo_info ) ;\n }\n }\n }"}
{"idx": 11832, "target": 0, "func": "static char * parse_ident ( const char * buf ) {\n const char * ltgt ;\n size_t name_len ;\n struct strbuf ident = STRBUF_INIT ;\n if ( * buf == '<' ) -- buf ;\n ltgt = buf + strcspn ( buf , \"<>\" ) ;\n if ( * ltgt != '<' ) die ( \"Missing < in ident string: %s\" , buf ) ;\n if ( ltgt != buf && ltgt [ - 1 ] != ' ' ) die ( \"Missing space before < in ident string: %s\" , buf ) ;\n ltgt = ltgt + 1 + strcspn ( ltgt + 1 , \"<>\" ) ;\n if ( * ltgt != '>' ) die ( \"Missing > in ident string: %s\" , buf ) ;\n ltgt ++ ;\n if ( * ltgt != ' ' ) die ( \"Missing space after > in ident string: %s\" , buf ) ;\n ltgt ++ ;\n name_len = ltgt - buf ;\n strbuf_add ( & ident , buf , name_len ) ;\n switch ( whenspec ) {\n case WHENSPEC_RAW : if ( validate_raw_date ( ltgt , & ident ) < 0 ) die ( \"Invalid raw date \\\"%s\\\" in ident: %s\" , ltgt , buf ) ;\n break ;\n case WHENSPEC_RFC2822 : if ( parse_date ( ltgt , & ident ) < 0 ) die ( \"Invalid rfc2822 date \\\"%s\\\" in ident: %s\" , ltgt , buf ) ;\n break ;\n case WHENSPEC_NOW : if ( strcmp ( \"now\" , ltgt ) ) die ( \"Date in ident must be 'now': %s\" , buf ) ;\n datestamp ( & ident ) ;\n break ;\n }\n return strbuf_detach ( & ident , NULL ) ;\n }"}
{"idx": 11833, "target": 0, "func": "SPL_METHOD ( SplFileInfo , func_name ) \\ {\n \\ spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n \\ zend_error_handling error_handling ;\n \\ if ( zend_parse_parameters_none ( ) == FAILURE ) {\n \\ return ;\n \\ }\n \\ \\ zend_replace_error_handling ( EH_THROW , spl_ce_RuntimeException , & error_handling TSRMLS_CC ) ;\n \\ spl_filesystem_object_get_file_name ( intern TSRMLS_CC ) ;\n \\ php_stat ( intern -> file_name , intern -> file_name_len , func_num , return_value TSRMLS_CC ) ;\n \\ zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n \\ }\n FileInfoFunction ( getPerms , FS_PERMS ) FileInfoFunction ( getInode , FS_INODE ) FileInfoFunction ( getSize , FS_SIZE ) FileInfoFunction ( getOwner , FS_OWNER ) FileInfoFunction ( getGroup , FS_GROUP ) FileInfoFunction ( getATime , FS_ATIME )"}
{"idx": 11834, "target": 0, "func": "void proto_register_rsl ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_rsl_msg_dsc , {\n \"Message discriminator\" , \"gsm_abis_rsl.msg_dsc\" , FT_UINT8 , BASE_DEC , VALS ( rsl_msg_disc_vals ) , 0xfe , NULL , HFILL }\n }\n , {\n & hf_rsl_T_bit , {\n \"T bit\" , \"gsm_abis_rsl.T_bit\" , FT_BOOLEAN , 8 , TFS ( & rsl_t_bit_vals ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_rsl_msg_type , {\n \"Message type\" , \"gsm_abis_rsl.msg_type\" , FT_UINT8 , BASE_HEX_DEC | BASE_EXT_STRING , & rsl_msg_type_vals_ext , 0x7f , NULL , HFILL }\n }\n , {\n & hf_rsl_ie_id , {\n \"Element identifier\" , \"gsm_abis_rsl.ie_id\" , FT_UINT8 , BASE_HEX_DEC | BASE_EXT_STRING , & rsl_ie_type_vals_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_ie_length , {\n \"Length\" , \"gsm_abis_rsl.ie_length\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_ch_no_Cbits , {\n \"C-bits\" , \"gsm_abis_rsl.ch_no_Cbits\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & rsl_ch_no_Cbits_vals_ext , 0xf8 , NULL , HFILL }\n }\n , {\n & hf_rsl_ch_no_TN , {\n \"Time slot number (TN)\" , \"gsm_abis_rsl.ch_no_TN\" , FT_UINT8 , BASE_DEC , NULL , 0x07 , NULL , HFILL }\n }\n , {\n & hf_rsl_rtd , {\n \"Round Trip Delay (RTD)\" , \"gsm_abis_rsl.rtd\" , FT_UINT8 , BASE_DEC , NULL , 0xfe , NULL , HFILL }\n }\n , {\n & hf_rsl_delay_ind , {\n \"Delay IND\" , \"gsm_abis_rsl.delay_ind\" , FT_UINT8 , BASE_DEC , VALS ( rsl_delay_ind_vals ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_rsl_tfo , {\n \"TFO\" , \"gsm_abis_rsl.tfo\" , FT_BOOLEAN , 8 , TFS ( & rsl_tfo_vals ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_rsl_req_ref_ra , {\n \"Random Access Information (RA)\" , \"gsm_abis_rsl.req_ref_ra\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_req_ref_T1prim , {\n \"T1'\" , \"gsm_abis_rsl.req_ref_T1prim\" , FT_UINT8 , BASE_DEC , NULL , 0xf8 , NULL , HFILL }\n }\n , {\n & hf_rsl_req_ref_T3 , {\n \"T3\" , \"gsm_abis_rsl.req_ref_T3\" , FT_UINT16 , BASE_DEC , NULL , 0x07e0 , NULL , HFILL }\n }\n , {\n & hf_rsl_req_ref_T2 , {\n \"T2\" , \"gsm_abis_rsl.req_ref_T2\" , FT_UINT8 , BASE_DEC , NULL , 0x1f , NULL , HFILL }\n }\n , {\n & hf_rsl_timing_adv , {\n \"Timing Advance\" , \"gsm_abis_rsl.timing_adv\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_ho_ref , {\n \"Hand-over reference\" , \"gsm_abis_rsl.ho_ref\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_l1inf_power_lev , {\n \"MS power level\" , \"gsm_abis_rsl.ms_power_lev\" , FT_UINT8 , BASE_DEC , NULL , 0xf8 , NULL , HFILL }\n }\n , {\n & hf_rsl_l1inf_fpc , {\n \"FPC/EPC\" , \"gsm_abis_rsl.ms_fpc\" , FT_BOOLEAN , 8 , TFS ( & rsl_ms_fpc_epc_mode_vals ) , 0x04 , NULL , HFILL }\n }\n , {\n & hf_rsl_ms_power_lev , {\n \"MS power level\" , \"gsm_abis_rsl.ms_power_lev\" , FT_UINT8 , BASE_DEC , NULL , 0x1f , NULL , HFILL }\n }\n , {\n & hf_rsl_ms_fpc , {\n \"FPC/EPC\" , \"gsm_abis_rsl.ms_fpc\" , FT_BOOLEAN , 8 , TFS ( & rsl_ms_fpc_epc_mode_vals ) , 0x20 , NULL , HFILL }\n }\n , {\n & hf_rsl_act_timing_adv , {\n \"Actual Timing Advance\" , \"gsm_abis_rsl.act_timing_adv\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_dtxd , {\n \"DTXd\" , \"gsm_abis_rsl.dtxd\" , FT_BOOLEAN , 8 , TFS ( & rsl_dtxd_vals ) , 0x40 , NULL , HFILL }\n }\n , {\n & hf_rsl_rxlev_full_up , {\n \"RXLEV.FULL.up\" , \"gsm_abis_rsl.rxlev_full_up\" , FT_UINT8 , BASE_DEC , NULL , 0x3f , NULL , HFILL }\n }\n , {\n & hf_rsl_rxlev_sub_up , {\n \"RXLEV.SUB.up\" , \"gsm_abis_rsl.rxlev_sub_up\" , FT_UINT8 , BASE_DEC , NULL , 0x3f , NULL , HFILL }\n }\n , {\n & hf_rsl_rxqual_full_up , {\n \"RXQUAL.FULL.up\" , \"gsm_abis_rsl.rxqual_full_up\" , FT_UINT8 , BASE_DEC , NULL , 0x38 , NULL , HFILL }\n }\n , {\n & hf_rsl_rxqual_sub_up , {\n \"RXQUAL.SUB.up\" , \"gsm_abis_rsl.rxqual_sub_up\" , FT_UINT8 , BASE_DEC , NULL , 0x07 , NULL , HFILL }\n }\n , {\n & hf_rsl_acc_delay , {\n \"Access Delay\" , \"gsm_abis_rsl.acc_del\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_rach_slot_cnt , {\n \"RACH Slot Count\" , \"gsm_abis_rsl.rach_slot_cnt\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_rach_busy_cnt , {\n \"RACH Busy Count\" , \"gsm_abis_rsl.rach_busy_cnt\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_rach_acc_cnt , {\n \"RACH Access Count\" , \"gsm_abis_rsl.rach_acc_cnt\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_phy_ctx , {\n \"Physical Context\" , \"gsm_abis_rsl.phy_ctx\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_na , {\n \"Not applicable (NA)\" , \"gsm_abis_rsl.na\" , FT_BOOLEAN , 8 , TFS ( & rsl_na_vals ) , 0x20 , NULL , HFILL }\n }\n , {\n & hf_rsl_ch_type , {\n \"channel type\" , \"gsm_abis_rsl.ch_type\" , FT_UINT8 , BASE_DEC , VALS ( rsl_ch_type_vals ) , 0xc0 , NULL , HFILL }\n }\n , {\n & hf_rsl_prio , {\n \"Priority\" , \"gsm_abis_rsl.prio\" , FT_UINT8 , BASE_DEC , VALS ( rsl_prio_vals ) , 0x18 , NULL , HFILL }\n }\n , {\n & hf_rsl_sapi , {\n \"SAPI\" , \"gsm_abis_rsl.sapi\" , FT_UINT8 , BASE_DEC , NULL , 0x07 , NULL , HFILL }\n }\n , {\n & hf_rsl_rbit , {\n \"R\" , \"gsm_abis_rsl.rbit\" , FT_BOOLEAN , 8 , TFS ( & rsl_rbit_vals ) , 0x80 , NULL , HFILL }\n }\n , {\n & hf_rsl_a3a2 , {\n \"A3A2\" , \"gsm_abis_rsl.a3a2\" , FT_UINT8 , BASE_DEC , VALS ( rsl_a3a2_vals ) , 0x06 , NULL , HFILL }\n }\n , {\n & hf_rsl_a1_0 , {\n \"A1\" , \"gsm_abis_rsl.a1_0\" , FT_BOOLEAN , 8 , TFS ( & rsl_a1_0_vals ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_rsl_a1_1 , {\n \"A1\" , \"gsm_abis_rsl.a1_1\" , FT_BOOLEAN , 8 , TFS ( & rsl_a1_1_vals ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_rsl_a1_2 , {\n \"A1\" , \"gsm_abis_rsl.a2_0\" , FT_BOOLEAN , 8 , TFS ( & rsl_a1_2_vals ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_rsl_epc_mode , {\n \"EPC mode\" , \"gsm_abis_rsl.epc_mode\" , FT_BOOLEAN , 8 , TFS ( & rsl_epc_mode_vals ) , 0x20 , NULL , HFILL }\n }\n , {\n & hf_rsl_bs_fpc_epc_mode , {\n \"FPC-EPC mode\" , \"gsm_abis_rsl.fpc_epc_mode\" , FT_BOOLEAN , 8 , TFS ( & rsl_fpc_epc_mode_vals ) , 0x10 , NULL , HFILL }\n }\n , {\n & hf_rsl_bs_power , {\n \"Power Level\" , \"gsm_abis_rsl.bs_power\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & rsl_rlm_bs_power_vals_ext , 0x0f , NULL , HFILL }\n }\n , {\n & hf_rsl_cm_dtxd , {\n \"DTXd\" , \"gsm_abis_rsl.cm_dtxd\" , FT_BOOLEAN , 8 , TFS ( & rsl_dtx_vals ) , 0x02 , NULL , HFILL }\n }\n , {\n & hf_rsl_cm_dtxu , {\n \"DTXu\" , \"gsm_abis_rsl.cm_dtxu\" , FT_BOOLEAN , 8 , TFS ( & rsl_dtx_vals ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_rsl_speech_or_data , {\n \"Speech or data indicator\" , \"gsm_abis_rsl.speech_or_data\" , FT_UINT8 , BASE_DEC , VALS ( rsl_speech_or_data_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_ch_rate_and_type , {\n \"Channel rate and type\" , \"gsm_abis_rsl.ch_rate_and_type\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & rsl_ch_rate_and_type_vals_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_speech_coding_alg , {\n \"Speech coding algorithm\" , \"gsm_abis_rsl.speech_coding_alg\" , FT_UINT8 , BASE_DEC , VALS ( rsl_speech_coding_alg_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_t_nt_bit , {\n \"Transparent indication\" , \"gsm_abis_rsl.t_nt_bit\" , FT_BOOLEAN , 8 , TFS ( & t_nt_bit_vals ) , 0x40 , NULL , HFILL }\n }\n , {\n & hf_rsl_ra_if_data_rte , {\n \"Radio interface data rate\" , \"gsm_abis_rsl.ra_if_data_rte\" , FT_UINT8 , BASE_DEC , VALS ( rsl_ra_if_data_rte_vals ) , 0x3f , NULL , HFILL }\n }\n , {\n & hf_rsl_data_rte , {\n \"Data rate\" , \"gsm_abis_rsl.data_rte\" , FT_UINT8 , BASE_DEC , VALS ( rsl_ra_if_data_rte_vals ) , 0x3f , NULL , HFILL }\n }\n , {\n & hf_rsl_alg_id , {\n \"Algorithm Identifier\" , \"gsm_abis_rsl.alg_id\" , FT_UINT8 , BASE_DEC , VALS ( rsl_algorithm_id_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_key , {\n \"KEY\" , \"gsm_abis_rsl.key\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_cause , {\n \"Cause\" , \"gsm_abis_rsl.cause\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & rsl_rlm_cause_vals_ext , 0x7f , NULL , HFILL }\n }\n , {\n & hf_rsl_rel_mode , {\n \"Release Mode\" , \"gsm_abis_rsl.rel_mode\" , FT_UINT8 , BASE_DEC , VALS ( rel_mode_vals ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_rsl_interf_band , {\n \"Interf Band\" , \"gsm_abis_rsl.interf_band\" , FT_UINT8 , BASE_DEC , NULL , 0xe0 , NULL , HFILL }\n }\n , {\n & hf_rsl_interf_band_reserved , {\n \"Interf Band reserved bits\" , \"gsm_abis_rsl.interf_band_reserved\" , FT_UINT8 , BASE_DEC , NULL , 0x1f , NULL , HFILL }\n }\n , {\n & hf_rsl_meas_res_no , {\n \"Measurement result number\" , \"gsm_abis_rsl.meas_res_no\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_extension_bit , {\n \"Extension\" , \"gsm_abis_rsl.extension_bit\" , FT_BOOLEAN , 8 , TFS ( & rsl_extension_bit_value ) , 0x80 , NULL , HFILL }\n }\n , {\n & hf_rsl_class , {\n \"Class\" , \"gsm_abis_rsl.class\" , FT_UINT8 , BASE_DEC , VALS ( rsl_class_vals ) , 0x70 , NULL , HFILL }\n }\n , {\n & hf_rsl_paging_grp , {\n \"Paging Group\" , \"gsm_abis_rsl.paging_grp\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_paging_load , {\n \"Paging Buffer Space\" , \"gsm_abis_rsl.paging_load\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_sys_info_type , {\n \"System Info Type\" , \"gsm_abis_rsl.sys_info_type\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & rsl_sys_info_type_vals_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_timing_offset , {\n \"Timing Offset\" , \"gsm_abis_rsl.timing_offset\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_ch_needed , {\n \"Channel Needed\" , \"gsm_abis_rsl.ch_needed\" , FT_UINT8 , BASE_DEC , VALS ( rsl_ch_needed_vals ) , 0x03 , NULL , HFILL }\n }\n , {\n & hf_rsl_cbch_load_type , {\n \"CBCH Load Type\" , \"gsm_abis_rsl.cbch_load_type\" , FT_BOOLEAN , 8 , TFS ( & rsl_cbch_load_type_vals ) , 0x80 , NULL , HFILL }\n }\n , {\n & hf_rsl_msg_slt_cnt , {\n \"Message Slot Count\" , \"gsm_abis_rsl.sg_slt_cnt\" , FT_UINT8 , BASE_DEC , NULL , 0x0f , NULL , HFILL }\n }\n , {\n & hf_rsl_ch_ind , {\n \"Channel Ind\" , \"gsm_abis_rsl.ch_ind\" , FT_UINT8 , BASE_DEC , VALS ( rsl_ch_ind_vals ) , 0x0f , NULL , HFILL }\n }\n , {\n & hf_rsl_command , {\n \"Command\" , \"gsm_abis_rsl.cmd\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_emlpp_prio , {\n \"eMLPP Priority\" , \"gsm_abis_rsl.emlpp_prio\" , FT_UINT8 , BASE_DEC , VALS ( rsl_emlpp_prio_vals ) , 0x03 , NULL , HFILL }\n }\n , {\n & hf_rsl_speech_mode_s , {\n \"ip.access Speech Mode S\" , \"gsm_abis_rsl.ipacc.speech_mode_s\" , FT_UINT8 , BASE_HEX , VALS ( rsl_ipacc_spm_s_vals ) , 0xf , NULL , HFILL }\n }\n , {\n & hf_rsl_speech_mode_m , {\n \"ip.access Speech Mode M\" , \"gsm_abis_rsl.ipacc.speech_mode_m\" , FT_UINT8 , BASE_HEX , VALS ( rsl_ipacc_spm_m_vals ) , 0xf0 , NULL , HFILL }\n }\n , {\n & hf_rsl_conn_id , {\n \"ip.access Connection ID\" , \"gsm_abis_rsl.ipacc.conn_id\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_rtp_payload , {\n \"ip.access RTP Payload Type\" , \"gsm_abis_rsl.ipacc.rtp_payload\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_rtp_csd_fmt_d , {\n \"ip.access RTP CSD Format D\" , \"gsm_abis_rsl.ipacc.rtp_csd_fmt_d\" , FT_UINT8 , BASE_HEX , VALS ( rsl_ipacc_rtp_csd_fmt_d_vals ) , 0x0f , NULL , HFILL }\n , }\n , {\n & hf_rsl_rtp_csd_fmt_ir , {\n \"ip.access RTP CSD Format IR\" , \"gsm_abis_rsl.ipacc.rtp_csd_fmt_ir\" , FT_UINT8 , BASE_HEX , VALS ( rsl_ipacc_rtp_csd_fmt_ir_vals ) , 0xf0 , NULL , HFILL }\n , }\n , {\n & hf_rsl_local_port , {\n \"ip.access Local RTP Port\" , \"gsm_abis_rsl.ipacc.local_port\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n , }\n , {\n & hf_rsl_remote_port , {\n \"ip.access Remote RTP Port\" , \"gsm_abis_rsl.ipacc.remote_port\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n , }\n , {\n & hf_rsl_local_ip , {\n \"ip.access Local IP Address\" , \"gsm_abis_rsl.ipacc.local_ip\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n , }\n , {\n & hf_rsl_remote_ip , {\n \"ip.access Remote IP Address\" , \"gsm_abis_rsl.ipacc.remote_ip\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n , }\n , {\n & hf_rsl_cstat_tx_pkts , {\n \"Packets Sent\" , \"gsm_abis_rsl.ipacc.cstat.tx_pkts\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsl_cstat_tx_octs , {\n \"Octets Sent\" , \"gsm_abis_rsl.ipacc.cstat.tx_octets\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsl_cstat_rx_pkts , {\n \"Packets Received\" , \"gsm_abis_rsl.ipacc.cstat.rx_pkts\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsl_cstat_rx_octs , {\n \"Octets Received\" , \"gsm_abis_rsl.ipacc.cstat.rx_octets\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsl_cstat_lost_pkts , {\n \"Packets Lost\" , \"gsm_abis_rsl.ipacc.cstat.lost_pkts\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsl_cstat_ia_jitter , {\n \"Inter-arrival Jitter\" , \"gsm_abis_rsl.ipacc.cstat.ia_jitter\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsl_cstat_avg_tx_dly , {\n \"Average Tx Delay\" , \"gsm_abis_rsl.ipacc.cstat.avg_tx_delay\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_rsl_channel_description_tag , {\n \"Channel Description Tag\" , \"gsm_abis_rsl.channel_description_tag\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_mobile_allocation_tag , {\n \"Mobile Allocation Tag+Length(0)\" , \"gsm_abis_rsl.mobile_allocation_tag\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_no_resources_required , {\n \"0 No resources required(All other values are reserved)\" , \"gsm_abis_rsl.no_resources_required\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_llsdu_ccch , {\n \"Link Layer Service Data Unit (L3 Message)(CCCH)\" , \"gsm_abis_rsl.llsdu.ccch\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_llsdu_sacch , {\n \"Link Layer Service Data Unit (L3 Message)(SACCH)\" , \"gsm_abis_rsl.llsdu.sacch\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_llsdu , {\n \"Link Layer Service Data Unit (L3 Message)\" , \"gsm_abis_rsl.llsdu\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_rach_supplementary_information , {\n \"Supplementary Information\" , \"gsm_abis_rsl.supplementary_information\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_full_immediate_assign_info_field , {\n \"Full Immediate Assign Info field\" , \"gsm_abis_rsl.full_immediate_assign_info_field\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_layer_3_message , {\n \"Layer 3 message\" , \"gsm_abis_rsl.layer_3_message\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_descriptive_group_or_broadcast_call_reference , {\n \"Descriptive group or broadcast call reference\" , \"gsm_abis_rsl.descriptive_group_or_broadcast_call_reference\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_group_channel_description , {\n \"Group Channel Description\" , \"gsm_abis_rsl.group_channel_description\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_uic , {\n \"UIC\" , \"gsm_abis_rsl.uic\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rsl_codec_list , {\n \"Codec List\" , \"gsm_abis_rsl.codec_list\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , }\n ;\n static gint * ett [ ] = {\n & ett_rsl , & ett_ie_link_id , & ett_ie_act_type , & ett_ie_bs_power , & ett_ie_ch_id , & ett_ie_ch_mode , & ett_ie_enc_inf , & ett_ie_ch_no , & ett_ie_frame_no , & ett_ie_ho_ref , & ett_ie_l1_inf , & ett_ie_L3_inf , & ett_ie_ms_id , & ett_ie_ms_pow , & ett_ie_phy_ctx , & ett_ie_paging_grp , & ett_ie_paging_load , & ett_ie_access_delay , & ett_ie_rach_load , & ett_ie_req_ref , & ett_ie_rel_mode , & ett_ie_resource_inf , & ett_ie_rlm_cause , & ett_ie_staring_time , & ett_ie_timing_adv , & ett_ie_uplink_meas , & ett_ie_full_imm_ass_inf , & ett_ie_smscb_inf , & ett_ie_ms_timing_offset , & ett_ie_err_msg , & ett_ie_full_bcch_inf , & ett_ie_ch_needed , & ett_ie_cb_cmd_type , & ett_ie_smscb_mess , & ett_ie_cbch_load_inf , & ett_ie_smscb_ch_ind , & ett_ie_grp_call_ref , & ett_ie_ch_desc , & ett_ie_nch_drx , & ett_ie_cmd_ind , & ett_ie_emlpp_prio , & ett_ie_uic , & ett_ie_main_ch_ref , & ett_ie_multirate_conf , & ett_ie_multirate_cntrl , & ett_ie_sup_codec_types , & ett_ie_codec_conf , & ett_ie_rtd , & ett_ie_tfo_status , & ett_ie_llp_apdu , & ett_ie_tfo_transp_cont , & ett_ie_cause , & ett_ie_meas_res_no , & ett_ie_message_id , & ett_ie_sys_info_type , & ett_ie_speech_mode , & ett_ie_conn_id , & ett_ie_remote_ip , & ett_ie_remote_port , & ett_ie_local_port , & ett_ie_local_ip , & ett_ie_rtp_payload , }\n ;\n static ei_register_info ei [ ] = {\n {\n & ei_rsl_speech_or_data_indicator , {\n \"gsm_abis_rsl.speech_or_data_indicator.bad\" , PI_PROTOCOL , PI_WARN , \"Speech or data indicator != 1,2 or 3\" , EXPFILL }\n }\n , {\n & ei_rsl_facility_information_element_3gpp_ts_44071 , {\n \"gsm_abis_rsl.facility_information_element_3gpp_ts_44071\" , PI_PROTOCOL , PI_NOTE , \"Facility Information Element as defined in 3GPP TS 44.071\" , EXPFILL }\n }\n , {\n & ei_rsl_embedded_message_tfo_configuration , {\n \"gsm_abis_rsl.embedded_message_tfo_configuration\" , PI_PROTOCOL , PI_NOTE , \"Embedded message that contains the TFO configuration\" , EXPFILL }\n }\n , }\n ;\n module_t * rsl_module ;\n expert_module_t * expert_rsl ;\n # define RSL_ATT_TLVDEF ( _attr , _type , _fixed_len ) \\ rsl_att_tlvdef . def [ _attr ] . type = _type ;\n \\ rsl_att_tlvdef . def [ _attr ] . fixed_len = _fixed_len ;\n RSL_ATT_TLVDEF ( RSL_IE_CH_NO , TLV_TYPE_TV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_LINK_ID , TLV_TYPE_TV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_ACT_TYPE , TLV_TYPE_TV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_BS_POW , TLV_TYPE_TV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_CH_ID , TLV_TYPE_TLV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_CH_MODE , TLV_TYPE_TLV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_ENC_INF , TLV_TYPE_TLV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_FRAME_NO , TLV_TYPE_FIXED , 2 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_HO_REF , TLV_TYPE_TV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_L1_INF , TLV_TYPE_FIXED , 2 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_L3_INF , TLV_TYPE_TL16V , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_MS_ID , TLV_TYPE_TLV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_MS_POW , TLV_TYPE_TV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_PAGING_GRP , TLV_TYPE_TV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_PAGING_LOAD , TLV_TYPE_FIXED , 2 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_PHY_CTX , TLV_TYPE_TLV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_ACCESS_DELAY , TLV_TYPE_TV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_RACH_LOAD , TLV_TYPE_TLV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_REQ_REF , TLV_TYPE_FIXED , 3 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_REL_MODE , TLV_TYPE_TV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_RESOURCE_INF , TLV_TYPE_TLV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_RLM_CAUSE , TLV_TYPE_TLV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_STARTING_TIME , TLV_TYPE_FIXED , 2 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_TIMING_ADV , TLV_TYPE_TV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_UPLINK_MEAS , TLV_TYPE_TLV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_CAUSE , TLV_TYPE_TLV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_MEAS_RES_NO , TLV_TYPE_TV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_MESSAGE_ID , TLV_TYPE_TV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_SYS_INFO_TYPE , TLV_TYPE_TV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_MS_POWER_PARAM , TLV_TYPE_TLV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_BS_POWER_PARAM , TLV_TYPE_TLV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_PREPROC_PARAM , TLV_TYPE_TLV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_PREPROC_MEAS , TLV_TYPE_TLV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_ERR_MSG , TLV_TYPE_TLV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_FULL_BCCH_INF , TLV_TYPE_TLV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_CH_NEEDED , TLV_TYPE_TV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_CB_CMD_TYPE , TLV_TYPE_TV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_SMSCB_MESS , TLV_TYPE_TLV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_FULL_IMM_ASS_INF , TLV_TYPE_TLV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_CBCH_LOAD_INF , TLV_TYPE_TV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_SMSCB_CH_IND , TLV_TYPE_TV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_GRP_CALL_REF , TLV_TYPE_TLV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_CH_DESC , TLV_TYPE_TLV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_NCH_DRX_INF , TLV_TYPE_TLV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_CMD_IND , TLV_TYPE_TLV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_EMLPP_PRIO , TLV_TYPE_TV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_UIC , TLV_TYPE_TLV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_MAIN_CH_REF , TLV_TYPE_TV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_MULTIRATE_CONF , TLV_TYPE_TLV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_MULTIRATE_CNTRL , TLV_TYPE_TV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_SUP_CODEC_TYPES , TLV_TYPE_TLV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_CODEC_CONF , TLV_TYPE_TLV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_RTD , TLV_TYPE_TV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_TFO_STATUS , TLV_TYPE_TV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_LLP_APDU , TLV_TYPE_TLV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_IPAC_REMOTE_IP , TLV_TYPE_FIXED , 4 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_IPAC_REMOTE_PORT , TLV_TYPE_FIXED , 2 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_IPAC_LOCAL_IP , TLV_TYPE_FIXED , 4 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_IPAC_CONN_STAT , TLV_TYPE_TLV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_IPAC_LOCAL_PORT , TLV_TYPE_FIXED , 2 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_IPAC_SPEECH_MODE , TLV_TYPE_TV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_IPAC_CONN_ID , TLV_TYPE_FIXED , 2 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_IPAC_RTP_PAYLOAD2 , TLV_TYPE_TV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_IPAC_RTP_PAYLOAD , TLV_TYPE_TV , 0 ) ;\n RSL_ATT_TLVDEF ( RSL_IE_IPAC_RTP_CSD_FMT , TLV_TYPE_TV , 0 ) ;\n proto_rsl = proto_register_protocol ( \"Radio Signalling Link (RSL)\" , \"RSL\" , \"gsm_abis_rsl\" ) ;\n proto_register_field_array ( proto_rsl , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n expert_rsl = expert_register_protocol ( proto_rsl ) ;\n expert_register_field_array ( expert_rsl , ei , array_length ( ei ) ) ;\n register_dissector ( \"gsm_abis_rsl\" , dissect_rsl , proto_rsl ) ;\n rsl_module = prefs_register_protocol ( proto_rsl , proto_reg_handoff_rsl ) ;\n prefs_register_bool_preference ( rsl_module , \"use_ipaccess_rsl\" , \"Use nanoBTS definitions\" , \"Use ipaccess nanoBTS specific definitions for RSL\" , & global_rsl_use_nano_bts ) ;\n }"}
{"idx": 11835, "target": 1, "func": "__attribute__ ( ( format ( printf , 2 , 3 ) ) ) static int cmd_submitf ( int id , const char * fmt , ... ) {\n char cmd [ MAX_EXTERNAL_COMMAND_LENGTH ] ;\n const char * command ;\n int len , len2 ;\n va_list ap ;\n command = extcmd_get_name ( id ) ;\n len = snprintf ( cmd , sizeof ( cmd ) - 1 , \"[%lu] %s;\n\" , time ( NULL ) , command ) ;\n if ( len < 0 ) return ERROR ;\n if ( fmt ) {\n va_start ( ap , fmt ) ;\n len2 = vsnprintf ( & cmd [ len ] , sizeof ( cmd ) - len - 1 , fmt , ap ) ;\n va_end ( ap ) ;\n if ( len2 < 0 ) return ERROR ;\n }\n return write_command_to_file ( cmd ) ;\n }"}
{"idx": 11836, "target": 1, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE )"}
{"idx": 11837, "target": 0, "func": "static int calculate_section_intra_ratio ( const FIRSTPASS_STATS * begin , const FIRSTPASS_STATS * end , int section_length ) {\n const FIRSTPASS_STATS * s = begin ;\n double intra_error = 0.0 ;\n double coded_error = 0.0 ;\n int i = 0 ;\n while ( s < end && i < section_length ) {\n intra_error += s -> intra_error ;\n coded_error += s -> coded_error ;\n ++ s ;\n ++ i ;\n }\n return ( int ) ( intra_error / DOUBLE_DIVIDE_CHECK ( coded_error ) ) ;\n }"}
{"idx": 11838, "target": 0, "func": "static int write_information_block ( struct archive_write * a ) {\n struct iso9660 * iso9660 ;\n char buf [ 128 ] ;\n const char * v ;\n int opt , r ;\n struct archive_string info ;\n size_t info_size = LOGICAL_BLOCK_SIZE * NON_ISO_FILE_SYSTEM_INFORMATION_BLOCK ;\n iso9660 = ( struct iso9660 * ) a -> format_data ;\n if ( info_size > wb_remaining ( a ) ) {\n r = wb_write_out ( a ) ;\n if ( r != ARCHIVE_OK ) return ( r ) ;\n }\n archive_string_init ( & info ) ;\n if ( archive_string_ensure ( & info , info_size ) == NULL ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate memory\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n memset ( info . s , 0 , info_size ) ;\n opt = 0 ;\n # if defined ( HAVE__CTIME64_S ) _ctime64_s ( buf , sizeof ( buf ) , & ( iso9660 -> birth_time ) ) ;\n # elif defined ( HAVE_CTIME_R ) ctime_r ( & ( iso9660 -> birth_time ) , buf ) ;\n # else strncpy ( buf , ctime ( & ( iso9660 -> birth_time ) ) , sizeof ( buf ) - 1 ) ;\n buf [ sizeof ( buf ) - 1 ] = '\\0' ;\n # endif archive_string_sprintf ( & info , \"INFO %s%s\" , buf , archive_version_string ( ) ) ;\n if ( iso9660 -> opt . abstract_file != OPT_ABSTRACT_FILE_DEFAULT ) set_option_info ( & info , & opt , \"abstract-file\" , KEY_STR , iso9660 -> abstract_file_identifier . s ) ;\n if ( iso9660 -> opt . application_id != OPT_APPLICATION_ID_DEFAULT ) set_option_info ( & info , & opt , \"application-id\" , KEY_STR , iso9660 -> application_identifier . s ) ;\n if ( iso9660 -> opt . allow_vernum != OPT_ALLOW_VERNUM_DEFAULT ) set_option_info ( & info , & opt , \"allow-vernum\" , KEY_FLG , iso9660 -> opt . allow_vernum ) ;\n if ( iso9660 -> opt . biblio_file != OPT_BIBLIO_FILE_DEFAULT ) set_option_info ( & info , & opt , \"biblio-file\" , KEY_STR , iso9660 -> bibliographic_file_identifier . s ) ;\n if ( iso9660 -> opt . boot != OPT_BOOT_DEFAULT ) set_option_info ( & info , & opt , \"boot\" , KEY_STR , iso9660 -> el_torito . boot_filename . s ) ;\n if ( iso9660 -> opt . boot_catalog != OPT_BOOT_CATALOG_DEFAULT ) set_option_info ( & info , & opt , \"boot-catalog\" , KEY_STR , iso9660 -> el_torito . catalog_filename . s ) ;\n if ( iso9660 -> opt . boot_info_table != OPT_BOOT_INFO_TABLE_DEFAULT ) set_option_info ( & info , & opt , \"boot-info-table\" , KEY_FLG , iso9660 -> opt . boot_info_table ) ;\n if ( iso9660 -> opt . boot_load_seg != OPT_BOOT_LOAD_SEG_DEFAULT ) set_option_info ( & info , & opt , \"boot-load-seg\" , KEY_HEX , iso9660 -> el_torito . boot_load_seg ) ;\n if ( iso9660 -> opt . boot_load_size != OPT_BOOT_LOAD_SIZE_DEFAULT ) set_option_info ( & info , & opt , \"boot-load-size\" , KEY_INT , iso9660 -> el_torito . boot_load_size ) ;\n if ( iso9660 -> opt . boot_type != OPT_BOOT_TYPE_DEFAULT ) {\n v = \"no-emulation\" ;\n if ( iso9660 -> opt . boot_type == OPT_BOOT_TYPE_FD ) v = \"fd\" ;\n if ( iso9660 -> opt . boot_type == OPT_BOOT_TYPE_HARD_DISK ) v = \"hard-disk\" ;\n set_option_info ( & info , & opt , \"boot-type\" , KEY_STR , v ) ;\n }\n # ifdef HAVE_ZLIB_H if ( iso9660 -> opt . compression_level != OPT_COMPRESSION_LEVEL_DEFAULT ) set_option_info ( & info , & opt , \"compression-level\" , KEY_INT , iso9660 -> zisofs . compression_level ) ;\n # endif if ( iso9660 -> opt . copyright_file != OPT_COPYRIGHT_FILE_DEFAULT ) set_option_info ( & info , & opt , \"copyright-file\" , KEY_STR , iso9660 -> copyright_file_identifier . s ) ;\n if ( iso9660 -> opt . iso_level != OPT_ISO_LEVEL_DEFAULT ) set_option_info ( & info , & opt , \"iso-level\" , KEY_INT , iso9660 -> opt . iso_level ) ;\n if ( iso9660 -> opt . joliet != OPT_JOLIET_DEFAULT ) {\n if ( iso9660 -> opt . joliet == OPT_JOLIET_LONGNAME ) set_option_info ( & info , & opt , \"joliet\" , KEY_STR , \"long\" ) ;\n else set_option_info ( & info , & opt , \"joliet\" , KEY_FLG , iso9660 -> opt . joliet ) ;\n }\n if ( iso9660 -> opt . limit_depth != OPT_LIMIT_DEPTH_DEFAULT ) set_option_info ( & info , & opt , \"limit-depth\" , KEY_FLG , iso9660 -> opt . limit_depth ) ;\n if ( iso9660 -> opt . limit_dirs != OPT_LIMIT_DIRS_DEFAULT ) set_option_info ( & info , & opt , \"limit-dirs\" , KEY_FLG , iso9660 -> opt . limit_dirs ) ;\n if ( iso9660 -> opt . pad != OPT_PAD_DEFAULT ) set_option_info ( & info , & opt , \"pad\" , KEY_FLG , iso9660 -> opt . pad ) ;\n if ( iso9660 -> opt . publisher != OPT_PUBLISHER_DEFAULT ) set_option_info ( & info , & opt , \"publisher\" , KEY_STR , iso9660 -> publisher_identifier . s ) ;\n if ( iso9660 -> opt . rr != OPT_RR_DEFAULT ) {\n if ( iso9660 -> opt . rr == OPT_RR_DISABLED ) set_option_info ( & info , & opt , \"rockridge\" , KEY_FLG , iso9660 -> opt . rr ) ;\n else if ( iso9660 -> opt . rr == OPT_RR_STRICT ) set_option_info ( & info , & opt , \"rockridge\" , KEY_STR , \"strict\" ) ;\n else if ( iso9660 -> opt . rr == OPT_RR_USEFUL ) set_option_info ( & info , & opt , \"rockridge\" , KEY_STR , \"useful\" ) ;\n }\n if ( iso9660 -> opt . volume_id != OPT_VOLUME_ID_DEFAULT ) set_option_info ( & info , & opt , \"volume-id\" , KEY_STR , iso9660 -> volume_identifier . s ) ;\n if ( iso9660 -> opt . zisofs != OPT_ZISOFS_DEFAULT ) set_option_info ( & info , & opt , \"zisofs\" , KEY_FLG , iso9660 -> opt . zisofs ) ;\n memcpy ( wb_buffptr ( a ) , info . s , info_size ) ;\n archive_string_free ( & info ) ;\n return ( wb_consume ( a , info_size ) ) ;\n }"}
{"idx": 11839, "target": 0, "func": "static int usbdev_mmap ( struct file * file , struct vm_area_struct * vma ) {\n struct usb_memory * usbm = NULL ;\n struct usb_dev_state * ps = file -> private_data ;\n size_t size = vma -> vm_end - vma -> vm_start ;\n void * mem ;\n unsigned long flags ;\n dma_addr_t dma_handle ;\n int ret ;\n ret = usbfs_increase_memory_usage ( size + sizeof ( struct usb_memory ) ) ;\n if ( ret ) goto error ;\n usbm = kzalloc ( sizeof ( struct usb_memory ) , GFP_KERNEL ) ;\n if ( ! usbm ) {\n ret = - ENOMEM ;\n goto error_decrease_mem ;\n }\n mem = usb_alloc_coherent ( ps -> dev , size , GFP_USER , & dma_handle ) ;\n if ( ! mem ) {\n ret = - ENOMEM ;\n goto error_free_usbm ;\n }\n memset ( mem , 0 , size ) ;\n usbm -> mem = mem ;\n usbm -> dma_handle = dma_handle ;\n usbm -> size = size ;\n usbm -> ps = ps ;\n usbm -> vm_start = vma -> vm_start ;\n usbm -> vma_use_count = 1 ;\n INIT_LIST_HEAD ( & usbm -> memlist ) ;\n if ( remap_pfn_range ( vma , vma -> vm_start , virt_to_phys ( usbm -> mem ) >> PAGE_SHIFT , size , vma -> vm_page_prot ) < 0 ) {\n dec_usb_memory_use_count ( usbm , & usbm -> vma_use_count ) ;\n return - EAGAIN ;\n }\n vma -> vm_flags |= VM_IO ;\n vma -> vm_flags |= ( VM_DONTEXPAND | VM_DONTDUMP ) ;\n vma -> vm_ops = & usbdev_vm_ops ;\n vma -> vm_private_data = usbm ;\n spin_lock_irqsave ( & ps -> lock , flags ) ;\n list_add_tail ( & usbm -> memlist , & ps -> memory_list ) ;\n spin_unlock_irqrestore ( & ps -> lock , flags ) ;\n return 0 ;\n error_free_usbm : kfree ( usbm ) ;\n error_decrease_mem : usbfs_decrease_memory_usage ( size + sizeof ( struct usb_memory ) ) ;\n error : return ret ;\n }"}
{"idx": 11840, "target": 1, "func": "static void set_block_thresholds ( const VP9_COMMON * cm , RD_OPT * rd ) {\n int i , bsize , segment_id ;\n for ( segment_id = 0 ;\n segment_id < MAX_SEGMENTS ;\n ++ segment_id ) {\n const int qindex = clamp ( vp9_get_qindex ( & cm -> seg , segment_id , cm -> base_qindex ) + cm -> y_dc_delta_q , 0 , MAXQ ) ;\n const int q = compute_rd_thresh_factor ( qindex ) ;\n for ( bsize = 0 ;\n bsize < BLOCK_SIZES ;\n ++ bsize ) {\n const int t = q * rd_thresh_block_size_factor [ bsize ] ;\n const int thresh_max = INT_MAX / t ;\n if ( bsize >= BLOCK_8X8 ) {\n for ( i = 0 ;\n i < MAX_MODES ;\n ++ i ) rd -> threshes [ segment_id ] [ bsize ] [ i ] = rd -> thresh_mult [ i ] < thresh_max ? rd -> thresh_mult [ i ] * t / 4 : INT_MAX ;\n }\n else {\n for ( i = 0 ;\n i < MAX_REFS ;\n ++ i ) rd -> threshes [ segment_id ] [ bsize ] [ i ] = rd -> thresh_mult_sub8x8 [ i ] < thresh_max ? rd -> thresh_mult_sub8x8 [ i ] * t / 4 : INT_MAX ;\n }\n }\n }\n }"}
{"idx": 11841, "target": 0, "func": "void OnDangerPromptCreated ( DownloadDangerPrompt * prompt ) {\n prompt -> InvokeActionForTesting ( DownloadDangerPrompt : : ACCEPT ) ;\n }"}
{"idx": 11842, "target": 0, "func": "static void sdk_free_field_handle ( TSMBuffer bufp , MIMEFieldSDKHandle * field_handle ) {\n if ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) {\n mHandleAllocator . free ( field_handle ) ;\n }\n }"}
{"idx": 11843, "target": 0, "func": "proto_item * ptvcursor_add_no_advance ( ptvcursor_t * ptvc , int hf , gint length , const guint encoding ) {\n proto_item * item ;\n item = proto_tree_add_item ( ptvc -> tree , hf , ptvc -> tvb , ptvc -> offset , length , encoding ) ;\n return item ;\n }"}
{"idx": 11844, "target": 0, "func": "static void event_once_cb ( int fd , short events , void * arg ) {\n struct event_once * eonce = arg ;\n ( * eonce -> cb ) ( fd , events , eonce -> arg ) ;\n free ( eonce ) ;\n }"}
{"idx": 11845, "target": 0, "func": "static int dissect_t38_UDPTLPacket ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 232 \"../../asn1/t38/t38.cnf\" Data_Field_field_type_value = 1 ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_t38_UDPTLPacket , UDPTLPacket_sequence ) ;\n return offset ;\n }"}
{"idx": 11846, "target": 0, "func": "int match_re ( my_regex_t * re , char * str ) {\n while ( my_isspace ( charset_info , * str ) ) str ++ ;\n if ( str [ 0 ] == '/' && str [ 1 ] == '*' ) {\n char * comm_end = strstr ( str , \"*/\" ) ;\n if ( ! comm_end ) die ( \"Statement is unterminated comment\" ) ;\n str = comm_end + 2 ;\n }\n int err = my_regexec ( re , str , ( size_t ) 0 , NULL , 0 ) ;\n if ( err == 0 ) return 1 ;\n else if ( err == REG_NOMATCH ) return 0 ;\n {\n char erbuf [ 100 ] ;\n int len = my_regerror ( err , re , erbuf , sizeof ( erbuf ) ) ;\n die ( \"error %s, %d/%d `%s'\\n\" , re_eprint ( err ) , ( int ) len , ( int ) sizeof ( erbuf ) , erbuf ) ;\n }\n return 0 ;\n }"}
{"idx": 11847, "target": 1, "func": "static int32_t u_scanf_spellout_handler ( UFILE * input , u_scanf_spec_info * info , ufmt_args * args , const UChar * fmt , int32_t * fmtConsumed , int32_t * argConverted ) {\n int32_t len ;\n double num ;\n UNumberFormat * format ;\n int32_t parsePos = 0 ;\n int32_t skipped ;\n UErrorCode status = U_ZERO_ERROR ;\n skipped = u_scanf_skip_leading_ws ( input , info -> fPadChar ) ;\n ufile_fill_uchar_buffer ( input ) ;\n len = ( int32_t ) ( input -> str . fLimit - input -> str . fPos ) ;\n if ( info -> fWidth != - 1 ) len = ufmt_min ( len , info -> fWidth ) ;\n format = u_locbund_getNumberFormat ( & input -> str . fBundle , UNUM_SPELLOUT ) ;\n if ( format == 0 ) return 0 ;\n num = unum_parseDouble ( format , input -> str . fPos , len , & parsePos , & status ) ;\n if ( ! info -> fSkipArg ) {\n * ( double * ) ( args [ 0 ] . ptrValue ) = num ;\n }\n input -> str . fPos += parsePos ;\n * argConverted = ! info -> fSkipArg ;\n return parsePos + skipped ;\n }"}
{"idx": 11848, "target": 0, "func": "TSReturnCode TSHttpTxnRedirectRequest ( TSHttpTxn txnp , TSMBuffer bufp , TSMLoc url_loc ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_url_handle ( url_loc ) == TS_SUCCESS ) ;\n URL u , * o_url , * r_url , * client_url ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n HttpTransact : : State * s = & ( sm -> t_state ) ;\n u . m_heap = ( ( HdrHeapSDKHandle * ) bufp ) -> m_heap ;\n u . m_url_impl = ( URLImpl * ) url_loc ;\n if ( ! u . valid ( ) ) {\n return TS_ERROR ;\n }\n client_url = s -> hdr_info . client_request . url_get ( ) ;\n if ( ! ( client_url -> valid ( ) ) ) {\n return TS_ERROR ;\n }\n s -> redirect_info . redirect_in_process = true ;\n o_url = & ( s -> redirect_info . original_url ) ;\n if ( ! o_url -> valid ( ) ) {\n o_url -> create ( nullptr ) ;\n o_url -> copy ( client_url ) ;\n }\n client_url -> copy ( & u ) ;\n r_url = & ( s -> redirect_info . redirect_url ) ;\n if ( ! r_url -> valid ( ) ) {\n r_url -> create ( nullptr ) ;\n }\n r_url -> copy ( & u ) ;\n s -> hdr_info . server_request . destroy ( ) ;\n s -> request_sent_time = 0 ;\n s -> response_received_time = 0 ;\n s -> cache_info . write_lock_state = HttpTransact : : CACHE_WL_INIT ;\n s -> next_action = HttpTransact : : SM_ACTION_REDIRECT_READ ;\n return TS_SUCCESS ;\n }"}
{"idx": 11849, "target": 0, "func": "SRP_VBASE * SRP_VBASE_new ( char * seed_key ) {\n SRP_VBASE * vb = ( SRP_VBASE * ) OPENSSL_malloc ( sizeof ( SRP_VBASE ) ) ;\n if ( vb == NULL ) return NULL ;\n if ( ! ( vb -> users_pwd = sk_SRP_user_pwd_new_null ( ) ) || ! ( vb -> gN_cache = sk_SRP_gN_cache_new_null ( ) ) ) {\n OPENSSL_free ( vb ) ;\n return NULL ;\n }\n vb -> default_g = NULL ;\n vb -> default_N = NULL ;\n vb -> seed_key = NULL ;\n if ( ( seed_key != NULL ) && ( vb -> seed_key = BUF_strdup ( seed_key ) ) == NULL ) {\n sk_SRP_user_pwd_free ( vb -> users_pwd ) ;\n sk_SRP_gN_cache_free ( vb -> gN_cache ) ;\n OPENSSL_free ( vb ) ;\n return NULL ;\n }\n return vb ;\n }"}
{"idx": 11850, "target": 0, "func": "static int ps2_kbd_pre_save ( void * opaque ) {\n PS2KbdState * s = ( PS2KbdState * ) opaque ;\n PS2State * ps2 = & s -> common ;\n ps2_common_post_load ( ps2 ) ;\n return 0 ;\n }"}
{"idx": 11851, "target": 0, "func": "proto_item * proto_tree_add_bitmask_value ( proto_tree * parent_tree , tvbuff_t * tvb , const guint offset , const int hf_hdr , const gint ett , const int * * fields , const guint64 value ) {\n return proto_tree_add_bitmask_value_with_flags ( parent_tree , tvb , offset , hf_hdr , ett , fields , value , BMT_NO_INT | BMT_NO_TFS ) ;\n }"}
{"idx": 11852, "target": 0, "func": "bool op_mergejoinable ( Oid opno , Oid inputtype ) {\n bool result = false ;\n HeapTuple tp ;\n TypeCacheEntry * typentry ;\n if ( opno == ARRAY_EQ_OP ) {\n typentry = lookup_type_cache ( inputtype , TYPECACHE_CMP_PROC ) ;\n if ( typentry -> cmp_proc == F_BTARRAYCMP ) result = true ;\n }\n else if ( opno == RECORD_EQ_OP ) {\n typentry = lookup_type_cache ( inputtype , TYPECACHE_CMP_PROC ) ;\n if ( typentry -> cmp_proc == F_BTRECORDCMP ) result = true ;\n }\n else {\n tp = SearchSysCache1 ( OPEROID , ObjectIdGetDatum ( opno ) ) ;\n if ( HeapTupleIsValid ( tp ) ) {\n Form_pg_operator optup = ( Form_pg_operator ) GETSTRUCT ( tp ) ;\n result = optup -> oprcanmerge ;\n ReleaseSysCache ( tp ) ;\n }\n }\n return result ;\n }"}
{"idx": 11853, "target": 1, "func": "static int rc_pick_q_and_bounds_one_pass_vbr ( const VP9_COMP * cpi , int * bottom_index , int * top_index ) {\n const VP9_COMMON * const cm = & cpi -> common ;\n const RATE_CONTROL * const rc = & cpi -> rc ;\n const VP9EncoderConfig * const oxcf = & cpi -> oxcf ;\n const int cq_level = get_active_cq_level ( rc , oxcf ) ;\n int active_best_quality ;\n int active_worst_quality = calc_active_worst_quality_one_pass_vbr ( cpi ) ;\n int q ;\n if ( frame_is_intra_only ( cm ) ) {\n if ( rc -> this_key_frame_forced ) {\n int qindex = rc -> last_boosted_qindex ;\n double last_boosted_q = vp9_convert_qindex_to_q ( qindex ) ;\n int delta_qindex = vp9_compute_qdelta ( rc , last_boosted_q , last_boosted_q * 0.75 ) ;\n active_best_quality = MAX ( qindex + delta_qindex , rc -> best_quality ) ;\n }\n else {\n double q_adj_factor = 1.0 ;\n double q_val ;\n active_best_quality = get_kf_active_quality ( rc , rc -> avg_frame_qindex [ KEY_FRAME ] ) ;\n if ( ( cm -> width * cm -> height ) <= ( 352 * 288 ) ) {\n q_adj_factor -= 0.25 ;\n }\n q_val = vp9_convert_qindex_to_q ( active_best_quality ) ;\n active_best_quality += vp9_compute_qdelta ( rc , q_val , q_val * q_adj_factor ) ;\n }\n }\n else if ( ! rc -> is_src_frame_alt_ref && ( cpi -> refresh_golden_frame || cpi -> refresh_alt_ref_frame ) ) {\n if ( rc -> frames_since_key > 1 && rc -> avg_frame_qindex [ INTER_FRAME ] < active_worst_quality ) {\n q = rc -> avg_frame_qindex [ INTER_FRAME ] ;\n }\n else {\n q = rc -> avg_frame_qindex [ KEY_FRAME ] ;\n }\n if ( oxcf -> rc_mode == VPX_CQ ) {\n if ( q < cq_level ) q = cq_level ;\n active_best_quality = get_gf_active_quality ( rc , q ) ;\n active_best_quality = active_best_quality * 15 / 16 ;\n }\n else if ( oxcf -> rc_mode == VPX_Q ) {\n if ( ! cpi -> refresh_alt_ref_frame ) {\n active_best_quality = cq_level ;\n }\n else {\n active_best_quality = get_gf_active_quality ( rc , q ) ;\n }\n }\n else {\n active_best_quality = get_gf_active_quality ( rc , q ) ;\n }\n }\n else {\n if ( oxcf -> rc_mode == VPX_Q ) {\n active_best_quality = cq_level ;\n }\n else {\n if ( cm -> current_video_frame > 1 ) active_best_quality = inter_minq [ rc -> avg_frame_qindex [ INTER_FRAME ] ] ;\n else active_best_quality = inter_minq [ rc -> avg_frame_qindex [ KEY_FRAME ] ] ;\n if ( ( oxcf -> rc_mode == VPX_CQ ) && ( active_best_quality < cq_level ) ) {\n active_best_quality = cq_level ;\n }\n }\n }\n active_best_quality = clamp ( active_best_quality , rc -> best_quality , rc -> worst_quality ) ;\n active_worst_quality = clamp ( active_worst_quality , active_best_quality , rc -> worst_quality ) ;\n * top_index = active_worst_quality ;\n * bottom_index = active_best_quality ;\n # if LIMIT_QRANGE_FOR_ALTREF_AND_KEY {\n int qdelta = 0 ;\n vp9_clear_system_state ( ) ;\n if ( cm -> frame_type == KEY_FRAME && ! rc -> this_key_frame_forced && ! ( cm -> current_video_frame == 0 ) ) {\n qdelta = vp9_compute_qdelta_by_rate ( & cpi -> rc , cm -> frame_type , active_worst_quality , 2.0 ) ;\n }\n else if ( ! rc -> is_src_frame_alt_ref && ( cpi -> refresh_golden_frame || cpi -> refresh_alt_ref_frame ) ) {\n qdelta = vp9_compute_qdelta_by_rate ( & cpi -> rc , cm -> frame_type , active_worst_quality , 1.75 ) ;\n }\n * top_index = active_worst_quality + qdelta ;\n * top_index = ( * top_index > * bottom_index ) ? * top_index : * bottom_index ;\n }\n # endif if ( oxcf -> rc_mode == VPX_Q ) {\n q = active_best_quality ;\n }\n else if ( ( cm -> frame_type == KEY_FRAME ) && rc -> this_key_frame_forced ) {\n q = rc -> last_boosted_qindex ;\n }\n else {\n q = vp9_rc_regulate_q ( cpi , rc -> this_frame_target , active_best_quality , active_worst_quality ) ;\n if ( q > * top_index ) {\n if ( rc -> this_frame_target >= rc -> max_frame_bandwidth ) * top_index = q ;\n else q = * top_index ;\n }\n }\n assert ( * top_index <= rc -> worst_quality && * top_index >= rc -> best_quality ) ;\n assert ( * bottom_index <= rc -> worst_quality && * bottom_index >= rc -> best_quality ) ;\n assert ( q <= rc -> worst_quality && q >= rc -> best_quality ) ;\n return q ;\n }"}
{"idx": 11854, "target": 0, "func": "static void ber_update_oids ( void ) {\n guint i ;\n for ( i = 0 ;\n i < num_oid_users ;\n i ++ ) register_ber_oid_syntax ( oid_users [ i ] . oid , oid_users [ i ] . name , oid_users [ i ] . syntax ) ;\n }"}
{"idx": 11855, "target": 0, "func": "int jas_image_encode ( jas_image_t * image , jas_stream_t * out , int fmt , char * optstr ) {\n jas_image_fmtinfo_t * fmtinfo ;\n if ( ! ( fmtinfo = jas_image_lookupfmtbyid ( fmt ) ) ) {\n return - 1 ;\n }\n return ( fmtinfo -> ops . encode ) ? ( * fmtinfo -> ops . encode ) ( image , out , optstr ) : ( - 1 ) ;\n }"}
{"idx": 11856, "target": 0, "func": "TEST_F ( TemplateURLTest , PrefetchQueryParameters ) {\n TemplateURLData data ;\n search_terms_data_ . set_google_base_url ( \"http://bar/\" ) ;\n data . SetURL ( \"http://bar/search?q={\nsearchTerms}\n&{\ngoogle:prefetchQuery}\nxssi=t\" ) ;\n TemplateURL url ( data ) ;\n TemplateURLRef : : SearchTermsArgs search_terms_args ( ASCIIToUTF16 ( \"foo\" ) ) ;\n search_terms_args . prefetch_query = \"full query text\" ;\n search_terms_args . prefetch_query_type = \"2338\" ;\n std : : string result = url . url_ref ( ) . ReplaceSearchTerms ( search_terms_args , search_terms_data_ ) ;\n EXPECT_EQ ( \"http://bar/search?q=foo&pfq=full%20query%20text&qha=2338&xssi=t\" , result ) ;\n TemplateURL url2 ( data ) ;\n search_terms_args . prefetch_query . clear ( ) ;\n search_terms_args . prefetch_query_type . clear ( ) ;\n result = url2 . url_ref ( ) . ReplaceSearchTerms ( search_terms_args , search_terms_data_ ) ;\n EXPECT_EQ ( \"http://bar/search?q=foo&xssi=t\" , result ) ;\n }"}
{"idx": 11857, "target": 0, "func": "static gboolean ascend_seek_read ( wtap * wth , gint64 seek_off , struct wtap_pkthdr * phdr , Buffer * buf , int * err , gchar * * err_info ) {\n ascend_t * ascend = ( ascend_t * ) wth -> priv ;\n if ( file_seek ( wth -> random_fh , seek_off , SEEK_SET , err ) == - 1 ) return FALSE ;\n if ( parse_ascend ( ascend , wth -> random_fh , phdr , buf , wth -> snapshot_length ) != PARSED_RECORD ) {\n * err = WTAP_ERR_BAD_FILE ;\n * err_info = g_strdup ( ( ascend_parse_error != NULL ) ? ascend_parse_error : \"parse error\" ) ;\n return FALSE ;\n }\n return TRUE ;\n }"}
{"idx": 11858, "target": 0, "func": "static uint64_t openpic_summary_read ( void * opaque , hwaddr addr , unsigned size ) {\n uint64_t r = 0 ;\n DPRINTF ( \"%s: addr %#\" HWADDR_PRIx \"\\n\" , __func__ , addr ) ;\n return r ;\n }"}
{"idx": 11859, "target": 1, "func": "static void T_UConverter_toUnicode_UTF32_BE ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n const unsigned char * mySource = ( unsigned char * ) args -> source ;\n UChar * myTarget = args -> target ;\n const unsigned char * sourceLimit = ( unsigned char * ) args -> sourceLimit ;\n const UChar * targetLimit = args -> targetLimit ;\n unsigned char * toUBytes = args -> converter -> toUBytes ;\n uint32_t ch , i ;\n if ( args -> converter -> toUnicodeStatus && myTarget < targetLimit ) {\n i = args -> converter -> toULength ;\n args -> converter -> toULength = 0 ;\n ch = args -> converter -> toUnicodeStatus - 1 ;\n args -> converter -> toUnicodeStatus = 0 ;\n goto morebytes ;\n }\n while ( mySource < sourceLimit && myTarget < targetLimit ) {\n i = 0 ;\n ch = 0 ;\n morebytes : while ( i < sizeof ( uint32_t ) ) {\n if ( mySource < sourceLimit ) {\n ch = ( ch << 8 ) | ( uint8_t ) ( * mySource ) ;\n toUBytes [ i ++ ] = ( char ) * ( mySource ++ ) ;\n }\n else {\n args -> converter -> toUnicodeStatus = ch + 1 ;\n args -> converter -> toULength = ( int8_t ) i ;\n goto donefornow ;\n }\n }\n if ( ch <= MAXIMUM_UTF && ! U_IS_SURROGATE ( ch ) ) {\n if ( ch <= MAXIMUM_UCS2 ) {\n * ( myTarget ++ ) = ( UChar ) ch ;\n }\n else {\n * ( myTarget ++ ) = U16_LEAD ( ch ) ;\n ch = U16_TRAIL ( ch ) ;\n if ( myTarget < targetLimit ) {\n * ( myTarget ++ ) = ( UChar ) ch ;\n }\n else {\n args -> converter -> UCharErrorBuffer [ 0 ] = ( UChar ) ch ;\n args -> converter -> UCharErrorBufferLength = 1 ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n }\n else {\n args -> converter -> toULength = ( int8_t ) i ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n }\n donefornow : if ( mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS ( * err ) ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n args -> target = myTarget ;\n args -> source = ( const char * ) mySource ;\n }"}
{"idx": 11860, "target": 0, "func": "static CURLcode glob_parse ( URLGlob * glob , char * pattern , size_t pos , unsigned long * amount ) {\n CURLcode res = CURLE_OK ;\n int globindex = 0 ;\n * amount = 1 ;\n while ( * pattern && ! res ) {\n char * buf = glob -> glob_buffer ;\n size_t sublen = 0 ;\n while ( * pattern && * pattern != '{\n' ) {\n if ( * pattern == '[' ) {\n size_t skip ;\n if ( peek_ipv6 ( pattern , & skip ) ) {\n memcpy ( buf , pattern , skip ) ;\n buf += skip ;\n pattern += skip ;\n sublen += skip ;\n continue ;\n }\n break ;\n }\n if ( * pattern == '}\n' || * pattern == ']' ) return GLOBERROR ( \"unmatched close brace/bracket\" , pos , CURLE_URL_MALFORMAT ) ;\n if ( * pattern == '\\\\' && ( * ( pattern + 1 ) == '{\n' || * ( pattern + 1 ) == '[' || * ( pattern + 1 ) == '}\n' || * ( pattern + 1 ) == ']' ) ) {\n ++ pattern ;\n ++ pos ;\n }\n * buf ++ = * pattern ++ ;\n ++ pos ;\n sublen ++ ;\n }\n if ( sublen ) {\n * buf = '\\0' ;\n res = glob_fixed ( glob , glob -> glob_buffer , sublen ) ;\n }\n else {\n switch ( * pattern ) {\n case '\\0' : break ;\n case '{\n' : pattern ++ ;\n pos ++ ;\n res = glob_set ( glob , & pattern , & pos , amount , globindex ++ ) ;\n break ;\n case '[' : pattern ++ ;\n pos ++ ;\n res = glob_range ( glob , & pattern , & pos , amount , globindex ++ ) ;\n break ;\n }\n }\n if ( ++ glob -> size >= GLOB_PATTERN_NUM ) return GLOBERROR ( \"too many globs\" , pos , CURLE_URL_MALFORMAT ) ;\n }\n return res ;\n }"}
{"idx": 11861, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , Ignore204Pages ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/page204.html\" ) ) ;\n NavigateToUntrackedUrl ( ) ;\n EXPECT_TRUE ( NoPageLoadMetricsRecorded ( ) ) << \"Recorded metrics: \" << GetRecordedPageLoadMetricNames ( ) ;\n }"}
{"idx": 11862, "target": 0, "func": "void PNGAPI png_set_read_user_chunk_fn ( png_structp png_ptr , png_voidp user_chunk_ptr , png_user_chunk_ptr read_user_chunk_fn ) {\n png_debug ( 1 , \"in png_set_read_user_chunk_fn\" ) ;\n if ( png_ptr == NULL ) return ;\n png_ptr -> read_user_chunk_fn = read_user_chunk_fn ;\n png_ptr -> user_chunk_ptr = user_chunk_ptr ;\n }"}
{"idx": 11863, "target": 0, "func": "int jas_image_writecmpt2 ( jas_image_t * image , int cmptno , jas_image_coord_t x , jas_image_coord_t y , jas_image_coord_t width , jas_image_coord_t height , long * buf ) {\n jas_image_cmpt_t * cmpt ;\n jas_image_coord_t i ;\n jas_image_coord_t j ;\n long v ;\n long * bufptr ;\n if ( cmptno < 0 || cmptno >= image -> numcmpts_ ) goto error ;\n cmpt = image -> cmpts_ [ cmptno ] ;\n if ( x < 0 || x >= cmpt -> width_ || y < 0 || y >= cmpt -> height_ || width < 0 || height < 0 || x + width > cmpt -> width_ || y + height > cmpt -> height_ ) goto error ;\n bufptr = buf ;\n for ( i = 0 ;\n i < height ;\n ++ i ) {\n if ( jas_stream_seek ( cmpt -> stream_ , ( cmpt -> width_ * ( y + i ) + x ) * cmpt -> cps_ , SEEK_SET ) < 0 ) goto error ;\n for ( j = 0 ;\n j < width ;\n ++ j ) {\n v = * bufptr ++ ;\n if ( putint ( cmpt -> stream_ , cmpt -> sgnd_ , cmpt -> prec_ , v ) ) goto error ;\n }\n }\n return 0 ;\n error : return - 1 ;\n }"}
{"idx": 11864, "target": 0, "func": "static int fetch_tempfile ( char * line , void * data ) {\n FILE * fp = data ;\n if ( ! line ) rewind ( fp ) ;\n else if ( fputs ( line , fp ) == EOF || fputc ( '\\n' , fp ) == EOF ) return - 1 ;\n return 0 ;\n }"}
{"idx": 11865, "target": 0, "func": "char * TSMatcherReadIntoBuffer ( char * file_name , int * file_len ) {\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) file_name ) == TS_SUCCESS ) ;\n return readIntoBuffer ( ( char * ) file_name , \"TSMatcher\" , file_len ) ;\n }"}
{"idx": 11866, "target": 0, "func": "void kadmin_purgekeys ( int argc , char * argv [ ] ) {\n kadm5_ret_t retval ;\n int keepkvno = - 1 ;\n char * pname = NULL , * canon = NULL ;\n krb5_principal princ ;\n if ( argc == 4 && strcmp ( argv [ 1 ] , \"-keepkvno\" ) == 0 ) {\n keepkvno = atoi ( argv [ 2 ] ) ;\n pname = argv [ 3 ] ;\n }\n if ( argc == 2 ) {\n pname = argv [ 1 ] ;\n }\n if ( pname == NULL ) {\n fprintf ( stderr , _ ( \"usage: purgekeys [-keepkvno oldest_kvno_to_keep] \" \"principal\\n\" ) ) ;\n return ;\n }\n retval = kadmin_parse_name ( pname , & princ ) ;\n if ( retval ) {\n com_err ( \"purgekeys\" , retval , _ ( \"while parsing principal\" ) ) ;\n return ;\n }\n retval = krb5_unparse_name ( context , princ , & canon ) ;\n if ( retval ) {\n com_err ( \"purgekeys\" , retval , _ ( \"while canonicalizing principal\" ) ) ;\n goto cleanup ;\n }\n retval = kadm5_purgekeys ( handle , princ , keepkvno ) ;\n if ( retval ) {\n com_err ( \"purgekeys\" , retval , _ ( \"while purging keys for principal \\\"%s\\\"\" ) , canon ) ;\n goto cleanup ;\n }\n printf ( _ ( \"Old keys for principal \\\"%s\\\" purged.\\n\" ) , canon ) ;\n cleanup : krb5_free_principal ( context , princ ) ;\n free ( canon ) ;\n return ;\n }"}
{"idx": 11867, "target": 1, "func": "int tls1_final_finish_mac ( SSL * s , const char * str , int slen , unsigned char * out ) {\n unsigned int i ;\n EVP_MD_CTX ctx ;\n unsigned char buf [ 2 * EVP_MAX_MD_SIZE ] ;\n unsigned char * q , buf2 [ 12 ] ;\n int idx ;\n long mask ;\n int err = 0 ;\n const EVP_MD * md ;\n q = buf ;\n if ( s -> s3 -> handshake_buffer ) if ( ! ssl3_digest_cached_records ( s ) ) return 0 ;\n EVP_MD_CTX_init ( & ctx ) ;\n for ( idx = 0 ;\n ssl_get_handshake_digest ( idx , & mask , & md ) ;\n idx ++ ) {\n if ( mask & ssl_get_algorithm2 ( s ) ) {\n int hashsize = EVP_MD_size ( md ) ;\n if ( hashsize < 0 || hashsize > ( int ) ( sizeof buf - ( size_t ) ( q - buf ) ) ) {\n err = 1 ;\n }\n else {\n EVP_MD_CTX_copy_ex ( & ctx , s -> s3 -> handshake_dgst [ idx ] ) ;\n EVP_DigestFinal_ex ( & ctx , q , & i ) ;\n if ( i != ( unsigned int ) hashsize ) err = 1 ;\n q += i ;\n }\n }\n }\n if ( ! tls1_PRF ( ssl_get_algorithm2 ( s ) , str , slen , buf , ( int ) ( q - buf ) , NULL , 0 , NULL , 0 , NULL , 0 , s -> session -> master_key , s -> session -> master_key_length , out , buf2 , sizeof buf2 ) ) err = 1 ;\n EVP_MD_CTX_cleanup ( & ctx ) ;\n if ( err ) return 0 ;\n else return sizeof buf2 ;\n }"}
{"idx": 11868, "target": 0, "func": "static int dissect_nlm4_share ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n return dissect_nlm_share ( tvb , 0 , pinfo , tree , 4 , ( rpc_call_info_value * ) data ) ;\n }"}
{"idx": 11869, "target": 0, "func": "static struct cgroup_process_info * find_info_for_subsystem ( struct cgroup_process_info * info , const char * subsystem ) {\n struct cgroup_process_info * info_ptr ;\n for ( info_ptr = info ;\n info_ptr ;\n info_ptr = info_ptr -> next ) {\n struct cgroup_hierarchy * h = info_ptr -> hierarchy ;\n if ( lxc_string_in_array ( subsystem , ( const char * * ) h -> subsystems ) ) return info_ptr ;\n }\n errno = ENOENT ;\n return NULL ;\n }"}
{"idx": 11870, "target": 0, "func": "struct virtio_net_hdr * vmxnet_tx_pkt_get_vhdr ( struct VmxnetTxPkt * pkt ) {\n assert ( pkt ) ;\n return & pkt -> virt_hdr ;\n }"}
{"idx": 11871, "target": 0, "func": "static int receive_filter ( VirtIONet * n , const uint8_t * buf , int size ) {\n static const uint8_t bcast [ ] = {\n 0xff , 0xff , 0xff , 0xff , 0xff , 0xff }\n ;\n static const uint8_t vlan [ ] = {\n 0x81 , 0x00 }\n ;\n uint8_t * ptr = ( uint8_t * ) buf ;\n int i ;\n if ( n -> promisc ) return 1 ;\n if ( n -> has_vnet_hdr ) {\n ptr += sizeof ( struct virtio_net_hdr ) ;\n }\n if ( ! memcmp ( & ptr [ 12 ] , vlan , sizeof ( vlan ) ) ) {\n int vid = be16_to_cpup ( ( uint16_t * ) ( ptr + 14 ) ) & 0xfff ;\n if ( ! ( n -> vlans [ vid >> 5 ] & ( 1U << ( vid & 0x1f ) ) ) ) return 0 ;\n }\n if ( ptr [ 0 ] & 1 ) {\n if ( ! memcmp ( ptr , bcast , sizeof ( bcast ) ) ) {\n return ! n -> nobcast ;\n }\n else if ( n -> nomulti ) {\n return 0 ;\n }\n else if ( n -> allmulti || n -> mac_table . multi_overflow ) {\n return 1 ;\n }\n for ( i = n -> mac_table . first_multi ;\n i < n -> mac_table . in_use ;\n i ++ ) {\n if ( ! memcmp ( ptr , & n -> mac_table . macs [ i * ETH_ALEN ] , ETH_ALEN ) ) {\n return 1 ;\n }\n }\n }\n else {\n if ( n -> nouni ) {\n return 0 ;\n }\n else if ( n -> alluni || n -> mac_table . uni_overflow ) {\n return 1 ;\n }\n else if ( ! memcmp ( ptr , n -> mac , ETH_ALEN ) ) {\n return 1 ;\n }\n for ( i = 0 ;\n i < n -> mac_table . first_multi ;\n i ++ ) {\n if ( ! memcmp ( ptr , & n -> mac_table . macs [ i * ETH_ALEN ] , ETH_ALEN ) ) {\n return 1 ;\n }\n }\n }\n return 0 ;\n }"}
{"idx": 11872, "target": 0, "func": "static void e1000e_intrmgr_reset ( E1000ECore * core ) {\n int i ;\n core -> delayed_causes = 0 ;\n e1000e_intrmgr_stop_delay_timers ( core ) ;\n e1000e_intrmgr_stop_timer ( & core -> itr ) ;\n for ( i = 0 ;\n i < E1000E_MSIX_VEC_NUM ;\n i ++ ) {\n e1000e_intrmgr_stop_timer ( & core -> eitr [ i ] ) ;\n }\n }"}
{"idx": 11873, "target": 0, "func": "const char * mime_field_value_get ( const MIMEField * field , int * length ) {\n * length = field -> m_len_value ;\n return field -> m_ptr_value ;\n }"}
{"idx": 11874, "target": 0, "func": "static void rgb2cmyk ( fz_context * ctx , fz_color_converter * cc , float * dv , const float * sv ) {\n float c = 1 - sv [ 0 ] ;\n float m = 1 - sv [ 1 ] ;\n float y = 1 - sv [ 2 ] ;\n float k = fz_min ( c , fz_min ( m , y ) ) ;\n dv [ 0 ] = c - k ;\n dv [ 1 ] = m - k ;\n dv [ 2 ] = y - k ;\n dv [ 3 ] = k ;\n }"}
{"idx": 11875, "target": 0, "func": "static struct pbase_tree_cache * pbase_tree_get ( const unsigned char * sha1 ) {\n struct pbase_tree_cache * ent , * nent ;\n void * data ;\n unsigned long size ;\n enum object_type type ;\n int neigh ;\n int my_ix = pbase_tree_cache_ix ( sha1 ) ;\n int available_ix = - 1 ;\n for ( neigh = 0 ;\n neigh < 8 ;\n neigh ++ ) {\n ent = pbase_tree_cache [ my_ix ] ;\n if ( ent && ! hashcmp ( ent -> sha1 , sha1 ) ) {\n ent -> ref ++ ;\n return ent ;\n }\n else if ( ( ( available_ix < 0 ) && ( ! ent || ! ent -> ref ) ) || ( ( 0 <= available_ix ) && ( ! ent && pbase_tree_cache [ available_ix ] ) ) ) available_ix = my_ix ;\n if ( ! ent ) break ;\n my_ix = pbase_tree_cache_ix_incr ( my_ix ) ;\n }\n data = read_sha1_file ( sha1 , & type , & size ) ;\n if ( ! data ) return NULL ;\n if ( type != OBJ_TREE ) {\n free ( data ) ;\n return NULL ;\n }\n if ( available_ix < 0 ) ent = NULL ;\n else {\n ent = pbase_tree_cache [ available_ix ] ;\n my_ix = available_ix ;\n }\n if ( ! ent ) {\n nent = xmalloc ( sizeof ( * nent ) ) ;\n nent -> temporary = ( available_ix < 0 ) ;\n }\n else {\n free ( ent -> tree_data ) ;\n nent = ent ;\n }\n hashcpy ( nent -> sha1 , sha1 ) ;\n nent -> tree_data = data ;\n nent -> tree_size = size ;\n nent -> ref = 1 ;\n if ( ! nent -> temporary ) pbase_tree_cache [ my_ix ] = nent ;\n return nent ;\n }"}
{"idx": 11876, "target": 1, "func": "bool handle_new_meta_connection ( int sock ) {\n connection_t * c ;\n sockaddr_t sa ;\n int fd ;\n socklen_t len = sizeof ( sa ) ;\n fd = accept ( sock , & sa . sa , & len ) ;\n if ( fd < 0 ) {\n logger ( LOG_ERR , \"Accepting a new connection failed: %s\" , sockstrerror ( sockerrno ) ) ;\n return false ;\n }\n sockaddrunmap ( & sa ) ;\n c = new_connection ( ) ;\n c -> name = xstrdup ( \"<unknown>\" ) ;\n c -> outcipher = myself -> connection -> outcipher ;\n c -> outdigest = myself -> connection -> outdigest ;\n c -> outmaclength = myself -> connection -> outmaclength ;\n c -> outcompression = myself -> connection -> outcompression ;\n c -> address = sa ;\n c -> hostname = sockaddr2hostname ( & sa ) ;\n c -> socket = fd ;\n c -> last_ping_time = now ;\n ifdebug ( CONNECTIONS ) logger ( LOG_NOTICE , \"Connection from %s\" , c -> hostname ) ;\n configure_tcp ( c ) ;\n connection_add ( c ) ;\n c -> allow_request = ID ;\n send_id ( c ) ;\n return true ;\n }"}
{"idx": 11877, "target": 0, "func": "struct config_filter_parser * const * config_filter_find_subset ( struct config_filter_context * ctx , const struct config_filter * filter ) {\n ARRAY_TYPE ( config_filter_parsers ) matches ;\n struct config_filter tmp_mask ;\n unsigned int i ;\n t_array_init ( & matches , 8 ) ;\n for ( i = 0 ;\n ctx -> parsers [ i ] != NULL ;\n i ++ ) {\n const struct config_filter * mask = & ctx -> parsers [ i ] -> filter ;\n if ( filter -> service != NULL ) {\n if ( ! config_filter_match_service ( mask , filter ) ) continue ;\n }\n tmp_mask = * mask ;\n if ( filter -> local_name == NULL ) tmp_mask . local_name = NULL ;\n if ( filter -> local_bits == 0 ) tmp_mask . local_bits = 0 ;\n if ( filter -> remote_bits == 0 ) tmp_mask . remote_bits = 0 ;\n if ( config_filter_match_rest ( & tmp_mask , filter ) ) array_append ( & matches , & ctx -> parsers [ i ] , 1 ) ;\n }\n array_sort ( & matches , config_filter_parser_cmp_rev ) ;\n array_append_zero ( & matches ) ;\n return array_idx ( & matches , 0 ) ;\n }"}
{"idx": 11878, "target": 0, "func": "int dissect_h225_GatekeeperIdentifier ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_BMPString ( tvb , offset , actx , tree , hf_index , 1 , 128 , FALSE ) ;\n return offset ;\n }"}
{"idx": 11879, "target": 0, "func": "static int dissect_pcp_message_pmns_child ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , int offset ) {\n proto_item * pcp_pmns_child_item ;\n proto_tree * pcp_pmns_child_tree ;\n guint32 name_len ;\n pcp_pmns_child_item = proto_tree_add_item ( tree , hf_pcp_pmns_child , tvb , offset , - 1 , ENC_NA ) ;\n pcp_pmns_child_tree = proto_item_add_subtree ( pcp_pmns_child_item , ett_pcp ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"[%s]\" , val_to_str ( PCP_PDU_PMNS_CHILD , packettypenames , \"Unknown Type:0x%02x\" ) ) ;\n proto_tree_add_item ( pcp_pmns_child_tree , hf_pcp_pmns_subtype , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( pcp_pmns_child_tree , hf_pcp_pmns_namelen , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n name_len = tvb_get_ntohl ( tvb , offset ) ;\n offset += 4 ;\n proto_tree_add_item ( pcp_pmns_child_tree , hf_pcp_pmns_name , tvb , offset , name_len , ENC_ASCII | ENC_NA ) ;\n offset += 4 ;\n return offset ;\n }"}
{"idx": 11880, "target": 0, "func": "proto_item * proto_tree_add_bytes ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , const guint8 * start_ptr ) {\n proto_item * pi ;\n header_field_info * hfinfo ;\n gint item_length ;\n PROTO_REGISTRAR_GET_NTH ( hfindex , hfinfo ) ;\n get_hfi_length ( hfinfo , tvb , start , & length , & item_length ) ;\n test_length ( hfinfo , tvb , start , item_length ) ;\n CHECK_FOR_NULL_TREE ( tree ) ;\n TRY_TO_FAKE_THIS_ITEM ( tree , hfindex , hfinfo ) ;\n DISSECTOR_ASSERT_FIELD_TYPE ( hfinfo , FT_BYTES ) ;\n pi = proto_tree_add_pi ( tree , hfinfo , tvb , start , & length ) ;\n proto_tree_set_bytes ( PNODE_FINFO ( pi ) , start_ptr , length ) ;\n return pi ;\n }"}
{"idx": 11881, "target": 0, "func": "chunk_t x509_build_subjectAltNames ( linked_list_t * list ) {\n chunk_t subjectAltNames = chunk_empty , name ;\n enumerator_t * enumerator ;\n identification_t * id ;\n if ( list -> get_count ( list ) == 0 ) {\n return chunk_empty ;\n }\n enumerator = list -> create_enumerator ( list ) ;\n while ( enumerator -> enumerate ( enumerator , & id ) ) {\n name = build_generalName ( id ) ;\n subjectAltNames = chunk_cat ( \"mm\" , subjectAltNames , name ) ;\n }\n enumerator -> destroy ( enumerator ) ;\n return asn1_wrap ( ASN1_SEQUENCE , \"mm\" , asn1_build_known_oid ( OID_SUBJECT_ALT_NAME ) , asn1_wrap ( ASN1_OCTET_STRING , \"m\" , asn1_wrap ( ASN1_SEQUENCE , \"m\" , subjectAltNames ) ) ) ;\n }"}
{"idx": 11882, "target": 0, "func": "static int parse_guid ( tvbuff_t * tvb , int offset , proto_tree * tree , e_guid_t * guid , const char * text ) {\n const char * guid_str , * name , * bytes ;\n proto_tree * tr ;\n tvb_get_letohguid ( tvb , offset , guid ) ;\n guid_str = guid_to_str ( wmem_packet_scope ( ) , guid ) ;\n name = guids_get_guid_name ( guid ) ;\n tr = proto_tree_add_subtree_format ( tree , tvb , offset , 16 , ett_GUID , NULL , \"%s: %s {\n%s}\n\" , text , name ? name : \"\" , guid_str ) ;\n proto_tree_add_item ( tr , hf_mswsp_guid_time_low , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tr , hf_mswsp_guid_time_mid , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tr , hf_mswsp_guid_time_high , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tr , hf_mswsp_guid_time_clock_hi , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 1 ;\n proto_tree_add_item ( tr , hf_mswsp_guid_time_clock_low , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 1 ;\n bytes = bytestring_to_str ( wmem_packet_scope ( ) , & guid -> data4 [ 2 ] , 6 , ':' ) ;\n proto_tree_add_string ( tr , hf_mswsp_guid_node , tvb , offset , 6 , bytes ) ;\n offset += 6 ;\n return offset ;\n }"}
{"idx": 11883, "target": 0, "func": "static void mpeg_decode_quant_matrix_extension ( MpegEncContext * s ) {\n av_dlog ( s -> avctx , \"matrix extension\\n\" ) ;\n if ( get_bits1 ( & s -> gb ) ) load_matrix ( s , s -> chroma_intra_matrix , s -> intra_matrix , 1 ) ;\n if ( get_bits1 ( & s -> gb ) ) load_matrix ( s , s -> chroma_inter_matrix , s -> inter_matrix , 0 ) ;\n if ( get_bits1 ( & s -> gb ) ) load_matrix ( s , s -> chroma_intra_matrix , NULL , 1 ) ;\n if ( get_bits1 ( & s -> gb ) ) load_matrix ( s , s -> chroma_inter_matrix , NULL , 0 ) ;\n }"}
{"idx": 11884, "target": 0, "func": "static void pchip_write ( void * opaque , hwaddr addr , uint64_t v32 , unsigned size ) {\n TyphoonState * s = opaque ;\n uint64_t val , oldval ;\n if ( addr & 4 ) {\n val = v32 << 32 | s -> latch_tmp ;\n addr ^= 4 ;\n }\n else {\n s -> latch_tmp = v32 ;\n return ;\n }\n switch ( addr ) {\n case 0x0000 : s -> pchip . win [ 0 ] . base_addr = val ;\n break ;\n case 0x0040 : s -> pchip . win [ 1 ] . base_addr = val ;\n break ;\n case 0x0080 : s -> pchip . win [ 2 ] . base_addr = val ;\n break ;\n case 0x00c0 : s -> pchip . win [ 3 ] . base_addr = val ;\n break ;\n case 0x0100 : s -> pchip . win [ 0 ] . mask = val ;\n break ;\n case 0x0140 : s -> pchip . win [ 1 ] . mask = val ;\n break ;\n case 0x0180 : s -> pchip . win [ 2 ] . mask = val ;\n break ;\n case 0x01c0 : s -> pchip . win [ 3 ] . mask = val ;\n break ;\n case 0x0200 : s -> pchip . win [ 0 ] . translated_base_pfn = val >> 10 ;\n break ;\n case 0x0240 : s -> pchip . win [ 1 ] . translated_base_pfn = val >> 10 ;\n break ;\n case 0x0280 : s -> pchip . win [ 2 ] . translated_base_pfn = val >> 10 ;\n break ;\n case 0x02c0 : s -> pchip . win [ 3 ] . translated_base_pfn = val >> 10 ;\n break ;\n case 0x0300 : oldval = s -> pchip . ctl ;\n oldval &= ~ 0x00001cff0fc7ffull ;\n oldval |= val & 0x00001cff0fc7ffull ;\n s -> pchip . ctl = oldval ;\n break ;\n case 0x0340 : break ;\n case 0x03c0 : break ;\n case 0x0400 : break ;\n case 0x0440 : break ;\n case 0x0480 : break ;\n case 0x04c0 : break ;\n case 0x0500 : case 0x0540 : case 0x0800 : break ;\n default : cpu_unassigned_access ( current_cpu , addr , true , false , 0 , size ) ;\n return ;\n }\n }"}
{"idx": 11885, "target": 0, "func": "SPL_METHOD ( SplDoublyLinkedList , bottom ) {\n zval * value ;\n spl_dllist_object * intern ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"\" ) == FAILURE ) {\n return ;\n }\n intern = ( spl_dllist_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n value = ( zval * ) spl_ptr_llist_first ( intern -> llist ) ;\n if ( value == NULL ) {\n zend_throw_exception ( spl_ce_RuntimeException , \"Can't peek at an empty datastructure\" , 0 TSRMLS_CC ) ;\n return ;\n }\n RETURN_ZVAL ( value , 1 , 0 ) ;\n }"}
{"idx": 11886, "target": 0, "func": "static int SpoolssFCPN_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 11887, "target": 0, "func": "MIMEField * mime_field_create_named ( HdrHeap * heap , MIMEHdrImpl * mh , const char * name , int length ) {\n MIMEField * field = mime_field_create ( heap , mh ) ;\n int field_name_wks_idx = hdrtoken_tokenize ( name , length ) ;\n mime_field_name_set ( heap , mh , field , field_name_wks_idx , name , length , true ) ;\n return field ;\n }"}
{"idx": 11888, "target": 0, "func": "static void PPC_io_writeb ( target_phys_addr_t addr , uint32_t value ) {\n # if 0 if ( ( addr < 0x800003F0 || addr > 0x80000400 ) && ( addr < 0x80000074 || addr > 0x80000077 ) && ( addr < 0x80000020 || addr > 0x80000021 ) && ( addr < 0x800000a0 || addr > 0x800000a1 ) && ( addr < 0x800001f0 || addr > 0x800001f7 ) && ( addr < 0x80000170 || addr > 0x80000177 ) ) # endif {\n PPC_IO_DPRINTF ( \"0x%08x => 0x%02x\\n\" , addr - PPC_IO_BASE , value ) ;\n }\n cpu_outb ( NULL , addr - PPC_IO_BASE , value ) ;\n }"}
{"idx": 11889, "target": 0, "func": "static PyObject * _error ( char * name ) {\n PyObject * error ;\n PyObject * errors = PyImport_ImportModule ( \"bson.errors\" ) ;\n if ( ! errors ) {\n return NULL ;\n }\n error = PyObject_GetAttrString ( errors , name ) ;\n Py_DECREF ( errors ) ;\n return error ;\n }"}
{"idx": 11890, "target": 0, "func": "SPL_METHOD ( SplDoublyLinkedList , offsetSet ) {\n zval * zindex , * value ;\n spl_dllist_object * intern ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"zz\" , & zindex , & value ) == FAILURE ) {\n return ;\n }\n SEPARATE_ARG_IF_REF ( value ) ;\n intern = ( spl_dllist_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( Z_TYPE_P ( zindex ) == IS_NULL ) {\n spl_ptr_llist_push ( intern -> llist , value TSRMLS_CC ) ;\n }\n else {\n long index ;\n spl_ptr_llist_element * element ;\n index = spl_offset_convert_to_long ( zindex TSRMLS_CC ) ;\n if ( index < 0 || index >= intern -> llist -> count ) {\n zval_ptr_dtor ( & value ) ;\n zend_throw_exception ( spl_ce_OutOfRangeException , \"Offset invalid or out of range\" , 0 TSRMLS_CC ) ;\n return ;\n }\n element = spl_ptr_llist_offset ( intern -> llist , index , intern -> flags & SPL_DLLIST_IT_LIFO ) ;\n if ( element != NULL ) {\n if ( intern -> llist -> dtor ) {\n intern -> llist -> dtor ( element TSRMLS_CC ) ;\n }\n zval_ptr_dtor ( ( zval * * ) & element -> data ) ;\n element -> data = value ;\n if ( intern -> llist -> ctor ) {\n intern -> llist -> ctor ( element TSRMLS_CC ) ;\n }\n }\n else {\n zval_ptr_dtor ( & value ) ;\n zend_throw_exception ( spl_ce_OutOfRangeException , \"Offset invalid\" , 0 TSRMLS_CC ) ;\n return ;\n }\n }\n }"}
{"idx": 11891, "target": 0, "func": "static int dissect_h245_CapabilityDescriptorNumber ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 255U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 11892, "target": 0, "func": "static int dissect_h245_INTEGER_1_1130 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 1130U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 11893, "target": 0, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED )"}
{"idx": 11894, "target": 0, "func": "static int vp3_init_thread_copy ( AVCodecContext * avctx ) {\n Vp3DecodeContext * s = avctx -> priv_data ;\n s -> superblock_coding = NULL ;\n s -> all_fragments = NULL ;\n s -> coded_fragment_list [ 0 ] = NULL ;\n s -> dct_tokens_base = NULL ;\n s -> superblock_fragments = NULL ;\n s -> macroblock_coding = NULL ;\n s -> motion_val [ 0 ] = NULL ;\n s -> motion_val [ 1 ] = NULL ;\n s -> edge_emu_buffer = NULL ;\n return init_frames ( s ) ;\n }"}
{"idx": 11895, "target": 0, "func": "static int get_object_list_from_bitmap ( struct rev_info * revs ) {\n if ( prepare_bitmap_walk ( revs ) < 0 ) return - 1 ;\n if ( pack_options_allow_reuse ( ) && ! reuse_partial_packfile_from_bitmap ( & reuse_packfile , & reuse_packfile_objects , & reuse_packfile_offset ) ) {\n assert ( reuse_packfile_objects ) ;\n nr_result += reuse_packfile_objects ;\n display_progress ( progress_state , nr_result ) ;\n }\n traverse_bitmap_commit_list ( & add_object_entry_from_bitmap ) ;\n return 0 ;\n }"}
{"idx": 11896, "target": 0, "func": "static int pxa2xx_pwrmode_write ( CPUARMState * env , const ARMCPRegInfo * ri , uint64_t value ) {\n PXA2xxState * s = ( PXA2xxState * ) ri -> opaque ;\n static const char * pwrmode [ 8 ] = {\n \"Normal\" , \"Idle\" , \"Deep-idle\" , \"Standby\" , \"Sleep\" , \"reserved (!)\" , \"reserved (!)\" , \"Deep-sleep\" , }\n ;\n if ( value & 8 ) {\n printf ( \"%s: CPU voltage change attempt\\n\" , __func__ ) ;\n }\n switch ( value & 7 ) {\n case 0 : break ;\n case 1 : if ( ! ( s -> cm_regs [ CCCR >> 2 ] & ( 1 << 31 ) ) ) {\n cpu_interrupt ( CPU ( s -> cpu ) , CPU_INTERRUPT_HALT ) ;\n break ;\n }\n case 2 : cpu_interrupt ( CPU ( s -> cpu ) , CPU_INTERRUPT_HALT ) ;\n s -> pm_regs [ RCSR >> 2 ] |= 0x8 ;\n goto message ;\n case 3 : s -> cpu -> env . uncached_cpsr = ARM_CPU_MODE_SVC | CPSR_A | CPSR_F | CPSR_I ;\n s -> cpu -> env . cp15 . c1_sys = 0 ;\n s -> cpu -> env . cp15 . c1_coproc = 0 ;\n s -> cpu -> env . cp15 . c2_base0 = 0 ;\n s -> cpu -> env . cp15 . c3 = 0 ;\n s -> pm_regs [ PSSR >> 2 ] |= 0x8 ;\n s -> pm_regs [ RCSR >> 2 ] |= 0x8 ;\n memset ( s -> cpu -> env . regs , 0 , 4 * 15 ) ;\n s -> cpu -> env . regs [ 15 ] = s -> pm_regs [ PSPR >> 2 ] ;\n # if 0 buffer = 0xe59ff000 ;\n cpu_physical_memory_write ( 0 , & buffer , 4 ) ;\n buffer = s -> pm_regs [ PSPR >> 2 ] ;\n cpu_physical_memory_write ( 8 , & buffer , 4 ) ;\n # endif cpu_interrupt ( current_cpu , CPU_INTERRUPT_HALT ) ;\n goto message ;\n default : message : printf ( \"%s: machine entered %s mode\\n\" , __func__ , pwrmode [ value & 7 ] ) ;\n }\n return 0 ;\n }"}
{"idx": 11897, "target": 0, "func": "static inline u32 file_to_av ( struct file * file ) {\n u32 av = 0 ;\n if ( file -> f_mode & FMODE_READ ) av |= FILE__READ ;\n if ( file -> f_mode & FMODE_WRITE ) {\n if ( file -> f_flags & O_APPEND ) av |= FILE__APPEND ;\n else av |= FILE__WRITE ;\n }\n if ( ! av ) {\n av = FILE__IOCTL ;\n }\n return av ;\n }"}
{"idx": 11898, "target": 0, "func": "static int virLogVersionString ( const char * * rawmsg , char * * msg ) {\n * rawmsg = VIR_LOG_VERSION_STRING ;\n return virLogFormatString ( msg , 0 , NULL , VIR_LOG_INFO , VIR_LOG_VERSION_STRING ) ;\n }"}
{"idx": 11899, "target": 0, "func": "void alloc_limit_assert ( char * fn_name , size_t size ) {\n if ( alloc_limit && size > alloc_limit ) {\n alloc_limit_failure ( fn_name , size ) ;\n exit ( - 1 ) ;\n }\n }"}
{"idx": 11900, "target": 0, "func": "static __inline__ int TLV_LIST_CHECK ( struct tlv_list_desc * list , __u16 exp_type ) {\n return TLV_CHECK ( list -> tlv_ptr , list -> tlv_space , exp_type ) ;\n }"}
{"idx": 11901, "target": 0, "func": "TEST_F ( ProcessUtilTest , SpawnChild ) {\n base : : Process process = SpawnChild ( \"SimpleChildProcess\" ) ;\n ASSERT_TRUE ( process . IsValid ( ) ) ;\n EXPECT_TRUE ( base : : WaitForSingleProcess ( process . Handle ( ) , TestTimeouts : : action_max_timeout ( ) ) ) ;\n }"}
{"idx": 11902, "target": 0, "func": "static inline int get_context ( PlaneContext * p , int16_t * src , int16_t * last , int16_t * last2 ) {\n const int LT = last [ - 1 ] ;\n const int T = last [ 0 ] ;\n const int RT = last [ 1 ] ;\n const int L = src [ - 1 ] ;\n if ( p -> quant_table [ 3 ] [ 127 ] ) {\n const int TT = last2 [ 0 ] ;\n const int LL = src [ - 2 ] ;\n return p -> quant_table [ 0 ] [ ( L - LT ) & 0xFF ] + p -> quant_table [ 1 ] [ ( LT - T ) & 0xFF ] + p -> quant_table [ 2 ] [ ( T - RT ) & 0xFF ] + p -> quant_table [ 3 ] [ ( LL - L ) & 0xFF ] + p -> quant_table [ 4 ] [ ( TT - T ) & 0xFF ] ;\n }\n else return p -> quant_table [ 0 ] [ ( L - LT ) & 0xFF ] + p -> quant_table [ 1 ] [ ( LT - T ) & 0xFF ] + p -> quant_table [ 2 ] [ ( T - RT ) & 0xFF ] ;\n }"}
{"idx": 11903, "target": 0, "func": "static int test_appheader ( xd3_stream * stream , int ignore ) {\n int i ;\n int ret ;\n char buf [ TESTBUFSIZE ] ;\n char bogus [ TESTBUFSIZE ] ;\n xoff_t ssize , tsize ;\n test_setup ( ) ;\n if ( ( ret = test_make_inputs ( stream , & ssize , & tsize ) ) ) {\n return ret ;\n }\n snprintf_func ( buf , TESTBUFSIZE , \"%s -q -f -e -s %s %s %s\" , program_name , TEST_SOURCE_FILE , TEST_TARGET_FILE , TEST_DELTA_FILE ) ;\n if ( ( ret = do_cmd ( stream , buf ) ) ) {\n return ret ;\n }\n if ( ( ret = test_copy_to ( program_name , TEST_RECON2_FILE ) ) ) {\n return ret ;\n }\n snprintf_func ( buf , TESTBUFSIZE , \"chmod 0700 %s\" , TEST_RECON2_FILE ) ;\n if ( ( ret = do_cmd ( stream , buf ) ) ) {\n return ret ;\n }\n if ( ( ret = test_save_copy ( TEST_TARGET_FILE ) ) ) {\n return ret ;\n }\n if ( ( ret = test_copy_to ( TEST_SOURCE_FILE , TEST_TARGET_FILE ) ) ) {\n return ret ;\n }\n if ( ( ret = test_compare_files ( TEST_TARGET_FILE , TEST_COPY_FILE ) ) == 0 ) {\n return XD3_INVALID ;\n }\n snprintf_func ( buf , TESTBUFSIZE , \"(cd /tmp && %s -q -f -d %s)\" , TEST_RECON2_FILE , TEST_DELTA_FILE ) ;\n if ( ( ret = do_cmd ( stream , buf ) ) ) {\n return ret ;\n }\n if ( ( ret = test_compare_files ( TEST_TARGET_FILE , TEST_COPY_FILE ) ) != 0 ) {\n return ret ;\n }\n for ( i = 0 ;\n i < TESTBUFSIZE / 4 ;\n ++ i ) {\n bogus [ 2 * i ] = 'G' ;\n bogus [ 2 * i + 1 ] = '/' ;\n }\n bogus [ TESTBUFSIZE / 2 - 1 ] = 0 ;\n snprintf_func ( buf , TESTBUFSIZE , \"%s -q -f -A=%s -e -s %s %s %s\" , program_name , bogus , TEST_SOURCE_FILE , TEST_TARGET_FILE , TEST_DELTA_FILE ) ;\n if ( ( ret = do_cmd ( stream , buf ) ) ) {\n return ret ;\n }\n snprintf_func ( buf , TESTBUFSIZE , \"(cd /tmp && %s -q -f -d %s)\" , TEST_RECON2_FILE , TEST_DELTA_FILE ) ;\n if ( ( ret = do_cmd ( stream , buf ) ) == 0 ) {\n return XD3_INVALID ;\n }\n if ( ! WIFEXITED ( ret ) ) {\n return XD3_INVALID ;\n }\n return 0 ;\n }"}
{"idx": 11904, "target": 0, "func": "proto_item * proto_tree_add_oid ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , const guint8 * value_ptr ) {\n proto_item * pi ;\n header_field_info * hfinfo ;\n CHECK_FOR_NULL_TREE ( tree ) ;\n TRY_TO_FAKE_THIS_ITEM ( tree , hfindex , hfinfo ) ;\n DISSECTOR_ASSERT_FIELD_TYPE ( hfinfo , FT_OID ) ;\n pi = proto_tree_add_pi ( tree , hfinfo , tvb , start , & length ) ;\n proto_tree_set_oid ( PNODE_FINFO ( pi ) , value_ptr , length ) ;\n return pi ;\n }"}
{"idx": 11905, "target": 1, "func": "int ff_mpeg4_decode_video_packet_header ( MpegEncContext * s ) {\n int mb_num_bits = av_log2 ( s -> mb_num - 1 ) + 1 ;\n int header_extension = 0 , mb_num , len ;\n if ( get_bits_count ( & s -> gb ) > s -> gb . size_in_bits - 20 ) return - 1 ;\n for ( len = 0 ;\n len < 32 ;\n len ++ ) {\n if ( get_bits1 ( & s -> gb ) ) break ;\n }\n if ( len != ff_mpeg4_get_video_packet_prefix_length ( s ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"marker does not match f_code\\n\" ) ;\n return - 1 ;\n }\n if ( s -> shape != RECT_SHAPE ) {\n header_extension = get_bits1 ( & s -> gb ) ;\n }\n mb_num = get_bits ( & s -> gb , mb_num_bits ) ;\n if ( mb_num >= s -> mb_num ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"illegal mb_num in video packet (%d %d) \\n\" , mb_num , s -> mb_num ) ;\n return - 1 ;\n }\n if ( s -> pict_type == AV_PICTURE_TYPE_B ) {\n int mb_x = 0 , mb_y = 0 ;\n while ( s -> next_picture . f . mbskip_table [ s -> mb_index2xy [ mb_num ] ] ) {\n if ( ! mb_x ) ff_thread_await_progress ( & s -> next_picture_ptr -> f , mb_y ++ , 0 ) ;\n mb_num ++ ;\n if ( ++ mb_x == s -> mb_width ) mb_x = 0 ;\n }\n if ( mb_num >= s -> mb_num ) return - 1 ;\n }\n s -> mb_x = mb_num % s -> mb_width ;\n s -> mb_y = mb_num / s -> mb_width ;\n if ( s -> shape != BIN_ONLY_SHAPE ) {\n int qscale = get_bits ( & s -> gb , s -> quant_precision ) ;\n if ( qscale ) s -> chroma_qscale = s -> qscale = qscale ;\n }\n if ( s -> shape == RECT_SHAPE ) {\n header_extension = get_bits1 ( & s -> gb ) ;\n }\n if ( header_extension ) {\n int time_incr = 0 ;\n while ( get_bits1 ( & s -> gb ) != 0 ) time_incr ++ ;\n check_marker ( & s -> gb , \"before time_increment in video packed header\" ) ;\n skip_bits ( & s -> gb , s -> time_increment_bits ) ;\n check_marker ( & s -> gb , \"before vop_coding_type in video packed header\" ) ;\n skip_bits ( & s -> gb , 2 ) ;\n if ( s -> shape != BIN_ONLY_SHAPE ) {\n skip_bits ( & s -> gb , 3 ) ;\n if ( s -> pict_type == AV_PICTURE_TYPE_S && s -> vol_sprite_usage == GMC_SPRITE ) {\n mpeg4_decode_sprite_trajectory ( s , & s -> gb ) ;\n av_log ( s -> avctx , AV_LOG_ERROR , \"untested\\n\" ) ;\n }\n if ( s -> pict_type != AV_PICTURE_TYPE_I ) {\n int f_code = get_bits ( & s -> gb , 3 ) ;\n if ( f_code == 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Error, video packet header damaged (f_code=0)\\n\" ) ;\n }\n }\n if ( s -> pict_type == AV_PICTURE_TYPE_B ) {\n int b_code = get_bits ( & s -> gb , 3 ) ;\n if ( b_code == 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Error, video packet header damaged (b_code=0)\\n\" ) ;\n }\n }\n }\n }\n return 0 ;\n }"}
{"idx": 11906, "target": 0, "func": "static int dissect_h225_TunnelledProtocol_id ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_TunnelledProtocol_id , TunnelledProtocol_id_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 11907, "target": 1, "func": "static void initial_reordering_non_indic_cluster ( const hb_ot_shape_plan_t * plan HB_UNUSED , hb_face_t * face HB_UNUSED , hb_buffer_t * buffer HB_UNUSED , unsigned int start HB_UNUSED , unsigned int end HB_UNUSED ) {\n }"}
{"idx": 11908, "target": 1, "func": "vpx_codec_err_t vpx_svc_encode ( SvcContext * svc_ctx , vpx_codec_ctx_t * codec_ctx , struct vpx_image * rawimg , vpx_codec_pts_t pts , int64_t duration , int deadline ) {\n vpx_codec_err_t res ;\n vpx_codec_iter_t iter ;\n const vpx_codec_cx_pkt_t * cx_pkt ;\n int layer_for_psnr = 0 ;\n SvcInternal * const si = get_svc_internal ( svc_ctx ) ;\n if ( svc_ctx == NULL || codec_ctx == NULL || si == NULL ) {\n return VPX_CODEC_INVALID_PARAM ;\n }\n svc_log_reset ( svc_ctx ) ;\n si -> rc_stats_buf_used = 0 ;\n si -> layers = svc_ctx -> spatial_layers ;\n if ( si -> encode_frame_count == 0 ) {\n si -> frame_within_gop = 0 ;\n }\n si -> is_keyframe = ( si -> frame_within_gop == 0 ) ;\n if ( rawimg != NULL ) {\n svc_log ( svc_ctx , SVC_LOG_DEBUG , \"vpx_svc_encode layers: %d, frame_count: %d, \" \"frame_within_gop: %d\\n\" , si -> layers , si -> encode_frame_count , si -> frame_within_gop ) ;\n }\n if ( rawimg != NULL ) {\n for ( si -> layer = 0 ;\n si -> layer < si -> layers ;\n ++ si -> layer ) {\n set_svc_parameters ( svc_ctx , codec_ctx ) ;\n }\n }\n res = vpx_codec_encode ( codec_ctx , rawimg , pts , ( uint32_t ) duration , 0 , deadline ) ;\n if ( res != VPX_CODEC_OK ) {\n return res ;\n }\n iter = NULL ;\n while ( ( cx_pkt = vpx_codec_get_cx_data ( codec_ctx , & iter ) ) ) {\n switch ( cx_pkt -> kind ) {\n case VPX_CODEC_CX_FRAME_PKT : {\n fd_list_add ( & si -> frame_list , fd_create ( cx_pkt -> data . frame . buf , cx_pkt -> data . frame . sz , cx_pkt -> data . frame . flags ) ) ;\n svc_log ( svc_ctx , SVC_LOG_DEBUG , \"SVC frame: %d, kf: %d, size: %d, \" \"pts: %d\\n\" , si -> frame_received , ( cx_pkt -> data . frame . flags & VPX_FRAME_IS_KEY ) ? 1 : 0 , ( int ) cx_pkt -> data . frame . sz , ( int ) cx_pkt -> data . frame . pts ) ;\n ++ si -> frame_received ;\n layer_for_psnr = 0 ;\n break ;\n }\n case VPX_CODEC_PSNR_PKT : {\n int i ;\n svc_log ( svc_ctx , SVC_LOG_DEBUG , \"SVC frame: %d, layer: %d, PSNR(Total/Y/U/V): \" \"%2.3f %2.3f %2.3f %2.3f \\n\" , si -> frame_received , layer_for_psnr , cx_pkt -> data . psnr . psnr [ 0 ] , cx_pkt -> data . psnr . psnr [ 1 ] , cx_pkt -> data . psnr . psnr [ 2 ] , cx_pkt -> data . psnr . psnr [ 3 ] ) ;\n svc_log ( svc_ctx , SVC_LOG_DEBUG , \"SVC frame: %d, layer: %d, SSE(Total/Y/U/V): \" \"%2.3f %2.3f %2.3f %2.3f \\n\" , si -> frame_received , layer_for_psnr , cx_pkt -> data . psnr . sse [ 0 ] , cx_pkt -> data . psnr . sse [ 1 ] , cx_pkt -> data . psnr . sse [ 2 ] , cx_pkt -> data . psnr . sse [ 3 ] ) ;\n for ( i = 0 ;\n i < COMPONENTS ;\n i ++ ) {\n si -> psnr_sum [ layer_for_psnr ] [ i ] += cx_pkt -> data . psnr . psnr [ i ] ;\n si -> sse_sum [ layer_for_psnr ] [ i ] += cx_pkt -> data . psnr . sse [ i ] ;\n }\n ++ layer_for_psnr ;\n break ;\n }\n case VPX_CODEC_STATS_PKT : {\n size_t new_size = si -> rc_stats_buf_used + cx_pkt -> data . twopass_stats . sz ;\n if ( new_size > si -> rc_stats_buf_size ) {\n char * p = ( char * ) realloc ( si -> rc_stats_buf , new_size ) ;\n if ( p == NULL ) {\n svc_log ( svc_ctx , SVC_LOG_ERROR , \"Error allocating stats buf\\n\" ) ;\n return VPX_CODEC_MEM_ERROR ;\n }\n si -> rc_stats_buf = p ;\n si -> rc_stats_buf_size = new_size ;\n }\n memcpy ( si -> rc_stats_buf + si -> rc_stats_buf_used , cx_pkt -> data . twopass_stats . buf , cx_pkt -> data . twopass_stats . sz ) ;\n si -> rc_stats_buf_used += cx_pkt -> data . twopass_stats . sz ;\n break ;\n }\n # if CONFIG_SPATIAL_SVC case VPX_CODEC_SPATIAL_SVC_LAYER_SIZES : {\n int i ;\n for ( i = 0 ;\n i < si -> layers ;\n ++ i ) si -> bytes_sum [ i ] += cx_pkt -> data . layer_sizes [ i ] ;\n break ;\n }\n # endif default : {\n break ;\n }\n }\n }\n if ( rawimg != NULL ) {\n ++ si -> frame_within_gop ;\n ++ si -> encode_frame_count ;\n }\n return VPX_CODEC_OK ;\n }"}
{"idx": 11909, "target": 0, "func": "proto_item * proto_tree_add_item_ret_int ( proto_tree * tree , int hfindex , tvbuff_t * tvb , const gint start , gint length , const guint encoding , gint32 * retval ) {\n header_field_info * hfinfo = proto_registrar_get_nth ( hfindex ) ;\n field_info * new_fi ;\n gint32 value ;\n DISSECTOR_ASSERT_HINT ( hfinfo != NULL , \"Not passed hfi!\" ) ;\n switch ( hfinfo -> type ) {\n case FT_INT8 : case FT_INT16 : case FT_INT24 : case FT_INT32 : break ;\n default : DISSECTOR_ASSERT_NOT_REACHED ( ) ;\n }\n if ( length < - 1 || length == 0 ) REPORT_DISSECTOR_BUG ( wmem_strdup_printf ( wmem_packet_scope ( ) , \"Invalid length %d passed to proto_tree_add_item_ret_int\" , length ) ) ;\n if ( encoding & ENC_STRING ) {\n REPORT_DISSECTOR_BUG ( \"wrong encoding\" ) ;\n }\n value = get_int_value ( tree , tvb , start , length , encoding ) ;\n if ( retval ) * retval = value ;\n CHECK_FOR_NULL_TREE ( tree ) ;\n TRY_TO_FAKE_THIS_ITEM ( tree , hfinfo -> id , hfinfo ) ;\n new_fi = new_field_info ( tree , hfinfo , tvb , start , length ) ;\n proto_tree_set_int ( new_fi , value ) ;\n new_fi -> flags |= ( encoding & ENC_LITTLE_ENDIAN ) ? FI_LITTLE_ENDIAN : FI_BIG_ENDIAN ;\n return proto_tree_add_node ( tree , new_fi ) ;\n }"}
{"idx": 11910, "target": 0, "func": "static void pcnet_poll_timer ( void * opaque ) {\n PCNetState * s = opaque ;\n timer_del ( s -> poll_timer ) ;\n if ( CSR_TDMD ( s ) ) {\n pcnet_transmit ( s ) ;\n }\n pcnet_update_irq ( s ) ;\n if ( ! CSR_STOP ( s ) && ! CSR_SPND ( s ) && ! CSR_DPOLL ( s ) ) {\n uint64_t now = qemu_clock_get_ns ( QEMU_CLOCK_VIRTUAL ) * 33 ;\n if ( ! s -> timer || ! now ) {\n s -> timer = now ;\n }\n else {\n uint64_t t = now - s -> timer + CSR_POLL ( s ) ;\n if ( t > 0xffffLL ) {\n pcnet_poll ( s ) ;\n CSR_POLL ( s ) = CSR_PINT ( s ) ;\n }\n else {\n CSR_POLL ( s ) = t ;\n }\n }\n timer_mod ( s -> poll_timer , pcnet_get_next_poll_time ( s , qemu_clock_get_ns ( QEMU_CLOCK_VIRTUAL ) ) ) ;\n }\n }"}
{"idx": 11911, "target": 0, "func": "int test_sqrt ( BIO * bp , BN_CTX * ctx ) {\n BN_GENCB cb ;\n BIGNUM * a , * p , * r ;\n int i , j ;\n int ret = 0 ;\n a = BN_new ( ) ;\n p = BN_new ( ) ;\n r = BN_new ( ) ;\n if ( a == NULL || p == NULL || r == NULL ) goto err ;\n BN_GENCB_set ( & cb , genprime_cb , NULL ) ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n if ( i < 8 ) {\n unsigned primes [ 8 ] = {\n 2 , 3 , 5 , 7 , 11 , 13 , 17 , 19 }\n ;\n if ( ! BN_set_word ( p , primes [ i ] ) ) goto err ;\n }\n else {\n if ( ! BN_set_word ( a , 32 ) ) goto err ;\n if ( ! BN_set_word ( r , 2 * i + 1 ) ) goto err ;\n if ( ! BN_generate_prime_ex ( p , 256 , 0 , a , r , & cb ) ) goto err ;\n putc ( '\\n' , stderr ) ;\n }\n p -> neg = rand_neg ( ) ;\n for ( j = 0 ;\n j < num2 ;\n j ++ ) {\n if ( ! BN_bntest_rand ( r , 256 , 0 , 3 ) ) goto err ;\n if ( ! BN_nnmod ( r , r , p , ctx ) ) goto err ;\n if ( ! BN_mod_sqr ( r , r , p , ctx ) ) goto err ;\n if ( ! BN_bntest_rand ( a , 256 , 0 , 3 ) ) goto err ;\n if ( ! BN_nnmod ( a , a , p , ctx ) ) goto err ;\n if ( ! BN_mod_sqr ( a , a , p , ctx ) ) goto err ;\n if ( ! BN_mul ( a , a , r , ctx ) ) goto err ;\n if ( rand_neg ( ) ) if ( ! BN_sub ( a , a , p ) ) goto err ;\n if ( ! BN_mod_sqrt ( r , a , p , ctx ) ) goto err ;\n if ( ! BN_mod_sqr ( r , r , p , ctx ) ) goto err ;\n if ( ! BN_nnmod ( a , a , p , ctx ) ) goto err ;\n if ( BN_cmp ( a , r ) != 0 ) {\n fprintf ( stderr , \"BN_mod_sqrt failed: a = \" ) ;\n BN_print_fp ( stderr , a ) ;\n fprintf ( stderr , \", r = \" ) ;\n BN_print_fp ( stderr , r ) ;\n fprintf ( stderr , \", p = \" ) ;\n BN_print_fp ( stderr , p ) ;\n fprintf ( stderr , \"\\n\" ) ;\n goto err ;\n }\n putc ( '.' , stderr ) ;\n fflush ( stderr ) ;\n }\n putc ( '\\n' , stderr ) ;\n fflush ( stderr ) ;\n }\n ret = 1 ;\n err : if ( a != NULL ) BN_free ( a ) ;\n if ( p != NULL ) BN_free ( p ) ;\n if ( r != NULL ) BN_free ( r ) ;\n return ret ;\n }"}
{"idx": 11912, "target": 0, "func": "static int do_dsa_print ( BIO * bp , const DSA * x , int off , int ptype ) {\n unsigned char * m = NULL ;\n int ret = 0 ;\n size_t buf_len = 0 ;\n const char * ktype = NULL ;\n const BIGNUM * priv_key , * pub_key ;\n if ( ptype == 2 ) priv_key = x -> priv_key ;\n else priv_key = NULL ;\n if ( ptype > 0 ) pub_key = x -> pub_key ;\n else pub_key = NULL ;\n if ( ptype == 2 ) ktype = \"Private-Key\" ;\n else if ( ptype == 1 ) ktype = \"Public-Key\" ;\n else ktype = \"DSA-Parameters\" ;\n update_buflen ( x -> p , & buf_len ) ;\n update_buflen ( x -> q , & buf_len ) ;\n update_buflen ( x -> g , & buf_len ) ;\n update_buflen ( priv_key , & buf_len ) ;\n update_buflen ( pub_key , & buf_len ) ;\n m = OPENSSL_malloc ( buf_len + 10 ) ;\n if ( m == NULL ) {\n DSAerr ( DSA_F_DO_DSA_PRINT , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n if ( priv_key ) {\n if ( ! BIO_indent ( bp , off , 128 ) ) goto err ;\n if ( BIO_printf ( bp , \"%s: (%d bit)\\n\" , ktype , BN_num_bits ( x -> p ) ) <= 0 ) goto err ;\n }\n if ( ! ASN1_bn_print ( bp , \"priv:\" , priv_key , m , off ) ) goto err ;\n if ( ! ASN1_bn_print ( bp , \"pub: \" , pub_key , m , off ) ) goto err ;\n if ( ! ASN1_bn_print ( bp , \"P: \" , x -> p , m , off ) ) goto err ;\n if ( ! ASN1_bn_print ( bp , \"Q: \" , x -> q , m , off ) ) goto err ;\n if ( ! ASN1_bn_print ( bp , \"G: \" , x -> g , m , off ) ) goto err ;\n ret = 1 ;\n err : OPENSSL_free ( m ) ;\n return ( ret ) ;\n }"}
{"idx": 11913, "target": 0, "func": "void handle_command_error ( struct st_command * command , uint error , int sys_errno ) {\n DBUG_ENTER ( \"handle_command_error\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"error: %d\" , error ) ) ;\n var_set_int ( \"$sys_errno\" , sys_errno ) ;\n var_set_int ( \"$errno\" , error ) ;\n if ( error != 0 ) {\n int i ;\n if ( command -> abort_on_error ) {\n report_or_die ( \"command \\\"%.*s\\\" failed with error: %u my_errno: %d \" \"errno: %d\" , command -> first_word_len , command -> query , error , my_errno , sys_errno ) ;\n DBUG_VOID_RETURN ;\n }\n i = match_expected_error ( command , error , NULL ) ;\n if ( i >= 0 ) {\n DBUG_PRINT ( \"info\" , ( \"command \\\"%.*s\\\" failed with expected error: %u, errno: %d\" , command -> first_word_len , command -> query , error , sys_errno ) ) ;\n revert_properties ( ) ;\n DBUG_VOID_RETURN ;\n }\n if ( command -> expected_errors . count > 0 ) report_or_die ( \"command \\\"%.*s\\\" failed with wrong error: %u \" \"my_errno: %d errno: %d\" , command -> first_word_len , command -> query , error , my_errno , sys_errno ) ;\n }\n else if ( command -> expected_errors . err [ 0 ] . type == ERR_ERRNO && command -> expected_errors . err [ 0 ] . code . errnum != 0 ) {\n report_or_die ( \"command \\\"%.*s\\\" succeeded - should have failed with \" \"errno %d...\" , command -> first_word_len , command -> query , command -> expected_errors . err [ 0 ] . code . errnum ) ;\n }\n revert_properties ( ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 11914, "target": 0, "func": "static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 11915, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( ClientHintsBrowserTest , ClientHintsNoLifetimeCookiesNotAllowed ) {\n base : : HistogramTester histogram_tester ;\n ContentSettingsForOneType host_settings ;\n scoped_refptr < content_settings : : CookieSettings > cookie_settings_ = CookieSettingsFactory : : GetForProfile ( browser ( ) -> profile ( ) ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> GetSettingsForOneType ( CONTENT_SETTINGS_TYPE_CLIENT_HINTS , std : : string ( ) , & host_settings ) ;\n EXPECT_EQ ( 0u , host_settings . size ( ) ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> SetContentSettingDefaultScope ( accept_ch_without_lifetime_img_localhost ( ) , GURL ( ) , CONTENT_SETTINGS_TYPE_COOKIES , std : : string ( ) , CONTENT_SETTING_BLOCK ) ;\n base : : RunLoop ( ) . RunUntilIdle ( ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , accept_ch_without_lifetime_img_localhost ( ) ) ;\n EXPECT_EQ ( 0u , count_client_hints_headers_seen ( ) ) ;\n EXPECT_EQ ( 0u , third_party_client_hints_count_seen ( ) ) ;\n cookie_settings_ -> SetCookieSetting ( accept_ch_without_lifetime_img_localhost ( ) , CONTENT_SETTING_ALLOW ) ;\n base : : RunLoop ( ) . RunUntilIdle ( ) ;\n SetClientHintExpectationsOnSubresources ( true ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , accept_ch_without_lifetime_img_localhost ( ) ) ;\n EXPECT_EQ ( 3u , count_client_hints_headers_seen ( ) ) ;\n EXPECT_EQ ( 2u , third_party_request_count_seen ( ) ) ;\n EXPECT_EQ ( 0u , third_party_client_hints_count_seen ( ) ) ;\n SetClientHintExpectationsOnSubresources ( false ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> SetContentSettingDefaultScope ( accept_ch_without_lifetime_img_localhost ( ) , GURL ( ) , CONTENT_SETTINGS_TYPE_COOKIES , std : : string ( ) , CONTENT_SETTING_BLOCK ) ;\n base : : RunLoop ( ) . RunUntilIdle ( ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , accept_ch_without_lifetime_img_localhost ( ) ) ;\n EXPECT_EQ ( 3u , count_client_hints_headers_seen ( ) ) ;\n EXPECT_EQ ( 3u , third_party_request_count_seen ( ) ) ;\n EXPECT_EQ ( 0u , third_party_client_hints_count_seen ( ) ) ;\n }"}
{"idx": 11916, "target": 0, "func": "int TSStatCreate ( const char * the_name , TSRecordDataType the_type , TSStatPersistence persist , TSStatSync sync ) {\n int id = ink_atomic_increment ( & api_rsb_index , 1 ) ;\n RecRawStatSyncCb syncer = RecRawStatSyncCount ;\n if ( ( sdk_sanity_check_null_ptr ( ( void * ) the_name ) != TS_SUCCESS ) || ( sdk_sanity_check_null_ptr ( ( void * ) api_rsb ) != TS_SUCCESS ) || ( id >= api_rsb -> max_stats ) ) {\n return TS_ERROR ;\n }\n switch ( sync ) {\n case TS_STAT_SYNC_SUM : syncer = RecRawStatSyncSum ;\n break ;\n case TS_STAT_SYNC_AVG : syncer = RecRawStatSyncAvg ;\n break ;\n case TS_STAT_SYNC_TIMEAVG : syncer = RecRawStatSyncHrTimeAvg ;\n break ;\n default : syncer = RecRawStatSyncCount ;\n break ;\n }\n switch ( persist ) {\n case TS_STAT_PERSISTENT : RecRegisterRawStat ( api_rsb , RECT_PLUGIN , the_name , ( RecDataT ) the_type , RECP_PERSISTENT , id , syncer ) ;\n break ;\n case TS_STAT_NON_PERSISTENT : RecRegisterRawStat ( api_rsb , RECT_PLUGIN , the_name , ( RecDataT ) the_type , RECP_NON_PERSISTENT , id , syncer ) ;\n break ;\n default : return TS_ERROR ;\n }\n return id ;\n }"}
{"idx": 11917, "target": 0, "func": "static int mspack_fmap_seek ( struct mspack_file * file , off_t offset , int mode ) {\n struct mspack_handle * mspack_handle = ( struct mspack_handle * ) file ;\n if ( ! mspack_handle ) {\n cli_dbgmsg ( \"%s() err %d\\n\" , __func__ , __LINE__ ) ;\n return - 1 ;\n }\n if ( mspack_handle -> type == FILETYPE_FMAP ) {\n off_t new_pos ;\n switch ( mode ) {\n case MSPACK_SYS_SEEK_START : new_pos = offset ;\n break ;\n case MSPACK_SYS_SEEK_CUR : new_pos = mspack_handle -> offset + offset ;\n break ;\n case MSPACK_SYS_SEEK_END : new_pos = mspack_handle -> fmap -> len + offset ;\n break ;\n default : cli_dbgmsg ( \"%s() err %d\\n\" , __func__ , __LINE__ ) ;\n return - 1 ;\n }\n if ( new_pos < 0 || new_pos > mspack_handle -> fmap -> len ) {\n cli_dbgmsg ( \"%s() err %d\\n\" , __func__ , __LINE__ ) ;\n return - 1 ;\n }\n mspack_handle -> offset = new_pos ;\n return 0 ;\n }\n switch ( mode ) {\n case MSPACK_SYS_SEEK_START : mode = SEEK_SET ;\n break ;\n case MSPACK_SYS_SEEK_CUR : mode = SEEK_CUR ;\n break ;\n case MSPACK_SYS_SEEK_END : mode = SEEK_END ;\n break ;\n default : cli_dbgmsg ( \"%s() err %d\\n\" , __func__ , __LINE__ ) ;\n return - 1 ;\n }\n return fseek ( mspack_handle -> f , offset , mode ) ;\n }"}
{"idx": 11918, "target": 0, "func": "static long dprintf_DollarString ( char * input , char * * end ) {\n int number = 0 ;\n while ( ISDIGIT ( * input ) ) {\n number *= 10 ;\n number += * input - '0' ;\n input ++ ;\n }\n if ( number && ( '$' == * input ++ ) ) {\n * end = input ;\n return number ;\n }\n return 0 ;\n }"}
{"idx": 11919, "target": 1, "func": "static int read_inter_segment_id ( VP9_COMMON * const cm , MACROBLOCKD * const xd , int mi_row , int mi_col , vp9_reader * r ) {\n struct segmentation * const seg = & cm -> seg ;\n MB_MODE_INFO * const mbmi = & xd -> mi [ 0 ] -> mbmi ;\n const BLOCK_SIZE bsize = mbmi -> sb_type ;\n int predicted_segment_id , segment_id ;\n if ( ! seg -> enabled ) return 0 ;\n predicted_segment_id = vp9_get_segment_id ( cm , cm -> last_frame_seg_map , bsize , mi_row , mi_col ) ;\n if ( ! seg -> update_map ) return predicted_segment_id ;\n if ( seg -> temporal_update ) {\n const vp9_prob pred_prob = vp9_get_pred_prob_seg_id ( seg , xd ) ;\n mbmi -> seg_id_predicted = vp9_read ( r , pred_prob ) ;\n segment_id = mbmi -> seg_id_predicted ? predicted_segment_id : read_segment_id ( r , seg ) ;\n }\n else {\n segment_id = read_segment_id ( r , seg ) ;\n }\n set_segment_id ( cm , bsize , mi_row , mi_col , segment_id ) ;\n return segment_id ;\n }"}
{"idx": 11920, "target": 0, "func": "void h245_set_h223_set_mc_handle ( h223_set_mc_handle_t handle ) {\n h223_set_mc_handle = handle ;\n }"}
{"idx": 11921, "target": 0, "func": "static void load_tree ( struct tree_entry * root ) {\n unsigned char * sha1 = root -> versions [ 1 ] . sha1 ;\n struct object_entry * myoe ;\n struct tree_content * t ;\n unsigned long size ;\n char * buf ;\n const char * c ;\n root -> tree = t = new_tree_content ( 8 ) ;\n if ( is_null_sha1 ( sha1 ) ) return ;\n myoe = find_object ( sha1 ) ;\n if ( myoe && myoe -> pack_id != MAX_PACK_ID ) {\n if ( myoe -> type != OBJ_TREE ) die ( \"Not a tree: %s\" , sha1_to_hex ( sha1 ) ) ;\n t -> delta_depth = myoe -> depth ;\n buf = gfi_unpack_entry ( myoe , & size ) ;\n if ( ! buf ) die ( \"Can't load tree %s\" , sha1_to_hex ( sha1 ) ) ;\n }\n else {\n enum object_type type ;\n buf = read_sha1_file ( sha1 , & type , & size ) ;\n if ( ! buf || type != OBJ_TREE ) die ( \"Can't load tree %s\" , sha1_to_hex ( sha1 ) ) ;\n }\n c = buf ;\n while ( c != ( buf + size ) ) {\n struct tree_entry * e = new_tree_entry ( ) ;\n if ( t -> entry_count == t -> entry_capacity ) root -> tree = t = grow_tree_content ( t , t -> entry_count ) ;\n t -> entries [ t -> entry_count ++ ] = e ;\n e -> tree = NULL ;\n c = get_mode ( c , & e -> versions [ 1 ] . mode ) ;\n if ( ! c ) die ( \"Corrupt mode in %s\" , sha1_to_hex ( sha1 ) ) ;\n e -> versions [ 0 ] . mode = e -> versions [ 1 ] . mode ;\n e -> name = to_atom ( c , strlen ( c ) ) ;\n c += e -> name -> str_len + 1 ;\n hashcpy ( e -> versions [ 0 ] . sha1 , ( unsigned char * ) c ) ;\n hashcpy ( e -> versions [ 1 ] . sha1 , ( unsigned char * ) c ) ;\n c += 20 ;\n }\n free ( buf ) ;\n }"}
{"idx": 11922, "target": 0, "func": "rfbBool rfbProcessFileTransfer ( rfbClientPtr cl , uint8_t contentType , uint8_t contentParam , uint32_t size , uint32_t length ) {\n char * buffer = NULL , * p = NULL ;\n int retval = 0 ;\n char filename1 [ MAX_PATH ] ;\n char filename2 [ MAX_PATH ] ;\n char szFileTime [ MAX_PATH ] ;\n struct stat statbuf ;\n uint32_t sizeHtmp = 0 ;\n int n = 0 ;\n char timespec [ 64 ] ;\n # ifdef LIBVNCSERVER_HAVE_LIBZ unsigned char compBuff [ sz_rfbBlockSize ] ;\n unsigned long nRawBytes = sz_rfbBlockSize ;\n int nRet = 0 ;\n # endif FILEXFER_ALLOWED_OR_CLOSE_AND_RETURN ( \"\" , cl , FALSE ) ;\n switch ( contentType ) {\n case rfbDirContentRequest : switch ( contentParam ) {\n case rfbRDrivesList : filename2 [ 0 ] = 'C' ;\n filename2 [ 1 ] = ':' ;\n filename2 [ 2 ] = 'l' ;\n filename2 [ 3 ] = 0 ;\n filename2 [ 4 ] = 0 ;\n retval = rfbSendFileTransferMessage ( cl , rfbDirPacket , rfbADrivesList , 0 , 5 , filename2 ) ;\n if ( buffer != NULL ) free ( buffer ) ;\n return retval ;\n break ;\n case rfbRDirContent : if ( ( buffer = rfbProcessFileTransferReadBuffer ( cl , length ) ) == NULL ) return FALSE ;\n retval = rfbSendDirContent ( cl , length , buffer ) ;\n if ( buffer != NULL ) free ( buffer ) ;\n return retval ;\n }\n break ;\n case rfbDirPacket : rfbLog ( \"rfbProcessFileTransfer() rfbDirPacket\\n\" ) ;\n break ;\n case rfbFileAcceptHeader : rfbLog ( \"rfbProcessFileTransfer() rfbFileAcceptHeader\\n\" ) ;\n break ;\n case rfbCommandReturn : rfbLog ( \"rfbProcessFileTransfer() rfbCommandReturn\\n\" ) ;\n break ;\n case rfbFileChecksums : rfbLog ( \"rfbProcessFileTransfer() rfbFileChecksums\\n\" ) ;\n break ;\n case rfbFileTransferAccess : rfbLog ( \"rfbProcessFileTransfer() rfbFileTransferAccess\\n\" ) ;\n break ;\n case rfbFileTransferRequest : if ( ( buffer = rfbProcessFileTransferReadBuffer ( cl , length ) ) == NULL ) return FALSE ;\n if ( ! rfbFilenameTranslate2UNIX ( cl , buffer , filename1 , sizeof ( filename1 ) ) ) goto fail ;\n cl -> fileTransfer . fd = open ( filename1 , O_RDONLY , 0744 ) ;\n if ( DB ) rfbLog ( \"rfbProcessFileTransfer() rfbFileTransferRequest(\\\"%s\\\"->\\\"%s\\\") Open: %s fd=%d\\n\" , buffer , filename1 , ( cl -> fileTransfer . fd == - 1 ? \"Failed\" : \"Success\" ) , cl -> fileTransfer . fd ) ;\n if ( cl -> fileTransfer . fd != - 1 ) {\n if ( fstat ( cl -> fileTransfer . fd , & statbuf ) != 0 ) {\n close ( cl -> fileTransfer . fd ) ;\n cl -> fileTransfer . fd = - 1 ;\n }\n else {\n strftime ( timespec , sizeof ( timespec ) , \"%m/%d/%Y %H:%M\" , gmtime ( & statbuf . st_ctime ) ) ;\n buffer = realloc ( buffer , length + strlen ( timespec ) + 2 ) ;\n if ( buffer == NULL ) {\n rfbLog ( \"rfbProcessFileTransfer() rfbFileTransferRequest: Failed to malloc %d bytes\\n\" , length + strlen ( timespec ) + 2 ) ;\n return FALSE ;\n }\n strcat ( buffer , \",\" ) ;\n strcat ( buffer , timespec ) ;\n length = strlen ( buffer ) ;\n if ( DB ) rfbLog ( \"rfbProcessFileTransfer() buffer is now: \\\"%s\\\"\\n\" , buffer ) ;\n }\n }\n cl -> fileTransfer . compressionEnabled = ( size == 1 ) ;\n retval = rfbSendFileTransferMessage ( cl , rfbFileHeader , 0 , ( cl -> fileTransfer . fd == - 1 ? - 1 : statbuf . st_size ) , length , buffer ) ;\n if ( cl -> fileTransfer . fd == - 1 ) {\n if ( buffer != NULL ) free ( buffer ) ;\n return retval ;\n }\n cl -> fileTransfer . fileSize = statbuf . st_size ;\n cl -> fileTransfer . numPackets = statbuf . st_size / sz_rfbBlockSize ;\n cl -> fileTransfer . receiving = 0 ;\n cl -> fileTransfer . sending = 0 ;\n sizeHtmp = 0 ;\n LOCK ( cl -> sendMutex ) ;\n if ( rfbWriteExact ( cl , ( char * ) & sizeHtmp , 4 ) < 0 ) {\n rfbLogPerror ( \"rfbProcessFileTransfer: write\" ) ;\n rfbCloseClient ( cl ) ;\n UNLOCK ( cl -> sendMutex ) ;\n if ( buffer != NULL ) free ( buffer ) ;\n return FALSE ;\n }\n UNLOCK ( cl -> sendMutex ) ;\n break ;\n case rfbFileHeader : if ( size == - 1 ) {\n rfbLog ( \"rfbProcessFileTransfer() rfbFileHeader (error, aborting)\\n\" ) ;\n close ( cl -> fileTransfer . fd ) ;\n cl -> fileTransfer . fd = - 1 ;\n return TRUE ;\n }\n cl -> fileTransfer . sending = 1 ;\n return rfbSendFileTransferChunk ( cl ) ;\n break ;\n case rfbFileTransferOffer : if ( ( buffer = rfbProcessFileTransferReadBuffer ( cl , length ) ) == NULL ) return FALSE ;\n p = strrchr ( buffer , ',' ) ;\n if ( p != NULL ) {\n * p = '\\0' ;\n strncpy ( szFileTime , p + 1 , sizeof ( szFileTime ) ) ;\n szFileTime [ sizeof ( szFileTime ) - 1 ] = '\\x00' ;\n }\n else szFileTime [ 0 ] = 0 ;\n if ( ( n = rfbReadExact ( cl , ( char * ) & sizeHtmp , 4 ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessFileTransfer: read sizeHtmp\" ) ;\n rfbCloseClient ( cl ) ;\n if ( buffer != NULL ) free ( buffer ) ;\n return FALSE ;\n }\n sizeHtmp = Swap32IfLE ( sizeHtmp ) ;\n if ( ! rfbFilenameTranslate2UNIX ( cl , buffer , filename1 , sizeof ( filename1 ) ) ) goto fail ;\n cl -> fileTransfer . fd = open ( filename1 , O_CREAT | O_WRONLY | O_TRUNC , 0744 ) ;\n if ( DB ) rfbLog ( \"rfbProcessFileTransfer() rfbFileTransferOffer(\\\"%s\\\"->\\\"%s\\\") %s %s fd=%d\\n\" , buffer , filename1 , ( cl -> fileTransfer . fd == - 1 ? \"Failed\" : \"Success\" ) , ( cl -> fileTransfer . fd == - 1 ? strerror ( errno ) : \"\" ) , cl -> fileTransfer . fd ) ;\n retval = rfbSendFileTransferMessage ( cl , rfbFileAcceptHeader , 0 , ( cl -> fileTransfer . fd == - 1 ? - 1 : 0 ) , length , buffer ) ;\n if ( cl -> fileTransfer . fd == - 1 ) {\n free ( buffer ) ;\n return retval ;\n }\n cl -> fileTransfer . fileSize = size ;\n cl -> fileTransfer . numPackets = size / sz_rfbBlockSize ;\n cl -> fileTransfer . receiving = 1 ;\n cl -> fileTransfer . sending = 0 ;\n break ;\n case rfbFilePacket : if ( ( buffer = rfbProcessFileTransferReadBuffer ( cl , length ) ) == NULL ) return FALSE ;\n if ( cl -> fileTransfer . fd != - 1 ) {\n if ( size == 0 ) retval = write ( cl -> fileTransfer . fd , buffer , length ) ;\n else {\n # ifdef LIBVNCSERVER_HAVE_LIBZ nRet = uncompress ( compBuff , & nRawBytes , ( const unsigned char * ) buffer , length ) ;\n if ( nRet == Z_OK ) retval = write ( cl -> fileTransfer . fd , ( char * ) compBuff , nRawBytes ) ;\n else retval = - 1 ;\n # else retval = write ( cl -> fileTransfer . fd , buffer , length ) ;\n # endif }\n if ( retval == - 1 ) {\n close ( cl -> fileTransfer . fd ) ;\n cl -> fileTransfer . fd = - 1 ;\n cl -> fileTransfer . sending = 0 ;\n cl -> fileTransfer . receiving = 0 ;\n }\n }\n break ;\n case rfbEndOfFile : if ( DB ) rfbLog ( \"rfbProcessFileTransfer() rfbEndOfFile\\n\" ) ;\n if ( cl -> fileTransfer . fd != - 1 ) close ( cl -> fileTransfer . fd ) ;\n cl -> fileTransfer . fd = - 1 ;\n cl -> fileTransfer . sending = 0 ;\n cl -> fileTransfer . receiving = 0 ;\n break ;\n case rfbAbortFileTransfer : if ( DB ) rfbLog ( \"rfbProcessFileTransfer() rfbAbortFileTransfer\\n\" ) ;\n if ( cl -> fileTransfer . fd != - 1 ) {\n close ( cl -> fileTransfer . fd ) ;\n cl -> fileTransfer . fd = - 1 ;\n cl -> fileTransfer . sending = 0 ;\n cl -> fileTransfer . receiving = 0 ;\n }\n else {\n if ( contentParam == 0 ) {\n rfbLog ( \"rfbProcessFileTransfer() File Transfer Permission DENIED! (Client Version <=RC18)\\n\" ) ;\n return rfbSendFileTransferMessage ( cl , rfbAbortFileTransfer , 0 , - 1 , 0 , \"\" ) ;\n }\n if ( cl -> screen -> getFileTransferPermission != NULL ) {\n if ( cl -> screen -> getFileTransferPermission ( cl ) == TRUE ) {\n rfbLog ( \"rfbProcessFileTransfer() File Transfer Permission Granted!\\n\" ) ;\n return rfbSendFileTransferMessage ( cl , rfbFileTransferAccess , 0 , 1 , 0 , \"\" ) ;\n }\n else {\n rfbLog ( \"rfbProcessFileTransfer() File Transfer Permission DENIED!\\n\" ) ;\n return rfbSendFileTransferMessage ( cl , rfbFileTransferAccess , 0 , - 1 , 0 , \"\" ) ;\n }\n }\n else {\n if ( cl -> screen -> permitFileTransfer ) {\n rfbLog ( \"rfbProcessFileTransfer() File Transfer Permission Granted!\\n\" ) ;\n return rfbSendFileTransferMessage ( cl , rfbFileTransferAccess , 0 , 1 , 0 , \"\" ) ;\n }\n else {\n rfbLog ( \"rfbProcessFileTransfer() File Transfer Permission DENIED by default!\\n\" ) ;\n return rfbSendFileTransferMessage ( cl , rfbFileTransferAccess , 0 , - 1 , 0 , \"\" ) ;\n }\n }\n }\n break ;\n case rfbCommand : if ( ( buffer = rfbProcessFileTransferReadBuffer ( cl , length ) ) == NULL ) return FALSE ;\n switch ( contentParam ) {\n case rfbCDirCreate : if ( ! rfbFilenameTranslate2UNIX ( cl , buffer , filename1 , sizeof ( filename1 ) ) ) goto fail ;\n retval = mkdir ( filename1 , 0755 ) ;\n if ( DB ) rfbLog ( \"rfbProcessFileTransfer() rfbCommand: rfbCDirCreate(\\\"%s\\\"->\\\"%s\\\") %s\\n\" , buffer , filename1 , ( retval == - 1 ? \"Failed\" : \"Success\" ) ) ;\n retval = rfbSendFileTransferMessage ( cl , rfbCommandReturn , rfbADirCreate , retval , length , buffer ) ;\n if ( buffer != NULL ) free ( buffer ) ;\n return retval ;\n case rfbCFileDelete : if ( ! rfbFilenameTranslate2UNIX ( cl , buffer , filename1 , sizeof ( filename1 ) ) ) goto fail ;\n if ( stat ( filename1 , & statbuf ) == 0 ) {\n if ( S_ISDIR ( statbuf . st_mode ) ) retval = rmdir ( filename1 ) ;\n else retval = unlink ( filename1 ) ;\n }\n else retval = - 1 ;\n retval = rfbSendFileTransferMessage ( cl , rfbCommandReturn , rfbAFileDelete , retval , length , buffer ) ;\n if ( buffer != NULL ) free ( buffer ) ;\n return retval ;\n case rfbCFileRename : p = strrchr ( buffer , '*' ) ;\n if ( p != NULL ) {\n * p = '\\0' ;\n if ( ! rfbFilenameTranslate2UNIX ( cl , buffer , filename1 , sizeof ( filename1 ) ) ) goto fail ;\n if ( ! rfbFilenameTranslate2UNIX ( cl , p + 1 , filename2 , sizeof ( filename2 ) ) ) goto fail ;\n retval = rename ( filename1 , filename2 ) ;\n if ( DB ) rfbLog ( \"rfbProcessFileTransfer() rfbCommand: rfbCFileRename(\\\"%s\\\"->\\\"%s\\\" -->> \\\"%s\\\"->\\\"%s\\\") %s\\n\" , buffer , filename1 , p + 1 , filename2 , ( retval == - 1 ? \"Failed\" : \"Success\" ) ) ;\n * p = '*' ;\n retval = rfbSendFileTransferMessage ( cl , rfbCommandReturn , rfbAFileRename , retval , length , buffer ) ;\n if ( buffer != NULL ) free ( buffer ) ;\n return retval ;\n }\n break ;\n }\n break ;\n }\n if ( buffer != NULL ) free ( buffer ) ;\n return TRUE ;\n fail : if ( buffer != NULL ) free ( buffer ) ;\n return FALSE ;\n }"}
{"idx": 11923, "target": 0, "func": "static void fill_mode_costs ( VP9_COMP * cpi ) {\n const FRAME_CONTEXT * const fc = & cpi -> common . fc ;\n int i , j ;\n for ( i = 0 ;\n i < INTRA_MODES ;\n ++ i ) for ( j = 0 ;\n j < INTRA_MODES ;\n ++ j ) vp9_cost_tokens ( cpi -> y_mode_costs [ i ] [ j ] , vp9_kf_y_mode_prob [ i ] [ j ] , vp9_intra_mode_tree ) ;\n vp9_cost_tokens ( cpi -> mbmode_cost , fc -> y_mode_prob [ 1 ] , vp9_intra_mode_tree ) ;\n vp9_cost_tokens ( cpi -> intra_uv_mode_cost [ KEY_FRAME ] , vp9_kf_uv_mode_prob [ TM_PRED ] , vp9_intra_mode_tree ) ;\n vp9_cost_tokens ( cpi -> intra_uv_mode_cost [ INTER_FRAME ] , fc -> uv_mode_prob [ TM_PRED ] , vp9_intra_mode_tree ) ;\n for ( i = 0 ;\n i < SWITCHABLE_FILTER_CONTEXTS ;\n ++ i ) vp9_cost_tokens ( cpi -> switchable_interp_costs [ i ] , fc -> switchable_interp_prob [ i ] , vp9_switchable_interp_tree ) ;\n }"}
{"idx": 11924, "target": 0, "func": "int xmlListPushFront ( xmlListPtr l , void * data ) {\n xmlLinkPtr lkPlace , lkNew ;\n if ( l == NULL ) return ( 0 ) ;\n lkPlace = l -> sentinel ;\n lkNew = ( xmlLinkPtr ) xmlMalloc ( sizeof ( xmlLink ) ) ;\n if ( lkNew == NULL ) {\n xmlGenericError ( xmlGenericErrorContext , \"Cannot initialize memory for new link\" ) ;\n return ( 0 ) ;\n }\n lkNew -> data = data ;\n lkNew -> next = lkPlace -> next ;\n ( lkPlace -> next ) -> prev = lkNew ;\n lkPlace -> next = lkNew ;\n lkNew -> prev = lkPlace ;\n return 1 ;\n }"}
{"idx": 11925, "target": 0, "func": "void vp9_comp_avg_pred ( uint8_t * comp_pred , const uint8_t * pred , int width , int height , const uint8_t * ref , int ref_stride ) {\n int i , j ;\n for ( i = 0 ;\n i < height ;\n i ++ ) {\n for ( j = 0 ;\n j < width ;\n j ++ ) {\n const int tmp = pred [ j ] + ref [ j ] ;\n comp_pred [ j ] = ROUND_POWER_OF_TWO ( tmp , 1 ) ;\n }\n comp_pred += width ;\n pred += width ;\n ref += ref_stride ;\n }\n }"}
{"idx": 11926, "target": 0, "func": "inline void SetDeviceCapabilityState ( GLenum cap , bool enable ) {\n switch ( cap ) {\n case GL_BLEND : if ( enable_flags . cached_blend == enable && ! ignore_cached_state ) return ;\n enable_flags . cached_blend = enable ;\n break ;\n case GL_CULL_FACE : if ( enable_flags . cached_cull_face == enable && ! ignore_cached_state ) return ;\n enable_flags . cached_cull_face = enable ;\n break ;\n case GL_DEPTH_TEST : if ( enable_flags . cached_depth_test == enable && ! ignore_cached_state ) return ;\n enable_flags . cached_depth_test = enable ;\n break ;\n case GL_DITHER : if ( enable_flags . cached_dither == enable && ! ignore_cached_state ) return ;\n enable_flags . cached_dither = enable ;\n break ;\n case GL_POLYGON_OFFSET_FILL : if ( enable_flags . cached_polygon_offset_fill == enable && ! ignore_cached_state ) return ;\n enable_flags . cached_polygon_offset_fill = enable ;\n break ;\n case GL_SAMPLE_ALPHA_TO_COVERAGE : if ( enable_flags . cached_sample_alpha_to_coverage == enable && ! ignore_cached_state ) return ;\n enable_flags . cached_sample_alpha_to_coverage = enable ;\n break ;\n case GL_SAMPLE_COVERAGE : if ( enable_flags . cached_sample_coverage == enable && ! ignore_cached_state ) return ;\n enable_flags . cached_sample_coverage = enable ;\n break ;\n case GL_SCISSOR_TEST : if ( enable_flags . cached_scissor_test == enable && ! ignore_cached_state ) return ;\n enable_flags . cached_scissor_test = enable ;\n break ;\n case GL_STENCIL_TEST : if ( enable_flags . cached_stencil_test == enable && ! ignore_cached_state ) return ;\n enable_flags . cached_stencil_test = enable ;\n break ;\n case GL_RASTERIZER_DISCARD : if ( enable_flags . cached_rasterizer_discard == enable && ! ignore_cached_state ) return ;\n enable_flags . cached_rasterizer_discard = enable ;\n break ;\n case GL_PRIMITIVE_RESTART_FIXED_INDEX : if ( enable_flags . cached_primitive_restart_fixed_index == enable && ! ignore_cached_state ) return ;\n enable_flags . cached_primitive_restart_fixed_index = enable ;\n break ;\n case GL_MULTISAMPLE_EXT : if ( enable_flags . cached_multisample_ext == enable && ! ignore_cached_state ) return ;\n enable_flags . cached_multisample_ext = enable ;\n break ;\n case GL_SAMPLE_ALPHA_TO_ONE_EXT : if ( enable_flags . cached_sample_alpha_to_one_ext == enable && ! ignore_cached_state ) return ;\n enable_flags . cached_sample_alpha_to_one_ext = enable ;\n break ;\n default : NOTREACHED ( ) ;\n return ;\n }\n if ( enable ) glEnable ( cap ) ;\n else glDisable ( cap ) ;\n }"}
{"idx": 11927, "target": 0, "func": "char * get_collation_name ( Oid colloid ) {\n HeapTuple tp ;\n tp = SearchSysCache1 ( COLLOID , ObjectIdGetDatum ( colloid ) ) ;\n if ( HeapTupleIsValid ( tp ) ) {\n Form_pg_collation colltup = ( Form_pg_collation ) GETSTRUCT ( tp ) ;\n char * result ;\n result = pstrdup ( NameStr ( colltup -> collname ) ) ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }\n else return NULL ;\n }"}
{"idx": 11928, "target": 0, "func": "static int dissect_btgatt_microbit_pin_ad_config ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , void * data ) {\n btatt_data_t * att_data = ( btatt_data_t * ) data ;\n proto_item * sub_item ;\n proto_tree * sub_tree ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) return - 1 ;\n sub_item = proto_tree_add_item ( tree , hf_gatt_microbit_pin_ad_config , tvb , 0 , 3 , ENC_LITTLE_ENDIAN ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btgatt_microbit_pin_ad_config ) ;\n proto_tree_add_bitmask_list ( sub_tree , tvb , 0 , 3 , hfx_btgatt_microbit_ad_pins , ENC_LITTLE_ENDIAN ) ;\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 11929, "target": 0, "func": "static void e1000e_set_fcrtl ( E1000ECore * core , int index , uint32_t val ) {\n core -> mac [ FCRTL ] = val & 0x8000FFF8 ;\n }"}
{"idx": 11930, "target": 0, "func": "void purple_chat_invite ( struct groupchat * gc , char * who , char * message ) {\n PurpleConversation * pc = gc -> data ;\n PurpleConvChat * pcc = PURPLE_CONV_CHAT ( pc ) ;\n struct purple_data * pd = gc -> ic -> proto_data ;\n serv_chat_invite ( purple_account_get_connection ( pd -> account ) , purple_conv_chat_get_id ( pcc ) , message && * message ? message : \"Please join my chat\" , who ) ;\n }"}
{"idx": 11931, "target": 0, "func": "static int pfkey_dump_sa ( struct pfkey_sock * pfk ) {\n struct net * net = sock_net ( & pfk -> sk ) ;\n return xfrm_state_walk ( net , & pfk -> dump . u . state , dump_sa , ( void * ) pfk ) ;\n }"}
{"idx": 11932, "target": 0, "func": "void proto_reg_handoff_zbee_zcl_pwr_prof ( void ) {\n dissector_handle_t pwr_prof_handle ;\n pwr_prof_handle = find_dissector ( ZBEE_PROTOABBREV_ZCL_PWRPROF ) ;\n dissector_add_uint ( \"zbee.zcl.cluster\" , ZBEE_ZCL_CID_POWER_PROFILE , pwr_prof_handle ) ;\n zbee_zcl_init_cluster ( proto_zbee_zcl_pwr_prof , ett_zbee_zcl_pwr_prof , ZBEE_ZCL_CID_POWER_PROFILE , hf_zbee_zcl_pwr_prof_attr_id , hf_zbee_zcl_pwr_prof_srv_rx_cmd_id , hf_zbee_zcl_pwr_prof_srv_tx_cmd_id , ( zbee_zcl_fn_attr_data ) dissect_zcl_pwr_prof_attr_data ) ;\n }"}
{"idx": 11933, "target": 1, "func": "static VALUE ossl_cipher_update ( int argc , VALUE * argv , VALUE self ) {\n EVP_CIPHER_CTX * ctx ;\n unsigned char * in ;\n long in_len , out_len ;\n VALUE data , str ;\n rb_scan_args ( argc , argv , \"11\" , & data , & str ) ;\n StringValue ( data ) ;\n in = ( unsigned char * ) RSTRING_PTR ( data ) ;\n if ( ( in_len = RSTRING_LEN ( data ) ) == 0 ) ossl_raise ( rb_eArgError , \"data must not be empty\" ) ;\n GetCipher ( self , ctx ) ;\n out_len = in_len + EVP_CIPHER_CTX_block_size ( ctx ) ;\n if ( out_len <= 0 ) {\n ossl_raise ( rb_eRangeError , \"data too big to make output buffer: %ld bytes\" , in_len ) ;\n }\n if ( NIL_P ( str ) ) {\n str = rb_str_new ( 0 , out_len ) ;\n }\n else {\n StringValue ( str ) ;\n rb_str_resize ( str , out_len ) ;\n }\n if ( ! ossl_cipher_update_long ( ctx , ( unsigned char * ) RSTRING_PTR ( str ) , & out_len , in , in_len ) ) ossl_raise ( eCipherError , NULL ) ;\n assert ( out_len < RSTRING_LEN ( str ) ) ;\n rb_str_set_len ( str , out_len ) ;\n return str ;\n }"}
{"idx": 11934, "target": 0, "func": "static inline PixelTrait GetPixelRedTraits ( const Image * restrict image ) {\n return ( image -> channel_map [ RedPixelChannel ] . traits ) ;\n }"}
{"idx": 11935, "target": 0, "func": "int ber_flatten2 ( BerElement * ber , struct berval * bv , int alloc ) {\n assert ( bv != NULL ) ;\n if ( bv == NULL ) {\n return - 1 ;\n }\n if ( ber == NULL ) {\n bv -> bv_val = NULL ;\n bv -> bv_len = 0 ;\n }\n else if ( ber -> ber_sos_ptr != NULL ) {\n return - 1 ;\n }\n else {\n ber_len_t len = ber_pvt_ber_write ( ber ) ;\n if ( alloc ) {\n bv -> bv_val = ( char * ) ber_memalloc_x ( len + 1 , ber -> ber_memctx ) ;\n if ( bv -> bv_val == NULL ) {\n return - 1 ;\n }\n AC_MEMCPY ( bv -> bv_val , ber -> ber_buf , len ) ;\n bv -> bv_val [ len ] = '\\0' ;\n }\n else if ( ber -> ber_buf != NULL ) {\n bv -> bv_val = ber -> ber_buf ;\n bv -> bv_val [ len ] = '\\0' ;\n }\n else {\n bv -> bv_val = \"\" ;\n }\n bv -> bv_len = len ;\n }\n return 0 ;\n }"}
{"idx": 11936, "target": 0, "func": "static bool find_next_mcelem ( Datum * mcelem , int nmcelem , Datum value , int * index , FmgrInfo * cmpfunc ) {\n int l = * index , r = nmcelem - 1 , i , res ;\n while ( l <= r ) {\n i = ( l + r ) / 2 ;\n res = element_compare ( & mcelem [ i ] , & value , cmpfunc ) ;\n if ( res == 0 ) {\n * index = i ;\n return true ;\n }\n else if ( res < 0 ) l = i + 1 ;\n else r = i - 1 ;\n }\n * index = l ;\n return false ;\n }"}
{"idx": 11937, "target": 0, "func": "static void * Type_NamedColor_Read ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number * nItems , cmsUInt32Number SizeOfTag ) {\n cmsUInt32Number vendorFlag ;\n cmsUInt32Number count ;\n cmsUInt32Number nDeviceCoords ;\n char prefix [ 32 ] ;\n char suffix [ 32 ] ;\n cmsNAMEDCOLORLIST * v ;\n cmsUInt32Number i ;\n * nItems = 0 ;\n if ( ! _cmsReadUInt32Number ( io , & vendorFlag ) ) return NULL ;\n if ( ! _cmsReadUInt32Number ( io , & count ) ) return NULL ;\n if ( ! _cmsReadUInt32Number ( io , & nDeviceCoords ) ) return NULL ;\n if ( io -> Read ( io , prefix , 32 , 1 ) != 1 ) return NULL ;\n if ( io -> Read ( io , suffix , 32 , 1 ) != 1 ) return NULL ;\n prefix [ 31 ] = suffix [ 31 ] = 0 ;\n v = cmsAllocNamedColorList ( self -> ContextID , count , nDeviceCoords , prefix , suffix ) ;\n if ( v == NULL ) {\n cmsSignalError ( self -> ContextID , cmsERROR_RANGE , \"Too many named colors '%d'\" , count ) ;\n return NULL ;\n }\n if ( nDeviceCoords > cmsMAXCHANNELS ) {\n cmsSignalError ( self -> ContextID , cmsERROR_RANGE , \"Too many device coordinates '%d'\" , nDeviceCoords ) ;\n return 0 ;\n }\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n cmsUInt16Number PCS [ 3 ] ;\n cmsUInt16Number Colorant [ cmsMAXCHANNELS ] ;\n char Root [ 33 ] ;\n memset ( Colorant , 0 , sizeof ( Colorant ) ) ;\n if ( io -> Read ( io , Root , 32 , 1 ) != 1 ) return NULL ;\n Root [ 32 ] = 0 ;\n if ( ! _cmsReadUInt16Array ( io , 3 , PCS ) ) goto Error ;\n if ( ! _cmsReadUInt16Array ( io , nDeviceCoords , Colorant ) ) goto Error ;\n if ( ! cmsAppendNamedColor ( v , Root , PCS , Colorant ) ) goto Error ;\n }\n * nItems = 1 ;\n return ( void * ) v ;\n Error : cmsFreeNamedColorList ( v ) ;\n return NULL ;\n cmsUNUSED_PARAMETER ( SizeOfTag ) ;\n }"}
{"idx": 11938, "target": 0, "func": "int mime_parse_mday ( const char * & buf , const char * end , int * mday ) {\n return mime_parse_integer ( buf , end , mday ) ;\n }"}
{"idx": 11939, "target": 0, "func": "static void vapic_register ( void ) {\n type_register_static ( & vapic_type ) ;\n }"}
{"idx": 11940, "target": 0, "func": "static int _dopr ( char * * sbuffer , char * * buffer , size_t * maxlen , size_t * retlen , int * truncated , const char * format , va_list args ) {\n char ch ;\n LLONG value ;\n LDOUBLE fvalue ;\n char * strvalue ;\n int min ;\n int max ;\n int state ;\n int flags ;\n int cflags ;\n size_t currlen ;\n state = DP_S_DEFAULT ;\n flags = currlen = cflags = min = 0 ;\n max = - 1 ;\n ch = * format ++ ;\n while ( state != DP_S_DONE ) {\n if ( ch == '\\0' || ( buffer == NULL && currlen >= * maxlen ) ) state = DP_S_DONE ;\n switch ( state ) {\n case DP_S_DEFAULT : if ( ch == '%' ) state = DP_S_FLAGS ;\n else if ( ! doapr_outch ( sbuffer , buffer , & currlen , maxlen , ch ) ) return 0 ;\n ch = * format ++ ;\n break ;\n case DP_S_FLAGS : switch ( ch ) {\n case '-' : flags |= DP_F_MINUS ;\n ch = * format ++ ;\n break ;\n case '+' : flags |= DP_F_PLUS ;\n ch = * format ++ ;\n break ;\n case ' ' : flags |= DP_F_SPACE ;\n ch = * format ++ ;\n break ;\n case '#' : flags |= DP_F_NUM ;\n ch = * format ++ ;\n break ;\n case '0' : flags |= DP_F_ZERO ;\n ch = * format ++ ;\n break ;\n default : state = DP_S_MIN ;\n break ;\n }\n break ;\n case DP_S_MIN : if ( isdigit ( ( unsigned char ) ch ) ) {\n min = 10 * min + char_to_int ( ch ) ;\n ch = * format ++ ;\n }\n else if ( ch == '*' ) {\n min = va_arg ( args , int ) ;\n ch = * format ++ ;\n state = DP_S_DOT ;\n }\n else state = DP_S_DOT ;\n break ;\n case DP_S_DOT : if ( ch == '.' ) {\n state = DP_S_MAX ;\n ch = * format ++ ;\n }\n else state = DP_S_MOD ;\n break ;\n case DP_S_MAX : if ( isdigit ( ( unsigned char ) ch ) ) {\n if ( max < 0 ) max = 0 ;\n max = 10 * max + char_to_int ( ch ) ;\n ch = * format ++ ;\n }\n else if ( ch == '*' ) {\n max = va_arg ( args , int ) ;\n ch = * format ++ ;\n state = DP_S_MOD ;\n }\n else state = DP_S_MOD ;\n break ;\n case DP_S_MOD : switch ( ch ) {\n case 'h' : cflags = DP_C_SHORT ;\n ch = * format ++ ;\n break ;\n case 'l' : if ( * format == 'l' ) {\n cflags = DP_C_LLONG ;\n format ++ ;\n }\n else cflags = DP_C_LONG ;\n ch = * format ++ ;\n break ;\n case 'q' : cflags = DP_C_LLONG ;\n ch = * format ++ ;\n break ;\n case 'L' : cflags = DP_C_LDOUBLE ;\n ch = * format ++ ;\n break ;\n default : break ;\n }\n state = DP_S_CONV ;\n break ;\n case DP_S_CONV : switch ( ch ) {\n case 'd' : case 'i' : switch ( cflags ) {\n case DP_C_SHORT : value = ( short int ) va_arg ( args , int ) ;\n break ;\n case DP_C_LONG : value = va_arg ( args , long int ) ;\n break ;\n case DP_C_LLONG : value = va_arg ( args , LLONG ) ;\n break ;\n default : value = va_arg ( args , int ) ;\n break ;\n }\n if ( ! fmtint ( sbuffer , buffer , & currlen , maxlen , value , 10 , min , max , flags ) ) return 0 ;\n break ;\n case 'X' : flags |= DP_F_UP ;\n case 'x' : case 'o' : case 'u' : flags |= DP_F_UNSIGNED ;\n switch ( cflags ) {\n case DP_C_SHORT : value = ( unsigned short int ) va_arg ( args , unsigned int ) ;\n break ;\n case DP_C_LONG : value = ( LLONG ) va_arg ( args , unsigned long int ) ;\n break ;\n case DP_C_LLONG : value = va_arg ( args , unsigned LLONG ) ;\n break ;\n default : value = ( LLONG ) va_arg ( args , unsigned int ) ;\n break ;\n }\n if ( ! fmtint ( sbuffer , buffer , & currlen , maxlen , value , ch == 'o' ? 8 : ( ch == 'u' ? 10 : 16 ) , min , max , flags ) ) return 0 ;\n break ;\n case 'f' : if ( cflags == DP_C_LDOUBLE ) fvalue = va_arg ( args , LDOUBLE ) ;\n else fvalue = va_arg ( args , double ) ;\n if ( ! fmtfp ( sbuffer , buffer , & currlen , maxlen , fvalue , min , max , flags ) ) return 0 ;\n break ;\n case 'E' : flags |= DP_F_UP ;\n case 'e' : if ( cflags == DP_C_LDOUBLE ) fvalue = va_arg ( args , LDOUBLE ) ;\n else fvalue = va_arg ( args , double ) ;\n break ;\n case 'G' : flags |= DP_F_UP ;\n case 'g' : if ( cflags == DP_C_LDOUBLE ) fvalue = va_arg ( args , LDOUBLE ) ;\n else fvalue = va_arg ( args , double ) ;\n break ;\n case 'c' : if ( ! doapr_outch ( sbuffer , buffer , & currlen , maxlen , va_arg ( args , int ) ) ) return 0 ;\n break ;\n case 's' : strvalue = va_arg ( args , char * ) ;\n if ( max < 0 ) {\n if ( buffer ) max = INT_MAX ;\n else max = * maxlen ;\n }\n if ( ! fmtstr ( sbuffer , buffer , & currlen , maxlen , strvalue , flags , min , max ) ) return 0 ;\n break ;\n case 'p' : value = ( long ) va_arg ( args , void * ) ;\n if ( ! fmtint ( sbuffer , buffer , & currlen , maxlen , value , 16 , min , max , flags | DP_F_NUM ) ) return 0 ;\n break ;\n case 'n' : if ( cflags == DP_C_SHORT ) {\n short int * num ;\n num = va_arg ( args , short int * ) ;\n * num = currlen ;\n }\n else if ( cflags == DP_C_LONG ) {\n long int * num ;\n num = va_arg ( args , long int * ) ;\n * num = ( long int ) currlen ;\n }\n else if ( cflags == DP_C_LLONG ) {\n LLONG * num ;\n num = va_arg ( args , LLONG * ) ;\n * num = ( LLONG ) currlen ;\n }\n else {\n int * num ;\n num = va_arg ( args , int * ) ;\n * num = currlen ;\n }\n break ;\n case '%' : if ( ! doapr_outch ( sbuffer , buffer , & currlen , maxlen , ch ) ) return 0 ;\n break ;\n case 'w' : ch = * format ++ ;\n break ;\n default : break ;\n }\n ch = * format ++ ;\n state = DP_S_DEFAULT ;\n flags = cflags = min = 0 ;\n max = - 1 ;\n break ;\n case DP_S_DONE : break ;\n default : break ;\n }\n }\n * truncated = ( currlen > * maxlen - 1 ) ;\n if ( * truncated ) currlen = * maxlen - 1 ;\n if ( ! doapr_outch ( sbuffer , buffer , & currlen , maxlen , '\\0' ) ) return 0 ;\n * retlen = currlen - 1 ;\n return 1 ;\n }"}
{"idx": 11941, "target": 0, "func": "static int dissect_h245_GSMAudioCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_GSMAudioCapability , GSMAudioCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 11942, "target": 0, "func": "static bool parse_ipAddrBlocks ( chunk_t blob , int level0 , private_x509_cert_t * this ) {\n asn1_parser_t * parser ;\n chunk_t object , min_object ;\n ts_type_t ts_type = 0 ;\n traffic_selector_t * ts ;\n int objectID ;\n bool success = FALSE ;\n parser = asn1_parser_create ( ipAddrBlocksObjects , blob ) ;\n parser -> set_top_level ( parser , level0 ) ;\n while ( parser -> iterate ( parser , & objectID , & object ) ) {\n switch ( objectID ) {\n case IP_ADDR_BLOCKS_FAMILY : ts_type = 0 ;\n if ( object . len == 2 && object . ptr [ 0 ] == 0 ) {\n if ( object . ptr [ 1 ] == 1 ) {\n ts_type = TS_IPV4_ADDR_RANGE ;\n }\n else if ( object . ptr [ 1 ] == 2 ) {\n ts_type = TS_IPV6_ADDR_RANGE ;\n }\n else {\n break ;\n }\n DBG2 ( DBG_ASN , \" %N\" , ts_type_name , ts_type ) ;\n }\n break ;\n case IP_ADDR_BLOCKS_INHERIT : DBG1 ( DBG_ASN , \"inherit choice is not supported\" ) ;\n break ;\n case IP_ADDR_BLOCKS_PREFIX : if ( ! check_address_object ( ts_type , object ) ) {\n goto end ;\n }\n ts = traffic_selector_create_from_rfc3779_format ( ts_type , object , object ) ;\n DBG2 ( DBG_ASN , \" %R\" , ts ) ;\n this -> ipAddrBlocks -> insert_last ( this -> ipAddrBlocks , ts ) ;\n break ;\n case IP_ADDR_BLOCKS_MIN : if ( ! check_address_object ( ts_type , object ) ) {\n goto end ;\n }\n min_object = object ;\n break ;\n case IP_ADDR_BLOCKS_MAX : if ( ! check_address_object ( ts_type , object ) ) {\n goto end ;\n }\n ts = traffic_selector_create_from_rfc3779_format ( ts_type , min_object , object ) ;\n DBG2 ( DBG_ASN , \" %R\" , ts ) ;\n this -> ipAddrBlocks -> insert_last ( this -> ipAddrBlocks , ts ) ;\n break ;\n default : break ;\n }\n }\n success = parser -> success ( parser ) ;\n this -> flags |= X509_IP_ADDR_BLOCKS ;\n end : parser -> destroy ( parser ) ;\n return success ;\n }"}
{"idx": 11943, "target": 0, "func": "static void cmd_channel_list_joined ( void ) {\n CHANNEL_REC * channel ;\n GString * nicks ;\n GSList * nicklist , * tmp , * ntmp ;\n if ( channels == NULL ) {\n printformat ( NULL , NULL , MSGLEVEL_CLIENTNOTICE , TXT_NOT_IN_CHANNELS ) ;\n return ;\n }\n channel = CHANNEL ( active_win -> active ) ;\n if ( channel != NULL ) printformat ( NULL , NULL , MSGLEVEL_CLIENTNOTICE , TXT_CURRENT_CHANNEL , channel -> visible_name ) ;\n printformat ( NULL , NULL , MSGLEVEL_CLIENTCRAP , TXT_CHANLIST_HEADER ) ;\n for ( tmp = channels ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n channel = tmp -> data ;\n nicklist = nicklist_getnicks ( channel ) ;\n nicks = g_string_new ( NULL ) ;\n for ( ntmp = nicklist ;\n ntmp != NULL ;\n ntmp = ntmp -> next ) {\n NICK_REC * rec = ntmp -> data ;\n g_string_append_printf ( nicks , \"%s \" , rec -> nick ) ;\n }\n if ( nicks -> len > 1 ) g_string_truncate ( nicks , nicks -> len - 1 ) ;\n printformat ( NULL , NULL , MSGLEVEL_CLIENTCRAP , TXT_CHANLIST_LINE , channel -> visible_name , channel -> mode , channel -> server -> tag , nicks -> str ) ;\n g_slist_free ( nicklist ) ;\n g_string_free ( nicks , TRUE ) ;\n }\n }"}
{"idx": 11944, "target": 0, "func": "static int dissect_h245_T_rangeOfBitRates ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_rangeOfBitRates , T_rangeOfBitRates_sequence ) ;\n return offset ;\n }"}
{"idx": 11945, "target": 0, "func": "static guint16 de_tp_epc_ue_tl_b_lb_setup ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n curr_offset = offset ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_dtap_epc_ue_tl_b_ip_pdu_delay , tvb , curr_offset << 3 , 8 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 11946, "target": 0, "func": "static void bootstrap ( MYSQL_FILE * file ) {\n DBUG_ENTER ( \"bootstrap\" ) ;\n THD * thd = new THD ;\n thd -> bootstrap = 1 ;\n my_net_init ( & thd -> net , ( st_vio * ) 0 ) ;\n thd -> max_client_packet_length = thd -> net . max_packet ;\n thd -> security_ctx -> master_access = ~ ( ulong ) 0 ;\n thd -> thread_id = thd -> variables . pseudo_thread_id = thread_id ++ ;\n thread_count ++ ;\n in_bootstrap = TRUE ;\n bootstrap_file = file ;\n # ifndef EMBEDDED_LIBRARY int error ;\n if ( ( error = mysql_thread_create ( key_thread_bootstrap , & thd -> real_id , & connection_attrib , handle_bootstrap , ( void * ) thd ) ) ) {\n sql_print_warning ( \"Can't create thread to handle bootstrap (errno= %d)\" , error ) ;\n bootstrap_error = - 1 ;\n DBUG_VOID_RETURN ;\n }\n mysql_mutex_lock ( & LOCK_thread_count ) ;\n while ( in_bootstrap ) {\n mysql_cond_wait ( & COND_thread_count , & LOCK_thread_count ) ;\n DBUG_PRINT ( \"quit\" , ( \"One thread died (count=%u)\" , thread_count ) ) ;\n }\n mysql_mutex_unlock ( & LOCK_thread_count ) ;\n # else thd -> mysql = 0 ;\n do_handle_bootstrap ( thd ) ;\n # endif DBUG_VOID_RETURN ;\n }"}
{"idx": 11947, "target": 0, "func": "static void pdf_run_TL ( fz_context * ctx , pdf_processor * proc , float leading ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_gstate * gstate = pr -> gstate + pr -> gtop ;\n gstate -> text . leading = leading ;\n }"}
{"idx": 11948, "target": 0, "func": "int main_file_open ( main_file * xfile , const char * name , int mode ) {\n int ret = 0 ;\n xfile -> mode = mode ;\n XD3_ASSERT ( name != NULL ) ;\n XD3_ASSERT ( ! main_file_isopen ( xfile ) ) ;\n if ( name [ 0 ] == 0 ) {\n XPR ( NT \"invalid file name: empty string\\n\" ) ;\n return XD3_INVALID ;\n }\n # if XD3_STDIO xfile -> file = fopen ( name , XOPEN_STDIO ) ;\n ret = ( xfile -> file == NULL ) ? get_errno ( ) : 0 ;\n # elif XD3_POSIX if ( ( ret = open ( name , XOPEN_POSIX , XOPEN_MODE ) ) < 0 ) {\n ret = get_errno ( ) ;\n }\n else {\n xfile -> file = ret ;\n ret = 0 ;\n }\n # elif XD3_WIN32 xfile -> file = CreateFile ( name , ( mode == XO_READ ) ? GENERIC_READ : GENERIC_WRITE , FILE_SHARE_READ , NULL , ( mode == XO_READ ) ? OPEN_EXISTING : ( option_force ? CREATE_ALWAYS : CREATE_NEW ) , FILE_ATTRIBUTE_NORMAL , NULL ) ;\n if ( xfile -> file == INVALID_HANDLE_VALUE ) {\n ret = get_errno ( ) ;\n }\n # endif if ( ret ) {\n XF_ERROR ( \"open\" , name , ret ) ;\n }\n else {\n xfile -> realname = name ;\n xfile -> nread = 0 ;\n }\n return ret ;\n }"}
{"idx": 11949, "target": 1, "func": "void parseDiagnosticInfo ( proto_tree * tree , tvbuff_t * tvb , packet_info * pinfo , gint * pOffset , const char * szFieldName ) {\n static const int * diag_mask [ ] = {\n & hf_opcua_diag_mask_symbolicflag , & hf_opcua_diag_mask_namespaceflag , & hf_opcua_diag_mask_localizedtextflag , & hf_opcua_diag_mask_localeflag , & hf_opcua_diag_mask_additionalinfoflag , & hf_opcua_diag_mask_innerstatuscodeflag , & hf_opcua_diag_mask_innerdiaginfoflag , NULL }\n ;\n gint iOffset = * pOffset ;\n guint8 EncodingMask ;\n proto_tree * subtree ;\n proto_item * ti ;\n subtree = proto_tree_add_subtree_format ( tree , tvb , * pOffset , - 1 , ett_opcua_diagnosticinfo , & ti , \"%s: DiagnosticInfo\" , szFieldName ) ;\n EncodingMask = tvb_get_guint8 ( tvb , iOffset ) ;\n proto_tree_add_bitmask ( subtree , tvb , iOffset , hf_opcua_diag_mask , ett_opcua_diagnosticinfo_encodingmask , diag_mask , ENC_LITTLE_ENDIAN ) ;\n iOffset ++ ;\n if ( EncodingMask & DIAGNOSTICINFO_ENCODINGMASK_SYMBOLICID_FLAG ) {\n parseInt32 ( subtree , tvb , pinfo , & iOffset , hf_opcua_diag_symbolicid ) ;\n }\n if ( EncodingMask & DIAGNOSTICINFO_ENCODINGMASK_NAMESPACE_FLAG ) {\n parseInt32 ( subtree , tvb , pinfo , & iOffset , hf_opcua_diag_namespace ) ;\n }\n if ( EncodingMask & DIAGNOSTICINFO_ENCODINGMASK_LOCALIZEDTEXT_FLAG ) {\n parseInt32 ( subtree , tvb , pinfo , & iOffset , hf_opcua_diag_localizedtext ) ;\n }\n if ( EncodingMask & DIAGNOSTICINFO_ENCODINGMASK_LOCALE_FLAG ) {\n parseInt32 ( subtree , tvb , pinfo , & iOffset , hf_opcua_diag_locale ) ;\n }\n if ( EncodingMask & DIAGNOSTICINFO_ENCODINGMASK_ADDITIONALINFO_FLAG ) {\n parseString ( subtree , tvb , pinfo , & iOffset , hf_opcua_diag_additionalinfo ) ;\n }\n if ( EncodingMask & DIAGNOSTICINFO_ENCODINGMASK_INNERSTATUSCODE_FLAG ) {\n parseStatusCode ( subtree , tvb , pinfo , & iOffset , hf_opcua_diag_innerstatuscode ) ;\n }\n if ( EncodingMask & DIAGNOSTICINFO_ENCODINGMASK_INNERDIAGNOSTICINFO_FLAG ) {\n parseDiagnosticInfo ( subtree , tvb , pinfo , & iOffset , \"Inner DiagnosticInfo\" ) ;\n }\n proto_item_set_end ( ti , tvb , iOffset ) ;\n * pOffset = iOffset ;\n }"}
{"idx": 11950, "target": 0, "func": "PyObject * PyString_FromStringAndSize ( const char * str , Py_ssize_t size ) {\n register PyStringObject * op ;\n if ( size < 0 ) {\n PyErr_SetString ( PyExc_SystemError , \"Negative size passed to PyString_FromStringAndSize\" ) ;\n return NULL ;\n }\n if ( size == 0 && ( op = nullstring ) != NULL ) {\n # ifdef COUNT_ALLOCS null_strings ++ ;\n # endif Py_INCREF ( op ) ;\n return ( PyObject * ) op ;\n }\n if ( size == 1 && str != NULL && ( op = characters [ * str & UCHAR_MAX ] ) != NULL ) {\n # ifdef COUNT_ALLOCS one_strings ++ ;\n # endif Py_INCREF ( op ) ;\n return ( PyObject * ) op ;\n }\n if ( size > PY_SSIZE_T_MAX - PyStringObject_SIZE ) {\n PyErr_SetString ( PyExc_OverflowError , \"string is too large\" ) ;\n return NULL ;\n }\n op = ( PyStringObject * ) PyObject_MALLOC ( PyStringObject_SIZE + size ) ;\n if ( op == NULL ) return PyErr_NoMemory ( ) ;\n ( void ) PyObject_INIT_VAR ( op , & PyString_Type , size ) ;\n op -> ob_shash = - 1 ;\n op -> ob_sstate = SSTATE_NOT_INTERNED ;\n if ( str != NULL ) Py_MEMCPY ( op -> ob_sval , str , size ) ;\n op -> ob_sval [ size ] = '\\0' ;\n if ( size == 0 ) {\n PyObject * t = ( PyObject * ) op ;\n PyString_InternInPlace ( & t ) ;\n op = ( PyStringObject * ) t ;\n nullstring = op ;\n Py_INCREF ( op ) ;\n }\n else if ( size == 1 && str != NULL ) {\n PyObject * t = ( PyObject * ) op ;\n PyString_InternInPlace ( & t ) ;\n op = ( PyStringObject * ) t ;\n characters [ * str & UCHAR_MAX ] = op ;\n Py_INCREF ( op ) ;\n }\n return ( PyObject * ) op ;\n }"}
{"idx": 11951, "target": 0, "func": "static inline void eval_lpcenv_or_interp ( TwinContext * tctx , enum FrameType ftype , float * out , const float * in , int size , int step , int part ) {\n int i ;\n const ModeTab * mtab = tctx -> mtab ;\n const float * cos_tab = tctx -> cos_tabs [ ftype ] ;\n for ( i = 0 ;\n i < size ;\n i += step ) out [ i ] = eval_lpc_spectrum ( in , get_cos ( i , part , cos_tab , size ) , mtab -> n_lsp ) ;\n for ( i = step ;\n i <= size - 2 * step ;\n i += step ) {\n if ( out [ i + step ] + out [ i - step ] > 1.95 * out [ i ] || out [ i + step ] >= out [ i - step ] ) {\n interpolate ( out + i - step + 1 , out [ i ] , out [ i - step ] , step - 1 ) ;\n }\n else {\n out [ i - step / 2 ] = eval_lpc_spectrum ( in , get_cos ( i - step / 2 , part , cos_tab , size ) , mtab -> n_lsp ) ;\n interpolate ( out + i - step + 1 , out [ i - step / 2 ] , out [ i - step ] , step / 2 - 1 ) ;\n interpolate ( out + i - step / 2 + 1 , out [ i ] , out [ i - step / 2 ] , step / 2 - 1 ) ;\n }\n }\n interpolate ( out + size - 2 * step + 1 , out [ size - step ] , out [ size - 2 * step ] , step - 1 ) ;\n }"}
{"idx": 11952, "target": 0, "func": "static gboolean is_needy ( NautilusFile * file , FileCheck check_missing , RequestType request_type_wanted ) {\n NautilusDirectory * directory ;\n GList * node ;\n ReadyCallback * callback ;\n Monitor * monitor ;\n if ( ! ( * check_missing ) ( file ) ) {\n return FALSE ;\n }\n directory = file -> details -> directory ;\n if ( directory -> details -> call_when_ready_counters [ request_type_wanted ] > 0 ) {\n for ( node = directory -> details -> call_when_ready_list ;\n node != NULL ;\n node = node -> next ) {\n callback = node -> data ;\n if ( callback -> active && REQUEST_WANTS_TYPE ( callback -> request , request_type_wanted ) ) {\n if ( callback -> file == file ) {\n return TRUE ;\n }\n if ( callback -> file == NULL && file != directory -> details -> as_file ) {\n return TRUE ;\n }\n }\n }\n }\n if ( directory -> details -> monitor_counters [ request_type_wanted ] > 0 ) {\n for ( node = directory -> details -> monitor_list ;\n node != NULL ;\n node = node -> next ) {\n monitor = node -> data ;\n if ( REQUEST_WANTS_TYPE ( monitor -> request , request_type_wanted ) ) {\n if ( monitor_includes_file ( monitor , file ) ) {\n return TRUE ;\n }\n }\n }\n }\n return FALSE ;\n }"}
{"idx": 11953, "target": 0, "func": "static DeviceState * qbus_find_dev ( BusState * bus , char * elem ) {\n DeviceState * dev ;\n QLIST_FOREACH ( dev , & bus -> children , sibling ) {\n if ( dev -> id && strcmp ( dev -> id , elem ) == 0 ) {\n return dev ;\n }\n }\n QLIST_FOREACH ( dev , & bus -> children , sibling ) {\n if ( strcmp ( dev -> info -> name , elem ) == 0 ) {\n return dev ;\n }\n }\n QLIST_FOREACH ( dev , & bus -> children , sibling ) {\n if ( dev -> info -> alias && strcmp ( dev -> info -> alias , elem ) == 0 ) {\n return dev ;\n }\n }\n return NULL ;\n }"}
{"idx": 11954, "target": 0, "func": "TEST_F ( SyncBookmarkDataTypeControllerTest , StartFirstRun ) {\n CreateBookmarkModel ( LOAD_MODEL ) ;\n SetStartExpectations ( ) ;\n SetAssociateExpectations ( ) ;\n EXPECT_CALL ( * model_associator_ , SyncModelHasUserCreatedNodes ( _ ) ) . WillRepeatedly ( DoAll ( SetArgumentPointee < 0 > ( false ) , Return ( true ) ) ) ;\n EXPECT_CALL ( start_callback_ , Run ( DataTypeController : : OK_FIRST_RUN , _ , _ ) ) ;\n Start ( ) ;\n }"}
{"idx": 11955, "target": 0, "func": "void get_privilege_desc ( char * to , uint max_length , ulong access ) {\n uint pos ;\n char * start = to ;\n DBUG_ASSERT ( max_length >= 30 ) ;\n if ( access ) {\n max_length -- ;\n for ( pos = 0 ;\n access ;\n pos ++ , access >>= 1 ) {\n if ( ( access & 1 ) && command_lengths [ pos ] + ( uint ) ( to - start ) < max_length ) {\n to = strmov ( to , command_array [ pos ] ) ;\n * to ++ = ',' ;\n }\n }\n to -- ;\n }\n * to = 0 ;\n }"}
{"idx": 11956, "target": 0, "func": "static int fetch_token ( netdissect_options * ndo , const u_char * pptr , u_int idx , u_int len , u_char * tbuf , size_t tbuflen ) {\n size_t toklen = 0 ;\n for ( ;\n idx < len ;\n idx ++ ) {\n if ( ! ND_TTEST ( * ( pptr + idx ) ) ) {\n return ( 0 ) ;\n }\n if ( ! isascii ( * ( pptr + idx ) ) ) {\n return ( 0 ) ;\n }\n if ( isspace ( * ( pptr + idx ) ) ) {\n break ;\n }\n if ( ! isprint ( * ( pptr + idx ) ) ) {\n return ( 0 ) ;\n }\n if ( toklen + 2 > tbuflen ) {\n return ( 0 ) ;\n }\n tbuf [ toklen ] = * ( pptr + idx ) ;\n toklen ++ ;\n }\n if ( toklen == 0 ) {\n return ( 0 ) ;\n }\n tbuf [ toklen ] = '\\0' ;\n for ( ;\n idx < len ;\n idx ++ ) {\n if ( ! ND_TTEST ( * ( pptr + idx ) ) ) {\n break ;\n }\n if ( * ( pptr + idx ) == '\\r' || * ( pptr + idx ) == '\\n' ) {\n break ;\n }\n if ( ! isascii ( * ( pptr + idx ) ) || ! isprint ( * ( pptr + idx ) ) ) {\n break ;\n }\n if ( ! isspace ( * ( pptr + idx ) ) ) {\n break ;\n }\n }\n return ( idx ) ;\n }"}
{"idx": 11957, "target": 0, "func": "static int decrypt_nss ( struct crypto_instance * instance , unsigned char * buf , int * buf_len ) {\n PK11Context * decrypt_context = NULL ;\n SECItem decrypt_param ;\n int tmp1_outlen = 0 ;\n unsigned int tmp2_outlen = 0 ;\n unsigned char * salt = buf ;\n unsigned char * data = salt + SALT_SIZE ;\n int datalen = * buf_len - SALT_SIZE ;\n unsigned char outbuf [ FRAME_SIZE_MAX ] ;\n int outbuf_len ;\n int err = - 1 ;\n if ( ! cipher_to_nss [ instance -> crypto_cipher_type ] ) {\n return 0 ;\n }\n decrypt_param . type = siBuffer ;\n decrypt_param . data = salt ;\n decrypt_param . len = SALT_SIZE ;\n decrypt_context = PK11_CreateContextBySymKey ( cipher_to_nss [ instance -> crypto_cipher_type ] , CKA_DECRYPT , instance -> nss_sym_key , & decrypt_param ) ;\n if ( ! decrypt_context ) {\n log_printf ( instance -> log_level_security , \"PK11_CreateContext (decrypt) failed (err %d)\" , PR_GetError ( ) ) ;\n goto out ;\n }\n if ( PK11_CipherOp ( decrypt_context , outbuf , & tmp1_outlen , sizeof ( outbuf ) , data , datalen ) != SECSuccess ) {\n log_printf ( instance -> log_level_security , \"PK11_CipherOp (decrypt) failed (err %d)\" , PR_GetError ( ) ) ;\n goto out ;\n }\n if ( PK11_DigestFinal ( decrypt_context , outbuf + tmp1_outlen , & tmp2_outlen , sizeof ( outbuf ) - tmp1_outlen ) != SECSuccess ) {\n log_printf ( instance -> log_level_security , \"PK11_DigestFinal (decrypt) failed (err %d)\" , PR_GetError ( ) ) ;\n goto out ;\n }\n outbuf_len = tmp1_outlen + tmp2_outlen ;\n memset ( buf , 0 , * buf_len ) ;\n memcpy ( buf , outbuf , outbuf_len ) ;\n * buf_len = outbuf_len ;\n err = 0 ;\n out : if ( decrypt_context ) {\n PK11_DestroyContext ( decrypt_context , PR_TRUE ) ;\n }\n return err ;\n }"}
{"idx": 11958, "target": 0, "func": "int ssl3_pending ( const SSL * s ) {\n if ( s -> rstate == SSL_ST_READ_BODY ) return 0 ;\n return ( s -> s3 -> rrec . type == SSL3_RT_APPLICATION_DATA ) ? s -> s3 -> rrec . length : 0 ;\n }"}
{"idx": 11959, "target": 0, "func": "int parallel_restore ( ParallelArgs * args ) {\n ArchiveHandle * AH = args -> AH ;\n TocEntry * te = args -> te ;\n int status ;\n Assert ( AH -> connection != NULL ) ;\n AH -> public . n_errors = 0 ;\n status = restore_toc_entry ( AH , te , true ) ;\n return status ;\n }"}
{"idx": 11960, "target": 0, "func": "static void U_CALLCONV _Latin1FromUnicodeWithOffsets ( UConverterFromUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n UConverter * cnv ;\n const UChar * source , * sourceLimit ;\n uint8_t * target , * oldTarget ;\n int32_t targetCapacity , length ;\n int32_t * offsets ;\n UChar32 cp ;\n UChar c , max ;\n int32_t sourceIndex ;\n cnv = pArgs -> converter ;\n source = pArgs -> source ;\n sourceLimit = pArgs -> sourceLimit ;\n target = oldTarget = ( uint8_t * ) pArgs -> target ;\n targetCapacity = ( int32_t ) ( pArgs -> targetLimit - pArgs -> target ) ;\n offsets = pArgs -> offsets ;\n if ( cnv -> sharedData == & _Latin1Data ) {\n max = 0xff ;\n }\n else {\n max = 0x7f ;\n }\n cp = cnv -> fromUChar32 ;\n sourceIndex = cp == 0 ? 0 : - 1 ;\n length = ( int32_t ) ( sourceLimit - source ) ;\n if ( length < targetCapacity ) {\n targetCapacity = length ;\n }\n if ( cp != 0 && targetCapacity > 0 ) {\n goto getTrail ;\n }\n # if LATIN1_UNROLL_FROM_UNICODE if ( targetCapacity >= 16 ) {\n int32_t count , loops ;\n UChar u , oredChars ;\n loops = count = targetCapacity >> 4 ;\n do {\n oredChars = u = * source ++ ;\n * target ++ = ( uint8_t ) u ;\n oredChars |= u = * source ++ ;\n * target ++ = ( uint8_t ) u ;\n oredChars |= u = * source ++ ;\n * target ++ = ( uint8_t ) u ;\n oredChars |= u = * source ++ ;\n * target ++ = ( uint8_t ) u ;\n oredChars |= u = * source ++ ;\n * target ++ = ( uint8_t ) u ;\n oredChars |= u = * source ++ ;\n * target ++ = ( uint8_t ) u ;\n oredChars |= u = * source ++ ;\n * target ++ = ( uint8_t ) u ;\n oredChars |= u = * source ++ ;\n * target ++ = ( uint8_t ) u ;\n oredChars |= u = * source ++ ;\n * target ++ = ( uint8_t ) u ;\n oredChars |= u = * source ++ ;\n * target ++ = ( uint8_t ) u ;\n oredChars |= u = * source ++ ;\n * target ++ = ( uint8_t ) u ;\n oredChars |= u = * source ++ ;\n * target ++ = ( uint8_t ) u ;\n oredChars |= u = * source ++ ;\n * target ++ = ( uint8_t ) u ;\n oredChars |= u = * source ++ ;\n * target ++ = ( uint8_t ) u ;\n oredChars |= u = * source ++ ;\n * target ++ = ( uint8_t ) u ;\n oredChars |= u = * source ++ ;\n * target ++ = ( uint8_t ) u ;\n if ( oredChars > max ) {\n source -= 16 ;\n target -= 16 ;\n break ;\n }\n }\n while ( -- count > 0 ) ;\n count = loops - count ;\n targetCapacity -= 16 * count ;\n if ( offsets != NULL ) {\n oldTarget += 16 * count ;\n while ( count > 0 ) {\n * offsets ++ = sourceIndex ++ ;\n * offsets ++ = sourceIndex ++ ;\n * offsets ++ = sourceIndex ++ ;\n * offsets ++ = sourceIndex ++ ;\n * offsets ++ = sourceIndex ++ ;\n * offsets ++ = sourceIndex ++ ;\n * offsets ++ = sourceIndex ++ ;\n * offsets ++ = sourceIndex ++ ;\n * offsets ++ = sourceIndex ++ ;\n * offsets ++ = sourceIndex ++ ;\n * offsets ++ = sourceIndex ++ ;\n * offsets ++ = sourceIndex ++ ;\n * offsets ++ = sourceIndex ++ ;\n * offsets ++ = sourceIndex ++ ;\n * offsets ++ = sourceIndex ++ ;\n * offsets ++ = sourceIndex ++ ;\n -- count ;\n }\n }\n }\n # endif c = 0 ;\n while ( targetCapacity > 0 && ( c = * source ++ ) <= max ) {\n * target ++ = ( uint8_t ) c ;\n -- targetCapacity ;\n }\n if ( c > max ) {\n cp = c ;\n if ( ! U_IS_SURROGATE ( cp ) ) {\n }\n else if ( U_IS_SURROGATE_LEAD ( cp ) ) {\n getTrail : if ( source < sourceLimit ) {\n UChar trail = * source ;\n if ( U16_IS_TRAIL ( trail ) ) {\n ++ source ;\n cp = U16_GET_SUPPLEMENTARY ( cp , trail ) ;\n }\n else {\n }\n }\n else {\n cnv -> fromUChar32 = cp ;\n goto noMoreInput ;\n }\n }\n else {\n }\n * pErrorCode = U_IS_SURROGATE ( cp ) ? U_ILLEGAL_CHAR_FOUND : U_INVALID_CHAR_FOUND ;\n cnv -> fromUChar32 = cp ;\n }\n noMoreInput : if ( offsets != NULL ) {\n size_t count = target - oldTarget ;\n while ( count > 0 ) {\n * offsets ++ = sourceIndex ++ ;\n -- count ;\n }\n }\n if ( U_SUCCESS ( * pErrorCode ) && source < sourceLimit && target >= ( uint8_t * ) pArgs -> targetLimit ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n pArgs -> source = source ;\n pArgs -> target = ( char * ) target ;\n pArgs -> offsets = offsets ;\n }"}
{"idx": 11961, "target": 0, "func": "static void exsltSaxonSystemIdFunction ( xmlXPathParserContextPtr ctxt , int nargs ) {\n if ( ctxt == NULL ) return ;\n if ( nargs != 0 ) {\n xmlXPathSetArityError ( ctxt ) ;\n return ;\n }\n if ( ( ctxt -> context ) && ( ctxt -> context -> doc ) && ( ctxt -> context -> doc -> URL ) ) valuePush ( ctxt , xmlXPathNewString ( ctxt -> context -> doc -> URL ) ) ;\n else valuePush ( ctxt , xmlXPathNewString ( BAD_CAST \"\" ) ) ;\n }"}
{"idx": 11962, "target": 0, "func": "static int dissect_ds_keyval_array ( tvbuff_t * tvb , proto_tree * tree , int offset ) {\n guint32 nKey , i ;\n nKey = tvb_get_letohl ( tvb , offset ) ;\n offset += 4 ;\n for ( i = 0 ;\n i < nKey ;\n i ++ ) offset = dissect_pvfs_ds_keyval ( tvb , tree , offset ) ;\n return offset ;\n }"}
{"idx": 11963, "target": 1, "func": "static int get_current_cpu ( void ) {\n CPUState * cpu_single_cpu ;\n if ( ! cpu_single_env ) {\n return - 1 ;\n }\n cpu_single_cpu = ENV_GET_CPU ( cpu_single_env ) ;\n return cpu_single_cpu -> cpu_index ;\n }"}
{"idx": 11964, "target": 0, "func": "gboolean proto_can_toggle_protocol ( const int proto_id ) {\n protocol_t * protocol ;\n protocol = find_protocol_by_id ( proto_id ) ;\n return protocol -> can_toggle ;\n }"}
{"idx": 11965, "target": 0, "func": "void pdf_tos_reset ( fz_context * ctx , pdf_text_object_state * tos , int render ) {\n tos -> text = fz_new_text ( ctx ) ;\n tos -> text_mode = render ;\n tos -> text_bbox = fz_empty_rect ;\n }"}
{"idx": 11966, "target": 0, "func": "static int arith_get_number ( ArithCoder * c , int mod_val ) {\n int range = c -> high - c -> low + 1 ;\n int val = ( ( c -> value - c -> low + 1 ) * mod_val - 1 ) / range ;\n int prob = range * val ;\n c -> high = ( prob + range ) / mod_val + c -> low - 1 ;\n c -> low += prob / mod_val ;\n arith_normalise ( c ) ;\n return val ;\n }"}
{"idx": 11967, "target": 0, "func": "static void prplcb_debug_print ( PurpleDebugLevel level , const char * category , const char * arg_s ) {\n fprintf ( stderr , \"DEBUG %s: %s\" , category , arg_s ) ;\n }"}
{"idx": 11968, "target": 0, "func": "int qemuAssignDeviceRedirdevAlias ( virDomainDefPtr def , virDomainRedirdevDefPtr redirdev , int idx ) {\n if ( idx == - 1 ) {\n size_t i ;\n idx = 0 ;\n for ( i = 0 ;\n i < def -> nredirdevs ;\n i ++ ) {\n int thisidx ;\n if ( ( thisidx = qemuDomainDeviceAliasIndex ( & def -> redirdevs [ i ] -> info , \"redir\" ) ) < 0 ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"Unable to determine device index for redirected device\" ) ) ;\n return - 1 ;\n }\n if ( thisidx >= idx ) idx = thisidx + 1 ;\n }\n }\n if ( virAsprintf ( & redirdev -> info . alias , \"redir%d\" , idx ) < 0 ) return - 1 ;\n return 0 ;\n }"}
{"idx": 11969, "target": 0, "func": "TEST_P ( GLES2DecoderTestWithCHROMIUMPathRendering , MatrixLoadIdentityCHROMIUMValidArgs ) {\n EXPECT_CALL ( * gl_ , MatrixLoadIdentityEXT ( GL_PATH_PROJECTION_CHROMIUM ) ) ;\n SpecializedSetup < cmds : : MatrixLoadIdentityCHROMIUM , 0 > ( true ) ;\n cmds : : MatrixLoadIdentityCHROMIUM cmd ;\n cmd . Init ( GL_PATH_PROJECTION_CHROMIUM ) ;\n EXPECT_EQ ( error : : kNoError , ExecuteCmd ( cmd ) ) ;\n EXPECT_EQ ( GL_NO_ERROR , GetGLError ( ) ) ;\n }"}
{"idx": 11970, "target": 0, "func": "void proto_register_btatt ( void ) {\n module_t * module ;\n expert_module_t * expert_btatt ;\n static hf_register_info hf [ ] = {\n {\n & hf_btatt_opcode , {\n \"Opcode\" , \"btatt.opcode\" , FT_UINT8 , BASE_HEX , VALS ( opcode_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_opcode_authentication_signature , {\n \"Authentication Signature\" , \"btatt.opcode.authentication_signature\" , FT_BOOLEAN , 8 , NULL , 0x80 , NULL , HFILL }\n }\n , {\n & hf_btatt_opcode_command , {\n \"Command\" , \"btatt.opcode.command\" , FT_BOOLEAN , 8 , NULL , 0x40 , NULL , HFILL }\n }\n , {\n & hf_btatt_opcode_method , {\n \"Method\" , \"btatt.opcode.method\" , FT_UINT8 , BASE_HEX , VALS ( opcode_vals ) , 0x3F , NULL , HFILL }\n }\n , {\n & hf_btatt_handles_info , {\n \"Handles Info\" , \"btatt.handles_info\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_attribute_data , {\n \"Attribute Data\" , \"btatt.attribute_data\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_handle , {\n \"Handle\" , \"btatt.handle\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_starting_handle , {\n \"Starting Handle\" , \"btatt.starting_handle\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ending_handle , {\n \"Ending Handle\" , \"btatt.ending_handle\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_group_end_handle , {\n \"Group End Handle\" , \"btatt.group_end_handle\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_value , {\n \"Value\" , \"btatt.value\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_req_opcode_in_error , {\n \"Request Opcode in Error\" , \"btatt.req_opcode_in_error\" , FT_UINT8 , BASE_HEX , VALS ( opcode_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_handle_in_error , {\n \"Handle in Error\" , \"btatt.handle\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_error_code , {\n \"Error Code\" , \"btatt.error_code\" , FT_UINT8 , BASE_HEX , VALS ( error_code_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_error_code_aios , {\n \"Error Code\" , \"btatt.error_code\" , FT_UINT8 , BASE_HEX , VALS ( error_code_aios_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_error_code_ans , {\n \"Error Code\" , \"btatt.error_code\" , FT_UINT8 , BASE_HEX , VALS ( error_code_ans_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_error_code_bms , {\n \"Error Code\" , \"btatt.error_code\" , FT_UINT8 , BASE_HEX , VALS ( error_code_bms_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_error_code_cgms , {\n \"Error Code\" , \"btatt.error_code\" , FT_UINT8 , BASE_HEX , VALS ( error_code_cgms_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_error_code_cps , {\n \"Error Code\" , \"btatt.error_code\" , FT_UINT8 , BASE_HEX , VALS ( error_code_cps_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_error_code_cscs , {\n \"Error Code\" , \"btatt.error_code\" , FT_UINT8 , BASE_HEX , VALS ( error_code_cscs_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_error_code_cts , {\n \"Error Code\" , \"btatt.error_code\" , FT_UINT8 , BASE_HEX , VALS ( error_code_cts_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_error_code_ess , {\n \"Error Code\" , \"btatt.error_code\" , FT_UINT8 , BASE_HEX , VALS ( error_code_ess_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_error_code_gls , {\n \"Error Code\" , \"btatt.error_code\" , FT_UINT8 , BASE_HEX , VALS ( error_code_gls_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_error_code_hps , {\n \"Error Code\" , \"btatt.error_code\" , FT_UINT8 , BASE_HEX , VALS ( error_code_hps_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_error_code_hrs , {\n \"Error Code\" , \"btatt.error_code\" , FT_UINT8 , BASE_HEX , VALS ( error_code_hrs_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_error_code_hts , {\n \"Error Code\" , \"btatt.error_code\" , FT_UINT8 , BASE_HEX , VALS ( error_code_hts_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_error_code_ips , {\n \"Error Code\" , \"btatt.error_code\" , FT_UINT8 , BASE_HEX , VALS ( error_code_ips_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_error_code_ots , {\n \"Error Code\" , \"btatt.error_code\" , FT_UINT8 , BASE_HEX , VALS ( error_code_ots_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_error_code_rscs , {\n \"Error Code\" , \"btatt.error_code\" , FT_UINT8 , BASE_HEX , VALS ( error_code_rscs_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_error_code_uds , {\n \"Error Code\" , \"btatt.error_code\" , FT_UINT8 , BASE_HEX , VALS ( error_code_uds_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_service_uuid16 , {\n \"Service UUID\" , \"btatt.service_uuid16\" , FT_UINT16 , BASE_HEX | BASE_EXT_STRING , & bluetooth_uuid_vals_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_service_uuid128 , {\n \"Service UUID\" , \"btatt.service_uuid128\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_characteristic_uuid16 , {\n \"Characteristic UUID\" , \"btatt.characteristic_uuid16\" , FT_UINT16 , BASE_HEX | BASE_EXT_STRING , & bluetooth_uuid_vals_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_characteristic_uuid128 , {\n \"Characteristic UUID\" , \"btatt.characteristic_uuid128\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_uuid16 , {\n \"UUID\" , \"btatt.uuid16\" , FT_UINT16 , BASE_HEX | BASE_EXT_STRING , & bluetooth_uuid_vals_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_uuid128 , {\n \"UUID\" , \"btatt.uuid128\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_client_rx_mtu , {\n \"Client Rx MTU\" , \"btatt.client_rx_mtu\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_server_rx_mtu , {\n \"Server Rx MTU\" , \"btatt.server_rx_mtu\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_uuid_format , {\n \"UUID Format\" , \"btatt.uuid_format\" , FT_UINT8 , BASE_HEX , VALS ( uuid_format_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_length , {\n \"Length\" , \"btatt.length\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , \"Length of Handle/Value Pair\" , HFILL }\n }\n , {\n & hf_btatt_offset , {\n \"Offset\" , \"btatt.offset\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_flags , {\n \"Flags\" , \"btatt.flags\" , FT_UINT8 , BASE_HEX , VALS ( flags_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_sign_counter , {\n \"Sign Counter\" , \"btatt.sign_counter\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_signature , {\n \"Signature\" , \"btatt.signature\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_characteristic_properties , {\n \"Characteristic Properties\" , \"btatt.characteristic_properties\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_characteristic_properties_extended_properties , {\n \"Extended Properties\" , \"btatt.characteristic_properties.extended_properties\" , FT_BOOLEAN , 8 , NULL , 0x80 , NULL , HFILL }\n }\n , {\n & hf_btatt_characteristic_properties_authenticated_signed_writes , {\n \"Authenticated Signed Writes\" , \"btatt.characteristic_properties.authenticated_signed_writes\" , FT_BOOLEAN , 8 , NULL , 0x40 , NULL , HFILL }\n }\n , {\n & hf_btatt_characteristic_properties_indicate , {\n \"Indicate\" , \"btatt.characteristic_properties.indicate\" , FT_BOOLEAN , 8 , NULL , 0x20 , NULL , HFILL }\n }\n , {\n & hf_btatt_characteristic_properties_notify , {\n \"Notify\" , \"btatt.characteristic_properties.notify\" , FT_BOOLEAN , 8 , NULL , 0x10 , NULL , HFILL }\n }\n , {\n & hf_btatt_characteristic_properties_write , {\n \"Write\" , \"btatt.characteristic_properties.write\" , FT_BOOLEAN , 8 , NULL , 0x08 , NULL , HFILL }\n }\n , {\n & hf_btatt_characteristic_properties_write_without_response , {\n \"Write without Response\" , \"btatt.characteristic_properties.write_without_response\" , FT_BOOLEAN , 8 , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_btatt_characteristic_properties_read , {\n \"Read\" , \"btatt.characteristic_properties.read\" , FT_BOOLEAN , 8 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btatt_characteristic_properties_broadcast , {\n \"Broadcast\" , \"btatt.characteristic_properties.broadcast\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btatt_characteristic_value_handle , {\n \"Characteristic Value Handle\" , \"btatt.handle\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_included_service_handle , {\n \"Included Service Handle\" , \"btatt.handle\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_information_data , {\n \"Information Data\" , \"btatt.information_data\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_characteristic_configuration_client , {\n \"Characteristic Configuration Client\" , \"btatt.characteristic_configuration_client\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_characteristic_configuration_client_reserved , {\n \"Reseved\" , \"btatt.characteristic_configuration_client.reserved\" , FT_UINT16 , BASE_HEX , NULL , 0xFFFC , NULL , HFILL }\n }\n , {\n & hf_btatt_characteristic_configuration_client_indication , {\n \"Indication\" , \"btatt.characteristic_configuration_client.indication\" , FT_BOOLEAN , 16 , NULL , 0x0002 , NULL , HFILL }\n }\n , {\n & hf_btatt_characteristic_configuration_client_notification , {\n \"Notification\" , \"btatt.characteristic_configuration_client.notification\" , FT_BOOLEAN , 16 , NULL , 0x0001 , NULL , HFILL }\n }\n , {\n & hf_btatt_characteristic_configuration_server , {\n \"Characteristic Configuration Server\" , \"btatt.characteristic_configuration_server\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_characteristic_configuration_server_reserved , {\n \"Reseved\" , \"btatt.characteristic_configuration_server.reserved\" , FT_UINT16 , BASE_HEX , NULL , 0xFFFE , NULL , HFILL }\n }\n , {\n & hf_btatt_characteristic_configuration_server_broadcast , {\n \"Broadcast\" , \"btatt.characteristic_configuration_server.broadcast\" , FT_BOOLEAN , 16 , NULL , 0x0001 , NULL , HFILL }\n }\n , {\n & hf_btatt_hogp_protocol_mode , {\n \"Protocol Mode\" , \"btatt.hogp.protocol_mode\" , FT_UINT8 , BASE_HEX , VALS ( hogp_protocol_mode_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_report_reference_report_id , {\n \"Report ID\" , \"btatt.report_reference.report_id\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_report_reference_report_type , {\n \"Report Type\" , \"btatt.report_reference.report_id\" , FT_UINT8 , BASE_HEX , VALS ( report_reference_report_type_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_hogp_bcd_hid , {\n \"bcdHID\" , \"btatt.hogp.bcd_hid\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_hogp_b_country_code , {\n \"bCountryCode\" , \"btatt.hogp.b_country_code\" , FT_UINT8 , BASE_HEX , VALS ( hid_country_code_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_hogp_flags , {\n \"Flags\" , \"btatt.hogp.flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_hogp_flags_reserved , {\n \"Reserved\" , \"btatt.hogp.flags.reserved\" , FT_UINT8 , BASE_HEX , NULL , 0xFC , NULL , HFILL }\n }\n , {\n & hf_btatt_hogp_flags_normally_connectable , {\n \"Normally Connectable\" , \"btatt.hogp.flags.normally_connectable\" , FT_BOOLEAN , 8 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btatt_hogp_flags_remote_wake , {\n \"Remote Wake\" , \"btatt.hogp.flags.remote_wake\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btatt_characteristic_user_description , {\n \"Characteristic User Description\" , \"btatt.characteristic_user_description\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_characteristic_extended_properties , {\n \"Characteristic Extended Properties\" , \"btatt.characteristic_extended_properties\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_characteristic_extended_properties_reserved , {\n \"Reserved\" , \"btatt.characteristic_extended_properties.reserved\" , FT_UINT16 , BASE_HEX , NULL , 0xFFFC , NULL , HFILL }\n }\n , {\n & hf_btatt_characteristic_extended_properties_writable_auxiliaries , {\n \"Writable Auxiliaries\" , \"btatt.characteristic_extended_properties.writable_auxiliaries\" , FT_UINT16 , BASE_HEX , NULL , 0x0002 , NULL , HFILL }\n }\n , {\n & hf_btatt_characteristic_extended_properties_reliable_write , {\n \"Reliable Write\" , \"btatt.characteristic_extended_properties.reliable_write\" , FT_UINT16 , BASE_HEX , NULL , 0x0001 , NULL , HFILL }\n }\n , {\n & hf_btatt_characteristic_presentation_format , {\n \"Format\" , \"btatt.characteristic_presentation.format\" , FT_UINT8 , BASE_HEX , VALS ( characteristic_presentation_format_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_characteristic_presentation_exponent , {\n \"Exponent\" , \"btatt.characteristic_presentation.exponent\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_characteristic_presentation_unit , {\n \"Unit\" , \"btatt.characteristic_presentation.unit\" , FT_UINT16 , BASE_HEX | BASE_EXT_STRING , & bluetooth_uuid_vals_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_characteristic_presentation_namespace , {\n \"Namespace\" , \"btatt.characteristic_presentation.namespace\" , FT_UINT8 , BASE_HEX , VALS ( characteristic_presentation_namespace_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_characteristic_presentation_namespace_description , {\n \"Namespace Description\" , \"btatt.characteristic_presentation.namespace_description\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_characteristic_presentation_namespace_description_btsig , {\n \"Namespace Description\" , \"btatt.characteristic_presentation.namespace_description\" , FT_UINT16 , BASE_HEX , VALS ( characteristic_presentation_namespace_description_btsig_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_esp_trigger_logic , {\n \"Trigger Logic\" , \"btatt.esp.trigger_logic\" , FT_UINT8 , BASE_HEX , VALS ( esp_trigger_logic_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_esp_condition , {\n \"Trigger Logic\" , \"btatt.esp.condition\" , FT_UINT8 , BASE_HEX , VALS ( esp_condition_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_esp_operand , {\n \"Operand\" , \"btatt.esp.operand\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_esp_flags , {\n \"Flags\" , \"btatt.esp.flags\" , FT_UINT16 , BASE_HEX , NULL , 0xFFFF , NULL , HFILL }\n }\n , {\n & hf_btatt_esp_sampling_function , {\n \"Sampling Function\" , \"btatt.esp.sampling_function\" , FT_UINT8 , BASE_HEX , VALS ( esp_sampling_function_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_esp_measurement_period , {\n \"Measurement Period\" , \"btatt.esp.measurement_period\" , FT_UINT24 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_esp_update_interval , {\n \"Update Interval\" , \"btatt.esp.update_interval\" , FT_UINT24 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_esp_application , {\n \"Application\" , \"btatt.esp.application\" , FT_UINT8 , BASE_HEX , VALS ( esp_application_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_esp_measurement_uncertainty , {\n \"Measurement Uncertainty\" , \"btatt.esp.measurement_uncertainty\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_device_name , {\n \"Device Name\" , \"btatt.device_name\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_appearance , {\n \"Appearance\" , \"btatt.appearance\" , FT_UINT16 , BASE_DEC_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_appearance_category , {\n \"Category\" , \"btatt.appearance.category\" , FT_UINT16 , BASE_DEC_HEX , VALS ( appearance_category_vals ) , 0xFFC0 , NULL , HFILL }\n }\n , {\n & hf_btatt_appearance_subcategory , {\n \"Subcategory\" , \"btatt.appearance.subcategory\" , FT_UINT16 , BASE_DEC_HEX , VALS ( appearance_subcategory_generic_vals ) , 0x003F , NULL , HFILL }\n }\n , {\n & hf_btatt_appearance_subcategory_watch , {\n \"Subcategory\" , \"btatt.appearance.subcategory.watch\" , FT_UINT16 , BASE_DEC_HEX , VALS ( appearance_subcategory_watch_vals ) , 0x003F , NULL , HFILL }\n }\n , {\n & hf_btatt_appearance_subcategory_thermometer , {\n \"Subcategory\" , \"btatt.appearance.subcategory.thermometer\" , FT_UINT16 , BASE_DEC_HEX , VALS ( appearance_subcategory_thermometer_vals ) , 0x003F , NULL , HFILL }\n }\n , {\n & hf_btatt_appearance_subcategory_heart_rate , {\n \"Subcategory\" , \"btatt.appearance.subcategory.heart_rate\" , FT_UINT16 , BASE_DEC_HEX , VALS ( appearance_subcategory_heart_rate_vals ) , 0x003F , NULL , HFILL }\n }\n , {\n & hf_btatt_appearance_subcategory_blood_pressure , {\n \"Subcategory\" , \"btatt.appearance.subcategory.blood_pressure\" , FT_UINT16 , BASE_DEC_HEX , VALS ( appearance_subcategory_blood_pressure_vals ) , 0x003F , NULL , HFILL }\n }\n , {\n & hf_btatt_appearance_subcategory_hid , {\n \"Subcategory\" , \"btatt.appearance.subcategory.hid\" , FT_UINT16 , BASE_DEC_HEX , VALS ( appearance_subcategory_hid_vals ) , 0x003F , NULL , HFILL }\n }\n , {\n & hf_btatt_appearance_subcategory_running_walking_sensor , {\n \"Subcategory\" , \"btatt.appearance.subcategory.running_walking_sensor\" , FT_UINT16 , BASE_DEC_HEX , VALS ( appearance_subcategory_running_walking_sensor_vals ) , 0x003F , NULL , HFILL }\n }\n , {\n & hf_btatt_appearance_subcategory_cycling , {\n \"Subcategory\" , \"btatt.appearance.subcategory.cycling\" , FT_UINT16 , BASE_DEC_HEX , VALS ( appearance_subcategory_cycling_vals ) , 0x003F , NULL , HFILL }\n }\n , {\n & hf_btatt_appearance_subcategory_pulse_oximeter , {\n \"Subcategory\" , \"btatt.appearance.subcategory.pulse_oximeter\" , FT_UINT16 , BASE_DEC_HEX , VALS ( appearance_subcategory_pulse_oximeter_vals ) , 0x003F , NULL , HFILL }\n }\n , {\n & hf_btatt_appearance_subcategory_personal_mobility_device , {\n \"Personal Mobility Device\" , \"btatt.appearance.subcategory.personal_mobility_device\" , FT_UINT16 , BASE_DEC_HEX , VALS ( appearance_subcategory_personal_mobility_device_vals ) , 0x003F , NULL , HFILL }\n }\n , {\n & hf_btatt_appearance_subcategory_insulin_pump , {\n \"Insulin Pump\" , \"btatt.appearance.subcategory.insulin_pump\" , FT_UINT16 , BASE_DEC_HEX , VALS ( appearance_subcategory_insulin_pump_vals ) , 0x003F , NULL , HFILL }\n }\n , {\n & hf_btatt_appearance_subcategory_outdoor_sports_activity , {\n \"Subcategory\" , \"btatt.appearance.subcategory.outdoor_sports_activity\" , FT_UINT16 , BASE_DEC_HEX , VALS ( appearance_subcategory_outdoor_sports_activity_vals ) , 0x003F , NULL , HFILL }\n }\n , {\n & hf_btatt_peripheral_privacy_flag , {\n \"Peripheral Privacy\" , \"btatt.peripheral_privacy_flag\" , FT_BOOLEAN , 8 , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_reconnection_address , {\n \"Reconnection Address\" , \"btatt.reconnection_address\" , FT_ETHER , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_minimum_connection_interval , {\n \"Minimum Connection Interval\" , \"btatt.minimum_connection_interval\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_maximum_connection_interval , {\n \"Maximum Connection Interval\" , \"btatt.maximum_connection_interval\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_slave_latency , {\n \"Slave Latency\" , \"btatt.slave_latency\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_connection_supervision_timeout_multiplier , {\n \"Connection Supervision Timeout Multiplier\" , \"btatt.connection_supervision_timeout_multiplier\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_alert_level , {\n \"Alert Level\" , \"btatt.alert_level\" , FT_UINT8 , BASE_HEX , VALS ( alert_level_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_tx_power_level , {\n \"Tx Power Level\" , \"btatt.tx_power_level\" , FT_INT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_year , {\n \"Year\" , \"btatt.year\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_month , {\n \"Month\" , \"btatt.month\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_day , {\n \"Day\" , \"btatt.day\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_hours , {\n \"Hours\" , \"btatt.hours\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_minutes , {\n \"Minutes\" , \"btatt.minutes\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_seconds , {\n \"Seconds\" , \"btatt.seconds\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_day_of_week , {\n \"Day of Week\" , \"btatt.day_of_week\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_fractions100 , {\n \"Fractions100\" , \"btatt.fractions100\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , \"1/100th of a second\" , HFILL }\n }\n , {\n & hf_btatt_fractions256 , {\n \"Fractions256\" , \"btatt.fractions256\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , \"1/256th of a second\" , HFILL }\n }\n , {\n & hf_btatt_dst_offset , {\n \"Daylight Saving Time Offset\" , \"btatt.dst_offset\" , FT_UINT8 , BASE_HEX , VALS ( dst_offset_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_model_number_string , {\n \"Model Number String\" , \"btatt.model_number_string\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_serial_number_string , {\n \"Serial Number String\" , \"btatt.serial_number_string\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_firmware_revision_string , {\n \"Firmware Revision String\" , \"btatt.firmware_revision_string\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_hardware_revision_string , {\n \"Hardware Revision String\" , \"btatt.hardware_revision_string\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_software_revision_string , {\n \"Software Revision String\" , \"btatt.software_revision_string\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_manufacturer_string , {\n \"Manufacturer String\" , \"btatt.manufacturer_string\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_system_id_manufacturer_identifier , {\n \"Manufacturer Identifier\" , \"btatt.system_id.manufacturer_identifier\" , FT_UINT40 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_system_id_organizationally_unique_identifier , {\n \"Organizationally Unique Identifier\" , \"btatt.system_id.organizationally_unique_identifier\" , FT_UINT24 , BASE_OUI , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_timezone , {\n \"Timezone\" , \"btatt.timezone\" , FT_INT8 , BASE_DEC , VALS ( timezone_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_time_accuracy , {\n \"Time Accuracy\" , \"btatt.time_accuracy\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_time_source , {\n \"Time Source\" , \"btatt.time_source\" , FT_UINT8 , BASE_DEC , VALS ( time_source_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_time_days_since_update , {\n \"Days Since Update\" , \"btatt.days_since_update\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_time_hours_since_update , {\n \"Hours Since Update\" , \"btatt.hours_since_update\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_time_update_control_point , {\n \"Update Control Point\" , \"btatt.update_control_point\" , FT_UINT8 , BASE_HEX , VALS ( time_update_control_point_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_time_current_state , {\n \"Current State\" , \"btatt.time_current_state\" , FT_UINT8 , BASE_HEX , VALS ( time_current_state_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_time_result , {\n \"Result\" , \"btatt.time_result\" , FT_UINT8 , BASE_HEX , VALS ( time_result_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_battery_level , {\n \"Battery Level\" , \"btatt.battery_level\" , FT_UINT8 , BASE_DEC | BASE_UNIT_STRING , & units_percent , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_battery_power_state , {\n \"Battery Power State\" , \"btatt.battery_power_state\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_battery_power_state_level , {\n \"Level\" , \"btatt.battery_power_state.level\" , FT_UINT8 , BASE_HEX , VALS ( battery_power_state_level_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_battery_power_state_charging , {\n \"Charging\" , \"btatt.battery_power_state.charging\" , FT_UINT8 , BASE_HEX , VALS ( battery_power_state_charging_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_battery_power_state_discharging , {\n \"Discharging\" , \"btatt.battery_power_state.discharging\" , FT_UINT8 , BASE_HEX , VALS ( battery_power_state_discharging_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_battery_power_state_present , {\n \"Present\" , \"btatt.battery_power_state.present\" , FT_UINT8 , BASE_HEX , VALS ( battery_power_state_present_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_temperature_type , {\n \"Temperature Type\" , \"btatt.temperature_type\" , FT_UINT8 , BASE_HEX , VALS ( temperature_type_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_measurement_interval , {\n \"Measurement Interval\" , \"btatt.measurement_interval\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_time_adjust_reason , {\n \"Adjust Reason\" , \"btatt.adjust_reason\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_time_adjust_reason_reserved , {\n \"Reserved\" , \"btatt.adjust_reason.reserved\" , FT_UINT8 , BASE_HEX , NULL , 0xF0 , NULL , HFILL }\n }\n , {\n & hf_btatt_time_adjust_reason_change_of_dst , {\n \"Change of DST\" , \"btatt.adjust_reason.change_of_dst\" , FT_BOOLEAN , 8 , NULL , 0x08 , NULL , HFILL }\n }\n , {\n & hf_btatt_time_adjust_reason_change_of_timezone , {\n \"Change of Timezone\" , \"btatt.adjust_reason.change_of_timezone\" , FT_BOOLEAN , 8 , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_btatt_time_adjust_reason_external_reference_time_update , {\n \"External Reference Time Update\" , \"btatt.adjust_reason.external_reference_time_update\" , FT_BOOLEAN , 8 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btatt_time_adjust_reason_manual_time_update , {\n \"Manual Time Update\" , \"btatt.adjust_reason.manual_time_update\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btatt_magnetic_declination , {\n \"Magnetic Declination\" , \"btatt.magnetic_declination\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_scan_refresh , {\n \"Scan Refresh\" , \"btatt.scan_refresh\" , FT_UINT8 , BASE_HEX , VALS ( scan_refresh_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_sensor_location , {\n \"Body Sensor Location\" , \"btatt.body_sensor_location\" , FT_UINT8 , BASE_HEX , VALS ( body_sensor_location_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_heart_rate_control_point , {\n \"Heart Rate Control Point\" , \"btatt.heart_rate_control_point\" , FT_UINT8 , BASE_HEX , VALS ( heart_rate_control_point_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_alert_status , {\n \"Alert Status\" , \"btatt.alert.status\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_alert_status_reserved , {\n \"Reserved\" , \"btatt.alert.status.reserved\" , FT_UINT8 , BASE_HEX , NULL , 0xF8 , NULL , HFILL }\n }\n , {\n & hf_btatt_alert_status_display_alert_status , {\n \"Display Alert Status\" , \"btatt.alert.status.display_alert_status\" , FT_BOOLEAN , 8 , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_btatt_alert_status_vibrate_state , {\n \"Vibrate State\" , \"btatt.alert.status.vibrate_state\" , FT_BOOLEAN , 8 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btatt_alert_status_ringer_state , {\n \"Ringer State\" , \"btatt.alert_status.ringer_state\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btatt_ringer_control_point , {\n \"Ringer Control Point\" , \"btatt.ringer_control_point\" , FT_UINT8 , BASE_HEX , VALS ( ringer_control_point_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ringer_setting , {\n \"Ringer Setting\" , \"btatt.ringer_setting\" , FT_UINT8 , BASE_HEX , VALS ( ringer_setting_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_alert_category_id_bitmask_1 , {\n \"Alert Category ID Bitmask 1\" , \"btatt.alert.category_id_bitmask_1\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_alert_category_id_bitmask_1_schedule , {\n \"Schedule\" , \"btatt.alert.category_id_bitmask_1.schedule\" , FT_UINT8 , BASE_HEX , NULL , 0x80 , NULL , HFILL }\n }\n , {\n & hf_btatt_alert_category_id_bitmask_1_voice_mail , {\n \"Voice Mail\" , \"btatt.alert.category_id_bitmask_1.voice_mail\" , FT_UINT8 , BASE_HEX , NULL , 0x40 , NULL , HFILL }\n }\n , {\n & hf_btatt_alert_category_id_bitmask_1_sms_mms , {\n \"SMS/MMS\" , \"btatt.alert.category_id_bitmask_1.sms_mms\" , FT_UINT8 , BASE_HEX , NULL , 0x20 , NULL , HFILL }\n }\n , {\n & hf_btatt_alert_category_id_bitmask_1_missed_call , {\n \"Missed Call\" , \"btatt.alert.category_id_bitmask_1.missed_call\" , FT_UINT8 , BASE_HEX , NULL , 0x10 , NULL , HFILL }\n }\n , {\n & hf_btatt_alert_category_id_bitmask_1_call , {\n \"Call\" , \"btatt.alert.category_id_bitmask_1.call\" , FT_UINT8 , BASE_HEX , NULL , 0x08 , NULL , HFILL }\n }\n , {\n & hf_btatt_alert_category_id_bitmask_1_news , {\n \"News\" , \"btatt.alert.category_id_bitmask_1.news\" , FT_UINT8 , BASE_HEX , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_btatt_alert_category_id_bitmask_1_email , {\n \"Email\" , \"btatt.alert.category_id_bitmask_1.email\" , FT_UINT8 , BASE_HEX , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btatt_alert_category_id_bitmask_1_simple_alert , {\n \"Simple Alert\" , \"btatt.alert.category_id_bitmask_1.simple_alert\" , FT_UINT8 , BASE_HEX , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btatt_alert_category_id_bitmask_2 , {\n \"Alert Category ID Bitmask 2\" , \"btatt.alert.category_id_bitmask_2\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_alert_category_id_bitmask_2_reserved , {\n \"Reserved\" , \"btatt.alert.category_id_bitmask_2.reserved\" , FT_UINT8 , BASE_HEX , NULL , 0xFC , NULL , HFILL }\n }\n , {\n & hf_btatt_alert_category_id_bitmask_2_instant_message , {\n \"Instant Message\" , \"btatt.alert.category_id_bitmask_2.instant_message\" , FT_UINT8 , BASE_HEX , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btatt_alert_category_id_bitmask_2_high_prioritized_alert , {\n \"High Prioritized Alert\" , \"btatt.alert.category_id_bitmask_2.high_prioritized_alert\" , FT_UINT8 , BASE_HEX , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btatt_alert_category_id , {\n \"Alert Category ID\" , \"btatt.alert.category_id\" , FT_UINT8 , BASE_HEX , VALS ( alert_category_id_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_alert_command_id , {\n \"Alert Command ID\" , \"btatt.alert.command_id\" , FT_UINT8 , BASE_HEX , VALS ( alert_command_id_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_alert_unread_count , {\n \"Unread Count\" , \"btatt.alert.unread_count\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_alert_number_of_new_alert , {\n \"Number of New Alert\" , \"btatt.alert.number_of_new_alert\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_alert_text_string_information , {\n \"Text String Information\" , \"btatt.text_string_information\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_blood_pressure_feature , {\n \"Blood Pressure Feature\" , \"btatt.blood_pressure.feature\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_blood_pressure_feature_reserved , {\n \"Reserved\" , \"btatt.blood_pressure.feature.reserved\" , FT_UINT16 , BASE_HEX , NULL , 0xFFC0 , NULL , HFILL }\n }\n , {\n & hf_btatt_blood_pressure_feature_multiple_bond , {\n \"Multiple Bond\" , \"btatt.blood_pressure.feature.multiple_bond\" , FT_BOOLEAN , 16 , NULL , 0x20 , NULL , HFILL }\n }\n , {\n & hf_btatt_blood_pressure_feature_measurement_position_detection , {\n \"Measurement Position Detection\" , \"btatt.blood_pressure.feature.measurement_position_detection\" , FT_BOOLEAN , 16 , NULL , 0x10 , NULL , HFILL }\n }\n , {\n & hf_btatt_blood_pressure_feature_puls_rate_range , {\n \"Puls Rate Range\" , \"btatt.blood_pressure.feature.puls_rate_range\" , FT_BOOLEAN , 16 , NULL , 0x08 , NULL , HFILL }\n }\n , {\n & hf_btatt_blood_pressure_feature_irregular_pulse_detection , {\n \"Irregular Pulse Detection\" , \"btatt.blood_pressure.feature.irregular_pulse_detection\" , FT_BOOLEAN , 16 , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_btatt_blood_pressure_feature_cuff_fit_detection , {\n \"Cuff Fit Detection\" , \"btatt.blood_pressure.feature.cuff_fit_detection\" , FT_BOOLEAN , 16 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btatt_blood_pressure_feature_body_movement_detection , {\n \"Body Movement Detection\" , \"btatt.blood_pressure.feature.body_movement_detection\" , FT_BOOLEAN , 16 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btatt_hogp_hid_control_point_command , {\n \"HID Control Point Command\" , \"btatt.hogp.hid_control_point_command\" , FT_UINT8 , BASE_HEX , VALS ( hid_control_point_command_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_le_scan_interval , {\n \"LE Scan Interval\" , \"btatt.le_scan_interval\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_le_scan_window , {\n \"LE Scan Window\" , \"btatt.le_scan_window\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_pnp_id_vendor_id_source , {\n \"Vendor ID Source\" , \"btatt.pnp_id.vendor_id_source\" , FT_UINT16 , BASE_HEX , VALS ( pnp_id_vendor_id_source_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_btatt_pnp_id_vendor_id , {\n \"Vendor ID\" , \"btatt.pnp_id.vendor_id\" , FT_UINT16 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_btatt_pnp_id_vendor_id_bluetooth_sig , {\n \"Vendor ID\" , \"btatt.pnp_id.vendor_id\" , FT_UINT16 , BASE_HEX | BASE_EXT_STRING , & bluetooth_company_id_vals_ext , 0 , NULL , HFILL }\n }\n , {\n & hf_btatt_pnp_id_vendor_id_usb_forum , {\n \"Vendor ID\" , \"btatt.pnp_id.vendor_id\" , FT_UINT16 , BASE_HEX | BASE_EXT_STRING , & ext_usb_vendors_vals , 0 , NULL , HFILL }\n }\n , {\n & hf_btatt_pnp_id_product_id , {\n \"Product ID\" , \"btatt.pnp_id.product_id\" , FT_UINT16 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_btatt_pnp_id_product_version , {\n \"Version\" , \"btatt.pnp_id.product_version\" , FT_UINT16 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_feature , {\n \"Glucose Feature\" , \"btatt.glucose.feature\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_feature_reserved , {\n \"Reserved\" , \"btatt.glucose.feature.reserved\" , FT_BOOLEAN , 16 , NULL , 0xF800 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_feature_multiple_bond , {\n \"Multiple Bond\" , \"btatt.glucose.feature.multiple_bond\" , FT_BOOLEAN , 16 , NULL , 0x0400 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_feature_time_fault , {\n \"Time Fault\" , \"btatt.glucose.feature.time_fault\" , FT_BOOLEAN , 16 , NULL , 0x0200 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_feature_general_device_fault , {\n \"General Device Fault\" , \"btatt.glucose.feature.general_device_fault\" , FT_BOOLEAN , 16 , NULL , 0x0100 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_feature_sensor_read_interrupt_detection , {\n \"Sensor Read Interrupt Detection\" , \"btatt.glucose.feature.sensor_read_interrupt_detection\" , FT_BOOLEAN , 16 , NULL , 0x0080 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_feature_sensor_temperature_high_low_detection , {\n \"Sensor Temperature High-Low Detection\" , \"btatt.glucose.feature.sensor_temperature_high_low_detection\" , FT_BOOLEAN , 16 , NULL , 0x0040 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_feature_sensor_result_high_low_detection , {\n \"Sensor Result High-Low Detection\" , \"btatt.glucose.feature.sensor_result_high_low_detection\" , FT_BOOLEAN , 16 , NULL , 0x0020 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_feature_sensor_strip_type_error_detection , {\n \"Sensor Strip Type Error Detection\" , \"btatt.glucose.feature.sensor_strip_type_error_detection\" , FT_BOOLEAN , 16 , NULL , 0x0010 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_feature_sensor_strip_insertion_error_detection , {\n \"Sensor Strip Insertion Error Detection\" , \"btatt.glucose.feature.sensor_strip_insertion_error_detection\" , FT_BOOLEAN , 16 , NULL , 0x0008 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_feature_sensor_sample_size , {\n \"Sensor Sample Size\" , \"btatt.glucose.feature.sensor_sample_size\" , FT_BOOLEAN , 16 , NULL , 0x0004 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_feature_sensor_malfunction_detection , {\n \"Sensor Malfunction Detection\" , \"btatt.glucose.feature.sensor_malfunction_detection\" , FT_BOOLEAN , 16 , NULL , 0x0002 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_feature_low_battery_detection_during_measurement , {\n \"Low Battery Detection During Measurement\" , \"btatt.glucose.feature.low_battery_detection_during_measurement\" , FT_BOOLEAN , 16 , NULL , 0x0001 , NULL , HFILL }\n }\n , {\n & hf_btatt_rsc_feature , {\n \"RSC Feature\" , \"btatt.rsc.feature\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_rsc_feature_reserved , {\n \"Reserved\" , \"btatt.rsc.feature.reserved\" , FT_BOOLEAN , 16 , NULL , 0xFF80 , NULL , HFILL }\n }\n , {\n & hf_btatt_rsc_feature_multiple_sensor_locations , {\n \"Multiple Sensor Locations\" , \"btatt.rsc.feature.multiple_sensor_locations\" , FT_BOOLEAN , 16 , NULL , 0x0010 , NULL , HFILL }\n }\n , {\n & hf_btatt_rsc_feature_calibration_procedure , {\n \"Calibration Procedure\" , \"btatt.rsc.feature.calibration_procedure\" , FT_BOOLEAN , 16 , NULL , 0x0008 , NULL , HFILL }\n }\n , {\n & hf_btatt_rsc_feature_walking_or_running_status , {\n \"Walking_or Running Status\" , \"btatt.rsc.feature.walking_or_running_status\" , FT_BOOLEAN , 16 , NULL , 0x0004 , NULL , HFILL }\n }\n , {\n & hf_btatt_rsc_feature_total_distance_measurement , {\n \"Total Distance Measurement\" , \"btatt.rsc.feature.total_distance_measurement\" , FT_BOOLEAN , 16 , NULL , 0x0002 , NULL , HFILL }\n }\n , {\n & hf_btatt_rsc_feature_instantaneous_stride_length_measurement , {\n \"Instantaneous Stride Length Measurement\" , \"btatt.rsc.feature.instantaneous_stride_length_measurement\" , FT_BOOLEAN , 16 , NULL , 0x0001 , NULL , HFILL }\n }\n , {\n & hf_btatt_csc_feature , {\n \"CSC Feature\" , \"btatt.csc.feature\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_csc_feature_reserved , {\n \"Reserved\" , \"btatt.csc.feature.reserved\" , FT_BOOLEAN , 16 , NULL , 0xFFF8 , NULL , HFILL }\n }\n , {\n & hf_btatt_csc_feature_multiple_sensor_locations , {\n \"Multiple Sensor Locations\" , \"btatt.csc.feature.multiple_sensor_locations\" , FT_BOOLEAN , 16 , NULL , 0x0004 , NULL , HFILL }\n }\n , {\n & hf_btatt_csc_feature_crank_revolution_data , {\n \"Crank Revolution Data\" , \"btatt.csc.feature.crank_revolution_data\" , FT_BOOLEAN , 16 , NULL , 0x0002 , NULL , HFILL }\n }\n , {\n & hf_btatt_csc_feature_wheel_revolution_data , {\n \"Wheel Revolution Data\" , \"btatt.csc.feature.wheel_revolution_data\" , FT_BOOLEAN , 16 , NULL , 0x0001 , NULL , HFILL }\n }\n , {\n & hf_btatt_sensor_location , {\n \"Sensor Location\" , \"btatt.sensor_location\" , FT_UINT8 , BASE_HEX , VALS ( sensor_location_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_elevation , {\n \"Elevation\" , \"btatt.elevation\" , FT_INT24 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_pressure , {\n \"Pressure\" , \"btatt.pressure\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_temperature , {\n \"Temperature\" , \"btatt.temperature\" , FT_INT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_humidity , {\n \"Humidity\" , \"btatt.humidity\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_true_wind_speed , {\n \"True Wind Speed\" , \"btatt.true_wind_speed\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_true_wind_direction , {\n \"True Wind Direction\" , \"btatt.true_wind_direction\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_apparent_wind_speed , {\n \"Apparent Wind Speed\" , \"btatt.apparent_wind_speed\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_apparent_wind_direction , {\n \"Apparent Wind Direction\" , \"btatt.apparent_wind_direction\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_gust_factor , {\n \"Gust Factor\" , \"btatt.gust_factor\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_pollen_concentration , {\n \"Pollen Concentration\" , \"btatt.pollen_concentration\" , FT_INT24 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_uv_index , {\n \"UV Index\" , \"btatt.uv_index\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_irradiance , {\n \"Irradiance\" , \"btatt.irradiance\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_rainfall , {\n \"Rainfall\" , \"btatt.rainfall\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_wind_chill , {\n \"Wind Chill\" , \"btatt.wind_chill\" , FT_INT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_heart_index , {\n \"Heart Index\" , \"btatt.heart_index\" , FT_INT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_dew_point , {\n \"Dew Point\" , \"btatt.dew_point\" , FT_INT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_descriptor_value_changed_flags , {\n \"Flags\" , \"btatt.descriptor_value_changed.flags\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_descriptor_value_changed_flags_reserved , {\n \"Reserved\" , \"btatt.descriptor_value_changed.flags.reserved\" , FT_BOOLEAN , 16 , NULL , 0xF800 , NULL , HFILL }\n }\n , {\n & hf_btatt_descriptor_value_changed_flags_change_to_characteristic_user_description_descriptor , {\n \"Change to Characteristic User Description Descriptor\" , \"btatt.descriptor_value_changed.flags.change_to_characteristic_user_description_descriptor\" , FT_BOOLEAN , 16 , NULL , 0x0010 , NULL , HFILL }\n }\n , {\n & hf_btatt_descriptor_value_changed_flags_change_to_es_measurement_descriptor , {\n \"Change to ES Measurement Descriptor\" , \"btatt.descriptor_value_changed.flags.change_to_es_measurement_descriptor\" , FT_BOOLEAN , 16 , NULL , 0x0008 , NULL , HFILL }\n }\n , {\n & hf_btatt_descriptor_value_changed_flags_change_to_es_configuration_descriptor , {\n \"Change to ES Configuration Descriptor\" , \"btatt.descriptor_value_changed.flags.change_to_es_configuration_descriptor\" , FT_BOOLEAN , 16 , NULL , 0x0004 , NULL , HFILL }\n }\n , {\n & hf_btatt_descriptor_value_changed_flags_change_to_one_or_more_es_trigger_setting_descriptors , {\n \"Change to One or More ES Trigger Setting Descriptors\" , \"btatt.descriptor_value_changed.flags.change_to_one_or_more_es_trigger_setting_descriptors\" , FT_BOOLEAN , 16 , NULL , 0x0002 , NULL , HFILL }\n }\n , {\n & hf_btatt_descriptor_value_changed_flags_source_of_change , {\n \"Source of Change\" , \"btatt.descriptor_value_changed.flags.source_of_change\" , FT_BOOLEAN , 16 , NULL , 0x0001 , NULL , HFILL }\n }\n , {\n & hf_btatt_aerobic_heart_rate_lower_limit , {\n \"Aerobic Heart Rate Lower Limit\" , \"btatt.aerobic_heart_rate_lower_limit\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_aerobic_threshold , {\n \"Aerobic Threshold\" , \"btatt.aerobic_threshold\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_age , {\n \"Age\" , \"btatt.age\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_anaerobic_heart_rate_lower_limit , {\n \"Anaerobic Heart Rate Lower Limit\" , \"btatt.anaerobic_heart_rate_lower_limit\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_anaerobic_heart_rate_upper_limit , {\n \"Anaerobic Heart Rate Upper Limit\" , \"btatt.anaerobic_heart_rate_upper_limit\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_anaerobic_threshold , {\n \"Anaerobic Threshold\" , \"btatt.anaerobic_threshold\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_aerobic_heart_rate_upper_limit , {\n \"Aerobic Heart Rate Upper Limit\" , \"btatt.aerobic_heart_rate_upper_limit\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_email_address , {\n \"Email Address\" , \"btatt.email_address\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_fat_burn_heart_rate_lower_limit , {\n \"Fat Burn Heart Rate Lower Limit\" , \"btatt.fat_burn_heart_rate_lower_limit\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_fat_burn_heart_rate_upper_limit , {\n \"Fat Burn Heart Rate Upper Limit\" , \"btatt.fat_burn_heart_rate_upper_limit\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_first_name , {\n \"First Name\" , \"btatt.first_name\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_five_zone_heart_rate_limits_very_light_light_limit , {\n \"Very Light/Light Limit\" , \"btatt.five_zone_heart_rate_limits.very_light_light_limit\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_five_zone_heart_rate_limits_light_moderate_limit , {\n \"Light/Moderate Limit,\" , \"btatt.five_zone_heart_rate_limits.light_moderate_limit\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_five_zone_heart_rate_limits_moderate_hard_limit , {\n \"Moderate/Hard Limit\" , \"btatt.five_zone_heart_rate_limits.moderate_hard_limit\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_five_zone_heart_rate_limits_hard_maximum_limit , {\n \"Hard/Maximum Limit\" , \"btatt.five_zone_heart_rate_limits.hard_maximum_limit\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_gender , {\n \"Gender\" , \"btatt.gender\" , FT_UINT8 , BASE_HEX , VALS ( gender_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_heart_rate_max , {\n \"Heart Rate Max\" , \"btatt.heart_rate_max\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_height , {\n \"Height\" , \"btatt.height\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_hip_circumference , {\n \"Hip Circumference\" , \"btatt.hip_circumference\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_last_name , {\n \"Last Name\" , \"btatt.last_name\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_maximum_recommended_heart_rate , {\n \"Maximum Recommended Heart Rate\" , \"btatt.maximum_recommended_heart_rate\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_resting_heart_rate , {\n \"Resting Heart Rate\" , \"btatt.resting_heart_rate\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_sport_type_for_aerobic_and_anaerobic_thresholds , {\n \"Sport Type for Aerobic and Anaerobic Thresholds\" , \"btatt.sport_type_for_aerobic_and_anaerobic_thresholds\" , FT_UINT8 , BASE_DEC , VALS ( sport_type_for_aerobic_and_anaerobic_thresholds_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_three_zone_heart_rate_limits_light_moderate , {\n \"Three zone Heart Rate Limits - Light (Fat burn) / Moderate (Aerobic) Limit\" , \"btatt.three_zone_heart_rate_limits.light_moderate\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_three_zone_heart_rate_limits_moderate_hard , {\n \"Three zone Heart Rate Limits - Moderate (Aerobic) / Hard (Anaerobic) Limit\" , \"btatt.three_zone_heart_rate_limits.moderate_hard\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_two_zone_heart_rate_limit_fat_burn_fitness , {\n \"Two zone Heart Rate Limit - Fat burn / Fitness Limit\" , \"btatt.two_zone_heart_rate_limit.fat_burn_fitness\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_vo2_max , {\n \"VO2 Max\" , \"btatt.vo2_max\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_waist_circumference , {\n \"Waist Circumference\" , \"btatt.waist_circumference\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_weight , {\n \"Weight\" , \"btatt.weight\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_database_change_increment , {\n \"Database Change Increment\" , \"btatt.database_change_increment\" , FT_UINT32 , BASE_DEC_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_user_index , {\n \"User Index\" , \"btatt.user_index\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_magnetic_flux_density_x , {\n \"X\" , \"btatt.hf_btatt_magnetic_flux_density.x\" , FT_INT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_magnetic_flux_density_y , {\n \"Y\" , \"btatt.hf_btatt_magnetic_flux_density.y\" , FT_INT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_magnetic_flux_density_z , {\n \"Z\" , \"btatt.hf_btatt_magnetic_flux_density.z\" , FT_INT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_language , {\n \"Language\" , \"btatt.language\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_barometric_pressure_trend , {\n \"Barometric Pressure Trend\" , \"btatt.barometric_pressure_trend\" , FT_UINT8 , BASE_DEC , VALS ( barometric_pressure_trend_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_central_address_resolution , {\n \"Central Address Resolution\" , \"btatt.central_address_resolution\" , FT_UINT8 , BASE_DEC , VALS ( central_address_resolution_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_resolvable_private_address , {\n \"Resolvable Private Address\" , \"btatt.resolvable_private_address\" , FT_UINT8 , BASE_DEC , VALS ( resolvable_private_address_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_feature , {\n \"Cycling Power Feature\" , \"btatt.cycling_power_feature\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_feature_reserved , {\n \"Reserved\" , \"btatt.cycling_power_feature.reserved\" , FT_UINT32 , BASE_HEX , NULL , 0xFFF80000 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_feature_factory_calibration_date , {\n \"Factory Calibration Date\" , \"btatt.cycling_power_feature.factory_calibration_date\" , FT_BOOLEAN , 32 , NULL , 0x00040000 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_feature_instantaneous_measurement_direction , {\n \"Instantaneous Measurement Direction\" , \"btatt.cycling_power_feature.instantaneous_measurement_direction\" , FT_BOOLEAN , 32 , NULL , 0x00020000 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_feature_sensor_measurement_context , {\n \"Sensor Measurement Context\" , \"btatt.cycling_power_feature.sensor_measurement_context\" , FT_UINT32 , BASE_HEX , VALS ( cycling_power_feature_sensor_measurement_context_vals ) , 0x00010000 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_feature_span_length_adjustment , {\n \"Span Length Adjustment\" , \"btatt.cycling_power_feature.span_length_adjustment\" , FT_BOOLEAN , 32 , NULL , 0x00008000 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_feature_chain_weight_adjustment , {\n \"Chain Weight Adjustment\" , \"btatt.cycling_power_feature.chain_weight_adjustment\" , FT_BOOLEAN , 32 , NULL , 0x00004000 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_feature_chain_length_adjustment , {\n \"Chain Length Adjustment\" , \"btatt.cycling_power_feature.chain_length_adjustment\" , FT_BOOLEAN , 32 , NULL , 0x00002000 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_feature_crank_length_adjustment , {\n \"Crank Length Adjustment\" , \"btatt.cycling_power_feature.crank_length_adjustment\" , FT_BOOLEAN , 32 , NULL , 0x00001000 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_feature_multiple_sensor_locations , {\n \"Multiple Sensor Locations\" , \"btatt.cycling_power_feature.multiple_sensor_locations\" , FT_BOOLEAN , 32 , NULL , 0x00000800 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_feature_cycling_power_measurement_characteristic_content_masking , {\n \"Cycling Power Measurement Characteristic Content Masking\" , \"btatt.cycling_power_feature.cycling_power_measurement_characteristic_content_masking\" , FT_BOOLEAN , 32 , NULL , 0x00000400 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_feature_offset_compensation , {\n \"Offset Compensation\" , \"btatt.cycling_power_feature.offset_compensation\" , FT_BOOLEAN , 32 , NULL , 0x00000200 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_feature_offset_compensation_indicator , {\n \"Offset Compensation Indicator\" , \"btatt.cycling_power_feature.offset_compensation_indicator\" , FT_BOOLEAN , 32 , NULL , 0x00000100 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_feature_accumulated_energy , {\n \"Accumulated Energy\" , \"btatt.cycling_power_feature.accumulated_energy\" , FT_BOOLEAN , 32 , NULL , 0x00000080 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_feature_top_and_bottom_dead_spot_angles , {\n \"Top and Bottom Dead Spot Angles\" , \"btatt.cycling_power_feature.top_and_bottom_dead_spot_angles\" , FT_BOOLEAN , 32 , NULL , 0x00000040 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_feature_extreme_angles , {\n \"Extreme Angles\" , \"btatt.cycling_power_feature.extreme_angles\" , FT_BOOLEAN , 32 , NULL , 0x00000020 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_feature_extreme_magnitudes , {\n \"Extreme Magnitudes\" , \"btatt.cycling_power_feature.extreme_magnitudes\" , FT_BOOLEAN , 32 , NULL , 0x00000010 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_feature_crank_revolution_data , {\n \"Crank Revolution Data\" , \"btatt.cycling_power_feature.crank_revolution_data\" , FT_BOOLEAN , 32 , NULL , 0x00000008 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_feature_wheel_revolution_data , {\n \"Wheel Revolution Data\" , \"btatt.cycling_power_feature.wheel_revolution_data\" , FT_BOOLEAN , 32 , NULL , 0x00000004 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_feature_accumulated_torque , {\n \"Accumulated Torque\" , \"btatt.cycling_power_feature.accumulated_torque\" , FT_BOOLEAN , 32 , NULL , 0x00000002 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_feature_pedal_power_balance , {\n \"Pedal Power Balance\" , \"btatt.cycling_power_feature.pedal_power_balance\" , FT_BOOLEAN , 32 , NULL , 0x00000001 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_feature , {\n \"LN Feature\" , \"btatt.ln_feature\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_feature_reserved , {\n \"Reserved\" , \"btatt.ln_feature.reserved\" , FT_UINT32 , BASE_HEX , NULL , 0xFFE00000 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_feature_position_status , {\n \"Position Status\" , \"btatt.ln_feature.position_status\" , FT_BOOLEAN , 32 , NULL , 0x00100000 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_feature_elevation_setting , {\n \"Elevation Setting,\" , \"btatt.ln_feature.elevation_setting\" , FT_BOOLEAN , 32 , NULL , 0x00080000 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_feature_fix_rate_setting , {\n \"Fix Rate Setting\" , \"btatt.ln_feature.fix_rate_setting\" , FT_BOOLEAN , 32 , NULL , 0x00040000 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_feature_location_and_speed_characteristic_content_masking , {\n \"Location and Speed Characteristic Content Masking\" , \"btatt.ln_feature.location_and_speed_characteristic_content_masking\" , FT_BOOLEAN , 32 , NULL , 0x00020000 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_feature_vertical_dilution_of_precision , {\n \"Vertical Dilution of Precision\" , \"btatt.ln_feature.vertical_dilution_of_precision\" , FT_BOOLEAN , 32 , NULL , 0x00010000 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_feature_horizontal_dilution_of_precision , {\n \"Horizontal Dilution of Precision\" , \"btatt.ln_feature.horizontal_dilution_of_precision\" , FT_BOOLEAN , 32 , NULL , 0x00008000 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_feature_estimated_vertical_position_error , {\n \"Estimated Vertical Position Error\" , \"btatt.ln_feature.estimated_vertical_position_error\" , FT_BOOLEAN , 32 , NULL , 0x00004000 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_feature_estimated_horizontal_position_error , {\n \"Estimated Horizontal Position Error\" , \"btatt.ln_feature.estimated_horizontal_position_error\" , FT_BOOLEAN , 32 , NULL , 0x00002000 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_feature_time_to_first_fix , {\n \"Time to First Fix\" , \"btatt.ln_feature.time_to_first_fix\" , FT_BOOLEAN , 32 , NULL , 0x00001000 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_feature_number_of_beacons_in_view , {\n \"Number of Beacons in View\" , \"btatt.ln_feature.number_of_beacons_in_view\" , FT_BOOLEAN , 32 , NULL , 0x00000800 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_feature_number_of_beacons_in_solution , {\n \"Number of Beacons in Solution\" , \"btatt.ln_feature.number_of_beacons_in_solution\" , FT_BOOLEAN , 32 , NULL , 0x00000400 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_feature_estimated_time_of_arrival , {\n \"Estimated Time of Arrival\" , \"btatt.ln_feature.estimated_time_of_arrival\" , FT_BOOLEAN , 32 , NULL , 0x00000200 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_feature_remaining_vertical_distance , {\n \"Remaining Vertical Distance\" , \"btatt.ln_feature.remaining_vertical_distance\" , FT_BOOLEAN , 32 , NULL , 0x00000100 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_feature_remaining_distance , {\n \"Remaining Distance\" , \"btatt.ln_feature.remaining_distance\" , FT_BOOLEAN , 32 , NULL , 0x00000080 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_feature_utc_time , {\n \"UTC Time\" , \"btatt.ln_feature.utc_time\" , FT_BOOLEAN , 32 , NULL , 0x00000040 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_feature_rolling_time , {\n \"Rolling Time\" , \"btatt.ln_feature.rolling_time\" , FT_BOOLEAN , 32 , NULL , 0x00000020 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_feature_heading , {\n \"Heading\" , \"btatt.ln_feature.heading\" , FT_BOOLEAN , 32 , NULL , 0x00000010 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_feature_elevation , {\n \"Elevation\" , \"btatt.ln_feature.elevation\" , FT_BOOLEAN , 32 , NULL , 0x00000008 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_feature_location , {\n \"Location\" , \"btatt.ln_feature.location\" , FT_BOOLEAN , 32 , NULL , 0x00000004 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_feature_total_distance , {\n \"Total Distance\" , \"btatt.ln_feature.total_distance\" , FT_BOOLEAN , 32 , NULL , 0x00000002 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_feature_instantaneous_speed , {\n \"Instantaneous Speed\" , \"btatt.ln_feature.instantaneous_speed\" , FT_BOOLEAN , 32 , NULL , 0x00000001 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_feature , {\n \"Body Composition Feature\" , \"btatt.body_composition_feature\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_feature_reserved , {\n \"Reserved\" , \"btatt.body_composition_feature.reserved\" , FT_UINT32 , BASE_HEX , NULL , 0xFFFC0000 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_feature_height_measurement_resolution , {\n \"Height Measurement Resolution\" , \"btatt.body_composition_feature.height_measurement_resolution\" , FT_UINT32 , BASE_HEX , VALS ( body_composition_feature_height_measurement_resolution_vals ) , 0x00038000 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_feature_mass_measurement_resolution , {\n \"Mass Measurement Resolution\" , \"btatt.body_composition_feature.mass_measurement_resolution\" , FT_UINT32 , BASE_HEX , VALS ( body_composition_feature_mass_measurement_resolution_vals ) , 0x00007800 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_feature_height , {\n \"Height\" , \"btatt.body_composition_feature.height\" , FT_BOOLEAN , 32 , NULL , 0x00000400 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_feature_weight , {\n \"Weight\" , \"btatt.body_composition_feature.weight\" , FT_BOOLEAN , 32 , NULL , 0x00000200 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_feature_impedance , {\n \"Impedance\" , \"btatt.body_composition_feature.impedance\" , FT_BOOLEAN , 32 , NULL , 0x00000100 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_feature_body_water_mass , {\n \"Body Water Mass\" , \"btatt.body_composition_feature.body_water_mass\" , FT_BOOLEAN , 32 , NULL , 0x00000080 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_feature_soft_lean_mass , {\n \"Soft Lean Mass\" , \"btatt.body_composition_feature.soft_lean_mass\" , FT_BOOLEAN , 32 , NULL , 0x00000040 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_feature_fat_free_mass , {\n \"Fat Free Mass\" , \"btatt.body_composition_feature.fat_free_mass\" , FT_BOOLEAN , 32 , NULL , 0x00000020 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_feature_muscle_mass , {\n \"Muscle Mass\" , \"btatt.body_composition_feature.muscle_mass\" , FT_BOOLEAN , 32 , NULL , 0x00000010 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_feature_muscle_percentage , {\n \"Muscle Percentage\" , \"btatt.body_composition_feature.muscle_percentage\" , FT_BOOLEAN , 32 , NULL , 0x00000008 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_feature_basal_metabolism , {\n \"Basal Metabolism\" , \"btatt.body_composition_feature.basal_metabolism\" , FT_BOOLEAN , 32 , NULL , 0x00000004 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_feature_multiple_users , {\n \"Multiple Users\" , \"btatt.body_composition_feature.multiple_users\" , FT_BOOLEAN , 32 , NULL , 0x00000002 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_feature_timestamp , {\n \"Timestamp\" , \"btatt.body_composition_feature.timestamp\" , FT_BOOLEAN , 32 , NULL , 0x00000001 , NULL , HFILL }\n }\n , {\n & hf_btatt_weight_scale_feature , {\n \"Weight Scale Feature\" , \"btatt.weight_scale_feature\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_weight_scale_feature_reserved , {\n \"Reserved\" , \"btatt.weight_scale_feature.reserved\" , FT_UINT32 , BASE_HEX , NULL , 0xFFFFFC00 , NULL , HFILL }\n }\n , {\n & hf_btatt_weight_scale_feature_height_measurement_resolution , {\n \"Height Measurement Resolution\" , \"btatt.weight_scale_feature.height_measurement_resolution\" , FT_UINT32 , BASE_HEX , VALS ( weight_scale_feature_height_measurement_resolution_vals ) , 0x00000380 , NULL , HFILL }\n }\n , {\n & hf_btatt_weight_scale_feature_weight_measurement_resolution , {\n \"Mass Measurement Resolution\" , \"btatt.weight_scale_feature.weight_measurement_resolution\" , FT_UINT32 , BASE_HEX , VALS ( weight_scale_feature_weight_measurement_resolution_vals ) , 0x000000078 , NULL , HFILL }\n }\n , {\n & hf_btatt_weight_scale_feature_bmi , {\n \"BMI\" , \"btatt.weight_scale_feature.bmi\" , FT_BOOLEAN , 32 , NULL , 0x00000004 , NULL , HFILL }\n }\n , {\n & hf_btatt_weight_scale_feature_multiple_users , {\n \"Multiple Users\" , \"btatt.weight_scale_feature.multiple_users\" , FT_BOOLEAN , 32 , NULL , 0x00000002 , NULL , HFILL }\n }\n , {\n & hf_btatt_weight_scale_feature_timestamp , {\n \"Timestamp\" , \"btatt.weight_scale_feature.timestamp\" , FT_BOOLEAN , 32 , NULL , 0x00000001 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_flags , {\n \"Flags\" , \"btatt.glucose_measurement.flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_flags_reserved , {\n \"Reserved\" , \"btatt.glucose_measurement.flags.reserved\" , FT_UINT8 , BASE_HEX , NULL , 0xE0 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_flags_context_information_follows , {\n \"Context Information Follows\" , \"btatt.glucose_measurement.flags.context_information_follows\" , FT_BOOLEAN , 8 , NULL , 0x10 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_flags_sensor_status_annunciation_present , {\n \"Sensor Status Annunciation Present\" , \"btatt.glucose_measurement.flags.sensor_status_annunciation_present\" , FT_BOOLEAN , 8 , NULL , 0x08 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_flags_glucose_concentration_units , {\n \"Glucose Concentration Units\" , \"btatt.glucose_measurement.flags.glucose_concentration_units\" , FT_UINT8 , BASE_HEX , VALS ( glucose_measurement_flags_glucose_concentration_units_vals ) , 0x04 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_flags_glucose_concentration_type_and_sample_location_present , {\n \"Glucose Concentration, Type and Sample Location Present\" , \"btatt.glucose_measurement.flags.glucose_concentration_type_and_sample_location_present\" , FT_BOOLEAN , 8 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_flags_time_offset_present , {\n \"Time Offset Present\" , \"btatt.glucose_measurement.flags.time_offset_present\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_sequence_number , {\n \"Sequence Number\" , \"btatt.glucose_measurement.sequence_number\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_base_time , {\n \"Base Time\" , \"btatt.glucose_measurement.base_time\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_time_offset , {\n \"Time Offset\" , \"btatt.glucose_measurement.time_offset\" , FT_INT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_glucose_concentration_kg_per_l , {\n \"Glucose Concentration [kg/l]\" , \"btatt.glucose_measurement.glucose_concentration.kg_per_l\" , FT_IEEE_11073_SFLOAT , BASE_FLOAT , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_glucose_concentration_mol_per_l , {\n \"Glucose Concentration [mol/l]\" , \"btatt.glucose_measurement.glucose_concentration.mol_per_l\" , FT_IEEE_11073_SFLOAT , BASE_FLOAT , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_type_and_sample_location , {\n \"Type and Sample Location\" , \"btatt.glucose_measurement.type_and_sample_location\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_type_and_sample_location_type , {\n \"Type\" , \"btatt.glucose_measurement.type_and_sample_location.type\" , FT_UINT8 , BASE_HEX , VALS ( glucose_measurement_type_and_sample_location_type_vals ) , 0x0F , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_type_and_sample_location_sample_location , {\n \"Sample Location\" , \"btatt.glucose_measurement.type_and_sample_location.sample_location\" , FT_UINT8 , BASE_HEX , VALS ( glucose_measurement_type_and_sample_location_sample_location_vals ) , 0xF0 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_sensor_status_annunciation , {\n \"Sensor Status Annunciation\" , \"btatt.glucose_measurement.sensor_status_annunciation\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_sensor_status_annunciation_reserved , {\n \"Reserved\" , \"btatt.glucose_measurement.sensor_status_annunciation.reserved\" , FT_UINT16 , BASE_HEX , NULL , 0xF000 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_sensor_status_annunciation_time_fault , {\n \"Time fault has occurred in the sensor and time may be inaccurate\" , \"btatt.glucose_measurement.sensor_status_annunciation.time_fault\" , FT_BOOLEAN , 16 , NULL , 0x0800 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_sensor_status_annunciation_general_fault , {\n \"General device fault has occurred in the sensor\" , \"btatt.glucose_measurement.sensor_status_annunciation.general_fault\" , FT_BOOLEAN , 16 , NULL , 0x0400 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_sensor_status_annunciation_read_interrupted , {\n \"Sensor read interrupted because strip was pulled too soon at time of measurement\" , \"btatt.glucose_measurement.sensor_status_annunciation.read_interrupted\" , FT_BOOLEAN , 16 , NULL , 0x0200 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_sensor_status_annunciation_temperature_too_low , {\n \"Sensor temperature too low for valid test/result at time of measurement\" , \"btatt.glucose_measurement.sensor_status_annunciation.temperature_too_low\" , FT_BOOLEAN , 16 , NULL , 0x0100 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_sensor_status_annunciation_temperature_too_high , {\n \"Sensor temperature too high for valid test/result at time of measurement\" , \"btatt.glucose_measurement.sensor_status_annunciation.temperature_too_high\" , FT_BOOLEAN , 16 , NULL , 0x0080 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_sensor_status_annunciation_result_too_lower , {\n \"Sensor result lower than the device can process\" , \"btatt.glucose_measurement.sensor_status_annunciation.result_too_lower\" , FT_BOOLEAN , 16 , NULL , 0x0040 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_sensor_status_annunciation_result_too_high , {\n \"Sensor result higher than the device can process\" , \"btatt.glucose_measurement.sensor_status_annunciation.result_too_high\" , FT_BOOLEAN , 16 , NULL , 0x0020 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_sensor_status_annunciation_strip_type_incorrect , {\n \"Strip type incorrect for device\" , \"btatt.glucose_measurement.sensor_status_annunciation.strip_type_incorrect\" , FT_BOOLEAN , 16 , NULL , 0x0010 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_sensor_status_annunciation_strip_insertion_error , {\n \"Strip insertion error\" , \"btatt.glucose_measurement.sensor_status_annunciation.strip_insertion_error\" , FT_BOOLEAN , 16 , NULL , 0x0008 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_sensor_status_annunciation_size_insufficient , {\n \"Sample size for blood or control solution insufficient at time of measurement\" , \"btatt.glucose_measurement.sensor_status_annunciation.size_insufficient\" , FT_BOOLEAN , 16 , NULL , 0x0004 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_sensor_status_annunciation_fault , {\n \"Sensor malfunction or faulting at time of measurement\" , \"btatt.glucose_measurement.sensor_status_annunciation.fault\" , FT_BOOLEAN , 16 , NULL , 0x0002 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_sensor_status_annunciation_battery_low , {\n \"Device battery low at time of measurement\" , \"btatt.glucose_measurement.sensor_status_annunciation.battery_low\" , FT_BOOLEAN , 16 , NULL , 0x0001 , NULL , HFILL }\n }\n , {\n & hf_btatt_bond_management_feature , {\n \"Bond Management Feature\" , \"btatt.bond_management_feature\" , FT_UINT24 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_bond_management_feature_feature_extension , {\n \"Feature Extension\" , \"btatt.bond_management_feature.feature_extension\" , FT_BOOLEAN , 24 , NULL , 0x800000 , NULL , HFILL }\n }\n , {\n & hf_btatt_bond_management_feature_reserved , {\n \"Reserved\" , \"btatt.bond_management_feature.reserved\" , FT_UINT24 , BASE_HEX , NULL , 0x780000 , NULL , HFILL }\n }\n , {\n & hf_btatt_bond_management_feature_identify_yourself , {\n \"Identify Yourself\" , \"btatt.bond_management_feature.identify_yourself\" , FT_BOOLEAN , 24 , NULL , 0x040000 , NULL , HFILL }\n }\n , {\n & hf_btatt_bond_management_feature_authorization_code_required_for_feature_above_9 , {\n \"Authorization Code Required for Feature Above\" , \"btatt.bond_management_feature.authorization_code_required_for_feature_above.9\" , FT_BOOLEAN , 24 , NULL , 0x020000 , NULL , HFILL }\n }\n , {\n & hf_btatt_bond_management_feature_remove_all_but_the_active_bond_on_le_transport_only_server , {\n \"Remove all but the active bond on server (LE transport only)\" , \"btatt.bond_management_feature.remove_all_but_the_active_bond_on_le_transport_only_server\" , FT_BOOLEAN , 24 , NULL , 0x010000 , NULL , HFILL }\n }\n , {\n & hf_btatt_bond_management_feature_authorization_code_required_for_feature_above_8 , {\n \"Authorization Code Required for Feature Above\" , \"btatt.bond_management_feature.authorization_code_required_for_feature_above.8\" , FT_BOOLEAN , 24 , NULL , 0x008000 , NULL , HFILL }\n }\n , {\n & hf_btatt_bond_management_feature_remove_all_but_the_active_bond_on_br_edr_transport_only_server , {\n \"Remove all but the active bond on server (BR/EDR transport only)\" , \"btatt.bond_management_feature.remove_all_but_the_active_bond_on_br_edr_transport_only_server\" , FT_BOOLEAN , 24 , NULL , 0x004000 , NULL , HFILL }\n }\n , {\n & hf_btatt_bond_management_feature_authorization_code_required_for_feature_above_7 , {\n \"Authorization Code Required for Feature Above\" , \"btatt.bond_management_feature.authorization_code_required_for_feature_above.7\" , FT_BOOLEAN , 24 , NULL , 0x002000 , NULL , HFILL }\n }\n , {\n & hf_btatt_bond_management_feature_remove_all_but_the_active_bond_on_br_edr_and_le_server , {\n \"Remove all but the active bond on server (BR/EDR and LE)\" , \"btatt.bond_management_feature.remove_all_but_the_active_bond_on_br_edr_and_le_server\" , FT_BOOLEAN , 24 , NULL , 0x001000 , NULL , HFILL }\n }\n , {\n & hf_btatt_bond_management_feature_authorization_code_required_for_feature_above_6 , {\n \"Authorization Code Required for Feature Above\" , \"btatt.bond_management_feature.authorization_code_required_for_feature_above.6\" , FT_BOOLEAN , 24 , NULL , 0x000800 , NULL , HFILL }\n }\n , {\n & hf_btatt_bond_management_feature_remove_all_bonds_on_le_transport_only_server , {\n \"Remove all bonds on server (LE transport only)\" , \"btatt.bond_management_feature.remove_all_bonds_on_le_transport_only_server\" , FT_BOOLEAN , 24 , NULL , 0x000400 , NULL , HFILL }\n }\n , {\n & hf_btatt_bond_management_feature_authorization_code_required_for_feature_above_5 , {\n \"Authorization Code Required for Feature Above\" , \"btatt.bond_management_feature.authorization_code_required_for_feature_above.5\" , FT_BOOLEAN , 24 , NULL , 0x000200 , NULL , HFILL }\n }\n , {\n & hf_btatt_bond_management_feature_remove_all_bonds_on_br_edr_transport_only_server , {\n \"Remove all bonds on server (BR/EDR transport only)\" , \"btatt.bond_management_feature.remove_all_bonds_on_br_edr_transport_only_server\" , FT_BOOLEAN , 24 , NULL , 0x000100 , NULL , HFILL }\n }\n , {\n & hf_btatt_bond_management_feature_authorization_code_required_for_feature_above_4 , {\n \"Authorization Code Required for Feature Above\" , \"btatt.bond_management_feature.authorization_code_required_for_feature_above.4\" , FT_BOOLEAN , 24 , NULL , 0x000080 , NULL , HFILL }\n }\n , {\n & hf_btatt_bond_management_feature_remove_all_bonds_on_br_edr_and_le_server , {\n \"Remove all bonds on server (BR/EDR and LE)\" , \"btatt.bond_management_feature.remove_all_bonds_on_br_edr_and_le_server\" , FT_BOOLEAN , 24 , NULL , 0x000040 , NULL , HFILL }\n }\n , {\n & hf_btatt_bond_management_feature_authorization_code_required_for_feature_above_3 , {\n \"Authorization Code Required for Feature Above\" , \"btatt.bond_management_feature.authorization_code_required_for_feature_above.3\" , FT_BOOLEAN , 24 , NULL , 0x000020 , NULL , HFILL }\n }\n , {\n & hf_btatt_bond_management_feature_delete_bond_of_current_le_transport_only_connection , {\n \"Delete bond of current connection (LE transport only)\" , \"btatt.bond_management_feature.delete_bond_of_current_le_transport_only_connection\" , FT_BOOLEAN , 24 , NULL , 0x000010 , NULL , HFILL }\n }\n , {\n & hf_btatt_bond_management_feature_authorization_code_required_for_feature_above_2 , {\n \"Authorization Code Required for Feature Above\" , \"btatt.bond_management_feature.authorization_code_required_for_feature_above.2\" , FT_BOOLEAN , 24 , NULL , 0x000008 , NULL , HFILL }\n }\n , {\n & hf_btatt_bond_management_feature_delete_bond_of_current_br_edr_transport_only_connection , {\n \"Delete bond of current connection (BR/EDR transport only)\" , \"btatt.bond_management_feature.delete_bond_of_current_br_edr_transport_only_connection\" , FT_BOOLEAN , 24 , NULL , 0x000004 , NULL , HFILL }\n }\n , {\n & hf_btatt_bond_management_feature_authorization_code_required_for_feature_above_1 , {\n \"Authorization Code Required for Feature Above\" , \"btatt.bond_management_feature.authorization_code_required_for_feature_above.1\" , FT_BOOLEAN , 24 , NULL , 0x000002 , NULL , HFILL }\n }\n , {\n & hf_btatt_bond_management_feature_delete_bond_of_current_br_edr_and_le_connection , {\n \"Delete Bond of current connection (BR/EDR and LE)\" , \"btatt.bond_management_feature.delete_bond_of_current_br_edr_and_le_connection\" , FT_BOOLEAN , 24 , NULL , 0x000001 , NULL , HFILL }\n }\n , {\n & hf_btatt_bond_management_feature_nth , {\n \"Extended Features\" , \"btatt.bond_management_feature.nth\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_bond_management_feature_nth_feature_extension , {\n \"Feature Extension\" , \"btatt.bond_management_feature.nth.feature_extension\" , FT_BOOLEAN , 8 , NULL , 0x80 , NULL , HFILL }\n }\n , {\n & hf_btatt_bond_management_feature_nth_reserved , {\n \"Reserved\" , \"btatt.bond_management_feature.nth.reserved\" , FT_UINT8 , BASE_HEX , NULL , 0x7F , NULL , HFILL }\n }\n , {\n & hf_btatt_bond_management_control_point_opcode , {\n \"Opcode\" , \"btatt.bond_management_control_point.opcode\" , FT_UINT8 , BASE_HEX , VALS ( bond_management_control_point_opcode_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_bond_management_control_point_authorization_code , {\n \"Authorization Code\" , \"btatt.bond_management_control_point.authorization_code\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_temperature_measurement_flags , {\n \"Sensor Status Annunciation\" , \"btatt.temperature_measurement.flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_temperature_measurement_flags_reserved , {\n \"Reserved\" , \"btatt.temperature_measurement.flags.reserved\" , FT_UINT8 , BASE_HEX , NULL , 0xF8 , NULL , HFILL }\n }\n , {\n & hf_btatt_temperature_measurement_flags_temperature_type , {\n \"Temperature Type\" , \"btatt.temperature_measurement.flags.temperature_type\" , FT_BOOLEAN , 8 , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_btatt_temperature_measurement_flags_timestamp , {\n \"Timestamp\" , \"btatt.temperature_measurement.flags.timestamp\" , FT_BOOLEAN , 8 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btatt_temperature_measurement_flags_temperature_unit , {\n \"Temperature Unit\" , \"btatt.temperature_measurement.flags.temperature_unit\" , FT_UINT8 , BASE_HEX , VALS ( temperature_measurement_flags_temperature_unit_vals ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btatt_temperature_measurement_value_celsius , {\n \"Value [Celsius]\" , \"btatt.temperature_measurement.value.celsius\" , FT_IEEE_11073_FLOAT , BASE_FLOAT , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_btatt_temperature_measurement_value_fahrenheit , {\n \"Value [Fahrenheit]\" , \"btatt.temperature_measurement.value.fahrenheit\" , FT_IEEE_11073_FLOAT , BASE_FLOAT , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_btatt_temperature_measurement_timestamp , {\n \"Timestamp\" , \"btatt.temperature_measurement.timestamp\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_context_flags , {\n \"Glucose Measurement Context\" , \"btatt.glucose_measurement_context.flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_context_flags_extended_flags , {\n \"Extended Flags\" , \"btatt.glucose_measurement_context.flags.extended_flags\" , FT_BOOLEAN , 8 , NULL , 0x80 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_context_flags_hba1c , {\n \"HbA1c\" , \"btatt.glucose_measurement_context.flags.hba1c\" , FT_BOOLEAN , 8 , NULL , 0x40 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_context_flags_medication_value_units , {\n \"Medication Value Units\" , \"btatt.glucose_measurement_context.flags.medication_value_units\" , FT_UINT8 , BASE_HEX , VALS ( glucose_measurement_context_flags_medication_value_units_vals ) , 0x20 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_context_flags_medication_id_and_medication , {\n \"Medication ID And Medication\" , \"btatt.glucose_measurement_context.flags.medication_id_and_medication\" , FT_BOOLEAN , 8 , NULL , 0x10 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_context_flags_exercise_duration_and_exercise_intensity , {\n \"Exercise Duration And Exercise Intensity\" , \"btatt.glucose_measurement_context.flags.exercise_duration_and_exercise_intensity\" , FT_BOOLEAN , 8 , NULL , 0x08 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_context_flags_tester_health , {\n \"Tester Health\" , \"btatt.glucose_measurement_context.flags.tester_health\" , FT_BOOLEAN , 8 , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_context_flags_meal , {\n \"Meal\" , \"btatt.glucose_measurement_context.flags.meal\" , FT_BOOLEAN , 8 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_context_flags_carbohydrate_id_and_carbohydrate , {\n \"Carbohydrate ID And Carbohydrate\" , \"btatt.glucose_measurement_context.flags.carbohydrate_id_and_carbohydrate\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_context_sequence_number , {\n \"Sequence Number\" , \"btatt.glucose_measurement_context.sequence_number\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_context_extended_flags , {\n \"Extended Flags\" , \"btatt.glucose_measurement_context.extended_flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_context_extended_flags_reserved , {\n \"Reserved\" , \"btatt.glucose_measurement_context.extended_flags.reserved\" , FT_UINT8 , BASE_HEX , NULL , 0xFF , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_context_carbohydrate_id , {\n \"Carbohydrate ID\" , \"btatt.glucose_measurement_context.carbohydrate_id\" , FT_UINT8 , BASE_HEX , VALS ( glucose_measurement_context_carbohydrate_id_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_context_carbohydrate_kg , {\n \"Carbohydrate [kg]\" , \"btatt.glucose_measurement_context.carbohydrate.kg\" , FT_IEEE_11073_SFLOAT , BASE_FLOAT , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_context_meal , {\n \"Meal\" , \"btatt.glucose_measurement_context.meal\" , FT_UINT8 , BASE_HEX , VALS ( glucose_measurement_context_meal_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_context_tester_health , {\n \"Tester and Health\" , \"btatt.glucose_measurement_context.tester_and_health\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_context_tester , {\n \"Tester\" , \"btatt.glucose_measurement_context.tester_and_health.tester\" , FT_UINT8 , BASE_HEX , VALS ( glucose_measurement_context_tester_vals ) , 0xF0 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_context_health , {\n \"Health\" , \"btatt.glucose_measurement_context.tester_and_health.health\" , FT_UINT8 , BASE_HEX , VALS ( glucose_measurement_context_health_vals ) , 0x0F , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_context_exercise_duration , {\n \"Exercise Duration\" , \"btatt.glucose_measurement_context.exercise_duration\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_context_exercise_intensity , {\n \"Exercise Intensity\" , \"btatt.glucose_measurement_context.exercise_intensity\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_context_medication_id , {\n \"Medication ID\" , \"btatt.glucose_measurement_context.medication_id\" , FT_UINT8 , BASE_HEX , VALS ( glucose_measurement_context_medication_id_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_context_medication_l , {\n \"Medication [l]\" , \"btatt.glucose_measurement_context.medication.l\" , FT_IEEE_11073_SFLOAT , BASE_FLOAT , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_context_medication_kg , {\n \"Medication [kg]\" , \"btatt.glucose_measurement_context.medication.kg\" , FT_IEEE_11073_SFLOAT , BASE_FLOAT , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_glucose_measurement_context_hba1c , {\n \"HbA1c\" , \"btatt.glucose_measurement_context.hba1c\" , FT_IEEE_11073_SFLOAT , BASE_FLOAT , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_blood_pressure_measurement_flags , {\n \"Flags\" , \"btatt.blood_pressure_measurement.flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_blood_pressure_measurement_flags_reserved , {\n \"Reserved\" , \"btatt.blood_pressure_measurement.flags.reserved\" , FT_UINT8 , BASE_HEX , NULL , 0xE0 , NULL , HFILL }\n }\n , {\n & hf_btatt_blood_pressure_measurement_flags_measurement_status , {\n \"Measurement Status\" , \"btatt.blood_pressure_measurement.flags.measurement_status\" , FT_BOOLEAN , 8 , NULL , 0x10 , NULL , HFILL }\n }\n , {\n & hf_btatt_blood_pressure_measurement_flags_user_id , {\n \"User ID\" , \"btatt.blood_pressure_measurement.flags.user_id\" , FT_BOOLEAN , 8 , NULL , 0x08 , NULL , HFILL }\n }\n , {\n & hf_btatt_blood_pressure_measurement_flags_pulse_rate , {\n \"Pulse Rate\" , \"btatt.blood_pressure_measurement.flags.pulse_rate\" , FT_BOOLEAN , 8 , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_btatt_blood_pressure_measurement_flags_timestamp , {\n \"Timestamp\" , \"btatt.blood_pressure_measurement.flags.timestamp\" , FT_BOOLEAN , 8 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btatt_blood_pressure_measurement_flags_unit , {\n \"Unit\" , \"btatt.blood_pressure_measurement.flags.unit\" , FT_UINT8 , BASE_HEX , VALS ( blood_pressure_measurement_unit_vals ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btatt_blood_pressure_measurement_compound_value_systolic_kpa , {\n \"Systolic [kPa]\" , \"btatt.blood_pressure_measurement.compound_value.systolic.kpa\" , FT_IEEE_11073_SFLOAT , BASE_FLOAT , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_blood_pressure_measurement_compound_value_diastolic_kpa , {\n \"Diastolic [kPa]\" , \"btatt.blood_pressure_measurement.compound_value.diastolic.kpa\" , FT_IEEE_11073_SFLOAT , BASE_FLOAT , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_blood_pressure_measurement_compound_value_mean_arterial_pressure_kpa , {\n \"Arterial Pressure [kPa]\" , \"btatt.blood_pressure_measurement.compound_value.arterial_pressure.kpa\" , FT_IEEE_11073_SFLOAT , BASE_FLOAT , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_blood_pressure_measurement_compound_value_systolic_mmhg , {\n \"Systolic [mmHg]\" , \"btatt.blood_pressure_measurement.compound_value.systolic.mmhg\" , FT_IEEE_11073_SFLOAT , BASE_FLOAT , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_blood_pressure_measurement_compound_value_diastolic_mmhg , {\n \"Diastolic [mmHg]\" , \"btatt.blood_pressure_measurement.compound_value.diastolic.mmhg\" , FT_IEEE_11073_SFLOAT , BASE_FLOAT , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_blood_pressure_measurement_compound_value_mean_arterial_pressure_mmhg , {\n \"Arterial Pressure [mmHg]\" , \"btatt.blood_pressure_measurement.compound_value.arterial_pressure.mmhg\" , FT_IEEE_11073_SFLOAT , BASE_FLOAT , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_blood_pressure_measurement_timestamp , {\n \"Timestamp\" , \"btatt.blood_pressure_measurement.compound_value.timestamp\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_blood_pressure_measurement_pulse_rate , {\n \"Pulse Rate\" , \"btatt.blood_pressure_measurement.pulse_rate\" , FT_IEEE_11073_SFLOAT , BASE_FLOAT , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_blood_pressure_measurement_user_id , {\n \"User ID\" , \"btatt.blood_pressure_measurement.user_id\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_blood_pressure_measurement_status , {\n \"Flags\" , \"btatt.blood_pressure_measurement.status\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_blood_pressure_measurement_status_reserved , {\n \"Reserved\" , \"btatt.blood_pressure_measurement.status.reserved\" , FT_UINT16 , BASE_HEX , NULL , 0xFFC0 , NULL , HFILL }\n }\n , {\n & hf_btatt_blood_pressure_measurement_status_improper_measurement_position , {\n \"Improper Measurement Position\" , \"btatt.blood_pressure_measurement.status.improper_measurement_position\" , FT_BOOLEAN , 16 , NULL , 0x0020 , NULL , HFILL }\n }\n , {\n & hf_btatt_blood_pressure_measurement_status_pulse_rate_range_detection , {\n \"Pulse_Rate Range Detection\" , \"btatt.blood_pressure_measurement.status.pulse_rate_range_detection\" , FT_UINT16 , BASE_HEX , VALS ( blood_pressure_measurement_status_pulse_rate_range_detection_vals ) , 0x0018 , NULL , HFILL }\n }\n , {\n & hf_btatt_blood_pressure_measurement_status_irregular_pulse , {\n \"Irregular Pulse\" , \"btatt.blood_pressure_measurement.status.irregular_pulse\" , FT_BOOLEAN , 16 , NULL , 0x0004 , NULL , HFILL }\n }\n , {\n & hf_btatt_blood_pressure_measurement_status_cuff_fit_too_loose , {\n \"Cuff Fit too Loose\" , \"btatt.blood_pressure_measurement.status.cuff_fit_too_loose\" , FT_BOOLEAN , 16 , NULL , 0x0002 , NULL , HFILL }\n }\n , {\n & hf_btatt_blood_pressure_measurement_status_body_movement , {\n \"Body Movement\" , \"btatt.blood_pressure_measurement.status.body_movement\" , FT_BOOLEAN , 16 , NULL , 0x0001 , NULL , HFILL }\n }\n , {\n & hf_btatt_heart_rate_measurement_flags , {\n \"Flags\" , \"btatt.heart_rate_measurement.flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_heart_rate_measurement_flags_reserved , {\n \"Reserved\" , \"btatt.heart_rate_measurement.flags.reserved\" , FT_UINT8 , BASE_HEX , NULL , 0xE0 , NULL , HFILL }\n }\n , {\n & hf_btatt_heart_rate_measurement_flags_rr_interval , {\n \"RR Interval\" , \"btatt.heart_rate_measurement.flags.rr_interval\" , FT_BOOLEAN , 8 , NULL , 0x10 , NULL , HFILL }\n }\n , {\n & hf_btatt_heart_rate_measurement_flags_energy_expended , {\n \"Energy Expended\" , \"btatt.heart_rate_measurement.flags.energy_expended\" , FT_BOOLEAN , 8 , NULL , 0x08 , NULL , HFILL }\n }\n , {\n & hf_btatt_heart_rate_measurement_flags_sensor_contact_status_support , {\n \"Sensor Support\" , \"btatt.heart_rate_measurement.flags.sensor_contact_status.support\" , FT_BOOLEAN , 8 , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_btatt_heart_rate_measurement_flags_sensor_contact_status_contact , {\n \"Sensor Contact\" , \"btatt.heart_rate_measurement.flags.sensor_contact_status.contact\" , FT_BOOLEAN , 8 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btatt_heart_rate_measurement_flags_value_16 , {\n \"Value is UINT16\" , \"btatt.heart_rate_measurement.flags.value_16\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btatt_heart_rate_measurement_value_8 , {\n \"Value\" , \"btatt.heart_rate_measurement.value.8\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_heart_rate_measurement_value_16 , {\n \"Value\" , \"btatt.heart_rate_measurement.value.16\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_heart_rate_measurement_energy_expended , {\n \"Energy Expended\" , \"btatt.heart_rate_measurement.energy_expended\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_heart_rate_measurement_rr_intervals , {\n \"RR Intervals\" , \"btatt.heart_rate_measurement.rr_intervals\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_heart_rate_measurement_rr_interval , {\n \"RR Interval\" , \"btatt.heart_rate_measurement.rr_interval\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_record_access_control_point_opcode , {\n \"Opcode\" , \"btatt.record_access_control_point.opcode\" , FT_UINT8 , BASE_DEC , VALS ( record_access_control_point_opcode_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_record_access_control_point_operator , {\n \"Operator\" , \"btatt.record_access_control_point.operator\" , FT_UINT8 , BASE_DEC , VALS ( record_access_control_point_operator_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_record_access_control_point_operand , {\n \"Operand\" , \"btatt.record_access_control_point.operand\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_record_access_control_point_operand_filter_type , {\n \"Filter Type\" , \"btatt.record_access_control_point.operand.filter_type\" , FT_UINT8 , BASE_DEC , VALS ( record_access_control_point_operand_filter_type_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_record_access_control_point_operand_min_time_offset , {\n \"Min Time Offset\" , \"btatt.record_access_control_point_operand.min_time_offset\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_record_access_control_point_operand_max_time_offset , {\n \"Max Time Offset\" , \"btatt.record_access_control_point_operand.max_time_offset\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_record_access_control_point_operand_number_of_records , {\n \"Number of Records\" , \"btatt.record_access_control_point_operand.number_of_records\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_record_access_control_point_request_opcode , {\n \"Request Opcode\" , \"btatt.record_access_control_point.request_opcode\" , FT_UINT8 , BASE_DEC , VALS ( record_access_control_point_opcode_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_record_access_control_point_response_code , {\n \"Response Opcode\" , \"btatt.record_access_control_point.response_code\" , FT_UINT8 , BASE_DEC , VALS ( record_access_control_point_response_code_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_value_trigger_setting_condition , {\n \"Condition\" , \"btatt.value_trigger_setting.condition\" , FT_UINT8 , BASE_DEC , VALS ( value_trigger_setting_condition_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_value_trigger_setting_analog , {\n \"Analog\" , \"btatt.value_trigger_setting.analog\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_value_trigger_setting_analog_one , {\n \"Analog One\" , \"btatt.value_trigger_setting.analog_one\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_value_trigger_setting_analog_two , {\n \"Analog Two\" , \"btatt.value_trigger_setting.analog_two\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_digital , {\n \"Digital\" , \"btatt.digital\" , FT_UINT8 , BASE_DEC , VALS ( digital_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_analog , {\n \"Analog\" , \"btatt.analog\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_location_name , {\n \"Location Name\" , \"btatt.location_name\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_uncertainty , {\n \"Uncertainty\" , \"btatt.uncertainty\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_uncertainty_reserved , {\n \"Reserved\" , \"btatt.uncertainty.reserved\" , FT_UINT8 , BASE_HEX , NULL , 0x80 , NULL , HFILL }\n }\n , {\n & hf_btatt_uncertainty_precision , {\n \"Precision\" , \"btatt.uncertainty.precision\" , FT_UINT8 , BASE_HEX , VALS ( btatt_ips_uncertainty_precision_vals ) , 0x70 , NULL , HFILL }\n }\n , {\n & hf_btatt_uncertainty_update_time , {\n \"Update Time\" , \"btatt.uncertainty.update_time\" , FT_UINT8 , BASE_HEX , VALS ( btatt_ips_uncertainty_update_time_vals ) , 0x0E , NULL , HFILL }\n }\n , {\n & hf_btatt_uncertainty_stationary , {\n \"Stationary\" , \"btatt.uncertainty.stationary\" , FT_UINT8 , BASE_HEX , VALS ( btatt_ips_uncertainty_stationary_vals ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btatt_latitude , {\n \"Latitude\" , \"btatt.latitude\" , FT_INT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_longitude , {\n \"Longitude\" , \"btatt.longitude\" , FT_INT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_local_north_coordinate , {\n \"Local North Coordinate\" , \"btatt.local_north_coordinate\" , FT_INT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_local_east_coordinate , {\n \"Local East Coordinate\" , \"btatt.local_east_coordinate\" , FT_INT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_floor_number , {\n \"Floor Number\" , \"btatt.floor_number\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_altitude , {\n \"Altitude\" , \"btatt.altitude\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_indoor_positioning_configuration , {\n \"Indoor Positioning Configuration\" , \"btatt.indoor_positioning_configuration\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_indoor_positioning_configuration_reserved , {\n \"Reserved\" , \"btatt.indoor_positioning_configuration.reserved\" , FT_UINT8 , BASE_HEX , NULL , 0xC0 , NULL , HFILL }\n }\n , {\n & hf_btatt_indoor_positioning_configuration_location_name , {\n \"Location Name\" , \"btatt.indoor_positioning_configuration.location_name\" , FT_BOOLEAN , 8 , NULL , 0x40 , NULL , HFILL }\n }\n , {\n & hf_btatt_indoor_positioning_configuration_uncertainty , {\n \"Uncertainty\" , \"btatt.indoor_positioning_configuration.uncertainty\" , FT_BOOLEAN , 8 , NULL , 0x20 , NULL , HFILL }\n }\n , {\n & hf_btatt_indoor_positioning_configuration_floor_number , {\n \"Floor Number\" , \"btatt.indoor_positioning_configuration.floor_number\" , FT_BOOLEAN , 8 , NULL , 0x10 , NULL , HFILL }\n }\n , {\n & hf_btatt_indoor_positioning_configuration_altitude , {\n \"Altitude\" , \"btatt.indoor_positioning_configuration.altitude\" , FT_BOOLEAN , 8 , NULL , 0x08 , NULL , HFILL }\n }\n , {\n & hf_btatt_indoor_positioning_configuration_tx_power , {\n \"Tx Power\" , \"btatt.indoor_positioning_configuration.tx_power\" , FT_BOOLEAN , 8 , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_btatt_indoor_positioning_configuration_coordinate_system , {\n \"Coordinate System\" , \"btatt.indoor_positioning_configuration.coordinate_system\" , FT_UINT8 , BASE_HEX , VALS ( btatt_ips_coordinate_system ) , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btatt_indoor_positioning_configuration_coordinates , {\n \"Coordinates\" , \"btatt.indoor_positioning_configuration.coordinates\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btatt_number_of_digitals , {\n \"Number of Digitals\" , \"btatt.number_of_digitals\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_time_trigger_setting_condition , {\n \"Condition\" , \"btatt.time_trigger_setting.condition\" , FT_UINT8 , BASE_HEX , VALS ( time_trigger_setting_condition_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_time_trigger_setting_value , {\n \"Value\" , \"btatt.time_trigger_setting.value\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_time_trigger_setting_value_count , {\n \"Count\" , \"btatt.time_trigger_setting.count\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_time_trigger_setting_value_time_interval , {\n \"Time Interval\" , \"btatt.time_trigger_setting.time_interval\" , FT_UINT24 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_rsc_measurement_flags , {\n \"Flags\" , \"btatt.rsc_measurement.flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_rsc_measurement_flags_reserved , {\n \"Reserved\" , \"btatt.rsc_measurement.flags.reserved\" , FT_UINT8 , BASE_HEX , NULL , 0xF8 , NULL , HFILL }\n }\n , {\n & hf_btatt_rsc_measurement_flags_type_of_movement , {\n \"Type of Movement\" , \"btatt.rsc_measurement.flags.type_of_movement\" , FT_UINT8 , BASE_HEX , VALS ( rsc_measurement_flags_type_of_movement_vals ) , 0x04 , NULL , HFILL }\n }\n , {\n & hf_btatt_rsc_measurement_flags_total_distance_present , {\n \"Total Distance Present\" , \"btatt.rsc_measurement.flags.total_distance_present\" , FT_BOOLEAN , 8 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btatt_rsc_measurement_flags_instantaneous_stride_length_present , {\n \"Instantaneous Stride Length Present\" , \"btatt.rsc_measurement.flags.instantaneous_stride_length_present\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btatt_rsc_measurement_instantaneous_speed , {\n \"Instantaneous Speed\" , \"btatt.rsc_measurement.instantaneous_speed\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_rsc_measurement_instantaneous_cadence , {\n \"Instantaneous Cadence\" , \"btatt.rsc_measurement.instantaneous_cadence\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_rsc_measurement_instantaneous_stride_length , {\n \"Instantaneous Stride Length\" , \"btatt.rsc_measurement.instantaneous_stride_length\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_rsc_measurement_total_distance , {\n \"Total Distance\" , \"btatt.rsc_measurement.total_distance\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_sc_control_point_opcode , {\n \"Opcode\" , \"btatt.sc_control_point.opcode\" , FT_UINT8 , BASE_HEX , VALS ( sc_control_point_opcode_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_sc_control_point_request_opcode , {\n \"Request Opcode\" , \"btatt.sc_control_point.request_opcode\" , FT_UINT8 , BASE_HEX , VALS ( sc_control_point_opcode_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_sc_control_point_cumulative_value , {\n \"Cumulative Value\" , \"btatt.sc_control_point.cumulative_value\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_sc_control_point_response_value , {\n \"Response Value\" , \"btatt.sc_control_point.response_value\" , FT_UINT8 , BASE_HEX , VALS ( sc_control_point_response_value_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_measurement_flags , {\n \"Flags\" , \"btatt.cycling_power_measurement.flags\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_measurement_flags_reserved , {\n \"Reserved\" , \"btatt.cycling_power_measurement.flags.reserved\" , FT_UINT16 , BASE_HEX , NULL , 0xE000 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_measurement_flags_offset_compensation_indicator , {\n \"Offset Compensation Indicator\" , \"btatt.cycling_power_measurement.flags.offset_compensation_indicator\" , FT_BOOLEAN , 16 , NULL , 0x1000 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_measurement_flags_accumulated_energy , {\n \"Accumulated Energy\" , \"btatt.cycling_power_measurement.flags.accumulated_energy\" , FT_BOOLEAN , 16 , NULL , 0x0800 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_measurement_flags_bottom_dead_spot_angle , {\n \"Bottom Dead Spot Angle\" , \"btatt.cycling_power_measurement.flags.bottom_dead_spot_angle\" , FT_BOOLEAN , 16 , NULL , 0x0400 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_measurement_flags_top_dead_spot_angle , {\n \"Top Dead Spot Angle\" , \"btatt.cycling_power_measurement.flags.top_dead_spot_angle\" , FT_BOOLEAN , 16 , NULL , 0x0200 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_measurement_flags_extreme_angles , {\n \"Extreme_angles\" , \"btatt.cycling_power_measurement.flags.extreme_angles\" , FT_BOOLEAN , 16 , NULL , 0x0100 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_measurement_flags_extreme_torque_magnitudes , {\n \"Extreme Torque Magnitudes\" , \"btatt.cycling_power_measurement.flags.extreme_torque_magnitudes\" , FT_BOOLEAN , 16 , NULL , 0x0080 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_measurement_flags_extreme_force_magnitudes , {\n \"Extreme Force Magnitudes\" , \"btatt.cycling_power_measurement.flags.extreme_force_magnitudes\" , FT_BOOLEAN , 16 , NULL , 0x0040 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_measurement_flags_crank_revolution_data , {\n \"Crank Revolution Data\" , \"btatt.cycling_power_measurement.flags.crank_revolution_data\" , FT_BOOLEAN , 16 , NULL , 0x0020 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_measurement_flags_wheel_revolution_data , {\n \"Wheel Revolution Data\" , \"btatt.cycling_power_measurement.flags.wheel_revolution_data\" , FT_BOOLEAN , 16 , NULL , 0x0010 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_measurement_flags_accumulated_torque_source , {\n \"accumulated_torque_source\" , \"btatt.cycling_power_measurement.flags.accumulated_torque_source\" , FT_UINT16 , BASE_HEX , VALS ( cycling_power_measurement_flags_accumulated_torque_source_vals ) , 0x0008 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_measurement_flags_accumulated_torque , {\n \"Accumulated Torque\" , \"btatt.cycling_power_measurement.flags.accumulated_torque\" , FT_BOOLEAN , 16 , NULL , 0x0004 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_measurement_flags_pedal_power_balance_reference , {\n \"Pedal Power Balance Reference\" , \"btatt.cycling_power_measurement.flags.pedal_power_balance_reference\" , FT_BOOLEAN , 16 , NULL , 0x0002 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_measurement_flags_pedal_power_balance , {\n \"Pedal Power Balance\" , \"btatt.cycling_power_measurement.flags.pedal_power_balance\" , FT_BOOLEAN , 16 , NULL , 0x0001 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_measurement_instantaneous_power , {\n \"Instantaneous Power\" , \"btatt.cycling_power_measurement.instantaneous_power\" , FT_INT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_measurement_pedal_power_balance , {\n \"Pedal Power Balance\" , \"btatt.cycling_power_measurement.pedal_power_balance\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_measurement_accumulated_torque , {\n \"Accumulated Torque\" , \"btatt.cycling_power_measurement.accumulated_torque\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_measurement_wheel_revolution_data_cumulative_wheel_revolutions , {\n \"Wheel Revolution Data Cumulative Wheel Revolutions\" , \"btatt.cycling_power_measurement.wheel_revolution_data_cumulative_wheel_revolutions\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_measurement_wheel_revolution_data_last_wheel_event_time , {\n \"Wheel Revolution Data Last Wheel Event Time\" , \"btatt.cycling_power_measurement.wheel_revolution_data_last_wheel_event_time\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_measurement_crank_revolution_data_cumulative_crank_revolutions , {\n \"Crank Revolution Data Cumulative Crank Revolutions\" , \"btatt.cycling_power_measurement.crank_revolution_data_cumulative_crank_revolutions\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_measurement_crank_revolution_data_last_crank_event_time , {\n \"Crank Revolution Data Last Crank Event Time\" , \"btatt.cycling_power_measurement.crank_revolution_data_last_crank_event_time\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_measurement_extreme_force_magnitudes_maximum_force_magnitude , {\n \"Extreme Force Magnitudes Maximum Force Magnitude\" , \"btatt.cycling_power_measurement.extreme_force_magnitudes_maximum_force_magnitude\" , FT_INT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_measurement_extreme_force_magnitudes_minimum_force_magnitude , {\n \"Extreme Force Magnitudes Minimum Force Magnitude\" , \"btatt.cycling_power_measurement.extreme_force_magnitudes_minimum_force_magnitude\" , FT_INT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_measurement_extreme_torque_magnitudes_maximum_torque_magnitude , {\n \"Extreme Torque Magnitudes Maximum Torque Magnitude\" , \"btatt.cycling_power_measurement.extreme_torque_magnitudes_maximum_torque_magnitude\" , FT_INT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_measurement_extreme_torque_magnitudes_minimum_torque_magnitude , {\n \"Extreme Torque Magnitudes Minimum Torque Magnitude\" , \"btatt.cycling_power_measurement.extreme_torque_magnitudes_minimum_torque_magnitude\" , FT_INT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_measurement_extreme_angles , {\n \"Extreme Angles\" , \"btatt.cycling_power_measurement.extreme_angles\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_measurement_extreme_angles_maximum , {\n \"Minimum\" , \"btatt.cycling_power_measurement.extreme_angles.maximum\" , FT_UINT24 , BASE_DEC , NULL , 0xFFF000 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_measurement_extreme_angles_minimum , {\n \"Maximum\" , \"btatt.cycling_power_measurement.extreme_angles.minimum\" , FT_UINT24 , BASE_DEC , NULL , 0x000FFF , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_measurement_top_dead_spot_angle , {\n \"Top Dead Spot Angle\" , \"btatt.cycling_power_measurement.top_dead_spot_angle\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_measurement_bottom_dead_spot_angle , {\n \"Bottom Dead Spot Angle\" , \"btatt.cycling_power_measurement.bottom_dead_spot_angle\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_measurement_accumulated_energy , {\n \"Accumulated Energy\" , \"btatt.cycling_power_measurement.accumulated_energy\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_csc_measurement_flags , {\n \"Flags\" , \"btatt.csc_measurement.flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_csc_measurement_flags_reserved , {\n \"Reserved\" , \"btatt.csc_measurement.flags.reserved\" , FT_UINT8 , BASE_HEX , NULL , 0xFC , NULL , HFILL }\n }\n , {\n & hf_btatt_csc_measurement_flags_crank_revolution_data , {\n \"Crank Revolution Data\" , \"btatt.csc_measurement.flags.crank_revolution_data\" , FT_BOOLEAN , 8 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btatt_csc_measurement_flags_wheel_revolution_data , {\n \"Wheel Revolution Data\" , \"btatt.csc_measurement.flags.wheel_revolution_data\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btatt_csc_measurement_cumulative_wheel_revolutions , {\n \"Cumulative Wheel Revolutions\" , \"btatt.csc_measurement.cumulative_wheel_revolutions\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_csc_measurement_cumulative_crank_revolutions , {\n \"Cumulative Crank Revolutions\" , \"btatt.csc_measurement.cumulative_crank_revolutions\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_csc_measurement_last_event_time , {\n \"Last Event Time\" , \"btatt.csc_measurement.last_event_time\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_vector_flags , {\n \"Flags\" , \"btatt.csc_measurement.flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_vector_flags_reserved , {\n \"Reserved\" , \"btatt.csc_measurement.flags.reserved\" , FT_UINT8 , BASE_HEX , NULL , 0xC0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_vector_flags_instantaneous_measurement_direction , {\n \"Instantaneous Measurement Direction\" , \"btatt.cycling_power_vector.flags.instantaneous_measurement_direction\" , FT_UINT8 , BASE_HEX , VALS ( cycling_power_vector_flags_instantaneous_measurement_direction_vals ) , 0x30 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_vector_flags_instantaneous_torque_magnitude_array , {\n \"Instantaneous Torque Magnitude Array\" , \"btatt.cycling_power_vector.flags.instantaneous_torque_magnitude_array\" , FT_BOOLEAN , 8 , NULL , 0x08 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_vector_flags_instantaneous_force_magnitude_array , {\n \"Instantaneous Force Magnitude Array\" , \"btatt.cycling_power_vector.flags.instantaneous_force_magnitude_array\" , FT_BOOLEAN , 8 , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_vector_flags_first_crank_measurement_angle , {\n \"First Crank Measurement Angle\" , \"btatt.cycling_power_vector.flags.first_crank_measurement_angle\" , FT_BOOLEAN , 8 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_vector_flags_crank_revolution_data , {\n \"Crank Revolution Data\" , \"btatt.cycling_power_vector.flags.crank_revolution_data\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_vector_crank_revolution_data_cumulative_crank_revolutions , {\n \"cumulative_crank_revolutions\" , \"btatt.csc_measurement.cumulative_crank_revolutions\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_vector_crank_revolution_data_last_crank_event_time , {\n \"Last Crank Event Time\" , \"btatt.csc_measurement.last_crank_event_time\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_vector_first_crank_measurement_angle , {\n \"First Crank Measurement Angle\" , \"btatt.csc_measurement.first_crank_measurement_angle\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_vector_instantaneous_force_magnitude_array , {\n \"Instantaneous Force Magnitude Array\" , \"btatt.csc_measurement.instantaneous_force_magnitude_array\" , FT_INT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_vector_instantaneous_torque_magnitude_array , {\n \"Instantaneous Torque Magnitude Array\" , \"btatt.csc_measurement.instantaneous_torque_magnitude_array\" , FT_INT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_control_point_opcode , {\n \"Opcode\" , \"btatt.cycling_power_control_point.opcode\" , FT_UINT8 , BASE_HEX , VALS ( cycling_power_control_point_opcode ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_control_point_cumulative_value , {\n \"Cumulative Value\" , \"btatt.cycling_power_control_point.cumulative_value\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_control_point_sensor_location , {\n \"Sensor Location\" , \"btatt.cycling_power_control_point.sensor_location\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_control_point_crank_length , {\n \"Crank Length\" , \"btatt.cycling_power_control_point.crank_length\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_control_point_chain_length , {\n \"Chain Length\" , \"btatt.cycling_power_control_point.chain_length\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_control_point_chain_weight , {\n \"Chain Weight\" , \"btatt.cycling_power_control_point.chain_weight\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_control_point_span_length , {\n \"Span Length\" , \"btatt.cycling_power_control_point.span_length\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_control_point_content_mask , {\n \"Content Mask\" , \"btatt.cycling_power_control_point.content_mask\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_control_point_content_mask_reserved , {\n \"Reserved\" , \"btatt.cycling_power_control_point.content_mask.reserved\" , FT_UINT16 , BASE_HEX , NULL , 0xFE0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_control_point_content_mask_accumulated_energy , {\n \"Accumulated Energy\" , \"btatt.cycling_power_control_point.content_mask.accumulated_energy\" , FT_BOOLEAN , 16 , TFS ( & control_point_mask_value_tfs ) , 0x100 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_control_point_content_mask_bottom_dead_spot_angle , {\n \"Bottom Dead Spot Angle\" , \"btatt.cycling_power_control_point.content_mask.bottom_dead_spot_angle\" , FT_BOOLEAN , 16 , TFS ( & control_point_mask_value_tfs ) , 0x080 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_control_point_content_mask_top_dead_spot_angle , {\n \"Top Dead Spot Angle\" , \"btatt.cycling_power_control_point.content_mask.top_dead_spot_angle\" , FT_BOOLEAN , 16 , TFS ( & control_point_mask_value_tfs ) , 0x040 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_control_point_content_mask_extreme_angles , {\n \"Extreme Angles\" , \"btatt.cycling_power_control_point.content_mask.extreme_angles\" , FT_BOOLEAN , 16 , TFS ( & control_point_mask_value_tfs ) , 0x020 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_control_point_content_mask_extreme_magnitudes , {\n \"Extreme Magnitudes\" , \"btatt.cycling_power_control_point.content_mask.extreme_magnitudes\" , FT_BOOLEAN , 16 , TFS ( & control_point_mask_value_tfs ) , 0x010 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_control_point_content_mask_crank_revolution_data , {\n \"Crank Revolution Data\" , \"btatt.cycling_power_control_point.content_mask.crank_revolution_data\" , FT_BOOLEAN , 16 , TFS ( & control_point_mask_value_tfs ) , 0x008 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_control_point_content_mask_wheel_revolution_data , {\n \"Wheel Revolution Data\" , \"btatt.cycling_power_control_point.content_mask.wheel_revolution_data\" , FT_BOOLEAN , 16 , TFS ( & control_point_mask_value_tfs ) , 0x004 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_control_point_content_mask_accumulated_torque , {\n \"Accumulated Torque\" , \"btatt.cycling_power_control_point.content_mask.accumulated_torque\" , FT_BOOLEAN , 16 , TFS ( & control_point_mask_value_tfs ) , 0x002 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_control_point_content_mask_pedal_power_balance , {\n \"Pedal Power Balance\" , \"btatt.cycling_power_control_point.content_mask.pedal_power_balance\" , FT_BOOLEAN , 16 , TFS ( & control_point_mask_value_tfs ) , 0x001 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_control_point_request_opcode , {\n \"Request Opcode\" , \"btatt.cycling_power_control_point.request_opcode\" , FT_UINT8 , BASE_HEX , VALS ( cycling_power_control_point_opcode ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_control_point_response_value , {\n \"Response Value\" , \"btatt.cycling_power_control_point.response_value\" , FT_UINT8 , BASE_HEX , VALS ( cycling_power_control_point_response_value ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_control_point_start_offset_compensation , {\n \"Start Offset Compensation\" , \"btatt.cycling_power_control_point.start_offset_compensation\" , FT_INT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_control_point_sampling_rate , {\n \"Sampling Rate\" , \"btatt.cycling_power_control_point.sampling_rate\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cycling_power_control_point_factory_calibration_date , {\n \"Factory Calibration Date\" , \"btatt.cycling_power_control_point.factory_calibration_date\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_location_and_speed_flags , {\n \"Flags\" , \"btatt.location_and_speed.flags\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_location_and_speed_flags_reserved , {\n \"Reserved\" , \"btatt.location_and_speed.flags.reserved\" , FT_UINT16 , BASE_HEX , NULL , 0xC000 , NULL , HFILL }\n }\n , {\n & hf_btatt_location_and_speed_flags_heading_source , {\n \"Heading Source\" , \"btatt.location_and_speed.flags.heading_source\" , FT_BOOLEAN , 16 , TFS ( & flags_heading_source_tfs ) , 0x3000 , NULL , HFILL }\n }\n , {\n & hf_btatt_location_and_speed_flags_elevation_source , {\n \"Elevation Source\" , \"btatt.location_and_speed.flags.elevation_source\" , FT_UINT16 , BASE_HEX , VALS ( location_and_speed_flags_elevation_source_vals ) , 0x0C00 , NULL , HFILL }\n }\n , {\n & hf_btatt_location_and_speed_flags_speed_and_distance_format , {\n \"Speed_and Distance Format\" , \"btatt.location_and_speed.flags.speed_and_distance_format\" , FT_BOOLEAN , 16 , TFS ( & location_and_speed_flags_speed_and_distance_format_tfs ) , 0x0200 , NULL , HFILL }\n }\n , {\n & hf_btatt_location_and_speed_flags_position_status , {\n \"Position Status\" , \"btatt.location_and_speed.flags.position_status\" , FT_UINT16 , BASE_HEX , VALS ( flags_position_status_vals ) , 0x0180 , NULL , HFILL }\n }\n , {\n & hf_btatt_location_and_speed_flags_utc_time , {\n \"UTC Time Present\" , \"btatt.location_and_speed.flags.utc_time\" , FT_BOOLEAN , 16 , NULL , 0x0040 , NULL , HFILL }\n }\n , {\n & hf_btatt_location_and_speed_flags_rolling_time , {\n \"Rolling Time\" , \"btatt.location_and_speed.flags.rolling_time\" , FT_BOOLEAN , 16 , NULL , 0x0020 , NULL , HFILL }\n }\n , {\n & hf_btatt_location_and_speed_flags_heading , {\n \"Heading\" , \"btatt.location_and_speed.flags.heading\" , FT_BOOLEAN , 16 , NULL , 0x0010 , NULL , HFILL }\n }\n , {\n & hf_btatt_location_and_speed_flags_elevation , {\n \"Elevation\" , \"btatt.location_and_speed.flags.elevation\" , FT_BOOLEAN , 16 , NULL , 0x0008 , NULL , HFILL }\n }\n , {\n & hf_btatt_location_and_speed_flags_location , {\n \"Location\" , \"btatt.location_and_speed.flags.location\" , FT_BOOLEAN , 16 , NULL , 0x0004 , NULL , HFILL }\n }\n , {\n & hf_btatt_location_and_speed_flags_total_distance , {\n \"Total Distance Present\" , \"btatt.location_and_speed.flags.total_distance\" , FT_BOOLEAN , 16 , NULL , 0x0002 , NULL , HFILL }\n }\n , {\n & hf_btatt_location_and_speed_flags_instantaneous_speed , {\n \"Instantaneous Speed\" , \"btatt.location_and_speed.flags.instantaneous_speed\" , FT_BOOLEAN , 16 , NULL , 0x0001 , NULL , HFILL }\n }\n , {\n & hf_btatt_location_and_speed_instantaneous_speed , {\n \"Instantaneous Speed\" , \"btatt.location_and_speed.instantaneous_speed\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_location_and_speed_total_distance , {\n \"Total Distance\" , \"btatt.location_and_speed.total_distance\" , FT_UINT24 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_location_and_speed_location_longitude , {\n \"Location Longitude\" , \"btatt.location_and_speed.location.longitude\" , FT_INT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_location_and_speed_location_latitude , {\n \"Location Latitude\" , \"btatt.location_and_speed.location.latitude\" , FT_INT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_location_and_speed_elevation , {\n \"Elevation\" , \"btatt.location_and_speed.elevation\" , FT_INT24 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_location_and_speed_heading , {\n \"Heading\" , \"btatt.location_and_speed.heading\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_location_and_speed_rolling_time , {\n \"Rolling Time\" , \"btatt.location_and_speed.rolling_time\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_location_and_speed_utc_time , {\n \"UTC Time\" , \"btatt.location_and_speed.utc_time\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_navigation_flags , {\n \"Flags\" , \"btatt.navigation.flags\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_navigation_flags_reserved , {\n \"Reserved\" , \"btatt.navigation.flags.reserved\" , FT_UINT16 , BASE_HEX , NULL , 0xFE00 , NULL , HFILL }\n }\n , {\n & hf_btatt_navigation_flags_destination_reached , {\n \"Destination Reached\" , \"btatt.navigation.flags.destination_reached\" , FT_BOOLEAN , 16 , NULL , 0x0100 , NULL , HFILL }\n }\n , {\n & hf_btatt_navigation_flags_waypoint_reached , {\n \"Waypoint Reached\" , \"btatt.navigation.flags.waypoint_reached\" , FT_BOOLEAN , 16 , NULL , 0x0080 , NULL , HFILL }\n }\n , {\n & hf_btatt_navigation_flags_navigation_indicator_type , {\n \"Navigation Indicator Type\" , \"btatt.navigation.flags.navigation_indicator_type\" , FT_BOOLEAN , 16 , TFS ( & navigation_indicator_type_tfs ) , 0x0040 , NULL , HFILL }\n }\n , {\n & hf_btatt_navigation_flags_heading_source , {\n \"Heading Source\" , \"btatt.navigation.flags.heading_source\" , FT_BOOLEAN , 16 , TFS ( & flags_heading_source_tfs ) , 0x0020 , NULL , HFILL }\n }\n , {\n & hf_btatt_navigation_flags_position_status , {\n \"Position Status\" , \"btatt.navigation.flags.position_status\" , FT_UINT16 , BASE_HEX , VALS ( flags_position_status_vals ) , 0x0018 , NULL , HFILL }\n }\n , {\n & hf_btatt_navigation_flags_estimated_time_of_arrival , {\n \"Estimated Time of Arrival\" , \"btatt.navigation.flags.estimated_time_of_arrival\" , FT_BOOLEAN , 16 , NULL , 0x0004 , NULL , HFILL }\n }\n , {\n & hf_btatt_navigation_flags_remaining_vertical_distance , {\n \"Remaining Vertical Distance\" , \"btatt.navigation.flags.remaining_vertical_distance\" , FT_BOOLEAN , 16 , NULL , 0x0002 , NULL , HFILL }\n }\n , {\n & hf_btatt_navigation_flags_remaining_distance , {\n \"Remaining Distance\" , \"btatt.navigation.flags.remaining_distance\" , FT_BOOLEAN , 16 , NULL , 0x0001 , NULL , HFILL }\n }\n , {\n & hf_btatt_navigation_bearing , {\n \"Bearing\" , \"btatt.navigation.bearing\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_navigation_heading , {\n \"Heading\" , \"btatt.navigation.heading\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_navigation_remaining_distance , {\n \"Remaining Distance\" , \"btatt.navigation.remaining_distance\" , FT_UINT24 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_navigation_remaining_vertical_distance , {\n \"Remaining Vertical Distance\" , \"btatt.navigation.remaining_vertical_distance\" , FT_INT24 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_navigation_estimated_time_of_arrival , {\n \"Estimated Time of Arrival\" , \"btatt.navigation.estimated_time_of_arrival\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_position_quality_flags , {\n \"Flags\" , \"btatt.position_quality.flags\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_position_quality_flags_reserved , {\n \"Reserved\" , \"btatt.position_quality.flags.reserved\" , FT_UINT16 , BASE_HEX , NULL , 0xFE00 , NULL , HFILL }\n }\n , {\n & hf_btatt_position_quality_flags_position_status , {\n \"Position Status\" , \"btatt.position_quality.flags.position_status\" , FT_UINT16 , BASE_HEX , VALS ( flags_position_status_vals ) , 0x0180 , NULL , HFILL }\n }\n , {\n & hf_btatt_position_quality_flags_vdop , {\n \"VDOP\" , \"btatt.position_quality.flags.vdop\" , FT_BOOLEAN , 16 , NULL , 0x0040 , NULL , HFILL }\n }\n , {\n & hf_btatt_position_quality_flags_hdop , {\n \"HDOP\" , \"btatt.position_quality.flags.hdop\" , FT_BOOLEAN , 16 , NULL , 0x0020 , NULL , HFILL }\n }\n , {\n & hf_btatt_position_quality_flags_evpe , {\n \"EVPE\" , \"btatt.position_quality.flags.evpe\" , FT_BOOLEAN , 16 , NULL , 0x0010 , NULL , HFILL }\n }\n , {\n & hf_btatt_position_quality_flags_ehpe , {\n \"EHPE\" , \"btatt.position_quality.flags.ehpe\" , FT_BOOLEAN , 16 , NULL , 0x0008 , NULL , HFILL }\n }\n , {\n & hf_btatt_position_quality_flags_time_to_first_fix , {\n \"Time to First Fix\" , \"btatt.position_quality.flags.time_to_first_fix\" , FT_BOOLEAN , 16 , NULL , 0x0004 , NULL , HFILL }\n }\n , {\n & hf_btatt_position_quality_flags_number_of_beacons_in_view , {\n \"Number of Beacons in View\" , \"btatt.position_quality.flags.number_of_beacons_in_view\" , FT_BOOLEAN , 16 , NULL , 0x0002 , NULL , HFILL }\n }\n , {\n & hf_btatt_position_quality_flags_number_of_beacons_in_solution , {\n \"Number of Beacons_in Solution\" , \"btatt.position_quality.flags.number_of_beacons_in_solution\" , FT_BOOLEAN , 16 , NULL , 0x0001 , NULL , HFILL }\n }\n , {\n & hf_btatt_position_quality_number_of_beacons_in_solution , {\n \"number_of_beacons_in_solution\" , \"btatt.position_quality.number_of_beacons_in_solution\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_position_quality_number_of_beacons_in_view , {\n \"number_of_beacons_in_view\" , \"btatt.position_quality.number_of_beacons_in_view\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_position_quality_time_to_first_fix , {\n \"time_to_first_fix\" , \"btatt.position_quality.time_to_first_fix\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_position_quality_ehpe , {\n \"EHPE\" , \"btatt.position_quality.ehpe\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_position_quality_evpe , {\n \"EVPE\" , \"btatt.position_quality.evpe\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_position_quality_hdop , {\n \"HDOP\" , \"btatt.position_quality.hdop\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_position_quality_vdop , {\n \"VDOP\" , \"btatt.position_quality.vdop\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_control_point_opcode , {\n \"Opcode\" , \"btatt.ln_control_point.opcode\" , FT_UINT8 , BASE_HEX , VALS ( ln_control_point_opcode ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_control_point_cumulative_value , {\n \"Cumulative Value\" , \"btatt.ln_control_point.cumulative_value\" , FT_UINT24 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_control_point_content_mask , {\n \"Content Mask\" , \"btatt.ln_control_point.content_mask\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_control_point_content_mask_reserved , {\n \"Reserved\" , \"btatt.ln_control_point.content_mask.reserved\" , FT_UINT16 , BASE_HEX , NULL , 0xFF80 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_control_point_content_mask_utc_time , {\n \"UTC Time\" , \"btatt.ln_control_point.content_mask.utc_time\" , FT_BOOLEAN , 16 , TFS ( & control_point_mask_value_tfs ) , 0x0040 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_control_point_content_mask_rolling_time , {\n \"Rolling Time\" , \"btatt.ln_control_point.content_mask.rolling_time\" , FT_BOOLEAN , 16 , TFS ( & control_point_mask_value_tfs ) , 0x0020 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_control_point_content_mask_heading , {\n \"Heading\" , \"btatt.ln_control_point.content_mask.heading\" , FT_BOOLEAN , 16 , TFS ( & control_point_mask_value_tfs ) , 0x0010 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_control_point_content_mask_elevation , {\n \"Elevation\" , \"btatt.ln_control_point.content_mask.elevation\" , FT_BOOLEAN , 16 , TFS ( & control_point_mask_value_tfs ) , 0x0008 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_control_point_content_mask_location , {\n \"Location\" , \"btatt.ln_control_point.content_mask.location\" , FT_BOOLEAN , 16 , TFS ( & control_point_mask_value_tfs ) , 0x0004 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_control_point_content_mask_total_distance , {\n \"Total Distance\" , \"btatt.ln_control_point.content_mask.total_distance\" , FT_BOOLEAN , 16 , TFS ( & control_point_mask_value_tfs ) , 0x0002 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_control_point_content_mask_instantaneous_speed , {\n \"Instantaneous Speed\" , \"btatt.ln_control_point.content_mask.instantaneous_speed\" , FT_BOOLEAN , 16 , TFS ( & control_point_mask_value_tfs ) , 0x0001 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_control_point_navigation_control , {\n \"Navigation Control\" , \"btatt.ln_control_point.navigation_control\" , FT_UINT8 , BASE_HEX , VALS ( ln_control_point_navigation_control_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_control_point_route_number , {\n \"Route Number\" , \"btatt.ln_control_point.route_number\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_control_point_fix_rate , {\n \"Fix Rate\" , \"btatt.ln_control_point.fix_rate\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_control_point_elevation , {\n \"Elevation\" , \"btatt.ln_control_point.elevation\" , FT_INT24 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_control_point_request_opcode , {\n \"Request Opcode\" , \"btatt.ln_control_point.request_opcode\" , FT_UINT8 , BASE_HEX , VALS ( ln_control_point_opcode ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_control_point_response_value , {\n \"Response Value\" , \"btatt.ln_control_point.response_value\" , FT_UINT8 , BASE_HEX , VALS ( ln_control_point_response_value ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_control_point_response_value_number_of_routes , {\n \"Number of Routes\" , \"btatt.ln_control_point.number_of_routes\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ln_control_point_response_value_name_of_route , {\n \"Name_of Route\" , \"btatt.ln_control_point.name_of_route\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_measurement_flags , {\n \"Flags\" , \"btatt.body_composition_measurement.flags\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_measurement_flags_reserved , {\n \"Reserved\" , \"btatt.body_composition_measurement.flags.reserved\" , FT_UINT16 , BASE_HEX , NULL , 0xE000 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_measurement_flags_multiple_packet_measurement , {\n \"Multiple Packet Measurement\" , \"btatt.body_composition_measurement.flags.multiple_packet_measurement\" , FT_BOOLEAN , 16 , NULL , 0x1000 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_measurement_flags_height , {\n \"Height\" , \"btatt.body_composition_measurement.flags.height\" , FT_BOOLEAN , 16 , NULL , 0x0800 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_measurement_flags_weight , {\n \"Weight\" , \"btatt.body_composition_measurement.flags.weight\" , FT_BOOLEAN , 16 , NULL , 0x0400 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_measurement_flags_impedance , {\n \"Impedance\" , \"btatt.body_composition_measurement.flags.impedance\" , FT_BOOLEAN , 16 , NULL , 0x0200 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_measurement_flags_body_water_mass , {\n \"Body Water Mass\" , \"btatt.body_composition_measurement.flags.body_water_mass\" , FT_BOOLEAN , 16 , NULL , 0x0100 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_measurement_flags_soft_lean_mass , {\n \"Soft Lean Mass\" , \"btatt.body_composition_measurement.flags.soft_lean_mass\" , FT_BOOLEAN , 16 , NULL , 0x0080 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_measurement_flags_fat_free_mass , {\n \"Fat Free Mass\" , \"btatt.body_composition_measurement.flags.fat_free_mass\" , FT_BOOLEAN , 16 , NULL , 0x0040 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_measurement_flags_muscle_mass , {\n \"Muscle Mass\" , \"btatt.body_composition_measurement.flags.muscle_mass\" , FT_BOOLEAN , 16 , NULL , 0x0020 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_measurement_flags_muscle_percentage , {\n \"Muscle Percentage\" , \"btatt.body_composition_measurement.flags.muscle_percentage\" , FT_BOOLEAN , 16 , NULL , 0x0010 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_measurement_flags_basal_metabolism , {\n \"Basal Metabolism\" , \"btatt.body_composition_measurement.flags.basal_metabolism\" , FT_BOOLEAN , 16 , NULL , 0x0008 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_measurement_flags_user_id , {\n \"User ID\" , \"btatt.body_composition_measurement.flags.user_id\" , FT_BOOLEAN , 16 , NULL , 0x0004 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_measurement_flags_timestamp , {\n \"Timestamp\" , \"btatt.body_composition_measurement.flags.timestamp\" , FT_BOOLEAN , 16 , NULL , 0x0002 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_measurement_flags_measurement_units , {\n \"Measurement Units\" , \"btatt.body_composition_measurement.flags.measurement_units\" , FT_UINT16 , BASE_HEX , VALS ( body_composition_measurement_flags_measurement_units_vals ) , 0x0001 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_measurement_body_fat_percentage , {\n \"Body Fat Percentage\" , \"btatt.body_composition_measurement.body_fat_percentage\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_measurement_timestamp , {\n \"Timestamp\" , \"btatt.body_composition_measurement.timestamp\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_measurement_user_id , {\n \"User ID\" , \"btatt.body_composition_measurement.user_id\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_measurement_basal_metabolism , {\n \"Basal Metabolism\" , \"btatt.body_composition_measurement.basal_metabolism\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_measurement_muscle_percentage , {\n \"Muscle Percentage\" , \"btatt.body_composition_measurement.muscle_percentage\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_measurement_muscle_mass_lb , {\n \"Muscle Mass [lb]\" , \"btatt.body_composition_measurement.muscle_mass.lb\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_measurement_muscle_mass_kg , {\n \"Muscle Mass [kg]\" , \"btatt.body_composition_measurement.muscle_mass.kg\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_measurement_fat_free_mass_lb , {\n \"Fat Free Mass [lb]\" , \"btatt.body_composition_measurement.fat_free_mass.lb\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_measurement_fat_free_mass_kg , {\n \"Fat Free Mass [kg]\" , \"btatt.body_composition_measurement.fat_free_mass.kg\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_measurement_soft_lean_mass_lb , {\n \"Soft Lean Mass [lb]\" , \"btatt.body_composition_measurement.soft_lean_mass.lb\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_measurement_soft_lean_mass_kg , {\n \"Soft Lean Mass [kg]\" , \"btatt.body_composition_measurement.soft_lean_mass.kg\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_measurement_body_water_mass_lb , {\n \"Body Water Mass [lb]\" , \"btatt.body_composition_measurement.body_water_mass.lb\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_measurement_body_water_mass_kg , {\n \"Body Water Mass [kg]\" , \"btatt.body_composition_measurement.body_water_mass.kg\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_measurement_impedance , {\n \"Impedance\" , \"btatt.body_composition_measurement.impedance\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_measurement_weight_lb , {\n \"Weight [lb]\" , \"btatt.body_composition_measurement.weight.lb\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_measurement_weight_kg , {\n \"Weight [kg]\" , \"btatt.body_composition_measurement.weight.kg\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_measurement_height_inches , {\n \"Height [inches]\" , \"btatt.body_composition_measurement.height.inches\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_body_composition_measurement_height_meter , {\n \"Height [meter]\" , \"btatt.body_composition_measurement.height.meter\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_weight_measurement_flags , {\n \"Flags\" , \"btatt.weight_measurement.flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_weight_measurement_flags_reserved , {\n \"Reserved\" , \"btatt.weight_measurement.flags.reserved\" , FT_UINT8 , BASE_HEX , NULL , 0xF0 , NULL , HFILL }\n }\n , {\n & hf_btatt_weight_measurement_flags_bmi_and_height , {\n \"BMI and Height\" , \"btatt.weight_measurement.flags.bmi_and_height\" , FT_BOOLEAN , 8 , NULL , 0x08 , NULL , HFILL }\n }\n , {\n & hf_btatt_weight_measurement_flags_user_id , {\n \"User ID\" , \"btatt.weight_measurement.flags.user_id\" , FT_BOOLEAN , 8 , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_btatt_weight_measurement_flags_timestamp , {\n \"Timestamp\" , \"btatt.weight_measurement.flags.timestamp\" , FT_BOOLEAN , 8 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btatt_weight_measurement_flags_measurement_units , {\n \"Measurement Units\" , \"btatt.weight_measurement.flags.measurement_units\" , FT_BOOLEAN , 8 , TFS ( & weight_measurement_flags_measurement_units_tfs ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btatt_weight_measurement_weight_lb , {\n \"Weight [lb]\" , \"btatt.weight_measurement.weight.lb\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_weight_measurement_weight_kg , {\n \"Weight [kg]\" , \"btatt.weight_measurement.weight.kg\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_weight_measurement_timestamp , {\n \"Timestamp\" , \"btatt.weight_measurement.timestamp\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_weight_measurement_user_id , {\n \"User ID\" , \"btatt.weight_measurement.user_id\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_weight_measurement_bmi , {\n \"BMI\" , \"btatt.weight_measurement.bmi\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_weight_measurement_height_in , {\n \"Height [in]\" , \"btatt.weight_measurement.height.in\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_weight_measurement_height_m , {\n \"Height [m]\" , \"btatt.weight_measurement.height.m\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_user_control_point_opcode , {\n \"Opcode\" , \"btatt.user_control_point.opcode\" , FT_UINT8 , BASE_HEX , VALS ( user_control_point_opcode_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_user_control_point_request_opcode , {\n \"Request Opcode\" , \"btatt.user_control_point.request_opcode\" , FT_UINT8 , BASE_HEX , VALS ( user_control_point_opcode_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_user_control_point_response_value , {\n \"Response Value\" , \"btatt.user_control_point.response_value\" , FT_UINT8 , BASE_HEX , VALS ( user_control_point_response_value_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_user_control_point_consent_code , {\n \"Consent Code\" , \"btatt.user_control_point.consent_code\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_measurement_size , {\n \"Size\" , \"btatt.cgm_measurement.size\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_measurement_flags , {\n \"Flags\" , \"btatt.cgm_measurement.flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_measurement_flags_cgm_trend_information , {\n \"CGM Trend Information\" , \"btatt.cgm_measurement.flags.cgm_trend_information\" , FT_BOOLEAN , 8 , NULL , 0x80 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_measurement_flags_cgm_quality , {\n \"CGM Quality\" , \"btatt.cgm_measurement.flags.cgm_quality\" , FT_BOOLEAN , 8 , NULL , 0x40 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_measurement_flags_reserved , {\n \"Reserved\" , \"btatt.cgm_measurement.flags.reserved\" , FT_UINT8 , BASE_HEX , NULL , 0x38 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_measurement_flags_sensor_status_annunciation_warning , {\n \"Sensor Status Annunciation - Warning\" , \"btatt.cgm_measurement.flags.sensor_status_annunciation.warning\" , FT_BOOLEAN , 8 , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_measurement_flags_sensor_status_annunciation_cal_temp , {\n \"Sensor Status Annunciation - Cal/Temp\" , \"btatt.cgm_measurement.flags.sensor_status_annunciation.cal_temp\" , FT_BOOLEAN , 8 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_measurement_flags_sensor_status_annunciation_status , {\n \"Sensor Status Annunciation - Status\" , \"btatt.cgm_measurement.flags.sensor_status_annunciation.status\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_measurement_glucose_concentration , {\n \"Glucose Concentration\" , \"btatt.cgm_measurement.glucose_concentration\" , FT_IEEE_11073_SFLOAT , BASE_FLOAT , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_measurement_time_offset , {\n \"Time Offset\" , \"btatt.cgm_measurement.time_offset\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_sensor_status_annunciation , {\n \"Sensor Status Annunciation\" , \"btatt.cgm.sensor_status_annunciation\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_sensor_status_annunciation_status , {\n \"Status\" , \"btatt.cgm.sensor_status_annunciation.status\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_sensor_status_annunciation_status_reserved , {\n \"Reserved\" , \"btatt.cgm.sensor_status_annunciation.status.reserved\" , FT_UINT8 , BASE_HEX , NULL , 0xC0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_sensor_status_annunciation_status_general_device_fault_has_occurred_in_the_sensor , {\n \"General Device Fault has Occurred in the Sensor\" , \"btatt.cgm.sensor_status_annunciation.status.general_device_fault_has_occurred_in_the_sensor\" , FT_BOOLEAN , 8 , NULL , 0x20 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_sensor_status_annunciation_status_device_specific_alert , {\n \"Device Specific Alert\" , \"btatt.cgm.sensor_status_annunciation.status.device_specific_alert\" , FT_BOOLEAN , 8 , NULL , 0x10 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_sensor_status_annunciation_status_sensor_malfunction , {\n \"Sensor Malfunction\" , \"btatt.cgm.sensor_status_annunciation.status.sensor_malfunction\" , FT_BOOLEAN , 8 , NULL , 0x08 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_sensor_status_annunciation_status_sensor_type_incorrect_for_device , {\n \"Sensor Type Incorrect for Device\" , \"btatt.cgm.sensor_status_annunciation.status.sensor_type_incorrect_for_device\" , FT_BOOLEAN , 8 , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_sensor_status_annunciation_status_device_battery_low , {\n \"Device Battery Low\" , \"btatt.cgm.sensor_status_annunciation.status.device_battery_low\" , FT_BOOLEAN , 8 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_sensor_status_annunciation_status_session_stopped , {\n \"Session Stopped\" , \"btatt.cgm.sensor_status_annunciation.status.session_stopped\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_sensor_status_annunciation_cal_temp , {\n \"Cal/Temp\" , \"btatt.cgm.sensor_status_annunciation.cal_temp\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_sensor_status_annunciation_cal_temp_reserved , {\n \"Reserved\" , \"btatt.cgm.sensor_status_annunciation.cal_temp.reserved\" , FT_UINT8 , BASE_HEX , NULL , 0xC0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_sensor_status_annunciation_cal_temp_sensor_temperature_too_low_for_valid_test_result_at_time_of_measurement , {\n \"Sensor Temperature too Low for Valid Test Result at Time of Measurement\" , \"btatt.cgm.sensor_status_annunciation.cal_temp.sensor_temperature_too_low_for_valid_test_result_at_time_of_measurement\" , FT_BOOLEAN , 8 , NULL , 0x20 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_sensor_status_annunciation_cal_temp_sensor_temperature_too_high_for_valid_test_result_at_time_of_measurement , {\n \"Sensor Temperature too High for Valid Test Result at Time of Measurement\" , \"btatt.cgm_measurement.sensor_cal_temp_annunciation.cal_temp.sensor_temperature_too_high_for_valid_test_result_at_time_of_measurement\" , FT_BOOLEAN , 8 , NULL , 0x10 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_sensor_status_annunciation_cal_temp_calibration_required , {\n \"Calibration Required\" , \"btatt.cgm_measurement.sensor_cal_temp_annunciation.cal_temp.calibration_required\" , FT_BOOLEAN , 8 , NULL , 0x08 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_sensor_status_annunciation_cal_temp_calibration_recommended , {\n \"Calibration Recommended\" , \"btatt.cgm_measurement.sensor_cal_temp_annunciation.cal_temp.calibration_recommended\" , FT_BOOLEAN , 8 , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_sensor_status_annunciation_cal_temp_calibration_not_allowed , {\n \"Calibration not Allowed\" , \"btatt.cgm_measurement.sensor_cal_temp_annunciation.cal_temp.calibration_not_allowed\" , FT_BOOLEAN , 8 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_sensor_status_annunciation_cal_temp_time_synchronization_between_sensor_and_collector_required , {\n \"Time Synchronization between Sensor and Collector Required\" , \"btatt.cgm_measurement.sensor_cal_temp_annunciation.cal_temp.time_synchronization_between_sensor_and_collector_required\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_sensor_status_annunciation_warning , {\n \"Warning\" , \"btatt.cgm.sensor_status_annunciation.warning\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_sensor_status_annunciation_warning_sensor_result_higher_than_the_device_can_process , {\n \"Sensor Result Higher than the Device Can Process\" , \"btatt.cgm.sensor_status_annunciation.warning.sensor_result_higher_than_the_device_can_process\" , FT_BOOLEAN , 8 , NULL , 0x80 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_sensor_status_annunciation_warning_sensor_result_lower_than_the_device_can_process , {\n \"Sensor Result Lower than the Device Can Process\" , \"btatt.cgm_measurement.sensor_warning_annunciation.warning.sensor_result_lower_than_the_device_can_process\" , FT_BOOLEAN , 8 , NULL , 0x40 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_sensor_status_annunciation_warning_sensor_rate_of_increase_exceeded , {\n \"Sensor Rate of Increase Exceeded\" , \"btatt.cgm_measurement.sensor_warning_annunciation.warning.sensor_rate_of_increase_exceeded\" , FT_BOOLEAN , 8 , NULL , 0x20 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_sensor_status_annunciation_warning_sensor_rate_of_decrease_exceeded , {\n \"Sensor Rate of Decrease Exceeded\" , \"btatt.cgm_measurement.sensor_warning_annunciation.warning.sensor_rate_of_decrease_exceeded\" , FT_BOOLEAN , 8 , NULL , 0x10 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_sensor_status_annunciation_warning_sensor_result_higher_than_the_hyper_level , {\n \"Sensor Result Higher than the Hyper Level\" , \"btatt.cgm_measurement.sensor_warning_annunciation.warning.sensor_result_higher_than_the_hyper_level\" , FT_BOOLEAN , 8 , NULL , 0x08 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_sensor_status_annunciation_warning_sensor_result_lower_than_the_hypo_level , {\n \"Sensor Result Lower than the Hypo Level\" , \"btatt.cgm_measurement.sensor_warning_annunciation.warning.sensor_result_lower_than_the_hypo_level\" , FT_BOOLEAN , 8 , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_sensor_status_annunciation_warning_sensor_result_higher_than_the_patient_high_level , {\n \"Sensor Result Higher than the Patient High Level\" , \"btatt.cgm_measurement.sensor_warning_annunciation.warning.sensor_result_higher_than_the_patient_high_level\" , FT_BOOLEAN , 8 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_sensor_status_annunciation_warning_sensor_result_lower_than_the_patient_low_level , {\n \"Sensor Result Lower than the Patient Low Level\" , \"btatt.cgm_measurement.sensor_warning_annunciation.warning.sensor_result_lower_than_the_patient_low_level\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_measurement_trend_information , {\n \"Trend Information\" , \"btatt.cgm_measurement.trend_information\" , FT_IEEE_11073_SFLOAT , BASE_FLOAT , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_measurement_quality , {\n \"Quality\" , \"btatt.cgm_measurement.quality\" , FT_IEEE_11073_SFLOAT , BASE_FLOAT , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_e2e_crc , {\n \"E2E-CRC\" , \"btatt.cgm.e2e_crc\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_feature_feature , {\n \"Feature\" , \"btatt.cgm_feature.feature\" , FT_UINT24 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_feature_feature_reserved , {\n \"Reserved\" , \"btatt.cgm_feature.feature.reserved\" , FT_UINT24 , BASE_HEX , NULL , 0xFE0000 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_feature_feature_quality , {\n \"Quality\" , \"btatt.cgm_feature.feature.quality\" , FT_BOOLEAN , 24 , NULL , 0x010000 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_feature_feature_trend_information , {\n \"Trend Information\" , \"btatt.cgm_feature.feature.trend_information\" , FT_BOOLEAN , 24 , NULL , 0x008000 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_feature_feature_multiple_sessions , {\n \"Multiple Sessions\" , \"btatt.cgm_feature.feature.multiple_sessions\" , FT_BOOLEAN , 24 , NULL , 0x004000 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_feature_feature_multiple_bond , {\n \"Multiple Bond\" , \"btatt.cgm_feature.feature.multiple_bond\" , FT_BOOLEAN , 24 , NULL , 0x002000 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_feature_feature_e2e_crc , {\n \"E2E-CRC\" , \"btatt.cgm_feature.feature.e2e_crc\" , FT_BOOLEAN , 24 , NULL , 0x001000 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_feature_feature_general_device_fault , {\n \"General Device Fault\" , \"btatt.cgm_feature.feature.general_device_fault\" , FT_BOOLEAN , 24 , NULL , 0x000800 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_feature_feature_sensor_type_error_detection , {\n \"Sensor Type Error Detection\" , \"btatt.cgm_feature.feature.sensor_type_error_detection\" , FT_BOOLEAN , 24 , NULL , 0x000400 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_feature_feature_low_battery_detection , {\n \"Low Battery Detection\" , \"btatt.cgm_feature.feature.low_battery_detection\" , FT_BOOLEAN , 24 , NULL , 0x000200 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_feature_feature_sensor_result_high_low_detection , {\n \"Sensor Result High-Low Detection\" , \"btatt.cgm_feature.feature.sensor_result_high_low_detection\" , FT_BOOLEAN , 24 , NULL , 0x000100 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_feature_feature_sensor_temperature_high_low_detection , {\n \"Sensor Temperature High-Low Detection\" , \"btatt.cgm_feature.feature.sensor_temperature_high_low_detection\" , FT_BOOLEAN , 24 , NULL , 0x000080 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_feature_feature_sensor_malfunction_detection , {\n \"Sensor Malfunction Detection\" , \"btatt.cgm_feature.feature.sensor_malfunction_detection\" , FT_BOOLEAN , 24 , NULL , 0x000040 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_feature_feature_device_specific_alert , {\n \"Device Specific Alert\" , \"btatt.cgm_feature.feature.device_specific_alert\" , FT_BOOLEAN , 24 , NULL , 0x000020 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_feature_feature_rate_of_increase_decrease_alerts , {\n \"Rate of Increase Decrease Alerts\" , \"btatt.cgm_feature.feature.rate_of_increase_decrease_alerts\" , FT_BOOLEAN , 24 , NULL , 0x000010 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_feature_feature_hyper_alerts , {\n \"Hyper Alerts\" , \"btatt.cgm_feature.feature.hyper_alerts\" , FT_BOOLEAN , 24 , NULL , 0x000008 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_feature_feature_hypo_alerts , {\n \"Hypo Alerts\" , \"btatt.cgm_feature.feature.hypo_alerts\" , FT_BOOLEAN , 24 , NULL , 0x000004 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_feature_feature_patient_high_low_alerts , {\n \"Patient High-Low Alerts\" , \"btatt.cgm_feature.feature.patient_high_low_alerts\" , FT_BOOLEAN , 24 , NULL , 0x000002 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_feature_feature_calibration , {\n \"Calibration\" , \"btatt.cgm_feature.feature.calibration\" , FT_BOOLEAN , 24 , NULL , 0x000001 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_type_and_sample_location , {\n \"Type and Sample Location\" , \"btatt.cgm.type_and_sample_location\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_type , {\n \"Type and Sample Location\" , \"btatt.cgm.type_and_sample_location.type\" , FT_UINT8 , BASE_HEX , VALS ( cgm_feature_type_vals ) , 0xF0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_sample_location , {\n \"Sample Location\" , \"btatt.cgm.type_and_sample_location.sample_location\" , FT_UINT8 , BASE_HEX , VALS ( cgm_feature_sample_location_vals ) , 0x0F , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_time_offset , {\n \"Time Offset\" , \"btatt.cgm.time_offset\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_status , {\n \"Status\" , \"btatt.cgm.status\" , FT_UINT24 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_session_start_time , {\n \"Session Start Time\" , \"btatt.cgm.session_start_time\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_session_run_time , {\n \"Session Run Time\" , \"btatt.cgm.session_run_time\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_specific_ops_control_point_opcode , {\n \"Opcode\" , \"btatt.cgm_specific_ops_control_point.opcode\" , FT_UINT8 , BASE_HEX , VALS ( cgm_specific_ops_control_point_opcode_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_specific_ops_control_point_operand , {\n \"Operand\" , \"btatt.cgm_specific_ops_control_point.operand\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_specific_ops_control_point_operand_communication_interval , {\n \"Communication Interval\" , \"btatt.cgm_specific_ops_control_point.operand.communication_interval\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_specific_ops_control_point_calibration_glucose_concentration , {\n \"Calibration Glucose Concentration\" , \"btatt.cgm_specific_ops_control_point.operand.calibration_glucose_concentration\" , FT_IEEE_11073_SFLOAT , BASE_FLOAT , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_specific_ops_control_point_calibration_time , {\n \"Calibration Time\" , \"btatt.cgm_specific_ops_control_point.operand.calibration_time\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_specific_ops_control_point_next_calibration_time , {\n \"Next Calibration Time\" , \"btatt.cgm_specific_ops_control_point.operand.next_calibration_time\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_specific_ops_control_point_calibration_data_record_number , {\n \"Calibration Data Record Number\" , \"btatt.cgm_specific_ops_control_point.operand.calibration_data_record_number\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_specific_ops_control_point_calibration_status , {\n \"Calibration Status\" , \"btatt.cgm_specific_ops_control_point.operand.calibration_status\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_specific_ops_control_point_calibration_status_reserved , {\n \"Reserved\" , \"btatt.cgm_specific_ops_control_point.operand.calibration_status.reserved\" , FT_UINT8 , BASE_DEC , NULL , 0xF8 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_specific_ops_control_point_calibration_status_pending , {\n \"Pending\" , \"btatt.cgm_specific_ops_control_point.operand.calibration_status.pending\" , FT_BOOLEAN , 8 , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_specific_ops_control_point_calibration_status_out_of_range , {\n \"Out of Range\" , \"btatt.cgm_specific_ops_control_point.operand.calibration_status.out_of_range\" , FT_BOOLEAN , 8 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_specific_ops_control_point_calibration_status_rejected , {\n \"Rejected\" , \"btatt.cgm_specific_ops_control_point.operand.calibration_status.rejected\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_specific_ops_control_point_operand_calibration_data_record_number , {\n \"Calibration Data Record Number\" , \"btatt.cgm_specific_ops_control_point.operand.calibration_data_record_number\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_specific_ops_control_point_operand_alert_level , {\n \"Alert Level [mg/dL]\" , \"btatt.cgm_specific_ops_control_point.operand.alert_level\" , FT_IEEE_11073_SFLOAT , BASE_FLOAT , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_specific_ops_control_point_operand_alert_level_rate , {\n \"Alert Level Rate [mg/dL/min]\" , \"btatt.cgm_specific_ops_control_point.operand.alert_level_rate\" , FT_IEEE_11073_SFLOAT , BASE_FLOAT , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_specific_ops_control_point_request_opcode , {\n \"Request Opcode\" , \"btatt.cgm_specific_ops_control_point.request_opcode\" , FT_UINT8 , BASE_HEX , VALS ( cgm_specific_ops_control_point_opcode_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_cgm_specific_ops_control_point_response_code , {\n \"Response Code\" , \"btatt.cgm_specific_ops_control_point.response_code\" , FT_UINT8 , BASE_HEX , VALS ( cgm_specific_ops_control_point_response_code_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_uri , {\n \"URI\" , \"btatt.uri\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_http_headers , {\n \"HTTP Headers\" , \"btatt.http_headers\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_http_status_code , {\n \"HTTP Status Code\" , \"btatt.http_status_code\" , FT_UINT16 , BASE_DEC , VALS ( vals_http_status_code ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_http_data_status , {\n \"HTTP Data Status\" , \"btatt.http_data_status\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_http_data_status_headers_received , {\n \"Headers Received\" , \"btatt.http_data_status.headers_received\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btatt_http_data_status_headers_truncated , {\n \"Headers Truncated\" , \"btatt.http_data_status.headers_truncated\" , FT_BOOLEAN , 8 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btatt_http_data_status_body_received , {\n \"Body Received\" , \"btatt.http_data_status.body_received\" , FT_BOOLEAN , 8 , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_btatt_http_data_status_body_truncated , {\n \"Body Truncated\" , \"btatt.http_data_status.body_truncated\" , FT_BOOLEAN , 8 , NULL , 0x08 , NULL , HFILL }\n }\n , {\n & hf_btatt_http_data_status_reserved , {\n \"Reserved\" , \"btatt.http_data_status.reserved\" , FT_UINT8 , BASE_HEX , NULL , 0xF0 , NULL , HFILL }\n }\n , {\n & hf_btatt_http_entity_body , {\n \"HTTP Entity Body\" , \"btatt.http_entity_body\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_http_control_point_opcode , {\n \"Opcode\" , \"btatt.control_point.opcode\" , FT_UINT8 , BASE_HEX , VALS ( http_control_point_opcode_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_https_security , {\n \"HTTPS Security\" , \"btatt.https_security\" , FT_UINT8 , BASE_HEX , VALS ( https_security_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_tds_opcode , {\n \"Opcode\" , \"btatt.tds.opcode\" , FT_UINT8 , BASE_HEX , VALS ( tds_opcode_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_tds_organization_id , {\n \"Organization ID\" , \"btatt.tds.organization_id\" , FT_UINT8 , BASE_HEX , VALS ( tds_organization_id_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_tds_result_code , {\n \"Result Code\" , \"btatt.tds.result_code\" , FT_UINT8 , BASE_HEX , VALS ( tds_result_code_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_tds_data , {\n \"Data\" , \"btatt.tds.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_feature_oacp , {\n \"OACP Features\" , \"btatt.ots.oacp\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_feature_oacp_reserved , {\n \"Reserved\" , \"btatt.ots.oacp.reserved\" , FT_BOOLEAN , 32 , NULL , 0xFFFFFC00 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_feature_oacp_abort , {\n \"Abort\" , \"btatt.ots.oacp.abort\" , FT_BOOLEAN , 32 , NULL , 0x00000200 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_feature_oacp_patching_of_object , {\n \"Patching of Object\" , \"btatt.ots.oacp.patching_of_object\" , FT_BOOLEAN , 32 , NULL , 0x00000100 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_feature_oacp_truncation_of_objects , {\n \"Truncation of Objects\" , \"btatt.ots.oacp.truncation_of_objects\" , FT_BOOLEAN , 32 , NULL , 0x00000080 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_feature_oacp_appending_additional_data_to_object , {\n \"Appending Additional Data to Object\" , \"btatt.ots.oacp.appending_additional_data_to_object\" , FT_BOOLEAN , 32 , NULL , 0x00000040 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_feature_oacp_write , {\n \"Write\" , \"btatt.ots.oacp.write\" , FT_BOOLEAN , 32 , NULL , 0x00000020 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_feature_oacp_read , {\n \"Read\" , \"btatt.ots.oacp.read\" , FT_BOOLEAN , 32 , NULL , 0x00000010 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_feature_oacp_execute , {\n \"Execute\" , \"btatt.ots.oacp.execute\" , FT_BOOLEAN , 32 , NULL , 0x00000008 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_feature_oacp_calculate_checksum , {\n \"Calculate Checksum\" , \"btatt.ots.oacp.calculate_checksum\" , FT_BOOLEAN , 32 , NULL , 0x00000004 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_feature_oacp_delete , {\n \"Delete\" , \"btatt.ots.oacp.delete\" , FT_BOOLEAN , 32 , NULL , 0x00000002 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_feature_oacp_create , {\n \"Create\" , \"btatt.ots.oacp.create\" , FT_BOOLEAN , 32 , NULL , 0x00000001 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_feature_olcp , {\n \"OLCP Features\" , \"btatt.ots.olcp\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_feature_olcp_reserved , {\n \"Reserved\" , \"btatt.ots.olcp.reserved\" , FT_BOOLEAN , 32 , NULL , 0xFFFFFFF0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_feature_olcp_clear_marking , {\n \"Clear Marking\" , \"btatt.ots.olcp.clear_marking\" , FT_BOOLEAN , 32 , NULL , 0x00000008 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_feature_olcp_request_number_of_objects , {\n \"Request Number of Objects\" , \"btatt.ots.olcp.request_number_of_objects\" , FT_BOOLEAN , 32 , NULL , 0x00000004 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_feature_olcp_order , {\n \"Order\" , \"btatt.ots.olcp.order\" , FT_BOOLEAN , 32 , NULL , 0x00000002 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_feature_olcp_go_to , {\n \"Go To\" , \"btatt.ots.olcp.go_to\" , FT_BOOLEAN , 32 , NULL , 0x00000001 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_object_name , {\n \"Object Name\" , \"btatt.ots.object_name\" , FT_STRING , STR_UNICODE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_current_size , {\n \"Current Size\" , \"btatt.ots.current_size\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_allocated_size , {\n \"Allocated Size\" , \"btatt.ots.allocated_size\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_object_id , {\n \"Object ID\" , \"btatt.ots.object_id\" , FT_UINT48 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_properties , {\n \"Properties\" , \"btatt.ots.properties\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_properties_reserved , {\n \"Reserved\" , \"btatt.ots.properties.reserved\" , FT_BOOLEAN , 32 , NULL , 0xFFFFFF00 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_properties_mark , {\n \"Mark\" , \"btatt.ots.properties.mark\" , FT_BOOLEAN , 32 , NULL , 0x00000080 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_properties_patch , {\n \"Patch\" , \"btatt.ots.properties.patch\" , FT_BOOLEAN , 32 , NULL , 0x00000040 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_properties_truncate , {\n \"Truncate\" , \"btatt.ots.properties.truncate\" , FT_BOOLEAN , 32 , NULL , 0x00000020 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_properties_append , {\n \"Append\" , \"btatt.ots.properties.append\" , FT_BOOLEAN , 32 , NULL , 0x00000010 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_properties_write , {\n \"Write\" , \"btatt.ots.properties.write\" , FT_BOOLEAN , 32 , NULL , 0x00000008 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_properties_read , {\n \"Read\" , \"btatt.ots.properties.read\" , FT_BOOLEAN , 32 , NULL , 0x00000004 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_properties_execute , {\n \"Execute\" , \"btatt.ots.properties.execute\" , FT_BOOLEAN , 32 , NULL , 0x00000002 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_properties_delete , {\n \"Delete\" , \"btatt.ots.properties.delete\" , FT_BOOLEAN , 32 , NULL , 0x00000001 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_flags , {\n \"Properties\" , \"btatt.ots.flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_flags_reserved , {\n \"Reserved\" , \"btatt.ots.flags.reserved\" , FT_BOOLEAN , 8 , NULL , 0xE0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_flags_object_deletion , {\n \"Object Deletion\" , \"btatt.ots.flags.object_deletion\" , FT_BOOLEAN , 8 , NULL , 0x10 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_flags_object_creation , {\n \"Object Creation\" , \"btatt.ots.flags.object_creation\" , FT_BOOLEAN , 8 , NULL , 0x08 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_flags_change_occurred_to_the_object_metadata , {\n \"Change Occurred to the Object Metadata\" , \"btatt.ots.flags.change_occurred_to_the_object_metadata\" , FT_BOOLEAN , 8 , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_flags_change_occurred_to_the_object_contents , {\n \"Change Occurred to the Object Contents\" , \"btatt.ots.flags.change_occurred_to_the_object_contents\" , FT_BOOLEAN , 8 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_flags_source_of_change , {\n \"Source of Change\" , \"btatt.ots.flags.source_of_change\" , FT_BOOLEAN , 8 , TFS ( & tfs_client_server ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_action_opcode , {\n \"Opcode\" , \"btatt.ots.action.opcode\" , FT_UINT8 , BASE_HEX , VALS ( ots_action_opcode_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_size , {\n \"Size\" , \"btatt.ots.size\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_offset , {\n \"Offset\" , \"btatt.ots.offset\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_length , {\n \"Length\" , \"btatt.ots.length\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_execute_data , {\n \"Execute Data\" , \"btatt.ots.execute_data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_action_response_opcode , {\n \"Response Opcode\" , \"btatt.ots.action.response_opcode\" , FT_UINT8 , BASE_HEX , VALS ( ots_action_opcode_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_action_result_code , {\n \"Result Code\" , \"btatt.ots.action.result_code\" , FT_UINT8 , BASE_HEX , VALS ( ots_action_result_code_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_checksum , {\n \"Checksum\" , \"btatt.ots.checksum\" , FT_UINT32 , BASE_DEC_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_list_opcode , {\n \"Opcode\" , \"btatt.ots.list.opcode\" , FT_UINT8 , BASE_HEX , VALS ( ots_list_opcode_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_list_order , {\n \"Order\" , \"btatt.ots.list.order\" , FT_UINT8 , BASE_HEX , VALS ( ots_list_order_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_list_response_opcode , {\n \"Response Opcode\" , \"btatt.ots.list.response_opcode\" , FT_UINT8 , BASE_HEX , VALS ( ots_list_opcode_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_list_result_code , {\n \"Result Code\" , \"btatt.ots.list.result_code\" , FT_UINT8 , BASE_HEX , VALS ( ots_list_result_code_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_list_total_number_of_objects , {\n \"Total Number of Objects\" , \"btatt.ots.list.total_number_of_objects\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_filter , {\n \"Filter\" , \"btatt.ots.filter\" , FT_UINT8 , BASE_HEX , VALS ( ots_filter_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_size_from , {\n \"Size From\" , \"btatt.ots.size_from\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_size_to , {\n \"Size To\" , \"btatt.ots.size_to\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_name_string , {\n \"Name String\" , \"btatt.ots.name_string\" , FT_STRING , STR_UNICODE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_object_first_created , {\n \"First Created\" , \"btatt.ots.first_created\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_ots_object_last_modified , {\n \"Last Modified\" , \"btatt.ots.last_modified\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_spot_check_measurement_flags , {\n \"Flags\" , \"btatt.plxs.spot_check_measurement.flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_spot_check_measurement_flags_reserved , {\n \"Reserved\" , \"btatt.plxs.spot_check_measurement.flags.reserved\" , FT_UINT8 , BASE_HEX , NULL , 0xE0 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_spot_check_measurement_flags_device_clock_is_not_set , {\n \"Device Clock is not Set\" , \"btatt.plxs.spot_check_measurement.flags.device_clock_is_not_set\" , FT_BOOLEAN , 8 , NULL , 0x10 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_spot_check_measurement_flags_pulse_amplitude_index , {\n \"Pulse Amplitude Index\" , \"btatt.plxs.spot_check_measurement.flags.pulse_amplitude_index\" , FT_BOOLEAN , 8 , NULL , 0x08 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_spot_check_measurement_flags_device_and_sensor_status , {\n \"Device and Sensor Status\" , \"btatt.plxs.spot_check_measurement.flags.device_and_sensor_status\" , FT_BOOLEAN , 8 , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_spot_check_measurement_flags_measurement_status , {\n \"Measurement Status\" , \"btatt.plxs.spot_check_measurement.flags.measurement_status\" , FT_BOOLEAN , 8 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_spot_check_measurement_flags_timestamp , {\n \"Timestamp\" , \"btatt.plxs.spot_check_measurement.flags.timestamp\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_spo2 , {\n \"SpO2\" , \"btatt.plxs.spot_check_measurement.spo2\" , FT_IEEE_11073_SFLOAT , BASE_FLOAT , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_pulse_rate , {\n \"Pulse Rate\" , \"btatt.plxs.spot_check_measurement.pulse_rate\" , FT_IEEE_11073_SFLOAT , BASE_FLOAT , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_spot_check_measurement_timestamp , {\n \"Timestamp\" , \"btatt.plxs.spot_check_measurement.timestamp\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_measurement_status , {\n \"Timestamp\" , \"btatt.plxs.spot_check_measurement.measurement_status\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_measurement_status_invalid_measurement_detected , {\n \"Invalid Measurement Detected\" , \"btatt.plxs.spot_check_measurement.measurement_status.invalid_measurement_detected\" , FT_BOOLEAN , 16 , NULL , 0x8000 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_measurement_status_questionable_measurement_detected , {\n \"Questionable Measurement Detected\" , \"btatt.plxs.spot_check_measurement.measurement_status.questionable_measurement_detected\" , FT_BOOLEAN , 16 , NULL , 0x4000 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_measurement_status_measurement_unavailable , {\n \"Measurement Unavailable\" , \"btatt.plxs.spot_check_measurement.measurement_status.measurement_unavailable\" , FT_BOOLEAN , 16 , NULL , 0x2000 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_measurement_status_calibration_ongoing , {\n \"Calibration Ongoing\" , \"btatt.plxs.spot_check_measurement.measurement_status.calibration_ongoing\" , FT_BOOLEAN , 16 , NULL , 0x1000 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_measurement_status_data_for_testing , {\n \"Data for Testing\" , \"btatt.plxs.spot_check_measurement.measurement_status.data_for_testing\" , FT_BOOLEAN , 16 , NULL , 0x0800 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_measurement_status_data_for_demonstration , {\n \"Data for Demonstration\" , \"btatt.plxs.spot_check_measurement.measurement_status.data_for_demonstration\" , FT_BOOLEAN , 16 , NULL , 0x0400 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_measurement_status_data_from_measurement_storage , {\n \"Data from Measurement Storage\" , \"btatt.plxs.spot_check_measurement.measurement_status.data_from_measurement_storage\" , FT_BOOLEAN , 16 , NULL , 0x0200 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_measurement_status_fully_qualified_data , {\n \"Fully Qualified Data\" , \"btatt.plxs.spot_check_measurement.measurement_status.fully_qualified_data\" , FT_BOOLEAN , 16 , NULL , 0x0100 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_measurement_status_validated_data , {\n \"Validated Data\" , \"btatt.plxs.spot_check_measurement.measurement_status.validated_data\" , FT_BOOLEAN , 16 , NULL , 0x0080 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_measurement_status_early_estimated_data , {\n \"Early Estimated Data\" , \"btatt.plxs.spot_check_measurement.measurement_status.early_estimated_data\" , FT_BOOLEAN , 16 , NULL , 0x0040 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_measurement_status_measurement_ongoing , {\n \"Measurement Ongoing\" , \"btatt.plxs.spot_check_measurement.measurement_status.measurement_ongoing\" , FT_BOOLEAN , 16 , NULL , 0x0020 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_measurement_status_reserved , {\n \"Reserved\" , \"btatt.plxs.spot_check_measurement.measurement_status.reserved\" , FT_BOOLEAN , 16 , NULL , 0x001F , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_device_and_sensor_status , {\n \"Device and Sensor Status\" , \"btatt.plxs.spot_check_measurement.device_and_sensor_status\" , FT_UINT24 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_device_and_sensor_status_reserved , {\n \"Reserved\" , \"btatt.plxs.spot_check_measurement.device_and_sensor_status.reserved\" , FT_UINT24 , BASE_HEX , NULL , 0xFF0000 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_device_and_sensor_status_sensor_disconnected , {\n \"Sensor Disconnected\" , \"btatt.plxs.spot_check_measurement.device_and_sensor_status.sensor_disconnected\" , FT_BOOLEAN , 24 , NULL , 0x008000 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_device_and_sensor_status_sensor_malfunctioning , {\n \"Sensor Malfunctioning\" , \"btatt.plxs.spot_check_measurement.device_and_sensor_status.sensor_malfunctioning\" , FT_BOOLEAN , 24 , NULL , 0x004000 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_device_and_sensor_status_sensor_displaced , {\n \"Sensor Displaced\" , \"btatt.plxs.spot_check_measurement.device_and_sensor_status.sensor_displaced\" , FT_BOOLEAN , 24 , NULL , 0x002000 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_device_and_sensor_status_unknown_sensor_connected , {\n \"Unknown Sensor Connected\" , \"btatt.plxs.spot_check_measurement.device_and_sensor_status.unknown_sensor_connected\" , FT_BOOLEAN , 24 , NULL , 0x001000 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_device_and_sensor_status_sensor_unconnected_to_user , {\n \"Unconnected to User\" , \"btatt.plxs.spot_check_measurement.device_and_sensor_status.unconnected_to_user\" , FT_BOOLEAN , 24 , NULL , 0x000800 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_device_and_sensor_status_sensor_interference_detected , {\n \"Interference Detected\" , \"btatt.plxs.spot_check_measurement.device_and_sensor_status.interference_detected\" , FT_BOOLEAN , 24 , NULL , 0x000400 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_device_and_sensor_status_signal_analysis_ongoing , {\n \"Signal Analysis Ongoing\" , \"btatt.plxs.spot_check_measurement.device_and_sensor_status.signal_analysis_ongoing\" , FT_BOOLEAN , 24 , NULL , 0x000200 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_device_and_sensor_status_questionable_pulse_detected , {\n \"Questionable Pulse Detected\" , \"btatt.plxs.spot_check_measurement.device_and_sensor_status.questionable_pulse_detected\" , FT_BOOLEAN , 24 , NULL , 0x000100 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_device_and_sensor_status_non_pulsatile_signal_detected , {\n \"Non Pulsatile Signal Detected\" , \"btatt.plxs.spot_check_measurement.device_and_sensor_status.non_pulsatile_signal_detected\" , FT_BOOLEAN , 24 , NULL , 0x000080 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_device_and_sensor_status_erratic_signal_detected , {\n \"Erratic Signal Detected\" , \"btatt.plxs.spot_check_measurement.device_and_sensor_status.erratic_signal_detected\" , FT_BOOLEAN , 24 , NULL , 0x000040 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_device_and_sensor_status_low_perfusion_detected , {\n \"Low Perfusion Detected\" , \"btatt.plxs.spot_check_measurement.device_and_sensor_status.low_perfusion_detected\" , FT_BOOLEAN , 24 , NULL , 0x000020 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_device_and_sensor_status_poor_signal_detected , {\n \"Poor Signal Detected\" , \"btatt.plxs.spot_check_measurement.device_and_sensor_status.poor_signal_detected\" , FT_BOOLEAN , 24 , NULL , 0x000010 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_device_and_sensor_status_inadequate_signal_detected , {\n \"Inadequate Signal Detected\" , \"btatt.plxs.spot_check_measurement.device_and_sensor_status.inadequate_signal_detected\" , FT_BOOLEAN , 24 , NULL , 0x000008 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_device_and_sensor_status_signal_processing_irregularity_detected , {\n \"Signal Processing Irregularity Detected\" , \"btatt.plxs.spot_check_measurement.device_and_sensor_status.signal_processing_irregularity_detected\" , FT_BOOLEAN , 24 , NULL , 0x000004 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_device_and_sensor_status_equipment_malfunction_detected , {\n \"Equipment Malfunction Detected\" , \"btatt.plxs.spot_check_measurement.device_and_sensor_status.equipment_malfunction_detected\" , FT_BOOLEAN , 24 , NULL , 0x000002 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_device_and_sensor_status_extended_display_update_ongoing , {\n \"Extended Display Update Ongoing\" , \"btatt.plxs.spot_check_measurement.device_and_sensor_status.extended_display_update_ongoing\" , FT_BOOLEAN , 24 , NULL , 0x000001 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_pulse_amplitude_index , {\n \"Pulse Amplitude Index\" , \"btatt.plxs.spot_check_measurement.pulse_amplitude_index\" , FT_IEEE_11073_SFLOAT , BASE_FLOAT , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_spo2pr_spot_check , {\n \"SpO2PR Spot Check\" , \"btatt.plxs.spo2pr_spot_check\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_spo2pr_normal , {\n \"SpO2PR Normal\" , \"btatt.plxs.spo2pr_normal\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_spo2pr_fast , {\n \"SpO2PR Fast\" , \"btatt.plxs.spo2pr_fast\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_spo2pr_slow , {\n \"SpO2PR Slow\" , \"btatt.plxs.spo2pr_slow\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_continuous_measurement_flags , {\n \"Flags\" , \"btatt.plxs.continuous_measurement.flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_continuous_measurement_flags_reserved , {\n \"Reserved\" , \"btatt.plxs.continuous_measurement.flags.reserved\" , FT_UINT8 , BASE_HEX , NULL , 0xE0 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_continuous_measurement_flags_pulse_amplitude_index , {\n \"Pulse Amplitude Index\" , \"btatt.plxs.continuous_measurement.flags.pulse_amplitude_index\" , FT_BOOLEAN , 8 , NULL , 0x10 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_continuous_measurement_flags_device_and_sensor_status , {\n \"Device and Sensor Status\" , \"btatt.plxs.continuous_measurement.flags.device_and_sensor_status\" , FT_BOOLEAN , 8 , NULL , 0x08 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_continuous_measurement_flags_measurement_status , {\n \"Measurement Status\" , \"btatt.plxs.continuous_measurement.flags.measurement_status\" , FT_BOOLEAN , 8 , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_continuous_measurement_flags_spo2pr_slow , {\n \"SpO2PR-Slow\" , \"btatt.plxs.continuous_measurement.flags.spo2pr_slow\" , FT_BOOLEAN , 8 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_continuous_measurement_flags_spo2pr_fast , {\n \"SpO2PR-Fast\" , \"btatt.plxs.continuous_measurement.flags.spo2pr_fast\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_features_supported_features , {\n \"Supported Features\" , \"btatt.plxs.features.supported_features\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_features_supported_features_reserved , {\n \"Reserved\" , \"btatt.plxs.features.supported_features.reserved\" , FT_UINT16 , BASE_HEX , NULL , 0xFF00 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_features_supported_features_multiple_bonds , {\n \"Multiple Bonds\" , \"btatt.plxs.features.supported_features.multiple_bonds\" , FT_BOOLEAN , 16 , NULL , 0x0080 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_features_supported_features_pulse_amplitude_index , {\n \"Pulse Amplitude Index\" , \"btatt.plxs.features.supported_features.pulse_amplitude_index\" , FT_BOOLEAN , 16 , NULL , 0x0040 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_features_supported_features_spo2pr_slow , {\n \"SpO2PR-Slow\" , \"btatt.plxs.features.supported_features.spo2pr_slow\" , FT_BOOLEAN , 16 , NULL , 0x0020 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_features_supported_features_spo2pr_fast , {\n \"SpO2PR-Fast\" , \"btatt.plxs.features.supported_features.spo2pr_fast\" , FT_BOOLEAN , 16 , NULL , 0x0010 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_features_supported_features_timestamp_storage_for_spot_check , {\n \"Timestamp Storage for Spot-Check\" , \"btatt.plxs.features.supported_features.timestamp_storage_for_spot_check\" , FT_BOOLEAN , 16 , NULL , 0x0008 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_features_supported_features_measurement_storage_for_spot_check , {\n \"Measurement Storage for Spot-Check\" , \"btatt.plxs.features.supported_features.measurement_storage_for_spot_check\" , FT_BOOLEAN , 16 , NULL , 0x0004 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_features_supported_features_device_and_sensor_status , {\n \"Device and Sensor Status\" , \"btatt.plxs.features.supported_features.device_and_sensor_status\" , FT_BOOLEAN , 16 , NULL , 0x0002 , NULL , HFILL }\n }\n , {\n & hf_btatt_plx_features_supported_features_measurement_status , {\n \"Measurement Status\" , \"btatt.plxs.features.supported_features.measurement_status\" , FT_BOOLEAN , 16 , NULL , 0x0001 , NULL , HFILL }\n }\n , {\n & hf_btatt_valid_range_lower_inclusive_value , {\n \"Lower Inclusive Value\" , \"btatt.valid_range.lower_inclusive_value\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_valid_range_upper_inclusive_value , {\n \"Upper Inclusive Value\" , \"btatt.valid_range.upper_inclusive_value\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_regulatory_certification_data_list_count , {\n \"Count\" , \"btatt.regulatory_certification_data_list.count\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_regulatory_certification_data_list_length , {\n \"Length\" , \"btatt.regulatory_certification_data_list.length\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_regulatory_certification_data_list_item , {\n \"Item\" , \"btatt.regulatory_certification_data_list.item\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_regulatory_certification_data_list_item_body , {\n \"Authorizing Body\" , \"btatt.regulatory_certification_data_list.item.authorization_body\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_regulatory_certification_data_list_item_body_structure_type , {\n \"Authorizing Body Structure Type\" , \"btatt.regulatory_certification_data_list.item.authorization_body_structure_type\" , FT_UINT8 , BASE_DEC , VALS ( regulatory_certification_data_list_item_body_structure_type_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_regulatory_certification_data_list_item_body_structure_length , {\n \"Authorizing Body Structure Length\" , \"btatt.regulatory_certification_data_list.item.length\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_regulatory_certification_data_list_item_authorizing_body_data , {\n \"Authorizing Body Data\" , \"btatt.regulatory_certification_data_list.item.authorizing_body_data\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_regulatory_certification_data_list_item_authorizing_body_data_major_ig_version , {\n \"Major IG Version\" , \"btatt.regulatory_certification_data_list.item.authorizing_body_data.major_ig_version\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_regulatory_certification_data_list_item_authorizing_body_data_minor_ig_version , {\n \"Minor IG Version\" , \"btatt.regulatory_certification_data_list.item.authorizing_body_data.minor_ig_version\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_regulatory_certification_data_list_item_authorizing_body_data_certification_data_list_count , {\n \"Certification Data List LCount\" , \"btatt.regulatory_certification_data_list.item.certified_device_class_list.count\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_regulatory_certification_data_list_item_authorizing_body_data_certification_data_list_length , {\n \"Certification Data List Length\" , \"btatt.regulatory_certification_data_list.item.certified_device_class_list.length\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_regulatory_certification_data_list_item_authorizing_body_data_certification_data_list , {\n \"Certification Data List\" , \"btatt.regulatory_certification_data_list.item.certified_device_class_list\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_regulatory_certification_data_list_item_authorizing_body_data_certified_device_class , {\n \"Certified Device Class\" , \"btatt.regulatory_certification_data_list.item.certified_device_class_list.entry\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_regulatory_certification_data_list_item_regulation_bit_field_type , {\n \"Regulation Bit Field Type\" , \"btatt.regulatory_certification_data_list.item.regulation_bit_field_type\" , FT_UINT16 , BASE_HEX , NULL , 0xFFFF , NULL , HFILL }\n }\n , {\n & hf_btatt_regulatory_certification_data_list_item_data , {\n \"Data\" , \"btatt.regulatory_certification_data_list.item.data\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_timezone_information , {\n \"Timezone Information\" , \"btatt.timezone_information\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btatt_timezone_information_information , {\n \"Information\" , \"btatt.timezone_information.information\" , FT_UINT8 , BASE_DEC , VALS ( timezone_information_vals ) , 0x7F , NULL , HFILL }\n }\n , {\n & hf_btatt_timezone_information_information_type , {\n \"Type\" , \"btatt.timezone_information.information_type\" , FT_BOOLEAN , 8 , TFS ( & timezone_information_type_tfs ) , 0x80 , NULL , HFILL }\n }\n , {\n & hf_request_in_frame , {\n \"Request in Frame\" , \"btatt.request_in_frame\" , FT_FRAMENUM , BASE_NONE , FRAMENUM_TYPE ( FT_FRAMENUM_REQUEST ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_response_in_frame , {\n \"Response in Frame\" , \"btatt.response_in_frame\" , FT_FRAMENUM , BASE_NONE , FRAMENUM_TYPE ( FT_FRAMENUM_RESPONSE ) , 0x0 , NULL , HFILL }\n }\n , }\n ;\n static gint * ett [ ] = {\n & ett_btatt , & ett_btatt_list , & ett_btatt_value , & ett_btatt_opcode , & ett_btatt_handle , & ett_btatt_characteristic_properties }\n ;\n static ei_register_info ei [ ] = {\n {\n & ei_btatt_uuid_format_unknown , {\n \"btatt.uuid_format.unknown\" , PI_PROTOCOL , PI_WARN , \"Unknown format\" , EXPFILL }\n }\n , {\n & ei_btatt_handle_too_few , {\n \"btatt.handle.too_few\" , PI_PROTOCOL , PI_WARN , \"Too few handles, should be 2 or more\" , EXPFILL }\n }\n , {\n & ei_btatt_mtu_exceeded , {\n \"btatt.mtu.exceeded\" , PI_PROTOCOL , PI_WARN , \"Packet size exceed current ATT_MTU\" , EXPFILL }\n }\n , {\n & ei_btatt_mtu_full , {\n \"btatt.mtu.full\" , PI_PROTOCOL , PI_NOTE , \"Reached ATT_MTU. Attribute value may be longer.\" , EXPFILL }\n }\n , {\n & ei_btatt_consent_out_of_bounds , {\n \"btatt.consent.out_of_bounds\" , PI_PROTOCOL , PI_WARN , \"Consent Code is out of bounds (0 to 9999)\" , EXPFILL }\n }\n , {\n & ei_btatt_cgm_size_too_small , {\n \"btatt.cgm_measurement.size.too_small\" , PI_PROTOCOL , PI_WARN , \"Size too small (6 or geater)\" , EXPFILL }\n }\n , {\n & ei_btatt_opcode_invalid_request , {\n \"btatt.opcode.invalid_request\" , PI_PROTOCOL , PI_WARN , \"Invalid request\" , EXPFILL }\n }\n , {\n & ei_btatt_opcode_invalid_response , {\n \"btatt.opcode.invalid_response\" , PI_PROTOCOL , PI_WARN , \"Invalid response\" , EXPFILL }\n }\n , {\n & ei_btatt_invalid_usage , {\n \"btatt.invalid_usage\" , PI_PROTOCOL , PI_WARN , \"Invalid usage of this characteristic with this opcode\" , EXPFILL }\n }\n , {\n & ei_btatt_invalid_length , {\n \"btatt.invalid_length\" , PI_PROTOCOL , PI_WARN , \"Invalid length\" , EXPFILL }\n }\n , {\n & ei_btatt_bad_data , {\n \"btatt.bad_data\" , PI_PROTOCOL , PI_WARN , \"Bad Data\" , EXPFILL }\n }\n , {\n & ei_btatt_unexpected_data , {\n \"btatt.unexpected_data\" , PI_PROTOCOL , PI_WARN , \"Unexpected Data\" , EXPFILL }\n }\n , {\n & ei_btatt_undecoded , {\n \"btatt.undecoded\" , PI_UNDECODED , PI_NOTE , \"Undecoded\" , EXPFILL }\n }\n , }\n ;\n static build_valid_func btatt_handle_da_build_value [ 1 ] = {\n btatt_handle_value }\n ;\n static decode_as_value_t btatt_handle_da_values = {\n btatt_handle_prompt , 1 , btatt_handle_da_build_value }\n ;\n static decode_as_t btatt_handle_da = {\n \"btatt\" , \"ATT Handle\" , \"btatt.handle\" , 1 , 0 , & btatt_handle_da_values , NULL , NULL , decode_as_default_populate_list , decode_as_default_reset , decode_as_default_change , NULL }\n ;\n proto_btatt = proto_register_protocol ( \"Bluetooth Attribute Protocol\" , \"BT ATT\" , \"btatt\" ) ;\n btatt_handle = register_dissector ( \"btatt\" , dissect_btatt , proto_btatt ) ;\n att_handle_dissector_table = register_dissector_table ( \"btatt.handle\" , \"BT ATT Handle\" , proto_btatt , FT_UINT16 , BASE_HEX ) ;\n proto_register_field_array ( proto_btatt , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n expert_btatt = expert_register_protocol ( proto_btatt ) ;\n expert_register_field_array ( expert_btatt , ei , array_length ( ei ) ) ;\n mtus = wmem_tree_new_autoreset ( wmem_epan_scope ( ) , wmem_file_scope ( ) ) ;\n requests = wmem_tree_new_autoreset ( wmem_epan_scope ( ) , wmem_file_scope ( ) ) ;\n fragments = wmem_tree_new_autoreset ( wmem_epan_scope ( ) , wmem_file_scope ( ) ) ;\n handle_to_uuid = wmem_tree_new_autoreset ( wmem_epan_scope ( ) , wmem_file_scope ( ) ) ;\n module = prefs_register_protocol_subtree ( \"Bluetooth\" , proto_btatt , NULL ) ;\n prefs_register_static_text_preference ( module , \"att.version\" , \"Bluetooth Protocol ATT version from Core 4.0\" , \"Version of protocol supported by this dissector.\" ) ;\n register_decode_as ( & btatt_handle_da ) ;\n }"}
{"idx": 11971, "target": 0, "func": "extern int name ( int ) __THROW __exctype ( isalnum ) ;\n __exctype ( isalpha ) ;\n __exctype ( iscntrl ) ;\n __exctype ( isdigit ) ;\n __exctype ( islower ) ;\n __exctype ( isgraph )"}
{"idx": 11972, "target": 0, "func": "static double calc_frame_boost ( VP9_COMP * cpi , const FIRSTPASS_STATS * this_frame , double this_frame_mv_in_out , double max_boost ) {\n double frame_boost ;\n frame_boost = ( BASELINE_ERR_PER_MB * cpi -> common . MBs ) / DOUBLE_DIVIDE_CHECK ( this_frame -> coded_error ) ;\n frame_boost = frame_boost * BOOST_FACTOR ;\n if ( this_frame_mv_in_out > 0.0 ) frame_boost += frame_boost * ( this_frame_mv_in_out * 2.0 ) ;\n else frame_boost += frame_boost * ( this_frame_mv_in_out / 2.0 ) ;\n return MIN ( frame_boost , max_boost ) ;\n }"}
{"idx": 11973, "target": 1, "func": "void http_suite ( void ) {\n http_base_test ( ) ;\n http_bad_header_test ( ) ;\n http_parse_query_test ( ) ;\n http_basic_test ( ) ;\n http_connection_test ( 0 ) ;\n http_connection_test ( 1 ) ;\n http_close_detection ( 0 ) ;\n http_close_detection ( 1 ) ;\n http_post_test ( ) ;\n http_failure_test ( ) ;\n http_highport_test ( ) ;\n http_dispatcher_test ( ) ;\n http_multi_line_header_test ( ) ;\n http_negative_content_length_test ( ) ;\n http_chunked_test ( ) ;\n }"}
{"idx": 11974, "target": 0, "func": "void gx_device_set_media_size ( gx_device * dev , double media_width , double media_height ) {\n dev -> MediaSize [ 0 ] = media_width ;\n dev -> MediaSize [ 1 ] = media_height ;\n gx_device_set_hwsize_from_media ( dev ) ;\n }"}
{"idx": 11975, "target": 0, "func": "static int dissect_rsl_ie_err_msg ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_item * ti ;\n proto_tree * ie_tree ;\n guint length ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_ERR_MSG ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_ie_err_msg , & ti , \"Erroneous Message IE \" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n length = tvb_get_guint8 ( tvb , offset ) ;\n proto_item_set_len ( ti , length + 2 ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_length , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n offset = dissct_rsl_msg ( tvb , pinfo , ie_tree , offset ) ;\n return offset ;\n }"}
{"idx": 11976, "target": 0, "func": "static int dissect_h245_SEQUENCE_OF_RedundancyEncodingElement ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h245_SEQUENCE_OF_RedundancyEncodingElement , SEQUENCE_OF_RedundancyEncodingElement_sequence_of ) ;\n return offset ;\n }"}
{"idx": 11977, "target": 1, "func": "static void vga_draw_line2 ( VGACommonState * s1 , uint8_t * d , const uint8_t * s , int width ) {\n uint32_t plane_mask , * palette , data , v ;\n int x ;\n palette = s1 -> last_palette ;\n plane_mask = mask16 [ s1 -> ar [ VGA_ATC_PLANE_ENABLE ] & 0xf ] ;\n width >>= 3 ;\n for ( x = 0 ;\n x < width ;\n x ++ ) {\n data = ( ( uint32_t * ) s ) [ 0 ] ;\n data &= plane_mask ;\n v = expand2 [ GET_PLANE ( data , 0 ) ] ;\n v |= expand2 [ GET_PLANE ( data , 2 ) ] << 2 ;\n ( ( uint32_t * ) d ) [ 0 ] = palette [ v >> 12 ] ;\n ( ( uint32_t * ) d ) [ 1 ] = palette [ ( v >> 8 ) & 0xf ] ;\n ( ( uint32_t * ) d ) [ 2 ] = palette [ ( v >> 4 ) & 0xf ] ;\n ( ( uint32_t * ) d ) [ 3 ] = palette [ ( v >> 0 ) & 0xf ] ;\n v = expand2 [ GET_PLANE ( data , 1 ) ] ;\n v |= expand2 [ GET_PLANE ( data , 3 ) ] << 2 ;\n ( ( uint32_t * ) d ) [ 4 ] = palette [ v >> 12 ] ;\n ( ( uint32_t * ) d ) [ 5 ] = palette [ ( v >> 8 ) & 0xf ] ;\n ( ( uint32_t * ) d ) [ 6 ] = palette [ ( v >> 4 ) & 0xf ] ;\n ( ( uint32_t * ) d ) [ 7 ] = palette [ ( v >> 0 ) & 0xf ] ;\n d += 32 ;\n s += 4 ;\n }\n }"}
{"idx": 11978, "target": 0, "func": "TSReturnCode TSHttpHdrReasonSet ( TSMBuffer bufp , TSMLoc obj , const char * value , int length ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_http_hdr_handle ( obj ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) value ) == TS_SUCCESS ) ;\n if ( ! isWriteable ( bufp ) ) {\n return TS_ERROR ;\n }\n HTTPHdr h ;\n SET_HTTP_HDR ( h , bufp , obj ) ;\n if ( length < 0 ) {\n length = strlen ( value ) ;\n }\n h . reason_set ( value , length ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 11979, "target": 0, "func": "static int SpoolssEnumForms_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ;\n BUFFER buffer ;\n guint32 level = GPOINTER_TO_UINT ( dcv -> se_data ) , i , count ;\n int buffer_offset ;\n proto_item * hidden_item ;\n hidden_item = proto_tree_add_uint ( tree , hf_form , tvb , offset , 0 , 1 ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n offset = dissect_spoolss_buffer ( tvb , offset , pinfo , tree , di , drep , & buffer ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_needed , NULL ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", level %d\" , level ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_enumforms_num , & count ) ;\n buffer_offset = 0 ;\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n int struct_start = buffer_offset ;\n buffer_offset = dissect_FORM_REL ( buffer . tvb , buffer_offset , pinfo , buffer . tree , di , drep , struct_start ) ;\n }\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 11980, "target": 0, "func": "static int read_interval_packets ( WriterContext * w , InputFile * ifile , const ReadInterval * interval , int64_t * cur_ts ) {\n AVFormatContext * fmt_ctx = ifile -> fmt_ctx ;\n AVPacket pkt ;\n AVFrame * frame = NULL ;\n int ret = 0 , i = 0 , frame_count = 0 ;\n int64_t start = - INT64_MAX , end = interval -> end ;\n int has_start = 0 , has_end = interval -> has_end && ! interval -> end_is_offset ;\n av_init_packet ( & pkt ) ;\n av_log ( NULL , AV_LOG_VERBOSE , \"Processing read interval \" ) ;\n log_read_interval ( interval , NULL , AV_LOG_VERBOSE ) ;\n if ( interval -> has_start ) {\n int64_t target ;\n if ( interval -> start_is_offset ) {\n if ( * cur_ts == AV_NOPTS_VALUE ) {\n av_log ( NULL , AV_LOG_ERROR , \"Could not seek to relative position since current \" \"timestamp is not defined\\n\" ) ;\n ret = AVERROR ( EINVAL ) ;\n goto end ;\n }\n target = * cur_ts + interval -> start ;\n }\n else {\n target = interval -> start ;\n }\n av_log ( NULL , AV_LOG_VERBOSE , \"Seeking to read interval start point %s\\n\" , av_ts2timestr ( target , & AV_TIME_BASE_Q ) ) ;\n if ( ( ret = avformat_seek_file ( fmt_ctx , - 1 , - INT64_MAX , target , INT64_MAX , 0 ) ) < 0 ) {\n av_log ( NULL , AV_LOG_ERROR , \"Could not seek to position %\" PRId64 \": %s\\n\" , interval -> start , av_err2str ( ret ) ) ;\n goto end ;\n }\n }\n frame = av_frame_alloc ( ) ;\n if ( ! frame ) {\n ret = AVERROR ( ENOMEM ) ;\n goto end ;\n }\n while ( ! av_read_frame ( fmt_ctx , & pkt ) ) {\n if ( ifile -> nb_streams > nb_streams ) {\n REALLOCZ_ARRAY_STREAM ( nb_streams_frames , nb_streams , fmt_ctx -> nb_streams ) ;\n REALLOCZ_ARRAY_STREAM ( nb_streams_packets , nb_streams , fmt_ctx -> nb_streams ) ;\n REALLOCZ_ARRAY_STREAM ( selected_streams , nb_streams , fmt_ctx -> nb_streams ) ;\n nb_streams = ifile -> nb_streams ;\n }\n if ( selected_streams [ pkt . stream_index ] ) {\n AVRational tb = ifile -> streams [ pkt . stream_index ] . st -> time_base ;\n if ( pkt . pts != AV_NOPTS_VALUE ) * cur_ts = av_rescale_q ( pkt . pts , tb , AV_TIME_BASE_Q ) ;\n if ( ! has_start && * cur_ts != AV_NOPTS_VALUE ) {\n start = * cur_ts ;\n has_start = 1 ;\n }\n if ( has_start && ! has_end && interval -> end_is_offset ) {\n end = start + interval -> end ;\n has_end = 1 ;\n }\n if ( interval -> end_is_offset && interval -> duration_frames ) {\n if ( frame_count >= interval -> end ) break ;\n }\n else if ( has_end && * cur_ts != AV_NOPTS_VALUE && * cur_ts >= end ) {\n break ;\n }\n frame_count ++ ;\n if ( do_read_packets ) {\n if ( do_show_packets ) show_packet ( w , ifile , & pkt , i ++ ) ;\n nb_streams_packets [ pkt . stream_index ] ++ ;\n }\n if ( do_read_frames ) {\n int packet_new = 1 ;\n while ( process_frame ( w , ifile , frame , & pkt , & packet_new ) > 0 ) ;\n }\n }\n av_packet_unref ( & pkt ) ;\n }\n av_init_packet ( & pkt ) ;\n pkt . data = NULL ;\n pkt . size = 0 ;\n for ( i = 0 ;\n i < fmt_ctx -> nb_streams ;\n i ++ ) {\n pkt . stream_index = i ;\n if ( do_read_frames ) while ( process_frame ( w , ifile , frame , & pkt , & ( int ) {\n 1 }\n ) > 0 ) ;\n }\n end : av_frame_free ( & frame ) ;\n if ( ret < 0 ) {\n av_log ( NULL , AV_LOG_ERROR , \"Could not read packets in interval \" ) ;\n log_read_interval ( interval , NULL , AV_LOG_ERROR ) ;\n }\n return ret ;\n }"}
{"idx": 11981, "target": 0, "func": "static int decode_i_block ( FourXContext * f , int16_t * block ) {\n int code , i , j , level , val ;\n val = get_vlc2 ( & f -> pre_gb , f -> pre_vlc . table , ACDC_VLC_BITS , 3 ) ;\n if ( val >> 4 ) av_log ( f -> avctx , AV_LOG_ERROR , \"error dc run != 0\\n\" ) ;\n if ( val ) val = get_xbits ( & f -> gb , val ) ;\n val = val * dequant_table [ 0 ] + f -> last_dc ;\n f -> last_dc = block [ 0 ] = val ;\n i = 1 ;\n for ( ;\n ;\n ) {\n code = get_vlc2 ( & f -> pre_gb , f -> pre_vlc . table , ACDC_VLC_BITS , 3 ) ;\n if ( code == 0 ) break ;\n if ( code == 0xf0 ) {\n i += 16 ;\n }\n else {\n level = get_xbits ( & f -> gb , code & 0xf ) ;\n i += code >> 4 ;\n if ( i >= 64 ) {\n av_log ( f -> avctx , AV_LOG_ERROR , \"run %d oveflow\\n\" , i ) ;\n return 0 ;\n }\n j = ff_zigzag_direct [ i ] ;\n block [ j ] = level * dequant_table [ j ] ;\n i ++ ;\n if ( i >= 64 ) break ;\n }\n }\n return 0 ;\n }"}
{"idx": 11982, "target": 0, "func": "static void cmd_window_rsize ( const char * data ) {\n char rsizestr [ MAX_INT_STRLEN ] ;\n int rsize ;\n if ( ! is_numeric ( data , 0 ) ) return ;\n rsize = atoi ( data ) ;\n rsize -= MAIN_WINDOW_TEXT_WIDTH ( WINDOW_MAIN ( active_win ) ) ;\n if ( rsize == 0 ) return ;\n ltoa ( rsizestr , rsize < 0 ? - rsize : rsize ) ;\n if ( rsize < 0 ) cmd_window_rshrink ( rsizestr ) ;\n else cmd_window_rgrow ( rsizestr ) ;\n }"}
{"idx": 11983, "target": 0, "func": "static void test_bug11111 ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND my_bind [ 2 ] ;\n char buf [ 2 ] [ 20 ] ;\n ulong len [ 2 ] ;\n int i ;\n int rc ;\n const char * query = \"SELECT DISTINCT f1,ff2 FROM v1\" ;\n myheader ( \"test_bug11111\" ) ;\n rc = mysql_query ( mysql , \"drop table if exists t1, t2, v1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"drop view if exists t1, t2, v1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t1 (f1 int, f2 int)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t2 (ff1 int, ff2 int)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create view v1 as select * from t1, t2 where f1=ff1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t1 values (1,1), (2,2), (3,3)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t2 values (1,1), (2,2), (3,3)\" ) ;\n myquery ( rc ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n mysql_stmt_prepare ( stmt , query , strlen ( query ) ) ;\n mysql_stmt_execute ( stmt ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n my_bind [ i ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ i ] . buffer = ( uchar * * ) & buf [ i ] ;\n my_bind [ i ] . buffer_length = 20 ;\n my_bind [ i ] . length = & len [ i ] ;\n }\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) printf ( \"return: %s\" , buf [ 1 ] ) ;\n DIE_UNLESS ( ! strcmp ( buf [ 1 ] , \"1\" ) ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"drop view v1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"drop table t1, t2\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 11984, "target": 1, "func": "static void record_recent_object ( struct object * obj , const struct name_path * path , const char * last , void * data ) {\n sha1_array_append ( & recent_objects , obj -> oid . hash ) ;\n }"}
{"idx": 11985, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n ProresContext * ctx = avctx -> priv_data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n int frame_hdr_size , pic_num , pic_data_size ;\n ctx -> frame = data ;\n ctx -> frame -> pict_type = AV_PICTURE_TYPE_I ;\n ctx -> frame -> key_frame = 1 ;\n if ( buf_size < 28 || buf_size < AV_RB32 ( buf ) || AV_RB32 ( buf + 4 ) != FRAME_ID ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid frame\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n MOVE_DATA_PTR ( 8 ) ;\n frame_hdr_size = decode_frame_header ( ctx , buf , buf_size , avctx ) ;\n if ( frame_hdr_size < 0 ) return AVERROR_INVALIDDATA ;\n MOVE_DATA_PTR ( frame_hdr_size ) ;\n if ( ff_get_buffer ( avctx , ctx -> frame , 0 ) < 0 ) return - 1 ;\n for ( pic_num = 0 ;\n ctx -> frame -> interlaced_frame - pic_num + 1 ;\n pic_num ++ ) {\n pic_data_size = decode_picture_header ( ctx , buf , buf_size , avctx ) ;\n if ( pic_data_size < 0 ) return AVERROR_INVALIDDATA ;\n if ( decode_picture ( ctx , pic_num , avctx ) ) return - 1 ;\n MOVE_DATA_PTR ( pic_data_size ) ;\n }\n ctx -> frame = NULL ;\n * got_frame = 1 ;\n return avpkt -> size ;\n }"}
{"idx": 11986, "target": 0, "func": "static void e1000e_set_phy_oem_bits ( E1000ECore * core , int index , uint16_t val ) {\n core -> phy [ 0 ] [ PHY_OEM_BITS ] = val & ~ BIT ( 10 ) ;\n if ( val & BIT ( 10 ) ) {\n e1000x_restart_autoneg ( core -> mac , core -> phy [ 0 ] , core -> autoneg_timer ) ;\n }\n }"}
{"idx": 11987, "target": 0, "func": "static void note_change_n ( const char * p , struct branch * b , unsigned char * old_fanout ) {\n static struct strbuf uq = STRBUF_INIT ;\n struct object_entry * oe ;\n struct branch * s ;\n unsigned char sha1 [ 20 ] , commit_sha1 [ 20 ] ;\n char path [ 60 ] ;\n uint16_t inline_data = 0 ;\n unsigned char new_fanout ;\n if ( b -> num_notes == 0 && * old_fanout == 0 ) {\n b -> num_notes = change_note_fanout ( & b -> branch_tree , 0xff ) ;\n * old_fanout = convert_num_notes_to_fanout ( b -> num_notes ) ;\n }\n if ( * p == ':' ) {\n oe = find_mark ( parse_mark_ref_space ( & p ) ) ;\n hashcpy ( sha1 , oe -> idx . sha1 ) ;\n }\n else if ( skip_prefix ( p , \"inline \" , & p ) ) {\n inline_data = 1 ;\n oe = NULL ;\n }\n else {\n if ( get_sha1_hex ( p , sha1 ) ) die ( \"Invalid dataref: %s\" , command_buf . buf ) ;\n oe = find_object ( sha1 ) ;\n p += 40 ;\n if ( * p ++ != ' ' ) die ( \"Missing space after SHA1: %s\" , command_buf . buf ) ;\n }\n s = lookup_branch ( p ) ;\n if ( s ) {\n if ( is_null_sha1 ( s -> sha1 ) ) die ( \"Can't add a note on empty branch.\" ) ;\n hashcpy ( commit_sha1 , s -> sha1 ) ;\n }\n else if ( * p == ':' ) {\n uintmax_t commit_mark = parse_mark_ref_eol ( p ) ;\n struct object_entry * commit_oe = find_mark ( commit_mark ) ;\n if ( commit_oe -> type != OBJ_COMMIT ) die ( \"Mark :%\" PRIuMAX \" not a commit\" , commit_mark ) ;\n hashcpy ( commit_sha1 , commit_oe -> idx . sha1 ) ;\n }\n else if ( ! get_sha1 ( p , commit_sha1 ) ) {\n unsigned long size ;\n char * buf = read_object_with_reference ( commit_sha1 , commit_type , & size , commit_sha1 ) ;\n if ( ! buf || size < 46 ) die ( \"Not a valid commit: %s\" , p ) ;\n free ( buf ) ;\n }\n else die ( \"Invalid ref name or SHA1 expression: %s\" , p ) ;\n if ( inline_data ) {\n if ( p != uq . buf ) {\n strbuf_addstr ( & uq , p ) ;\n p = uq . buf ;\n }\n read_next_command ( ) ;\n parse_and_store_blob ( & last_blob , sha1 , 0 ) ;\n }\n else if ( oe ) {\n if ( oe -> type != OBJ_BLOB ) die ( \"Not a blob (actually a %s): %s\" , typename ( oe -> type ) , command_buf . buf ) ;\n }\n else if ( ! is_null_sha1 ( sha1 ) ) {\n enum object_type type = sha1_object_info ( sha1 , NULL ) ;\n if ( type < 0 ) die ( \"Blob not found: %s\" , command_buf . buf ) ;\n if ( type != OBJ_BLOB ) die ( \"Not a blob (actually a %s): %s\" , typename ( type ) , command_buf . buf ) ;\n }\n construct_path_with_fanout ( sha1_to_hex ( commit_sha1 ) , * old_fanout , path ) ;\n if ( tree_content_remove ( & b -> branch_tree , path , NULL , 0 ) ) b -> num_notes -- ;\n if ( is_null_sha1 ( sha1 ) ) return ;\n b -> num_notes ++ ;\n new_fanout = convert_num_notes_to_fanout ( b -> num_notes ) ;\n construct_path_with_fanout ( sha1_to_hex ( commit_sha1 ) , new_fanout , path ) ;\n tree_content_set ( & b -> branch_tree , path , sha1 , S_IFREG | 0644 , NULL ) ;\n }"}
{"idx": 11988, "target": 0, "func": "static __inline__ __u32 __swahb32p ( const __u32 * p ) {\n # ifdef __arch_swahb32p return __arch_swahb32p ( p ) ;\n # else return __swahb32 ( * p ) ;\n # endif }"}
{"idx": 11989, "target": 1, "func": "static int tgv_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n TgvContext * s = avctx -> priv_data ;\n const uint8_t * buf_end = buf + buf_size ;\n int chunk_type , ret ;\n chunk_type = AV_RL32 ( & buf [ 0 ] ) ;\n buf += EA_PREAMBLE_SIZE ;\n if ( chunk_type == kVGT_TAG ) {\n int pal_count , i ;\n if ( buf + 12 > buf_end ) {\n av_log ( avctx , AV_LOG_WARNING , \"truncated header\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n s -> width = AV_RL16 ( & buf [ 0 ] ) ;\n s -> height = AV_RL16 ( & buf [ 2 ] ) ;\n if ( s -> avctx -> width != s -> width || s -> avctx -> height != s -> height ) {\n avcodec_set_dimensions ( s -> avctx , s -> width , s -> height ) ;\n cond_release_buffer ( & s -> frame ) ;\n cond_release_buffer ( & s -> last_frame ) ;\n }\n pal_count = AV_RL16 ( & buf [ 6 ] ) ;\n buf += 12 ;\n for ( i = 0 ;\n i < pal_count && i < AVPALETTE_COUNT && buf + 2 < buf_end ;\n i ++ ) {\n s -> palette [ i ] = AV_RB24 ( buf ) ;\n buf += 3 ;\n }\n }\n if ( ( ret = av_image_check_size ( s -> width , s -> height , 0 , avctx ) ) < 0 ) return ret ;\n FFSWAP ( AVFrame , s -> frame , s -> last_frame ) ;\n if ( ! s -> frame . data [ 0 ] ) {\n s -> frame . reference = 1 ;\n s -> frame . buffer_hints = FF_BUFFER_HINTS_VALID ;\n s -> frame . linesize [ 0 ] = s -> width ;\n s -> frame . data [ 0 ] = av_malloc ( s -> width * s -> height ) ;\n if ( ! s -> frame . data [ 0 ] ) return AVERROR ( ENOMEM ) ;\n s -> frame . data [ 1 ] = av_malloc ( AVPALETTE_SIZE ) ;\n if ( ! s -> frame . data [ 1 ] ) {\n av_freep ( & s -> frame . data [ 0 ] ) ;\n return AVERROR ( ENOMEM ) ;\n }\n }\n memcpy ( s -> frame . data [ 1 ] , s -> palette , AVPALETTE_SIZE ) ;\n if ( chunk_type == kVGT_TAG ) {\n s -> frame . key_frame = 1 ;\n s -> frame . pict_type = AV_PICTURE_TYPE_I ;\n if ( unpack ( buf , buf_end , s -> frame . data [ 0 ] , s -> avctx -> width , s -> avctx -> height ) < 0 ) {\n av_log ( avctx , AV_LOG_WARNING , \"truncated intra frame\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n else {\n if ( ! s -> last_frame . data [ 0 ] ) {\n av_log ( avctx , AV_LOG_WARNING , \"inter frame without corresponding intra frame\\n\" ) ;\n return buf_size ;\n }\n s -> frame . key_frame = 0 ;\n s -> frame . pict_type = AV_PICTURE_TYPE_P ;\n if ( tgv_decode_inter ( s , buf , buf_end ) < 0 ) {\n av_log ( avctx , AV_LOG_WARNING , \"truncated inter frame\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n * got_frame = 1 ;\n * ( AVFrame * ) data = s -> frame ;\n return buf_size ;\n }"}
{"idx": 11990, "target": 0, "func": "static int dissect_h225_BandwidthDetails ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_BandwidthDetails , BandwidthDetails_sequence ) ;\n return offset ;\n }"}
{"idx": 11991, "target": 0, "func": "static void doShape ( UBiDiTransform * pTransform , uint32_t options , UErrorCode * pErrorCode ) {\n * pTransform -> pDestLength = u_shapeArabic ( pTransform -> src , pTransform -> srcLength , pTransform -> dest , pTransform -> destSize , options , pErrorCode ) ;\n }"}
{"idx": 11992, "target": 0, "func": "static jas_image_cmpt_t * jas_image_cmpt_create ( uint_fast32_t tlx , uint_fast32_t tly , uint_fast32_t hstep , uint_fast32_t vstep , uint_fast32_t width , uint_fast32_t height , uint_fast16_t depth , bool sgnd , uint_fast32_t inmem ) {\n jas_image_cmpt_t * cmpt ;\n long size ;\n if ( ! ( cmpt = jas_malloc ( sizeof ( jas_image_cmpt_t ) ) ) ) {\n return 0 ;\n }\n cmpt -> type_ = JAS_IMAGE_CT_UNKNOWN ;\n cmpt -> tlx_ = tlx ;\n cmpt -> tly_ = tly ;\n cmpt -> hstep_ = hstep ;\n cmpt -> vstep_ = vstep ;\n cmpt -> width_ = width ;\n cmpt -> height_ = height ;\n cmpt -> prec_ = depth ;\n cmpt -> sgnd_ = sgnd ;\n cmpt -> stream_ = 0 ;\n cmpt -> cps_ = ( depth + 7 ) / 8 ;\n size = cmpt -> width_ * cmpt -> height_ * cmpt -> cps_ ;\n cmpt -> stream_ = ( inmem ) ? jas_stream_memopen ( 0 , size ) : jas_stream_tmpfile ( ) ;\n if ( ! cmpt -> stream_ ) {\n jas_image_cmpt_destroy ( cmpt ) ;\n return 0 ;\n }\n if ( jas_stream_seek ( cmpt -> stream_ , size - 1 , SEEK_SET ) < 0 || jas_stream_putc ( cmpt -> stream_ , 0 ) == EOF || jas_stream_seek ( cmpt -> stream_ , 0 , SEEK_SET ) < 0 ) {\n jas_image_cmpt_destroy ( cmpt ) ;\n return 0 ;\n }\n return cmpt ;\n }"}
{"idx": 11993, "target": 0, "func": "void vp9_iht16x16_256_add_sse2 ( const int16_t * input , uint8_t * dest , int stride , int tx_type ) {\n __m128i in0 [ 16 ] , in1 [ 16 ] ;\n load_buffer_8x16 ( input , in0 ) ;\n input += 8 ;\n load_buffer_8x16 ( input , in1 ) ;\n switch ( tx_type ) {\n case 0 : idct16_sse2 ( in0 , in1 ) ;\n idct16_sse2 ( in0 , in1 ) ;\n break ;\n case 1 : idct16_sse2 ( in0 , in1 ) ;\n iadst16_sse2 ( in0 , in1 ) ;\n break ;\n case 2 : iadst16_sse2 ( in0 , in1 ) ;\n idct16_sse2 ( in0 , in1 ) ;\n break ;\n case 3 : iadst16_sse2 ( in0 , in1 ) ;\n iadst16_sse2 ( in0 , in1 ) ;\n break ;\n default : assert ( 0 ) ;\n break ;\n }\n write_buffer_8x16 ( dest , in0 , stride ) ;\n dest += 8 ;\n write_buffer_8x16 ( dest , in1 , stride ) ;\n }"}
{"idx": 11994, "target": 0, "func": "void pk_transaction_reset_after_lock_error ( PkTransaction * transaction ) {\n PkTransactionPrivate * priv = PK_TRANSACTION_GET_PRIVATE ( transaction ) ;\n g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;\n g_object_unref ( priv -> results ) ;\n priv -> results = pk_results_new ( ) ;\n priv -> state = PK_TRANSACTION_STATE_READY ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_READY ) ;\n g_debug ( \"transaction has been reset after lock-required issue.\" ) ;\n }"}
{"idx": 11995, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FullscreenControllerInteractiveTest , DISABLED_MouseLockThenFullscreen ) {\n ASSERT_TRUE ( test_server ( ) -> Start ( ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , test_server ( ) -> GetURL ( kFullscreenMouseLockHTML ) ) ;\n ASSERT_FALSE ( IsFullscreenBubbleDisplayed ( ) ) ;\n ASSERT_TRUE ( ui_test_utils : : SendKeyPressAndWait ( browser ( ) , ui : : VKEY_D , false , false , false , false , chrome : : NOTIFICATION_MOUSE_LOCK_CHANGED , content : : NotificationService : : AllSources ( ) ) ) ;\n ASSERT_FALSE ( IsFullscreenBubbleDisplayed ( ) ) ;\n ASSERT_FALSE ( IsMouseLocked ( ) ) ;\n ASSERT_TRUE ( ui_test_utils : : SendKeyPressAndWait ( browser ( ) , ui : : VKEY_1 , false , false , false , false , chrome : : NOTIFICATION_MOUSE_LOCK_CHANGED , content : : NotificationService : : AllSources ( ) ) ) ;\n ASSERT_TRUE ( IsFullscreenBubbleDisplayed ( ) ) ;\n ASSERT_FALSE ( IsFullscreenPermissionRequested ( ) ) ;\n ASSERT_TRUE ( IsMouseLockPermissionRequested ( ) ) ;\n ASSERT_FALSE ( IsMouseLocked ( ) ) ;\n AcceptCurrentFullscreenOrMouseLockRequest ( ) ;\n ASSERT_TRUE ( IsMouseLocked ( ) ) ;\n ASSERT_FALSE ( IsFullscreenBubbleDisplayingButtons ( ) ) ;\n ASSERT_NO_FATAL_FAILURE ( ToggleTabFullscreen ( true ) ) ;\n ASSERT_TRUE ( IsFullscreenPermissionRequested ( ) ) ;\n ASSERT_FALSE ( IsMouseLockPermissionRequested ( ) ) ;\n ASSERT_FALSE ( IsMouseLocked ( ) ) ;\n ASSERT_TRUE ( ui_test_utils : : SendKeyPressAndWait ( browser ( ) , ui : : VKEY_1 , false , false , false , false , chrome : : NOTIFICATION_MOUSE_LOCK_CHANGED , content : : NotificationService : : AllSources ( ) ) ) ;\n ASSERT_TRUE ( IsFullscreenPermissionRequested ( ) ) ;\n ASSERT_TRUE ( IsMouseLockPermissionRequested ( ) ) ;\n ASSERT_FALSE ( IsMouseLocked ( ) ) ;\n AcceptCurrentFullscreenOrMouseLockRequest ( ) ;\n ASSERT_TRUE ( IsMouseLocked ( ) ) ;\n ASSERT_TRUE ( IsWindowFullscreenForTabOrPending ( ) ) ;\n ASSERT_FALSE ( IsFullscreenBubbleDisplayingButtons ( ) ) ;\n }"}
{"idx": 11996, "target": 0, "func": "static void decode_lpc ( int32_t * coeffs , int mode , int length ) {\n int i ;\n if ( length < 2 ) return ;\n if ( mode == 1 ) {\n int a1 = * coeffs ++ ;\n for ( i = 0 ;\n i < length - 1 >> 1 ;\n i ++ ) {\n * coeffs += a1 ;\n coeffs [ 1 ] += * coeffs ;\n a1 = coeffs [ 1 ] ;\n coeffs += 2 ;\n }\n if ( length - 1 & 1 ) * coeffs += a1 ;\n }\n else if ( mode == 2 ) {\n int a1 = coeffs [ 1 ] ;\n int a2 = a1 + * coeffs ;\n coeffs [ 1 ] = a2 ;\n if ( length > 2 ) {\n coeffs += 2 ;\n for ( i = 0 ;\n i < length - 2 >> 1 ;\n i ++ ) {\n int a3 = * coeffs + a1 ;\n int a4 = a3 + a2 ;\n * coeffs = a4 ;\n a1 = coeffs [ 1 ] + a3 ;\n a2 = a1 + a4 ;\n coeffs [ 1 ] = a2 ;\n coeffs += 2 ;\n }\n if ( length & 1 ) * coeffs += a1 + a2 ;\n }\n }\n else if ( mode == 3 ) {\n int a1 = coeffs [ 1 ] ;\n int a2 = a1 + * coeffs ;\n coeffs [ 1 ] = a2 ;\n if ( length > 2 ) {\n int a3 = coeffs [ 2 ] ;\n int a4 = a3 + a1 ;\n int a5 = a4 + a2 ;\n coeffs += 3 ;\n for ( i = 0 ;\n i < length - 3 ;\n i ++ ) {\n a3 += * coeffs ;\n a4 += a3 ;\n a5 += a4 ;\n * coeffs = a5 ;\n coeffs ++ ;\n }\n }\n }\n }"}
{"idx": 11997, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( BluetoothChooserBrowserTest , InvokeDialog_UnavailableModal ) {\n RunDialog ( ) ;\n }"}
{"idx": 11998, "target": 0, "func": "static int selinux_sb_remount ( struct super_block * sb , void * data ) {\n int rc , i , * flags ;\n struct security_mnt_opts opts ;\n char * secdata , * * mount_options ;\n struct superblock_security_struct * sbsec = sb -> s_security ;\n if ( ! ( sbsec -> flags & SE_SBINITIALIZED ) ) return 0 ;\n if ( ! data ) return 0 ;\n if ( sb -> s_type -> fs_flags & FS_BINARY_MOUNTDATA ) return 0 ;\n security_init_mnt_opts ( & opts ) ;\n secdata = alloc_secdata ( ) ;\n if ( ! secdata ) return - ENOMEM ;\n rc = selinux_sb_copy_data ( data , secdata ) ;\n if ( rc ) goto out_free_secdata ;\n rc = selinux_parse_opts_str ( secdata , & opts ) ;\n if ( rc ) goto out_free_secdata ;\n mount_options = opts . mnt_opts ;\n flags = opts . mnt_opts_flags ;\n for ( i = 0 ;\n i < opts . num_mnt_opts ;\n i ++ ) {\n u32 sid ;\n if ( flags [ i ] == SBLABEL_MNT ) continue ;\n rc = security_context_str_to_sid ( mount_options [ i ] , & sid , GFP_KERNEL ) ;\n if ( rc ) {\n printk ( KERN_WARNING \"SELinux: security_context_str_to_sid\" \"(%s) failed for (dev %s, type %s) errno=%d\\n\" , mount_options [ i ] , sb -> s_id , sb -> s_type -> name , rc ) ;\n goto out_free_opts ;\n }\n rc = - EINVAL ;\n switch ( flags [ i ] ) {\n case FSCONTEXT_MNT : if ( bad_option ( sbsec , FSCONTEXT_MNT , sbsec -> sid , sid ) ) goto out_bad_option ;\n break ;\n case CONTEXT_MNT : if ( bad_option ( sbsec , CONTEXT_MNT , sbsec -> mntpoint_sid , sid ) ) goto out_bad_option ;\n break ;\n case ROOTCONTEXT_MNT : {\n struct inode_security_struct * root_isec ;\n root_isec = backing_inode_security ( sb -> s_root ) ;\n if ( bad_option ( sbsec , ROOTCONTEXT_MNT , root_isec -> sid , sid ) ) goto out_bad_option ;\n break ;\n }\n case DEFCONTEXT_MNT : if ( bad_option ( sbsec , DEFCONTEXT_MNT , sbsec -> def_sid , sid ) ) goto out_bad_option ;\n break ;\n default : goto out_free_opts ;\n }\n }\n rc = 0 ;\n out_free_opts : security_free_mnt_opts ( & opts ) ;\n out_free_secdata : free_secdata ( secdata ) ;\n return rc ;\n out_bad_option : printk ( KERN_WARNING \"SELinux: unable to change security options \" \"during remount (dev %s, type=%s)\\n\" , sb -> s_id , sb -> s_type -> name ) ;\n goto out_free_opts ;\n }"}
{"idx": 11999, "target": 1, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING )"}
{"idx": 12000, "target": 1, "func": "static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 12001, "target": 0, "func": "static gboolean lacks_thumbnail ( NautilusFile * file ) {\n return nautilus_file_should_show_thumbnail ( file ) && file -> details -> thumbnail_path != NULL && ! file -> details -> thumbnail_is_up_to_date ;\n }"}
{"idx": 12002, "target": 0, "func": "err_status_t srtp_add_stream ( srtp_t session , const srtp_policy_t * policy ) {\n err_status_t status ;\n srtp_stream_t tmp ;\n if ( ( session == NULL ) || ( policy == NULL ) || ( policy -> key == NULL ) ) return err_status_bad_param ;\n status = srtp_stream_alloc ( & tmp , policy ) ;\n if ( status ) {\n return status ;\n }\n status = srtp_stream_init ( tmp , policy ) ;\n if ( status ) {\n crypto_free ( tmp ) ;\n return status ;\n }\n switch ( policy -> ssrc . type ) {\n case ( ssrc_any_outbound ) : if ( session -> stream_template ) {\n return err_status_bad_param ;\n }\n session -> stream_template = tmp ;\n session -> stream_template -> direction = dir_srtp_sender ;\n break ;\n case ( ssrc_any_inbound ) : if ( session -> stream_template ) {\n return err_status_bad_param ;\n }\n session -> stream_template = tmp ;\n session -> stream_template -> direction = dir_srtp_receiver ;\n break ;\n case ( ssrc_specific ) : tmp -> next = session -> stream_list ;\n session -> stream_list = tmp ;\n break ;\n case ( ssrc_undefined ) : default : crypto_free ( tmp ) ;\n return err_status_bad_param ;\n }\n return err_status_ok ;\n }"}
{"idx": 12003, "target": 0, "func": "static void inhibit_data_for_failed_table ( ArchiveHandle * AH , TocEntry * te ) {\n ahlog ( AH , 1 , \"table \\\"%s\\\" could not be created, will not restore its data\\n\" , te -> tag ) ;\n if ( AH -> tableDataId [ te -> dumpId ] != 0 ) {\n TocEntry * ted = AH -> tocsByDumpId [ AH -> tableDataId [ te -> dumpId ] ] ;\n ted -> reqs = 0 ;\n }\n }"}
{"idx": 12004, "target": 0, "func": "static int dissect_h245_H263VideoCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_H263VideoCapability , H263VideoCapability_sequence ) ;\n # line 363 \"../../asn1/h245/h245.cnf\" h245_lc_dissector = h263_handle ;\n return offset ;\n }"}
{"idx": 12005, "target": 0, "func": "void getTypeBinaryInputInfo ( Oid type , Oid * typReceive , Oid * typIOParam ) {\n HeapTuple typeTuple ;\n Form_pg_type pt ;\n typeTuple = SearchSysCache1 ( TYPEOID , ObjectIdGetDatum ( type ) ) ;\n if ( ! HeapTupleIsValid ( typeTuple ) ) elog ( ERROR , \"cache lookup failed for type %u\" , type ) ;\n pt = ( Form_pg_type ) GETSTRUCT ( typeTuple ) ;\n if ( ! pt -> typisdefined ) ereport ( ERROR , ( errcode ( ERRCODE_UNDEFINED_OBJECT ) , errmsg ( \"type %s is only a shell\" , format_type_be ( type ) ) ) ) ;\n if ( ! OidIsValid ( pt -> typreceive ) ) ereport ( ERROR , ( errcode ( ERRCODE_UNDEFINED_FUNCTION ) , errmsg ( \"no binary input function available for type %s\" , format_type_be ( type ) ) ) ) ;\n * typReceive = pt -> typreceive ;\n * typIOParam = getTypeIOParam ( typeTuple ) ;\n ReleaseSysCache ( typeTuple ) ;\n }"}
{"idx": 12006, "target": 0, "func": "static char * lxc_cgroup_find_abs_path ( const char * subsystem , const char * group , bool should_be_writable , const char * suffix ) {\n struct cgroup_meta_data * meta_data ;\n struct cgroup_hierarchy * h ;\n struct cgroup_mount_point * mp ;\n char * result ;\n int saved_errno ;\n meta_data = lxc_cgroup_load_meta ( ) ;\n if ( ! meta_data ) return NULL ;\n h = lxc_cgroup_find_hierarchy ( meta_data , subsystem ) ;\n if ( ! h ) goto out_error ;\n mp = lxc_cgroup_find_mount_point ( h , group , should_be_writable ) ;\n if ( ! mp ) goto out_error ;\n result = cgroup_to_absolute_path ( mp , group , suffix ) ;\n if ( ! result ) goto out_error ;\n lxc_cgroup_put_meta ( meta_data ) ;\n return result ;\n out_error : saved_errno = errno ;\n lxc_cgroup_put_meta ( meta_data ) ;\n errno = saved_errno ;\n return NULL ;\n }"}
{"idx": 12007, "target": 1, "func": "int ImagingPcdDecode ( Imaging im , ImagingCodecState state , UINT8 * buf , int bytes ) {\n int x ;\n int chunk ;\n UINT8 * out ;\n UINT8 * ptr ;\n ptr = buf ;\n chunk = 3 * state -> xsize ;\n for ( ;\n ;\n ) {\n if ( bytes < chunk ) return ptr - buf ;\n out = state -> buffer ;\n for ( x = 0 ;\n x < state -> xsize ;\n x ++ ) {\n out [ 0 ] = ptr [ x ] ;\n out [ 1 ] = ptr [ ( x + 4 * state -> xsize ) / 2 ] ;\n out [ 2 ] = ptr [ ( x + 5 * state -> xsize ) / 2 ] ;\n out += 4 ;\n }\n state -> shuffle ( ( UINT8 * ) im -> image [ state -> y ] , state -> buffer , state -> xsize ) ;\n if ( ++ state -> y >= state -> ysize ) return - 1 ;\n out = state -> buffer ;\n for ( x = 0 ;\n x < state -> xsize ;\n x ++ ) {\n out [ 0 ] = ptr [ x + state -> xsize ] ;\n out [ 1 ] = ptr [ ( x + 4 * state -> xsize ) / 2 ] ;\n out [ 2 ] = ptr [ ( x + 5 * state -> xsize ) / 2 ] ;\n out += 4 ;\n }\n state -> shuffle ( ( UINT8 * ) im -> image [ state -> y ] , state -> buffer , state -> xsize ) ;\n if ( ++ state -> y >= state -> ysize ) return - 1 ;\n ptr += chunk ;\n bytes -= chunk ;\n }\n }"}
{"idx": 12008, "target": 0, "func": "static int dissect_h225_CallCapacityInfo ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_CallCapacityInfo , CallCapacityInfo_sequence ) ;\n return offset ;\n }"}
{"idx": 12009, "target": 0, "func": "void ff_h263_decode_init_vlc ( void ) {\n static int done = 0 ;\n if ( ! done ) {\n done = 1 ;\n INIT_VLC_STATIC ( & ff_h263_intra_MCBPC_vlc , INTRA_MCBPC_VLC_BITS , 9 , ff_h263_intra_MCBPC_bits , 1 , 1 , ff_h263_intra_MCBPC_code , 1 , 1 , 72 ) ;\n INIT_VLC_STATIC ( & ff_h263_inter_MCBPC_vlc , INTER_MCBPC_VLC_BITS , 28 , ff_h263_inter_MCBPC_bits , 1 , 1 , ff_h263_inter_MCBPC_code , 1 , 1 , 198 ) ;\n INIT_VLC_STATIC ( & ff_h263_cbpy_vlc , CBPY_VLC_BITS , 16 , & ff_h263_cbpy_tab [ 0 ] [ 1 ] , 2 , 1 , & ff_h263_cbpy_tab [ 0 ] [ 0 ] , 2 , 1 , 64 ) ;\n INIT_VLC_STATIC ( & mv_vlc , MV_VLC_BITS , 33 , & ff_mvtab [ 0 ] [ 1 ] , 2 , 1 , & ff_mvtab [ 0 ] [ 0 ] , 2 , 1 , 538 ) ;\n ff_init_rl ( & ff_h263_rl_inter , ff_h263_static_rl_table_store [ 0 ] ) ;\n ff_init_rl ( & ff_rl_intra_aic , ff_h263_static_rl_table_store [ 1 ] ) ;\n INIT_VLC_RL ( ff_h263_rl_inter , 554 ) ;\n INIT_VLC_RL ( ff_rl_intra_aic , 554 ) ;\n INIT_VLC_STATIC ( & h263_mbtype_b_vlc , H263_MBTYPE_B_VLC_BITS , 15 , & ff_h263_mbtype_b_tab [ 0 ] [ 1 ] , 2 , 1 , & ff_h263_mbtype_b_tab [ 0 ] [ 0 ] , 2 , 1 , 80 ) ;\n INIT_VLC_STATIC ( & cbpc_b_vlc , CBPC_B_VLC_BITS , 4 , & ff_cbpc_b_tab [ 0 ] [ 1 ] , 2 , 1 , & ff_cbpc_b_tab [ 0 ] [ 0 ] , 2 , 1 , 8 ) ;\n }\n }"}
{"idx": 12010, "target": 0, "func": "static void cmyk2g ( fz_context * ctx , fz_color_converter * cc , float * dv , const float * sv ) {\n float c = sv [ 0 ] * 0.3f ;\n float m = sv [ 1 ] * 0.59f ;\n float y = sv [ 2 ] * 0.11f ;\n dv [ 0 ] = 1 - fz_min ( c + m + y + sv [ 3 ] , 1 ) ;\n }"}
{"idx": 12011, "target": 0, "func": "static int dissect_h245_INTEGER_1_31 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 31U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 12012, "target": 1, "func": "int dissect_h225_NonStandardParameter ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 803 \"./asn1/h225/h225.cnf\" nsp_handle = NULL ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_NonStandardParameter , NonStandardParameter_sequence ) ;\n return offset ;\n }"}
{"idx": 12013, "target": 0, "func": "static int dissect_h245_MediaChannelCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MediaChannelCapability , MediaChannelCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 12014, "target": 1, "func": "static int dump_tablespaces ( char * ts_where ) {\n MYSQL_ROW row ;\n MYSQL_RES * tableres ;\n char buf [ FN_REFLEN ] ;\n DYNAMIC_STRING sqlbuf ;\n int first = 0 ;\n char extra_format [ ] = \"UNDO_BUFFER_SIZE=\" ;\n char * ubs ;\n char * endsemi ;\n DBUG_ENTER ( \"dump_tablespaces\" ) ;\n mysql_query ( mysql , \"set optimizer_switch='semijoin=off'\" ) ;\n init_dynamic_string_checked ( & sqlbuf , \"SELECT LOGFILE_GROUP_NAME,\" \" FILE_NAME,\" \" TOTAL_EXTENTS,\" \" INITIAL_SIZE,\" \" ENGINE,\" \" EXTRA\" \" FROM INFORMATION_SCHEMA.FILES\" \" WHERE FILE_TYPE = 'UNDO LOG'\" \" AND FILE_NAME IS NOT NULL\" , 256 , 1024 ) ;\n if ( ts_where ) {\n dynstr_append_checked ( & sqlbuf , \" AND LOGFILE_GROUP_NAME IN (\" \"SELECT DISTINCT LOGFILE_GROUP_NAME\" \" FROM INFORMATION_SCHEMA.FILES\" \" WHERE FILE_TYPE = 'DATAFILE'\" ) ;\n dynstr_append_checked ( & sqlbuf , ts_where ) ;\n dynstr_append_checked ( & sqlbuf , \")\" ) ;\n }\n dynstr_append_checked ( & sqlbuf , \" GROUP BY LOGFILE_GROUP_NAME, FILE_NAME\" \", ENGINE\" \" ORDER BY LOGFILE_GROUP_NAME\" ) ;\n if ( mysql_query ( mysql , sqlbuf . str ) || ! ( tableres = mysql_store_result ( mysql ) ) ) {\n dynstr_free ( & sqlbuf ) ;\n if ( mysql_errno ( mysql ) == ER_BAD_TABLE_ERROR || mysql_errno ( mysql ) == ER_BAD_DB_ERROR || mysql_errno ( mysql ) == ER_UNKNOWN_TABLE ) {\n fprintf ( md_result_file , \"\\n--\\n-- Not dumping tablespaces as no INFORMATION_SCHEMA.FILES\" \" table on this server\\n--\\n\" ) ;\n check_io ( md_result_file ) ;\n DBUG_RETURN ( 0 ) ;\n }\n fprintf ( stderr , \"%s: Error: '%s' when trying to dump tablespaces\\n\" , my_progname_short , mysql_error ( mysql ) ) ;\n DBUG_RETURN ( 1 ) ;\n }\n buf [ 0 ] = 0 ;\n while ( ( row = mysql_fetch_row ( tableres ) ) ) {\n if ( strcmp ( buf , row [ 0 ] ) != 0 ) first = 1 ;\n if ( first ) {\n print_comment ( md_result_file , 0 , \"\\n--\\n-- Logfile group: %s\\n--\\n\" , row [ 0 ] ) ;\n fprintf ( md_result_file , \"\\nCREATE\" ) ;\n }\n else {\n fprintf ( md_result_file , \"\\nALTER\" ) ;\n }\n fprintf ( md_result_file , \" LOGFILE GROUP %s\\n\" \" ADD UNDOFILE '%s'\\n\" , row [ 0 ] , row [ 1 ] ) ;\n if ( first ) {\n ubs = strstr ( row [ 5 ] , extra_format ) ;\n if ( ! ubs ) break ;\n ubs += strlen ( extra_format ) ;\n endsemi = strstr ( ubs , \";\n\" ) ;\n if ( endsemi ) endsemi [ 0 ] = '\\0' ;\n fprintf ( md_result_file , \" UNDO_BUFFER_SIZE %s\\n\" , ubs ) ;\n }\n fprintf ( md_result_file , \" INITIAL_SIZE %s\\n\" \" ENGINE=%s;\n\\n\" , row [ 3 ] , row [ 4 ] ) ;\n check_io ( md_result_file ) ;\n if ( first ) {\n first = 0 ;\n strxmov ( buf , row [ 0 ] , NullS ) ;\n }\n }\n dynstr_free ( & sqlbuf ) ;\n mysql_free_result ( tableres ) ;\n init_dynamic_string_checked ( & sqlbuf , \"SELECT DISTINCT TABLESPACE_NAME,\" \" FILE_NAME,\" \" LOGFILE_GROUP_NAME,\" \" EXTENT_SIZE,\" \" INITIAL_SIZE,\" \" ENGINE\" \" FROM INFORMATION_SCHEMA.FILES\" \" WHERE FILE_TYPE = 'DATAFILE'\" , 256 , 1024 ) ;\n if ( ts_where ) dynstr_append_checked ( & sqlbuf , ts_where ) ;\n dynstr_append_checked ( & sqlbuf , \" ORDER BY TABLESPACE_NAME, LOGFILE_GROUP_NAME\" ) ;\n if ( mysql_query_with_error_report ( mysql , & tableres , sqlbuf . str ) ) {\n dynstr_free ( & sqlbuf ) ;\n DBUG_RETURN ( 1 ) ;\n }\n buf [ 0 ] = 0 ;\n while ( ( row = mysql_fetch_row ( tableres ) ) ) {\n if ( strcmp ( buf , row [ 0 ] ) != 0 ) first = 1 ;\n if ( first ) {\n print_comment ( md_result_file , 0 , \"\\n--\\n-- Tablespace: %s\\n--\\n\" , row [ 0 ] ) ;\n fprintf ( md_result_file , \"\\nCREATE\" ) ;\n }\n else {\n fprintf ( md_result_file , \"\\nALTER\" ) ;\n }\n fprintf ( md_result_file , \" TABLESPACE %s\\n\" \" ADD DATAFILE '%s'\\n\" , row [ 0 ] , row [ 1 ] ) ;\n if ( first ) {\n fprintf ( md_result_file , \" USE LOGFILE GROUP %s\\n\" \" EXTENT_SIZE %s\\n\" , row [ 2 ] , row [ 3 ] ) ;\n }\n fprintf ( md_result_file , \" INITIAL_SIZE %s\\n\" \" ENGINE=%s;\n\\n\" , row [ 4 ] , row [ 5 ] ) ;\n check_io ( md_result_file ) ;\n if ( first ) {\n first = 0 ;\n strxmov ( buf , row [ 0 ] , NullS ) ;\n }\n }\n mysql_free_result ( tableres ) ;\n dynstr_free ( & sqlbuf ) ;\n mysql_query ( mysql , \"set optimizer_switch=default\" ) ;\n DBUG_RETURN ( 0 ) ;\n }"}
{"idx": 12015, "target": 0, "func": "static void evport_dealloc ( struct event_base * base , void * arg ) {\n struct evport_data * evpd = arg ;\n evsignal_dealloc ( base ) ;\n close ( evpd -> ed_port ) ;\n if ( evpd -> ed_fds ) free ( evpd -> ed_fds ) ;\n free ( evpd ) ;\n }"}
{"idx": 12016, "target": 0, "func": "static bool hyperv_hypercall_enable_needed ( void * opaque ) {\n X86CPU * cpu = opaque ;\n CPUX86State * env = & cpu -> env ;\n return env -> msr_hv_hypercall != 0 || env -> msr_hv_guest_os_id != 0 ;\n }"}
{"idx": 12017, "target": 0, "func": "static int ebml_parse_elem ( MatroskaDemuxContext * matroska , EbmlSyntax * syntax , void * data ) {\n static const uint64_t max_lengths [ EBML_TYPE_COUNT ] = {\n [ EBML_UINT ] = 8 , [ EBML_FLOAT ] = 8 , [ EBML_STR ] = 0x1000000 , [ EBML_UTF8 ] = 0x1000000 , [ EBML_BIN ] = 0x10000000 , }\n ;\n AVIOContext * pb = matroska -> ctx -> pb ;\n uint32_t id = syntax -> id ;\n uint64_t length ;\n int res ;\n data = ( char * ) data + syntax -> data_offset ;\n if ( syntax -> list_elem_size ) {\n EbmlList * list = data ;\n if ( ( res = av_reallocp_array ( & list -> elem , list -> nb_elem + 1 , syntax -> list_elem_size ) ) < 0 ) {\n list -> nb_elem = 0 ;\n return res ;\n }\n data = ( char * ) list -> elem + list -> nb_elem * syntax -> list_elem_size ;\n memset ( data , 0 , syntax -> list_elem_size ) ;\n list -> nb_elem ++ ;\n }\n if ( syntax -> type != EBML_PASS && syntax -> type != EBML_STOP ) {\n matroska -> current_id = 0 ;\n if ( ( res = ebml_read_length ( matroska , pb , & length ) ) < 0 ) return res ;\n if ( max_lengths [ syntax -> type ] && length > max_lengths [ syntax -> type ] ) {\n av_log ( matroska -> ctx , AV_LOG_ERROR , \"Invalid length 0x%\" PRIx64 \" > 0x%\" PRIx64 \" for syntax element %i\\n\" , length , max_lengths [ syntax -> type ] , syntax -> type ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n switch ( syntax -> type ) {\n case EBML_UINT : res = ebml_read_uint ( pb , length , data ) ;\n break ;\n case EBML_FLOAT : res = ebml_read_float ( pb , length , data ) ;\n break ;\n case EBML_STR : case EBML_UTF8 : res = ebml_read_ascii ( pb , length , data ) ;\n break ;\n case EBML_BIN : res = ebml_read_binary ( pb , length , data ) ;\n break ;\n case EBML_NEST : if ( ( res = ebml_read_master ( matroska , length ) ) < 0 ) return res ;\n if ( id == MATROSKA_ID_SEGMENT ) matroska -> segment_start = avio_tell ( matroska -> ctx -> pb ) ;\n return ebml_parse_nest ( matroska , syntax -> def . n , data ) ;\n case EBML_PASS : return ebml_parse_id ( matroska , syntax -> def . n , id , data ) ;\n case EBML_STOP : return 1 ;\n default : return avio_skip ( pb , length ) < 0 ? AVERROR ( EIO ) : 0 ;\n }\n if ( res == AVERROR_INVALIDDATA ) av_log ( matroska -> ctx , AV_LOG_ERROR , \"Invalid element\\n\" ) ;\n else if ( res == AVERROR ( EIO ) ) av_log ( matroska -> ctx , AV_LOG_ERROR , \"Read error\\n\" ) ;\n return res ;\n }"}
{"idx": 12018, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , IgnoreDownloads ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n content : : DownloadTestObserverTerminal downloads_observer ( content : : BrowserContext : : GetDownloadManager ( browser ( ) -> profile ( ) ) , 1 , content : : DownloadTestObserver : : ON_DANGEROUS_DOWNLOAD_FAIL ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/download-test3.gif\" ) ) ;\n downloads_observer . WaitForFinished ( ) ;\n NavigateToUntrackedUrl ( ) ;\n EXPECT_TRUE ( NoPageLoadMetricsRecorded ( ) ) << \"Recorded metrics: \" << GetRecordedPageLoadMetricNames ( ) ;\n }"}
{"idx": 12019, "target": 0, "func": "inline bool is_response_body_precluded ( HTTPStatus status_code ) {\n if ( ( ( status_code != HTTP_STATUS_OK ) && ( ( status_code == HTTP_STATUS_NOT_MODIFIED ) || ( ( status_code < HTTP_STATUS_OK ) && ( status_code >= HTTP_STATUS_CONTINUE ) ) || ( status_code == HTTP_STATUS_NO_CONTENT ) ) ) ) {\n return true ;\n }\n else {\n return false ;\n }\n }"}
{"idx": 12020, "target": 0, "func": "static int selinux_kernel_create_files_as ( struct cred * new , struct inode * inode ) {\n struct inode_security_struct * isec = inode_security ( inode ) ;\n struct task_security_struct * tsec = new -> security ;\n u32 sid = current_sid ( ) ;\n int ret ;\n ret = avc_has_perm ( sid , isec -> sid , SECCLASS_KERNEL_SERVICE , KERNEL_SERVICE__CREATE_FILES_AS , NULL ) ;\n if ( ret == 0 ) tsec -> create_sid = isec -> sid ;\n return ret ;\n }"}
{"idx": 12021, "target": 0, "func": "void DMA_init ( int high_page_enable , qemu_irq * cpu_request_exit ) {\n }"}
{"idx": 12022, "target": 0, "func": "unsigned int vp9_variance ## W ## x ## H ## _c ( const uint8_t * a , int a_stride , const uint8_t * b , int b_stride , unsigned int * sse ) {\n int sum ;\n variance ( a , a_stride , b , b_stride , W , H , sse , & sum ) ;\n return * sse - ( ( ( int64_t ) sum * sum ) / ( W * H ) ) ;\n \\ }\n # define SUBPIX_VAR ( W , H ) unsigned int vp9_sub_pixel_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp2 , W , dst , dst_stride , sse ) ;\n \\ }\n # define SUBPIX_AVG_VAR ( W , H ) unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 )"}
{"idx": 12023, "target": 0, "func": "static enum fetch_step vbf_stp_done ( void ) {\n WRONG ( \"Just plain wrong\" ) ;\n NEEDLESS ( return ( F_STP_DONE ) ) ;\n }"}
{"idx": 12024, "target": 0, "func": "static inline hb_bool_t hb_non_global_user_features_present ( const hb_feature_t * user_features , unsigned int num_user_features ) {\n while ( num_user_features ) if ( user_features -> start != 0 || user_features -> end != ( unsigned int ) - 1 ) return true ;\n else num_user_features -- , user_features ++ ;\n return false ;\n }"}
{"idx": 12025, "target": 1, "func": "extern int as_mysql_job_complete ( mysql_conn_t * mysql_conn , struct job_record * job_ptr ) {\n char * query = NULL ;\n int rc = SLURM_SUCCESS , job_state ;\n time_t submit_time , end_time ;\n uint32_t exit_code = 0 ;\n if ( ! job_ptr -> db_index && ( ( ! job_ptr -> details || ! job_ptr -> details -> submit_time ) && ! job_ptr -> resize_time ) ) {\n error ( \"as_mysql_job_complete: \" \"Not inputing this job, it has no submit time.\" ) ;\n return SLURM_ERROR ;\n }\n if ( check_connection ( mysql_conn ) != SLURM_SUCCESS ) return ESLURM_DB_CONNECTION ;\n debug2 ( \"as_mysql_slurmdb_job_complete() called\" ) ;\n if ( job_ptr -> resize_time ) submit_time = job_ptr -> resize_time ;\n else submit_time = job_ptr -> details -> submit_time ;\n if ( IS_JOB_RESIZING ( job_ptr ) ) {\n end_time = job_ptr -> resize_time ;\n job_state = JOB_RESIZING ;\n }\n else {\n if ( job_ptr -> end_time == 0 ) {\n if ( job_ptr -> start_time ) {\n error ( \"%s: We are trying to end a job (%u) with no end time, setting it to the start time (%ld) of the job.\" , __func__ , job_ptr -> job_id , job_ptr -> start_time ) ;\n job_ptr -> end_time = job_ptr -> start_time ;\n }\n else {\n error ( \"%s: job %u never started\" , __func__ , job_ptr -> job_id ) ;\n return SLURM_SUCCESS ;\n }\n }\n end_time = job_ptr -> end_time ;\n if ( IS_JOB_REQUEUED ( job_ptr ) ) job_state = JOB_REQUEUE ;\n else if ( IS_JOB_REVOKED ( job_ptr ) ) job_state = JOB_REVOKED ;\n else job_state = job_ptr -> job_state & JOB_STATE_BASE ;\n }\n slurm_mutex_lock ( & rollup_lock ) ;\n if ( end_time < global_last_rollup ) {\n global_last_rollup = job_ptr -> end_time ;\n slurm_mutex_unlock ( & rollup_lock ) ;\n query = xstrdup_printf ( \"update \\\"%s_%s\\\" set \" \"hourly_rollup=%ld, \" \"daily_rollup=%ld, monthly_rollup=%ld\" , mysql_conn -> cluster_name , last_ran_table , end_time , end_time , end_time ) ;\n if ( debug_flags & DEBUG_FLAG_DB_JOB ) DB_DEBUG ( mysql_conn -> conn , \"query\\n%s\" , query ) ;\n ( void ) mysql_db_query ( mysql_conn , query ) ;\n xfree ( query ) ;\n }\n else slurm_mutex_unlock ( & rollup_lock ) ;\n if ( ! job_ptr -> db_index ) {\n if ( ! ( job_ptr -> db_index = _get_db_index ( mysql_conn , submit_time , job_ptr -> job_id , job_ptr -> assoc_id ) ) ) {\n char * comment = job_ptr -> comment ;\n job_ptr -> comment = NULL ;\n if ( as_mysql_job_start ( mysql_conn , job_ptr ) == SLURM_ERROR ) {\n job_ptr -> comment = comment ;\n error ( \"couldn't add job %u at job completion\" , job_ptr -> job_id ) ;\n return SLURM_SUCCESS ;\n }\n job_ptr -> comment = comment ;\n }\n }\n query = xstrdup_printf ( \"update \\\"%s_%s\\\" set \" \"mod_time=UNIX_TIMESTAMP(), \" \"time_end=%ld, state=%d\" , mysql_conn -> cluster_name , job_table , end_time , job_state ) ;\n if ( job_ptr -> derived_ec != NO_VAL ) xstrfmtcat ( query , \", derived_ec=%u\" , job_ptr -> derived_ec ) ;\n if ( job_ptr -> comment ) {\n char * comment = slurm_add_slash_to_quotes ( job_ptr -> comment ) ;\n xstrfmtcat ( query , \", derived_es='%s'\" , comment ) ;\n xfree ( comment ) ;\n }\n if ( job_ptr -> admin_comment ) {\n char * comment = slurm_add_slash_to_quotes ( job_ptr -> admin_comment ) ;\n xstrfmtcat ( query , \", admin_comment='%s'\" , comment ) ;\n xfree ( comment ) ;\n }\n exit_code = job_ptr -> exit_code ;\n if ( exit_code == 1 ) {\n exit_code = 256 ;\n }\n xstrfmtcat ( query , \", exit_code=%d, kill_requid=%d where job_db_inx=%\" PRIu64 \";\n\" , exit_code , job_ptr -> requid , job_ptr -> db_index ) ;\n if ( debug_flags & DEBUG_FLAG_DB_JOB ) DB_DEBUG ( mysql_conn -> conn , \"query\\n%s\" , query ) ;\n rc = mysql_db_query ( mysql_conn , query ) ;\n xfree ( query ) ;\n return rc ;\n }"}
{"idx": 12026, "target": 0, "func": "TEST_F ( SyncBookmarkDataTypeControllerTest , StartBusy ) {\n CreateBookmarkModel ( LOAD_MODEL ) ;\n EXPECT_CALL ( * history_service_ . get ( ) , BackendLoaded ( ) ) . WillRepeatedly ( Return ( false ) ) ;\n EXPECT_CALL ( model_load_callback_ , Run ( _ , _ ) ) ;\n bookmark_dtc_ -> LoadModels ( base : : Bind ( & ModelLoadCallbackMock : : Run , base : : Unretained ( & model_load_callback_ ) ) ) ;\n bookmark_dtc_ -> LoadModels ( base : : Bind ( & ModelLoadCallbackMock : : Run , base : : Unretained ( & model_load_callback_ ) ) ) ;\n }"}
{"idx": 12027, "target": 0, "func": "void var_set ( const char * var_name , const char * var_name_end , const char * var_val , const char * var_val_end ) {\n int digit , env_var = 0 ;\n VAR * v ;\n DBUG_ENTER ( \"var_set\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"var_name: '%.*s' = '%.*s' (length: %d)\" , ( int ) ( var_name_end - var_name ) , var_name , ( int ) ( var_val_end - var_val ) , var_val , ( int ) ( var_val_end - var_val ) ) ) ;\n if ( * var_name != '$' ) env_var = 1 ;\n else var_name ++ ;\n digit = * var_name - '0' ;\n if ( ! ( digit < 10 && digit >= 0 ) ) {\n v = var_obtain ( var_name , ( uint ) ( var_name_end - var_name ) ) ;\n }\n else v = var_reg + digit ;\n eval_expr ( v , var_val , ( const char * * ) & var_val_end ) ;\n if ( env_var ) {\n if ( v -> int_dirty ) {\n sprintf ( v -> str_val , \"%d\" , v -> int_val ) ;\n v -> int_dirty = false ;\n v -> str_val_len = strlen ( v -> str_val ) ;\n }\n DBUG_ASSERT ( v -> name [ v -> name_len ] == 0 ) ;\n setenv ( v -> name , v -> str_val , 1 ) ;\n }\n DBUG_VOID_RETURN ;\n }"}
{"idx": 12028, "target": 0, "func": "void remoteDispatchGenericError ( remote_error * rerr ) {\n remoteDispatchStringError ( rerr , VIR_ERR_INTERNAL_ERROR , \"library function returned error but did not set virterror\" ) ;\n }"}
{"idx": 12029, "target": 0, "func": "TEST_F ( TemplateURLTest , ReplaceAssistedQueryStats ) {\n struct TestData {\n const base : : string16 search_term ;\n const std : : string aqs ;\n const std : : string base_url ;\n const std : : string url ;\n const std : : string expected_result ;\n }\n test_data [ ] = {\n {\n ASCIIToUTF16 ( \"foo\" ) , \"chrome.0.0l6\" , \"http://foo/\" , \"{\ngoogle:baseURL}\n?{\nsearchTerms}\n{\ngoogle:assistedQueryStats}\n\" , \"http://foo/?foo\" }\n , {\n ASCIIToUTF16 ( \"foo\" ) , \"chrome.0.0l6\" , \"https://foo/\" , \"{\ngoogle:baseURL}\n?{\nsearchTerms}\n{\ngoogle:assistedQueryStats}\n\" , \"https://foo/?fooaqs=chrome.0.0l6&\" }\n , {\n ASCIIToUTF16 ( \"foo\" ) , \"\" , \"https://foo/\" , \"{\ngoogle:baseURL}\n?{\nsearchTerms}\n{\ngoogle:assistedQueryStats}\n\" , \"https://foo/?foo\" }\n , {\n ASCIIToUTF16 ( \"foo\" ) , \"chrome.0.0l6\" , \"http://www.google.com\" , \"http://foo?{\nsearchTerms}\n{\ngoogle:assistedQueryStats}\n\" , \"http://foo/?foo\" }\n , {\n ASCIIToUTF16 ( \"foo\" ) , \"chrome.0.0l6\" , \"https://www.google.com\" , \"https://foo?{\nsearchTerms}\n{\ngoogle:assistedQueryStats}\n\" , \"https://foo/?fooaqs=chrome.0.0l6&\" }\n , }\n ;\n TemplateURLData data ;\n data . input_encodings . push_back ( \"UTF-8\" ) ;\n for ( size_t i = 0 ;\n i < arraysize ( test_data ) ;\n ++ i ) {\n data . SetURL ( test_data [ i ] . url ) ;\n TemplateURL url ( data ) ;\n EXPECT_TRUE ( url . url_ref ( ) . IsValid ( search_terms_data_ ) ) ;\n ASSERT_TRUE ( url . url_ref ( ) . SupportsReplacement ( search_terms_data_ ) ) ;\n TemplateURLRef : : SearchTermsArgs search_terms_args ( test_data [ i ] . search_term ) ;\n search_terms_args . assisted_query_stats = test_data [ i ] . aqs ;\n search_terms_data_ . set_google_base_url ( test_data [ i ] . base_url ) ;\n GURL result ( url . url_ref ( ) . ReplaceSearchTerms ( search_terms_args , search_terms_data_ ) ) ;\n ASSERT_TRUE ( result . is_valid ( ) ) ;\n EXPECT_EQ ( test_data [ i ] . expected_result , result . spec ( ) ) ;\n }\n }"}
{"idx": 12030, "target": 0, "func": "static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 12031, "target": 0, "func": "static guint32 dissect_netb_session_init ( tvbuff_t * tvb , packet_info * pinfo _U_ , int offset , proto_tree * tree ) {\n netbios_add_session_init_flags ( tvb , tree , offset + NB_FLAGS ) ;\n nb_data2 ( hf_netb_max_data_recv_size , tvb , offset , tree ) ;\n nb_resp_corrl ( tvb , offset , tree ) ;\n nb_xmit_corrl ( tvb , offset , tree ) ;\n nb_remote_session ( tvb , offset , tree ) ;\n nb_local_session ( tvb , offset , tree ) ;\n return 0 ;\n }"}
{"idx": 12032, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( DownloadNotificationTest , DISABLED_DiscardDangerousFile ) {\n GURL download_url ( embedded_test_server ( ) -> GetURL ( \"/downloads/dangerous/dangerous.swf\" ) ) ;\n content : : DownloadTestObserverTerminal download_terminal_observer ( GetDownloadManager ( browser ( ) ) , 1u , content : : DownloadTestObserver : : ON_DANGEROUS_DOWNLOAD_IGNORE ) ;\n CreateDownloadForBrowserAndURL ( browser ( ) , download_url ) ;\n base : : FilePath filename = download_item ( ) -> GetFileNameToReportUser ( ) ;\n EXPECT_EQ ( download : : DOWNLOAD_DANGER_TYPE_DANGEROUS_FILE , download_item ( ) -> GetDangerType ( ) ) ;\n EXPECT_TRUE ( download_item ( ) -> IsDangerous ( ) ) ;\n EXPECT_TRUE ( notification ( ) ) ;\n display_service_ -> SimulateClick ( NotificationHandler : : Type : : TRANSIENT , notification_id ( ) , 0 , base : : nullopt ) ;\n EXPECT_FALSE ( notification ( ) ) ;\n download_terminal_observer . WaitForFinished ( ) ;\n EXPECT_FALSE ( notification ( ) ) ;\n EXPECT_EQ ( 0u , GetDownloadNotifications ( ) . size ( ) ) ;\n std : : vector < download : : DownloadItem * > downloads ;\n GetDownloadManager ( browser ( ) ) -> GetAllDownloads ( & downloads ) ;\n EXPECT_EQ ( 0u , downloads . size ( ) ) ;\n EXPECT_FALSE ( base : : PathExists ( GetDownloadPath ( ) . Append ( filename . BaseName ( ) ) ) ) ;\n }"}
{"idx": 12033, "target": 0, "func": "gcry_error_t gcry_sexp_create ( gcry_sexp_t * retsexp , void * buffer , size_t length , int autodetect , void ( * freefnc ) ( void * ) ) {\n gcry_error_t errcode ;\n gcry_sexp_t se ;\n if ( ! retsexp ) return gcry_error ( GPG_ERR_INV_ARG ) ;\n * retsexp = NULL ;\n if ( autodetect < 0 || autodetect > 1 || ! buffer ) return gcry_error ( GPG_ERR_INV_ARG ) ;\n if ( ! length && ! autodetect ) {\n length = gcry_sexp_canon_len ( buffer , 0 , NULL , & errcode ) ;\n if ( ! length ) return errcode ;\n }\n else if ( ! length && autodetect ) {\n length = strlen ( ( char * ) buffer ) ;\n }\n errcode = sexp_sscan ( & se , NULL , buffer , length , 0 , NULL ) ;\n if ( errcode ) return errcode ;\n * retsexp = se ;\n if ( freefnc ) {\n freefnc ( buffer ) ;\n }\n return gcry_error ( GPG_ERR_NO_ERROR ) ;\n }"}
{"idx": 12034, "target": 0, "func": "void vp9_init_second_pass_spatial_svc ( VP9_COMP * cpi ) {\n SVC * const svc = & cpi -> svc ;\n int i ;\n for ( i = 0 ;\n i < svc -> number_spatial_layers ;\n ++ i ) {\n TWO_PASS * const twopass = & svc -> layer_context [ i ] . twopass ;\n svc -> spatial_layer_id = i ;\n vp9_init_second_pass ( cpi ) ;\n twopass -> total_stats . spatial_layer_id = i ;\n twopass -> total_left_stats . spatial_layer_id = i ;\n }\n svc -> spatial_layer_id = 0 ;\n }"}
{"idx": 12035, "target": 0, "func": "void hb_font_funcs_make_immutable ( hb_font_funcs_t * ffuncs ) {\n if ( unlikely ( hb_object_is_inert ( ffuncs ) ) ) return ;\n ffuncs -> immutable = true ;\n }"}
{"idx": 12036, "target": 0, "func": "uint32_t kvm_arch_get_supported_cpuid ( KVMState * s , uint32_t function , uint32_t index , int reg ) {\n struct kvm_cpuid2 * cpuid ;\n uint32_t ret = 0 ;\n uint32_t cpuid_1_edx ;\n bool found = false ;\n cpuid = get_supported_cpuid ( s ) ;\n struct kvm_cpuid_entry2 * entry = cpuid_find_entry ( cpuid , function , index ) ;\n if ( entry ) {\n found = true ;\n ret = cpuid_entry_get_reg ( entry , reg ) ;\n }\n if ( function == 1 && reg == R_EDX ) {\n ret |= CPUID_MTRR | CPUID_PAT | CPUID_MCE | CPUID_MCA ;\n }\n else if ( function == 1 && reg == R_ECX ) {\n ret |= CPUID_EXT_HYPERVISOR ;\n if ( kvm_irqchip_in_kernel ( ) && kvm_check_extension ( s , KVM_CAP_TSC_DEADLINE_TIMER ) ) {\n ret |= CPUID_EXT_TSC_DEADLINE_TIMER ;\n }\n if ( ! kvm_irqchip_in_kernel ( ) ) {\n ret &= ~ CPUID_EXT_X2APIC ;\n }\n }\n else if ( function == 6 && reg == R_EAX ) {\n ret |= CPUID_6_EAX_ARAT ;\n }\n else if ( function == 7 && index == 0 && reg == R_EBX ) {\n if ( host_tsx_blacklisted ( ) ) {\n ret &= ~ ( CPUID_7_0_EBX_RTM | CPUID_7_0_EBX_HLE ) ;\n }\n }\n else if ( function == 0x80000001 && reg == R_EDX ) {\n cpuid_1_edx = kvm_arch_get_supported_cpuid ( s , 1 , 0 , R_EDX ) ;\n ret |= cpuid_1_edx & CPUID_EXT2_AMD_ALIASES ;\n }\n else if ( function == KVM_CPUID_FEATURES && reg == R_EAX ) {\n if ( ! kvm_irqchip_in_kernel ( ) ) {\n ret &= ~ ( 1U << KVM_FEATURE_PV_UNHALT ) ;\n }\n }\n else if ( function == KVM_CPUID_FEATURES && reg == R_EDX ) {\n ret |= KVM_HINTS_DEDICATED ;\n found = 1 ;\n }\n if ( ( function == KVM_CPUID_FEATURES ) && ! found ) {\n ret = get_para_features ( s ) ;\n }\n return ret ;\n }"}
{"idx": 12037, "target": 1, "func": "static hb_glyph_info_t * glyph_info_reference ( hb_glyph_info_t * g ) {\n hb_glyph_info_t * c = ( hb_glyph_info_t * ) calloc ( 1 , sizeof ( hb_glyph_info_t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * g ;\n return c ;\n }"}
{"idx": 12038, "target": 0, "func": "unsigned int vp9_sad ## m ## x ## n ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride ) {\n return sad ( src , src_stride , ref , ref_stride , m , n ) ;\n \\ }\n 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 ) {\n uint8_t comp_pred [ m * n ] ;\n vp9_comp_avg_pred ( comp_pred , second_pred , m , n , ref , ref_stride ) ;\n return sad ( src , src_stride , comp_pred , m , m , n ) ;\n \\ }\n # define sadMxNxK ( m , n , k ) void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 )"}
{"idx": 12039, "target": 0, "func": "static Datum ExecEvalCoerceToDomainValue ( ExprState * exprstate , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n if ( isDone ) * isDone = ExprSingleResult ;\n * isNull = econtext -> domainValue_isNull ;\n return econtext -> domainValue_datum ;\n }"}
{"idx": 12040, "target": 0, "func": "static void qtrle_decode_16bpp ( QtrleContext * s , int row_ptr , int lines_to_change ) {\n int rle_code ;\n int pixel_ptr ;\n int row_inc = s -> frame . linesize [ 0 ] ;\n unsigned short rgb16 ;\n unsigned char * rgb = s -> frame . data [ 0 ] ;\n int pixel_limit = s -> frame . linesize [ 0 ] * s -> avctx -> height ;\n while ( lines_to_change -- ) {\n pixel_ptr = row_ptr + ( bytestream2_get_byte ( & s -> g ) - 1 ) * 2 ;\n CHECK_PIXEL_PTR ( 0 ) ;\n while ( ( rle_code = ( signed char ) bytestream2_get_byte ( & s -> g ) ) != - 1 ) {\n if ( rle_code == 0 ) {\n pixel_ptr += ( bytestream2_get_byte ( & s -> g ) - 1 ) * 2 ;\n CHECK_PIXEL_PTR ( 0 ) ;\n }\n else if ( rle_code < 0 ) {\n rle_code = - rle_code ;\n rgb16 = bytestream2_get_be16 ( & s -> g ) ;\n CHECK_PIXEL_PTR ( rle_code * 2 ) ;\n while ( rle_code -- ) {\n * ( unsigned short * ) ( & rgb [ pixel_ptr ] ) = rgb16 ;\n pixel_ptr += 2 ;\n }\n }\n else {\n CHECK_PIXEL_PTR ( rle_code * 2 ) ;\n while ( rle_code -- ) {\n rgb16 = bytestream2_get_be16 ( & s -> g ) ;\n * ( unsigned short * ) ( & rgb [ pixel_ptr ] ) = rgb16 ;\n pixel_ptr += 2 ;\n }\n }\n }\n row_ptr += row_inc ;\n }\n }"}
{"idx": 12041, "target": 0, "func": "static inline void SetPixelY ( const Image * restrict image , const Quantum y , Quantum * restrict pixel ) {\n pixel [ image -> channel_map [ YPixelChannel ] . offset ] = y ;\n }"}
{"idx": 12042, "target": 0, "func": "BusState * qdev_get_child_bus ( DeviceState * dev , const char * name ) {\n BusState * bus ;\n QLIST_FOREACH ( bus , & dev -> child_bus , sibling ) {\n if ( strcmp ( name , bus -> name ) == 0 ) {\n return bus ;\n }\n }\n return NULL ;\n }"}
{"idx": 12043, "target": 0, "func": "static int cinepak_decode_strip ( CinepakContext * s , cvid_strip * strip , const uint8_t * data , int size ) {\n const uint8_t * eod = ( data + size ) ;\n int chunk_id , chunk_size ;\n if ( strip -> x2 > s -> width || strip -> y2 > s -> height || strip -> x1 >= strip -> x2 || strip -> y1 >= strip -> y2 ) return AVERROR_INVALIDDATA ;\n while ( ( data + 4 ) <= eod ) {\n chunk_id = data [ 0 ] ;\n chunk_size = AV_RB24 ( & data [ 1 ] ) - 4 ;\n if ( chunk_size < 0 ) return AVERROR_INVALIDDATA ;\n data += 4 ;\n chunk_size = ( ( data + chunk_size ) > eod ) ? ( eod - data ) : chunk_size ;\n switch ( chunk_id ) {\n case 0x20 : case 0x21 : case 0x24 : case 0x25 : cinepak_decode_codebook ( strip -> v4_codebook , chunk_id , chunk_size , data ) ;\n break ;\n case 0x22 : case 0x23 : case 0x26 : case 0x27 : cinepak_decode_codebook ( strip -> v1_codebook , chunk_id , chunk_size , data ) ;\n break ;\n case 0x30 : case 0x31 : case 0x32 : return cinepak_decode_vectors ( s , strip , chunk_id , chunk_size , data ) ;\n }\n data += chunk_size ;\n }\n return AVERROR_INVALIDDATA ;\n }"}
{"idx": 12044, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ChooserDialogViewTest , Cancel ) {\n EXPECT_CALL ( * mock_chooser_controller_ , Cancel ( ) ) . Times ( 1 ) ;\n chooser_dialog_view_ -> Cancel ( ) ;\n }"}
{"idx": 12045, "target": 0, "func": "static void * deconst ( const void * c ) {\n return ( char * ) 0x1 + ( ( ( const char * ) c ) - ( const char * ) 0x1 ) ;\n }"}
{"idx": 12046, "target": 0, "func": "static void backward_filter ( RA288Context * ractx , float * hist , float * rec , const float * window , float * lpc , const float * tab , int order , int n , int non_rec , int move_size ) {\n float temp [ MAX_BACKWARD_FILTER_ORDER + 1 ] ;\n do_hybrid_window ( ractx , order , n , non_rec , temp , hist , rec , window ) ;\n if ( ! compute_lpc_coefs ( temp , order , lpc , 0 , 1 , 1 ) ) ractx -> fdsp . vector_fmul ( lpc , lpc , tab , FFALIGN ( order , 16 ) ) ;\n memmove ( hist , hist + n , move_size * sizeof ( * hist ) ) ;\n }"}
{"idx": 12047, "target": 0, "func": "static void par_list_header_init ( TocEntry * l ) {\n l -> par_prev = l -> par_next = l ;\n }"}
{"idx": 12048, "target": 0, "func": "static struct archive_string_conv * find_sconv_object ( struct archive * a , const char * fc , const char * tc ) {\n struct archive_string_conv * sc ;\n if ( a == NULL ) return ( NULL ) ;\n for ( sc = a -> sconv ;\n sc != NULL ;\n sc = sc -> next ) {\n if ( strcmp ( sc -> from_charset , fc ) == 0 && strcmp ( sc -> to_charset , tc ) == 0 ) break ;\n }\n return ( sc ) ;\n }"}
{"idx": 12049, "target": 0, "func": "static void pdf_keep_gstate ( fz_context * ctx , pdf_gstate * gs ) {\n pdf_keep_material ( ctx , & gs -> stroke ) ;\n pdf_keep_material ( ctx , & gs -> fill ) ;\n if ( gs -> text . font ) pdf_keep_font ( ctx , gs -> text . font ) ;\n if ( gs -> softmask ) pdf_keep_xobject ( ctx , gs -> softmask ) ;\n if ( gs -> softmask_resources ) pdf_keep_obj ( ctx , gs -> softmask_resources ) ;\n fz_keep_stroke_state ( ctx , gs -> stroke_state ) ;\n }"}
{"idx": 12050, "target": 0, "func": "int y4m_input_open ( y4m_input * _y4m , FILE * _fin , char * _skip , int _nskip , int only_420 ) {\n char buffer [ 80 ] = {\n 0 }\n ;\n int ret ;\n int i ;\n for ( i = 0 ;\n i < 79 ;\n i ++ ) {\n if ( _nskip > 0 ) {\n buffer [ i ] = * _skip ++ ;\n _nskip -- ;\n }\n else {\n if ( ! file_read ( buffer + i , 1 , _fin ) ) return - 1 ;\n }\n if ( buffer [ i ] == '\\n' ) break ;\n }\n if ( _nskip > 0 ) return - 1 ;\n if ( i == 79 ) {\n fprintf ( stderr , \"Error parsing header;\n not a YUV2MPEG2 file?\\n\" ) ;\n return - 1 ;\n }\n buffer [ i ] = '\\0' ;\n if ( memcmp ( buffer , \"YUV4MPEG\" , 8 ) ) {\n fprintf ( stderr , \"Incomplete magic for YUV4MPEG file.\\n\" ) ;\n return - 1 ;\n }\n if ( buffer [ 8 ] != '2' ) {\n fprintf ( stderr , \"Incorrect YUV input file version;\n YUV4MPEG2 required.\\n\" ) ;\n }\n ret = y4m_parse_tags ( _y4m , buffer + 5 ) ;\n if ( ret < 0 ) {\n fprintf ( stderr , \"Error parsing YUV4MPEG2 header.\\n\" ) ;\n return ret ;\n }\n if ( _y4m -> interlace == '?' ) {\n fprintf ( stderr , \"Warning: Input video interlacing format unknown;\n \" \"assuming progressive scan.\\n\" ) ;\n }\n else if ( _y4m -> interlace != 'p' ) {\n fprintf ( stderr , \"Input video is interlaced;\n \" \"Only progressive scan handled.\\n\" ) ;\n return - 1 ;\n }\n _y4m -> vpx_fmt = VPX_IMG_FMT_I420 ;\n _y4m -> bps = 12 ;\n _y4m -> bit_depth = 8 ;\n if ( strcmp ( _y4m -> chroma_type , \"420\" ) == 0 || strcmp ( _y4m -> chroma_type , \"420jpeg\" ) == 0 ) {\n _y4m -> src_c_dec_h = _y4m -> dst_c_dec_h = _y4m -> src_c_dec_v = _y4m -> dst_c_dec_v = 2 ;\n _y4m -> dst_buf_read_sz = _y4m -> pic_w * _y4m -> pic_h + 2 * ( ( _y4m -> pic_w + 1 ) / 2 ) * ( ( _y4m -> pic_h + 1 ) / 2 ) ;\n _y4m -> aux_buf_sz = _y4m -> aux_buf_read_sz = 0 ;\n _y4m -> convert = y4m_convert_null ;\n }\n else if ( strcmp ( _y4m -> chroma_type , \"420p10\" ) == 0 ) {\n _y4m -> src_c_dec_h = 2 ;\n _y4m -> dst_c_dec_h = 2 ;\n _y4m -> src_c_dec_v = 2 ;\n _y4m -> dst_c_dec_v = 2 ;\n _y4m -> dst_buf_read_sz = 2 * ( _y4m -> pic_w * _y4m -> pic_h + * ( ( _y4m -> pic_w + 1 ) / 2 ) * ( ( _y4m -> pic_h + 1 ) / 2 ) ) ;\n _y4m -> aux_buf_sz = _y4m -> aux_buf_read_sz = 0 ;\n _y4m -> convert = y4m_convert_null ;\n _y4m -> bit_depth = 10 ;\n _y4m -> bps = 15 ;\n _y4m -> vpx_fmt = VPX_IMG_FMT_I42016 ;\n if ( only_420 ) {\n fprintf ( stderr , \"Unsupported conversion from 420p10 to 420jpeg\\n\" ) ;\n return - 1 ;\n }\n }\n else if ( strcmp ( _y4m -> chroma_type , \"420p12\" ) == 0 ) {\n _y4m -> src_c_dec_h = 2 ;\n _y4m -> dst_c_dec_h = 2 ;\n _y4m -> src_c_dec_v = 2 ;\n _y4m -> dst_c_dec_v = 2 ;\n _y4m -> dst_buf_read_sz = 2 * ( _y4m -> pic_w * _y4m -> pic_h + * ( ( _y4m -> pic_w + 1 ) / 2 ) * ( ( _y4m -> pic_h + 1 ) / 2 ) ) ;\n _y4m -> aux_buf_sz = _y4m -> aux_buf_read_sz = 0 ;\n _y4m -> convert = y4m_convert_null ;\n _y4m -> bit_depth = 12 ;\n _y4m -> bps = 18 ;\n _y4m -> vpx_fmt = VPX_IMG_FMT_I42016 ;\n if ( only_420 ) {\n fprintf ( stderr , \"Unsupported conversion from 420p12 to 420jpeg\\n\" ) ;\n return - 1 ;\n }\n }\n else if ( strcmp ( _y4m -> chroma_type , \"420mpeg2\" ) == 0 ) {\n _y4m -> src_c_dec_h = _y4m -> dst_c_dec_h = _y4m -> src_c_dec_v = _y4m -> dst_c_dec_v = 2 ;\n _y4m -> dst_buf_read_sz = _y4m -> pic_w * _y4m -> pic_h ;\n _y4m -> aux_buf_sz = _y4m -> aux_buf_read_sz = * ( ( _y4m -> pic_w + 1 ) / 2 ) * ( ( _y4m -> pic_h + 1 ) / 2 ) ;\n _y4m -> convert = y4m_convert_42xmpeg2_42xjpeg ;\n }\n else if ( strcmp ( _y4m -> chroma_type , \"420paldv\" ) == 0 ) {\n _y4m -> src_c_dec_h = _y4m -> dst_c_dec_h = _y4m -> src_c_dec_v = _y4m -> dst_c_dec_v = 2 ;\n _y4m -> dst_buf_read_sz = _y4m -> pic_w * _y4m -> pic_h ;\n _y4m -> aux_buf_sz = 3 * ( ( _y4m -> pic_w + 1 ) / 2 ) * ( ( _y4m -> pic_h + 1 ) / 2 ) ;\n _y4m -> aux_buf_read_sz = 2 * ( ( _y4m -> pic_w + 1 ) / 2 ) * ( ( _y4m -> pic_h + 1 ) / 2 ) ;\n _y4m -> convert = y4m_convert_42xpaldv_42xjpeg ;\n }\n else if ( strcmp ( _y4m -> chroma_type , \"422jpeg\" ) == 0 ) {\n _y4m -> src_c_dec_h = _y4m -> dst_c_dec_h = 2 ;\n _y4m -> src_c_dec_v = 1 ;\n _y4m -> dst_c_dec_v = 2 ;\n _y4m -> dst_buf_read_sz = _y4m -> pic_w * _y4m -> pic_h ;\n _y4m -> aux_buf_sz = _y4m -> aux_buf_read_sz = 2 * ( ( _y4m -> pic_w + 1 ) / 2 ) * _y4m -> pic_h ;\n _y4m -> convert = y4m_convert_422jpeg_420jpeg ;\n }\n else if ( strcmp ( _y4m -> chroma_type , \"422\" ) == 0 ) {\n _y4m -> src_c_dec_h = 2 ;\n _y4m -> src_c_dec_v = 1 ;\n if ( only_420 ) {\n _y4m -> dst_c_dec_h = 2 ;\n _y4m -> dst_c_dec_v = 2 ;\n _y4m -> dst_buf_read_sz = _y4m -> pic_w * _y4m -> pic_h ;\n _y4m -> aux_buf_read_sz = 2 * ( ( _y4m -> pic_w + 1 ) / 2 ) * _y4m -> pic_h ;\n _y4m -> aux_buf_sz = _y4m -> aux_buf_read_sz + ( ( _y4m -> pic_w + 1 ) / 2 ) * _y4m -> pic_h ;\n _y4m -> convert = y4m_convert_422_420jpeg ;\n }\n else {\n _y4m -> vpx_fmt = VPX_IMG_FMT_I422 ;\n _y4m -> bps = 16 ;\n _y4m -> dst_c_dec_h = _y4m -> src_c_dec_h ;\n _y4m -> dst_c_dec_v = _y4m -> src_c_dec_v ;\n _y4m -> dst_buf_read_sz = _y4m -> pic_w * _y4m -> pic_h + 2 * ( ( _y4m -> pic_w + 1 ) / 2 ) * _y4m -> pic_h ;\n _y4m -> aux_buf_sz = _y4m -> aux_buf_read_sz = 0 ;\n _y4m -> convert = y4m_convert_null ;\n }\n }\n else if ( strcmp ( _y4m -> chroma_type , \"422p10\" ) == 0 ) {\n _y4m -> src_c_dec_h = 2 ;\n _y4m -> src_c_dec_v = 1 ;\n _y4m -> vpx_fmt = VPX_IMG_FMT_I42216 ;\n _y4m -> bps = 20 ;\n _y4m -> bit_depth = 10 ;\n _y4m -> dst_c_dec_h = _y4m -> src_c_dec_h ;\n _y4m -> dst_c_dec_v = _y4m -> src_c_dec_v ;\n _y4m -> dst_buf_read_sz = 2 * ( _y4m -> pic_w * _y4m -> pic_h + * ( ( _y4m -> pic_w + 1 ) / 2 ) * _y4m -> pic_h ) ;\n _y4m -> aux_buf_sz = _y4m -> aux_buf_read_sz = 0 ;\n _y4m -> convert = y4m_convert_null ;\n if ( only_420 ) {\n fprintf ( stderr , \"Unsupported conversion from 422p10 to 420jpeg\\n\" ) ;\n return - 1 ;\n }\n }\n else if ( strcmp ( _y4m -> chroma_type , \"422p12\" ) == 0 ) {\n _y4m -> src_c_dec_h = 2 ;\n _y4m -> src_c_dec_v = 1 ;\n _y4m -> vpx_fmt = VPX_IMG_FMT_I42216 ;\n _y4m -> bps = 24 ;\n _y4m -> bit_depth = 12 ;\n _y4m -> dst_c_dec_h = _y4m -> src_c_dec_h ;\n _y4m -> dst_c_dec_v = _y4m -> src_c_dec_v ;\n _y4m -> dst_buf_read_sz = 2 * ( _y4m -> pic_w * _y4m -> pic_h + * ( ( _y4m -> pic_w + 1 ) / 2 ) * _y4m -> pic_h ) ;\n _y4m -> aux_buf_sz = _y4m -> aux_buf_read_sz = 0 ;\n _y4m -> convert = y4m_convert_null ;\n if ( only_420 ) {\n fprintf ( stderr , \"Unsupported conversion from 422p12 to 420jpeg\\n\" ) ;\n return - 1 ;\n }\n }\n else if ( strcmp ( _y4m -> chroma_type , \"411\" ) == 0 ) {\n _y4m -> src_c_dec_h = 4 ;\n _y4m -> dst_c_dec_h = 2 ;\n _y4m -> src_c_dec_v = 1 ;\n _y4m -> dst_c_dec_v = 2 ;\n _y4m -> dst_buf_read_sz = _y4m -> pic_w * _y4m -> pic_h ;\n _y4m -> aux_buf_read_sz = 2 * ( ( _y4m -> pic_w + 3 ) / 4 ) * _y4m -> pic_h ;\n _y4m -> aux_buf_sz = _y4m -> aux_buf_read_sz + ( ( _y4m -> pic_w + 1 ) / 2 ) * _y4m -> pic_h ;\n _y4m -> convert = y4m_convert_411_420jpeg ;\n }\n else if ( strcmp ( _y4m -> chroma_type , \"444\" ) == 0 ) {\n _y4m -> src_c_dec_h = 1 ;\n _y4m -> src_c_dec_v = 1 ;\n if ( only_420 ) {\n _y4m -> dst_c_dec_h = 2 ;\n _y4m -> dst_c_dec_v = 2 ;\n _y4m -> dst_buf_read_sz = _y4m -> pic_w * _y4m -> pic_h ;\n _y4m -> aux_buf_read_sz = 2 * _y4m -> pic_w * _y4m -> pic_h ;\n _y4m -> aux_buf_sz = _y4m -> aux_buf_read_sz + ( ( _y4m -> pic_w + 1 ) / 2 ) * _y4m -> pic_h ;\n _y4m -> convert = y4m_convert_444_420jpeg ;\n }\n else {\n _y4m -> vpx_fmt = VPX_IMG_FMT_I444 ;\n _y4m -> bps = 24 ;\n _y4m -> dst_c_dec_h = _y4m -> src_c_dec_h ;\n _y4m -> dst_c_dec_v = _y4m -> src_c_dec_v ;\n _y4m -> dst_buf_read_sz = 3 * _y4m -> pic_w * _y4m -> pic_h ;\n _y4m -> aux_buf_sz = _y4m -> aux_buf_read_sz = 0 ;\n _y4m -> convert = y4m_convert_null ;\n }\n }\n else if ( strcmp ( _y4m -> chroma_type , \"444p10\" ) == 0 ) {\n _y4m -> src_c_dec_h = 1 ;\n _y4m -> src_c_dec_v = 1 ;\n _y4m -> vpx_fmt = VPX_IMG_FMT_I44416 ;\n _y4m -> bps = 30 ;\n _y4m -> bit_depth = 10 ;\n _y4m -> dst_c_dec_h = _y4m -> src_c_dec_h ;\n _y4m -> dst_c_dec_v = _y4m -> src_c_dec_v ;\n _y4m -> dst_buf_read_sz = 2 * 3 * _y4m -> pic_w * _y4m -> pic_h ;\n _y4m -> aux_buf_sz = _y4m -> aux_buf_read_sz = 0 ;\n _y4m -> convert = y4m_convert_null ;\n if ( only_420 ) {\n fprintf ( stderr , \"Unsupported conversion from 444p10 to 420jpeg\\n\" ) ;\n return - 1 ;\n }\n }\n else if ( strcmp ( _y4m -> chroma_type , \"444p12\" ) == 0 ) {\n _y4m -> src_c_dec_h = 1 ;\n _y4m -> src_c_dec_v = 1 ;\n _y4m -> vpx_fmt = VPX_IMG_FMT_I44416 ;\n _y4m -> bps = 36 ;\n _y4m -> bit_depth = 12 ;\n _y4m -> dst_c_dec_h = _y4m -> src_c_dec_h ;\n _y4m -> dst_c_dec_v = _y4m -> src_c_dec_v ;\n _y4m -> dst_buf_read_sz = 2 * 3 * _y4m -> pic_w * _y4m -> pic_h ;\n _y4m -> aux_buf_sz = _y4m -> aux_buf_read_sz = 0 ;\n _y4m -> convert = y4m_convert_null ;\n if ( only_420 ) {\n fprintf ( stderr , \"Unsupported conversion from 444p12 to 420jpeg\\n\" ) ;\n return - 1 ;\n }\n }\n else if ( strcmp ( _y4m -> chroma_type , \"444alpha\" ) == 0 ) {\n _y4m -> src_c_dec_h = 1 ;\n _y4m -> src_c_dec_v = 1 ;\n if ( only_420 ) {\n _y4m -> dst_c_dec_h = 2 ;\n _y4m -> dst_c_dec_v = 2 ;\n _y4m -> dst_buf_read_sz = _y4m -> pic_w * _y4m -> pic_h ;\n _y4m -> aux_buf_sz = _y4m -> aux_buf_read_sz = 3 * _y4m -> pic_w * _y4m -> pic_h ;\n _y4m -> convert = y4m_convert_444_420jpeg ;\n }\n else {\n _y4m -> vpx_fmt = VPX_IMG_FMT_444A ;\n _y4m -> bps = 32 ;\n _y4m -> dst_c_dec_h = _y4m -> src_c_dec_h ;\n _y4m -> dst_c_dec_v = _y4m -> src_c_dec_v ;\n _y4m -> dst_buf_read_sz = 4 * _y4m -> pic_w * _y4m -> pic_h ;\n _y4m -> aux_buf_sz = _y4m -> aux_buf_read_sz = 0 ;\n _y4m -> convert = y4m_convert_null ;\n }\n }\n else if ( strcmp ( _y4m -> chroma_type , \"mono\" ) == 0 ) {\n _y4m -> src_c_dec_h = _y4m -> src_c_dec_v = 0 ;\n _y4m -> dst_c_dec_h = _y4m -> dst_c_dec_v = 2 ;\n _y4m -> dst_buf_read_sz = _y4m -> pic_w * _y4m -> pic_h ;\n _y4m -> aux_buf_sz = _y4m -> aux_buf_read_sz = 0 ;\n _y4m -> convert = y4m_convert_mono_420jpeg ;\n }\n else {\n fprintf ( stderr , \"Unknown chroma sampling type: %s\\n\" , _y4m -> chroma_type ) ;\n return - 1 ;\n }\n _y4m -> dst_buf_sz = _y4m -> pic_w * _y4m -> pic_h + 2 * ( ( _y4m -> pic_w + _y4m -> dst_c_dec_h - 1 ) / _y4m -> dst_c_dec_h ) * ( ( _y4m -> pic_h + _y4m -> dst_c_dec_v - 1 ) / _y4m -> dst_c_dec_v ) ;\n if ( _y4m -> bit_depth == 8 ) _y4m -> dst_buf = ( unsigned char * ) malloc ( _y4m -> dst_buf_sz ) ;\n else _y4m -> dst_buf = ( unsigned char * ) malloc ( 2 * _y4m -> dst_buf_sz ) ;\n if ( _y4m -> aux_buf_sz > 0 ) _y4m -> aux_buf = ( unsigned char * ) malloc ( _y4m -> aux_buf_sz ) ;\n return 0 ;\n }"}
{"idx": 12051, "target": 0, "func": "static unsigned int usbdev_poll ( struct file * file , struct poll_table_struct * wait ) {\n struct usb_dev_state * ps = file -> private_data ;\n unsigned int mask = 0 ;\n poll_wait ( file , & ps -> wait , wait ) ;\n if ( file -> f_mode & FMODE_WRITE && ! list_empty ( & ps -> async_completed ) ) mask |= POLLOUT | POLLWRNORM ;\n if ( ! connected ( ps ) ) mask |= POLLERR | POLLHUP ;\n return mask ;\n }"}
{"idx": 12052, "target": 0, "func": "static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 12053, "target": 0, "func": "static struct sock * __raw_v6_lookup ( struct net * net , struct sock * sk , unsigned short num , struct in6_addr * loc_addr , struct in6_addr * rmt_addr , int dif ) {\n struct hlist_node * node ;\n int is_multicast = ipv6_addr_is_multicast ( loc_addr ) ;\n sk_for_each_from ( sk , node ) if ( inet_sk ( sk ) -> inet_num == num ) {\n struct ipv6_pinfo * np = inet6_sk ( sk ) ;\n if ( ! net_eq ( sock_net ( sk ) , net ) ) continue ;\n if ( ! ipv6_addr_any ( & np -> daddr ) && ! ipv6_addr_equal ( & np -> daddr , rmt_addr ) ) continue ;\n if ( sk -> sk_bound_dev_if && sk -> sk_bound_dev_if != dif ) continue ;\n if ( ! ipv6_addr_any ( & np -> rcv_saddr ) ) {\n if ( ipv6_addr_equal ( & np -> rcv_saddr , loc_addr ) ) goto found ;\n if ( is_multicast && inet6_mc_check ( sk , loc_addr , rmt_addr ) ) goto found ;\n continue ;\n }\n goto found ;\n }\n sk = NULL ;\n found : return sk ;\n }"}
{"idx": 12054, "target": 0, "func": "static void gx_ttfReader__Read ( ttfReader * self , void * p , int n ) {\n gx_ttfReader * r = ( gx_ttfReader * ) self ;\n const byte * q ;\n if ( ! r -> error ) {\n if ( r -> extra_glyph_index != - 1 ) {\n q = r -> glyph_data . bits . data + r -> pos ;\n r -> error = ( ( r -> pos >= r -> glyph_data . bits . size || r -> glyph_data . bits . size - r -> pos < n ) ? gs_note_error ( gs_error_invalidfont ) : 0 ) ;\n if ( r -> error == 0 ) memcpy ( p , q , n ) ;\n }\n else {\n unsigned int cnt ;\n for ( cnt = 0 ;\n cnt < ( uint ) n ;\n cnt += r -> error ) {\n r -> error = r -> pfont -> data . string_proc ( r -> pfont , ( ulong ) r -> pos + cnt , ( ulong ) n - cnt , & q ) ;\n if ( r -> error < 0 ) break ;\n else if ( r -> error == 0 ) {\n memcpy ( ( char * ) p + cnt , q , n - cnt ) ;\n break ;\n }\n else {\n memcpy ( ( char * ) p + cnt , q , r -> error ) ;\n }\n }\n }\n }\n if ( r -> error ) {\n memset ( p , 0 , n ) ;\n return ;\n }\n r -> pos += n ;\n }"}
{"idx": 12055, "target": 0, "func": "static int dissect_h225_CapacityReportingSpecification_when ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_CapacityReportingSpecification_when , CapacityReportingSpecification_when_sequence ) ;\n return offset ;\n }"}
{"idx": 12056, "target": 0, "func": "CURLcode Curl_urldecode ( struct Curl_easy * data , const char * string , size_t length , char * * ostring , size_t * olen , bool reject_ctrl ) {\n size_t alloc = ( length ? length : strlen ( string ) ) + 1 ;\n char * ns = malloc ( alloc ) ;\n unsigned char in ;\n size_t strindex = 0 ;\n unsigned long hex ;\n CURLcode result ;\n if ( ! ns ) return CURLE_OUT_OF_MEMORY ;\n while ( -- alloc > 0 ) {\n in = * string ;\n if ( ( '%' == in ) && ( alloc > 2 ) && ISXDIGIT ( string [ 1 ] ) && ISXDIGIT ( string [ 2 ] ) ) {\n char hexstr [ 3 ] ;\n char * ptr ;\n hexstr [ 0 ] = string [ 1 ] ;\n hexstr [ 1 ] = string [ 2 ] ;\n hexstr [ 2 ] = 0 ;\n hex = strtoul ( hexstr , & ptr , 16 ) ;\n in = curlx_ultouc ( hex ) ;\n result = Curl_convert_from_network ( data , & in , 1 ) ;\n if ( result ) {\n free ( ns ) ;\n return result ;\n }\n string += 2 ;\n alloc -= 2 ;\n }\n if ( reject_ctrl && ( in < 0x20 ) ) {\n free ( ns ) ;\n return CURLE_URL_MALFORMAT ;\n }\n ns [ strindex ++ ] = in ;\n string ++ ;\n }\n ns [ strindex ] = 0 ;\n if ( olen ) * olen = strindex ;\n * ostring = ns ;\n return CURLE_OK ;\n }"}
{"idx": 12057, "target": 0, "func": "static void _slurm_rpc_job_step_kill ( uint32_t uid , slurm_msg_t * msg ) {\n static int active_rpc_cnt = 0 ;\n int error_code = SLURM_SUCCESS ;\n job_step_kill_msg_t * job_step_kill_msg = ( job_step_kill_msg_t * ) msg -> data ;\n if ( slurmctld_conf . debug_flags & DEBUG_FLAG_STEPS ) {\n info ( \"Processing RPC: REQUEST_CANCEL_JOB_STEP %u.%u uid=%u\" , job_step_kill_msg -> job_id , job_step_kill_msg -> job_step_id , uid ) ;\n }\n _throttle_start ( & active_rpc_cnt ) ;\n error_code = kill_job_step ( job_step_kill_msg , uid ) ;\n _throttle_fini ( & active_rpc_cnt ) ;\n slurm_send_rc_msg ( msg , error_code ) ;\n }"}
{"idx": 12058, "target": 0, "func": "static void e1000e_set_tdt ( E1000ECore * core , int index , uint32_t val ) {\n E1000E_TxRing txr ;\n int qidx = e1000e_mq_queue_idx ( TDT , index ) ;\n uint32_t tarc_reg = ( qidx == 0 ) ? TARC0 : TARC1 ;\n core -> mac [ index ] = val & 0xffff ;\n if ( core -> mac [ tarc_reg ] & E1000_TARC_ENABLE ) {\n e1000e_tx_ring_init ( core , & txr , qidx ) ;\n e1000e_start_xmit ( core , & txr ) ;\n }\n }"}
{"idx": 12059, "target": 0, "func": "void TSVConnActiveTimeoutSet ( TSVConn connp , TSHRTime timeout ) {\n sdk_assert ( sdk_sanity_check_iocore_structure ( connp ) == TS_SUCCESS ) ;\n NetVConnection * vc = ( NetVConnection * ) connp ;\n vc -> set_active_timeout ( timeout ) ;\n }"}
{"idx": 12060, "target": 0, "func": "unsigned int vp8_sub_pixel_variance16x16_neon_func ( const unsigned char * src_ptr , int src_pixels_per_line , int xoffset , int yoffset , const unsigned char * dst_ptr , int dst_pixels_per_line , unsigned int * sse ) {\n int i ;\n DECLARE_ALIGNED_ARRAY ( 16 , unsigned char , tmp , 528 ) ;\n unsigned char * tmpp ;\n unsigned char * tmpp2 ;\n uint8x8_t d0u8 , d1u8 , d2u8 , d3u8 , d4u8 , d5u8 , d6u8 , d7u8 , d8u8 , d9u8 ;\n uint8x8_t d10u8 , d11u8 , d12u8 , d13u8 , d14u8 , d15u8 , d16u8 , d17u8 , d18u8 ;\n uint8x8_t d19u8 , d20u8 , d21u8 ;\n int16x4_t d22s16 , d23s16 , d24s16 , d25s16 , d26s16 , d27s16 , d28s16 , d29s16 ;\n uint32x2_t d0u32 , d10u32 ;\n int64x1_t d0s64 , d1s64 , d2s64 , d3s64 ;\n uint8x16_t q0u8 , q1u8 , q2u8 , q3u8 , q4u8 , q5u8 , q6u8 , q7u8 , q8u8 , q9u8 ;\n uint8x16_t q10u8 , q11u8 , q12u8 , q13u8 , q14u8 , q15u8 ;\n uint16x8_t q1u16 , q2u16 , q3u16 , q4u16 , q5u16 , q6u16 , q7u16 , q8u16 ;\n uint16x8_t q9u16 , q10u16 , q11u16 , q12u16 , q13u16 , q14u16 ;\n int32x4_t q8s32 , q9s32 , q10s32 ;\n int64x2_t q0s64 , q1s64 , q5s64 ;\n tmpp2 = tmp + 272 ;\n tmpp = tmp ;\n if ( xoffset == 0 ) {\n d0u8 = vdup_n_u8 ( bilinear_taps_coeff [ yoffset ] [ 0 ] ) ;\n d1u8 = vdup_n_u8 ( bilinear_taps_coeff [ yoffset ] [ 1 ] ) ;\n q11u8 = vld1q_u8 ( src_ptr ) ;\n src_ptr += src_pixels_per_line ;\n for ( i = 4 ;\n i > 0 ;\n i -- ) {\n q12u8 = vld1q_u8 ( src_ptr ) ;\n src_ptr += src_pixels_per_line ;\n q13u8 = vld1q_u8 ( src_ptr ) ;\n src_ptr += src_pixels_per_line ;\n q14u8 = vld1q_u8 ( src_ptr ) ;\n src_ptr += src_pixels_per_line ;\n q15u8 = vld1q_u8 ( src_ptr ) ;\n src_ptr += src_pixels_per_line ;\n __builtin_prefetch ( src_ptr ) ;\n __builtin_prefetch ( src_ptr + src_pixels_per_line ) ;\n __builtin_prefetch ( src_ptr + src_pixels_per_line * 2 ) ;\n q1u16 = vmull_u8 ( vget_low_u8 ( q11u8 ) , d0u8 ) ;\n q2u16 = vmull_u8 ( vget_high_u8 ( q11u8 ) , d0u8 ) ;\n q3u16 = vmull_u8 ( vget_low_u8 ( q12u8 ) , d0u8 ) ;\n q4u16 = vmull_u8 ( vget_high_u8 ( q12u8 ) , d0u8 ) ;\n q5u16 = vmull_u8 ( vget_low_u8 ( q13u8 ) , d0u8 ) ;\n q6u16 = vmull_u8 ( vget_high_u8 ( q13u8 ) , d0u8 ) ;\n q7u16 = vmull_u8 ( vget_low_u8 ( q14u8 ) , d0u8 ) ;\n q8u16 = vmull_u8 ( vget_high_u8 ( q14u8 ) , d0u8 ) ;\n q1u16 = vmlal_u8 ( q1u16 , vget_low_u8 ( q12u8 ) , d1u8 ) ;\n q2u16 = vmlal_u8 ( q2u16 , vget_high_u8 ( q12u8 ) , d1u8 ) ;\n q3u16 = vmlal_u8 ( q3u16 , vget_low_u8 ( q13u8 ) , d1u8 ) ;\n q4u16 = vmlal_u8 ( q4u16 , vget_high_u8 ( q13u8 ) , d1u8 ) ;\n q5u16 = vmlal_u8 ( q5u16 , vget_low_u8 ( q14u8 ) , d1u8 ) ;\n q6u16 = vmlal_u8 ( q6u16 , vget_high_u8 ( q14u8 ) , d1u8 ) ;\n q7u16 = vmlal_u8 ( q7u16 , vget_low_u8 ( q15u8 ) , d1u8 ) ;\n q8u16 = vmlal_u8 ( q8u16 , vget_high_u8 ( q15u8 ) , d1u8 ) ;\n d2u8 = vqrshrn_n_u16 ( q1u16 , 7 ) ;\n d3u8 = vqrshrn_n_u16 ( q2u16 , 7 ) ;\n d4u8 = vqrshrn_n_u16 ( q3u16 , 7 ) ;\n d5u8 = vqrshrn_n_u16 ( q4u16 , 7 ) ;\n d6u8 = vqrshrn_n_u16 ( q5u16 , 7 ) ;\n d7u8 = vqrshrn_n_u16 ( q6u16 , 7 ) ;\n d8u8 = vqrshrn_n_u16 ( q7u16 , 7 ) ;\n d9u8 = vqrshrn_n_u16 ( q8u16 , 7 ) ;\n q1u8 = vcombine_u8 ( d2u8 , d3u8 ) ;\n q2u8 = vcombine_u8 ( d4u8 , d5u8 ) ;\n q3u8 = vcombine_u8 ( d6u8 , d7u8 ) ;\n q4u8 = vcombine_u8 ( d8u8 , d9u8 ) ;\n q11u8 = q15u8 ;\n vst1q_u8 ( ( uint8_t * ) tmpp2 , q1u8 ) ;\n tmpp2 += 16 ;\n vst1q_u8 ( ( uint8_t * ) tmpp2 , q2u8 ) ;\n tmpp2 += 16 ;\n vst1q_u8 ( ( uint8_t * ) tmpp2 , q3u8 ) ;\n tmpp2 += 16 ;\n vst1q_u8 ( ( uint8_t * ) tmpp2 , q4u8 ) ;\n tmpp2 += 16 ;\n }\n }\n else if ( yoffset == 0 ) {\n d0u8 = vdup_n_u8 ( bilinear_taps_coeff [ xoffset ] [ 0 ] ) ;\n d1u8 = vdup_n_u8 ( bilinear_taps_coeff [ xoffset ] [ 1 ] ) ;\n for ( i = 4 ;\n i > 0 ;\n i -- ) {\n d2u8 = vld1_u8 ( src_ptr ) ;\n d3u8 = vld1_u8 ( src_ptr + 8 ) ;\n d4u8 = vld1_u8 ( src_ptr + 16 ) ;\n src_ptr += src_pixels_per_line ;\n d5u8 = vld1_u8 ( src_ptr ) ;\n d6u8 = vld1_u8 ( src_ptr + 8 ) ;\n d7u8 = vld1_u8 ( src_ptr + 16 ) ;\n src_ptr += src_pixels_per_line ;\n d8u8 = vld1_u8 ( src_ptr ) ;\n d9u8 = vld1_u8 ( src_ptr + 8 ) ;\n d10u8 = vld1_u8 ( src_ptr + 16 ) ;\n src_ptr += src_pixels_per_line ;\n d11u8 = vld1_u8 ( src_ptr ) ;\n d12u8 = vld1_u8 ( src_ptr + 8 ) ;\n d13u8 = vld1_u8 ( src_ptr + 16 ) ;\n src_ptr += src_pixels_per_line ;\n __builtin_prefetch ( src_ptr ) ;\n __builtin_prefetch ( src_ptr + src_pixels_per_line ) ;\n __builtin_prefetch ( src_ptr + src_pixels_per_line * 2 ) ;\n q7u16 = vmull_u8 ( d2u8 , d0u8 ) ;\n q8u16 = vmull_u8 ( d3u8 , d0u8 ) ;\n q9u16 = vmull_u8 ( d5u8 , d0u8 ) ;\n q10u16 = vmull_u8 ( d6u8 , d0u8 ) ;\n q11u16 = vmull_u8 ( d8u8 , d0u8 ) ;\n q12u16 = vmull_u8 ( d9u8 , d0u8 ) ;\n q13u16 = vmull_u8 ( d11u8 , d0u8 ) ;\n q14u16 = vmull_u8 ( d12u8 , d0u8 ) ;\n d2u8 = vext_u8 ( d2u8 , d3u8 , 1 ) ;\n d5u8 = vext_u8 ( d5u8 , d6u8 , 1 ) ;\n d8u8 = vext_u8 ( d8u8 , d9u8 , 1 ) ;\n d11u8 = vext_u8 ( d11u8 , d12u8 , 1 ) ;\n q7u16 = vmlal_u8 ( q7u16 , d2u8 , d1u8 ) ;\n q9u16 = vmlal_u8 ( q9u16 , d5u8 , d1u8 ) ;\n q11u16 = vmlal_u8 ( q11u16 , d8u8 , d1u8 ) ;\n q13u16 = vmlal_u8 ( q13u16 , d11u8 , d1u8 ) ;\n d3u8 = vext_u8 ( d3u8 , d4u8 , 1 ) ;\n d6u8 = vext_u8 ( d6u8 , d7u8 , 1 ) ;\n d9u8 = vext_u8 ( d9u8 , d10u8 , 1 ) ;\n d12u8 = vext_u8 ( d12u8 , d13u8 , 1 ) ;\n q8u16 = vmlal_u8 ( q8u16 , d3u8 , d1u8 ) ;\n q10u16 = vmlal_u8 ( q10u16 , d6u8 , d1u8 ) ;\n q12u16 = vmlal_u8 ( q12u16 , d9u8 , d1u8 ) ;\n q14u16 = vmlal_u8 ( q14u16 , d12u8 , d1u8 ) ;\n d14u8 = vqrshrn_n_u16 ( q7u16 , 7 ) ;\n d15u8 = vqrshrn_n_u16 ( q8u16 , 7 ) ;\n d16u8 = vqrshrn_n_u16 ( q9u16 , 7 ) ;\n d17u8 = vqrshrn_n_u16 ( q10u16 , 7 ) ;\n d18u8 = vqrshrn_n_u16 ( q11u16 , 7 ) ;\n d19u8 = vqrshrn_n_u16 ( q12u16 , 7 ) ;\n d20u8 = vqrshrn_n_u16 ( q13u16 , 7 ) ;\n d21u8 = vqrshrn_n_u16 ( q14u16 , 7 ) ;\n q7u8 = vcombine_u8 ( d14u8 , d15u8 ) ;\n q8u8 = vcombine_u8 ( d16u8 , d17u8 ) ;\n q9u8 = vcombine_u8 ( d18u8 , d19u8 ) ;\n q10u8 = vcombine_u8 ( d20u8 , d21u8 ) ;\n vst1q_u8 ( ( uint8_t * ) tmpp2 , q7u8 ) ;\n tmpp2 += 16 ;\n vst1q_u8 ( ( uint8_t * ) tmpp2 , q8u8 ) ;\n tmpp2 += 16 ;\n vst1q_u8 ( ( uint8_t * ) tmpp2 , q9u8 ) ;\n tmpp2 += 16 ;\n vst1q_u8 ( ( uint8_t * ) tmpp2 , q10u8 ) ;\n tmpp2 += 16 ;\n }\n }\n else {\n d0u8 = vdup_n_u8 ( bilinear_taps_coeff [ xoffset ] [ 0 ] ) ;\n d1u8 = vdup_n_u8 ( bilinear_taps_coeff [ xoffset ] [ 1 ] ) ;\n d2u8 = vld1_u8 ( src_ptr ) ;\n d3u8 = vld1_u8 ( src_ptr + 8 ) ;\n d4u8 = vld1_u8 ( src_ptr + 16 ) ;\n src_ptr += src_pixels_per_line ;\n d5u8 = vld1_u8 ( src_ptr ) ;\n d6u8 = vld1_u8 ( src_ptr + 8 ) ;\n d7u8 = vld1_u8 ( src_ptr + 16 ) ;\n src_ptr += src_pixels_per_line ;\n d8u8 = vld1_u8 ( src_ptr ) ;\n d9u8 = vld1_u8 ( src_ptr + 8 ) ;\n d10u8 = vld1_u8 ( src_ptr + 16 ) ;\n src_ptr += src_pixels_per_line ;\n d11u8 = vld1_u8 ( src_ptr ) ;\n d12u8 = vld1_u8 ( src_ptr + 8 ) ;\n d13u8 = vld1_u8 ( src_ptr + 16 ) ;\n src_ptr += src_pixels_per_line ;\n for ( i = 3 ;\n i > 0 ;\n i -- ) {\n q7u16 = vmull_u8 ( d2u8 , d0u8 ) ;\n q8u16 = vmull_u8 ( d3u8 , d0u8 ) ;\n q9u16 = vmull_u8 ( d5u8 , d0u8 ) ;\n q10u16 = vmull_u8 ( d6u8 , d0u8 ) ;\n q11u16 = vmull_u8 ( d8u8 , d0u8 ) ;\n q12u16 = vmull_u8 ( d9u8 , d0u8 ) ;\n q13u16 = vmull_u8 ( d11u8 , d0u8 ) ;\n q14u16 = vmull_u8 ( d12u8 , d0u8 ) ;\n d2u8 = vext_u8 ( d2u8 , d3u8 , 1 ) ;\n d5u8 = vext_u8 ( d5u8 , d6u8 , 1 ) ;\n d8u8 = vext_u8 ( d8u8 , d9u8 , 1 ) ;\n d11u8 = vext_u8 ( d11u8 , d12u8 , 1 ) ;\n q7u16 = vmlal_u8 ( q7u16 , d2u8 , d1u8 ) ;\n q9u16 = vmlal_u8 ( q9u16 , d5u8 , d1u8 ) ;\n q11u16 = vmlal_u8 ( q11u16 , d8u8 , d1u8 ) ;\n q13u16 = vmlal_u8 ( q13u16 , d11u8 , d1u8 ) ;\n d3u8 = vext_u8 ( d3u8 , d4u8 , 1 ) ;\n d6u8 = vext_u8 ( d6u8 , d7u8 , 1 ) ;\n d9u8 = vext_u8 ( d9u8 , d10u8 , 1 ) ;\n d12u8 = vext_u8 ( d12u8 , d13u8 , 1 ) ;\n q8u16 = vmlal_u8 ( q8u16 , d3u8 , d1u8 ) ;\n q10u16 = vmlal_u8 ( q10u16 , d6u8 , d1u8 ) ;\n q12u16 = vmlal_u8 ( q12u16 , d9u8 , d1u8 ) ;\n q14u16 = vmlal_u8 ( q14u16 , d12u8 , d1u8 ) ;\n d14u8 = vqrshrn_n_u16 ( q7u16 , 7 ) ;\n d15u8 = vqrshrn_n_u16 ( q8u16 , 7 ) ;\n d16u8 = vqrshrn_n_u16 ( q9u16 , 7 ) ;\n d17u8 = vqrshrn_n_u16 ( q10u16 , 7 ) ;\n d18u8 = vqrshrn_n_u16 ( q11u16 , 7 ) ;\n d19u8 = vqrshrn_n_u16 ( q12u16 , 7 ) ;\n d20u8 = vqrshrn_n_u16 ( q13u16 , 7 ) ;\n d21u8 = vqrshrn_n_u16 ( q14u16 , 7 ) ;\n d2u8 = vld1_u8 ( src_ptr ) ;\n d3u8 = vld1_u8 ( src_ptr + 8 ) ;\n d4u8 = vld1_u8 ( src_ptr + 16 ) ;\n src_ptr += src_pixels_per_line ;\n d5u8 = vld1_u8 ( src_ptr ) ;\n d6u8 = vld1_u8 ( src_ptr + 8 ) ;\n d7u8 = vld1_u8 ( src_ptr + 16 ) ;\n src_ptr += src_pixels_per_line ;\n d8u8 = vld1_u8 ( src_ptr ) ;\n d9u8 = vld1_u8 ( src_ptr + 8 ) ;\n d10u8 = vld1_u8 ( src_ptr + 16 ) ;\n src_ptr += src_pixels_per_line ;\n d11u8 = vld1_u8 ( src_ptr ) ;\n d12u8 = vld1_u8 ( src_ptr + 8 ) ;\n d13u8 = vld1_u8 ( src_ptr + 16 ) ;\n src_ptr += src_pixels_per_line ;\n q7u8 = vcombine_u8 ( d14u8 , d15u8 ) ;\n q8u8 = vcombine_u8 ( d16u8 , d17u8 ) ;\n q9u8 = vcombine_u8 ( d18u8 , d19u8 ) ;\n q10u8 = vcombine_u8 ( d20u8 , d21u8 ) ;\n vst1q_u8 ( ( uint8_t * ) tmpp , q7u8 ) ;\n tmpp += 16 ;\n vst1q_u8 ( ( uint8_t * ) tmpp , q8u8 ) ;\n tmpp += 16 ;\n vst1q_u8 ( ( uint8_t * ) tmpp , q9u8 ) ;\n tmpp += 16 ;\n vst1q_u8 ( ( uint8_t * ) tmpp , q10u8 ) ;\n tmpp += 16 ;\n }\n d14u8 = vld1_u8 ( src_ptr ) ;\n d15u8 = vld1_u8 ( src_ptr + 8 ) ;\n d16u8 = vld1_u8 ( src_ptr + 16 ) ;\n src_ptr += src_pixels_per_line ;\n q9u16 = vmull_u8 ( d2u8 , d0u8 ) ;\n q10u16 = vmull_u8 ( d3u8 , d0u8 ) ;\n q11u16 = vmull_u8 ( d5u8 , d0u8 ) ;\n q12u16 = vmull_u8 ( d6u8 , d0u8 ) ;\n q13u16 = vmull_u8 ( d8u8 , d0u8 ) ;\n q14u16 = vmull_u8 ( d9u8 , d0u8 ) ;\n d2u8 = vext_u8 ( d2u8 , d3u8 , 1 ) ;\n d5u8 = vext_u8 ( d5u8 , d6u8 , 1 ) ;\n d8u8 = vext_u8 ( d8u8 , d9u8 , 1 ) ;\n q9u16 = vmlal_u8 ( q9u16 , d2u8 , d1u8 ) ;\n q11u16 = vmlal_u8 ( q11u16 , d5u8 , d1u8 ) ;\n q13u16 = vmlal_u8 ( q13u16 , d8u8 , d1u8 ) ;\n d3u8 = vext_u8 ( d3u8 , d4u8 , 1 ) ;\n d6u8 = vext_u8 ( d6u8 , d7u8 , 1 ) ;\n d9u8 = vext_u8 ( d9u8 , d10u8 , 1 ) ;\n q10u16 = vmlal_u8 ( q10u16 , d3u8 , d1u8 ) ;\n q12u16 = vmlal_u8 ( q12u16 , d6u8 , d1u8 ) ;\n q14u16 = vmlal_u8 ( q14u16 , d9u8 , d1u8 ) ;\n q1u16 = vmull_u8 ( d11u8 , d0u8 ) ;\n q2u16 = vmull_u8 ( d12u8 , d0u8 ) ;\n q3u16 = vmull_u8 ( d14u8 , d0u8 ) ;\n q4u16 = vmull_u8 ( d15u8 , d0u8 ) ;\n d11u8 = vext_u8 ( d11u8 , d12u8 , 1 ) ;\n d14u8 = vext_u8 ( d14u8 , d15u8 , 1 ) ;\n q1u16 = vmlal_u8 ( q1u16 , d11u8 , d1u8 ) ;\n q3u16 = vmlal_u8 ( q3u16 , d14u8 , d1u8 ) ;\n d12u8 = vext_u8 ( d12u8 , d13u8 , 1 ) ;\n d15u8 = vext_u8 ( d15u8 , d16u8 , 1 ) ;\n q2u16 = vmlal_u8 ( q2u16 , d12u8 , d1u8 ) ;\n q4u16 = vmlal_u8 ( q4u16 , d15u8 , d1u8 ) ;\n d10u8 = vqrshrn_n_u16 ( q9u16 , 7 ) ;\n d11u8 = vqrshrn_n_u16 ( q10u16 , 7 ) ;\n d12u8 = vqrshrn_n_u16 ( q11u16 , 7 ) ;\n d13u8 = vqrshrn_n_u16 ( q12u16 , 7 ) ;\n d14u8 = vqrshrn_n_u16 ( q13u16 , 7 ) ;\n d15u8 = vqrshrn_n_u16 ( q14u16 , 7 ) ;\n d16u8 = vqrshrn_n_u16 ( q1u16 , 7 ) ;\n d17u8 = vqrshrn_n_u16 ( q2u16 , 7 ) ;\n d18u8 = vqrshrn_n_u16 ( q3u16 , 7 ) ;\n d19u8 = vqrshrn_n_u16 ( q4u16 , 7 ) ;\n q5u8 = vcombine_u8 ( d10u8 , d11u8 ) ;\n q6u8 = vcombine_u8 ( d12u8 , d13u8 ) ;\n q7u8 = vcombine_u8 ( d14u8 , d15u8 ) ;\n q8u8 = vcombine_u8 ( d16u8 , d17u8 ) ;\n q9u8 = vcombine_u8 ( d18u8 , d19u8 ) ;\n vst1q_u8 ( ( uint8_t * ) tmpp , q5u8 ) ;\n tmpp += 16 ;\n vst1q_u8 ( ( uint8_t * ) tmpp , q6u8 ) ;\n tmpp += 16 ;\n vst1q_u8 ( ( uint8_t * ) tmpp , q7u8 ) ;\n tmpp += 16 ;\n vst1q_u8 ( ( uint8_t * ) tmpp , q8u8 ) ;\n tmpp += 16 ;\n vst1q_u8 ( ( uint8_t * ) tmpp , q9u8 ) ;\n d0u8 = vdup_n_u8 ( bilinear_taps_coeff [ yoffset ] [ 0 ] ) ;\n d1u8 = vdup_n_u8 ( bilinear_taps_coeff [ yoffset ] [ 1 ] ) ;\n tmpp = tmp ;\n tmpp2 = tmpp + 272 ;\n q11u8 = vld1q_u8 ( tmpp ) ;\n tmpp += 16 ;\n for ( i = 4 ;\n i > 0 ;\n i -- ) {\n q12u8 = vld1q_u8 ( tmpp ) ;\n tmpp += 16 ;\n q13u8 = vld1q_u8 ( tmpp ) ;\n tmpp += 16 ;\n q14u8 = vld1q_u8 ( tmpp ) ;\n tmpp += 16 ;\n q15u8 = vld1q_u8 ( tmpp ) ;\n tmpp += 16 ;\n q1u16 = vmull_u8 ( vget_low_u8 ( q11u8 ) , d0u8 ) ;\n q2u16 = vmull_u8 ( vget_high_u8 ( q11u8 ) , d0u8 ) ;\n q3u16 = vmull_u8 ( vget_low_u8 ( q12u8 ) , d0u8 ) ;\n q4u16 = vmull_u8 ( vget_high_u8 ( q12u8 ) , d0u8 ) ;\n q5u16 = vmull_u8 ( vget_low_u8 ( q13u8 ) , d0u8 ) ;\n q6u16 = vmull_u8 ( vget_high_u8 ( q13u8 ) , d0u8 ) ;\n q7u16 = vmull_u8 ( vget_low_u8 ( q14u8 ) , d0u8 ) ;\n q8u16 = vmull_u8 ( vget_high_u8 ( q14u8 ) , d0u8 ) ;\n q1u16 = vmlal_u8 ( q1u16 , vget_low_u8 ( q12u8 ) , d1u8 ) ;\n q2u16 = vmlal_u8 ( q2u16 , vget_high_u8 ( q12u8 ) , d1u8 ) ;\n q3u16 = vmlal_u8 ( q3u16 , vget_low_u8 ( q13u8 ) , d1u8 ) ;\n q4u16 = vmlal_u8 ( q4u16 , vget_high_u8 ( q13u8 ) , d1u8 ) ;\n q5u16 = vmlal_u8 ( q5u16 , vget_low_u8 ( q14u8 ) , d1u8 ) ;\n q6u16 = vmlal_u8 ( q6u16 , vget_high_u8 ( q14u8 ) , d1u8 ) ;\n q7u16 = vmlal_u8 ( q7u16 , vget_low_u8 ( q15u8 ) , d1u8 ) ;\n q8u16 = vmlal_u8 ( q8u16 , vget_high_u8 ( q15u8 ) , d1u8 ) ;\n d2u8 = vqrshrn_n_u16 ( q1u16 , 7 ) ;\n d3u8 = vqrshrn_n_u16 ( q2u16 , 7 ) ;\n d4u8 = vqrshrn_n_u16 ( q3u16 , 7 ) ;\n d5u8 = vqrshrn_n_u16 ( q4u16 , 7 ) ;\n d6u8 = vqrshrn_n_u16 ( q5u16 , 7 ) ;\n d7u8 = vqrshrn_n_u16 ( q6u16 , 7 ) ;\n d8u8 = vqrshrn_n_u16 ( q7u16 , 7 ) ;\n d9u8 = vqrshrn_n_u16 ( q8u16 , 7 ) ;\n q1u8 = vcombine_u8 ( d2u8 , d3u8 ) ;\n q2u8 = vcombine_u8 ( d4u8 , d5u8 ) ;\n q3u8 = vcombine_u8 ( d6u8 , d7u8 ) ;\n q4u8 = vcombine_u8 ( d8u8 , d9u8 ) ;\n q11u8 = q15u8 ;\n vst1q_u8 ( ( uint8_t * ) tmpp2 , q1u8 ) ;\n tmpp2 += 16 ;\n vst1q_u8 ( ( uint8_t * ) tmpp2 , q2u8 ) ;\n tmpp2 += 16 ;\n vst1q_u8 ( ( uint8_t * ) tmpp2 , q3u8 ) ;\n tmpp2 += 16 ;\n vst1q_u8 ( ( uint8_t * ) tmpp2 , q4u8 ) ;\n tmpp2 += 16 ;\n }\n }\n q8s32 = vdupq_n_s32 ( 0 ) ;\n q9s32 = vdupq_n_s32 ( 0 ) ;\n q10s32 = vdupq_n_s32 ( 0 ) ;\n tmpp = tmp + 272 ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n q0u8 = vld1q_u8 ( tmpp ) ;\n tmpp += 16 ;\n q1u8 = vld1q_u8 ( tmpp ) ;\n tmpp += 16 ;\n q2u8 = vld1q_u8 ( dst_ptr ) ;\n dst_ptr += dst_pixels_per_line ;\n q3u8 = vld1q_u8 ( dst_ptr ) ;\n dst_ptr += dst_pixels_per_line ;\n d0u8 = vget_low_u8 ( q0u8 ) ;\n d1u8 = vget_high_u8 ( q0u8 ) ;\n d2u8 = vget_low_u8 ( q1u8 ) ;\n d3u8 = vget_high_u8 ( q1u8 ) ;\n q11u16 = vsubl_u8 ( d0u8 , vget_low_u8 ( q2u8 ) ) ;\n q12u16 = vsubl_u8 ( d1u8 , vget_high_u8 ( q2u8 ) ) ;\n q13u16 = vsubl_u8 ( d2u8 , vget_low_u8 ( q3u8 ) ) ;\n q14u16 = vsubl_u8 ( d3u8 , vget_high_u8 ( q3u8 ) ) ;\n d22s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q11u16 ) ) ;\n d23s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q11u16 ) ) ;\n q8s32 = vpadalq_s16 ( q8s32 , vreinterpretq_s16_u16 ( q11u16 ) ) ;\n q9s32 = vmlal_s16 ( q9s32 , d22s16 , d22s16 ) ;\n q10s32 = vmlal_s16 ( q10s32 , d23s16 , d23s16 ) ;\n d24s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q12u16 ) ) ;\n d25s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q12u16 ) ) ;\n q8s32 = vpadalq_s16 ( q8s32 , vreinterpretq_s16_u16 ( q12u16 ) ) ;\n q9s32 = vmlal_s16 ( q9s32 , d24s16 , d24s16 ) ;\n q10s32 = vmlal_s16 ( q10s32 , d25s16 , d25s16 ) ;\n d26s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q13u16 ) ) ;\n d27s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q13u16 ) ) ;\n q8s32 = vpadalq_s16 ( q8s32 , vreinterpretq_s16_u16 ( q13u16 ) ) ;\n q9s32 = vmlal_s16 ( q9s32 , d26s16 , d26s16 ) ;\n q10s32 = vmlal_s16 ( q10s32 , d27s16 , d27s16 ) ;\n d28s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q14u16 ) ) ;\n d29s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q14u16 ) ) ;\n q8s32 = vpadalq_s16 ( q8s32 , vreinterpretq_s16_u16 ( q14u16 ) ) ;\n q9s32 = vmlal_s16 ( q9s32 , d28s16 , d28s16 ) ;\n q10s32 = vmlal_s16 ( q10s32 , d29s16 , d29s16 ) ;\n }\n q10s32 = vaddq_s32 ( q10s32 , q9s32 ) ;\n q0s64 = vpaddlq_s32 ( q8s32 ) ;\n q1s64 = vpaddlq_s32 ( q10s32 ) ;\n d0s64 = vget_low_s64 ( q0s64 ) ;\n d1s64 = vget_high_s64 ( q0s64 ) ;\n d2s64 = vget_low_s64 ( q1s64 ) ;\n d3s64 = vget_high_s64 ( q1s64 ) ;\n d0s64 = vadd_s64 ( d0s64 , d1s64 ) ;\n d1s64 = vadd_s64 ( d2s64 , d3s64 ) ;\n q5s64 = vmull_s32 ( vreinterpret_s32_s64 ( d0s64 ) , vreinterpret_s32_s64 ( d0s64 ) ) ;\n vst1_lane_u32 ( ( uint32_t * ) sse , vreinterpret_u32_s64 ( d1s64 ) , 0 ) ;\n d10u32 = vshr_n_u32 ( vreinterpret_u32_s64 ( vget_low_s64 ( q5s64 ) ) , 8 ) ;\n d0u32 = vsub_u32 ( vreinterpret_u32_s64 ( d1s64 ) , d10u32 ) ;\n return vget_lane_u32 ( d0u32 , 0 ) ;\n }"}
{"idx": 12061, "target": 0, "func": "static void bind_fetch ( int row_count ) {\n MYSQL_STMT * stmt ;\n int rc , i , count = row_count ;\n int32 data [ 10 ] ;\n int8 i8_data ;\n int16 i16_data ;\n int32 i32_data ;\n longlong i64_data ;\n float f_data ;\n double d_data ;\n char s_data [ 10 ] ;\n ulong length [ 10 ] ;\n MYSQL_BIND my_bind [ 7 ] ;\n my_bool is_null [ 7 ] ;\n stmt = mysql_simple_prepare ( mysql , \"INSERT INTO test_bind_fetch VALUES \" \"(?, ?, ?, ?, ?, ?, ?)\" ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 7 ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n for ( i = 0 ;\n i < ( int ) array_elements ( my_bind ) ;\n i ++ ) {\n my_bind [ i ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ i ] . buffer = ( void * ) & data [ i ] ;\n }\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n while ( count -- ) {\n rc = 10 + count ;\n for ( i = 0 ;\n i < ( int ) array_elements ( my_bind ) ;\n i ++ ) {\n data [ i ] = rc + i ;\n rc += 12 ;\n }\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n }\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n mysql_stmt_close ( stmt ) ;\n rc = my_stmt_result ( \"SELECT * FROM test_bind_fetch\" ) ;\n DIE_UNLESS ( row_count == rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT * FROM test_bind_fetch\" ) ;\n check_stmt ( stmt ) ;\n for ( i = 0 ;\n i < ( int ) array_elements ( my_bind ) ;\n i ++ ) {\n my_bind [ i ] . buffer = ( void * ) & data [ i ] ;\n my_bind [ i ] . length = & length [ i ] ;\n my_bind [ i ] . is_null = & is_null [ i ] ;\n }\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_TINY ;\n my_bind [ 0 ] . buffer = ( void * ) & i8_data ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_SHORT ;\n my_bind [ 1 ] . buffer = ( void * ) & i16_data ;\n my_bind [ 2 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 2 ] . buffer = ( void * ) & i32_data ;\n my_bind [ 3 ] . buffer_type = MYSQL_TYPE_LONGLONG ;\n my_bind [ 3 ] . buffer = ( void * ) & i64_data ;\n my_bind [ 4 ] . buffer_type = MYSQL_TYPE_FLOAT ;\n my_bind [ 4 ] . buffer = ( void * ) & f_data ;\n my_bind [ 5 ] . buffer_type = MYSQL_TYPE_DOUBLE ;\n my_bind [ 5 ] . buffer = ( void * ) & d_data ;\n my_bind [ 6 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 6 ] . buffer = ( void * ) & s_data ;\n my_bind [ 6 ] . buffer_length = sizeof ( s_data ) ;\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_store_result ( stmt ) ;\n check_execute ( stmt , rc ) ;\n while ( row_count -- ) {\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) {\n fprintf ( stdout , \"\\n\" ) ;\n fprintf ( stdout , \"\\n tiny : %ld(%lu)\" , ( ulong ) i8_data , length [ 0 ] ) ;\n fprintf ( stdout , \"\\n short : %ld(%lu)\" , ( ulong ) i16_data , length [ 1 ] ) ;\n fprintf ( stdout , \"\\n int : %ld(%lu)\" , ( ulong ) i32_data , length [ 2 ] ) ;\n fprintf ( stdout , \"\\n longlong : %ld(%lu)\" , ( ulong ) i64_data , length [ 3 ] ) ;\n fprintf ( stdout , \"\\n float : %f(%lu)\" , f_data , length [ 4 ] ) ;\n fprintf ( stdout , \"\\n double : %g(%lu)\" , d_data , length [ 5 ] ) ;\n fprintf ( stdout , \"\\n char : %s(%lu)\" , s_data , length [ 6 ] ) ;\n }\n rc = 10 + row_count ;\n DIE_UNLESS ( ( int ) i8_data == rc ) ;\n DIE_UNLESS ( length [ 0 ] == 1 ) ;\n rc += 13 ;\n DIE_UNLESS ( ( int ) i16_data == rc ) ;\n DIE_UNLESS ( length [ 1 ] == 2 ) ;\n rc += 13 ;\n DIE_UNLESS ( ( int ) i32_data == rc ) ;\n DIE_UNLESS ( length [ 2 ] == 4 ) ;\n rc += 13 ;\n DIE_UNLESS ( ( int ) i64_data == rc ) ;\n DIE_UNLESS ( length [ 3 ] == 8 ) ;\n rc += 13 ;\n DIE_UNLESS ( ( int ) f_data == rc ) ;\n DIE_UNLESS ( length [ 4 ] == 4 ) ;\n rc += 13 ;\n DIE_UNLESS ( ( int ) d_data == rc ) ;\n DIE_UNLESS ( length [ 5 ] == 8 ) ;\n rc += 13 ;\n {\n char buff [ 20 ] ;\n long len = sprintf ( buff , \"%d\" , rc ) ;\n DIE_UNLESS ( strcmp ( s_data , buff ) == 0 ) ;\n DIE_UNLESS ( length [ 6 ] == ( ulong ) len ) ;\n }\n }\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 12062, "target": 0, "func": "static VALUE ossl_asn1_ ## klass ( int argc , VALUE * argv , VALUE self ) \\ {\n return rb_funcall3 ( cASN1 ## klass , rb_intern ( \"new\" ) , argc , argv ) ;\n }\n OSSL_ASN1_IMPL_FACTORY_METHOD ( Boolean )"}
{"idx": 12063, "target": 0, "func": "static void decode_power_profile_id ( gchar * s , guint8 id ) {\n if ( id == 0 ) {\n g_snprintf ( s , ITEM_LABEL_LENGTH , \"%d (All)\" , id ) ;\n }\n else {\n g_snprintf ( s , ITEM_LABEL_LENGTH , \"%d\" , id ) ;\n }\n }"}
{"idx": 12064, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n DxaDecContext * const c = avctx -> priv_data ;\n uint8_t * outptr , * srcptr , * tmpptr ;\n unsigned long dsize ;\n int i , j , compr , ret ;\n int stride ;\n int orig_buf_size = buf_size ;\n int pc = 0 ;\n if ( buf [ 0 ] == 'C' && buf [ 1 ] == 'M' && buf [ 2 ] == 'A' && buf [ 3 ] == 'P' ) {\n int r , g , b ;\n buf += 4 ;\n for ( i = 0 ;\n i < 256 ;\n i ++ ) {\n r = * buf ++ ;\n g = * buf ++ ;\n b = * buf ++ ;\n c -> pal [ i ] = ( r << 16 ) | ( g << 8 ) | b ;\n }\n pc = 1 ;\n buf_size -= 768 + 4 ;\n }\n if ( ( ret = ff_get_buffer ( avctx , frame , AV_GET_BUFFER_FLAG_REF ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n memcpy ( frame -> data [ 1 ] , c -> pal , AVPALETTE_SIZE ) ;\n frame -> palette_has_changed = pc ;\n outptr = frame -> data [ 0 ] ;\n srcptr = c -> decomp_buf ;\n tmpptr = c -> prev . data [ 0 ] ;\n stride = frame -> linesize [ 0 ] ;\n if ( buf [ 0 ] == 'N' && buf [ 1 ] == 'U' && buf [ 2 ] == 'L' && buf [ 3 ] == 'L' ) compr = - 1 ;\n else compr = buf [ 4 ] ;\n dsize = c -> dsize ;\n if ( ( compr != 4 && compr != - 1 ) && uncompress ( c -> decomp_buf , & dsize , buf + 9 , buf_size - 9 ) != Z_OK ) {\n av_log ( avctx , AV_LOG_ERROR , \"Uncompress failed!\\n\" ) ;\n return AVERROR_UNKNOWN ;\n }\n switch ( compr ) {\n case - 1 : frame -> key_frame = 0 ;\n frame -> pict_type = AV_PICTURE_TYPE_P ;\n if ( c -> prev . data [ 0 ] ) memcpy ( frame -> data [ 0 ] , c -> prev . data [ 0 ] , frame -> linesize [ 0 ] * avctx -> height ) ;\n else {\n memset ( frame -> data [ 0 ] , 0 , frame -> linesize [ 0 ] * avctx -> height ) ;\n frame -> key_frame = 1 ;\n frame -> pict_type = AV_PICTURE_TYPE_I ;\n }\n break ;\n case 2 : case 3 : case 4 : case 5 : frame -> key_frame = ! ( compr & 1 ) ;\n frame -> pict_type = ( compr & 1 ) ? AV_PICTURE_TYPE_P : AV_PICTURE_TYPE_I ;\n for ( j = 0 ;\n j < avctx -> height ;\n j ++ ) {\n if ( compr & 1 ) {\n for ( i = 0 ;\n i < avctx -> width ;\n i ++ ) outptr [ i ] = srcptr [ i ] ^ tmpptr [ i ] ;\n tmpptr += stride ;\n }\n else memcpy ( outptr , srcptr , avctx -> width ) ;\n outptr += stride ;\n srcptr += avctx -> width ;\n }\n break ;\n case 12 : case 13 : frame -> key_frame = 0 ;\n frame -> pict_type = AV_PICTURE_TYPE_P ;\n decode_13 ( avctx , c , frame -> data [ 0 ] , frame -> linesize [ 0 ] , srcptr , c -> prev . data [ 0 ] ) ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"Unknown/unsupported compression type %d\\n\" , buf [ 4 ] ) ;\n return AVERROR_INVALIDDATA ;\n }\n av_frame_unref ( & c -> prev ) ;\n if ( ( ret = av_frame_ref ( & c -> prev , frame ) ) < 0 ) return ret ;\n * got_frame = 1 ;\n return orig_buf_size ;\n }"}
{"idx": 12065, "target": 0, "func": "static void curses_connection_inject ( void ) {\n wdg_t * in ;\n DEBUG_MSG ( \"curses_connection_inject\" ) ;\n SAFE_REALLOC ( injectbuf , 501 * sizeof ( char ) ) ;\n memset ( injectbuf , 0 , 501 ) ;\n wdg_create_object ( & in , WDG_INPUT , WDG_OBJ_WANT_FOCUS | WDG_OBJ_FOCUS_MODAL ) ;\n wdg_set_color ( in , WDG_COLOR_SCREEN , EC_COLOR ) ;\n wdg_set_color ( in , WDG_COLOR_WINDOW , EC_COLOR ) ;\n wdg_set_color ( in , WDG_COLOR_FOCUS , EC_COLOR_FOCUS ) ;\n wdg_set_color ( in , WDG_COLOR_TITLE , EC_COLOR_MENU ) ;\n wdg_input_size ( in , 75 , 12 ) ;\n wdg_input_add ( in , 1 , 1 , \"Chars to be injected :\" , ( char * ) injectbuf , 50 , 10 ) ;\n wdg_input_set_callback ( in , inject_user ) ;\n wdg_draw_object ( in ) ;\n wdg_set_focus ( in ) ;\n }"}
{"idx": 12066, "target": 0, "func": "static inline void tm2_med_res_block ( TM2Context * ctx , AVFrame * pic , int bx , int by ) {\n int i ;\n int deltas [ 16 ] ;\n TM2_INIT_POINTERS ( ) ;\n deltas [ 0 ] = GET_TOK ( ctx , TM2_C_LO ) ;\n deltas [ 1 ] = deltas [ 2 ] = deltas [ 3 ] = 0 ;\n tm2_low_chroma ( U , Ustride , clast , ctx -> CD , deltas , bx ) ;\n deltas [ 0 ] = GET_TOK ( ctx , TM2_C_LO ) ;\n deltas [ 1 ] = deltas [ 2 ] = deltas [ 3 ] = 0 ;\n tm2_low_chroma ( V , Vstride , clast + 2 , ctx -> CD + 2 , deltas , bx ) ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) deltas [ i ] = GET_TOK ( ctx , TM2_L_HI ) ;\n tm2_apply_deltas ( ctx , Y , Ystride , deltas , last ) ;\n }"}
{"idx": 12067, "target": 0, "func": "static int decode_rle ( AVCodecContext * avctx , AVSubtitle * sub , int rect , const uint8_t * buf , unsigned int buf_size ) {\n const uint8_t * rle_bitmap_end ;\n int pixel_count , line_count ;\n rle_bitmap_end = buf + buf_size ;\n sub -> rects [ rect ] -> pict . data [ 0 ] = av_malloc ( sub -> rects [ rect ] -> w * sub -> rects [ rect ] -> h ) ;\n if ( ! sub -> rects [ rect ] -> pict . data [ 0 ] ) return - 1 ;\n pixel_count = 0 ;\n line_count = 0 ;\n while ( buf < rle_bitmap_end && line_count < sub -> rects [ rect ] -> h ) {\n uint8_t flags , color ;\n int run ;\n color = bytestream_get_byte ( & buf ) ;\n run = 1 ;\n if ( color == 0x00 ) {\n flags = bytestream_get_byte ( & buf ) ;\n run = flags & 0x3f ;\n if ( flags & 0x40 ) run = ( run << 8 ) + bytestream_get_byte ( & buf ) ;\n color = flags & 0x80 ? bytestream_get_byte ( & buf ) : 0 ;\n }\n if ( run > 0 && pixel_count + run <= sub -> rects [ rect ] -> w * sub -> rects [ rect ] -> h ) {\n memset ( sub -> rects [ rect ] -> pict . data [ 0 ] + pixel_count , color , run ) ;\n pixel_count += run ;\n }\n else if ( ! run ) {\n if ( pixel_count % sub -> rects [ rect ] -> w > 0 ) av_log ( avctx , AV_LOG_ERROR , \"Decoded %d pixels, when line should be %d pixels\\n\" , pixel_count % sub -> rects [ rect ] -> w , sub -> rects [ rect ] -> w ) ;\n line_count ++ ;\n }\n }\n if ( pixel_count < sub -> rects [ rect ] -> w * sub -> rects [ rect ] -> h ) {\n av_log ( avctx , AV_LOG_ERROR , \"Insufficient RLE data for subtitle\\n\" ) ;\n return - 1 ;\n }\n av_dlog ( avctx , \"Pixel Count = %d, Area = %d\\n\" , pixel_count , sub -> rects [ rect ] -> w * sub -> rects [ rect ] -> h ) ;\n return 0 ;\n }"}
{"idx": 12068, "target": 0, "func": "WRITE_CLASS_ENCODER ( EntityAuth ) static inline ostream & operator << ( ostream & out , const EntityAuth & a ) {\n return out << \"auth(auid = \" << a . auid << \" key=\" << a . key << \" with \" << a . caps . size ( ) << \" caps)\" ;\n }"}
{"idx": 12069, "target": 0, "func": "static UBool _addAttributeToList ( AttributeListEntry * * first , AttributeListEntry * attr ) {\n UBool bAdded = TRUE ;\n if ( * first == NULL ) {\n attr -> next = NULL ;\n * first = attr ;\n }\n else {\n AttributeListEntry * prev , * cur ;\n int32_t cmp ;\n prev = NULL ;\n cur = * first ;\n while ( TRUE ) {\n if ( cur == NULL ) {\n prev -> next = attr ;\n attr -> next = NULL ;\n break ;\n }\n cmp = uprv_compareInvCharsAsAscii ( attr -> attribute , cur -> attribute ) ;\n if ( cmp < 0 ) {\n if ( prev == NULL ) {\n * first = attr ;\n }\n else {\n prev -> next = attr ;\n }\n attr -> next = cur ;\n break ;\n }\n if ( cmp == 0 ) {\n bAdded = FALSE ;\n break ;\n }\n prev = cur ;\n cur = cur -> next ;\n }\n }\n return bAdded ;\n }"}
{"idx": 12070, "target": 1, "func": "static int32_t u_scanf_count_handler ( UFILE * input , u_scanf_spec_info * info , ufmt_args * args , const UChar * fmt , int32_t * fmtConsumed , int32_t * argConverted ) {\n if ( ! info -> fSkipArg ) {\n if ( info -> fIsShort ) * ( int16_t * ) ( args [ 0 ] . ptrValue ) = ( int16_t ) ( UINT16_MAX & info -> fWidth ) ;\n else if ( info -> fIsLongLong ) * ( int64_t * ) ( args [ 0 ] . ptrValue ) = info -> fWidth ;\n else * ( int32_t * ) ( args [ 0 ] . ptrValue ) = ( int32_t ) ( UINT32_MAX & info -> fWidth ) ;\n }\n * argConverted = 0 ;\n return 0 ;\n }"}
{"idx": 12071, "target": 1, "func": "static struct berval * * krb5_encode_krbsecretkey ( krb5_key_data * key_data_in , int n_key_data , krb5_kvno mkvno ) {\n struct berval * * ret = NULL ;\n int currkvno ;\n int num_versions = 1 ;\n int i , j , last ;\n krb5_error_code err = 0 ;\n krb5_key_data * key_data ;\n if ( n_key_data <= 0 ) return NULL ;\n key_data = k5calloc ( n_key_data , sizeof ( * key_data ) , & err ) ;\n if ( key_data_in == NULL ) goto cleanup ;\n memcpy ( key_data , key_data_in , n_key_data * sizeof ( * key_data ) ) ;\n for ( i = 0 ;\n i < n_key_data ;\n i ++ ) {\n if ( key_data [ i ] . key_data_ver == 1 ) {\n key_data [ i ] . key_data_ver = 2 ;\n key_data [ i ] . key_data_type [ 1 ] = KRB5_KDB_SALTTYPE_NORMAL ;\n key_data [ i ] . key_data_length [ 1 ] = 0 ;\n key_data [ i ] . key_data_contents [ 1 ] = NULL ;\n }\n }\n for ( i = 0 ;\n i < n_key_data - 1 ;\n i ++ ) if ( key_data [ i ] . key_data_kvno != key_data [ i + 1 ] . key_data_kvno ) num_versions ++ ;\n ret = ( struct berval * * ) calloc ( num_versions + 1 , sizeof ( struct berval * ) ) ;\n if ( ret == NULL ) {\n err = ENOMEM ;\n goto cleanup ;\n }\n for ( i = 0 , last = 0 , j = 0 , currkvno = key_data [ 0 ] . key_data_kvno ;\n i < n_key_data ;\n i ++ ) {\n krb5_data * code ;\n if ( i == n_key_data - 1 || key_data [ i + 1 ] . key_data_kvno != currkvno ) {\n ret [ j ] = k5alloc ( sizeof ( struct berval ) , & err ) ;\n if ( ret [ j ] == NULL ) goto cleanup ;\n err = asn1_encode_sequence_of_keys ( key_data + last , ( krb5_int16 ) i - last + 1 , mkvno , & code ) ;\n if ( err ) goto cleanup ;\n ret [ j ] -> bv_len = code -> length ;\n ret [ j ] -> bv_val = code -> data ;\n free ( code ) ;\n j ++ ;\n last = i + 1 ;\n currkvno = key_data [ i ] . key_data_kvno ;\n }\n }\n ret [ num_versions ] = NULL ;\n cleanup : free ( key_data ) ;\n if ( err != 0 ) {\n if ( ret != NULL ) {\n for ( i = 0 ;\n i <= num_versions ;\n i ++ ) if ( ret [ i ] != NULL ) free ( ret [ i ] ) ;\n free ( ret ) ;\n ret = NULL ;\n }\n }\n return ret ;\n }"}
{"idx": 12072, "target": 0, "func": "static void preprocess_text_hangul ( const hb_ot_shape_plan_t * plan , hb_buffer_t * buffer , hb_font_t * font ) {\n HB_BUFFER_ALLOCATE_VAR ( buffer , hangul_shaping_feature ) ;\n buffer -> clear_output ( ) ;\n unsigned int start = 0 , end = 0 ;\n unsigned int count = buffer -> len ;\n for ( buffer -> idx = 0 ;\n buffer -> idx < count ;\n ) {\n hb_codepoint_t u = buffer -> cur ( ) . codepoint ;\n if ( isHangulTone ( u ) ) {\n if ( start < end && end == buffer -> out_len ) {\n buffer -> next_glyph ( ) ;\n if ( ! is_zero_width_char ( font , u ) ) {\n hb_glyph_info_t * info = buffer -> out_info ;\n hb_glyph_info_t tone = info [ end ] ;\n memmove ( & info [ start + 1 ] , & info [ start ] , ( end - start ) * sizeof ( hb_glyph_info_t ) ) ;\n info [ start ] = tone ;\n buffer -> merge_out_clusters ( start , end + 1 ) ;\n }\n }\n else {\n if ( font -> has_glyph ( 0x25CCu ) ) {\n hb_codepoint_t chars [ 2 ] ;\n if ( ! is_zero_width_char ( font , u ) ) {\n chars [ 0 ] = u ;\n chars [ 1 ] = 0x25CCu ;\n }\n else {\n chars [ 0 ] = 0x25CCu ;\n chars [ 1 ] = u ;\n }\n buffer -> replace_glyphs ( 1 , 2 , chars ) ;\n }\n else {\n buffer -> next_glyph ( ) ;\n }\n }\n start = end = buffer -> out_len ;\n continue ;\n }\n start = buffer -> out_len ;\n if ( isL ( u ) && buffer -> idx + 1 < count ) {\n hb_codepoint_t l = u ;\n hb_codepoint_t v = buffer -> cur ( + 1 ) . codepoint ;\n if ( isV ( v ) ) {\n hb_codepoint_t t = 0 ;\n unsigned int tindex = 0 ;\n if ( buffer -> idx + 2 < count ) {\n t = buffer -> cur ( + 2 ) . codepoint ;\n if ( isT ( t ) ) tindex = t - TBase ;\n else t = 0 ;\n }\n if ( isCombiningL ( l ) && isCombiningV ( v ) && ( t == 0 || isCombiningT ( t ) ) ) {\n hb_codepoint_t s = SBase + ( l - LBase ) * NCount + ( v - VBase ) * TCount + tindex ;\n if ( font -> has_glyph ( s ) ) {\n buffer -> replace_glyphs ( t ? 3 : 2 , 1 , & s ) ;\n if ( unlikely ( buffer -> in_error ) ) return ;\n end = start + 1 ;\n continue ;\n }\n }\n buffer -> cur ( ) . hangul_shaping_feature ( ) = LJMO ;\n buffer -> next_glyph ( ) ;\n buffer -> cur ( ) . hangul_shaping_feature ( ) = VJMO ;\n buffer -> next_glyph ( ) ;\n if ( t ) {\n buffer -> cur ( ) . hangul_shaping_feature ( ) = TJMO ;\n buffer -> next_glyph ( ) ;\n end = start + 3 ;\n }\n else end = start + 2 ;\n if ( buffer -> cluster_level == HB_BUFFER_CLUSTER_LEVEL_MONOTONE_GRAPHEMES ) buffer -> merge_out_clusters ( start , end ) ;\n continue ;\n }\n }\n else if ( isCombinedS ( u ) ) {\n hb_codepoint_t s = u ;\n bool has_glyph = font -> has_glyph ( s ) ;\n unsigned int lindex = ( s - SBase ) / NCount ;\n unsigned int nindex = ( s - SBase ) % NCount ;\n unsigned int vindex = nindex / TCount ;\n unsigned int tindex = nindex % TCount ;\n if ( ! tindex && buffer -> idx + 1 < count && isCombiningT ( buffer -> cur ( + 1 ) . codepoint ) ) {\n unsigned int new_tindex = buffer -> cur ( + 1 ) . codepoint - TBase ;\n hb_codepoint_t new_s = s + new_tindex ;\n if ( font -> has_glyph ( new_s ) ) {\n buffer -> replace_glyphs ( 2 , 1 , & new_s ) ;\n if ( unlikely ( buffer -> in_error ) ) return ;\n end = start + 1 ;\n continue ;\n }\n }\n if ( ! has_glyph || ( ! tindex && buffer -> idx + 1 < count && isT ( buffer -> cur ( + 1 ) . codepoint ) ) ) {\n hb_codepoint_t decomposed [ 3 ] = {\n LBase + lindex , VBase + vindex , TBase + tindex }\n ;\n if ( font -> has_glyph ( decomposed [ 0 ] ) && font -> has_glyph ( decomposed [ 1 ] ) && ( ! tindex || font -> has_glyph ( decomposed [ 2 ] ) ) ) {\n unsigned int s_len = tindex ? 3 : 2 ;\n buffer -> replace_glyphs ( 1 , s_len , decomposed ) ;\n if ( unlikely ( buffer -> in_error ) ) return ;\n hb_glyph_info_t * info = buffer -> out_info ;\n if ( has_glyph && ! tindex ) {\n buffer -> next_glyph ( ) ;\n s_len ++ ;\n }\n end = start + s_len ;\n unsigned int i = start ;\n info [ i ++ ] . hangul_shaping_feature ( ) = LJMO ;\n info [ i ++ ] . hangul_shaping_feature ( ) = VJMO ;\n if ( i < end ) info [ i ++ ] . hangul_shaping_feature ( ) = TJMO ;\n if ( buffer -> cluster_level == HB_BUFFER_CLUSTER_LEVEL_MONOTONE_GRAPHEMES ) buffer -> merge_out_clusters ( start , end ) ;\n continue ;\n }\n }\n if ( has_glyph ) {\n end = start + 1 ;\n buffer -> next_glyph ( ) ;\n continue ;\n }\n }\n buffer -> next_glyph ( ) ;\n }\n buffer -> swap_buffers ( ) ;\n }"}
{"idx": 12073, "target": 0, "func": "static char * xps_parse_cluster_mapping ( char * s , int * code_count , int * glyph_count ) {\n if ( * s == '(' ) s = xps_parse_digits ( s + 1 , code_count ) ;\n if ( * s == ':' ) s = xps_parse_digits ( s + 1 , glyph_count ) ;\n if ( * s == ')' ) s ++ ;\n return s ;\n }"}
{"idx": 12074, "target": 0, "func": "static int _warc_read ( struct archive_read * a , const void * * buf , size_t * bsz , int64_t * off ) {\n struct warc_s * w = a -> format -> data ;\n const char * rab ;\n ssize_t nrd ;\n if ( w -> cntoff >= w -> cntlen ) {\n eof : * buf = NULL ;\n * bsz = 0U ;\n * off = w -> cntoff + 4U ;\n w -> unconsumed = 0U ;\n return ( ARCHIVE_EOF ) ;\n }\n if ( w -> unconsumed ) {\n __archive_read_consume ( a , w -> unconsumed ) ;\n w -> unconsumed = 0U ;\n }\n rab = __archive_read_ahead ( a , 1U , & nrd ) ;\n if ( nrd < 0 ) {\n * bsz = 0U ;\n return ( int ) nrd ;\n }\n else if ( nrd == 0 ) {\n goto eof ;\n }\n else if ( ( size_t ) nrd > w -> cntlen - w -> cntoff ) {\n nrd = w -> cntlen - w -> cntoff ;\n }\n * off = w -> cntoff ;\n * bsz = nrd ;\n * buf = rab ;\n w -> cntoff += nrd ;\n w -> unconsumed = ( size_t ) nrd ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 12075, "target": 0, "func": "void vp9_set_mv_search_range ( MACROBLOCK * x , const MV * mv ) {\n int col_min = ( mv -> col >> 3 ) - MAX_FULL_PEL_VAL + ( mv -> col & 7 ? 1 : 0 ) ;\n int row_min = ( mv -> row >> 3 ) - MAX_FULL_PEL_VAL + ( mv -> row & 7 ? 1 : 0 ) ;\n int col_max = ( mv -> col >> 3 ) + MAX_FULL_PEL_VAL ;\n int row_max = ( mv -> row >> 3 ) + MAX_FULL_PEL_VAL ;\n col_min = MAX ( col_min , ( MV_LOW >> 3 ) + 1 ) ;\n row_min = MAX ( row_min , ( MV_LOW >> 3 ) + 1 ) ;\n col_max = MIN ( col_max , ( MV_UPP >> 3 ) - 1 ) ;\n row_max = MIN ( row_max , ( MV_UPP >> 3 ) - 1 ) ;\n if ( x -> mv_col_min < col_min ) x -> mv_col_min = col_min ;\n if ( x -> mv_col_max > col_max ) x -> mv_col_max = col_max ;\n if ( x -> mv_row_min < row_min ) x -> mv_row_min = row_min ;\n if ( x -> mv_row_max > row_max ) x -> mv_row_max = row_max ;\n }"}
{"idx": 12076, "target": 0, "func": "static int _write_directory_descriptors ( struct archive_write * a , struct vdd * vdd , struct isoent * isoent , int depth ) {\n struct iso9660 * iso9660 = a -> format_data ;\n struct isoent * * enttbl ;\n unsigned char * p , * wb ;\n int i , r ;\n int dr_l ;\n p = wb = wb_buffptr ( a ) ;\n # define WD_REMAINING ( LOGICAL_BLOCK_SIZE - ( p - wb ) ) p += set_directory_record ( p , WD_REMAINING , isoent , iso9660 , DIR_REC_SELF , vdd -> vdd_type ) ;\n p += set_directory_record ( p , WD_REMAINING , isoent , iso9660 , DIR_REC_PARENT , vdd -> vdd_type ) ;\n if ( isoent -> children . cnt <= 0 || ( vdd -> vdd_type != VDD_JOLIET && ! iso9660 -> opt . rr && depth + 1 >= vdd -> max_depth ) ) {\n memset ( p , 0 , WD_REMAINING ) ;\n return ( wb_consume ( a , LOGICAL_BLOCK_SIZE ) ) ;\n }\n enttbl = isoent -> children_sorted ;\n for ( i = 0 ;\n i < isoent -> children . cnt ;\n i ++ ) {\n struct isoent * np = enttbl [ i ] ;\n struct isofile * file = np -> file ;\n if ( file -> hardlink_target != NULL ) file = file -> hardlink_target ;\n file -> cur_content = & ( file -> content ) ;\n do {\n dr_l = set_directory_record ( p , WD_REMAINING , np , iso9660 , DIR_REC_NORMAL , vdd -> vdd_type ) ;\n if ( dr_l == 0 ) {\n memset ( p , 0 , WD_REMAINING ) ;\n r = wb_consume ( a , LOGICAL_BLOCK_SIZE ) ;\n if ( r < 0 ) return ( r ) ;\n p = wb = wb_buffptr ( a ) ;\n dr_l = set_directory_record ( p , WD_REMAINING , np , iso9660 , DIR_REC_NORMAL , vdd -> vdd_type ) ;\n }\n p += dr_l ;\n file -> cur_content = file -> cur_content -> next ;\n }\n while ( file -> cur_content != NULL ) ;\n }\n memset ( p , 0 , WD_REMAINING ) ;\n return ( wb_consume ( a , LOGICAL_BLOCK_SIZE ) ) ;\n }"}
{"idx": 12077, "target": 1, "func": "static void T_UConverter_toUnicode_UTF32_LE ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n const unsigned char * mySource = ( unsigned char * ) args -> source ;\n UChar * myTarget = args -> target ;\n const unsigned char * sourceLimit = ( unsigned char * ) args -> sourceLimit ;\n const UChar * targetLimit = args -> targetLimit ;\n unsigned char * toUBytes = args -> converter -> toUBytes ;\n uint32_t ch , i ;\n if ( args -> converter -> toUnicodeStatus && myTarget < targetLimit ) {\n i = args -> converter -> toULength ;\n args -> converter -> toULength = 0 ;\n ch = args -> converter -> toUnicodeStatus - 1 ;\n args -> converter -> toUnicodeStatus = 0 ;\n goto morebytes ;\n }\n while ( mySource < sourceLimit && myTarget < targetLimit ) {\n i = 0 ;\n ch = 0 ;\n morebytes : while ( i < sizeof ( uint32_t ) ) {\n if ( mySource < sourceLimit ) {\n ch |= ( ( uint8_t ) ( * mySource ) ) << ( i * 8 ) ;\n toUBytes [ i ++ ] = ( char ) * ( mySource ++ ) ;\n }\n else {\n args -> converter -> toUnicodeStatus = ch + 1 ;\n args -> converter -> toULength = ( int8_t ) i ;\n goto donefornow ;\n }\n }\n if ( ch <= MAXIMUM_UTF && ! U_IS_SURROGATE ( ch ) ) {\n if ( ch <= MAXIMUM_UCS2 ) {\n * ( myTarget ++ ) = ( UChar ) ch ;\n }\n else {\n * ( myTarget ++ ) = U16_LEAD ( ch ) ;\n ch = U16_TRAIL ( ch ) ;\n if ( myTarget < targetLimit ) {\n * ( myTarget ++ ) = ( UChar ) ch ;\n }\n else {\n args -> converter -> UCharErrorBuffer [ 0 ] = ( UChar ) ch ;\n args -> converter -> UCharErrorBufferLength = 1 ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n }\n else {\n args -> converter -> toULength = ( int8_t ) i ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n }\n donefornow : if ( mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS ( * err ) ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n args -> target = myTarget ;\n args -> source = ( const char * ) mySource ;\n }"}
{"idx": 12078, "target": 0, "func": "static int dissect_field ( tvbuff_t * tvb , int offset , proto_tree * tree , lbmpdm_definition_field_t * field , gboolean string_field_names , int encoding ) {\n proto_item * field_item = NULL ;\n proto_tree * field_tree = NULL ;\n proto_item * ti = NULL ;\n int ofs = offset ;\n guint32 element_count = 0 ;\n guint32 idx ;\n int len_dissected = 0 ;\n field_item = proto_tree_add_item ( tree , hf_lbmpdm_field , tvb , offset , field -> len , ENC_NA ) ;\n field_tree = proto_item_add_subtree ( field_item , ett_lbmpdm_field ) ;\n ti = proto_tree_add_uint ( field_tree , hf_lbmpdm_field_id , tvb , 0 , 0 , field -> id ) ;\n PROTO_ITEM_SET_GENERATED ( ti ) ;\n if ( string_field_names ) {\n ti = proto_tree_add_string ( field_tree , hf_lbmpdm_field_string_name , tvb , 0 , 0 , field -> field_string_name ) ;\n }\n else {\n ti = proto_tree_add_uint ( field_tree , hf_lbmpdm_field_int_name , tvb , 0 , 0 , field -> field_int_name ) ;\n }\n PROTO_ITEM_SET_GENERATED ( ti ) ;\n ti = proto_tree_add_uint ( field_tree , hf_lbmpdm_field_type , tvb , 0 , 0 , field -> field_type ) ;\n PROTO_ITEM_SET_GENERATED ( ti ) ;\n if ( field -> num_array_elem == 0 ) {\n element_count = 1 ;\n }\n else {\n element_count = field -> num_array_elem ;\n if ( field -> fixed == PDM_DEFN_VARIABLE_LENGTH_FIELD ) {\n proto_tree_add_item ( field_tree , hf_lbmpdm_field_total_length , tvb , ofs , 4 , encoding ) ;\n len_dissected += 4 ;\n ofs += 4 ;\n }\n }\n for ( idx = 0 ;\n idx < element_count ;\n ++ idx ) {\n guint32 field_len = field -> len / element_count ;\n guint32 value_len = field_len ;\n int value_offset = ofs ;\n if ( field -> fixed == PDM_DEFN_VARIABLE_LENGTH_FIELD ) {\n proto_tree_add_item ( field_tree , hf_lbmpdm_field_length , tvb , ofs , 4 , encoding ) ;\n value_len = lbmpdm_fetch_uint32_encoded ( tvb , ofs , encoding ) ;\n field_len = value_len + 4 ;\n value_offset += 4 ;\n }\n else if ( field -> fixed_string_len > 0 ) {\n value_len = field -> fixed_string_len ;\n }\n dissect_field_value ( tvb , value_offset , field_tree , field -> base_type , value_len , encoding ) ;\n ofs += ( int ) field_len ;\n len_dissected += ( int ) field_len ;\n }\n return ( len_dissected ) ;\n }"}
{"idx": 12079, "target": 0, "func": "static void snoop_urb_data ( struct urb * urb , unsigned len ) {\n int i , size ;\n len = min ( len , usbfs_snoop_max ) ;\n if ( ! usbfs_snoop || len == 0 ) return ;\n if ( urb -> num_sgs == 0 ) {\n print_hex_dump ( KERN_DEBUG , \"data: \" , DUMP_PREFIX_NONE , 32 , 1 , urb -> transfer_buffer , len , 1 ) ;\n return ;\n }\n for ( i = 0 ;\n i < urb -> num_sgs && len ;\n i ++ ) {\n size = ( len > USB_SG_SIZE ) ? USB_SG_SIZE : len ;\n print_hex_dump ( KERN_DEBUG , \"data: \" , DUMP_PREFIX_NONE , 32 , 1 , sg_virt ( & urb -> sg [ i ] ) , size , 1 ) ;\n len -= size ;\n }\n }"}
{"idx": 12080, "target": 0, "func": "static int find_partition ( BlockBackend * blk , int partition , off_t * offset , off_t * size ) {\n struct partition_record mbr [ 4 ] ;\n uint8_t data [ MBR_SIZE ] ;\n int i ;\n int ext_partnum = 4 ;\n int ret ;\n ret = blk_pread ( blk , 0 , data , sizeof ( data ) ) ;\n if ( ret < 0 ) {\n error_report ( \"error while reading: %s\" , strerror ( - ret ) ) ;\n exit ( EXIT_FAILURE ) ;\n }\n if ( data [ 510 ] != 0x55 || data [ 511 ] != 0xaa ) {\n return - EINVAL ;\n }\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n read_partition ( & data [ 446 + 16 * i ] , & mbr [ i ] ) ;\n if ( ! mbr [ i ] . system || ! mbr [ i ] . nb_sectors_abs ) {\n continue ;\n }\n if ( mbr [ i ] . system == 0xF || mbr [ i ] . system == 0x5 ) {\n struct partition_record ext [ 4 ] ;\n uint8_t data1 [ MBR_SIZE ] ;\n int j ;\n ret = blk_pread ( blk , mbr [ i ] . start_sector_abs * MBR_SIZE , data1 , sizeof ( data1 ) ) ;\n if ( ret < 0 ) {\n error_report ( \"error while reading: %s\" , strerror ( - ret ) ) ;\n exit ( EXIT_FAILURE ) ;\n }\n for ( j = 0 ;\n j < 4 ;\n j ++ ) {\n read_partition ( & data1 [ 446 + 16 * j ] , & ext [ j ] ) ;\n if ( ! ext [ j ] . system || ! ext [ j ] . nb_sectors_abs ) {\n continue ;\n }\n if ( ( ext_partnum + j + 1 ) == partition ) {\n * offset = ( uint64_t ) ext [ j ] . start_sector_abs << 9 ;\n * size = ( uint64_t ) ext [ j ] . nb_sectors_abs << 9 ;\n return 0 ;\n }\n }\n ext_partnum += 4 ;\n }\n else if ( ( i + 1 ) == partition ) {\n * offset = ( uint64_t ) mbr [ i ] . start_sector_abs << 9 ;\n * size = ( uint64_t ) mbr [ i ] . nb_sectors_abs << 9 ;\n return 0 ;\n }\n }\n return - ENOENT ;\n }"}
{"idx": 12081, "target": 0, "func": "static int SnifferDecompress ( unsigned char * inbuf , size_t inlen , unsigned char * outbuf , size_t outlen , int * err , gchar * * err_info ) {\n unsigned char * pin = inbuf ;\n unsigned char * pout = outbuf ;\n unsigned char * pin_end = pin + inlen ;\n unsigned char * pout_end = pout + outlen ;\n unsigned int bit_mask ;\n unsigned int bit_value = 0 ;\n unsigned int code_type ;\n unsigned int code_low ;\n int length ;\n int offset ;\n if ( inlen > G_MAXUINT16 ) {\n return ( - 1 ) ;\n }\n bit_mask = 0 ;\n while ( pin < pin_end ) {\n bit_mask = bit_mask >> 1 ;\n if ( 0 == bit_mask ) {\n CHECK_INPUT_POINTER ( 3 ) ;\n bit_mask = 0x8000 ;\n bit_value = pletoh16 ( pin ) ;\n pin += 2 ;\n }\n if ( ! ( bit_mask & bit_value ) ) {\n CHECK_OUTPUT_LENGTH ( 1 ) ;\n * ( pout ++ ) = * ( pin ++ ) ;\n }\n else {\n code_type = ( unsigned int ) ( ( * pin ) >> 4 ) & 0xF ;\n code_low = ( unsigned int ) ( ( * pin ) & 0xF ) ;\n pin ++ ;\n switch ( code_type ) {\n case 0 : length = code_low + 3 ;\n APPEND_RLE_BYTE ( length ) ;\n break ;\n case 1 : CHECK_INPUT_POINTER ( 1 ) ;\n length = code_low + ( ( unsigned int ) ( * pin ++ ) << 4 ) + 19 ;\n APPEND_RLE_BYTE ( length ) ;\n break ;\n case 2 : FETCH_OFFSET_HIGH ;\n CHECK_INPUT_POINTER ( 1 ) ;\n length = ( unsigned int ) ( * pin ++ ) + 16 ;\n APPEND_LZW_STRING ( offset , length ) ;\n break ;\n default : FETCH_OFFSET_HIGH ;\n length = code_type ;\n APPEND_LZW_STRING ( offset , length ) ;\n break ;\n }\n }\n }\n return ( int ) ( pout - outbuf ) ;\n }"}
{"idx": 12082, "target": 0, "func": "static void h263_decode_dquant ( MpegEncContext * s ) {\n static const int8_t quant_tab [ 4 ] = {\n - 1 , - 2 , 1 , 2 }\n ;\n if ( s -> modified_quant ) {\n if ( get_bits1 ( & s -> gb ) ) s -> qscale = ff_modified_quant_tab [ get_bits1 ( & s -> gb ) ] [ s -> qscale ] ;\n else s -> qscale = get_bits ( & s -> gb , 5 ) ;\n }\n else s -> qscale += quant_tab [ get_bits ( & s -> gb , 2 ) ] ;\n ff_set_qscale ( s , s -> qscale ) ;\n }"}
{"idx": 12083, "target": 1, "func": "static gboolean k12_seek_read ( wtap * wth , gint64 seek_off , struct wtap_pkthdr * phdr , Buffer * buf , int * err , gchar * * err_info ) {\n k12_t * k12 = ( k12_t * ) wth -> priv ;\n guint8 * buffer ;\n gint len ;\n K12_DBG ( 5 , ( \"k12_seek_read: ENTER\" ) ) ;\n if ( file_seek ( wth -> random_fh , seek_off , SEEK_SET , err ) == - 1 ) {\n K12_DBG ( 5 , ( \"k12_seek_read: SEEK ERROR\" ) ) ;\n return FALSE ;\n }\n len = get_record ( k12 , wth -> random_fh , seek_off , TRUE , err , err_info ) ;\n if ( len < 0 ) {\n K12_DBG ( 5 , ( \"k12_seek_read: READ ERROR\" ) ) ;\n return FALSE ;\n }\n else if ( len < K12_RECORD_SRC_ID + 4 ) {\n K12_DBG ( 5 , ( \"k12_seek_read: SHORT READ\" ) ) ;\n * err = WTAP_ERR_SHORT_READ ;\n return FALSE ;\n }\n buffer = k12 -> rand_read_buff ;\n process_packet_data ( phdr , buf , buffer , len , k12 ) ;\n K12_DBG ( 5 , ( \"k12_seek_read: DONE OK\" ) ) ;\n return TRUE ;\n }"}
{"idx": 12084, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ClientHintsBrowserTest , ClientHintsLifetimeFollowedByNoClientHintHttpLocal ) {\n base : : HistogramTester histogram_tester ;\n ContentSettingsForOneType host_settings ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> GetSettingsForOneType ( CONTENT_SETTINGS_TYPE_CLIENT_HINTS , std : : string ( ) , & host_settings ) ;\n EXPECT_EQ ( 0u , host_settings . size ( ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , accept_ch_with_lifetime_http_local_url ( ) ) ;\n histogram_tester . ExpectUniqueSample ( \"ClientHints.UpdateEventCount\" , 1 , 1 ) ;\n content : : FetchHistogramsFromChildProcesses ( ) ;\n SubprocessMetricsProvider : : MergeHistogramDeltasForTesting ( ) ;\n histogram_tester . ExpectUniqueSample ( \"ClientHints.UpdateSize\" , 3 , 1 ) ;\n histogram_tester . ExpectUniqueSample ( \"ClientHints.PersistDuration\" , * 1000 , 1 ) ;\n base : : RunLoop ( ) . RunUntilIdle ( ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> GetSettingsForOneType ( CONTENT_SETTINGS_TYPE_CLIENT_HINTS , std : : string ( ) , & host_settings ) ;\n EXPECT_EQ ( 1u , host_settings . size ( ) ) ;\n SetClientHintExpectationsOnMainFrame ( true ) ;\n SetClientHintExpectationsOnSubresources ( true ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , without_accept_ch_without_lifetime_local_url ( ) ) ;\n # if defined ( OS_ANDROID ) EXPECT_EQ ( 4u , count_client_hints_headers_seen ( ) ) ;\n # else EXPECT_EQ ( 6u , count_client_hints_headers_seen ( ) ) ;\n # endif }"}
{"idx": 12085, "target": 0, "func": "static int32_t _appendLanguageToLanguageTag ( const char * localeID , char * appendAt , int32_t capacity , UBool strict , UErrorCode * status ) {\n char buf [ ULOC_LANG_CAPACITY ] ;\n UErrorCode tmpStatus = U_ZERO_ERROR ;\n int32_t len , i ;\n int32_t reslen = 0 ;\n if ( U_FAILURE ( * status ) ) {\n return 0 ;\n }\n len = uloc_getLanguage ( localeID , buf , sizeof ( buf ) , & tmpStatus ) ;\n if ( U_FAILURE ( tmpStatus ) || tmpStatus == U_STRING_NOT_TERMINATED_WARNING ) {\n if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n return 0 ;\n }\n len = 0 ;\n }\n if ( len == 0 ) {\n if ( reslen < capacity ) {\n uprv_memcpy ( appendAt + reslen , LANG_UND , uprv_min ( LANG_UND_LEN , capacity - reslen ) ) ;\n }\n reslen += LANG_UND_LEN ;\n }\n else if ( ! _isLanguageSubtag ( buf , len ) ) {\n if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n return 0 ;\n }\n if ( reslen < capacity ) {\n uprv_memcpy ( appendAt + reslen , LANG_UND , uprv_min ( LANG_UND_LEN , capacity - reslen ) ) ;\n }\n reslen += LANG_UND_LEN ;\n }\n else {\n for ( i = 0 ;\n i < UPRV_LENGTHOF ( DEPRECATEDLANGS ) ;\n i += 2 ) {\n if ( uprv_compareInvCharsAsAscii ( buf , DEPRECATEDLANGS [ i ] ) == 0 ) {\n uprv_strcpy ( buf , DEPRECATEDLANGS [ i + 1 ] ) ;\n len = ( int32_t ) uprv_strlen ( buf ) ;\n break ;\n }\n }\n if ( reslen < capacity ) {\n uprv_memcpy ( appendAt + reslen , buf , uprv_min ( len , capacity - reslen ) ) ;\n }\n reslen += len ;\n }\n u_terminateChars ( appendAt , capacity , reslen , status ) ;\n return reslen ;\n }"}
{"idx": 12086, "target": 0, "func": "static int fake_getnameinfo ( const struct sockaddr * sa , size_t salen , char * host , size_t hostlen , char * serv , size_t servlen , int flags ) {\n struct sockaddr_in * sin = ( struct sockaddr_in * ) sa ;\n if ( serv != NULL ) {\n char tmpserv [ 16 ] ;\n evutil_snprintf ( tmpserv , sizeof ( tmpserv ) , \"%d\" , ntohs ( sin -> sin_port ) ) ;\n if ( strlcpy ( serv , tmpserv , servlen ) >= servlen ) return ( - 1 ) ;\n }\n if ( host != NULL ) {\n if ( flags & NI_NUMERICHOST ) {\n if ( strlcpy ( host , inet_ntoa ( sin -> sin_addr ) , hostlen ) >= hostlen ) return ( - 1 ) ;\n else return ( 0 ) ;\n }\n else {\n struct hostent * hp ;\n hp = gethostbyaddr ( ( char * ) & sin -> sin_addr , sizeof ( struct in_addr ) , AF_INET ) ;\n if ( hp == NULL ) return ( - 2 ) ;\n if ( strlcpy ( host , hp -> h_name , hostlen ) >= hostlen ) return ( - 1 ) ;\n else return ( 0 ) ;\n }\n }\n return ( 0 ) ;\n }"}
{"idx": 12087, "target": 0, "func": "void qbus_free ( BusState * bus ) {\n DeviceState * dev ;\n while ( ( dev = QLIST_FIRST ( & bus -> children ) ) != NULL ) {\n qdev_free ( dev ) ;\n }\n if ( bus -> parent ) {\n QLIST_REMOVE ( bus , sibling ) ;\n bus -> parent -> num_child_bus -- ;\n }\n if ( bus -> qdev_allocated ) {\n qemu_free ( bus ) ;\n }\n }"}
{"idx": 12088, "target": 0, "func": "static int rm_sync ( AVFormatContext * s , int64_t * timestamp , int * flags , int * stream_index , int64_t * pos ) {\n RMDemuxContext * rm = s -> priv_data ;\n AVIOContext * pb = s -> pb ;\n AVStream * st ;\n uint32_t state = 0xFFFFFFFF ;\n while ( ! avio_feof ( pb ) ) {\n int len , num , i ;\n int mlti_id ;\n * pos = avio_tell ( pb ) - 3 ;\n if ( rm -> remaining_len > 0 ) {\n num = rm -> current_stream ;\n mlti_id = 0 ;\n len = rm -> remaining_len ;\n * timestamp = AV_NOPTS_VALUE ;\n * flags = 0 ;\n }\n else {\n state = ( state << 8 ) + avio_r8 ( pb ) ;\n if ( state == MKBETAG ( 'I' , 'N' , 'D' , 'X' ) ) {\n int n_pkts , expected_len ;\n len = avio_rb32 ( pb ) ;\n avio_skip ( pb , 2 ) ;\n n_pkts = avio_rb32 ( pb ) ;\n expected_len = 20 + n_pkts * 14 ;\n if ( len == 20 ) len = expected_len ;\n else if ( len != expected_len ) av_log ( s , AV_LOG_WARNING , \"Index size %d (%d pkts) is wrong, should be %d.\\n\" , len , n_pkts , expected_len ) ;\n len -= 14 ;\n if ( len < 0 ) continue ;\n goto skip ;\n }\n else if ( state == MKBETAG ( 'D' , 'A' , 'T' , 'A' ) ) {\n av_log ( s , AV_LOG_WARNING , \"DATA tag in middle of chunk, file may be broken.\\n\" ) ;\n }\n if ( state > ( unsigned ) 0xFFFF || state <= 12 ) continue ;\n len = state - 12 ;\n state = 0xFFFFFFFF ;\n num = avio_rb16 ( pb ) ;\n * timestamp = avio_rb32 ( pb ) ;\n mlti_id = ( avio_r8 ( pb ) >> 1 ) - 1 << 16 ;\n mlti_id = FFMAX ( mlti_id , 0 ) ;\n * flags = avio_r8 ( pb ) ;\n }\n for ( i = 0 ;\n i < s -> nb_streams ;\n i ++ ) {\n st = s -> streams [ i ] ;\n if ( mlti_id + num == st -> id ) break ;\n }\n if ( i == s -> nb_streams ) {\n skip : avio_skip ( pb , len ) ;\n rm -> remaining_len = 0 ;\n continue ;\n }\n * stream_index = i ;\n return len ;\n }\n return - 1 ;\n }"}
{"idx": 12089, "target": 1, "func": "static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 12090, "target": 0, "func": "static const guint8 * composite_get_ptr ( tvbuff_t * tvb , guint abs_offset , guint abs_length ) {\n struct tvb_composite * composite_tvb = ( struct tvb_composite * ) tvb ;\n guint i , num_members ;\n tvb_comp_t * composite ;\n tvbuff_t * member_tvb = NULL ;\n guint member_offset ;\n GSList * slist ;\n composite = & composite_tvb -> composite ;\n num_members = g_slist_length ( composite -> tvbs ) ;\n for ( i = 0 ;\n i < num_members ;\n i ++ ) {\n if ( abs_offset <= composite -> end_offsets [ i ] ) {\n slist = g_slist_nth ( composite -> tvbs , i ) ;\n member_tvb = ( tvbuff_t * ) slist -> data ;\n break ;\n }\n }\n if ( ! member_tvb ) {\n DISSECTOR_ASSERT ( abs_offset == tvb -> length && abs_length == 0 ) ;\n return \"\" ;\n }\n member_offset = abs_offset - composite -> start_offsets [ i ] ;\n if ( tvb_bytes_exist ( member_tvb , member_offset , abs_length ) ) {\n DISSECTOR_ASSERT ( ! tvb -> real_data ) ;\n return tvb_get_ptr ( member_tvb , member_offset , abs_length ) ;\n }\n else {\n void * real_data = g_malloc ( tvb -> length ) ;\n tvb_memcpy ( tvb , real_data , 0 , tvb -> length ) ;\n tvb -> real_data = ( const guint8 * ) real_data ;\n return tvb -> real_data + abs_offset ;\n }\n DISSECTOR_ASSERT_NOT_REACHED ( ) ;\n }"}
{"idx": 12091, "target": 0, "func": "TEST_F ( BrowsingDataRemoverImplTest , RemoveQuotaManagedIgnoreExtensionsAndDevTools ) {\n # if BUILDFLAG ( ENABLE_EXTENSIONS ) CreateMockPolicy ( ) ;\n # endif BlockUntilBrowsingDataRemoved ( base : : Time ( ) , base : : Time : : Max ( ) , BrowsingDataRemover : : REMOVE_APPCACHE | BrowsingDataRemover : : REMOVE_SERVICE_WORKERS | BrowsingDataRemover : : REMOVE_CACHE_STORAGE | BrowsingDataRemover : : REMOVE_FILE_SYSTEMS | BrowsingDataRemover : : REMOVE_INDEXEDDB | BrowsingDataRemover : : REMOVE_WEBSQL , false ) ;\n EXPECT_EQ ( BrowsingDataRemover : : REMOVE_APPCACHE | BrowsingDataRemover : : REMOVE_SERVICE_WORKERS | BrowsingDataRemover : : REMOVE_CACHE_STORAGE | BrowsingDataRemover : : REMOVE_FILE_SYSTEMS | BrowsingDataRemover : : REMOVE_INDEXEDDB | BrowsingDataRemover : : REMOVE_WEBSQL , GetRemovalMask ( ) ) ;\n EXPECT_EQ ( BrowsingDataHelper : : UNPROTECTED_WEB , GetOriginTypeMask ( ) ) ;\n StoragePartitionRemovalData removal_data = GetStoragePartitionRemovalData ( ) ;\n EXPECT_EQ ( removal_data . remove_mask , StoragePartition : : REMOVE_DATA_MASK_FILE_SYSTEMS | StoragePartition : : REMOVE_DATA_MASK_WEBSQL | StoragePartition : : REMOVE_DATA_MASK_APPCACHE | StoragePartition : : REMOVE_DATA_MASK_SERVICE_WORKERS | StoragePartition : : REMOVE_DATA_MASK_CACHE_STORAGE | StoragePartition : : REMOVE_DATA_MASK_INDEXEDDB ) ;\n EXPECT_EQ ( removal_data . quota_storage_remove_mask , StoragePartition : : QUOTA_MANAGED_STORAGE_MASK_ALL ) ;\n EXPECT_FALSE ( removal_data . origin_matcher . Run ( kOriginExt , mock_policy ( ) ) ) ;\n EXPECT_FALSE ( removal_data . origin_matcher . Run ( kOriginDevTools , mock_policy ( ) ) ) ;\n }"}
{"idx": 12092, "target": 0, "func": "TSReturnCode TSHttpTxnOutgoingAddrSet ( TSHttpTxn txnp , const struct sockaddr * addr ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n sm -> ua_session -> set_outbound_port ( ats_ip_port_host_order ( addr ) ) ;\n sm -> ua_session -> set_outbound_ip ( IpAddr ( addr ) ) ;\n return TS_ERROR ;\n }"}
{"idx": 12093, "target": 0, "func": "static void rtp_fragment_init ( void ) {\n reassembly_table_init ( & rtp_reassembly_table , & addresses_reassembly_table_functions ) ;\n }"}
{"idx": 12094, "target": 0, "func": "static int dissect_h245_FlowControlCommand ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_FlowControlCommand , FlowControlCommand_sequence ) ;\n return offset ;\n }"}
{"idx": 12095, "target": 0, "func": "int64_t vp9_rd_pick_inter_mode_sb_seg_skip ( VP9_COMP * cpi , MACROBLOCK * x , int * returnrate , int64_t * returndistortion , BLOCK_SIZE bsize , PICK_MODE_CONTEXT * ctx , int64_t best_rd_so_far ) {\n VP9_COMMON * const cm = & cpi -> common ;\n RD_OPT * const rd_opt = & cpi -> rd ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n MB_MODE_INFO * const mbmi = & xd -> mi [ 0 ] . src_mi -> mbmi ;\n unsigned char segment_id = mbmi -> segment_id ;\n const int comp_pred = 0 ;\n int i ;\n int64_t best_tx_diff [ TX_MODES ] ;\n int64_t best_pred_diff [ REFERENCE_MODES ] ;\n int64_t best_filter_diff [ SWITCHABLE_FILTER_CONTEXTS ] ;\n unsigned int ref_costs_single [ MAX_REF_FRAMES ] , ref_costs_comp [ MAX_REF_FRAMES ] ;\n vp9_prob comp_mode_p ;\n INTERP_FILTER best_filter = SWITCHABLE ;\n int64_t this_rd = INT64_MAX ;\n int rate2 = 0 ;\n const int64_t distortion2 = 0 ;\n x -> skip_encode = cpi -> sf . skip_encode_frame && x -> q_index < QIDX_SKIP_THRESH ;\n estimate_ref_frame_costs ( cm , xd , segment_id , ref_costs_single , ref_costs_comp , & comp_mode_p ) ;\n for ( i = 0 ;\n i < MAX_REF_FRAMES ;\n ++ i ) x -> pred_sse [ i ] = INT_MAX ;\n for ( i = LAST_FRAME ;\n i < MAX_REF_FRAMES ;\n ++ i ) x -> pred_mv_sad [ i ] = INT_MAX ;\n * returnrate = INT_MAX ;\n assert ( vp9_segfeature_active ( & cm -> seg , segment_id , SEG_LVL_SKIP ) ) ;\n mbmi -> mode = ZEROMV ;\n mbmi -> uv_mode = DC_PRED ;\n mbmi -> ref_frame [ 0 ] = LAST_FRAME ;\n mbmi -> ref_frame [ 1 ] = NONE ;\n mbmi -> mv [ 0 ] . as_int = 0 ;\n x -> skip = 1 ;\n rd_opt -> mask_filter = 0 ;\n for ( i = 0 ;\n i < SWITCHABLE_FILTER_CONTEXTS ;\n ++ i ) rd_opt -> filter_cache [ i ] = INT64_MAX ;\n if ( cm -> interp_filter != BILINEAR ) {\n best_filter = EIGHTTAP ;\n if ( cm -> interp_filter == SWITCHABLE && x -> source_variance >= cpi -> sf . disable_filter_search_var_thresh ) {\n int rs ;\n int best_rs = INT_MAX ;\n for ( i = 0 ;\n i < SWITCHABLE_FILTERS ;\n ++ i ) {\n mbmi -> interp_filter = i ;\n rs = vp9_get_switchable_rate ( cpi ) ;\n if ( rs < best_rs ) {\n best_rs = rs ;\n best_filter = mbmi -> interp_filter ;\n }\n }\n }\n }\n if ( cm -> interp_filter == SWITCHABLE ) {\n mbmi -> interp_filter = best_filter ;\n rate2 += vp9_get_switchable_rate ( cpi ) ;\n }\n else {\n mbmi -> interp_filter = cm -> interp_filter ;\n }\n if ( cm -> reference_mode == REFERENCE_MODE_SELECT ) rate2 += vp9_cost_bit ( comp_mode_p , comp_pred ) ;\n rate2 += ref_costs_single [ LAST_FRAME ] ;\n this_rd = RDCOST ( x -> rdmult , x -> rddiv , rate2 , distortion2 ) ;\n * returnrate = rate2 ;\n * returndistortion = distortion2 ;\n if ( this_rd >= best_rd_so_far ) return INT64_MAX ;\n assert ( ( cm -> interp_filter == SWITCHABLE ) || ( cm -> interp_filter == mbmi -> interp_filter ) ) ;\n update_rd_thresh_fact ( cpi , bsize , THR_ZEROMV ) ;\n vp9_zero ( best_pred_diff ) ;\n vp9_zero ( best_filter_diff ) ;\n vp9_zero ( best_tx_diff ) ;\n if ( ! x -> select_tx_size ) swap_block_ptr ( x , ctx , 1 , 0 , 0 , MAX_MB_PLANE ) ;\n store_coding_context ( x , ctx , THR_ZEROMV , best_pred_diff , best_tx_diff , best_filter_diff , 0 ) ;\n return this_rd ;\n }"}
{"idx": 12096, "target": 0, "func": "static int selinux_revalidate_file_permission ( struct file * file , int mask ) {\n const struct cred * cred = current_cred ( ) ;\n struct inode * inode = file_inode ( file ) ;\n if ( ( file -> f_flags & O_APPEND ) && ( mask & MAY_WRITE ) ) mask |= MAY_APPEND ;\n return file_has_perm ( cred , file , file_mask_to_av ( inode -> i_mode , mask ) ) ;\n }"}
{"idx": 12097, "target": 0, "func": "REGRESSION_TEST ( SDK_API_TSNetVConn ) ( RegressionTest * test , int , int * pstatus ) {\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n SDK_NetVConn_Params * params = new SDK_NetVConn_Params ( \"TSNetAccept\" , test , pstatus ) ;\n params -> port = 12345 ;\n TSCont server_cont = TSContCreate ( server_handler , TSMutexCreate ( ) ) ;\n TSCont client_cont = TSContCreate ( client_handler , TSMutexCreate ( ) ) ;\n TSContDataSet ( server_cont , params ) ;\n TSContDataSet ( client_cont , params ) ;\n TSNetAccept ( server_cont , params -> port , - 1 , 0 ) ;\n IpEndpoint addr ;\n ats_ip4_set ( & addr , htonl ( INADDR_LOOPBACK ) , htons ( params -> port ) ) ;\n TSNetConnect ( client_cont , & addr . sa ) ;\n }"}
{"idx": 12098, "target": 0, "func": "static int dissect_pvfs_mgmt_perf_stat ( tvbuff_t * tvb , proto_tree * tree , int offset , int nItem ) {\n proto_tree * stat_tree ;\n stat_tree = proto_tree_add_subtree_format ( tree , tvb , offset , 48 , ett_pvfs_mgmt_perf_stat , NULL , \"Stat Array - Element %d\" , nItem ) ;\n proto_tree_add_item ( stat_tree , hf_pvfs_mgmt_perf_stat_valid_flag , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( stat_tree , hf_pvfs_mgmt_perf_stat_id , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n offset = dissect_pvfs_uint64 ( tvb , stat_tree , offset , hf_pvfs_start_time_ms , NULL ) ;\n offset = dissect_pvfs_uint64 ( tvb , stat_tree , offset , hf_pvfs_bytes_written , NULL ) ;\n offset = dissect_pvfs_uint64 ( tvb , stat_tree , offset , hf_pvfs_bytes_read , NULL ) ;\n offset = dissect_pvfs_uint64 ( tvb , stat_tree , offset , hf_pvfs_metadata_write , NULL ) ;\n offset = dissect_pvfs_uint64 ( tvb , stat_tree , offset , hf_pvfs_metadata_read , NULL ) ;\n return offset ;\n }"}
{"idx": 12099, "target": 1, "func": "static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING ) ;\n # ifdef _MSC_VER # pragma warning ( push ) # pragma warning ( disable : 4090 ) # endif DEFINE_LHASH_OF ( OPENSSL_CSTRING )"}
{"idx": 12100, "target": 0, "func": "static bool opcode_matches ( uint8_t * opcode , const TPRInstruction * instr ) {\n return opcode [ 0 ] == instr -> opcode && ( ! ( instr -> flags & TPR_INSTR_ABS_MODRM ) || is_abs_modrm ( opcode [ 1 ] ) ) && ( ! ( instr -> flags & TPR_INSTR_MATCH_MODRM_REG ) || modrm_reg ( opcode [ 1 ] ) == instr -> modrm_reg ) ;\n }"}
{"idx": 12101, "target": 0, "func": "static void main_free1 ( void * opaque , void * ptr ) {\n free ( ptr ) ;\n }"}
{"idx": 12102, "target": 0, "func": "int EVP_EncryptUpdate ( EVP_CIPHER_CTX * ctx , unsigned char * out , int * outl , const unsigned char * in , int inl ) {\n int i , j , bl ;\n if ( ctx -> cipher -> flags & EVP_CIPH_FLAG_CUSTOM_CIPHER ) {\n i = ctx -> cipher -> do_cipher ( ctx , out , in , inl ) ;\n if ( i < 0 ) return 0 ;\n else * outl = i ;\n return 1 ;\n }\n if ( inl <= 0 ) {\n * outl = 0 ;\n return inl == 0 ;\n }\n if ( ctx -> buf_len == 0 && ( inl & ( ctx -> block_mask ) ) == 0 ) {\n if ( ctx -> cipher -> do_cipher ( ctx , out , in , inl ) ) {\n * outl = inl ;\n return 1 ;\n }\n else {\n * outl = 0 ;\n return 0 ;\n }\n }\n i = ctx -> buf_len ;\n bl = ctx -> cipher -> block_size ;\n OPENSSL_assert ( bl <= ( int ) sizeof ( ctx -> buf ) ) ;\n if ( i != 0 ) {\n if ( bl - i > inl ) {\n memcpy ( & ( ctx -> buf [ i ] ) , in , inl ) ;\n ctx -> buf_len += inl ;\n * outl = 0 ;\n return 1 ;\n }\n else {\n j = bl - i ;\n memcpy ( & ( ctx -> buf [ i ] ) , in , j ) ;\n if ( ! ctx -> cipher -> do_cipher ( ctx , out , ctx -> buf , bl ) ) return 0 ;\n inl -= j ;\n in += j ;\n out += bl ;\n * outl = bl ;\n }\n }\n else * outl = 0 ;\n i = inl & ( bl - 1 ) ;\n inl -= i ;\n if ( inl > 0 ) {\n if ( ! ctx -> cipher -> do_cipher ( ctx , out , in , inl ) ) return 0 ;\n * outl += inl ;\n }\n if ( i != 0 ) memcpy ( ctx -> buf , & ( in [ inl ] ) , i ) ;\n ctx -> buf_len = i ;\n return 1 ;\n }"}
{"idx": 12103, "target": 0, "func": "static int opt_show_ ## section ( const char * opt , const char * arg ) {\n mark_section_show_entries ( SECTION_ID_ ## target_section_id , 1 , NULL ) ;\n return 0 ;\n }\n DEFINE_OPT_SHOW_SECTION ( chapters , CHAPTERS ) DEFINE_OPT_SHOW_SECTION ( error , ERROR ) DEFINE_OPT_SHOW_SECTION ( format , FORMAT ) DEFINE_OPT_SHOW_SECTION ( frames , FRAMES ) DEFINE_OPT_SHOW_SECTION ( library_versions , LIBRARY_VERSIONS ) DEFINE_OPT_SHOW_SECTION ( packets , PACKETS ) DEFINE_OPT_SHOW_SECTION ( pixel_formats , PIXEL_FORMATS ) DEFINE_OPT_SHOW_SECTION ( program_version , PROGRAM_VERSION )"}
{"idx": 12104, "target": 0, "func": "static int dissect_h225_T_h245Route ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_T_h245Route , T_h245Route_sequence_of ) ;\n return offset ;\n }"}
{"idx": 12105, "target": 0, "func": "static int dissect_h245_T_h223MultiplexTableCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_h223MultiplexTableCapability , T_h223MultiplexTableCapability_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 12106, "target": 0, "func": "static int compress_filter_close ( struct archive_read_filter * self ) {\n struct private_data * state = ( struct private_data * ) self -> data ;\n free ( state -> out_block ) ;\n free ( state ) ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 12107, "target": 0, "func": "int qdev_init ( DeviceState * dev ) {\n int rc ;\n assert ( dev -> state == DEV_STATE_CREATED ) ;\n rc = dev -> info -> init ( dev , dev -> info ) ;\n if ( rc < 0 ) {\n qdev_free ( dev ) ;\n return rc ;\n }\n qemu_register_reset ( qdev_reset , dev ) ;\n if ( dev -> info -> vmsd ) vmstate_register ( - 1 , dev -> info -> vmsd , dev ) ;\n dev -> state = DEV_STATE_INITIALIZED ;\n return 0 ;\n }"}
{"idx": 12108, "target": 0, "func": "static void dct_unquantize_h263_intra_c ( MpegEncContext * s , int16_t * block , int n , int qscale ) {\n int i , level , qmul , qadd ;\n int nCoeffs ;\n assert ( s -> block_last_index [ n ] >= 0 ) ;\n qmul = qscale << 1 ;\n if ( ! s -> h263_aic ) {\n if ( n < 4 ) block [ 0 ] = block [ 0 ] * s -> y_dc_scale ;\n else block [ 0 ] = block [ 0 ] * s -> c_dc_scale ;\n qadd = ( qscale - 1 ) | 1 ;\n }\n else {\n qadd = 0 ;\n }\n if ( s -> ac_pred ) nCoeffs = 63 ;\n else nCoeffs = s -> inter_scantable . raster_end [ s -> block_last_index [ n ] ] ;\n for ( i = 1 ;\n i <= nCoeffs ;\n i ++ ) {\n level = block [ i ] ;\n if ( level ) {\n if ( level < 0 ) {\n level = level * qmul - qadd ;\n }\n else {\n level = level * qmul + qadd ;\n }\n block [ i ] = level ;\n }\n }\n }"}
{"idx": 12109, "target": 0, "func": "static inline void tb_page_remove ( TranslationBlock * * ptb , TranslationBlock * tb ) {\n TranslationBlock * tb1 ;\n unsigned int n1 ;\n for ( ;\n ;\n ) {\n tb1 = * ptb ;\n n1 = ( uintptr_t ) tb1 & 3 ;\n tb1 = ( TranslationBlock * ) ( ( uintptr_t ) tb1 & ~ 3 ) ;\n if ( tb1 == tb ) {\n * ptb = tb1 -> page_next [ n1 ] ;\n break ;\n }\n ptb = & tb1 -> page_next [ n1 ] ;\n }\n }"}
{"idx": 12110, "target": 0, "func": "static void qemu_tcg_init_vcpu ( CPUState * cpu ) {\n if ( ! tcg_cpu_thread ) {\n cpu -> thread = g_malloc0 ( sizeof ( QemuThread ) ) ;\n cpu -> halt_cond = g_malloc0 ( sizeof ( QemuCond ) ) ;\n qemu_cond_init ( cpu -> halt_cond ) ;\n tcg_halt_cond = cpu -> halt_cond ;\n qemu_thread_create ( cpu -> thread , qemu_tcg_cpu_thread_fn , cpu , QEMU_THREAD_JOINABLE ) ;\n # ifdef _WIN32 cpu -> hThread = qemu_thread_get_handle ( cpu -> thread ) ;\n # endif while ( ! cpu -> created ) {\n qemu_cond_wait ( & qemu_cpu_cond , & qemu_global_mutex ) ;\n }\n tcg_cpu_thread = cpu -> thread ;\n }\n else {\n cpu -> thread = tcg_cpu_thread ;\n cpu -> halt_cond = tcg_halt_cond ;\n }\n }"}
{"idx": 12111, "target": 0, "func": "static int vc1_decode_p_mb_intfi ( VC1Context * v ) {\n MpegEncContext * s = & v -> s ;\n GetBitContext * gb = & s -> gb ;\n int i ;\n int mb_pos = s -> mb_x + s -> mb_y * s -> mb_stride ;\n int cbp = 0 ;\n int mqdiff , mquant ;\n int ttmb = v -> ttfrm ;\n int mb_has_coeffs = 1 ;\n int dmv_x , dmv_y ;\n int val ;\n int first_block = 1 ;\n int dst_idx , off ;\n int pred_flag ;\n int block_cbp = 0 , pat , block_tt = 0 ;\n int idx_mbmode = 0 ;\n mquant = v -> pq ;\n idx_mbmode = get_vlc2 ( gb , v -> mbmode_vlc -> table , VC1_IF_MBMODE_VLC_BITS , 2 ) ;\n if ( idx_mbmode <= 1 ) {\n s -> mb_intra = v -> is_intra [ s -> mb_x ] = 1 ;\n s -> current_picture . motion_val [ 1 ] [ s -> block_index [ 0 ] + v -> blocks_off ] [ 0 ] = 0 ;\n s -> current_picture . motion_val [ 1 ] [ s -> block_index [ 0 ] + v -> blocks_off ] [ 1 ] = 0 ;\n s -> current_picture . mb_type [ mb_pos + v -> mb_off ] = MB_TYPE_INTRA ;\n GET_MQUANT ( ) ;\n s -> current_picture . qscale_table [ mb_pos ] = mquant ;\n s -> y_dc_scale = s -> y_dc_scale_table [ mquant ] ;\n s -> c_dc_scale = s -> c_dc_scale_table [ mquant ] ;\n v -> s . ac_pred = v -> acpred_plane [ mb_pos ] = get_bits1 ( gb ) ;\n mb_has_coeffs = idx_mbmode & 1 ;\n if ( mb_has_coeffs ) cbp = 1 + get_vlc2 ( & v -> s . gb , v -> cbpcy_vlc -> table , VC1_ICBPCY_VLC_BITS , 2 ) ;\n dst_idx = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n s -> dc_val [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n v -> mb_type [ 0 ] [ s -> block_index [ i ] ] = 1 ;\n dst_idx += i >> 2 ;\n val = ( ( cbp >> ( 5 - i ) ) & 1 ) ;\n v -> a_avail = v -> c_avail = 0 ;\n if ( i == 2 || i == 3 || ! s -> first_slice_line ) v -> a_avail = v -> mb_type [ 0 ] [ s -> block_index [ i ] - s -> block_wrap [ i ] ] ;\n if ( i == 1 || i == 3 || s -> mb_x ) v -> c_avail = v -> mb_type [ 0 ] [ s -> block_index [ i ] - 1 ] ;\n vc1_decode_intra_block ( v , s -> block [ i ] , i , val , mquant , ( i & 4 ) ? v -> codingset2 : v -> codingset ) ;\n if ( ( i > 3 ) && ( s -> flags & CODEC_FLAG_GRAY ) ) continue ;\n v -> vc1dsp . vc1_inv_trans_8x8 ( s -> block [ i ] ) ;\n off = ( i & 4 ) ? 0 : ( ( i & 1 ) * 8 + ( i & 2 ) * 4 * s -> linesize ) ;\n off += v -> cur_field_type ? ( ( i & 4 ) ? s -> current_picture_ptr -> f . linesize [ 1 ] : s -> current_picture_ptr -> f . linesize [ 0 ] ) : 0 ;\n s -> dsp . put_signed_pixels_clamped ( s -> block [ i ] , s -> dest [ dst_idx ] + off , ( i & 4 ) ? s -> uvlinesize : s -> linesize ) ;\n }\n }\n else {\n s -> mb_intra = v -> is_intra [ s -> mb_x ] = 0 ;\n s -> current_picture . mb_type [ mb_pos + v -> mb_off ] = MB_TYPE_16x16 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) v -> mb_type [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n if ( idx_mbmode <= 5 ) {\n dmv_x = dmv_y = pred_flag = 0 ;\n if ( idx_mbmode & 1 ) {\n get_mvdata_interlaced ( v , & dmv_x , & dmv_y , & pred_flag ) ;\n }\n vc1_pred_mv ( v , 0 , dmv_x , dmv_y , 1 , v -> range_x , v -> range_y , v -> mb_type [ 0 ] , pred_flag , 0 ) ;\n vc1_mc_1mv ( v , 0 ) ;\n mb_has_coeffs = ! ( idx_mbmode & 2 ) ;\n }\n else {\n v -> fourmvbp = get_vlc2 ( gb , v -> fourmvbp_vlc -> table , VC1_4MV_BLOCK_PATTERN_VLC_BITS , 1 ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( i < 4 ) {\n dmv_x = dmv_y = pred_flag = 0 ;\n val = ( ( v -> fourmvbp >> ( 3 - i ) ) & 1 ) ;\n if ( val ) {\n get_mvdata_interlaced ( v , & dmv_x , & dmv_y , & pred_flag ) ;\n }\n vc1_pred_mv ( v , i , dmv_x , dmv_y , 0 , v -> range_x , v -> range_y , v -> mb_type [ 0 ] , pred_flag , 0 ) ;\n vc1_mc_4mv_luma ( v , i , 0 ) ;\n }\n else if ( i == 4 ) vc1_mc_4mv_chroma ( v , 0 ) ;\n }\n mb_has_coeffs = idx_mbmode & 1 ;\n }\n if ( mb_has_coeffs ) cbp = 1 + get_vlc2 ( & v -> s . gb , v -> cbpcy_vlc -> table , VC1_CBPCY_P_VLC_BITS , 2 ) ;\n if ( cbp ) {\n GET_MQUANT ( ) ;\n }\n s -> current_picture . qscale_table [ mb_pos ] = mquant ;\n if ( ! v -> ttmbf && cbp ) {\n ttmb = get_vlc2 ( gb , ff_vc1_ttmb_vlc [ v -> tt_index ] . table , VC1_TTMB_VLC_BITS , 2 ) ;\n }\n dst_idx = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n s -> dc_val [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n dst_idx += i >> 2 ;\n val = ( ( cbp >> ( 5 - i ) ) & 1 ) ;\n off = ( i & 4 ) ? 0 : ( i & 1 ) * 8 + ( i & 2 ) * 4 * s -> linesize ;\n if ( v -> cur_field_type ) off += ( i & 4 ) ? s -> current_picture_ptr -> f . linesize [ 1 ] : s -> current_picture_ptr -> f . linesize [ 0 ] ;\n if ( val ) {\n pat = vc1_decode_p_block ( v , s -> block [ i ] , i , mquant , ttmb , first_block , s -> dest [ dst_idx ] + off , ( i & 4 ) ? s -> uvlinesize : s -> linesize , ( i & 4 ) && ( s -> flags & CODEC_FLAG_GRAY ) , & block_tt ) ;\n block_cbp |= pat << ( i << 2 ) ;\n if ( ! v -> ttmbf && ttmb < 8 ) ttmb = - 1 ;\n first_block = 0 ;\n }\n }\n }\n if ( s -> mb_x == s -> mb_width - 1 ) memmove ( v -> is_intra_base , v -> is_intra , sizeof ( v -> is_intra_base [ 0 ] ) * s -> mb_stride ) ;\n return 0 ;\n }"}
{"idx": 12112, "target": 0, "func": "static Buf _build_rc_buf ( int rc , uint16_t rpc_version ) {\n Buf buf = NULL ;\n slurm_msg_t msg ;\n return_code_msg_t data ;\n data . return_code = rc ;\n slurm_msg_t_init ( & msg ) ;\n msg . msg_type = RESPONSE_SLURM_RC ;\n msg . data = & data ;\n buf = init_buf ( 128 ) ;\n pack16 ( msg . msg_type , buf ) ;\n if ( pack_msg ( & msg , buf ) != SLURM_SUCCESS ) FREE_NULL_BUFFER ( buf ) ;\n return buf ;\n }"}
{"idx": 12113, "target": 0, "func": "static int dissect_pcp_message_error ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , int offset ) {\n gint32 error_num ;\n pcp_conv_info_t * pcp_conv_info ;\n col_append_str ( pinfo -> cinfo , COL_INFO , \"[ERROR] \" ) ;\n proto_tree_add_item ( tree , hf_pcp_pdu_error , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n error_num = tvb_get_ntohl ( tvb , offset ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"error=%s \" , val_to_str ( error_num , packettypenames_errors , \"Unknown Error:%i\" ) ) ;\n offset += 4 ;\n if ( error_num == PM_ERR_NAME ) {\n pcp_conv_info = get_pcp_conversation_info ( pinfo ) ;\n pcp_conv_info -> pmid_name_candidates = wmem_array_new ( wmem_file_scope ( ) , sizeof ( guint8 * ) ) ;\n }\n return offset ;\n }"}
{"idx": 12114, "target": 0, "func": "static int dissect_h245_SET_SIZE_1_256_OF_CapabilityDescriptorNumber ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_set_of ( tvb , offset , actx , tree , hf_index , ett_h245_SET_SIZE_1_256_OF_CapabilityDescriptorNumber , SET_SIZE_1_256_OF_CapabilityDescriptorNumber_set_of , 1 , 256 , FALSE ) ;\n return offset ;\n }"}
{"idx": 12115, "target": 0, "func": "static void y4m_42xmpeg2_42xjpeg_helper ( unsigned char * _dst , const unsigned char * _src , int _c_w , int _c_h ) {\n int y ;\n int x ;\n for ( y = 0 ;\n y < _c_h ;\n y ++ ) {\n for ( x = 0 ;\n x < OC_MINI ( _c_w , 2 ) ;\n x ++ ) {\n _dst [ x ] = ( unsigned char ) OC_CLAMPI ( 0 , ( 4 * _src [ 0 ] - 17 * _src [ OC_MAXI ( x - 1 , 0 ) ] + * _src [ x ] + 35 * _src [ OC_MINI ( x + 1 , _c_w - 1 ) ] - 9 * _src [ OC_MINI ( x + 2 , _c_w - 1 ) ] + _src [ OC_MINI ( x + 3 , _c_w - 1 ) ] + 64 ) >> 7 , 255 ) ;\n }\n for ( ;\n x < _c_w - 3 ;\n x ++ ) {\n _dst [ x ] = ( unsigned char ) OC_CLAMPI ( 0 , ( 4 * _src [ x - 2 ] - 17 * _src [ x - 1 ] + * _src [ x ] + 35 * _src [ x + 1 ] - 9 * _src [ x + 2 ] + _src [ x + 3 ] + 64 ) >> 7 , 255 ) ;\n }\n for ( ;\n x < _c_w ;\n x ++ ) {\n _dst [ x ] = ( unsigned char ) OC_CLAMPI ( 0 , ( 4 * _src [ x - 2 ] - 17 * _src [ x - 1 ] + * _src [ x ] + 35 * _src [ OC_MINI ( x + 1 , _c_w - 1 ) ] - 9 * _src [ OC_MINI ( x + 2 , _c_w - 1 ) ] + _src [ _c_w - 1 ] + 64 ) >> 7 , 255 ) ;\n }\n _dst += _c_w ;\n _src += _c_w ;\n }\n }"}
{"idx": 12116, "target": 0, "func": "static bool is_zero_width_char ( hb_font_t * font , hb_codepoint_t unicode ) {\n hb_codepoint_t glyph ;\n return hb_font_get_glyph ( font , unicode , 0 , & glyph ) && hb_font_get_glyph_h_advance ( font , glyph ) == 0 ;\n }"}
{"idx": 12117, "target": 0, "func": "void xmlHashScanFull3 ( xmlHashTablePtr table , const xmlChar * name , const xmlChar * name2 , const xmlChar * name3 , xmlHashScannerFull f , void * data ) {\n int i ;\n xmlHashEntryPtr iter ;\n xmlHashEntryPtr next ;\n if ( table == NULL ) return ;\n if ( f == NULL ) return ;\n if ( table -> table ) {\n for ( i = 0 ;\n i < table -> size ;\n i ++ ) {\n if ( table -> table [ i ] . valid == 0 ) continue ;\n iter = & ( table -> table [ i ] ) ;\n while ( iter ) {\n next = iter -> next ;\n if ( ( ( name == NULL ) || ( xmlStrEqual ( name , iter -> name ) ) ) && ( ( name2 == NULL ) || ( xmlStrEqual ( name2 , iter -> name2 ) ) ) && ( ( name3 == NULL ) || ( xmlStrEqual ( name3 , iter -> name3 ) ) ) && ( iter -> payload != NULL ) ) {\n f ( iter -> payload , data , iter -> name , iter -> name2 , iter -> name3 ) ;\n }\n iter = next ;\n }\n }\n }\n }"}
{"idx": 12118, "target": 0, "func": "static int dissect_t38_OpenType_IFPPacket ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_open_type ( tvb , offset , actx , tree , hf_index , dissect_t38_IFPPacket ) ;\n return offset ;\n }"}
{"idx": 12119, "target": 0, "func": "static void set_first_pass_params ( VP9_COMP * cpi ) {\n VP9_COMMON * const cm = & cpi -> common ;\n if ( ! cpi -> refresh_alt_ref_frame && ( cm -> current_video_frame == 0 || ( cpi -> frame_flags & FRAMEFLAGS_KEY ) ) ) {\n cm -> frame_type = KEY_FRAME ;\n }\n else {\n cm -> frame_type = INTER_FRAME ;\n }\n cpi -> rc . frames_to_key = INT_MAX ;\n }"}
{"idx": 12120, "target": 0, "func": "static void test_insert ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n char str_data [ 50 ] ;\n char tiny_data ;\n MYSQL_RES * result ;\n MYSQL_BIND my_bind [ 2 ] ;\n ulong length ;\n myheader ( \"test_insert\" ) ;\n rc = mysql_autocommit ( mysql , TRUE ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_prep_insert\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_prep_insert(col1 tinyint, \\ col2 varchar(50))\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"INSERT INTO test_prep_insert VALUES(?, ?)\" ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 2 ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_TINY ;\n my_bind [ 0 ] . buffer = ( void * ) & tiny_data ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 1 ] . buffer = str_data ;\n my_bind [ 1 ] . buffer_length = sizeof ( str_data ) ;\n ;\n my_bind [ 1 ] . length = & length ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n for ( tiny_data = 0 ;\n tiny_data < 3 ;\n tiny_data ++ ) {\n length = sprintf ( str_data , \"MySQL%d\" , tiny_data ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n }\n mysql_stmt_close ( stmt ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"SELECT * FROM test_prep_insert\" ) ;\n myquery ( rc ) ;\n result = mysql_store_result ( mysql ) ;\n mytest ( result ) ;\n rc = my_process_result_set ( result ) ;\n DIE_UNLESS ( ( int ) tiny_data == rc ) ;\n mysql_free_result ( result ) ;\n }"}
{"idx": 12121, "target": 0, "func": "static __always_inline __u16 __be16_to_cpup ( const __be16 * p ) {\n return __swab16p ( ( __u16 * ) p ) ;\n }"}
{"idx": 12122, "target": 0, "func": "int tm_finalize ( void ) {\n event_info * e ;\n int i = 0 ;\n if ( ! init_done ) return TM_BADINIT ;\n while ( event_count && ( i < EVENT_HASH ) ) {\n while ( ( e = event_hash [ i ] ) != NULL ) {\n del_event ( e ) ;\n }\n ++ i ;\n }\n init_done = 0 ;\n return TM_SUCCESS ;\n }"}
{"idx": 12123, "target": 0, "func": "static bool cgfs_unfreeze ( void * hdata ) {\n struct cgfs_data * d = hdata ;\n char * cgabspath , * cgrelpath ;\n int ret ;\n if ( ! d ) return false ;\n cgrelpath = lxc_cgroup_get_hierarchy_path_data ( \"freezer\" , d ) ;\n cgabspath = lxc_cgroup_find_abs_path ( \"freezer\" , cgrelpath , true , NULL ) ;\n if ( ! cgabspath ) return false ;\n ret = do_cgroup_set ( cgabspath , \"freezer.state\" , \"THAWED\" ) ;\n free ( cgabspath ) ;\n return ret == 0 ;\n }"}
{"idx": 12124, "target": 0, "func": "int i2d_ ## name ( type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;\n int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE )"}
{"idx": 12125, "target": 0, "func": "static void de_emphasis ( float * out , float * in , float m , float mem [ 1 ] ) {\n int i ;\n out [ 0 ] = in [ 0 ] + m * mem [ 0 ] ;\n for ( i = 1 ;\n i < AMRWB_SFR_SIZE ;\n i ++ ) out [ i ] = in [ i ] + out [ i - 1 ] * m ;\n mem [ 0 ] = out [ AMRWB_SFR_SIZE - 1 ] ;\n }"}
{"idx": 12126, "target": 0, "func": "static void NVRAM_set_crc ( m48t59_t * nvram , uint32_t addr , uint32_t start , uint32_t count ) {\n uint32_t i ;\n uint16_t crc = 0xFFFF ;\n int odd = 0 ;\n if ( count & 1 ) odd = 1 ;\n count &= ~ 1 ;\n for ( i = 0 ;\n i != count ;\n i ++ ) {\n crc = NVRAM_crc_update ( crc , NVRAM_get_word ( nvram , start + i ) ) ;\n }\n if ( odd ) {\n crc = NVRAM_crc_update ( crc , NVRAM_get_byte ( nvram , start + i ) << 8 ) ;\n }\n NVRAM_set_word ( nvram , addr , crc ) ;\n }"}
{"idx": 12127, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PrefsFunctionalTest , TestJavascriptEnableDisable ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n EXPECT_TRUE ( browser ( ) -> profile ( ) -> GetPrefs ( ) -> GetBoolean ( prefs : : kWebKitJavascriptEnabled ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/javaScriptTitle.html\" ) ) ;\n EXPECT_EQ ( base : : ASCIIToUTF16 ( \"Title from script javascript enabled\" ) , browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) -> GetTitle ( ) ) ;\n browser ( ) -> profile ( ) -> GetPrefs ( ) -> SetBoolean ( prefs : : kWebKitJavascriptEnabled , false ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/javaScriptTitle.html\" ) ) ;\n EXPECT_EQ ( base : : ASCIIToUTF16 ( \"This is html title\" ) , browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) -> GetTitle ( ) ) ;\n }"}
{"idx": 12128, "target": 0, "func": "static int dissect_h245_SequenceNumber ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 255U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 12129, "target": 0, "func": "static struct off_item * lookup_offset_hash_table ( OffsetHashTable tbl , u32 * kid ) {\n struct off_item * k ;\n for ( k = tbl [ ( kid [ 1 ] & 0x07ff ) ] ;\n k ;\n k = k -> next ) if ( k -> kid [ 0 ] == kid [ 0 ] && k -> kid [ 1 ] == kid [ 1 ] ) return k ;\n return NULL ;\n }"}
{"idx": 12130, "target": 0, "func": "TSReturnCode TSAIOWrite ( int fd , off_t offset , char * buf , const size_t bufSize , TSCont contp ) {\n sdk_assert ( sdk_sanity_check_iocore_structure ( contp ) == TS_SUCCESS ) ;\n Continuation * pCont = ( Continuation * ) contp ;\n AIOCallback * pAIO = new_AIOCallback ( ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) pAIO ) == TS_SUCCESS ) ;\n pAIO -> aiocb . aio_fildes = fd ;\n pAIO -> aiocb . aio_offset = offset ;\n pAIO -> aiocb . aio_buf = buf ;\n pAIO -> aiocb . aio_nbytes = bufSize ;\n pAIO -> action = pCont ;\n pAIO -> thread = pCont -> mutex -> thread_holding ;\n if ( ink_aio_write ( pAIO , 1 ) == 1 ) {\n return TS_SUCCESS ;\n }\n return TS_ERROR ;\n }"}
{"idx": 12131, "target": 0, "func": "static void dissect_zcl_pwr_prof_enphsschednotif ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree * sub_tree = NULL ;\n guint i ;\n guint8 num_of_sched_phases ;\n proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_pwr_prof_id , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n num_of_sched_phases = tvb_get_guint8 ( tvb , * offset ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_num_of_sched_phases , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n for ( i = 0 ;\n i < num_of_sched_phases ;\n i ++ ) {\n sub_tree = proto_tree_add_subtree_format ( tree , tvb , * offset , 1 , ett_zbee_zcl_pwr_prof_enphases [ i ] , NULL , \"Energy Phase #%u\" , i ) ;\n dissect_zcl_sched_energy_phase ( tvb , sub_tree , offset ) ;\n }\n }"}
{"idx": 12132, "target": 0, "func": "static void buildShSecLabels ( PGconn * conn , const char * catalog_name , uint32 objectId , PQExpBuffer buffer , const char * target , const char * objname ) {\n PQExpBuffer sql = createPQExpBuffer ( ) ;\n PGresult * res ;\n buildShSecLabelQuery ( conn , catalog_name , objectId , sql ) ;\n res = executeQuery ( conn , sql -> data ) ;\n emitShSecLabels ( conn , res , buffer , target , objname ) ;\n PQclear ( res ) ;\n destroyPQExpBuffer ( sql ) ;\n }"}
{"idx": 12133, "target": 0, "func": "TSReturnCode TSUrlHttpParamsSet ( TSMBuffer bufp , TSMLoc obj , const char * value , int length ) {\n return URLPartSet ( bufp , obj , value , length , & URL : : params_set ) ;\n }"}
{"idx": 12134, "target": 0, "func": "static const bfd_target * symbolsrec_object_p ( bfd * abfd ) {\n void * tdata_save ;\n char b [ 2 ] ;\n srec_init ( ) ;\n if ( bfd_seek ( abfd , ( file_ptr ) 0 , SEEK_SET ) != 0 || bfd_bread ( b , ( bfd_size_type ) 2 , abfd ) != 2 ) return NULL ;\n if ( b [ 0 ] != '$' || b [ 1 ] != '$' ) {\n bfd_set_error ( bfd_error_wrong_format ) ;\n return NULL ;\n }\n tdata_save = abfd -> tdata . any ;\n if ( ! srec_mkobject ( abfd ) || ! srec_scan ( abfd ) ) {\n if ( abfd -> tdata . any != tdata_save && abfd -> tdata . any != NULL ) bfd_release ( abfd , abfd -> tdata . any ) ;\n abfd -> tdata . any = tdata_save ;\n return NULL ;\n }\n if ( abfd -> symcount > 0 ) abfd -> flags |= HAS_SYMS ;\n return abfd -> xvec ;\n }"}
{"idx": 12135, "target": 0, "func": "static krb5_boolean policy_exists ( const char * name ) {\n kadm5_policy_ent_rec pol ;\n if ( kadm5_get_policy ( handle , ( char * ) name , & pol ) != 0 ) return FALSE ;\n kadm5_free_policy_ent ( handle , & pol ) ;\n return TRUE ;\n }"}
{"idx": 12136, "target": 0, "func": "static void e1000e_phy_reg_write ( E1000ECore * core , uint8_t page , uint32_t addr , uint16_t data ) {\n assert ( page < E1000E_PHY_PAGES ) ;\n assert ( addr < E1000E_PHY_PAGE_SIZE ) ;\n if ( e1000e_phyreg_writeops [ page ] [ addr ] ) {\n e1000e_phyreg_writeops [ page ] [ addr ] ( core , addr , data ) ;\n }\n else {\n core -> phy [ page ] [ addr ] = data ;\n }\n }"}
{"idx": 12137, "target": 0, "func": "static void inter_predictor ( const uint8_t * src , int src_stride , uint8_t * dst , int dst_stride , const int subpel_x , const int subpel_y , const struct scale_factors * sf , int w , int h , int ref , const InterpKernel * kernel , int xs , int ys ) {\n sf -> predict [ subpel_x != 0 ] [ subpel_y != 0 ] [ ref ] ( src , src_stride , dst , dst_stride , kernel [ subpel_x ] , xs , kernel [ subpel_y ] , ys , w , h ) ;\n }"}
{"idx": 12138, "target": 0, "func": "static struct sk_buff * udp6_ufo_fragment ( struct sk_buff * skb , int features ) {\n struct sk_buff * segs = ERR_PTR ( - EINVAL ) ;\n unsigned int mss ;\n unsigned int unfrag_ip6hlen , unfrag_len ;\n struct frag_hdr * fptr ;\n u8 * mac_start , * prevhdr ;\n u8 nexthdr ;\n u8 frag_hdr_sz = sizeof ( struct frag_hdr ) ;\n int offset ;\n __wsum csum ;\n mss = skb_shinfo ( skb ) -> gso_size ;\n if ( unlikely ( skb -> len <= mss ) ) goto out ;\n if ( skb_gso_ok ( skb , features | NETIF_F_GSO_ROBUST ) ) {\n int type = skb_shinfo ( skb ) -> gso_type ;\n if ( unlikely ( type & ~ ( SKB_GSO_UDP | SKB_GSO_DODGY ) || ! ( type & ( SKB_GSO_UDP ) ) ) ) goto out ;\n skb_shinfo ( skb ) -> gso_segs = DIV_ROUND_UP ( skb -> len , mss ) ;\n segs = NULL ;\n goto out ;\n }\n offset = skb -> csum_start - skb_headroom ( skb ) ;\n csum = skb_checksum ( skb , offset , skb -> len - offset , 0 ) ;\n offset += skb -> csum_offset ;\n * ( __sum16 * ) ( skb -> data + offset ) = csum_fold ( csum ) ;\n skb -> ip_summed = CHECKSUM_NONE ;\n if ( ( skb_headroom ( skb ) < frag_hdr_sz ) && pskb_expand_head ( skb , frag_hdr_sz , 0 , GFP_ATOMIC ) ) goto out ;\n unfrag_ip6hlen = ip6_find_1stfragopt ( skb , & prevhdr ) ;\n nexthdr = * prevhdr ;\n * prevhdr = NEXTHDR_FRAGMENT ;\n unfrag_len = skb_network_header ( skb ) - skb_mac_header ( skb ) + unfrag_ip6hlen ;\n mac_start = skb_mac_header ( skb ) ;\n memmove ( mac_start - frag_hdr_sz , mac_start , unfrag_len ) ;\n skb -> mac_header -= frag_hdr_sz ;\n skb -> network_header -= frag_hdr_sz ;\n fptr = ( struct frag_hdr * ) ( skb_network_header ( skb ) + unfrag_ip6hlen ) ;\n fptr -> nexthdr = nexthdr ;\n fptr -> reserved = 0 ;\n ipv6_select_ident ( fptr ) ;\n segs = skb_segment ( skb , features ) ;\n out : return segs ;\n }"}
{"idx": 12139, "target": 0, "func": "static SERVER_SETUP_REC * create_server_setup ( GHashTable * optlist ) {\n CHAT_PROTOCOL_REC * rec ;\n SERVER_SETUP_REC * server ;\n char * chatnet ;\n rec = chat_protocol_find_net ( optlist ) ;\n if ( rec == NULL ) rec = chat_protocol_get_default ( ) ;\n else {\n chatnet = g_hash_table_lookup ( optlist , rec -> chatnet ) ;\n if ( chatnet_find ( chatnet ) == NULL ) {\n printformat ( NULL , NULL , MSGLEVEL_CLIENTNOTICE , TXT_UNKNOWN_CHATNET , chatnet ) ;\n return NULL ;\n }\n }\n server = rec -> create_server_setup ( ) ;\n server -> chat_type = rec -> id ;\n return server ;\n }"}
{"idx": 12140, "target": 0, "func": "int i2d_PKCS8_bio ( BIO * bp , X509_SIG * p8 ) {\n return ASN1_i2d_bio_of ( X509_SIG , i2d_X509_SIG , bp , p8 ) ;\n }"}
{"idx": 12141, "target": 0, "func": "TEST_F ( ExtensionWelcomeNotificationTest , WelcomeNotificationPreviouslyDismissedSyncedAndLocal ) {\n StartPreferenceSyncing ( ) ;\n SetBooleanPref ( prefs : : kWelcomeNotificationDismissed , true ) ;\n SetBooleanPref ( prefs : : kWelcomeNotificationDismissedLocal , true ) ;\n EXPECT_TRUE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissed ) ) ;\n EXPECT_TRUE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissedLocal ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationPreviouslyPoppedUp ) ) ;\n ShowChromeNowNotification ( ) ;\n EXPECT_EQ ( message_center ( ) -> add_notification_calls ( ) , 0 ) ;\n EXPECT_EQ ( message_center ( ) -> remove_notification_calls ( ) , 0 ) ;\n EXPECT_EQ ( message_center ( ) -> notifications_with_shown_as_popup ( ) , 0 ) ;\n EXPECT_TRUE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissed ) ) ;\n EXPECT_TRUE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissedLocal ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationPreviouslyPoppedUp ) ) ;\n }"}
{"idx": 12142, "target": 0, "func": "static void dissect_zcl_scenes_view_scene_response ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n guint8 status , * attr_string ;\n guint attr_uint ;\n status = tvb_get_guint8 ( tvb , * offset ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_scenes_status , tvb , * offset , 1 , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_scenes_group_id , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_scenes_scene_id , tvb , * offset , 1 , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n if ( status == ZBEE_ZCL_STAT_SUCCESS ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_scenes_transit_time , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n attr_uint = tvb_get_guint8 ( tvb , * offset ) ;\n if ( attr_uint == 0xff ) attr_uint = 0 ;\n proto_tree_add_uint ( tree , hf_zbee_zcl_scenes_attr_str_len , tvb , * offset , 1 , attr_uint ) ;\n * offset += 1 ;\n attr_string = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , * offset , attr_uint , ENC_ASCII ) ;\n proto_item_append_text ( tree , \", String: %s\" , attr_string ) ;\n proto_tree_add_string ( tree , hf_zbee_zcl_scenes_attr_str , tvb , * offset , attr_uint , attr_string ) ;\n * offset += attr_uint ;\n proto_tree_add_item ( tree , hf_zbee_zcl_scenes_extension_set_field , tvb , * offset , - 1 , ENC_NA ) ;\n }\n }"}
{"idx": 12143, "target": 0, "func": "static int dissect_h245_H223AL3MParameters ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_H223AL3MParameters , H223AL3MParameters_sequence ) ;\n return offset ;\n }"}
{"idx": 12144, "target": 0, "func": "int tm_kill ( tm_task_id tid , int sig , tm_event_t * event ) {\n int rc = TM_SUCCESS ;\n task_info * tp ;\n struct tcp_chan * chan = NULL ;\n if ( ! init_done ) {\n rc = TM_BADINIT ;\n goto tm_kill_cleanup ;\n }\n if ( ( tp = find_task ( tid ) ) == NULL ) {\n rc = TM_ENOTFOUND ;\n goto tm_kill_cleanup ;\n }\n * event = new_event ( ) ;\n if ( startcom ( TM_SIGNAL , * event , & chan ) != DIS_SUCCESS ) {\n rc = TM_ENOTCONNECTED ;\n goto tm_kill_cleanup ;\n }\n if ( diswsi ( chan , tp -> t_node ) != DIS_SUCCESS ) {\n rc = TM_ENOTCONNECTED ;\n goto tm_kill_cleanup ;\n }\n if ( diswsi ( chan , tid ) != DIS_SUCCESS ) {\n rc = TM_ENOTCONNECTED ;\n goto tm_kill_cleanup ;\n }\n if ( diswsi ( chan , sig ) != DIS_SUCCESS ) {\n rc = TM_ENOTCONNECTED ;\n goto tm_kill_cleanup ;\n }\n DIS_tcp_wflush ( chan ) ;\n add_event ( * event , tp -> t_node , TM_SIGNAL , NULL ) ;\n tm_kill_cleanup : if ( chan != NULL ) DIS_tcp_cleanup ( chan ) ;\n return rc ;\n }"}
{"idx": 12145, "target": 0, "func": "static void dissect_u3v_write_mem_cmd ( proto_tree * u3v_telegram_tree , tvbuff_t * tvb , packet_info * pinfo , gint startoffset , gint length , u3v_conv_info_t * u3v_conv_info , gencp_transaction_t * gencp_trans ) {\n const gchar * address_string = NULL ;\n gboolean is_custom_register = FALSE ;\n guint64 addr = 0 ;\n guint byte_count = 0 ;\n proto_item * item = NULL ;\n guint offset = startoffset + 8 ;\n addr = tvb_get_letoh64 ( tvb , startoffset ) ;\n byte_count = length - 8 ;\n address_string = get_register_name_from_address ( addr , & is_custom_register , u3v_conv_info ) ;\n gencp_trans -> address = addr ;\n gencp_trans -> count = byte_count ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"%s: %d bytes\" , address_string , byte_count ) ;\n item = proto_tree_add_item ( u3v_telegram_tree , hf_u3v_scd_writemem_cmd , tvb , startoffset , length , ENC_NA ) ;\n u3v_telegram_tree = proto_item_add_subtree ( item , ett_u3v_payload_cmd ) ;\n if ( is_known_bootstrap_register ( addr , u3v_conv_info ) ) {\n item = proto_tree_add_uint64 ( u3v_telegram_tree , hf_u3v_address , tvb , startoffset , 8 , addr ) ;\n proto_item_append_text ( item , \" %s\" , address_string ) ;\n dissect_u3v_register ( addr , u3v_telegram_tree , tvb , offset , byte_count , u3v_conv_info ) ;\n }\n else {\n proto_tree_add_item ( u3v_telegram_tree , hf_u3v_custom_memory_addr , tvb , startoffset , 8 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( u3v_telegram_tree , hf_u3v_custom_memory_data , tvb , startoffset + 8 , byte_count , ENC_NA ) ;\n }\n }"}
{"idx": 12146, "target": 0, "func": "static int ogg_reset ( AVFormatContext * s ) {\n struct ogg * ogg = s -> priv_data ;\n int i ;\n int64_t start_pos = avio_tell ( s -> pb ) ;\n for ( i = 0 ;\n i < ogg -> nstreams ;\n i ++ ) {\n struct ogg_stream * os = ogg -> streams + i ;\n os -> bufpos = 0 ;\n os -> pstart = 0 ;\n os -> psize = 0 ;\n os -> granule = - 1 ;\n os -> lastpts = AV_NOPTS_VALUE ;\n os -> lastdts = AV_NOPTS_VALUE ;\n os -> sync_pos = - 1 ;\n os -> page_pos = 0 ;\n os -> nsegs = 0 ;\n os -> segp = 0 ;\n os -> incomplete = 0 ;\n os -> got_data = 0 ;\n if ( start_pos <= s -> internal -> data_offset ) {\n os -> lastpts = 0 ;\n }\n os -> end_trimming = 0 ;\n av_freep ( & os -> new_metadata ) ;\n os -> new_metadata_size = 0 ;\n }\n ogg -> page_pos = - 1 ;\n ogg -> curidx = - 1 ;\n return 0 ;\n }"}
{"idx": 12147, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( UnloadTest , BrowserCloseTwoSecondBeforeUnloadAlert ) {\n LoadUrlAndQuitBrowser ( TWO_SECOND_BEFORE_UNLOAD_ALERT_HTML , \"twosecondbeforeunloadalert\" ) ;\n }"}
{"idx": 12148, "target": 0, "func": "void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 )"}
{"idx": 12149, "target": 1, "func": "static void show_frame ( WriterContext * w , AVFrame * frame , AVStream * stream , AVFormatContext * fmt_ctx ) {\n AVBPrint pbuf ;\n char val_str [ 128 ] ;\n const char * s ;\n int i ;\n av_bprint_init ( & pbuf , 1 , AV_BPRINT_SIZE_UNLIMITED ) ;\n writer_print_section_header ( w , SECTION_ID_FRAME ) ;\n s = av_get_media_type_string ( stream -> codecpar -> codec_type ) ;\n if ( s ) print_str ( \"media_type\" , s ) ;\n else print_str_opt ( \"media_type\" , \"unknown\" ) ;\n print_int ( \"stream_index\" , stream -> index ) ;\n print_int ( \"key_frame\" , frame -> key_frame ) ;\n print_ts ( \"pkt_pts\" , frame -> pts ) ;\n print_time ( \"pkt_pts_time\" , frame -> pts , & stream -> time_base ) ;\n print_ts ( \"pkt_dts\" , frame -> pkt_dts ) ;\n print_time ( \"pkt_dts_time\" , frame -> pkt_dts , & stream -> time_base ) ;\n print_ts ( \"best_effort_timestamp\" , frame -> best_effort_timestamp ) ;\n print_time ( \"best_effort_timestamp_time\" , frame -> best_effort_timestamp , & stream -> time_base ) ;\n print_duration_ts ( \"pkt_duration\" , frame -> pkt_duration ) ;\n print_duration_time ( \"pkt_duration_time\" , frame -> pkt_duration , & stream -> time_base ) ;\n if ( frame -> pkt_pos != - 1 ) print_fmt ( \"pkt_pos\" , \"%\" PRId64 , frame -> pkt_pos ) ;\n else print_str_opt ( \"pkt_pos\" , \"N/A\" ) ;\n if ( frame -> pkt_size != - 1 ) print_val ( \"pkt_size\" , frame -> pkt_size , unit_byte_str ) ;\n else print_str_opt ( \"pkt_size\" , \"N/A\" ) ;\n switch ( stream -> codecpar -> codec_type ) {\n AVRational sar ;\n case AVMEDIA_TYPE_VIDEO : print_int ( \"width\" , frame -> width ) ;\n print_int ( \"height\" , frame -> height ) ;\n s = av_get_pix_fmt_name ( frame -> format ) ;\n if ( s ) print_str ( \"pix_fmt\" , s ) ;\n else print_str_opt ( \"pix_fmt\" , \"unknown\" ) ;\n sar = av_guess_sample_aspect_ratio ( fmt_ctx , stream , frame ) ;\n if ( sar . num ) {\n print_q ( \"sample_aspect_ratio\" , sar , ':' ) ;\n }\n else {\n print_str_opt ( \"sample_aspect_ratio\" , \"N/A\" ) ;\n }\n print_fmt ( \"pict_type\" , \"%c\" , av_get_picture_type_char ( frame -> pict_type ) ) ;\n print_int ( \"coded_picture_number\" , frame -> coded_picture_number ) ;\n print_int ( \"display_picture_number\" , frame -> display_picture_number ) ;\n print_int ( \"interlaced_frame\" , frame -> interlaced_frame ) ;\n print_int ( \"top_field_first\" , frame -> top_field_first ) ;\n print_int ( \"repeat_pict\" , frame -> repeat_pict ) ;\n if ( frame -> color_range != AVCOL_RANGE_UNSPECIFIED ) print_str ( \"color_range\" , av_color_range_name ( frame -> color_range ) ) ;\n else print_str_opt ( \"color_range\" , av_color_range_name ( frame -> color_range ) ) ;\n if ( frame -> colorspace != AVCOL_SPC_UNSPECIFIED ) print_str ( \"color_space\" , av_color_space_name ( frame -> colorspace ) ) ;\n else print_str_opt ( \"color_space\" , av_color_space_name ( frame -> colorspace ) ) ;\n if ( frame -> color_primaries != AVCOL_PRI_UNSPECIFIED ) print_str ( \"color_primaries\" , av_color_primaries_name ( frame -> color_primaries ) ) ;\n else print_str_opt ( \"color_primaries\" , av_color_primaries_name ( frame -> color_primaries ) ) ;\n if ( frame -> color_trc != AVCOL_TRC_UNSPECIFIED ) print_str ( \"color_transfer\" , av_color_transfer_name ( frame -> color_trc ) ) ;\n else print_str_opt ( \"color_transfer\" , av_color_transfer_name ( frame -> color_trc ) ) ;\n if ( frame -> chroma_location != AVCHROMA_LOC_UNSPECIFIED ) print_str ( \"chroma_location\" , av_chroma_location_name ( frame -> chroma_location ) ) ;\n else print_str_opt ( \"chroma_location\" , av_chroma_location_name ( frame -> chroma_location ) ) ;\n break ;\n case AVMEDIA_TYPE_AUDIO : s = av_get_sample_fmt_name ( frame -> format ) ;\n if ( s ) print_str ( \"sample_fmt\" , s ) ;\n else print_str_opt ( \"sample_fmt\" , \"unknown\" ) ;\n print_int ( \"nb_samples\" , frame -> nb_samples ) ;\n print_int ( \"channels\" , frame -> channels ) ;\n if ( frame -> channel_layout ) {\n av_bprint_clear ( & pbuf ) ;\n av_bprint_channel_layout ( & pbuf , frame -> channels , frame -> channel_layout ) ;\n print_str ( \"channel_layout\" , pbuf . str ) ;\n }\n else print_str_opt ( \"channel_layout\" , \"unknown\" ) ;\n break ;\n }\n if ( do_show_frame_tags ) show_tags ( w , frame -> metadata , SECTION_ID_FRAME_TAGS ) ;\n if ( do_show_log ) show_log ( w , SECTION_ID_FRAME_LOGS , SECTION_ID_FRAME_LOG , do_show_log ) ;\n if ( frame -> nb_side_data ) {\n writer_print_section_header ( w , SECTION_ID_FRAME_SIDE_DATA_LIST ) ;\n for ( i = 0 ;\n i < frame -> nb_side_data ;\n i ++ ) {\n AVFrameSideData * sd = frame -> side_data [ i ] ;\n const char * name ;\n writer_print_section_header ( w , SECTION_ID_FRAME_SIDE_DATA ) ;\n name = av_frame_side_data_name ( sd -> type ) ;\n print_str ( \"side_data_type\" , name ? name : \"unknown\" ) ;\n if ( sd -> type == AV_FRAME_DATA_DISPLAYMATRIX && sd -> size >= 9 * 4 ) {\n writer_print_integers ( w , \"displaymatrix\" , sd -> data , 9 , \" %11d\" , 3 , 4 , 1 ) ;\n print_int ( \"rotation\" , av_display_rotation_get ( ( int32_t * ) sd -> data ) ) ;\n }\n else if ( sd -> type == AV_FRAME_DATA_GOP_TIMECODE && sd -> size >= 8 ) {\n char tcbuf [ AV_TIMECODE_STR_SIZE ] ;\n av_timecode_make_mpeg_tc_string ( tcbuf , * ( int64_t * ) ( sd -> data ) ) ;\n print_str ( \"timecode\" , tcbuf ) ;\n }\n else if ( sd -> type == AV_FRAME_DATA_MASTERING_DISPLAY_METADATA ) {\n AVMasteringDisplayMetadata * metadata = ( AVMasteringDisplayMetadata * ) sd -> data ;\n if ( metadata -> has_primaries ) {\n print_q ( \"red_x\" , metadata -> display_primaries [ 0 ] [ 0 ] , '/' ) ;\n print_q ( \"red_y\" , metadata -> display_primaries [ 0 ] [ 1 ] , '/' ) ;\n print_q ( \"green_x\" , metadata -> display_primaries [ 1 ] [ 0 ] , '/' ) ;\n print_q ( \"green_y\" , metadata -> display_primaries [ 1 ] [ 1 ] , '/' ) ;\n print_q ( \"blue_x\" , metadata -> display_primaries [ 2 ] [ 0 ] , '/' ) ;\n print_q ( \"blue_y\" , metadata -> display_primaries [ 2 ] [ 1 ] , '/' ) ;\n print_q ( \"white_point_x\" , metadata -> white_point [ 0 ] , '/' ) ;\n print_q ( \"white_point_y\" , metadata -> white_point [ 1 ] , '/' ) ;\n }\n if ( metadata -> has_luminance ) {\n print_q ( \"min_luminance\" , metadata -> min_luminance , '/' ) ;\n print_q ( \"max_luminance\" , metadata -> max_luminance , '/' ) ;\n }\n }\n else if ( sd -> type == AV_FRAME_DATA_CONTENT_LIGHT_LEVEL ) {\n AVContentLightMetadata * metadata = ( AVContentLightMetadata * ) sd -> data ;\n print_int ( \"max_content\" , metadata -> MaxCLL ) ;\n print_int ( \"max_average\" , metadata -> MaxFALL ) ;\n }\n else if ( sd -> type == AV_FRAME_DATA_ICC_PROFILE ) {\n AVDictionaryEntry * tag = av_dict_get ( sd -> metadata , \"name\" , NULL , AV_DICT_MATCH_CASE ) ;\n if ( tag ) print_str ( tag -> key , tag -> value ) ;\n print_int ( \"size\" , sd -> size ) ;\n }\n writer_print_section_footer ( w ) ;\n }\n writer_print_section_footer ( w ) ;\n }\n writer_print_section_footer ( w ) ;\n av_bprint_finalize ( & pbuf , NULL ) ;\n fflush ( stdout ) ;\n }"}
{"idx": 12150, "target": 0, "func": "TEST_F ( ScoredHistoryMatchTest , GetHQPBucketsFromString ) {\n std : : string buckets_str = \"0.0:400,1.5:600,12.0:1300,20.0:1399\" ;\n std : : vector < ScoredHistoryMatch : : ScoreMaxRelevance > hqp_buckets ;\n EXPECT_TRUE ( ScoredHistoryMatch : : GetHQPBucketsFromString ( buckets_str , & hqp_buckets ) ) ;\n EXPECT_THAT ( hqp_buckets , ElementsAre ( Pair ( 0.0 , 400 ) , Pair ( 1.5 , 600 ) , Pair ( 12.0 , 1300 ) , Pair ( 20.0 , 1399 ) ) ) ;\n buckets_str = \"0.0,400,1.5,600\" ;\n EXPECT_FALSE ( ScoredHistoryMatch : : GetHQPBucketsFromString ( buckets_str , & hqp_buckets ) ) ;\n }"}
{"idx": 12151, "target": 0, "func": "void vp9_tokenize_sb ( VP9_COMP * cpi , TOKENEXTRA * * t , int dry_run , BLOCK_SIZE bsize ) {\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCKD * const xd = & cpi -> mb . e_mbd ;\n MB_MODE_INFO * const mbmi = & xd -> mi [ 0 ] . src_mi -> mbmi ;\n TOKENEXTRA * t_backup = * t ;\n const int ctx = vp9_get_skip_context ( xd ) ;\n const int skip_inc = ! vp9_segfeature_active ( & cm -> seg , mbmi -> segment_id , SEG_LVL_SKIP ) ;\n struct tokenize_b_args arg = {\n cpi , xd , t }\n ;\n if ( mbmi -> skip ) {\n if ( ! dry_run ) cm -> counts . skip [ ctx ] [ 1 ] += skip_inc ;\n reset_skip_context ( xd , bsize ) ;\n if ( dry_run ) * t = t_backup ;\n return ;\n }\n if ( ! dry_run ) {\n cm -> counts . skip [ ctx ] [ 0 ] += skip_inc ;\n vp9_foreach_transformed_block ( xd , bsize , tokenize_b , & arg ) ;\n }\n else {\n vp9_foreach_transformed_block ( xd , bsize , set_entropy_context_b , & arg ) ;\n * t = t_backup ;\n }\n }"}
{"idx": 12152, "target": 0, "func": "void min_heap_shift_up_ ( min_heap_t * s , unsigned hole_index , struct event * e ) {\n unsigned parent = ( hole_index - 1 ) / 2 ;\n while ( hole_index && min_heap_elem_greater ( s -> p [ parent ] , e ) ) {\n ( s -> p [ hole_index ] = s -> p [ parent ] ) -> min_heap_idx = hole_index ;\n hole_index = parent ;\n parent = ( hole_index - 1 ) / 2 ;\n }\n ( s -> p [ hole_index ] = e ) -> min_heap_idx = hole_index ;\n }"}
{"idx": 12153, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , TestDefaultSaveLoad ) {\n ProtocolHandler ph1 = CreateProtocolHandler ( \"test\" , \"test1\" ) ;\n ProtocolHandler ph2 = CreateProtocolHandler ( \"test\" , \"test2\" ) ;\n registry ( ) -> OnDenyRegisterProtocolHandler ( ph1 ) ;\n registry ( ) -> OnDenyRegisterProtocolHandler ( ph2 ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph2 ) ;\n registry ( ) -> Disable ( ) ;\n RecreateRegistry ( true ) ;\n ASSERT_FALSE ( registry ( ) -> enabled ( ) ) ;\n registry ( ) -> Enable ( ) ;\n ASSERT_FALSE ( registry ( ) -> IsDefault ( ph1 ) ) ;\n ASSERT_TRUE ( registry ( ) -> IsDefault ( ph2 ) ) ;\n RecreateRegistry ( true ) ;\n ASSERT_TRUE ( registry ( ) -> enabled ( ) ) ;\n }"}
{"idx": 12154, "target": 0, "func": "fz_colorspace * pdf_xobject_colorspace ( fz_context * ctx , pdf_xobject * xobj ) {\n pdf_obj * group = pdf_dict_get ( ctx , xobj -> obj , PDF_NAME_Group ) ;\n if ( group ) {\n pdf_obj * cs = pdf_dict_get ( ctx , group , PDF_NAME_CS ) ;\n if ( cs ) {\n fz_colorspace * colorspace = NULL ;\n fz_try ( ctx ) colorspace = pdf_load_colorspace ( ctx , cs ) ;\n fz_catch ( ctx ) fz_warn ( ctx , \"cannot load xobject colorspace\" ) ;\n return colorspace ;\n }\n }\n return NULL ;\n }"}
{"idx": 12155, "target": 0, "func": "static FT_Error t42_load_keyword ( T42_Face face , T42_Loader loader , T1_Field field ) {\n FT_Error error ;\n void * dummy_object ;\n void * * objects ;\n FT_UInt max_objects = 0 ;\n if ( field -> type == T1_FIELD_TYPE_CALLBACK ) {\n field -> reader ( ( FT_Face ) face , loader ) ;\n error = loader -> parser . root . error ;\n goto Exit ;\n }\n switch ( field -> location ) {\n case T1_FIELD_LOCATION_FONT_INFO : dummy_object = & face -> type1 . font_info ;\n break ;\n case T1_FIELD_LOCATION_FONT_EXTRA : dummy_object = & face -> type1 . font_extra ;\n break ;\n case T1_FIELD_LOCATION_BBOX : dummy_object = & face -> type1 . font_bbox ;\n break ;\n default : dummy_object = & face -> type1 ;\n }\n objects = & dummy_object ;\n if ( field -> type == T1_FIELD_TYPE_INTEGER_ARRAY || field -> type == T1_FIELD_TYPE_FIXED_ARRAY ) error = T1_Load_Field_Table ( & loader -> parser , field , objects , max_objects , 0 ) ;\n else error = T1_Load_Field ( & loader -> parser , field , objects , max_objects , 0 ) ;\n Exit : return error ;\n }"}
{"idx": 12156, "target": 0, "func": "static void fz_cached_color_convert ( fz_context * ctx , fz_color_converter * cc_ , float * ds , const float * ss ) {\n fz_cached_color_converter * cc = cc_ -> opaque ;\n void * val = fz_hash_find ( ctx , cc -> hash , ss ) ;\n int n = cc -> base . ds -> n * sizeof ( float ) ;\n fz_color_converter * base_cc = & cc -> base ;\n if ( val ) {\n memcpy ( ds , val , n ) ;\n return ;\n }\n base_cc -> convert ( ctx , base_cc , ds , ss ) ;\n val = fz_malloc ( ctx , n ) ;\n memcpy ( val , ds , n ) ;\n fz_try ( ctx ) {\n fz_hash_insert ( ctx , cc -> hash , ss , val ) ;\n }\n fz_catch ( ctx ) {\n fz_free ( ctx , val ) ;\n }\n }"}
{"idx": 12157, "target": 0, "func": "TEST_F ( ExternalProtocolHandlerTest , DISABLED_TestLaunchSchemeUnknownChromeUnknown ) {\n DoTest ( ExternalProtocolHandler : : UNKNOWN , shell_integration : : UNKNOWN_DEFAULT , Action : : PROMPT ) ;\n }"}
{"idx": 12158, "target": 0, "func": "static int ipvideo_decode_block_opcode_0xD_16 ( IpvideoContext * s , AVFrame * frame ) {\n int x , y ;\n uint16_t P [ 2 ] ;\n uint16_t * pixel_ptr = ( uint16_t * ) s -> pixel_ptr ;\n for ( y = 0 ;\n y < 8 ;\n y ++ ) {\n if ( ! ( y & 3 ) ) {\n P [ 0 ] = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n P [ 1 ] = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n }\n for ( x = 0 ;\n x < 8 ;\n x ++ ) pixel_ptr [ x ] = P [ x >> 2 ] ;\n pixel_ptr += s -> stride ;\n }\n return 0 ;\n }"}
{"idx": 12159, "target": 0, "func": "void vapic_report_tpr_access ( DeviceState * dev , CPUState * cs , target_ulong ip , TPRAccess access ) {\n VAPICROMState * s = DO_UPCAST ( VAPICROMState , busdev . qdev , dev ) ;\n X86CPU * cpu = X86_CPU ( cs ) ;\n CPUX86State * env = & cpu -> env ;\n cpu_synchronize_state ( cs ) ;\n if ( evaluate_tpr_instruction ( s , env , & ip , access ) < 0 ) {\n if ( s -> state == VAPIC_ACTIVE ) {\n vapic_enable ( s , env ) ;\n }\n return ;\n }\n if ( update_rom_mapping ( s , env , ip ) < 0 ) {\n return ;\n }\n if ( vapic_enable ( s , env ) < 0 ) {\n return ;\n }\n patch_instruction ( s , cpu , ip ) ;\n }"}
{"idx": 12160, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( MimeHandlerViewTest , EmbeddedDataUrlEmbed ) {\n RunTest ( \"test_embedded_data_url_embed.html\" ) ;\n }"}
{"idx": 12161, "target": 0, "func": "static void set_root ( const char * path ) {\n # if ! defined ( __WIN__ ) if ( chroot ( path ) == - 1 ) {\n sql_perror ( \"chroot\" ) ;\n unireg_abort ( 1 ) ;\n }\n my_setwd ( \"/\" , MYF ( 0 ) ) ;\n # endif }"}
{"idx": 12162, "target": 0, "func": "void key_set_timeout ( struct key * key , unsigned timeout ) {\n struct timespec now ;\n time_t expiry = 0 ;\n down_write ( & key -> sem ) ;\n if ( timeout > 0 ) {\n now = current_kernel_time ( ) ;\n expiry = now . tv_sec + timeout ;\n }\n key -> expiry = expiry ;\n key_schedule_gc ( key -> expiry + key_gc_delay ) ;\n up_write ( & key -> sem ) ;\n }"}
{"idx": 12163, "target": 0, "func": "static void quit ( struct parse * pcmd , FILE * fp ) {\n if ( havehost ) closesocket ( sockfd ) ;\n exit ( 0 ) ;\n }"}
{"idx": 12164, "target": 0, "func": "static inline int ealg_tmpl_set ( const struct xfrm_tmpl * t , const struct xfrm_algo_desc * d ) {\n unsigned int id = d -> desc . sadb_alg_id ;\n if ( id >= sizeof ( t -> ealgos ) * 8 ) return 0 ;\n return ( t -> ealgos >> id ) & 1 ;\n }"}
{"idx": 12165, "target": 0, "func": "void proto_add_deregistered_data ( void * data ) {\n g_ptr_array_add ( deregistered_data , data ) ;\n }"}
{"idx": 12166, "target": 0, "func": "size_t strlen_utf8 ( const char * s ) {\n u_char c ;\n size_t len = 0 ;\n while ( ( c = * s ++ ) ) {\n if ( ( c & 0xC0 ) != 0x80 ) ++ len ;\n }\n return len ;\n }"}
{"idx": 12167, "target": 1, "func": "static int userauth_pubkey ( struct ssh * ssh ) {\n Authctxt * authctxt = ssh -> authctxt ;\n struct passwd * pw = authctxt -> pw ;\n struct sshbuf * b ;\n struct sshkey * key = NULL ;\n char * pkalg , * userstyle = NULL , * key_s = NULL , * ca_s = NULL ;\n u_char * pkblob , * sig , have_sig ;\n size_t blen , slen ;\n int r , pktype ;\n int authenticated = 0 ;\n struct sshauthopt * authopts = NULL ;\n if ( ! authctxt -> valid ) {\n debug2 ( \"%s: disabled because of invalid user\" , __func__ ) ;\n return 0 ;\n }\n if ( ( r = sshpkt_get_u8 ( ssh , & have_sig ) ) != 0 || ( r = sshpkt_get_cstring ( ssh , & pkalg , NULL ) ) != 0 || ( r = sshpkt_get_string ( ssh , & pkblob , & blen ) ) != 0 ) fatal ( \"%s: parse request failed: %s\" , __func__ , ssh_err ( r ) ) ;\n pktype = sshkey_type_from_name ( pkalg ) ;\n if ( pktype == KEY_UNSPEC ) {\n verbose ( \"%s: unsupported public key algorithm: %s\" , __func__ , pkalg ) ;\n goto done ;\n }\n if ( ( r = sshkey_from_blob ( pkblob , blen , & key ) ) != 0 ) {\n error ( \"%s: could not parse key: %s\" , __func__ , ssh_err ( r ) ) ;\n goto done ;\n }\n if ( key == NULL ) {\n error ( \"%s: cannot decode key: %s\" , __func__ , pkalg ) ;\n goto done ;\n }\n if ( key -> type != pktype ) {\n error ( \"%s: type mismatch for decoded key \" \"(received %d, expected %d)\" , __func__ , key -> type , pktype ) ;\n goto done ;\n }\n if ( sshkey_type_plain ( key -> type ) == KEY_RSA && ( ssh -> compat & SSH_BUG_RSASIGMD5 ) != 0 ) {\n logit ( \"Refusing RSA key because client uses unsafe \" \"signature scheme\" ) ;\n goto done ;\n }\n if ( auth2_key_already_used ( authctxt , key ) ) {\n logit ( \"refusing previously-used %s key\" , sshkey_type ( key ) ) ;\n goto done ;\n }\n if ( match_pattern_list ( pkalg , options . pubkey_key_types , 0 ) != 1 ) {\n logit ( \"%s: key type %s not in PubkeyAcceptedKeyTypes\" , __func__ , sshkey_ssh_name ( key ) ) ;\n goto done ;\n }\n key_s = format_key ( key ) ;\n if ( sshkey_is_cert ( key ) ) ca_s = format_key ( key -> cert -> signature_key ) ;\n if ( have_sig ) {\n debug3 ( \"%s: have %s signature for %s%s%s\" , __func__ , pkalg , key_s , ca_s == NULL ? \"\" : \" CA \" , ca_s == NULL ? \"\" : ca_s ) ;\n if ( ( r = sshpkt_get_string ( ssh , & sig , & slen ) ) != 0 || ( r = sshpkt_get_end ( ssh ) ) != 0 ) fatal ( \"%s: %s\" , __func__ , ssh_err ( r ) ) ;\n if ( ( b = sshbuf_new ( ) ) == NULL ) fatal ( \"%s: sshbuf_new failed\" , __func__ ) ;\n if ( ssh -> compat & SSH_OLD_SESSIONID ) {\n if ( ( r = sshbuf_put ( b , session_id2 , session_id2_len ) ) != 0 ) fatal ( \"%s: sshbuf_put session id: %s\" , __func__ , ssh_err ( r ) ) ;\n }\n else {\n if ( ( r = sshbuf_put_string ( b , session_id2 , session_id2_len ) ) != 0 ) fatal ( \"%s: sshbuf_put_string session id: %s\" , __func__ , ssh_err ( r ) ) ;\n }\n xasprintf ( & userstyle , \"%s%s%s\" , authctxt -> user , authctxt -> style ? \":\" : \"\" , authctxt -> style ? authctxt -> style : \"\" ) ;\n if ( ( r = sshbuf_put_u8 ( b , SSH2_MSG_USERAUTH_REQUEST ) ) != 0 || ( r = sshbuf_put_cstring ( b , userstyle ) ) != 0 || ( r = sshbuf_put_cstring ( b , authctxt -> service ) ) != 0 || ( r = sshbuf_put_cstring ( b , \"publickey\" ) ) != 0 || ( r = sshbuf_put_u8 ( b , have_sig ) ) != 0 || ( r = sshbuf_put_cstring ( b , pkalg ) != 0 ) || ( r = sshbuf_put_string ( b , pkblob , blen ) ) != 0 ) fatal ( \"%s: build packet failed: %s\" , __func__ , ssh_err ( r ) ) ;\n # ifdef DEBUG_PK sshbuf_dump ( b , stderr ) ;\n # endif authenticated = 0 ;\n if ( PRIVSEP ( user_key_allowed ( ssh , pw , key , 1 , & authopts ) ) && PRIVSEP ( sshkey_verify ( key , sig , slen , sshbuf_ptr ( b ) , sshbuf_len ( b ) , ( ssh -> compat & SSH_BUG_SIGTYPE ) == 0 ? pkalg : NULL , ssh -> compat ) ) == 0 ) {\n authenticated = 1 ;\n }\n sshbuf_free ( b ) ;\n free ( sig ) ;\n auth2_record_key ( authctxt , authenticated , key ) ;\n }\n else {\n debug ( \"%s: test pkalg %s pkblob %s%s%s\" , __func__ , pkalg , key_s , ca_s == NULL ? \"\" : \" CA \" , ca_s == NULL ? \"\" : ca_s ) ;\n if ( ( r = sshpkt_get_end ( ssh ) ) != 0 ) fatal ( \"%s: %s\" , __func__ , ssh_err ( r ) ) ;\n if ( PRIVSEP ( user_key_allowed ( ssh , pw , key , 0 , NULL ) ) ) {\n if ( ( r = sshpkt_start ( ssh , SSH2_MSG_USERAUTH_PK_OK ) ) != 0 || ( r = sshpkt_put_cstring ( ssh , pkalg ) ) != 0 || ( r = sshpkt_put_string ( ssh , pkblob , blen ) ) != 0 || ( r = sshpkt_send ( ssh ) ) != 0 || ( r = ssh_packet_write_wait ( ssh ) ) != 0 ) fatal ( \"%s: %s\" , __func__ , ssh_err ( r ) ) ;\n authctxt -> postponed = 1 ;\n }\n }\n done : if ( authenticated == 1 && auth_activate_options ( ssh , authopts ) != 0 ) {\n debug ( \"%s: key options inconsistent with existing\" , __func__ ) ;\n authenticated = 0 ;\n }\n debug2 ( \"%s: authenticated %d pkalg %s\" , __func__ , authenticated , pkalg ) ;\n sshauthopt_free ( authopts ) ;\n sshkey_free ( key ) ;\n free ( userstyle ) ;\n free ( pkalg ) ;\n free ( pkblob ) ;\n free ( key_s ) ;\n free ( ca_s ) ;\n return authenticated ;\n }"}
{"idx": 12168, "target": 0, "func": "static void _slurm_rpc_job_will_run ( slurm_msg_t * msg ) {\n DEF_TIMERS ;\n int error_code = SLURM_SUCCESS ;\n struct job_record * job_ptr = NULL ;\n job_desc_msg_t * job_desc_msg = ( job_desc_msg_t * ) msg -> data ;\n slurmctld_lock_t job_read_lock = {\n READ_LOCK , READ_LOCK , READ_LOCK , READ_LOCK , READ_LOCK }\n ;\n slurmctld_lock_t job_write_lock = {\n READ_LOCK , WRITE_LOCK , WRITE_LOCK , READ_LOCK , READ_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n gid_t gid = g_slurm_auth_get_gid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n uint16_t port ;\n slurm_addr_t resp_addr ;\n will_run_response_msg_t * resp = NULL ;\n char * err_msg = NULL , * job_submit_user_msg = NULL ;\n if ( slurmctld_config . submissions_disabled ) {\n info ( \"Submissions disabled on system\" ) ;\n error_code = ESLURM_SUBMISSIONS_DISABLED ;\n goto send_reply ;\n }\n START_TIMER ;\n debug2 ( \"Processing RPC: REQUEST_JOB_WILL_RUN from uid=%d\" , uid ) ;\n if ( ( error_code = _valid_id ( \"REQUEST_JOB_WILL_RUN\" , job_desc_msg , uid , gid ) ) ) goto send_reply ;\n if ( ( job_desc_msg -> alloc_node == NULL ) || ( job_desc_msg -> alloc_node [ 0 ] == '\\0' ) ) {\n error_code = ESLURM_INVALID_NODE_NAME ;\n error ( \"REQUEST_JOB_WILL_RUN lacks alloc_node from uid=%d\" , uid ) ;\n }\n if ( error_code == SLURM_SUCCESS ) {\n lock_slurmctld ( job_read_lock ) ;\n job_desc_msg -> pack_job_offset = NO_VAL ;\n error_code = validate_job_create_req ( job_desc_msg , uid , & err_msg ) ;\n unlock_slurmctld ( job_read_lock ) ;\n }\n if ( err_msg ) job_submit_user_msg = xstrdup ( err_msg ) ;\n if ( ! slurm_get_peer_addr ( msg -> conn_fd , & resp_addr ) ) {\n job_desc_msg -> resp_host = xmalloc ( 16 ) ;\n slurm_get_ip_str ( & resp_addr , & port , job_desc_msg -> resp_host , 16 ) ;\n dump_job_desc ( job_desc_msg ) ;\n if ( error_code == SLURM_SUCCESS ) {\n lock_slurmctld ( job_write_lock ) ;\n if ( job_desc_msg -> job_id == NO_VAL ) {\n job_desc_msg -> pack_job_offset = NO_VAL ;\n error_code = job_allocate ( job_desc_msg , false , true , & resp , true , uid , & job_ptr , & err_msg , msg -> protocol_version ) ;\n }\n else {\n error_code = job_start_data ( job_desc_msg , & resp ) ;\n }\n unlock_slurmctld ( job_write_lock ) ;\n END_TIMER2 ( \"_slurm_rpc_job_will_run\" ) ;\n }\n }\n else if ( errno ) error_code = errno ;\n else error_code = SLURM_ERROR ;\n send_reply : if ( error_code ) {\n debug2 ( \"_slurm_rpc_job_will_run: %s\" , slurm_strerror ( error_code ) ) ;\n if ( err_msg ) slurm_send_rc_err_msg ( msg , error_code , err_msg ) ;\n else slurm_send_rc_msg ( msg , error_code ) ;\n }\n else if ( resp ) {\n slurm_msg_t response_msg ;\n slurm_msg_t_init ( & response_msg ) ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . address = msg -> address ;\n response_msg . conn = msg -> conn ;\n response_msg . msg_type = RESPONSE_JOB_WILL_RUN ;\n response_msg . data = resp ;\n resp -> job_submit_user_msg = job_submit_user_msg ;\n job_submit_user_msg = NULL ;\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n slurm_free_will_run_response_msg ( resp ) ;\n debug2 ( \"_slurm_rpc_job_will_run success %s\" , TIME_STR ) ;\n }\n else {\n debug2 ( \"_slurm_rpc_job_will_run success %s\" , TIME_STR ) ;\n if ( job_desc_msg -> job_id == NO_VAL ) slurm_send_rc_msg ( msg , SLURM_SUCCESS ) ;\n }\n xfree ( err_msg ) ;\n xfree ( job_submit_user_msg ) ;\n }"}
{"idx": 12169, "target": 0, "func": "static int apply_cyclic_refresh_bitrate ( const VP9_COMMON * cm , const RATE_CONTROL * rc ) {\n const float factor = 0.5 ;\n const int number_blocks = cm -> mi_rows * cm -> mi_cols ;\n if ( rc -> avg_frame_bandwidth < factor * number_blocks || number_blocks / 64 < 5 ) return 0 ;\n else return 1 ;\n }"}
{"idx": 12170, "target": 0, "func": "static void dissect_rsvp_label_set ( proto_item * ti , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int type ) {\n int offset2 = offset + 8 ;\n guint8 label_type ;\n int len , i ;\n len = obj_length - 8 ;\n proto_tree_add_uint ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_label_set_action , tvb , offset + 4 , 1 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \": %s\" , val_to_str ( tvb_get_guint8 ( tvb , offset + 4 ) , action_type_vals , \"Unknown (%u)\" ) ) ;\n label_type = tvb_get_guint8 ( tvb , offset + 7 ) ;\n proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_label_set_type , tvb , offset + 7 , 1 , label_type , \"%s\" , ( label_type == 1 ) ? \"Packet Label\" : \"Generalized Label\" ) ;\n proto_item_append_text ( ti , \", %s\" , ( label_type == 1 ) ? \"Packet Label: \" : \"Generalized Label: \" ) ;\n for ( i = 0 ;\n i < len / 4 ;\n i ++ ) {\n guint32 subchannel = tvb_get_ntohl ( tvb , offset2 + i * 4 ) ;\n proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_label_set_subchannel , tvb , offset2 + i * 4 , 4 , subchannel , \"Subchannel %u: %u (0x%x)\" , i + 1 , subchannel , subchannel ) ;\n if ( i < 5 ) {\n if ( i != 0 ) proto_item_append_text ( ti , \", \" ) ;\n proto_item_append_text ( ti , \"%u\" , tvb_get_ntohl ( tvb , offset2 + i * 4 ) ) ;\n }\n }\n }"}
{"idx": 12171, "target": 0, "func": "static Image * ReadCAPTIONImage ( const ImageInfo * image_info , ExceptionInfo * exception ) {\n char * caption , geometry [ MaxTextExtent ] , * property , * text ;\n const char * gravity , * option ;\n DrawInfo * draw_info ;\n Image * image ;\n MagickBooleanType split , status ;\n register ssize_t i ;\n size_t height , width ;\n TypeMetric metrics ;\n assert ( image_info != ( const ImageInfo * ) NULL ) ;\n assert ( image_info -> signature == MagickSignature ) ;\n if ( image_info -> debug != MagickFalse ) ( void ) LogMagickEvent ( TraceEvent , GetMagickModule ( ) , \"%s\" , image_info -> filename ) ;\n assert ( exception != ( ExceptionInfo * ) NULL ) ;\n assert ( exception -> signature == MagickSignature ) ;\n image = AcquireImage ( image_info ) ;\n ( void ) ResetImagePage ( image , \"0x0+0+0\" ) ;\n option = GetImageOption ( image_info , \"filename\" ) ;\n if ( option == ( const char * ) NULL ) property = InterpretImageProperties ( image_info , image , image_info -> filename ) ;\n else if ( LocaleNCompare ( option , \"caption:\" , 8 ) == 0 ) property = InterpretImageProperties ( image_info , image , option + 8 ) ;\n else property = InterpretImageProperties ( image_info , image , option ) ;\n ( void ) SetImageProperty ( image , \"caption\" , property ) ;\n property = DestroyString ( property ) ;\n caption = ConstantString ( GetImageProperty ( image , \"caption\" ) ) ;\n draw_info = CloneDrawInfo ( image_info , ( DrawInfo * ) NULL ) ;\n ( void ) CloneString ( & draw_info -> text , caption ) ;\n gravity = GetImageOption ( image_info , \"gravity\" ) ;\n if ( gravity != ( char * ) NULL ) draw_info -> gravity = ( GravityType ) ParseCommandOption ( MagickGravityOptions , MagickFalse , gravity ) ;\n split = MagickFalse ;\n status = MagickTrue ;\n if ( image -> columns == 0 ) {\n text = AcquireString ( caption ) ;\n i = FormatMagickCaption ( image , draw_info , split , & metrics , & text ) ;\n ( void ) CloneString ( & draw_info -> text , text ) ;\n text = DestroyString ( text ) ;\n ( void ) FormatLocaleString ( geometry , MaxTextExtent , \"%+g%+g\" , - metrics . bounds . x1 , metrics . ascent ) ;\n if ( draw_info -> gravity == UndefinedGravity ) ( void ) CloneString ( & draw_info -> geometry , geometry ) ;\n status = GetMultilineTypeMetrics ( image , draw_info , & metrics ) ;\n width = ( size_t ) floor ( metrics . width + draw_info -> stroke_width + 0.5 ) ;\n image -> columns = width ;\n }\n if ( image -> rows == 0 ) {\n split = MagickTrue ;\n text = AcquireString ( caption ) ;\n i = FormatMagickCaption ( image , draw_info , split , & metrics , & text ) ;\n ( void ) CloneString ( & draw_info -> text , text ) ;\n text = DestroyString ( text ) ;\n ( void ) FormatLocaleString ( geometry , MaxTextExtent , \"%+g%+g\" , - metrics . bounds . x1 , metrics . ascent ) ;\n if ( draw_info -> gravity == UndefinedGravity ) ( void ) CloneString ( & draw_info -> geometry , geometry ) ;\n status = GetMultilineTypeMetrics ( image , draw_info , & metrics ) ;\n image -> rows = ( size_t ) ( ( i + 1 ) * ( metrics . ascent - metrics . descent + draw_info -> interline_spacing + draw_info -> stroke_width ) + 0.5 ) ;\n }\n if ( status != MagickFalse ) status = SetImageExtent ( image , image -> columns , image -> rows ) ;\n if ( status == MagickFalse ) {\n draw_info = DestroyDrawInfo ( draw_info ) ;\n InheritException ( exception , & image -> exception ) ;\n return ( DestroyImageList ( image ) ) ;\n }\n if ( SetImageBackgroundColor ( image ) == MagickFalse ) {\n draw_info = DestroyDrawInfo ( draw_info ) ;\n InheritException ( exception , & image -> exception ) ;\n image = DestroyImageList ( image ) ;\n return ( ( Image * ) NULL ) ;\n }\n if ( ( fabs ( image_info -> pointsize ) < MagickEpsilon ) && ( strlen ( caption ) > 0 ) ) {\n double high , low ;\n for ( ;\n ;\n draw_info -> pointsize *= 2.0 ) {\n text = AcquireString ( caption ) ;\n i = FormatMagickCaption ( image , draw_info , split , & metrics , & text ) ;\n ( void ) CloneString ( & draw_info -> text , text ) ;\n text = DestroyString ( text ) ;\n ( void ) FormatLocaleString ( geometry , MaxTextExtent , \"%+g%+g\" , - metrics . bounds . x1 , metrics . ascent ) ;\n if ( draw_info -> gravity == UndefinedGravity ) ( void ) CloneString ( & draw_info -> geometry , geometry ) ;\n status = GetMultilineTypeMetrics ( image , draw_info , & metrics ) ;\n ( void ) status ;\n width = ( size_t ) floor ( metrics . width + draw_info -> stroke_width + 0.5 ) ;\n height = ( size_t ) floor ( metrics . height + draw_info -> stroke_width + 0.5 ) ;\n if ( ( image -> columns != 0 ) && ( image -> rows != 0 ) ) {\n if ( ( width >= image -> columns ) && ( height >= image -> rows ) ) break ;\n }\n else if ( ( ( image -> columns != 0 ) && ( width >= image -> columns ) ) || ( ( image -> rows != 0 ) && ( height >= image -> rows ) ) ) break ;\n }\n high = draw_info -> pointsize ;\n for ( low = 1.0 ;\n ( high - low ) > 0.5 ;\n ) {\n draw_info -> pointsize = ( low + high ) / 2.0 ;\n text = AcquireString ( caption ) ;\n i = FormatMagickCaption ( image , draw_info , split , & metrics , & text ) ;\n ( void ) CloneString ( & draw_info -> text , text ) ;\n text = DestroyString ( text ) ;\n ( void ) FormatLocaleString ( geometry , MaxTextExtent , \"%+g%+g\" , - metrics . bounds . x1 , metrics . ascent ) ;\n if ( draw_info -> gravity == UndefinedGravity ) ( void ) CloneString ( & draw_info -> geometry , geometry ) ;\n ( void ) GetMultilineTypeMetrics ( image , draw_info , & metrics ) ;\n width = ( size_t ) floor ( metrics . width + draw_info -> stroke_width + 0.5 ) ;\n height = ( size_t ) floor ( metrics . height + draw_info -> stroke_width + 0.5 ) ;\n if ( ( image -> columns != 0 ) && ( image -> rows != 0 ) ) {\n if ( ( width < image -> columns ) && ( height < image -> rows ) ) low = draw_info -> pointsize + 0.5 ;\n else high = draw_info -> pointsize - 0.5 ;\n }\n else if ( ( ( image -> columns != 0 ) && ( width < image -> columns ) ) || ( ( image -> rows != 0 ) && ( height < image -> rows ) ) ) low = draw_info -> pointsize + 0.5 ;\n else high = draw_info -> pointsize - 0.5 ;\n }\n draw_info -> pointsize = floor ( ( low + high ) / 2.0 - 0.5 ) ;\n }\n i = FormatMagickCaption ( image , draw_info , split , & metrics , & caption ) ;\n ( void ) CloneString ( & draw_info -> text , caption ) ;\n ( void ) FormatLocaleString ( geometry , MaxTextExtent , \"%+g%+g\" , MagickMax ( draw_info -> direction == RightToLeftDirection ? image -> columns - metrics . bounds . x2 : - metrics . bounds . x1 , 0.0 ) , draw_info -> gravity == UndefinedGravity ? metrics . ascent : 0.0 ) ;\n ( void ) CloneString ( & draw_info -> geometry , geometry ) ;\n status = AnnotateImage ( image , draw_info ) ;\n if ( image_info -> pointsize == 0.0 ) {\n char pointsize [ MaxTextExtent ] ;\n ( void ) FormatLocaleString ( pointsize , MaxTextExtent , \"%.20g\" , draw_info -> pointsize ) ;\n ( void ) SetImageProperty ( image , \"caption:pointsize\" , pointsize ) ;\n }\n draw_info = DestroyDrawInfo ( draw_info ) ;\n caption = DestroyString ( caption ) ;\n if ( status == MagickFalse ) {\n image = DestroyImageList ( image ) ;\n return ( ( Image * ) NULL ) ;\n }\n return ( GetFirstImageInList ( image ) ) ;\n }"}
{"idx": 12172, "target": 0, "func": "afs_int32 SPR_GetHostCPS ( struct rx_call * call , afs_int32 ahost , prlist * alist , afs_int32 * over ) {\n afs_int32 code ;\n code = getHostCPS ( call , ahost , alist , over ) ;\n osi_auditU ( call , PTS_GetHCPSEvent , code , AUD_HOST , htonl ( ahost ) , AUD_END ) ;\n ViceLog ( 125 , ( \"PTS_GetHostCPS: code %d ahost %d\\n\" , code , ahost ) ) ;\n return code ;\n }"}
{"idx": 12173, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( HttpsEngagementPageLoadMetricsBrowserTest , Navigate_Https ) {\n StartHttpsServer ( false ) ;\n NavigateTwiceInTabAndClose ( https_test_server_ -> GetURL ( \"/simple.html\" ) , GURL ( chrome : : kChromeUIVersionURL ) ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpEngagementHistogram , 0 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementHistogram , 1 ) ;\n FakeUserMetricsUpload ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementSessionPercentage , 1 ) ;\n int32_t ratio_bucket = histogram_tester_ . GetAllSamples ( internal : : kHttpsEngagementSessionPercentage ) [ 0 ] . min ;\n EXPECT_EQ ( 100 , ratio_bucket ) ;\n }"}
{"idx": 12174, "target": 0, "func": "int gdev_x_put_params ( gx_device * dev , gs_param_list * plist ) {\n gx_device_X * xdev = ( gx_device_X * ) dev ;\n gx_device_X values ;\n int orig_MaxBitmap = xdev -> space_params . MaxBitmap ;\n long pwin = ( long ) xdev -> pwin ;\n bool save_is_page = xdev -> IsPageDevice ;\n int ecode = 0 , code ;\n bool clear_window = false ;\n values = * xdev ;\n ecode = param_put_long ( plist , \"WindowID\" , & pwin , ecode ) ;\n ecode = param_put_bool ( plist , \".IsPageDevice\" , & values . IsPageDevice , ecode ) ;\n ecode = param_put_int ( plist , \"MaxTempPixmap\" , & values . MaxTempPixmap , ecode ) ;\n ecode = param_put_int ( plist , \"MaxTempImage\" , & values . MaxTempImage , ecode ) ;\n if ( ecode < 0 ) return ecode ;\n if ( pwin == ( long ) xdev -> pwin ) dev -> is_open = false ;\n xdev -> IsPageDevice = values . IsPageDevice ;\n code = gx_default_put_params ( dev , plist ) ;\n dev -> is_open = values . is_open ;\n if ( code < 0 ) {\n xdev -> IsPageDevice = save_is_page ;\n return code ;\n }\n if ( pwin != ( long ) xdev -> pwin ) {\n if ( xdev -> is_open ) gs_closedevice ( dev ) ;\n xdev -> pwin = ( Window ) pwin ;\n }\n if ( xdev -> is_open && xdev -> ghostview ) {\n dev -> width = values . width ;\n dev -> height = values . height ;\n dev -> x_pixels_per_inch = values . x_pixels_per_inch ;\n dev -> y_pixels_per_inch = values . y_pixels_per_inch ;\n dev -> HWResolution [ 0 ] = values . HWResolution [ 0 ] ;\n dev -> HWResolution [ 1 ] = values . HWResolution [ 1 ] ;\n dev -> MediaSize [ 0 ] = values . MediaSize [ 0 ] ;\n dev -> MediaSize [ 1 ] = values . MediaSize [ 1 ] ;\n }\n if ( xdev -> is_open && ! xdev -> ghostview && ( dev -> width != values . width || dev -> height != values . height || dev -> HWResolution [ 0 ] != values . HWResolution [ 0 ] || dev -> HWResolution [ 1 ] != values . HWResolution [ 1 ] ) ) {\n int area_width = WidthOfScreen ( xdev -> scr ) , area_height = HeightOfScreen ( xdev -> scr ) ;\n int dw , dh ;\n x_get_work_area ( xdev , & area_width , & area_height ) ;\n dev -> x_pixels_per_inch = values . x_pixels_per_inch ;\n dev -> y_pixels_per_inch = values . y_pixels_per_inch ;\n dev -> HWResolution [ 0 ] = values . HWResolution [ 0 ] ;\n dev -> HWResolution [ 1 ] = values . HWResolution [ 1 ] ;\n dev -> width = min ( dev -> width , area_width ) ;\n dev -> height = min ( dev -> height , area_height ) ;\n if ( dev -> width <= 0 || dev -> height <= 0 ) {\n emprintf3 ( dev -> memory , \"Requested pagesize %d x %d not supported by %s device\\n\" , dev -> width , dev -> height , dev -> dname ) ;\n return_error ( gs_error_rangecheck ) ;\n }\n dev -> MediaSize [ 0 ] = ( float ) dev -> width / xdev -> x_pixels_per_inch * 72 ;\n dev -> MediaSize [ 1 ] = ( float ) dev -> height / xdev -> y_pixels_per_inch * 72 ;\n dw = dev -> width - values . width ;\n dh = dev -> height - values . height ;\n if ( dw || dh ) {\n XResizeWindow ( xdev -> dpy , xdev -> win , dev -> width , dev -> height ) ;\n if ( xdev -> bpixmap != ( Pixmap ) 0 ) {\n XFreePixmap ( xdev -> dpy , xdev -> bpixmap ) ;\n xdev -> bpixmap = ( Pixmap ) 0 ;\n }\n xdev -> dest = 0 ;\n clear_window = true ;\n }\n if ( xdev -> initial_matrix . xy == 0 ) {\n if ( xdev -> initial_matrix . xx < 0 ) {\n xdev -> initial_matrix . tx += dw ;\n }\n else {\n xdev -> initial_matrix . ty += dh ;\n }\n }\n else {\n if ( xdev -> initial_matrix . xy < 0 ) {\n xdev -> initial_matrix . tx += dh ;\n xdev -> initial_matrix . ty += dw ;\n }\n else {\n }\n }\n }\n xdev -> MaxTempPixmap = values . MaxTempPixmap ;\n xdev -> MaxTempImage = values . MaxTempImage ;\n if ( clear_window || xdev -> space_params . MaxBitmap != orig_MaxBitmap ) {\n if ( xdev -> is_open ) gdev_x_clear_window ( xdev ) ;\n }\n return 0 ;\n }"}
{"idx": 12175, "target": 0, "func": "void do_get_replace ( struct st_command * command ) {\n uint i ;\n char * from = command -> first_argument ;\n char * buff , * start ;\n char word_end_chars [ 256 ] , * pos ;\n POINTER_ARRAY to_array , from_array ;\n DBUG_ENTER ( \"get_replace\" ) ;\n free_replace ( ) ;\n bzero ( ( char * ) & to_array , sizeof ( to_array ) ) ;\n bzero ( ( char * ) & from_array , sizeof ( from_array ) ) ;\n if ( ! * from ) die ( \"Missing argument in %s\" , command -> query ) ;\n start = buff = ( char * ) my_malloc ( strlen ( from ) + 1 , MYF ( MY_WME | MY_FAE ) ) ;\n while ( * from ) {\n char * to = buff ;\n to = get_string ( & buff , & from , command ) ;\n if ( ! * from ) die ( \"Wrong number of arguments to replace_result in '%s'\" , command -> query ) ;\n # ifdef __WIN__ fix_win_paths ( to , from - to ) ;\n # endif insert_pointer_name ( & from_array , to ) ;\n to = get_string ( & buff , & from , command ) ;\n insert_pointer_name ( & to_array , to ) ;\n }\n for ( i = 1 , pos = word_end_chars ;\n i < 256 ;\n i ++ ) if ( my_isspace ( charset_info , i ) ) * pos ++ = i ;\n * pos = 0 ;\n if ( ! ( glob_replace = init_replace ( ( char * * ) from_array . typelib . type_names , ( char * * ) to_array . typelib . type_names , ( uint ) from_array . typelib . count , word_end_chars ) ) ) die ( \"Can't initialize replace from '%s'\" , command -> query ) ;\n free_pointer_array ( & from_array ) ;\n free_pointer_array ( & to_array ) ;\n my_free ( start ) ;\n command -> last_argument = command -> end ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 12176, "target": 0, "func": "static const char * cmd_response_body_limit ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n long int limit ;\n limit = strtol ( p1 , NULL , 10 ) ;\n if ( ( limit == LONG_MAX ) || ( limit == LONG_MIN ) || ( limit <= 0 ) ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid value for SecResponseBodyLimit: %s\" , p1 ) ;\n }\n if ( limit > RESPONSE_BODY_HARD_LIMIT ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Response size limit can not exceed the hard limit: %li\" , RESPONSE_BODY_HARD_LIMIT ) ;\n }\n dcfg -> of_limit = limit ;\n return NULL ;\n }"}
{"idx": 12177, "target": 0, "func": "static void test_oid_to_str ( void ) {\n struct {\n unsigned int binlen ;\n unsigned char * bin ;\n char * str ;\n }\n tests [ ] = {\n {\n 7 , \"\\x02\\x82\\x06\\x01\\x0A\\x0C\\x00\" , \"0.2.262.1.10.12.0\" }\n , {\n 7 , \"\\x02\\x82\\x06\\x01\\x0A\\x0C\\x01\" , \"0.2.262.1.10.12.1\" }\n , {\n 7 , \"\\x2A\\x86\\x48\\xCE\\x38\\x04\\x01\" , \"1.2.840.10040.4.1\" }\n , {\n 7 , \"\\x2A\\x86\\x48\\xCE\\x38\\x04\\x03\" , \"1.2.840.10040.4.3\" }\n , {\n 10 , \"\\x2B\\x06\\x01\\x04\\x01\\xDA\\x47\\x02\\x01\\x01\" , \"1.3.6.1.4.1.11591.2.1.1\" }\n , {\n 3 , \"\\x55\\x1D\\x0E\" , \"2.5.29.14\" }\n , {\n 9 , \"\\x80\\x02\\x70\\x50\\x25\\x46\\xfd\\x0c\\xc0\" , BADOID }\n , {\n 1 , \"\\x80\" , BADOID }\n , {\n 2 , \"\\x81\\x00\" , \"2.48\" }\n , {\n 2 , \"\\x81\\x01\" , \"2.49\" }\n , {\n 2 , \"\\x81\\x7f\" , \"2.175\" }\n , {\n 2 , \"\\x81\\x80\" , \"2.48\" }\n , {\n 2 , \"\\x81\\x81\\x01\" , \"2.49\" }\n , {\n 0 , \"\" , \"\" }\n , {\n 0 , NULL , NULL }\n }\n ;\n int tidx ;\n char * str ;\n for ( tidx = 0 ;\n tests [ tidx ] . bin ;\n tidx ++ ) {\n str = ksba_oid_to_str ( tests [ tidx ] . bin , tests [ tidx ] . binlen ) ;\n if ( ! str ) {\n perror ( \"ksba_oid_to_str failed\" ) ;\n exit ( 1 ) ;\n }\n if ( strcmp ( tests [ tidx ] . str , str ) ) {\n fprintf ( stderr , \"ksba_oid_to_str test %d failed\\n\" , tidx ) ;\n fprintf ( stderr , \" got=%s\\n\" , str ) ;\n fprintf ( stderr , \" want=%s\\n\" , tests [ tidx ] . str ) ;\n exit ( 1 ) ;\n }\n }\n }"}
{"idx": 12178, "target": 0, "func": "static void dissect_rsvp_hello ( proto_tree * ti , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length _U_ , int rsvp_class _U_ , int type ) {\n switch ( type ) {\n case 1 : case 2 : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , tvb_get_guint8 ( tvb , offset + 3 ) , \"%d - HELLO %s object\" , tvb_get_guint8 ( tvb , offset + 3 ) , type == 1 ? \"REQUEST\" : \"ACK\" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_hello_source_instance , tvb , offset + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_hello_destination_instance , tvb , offset + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \": %s. Src Instance: 0x%0x. Dest Instance: 0x%0x. \" , type == 1 ? \"REQUEST\" : \"ACK\" , tvb_get_ntohl ( tvb , offset + 4 ) , tvb_get_ntohl ( tvb , offset + 8 ) ) ;\n break ;\n default : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"%d - UNKNOWN\" , type ) ;\n break ;\n }\n ;\n }"}
{"idx": 12179, "target": 0, "func": "static kadm5_ret_t validate_allowed_keysalts ( const char * allowed_keysalts ) {\n kadm5_ret_t ret ;\n krb5_key_salt_tuple * ks_tuple = NULL ;\n krb5_int32 n_ks_tuple = 0 ;\n if ( strchr ( allowed_keysalts , '\\t' ) != NULL ) return KADM5_BAD_KEYSALTS ;\n ret = krb5_string_to_keysalts ( allowed_keysalts , \",\" , \":.-\" , 0 , & ks_tuple , & n_ks_tuple ) ;\n free ( ks_tuple ) ;\n if ( ret == EINVAL ) return KADM5_BAD_KEYSALTS ;\n return ret ;\n }"}
{"idx": 12180, "target": 0, "func": "static bool pmu_enable_needed ( void * opaque ) {\n X86CPU * cpu = opaque ;\n CPUX86State * env = & cpu -> env ;\n int i ;\n if ( env -> msr_fixed_ctr_ctrl || env -> msr_global_ctrl || env -> msr_global_status || env -> msr_global_ovf_ctrl ) {\n return true ;\n }\n for ( i = 0 ;\n i < MAX_FIXED_COUNTERS ;\n i ++ ) {\n if ( env -> msr_fixed_counters [ i ] ) {\n return true ;\n }\n }\n for ( i = 0 ;\n i < MAX_GP_COUNTERS ;\n i ++ ) {\n if ( env -> msr_gp_counters [ i ] || env -> msr_gp_evtsel [ i ] ) {\n return true ;\n }\n }\n return false ;\n }"}
{"idx": 12181, "target": 0, "func": "static int check_consistent_binlog_pos ( char * binlog_pos_file , char * binlog_pos_offset ) {\n MYSQL_RES * res ;\n MYSQL_ROW row ;\n int found ;\n if ( mysql_query_with_error_report ( mysql , & res , \"SHOW STATUS LIKE 'binlog_snapshot_%'\" ) ) return 0 ;\n found = 0 ;\n while ( ( row = mysql_fetch_row ( res ) ) ) {\n if ( 0 == strcmp ( row [ 0 ] , \"Binlog_snapshot_file\" ) ) {\n if ( binlog_pos_file ) strmake ( binlog_pos_file , row [ 1 ] , FN_REFLEN - 1 ) ;\n found ++ ;\n }\n else if ( 0 == strcmp ( row [ 0 ] , \"Binlog_snapshot_position\" ) ) {\n if ( binlog_pos_offset ) strmake ( binlog_pos_offset , row [ 1 ] , LONGLONG_LEN ) ;\n found ++ ;\n }\n }\n mysql_free_result ( res ) ;\n return ( found == 2 ) ;\n }"}
{"idx": 12182, "target": 0, "func": "static uint32_t e1000e_mac_ims_read ( E1000ECore * core , int index ) {\n trace_e1000e_irq_read_ims ( core -> mac [ IMS ] ) ;\n return core -> mac [ IMS ] ;\n }"}
{"idx": 12183, "target": 0, "func": "static void netbios_cleanup ( void ) {\n reassembly_table_destroy ( & netbios_reassembly_table ) ;\n }"}
{"idx": 12184, "target": 0, "func": "static int s390_virtio_serial_init ( VirtIOS390Device * dev ) {\n VirtIOS390Bus * bus ;\n VirtIODevice * vdev ;\n int r ;\n bus = DO_UPCAST ( VirtIOS390Bus , bus , dev -> qdev . parent_bus ) ;\n vdev = virtio_serial_init ( ( DeviceState * ) dev , dev -> max_virtserial_ports ) ;\n if ( ! vdev ) {\n return - 1 ;\n }\n r = s390_virtio_device_init ( dev , vdev ) ;\n if ( ! r ) {\n bus -> console = dev ;\n }\n return r ;\n }"}
{"idx": 12185, "target": 0, "func": "err_status_t srtp_unprotect_rtcp ( srtp_t ctx , void * srtcp_hdr , int * pkt_octet_len ) {\n srtcp_hdr_t * hdr = ( srtcp_hdr_t * ) srtcp_hdr ;\n uint32_t * enc_start ;\n uint32_t * auth_start ;\n uint32_t * trailer ;\n unsigned int enc_octet_len = 0 ;\n uint8_t * auth_tag = NULL ;\n uint8_t tmp_tag [ SRTP_MAX_TAG_LEN ] ;\n uint8_t tag_copy [ SRTP_MAX_TAG_LEN ] ;\n err_status_t status ;\n unsigned int auth_len ;\n int tag_len ;\n srtp_stream_ctx_t * stream ;\n int prefix_len ;\n uint32_t seq_num ;\n int e_bit_in_packet ;\n int sec_serv_confidentiality ;\n if ( * pkt_octet_len < octets_in_rtcp_header + sizeof ( srtcp_trailer_t ) ) return err_status_bad_param ;\n stream = srtp_get_stream ( ctx , hdr -> ssrc ) ;\n if ( stream == NULL ) {\n if ( ctx -> stream_template != NULL ) {\n stream = ctx -> stream_template ;\n if ( stream -> ekt != NULL ) {\n status = srtp_stream_init_from_ekt ( stream , srtcp_hdr , * pkt_octet_len ) ;\n if ( status ) return status ;\n }\n debug_print ( mod_srtp , \"srtcp using provisional stream (SSRC: 0x%08x)\" , hdr -> ssrc ) ;\n }\n else {\n return err_status_no_ctx ;\n }\n }\n tag_len = auth_get_tag_length ( stream -> rtcp_auth ) ;\n if ( * pkt_octet_len < ( int ) ( octets_in_rtcp_header + tag_len + sizeof ( srtcp_trailer_t ) ) ) {\n return err_status_bad_param ;\n }\n if ( stream -> rtp_cipher -> algorithm == AES_128_GCM || stream -> rtp_cipher -> algorithm == AES_256_GCM ) {\n return srtp_unprotect_rtcp_aead ( ctx , stream , srtcp_hdr , ( unsigned int * ) pkt_octet_len ) ;\n }\n sec_serv_confidentiality = stream -> rtcp_services == sec_serv_conf || stream -> rtcp_services == sec_serv_conf_and_auth ;\n enc_octet_len = * pkt_octet_len - ( octets_in_rtcp_header + tag_len + sizeof ( srtcp_trailer_t ) ) ;\n trailer = ( uint32_t * ) ( ( char * ) hdr + * pkt_octet_len - ( tag_len + sizeof ( srtcp_trailer_t ) ) ) ;\n e_bit_in_packet = ( * ( ( unsigned char * ) trailer ) & SRTCP_E_BYTE_BIT ) == SRTCP_E_BYTE_BIT ;\n if ( e_bit_in_packet != sec_serv_confidentiality ) {\n return err_status_cant_check ;\n }\n if ( sec_serv_confidentiality ) {\n enc_start = ( uint32_t * ) hdr + uint32s_in_rtcp_header ;\n }\n else {\n enc_octet_len = 0 ;\n enc_start = NULL ;\n }\n auth_start = ( uint32_t * ) hdr ;\n auth_len = * pkt_octet_len - tag_len ;\n auth_tag = ( uint8_t * ) hdr + auth_len ;\n if ( stream -> ekt ) {\n auth_tag -= ekt_octets_after_base_tag ( stream -> ekt ) ;\n memcpy ( tag_copy , auth_tag , tag_len ) ;\n octet_string_set_to_zero ( auth_tag , tag_len ) ;\n auth_tag = tag_copy ;\n auth_len += tag_len ;\n }\n seq_num = ntohl ( * trailer ) & SRTCP_INDEX_MASK ;\n debug_print ( mod_srtp , \"srtcp index: %x\" , seq_num ) ;\n status = rdb_check ( & stream -> rtcp_rdb , seq_num ) ;\n if ( status ) return status ;\n if ( stream -> rtcp_cipher -> type -> id == AES_ICM ) {\n v128_t iv ;\n iv . v32 [ 0 ] = 0 ;\n iv . v32 [ 1 ] = hdr -> ssrc ;\n iv . v32 [ 2 ] = htonl ( seq_num >> 16 ) ;\n iv . v32 [ 3 ] = htonl ( seq_num << 16 ) ;\n status = cipher_set_iv ( stream -> rtcp_cipher , & iv , direction_decrypt ) ;\n }\n else {\n v128_t iv ;\n iv . v32 [ 0 ] = 0 ;\n iv . v32 [ 1 ] = 0 ;\n iv . v32 [ 2 ] = 0 ;\n iv . v32 [ 3 ] = htonl ( seq_num ) ;\n status = cipher_set_iv ( stream -> rtcp_cipher , & iv , direction_decrypt ) ;\n }\n if ( status ) return err_status_cipher_fail ;\n auth_start ( stream -> rtcp_auth ) ;\n status = auth_compute ( stream -> rtcp_auth , ( uint8_t * ) auth_start , auth_len , tmp_tag ) ;\n debug_print ( mod_srtp , \"srtcp computed tag: %s\" , octet_string_hex_string ( tmp_tag , tag_len ) ) ;\n if ( status ) return err_status_auth_fail ;\n debug_print ( mod_srtp , \"srtcp tag from packet: %s\" , octet_string_hex_string ( auth_tag , tag_len ) ) ;\n if ( octet_string_is_eq ( tmp_tag , auth_tag , tag_len ) ) return err_status_auth_fail ;\n prefix_len = auth_get_prefix_length ( stream -> rtcp_auth ) ;\n if ( prefix_len ) {\n status = cipher_output ( stream -> rtcp_cipher , auth_tag , prefix_len ) ;\n debug_print ( mod_srtp , \"keystream prefix: %s\" , octet_string_hex_string ( auth_tag , prefix_len ) ) ;\n if ( status ) return err_status_cipher_fail ;\n }\n if ( enc_start ) {\n status = cipher_decrypt ( stream -> rtcp_cipher , ( uint8_t * ) enc_start , & enc_octet_len ) ;\n if ( status ) return err_status_cipher_fail ;\n }\n * pkt_octet_len -= ( tag_len + sizeof ( srtcp_trailer_t ) ) ;\n * pkt_octet_len -= ekt_octets_after_base_tag ( stream -> ekt ) ;\n if ( stream -> direction != dir_srtp_receiver ) {\n if ( stream -> direction == dir_unknown ) {\n stream -> direction = dir_srtp_receiver ;\n }\n else {\n srtp_handle_event ( ctx , stream , event_ssrc_collision ) ;\n }\n }\n if ( stream == ctx -> stream_template ) {\n srtp_stream_ctx_t * new_stream ;\n status = srtp_stream_clone ( ctx -> stream_template , hdr -> ssrc , & new_stream ) ;\n if ( status ) return status ;\n new_stream -> next = ctx -> stream_list ;\n ctx -> stream_list = new_stream ;\n stream = new_stream ;\n }\n rdb_add_index ( & stream -> rtcp_rdb , seq_num ) ;\n return err_status_ok ;\n }"}
{"idx": 12186, "target": 0, "func": "int fts_build_mail ( struct fts_backend_update_context * update_ctx , struct mail * mail ) {\n int ret ;\n T_BEGIN {\n ret = fts_build_mail_real ( update_ctx , mail ) ;\n }\n T_END ;\n return ret ;\n }"}
{"idx": 12187, "target": 0, "func": "static void set_segmentation_map ( VP8_COMP * cpi , unsigned char * segmentation_map ) {\n vpx_memcpy ( cpi -> segmentation_map , segmentation_map , ( cpi -> common . mb_rows * cpi -> common . mb_cols ) ) ;\n cpi -> mb . e_mbd . update_mb_segmentation_map = 1 ;\n cpi -> mb . e_mbd . update_mb_segmentation_data = 1 ;\n }"}
{"idx": 12188, "target": 0, "func": "extern List as_mysql_modify_job ( mysql_conn_t * mysql_conn , uint32_t uid , slurmdb_job_modify_cond_t * job_cond , slurmdb_job_rec_t * job ) {\n List ret_list = NULL ;\n int rc = SLURM_SUCCESS ;\n char * object = NULL ;\n char * vals = NULL , * query = NULL , * cond_char = NULL ;\n time_t now = time ( NULL ) ;\n char * user_name = NULL ;\n MYSQL_RES * result = NULL ;\n MYSQL_ROW row ;\n if ( ! job_cond || ! job ) {\n error ( \"we need something to change\" ) ;\n return NULL ;\n }\n else if ( job_cond -> job_id == NO_VAL ) {\n errno = SLURM_NO_CHANGE_IN_DATA ;\n error ( \"Job ID was not specified for job modification\\n\" ) ;\n return NULL ;\n }\n else if ( ! job_cond -> cluster ) {\n errno = SLURM_NO_CHANGE_IN_DATA ;\n error ( \"Cluster was not specified for job modification\\n\" ) ;\n return NULL ;\n }\n else if ( check_connection ( mysql_conn ) != SLURM_SUCCESS ) return NULL ;\n if ( job -> derived_ec != NO_VAL ) xstrfmtcat ( vals , \", derived_ec=%u\" , job -> derived_ec ) ;\n if ( job -> derived_es ) xstrfmtcat ( vals , \", derived_es='%s'\" , job -> derived_es ) ;\n if ( ! vals ) {\n errno = SLURM_NO_CHANGE_IN_DATA ;\n error ( \"No change specified for job modification\" ) ;\n return NULL ;\n }\n query = xstrdup_printf ( \"select job_db_inx, id_job, time_submit, \" \"id_user \" \"from \\\"%s_%s\\\" where deleted=0 \" \"&& id_job=%u \" \"order by time_submit desc limit 1;\n\" , job_cond -> cluster , job_table , job_cond -> job_id ) ;\n if ( debug_flags & DEBUG_FLAG_DB_JOB ) DB_DEBUG ( mysql_conn -> conn , \"query\\n%s\" , query ) ;\n if ( ! ( result = mysql_db_query_ret ( mysql_conn , query , 0 ) ) ) {\n xfree ( vals ) ;\n xfree ( query ) ;\n return NULL ;\n }\n if ( ( row = mysql_fetch_row ( result ) ) ) {\n char tmp_char [ 25 ] ;\n time_t time_submit = atol ( row [ 2 ] ) ;\n if ( ( uid != atoi ( row [ 3 ] ) ) && ! is_user_min_admin_level ( mysql_conn , uid , SLURMDB_ADMIN_OPERATOR ) ) {\n errno = ESLURM_ACCESS_DENIED ;\n xfree ( vals ) ;\n xfree ( query ) ;\n mysql_free_result ( result ) ;\n return NULL ;\n }\n slurm_make_time_str ( & time_submit , tmp_char , sizeof ( tmp_char ) ) ;\n xstrfmtcat ( cond_char , \"job_db_inx=%s\" , row [ 0 ] ) ;\n object = xstrdup_printf ( \"%s submitted at %s\" , row [ 1 ] , tmp_char ) ;\n ret_list = list_create ( slurm_destroy_char ) ;\n list_append ( ret_list , object ) ;\n mysql_free_result ( result ) ;\n }\n else {\n errno = ESLURM_INVALID_JOB_ID ;\n if ( debug_flags & DEBUG_FLAG_DB_JOB ) DB_DEBUG ( mysql_conn -> conn , \"as_mysql_modify_job: Job not found\\n%s\" , query ) ;\n xfree ( vals ) ;\n xfree ( query ) ;\n mysql_free_result ( result ) ;\n return NULL ;\n }\n xfree ( query ) ;\n user_name = uid_to_string ( ( uid_t ) uid ) ;\n rc = modify_common ( mysql_conn , DBD_MODIFY_JOB , now , user_name , job_table , cond_char , vals , job_cond -> cluster ) ;\n xfree ( user_name ) ;\n xfree ( cond_char ) ;\n xfree ( vals ) ;\n if ( rc == SLURM_ERROR ) {\n error ( \"Couldn't modify job\" ) ;\n FREE_NULL_LIST ( ret_list ) ;\n ret_list = NULL ;\n }\n return ret_list ;\n }"}
{"idx": 12189, "target": 0, "func": "static void selinux_inode_getsecid ( struct inode * inode , u32 * secid ) {\n struct inode_security_struct * isec = inode_security_novalidate ( inode ) ;\n * secid = isec -> sid ;\n }"}
{"idx": 12190, "target": 0, "func": "static int gettimerpid ( char * name , int cpu ) {\n pid_t pid ;\n char temp [ 500 ] ;\n if ( name == NULL ) name = & temp [ 0 ] ;\n sprintf ( name , \"softirq-timer/%d\" , cpu ) ;\n pid = name2pid ( name ) ;\n if ( pid == - 1 ) {\n sprintf ( name , \"ksoftirqd/%d\" , cpu ) ;\n pid = name2pid ( name ) ;\n }\n return pid ;\n }"}
{"idx": 12191, "target": 0, "func": "static int32_t getRunFromLogicalIndex ( UBiDi * pBiDi , int32_t logicalIndex , UErrorCode * pErrorCode ) {\n Run * runs = pBiDi -> runs ;\n int32_t runCount = pBiDi -> runCount , visualStart = 0 , i , length , logicalStart ;\n for ( i = 0 ;\n i < runCount ;\n i ++ ) {\n length = runs [ i ] . visualLimit - visualStart ;\n logicalStart = GET_INDEX ( runs [ i ] . logicalStart ) ;\n if ( ( logicalIndex >= logicalStart ) && ( logicalIndex < ( logicalStart + length ) ) ) {\n return i ;\n }\n visualStart += length ;\n }\n U_ASSERT ( FALSE ) ;\n * pErrorCode = U_INVALID_STATE_ERROR ;\n return 0 ;\n }"}
{"idx": 12192, "target": 0, "func": "gx_device * gs_currentdevice ( const gs_gstate * pgs ) {\n return pgs -> device ;\n }"}
{"idx": 12193, "target": 0, "func": "static my_bool acl_load ( THD * thd , TABLE_LIST * tables ) {\n TABLE * table ;\n READ_RECORD read_record_info ;\n my_bool return_val = TRUE ;\n bool check_no_resolve = specialflag & SPECIAL_NO_RESOLVE ;\n char tmp_name [ NAME_LEN + 1 ] ;\n int password_length ;\n ulong old_sql_mode = thd -> variables . sql_mode ;\n DBUG_ENTER ( \"acl_load\" ) ;\n thd -> variables . sql_mode &= ~ MODE_PAD_CHAR_TO_FULL_LENGTH ;\n grant_version ++ ;\n acl_cache -> clear ( 1 ) ;\n init_sql_alloc ( & mem , ACL_ALLOC_BLOCK_SIZE , 0 ) ;\n init_read_record ( & read_record_info , thd , table = tables [ 0 ] . table , NULL , 1 , 0 , FALSE ) ;\n table -> use_all_columns ( ) ;\n VOID ( my_init_dynamic_array ( & acl_hosts , sizeof ( ACL_HOST ) , 20 , 50 ) ) ;\n while ( ! ( read_record_info . read_record ( & read_record_info ) ) ) {\n ACL_HOST host ;\n update_hostname ( & host . host , get_field ( & mem , table -> field [ 0 ] ) ) ;\n host . db = get_field ( & mem , table -> field [ 1 ] ) ;\n if ( lower_case_table_names && host . db ) {\n ( void ) strmov ( tmp_name , host . db ) ;\n my_casedn_str ( files_charset_info , host . db ) ;\n if ( strcmp ( host . db , tmp_name ) != 0 ) sql_print_warning ( \"'host' entry '%s|%s' had database in mixed \" \"case that has been forced to lowercase because \" \"lower_case_table_names is set. It will not be \" \"possible to remove this privilege using REVOKE.\" , host . host . hostname ? host . host . hostname : \"\" , host . db ? host . db : \"\" ) ;\n }\n host . access = get_access ( table , 2 ) ;\n host . access = fix_rights_for_db ( host . access ) ;\n host . sort = get_sort ( 2 , host . host . hostname , host . db ) ;\n if ( check_no_resolve && hostname_requires_resolving ( host . host . hostname ) ) {\n sql_print_warning ( \"'host' entry '%s|%s' \" \"ignored in --skip-name-resolve mode.\" , host . host . hostname ? host . host . hostname : \"\" , host . db ? host . db : \"\" ) ;\n continue ;\n }\n # ifndef TO_BE_REMOVED if ( table -> s -> fields == 8 ) {\n if ( host . access & CREATE_ACL ) host . access |= REFERENCES_ACL | INDEX_ACL | ALTER_ACL | CREATE_TMP_ACL ;\n }\n # endif VOID ( push_dynamic ( & acl_hosts , ( uchar * ) & host ) ) ;\n }\n my_qsort ( ( uchar * ) dynamic_element ( & acl_hosts , 0 , ACL_HOST * ) , acl_hosts . elements , sizeof ( ACL_HOST ) , ( qsort_cmp ) acl_compare ) ;\n end_read_record ( & read_record_info ) ;\n freeze_size ( & acl_hosts ) ;\n init_read_record ( & read_record_info , thd , table = tables [ 1 ] . table , NULL , 1 , 0 , FALSE ) ;\n table -> use_all_columns ( ) ;\n VOID ( my_init_dynamic_array ( & acl_users , sizeof ( ACL_USER ) , 50 , 100 ) ) ;\n password_length = table -> field [ 2 ] -> field_length / table -> field [ 2 ] -> charset ( ) -> mbmaxlen ;\n if ( password_length < SCRAMBLED_PASSWORD_CHAR_LENGTH_323 ) {\n sql_print_error ( \"Fatal error: mysql.user table is damaged or in \" \"unsupported 3.20 format.\" ) ;\n goto end ;\n }\n DBUG_PRINT ( \"info\" , ( \"user table fields: %d, password length: %d\" , table -> s -> fields , password_length ) ) ;\n pthread_mutex_lock ( & LOCK_global_system_variables ) ;\n if ( password_length < SCRAMBLED_PASSWORD_CHAR_LENGTH ) {\n if ( opt_secure_auth ) {\n pthread_mutex_unlock ( & LOCK_global_system_variables ) ;\n sql_print_error ( \"Fatal error: mysql.user table is in old format, \" \"but server started with --secure-auth option.\" ) ;\n goto end ;\n }\n sys_old_passwords . after_update = restrict_update_of_old_passwords_var ;\n if ( global_system_variables . old_passwords ) pthread_mutex_unlock ( & LOCK_global_system_variables ) ;\n else {\n global_system_variables . old_passwords = 1 ;\n pthread_mutex_unlock ( & LOCK_global_system_variables ) ;\n sql_print_warning ( \"mysql.user table is not updated to new password format;\n \" \"Disabling new password usage until \" \"mysql_fix_privilege_tables is run\" ) ;\n }\n thd -> variables . old_passwords = 1 ;\n }\n else {\n sys_old_passwords . after_update = 0 ;\n pthread_mutex_unlock ( & LOCK_global_system_variables ) ;\n }\n allow_all_hosts = 0 ;\n while ( ! ( read_record_info . read_record ( & read_record_info ) ) ) {\n ACL_USER user ;\n update_hostname ( & user . host , get_field ( & mem , table -> field [ 0 ] ) ) ;\n user . user = get_field ( & mem , table -> field [ 1 ] ) ;\n if ( check_no_resolve && hostname_requires_resolving ( user . host . hostname ) ) {\n sql_print_warning ( \"'user' entry '%s@%s' \" \"ignored in --skip-name-resolve mode.\" , user . user ? user . user : \"\" , user . host . hostname ? user . host . hostname : \"\" ) ;\n continue ;\n }\n const char * password = get_field ( thd -> mem_root , table -> field [ 2 ] ) ;\n uint password_len = password ? strlen ( password ) : 0 ;\n set_user_salt ( & user , password , password_len ) ;\n if ( user . salt_len == 0 && password_len != 0 ) {\n switch ( password_len ) {\n case 45 : sql_print_warning ( \"Found 4.1 style password for user '%s@%s'. \" \"Ignoring user. \" \"You should change password for this user.\" , user . user ? user . user : \"\" , user . host . hostname ? user . host . hostname : \"\" ) ;\n break ;\n default : sql_print_warning ( \"Found invalid password for user: '%s@%s';\n \" \"Ignoring user\" , user . user ? user . user : \"\" , user . host . hostname ? user . host . hostname : \"\" ) ;\n break ;\n }\n }\n else {\n uint next_field ;\n user . access = get_access ( table , 3 , & next_field ) & GLOBAL_ACLS ;\n if ( table -> s -> fields <= 31 && ( user . access & CREATE_ACL ) ) user . access |= ( CREATE_VIEW_ACL | SHOW_VIEW_ACL ) ;\n if ( table -> s -> fields <= 33 && ( user . access & CREATE_ACL ) ) user . access |= CREATE_PROC_ACL ;\n if ( table -> s -> fields <= 33 && ( user . access & ALTER_ACL ) ) user . access |= ALTER_PROC_ACL ;\n if ( table -> s -> fields <= 36 && ( user . access & GRANT_ACL ) ) user . access |= CREATE_USER_ACL ;\n if ( table -> s -> fields <= 37 && ( user . access & SUPER_ACL ) ) user . access |= EVENT_ACL ;\n if ( table -> s -> fields <= 38 && ( user . access & SUPER_ACL ) ) user . access |= TRIGGER_ACL ;\n user . sort = get_sort ( 2 , user . host . hostname , user . user ) ;\n user . hostname_length = ( user . host . hostname ? ( uint ) strlen ( user . host . hostname ) : 0 ) ;\n if ( table -> s -> fields >= 31 ) {\n char * ssl_type = get_field ( thd -> mem_root , table -> field [ next_field ++ ] ) ;\n if ( ! ssl_type ) user . ssl_type = SSL_TYPE_NONE ;\n else if ( ! strcmp ( ssl_type , \"ANY\" ) ) user . ssl_type = SSL_TYPE_ANY ;\n else if ( ! strcmp ( ssl_type , \"X509\" ) ) user . ssl_type = SSL_TYPE_X509 ;\n else user . ssl_type = SSL_TYPE_SPECIFIED ;\n user . ssl_cipher = get_field ( & mem , table -> field [ next_field ++ ] ) ;\n user . x509_issuer = get_field ( & mem , table -> field [ next_field ++ ] ) ;\n user . x509_subject = get_field ( & mem , table -> field [ next_field ++ ] ) ;\n char * ptr = get_field ( thd -> mem_root , table -> field [ next_field ++ ] ) ;\n user . user_resource . questions = ptr ? atoi ( ptr ) : 0 ;\n ptr = get_field ( thd -> mem_root , table -> field [ next_field ++ ] ) ;\n user . user_resource . updates = ptr ? atoi ( ptr ) : 0 ;\n ptr = get_field ( thd -> mem_root , table -> field [ next_field ++ ] ) ;\n user . user_resource . conn_per_hour = ptr ? atoi ( ptr ) : 0 ;\n if ( user . user_resource . questions || user . user_resource . updates || user . user_resource . conn_per_hour ) mqh_used = 1 ;\n if ( table -> s -> fields >= 36 ) {\n ptr = get_field ( thd -> mem_root , table -> field [ next_field ++ ] ) ;\n user . user_resource . user_conn = ptr ? atoi ( ptr ) : 0 ;\n }\n else user . user_resource . user_conn = 0 ;\n }\n else {\n user . ssl_type = SSL_TYPE_NONE ;\n bzero ( ( char * ) & ( user . user_resource ) , sizeof ( user . user_resource ) ) ;\n # ifndef TO_BE_REMOVED if ( table -> s -> fields <= 13 ) {\n if ( user . access & CREATE_ACL ) user . access |= REFERENCES_ACL | INDEX_ACL | ALTER_ACL ;\n }\n user . access |= LOCK_TABLES_ACL | CREATE_TMP_ACL | SHOW_DB_ACL ;\n if ( user . access & FILE_ACL ) user . access |= REPL_CLIENT_ACL | REPL_SLAVE_ACL ;\n if ( user . access & PROCESS_ACL ) user . access |= SUPER_ACL | EXECUTE_ACL ;\n # endif }\n VOID ( push_dynamic ( & acl_users , ( uchar * ) & user ) ) ;\n if ( ! user . host . hostname || ( user . host . hostname [ 0 ] == wild_many && ! user . host . hostname [ 1 ] ) ) allow_all_hosts = 1 ;\n }\n }\n my_qsort ( ( uchar * ) dynamic_element ( & acl_users , 0 , ACL_USER * ) , acl_users . elements , sizeof ( ACL_USER ) , ( qsort_cmp ) acl_compare ) ;\n end_read_record ( & read_record_info ) ;\n freeze_size ( & acl_users ) ;\n init_read_record ( & read_record_info , thd , table = tables [ 2 ] . table , NULL , 1 , 0 , FALSE ) ;\n table -> use_all_columns ( ) ;\n VOID ( my_init_dynamic_array ( & acl_dbs , sizeof ( ACL_DB ) , 50 , 100 ) ) ;\n while ( ! ( read_record_info . read_record ( & read_record_info ) ) ) {\n ACL_DB db ;\n update_hostname ( & db . host , get_field ( & mem , table -> field [ MYSQL_DB_FIELD_HOST ] ) ) ;\n db . db = get_field ( & mem , table -> field [ MYSQL_DB_FIELD_DB ] ) ;\n if ( ! db . db ) {\n sql_print_warning ( \"Found an entry in the 'db' table with empty database name;\n Skipped\" ) ;\n continue ;\n }\n db . user = get_field ( & mem , table -> field [ MYSQL_DB_FIELD_USER ] ) ;\n if ( check_no_resolve && hostname_requires_resolving ( db . host . hostname ) ) {\n sql_print_warning ( \"'db' entry '%s %s@%s' \" \"ignored in --skip-name-resolve mode.\" , db . db , db . user ? db . user : \"\" , db . host . hostname ? db . host . hostname : \"\" ) ;\n continue ;\n }\n db . access = get_access ( table , 3 ) ;\n db . access = fix_rights_for_db ( db . access ) ;\n if ( lower_case_table_names ) {\n ( void ) strmov ( tmp_name , db . db ) ;\n my_casedn_str ( files_charset_info , db . db ) ;\n if ( strcmp ( db . db , tmp_name ) != 0 ) {\n sql_print_warning ( \"'db' entry '%s %s@%s' had database in mixed \" \"case that has been forced to lowercase because \" \"lower_case_table_names is set. It will not be \" \"possible to remove this privilege using REVOKE.\" , db . db , db . user ? db . user : \"\" , db . host . hostname ? db . host . hostname : \"\" ) ;\n }\n }\n db . sort = get_sort ( 3 , db . host . hostname , db . db , db . user ) ;\n # ifndef TO_BE_REMOVED if ( table -> s -> fields <= 9 ) {\n if ( db . access & CREATE_ACL ) db . access |= REFERENCES_ACL | INDEX_ACL | ALTER_ACL ;\n }\n # endif VOID ( push_dynamic ( & acl_dbs , ( uchar * ) & db ) ) ;\n }\n my_qsort ( ( uchar * ) dynamic_element ( & acl_dbs , 0 , ACL_DB * ) , acl_dbs . elements , sizeof ( ACL_DB ) , ( qsort_cmp ) acl_compare ) ;\n end_read_record ( & read_record_info ) ;\n freeze_size ( & acl_dbs ) ;\n init_check_host ( ) ;\n initialized = 1 ;\n return_val = FALSE ;\n end : thd -> variables . sql_mode = old_sql_mode ;\n DBUG_RETURN ( return_val ) ;\n }"}
{"idx": 12194, "target": 1, "func": "static void setup_masks_arabic ( const hb_ot_shape_plan_t * plan , hb_buffer_t * buffer , hb_font_t * font HB_UNUSED ) {\n HB_BUFFER_ALLOCATE_VAR ( buffer , arabic_shaping_action ) ;\n const arabic_shape_plan_t * arabic_plan = ( const arabic_shape_plan_t * ) plan -> data ;\n arabic_joining ( buffer ) ;\n if ( plan -> props . script == HB_SCRIPT_MONGOLIAN ) mongolian_variation_selectors ( buffer ) ;\n unsigned int count = buffer -> len ;\n hb_glyph_info_t * info = buffer -> info ;\n for ( unsigned int i = 0 ;\n i < count ;\n i ++ ) info [ i ] . mask |= arabic_plan -> mask_array [ info [ i ] . arabic_shaping_action ( ) ] ;\n HB_BUFFER_DEALLOCATE_VAR ( buffer , arabic_shaping_action ) ;\n }"}
{"idx": 12195, "target": 0, "func": "static void dissect_glabel_evpl ( proto_tree * ti _U_ , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset ) {\n int bit_offset ;\n guint16 vlan_id = ( ( tvb_get_ntohs ( tvb , offset ) << 4 ) & 0xFFFF ) ;\n bit_offset = ( offset << 2 ) + 3 ;\n proto_tree_add_bits_item ( rsvp_object_tree , hf_rsvp_label_generalized_label_evpl_vlad_id , tvb , bit_offset , 12 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \": EVPL Generalized Label: \" \"VLAN ID = %u\" , vlan_id ) ;\n }"}
{"idx": 12196, "target": 0, "func": "int dyn_string_cmp ( DYNAMIC_STRING * ds , const char * fname ) {\n int error ;\n File fd ;\n char temp_file_path [ FN_REFLEN ] ;\n DBUG_ENTER ( \"dyn_string_cmp\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"fname: %s\" , fname ) ) ;\n if ( ( fd = create_temp_file ( temp_file_path , TMPDIR , \"tmp\" , O_CREAT | O_SHARE | O_RDWR , MYF ( MY_WME ) ) ) < 0 ) die ( \"Failed to create temporary file for ds\" ) ;\n if ( my_write ( fd , ( uchar * ) ds -> str , ds -> length , MYF ( MY_FNABP | MY_WME ) ) || my_seek ( fd , 0 , SEEK_SET , MYF ( 0 ) ) == MY_FILEPOS_ERROR ) {\n my_close ( fd , MYF ( 0 ) ) ;\n my_delete ( temp_file_path , MYF ( MY_WME ) ) ;\n die ( \"Failed to write file '%s'\" , temp_file_path ) ;\n }\n error = compare_files2 ( fd , fname ) ;\n my_close ( fd , MYF ( 0 ) ) ;\n my_delete ( temp_file_path , MYF ( MY_WME ) ) ;\n DBUG_RETURN ( error ) ;\n }"}
{"idx": 12197, "target": 0, "func": "bool contain_leaked_vars ( Node * clause ) {\n return contain_leaked_vars_walker ( clause , NULL ) ;\n }"}
{"idx": 12198, "target": 1, "func": "static int tscc2_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n TSCC2Context * c = avctx -> priv_data ;\n GetByteContext gb ;\n uint32_t frame_type , size ;\n int i , val , len , pos = 0 ;\n int num_mb = c -> mb_width * c -> mb_height ;\n int ret ;\n bytestream2_init ( & gb , buf , buf_size ) ;\n frame_type = bytestream2_get_byte ( & gb ) ;\n if ( frame_type > 1 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Incorrect frame type %d\\n\" , frame_type ) ;\n return AVERROR_INVALIDDATA ;\n }\n c -> pic . reference = 3 ;\n c -> pic . buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE ;\n if ( ( ret = avctx -> reget_buffer ( avctx , & c -> pic ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( frame_type == 0 ) {\n * got_frame = 1 ;\n * ( AVFrame * ) data = c -> pic ;\n return buf_size ;\n }\n if ( bytestream2_get_bytes_left ( & gb ) < 4 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Frame is too short\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n c -> quant [ 0 ] = bytestream2_get_byte ( & gb ) ;\n c -> quant [ 1 ] = bytestream2_get_byte ( & gb ) ;\n if ( c -> quant [ 0 ] < 2 || c -> quant [ 0 ] > NUM_VLC_SETS + 1 || c -> quant [ 1 ] < 2 || c -> quant [ 1 ] > NUM_VLC_SETS + 1 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid quantisers %d / %d\\n\" , c -> quant [ 0 ] , c -> quant [ 1 ] ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n c -> q [ 0 ] [ i ] = tscc2_quants [ c -> quant [ 0 ] - 2 ] [ i ] ;\n c -> q [ 1 ] [ i ] = tscc2_quants [ c -> quant [ 1 ] - 2 ] [ i ] ;\n }\n bytestream2_skip ( & gb , 1 ) ;\n size = bytestream2_get_le32 ( & gb ) ;\n if ( size > bytestream2_get_bytes_left ( & gb ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Slice properties chunk is too large\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( i = 0 ;\n i < size ;\n i ++ ) {\n val = bytestream2_get_byte ( & gb ) ;\n len = val & 0x3F ;\n val >>= 6 ;\n if ( pos + len > num_mb ) {\n av_log ( avctx , AV_LOG_ERROR , \"Too many slice properties\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n memset ( c -> slice_quants + pos , val , len ) ;\n pos += len ;\n }\n if ( pos < num_mb ) {\n av_log ( avctx , AV_LOG_ERROR , \"Too few slice properties (%d / %d)\\n\" , pos , num_mb ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( i = 0 ;\n i < c -> mb_height ;\n i ++ ) {\n size = bytestream2_peek_byte ( & gb ) ;\n if ( size & 1 ) {\n size = bytestream2_get_byte ( & gb ) - 1 ;\n }\n else {\n size = bytestream2_get_le32 ( & gb ) >> 1 ;\n }\n if ( ! size ) {\n int skip_row = 1 , j , off = i * c -> mb_width ;\n for ( j = 0 ;\n j < c -> mb_width ;\n j ++ ) {\n if ( c -> slice_quants [ off + j ] == 1 || c -> slice_quants [ off + j ] == 2 ) {\n skip_row = 0 ;\n break ;\n }\n }\n if ( ! skip_row ) {\n av_log ( avctx , AV_LOG_ERROR , \"Non-skip row with zero size\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n if ( bytestream2_get_bytes_left ( & gb ) < size ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid slice size (%d/%d)\\n\" , size , bytestream2_get_bytes_left ( & gb ) ) ;\n return AVERROR_INVALIDDATA ;\n }\n ret = tscc2_decode_slice ( c , i , buf + bytestream2_tell ( & gb ) , size ) ;\n if ( ret ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error decoding slice %d\\n\" , i ) ;\n return ret ;\n }\n bytestream2_skip ( & gb , size ) ;\n }\n * got_frame = 1 ;\n * ( AVFrame * ) data = c -> pic ;\n return buf_size ;\n }"}
{"idx": 12199, "target": 0, "func": "static void pk_transaction_get_old_transactions ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) {\n const gchar * cmdline ;\n const gchar * data ;\n const gchar * modified ;\n const gchar * tid ;\n gboolean succeeded ;\n GList * l ;\n GList * transactions = NULL ;\n guint duration ;\n guint idle_id ;\n guint number ;\n guint uid ;\n PkRoleEnum role ;\n PkTransactionPast * item ;\n g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;\n g_return_if_fail ( transaction -> priv -> tid != NULL ) ;\n g_variant_get ( params , \"(u)\" , & number ) ;\n g_debug ( \"GetOldTransactions method called\" ) ;\n pk_transaction_set_role ( transaction , PK_ROLE_ENUM_GET_OLD_TRANSACTIONS ) ;\n transactions = pk_transaction_db_get_list ( transaction -> priv -> transaction_db , number ) ;\n for ( l = transactions ;\n l != NULL ;\n l = l -> next ) {\n item = PK_TRANSACTION_PAST ( l -> data ) ;\n pk_results_add_transaction ( transaction -> priv -> results , item ) ;\n role = pk_transaction_past_get_role ( item ) ;\n tid = pk_transaction_past_get_id ( item ) ;\n modified = pk_transaction_past_get_timespec ( item ) ;\n succeeded = pk_transaction_past_get_succeeded ( item ) ;\n duration = pk_transaction_past_get_duration ( item ) ;\n data = pk_transaction_past_get_data ( item ) ;\n uid = pk_transaction_past_get_uid ( item ) ;\n cmdline = pk_transaction_past_get_cmdline ( item ) ;\n g_debug ( \"adding transaction %s, %s, %i, %s, %i, %s, %i, %s\" , tid , modified , succeeded , pk_role_enum_to_string ( role ) , duration , data , uid , cmdline ) ;\n g_dbus_connection_emit_signal ( transaction -> priv -> connection , NULL , transaction -> priv -> tid , PK_DBUS_INTERFACE_TRANSACTION , \"Transaction\" , g_variant_new ( \"(osbuusus)\" , tid , modified , succeeded , role , duration , data != NULL ? data : \"\" , uid , cmdline != NULL ? cmdline : \"\" ) , NULL ) ;\n }\n g_list_free_full ( transactions , ( GDestroyNotify ) g_object_unref ) ;\n idle_id = g_idle_add ( ( GSourceFunc ) pk_transaction_finished_idle_cb , transaction ) ;\n g_source_set_name_by_id ( idle_id , \"[PkTransaction] finished from get-old-transactions\" ) ;\n pk_transaction_dbus_return ( context , NULL ) ;\n }"}
{"idx": 12200, "target": 1, "func": "static int32_t u_scanf_scientific_handler ( UFILE * input , u_scanf_spec_info * info , ufmt_args * args , const UChar * fmt , int32_t * fmtConsumed , int32_t * argConverted ) {\n int32_t len ;\n double num ;\n UNumberFormat * format ;\n int32_t parsePos = 0 ;\n int32_t skipped ;\n UErrorCode status = U_ZERO_ERROR ;\n UChar srcExpBuf [ UPRINTF_SYMBOL_BUFFER_SIZE ] ;\n int32_t srcLen , expLen ;\n UChar expBuf [ UPRINTF_SYMBOL_BUFFER_SIZE ] ;\n skipped = u_scanf_skip_leading_ws ( input , info -> fPadChar ) ;\n ufile_fill_uchar_buffer ( input ) ;\n len = ( int32_t ) ( input -> str . fLimit - input -> str . fPos ) ;\n if ( info -> fWidth != - 1 ) len = ufmt_min ( len , info -> fWidth ) ;\n format = u_locbund_getNumberFormat ( & input -> str . fBundle , UNUM_SCIENTIFIC ) ;\n if ( format == 0 ) return 0 ;\n srcLen = unum_getSymbol ( format , UNUM_EXPONENTIAL_SYMBOL , srcExpBuf , sizeof ( srcExpBuf ) , & status ) ;\n if ( info -> fSpec == ( UChar ) 0x65 ) {\n expLen = u_strToLower ( expBuf , ( int32_t ) sizeof ( expBuf ) , srcExpBuf , srcLen , input -> str . fBundle . fLocale , & status ) ;\n }\n else {\n expLen = u_strToUpper ( expBuf , ( int32_t ) sizeof ( expBuf ) , srcExpBuf , srcLen , input -> str . fBundle . fLocale , & status ) ;\n }\n unum_setSymbol ( format , UNUM_EXPONENTIAL_SYMBOL , expBuf , expLen , & status ) ;\n skipped += u_scanf_skip_leading_positive_sign ( input , format , & status ) ;\n num = unum_parseDouble ( format , input -> str . fPos , len , & parsePos , & status ) ;\n if ( ! info -> fSkipArg ) {\n if ( info -> fIsLong ) * ( double * ) ( args [ 0 ] . ptrValue ) = num ;\n else if ( info -> fIsLongDouble ) * ( long double * ) ( args [ 0 ] . ptrValue ) = num ;\n else * ( float * ) ( args [ 0 ] . ptrValue ) = ( float ) num ;\n }\n input -> str . fPos += parsePos ;\n * argConverted = ! info -> fSkipArg ;\n return parsePos + skipped ;\n }"}
{"idx": 12201, "target": 0, "func": "static void switch_buffer ( MPADecodeContext * s , int * pos , int * end_pos , int * end_pos2 ) {\n if ( s -> in_gb . buffer && * pos >= s -> gb . size_in_bits ) {\n s -> gb = s -> in_gb ;\n s -> in_gb . buffer = NULL ;\n assert ( ( get_bits_count ( & s -> gb ) & 7 ) == 0 ) ;\n skip_bits_long ( & s -> gb , * pos - * end_pos ) ;\n * end_pos2 = * end_pos = * end_pos2 + get_bits_count ( & s -> gb ) - * pos ;\n * pos = get_bits_count ( & s -> gb ) ;\n }\n }"}
{"idx": 12202, "target": 0, "func": "static int opt_show_entries ( void * optctx , const char * opt , const char * arg ) {\n const char * p = arg ;\n int ret = 0 ;\n while ( * p ) {\n AVDictionary * entries = NULL ;\n char * section_name = av_get_token ( & p , \"=:\" ) ;\n int show_all_entries = 0 ;\n if ( ! section_name ) {\n av_log ( NULL , AV_LOG_ERROR , \"Missing section name for option '%s'\\n\" , opt ) ;\n return AVERROR ( EINVAL ) ;\n }\n if ( * p == '=' ) {\n p ++ ;\n while ( * p && * p != ':' ) {\n char * entry = av_get_token ( & p , \",:\" ) ;\n if ( ! entry ) break ;\n av_log ( NULL , AV_LOG_VERBOSE , \"Adding '%s' to the entries to show in section '%s'\\n\" , entry , section_name ) ;\n av_dict_set ( & entries , entry , \"\" , AV_DICT_DONT_STRDUP_KEY ) ;\n if ( * p == ',' ) p ++ ;\n }\n }\n else {\n show_all_entries = 1 ;\n }\n ret = match_section ( section_name , show_all_entries , entries ) ;\n if ( ret == 0 ) {\n av_log ( NULL , AV_LOG_ERROR , \"No match for section '%s'\\n\" , section_name ) ;\n ret = AVERROR ( EINVAL ) ;\n }\n av_dict_free ( & entries ) ;\n av_free ( section_name ) ;\n if ( ret <= 0 ) break ;\n if ( * p ) p ++ ;\n }\n return ret ;\n }"}
{"idx": 12203, "target": 0, "func": "static void vmsvga_index_write ( void * opaque , uint32_t address , uint32_t index ) {\n struct vmsvga_state_s * s = opaque ;\n s -> index = index ;\n }"}
{"idx": 12204, "target": 0, "func": "int i2d_PrivateKey_fp ( FILE * fp , EVP_PKEY * pkey ) {\n return ASN1_i2d_fp_of ( EVP_PKEY , i2d_PrivateKey , fp , pkey ) ;\n }"}
{"idx": 12205, "target": 0, "func": "void netbios_add_name ( const char * label , tvbuff_t * tvb , int offset , proto_tree * tree ) {\n proto_tree * field_tree ;\n char name_str [ ( NETBIOS_NAME_LEN - 1 ) * 4 + 1 ] ;\n int name_type ;\n const char * name_type_str ;\n name_type = get_netbios_name ( tvb , offset , name_str , ( NETBIOS_NAME_LEN - 1 ) * 4 + 1 ) ;\n name_type_str = netbios_name_type_descr ( name_type ) ;\n field_tree = proto_tree_add_subtree_format ( tree , tvb , offset , NETBIOS_NAME_LEN , ett_netb_name , NULL , \"%s: %s<%02x> (%s)\" , label , name_str , name_type , name_type_str ) ;\n proto_tree_add_string_format ( field_tree , hf_netb_nb_name , tvb , offset , 15 , name_str , \"%s\" , name_str ) ;\n proto_tree_add_uint_format ( field_tree , hf_netb_nb_name_type , tvb , offset + 15 , 1 , name_type , \"0x%02x (%s)\" , name_type , name_type_str ) ;\n }"}
{"idx": 12206, "target": 0, "func": "static int can_safely_read ( GetBitContext * gb , int bits ) {\n return get_bits_left ( gb ) >= bits ;\n }"}
{"idx": 12207, "target": 0, "func": "static int proc_bulk ( struct usb_dev_state * ps , void __user * arg ) {\n struct usb_device * dev = ps -> dev ;\n struct usbdevfs_bulktransfer bulk ;\n unsigned int tmo , len1 , pipe ;\n int len2 ;\n unsigned char * tbuf ;\n int i , ret ;\n if ( copy_from_user ( & bulk , arg , sizeof ( bulk ) ) ) return - EFAULT ;\n ret = findintfep ( ps -> dev , bulk . ep ) ;\n if ( ret < 0 ) return ret ;\n ret = checkintf ( ps , ret ) ;\n if ( ret ) return ret ;\n if ( bulk . ep & USB_DIR_IN ) pipe = usb_rcvbulkpipe ( dev , bulk . ep & 0x7f ) ;\n else pipe = usb_sndbulkpipe ( dev , bulk . ep & 0x7f ) ;\n if ( ! usb_maxpacket ( dev , pipe , ! ( bulk . ep & USB_DIR_IN ) ) ) return - EINVAL ;\n len1 = bulk . len ;\n if ( len1 >= USBFS_XFER_MAX ) return - EINVAL ;\n ret = usbfs_increase_memory_usage ( len1 + sizeof ( struct urb ) ) ;\n if ( ret ) return ret ;\n tbuf = kmalloc ( len1 , GFP_KERNEL ) ;\n if ( ! tbuf ) {\n ret = - ENOMEM ;\n goto done ;\n }\n tmo = bulk . timeout ;\n if ( bulk . ep & 0x80 ) {\n if ( len1 && ! access_ok ( VERIFY_WRITE , bulk . data , len1 ) ) {\n ret = - EINVAL ;\n goto done ;\n }\n snoop_urb ( dev , NULL , pipe , len1 , tmo , SUBMIT , NULL , 0 ) ;\n usb_unlock_device ( dev ) ;\n i = usb_bulk_msg ( dev , pipe , tbuf , len1 , & len2 , tmo ) ;\n usb_lock_device ( dev ) ;\n snoop_urb ( dev , NULL , pipe , len2 , i , COMPLETE , tbuf , len2 ) ;\n if ( ! i && len2 ) {\n if ( copy_to_user ( bulk . data , tbuf , len2 ) ) {\n ret = - EFAULT ;\n goto done ;\n }\n }\n }\n else {\n if ( len1 ) {\n if ( copy_from_user ( tbuf , bulk . data , len1 ) ) {\n ret = - EFAULT ;\n goto done ;\n }\n }\n snoop_urb ( dev , NULL , pipe , len1 , tmo , SUBMIT , tbuf , len1 ) ;\n usb_unlock_device ( dev ) ;\n i = usb_bulk_msg ( dev , pipe , tbuf , len1 , & len2 , tmo ) ;\n usb_lock_device ( dev ) ;\n snoop_urb ( dev , NULL , pipe , len2 , i , COMPLETE , NULL , 0 ) ;\n }\n ret = ( i < 0 ? i : len2 ) ;\n done : kfree ( tbuf ) ;\n usbfs_decrease_memory_usage ( len1 + sizeof ( struct urb ) ) ;\n return ret ;\n }"}
{"idx": 12208, "target": 0, "func": "static int read_next_command ( void ) {\n static int stdin_eof = 0 ;\n if ( stdin_eof ) {\n unread_command_buf = 0 ;\n return EOF ;\n }\n for ( ;\n ;\n ) {\n const char * p ;\n if ( unread_command_buf ) {\n unread_command_buf = 0 ;\n }\n else {\n struct recent_command * rc ;\n strbuf_detach ( & command_buf , NULL ) ;\n stdin_eof = strbuf_getline ( & command_buf , stdin , '\\n' ) ;\n if ( stdin_eof ) return EOF ;\n if ( ! seen_data_command && ! starts_with ( command_buf . buf , \"feature \" ) && ! starts_with ( command_buf . buf , \"option \" ) ) {\n parse_argv ( ) ;\n }\n rc = rc_free ;\n if ( rc ) rc_free = rc -> next ;\n else {\n rc = cmd_hist . next ;\n cmd_hist . next = rc -> next ;\n cmd_hist . next -> prev = & cmd_hist ;\n free ( rc -> buf ) ;\n }\n rc -> buf = command_buf . buf ;\n rc -> prev = cmd_tail ;\n rc -> next = cmd_hist . prev ;\n rc -> prev -> next = rc ;\n cmd_tail = rc ;\n }\n if ( skip_prefix ( command_buf . buf , \"get-mark \" , & p ) ) {\n parse_get_mark ( p ) ;\n continue ;\n }\n if ( skip_prefix ( command_buf . buf , \"cat-blob \" , & p ) ) {\n parse_cat_blob ( p ) ;\n continue ;\n }\n if ( command_buf . buf [ 0 ] == '#' ) continue ;\n return 0 ;\n }\n }"}
{"idx": 12209, "target": 0, "func": "static int dissect_rsl_ie_meas_res_no ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_tree * ie_tree ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_MEAS_RES_NO ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 2 , ett_ie_meas_res_no , NULL , \"Measurement result number IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_meas_res_no , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n return offset ;\n }"}
{"idx": 12210, "target": 0, "func": "static int selinux_tun_dev_open ( void * security ) {\n struct tun_security_struct * tunsec = security ;\n u32 sid = current_sid ( ) ;\n int err ;\n err = avc_has_perm ( sid , tunsec -> sid , SECCLASS_TUN_SOCKET , TUN_SOCKET__RELABELFROM , NULL ) ;\n if ( err ) return err ;\n err = avc_has_perm ( sid , sid , SECCLASS_TUN_SOCKET , TUN_SOCKET__RELABELTO , NULL ) ;\n if ( err ) return err ;\n tunsec -> sid = sid ;\n return 0 ;\n }"}
{"idx": 12211, "target": 1, "func": "void vp9_rd_pick_intra_mode_sb ( VP9_COMP * cpi , MACROBLOCK * x , int * returnrate , int64_t * returndist , BLOCK_SIZE bsize , PICK_MODE_CONTEXT * ctx , int64_t best_rd ) {\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n struct macroblockd_plane * const pd = xd -> plane ;\n int rate_y = 0 , rate_uv = 0 , rate_y_tokenonly = 0 , rate_uv_tokenonly = 0 ;\n int y_skip = 0 , uv_skip = 0 ;\n int64_t dist_y = 0 , dist_uv = 0 , tx_cache [ TX_MODES ] = {\n 0 }\n ;\n TX_SIZE max_uv_tx_size ;\n x -> skip_encode = 0 ;\n ctx -> skip = 0 ;\n xd -> mi [ 0 ] -> mbmi . ref_frame [ 0 ] = INTRA_FRAME ;\n if ( bsize >= BLOCK_8X8 ) {\n if ( rd_pick_intra_sby_mode ( cpi , x , & rate_y , & rate_y_tokenonly , & dist_y , & y_skip , bsize , tx_cache , best_rd ) >= best_rd ) {\n * returnrate = INT_MAX ;\n return ;\n }\n max_uv_tx_size = get_uv_tx_size_impl ( xd -> mi [ 0 ] -> mbmi . tx_size , bsize , pd [ 1 ] . subsampling_x , pd [ 1 ] . subsampling_y ) ;\n rd_pick_intra_sbuv_mode ( cpi , x , ctx , & rate_uv , & rate_uv_tokenonly , & dist_uv , & uv_skip , bsize , max_uv_tx_size ) ;\n }\n else {\n y_skip = 0 ;\n if ( rd_pick_intra_sub_8x8_y_mode ( cpi , x , & rate_y , & rate_y_tokenonly , & dist_y , best_rd ) >= best_rd ) {\n * returnrate = INT_MAX ;\n return ;\n }\n max_uv_tx_size = get_uv_tx_size_impl ( xd -> mi [ 0 ] -> mbmi . tx_size , bsize , pd [ 1 ] . subsampling_x , pd [ 1 ] . subsampling_y ) ;\n rd_pick_intra_sbuv_mode ( cpi , x , ctx , & rate_uv , & rate_uv_tokenonly , & dist_uv , & uv_skip , BLOCK_8X8 , max_uv_tx_size ) ;\n }\n if ( y_skip && uv_skip ) {\n * returnrate = rate_y + rate_uv - rate_y_tokenonly - rate_uv_tokenonly + vp9_cost_bit ( vp9_get_skip_prob ( cm , xd ) , 1 ) ;\n * returndist = dist_y + dist_uv ;\n vp9_zero ( ctx -> tx_rd_diff ) ;\n }\n else {\n int i ;\n * returnrate = rate_y + rate_uv + vp9_cost_bit ( vp9_get_skip_prob ( cm , xd ) , 0 ) ;\n * returndist = dist_y + dist_uv ;\n if ( cpi -> sf . tx_size_search_method == USE_FULL_RD ) for ( i = 0 ;\n i < TX_MODES ;\n i ++ ) {\n if ( tx_cache [ i ] < INT64_MAX && tx_cache [ cm -> tx_mode ] < INT64_MAX ) ctx -> tx_rd_diff [ i ] = tx_cache [ i ] - tx_cache [ cm -> tx_mode ] ;\n else ctx -> tx_rd_diff [ i ] = 0 ;\n }\n }\n ctx -> mic = * xd -> mi [ 0 ] ;\n }"}
{"idx": 12212, "target": 0, "func": "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_ ) {\n # line 272 \"./asn1/h225/h225.cnf\" tvbuff_t * value_tvb = NULL ;\n char codec_str [ 50 ] ;\n h225_packet_info * h225_pi ;\n codec_str [ 0 ] = '\\0' ;\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , NO_BOUND , NO_BOUND , FALSE , & value_tvb ) ;\n if ( value_tvb && tvb_reported_length ( value_tvb ) ) {\n dissect_h245_FastStart_OLC ( value_tvb , actx -> pinfo , tree , codec_str ) ;\n }\n h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n if ( h225_pi != NULL ) {\n char temp [ 50 ] ;\n g_snprintf ( temp , 50 , \"%s %s\" , h225_pi -> frame_label , codec_str ) ;\n g_strlcpy ( h225_pi -> frame_label , temp , 50 ) ;\n h225_pi -> is_faststart = TRUE ;\n }\n contains_faststart = TRUE ;\n return offset ;\n }"}
{"idx": 12213, "target": 0, "func": "static int dict_real_result ( i_ctx_t * i_ctx_p , ref * pdict , const char * kstr , double val ) {\n int code = 0 ;\n ref * ignore ;\n if ( dict_find_string ( pdict , kstr , & ignore ) > 0 ) {\n ref rval ;\n check_dict_write ( * pdict ) ;\n make_real ( & rval , val ) ;\n code = idict_put_string ( pdict , kstr , & rval ) ;\n }\n return code ;\n }"}
{"idx": 12214, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ExtensionMessageBubbleViewBrowserTest , TestDevModeBubbleIsntShownTwice ) {\n TestDevModeBubbleIsntShownTwice ( ) ;\n }"}
{"idx": 12215, "target": 0, "func": "static gboolean protocol_is_ardp ( tvbuff_t * tvb ) {\n guint8 flags , header_length ;\n gint length = tvb_captured_length ( tvb ) ;\n if ( length < ARDP_HEADER_LEN_OFFSET + 1 ) {\n return FALSE ;\n }\n header_length = 2 * tvb_get_guint8 ( tvb , ARDP_HEADER_LEN_OFFSET ) ;\n flags = tvb_get_guint8 ( tvb , 0 ) ;\n if ( ( flags & ARDP_SYN ) && header_length != ARDP_SYN_FIXED_HDR_LEN ) {\n return FALSE ;\n }\n if ( ! ( flags & ARDP_SYN ) && header_length < ARDP_FIXED_HDR_LEN ) {\n return FALSE ;\n }\n return TRUE ;\n }"}
{"idx": 12216, "target": 0, "func": "static void prom_init ( hwaddr addr , const char * bios_name ) {\n DeviceState * dev ;\n SysBusDevice * s ;\n char * filename ;\n int ret ;\n dev = qdev_create ( NULL , \"openprom\" ) ;\n qdev_init_nofail ( dev ) ;\n s = SYS_BUS_DEVICE ( dev ) ;\n sysbus_mmio_map ( s , 0 , addr ) ;\n if ( bios_name == NULL ) {\n bios_name = PROM_FILENAME ;\n }\n filename = qemu_find_file ( QEMU_FILE_TYPE_BIOS , bios_name ) ;\n if ( filename ) {\n ret = load_elf ( filename , translate_prom_address , & addr , NULL , NULL , NULL , 1 , ELF_MACHINE , 0 ) ;\n if ( ret < 0 || ret > PROM_SIZE_MAX ) {\n ret = load_image_targphys ( filename , addr , PROM_SIZE_MAX ) ;\n }\n g_free ( filename ) ;\n }\n else {\n ret = - 1 ;\n }\n if ( ret < 0 || ret > PROM_SIZE_MAX ) {\n fprintf ( stderr , \"qemu: could not load prom '%s'\\n\" , bios_name ) ;\n exit ( 1 ) ;\n }\n }"}
{"idx": 12217, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , AbortMultiple ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n GURL url ( embedded_test_server ( ) -> GetURL ( \"/title1.html\" ) ) ;\n NavigateParams params ( browser ( ) , url , ui : : PAGE_TRANSITION_LINK ) ;\n content : : TestNavigationManager manager ( browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) , url ) ;\n Navigate ( & params ) ;\n EXPECT_TRUE ( manager . WaitForRequestStart ( ) ) ;\n GURL url2 ( embedded_test_server ( ) -> GetURL ( \"/title2.html\" ) ) ;\n NavigateParams params2 ( browser ( ) , url2 , ui : : PAGE_TRANSITION_TYPED ) ;\n content : : TestNavigationManager manager2 ( browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) , url2 ) ;\n Navigate ( & params2 ) ;\n EXPECT_TRUE ( manager2 . WaitForRequestStart ( ) ) ;\n manager . WaitForNavigationFinished ( ) ;\n GURL url3 ( embedded_test_server ( ) -> GetURL ( \"/title3.html\" ) ) ;\n NavigateParams params3 ( browser ( ) , url3 , ui : : PAGE_TRANSITION_TYPED ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : LOAD_EVENT ) ;\n Navigate ( & params3 ) ;\n waiter -> Wait ( ) ;\n manager2 . WaitForNavigationFinished ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramAbortNewNavigationBeforeCommit , 2 ) ;\n }"}
{"idx": 12218, "target": 1, "func": "static int parsedate ( const char * date , time_t * output ) {\n time_t t = 0 ;\n int wdaynum = - 1 ;\n int monnum = - 1 ;\n int mdaynum = - 1 ;\n int hournum = - 1 ;\n int minnum = - 1 ;\n int secnum = - 1 ;\n int yearnum = - 1 ;\n int tzoff = - 1 ;\n struct my_tm tm ;\n enum assume dignext = DATE_MDAY ;\n const char * indate = date ;\n int part = 0 ;\n while ( * date && ( part < 6 ) ) {\n bool found = FALSE ;\n skip ( & date ) ;\n if ( ISALPHA ( * date ) ) {\n char buf [ 32 ] = \"\" ;\n size_t len ;\n if ( sscanf ( date , \"%31[ABCDEFGHIJKLMNOPQRSTUVWXYZ\" \"abcdefghijklmnopqrstuvwxyz]\" , buf ) ) len = strlen ( buf ) ;\n else len = 0 ;\n if ( wdaynum == - 1 ) {\n wdaynum = checkday ( buf , len ) ;\n if ( wdaynum != - 1 ) found = TRUE ;\n }\n if ( ! found && ( monnum == - 1 ) ) {\n monnum = checkmonth ( buf ) ;\n if ( monnum != - 1 ) found = TRUE ;\n }\n if ( ! found && ( tzoff == - 1 ) ) {\n tzoff = checktz ( buf ) ;\n if ( tzoff != - 1 ) found = TRUE ;\n }\n if ( ! found ) return PARSEDATE_FAIL ;\n date += len ;\n }\n else if ( ISDIGIT ( * date ) ) {\n int val ;\n char * end ;\n if ( ( secnum == - 1 ) && ( 3 == sscanf ( date , \"%02d:%02d:%02d\" , & hournum , & minnum , & secnum ) ) ) {\n date += 8 ;\n }\n else if ( ( secnum == - 1 ) && ( 2 == sscanf ( date , \"%02d:%02d\" , & hournum , & minnum ) ) ) {\n date += 5 ;\n secnum = 0 ;\n }\n else {\n long lval ;\n int error ;\n int old_errno ;\n old_errno = ERRNO ;\n SET_ERRNO ( 0 ) ;\n lval = strtol ( date , & end , 10 ) ;\n error = ERRNO ;\n if ( error != old_errno ) SET_ERRNO ( old_errno ) ;\n if ( error ) return PARSEDATE_FAIL ;\n # if LONG_MAX != INT_MAX if ( ( lval > ( long ) INT_MAX ) || ( lval < ( long ) INT_MIN ) ) return PARSEDATE_FAIL ;\n # endif val = curlx_sltosi ( lval ) ;\n if ( ( tzoff == - 1 ) && ( ( end - date ) == 4 ) && ( val <= 1400 ) && ( indate < date ) && ( ( date [ - 1 ] == '+' || date [ - 1 ] == '-' ) ) ) {\n found = TRUE ;\n tzoff = ( val / 100 * 60 + val % 100 ) * 60 ;\n tzoff = date [ - 1 ] == '+' ? - tzoff : tzoff ;\n }\n if ( ( ( end - date ) == 8 ) && ( yearnum == - 1 ) && ( monnum == - 1 ) && ( mdaynum == - 1 ) ) {\n found = TRUE ;\n yearnum = val / 10000 ;\n monnum = ( val % 10000 ) / 100 - 1 ;\n mdaynum = val % 100 ;\n }\n if ( ! found && ( dignext == DATE_MDAY ) && ( mdaynum == - 1 ) ) {\n if ( ( val > 0 ) && ( val < 32 ) ) {\n mdaynum = val ;\n found = TRUE ;\n }\n dignext = DATE_YEAR ;\n }\n if ( ! found && ( dignext == DATE_YEAR ) && ( yearnum == - 1 ) ) {\n yearnum = val ;\n found = TRUE ;\n if ( yearnum < 1900 ) {\n if ( yearnum > 70 ) yearnum += 1900 ;\n else yearnum += 2000 ;\n }\n if ( mdaynum == - 1 ) dignext = DATE_MDAY ;\n }\n if ( ! found ) return PARSEDATE_FAIL ;\n date = end ;\n }\n }\n part ++ ;\n }\n if ( - 1 == secnum ) secnum = minnum = hournum = 0 ;\n if ( ( - 1 == mdaynum ) || ( - 1 == monnum ) || ( - 1 == yearnum ) ) return PARSEDATE_FAIL ;\n # if SIZEOF_TIME_T < 5 if ( yearnum > 2037 ) {\n * output = 0x7fffffff ;\n return PARSEDATE_LATER ;\n }\n # endif if ( yearnum < 1970 ) {\n * output = 0 ;\n return PARSEDATE_SOONER ;\n }\n if ( ( mdaynum > 31 ) || ( monnum > 11 ) || ( hournum > 23 ) || ( minnum > 59 ) || ( secnum > 60 ) ) return PARSEDATE_FAIL ;\n tm . tm_sec = secnum ;\n tm . tm_min = minnum ;\n tm . tm_hour = hournum ;\n tm . tm_mday = mdaynum ;\n tm . tm_mon = monnum ;\n tm . tm_year = yearnum - 1900 ;\n t = my_timegm ( & tm ) ;\n if ( - 1 != ( int ) t ) {\n long delta = ( long ) ( tzoff != - 1 ? tzoff : 0 ) ;\n if ( ( delta > 0 ) && ( t > LONG_MAX - delta ) ) {\n * output = 0x7fffffff ;\n return PARSEDATE_LATER ;\n }\n t += delta ;\n }\n * output = t ;\n return PARSEDATE_OK ;\n }"}
{"idx": 12219, "target": 0, "func": "void ff_MPV_frame_end ( MpegEncContext * s ) {\n int i ;\n if ( CONFIG_MPEG_XVMC_DECODER && s -> avctx -> xvmc_acceleration ) {\n ff_xvmc_field_end ( s ) ;\n }\n else if ( ( s -> er . error_count || s -> encoding ) && ! s -> avctx -> hwaccel && ! ( s -> avctx -> codec -> capabilities & CODEC_CAP_HWACCEL_VDPAU ) && s -> unrestricted_mv && s -> current_picture . reference && ! s -> intra_only && ! ( s -> flags & CODEC_FLAG_EMU_EDGE ) ) {\n const AVPixFmtDescriptor * desc = av_pix_fmt_desc_get ( s -> avctx -> pix_fmt ) ;\n int hshift = desc -> log2_chroma_w ;\n int vshift = desc -> log2_chroma_h ;\n s -> dsp . draw_edges ( s -> current_picture . f . data [ 0 ] , s -> linesize , s -> h_edge_pos , s -> v_edge_pos , EDGE_WIDTH , EDGE_WIDTH , EDGE_TOP | EDGE_BOTTOM ) ;\n s -> dsp . draw_edges ( s -> current_picture . f . data [ 1 ] , s -> uvlinesize , s -> h_edge_pos >> hshift , s -> v_edge_pos >> vshift , EDGE_WIDTH >> hshift , EDGE_WIDTH >> vshift , EDGE_TOP | EDGE_BOTTOM ) ;\n s -> dsp . draw_edges ( s -> current_picture . f . data [ 2 ] , s -> uvlinesize , s -> h_edge_pos >> hshift , s -> v_edge_pos >> vshift , EDGE_WIDTH >> hshift , EDGE_WIDTH >> vshift , EDGE_TOP | EDGE_BOTTOM ) ;\n }\n emms_c ( ) ;\n s -> last_pict_type = s -> pict_type ;\n s -> last_lambda_for [ s -> pict_type ] = s -> current_picture_ptr -> f . quality ;\n if ( s -> pict_type != AV_PICTURE_TYPE_B ) {\n s -> last_non_b_pict_type = s -> pict_type ;\n }\n # if 0 for ( i = 0 ;\n i < MAX_PICTURE_COUNT ;\n i ++ ) {\n if ( s -> picture [ i ] . f . data [ 0 ] == s -> current_picture . f . data [ 0 ] ) {\n s -> picture [ i ] = s -> current_picture ;\n break ;\n }\n }\n assert ( i < MAX_PICTURE_COUNT ) ;\n # endif if ( s -> encoding ) {\n for ( i = 0 ;\n i < MAX_PICTURE_COUNT ;\n i ++ ) {\n if ( ! s -> picture [ i ] . reference ) ff_mpeg_unref_picture ( s , & s -> picture [ i ] ) ;\n }\n }\n # if 0 memset ( & s -> last_picture , 0 , sizeof ( Picture ) ) ;\n memset ( & s -> next_picture , 0 , sizeof ( Picture ) ) ;\n memset ( & s -> current_picture , 0 , sizeof ( Picture ) ) ;\n # endif s -> avctx -> coded_frame = & s -> current_picture_ptr -> f ;\n if ( s -> codec_id != AV_CODEC_ID_H264 && s -> current_picture . reference ) ff_thread_report_progress ( & s -> current_picture_ptr -> tf , INT_MAX , 0 ) ;\n }"}
{"idx": 12220, "target": 0, "func": "void * TSConfigDataGet ( TSConfig configp ) {\n INKConfigImpl * config = ( INKConfigImpl * ) configp ;\n return config -> mdata ;\n }"}
{"idx": 12221, "target": 0, "func": "static Expr * evaluate_function ( Oid funcid , Oid result_type , int32 result_typmod , Oid result_collid , Oid input_collid , List * args , bool funcvariadic , HeapTuple func_tuple , eval_const_expressions_context * context ) {\n Form_pg_proc funcform = ( Form_pg_proc ) GETSTRUCT ( func_tuple ) ;\n bool has_nonconst_input = false ;\n bool has_null_input = false ;\n ListCell * arg ;\n FuncExpr * newexpr ;\n if ( funcform -> proretset ) return NULL ;\n if ( funcform -> prorettype == RECORDOID ) return NULL ;\n foreach ( arg , args ) {\n if ( IsA ( lfirst ( arg ) , Const ) ) has_null_input |= ( ( Const * ) lfirst ( arg ) ) -> constisnull ;\n else has_nonconst_input = true ;\n }\n if ( funcform -> proisstrict && has_null_input ) return ( Expr * ) makeNullConst ( result_type , result_typmod , result_collid ) ;\n if ( has_nonconst_input ) return NULL ;\n if ( funcform -> provolatile == PROVOLATILE_IMMUTABLE ) ;\n else if ( context -> estimate && funcform -> provolatile == PROVOLATILE_STABLE ) ;\n else return NULL ;\n newexpr = makeNode ( FuncExpr ) ;\n newexpr -> funcid = funcid ;\n newexpr -> funcresulttype = result_type ;\n newexpr -> funcretset = false ;\n newexpr -> funcvariadic = funcvariadic ;\n newexpr -> funcformat = COERCE_EXPLICIT_CALL ;\n newexpr -> funccollid = result_collid ;\n newexpr -> inputcollid = input_collid ;\n newexpr -> args = args ;\n newexpr -> location = - 1 ;\n return evaluate_expr ( ( Expr * ) newexpr , result_type , result_typmod , result_collid ) ;\n }"}
{"idx": 12222, "target": 0, "func": "guint16 elem_v ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , gint pdu_type , int idx , guint32 offset , const gchar * name_add ) {\n guint16 consumed ;\n guint32 curr_offset ;\n proto_tree * subtree ;\n proto_item * item ;\n value_string_ext elem_names_ext ;\n gint * elem_ett ;\n const gchar * elem_name ;\n guint16 ( * * elem_funcs ) ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string , int string_len ) ;\n curr_offset = offset ;\n consumed = 0 ;\n SET_ELEM_VARS ( pdu_type , elem_names_ext , elem_ett , elem_funcs , & ei_gsm_a_unknown_pdu_type ) ;\n elem_name = try_val_to_str_ext ( idx , & elem_names_ext ) ;\n if ( elem_name == NULL || elem_funcs [ idx ] == NULL ) {\n proto_tree_add_expert ( tree , pinfo , & ei_gsm_a_no_element_dissector , tvb , curr_offset , 1 ) ;\n consumed = 1 ;\n }\n else {\n gchar * a_add_string ;\n subtree = proto_tree_add_subtree_format ( tree , tvb , curr_offset , 0 , elem_ett [ idx ] , & item , \"%s%s\" , elem_name , ( name_add == NULL ) || ( name_add [ 0 ] == '\\0' ) ? \"\" : name_add ) ;\n a_add_string = ( gchar * ) wmem_alloc ( wmem_packet_scope ( ) , 1024 ) ;\n a_add_string [ 0 ] = '\\0' ;\n consumed = ( * elem_funcs [ idx ] ) ( tvb , subtree , pinfo , curr_offset , - 1 , a_add_string , 1024 ) ;\n if ( a_add_string [ 0 ] != '\\0' ) {\n proto_item_append_text ( item , \"%s\" , a_add_string ) ;\n }\n proto_item_set_len ( item , consumed ) ;\n }\n return ( consumed ) ;\n }"}
{"idx": 12223, "target": 0, "func": "static int pre_estimate_motion_thread ( AVCodecContext * c , void * arg ) {\n MpegEncContext * s = * ( void * * ) arg ;\n s -> me . pre_pass = 1 ;\n s -> me . dia_size = s -> avctx -> pre_dia_size ;\n s -> first_slice_line = 1 ;\n for ( s -> mb_y = s -> end_mb_y - 1 ;\n s -> mb_y >= s -> start_mb_y ;\n s -> mb_y -- ) {\n for ( s -> mb_x = s -> mb_width - 1 ;\n s -> mb_x >= 0 ;\n s -> mb_x -- ) {\n ff_pre_estimate_p_frame_motion ( s , s -> mb_x , s -> mb_y ) ;\n }\n s -> first_slice_line = 0 ;\n }\n s -> me . pre_pass = 0 ;\n return 0 ;\n }"}
{"idx": 12224, "target": 0, "func": "static int dissect_h225_ProtocolIdentifier ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_object_identifier ( tvb , offset , actx , tree , hf_index , NULL ) ;\n return offset ;\n }"}
{"idx": 12225, "target": 0, "func": "static void fill_decode_neighbors ( H264Context * h , int mb_type ) {\n const int mb_xy = h -> mb_xy ;\n int topleft_xy , top_xy , topright_xy , left_xy [ LEFT_MBS ] ;\n static const uint8_t left_block_options [ 4 ] [ 32 ] = {\n {\n 0 , 1 , 2 , 3 , 7 , 10 , 8 , 11 , 3 + 0 * 4 , 3 + 1 * 4 , 3 + 2 * 4 , 3 + 3 * 4 , 1 + 4 * 4 , 1 + 8 * 4 , 1 + 5 * 4 , 1 + 9 * 4 }\n , {\n 2 , 2 , 3 , 3 , 8 , 11 , 8 , 11 , 3 + 2 * 4 , 3 + 2 * 4 , 3 + 3 * 4 , 3 + 3 * 4 , 1 + 5 * 4 , 1 + 9 * 4 , 1 + 5 * 4 , 1 + 9 * 4 }\n , {\n 0 , 0 , 1 , 1 , 7 , 10 , 7 , 10 , 3 + 0 * 4 , 3 + 0 * 4 , 3 + 1 * 4 , 3 + 1 * 4 , 1 + 4 * 4 , 1 + 8 * 4 , 1 + 4 * 4 , 1 + 8 * 4 }\n , {\n 0 , 2 , 0 , 2 , 7 , 10 , 7 , 10 , 3 + 0 * 4 , 3 + 2 * 4 , 3 + 0 * 4 , 3 + 2 * 4 , 1 + 4 * 4 , 1 + 8 * 4 , 1 + 4 * 4 , 1 + 8 * 4 }\n }\n ;\n h -> topleft_partition = - 1 ;\n top_xy = mb_xy - ( h -> mb_stride << MB_FIELD ) ;\n topleft_xy = top_xy - 1 ;\n topright_xy = top_xy + 1 ;\n left_xy [ LBOT ] = left_xy [ LTOP ] = mb_xy - 1 ;\n h -> left_block = left_block_options [ 0 ] ;\n if ( FRAME_MBAFF ) {\n const int left_mb_field_flag = IS_INTERLACED ( h -> cur_pic . mb_type [ mb_xy - 1 ] ) ;\n const int curr_mb_field_flag = IS_INTERLACED ( mb_type ) ;\n if ( h -> mb_y & 1 ) {\n if ( left_mb_field_flag != curr_mb_field_flag ) {\n left_xy [ LBOT ] = left_xy [ LTOP ] = mb_xy - h -> mb_stride - 1 ;\n if ( curr_mb_field_flag ) {\n left_xy [ LBOT ] += h -> mb_stride ;\n h -> left_block = left_block_options [ 3 ] ;\n }\n else {\n topleft_xy += h -> mb_stride ;\n h -> topleft_partition = 0 ;\n h -> left_block = left_block_options [ 1 ] ;\n }\n }\n }\n else {\n if ( curr_mb_field_flag ) {\n topleft_xy += h -> mb_stride & ( ( ( h -> cur_pic . mb_type [ top_xy - 1 ] >> 7 ) & 1 ) - 1 ) ;\n topright_xy += h -> mb_stride & ( ( ( h -> cur_pic . mb_type [ top_xy + 1 ] >> 7 ) & 1 ) - 1 ) ;\n top_xy += h -> mb_stride & ( ( ( h -> cur_pic . mb_type [ top_xy ] >> 7 ) & 1 ) - 1 ) ;\n }\n if ( left_mb_field_flag != curr_mb_field_flag ) {\n if ( curr_mb_field_flag ) {\n left_xy [ LBOT ] += h -> mb_stride ;\n h -> left_block = left_block_options [ 3 ] ;\n }\n else {\n h -> left_block = left_block_options [ 2 ] ;\n }\n }\n }\n }\n h -> topleft_mb_xy = topleft_xy ;\n h -> top_mb_xy = top_xy ;\n h -> topright_mb_xy = topright_xy ;\n h -> left_mb_xy [ LTOP ] = left_xy [ LTOP ] ;\n h -> left_mb_xy [ LBOT ] = left_xy [ LBOT ] ;\n h -> topleft_type = h -> cur_pic . mb_type [ topleft_xy ] ;\n h -> top_type = h -> cur_pic . mb_type [ top_xy ] ;\n h -> topright_type = h -> cur_pic . mb_type [ topright_xy ] ;\n h -> left_type [ LTOP ] = h -> cur_pic . mb_type [ left_xy [ LTOP ] ] ;\n h -> left_type [ LBOT ] = h -> cur_pic . mb_type [ left_xy [ LBOT ] ] ;\n if ( FMO ) {\n if ( h -> slice_table [ topleft_xy ] != h -> slice_num ) h -> topleft_type = 0 ;\n if ( h -> slice_table [ top_xy ] != h -> slice_num ) h -> top_type = 0 ;\n if ( h -> slice_table [ left_xy [ LTOP ] ] != h -> slice_num ) h -> left_type [ LTOP ] = h -> left_type [ LBOT ] = 0 ;\n }\n else {\n if ( h -> slice_table [ topleft_xy ] != h -> slice_num ) {\n h -> topleft_type = 0 ;\n if ( h -> slice_table [ top_xy ] != h -> slice_num ) h -> top_type = 0 ;\n if ( h -> slice_table [ left_xy [ LTOP ] ] != h -> slice_num ) h -> left_type [ LTOP ] = h -> left_type [ LBOT ] = 0 ;\n }\n }\n if ( h -> slice_table [ topright_xy ] != h -> slice_num ) h -> topright_type = 0 ;\n }"}
{"idx": 12226, "target": 0, "func": "static VALUE ossl_asn1_ ## klass ( int argc , VALUE * argv , VALUE self ) \\ {\n return rb_funcall3 ( cASN1 ## klass , rb_intern ( \"new\" ) , argc , argv ) ;\n }\n OSSL_ASN1_IMPL_FACTORY_METHOD ( Boolean ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Integer )"}
{"idx": 12227, "target": 1, "func": "static int ipvideo_decode_block_opcode_0x7_16 ( IpvideoContext * s ) {\n int x , y ;\n uint16_t P [ 2 ] ;\n unsigned int flags ;\n uint16_t * pixel_ptr = ( uint16_t * ) s -> pixel_ptr ;\n P [ 0 ] = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n P [ 1 ] = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n if ( ! ( P [ 0 ] & 0x8000 ) ) {\n for ( y = 0 ;\n y < 8 ;\n y ++ ) {\n flags = bytestream2_get_byte ( & s -> stream_ptr ) | 0x100 ;\n for ( ;\n flags != 1 ;\n flags >>= 1 ) * pixel_ptr ++ = P [ flags & 1 ] ;\n pixel_ptr += s -> line_inc ;\n }\n }\n else {\n flags = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n for ( y = 0 ;\n y < 8 ;\n y += 2 ) {\n for ( x = 0 ;\n x < 8 ;\n x += 2 , flags >>= 1 ) {\n pixel_ptr [ x ] = pixel_ptr [ x + 1 ] = pixel_ptr [ x + s -> stride ] = pixel_ptr [ x + 1 + s -> stride ] = P [ flags & 1 ] ;\n }\n pixel_ptr += s -> stride * 2 ;\n }\n }\n return 0 ;\n }"}
{"idx": 12228, "target": 0, "func": "static uint8_t get_filter_level ( const loop_filter_info_n * lfi_n , const MB_MODE_INFO * mbmi ) {\n return lfi_n -> lvl [ mbmi -> segment_id ] [ mbmi -> ref_frame [ 0 ] ] [ mode_lf_lut [ mbmi -> mode ] ] ;\n }"}
{"idx": 12229, "target": 0, "func": "static gpg_err_code_t octet_string_from_mpi ( unsigned char * * r_frame , void * space , gcry_mpi_t value , size_t nbytes ) {\n gpg_err_code_t rc ;\n size_t nframe , noff , n ;\n unsigned char * frame ;\n if ( ! r_frame == ! space ) return GPG_ERR_INV_ARG ;\n if ( r_frame ) * r_frame = NULL ;\n rc = gcry_err_code ( gcry_mpi_print ( GCRYMPI_FMT_USG , NULL , 0 , & nframe , value ) ) ;\n if ( rc ) return rc ;\n if ( nframe > nbytes ) return GPG_ERR_TOO_LARGE ;\n noff = ( nframe < nbytes ) ? nbytes - nframe : 0 ;\n n = nframe + noff ;\n if ( space ) frame = space ;\n else {\n frame = mpi_is_secure ( value ) ? gcry_malloc_secure ( n ) : gcry_malloc ( n ) ;\n if ( ! frame ) {\n rc = gpg_err_code_from_syserror ( ) ;\n return rc ;\n }\n }\n if ( noff ) memset ( frame , 0 , noff ) ;\n nframe += noff ;\n rc = gcry_err_code ( gcry_mpi_print ( GCRYMPI_FMT_USG , frame + noff , nframe - noff , NULL , value ) ) ;\n if ( rc ) {\n gcry_free ( frame ) ;\n return rc ;\n }\n if ( r_frame ) * r_frame = frame ;\n return 0 ;\n }"}
{"idx": 12230, "target": 0, "func": "static void xps_parse_arc_segment ( fz_context * doc , fz_path * path , fz_xml * root , int stroking , int * skipped_stroke ) {\n float rotation_angle ;\n int is_large_arc , is_clockwise ;\n float point_x , point_y ;\n float size_x , size_y ;\n int is_stroked ;\n char * point_att = fz_xml_att ( root , \"Point\" ) ;\n char * size_att = fz_xml_att ( root , \"Size\" ) ;\n char * rotation_angle_att = fz_xml_att ( root , \"RotationAngle\" ) ;\n char * is_large_arc_att = fz_xml_att ( root , \"IsLargeArc\" ) ;\n char * sweep_direction_att = fz_xml_att ( root , \"SweepDirection\" ) ;\n char * is_stroked_att = fz_xml_att ( root , \"IsStroked\" ) ;\n if ( ! point_att || ! size_att || ! rotation_angle_att || ! is_large_arc_att || ! sweep_direction_att ) {\n fz_warn ( doc , \"ArcSegment element is missing attributes\" ) ;\n return ;\n }\n is_stroked = 1 ;\n if ( is_stroked_att && ! strcmp ( is_stroked_att , \"false\" ) ) is_stroked = 0 ;\n if ( ! is_stroked ) * skipped_stroke = 1 ;\n point_x = point_y = 0 ;\n size_x = size_y = 0 ;\n xps_parse_point ( point_att , & point_x , & point_y ) ;\n xps_parse_point ( size_att , & size_x , & size_y ) ;\n rotation_angle = fz_atof ( rotation_angle_att ) ;\n is_large_arc = ! strcmp ( is_large_arc_att , \"true\" ) ;\n is_clockwise = ! strcmp ( sweep_direction_att , \"Clockwise\" ) ;\n if ( stroking && ! is_stroked ) {\n fz_moveto ( doc , path , point_x , point_y ) ;\n return ;\n }\n xps_draw_arc ( doc , path , size_x , size_y , rotation_angle , is_large_arc , is_clockwise , point_x , point_y ) ;\n }"}
{"idx": 12231, "target": 0, "func": "int dump_msg_test ( char * code , FILE * fd , char header , char segregationLevel ) {\n unsigned short int i , j , l , m , msglen ;\n int k ;\n char r , * msg ;\n unsigned char * payload ;\n payload = ( unsigned char * ) code ;\n memcpy ( & i , code , 2 ) ;\n memcpy ( & j , & code [ MSG_START_IDX ] , 2 ) ;\n memcpy ( & msglen , & code [ MSG_LEN_IDX ] , 2 ) ;\n i = ntohs ( i ) ;\n j = ntohs ( j ) ;\n msglen = ntohs ( msglen ) ;\n if ( header == 0 ) {\n fwrite ( code , 1 , j + msglen , fd ) ;\n fwrite ( & theSignal , 1 , 4 , fd ) ;\n return 0 ;\n }\n msg = ( char * ) & payload [ j ] ;\n r = ( i < 100 ) ? 1 : 0 ;\n if ( r ) {\n if ( segregationLevel & ALSO_RURI ) {\n if ( ! ( segregationLevel & JUNIT ) ) {\n k = htonl ( payload [ REQUEST_URI_IDX + 1 ] + payload [ REQUEST_URI_IDX + 2 ] ) ;\n fwrite ( & k , 1 , 4 , fd ) ;\n fwrite ( msg , 1 , ntohl ( k ) , fd ) ;\n k = htonl ( ( long ) payload [ REQUEST_URI_IDX ] ) ;\n fwrite ( & k , 1 , 4 , fd ) ;\n fwrite ( & payload [ REQUEST_URI_IDX + 1 ] , 1 , payload [ REQUEST_URI_IDX ] , fd ) ;\n fwrite ( & theSignal , 1 , 4 , fd ) ;\n }\n else print_uri_junit_tests ( msg , payload [ REQUEST_URI_IDX + 1 ] + payload [ REQUEST_URI_IDX + 2 ] , & payload [ REQUEST_URI_IDX + 1 ] , payload [ REQUEST_URI_IDX ] , fd , 1 , \"\" ) ;\n }\n i = REQUEST_URI_IDX + 1 + payload [ REQUEST_URI_IDX ] ;\n }\n else {\n i = REQUEST_URI_IDX ;\n }\n j = payload [ i ] ;\n i ++ ;\n for ( k = i ;\n k < i + ( j * 3 ) ;\n k += 3 ) {\n memcpy ( & l , & payload [ k + 1 ] , 2 ) ;\n memcpy ( & m , & payload [ k + 4 ] , 2 ) ;\n l = ntohs ( l ) ;\n m = ntohs ( m ) ;\n if ( header == ( char ) payload [ k ] || ( header == 'U' && ( payload [ k ] == 'f' || payload [ k ] == 't' || payload [ k ] == 'm' || payload [ k ] == 'o' || payload [ k ] == 'p' ) ) ) dump_headers_test ( msg , msglen , & payload [ i + ( j * 3 ) + l + 3 ] , m - l , payload [ k ] , fd , segregationLevel ) ;\n }\n return 1 ;\n }"}
{"idx": 12232, "target": 0, "func": "static int dnslabel_table_get_pos ( const struct dnslabel_table * table , const char * label ) {\n int i ;\n for ( i = 0 ;\n i < table -> n_labels ;\n ++ i ) {\n if ( ! strcmp ( label , table -> labels [ i ] . v ) ) return table -> labels [ i ] . pos ;\n }\n return - 1 ;\n }"}
{"idx": 12233, "target": 0, "func": "err_status_t srtp_stream_dealloc ( srtp_t session , srtp_stream_ctx_t * stream ) {\n err_status_t status ;\n if ( session -> stream_template && stream -> rtp_cipher == session -> stream_template -> rtp_cipher ) {\n }\n else {\n status = cipher_dealloc ( stream -> rtp_cipher ) ;\n if ( status ) return status ;\n }\n if ( session -> stream_template && stream -> rtp_auth == session -> stream_template -> rtp_auth ) {\n }\n else {\n status = auth_dealloc ( stream -> rtp_auth ) ;\n if ( status ) return status ;\n }\n if ( session -> stream_template && stream -> limit == session -> stream_template -> limit ) {\n }\n else {\n crypto_free ( stream -> limit ) ;\n }\n if ( session -> stream_template && stream -> rtcp_cipher == session -> stream_template -> rtcp_cipher ) {\n }\n else {\n status = cipher_dealloc ( stream -> rtcp_cipher ) ;\n if ( status ) return status ;\n }\n if ( session -> stream_template && stream -> rtcp_auth == session -> stream_template -> rtcp_auth ) {\n }\n else {\n status = auth_dealloc ( stream -> rtcp_auth ) ;\n if ( status ) return status ;\n }\n status = rdbx_dealloc ( & stream -> rtp_rdbx ) ;\n if ( status ) return status ;\n memset ( stream -> salt , 0 , SRTP_AEAD_SALT_LEN ) ;\n memset ( stream -> c_salt , 0 , SRTP_AEAD_SALT_LEN ) ;\n crypto_free ( stream ) ;\n return err_status_ok ;\n }"}
{"idx": 12234, "target": 1, "func": "static int asf_write_packet ( AVFormatContext * s , AVPacket * pkt ) {\n ASFContext * asf = s -> priv_data ;\n AVIOContext * pb = s -> pb ;\n ASFStream * stream ;\n AVCodecContext * codec ;\n uint32_t packet_number ;\n int64_t pts ;\n int start_sec ;\n int flags = pkt -> flags ;\n int ret ;\n uint64_t offset = avio_tell ( pb ) ;\n codec = s -> streams [ pkt -> stream_index ] -> codec ;\n stream = & asf -> streams [ pkt -> stream_index ] ;\n if ( codec -> codec_type == AVMEDIA_TYPE_AUDIO ) flags &= ~ AV_PKT_FLAG_KEY ;\n pts = ( pkt -> pts != AV_NOPTS_VALUE ) ? pkt -> pts : pkt -> dts ;\n av_assert0 ( pts != AV_NOPTS_VALUE ) ;\n pts *= 10000 ;\n asf -> duration = FFMAX ( asf -> duration , pts + pkt -> duration * 10000 ) ;\n packet_number = asf -> nb_packets ;\n put_frame ( s , stream , s -> streams [ pkt -> stream_index ] , pkt -> dts , pkt -> data , pkt -> size , flags ) ;\n start_sec = ( int ) ( ( PREROLL_TIME * 10000 + pts + ASF_INDEXED_INTERVAL - 1 ) / ASF_INDEXED_INTERVAL ) ;\n if ( ( ! asf -> is_streamed ) && ( flags & AV_PKT_FLAG_KEY ) ) {\n uint16_t packet_count = asf -> nb_packets - packet_number ;\n ret = update_index ( s , start_sec , packet_number , packet_count , offset ) ;\n if ( ret < 0 ) return ret ;\n }\n asf -> end_sec = start_sec ;\n return 0 ;\n }"}
{"idx": 12235, "target": 1, "func": "static bfd_boolean srec_scan ( bfd * abfd ) {\n int c ;\n unsigned int lineno = 1 ;\n bfd_boolean error = FALSE ;\n bfd_byte * buf = NULL ;\n size_t bufsize = 0 ;\n asection * sec = NULL ;\n char * symbuf = NULL ;\n if ( bfd_seek ( abfd , ( file_ptr ) 0 , SEEK_SET ) != 0 ) goto error_return ;\n while ( ( c = srec_get_byte ( abfd , & error ) ) != EOF ) {\n if ( c != 'S' && c != '\\r' && c != '\\n' ) sec = NULL ;\n switch ( c ) {\n default : srec_bad_byte ( abfd , lineno , c , error ) ;\n goto error_return ;\n case '\\n' : ++ lineno ;\n break ;\n case '\\r' : break ;\n case '$' : while ( ( c = srec_get_byte ( abfd , & error ) ) != '\\n' && c != EOF ) ;\n if ( c == EOF ) {\n srec_bad_byte ( abfd , lineno , c , error ) ;\n goto error_return ;\n }\n ++ lineno ;\n break ;\n case ' ' : do {\n bfd_size_type alc ;\n char * p , * symname ;\n bfd_vma symval ;\n while ( ( c = srec_get_byte ( abfd , & error ) ) != EOF && ( c == ' ' || c == '\\t' ) ) ;\n if ( c == '\\n' || c == '\\r' ) break ;\n if ( c == EOF ) {\n srec_bad_byte ( abfd , lineno , c , error ) ;\n goto error_return ;\n }\n alc = 10 ;\n symbuf = ( char * ) bfd_malloc ( alc + 1 ) ;\n if ( symbuf == NULL ) goto error_return ;\n p = symbuf ;\n * p ++ = c ;\n while ( ( c = srec_get_byte ( abfd , & error ) ) != EOF && ! ISSPACE ( c ) ) {\n if ( ( bfd_size_type ) ( p - symbuf ) >= alc ) {\n char * n ;\n alc *= 2 ;\n n = ( char * ) bfd_realloc ( symbuf , alc + 1 ) ;\n if ( n == NULL ) goto error_return ;\n p = n + ( p - symbuf ) ;\n symbuf = n ;\n }\n * p ++ = c ;\n }\n if ( c == EOF ) {\n srec_bad_byte ( abfd , lineno , c , error ) ;\n goto error_return ;\n }\n * p ++ = '\\0' ;\n symname = ( char * ) bfd_alloc ( abfd , ( bfd_size_type ) ( p - symbuf ) ) ;\n if ( symname == NULL ) goto error_return ;\n strcpy ( symname , symbuf ) ;\n free ( symbuf ) ;\n symbuf = NULL ;\n while ( ( c = srec_get_byte ( abfd , & error ) ) != EOF && ( c == ' ' || c == '\\t' ) ) ;\n if ( c == EOF ) {\n srec_bad_byte ( abfd , lineno , c , error ) ;\n goto error_return ;\n }\n if ( c == '$' ) {\n c = srec_get_byte ( abfd , & error ) ;\n if ( c == EOF ) {\n srec_bad_byte ( abfd , lineno , c , error ) ;\n goto error_return ;\n }\n }\n symval = 0 ;\n while ( ISHEX ( c ) ) {\n symval <<= 4 ;\n symval += NIBBLE ( c ) ;\n c = srec_get_byte ( abfd , & error ) ;\n if ( c == EOF ) {\n srec_bad_byte ( abfd , lineno , c , error ) ;\n goto error_return ;\n }\n }\n if ( ! srec_new_symbol ( abfd , symname , symval ) ) goto error_return ;\n }\n while ( c == ' ' || c == '\\t' ) ;\n if ( c == '\\n' ) ++ lineno ;\n else if ( c != '\\r' ) {\n srec_bad_byte ( abfd , lineno , c , error ) ;\n goto error_return ;\n }\n break ;\n case 'S' : {\n file_ptr pos ;\n char hdr [ 3 ] ;\n unsigned int bytes ;\n bfd_vma address ;\n bfd_byte * data ;\n unsigned char check_sum ;\n pos = bfd_tell ( abfd ) - 1 ;\n if ( bfd_bread ( hdr , ( bfd_size_type ) 3 , abfd ) != 3 ) goto error_return ;\n if ( ! ISHEX ( hdr [ 1 ] ) || ! ISHEX ( hdr [ 2 ] ) ) {\n if ( ! ISHEX ( hdr [ 1 ] ) ) c = hdr [ 1 ] ;\n else c = hdr [ 2 ] ;\n srec_bad_byte ( abfd , lineno , c , error ) ;\n goto error_return ;\n }\n check_sum = bytes = HEX ( hdr + 1 ) ;\n if ( bytes * 2 > bufsize ) {\n if ( buf != NULL ) free ( buf ) ;\n buf = ( bfd_byte * ) bfd_malloc ( ( bfd_size_type ) bytes * 2 ) ;\n if ( buf == NULL ) goto error_return ;\n bufsize = bytes * 2 ;\n }\n if ( bytes == 0 || bfd_bread ( buf , ( bfd_size_type ) bytes * 2 , abfd ) != bytes * 2 ) goto error_return ;\n -- bytes ;\n address = 0 ;\n data = buf ;\n switch ( hdr [ 0 ] ) {\n case '0' : case '5' : sec = NULL ;\n break ;\n case '3' : check_sum += HEX ( data ) ;\n address = HEX ( data ) ;\n data += 2 ;\n -- bytes ;\n case '2' : check_sum += HEX ( data ) ;\n address = ( address << 8 ) | HEX ( data ) ;\n data += 2 ;\n -- bytes ;\n case '1' : check_sum += HEX ( data ) ;\n address = ( address << 8 ) | HEX ( data ) ;\n data += 2 ;\n check_sum += HEX ( data ) ;\n address = ( address << 8 ) | HEX ( data ) ;\n data += 2 ;\n bytes -= 2 ;\n if ( sec != NULL && sec -> vma + sec -> size == address ) {\n sec -> size += bytes ;\n }\n else {\n char secbuf [ 20 ] ;\n char * secname ;\n bfd_size_type amt ;\n flagword flags ;\n sprintf ( secbuf , \".sec%d\" , bfd_count_sections ( abfd ) + 1 ) ;\n amt = strlen ( secbuf ) + 1 ;\n secname = ( char * ) bfd_alloc ( abfd , amt ) ;\n strcpy ( secname , secbuf ) ;\n flags = SEC_HAS_CONTENTS | SEC_LOAD | SEC_ALLOC ;\n sec = bfd_make_section_with_flags ( abfd , secname , flags ) ;\n if ( sec == NULL ) goto error_return ;\n sec -> vma = address ;\n sec -> lma = address ;\n sec -> size = bytes ;\n sec -> filepos = pos ;\n }\n while ( bytes > 0 ) {\n check_sum += HEX ( data ) ;\n data += 2 ;\n bytes -- ;\n }\n check_sum = 255 - ( check_sum & 0xff ) ;\n if ( check_sum != HEX ( data ) ) {\n ( * _bfd_error_handler ) ( _ ( \"%B:%d: Bad checksum in S-record file\\n\" ) , abfd , lineno ) ;\n bfd_set_error ( bfd_error_bad_value ) ;\n goto error_return ;\n }\n break ;\n case '7' : check_sum += HEX ( data ) ;\n address = HEX ( data ) ;\n data += 2 ;\n case '8' : check_sum += HEX ( data ) ;\n address = ( address << 8 ) | HEX ( data ) ;\n data += 2 ;\n case '9' : check_sum += HEX ( data ) ;\n address = ( address << 8 ) | HEX ( data ) ;\n data += 2 ;\n check_sum += HEX ( data ) ;\n address = ( address << 8 ) | HEX ( data ) ;\n data += 2 ;\n abfd -> start_address = address ;\n check_sum = 255 - ( check_sum & 0xff ) ;\n if ( check_sum != HEX ( data ) ) {\n ( * _bfd_error_handler ) ( _ ( \"%B:%d: Bad checksum in S-record file\\n\" ) , abfd , lineno ) ;\n bfd_set_error ( bfd_error_bad_value ) ;\n goto error_return ;\n }\n if ( buf != NULL ) free ( buf ) ;\n return TRUE ;\n }\n }\n break ;\n }\n }\n if ( error ) goto error_return ;\n if ( buf != NULL ) free ( buf ) ;\n return TRUE ;\n error_return : if ( symbuf != NULL ) free ( symbuf ) ;\n if ( buf != NULL ) free ( buf ) ;\n return FALSE ;\n }"}
{"idx": 12236, "target": 0, "func": "static int rc_pick_q_and_bounds_two_pass ( const VP9_COMP * cpi , int * bottom_index , int * top_index ) {\n const VP9_COMMON * const cm = & cpi -> common ;\n const RATE_CONTROL * const rc = & cpi -> rc ;\n const VP9EncoderConfig * const oxcf = & cpi -> oxcf ;\n const int cq_level = get_active_cq_level ( rc , oxcf ) ;\n int active_best_quality ;\n int active_worst_quality = cpi -> twopass . active_worst_quality ;\n int q ;\n int * inter_minq ;\n ASSIGN_MINQ_TABLE ( cm -> bit_depth , inter_minq ) ;\n if ( frame_is_intra_only ( cm ) || vp9_is_upper_layer_key_frame ( cpi ) ) {\n if ( rc -> this_key_frame_forced ) {\n double last_boosted_q ;\n int delta_qindex ;\n int qindex ;\n if ( cpi -> twopass . last_kfgroup_zeromotion_pct >= STATIC_MOTION_THRESH ) {\n qindex = MIN ( rc -> last_kf_qindex , rc -> last_boosted_qindex ) ;\n active_best_quality = qindex ;\n last_boosted_q = vp9_convert_qindex_to_q ( qindex , cm -> bit_depth ) ;\n delta_qindex = vp9_compute_qdelta ( rc , last_boosted_q , last_boosted_q * 1.25 , cm -> bit_depth ) ;\n active_worst_quality = MIN ( qindex + delta_qindex , active_worst_quality ) ;\n }\n else {\n qindex = rc -> last_boosted_qindex ;\n last_boosted_q = vp9_convert_qindex_to_q ( qindex , cm -> bit_depth ) ;\n delta_qindex = vp9_compute_qdelta ( rc , last_boosted_q , last_boosted_q * 0.75 , cm -> bit_depth ) ;\n active_best_quality = MAX ( qindex + delta_qindex , rc -> best_quality ) ;\n }\n }\n else {\n double q_adj_factor = 1.0 ;\n double q_val ;\n active_best_quality = get_kf_active_quality ( rc , active_worst_quality , cm -> bit_depth ) ;\n if ( ( cm -> width * cm -> height ) <= ( 352 * 288 ) ) {\n q_adj_factor -= 0.25 ;\n }\n q_adj_factor += 0.05 - ( 0.001 * ( double ) cpi -> twopass . kf_zeromotion_pct ) ;\n q_val = vp9_convert_qindex_to_q ( active_best_quality , cm -> bit_depth ) ;\n active_best_quality += vp9_compute_qdelta ( rc , q_val , q_val * q_adj_factor , cm -> bit_depth ) ;\n }\n }\n else if ( ! rc -> is_src_frame_alt_ref && ( cpi -> refresh_golden_frame || cpi -> refresh_alt_ref_frame ) ) {\n if ( rc -> frames_since_key > 1 && rc -> avg_frame_qindex [ INTER_FRAME ] < active_worst_quality ) {\n q = rc -> avg_frame_qindex [ INTER_FRAME ] ;\n }\n else {\n q = active_worst_quality ;\n }\n if ( oxcf -> rc_mode == VPX_CQ ) {\n if ( q < cq_level ) q = cq_level ;\n active_best_quality = get_gf_active_quality ( rc , q , cm -> bit_depth ) ;\n active_best_quality = active_best_quality * 15 / 16 ;\n }\n else if ( oxcf -> rc_mode == VPX_Q ) {\n if ( ! cpi -> refresh_alt_ref_frame ) {\n active_best_quality = cq_level ;\n }\n else {\n active_best_quality = get_gf_active_quality ( rc , q , cm -> bit_depth ) ;\n }\n }\n else {\n active_best_quality = get_gf_active_quality ( rc , q , cm -> bit_depth ) ;\n }\n }\n else {\n if ( oxcf -> rc_mode == VPX_Q ) {\n active_best_quality = cq_level ;\n }\n else {\n active_best_quality = inter_minq [ active_worst_quality ] ;\n if ( ( oxcf -> rc_mode == VPX_CQ ) && ( active_best_quality < cq_level ) ) {\n active_best_quality = cq_level ;\n }\n }\n }\n # if LIMIT_QRANGE_FOR_ALTREF_AND_KEY vp9_clear_system_state ( ) ;\n if ( ! ( ( frame_is_intra_only ( cm ) || vp9_is_upper_layer_key_frame ( cpi ) ) ) || ! rc -> this_key_frame_forced || ( cpi -> twopass . last_kfgroup_zeromotion_pct < STATIC_MOTION_THRESH ) ) {\n const GF_GROUP * const gf_group = & cpi -> twopass . gf_group ;\n const double rate_factor_deltas [ RATE_FACTOR_LEVELS ] = {\n 1.00 , 1.00 , 1.50 , 1.75 , 2.00 , }\n ;\n const double rate_factor = rate_factor_deltas [ gf_group -> rf_level [ gf_group -> index ] ] ;\n int qdelta = vp9_compute_qdelta_by_rate ( & cpi -> rc , cm -> frame_type , active_worst_quality , rate_factor , cm -> bit_depth ) ;\n active_worst_quality = active_worst_quality + qdelta ;\n active_worst_quality = MAX ( active_worst_quality , active_best_quality ) ;\n }\n # endif active_best_quality = clamp ( active_best_quality , rc -> best_quality , rc -> worst_quality ) ;\n active_worst_quality = clamp ( active_worst_quality , active_best_quality , rc -> worst_quality ) ;\n if ( oxcf -> rc_mode == VPX_Q ) {\n q = active_best_quality ;\n }\n else if ( ( frame_is_intra_only ( cm ) || vp9_is_upper_layer_key_frame ( cpi ) ) && rc -> this_key_frame_forced ) {\n if ( cpi -> twopass . last_kfgroup_zeromotion_pct >= STATIC_MOTION_THRESH ) {\n q = MIN ( rc -> last_kf_qindex , rc -> last_boosted_qindex ) ;\n }\n else {\n q = rc -> last_boosted_qindex ;\n }\n }\n else {\n q = vp9_rc_regulate_q ( cpi , rc -> this_frame_target , active_best_quality , active_worst_quality ) ;\n if ( q > active_worst_quality ) {\n if ( rc -> this_frame_target >= rc -> max_frame_bandwidth ) active_worst_quality = q ;\n else q = active_worst_quality ;\n }\n }\n clamp ( q , active_best_quality , active_worst_quality ) ;\n * top_index = active_worst_quality ;\n * bottom_index = active_best_quality ;\n assert ( * top_index <= rc -> worst_quality && * top_index >= rc -> best_quality ) ;\n assert ( * bottom_index <= rc -> worst_quality && * bottom_index >= rc -> best_quality ) ;\n assert ( q <= rc -> worst_quality && q >= rc -> best_quality ) ;\n return q ;\n }"}
{"idx": 12237, "target": 0, "func": "static void test_list_fields ( ) {\n MYSQL_RES * result ;\n int rc ;\n myheader ( \"test_list_fields\" ) ;\n rc = mysql_query ( mysql , \"drop table if exists t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t1(c1 int primary key auto_increment, c2 char(10) default 'mysql')\" ) ;\n myquery ( rc ) ;\n result = mysql_list_fields ( mysql , \"t1\" , NULL ) ;\n mytest ( result ) ;\n rc = my_process_result_set ( result ) ;\n DIE_UNLESS ( rc == 0 ) ;\n verify_prepare_field ( result , 0 , \"c1\" , \"c1\" , MYSQL_TYPE_LONG , \"t1\" , \"t1\" , current_db , 11 , \"0\" ) ;\n verify_prepare_field ( result , 1 , \"c2\" , \"c2\" , MYSQL_TYPE_STRING , \"t1\" , \"t1\" , current_db , 10 , \"mysql\" ) ;\n mysql_free_result ( result ) ;\n myquery ( mysql_query ( mysql , \"drop table t1\" ) ) ;\n }"}
{"idx": 12238, "target": 0, "func": "static relpRetVal relpTcpSetRemHost ( relpTcp_t * pThis , struct sockaddr * pAddr ) {\n relpEngine_t * pEngine ;\n int error ;\n unsigned char szIP [ NI_MAXHOST ] = \"\" ;\n unsigned char szHname [ NI_MAXHOST ] = \"\" ;\n struct addrinfo hints , * res ;\n size_t len ;\n ENTER_RELPFUNC ;\n RELPOBJ_assert ( pThis , Tcp ) ;\n pEngine = pThis -> pEngine ;\n assert ( pAddr != NULL ) ;\n error = getnameinfo ( pAddr , SALEN ( pAddr ) , ( char * ) szIP , sizeof ( szIP ) , NULL , 0 , NI_NUMERICHOST ) ;\n if ( error ) {\n pThis -> pEngine -> dbgprint ( \"Malformed from address %s\\n\" , gai_strerror ( error ) ) ;\n strcpy ( ( char * ) szHname , \"???\" ) ;\n strcpy ( ( char * ) szIP , \"???\" ) ;\n ABORT_FINALIZE ( RELP_RET_INVALID_HNAME ) ;\n }\n if ( pEngine -> bEnableDns ) {\n error = getnameinfo ( pAddr , SALEN ( pAddr ) , ( char * ) szHname , sizeof ( szHname ) , NULL , 0 , NI_NAMEREQD ) ;\n if ( error == 0 ) {\n memset ( & hints , 0 , sizeof ( struct addrinfo ) ) ;\n hints . ai_flags = AI_NUMERICHOST ;\n hints . ai_socktype = SOCK_STREAM ;\n if ( getaddrinfo ( ( char * ) szHname , NULL , & hints , & res ) == 0 ) {\n freeaddrinfo ( res ) ;\n snprintf ( ( char * ) szHname , NI_MAXHOST , \"[MALICIOUS:IP=%s]\" , szIP ) ;\n pEngine -> dbgprint ( \"Malicious PTR record, IP = \\\"%s\\\" HOST = \\\"%s\\\"\" , szIP , szHname ) ;\n iRet = RELP_RET_MALICIOUS_HNAME ;\n }\n }\n else {\n strcpy ( ( char * ) szHname , ( char * ) szIP ) ;\n }\n }\n else {\n strcpy ( ( char * ) szHname , ( char * ) szIP ) ;\n }\n len = strlen ( ( char * ) szIP ) + 1 ;\n if ( ( pThis -> pRemHostIP = malloc ( len ) ) == NULL ) ABORT_FINALIZE ( RELP_RET_OUT_OF_MEMORY ) ;\n memcpy ( pThis -> pRemHostIP , szIP , len ) ;\n len = strlen ( ( char * ) szHname ) + 1 ;\n if ( ( pThis -> pRemHostName = malloc ( len ) ) == NULL ) {\n free ( pThis -> pRemHostIP ) ;\n pThis -> pRemHostIP = NULL ;\n ABORT_FINALIZE ( RELP_RET_OUT_OF_MEMORY ) ;\n }\n memcpy ( pThis -> pRemHostName , szHname , len ) ;\n finalize_it : LEAVE_RELPFUNC ;\n }"}
{"idx": 12239, "target": 0, "func": "static void icmpmsg_put ( struct seq_file * seq ) {\n # define PERLINE 16 int i , count ;\n unsigned short type [ PERLINE ] ;\n unsigned long vals [ PERLINE ] , val ;\n struct net * net = seq -> private ;\n count = 0 ;\n for ( i = 0 ;\n i < ICMPMSG_MIB_MAX ;\n i ++ ) {\n val = atomic_long_read ( & net -> mib . icmpmsg_statistics -> mibs [ i ] ) ;\n if ( val ) {\n type [ count ] = i ;\n vals [ count ++ ] = val ;\n }\n if ( count == PERLINE ) {\n icmpmsg_put_line ( seq , vals , type , count ) ;\n count = 0 ;\n }\n }\n icmpmsg_put_line ( seq , vals , type , count ) ;\n # undef PERLINE }"}
{"idx": 12240, "target": 0, "func": "static struct alltabs * ttc_prep ( struct sflist * sfs , enum fontformat format , enum bitmapformat bf , int flags , int layer , SplineFont * dummysf ) {\n struct alltabs * ret ;\n int fcnt , cnt , gcnt = 3 ;\n struct sflist * sfitem ;\n int emsize = - 1 ;\n UHash * uhash ;\n NHash * nhash ;\n int anyvmetrics = false ;\n int * bygid ;\n SplineFont * sf ;\n SplineChar * sc , * test ;\n int i , aborted ;\n for ( sfitem = sfs , cnt = 0 ;\n sfitem != NULL ;\n sfitem = sfitem -> next , ++ cnt ) {\n sf = sfitem -> sf ;\n if ( emsize == - 1 ) emsize = sf -> ascent + sf -> descent ;\n else if ( emsize != sf -> ascent + sf -> descent ) return ( NULL ) ;\n if ( format == ff_otf && ! PSDictSame ( sf -> private , sfs -> sf -> private ) ) return ( NULL ) ;\n if ( sf -> hasvmetrics ) anyvmetrics = true ;\n for ( i = 0 ;\n i < sf -> glyphcnt ;\n ++ i ) if ( ( sc = sf -> glyphs [ i ] ) != NULL ) sc -> ttf_glyph = - 1 ;\n gcnt += sf -> glyphcnt ;\n }\n if ( cnt == 0 ) return ( NULL ) ;\n fcnt = cnt ;\n uhash = calloc ( 1 , sizeof ( UHash ) ) ;\n nhash = calloc ( 1 , sizeof ( NHash ) ) ;\n * dummysf = * sfs -> sf ;\n dummysf -> glyphmax = gcnt ;\n dummysf -> glyphs = calloc ( gcnt , sizeof ( SplineChar * ) ) ;\n dummysf -> glyphcnt = 0 ;\n dummysf -> hasvmetrics = anyvmetrics ;\n bygid = malloc ( ( gcnt + 3 ) * sizeof ( int ) ) ;\n memset ( bygid , 0xff , ( gcnt + 3 ) * sizeof ( int ) ) ;\n for ( sfitem = sfs ;\n sfitem != NULL ;\n sfitem = sfitem -> next ) {\n AssignNotdefNull ( sfitem -> sf , bygid , false ) ;\n if ( bygid [ 0 ] != - 1 && dummysf -> glyphs [ 0 ] == NULL ) {\n dummysf -> glyphs [ 0 ] = sfitem -> sf -> glyphs [ bygid [ 0 ] ] ;\n bygid [ 0 ] = 0 ;\n }\n if ( format == ff_ttf ) {\n if ( bygid [ 1 ] != - 1 && dummysf -> glyphs [ 1 ] == NULL ) {\n dummysf -> glyphs [ 1 ] = sfitem -> sf -> glyphs [ bygid [ 1 ] ] ;\n bygid [ 1 ] = 1 ;\n }\n if ( bygid [ 2 ] != - 1 && dummysf -> glyphs [ 2 ] == NULL ) {\n dummysf -> glyphs [ 2 ] = sfitem -> sf -> glyphs [ bygid [ 2 ] ] ;\n bygid [ 2 ] = 2 ;\n }\n if ( bygid [ 0 ] != - 1 && bygid [ 1 ] != - 1 && bygid [ 2 ] != - 1 ) break ;\n }\n else {\n if ( bygid [ 0 ] != - 1 ) break ;\n }\n }\n dummysf -> glyphcnt = format == ff_ttf ? 3 : 1 ;\n ret = calloc ( fcnt + 2 , sizeof ( struct alltabs ) ) ;\n ATinit ( & ret [ fcnt ] , dummysf , sfs -> map , flags & ~ ttf_flag_dummyDSIG , layer , format , bf , NULL ) ;\n ret [ fcnt ] . gi . ttc_composite_font = true ;\n ATmaxpInit ( & ret [ fcnt ] , dummysf , format ) ;\n for ( sfitem = sfs , cnt = 0 ;\n sfitem != NULL ;\n sfitem = sfitem -> next , ++ cnt ) {\n sf = sfitem -> sf ;\n ATinit ( & ret [ cnt ] , sf , sfitem -> map , flags & ~ ttf_flag_dummyDSIG , layer , format , bf , sfitem -> sizes ) ;\n ret [ cnt ] . gi . bygid = malloc ( ( gcnt + 3 ) * sizeof ( int ) ) ;\n memset ( ret [ cnt ] . gi . bygid , - 1 , ( gcnt + 3 ) * sizeof ( int ) ) ;\n for ( i = 0 ;\n i < sf -> glyphcnt ;\n ++ i ) {\n if ( SCWorthOutputting ( sc = sf -> glyphs [ i ] ) ) {\n if ( sc -> ttf_glyph == - 1 ) {\n if ( strcmp ( sc -> name , \".notdef\" ) == 0 ) sc -> ttf_glyph = bygid [ 0 ] ;\n else if ( format == ff_ttf && ( strcmp ( sf -> glyphs [ i ] -> name , \".null\" ) == 0 || strcmp ( sf -> glyphs [ i ] -> name , \"uni0000\" ) == 0 || ( i == 1 && strcmp ( sf -> glyphs [ 1 ] -> name , \"glyph1\" ) == 0 ) ) ) sc -> ttf_glyph = bygid [ 1 ] ;\n else if ( format == ff_ttf && ( strcmp ( sf -> glyphs [ i ] -> name , \"nonmarkingreturn\" ) == 0 || strcmp ( sf -> glyphs [ i ] -> name , \"uni000D\" ) == 0 || ( i == 2 && strcmp ( sf -> glyphs [ 2 ] -> name , \"glyph2\" ) == 0 ) ) ) sc -> ttf_glyph = bygid [ 2 ] ;\n else {\n test = hashglyphfound ( sc , uhash , nhash , layer ) ;\n if ( test != NULL ) sc -> ttf_glyph = test -> ttf_glyph ;\n else {\n sc -> ttf_glyph = dummysf -> glyphcnt ++ ;\n bygid [ sc -> ttf_glyph ] = sc -> ttf_glyph ;\n dummysf -> glyphs [ sc -> ttf_glyph ] = sc ;\n hashglyphadd ( sc , uhash , nhash ) ;\n }\n }\n }\n if ( sc -> ttf_glyph != - 1 ) {\n ret [ cnt ] . gi . bygid [ sc -> ttf_glyph ] = i ;\n if ( sc -> ttf_glyph >= ret [ cnt ] . gi . gcnt ) ret [ cnt ] . gi . gcnt = sc -> ttf_glyph + 1 ;\n }\n }\n if ( sc != NULL ) sc -> lsidebearing = 0x7fff ;\n }\n MaxpFromTable ( & ret [ cnt ] , sf ) ;\n if ( ret [ cnt ] . maxp . maxZones > ret [ fcnt ] . maxp . maxZones ) ret [ fcnt ] . maxp . maxZones = ret [ cnt ] . maxp . maxZones ;\n if ( ret [ cnt ] . maxp . maxTwilightPts > ret [ fcnt ] . maxp . maxTwilightPts ) ret [ fcnt ] . maxp . maxTwilightPts = ret [ cnt ] . maxp . maxTwilightPts ;\n if ( ret [ cnt ] . maxp . maxStorage > ret [ fcnt ] . maxp . maxStorage ) ret [ fcnt ] . maxp . maxStorage = ret [ cnt ] . maxp . maxStorage ;\n if ( ret [ cnt ] . maxp . maxFDEFs > ret [ fcnt ] . maxp . maxFDEFs ) ret [ fcnt ] . maxp . maxFDEFs = ret [ cnt ] . maxp . maxFDEFs ;\n if ( ret [ cnt ] . maxp . maxIDEFs > ret [ fcnt ] . maxp . maxIDEFs ) ret [ fcnt ] . maxp . maxIDEFs = ret [ cnt ] . maxp . maxIDEFs ;\n if ( ret [ cnt ] . maxp . maxStack > ret [ fcnt ] . maxp . maxStack ) ret [ fcnt ] . maxp . maxStack = ret [ cnt ] . maxp . maxStack ;\n }\n free ( uhash ) ;\n free ( nhash ) ;\n if ( dummysf -> glyphcnt > 0xffff ) {\n free ( dummysf -> glyphs ) ;\n free ( bygid ) ;\n for ( sfitem = sfs , cnt = 0 ;\n sfitem != NULL ;\n sfitem = sfitem -> next , ++ cnt ) free ( ret [ cnt ] . gi . bygid ) ;\n free ( ret ) ;\n return ( NULL ) ;\n }\n ret [ fcnt ] . gi . fixed_width = CIDOneWidth ( sf ) ;\n ret [ fcnt ] . gi . bygid = bygid ;\n ret [ fcnt ] . gi . gcnt = ret [ fcnt ] . maxp . numGlyphs = dummysf -> glyphcnt ;\n if ( format == ff_ttf ) aborted = ! dumpglyphs ( dummysf , & ret [ cnt ] . gi ) ;\n else aborted = ! dumptype2glyphs ( dummysf , & ret [ cnt ] ) ;\n if ( aborted ) {\n free ( dummysf -> glyphs ) ;\n free ( bygid ) ;\n for ( sfitem = sfs , cnt = 0 ;\n sfitem != NULL ;\n sfitem = sfitem -> next , ++ cnt ) free ( ret [ cnt ] . gi . bygid ) ;\n free ( ret ) ;\n return ( NULL ) ;\n }\n sethhead ( & ret [ fcnt ] . hhead , & ret [ fcnt ] . vhead , & ret [ fcnt ] , dummysf ) ;\n for ( sfitem = sfs , cnt = 0 ;\n sfitem != NULL ;\n sfitem = sfitem -> next , ++ cnt ) ret [ cnt ] . maxp = ret [ fcnt ] . maxp ;\n sethead ( & ret [ fcnt ] . head , dummysf , & ret [ fcnt ] , format , NULL ) ;\n if ( format == ff_ttf ) redoloca ( & ret [ fcnt ] ) ;\n redohhead ( & ret [ fcnt ] , false ) ;\n if ( dummysf -> hasvmetrics ) redohhead ( & ret [ fcnt ] , true ) ;\n ttf_fftm_dump ( dummysf , & ret [ fcnt ] ) ;\n return ( ret ) ;\n }"}
{"idx": 12241, "target": 0, "func": "const char * TSHttpSsnClientProtocolStackContains ( TSHttpSsn ssnp , const char * tag ) {\n sdk_assert ( sdk_sanity_check_http_ssn ( ssnp ) == TS_SUCCESS ) ;\n ProxyClientSession * cs = reinterpret_cast < ProxyClientSession * > ( ssnp ) ;\n return cs -> protocol_contains ( ts : : StringView ( tag ) ) ;\n }"}
{"idx": 12242, "target": 0, "func": "static inline int l2_unscale_group ( int steps , int mant , int scale_factor ) {\n int shift , mod , val ;\n shift = scale_factor_modshift [ scale_factor ] ;\n mod = shift & 3 ;\n shift >>= 2 ;\n val = ( mant - ( steps >> 1 ) ) * scale_factor_mult2 [ steps >> 2 ] [ mod ] ;\n if ( shift > 0 ) val = ( val + ( 1 << ( shift - 1 ) ) ) >> shift ;\n return val ;\n }"}
{"idx": 12243, "target": 0, "func": "static gboolean lacks_mime_list ( NautilusFile * file ) {\n return ! file -> details -> mime_list_is_up_to_date ;\n }"}
{"idx": 12244, "target": 0, "func": "static gboolean can_delete_files_without_confirm ( GList * files ) {\n g_assert ( files != NULL ) ;\n while ( files != NULL ) {\n if ( ! can_delete_without_confirm ( files -> data ) ) {\n return FALSE ;\n }\n files = files -> next ;\n }\n return TRUE ;\n }"}
{"idx": 12245, "target": 0, "func": "static guint16 de_tp_epc_ue_tl_c_setup ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n curr_offset = offset ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_dtap_epc_ue_tl_c_mbsfn_area_id , tvb , curr_offset << 3 , 8 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_dtap_epc_ue_tl_c_mch_id , tvb , ( curr_offset << 3 ) + 4 , 4 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_dtap_epc_ue_tl_c_lcid , tvb , ( curr_offset << 3 ) + 3 , 5 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 12246, "target": 0, "func": "static int dissect_h245_H223AL2MParameters ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_H223AL2MParameters , H223AL2MParameters_sequence ) ;\n return offset ;\n }"}
{"idx": 12247, "target": 0, "func": "TEST_F ( ExtensionWelcomeNotificationTest , NotificationPreviouslyExpired ) {\n StartPreferenceSyncing ( ) ;\n SetBooleanPref ( prefs : : kWelcomeNotificationPreviouslyPoppedUp , true ) ;\n SetInt64Pref ( prefs : : kWelcomeNotificationExpirationTimestamp , 1 ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissed ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissedLocal ) ) ;\n EXPECT_TRUE ( GetBooleanPref ( prefs : : kWelcomeNotificationPreviouslyPoppedUp ) ) ;\n EXPECT_EQ ( GetInt64Pref ( prefs : : kWelcomeNotificationExpirationTimestamp ) , 1 ) ;\n EXPECT_TRUE ( task_runner ( ) -> GetPendingTasks ( ) . empty ( ) ) ;\n const base : : TimeDelta requested_show_time = base : : TimeDelta : : FromDays ( ExtensionWelcomeNotification : : kRequestedShowTimeDays ) ;\n SetElapsedTime ( requested_show_time ) ;\n ShowChromeNowNotification ( ) ;\n EXPECT_TRUE ( task_runner ( ) -> GetPendingTasks ( ) . empty ( ) ) ;\n EXPECT_EQ ( message_center ( ) -> add_notification_calls ( ) , 0 ) ;\n EXPECT_EQ ( message_center ( ) -> remove_notification_calls ( ) , 0 ) ;\n EXPECT_EQ ( message_center ( ) -> notifications_with_shown_as_popup ( ) , 0 ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissed ) ) ;\n EXPECT_TRUE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissedLocal ) ) ;\n EXPECT_TRUE ( GetBooleanPref ( prefs : : kWelcomeNotificationPreviouslyPoppedUp ) ) ;\n EXPECT_EQ ( GetInt64Pref ( prefs : : kWelcomeNotificationExpirationTimestamp ) , 1 ) ;\n }"}
{"idx": 12248, "target": 0, "func": "static bfd_boolean srec_write_terminator ( bfd * abfd , tdata_type * tdata ) {\n return srec_write_record ( abfd , 10 - tdata -> type , abfd -> start_address , NULL , NULL ) ;\n }"}
{"idx": 12249, "target": 0, "func": "static int dissect_h245_RequestChannelCloseRelease ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_RequestChannelCloseRelease , RequestChannelCloseRelease_sequence ) ;\n return offset ;\n }"}
{"idx": 12250, "target": 0, "func": "static int opt_read_intervals ( void * optctx , const char * opt , const char * arg ) {\n return parse_read_intervals ( arg ) ;\n }"}
{"idx": 12251, "target": 0, "func": "TEST_F ( TemplateURLTest , ExtractSearchTermsFromNonUTF8URL ) {\n TemplateURLData data ;\n data . SetURL ( \"http://windows-1251.ru/?q={\nsearchTerms}\n\" ) ;\n data . alternate_urls . push_back ( \"http://windows-1251.ru/#q={\nsearchTerms}\n\" ) ;\n data . alternate_urls . push_back ( \"http://windows-1251.ru/path/{\nsearchTerms}\n\" ) ;\n data . input_encodings . push_back ( \"windows-1251\" ) ;\n TemplateURL url ( data ) ;\n base : : string16 result ;\n EXPECT_TRUE ( url . ExtractSearchTermsFromURL ( GURL ( \"http://windows-1251.ru/?q=%C7%E4%F0%E0%E2%F1%F2%E2%F3%E9%2C+\" \"%EC%E8%F0!\" ) , search_terms_data_ , & result ) ) ;\n EXPECT_EQ ( base : : WideToUTF16 ( L\"\\x0417\\x0434\\x0440\\x0430\\x0432\\x0441\\x0442\\x0432\\x0443\\x0439, \" L\"\\x043C\\x0438\\x0440!\" ) , result ) ;\n EXPECT_TRUE ( url . ExtractSearchTermsFromURL ( GURL ( \"http://windows-1251.ru/#q=%E4%E2%E0+%F1%EB%EE%E2%E0\" ) , search_terms_data_ , & result ) ) ;\n EXPECT_EQ ( base : : WideToUTF16 ( L\"\\x0434\\x0432\\x0430 \\x0441\\x043B\\x043E\\x0432\\x0430\" ) , result ) ;\n EXPECT_TRUE ( url . ExtractSearchTermsFromURL ( GURL ( \"http://windows-1251.ru/path/%E1%F3%EA%E2%FB%20%C0%20%E8%20A\" ) , search_terms_data_ , & result ) ) ;\n EXPECT_EQ ( base : : WideToUTF16 ( L\"\\x0431\\x0443\\x043A\\x0432\\x044B \\x0410 \\x0438 A\" ) , result ) ;\n }"}
{"idx": 12252, "target": 0, "func": "int i2d_X509_REQ_fp ( FILE * fp , X509_REQ * req ) {\n return ASN1_item_i2d_fp ( ASN1_ITEM_rptr ( X509_REQ ) , fp , req ) ;\n }"}
{"idx": 12253, "target": 0, "func": "static inline int gic_get_current_cpu ( GICState * s ) {\n if ( s -> num_cpu > 1 ) {\n return current_cpu -> cpu_index ;\n }\n return 0 ;\n }"}
{"idx": 12254, "target": 0, "func": "jpc_pchglist_t * jpc_pchglist_create ( ) {\n jpc_pchglist_t * pchglist ;\n if ( ! ( pchglist = jas_malloc ( sizeof ( jpc_pchglist_t ) ) ) ) {\n return 0 ;\n }\n pchglist -> numpchgs = 0 ;\n pchglist -> maxpchgs = 0 ;\n pchglist -> pchgs = 0 ;\n return pchglist ;\n }"}
{"idx": 12255, "target": 0, "func": "void proto_register_zbee_zcl_pwr_prof ( void ) {\n guint i , j ;\n static hf_register_info hf [ ] = {\n {\n & hf_zbee_zcl_pwr_prof_tot_prof_num , {\n \"Total Profile Number\" , \"zbee_zcl_general.pwrprof.attr.totprofnum\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_multiple_sched , {\n \"Multiple Scheduling\" , \"zbee_zcl_general.pwrprof.attr.multiplesched\" , FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_energy_format , {\n \"Data\" , \"zbee_zcl_general.pwrprof.attr.energyformat\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_energy_format_rdigit , {\n \"Number of Digits to the right of the Decimal Point\" , \"zbee_zcl_general.pwrprof.attr.energyformat.rdigit\" , FT_UINT8 , BASE_DEC , NULL , ZBEE_ZCL_OPT_PWRPROF_NUM_R_DIGIT , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_energy_format_ldigit , {\n \"Number of Digits to the left of the Decimal Point\" , \"zbee_zcl_general.pwrprof.attr.energyformat.ldigit\" , FT_UINT8 , BASE_DEC , NULL , ZBEE_ZCL_OPT_PWRPROF_NUM_L_DIGIT , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_energy_format_noleadingzero , {\n \"Suppress leading zeros.\" , \"zbee_zcl_general.pwrprof.attr.energyformat.noleadingzero\" , FT_BOOLEAN , 8 , TFS ( & tfs_true_false ) , ZBEE_ZCL_OPT_PWRPROF_NO_LEADING_ZERO , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_energy_remote , {\n \"Energy Remote\" , \"zbee_zcl_general.pwrprof.attr.energyremote\" , FT_BOOLEAN , BASE_NONE , TFS ( & tfs_enabled_disabled ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_sched_mode , {\n \"Schedule Mode\" , \"zbee_zcl_general.pwrprof.attr.schedmode\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_sched_mode_cheapest , {\n \"Schedule Mode Cheapest\" , \"zbee_zcl_general.pwrprof.attr.schedmode.cheapest\" , FT_BOOLEAN , 8 , TFS ( & tfs_active_inactive ) , ZBEE_ZCL_OPT_PWRPROF_SCHED_CHEAPEST , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_sched_mode_greenest , {\n \"Schedule Mode Greenest\" , \"zbee_zcl_general.pwrprof.attr.schedmode.greenest\" , FT_BOOLEAN , 8 , TFS ( & tfs_active_inactive ) , ZBEE_ZCL_OPT_PWRPROF_SCHED_GREENEST , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_sched_mode_reserved , {\n \"Schedule Mode Reserved\" , \"zbee_zcl_general.pwrprof.attr.schedmode.reserved\" , FT_UINT8 , BASE_HEX , NULL , ZBEE_ZCL_OPT_PWRPROF_SCHED_RESERVED , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_attr_id , {\n \"Attribute\" , \"zbee_zcl_general.pwrprof.attr_id\" , FT_UINT16 , BASE_HEX , VALS ( zbee_zcl_pwr_prof_attr_names ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_srv_tx_cmd_id , {\n \"Command\" , \"zbee_zcl_general.pwrprof.cmd.srv_tx.id\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_pwr_prof_srv_tx_cmd_names ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_srv_rx_cmd_id , {\n \"Command\" , \"zbee_zcl_general.pwrprof.cmd.srv_rx.id\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_pwr_prof_srv_rx_cmd_names ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_pwr_prof_id , {\n \"Power Profile ID\" , \"zbee_zcl_general.pwrprof.pwrprofid\" , FT_UINT8 , BASE_CUSTOM , CF_FUNC ( decode_power_profile_id ) , 0x00 , \"Identifier of the specific profile\" , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_currency , {\n \"Currency\" , \"zbee_zcl_general.pwrprof.currency\" , FT_UINT16 , BASE_HEX , VALS ( zbee_zcl_currecy_names ) , 0x0 , \"Local unit of currency (ISO 4217) used in the price field.\" , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_price , {\n \"Price\" , \"zbee_zcl_general.pwrprof.price\" , FT_UINT32 , BASE_CUSTOM , CF_FUNC ( decode_price_in_cents ) , 0x0 , \"Price of the energy of a specific Power Profile.\" , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_price_trailing_digit , {\n \"Price Trailing Digit\" , \"zbee_zcl_general.pwrprof.pricetrailingdigit\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , \"Number of digits to the right of the decimal point.\" , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_num_of_sched_phases , {\n \"Number of Scheduled Phases\" , \"zbee_zcl_general.pwrprof.numofschedphases\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , \"Total number of the energy phases of the Power Profile that need to be scheduled.\" , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_energy_phase_id , {\n \"Energy Phase ID\" , \"zbee_zcl_general.pwrprof.energyphaseid\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , \"Identifier of the specific phase.\" , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_scheduled_time , {\n \"Scheduled Time\" , \"zbee_zcl_general.pwrprof.scheduledtime\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_zcl_time_in_minutes ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_macro_phase_id , {\n \"Macro Phase ID\" , \"zbee_zcl_general.pwrprof.macrophaseid\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , \"Identifier of the specific energy phase.\" , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_expect_duration , {\n \"Expected Duration\" , \"zbee_zcl_general.pwrprof.expecduration\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_zcl_time_in_minutes ) , 0x0 , \"The estimated duration of the specific phase.\" , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_num_of_trans_phases , {\n \"Number of Transferred Phases\" , \"zbee_zcl_general.pwrprof.numoftransphases\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_peak_power , {\n \"Peak Power\" , \"zbee_zcl_general.pwrprof.peakpower\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_power_in_watt ) , 0x0 , \"The estimated power for the specific phase.\" , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_energy , {\n \"Energy\" , \"zbee_zcl_general.pwrprof.energy\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_energy ) , 0x0 , \"The estimated energy consumption for the accounted phase.\" , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_max_active_delay , {\n \"Max Activation Delay\" , \"zbee_zcl_general.pwrprof.maxactivdelay\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( func_decode_delayinminute ) , 0x0 , \"The maximum interruption time between the end of the previous phase and the beginning of the specific phase.\" , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_pwr_prof_count , {\n \"Power Profile Count\" , \"zbee_zcl_general.pwrprof.pwrprofcount\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_pwr_prof_rem_ctrl , {\n \"Power Profile Remote Control\" , \"zbee_zcl_general.pwrprof.pwrprofremctrl\" , FT_BOOLEAN , BASE_NONE , TFS ( & tfs_enabled_disabled ) , 0x00 , \"It indicates if the PowerProfile is currently remotely controllable or not.\" , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_pwr_prof_state , {\n \"Power Profile State\" , \"zbee_zcl_general.pwrprof.pwrprofstate\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_pwr_prof_state_names ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_start_after , {\n \"Start After\" , \"zbee_zcl_general.pwrprof.startafter\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_zcl_time_in_minutes ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_stop_before , {\n \"Stop Before\" , \"zbee_zcl_general.pwrprof.stopbefore\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_zcl_time_in_minutes ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_options , {\n \"Options\" , \"zbee_zcl_general.pwrprof.options\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_options_01 , {\n \"PowerProfileStartTime Field Present\" , \"zbee_zcl_general.pwrprof.options.01\" , FT_BOOLEAN , 8 , TFS ( & tfs_true_false ) , ZBEE_ZCL_OPT_PWRPROF_STIME_PRESENT , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_options_res , {\n \"Reserved\" , \"zbee_zcl_general.pwrprof.options.reserved\" , FT_UINT8 , BASE_HEX , NULL , ZBEE_ZCL_OPT_PWRPROF_RESERVED , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_pwr_prof_pwr_prof_stime , {\n \"Power Profile Start Time\" , \"zbee_zcl_general.pwrprof.pwrprofstime\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_zcl_time_in_minutes ) , 0x0 , NULL , HFILL }\n }\n }\n ;\n static gint * ett [ ZBEE_ZCL_PWR_PROF_NUM_ETT ] ;\n ett [ 0 ] = & ett_zbee_zcl_pwr_prof ;\n ett [ 1 ] = & ett_zbee_zcl_pwr_prof_options ;\n ett [ 2 ] = & ett_zbee_zcl_pwr_prof_en_format ;\n ett [ 3 ] = & ett_zbee_zcl_pwr_prof_sched_mode ;\n for ( i = 0 , j = ZBEE_ZCL_PWR_PROF_NUM_GENERIC_ETT ;\n i < ZBEE_ZCL_PWR_PROF_NUM_PWR_PROF_ETT ;\n i ++ , j ++ ) {\n ett_zbee_zcl_pwr_prof_pwrprofiles [ i ] = - 1 ;\n ett [ j ] = & ett_zbee_zcl_pwr_prof_pwrprofiles [ i ] ;\n }\n for ( i = 0 ;\n i < ZBEE_ZCL_PWR_PROF_NUM_EN_PHS_ETT ;\n i ++ , j ++ ) {\n ett_zbee_zcl_pwr_prof_enphases [ i ] = - 1 ;\n ett [ j ] = & ett_zbee_zcl_pwr_prof_enphases [ i ] ;\n }\n proto_zbee_zcl_pwr_prof = proto_register_protocol ( \"ZigBee ZCL Power Profile\" , \"ZCL Power Profile\" , ZBEE_PROTOABBREV_ZCL_PWRPROF ) ;\n proto_register_field_array ( proto_zbee_zcl_pwr_prof , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n register_dissector ( ZBEE_PROTOABBREV_ZCL_PWRPROF , dissect_zbee_zcl_pwr_prof , proto_zbee_zcl_pwr_prof ) ;\n }"}
{"idx": 12256, "target": 0, "func": "static gint iax_circuit_equal ( gconstpointer v , gconstpointer w ) {\n const iax_circuit_key * v1 = ( const iax_circuit_key * ) v ;\n const iax_circuit_key * v2 = ( const iax_circuit_key * ) w ;\n gint result ;\n result = ( ADDRESSES_EQUAL ( & ( v1 -> addr ) , & ( v2 -> addr ) ) && v1 -> ptype == v2 -> ptype && v1 -> port == v2 -> port && v1 -> callno == v2 -> callno ) ;\n # ifdef DEBUG_HASHING g_debug ( \"+++ Comparing for equality: %s, %s: %u\" , key_to_str ( v1 ) , key_to_str ( v2 ) , result ) ;\n # endif return result ;\n }"}
{"idx": 12257, "target": 0, "func": "static void spl_dllist_it_dtor ( zend_object_iterator * iter TSRMLS_DC ) {\n spl_dllist_it * iterator = ( spl_dllist_it * ) iter ;\n SPL_LLIST_CHECK_DELREF ( iterator -> traverse_pointer ) ;\n zend_user_it_invalidate_current ( iter TSRMLS_CC ) ;\n zval_ptr_dtor ( ( zval * * ) & iterator -> intern . it . data ) ;\n efree ( iterator ) ;\n }"}
{"idx": 12258, "target": 0, "func": "void jbig2_word_stream_buf_free ( Jbig2Ctx * ctx , Jbig2WordStream * ws ) {\n jbig2_free ( ctx -> allocator , ws ) ;\n }"}
{"idx": 12259, "target": 0, "func": "void imcb_file_finished ( struct im_connection * ic , file_transfer_t * file ) {\n bee_t * bee = ic -> bee ;\n if ( bee -> ui -> ft_finished ) {\n bee -> ui -> ft_finished ( ic , file ) ;\n }\n }"}
{"idx": 12260, "target": 0, "func": "static int sfile_write ( jas_stream_obj_t * obj , char * buf , int cnt ) {\n FILE * fp ;\n fp = JAS_CAST ( FILE * , obj ) ;\n return fwrite ( buf , 1 , cnt , fp ) ;\n }"}
{"idx": 12261, "target": 0, "func": "static gboolean should_get_directory_count_now ( NautilusFile * file ) {\n return lacks_directory_count ( file ) && ! file -> details -> loading_directory ;\n }"}
{"idx": 12262, "target": 0, "func": "static void xhci_intr_raise ( XHCIState * xhci , int v ) {\n PCIDevice * pci_dev = PCI_DEVICE ( xhci ) ;\n xhci -> intr [ v ] . erdp_low |= ERDP_EHB ;\n xhci -> intr [ v ] . iman |= IMAN_IP ;\n xhci -> usbsts |= USBSTS_EINT ;\n if ( ! ( xhci -> intr [ v ] . iman & IMAN_IE ) ) {\n return ;\n }\n if ( ! ( xhci -> usbcmd & USBCMD_INTE ) ) {\n return ;\n }\n if ( msix_enabled ( pci_dev ) ) {\n trace_usb_xhci_irq_msix ( v ) ;\n msix_notify ( pci_dev , v ) ;\n return ;\n }\n if ( msi_enabled ( pci_dev ) ) {\n trace_usb_xhci_irq_msi ( v ) ;\n msi_notify ( pci_dev , v ) ;\n return ;\n }\n if ( v == 0 ) {\n trace_usb_xhci_irq_intx ( 1 ) ;\n pci_irq_assert ( pci_dev ) ;\n }\n }"}
{"idx": 12263, "target": 0, "func": "static int32_t ucnv_convertAlgorithmic ( UBool convertToAlgorithmic , UConverterType algorithmicType , UConverter * cnv , char * target , int32_t targetCapacity , const char * source , int32_t sourceLength , UErrorCode * pErrorCode ) {\n UConverter algoConverterStatic ;\n UConverter * algoConverter , * to , * from ;\n int32_t targetLength ;\n if ( pErrorCode == NULL || U_FAILURE ( * pErrorCode ) ) {\n return 0 ;\n }\n if ( cnv == NULL || source == NULL || sourceLength < - 1 || targetCapacity < 0 || ( targetCapacity > 0 && target == NULL ) ) {\n * pErrorCode = U_ILLEGAL_ARGUMENT_ERROR ;\n return 0 ;\n }\n if ( sourceLength == 0 || ( sourceLength < 0 && * source == 0 ) ) {\n return u_terminateChars ( target , targetCapacity , 0 , pErrorCode ) ;\n }\n algoConverter = ucnv_createAlgorithmicConverter ( & algoConverterStatic , algorithmicType , \"\" , 0 , pErrorCode ) ;\n if ( U_FAILURE ( * pErrorCode ) ) {\n return 0 ;\n }\n if ( convertToAlgorithmic ) {\n ucnv_resetToUnicode ( cnv ) ;\n to = algoConverter ;\n from = cnv ;\n }\n else {\n ucnv_resetFromUnicode ( cnv ) ;\n from = algoConverter ;\n to = cnv ;\n }\n targetLength = ucnv_internalConvert ( to , from , target , targetCapacity , source , sourceLength , pErrorCode ) ;\n ucnv_close ( algoConverter ) ;\n return targetLength ;\n }"}
{"idx": 12264, "target": 0, "func": "void ff_xvmc_field_end ( MpegEncContext * s ) {\n struct xvmc_pix_fmt * render = ( struct xvmc_pix_fmt * ) s -> current_picture . f . data [ 2 ] ;\n assert ( render ) ;\n if ( render -> filled_mv_blocks_num > 0 ) ff_mpeg_draw_horiz_band ( s , 0 , 0 ) ;\n }"}
{"idx": 12265, "target": 0, "func": "static int kvm_put_sregs ( X86CPU * cpu ) {\n CPUX86State * env = & cpu -> env ;\n struct kvm_sregs sregs ;\n memset ( sregs . interrupt_bitmap , 0 , sizeof ( sregs . interrupt_bitmap ) ) ;\n if ( env -> interrupt_injected >= 0 ) {\n sregs . interrupt_bitmap [ env -> interrupt_injected / 64 ] |= ( uint64_t ) 1 << ( env -> interrupt_injected % 64 ) ;\n }\n if ( ( env -> eflags & VM_MASK ) ) {\n set_v8086_seg ( & sregs . cs , & env -> segs [ R_CS ] ) ;\n set_v8086_seg ( & sregs . ds , & env -> segs [ R_DS ] ) ;\n set_v8086_seg ( & sregs . es , & env -> segs [ R_ES ] ) ;\n set_v8086_seg ( & sregs . fs , & env -> segs [ R_FS ] ) ;\n set_v8086_seg ( & sregs . gs , & env -> segs [ R_GS ] ) ;\n set_v8086_seg ( & sregs . ss , & env -> segs [ R_SS ] ) ;\n }\n else {\n set_seg ( & sregs . cs , & env -> segs [ R_CS ] ) ;\n set_seg ( & sregs . ds , & env -> segs [ R_DS ] ) ;\n set_seg ( & sregs . es , & env -> segs [ R_ES ] ) ;\n set_seg ( & sregs . fs , & env -> segs [ R_FS ] ) ;\n set_seg ( & sregs . gs , & env -> segs [ R_GS ] ) ;\n set_seg ( & sregs . ss , & env -> segs [ R_SS ] ) ;\n }\n set_seg ( & sregs . tr , & env -> tr ) ;\n set_seg ( & sregs . ldt , & env -> ldt ) ;\n sregs . idt . limit = env -> idt . limit ;\n sregs . idt . base = env -> idt . base ;\n memset ( sregs . idt . padding , 0 , sizeof sregs . idt . padding ) ;\n sregs . gdt . limit = env -> gdt . limit ;\n sregs . gdt . base = env -> gdt . base ;\n memset ( sregs . gdt . padding , 0 , sizeof sregs . gdt . padding ) ;\n sregs . cr0 = env -> cr [ 0 ] ;\n sregs . cr2 = env -> cr [ 2 ] ;\n sregs . cr3 = env -> cr [ 3 ] ;\n sregs . cr4 = env -> cr [ 4 ] ;\n sregs . cr8 = cpu_get_apic_tpr ( cpu -> apic_state ) ;\n sregs . apic_base = cpu_get_apic_base ( cpu -> apic_state ) ;\n sregs . efer = env -> efer ;\n return kvm_vcpu_ioctl ( CPU ( cpu ) , KVM_SET_SREGS , & sregs ) ;\n }"}
{"idx": 12266, "target": 0, "func": "void selinux_complete_init ( void ) {\n printk ( KERN_DEBUG \"SELinux: Completing initialization.\\n\" ) ;\n printk ( KERN_DEBUG \"SELinux: Setting up existing superblocks.\\n\" ) ;\n iterate_supers ( delayed_superblock_init , NULL ) ;\n }"}
{"idx": 12267, "target": 0, "func": "TSReturnCode TSHttpTxnServerPacketMarkSet ( TSHttpTxn txnp , int mark ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n if ( nullptr != sm -> ua_session ) {\n HttpServerSession * ssn = sm -> ua_session -> get_server_session ( ) ;\n if ( nullptr != ssn ) {\n NetVConnection * vc = ssn -> get_netvc ( ) ;\n if ( vc != nullptr ) {\n vc -> options . packet_mark = ( uint32_t ) mark ;\n vc -> apply_options ( ) ;\n }\n }\n }\n TSHttpTxnConfigIntSet ( txnp , TS_CONFIG_NET_SOCK_PACKET_MARK_OUT , mark ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 12268, "target": 1, "func": "static xmlLinkPtr xmlListLinkSearch ( xmlListPtr l , void * data ) {\n xmlLinkPtr lk ;\n if ( l == NULL ) return ( NULL ) ;\n lk = xmlListLowerSearch ( l , data ) ;\n if ( lk == l -> sentinel ) return NULL ;\n else {\n if ( l -> linkCompare ( lk -> data , data ) == 0 ) return lk ;\n return NULL ;\n }\n }"}
{"idx": 12269, "target": 0, "func": "static int udp_v6_push_pending_frames ( struct sock * sk ) {\n struct sk_buff * skb ;\n struct udphdr * uh ;\n struct udp_sock * up = udp_sk ( sk ) ;\n struct inet_sock * inet = inet_sk ( sk ) ;\n struct flowi * fl = & inet -> cork . fl ;\n int err = 0 ;\n int is_udplite = IS_UDPLITE ( sk ) ;\n __wsum csum = 0 ;\n if ( ( skb = skb_peek ( & sk -> sk_write_queue ) ) == NULL ) goto out ;\n uh = udp_hdr ( skb ) ;\n uh -> source = fl -> fl_ip_sport ;\n uh -> dest = fl -> fl_ip_dport ;\n uh -> len = htons ( up -> len ) ;\n uh -> check = 0 ;\n if ( is_udplite ) csum = udplite_csum_outgoing ( sk , skb ) ;\n else if ( skb -> ip_summed == CHECKSUM_PARTIAL ) {\n udp6_hwcsum_outgoing ( sk , skb , & fl -> fl6_src , & fl -> fl6_dst , up -> len ) ;\n goto send ;\n }\n else csum = udp_csum_outgoing ( sk , skb ) ;\n uh -> check = csum_ipv6_magic ( & fl -> fl6_src , & fl -> fl6_dst , up -> len , fl -> proto , csum ) ;\n if ( uh -> check == 0 ) uh -> check = CSUM_MANGLED_0 ;\n send : err = ip6_push_pending_frames ( sk ) ;\n if ( err ) {\n if ( err == - ENOBUFS && ! inet6_sk ( sk ) -> recverr ) {\n UDP6_INC_STATS_USER ( sock_net ( sk ) , UDP_MIB_SNDBUFERRORS , is_udplite ) ;\n err = 0 ;\n }\n }\n else UDP6_INC_STATS_USER ( sock_net ( sk ) , UDP_MIB_OUTDATAGRAMS , is_udplite ) ;\n out : up -> len = 0 ;\n up -> pending = 0 ;\n return err ;\n }"}
{"idx": 12270, "target": 0, "func": "static vp9_variance_fn_t get_block_variance_fn ( BLOCK_SIZE bsize ) {\n switch ( bsize ) {\n case BLOCK_8X8 : return vp9_mse8x8 ;\n case BLOCK_16X8 : return vp9_mse16x8 ;\n case BLOCK_8X16 : return vp9_mse8x16 ;\n default : return vp9_mse16x16 ;\n }\n }"}
{"idx": 12271, "target": 0, "func": "static int dissect_RasMessage_PDU ( tvbuff_t * tvb _U_ , packet_info * pinfo _U_ , proto_tree * tree _U_ , void * data _U_ ) {\n int offset = 0 ;\n asn1_ctx_t asn1_ctx ;\n asn1_ctx_init ( & asn1_ctx , ASN1_ENC_PER , TRUE , pinfo ) ;\n offset = dissect_h225_RasMessage ( tvb , offset , & asn1_ctx , tree , hf_h225_RasMessage_PDU ) ;\n offset += 7 ;\n offset >>= 3 ;\n return offset ;\n }"}
{"idx": 12272, "target": 0, "func": "static int start_transaction ( MYSQL * mysql_con ) {\n verbose_msg ( \"-- Starting transaction...\\n\" ) ;\n if ( ( mysql_get_server_version ( mysql_con ) < 40100 ) && opt_master_data ) {\n fprintf ( stderr , \"-- %s: the combination of --single-transaction and \" \"--master-data requires a MySQL server version of at least 4.1 \" \"(current server's version is %s). %s\\n\" , ignore_errors ? \"Warning\" : \"Error\" , mysql_con -> server_version ? mysql_con -> server_version : \"unknown\" , ignore_errors ? \"Continuing due to --force, backup may not be consistent across all tables!\" : \"Aborting.\" ) ;\n if ( ! ignore_errors ) exit ( EX_MYSQLERR ) ;\n }\n return ( mysql_query_with_error_report ( mysql_con , 0 , \"SET SESSION TRANSACTION ISOLATION \" \"LEVEL REPEATABLE READ\" ) || mysql_query_with_error_report ( mysql_con , 0 , \"START TRANSACTION \" \"/*!40100 WITH CONSISTENT SNAPSHOT */\" ) ) ;\n }"}
{"idx": 12273, "target": 0, "func": "static ENUM_PTRS_WITH ( gx_ttfReader_enum_ptrs , gx_ttfReader * mptr ) {\n DISCARD ( mptr ) ;\n return 0 ;\n }"}
{"idx": 12274, "target": 0, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DIRECTORYSTRING )"}
{"idx": 12275, "target": 0, "func": "static int tta_check_crc ( TTAContext * s , const uint8_t * buf , int buf_size ) {\n uint32_t crc , CRC ;\n CRC = AV_RL32 ( buf + buf_size ) ;\n crc = av_crc ( s -> crc_table , 0xFFFFFFFFU , buf , buf_size ) ;\n if ( CRC != ( crc ^ 0xFFFFFFFFU ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"CRC error\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n return 0 ;\n }"}
{"idx": 12276, "target": 0, "func": "static int libopenjpeg_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n LibOpenJPEGContext * ctx = avctx -> priv_data ;\n ThreadFrame frame = {\n . f = data }\n ;\n AVFrame * picture = data ;\n const AVPixFmtDescriptor * desc ;\n opj_dinfo_t * dec ;\n opj_cio_t * stream ;\n opj_image_t * image ;\n int width , height , ret = - 1 ;\n int pixel_size = 0 ;\n int ispacked = 0 ;\n int i ;\n * got_frame = 0 ;\n if ( ( AV_RB32 ( buf ) == 12 ) && ( AV_RB32 ( buf + 4 ) == JP2_SIG_TYPE ) && ( AV_RB32 ( buf + 8 ) == JP2_SIG_VALUE ) ) {\n dec = opj_create_decompress ( CODEC_JP2 ) ;\n }\n else {\n if ( AV_RB32 ( buf + 4 ) == AV_RB32 ( \"jp2c\" ) ) buf += 8 ;\n dec = opj_create_decompress ( CODEC_J2K ) ;\n }\n if ( ! dec ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error initializing decoder.\\n\" ) ;\n return - 1 ;\n }\n opj_set_event_mgr ( ( opj_common_ptr ) dec , NULL , NULL ) ;\n ctx -> dec_params . cp_limit_decoding = LIMIT_TO_MAIN_HEADER ;\n ctx -> dec_params . cp_reduce = ctx -> lowres ;\n ctx -> dec_params . cp_layer = ctx -> lowqual ;\n opj_setup_decoder ( dec , & ctx -> dec_params ) ;\n stream = opj_cio_open ( ( opj_common_ptr ) dec , buf , buf_size ) ;\n if ( ! stream ) {\n av_log ( avctx , AV_LOG_ERROR , \"Codestream could not be opened for reading.\\n\" ) ;\n opj_destroy_decompress ( dec ) ;\n return - 1 ;\n }\n image = opj_decode_with_info ( dec , stream , NULL ) ;\n opj_cio_close ( stream ) ;\n if ( ! image ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error decoding codestream.\\n\" ) ;\n opj_destroy_decompress ( dec ) ;\n return - 1 ;\n }\n width = image -> x1 - image -> x0 ;\n height = image -> y1 - image -> y0 ;\n if ( ctx -> lowres ) {\n width = ( width + ( 1 << ctx -> lowres ) - 1 ) >> ctx -> lowres ;\n height = ( height + ( 1 << ctx -> lowres ) - 1 ) >> ctx -> lowres ;\n }\n if ( av_image_check_size ( width , height , 0 , avctx ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"%dx%d dimension invalid.\\n\" , width , height ) ;\n goto done ;\n }\n avcodec_set_dimensions ( avctx , width , height ) ;\n if ( avctx -> pix_fmt != AV_PIX_FMT_NONE ) if ( ! libopenjpeg_matches_pix_fmt ( image , avctx -> pix_fmt ) ) avctx -> pix_fmt = AV_PIX_FMT_NONE ;\n if ( avctx -> pix_fmt == AV_PIX_FMT_NONE ) avctx -> pix_fmt = libopenjpeg_guess_pix_fmt ( image ) ;\n if ( avctx -> pix_fmt == AV_PIX_FMT_NONE ) {\n av_log ( avctx , AV_LOG_ERROR , \"Unable to determine pixel format\\n\" ) ;\n ret = AVERROR_INVALIDDATA ;\n goto done ;\n }\n for ( i = 0 ;\n i < image -> numcomps ;\n i ++ ) if ( image -> comps [ i ] . prec > avctx -> bits_per_raw_sample ) avctx -> bits_per_raw_sample = image -> comps [ i ] . prec ;\n if ( ff_thread_get_buffer ( avctx , & frame , 0 ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"ff_thread_get_buffer() failed\\n\" ) ;\n goto done ;\n }\n ctx -> dec_params . cp_limit_decoding = NO_LIMITATION ;\n opj_setup_decoder ( dec , & ctx -> dec_params ) ;\n stream = opj_cio_open ( ( opj_common_ptr ) dec , buf , buf_size ) ;\n if ( ! stream ) {\n av_log ( avctx , AV_LOG_ERROR , \"Codestream could not be opened for reading.\\n\" ) ;\n goto done ;\n }\n opj_image_destroy ( image ) ;\n image = opj_decode_with_info ( dec , stream , NULL ) ;\n opj_cio_close ( stream ) ;\n if ( ! image ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error decoding codestream.\\n\" ) ;\n goto done ;\n }\n desc = av_pix_fmt_desc_get ( avctx -> pix_fmt ) ;\n pixel_size = desc -> comp [ 0 ] . step_minus1 + 1 ;\n ispacked = libopenjpeg_ispacked ( avctx -> pix_fmt ) ;\n switch ( pixel_size ) {\n case 1 : if ( ispacked ) {\n libopenjpeg_copy_to_packed8 ( picture , image ) ;\n }\n else {\n libopenjpeg_copyto8 ( picture , image ) ;\n }\n break ;\n case 2 : if ( ispacked ) {\n libopenjpeg_copy_to_packed8 ( picture , image ) ;\n }\n else {\n libopenjpeg_copyto16 ( picture , image ) ;\n }\n break ;\n case 3 : case 4 : if ( ispacked ) {\n libopenjpeg_copy_to_packed8 ( picture , image ) ;\n }\n break ;\n case 6 : case 8 : if ( ispacked ) {\n libopenjpeg_copy_to_packed16 ( picture , image ) ;\n }\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"unsupported pixel size %d\\n\" , pixel_size ) ;\n goto done ;\n }\n * got_frame = 1 ;\n ret = buf_size ;\n done : opj_image_destroy ( image ) ;\n opj_destroy_decompress ( dec ) ;\n return ret ;\n }"}
{"idx": 12277, "target": 0, "func": "int qemuMonitorJSONDiskSnapshot ( qemuMonitorPtr mon , const char * device , const char * file ) {\n int ret ;\n virJSONValuePtr cmd ;\n virJSONValuePtr reply = NULL ;\n cmd = qemuMonitorJSONMakeCommand ( \"blockdev-snapshot-sync\" , \"s:device\" , device , \"s:snapshot-file\" , file , NULL ) ;\n if ( ! cmd ) return - 1 ;\n if ( ( ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ) < 0 ) goto cleanup ;\n if ( qemuMonitorJSONHasError ( reply , \"CommandNotFound\" ) && qemuMonitorCheckHMP ( mon , \"snapshot_blkdev\" ) ) {\n VIR_DEBUG ( \"blockdev-snapshot-sync command not found, trying HMP\" ) ;\n ret = qemuMonitorTextDiskSnapshot ( mon , device , file ) ;\n goto cleanup ;\n }\n ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n cleanup : virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 12278, "target": 0, "func": "static int selinux_dentry_init_security ( struct dentry * dentry , int mode , const struct qstr * name , void * * ctx , u32 * ctxlen ) {\n u32 newsid ;\n int rc ;\n rc = selinux_determine_inode_label ( current_security ( ) , d_inode ( dentry -> d_parent ) , name , inode_mode_to_security_class ( mode ) , & newsid ) ;\n if ( rc ) return rc ;\n return security_sid_to_context ( newsid , ( char * * ) ctx , ctxlen ) ;\n }"}
{"idx": 12279, "target": 0, "func": "static void h223_lc_init ( void ) {\n h223_lc_init_dir ( P2P_DIR_SENT ) ;\n h223_lc_init_dir ( P2P_DIR_RECV ) ;\n h223_lc_params_temp = NULL ;\n h245_lc_dissector = NULL ;\n h223_fw_lc_num = 0 ;\n }"}
{"idx": 12280, "target": 0, "func": "int rds_notify_queue_get ( struct rds_sock * rs , struct msghdr * msghdr ) {\n struct rds_notifier * notifier ;\n struct rds_rdma_notify cmsg = {\n 0 }\n ;\n unsigned int count = 0 , max_messages = ~ 0U ;\n unsigned long flags ;\n LIST_HEAD ( copy ) ;\n int err = 0 ;\n if ( msghdr ) {\n max_messages = msghdr -> msg_controllen / CMSG_SPACE ( sizeof ( cmsg ) ) ;\n if ( ! max_messages ) max_messages = 1 ;\n }\n spin_lock_irqsave ( & rs -> rs_lock , flags ) ;\n while ( ! list_empty ( & rs -> rs_notify_queue ) && count < max_messages ) {\n notifier = list_entry ( rs -> rs_notify_queue . next , struct rds_notifier , n_list ) ;\n list_move ( & notifier -> n_list , & copy ) ;\n count ++ ;\n }\n spin_unlock_irqrestore ( & rs -> rs_lock , flags ) ;\n if ( ! count ) return 0 ;\n while ( ! list_empty ( & copy ) ) {\n notifier = list_entry ( copy . next , struct rds_notifier , n_list ) ;\n if ( msghdr ) {\n cmsg . user_token = notifier -> n_user_token ;\n cmsg . status = notifier -> n_status ;\n err = put_cmsg ( msghdr , SOL_RDS , RDS_CMSG_RDMA_STATUS , sizeof ( cmsg ) , & cmsg ) ;\n if ( err ) break ;\n }\n list_del_init ( & notifier -> n_list ) ;\n kfree ( notifier ) ;\n }\n if ( ! list_empty ( & copy ) ) {\n spin_lock_irqsave ( & rs -> rs_lock , flags ) ;\n list_splice ( & copy , & rs -> rs_notify_queue ) ;\n spin_unlock_irqrestore ( & rs -> rs_lock , flags ) ;\n }\n return err ;\n }"}
{"idx": 12281, "target": 0, "func": "static int vp9_pattern_search_sad ( const MACROBLOCK * x , MV * ref_mv , int search_param , int sad_per_bit , int do_init_search , int * sad_list , const vp9_variance_fn_ptr_t * vfp , int use_mvcost , const MV * center_mv , MV * best_mv , const int num_candidates [ MAX_PATTERN_SCALES ] , const MV candidates [ MAX_PATTERN_SCALES ] [ MAX_PATTERN_CANDIDATES ] ) {\n const MACROBLOCKD * const xd = & x -> e_mbd ;\n static const int search_param_to_steps [ MAX_MVSEARCH_STEPS ] = {\n 10 , 9 , 8 , 7 , 6 , 5 , 4 , 3 , 2 , 1 , 0 , }\n ;\n int i , s , t ;\n const struct buf_2d * const what = & x -> plane [ 0 ] . src ;\n const struct buf_2d * const in_what = & xd -> plane [ 0 ] . pre [ 0 ] ;\n int br , bc ;\n int bestsad = INT_MAX ;\n int thissad ;\n int k = - 1 ;\n const MV fcenter_mv = {\n center_mv -> row >> 3 , center_mv -> col >> 3 }\n ;\n int best_init_s = search_param_to_steps [ search_param ] ;\n clamp_mv ( ref_mv , x -> mv_col_min , x -> mv_col_max , x -> mv_row_min , x -> mv_row_max ) ;\n br = ref_mv -> row ;\n bc = ref_mv -> col ;\n if ( sad_list != NULL ) {\n sad_list [ 0 ] = sad_list [ 1 ] = sad_list [ 2 ] = sad_list [ 3 ] = sad_list [ 4 ] = INT_MAX ;\n }\n bestsad = vfp -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , ref_mv ) , in_what -> stride ) + mvsad_err_cost ( x , ref_mv , & fcenter_mv , sad_per_bit ) ;\n if ( do_init_search ) {\n s = best_init_s ;\n best_init_s = - 1 ;\n for ( t = 0 ;\n t <= s ;\n ++ t ) {\n int best_site = - 1 ;\n if ( check_bounds ( x , br , bc , 1 << t ) ) {\n for ( i = 0 ;\n i < num_candidates [ t ] ;\n i ++ ) {\n const MV this_mv = {\n br + candidates [ t ] [ i ] . row , bc + candidates [ t ] [ i ] . col }\n ;\n thissad = vfp -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , & this_mv ) , in_what -> stride ) ;\n CHECK_BETTER }\n }\n else {\n for ( i = 0 ;\n i < num_candidates [ t ] ;\n i ++ ) {\n const MV this_mv = {\n br + candidates [ t ] [ i ] . row , bc + candidates [ t ] [ i ] . col }\n ;\n if ( ! is_mv_in ( x , & this_mv ) ) continue ;\n thissad = vfp -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , & this_mv ) , in_what -> stride ) ;\n CHECK_BETTER }\n }\n if ( best_site == - 1 ) {\n continue ;\n }\n else {\n best_init_s = t ;\n k = best_site ;\n }\n }\n if ( best_init_s != - 1 ) {\n br += candidates [ best_init_s ] [ k ] . row ;\n bc += candidates [ best_init_s ] [ k ] . col ;\n }\n }\n if ( best_init_s != - 1 ) {\n int do_sad = ( num_candidates [ 0 ] == 4 && sad_list != NULL ) ;\n int best_site = - 1 ;\n s = best_init_s ;\n for ( ;\n s >= do_sad ;\n s -- ) {\n if ( ! do_init_search || s != best_init_s ) {\n if ( check_bounds ( x , br , bc , 1 << s ) ) {\n for ( i = 0 ;\n i < num_candidates [ s ] ;\n i ++ ) {\n const MV this_mv = {\n br + candidates [ s ] [ i ] . row , bc + candidates [ s ] [ i ] . col }\n ;\n thissad = vfp -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , & this_mv ) , in_what -> stride ) ;\n CHECK_BETTER }\n }\n else {\n for ( i = 0 ;\n i < num_candidates [ s ] ;\n i ++ ) {\n const MV this_mv = {\n br + candidates [ s ] [ i ] . row , bc + candidates [ s ] [ i ] . col }\n ;\n if ( ! is_mv_in ( x , & this_mv ) ) continue ;\n thissad = vfp -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , & this_mv ) , in_what -> stride ) ;\n CHECK_BETTER }\n }\n if ( best_site == - 1 ) {\n continue ;\n }\n else {\n br += candidates [ s ] [ best_site ] . row ;\n bc += candidates [ s ] [ best_site ] . col ;\n k = best_site ;\n }\n }\n do {\n int next_chkpts_indices [ PATTERN_CANDIDATES_REF ] ;\n best_site = - 1 ;\n next_chkpts_indices [ 0 ] = ( k == 0 ) ? num_candidates [ s ] - 1 : k - 1 ;\n next_chkpts_indices [ 1 ] = k ;\n next_chkpts_indices [ 2 ] = ( k == num_candidates [ s ] - 1 ) ? 0 : k + 1 ;\n if ( check_bounds ( x , br , bc , 1 << s ) ) {\n for ( i = 0 ;\n i < PATTERN_CANDIDATES_REF ;\n i ++ ) {\n const MV this_mv = {\n br + candidates [ s ] [ next_chkpts_indices [ i ] ] . row , bc + candidates [ s ] [ next_chkpts_indices [ i ] ] . col }\n ;\n thissad = vfp -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , & this_mv ) , in_what -> stride ) ;\n CHECK_BETTER }\n }\n else {\n for ( i = 0 ;\n i < PATTERN_CANDIDATES_REF ;\n i ++ ) {\n const MV this_mv = {\n br + candidates [ s ] [ next_chkpts_indices [ i ] ] . row , bc + candidates [ s ] [ next_chkpts_indices [ i ] ] . col }\n ;\n if ( ! is_mv_in ( x , & this_mv ) ) continue ;\n thissad = vfp -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , & this_mv ) , in_what -> stride ) ;\n CHECK_BETTER }\n }\n if ( best_site != - 1 ) {\n k = next_chkpts_indices [ best_site ] ;\n br += candidates [ s ] [ k ] . row ;\n bc += candidates [ s ] [ k ] . col ;\n }\n }\n while ( best_site != - 1 ) ;\n }\n if ( s == 0 ) {\n sad_list [ 0 ] = bestsad ;\n if ( ! do_init_search || s != best_init_s ) {\n if ( check_bounds ( x , br , bc , 1 << s ) ) {\n for ( i = 0 ;\n i < num_candidates [ s ] ;\n i ++ ) {\n const MV this_mv = {\n br + candidates [ s ] [ i ] . row , bc + candidates [ s ] [ i ] . col }\n ;\n sad_list [ i + 1 ] = thissad = vfp -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , & this_mv ) , in_what -> stride ) ;\n CHECK_BETTER }\n }\n else {\n for ( i = 0 ;\n i < num_candidates [ s ] ;\n i ++ ) {\n const MV this_mv = {\n br + candidates [ s ] [ i ] . row , bc + candidates [ s ] [ i ] . col }\n ;\n if ( ! is_mv_in ( x , & this_mv ) ) continue ;\n sad_list [ i + 1 ] = thissad = vfp -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , & this_mv ) , in_what -> stride ) ;\n CHECK_BETTER }\n }\n if ( best_site != - 1 ) {\n br += candidates [ s ] [ best_site ] . row ;\n bc += candidates [ s ] [ best_site ] . col ;\n k = best_site ;\n }\n }\n while ( best_site != - 1 ) {\n int next_chkpts_indices [ PATTERN_CANDIDATES_REF ] ;\n best_site = - 1 ;\n next_chkpts_indices [ 0 ] = ( k == 0 ) ? num_candidates [ s ] - 1 : k - 1 ;\n next_chkpts_indices [ 1 ] = k ;\n next_chkpts_indices [ 2 ] = ( k == num_candidates [ s ] - 1 ) ? 0 : k + 1 ;\n sad_list [ 1 ] = sad_list [ 2 ] = sad_list [ 3 ] = sad_list [ 4 ] = INT_MAX ;\n sad_list [ ( ( k + 2 ) % 4 ) + 1 ] = sad_list [ 0 ] ;\n sad_list [ 0 ] = bestsad ;\n if ( check_bounds ( x , br , bc , 1 << s ) ) {\n for ( i = 0 ;\n i < PATTERN_CANDIDATES_REF ;\n i ++ ) {\n const MV this_mv = {\n br + candidates [ s ] [ next_chkpts_indices [ i ] ] . row , bc + candidates [ s ] [ next_chkpts_indices [ i ] ] . col }\n ;\n sad_list [ next_chkpts_indices [ i ] + 1 ] = thissad = vfp -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , & this_mv ) , in_what -> stride ) ;\n CHECK_BETTER }\n }\n else {\n for ( i = 0 ;\n i < PATTERN_CANDIDATES_REF ;\n i ++ ) {\n const MV this_mv = {\n br + candidates [ s ] [ next_chkpts_indices [ i ] ] . row , bc + candidates [ s ] [ next_chkpts_indices [ i ] ] . col }\n ;\n if ( ! is_mv_in ( x , & this_mv ) ) {\n sad_list [ next_chkpts_indices [ i ] + 1 ] = INT_MAX ;\n continue ;\n }\n sad_list [ next_chkpts_indices [ i ] + 1 ] = thissad = vfp -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , & this_mv ) , in_what -> stride ) ;\n CHECK_BETTER }\n }\n if ( best_site != - 1 ) {\n k = next_chkpts_indices [ best_site ] ;\n br += candidates [ s ] [ k ] . row ;\n bc += candidates [ s ] [ k ] . col ;\n }\n }\n }\n }\n if ( sad_list ) {\n static const MV neighbors [ 4 ] = {\n {\n 0 , - 1 }\n , {\n 1 , 0 }\n , {\n 0 , 1 }\n , {\n - 1 , 0 }\n }\n ;\n if ( sad_list [ 0 ] == INT_MAX ) {\n sad_list [ 0 ] = bestsad ;\n if ( check_bounds ( x , br , bc , 1 ) ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n const MV this_mv = {\n br + neighbors [ i ] . row , bc + neighbors [ i ] . col }\n ;\n sad_list [ i + 1 ] = vfp -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , & this_mv ) , in_what -> stride ) ;\n }\n }\n else {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n const MV this_mv = {\n br + neighbors [ i ] . row , bc + neighbors [ i ] . col }\n ;\n if ( ! is_mv_in ( x , & this_mv ) ) sad_list [ i + 1 ] = INT_MAX ;\n else sad_list [ i + 1 ] = vfp -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , & this_mv ) , in_what -> stride ) ;\n }\n }\n }\n else {\n if ( use_mvcost ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n const MV this_mv = {\n br + neighbors [ i ] . row , bc + neighbors [ i ] . col }\n ;\n if ( sad_list [ i + 1 ] != INT_MAX ) {\n sad_list [ i + 1 ] += mvsad_err_cost ( x , & this_mv , & fcenter_mv , sad_per_bit ) ;\n }\n }\n }\n }\n }\n best_mv -> row = br ;\n best_mv -> col = bc ;\n return bestsad ;\n }"}
{"idx": 12282, "target": 0, "func": "static void put_str16 ( AVIOContext * s , const char * tag ) {\n int len ;\n uint8_t * pb ;\n AVIOContext * dyn_buf ;\n if ( avio_open_dyn_buf ( & dyn_buf ) < 0 ) return ;\n avio_put_str16le ( dyn_buf , tag ) ;\n len = avio_close_dyn_buf ( dyn_buf , & pb ) ;\n avio_wl16 ( s , len ) ;\n avio_write ( s , pb , len ) ;\n av_freep ( & pb ) ;\n }"}
{"idx": 12283, "target": 0, "func": "long dtls1_ctrl ( SSL * s , int cmd , long larg , void * parg ) {\n int ret = 0 ;\n switch ( cmd ) {\n case DTLS_CTRL_GET_TIMEOUT : if ( dtls1_get_timeout ( s , ( struct timeval * ) parg ) != NULL ) {\n ret = 1 ;\n }\n break ;\n case DTLS_CTRL_HANDLE_TIMEOUT : ret = dtls1_handle_timeout ( s ) ;\n break ;\n case DTLS_CTRL_SET_LINK_MTU : if ( larg < ( long ) dtls1_link_min_mtu ( ) ) return 0 ;\n s -> d1 -> link_mtu = larg ;\n return 1 ;\n case DTLS_CTRL_GET_LINK_MIN_MTU : return ( long ) dtls1_link_min_mtu ( ) ;\n case SSL_CTRL_SET_MTU : if ( larg < ( long ) dtls1_link_min_mtu ( ) - DTLS1_MAX_MTU_OVERHEAD ) return 0 ;\n s -> d1 -> mtu = larg ;\n return larg ;\n default : ret = ssl3_ctrl ( s , cmd , larg , parg ) ;\n break ;\n }\n return ( ret ) ;\n }"}
{"idx": 12284, "target": 0, "func": "static int dissect_h245_MultilinkRequest ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_MultilinkRequest , MultilinkRequest_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 12285, "target": 0, "func": "afs_int32 SPR_WhereIsIt ( struct rx_call * call , afs_int32 aid , afs_int32 * apos ) {\n afs_int32 code ;\n afs_int32 cid = ANONYMOUSID ;\n code = whereIsIt ( call , aid , apos , & cid ) ;\n osi_auditU ( call , PTS_WheIsItEvent , code , AUD_ID , aid , AUD_LONG , * apos , AUD_END ) ;\n ViceLog ( 125 , ( \"PTS_WhereIsIt: code %d cid %d aid %d apos %d\\n\" , code , cid , aid , * apos ) ) ;\n return code ;\n }"}
{"idx": 12286, "target": 0, "func": "static void http_basic_test ( void ) {\n struct timeval tv ;\n struct bufferevent * bev ;\n int fd ;\n const char * http_request ;\n short port = - 1 ;\n test_ok = 0 ;\n fprintf ( stdout , \"Testing Basic HTTP Server: \" ) ;\n http = http_setup ( & port , NULL ) ;\n if ( evhttp_bind_socket ( http , \"127.0.0.1\" , port + 1 ) == - 1 ) {\n fprintf ( stdout , \"FAILED (bind)\\n\" ) ;\n exit ( 1 ) ;\n }\n fd = http_connect ( \"127.0.0.1\" , port ) ;\n bev = bufferevent_new ( fd , http_readcb , http_writecb , http_errorcb , NULL ) ;\n http_request = \"GET /test HTTP/1.1\\r\\n\" \"Host: some\" ;\n bufferevent_write ( bev , http_request , strlen ( http_request ) ) ;\n timerclear ( & tv ) ;\n tv . tv_usec = 10000 ;\n event_once ( - 1 , EV_TIMEOUT , http_complete_write , bev , & tv ) ;\n event_dispatch ( ) ;\n if ( test_ok != 3 ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n bufferevent_free ( bev ) ;\n EVUTIL_CLOSESOCKET ( fd ) ;\n fd = http_connect ( \"127.0.0.1\" , port + 1 ) ;\n bev = bufferevent_new ( fd , http_readcb , http_writecb , http_errorcb , NULL ) ;\n http_request = \"GET /test HTTP/1.1\\r\\n\" \"Host: somehost\\r\\n\" \"Connection: close\\r\\n\" \"\\r\\n\" ;\n bufferevent_write ( bev , http_request , strlen ( http_request ) ) ;\n event_dispatch ( ) ;\n bufferevent_free ( bev ) ;\n EVUTIL_CLOSESOCKET ( fd ) ;\n evhttp_free ( http ) ;\n if ( test_ok != 5 ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n fprintf ( stdout , \"OK\\n\" ) ;\n }"}
{"idx": 12287, "target": 0, "func": "static int dissect_h245_T_subMessageIdentifier ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 619 \"../../asn1/h245/h245.cnf\" guint32 subMessageIdentifer ;\n gef_ctx_t * gefx ;\n gefx = gef_ctx_get ( actx -> private_data ) ;\n if ( gefx ) {\n if ( strcmp ( \"GenericMessage/0.0.8.239.2\" , gefx -> key ) == 0 ) {\n hf_index = hf_h245_subMessageIdentifier_standard ;\n }\n }\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 127U , & subMessageIdentifer , FALSE ) ;\n if ( gefx ) {\n gefx -> subid = wmem_strdup_printf ( wmem_packet_scope ( ) , \"%u\" , subMessageIdentifer ) ;\n gef_ctx_update_key ( gef_ctx_get ( actx -> private_data ) ) ;\n }\n if ( hf_index == hf_h245_subMessageIdentifier_standard ) {\n col_append_fstr ( actx -> pinfo -> cinfo , COL_INFO , \"%s\" , val_to_str ( subMessageIdentifer , h245_h239subMessageIdentifier_vals , \"<unknown>\" ) ) ;\n g_snprintf ( h245_pi -> frame_label , 50 , \"%s\" , val_to_str ( subMessageIdentifer , h245_h239subMessageIdentifier_vals , \"<unknown>\" ) ) ;\n }\n return offset ;\n }"}
{"idx": 12288, "target": 0, "func": "static int selinux_file_receive ( struct file * file ) {\n const struct cred * cred = current_cred ( ) ;\n return file_has_perm ( cred , file , file_to_av ( file ) ) ;\n }"}
{"idx": 12289, "target": 0, "func": "static int proc_tcp_available_congestion_control ( ctl_table * ctl , int write , void __user * buffer , size_t * lenp , loff_t * ppos ) {\n ctl_table tbl = {\n . maxlen = TCP_CA_BUF_MAX , }\n ;\n int ret ;\n tbl . data = kmalloc ( tbl . maxlen , GFP_USER ) ;\n if ( ! tbl . data ) return - ENOMEM ;\n tcp_get_available_congestion_control ( tbl . data , TCP_CA_BUF_MAX ) ;\n ret = proc_dostring ( & tbl , write , buffer , lenp , ppos ) ;\n kfree ( tbl . data ) ;\n return ret ;\n }"}
{"idx": 12290, "target": 0, "func": "static int dissect_h225_StatusInquiry_UUIE ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_StatusInquiry_UUIE , StatusInquiry_UUIE_sequence ) ;\n return offset ;\n }"}
{"idx": 12291, "target": 0, "func": "TEST_F ( WebUsbDetectorTest , UsbDeviceWithoutLandingPageAddedAndRemoved ) {\n GURL landing_page ( \"\" ) ;\n scoped_refptr < device : : MockUsbDevice > device ( new device : : MockUsbDevice ( 0 , 1 , \"Google\" , kProductName_1 , \"002\" , landing_page ) ) ;\n std : : string guid = device -> guid ( ) ;\n Initialize ( ) ;\n device_client_ . usb_service ( ) -> AddDevice ( device ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid ) == nullptr ) ;\n device_client_ . usb_service ( ) -> RemoveDevice ( device ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid ) == nullptr ) ;\n }"}
{"idx": 12292, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FullscreenControllerInteractiveTest , DISABLED_BrowserFullscreenAfterTabFSExit ) {\n ASSERT_NO_FATAL_FAILURE ( ToggleBrowserFullscreen ( true ) ) ;\n AddTabAtIndex ( 0 , GURL ( url : : kAboutBlankURL ) , PAGE_TRANSITION_TYPED ) ;\n ASSERT_NO_FATAL_FAILURE ( ToggleTabFullscreen ( true ) ) ;\n ASSERT_NO_FATAL_FAILURE ( ToggleTabFullscreen ( false ) ) ;\n ASSERT_TRUE ( IsFullscreenForBrowser ( ) ) ;\n }"}
{"idx": 12293, "target": 0, "func": "void do_delimiter ( struct st_command * command ) {\n char * p = command -> first_argument ;\n DBUG_ENTER ( \"do_delimiter\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"first_argument: %s\" , command -> first_argument ) ) ;\n while ( * p && my_isspace ( charset_info , * p ) ) p ++ ;\n if ( ! ( * p ) ) die ( \"Can't set empty delimiter\" ) ;\n delimiter_length = strmake_buf ( delimiter , p ) - delimiter ;\n DBUG_PRINT ( \"exit\" , ( \"delimiter: %s\" , delimiter ) ) ;\n command -> last_argument = p + delimiter_length ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 12294, "target": 0, "func": "TSReturnCode TSStatFindName ( const char * name , int * idp ) {\n int id ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) name ) == TS_SUCCESS ) ;\n if ( RecGetRecordOrderAndId ( name , nullptr , & id ) != REC_ERR_OKAY ) {\n return TS_ERROR ;\n }\n if ( RecGetGlobalRawStatPtr ( api_rsb , id ) == nullptr ) {\n return TS_ERROR ;\n }\n * idp = id ;\n return TS_SUCCESS ;\n }"}
{"idx": 12295, "target": 0, "func": "static void test_bug28505 ( ) {\n my_ulonglong res ;\n myquery ( mysql_query ( mysql , \"drop table if exists t1\" ) ) ;\n myquery ( mysql_query ( mysql , \"create table t1(f1 int primary key)\" ) ) ;\n myquery ( mysql_query ( mysql , \"insert into t1 values(1)\" ) ) ;\n myquery ( mysql_query ( mysql , \"insert into t1 values(1) on duplicate key update f1=1\" ) ) ;\n res = mysql_affected_rows ( mysql ) ;\n DIE_UNLESS ( ! res ) ;\n myquery ( mysql_query ( mysql , \"drop table t1\" ) ) ;\n }"}
{"idx": 12296, "target": 0, "func": "xmlParserInputBufferCreateFilenameFunc xmlThrDefParserInputBufferCreateFilenameDefault ( xmlParserInputBufferCreateFilenameFunc func ) {\n xmlParserInputBufferCreateFilenameFunc old ;\n xmlMutexLock ( xmlThrDefMutex ) ;\n old = xmlParserInputBufferCreateFilenameValueThrDef ;\n if ( old == NULL ) {\n old = __xmlParserInputBufferCreateFilename ;\n }\n xmlParserInputBufferCreateFilenameValueThrDef = func ;\n xmlMutexUnlock ( xmlThrDefMutex ) ;\n return ( old ) ;\n }"}
{"idx": 12297, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( UnloadTest , BrowserListCloseNoUnloadListeners ) {\n NavigateToDataURL ( NOLISTENERS_HTML , \"nolisteners\" ) ;\n content : : WindowedNotificationObserver window_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , content : : NotificationService : : AllSources ( ) ) ;\n UnloadResults unload_results ;\n BrowserList : : CloseAllBrowsersWithProfile ( browser ( ) -> profile ( ) , base : : Bind ( & UnloadResults : : AddSuccess , base : : Unretained ( & unload_results ) ) , base : : Bind ( & UnloadResults : : AddAbort , base : : Unretained ( & unload_results ) ) , false ) ;\n window_observer . Wait ( ) ;\n EXPECT_EQ ( 1 , unload_results . get_successes ( ) ) ;\n EXPECT_EQ ( 0 , unload_results . get_aborts ( ) ) ;\n }"}
{"idx": 12298, "target": 0, "func": "static ASN1_STRING * obj_to_asn1derstr ( VALUE obj ) {\n ASN1_STRING * a1str ;\n VALUE str ;\n str = ossl_to_der ( obj ) ;\n if ( ! ( a1str = ASN1_STRING_new ( ) ) ) ossl_raise ( eASN1Error , NULL ) ;\n ASN1_STRING_set ( a1str , RSTRING_PTR ( str ) , RSTRING_LENINT ( str ) ) ;\n return a1str ;\n }"}
{"idx": 12299, "target": 0, "func": "void vp9_adapt_coef_probs ( VP9_COMMON * cm ) {\n TX_SIZE t ;\n unsigned int count_sat , update_factor ;\n if ( frame_is_intra_only ( cm ) ) {\n update_factor = COEF_MAX_UPDATE_FACTOR_KEY ;\n count_sat = COEF_COUNT_SAT_KEY ;\n }\n else if ( cm -> last_frame_type == KEY_FRAME ) {\n update_factor = COEF_MAX_UPDATE_FACTOR_AFTER_KEY ;\n count_sat = COEF_COUNT_SAT_AFTER_KEY ;\n }\n else {\n update_factor = COEF_MAX_UPDATE_FACTOR ;\n count_sat = COEF_COUNT_SAT ;\n }\n for ( t = TX_4X4 ;\n t <= TX_32X32 ;\n t ++ ) adapt_coef_probs ( cm , t , count_sat , update_factor ) ;\n }"}
{"idx": 12300, "target": 0, "func": "void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 ) sadMxN ( 16 , 32 ) sadMxNx4D ( 16 , 32 ) sadMxN ( 16 , 16 ) sadMxNxK ( 16 , 16 , 3 ) sadMxNxK ( 16 , 16 , 8 ) sadMxNx4D ( 16 , 16 ) sadMxN ( 16 , 8 ) sadMxNxK ( 16 , 8 , 3 ) sadMxNxK ( 16 , 8 , 8 ) sadMxNx4D ( 16 , 8 ) sadMxN ( 8 , 16 ) sadMxNxK ( 8 , 16 , 3 ) sadMxNxK ( 8 , 16 , 8 ) sadMxNx4D ( 8 , 16 )"}
{"idx": 12301, "target": 0, "func": "static void ff_region_offset2size ( GranuleDef * g ) {\n int i , k , j = 0 ;\n g -> region_size [ 2 ] = 576 / 2 ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n k = FFMIN ( g -> region_size [ i ] , g -> big_values ) ;\n g -> region_size [ i ] = k - j ;\n j = k ;\n }\n }"}
{"idx": 12302, "target": 0, "func": "static void _fromUnicodeWithCallback ( UConverterFromUnicodeArgs * pArgs , UErrorCode * err ) {\n UConverterFromUnicode fromUnicode ;\n UConverter * cnv ;\n const UChar * s ;\n char * t ;\n int32_t * offsets ;\n int32_t sourceIndex ;\n int32_t errorInputLength ;\n UBool converterSawEndOfInput , calledCallback ;\n UChar replay [ UCNV_EXT_MAX_UCHARS ] ;\n const UChar * realSource , * realSourceLimit ;\n int32_t realSourceIndex ;\n UBool realFlush ;\n cnv = pArgs -> converter ;\n s = pArgs -> source ;\n t = pArgs -> target ;\n offsets = pArgs -> offsets ;\n sourceIndex = 0 ;\n if ( offsets == NULL ) {\n fromUnicode = cnv -> sharedData -> impl -> fromUnicode ;\n }\n else {\n fromUnicode = cnv -> sharedData -> impl -> fromUnicodeWithOffsets ;\n if ( fromUnicode == NULL ) {\n fromUnicode = cnv -> sharedData -> impl -> fromUnicode ;\n sourceIndex = - 1 ;\n }\n }\n if ( cnv -> preFromULength >= 0 ) {\n realSource = NULL ;\n realSourceLimit = NULL ;\n realFlush = FALSE ;\n realSourceIndex = 0 ;\n }\n else {\n realSource = pArgs -> source ;\n realSourceLimit = pArgs -> sourceLimit ;\n realFlush = pArgs -> flush ;\n realSourceIndex = sourceIndex ;\n uprv_memcpy ( replay , cnv -> preFromU , - cnv -> preFromULength * U_SIZEOF_UCHAR ) ;\n pArgs -> source = replay ;\n pArgs -> sourceLimit = replay - cnv -> preFromULength ;\n pArgs -> flush = FALSE ;\n sourceIndex = - 1 ;\n cnv -> preFromULength = 0 ;\n }\n for ( ;\n ;\n ) {\n if ( U_SUCCESS ( * err ) ) {\n fromUnicode ( pArgs , err ) ;\n converterSawEndOfInput = ( UBool ) ( U_SUCCESS ( * err ) && pArgs -> flush && pArgs -> source == pArgs -> sourceLimit && cnv -> fromUChar32 == 0 ) ;\n }\n else {\n converterSawEndOfInput = FALSE ;\n }\n calledCallback = FALSE ;\n errorInputLength = 0 ;\n for ( ;\n ;\n ) {\n if ( offsets != NULL ) {\n int32_t length = ( int32_t ) ( pArgs -> target - t ) ;\n if ( length > 0 ) {\n _updateOffsets ( offsets , length , sourceIndex , errorInputLength ) ;\n pArgs -> offsets = offsets += length ;\n }\n if ( sourceIndex >= 0 ) {\n sourceIndex += ( int32_t ) ( pArgs -> source - s ) ;\n }\n }\n if ( cnv -> preFromULength < 0 ) {\n if ( realSource == NULL ) {\n realSource = pArgs -> source ;\n realSourceLimit = pArgs -> sourceLimit ;\n realFlush = pArgs -> flush ;\n realSourceIndex = sourceIndex ;\n uprv_memcpy ( replay , cnv -> preFromU , - cnv -> preFromULength * U_SIZEOF_UCHAR ) ;\n pArgs -> source = replay ;\n pArgs -> sourceLimit = replay - cnv -> preFromULength ;\n pArgs -> flush = FALSE ;\n if ( ( sourceIndex += cnv -> preFromULength ) < 0 ) {\n sourceIndex = - 1 ;\n }\n cnv -> preFromULength = 0 ;\n }\n else {\n U_ASSERT ( realSource == NULL ) ;\n * err = U_INTERNAL_PROGRAM_ERROR ;\n }\n }\n s = pArgs -> source ;\n t = pArgs -> target ;\n if ( U_SUCCESS ( * err ) ) {\n if ( s < pArgs -> sourceLimit ) {\n break ;\n }\n else if ( realSource != NULL ) {\n pArgs -> source = realSource ;\n pArgs -> sourceLimit = realSourceLimit ;\n pArgs -> flush = realFlush ;\n sourceIndex = realSourceIndex ;\n realSource = NULL ;\n break ;\n }\n else if ( pArgs -> flush && cnv -> fromUChar32 != 0 ) {\n * err = U_TRUNCATED_CHAR_FOUND ;\n calledCallback = FALSE ;\n }\n else {\n if ( pArgs -> flush ) {\n if ( ! converterSawEndOfInput ) {\n break ;\n }\n _reset ( cnv , UCNV_RESET_FROM_UNICODE , FALSE ) ;\n }\n return ;\n }\n }\n {\n UErrorCode e ;\n if ( calledCallback || ( e = * err ) == U_BUFFER_OVERFLOW_ERROR || ( e != U_INVALID_CHAR_FOUND && e != U_ILLEGAL_CHAR_FOUND && e != U_TRUNCATED_CHAR_FOUND ) ) {\n if ( realSource != NULL ) {\n int32_t length ;\n U_ASSERT ( cnv -> preFromULength == 0 ) ;\n length = ( int32_t ) ( pArgs -> sourceLimit - pArgs -> source ) ;\n if ( length > 0 ) {\n u_memcpy ( cnv -> preFromU , pArgs -> source , length ) ;\n cnv -> preFromULength = ( int8_t ) - length ;\n }\n pArgs -> source = realSource ;\n pArgs -> sourceLimit = realSourceLimit ;\n pArgs -> flush = realFlush ;\n }\n return ;\n }\n }\n {\n UChar32 codePoint ;\n codePoint = cnv -> fromUChar32 ;\n errorInputLength = 0 ;\n U16_APPEND_UNSAFE ( cnv -> invalidUCharBuffer , errorInputLength , codePoint ) ;\n cnv -> invalidUCharLength = ( int8_t ) errorInputLength ;\n cnv -> fromUChar32 = 0 ;\n cnv -> fromUCharErrorBehaviour ( cnv -> fromUContext , pArgs , cnv -> invalidUCharBuffer , errorInputLength , codePoint , * err == U_INVALID_CHAR_FOUND ? UCNV_UNASSIGNED : UCNV_ILLEGAL , err ) ;\n }\n calledCallback = TRUE ;\n }\n }\n }"}
{"idx": 12303, "target": 0, "func": "SPL_METHOD ( SplDoublyLinkedList , valid ) {\n spl_dllist_object * intern = ( spl_dllist_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n RETURN_BOOL ( intern -> traverse_pointer != NULL ) ;\n }"}
{"idx": 12304, "target": 0, "func": "void pdf_tos_translate ( pdf_text_object_state * tos , float tx , float ty ) {\n fz_pre_translate ( & tos -> tlm , tx , ty ) ;\n tos -> tm = tos -> tlm ;\n }"}
{"idx": 12305, "target": 0, "func": "static const char * cmd_conn_read_state_limit ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n long int limit ;\n if ( dcfg == NULL ) return NULL ;\n limit = strtol ( p1 , NULL , 10 ) ;\n if ( ( limit == LONG_MAX ) || ( limit == LONG_MIN ) || ( limit <= 0 ) ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid value for SecReadStateLimit: %s\" , p1 ) ;\n }\n conn_read_state_limit = limit ;\n return NULL ;\n }"}
{"idx": 12306, "target": 0, "func": "void nautilus_file_operations_copy_file ( GFile * source_file , GFile * target_dir , const gchar * source_display_name , const gchar * new_name , GtkWindow * parent_window , NautilusCopyCallback done_callback , gpointer done_callback_data ) {\n GTask * task ;\n CopyMoveJob * job ;\n job = op_job_new ( CopyMoveJob , parent_window ) ;\n job -> done_callback = done_callback ;\n job -> done_callback_data = done_callback_data ;\n job -> files = g_list_append ( NULL , g_object_ref ( source_file ) ) ;\n job -> destination = g_object_ref ( target_dir ) ;\n nautilus_progress_info_set_destination ( ( ( CommonJob * ) job ) -> progress , target_dir ) ;\n job -> target_name = g_strdup ( new_name ) ;\n job -> debuting_files = g_hash_table_new_full ( g_file_hash , ( GEqualFunc ) g_file_equal , g_object_unref , NULL ) ;\n if ( source_display_name != NULL ) {\n gchar * path ;\n path = g_build_filename ( \"/\" , source_display_name , NULL ) ;\n job -> fake_display_source = g_file_new_for_path ( path ) ;\n g_free ( path ) ;\n }\n inhibit_power_manager ( ( CommonJob * ) job , _ ( \"Copying Files\" ) ) ;\n task = g_task_new ( NULL , job -> common . cancellable , copy_task_done , job ) ;\n g_task_set_task_data ( task , job , NULL ) ;\n g_task_run_in_thread ( task , copy_task_thread_func ) ;\n g_object_unref ( task ) ;\n }"}
{"idx": 12307, "target": 0, "func": "TEST ( DownloadPrefsTest , PrefsInitializationSkipsInvalidFileTypes ) {\n content : : TestBrowserThreadBundle threads_are_required_for_testing_profile ;\n TestingProfile profile ;\n profile . GetPrefs ( ) -> SetString ( prefs : : kDownloadExtensionsToOpen , \"swf:txt::.foo:baz\" ) ;\n DownloadPrefs prefs ( & profile ) ;\n prefs . DisableAutoOpenBasedOnExtension ( base : : FilePath ( FILE_PATH_LITERAL ( \"x.baz\" ) ) ) ;\n EXPECT_FALSE ( prefs . IsAutoOpenEnabledBasedOnExtension ( base : : FilePath ( FILE_PATH_LITERAL ( \"x.swf\" ) ) ) ) ;\n EXPECT_TRUE ( prefs . IsAutoOpenEnabledBasedOnExtension ( base : : FilePath ( FILE_PATH_LITERAL ( \"x.txt\" ) ) ) ) ;\n EXPECT_FALSE ( prefs . IsAutoOpenEnabledBasedOnExtension ( base : : FilePath ( FILE_PATH_LITERAL ( \"x.foo\" ) ) ) ) ;\n EXPECT_STREQ ( \"txt\" , profile . GetPrefs ( ) -> GetString ( prefs : : kDownloadExtensionsToOpen ) . c_str ( ) ) ;\n }"}
{"idx": 12308, "target": 0, "func": "static void mime_list_done ( MimeListState * state , gboolean success ) {\n NautilusFile * file ;\n NautilusDirectory * directory ;\n directory = state -> directory ;\n g_assert ( directory != NULL ) ;\n file = state -> mime_list_file ;\n file -> details -> mime_list_is_up_to_date = TRUE ;\n g_list_free_full ( file -> details -> mime_list , g_free ) ;\n if ( success ) {\n file -> details -> mime_list_failed = TRUE ;\n file -> details -> mime_list = NULL ;\n }\n else {\n file -> details -> got_mime_list = TRUE ;\n file -> details -> mime_list = istr_set_get_as_list ( state -> mime_list_hash ) ;\n }\n directory -> details -> mime_list_in_progress = NULL ;\n nautilus_file_changed ( file ) ;\n async_job_end ( directory , \"MIME list\" ) ;\n nautilus_directory_async_state_changed ( directory ) ;\n }"}
{"idx": 12309, "target": 0, "func": "static bool compose_indic ( const hb_ot_shape_normalize_context_t * c , hb_codepoint_t a , hb_codepoint_t b , hb_codepoint_t * ab ) {\n if ( HB_UNICODE_GENERAL_CATEGORY_IS_MARK ( c -> unicode -> general_category ( a ) ) ) return false ;\n if ( a == 0x09AFu && b == 0x09BCu ) {\n * ab = 0x09DFu ;\n return true ;\n }\n return c -> unicode -> compose ( a , b , ab ) ;\n }"}
{"idx": 12310, "target": 1, "func": "static int remoteStreamHandleFinish ( struct qemud_client * client , struct qemud_client_stream * stream , struct qemud_client_message * msg ) {\n remote_error rerr ;\n int ret ;\n VIR_DEBUG ( \"stream=%p proc=%d serial=%d\" , stream , msg -> hdr . proc , msg -> hdr . serial ) ;\n memset ( & rerr , 0 , sizeof rerr ) ;\n stream -> closed = 1 ;\n virStreamEventRemoveCallback ( stream -> st ) ;\n ret = virStreamFinish ( stream -> st ) ;\n if ( ret < 0 ) {\n remoteDispatchConnError ( & rerr , client -> conn ) ;\n return remoteSerializeReplyError ( client , & rerr , & msg -> hdr ) ;\n }\n else {\n if ( remoteSendStreamData ( client , stream , NULL , 0 ) < 0 ) return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 12311, "target": 0, "func": "static int selinux_task_setrlimit ( struct task_struct * p , unsigned int resource , struct rlimit * new_rlim ) {\n struct rlimit * old_rlim = p -> signal -> rlim + resource ;\n if ( old_rlim -> rlim_max != new_rlim -> rlim_max ) return current_has_perm ( p , PROCESS__SETRLIMIT ) ;\n return 0 ;\n }"}
{"idx": 12312, "target": 0, "func": "static int vorbis_floor0_decode ( vorbis_context * vc , vorbis_floor_data * vfu , float * vec ) {\n vorbis_floor0 * vf = & vfu -> t0 ;\n float * lsp = vf -> lsp ;\n unsigned amplitude , book_idx ;\n unsigned blockflag = vc -> modes [ vc -> mode_number ] . blockflag ;\n if ( ! vf -> amplitude_bits ) return 1 ;\n amplitude = get_bits ( & vc -> gb , vf -> amplitude_bits ) ;\n if ( amplitude > 0 ) {\n float last = 0 ;\n unsigned idx , lsp_len = 0 ;\n vorbis_codebook codebook ;\n book_idx = get_bits ( & vc -> gb , ilog ( vf -> num_books ) ) ;\n if ( book_idx >= vf -> num_books ) {\n av_log ( vc -> avctx , AV_LOG_ERROR , \"floor0 dec: booknumber too high!\\n\" ) ;\n book_idx = 0 ;\n }\n av_dlog ( NULL , \"floor0 dec: booknumber: %u\\n\" , book_idx ) ;\n codebook = vc -> codebooks [ vf -> book_list [ book_idx ] ] ;\n if ( ! codebook . codevectors ) return AVERROR_INVALIDDATA ;\n while ( lsp_len < vf -> order ) {\n int vec_off ;\n av_dlog ( NULL , \"floor0 dec: book dimension: %d\\n\" , codebook . dimensions ) ;\n av_dlog ( NULL , \"floor0 dec: maximum depth: %d\\n\" , codebook . maxdepth ) ;\n vec_off = get_vlc2 ( & vc -> gb , codebook . vlc . table , codebook . nb_bits , codebook . maxdepth ) * codebook . dimensions ;\n av_dlog ( NULL , \"floor0 dec: vector offset: %d\\n\" , vec_off ) ;\n for ( idx = 0 ;\n idx < codebook . dimensions ;\n ++ idx ) lsp [ lsp_len + idx ] = codebook . codevectors [ vec_off + idx ] + last ;\n last = lsp [ lsp_len + idx - 1 ] ;\n lsp_len += codebook . dimensions ;\n }\n {\n int idx ;\n for ( idx = 0 ;\n idx < lsp_len ;\n ++ idx ) av_dlog ( NULL , \"floor0 dec: coeff at %d is %f\\n\" , idx , lsp [ idx ] ) ;\n }\n {\n int i ;\n int order = vf -> order ;\n float wstep = M_PI / vf -> bark_map_size ;\n for ( i = 0 ;\n i < order ;\n i ++ ) lsp [ i ] = 2.0f * cos ( lsp [ i ] ) ;\n av_dlog ( NULL , \"floor0 synth: map_size = %\" PRIu32 \";\n m = %d;\n wstep = %f\\n\" , vf -> map_size [ blockflag ] , order , wstep ) ;\n i = 0 ;\n while ( i < vf -> map_size [ blockflag ] ) {\n int j , iter_cond = vf -> map [ blockflag ] [ i ] ;\n float p = 0.5f ;\n float q = 0.5f ;\n float two_cos_w = 2.0f * cos ( wstep * iter_cond ) ;\n for ( j = 0 ;\n j + 1 < order ;\n j += 2 ) {\n q *= lsp [ j ] - two_cos_w ;\n p *= lsp [ j + 1 ] - two_cos_w ;\n }\n if ( j == order ) {\n p *= p * ( 2.0f - two_cos_w ) ;\n q *= q * ( 2.0f + two_cos_w ) ;\n }\n else {\n q *= two_cos_w - lsp [ j ] ;\n p *= p * ( 4.f - two_cos_w * two_cos_w ) ;\n q *= q ;\n }\n q = exp ( ( ( ( amplitude * vf -> amplitude_offset ) / ( ( ( 1 << vf -> amplitude_bits ) - 1 ) * sqrt ( p + q ) ) ) - vf -> amplitude_offset ) * .11512925f ) ;\n do {\n vec [ i ] = q ;\n ++ i ;\n }\n while ( vf -> map [ blockflag ] [ i ] == iter_cond ) ;\n }\n }\n }\n else {\n return 1 ;\n }\n av_dlog ( NULL , \" Floor0 decoded\\n\" ) ;\n return 0 ;\n }"}
{"idx": 12313, "target": 1, "func": "static int dissect_h225_EnumeratedParameter ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 830 \"./asn1/h225/h225.cnf\" gef_ctx_t * parent_gefx ;\n parent_gefx = gef_ctx_get ( actx -> private_data ) ;\n actx -> private_data = gef_ctx_alloc ( parent_gefx , NULL ) ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_EnumeratedParameter , EnumeratedParameter_sequence ) ;\n # line 835 \"./asn1/h225/h225.cnf\" actx -> private_data = parent_gefx ;\n return offset ;\n }"}
{"idx": 12314, "target": 0, "func": "static void ber_populate_list ( const gchar * table_name _U_ , decode_as_add_to_list_func add_to_list , gpointer ui_element ) {\n struct ber_decode_as_populate populate ;\n populate . add_to_list = add_to_list ;\n populate . ui_element = ui_element ;\n ber_decode_as_foreach ( decode_ber_add_to_list , & populate ) ;\n }"}
{"idx": 12315, "target": 1, "func": "static void process_tree ( struct rev_info * revs , struct tree * tree , show_object_fn show , struct name_path * path , struct strbuf * base , const char * name , void * cb_data ) {\n struct object * obj = & tree -> object ;\n struct tree_desc desc ;\n struct name_entry entry ;\n struct name_path me ;\n enum interesting match = revs -> diffopt . pathspec . nr == 0 ? all_entries_interesting : entry_not_interesting ;\n int baselen = base -> len ;\n if ( ! revs -> tree_objects ) return ;\n if ( ! obj ) die ( \"bad tree object\" ) ;\n if ( obj -> flags & ( UNINTERESTING | SEEN ) ) return ;\n if ( parse_tree_gently ( tree , revs -> ignore_missing_links ) < 0 ) {\n if ( revs -> ignore_missing_links ) return ;\n die ( \"bad tree object %s\" , oid_to_hex ( & obj -> oid ) ) ;\n }\n obj -> flags |= SEEN ;\n show ( obj , path , name , cb_data ) ;\n me . up = path ;\n me . elem = name ;\n me . elem_len = strlen ( name ) ;\n if ( ! match ) {\n strbuf_addstr ( base , name ) ;\n if ( base -> len ) strbuf_addch ( base , '/' ) ;\n }\n init_tree_desc ( & desc , tree -> buffer , tree -> size ) ;\n while ( tree_entry ( & desc , & entry ) ) {\n if ( match != all_entries_interesting ) {\n match = tree_entry_interesting ( & entry , base , 0 , & revs -> diffopt . pathspec ) ;\n if ( match == all_entries_not_interesting ) break ;\n if ( match == entry_not_interesting ) continue ;\n }\n if ( S_ISDIR ( entry . mode ) ) process_tree ( revs , lookup_tree ( entry . sha1 ) , show , & me , base , entry . path , cb_data ) ;\n else if ( S_ISGITLINK ( entry . mode ) ) process_gitlink ( revs , entry . sha1 , show , & me , entry . path , cb_data ) ;\n else process_blob ( revs , lookup_blob ( entry . sha1 ) , show , & me , entry . path , cb_data ) ;\n }\n strbuf_setlen ( base , baselen ) ;\n free_tree_buffer ( tree ) ;\n }"}
{"idx": 12316, "target": 0, "func": "static TABLE * GetTable ( cmsIT8 * it8 ) {\n if ( ( it8 -> nTable >= it8 -> TablesCount ) ) {\n SynError ( it8 , \"Table %d out of sequence\" , it8 -> nTable ) ;\n return it8 -> Tab ;\n }\n return it8 -> Tab + it8 -> nTable ;\n }"}
{"idx": 12317, "target": 0, "func": "void hb_set_subtract ( hb_set_t * set , const hb_set_t * other ) {\n set -> subtract ( other ) ;\n }"}
{"idx": 12318, "target": 0, "func": "static void at1_imdct ( AT1Ctx * q , float * spec , float * out , int nbits , int rev_spec ) {\n FFTContext * mdct_context = & q -> mdct_ctx [ nbits - 5 - ( nbits > 6 ) ] ;\n int transf_size = 1 << nbits ;\n if ( rev_spec ) {\n int i ;\n for ( i = 0 ;\n i < transf_size / 2 ;\n i ++ ) FFSWAP ( float , spec [ i ] , spec [ transf_size - 1 - i ] ) ;\n }\n mdct_context -> imdct_half ( mdct_context , out , spec ) ;\n }"}
{"idx": 12319, "target": 0, "func": "static void dump_hex_printable ( const void * data , size_t len ) {\n const char * cdata ;\n const char * rowstart ;\n size_t idx ;\n size_t rowlen ;\n u_char uch ;\n cdata = data ;\n while ( len > 0 ) {\n rowstart = cdata ;\n rowlen = min ( 16 , len ) ;\n for ( idx = 0 ;\n idx < rowlen ;\n idx ++ ) {\n uch = * ( cdata ++ ) ;\n printf ( \"%02x \" , uch ) ;\n }\n for ( ;\n idx < 16 ;\n idx ++ ) printf ( \" \" ) ;\n cdata = rowstart ;\n for ( idx = 0 ;\n idx < rowlen ;\n idx ++ ) {\n uch = * ( cdata ++ ) ;\n printf ( \"%c\" , ( isprint ( uch ) ) ? uch : '.' ) ;\n }\n printf ( \"\\n\" ) ;\n len -= rowlen ;\n }\n }"}
{"idx": 12320, "target": 0, "func": "static void generate_json_true ( FBuffer * buffer , VALUE Vstate , JSON_Generator_State * state , VALUE obj ) {\n fbuffer_append ( buffer , \"true\" , 4 ) ;\n }"}
{"idx": 12321, "target": 0, "func": "void * xmlHashQLookup3 ( xmlHashTablePtr table , const xmlChar * prefix , const xmlChar * name , const xmlChar * prefix2 , const xmlChar * name2 , const xmlChar * prefix3 , const xmlChar * name3 ) {\n unsigned long key ;\n xmlHashEntryPtr entry ;\n if ( table == NULL ) return ( NULL ) ;\n if ( name == NULL ) return ( NULL ) ;\n key = xmlHashComputeQKey ( table , prefix , name , prefix2 , name2 , prefix3 , name3 ) ;\n if ( table -> table [ key ] . valid == 0 ) return ( NULL ) ;\n for ( entry = & ( table -> table [ key ] ) ;\n entry != NULL ;\n entry = entry -> next ) {\n if ( ( xmlStrQEqual ( prefix , name , entry -> name ) ) && ( xmlStrQEqual ( prefix2 , name2 , entry -> name2 ) ) && ( xmlStrQEqual ( prefix3 , name3 , entry -> name3 ) ) ) return ( entry -> payload ) ;\n }\n return ( NULL ) ;\n }"}
{"idx": 12322, "target": 0, "func": "static char * xps_parse_glyph_metrics ( char * s , float * advance , float * uofs , float * vofs ) {\n if ( * s == ',' ) s = xps_parse_real_num ( s + 1 , advance ) ;\n if ( * s == ',' ) s = xps_parse_real_num ( s + 1 , uofs ) ;\n if ( * s == ',' ) s = xps_parse_real_num ( s + 1 , vofs ) ;\n return s ;\n }"}
{"idx": 12323, "target": 0, "func": "static gboolean process_packet_data ( struct wtap_pkthdr * phdr , Buffer * target , guint8 * buffer , guint record_len , k12_t * k12 , int * err , gchar * * err_info ) {\n guint32 type ;\n guint buffer_offset ;\n guint64 ts ;\n guint32 length ;\n guint32 extra_len ;\n guint32 src_id ;\n k12_src_desc_t * src_desc ;\n type = pntoh32 ( buffer + K12_RECORD_TYPE ) ;\n buffer_offset = ( type == K12_REC_D0020 ) ? K12_PACKET_FRAME_D0020 : K12_PACKET_FRAME ;\n if ( buffer_offset > record_len ) {\n * err = WTAP_ERR_BAD_FILE ;\n * err_info = g_strdup_printf ( \"k12: Frame data offset %u > record length %u\" , buffer_offset , record_len ) ;\n return FALSE ;\n }\n length = pntoh32 ( buffer + K12_RECORD_FRAME_LEN ) & 0x00001FFF ;\n if ( length > record_len - buffer_offset ) {\n * err = WTAP_ERR_BAD_FILE ;\n * err_info = g_strdup_printf ( \"k12: Frame length %u > record frame data %u\" , length , record_len - buffer_offset ) ;\n return FALSE ;\n }\n phdr -> rec_type = REC_TYPE_PACKET ;\n phdr -> presence_flags = WTAP_HAS_TS ;\n ts = pntoh64 ( buffer + K12_PACKET_TIMESTAMP ) ;\n phdr -> ts . secs = ( guint32 ) ( ( ts / 2000000 ) + 631152000 ) ;\n phdr -> ts . nsecs = ( guint32 ) ( ( ts % 2000000 ) * 500 ) ;\n phdr -> len = phdr -> caplen = length ;\n ws_buffer_assure_space ( target , length ) ;\n memcpy ( ws_buffer_start_ptr ( target ) , buffer + buffer_offset , length ) ;\n extra_len = record_len - buffer_offset - length ;\n ws_buffer_assure_space ( & ( k12 -> extra_info ) , extra_len ) ;\n memcpy ( ws_buffer_start_ptr ( & ( k12 -> extra_info ) ) , buffer + buffer_offset + length , extra_len ) ;\n phdr -> pseudo_header . k12 . extra_info = ( guint8 * ) ws_buffer_start_ptr ( & ( k12 -> extra_info ) ) ;\n phdr -> pseudo_header . k12 . extra_length = extra_len ;\n src_id = pntoh32 ( buffer + K12_RECORD_SRC_ID ) ;\n K12_DBG ( 5 , ( \"process_packet_data: src_id=%.8x\" , src_id ) ) ;\n phdr -> pseudo_header . k12 . input = src_id ;\n if ( ! ( src_desc = ( k12_src_desc_t * ) g_hash_table_lookup ( k12 -> src_by_id , GUINT_TO_POINTER ( src_id ) ) ) ) {\n src_desc = ( k12_src_desc_t * ) g_hash_table_lookup ( k12 -> src_by_id , GUINT_TO_POINTER ( src_id & K12_RECORD_SRC_ID_MASK ) ) ;\n }\n if ( src_desc ) {\n K12_DBG ( 5 , ( \"process_packet_data: input_name='%s' stack_file='%s' type=%x\" , src_desc -> input_name , src_desc -> stack_file , src_desc -> input_type ) ) ;\n phdr -> pseudo_header . k12 . input_name = src_desc -> input_name ;\n phdr -> pseudo_header . k12 . stack_file = src_desc -> stack_file ;\n phdr -> pseudo_header . k12 . input_type = src_desc -> input_type ;\n switch ( src_desc -> input_type ) {\n case K12_PORT_ATMPVC : if ( ( long ) ( buffer_offset + length + K12_PACKET_OFFSET_CID ) < record_len ) {\n phdr -> pseudo_header . k12 . input_info . atm . vp = pntoh16 ( buffer + buffer_offset + length + K12_PACKET_OFFSET_VP ) ;\n phdr -> pseudo_header . k12 . input_info . atm . vc = pntoh16 ( buffer + buffer_offset + length + K12_PACKET_OFFSET_VC ) ;\n phdr -> pseudo_header . k12 . input_info . atm . cid = * ( ( unsigned char * ) ( buffer + buffer_offset + length + K12_PACKET_OFFSET_CID ) ) ;\n break ;\n }\n default : memcpy ( & ( phdr -> pseudo_header . k12 . input_info ) , & ( src_desc -> input_info ) , sizeof ( src_desc -> input_info ) ) ;\n break ;\n }\n }\n else {\n K12_DBG ( 5 , ( \"process_packet_data: NO SRC_RECORD FOUND\" ) ) ;\n memset ( & ( phdr -> pseudo_header . k12 ) , 0 , sizeof ( phdr -> pseudo_header . k12 ) ) ;\n phdr -> pseudo_header . k12 . input_name = \"unknown port\" ;\n phdr -> pseudo_header . k12 . stack_file = \"unknown stack file\" ;\n }\n phdr -> pseudo_header . k12 . input = src_id ;\n phdr -> pseudo_header . k12 . stuff = k12 ;\n return TRUE ;\n }"}
{"idx": 12324, "target": 0, "func": "static void maybe_die ( int error_num , const char * fmt_reason , ... ) {\n char buffer [ 1000 ] ;\n va_list args ;\n va_start ( args , fmt_reason ) ;\n my_vsnprintf ( buffer , sizeof ( buffer ) , fmt_reason , args ) ;\n va_end ( args ) ;\n fprintf ( stderr , \"%s: %s\\n\" , my_progname_short , buffer ) ;\n fflush ( stderr ) ;\n maybe_exit ( error_num ) ;\n }"}
{"idx": 12325, "target": 0, "func": "static const char * add_rule ( cmd_parms * cmd , directory_config * dcfg , int type , const char * p1 , const char * p2 , const char * p3 ) {\n char * my_error_msg = NULL ;\n char * rid = NULL ;\n msre_rule * rule = NULL ;\n extern msc_engine * modsecurity ;\n int offset = 0 ;\n # ifdef DEBUG_CONF ap_log_perror ( APLOG_MARK , APLOG_STARTUP | APLOG_NOERRNO , 0 , cmd -> pool , \"Rule: type=%d p1='%s' p2='%s' p3='%s'\" , type , p1 , p2 , p3 ) ;\n # endif if ( ( dcfg -> ruleset == NULL ) || ( dcfg -> ruleset == NOT_SET_P ) ) {\n dcfg -> ruleset = msre_ruleset_create ( modsecurity -> msre , cmd -> pool ) ;\n if ( dcfg -> ruleset == NULL ) return FATAL_ERROR ;\n }\n switch ( type ) {\n # if defined ( WITH_LUA ) case RULE_TYPE_LUA : rule = msre_rule_lua_create ( dcfg -> ruleset , cmd -> directive -> filename , cmd -> directive -> line_num , p1 , p2 , & my_error_msg ) ;\n break ;\n # endif default : rule = msre_rule_create ( dcfg -> ruleset , type , cmd -> directive -> filename , cmd -> directive -> line_num , p1 , p2 , p3 , & my_error_msg ) ;\n break ;\n }\n if ( rule == NULL ) {\n return my_error_msg ;\n }\n if ( # if defined ( WITH_LUA ) type != RULE_TYPE_LUA && # endif ( dcfg -> tmp_chain_starter == NULL ) ) if ( rule -> actionset == NULL ) return \"ModSecurity: Rules must have at least id action\" ;\n if ( rule -> actionset != NULL && ( dcfg -> tmp_chain_starter == NULL ) ) {\n if ( rule -> actionset -> id == NOT_SET_P # if defined ( WITH_LUA ) && ( type != RULE_TYPE_LUA ) # endif ) return \"ModSecurity: No action id present within the rule\" ;\n # if defined ( WITH_LUA ) if ( type != RULE_TYPE_LUA ) # endif {\n rid = apr_hash_get ( dcfg -> rule_id_htab , rule -> actionset -> id , APR_HASH_KEY_STRING ) ;\n if ( rid != NULL ) {\n return \"ModSecurity: Found another rule with the same id\" ;\n }\n else {\n apr_hash_set ( dcfg -> rule_id_htab , apr_pstrdup ( dcfg -> mp , rule -> actionset -> id ) , APR_HASH_KEY_STRING , apr_pstrdup ( dcfg -> mp , \"1\" ) ) ;\n }\n }\n }\n if ( dcfg -> tmp_default_actionset == NULL ) {\n dcfg -> tmp_default_actionset = msre_actionset_create_default ( modsecurity -> msre ) ;\n if ( dcfg -> tmp_default_actionset == NULL ) return FATAL_ERROR ;\n }\n if ( ( rule -> actionset != NULL ) && ( dcfg -> tmp_chain_starter != NULL ) ) {\n if ( rule -> actionset -> intercept_action != NOT_SET ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Disruptive actions can only \" \"be specified by chain starter rules.\" ) ;\n }\n if ( rule -> actionset -> skip_after != NOT_SET_P ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: SkipAfter actions can only \" \"be specified by chain starter rules.\" ) ;\n }\n if ( rule -> actionset -> phase != NOT_SET ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Execution phases can only be \" \"specified by chain starter rules.\" ) ;\n }\n if ( ( rule -> actionset -> id != NOT_SET_P ) || ( rule -> actionset -> rev != NOT_SET_P ) || ( rule -> actionset -> msg != NOT_SET_P ) || ( rule -> actionset -> severity != NOT_SET ) || ( rule -> actionset -> version != NOT_SET_P ) || ( rule -> actionset -> accuracy != NOT_SET ) || ( rule -> actionset -> maturity != NOT_SET ) || ( rule -> actionset -> logdata != NOT_SET_P ) ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Metadata actions (id, rev, msg, tag, severity, ver, accuracy, maturity, logdata) \" \" can only be specified by chain starter rules.\" ) ;\n }\n if ( rule -> actionset -> skip_count != NOT_SET ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: The skip action can only be used \" \" by chain starter rules. \" ) ;\n }\n }\n rule -> actionset = msre_actionset_merge ( modsecurity -> msre , dcfg -> tmp_default_actionset , rule -> actionset , 1 ) ;\n rule -> actionset -> parent_intercept_action_rec = dcfg -> tmp_default_actionset -> intercept_action_rec ;\n rule -> actionset -> parent_intercept_action = dcfg -> tmp_default_actionset -> intercept_action ;\n if ( ( rule -> actionset != NULL ) && ( rule -> actionset -> phase == PHASE_LOGGING ) && ( rule -> actionset -> intercept_action != ACTION_ALLOW ) && ( rule -> actionset -> intercept_action != ACTION_ALLOW_REQUEST ) && ( rule -> actionset -> intercept_action != ACTION_NONE ) ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Disruptive actions \" \"cannot be specified in the logging phase.\" ) ;\n }\n if ( dcfg -> tmp_chain_starter != NULL ) {\n rule -> chain_starter = dcfg -> tmp_chain_starter ;\n rule -> actionset -> phase = rule -> chain_starter -> actionset -> phase ;\n }\n if ( rule -> actionset -> is_chained != 1 ) {\n dcfg -> tmp_chain_starter = NULL ;\n }\n else {\n if ( dcfg -> tmp_chain_starter == NULL ) {\n dcfg -> tmp_chain_starter = rule ;\n }\n }\n if ( ( rule -> op_name != NULL ) && ( strcasecmp ( rule -> op_name , \"inspectFile\" ) == 0 ) ) {\n dcfg -> upload_validates_files = 1 ;\n }\n if ( dcfg -> tmp_rule_placeholders == NULL ) {\n dcfg -> tmp_rule_placeholders = apr_table_make ( cmd -> pool , 10 ) ;\n if ( dcfg -> tmp_rule_placeholders == NULL ) return FATAL_ERROR ;\n }\n if ( rule -> actionset -> skip_after != NOT_SET_P ) {\n char * tmp_id = apr_pstrdup ( cmd -> pool , rule -> actionset -> skip_after ) ;\n apr_table_setn ( dcfg -> tmp_rule_placeholders , tmp_id , tmp_id ) ;\n # ifdef DEBUG_CONF ap_log_perror ( APLOG_MARK , APLOG_STARTUP | APLOG_NOERRNO , 0 , cmd -> pool , \"Watching for skipafter target rule id=\\\"%s\\\".\" , tmp_id ) ;\n # endif }\n # ifdef DEBUG_CONF ap_log_perror ( APLOG_MARK , APLOG_STARTUP | APLOG_NOERRNO , 0 , cmd -> pool , \"Adding rule %pp phase=%d id=\\\"%s\\\".\" , rule , rule -> actionset -> phase , ( rule -> actionset -> id == NOT_SET_P ? \"(none)\" : rule -> actionset -> id ) ) ;\n # endif if ( msre_ruleset_rule_add ( dcfg -> ruleset , rule , rule -> actionset -> phase ) < 0 ) {\n return \"Internal Error: Failed to add rule to the ruleset.\" ;\n }\n if ( ( rule -> actionset -> id != NULL ) && apr_table_get ( dcfg -> tmp_rule_placeholders , rule -> actionset -> id ) ) {\n msre_rule * phrule = apr_palloc ( rule -> ruleset -> mp , sizeof ( msre_rule ) ) ;\n if ( phrule == NULL ) {\n return FATAL_ERROR ;\n }\n # ifdef DEBUG_CONF ap_log_perror ( APLOG_MARK , APLOG_STARTUP | APLOG_NOERRNO , 0 , cmd -> pool , \"Adding placeholder %pp for rule %pp id=\\\"%s\\\".\" , phrule , rule , rule -> actionset -> id ) ;\n # endif memcpy ( phrule , rule , sizeof ( msre_rule ) ) ;\n phrule -> placeholder = RULE_PH_SKIPAFTER ;\n if ( msre_ruleset_rule_add ( dcfg -> ruleset , phrule , phrule -> actionset -> phase ) < 0 ) {\n return \"Internal Error: Failed to add placeholder to the ruleset.\" ;\n }\n apr_table_unset ( dcfg -> tmp_rule_placeholders , rule -> actionset -> id ) ;\n }\n rule -> unparsed = msre_rule_generate_unparsed ( dcfg -> ruleset -> mp , rule , NULL , NULL , NULL ) ;\n return NULL ;\n }"}
{"idx": 12326, "target": 0, "func": "int main ( int argc , char * argv [ ] ) {\n return ntpqmain ( argc , argv ) ;\n }"}
{"idx": 12327, "target": 0, "func": "static void aw_pulse_set1 ( WMAVoiceContext * s , GetBitContext * gb , int block_idx , AMRFixed * fcb ) {\n int val = get_bits ( gb , 12 - 2 * ( s -> aw_idx_is_ext && ! block_idx ) ) ;\n float v ;\n if ( s -> aw_n_pulses [ block_idx ] > 0 ) {\n int n , v_mask , i_mask , sh , n_pulses ;\n if ( s -> aw_pulse_range == 24 ) {\n n_pulses = 3 ;\n v_mask = 8 ;\n i_mask = 7 ;\n sh = 4 ;\n }\n else {\n n_pulses = 4 ;\n v_mask = 4 ;\n i_mask = 3 ;\n sh = 3 ;\n }\n for ( n = n_pulses - 1 ;\n n >= 0 ;\n n -- , val >>= sh ) {\n fcb -> y [ fcb -> n ] = ( val & v_mask ) ? - 1.0 : 1.0 ;\n fcb -> x [ fcb -> n ] = ( val & i_mask ) * n_pulses + n + s -> aw_first_pulse_off [ block_idx ] ;\n while ( fcb -> x [ fcb -> n ] < 0 ) fcb -> x [ fcb -> n ] += fcb -> pitch_lag ;\n if ( fcb -> x [ fcb -> n ] < MAX_FRAMESIZE / 2 ) fcb -> n ++ ;\n }\n }\n else {\n int num2 = ( val & 0x1FF ) >> 1 , delta , idx ;\n if ( num2 < 1 * 79 ) {\n delta = 1 ;\n idx = num2 + 1 ;\n }\n else if ( num2 < 2 * 78 ) {\n delta = 3 ;\n idx = num2 + 1 - 1 * 77 ;\n }\n else if ( num2 < 3 * 77 ) {\n delta = 5 ;\n idx = num2 + 1 - 2 * 76 ;\n }\n else {\n delta = 7 ;\n idx = num2 + 1 - 3 * 75 ;\n }\n v = ( val & 0x200 ) ? - 1.0 : 1.0 ;\n fcb -> no_repeat_mask |= 3 << fcb -> n ;\n fcb -> x [ fcb -> n ] = idx - delta ;\n fcb -> y [ fcb -> n ] = v ;\n fcb -> x [ fcb -> n + 1 ] = idx ;\n fcb -> y [ fcb -> n + 1 ] = ( val & 1 ) ? - v : v ;\n fcb -> n += 2 ;\n }\n }"}
{"idx": 12328, "target": 0, "func": "static int get_and_cmp_point ( const char * name , const char * mpi_x_string , const char * mpi_y_string , const char * desc , gcry_ctx_t ctx ) {\n gcry_mpi_point_t point ;\n gcry_mpi_t x , y , z ;\n int result = 0 ;\n point = gcry_mpi_ec_get_point ( name , ctx , 1 ) ;\n if ( ! point ) {\n fail ( \"error getting point parameter '%s' of curve '%s'\\n\" , name , desc ) ;\n return 1 ;\n }\n if ( debug ) print_point ( name , point ) ;\n x = gcry_mpi_new ( 0 ) ;\n y = gcry_mpi_new ( 0 ) ;\n z = gcry_mpi_new ( 0 ) ;\n gcry_mpi_point_snatch_get ( x , y , z , point ) ;\n if ( cmp_mpihex ( x , mpi_x_string ) ) {\n fail ( \"x coordinate of '%s' of curve '%s' does not match\\n\" , name , desc ) ;\n result = 1 ;\n }\n if ( cmp_mpihex ( y , mpi_y_string ) ) {\n fail ( \"y coordinate of '%s' of curve '%s' does not match\\n\" , name , desc ) ;\n result = 1 ;\n }\n if ( cmp_mpihex ( z , \"01\" ) ) {\n fail ( \"z coordinate of '%s' of curve '%s' is not 1\\n\" , name , desc ) ;\n result = 1 ;\n }\n gcry_mpi_release ( x ) ;\n gcry_mpi_release ( y ) ;\n gcry_mpi_release ( z ) ;\n return result ;\n }"}
{"idx": 12329, "target": 0, "func": "static void check_get_params ( void ) {\n gcry_sexp_t param ;\n const char * name ;\n param = gcry_pk_get_param ( GCRY_PK_ECDSA , sample_key_1_curve ) ;\n if ( ! param ) fail ( \"error gerring parameters for `%s'\\n\" , sample_key_1_curve ) ;\n name = gcry_pk_get_curve ( param , 0 , NULL ) ;\n if ( ! name ) fail ( \"get_param: curve name not found for sample_key_1\\n\" ) ;\n else if ( strcmp ( name , sample_key_1_curve ) ) fail ( \"get_param: expected curve name %s but got %s for sample_key_1\\n\" , sample_key_1_curve , name ) ;\n gcry_sexp_release ( param ) ;\n param = gcry_pk_get_param ( GCRY_PK_ECDSA , sample_key_2_curve ) ;\n if ( ! param ) fail ( \"error gerring parameters for `%s'\\n\" , sample_key_2_curve ) ;\n name = gcry_pk_get_curve ( param , 0 , NULL ) ;\n if ( ! name ) fail ( \"get_param: curve name not found for sample_key_2\\n\" ) ;\n else if ( strcmp ( name , sample_key_2_curve ) ) fail ( \"get_param: expected curve name %s but got %s for sample_key_2\\n\" , sample_key_2_curve , name ) ;\n gcry_sexp_release ( param ) ;\n }"}
{"idx": 12330, "target": 0, "func": "static void proto_tree_set_string ( field_info * fi , const char * value ) {\n if ( value ) {\n fvalue_set_string ( & fi -> value , value ) ;\n }\n else {\n fvalue_set_string ( & fi -> value , \"[ Null ]\" ) ;\n }\n }"}
{"idx": 12331, "target": 0, "func": "void TSUuidDestroy ( TSUuid uuid ) {\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) uuid ) == TS_SUCCESS ) ;\n delete ( ATSUuid * ) uuid ;\n }"}
{"idx": 12332, "target": 0, "func": "static void gen_vector_table24 ( TrueMotion1Context * s , const uint8_t * sel_vector_table ) {\n int len , i , j ;\n unsigned char delta_pair ;\n for ( i = 0 ;\n i < 1024 ;\n i += 4 ) {\n len = * sel_vector_table ++ / 2 ;\n for ( j = 0 ;\n j < len ;\n j ++ ) {\n delta_pair = * sel_vector_table ++ ;\n s -> y_predictor_table [ i + j ] = 0xfffffffe & make_ydt24_entry ( delta_pair >> 4 , delta_pair & 0xf , s -> ydt ) ;\n s -> c_predictor_table [ i + j ] = 0xfffffffe & make_cdt24_entry ( delta_pair >> 4 , delta_pair & 0xf , s -> cdt ) ;\n s -> fat_y_predictor_table [ i + j ] = 0xfffffffe & make_ydt24_entry ( delta_pair >> 4 , delta_pair & 0xf , s -> fat_ydt ) ;\n s -> fat_c_predictor_table [ i + j ] = 0xfffffffe & make_cdt24_entry ( delta_pair >> 4 , delta_pair & 0xf , s -> fat_cdt ) ;\n }\n s -> y_predictor_table [ i + ( j - 1 ) ] |= 1 ;\n s -> c_predictor_table [ i + ( j - 1 ) ] |= 1 ;\n s -> fat_y_predictor_table [ i + ( j - 1 ) ] |= 1 ;\n s -> fat_c_predictor_table [ i + ( j - 1 ) ] |= 1 ;\n }\n }"}
{"idx": 12333, "target": 0, "func": "static int dissect_IFPPacket_PDU ( tvbuff_t * tvb _U_ , packet_info * pinfo _U_ , proto_tree * tree _U_ , void * data _U_ ) {\n int offset = 0 ;\n asn1_ctx_t asn1_ctx ;\n asn1_ctx_init ( & asn1_ctx , ASN1_ENC_PER , TRUE , pinfo ) ;\n offset = dissect_t38_IFPPacket ( tvb , offset , & asn1_ctx , tree , hf_t38_IFPPacket_PDU ) ;\n offset += 7 ;\n offset >>= 3 ;\n return offset ;\n }"}
{"idx": 12334, "target": 0, "func": "int qemuMonitorTextBlockResize ( qemuMonitorPtr mon , const char * device , unsigned long long size ) {\n char * cmd = NULL ;\n char * reply = NULL ;\n int ret = - 1 ;\n if ( virAsprintf ( & cmd , \"block_resize %s %llu\" , device , VIR_DIV_UP ( size , 1024 ) ) < 0 ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , _ ( \"failed to resize block\" ) ) ;\n goto cleanup ;\n }\n if ( strstr ( reply , \"unknown command:\" ) ) {\n ret = - 2 ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( cmd ) ;\n VIR_FREE ( reply ) ;\n return ret ;\n }"}
{"idx": 12335, "target": 0, "func": "static gid_t add_supp_group ( const char * name , gid_t * * groups , size_t * ngroups ) {\n struct group * gr ;\n if ( * ngroups >= NGROUPS_MAX ) errx ( EXIT_FAILURE , P_ ( \"specifying more than %d supplemental group is not possible\" , \"specifying more than %d supplemental groups is not possible\" , NGROUPS_MAX - 1 ) , NGROUPS_MAX - 1 ) ;\n gr = getgrnam ( name ) ;\n if ( ! gr ) errx ( EXIT_FAILURE , _ ( \"group %s does not exist\" ) , name ) ;\n * groups = xrealloc ( * groups , sizeof ( gid_t ) * ( * ngroups + 1 ) ) ;\n ( * groups ) [ * ngroups ] = gr -> gr_gid ;\n ( * ngroups ) ++ ;\n return gr -> gr_gid ;\n }"}
{"idx": 12336, "target": 0, "func": "static void gst_asf_demux_process_queued_extended_stream_objects ( GstASFDemux * demux ) {\n GSList * l ;\n guint i ;\n GST_LOG_OBJECT ( demux , \"%u queued extended stream properties objects\" , g_slist_length ( demux -> ext_stream_props ) ) ;\n for ( l = demux -> ext_stream_props , i = 0 ;\n l != NULL ;\n l = l -> next , ++ i ) {\n GstBuffer * buf = GST_BUFFER ( l -> data ) ;\n GstMapInfo map ;\n gst_buffer_map ( buf , & map , GST_MAP_READ ) ;\n GST_LOG_OBJECT ( demux , \"parsing ext. stream properties object #%u\" , i ) ;\n gst_asf_demux_process_ext_stream_props ( demux , map . data , map . size ) ;\n gst_buffer_unmap ( buf , & map ) ;\n gst_buffer_unref ( buf ) ;\n }\n g_slist_free ( demux -> ext_stream_props ) ;\n demux -> ext_stream_props = NULL ;\n }"}
{"idx": 12337, "target": 0, "func": "static void U_CALLCONV T_UConverter_toUnicode_UTF32_BE ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n const unsigned char * mySource = ( unsigned char * ) args -> source ;\n UChar * myTarget = args -> target ;\n const unsigned char * sourceLimit = ( unsigned char * ) args -> sourceLimit ;\n const UChar * targetLimit = args -> targetLimit ;\n unsigned char * toUBytes = args -> converter -> toUBytes ;\n uint32_t ch , i ;\n if ( args -> converter -> toUnicodeStatus && myTarget < targetLimit ) {\n i = args -> converter -> toULength ;\n args -> converter -> toULength = 0 ;\n ch = args -> converter -> toUnicodeStatus - 1 ;\n args -> converter -> toUnicodeStatus = 0 ;\n goto morebytes ;\n }\n while ( mySource < sourceLimit && myTarget < targetLimit ) {\n i = 0 ;\n ch = 0 ;\n morebytes : while ( i < sizeof ( uint32_t ) ) {\n if ( mySource < sourceLimit ) {\n ch = ( ch << 8 ) | ( uint8_t ) ( * mySource ) ;\n toUBytes [ i ++ ] = ( char ) * ( mySource ++ ) ;\n }\n else {\n args -> converter -> toUnicodeStatus = ch + 1 ;\n args -> converter -> toULength = ( int8_t ) i ;\n goto donefornow ;\n }\n }\n if ( ch <= MAXIMUM_UTF && ! U_IS_SURROGATE ( ch ) ) {\n if ( ch <= MAXIMUM_UCS2 ) {\n * ( myTarget ++ ) = ( UChar ) ch ;\n }\n else {\n * ( myTarget ++ ) = U16_LEAD ( ch ) ;\n ch = U16_TRAIL ( ch ) ;\n if ( myTarget < targetLimit ) {\n * ( myTarget ++ ) = ( UChar ) ch ;\n }\n else {\n args -> converter -> UCharErrorBuffer [ 0 ] = ( UChar ) ch ;\n args -> converter -> UCharErrorBufferLength = 1 ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n }\n else {\n args -> converter -> toULength = ( int8_t ) i ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n }\n donefornow : if ( mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS ( * err ) ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n args -> target = myTarget ;\n args -> source = ( const char * ) mySource ;\n }"}
{"idx": 12338, "target": 0, "func": "static int dissect_bmControl ( proto_tree * tree , tvbuff_t * tvb , int offset , gint ett_subtree , const int * * bm_items ) {\n guint8 bm_size = 0 ;\n bm_size = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_usb_vid_bControlSize , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n ++ offset ;\n if ( bm_size > 0 ) {\n proto_tree_add_bitmask_len ( tree , tvb , offset , bm_size , hf_usb_vid_bmControl , ett_subtree , bm_items , & ei_usb_vid_bitmask_len , ENC_LITTLE_ENDIAN ) ;\n offset += bm_size ;\n }\n return offset ;\n }"}
{"idx": 12339, "target": 0, "func": "static int dissect_rsl_ie_smscb_inf ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_item * ti ;\n proto_tree * ie_tree ;\n tvbuff_t * next_tvb ;\n guint length ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_SMSCB_INF ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_ie_smscb_inf , & ti , \"SMSCB Information IE \" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n length = tvb_get_guint8 ( tvb , offset ) ;\n proto_item_set_len ( ti , length + 2 ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_length , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n next_tvb = tvb_new_subset_length ( tvb , offset , length ) ;\n call_dissector ( gsm_cbch_handle , next_tvb , pinfo , top_tree ) ;\n offset = offset + length ;\n return offset ;\n }"}
{"idx": 12340, "target": 0, "func": "void do_info_qtree ( Monitor * mon ) {\n if ( main_system_bus ) qbus_print ( mon , main_system_bus , 0 ) ;\n }"}
{"idx": 12341, "target": 0, "func": "unsigned int vp9_variance ## W ## x ## H ## _c ( const uint8_t * a , int a_stride , const uint8_t * b , int b_stride , unsigned int * sse ) {\n int sum ;\n variance ( a , a_stride , b , b_stride , W , H , sse , & sum ) ;\n return * sse - ( ( ( int64_t ) sum * sum ) / ( W * H ) ) ;\n \\ }\n # define SUBPIX_VAR ( W , H ) unsigned int vp9_sub_pixel_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp2 , W , dst , dst_stride , sse ) ;\n \\ }\n # define SUBPIX_AVG_VAR ( W , H ) unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 ) VAR ( 8 , 4 ) SUBPIX_VAR ( 8 , 4 ) SUBPIX_AVG_VAR ( 8 , 4 ) VAR ( 8 , 8 ) SUBPIX_VAR ( 8 , 8 ) SUBPIX_AVG_VAR ( 8 , 8 ) VAR ( 8 , 16 ) SUBPIX_VAR ( 8 , 16 ) SUBPIX_AVG_VAR ( 8 , 16 ) VAR ( 16 , 8 ) SUBPIX_VAR ( 16 , 8 ) SUBPIX_AVG_VAR ( 16 , 8 ) VAR ( 16 , 16 ) SUBPIX_VAR ( 16 , 16 ) SUBPIX_AVG_VAR ( 16 , 16 ) VAR ( 16 , 32 ) SUBPIX_VAR ( 16 , 32 ) SUBPIX_AVG_VAR ( 16 , 32 ) VAR ( 32 , 16 ) SUBPIX_VAR ( 32 , 16 ) SUBPIX_AVG_VAR ( 32 , 16 ) VAR ( 32 , 32 ) SUBPIX_VAR ( 32 , 32 ) SUBPIX_AVG_VAR ( 32 , 32 ) VAR ( 32 , 64 ) SUBPIX_VAR ( 32 , 64 ) SUBPIX_AVG_VAR ( 32 , 64 ) VAR ( 64 , 32 )"}
{"idx": 12342, "target": 0, "func": "static subpicture_t * ParseText ( decoder_t * p_dec , block_t * p_block ) {\n decoder_sys_t * p_sys = p_dec -> p_sys ;\n subpicture_t * p_spu = NULL ;\n char * psz_subtitle = NULL ;\n if ( p_block -> i_pts <= VLC_TS_INVALID ) {\n msg_Warn ( p_dec , \"subtitle without a date\" ) ;\n return NULL ;\n }\n if ( p_block -> i_buffer < 1 ) {\n msg_Warn ( p_dec , \"no subtitle data\" ) ;\n return NULL ;\n }\n psz_subtitle = malloc ( p_block -> i_buffer + 1 ) ;\n if ( psz_subtitle == NULL ) return NULL ;\n memcpy ( psz_subtitle , p_block -> p_buffer , p_block -> i_buffer ) ;\n psz_subtitle [ p_block -> i_buffer ] = '\\0' ;\n if ( p_sys -> iconv_handle == ( vlc_iconv_t ) - 1 ) {\n if ( EnsureUTF8 ( psz_subtitle ) == NULL ) {\n msg_Err ( p_dec , \"failed to convert subtitle encoding.\\n\" \"Try manually setting a character-encoding \" \"before you open the file.\" ) ;\n }\n }\n else {\n if ( p_sys -> b_autodetect_utf8 ) {\n if ( IsUTF8 ( psz_subtitle ) == NULL ) {\n msg_Dbg ( p_dec , \"invalid UTF-8 sequence: \" \"disabling UTF-8 subtitles autodetection\" ) ;\n p_sys -> b_autodetect_utf8 = false ;\n }\n }\n if ( ! p_sys -> b_autodetect_utf8 ) {\n size_t inbytes_left = strlen ( psz_subtitle ) ;\n size_t outbytes_left = 6 * inbytes_left ;\n char * psz_new_subtitle = xmalloc ( outbytes_left + 1 ) ;\n char * psz_convert_buffer_out = psz_new_subtitle ;\n const char * psz_convert_buffer_in = psz_subtitle ;\n size_t ret = vlc_iconv ( p_sys -> iconv_handle , & psz_convert_buffer_in , & inbytes_left , & psz_convert_buffer_out , & outbytes_left ) ;\n * psz_convert_buffer_out ++ = '\\0' ;\n free ( psz_subtitle ) ;\n if ( ( ret == ( size_t ) ( - 1 ) ) || inbytes_left ) {\n free ( psz_new_subtitle ) ;\n msg_Err ( p_dec , \"failed to convert subtitle encoding.\\n\" \"Try manually setting a character-encoding \" \"before you open the file.\" ) ;\n return NULL ;\n }\n psz_subtitle = realloc ( psz_new_subtitle , psz_convert_buffer_out - psz_new_subtitle ) ;\n if ( ! psz_subtitle ) psz_subtitle = psz_new_subtitle ;\n }\n }\n p_spu = decoder_NewSubpictureText ( p_dec ) ;\n if ( ! p_spu ) {\n free ( psz_subtitle ) ;\n return NULL ;\n }\n p_spu -> i_start = p_block -> i_pts ;\n p_spu -> i_stop = p_block -> i_pts + p_block -> i_length ;\n p_spu -> b_ephemer = ( p_block -> i_length == 0 ) ;\n p_spu -> b_absolute = false ;\n subpicture_updater_sys_t * p_spu_sys = p_spu -> updater . p_sys ;\n p_spu_sys -> align = SUBPICTURE_ALIGN_BOTTOM | p_sys -> i_align ;\n p_spu_sys -> text = StripTags ( psz_subtitle ) ;\n if ( var_InheritBool ( p_dec , \"subsdec-formatted\" ) ) p_spu_sys -> html = CreateHtmlSubtitle ( & p_spu_sys -> align , psz_subtitle ) ;\n free ( psz_subtitle ) ;\n return p_spu ;\n }"}
{"idx": 12343, "target": 0, "func": "int ff_h264_parse_sprop_parameter_sets ( AVFormatContext * s , uint8_t * * data_ptr , int * size_ptr , const char * value ) {\n char base64packet [ 1024 ] ;\n uint8_t decoded_packet [ 1024 ] ;\n int packet_size ;\n while ( * value ) {\n char * dst = base64packet ;\n while ( * value && * value != ',' && ( dst - base64packet ) < sizeof ( base64packet ) - 1 ) {\n * dst ++ = * value ++ ;\n }\n * dst ++ = '\\0' ;\n if ( * value == ',' ) value ++ ;\n packet_size = av_base64_decode ( decoded_packet , base64packet , sizeof ( decoded_packet ) ) ;\n if ( packet_size > 0 ) {\n uint8_t * dest = av_realloc ( * data_ptr , packet_size + sizeof ( start_sequence ) + * size_ptr + AV_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( ! dest ) {\n av_log ( s , AV_LOG_ERROR , \"Unable to allocate memory for extradata!\\n\" ) ;\n return AVERROR ( ENOMEM ) ;\n }\n * data_ptr = dest ;\n memcpy ( dest + * size_ptr , start_sequence , sizeof ( start_sequence ) ) ;\n memcpy ( dest + * size_ptr + sizeof ( start_sequence ) , decoded_packet , packet_size ) ;\n memset ( dest + * size_ptr + sizeof ( start_sequence ) + packet_size , 0 , AV_INPUT_BUFFER_PADDING_SIZE ) ;\n * size_ptr += sizeof ( start_sequence ) + packet_size ;\n }\n }\n return 0 ;\n }"}
{"idx": 12344, "target": 0, "func": "static void pdf_run_Tr ( fz_context * ctx , pdf_processor * proc , int render ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_gstate * gstate = pr -> gstate + pr -> gtop ;\n gstate -> text . render = render ;\n }"}
{"idx": 12345, "target": 0, "func": "static guint16 de_tp_ack ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n guchar oct ;\n curr_offset = offset ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n if ( ( oct & 0xF0 ) == 0x80 ) proto_tree_add_uint ( tree , hf_gsm_a_dtap_ack_element , tvb , curr_offset , 1 , oct & 0x01 ) ;\n else proto_tree_add_uint_format_value ( tree , hf_gsm_a_dtap_ack_element , tvb , curr_offset , 1 , 0xFF , \"No acknowledgment element present\" ) ;\n curr_offset += 1 ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 12346, "target": 0, "func": "void vp9_free_context_buffers ( VP9_COMMON * cm ) {\n free_mi ( cm ) ;\n vpx_free ( cm -> last_frame_seg_map ) ;\n cm -> last_frame_seg_map = NULL ;\n vpx_free ( cm -> above_context ) ;\n cm -> above_context = NULL ;\n vpx_free ( cm -> above_seg_context ) ;\n cm -> above_seg_context = NULL ;\n }"}
{"idx": 12347, "target": 0, "func": "TSReturnCode sdk_sanity_check_continuation ( TSCont cont ) {\n if ( ( cont == nullptr ) || ( ( ( INKContInternal * ) cont ) -> m_free_magic == INKCONT_INTERN_MAGIC_DEAD ) ) {\n return TS_ERROR ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 12348, "target": 0, "func": "static int cirrus_bitblt_videotovideo_copy ( CirrusVGAState * s ) {\n if ( blit_is_unsafe ( s , false ) ) return 0 ;\n return cirrus_do_copy ( s , s -> cirrus_blt_dstaddr - s -> vga . start_addr , s -> cirrus_blt_srcaddr - s -> vga . start_addr , s -> cirrus_blt_width , s -> cirrus_blt_height ) ;\n }"}
{"idx": 12349, "target": 0, "func": "void crypto_policy_set_null_cipher_hmac_sha1_80 ( crypto_policy_t * p ) {\n p -> cipher_type = NULL_CIPHER ;\n p -> cipher_key_len = 0 ;\n p -> auth_type = HMAC_SHA1 ;\n p -> auth_key_len = 20 ;\n p -> auth_tag_len = 10 ;\n p -> sec_serv = sec_serv_auth ;\n }"}
{"idx": 12350, "target": 0, "func": "static void tm2_free_codes ( TM2Codes * code ) {\n av_free ( code -> recode ) ;\n if ( code -> vlc . table ) ff_free_vlc ( & code -> vlc ) ;\n }"}
{"idx": 12351, "target": 0, "func": "int ff_h263_pred_dc ( MpegEncContext * s , int n , int16_t * * dc_val_ptr ) {\n int x , y , wrap , a , c , pred_dc ;\n int16_t * dc_val ;\n if ( n < 4 ) {\n x = 2 * s -> mb_x + ( n & 1 ) ;\n y = 2 * s -> mb_y + ( ( n & 2 ) >> 1 ) ;\n wrap = s -> b8_stride ;\n dc_val = s -> dc_val [ 0 ] ;\n }\n else {\n x = s -> mb_x ;\n y = s -> mb_y ;\n wrap = s -> mb_stride ;\n dc_val = s -> dc_val [ n - 4 + 1 ] ;\n }\n a = dc_val [ ( x - 1 ) + ( y ) * wrap ] ;\n c = dc_val [ ( x ) + ( y - 1 ) * wrap ] ;\n if ( s -> first_slice_line && n != 3 ) {\n if ( n != 2 ) c = 1024 ;\n if ( n != 1 && s -> mb_x == s -> resync_mb_x ) a = 1024 ;\n }\n if ( a != 1024 && c != 1024 ) pred_dc = ( a + c ) >> 1 ;\n else if ( a != 1024 ) pred_dc = a ;\n else pred_dc = c ;\n * dc_val_ptr = & dc_val [ x + y * wrap ] ;\n return pred_dc ;\n }"}
{"idx": 12352, "target": 0, "func": "int test_div ( BIO * bp , BN_CTX * ctx ) {\n BIGNUM a , b , c , d , e ;\n int i ;\n BN_init ( & a ) ;\n BN_init ( & b ) ;\n BN_init ( & c ) ;\n BN_init ( & d ) ;\n BN_init ( & e ) ;\n for ( i = 0 ;\n i < num0 + num1 ;\n i ++ ) {\n if ( i < num1 ) {\n BN_bntest_rand ( & a , 400 , 0 , 0 ) ;\n BN_copy ( & b , & a ) ;\n BN_lshift ( & a , & a , i ) ;\n BN_add_word ( & a , i ) ;\n }\n else BN_bntest_rand ( & b , 50 + 3 * ( i - num1 ) , 0 , 0 ) ;\n a . neg = rand_neg ( ) ;\n b . neg = rand_neg ( ) ;\n BN_div ( & d , & c , & a , & b , ctx ) ;\n if ( bp != NULL ) {\n if ( ! results ) {\n BN_print ( bp , & a ) ;\n BIO_puts ( bp , \" / \" ) ;\n BN_print ( bp , & b ) ;\n BIO_puts ( bp , \" - \" ) ;\n }\n BN_print ( bp , & d ) ;\n BIO_puts ( bp , \"\\n\" ) ;\n if ( ! results ) {\n BN_print ( bp , & a ) ;\n BIO_puts ( bp , \" % \" ) ;\n BN_print ( bp , & b ) ;\n BIO_puts ( bp , \" - \" ) ;\n }\n BN_print ( bp , & c ) ;\n BIO_puts ( bp , \"\\n\" ) ;\n }\n BN_mul ( & e , & d , & b , ctx ) ;\n BN_add ( & d , & e , & c ) ;\n BN_sub ( & d , & d , & a ) ;\n if ( ! BN_is_zero ( & d ) ) {\n fprintf ( stderr , \"Division test failed!\\n\" ) ;\n return 0 ;\n }\n }\n BN_free ( & a ) ;\n BN_free ( & b ) ;\n BN_free ( & c ) ;\n BN_free ( & d ) ;\n BN_free ( & e ) ;\n return ( 1 ) ;\n }"}
{"idx": 12353, "target": 0, "func": "static inline void do_kvm_synchronize_tsc ( CPUState * cpu , run_on_cpu_data arg ) {\n kvm_get_tsc ( cpu ) ;\n }"}
{"idx": 12354, "target": 0, "func": "static void bitline2chunky ( CDXLVideoContext * c , int linesize , uint8_t * out ) {\n GetBitContext gb ;\n int x , y , plane ;\n init_get_bits ( & gb , c -> video , c -> video_size * 8 ) ;\n for ( y = 0 ;\n y < c -> avctx -> height ;\n y ++ ) {\n for ( plane = 0 ;\n plane < c -> bpp ;\n plane ++ ) {\n for ( x = 0 ;\n x < c -> avctx -> width ;\n x ++ ) out [ linesize * y + x ] |= get_bits1 ( & gb ) << plane ;\n skip_bits ( & gb , c -> padded_bits ) ;\n }\n }\n }"}
{"idx": 12355, "target": 0, "func": "static int selinux_cmp_sb_context ( const struct super_block * oldsb , const struct super_block * newsb ) {\n struct superblock_security_struct * old = oldsb -> s_security ;\n struct superblock_security_struct * new = newsb -> s_security ;\n char oldflags = old -> flags & SE_MNTMASK ;\n char newflags = new -> flags & SE_MNTMASK ;\n if ( oldflags != newflags ) goto mismatch ;\n if ( ( oldflags & FSCONTEXT_MNT ) && old -> sid != new -> sid ) goto mismatch ;\n if ( ( oldflags & CONTEXT_MNT ) && old -> mntpoint_sid != new -> mntpoint_sid ) goto mismatch ;\n if ( ( oldflags & DEFCONTEXT_MNT ) && old -> def_sid != new -> def_sid ) goto mismatch ;\n if ( oldflags & ROOTCONTEXT_MNT ) {\n struct inode_security_struct * oldroot = backing_inode_security ( oldsb -> s_root ) ;\n struct inode_security_struct * newroot = backing_inode_security ( newsb -> s_root ) ;\n if ( oldroot -> sid != newroot -> sid ) goto mismatch ;\n }\n return 0 ;\n mismatch : printk ( KERN_WARNING \"SELinux: mount invalid. Same superblock, \" \"different security settings for (dev %s, \" \"type %s)\\n\" , newsb -> s_id , newsb -> s_type -> name ) ;\n return - EBUSY ;\n }"}
{"idx": 12356, "target": 1, "func": "static void dumpCreateDB ( PGconn * conn ) {\n PQExpBuffer buf = createPQExpBuffer ( ) ;\n char * default_encoding = NULL ;\n char * default_collate = NULL ;\n char * default_ctype = NULL ;\n PGresult * res ;\n int i ;\n fprintf ( OPF , \"--\\n-- Database creation\\n--\\n\\n\" ) ;\n if ( server_version >= 80400 ) res = executeQuery ( conn , \"SELECT pg_encoding_to_char(encoding), \" \"datcollate, datctype \" \"FROM pg_database \" \"WHERE datname = 'template0'\" ) ;\n else if ( server_version >= 70100 ) res = executeQuery ( conn , \"SELECT pg_encoding_to_char(encoding), \" \"null::text AS datcollate, null::text AS datctype \" \"FROM pg_database \" \"WHERE datname = 'template0'\" ) ;\n else res = executeQuery ( conn , \"SELECT pg_encoding_to_char(encoding), \" \"null::text AS datcollate, null::text AS datctype \" \"FROM pg_database \" \"WHERE datname = 'template1'\" ) ;\n if ( PQntuples ( res ) > 0 ) {\n if ( ! PQgetisnull ( res , 0 , 0 ) ) default_encoding = pg_strdup ( PQgetvalue ( res , 0 , 0 ) ) ;\n if ( ! PQgetisnull ( res , 0 , 1 ) ) default_collate = pg_strdup ( PQgetvalue ( res , 0 , 1 ) ) ;\n if ( ! PQgetisnull ( res , 0 , 2 ) ) default_ctype = pg_strdup ( PQgetvalue ( res , 0 , 2 ) ) ;\n }\n PQclear ( res ) ;\n if ( server_version >= 90600 ) res = executeQuery ( conn , \"SELECT datname, \" \"coalesce(rolname, (select rolname from pg_authid where oid=(select datdba from pg_database where datname='template0'))), \" \"pg_encoding_to_char(d.encoding), \" \"datcollate, datctype, datfrozenxid, datminmxid, \" \"datistemplate, \" \"(SELECT pg_catalog.array_agg(acl) FROM (SELECT pg_catalog.unnest(coalesce(datacl,pg_catalog.acldefault('d',datdba))) AS acl \" \"EXCEPT SELECT pg_catalog.unnest(pg_catalog.acldefault('d',datdba))) as foo)\" \"AS datacl,\" \"(SELECT pg_catalog.array_agg(acl) FROM (SELECT pg_catalog.unnest(pg_catalog.acldefault('d',datdba)) AS acl \" \"EXCEPT SELECT pg_catalog.unnest(coalesce(datacl,pg_catalog.acldefault('d',datdba)))) as foo)\" \"AS rdatacl,\" \"datconnlimit, \" \"(SELECT spcname FROM pg_tablespace t WHERE t.oid = d.dattablespace) AS dattablespace \" \"FROM pg_database d LEFT JOIN pg_authid u ON (datdba = u.oid) \" \"WHERE datallowconn ORDER BY 1\" ) ;\n else if ( server_version >= 90300 ) res = executeQuery ( conn , \"SELECT datname, \" \"coalesce(rolname, (select rolname from pg_authid where oid=(select datdba from pg_database where datname='template0'))), \" \"pg_encoding_to_char(d.encoding), \" \"datcollate, datctype, datfrozenxid, datminmxid, \" \"datistemplate, datacl, '' as rdatacl, datconnlimit, \" \"(SELECT spcname FROM pg_tablespace t WHERE t.oid = d.dattablespace) AS dattablespace \" \"FROM pg_database d LEFT JOIN pg_authid u ON (datdba = u.oid) \" \"WHERE datallowconn ORDER BY 1\" ) ;\n else if ( server_version >= 80400 ) res = executeQuery ( conn , \"SELECT datname, \" \"coalesce(rolname, (select rolname from pg_authid where oid=(select datdba from pg_database where datname='template0'))), \" \"pg_encoding_to_char(d.encoding), \" \"datcollate, datctype, datfrozenxid, 0 AS datminmxid, \" \"datistemplate, datacl, '' as rdatacl, datconnlimit, \" \"(SELECT spcname FROM pg_tablespace t WHERE t.oid = d.dattablespace) AS dattablespace \" \"FROM pg_database d LEFT JOIN pg_authid u ON (datdba = u.oid) \" \"WHERE datallowconn ORDER BY 1\" ) ;\n else if ( server_version >= 80100 ) res = executeQuery ( conn , \"SELECT datname, \" \"coalesce(rolname, (select rolname from pg_authid where oid=(select datdba from pg_database where datname='template0'))), \" \"pg_encoding_to_char(d.encoding), \" \"null::text AS datcollate, null::text AS datctype, datfrozenxid, 0 AS datminmxid, \" \"datistemplate, datacl, '' as rdatacl, datconnlimit, \" \"(SELECT spcname FROM pg_tablespace t WHERE t.oid = d.dattablespace) AS dattablespace \" \"FROM pg_database d LEFT JOIN pg_authid u ON (datdba = u.oid) \" \"WHERE datallowconn ORDER BY 1\" ) ;\n else if ( server_version >= 80000 ) res = executeQuery ( conn , \"SELECT datname, \" \"coalesce(usename, (select usename from pg_shadow where usesysid=(select datdba from pg_database where datname='template0'))), \" \"pg_encoding_to_char(d.encoding), \" \"null::text AS datcollate, null::text AS datctype, datfrozenxid, 0 AS datminmxid, \" \"datistemplate, datacl, '' as rdatacl, -1 as datconnlimit, \" \"(SELECT spcname FROM pg_tablespace t WHERE t.oid = d.dattablespace) AS dattablespace \" \"FROM pg_database d LEFT JOIN pg_shadow u ON (datdba = usesysid) \" \"WHERE datallowconn ORDER BY 1\" ) ;\n else if ( server_version >= 70300 ) res = executeQuery ( conn , \"SELECT datname, \" \"coalesce(usename, (select usename from pg_shadow where usesysid=(select datdba from pg_database where datname='template0'))), \" \"pg_encoding_to_char(d.encoding), \" \"null::text AS datcollate, null::text AS datctype, datfrozenxid, 0 AS datminmxid, \" \"datistemplate, datacl, '' as rdatacl, -1 as datconnlimit, \" \"'pg_default' AS dattablespace \" \"FROM pg_database d LEFT JOIN pg_shadow u ON (datdba = usesysid) \" \"WHERE datallowconn ORDER BY 1\" ) ;\n else if ( server_version >= 70100 ) res = executeQuery ( conn , \"SELECT datname, \" \"coalesce(\" \"(select usename from pg_shadow where usesysid=datdba), \" \"(select usename from pg_shadow where usesysid=(select datdba from pg_database where datname='template0'))), \" \"pg_encoding_to_char(d.encoding), \" \"null::text AS datcollate, null::text AS datctype, 0 AS datfrozenxid, 0 AS datminmxid, \" \"datistemplate, '' as datacl, '' as rdatacl, -1 as datconnlimit, \" \"'pg_default' AS dattablespace \" \"FROM pg_database d \" \"WHERE datallowconn ORDER BY 1\" ) ;\n else {\n res = executeQuery ( conn , \"SELECT datname, \" \"(select usename from pg_shadow where usesysid=datdba), \" \"pg_encoding_to_char(d.encoding), \" \"null::text AS datcollate, null::text AS datctype, 0 AS datfrozenxid, 0 AS datminmxid, \" \"'f' as datistemplate, \" \"'' as datacl, '' as rdatacl, -1 as datconnlimit, \" \"'pg_default' AS dattablespace \" \"FROM pg_database d \" \"ORDER BY 1\" ) ;\n }\n for ( i = 0 ;\n i < PQntuples ( res ) ;\n i ++ ) {\n char * dbname = PQgetvalue ( res , i , 0 ) ;\n char * dbowner = PQgetvalue ( res , i , 1 ) ;\n char * dbencoding = PQgetvalue ( res , i , 2 ) ;\n char * dbcollate = PQgetvalue ( res , i , 3 ) ;\n char * dbctype = PQgetvalue ( res , i , 4 ) ;\n uint32 dbfrozenxid = atooid ( PQgetvalue ( res , i , 5 ) ) ;\n uint32 dbminmxid = atooid ( PQgetvalue ( res , i , 6 ) ) ;\n char * dbistemplate = PQgetvalue ( res , i , 7 ) ;\n char * dbacl = PQgetvalue ( res , i , 8 ) ;\n char * rdbacl = PQgetvalue ( res , i , 9 ) ;\n char * dbconnlimit = PQgetvalue ( res , i , 10 ) ;\n char * dbtablespace = PQgetvalue ( res , i , 11 ) ;\n char * fdbname ;\n fdbname = pg_strdup ( fmtId ( dbname ) ) ;\n resetPQExpBuffer ( buf ) ;\n if ( strcmp ( dbname , \"template1\" ) != 0 && strcmp ( dbname , \"postgres\" ) != 0 ) {\n appendPQExpBuffer ( buf , \"CREATE DATABASE %s\" , fdbname ) ;\n appendPQExpBufferStr ( buf , \" WITH TEMPLATE = template0\" ) ;\n if ( strlen ( dbowner ) != 0 ) appendPQExpBuffer ( buf , \" OWNER = %s\" , fmtId ( dbowner ) ) ;\n if ( default_encoding && strcmp ( dbencoding , default_encoding ) != 0 ) {\n appendPQExpBufferStr ( buf , \" ENCODING = \" ) ;\n appendStringLiteralConn ( buf , dbencoding , conn ) ;\n }\n if ( default_collate && strcmp ( dbcollate , default_collate ) != 0 ) {\n appendPQExpBufferStr ( buf , \" LC_COLLATE = \" ) ;\n appendStringLiteralConn ( buf , dbcollate , conn ) ;\n }\n if ( default_ctype && strcmp ( dbctype , default_ctype ) != 0 ) {\n appendPQExpBufferStr ( buf , \" LC_CTYPE = \" ) ;\n appendStringLiteralConn ( buf , dbctype , conn ) ;\n }\n if ( strcmp ( dbtablespace , \"pg_default\" ) != 0 && ! no_tablespaces ) appendPQExpBuffer ( buf , \" TABLESPACE = %s\" , fmtId ( dbtablespace ) ) ;\n if ( strcmp ( dbistemplate , \"t\" ) == 0 ) appendPQExpBuffer ( buf , \" IS_TEMPLATE = true\" ) ;\n if ( strcmp ( dbconnlimit , \"-1\" ) != 0 ) appendPQExpBuffer ( buf , \" CONNECTION LIMIT = %s\" , dbconnlimit ) ;\n appendPQExpBufferStr ( buf , \";\n\\n\" ) ;\n }\n else if ( strcmp ( dbtablespace , \"pg_default\" ) != 0 && ! no_tablespaces ) {\n if ( strcmp ( dbname , \"postgres\" ) == 0 ) appendPQExpBuffer ( buf , \"\\\\connect template1\\n\" ) ;\n else appendPQExpBuffer ( buf , \"\\\\connect postgres\\n\" ) ;\n appendPQExpBuffer ( buf , \"ALTER DATABASE %s SET TABLESPACE %s;\n\\n\" , fdbname , fmtId ( dbtablespace ) ) ;\n appendPQExpBuffer ( buf , \"\\\\connect %s\\n\" , fdbname ) ;\n }\n if ( binary_upgrade ) {\n appendPQExpBufferStr ( buf , \"-- For binary upgrade, set datfrozenxid and datminmxid.\\n\" ) ;\n appendPQExpBuffer ( buf , \"UPDATE pg_catalog.pg_database \" \"SET datfrozenxid = '%u', datminmxid = '%u' \" \"WHERE datname = \" , dbfrozenxid , dbminmxid ) ;\n appendStringLiteralConn ( buf , dbname , conn ) ;\n appendPQExpBufferStr ( buf , \";\n\\n\" ) ;\n }\n if ( ! skip_acls && ! buildACLCommands ( fdbname , NULL , \"DATABASE\" , dbacl , rdbacl , dbowner , \"\" , server_version , buf ) ) {\n fprintf ( stderr , _ ( \"%s: could not parse ACL list (%s) for database \\\"%s\\\"\\n\" ) , progname , dbacl , fdbname ) ;\n PQfinish ( conn ) ;\n exit_nicely ( 1 ) ;\n }\n fprintf ( OPF , \"%s\" , buf -> data ) ;\n if ( server_version >= 70300 ) dumpDatabaseConfig ( conn , dbname ) ;\n free ( fdbname ) ;\n }\n if ( default_encoding ) free ( default_encoding ) ;\n if ( default_collate ) free ( default_collate ) ;\n if ( default_ctype ) free ( default_ctype ) ;\n PQclear ( res ) ;\n destroyPQExpBuffer ( buf ) ;\n fprintf ( OPF , \"\\n\\n\" ) ;\n }"}
{"idx": 12357, "target": 0, "func": "static void truespeech_filters_merge ( TSContext * dec ) {\n int i ;\n if ( ! dec -> flag ) {\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n dec -> filters [ i + 0 ] = dec -> prevfilt [ i ] ;\n dec -> filters [ i + 8 ] = dec -> prevfilt [ i ] ;\n }\n }\n else {\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n dec -> filters [ i + 0 ] = ( dec -> cvector [ i ] * 21846 + dec -> prevfilt [ i ] * 10923 + 16384 ) >> 15 ;\n dec -> filters [ i + 8 ] = ( dec -> cvector [ i ] * 10923 + dec -> prevfilt [ i ] * 21846 + 16384 ) >> 15 ;\n }\n }\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n dec -> filters [ i + 16 ] = dec -> cvector [ i ] ;\n dec -> filters [ i + 24 ] = dec -> cvector [ i ] ;\n }\n }"}
{"idx": 12358, "target": 0, "func": "static int generate_bits_table ( uint32_t * dst , const uint8_t * len_table ) {\n int len , index ;\n uint32_t bits = 0 ;\n for ( len = 32 ;\n len > 0 ;\n len -- ) {\n for ( index = 0 ;\n index < 256 ;\n index ++ ) {\n if ( len_table [ index ] == len ) dst [ index ] = bits ++ ;\n }\n if ( bits & 1 ) {\n av_log ( NULL , AV_LOG_ERROR , \"Error generating huffman table\\n\" ) ;\n return - 1 ;\n }\n bits >>= 1 ;\n }\n return 0 ;\n }"}
{"idx": 12359, "target": 0, "func": "void evsignal_process ( struct event_base * base ) {\n struct evsignal_info * sig = & base -> sig ;\n struct event * ev , * next_ev ;\n sig_atomic_t ncalls ;\n int i ;\n base -> sig . evsignal_caught = 0 ;\n for ( i = 1 ;\n i < NSIG ;\n ++ i ) {\n ncalls = sig -> evsigcaught [ i ] ;\n if ( ncalls == 0 ) continue ;\n sig -> evsigcaught [ i ] -= ncalls ;\n for ( ev = TAILQ_FIRST ( & sig -> evsigevents [ i ] ) ;\n ev != NULL ;\n ev = next_ev ) {\n next_ev = TAILQ_NEXT ( ev , ev_signal_next ) ;\n if ( ! ( ev -> ev_events & EV_PERSIST ) ) event_del ( ev ) ;\n event_active ( ev , EV_SIGNAL , ncalls ) ;\n }\n }\n }"}
{"idx": 12360, "target": 0, "func": "void push_compress_filter2 ( IOBUF out , compress_filter_context_t * zfx , int algo , int rel ) {\n if ( algo >= 0 ) zfx -> algo = algo ;\n else zfx -> algo = DEFAULT_COMPRESS_ALGO ;\n switch ( zfx -> algo ) {\n case COMPRESS_ALGO_NONE : break ;\n case COMPRESS_ALGO_ZIP : case COMPRESS_ALGO_ZLIB : iobuf_push_filter2 ( out , compress_filter , zfx , rel ) ;\n break ;\n # ifdef HAVE_BZIP2 case COMPRESS_ALGO_BZIP2 : iobuf_push_filter2 ( out , compress_filter_bz2 , zfx , rel ) ;\n break ;\n # endif default : BUG ( ) ;\n }\n }"}
{"idx": 12361, "target": 0, "func": "PyObject * PyString_AsDecodedString ( PyObject * str , const char * encoding , const char * errors ) {\n PyObject * v ;\n v = PyString_AsDecodedObject ( str , encoding , errors ) ;\n if ( v == NULL ) goto onError ;\n # ifdef Py_USING_UNICODE if ( PyUnicode_Check ( v ) ) {\n PyObject * temp = v ;\n v = PyUnicode_AsEncodedString ( v , NULL , NULL ) ;\n Py_DECREF ( temp ) ;\n if ( v == NULL ) goto onError ;\n }\n # endif if ( ! PyString_Check ( v ) ) {\n PyErr_Format ( PyExc_TypeError , \"decoder did not return a string object (type=%.400s)\" , Py_TYPE ( v ) -> tp_name ) ;\n Py_DECREF ( v ) ;\n goto onError ;\n }\n return v ;\n onError : return NULL ;\n }"}
{"idx": 12362, "target": 0, "func": "static const char * cmd_response_body_limit_action ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n if ( dcfg == NULL ) return NULL ;\n if ( dcfg -> is_enabled == MODSEC_DETECTION_ONLY ) {\n dcfg -> of_limit_action = RESPONSE_BODY_LIMIT_ACTION_PARTIAL ;\n return NULL ;\n }\n if ( strcasecmp ( p1 , \"ProcessPartial\" ) == 0 ) dcfg -> of_limit_action = RESPONSE_BODY_LIMIT_ACTION_PARTIAL ;\n else if ( strcasecmp ( p1 , \"Reject\" ) == 0 ) dcfg -> of_limit_action = RESPONSE_BODY_LIMIT_ACTION_REJECT ;\n else return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid value for SecResponseBodyLimitAction: %s\" , p1 ) ;\n return NULL ;\n }"}
{"idx": 12363, "target": 0, "func": "static void free_duplicate_context ( MpegEncContext * s ) {\n if ( s == NULL ) return ;\n av_freep ( & s -> edge_emu_buffer ) ;\n av_freep ( & s -> me . scratchpad ) ;\n s -> me . temp = s -> rd_scratchpad = s -> b_scratchpad = s -> obmc_scratchpad = NULL ;\n av_freep ( & s -> dct_error_sum ) ;\n av_freep ( & s -> me . map ) ;\n av_freep ( & s -> me . score_map ) ;\n av_freep ( & s -> blocks ) ;\n av_freep ( & s -> ac_val_base ) ;\n s -> block = NULL ;\n }"}
{"idx": 12364, "target": 0, "func": "static UBool action_shapeArabic ( UBiDiTransform * pTransform , UErrorCode * pErrorCode ) {\n if ( ( pTransform -> letters | pTransform -> digits ) == 0 ) {\n return FALSE ;\n }\n if ( pTransform -> pActiveScheme -> lettersDir == pTransform -> pActiveScheme -> digitsDir ) {\n doShape ( pTransform , pTransform -> letters | pTransform -> digits | pTransform -> pActiveScheme -> lettersDir , pErrorCode ) ;\n }\n else {\n doShape ( pTransform , pTransform -> digits | pTransform -> pActiveScheme -> digitsDir , pErrorCode ) ;\n if ( U_SUCCESS ( * pErrorCode ) ) {\n updateSrc ( pTransform , pTransform -> dest , * pTransform -> pDestLength , * pTransform -> pDestLength , pErrorCode ) ;\n doShape ( pTransform , pTransform -> letters | pTransform -> pActiveScheme -> lettersDir , pErrorCode ) ;\n }\n }\n return TRUE ;\n }"}
{"idx": 12365, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ContentSettingBubbleDialogTest , InvokeDialog_midi_sysex ) {\n RunDialog ( ) ;\n }"}
{"idx": 12366, "target": 0, "func": "static bfd_boolean srec_new_symbol ( bfd * abfd , const char * name , bfd_vma val ) {\n struct srec_symbol * n ;\n n = ( struct srec_symbol * ) bfd_alloc ( abfd , sizeof ( * n ) ) ;\n if ( n == NULL ) return FALSE ;\n n -> name = name ;\n n -> val = val ;\n if ( abfd -> tdata . srec_data -> symbols == NULL ) abfd -> tdata . srec_data -> symbols = n ;\n else abfd -> tdata . srec_data -> symtail -> next = n ;\n abfd -> tdata . srec_data -> symtail = n ;\n n -> next = NULL ;\n ++ abfd -> symcount ;\n return TRUE ;\n }"}
{"idx": 12367, "target": 0, "func": "TSReturnCode sdk_sanity_check_mbuffer ( TSMBuffer bufp ) {\n HdrHeapSDKHandle * handle = ( HdrHeapSDKHandle * ) bufp ;\n if ( ( handle == nullptr ) || ( handle -> m_heap == nullptr ) || ( handle -> m_heap -> m_magic != HDR_BUF_MAGIC_ALIVE ) ) {\n return TS_ERROR ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 12368, "target": 0, "func": "static int dissect_h245_MaintenanceLoopRejectCause ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_MaintenanceLoopRejectCause , MaintenanceLoopRejectCause_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 12369, "target": 0, "func": "static void mp_decode_frame_helper ( MotionPixelsContext * mp , GetBitContext * gb ) {\n YuvPixel p ;\n int y , y0 ;\n for ( y = 0 ;\n y < mp -> avctx -> height ;\n ++ y ) {\n if ( mp -> changes_map [ y * mp -> avctx -> width ] != 0 ) {\n memset ( mp -> gradient_scale , 1 , sizeof ( mp -> gradient_scale ) ) ;\n p = mp_get_yuv_from_rgb ( mp , 0 , y ) ;\n }\n else {\n p . y += mp_gradient ( mp , 0 , mp_get_vlc ( mp , gb ) ) ;\n p . y = av_clip ( p . y , 0 , 31 ) ;\n if ( ( y & 3 ) == 0 ) {\n p . v += mp_gradient ( mp , 1 , mp_get_vlc ( mp , gb ) ) ;\n p . v = av_clip ( p . v , - 32 , 31 ) ;\n p . u += mp_gradient ( mp , 2 , mp_get_vlc ( mp , gb ) ) ;\n p . u = av_clip ( p . u , - 32 , 31 ) ;\n }\n mp -> vpt [ y ] = p ;\n mp_set_rgb_from_yuv ( mp , 0 , y , & p ) ;\n }\n }\n for ( y0 = 0 ;\n y0 < 2 ;\n ++ y0 ) for ( y = y0 ;\n y < mp -> avctx -> height ;\n y += 2 ) mp_decode_line ( mp , gb , y ) ;\n }"}
{"idx": 12370, "target": 1, "func": "static uint32_t vmport_cmd_ram_size ( void * opaque , uint32_t addr ) {\n CPUX86State * env = cpu_single_env ;\n env -> regs [ R_EBX ] = 0x1177 ;\n return ram_size ;\n }"}
{"idx": 12371, "target": 0, "func": "static int write_null ( struct archive_write * a , size_t size ) {\n size_t remaining ;\n unsigned char * p , * old ;\n int r ;\n remaining = wb_remaining ( a ) ;\n p = wb_buffptr ( a ) ;\n if ( size <= remaining ) {\n memset ( p , 0 , size ) ;\n return ( wb_consume ( a , size ) ) ;\n }\n memset ( p , 0 , remaining ) ;\n r = wb_consume ( a , remaining ) ;\n if ( r != ARCHIVE_OK ) return ( r ) ;\n size -= remaining ;\n old = p ;\n p = wb_buffptr ( a ) ;\n memset ( p , 0 , old - p ) ;\n remaining = wb_remaining ( a ) ;\n while ( size ) {\n size_t wsize = size ;\n if ( wsize > remaining ) wsize = remaining ;\n r = wb_consume ( a , wsize ) ;\n if ( r != ARCHIVE_OK ) return ( r ) ;\n size -= wsize ;\n }\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 12372, "target": 0, "func": "static void bdrv_qcow2_init ( void ) {\n bdrv_register ( & bdrv_qcow2 ) ;\n }"}
{"idx": 12373, "target": 0, "func": "static void decCopyFit ( decNumber * dest , const decNumber * src , decContext * set , Int * residue , uInt * status ) {\n dest -> bits = src -> bits ;\n dest -> exponent = src -> exponent ;\n decSetCoeff ( dest , set , src -> lsu , src -> digits , residue , status ) ;\n }"}
{"idx": 12374, "target": 0, "func": "static void h263p_encode_umotion ( MpegEncContext * s , int val ) {\n short sval = 0 ;\n short i = 0 ;\n short n_bits = 0 ;\n short temp_val ;\n int code = 0 ;\n int tcode ;\n if ( val == 0 ) put_bits ( & s -> pb , 1 , 1 ) ;\n else if ( val == 1 ) put_bits ( & s -> pb , 3 , 0 ) ;\n else if ( val == - 1 ) put_bits ( & s -> pb , 3 , 2 ) ;\n else {\n sval = ( ( val < 0 ) ? ( short ) ( - val ) : ( short ) val ) ;\n temp_val = sval ;\n while ( temp_val != 0 ) {\n temp_val = temp_val >> 1 ;\n n_bits ++ ;\n }\n i = n_bits - 1 ;\n while ( i > 0 ) {\n tcode = ( sval & ( 1 << ( i - 1 ) ) ) >> ( i - 1 ) ;\n tcode = ( tcode << 1 ) | 1 ;\n code = ( code << 2 ) | tcode ;\n i -- ;\n }\n code = ( ( code << 1 ) | ( val < 0 ) ) << 1 ;\n put_bits ( & s -> pb , ( 2 * n_bits ) + 1 , code ) ;\n }\n }"}
{"idx": 12375, "target": 0, "func": "static void dissect_u3v_stream_leader ( proto_tree * u3v_telegram_tree , tvbuff_t * tvb , packet_info * pinfo , usb_conv_info_t * usb_conv_info _U_ ) {\n guint32 offset = 0 ;\n guint32 payload_type = 0 ;\n guint64 block_id = 0 ;\n proto_item * item = NULL ;\n item = proto_tree_add_item ( u3v_telegram_tree , hf_u3v_stream_leader , tvb , 0 , - 1 , ENC_NA ) ;\n u3v_telegram_tree = proto_item_add_subtree ( item , ett_u3v_stream_leader ) ;\n proto_tree_add_item ( u3v_telegram_tree , hf_u3v_stream_prefix , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( u3v_telegram_tree , hf_u3v_stream_reserved , tvb , offset , 2 , ENC_NA ) ;\n offset += 2 ;\n proto_tree_add_item ( u3v_telegram_tree , hf_u3v_stream_leader_size , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n block_id = tvb_get_letoh64 ( tvb , offset ) ;\n proto_tree_add_item ( u3v_telegram_tree , hf_u3v_stream_block_id , tvb , offset , 8 , ENC_LITTLE_ENDIAN ) ;\n offset += 8 ;\n proto_tree_add_item ( u3v_telegram_tree , hf_u3v_stream_reserved , tvb , offset , 2 , ENC_NA ) ;\n offset += 2 ;\n payload_type = tvb_get_letohs ( tvb , offset ) ;\n proto_tree_add_item ( u3v_telegram_tree , hf_u3v_stream_payload_type , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"Stream Leader [ Block ID: %\" G_GINT64_MODIFIER \"u , Type %s]\" , block_id , val_to_str ( payload_type , payload_type_names , \"Unknown Payload Type\" ) ) ;\n if ( payload_type == U3V_STREAM_PAYLOAD_IMAGE || payload_type == U3V_STREAM_PAYLOAD_IMAGE_EXT_CHUNK || payload_type == U3V_STREAM_PAYLOAD_CHUNK ) {\n proto_tree_add_item ( u3v_telegram_tree , hf_u3v_stream_timestamp , tvb , offset , 8 , ENC_LITTLE_ENDIAN ) ;\n offset += 8 ;\n }\n if ( payload_type == U3V_STREAM_PAYLOAD_IMAGE || payload_type == U3V_STREAM_PAYLOAD_IMAGE_EXT_CHUNK ) {\n proto_tree_add_item ( u3v_telegram_tree , hf_u3v_stream_pixel_format , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( u3v_telegram_tree , hf_u3v_stream_size_x , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( u3v_telegram_tree , hf_u3v_stream_size_y , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( u3v_telegram_tree , hf_u3v_stream_offset_x , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( u3v_telegram_tree , hf_u3v_stream_offset_y , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( u3v_telegram_tree , hf_u3v_stream_padding_x , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( u3v_telegram_tree , hf_u3v_stream_reserved , tvb , offset , 2 , ENC_NA ) ;\n }\n }"}
{"idx": 12376, "target": 0, "func": "int http_hdr_length_get ( HTTPHdrImpl * hdr ) {\n int length = 0 ;\n if ( hdr -> m_polarity == HTTP_TYPE_REQUEST ) {\n if ( hdr -> u . req . m_ptr_method ) {\n length = hdr -> u . req . m_len_method ;\n }\n else {\n length = 0 ;\n }\n length += 1 ;\n if ( hdr -> u . req . m_url_impl ) {\n length += url_length_get ( hdr -> u . req . m_url_impl ) ;\n }\n length += 1 ;\n length += 8 ;\n length += 2 ;\n }\n else if ( hdr -> m_polarity == HTTP_TYPE_RESPONSE ) {\n if ( hdr -> u . resp . m_ptr_reason ) {\n length = hdr -> u . resp . m_len_reason ;\n }\n else {\n length = 0 ;\n }\n length += 8 ;\n length += 1 ;\n length += 3 ;\n length += 1 ;\n length += 2 ;\n }\n length += mime_hdr_length_get ( hdr -> m_fields_impl ) ;\n return length ;\n }"}
{"idx": 12377, "target": 0, "func": "static int mapped_filename_equals ( const u_char * filename , size_t filename_len , ngx_str_t * str ) {\n return ( str -> len == filename_len && memcmp ( str -> data , filename , filename_len ) == 0 ) || ( str -> len == filename_len - 1 && filename [ filename_len - 1 ] == '/' && memcmp ( str -> data , filename , filename_len - 1 ) == 0 ) ;\n }"}
{"idx": 12378, "target": 0, "func": "static void ohci_soft_reset ( OHCIState * ohci ) {\n trace_usb_ohci_reset ( ohci -> name ) ;\n ohci_bus_stop ( ohci ) ;\n ohci -> ctl = ( ohci -> ctl & OHCI_CTL_IR ) | OHCI_USB_SUSPEND ;\n ohci -> old_ctl = 0 ;\n ohci -> status = 0 ;\n ohci -> intr_status = 0 ;\n ohci -> intr = OHCI_INTR_MIE ;\n ohci -> hcca = 0 ;\n ohci -> ctrl_head = ohci -> ctrl_cur = 0 ;\n ohci -> bulk_head = ohci -> bulk_cur = 0 ;\n ohci -> per_cur = 0 ;\n ohci -> done = 0 ;\n ohci -> done_count = 7 ;\n ohci -> fsmps = 0x2778 ;\n ohci -> fi = 0x2edf ;\n ohci -> fit = 0 ;\n ohci -> frt = 0 ;\n ohci -> frame_number = 0 ;\n ohci -> pstart = 0 ;\n ohci -> lst = OHCI_LS_THRESH ;\n }"}
{"idx": 12379, "target": 0, "func": "char * jas_stream_gets ( jas_stream_t * stream , char * buf , int bufsize ) {\n int c ;\n char * bufptr ;\n assert ( bufsize > 0 ) ;\n bufptr = buf ;\n while ( bufsize > 1 ) {\n if ( ( c = jas_stream_getc ( stream ) ) == EOF ) {\n break ;\n }\n * bufptr ++ = c ;\n -- bufsize ;\n if ( c == '\\n' ) {\n break ;\n }\n }\n * bufptr = '\\0' ;\n return buf ;\n }"}
{"idx": 12380, "target": 0, "func": "void remove_tap_listener_sccp_calls ( void ) {\n remove_tap_listener ( & ( the_tapinfo_struct . sccp_dummy ) ) ;\n have_sccp_tap_listener = FALSE ;\n have_sua_tap_listener = FALSE ;\n }"}
{"idx": 12381, "target": 0, "func": "static void find_mv_refs_idx ( const VP9_COMMON * cm , const MACROBLOCKD * xd , const TileInfo * const tile , MODE_INFO * mi , MV_REFERENCE_FRAME ref_frame , int_mv * mv_ref_list , int block , int mi_row , int mi_col ) {\n const int * ref_sign_bias = cm -> ref_frame_sign_bias ;\n int i , refmv_count = 0 ;\n const MODE_INFO * prev_mi = ! cm -> error_resilient_mode && cm -> prev_mi ? cm -> prev_mi [ mi_row * xd -> mi_stride + mi_col ] . src_mi : NULL ;\n const MB_MODE_INFO * const prev_mbmi = prev_mi ? & prev_mi -> src_mi -> mbmi : NULL ;\n const POSITION * const mv_ref_search = mv_ref_blocks [ mi -> mbmi . sb_type ] ;\n int different_ref_found = 0 ;\n int context_counter = 0 ;\n vpx_memset ( mv_ref_list , 0 , sizeof ( * mv_ref_list ) * MAX_MV_REF_CANDIDATES ) ;\n for ( i = 0 ;\n i < 2 ;\n ++ i ) {\n const POSITION * const mv_ref = & mv_ref_search [ i ] ;\n if ( is_inside ( tile , mi_col , mi_row , cm -> mi_rows , mv_ref ) ) {\n const MODE_INFO * const candidate_mi = xd -> mi [ mv_ref -> col + mv_ref -> row * xd -> mi_stride ] . src_mi ;\n const MB_MODE_INFO * const candidate = & candidate_mi -> mbmi ;\n context_counter += mode_2_counter [ candidate -> mode ] ;\n different_ref_found = 1 ;\n if ( candidate -> ref_frame [ 0 ] == ref_frame ) ADD_MV_REF_LIST ( get_sub_block_mv ( candidate_mi , 0 , mv_ref -> col , block ) ) ;\n else if ( candidate -> ref_frame [ 1 ] == ref_frame ) ADD_MV_REF_LIST ( get_sub_block_mv ( candidate_mi , 1 , mv_ref -> col , block ) ) ;\n }\n }\n for ( ;\n i < MVREF_NEIGHBOURS ;\n ++ i ) {\n const POSITION * const mv_ref = & mv_ref_search [ i ] ;\n if ( is_inside ( tile , mi_col , mi_row , cm -> mi_rows , mv_ref ) ) {\n const MB_MODE_INFO * const candidate = & xd -> mi [ mv_ref -> col + mv_ref -> row * xd -> mi_stride ] . src_mi -> mbmi ;\n different_ref_found = 1 ;\n if ( candidate -> ref_frame [ 0 ] == ref_frame ) ADD_MV_REF_LIST ( candidate -> mv [ 0 ] ) ;\n else if ( candidate -> ref_frame [ 1 ] == ref_frame ) ADD_MV_REF_LIST ( candidate -> mv [ 1 ] ) ;\n }\n }\n if ( prev_mbmi ) {\n if ( prev_mbmi -> ref_frame [ 0 ] == ref_frame ) ADD_MV_REF_LIST ( prev_mbmi -> mv [ 0 ] ) ;\n else if ( prev_mbmi -> ref_frame [ 1 ] == ref_frame ) ADD_MV_REF_LIST ( prev_mbmi -> mv [ 1 ] ) ;\n }\n if ( different_ref_found ) {\n for ( i = 0 ;\n i < MVREF_NEIGHBOURS ;\n ++ i ) {\n const POSITION * mv_ref = & mv_ref_search [ i ] ;\n if ( is_inside ( tile , mi_col , mi_row , cm -> mi_rows , mv_ref ) ) {\n const MB_MODE_INFO * const candidate = & xd -> mi [ mv_ref -> col + mv_ref -> row * xd -> mi_stride ] . src_mi -> mbmi ;\n IF_DIFF_REF_FRAME_ADD_MV ( candidate ) ;\n }\n }\n }\n if ( prev_mbmi ) IF_DIFF_REF_FRAME_ADD_MV ( prev_mbmi ) ;\n Done : mi -> mbmi . mode_context [ ref_frame ] = counter_to_context [ context_counter ] ;\n for ( i = 0 ;\n i < MAX_MV_REF_CANDIDATES ;\n ++ i ) clamp_mv_ref ( & mv_ref_list [ i ] . as_mv , xd ) ;\n }"}
{"idx": 12382, "target": 0, "func": "static void copy_partitioning ( VP9_COMMON * cm , MODE_INFO * mi_8x8 , MODE_INFO * prev_mi_8x8 ) {\n const int mis = cm -> mi_stride ;\n int block_row , block_col ;\n for ( block_row = 0 ;\n block_row < 8 ;\n ++ block_row ) {\n for ( block_col = 0 ;\n block_col < 8 ;\n ++ block_col ) {\n MODE_INFO * const prev_mi = prev_mi_8x8 [ block_row * mis + block_col ] . src_mi ;\n const BLOCK_SIZE sb_type = prev_mi ? prev_mi -> mbmi . sb_type : 0 ;\n if ( prev_mi ) {\n const ptrdiff_t offset = prev_mi - cm -> prev_mi ;\n mi_8x8 [ block_row * mis + block_col ] . src_mi = cm -> mi + offset ;\n mi_8x8 [ block_row * mis + block_col ] . src_mi -> mbmi . sb_type = sb_type ;\n }\n }\n }\n }"}
{"idx": 12383, "target": 0, "func": "static void activate_mount_op_active ( GtkMountOperation * operation , GParamSpec * pspec , ActivateParameters * parameters ) {\n gboolean is_active ;\n g_object_get ( operation , \"is-showing\" , & is_active , NULL ) ;\n if ( is_active ) {\n pause_activation_timed_cancel ( parameters ) ;\n }\n else {\n unpause_activation_timed_cancel ( parameters ) ;\n }\n }"}
{"idx": 12384, "target": 0, "func": "static VALUE ossl_asn1_ ## klass ( int argc , VALUE * argv , VALUE self ) \\ {\n return rb_funcall3 ( cASN1 ## klass , rb_intern ( \"new\" ) , argc , argv ) ;\n }\n OSSL_ASN1_IMPL_FACTORY_METHOD ( Boolean ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Integer ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Enumerated ) OSSL_ASN1_IMPL_FACTORY_METHOD ( BitString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( OctetString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( UTF8String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( NumericString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( PrintableString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( T61String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( VideotexString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( IA5String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( GraphicString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( ISO64String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( GeneralString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( UniversalString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( BMPString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Null ) OSSL_ASN1_IMPL_FACTORY_METHOD ( ObjectId ) OSSL_ASN1_IMPL_FACTORY_METHOD ( UTCTime ) OSSL_ASN1_IMPL_FACTORY_METHOD ( GeneralizedTime )"}
{"idx": 12385, "target": 0, "func": "static VALUE ossl_asn1obj_get_sn ( VALUE self ) {\n VALUE val , ret = Qnil ;\n int nid ;\n val = ossl_asn1_get_value ( self ) ;\n if ( ( nid = OBJ_txt2nid ( StringValueCStr ( val ) ) ) != NID_undef ) ret = rb_str_new2 ( OBJ_nid2sn ( nid ) ) ;\n return ret ;\n }"}
{"idx": 12386, "target": 0, "func": "TEST_F ( AutocompleteResultTest , TopMatchIsStandaloneVerbatimMatch ) {\n ACMatches matches ;\n AutocompleteResult result ;\n result . AppendMatches ( AutocompleteInput ( ) , matches ) ;\n EXPECT_FALSE ( result . TopMatchIsStandaloneVerbatimMatch ( ) ) ;\n PopulateAutocompleteMatchesFromTestData ( kNonVerbatimMatches , 1 , & matches ) ;\n result . AppendMatches ( AutocompleteInput ( ) , matches ) ;\n EXPECT_FALSE ( result . TopMatchIsStandaloneVerbatimMatch ( ) ) ;\n result . Reset ( ) ;\n matches . clear ( ) ;\n PopulateAutocompleteMatchesFromTestData ( kVerbatimMatches , 1 , & matches ) ;\n result . AppendMatches ( AutocompleteInput ( ) , matches ) ;\n EXPECT_TRUE ( result . TopMatchIsStandaloneVerbatimMatch ( ) ) ;\n result . Reset ( ) ;\n matches . clear ( ) ;\n PopulateAutocompleteMatchesFromTestData ( kVerbatimMatches , 1 , & matches ) ;\n PopulateAutocompleteMatchesFromTestData ( kNonVerbatimMatches , 1 , & matches ) ;\n result . AppendMatches ( AutocompleteInput ( ) , matches ) ;\n EXPECT_TRUE ( result . TopMatchIsStandaloneVerbatimMatch ( ) ) ;\n result . Reset ( ) ;\n matches . clear ( ) ;\n }"}
{"idx": 12387, "target": 0, "func": "static gboolean file_was_cancelled ( NautilusFile * file ) {\n GError * error ;\n error = nautilus_file_get_file_info_error ( file ) ;\n return error != NULL && error -> domain == G_IO_ERROR && error -> code == G_IO_ERROR_CANCELLED ;\n }"}
{"idx": 12388, "target": 1, "func": "static unsigned long xmlHashComputeKey ( xmlHashTablePtr table , const xmlChar * name , const xmlChar * name2 , const xmlChar * name3 ) {\n unsigned long value = 0L ;\n char ch ;\n if ( name != NULL ) {\n value += 30 * ( * name ) ;\n while ( ( ch = * name ++ ) != 0 ) {\n value = value ^ ( ( value << 5 ) + ( value >> 3 ) + ( unsigned long ) ch ) ;\n }\n }\n if ( name2 != NULL ) {\n while ( ( ch = * name2 ++ ) != 0 ) {\n value = value ^ ( ( value << 5 ) + ( value >> 3 ) + ( unsigned long ) ch ) ;\n }\n }\n if ( name3 != NULL ) {\n while ( ( ch = * name3 ++ ) != 0 ) {\n value = value ^ ( ( value << 5 ) + ( value >> 3 ) + ( unsigned long ) ch ) ;\n }\n }\n return ( value % table -> size ) ;\n }"}
{"idx": 12389, "target": 0, "func": "int fz_colorspace_is_device_n ( fz_context * ctx , const fz_colorspace * cs ) {\n return cs && ( cs -> type == FZ_COLORSPACE_SEPARATION ) ;\n }"}
{"idx": 12390, "target": 0, "func": "void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 ) sadMxN ( 16 , 32 ) sadMxNx4D ( 16 , 32 ) sadMxN ( 16 , 16 ) sadMxNxK ( 16 , 16 , 3 ) sadMxNxK ( 16 , 16 , 8 ) sadMxNx4D ( 16 , 16 ) sadMxN ( 16 , 8 ) sadMxNxK ( 16 , 8 , 3 ) sadMxNxK ( 16 , 8 , 8 ) sadMxNx4D ( 16 , 8 ) sadMxN ( 8 , 16 ) sadMxNxK ( 8 , 16 , 3 ) sadMxNxK ( 8 , 16 , 8 )"}
{"idx": 12391, "target": 0, "func": "void proto_reg_handoff_usb_ms ( void ) {\n dissector_handle_t usb_ms_bulk_handle ;\n dissector_handle_t usb_ms_control_handle ;\n usb_ms_bulk_handle = find_dissector ( \"usbms\" ) ;\n dissector_add_uint ( \"usb.bulk\" , IF_CLASS_MASS_STORAGE , usb_ms_bulk_handle ) ;\n usb_ms_control_handle = create_dissector_handle ( dissect_usb_ms_control , proto_usb_ms ) ;\n dissector_add_uint ( \"usb.control\" , IF_CLASS_MASS_STORAGE , usb_ms_control_handle ) ;\n heur_dissector_add ( \"usb.bulk\" , dissect_usb_ms_bulk_heur , \"Mass Storage USB bulk endpoint\" , \"ms_usb_bulk\" , proto_usb_ms , HEURISTIC_ENABLE ) ;\n }"}
{"idx": 12392, "target": 0, "func": "static int mimic_decode_update_thread_context ( AVCodecContext * avctx , const AVCodecContext * avctx_from ) {\n MimicContext * dst = avctx -> priv_data , * src = avctx_from -> priv_data ;\n int i , ret ;\n if ( avctx == avctx_from ) return 0 ;\n dst -> cur_index = src -> next_cur_index ;\n dst -> prev_index = src -> next_prev_index ;\n memcpy ( dst -> flipped_ptrs , src -> flipped_ptrs , sizeof ( src -> flipped_ptrs ) ) ;\n for ( i = 0 ;\n i < FF_ARRAY_ELEMS ( dst -> frames ) ;\n i ++ ) {\n ff_thread_release_buffer ( avctx , & dst -> frames [ i ] ) ;\n if ( src -> frames [ i ] . f -> data [ 0 ] ) {\n ret = ff_thread_ref_frame ( & dst -> frames [ i ] , & src -> frames [ i ] ) ;\n if ( ret < 0 ) return ret ;\n }\n }\n return 0 ;\n }"}
{"idx": 12393, "target": 0, "func": "static void lbmpdm_definition_build_key ( guint32 * key_value , wmem_tree_key_t * key , guint64 channel , guint32 id , guint8 version_major , guint8 version_minor ) {\n key_value [ LBMPDM_DEFINITION_KEY_ELEMENT_CHANNEL_HIGH ] = ( guint32 ) ( ( channel >> 32 ) & 0xffffffff ) ;\n key_value [ LBMPDM_DEFINITION_KEY_ELEMENT_CHANNEL_LOW ] = ( guint32 ) ( channel & 0xffffffff ) ;\n key_value [ LBMPDM_DEFINITION_KEY_ELEMENT_ID ] = id ;\n key_value [ LBMPDM_DEFINITION_KEY_ELEMENT_VERS_MAJOR ] = version_major ;\n key_value [ LBMPDM_DEFINITION_KEY_ELEMENT_VERS_MINOR ] = version_minor ;\n key [ 0 ] . length = LBMPDM_DEFINITION_KEY_ELEMENT_COUNT ;\n key [ 0 ] . key = key_value ;\n key [ 1 ] . length = 0 ;\n key [ 1 ] . key = NULL ;\n }"}
{"idx": 12394, "target": 0, "func": "static void jas_image_calcbbox2 ( jas_image_t * image , jas_image_coord_t * tlx , jas_image_coord_t * tly , jas_image_coord_t * brx , jas_image_coord_t * bry ) {\n jas_image_cmpt_t * cmpt ;\n jas_image_coord_t tmptlx ;\n jas_image_coord_t tmptly ;\n jas_image_coord_t tmpbrx ;\n jas_image_coord_t tmpbry ;\n jas_image_coord_t t ;\n int i ;\n if ( image -> numcmpts_ > 0 ) {\n cmpt = image -> cmpts_ [ 0 ] ;\n tmptlx = cmpt -> tlx_ ;\n tmptly = cmpt -> tly_ ;\n tmpbrx = cmpt -> tlx_ + cmpt -> hstep_ * ( cmpt -> width_ - 1 ) ;\n tmpbry = cmpt -> tly_ + cmpt -> vstep_ * ( cmpt -> height_ - 1 ) ;\n for ( i = 0 ;\n i < image -> numcmpts_ ;\n ++ i ) {\n cmpt = image -> cmpts_ [ i ] ;\n if ( cmpt -> tlx_ < tmptlx ) tmptlx = cmpt -> tlx_ ;\n if ( cmpt -> tly_ < tmptly ) tmptly = cmpt -> tly_ ;\n t = cmpt -> tlx_ + cmpt -> hstep_ * ( cmpt -> width_ - 1 ) ;\n if ( t > tmpbrx ) tmpbrx = t ;\n t = cmpt -> tly_ + cmpt -> vstep_ * ( cmpt -> height_ - 1 ) ;\n if ( t > tmpbry ) tmpbry = t ;\n }\n }\n else {\n tmptlx = 0 ;\n tmptly = 0 ;\n tmpbrx = - 1 ;\n tmpbry = - 1 ;\n }\n * tlx = tmptlx ;\n * tly = tmptly ;\n * brx = tmpbrx ;\n * bry = tmpbry ;\n }"}
{"idx": 12395, "target": 0, "func": "static void test_bug54041 ( ) {\n enable_query_logs ( 0 ) ;\n test_bug54041_impl ( ) ;\n disable_query_logs ( ) ;\n test_bug54041_impl ( ) ;\n restore_query_logs ( ) ;\n }"}
{"idx": 12396, "target": 1, "func": "extern int name ( int ) __THROW __exctype ( isalnum ) ;\n __exctype ( isalpha ) ;\n __exctype ( iscntrl ) ;\n __exctype ( isdigit ) ;\n __exctype ( islower )"}
{"idx": 12397, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , PayloadSizeIgnoresDownloads ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n bool prev_io_allowed = base : : ThreadRestrictions : : SetIOAllowed ( true ) ;\n {\n base : : ScopedTempDir downloads_directory ;\n ASSERT_TRUE ( downloads_directory . CreateUniqueTempDir ( ) ) ;\n browser ( ) -> profile ( ) -> GetPrefs ( ) -> SetFilePath ( prefs : : kDownloadDefaultDirectory , downloads_directory . GetPath ( ) ) ;\n content : : DownloadTestObserverTerminal downloads_observer ( content : : BrowserContext : : GetDownloadManager ( browser ( ) -> profile ( ) ) , 1 , content : : DownloadTestObserver : : ON_DANGEROUS_DOWNLOAD_FAIL ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/page_load_metrics/download_anchor_click.html\" ) ) ;\n downloads_observer . WaitForFinished ( ) ;\n }\n base : : ThreadRestrictions : : SetIOAllowed ( prev_io_allowed ) ;\n NavigateToUntrackedUrl ( ) ;\n histogram_tester_ . ExpectUniqueSample ( internal : : kHistogramPageLoadTotalBytes , 0 , 1 ) ;\n }"}
{"idx": 12398, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n VBDecContext * const c = avctx -> priv_data ;\n AVFrame * frame = data ;\n uint8_t * outptr , * srcptr ;\n int i , j , ret ;\n int flags ;\n uint32_t size ;\n int offset = 0 ;\n bytestream2_init ( & c -> stream , avpkt -> data , avpkt -> size ) ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n flags = bytestream2_get_le16 ( & c -> stream ) ;\n if ( flags & VB_HAS_GMC ) {\n i = ( int16_t ) bytestream2_get_le16 ( & c -> stream ) ;\n j = ( int16_t ) bytestream2_get_le16 ( & c -> stream ) ;\n offset = i + j * avctx -> width ;\n }\n if ( flags & VB_HAS_VIDEO ) {\n size = bytestream2_get_le32 ( & c -> stream ) ;\n vb_decode_framedata ( c , offset ) ;\n bytestream2_skip ( & c -> stream , size - 4 ) ;\n }\n if ( flags & VB_HAS_PALETTE ) {\n size = bytestream2_get_le32 ( & c -> stream ) ;\n vb_decode_palette ( c , size ) ;\n }\n memcpy ( frame -> data [ 1 ] , c -> pal , AVPALETTE_SIZE ) ;\n frame -> palette_has_changed = flags & VB_HAS_PALETTE ;\n outptr = frame -> data [ 0 ] ;\n srcptr = c -> frame ;\n for ( i = 0 ;\n i < avctx -> height ;\n i ++ ) {\n memcpy ( outptr , srcptr , avctx -> width ) ;\n srcptr += avctx -> width ;\n outptr += frame -> linesize [ 0 ] ;\n }\n FFSWAP ( uint8_t * , c -> frame , c -> prev_frame ) ;\n * got_frame = 1 ;\n return avpkt -> size ;\n }"}
{"idx": 12399, "target": 0, "func": "static int dissect_h245_OpenLogicalChannelRejectCause ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_OpenLogicalChannelRejectCause , OpenLogicalChannelRejectCause_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 12400, "target": 0, "func": "static int com_nowarnings ( String * buffer __attribute__ ( ( unused ) ) , char * line __attribute__ ( ( unused ) ) ) {\n show_warnings = 0 ;\n put_info ( \"Show warnings disabled.\" , INFO_INFO ) ;\n return 0 ;\n }"}
{"idx": 12401, "target": 0, "func": "static int jbig2_decode_generic_template0_unopt ( Jbig2Ctx * ctx , Jbig2Segment * segment , const Jbig2GenericRegionParams * params , Jbig2ArithState * as , Jbig2Image * image , Jbig2ArithCx * GB_stats ) {\n const int GBW = image -> width ;\n const int GBH = image -> height ;\n uint32_t CONTEXT ;\n int x , y ;\n bool bit ;\n for ( y = 0 ;\n y < GBH ;\n y ++ ) {\n for ( x = 0 ;\n x < GBW ;\n x ++ ) {\n CONTEXT = 0 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 1 , y ) << 0 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 2 , y ) << 1 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 3 , y ) << 2 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 4 , y ) << 3 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x + params -> gbat [ 0 ] , y + params -> gbat [ 1 ] ) << 4 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x + 2 , y - 1 ) << 5 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x + 1 , y - 1 ) << 6 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x + 0 , y - 1 ) << 7 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 1 , y - 1 ) << 8 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 2 , y - 1 ) << 9 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x + params -> gbat [ 2 ] , y + params -> gbat [ 3 ] ) << 10 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x + params -> gbat [ 4 ] , y + params -> gbat [ 5 ] ) << 11 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x + 1 , y - 2 ) << 12 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x + 0 , y - 2 ) << 13 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 1 , y - 2 ) << 14 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x + params -> gbat [ 6 ] , y + params -> gbat [ 7 ] ) << 15 ;\n bit = jbig2_arith_decode ( as , & GB_stats [ CONTEXT ] ) ;\n if ( bit < 0 ) return - 1 ;\n jbig2_image_set_pixel ( image , x , y , bit ) ;\n }\n }\n return 0 ;\n }"}
{"idx": 12402, "target": 0, "func": "static bool do_init_cpuset_file ( struct cgroup_mount_point * mp , const char * path , const char * name ) {\n char value [ 1024 ] ;\n char * childfile , * parentfile = NULL , * tmp ;\n int ret ;\n bool ok = false ;\n childfile = cgroup_to_absolute_path ( mp , path , name ) ;\n if ( ! childfile ) return false ;\n ret = cgroup_read_from_file ( childfile , value , sizeof ( value ) ) ;\n if ( ret < 0 ) goto out ;\n if ( value [ 0 ] != '\\0' && value [ 0 ] != '\\n' ) {\n ok = true ;\n goto out ;\n }\n parentfile = strdup ( path ) ;\n if ( ! parentfile ) goto out ;\n tmp = strrchr ( parentfile , '/' ) ;\n if ( ! tmp ) goto out ;\n if ( tmp == parentfile ) tmp ++ ;\n * tmp = '\\0' ;\n tmp = parentfile ;\n parentfile = cgroup_to_absolute_path ( mp , tmp , name ) ;\n free ( tmp ) ;\n if ( ! parentfile ) goto out ;\n ret = cgroup_read_from_file ( parentfile , value , sizeof ( value ) ) ;\n if ( ret < 0 ) goto out ;\n if ( ret == sizeof ( value ) ) {\n ERROR ( \"parent cpuset value too long\" ) ;\n goto out ;\n }\n ok = ( lxc_write_to_file ( childfile , value , strlen ( value ) , false ) >= 0 ) ;\n if ( ! ok ) SYSERROR ( \"failed writing %s\" , childfile ) ;\n out : free ( parentfile ) ;\n free ( childfile ) ;\n return ok ;\n }"}
{"idx": 12403, "target": 0, "func": "static void exsltDynEvaluateFunction ( xmlXPathParserContextPtr ctxt , int nargs ) {\n xmlChar * str = NULL ;\n xmlXPathObjectPtr ret = NULL ;\n if ( ctxt == NULL ) return ;\n if ( nargs != 1 ) {\n xsltPrintErrorContext ( xsltXPathGetTransformContext ( ctxt ) , NULL , NULL ) ;\n xsltGenericError ( xsltGenericErrorContext , \"dyn:evalute() : invalid number of args %d\\n\" , nargs ) ;\n ctxt -> error = XPATH_INVALID_ARITY ;\n return ;\n }\n str = xmlXPathPopString ( ctxt ) ;\n if ( ! str || ! xmlStrlen ( str ) ) {\n if ( str ) xmlFree ( str ) ;\n valuePush ( ctxt , xmlXPathNewNodeSet ( NULL ) ) ;\n return ;\n }\n ret = xmlXPathEval ( str , ctxt -> context ) ;\n if ( ret ) valuePush ( ctxt , ret ) ;\n else {\n xsltGenericError ( xsltGenericErrorContext , \"dyn:evaluate() : unable to evaluate expression '%s'\\n\" , str ) ;\n valuePush ( ctxt , xmlXPathNewNodeSet ( NULL ) ) ;\n }\n xmlFree ( str ) ;\n return ;\n }"}
{"idx": 12404, "target": 0, "func": "static void e1000e_parse_rxbufsize ( E1000ECore * core ) {\n uint32_t rctl = core -> mac [ RCTL ] ;\n memset ( core -> rxbuf_sizes , 0 , sizeof ( core -> rxbuf_sizes ) ) ;\n if ( rctl & E1000_RCTL_DTYP_MASK ) {\n uint32_t bsize ;\n bsize = core -> mac [ PSRCTL ] & E1000_PSRCTL_BSIZE0_MASK ;\n core -> rxbuf_sizes [ 0 ] = ( bsize >> E1000_PSRCTL_BSIZE0_SHIFT ) * 128 ;\n bsize = core -> mac [ PSRCTL ] & E1000_PSRCTL_BSIZE1_MASK ;\n core -> rxbuf_sizes [ 1 ] = ( bsize >> E1000_PSRCTL_BSIZE1_SHIFT ) * 1024 ;\n bsize = core -> mac [ PSRCTL ] & E1000_PSRCTL_BSIZE2_MASK ;\n core -> rxbuf_sizes [ 2 ] = ( bsize >> E1000_PSRCTL_BSIZE2_SHIFT ) * 1024 ;\n bsize = core -> mac [ PSRCTL ] & E1000_PSRCTL_BSIZE3_MASK ;\n core -> rxbuf_sizes [ 3 ] = ( bsize >> E1000_PSRCTL_BSIZE3_SHIFT ) * 1024 ;\n }\n else if ( rctl & E1000_RCTL_FLXBUF_MASK ) {\n int flxbuf = rctl & E1000_RCTL_FLXBUF_MASK ;\n core -> rxbuf_sizes [ 0 ] = ( flxbuf >> E1000_RCTL_FLXBUF_SHIFT ) * 1024 ;\n }\n else {\n core -> rxbuf_sizes [ 0 ] = e1000x_rxbufsize ( rctl ) ;\n }\n trace_e1000e_rx_desc_buff_sizes ( core -> rxbuf_sizes [ 0 ] , core -> rxbuf_sizes [ 1 ] , core -> rxbuf_sizes [ 2 ] , core -> rxbuf_sizes [ 3 ] ) ;\n e1000e_calc_per_desc_buf_size ( core ) ;\n }"}
{"idx": 12405, "target": 0, "func": "static cmsBool isabsolutepath ( const char * path ) {\n char ThreeChars [ 4 ] ;\n if ( path == NULL ) return FALSE ;\n if ( path [ 0 ] == 0 ) return FALSE ;\n strncpy ( ThreeChars , path , 3 ) ;\n ThreeChars [ 3 ] = 0 ;\n if ( ThreeChars [ 0 ] == DIR_CHAR ) return TRUE ;\n # ifdef CMS_IS_WINDOWS_ if ( isalpha ( ( int ) ThreeChars [ 0 ] ) && ThreeChars [ 1 ] == ':' ) return TRUE ;\n # endif return FALSE ;\n }"}
{"idx": 12406, "target": 1, "func": "static const char * _CompoundTextgetName ( const UConverter * cnv ) {\n return \"x11-compound-text\" ;\n }"}
{"idx": 12407, "target": 0, "func": "TEST_F ( HistoryQuickProviderTest , DeleteMatch ) {\n GURL test_url ( \"http://slashdot.org/favorite_page.html\" ) ;\n std : : vector < std : : string > expected_urls ;\n expected_urls . push_back ( test_url . spec ( ) ) ;\n RunTest ( ASCIIToUTF16 ( \"slashdot\" ) , false , expected_urls , true , ASCIIToUTF16 ( \"slashdot.org/favorite_page.html\" ) , ASCIIToUTF16 ( \".org/favorite_page.html\" ) ) ;\n EXPECT_EQ ( 1U , ac_matches_ . size ( ) ) ;\n EXPECT_TRUE ( GetURLProxy ( test_url ) ) ;\n provider_ -> DeleteMatch ( ac_matches_ [ 0 ] ) ;\n WaitForURLsDeletedNotification ( client_ -> GetHistoryService ( ) ) ;\n EXPECT_FALSE ( GetURLProxy ( test_url ) ) ;\n expected_urls . clear ( ) ;\n RunTest ( ASCIIToUTF16 ( \"slashdot\" ) , false , expected_urls , true , ASCIIToUTF16 ( \"NONE EXPECTED\" ) , base : : string16 ( ) ) ;\n }"}
{"idx": 12408, "target": 0, "func": "static void decode_gain_and_index ( QCELPContext * q , float * gain ) {\n int i , subframes_count , g1 [ 16 ] ;\n float slope ;\n if ( q -> bitrate >= RATE_QUARTER ) {\n switch ( q -> bitrate ) {\n case RATE_FULL : subframes_count = 16 ;\n break ;\n case RATE_HALF : subframes_count = 4 ;\n break ;\n default : subframes_count = 5 ;\n }\n for ( i = 0 ;\n i < subframes_count ;\n i ++ ) {\n g1 [ i ] = 4 * q -> frame . cbgain [ i ] ;\n if ( q -> bitrate == RATE_FULL && ! ( ( i + 1 ) & 3 ) ) {\n g1 [ i ] += av_clip ( ( g1 [ i - 1 ] + g1 [ i - 2 ] + g1 [ i - 3 ] ) / 3 - 6 , 0 , 32 ) ;\n }\n gain [ i ] = qcelp_g12ga [ g1 [ i ] ] ;\n if ( q -> frame . cbsign [ i ] ) {\n gain [ i ] = - gain [ i ] ;\n q -> frame . cindex [ i ] = ( q -> frame . cindex [ i ] - 89 ) & 127 ;\n }\n }\n q -> prev_g1 [ 0 ] = g1 [ i - 2 ] ;\n q -> prev_g1 [ 1 ] = g1 [ i - 1 ] ;\n q -> last_codebook_gain = qcelp_g12ga [ g1 [ i - 1 ] ] ;\n if ( q -> bitrate == RATE_QUARTER ) {\n gain [ 7 ] = gain [ 4 ] ;\n gain [ 6 ] = 0.4 * gain [ 3 ] + 0.6 * gain [ 4 ] ;\n gain [ 5 ] = gain [ 3 ] ;\n gain [ 4 ] = 0.8 * gain [ 2 ] + 0.2 * gain [ 3 ] ;\n gain [ 3 ] = 0.2 * gain [ 1 ] + 0.8 * gain [ 2 ] ;\n gain [ 2 ] = gain [ 1 ] ;\n gain [ 1 ] = 0.6 * gain [ 0 ] + 0.4 * gain [ 1 ] ;\n }\n }\n else if ( q -> bitrate != SILENCE ) {\n if ( q -> bitrate == RATE_OCTAVE ) {\n g1 [ 0 ] = 2 * q -> frame . cbgain [ 0 ] + av_clip ( ( q -> prev_g1 [ 0 ] + q -> prev_g1 [ 1 ] ) / 2 - 5 , 0 , 54 ) ;\n subframes_count = 8 ;\n }\n else {\n assert ( q -> bitrate == I_F_Q ) ;\n g1 [ 0 ] = q -> prev_g1 [ 1 ] ;\n switch ( q -> erasure_count ) {\n case 1 : break ;\n case 2 : g1 [ 0 ] -= 1 ;\n break ;\n case 3 : g1 [ 0 ] -= 2 ;\n break ;\n default : g1 [ 0 ] -= 6 ;\n }\n if ( g1 [ 0 ] < 0 ) g1 [ 0 ] = 0 ;\n subframes_count = 4 ;\n }\n slope = 0.5 * ( qcelp_g12ga [ g1 [ 0 ] ] - q -> last_codebook_gain ) / subframes_count ;\n for ( i = 1 ;\n i <= subframes_count ;\n i ++ ) gain [ i - 1 ] = q -> last_codebook_gain + slope * i ;\n q -> last_codebook_gain = gain [ i - 2 ] ;\n q -> prev_g1 [ 0 ] = q -> prev_g1 [ 1 ] ;\n q -> prev_g1 [ 1 ] = g1 [ 0 ] ;\n }\n }"}
{"idx": 12409, "target": 0, "func": "void vp9_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint8_t * dst , ptrdiff_t stride , const uint8_t * above , const uint8_t * left ) {\n type ## _predictor ( dst , stride , size , above , left ) ;\n }\n # if CONFIG_VP9_HIGHBITDEPTH # define intra_pred_high_sized ( type , size ) void vp9_high_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint16_t * dst , ptrdiff_t stride , const uint16_t * above , const uint16_t * left , int bd ) {\n high_ ## type ## _predictor ( dst , stride , size , above , left , bd ) ;\n }\n # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) intra_pred_high_sized ( type , 4 ) intra_pred_high_sized ( type , 8 ) intra_pred_high_sized ( type , 16 ) intra_pred_high_sized ( type , 32 ) # else # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) # endif # if CONFIG_VP9_HIGHBITDEPTH static INLINE void high_d207_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) above ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) {\n dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n }\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) {\n dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n }\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n }\n static INLINE void high_d63_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) {\n dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n }\n dst += stride ;\n }\n }\n static INLINE void high_d45_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) {\n dst [ c ] = r + c + 2 < bs * 2 ? ROUND_POWER_OF_TWO ( above [ r + c ] + above [ r + c + 1 ] * 2 + above [ r + c + 2 ] , 2 ) : above [ bs * 2 - 1 ] ;\n }\n dst += stride ;\n }\n }\n static INLINE void high_d117_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] , 1 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 3 ;\n r < bs ;\n ++ r ) dst [ ( r - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ r - 3 ] + left [ r - 2 ] * 2 + left [ r - 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - 2 * stride + c - 1 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_d135_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - stride + c - 1 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_d153_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] , 1 ) ;\n for ( r = 1 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 1 ] + left [ r ] , 1 ) ;\n dst ++ ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] * 2 + above [ c + 1 ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = dst [ - stride + c - 2 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_v_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memcpy ( dst , above , bs * sizeof ( uint16_t ) ) ;\n dst += stride ;\n }\n }\n static INLINE void high_h_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) above ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , left [ r ] , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_tm_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n int ytop_left = above [ - 1 ] ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = clip_pixel_high ( left [ r ] + above [ c ] - ytop_left , bd ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_128_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) above ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , 128 << ( bd - 8 ) , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_left_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) above ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += left [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_top_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) left ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += above [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n const int count = 2 * bs ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) {\n sum += above [ i ] ;\n sum += left [ i ] ;\n }\n expected_dc = ( sum + ( count >> 1 ) ) / count ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n # endif static INLINE void d207_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n intra_pred_allsizes ( d207 ) static INLINE void d63_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d63 ) static INLINE void d45_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r + c + 2 < bs * 2 ? ROUND_POWER_OF_TWO ( above [ r + c ] + above [ r + c + 1 ] * 2 + above [ r + c + 2 ] , 2 ) : above [ bs * 2 - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d45 ) static INLINE void d117_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] , 1 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 3 ;\n r < bs ;\n ++ r ) dst [ ( r - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ r - 3 ] + left [ r - 2 ] * 2 + left [ r - 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - 2 * stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d117 ) static INLINE void d135_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d135 ) static INLINE void d153_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] , 1 ) ;\n for ( r = 1 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 1 ] + left [ r ] , 1 ) ;\n dst ++ ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] * 2 + above [ c + 1 ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = dst [ - stride + c - 2 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d153 ) static INLINE void v_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memcpy ( dst , above , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( v ) static INLINE void h_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset ( dst , left [ r ] , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( h ) static INLINE void tm_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n int ytop_left = above [ - 1 ] ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = clip_pixel ( left [ r ] + above [ c ] - ytop_left ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( tm ) static INLINE void dc_128_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r ;\n ( void ) above ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset ( dst , 128 , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( dc_128 )"}
{"idx": 12410, "target": 0, "func": "static void png_handle_row ( PNGDecContext * s ) {\n uint8_t * ptr , * last_row ;\n int got_line ;\n if ( ! s -> interlace_type ) {\n ptr = s -> image_buf + s -> image_linesize * s -> y ;\n if ( s -> color_type == PNG_COLOR_TYPE_RGB_ALPHA ) {\n png_filter_row ( & s -> dsp , s -> tmp_row , s -> crow_buf [ 0 ] , s -> crow_buf + 1 , s -> last_row , s -> row_size , s -> bpp ) ;\n convert_to_rgb32 ( ptr , s -> tmp_row , s -> width , s -> filter_type == PNG_FILTER_TYPE_LOCO ) ;\n FFSWAP ( uint8_t * , s -> last_row , s -> tmp_row ) ;\n }\n else {\n if ( s -> y == 0 ) last_row = s -> last_row ;\n else last_row = ptr - s -> image_linesize ;\n png_filter_row ( & s -> dsp , ptr , s -> crow_buf [ 0 ] , s -> crow_buf + 1 , last_row , s -> row_size , s -> bpp ) ;\n }\n if ( s -> filter_type == PNG_FILTER_TYPE_LOCO && s -> color_type == PNG_COLOR_TYPE_RGB && s -> y > 0 ) deloco_rgb24 ( ptr - s -> image_linesize , s -> row_size ) ;\n s -> y ++ ;\n if ( s -> y == s -> height ) {\n s -> state |= PNG_ALLIMAGE ;\n if ( s -> filter_type == PNG_FILTER_TYPE_LOCO && s -> color_type == PNG_COLOR_TYPE_RGB ) deloco_rgb24 ( ptr , s -> row_size ) ;\n }\n }\n else {\n got_line = 0 ;\n for ( ;\n ;\n ) {\n ptr = s -> image_buf + s -> image_linesize * s -> y ;\n if ( ( ff_png_pass_ymask [ s -> pass ] << ( s -> y & 7 ) ) & 0x80 ) {\n if ( got_line ) break ;\n png_filter_row ( & s -> dsp , s -> tmp_row , s -> crow_buf [ 0 ] , s -> crow_buf + 1 , s -> last_row , s -> pass_row_size , s -> bpp ) ;\n FFSWAP ( uint8_t * , s -> last_row , s -> tmp_row ) ;\n got_line = 1 ;\n }\n if ( ( png_pass_dsp_ymask [ s -> pass ] << ( s -> y & 7 ) ) & 0x80 ) {\n png_put_interlaced_row ( ptr , s -> width , s -> bits_per_pixel , s -> pass , s -> color_type , s -> last_row ) ;\n }\n s -> y ++ ;\n if ( s -> y == s -> height ) {\n for ( ;\n ;\n ) {\n if ( s -> pass == NB_PASSES - 1 ) {\n s -> state |= PNG_ALLIMAGE ;\n goto the_end ;\n }\n else {\n s -> pass ++ ;\n s -> y = 0 ;\n s -> pass_row_size = ff_png_pass_row_size ( s -> pass , s -> bits_per_pixel , s -> width ) ;\n s -> crow_size = s -> pass_row_size + 1 ;\n if ( s -> pass_row_size != 0 ) break ;\n }\n }\n }\n }\n the_end : ;\n }\n }"}
{"idx": 12411, "target": 0, "func": "static int SpoolssEndDocPrinter_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n e_ctx_hnd policy_hnd ;\n char * pol_name ;\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , & policy_hnd , NULL , FALSE , FALSE ) ;\n dcerpc_fetch_polhnd_data ( & policy_hnd , & pol_name , NULL , NULL , NULL , pinfo -> num ) ;\n if ( pol_name ) col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , pol_name ) ;\n return offset ;\n }"}
{"idx": 12412, "target": 0, "func": "MIMEField * mime_hdr_field_find ( MIMEHdrImpl * mh , const char * field_name_str , int field_name_len ) {\n HdrTokenHeapPrefix * token_info ;\n const bool is_wks = hdrtoken_is_wks ( field_name_str ) ;\n ink_assert ( field_name_len >= 0 ) ;\n # if TRACK_FIELD_FIND_CALLS Debug ( \"http\" , \"mime_hdr_field_find(hdr 0x%X, field %.*s): is_wks = %d\" , mh , field_name_len , field_name_str , is_wks ) ;\n # endif if ( is_wks ) {\n token_info = hdrtoken_wks_to_prefix ( field_name_str ) ;\n if ( ( token_info -> wks_info . mask ) && ( ( mh -> m_presence_bits & token_info -> wks_info . mask ) == 0 ) ) {\n # if TRACK_FIELD_FIND_CALLS Debug ( \"http\" , \"mime_hdr_field_find(hdr 0x%X, field %.*s): MISS (due to presence bits)\" , mh , field_name_len , field_name_str ) ;\n # endif return nullptr ;\n }\n int32_t slot_id = token_info -> wks_info . slotid ;\n if ( slot_id != MIME_SLOTID_NONE ) {\n uint32_t slotnum = mime_hdr_get_accelerator_slotnum ( mh , slot_id ) ;\n if ( slotnum != MIME_FIELD_SLOTNUM_UNKNOWN ) {\n MIMEField * f = _mime_hdr_field_list_search_by_slotnum ( mh , slotnum ) ;\n ink_assert ( ( f == nullptr ) || f -> is_live ( ) ) ;\n # if TRACK_FIELD_FIND_CALLS Debug ( \"http\" , \"mime_hdr_field_find(hdr 0x%X, field %.*s): %s (due to slot accelerators)\" , mh , field_name_len , field_name_str , ( f ? \"HIT\" : \"MISS\" ) ) ;\n # endif return f ;\n }\n else {\n # if TRACK_FIELD_FIND_CALLS Debug ( \"http\" , \"mime_hdr_field_find(hdr 0x%X, field %.*s): UNKNOWN (slot too big)\" , mh , field_name_len , field_name_str ) ;\n # endif }\n }\n MIMEField * f = _mime_hdr_field_list_search_by_wks ( mh , token_info -> wks_idx ) ;\n ink_assert ( ( f == nullptr ) || f -> is_live ( ) ) ;\n # if TRACK_FIELD_FIND_CALLS Debug ( \"http\" , \"mime_hdr_field_find(hdr 0x%X, field %.*s): %s (due to WKS list walk)\" , mh , field_name_len , field_name_str , ( f ? \"HIT\" : \"MISS\" ) ) ;\n # endif return f ;\n }\n else {\n MIMEField * f = _mime_hdr_field_list_search_by_string ( mh , field_name_str , field_name_len ) ;\n ink_assert ( ( f == nullptr ) || f -> is_live ( ) ) ;\n # if TRACK_FIELD_FIND_CALLS Debug ( \"http\" , \"mime_hdr_field_find(hdr 0x%X, field %.*s): %s (due to strcmp list walk)\" , mh , field_name_len , field_name_str , ( f ? \"HIT\" : \"MISS\" ) ) ;\n # endif return f ;\n }\n }"}
{"idx": 12413, "target": 0, "func": "int mbfl_buffer_converter_illegal_mode ( mbfl_buffer_converter * convd , int mode ) {\n if ( convd != NULL ) {\n if ( convd -> filter2 != NULL ) {\n convd -> filter2 -> illegal_mode = mode ;\n }\n else if ( convd -> filter1 != NULL ) {\n convd -> filter1 -> illegal_mode = mode ;\n }\n else {\n return 0 ;\n }\n }\n return 1 ;\n }"}
{"idx": 12414, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ClientHintsBrowserTest , ClientHintsNoLifetimeCookiesNotAllowed ) {\n base : : HistogramTester histogram_tester ;\n ContentSettingsForOneType host_settings ;\n scoped_refptr < content_settings : : CookieSettings > cookie_settings_ = CookieSettingsFactory : : GetForProfile ( browser ( ) -> profile ( ) ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> GetSettingsForOneType ( CONTENT_SETTINGS_TYPE_CLIENT_HINTS , std : : string ( ) , & host_settings ) ;\n EXPECT_EQ ( 0u , host_settings . size ( ) ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> SetContentSettingDefaultScope ( accept_ch_without_lifetime_img_localhost ( ) , GURL ( ) , CONTENT_SETTINGS_TYPE_COOKIES , std : : string ( ) , CONTENT_SETTING_BLOCK ) ;\n base : : RunLoop ( ) . RunUntilIdle ( ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , accept_ch_without_lifetime_img_localhost ( ) ) ;\n EXPECT_EQ ( 0u , count_client_hints_headers_seen ( ) ) ;\n EXPECT_EQ ( 0u , third_party_client_hints_count_seen ( ) ) ;\n VerifyContentSettingsNotNotified ( ) ;\n cookie_settings_ -> SetCookieSetting ( accept_ch_without_lifetime_img_localhost ( ) , CONTENT_SETTING_ALLOW ) ;\n base : : RunLoop ( ) . RunUntilIdle ( ) ;\n SetClientHintExpectationsOnSubresources ( true ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , accept_ch_without_lifetime_img_localhost ( ) ) ;\n EXPECT_EQ ( 3u , count_client_hints_headers_seen ( ) ) ;\n EXPECT_EQ ( 2u , third_party_request_count_seen ( ) ) ;\n EXPECT_EQ ( 0u , third_party_client_hints_count_seen ( ) ) ;\n SetClientHintExpectationsOnSubresources ( false ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> SetContentSettingDefaultScope ( accept_ch_without_lifetime_img_localhost ( ) , GURL ( ) , CONTENT_SETTINGS_TYPE_COOKIES , std : : string ( ) , CONTENT_SETTING_BLOCK ) ;\n base : : RunLoop ( ) . RunUntilIdle ( ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , accept_ch_without_lifetime_img_localhost ( ) ) ;\n EXPECT_EQ ( 3u , count_client_hints_headers_seen ( ) ) ;\n EXPECT_EQ ( 3u , third_party_request_count_seen ( ) ) ;\n EXPECT_EQ ( 0u , third_party_client_hints_count_seen ( ) ) ;\n }"}
{"idx": 12415, "target": 0, "func": "void IGDendelt ( void * d , const char * name , int l ) {\n struct IGDdatas * datas = ( struct IGDdatas * ) d ;\n datas -> level -- ;\n if ( ( l == 7 ) && ! memcmp ( name , \"service\" , l ) ) {\n if ( COMPARE ( datas -> tmp . servicetype , \"urn:schemas-upnp-org:service:WANCommonInterfaceConfig:\" ) ) {\n memcpy ( & datas -> CIF , & datas -> tmp , sizeof ( struct IGDdatas_service ) ) ;\n }\n else if ( COMPARE ( datas -> tmp . servicetype , \"urn:schemas-upnp-org:service:WANIPv6FirewallControl:\" ) ) {\n memcpy ( & datas -> IPv6FC , & datas -> tmp , sizeof ( struct IGDdatas_service ) ) ;\n }\n else if ( COMPARE ( datas -> tmp . servicetype , \"urn:schemas-upnp-org:service:WANIPConnection:\" ) || COMPARE ( datas -> tmp . servicetype , \"urn:schemas-upnp-org:service:WANPPPConnection:\" ) ) {\n if ( datas -> first . servicetype [ 0 ] == '\\0' ) {\n memcpy ( & datas -> first , & datas -> tmp , sizeof ( struct IGDdatas_service ) ) ;\n }\n else {\n memcpy ( & datas -> second , & datas -> tmp , sizeof ( struct IGDdatas_service ) ) ;\n }\n }\n }\n }"}
{"idx": 12416, "target": 0, "func": "unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }"}
{"idx": 12417, "target": 0, "func": "static void fix_interp_filter ( VP9_COMMON * cm ) {\n if ( cm -> interp_filter == SWITCHABLE ) {\n int count [ SWITCHABLE_FILTERS ] ;\n int i , j , c = 0 ;\n for ( i = 0 ;\n i < SWITCHABLE_FILTERS ;\n ++ i ) {\n count [ i ] = 0 ;\n for ( j = 0 ;\n j < SWITCHABLE_FILTER_CONTEXTS ;\n ++ j ) count [ i ] += cm -> counts . switchable_interp [ j ] [ i ] ;\n c += ( count [ i ] > 0 ) ;\n }\n if ( c == 1 ) {\n for ( i = 0 ;\n i < SWITCHABLE_FILTERS ;\n ++ i ) {\n if ( count [ i ] ) {\n cm -> interp_filter = i ;\n break ;\n }\n }\n }\n }\n }"}
{"idx": 12418, "target": 1, "func": "static void fill_decode_caches ( H264Context * h , int mb_type ) {\n int topleft_xy , top_xy , topright_xy , left_xy [ LEFT_MBS ] ;\n int topleft_type , top_type , topright_type , left_type [ LEFT_MBS ] ;\n const uint8_t * left_block = h -> left_block ;\n int i ;\n uint8_t * nnz ;\n uint8_t * nnz_cache ;\n topleft_xy = h -> topleft_mb_xy ;\n top_xy = h -> top_mb_xy ;\n topright_xy = h -> topright_mb_xy ;\n left_xy [ LTOP ] = h -> left_mb_xy [ LTOP ] ;\n left_xy [ LBOT ] = h -> left_mb_xy [ LBOT ] ;\n topleft_type = h -> topleft_type ;\n top_type = h -> top_type ;\n topright_type = h -> topright_type ;\n left_type [ LTOP ] = h -> left_type [ LTOP ] ;\n left_type [ LBOT ] = h -> left_type [ LBOT ] ;\n if ( ! IS_SKIP ( mb_type ) ) {\n if ( IS_INTRA ( mb_type ) ) {\n int type_mask = h -> pps . constrained_intra_pred ? IS_INTRA ( - 1 ) : - 1 ;\n h -> topleft_samples_available = h -> top_samples_available = h -> left_samples_available = 0xFFFF ;\n h -> topright_samples_available = 0xEEEA ;\n if ( ! ( top_type & type_mask ) ) {\n h -> topleft_samples_available = 0xB3FF ;\n h -> top_samples_available = 0x33FF ;\n h -> topright_samples_available = 0x26EA ;\n }\n if ( IS_INTERLACED ( mb_type ) != IS_INTERLACED ( left_type [ LTOP ] ) ) {\n if ( IS_INTERLACED ( mb_type ) ) {\n if ( ! ( left_type [ LTOP ] & type_mask ) ) {\n h -> topleft_samples_available &= 0xDFFF ;\n h -> left_samples_available &= 0x5FFF ;\n }\n if ( ! ( left_type [ LBOT ] & type_mask ) ) {\n h -> topleft_samples_available &= 0xFF5F ;\n h -> left_samples_available &= 0xFF5F ;\n }\n }\n else {\n int left_typei = h -> cur_pic . f . mb_type [ left_xy [ LTOP ] + h -> mb_stride ] ;\n assert ( left_xy [ LTOP ] == left_xy [ LBOT ] ) ;\n if ( ! ( ( left_typei & type_mask ) && ( left_type [ LTOP ] & type_mask ) ) ) {\n h -> topleft_samples_available &= 0xDF5F ;\n h -> left_samples_available &= 0x5F5F ;\n }\n }\n }\n else {\n if ( ! ( left_type [ LTOP ] & type_mask ) ) {\n h -> topleft_samples_available &= 0xDF5F ;\n h -> left_samples_available &= 0x5F5F ;\n }\n }\n if ( ! ( topleft_type & type_mask ) ) h -> topleft_samples_available &= 0x7FFF ;\n if ( ! ( topright_type & type_mask ) ) h -> topright_samples_available &= 0xFBFF ;\n if ( IS_INTRA4x4 ( mb_type ) ) {\n if ( IS_INTRA4x4 ( top_type ) ) {\n AV_COPY32 ( h -> intra4x4_pred_mode_cache + 4 + 8 * 0 , h -> intra4x4_pred_mode + h -> mb2br_xy [ top_xy ] ) ;\n }\n else {\n h -> intra4x4_pred_mode_cache [ 4 + 8 * 0 ] = h -> intra4x4_pred_mode_cache [ 5 + 8 * 0 ] = h -> intra4x4_pred_mode_cache [ 6 + 8 * 0 ] = h -> intra4x4_pred_mode_cache [ 7 + 8 * 0 ] = 2 - 3 * ! ( top_type & type_mask ) ;\n }\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n if ( IS_INTRA4x4 ( left_type [ LEFT ( i ) ] ) ) {\n int8_t * mode = h -> intra4x4_pred_mode + h -> mb2br_xy [ left_xy [ LEFT ( i ) ] ] ;\n h -> intra4x4_pred_mode_cache [ 3 + 8 * 1 + 2 * 8 * i ] = mode [ 6 - left_block [ 0 + 2 * i ] ] ;\n h -> intra4x4_pred_mode_cache [ 3 + 8 * 2 + 2 * 8 * i ] = mode [ 6 - left_block [ 1 + 2 * i ] ] ;\n }\n else {\n h -> intra4x4_pred_mode_cache [ 3 + 8 * 1 + 2 * 8 * i ] = h -> intra4x4_pred_mode_cache [ 3 + 8 * 2 + 2 * 8 * i ] = 2 - 3 * ! ( left_type [ LEFT ( i ) ] & type_mask ) ;\n }\n }\n }\n }\n nnz_cache = h -> non_zero_count_cache ;\n if ( top_type ) {\n nnz = h -> non_zero_count [ top_xy ] ;\n AV_COPY32 ( & nnz_cache [ 4 + 8 * 0 ] , & nnz [ 4 * 3 ] ) ;\n if ( ! h -> chroma_y_shift ) {\n AV_COPY32 ( & nnz_cache [ 4 + 8 * 5 ] , & nnz [ 4 * 7 ] ) ;\n AV_COPY32 ( & nnz_cache [ 4 + 8 * 10 ] , & nnz [ 4 * 11 ] ) ;\n }\n else {\n AV_COPY32 ( & nnz_cache [ 4 + 8 * 5 ] , & nnz [ 4 * 5 ] ) ;\n AV_COPY32 ( & nnz_cache [ 4 + 8 * 10 ] , & nnz [ 4 * 9 ] ) ;\n }\n }\n else {\n uint32_t top_empty = CABAC && ! IS_INTRA ( mb_type ) ? 0 : 0x40404040 ;\n AV_WN32A ( & nnz_cache [ 4 + 8 * 0 ] , top_empty ) ;\n AV_WN32A ( & nnz_cache [ 4 + 8 * 5 ] , top_empty ) ;\n AV_WN32A ( & nnz_cache [ 4 + 8 * 10 ] , top_empty ) ;\n }\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n if ( left_type [ LEFT ( i ) ] ) {\n nnz = h -> non_zero_count [ left_xy [ LEFT ( i ) ] ] ;\n nnz_cache [ 3 + 8 * 1 + 2 * 8 * i ] = nnz [ left_block [ 8 + 0 + 2 * i ] ] ;\n nnz_cache [ 3 + 8 * 2 + 2 * 8 * i ] = nnz [ left_block [ 8 + 1 + 2 * i ] ] ;\n if ( CHROMA444 ) {\n nnz_cache [ 3 + 8 * 6 + 2 * 8 * i ] = nnz [ left_block [ 8 + 0 + 2 * i ] + 4 * 4 ] ;\n nnz_cache [ 3 + 8 * 7 + 2 * 8 * i ] = nnz [ left_block [ 8 + 1 + 2 * i ] + 4 * 4 ] ;\n nnz_cache [ 3 + 8 * 11 + 2 * 8 * i ] = nnz [ left_block [ 8 + 0 + 2 * i ] + 8 * 4 ] ;\n nnz_cache [ 3 + 8 * 12 + 2 * 8 * i ] = nnz [ left_block [ 8 + 1 + 2 * i ] + 8 * 4 ] ;\n }\n else if ( CHROMA422 ) {\n nnz_cache [ 3 + 8 * 6 + 2 * 8 * i ] = nnz [ left_block [ 8 + 0 + 2 * i ] - 2 + 4 * 4 ] ;\n nnz_cache [ 3 + 8 * 7 + 2 * 8 * i ] = nnz [ left_block [ 8 + 1 + 2 * i ] - 2 + 4 * 4 ] ;\n nnz_cache [ 3 + 8 * 11 + 2 * 8 * i ] = nnz [ left_block [ 8 + 0 + 2 * i ] - 2 + 8 * 4 ] ;\n nnz_cache [ 3 + 8 * 12 + 2 * 8 * i ] = nnz [ left_block [ 8 + 1 + 2 * i ] - 2 + 8 * 4 ] ;\n }\n else {\n nnz_cache [ 3 + 8 * 6 + 8 * i ] = nnz [ left_block [ 8 + 4 + 2 * i ] ] ;\n nnz_cache [ 3 + 8 * 11 + 8 * i ] = nnz [ left_block [ 8 + 5 + 2 * i ] ] ;\n }\n }\n else {\n nnz_cache [ 3 + 8 * 1 + 2 * 8 * i ] = nnz_cache [ 3 + 8 * 2 + 2 * 8 * i ] = nnz_cache [ 3 + 8 * 6 + 2 * 8 * i ] = nnz_cache [ 3 + 8 * 7 + 2 * 8 * i ] = nnz_cache [ 3 + 8 * 11 + 2 * 8 * i ] = nnz_cache [ 3 + 8 * 12 + 2 * 8 * i ] = CABAC && ! IS_INTRA ( mb_type ) ? 0 : 64 ;\n }\n }\n if ( CABAC ) {\n if ( top_type ) h -> top_cbp = h -> cbp_table [ top_xy ] ;\n else h -> top_cbp = IS_INTRA ( mb_type ) ? 0x7CF : 0x00F ;\n if ( left_type [ LTOP ] ) {\n h -> left_cbp = ( h -> cbp_table [ left_xy [ LTOP ] ] & 0x7F0 ) | ( ( h -> cbp_table [ left_xy [ LTOP ] ] >> ( left_block [ 0 ] & ( ~ 1 ) ) ) & 2 ) | ( ( ( h -> cbp_table [ left_xy [ LBOT ] ] >> ( left_block [ 2 ] & ( ~ 1 ) ) ) & 2 ) << 2 ) ;\n }\n else {\n h -> left_cbp = IS_INTRA ( mb_type ) ? 0x7CF : 0x00F ;\n }\n }\n }\n if ( IS_INTER ( mb_type ) || ( IS_DIRECT ( mb_type ) && h -> direct_spatial_mv_pred ) ) {\n int list ;\n int b_stride = h -> b_stride ;\n for ( list = 0 ;\n list < h -> list_count ;\n list ++ ) {\n int8_t * ref_cache = & h -> ref_cache [ list ] [ scan8 [ 0 ] ] ;\n int8_t * ref = h -> cur_pic . f . ref_index [ list ] ;\n int16_t ( * mv_cache ) [ 2 ] = & h -> mv_cache [ list ] [ scan8 [ 0 ] ] ;\n int16_t ( * mv ) [ 2 ] = h -> cur_pic . f . motion_val [ list ] ;\n if ( ! USES_LIST ( mb_type , list ) ) continue ;\n assert ( ! ( IS_DIRECT ( mb_type ) && ! h -> direct_spatial_mv_pred ) ) ;\n if ( USES_LIST ( top_type , list ) ) {\n const int b_xy = h -> mb2b_xy [ top_xy ] + 3 * b_stride ;\n AV_COPY128 ( mv_cache [ 0 - 1 * 8 ] , mv [ b_xy + 0 ] ) ;\n ref_cache [ 0 - 1 * 8 ] = ref_cache [ 1 - 1 * 8 ] = ref [ 4 * top_xy + 2 ] ;\n ref_cache [ 2 - 1 * 8 ] = ref_cache [ 3 - 1 * 8 ] = ref [ 4 * top_xy + 3 ] ;\n }\n else {\n AV_ZERO128 ( mv_cache [ 0 - 1 * 8 ] ) ;\n AV_WN32A ( & ref_cache [ 0 - 1 * 8 ] , ( ( top_type ? LIST_NOT_USED : PART_NOT_AVAILABLE ) & 0xFF ) * 0x01010101u ) ;\n }\n if ( mb_type & ( MB_TYPE_16x8 | MB_TYPE_8x8 ) ) {\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n int cache_idx = - 1 + i * 2 * 8 ;\n if ( USES_LIST ( left_type [ LEFT ( i ) ] , list ) ) {\n const int b_xy = h -> mb2b_xy [ left_xy [ LEFT ( i ) ] ] + 3 ;\n const int b8_xy = 4 * left_xy [ LEFT ( i ) ] + 1 ;\n AV_COPY32 ( mv_cache [ cache_idx ] , mv [ b_xy + b_stride * left_block [ 0 + i * 2 ] ] ) ;\n AV_COPY32 ( mv_cache [ cache_idx + 8 ] , mv [ b_xy + b_stride * left_block [ 1 + i * 2 ] ] ) ;\n ref_cache [ cache_idx ] = ref [ b8_xy + ( left_block [ 0 + i * 2 ] & ~ 1 ) ] ;\n ref_cache [ cache_idx + 8 ] = ref [ b8_xy + ( left_block [ 1 + i * 2 ] & ~ 1 ) ] ;\n }\n else {\n AV_ZERO32 ( mv_cache [ cache_idx ] ) ;\n AV_ZERO32 ( mv_cache [ cache_idx + 8 ] ) ;\n ref_cache [ cache_idx ] = ref_cache [ cache_idx + 8 ] = ( left_type [ LEFT ( i ) ] ) ? LIST_NOT_USED : PART_NOT_AVAILABLE ;\n }\n }\n }\n else {\n if ( USES_LIST ( left_type [ LTOP ] , list ) ) {\n const int b_xy = h -> mb2b_xy [ left_xy [ LTOP ] ] + 3 ;\n const int b8_xy = 4 * left_xy [ LTOP ] + 1 ;\n AV_COPY32 ( mv_cache [ - 1 ] , mv [ b_xy + b_stride * left_block [ 0 ] ] ) ;\n ref_cache [ - 1 ] = ref [ b8_xy + ( left_block [ 0 ] & ~ 1 ) ] ;\n }\n else {\n AV_ZERO32 ( mv_cache [ - 1 ] ) ;\n ref_cache [ - 1 ] = left_type [ LTOP ] ? LIST_NOT_USED : PART_NOT_AVAILABLE ;\n }\n }\n if ( USES_LIST ( topright_type , list ) ) {\n const int b_xy = h -> mb2b_xy [ topright_xy ] + 3 * b_stride ;\n AV_COPY32 ( mv_cache [ 4 - 1 * 8 ] , mv [ b_xy ] ) ;\n ref_cache [ 4 - 1 * 8 ] = ref [ 4 * topright_xy + 2 ] ;\n }\n else {\n AV_ZERO32 ( mv_cache [ 4 - 1 * 8 ] ) ;\n ref_cache [ 4 - 1 * 8 ] = topright_type ? LIST_NOT_USED : PART_NOT_AVAILABLE ;\n }\n if ( ref_cache [ 4 - 1 * 8 ] < 0 ) {\n if ( USES_LIST ( topleft_type , list ) ) {\n const int b_xy = h -> mb2b_xy [ topleft_xy ] + 3 + b_stride + ( h -> topleft_partition & 2 * b_stride ) ;\n const int b8_xy = 4 * topleft_xy + 1 + ( h -> topleft_partition & 2 ) ;\n AV_COPY32 ( mv_cache [ - 1 - 1 * 8 ] , mv [ b_xy ] ) ;\n ref_cache [ - 1 - 1 * 8 ] = ref [ b8_xy ] ;\n }\n else {\n AV_ZERO32 ( mv_cache [ - 1 - 1 * 8 ] ) ;\n ref_cache [ - 1 - 1 * 8 ] = topleft_type ? LIST_NOT_USED : PART_NOT_AVAILABLE ;\n }\n }\n if ( ( mb_type & ( MB_TYPE_SKIP | MB_TYPE_DIRECT2 ) ) && ! FRAME_MBAFF ) continue ;\n if ( ! ( mb_type & ( MB_TYPE_SKIP | MB_TYPE_DIRECT2 ) ) ) {\n uint8_t ( * mvd_cache ) [ 2 ] = & h -> mvd_cache [ list ] [ scan8 [ 0 ] ] ;\n uint8_t ( * mvd ) [ 2 ] = h -> mvd_table [ list ] ;\n ref_cache [ 2 + 8 * 0 ] = ref_cache [ 2 + 8 * 2 ] = PART_NOT_AVAILABLE ;\n AV_ZERO32 ( mv_cache [ 2 + 8 * 0 ] ) ;\n AV_ZERO32 ( mv_cache [ 2 + 8 * 2 ] ) ;\n if ( CABAC ) {\n if ( USES_LIST ( top_type , list ) ) {\n const int b_xy = h -> mb2br_xy [ top_xy ] ;\n AV_COPY64 ( mvd_cache [ 0 - 1 * 8 ] , mvd [ b_xy + 0 ] ) ;\n }\n else {\n AV_ZERO64 ( mvd_cache [ 0 - 1 * 8 ] ) ;\n }\n if ( USES_LIST ( left_type [ LTOP ] , list ) ) {\n const int b_xy = h -> mb2br_xy [ left_xy [ LTOP ] ] + 6 ;\n AV_COPY16 ( mvd_cache [ - 1 + 0 * 8 ] , mvd [ b_xy - left_block [ 0 ] ] ) ;\n AV_COPY16 ( mvd_cache [ - 1 + 1 * 8 ] , mvd [ b_xy - left_block [ 1 ] ] ) ;\n }\n else {\n AV_ZERO16 ( mvd_cache [ - 1 + 0 * 8 ] ) ;\n AV_ZERO16 ( mvd_cache [ - 1 + 1 * 8 ] ) ;\n }\n if ( USES_LIST ( left_type [ LBOT ] , list ) ) {\n const int b_xy = h -> mb2br_xy [ left_xy [ LBOT ] ] + 6 ;\n AV_COPY16 ( mvd_cache [ - 1 + 2 * 8 ] , mvd [ b_xy - left_block [ 2 ] ] ) ;\n AV_COPY16 ( mvd_cache [ - 1 + 3 * 8 ] , mvd [ b_xy - left_block [ 3 ] ] ) ;\n }\n else {\n AV_ZERO16 ( mvd_cache [ - 1 + 2 * 8 ] ) ;\n AV_ZERO16 ( mvd_cache [ - 1 + 3 * 8 ] ) ;\n }\n AV_ZERO16 ( mvd_cache [ 2 + 8 * 0 ] ) ;\n AV_ZERO16 ( mvd_cache [ 2 + 8 * 2 ] ) ;\n if ( h -> slice_type_nos == AV_PICTURE_TYPE_B ) {\n uint8_t * direct_cache = & h -> direct_cache [ scan8 [ 0 ] ] ;\n uint8_t * direct_table = h -> direct_table ;\n fill_rectangle ( direct_cache , 4 , 4 , 8 , MB_TYPE_16x16 >> 1 , 1 ) ;\n if ( IS_DIRECT ( top_type ) ) {\n AV_WN32A ( & direct_cache [ - 1 * 8 ] , 0x01010101u * ( MB_TYPE_DIRECT2 >> 1 ) ) ;\n }\n else if ( IS_8X8 ( top_type ) ) {\n int b8_xy = 4 * top_xy ;\n direct_cache [ 0 - 1 * 8 ] = direct_table [ b8_xy + 2 ] ;\n direct_cache [ 2 - 1 * 8 ] = direct_table [ b8_xy + 3 ] ;\n }\n else {\n AV_WN32A ( & direct_cache [ - 1 * 8 ] , 0x01010101 * ( MB_TYPE_16x16 >> 1 ) ) ;\n }\n if ( IS_DIRECT ( left_type [ LTOP ] ) ) direct_cache [ - 1 + 0 * 8 ] = MB_TYPE_DIRECT2 >> 1 ;\n else if ( IS_8X8 ( left_type [ LTOP ] ) ) direct_cache [ - 1 + 0 * 8 ] = direct_table [ 4 * left_xy [ LTOP ] + 1 + ( left_block [ 0 ] & ~ 1 ) ] ;\n else direct_cache [ - 1 + 0 * 8 ] = MB_TYPE_16x16 >> 1 ;\n if ( IS_DIRECT ( left_type [ LBOT ] ) ) direct_cache [ - 1 + 2 * 8 ] = MB_TYPE_DIRECT2 >> 1 ;\n else if ( IS_8X8 ( left_type [ LBOT ] ) ) direct_cache [ - 1 + 2 * 8 ] = direct_table [ 4 * left_xy [ LBOT ] + 1 + ( left_block [ 2 ] & ~ 1 ) ] ;\n else direct_cache [ - 1 + 2 * 8 ] = MB_TYPE_16x16 >> 1 ;\n }\n }\n }\n # define MAP_MVS MAP_F2F ( scan8 [ 0 ] - 1 - 1 * 8 , topleft_type ) MAP_F2F ( scan8 [ 0 ] + 0 - 1 * 8 , top_type ) MAP_F2F ( scan8 [ 0 ] + 1 - 1 * 8 , top_type ) MAP_F2F ( scan8 [ 0 ] + 2 - 1 * 8 , top_type ) MAP_F2F ( scan8 [ 0 ] + 3 - 1 * 8 , top_type ) MAP_F2F ( scan8 [ 0 ] + 4 - 1 * 8 , topright_type ) MAP_F2F ( scan8 [ 0 ] - 1 + 0 * 8 , left_type [ LTOP ] ) MAP_F2F ( scan8 [ 0 ] - 1 + 1 * 8 , left_type [ LTOP ] ) MAP_F2F ( scan8 [ 0 ] - 1 + 2 * 8 , left_type [ LBOT ] ) MAP_F2F ( scan8 [ 0 ] - 1 + 3 * 8 , left_type [ LBOT ] ) if ( FRAME_MBAFF ) {\n if ( MB_FIELD ) {\n # define MAP_F2F ( idx , mb_type ) if ( ! IS_INTERLACED ( mb_type ) && h -> ref_cache [ list ] [ idx ] >= 0 ) {\n h -> ref_cache [ list ] [ idx ] <<= 1 ;\n h -> mv_cache [ list ] [ idx ] [ 1 ] /= 2 ;\n h -> mvd_cache [ list ] [ idx ] [ 1 ] >>= 1 ;\n }\n MAP_MVS }\n else {\n # undef MAP_F2F # define MAP_F2F ( idx , mb_type ) if ( IS_INTERLACED ( mb_type ) && h -> ref_cache [ list ] [ idx ] >= 0 ) {\n h -> ref_cache [ list ] [ idx ] >>= 1 ;\n h -> mv_cache [ list ] [ idx ] [ 1 ] <<= 1 ;\n h -> mvd_cache [ list ] [ idx ] [ 1 ] <<= 1 ;\n }\n MAP_MVS # undef MAP_F2F }\n }\n }\n }\n h -> neighbor_transform_size = ! ! IS_8x8DCT ( top_type ) + ! ! IS_8x8DCT ( left_type [ LTOP ] ) ;\n }"}
{"idx": 12419, "target": 0, "func": "static REFERENCE_MODE read_block_reference_mode ( VP9_COMMON * cm , const MACROBLOCKD * xd , vp9_reader * r ) {\n if ( cm -> reference_mode == REFERENCE_MODE_SELECT ) {\n const int ctx = vp9_get_reference_mode_context ( cm , xd ) ;\n const REFERENCE_MODE mode = ( REFERENCE_MODE ) vp9_read ( r , cm -> fc . comp_inter_prob [ ctx ] ) ;\n if ( ! cm -> frame_parallel_decoding_mode ) ++ cm -> counts . comp_inter [ ctx ] [ mode ] ;\n return mode ;\n }\n else {\n return cm -> reference_mode ;\n }\n }"}
{"idx": 12420, "target": 0, "func": "void pdf_process_annot ( fz_context * ctx , pdf_processor * proc , pdf_document * doc , pdf_page * page , pdf_annot * annot , fz_cookie * cookie ) {\n int flags = pdf_to_int ( ctx , pdf_dict_get ( ctx , annot -> obj , PDF_NAME_F ) ) ;\n if ( flags & ( PDF_ANNOT_IS_INVISIBLE | PDF_ANNOT_IS_HIDDEN ) ) return ;\n if ( pdf_annot_type ( ctx , annot ) == PDF_ANNOT_POPUP ) return ;\n if ( proc -> usage ) {\n if ( ! strcmp ( proc -> usage , \"Print\" ) && ! ( flags & PDF_ANNOT_IS_PRINT ) ) return ;\n if ( ! strcmp ( proc -> usage , \"View\" ) && ( flags & PDF_ANNOT_IS_NO_VIEW ) ) return ;\n }\n if ( pdf_is_hidden_ocg ( ctx , doc -> ocg , NULL , proc -> usage , pdf_dict_get ( ctx , annot -> obj , PDF_NAME_OC ) ) ) return ;\n if ( proc -> op_q && proc -> op_cm && proc -> op_Do_form && proc -> op_Q && annot -> ap ) {\n fz_matrix matrix ;\n pdf_annot_transform ( ctx , annot , & matrix ) ;\n proc -> op_q ( ctx , proc ) ;\n proc -> op_cm ( ctx , proc , matrix . a , matrix . b , matrix . c , matrix . d , matrix . e , matrix . f ) ;\n proc -> op_Do_form ( ctx , proc , NULL , annot -> ap , pdf_page_resources ( ctx , page ) ) ;\n proc -> op_Q ( ctx , proc ) ;\n }\n }"}
{"idx": 12421, "target": 0, "func": "static int dissect_H323_UserInformation_PDU ( tvbuff_t * tvb _U_ , packet_info * pinfo _U_ , proto_tree * tree _U_ , void * data _U_ ) {\n int offset = 0 ;\n asn1_ctx_t asn1_ctx ;\n asn1_ctx_init ( & asn1_ctx , ASN1_ENC_PER , TRUE , pinfo ) ;\n offset = dissect_h225_H323_UserInformation ( tvb , offset , & asn1_ctx , tree , hf_h225_H323_UserInformation_PDU ) ;\n offset += 7 ;\n offset >>= 3 ;\n return offset ;\n }"}
{"idx": 12422, "target": 0, "func": "uint32_t gic_acknowledge_irq ( GICState * s , int cpu ) {\n int new_irq ;\n int cm = 1 << cpu ;\n new_irq = s -> current_pending [ cpu ] ;\n if ( new_irq == 1023 || GIC_GET_PRIORITY ( new_irq , cpu ) >= s -> running_priority [ cpu ] ) {\n DPRINTF ( \"ACK no pending IRQ\\n\" ) ;\n return 1023 ;\n }\n s -> last_active [ new_irq ] [ cpu ] = s -> running_irq [ cpu ] ;\n GIC_CLEAR_PENDING ( new_irq , GIC_TEST_MODEL ( new_irq ) ? ALL_CPU_MASK : cm ) ;\n gic_set_running_irq ( s , cpu , new_irq ) ;\n DPRINTF ( \"ACK %d\\n\" , new_irq ) ;\n return new_irq ;\n }"}
{"idx": 12423, "target": 0, "func": "int fz_colorspace_device_n_has_only_cmyk ( fz_context * ctx , const fz_colorspace * cs ) {\n return cs && ( ( cs -> flags & FZ_CS_HAS_CMYK_AND_SPOTS ) == FZ_CS_HAS_CMYK ) ;\n }"}
{"idx": 12424, "target": 0, "func": "static guint reginfo ( int * hf_ptr , const char * name , const char * abbr , const char * desc , enum ftenum ft , field_display_e base , value_string_ext * vs_ext , guint32 mask ) {\n hf_register_info hf ;\n hf . p_id = hf_ptr ;\n hf . hfinfo . name = name ;\n hf . hfinfo . abbrev = abbr ;\n hf . hfinfo . type = ft ;\n hf . hfinfo . display = base ;\n hf . hfinfo . strings = NULL ;\n hf . hfinfo . bitmask = mask ;\n hf . hfinfo . blurb = desc ;\n HFILL_INIT ( hf ) ;\n if ( vs_ext ) {\n hf . hfinfo . strings = vs_ext ;\n }\n wmem_array_append_one ( build_dict . hf , hf ) ;\n return wmem_array_get_count ( build_dict . hf ) ;\n }"}
{"idx": 12425, "target": 0, "func": "static char * xps_parse_float_array ( char * s , int num , float * x ) {\n int k = 0 ;\n if ( s == NULL || * s == 0 ) return NULL ;\n while ( * s ) {\n while ( * s == 0x0d || * s == '\\t' || * s == ' ' || * s == 0x0a ) s ++ ;\n x [ k ] = ( float ) strtod ( s , & s ) ;\n while ( * s == 0x0d || * s == '\\t' || * s == ' ' || * s == 0x0a ) s ++ ;\n if ( * s == ',' ) s ++ ;\n if ( ++ k == num ) break ;\n }\n return s ;\n }"}
{"idx": 12426, "target": 1, "func": "static void draw_char ( AVCodecContext * avctx , int c ) {\n AnsiContext * s = avctx -> priv_data ;\n int fg = s -> fg ;\n int bg = s -> bg ;\n if ( ( s -> attributes & ATTR_BOLD ) ) fg += 8 ;\n if ( ( s -> attributes & ATTR_BLINK ) ) bg += 8 ;\n if ( ( s -> attributes & ATTR_REVERSE ) ) FFSWAP ( int , fg , bg ) ;\n if ( ( s -> attributes & ATTR_CONCEALED ) ) fg = bg ;\n ff_draw_pc_font ( s -> frame . data [ 0 ] + s -> y * s -> frame . linesize [ 0 ] + s -> x , s -> frame . linesize [ 0 ] , s -> font , s -> font_height , c , fg , bg ) ;\n s -> x += FONT_WIDTH ;\n if ( s -> x >= avctx -> width ) {\n s -> x = 0 ;\n hscroll ( avctx ) ;\n }\n }"}
{"idx": 12427, "target": 0, "func": "static int aes_wrap_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n EVP_AES_WRAP_CTX * wctx = EVP_C_DATA ( EVP_AES_WRAP_CTX , ctx ) ;\n if ( ! iv && ! key ) return 1 ;\n if ( key ) {\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & wctx -> ks . ks ) ;\n else AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & wctx -> ks . ks ) ;\n if ( ! iv ) wctx -> iv = NULL ;\n }\n if ( iv ) {\n memcpy ( EVP_CIPHER_CTX_iv_noconst ( ctx ) , iv , EVP_CIPHER_CTX_iv_length ( ctx ) ) ;\n wctx -> iv = EVP_CIPHER_CTX_iv_noconst ( ctx ) ;\n }\n return 1 ;\n }"}
{"idx": 12428, "target": 0, "func": "TEST_P ( GLES2DecoderTestWithCHROMIUMPathRendering , PathStencilFuncCHROMIUMValidArgs ) {\n EXPECT_CALL ( * gl_ , PathStencilFuncNV ( GL_NEVER , 2 , 3 ) ) ;\n SpecializedSetup < cmds : : PathStencilFuncCHROMIUM , 0 > ( true ) ;\n cmds : : PathStencilFuncCHROMIUM cmd ;\n cmd . Init ( GL_NEVER , 2 , 3 ) ;\n EXPECT_EQ ( error : : kNoError , ExecuteCmd ( cmd ) ) ;\n EXPECT_EQ ( GL_NO_ERROR , GetGLError ( ) ) ;\n }"}
{"idx": 12429, "target": 0, "func": "static int tcomp2 ( const void * _t1 , const void * _t2 ) {\n struct taboff * t1 = * ( ( struct taboff * * ) _t1 ) , * t2 = * ( ( struct taboff * * ) _t2 ) ;\n if ( t1 -> offset > t2 -> offset ) return ( 1 ) ;\n else if ( t1 -> offset < t2 -> offset ) return ( - 1 ) ;\n return ( 0 ) ;\n }"}
{"idx": 12430, "target": 0, "func": "static void mainwindow_resize_windows ( MAIN_WINDOW_REC * window ) {\n GSList * tmp ;\n int resized ;\n mainwindow_set_screen_size ( window ) ;\n resized = FALSE ;\n for ( tmp = windows ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n WINDOW_REC * rec = tmp -> data ;\n if ( rec -> gui_data != NULL && WINDOW_GUI ( rec ) -> parent == window && ! window_size_equals ( rec , window ) ) {\n resized = TRUE ;\n gui_window_resize ( rec , MAIN_WINDOW_TEXT_WIDTH ( window ) , MAIN_WINDOW_TEXT_HEIGHT ( window ) ) ;\n }\n }\n if ( resized ) signal_emit ( \"mainwindow resized\" , 1 , window ) ;\n }"}
{"idx": 12431, "target": 0, "func": "xmlRegisterNodeFunc xmlThrDefRegisterNodeDefault ( xmlRegisterNodeFunc func ) {\n xmlRegisterNodeFunc old ;\n xmlMutexLock ( xmlThrDefMutex ) ;\n old = xmlRegisterNodeDefaultValueThrDef ;\n __xmlRegisterCallbacks = 1 ;\n xmlRegisterNodeDefaultValueThrDef = func ;\n xmlMutexUnlock ( xmlThrDefMutex ) ;\n return ( old ) ;\n }"}
{"idx": 12432, "target": 0, "func": "void * checked_xcalloc ( size_t num , size_t size ) {\n size_t res ;\n if ( check_mul_overflow ( num , size , & res ) ) abort ( ) ;\n alloc_limit_assert ( \"checked_xcalloc\" , ( res ) ) ;\n return xcalloc ( num , size ) ;\n }"}
{"idx": 12433, "target": 0, "func": "static void launch_location_update_from_uri ( LaunchLocation * location , const char * uri ) {\n nautilus_file_unref ( location -> file ) ;\n g_free ( location -> uri ) ;\n location -> file = nautilus_file_get_by_uri ( uri ) ;\n location -> uri = g_strdup ( uri ) ;\n }"}
{"idx": 12434, "target": 0, "func": "SPL_METHOD ( SplFileObject , fgetss ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n zval * arg2 = NULL ;\n MAKE_STD_ZVAL ( arg2 ) ;\n if ( intern -> u . file . max_line_len > 0 ) {\n ZVAL_LONG ( arg2 , intern -> u . file . max_line_len ) ;\n }\n else {\n ZVAL_LONG ( arg2 , 1024 ) ;\n }\n spl_filesystem_file_free_line ( intern TSRMLS_CC ) ;\n intern -> u . file . current_line_num ++ ;\n FileFunctionCall ( fgetss , ZEND_NUM_ARGS ( ) , arg2 ) ;\n zval_ptr_dtor ( & arg2 ) ;\n }"}
{"idx": 12435, "target": 0, "func": "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_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 9216U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 12436, "target": 0, "func": "PyObject * PyString_Decode ( const char * s , Py_ssize_t size , const char * encoding , const char * errors ) {\n PyObject * v , * str ;\n str = PyString_FromStringAndSize ( s , size ) ;\n if ( str == NULL ) return NULL ;\n v = PyString_AsDecodedString ( str , encoding , errors ) ;\n Py_DECREF ( str ) ;\n return v ;\n }"}
{"idx": 12437, "target": 0, "func": "int qemuMonitorJSONSetMigrationSpeed ( qemuMonitorPtr mon , unsigned long bandwidth ) {\n int ret ;\n virJSONValuePtr cmd ;\n virJSONValuePtr reply = NULL ;\n cmd = qemuMonitorJSONMakeCommand ( \"migrate_set_speed\" , \"U:value\" , bandwidth * 1024ULL * 1024ULL , NULL ) ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 12438, "target": 0, "func": "void proto_reg_handoff_zbee_zcl_ballast_configuration ( void ) {\n zbee_zcl_init_cluster ( ZBEE_PROTOABBREV_ZCL_BALLAST_CONFIG , proto_zbee_zcl_ballast_configuration , ett_zbee_zcl_ballast_configuration , ZBEE_ZCL_CID_BALLAST_CONFIG , ZBEE_MFG_CODE_NONE , hf_zbee_zcl_ballast_configuration_attr_id , - 1 , - 1 , ( zbee_zcl_fn_attr_data ) dissect_zcl_ballast_configuration_attr_data ) ;\n }"}
{"idx": 12439, "target": 1, "func": "static void sbr_chirp ( SpectralBandReplication * sbr , SBRData * ch_data ) {\n int i ;\n float new_bw ;\n static const float bw_tab [ ] = {\n 0.0f , 0.75f , 0.9f , 0.98f }\n ;\n for ( i = 0 ;\n i < sbr -> n_q ;\n i ++ ) {\n if ( ch_data -> bs_invf_mode [ 0 ] [ i ] + ch_data -> bs_invf_mode [ 1 ] [ i ] == 1 ) {\n new_bw = 0.6f ;\n }\n else new_bw = bw_tab [ ch_data -> bs_invf_mode [ 0 ] [ i ] ] ;\n if ( new_bw < ch_data -> bw_array [ i ] ) {\n new_bw = 0.75f * new_bw + 0.25f * ch_data -> bw_array [ i ] ;\n }\n else new_bw = 0.90625f * new_bw + 0.09375f * ch_data -> bw_array [ i ] ;\n ch_data -> bw_array [ i ] = new_bw < 0.015625f ? 0.0f : new_bw ;\n }\n }"}
{"idx": 12440, "target": 0, "func": "ssize_t e1000e_receive ( E1000ECore * core , const uint8_t * buf , size_t size ) {\n const struct iovec iov = {\n . iov_base = ( uint8_t * ) buf , . iov_len = size }\n ;\n return e1000e_receive_iov ( core , & iov , 1 ) ;\n }"}
{"idx": 12441, "target": 1, "func": "static int ipvideo_decode_block_opcode_0x1 ( IpvideoContext * s ) {\n return copy_from ( s , & s -> second_last_frame , 0 , 0 ) ;\n }"}
{"idx": 12442, "target": 0, "func": "static int cost_segmap ( int * segcounts , vp9_prob * probs ) {\n const int c01 = segcounts [ 0 ] + segcounts [ 1 ] ;\n const int c23 = segcounts [ 2 ] + segcounts [ 3 ] ;\n const int c45 = segcounts [ 4 ] + segcounts [ 5 ] ;\n const int c67 = segcounts [ 6 ] + segcounts [ 7 ] ;\n const int c0123 = c01 + c23 ;\n const int c4567 = c45 + c67 ;\n int cost = c0123 * vp9_cost_zero ( probs [ 0 ] ) + c4567 * vp9_cost_one ( probs [ 0 ] ) ;\n if ( c0123 > 0 ) {\n cost += c01 * vp9_cost_zero ( probs [ 1 ] ) + c23 * vp9_cost_one ( probs [ 1 ] ) ;\n if ( c01 > 0 ) cost += segcounts [ 0 ] * vp9_cost_zero ( probs [ 3 ] ) + segcounts [ 1 ] * vp9_cost_one ( probs [ 3 ] ) ;\n if ( c23 > 0 ) cost += segcounts [ 2 ] * vp9_cost_zero ( probs [ 4 ] ) + segcounts [ 3 ] * vp9_cost_one ( probs [ 4 ] ) ;\n }\n if ( c4567 > 0 ) {\n cost += c45 * vp9_cost_zero ( probs [ 2 ] ) + c67 * vp9_cost_one ( probs [ 2 ] ) ;\n if ( c45 > 0 ) cost += segcounts [ 4 ] * vp9_cost_zero ( probs [ 5 ] ) + segcounts [ 5 ] * vp9_cost_one ( probs [ 5 ] ) ;\n if ( c67 > 0 ) cost += segcounts [ 6 ] * vp9_cost_zero ( probs [ 6 ] ) + segcounts [ 7 ] * vp9_cost_one ( probs [ 6 ] ) ;\n }\n return cost ;\n }"}
{"idx": 12443, "target": 0, "func": "static void xhci_msix_update ( XHCIState * xhci , int v ) {\n PCIDevice * pci_dev = PCI_DEVICE ( xhci ) ;\n bool enabled ;\n if ( ! msix_enabled ( pci_dev ) ) {\n return ;\n }\n enabled = xhci -> intr [ v ] . iman & IMAN_IE ;\n if ( enabled == xhci -> intr [ v ] . msix_used ) {\n return ;\n }\n if ( enabled ) {\n trace_usb_xhci_irq_msix_use ( v ) ;\n msix_vector_use ( pci_dev , v ) ;\n xhci -> intr [ v ] . msix_used = true ;\n }\n else {\n trace_usb_xhci_irq_msix_unuse ( v ) ;\n msix_vector_unuse ( pci_dev , v ) ;\n xhci -> intr [ v ] . msix_used = false ;\n }\n }"}
{"idx": 12444, "target": 0, "func": "void create_script_for_cluster_analyze ( char * * analyze_script_file_name ) {\n FILE * script = NULL ;\n PQExpBufferData user_specification ;\n prep_status ( \"Creating script to analyze new cluster\" ) ;\n initPQExpBuffer ( & user_specification ) ;\n if ( os_info . user_specified ) {\n appendPQExpBufferStr ( & user_specification , \"-U \" ) ;\n appendShellString ( & user_specification , os_info . user ) ;\n appendPQExpBufferChar ( & user_specification , ' ' ) ;\n }\n * analyze_script_file_name = psprintf ( \"%sanalyze_new_cluster.%s\" , SCRIPT_PREFIX , SCRIPT_EXT ) ;\n if ( ( script = fopen_priv ( * analyze_script_file_name , \"w\" ) ) == NULL ) pg_fatal ( \"Could not open file \\\"%s\\\": %s\\n\" , * analyze_script_file_name , getErrorText ( ) ) ;\n # ifndef WIN32 fprintf ( script , \"#!/bin/sh\\n\\n\" ) ;\n # else fprintf ( script , \"@echo off\\n\" ) ;\n # endif fprintf ( script , \"echo %sThis script will generate minimal optimizer statistics rapidly%s\\n\" , ECHO_QUOTE , ECHO_QUOTE ) ;\n fprintf ( script , \"echo %sso your system is usable, and then gather statistics twice more%s\\n\" , ECHO_QUOTE , ECHO_QUOTE ) ;\n fprintf ( script , \"echo %swith increasing accuracy. When it is done, your system will%s\\n\" , ECHO_QUOTE , ECHO_QUOTE ) ;\n fprintf ( script , \"echo %shave the default level of optimizer statistics.%s\\n\" , ECHO_QUOTE , ECHO_QUOTE ) ;\n fprintf ( script , \"echo%s\\n\\n\" , ECHO_BLANK ) ;\n fprintf ( script , \"echo %sIf you have used ALTER TABLE to modify the statistics target for%s\\n\" , ECHO_QUOTE , ECHO_QUOTE ) ;\n fprintf ( script , \"echo %sany tables, you might want to remove them and restore them after%s\\n\" , ECHO_QUOTE , ECHO_QUOTE ) ;\n fprintf ( script , \"echo %srunning this script because they will delay fast statistics generation.%s\\n\" , ECHO_QUOTE , ECHO_QUOTE ) ;\n fprintf ( script , \"echo%s\\n\\n\" , ECHO_BLANK ) ;\n fprintf ( script , \"echo %sIf you would like default statistics as quickly as possible, cancel%s\\n\" , ECHO_QUOTE , ECHO_QUOTE ) ;\n fprintf ( script , \"echo %sthis script and run:%s\\n\" , ECHO_QUOTE , ECHO_QUOTE ) ;\n fprintf ( script , \"echo %s \\\"%s/vacuumdb\\\" %s--all %s%s\\n\" , ECHO_QUOTE , new_cluster . bindir , user_specification . data , ( GET_MAJOR_VERSION ( old_cluster . major_version ) >= 804 ) ? \"--analyze-only\" : \"--analyze\" , ECHO_QUOTE ) ;\n fprintf ( script , \"echo%s\\n\\n\" , ECHO_BLANK ) ;\n fprintf ( script , \"\\\"%s/vacuumdb\\\" %s--all --analyze-in-stages\\n\" , new_cluster . bindir , user_specification . data ) ;\n if ( GET_MAJOR_VERSION ( old_cluster . major_version ) < 804 ) fprintf ( script , \"\\\"%s/vacuumdb\\\" %s--all\\n\" , new_cluster . bindir , user_specification . data ) ;\n fprintf ( script , \"echo%s\\n\\n\" , ECHO_BLANK ) ;\n fprintf ( script , \"echo %sDone%s\\n\" , ECHO_QUOTE , ECHO_QUOTE ) ;\n fclose ( script ) ;\n # ifndef WIN32 if ( chmod ( * analyze_script_file_name , S_IRWXU ) != 0 ) pg_fatal ( \"Could not add execute permission to file \\\"%s\\\": %s\\n\" , * analyze_script_file_name , getErrorText ( ) ) ;\n # endif termPQExpBuffer ( & user_specification ) ;\n check_ok ( ) ;\n }"}
{"idx": 12445, "target": 0, "func": "static void icc_conv_pixmap ( fz_context * ctx , fz_pixmap * dst , fz_pixmap * src , fz_colorspace * prf , const fz_default_colorspaces * default_cs , const fz_color_params * color_params , int copy_spots ) {\n fz_colorspace * srcs = src -> colorspace ;\n fz_colorspace * dsts = dst -> colorspace ;\n fz_icclink * link ;\n int i ;\n unsigned char * inputpos , * outputpos ;\n int src_n ;\n if ( fz_colorspace_is_device_gray ( ctx , srcs ) && fz_colorspace_is_cmyk ( ctx , dsts ) ) {\n fast_gray_to_cmyk ( ctx , dst , src , prf , default_cs , color_params , copy_spots ) ;\n return ;\n }\n if ( default_cs ) {\n switch ( fz_colorspace_type ( ctx , src -> colorspace ) ) {\n case FZ_COLORSPACE_GRAY : if ( src -> colorspace == fz_device_gray ( ctx ) ) srcs = fz_default_gray ( ctx , default_cs ) ;\n break ;\n case FZ_COLORSPACE_RGB : if ( src -> colorspace == fz_device_rgb ( ctx ) ) srcs = fz_default_rgb ( ctx , default_cs ) ;\n break ;\n case FZ_COLORSPACE_CMYK : if ( src -> colorspace == fz_device_cmyk ( ctx ) ) srcs = fz_default_cmyk ( ctx , default_cs ) ;\n break ;\n default : break ;\n }\n }\n inputpos = src -> samples ;\n outputpos = dst -> samples ;\n link = fz_get_icc_link ( ctx , dsts , dst -> s + dst -> alpha , srcs , src -> s + src -> alpha , prf , color_params , 1 , copy_spots , & src_n ) ;\n if ( link -> is_identity ) {\n for ( i = 0 ;\n i < src -> h ;\n i ++ ) {\n memcpy ( outputpos , inputpos , src -> stride ) ;\n inputpos = inputpos + src -> stride ;\n outputpos = outputpos + dst -> stride ;\n }\n }\n else fz_cmm_transform_pixmap ( ctx , link , dst , src ) ;\n fz_drop_icclink ( ctx , link ) ;\n }"}
{"idx": 12446, "target": 0, "func": "static void vmsvga_bios_write ( void * opaque , uint32_t address , uint32_t data ) {\n printf ( \"%s: what are we supposed to do with (%08x)?\\n\" , __func__ , data ) ;\n }"}
{"idx": 12447, "target": 1, "func": "static void encode_block ( int plane , int block , BLOCK_SIZE plane_bsize , TX_SIZE tx_size , void * arg ) {\n struct encode_b_args * const args = arg ;\n MACROBLOCK * const x = args -> x ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n struct optimize_ctx * const ctx = args -> ctx ;\n struct macroblock_plane * const p = & x -> plane [ plane ] ;\n struct macroblockd_plane * const pd = & xd -> plane [ plane ] ;\n int16_t * const dqcoeff = BLOCK_OFFSET ( pd -> dqcoeff , block ) ;\n int i , j ;\n uint8_t * dst ;\n ENTROPY_CONTEXT * a , * l ;\n txfrm_block_to_raster_xy ( plane_bsize , tx_size , block , & i , & j ) ;\n dst = & pd -> dst . buf [ 4 * j * pd -> dst . stride + 4 * i ] ;\n a = & ctx -> ta [ plane ] [ i ] ;\n l = & ctx -> tl [ plane ] [ j ] ;\n if ( x -> zcoeff_blk [ tx_size ] [ block ] && plane == 0 ) {\n p -> eobs [ block ] = 0 ;\n * a = * l = 0 ;\n return ;\n }\n if ( ! x -> skip_recode ) {\n if ( max_txsize_lookup [ plane_bsize ] == tx_size ) {\n if ( x -> skip_txfm [ ( plane << 2 ) + ( block >> ( tx_size << 1 ) ) ] == 0 ) {\n if ( x -> quant_fp ) vp9_xform_quant_fp ( x , plane , block , plane_bsize , tx_size ) ;\n else vp9_xform_quant ( x , plane , block , plane_bsize , tx_size ) ;\n }\n else if ( x -> skip_txfm [ ( plane << 2 ) + ( block >> ( tx_size << 1 ) ) ] == 2 ) {\n vp9_xform_quant_dc ( x , plane , block , plane_bsize , tx_size ) ;\n }\n else {\n p -> eobs [ block ] = 0 ;\n * a = * l = 0 ;\n return ;\n }\n }\n else {\n vp9_xform_quant ( x , plane , block , plane_bsize , tx_size ) ;\n }\n }\n if ( x -> optimize && ( ! x -> skip_recode || ! x -> skip_optimize ) ) {\n const int ctx = combine_entropy_contexts ( * a , * l ) ;\n * a = * l = optimize_b ( x , plane , block , tx_size , ctx ) > 0 ;\n }\n else {\n * a = * l = p -> eobs [ block ] > 0 ;\n }\n if ( p -> eobs [ block ] ) * ( args -> skip ) = 0 ;\n if ( x -> skip_encode || p -> eobs [ block ] == 0 ) return ;\n switch ( tx_size ) {\n case TX_32X32 : vp9_idct32x32_add ( dqcoeff , dst , pd -> dst . stride , p -> eobs [ block ] ) ;\n break ;\n case TX_16X16 : vp9_idct16x16_add ( dqcoeff , dst , pd -> dst . stride , p -> eobs [ block ] ) ;\n break ;\n case TX_8X8 : vp9_idct8x8_add ( dqcoeff , dst , pd -> dst . stride , p -> eobs [ block ] ) ;\n break ;\n case TX_4X4 : x -> itxm_add ( dqcoeff , dst , pd -> dst . stride , p -> eobs [ block ] ) ;\n break ;\n default : assert ( 0 && \"Invalid transform size\" ) ;\n break ;\n }\n }"}
{"idx": 12448, "target": 0, "func": "static void clear_mi_border ( const VP9_COMMON * cm , MODE_INFO * mi ) {\n int i ;\n vpx_memset ( mi , 0 , sizeof ( * mi ) * cm -> mi_stride ) ;\n for ( i = 1 ;\n i < cm -> mi_rows + 1 ;\n ++ i ) vpx_memset ( & mi [ i * cm -> mi_stride ] , 0 , sizeof ( * mi ) ) ;\n }"}
{"idx": 12449, "target": 0, "func": "void TSCacheHttpInfoKeySet ( TSCacheHttpInfo infop , TSCacheKey keyp ) {\n CacheHTTPInfo * info = ( CacheHTTPInfo * ) infop ;\n INK_MD5 * key = ( INK_MD5 * ) keyp ;\n info -> object_key_set ( * key ) ;\n }"}
{"idx": 12450, "target": 0, "func": "bool get_op_hash_functions ( Oid opno , RegProcedure * lhs_procno , RegProcedure * rhs_procno ) {\n bool result = false ;\n CatCList * catlist ;\n int i ;\n if ( lhs_procno ) * lhs_procno = InvalidOid ;\n if ( rhs_procno ) * rhs_procno = InvalidOid ;\n catlist = SearchSysCacheList1 ( AMOPOPID , ObjectIdGetDatum ( opno ) ) ;\n for ( i = 0 ;\n i < catlist -> n_members ;\n i ++ ) {\n HeapTuple tuple = & catlist -> members [ i ] -> tuple ;\n Form_pg_amop aform = ( Form_pg_amop ) GETSTRUCT ( tuple ) ;\n if ( aform -> amopmethod == HASH_AM_OID && aform -> amopstrategy == HTEqualStrategyNumber ) {\n if ( lhs_procno ) {\n * lhs_procno = get_opfamily_proc ( aform -> amopfamily , aform -> amoplefttype , aform -> amoplefttype , HASHPROC ) ;\n if ( ! OidIsValid ( * lhs_procno ) ) continue ;\n if ( ! rhs_procno ) {\n result = true ;\n break ;\n }\n if ( aform -> amoplefttype == aform -> amoprighttype ) {\n * rhs_procno = * lhs_procno ;\n result = true ;\n break ;\n }\n }\n if ( rhs_procno ) {\n * rhs_procno = get_opfamily_proc ( aform -> amopfamily , aform -> amoprighttype , aform -> amoprighttype , HASHPROC ) ;\n if ( ! OidIsValid ( * rhs_procno ) ) {\n if ( lhs_procno ) * lhs_procno = InvalidOid ;\n continue ;\n }\n result = true ;\n break ;\n }\n }\n }\n ReleaseSysCacheList ( catlist ) ;\n return result ;\n }"}
{"idx": 12451, "target": 0, "func": "static int dsa_sig_print ( BIO * bp , const X509_ALGOR * sigalg , const ASN1_STRING * sig , int indent , ASN1_PCTX * pctx ) {\n DSA_SIG * dsa_sig ;\n const unsigned char * p ;\n if ( ! sig ) {\n if ( BIO_puts ( bp , \"\\n\" ) <= 0 ) return 0 ;\n else return 1 ;\n }\n p = sig -> data ;\n dsa_sig = d2i_DSA_SIG ( NULL , & p , sig -> length ) ;\n if ( dsa_sig ) {\n int rv = 0 ;\n size_t buf_len = 0 ;\n unsigned char * m = NULL ;\n update_buflen ( dsa_sig -> r , & buf_len ) ;\n update_buflen ( dsa_sig -> s , & buf_len ) ;\n m = OPENSSL_malloc ( buf_len + 10 ) ;\n if ( m == NULL ) {\n DSAerr ( DSA_F_DSA_SIG_PRINT , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n if ( BIO_write ( bp , \"\\n\" , 1 ) != 1 ) goto err ;\n if ( ! ASN1_bn_print ( bp , \"r: \" , dsa_sig -> r , m , indent ) ) goto err ;\n if ( ! ASN1_bn_print ( bp , \"s: \" , dsa_sig -> s , m , indent ) ) goto err ;\n rv = 1 ;\n err : OPENSSL_free ( m ) ;\n DSA_SIG_free ( dsa_sig ) ;\n return rv ;\n }\n return X509_signature_dump ( bp , sig , indent ) ;\n }"}
{"idx": 12452, "target": 0, "func": "unsigned long # define BN_LONG long # define BN_BITS 128 # define BN_BYTES 8 # define BN_BITS2 64 # define BN_BITS4 32 # define BN_MASK ( 0xffffffffffffffffffffffffffffffffLL ) # define BN_MASK2 ( 0xffffffffffffffffL ) # define BN_MASK2l ( 0xffffffffL ) # define BN_MASK2h ( 0xffffffff00000000L ) # define BN_MASK2h1 ( 0xffffffff80000000L ) # define BN_TBIT ( 0x8000000000000000L ) # define BN_DEC_CONV ( 10000000000000000000UL ) # define BN_DEC_FMT1 \"%lu\" # define BN_DEC_FMT2 \"%019lu\" # define BN_DEC_NUM 19 # define BN_HEX_FMT1 \"%lX\" # define BN_HEX_FMT2 \"%016lX\" # endif # ifdef SIXTY_FOUR_BIT # undef BN_LLONG # undef BN_ULLONG # define BN_ULONG unsigned long long # define BN_LONG long long # define BN_BITS 128 # define BN_BYTES 8 # define BN_BITS2 64 # define BN_BITS4 32 # define BN_MASK2 ( 0xffffffffffffffffLL ) # define BN_MASK2l ( 0xffffffffL ) # define BN_MASK2h ( 0xffffffff00000000LL ) # define BN_MASK2h1 ( 0xffffffff80000000LL ) # define BN_TBIT ( 0x8000000000000000LL ) # define BN_DEC_CONV ( 10000000000000000000ULL ) # define BN_DEC_FMT1 \"%llu\" # define BN_DEC_FMT2 \"%019llu\" # define BN_DEC_NUM 19 # define BN_HEX_FMT1 \"%llX\" # define BN_HEX_FMT2 \"%016llX\" # endif # ifdef THIRTY_TWO_BIT # ifdef BN_LLONG # if defined ( _WIN32 ) && ! defined ( __GNUC__ ) # define BN_ULLONG unsigned __int64 # define BN_MASK ( 0xffffffffffffffffI64 ) # else # define BN_ULLONG unsigned long long # define BN_MASK ( 0xffffffffffffffffLL ) # endif # endif # define BN_ULONG unsigned int # define BN_LONG int # define BN_BITS 64 # define BN_BYTES 4 # define BN_BITS2 32 # define BN_BITS4 16 # define BN_MASK2 ( 0xffffffffL ) # define BN_MASK2l ( 0xffff ) # define BN_MASK2h1 ( 0xffff8000L ) # define BN_MASK2h ( 0xffff0000L ) # define BN_TBIT ( 0x80000000L ) # define BN_DEC_CONV ( 1000000000L ) # define BN_DEC_FMT1 \"%u\" # define BN_DEC_FMT2 \"%09u\" # define BN_DEC_NUM 9 # define BN_HEX_FMT1 \"%X\" # define BN_HEX_FMT2 \"%08X\" # endif # define BN_DEFAULT_BITS 1280 # define BN_FLG_MALLOCED 0x01 # define BN_FLG_STATIC_DATA 0x02 # define BN_FLG_CONSTTIME 0x04 # ifndef OPENSSL_NO_DEPRECATED # define BN_FLG_EXP_CONSTTIME BN_FLG_CONSTTIME # endif # ifndef OPENSSL_NO_DEPRECATED # define BN_FLG_FREE 0x8000 # endif # define BN_set_flags ( b , n ) ( ( b ) -> flags |= ( n ) ) # define BN_get_flags ( b , n ) ( ( b ) -> flags & ( n ) ) # define BN_with_flags ( dest , b , n ) ( ( dest ) -> d = ( b ) -> d , \\ ( dest ) -> top = ( b ) -> top , \\ ( dest ) -> dmax = ( b ) -> dmax , \\ ( dest ) -> neg = ( b ) -> neg , \\ ( dest ) -> flags = ( ( ( dest ) -> flags & BN_FLG_MALLOCED ) \\ | ( ( b ) -> flags & ~ BN_FLG_MALLOCED ) \\ | BN_FLG_STATIC_DATA \\ | ( n ) ) ) # if 0 typedef struct bignum_st BIGNUM ;\n typedef struct bignum_ctx BN_CTX ;\n typedef struct bn_blinding_st BN_BLINDING ;\n typedef struct bn_mont_ctx_st BN_MONT_CTX ;\n typedef struct bn_recp_ctx_st BN_RECP_CTX ;\n typedef struct bn_gencb_st BN_GENCB ;\n # endif struct bignum_st {\n BN_ULONG * d ;\n int top ;\n int dmax ;\n int neg ;\n int flags ;\n }\n ;\n struct bn_mont_ctx_st {\n int ri ;\n BIGNUM RR ;\n BIGNUM N ;\n BIGNUM Ni ;\n BN_ULONG n0 [ 2 ] ;\n int flags ;\n }\n ;\n struct bn_recp_ctx_st {\n BIGNUM N ;\n BIGNUM Nr ;\n int num_bits ;\n int shift ;\n int flags ;\n }\n ;\n struct bn_gencb_st {\n unsigned int ver ;\n void * arg ;\n union {\n void ( * cb_1 ) ( int , int , void * ) ;\n int ( * cb_2 ) ( int , int , BN_GENCB * ) ;\n }\n cb ;\n }\n ;\n int BN_GENCB_call ( BN_GENCB * cb , int a , int b ) ;\n # define BN_GENCB_set_old ( gencb , callback , cb_arg ) {\n \\ BN_GENCB * tmp_gencb = ( gencb ) ;\n \\ tmp_gencb -> ver = 1 ;\n \\ tmp_gencb -> arg = ( cb_arg ) ;\n \\ tmp_gencb -> cb . cb_1 = ( callback ) ;\n }\n # define BN_GENCB_set ( gencb , callback , cb_arg ) {\n \\ BN_GENCB * tmp_gencb = ( gencb ) ;\n \\ tmp_gencb -> ver = 2 ;\n \\ tmp_gencb -> arg = ( cb_arg ) ;\n \\ tmp_gencb -> cb . cb_2 = ( callback ) ;\n }\n # define BN_prime_checks 0 # define BN_prime_checks_for_size ( b ) ( ( b ) >= 1300 ? 2 : \\ ( b ) >= 850 ? 3 : \\ ( b ) >= 650 ? 4 : \\ ( b ) >= 550 ? 5 : \\ ( b ) >= 450 ? 6 : \\ ( b ) >= 400 ? 7 : \\ ( b ) >= 350 ? 8 : \\ ( b ) >= 300 ? 9 : \\ ( b ) >= 250 ? 12 : \\ ( b ) >= 200 ? 15 : \\ ( b ) >= 150 ? 18 : \\ 27 ) # define BN_num_bytes ( a ) ( ( BN_num_bits ( a ) + 7 ) / 8 ) # define BN_abs_is_word ( a , w ) ( ( ( ( a ) -> top == 1 ) && ( ( a ) -> d [ 0 ] == ( BN_ULONG ) ( w ) ) ) || \\ ( ( ( w ) == 0 ) && ( ( a ) -> top == 0 ) ) ) # define BN_is_zero ( a ) ( ( a ) -> top == 0 ) # define BN_is_one ( a ) ( BN_abs_is_word ( ( a ) , 1 ) && ! ( a ) -> neg ) # define BN_is_word ( a , w ) ( BN_abs_is_word ( ( a ) , ( w ) ) && ( ! ( w ) || ! ( a ) -> neg ) ) # define BN_is_odd ( a ) ( ( ( a ) -> top > 0 ) && ( ( a ) -> d [ 0 ] & 1 ) ) # define BN_one ( a ) ( BN_set_word ( ( a ) , 1 ) ) # define BN_zero_ex ( a ) \\ do {\n \\ BIGNUM * _tmp_bn = ( a ) ;\n \\ _tmp_bn -> top = 0 ;\n \\ _tmp_bn -> neg = 0 ;\n \\ }\n while ( 0 ) # ifdef OPENSSL_NO_DEPRECATED # define BN_zero ( a ) BN_zero_ex ( a ) # else # define BN_zero ( a ) ( BN_set_word ( ( a ) , 0 ) ) # endif const BIGNUM * BN_value_one ( void ) ;\n char * BN_options ( void ) ;\n BN_CTX * BN_CTX_new ( void ) ;\n # ifndef OPENSSL_NO_DEPRECATED void BN_CTX_init ( BN_CTX * c ) ;\n # endif void BN_CTX_free ( BN_CTX * c ) ;\n void BN_CTX_start ( BN_CTX * ctx ) ;\n BIGNUM * BN_CTX_get ( BN_CTX * ctx ) ;\n void BN_CTX_end ( BN_CTX * ctx ) ;\n int BN_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_pseudo_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_pseudo_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_num_bits ( const BIGNUM * a ) ;\n int BN_num_bits_word ( BN_ULONG l ) ;\n BIGNUM * BN_new ( void ) ;\n void BN_init ( BIGNUM * ) ;\n void BN_clear_free ( BIGNUM * a ) ;\n BIGNUM * BN_copy ( BIGNUM * a , const BIGNUM * b ) ;\n void BN_swap ( BIGNUM * a , BIGNUM * b ) ;\n BIGNUM * BN_bin2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2bin ( const BIGNUM * a , unsigned char * to ) ;\n BIGNUM * BN_mpi2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2mpi ( const BIGNUM * a , unsigned char * to ) ;\n int BN_sub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_usub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_uadd ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n int BN_sqr ( BIGNUM * r , const BIGNUM * a , BN_CTX * ctx ) ;\n void BN_set_negative ( BIGNUM * b , int n ) ;\n # define BN_is_negative ( a ) ( ( a ) -> neg != 0 ) int BN_div ( BIGNUM * dv , BIGNUM * rem , const BIGNUM * m , const BIGNUM * d , BN_CTX * ctx ) ;\n # define BN_mod ( rem , m , d , ctx ) BN_div ( NULL , ( rem ) , ( m ) , ( d ) , ( ctx ) ) int BN_nnmod ( BIGNUM * r , const BIGNUM * m , const BIGNUM * d , BN_CTX * ctx ) ;\n int BN_mod_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_add_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m ) ;\n int BN_mod_sub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_sub_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m ) ;\n int BN_mod_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_sqr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift1 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift1_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m ) ;\n int BN_mod_lshift ( BIGNUM * r , const BIGNUM * a , int n , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift_quick ( BIGNUM * r , const BIGNUM * a , int n , const BIGNUM * m ) ;\n BN_ULONG BN_mod_word ( const BIGNUM * a , BN_ULONG w ) ;\n BN_ULONG BN_div_word ( BIGNUM * a , BN_ULONG w )"}
{"idx": 12453, "target": 0, "func": "static void iadst16_8col ( __m128i * in ) {\n __m128i s [ 16 ] , x [ 16 ] , u [ 32 ] , v [ 32 ] ;\n const __m128i k__cospi_p01_p31 = pair_set_epi16 ( cospi_1_64 , cospi_31_64 ) ;\n const __m128i k__cospi_p31_m01 = pair_set_epi16 ( cospi_31_64 , - cospi_1_64 ) ;\n const __m128i k__cospi_p05_p27 = pair_set_epi16 ( cospi_5_64 , cospi_27_64 ) ;\n const __m128i k__cospi_p27_m05 = pair_set_epi16 ( cospi_27_64 , - cospi_5_64 ) ;\n const __m128i k__cospi_p09_p23 = pair_set_epi16 ( cospi_9_64 , cospi_23_64 ) ;\n const __m128i k__cospi_p23_m09 = pair_set_epi16 ( cospi_23_64 , - cospi_9_64 ) ;\n const __m128i k__cospi_p13_p19 = pair_set_epi16 ( cospi_13_64 , cospi_19_64 ) ;\n const __m128i k__cospi_p19_m13 = pair_set_epi16 ( cospi_19_64 , - cospi_13_64 ) ;\n const __m128i k__cospi_p17_p15 = pair_set_epi16 ( cospi_17_64 , cospi_15_64 ) ;\n const __m128i k__cospi_p15_m17 = pair_set_epi16 ( cospi_15_64 , - cospi_17_64 ) ;\n const __m128i k__cospi_p21_p11 = pair_set_epi16 ( cospi_21_64 , cospi_11_64 ) ;\n const __m128i k__cospi_p11_m21 = pair_set_epi16 ( cospi_11_64 , - cospi_21_64 ) ;\n const __m128i k__cospi_p25_p07 = pair_set_epi16 ( cospi_25_64 , cospi_7_64 ) ;\n const __m128i k__cospi_p07_m25 = pair_set_epi16 ( cospi_7_64 , - cospi_25_64 ) ;\n const __m128i k__cospi_p29_p03 = pair_set_epi16 ( cospi_29_64 , cospi_3_64 ) ;\n const __m128i k__cospi_p03_m29 = pair_set_epi16 ( cospi_3_64 , - cospi_29_64 ) ;\n const __m128i k__cospi_p04_p28 = pair_set_epi16 ( cospi_4_64 , cospi_28_64 ) ;\n const __m128i k__cospi_p28_m04 = pair_set_epi16 ( cospi_28_64 , - cospi_4_64 ) ;\n const __m128i k__cospi_p20_p12 = pair_set_epi16 ( cospi_20_64 , cospi_12_64 ) ;\n const __m128i k__cospi_p12_m20 = pair_set_epi16 ( cospi_12_64 , - cospi_20_64 ) ;\n const __m128i k__cospi_m28_p04 = pair_set_epi16 ( - cospi_28_64 , cospi_4_64 ) ;\n const __m128i k__cospi_m12_p20 = pair_set_epi16 ( - cospi_12_64 , cospi_20_64 ) ;\n const __m128i k__cospi_p08_p24 = pair_set_epi16 ( cospi_8_64 , cospi_24_64 ) ;\n const __m128i k__cospi_p24_m08 = pair_set_epi16 ( cospi_24_64 , - cospi_8_64 ) ;\n const __m128i k__cospi_m24_p08 = pair_set_epi16 ( - cospi_24_64 , cospi_8_64 ) ;\n const __m128i k__cospi_m16_m16 = _mm_set1_epi16 ( - cospi_16_64 ) ;\n const __m128i k__cospi_p16_p16 = _mm_set1_epi16 ( cospi_16_64 ) ;\n const __m128i k__cospi_p16_m16 = pair_set_epi16 ( cospi_16_64 , - cospi_16_64 ) ;\n const __m128i k__cospi_m16_p16 = pair_set_epi16 ( - cospi_16_64 , cospi_16_64 ) ;\n const __m128i k__DCT_CONST_ROUNDING = _mm_set1_epi32 ( DCT_CONST_ROUNDING ) ;\n const __m128i kZero = _mm_set1_epi16 ( 0 ) ;\n u [ 0 ] = _mm_unpacklo_epi16 ( in [ 15 ] , in [ 0 ] ) ;\n u [ 1 ] = _mm_unpackhi_epi16 ( in [ 15 ] , in [ 0 ] ) ;\n u [ 2 ] = _mm_unpacklo_epi16 ( in [ 13 ] , in [ 2 ] ) ;\n u [ 3 ] = _mm_unpackhi_epi16 ( in [ 13 ] , in [ 2 ] ) ;\n u [ 4 ] = _mm_unpacklo_epi16 ( in [ 11 ] , in [ 4 ] ) ;\n u [ 5 ] = _mm_unpackhi_epi16 ( in [ 11 ] , in [ 4 ] ) ;\n u [ 6 ] = _mm_unpacklo_epi16 ( in [ 9 ] , in [ 6 ] ) ;\n u [ 7 ] = _mm_unpackhi_epi16 ( in [ 9 ] , in [ 6 ] ) ;\n u [ 8 ] = _mm_unpacklo_epi16 ( in [ 7 ] , in [ 8 ] ) ;\n u [ 9 ] = _mm_unpackhi_epi16 ( in [ 7 ] , in [ 8 ] ) ;\n u [ 10 ] = _mm_unpacklo_epi16 ( in [ 5 ] , in [ 10 ] ) ;\n u [ 11 ] = _mm_unpackhi_epi16 ( in [ 5 ] , in [ 10 ] ) ;\n u [ 12 ] = _mm_unpacklo_epi16 ( in [ 3 ] , in [ 12 ] ) ;\n u [ 13 ] = _mm_unpackhi_epi16 ( in [ 3 ] , in [ 12 ] ) ;\n u [ 14 ] = _mm_unpacklo_epi16 ( in [ 1 ] , in [ 14 ] ) ;\n u [ 15 ] = _mm_unpackhi_epi16 ( in [ 1 ] , in [ 14 ] ) ;\n v [ 0 ] = _mm_madd_epi16 ( u [ 0 ] , k__cospi_p01_p31 ) ;\n v [ 1 ] = _mm_madd_epi16 ( u [ 1 ] , k__cospi_p01_p31 ) ;\n v [ 2 ] = _mm_madd_epi16 ( u [ 0 ] , k__cospi_p31_m01 ) ;\n v [ 3 ] = _mm_madd_epi16 ( u [ 1 ] , k__cospi_p31_m01 ) ;\n v [ 4 ] = _mm_madd_epi16 ( u [ 2 ] , k__cospi_p05_p27 ) ;\n v [ 5 ] = _mm_madd_epi16 ( u [ 3 ] , k__cospi_p05_p27 ) ;\n v [ 6 ] = _mm_madd_epi16 ( u [ 2 ] , k__cospi_p27_m05 ) ;\n v [ 7 ] = _mm_madd_epi16 ( u [ 3 ] , k__cospi_p27_m05 ) ;\n v [ 8 ] = _mm_madd_epi16 ( u [ 4 ] , k__cospi_p09_p23 ) ;\n v [ 9 ] = _mm_madd_epi16 ( u [ 5 ] , k__cospi_p09_p23 ) ;\n v [ 10 ] = _mm_madd_epi16 ( u [ 4 ] , k__cospi_p23_m09 ) ;\n v [ 11 ] = _mm_madd_epi16 ( u [ 5 ] , k__cospi_p23_m09 ) ;\n v [ 12 ] = _mm_madd_epi16 ( u [ 6 ] , k__cospi_p13_p19 ) ;\n v [ 13 ] = _mm_madd_epi16 ( u [ 7 ] , k__cospi_p13_p19 ) ;\n v [ 14 ] = _mm_madd_epi16 ( u [ 6 ] , k__cospi_p19_m13 ) ;\n v [ 15 ] = _mm_madd_epi16 ( u [ 7 ] , k__cospi_p19_m13 ) ;\n v [ 16 ] = _mm_madd_epi16 ( u [ 8 ] , k__cospi_p17_p15 ) ;\n v [ 17 ] = _mm_madd_epi16 ( u [ 9 ] , k__cospi_p17_p15 ) ;\n v [ 18 ] = _mm_madd_epi16 ( u [ 8 ] , k__cospi_p15_m17 ) ;\n v [ 19 ] = _mm_madd_epi16 ( u [ 9 ] , k__cospi_p15_m17 ) ;\n v [ 20 ] = _mm_madd_epi16 ( u [ 10 ] , k__cospi_p21_p11 ) ;\n v [ 21 ] = _mm_madd_epi16 ( u [ 11 ] , k__cospi_p21_p11 ) ;\n v [ 22 ] = _mm_madd_epi16 ( u [ 10 ] , k__cospi_p11_m21 ) ;\n v [ 23 ] = _mm_madd_epi16 ( u [ 11 ] , k__cospi_p11_m21 ) ;\n v [ 24 ] = _mm_madd_epi16 ( u [ 12 ] , k__cospi_p25_p07 ) ;\n v [ 25 ] = _mm_madd_epi16 ( u [ 13 ] , k__cospi_p25_p07 ) ;\n v [ 26 ] = _mm_madd_epi16 ( u [ 12 ] , k__cospi_p07_m25 ) ;\n v [ 27 ] = _mm_madd_epi16 ( u [ 13 ] , k__cospi_p07_m25 ) ;\n v [ 28 ] = _mm_madd_epi16 ( u [ 14 ] , k__cospi_p29_p03 ) ;\n v [ 29 ] = _mm_madd_epi16 ( u [ 15 ] , k__cospi_p29_p03 ) ;\n v [ 30 ] = _mm_madd_epi16 ( u [ 14 ] , k__cospi_p03_m29 ) ;\n v [ 31 ] = _mm_madd_epi16 ( u [ 15 ] , k__cospi_p03_m29 ) ;\n u [ 0 ] = _mm_add_epi32 ( v [ 0 ] , v [ 16 ] ) ;\n u [ 1 ] = _mm_add_epi32 ( v [ 1 ] , v [ 17 ] ) ;\n u [ 2 ] = _mm_add_epi32 ( v [ 2 ] , v [ 18 ] ) ;\n u [ 3 ] = _mm_add_epi32 ( v [ 3 ] , v [ 19 ] ) ;\n u [ 4 ] = _mm_add_epi32 ( v [ 4 ] , v [ 20 ] ) ;\n u [ 5 ] = _mm_add_epi32 ( v [ 5 ] , v [ 21 ] ) ;\n u [ 6 ] = _mm_add_epi32 ( v [ 6 ] , v [ 22 ] ) ;\n u [ 7 ] = _mm_add_epi32 ( v [ 7 ] , v [ 23 ] ) ;\n u [ 8 ] = _mm_add_epi32 ( v [ 8 ] , v [ 24 ] ) ;\n u [ 9 ] = _mm_add_epi32 ( v [ 9 ] , v [ 25 ] ) ;\n u [ 10 ] = _mm_add_epi32 ( v [ 10 ] , v [ 26 ] ) ;\n u [ 11 ] = _mm_add_epi32 ( v [ 11 ] , v [ 27 ] ) ;\n u [ 12 ] = _mm_add_epi32 ( v [ 12 ] , v [ 28 ] ) ;\n u [ 13 ] = _mm_add_epi32 ( v [ 13 ] , v [ 29 ] ) ;\n u [ 14 ] = _mm_add_epi32 ( v [ 14 ] , v [ 30 ] ) ;\n u [ 15 ] = _mm_add_epi32 ( v [ 15 ] , v [ 31 ] ) ;\n u [ 16 ] = _mm_sub_epi32 ( v [ 0 ] , v [ 16 ] ) ;\n u [ 17 ] = _mm_sub_epi32 ( v [ 1 ] , v [ 17 ] ) ;\n u [ 18 ] = _mm_sub_epi32 ( v [ 2 ] , v [ 18 ] ) ;\n u [ 19 ] = _mm_sub_epi32 ( v [ 3 ] , v [ 19 ] ) ;\n u [ 20 ] = _mm_sub_epi32 ( v [ 4 ] , v [ 20 ] ) ;\n u [ 21 ] = _mm_sub_epi32 ( v [ 5 ] , v [ 21 ] ) ;\n u [ 22 ] = _mm_sub_epi32 ( v [ 6 ] , v [ 22 ] ) ;\n u [ 23 ] = _mm_sub_epi32 ( v [ 7 ] , v [ 23 ] ) ;\n u [ 24 ] = _mm_sub_epi32 ( v [ 8 ] , v [ 24 ] ) ;\n u [ 25 ] = _mm_sub_epi32 ( v [ 9 ] , v [ 25 ] ) ;\n u [ 26 ] = _mm_sub_epi32 ( v [ 10 ] , v [ 26 ] ) ;\n u [ 27 ] = _mm_sub_epi32 ( v [ 11 ] , v [ 27 ] ) ;\n u [ 28 ] = _mm_sub_epi32 ( v [ 12 ] , v [ 28 ] ) ;\n u [ 29 ] = _mm_sub_epi32 ( v [ 13 ] , v [ 29 ] ) ;\n u [ 30 ] = _mm_sub_epi32 ( v [ 14 ] , v [ 30 ] ) ;\n u [ 31 ] = _mm_sub_epi32 ( v [ 15 ] , v [ 31 ] ) ;\n v [ 0 ] = _mm_add_epi32 ( u [ 0 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 1 ] = _mm_add_epi32 ( u [ 1 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 2 ] = _mm_add_epi32 ( u [ 2 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 3 ] = _mm_add_epi32 ( u [ 3 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 4 ] = _mm_add_epi32 ( u [ 4 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 5 ] = _mm_add_epi32 ( u [ 5 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 6 ] = _mm_add_epi32 ( u [ 6 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 7 ] = _mm_add_epi32 ( u [ 7 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 8 ] = _mm_add_epi32 ( u [ 8 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 9 ] = _mm_add_epi32 ( u [ 9 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 10 ] = _mm_add_epi32 ( u [ 10 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 11 ] = _mm_add_epi32 ( u [ 11 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 12 ] = _mm_add_epi32 ( u [ 12 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 13 ] = _mm_add_epi32 ( u [ 13 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 14 ] = _mm_add_epi32 ( u [ 14 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 15 ] = _mm_add_epi32 ( u [ 15 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 16 ] = _mm_add_epi32 ( u [ 16 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 17 ] = _mm_add_epi32 ( u [ 17 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 18 ] = _mm_add_epi32 ( u [ 18 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 19 ] = _mm_add_epi32 ( u [ 19 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 20 ] = _mm_add_epi32 ( u [ 20 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 21 ] = _mm_add_epi32 ( u [ 21 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 22 ] = _mm_add_epi32 ( u [ 22 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 23 ] = _mm_add_epi32 ( u [ 23 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 24 ] = _mm_add_epi32 ( u [ 24 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 25 ] = _mm_add_epi32 ( u [ 25 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 26 ] = _mm_add_epi32 ( u [ 26 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 27 ] = _mm_add_epi32 ( u [ 27 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 28 ] = _mm_add_epi32 ( u [ 28 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 29 ] = _mm_add_epi32 ( u [ 29 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 30 ] = _mm_add_epi32 ( u [ 30 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 31 ] = _mm_add_epi32 ( u [ 31 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 0 ] = _mm_srai_epi32 ( v [ 0 ] , DCT_CONST_BITS ) ;\n u [ 1 ] = _mm_srai_epi32 ( v [ 1 ] , DCT_CONST_BITS ) ;\n u [ 2 ] = _mm_srai_epi32 ( v [ 2 ] , DCT_CONST_BITS ) ;\n u [ 3 ] = _mm_srai_epi32 ( v [ 3 ] , DCT_CONST_BITS ) ;\n u [ 4 ] = _mm_srai_epi32 ( v [ 4 ] , DCT_CONST_BITS ) ;\n u [ 5 ] = _mm_srai_epi32 ( v [ 5 ] , DCT_CONST_BITS ) ;\n u [ 6 ] = _mm_srai_epi32 ( v [ 6 ] , DCT_CONST_BITS ) ;\n u [ 7 ] = _mm_srai_epi32 ( v [ 7 ] , DCT_CONST_BITS ) ;\n u [ 8 ] = _mm_srai_epi32 ( v [ 8 ] , DCT_CONST_BITS ) ;\n u [ 9 ] = _mm_srai_epi32 ( v [ 9 ] , DCT_CONST_BITS ) ;\n u [ 10 ] = _mm_srai_epi32 ( v [ 10 ] , DCT_CONST_BITS ) ;\n u [ 11 ] = _mm_srai_epi32 ( v [ 11 ] , DCT_CONST_BITS ) ;\n u [ 12 ] = _mm_srai_epi32 ( v [ 12 ] , DCT_CONST_BITS ) ;\n u [ 13 ] = _mm_srai_epi32 ( v [ 13 ] , DCT_CONST_BITS ) ;\n u [ 14 ] = _mm_srai_epi32 ( v [ 14 ] , DCT_CONST_BITS ) ;\n u [ 15 ] = _mm_srai_epi32 ( v [ 15 ] , DCT_CONST_BITS ) ;\n u [ 16 ] = _mm_srai_epi32 ( v [ 16 ] , DCT_CONST_BITS ) ;\n u [ 17 ] = _mm_srai_epi32 ( v [ 17 ] , DCT_CONST_BITS ) ;\n u [ 18 ] = _mm_srai_epi32 ( v [ 18 ] , DCT_CONST_BITS ) ;\n u [ 19 ] = _mm_srai_epi32 ( v [ 19 ] , DCT_CONST_BITS ) ;\n u [ 20 ] = _mm_srai_epi32 ( v [ 20 ] , DCT_CONST_BITS ) ;\n u [ 21 ] = _mm_srai_epi32 ( v [ 21 ] , DCT_CONST_BITS ) ;\n u [ 22 ] = _mm_srai_epi32 ( v [ 22 ] , DCT_CONST_BITS ) ;\n u [ 23 ] = _mm_srai_epi32 ( v [ 23 ] , DCT_CONST_BITS ) ;\n u [ 24 ] = _mm_srai_epi32 ( v [ 24 ] , DCT_CONST_BITS ) ;\n u [ 25 ] = _mm_srai_epi32 ( v [ 25 ] , DCT_CONST_BITS ) ;\n u [ 26 ] = _mm_srai_epi32 ( v [ 26 ] , DCT_CONST_BITS ) ;\n u [ 27 ] = _mm_srai_epi32 ( v [ 27 ] , DCT_CONST_BITS ) ;\n u [ 28 ] = _mm_srai_epi32 ( v [ 28 ] , DCT_CONST_BITS ) ;\n u [ 29 ] = _mm_srai_epi32 ( v [ 29 ] , DCT_CONST_BITS ) ;\n u [ 30 ] = _mm_srai_epi32 ( v [ 30 ] , DCT_CONST_BITS ) ;\n u [ 31 ] = _mm_srai_epi32 ( v [ 31 ] , DCT_CONST_BITS ) ;\n s [ 0 ] = _mm_packs_epi32 ( u [ 0 ] , u [ 1 ] ) ;\n s [ 1 ] = _mm_packs_epi32 ( u [ 2 ] , u [ 3 ] ) ;\n s [ 2 ] = _mm_packs_epi32 ( u [ 4 ] , u [ 5 ] ) ;\n s [ 3 ] = _mm_packs_epi32 ( u [ 6 ] , u [ 7 ] ) ;\n s [ 4 ] = _mm_packs_epi32 ( u [ 8 ] , u [ 9 ] ) ;\n s [ 5 ] = _mm_packs_epi32 ( u [ 10 ] , u [ 11 ] ) ;\n s [ 6 ] = _mm_packs_epi32 ( u [ 12 ] , u [ 13 ] ) ;\n s [ 7 ] = _mm_packs_epi32 ( u [ 14 ] , u [ 15 ] ) ;\n s [ 8 ] = _mm_packs_epi32 ( u [ 16 ] , u [ 17 ] ) ;\n s [ 9 ] = _mm_packs_epi32 ( u [ 18 ] , u [ 19 ] ) ;\n s [ 10 ] = _mm_packs_epi32 ( u [ 20 ] , u [ 21 ] ) ;\n s [ 11 ] = _mm_packs_epi32 ( u [ 22 ] , u [ 23 ] ) ;\n s [ 12 ] = _mm_packs_epi32 ( u [ 24 ] , u [ 25 ] ) ;\n s [ 13 ] = _mm_packs_epi32 ( u [ 26 ] , u [ 27 ] ) ;\n s [ 14 ] = _mm_packs_epi32 ( u [ 28 ] , u [ 29 ] ) ;\n s [ 15 ] = _mm_packs_epi32 ( u [ 30 ] , u [ 31 ] ) ;\n u [ 0 ] = _mm_unpacklo_epi16 ( s [ 8 ] , s [ 9 ] ) ;\n u [ 1 ] = _mm_unpackhi_epi16 ( s [ 8 ] , s [ 9 ] ) ;\n u [ 2 ] = _mm_unpacklo_epi16 ( s [ 10 ] , s [ 11 ] ) ;\n u [ 3 ] = _mm_unpackhi_epi16 ( s [ 10 ] , s [ 11 ] ) ;\n u [ 4 ] = _mm_unpacklo_epi16 ( s [ 12 ] , s [ 13 ] ) ;\n u [ 5 ] = _mm_unpackhi_epi16 ( s [ 12 ] , s [ 13 ] ) ;\n u [ 6 ] = _mm_unpacklo_epi16 ( s [ 14 ] , s [ 15 ] ) ;\n u [ 7 ] = _mm_unpackhi_epi16 ( s [ 14 ] , s [ 15 ] ) ;\n v [ 0 ] = _mm_madd_epi16 ( u [ 0 ] , k__cospi_p04_p28 ) ;\n v [ 1 ] = _mm_madd_epi16 ( u [ 1 ] , k__cospi_p04_p28 ) ;\n v [ 2 ] = _mm_madd_epi16 ( u [ 0 ] , k__cospi_p28_m04 ) ;\n v [ 3 ] = _mm_madd_epi16 ( u [ 1 ] , k__cospi_p28_m04 ) ;\n v [ 4 ] = _mm_madd_epi16 ( u [ 2 ] , k__cospi_p20_p12 ) ;\n v [ 5 ] = _mm_madd_epi16 ( u [ 3 ] , k__cospi_p20_p12 ) ;\n v [ 6 ] = _mm_madd_epi16 ( u [ 2 ] , k__cospi_p12_m20 ) ;\n v [ 7 ] = _mm_madd_epi16 ( u [ 3 ] , k__cospi_p12_m20 ) ;\n v [ 8 ] = _mm_madd_epi16 ( u [ 4 ] , k__cospi_m28_p04 ) ;\n v [ 9 ] = _mm_madd_epi16 ( u [ 5 ] , k__cospi_m28_p04 ) ;\n v [ 10 ] = _mm_madd_epi16 ( u [ 4 ] , k__cospi_p04_p28 ) ;\n v [ 11 ] = _mm_madd_epi16 ( u [ 5 ] , k__cospi_p04_p28 ) ;\n v [ 12 ] = _mm_madd_epi16 ( u [ 6 ] , k__cospi_m12_p20 ) ;\n v [ 13 ] = _mm_madd_epi16 ( u [ 7 ] , k__cospi_m12_p20 ) ;\n v [ 14 ] = _mm_madd_epi16 ( u [ 6 ] , k__cospi_p20_p12 ) ;\n v [ 15 ] = _mm_madd_epi16 ( u [ 7 ] , k__cospi_p20_p12 ) ;\n u [ 0 ] = _mm_add_epi32 ( v [ 0 ] , v [ 8 ] ) ;\n u [ 1 ] = _mm_add_epi32 ( v [ 1 ] , v [ 9 ] ) ;\n u [ 2 ] = _mm_add_epi32 ( v [ 2 ] , v [ 10 ] ) ;\n u [ 3 ] = _mm_add_epi32 ( v [ 3 ] , v [ 11 ] ) ;\n u [ 4 ] = _mm_add_epi32 ( v [ 4 ] , v [ 12 ] ) ;\n u [ 5 ] = _mm_add_epi32 ( v [ 5 ] , v [ 13 ] ) ;\n u [ 6 ] = _mm_add_epi32 ( v [ 6 ] , v [ 14 ] ) ;\n u [ 7 ] = _mm_add_epi32 ( v [ 7 ] , v [ 15 ] ) ;\n u [ 8 ] = _mm_sub_epi32 ( v [ 0 ] , v [ 8 ] ) ;\n u [ 9 ] = _mm_sub_epi32 ( v [ 1 ] , v [ 9 ] ) ;\n u [ 10 ] = _mm_sub_epi32 ( v [ 2 ] , v [ 10 ] ) ;\n u [ 11 ] = _mm_sub_epi32 ( v [ 3 ] , v [ 11 ] ) ;\n u [ 12 ] = _mm_sub_epi32 ( v [ 4 ] , v [ 12 ] ) ;\n u [ 13 ] = _mm_sub_epi32 ( v [ 5 ] , v [ 13 ] ) ;\n u [ 14 ] = _mm_sub_epi32 ( v [ 6 ] , v [ 14 ] ) ;\n u [ 15 ] = _mm_sub_epi32 ( v [ 7 ] , v [ 15 ] ) ;\n v [ 0 ] = _mm_add_epi32 ( u [ 0 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 1 ] = _mm_add_epi32 ( u [ 1 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 2 ] = _mm_add_epi32 ( u [ 2 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 3 ] = _mm_add_epi32 ( u [ 3 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 4 ] = _mm_add_epi32 ( u [ 4 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 5 ] = _mm_add_epi32 ( u [ 5 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 6 ] = _mm_add_epi32 ( u [ 6 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 7 ] = _mm_add_epi32 ( u [ 7 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 8 ] = _mm_add_epi32 ( u [ 8 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 9 ] = _mm_add_epi32 ( u [ 9 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 10 ] = _mm_add_epi32 ( u [ 10 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 11 ] = _mm_add_epi32 ( u [ 11 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 12 ] = _mm_add_epi32 ( u [ 12 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 13 ] = _mm_add_epi32 ( u [ 13 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 14 ] = _mm_add_epi32 ( u [ 14 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 15 ] = _mm_add_epi32 ( u [ 15 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 0 ] = _mm_srai_epi32 ( v [ 0 ] , DCT_CONST_BITS ) ;\n u [ 1 ] = _mm_srai_epi32 ( v [ 1 ] , DCT_CONST_BITS ) ;\n u [ 2 ] = _mm_srai_epi32 ( v [ 2 ] , DCT_CONST_BITS ) ;\n u [ 3 ] = _mm_srai_epi32 ( v [ 3 ] , DCT_CONST_BITS ) ;\n u [ 4 ] = _mm_srai_epi32 ( v [ 4 ] , DCT_CONST_BITS ) ;\n u [ 5 ] = _mm_srai_epi32 ( v [ 5 ] , DCT_CONST_BITS ) ;\n u [ 6 ] = _mm_srai_epi32 ( v [ 6 ] , DCT_CONST_BITS ) ;\n u [ 7 ] = _mm_srai_epi32 ( v [ 7 ] , DCT_CONST_BITS ) ;\n u [ 8 ] = _mm_srai_epi32 ( v [ 8 ] , DCT_CONST_BITS ) ;\n u [ 9 ] = _mm_srai_epi32 ( v [ 9 ] , DCT_CONST_BITS ) ;\n u [ 10 ] = _mm_srai_epi32 ( v [ 10 ] , DCT_CONST_BITS ) ;\n u [ 11 ] = _mm_srai_epi32 ( v [ 11 ] , DCT_CONST_BITS ) ;\n u [ 12 ] = _mm_srai_epi32 ( v [ 12 ] , DCT_CONST_BITS ) ;\n u [ 13 ] = _mm_srai_epi32 ( v [ 13 ] , DCT_CONST_BITS ) ;\n u [ 14 ] = _mm_srai_epi32 ( v [ 14 ] , DCT_CONST_BITS ) ;\n u [ 15 ] = _mm_srai_epi32 ( v [ 15 ] , DCT_CONST_BITS ) ;\n x [ 0 ] = _mm_add_epi16 ( s [ 0 ] , s [ 4 ] ) ;\n x [ 1 ] = _mm_add_epi16 ( s [ 1 ] , s [ 5 ] ) ;\n x [ 2 ] = _mm_add_epi16 ( s [ 2 ] , s [ 6 ] ) ;\n x [ 3 ] = _mm_add_epi16 ( s [ 3 ] , s [ 7 ] ) ;\n x [ 4 ] = _mm_sub_epi16 ( s [ 0 ] , s [ 4 ] ) ;\n x [ 5 ] = _mm_sub_epi16 ( s [ 1 ] , s [ 5 ] ) ;\n x [ 6 ] = _mm_sub_epi16 ( s [ 2 ] , s [ 6 ] ) ;\n x [ 7 ] = _mm_sub_epi16 ( s [ 3 ] , s [ 7 ] ) ;\n x [ 8 ] = _mm_packs_epi32 ( u [ 0 ] , u [ 1 ] ) ;\n x [ 9 ] = _mm_packs_epi32 ( u [ 2 ] , u [ 3 ] ) ;\n x [ 10 ] = _mm_packs_epi32 ( u [ 4 ] , u [ 5 ] ) ;\n x [ 11 ] = _mm_packs_epi32 ( u [ 6 ] , u [ 7 ] ) ;\n x [ 12 ] = _mm_packs_epi32 ( u [ 8 ] , u [ 9 ] ) ;\n x [ 13 ] = _mm_packs_epi32 ( u [ 10 ] , u [ 11 ] ) ;\n x [ 14 ] = _mm_packs_epi32 ( u [ 12 ] , u [ 13 ] ) ;\n x [ 15 ] = _mm_packs_epi32 ( u [ 14 ] , u [ 15 ] ) ;\n u [ 0 ] = _mm_unpacklo_epi16 ( x [ 4 ] , x [ 5 ] ) ;\n u [ 1 ] = _mm_unpackhi_epi16 ( x [ 4 ] , x [ 5 ] ) ;\n u [ 2 ] = _mm_unpacklo_epi16 ( x [ 6 ] , x [ 7 ] ) ;\n u [ 3 ] = _mm_unpackhi_epi16 ( x [ 6 ] , x [ 7 ] ) ;\n u [ 4 ] = _mm_unpacklo_epi16 ( x [ 12 ] , x [ 13 ] ) ;\n u [ 5 ] = _mm_unpackhi_epi16 ( x [ 12 ] , x [ 13 ] ) ;\n u [ 6 ] = _mm_unpacklo_epi16 ( x [ 14 ] , x [ 15 ] ) ;\n u [ 7 ] = _mm_unpackhi_epi16 ( x [ 14 ] , x [ 15 ] ) ;\n v [ 0 ] = _mm_madd_epi16 ( u [ 0 ] , k__cospi_p08_p24 ) ;\n v [ 1 ] = _mm_madd_epi16 ( u [ 1 ] , k__cospi_p08_p24 ) ;\n v [ 2 ] = _mm_madd_epi16 ( u [ 0 ] , k__cospi_p24_m08 ) ;\n v [ 3 ] = _mm_madd_epi16 ( u [ 1 ] , k__cospi_p24_m08 ) ;\n v [ 4 ] = _mm_madd_epi16 ( u [ 2 ] , k__cospi_m24_p08 ) ;\n v [ 5 ] = _mm_madd_epi16 ( u [ 3 ] , k__cospi_m24_p08 ) ;\n v [ 6 ] = _mm_madd_epi16 ( u [ 2 ] , k__cospi_p08_p24 ) ;\n v [ 7 ] = _mm_madd_epi16 ( u [ 3 ] , k__cospi_p08_p24 ) ;\n v [ 8 ] = _mm_madd_epi16 ( u [ 4 ] , k__cospi_p08_p24 ) ;\n v [ 9 ] = _mm_madd_epi16 ( u [ 5 ] , k__cospi_p08_p24 ) ;\n v [ 10 ] = _mm_madd_epi16 ( u [ 4 ] , k__cospi_p24_m08 ) ;\n v [ 11 ] = _mm_madd_epi16 ( u [ 5 ] , k__cospi_p24_m08 ) ;\n v [ 12 ] = _mm_madd_epi16 ( u [ 6 ] , k__cospi_m24_p08 ) ;\n v [ 13 ] = _mm_madd_epi16 ( u [ 7 ] , k__cospi_m24_p08 ) ;\n v [ 14 ] = _mm_madd_epi16 ( u [ 6 ] , k__cospi_p08_p24 ) ;\n v [ 15 ] = _mm_madd_epi16 ( u [ 7 ] , k__cospi_p08_p24 ) ;\n u [ 0 ] = _mm_add_epi32 ( v [ 0 ] , v [ 4 ] ) ;\n u [ 1 ] = _mm_add_epi32 ( v [ 1 ] , v [ 5 ] ) ;\n u [ 2 ] = _mm_add_epi32 ( v [ 2 ] , v [ 6 ] ) ;\n u [ 3 ] = _mm_add_epi32 ( v [ 3 ] , v [ 7 ] ) ;\n u [ 4 ] = _mm_sub_epi32 ( v [ 0 ] , v [ 4 ] ) ;\n u [ 5 ] = _mm_sub_epi32 ( v [ 1 ] , v [ 5 ] ) ;\n u [ 6 ] = _mm_sub_epi32 ( v [ 2 ] , v [ 6 ] ) ;\n u [ 7 ] = _mm_sub_epi32 ( v [ 3 ] , v [ 7 ] ) ;\n u [ 8 ] = _mm_add_epi32 ( v [ 8 ] , v [ 12 ] ) ;\n u [ 9 ] = _mm_add_epi32 ( v [ 9 ] , v [ 13 ] ) ;\n u [ 10 ] = _mm_add_epi32 ( v [ 10 ] , v [ 14 ] ) ;\n u [ 11 ] = _mm_add_epi32 ( v [ 11 ] , v [ 15 ] ) ;\n u [ 12 ] = _mm_sub_epi32 ( v [ 8 ] , v [ 12 ] ) ;\n u [ 13 ] = _mm_sub_epi32 ( v [ 9 ] , v [ 13 ] ) ;\n u [ 14 ] = _mm_sub_epi32 ( v [ 10 ] , v [ 14 ] ) ;\n u [ 15 ] = _mm_sub_epi32 ( v [ 11 ] , v [ 15 ] ) ;\n u [ 0 ] = _mm_add_epi32 ( u [ 0 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 1 ] = _mm_add_epi32 ( u [ 1 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 2 ] = _mm_add_epi32 ( u [ 2 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 3 ] = _mm_add_epi32 ( u [ 3 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 4 ] = _mm_add_epi32 ( u [ 4 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 5 ] = _mm_add_epi32 ( u [ 5 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 6 ] = _mm_add_epi32 ( u [ 6 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 7 ] = _mm_add_epi32 ( u [ 7 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 8 ] = _mm_add_epi32 ( u [ 8 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 9 ] = _mm_add_epi32 ( u [ 9 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 10 ] = _mm_add_epi32 ( u [ 10 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 11 ] = _mm_add_epi32 ( u [ 11 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 12 ] = _mm_add_epi32 ( u [ 12 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 13 ] = _mm_add_epi32 ( u [ 13 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 14 ] = _mm_add_epi32 ( u [ 14 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 15 ] = _mm_add_epi32 ( u [ 15 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 0 ] = _mm_srai_epi32 ( u [ 0 ] , DCT_CONST_BITS ) ;\n v [ 1 ] = _mm_srai_epi32 ( u [ 1 ] , DCT_CONST_BITS ) ;\n v [ 2 ] = _mm_srai_epi32 ( u [ 2 ] , DCT_CONST_BITS ) ;\n v [ 3 ] = _mm_srai_epi32 ( u [ 3 ] , DCT_CONST_BITS ) ;\n v [ 4 ] = _mm_srai_epi32 ( u [ 4 ] , DCT_CONST_BITS ) ;\n v [ 5 ] = _mm_srai_epi32 ( u [ 5 ] , DCT_CONST_BITS ) ;\n v [ 6 ] = _mm_srai_epi32 ( u [ 6 ] , DCT_CONST_BITS ) ;\n v [ 7 ] = _mm_srai_epi32 ( u [ 7 ] , DCT_CONST_BITS ) ;\n v [ 8 ] = _mm_srai_epi32 ( u [ 8 ] , DCT_CONST_BITS ) ;\n v [ 9 ] = _mm_srai_epi32 ( u [ 9 ] , DCT_CONST_BITS ) ;\n v [ 10 ] = _mm_srai_epi32 ( u [ 10 ] , DCT_CONST_BITS ) ;\n v [ 11 ] = _mm_srai_epi32 ( u [ 11 ] , DCT_CONST_BITS ) ;\n v [ 12 ] = _mm_srai_epi32 ( u [ 12 ] , DCT_CONST_BITS ) ;\n v [ 13 ] = _mm_srai_epi32 ( u [ 13 ] , DCT_CONST_BITS ) ;\n v [ 14 ] = _mm_srai_epi32 ( u [ 14 ] , DCT_CONST_BITS ) ;\n v [ 15 ] = _mm_srai_epi32 ( u [ 15 ] , DCT_CONST_BITS ) ;\n s [ 0 ] = _mm_add_epi16 ( x [ 0 ] , x [ 2 ] ) ;\n s [ 1 ] = _mm_add_epi16 ( x [ 1 ] , x [ 3 ] ) ;\n s [ 2 ] = _mm_sub_epi16 ( x [ 0 ] , x [ 2 ] ) ;\n s [ 3 ] = _mm_sub_epi16 ( x [ 1 ] , x [ 3 ] ) ;\n s [ 4 ] = _mm_packs_epi32 ( v [ 0 ] , v [ 1 ] ) ;\n s [ 5 ] = _mm_packs_epi32 ( v [ 2 ] , v [ 3 ] ) ;\n s [ 6 ] = _mm_packs_epi32 ( v [ 4 ] , v [ 5 ] ) ;\n s [ 7 ] = _mm_packs_epi32 ( v [ 6 ] , v [ 7 ] ) ;\n s [ 8 ] = _mm_add_epi16 ( x [ 8 ] , x [ 10 ] ) ;\n s [ 9 ] = _mm_add_epi16 ( x [ 9 ] , x [ 11 ] ) ;\n s [ 10 ] = _mm_sub_epi16 ( x [ 8 ] , x [ 10 ] ) ;\n s [ 11 ] = _mm_sub_epi16 ( x [ 9 ] , x [ 11 ] ) ;\n s [ 12 ] = _mm_packs_epi32 ( v [ 8 ] , v [ 9 ] ) ;\n s [ 13 ] = _mm_packs_epi32 ( v [ 10 ] , v [ 11 ] ) ;\n s [ 14 ] = _mm_packs_epi32 ( v [ 12 ] , v [ 13 ] ) ;\n s [ 15 ] = _mm_packs_epi32 ( v [ 14 ] , v [ 15 ] ) ;\n u [ 0 ] = _mm_unpacklo_epi16 ( s [ 2 ] , s [ 3 ] ) ;\n u [ 1 ] = _mm_unpackhi_epi16 ( s [ 2 ] , s [ 3 ] ) ;\n u [ 2 ] = _mm_unpacklo_epi16 ( s [ 6 ] , s [ 7 ] ) ;\n u [ 3 ] = _mm_unpackhi_epi16 ( s [ 6 ] , s [ 7 ] ) ;\n u [ 4 ] = _mm_unpacklo_epi16 ( s [ 10 ] , s [ 11 ] ) ;\n u [ 5 ] = _mm_unpackhi_epi16 ( s [ 10 ] , s [ 11 ] ) ;\n u [ 6 ] = _mm_unpacklo_epi16 ( s [ 14 ] , s [ 15 ] ) ;\n u [ 7 ] = _mm_unpackhi_epi16 ( s [ 14 ] , s [ 15 ] ) ;\n v [ 0 ] = _mm_madd_epi16 ( u [ 0 ] , k__cospi_m16_m16 ) ;\n v [ 1 ] = _mm_madd_epi16 ( u [ 1 ] , k__cospi_m16_m16 ) ;\n v [ 2 ] = _mm_madd_epi16 ( u [ 0 ] , k__cospi_p16_m16 ) ;\n v [ 3 ] = _mm_madd_epi16 ( u [ 1 ] , k__cospi_p16_m16 ) ;\n v [ 4 ] = _mm_madd_epi16 ( u [ 2 ] , k__cospi_p16_p16 ) ;\n v [ 5 ] = _mm_madd_epi16 ( u [ 3 ] , k__cospi_p16_p16 ) ;\n v [ 6 ] = _mm_madd_epi16 ( u [ 2 ] , k__cospi_m16_p16 ) ;\n v [ 7 ] = _mm_madd_epi16 ( u [ 3 ] , k__cospi_m16_p16 ) ;\n v [ 8 ] = _mm_madd_epi16 ( u [ 4 ] , k__cospi_p16_p16 ) ;\n v [ 9 ] = _mm_madd_epi16 ( u [ 5 ] , k__cospi_p16_p16 ) ;\n v [ 10 ] = _mm_madd_epi16 ( u [ 4 ] , k__cospi_m16_p16 ) ;\n v [ 11 ] = _mm_madd_epi16 ( u [ 5 ] , k__cospi_m16_p16 ) ;\n v [ 12 ] = _mm_madd_epi16 ( u [ 6 ] , k__cospi_m16_m16 ) ;\n v [ 13 ] = _mm_madd_epi16 ( u [ 7 ] , k__cospi_m16_m16 ) ;\n v [ 14 ] = _mm_madd_epi16 ( u [ 6 ] , k__cospi_p16_m16 ) ;\n v [ 15 ] = _mm_madd_epi16 ( u [ 7 ] , k__cospi_p16_m16 ) ;\n u [ 0 ] = _mm_add_epi32 ( v [ 0 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 1 ] = _mm_add_epi32 ( v [ 1 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 2 ] = _mm_add_epi32 ( v [ 2 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 3 ] = _mm_add_epi32 ( v [ 3 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 4 ] = _mm_add_epi32 ( v [ 4 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 5 ] = _mm_add_epi32 ( v [ 5 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 6 ] = _mm_add_epi32 ( v [ 6 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 7 ] = _mm_add_epi32 ( v [ 7 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 8 ] = _mm_add_epi32 ( v [ 8 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 9 ] = _mm_add_epi32 ( v [ 9 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 10 ] = _mm_add_epi32 ( v [ 10 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 11 ] = _mm_add_epi32 ( v [ 11 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 12 ] = _mm_add_epi32 ( v [ 12 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 13 ] = _mm_add_epi32 ( v [ 13 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 14 ] = _mm_add_epi32 ( v [ 14 ] , k__DCT_CONST_ROUNDING ) ;\n u [ 15 ] = _mm_add_epi32 ( v [ 15 ] , k__DCT_CONST_ROUNDING ) ;\n v [ 0 ] = _mm_srai_epi32 ( u [ 0 ] , DCT_CONST_BITS ) ;\n v [ 1 ] = _mm_srai_epi32 ( u [ 1 ] , DCT_CONST_BITS ) ;\n v [ 2 ] = _mm_srai_epi32 ( u [ 2 ] , DCT_CONST_BITS ) ;\n v [ 3 ] = _mm_srai_epi32 ( u [ 3 ] , DCT_CONST_BITS ) ;\n v [ 4 ] = _mm_srai_epi32 ( u [ 4 ] , DCT_CONST_BITS ) ;\n v [ 5 ] = _mm_srai_epi32 ( u [ 5 ] , DCT_CONST_BITS ) ;\n v [ 6 ] = _mm_srai_epi32 ( u [ 6 ] , DCT_CONST_BITS ) ;\n v [ 7 ] = _mm_srai_epi32 ( u [ 7 ] , DCT_CONST_BITS ) ;\n v [ 8 ] = _mm_srai_epi32 ( u [ 8 ] , DCT_CONST_BITS ) ;\n v [ 9 ] = _mm_srai_epi32 ( u [ 9 ] , DCT_CONST_BITS ) ;\n v [ 10 ] = _mm_srai_epi32 ( u [ 10 ] , DCT_CONST_BITS ) ;\n v [ 11 ] = _mm_srai_epi32 ( u [ 11 ] , DCT_CONST_BITS ) ;\n v [ 12 ] = _mm_srai_epi32 ( u [ 12 ] , DCT_CONST_BITS ) ;\n v [ 13 ] = _mm_srai_epi32 ( u [ 13 ] , DCT_CONST_BITS ) ;\n v [ 14 ] = _mm_srai_epi32 ( u [ 14 ] , DCT_CONST_BITS ) ;\n v [ 15 ] = _mm_srai_epi32 ( u [ 15 ] , DCT_CONST_BITS ) ;\n in [ 0 ] = s [ 0 ] ;\n in [ 1 ] = _mm_sub_epi16 ( kZero , s [ 8 ] ) ;\n in [ 2 ] = s [ 12 ] ;\n in [ 3 ] = _mm_sub_epi16 ( kZero , s [ 4 ] ) ;\n in [ 4 ] = _mm_packs_epi32 ( v [ 4 ] , v [ 5 ] ) ;\n in [ 5 ] = _mm_packs_epi32 ( v [ 12 ] , v [ 13 ] ) ;\n in [ 6 ] = _mm_packs_epi32 ( v [ 8 ] , v [ 9 ] ) ;\n in [ 7 ] = _mm_packs_epi32 ( v [ 0 ] , v [ 1 ] ) ;\n in [ 8 ] = _mm_packs_epi32 ( v [ 2 ] , v [ 3 ] ) ;\n in [ 9 ] = _mm_packs_epi32 ( v [ 10 ] , v [ 11 ] ) ;\n in [ 10 ] = _mm_packs_epi32 ( v [ 14 ] , v [ 15 ] ) ;\n in [ 11 ] = _mm_packs_epi32 ( v [ 6 ] , v [ 7 ] ) ;\n in [ 12 ] = s [ 5 ] ;\n in [ 13 ] = _mm_sub_epi16 ( kZero , s [ 13 ] ) ;\n in [ 14 ] = s [ 9 ] ;\n in [ 15 ] = _mm_sub_epi16 ( kZero , s [ 1 ] ) ;\n }"}
{"idx": 12454, "target": 0, "func": "static int bad_option ( struct superblock_security_struct * sbsec , char flag , u32 old_sid , u32 new_sid ) {\n char mnt_flags = sbsec -> flags & SE_MNTMASK ;\n if ( sbsec -> flags & SE_SBINITIALIZED ) if ( ! ( sbsec -> flags & flag ) || ( old_sid != new_sid ) ) return 1 ;\n if ( ! ( sbsec -> flags & SE_SBINITIALIZED ) ) if ( mnt_flags & flag ) return 1 ;\n return 0 ;\n }"}
{"idx": 12455, "target": 1, "func": "static int32_t compareFallbacks ( const void * context , const void * fb1 , const void * fb2 ) {\n return ( ( const _MBCSToUFallback * ) fb1 ) -> offset - ( ( const _MBCSToUFallback * ) fb2 ) -> offset ;\n }"}
{"idx": 12456, "target": 0, "func": "static void vb_decode_palette ( VBDecContext * c , int data_size ) {\n int start , size , i ;\n start = bytestream2_get_byte ( & c -> stream ) ;\n size = ( bytestream2_get_byte ( & c -> stream ) - 1 ) & 0xFF ;\n if ( start + size > 255 ) {\n av_log ( c -> avctx , AV_LOG_ERROR , \"Palette change runs beyond entry 256\\n\" ) ;\n return ;\n }\n if ( size * 3 + 2 > data_size ) {\n av_log ( c -> avctx , AV_LOG_ERROR , \"Palette data runs beyond chunk size\\n\" ) ;\n return ;\n }\n for ( i = start ;\n i <= start + size ;\n i ++ ) c -> pal [ i ] = bytestream2_get_be24 ( & c -> stream ) ;\n }"}
{"idx": 12457, "target": 0, "func": "const char * _gcry_ecc_get_curve ( gcry_mpi_t * pkey , int iterator , unsigned int * r_nbits ) {\n gpg_err_code_t err ;\n elliptic_curve_t E ;\n int idx ;\n gcry_mpi_t tmp ;\n const char * result = NULL ;\n if ( r_nbits ) * r_nbits = 0 ;\n if ( ! pkey ) {\n idx = iterator ;\n if ( idx >= 0 && idx < DIM ( domain_parms ) ) {\n result = domain_parms [ idx ] . desc ;\n if ( r_nbits ) * r_nbits = domain_parms [ idx ] . nbits ;\n }\n return result ;\n }\n if ( ! pkey [ 0 ] || ! pkey [ 1 ] || ! pkey [ 2 ] || ! pkey [ 3 ] || ! pkey [ 4 ] ) return NULL ;\n E . model = MPI_EC_WEIERSTRASS ;\n E . p = pkey [ 0 ] ;\n E . a = pkey [ 1 ] ;\n E . b = pkey [ 2 ] ;\n _gcry_mpi_point_init ( & E . G ) ;\n err = _gcry_ecc_os2ec ( & E . G , pkey [ 3 ] ) ;\n if ( err ) {\n _gcry_mpi_point_free_parts ( & E . G ) ;\n return NULL ;\n }\n E . n = pkey [ 4 ] ;\n for ( idx = 0 ;\n domain_parms [ idx ] . desc ;\n idx ++ ) {\n tmp = scanval ( domain_parms [ idx ] . p ) ;\n if ( ! mpi_cmp ( tmp , E . p ) ) {\n mpi_free ( tmp ) ;\n tmp = scanval ( domain_parms [ idx ] . a ) ;\n if ( ! mpi_cmp ( tmp , E . a ) ) {\n mpi_free ( tmp ) ;\n tmp = scanval ( domain_parms [ idx ] . b ) ;\n if ( ! mpi_cmp ( tmp , E . b ) ) {\n mpi_free ( tmp ) ;\n tmp = scanval ( domain_parms [ idx ] . n ) ;\n if ( ! mpi_cmp ( tmp , E . n ) ) {\n mpi_free ( tmp ) ;\n tmp = scanval ( domain_parms [ idx ] . g_x ) ;\n if ( ! mpi_cmp ( tmp , E . G . x ) ) {\n mpi_free ( tmp ) ;\n tmp = scanval ( domain_parms [ idx ] . g_y ) ;\n if ( ! mpi_cmp ( tmp , E . G . y ) ) {\n mpi_free ( tmp ) ;\n result = domain_parms [ idx ] . desc ;\n if ( r_nbits ) * r_nbits = domain_parms [ idx ] . nbits ;\n break ;\n }\n }\n }\n }\n }\n }\n mpi_free ( tmp ) ;\n }\n _gcry_mpi_point_free_parts ( & E . G ) ;\n return result ;\n }"}
{"idx": 12458, "target": 0, "func": "static int decode_packet ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n WmallDecodeCtx * s = avctx -> priv_data ;\n GetBitContext * gb = & s -> pgb ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n int num_bits_prev_frame , packet_sequence_number , spliced_packet ;\n s -> frame . nb_samples = 0 ;\n if ( s -> packet_done || s -> packet_loss ) {\n s -> packet_done = 0 ;\n if ( buf_size < avctx -> block_align ) return 0 ;\n s -> next_packet_start = buf_size - avctx -> block_align ;\n buf_size = avctx -> block_align ;\n s -> buf_bit_size = buf_size << 3 ;\n init_get_bits ( gb , buf , s -> buf_bit_size ) ;\n packet_sequence_number = get_bits ( gb , 4 ) ;\n skip_bits ( gb , 1 ) ;\n spliced_packet = get_bits1 ( gb ) ;\n if ( spliced_packet ) av_log_missing_feature ( avctx , \"Bitstream splicing\" , 1 ) ;\n num_bits_prev_frame = get_bits ( gb , s -> log2_frame_size ) ;\n if ( ! s -> packet_loss && ( ( s -> packet_sequence_number + 1 ) & 0xF ) != packet_sequence_number ) {\n s -> packet_loss = 1 ;\n av_log ( avctx , AV_LOG_ERROR , \"Packet loss detected! seq %x vs %x\\n\" , s -> packet_sequence_number , packet_sequence_number ) ;\n }\n s -> packet_sequence_number = packet_sequence_number ;\n if ( num_bits_prev_frame > 0 ) {\n int remaining_packet_bits = s -> buf_bit_size - get_bits_count ( gb ) ;\n if ( num_bits_prev_frame >= remaining_packet_bits ) {\n num_bits_prev_frame = remaining_packet_bits ;\n s -> packet_done = 1 ;\n }\n save_bits ( s , gb , num_bits_prev_frame , 1 ) ;\n if ( num_bits_prev_frame < remaining_packet_bits && ! s -> packet_loss ) decode_frame ( s ) ;\n }\n else if ( s -> num_saved_bits - s -> frame_offset ) {\n av_dlog ( avctx , \"ignoring %x previously saved bits\\n\" , s -> num_saved_bits - s -> frame_offset ) ;\n }\n if ( s -> packet_loss ) {\n s -> num_saved_bits = 0 ;\n s -> packet_loss = 0 ;\n init_put_bits ( & s -> pb , s -> frame_data , MAX_FRAMESIZE ) ;\n }\n }\n else {\n int frame_size ;\n s -> buf_bit_size = ( avpkt -> size - s -> next_packet_start ) << 3 ;\n init_get_bits ( gb , avpkt -> data , s -> buf_bit_size ) ;\n skip_bits ( gb , s -> packet_offset ) ;\n if ( s -> len_prefix && remaining_bits ( s , gb ) > s -> log2_frame_size && ( frame_size = show_bits ( gb , s -> log2_frame_size ) ) && frame_size <= remaining_bits ( s , gb ) ) {\n save_bits ( s , gb , frame_size , 0 ) ;\n s -> packet_done = ! decode_frame ( s ) ;\n }\n else if ( ! s -> len_prefix && s -> num_saved_bits > get_bits_count ( & s -> gb ) ) {\n s -> packet_done = ! decode_frame ( s ) ;\n }\n else {\n s -> packet_done = 1 ;\n }\n }\n if ( s -> packet_done && ! s -> packet_loss && remaining_bits ( s , gb ) > 0 ) {\n save_bits ( s , gb , remaining_bits ( s , gb ) , 0 ) ;\n }\n * ( AVFrame * ) data = s -> frame ;\n * got_frame_ptr = s -> frame . nb_samples > 0 ;\n s -> packet_offset = get_bits_count ( gb ) & 7 ;\n return ( s -> packet_loss ) ? AVERROR_INVALIDDATA : get_bits_count ( gb ) >> 3 ;\n }"}
{"idx": 12459, "target": 0, "func": "int crypto_authenticate_and_decrypt ( struct crypto_instance * instance , unsigned char * buf , int * buf_len ) {\n struct crypto_config_header * cch = ( struct crypto_config_header * ) buf ;\n const char * guessed_str ;\n if ( * buf_len <= sizeof ( struct crypto_config_header ) ) {\n log_printf ( instance -> log_level_security , \"Received message is too short... ignoring\" ) ;\n return ( - 1 ) ;\n }\n if ( cch -> crypto_cipher_type != CRYPTO_CIPHER_TYPE_2_3 ) {\n guessed_str = NULL ;\n if ( ( cch -> crypto_cipher_type == 0xC0 && cch -> crypto_hash_type == 0x70 ) || ( cch -> crypto_cipher_type == 0x70 && cch -> crypto_hash_type == 0xC0 ) ) {\n guessed_str = \"Corosync 3.x\" ;\n }\n else if ( cch -> crypto_cipher_type == CRYPTO_CIPHER_TYPE_2_2 ) {\n guessed_str = \"Corosync 2.2\" ;\n }\n else if ( cch -> crypto_cipher_type == 0x01 ) {\n guessed_str = \"unencrypted Kronosnet\" ;\n }\n else if ( cch -> crypto_cipher_type >= 0 && cch -> crypto_cipher_type <= 5 ) {\n guessed_str = \"unencrypted Corosync 2.0/2.1/1.x/OpenAIS\" ;\n }\n else {\n guessed_str = \"encrypted Kronosnet/Corosync 2.0/2.1/1.x/OpenAIS or unknown\" ;\n }\n log_printf ( instance -> log_level_security , \"Unsupported incoming packet (probably sent by %s). Rejecting\" , guessed_str ) ;\n return - 1 ;\n }\n if ( cch -> crypto_hash_type != CRYPTO_HASH_TYPE_2_3 ) {\n log_printf ( instance -> log_level_security , \"Incoming packet has different hash type. Rejecting\" ) ;\n return - 1 ;\n }\n if ( authenticate_nss_2_3 ( instance , buf , buf_len ) != 0 ) {\n return - 1 ;\n }\n if ( ( cch -> __pad0 != 0 ) || ( cch -> __pad1 != 0 ) ) {\n log_printf ( instance -> log_level_security , \"Incoming packet appears to have features not supported by this version of corosync. Rejecting\" ) ;\n return - 1 ;\n }\n if ( decrypt_nss_2_3 ( instance , buf , buf_len ) != 0 ) {\n return - 1 ;\n }\n cch = NULL ;\n memmove ( buf , buf + sizeof ( struct crypto_config_header ) , * buf_len ) ;\n return 0 ;\n }"}
{"idx": 12460, "target": 0, "func": "static inline void update_vlc_state ( VlcState * const state , const int v ) {\n int drift = state -> drift ;\n int count = state -> count ;\n state -> error_sum += FFABS ( v ) ;\n drift += v ;\n if ( count == 128 ) {\n count >>= 1 ;\n drift >>= 1 ;\n state -> error_sum >>= 1 ;\n }\n count ++ ;\n if ( drift <= - count ) {\n if ( state -> bias > - 128 ) state -> bias -- ;\n drift += count ;\n if ( drift <= - count ) drift = - count + 1 ;\n }\n else if ( drift > 0 ) {\n if ( state -> bias < 127 ) state -> bias ++ ;\n drift -= count ;\n if ( drift > 0 ) drift = 0 ;\n }\n state -> drift = drift ;\n state -> count = count ;\n }"}
{"idx": 12461, "target": 0, "func": "void xps_parse_rectangle ( xps_document * doc , char * text , fz_rect * rect ) {\n float args [ 4 ] ;\n char * s = text ;\n int i ;\n args [ 0 ] = 0 ;\n args [ 1 ] = 0 ;\n args [ 2 ] = 1 ;\n args [ 3 ] = 1 ;\n for ( i = 0 ;\n i < 4 && * s ;\n i ++ ) {\n args [ i ] = fz_atof ( s ) ;\n while ( * s && * s != ',' ) s ++ ;\n if ( * s == ',' ) s ++ ;\n }\n rect -> x0 = args [ 0 ] ;\n rect -> y0 = args [ 1 ] ;\n rect -> x1 = args [ 0 ] + args [ 2 ] ;\n rect -> y1 = args [ 1 ] + args [ 3 ] ;\n }"}
{"idx": 12462, "target": 0, "func": "TSReturnCode TSCacheKeyDigestFromUrlSet ( TSCacheKey key , TSMLoc url ) {\n sdk_assert ( sdk_sanity_check_cachekey ( key ) == TS_SUCCESS ) ;\n if ( ( ( CacheInfo * ) key ) -> magic != CACHE_INFO_MAGIC_ALIVE ) {\n return TS_ERROR ;\n }\n url_MD5_get ( ( URLImpl * ) url , & ( ( CacheInfo * ) key ) -> cache_key ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 12463, "target": 0, "func": "extern bool validate_operator ( uid_t uid ) {\n # ifndef NDEBUG if ( drop_priv ) return false ;\n # endif if ( ( uid == 0 ) || ( uid == slurmctld_conf . slurm_user_id ) || assoc_mgr_get_admin_level ( acct_db_conn , uid ) >= SLURMDB_ADMIN_OPERATOR ) return true ;\n else return false ;\n }"}
{"idx": 12464, "target": 1, "func": "static UConverter * _ISCII_SafeClone ( const UConverter * cnv , void * stackBuffer , int32_t * pBufferSize , UErrorCode * status ) {\n struct cloneISCIIStruct * localClone ;\n int32_t bufferSizeNeeded = sizeof ( struct cloneISCIIStruct ) ;\n if ( U_FAILURE ( * status ) ) {\n return 0 ;\n }\n if ( * pBufferSize == 0 ) {\n * pBufferSize = bufferSizeNeeded ;\n return 0 ;\n }\n localClone = ( struct cloneISCIIStruct * ) stackBuffer ;\n uprv_memcpy ( & localClone -> mydata , cnv -> extraInfo , sizeof ( UConverterDataISCII ) ) ;\n localClone -> cnv . extraInfo = & localClone -> mydata ;\n localClone -> cnv . isExtraLocal = TRUE ;\n return & localClone -> cnv ;\n }"}
{"idx": 12465, "target": 0, "func": "static void decode_power_conf_batt_AHr ( gchar * s , guint32 value ) {\n g_snprintf ( s , ITEM_LABEL_LENGTH , \"%d [mAHr]\" , value * 10 ) ;\n return ;\n }"}
{"idx": 12466, "target": 0, "func": "proto_item * proto_tree_add_bytes_format ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , const guint8 * start_ptr , const char * format , ... ) {\n proto_item * pi ;\n va_list ap ;\n header_field_info * hfinfo ;\n gint item_length ;\n PROTO_REGISTRAR_GET_NTH ( hfindex , hfinfo ) ;\n get_hfi_length ( hfinfo , tvb , start , & length , & item_length ) ;\n test_length ( hfinfo , tvb , start , item_length ) ;\n CHECK_FOR_NULL_TREE ( tree ) ;\n TRY_TO_FAKE_THIS_ITEM ( tree , hfindex , hfinfo ) ;\n if ( start_ptr ) pi = proto_tree_add_bytes ( tree , hfindex , tvb , start , length , start_ptr ) ;\n else pi = proto_tree_add_bytes ( tree , hfindex , tvb , start , length , tvb_get_ptr ( tvb , start , length ) ) ;\n TRY_TO_FAKE_THIS_REPR ( pi ) ;\n va_start ( ap , format ) ;\n proto_tree_set_representation ( pi , format , ap ) ;\n va_end ( ap ) ;\n return pi ;\n }"}
{"idx": 12467, "target": 0, "func": "FileMonitors * nautilus_directory_remove_file_monitors ( NautilusDirectory * directory , NautilusFile * file ) {\n GList * result , * * list , * node , * next ;\n Monitor * monitor ;\n g_assert ( NAUTILUS_IS_DIRECTORY ( directory ) ) ;\n g_assert ( NAUTILUS_IS_FILE ( file ) ) ;\n g_assert ( file -> details -> directory == directory ) ;\n result = NULL ;\n list = & directory -> details -> monitor_list ;\n for ( node = directory -> details -> monitor_list ;\n node != NULL ;\n node = next ) {\n next = node -> next ;\n monitor = node -> data ;\n if ( monitor -> file == file ) {\n * list = g_list_remove_link ( * list , node ) ;\n result = g_list_concat ( node , result ) ;\n request_counter_remove_request ( directory -> details -> monitor_counters , monitor -> request ) ;\n }\n }\n nautilus_directory_async_state_changed ( directory ) ;\n return ( FileMonitors * ) result ;\n }"}
{"idx": 12468, "target": 0, "func": "static int kq_add ( void * arg , struct event * ev ) {\n struct kqop * kqop = arg ;\n struct kevent kev ;\n if ( ev -> ev_events & EV_SIGNAL ) {\n int nsignal = EVENT_SIGNAL ( ev ) ;\n assert ( nsignal >= 0 && nsignal < NSIG ) ;\n if ( TAILQ_EMPTY ( & kqop -> evsigevents [ nsignal ] ) ) {\n struct timespec timeout = {\n 0 , 0 }\n ;\n memset ( & kev , 0 , sizeof ( kev ) ) ;\n kev . ident = nsignal ;\n kev . filter = EVFILT_SIGNAL ;\n kev . flags = EV_ADD ;\n kev . udata = PTR_TO_UDATA ( & kqop -> evsigevents [ nsignal ] ) ;\n if ( kevent ( kqop -> kq , & kev , 1 , NULL , 0 , & timeout ) == - 1 ) return ( - 1 ) ;\n if ( _evsignal_set_handler ( ev -> ev_base , nsignal , kq_sighandler ) == - 1 ) return ( - 1 ) ;\n }\n TAILQ_INSERT_TAIL ( & kqop -> evsigevents [ nsignal ] , ev , ev_signal_next ) ;\n ev -> ev_flags |= EVLIST_X_KQINKERNEL ;\n return ( 0 ) ;\n }\n if ( ev -> ev_events & EV_READ ) {\n memset ( & kev , 0 , sizeof ( kev ) ) ;\n kev . ident = ev -> ev_fd ;\n kev . filter = EVFILT_READ ;\n # ifdef NOTE_EOF kev . fflags = NOTE_EOF ;\n # endif kev . flags = EV_ADD ;\n if ( ! ( ev -> ev_events & EV_PERSIST ) ) kev . flags |= EV_ONESHOT ;\n kev . udata = PTR_TO_UDATA ( ev ) ;\n if ( kq_insert ( kqop , & kev ) == - 1 ) return ( - 1 ) ;\n ev -> ev_flags |= EVLIST_X_KQINKERNEL ;\n }\n if ( ev -> ev_events & EV_WRITE ) {\n memset ( & kev , 0 , sizeof ( kev ) ) ;\n kev . ident = ev -> ev_fd ;\n kev . filter = EVFILT_WRITE ;\n kev . flags = EV_ADD ;\n if ( ! ( ev -> ev_events & EV_PERSIST ) ) kev . flags |= EV_ONESHOT ;\n kev . udata = PTR_TO_UDATA ( ev ) ;\n if ( kq_insert ( kqop , & kev ) == - 1 ) return ( - 1 ) ;\n ev -> ev_flags |= EVLIST_X_KQINKERNEL ;\n }\n return ( 0 ) ;\n }"}
{"idx": 12469, "target": 0, "func": "static inline void NVRAM_set_byte ( m48t59_t * nvram , uint32_t addr , uint8_t value ) {\n m48t59_set_addr ( nvram , addr ) ;\n m48t59_write ( nvram , value ) ;\n }"}
{"idx": 12470, "target": 0, "func": "static int pbase_tree_cache_ix_incr ( int ix ) {\n return ( ix + 1 ) % ARRAY_SIZE ( pbase_tree_cache ) ;\n }"}
{"idx": 12471, "target": 0, "func": "TEST_F ( ExtensionServiceSyncTest , GetSyncDataTerminated ) {\n InitializeEmptyExtensionService ( ) ;\n InstallCRX ( data_dir ( ) . AppendASCII ( \"good.crx\" ) , INSTALL_NEW ) ;\n TerminateExtension ( good_crx ) ;\n const Extension * extension = service ( ) -> GetInstalledExtension ( good_crx ) ;\n ASSERT_TRUE ( extension ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , syncer : : SyncDataList ( ) , base : : MakeUnique < syncer : : FakeSyncChangeProcessor > ( ) , base : : MakeUnique < syncer : : SyncErrorFactoryMock > ( ) ) ;\n syncer : : SyncDataList list = extension_sync_service ( ) -> GetAllSyncData ( syncer : : EXTENSIONS ) ;\n ASSERT_EQ ( list . size ( ) , 1U ) ;\n std : : unique_ptr < ExtensionSyncData > data = ExtensionSyncData : : CreateFromSyncData ( list [ 0 ] ) ;\n ASSERT_TRUE ( data . get ( ) ) ;\n EXPECT_EQ ( extension -> id ( ) , data -> id ( ) ) ;\n EXPECT_FALSE ( data -> uninstalled ( ) ) ;\n EXPECT_EQ ( service ( ) -> IsExtensionEnabled ( good_crx ) , data -> enabled ( ) ) ;\n EXPECT_EQ ( extensions : : util : : IsIncognitoEnabled ( good_crx , profile ( ) ) , data -> incognito_enabled ( ) ) ;\n EXPECT_EQ ( ExtensionSyncData : : BOOLEAN_UNSET , data -> all_urls_enabled ( ) ) ;\n EXPECT_EQ ( data -> version ( ) , * extension -> version ( ) ) ;\n EXPECT_EQ ( extensions : : ManifestURL : : GetUpdateURL ( extension ) , data -> update_url ( ) ) ;\n EXPECT_EQ ( extension -> name ( ) , data -> name ( ) ) ;\n }"}
{"idx": 12472, "target": 0, "func": "void cpu_io_recompile ( CPUArchState * env , uintptr_t retaddr ) {\n TranslationBlock * tb ;\n uint32_t n , cflags ;\n target_ulong pc , cs_base ;\n uint64_t flags ;\n tb = tb_find_pc ( retaddr ) ;\n if ( ! tb ) {\n cpu_abort ( env , \"cpu_io_recompile: could not find TB for pc=%p\" , ( void * ) retaddr ) ;\n }\n n = env -> icount_decr . u16 . low + tb -> icount ;\n cpu_restore_state_from_tb ( tb , env , retaddr ) ;\n n = n - env -> icount_decr . u16 . low ;\n n ++ ;\n # if defined ( TARGET_MIPS ) if ( ( env -> hflags & MIPS_HFLAG_BMASK ) != 0 && n > 1 ) {\n env -> active_tc . PC -= 4 ;\n env -> icount_decr . u16 . low ++ ;\n env -> hflags &= ~ MIPS_HFLAG_BMASK ;\n }\n # elif defined ( TARGET_SH4 ) if ( ( env -> flags & ( ( DELAY_SLOT | DELAY_SLOT_CONDITIONAL ) ) ) != 0 && n > 1 ) {\n env -> pc -= 2 ;\n env -> icount_decr . u16 . low ++ ;\n env -> flags &= ~ ( DELAY_SLOT | DELAY_SLOT_CONDITIONAL ) ;\n }\n # endif if ( n > CF_COUNT_MASK ) {\n cpu_abort ( env , \"TB too big during recompile\" ) ;\n }\n cflags = n | CF_LAST_IO ;\n pc = tb -> pc ;\n cs_base = tb -> cs_base ;\n flags = tb -> flags ;\n tb_phys_invalidate ( tb , - 1 ) ;\n tb_gen_code ( env , pc , cs_base , flags , cflags ) ;\n cpu_resume_from_signal ( env , NULL ) ;\n }"}
{"idx": 12473, "target": 0, "func": "static RETSIGTYPE die ( int killed ) {\n static TERMIO sgtty ;\n if ( killed != 0 ) {\n STTY ( 0 , & sgtty ) ;\n }\n else {\n GTTY ( 0 , & sgtty ) ;\n }\n if ( killed != 0 ) {\n _exit ( 128 + killed ) ;\n }\n }"}
{"idx": 12474, "target": 0, "func": "static int selinux_file_open ( struct file * file , const struct cred * cred ) {\n struct file_security_struct * fsec ;\n struct inode_security_struct * isec ;\n fsec = file -> f_security ;\n isec = inode_security ( file_inode ( file ) ) ;\n fsec -> isid = isec -> sid ;\n fsec -> pseqno = avc_policy_seqno ( ) ;\n return file_path_has_perm ( cred , file , open_file_to_av ( file ) ) ;\n }"}
{"idx": 12475, "target": 0, "func": "static void open_output_file ( struct stream_state * stream , struct VpxEncoderConfig * global ) {\n const char * fn = stream -> config . out_fn ;\n const struct vpx_codec_enc_cfg * const cfg = & stream -> config . cfg ;\n if ( cfg -> g_pass == VPX_RC_FIRST_PASS ) return ;\n stream -> file = strcmp ( fn , \"-\" ) ? fopen ( fn , \"wb\" ) : set_binary_mode ( stdout ) ;\n if ( ! stream -> file ) fatal ( \"Failed to open output file\" ) ;\n if ( stream -> config . write_webm && fseek ( stream -> file , 0 , SEEK_CUR ) ) fatal ( \"WebM output to pipes not supported.\" ) ;\n # if CONFIG_WEBM_IO if ( stream -> config . write_webm ) {\n stream -> ebml . stream = stream -> file ;\n write_webm_file_header ( & stream -> ebml , cfg , & global -> framerate , stream -> config . stereo_fmt , global -> codec -> fourcc ) ;\n }\n # endif if ( ! stream -> config . write_webm ) {\n ivf_write_file_header ( stream -> file , cfg , global -> codec -> fourcc , 0 ) ;\n }\n }"}
{"idx": 12476, "target": 0, "func": "void proto_register_zbee_zcl_appl_ctrl ( void ) {\n guint i , j ;\n static hf_register_info hf [ ] = {\n {\n & hf_zbee_zcl_appl_ctrl_attr_id , {\n \"Attribute\" , \"zbee_zcl_general.applctrl.attr_id\" , FT_UINT16 , BASE_HEX , VALS ( zbee_zcl_appl_ctrl_attr_names ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_ctrl_time , {\n \"Data\" , \"zbee_zcl_general.applctrl.time\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_ctrl_time_mm , {\n \"Minutes\" , \"zbee_zcl_general.applctrl.time.mm\" , FT_UINT16 , BASE_DEC , NULL , ZBEE_ZCL_APPL_CTRL_TIME_MM , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_ctrl_time_encoding_type , {\n \"Encoding Type\" , \"zbee_zcl_general.applctrl.time.encoding_type\" , FT_UINT16 , BASE_HEX , VALS ( zbee_zcl_appl_ctrl_time_encoding_type_names ) , ZBEE_ZCL_APPL_CTRL_TIME_ENCOD_TYPE , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_ctrl_time_hh , {\n \"Hours\" , \"zbee_zcl_general.applctrl.time.hh\" , FT_UINT16 , BASE_DEC , NULL , ZBEE_ZCL_APPL_CTRL_TIME_HH , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_ctrl_srv_tx_cmd_id , {\n \"Command\" , \"zbee_zcl_general.applctrl.cmd.srv_tx.id\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_appl_ctrl_srv_tx_cmd_names ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_ctrl_srv_rx_cmd_id , {\n \"Command\" , \"zbee_zcl_general.applctrl.cmd.srv_rx.id\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_appl_ctrl_srv_rx_cmd_names ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_ctrl_appl_status , {\n \"Appliance Status\" , \"zbee_zcl_general.applctrl.status\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_appl_ctrl_appl_status_names ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_ctrl_rem_en_flags_raw , {\n \"Remote Enable Flags\" , \"zbee_zcl_general.applctrl.remote_enable_flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_ctrl_rem_en_flags , {\n \"Remote Enable Flags\" , \"zbee_zcl_general.applctrl.remenflags\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_appl_ctrl_rem_flags_names ) , ZBEE_ZCL_APPL_CTRL_REM_EN_FLAGS_FLAGS , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_ctrl_status2 , {\n \"Appliance Status 2\" , \"zbee_zcl_general.applctrl.status2\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_appl_ctrl_status2_names ) , ZBEE_ZCL_APPL_CTRL_REM_EN_FLAGS_STATUS2 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_ctrl_status2_array , {\n \"Appliance Status 2\" , \"zbee_zcl_general.applctrl.status2.array\" , FT_UINT24 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_ctrl_exec_cmd_id , {\n \"Command\" , \"zbee_zcl_general.applctrl.execcmd.id\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_appl_ctrl_exec_cmd_names ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_ctrl_attr_func_id , {\n \"ID\" , \"zbee_zcl_general.applctrl.attr_func.id\" , FT_UINT16 , BASE_HEX , VALS ( zbee_zcl_appl_ctrl_attr_names ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_ctrl_attr_func_data_type , {\n \"Data Type\" , \"zbee_zcl_general.applctrl.attr_func.datatype\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_short_data_type_names ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_appl_ctrl_warning_id , {\n \"Warning\" , \"zbee_zcl_general.applctrl.ovrlwarning.id\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_appl_ctrl_ovrl_warning_names ) , 0x0 , NULL , HFILL }\n }\n }\n ;\n gint * ett [ ZBEE_ZCL_APPL_CTRL_NUM_ETT ] ;\n ett [ 0 ] = & ett_zbee_zcl_appl_ctrl ;\n ett [ 1 ] = & ett_zbee_zcl_appl_ctrl_flags ;\n ett [ 2 ] = & ett_zbee_zcl_appl_ctrl_time ;\n for ( i = 0 , j = ZBEE_ZCL_APPL_CTRL_NUM_GENERIC_ETT ;\n i < ZBEE_ZCL_APPL_CTRL_NUM_FUNC_ETT ;\n i ++ , j ++ ) {\n ett_zbee_zcl_appl_ctrl_func [ i ] = - 1 ;\n ett [ j ] = & ett_zbee_zcl_appl_ctrl_func [ i ] ;\n }\n proto_zbee_zcl_appl_ctrl = proto_register_protocol ( \"ZigBee ZCL Appliance Control\" , \"ZCL Appliance Control\" , ZBEE_PROTOABBREV_ZCL_APPLCTRL ) ;\n proto_register_field_array ( proto_zbee_zcl_appl_ctrl , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n register_dissector ( ZBEE_PROTOABBREV_ZCL_APPLCTRL , dissect_zbee_zcl_appl_ctrl , proto_zbee_zcl_appl_ctrl ) ;\n }"}
{"idx": 12477, "target": 0, "func": "static cmsBool Type_U16Fixed16_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) {\n cmsFloat64Number * Value = ( cmsFloat64Number * ) Ptr ;\n cmsUInt32Number i ;\n for ( i = 0 ;\n i < nItems ;\n i ++ ) {\n cmsUInt32Number v = ( cmsUInt32Number ) floor ( Value [ i ] * 65536.0 + 0.5 ) ;\n if ( ! _cmsWriteUInt32Number ( io , v ) ) return FALSE ;\n }\n return TRUE ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 12478, "target": 0, "func": "int16_t jbig2_get_int16 ( const byte * bptr ) {\n return get_int16 ( bptr ) ;\n }"}
{"idx": 12479, "target": 0, "func": "static int dissect_h245_TerminalInformation ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_TerminalInformation , TerminalInformation_sequence ) ;\n return offset ;\n }"}
{"idx": 12480, "target": 0, "func": "static void test_date ( ) {\n int rc ;\n myheader ( \"test_date\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_date\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_date(c1 TIMESTAMP, \\ c2 TIME, \\ c3 DATETIME, \\ c4 DATE)\" ) ;\n myquery ( rc ) ;\n bind_date_conv ( 5 , FALSE ) ;\n }"}
{"idx": 12481, "target": 0, "func": "static gpgme_error_t gpgsm_getauditlog ( void * engine , gpgme_data_t output , unsigned int flags ) {\n engine_gpgsm_t gpgsm = engine ;\n gpgme_error_t err = 0 ;\n if ( ! gpgsm || ! output ) return gpg_error ( GPG_ERR_INV_VALUE ) ;\n # if USE_DESCRIPTOR_PASSING gpgsm -> output_cb . data = output ;\n err = gpgsm_set_fd ( gpgsm , OUTPUT_FD , 0 ) ;\n if ( err ) return err ;\n gpgsm_clear_fd ( gpgsm , INPUT_FD ) ;\n gpgsm_clear_fd ( gpgsm , MESSAGE_FD ) ;\n gpgsm -> inline_data = NULL ;\n # define CMD \"GETAUDITLOG\" # else gpgsm_clear_fd ( gpgsm , OUTPUT_FD ) ;\n gpgsm_clear_fd ( gpgsm , INPUT_FD ) ;\n gpgsm_clear_fd ( gpgsm , MESSAGE_FD ) ;\n gpgsm -> inline_data = output ;\n # define CMD \"GETAUDITLOG --data\" # endif err = start ( gpgsm , ( flags & GPGME_AUDITLOG_HTML ) ? CMD \" --html\" : CMD ) ;\n return err ;\n }"}
{"idx": 12482, "target": 0, "func": "void * xmlHashQLookup2 ( xmlHashTablePtr table , const xmlChar * prefix , const xmlChar * name , const xmlChar * prefix2 , const xmlChar * name2 ) {\n return ( xmlHashQLookup3 ( table , prefix , name , prefix2 , name2 , NULL , NULL ) ) ;\n }"}
{"idx": 12483, "target": 0, "func": "int ssl_allow_compression ( SSL * s ) {\n if ( s -> options & SSL_OP_NO_COMPRESSION ) return 0 ;\n return ssl_security ( s , SSL_SECOP_COMPRESSION , 0 , 0 , NULL ) ;\n }"}
{"idx": 12484, "target": 0, "func": "static enum AVPixelFormat find_pix_fmt ( const PixelFormatTag * tags , unsigned int fourcc ) {\n while ( tags -> pix_fmt >= 0 ) {\n if ( tags -> fourcc == fourcc ) return tags -> pix_fmt ;\n tags ++ ;\n }\n return AV_PIX_FMT_YUV420P ;\n }"}
{"idx": 12485, "target": 0, "func": "static void pdf_run_n ( fz_context * ctx , pdf_processor * proc ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_show_path ( ctx , pr , 0 , 0 , 0 , 0 ) ;\n }"}
{"idx": 12486, "target": 0, "func": "static PyObject * string_richcompare ( PyStringObject * a , PyStringObject * b , int op ) {\n int c ;\n Py_ssize_t len_a , len_b ;\n Py_ssize_t min_len ;\n PyObject * result ;\n if ( ! ( PyString_Check ( a ) && PyString_Check ( b ) ) ) {\n result = Py_NotImplemented ;\n goto out ;\n }\n if ( a == b ) {\n switch ( op ) {\n case Py_EQ : case Py_LE : case Py_GE : result = Py_True ;\n goto out ;\n case Py_NE : case Py_LT : case Py_GT : result = Py_False ;\n goto out ;\n }\n }\n if ( op == Py_EQ ) {\n if ( Py_SIZE ( a ) == Py_SIZE ( b ) && ( a -> ob_sval [ 0 ] == b -> ob_sval [ 0 ] && memcmp ( a -> ob_sval , b -> ob_sval , Py_SIZE ( a ) ) == 0 ) ) {\n result = Py_True ;\n }\n else {\n result = Py_False ;\n }\n goto out ;\n }\n len_a = Py_SIZE ( a ) ;\n len_b = Py_SIZE ( b ) ;\n min_len = ( len_a < len_b ) ? len_a : len_b ;\n if ( min_len > 0 ) {\n c = Py_CHARMASK ( * a -> ob_sval ) - Py_CHARMASK ( * b -> ob_sval ) ;\n if ( c == 0 ) c = memcmp ( a -> ob_sval , b -> ob_sval , min_len ) ;\n }\n else c = 0 ;\n if ( c == 0 ) c = ( len_a < len_b ) ? - 1 : ( len_a > len_b ) ? 1 : 0 ;\n switch ( op ) {\n case Py_LT : c = c < 0 ;\n break ;\n case Py_LE : c = c <= 0 ;\n break ;\n case Py_EQ : assert ( 0 ) ;\n break ;\n case Py_NE : c = c != 0 ;\n break ;\n case Py_GT : c = c > 0 ;\n break ;\n case Py_GE : c = c >= 0 ;\n break ;\n default : result = Py_NotImplemented ;\n goto out ;\n }\n result = c ? Py_True : Py_False ;\n out : Py_INCREF ( result ) ;\n return result ;\n }"}
{"idx": 12487, "target": 0, "func": "static int raster_block_offset ( BLOCK_SIZE plane_bsize , int raster_block , int stride ) {\n const int bw = b_width_log2 ( plane_bsize ) ;\n const int y = 4 * ( raster_block >> bw ) ;\n const int x = 4 * ( raster_block & ( ( 1 << bw ) - 1 ) ) ;\n return y * stride + x ;\n }"}
{"idx": 12488, "target": 0, "func": "void do_connect ( struct st_command * command ) {\n int con_port = opt_port ;\n char * con_options ;\n char * ssl_cipher __attribute__ ( ( unused ) ) = 0 ;\n my_bool con_ssl = 0 , con_compress = 0 ;\n my_bool con_pipe = 0 ;\n my_bool con_shm __attribute__ ( ( unused ) ) = 0 ;\n struct st_connection * con_slot ;\n static DYNAMIC_STRING ds_connection_name ;\n static DYNAMIC_STRING ds_host ;\n static DYNAMIC_STRING ds_user ;\n static DYNAMIC_STRING ds_password ;\n static DYNAMIC_STRING ds_database ;\n static DYNAMIC_STRING ds_port ;\n static DYNAMIC_STRING ds_sock ;\n static DYNAMIC_STRING ds_options ;\n static DYNAMIC_STRING ds_default_auth ;\n # ifdef HAVE_SMEM static DYNAMIC_STRING ds_shm ;\n # endif const struct command_arg connect_args [ ] = {\n {\n \"connection name\" , ARG_STRING , TRUE , & ds_connection_name , \"Name of the connection\" }\n , {\n \"host\" , ARG_STRING , TRUE , & ds_host , \"Host to connect to\" }\n , {\n \"user\" , ARG_STRING , FALSE , & ds_user , \"User to connect as\" }\n , {\n \"passsword\" , ARG_STRING , FALSE , & ds_password , \"Password used when connecting\" }\n , {\n \"database\" , ARG_STRING , FALSE , & ds_database , \"Database to select after connect\" }\n , {\n \"port\" , ARG_STRING , FALSE , & ds_port , \"Port to connect to\" }\n , {\n \"socket\" , ARG_STRING , FALSE , & ds_sock , \"Socket to connect with\" }\n , {\n \"options\" , ARG_STRING , FALSE , & ds_options , \"Options to use while connecting\" }\n , {\n \"default_auth\" , ARG_STRING , FALSE , & ds_default_auth , \"Default authentication to use\" }\n }\n ;\n DBUG_ENTER ( \"do_connect\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"connect: %s\" , command -> first_argument ) ) ;\n strip_parentheses ( command ) ;\n check_command_args ( command , command -> first_argument , connect_args , sizeof ( connect_args ) / sizeof ( struct command_arg ) , ',' ) ;\n if ( ds_port . length ) {\n con_port = atoi ( ds_port . str ) ;\n if ( con_port == 0 ) die ( \"Illegal argument for port: '%s'\" , ds_port . str ) ;\n }\n # ifdef HAVE_SMEM init_dynamic_string ( & ds_shm , ds_sock . str , 0 , 0 ) ;\n # endif if ( ds_sock . length ) {\n if ( * ds_sock . str != FN_LIBCHAR ) {\n char buff [ FN_REFLEN ] ;\n fn_format ( buff , ds_sock . str , TMPDIR , \"\" , 0 ) ;\n dynstr_set ( & ds_sock , buff ) ;\n }\n }\n else {\n dynstr_set ( & ds_sock , unix_sock ) ;\n }\n DBUG_PRINT ( \"info\" , ( \"socket: %s\" , ds_sock . str ) ) ;\n con_options = ds_options . str ;\n while ( * con_options ) {\n size_t length ;\n char * end ;\n while ( * con_options && my_isspace ( charset_info , * con_options ) ) con_options ++ ;\n end = con_options ;\n while ( * end && ! my_isspace ( charset_info , * end ) ) end ++ ;\n length = ( size_t ) ( end - con_options ) ;\n if ( length == 3 && ! strncmp ( con_options , \"SSL\" , 3 ) ) con_ssl = 1 ;\n else if ( ! strncmp ( con_options , \"SSL-CIPHER=\" , 11 ) ) {\n con_ssl = 1 ;\n ssl_cipher = con_options + 11 ;\n }\n else if ( length == 8 && ! strncmp ( con_options , \"COMPRESS\" , 8 ) ) con_compress = 1 ;\n else if ( length == 4 && ! strncmp ( con_options , \"PIPE\" , 4 ) ) con_pipe = 1 ;\n else if ( length == 3 && ! strncmp ( con_options , \"SHM\" , 3 ) ) con_shm = 1 ;\n else die ( \"Illegal option to connect: %.*s\" , ( int ) ( end - con_options ) , con_options ) ;\n con_options = end ;\n }\n if ( find_connection_by_name ( ds_connection_name . str ) ) die ( \"Connection %s already exists\" , ds_connection_name . str ) ;\n if ( next_con != connections_end ) con_slot = next_con ;\n else {\n if ( ! ( con_slot = find_connection_by_name ( \"-closed_connection-\" ) ) ) die ( \"Connection limit exhausted, you can have max %d connections\" , opt_max_connections ) ;\n my_free ( con_slot -> name ) ;\n con_slot -> name = 0 ;\n }\n init_connection_thd ( con_slot ) ;\n if ( ! ( con_slot -> mysql = mysql_init ( 0 ) ) ) die ( \"Failed on mysql_init()\" ) ;\n if ( opt_connect_timeout ) mysql_options ( con_slot -> mysql , MYSQL_OPT_CONNECT_TIMEOUT , ( void * ) & opt_connect_timeout ) ;\n # ifndef MY_CONTEXT_DISABLE if ( mysql_options ( con_slot -> mysql , MYSQL_OPT_NONBLOCK , 0 ) ) die ( \"Failed to initialise non-blocking API\" ) ;\n # endif if ( opt_compress || con_compress ) mysql_options ( con_slot -> mysql , MYSQL_OPT_COMPRESS , NullS ) ;\n mysql_options ( con_slot -> mysql , MYSQL_OPT_LOCAL_INFILE , 0 ) ;\n mysql_options ( con_slot -> mysql , MYSQL_SET_CHARSET_NAME , charset_info -> csname ) ;\n if ( opt_charsets_dir ) mysql_options ( con_slot -> mysql , MYSQL_SET_CHARSET_DIR , opt_charsets_dir ) ;\n # if defined ( HAVE_OPENSSL ) && ! defined ( EMBEDDED_LIBRARY ) if ( opt_use_ssl ) con_ssl = 1 ;\n # endif if ( con_ssl ) {\n # if defined ( HAVE_OPENSSL ) && ! defined ( EMBEDDED_LIBRARY ) mysql_ssl_set ( con_slot -> mysql , opt_ssl_key , opt_ssl_cert , opt_ssl_ca , opt_ssl_capath , ssl_cipher ? ssl_cipher : opt_ssl_cipher ) ;\n # if MYSQL_VERSION_ID >= 50000 opt_ssl_verify_server_cert = ! strcmp ( ds_host . str , \"localhost\" ) ;\n mysql_options ( con_slot -> mysql , MYSQL_OPT_SSL_VERIFY_SERVER_CERT , & opt_ssl_verify_server_cert ) ;\n # endif # endif }\n if ( con_pipe ) {\n # ifdef __WIN__ opt_protocol = MYSQL_PROTOCOL_PIPE ;\n # endif }\n if ( opt_protocol ) mysql_options ( con_slot -> mysql , MYSQL_OPT_PROTOCOL , ( char * ) & opt_protocol ) ;\n # ifdef HAVE_SMEM if ( con_shm ) {\n uint protocol = MYSQL_PROTOCOL_MEMORY ;\n if ( ! ds_shm . length ) die ( \"Missing shared memory base name\" ) ;\n mysql_options ( con_slot -> mysql , MYSQL_SHARED_MEMORY_BASE_NAME , ds_shm . str ) ;\n mysql_options ( con_slot -> mysql , MYSQL_OPT_PROTOCOL , & protocol ) ;\n }\n else if ( shared_memory_base_name ) {\n mysql_options ( con_slot -> mysql , MYSQL_SHARED_MEMORY_BASE_NAME , shared_memory_base_name ) ;\n }\n # endif if ( ds_database . length == 0 ) dynstr_set ( & ds_database , opt_db ) ;\n if ( opt_plugin_dir && * opt_plugin_dir ) mysql_options ( con_slot -> mysql , MYSQL_PLUGIN_DIR , opt_plugin_dir ) ;\n if ( ds_default_auth . length ) mysql_options ( con_slot -> mysql , MYSQL_DEFAULT_AUTH , ds_default_auth . str ) ;\n if ( ds_database . length && ! strcmp ( ds_database . str , \"*NO-ONE*\" ) ) dynstr_set ( & ds_database , \"\" ) ;\n if ( connect_n_handle_errors ( command , con_slot -> mysql , ds_host . str , ds_user . str , ds_password . str , ds_database . str , con_port , ds_sock . str ) ) {\n DBUG_PRINT ( \"info\" , ( \"Inserting connection %s in connection pool\" , ds_connection_name . str ) ) ;\n if ( ! ( con_slot -> name = my_strdup ( ds_connection_name . str , MYF ( MY_WME ) ) ) ) die ( \"Out of memory\" ) ;\n con_slot -> name_len = strlen ( con_slot -> name ) ;\n set_current_connection ( con_slot ) ;\n if ( con_slot == next_con ) next_con ++ ;\n }\n dynstr_free ( & ds_connection_name ) ;\n dynstr_free ( & ds_host ) ;\n dynstr_free ( & ds_user ) ;\n dynstr_free ( & ds_password ) ;\n dynstr_free ( & ds_database ) ;\n dynstr_free ( & ds_port ) ;\n dynstr_free ( & ds_sock ) ;\n dynstr_free ( & ds_options ) ;\n dynstr_free ( & ds_default_auth ) ;\n # ifdef HAVE_SMEM dynstr_free ( & ds_shm ) ;\n # endif DBUG_VOID_RETURN ;\n }"}
{"idx": 12489, "target": 0, "func": "void xmlrpc_char_encode ( char * outbuffer , const char * s1 ) {\n long unsigned int i ;\n unsigned char c ;\n char buf2 [ 15 ] ;\n mowgli_string_t * s = mowgli_string_create ( ) ;\n * buf2 = '\\0' ;\n * outbuffer = '\\0' ;\n if ( ( ! ( s1 ) || ( * ( s1 ) == '\\0' ) ) ) {\n return ;\n }\n for ( i = 0 ;\n s1 [ i ] != '\\0' ;\n i ++ ) {\n c = s1 [ i ] ;\n if ( c > 127 ) {\n snprintf ( buf2 , sizeof buf2 , \"&#%d;\n\" , c ) ;\n s -> append ( s , buf2 , strlen ( buf2 ) ) ;\n }\n else if ( c == '&' ) {\n s -> append ( s , \"&amp;\n\" , 5 ) ;\n }\n else if ( c == '<' ) {\n s -> append ( s , \"&lt;\n\" , 4 ) ;\n }\n else if ( c == '>' ) {\n s -> append ( s , \"&gt;\n\" , 4 ) ;\n }\n else if ( c == '\"' ) {\n s -> append ( s , \"&quot;\n\" , 6 ) ;\n }\n else {\n s -> append_char ( s , c ) ;\n }\n }\n s -> append_char ( s , 0 ) ;\n strncpy ( outbuffer , s -> str , XMLRPC_BUFSIZE ) ;\n }"}
{"idx": 12490, "target": 0, "func": "static void AddPnaclDisabledParm ( const base : : FilePath : : StringType & url , base : : FilePath : : StringType * url_with_parm ) {\n if ( url . find ( FILE_PATH_LITERAL ( \"?\" ) ) == base : : FilePath : : StringType : : npos ) {\n * url_with_parm = url + FILE_PATH_LITERAL ( \"?pnacl_disabled=1\" ) ;\n }\n else {\n * url_with_parm = url + FILE_PATH_LITERAL ( \"&pnacl_disabled=1\" ) ;\n }\n }"}
{"idx": 12491, "target": 0, "func": "static bool bind_to_interface ( int sd ) {\n char * iface ;\n # if defined ( SOL_SOCKET ) && defined ( SO_BINDTODEVICE ) struct ifreq ifr ;\n int status ;\n # endif if ( ! get_config_string ( lookup_config ( config_tree , \"BindToInterface\" ) , & iface ) ) {\n return true ;\n }\n # if defined ( SOL_SOCKET ) && defined ( SO_BINDTODEVICE ) memset ( & ifr , 0 , sizeof ( ifr ) ) ;\n strncpy ( ifr . ifr_ifrn . ifrn_name , iface , IFNAMSIZ ) ;\n ifr . ifr_ifrn . ifrn_name [ IFNAMSIZ - 1 ] = 0 ;\n free ( iface ) ;\n status = setsockopt ( sd , SOL_SOCKET , SO_BINDTODEVICE , ( void * ) & ifr , sizeof ( ifr ) ) ;\n if ( status ) {\n logger ( LOG_ERR , \"Can't bind to interface %s: %s\" , ifr . ifr_ifrn . ifrn_name , strerror ( errno ) ) ;\n return false ;\n }\n # else logger ( LOG_WARNING , \"%s not supported on this platform\" , \"BindToInterface\" ) ;\n # endif return true ;\n }"}
{"idx": 12492, "target": 0, "func": "static void e1000e_set_imc ( E1000ECore * core , int index , uint32_t val ) {\n trace_e1000e_irq_ims_clear_set_imc ( val ) ;\n e1000e_clear_ims_bits ( core , val ) ;\n e1000e_update_interrupt_state ( core ) ;\n }"}
{"idx": 12493, "target": 0, "func": "xmlChar * xsltEvalXPathStringNs ( xsltTransformContextPtr ctxt , xmlXPathCompExprPtr comp , int nsNr , xmlNsPtr * nsList ) {\n xmlChar * ret = NULL ;\n xmlXPathObjectPtr res ;\n xmlNodePtr oldInst ;\n xmlNodePtr oldNode ;\n int oldPos , oldSize ;\n int oldNsNr ;\n xmlNsPtr * oldNamespaces ;\n oldInst = ctxt -> inst ;\n oldNode = ctxt -> node ;\n oldPos = ctxt -> xpathCtxt -> proximityPosition ;\n oldSize = ctxt -> xpathCtxt -> contextSize ;\n oldNsNr = ctxt -> xpathCtxt -> nsNr ;\n oldNamespaces = ctxt -> xpathCtxt -> namespaces ;\n ctxt -> xpathCtxt -> node = ctxt -> node ;\n ctxt -> xpathCtxt -> namespaces = nsList ;\n ctxt -> xpathCtxt -> nsNr = nsNr ;\n res = xmlXPathCompiledEval ( comp , ctxt -> xpathCtxt ) ;\n if ( res != NULL ) {\n if ( res -> type != XPATH_STRING ) res = xmlXPathConvertString ( res ) ;\n if ( res -> type == XPATH_STRING ) {\n ret = res -> stringval ;\n res -> stringval = NULL ;\n }\n else {\n xsltTransformError ( ctxt , NULL , NULL , \"xpath : string() function didn't return a String\\n\" ) ;\n }\n xmlXPathFreeObject ( res ) ;\n }\n else {\n ctxt -> state = XSLT_STATE_STOPPED ;\n }\n # ifdef WITH_XSLT_DEBUG_TEMPLATES XSLT_TRACE ( ctxt , XSLT_TRACE_TEMPLATES , xsltGenericDebug ( xsltGenericDebugContext , \"xsltEvalXPathString: returns %s\\n\" , ret ) ) ;\n # endif ctxt -> inst = oldInst ;\n ctxt -> node = oldNode ;\n ctxt -> xpathCtxt -> contextSize = oldSize ;\n ctxt -> xpathCtxt -> proximityPosition = oldPos ;\n ctxt -> xpathCtxt -> nsNr = oldNsNr ;\n ctxt -> xpathCtxt -> namespaces = oldNamespaces ;\n return ( ret ) ;\n }"}
{"idx": 12494, "target": 0, "func": "static void tokenize_init_one ( TOKENVALUE * t , const vp9_extra_bit * const e , int16_t * value_cost , int max_value ) {\n int i = - max_value ;\n int sign = 1 ;\n do {\n if ( ! i ) sign = 0 ;\n {\n const int a = sign ? - i : i ;\n int eb = sign ;\n if ( a > 4 ) {\n int j = 4 ;\n while ( ++ j < 11 && e [ j ] . base_val <= a ) {\n }\n t [ i ] . token = -- j ;\n eb |= ( a - e [ j ] . base_val ) << 1 ;\n }\n else {\n t [ i ] . token = a ;\n }\n t [ i ] . extra = eb ;\n }\n {\n int cost = 0 ;\n const vp9_extra_bit * p = & e [ t [ i ] . token ] ;\n if ( p -> base_val ) {\n const int extra = t [ i ] . extra ;\n const int length = p -> len ;\n if ( length ) cost += treed_cost ( p -> tree , p -> prob , extra >> 1 , length ) ;\n cost += vp9_cost_bit ( vp9_prob_half , extra & 1 ) ;\n value_cost [ i ] = cost ;\n }\n }\n }\n while ( ++ i < max_value ) ;\n }"}
{"idx": 12495, "target": 1, "func": "static __always_inline __u64 __le64_to_cpup ( const __le64 * p ) {\n return ( __u64 ) * p ;\n }"}
{"idx": 12496, "target": 0, "func": "static void curl_setup_http ( CURL * curl , const char * url , const char * custom_req , struct buffer * buffer , curl_write_callback write_fn ) {\n curl_easy_setopt ( curl , CURLOPT_PUT , 1 ) ;\n curl_easy_setopt ( curl , CURLOPT_URL , url ) ;\n curl_easy_setopt ( curl , CURLOPT_INFILE , buffer ) ;\n curl_easy_setopt ( curl , CURLOPT_INFILESIZE , buffer -> buf . len ) ;\n curl_easy_setopt ( curl , CURLOPT_READFUNCTION , fread_buffer ) ;\n # ifndef NO_CURL_IOCTL curl_easy_setopt ( curl , CURLOPT_IOCTLFUNCTION , ioctl_buffer ) ;\n curl_easy_setopt ( curl , CURLOPT_IOCTLDATA , buffer ) ;\n # endif curl_easy_setopt ( curl , CURLOPT_WRITEFUNCTION , write_fn ) ;\n curl_easy_setopt ( curl , CURLOPT_NOBODY , 0 ) ;\n curl_easy_setopt ( curl , CURLOPT_CUSTOMREQUEST , custom_req ) ;\n curl_easy_setopt ( curl , CURLOPT_UPLOAD , 1 ) ;\n }"}
{"idx": 12497, "target": 0, "func": "static void ImportBGROQuantum ( const Image * image , QuantumInfo * quantum_info , const MagickSizeType number_pixels , const unsigned char * magick_restrict p , Quantum * magick_restrict q , ExceptionInfo * exception ) {\n QuantumAny range ;\n register ssize_t x ;\n unsigned int pixel ;\n assert ( image != ( Image * ) NULL ) ;\n assert ( image -> signature == MagickCoreSignature ) ;\n switch ( quantum_info -> depth ) {\n case 8 : {\n unsigned char pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelBlue ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelGreen ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelRed ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelOpacity ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 10 : {\n pixel = 0 ;\n if ( quantum_info -> pack == MagickFalse ) {\n register ssize_t i ;\n size_t quantum ;\n ssize_t n ;\n n = 0 ;\n quantum = 0 ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n switch ( n % 3 ) {\n case 0 : {\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n quantum = ( size_t ) ( ScaleShortToQuantum ( ( unsigned short ) ( ( ( pixel >> 22 ) & 0x3ff ) << 6 ) ) ) ;\n break ;\n }\n case 1 : {\n quantum = ( size_t ) ( ScaleShortToQuantum ( ( unsigned short ) ( ( ( pixel >> 12 ) & 0x3ff ) << 6 ) ) ) ;\n break ;\n }\n case 2 : {\n quantum = ( size_t ) ( ScaleShortToQuantum ( ( unsigned short ) ( ( ( pixel >> 2 ) & 0x3ff ) << 6 ) ) ) ;\n break ;\n }\n }\n switch ( i ) {\n case 0 : SetPixelRed ( image , ( Quantum ) quantum , q ) ;\n break ;\n case 1 : SetPixelGreen ( image , ( Quantum ) quantum , q ) ;\n break ;\n case 2 : SetPixelBlue ( image , ( Quantum ) quantum , q ) ;\n break ;\n case 3 : SetPixelOpacity ( image , ( Quantum ) quantum , q ) ;\n break ;\n }\n n ++ ;\n }\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ScaleShortToQuantum ( ( unsigned short ) ( pixel << 6 ) ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ScaleShortToQuantum ( ( unsigned short ) ( pixel << 6 ) ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ScaleShortToQuantum ( ( unsigned short ) ( pixel << 6 ) ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelOpacity ( image , ScaleShortToQuantum ( ( unsigned short ) ( pixel << 6 ) ) , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 16 : {\n unsigned short pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelRed ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGreen ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlue ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelOpacity ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlue ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGreen ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelRed ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelOpacity ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 32 : {\n unsigned int pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n float pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelOpacity ( image , ClampToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlue ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGreen ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelRed ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelOpacity ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 64 : {\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n double pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelOpacity ( image , ClampToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n default : {\n range = GetQuantumRange ( quantum_info -> depth ) ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelOpacity ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n }"}
{"idx": 12498, "target": 0, "func": "void vp9_end_first_pass ( VP9_COMP * cpi ) {\n if ( is_two_pass_svc ( cpi ) ) {\n int i ;\n for ( i = 0 ;\n i < cpi -> svc . number_spatial_layers ;\n ++ i ) {\n output_stats ( & cpi -> svc . layer_context [ i ] . twopass . total_stats , cpi -> output_pkt_list ) ;\n }\n }\n else {\n output_stats ( & cpi -> twopass . total_stats , cpi -> output_pkt_list ) ;\n }\n }"}
{"idx": 12499, "target": 0, "func": "static void xps_draw_arc_segment ( fz_context * doc , fz_path * path , const fz_matrix * mtx , float th0 , float th1 , int iscw ) {\n float t , d ;\n fz_point p ;\n while ( th1 < th0 ) th1 += ( float ) M_PI * 2 ;\n d = ( float ) M_PI / 180 ;\n if ( iscw ) {\n for ( t = th0 + d ;\n t < th1 - d / 2 ;\n t += d ) {\n p . x = cosf ( t ) ;\n p . y = sinf ( t ) ;\n fz_transform_point ( & p , mtx ) ;\n fz_lineto ( doc , path , p . x , p . y ) ;\n }\n }\n else {\n th0 += ( float ) M_PI * 2 ;\n for ( t = th0 - d ;\n t > th1 + d / 2 ;\n t -= d ) {\n p . x = cosf ( t ) ;\n p . y = sinf ( t ) ;\n fz_transform_point ( & p , mtx ) ;\n fz_lineto ( doc , path , p . x , p . y ) ;\n }\n }\n }"}
{"idx": 12500, "target": 0, "func": "Curl_send_buffer * Curl_add_buffer_init ( void ) {\n return calloc ( 1 , sizeof ( Curl_send_buffer ) ) ;\n }"}
{"idx": 12501, "target": 0, "func": "static int utf16le_to_unicode ( uint32_t * pwc , const char * s , size_t n ) {\n return ( utf16_to_unicode ( pwc , s , n , 0 ) ) ;\n }"}
{"idx": 12502, "target": 0, "func": "void ff_init_block_index ( MpegEncContext * s ) {\n const int linesize = s -> current_picture . f . linesize [ 0 ] ;\n / ot s -> linesize as this would be wrong for field pics const int uvlinesize = s -> current_picture . f . linesize [ 1 ] ;\n const int mb_size = 4 ;\n s -> block_index [ 0 ] = s -> b8_stride * ( s -> mb_y * 2 ) - 2 + s -> mb_x * 2 ;\n s -> block_index [ 1 ] = s -> b8_stride * ( s -> mb_y * 2 ) - 1 + s -> mb_x * 2 ;\n s -> block_index [ 2 ] = s -> b8_stride * ( s -> mb_y * 2 + 1 ) - 2 + s -> mb_x * 2 ;\n s -> block_index [ 3 ] = s -> b8_stride * ( s -> mb_y * 2 + 1 ) - 1 + s -> mb_x * 2 ;\n s -> block_index [ 4 ] = s -> mb_stride * ( s -> mb_y + 1 ) + s -> b8_stride * s -> mb_height * 2 + s -> mb_x - 1 ;\n s -> block_index [ 5 ] = s -> mb_stride * ( s -> mb_y + s -> mb_height + 2 ) + s -> b8_stride * s -> mb_height * 2 + s -> mb_x - 1 ;\n s -> dest [ 0 ] = s -> current_picture . f . data [ 0 ] + ( ( s -> mb_x - 1 ) << mb_size ) ;\n s -> dest [ 1 ] = s -> current_picture . f . data [ 1 ] + ( ( s -> mb_x - 1 ) << ( mb_size - s -> chroma_x_shift ) ) ;\n s -> dest [ 2 ] = s -> current_picture . f . data [ 2 ] + ( ( s -> mb_x - 1 ) << ( mb_size - s -> chroma_x_shift ) ) ;\n if ( ! ( s -> pict_type == AV_PICTURE_TYPE_B && s -> avctx -> draw_horiz_band && s -> picture_structure == PICT_FRAME ) ) {\n if ( s -> picture_structure == PICT_FRAME ) {\n s -> dest [ 0 ] += s -> mb_y * linesize << mb_size ;\n s -> dest [ 1 ] += s -> mb_y * uvlinesize << ( mb_size - s -> chroma_y_shift ) ;\n s -> dest [ 2 ] += s -> mb_y * uvlinesize << ( mb_size - s -> chroma_y_shift ) ;\n }\n else {\n s -> dest [ 0 ] += ( s -> mb_y >> 1 ) * linesize << mb_size ;\n s -> dest [ 1 ] += ( s -> mb_y >> 1 ) * uvlinesize << ( mb_size - s -> chroma_y_shift ) ;\n s -> dest [ 2 ] += ( s -> mb_y >> 1 ) * uvlinesize << ( mb_size - s -> chroma_y_shift ) ;\n assert ( ( s -> mb_y & 1 ) == ( s -> picture_structure == PICT_BOTTOM_FIELD ) ) ;\n }\n }\n }"}
{"idx": 12503, "target": 1, "func": "void xsltFreeStyleDocuments ( xsltStylesheetPtr style ) {\n xsltDocumentPtr doc , cur ;\n # ifdef XSLT_REFACTORED_XSLT_NSCOMP xsltNsMapPtr nsMap ;\n # endif if ( style == NULL ) return ;\n # ifdef XSLT_REFACTORED_XSLT_NSCOMP if ( XSLT_HAS_INTERNAL_NSMAP ( style ) ) nsMap = XSLT_GET_INTERNAL_NSMAP ( style ) ;\n else nsMap = NULL ;\n # endif cur = style -> docList ;\n while ( cur != NULL ) {\n doc = cur ;\n cur = cur -> next ;\n # ifdef XSLT_REFACTORED_XSLT_NSCOMP if ( nsMap ) xsltRestoreDocumentNamespaces ( nsMap , doc -> doc ) ;\n # endif xsltFreeDocumentKeys ( doc ) ;\n if ( ! doc -> main ) xmlFreeDoc ( doc -> doc ) ;\n xmlFree ( doc ) ;\n }\n }"}
{"idx": 12504, "target": 1, "func": "void vp9_idct32x32_1024_add_c ( const int16_t * input , uint8_t * dest , int stride ) {\n int16_t out [ 32 * 32 ] ;\n int16_t * outptr = out ;\n int i , j ;\n int16_t temp_in [ 32 ] , temp_out [ 32 ] ;\n for ( i = 0 ;\n i < 32 ;\n ++ i ) {\n int16_t zero_coeff [ 16 ] ;\n for ( j = 0 ;\n j < 16 ;\n ++ j ) zero_coeff [ j ] = input [ 2 * j ] | input [ 2 * j + 1 ] ;\n for ( j = 0 ;\n j < 8 ;\n ++ j ) zero_coeff [ j ] = zero_coeff [ 2 * j ] | zero_coeff [ 2 * j + 1 ] ;\n for ( j = 0 ;\n j < 4 ;\n ++ j ) zero_coeff [ j ] = zero_coeff [ 2 * j ] | zero_coeff [ 2 * j + 1 ] ;\n for ( j = 0 ;\n j < 2 ;\n ++ j ) zero_coeff [ j ] = zero_coeff [ 2 * j ] | zero_coeff [ 2 * j + 1 ] ;\n if ( zero_coeff [ 0 ] | zero_coeff [ 1 ] ) idct32 ( input , outptr ) ;\n else vpx_memset ( outptr , 0 , sizeof ( int16_t ) * 32 ) ;\n input += 32 ;\n outptr += 32 ;\n }\n for ( i = 0 ;\n i < 32 ;\n ++ i ) {\n for ( j = 0 ;\n j < 32 ;\n ++ j ) temp_in [ j ] = out [ j * 32 + i ] ;\n idct32 ( temp_in , temp_out ) ;\n for ( j = 0 ;\n j < 32 ;\n ++ j ) dest [ j * stride + i ] = clip_pixel ( ROUND_POWER_OF_TWO ( temp_out [ j ] , 6 ) + dest [ j * stride + i ] ) ;\n }\n }"}
{"idx": 12505, "target": 0, "func": "extern int name ( int , locale_t ) __THROW __exctype_l ( isalnum_l ) ;\n __exctype_l ( isalpha_l ) ;\n __exctype_l ( iscntrl_l ) ;\n __exctype_l ( isdigit_l ) ;\n __exctype_l ( islower_l ) ;\n __exctype_l ( isgraph_l ) ;\n __exctype_l ( isprint_l ) ;\n __exctype_l ( ispunct_l )"}
{"idx": 12506, "target": 0, "func": "void SRP_user_pwd_free ( SRP_user_pwd * user_pwd ) {\n if ( user_pwd == NULL ) return ;\n BN_free ( user_pwd -> s ) ;\n BN_clear_free ( user_pwd -> v ) ;\n OPENSSL_free ( user_pwd -> id ) ;\n OPENSSL_free ( user_pwd -> info ) ;\n OPENSSL_free ( user_pwd ) ;\n }"}
{"idx": 12507, "target": 0, "func": "TSCont TSContCreate ( TSEventFunc funcp , TSMutex mutexp ) {\n if ( mutexp != nullptr ) {\n sdk_assert ( sdk_sanity_check_mutex ( mutexp ) == TS_SUCCESS ) ;\n }\n INKContInternal * i = INKContAllocator . alloc ( ) ;\n i -> init ( funcp , mutexp ) ;\n return ( TSCont ) i ;\n }"}
{"idx": 12508, "target": 1, "func": "static int lag_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n LagarithContext * l = avctx -> priv_data ;\n AVFrame * const p = & l -> picture ;\n uint8_t frametype = 0 ;\n uint32_t offset_gu = 0 , offset_bv = 0 , offset_ry = 9 ;\n uint32_t offs [ 4 ] ;\n uint8_t * srcs [ 4 ] , * dst ;\n int i , j , planes = 3 ;\n AVFrame * picture = data ;\n if ( p -> data [ 0 ] ) ff_thread_release_buffer ( avctx , p ) ;\n p -> reference = 0 ;\n p -> key_frame = 1 ;\n frametype = buf [ 0 ] ;\n offset_gu = AV_RL32 ( buf + 1 ) ;\n offset_bv = AV_RL32 ( buf + 5 ) ;\n switch ( frametype ) {\n case FRAME_SOLID_RGBA : avctx -> pix_fmt = AV_PIX_FMT_RGB32 ;\n if ( ff_thread_get_buffer ( avctx , p ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return - 1 ;\n }\n dst = p -> data [ 0 ] ;\n for ( j = 0 ;\n j < avctx -> height ;\n j ++ ) {\n for ( i = 0 ;\n i < avctx -> width ;\n i ++ ) AV_WN32 ( dst + i * 4 , offset_gu ) ;\n dst += p -> linesize [ 0 ] ;\n }\n break ;\n case FRAME_ARITH_RGBA : avctx -> pix_fmt = AV_PIX_FMT_RGB32 ;\n planes = 4 ;\n offset_ry += 4 ;\n offs [ 3 ] = AV_RL32 ( buf + 9 ) ;\n case FRAME_ARITH_RGB24 : case FRAME_U_RGB24 : if ( frametype == FRAME_ARITH_RGB24 || frametype == FRAME_U_RGB24 ) avctx -> pix_fmt = AV_PIX_FMT_RGB24 ;\n if ( ff_thread_get_buffer ( avctx , p ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return - 1 ;\n }\n offs [ 0 ] = offset_bv ;\n offs [ 1 ] = offset_gu ;\n offs [ 2 ] = offset_ry ;\n if ( ! l -> rgb_planes ) {\n l -> rgb_stride = FFALIGN ( avctx -> width , 16 ) ;\n l -> rgb_planes = av_malloc ( l -> rgb_stride * avctx -> height * planes + 1 ) ;\n if ( ! l -> rgb_planes ) {\n av_log ( avctx , AV_LOG_ERROR , \"cannot allocate temporary buffer\\n\" ) ;\n return AVERROR ( ENOMEM ) ;\n }\n }\n for ( i = 0 ;\n i < planes ;\n i ++ ) srcs [ i ] = l -> rgb_planes + ( i + 1 ) * l -> rgb_stride * avctx -> height - l -> rgb_stride ;\n if ( offset_ry >= buf_size || offset_gu >= buf_size || offset_bv >= buf_size || ( planes == 4 && offs [ 3 ] >= buf_size ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid frame offsets\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( i = 0 ;\n i < planes ;\n i ++ ) lag_decode_arith_plane ( l , srcs [ i ] , avctx -> width , avctx -> height , - l -> rgb_stride , buf + offs [ i ] , buf_size - offs [ i ] ) ;\n dst = p -> data [ 0 ] ;\n for ( i = 0 ;\n i < planes ;\n i ++ ) srcs [ i ] = l -> rgb_planes + i * l -> rgb_stride * avctx -> height ;\n for ( j = 0 ;\n j < avctx -> height ;\n j ++ ) {\n for ( i = 0 ;\n i < avctx -> width ;\n i ++ ) {\n uint8_t r , g , b , a ;\n r = srcs [ 0 ] [ i ] ;\n g = srcs [ 1 ] [ i ] ;\n b = srcs [ 2 ] [ i ] ;\n r += g ;\n b += g ;\n if ( frametype == FRAME_ARITH_RGBA ) {\n a = srcs [ 3 ] [ i ] ;\n AV_WN32 ( dst + i * 4 , MKBETAG ( a , r , g , b ) ) ;\n }\n else {\n dst [ i * 3 + 0 ] = r ;\n dst [ i * 3 + 1 ] = g ;\n dst [ i * 3 + 2 ] = b ;\n }\n }\n dst += p -> linesize [ 0 ] ;\n for ( i = 0 ;\n i < planes ;\n i ++ ) srcs [ i ] += l -> rgb_stride ;\n }\n break ;\n case FRAME_ARITH_YUY2 : avctx -> pix_fmt = AV_PIX_FMT_YUV422P ;\n if ( ff_thread_get_buffer ( avctx , p ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return - 1 ;\n }\n if ( offset_ry >= buf_size || offset_gu >= buf_size || offset_bv >= buf_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid frame offsets\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n lag_decode_arith_plane ( l , p -> data [ 0 ] , avctx -> width , avctx -> height , p -> linesize [ 0 ] , buf + offset_ry , buf_size - offset_ry ) ;\n lag_decode_arith_plane ( l , p -> data [ 1 ] , avctx -> width / 2 , avctx -> height , p -> linesize [ 1 ] , buf + offset_gu , buf_size - offset_gu ) ;\n lag_decode_arith_plane ( l , p -> data [ 2 ] , avctx -> width / 2 , avctx -> height , p -> linesize [ 2 ] , buf + offset_bv , buf_size - offset_bv ) ;\n break ;\n case FRAME_ARITH_YV12 : avctx -> pix_fmt = AV_PIX_FMT_YUV420P ;\n if ( ff_thread_get_buffer ( avctx , p ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return - 1 ;\n }\n if ( offset_ry >= buf_size || offset_gu >= buf_size || offset_bv >= buf_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid frame offsets\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n lag_decode_arith_plane ( l , p -> data [ 0 ] , avctx -> width , avctx -> height , p -> linesize [ 0 ] , buf + offset_ry , buf_size - offset_ry ) ;\n lag_decode_arith_plane ( l , p -> data [ 2 ] , avctx -> width / 2 , avctx -> height / 2 , p -> linesize [ 2 ] , buf + offset_gu , buf_size - offset_gu ) ;\n lag_decode_arith_plane ( l , p -> data [ 1 ] , avctx -> width / 2 , avctx -> height / 2 , p -> linesize [ 1 ] , buf + offset_bv , buf_size - offset_bv ) ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"Unsupported Lagarith frame type: %#x\\n\" , frametype ) ;\n return - 1 ;\n }\n * picture = * p ;\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 12509, "target": 0, "func": "static HashTable * spl_filesystem_object_get_debug_info ( zval * obj , int * is_temp TSRMLS_DC ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( obj TSRMLS_CC ) ;\n HashTable * rv ;\n zval * tmp , zrv ;\n char * pnstr , * path ;\n int pnlen , path_len ;\n char stmp [ 2 ] ;\n * is_temp = 1 ;\n if ( ! intern -> std . properties ) {\n rebuild_object_properties ( & intern -> std ) ;\n }\n ALLOC_HASHTABLE ( rv ) ;\n ZEND_INIT_SYMTABLE_EX ( rv , zend_hash_num_elements ( intern -> std . properties ) + 3 , 0 ) ;\n INIT_PZVAL ( & zrv ) ;\n Z_ARRVAL ( zrv ) = rv ;\n zend_hash_copy ( rv , intern -> std . properties , ( copy_ctor_func_t ) zval_add_ref , ( void * ) & tmp , sizeof ( zval * ) ) ;\n pnstr = spl_gen_private_prop_name ( spl_ce_SplFileInfo , \"pathName\" , sizeof ( \"pathName\" ) - 1 , & pnlen TSRMLS_CC ) ;\n path = spl_filesystem_object_get_pathname ( intern , & path_len TSRMLS_CC ) ;\n add_assoc_stringl_ex ( & zrv , pnstr , pnlen + 1 , path , path_len , 1 ) ;\n efree ( pnstr ) ;\n if ( intern -> file_name ) {\n pnstr = spl_gen_private_prop_name ( spl_ce_SplFileInfo , \"fileName\" , sizeof ( \"fileName\" ) - 1 , & pnlen TSRMLS_CC ) ;\n spl_filesystem_object_get_path ( intern , & path_len TSRMLS_CC ) ;\n if ( path_len && path_len < intern -> file_name_len ) {\n add_assoc_stringl_ex ( & zrv , pnstr , pnlen + 1 , intern -> file_name + path_len + 1 , intern -> file_name_len - ( path_len + 1 ) , 1 ) ;\n }\n else {\n add_assoc_stringl_ex ( & zrv , pnstr , pnlen + 1 , intern -> file_name , intern -> file_name_len , 1 ) ;\n }\n efree ( pnstr ) ;\n }\n if ( intern -> type == SPL_FS_DIR ) {\n # ifdef HAVE_GLOB pnstr = spl_gen_private_prop_name ( spl_ce_DirectoryIterator , \"glob\" , sizeof ( \"glob\" ) - 1 , & pnlen TSRMLS_CC ) ;\n if ( php_stream_is ( intern -> u . dir . dirp , & php_glob_stream_ops ) ) {\n add_assoc_stringl_ex ( & zrv , pnstr , pnlen + 1 , intern -> _path , intern -> _path_len , 1 ) ;\n }\n else {\n add_assoc_bool_ex ( & zrv , pnstr , pnlen + 1 , 0 ) ;\n }\n efree ( pnstr ) ;\n # endif pnstr = spl_gen_private_prop_name ( spl_ce_RecursiveDirectoryIterator , \"subPathName\" , sizeof ( \"subPathName\" ) - 1 , & pnlen TSRMLS_CC ) ;\n if ( intern -> u . dir . sub_path ) {\n add_assoc_stringl_ex ( & zrv , pnstr , pnlen + 1 , intern -> u . dir . sub_path , intern -> u . dir . sub_path_len , 1 ) ;\n }\n else {\n add_assoc_stringl_ex ( & zrv , pnstr , pnlen + 1 , \"\" , 0 , 1 ) ;\n }\n efree ( pnstr ) ;\n }\n if ( intern -> type == SPL_FS_FILE ) {\n pnstr = spl_gen_private_prop_name ( spl_ce_SplFileObject , \"openMode\" , sizeof ( \"openMode\" ) - 1 , & pnlen TSRMLS_CC ) ;\n add_assoc_stringl_ex ( & zrv , pnstr , pnlen + 1 , intern -> u . file . open_mode , intern -> u . file . open_mode_len , 1 ) ;\n efree ( pnstr ) ;\n stmp [ 1 ] = '\\0' ;\n stmp [ 0 ] = intern -> u . file . delimiter ;\n pnstr = spl_gen_private_prop_name ( spl_ce_SplFileObject , \"delimiter\" , sizeof ( \"delimiter\" ) - 1 , & pnlen TSRMLS_CC ) ;\n add_assoc_stringl_ex ( & zrv , pnstr , pnlen + 1 , stmp , 1 , 1 ) ;\n efree ( pnstr ) ;\n stmp [ 0 ] = intern -> u . file . enclosure ;\n pnstr = spl_gen_private_prop_name ( spl_ce_SplFileObject , \"enclosure\" , sizeof ( \"enclosure\" ) - 1 , & pnlen TSRMLS_CC ) ;\n add_assoc_stringl_ex ( & zrv , pnstr , pnlen + 1 , stmp , 1 , 1 ) ;\n efree ( pnstr ) ;\n }\n return rv ;\n }"}
{"idx": 12510, "target": 0, "func": "static int flac_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n FLACContext * s = avctx -> priv_data ;\n int bytes_read = 0 ;\n int ret ;\n * got_frame_ptr = 0 ;\n if ( s -> max_framesize == 0 ) {\n s -> max_framesize = ff_flac_get_max_frame_size ( s -> max_blocksize ? s -> max_blocksize : FLAC_MAX_BLOCKSIZE , FLAC_MAX_CHANNELS , 32 ) ;\n }\n if ( buf_size < FLAC_MIN_FRAME_SIZE ) return buf_size ;\n if ( AV_RB32 ( buf ) == MKBETAG ( 'f' , 'L' , 'a' , 'C' ) ) {\n if ( ! s -> got_streaminfo && parse_streaminfo ( s , buf , buf_size ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"invalid header\\n\" ) ;\n return - 1 ;\n }\n return get_metadata_size ( buf , buf_size ) ;\n }\n init_get_bits ( & s -> gb , buf , buf_size * 8 ) ;\n if ( decode_frame ( s ) < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"decode_frame() failed\\n\" ) ;\n return - 1 ;\n }\n bytes_read = ( get_bits_count ( & s -> gb ) + 7 ) / 8 ;\n frame -> nb_samples = s -> blocksize ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n s -> dsp . decorrelate [ s -> ch_mode ] ( frame -> data , s -> decoded , s -> channels , s -> blocksize , s -> sample_shift ) ;\n if ( bytes_read > buf_size ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"overread: %d\\n\" , bytes_read - buf_size ) ;\n return - 1 ;\n }\n if ( bytes_read < buf_size ) {\n av_log ( s -> avctx , AV_LOG_DEBUG , \"underread: %d orig size: %d\\n\" , buf_size - bytes_read , buf_size ) ;\n }\n * got_frame_ptr = 1 ;\n return bytes_read ;\n }"}
{"idx": 12511, "target": 0, "func": "static int dump_tablespaces_for_tables ( char * db , char * * table_names , int tables ) {\n DYNAMIC_STRING where ;\n int r ;\n int i ;\n char name_buff [ NAME_LEN * 2 + 3 ] ;\n mysql_real_escape_string ( mysql , name_buff , db , ( ulong ) strlen ( db ) ) ;\n init_dynamic_string_checked ( & where , \" AND TABLESPACE_NAME IN (\" \"SELECT DISTINCT TABLESPACE_NAME FROM\" \" INFORMATION_SCHEMA.PARTITIONS\" \" WHERE\" \" TABLE_SCHEMA='\" , 256 , 1024 ) ;\n dynstr_append_checked ( & where , name_buff ) ;\n dynstr_append_checked ( & where , \"' AND TABLE_NAME IN (\" ) ;\n for ( i = 0 ;\n i < tables ;\n i ++ ) {\n mysql_real_escape_string ( mysql , name_buff , table_names [ i ] , ( ulong ) strlen ( table_names [ i ] ) ) ;\n dynstr_append_checked ( & where , \"'\" ) ;\n dynstr_append_checked ( & where , name_buff ) ;\n dynstr_append_checked ( & where , \"',\" ) ;\n }\n dynstr_trunc ( & where , 1 ) ;\n dynstr_append_checked ( & where , \"))\" ) ;\n DBUG_PRINT ( \"info\" , ( \"Dump TS for Tables where: %s\" , where . str ) ) ;\n r = dump_tablespaces ( where . str ) ;\n dynstr_free ( & where ) ;\n return r ;\n }"}
{"idx": 12512, "target": 0, "func": "static int peerflag_bits ( peer_node * pn ) {\n int peerflags ;\n attr_val * option ;\n peerflags = 0 ;\n option = HEAD_PFIFO ( pn -> peerflags ) ;\n for ( ;\n option != NULL ;\n option = option -> link ) {\n switch ( option -> value . i ) {\n default : NTP_INSIST ( 0 ) ;\n break ;\n case T_Autokey : peerflags |= FLAG_SKEY ;\n break ;\n case T_Burst : peerflags |= FLAG_BURST ;\n break ;\n case T_Iburst : peerflags |= FLAG_IBURST ;\n break ;\n case T_Noselect : peerflags |= FLAG_NOSELECT ;\n break ;\n case T_Preempt : peerflags |= FLAG_PREEMPT ;\n break ;\n case T_Prefer : peerflags |= FLAG_PREFER ;\n break ;\n case T_True : peerflags |= FLAG_TRUE ;\n break ;\n case T_Xleave : peerflags |= FLAG_XLEAVE ;\n break ;\n }\n }\n return peerflags ;\n }"}
{"idx": 12513, "target": 0, "func": "static void * gs_heap_alloc_struct ( gs_memory_t * mem , gs_memory_type_ptr_t pstype , client_name_t cname ) {\n void * ptr = gs_heap_alloc_bytes ( mem , gs_struct_type_size ( pstype ) , cname ) ;\n if ( ptr == 0 ) return 0 ;\n ( ( gs_malloc_block_t * ) ptr ) [ - 1 ] . type = pstype ;\n return ptr ;\n }"}
{"idx": 12514, "target": 0, "func": "static int dissect_cip_class_s_supervisor ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n proto_item * ti ;\n proto_tree * class_tree ;\n ti = proto_tree_add_item ( tree , proto_cip_class_s_supervisor , tvb , 0 , - 1 , ENC_NA ) ;\n class_tree = proto_item_add_subtree ( ti , ett_cip_class_s_supervisor ) ;\n dissect_cip_s_supervisor_data ( class_tree , tvb , 0 , tvb_reported_length ( tvb ) , pinfo ) ;\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 12515, "target": 0, "func": "static void test_status ( ) {\n const char * status ;\n DBUG_ENTER ( \"test_status\" ) ;\n myheader ( \"test_status\" ) ;\n if ( ! ( status = mysql_stat ( mysql ) ) ) {\n myerror ( \"mysql_stat failed\" ) ;\n die ( __FILE__ , __LINE__ , \"mysql_stat failed\" ) ;\n }\n DBUG_VOID_RETURN ;\n }"}
{"idx": 12516, "target": 0, "func": "static PyObject * string_istitle ( PyStringObject * self , PyObject * uncased ) {\n register const unsigned char * p = ( unsigned char * ) PyString_AS_STRING ( self ) ;\n register const unsigned char * e ;\n int cased , previous_is_cased ;\n if ( PyString_GET_SIZE ( self ) == 1 ) return PyBool_FromLong ( isupper ( * p ) != 0 ) ;\n if ( PyString_GET_SIZE ( self ) == 0 ) return PyBool_FromLong ( 0 ) ;\n e = p + PyString_GET_SIZE ( self ) ;\n cased = 0 ;\n previous_is_cased = 0 ;\n for ( ;\n p < e ;\n p ++ ) {\n register const unsigned char ch = * p ;\n if ( isupper ( ch ) ) {\n if ( previous_is_cased ) return PyBool_FromLong ( 0 ) ;\n previous_is_cased = 1 ;\n cased = 1 ;\n }\n else if ( islower ( ch ) ) {\n if ( ! previous_is_cased ) return PyBool_FromLong ( 0 ) ;\n previous_is_cased = 1 ;\n cased = 1 ;\n }\n else previous_is_cased = 0 ;\n }\n return PyBool_FromLong ( cased ) ;\n }"}
{"idx": 12517, "target": 0, "func": "static int ec_asn1_group2fieldid ( const EC_GROUP * group , X9_62_FIELDID * field ) {\n int ok = 0 , nid ;\n BIGNUM * tmp = NULL ;\n if ( group == NULL || field == NULL ) return 0 ;\n if ( field -> fieldType != NULL ) ASN1_OBJECT_free ( field -> fieldType ) ;\n if ( field -> p . other != NULL ) ASN1_TYPE_free ( field -> p . other ) ;\n nid = EC_METHOD_get_field_type ( EC_GROUP_method_of ( group ) ) ;\n if ( ( field -> fieldType = OBJ_nid2obj ( nid ) ) == NULL ) {\n ECerr ( EC_F_EC_ASN1_GROUP2FIELDID , ERR_R_OBJ_LIB ) ;\n goto err ;\n }\n if ( nid == NID_X9_62_prime_field ) {\n if ( ( tmp = BN_new ( ) ) == NULL ) {\n ECerr ( EC_F_EC_ASN1_GROUP2FIELDID , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n if ( ! EC_GROUP_get_curve_GFp ( group , tmp , NULL , NULL , NULL ) ) {\n ECerr ( EC_F_EC_ASN1_GROUP2FIELDID , ERR_R_EC_LIB ) ;\n goto err ;\n }\n field -> p . prime = BN_to_ASN1_INTEGER ( tmp , NULL ) ;\n if ( field -> p . prime == NULL ) {\n ECerr ( EC_F_EC_ASN1_GROUP2FIELDID , ERR_R_ASN1_LIB ) ;\n goto err ;\n }\n }\n else {\n int field_type ;\n X9_62_CHARACTERISTIC_TWO * char_two ;\n field -> p . char_two = X9_62_CHARACTERISTIC_TWO_new ( ) ;\n char_two = field -> p . char_two ;\n if ( char_two == NULL ) {\n ECerr ( EC_F_EC_ASN1_GROUP2FIELDID , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n char_two -> m = ( long ) EC_GROUP_get_degree ( group ) ;\n field_type = EC_GROUP_get_basis_type ( group ) ;\n if ( field_type == 0 ) {\n ECerr ( EC_F_EC_ASN1_GROUP2FIELDID , ERR_R_EC_LIB ) ;\n goto err ;\n }\n if ( ( char_two -> type = OBJ_nid2obj ( field_type ) ) == NULL ) {\n ECerr ( EC_F_EC_ASN1_GROUP2FIELDID , ERR_R_OBJ_LIB ) ;\n goto err ;\n }\n if ( field_type == NID_X9_62_tpBasis ) {\n unsigned int k ;\n if ( ! EC_GROUP_get_trinomial_basis ( group , & k ) ) goto err ;\n char_two -> p . tpBasis = ASN1_INTEGER_new ( ) ;\n if ( ! char_two -> p . tpBasis ) {\n ECerr ( EC_F_EC_ASN1_GROUP2FIELDID , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n if ( ! ASN1_INTEGER_set ( char_two -> p . tpBasis , ( long ) k ) ) {\n ECerr ( EC_F_EC_ASN1_GROUP2FIELDID , ERR_R_ASN1_LIB ) ;\n goto err ;\n }\n }\n else if ( field_type == NID_X9_62_ppBasis ) {\n unsigned int k1 , k2 , k3 ;\n if ( ! EC_GROUP_get_pentanomial_basis ( group , & k1 , & k2 , & k3 ) ) goto err ;\n char_two -> p . ppBasis = X9_62_PENTANOMIAL_new ( ) ;\n if ( ! char_two -> p . ppBasis ) {\n ECerr ( EC_F_EC_ASN1_GROUP2FIELDID , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n char_two -> p . ppBasis -> k1 = ( long ) k1 ;\n char_two -> p . ppBasis -> k2 = ( long ) k2 ;\n char_two -> p . ppBasis -> k3 = ( long ) k3 ;\n }\n else {\n char_two -> p . onBasis = ASN1_NULL_new ( ) ;\n if ( ! char_two -> p . onBasis ) {\n ECerr ( EC_F_EC_ASN1_GROUP2FIELDID , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n }\n }\n ok = 1 ;\n err : if ( tmp ) BN_free ( tmp ) ;\n return ( ok ) ;\n }"}
{"idx": 12518, "target": 0, "func": "static int mp_decode_frame ( MPADecodeContext * s , OUT_INT * * samples , const uint8_t * buf , int buf_size ) {\n int i , nb_frames , ch , ret ;\n OUT_INT * samples_ptr ;\n init_get_bits ( & s -> gb , buf + HEADER_SIZE , ( buf_size - HEADER_SIZE ) * 8 ) ;\n if ( s -> error_protection ) skip_bits ( & s -> gb , 16 ) ;\n switch ( s -> layer ) {\n case 1 : s -> avctx -> frame_size = 384 ;\n nb_frames = mp_decode_layer1 ( s ) ;\n break ;\n case 2 : s -> avctx -> frame_size = 1152 ;\n nb_frames = mp_decode_layer2 ( s ) ;\n break ;\n case 3 : s -> avctx -> frame_size = s -> lsf ? 576 : 1152 ;\n default : nb_frames = mp_decode_layer3 ( s ) ;\n if ( nb_frames < 0 ) return nb_frames ;\n s -> last_buf_size = 0 ;\n if ( s -> in_gb . buffer ) {\n align_get_bits ( & s -> gb ) ;\n i = get_bits_left ( & s -> gb ) >> 3 ;\n if ( i >= 0 && i <= BACKSTEP_SIZE ) {\n memmove ( s -> last_buf , s -> gb . buffer + ( get_bits_count ( & s -> gb ) >> 3 ) , i ) ;\n s -> last_buf_size = i ;\n }\n else av_log ( s -> avctx , AV_LOG_ERROR , \"invalid old backstep %d\\n\" , i ) ;\n s -> gb = s -> in_gb ;\n s -> in_gb . buffer = NULL ;\n }\n align_get_bits ( & s -> gb ) ;\n assert ( ( get_bits_count ( & s -> gb ) & 7 ) == 0 ) ;\n i = get_bits_left ( & s -> gb ) >> 3 ;\n if ( i < 0 || i > BACKSTEP_SIZE || nb_frames < 0 ) {\n if ( i < 0 ) av_log ( s -> avctx , AV_LOG_ERROR , \"invalid new backstep %d\\n\" , i ) ;\n i = FFMIN ( BACKSTEP_SIZE , buf_size - HEADER_SIZE ) ;\n }\n assert ( i <= buf_size - HEADER_SIZE && i >= 0 ) ;\n memcpy ( s -> last_buf + s -> last_buf_size , s -> gb . buffer + buf_size - HEADER_SIZE - i , i ) ;\n s -> last_buf_size += i ;\n }\n if ( ! samples ) {\n av_assert0 ( s -> frame != NULL ) ;\n s -> frame -> nb_samples = s -> avctx -> frame_size ;\n if ( ( ret = ff_get_buffer ( s -> avctx , s -> frame , 0 ) ) < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n samples = ( OUT_INT * * ) s -> frame -> extended_data ;\n }\n for ( ch = 0 ;\n ch < s -> nb_channels ;\n ch ++ ) {\n int sample_stride ;\n if ( s -> avctx -> sample_fmt == OUT_FMT_P ) {\n samples_ptr = samples [ ch ] ;\n sample_stride = 1 ;\n }\n else {\n samples_ptr = samples [ 0 ] + ch ;\n sample_stride = s -> nb_channels ;\n }\n for ( i = 0 ;\n i < nb_frames ;\n i ++ ) {\n RENAME ( ff_mpa_synth_filter ) ( & s -> mpadsp , s -> synth_buf [ ch ] , & ( s -> synth_buf_offset [ ch ] ) , RENAME ( ff_mpa_synth_window ) , & s -> dither_state , samples_ptr , sample_stride , s -> sb_samples [ ch ] [ i ] ) ;\n samples_ptr += 32 * sample_stride ;\n }\n }\n return nb_frames * 32 * sizeof ( OUT_INT ) * s -> nb_channels ;\n }"}
{"idx": 12519, "target": 0, "func": "static int bfi_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n GetByteContext g ;\n int buf_size = avpkt -> size ;\n BFIContext * bfi = avctx -> priv_data ;\n uint8_t * dst = bfi -> dst ;\n uint8_t * src , * dst_offset , colour1 , colour2 ;\n uint8_t * frame_end = bfi -> dst + avctx -> width * avctx -> height ;\n uint32_t * pal ;\n int i , j , ret , height = avctx -> height ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n bytestream2_init ( & g , avpkt -> data , buf_size ) ;\n if ( ! avctx -> frame_number ) {\n frame -> pict_type = AV_PICTURE_TYPE_I ;\n frame -> key_frame = 1 ;\n if ( avctx -> extradata_size > 768 ) {\n av_log ( NULL , AV_LOG_ERROR , \"Palette is too large.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n pal = ( uint32_t * ) frame -> data [ 1 ] ;\n for ( i = 0 ;\n i < avctx -> extradata_size / 3 ;\n i ++ ) {\n int shift = 16 ;\n * pal = 0 ;\n for ( j = 0 ;\n j < 3 ;\n j ++ , shift -= 8 ) * pal += ( ( avctx -> extradata [ i * 3 + j ] << 2 ) | ( avctx -> extradata [ i * 3 + j ] >> 4 ) ) << shift ;\n pal ++ ;\n }\n frame -> palette_has_changed = 1 ;\n }\n else {\n frame -> pict_type = AV_PICTURE_TYPE_P ;\n frame -> key_frame = 0 ;\n }\n bytestream2_skip ( & g , 4 ) ;\n while ( dst != frame_end ) {\n static const uint8_t lentab [ 4 ] = {\n 0 , 2 , 0 , 1 }\n ;\n unsigned int byte = bytestream2_get_byte ( & g ) , av_uninit ( offset ) ;\n unsigned int code = byte >> 6 ;\n unsigned int length = byte & ~ 0xC0 ;\n if ( ! bytestream2_get_bytes_left ( & g ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Input resolution larger than actual frame.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( length == 0 ) {\n if ( code == 1 ) {\n length = bytestream2_get_byte ( & g ) ;\n offset = bytestream2_get_le16 ( & g ) ;\n }\n else {\n length = bytestream2_get_le16 ( & g ) ;\n if ( code == 2 && length == 0 ) break ;\n }\n }\n else {\n if ( code == 1 ) offset = bytestream2_get_byte ( & g ) ;\n }\n if ( dst + ( length << lentab [ code ] ) > frame_end ) break ;\n switch ( code ) {\n case 0 : if ( length >= bytestream2_get_bytes_left ( & g ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Frame larger than buffer.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n bytestream2_get_buffer ( & g , dst , length ) ;\n dst += length ;\n break ;\n case 1 : dst_offset = dst - offset ;\n length *= 4 ;\n if ( dst_offset < bfi -> dst ) break ;\n while ( length -- ) * dst ++ = * dst_offset ++ ;\n break ;\n case 2 : dst += length ;\n break ;\n case 3 : colour1 = bytestream2_get_byte ( & g ) ;\n colour2 = bytestream2_get_byte ( & g ) ;\n while ( length -- ) {\n * dst ++ = colour1 ;\n * dst ++ = colour2 ;\n }\n break ;\n }\n }\n src = bfi -> dst ;\n dst = frame -> data [ 0 ] ;\n while ( height -- ) {\n memcpy ( dst , src , avctx -> width ) ;\n src += avctx -> width ;\n dst += frame -> linesize [ 0 ] ;\n }\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 12520, "target": 0, "func": "void * _TIFFmalloc ( tmsize_t s ) {\n if ( s == 0 ) return ( ( void * ) NULL ) ;\n return ( malloc ( ( size_t ) s ) ) ;\n }"}
{"idx": 12521, "target": 0, "func": "static int dissect_rsl_ie_cause ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_item * ti ;\n proto_tree * ie_tree ;\n guint length ;\n guint8 octet ;\n int ie_offset ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_CAUSE ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_ie_cause , & ti , \"Cause IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n length = tvb_get_guint8 ( tvb , offset ) ;\n proto_item_set_len ( ti , length + 2 ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_length , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n ie_offset = offset ;\n octet = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_rsl_extension_bit , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_rsl_class , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n if ( ( octet & 0x80 ) == 0x80 ) offset ++ ;\n return ie_offset + length ;\n }"}
{"idx": 12522, "target": 1, "func": "extern int name ( int ) __THROW __exctype ( isalnum ) ;\n __exctype ( isalpha ) ;\n __exctype ( iscntrl ) ;\n __exctype ( isdigit ) ;\n __exctype ( islower ) ;\n __exctype ( isgraph )"}
{"idx": 12523, "target": 0, "func": "void vp9_rc_get_second_pass_params ( VP9_COMP * cpi ) {\n VP9_COMMON * const cm = & cpi -> common ;\n RATE_CONTROL * const rc = & cpi -> rc ;\n TWO_PASS * const twopass = & cpi -> twopass ;\n GF_GROUP * const gf_group = & twopass -> gf_group ;\n int frames_left ;\n FIRSTPASS_STATS this_frame ;\n FIRSTPASS_STATS this_frame_copy ;\n int target_rate ;\n LAYER_CONTEXT * const lc = is_two_pass_svc ( cpi ) ? & cpi -> svc . layer_context [ cpi -> svc . spatial_layer_id ] : 0 ;\n if ( lc != NULL ) {\n frames_left = ( int ) ( twopass -> total_stats . count - lc -> current_video_frame_in_layer ) ;\n }\n else {\n frames_left = ( int ) ( twopass -> total_stats . count - cm -> current_video_frame ) ;\n }\n if ( ! twopass -> stats_in ) return ;\n if ( gf_group -> update_type [ gf_group -> index ] == ARF_UPDATE ) {\n int target_rate ;\n configure_buffer_updates ( cpi ) ;\n target_rate = gf_group -> bit_allocation [ gf_group -> index ] ;\n target_rate = vp9_rc_clamp_pframe_target_size ( cpi , target_rate ) ;\n rc -> base_frame_target = target_rate ;\n if ( cpi -> oxcf . rc_mode == VPX_VBR ) vbr_rate_correction ( & target_rate , rc -> vbr_bits_off_target ) ;\n vp9_rc_set_frame_target ( cpi , target_rate ) ;\n cm -> frame_type = INTER_FRAME ;\n if ( lc != NULL ) {\n if ( cpi -> svc . spatial_layer_id == 0 ) {\n lc -> is_key_frame = 0 ;\n }\n else {\n lc -> is_key_frame = cpi -> svc . layer_context [ 0 ] . is_key_frame ;\n if ( lc -> is_key_frame ) cpi -> ref_frame_flags &= ( ~ VP9_LAST_FLAG ) ;\n }\n }\n return ;\n }\n vp9_clear_system_state ( ) ;\n if ( cpi -> oxcf . rc_mode == VPX_Q ) {\n twopass -> active_worst_quality = cpi -> oxcf . cq_level ;\n }\n else if ( cm -> current_video_frame == 0 || ( lc != NULL && lc -> current_video_frame_in_layer == 0 ) ) {\n const int section_target_bandwidth = ( int ) ( twopass -> bits_left / frames_left ) ;\n const int tmp_q = get_twopass_worst_quality ( cpi , & twopass -> total_left_stats , section_target_bandwidth ) ;\n twopass -> active_worst_quality = tmp_q ;\n rc -> ni_av_qi = tmp_q ;\n rc -> avg_q = vp9_convert_qindex_to_q ( tmp_q , cm -> bit_depth ) ;\n }\n vp9_zero ( this_frame ) ;\n if ( EOF == input_stats ( twopass , & this_frame ) ) return ;\n this_frame_copy = this_frame ;\n if ( rc -> frames_to_key == 0 || ( cpi -> frame_flags & FRAMEFLAGS_KEY ) ) {\n find_next_key_frame ( cpi , & this_frame_copy ) ;\n }\n else {\n cm -> frame_type = INTER_FRAME ;\n }\n if ( lc != NULL ) {\n if ( cpi -> svc . spatial_layer_id == 0 ) {\n lc -> is_key_frame = ( cm -> frame_type == KEY_FRAME ) ;\n if ( lc -> is_key_frame ) {\n cpi -> ref_frame_flags &= ( ~ VP9_LAST_FLAG & ~ VP9_GOLD_FLAG & ~ VP9_ALT_FLAG ) ;\n lc -> frames_from_key_frame = 0 ;\n }\n }\n else {\n cm -> frame_type = INTER_FRAME ;\n lc -> is_key_frame = cpi -> svc . layer_context [ 0 ] . is_key_frame ;\n if ( lc -> is_key_frame ) {\n cpi -> ref_frame_flags &= ( ~ VP9_LAST_FLAG ) ;\n lc -> frames_from_key_frame = 0 ;\n }\n }\n }\n if ( rc -> frames_till_gf_update_due == 0 ) {\n define_gf_group ( cpi , & this_frame_copy ) ;\n if ( twopass -> gf_zeromotion_pct > 995 ) {\n if ( ! cm -> show_frame ) cpi -> allow_encode_breakout = ENCODE_BREAKOUT_DISABLED ;\n else cpi -> allow_encode_breakout = ENCODE_BREAKOUT_LIMITED ;\n }\n rc -> frames_till_gf_update_due = rc -> baseline_gf_interval ;\n if ( lc != NULL ) cpi -> refresh_golden_frame = 1 ;\n # if ARF_STATS_OUTPUT {\n FILE * fpfile ;\n fpfile = fopen ( \"arf.stt\" , \"a\" ) ;\n ++ arf_count ;\n fprintf ( fpfile , \"%10d %10d %10d %10ld\\n\" , cm -> current_video_frame , rc -> kf_boost , arf_count , rc -> gfu_boost ) ;\n fclose ( fpfile ) ;\n }\n # endif }\n configure_buffer_updates ( cpi ) ;\n target_rate = gf_group -> bit_allocation [ gf_group -> index ] ;\n if ( cpi -> common . frame_type == KEY_FRAME ) target_rate = vp9_rc_clamp_iframe_target_size ( cpi , target_rate ) ;\n else target_rate = vp9_rc_clamp_pframe_target_size ( cpi , target_rate ) ;\n rc -> base_frame_target = target_rate ;\n if ( cpi -> oxcf . rc_mode == VPX_VBR ) vbr_rate_correction ( & target_rate , rc -> vbr_bits_off_target ) ;\n vp9_rc_set_frame_target ( cpi , target_rate ) ;\n subtract_stats ( & twopass -> total_left_stats , & this_frame ) ;\n }"}
{"idx": 12524, "target": 0, "func": "void tipc_netlink_compat_stop ( void ) {\n genl_unregister_family ( & tipc_genl_compat_family ) ;\n }"}
{"idx": 12525, "target": 0, "func": "static void txfm_rd_in_plane ( MACROBLOCK * x , int * rate , int64_t * distortion , int * skippable , int64_t * sse , int64_t ref_best_rd , int plane , BLOCK_SIZE bsize , TX_SIZE tx_size , int use_fast_coef_casting ) {\n MACROBLOCKD * const xd = & x -> e_mbd ;\n const struct macroblockd_plane * const pd = & xd -> plane [ plane ] ;\n struct rdcost_block_args args ;\n vp9_zero ( args ) ;\n args . x = x ;\n args . best_rd = ref_best_rd ;\n args . use_fast_coef_costing = use_fast_coef_casting ;\n if ( plane == 0 ) xd -> mi [ 0 ] . src_mi -> mbmi . tx_size = tx_size ;\n vp9_get_entropy_contexts ( bsize , tx_size , pd , args . t_above , args . t_left ) ;\n args . so = get_scan ( xd , tx_size , pd -> plane_type , 0 ) ;\n vp9_foreach_transformed_block_in_plane ( xd , bsize , plane , block_rd_txfm , & args ) ;\n if ( args . skip ) {\n * rate = INT_MAX ;\n * distortion = INT64_MAX ;\n * sse = INT64_MAX ;\n * skippable = 0 ;\n }\n else {\n * distortion = args . this_dist ;\n * rate = args . this_rate ;\n * sse = args . this_sse ;\n * skippable = vp9_is_skippable_in_plane ( x , bsize , plane ) ;\n }\n }"}
{"idx": 12526, "target": 0, "func": "static uint8_t modrm_reg ( uint8_t modrm ) {\n return ( modrm >> 3 ) & 7 ;\n }"}
{"idx": 12527, "target": 0, "func": "int chk_size ( MI_CHECK * param , register MI_INFO * info ) {\n int error = 0 ;\n register my_off_t skr , size ;\n char buff [ 22 ] , buff2 [ 22 ] ;\n DBUG_ENTER ( \"chk_size\" ) ;\n if ( ! ( param -> testflag & T_SILENT ) ) puts ( \"- check file-size\" ) ;\n flush_key_blocks ( info -> s -> key_cache , info -> s -> kfile , FLUSH_FORCE_WRITE ) ;\n size = mysql_file_seek ( info -> s -> kfile , 0L , MY_SEEK_END , MYF ( MY_THREADSAFE ) ) ;\n if ( ( skr = ( my_off_t ) info -> state -> key_file_length ) != size ) {\n if ( skr > size && mi_is_any_key_active ( info -> s -> state . key_map ) ) {\n error = 1 ;\n mi_check_print_error ( param , \"Size of indexfile is: %-8s Should be: %s\" , llstr ( size , buff ) , llstr ( skr , buff2 ) ) ;\n }\n else mi_check_print_warning ( param , \"Size of indexfile is: %-8s Should be: %s\" , llstr ( size , buff ) , llstr ( skr , buff2 ) ) ;\n }\n if ( ! ( param -> testflag & T_VERY_SILENT ) && ! ( info -> s -> options & HA_OPTION_COMPRESS_RECORD ) && ulonglong2double ( info -> state -> key_file_length ) > ulonglong2double ( info -> s -> base . margin_key_file_length ) * 0.9 ) mi_check_print_warning ( param , \"Keyfile is almost full, %10s of %10s used\" , llstr ( info -> state -> key_file_length , buff ) , llstr ( info -> s -> base . max_key_file_length - 1 , buff ) ) ;\n size = mysql_file_seek ( info -> dfile , 0L , MY_SEEK_END , MYF ( 0 ) ) ;\n skr = ( my_off_t ) info -> state -> data_file_length ;\n if ( info -> s -> options & HA_OPTION_COMPRESS_RECORD ) skr += MEMMAP_EXTRA_MARGIN ;\n # ifdef USE_RELOC if ( info -> data_file_type == STATIC_RECORD && skr < ( my_off_t ) info -> s -> base . reloc * info -> s -> base . min_pack_length ) skr = ( my_off_t ) info -> s -> base . reloc * info -> s -> base . min_pack_length ;\n # endif if ( skr != size ) {\n info -> state -> data_file_length = size ;\n if ( skr > size && skr != size + MEMMAP_EXTRA_MARGIN ) {\n error = 1 ;\n mi_check_print_error ( param , \"Size of datafile is: %-9s Should be: %s\" , llstr ( size , buff ) , llstr ( skr , buff2 ) ) ;\n param -> testflag |= T_RETRY_WITHOUT_QUICK ;\n }\n else {\n mi_check_print_warning ( param , \"Size of datafile is: %-9s Should be: %s\" , llstr ( size , buff ) , llstr ( skr , buff2 ) ) ;\n }\n }\n if ( ! ( param -> testflag & T_VERY_SILENT ) && ! ( info -> s -> options & HA_OPTION_COMPRESS_RECORD ) && ulonglong2double ( info -> state -> data_file_length ) > ( ulonglong2double ( info -> s -> base . max_data_file_length ) * 0.9 ) ) mi_check_print_warning ( param , \"Datafile is almost full, %10s of %10s used\" , llstr ( info -> state -> data_file_length , buff ) , llstr ( info -> s -> base . max_data_file_length - 1 , buff2 ) ) ;\n DBUG_RETURN ( error ) ;\n }"}
{"idx": 12528, "target": 0, "func": "static field_info * new_field_info ( proto_tree * tree , header_field_info * hfinfo , tvbuff_t * tvb , const gint start , const gint item_length ) {\n field_info * fi ;\n FIELD_INFO_NEW ( PNODE_POOL ( tree ) , fi ) ;\n fi -> hfinfo = hfinfo ;\n fi -> start = start ;\n fi -> start += ( tvb ) ? tvb_raw_offset ( tvb ) : 0 ;\n fi -> length = item_length ;\n fi -> tree_type = - 1 ;\n fi -> flags = 0 ;\n if ( ! PTREE_DATA ( tree ) -> visible ) FI_SET_FLAG ( fi , FI_HIDDEN ) ;\n fvalue_init ( & fi -> value , fi -> hfinfo -> type ) ;\n fi -> rep = NULL ;\n fi -> ds_tvb = tvb ? tvb_get_ds_tvb ( tvb ) : NULL ;\n fi -> appendix_start = 0 ;\n fi -> appendix_length = 0 ;\n return fi ;\n }"}
{"idx": 12529, "target": 0, "func": "static const char * qemuMonitorJSONStringifyError ( virJSONValuePtr error ) {\n const char * klass = virJSONValueObjectGetString ( error , \"class\" ) ;\n const char * detail = NULL ;\n if ( klass ) detail = virJSONValueObjectGetString ( error , \"desc\" ) ;\n if ( ! detail ) detail = \"unknown QEMU command error\" ;\n return detail ;\n }"}
{"idx": 12530, "target": 0, "func": "static inline void SetPixelCyan ( const Image * restrict image , const Quantum cyan , Quantum * restrict pixel ) {\n pixel [ image -> channel_map [ CyanPixelChannel ] . offset ] = cyan ;\n }"}
{"idx": 12531, "target": 0, "func": "static void netbios_add_ses_confirm_flags ( tvbuff_t * tvb , proto_tree * tree , int offset ) {\n proto_tree * field_tree ;\n proto_item * tf ;\n tf = proto_tree_add_item ( tree , hf_netb_flags , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n field_tree = proto_item_add_subtree ( tf , ett_netb_flags ) ;\n proto_tree_add_item ( field_tree , hf_netb_flags_send_no_ack , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( field_tree , hf_netb_version , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n }"}
{"idx": 12532, "target": 0, "func": "static int dissect_h245_OBJECT_IDENTIFIER ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_object_identifier ( tvb , offset , actx , tree , hf_index , NULL ) ;\n return offset ;\n }"}
{"idx": 12533, "target": 0, "func": "static void sig_server_lag_disconnected ( SERVER_REC * server ) {\n g_return_if_fail ( server != NULL ) ;\n printformat ( server , NULL , MSGLEVEL_CLIENTNOTICE , TXT_LAG_DISCONNECTED , server -> connrec -> address , time ( NULL ) - server -> lag_sent . tv_sec ) ;\n }"}
{"idx": 12534, "target": 0, "func": "static int no_try_delta ( const char * path ) {\n struct git_attr_check check [ 1 ] ;\n setup_delta_attr_check ( check ) ;\n if ( git_check_attr ( path , ARRAY_SIZE ( check ) , check ) ) return 0 ;\n if ( ATTR_FALSE ( check -> value ) ) return 1 ;\n return 0 ;\n }"}
{"idx": 12535, "target": 0, "func": "const char * SSL_rstate_string_long ( const SSL * s ) {\n const char * str ;\n switch ( s -> rstate ) {\n case SSL_ST_READ_HEADER : str = \"read header\" ;\n break ;\n case SSL_ST_READ_BODY : str = \"read body\" ;\n break ;\n case SSL_ST_READ_DONE : str = \"read done\" ;\n break ;\n default : str = \"unknown\" ;\n break ;\n }\n return ( str ) ;\n }"}
{"idx": 12536, "target": 0, "func": "static void decode_cabac_residual_dc_internal_422 ( H264Context * h , int16_t * block , int cat , int n , const uint8_t * scantable , int max_coeff ) {\n decode_cabac_residual_internal ( h , block , cat , n , scantable , NULL , max_coeff , 1 , 1 ) ;\n }"}
{"idx": 12537, "target": 0, "func": "TIFF * TIFFOpenW ( const wchar_t * name , const char * mode ) {\n static const char module [ ] = \"TIFFOpenW\" ;\n thandle_t fd ;\n int m ;\n DWORD dwMode ;\n int mbsize ;\n char * mbname ;\n TIFF * tif ;\n m = _TIFFgetMode ( mode , module ) ;\n switch ( m ) {\n case O_RDONLY : dwMode = OPEN_EXISTING ;\n break ;\n case O_RDWR : dwMode = OPEN_ALWAYS ;\n break ;\n case O_RDWR | O_CREAT : dwMode = OPEN_ALWAYS ;\n break ;\n case O_RDWR | O_TRUNC : dwMode = CREATE_ALWAYS ;\n break ;\n case O_RDWR | O_CREAT | O_TRUNC : dwMode = CREATE_ALWAYS ;\n break ;\n default : return ( ( TIFF * ) 0 ) ;\n }\n fd = ( thandle_t ) CreateFileW ( name , ( m == O_RDONLY ) ? GENERIC_READ : ( GENERIC_READ | GENERIC_WRITE ) , FILE_SHARE_READ | FILE_SHARE_WRITE , NULL , dwMode , ( m == O_RDONLY ) ? FILE_ATTRIBUTE_READONLY : FILE_ATTRIBUTE_NORMAL , NULL ) ;\n if ( fd == INVALID_HANDLE_VALUE ) {\n TIFFErrorExt ( 0 , module , \"%S: Cannot open\" , name ) ;\n return ( ( TIFF * ) 0 ) ;\n }\n mbname = NULL ;\n mbsize = WideCharToMultiByte ( CP_ACP , 0 , name , - 1 , NULL , 0 , NULL , NULL ) ;\n if ( mbsize > 0 ) {\n mbname = ( char * ) _TIFFmalloc ( mbsize ) ;\n if ( ! mbname ) {\n TIFFErrorExt ( 0 , module , \"Can't allocate space for filename conversion buffer\" ) ;\n return ( ( TIFF * ) 0 ) ;\n }\n WideCharToMultiByte ( CP_ACP , 0 , name , - 1 , mbname , mbsize , NULL , NULL ) ;\n }\n tif = TIFFFdOpen ( ( int ) fd , ( mbname != NULL ) ? mbname : \"<unknown>\" , mode ) ;\n if ( ! tif ) CloseHandle ( fd ) ;\n _TIFFfree ( mbname ) ;\n return tif ;\n }"}
{"idx": 12538, "target": 0, "func": "vpx_fixed_buf_t * vpx_codec_get_global_headers ( vpx_codec_ctx_t * ctx ) {\n vpx_fixed_buf_t * buf = NULL ;\n if ( ctx ) {\n if ( ! ctx -> iface || ! ctx -> priv ) ctx -> err = VPX_CODEC_ERROR ;\n else if ( ! ( ctx -> iface -> caps & VPX_CODEC_CAP_ENCODER ) ) ctx -> err = VPX_CODEC_INCAPABLE ;\n else if ( ! ctx -> iface -> enc . get_glob_hdrs ) ctx -> err = VPX_CODEC_INCAPABLE ;\n else buf = ctx -> iface -> enc . get_glob_hdrs ( get_alg_priv ( ctx ) ) ;\n }\n return buf ;\n }"}
{"idx": 12539, "target": 1, "func": "static char * pool_strdup ( const char * s ) {\n char * r = pool_alloc ( strlen ( s ) + 1 ) ;\n strcpy ( r , s ) ;\n return r ;\n }"}
{"idx": 12540, "target": 0, "func": "void TSRecordDump ( int rec_type , TSRecordDumpCb callback , void * edata ) {\n RecDumpRecords ( ( RecT ) rec_type , ( RecDumpEntryCb ) callback , edata ) ;\n }"}
{"idx": 12541, "target": 0, "func": "int tls1_change_cipher_state ( SSL * s , int which ) {\n static const unsigned char empty [ ] = \"\" ;\n unsigned char * p , * mac_secret ;\n unsigned char * exp_label ;\n unsigned char tmp1 [ EVP_MAX_KEY_LENGTH ] ;\n unsigned char tmp2 [ EVP_MAX_KEY_LENGTH ] ;\n unsigned char iv1 [ EVP_MAX_IV_LENGTH * 2 ] ;\n unsigned char iv2 [ EVP_MAX_IV_LENGTH * 2 ] ;\n unsigned char * ms , * key , * iv ;\n int client_write ;\n EVP_CIPHER_CTX * dd ;\n const EVP_CIPHER * c ;\n # ifndef OPENSSL_NO_COMP const SSL_COMP * comp ;\n # endif const EVP_MD * m ;\n int mac_type ;\n int * mac_secret_size ;\n EVP_MD_CTX * mac_ctx ;\n EVP_PKEY * mac_key ;\n int is_export , n , i , j , k , exp_label_len , cl ;\n int reuse_dd = 0 ;\n is_export = SSL_C_IS_EXPORT ( s -> s3 -> tmp . new_cipher ) ;\n c = s -> s3 -> tmp . new_sym_enc ;\n m = s -> s3 -> tmp . new_hash ;\n mac_type = s -> s3 -> tmp . new_mac_pkey_type ;\n # ifndef OPENSSL_NO_COMP comp = s -> s3 -> tmp . new_compression ;\n # endif # ifdef KSSL_DEBUG printf ( \"tls1_change_cipher_state(which= %d) w/\\n\" , which ) ;\n printf ( \"\\talg= %ld/%ld, comp= %p\\n\" , s -> s3 -> tmp . new_cipher -> algorithm_mkey , s -> s3 -> tmp . new_cipher -> algorithm_auth , comp ) ;\n printf ( \"\\tevp_cipher == %p ==? &d_cbc_ede_cipher3\\n\" , c ) ;\n printf ( \"\\tevp_cipher: nid, blksz= %d, %d, keylen=%d, ivlen=%d\\n\" , c -> nid , c -> block_size , c -> key_len , c -> iv_len ) ;\n printf ( \"\\tkey_block: len= %d, data= \" , s -> s3 -> tmp . key_block_length ) ;\n {\n int i ;\n for ( i = 0 ;\n i < s -> s3 -> tmp . key_block_length ;\n i ++ ) printf ( \"%02x\" , s -> s3 -> tmp . key_block [ i ] ) ;\n printf ( \"\\n\" ) ;\n }\n # endif if ( which & SSL3_CC_READ ) {\n if ( s -> s3 -> tmp . new_cipher -> algorithm2 & TLS1_STREAM_MAC ) s -> mac_flags |= SSL_MAC_FLAG_READ_MAC_STREAM ;\n else s -> mac_flags &= ~ SSL_MAC_FLAG_READ_MAC_STREAM ;\n if ( s -> enc_read_ctx != NULL ) reuse_dd = 1 ;\n else if ( ( s -> enc_read_ctx = OPENSSL_malloc ( sizeof ( EVP_CIPHER_CTX ) ) ) == NULL ) goto err ;\n else EVP_CIPHER_CTX_init ( s -> enc_read_ctx ) ;\n dd = s -> enc_read_ctx ;\n mac_ctx = ssl_replace_hash ( & s -> read_hash , NULL ) ;\n # ifndef OPENSSL_NO_COMP if ( s -> expand != NULL ) {\n COMP_CTX_free ( s -> expand ) ;\n s -> expand = NULL ;\n }\n if ( comp != NULL ) {\n s -> expand = COMP_CTX_new ( comp -> method ) ;\n if ( s -> expand == NULL ) {\n SSLerr ( SSL_F_TLS1_CHANGE_CIPHER_STATE , SSL_R_COMPRESSION_LIBRARY_ERROR ) ;\n goto err2 ;\n }\n if ( s -> s3 -> rrec . comp == NULL ) s -> s3 -> rrec . comp = ( unsigned char * ) OPENSSL_malloc ( SSL3_RT_MAX_ENCRYPTED_LENGTH ) ;\n if ( s -> s3 -> rrec . comp == NULL ) goto err ;\n }\n # endif if ( s -> version != DTLS1_VERSION ) memset ( & ( s -> s3 -> read_sequence [ 0 ] ) , 0 , 8 ) ;\n mac_secret = & ( s -> s3 -> read_mac_secret [ 0 ] ) ;\n mac_secret_size = & ( s -> s3 -> read_mac_secret_size ) ;\n }\n else {\n if ( s -> s3 -> tmp . new_cipher -> algorithm2 & TLS1_STREAM_MAC ) s -> mac_flags |= SSL_MAC_FLAG_WRITE_MAC_STREAM ;\n else s -> mac_flags &= ~ SSL_MAC_FLAG_WRITE_MAC_STREAM ;\n if ( s -> enc_write_ctx != NULL ) reuse_dd = 1 ;\n else if ( ( s -> enc_write_ctx = OPENSSL_malloc ( sizeof ( EVP_CIPHER_CTX ) ) ) == NULL ) goto err ;\n else EVP_CIPHER_CTX_init ( s -> enc_write_ctx ) ;\n dd = s -> enc_write_ctx ;\n mac_ctx = ssl_replace_hash ( & s -> write_hash , NULL ) ;\n # ifndef OPENSSL_NO_COMP if ( s -> compress != NULL ) {\n COMP_CTX_free ( s -> compress ) ;\n s -> compress = NULL ;\n }\n if ( comp != NULL ) {\n s -> compress = COMP_CTX_new ( comp -> method ) ;\n if ( s -> compress == NULL ) {\n SSLerr ( SSL_F_TLS1_CHANGE_CIPHER_STATE , SSL_R_COMPRESSION_LIBRARY_ERROR ) ;\n goto err2 ;\n }\n }\n # endif if ( s -> version != DTLS1_VERSION ) memset ( & ( s -> s3 -> write_sequence [ 0 ] ) , 0 , 8 ) ;\n mac_secret = & ( s -> s3 -> write_mac_secret [ 0 ] ) ;\n mac_secret_size = & ( s -> s3 -> write_mac_secret_size ) ;\n }\n if ( reuse_dd ) EVP_CIPHER_CTX_cleanup ( dd ) ;\n p = s -> s3 -> tmp . key_block ;\n i = * mac_secret_size = s -> s3 -> tmp . new_mac_secret_size ;\n cl = EVP_CIPHER_key_length ( c ) ;\n j = is_export ? ( cl < SSL_C_EXPORT_KEYLENGTH ( s -> s3 -> tmp . new_cipher ) ? cl : SSL_C_EXPORT_KEYLENGTH ( s -> s3 -> tmp . new_cipher ) ) : cl ;\n if ( EVP_CIPHER_mode ( c ) == EVP_CIPH_GCM_MODE ) k = EVP_GCM_TLS_FIXED_IV_LEN ;\n else k = EVP_CIPHER_iv_length ( c ) ;\n if ( ( which == SSL3_CHANGE_CIPHER_CLIENT_WRITE ) || ( which == SSL3_CHANGE_CIPHER_SERVER_READ ) ) {\n ms = & ( p [ 0 ] ) ;\n n = i + i ;\n key = & ( p [ n ] ) ;\n n += j + j ;\n iv = & ( p [ n ] ) ;\n n += k + k ;\n exp_label = ( unsigned char * ) TLS_MD_CLIENT_WRITE_KEY_CONST ;\n exp_label_len = TLS_MD_CLIENT_WRITE_KEY_CONST_SIZE ;\n client_write = 1 ;\n }\n else {\n n = i ;\n ms = & ( p [ n ] ) ;\n n += i + j ;\n key = & ( p [ n ] ) ;\n n += j + k ;\n iv = & ( p [ n ] ) ;\n n += k ;\n exp_label = ( unsigned char * ) TLS_MD_SERVER_WRITE_KEY_CONST ;\n exp_label_len = TLS_MD_SERVER_WRITE_KEY_CONST_SIZE ;\n client_write = 0 ;\n }\n if ( n > s -> s3 -> tmp . key_block_length ) {\n SSLerr ( SSL_F_TLS1_CHANGE_CIPHER_STATE , ERR_R_INTERNAL_ERROR ) ;\n goto err2 ;\n }\n memcpy ( mac_secret , ms , i ) ;\n if ( ! ( EVP_CIPHER_flags ( c ) & EVP_CIPH_FLAG_AEAD_CIPHER ) ) {\n mac_key = EVP_PKEY_new_mac_key ( mac_type , NULL , mac_secret , * mac_secret_size ) ;\n EVP_DigestSignInit ( mac_ctx , NULL , m , NULL , mac_key ) ;\n EVP_PKEY_free ( mac_key ) ;\n }\n # ifdef TLS_DEBUG printf ( \"which = %04X\\nmac key=\" , which ) ;\n {\n int z ;\n for ( z = 0 ;\n z < i ;\n z ++ ) printf ( \"%02X%c\" , ms [ z ] , ( ( z + 1 ) % 16 ) ? ' ' : '\\n' ) ;\n }\n # endif if ( is_export ) {\n if ( ! tls1_PRF ( ssl_get_algorithm2 ( s ) , exp_label , exp_label_len , s -> s3 -> client_random , SSL3_RANDOM_SIZE , s -> s3 -> server_random , SSL3_RANDOM_SIZE , NULL , 0 , NULL , 0 , key , j , tmp1 , tmp2 , EVP_CIPHER_key_length ( c ) ) ) goto err2 ;\n key = tmp1 ;\n if ( k > 0 ) {\n if ( ! tls1_PRF ( ssl_get_algorithm2 ( s ) , TLS_MD_IV_BLOCK_CONST , TLS_MD_IV_BLOCK_CONST_SIZE , s -> s3 -> client_random , SSL3_RANDOM_SIZE , s -> s3 -> server_random , SSL3_RANDOM_SIZE , NULL , 0 , NULL , 0 , empty , 0 , iv1 , iv2 , k * 2 ) ) goto err2 ;\n if ( client_write ) iv = iv1 ;\n else iv = & ( iv1 [ k ] ) ;\n }\n }\n s -> session -> key_arg_length = 0 ;\n # ifdef KSSL_DEBUG {\n int i ;\n printf ( \"EVP_CipherInit_ex(dd,c,key=,iv=,which)\\n\" ) ;\n printf ( \"\\tkey= \" ) ;\n for ( i = 0 ;\n i < c -> key_len ;\n i ++ ) printf ( \"%02x\" , key [ i ] ) ;\n printf ( \"\\n\" ) ;\n printf ( \"\\t iv= \" ) ;\n for ( i = 0 ;\n i < c -> iv_len ;\n i ++ ) printf ( \"%02x\" , iv [ i ] ) ;\n printf ( \"\\n\" ) ;\n }\n # endif if ( EVP_CIPHER_mode ( c ) == EVP_CIPH_GCM_MODE ) {\n EVP_CipherInit_ex ( dd , c , NULL , key , NULL , ( which & SSL3_CC_WRITE ) ) ;\n EVP_CIPHER_CTX_ctrl ( dd , EVP_CTRL_GCM_SET_IV_FIXED , k , iv ) ;\n }\n else EVP_CipherInit_ex ( dd , c , NULL , key , iv , ( which & SSL3_CC_WRITE ) ) ;\n if ( ( EVP_CIPHER_flags ( c ) & EVP_CIPH_FLAG_AEAD_CIPHER ) && * mac_secret_size ) EVP_CIPHER_CTX_ctrl ( dd , EVP_CTRL_AEAD_SET_MAC_KEY , * mac_secret_size , mac_secret ) ;\n # ifdef TLS_DEBUG printf ( \"which = %04X\\nkey=\" , which ) ;\n {\n int z ;\n for ( z = 0 ;\n z < EVP_CIPHER_key_length ( c ) ;\n z ++ ) printf ( \"%02X%c\" , key [ z ] , ( ( z + 1 ) % 16 ) ? ' ' : '\\n' ) ;\n }\n printf ( \"\\niv=\" ) ;\n {\n int z ;\n for ( z = 0 ;\n z < k ;\n z ++ ) printf ( \"%02X%c\" , iv [ z ] , ( ( z + 1 ) % 16 ) ? ' ' : '\\n' ) ;\n }\n printf ( \"\\n\" ) ;\n # endif OPENSSL_cleanse ( tmp1 , sizeof ( tmp1 ) ) ;\n OPENSSL_cleanse ( tmp2 , sizeof ( tmp1 ) ) ;\n OPENSSL_cleanse ( iv1 , sizeof ( iv1 ) ) ;\n OPENSSL_cleanse ( iv2 , sizeof ( iv2 ) ) ;\n return ( 1 ) ;\n err : SSLerr ( SSL_F_TLS1_CHANGE_CIPHER_STATE , ERR_R_MALLOC_FAILURE ) ;\n err2 : return ( 0 ) ;\n }"}
{"idx": 12542, "target": 0, "func": "static const char * sexp_nth_data ( const gcry_sexp_t list , int number , size_t * datalen ) {\n const byte * p ;\n DATALEN n ;\n int level = 0 ;\n * datalen = 0 ;\n if ( ! list ) return NULL ;\n p = list -> d ;\n if ( * p == ST_OPEN ) p ++ ;\n else if ( number ) return NULL ;\n while ( number > 0 ) {\n if ( * p == ST_DATA ) {\n memcpy ( & n , ++ p , sizeof n ) ;\n p += sizeof n + n ;\n p -- ;\n if ( ! level ) number -- ;\n }\n else if ( * p == ST_OPEN ) {\n level ++ ;\n }\n else if ( * p == ST_CLOSE ) {\n level -- ;\n if ( ! level ) number -- ;\n }\n else if ( * p == ST_STOP ) {\n return NULL ;\n }\n p ++ ;\n }\n if ( * p == ST_DATA ) {\n memcpy ( & n , ++ p , sizeof n ) ;\n * datalen = n ;\n return ( const char * ) p + sizeof n ;\n }\n return NULL ;\n }"}
{"idx": 12543, "target": 0, "func": "static bool have_changed_settings ( const struct config_filter_parser * parser , const char * const * modules ) {\n const unsigned char * changes ;\n unsigned int i , j , size ;\n for ( i = 0 ;\n parser -> parsers [ i ] . root != NULL ;\n i ++ ) {\n if ( ! config_module_want_parser ( config_module_parsers , modules , parser -> parsers [ i ] . root ) ) continue ;\n changes = settings_parser_get_changes ( parser -> parsers [ i ] . parser ) ;\n size = parser -> parsers [ i ] . root -> struct_size ;\n for ( j = 0 ;\n j < size ;\n j ++ ) {\n if ( changes [ j ] != 0 ) return TRUE ;\n }\n }\n return FALSE ;\n }"}
{"idx": 12544, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( ClientHintsBrowserTest , ClientHintsLifetimeNotAttachedJavaScriptBlocked ) {\n base : : HistogramTester histogram_tester ;\n ContentSettingsForOneType host_settings ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> GetSettingsForOneType ( CONTENT_SETTINGS_TYPE_CLIENT_HINTS , std : : string ( ) , & host_settings ) ;\n EXPECT_EQ ( 0u , host_settings . size ( ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , accept_ch_with_lifetime_url ( ) ) ;\n histogram_tester . ExpectUniqueSample ( \"ClientHints.UpdateEventCount\" , 1 , 1 ) ;\n content : : FetchHistogramsFromChildProcesses ( ) ;\n SubprocessMetricsProvider : : MergeHistogramDeltasForTesting ( ) ;\n histogram_tester . ExpectUniqueSample ( \"ClientHints.UpdateSize\" , 3 , 1 ) ;\n histogram_tester . ExpectUniqueSample ( \"ClientHints.PersistDuration\" , * 1000 , 1 ) ;\n base : : RunLoop ( ) . RunUntilIdle ( ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> GetSettingsForOneType ( CONTENT_SETTINGS_TYPE_CLIENT_HINTS , std : : string ( ) , & host_settings ) ;\n EXPECT_EQ ( 1u , host_settings . size ( ) ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> SetContentSettingDefaultScope ( without_accept_ch_without_lifetime_url ( ) , GURL ( ) , CONTENT_SETTINGS_TYPE_JAVASCRIPT , std : : string ( ) , CONTENT_SETTING_BLOCK ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , without_accept_ch_without_lifetime_url ( ) ) ;\n EXPECT_EQ ( 0u , count_client_hints_headers_seen ( ) ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> SetContentSettingDefaultScope ( without_accept_ch_without_lifetime_url ( ) , GURL ( ) , CONTENT_SETTINGS_TYPE_JAVASCRIPT , std : : string ( ) , CONTENT_SETTING_ALLOW ) ;\n SetClientHintExpectationsOnMainFrame ( true ) ;\n SetClientHintExpectationsOnSubresources ( true ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , without_accept_ch_without_lifetime_url ( ) ) ;\n # if defined ( OS_ANDROID ) EXPECT_EQ ( 4u , count_client_hints_headers_seen ( ) ) ;\n # else EXPECT_EQ ( 6u , count_client_hints_headers_seen ( ) ) ;\n # endif HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> ClearSettingsForOneType ( CONTENT_SETTINGS_TYPE_JAVASCRIPT ) ;\n }"}
{"idx": 12545, "target": 0, "func": "static void filesystem_info_state_free ( FilesystemInfoState * state ) {\n g_object_unref ( state -> cancellable ) ;\n g_free ( state ) ;\n }"}
{"idx": 12546, "target": 0, "func": "static void U_CALLCONV _SCSUFromUnicode ( UConverterFromUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n UConverter * cnv ;\n SCSUData * scsu ;\n const UChar * source , * sourceLimit ;\n uint8_t * target ;\n int32_t targetCapacity ;\n UBool isSingleByteMode ;\n uint8_t dynamicWindow ;\n uint32_t currentOffset ;\n uint32_t c , delta ;\n int32_t length ;\n uint32_t offset ;\n UChar lead , trail ;\n int code ;\n int8_t window ;\n cnv = pArgs -> converter ;\n scsu = ( SCSUData * ) cnv -> extraInfo ;\n source = pArgs -> source ;\n sourceLimit = pArgs -> sourceLimit ;\n target = ( uint8_t * ) pArgs -> target ;\n targetCapacity = ( int32_t ) ( pArgs -> targetLimit - pArgs -> target ) ;\n isSingleByteMode = scsu -> fromUIsSingleByteMode ;\n dynamicWindow = scsu -> fromUDynamicWindow ;\n currentOffset = scsu -> fromUDynamicOffsets [ dynamicWindow ] ;\n c = cnv -> fromUChar32 ;\n loop : if ( isSingleByteMode ) {\n if ( c != 0 && targetCapacity > 0 ) {\n goto getTrailSingle ;\n }\n while ( source < sourceLimit ) {\n if ( targetCapacity <= 0 ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n c = * source ++ ;\n if ( ( c - 0x20 ) <= 0x5f ) {\n * target ++ = ( uint8_t ) c ;\n -- targetCapacity ;\n }\n else if ( c < 0x20 ) {\n if ( ( 1UL << c ) & 0x2601 ) {\n * target ++ = ( uint8_t ) c ;\n -- targetCapacity ;\n }\n else {\n c |= SQ0 << 8 ;\n length = 2 ;\n goto outputBytes ;\n }\n }\n else if ( ( delta = c - currentOffset ) <= 0x7f ) {\n * target ++ = ( uint8_t ) ( delta | 0x80 ) ;\n -- targetCapacity ;\n }\n else if ( U16_IS_SURROGATE ( c ) ) {\n if ( U16_IS_SURROGATE_LEAD ( c ) ) {\n getTrailSingle : lead = ( UChar ) c ;\n if ( source < sourceLimit ) {\n trail = * source ;\n if ( U16_IS_TRAIL ( trail ) ) {\n ++ source ;\n c = U16_GET_SUPPLEMENTARY ( c , trail ) ;\n }\n else {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n goto endloop ;\n }\n }\n else {\n break ;\n }\n }\n else {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n goto endloop ;\n }\n if ( ( delta = c - currentOffset ) <= 0x7f ) {\n * target ++ = ( uint8_t ) ( delta | 0x80 ) ;\n -- targetCapacity ;\n }\n else if ( ( window = getWindow ( scsu -> fromUDynamicOffsets , c ) ) >= 0 ) {\n dynamicWindow = window ;\n currentOffset = scsu -> fromUDynamicOffsets [ dynamicWindow ] ;\n useDynamicWindow ( scsu , dynamicWindow ) ;\n c = ( ( uint32_t ) ( SC0 + dynamicWindow ) << 8 ) | ( c - currentOffset ) | 0x80 ;\n length = 2 ;\n goto outputBytes ;\n }\n else if ( ( code = getDynamicOffset ( c , & offset ) ) >= 0 ) {\n code -= 0x200 ;\n dynamicWindow = getNextDynamicWindow ( scsu ) ;\n currentOffset = scsu -> fromUDynamicOffsets [ dynamicWindow ] = offset ;\n useDynamicWindow ( scsu , dynamicWindow ) ;\n c = ( ( uint32_t ) SDX << 24 ) | ( ( uint32_t ) dynamicWindow << 21 ) | ( ( uint32_t ) code << 8 ) | ( c - currentOffset ) | 0x80 ;\n length = 4 ;\n goto outputBytes ;\n }\n else {\n isSingleByteMode = FALSE ;\n * target ++ = ( uint8_t ) SCU ;\n -- targetCapacity ;\n c = ( ( uint32_t ) lead << 16 ) | trail ;\n length = 4 ;\n goto outputBytes ;\n }\n }\n else if ( c < 0xa0 ) {\n c = ( c & 0x7f ) | ( SQ0 + 1 ) << 8 ;\n length = 2 ;\n goto outputBytes ;\n }\n else if ( c == 0xfeff || c >= 0xfff0 ) {\n c |= SQU << 16 ;\n length = 3 ;\n goto outputBytes ;\n }\n else {\n if ( ( window = getWindow ( scsu -> fromUDynamicOffsets , c ) ) >= 0 ) {\n if ( source >= sourceLimit || isInOffsetWindowOrDirect ( scsu -> fromUDynamicOffsets [ window ] , * source ) ) {\n dynamicWindow = window ;\n currentOffset = scsu -> fromUDynamicOffsets [ dynamicWindow ] ;\n useDynamicWindow ( scsu , dynamicWindow ) ;\n c = ( ( uint32_t ) ( SC0 + dynamicWindow ) << 8 ) | ( c - currentOffset ) | 0x80 ;\n length = 2 ;\n goto outputBytes ;\n }\n else {\n c = ( ( uint32_t ) ( SQ0 + window ) << 8 ) | ( c - scsu -> fromUDynamicOffsets [ window ] ) | 0x80 ;\n length = 2 ;\n goto outputBytes ;\n }\n }\n else if ( ( window = getWindow ( staticOffsets , c ) ) >= 0 ) {\n c = ( ( uint32_t ) ( SQ0 + window ) << 8 ) | ( c - staticOffsets [ window ] ) ;\n length = 2 ;\n goto outputBytes ;\n }\n else if ( ( code = getDynamicOffset ( c , & offset ) ) >= 0 ) {\n dynamicWindow = getNextDynamicWindow ( scsu ) ;\n currentOffset = scsu -> fromUDynamicOffsets [ dynamicWindow ] = offset ;\n useDynamicWindow ( scsu , dynamicWindow ) ;\n c = ( ( uint32_t ) ( SD0 + dynamicWindow ) << 16 ) | ( ( uint32_t ) code << 8 ) | ( c - currentOffset ) | 0x80 ;\n length = 3 ;\n goto outputBytes ;\n }\n else if ( ( uint32_t ) ( c - 0x3400 ) < ( 0xd800 - 0x3400 ) && ( source >= sourceLimit || ( uint32_t ) ( * source - 0x3400 ) < ( 0xd800 - 0x3400 ) ) ) {\n isSingleByteMode = FALSE ;\n c |= SCU << 16 ;\n length = 3 ;\n goto outputBytes ;\n }\n else {\n c |= SQU << 16 ;\n length = 3 ;\n goto outputBytes ;\n }\n }\n c = 0 ;\n }\n }\n else {\n if ( c != 0 && targetCapacity > 0 ) {\n goto getTrailUnicode ;\n }\n while ( source < sourceLimit ) {\n if ( targetCapacity <= 0 ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n c = * source ++ ;\n if ( ( uint32_t ) ( c - 0x3400 ) < ( 0xd800 - 0x3400 ) ) {\n if ( targetCapacity >= 2 ) {\n * target ++ = ( uint8_t ) ( c >> 8 ) ;\n * target ++ = ( uint8_t ) c ;\n targetCapacity -= 2 ;\n }\n else {\n length = 2 ;\n goto outputBytes ;\n }\n }\n else if ( ( uint32_t ) ( c - 0x3400 ) >= ( 0xf300 - 0x3400 ) ) {\n if ( ! ( source < sourceLimit && ( uint32_t ) ( * source - 0x3400 ) < ( 0xd800 - 0x3400 ) ) ) {\n if ( ( ( uint32_t ) ( c - 0x30 ) < 10 || ( uint32_t ) ( c - 0x61 ) < 26 || ( uint32_t ) ( c - 0x41 ) < 26 ) ) {\n isSingleByteMode = TRUE ;\n c |= ( ( uint32_t ) ( UC0 + dynamicWindow ) << 8 ) | c ;\n length = 2 ;\n goto outputBytes ;\n }\n else if ( ( window = getWindow ( scsu -> fromUDynamicOffsets , c ) ) >= 0 ) {\n isSingleByteMode = TRUE ;\n dynamicWindow = window ;\n currentOffset = scsu -> fromUDynamicOffsets [ dynamicWindow ] ;\n useDynamicWindow ( scsu , dynamicWindow ) ;\n c = ( ( uint32_t ) ( UC0 + dynamicWindow ) << 8 ) | ( c - currentOffset ) | 0x80 ;\n length = 2 ;\n goto outputBytes ;\n }\n else if ( ( code = getDynamicOffset ( c , & offset ) ) >= 0 ) {\n isSingleByteMode = TRUE ;\n dynamicWindow = getNextDynamicWindow ( scsu ) ;\n currentOffset = scsu -> fromUDynamicOffsets [ dynamicWindow ] = offset ;\n useDynamicWindow ( scsu , dynamicWindow ) ;\n c = ( ( uint32_t ) ( UD0 + dynamicWindow ) << 16 ) | ( ( uint32_t ) code << 8 ) | ( c - currentOffset ) | 0x80 ;\n length = 3 ;\n goto outputBytes ;\n }\n }\n length = 2 ;\n goto outputBytes ;\n }\n else if ( c < 0xe000 ) {\n if ( U16_IS_SURROGATE_LEAD ( c ) ) {\n getTrailUnicode : lead = ( UChar ) c ;\n if ( source < sourceLimit ) {\n trail = * source ;\n if ( U16_IS_TRAIL ( trail ) ) {\n ++ source ;\n c = U16_GET_SUPPLEMENTARY ( c , trail ) ;\n }\n else {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n goto endloop ;\n }\n }\n else {\n break ;\n }\n }\n else {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n goto endloop ;\n }\n if ( ( window = getWindow ( scsu -> fromUDynamicOffsets , c ) ) >= 0 && ! ( source < sourceLimit && ( uint32_t ) ( * source - 0x3400 ) < ( 0xd800 - 0x3400 ) ) ) {\n isSingleByteMode = TRUE ;\n dynamicWindow = window ;\n currentOffset = scsu -> fromUDynamicOffsets [ dynamicWindow ] ;\n useDynamicWindow ( scsu , dynamicWindow ) ;\n c = ( ( uint32_t ) ( UC0 + dynamicWindow ) << 8 ) | ( c - currentOffset ) | 0x80 ;\n length = 2 ;\n goto outputBytes ;\n }\n else if ( source < sourceLimit && lead == * source && ( code = getDynamicOffset ( c , & offset ) ) >= 0 ) {\n isSingleByteMode = TRUE ;\n code -= 0x200 ;\n dynamicWindow = getNextDynamicWindow ( scsu ) ;\n currentOffset = scsu -> fromUDynamicOffsets [ dynamicWindow ] = offset ;\n useDynamicWindow ( scsu , dynamicWindow ) ;\n c = ( ( uint32_t ) UDX << 24 ) | ( ( uint32_t ) dynamicWindow << 21 ) | ( ( uint32_t ) code << 8 ) | ( c - currentOffset ) | 0x80 ;\n length = 4 ;\n goto outputBytes ;\n }\n else {\n c = ( ( uint32_t ) lead << 16 ) | trail ;\n length = 4 ;\n goto outputBytes ;\n }\n }\n else {\n c |= UQU << 16 ;\n length = 3 ;\n goto outputBytes ;\n }\n c = 0 ;\n }\n }\n endloop : scsu -> fromUIsSingleByteMode = isSingleByteMode ;\n scsu -> fromUDynamicWindow = dynamicWindow ;\n cnv -> fromUChar32 = c ;\n pArgs -> source = source ;\n pArgs -> target = ( char * ) target ;\n return ;\n outputBytes : if ( length <= targetCapacity ) {\n switch ( length ) {\n case 4 : * target ++ = ( uint8_t ) ( c >> 24 ) ;\n U_FALLTHROUGH ;\n case 3 : * target ++ = ( uint8_t ) ( c >> 16 ) ;\n U_FALLTHROUGH ;\n case 2 : * target ++ = ( uint8_t ) ( c >> 8 ) ;\n U_FALLTHROUGH ;\n case 1 : * target ++ = ( uint8_t ) c ;\n U_FALLTHROUGH ;\n default : break ;\n }\n targetCapacity -= length ;\n c = 0 ;\n goto loop ;\n }\n else {\n uint8_t * p ;\n length -= targetCapacity ;\n p = ( uint8_t * ) cnv -> charErrorBuffer ;\n switch ( length ) {\n case 4 : * p ++ = ( uint8_t ) ( c >> 24 ) ;\n U_FALLTHROUGH ;\n case 3 : * p ++ = ( uint8_t ) ( c >> 16 ) ;\n U_FALLTHROUGH ;\n case 2 : * p ++ = ( uint8_t ) ( c >> 8 ) ;\n U_FALLTHROUGH ;\n case 1 : * p = ( uint8_t ) c ;\n U_FALLTHROUGH ;\n default : break ;\n }\n cnv -> charErrorBufferLength = ( int8_t ) length ;\n c >>= 8 * length ;\n switch ( targetCapacity ) {\n case 3 : * target ++ = ( uint8_t ) ( c >> 16 ) ;\n U_FALLTHROUGH ;\n case 2 : * target ++ = ( uint8_t ) ( c >> 8 ) ;\n U_FALLTHROUGH ;\n case 1 : * target ++ = ( uint8_t ) c ;\n U_FALLTHROUGH ;\n default : break ;\n }\n targetCapacity = 0 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n c = 0 ;\n goto endloop ;\n }\n }"}
{"idx": 12547, "target": 0, "func": "static void put2d14 ( FILE * file , real dval ) {\n int val ;\n int mant ;\n val = floor ( dval ) ;\n mant = floor ( 16384. * ( dval - val ) ) ;\n val = ( val << 14 ) | mant ;\n putshort ( file , val ) ;\n }"}
{"idx": 12548, "target": 0, "func": "static guint16 de_bcc_cause ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n int curr_len ;\n curr_len = len ;\n curr_offset = offset ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_bcc_cause_structure , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_bcc_cause , tvb , curr_offset , 1 , ENC_NA ) ;\n curr_offset ++ ;\n curr_len -- ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 12549, "target": 0, "func": "static inline void SetPixelYellow ( const Image * restrict image , const Quantum yellow , Quantum * restrict pixel ) {\n pixel [ image -> channel_map [ YellowPixelChannel ] . offset ] = yellow ;\n }"}
{"idx": 12550, "target": 0, "func": "static int write_string ( buffer_t buffer , PyObject * py_string ) {\n Py_ssize_t string_length ;\n const char * string ;\n # if PY_MAJOR_VERSION >= 3 if ( PyUnicode_Check ( py_string ) ) {\n return write_unicode ( buffer , py_string ) ;\n }\n string = PyBytes_AsString ( py_string ) ;\n # else string = PyString_AsString ( py_string ) ;\n # endif if ( ! string ) {\n return 0 ;\n }\n # if PY_MAJOR_VERSION >= 3 string_length = PyBytes_Size ( py_string ) + 1 ;\n # else string_length = PyString_Size ( py_string ) + 1 ;\n # endif if ( ! buffer_write_bytes ( buffer , ( const char * ) & string_length , 4 ) ) {\n return 0 ;\n }\n if ( ! buffer_write_bytes ( buffer , string , string_length ) ) {\n return 0 ;\n }\n return 1 ;\n }"}
{"idx": 12551, "target": 0, "func": "static void _enableTriggersIfNecessary ( ArchiveHandle * AH , TocEntry * te ) {\n RestoreOptions * ropt = AH -> public . ropt ;\n if ( ! ropt -> dataOnly || ! ropt -> disable_triggers ) return ;\n ahlog ( AH , 1 , \"enabling triggers for %s\\n\" , te -> tag ) ;\n _becomeUser ( AH , ropt -> superuser ) ;\n _selectOutputSchema ( AH , te -> namespace ) ;\n ahprintf ( AH , \"ALTER TABLE %s ENABLE TRIGGER ALL;\n\\n\\n\" , fmtId ( te -> tag ) ) ;\n }"}
{"idx": 12552, "target": 0, "func": "void ptvcursor_advance ( ptvcursor_t * ptvc , gint length ) {\n ptvc -> offset += length ;\n }"}
{"idx": 12553, "target": 1, "func": "extern int name ( int , locale_t ) __THROW __exctype_l ( isalnum_l ) ;\n __exctype_l ( isalpha_l ) ;\n __exctype_l ( iscntrl_l ) ;\n __exctype_l ( isdigit_l ) ;\n __exctype_l ( islower_l ) ;\n __exctype_l ( isgraph_l ) ;\n __exctype_l ( isprint_l ) ;\n __exctype_l ( ispunct_l ) ;\n __exctype_l ( isspace_l ) ;\n __exctype_l ( isupper_l ) ;\n __exctype_l ( isxdigit_l ) ;\n __exctype_l ( isblank_l )"}
{"idx": 12554, "target": 0, "func": "static void pk_transaction_init ( PkTransaction * transaction ) {\n gboolean ret ;\n g_autoptr ( GError ) error = NULL ;\n transaction -> priv = PK_TRANSACTION_GET_PRIVATE ( transaction ) ;\n transaction -> priv -> allow_cancel = TRUE ;\n transaction -> priv -> caller_active = TRUE ;\n transaction -> priv -> cached_transaction_flags = PK_TRANSACTION_FLAG_ENUM_NONE ;\n transaction -> priv -> cached_filters = PK_FILTER_ENUM_NONE ;\n transaction -> priv -> uid = PK_TRANSACTION_UID_INVALID ;\n transaction -> priv -> role = PK_ROLE_ENUM_UNKNOWN ;\n transaction -> priv -> status = PK_STATUS_ENUM_WAIT ;\n transaction -> priv -> percentage = PK_BACKEND_PERCENTAGE_INVALID ;\n transaction -> priv -> state = PK_TRANSACTION_STATE_UNKNOWN ;\n transaction -> priv -> dbus = pk_dbus_new ( ) ;\n transaction -> priv -> results = pk_results_new ( ) ;\n transaction -> priv -> supported_content_types = g_ptr_array_new_with_free_func ( g_free ) ;\n transaction -> priv -> authority = polkit_authority_get_sync ( NULL , & error ) ;\n if ( transaction -> priv -> authority == NULL ) g_error ( \"failed to get pokit authority: %s\" , error -> message ) ;\n transaction -> priv -> cancellable = g_cancellable_new ( ) ;\n transaction -> priv -> transaction_db = pk_transaction_db_new ( ) ;\n ret = pk_transaction_db_load ( transaction -> priv -> transaction_db , & error ) ;\n if ( ! ret ) g_error ( \"PkEngine: failed to load transaction db: %s\" , error -> message ) ;\n }"}
{"idx": 12555, "target": 0, "func": "int main ( int argc , char * * argv ) {\n char bin_log_name [ FN_REFLEN ] ;\n int exit_code ;\n int consistent_binlog_pos = 0 ;\n MY_INIT ( argv [ 0 ] ) ;\n sf_leaking_memory = 1 ;\n compatible_mode_normal_str [ 0 ] = 0 ;\n default_charset = ( char * ) mysql_universal_client_charset ;\n bzero ( ( char * ) & ignore_table , sizeof ( ignore_table ) ) ;\n exit_code = get_options ( & argc , & argv ) ;\n if ( exit_code ) {\n free_resources ( ) ;\n exit ( exit_code ) ;\n }\n sf_leaking_memory = 0 ;\n if ( opt_xml && ! opt_comments_used ) opt_comments = 0 ;\n if ( log_error_file ) {\n if ( ! ( stderror_file = freopen ( log_error_file , \"a+\" , stderr ) ) ) {\n free_resources ( ) ;\n exit ( EX_MYSQLERR ) ;\n }\n }\n if ( connect_to_db ( current_host , current_user , opt_password ) ) {\n free_resources ( ) ;\n exit ( EX_MYSQLERR ) ;\n }\n if ( ! path ) write_header ( md_result_file , * argv ) ;\n if ( opt_slave_data && do_stop_slave_sql ( mysql ) ) goto err ;\n if ( opt_single_transaction && opt_master_data ) {\n consistent_binlog_pos = check_consistent_binlog_pos ( NULL , NULL ) ;\n }\n if ( ( opt_lock_all_tables || ( opt_master_data && ! consistent_binlog_pos ) || ( opt_single_transaction && flush_logs ) ) && do_flush_tables_read_lock ( mysql ) ) goto err ;\n if ( opt_lock_all_tables || opt_master_data || ( opt_single_transaction && flush_logs ) || opt_delete_master_logs ) {\n if ( flush_logs || opt_delete_master_logs ) {\n if ( mysql_refresh ( mysql , REFRESH_LOG ) ) goto err ;\n verbose_msg ( \"-- main : logs flushed successfully!\\n\" ) ;\n }\n flush_logs = 0 ;\n }\n if ( opt_delete_master_logs ) {\n if ( get_bin_log_name ( mysql , bin_log_name , sizeof ( bin_log_name ) ) ) goto err ;\n }\n if ( opt_single_transaction && start_transaction ( mysql ) ) goto err ;\n if ( opt_slave_apply && add_stop_slave ( ) ) goto err ;\n if ( opt_master_data && do_show_master_status ( mysql , consistent_binlog_pos ) ) goto err ;\n if ( opt_slave_data && do_show_slave_status ( mysql ) ) goto err ;\n if ( opt_single_transaction && do_unlock_tables ( mysql ) ) goto err ;\n if ( opt_alltspcs ) dump_all_tablespaces ( ) ;\n if ( extended_insert ) init_dynamic_string_checked ( & extended_row , \"\" , 1024 , 1024 ) ;\n if ( opt_alldbs ) {\n if ( ! opt_alltspcs && ! opt_notspcs ) dump_all_tablespaces ( ) ;\n dump_all_databases ( ) ;\n }\n else {\n int argument ;\n for ( argument = 0 ;\n argument < argc ;\n argument ++ ) {\n size_t argument_length = strlen ( argv [ argument ] ) ;\n if ( argument_length > NAME_LEN ) {\n die ( EX_CONSCHECK , \"[ERROR] Argument '%s' is too long, it cannot be \" \"name for any table or database.\\n\" , argv [ argument ] ) ;\n }\n }\n if ( argc > 1 && ! opt_databases ) {\n if ( ! opt_alltspcs && ! opt_notspcs ) dump_tablespaces_for_tables ( * argv , ( argv + 1 ) , ( argc - 1 ) ) ;\n dump_selected_tables ( * argv , ( argv + 1 ) , ( argc - 1 ) ) ;\n }\n else {\n if ( ! opt_alltspcs && ! opt_notspcs ) dump_tablespaces_for_databases ( argv ) ;\n dump_databases ( argv ) ;\n }\n }\n if ( opt_slave_apply && add_slave_statements ( ) ) goto err ;\n if ( md_result_file && fflush ( md_result_file ) ) {\n if ( ! first_error ) first_error = EX_MYSQLERR ;\n goto err ;\n }\n if ( opt_delete_master_logs && purge_bin_logs_to ( mysql , bin_log_name ) ) goto err ;\n err : if ( opt_slave_data ) do_start_slave_sql ( mysql ) ;\n # ifdef HAVE_SMEM my_free ( shared_memory_base_name ) ;\n # endif dbDisconnect ( current_host ) ;\n if ( ! path ) write_footer ( md_result_file ) ;\n free_resources ( ) ;\n if ( stderror_file ) fclose ( stderror_file ) ;\n return ( first_error ) ;\n }"}
{"idx": 12556, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n const uint8_t * buf_end = avpkt -> data + avpkt -> size ;\n int buf_size = avpkt -> size ;\n AVFrame * const p = data ;\n uint8_t * ptr ;\n unsigned int offset ;\n int magic_num , endian ;\n int x , y , ret ;\n int w , h , stride , bits_per_color , descriptor , elements , target_packet_size , source_packet_size ;\n unsigned int rgbBuffer ;\n if ( avpkt -> size <= 1634 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Packet too small for DPX header\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n magic_num = AV_RB32 ( buf ) ;\n buf += 4 ;\n if ( magic_num == AV_RL32 ( \"SDPX\" ) ) {\n endian = 0 ;\n }\n else if ( magic_num == AV_RB32 ( \"SDPX\" ) ) {\n endian = 1 ;\n }\n else {\n av_log ( avctx , AV_LOG_ERROR , \"DPX marker not found\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n offset = read32 ( & buf , endian ) ;\n if ( avpkt -> size <= offset ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid data start offset\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n buf = avpkt -> data + 0x304 ;\n w = read32 ( & buf , endian ) ;\n h = read32 ( & buf , endian ) ;\n buf += 20 ;\n descriptor = buf [ 0 ] ;\n buf += 3 ;\n avctx -> bits_per_raw_sample = bits_per_color = buf [ 0 ] ;\n buf += 825 ;\n avctx -> sample_aspect_ratio . num = read32 ( & buf , endian ) ;\n avctx -> sample_aspect_ratio . den = read32 ( & buf , endian ) ;\n switch ( descriptor ) {\n case 51 : elements = 4 ;\n break ;\n case 50 : elements = 3 ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"Unsupported descriptor %d\\n\" , descriptor ) ;\n return AVERROR_INVALIDDATA ;\n }\n switch ( bits_per_color ) {\n case 8 : if ( elements == 4 ) {\n avctx -> pix_fmt = AV_PIX_FMT_RGBA ;\n }\n else {\n avctx -> pix_fmt = AV_PIX_FMT_RGB24 ;\n }\n source_packet_size = elements ;\n target_packet_size = elements ;\n break ;\n case 10 : avctx -> pix_fmt = AV_PIX_FMT_RGB48 ;\n target_packet_size = 6 ;\n source_packet_size = 4 ;\n break ;\n case 12 : case 16 : if ( endian ) {\n avctx -> pix_fmt = AV_PIX_FMT_RGB48BE ;\n }\n else {\n avctx -> pix_fmt = AV_PIX_FMT_RGB48LE ;\n }\n target_packet_size = 6 ;\n source_packet_size = elements * 2 ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"Unsupported color depth : %d\\n\" , bits_per_color ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ( ret = av_image_check_size ( w , h , 0 , avctx ) ) < 0 ) return ret ;\n if ( w != avctx -> width || h != avctx -> height ) avcodec_set_dimensions ( avctx , w , h ) ;\n if ( ( ret = ff_get_buffer ( avctx , p , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n buf = avpkt -> data + offset ;\n ptr = p -> data [ 0 ] ;\n stride = p -> linesize [ 0 ] ;\n if ( source_packet_size * avctx -> width * avctx -> height > buf_end - buf ) {\n av_log ( avctx , AV_LOG_ERROR , \"Overread buffer. Invalid header?\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n switch ( bits_per_color ) {\n case 10 : for ( x = 0 ;\n x < avctx -> height ;\n x ++ ) {\n uint16_t * dst = ( uint16_t * ) ptr ;\n for ( y = 0 ;\n y < avctx -> width ;\n y ++ ) {\n rgbBuffer = read32 ( & buf , endian ) ;\n * dst ++ = make_16bit ( rgbBuffer >> 16 ) ;\n * dst ++ = make_16bit ( rgbBuffer >> 6 ) ;\n * dst ++ = make_16bit ( rgbBuffer << 4 ) ;\n }\n ptr += stride ;\n }\n break ;\n case 8 : case 12 : case 16 : if ( source_packet_size == target_packet_size ) {\n for ( x = 0 ;\n x < avctx -> height ;\n x ++ ) {\n memcpy ( ptr , buf , target_packet_size * avctx -> width ) ;\n ptr += stride ;\n buf += source_packet_size * avctx -> width ;\n }\n }\n else {\n for ( x = 0 ;\n x < avctx -> height ;\n x ++ ) {\n uint8_t * dst = ptr ;\n for ( y = 0 ;\n y < avctx -> width ;\n y ++ ) {\n memcpy ( dst , buf , target_packet_size ) ;\n dst += target_packet_size ;\n buf += source_packet_size ;\n }\n ptr += stride ;\n }\n }\n break ;\n }\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 12557, "target": 0, "func": "int gs_main_run_string_begin ( gs_main_instance * minst , int user_errors , int * pexit_code , ref * perror_object ) {\n const char * setup = \".runstringbegin\" ;\n ref rstr ;\n int code ;\n gs_main_set_lib_paths ( minst ) ;\n make_const_string ( & rstr , avm_foreign | a_readonly | a_executable , strlen ( setup ) , ( const byte * ) setup ) ;\n code = gs_main_interpret ( minst , & rstr , user_errors , pexit_code , perror_object ) ;\n return ( code == gs_error_NeedInput ? 0 : code == 0 ? gs_error_Fatal : code ) ;\n }"}
{"idx": 12558, "target": 0, "func": "static inline int handle_cpu_signal ( uintptr_t pc , unsigned long address , int is_write , sigset_t * old_set , void * puc ) {\n CPUArchState * env ;\n int ret ;\n # if defined ( DEBUG_SIGNAL ) qemu_printf ( \"qemu: SIGSEGV pc=0x%08lx address=%08lx w=%d oldset=0x%08lx\\n\" , pc , address , is_write , * ( unsigned long * ) old_set ) ;\n # endif if ( is_write && h2g_valid ( address ) && page_unprotect ( h2g ( address ) , pc , puc ) ) {\n return 1 ;\n }\n env = current_cpu -> env_ptr ;\n ret = cpu_handle_mmu_fault ( env , address , is_write , MMU_USER_IDX ) ;\n if ( ret < 0 ) {\n return 0 ;\n }\n if ( ret == 0 ) {\n return 1 ;\n }\n cpu_restore_state ( env , pc ) ;\n sigprocmask ( SIG_SETMASK , old_set , NULL ) ;\n exception_action ( env ) ;\n return 1 ;\n }"}
{"idx": 12559, "target": 0, "func": "static void pdf_process_gsave ( fz_context * ctx , pdf_processor * proc , pdf_csi * csi ) {\n if ( proc -> op_q ) proc -> op_q ( ctx , proc ) ;\n ++ csi -> gstate ;\n }"}
{"idx": 12560, "target": 0, "func": "void xprintf ( const char * fmt , ... ) {\n char buf [ 1000 ] ;\n va_list a ;\n int size ;\n va_start ( a , fmt ) ;\n size = vsnprintf_func ( buf , 1000 , fmt , a ) ;\n va_end ( a ) ;\n if ( size < 0 ) {\n size = sizeof ( buf ) - 1 ;\n buf [ size ] = 0 ;\n }\n if ( xprintf_message_func != NULL ) {\n xprintf_message_func ( buf ) ;\n }\n else {\n size_t ignore = fwrite ( buf , 1 , size , stderr ) ;\n ( void ) ignore ;\n }\n }"}
{"idx": 12561, "target": 0, "func": "static void gs_heap_free_all ( gs_memory_t * mem , uint free_mask , client_name_t cname ) {\n gs_malloc_memory_t * const mmem = ( gs_malloc_memory_t * ) mem ;\n gx_monitor_t * mon = mmem -> monitor ;\n mmem -> monitor = NULL ;\n gx_monitor_free ( mon ) ;\n # ifndef MEMENTO if ( free_mask & FREE_ALL_DATA ) {\n gs_malloc_block_t * bp = mmem -> allocated ;\n gs_malloc_block_t * np ;\n for ( ;\n bp != 0 ;\n bp = np ) {\n np = bp -> next ;\n if_debug3m ( 'a' , mem , \"[a]gs_heap_free_all(%s) 0x%lx(%u)\\n\" , client_name_string ( bp -> cname ) , ( ulong ) ( bp + 1 ) , bp -> size ) ;\n gs_alloc_fill ( bp + 1 , gs_alloc_fill_free , bp -> size ) ;\n free ( bp ) ;\n }\n }\n # endif if ( free_mask & FREE_ALL_ALLOCATOR ) free ( mem ) ;\n }"}
{"idx": 12562, "target": 0, "func": "static void pxa2xx_register_types ( void ) {\n type_register_static ( & pxa2xx_i2c_slave_info ) ;\n type_register_static ( & pxa2xx_ssp_info ) ;\n type_register_static ( & pxa2xx_i2c_info ) ;\n type_register_static ( & pxa2xx_rtc_sysbus_info ) ;\n }"}
{"idx": 12563, "target": 0, "func": "static void write_segment_id ( vp9_writer * w , const struct segmentation * seg , int segment_id ) {\n if ( seg -> enabled && seg -> update_map ) vp9_write_tree ( w , vp9_segment_tree , seg -> tree_probs , segment_id , 3 , 0 ) ;\n }"}
{"idx": 12564, "target": 0, "func": "static void openpic_load_IRQ_queue ( QEMUFile * f , IRQQueue * q ) {\n unsigned int i ;\n for ( i = 0 ;\n i < ARRAY_SIZE ( q -> queue ) ;\n i ++ ) {\n unsigned long val ;\n val = qemu_get_be32 ( f ) ;\n # if LONG_MAX > 0x7FFFFFFF val <<= 32 ;\n val |= qemu_get_be32 ( f ) ;\n # endif q -> queue [ i ] = val ;\n }\n qemu_get_sbe32s ( f , & q -> next ) ;\n qemu_get_sbe32s ( f , & q -> priority ) ;\n }"}
{"idx": 12565, "target": 0, "func": "static void ctl_putuint ( const char * tag , u_long uval ) {\n register char * cp ;\n register const char * cq ;\n char buffer [ 200 ] ;\n cp = buffer ;\n cq = tag ;\n while ( * cq != '\\0' ) * cp ++ = * cq ++ ;\n * cp ++ = '=' ;\n INSIST ( ( cp - buffer ) < ( int ) sizeof ( buffer ) ) ;\n snprintf ( cp , sizeof ( buffer ) - ( cp - buffer ) , \"%lu\" , uval ) ;\n cp += strlen ( cp ) ;\n ctl_putdata ( buffer , ( unsigned ) ( cp - buffer ) , 0 ) ;\n }"}
{"idx": 12566, "target": 0, "func": "static void ImportBlackQuantum ( const Image * image , QuantumInfo * quantum_info , const MagickSizeType number_pixels , const unsigned char * magick_restrict p , Quantum * magick_restrict q , ExceptionInfo * exception ) {\n QuantumAny range ;\n register ssize_t x ;\n unsigned int pixel ;\n if ( image -> colorspace != CMYKColorspace ) {\n ( void ) ThrowMagickException ( exception , GetMagickModule ( ) , ImageError , \"ColorSeparatedImageRequired\" , \"`%s'\" , image -> filename ) ;\n return ;\n }\n switch ( quantum_info -> depth ) {\n case 8 : {\n unsigned char pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelBlack ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 16 : {\n unsigned short pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlack ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlack ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 32 : {\n unsigned int pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n float pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlack ( image , ClampToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlack ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 64 : {\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n double pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelBlack ( image , ClampToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n default : {\n range = GetQuantumRange ( quantum_info -> depth ) ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlack ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n }"}
{"idx": 12567, "target": 0, "func": "static int lzh_read_input ( struct kwajd_stream * lzh ) {\n int read ;\n if ( lzh -> input_end ) {\n lzh -> input_end += 8 ;\n lzh -> inbuf [ 0 ] = 0 ;\n read = 1 ;\n }\n else {\n read = lzh -> sys -> read ( lzh -> input , & lzh -> inbuf [ 0 ] , KWAJ_INPUT_SIZE ) ;\n if ( read < 0 ) return MSPACK_ERR_READ ;\n if ( read == 0 ) {\n lzh -> input_end = 8 ;\n lzh -> inbuf [ 0 ] = 0 ;\n read = 1 ;\n }\n }\n lzh -> i_ptr = & lzh -> inbuf [ 0 ] ;\n lzh -> i_end = & lzh -> inbuf [ read ] ;\n return MSPACK_ERR_OK ;\n }"}
{"idx": 12568, "target": 0, "func": "static int best_effort_strncat_to_utf16 ( struct archive_string * as16 , const void * _p , size_t length , struct archive_string_conv * sc , int bigendian ) {\n const char * s = ( const char * ) _p ;\n char * utf16 ;\n size_t remaining ;\n int ret ;\n ( void ) sc ;\n ret = 0 ;\n remaining = length ;\n if ( archive_string_ensure ( as16 , as16 -> length + ( length + 1 ) * 2 ) == NULL ) return ( - 1 ) ;\n utf16 = as16 -> s + as16 -> length ;\n while ( remaining -- ) {\n unsigned c = * s ++ ;\n if ( c > 127 ) {\n c = UNICODE_R_CHAR ;\n ret = - 1 ;\n }\n if ( bigendian ) archive_be16enc ( utf16 , c ) ;\n else archive_le16enc ( utf16 , c ) ;\n utf16 += 2 ;\n }\n as16 -> length = utf16 - as16 -> s ;\n as16 -> s [ as16 -> length ] = 0 ;\n as16 -> s [ as16 -> length + 1 ] = 0 ;\n return ( ret ) ;\n }"}
{"idx": 12569, "target": 0, "func": "int i2d_ ## name ( type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;\n int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DIRECTORYSTRING ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DISPLAYTEXT ) DECLARE_ASN1_FUNCTIONS ( ASN1_PRINTABLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_T61STRING )"}
{"idx": 12570, "target": 0, "func": "static void e1000e_set_psrctl ( E1000ECore * core , int index , uint32_t val ) {\n if ( ( val & E1000_PSRCTL_BSIZE0_MASK ) == 0 ) {\n hw_error ( \"e1000e: PSRCTL.BSIZE0 cannot be zero\" ) ;\n }\n if ( ( val & E1000_PSRCTL_BSIZE1_MASK ) == 0 ) {\n hw_error ( \"e1000e: PSRCTL.BSIZE1 cannot be zero\" ) ;\n }\n core -> mac [ PSRCTL ] = val ;\n }"}
{"idx": 12571, "target": 0, "func": "static cmsBool WriteSetOfCurves ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsTagTypeSignature Type , cmsStage * mpe ) {\n cmsUInt32Number i , n ;\n cmsTagTypeSignature CurrentType ;\n cmsToneCurve * * Curves ;\n n = cmsStageOutputChannels ( mpe ) ;\n Curves = _cmsStageGetPtrToCurveSet ( mpe ) ;\n for ( i = 0 ;\n i < n ;\n i ++ ) {\n CurrentType = Type ;\n if ( ( Curves [ i ] -> nSegments == 0 ) || ( ( Curves [ i ] -> nSegments == 2 ) && ( Curves [ i ] -> Segments [ 1 ] . Type == 0 ) ) ) CurrentType = cmsSigCurveType ;\n else if ( Curves [ i ] -> Segments [ 0 ] . Type < 0 ) CurrentType = cmsSigCurveType ;\n if ( ! _cmsWriteTypeBase ( io , CurrentType ) ) return FALSE ;\n switch ( CurrentType ) {\n case cmsSigCurveType : if ( ! Type_Curve_Write ( self , io , Curves [ i ] , 1 ) ) return FALSE ;\n break ;\n case cmsSigParametricCurveType : if ( ! Type_ParametricCurve_Write ( self , io , Curves [ i ] , 1 ) ) return FALSE ;\n break ;\n default : {\n char String [ 5 ] ;\n _cmsTagSignature2String ( String , ( cmsTagSignature ) Type ) ;\n cmsSignalError ( self -> ContextID , cmsERROR_UNKNOWN_EXTENSION , \"Unknown curve type '%s'\" , String ) ;\n }\n return FALSE ;\n }\n if ( ! _cmsWriteAlignment ( io ) ) return FALSE ;\n }\n return TRUE ;\n }"}
{"idx": 12572, "target": 0, "func": "static void cirrus_vga_write_sr ( CirrusVGAState * s , uint32_t val ) {\n switch ( s -> vga . sr_index ) {\n case 0x00 : case 0x01 : case 0x02 : case 0x03 : case 0x04 : s -> vga . sr [ s -> vga . sr_index ] = val & sr_mask [ s -> vga . sr_index ] ;\n if ( s -> vga . sr_index == 1 ) s -> vga . update_retrace_info ( & s -> vga ) ;\n break ;\n case 0x06 : val &= 0x17 ;\n if ( val == 0x12 ) {\n s -> vga . sr [ s -> vga . sr_index ] = 0x12 ;\n }\n else {\n s -> vga . sr [ s -> vga . sr_index ] = 0x0f ;\n }\n break ;\n case 0x10 : case 0x30 : case 0x50 : case 0x70 : case 0x90 : case 0xb0 : case 0xd0 : case 0xf0 : s -> vga . sr [ 0x10 ] = val ;\n s -> vga . hw_cursor_x = ( val << 3 ) | ( s -> vga . sr_index >> 5 ) ;\n break ;\n case 0x11 : case 0x31 : case 0x51 : case 0x71 : case 0x91 : case 0xb1 : case 0xd1 : case 0xf1 : s -> vga . sr [ 0x11 ] = val ;\n s -> vga . hw_cursor_y = ( val << 3 ) | ( s -> vga . sr_index >> 5 ) ;\n break ;\n case 0x07 : cirrus_update_memory_access ( s ) ;\n case 0x08 : case 0x09 : case 0x0a : case 0x0b : case 0x0c : case 0x0d : case 0x0e : case 0x0f : case 0x13 : case 0x14 : case 0x15 : case 0x16 : case 0x18 : case 0x19 : case 0x1a : case 0x1b : case 0x1c : case 0x1d : case 0x1e : case 0x1f : s -> vga . sr [ s -> vga . sr_index ] = val ;\n # ifdef DEBUG_CIRRUS printf ( \"cirrus: handled outport sr_index %02x, sr_value %02x\\n\" , s -> vga . sr_index , val ) ;\n # endif break ;\n case 0x12 : s -> vga . sr [ 0x12 ] = val ;\n s -> vga . force_shadow = ! ! ( val & CIRRUS_CURSOR_SHOW ) ;\n # ifdef DEBUG_CIRRUS printf ( \"cirrus: cursor ctl SR12=%02x (force shadow: %d)\\n\" , val , s -> vga . force_shadow ) ;\n # endif break ;\n case 0x17 : s -> vga . sr [ s -> vga . sr_index ] = ( s -> vga . sr [ s -> vga . sr_index ] & 0x38 ) | ( val & 0xc7 ) ;\n cirrus_update_memory_access ( s ) ;\n break ;\n default : # ifdef DEBUG_CIRRUS printf ( \"cirrus: outport sr_index %02x, sr_value %02x\\n\" , s -> vga . sr_index , val ) ;\n # endif break ;\n }\n }"}
{"idx": 12573, "target": 1, "func": "static int bfi_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n GetByteContext g ;\n int buf_size = avpkt -> size ;\n BFIContext * bfi = avctx -> priv_data ;\n uint8_t * dst = bfi -> dst ;\n uint8_t * src , * dst_offset , colour1 , colour2 ;\n uint8_t * frame_end = bfi -> dst + avctx -> width * avctx -> height ;\n uint32_t * pal ;\n int i , j , ret , height = avctx -> height ;\n if ( bfi -> frame . data [ 0 ] ) avctx -> release_buffer ( avctx , & bfi -> frame ) ;\n bfi -> frame . reference = 1 ;\n if ( ( ret = ff_get_buffer ( avctx , & bfi -> frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n bytestream2_init ( & g , avpkt -> data , buf_size ) ;\n if ( ! avctx -> frame_number ) {\n bfi -> frame . pict_type = AV_PICTURE_TYPE_I ;\n bfi -> frame . key_frame = 1 ;\n if ( avctx -> extradata_size > 768 ) {\n av_log ( NULL , AV_LOG_ERROR , \"Palette is too large.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n pal = ( uint32_t * ) bfi -> frame . data [ 1 ] ;\n for ( i = 0 ;\n i < avctx -> extradata_size / 3 ;\n i ++ ) {\n int shift = 16 ;\n * pal = 0 ;\n for ( j = 0 ;\n j < 3 ;\n j ++ , shift -= 8 ) * pal += ( ( avctx -> extradata [ i * 3 + j ] << 2 ) | ( avctx -> extradata [ i * 3 + j ] >> 4 ) ) << shift ;\n pal ++ ;\n }\n bfi -> frame . palette_has_changed = 1 ;\n }\n else {\n bfi -> frame . pict_type = AV_PICTURE_TYPE_P ;\n bfi -> frame . key_frame = 0 ;\n }\n bytestream2_skip ( & g , 4 ) ;\n while ( dst != frame_end ) {\n static const uint8_t lentab [ 4 ] = {\n 0 , 2 , 0 , 1 }\n ;\n unsigned int byte = bytestream2_get_byte ( & g ) , av_uninit ( offset ) ;\n unsigned int code = byte >> 6 ;\n unsigned int length = byte & ~ 0xC0 ;\n if ( ! bytestream2_get_bytes_left ( & g ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Input resolution larger than actual frame.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( length == 0 ) {\n if ( code == 1 ) {\n length = bytestream2_get_byte ( & g ) ;\n offset = bytestream2_get_le16 ( & g ) ;\n }\n else {\n length = bytestream2_get_le16 ( & g ) ;\n if ( code == 2 && length == 0 ) break ;\n }\n }\n else {\n if ( code == 1 ) offset = bytestream2_get_byte ( & g ) ;\n }\n if ( dst + ( length << lentab [ code ] ) > frame_end ) break ;\n switch ( code ) {\n case 0 : if ( length >= bytestream2_get_bytes_left ( & g ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Frame larger than buffer.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n bytestream2_get_buffer ( & g , dst , length ) ;\n dst += length ;\n break ;\n case 1 : dst_offset = dst - offset ;\n length *= 4 ;\n if ( dst_offset < bfi -> dst ) break ;\n while ( length -- ) * dst ++ = * dst_offset ++ ;\n break ;\n case 2 : dst += length ;\n break ;\n case 3 : colour1 = bytestream2_get_byte ( & g ) ;\n colour2 = bytestream2_get_byte ( & g ) ;\n while ( length -- ) {\n * dst ++ = colour1 ;\n * dst ++ = colour2 ;\n }\n break ;\n }\n }\n src = bfi -> dst ;\n dst = bfi -> frame . data [ 0 ] ;\n while ( height -- ) {\n memcpy ( dst , src , avctx -> width ) ;\n src += avctx -> width ;\n dst += bfi -> frame . linesize [ 0 ] ;\n }\n * got_frame = 1 ;\n * ( AVFrame * ) data = bfi -> frame ;\n return buf_size ;\n }"}
{"idx": 12574, "target": 0, "func": "static void exsltMathLowestFunction ( xmlXPathParserContextPtr ctxt , int nargs ) {\n xmlNodeSetPtr ns , ret ;\n void * user = NULL ;\n if ( nargs != 1 ) {\n xmlXPathSetArityError ( ctxt ) ;\n return ;\n }\n if ( ( ctxt -> value != NULL ) && ( ctxt -> value -> boolval != 0 ) ) {\n user = ctxt -> value -> user ;\n ctxt -> value -> boolval = 0 ;\n ctxt -> value -> user = NULL ;\n }\n ns = xmlXPathPopNodeSet ( ctxt ) ;\n if ( xmlXPathCheckError ( ctxt ) ) return ;\n ret = exsltMathLowest ( ns ) ;\n xmlXPathFreeNodeSet ( ns ) ;\n if ( user != NULL ) xmlFreeNodeList ( ( xmlNodePtr ) user ) ;\n xmlXPathReturnNodeSet ( ctxt , ret ) ;\n }"}
{"idx": 12575, "target": 1, "func": "hb_face_t * hb_face_create ( hb_blob_t * blob , unsigned int index ) {\n hb_face_t * face ;\n if ( unlikely ( ! blob || ! hb_blob_get_length ( blob ) ) ) return hb_face_get_empty ( ) ;\n hb_face_for_data_closure_t * closure = _hb_face_for_data_closure_create ( OT : : Sanitizer < OT : : OpenTypeFontFile > : : sanitize ( hb_blob_reference ( blob ) ) , index ) ;\n if ( unlikely ( ! closure ) ) return hb_face_get_empty ( ) ;\n face = hb_face_create_for_tables ( _hb_face_for_data_reference_table , closure , ( hb_destroy_func_t ) _hb_face_for_data_closure_destroy ) ;\n hb_face_set_index ( face , index ) ;\n return face ;\n }"}
{"idx": 12576, "target": 0, "func": "static void get_rela_elf32 ( Dwarf_Small * data , unsigned int i , int endianness , int machine , struct Dwarf_Elf_Rela * relap ) {\n Elf32_Rela * relp = ( Elf32_Rela * ) ( data + ( i * sizeof ( Elf32_Rela ) ) ) ;\n relap -> r_offset = relp -> r_offset ;\n relap -> r_type = ELF32_R_TYPE ( relp -> r_info ) ;\n relap -> r_symidx = ELF32_R_SYM ( relp -> r_info ) ;\n relap -> r_addend = relp -> r_addend ;\n }"}
{"idx": 12577, "target": 0, "func": "proto_item * proto_tree_add_ether_format ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , const guint8 * value , const char * format , ... ) {\n proto_item * pi ;\n va_list ap ;\n pi = proto_tree_add_ether ( tree , hfindex , tvb , start , length , value ) ;\n if ( pi != tree ) {\n TRY_TO_FAKE_THIS_REPR ( pi ) ;\n va_start ( ap , format ) ;\n proto_tree_set_representation ( pi , format , ap ) ;\n va_end ( ap ) ;\n }\n return pi ;\n }"}
{"idx": 12578, "target": 0, "func": "static void get_dav_remote_heads ( void ) {\n remote_ls ( \"refs/\" , ( PROCESS_FILES | PROCESS_DIRS | RECURSIVE ) , process_ls_ref , NULL ) ;\n }"}
{"idx": 12579, "target": 0, "func": "static void er_add_slice ( H264Context * h , int startx , int starty , int endx , int endy , int status ) {\n if ( CONFIG_ERROR_RESILIENCE ) {\n ERContext * er = & h -> er ;\n ff_er_add_slice ( er , startx , starty , endx , endy , status ) ;\n }\n }"}
{"idx": 12580, "target": 0, "func": "int evdns_server_request_add_cname_reply ( struct evdns_server_request * req , const char * name , const char * cname , int ttl ) {\n return evdns_server_request_add_reply ( req , EVDNS_ANSWER_SECTION , name , TYPE_CNAME , CLASS_INET , ttl , - 1 , 1 , cname ) ;\n }"}
{"idx": 12581, "target": 1, "func": "static int mace_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n int16_t * * samples ;\n MACEContext * ctx = avctx -> priv_data ;\n int i , j , k , l , ret ;\n int is_mace3 = ( avctx -> codec_id == AV_CODEC_ID_MACE3 ) ;\n frame -> nb_samples = 3 * ( buf_size << ( 1 - is_mace3 ) ) / avctx -> channels ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n samples = ( int16_t * * ) frame -> extended_data ;\n for ( i = 0 ;\n i < avctx -> channels ;\n i ++ ) {\n int16_t * output = samples [ i ] ;\n for ( j = 0 ;\n j < buf_size / ( avctx -> channels << is_mace3 ) ;\n j ++ ) for ( k = 0 ;\n k < ( 1 << is_mace3 ) ;\n k ++ ) {\n uint8_t pkt = buf [ ( i << is_mace3 ) + ( j * avctx -> channels << is_mace3 ) + k ] ;\n uint8_t val [ 2 ] [ 3 ] = {\n {\n pkt >> 5 , ( pkt >> 3 ) & 3 , pkt & 7 }\n , {\n pkt & 7 , ( pkt >> 3 ) & 3 , pkt >> 5 }\n }\n ;\n for ( l = 0 ;\n l < 3 ;\n l ++ ) {\n if ( is_mace3 ) chomp3 ( & ctx -> chd [ i ] , output , val [ 1 ] [ l ] , l ) ;\n else chomp6 ( & ctx -> chd [ i ] , output , val [ 0 ] [ l ] , l ) ;\n output += 1 << ( 1 - is_mace3 ) ;\n }\n }\n }\n * got_frame_ptr = 1 ;\n return buf_size ;\n }"}
{"idx": 12582, "target": 0, "func": "PyObject * PyString_AsDecodedObject ( PyObject * str , const char * encoding , const char * errors ) {\n PyObject * v ;\n if ( ! PyString_Check ( str ) ) {\n PyErr_BadArgument ( ) ;\n goto onError ;\n }\n if ( encoding == NULL ) {\n # ifdef Py_USING_UNICODE encoding = PyUnicode_GetDefaultEncoding ( ) ;\n # else PyErr_SetString ( PyExc_ValueError , \"no encoding specified\" ) ;\n goto onError ;\n # endif }\n v = _PyCodec_DecodeText ( str , encoding , errors ) ;\n if ( v == NULL ) goto onError ;\n return v ;\n onError : return NULL ;\n }"}
{"idx": 12583, "target": 0, "func": "static int gifPutWord ( int w , gdIOCtx * out ) {\n gdPutC ( w & 0xFF , out ) ;\n gdPutC ( ( w >> 8 ) & 0xFF , out ) ;\n return 0 ;\n }"}
{"idx": 12584, "target": 0, "func": "int vp9_copy_reference_enc ( VP9_COMP * cpi , VP9_REFFRAME ref_frame_flag , YV12_BUFFER_CONFIG * sd ) {\n YV12_BUFFER_CONFIG * cfg = get_vp9_ref_frame_buffer ( cpi , ref_frame_flag ) ;\n if ( cfg ) {\n vp8_yv12_copy_frame ( cfg , sd ) ;\n return 0 ;\n }\n else {\n return - 1 ;\n }\n }"}
{"idx": 12585, "target": 0, "func": "static int dissect_h245_UserInputIndication ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_UserInputIndication , UserInputIndication_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 12586, "target": 0, "func": "static void _slurm_rpc_takeover ( slurm_msg_t * msg ) {\n int error_code = SLURM_SUCCESS ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n if ( ! validate_super_user ( uid ) ) {\n error ( \"Security violation, TAKEOVER RPC from uid=%d\" , uid ) ;\n error_code = ESLURM_USER_ID_MISSING ;\n }\n else {\n info ( \"Performing RPC: REQUEST_TAKEOVER : \" \"already in controller mode - skipping\" ) ;\n }\n slurm_send_rc_msg ( msg , error_code ) ;\n }"}
{"idx": 12587, "target": 0, "func": "static int dissect_h245_INTEGER_1_255 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 255U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 12588, "target": 0, "func": "static VALUE ossl_x509name_to_der ( VALUE self ) {\n X509_NAME * name ;\n VALUE str ;\n long len ;\n unsigned char * p ;\n GetX509Name ( self , name ) ;\n if ( ( len = i2d_X509_NAME ( name , NULL ) ) <= 0 ) ossl_raise ( eX509NameError , NULL ) ;\n str = rb_str_new ( 0 , len ) ;\n p = ( unsigned char * ) RSTRING_PTR ( str ) ;\n if ( i2d_X509_NAME ( name , & p ) <= 0 ) ossl_raise ( eX509NameError , NULL ) ;\n ossl_str_adjust ( str , p ) ;\n return str ;\n }"}
{"idx": 12589, "target": 0, "func": "int qemuMonitorJSONGetBlockIoThrottle ( qemuMonitorPtr mon , const char * device , virDomainBlockIoTuneInfoPtr reply ) {\n int ret = - 1 ;\n virJSONValuePtr cmd = NULL ;\n virJSONValuePtr result = NULL ;\n cmd = qemuMonitorJSONMakeCommand ( \"query-block\" , NULL ) ;\n if ( ! cmd ) {\n return - 1 ;\n }\n ret = qemuMonitorJSONCommand ( mon , cmd , & result ) ;\n if ( ret == 0 && virJSONValueObjectHasKey ( result , \"error\" ) ) {\n if ( qemuMonitorJSONHasError ( result , \"DeviceNotActive\" ) ) qemuReportError ( VIR_ERR_OPERATION_INVALID , _ ( \"No active operation on device: %s\" ) , device ) ;\n else if ( qemuMonitorJSONHasError ( result , \"NotSupported\" ) ) qemuReportError ( VIR_ERR_OPERATION_INVALID , _ ( \"Operation is not supported for device: %s\" ) , device ) ;\n else qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"Unexpected error\" ) ) ;\n ret = - 1 ;\n }\n if ( ret == 0 ) ret = qemuMonitorJSONBlockIoThrottleInfo ( result , device , reply ) ;\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( result ) ;\n return ret ;\n }"}
{"idx": 12590, "target": 0, "func": "guint16 de_rej_cause ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint8 oct ;\n const gchar * str ;\n oct = tvb_get_guint8 ( tvb , offset ) ;\n str = try_rval_to_str ( oct , gsm_a_dtap_rej_cause_vals ) ;\n if ( ! str ) {\n if ( is_uplink == IS_UPLINK_TRUE ) str = \"Protocol error, unspecified\" ;\n else str = \"Service option temporarily out of order\" ;\n }\n proto_tree_add_uint_format_value ( tree , hf_gsm_a_dtap_rej_cause , tvb , offset , 1 , oct , \"%s (%u)\" , str , oct ) ;\n return ( 1 ) ;\n }"}
{"idx": 12591, "target": 0, "func": "void purple_chat_leave ( struct groupchat * gc ) {\n PurpleConversation * pc = gc -> data ;\n purple_conversation_destroy ( pc ) ;\n }"}
{"idx": 12592, "target": 1, "func": "static void free_pred_buffer ( PRED_BUFFER * p ) {\n if ( p != NULL ) p -> in_use = 0 ;\n }"}
{"idx": 12593, "target": 0, "func": "static int dissect_h245_T_aal1ViaGateway ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_aal1ViaGateway , T_aal1ViaGateway_sequence ) ;\n return offset ;\n }"}
{"idx": 12594, "target": 1, "func": "void vp9_swap_mi_and_prev_mi ( VP9_COMMON * cm ) {\n const int tmp = cm -> mi_idx ;\n cm -> mi_idx = cm -> prev_mi_idx ;\n cm -> prev_mi_idx = tmp ;\n cm -> mip = cm -> mip_array [ cm -> mi_idx ] ;\n cm -> prev_mip = cm -> mip_array [ cm -> prev_mi_idx ] ;\n cm -> mi_grid_base = cm -> mi_grid_base_array [ cm -> mi_idx ] ;\n cm -> prev_mi_grid_base = cm -> mi_grid_base_array [ cm -> prev_mi_idx ] ;\n cm -> mi = cm -> mip + cm -> mi_stride + 1 ;\n cm -> prev_mi = cm -> prev_mip + cm -> mi_stride + 1 ;\n cm -> mi_grid_visible = cm -> mi_grid_base + cm -> mi_stride + 1 ;\n cm -> prev_mi_grid_visible = cm -> prev_mi_grid_base + cm -> mi_stride + 1 ;\n }"}
{"idx": 12595, "target": 0, "func": "static void dct_unquantize_mpeg1_intra_c ( MpegEncContext * s , int16_t * block , int n , int qscale ) {\n int i , level , nCoeffs ;\n const uint16_t * quant_matrix ;\n nCoeffs = s -> block_last_index [ n ] ;\n if ( n < 4 ) block [ 0 ] = block [ 0 ] * s -> y_dc_scale ;\n else block [ 0 ] = block [ 0 ] * s -> c_dc_scale ;\n quant_matrix = s -> intra_matrix ;\n for ( i = 1 ;\n i <= nCoeffs ;\n i ++ ) {\n int j = s -> intra_scantable . permutated [ i ] ;\n level = block [ j ] ;\n if ( level ) {\n if ( level < 0 ) {\n level = - level ;\n level = ( int ) ( level * qscale * quant_matrix [ j ] ) >> 3 ;\n level = ( level - 1 ) | 1 ;\n level = - level ;\n }\n else {\n level = ( int ) ( level * qscale * quant_matrix [ j ] ) >> 3 ;\n level = ( level - 1 ) | 1 ;\n }\n block [ j ] = level ;\n }\n }\n }"}
{"idx": 12596, "target": 0, "func": "static void makesearch ( struct vars * v , struct nfa * nfa ) {\n struct arc * a ;\n struct arc * b ;\n struct state * pre = nfa -> pre ;\n struct state * s ;\n struct state * s2 ;\n struct state * slist ;\n for ( a = pre -> outs ;\n a != NULL ;\n a = a -> outchain ) {\n assert ( a -> type == PLAIN ) ;\n if ( a -> co != nfa -> bos [ 0 ] && a -> co != nfa -> bos [ 1 ] ) break ;\n }\n if ( a != NULL ) {\n rainbow ( nfa , v -> cm , PLAIN , COLORLESS , pre , pre ) ;\n newarc ( nfa , PLAIN , nfa -> bos [ 0 ] , pre , pre ) ;\n newarc ( nfa , PLAIN , nfa -> bos [ 1 ] , pre , pre ) ;\n }\n slist = NULL ;\n for ( a = pre -> outs ;\n a != NULL ;\n a = a -> outchain ) {\n s = a -> to ;\n for ( b = s -> ins ;\n b != NULL ;\n b = b -> inchain ) {\n if ( b -> from != pre ) break ;\n }\n if ( b != NULL && s -> tmp == NULL ) {\n s -> tmp = ( slist != NULL ) ? slist : s ;\n slist = s ;\n }\n }\n for ( s = slist ;\n s != NULL ;\n s = s2 ) {\n s2 = newstate ( nfa ) ;\n NOERR ( ) ;\n copyouts ( nfa , s , s2 ) ;\n NOERR ( ) ;\n for ( a = s -> ins ;\n a != NULL ;\n a = b ) {\n b = a -> inchain ;\n if ( a -> from != pre ) {\n cparc ( nfa , a , a -> from , s2 ) ;\n freearc ( nfa , a ) ;\n }\n }\n s2 = ( s -> tmp != s ) ? s -> tmp : NULL ;\n s -> tmp = NULL ;\n }\n }"}
{"idx": 12597, "target": 0, "func": "static void _hb_ ## name ## _destroy ( hb_ ## name ## _t * l ) {\n free ( l ) ;\n }\n HB_DEFINE_BOXED_TYPE ( name , _hb_ ## name ## _reference , _hb_ ## name ## _destroy ) ;\n HB_DEFINE_OBJECT_TYPE ( buffer ) HB_DEFINE_OBJECT_TYPE ( blob ) HB_DEFINE_OBJECT_TYPE ( face ) HB_DEFINE_OBJECT_TYPE ( font ) HB_DEFINE_OBJECT_TYPE ( font_funcs ) HB_DEFINE_OBJECT_TYPE ( set ) HB_DEFINE_OBJECT_TYPE ( shape_plan ) HB_DEFINE_OBJECT_TYPE ( unicode_funcs ) HB_DEFINE_VALUE_TYPE ( feature ) HB_DEFINE_VALUE_TYPE ( glyph_info ) HB_DEFINE_VALUE_TYPE ( glyph_position ) HB_DEFINE_VALUE_TYPE ( segment_properties )"}
{"idx": 12598, "target": 0, "func": "void PSFontInterpretPS ( FILE * ps , struct charprocs * cp , char * * encoding ) {\n char tokbuf [ 100 ] ;\n int tok , i , j ;\n real dval ;\n SplineChar * sc ;\n EntityChar dummy ;\n RefChar * p , * ref , * next ;\n IO wrapper ;\n wrapper . top = NULL ;\n wrapper . advance_width = UNDEFINED_WIDTH ;\n pushio ( & wrapper , ps , NULL , 0 ) ;\n while ( ( tok = nextpstoken ( & wrapper , & dval , tokbuf , sizeof ( tokbuf ) ) ) != pt_eof && tok != pt_end ) {\n if ( tok == pt_namelit ) {\n if ( cp -> next >= cp -> cnt ) {\n ++ cp -> cnt ;\n cp -> keys = realloc ( cp -> keys , cp -> cnt * sizeof ( char * ) ) ;\n cp -> values = realloc ( cp -> values , cp -> cnt * sizeof ( char * ) ) ;\n }\n if ( cp -> next < cp -> cnt ) {\n sc = SplineCharCreate ( 2 ) ;\n cp -> keys [ cp -> next ] = copy ( tokbuf ) ;\n cp -> values [ cp -> next ++ ] = sc ;\n sc -> name = copy ( tokbuf ) ;\n SCInterpretPS ( ps , sc ) ;\n ff_progress_next ( ) ;\n }\n else {\n memset ( & dummy , 0 , sizeof ( dummy ) ) ;\n dummy . fromtype3 = true ;\n InterpretPS ( ps , NULL , & dummy , NULL ) ;\n }\n }\n }\n free ( wrapper . top ) ;\n for ( i = 0 ;\n i < cp -> next ;\n ++ i ) {\n for ( p = NULL , ref = cp -> values [ i ] -> layers [ ly_fore ] . refs ;\n ref != NULL ;\n ref = next ) {\n char * refname = ( char * ) ( ref -> sc ) ;\n next = ref -> next ;\n if ( ref -> sc == NULL ) refname = encoding [ ref -> orig_pos ] ;\n for ( j = 0 ;\n j < cp -> next ;\n ++ j ) if ( strcmp ( cp -> keys [ j ] , refname ) == 0 ) break ;\n free ( ref -> sc ) ;\n if ( j != cp -> next ) {\n ref -> sc = cp -> values [ j ] ;\n SCMakeDependent ( cp -> values [ i ] , ref -> sc ) ;\n ref -> adobe_enc = getAdobeEnc ( ref -> sc -> name ) ;\n ref -> checked = true ;\n p = ref ;\n }\n else {\n if ( p == NULL ) cp -> values [ i ] -> layers [ ly_fore ] . refs = next ;\n else p -> next = next ;\n ref -> next = NULL ;\n RefCharFree ( ref ) ;\n }\n }\n }\n }"}
{"idx": 12599, "target": 1, "func": "static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 12600, "target": 0, "func": "char * re_eprint ( int err ) {\n static char epbuf [ 100 ] ;\n size_t len __attribute__ ( ( unused ) ) = my_regerror ( REG_ITOA | err , ( my_regex_t * ) NULL , epbuf , sizeof ( epbuf ) ) ;\n assert ( len <= sizeof ( epbuf ) ) ;\n return ( epbuf ) ;\n }"}
{"idx": 12601, "target": 0, "func": "void TSMimeParserClear ( TSMimeParser parser ) {\n sdk_assert ( sdk_sanity_check_mime_parser ( parser ) == TS_SUCCESS ) ;\n mime_parser_clear ( ( MIMEParser * ) parser ) ;\n }"}
{"idx": 12602, "target": 0, "func": "static void _evdns_log ( int warn , const char * fmt , ... ) {\n va_list args ;\n static char buf [ 512 ] ;\n if ( ! evdns_log_fn ) return ;\n va_start ( args , fmt ) ;\n evutil_vsnprintf ( buf , sizeof ( buf ) , fmt , args ) ;\n buf [ sizeof ( buf ) - 1 ] = '\\0' ;\n evdns_log_fn ( warn , buf ) ;\n va_end ( args ) ;\n }"}
{"idx": 12603, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( DownloadNotificationTest , InterruptDownloadAfterClosingNotification ) {\n CreateDownload ( ) ;\n CloseNotification ( ) ;\n std : : vector < download : : DownloadItem * > downloads ;\n content : : DownloadManager * download_manager = GetDownloadManager ( browser ( ) ) ;\n download_manager -> GetAllDownloads ( & downloads ) ;\n EXPECT_EQ ( 1u , downloads . size ( ) ) ;\n EXPECT_EQ ( download : : DownloadItem : : IN_PROGRESS , downloads [ 0 ] -> GetState ( ) ) ;\n content : : DownloadTestObserverInterrupted download_terminal_observer ( download_manager , 1u , content : : DownloadTestObserver : : ON_DANGEROUS_DOWNLOAD_FAIL ) ;\n InterruptTheDownload ( ) ;\n EXPECT_EQ ( 1u , GetDownloadNotifications ( ) . size ( ) ) ;\n ASSERT_TRUE ( notification ( ) ) ;\n }"}
{"idx": 12604, "target": 0, "func": "static VALUE decode_eoc ( unsigned char * der , long length ) {\n if ( length != 2 || ! ( der [ 0 ] == 0x00 && der [ 1 ] == 0x00 ) ) ossl_raise ( eASN1Error , NULL ) ;\n return rb_str_new ( \"\" , 0 ) ;\n }"}
{"idx": 12605, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n ZmbvContext * const c = avctx -> priv_data ;\n int zret = Z_OK ;\n int len = buf_size ;\n int hi_ver , lo_ver , ret ;\n uint8_t * tmp ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n c -> flags = buf [ 0 ] ;\n buf ++ ;\n len -- ;\n if ( c -> flags & ZMBV_KEYFRAME ) {\n hi_ver = buf [ 0 ] ;\n lo_ver = buf [ 1 ] ;\n c -> comp = buf [ 2 ] ;\n c -> fmt = buf [ 3 ] ;\n c -> bw = buf [ 4 ] ;\n c -> bh = buf [ 5 ] ;\n c -> decode_intra = NULL ;\n c -> decode_xor = NULL ;\n buf += 6 ;\n len -= 6 ;\n av_log ( avctx , AV_LOG_DEBUG , \"Flags=%X ver=%i.%i comp=%i fmt=%i blk=%ix%i\\n\" , c -> flags , hi_ver , lo_ver , c -> comp , c -> fmt , c -> bw , c -> bh ) ;\n if ( hi_ver != 0 || lo_ver != 1 ) {\n av_log_ask_for_sample ( avctx , \"Unsupported version %i.%i\\n\" , hi_ver , lo_ver ) ;\n return AVERROR_PATCHWELCOME ;\n }\n if ( c -> bw == 0 || c -> bh == 0 ) {\n av_log_ask_for_sample ( avctx , \"Unsupported block size %ix%i\\n\" , c -> bw , c -> bh ) ;\n return AVERROR_PATCHWELCOME ;\n }\n if ( c -> comp != 0 && c -> comp != 1 ) {\n av_log_ask_for_sample ( avctx , \"Unsupported compression type %i\\n\" , c -> comp ) ;\n return AVERROR_PATCHWELCOME ;\n }\n switch ( c -> fmt ) {\n case ZMBV_FMT_8BPP : c -> bpp = 8 ;\n c -> decode_intra = zmbv_decode_intra ;\n c -> decode_xor = zmbv_decode_xor_8 ;\n break ;\n case ZMBV_FMT_15BPP : case ZMBV_FMT_16BPP : c -> bpp = 16 ;\n c -> decode_intra = zmbv_decode_intra ;\n c -> decode_xor = zmbv_decode_xor_16 ;\n break ;\n # ifdef ZMBV_ENABLE_24BPP case ZMBV_FMT_24BPP : c -> bpp = 24 ;\n c -> decode_intra = zmbv_decode_intra ;\n c -> decode_xor = zmbv_decode_xor_24 ;\n break ;\n # endif case ZMBV_FMT_32BPP : c -> bpp = 32 ;\n c -> decode_intra = zmbv_decode_intra ;\n c -> decode_xor = zmbv_decode_xor_32 ;\n break ;\n default : c -> decode_intra = NULL ;\n c -> decode_xor = NULL ;\n av_log_ask_for_sample ( avctx , \"Unsupported (for now) format %i\\n\" , c -> fmt ) ;\n return AVERROR_PATCHWELCOME ;\n }\n zret = inflateReset ( & c -> zstream ) ;\n if ( zret != Z_OK ) {\n av_log ( avctx , AV_LOG_ERROR , \"Inflate reset error: %d\\n\" , zret ) ;\n return AVERROR_UNKNOWN ;\n }\n tmp = av_realloc ( c -> cur , avctx -> width * avctx -> height * ( c -> bpp / 8 ) ) ;\n if ( ! tmp ) return AVERROR ( ENOMEM ) ;\n c -> cur = tmp ;\n tmp = av_realloc ( c -> prev , avctx -> width * avctx -> height * ( c -> bpp / 8 ) ) ;\n if ( ! tmp ) return AVERROR ( ENOMEM ) ;\n c -> prev = tmp ;\n c -> bx = ( c -> width + c -> bw - 1 ) / c -> bw ;\n c -> by = ( c -> height + c -> bh - 1 ) / c -> bh ;\n }\n if ( c -> decode_intra == NULL ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error! Got no format or no keyframe!\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( c -> comp == 0 ) {\n memcpy ( c -> decomp_buf , buf , len ) ;\n c -> decomp_size = 1 ;\n }\n else {\n c -> zstream . total_in = c -> zstream . total_out = 0 ;\n c -> zstream . next_in = buf ;\n c -> zstream . avail_in = len ;\n c -> zstream . next_out = c -> decomp_buf ;\n c -> zstream . avail_out = c -> decomp_size ;\n zret = inflate ( & c -> zstream , Z_SYNC_FLUSH ) ;\n if ( zret != Z_OK && zret != Z_STREAM_END ) {\n av_log ( avctx , AV_LOG_ERROR , \"inflate error %d\\n\" , zret ) ;\n return AVERROR_INVALIDDATA ;\n }\n c -> decomp_len = c -> zstream . total_out ;\n }\n if ( c -> flags & ZMBV_KEYFRAME ) {\n frame -> key_frame = 1 ;\n frame -> pict_type = AV_PICTURE_TYPE_I ;\n c -> decode_intra ( c ) ;\n }\n else {\n frame -> key_frame = 0 ;\n frame -> pict_type = AV_PICTURE_TYPE_P ;\n if ( c -> decomp_len ) c -> decode_xor ( c ) ;\n }\n {\n uint8_t * out , * src ;\n int i , j ;\n out = frame -> data [ 0 ] ;\n src = c -> cur ;\n switch ( c -> fmt ) {\n case ZMBV_FMT_8BPP : for ( j = 0 ;\n j < c -> height ;\n j ++ ) {\n for ( i = 0 ;\n i < c -> width ;\n i ++ ) {\n out [ i * 3 + 0 ] = c -> pal [ ( * src ) * 3 + 0 ] ;\n out [ i * 3 + 1 ] = c -> pal [ ( * src ) * 3 + 1 ] ;\n out [ i * 3 + 2 ] = c -> pal [ ( * src ) * 3 + 2 ] ;\n src ++ ;\n }\n out += frame -> linesize [ 0 ] ;\n }\n break ;\n case ZMBV_FMT_15BPP : for ( j = 0 ;\n j < c -> height ;\n j ++ ) {\n for ( i = 0 ;\n i < c -> width ;\n i ++ ) {\n uint16_t tmp = AV_RL16 ( src ) ;\n src += 2 ;\n out [ i * 3 + 0 ] = ( tmp & 0x7C00 ) >> 7 ;\n out [ i * 3 + 1 ] = ( tmp & 0x03E0 ) >> 2 ;\n out [ i * 3 + 2 ] = ( tmp & 0x001F ) << 3 ;\n }\n out += frame -> linesize [ 0 ] ;\n }\n break ;\n case ZMBV_FMT_16BPP : for ( j = 0 ;\n j < c -> height ;\n j ++ ) {\n for ( i = 0 ;\n i < c -> width ;\n i ++ ) {\n uint16_t tmp = AV_RL16 ( src ) ;\n src += 2 ;\n out [ i * 3 + 0 ] = ( tmp & 0xF800 ) >> 8 ;\n out [ i * 3 + 1 ] = ( tmp & 0x07E0 ) >> 3 ;\n out [ i * 3 + 2 ] = ( tmp & 0x001F ) << 3 ;\n }\n out += frame -> linesize [ 0 ] ;\n }\n break ;\n # ifdef ZMBV_ENABLE_24BPP case ZMBV_FMT_24BPP : for ( j = 0 ;\n j < c -> height ;\n j ++ ) {\n memcpy ( out , src , c -> width * 3 ) ;\n src += c -> width * 3 ;\n out += frame -> linesize [ 0 ] ;\n }\n break ;\n # endif case ZMBV_FMT_32BPP : for ( j = 0 ;\n j < c -> height ;\n j ++ ) {\n for ( i = 0 ;\n i < c -> width ;\n i ++ ) {\n uint32_t tmp = AV_RL32 ( src ) ;\n src += 4 ;\n AV_WB24 ( out + ( i * 3 ) , tmp ) ;\n }\n out += frame -> linesize [ 0 ] ;\n }\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"Cannot handle format %i\\n\" , c -> fmt ) ;\n }\n FFSWAP ( uint8_t * , c -> cur , c -> prev ) ;\n }\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 12606, "target": 1, "func": "static uint64_t pchip_read ( void * opaque , hwaddr addr , unsigned size ) {\n TyphoonState * s = opaque ;\n CPUState * cs ;\n uint64_t ret = 0 ;\n if ( addr & 4 ) {\n return s -> latch_tmp ;\n }\n switch ( addr ) {\n case 0x0000 : ret = s -> pchip . win [ 0 ] . base_addr ;\n break ;\n case 0x0040 : ret = s -> pchip . win [ 1 ] . base_addr ;\n break ;\n case 0x0080 : ret = s -> pchip . win [ 2 ] . base_addr ;\n break ;\n case 0x00c0 : ret = s -> pchip . win [ 3 ] . base_addr ;\n break ;\n case 0x0100 : ret = s -> pchip . win [ 0 ] . mask ;\n break ;\n case 0x0140 : ret = s -> pchip . win [ 1 ] . mask ;\n break ;\n case 0x0180 : ret = s -> pchip . win [ 2 ] . mask ;\n break ;\n case 0x01c0 : ret = s -> pchip . win [ 3 ] . mask ;\n break ;\n case 0x0200 : ret = ( uint64_t ) s -> pchip . win [ 0 ] . translated_base_pfn << 10 ;\n break ;\n case 0x0240 : ret = ( uint64_t ) s -> pchip . win [ 1 ] . translated_base_pfn << 10 ;\n break ;\n case 0x0280 : ret = ( uint64_t ) s -> pchip . win [ 2 ] . translated_base_pfn << 10 ;\n break ;\n case 0x02c0 : ret = ( uint64_t ) s -> pchip . win [ 3 ] . translated_base_pfn << 10 ;\n break ;\n case 0x0300 : ret = s -> pchip . ctl ;\n break ;\n case 0x0340 : break ;\n case 0x03c0 : break ;\n case 0x0400 : break ;\n case 0x0440 : break ;\n case 0x0480 : break ;\n case 0x04c0 : break ;\n case 0x0500 : case 0x0540 : case 0x0800 : break ;\n default : cs = CPU ( alpha_env_get_cpu ( cpu_single_env ) ) ;\n cpu_unassigned_access ( cs , addr , false , false , 0 , size ) ;\n return - 1 ;\n }\n s -> latch_tmp = ret >> 32 ;\n return ret ;\n }"}
{"idx": 12607, "target": 0, "func": "static int load_input_picture ( MpegEncContext * s , const AVFrame * pic_arg ) {\n Picture * pic = NULL ;\n int64_t pts ;\n int i , display_picture_number = 0 , ret ;\n const int encoding_delay = s -> max_b_frames ? s -> max_b_frames : ( s -> low_delay ? 0 : 1 ) ;\n int direct = 1 ;\n if ( pic_arg ) {\n pts = pic_arg -> pts ;\n display_picture_number = s -> input_picture_number ++ ;\n if ( pts != AV_NOPTS_VALUE ) {\n if ( s -> user_specified_pts != AV_NOPTS_VALUE ) {\n int64_t time = pts ;\n int64_t last = s -> user_specified_pts ;\n if ( time <= last ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Error, Invalid timestamp=%\" PRId64 \", \" \"last=%\" PRId64 \"\\n\" , pts , s -> user_specified_pts ) ;\n return - 1 ;\n }\n if ( ! s -> low_delay && display_picture_number == 1 ) s -> dts_delta = time - last ;\n }\n s -> user_specified_pts = pts ;\n }\n else {\n if ( s -> user_specified_pts != AV_NOPTS_VALUE ) {\n s -> user_specified_pts = pts = s -> user_specified_pts + 1 ;\n av_log ( s -> avctx , AV_LOG_INFO , \"Warning: AVFrame.pts=? trying to guess (%\" PRId64 \")\\n\" , pts ) ;\n }\n else {\n pts = display_picture_number ;\n }\n }\n }\n if ( pic_arg ) {\n if ( ! pic_arg -> buf [ 0 ] ) ;\n direct = 0 ;\n if ( pic_arg -> linesize [ 0 ] != s -> linesize ) direct = 0 ;\n if ( pic_arg -> linesize [ 1 ] != s -> uvlinesize ) direct = 0 ;\n if ( pic_arg -> linesize [ 2 ] != s -> uvlinesize ) direct = 0 ;\n av_dlog ( s -> avctx , \"%d %d %d %d\\n\" , pic_arg -> linesize [ 0 ] , pic_arg -> linesize [ 1 ] , s -> linesize , s -> uvlinesize ) ;\n if ( direct ) {\n i = ff_find_unused_picture ( s , 1 ) ;\n if ( i < 0 ) return i ;\n pic = & s -> picture [ i ] ;\n pic -> reference = 3 ;\n if ( ( ret = av_frame_ref ( & pic -> f , pic_arg ) ) < 0 ) return ret ;\n if ( ff_alloc_picture ( s , pic , 1 ) < 0 ) {\n return - 1 ;\n }\n }\n else {\n i = ff_find_unused_picture ( s , 0 ) ;\n if ( i < 0 ) return i ;\n pic = & s -> picture [ i ] ;\n pic -> reference = 3 ;\n if ( ff_alloc_picture ( s , pic , 0 ) < 0 ) {\n return - 1 ;\n }\n if ( pic -> f . data [ 0 ] + INPLACE_OFFSET == pic_arg -> data [ 0 ] && pic -> f . data [ 1 ] + INPLACE_OFFSET == pic_arg -> data [ 1 ] && pic -> f . data [ 2 ] + INPLACE_OFFSET == pic_arg -> data [ 2 ] ) {\n }\n else {\n int h_chroma_shift , v_chroma_shift ;\n av_pix_fmt_get_chroma_sub_sample ( s -> avctx -> pix_fmt , & h_chroma_shift , & v_chroma_shift ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n int src_stride = pic_arg -> linesize [ i ] ;\n int dst_stride = i ? s -> uvlinesize : s -> linesize ;\n int h_shift = i ? h_chroma_shift : 0 ;\n int v_shift = i ? v_chroma_shift : 0 ;\n int w = s -> width >> h_shift ;\n int h = s -> height >> v_shift ;\n uint8_t * src = pic_arg -> data [ i ] ;\n uint8_t * dst = pic -> f . data [ i ] ;\n if ( ! s -> avctx -> rc_buffer_size ) dst += INPLACE_OFFSET ;\n if ( src_stride == dst_stride ) memcpy ( dst , src , src_stride * h ) ;\n else {\n while ( h -- ) {\n memcpy ( dst , src , w ) ;\n dst += dst_stride ;\n src += src_stride ;\n }\n }\n }\n }\n }\n copy_picture_attributes ( s , & pic -> f , pic_arg ) ;\n pic -> f . display_picture_number = display_picture_number ;\n pic -> f . pts = pts ;\n }\n for ( i = 1 ;\n i < MAX_PICTURE_COUNT ;\n i ++ ) s -> input_picture [ i - 1 ] = s -> input_picture [ i ] ;\n s -> input_picture [ encoding_delay ] = ( Picture * ) pic ;\n return 0 ;\n }"}
{"idx": 12608, "target": 1, "func": "static void build_inter_predictors ( MACROBLOCKD * xd , int plane , int block , int bw , int bh , int x , int y , int w , int h , int mi_x , int mi_y ) {\n struct macroblockd_plane * const pd = & xd -> plane [ plane ] ;\n const MODE_INFO * mi = xd -> mi [ 0 ] ;\n const int is_compound = has_second_ref ( & mi -> mbmi ) ;\n const InterpKernel * kernel = vp9_get_interp_kernel ( mi -> mbmi . interp_filter ) ;\n int ref ;\n for ( ref = 0 ;\n ref < 1 + is_compound ;\n ++ ref ) {\n const struct scale_factors * const sf = & xd -> block_refs [ ref ] -> sf ;\n struct buf_2d * const pre_buf = & pd -> pre [ ref ] ;\n struct buf_2d * const dst_buf = & pd -> dst ;\n uint8_t * const dst = dst_buf -> buf + dst_buf -> stride * y + x ;\n const MV mv = mi -> mbmi . sb_type < BLOCK_8X8 ? average_split_mvs ( pd , mi , ref , block ) : mi -> mbmi . mv [ ref ] . as_mv ;\n const MV mv_q4 = clamp_mv_to_umv_border_sb ( xd , & mv , bw , bh , pd -> subsampling_x , pd -> subsampling_y ) ;\n uint8_t * pre ;\n MV32 scaled_mv ;\n int xs , ys , subpel_x , subpel_y ;\n if ( vp9_is_scaled ( sf ) ) {\n pre = pre_buf -> buf + scaled_buffer_offset ( x , y , pre_buf -> stride , sf ) ;\n scaled_mv = vp9_scale_mv ( & mv_q4 , mi_x + x , mi_y + y , sf ) ;\n xs = sf -> x_step_q4 ;\n ys = sf -> y_step_q4 ;\n }\n else {\n pre = pre_buf -> buf + ( y * pre_buf -> stride + x ) ;\n scaled_mv . row = mv_q4 . row ;\n scaled_mv . col = mv_q4 . col ;\n xs = ys = 16 ;\n }\n subpel_x = scaled_mv . col & SUBPEL_MASK ;\n subpel_y = scaled_mv . row & SUBPEL_MASK ;\n pre += ( scaled_mv . row >> SUBPEL_BITS ) * pre_buf -> stride + ( scaled_mv . col >> SUBPEL_BITS ) ;\n inter_predictor ( pre , pre_buf -> stride , dst , dst_buf -> stride , subpel_x , subpel_y , sf , w , h , ref , kernel , xs , ys ) ;\n }\n }"}
{"idx": 12609, "target": 0, "func": "int DSA_verify ( int type , const unsigned char * dgst , int dgst_len , const unsigned char * sigbuf , int siglen , DSA * dsa ) {\n DSA_SIG * s ;\n const unsigned char * p = sigbuf ;\n unsigned char * der = NULL ;\n int derlen = - 1 ;\n int ret = - 1 ;\n s = DSA_SIG_new ( ) ;\n if ( s == NULL ) return ( ret ) ;\n if ( d2i_DSA_SIG ( & s , & p , siglen ) == NULL ) goto err ;\n derlen = i2d_DSA_SIG ( s , & der ) ;\n if ( derlen != siglen || memcmp ( sigbuf , der , derlen ) ) goto err ;\n ret = DSA_do_verify ( dgst , dgst_len , s , dsa ) ;\n err : if ( derlen > 0 ) {\n OPENSSL_cleanse ( der , derlen ) ;\n OPENSSL_free ( der ) ;\n }\n DSA_SIG_free ( s ) ;\n return ( ret ) ;\n }"}
{"idx": 12610, "target": 0, "func": "void addto_syslog ( int level , const char * msg ) {\n static char const * prevcall_progname ;\n static char const * prog ;\n const char nl [ ] = \"\\n\" ;\n const char empty [ ] = \"\" ;\n FILE * term_file ;\n int log_to_term ;\n int log_to_file ;\n int pid ;\n const char * nl_or_empty ;\n const char * human_time ;\n if ( progname != prevcall_progname ) {\n prevcall_progname = progname ;\n prog = strrchr ( progname , DIR_SEP ) ;\n if ( prog != NULL ) prog ++ ;\n else prog = progname ;\n }\n log_to_term = msyslog_term ;\n log_to_file = FALSE ;\n # if ! defined ( VMS ) && ! defined ( SYS_VXWORKS ) if ( syslogit ) syslog ( level , \"%s\" , msg ) ;\n else # endif if ( syslog_file != NULL ) log_to_file = TRUE ;\n else log_to_term = TRUE ;\n # if DEBUG if ( debug > 0 ) log_to_term = TRUE ;\n # endif if ( ! ( log_to_file || log_to_term ) ) return ;\n if ( msyslog_include_timestamp ) human_time = humanlogtime ( ) ;\n else human_time = NULL ;\n if ( msyslog_term_pid || log_to_file ) pid = getpid ( ) ;\n else pid = - 1 ;\n if ( '\\n' != msg [ strlen ( msg ) - 1 ] ) nl_or_empty = nl ;\n else nl_or_empty = empty ;\n if ( log_to_term ) {\n term_file = ( level <= LOG_ERR ) ? stderr : stdout ;\n if ( msyslog_include_timestamp ) fprintf ( term_file , \"%s \" , human_time ) ;\n if ( msyslog_term_pid ) fprintf ( term_file , \"%s[%d]: \" , prog , pid ) ;\n fprintf ( term_file , \"%s%s\" , msg , nl_or_empty ) ;\n fflush ( term_file ) ;\n }\n if ( log_to_file ) {\n if ( msyslog_include_timestamp ) fprintf ( syslog_file , \"%s \" , human_time ) ;\n fprintf ( syslog_file , \"%s[%d]: %s%s\" , prog , pid , msg , nl_or_empty ) ;\n fflush ( syslog_file ) ;\n }\n }"}
{"idx": 12611, "target": 0, "func": "static int kvm_get_msrs ( X86CPU * cpu ) {\n CPUX86State * env = & cpu -> env ;\n struct kvm_msr_entry * msrs = cpu -> kvm_msr_buf -> entries ;\n int ret , i ;\n uint64_t mtrr_top_bits ;\n kvm_msr_buf_reset ( cpu ) ;\n kvm_msr_entry_add ( cpu , MSR_IA32_SYSENTER_CS , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_IA32_SYSENTER_ESP , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_IA32_SYSENTER_EIP , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_PAT , 0 ) ;\n if ( has_msr_star ) {\n kvm_msr_entry_add ( cpu , MSR_STAR , 0 ) ;\n }\n if ( has_msr_hsave_pa ) {\n kvm_msr_entry_add ( cpu , MSR_VM_HSAVE_PA , 0 ) ;\n }\n if ( has_msr_tsc_aux ) {\n kvm_msr_entry_add ( cpu , MSR_TSC_AUX , 0 ) ;\n }\n if ( has_msr_tsc_adjust ) {\n kvm_msr_entry_add ( cpu , MSR_TSC_ADJUST , 0 ) ;\n }\n if ( has_msr_tsc_deadline ) {\n kvm_msr_entry_add ( cpu , MSR_IA32_TSCDEADLINE , 0 ) ;\n }\n if ( has_msr_misc_enable ) {\n kvm_msr_entry_add ( cpu , MSR_IA32_MISC_ENABLE , 0 ) ;\n }\n if ( has_msr_smbase ) {\n kvm_msr_entry_add ( cpu , MSR_IA32_SMBASE , 0 ) ;\n }\n if ( has_msr_smi_count ) {\n kvm_msr_entry_add ( cpu , MSR_SMI_COUNT , 0 ) ;\n }\n if ( has_msr_feature_control ) {\n kvm_msr_entry_add ( cpu , MSR_IA32_FEATURE_CONTROL , 0 ) ;\n }\n if ( has_msr_bndcfgs ) {\n kvm_msr_entry_add ( cpu , MSR_IA32_BNDCFGS , 0 ) ;\n }\n if ( has_msr_xss ) {\n kvm_msr_entry_add ( cpu , MSR_IA32_XSS , 0 ) ;\n }\n if ( has_msr_spec_ctrl ) {\n kvm_msr_entry_add ( cpu , MSR_IA32_SPEC_CTRL , 0 ) ;\n }\n if ( has_msr_virt_ssbd ) {\n kvm_msr_entry_add ( cpu , MSR_VIRT_SSBD , 0 ) ;\n }\n if ( ! env -> tsc_valid ) {\n kvm_msr_entry_add ( cpu , MSR_IA32_TSC , 0 ) ;\n env -> tsc_valid = ! runstate_is_running ( ) ;\n }\n # ifdef TARGET_X86_64 if ( lm_capable_kernel ) {\n kvm_msr_entry_add ( cpu , MSR_CSTAR , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_KERNELGSBASE , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_FMASK , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_LSTAR , 0 ) ;\n }\n # endif kvm_msr_entry_add ( cpu , MSR_KVM_SYSTEM_TIME , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_KVM_WALL_CLOCK , 0 ) ;\n if ( env -> features [ FEAT_KVM ] & ( 1 << KVM_FEATURE_ASYNC_PF ) ) {\n kvm_msr_entry_add ( cpu , MSR_KVM_ASYNC_PF_EN , 0 ) ;\n }\n if ( env -> features [ FEAT_KVM ] & ( 1 << KVM_FEATURE_PV_EOI ) ) {\n kvm_msr_entry_add ( cpu , MSR_KVM_PV_EOI_EN , 0 ) ;\n }\n if ( env -> features [ FEAT_KVM ] & ( 1 << KVM_FEATURE_STEAL_TIME ) ) {\n kvm_msr_entry_add ( cpu , MSR_KVM_STEAL_TIME , 0 ) ;\n }\n if ( has_architectural_pmu_version > 0 ) {\n if ( has_architectural_pmu_version > 1 ) {\n kvm_msr_entry_add ( cpu , MSR_CORE_PERF_FIXED_CTR_CTRL , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_CORE_PERF_GLOBAL_CTRL , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_CORE_PERF_GLOBAL_STATUS , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_CORE_PERF_GLOBAL_OVF_CTRL , 0 ) ;\n }\n for ( i = 0 ;\n i < num_architectural_pmu_fixed_counters ;\n i ++ ) {\n kvm_msr_entry_add ( cpu , MSR_CORE_PERF_FIXED_CTR0 + i , 0 ) ;\n }\n for ( i = 0 ;\n i < num_architectural_pmu_gp_counters ;\n i ++ ) {\n kvm_msr_entry_add ( cpu , MSR_P6_PERFCTR0 + i , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_P6_EVNTSEL0 + i , 0 ) ;\n }\n }\n if ( env -> mcg_cap ) {\n kvm_msr_entry_add ( cpu , MSR_MCG_STATUS , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_MCG_CTL , 0 ) ;\n if ( has_msr_mcg_ext_ctl ) {\n kvm_msr_entry_add ( cpu , MSR_MCG_EXT_CTL , 0 ) ;\n }\n for ( i = 0 ;\n i < ( env -> mcg_cap & 0xff ) * 4 ;\n i ++ ) {\n kvm_msr_entry_add ( cpu , MSR_MC0_CTL + i , 0 ) ;\n }\n }\n if ( has_msr_hv_hypercall ) {\n kvm_msr_entry_add ( cpu , HV_X64_MSR_HYPERCALL , 0 ) ;\n kvm_msr_entry_add ( cpu , HV_X64_MSR_GUEST_OS_ID , 0 ) ;\n }\n if ( cpu -> hyperv_vapic ) {\n kvm_msr_entry_add ( cpu , HV_X64_MSR_APIC_ASSIST_PAGE , 0 ) ;\n }\n if ( cpu -> hyperv_time ) {\n kvm_msr_entry_add ( cpu , HV_X64_MSR_REFERENCE_TSC , 0 ) ;\n }\n if ( cpu -> hyperv_reenlightenment ) {\n kvm_msr_entry_add ( cpu , HV_X64_MSR_REENLIGHTENMENT_CONTROL , 0 ) ;\n kvm_msr_entry_add ( cpu , HV_X64_MSR_TSC_EMULATION_CONTROL , 0 ) ;\n kvm_msr_entry_add ( cpu , HV_X64_MSR_TSC_EMULATION_STATUS , 0 ) ;\n }\n if ( has_msr_hv_crash ) {\n int j ;\n for ( j = 0 ;\n j < HV_CRASH_PARAMS ;\n j ++ ) {\n kvm_msr_entry_add ( cpu , HV_X64_MSR_CRASH_P0 + j , 0 ) ;\n }\n }\n if ( has_msr_hv_runtime ) {\n kvm_msr_entry_add ( cpu , HV_X64_MSR_VP_RUNTIME , 0 ) ;\n }\n if ( cpu -> hyperv_synic ) {\n uint32_t msr ;\n kvm_msr_entry_add ( cpu , HV_X64_MSR_SCONTROL , 0 ) ;\n kvm_msr_entry_add ( cpu , HV_X64_MSR_SIEFP , 0 ) ;\n kvm_msr_entry_add ( cpu , HV_X64_MSR_SIMP , 0 ) ;\n for ( msr = HV_X64_MSR_SINT0 ;\n msr <= HV_X64_MSR_SINT15 ;\n msr ++ ) {\n kvm_msr_entry_add ( cpu , msr , 0 ) ;\n }\n }\n if ( has_msr_hv_stimer ) {\n uint32_t msr ;\n for ( msr = HV_X64_MSR_STIMER0_CONFIG ;\n msr <= HV_X64_MSR_STIMER3_COUNT ;\n msr ++ ) {\n kvm_msr_entry_add ( cpu , msr , 0 ) ;\n }\n }\n if ( env -> features [ FEAT_1_EDX ] & CPUID_MTRR ) {\n kvm_msr_entry_add ( cpu , MSR_MTRRdefType , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRfix64K_00000 , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRfix16K_80000 , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRfix16K_A0000 , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRfix4K_C0000 , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRfix4K_C8000 , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRfix4K_D0000 , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRfix4K_D8000 , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRfix4K_E0000 , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRfix4K_E8000 , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRfix4K_F0000 , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRfix4K_F8000 , 0 ) ;\n for ( i = 0 ;\n i < MSR_MTRRcap_VCNT ;\n i ++ ) {\n kvm_msr_entry_add ( cpu , MSR_MTRRphysBase ( i ) , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRphysMask ( i ) , 0 ) ;\n }\n }\n if ( env -> features [ FEAT_7_0_EBX ] & CPUID_7_0_EBX_INTEL_PT ) {\n int addr_num = kvm_arch_get_supported_cpuid ( kvm_state , 0x14 , 1 , R_EAX ) & 0x7 ;\n kvm_msr_entry_add ( cpu , MSR_IA32_RTIT_CTL , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_IA32_RTIT_STATUS , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_IA32_RTIT_OUTPUT_BASE , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_IA32_RTIT_OUTPUT_MASK , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_IA32_RTIT_CR3_MATCH , 0 ) ;\n for ( i = 0 ;\n i < addr_num ;\n i ++ ) {\n kvm_msr_entry_add ( cpu , MSR_IA32_RTIT_ADDR0_A + i , 0 ) ;\n }\n }\n ret = kvm_vcpu_ioctl ( CPU ( cpu ) , KVM_GET_MSRS , cpu -> kvm_msr_buf ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n if ( ret < cpu -> kvm_msr_buf -> nmsrs ) {\n struct kvm_msr_entry * e = & cpu -> kvm_msr_buf -> entries [ ret ] ;\n error_report ( \"error: failed to get MSR 0x%\" PRIx32 , ( uint32_t ) e -> index ) ;\n }\n assert ( ret == cpu -> kvm_msr_buf -> nmsrs ) ;\n if ( cpu -> fill_mtrr_mask ) {\n QEMU_BUILD_BUG_ON ( TARGET_PHYS_ADDR_SPACE_BITS > 52 ) ;\n assert ( cpu -> phys_bits <= TARGET_PHYS_ADDR_SPACE_BITS ) ;\n mtrr_top_bits = MAKE_64BIT_MASK ( cpu -> phys_bits , 52 - cpu -> phys_bits ) ;\n }\n else {\n mtrr_top_bits = 0 ;\n }\n for ( i = 0 ;\n i < ret ;\n i ++ ) {\n uint32_t index = msrs [ i ] . index ;\n switch ( index ) {\n case MSR_IA32_SYSENTER_CS : env -> sysenter_cs = msrs [ i ] . data ;\n break ;\n case MSR_IA32_SYSENTER_ESP : env -> sysenter_esp = msrs [ i ] . data ;\n break ;\n case MSR_IA32_SYSENTER_EIP : env -> sysenter_eip = msrs [ i ] . data ;\n break ;\n case MSR_PAT : env -> pat = msrs [ i ] . data ;\n break ;\n case MSR_STAR : env -> star = msrs [ i ] . data ;\n break ;\n # ifdef TARGET_X86_64 case MSR_CSTAR : env -> cstar = msrs [ i ] . data ;\n break ;\n case MSR_KERNELGSBASE : env -> kernelgsbase = msrs [ i ] . data ;\n break ;\n case MSR_FMASK : env -> fmask = msrs [ i ] . data ;\n break ;\n case MSR_LSTAR : env -> lstar = msrs [ i ] . data ;\n break ;\n # endif case MSR_IA32_TSC : env -> tsc = msrs [ i ] . data ;\n break ;\n case MSR_TSC_AUX : env -> tsc_aux = msrs [ i ] . data ;\n break ;\n case MSR_TSC_ADJUST : env -> tsc_adjust = msrs [ i ] . data ;\n break ;\n case MSR_IA32_TSCDEADLINE : env -> tsc_deadline = msrs [ i ] . data ;\n break ;\n case MSR_VM_HSAVE_PA : env -> vm_hsave = msrs [ i ] . data ;\n break ;\n case MSR_KVM_SYSTEM_TIME : env -> system_time_msr = msrs [ i ] . data ;\n break ;\n case MSR_KVM_WALL_CLOCK : env -> wall_clock_msr = msrs [ i ] . data ;\n break ;\n case MSR_MCG_STATUS : env -> mcg_status = msrs [ i ] . data ;\n break ;\n case MSR_MCG_CTL : env -> mcg_ctl = msrs [ i ] . data ;\n break ;\n case MSR_MCG_EXT_CTL : env -> mcg_ext_ctl = msrs [ i ] . data ;\n break ;\n case MSR_IA32_MISC_ENABLE : env -> msr_ia32_misc_enable = msrs [ i ] . data ;\n break ;\n case MSR_IA32_SMBASE : env -> smbase = msrs [ i ] . data ;\n break ;\n case MSR_SMI_COUNT : env -> msr_smi_count = msrs [ i ] . data ;\n break ;\n case MSR_IA32_FEATURE_CONTROL : env -> msr_ia32_feature_control = msrs [ i ] . data ;\n break ;\n case MSR_IA32_BNDCFGS : env -> msr_bndcfgs = msrs [ i ] . data ;\n break ;\n case MSR_IA32_XSS : env -> xss = msrs [ i ] . data ;\n break ;\n default : if ( msrs [ i ] . index >= MSR_MC0_CTL && msrs [ i ] . index < MSR_MC0_CTL + ( env -> mcg_cap & 0xff ) * 4 ) {\n env -> mce_banks [ msrs [ i ] . index - MSR_MC0_CTL ] = msrs [ i ] . data ;\n }\n break ;\n case MSR_KVM_ASYNC_PF_EN : env -> async_pf_en_msr = msrs [ i ] . data ;\n break ;\n case MSR_KVM_PV_EOI_EN : env -> pv_eoi_en_msr = msrs [ i ] . data ;\n break ;\n case MSR_KVM_STEAL_TIME : env -> steal_time_msr = msrs [ i ] . data ;\n break ;\n case MSR_CORE_PERF_FIXED_CTR_CTRL : env -> msr_fixed_ctr_ctrl = msrs [ i ] . data ;\n break ;\n case MSR_CORE_PERF_GLOBAL_CTRL : env -> msr_global_ctrl = msrs [ i ] . data ;\n break ;\n case MSR_CORE_PERF_GLOBAL_STATUS : env -> msr_global_status = msrs [ i ] . data ;\n break ;\n case MSR_CORE_PERF_GLOBAL_OVF_CTRL : env -> msr_global_ovf_ctrl = msrs [ i ] . data ;\n break ;\n case MSR_CORE_PERF_FIXED_CTR0 ... MSR_CORE_PERF_FIXED_CTR0 + MAX_FIXED_COUNTERS - 1 : env -> msr_fixed_counters [ index - MSR_CORE_PERF_FIXED_CTR0 ] = msrs [ i ] . data ;\n break ;\n case MSR_P6_PERFCTR0 ... MSR_P6_PERFCTR0 + MAX_GP_COUNTERS - 1 : env -> msr_gp_counters [ index - MSR_P6_PERFCTR0 ] = msrs [ i ] . data ;\n break ;\n case MSR_P6_EVNTSEL0 ... MSR_P6_EVNTSEL0 + MAX_GP_COUNTERS - 1 : env -> msr_gp_evtsel [ index - MSR_P6_EVNTSEL0 ] = msrs [ i ] . data ;\n break ;\n case HV_X64_MSR_HYPERCALL : env -> msr_hv_hypercall = msrs [ i ] . data ;\n break ;\n case HV_X64_MSR_GUEST_OS_ID : env -> msr_hv_guest_os_id = msrs [ i ] . data ;\n break ;\n case HV_X64_MSR_APIC_ASSIST_PAGE : env -> msr_hv_vapic = msrs [ i ] . data ;\n break ;\n case HV_X64_MSR_REFERENCE_TSC : env -> msr_hv_tsc = msrs [ i ] . data ;\n break ;\n case HV_X64_MSR_CRASH_P0 ... HV_X64_MSR_CRASH_P4 : env -> msr_hv_crash_params [ index - HV_X64_MSR_CRASH_P0 ] = msrs [ i ] . data ;\n break ;\n case HV_X64_MSR_VP_RUNTIME : env -> msr_hv_runtime = msrs [ i ] . data ;\n break ;\n case HV_X64_MSR_SCONTROL : env -> msr_hv_synic_control = msrs [ i ] . data ;\n break ;\n case HV_X64_MSR_SIEFP : env -> msr_hv_synic_evt_page = msrs [ i ] . data ;\n break ;\n case HV_X64_MSR_SIMP : env -> msr_hv_synic_msg_page = msrs [ i ] . data ;\n break ;\n case HV_X64_MSR_SINT0 ... HV_X64_MSR_SINT15 : env -> msr_hv_synic_sint [ index - HV_X64_MSR_SINT0 ] = msrs [ i ] . data ;\n break ;\n case HV_X64_MSR_STIMER0_CONFIG : case HV_X64_MSR_STIMER1_CONFIG : case HV_X64_MSR_STIMER2_CONFIG : case HV_X64_MSR_STIMER3_CONFIG : env -> msr_hv_stimer_config [ ( index - HV_X64_MSR_STIMER0_CONFIG ) / 2 ] = msrs [ i ] . data ;\n break ;\n case HV_X64_MSR_STIMER0_COUNT : case HV_X64_MSR_STIMER1_COUNT : case HV_X64_MSR_STIMER2_COUNT : case HV_X64_MSR_STIMER3_COUNT : env -> msr_hv_stimer_count [ ( index - HV_X64_MSR_STIMER0_COUNT ) / 2 ] = msrs [ i ] . data ;\n break ;\n case HV_X64_MSR_REENLIGHTENMENT_CONTROL : env -> msr_hv_reenlightenment_control = msrs [ i ] . data ;\n break ;\n case HV_X64_MSR_TSC_EMULATION_CONTROL : env -> msr_hv_tsc_emulation_control = msrs [ i ] . data ;\n break ;\n case HV_X64_MSR_TSC_EMULATION_STATUS : env -> msr_hv_tsc_emulation_status = msrs [ i ] . data ;\n break ;\n case MSR_MTRRdefType : env -> mtrr_deftype = msrs [ i ] . data ;\n break ;\n case MSR_MTRRfix64K_00000 : env -> mtrr_fixed [ 0 ] = msrs [ i ] . data ;\n break ;\n case MSR_MTRRfix16K_80000 : env -> mtrr_fixed [ 1 ] = msrs [ i ] . data ;\n break ;\n case MSR_MTRRfix16K_A0000 : env -> mtrr_fixed [ 2 ] = msrs [ i ] . data ;\n break ;\n case MSR_MTRRfix4K_C0000 : env -> mtrr_fixed [ 3 ] = msrs [ i ] . data ;\n break ;\n case MSR_MTRRfix4K_C8000 : env -> mtrr_fixed [ 4 ] = msrs [ i ] . data ;\n break ;\n case MSR_MTRRfix4K_D0000 : env -> mtrr_fixed [ 5 ] = msrs [ i ] . data ;\n break ;\n case MSR_MTRRfix4K_D8000 : env -> mtrr_fixed [ 6 ] = msrs [ i ] . data ;\n break ;\n case MSR_MTRRfix4K_E0000 : env -> mtrr_fixed [ 7 ] = msrs [ i ] . data ;\n break ;\n case MSR_MTRRfix4K_E8000 : env -> mtrr_fixed [ 8 ] = msrs [ i ] . data ;\n break ;\n case MSR_MTRRfix4K_F0000 : env -> mtrr_fixed [ 9 ] = msrs [ i ] . data ;\n break ;\n case MSR_MTRRfix4K_F8000 : env -> mtrr_fixed [ 10 ] = msrs [ i ] . data ;\n break ;\n case MSR_MTRRphysBase ( 0 ) ... MSR_MTRRphysMask ( MSR_MTRRcap_VCNT - 1 ) : if ( index & 1 ) {\n env -> mtrr_var [ MSR_MTRRphysIndex ( index ) ] . mask = msrs [ i ] . data | mtrr_top_bits ;\n }\n else {\n env -> mtrr_var [ MSR_MTRRphysIndex ( index ) ] . base = msrs [ i ] . data ;\n }\n break ;\n case MSR_IA32_SPEC_CTRL : env -> spec_ctrl = msrs [ i ] . data ;\n break ;\n case MSR_VIRT_SSBD : env -> virt_ssbd = msrs [ i ] . data ;\n break ;\n case MSR_IA32_RTIT_CTL : env -> msr_rtit_ctrl = msrs [ i ] . data ;\n break ;\n case MSR_IA32_RTIT_STATUS : env -> msr_rtit_status = msrs [ i ] . data ;\n break ;\n case MSR_IA32_RTIT_OUTPUT_BASE : env -> msr_rtit_output_base = msrs [ i ] . data ;\n break ;\n case MSR_IA32_RTIT_OUTPUT_MASK : env -> msr_rtit_output_mask = msrs [ i ] . data ;\n break ;\n case MSR_IA32_RTIT_CR3_MATCH : env -> msr_rtit_cr3_match = msrs [ i ] . data ;\n break ;\n case MSR_IA32_RTIT_ADDR0_A ... MSR_IA32_RTIT_ADDR3_B : env -> msr_rtit_addrs [ index - MSR_IA32_RTIT_ADDR0_A ] = msrs [ i ] . data ;\n break ;\n }\n }\n return 0 ;\n }"}
{"idx": 12612, "target": 0, "func": "static void test_store_result2 ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n int nData ;\n ulong length ;\n MYSQL_BIND my_bind [ 1 ] ;\n char query [ MAX_TEST_QUERY_LENGTH ] ;\n myheader ( \"test_store_result2\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_store_result\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_store_result(col1 int , col2 varchar(50))\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_store_result VALUES(10, 'venu'), (20, 'mysql')\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_store_result(col2) VALUES('monty')\" ) ;\n myquery ( rc ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 0 ] . buffer = ( void * ) & nData ;\n my_bind [ 0 ] . length = & length ;\n my_bind [ 0 ] . is_null = 0 ;\n strmov ( ( char * ) query , \"SELECT col1 FROM test_store_result where col1= ?\" ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n nData = 10 ;\n length = 0 ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n nData = 0 ;\n rc = mysql_stmt_store_result ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n row 1: %d\" , nData ) ;\n DIE_UNLESS ( nData == 10 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n nData = 20 ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n nData = 0 ;\n rc = mysql_stmt_store_result ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n row 1: %d\" , nData ) ;\n DIE_UNLESS ( nData == 20 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 12613, "target": 0, "func": "const char * token_name ( int token ) {\n return yytname [ YYTRANSLATE ( token ) ] ;\n }"}
{"idx": 12614, "target": 0, "func": "unsigned int vp9_variance ## W ## x ## H ## _c ( const uint8_t * a , int a_stride , const uint8_t * b , int b_stride , unsigned int * sse ) {\n int sum ;\n variance ( a , a_stride , b , b_stride , W , H , sse , & sum ) ;\n return * sse - ( ( ( int64_t ) sum * sum ) / ( W * H ) ) ;\n \\ }\n # define SUBPIX_VAR ( W , H ) unsigned int vp9_sub_pixel_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp2 , W , dst , dst_stride , sse ) ;\n \\ }\n # define SUBPIX_AVG_VAR ( W , H ) unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 ) VAR ( 8 , 4 )"}
{"idx": 12615, "target": 0, "func": "proto_item * proto_tree_add_double_format_value ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , double value , const char * format , ... ) {\n proto_item * pi ;\n va_list ap ;\n pi = proto_tree_add_double ( tree , hfindex , tvb , start , length , value ) ;\n if ( pi != tree ) {\n va_start ( ap , format ) ;\n proto_tree_set_representation_value ( pi , format , ap ) ;\n va_end ( ap ) ;\n }\n return pi ;\n }"}
{"idx": 12616, "target": 1, "func": "int i2d_ ## name ( type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;\n int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL )"}
{"idx": 12617, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ClientHintsBrowserTest , NoClientHintsHttps ) {\n base : : HistogramTester histogram_tester ;\n ui_test_utils : : NavigateToURL ( browser ( ) , without_accept_ch_without_lifetime_url ( ) ) ;\n histogram_tester . ExpectTotalCount ( \"ClientHints.UpdateEventCount\" , 0 ) ;\n content : : FetchHistogramsFromChildProcesses ( ) ;\n SubprocessMetricsProvider : : MergeHistogramDeltasForTesting ( ) ;\n histogram_tester . ExpectTotalCount ( \"ClientHints.UpdateSize\" , 0 ) ;\n histogram_tester . ExpectTotalCount ( \"ClientHints.PersistDuration\" , 0 ) ;\n }"}
{"idx": 12618, "target": 0, "func": "TSReturnCode TSCacheKeyHostNameSet ( TSCacheKey key , const char * hostname , int host_len ) {\n sdk_assert ( sdk_sanity_check_cachekey ( key ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) hostname ) == TS_SUCCESS ) ;\n sdk_assert ( host_len > 0 ) ;\n if ( ( ( CacheInfo * ) key ) -> magic != CACHE_INFO_MAGIC_ALIVE ) {\n return TS_ERROR ;\n }\n CacheInfo * i = ( CacheInfo * ) key ;\n i -> hostname = ( char * ) ats_malloc ( host_len ) ;\n memcpy ( i -> hostname , hostname , host_len ) ;\n i -> len = host_len ;\n return TS_SUCCESS ;\n }"}
{"idx": 12619, "target": 0, "func": "int TS_X509_ALGOR_print_bio ( BIO * bio , const X509_ALGOR * alg ) {\n int i = OBJ_obj2nid ( alg -> algorithm ) ;\n return BIO_printf ( bio , \"Hash Algorithm: %s\\n\" , ( i == NID_undef ) ? \"UNKNOWN\" : OBJ_nid2ln ( i ) ) ;\n }"}
{"idx": 12620, "target": 1, "func": "ATF_TP_ADD_TCS ( tp ) {\n ATF_TP_ADD_TC ( tp , option_refcnt ) ;\n return ( atf_no_error ( ) ) ;\n }"}
{"idx": 12621, "target": 0, "func": "struct istream * i_stream_create_attachment_extractor ( struct istream * input , struct istream_attachment_settings * set , void * context ) {\n struct attachment_istream * astream ;\n i_assert ( set -> min_size > 0 ) ;\n i_assert ( set -> hash_format != NULL ) ;\n i_assert ( set -> open_attachment_ostream != NULL ) ;\n i_assert ( set -> close_attachment_ostream != NULL ) ;\n astream = i_new ( struct attachment_istream , 1 ) ;\n astream -> part . temp_fd = - 1 ;\n astream -> set = * set ;\n astream -> context = context ;\n astream -> retry_read = TRUE ;\n set -> hash_format = NULL ;\n astream -> istream . max_buffer_size = input -> real_stream -> max_buffer_size ;\n astream -> istream . read = i_stream_attachment_extractor_read ;\n astream -> istream . iostream . close = i_stream_attachment_extractor_close ;\n astream -> istream . istream . readable_fd = FALSE ;\n astream -> istream . istream . blocking = input -> blocking ;\n astream -> istream . istream . seekable = FALSE ;\n astream -> pool = pool_alloconly_create ( \"istream attachment\" , 1024 ) ;\n astream -> parser = message_parser_init ( astream -> pool , input , 0 , MESSAGE_PARSER_FLAG_INCLUDE_MULTIPART_BLOCKS | MESSAGE_PARSER_FLAG_INCLUDE_BOUNDARIES ) ;\n return i_stream_create ( & astream -> istream , input , i_stream_get_fd ( input ) ) ;\n }"}
{"idx": 12622, "target": 0, "func": "static void ff_init_long_region ( MPADecodeContext * s , GranuleDef * g , int ra1 , int ra2 ) {\n int l ;\n g -> region_size [ 0 ] = band_index_long [ s -> sample_rate_index ] [ ra1 + 1 ] >> 1 ;\n l = FFMIN ( ra1 + ra2 + 2 , 22 ) ;\n g -> region_size [ 1 ] = band_index_long [ s -> sample_rate_index ] [ l ] >> 1 ;\n }"}
{"idx": 12623, "target": 1, "func": "void vp9_fht8x8_c ( const int16_t * input , int16_t * output , int stride , int tx_type ) {\n if ( tx_type == DCT_DCT ) {\n vp9_fdct8x8_c ( input , output , stride ) ;\n }\n else {\n int16_t out [ 64 ] ;\n int16_t * outptr = & out [ 0 ] ;\n int i , j ;\n int16_t temp_in [ 8 ] , temp_out [ 8 ] ;\n const transform_2d ht = FHT_8 [ tx_type ] ;\n for ( i = 0 ;\n i < 8 ;\n ++ i ) {\n for ( j = 0 ;\n j < 8 ;\n ++ j ) temp_in [ j ] = input [ j * stride + i ] * 4 ;\n ht . cols ( temp_in , temp_out ) ;\n for ( j = 0 ;\n j < 8 ;\n ++ j ) outptr [ j * 8 + i ] = temp_out [ j ] ;\n }\n for ( i = 0 ;\n i < 8 ;\n ++ i ) {\n for ( j = 0 ;\n j < 8 ;\n ++ j ) temp_in [ j ] = out [ j + i * 8 ] ;\n ht . rows ( temp_in , temp_out ) ;\n for ( j = 0 ;\n j < 8 ;\n ++ j ) output [ j + i * 8 ] = ( temp_out [ j ] + ( temp_out [ j ] < 0 ) ) >> 1 ;\n }\n }\n }"}
{"idx": 12624, "target": 0, "func": "static int SpoolssGetPrinter_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ;\n guint32 level ;\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , NULL , NULL , FALSE , FALSE ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_level , & level ) ;\n if ( ! pinfo -> fd -> flags . visited ) {\n dcv -> se_data = GINT_TO_POINTER ( ( int ) level ) ;\n }\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", level %d\" , level ) ;\n offset = dissect_spoolss_buffer ( tvb , offset , pinfo , tree , di , drep , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_offered , NULL ) ;\n return offset ;\n }"}
{"idx": 12625, "target": 0, "func": "static void dissect_zcl_part_wrhandshakeparam ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , guint * offset ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_part_partitioned_cluster_id , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n dissect_zcl_write_attr ( tvb , pinfo , tree , offset , ZBEE_ZCL_CID_PARTITION ) ;\n }"}
{"idx": 12626, "target": 0, "func": "static int dissect_h245_NonStandardMessage ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_NonStandardMessage , NonStandardMessage_sequence ) ;\n return offset ;\n }"}
{"idx": 12627, "target": 0, "func": "TEST ( IdlCompiler , PropertyValues ) {\n EXPECT_EQ ( 42 , test : : api : : idl_properties : : first ) ;\n EXPECT_EQ ( 42.1 , test : : api : : idl_properties : : second ) ;\n EXPECT_STREQ ( \"hello world\" , test : : api : : idl_properties : : third ) ;\n }"}
{"idx": 12628, "target": 0, "func": "int ff_h263_decode_picture_header ( MpegEncContext * s ) {\n int format , width , height , i ;\n uint32_t startcode ;\n align_get_bits ( & s -> gb ) ;\n startcode = get_bits ( & s -> gb , 22 - 8 ) ;\n for ( i = get_bits_left ( & s -> gb ) ;\n i > 24 ;\n i -= 8 ) {\n startcode = ( ( startcode << 8 ) | get_bits ( & s -> gb , 8 ) ) & 0x003FFFFF ;\n if ( startcode == 0x20 ) break ;\n }\n if ( startcode != 0x20 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Bad picture start code\\n\" ) ;\n return - 1 ;\n }\n i = get_bits ( & s -> gb , 8 ) ;\n if ( ( s -> picture_number & ~ 0xFF ) + i < s -> picture_number ) i += 256 ;\n s -> current_picture_ptr -> f . pts = s -> picture_number = ( s -> picture_number & ~ 0xFF ) + i ;\n if ( get_bits1 ( & s -> gb ) != 1 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Bad marker\\n\" ) ;\n return - 1 ;\n }\n if ( get_bits1 ( & s -> gb ) != 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Bad H263 id\\n\" ) ;\n return - 1 ;\n }\n skip_bits1 ( & s -> gb ) ;\n skip_bits1 ( & s -> gb ) ;\n skip_bits1 ( & s -> gb ) ;\n format = get_bits ( & s -> gb , 3 ) ;\n if ( format != 7 && format != 6 ) {\n s -> h263_plus = 0 ;\n width = ff_h263_format [ format ] [ 0 ] ;\n height = ff_h263_format [ format ] [ 1 ] ;\n if ( ! width ) return - 1 ;\n s -> pict_type = AV_PICTURE_TYPE_I + get_bits1 ( & s -> gb ) ;\n s -> h263_long_vectors = get_bits1 ( & s -> gb ) ;\n if ( get_bits1 ( & s -> gb ) != 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"H263 SAC not supported\\n\" ) ;\n return - 1 ;\n }\n s -> obmc = get_bits1 ( & s -> gb ) ;\n s -> unrestricted_mv = s -> h263_long_vectors || s -> obmc ;\n s -> pb_frame = get_bits1 ( & s -> gb ) ;\n s -> chroma_qscale = s -> qscale = get_bits ( & s -> gb , 5 ) ;\n skip_bits1 ( & s -> gb ) ;\n s -> width = width ;\n s -> height = height ;\n s -> avctx -> sample_aspect_ratio = ( AVRational ) {\n 12 , 11 }\n ;\n s -> avctx -> time_base = ( AVRational ) {\n 1001 , 30000 }\n ;\n }\n else {\n int ufep ;\n s -> h263_plus = 1 ;\n ufep = get_bits ( & s -> gb , 3 ) ;\n if ( ufep == 1 ) {\n format = get_bits ( & s -> gb , 3 ) ;\n av_dlog ( s -> avctx , \"ufep=1, format: %d\\n\" , format ) ;\n s -> custom_pcf = get_bits1 ( & s -> gb ) ;\n s -> umvplus = get_bits1 ( & s -> gb ) ;\n if ( get_bits1 ( & s -> gb ) != 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Syntax-based Arithmetic Coding (SAC) not supported\\n\" ) ;\n }\n s -> obmc = get_bits1 ( & s -> gb ) ;\n s -> h263_aic = get_bits1 ( & s -> gb ) ;\n s -> loop_filter = get_bits1 ( & s -> gb ) ;\n s -> unrestricted_mv = s -> umvplus || s -> obmc || s -> loop_filter ;\n s -> h263_slice_structured = get_bits1 ( & s -> gb ) ;\n if ( get_bits1 ( & s -> gb ) != 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Reference Picture Selection not supported\\n\" ) ;\n }\n if ( get_bits1 ( & s -> gb ) != 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Independent Segment Decoding not supported\\n\" ) ;\n }\n s -> alt_inter_vlc = get_bits1 ( & s -> gb ) ;\n s -> modified_quant = get_bits1 ( & s -> gb ) ;\n if ( s -> modified_quant ) s -> chroma_qscale_table = ff_h263_chroma_qscale_table ;\n skip_bits ( & s -> gb , 1 ) ;\n skip_bits ( & s -> gb , 3 ) ;\n }\n else if ( ufep != 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Bad UFEP type (%d)\\n\" , ufep ) ;\n return - 1 ;\n }\n s -> pict_type = get_bits ( & s -> gb , 3 ) ;\n switch ( s -> pict_type ) {\n case 0 : s -> pict_type = AV_PICTURE_TYPE_I ;\n break ;\n case 1 : s -> pict_type = AV_PICTURE_TYPE_P ;\n break ;\n case 2 : s -> pict_type = AV_PICTURE_TYPE_P ;\n s -> pb_frame = 3 ;\n break ;\n case 3 : s -> pict_type = AV_PICTURE_TYPE_B ;\n break ;\n case 7 : s -> pict_type = AV_PICTURE_TYPE_I ;\n break ;\n default : return - 1 ;\n }\n skip_bits ( & s -> gb , 2 ) ;\n s -> no_rounding = get_bits1 ( & s -> gb ) ;\n skip_bits ( & s -> gb , 4 ) ;\n if ( ufep ) {\n if ( format == 6 ) {\n s -> aspect_ratio_info = get_bits ( & s -> gb , 4 ) ;\n av_dlog ( s -> avctx , \"aspect: %d\\n\" , s -> aspect_ratio_info ) ;\n width = ( get_bits ( & s -> gb , 9 ) + 1 ) * 4 ;\n skip_bits1 ( & s -> gb ) ;\n height = get_bits ( & s -> gb , 9 ) * 4 ;\n av_dlog ( s -> avctx , \"\\nH.263+ Custom picture: %dx%d\\n\" , width , height ) ;\n if ( s -> aspect_ratio_info == FF_ASPECT_EXTENDED ) {\n s -> avctx -> sample_aspect_ratio . num = get_bits ( & s -> gb , 8 ) ;\n s -> avctx -> sample_aspect_ratio . den = get_bits ( & s -> gb , 8 ) ;\n }\n else {\n s -> avctx -> sample_aspect_ratio = ff_h263_pixel_aspect [ s -> aspect_ratio_info ] ;\n }\n }\n else {\n width = ff_h263_format [ format ] [ 0 ] ;\n height = ff_h263_format [ format ] [ 1 ] ;\n s -> avctx -> sample_aspect_ratio = ( AVRational ) {\n 12 , 11 }\n ;\n }\n if ( ( width == 0 ) || ( height == 0 ) ) return - 1 ;\n s -> width = width ;\n s -> height = height ;\n if ( s -> custom_pcf ) {\n int gcd ;\n s -> avctx -> time_base . den = 1800000 ;\n s -> avctx -> time_base . num = 1000 + get_bits1 ( & s -> gb ) ;\n s -> avctx -> time_base . num *= get_bits ( & s -> gb , 7 ) ;\n if ( s -> avctx -> time_base . num == 0 ) {\n av_log ( s , AV_LOG_ERROR , \"zero framerate\\n\" ) ;\n return - 1 ;\n }\n gcd = av_gcd ( s -> avctx -> time_base . den , s -> avctx -> time_base . num ) ;\n s -> avctx -> time_base . den /= gcd ;\n s -> avctx -> time_base . num /= gcd ;\n }\n else {\n s -> avctx -> time_base = ( AVRational ) {\n 1001 , 30000 }\n ;\n }\n }\n if ( s -> custom_pcf ) {\n skip_bits ( & s -> gb , 2 ) ;\n }\n if ( ufep ) {\n if ( s -> umvplus ) {\n if ( get_bits1 ( & s -> gb ) == 0 ) skip_bits1 ( & s -> gb ) ;\n }\n if ( s -> h263_slice_structured ) {\n if ( get_bits1 ( & s -> gb ) != 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"rectangular slices not supported\\n\" ) ;\n }\n if ( get_bits1 ( & s -> gb ) != 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"unordered slices not supported\\n\" ) ;\n }\n }\n }\n s -> qscale = get_bits ( & s -> gb , 5 ) ;\n }\n s -> mb_width = ( s -> width + 15 ) / 16 ;\n s -> mb_height = ( s -> height + 15 ) / 16 ;\n s -> mb_num = s -> mb_width * s -> mb_height ;\n if ( s -> pb_frame ) {\n skip_bits ( & s -> gb , 3 ) ;\n if ( s -> custom_pcf ) skip_bits ( & s -> gb , 2 ) ;\n skip_bits ( & s -> gb , 2 ) ;\n }\n if ( s -> pict_type != AV_PICTURE_TYPE_B ) {\n s -> time = s -> picture_number ;\n s -> pp_time = s -> time - s -> last_non_b_time ;\n s -> last_non_b_time = s -> time ;\n }\n else {\n s -> time = s -> picture_number ;\n s -> pb_time = s -> pp_time - ( s -> last_non_b_time - s -> time ) ;\n if ( s -> pp_time <= s -> pb_time || s -> pp_time <= s -> pp_time - s -> pb_time || s -> pp_time <= 0 ) {\n s -> pp_time = 2 ;\n s -> pb_time = 1 ;\n }\n ff_mpeg4_init_direct_mv ( s ) ;\n }\n while ( get_bits1 ( & s -> gb ) != 0 ) {\n skip_bits ( & s -> gb , 8 ) ;\n }\n if ( s -> h263_slice_structured ) {\n if ( get_bits1 ( & s -> gb ) != 1 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"SEPB1 marker missing\\n\" ) ;\n return - 1 ;\n }\n ff_h263_decode_mba ( s ) ;\n if ( get_bits1 ( & s -> gb ) != 1 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"SEPB2 marker missing\\n\" ) ;\n return - 1 ;\n }\n }\n s -> f_code = 1 ;\n if ( s -> h263_aic ) {\n s -> y_dc_scale_table = s -> c_dc_scale_table = ff_aic_dc_scale_table ;\n }\n else {\n s -> y_dc_scale_table = s -> c_dc_scale_table = ff_mpeg1_dc_scale_table ;\n }\n ff_h263_show_pict_info ( s ) ;\n if ( s -> pict_type == AV_PICTURE_TYPE_I && s -> codec_tag == AV_RL32 ( \"ZYGO\" ) ) {\n int i , j ;\n for ( i = 0 ;\n i < 85 ;\n i ++ ) av_log ( s -> avctx , AV_LOG_DEBUG , \"%d\" , get_bits1 ( & s -> gb ) ) ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \"\\n\" ) ;\n for ( i = 0 ;\n i < 13 ;\n i ++ ) {\n for ( j = 0 ;\n j < 3 ;\n j ++ ) {\n int v = get_bits ( & s -> gb , 8 ) ;\n v |= get_sbits ( & s -> gb , 8 ) << 8 ;\n av_log ( s -> avctx , AV_LOG_DEBUG , \" %5d\" , v ) ;\n }\n av_log ( s -> avctx , AV_LOG_DEBUG , \"\\n\" ) ;\n }\n for ( i = 0 ;\n i < 50 ;\n i ++ ) av_log ( s -> avctx , AV_LOG_DEBUG , \"%d\" , get_bits1 ( & s -> gb ) ) ;\n }\n return 0 ;\n }"}
{"idx": 12629, "target": 1, "func": "int i2d_ ## name ( type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;\n int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DIRECTORYSTRING )"}
{"idx": 12630, "target": 0, "func": "proto_item * proto_tree_add_bitmask ( proto_tree * parent_tree , tvbuff_t * tvb , const guint offset , const int hf_hdr , const gint ett , const int * * fields , const guint encoding ) {\n return proto_tree_add_bitmask_with_flags ( parent_tree , tvb , offset , hf_hdr , ett , fields , encoding , BMT_NO_INT | BMT_NO_TFS ) ;\n }"}
{"idx": 12631, "target": 0, "func": "static int dissect_h245_IS13818AudioLayer ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_IS13818AudioLayer , IS13818AudioLayer_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 12632, "target": 0, "func": "static int parse_from ( struct branch * b ) {\n const char * from ;\n struct branch * s ;\n unsigned char sha1 [ 20 ] ;\n if ( ! skip_prefix ( command_buf . buf , \"from \" , & from ) ) return 0 ;\n hashcpy ( sha1 , b -> branch_tree . versions [ 1 ] . sha1 ) ;\n s = lookup_branch ( from ) ;\n if ( b == s ) die ( \"Can't create a branch from itself: %s\" , b -> name ) ;\n else if ( s ) {\n unsigned char * t = s -> branch_tree . versions [ 1 ] . sha1 ;\n hashcpy ( b -> sha1 , s -> sha1 ) ;\n hashcpy ( b -> branch_tree . versions [ 0 ] . sha1 , t ) ;\n hashcpy ( b -> branch_tree . versions [ 1 ] . sha1 , t ) ;\n }\n else if ( * from == ':' ) {\n uintmax_t idnum = parse_mark_ref_eol ( from ) ;\n struct object_entry * oe = find_mark ( idnum ) ;\n if ( oe -> type != OBJ_COMMIT ) die ( \"Mark :%\" PRIuMAX \" not a commit\" , idnum ) ;\n if ( hashcmp ( b -> sha1 , oe -> idx . sha1 ) ) {\n hashcpy ( b -> sha1 , oe -> idx . sha1 ) ;\n if ( oe -> pack_id != MAX_PACK_ID ) {\n unsigned long size ;\n char * buf = gfi_unpack_entry ( oe , & size ) ;\n parse_from_commit ( b , buf , size ) ;\n free ( buf ) ;\n }\n else parse_from_existing ( b ) ;\n }\n }\n else if ( ! get_sha1 ( from , b -> sha1 ) ) {\n parse_from_existing ( b ) ;\n if ( is_null_sha1 ( b -> sha1 ) ) b -> delete = 1 ;\n }\n else die ( \"Invalid ref name or SHA1 expression: %s\" , from ) ;\n if ( b -> branch_tree . tree && hashcmp ( sha1 , b -> branch_tree . versions [ 1 ] . sha1 ) ) {\n release_tree_content_recursive ( b -> branch_tree . tree ) ;\n b -> branch_tree . tree = NULL ;\n }\n read_next_command ( ) ;\n return 1 ;\n }"}
{"idx": 12633, "target": 0, "func": "static int dissect_h245_T_reason ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_reason , T_reason_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 12634, "target": 0, "func": "int kvm_device_pci_deassign ( KVMState * s , uint32_t dev_id ) {\n struct kvm_assigned_pci_dev dev_data = {\n . assigned_dev_id = dev_id , }\n ;\n return kvm_vm_ioctl ( s , KVM_DEASSIGN_PCI_DEVICE , & dev_data ) ;\n }"}
{"idx": 12635, "target": 0, "func": "static int32_t findUnassigned ( UCMStates * states , uint16_t * unicodeCodeUnits , _MBCSToUFallback * toUFallbacks , int32_t countToUFallbacks , int32_t state , int32_t offset , uint32_t b ) {\n int32_t i , entry , savings , localSavings , belowSavings ;\n UBool haveAssigned ;\n localSavings = belowSavings = 0 ;\n haveAssigned = FALSE ;\n for ( i = 0 ;\n i < 256 ;\n ++ i ) {\n entry = states -> stateTable [ state ] [ i ] ;\n if ( MBCS_ENTRY_IS_TRANSITION ( entry ) ) {\n savings = findUnassigned ( states , unicodeCodeUnits , toUFallbacks , countToUFallbacks , MBCS_ENTRY_TRANSITION_STATE ( entry ) , offset + MBCS_ENTRY_TRANSITION_OFFSET ( entry ) , ( b << 8 ) | ( uint32_t ) i ) ;\n if ( savings < 0 ) {\n haveAssigned = TRUE ;\n }\n else if ( savings > 0 ) {\n printf ( \" all-unassigned sequences from prefix 0x%02lx state %ld use %ld bytes\\n\" , ( unsigned long ) ( ( b << 8 ) | i ) , ( long ) state , ( long ) savings ) ;\n belowSavings += savings ;\n }\n }\n else if ( ! haveAssigned ) {\n switch ( MBCS_ENTRY_FINAL_ACTION ( entry ) ) {\n case MBCS_STATE_VALID_16 : entry = offset + MBCS_ENTRY_FINAL_VALUE_16 ( entry ) ;\n if ( unicodeCodeUnits [ entry ] == 0xfffe && ucm_findFallback ( toUFallbacks , countToUFallbacks , entry ) < 0 ) {\n localSavings += 2 ;\n }\n else {\n haveAssigned = TRUE ;\n }\n break ;\n case MBCS_STATE_VALID_16_PAIR : entry = offset + MBCS_ENTRY_FINAL_VALUE_16 ( entry ) ;\n if ( unicodeCodeUnits [ entry ] == 0xfffe ) {\n localSavings += 4 ;\n }\n else {\n haveAssigned = TRUE ;\n }\n break ;\n default : break ;\n }\n }\n }\n if ( haveAssigned ) {\n return - 1 ;\n }\n else {\n return localSavings + belowSavings ;\n }\n }"}
{"idx": 12636, "target": 0, "func": "static void mainwindow_resize ( MAIN_WINDOW_REC * window , int xdiff , int ydiff ) {\n int height , width ;\n if ( quitting || ( xdiff == 0 && ydiff == 0 ) ) return ;\n height = window -> height + ydiff ;\n width = window -> width + xdiff ;\n window -> width = window -> last_column - window -> first_column + 1 ;\n window -> height = window -> last_line - window -> first_line + 1 ;\n if ( height != window -> height || width != window -> width ) {\n g_warning ( \"Resizing window %p W:%d expected:%d H:%d expected:%d\" , window , window -> width , width , window -> height , height ) ;\n }\n window -> size_dirty = TRUE ;\n }"}
{"idx": 12637, "target": 0, "func": "static void * Type_ColorantTable_Dup ( struct _cms_typehandler_struct * self , const void * Ptr , cmsUInt32Number n ) {\n cmsNAMEDCOLORLIST * nc = ( cmsNAMEDCOLORLIST * ) Ptr ;\n return ( void * ) cmsDupNamedColorList ( nc ) ;\n cmsUNUSED_PARAMETER ( n ) ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 12638, "target": 0, "func": "time_t mime_field_value_get_date ( const MIMEField * field ) {\n int length ;\n const char * str = mime_field_value_get ( field , & length ) ;\n return mime_parse_date ( str , str + length ) ;\n }"}
{"idx": 12639, "target": 0, "func": "int main ( int argc , char * * argv ) {\n int debug = 0 ;\n if ( argc > 1 && ! strcmp ( argv [ 1 ] , \"--verbose\" ) ) verbose = 1 ;\n else if ( argc > 1 && ! strcmp ( argv [ 1 ] , \"--debug\" ) ) verbose = debug = 1 ;\n if ( ! gcry_check_version ( GCRYPT_VERSION ) ) die ( \"version mismatch\\n\" ) ;\n gcry_control ( GCRYCTL_DISABLE_SECMEM , 0 ) ;\n gcry_control ( GCRYCTL_INITIALIZATION_FINISHED , 0 ) ;\n if ( debug ) gcry_control ( GCRYCTL_SET_DEBUG_FLAGS , 1u , 0 ) ;\n list_curves ( ) ;\n check_matching ( ) ;\n check_get_params ( ) ;\n return error_count ? 1 : 0 ;\n }"}
{"idx": 12640, "target": 0, "func": "static guint16 de_tp_egprs_mode_flag ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset = offset ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_egprs_mode_flag , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_downlink_timeslot_offset , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset += 1 ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 12641, "target": 0, "func": "void proto_item_fill_label ( field_info * fi , gchar * label_str ) {\n header_field_info * hfinfo ;\n guint8 * bytes ;\n guint32 integer ;\n guint64 integer64 ;\n ipv4_addr_and_mask * ipv4 ;\n e_guid_t * guid ;\n guint32 n_addr ;\n gchar * name ;\n address addr ;\n char * addr_str ;\n char * tmp ;\n if ( ! fi ) {\n if ( label_str ) label_str [ 0 ] = '\\0' ;\n return ;\n }\n hfinfo = fi -> hfinfo ;\n switch ( hfinfo -> type ) {\n case FT_NONE : case FT_PROTOCOL : g_strlcpy ( label_str , hfinfo -> name , ITEM_LABEL_LENGTH ) ;\n break ;\n case FT_BOOLEAN : fill_label_boolean ( fi , label_str ) ;\n break ;\n case FT_BYTES : case FT_UINT_BYTES : bytes = ( guint8 * ) fvalue_get ( & fi -> value ) ;\n if ( bytes ) {\n char * str = NULL ;\n switch ( hfinfo -> display ) {\n case SEP_DOT : str = bytestring_to_str ( NULL , bytes , fvalue_length ( & fi -> value ) , '.' ) ;\n break ;\n case SEP_DASH : str = bytestring_to_str ( NULL , bytes , fvalue_length ( & fi -> value ) , '-' ) ;\n break ;\n case SEP_COLON : str = bytestring_to_str ( NULL , bytes , fvalue_length ( & fi -> value ) , ':' ) ;\n break ;\n case SEP_SPACE : str = bytestring_to_str ( NULL , bytes , fvalue_length ( & fi -> value ) , ' ' ) ;\n break ;\n case BASE_NONE : default : if ( prefs . display_byte_fields_with_spaces ) {\n str = bytestring_to_str ( NULL , bytes , fvalue_length ( & fi -> value ) , ' ' ) ;\n }\n else {\n str = bytes_to_str ( NULL , bytes , fvalue_length ( & fi -> value ) ) ;\n }\n break ;\n }\n label_fill ( label_str , 0 , hfinfo , str ) ;\n wmem_free ( NULL , str ) ;\n }\n else {\n if ( hfinfo -> display & BASE_ALLOW_ZERO ) {\n label_fill ( label_str , 0 , hfinfo , \"<none>\" ) ;\n }\n else {\n label_fill ( label_str , 0 , hfinfo , \"<MISSING>\" ) ;\n }\n }\n break ;\n case FT_UINT8 : case FT_UINT16 : case FT_UINT24 : case FT_UINT32 : if ( hfinfo -> bitmask ) {\n fill_label_bitfield ( fi , label_str , FALSE ) ;\n }\n else {\n fill_label_number ( fi , label_str , FALSE ) ;\n }\n break ;\n case FT_FRAMENUM : fill_label_number ( fi , label_str , FALSE ) ;\n break ;\n case FT_UINT40 : case FT_UINT48 : case FT_UINT56 : case FT_UINT64 : if ( hfinfo -> bitmask ) {\n fill_label_bitfield64 ( fi , label_str , FALSE ) ;\n }\n else {\n fill_label_number64 ( fi , label_str , FALSE ) ;\n }\n break ;\n case FT_INT8 : case FT_INT16 : case FT_INT24 : case FT_INT32 : if ( hfinfo -> bitmask ) {\n fill_label_bitfield ( fi , label_str , TRUE ) ;\n }\n else {\n fill_label_number ( fi , label_str , TRUE ) ;\n }\n break ;\n case FT_INT40 : case FT_INT48 : case FT_INT56 : case FT_INT64 : if ( hfinfo -> bitmask ) {\n fill_label_bitfield64 ( fi , label_str , TRUE ) ;\n }\n else {\n fill_label_number64 ( fi , label_str , TRUE ) ;\n }\n break ;\n case FT_FLOAT : g_snprintf ( label_str , ITEM_LABEL_LENGTH , \"%s: %.\" G_STRINGIFY ( FLT_DIG ) \"g\" , hfinfo -> name , fvalue_get_floating ( & fi -> value ) ) ;\n break ;\n case FT_DOUBLE : g_snprintf ( label_str , ITEM_LABEL_LENGTH , \"%s: %.\" G_STRINGIFY ( DBL_DIG ) \"g\" , hfinfo -> name , fvalue_get_floating ( & fi -> value ) ) ;\n break ;\n case FT_ABSOLUTE_TIME : tmp = abs_time_to_str ( NULL , ( const nstime_t * ) fvalue_get ( & fi -> value ) , ( absolute_time_display_e ) hfinfo -> display , TRUE ) ;\n label_fill ( label_str , 0 , hfinfo , tmp ) ;\n wmem_free ( NULL , tmp ) ;\n break ;\n case FT_RELATIVE_TIME : tmp = rel_time_to_secs_str ( NULL , ( const nstime_t * ) fvalue_get ( & fi -> value ) ) ;\n g_snprintf ( label_str , ITEM_LABEL_LENGTH , \"%s: %s seconds\" , hfinfo -> name , tmp ) ;\n wmem_free ( NULL , tmp ) ;\n break ;\n case FT_IPXNET : integer = fvalue_get_uinteger ( & fi -> value ) ;\n tmp = get_ipxnet_name ( NULL , integer ) ;\n g_snprintf ( label_str , ITEM_LABEL_LENGTH , \"%s: %s (0x%08X)\" , hfinfo -> name , tmp , integer ) ;\n wmem_free ( NULL , tmp ) ;\n break ;\n case FT_AX25 : addr . type = AT_AX25 ;\n addr . len = AX25_ADDR_LEN ;\n addr . data = ( guint8 * ) fvalue_get ( & fi -> value ) ;\n addr_str = ( char * ) address_to_str ( NULL , & addr ) ;\n g_snprintf ( label_str , ITEM_LABEL_LENGTH , \"%s: %s\" , hfinfo -> name , addr_str ) ;\n wmem_free ( NULL , addr_str ) ;\n break ;\n case FT_VINES : addr . type = vines_address_type ;\n addr . len = VINES_ADDR_LEN ;\n addr . data = ( guint8 * ) fvalue_get ( & fi -> value ) ;\n addr_str = ( char * ) address_to_str ( NULL , & addr ) ;\n g_snprintf ( label_str , ITEM_LABEL_LENGTH , \"%s: %s\" , hfinfo -> name , addr_str ) ;\n wmem_free ( NULL , addr_str ) ;\n break ;\n case FT_ETHER : bytes = ( guint8 * ) fvalue_get ( & fi -> value ) ;\n addr . type = AT_ETHER ;\n addr . len = 6 ;\n addr . data = bytes ;\n addr_str = ( char * ) address_with_resolution_to_str ( NULL , & addr ) ;\n g_snprintf ( label_str , ITEM_LABEL_LENGTH , \"%s: %s\" , hfinfo -> name , addr_str ) ;\n wmem_free ( NULL , addr_str ) ;\n break ;\n case FT_IPv4 : ipv4 = ( ipv4_addr_and_mask * ) fvalue_get ( & fi -> value ) ;\n n_addr = ipv4_get_net_order_addr ( ipv4 ) ;\n addr . type = AT_IPv4 ;\n addr . len = 4 ;\n addr . data = & n_addr ;\n if ( hfinfo -> display == BASE_NETMASK ) {\n addr_str = ( char * ) address_to_str ( NULL , & addr ) ;\n }\n else {\n addr_str = ( char * ) address_with_resolution_to_str ( NULL , & addr ) ;\n }\n g_snprintf ( label_str , ITEM_LABEL_LENGTH , \"%s: %s\" , hfinfo -> name , addr_str ) ;\n wmem_free ( NULL , addr_str ) ;\n break ;\n case FT_IPv6 : bytes = ( guint8 * ) fvalue_get ( & fi -> value ) ;\n addr . type = AT_IPv6 ;\n addr . len = 16 ;\n addr . data = bytes ;\n addr_str = ( char * ) address_with_resolution_to_str ( NULL , & addr ) ;\n g_snprintf ( label_str , ITEM_LABEL_LENGTH , \"%s: %s\" , hfinfo -> name , addr_str ) ;\n wmem_free ( NULL , addr_str ) ;\n break ;\n case FT_FCWWN : addr . type = AT_FCWWN ;\n addr . len = FCWWN_ADDR_LEN ;\n addr . data = ( guint8 * ) fvalue_get ( & fi -> value ) ;\n addr_str = ( char * ) address_with_resolution_to_str ( NULL , & addr ) ;\n g_snprintf ( label_str , ITEM_LABEL_LENGTH , \"%s: %s\" , hfinfo -> name , addr_str ) ;\n wmem_free ( NULL , addr_str ) ;\n break ;\n case FT_GUID : guid = ( e_guid_t * ) fvalue_get ( & fi -> value ) ;\n tmp = guid_to_str ( NULL , guid ) ;\n label_fill ( label_str , 0 , hfinfo , tmp ) ;\n wmem_free ( NULL , tmp ) ;\n break ;\n case FT_OID : bytes = ( guint8 * ) fvalue_get ( & fi -> value ) ;\n name = oid_resolved_from_encoded ( NULL , bytes , fvalue_length ( & fi -> value ) ) ;\n tmp = oid_encoded2string ( NULL , bytes , fvalue_length ( & fi -> value ) ) ;\n if ( name ) {\n label_fill_descr ( label_str , 0 , hfinfo , tmp , name ) ;\n wmem_free ( NULL , name ) ;\n }\n else {\n label_fill ( label_str , 0 , hfinfo , tmp ) ;\n }\n wmem_free ( NULL , tmp ) ;\n break ;\n case FT_REL_OID : bytes = ( guint8 * ) fvalue_get ( & fi -> value ) ;\n name = rel_oid_resolved_from_encoded ( NULL , bytes , fvalue_length ( & fi -> value ) ) ;\n tmp = rel_oid_encoded2string ( NULL , bytes , fvalue_length ( & fi -> value ) ) ;\n if ( name ) {\n label_fill_descr ( label_str , 0 , hfinfo , tmp , name ) ;\n wmem_free ( NULL , name ) ;\n }\n else {\n label_fill ( label_str , 0 , hfinfo , tmp ) ;\n }\n wmem_free ( NULL , tmp ) ;\n break ;\n case FT_SYSTEM_ID : bytes = ( guint8 * ) fvalue_get ( & fi -> value ) ;\n tmp = print_system_id ( NULL , bytes , fvalue_length ( & fi -> value ) ) ;\n label_fill ( label_str , 0 , hfinfo , tmp ) ;\n wmem_free ( NULL , tmp ) ;\n break ;\n case FT_EUI64 : integer64 = fvalue_get_uinteger64 ( & fi -> value ) ;\n addr_str = eui64_to_str ( NULL , integer64 ) ;\n tmp = ( char * ) eui64_to_display ( NULL , integer64 ) ;\n label_fill_descr ( label_str , 0 , hfinfo , tmp , addr_str ) ;\n wmem_free ( NULL , tmp ) ;\n wmem_free ( NULL , addr_str ) ;\n break ;\n case FT_STRING : case FT_STRINGZ : case FT_UINT_STRING : case FT_STRINGZPAD : bytes = ( guint8 * ) fvalue_get ( & fi -> value ) ;\n label_fill ( label_str , 0 , hfinfo , hfinfo_format_text ( hfinfo , bytes ) ) ;\n break ;\n case FT_IEEE_11073_SFLOAT : tmp = fvalue_to_string_repr ( NULL , & fi -> value , FTREPR_DISPLAY , hfinfo -> display ) ;\n g_snprintf ( label_str , ITEM_LABEL_LENGTH , \"%s: %s\" , hfinfo -> name , tmp ) ;\n wmem_free ( NULL , tmp ) ;\n break ;\n case FT_IEEE_11073_FLOAT : tmp = fvalue_to_string_repr ( NULL , & fi -> value , FTREPR_DISPLAY , hfinfo -> display ) ;\n g_snprintf ( label_str , ITEM_LABEL_LENGTH , \"%s: %s\" , hfinfo -> name , tmp ) ;\n wmem_free ( NULL , tmp ) ;\n break ;\n default : g_error ( \"hfinfo->type %d (%s) not handled\\n\" , hfinfo -> type , ftype_name ( hfinfo -> type ) ) ;\n DISSECTOR_ASSERT_NOT_REACHED ( ) ;\n break ;\n }\n }"}
{"idx": 12642, "target": 0, "func": "static void garbagefree ( struct garbage * all ) {\n struct garbage * junk , * next ;\n int i , j ;\n for ( junk = all ;\n junk != NULL ;\n junk = next ) {\n next = junk -> next ;\n for ( j = 0 ;\n j < junk -> cnt ;\n ++ j ) {\n for ( i = 0 ;\n i < junk -> cnts [ j ] ;\n ++ i ) {\n if ( junk -> entries [ j ] [ i ] . type == ps_string || junk -> entries [ j ] [ i ] . type == ps_instr || junk -> entries [ j ] [ i ] . type == ps_lit ) free ( junk -> entries [ j ] [ i ] . u . str ) ;\n }\n free ( junk -> entries [ j ] ) ;\n }\n if ( junk != all ) chunkfree ( junk , sizeof ( struct garbage ) ) ;\n }\n }"}
{"idx": 12643, "target": 0, "func": "TEST_F ( TemplateURLTest , GenerateKeyword ) {\n ASSERT_EQ ( ASCIIToUTF16 ( \"foo\" ) , TemplateURL : : GenerateKeyword ( GURL ( \"http://foo\" ) ) ) ;\n ASSERT_EQ ( ASCIIToUTF16 ( \"foo\" ) , TemplateURL : : GenerateKeyword ( GURL ( \"http://www.foo\" ) ) ) ;\n ASSERT_EQ ( ASCIIToUTF16 ( \"blah\" ) , TemplateURL : : GenerateKeyword ( GURL ( \"http://blah/\" ) ) ) ;\n ASSERT_EQ ( ASCIIToUTF16 ( \"www\" ) , TemplateURL : : GenerateKeyword ( GURL ( \"http://www.\" ) ) ) ;\n ASSERT_EQ ( base : : UTF8ToUTF16 ( \"\\xd0\\xb0\\xd0\\xb1\\xd0\\xb2\" ) , TemplateURL : : GenerateKeyword ( GURL ( \"http://xn--80acd\" ) ) ) ;\n }"}
{"idx": 12644, "target": 0, "func": "static void decode_transform_coeffs_ch ( AC3DecodeContext * s , int blk , int ch , mant_groups * m ) {\n if ( ! s -> channel_uses_aht [ ch ] ) {\n ac3_decode_transform_coeffs_ch ( s , ch , m ) ;\n }\n else {\n int bin ;\n if ( ! blk && CONFIG_EAC3_DECODER ) ff_eac3_decode_transform_coeffs_aht_ch ( s , ch ) ;\n for ( bin = s -> start_freq [ ch ] ;\n bin < s -> end_freq [ ch ] ;\n bin ++ ) {\n s -> fixed_coeffs [ ch ] [ bin ] = s -> pre_mantissa [ ch ] [ bin ] [ blk ] >> s -> dexps [ ch ] [ bin ] ;\n }\n }\n }"}
{"idx": 12645, "target": 0, "func": "static void cancel_activate_callback ( gpointer callback_data ) {\n ActivateParameters * parameters = callback_data ;\n parameters -> timed_wait_active = FALSE ;\n g_cancellable_cancel ( parameters -> cancellable ) ;\n if ( parameters -> files_handle ) {\n nautilus_file_list_cancel_call_when_ready ( parameters -> files_handle ) ;\n parameters -> files_handle = NULL ;\n activation_parameters_free ( parameters ) ;\n }\n }"}
{"idx": 12646, "target": 0, "func": "static Image * ReadTGAImage ( const ImageInfo * image_info , ExceptionInfo * exception ) {\n Image * image ;\n IndexPacket index ;\n MagickBooleanType status ;\n PixelPacket pixel ;\n register IndexPacket * indexes ;\n register PixelPacket * q ;\n register ssize_t i , x ;\n size_t base , flag , offset , real , skip ;\n ssize_t count , y ;\n TGAInfo tga_info ;\n unsigned char j , k , pixels [ 4 ] , runlength ;\n unsigned int alpha_bits ;\n assert ( image_info != ( const ImageInfo * ) NULL ) ;\n assert ( image_info -> signature == MagickSignature ) ;\n if ( image_info -> debug != MagickFalse ) ( void ) LogMagickEvent ( TraceEvent , GetMagickModule ( ) , \"%s\" , image_info -> filename ) ;\n assert ( exception != ( ExceptionInfo * ) NULL ) ;\n assert ( exception -> signature == MagickSignature ) ;\n image = AcquireImage ( image_info ) ;\n status = OpenBlob ( image_info , image , ReadBinaryBlobMode , exception ) ;\n if ( status == MagickFalse ) {\n image = DestroyImageList ( image ) ;\n return ( ( Image * ) NULL ) ;\n }\n count = ReadBlob ( image , 1 , & tga_info . id_length ) ;\n tga_info . colormap_type = ( unsigned char ) ReadBlobByte ( image ) ;\n tga_info . image_type = ( TGAImageType ) ReadBlobByte ( image ) ;\n if ( ( count != 1 ) || ( ( tga_info . image_type != TGAColormap ) && ( tga_info . image_type != TGARGB ) && ( tga_info . image_type != TGAMonochrome ) && ( tga_info . image_type != TGARLEColormap ) && ( tga_info . image_type != TGARLERGB ) && ( tga_info . image_type != TGARLEMonochrome ) ) || ( ( ( tga_info . image_type == TGAColormap ) || ( tga_info . image_type == TGARLEColormap ) ) && ( tga_info . colormap_type == 0 ) ) ) ThrowReaderException ( CorruptImageError , \"ImproperImageHeader\" ) ;\n tga_info . colormap_index = ReadBlobLSBShort ( image ) ;\n tga_info . colormap_length = ReadBlobLSBShort ( image ) ;\n tga_info . colormap_size = ( unsigned char ) ReadBlobByte ( image ) ;\n tga_info . x_origin = ReadBlobLSBShort ( image ) ;\n tga_info . y_origin = ReadBlobLSBShort ( image ) ;\n tga_info . width = ( unsigned short ) ReadBlobLSBShort ( image ) ;\n tga_info . height = ( unsigned short ) ReadBlobLSBShort ( image ) ;\n tga_info . bits_per_pixel = ( unsigned char ) ReadBlobByte ( image ) ;\n tga_info . attributes = ( unsigned char ) ReadBlobByte ( image ) ;\n if ( EOFBlob ( image ) != MagickFalse ) ThrowReaderException ( CorruptImageError , \"UnableToReadImageData\" ) ;\n if ( ( ( ( tga_info . bits_per_pixel <= 1 ) || ( tga_info . bits_per_pixel >= 17 ) ) && ( tga_info . bits_per_pixel != 24 ) && ( tga_info . bits_per_pixel != 32 ) ) ) ThrowReaderException ( CorruptImageError , \"ImproperImageHeader\" ) ;\n image -> columns = tga_info . width ;\n image -> rows = tga_info . height ;\n alpha_bits = ( tga_info . attributes & 0x0FU ) ;\n image -> matte = ( alpha_bits > 0 ) || ( tga_info . bits_per_pixel == 32 ) || ( tga_info . colormap_size == 32 ) ? MagickTrue : MagickFalse ;\n if ( ( tga_info . image_type != TGAColormap ) && ( tga_info . image_type != TGARLEColormap ) ) image -> depth = ( size_t ) ( ( tga_info . bits_per_pixel <= 8 ) ? 8 : ( tga_info . bits_per_pixel <= 16 ) ? 5 : 8 ) ;\n else image -> depth = ( size_t ) ( ( tga_info . colormap_size <= 8 ) ? 8 : ( tga_info . colormap_size <= 16 ) ? 5 : 8 ) ;\n if ( ( tga_info . image_type == TGAColormap ) || ( tga_info . image_type == TGAMonochrome ) || ( tga_info . image_type == TGARLEColormap ) || ( tga_info . image_type == TGARLEMonochrome ) ) image -> storage_class = PseudoClass ;\n image -> compression = NoCompression ;\n if ( ( tga_info . image_type == TGARLEColormap ) || ( tga_info . image_type == TGARLEMonochrome ) || ( tga_info . image_type == TGARLERGB ) ) image -> compression = RLECompression ;\n if ( image -> storage_class == PseudoClass ) {\n if ( tga_info . colormap_type != 0 ) image -> colors = tga_info . colormap_index + tga_info . colormap_length ;\n else {\n size_t one ;\n one = 1 ;\n image -> colors = one << tga_info . bits_per_pixel ;\n if ( AcquireImageColormap ( image , image -> colors ) == MagickFalse ) ThrowReaderException ( ResourceLimitError , \"MemoryAllocationFailed\" ) ;\n }\n }\n if ( tga_info . id_length != 0 ) {\n char * comment ;\n size_t length ;\n length = ( size_t ) tga_info . id_length ;\n comment = ( char * ) NULL ;\n if ( ~ length >= ( MaxTextExtent - 1 ) ) comment = ( char * ) AcquireQuantumMemory ( length + MaxTextExtent , sizeof ( * comment ) ) ;\n if ( comment == ( char * ) NULL ) ThrowReaderException ( ResourceLimitError , \"MemoryAllocationFailed\" ) ;\n ( void ) ReadBlob ( image , tga_info . id_length , ( unsigned char * ) comment ) ;\n comment [ tga_info . id_length ] = '\\0' ;\n ( void ) SetImageProperty ( image , \"comment\" , comment ) ;\n comment = DestroyString ( comment ) ;\n }\n if ( tga_info . attributes & ( 1UL << 4 ) ) {\n if ( tga_info . attributes & ( 1UL << 5 ) ) SetImageArtifact ( image , \"tga:image-origin\" , \"TopRight\" ) ;\n else SetImageArtifact ( image , \"tga:image-origin\" , \"BottomRight\" ) ;\n }\n else {\n if ( tga_info . attributes & ( 1UL << 5 ) ) SetImageArtifact ( image , \"tga:image-origin\" , \"TopLeft\" ) ;\n else SetImageArtifact ( image , \"tga:image-origin\" , \"BottomLeft\" ) ;\n }\n if ( image_info -> ping != MagickFalse ) {\n ( void ) CloseBlob ( image ) ;\n return ( image ) ;\n }\n status = SetImageExtent ( image , image -> columns , image -> rows ) ;\n if ( status == MagickFalse ) {\n InheritException ( exception , & image -> exception ) ;\n return ( DestroyImageList ( image ) ) ;\n }\n ( void ) ResetMagickMemory ( & pixel , 0 , sizeof ( pixel ) ) ;\n pixel . opacity = ( Quantum ) OpaqueOpacity ;\n if ( tga_info . colormap_type != 0 ) {\n if ( image -> colors < tga_info . colormap_index ) image -> colors = tga_info . colormap_index ;\n if ( AcquireImageColormap ( image , image -> colors ) == MagickFalse ) ThrowReaderException ( ResourceLimitError , \"MemoryAllocationFailed\" ) ;\n for ( i = 0 ;\n i < ( ssize_t ) tga_info . colormap_index ;\n i ++ ) image -> colormap [ i ] = pixel ;\n for ( ;\n i < ( ssize_t ) image -> colors ;\n i ++ ) {\n switch ( tga_info . colormap_size ) {\n case 8 : default : {\n pixel . red = ScaleCharToQuantum ( ( unsigned char ) ReadBlobByte ( image ) ) ;\n pixel . green = pixel . red ;\n pixel . blue = pixel . red ;\n break ;\n }\n case 15 : case 16 : {\n QuantumAny range ;\n j = ( unsigned char ) ReadBlobByte ( image ) ;\n k = ( unsigned char ) ReadBlobByte ( image ) ;\n range = GetQuantumRange ( 5UL ) ;\n pixel . red = ScaleAnyToQuantum ( 1UL * ( k & 0x7c ) >> 2 , range ) ;\n pixel . green = ScaleAnyToQuantum ( ( 1UL * ( k & 0x03 ) << 3 ) + ( 1UL * ( j & 0xe0 ) >> 5 ) , range ) ;\n pixel . blue = ScaleAnyToQuantum ( 1UL * ( j & 0x1f ) , range ) ;\n break ;\n }\n case 24 : {\n pixel . blue = ScaleCharToQuantum ( ( unsigned char ) ReadBlobByte ( image ) ) ;\n pixel . green = ScaleCharToQuantum ( ( unsigned char ) ReadBlobByte ( image ) ) ;\n pixel . red = ScaleCharToQuantum ( ( unsigned char ) ReadBlobByte ( image ) ) ;\n break ;\n }\n case 32 : {\n pixel . blue = ScaleCharToQuantum ( ( unsigned char ) ReadBlobByte ( image ) ) ;\n pixel . green = ScaleCharToQuantum ( ( unsigned char ) ReadBlobByte ( image ) ) ;\n pixel . red = ScaleCharToQuantum ( ( unsigned char ) ReadBlobByte ( image ) ) ;\n pixel . opacity = ( Quantum ) ( QuantumRange - ScaleCharToQuantum ( ( unsigned char ) ReadBlobByte ( image ) ) ) ;\n break ;\n }\n }\n image -> colormap [ i ] = pixel ;\n }\n }\n base = 0 ;\n flag = 0 ;\n skip = MagickFalse ;\n real = 0 ;\n index = ( IndexPacket ) 0 ;\n runlength = 0 ;\n offset = 0 ;\n for ( y = 0 ;\n y < ( ssize_t ) image -> rows ;\n y ++ ) {\n real = offset ;\n if ( ( ( unsigned char ) ( tga_info . attributes & 0x20 ) >> 5 ) == 0 ) real = image -> rows - real - 1 ;\n q = QueueAuthenticPixels ( image , 0 , ( ssize_t ) real , image -> columns , 1 , exception ) ;\n if ( q == ( PixelPacket * ) NULL ) break ;\n indexes = GetAuthenticIndexQueue ( image ) ;\n for ( x = 0 ;\n x < ( ssize_t ) image -> columns ;\n x ++ ) {\n if ( ( tga_info . image_type == TGARLEColormap ) || ( tga_info . image_type == TGARLERGB ) || ( tga_info . image_type == TGARLEMonochrome ) ) {\n if ( runlength != 0 ) {\n runlength -- ;\n skip = flag != 0 ;\n }\n else {\n count = ReadBlob ( image , 1 , & runlength ) ;\n if ( count != 1 ) ThrowReaderException ( CorruptImageError , \"UnableToReadImageData\" ) ;\n flag = runlength & 0x80 ;\n if ( flag != 0 ) runlength -= 128 ;\n skip = MagickFalse ;\n }\n }\n if ( skip == MagickFalse ) switch ( tga_info . bits_per_pixel ) {\n case 8 : default : {\n index = ( IndexPacket ) ReadBlobByte ( image ) ;\n if ( tga_info . colormap_type != 0 ) pixel = image -> colormap [ ( ssize_t ) ConstrainColormapIndex ( image , 1UL * index ) ] ;\n else {\n pixel . red = ScaleCharToQuantum ( ( unsigned char ) index ) ;\n pixel . green = ScaleCharToQuantum ( ( unsigned char ) index ) ;\n pixel . blue = ScaleCharToQuantum ( ( unsigned char ) index ) ;\n }\n break ;\n }\n case 15 : case 16 : {\n QuantumAny range ;\n if ( ReadBlob ( image , 2 , pixels ) != 2 ) ThrowReaderException ( CorruptImageError , \"UnableToReadImageData\" ) ;\n j = pixels [ 0 ] ;\n k = pixels [ 1 ] ;\n range = GetQuantumRange ( 5UL ) ;\n pixel . red = ScaleAnyToQuantum ( 1UL * ( k & 0x7c ) >> 2 , range ) ;\n pixel . green = ScaleAnyToQuantum ( ( 1UL * ( k & 0x03 ) << 3 ) + ( 1UL * ( j & 0xe0 ) >> 5 ) , range ) ;\n pixel . blue = ScaleAnyToQuantum ( 1UL * ( j & 0x1f ) , range ) ;\n if ( image -> matte != MagickFalse ) pixel . opacity = ( k & 0x80 ) == 0 ? ( Quantum ) TransparentOpacity : ( Quantum ) OpaqueOpacity ;\n if ( image -> storage_class == PseudoClass ) index = ConstrainColormapIndex ( image , ( ( size_t ) k << 8 ) + j ) ;\n break ;\n }\n case 24 : {\n if ( ReadBlob ( image , 3 , pixels ) != 3 ) ThrowReaderException ( CorruptImageError , \"UnableToReadImageData\" ) ;\n pixel . blue = ScaleCharToQuantum ( pixels [ 0 ] ) ;\n pixel . green = ScaleCharToQuantum ( pixels [ 1 ] ) ;\n pixel . red = ScaleCharToQuantum ( pixels [ 2 ] ) ;\n break ;\n }\n case 32 : {\n if ( ReadBlob ( image , 4 , pixels ) != 4 ) ThrowReaderException ( CorruptImageError , \"UnableToReadImageData\" ) ;\n pixel . blue = ScaleCharToQuantum ( pixels [ 0 ] ) ;\n pixel . green = ScaleCharToQuantum ( pixels [ 1 ] ) ;\n pixel . red = ScaleCharToQuantum ( pixels [ 2 ] ) ;\n pixel . opacity = ( Quantum ) ( QuantumRange - ScaleCharToQuantum ( pixels [ 3 ] ) ) ;\n break ;\n }\n }\n if ( status == MagickFalse ) ThrowReaderException ( CorruptImageError , \"UnableToReadImageData\" ) ;\n if ( image -> storage_class == PseudoClass ) SetPixelIndex ( indexes + x , index ) ;\n SetPixelRed ( q , pixel . red ) ;\n SetPixelGreen ( q , pixel . green ) ;\n SetPixelBlue ( q , pixel . blue ) ;\n if ( image -> matte != MagickFalse ) SetPixelOpacity ( q , pixel . opacity ) ;\n q ++ ;\n }\n if ( ( ( unsigned char ) ( tga_info . attributes & 0xc0 ) >> 6 ) == 2 ) offset += 2 ;\n else offset ++ ;\n if ( offset >= image -> rows ) {\n base ++ ;\n offset = base ;\n }\n if ( SyncAuthenticPixels ( image , exception ) == MagickFalse ) break ;\n if ( image -> previous == ( Image * ) NULL ) {\n status = SetImageProgress ( image , LoadImageTag , ( MagickOffsetType ) y , image -> rows ) ;\n if ( status == MagickFalse ) break ;\n }\n }\n if ( EOFBlob ( image ) != MagickFalse ) ThrowFileException ( exception , CorruptImageError , \"UnexpectedEndOfFile\" , image -> filename ) ;\n ( void ) CloseBlob ( image ) ;\n return ( GetFirstImageInList ( image ) ) ;\n }"}
{"idx": 12647, "target": 0, "func": "struct evhttp_request * evhttp_request_new ( void ( * cb ) ( struct evhttp_request * , void * ) , void * arg ) {\n struct evhttp_request * req = NULL ;\n if ( ( req = calloc ( 1 , sizeof ( struct evhttp_request ) ) ) == NULL ) {\n event_warn ( \"%s: calloc\" , __func__ ) ;\n goto error ;\n }\n req -> kind = EVHTTP_RESPONSE ;\n req -> input_headers = calloc ( 1 , sizeof ( struct evkeyvalq ) ) ;\n if ( req -> input_headers == NULL ) {\n event_warn ( \"%s: calloc\" , __func__ ) ;\n goto error ;\n }\n TAILQ_INIT ( req -> input_headers ) ;\n req -> output_headers = calloc ( 1 , sizeof ( struct evkeyvalq ) ) ;\n if ( req -> output_headers == NULL ) {\n event_warn ( \"%s: calloc\" , __func__ ) ;\n goto error ;\n }\n TAILQ_INIT ( req -> output_headers ) ;\n if ( ( req -> input_buffer = evbuffer_new ( ) ) == NULL ) {\n event_warn ( \"%s: evbuffer_new\" , __func__ ) ;\n goto error ;\n }\n if ( ( req -> output_buffer = evbuffer_new ( ) ) == NULL ) {\n event_warn ( \"%s: evbuffer_new\" , __func__ ) ;\n goto error ;\n }\n req -> cb = cb ;\n req -> cb_arg = arg ;\n return ( req ) ;\n error : if ( req != NULL ) evhttp_request_free ( req ) ;\n return ( NULL ) ;\n }"}
{"idx": 12648, "target": 0, "func": "static int dissect_h245_CmdR_multiplex ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_CmdR_multiplex , CmdR_multiplex_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 12649, "target": 0, "func": "static void U_CALLCONV _UTF7Reset ( UConverter * cnv , UConverterResetChoice choice ) {\n if ( choice <= UCNV_RESET_TO_UNICODE ) {\n cnv -> toUnicodeStatus = 0x1000000 ;\n cnv -> toULength = 0 ;\n }\n if ( choice != UCNV_RESET_TO_UNICODE ) {\n cnv -> fromUnicodeStatus = ( cnv -> fromUnicodeStatus & 0xf0000000 ) | 0x1000000 ;\n }\n }"}
{"idx": 12650, "target": 0, "func": "static int process_principals ( struct ssh * ssh , FILE * f , const char * file , const struct sshkey_cert * cert , struct sshauthopt * * authoptsp ) {\n char loc [ 256 ] , * line = NULL , * cp , * ep ;\n size_t linesize = 0 ;\n u_long linenum = 0 ;\n u_int found_principal = 0 ;\n if ( authoptsp != NULL ) * authoptsp = NULL ;\n while ( getline ( & line , & linesize , f ) != - 1 ) {\n linenum ++ ;\n if ( found_principal ) continue ;\n for ( cp = line ;\n * cp == ' ' || * cp == '\\t' ;\n cp ++ ) ;\n if ( ( ep = strchr ( cp , '#' ) ) != NULL ) * ep = '\\0' ;\n if ( ! * cp || * cp == '\\n' ) continue ;\n snprintf ( loc , sizeof ( loc ) , \"%.200s:%lu\" , file , linenum ) ;\n if ( check_principals_line ( ssh , cp , cert , loc , authoptsp ) == 0 ) found_principal = 1 ;\n }\n free ( line ) ;\n return found_principal ;\n }"}
{"idx": 12651, "target": 0, "func": "static const gchar * gst_asf_demux_get_gst_tag_from_tag_name ( const gchar * name_utf8 ) {\n const struct {\n const gchar * asf_name ;\n const gchar * gst_name ;\n }\n tags [ ] = {\n {\n \"WM/Genre\" , GST_TAG_GENRE }\n , {\n \"WM/AlbumTitle\" , GST_TAG_ALBUM }\n , {\n \"WM/AlbumArtist\" , GST_TAG_ARTIST }\n , {\n \"WM/Picture\" , GST_TAG_IMAGE }\n , {\n \"WM/Track\" , GST_TAG_TRACK_NUMBER }\n , {\n \"WM/TrackNumber\" , GST_TAG_TRACK_NUMBER }\n , {\n \"WM/Year\" , GST_TAG_DATE_TIME }\n }\n ;\n gsize out ;\n guint i ;\n if ( name_utf8 == NULL ) {\n GST_WARNING ( \"Failed to convert name to UTF8, skipping\" ) ;\n return NULL ;\n }\n out = strlen ( name_utf8 ) ;\n for ( i = 0 ;\n i < G_N_ELEMENTS ( tags ) ;\n ++ i ) {\n if ( strncmp ( tags [ i ] . asf_name , name_utf8 , out ) == 0 ) {\n GST_LOG ( \"map tagname '%s' -> '%s'\" , name_utf8 , tags [ i ] . gst_name ) ;\n return tags [ i ] . gst_name ;\n }\n }\n return NULL ;\n }"}
{"idx": 12652, "target": 0, "func": "static bool tscdeadline_needed ( void * opaque ) {\n X86CPU * cpu = opaque ;\n CPUX86State * env = & cpu -> env ;\n return env -> tsc_deadline != 0 ;\n }"}
{"idx": 12653, "target": 0, "func": "static int dissect_h225_CapacityReportingCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_CapacityReportingCapability , CapacityReportingCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 12654, "target": 0, "func": "static int dissect_h245_AuthenticationCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_AuthenticationCapability , AuthenticationCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 12655, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , TestIsRegistered ) {\n ProtocolHandler ph1 = CreateProtocolHandler ( \"test\" , \"test1\" ) ;\n ProtocolHandler ph2 = CreateProtocolHandler ( \"test\" , \"test2\" ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph2 ) ;\n ASSERT_TRUE ( registry ( ) -> IsRegistered ( ph1 ) ) ;\n }"}
{"idx": 12656, "target": 0, "func": "static int sort_insert_key ( MI_SORT_PARAM * sort_param , register SORT_KEY_BLOCKS * key_block , uchar * key , my_off_t prev_block ) {\n uint a_length , t_length , nod_flag ;\n my_off_t filepos , key_file_length ;\n uchar * anc_buff , * lastkey ;\n MI_KEY_PARAM s_temp ;\n MI_INFO * info ;\n MI_KEYDEF * keyinfo = sort_param -> keyinfo ;\n SORT_INFO * sort_info = sort_param -> sort_info ;\n MI_CHECK * param = sort_info -> param ;\n DBUG_ENTER ( \"sort_insert_key\" ) ;\n anc_buff = key_block -> buff ;\n info = sort_info -> info ;\n lastkey = key_block -> lastkey ;\n nod_flag = ( key_block == sort_info -> key_block ? 0 : info -> s -> base . key_reflength ) ;\n if ( ! key_block -> inited ) {\n key_block -> inited = 1 ;\n if ( key_block == sort_info -> key_block_end ) {\n mi_check_print_error ( param , \"To many key-block-levels;\n Try increasing sort_key_blocks\" ) ;\n DBUG_RETURN ( 1 ) ;\n }\n a_length = 2 + nod_flag ;\n key_block -> end_pos = anc_buff + 2 ;\n lastkey = 0 ;\n }\n else a_length = mi_getint ( anc_buff ) ;\n if ( nod_flag ) _mi_kpointer ( info , key_block -> end_pos , prev_block ) ;\n t_length = ( * keyinfo -> pack_key ) ( keyinfo , nod_flag , ( uchar * ) 0 , lastkey , lastkey , key , & s_temp ) ;\n ( * keyinfo -> store_key ) ( keyinfo , key_block -> end_pos + nod_flag , & s_temp ) ;\n a_length += t_length ;\n mi_putint ( anc_buff , a_length , nod_flag ) ;\n key_block -> end_pos += t_length ;\n if ( a_length <= keyinfo -> block_length ) {\n ( void ) _mi_move_key ( keyinfo , key_block -> lastkey , key ) ;\n key_block -> last_length = a_length - t_length ;\n DBUG_RETURN ( 0 ) ;\n }\n mi_putint ( anc_buff , key_block -> last_length , nod_flag ) ;\n bzero ( ( uchar * ) anc_buff + key_block -> last_length , keyinfo -> block_length - key_block -> last_length ) ;\n key_file_length = info -> state -> key_file_length ;\n if ( ( filepos = _mi_new ( info , keyinfo , DFLT_INIT_HITS ) ) == HA_OFFSET_ERROR ) DBUG_RETURN ( 1 ) ;\n if ( key_file_length == info -> state -> key_file_length ) {\n if ( _mi_write_keypage ( info , keyinfo , filepos , DFLT_INIT_HITS , anc_buff ) ) DBUG_RETURN ( 1 ) ;\n }\n else if ( mysql_file_pwrite ( info -> s -> kfile , ( uchar * ) anc_buff , ( uint ) keyinfo -> block_length , filepos , param -> myf_rw ) ) DBUG_RETURN ( 1 ) ;\n DBUG_DUMP ( \"buff\" , ( uchar * ) anc_buff , mi_getint ( anc_buff ) ) ;\n if ( sort_insert_key ( sort_param , key_block + 1 , key_block -> lastkey , filepos ) ) DBUG_RETURN ( 1 ) ;\n key_block -> inited = 0 ;\n DBUG_RETURN ( sort_insert_key ( sort_param , key_block , key , prev_block ) ) ;\n }"}
{"idx": 12657, "target": 0, "func": "static void sum_intra_stats ( FRAME_COUNTS * counts , const MODE_INFO * mi ) {\n const PREDICTION_MODE y_mode = mi -> mbmi . mode ;\n const PREDICTION_MODE uv_mode = mi -> mbmi . uv_mode ;\n const BLOCK_SIZE bsize = mi -> mbmi . sb_type ;\n if ( bsize < BLOCK_8X8 ) {\n int idx , idy ;\n const int num_4x4_w = num_4x4_blocks_wide_lookup [ bsize ] ;\n const int num_4x4_h = num_4x4_blocks_high_lookup [ bsize ] ;\n for ( idy = 0 ;\n idy < 2 ;\n idy += num_4x4_h ) for ( idx = 0 ;\n idx < 2 ;\n idx += num_4x4_w ) ++ counts -> y_mode [ 0 ] [ mi -> bmi [ idy * 2 + idx ] . as_mode ] ;\n }\n else {\n ++ counts -> y_mode [ size_group_lookup [ bsize ] ] [ y_mode ] ;\n }\n ++ counts -> uv_mode [ y_mode ] [ uv_mode ] ;\n }"}
{"idx": 12658, "target": 0, "func": "ulong acl_get ( const char * host , const char * ip , const char * user , const char * db , my_bool db_is_pattern ) {\n ulong host_access = ~ ( ulong ) 0 , db_access = 0 ;\n uint i ;\n size_t key_length , copy_length ;\n char key [ ACL_KEY_LENGTH ] , * tmp_db , * end ;\n acl_entry * entry ;\n DBUG_ENTER ( \"acl_get\" ) ;\n copy_length = ( size_t ) ( strlen ( ip ? ip : \"\" ) + strlen ( user ? user : \"\" ) + strlen ( db ? db : \"\" ) ) + 2 ;\n if ( copy_length >= ACL_KEY_LENGTH ) DBUG_RETURN ( 0 ) ;\n VOID ( pthread_mutex_lock ( & acl_cache -> lock ) ) ;\n end = strmov ( ( tmp_db = strmov ( strmov ( key , ip ? ip : \"\" ) + 1 , user ) + 1 ) , db ) ;\n if ( lower_case_table_names ) {\n my_casedn_str ( files_charset_info , tmp_db ) ;\n db = tmp_db ;\n }\n key_length = ( size_t ) ( end - key ) ;\n if ( ! db_is_pattern && ( entry = ( acl_entry * ) acl_cache -> search ( ( uchar * ) key , key_length ) ) ) {\n db_access = entry -> access ;\n VOID ( pthread_mutex_unlock ( & acl_cache -> lock ) ) ;\n DBUG_PRINT ( \"exit\" , ( \"access: 0x%lx\" , db_access ) ) ;\n DBUG_RETURN ( db_access ) ;\n }\n for ( i = 0 ;\n i < acl_dbs . elements ;\n i ++ ) {\n ACL_DB * acl_db = dynamic_element ( & acl_dbs , i , ACL_DB * ) ;\n if ( ! acl_db -> user || ! strcmp ( user , acl_db -> user ) ) {\n if ( compare_hostname ( & acl_db -> host , host , ip ) ) {\n if ( ! acl_db -> db || ! wild_compare ( db , acl_db -> db , db_is_pattern ) ) {\n db_access = acl_db -> access ;\n if ( acl_db -> host . hostname ) goto exit ;\n break ;\n }\n }\n }\n }\n if ( ! db_access ) goto exit ;\n host_access = 0 ;\n for ( i = 0 ;\n i < acl_hosts . elements ;\n i ++ ) {\n ACL_HOST * acl_host = dynamic_element ( & acl_hosts , i , ACL_HOST * ) ;\n if ( compare_hostname ( & acl_host -> host , host , ip ) ) {\n if ( ! acl_host -> db || ! wild_compare ( db , acl_host -> db , db_is_pattern ) ) {\n host_access = acl_host -> access ;\n break ;\n }\n }\n }\n exit : if ( ! db_is_pattern && ( entry = ( acl_entry * ) malloc ( sizeof ( acl_entry ) + key_length ) ) ) {\n entry -> access = ( db_access & host_access ) ;\n entry -> length = key_length ;\n memcpy ( ( uchar * ) entry -> key , key , key_length ) ;\n acl_cache -> add ( entry ) ;\n }\n VOID ( pthread_mutex_unlock ( & acl_cache -> lock ) ) ;\n DBUG_PRINT ( \"exit\" , ( \"access: 0x%lx\" , db_access & host_access ) ) ;\n DBUG_RETURN ( db_access & host_access ) ;\n }"}
{"idx": 12659, "target": 0, "func": "static int SpoolssSetPrinterData_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n proto_item * hidden_item ;\n hidden_item = proto_tree_add_uint ( tree , hf_printerdata , tvb , offset , 0 , 1 ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 12660, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize ) ;\n DECL_PIOCTL ( PGetCacheSize ) ;\n DECL_PIOCTL ( PRemoveCallBack ) ;\n DECL_PIOCTL ( PNewCell ) ;\n DECL_PIOCTL ( PNewAlias ) ;\n DECL_PIOCTL ( PListCells ) ;\n DECL_PIOCTL ( PListAliases ) ;\n DECL_PIOCTL ( PRemoveMount ) ;\n DECL_PIOCTL ( PGetCellStatus ) ;\n DECL_PIOCTL ( PSetCellStatus ) ;\n DECL_PIOCTL ( PFlushVolumeData ) ;\n DECL_PIOCTL ( PFlushAllVolumeData ) ;\n DECL_PIOCTL ( PGetVnodeXStatus ) ;\n DECL_PIOCTL ( PGetVnodeXStatus2 ) ;\n DECL_PIOCTL ( PSetSysName ) ;\n DECL_PIOCTL ( PSetSPrefs ) ;\n DECL_PIOCTL ( PSetSPrefs33 ) ;\n DECL_PIOCTL ( PGetSPrefs ) ;\n DECL_PIOCTL ( PExportAfs ) ;\n DECL_PIOCTL ( PGag ) ;\n DECL_PIOCTL ( PTwiddleRx ) ;\n DECL_PIOCTL ( PGetInitParams ) ;\n DECL_PIOCTL ( PGetRxkcrypt ) ;\n DECL_PIOCTL ( PSetRxkcrypt ) ;\n DECL_PIOCTL ( PGetCPrefs ) ;\n DECL_PIOCTL ( PSetCPrefs ) ;\n DECL_PIOCTL ( PFlushMount ) ;\n DECL_PIOCTL ( PRxStatProc ) ;\n DECL_PIOCTL ( PRxStatPeer )"}
{"idx": 12661, "target": 0, "func": "static int show_starttime ( THD * thd , SHOW_VAR * var , char * buff ) {\n var -> type = SHOW_LONG ;\n var -> value = buff ;\n * ( ( long * ) buff ) = ( long ) ( thd -> query_start ( ) - server_start_time ) ;\n return 0 ;\n }"}
{"idx": 12662, "target": 0, "func": "static int parse_RowsBuffer ( tvbuff_t * tvb , packet_info * pinfo , int offset , guint32 num_rows , struct CPMSetBindingsIn * bindingsin , struct rows_data * rowsin , gboolean is64bit , proto_tree * parent_tree , const char * fmt , ... ) {\n proto_tree * tree ;\n proto_item * item ;\n guint32 num ;\n const char * txt ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_GetRowsRow , & item , txt ) ;\n for ( num = 0 ;\n num < num_rows ;\n ++ num ) {\n guint32 col ;\n proto_tree * row_tree ;\n row_tree = proto_tree_add_subtree_format ( tree , tvb , offset , 0 , ett_GetRowsRow , NULL , \"Row[%d]\" , num ) ;\n for ( col = 0 ;\n col < bindingsin -> ccolumns ;\n col ++ ) {\n parse_RowsBufferCol ( tvb , pinfo , offset , num , col , bindingsin , rowsin , is64bit , row_tree , \"Col[%d]\" , col ) ;\n }\n }\n return offset ;\n }"}
{"idx": 12663, "target": 0, "func": "static void * Type_LUTB2A_Read ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number * nItems , cmsUInt32Number SizeOfTag ) {\n cmsUInt8Number inputChan ;\n cmsUInt8Number outputChan ;\n cmsUInt32Number BaseOffset ;\n cmsUInt32Number offsetB ;\n cmsUInt32Number offsetMat ;\n cmsUInt32Number offsetM ;\n cmsUInt32Number offsetC ;\n cmsUInt32Number offsetA ;\n cmsPipeline * NewLUT = NULL ;\n BaseOffset = io -> Tell ( io ) - sizeof ( _cmsTagBase ) ;\n if ( ! _cmsReadUInt8Number ( io , & inputChan ) ) return NULL ;\n if ( ! _cmsReadUInt8Number ( io , & outputChan ) ) return NULL ;\n if ( ! _cmsReadUInt16Number ( io , NULL ) ) return NULL ;\n if ( ! _cmsReadUInt32Number ( io , & offsetB ) ) return NULL ;\n if ( ! _cmsReadUInt32Number ( io , & offsetMat ) ) return NULL ;\n if ( ! _cmsReadUInt32Number ( io , & offsetM ) ) return NULL ;\n if ( ! _cmsReadUInt32Number ( io , & offsetC ) ) return NULL ;\n if ( ! _cmsReadUInt32Number ( io , & offsetA ) ) return NULL ;\n NewLUT = cmsPipelineAlloc ( self -> ContextID , inputChan , outputChan ) ;\n if ( NewLUT == NULL ) return NULL ;\n if ( offsetB != 0 ) {\n if ( ! cmsPipelineInsertStage ( NewLUT , cmsAT_END , ReadSetOfCurves ( self , io , BaseOffset + offsetB , inputChan ) ) ) goto Error ;\n }\n if ( offsetMat != 0 ) {\n if ( ! cmsPipelineInsertStage ( NewLUT , cmsAT_END , ReadMatrix ( self , io , BaseOffset + offsetMat ) ) ) goto Error ;\n }\n if ( offsetM != 0 ) {\n if ( ! cmsPipelineInsertStage ( NewLUT , cmsAT_END , ReadSetOfCurves ( self , io , BaseOffset + offsetM , inputChan ) ) ) goto Error ;\n }\n if ( offsetC != 0 ) {\n if ( ! cmsPipelineInsertStage ( NewLUT , cmsAT_END , ReadCLUT ( self , io , BaseOffset + offsetC , inputChan , outputChan ) ) ) goto Error ;\n }\n if ( offsetA != 0 ) {\n if ( ! cmsPipelineInsertStage ( NewLUT , cmsAT_END , ReadSetOfCurves ( self , io , BaseOffset + offsetA , outputChan ) ) ) goto Error ;\n }\n * nItems = 1 ;\n return NewLUT ;\n Error : cmsPipelineFree ( NewLUT ) ;\n return NULL ;\n cmsUNUSED_PARAMETER ( SizeOfTag ) ;\n }"}
{"idx": 12664, "target": 0, "func": "static size_t my_setstacksize ( pthread_attr_t * attr , size_t stacksize ) {\n size_t guard_size __attribute__ ( ( unused ) ) = 0 ;\n # if defined ( __ia64__ ) || defined ( __ia64 ) stacksize *= 2 ;\n # endif # ifdef HAVE_PTHREAD_ATTR_GETGUARDSIZE if ( pthread_attr_getguardsize ( attr , & guard_size ) ) guard_size = 0 ;\n # endif pthread_attr_setstacksize ( attr , stacksize + guard_size ) ;\n # ifdef HAVE_PTHREAD_ATTR_GETSTACKSIZE {\n size_t real_stack_size = 0 ;\n if ( pthread_attr_getstacksize ( attr , & real_stack_size ) == 0 && real_stack_size > guard_size ) {\n real_stack_size -= guard_size ;\n if ( real_stack_size < stacksize ) {\n if ( global_system_variables . log_warnings ) sql_print_warning ( \"Asked for %zu thread stack, but got %zu\" , stacksize , real_stack_size ) ;\n stacksize = real_stack_size ;\n }\n }\n }\n # endif # if defined ( __ia64__ ) || defined ( __ia64 ) stacksize /= 2 ;\n # endif return stacksize ;\n }"}
{"idx": 12665, "target": 1, "func": "static int flic_decode_frame_8BPP ( AVCodecContext * avctx , void * data , int * got_frame , const uint8_t * buf , int buf_size ) {\n FlicDecodeContext * s = avctx -> priv_data ;\n GetByteContext g2 ;\n int stream_ptr_after_color_chunk ;\n int pixel_ptr ;\n int palette_ptr ;\n unsigned char palette_idx1 ;\n unsigned char palette_idx2 ;\n unsigned int frame_size ;\n int num_chunks ;\n unsigned int chunk_size ;\n int chunk_type ;\n int i , j , ret ;\n int color_packets ;\n int color_changes ;\n int color_shift ;\n unsigned char r , g , b ;\n int lines ;\n int compressed_lines ;\n int starting_line ;\n signed short line_packets ;\n int y_ptr ;\n int byte_run ;\n int pixel_skip ;\n int pixel_countdown ;\n unsigned char * pixels ;\n unsigned int pixel_limit ;\n bytestream2_init ( & g2 , buf , buf_size ) ;\n s -> frame . reference = 1 ;\n s -> frame . buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE ;\n if ( ( ret = avctx -> reget_buffer ( avctx , & s -> frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n pixels = s -> frame . data [ 0 ] ;\n pixel_limit = s -> avctx -> height * s -> frame . linesize [ 0 ] ;\n frame_size = bytestream2_get_le32 ( & g2 ) ;\n bytestream2_skip ( & g2 , 2 ) ;\n num_chunks = bytestream2_get_le16 ( & g2 ) ;\n bytestream2_skip ( & g2 , 8 ) ;\n frame_size -= 16 ;\n while ( ( frame_size > 0 ) && ( num_chunks > 0 ) ) {\n chunk_size = bytestream2_get_le32 ( & g2 ) ;\n chunk_type = bytestream2_get_le16 ( & g2 ) ;\n switch ( chunk_type ) {\n case FLI_256_COLOR : case FLI_COLOR : stream_ptr_after_color_chunk = bytestream2_tell ( & g2 ) + chunk_size - 6 ;\n if ( ( chunk_type == FLI_256_COLOR ) && ( s -> fli_type != FLC_MAGIC_CARPET_SYNTHETIC_TYPE_CODE ) ) color_shift = 0 ;\n else color_shift = 2 ;\n color_packets = bytestream2_get_le16 ( & g2 ) ;\n palette_ptr = 0 ;\n for ( i = 0 ;\n i < color_packets ;\n i ++ ) {\n palette_ptr += bytestream2_get_byte ( & g2 ) ;\n color_changes = bytestream2_get_byte ( & g2 ) ;\n if ( color_changes == 0 ) color_changes = 256 ;\n for ( j = 0 ;\n j < color_changes ;\n j ++ ) {\n unsigned int entry ;\n if ( ( unsigned ) palette_ptr >= 256 ) palette_ptr = 0 ;\n r = bytestream2_get_byte ( & g2 ) << color_shift ;\n g = bytestream2_get_byte ( & g2 ) << color_shift ;\n b = bytestream2_get_byte ( & g2 ) << color_shift ;\n entry = ( r << 16 ) | ( g << 8 ) | b ;\n if ( s -> palette [ palette_ptr ] != entry ) s -> new_palette = 1 ;\n s -> palette [ palette_ptr ++ ] = entry ;\n }\n }\n if ( stream_ptr_after_color_chunk - bytestream2_tell ( & g2 ) > 0 ) bytestream2_skip ( & g2 , stream_ptr_after_color_chunk - bytestream2_tell ( & g2 ) ) ;\n break ;\n case FLI_DELTA : y_ptr = 0 ;\n compressed_lines = bytestream2_get_le16 ( & g2 ) ;\n while ( compressed_lines > 0 ) {\n line_packets = bytestream2_get_le16 ( & g2 ) ;\n if ( ( line_packets & 0xC000 ) == 0xC000 ) {\n line_packets = - line_packets ;\n y_ptr += line_packets * s -> frame . linesize [ 0 ] ;\n }\n else if ( ( line_packets & 0xC000 ) == 0x4000 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Undefined opcode (%x) in DELTA_FLI\\n\" , line_packets ) ;\n }\n else if ( ( line_packets & 0xC000 ) == 0x8000 ) {\n pixel_ptr = y_ptr + s -> frame . linesize [ 0 ] - 1 ;\n CHECK_PIXEL_PTR ( 0 ) ;\n pixels [ pixel_ptr ] = line_packets & 0xff ;\n }\n else {\n compressed_lines -- ;\n pixel_ptr = y_ptr ;\n CHECK_PIXEL_PTR ( 0 ) ;\n pixel_countdown = s -> avctx -> width ;\n for ( i = 0 ;\n i < line_packets ;\n i ++ ) {\n pixel_skip = bytestream2_get_byte ( & g2 ) ;\n pixel_ptr += pixel_skip ;\n pixel_countdown -= pixel_skip ;\n byte_run = sign_extend ( bytestream2_get_byte ( & g2 ) , 8 ) ;\n if ( byte_run < 0 ) {\n byte_run = - byte_run ;\n palette_idx1 = bytestream2_get_byte ( & g2 ) ;\n palette_idx2 = bytestream2_get_byte ( & g2 ) ;\n CHECK_PIXEL_PTR ( byte_run * 2 ) ;\n for ( j = 0 ;\n j < byte_run ;\n j ++ , pixel_countdown -= 2 ) {\n pixels [ pixel_ptr ++ ] = palette_idx1 ;\n pixels [ pixel_ptr ++ ] = palette_idx2 ;\n }\n }\n else {\n CHECK_PIXEL_PTR ( byte_run * 2 ) ;\n for ( j = 0 ;\n j < byte_run * 2 ;\n j ++ , pixel_countdown -- ) {\n pixels [ pixel_ptr ++ ] = bytestream2_get_byte ( & g2 ) ;\n }\n }\n }\n y_ptr += s -> frame . linesize [ 0 ] ;\n }\n }\n break ;\n case FLI_LC : starting_line = bytestream2_get_le16 ( & g2 ) ;\n y_ptr = 0 ;\n y_ptr += starting_line * s -> frame . linesize [ 0 ] ;\n compressed_lines = bytestream2_get_le16 ( & g2 ) ;\n while ( compressed_lines > 0 ) {\n pixel_ptr = y_ptr ;\n CHECK_PIXEL_PTR ( 0 ) ;\n pixel_countdown = s -> avctx -> width ;\n line_packets = bytestream2_get_byte ( & g2 ) ;\n if ( line_packets > 0 ) {\n for ( i = 0 ;\n i < line_packets ;\n i ++ ) {\n pixel_skip = bytestream2_get_byte ( & g2 ) ;\n pixel_ptr += pixel_skip ;\n pixel_countdown -= pixel_skip ;\n byte_run = sign_extend ( bytestream2_get_byte ( & g2 ) , 8 ) ;\n if ( byte_run > 0 ) {\n CHECK_PIXEL_PTR ( byte_run ) ;\n for ( j = 0 ;\n j < byte_run ;\n j ++ , pixel_countdown -- ) {\n pixels [ pixel_ptr ++ ] = bytestream2_get_byte ( & g2 ) ;\n }\n }\n else if ( byte_run < 0 ) {\n byte_run = - byte_run ;\n palette_idx1 = bytestream2_get_byte ( & g2 ) ;\n CHECK_PIXEL_PTR ( byte_run ) ;\n for ( j = 0 ;\n j < byte_run ;\n j ++ , pixel_countdown -- ) {\n pixels [ pixel_ptr ++ ] = palette_idx1 ;\n }\n }\n }\n }\n y_ptr += s -> frame . linesize [ 0 ] ;\n compressed_lines -- ;\n }\n break ;\n case FLI_BLACK : memset ( pixels , 0 , s -> frame . linesize [ 0 ] * s -> avctx -> height ) ;\n break ;\n case FLI_BRUN : y_ptr = 0 ;\n for ( lines = 0 ;\n lines < s -> avctx -> height ;\n lines ++ ) {\n pixel_ptr = y_ptr ;\n bytestream2_skip ( & g2 , 1 ) ;\n pixel_countdown = s -> avctx -> width ;\n while ( pixel_countdown > 0 ) {\n byte_run = sign_extend ( bytestream2_get_byte ( & g2 ) , 8 ) ;\n if ( ! byte_run ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid byte run value.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( byte_run > 0 ) {\n palette_idx1 = bytestream2_get_byte ( & g2 ) ;\n CHECK_PIXEL_PTR ( byte_run ) ;\n for ( j = 0 ;\n j < byte_run ;\n j ++ ) {\n pixels [ pixel_ptr ++ ] = palette_idx1 ;\n pixel_countdown -- ;\n if ( pixel_countdown < 0 ) av_log ( avctx , AV_LOG_ERROR , \"pixel_countdown < 0 (%d) at line %d\\n\" , pixel_countdown , lines ) ;\n }\n }\n else {\n byte_run = - byte_run ;\n CHECK_PIXEL_PTR ( byte_run ) ;\n for ( j = 0 ;\n j < byte_run ;\n j ++ ) {\n pixels [ pixel_ptr ++ ] = bytestream2_get_byte ( & g2 ) ;\n pixel_countdown -- ;\n if ( pixel_countdown < 0 ) av_log ( avctx , AV_LOG_ERROR , \"pixel_countdown < 0 (%d) at line %d\\n\" , pixel_countdown , lines ) ;\n }\n }\n }\n y_ptr += s -> frame . linesize [ 0 ] ;\n }\n break ;\n case FLI_COPY : if ( chunk_size - 6 > s -> avctx -> width * s -> avctx -> height ) {\n av_log ( avctx , AV_LOG_ERROR , \"In chunk FLI_COPY : source data (%d bytes) \" \\ \"bigger than image, skipping chunk\\n\" , chunk_size - 6 ) ;\n bytestream2_skip ( & g2 , chunk_size - 6 ) ;\n }\n else {\n for ( y_ptr = 0 ;\n y_ptr < s -> frame . linesize [ 0 ] * s -> avctx -> height ;\n y_ptr += s -> frame . linesize [ 0 ] ) {\n bytestream2_get_buffer ( & g2 , & pixels [ y_ptr ] , s -> avctx -> width ) ;\n }\n }\n break ;\n case FLI_MINI : bytestream2_skip ( & g2 , chunk_size - 6 ) ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"Unrecognized chunk type: %d\\n\" , chunk_type ) ;\n break ;\n }\n frame_size -= chunk_size ;\n num_chunks -- ;\n }\n if ( ( bytestream2_get_bytes_left ( & g2 ) != 0 ) && ( bytestream2_get_bytes_left ( & g2 ) != 1 ) ) av_log ( avctx , AV_LOG_ERROR , \"Processed FLI chunk where chunk size = %d \" \\ \"and final chunk ptr = %d\\n\" , buf_size , buf_size - bytestream2_get_bytes_left ( & g2 ) ) ;\n memcpy ( s -> frame . data [ 1 ] , s -> palette , AVPALETTE_SIZE ) ;\n if ( s -> new_palette ) {\n s -> frame . palette_has_changed = 1 ;\n s -> new_palette = 0 ;\n }\n * got_frame = 1 ;\n * ( AVFrame * ) data = s -> frame ;\n return buf_size ;\n }"}
{"idx": 12666, "target": 0, "func": "static cmsBool ReadPositionTable ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number Count , cmsUInt32Number BaseOffset , void * Cargo , PositionTableEntryFn ElementFn ) {\n cmsUInt32Number i ;\n cmsUInt32Number * ElementOffsets = NULL , * ElementSizes = NULL ;\n ElementOffsets = ( cmsUInt32Number * ) _cmsCalloc ( io -> ContextID , Count , sizeof ( cmsUInt32Number ) ) ;\n if ( ElementOffsets == NULL ) goto Error ;\n ElementSizes = ( cmsUInt32Number * ) _cmsCalloc ( io -> ContextID , Count , sizeof ( cmsUInt32Number ) ) ;\n if ( ElementSizes == NULL ) goto Error ;\n for ( i = 0 ;\n i < Count ;\n i ++ ) {\n if ( ! _cmsReadUInt32Number ( io , & ElementOffsets [ i ] ) ) goto Error ;\n if ( ! _cmsReadUInt32Number ( io , & ElementSizes [ i ] ) ) goto Error ;\n ElementOffsets [ i ] += BaseOffset ;\n }\n for ( i = 0 ;\n i < Count ;\n i ++ ) {\n if ( ! io -> Seek ( io , ElementOffsets [ i ] ) ) goto Error ;\n if ( ! ElementFn ( self , io , Cargo , i , ElementSizes [ i ] ) ) goto Error ;\n }\n if ( ElementOffsets != NULL ) _cmsFree ( io -> ContextID , ElementOffsets ) ;\n if ( ElementSizes != NULL ) _cmsFree ( io -> ContextID , ElementSizes ) ;\n return TRUE ;\n Error : if ( ElementOffsets != NULL ) _cmsFree ( io -> ContextID , ElementOffsets ) ;\n if ( ElementSizes != NULL ) _cmsFree ( io -> ContextID , ElementSizes ) ;\n return FALSE ;\n }"}
{"idx": 12667, "target": 0, "func": "static int absdiff_thresh ( BLOCK_SIZE bs , int increase_denoising ) {\n ( void ) bs ;\n return 3 + ( increase_denoising ? 1 : 0 ) ;\n }"}
{"idx": 12668, "target": 0, "func": "static int mszipd_flush_window ( struct mszipd_stream * zip , unsigned int data_flushed ) {\n zip -> bytes_output += data_flushed ;\n if ( zip -> bytes_output > MSZIP_FRAME_SIZE ) {\n D ( ( \"overflow: %u bytes flushed, total is now %u\" , data_flushed , zip -> bytes_output ) ) return 1 ;\n }\n return 0 ;\n }"}
{"idx": 12669, "target": 0, "func": "static void draw_line ( uint8_t * buf , int sx , int sy , int ex , int ey , int w , int h , int stride , int color ) {\n int x , y , fr , f ;\n sx = av_clip ( sx , 0 , w - 1 ) ;\n sy = av_clip ( sy , 0 , h - 1 ) ;\n ex = av_clip ( ex , 0 , w - 1 ) ;\n ey = av_clip ( ey , 0 , h - 1 ) ;\n buf [ sy * stride + sx ] += color ;\n if ( FFABS ( ex - sx ) > FFABS ( ey - sy ) ) {\n if ( sx > ex ) {\n FFSWAP ( int , sx , ex ) ;\n FFSWAP ( int , sy , ey ) ;\n }\n buf += sx + sy * stride ;\n ex -= sx ;\n f = ( ( ey - sy ) << 16 ) / ex ;\n for ( x = 0 ;\n x <= ex ;\n x ++ ) {\n y = ( x * f ) >> 16 ;\n fr = ( x * f ) & 0xFFFF ;\n buf [ y * stride + x ] += ( color * ( 0x10000 - fr ) ) >> 16 ;\n buf [ ( y + 1 ) * stride + x ] += ( color * fr ) >> 16 ;\n }\n }\n else {\n if ( sy > ey ) {\n FFSWAP ( int , sx , ex ) ;\n FFSWAP ( int , sy , ey ) ;\n }\n buf += sx + sy * stride ;\n ey -= sy ;\n if ( ey ) f = ( ( ex - sx ) << 16 ) / ey ;\n else f = 0 ;\n for ( y = 0 ;\n y = ey ;\n y ++ ) {\n x = ( y * f ) >> 16 ;\n fr = ( y * f ) & 0xFFFF ;\n buf [ y * stride + x ] += ( color * ( 0x10000 - fr ) ) >> 16 ;\n buf [ y * stride + x + 1 ] += ( color * fr ) >> 16 ;\n }\n }\n }"}
{"idx": 12670, "target": 0, "func": "static int matroska_probe ( AVProbeData * p ) {\n uint64_t total = 0 ;\n int len_mask = 0x80 , size = 1 , n = 1 , i ;\n if ( AV_RB32 ( p -> buf ) != EBML_ID_HEADER ) return 0 ;\n total = p -> buf [ 4 ] ;\n while ( size <= 8 && ! ( total & len_mask ) ) {\n size ++ ;\n len_mask >>= 1 ;\n }\n if ( size > 8 ) return 0 ;\n total &= ( len_mask - 1 ) ;\n while ( n < size ) total = ( total << 8 ) | p -> buf [ 4 + n ++ ] ;\n if ( p -> buf_size < 4 + size + total ) return 0 ;\n for ( i = 0 ;\n i < FF_ARRAY_ELEMS ( matroska_doctypes ) ;\n i ++ ) {\n int probelen = strlen ( matroska_doctypes [ i ] ) ;\n if ( total < probelen ) continue ;\n for ( n = 4 + size ;\n n <= 4 + size + total - probelen ;\n n ++ ) if ( ! memcmp ( p -> buf + n , matroska_doctypes [ i ] , probelen ) ) return AVPROBE_SCORE_MAX ;\n }\n return AVPROBE_SCORE_EXTENSION ;\n }"}
{"idx": 12671, "target": 0, "func": "uint_fast32_t jas_image_rawsize ( jas_image_t * image ) {\n uint_fast32_t rawsize ;\n int cmptno ;\n jas_image_cmpt_t * cmpt ;\n rawsize = 0 ;\n for ( cmptno = 0 ;\n cmptno < image -> numcmpts_ ;\n ++ cmptno ) {\n cmpt = image -> cmpts_ [ cmptno ] ;\n rawsize += ( cmpt -> width_ * cmpt -> height_ * cmpt -> prec_ + 7 ) / 8 ;\n }\n return rawsize ;\n }"}
{"idx": 12672, "target": 0, "func": "int dissect_h225_GloballyUniqueID ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 16 , 16 , FALSE , ( tvbuff_t * * ) actx -> value_ptr ) ;\n return offset ;\n }"}
{"idx": 12673, "target": 0, "func": "static int rv34_set_deblock_coef ( RV34DecContext * r ) {\n MpegEncContext * s = & r -> s ;\n int hmvmask = 0 , vmvmask = 0 , i , j ;\n int midx = s -> mb_x * 2 + s -> mb_y * 2 * s -> b8_stride ;\n int16_t ( * motion_val ) [ 2 ] = & s -> current_picture_ptr -> motion_val [ 0 ] [ midx ] ;\n for ( j = 0 ;\n j < 16 ;\n j += 8 ) {\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n if ( is_mv_diff_gt_3 ( motion_val + i , 1 ) ) vmvmask |= 0x11 << ( j + i * 2 ) ;\n if ( ( j || s -> mb_y ) && is_mv_diff_gt_3 ( motion_val + i , s -> b8_stride ) ) hmvmask |= 0x03 << ( j + i * 2 ) ;\n }\n motion_val += s -> b8_stride ;\n }\n if ( s -> first_slice_line ) hmvmask &= ~ 0x000F ;\n if ( ! s -> mb_x ) vmvmask &= ~ 0x1111 ;\n if ( r -> rv30 ) {\n vmvmask |= ( vmvmask & 0x4444 ) >> 1 ;\n hmvmask |= ( hmvmask & 0x0F00 ) >> 4 ;\n if ( s -> mb_x ) r -> deblock_coefs [ s -> mb_x - 1 + s -> mb_y * s -> mb_stride ] |= ( vmvmask & 0x1111 ) << 3 ;\n if ( ! s -> first_slice_line ) r -> deblock_coefs [ s -> mb_x + ( s -> mb_y - 1 ) * s -> mb_stride ] |= ( hmvmask & 0xF ) << 12 ;\n }\n return hmvmask | vmvmask ;\n }"}
{"idx": 12674, "target": 0, "func": "void rtp_event_init_tap ( void ) {\n GString * error_string ;\n if ( have_rtp_event_tap_listener == FALSE ) {\n error_string = register_tap_listener ( \"rtpevent\" , & ( the_tapinfo_rtp_struct . rtp_event_dummy ) , NULL , 0 , NULL , rtp_event_packet , NULL ) ;\n if ( error_string != NULL ) {\n simple_dialog ( ESD_TYPE_ERROR , ESD_BTN_OK , \"%s\" , error_string -> str ) ;\n g_string_free ( error_string , TRUE ) ;\n exit ( 1 ) ;\n }\n have_rtp_event_tap_listener = TRUE ;\n }\n }"}
{"idx": 12675, "target": 0, "func": "static int dissect_h225_SEQUENCE_OF_TransportChannelInfo ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_SEQUENCE_OF_TransportChannelInfo , SEQUENCE_OF_TransportChannelInfo_sequence_of ) ;\n return offset ;\n }"}
{"idx": 12676, "target": 0, "func": "static int spl_filesystem_dir_read ( spl_filesystem_object * intern TSRMLS_DC ) {\n if ( ! intern -> u . dir . dirp || ! php_stream_readdir ( intern -> u . dir . dirp , & intern -> u . dir . entry ) ) {\n intern -> u . dir . entry . d_name [ 0 ] = '\\0' ;\n return 0 ;\n }\n else {\n return 1 ;\n }\n }"}
{"idx": 12677, "target": 0, "func": "int InitVideoDec ( decoder_t * p_dec , AVCodecContext * p_context , AVCodec * p_codec , int i_codec_id , const char * psz_namecodec ) {\n decoder_sys_t * p_sys ;\n int i_val ;\n if ( ( p_dec -> p_sys = p_sys = calloc ( 1 , sizeof ( decoder_sys_t ) ) ) == NULL ) return VLC_ENOMEM ;\n p_codec -> type = AVMEDIA_TYPE_VIDEO ;\n p_context -> codec_type = AVMEDIA_TYPE_VIDEO ;\n p_context -> codec_id = i_codec_id ;\n p_sys -> p_context = p_context ;\n p_sys -> p_codec = p_codec ;\n p_sys -> i_codec_id = i_codec_id ;\n p_sys -> psz_namecodec = psz_namecodec ;\n p_sys -> p_ff_pic = avcodec_alloc_frame ( ) ;\n p_sys -> b_delayed_open = true ;\n p_sys -> p_va = NULL ;\n vlc_sem_init ( & p_sys -> sem_mt , 0 ) ;\n p_sys -> p_context -> codec_tag = ffmpeg_CodecTag ( p_dec -> fmt_in . i_original_fourcc ? : p_dec -> fmt_in . i_codec ) ;\n p_sys -> p_context -> workaround_bugs = var_InheritInteger ( p_dec , \"avcodec-workaround-bugs\" ) ;\n p_sys -> p_context -> err_recognition = var_InheritInteger ( p_dec , \"avcodec-error-resilience\" ) ;\n if ( var_CreateGetBool ( p_dec , \"grayscale\" ) ) p_sys -> p_context -> flags |= CODEC_FLAG_GRAY ;\n # if LIBAVCODEC_VERSION_CHECK ( 55 , 23 , 1 , 40 , 101 ) p_sys -> p_context -> flags |= CODEC_FLAG_OUTPUT_CORRUPT ;\n # endif i_val = var_CreateGetInteger ( p_dec , \"avcodec-vismv\" ) ;\n if ( i_val ) p_sys -> p_context -> debug_mv = i_val ;\n i_val = var_CreateGetInteger ( p_dec , \"avcodec-skiploopfilter\" ) ;\n if ( i_val >= 4 ) p_sys -> p_context -> skip_loop_filter = AVDISCARD_ALL ;\n else if ( i_val == 3 ) p_sys -> p_context -> skip_loop_filter = AVDISCARD_NONKEY ;\n else if ( i_val == 2 ) p_sys -> p_context -> skip_loop_filter = AVDISCARD_BIDIR ;\n else if ( i_val == 1 ) p_sys -> p_context -> skip_loop_filter = AVDISCARD_NONREF ;\n if ( var_CreateGetBool ( p_dec , \"avcodec-fast\" ) ) p_sys -> p_context -> flags2 |= CODEC_FLAG2_FAST ;\n p_sys -> b_hurry_up = var_CreateGetBool ( p_dec , \"avcodec-hurry-up\" ) ;\n i_val = var_CreateGetInteger ( p_dec , \"avcodec-skip-frame\" ) ;\n if ( i_val >= 4 ) p_sys -> p_context -> skip_frame = AVDISCARD_ALL ;\n else if ( i_val == 3 ) p_sys -> p_context -> skip_frame = AVDISCARD_NONKEY ;\n else if ( i_val == 2 ) p_sys -> p_context -> skip_frame = AVDISCARD_BIDIR ;\n else if ( i_val == 1 ) p_sys -> p_context -> skip_frame = AVDISCARD_NONREF ;\n else if ( i_val == - 1 ) p_sys -> p_context -> skip_frame = AVDISCARD_NONE ;\n else p_sys -> p_context -> skip_frame = AVDISCARD_DEFAULT ;\n p_sys -> i_skip_frame = p_sys -> p_context -> skip_frame ;\n i_val = var_CreateGetInteger ( p_dec , \"avcodec-skip-idct\" ) ;\n if ( i_val >= 4 ) p_sys -> p_context -> skip_idct = AVDISCARD_ALL ;\n else if ( i_val == 3 ) p_sys -> p_context -> skip_idct = AVDISCARD_NONKEY ;\n else if ( i_val == 2 ) p_sys -> p_context -> skip_idct = AVDISCARD_BIDIR ;\n else if ( i_val == 1 ) p_sys -> p_context -> skip_idct = AVDISCARD_NONREF ;\n else if ( i_val == - 1 ) p_sys -> p_context -> skip_idct = AVDISCARD_NONE ;\n else p_sys -> p_context -> skip_idct = AVDISCARD_DEFAULT ;\n p_sys -> i_skip_idct = p_sys -> p_context -> skip_idct ;\n p_sys -> b_direct_rendering = false ;\n p_sys -> i_direct_rendering_used = - 1 ;\n if ( var_CreateGetBool ( p_dec , \"avcodec-dr\" ) && ( p_sys -> p_codec -> capabilities & CODEC_CAP_DR1 ) && p_sys -> i_codec_id != AV_CODEC_ID_TSCC && p_sys -> i_codec_id != AV_CODEC_ID_CSCD && p_sys -> i_codec_id != AV_CODEC_ID_CINEPAK && ! p_sys -> p_context -> debug_mv ) {\n p_sys -> b_direct_rendering = true ;\n }\n if ( p_sys -> b_direct_rendering ) {\n msg_Dbg ( p_dec , \"trying to use direct rendering\" ) ;\n p_sys -> p_context -> flags |= CODEC_FLAG_EMU_EDGE ;\n }\n else {\n msg_Dbg ( p_dec , \"direct rendering is disabled\" ) ;\n }\n p_sys -> p_context -> get_format = ffmpeg_GetFormat ;\n # if LIBAVCODEC_VERSION_MAJOR >= 55 p_sys -> p_context -> get_buffer2 = lavc_GetFrame ;\n # else p_sys -> p_context -> get_buffer = ffmpeg_GetFrameBuf ;\n p_sys -> p_context -> reget_buffer = avcodec_default_reget_buffer ;\n p_sys -> p_context -> release_buffer = ffmpeg_ReleaseFrameBuf ;\n # endif p_sys -> p_context -> opaque = p_dec ;\n # ifdef HAVE_AVCODEC_MT int i_thread_count = var_InheritInteger ( p_dec , \"avcodec-threads\" ) ;\n if ( i_thread_count <= 0 ) {\n i_thread_count = vlc_GetCPUCount ( ) ;\n if ( i_thread_count > 1 ) i_thread_count ++ ;\n i_thread_count = __MIN ( i_thread_count , 4 ) ;\n }\n i_thread_count = __MIN ( i_thread_count , 16 ) ;\n msg_Dbg ( p_dec , \"allowing %d thread(s) for decoding\" , i_thread_count ) ;\n p_sys -> p_context -> thread_count = i_thread_count ;\n p_sys -> p_context -> thread_safe_callbacks = true ;\n switch ( i_codec_id ) {\n case AV_CODEC_ID_MPEG4 : case AV_CODEC_ID_H263 : p_sys -> p_context -> thread_type = 0 ;\n break ;\n case AV_CODEC_ID_MPEG1VIDEO : case AV_CODEC_ID_MPEG2VIDEO : p_sys -> p_context -> thread_type &= ~ FF_THREAD_SLICE ;\n # if ( LIBAVCODEC_VERSION_INT < AV_VERSION_INT ( 55 , 1 , 0 ) ) case AV_CODEC_ID_H264 : case AV_CODEC_ID_VC1 : case AV_CODEC_ID_WMV3 : p_sys -> p_context -> thread_type &= ~ FF_THREAD_FRAME ;\n # endif }\n # if defined ( _WIN32 ) char * avcodec_hw = var_InheritString ( p_dec , \"avcodec-hw\" ) ;\n if ( avcodec_hw == NULL || strcasecmp ( avcodec_hw , \"none\" ) ) {\n msg_Warn ( p_dec , \"threaded frame decoding is not compatible with DXVA2, disabled\" ) ;\n p_sys -> p_context -> thread_type &= ~ FF_THREAD_FRAME ;\n }\n free ( avcodec_hw ) ;\n # endif if ( p_sys -> p_context -> thread_type & FF_THREAD_FRAME ) p_dec -> i_extra_picture_buffers = 2 * p_sys -> p_context -> thread_count ;\n # endif p_sys -> i_pts = VLC_TS_INVALID ;\n p_sys -> b_has_b_frames = false ;\n p_sys -> b_first_frame = true ;\n p_sys -> b_flush = false ;\n p_sys -> i_late_frames = 0 ;\n p_dec -> fmt_out . i_cat = VIDEO_ES ;\n if ( GetVlcChroma ( & p_dec -> fmt_out . video , p_context -> pix_fmt ) != VLC_SUCCESS ) {\n p_dec -> fmt_out . i_codec = VLC_CODEC_I420 ;\n }\n p_dec -> fmt_out . i_codec = p_dec -> fmt_out . video . i_chroma ;\n p_dec -> fmt_out . video . orientation = p_dec -> fmt_in . video . orientation ;\n # if LIBAVCODEC_VERSION_MAJOR < 54 memset ( & p_sys -> palette , 0 , sizeof ( p_sys -> palette ) ) ;\n if ( p_dec -> fmt_in . video . p_palette ) {\n p_sys -> palette . palette_changed = 1 ;\n for ( int i = 0 ;\n i < __MIN ( AVPALETTE_COUNT , p_dec -> fmt_in . video . p_palette -> i_entries ) ;\n i ++ ) {\n union {\n uint32_t u ;\n uint8_t a [ 4 ] ;\n }\n c ;\n c . a [ 0 ] = p_dec -> fmt_in . video . p_palette -> palette [ i ] [ 0 ] ;\n c . a [ 1 ] = p_dec -> fmt_in . video . p_palette -> palette [ i ] [ 1 ] ;\n c . a [ 2 ] = p_dec -> fmt_in . video . p_palette -> palette [ i ] [ 2 ] ;\n c . a [ 3 ] = p_dec -> fmt_in . video . p_palette -> palette [ i ] [ 3 ] ;\n p_sys -> palette . palette [ i ] = c . u ;\n }\n p_sys -> p_context -> palctrl = & p_sys -> palette ;\n p_dec -> fmt_out . video . p_palette = malloc ( sizeof ( video_palette_t ) ) ;\n if ( p_dec -> fmt_out . video . p_palette ) * p_dec -> fmt_out . video . p_palette = * p_dec -> fmt_in . video . p_palette ;\n }\n else if ( p_sys -> i_codec_id != CODEC_ID_MSVIDEO1 && p_sys -> i_codec_id != CODEC_ID_CINEPAK ) {\n p_sys -> p_context -> palctrl = & p_sys -> palette ;\n }\n # else if ( p_dec -> fmt_in . video . p_palette ) {\n p_sys -> palette_sent = false ;\n p_dec -> fmt_out . video . p_palette = malloc ( sizeof ( video_palette_t ) ) ;\n if ( p_dec -> fmt_out . video . p_palette ) * p_dec -> fmt_out . video . p_palette = * p_dec -> fmt_in . video . p_palette ;\n }\n else p_sys -> palette_sent = true ;\n # endif ffmpeg_InitCodec ( p_dec ) ;\n if ( ffmpeg_OpenCodec ( p_dec ) < 0 ) {\n msg_Err ( p_dec , \"cannot open codec (%s)\" , p_sys -> psz_namecodec ) ;\n avcodec_free_frame ( & p_sys -> p_ff_pic ) ;\n vlc_sem_destroy ( & p_sys -> sem_mt ) ;\n free ( p_sys ) ;\n return VLC_EGENERIC ;\n }\n if ( p_dec -> fmt_in . i_codec == VLC_CODEC_VP9 ) p_dec -> b_need_packetized = true ;\n return VLC_SUCCESS ;\n }"}
{"idx": 12678, "target": 0, "func": "int xmlThrDefSaveNoEmptyTags ( int v ) {\n int ret ;\n xmlMutexLock ( xmlThrDefMutex ) ;\n ret = xmlSaveNoEmptyTagsThrDef ;\n xmlSaveNoEmptyTagsThrDef = v ;\n xmlMutexUnlock ( xmlThrDefMutex ) ;\n return ret ;\n }"}
{"idx": 12679, "target": 0, "func": "void Curl_add_buffer_free ( Curl_send_buffer * buff ) {\n if ( buff ) free ( buff -> buffer ) ;\n free ( buff ) ;\n }"}
{"idx": 12680, "target": 0, "func": "TEST_F ( SyncBookmarkDataTypeControllerTest , StartAborted ) {\n CreateBookmarkModel ( LOAD_MODEL ) ;\n EXPECT_CALL ( * history_service_ . get ( ) , BackendLoaded ( ) ) . WillRepeatedly ( Return ( false ) ) ;\n bookmark_dtc_ -> LoadModels ( base : : Bind ( & ModelLoadCallbackMock : : Run , base : : Unretained ( & model_load_callback_ ) ) ) ;\n bookmark_dtc_ -> Stop ( ) ;\n EXPECT_EQ ( DataTypeController : : NOT_RUNNING , bookmark_dtc_ -> state ( ) ) ;\n }"}
{"idx": 12681, "target": 0, "func": "static List * simplify_or_arguments ( List * args , eval_const_expressions_context * context , bool * haveNull , bool * forceTrue ) {\n List * newargs = NIL ;\n List * unprocessed_args ;\n unprocessed_args = list_copy ( args ) ;\n while ( unprocessed_args ) {\n Node * arg = ( Node * ) linitial ( unprocessed_args ) ;\n unprocessed_args = list_delete_first ( unprocessed_args ) ;\n if ( or_clause ( arg ) ) {\n List * subargs = list_copy ( ( ( BoolExpr * ) arg ) -> args ) ;\n if ( ! unprocessed_args ) unprocessed_args = subargs ;\n else {\n List * oldhdr = unprocessed_args ;\n unprocessed_args = list_concat ( subargs , unprocessed_args ) ;\n pfree ( oldhdr ) ;\n }\n continue ;\n }\n arg = eval_const_expressions_mutator ( arg , context ) ;\n if ( or_clause ( arg ) ) {\n List * subargs = list_copy ( ( ( BoolExpr * ) arg ) -> args ) ;\n unprocessed_args = list_concat ( subargs , unprocessed_args ) ;\n continue ;\n }\n if ( IsA ( arg , Const ) ) {\n Const * const_input = ( Const * ) arg ;\n if ( const_input -> constisnull ) * haveNull = true ;\n else if ( DatumGetBool ( const_input -> constvalue ) ) {\n * forceTrue = true ;\n return NIL ;\n }\n continue ;\n }\n newargs = lappend ( newargs , arg ) ;\n }\n return newargs ;\n }"}
{"idx": 12682, "target": 0, "func": "static guint32 dissect_netb_receive_outstanding ( tvbuff_t * tvb , packet_info * pinfo _U_ , int offset , proto_tree * tree ) {\n nb_data2 ( hf_netb_num_data_bytes_accepted , tvb , offset , tree ) ;\n nb_remote_session ( tvb , offset , tree ) ;\n nb_local_session ( tvb , offset , tree ) ;\n return 0 ;\n }"}
{"idx": 12683, "target": 0, "func": "void vp9_loop_filter_rows ( YV12_BUFFER_CONFIG * frame_buffer , VP9_COMMON * cm , struct macroblockd_plane planes [ MAX_MB_PLANE ] , int start , int stop , int y_only ) {\n const int num_planes = y_only ? 1 : MAX_MB_PLANE ;\n const int use_420 = y_only || ( planes [ 1 ] . subsampling_y == 1 && planes [ 1 ] . subsampling_x == 1 ) ;\n LOOP_FILTER_MASK lfm ;\n int mi_row , mi_col ;\n for ( mi_row = start ;\n mi_row < stop ;\n mi_row += MI_BLOCK_SIZE ) {\n MODE_INFO * mi = cm -> mi + mi_row * cm -> mi_stride ;\n for ( mi_col = 0 ;\n mi_col < cm -> mi_cols ;\n mi_col += MI_BLOCK_SIZE ) {\n int plane ;\n vp9_setup_dst_planes ( planes , frame_buffer , mi_row , mi_col ) ;\n if ( use_420 ) vp9_setup_mask ( cm , mi_row , mi_col , mi + mi_col , cm -> mi_stride , & lfm ) ;\n for ( plane = 0 ;\n plane < num_planes ;\n ++ plane ) {\n if ( use_420 ) vp9_filter_block_plane ( cm , & planes [ plane ] , mi_row , & lfm ) ;\n else filter_block_plane_non420 ( cm , & planes [ plane ] , mi + mi_col , mi_row , mi_col ) ;\n }\n }\n }\n }"}
{"idx": 12684, "target": 0, "func": "inline void uint32_to_be ( void * bytes , unsigned integer ) {\n unsigned char * b = ( unsigned char * ) bytes ;\n b [ 0 ] = ( integer & 0xff000000 ) >> 24 ;\n b [ 1 ] = ( integer & 0x00ff0000 ) >> 16 ;\n b [ 2 ] = ( integer & 0x0000ff00 ) >> 8 ;\n b [ 3 ] = ( integer & 0x000000ff ) >> 0 ;\n }"}
{"idx": 12685, "target": 0, "func": "static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_null ( void ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_null ( ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_reserve ( sk_ ## t1 ## _compfunc compare , int n ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_reserve ( ( OPENSSL_sk_compfunc ) compare , n ) ;\n }\n static ossl_inline int sk_ ## t1 ## _reserve ( STACK_OF ( t1 ) * sk , int n ) {\n return OPENSSL_sk_reserve ( ( OPENSSL_STACK * ) sk , n ) ;\n }\n static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 12686, "target": 0, "func": "int mbfl_strwidth ( mbfl_string * string ) {\n int len , n ;\n unsigned char * p ;\n mbfl_convert_filter * filter ;\n len = 0 ;\n if ( string -> len > 0 && string -> val != NULL ) {\n filter = mbfl_convert_filter_new ( string -> no_encoding , mbfl_no_encoding_wchar , filter_count_width , 0 , & len ) ;\n if ( filter == NULL ) {\n mbfl_convert_filter_delete ( filter ) ;\n return - 1 ;\n }\n p = string -> val ;\n n = string -> len ;\n while ( n > 0 ) {\n ( * filter -> filter_function ) ( * p ++ , filter ) ;\n n -- ;\n }\n mbfl_convert_filter_flush ( filter ) ;\n mbfl_convert_filter_delete ( filter ) ;\n }\n return len ;\n }"}
{"idx": 12687, "target": 0, "func": "struct qemud_client_stream * remoteFindClientStream ( struct qemud_client * client , virStreamPtr st ) {\n struct qemud_client_stream * stream = client -> streams ;\n while ( stream ) {\n if ( stream -> st == st ) return stream ;\n stream = stream -> next ;\n }\n return NULL ;\n }"}
{"idx": 12688, "target": 0, "func": "static int _tiffCloseProc ( thandle_t fd ) {\n fd_as_handle_union_t fdh ;\n fdh . h = fd ;\n return ( close ( fdh . fd ) ) ;\n }"}
{"idx": 12689, "target": 0, "func": "static int ogg_restore ( AVFormatContext * s , int discard ) {\n struct ogg * ogg = s -> priv_data ;\n AVIOContext * bc = s -> pb ;\n struct ogg_state * ost = ogg -> state ;\n int i , err ;\n if ( ! ost ) return 0 ;\n ogg -> state = ost -> next ;\n if ( ! discard ) {\n for ( i = 0 ;\n i < ogg -> nstreams ;\n i ++ ) av_freep ( & ogg -> streams [ i ] . buf ) ;\n avio_seek ( bc , ost -> pos , SEEK_SET ) ;\n ogg -> page_pos = - 1 ;\n ogg -> curidx = ost -> curidx ;\n ogg -> nstreams = ost -> nstreams ;\n if ( ( err = av_reallocp_array ( & ogg -> streams , ogg -> nstreams , sizeof ( * ogg -> streams ) ) ) < 0 ) {\n ogg -> nstreams = 0 ;\n return err ;\n }\n else memcpy ( ogg -> streams , ost -> streams , ost -> nstreams * sizeof ( * ogg -> streams ) ) ;\n }\n av_free ( ost ) ;\n return 0 ;\n }"}
{"idx": 12690, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n ASV1Context * const a = avctx -> priv_data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n AVFrame * const p = data ;\n int mb_x , mb_y , ret ;\n if ( ( ret = ff_get_buffer ( avctx , p , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n p -> pict_type = AV_PICTURE_TYPE_I ;\n p -> key_frame = 1 ;\n av_fast_padded_malloc ( & a -> bitstream_buffer , & a -> bitstream_buffer_size , buf_size ) ;\n if ( ! a -> bitstream_buffer ) return AVERROR ( ENOMEM ) ;\n if ( avctx -> codec_id == AV_CODEC_ID_ASV1 ) a -> dsp . bswap_buf ( ( uint32_t * ) a -> bitstream_buffer , ( const uint32_t * ) buf , buf_size / 4 ) ;\n else {\n int i ;\n for ( i = 0 ;\n i < buf_size ;\n i ++ ) a -> bitstream_buffer [ i ] = ff_reverse [ buf [ i ] ] ;\n }\n init_get_bits ( & a -> gb , a -> bitstream_buffer , buf_size * 8 ) ;\n for ( mb_y = 0 ;\n mb_y < a -> mb_height2 ;\n mb_y ++ ) {\n for ( mb_x = 0 ;\n mb_x < a -> mb_width2 ;\n mb_x ++ ) {\n if ( ( ret = decode_mb ( a , a -> block ) ) < 0 ) return ret ;\n idct_put ( a , p , mb_x , mb_y ) ;\n }\n }\n if ( a -> mb_width2 != a -> mb_width ) {\n mb_x = a -> mb_width2 ;\n for ( mb_y = 0 ;\n mb_y < a -> mb_height2 ;\n mb_y ++ ) {\n if ( ( ret = decode_mb ( a , a -> block ) ) < 0 ) return ret ;\n idct_put ( a , p , mb_x , mb_y ) ;\n }\n }\n if ( a -> mb_height2 != a -> mb_height ) {\n mb_y = a -> mb_height2 ;\n for ( mb_x = 0 ;\n mb_x < a -> mb_width ;\n mb_x ++ ) {\n if ( ( ret = decode_mb ( a , a -> block ) ) < 0 ) return ret ;\n idct_put ( a , p , mb_x , mb_y ) ;\n }\n }\n * got_frame = 1 ;\n emms_c ( ) ;\n return ( get_bits_count ( & a -> gb ) + 31 ) / 32 * 4 ;\n }"}
{"idx": 12691, "target": 0, "func": "static void count_zeroes_and_poles ( uint16_t * LutTable , int length , int * NumZeroes , int * NumPoles ) {\n int z = 0 , p = 0 ;\n while ( LutTable [ z ] == 0 && z < length - 1 ) z ++ ;\n * NumZeroes = z ;\n while ( LutTable [ length - 1 - p ] == 0xFFFF && p < length - 1 ) p ++ ;\n * NumPoles = p ;\n }"}
{"idx": 12692, "target": 0, "func": "static void write_modes ( VP9_COMP * cpi , const TileInfo * const tile , vp9_writer * w , TOKENEXTRA * * tok , const TOKENEXTRA * const tok_end ) {\n int mi_row , mi_col ;\n for ( mi_row = tile -> mi_row_start ;\n mi_row < tile -> mi_row_end ;\n mi_row += MI_BLOCK_SIZE ) {\n vp9_zero ( cpi -> mb . e_mbd . left_seg_context ) ;\n for ( mi_col = tile -> mi_col_start ;\n mi_col < tile -> mi_col_end ;\n mi_col += MI_BLOCK_SIZE ) write_modes_sb ( cpi , tile , w , tok , tok_end , mi_row , mi_col , BLOCK_64X64 ) ;\n }\n }"}
{"idx": 12693, "target": 0, "func": "bool send_chal_reply ( connection_t * c ) {\n char hash [ EVP_MAX_MD_SIZE * 2 + 1 ] ;\n EVP_MD_CTX * ctx ;\n ctx = EVP_MD_CTX_create ( ) ;\n if ( ! ctx ) {\n abort ( ) ;\n }\n if ( ! EVP_DigestInit ( ctx , c -> indigest ) || ! EVP_DigestUpdate ( ctx , c -> mychallenge , RSA_size ( myself -> connection -> rsa_key ) ) || ! EVP_DigestFinal ( ctx , ( unsigned char * ) hash , NULL ) ) {\n EVP_MD_CTX_destroy ( ctx ) ;\n logger ( LOG_ERR , \"Error during calculation of response for %s (%s): %s\" , c -> name , c -> hostname , ERR_error_string ( ERR_get_error ( ) , NULL ) ) ;\n return false ;\n }\n EVP_MD_CTX_destroy ( ctx ) ;\n bin2hex ( hash , hash , EVP_MD_size ( c -> indigest ) ) ;\n hash [ EVP_MD_size ( c -> indigest ) * 2 ] = '\\0' ;\n return send_request ( c , \"%d %s\" , CHAL_REPLY , hash ) ;\n }"}
{"idx": 12694, "target": 0, "func": "void xsltRegisterExtras ( xsltTransformContextPtr ctxt ATTRIBUTE_UNUSED ) {\n xsltRegisterAllExtras ( ) ;\n }"}
{"idx": 12695, "target": 0, "func": "static gboolean gst_asf_demux_send_event_unlocked ( GstASFDemux * demux , GstEvent * event ) {\n gboolean ret = TRUE ;\n gint i ;\n GST_DEBUG_OBJECT ( demux , \"sending %s event to all source pads\" , GST_EVENT_TYPE_NAME ( event ) ) ;\n for ( i = 0 ;\n i < demux -> num_streams ;\n ++ i ) {\n gst_event_ref ( event ) ;\n ret &= gst_pad_push_event ( demux -> stream [ i ] . pad , event ) ;\n }\n gst_event_unref ( event ) ;\n return ret ;\n }"}
{"idx": 12696, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ContentSettingBubbleDialogTest , InvokeDialog_ppapi_broker ) {\n RunDialog ( ) ;\n }"}
{"idx": 12697, "target": 0, "func": "static gboolean construct_match_selected_string ( field_info * finfo , epan_dissect_t * edt , char * * filter ) {\n header_field_info * hfinfo ;\n int abbrev_len ;\n char * ptr ;\n int buf_len ;\n int dfilter_len , i ;\n gint start , length , length_remaining ;\n guint8 c ;\n gchar is_signed_num = FALSE ;\n if ( ! finfo ) return FALSE ;\n hfinfo = finfo -> hfinfo ;\n DISSECTOR_ASSERT ( hfinfo ) ;\n abbrev_len = ( int ) strlen ( hfinfo -> abbrev ) ;\n if ( hfinfo -> strings && ( hfinfo -> display & FIELD_DISPLAY_E_MASK ) == BASE_NONE ) {\n const gchar * str = NULL ;\n switch ( hfinfo -> type ) {\n case FT_INT8 : case FT_INT16 : case FT_INT24 : case FT_INT32 : str = hf_try_val_to_str ( fvalue_get_sinteger ( & finfo -> value ) , hfinfo ) ;\n break ;\n case FT_UINT8 : case FT_UINT16 : case FT_UINT24 : case FT_UINT32 : str = hf_try_val_to_str ( fvalue_get_uinteger ( & finfo -> value ) , hfinfo ) ;\n break ;\n default : break ;\n }\n if ( str != NULL && filter != NULL ) {\n * filter = wmem_strdup_printf ( NULL , \"%s == \\\"%s\\\"\" , hfinfo -> abbrev , str ) ;\n return TRUE ;\n }\n }\n switch ( hfinfo -> type ) {\n case FT_INT8 : case FT_INT16 : case FT_INT24 : case FT_INT32 : is_signed_num = TRUE ;\n case FT_UINT8 : case FT_UINT16 : case FT_UINT24 : case FT_UINT32 : case FT_FRAMENUM : if ( filter != NULL ) {\n guint32 number ;\n char buf [ 32 ] ;\n const char * out ;\n if ( is_signed_num ) number = fvalue_get_sinteger ( & finfo -> value ) ;\n else number = fvalue_get_uinteger ( & finfo -> value ) ;\n out = hfinfo_numeric_value_format ( hfinfo , buf , number ) ;\n * filter = wmem_strdup_printf ( NULL , \"%s == %s\" , hfinfo -> abbrev , out ) ;\n }\n break ;\n case FT_INT40 : case FT_INT48 : case FT_INT56 : case FT_INT64 : is_signed_num = TRUE ;\n case FT_UINT40 : case FT_UINT48 : case FT_UINT56 : case FT_UINT64 : if ( filter != NULL ) {\n guint64 number ;\n char buf [ 48 ] ;\n const char * out ;\n if ( is_signed_num ) number = fvalue_get_sinteger64 ( & finfo -> value ) ;\n else number = fvalue_get_uinteger64 ( & finfo -> value ) ;\n out = hfinfo_numeric_value_format64 ( hfinfo , buf , number ) ;\n * filter = wmem_strdup_printf ( NULL , \"%s == %s\" , hfinfo -> abbrev , out ) ;\n }\n break ;\n case FT_PROTOCOL : if ( filter != NULL ) * filter = wmem_strdup ( NULL , finfo -> hfinfo -> abbrev ) ;\n break ;\n case FT_NONE : length = finfo -> length ;\n if ( length == 0 ) {\n if ( filter != NULL ) * filter = wmem_strdup ( NULL , finfo -> hfinfo -> abbrev ) ;\n break ;\n }\n if ( length < 0 ) return FALSE ;\n if ( edt == NULL ) return FALSE ;\n if ( finfo -> ds_tvb != edt -> tvb ) return FALSE ;\n length_remaining = tvb_captured_length_remaining ( finfo -> ds_tvb , finfo -> start ) ;\n if ( length > length_remaining ) length = length_remaining ;\n if ( length <= 0 ) return FALSE ;\n if ( filter != NULL ) {\n start = finfo -> start ;\n buf_len = 32 + length * 3 ;\n * filter = ( char * ) wmem_alloc0 ( NULL , buf_len ) ;\n ptr = * filter ;\n ptr += g_snprintf ( ptr , ( gulong ) ( buf_len - ( ptr - * filter ) ) , \"frame[%d:%d] == \" , finfo -> start , length ) ;\n for ( i = 0 ;\n i < length ;\n i ++ ) {\n c = tvb_get_guint8 ( finfo -> ds_tvb , start ) ;\n start ++ ;\n if ( i == 0 ) {\n ptr += g_snprintf ( ptr , ( gulong ) ( buf_len - ( ptr - * filter ) ) , \"%02x\" , c ) ;\n }\n else {\n ptr += g_snprintf ( ptr , ( gulong ) ( buf_len - ( ptr - * filter ) ) , \":%02x\" , c ) ;\n }\n }\n }\n break ;\n case FT_PCRE : DISSECTOR_ASSERT_NOT_REACHED ( ) ;\n break ;\n default : if ( filter != NULL ) {\n char * str ;\n dfilter_len = fvalue_string_repr_len ( & finfo -> value , FTREPR_DFILTER , finfo -> hfinfo -> display ) ;\n dfilter_len += abbrev_len + 4 + 1 ;\n * filter = ( char * ) wmem_alloc0 ( NULL , dfilter_len ) ;\n str = fvalue_to_string_repr ( NULL , & finfo -> value , FTREPR_DFILTER , finfo -> hfinfo -> display ) ;\n g_snprintf ( * filter , dfilter_len , \"%s == %s\" , hfinfo -> abbrev , str ) ;\n wmem_free ( NULL , str ) ;\n }\n break ;\n }\n return TRUE ;\n }"}
{"idx": 12698, "target": 0, "func": "static const char * comp_http_hdr ( HTTPHdr * h1 , HTTPHdr * h2 ) {\n int h1_len , h2_len ;\n int p_index , p_dumpoffset , rval ;\n char * h1_pbuf , * h2_pbuf ;\n h1_len = h1 -> length_get ( ) ;\n h2_len = h2 -> length_get ( ) ;\n if ( h1_len != h2_len ) {\n return \"length mismatch\" ;\n }\n h1_pbuf = ( char * ) ats_malloc ( h1_len + 1 ) ;\n h2_pbuf = ( char * ) ats_malloc ( h2_len + 1 ) ;\n p_index = p_dumpoffset = 0 ;\n rval = h1 -> print ( h1_pbuf , h1_len , & p_index , & p_dumpoffset ) ;\n if ( rval != 1 ) {\n ats_free ( h1_pbuf ) ;\n ats_free ( h2_pbuf ) ;\n return \"hdr print failed\" ;\n }\n p_index = p_dumpoffset = 0 ;\n rval = h2 -> print ( h2_pbuf , h2_len , & p_index , & p_dumpoffset ) ;\n if ( rval != 1 ) {\n ats_free ( h1_pbuf ) ;\n ats_free ( h2_pbuf ) ;\n return \"hdr print failed\" ;\n }\n rval = memcmp ( h1_pbuf , h2_pbuf , h1_len ) ;\n ats_free ( h1_pbuf ) ;\n ats_free ( h2_pbuf ) ;\n if ( rval != 0 ) {\n return \"compare failed\" ;\n }\n else {\n return nullptr ;\n }\n }"}
{"idx": 12699, "target": 0, "func": "time_t TSCacheHttpInfoRespReceivedTimeGet ( TSCacheHttpInfo infop ) {\n CacheHTTPInfo * info = ( CacheHTTPInfo * ) infop ;\n return info -> response_received_time_get ( ) ;\n }"}
{"idx": 12700, "target": 0, "func": "int EVP_EncryptInit_ex ( EVP_CIPHER_CTX * ctx , const EVP_CIPHER * cipher , ENGINE * impl , const unsigned char * key , const unsigned char * iv ) {\n return EVP_CipherInit_ex ( ctx , cipher , impl , key , iv , 1 ) ;\n }"}
{"idx": 12701, "target": 0, "func": "PkTransaction * pk_transaction_new ( GKeyFile * conf , GDBusNodeInfo * introspection ) {\n PkTransaction * transaction ;\n transaction = g_object_new ( PK_TYPE_TRANSACTION , NULL ) ;\n transaction -> priv -> conf = g_key_file_ref ( conf ) ;\n transaction -> priv -> job = pk_backend_job_new ( conf ) ;\n transaction -> priv -> introspection = g_dbus_node_info_ref ( introspection ) ;\n return PK_TRANSACTION ( transaction ) ;\n }"}
{"idx": 12702, "target": 0, "func": "static int dissect_s_validator_prod_cons_fault_count ( packet_info * pinfo , proto_tree * tree , proto_item * item , tvbuff_t * tvb , int offset , int total_len ) {\n int i , size ;\n proto_tree_add_item ( tree , hf_cip_svalidator_prod_cons_fault_count_size , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n size = tvb_get_guint8 ( tvb , offset ) ;\n if ( total_len < size + 1 ) {\n expert_add_info ( pinfo , item , & ei_mal_svalidator_prod_cons_fault_count ) ;\n return total_len ;\n }\n for ( i = 0 ;\n i < size ;\n i ++ ) {\n proto_tree_add_item ( tree , hf_cip_svalidator_prod_cons_fault_count_item , tvb , offset + 1 + i , 1 , ENC_LITTLE_ENDIAN ) ;\n }\n return ( size + 1 ) ;\n }"}
{"idx": 12703, "target": 0, "func": "static void print_lookup_servers ( void ) {\n GSList * tmp ;\n for ( tmp = lookup_servers ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n SERVER_REC * rec = tmp -> data ;\n printformat ( NULL , NULL , MSGLEVEL_CRAP , TXT_SERVER_LOOKUP_LIST , rec -> tag , rec -> connrec -> address , rec -> connrec -> port , rec -> connrec -> chatnet == NULL ? \"\" : rec -> connrec -> chatnet , rec -> connrec -> nick ) ;\n }\n }"}
{"idx": 12704, "target": 0, "func": "TEST_F ( TemplateURLTest , URLRefTestSearchTermsUsingTermsData ) {\n struct SearchTermsCase {\n const char * url ;\n const base : : string16 terms ;\n const char * output ;\n }\n search_term_cases [ ] = {\n {\n \"{\ngoogle:baseURL}\n{\nlanguage}\n{\nsearchTerms}\n\" , base : : string16 ( ) , \"http://example.com/e/en\" }\n , {\n \"{\ngoogle:baseSuggestURL}\n{\nsearchTerms}\n\" , base : : string16 ( ) , \"http://example.com/complete/\" }\n }\n ;\n TestingSearchTermsData search_terms_data ( \"http://example.com/e/\" ) ;\n TemplateURLData data ;\n for ( size_t i = 0 ;\n i < arraysize ( search_term_cases ) ;\n ++ i ) {\n const SearchTermsCase & value = search_term_cases [ i ] ;\n data . SetURL ( value . url ) ;\n TemplateURL url ( data ) ;\n EXPECT_TRUE ( url . url_ref ( ) . IsValid ( search_terms_data ) ) ;\n ASSERT_TRUE ( url . url_ref ( ) . SupportsReplacement ( search_terms_data ) ) ;\n GURL result ( url . url_ref ( ) . ReplaceSearchTerms ( TemplateURLRef : : SearchTermsArgs ( value . terms ) , search_terms_data , NULL ) ) ;\n ASSERT_TRUE ( result . is_valid ( ) ) ;\n EXPECT_EQ ( value . output , result . spec ( ) ) ;\n }\n }"}
{"idx": 12705, "target": 0, "func": "static void process_ls_ref ( struct remote_ls_ctx * ls ) {\n if ( ! strcmp ( ls -> path , ls -> dentry_name ) && ( ls -> dentry_flags & IS_DIR ) ) {\n fprintf ( stderr , \" %s\\n\" , ls -> dentry_name ) ;\n return ;\n }\n if ( ! ( ls -> dentry_flags & IS_DIR ) ) one_remote_ref ( ls -> dentry_name ) ;\n }"}
{"idx": 12706, "target": 0, "func": "TEST_F ( TemplateURLTest , ReplaceInputType ) {\n struct TestData {\n const base : : string16 search_term ;\n metrics : : OmniboxInputType : : Type input_type ;\n const std : : string url ;\n const std : : string expected_result ;\n }\n test_data [ ] = {\n {\n ASCIIToUTF16 ( \"foo\" ) , metrics : : OmniboxInputType : : UNKNOWN , \"{\ngoogle:baseURL}\n?{\nsearchTerms}\n&{\ngoogle:inputType}\n\" , \"http://www.google.com/?foo&oit=1&\" }\n , {\n ASCIIToUTF16 ( \"foo\" ) , metrics : : OmniboxInputType : : URL , \"{\ngoogle:baseURL}\n?{\nsearchTerms}\n&{\ngoogle:inputType}\n\" , \"http://www.google.com/?foo&oit=3&\" }\n , {\n ASCIIToUTF16 ( \"foo\" ) , metrics : : OmniboxInputType : : FORCED_QUERY , \"{\ngoogle:baseURL}\n?{\nsearchTerms}\n&{\ngoogle:inputType}\n\" , \"http://www.google.com/?foo&oit=5&\" }\n , }\n ;\n TemplateURLData data ;\n data . input_encodings . push_back ( \"UTF-8\" ) ;\n for ( size_t i = 0 ;\n i < arraysize ( test_data ) ;\n ++ i ) {\n data . SetURL ( test_data [ i ] . url ) ;\n TemplateURL url ( data ) ;\n EXPECT_TRUE ( url . url_ref ( ) . IsValid ( search_terms_data_ ) ) ;\n ASSERT_TRUE ( url . url_ref ( ) . SupportsReplacement ( search_terms_data_ ) ) ;\n TemplateURLRef : : SearchTermsArgs search_terms_args ( test_data [ i ] . search_term ) ;\n search_terms_args . input_type = test_data [ i ] . input_type ;\n GURL result ( url . url_ref ( ) . ReplaceSearchTerms ( search_terms_args , search_terms_data_ ) ) ;\n ASSERT_TRUE ( result . is_valid ( ) ) ;\n EXPECT_EQ ( test_data [ i ] . expected_result , result . spec ( ) ) ;\n }\n }"}
{"idx": 12707, "target": 0, "func": "static void cmv_process_header ( CmvContext * s , const uint8_t * buf , const uint8_t * buf_end ) {\n int pal_start , pal_count , i ;\n if ( buf_end - buf < 16 ) {\n av_log ( s -> avctx , AV_LOG_WARNING , \"truncated header\\n\" ) ;\n return ;\n }\n s -> width = AV_RL16 ( & buf [ 4 ] ) ;\n s -> height = AV_RL16 ( & buf [ 6 ] ) ;\n if ( s -> avctx -> width != s -> width || s -> avctx -> height != s -> height ) avcodec_set_dimensions ( s -> avctx , s -> width , s -> height ) ;\n s -> avctx -> time_base . num = 1 ;\n s -> avctx -> time_base . den = AV_RL16 ( & buf [ 10 ] ) ;\n pal_start = AV_RL16 ( & buf [ 12 ] ) ;\n pal_count = AV_RL16 ( & buf [ 14 ] ) ;\n buf += 16 ;\n for ( i = pal_start ;\n i < pal_start + pal_count && i < AVPALETTE_COUNT && buf_end - buf >= 3 ;\n i ++ ) {\n s -> palette [ i ] = AV_RB24 ( buf ) ;\n buf += 3 ;\n }\n }"}
{"idx": 12708, "target": 0, "func": "void gx_device_copy_params ( gx_device * dev , const gx_device * target ) {\n # define COPY_ARRAY_PARAM ( p ) memcpy ( dev -> p , target -> p , sizeof ( dev -> p ) ) COPY_PARAM ( width ) ;\n COPY_PARAM ( height ) ;\n COPY_ARRAY_PARAM ( MediaSize ) ;\n COPY_ARRAY_PARAM ( ImagingBBox ) ;\n COPY_PARAM ( ImagingBBox_set ) ;\n COPY_ARRAY_PARAM ( HWResolution ) ;\n COPY_ARRAY_PARAM ( Margins ) ;\n COPY_ARRAY_PARAM ( HWMargins ) ;\n COPY_PARAM ( PageCount ) ;\n COPY_PARAM ( MaxPatternBitmap ) ;\n # undef COPY_ARRAY_PARAM gx_device_copy_color_params ( dev , target ) ;\n }"}
{"idx": 12709, "target": 0, "func": "void dissect_zcl_groups_attr_data ( proto_tree * tree , tvbuff_t * tvb , guint * offset , guint16 attr_id , guint data_type ) {\n switch ( attr_id ) {\n case ZBEE_ZCL_ATTR_ID_GROUPS_NAME_SUPPORT : proto_tree_add_item ( tree , hf_zbee_zcl_groups_group_name_support , tvb , * offset , 1 , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n break ;\n default : dissect_zcl_attr_data ( tvb , tree , offset , data_type ) ;\n break ;\n }\n }"}
{"idx": 12710, "target": 0, "func": "static void copy_files ( CopyMoveJob * job , const char * dest_fs_id , SourceInfo * source_info , TransferInfo * transfer_info ) {\n CommonJob * common ;\n GList * l ;\n GFile * src ;\n gboolean same_fs ;\n int i ;\n GdkPoint * point ;\n gboolean skipped_file ;\n gboolean unique_names ;\n GFile * dest ;\n GFile * source_dir ;\n char * dest_fs_type ;\n GFileInfo * inf ;\n gboolean readonly_source_fs ;\n dest_fs_type = NULL ;\n readonly_source_fs = FALSE ;\n common = & job -> common ;\n report_copy_progress ( job , source_info , transfer_info ) ;\n source_dir = g_file_get_parent ( ( GFile * ) job -> files -> data ) ;\n if ( source_dir ) {\n inf = g_file_query_filesystem_info ( source_dir , \"filesystem::readonly\" , NULL , NULL ) ;\n if ( inf != NULL ) {\n readonly_source_fs = g_file_info_get_attribute_boolean ( inf , \"filesystem::readonly\" ) ;\n g_object_unref ( inf ) ;\n }\n g_object_unref ( source_dir ) ;\n }\n unique_names = ( job -> destination == NULL ) ;\n i = 0 ;\n for ( l = job -> files ;\n l != NULL && ! job_aborted ( common ) ;\n l = l -> next ) {\n src = l -> data ;\n if ( i < job -> n_icon_positions ) {\n point = & job -> icon_positions [ i ] ;\n }\n else {\n point = NULL ;\n }\n same_fs = FALSE ;\n if ( dest_fs_id ) {\n same_fs = has_fs_id ( src , dest_fs_id ) ;\n }\n if ( job -> destination ) {\n dest = g_object_ref ( job -> destination ) ;\n }\n else {\n dest = g_file_get_parent ( src ) ;\n }\n if ( dest ) {\n skipped_file = FALSE ;\n copy_move_file ( job , src , dest , same_fs , unique_names , & dest_fs_type , source_info , transfer_info , job -> debuting_files , point , FALSE , & skipped_file , readonly_source_fs ) ;\n g_object_unref ( dest ) ;\n if ( skipped_file ) {\n transfer_add_file_to_count ( src , common , transfer_info ) ;\n report_copy_progress ( job , source_info , transfer_info ) ;\n }\n }\n i ++ ;\n }\n g_free ( dest_fs_type ) ;\n }"}
{"idx": 12711, "target": 0, "func": "static void qemuAgentIO ( int watch , int fd , int events , void * opaque ) {\n qemuAgentPtr mon = opaque ;\n bool error = false ;\n bool eof = false ;\n virObjectRef ( mon ) ;\n virObjectLock ( mon ) ;\n # if DEBUG_IO VIR_DEBUG ( \"Agent %p I/O on watch %d fd %d events %d\" , mon , watch , fd , events ) ;\n # endif if ( mon -> fd != fd || mon -> watch != watch ) {\n if ( events & ( VIR_EVENT_HANDLE_HANGUP | VIR_EVENT_HANDLE_ERROR ) ) eof = true ;\n virReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"event from unexpected fd %d!=%d / watch %d!=%d\" ) , mon -> fd , fd , mon -> watch , watch ) ;\n error = true ;\n }\n else if ( mon -> lastError . code != VIR_ERR_OK ) {\n if ( events & ( VIR_EVENT_HANDLE_HANGUP | VIR_EVENT_HANDLE_ERROR ) ) eof = true ;\n error = true ;\n }\n else {\n if ( events & VIR_EVENT_HANDLE_WRITABLE ) {\n if ( mon -> connectPending ) {\n if ( qemuAgentIOConnect ( mon ) < 0 ) error = true ;\n }\n else {\n if ( qemuAgentIOWrite ( mon ) < 0 ) error = true ;\n }\n events &= ~ VIR_EVENT_HANDLE_WRITABLE ;\n }\n if ( ! error && events & VIR_EVENT_HANDLE_READABLE ) {\n int got = qemuAgentIORead ( mon ) ;\n events &= ~ VIR_EVENT_HANDLE_READABLE ;\n if ( got < 0 ) {\n error = true ;\n }\n else if ( got == 0 ) {\n eof = true ;\n }\n else {\n events = 0 ;\n if ( qemuAgentIOProcess ( mon ) < 0 ) error = true ;\n }\n }\n if ( ! error && events & VIR_EVENT_HANDLE_HANGUP ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"End of file from agent monitor\" ) ) ;\n eof = true ;\n events &= ~ VIR_EVENT_HANDLE_HANGUP ;\n }\n if ( ! error && ! eof && events & VIR_EVENT_HANDLE_ERROR ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"Invalid file descriptor while waiting for monitor\" ) ) ;\n eof = true ;\n events &= ~ VIR_EVENT_HANDLE_ERROR ;\n }\n if ( ! error && events ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"Unhandled event %d for monitor fd %d\" ) , events , mon -> fd ) ;\n error = true ;\n }\n }\n if ( error || eof ) {\n if ( mon -> lastError . code != VIR_ERR_OK ) {\n virResetLastError ( ) ;\n }\n else {\n virErrorPtr err = virGetLastError ( ) ;\n if ( ! err ) virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"Error while processing monitor IO\" ) ) ;\n virCopyLastError ( & mon -> lastError ) ;\n virResetLastError ( ) ;\n }\n VIR_DEBUG ( \"Error on monitor %s\" , NULLSTR ( mon -> lastError . message ) ) ;\n if ( mon -> msg && ! mon -> msg -> finished ) {\n mon -> msg -> finished = 1 ;\n virCondSignal ( & mon -> notify ) ;\n }\n }\n qemuAgentUpdateWatch ( mon ) ;\n if ( eof ) {\n void ( * eofNotify ) ( qemuAgentPtr , virDomainObjPtr ) = mon -> cb -> eofNotify ;\n virDomainObjPtr vm = mon -> vm ;\n virCondSignal ( & mon -> notify ) ;\n virObjectUnlock ( mon ) ;\n virObjectUnref ( mon ) ;\n VIR_DEBUG ( \"Triggering EOF callback\" ) ;\n ( eofNotify ) ( mon , vm ) ;\n }\n else if ( error ) {\n void ( * errorNotify ) ( qemuAgentPtr , virDomainObjPtr ) = mon -> cb -> errorNotify ;\n virDomainObjPtr vm = mon -> vm ;\n virCondSignal ( & mon -> notify ) ;\n virObjectUnlock ( mon ) ;\n virObjectUnref ( mon ) ;\n VIR_DEBUG ( \"Triggering error callback\" ) ;\n ( errorNotify ) ( mon , vm ) ;\n }\n else {\n virObjectUnlock ( mon ) ;\n virObjectUnref ( mon ) ;\n }\n }"}
{"idx": 12712, "target": 0, "func": "static int dissect_h245_MultiplexEntrySendRelease ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MultiplexEntrySendRelease , MultiplexEntrySendRelease_sequence ) ;\n return offset ;\n }"}
{"idx": 12713, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( HostedAppTest , ShouldShowLocationBarForHTTPSBookmarkApp ) {\n base : : CommandLine : : ForCurrentProcess ( ) -> AppendSwitch ( switches : : kEnableNewBookmarkApps ) ;\n SetupApp ( \"https_app\" , true ) ;\n NavigateAndCheckForLocationBar ( app_browser_ , \"https://www.example.com/empty.html\" , false ) ;\n NavigateAndCheckForLocationBar ( app_browser_ , \"https://www.example.com/blah\" , false ) ;\n NavigateAndCheckForLocationBar ( app_browser_ , \"http://www.example.com/blah\" , true ) ;\n NavigateAndCheckForLocationBar ( app_browser_ , \"http://www.foo.com/blah\" , true ) ;\n NavigateAndCheckForLocationBar ( app_browser_ , \"https://www.example.com/blah\" , false ) ;\n }"}
{"idx": 12714, "target": 0, "func": "static __always_inline __u16 __le16_to_cpup ( const __le16 * p ) {\n return ( __u16 ) * p ;\n }"}
{"idx": 12715, "target": 0, "func": "static void test_store_result ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n int32 nData ;\n char szData [ 100 ] ;\n MYSQL_BIND my_bind [ 2 ] ;\n ulong length , length1 ;\n my_bool is_null [ 2 ] ;\n myheader ( \"test_store_result\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_store_result\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_store_result(col1 int , col2 varchar(50))\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_store_result VALUES(10, 'venu'), (20, 'mysql')\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_store_result(col2) VALUES('monty')\" ) ;\n myquery ( rc ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 0 ] . buffer = ( void * ) & nData ;\n my_bind [ 0 ] . length = & length ;\n my_bind [ 0 ] . is_null = & is_null [ 0 ] ;\n length = 0 ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 1 ] . buffer = szData ;\n my_bind [ 1 ] . buffer_length = sizeof ( szData ) ;\n my_bind [ 1 ] . length = & length1 ;\n my_bind [ 1 ] . is_null = & is_null [ 1 ] ;\n length1 = 0 ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT * FROM test_store_result\" ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_store_result ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n row 1: %ld, %s(%lu)\" , ( long ) nData , szData , length1 ) ;\n DIE_UNLESS ( nData == 10 ) ;\n DIE_UNLESS ( strcmp ( szData , \"venu\" ) == 0 ) ;\n DIE_UNLESS ( length1 == 4 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n row 2: %ld, %s(%lu)\" , ( long ) nData , szData , length1 ) ;\n DIE_UNLESS ( nData == 20 ) ;\n DIE_UNLESS ( strcmp ( szData , \"mysql\" ) == 0 ) ;\n DIE_UNLESS ( length1 == 5 ) ;\n length = 99 ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent && is_null [ 0 ] ) fprintf ( stdout , \"\\n row 3: NULL, %s(%lu)\" , szData , length1 ) ;\n DIE_UNLESS ( is_null [ 0 ] ) ;\n DIE_UNLESS ( strcmp ( szData , \"monty\" ) == 0 ) ;\n DIE_UNLESS ( length1 == 5 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_store_result ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n row 1: %ld, %s(%lu)\" , ( long ) nData , szData , length1 ) ;\n DIE_UNLESS ( nData == 10 ) ;\n DIE_UNLESS ( strcmp ( szData , \"venu\" ) == 0 ) ;\n DIE_UNLESS ( length1 == 4 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n row 2: %ld, %s(%lu)\" , ( long ) nData , szData , length1 ) ;\n DIE_UNLESS ( nData == 20 ) ;\n DIE_UNLESS ( strcmp ( szData , \"mysql\" ) == 0 ) ;\n DIE_UNLESS ( length1 == 5 ) ;\n length = 99 ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent && is_null [ 0 ] ) fprintf ( stdout , \"\\n row 3: NULL, %s(%lu)\" , szData , length1 ) ;\n DIE_UNLESS ( is_null [ 0 ] ) ;\n DIE_UNLESS ( strcmp ( szData , \"monty\" ) == 0 ) ;\n DIE_UNLESS ( length1 == 5 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 12716, "target": 0, "func": "static int set_file_identifier ( unsigned char * bp , int from , int to , enum vdc vdc , struct archive_write * a , struct vdd * vdd , struct archive_string * id , const char * label , int leading_under , enum char_type char_type ) {\n char identifier [ 256 ] ;\n struct isoent * isoent ;\n const char * ids ;\n size_t len ;\n int r ;\n if ( id -> length > 0 && leading_under && id -> s [ 0 ] != '_' ) {\n if ( char_type == A_CHAR ) r = set_str_a_characters_bp ( a , bp , from , to , id -> s , vdc ) ;\n else r = set_str_d_characters_bp ( a , bp , from , to , id -> s , vdc ) ;\n }\n else if ( id -> length > 0 ) {\n ids = id -> s ;\n if ( leading_under ) ids ++ ;\n isoent = isoent_find_entry ( vdd -> rootent , ids ) ;\n if ( isoent == NULL ) {\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"Not Found %s `%s'.\" , label , ids ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n len = isoent -> ext_off + isoent -> ext_len ;\n if ( vdd -> vdd_type == VDD_JOLIET ) {\n if ( len > sizeof ( identifier ) - 2 ) len = sizeof ( identifier ) - 2 ;\n }\n else {\n if ( len > sizeof ( identifier ) - 1 ) len = sizeof ( identifier ) - 1 ;\n }\n memcpy ( identifier , isoent -> identifier , len ) ;\n identifier [ len ] = '\\0' ;\n if ( vdd -> vdd_type == VDD_JOLIET ) {\n identifier [ len + 1 ] = 0 ;\n vdc = VDC_UCS2_DIRECT ;\n }\n if ( char_type == A_CHAR ) r = set_str_a_characters_bp ( a , bp , from , to , identifier , vdc ) ;\n else r = set_str_d_characters_bp ( a , bp , from , to , identifier , vdc ) ;\n }\n else {\n if ( char_type == A_CHAR ) r = set_str_a_characters_bp ( a , bp , from , to , NULL , vdc ) ;\n else r = set_str_d_characters_bp ( a , bp , from , to , NULL , vdc ) ;\n }\n return ( r ) ;\n }"}
{"idx": 12717, "target": 0, "func": "static int kvm_get_supported_msrs ( KVMState * s ) {\n static int kvm_supported_msrs ;\n int ret = 0 ;\n if ( kvm_supported_msrs == 0 ) {\n struct kvm_msr_list msr_list , * kvm_msr_list ;\n kvm_supported_msrs = - 1 ;\n msr_list . nmsrs = 0 ;\n ret = kvm_ioctl ( s , KVM_GET_MSR_INDEX_LIST , & msr_list ) ;\n if ( ret < 0 && ret != - E2BIG ) {\n return ret ;\n }\n kvm_msr_list = g_malloc0 ( MAX ( 1024 , sizeof ( msr_list ) + msr_list . nmsrs * sizeof ( msr_list . indices [ 0 ] ) ) ) ;\n kvm_msr_list -> nmsrs = msr_list . nmsrs ;\n ret = kvm_ioctl ( s , KVM_GET_MSR_INDEX_LIST , kvm_msr_list ) ;\n if ( ret >= 0 ) {\n int i ;\n for ( i = 0 ;\n i < kvm_msr_list -> nmsrs ;\n i ++ ) {\n switch ( kvm_msr_list -> indices [ i ] ) {\n case MSR_STAR : has_msr_star = true ;\n break ;\n case MSR_VM_HSAVE_PA : has_msr_hsave_pa = true ;\n break ;\n case MSR_TSC_AUX : has_msr_tsc_aux = true ;\n break ;\n case MSR_TSC_ADJUST : has_msr_tsc_adjust = true ;\n break ;\n case MSR_IA32_TSCDEADLINE : has_msr_tsc_deadline = true ;\n break ;\n case MSR_IA32_SMBASE : has_msr_smbase = true ;\n break ;\n case MSR_SMI_COUNT : has_msr_smi_count = true ;\n break ;\n case MSR_IA32_MISC_ENABLE : has_msr_misc_enable = true ;\n break ;\n case MSR_IA32_BNDCFGS : has_msr_bndcfgs = true ;\n break ;\n case MSR_IA32_XSS : has_msr_xss = true ;\n break ;\n case HV_X64_MSR_CRASH_CTL : has_msr_hv_crash = true ;\n break ;\n case HV_X64_MSR_RESET : has_msr_hv_reset = true ;\n break ;\n case HV_X64_MSR_VP_INDEX : has_msr_hv_vpindex = true ;\n break ;\n case HV_X64_MSR_VP_RUNTIME : has_msr_hv_runtime = true ;\n break ;\n case HV_X64_MSR_SCONTROL : has_msr_hv_synic = true ;\n break ;\n case HV_X64_MSR_STIMER0_CONFIG : has_msr_hv_stimer = true ;\n break ;\n case HV_X64_MSR_TSC_FREQUENCY : has_msr_hv_frequencies = true ;\n break ;\n case HV_X64_MSR_REENLIGHTENMENT_CONTROL : has_msr_hv_reenlightenment = true ;\n break ;\n case MSR_IA32_SPEC_CTRL : has_msr_spec_ctrl = true ;\n break ;\n case MSR_VIRT_SSBD : has_msr_virt_ssbd = true ;\n break ;\n }\n }\n }\n g_free ( kvm_msr_list ) ;\n }\n return ret ;\n }"}
{"idx": 12718, "target": 0, "func": "static int dissect_h245_T_containedThreads ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h245_T_containedThreads , T_containedThreads_sequence_of , 1 , 256 , FALSE ) ;\n return offset ;\n }"}
{"idx": 12719, "target": 0, "func": "static void * linux_udev_event_thread_main ( void * arg ) {\n char dummy ;\n int r ;\n struct udev_device * udev_dev ;\n struct pollfd fds [ ] = {\n {\n . fd = udev_control_pipe [ 0 ] , . events = POLLIN }\n , {\n . fd = udev_monitor_fd , . events = POLLIN }\n , }\n ;\n usbi_dbg ( \"udev event thread entering.\" ) ;\n while ( poll ( fds , 2 , - 1 ) >= 0 ) {\n if ( fds [ 0 ] . revents & POLLIN ) {\n r = usbi_read ( udev_control_pipe [ 0 ] , & dummy , sizeof ( dummy ) ) ;\n if ( r <= 0 ) {\n usbi_warn ( NULL , \"udev control pipe read failed\" ) ;\n }\n break ;\n }\n if ( fds [ 1 ] . revents & POLLIN ) {\n usbi_mutex_static_lock ( & linux_hotplug_lock ) ;\n udev_dev = device : : udev_monitor_receive_device ( udev_monitor ) ;\n if ( udev_dev ) udev_hotplug_event ( udev_dev ) ;\n usbi_mutex_static_unlock ( & linux_hotplug_lock ) ;\n }\n }\n usbi_dbg ( \"udev event thread exiting\" ) ;\n return NULL ;\n }"}
{"idx": 12720, "target": 0, "func": "static void test_multi_statements ( ) {\n MYSQL * mysql_local ;\n MYSQL_RES * result ;\n int rc ;\n const char * query = \"\\ DROP TABLE IF EXISTS test_multi_tab;\n\\ CREATE TABLE test_multi_tab(id int, name char(20));\n\\ INSERT INTO test_multi_tab(id) VALUES(10), (20);\n\\ INSERT INTO test_multi_tab VALUES(20, 'insert;\ncomma');\n\\ SELECT * FROM test_multi_tab;\n\\ UPDATE test_multi_tab SET name='new;\nname' WHERE id=20;\n\\ DELETE FROM test_multi_tab WHERE name='new;\nname';\n\\ SELECT * FROM test_multi_tab;\n\\ DELETE FROM test_multi_tab WHERE id=10;\n\\ SELECT * FROM test_multi_tab;\n\\ DROP TABLE test_multi_tab;\n\\ select 1;\n\\ DROP TABLE IF EXISTS test_multi_tab\" ;\n uint count , exp_value ;\n uint rows [ ] = {\n 0 , 0 , 2 , 1 , 3 , 2 , 2 , 1 , 1 , 0 , 0 , 1 , 0 }\n ;\n myheader ( \"test_multi_statements\" ) ;\n rc = mysql_query ( mysql , query ) ;\n myquery_r ( rc ) ;\n rc = mysql_next_result ( mysql ) ;\n DIE_UNLESS ( rc == - 1 ) ;\n rc = mysql_more_results ( mysql ) ;\n DIE_UNLESS ( rc == 0 ) ;\n if ( ! ( mysql_local = mysql_client_init ( NULL ) ) ) {\n fprintf ( stdout , \"\\n mysql_client_init() failed\" ) ;\n exit ( 1 ) ;\n }\n if ( ! ( mysql_real_connect ( mysql_local , opt_host , opt_user , opt_password , current_db , opt_port , opt_unix_socket , CLIENT_MULTI_STATEMENTS ) ) ) {\n fprintf ( stdout , \"\\n connection failed(%s)\" , mysql_error ( mysql_local ) ) ;\n exit ( 1 ) ;\n }\n mysql_local -> reconnect = 1 ;\n rc = mysql_query ( mysql_local , query ) ;\n myquery ( rc ) ;\n for ( count = 0 ;\n count < array_elements ( rows ) ;\n count ++ ) {\n if ( ! opt_silent ) fprintf ( stdout , \"\\n Query %d: \" , count ) ;\n if ( ( result = mysql_store_result ( mysql_local ) ) ) {\n ( void ) my_process_result_set ( result ) ;\n mysql_free_result ( result ) ;\n }\n else if ( ! opt_silent ) fprintf ( stdout , \"OK, %ld row(s) affected, %ld warning(s)\\n\" , ( ulong ) mysql_affected_rows ( mysql_local ) , ( ulong ) mysql_warning_count ( mysql_local ) ) ;\n exp_value = ( uint ) mysql_affected_rows ( mysql_local ) ;\n if ( rows [ count ] != exp_value ) {\n fprintf ( stderr , \"row %d had affected rows: %d, should be %d\\n\" , count , exp_value , rows [ count ] ) ;\n exit ( 1 ) ;\n }\n if ( count != array_elements ( rows ) - 1 ) {\n if ( ! ( rc = mysql_more_results ( mysql_local ) ) ) {\n fprintf ( stdout , \"mysql_more_result returned wrong value: %d for row %d\\n\" , rc , count ) ;\n exit ( 1 ) ;\n }\n if ( ( rc = mysql_next_result ( mysql_local ) ) ) {\n exp_value = mysql_errno ( mysql_local ) ;\n exit ( 1 ) ;\n }\n }\n else {\n rc = mysql_more_results ( mysql_local ) ;\n DIE_UNLESS ( rc == 0 ) ;\n rc = mysql_next_result ( mysql_local ) ;\n DIE_UNLESS ( rc == - 1 ) ;\n }\n }\n rc = mysql_query ( mysql_local , \"select 1+1+a;\nselect 1+1\" ) ;\n myquery_r ( rc ) ;\n rc = mysql_more_results ( mysql_local ) ;\n DIE_UNLESS ( rc == 0 ) ;\n rc = mysql_next_result ( mysql_local ) ;\n DIE_UNLESS ( rc == - 1 ) ;\n rc = mysql_query ( mysql_local , \"select 1+1;\nselect 1+1+a;\nselect 1\" ) ;\n myquery ( rc ) ;\n result = mysql_store_result ( mysql_local ) ;\n mytest ( result ) ;\n mysql_free_result ( result ) ;\n rc = mysql_more_results ( mysql_local ) ;\n DIE_UNLESS ( rc == 1 ) ;\n rc = mysql_next_result ( mysql_local ) ;\n DIE_UNLESS ( rc > 0 ) ;\n rc = mysql_query ( mysql_local , \"select 1+1+1\" ) ;\n myquery ( rc ) ;\n result = mysql_store_result ( mysql_local ) ;\n mytest ( result ) ;\n ( void ) my_process_result_set ( result ) ;\n mysql_free_result ( result ) ;\n rc = mysql_query ( mysql_local , \"select 1;\n select * from not_existing_table\" ) ;\n myquery ( rc ) ;\n result = mysql_store_result ( mysql_local ) ;\n mysql_free_result ( result ) ;\n rc = mysql_next_result ( mysql_local ) ;\n DIE_UNLESS ( rc > 0 ) ;\n rc = mysql_next_result ( mysql_local ) ;\n DIE_UNLESS ( rc < 0 ) ;\n mysql_close ( mysql_local ) ;\n }"}
{"idx": 12721, "target": 0, "func": "static int decode_subframe ( WMAProDecodeCtx * s ) {\n int offset = s -> samples_per_frame ;\n int subframe_len = s -> samples_per_frame ;\n int i ;\n int total_samples = s -> samples_per_frame * s -> avctx -> channels ;\n int transmit_coeffs = 0 ;\n int cur_subwoofer_cutoff ;\n s -> subframe_offset = get_bits_count ( & s -> gb ) ;\n for ( i = 0 ;\n i < s -> avctx -> channels ;\n i ++ ) {\n s -> channel [ i ] . grouped = 0 ;\n if ( offset > s -> channel [ i ] . decoded_samples ) {\n offset = s -> channel [ i ] . decoded_samples ;\n subframe_len = s -> channel [ i ] . subframe_len [ s -> channel [ i ] . cur_subframe ] ;\n }\n }\n av_dlog ( s -> avctx , \"processing subframe with offset %i len %i\\n\" , offset , subframe_len ) ;\n s -> channels_for_cur_subframe = 0 ;\n for ( i = 0 ;\n i < s -> avctx -> channels ;\n i ++ ) {\n const int cur_subframe = s -> channel [ i ] . cur_subframe ;\n total_samples -= s -> channel [ i ] . decoded_samples ;\n if ( offset == s -> channel [ i ] . decoded_samples && subframe_len == s -> channel [ i ] . subframe_len [ cur_subframe ] ) {\n total_samples -= s -> channel [ i ] . subframe_len [ cur_subframe ] ;\n s -> channel [ i ] . decoded_samples += s -> channel [ i ] . subframe_len [ cur_subframe ] ;\n s -> channel_indexes_for_cur_subframe [ s -> channels_for_cur_subframe ] = i ;\n ++ s -> channels_for_cur_subframe ;\n }\n }\n if ( ! total_samples ) s -> parsed_all_subframes = 1 ;\n av_dlog ( s -> avctx , \"subframe is part of %i channels\\n\" , s -> channels_for_cur_subframe ) ;\n s -> table_idx = av_log2 ( s -> samples_per_frame / subframe_len ) ;\n s -> num_bands = s -> num_sfb [ s -> table_idx ] ;\n s -> cur_sfb_offsets = s -> sfb_offsets [ s -> table_idx ] ;\n cur_subwoofer_cutoff = s -> subwoofer_cutoffs [ s -> table_idx ] ;\n for ( i = 0 ;\n i < s -> channels_for_cur_subframe ;\n i ++ ) {\n int c = s -> channel_indexes_for_cur_subframe [ i ] ;\n s -> channel [ c ] . coeffs = & s -> channel [ c ] . out [ ( s -> samples_per_frame >> 1 ) + offset ] ;\n }\n s -> subframe_len = subframe_len ;\n s -> esc_len = av_log2 ( s -> subframe_len - 1 ) + 1 ;\n if ( get_bits1 ( & s -> gb ) ) {\n int num_fill_bits ;\n if ( ! ( num_fill_bits = get_bits ( & s -> gb , 2 ) ) ) {\n int len = get_bits ( & s -> gb , 4 ) ;\n num_fill_bits = get_bits ( & s -> gb , len ) + 1 ;\n }\n if ( num_fill_bits >= 0 ) {\n if ( get_bits_count ( & s -> gb ) + num_fill_bits > s -> num_saved_bits ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"invalid number of fill bits\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n skip_bits_long ( & s -> gb , num_fill_bits ) ;\n }\n }\n if ( get_bits1 ( & s -> gb ) ) {\n av_log_ask_for_sample ( s -> avctx , \"reserved bit set\\n\" ) ;\n return AVERROR_PATCHWELCOME ;\n }\n if ( decode_channel_transform ( s ) < 0 ) return AVERROR_INVALIDDATA ;\n for ( i = 0 ;\n i < s -> channels_for_cur_subframe ;\n i ++ ) {\n int c = s -> channel_indexes_for_cur_subframe [ i ] ;\n if ( ( s -> channel [ c ] . transmit_coefs = get_bits1 ( & s -> gb ) ) ) transmit_coeffs = 1 ;\n }\n if ( transmit_coeffs ) {\n int step ;\n int quant_step = 90 * s -> bits_per_sample >> 4 ;\n if ( ( s -> transmit_num_vec_coeffs = get_bits1 ( & s -> gb ) ) ) {\n int num_bits = av_log2 ( ( s -> subframe_len + 3 ) / 4 ) + 1 ;\n for ( i = 0 ;\n i < s -> channels_for_cur_subframe ;\n i ++ ) {\n int c = s -> channel_indexes_for_cur_subframe [ i ] ;\n int num_vec_coeffs = get_bits ( & s -> gb , num_bits ) << 2 ;\n if ( num_vec_coeffs > WMAPRO_BLOCK_MAX_SIZE ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"num_vec_coeffs %d is too large\\n\" , num_vec_coeffs ) ;\n return AVERROR_INVALIDDATA ;\n }\n s -> channel [ c ] . num_vec_coeffs = num_vec_coeffs ;\n }\n }\n else {\n for ( i = 0 ;\n i < s -> channels_for_cur_subframe ;\n i ++ ) {\n int c = s -> channel_indexes_for_cur_subframe [ i ] ;\n s -> channel [ c ] . num_vec_coeffs = s -> subframe_len ;\n }\n }\n step = get_sbits ( & s -> gb , 6 ) ;\n quant_step += step ;\n if ( step == - 32 || step == 31 ) {\n const int sign = ( step == 31 ) - 1 ;\n int quant = 0 ;\n while ( get_bits_count ( & s -> gb ) + 5 < s -> num_saved_bits && ( step = get_bits ( & s -> gb , 5 ) ) == 31 ) {\n quant += 31 ;\n }\n quant_step += ( ( quant + step ) ^ sign ) - sign ;\n }\n if ( quant_step < 0 ) {\n av_log ( s -> avctx , AV_LOG_DEBUG , \"negative quant step\\n\" ) ;\n }\n if ( s -> channels_for_cur_subframe == 1 ) {\n s -> channel [ s -> channel_indexes_for_cur_subframe [ 0 ] ] . quant_step = quant_step ;\n }\n else {\n int modifier_len = get_bits ( & s -> gb , 3 ) ;\n for ( i = 0 ;\n i < s -> channels_for_cur_subframe ;\n i ++ ) {\n int c = s -> channel_indexes_for_cur_subframe [ i ] ;\n s -> channel [ c ] . quant_step = quant_step ;\n if ( get_bits1 ( & s -> gb ) ) {\n if ( modifier_len ) {\n s -> channel [ c ] . quant_step += get_bits ( & s -> gb , modifier_len ) + 1 ;\n }\n else ++ s -> channel [ c ] . quant_step ;\n }\n }\n }\n if ( decode_scale_factors ( s ) < 0 ) return AVERROR_INVALIDDATA ;\n }\n av_dlog ( s -> avctx , \"BITSTREAM: subframe header length was %i\\n\" , get_bits_count ( & s -> gb ) - s -> subframe_offset ) ;\n for ( i = 0 ;\n i < s -> channels_for_cur_subframe ;\n i ++ ) {\n int c = s -> channel_indexes_for_cur_subframe [ i ] ;\n if ( s -> channel [ c ] . transmit_coefs && get_bits_count ( & s -> gb ) < s -> num_saved_bits ) {\n decode_coeffs ( s , c ) ;\n }\n else memset ( s -> channel [ c ] . coeffs , 0 , sizeof ( * s -> channel [ c ] . coeffs ) * subframe_len ) ;\n }\n av_dlog ( s -> avctx , \"BITSTREAM: subframe length was %i\\n\" , get_bits_count ( & s -> gb ) - s -> subframe_offset ) ;\n if ( transmit_coeffs ) {\n FFTContext * mdct = & s -> mdct_ctx [ av_log2 ( subframe_len ) - WMAPRO_BLOCK_MIN_BITS ] ;\n inverse_channel_transform ( s ) ;\n for ( i = 0 ;\n i < s -> channels_for_cur_subframe ;\n i ++ ) {\n int c = s -> channel_indexes_for_cur_subframe [ i ] ;\n const int * sf = s -> channel [ c ] . scale_factors ;\n int b ;\n if ( c == s -> lfe_channel ) memset ( & s -> tmp [ cur_subwoofer_cutoff ] , 0 , sizeof ( * s -> tmp ) * ( subframe_len - cur_subwoofer_cutoff ) ) ;\n for ( b = 0 ;\n b < s -> num_bands ;\n b ++ ) {\n const int end = FFMIN ( s -> cur_sfb_offsets [ b + 1 ] , s -> subframe_len ) ;\n const int exp = s -> channel [ c ] . quant_step - ( s -> channel [ c ] . max_scale_factor - * sf ++ ) * s -> channel [ c ] . scale_factor_step ;\n const float quant = pow ( 10.0 , exp / 20.0 ) ;\n int start = s -> cur_sfb_offsets [ b ] ;\n s -> fdsp . vector_fmul_scalar ( s -> tmp + start , s -> channel [ c ] . coeffs + start , quant , end - start ) ;\n }\n mdct -> imdct_half ( mdct , s -> channel [ c ] . coeffs , s -> tmp ) ;\n }\n }\n wmapro_window ( s ) ;\n for ( i = 0 ;\n i < s -> channels_for_cur_subframe ;\n i ++ ) {\n int c = s -> channel_indexes_for_cur_subframe [ i ] ;\n if ( s -> channel [ c ] . cur_subframe >= s -> channel [ c ] . num_subframes ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"broken subframe\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n ++ s -> channel [ c ] . cur_subframe ;\n }\n return 0 ;\n }"}
{"idx": 12722, "target": 0, "func": "static int transform_hook_handler ( TSCont contp , TSEvent event , void * edata ) {\n TSHttpTxn txnp = nullptr ;\n TransformTestData * data = nullptr ;\n CHECK_SPURIOUS_EVENT ( contp , event , edata ) ;\n data = ( TransformTestData * ) TSContDataGet ( contp ) ;\n switch ( event ) {\n case TS_EVENT_HTTP_READ_REQUEST_HDR : txnp = ( TSHttpTxn ) edata ;\n TSSkipRemappingSet ( txnp , 1 ) ;\n TSHttpTxnReenable ( txnp , TS_EVENT_HTTP_CONTINUE ) ;\n break ;\n case TS_EVENT_HTTP_READ_RESPONSE_HDR : txnp = ( TSHttpTxn ) edata ;\n if ( transformable ( txnp , data ) ) {\n transform_add ( txnp , data ) ;\n }\n {\n TSMBuffer bufp ;\n TSMLoc hdr ;\n TSMLoc field ;\n if ( TSHttpTxnClientReqGet ( txnp , & bufp , & hdr ) != TS_SUCCESS ) {\n SDK_RPRINT ( data -> test , \"TSHttpTxnTransform\" , \"TestCase\" , TC_FAIL , \"TSHttpTxnClientReqGet returns 0\" ) ;\n }\n else {\n if ( TS_NULL_MLOC == ( field = TSMimeHdrFieldFind ( bufp , hdr , \"Request\" , - 1 ) ) ) {\n SDK_RPRINT ( data -> test , \"TSHttpTxnTransform\" , \"TestCase\" , TC_FAIL , \"Didn't find field request\" ) ;\n }\n else {\n int reqid = TSMimeHdrFieldValueIntGet ( bufp , hdr , field , 0 ) ;\n if ( reqid == 1 ) {\n TSHttpTxnTransformedRespCache ( txnp , 0 ) ;\n TSHttpTxnUntransformedRespCache ( txnp , 1 ) ;\n }\n if ( reqid == 2 ) {\n TSHttpTxnTransformedRespCache ( txnp , 1 ) ;\n TSHttpTxnUntransformedRespCache ( txnp , 0 ) ;\n }\n if ( TSHandleMLocRelease ( bufp , hdr , field ) != TS_SUCCESS ) {\n SDK_RPRINT ( data -> test , \"TSHttpTxnTransform\" , \"TestCase\" , TC_FAIL , \"Unable to release handle to field in Client request\" ) ;\n }\n }\n if ( TSHandleMLocRelease ( bufp , TS_NULL_MLOC , hdr ) != TS_SUCCESS ) {\n SDK_RPRINT ( data -> test , \"TSHttpTxnTransform\" , \"TestCase\" , TC_FAIL , \"Unable to release handle to Client request\" ) ;\n }\n }\n }\n TSHttpTxnHookAdd ( txnp , TS_HTTP_SEND_RESPONSE_HDR_HOOK , contp ) ;\n TSHttpTxnReenable ( txnp , TS_EVENT_HTTP_CONTINUE ) ;\n break ;\n case TS_EVENT_HTTP_SEND_RESPONSE_HDR : {\n TSMBuffer bufp ;\n TSMLoc hdr ;\n txnp = ( TSHttpTxn ) edata ;\n if ( TSHttpTxnTransformRespGet ( txnp , & bufp , & hdr ) != TS_SUCCESS ) {\n SDK_RPRINT ( data -> test , \"TSHttpTxnTransformRespGet\" , \"TestCase\" , TC_FAIL , \"TSHttpTxnTransformRespGet returns 0\" ) ;\n data -> test_passed_txn_transform_resp_get = false ;\n }\n else {\n if ( ( bufp == reinterpret_cast < TSMBuffer > ( & ( ( ( HttpSM * ) txnp ) -> t_state . hdr_info . transform_response ) ) ) && ( hdr == reinterpret_cast < TSMLoc > ( ( & ( ( ( HttpSM * ) txnp ) -> t_state . hdr_info . transform_response ) ) -> m_http ) ) ) {\n SDK_RPRINT ( data -> test , \"TSHttpTxnTransformRespGet\" , \"TestCase\" , TC_PASS , \"ok\" ) ;\n }\n else {\n SDK_RPRINT ( data -> test , \"TSHttpTxnTransformRespGet\" , \"TestCase\" , TC_FAIL , \"Value's Mismatch\" ) ;\n data -> test_passed_txn_transform_resp_get = false ;\n }\n if ( TSHandleMLocRelease ( bufp , TS_NULL_MLOC , hdr ) != TS_SUCCESS ) {\n SDK_RPRINT ( data -> test , \"TSHttpTxnTransformRespGet\" , \"TestCase\" , TC_FAIL , \"Unable to release handle to Transform header handle\" ) ;\n }\n }\n }\n TSHttpTxnReenable ( txnp , TS_EVENT_HTTP_CONTINUE ) ;\n break ;\n case TS_EVENT_IMMEDIATE : case TS_EVENT_TIMEOUT : switch ( data -> req_no ) {\n case 1 : if ( data -> browser1 -> status == REQUEST_INPROGRESS ) {\n TSContSchedule ( contp , 25 , TS_THREAD_POOL_DEFAULT ) ;\n return 0 ;\n }\n data -> req_no ++ ;\n Debug ( UTDBG_TAG \"_transform\" , \"Running Browser 2\" ) ;\n synclient_txn_send_request ( data -> browser2 , data -> request2 ) ;\n TSContSchedule ( contp , 25 , TS_THREAD_POOL_DEFAULT ) ;\n return 0 ;\n case 2 : if ( data -> browser2 -> status == REQUEST_INPROGRESS ) {\n TSContSchedule ( contp , 25 , TS_THREAD_POOL_DEFAULT ) ;\n return 0 ;\n }\n data -> req_no ++ ;\n Debug ( UTDBG_TAG \"_transform\" , \"Running Browser 3\" ) ;\n synclient_txn_send_request ( data -> browser3 , data -> request1 ) ;\n TSContSchedule ( contp , 25 , TS_THREAD_POOL_DEFAULT ) ;\n return 0 ;\n case 3 : if ( data -> browser3 -> status == REQUEST_INPROGRESS ) {\n TSContSchedule ( contp , 25 , TS_THREAD_POOL_DEFAULT ) ;\n return 0 ;\n }\n data -> req_no ++ ;\n Debug ( UTDBG_TAG \"_transform\" , \"Running Browser 4\" ) ;\n synclient_txn_send_request ( data -> browser4 , data -> request2 ) ;\n TSContSchedule ( contp , 25 , TS_THREAD_POOL_DEFAULT ) ;\n return 0 ;\n case 4 : if ( data -> browser4 -> status == REQUEST_INPROGRESS ) {\n TSContSchedule ( contp , 25 , TS_THREAD_POOL_DEFAULT ) ;\n return 0 ;\n }\n synserver_delete ( data -> os ) ;\n data -> os = nullptr ;\n data -> req_no ++ ;\n TSfree ( data -> request1 ) ;\n TSfree ( data -> request2 ) ;\n break ;\n default : SDK_RPRINT ( data -> test , \"TSHttpTxnTransform\" , \"TestCase\" , TC_FAIL , \"Something terribly wrong with the test\" ) ;\n exit ( 0 ) ;\n }\n {\n if ( ( strstr ( data -> browser1 -> response , TRANSFORM_APPEND_STRING ) != nullptr ) && ( strstr ( data -> browser3 -> response , TRANSFORM_APPEND_STRING ) == nullptr ) ) {\n SDK_RPRINT ( data -> test , \"TSHttpTxnUntransformedResponseCache\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n data -> test_passed_txn_untransformed_resp_cache = true ;\n }\n else {\n SDK_RPRINT ( data -> test , \"TSHttpTxnUntransformedResponseCache\" , \"TestCase1\" , TC_FAIL , \"Value's Mismatch\" ) ;\n }\n if ( ( strstr ( data -> browser2 -> response , TRANSFORM_APPEND_STRING ) != nullptr ) && ( strstr ( data -> browser4 -> response , TRANSFORM_APPEND_STRING ) != nullptr ) ) {\n SDK_RPRINT ( data -> test , \"TSHttpTxnTransformedResponseCache\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n data -> test_passed_txn_transformed_resp_cache = true ;\n }\n else {\n SDK_RPRINT ( data -> test , \"TSHttpTxnTransformedResponseCache\" , \"TestCase1\" , TC_FAIL , \"Value's Mismatch\" ) ;\n }\n * ( data -> pstatus ) = REGRESSION_TEST_PASSED ;\n if ( data -> browser1 -> status != REQUEST_SUCCESS ) {\n SDK_RPRINT ( data -> test , \"TSTransformCreate\" , \"TestCase1\" , TC_FAIL , \"Browser 1 status was not REQUEST_SUCCESS\" ) ;\n * ( data -> pstatus ) = REGRESSION_TEST_FAILED ;\n }\n if ( data -> browser2 -> status != REQUEST_SUCCESS ) {\n SDK_RPRINT ( data -> test , \"TSTransformCreate\" , \"TestCase1\" , TC_FAIL , \"Browser 2 status was not REQUEST_SUCCESS\" ) ;\n * ( data -> pstatus ) = REGRESSION_TEST_FAILED ;\n }\n if ( data -> browser3 -> status != REQUEST_SUCCESS ) {\n SDK_RPRINT ( data -> test , \"TSTransformCreate\" , \"TestCase1\" , TC_FAIL , \"Browser 3 status was not REQUEST_SUCCESS\" ) ;\n * ( data -> pstatus ) = REGRESSION_TEST_FAILED ;\n }\n if ( data -> browser4 -> status != REQUEST_SUCCESS ) {\n SDK_RPRINT ( data -> test , \"TSTransformCreate\" , \"TestCase1\" , TC_FAIL , \"Browser 4 status was not REQUEST_SUCCESS\" ) ;\n * ( data -> pstatus ) = REGRESSION_TEST_FAILED ;\n }\n if ( data -> test_passed_txn_transform_resp_get != true ) {\n SDK_RPRINT ( data -> test , \"TSTransformCreate\" , \"TestCase1\" , TC_FAIL , \"did not pass transform_resp_get\" ) ;\n * ( data -> pstatus ) = REGRESSION_TEST_FAILED ;\n }\n if ( data -> test_passed_txn_transformed_resp_cache != true ) {\n SDK_RPRINT ( data -> test , \"TSTransformCreate\" , \"TestCase1\" , TC_FAIL , \"did not pass transformed_resp_cache\" ) ;\n * ( data -> pstatus ) = REGRESSION_TEST_FAILED ;\n }\n if ( data -> test_passed_txn_untransformed_resp_cache != true ) {\n SDK_RPRINT ( data -> test , \"TSTransformCreate\" , \"TestCase1\" , TC_FAIL , \"did not pass untransformed_resp_cache\" ) ;\n * ( data -> pstatus ) = REGRESSION_TEST_FAILED ;\n }\n if ( data -> test_passed_transform_create != true ) {\n SDK_RPRINT ( data -> test , \"TSTransformCreate\" , \"TestCase1\" , TC_FAIL , \"did not pass transform_create\" ) ;\n * ( data -> pstatus ) = REGRESSION_TEST_FAILED ;\n }\n synclient_txn_delete ( data -> browser1 ) ;\n synclient_txn_delete ( data -> browser2 ) ;\n synclient_txn_delete ( data -> browser3 ) ;\n synclient_txn_delete ( data -> browser4 ) ;\n TSContDataSet ( contp , nullptr ) ;\n data -> magic = MAGIC_DEAD ;\n TSfree ( data ) ;\n }\n break ;\n default : * ( data -> pstatus ) = REGRESSION_TEST_FAILED ;\n SDK_RPRINT ( data -> test , \"TSHttpTxnTransform\" , \"TestCase1\" , TC_FAIL , \"Unexpected event %d\" , event ) ;\n break ;\n }\n return 0 ;\n }"}
{"idx": 12723, "target": 0, "func": "static void makeAlterConfigCommand ( PGconn * conn , const char * arrayitem , const char * type , const char * name , const char * type2 , const char * name2 ) {\n char * pos ;\n char * mine ;\n PQExpBuffer buf ;\n mine = pg_strdup ( arrayitem ) ;\n pos = strchr ( mine , '=' ) ;\n if ( pos == NULL ) {\n free ( mine ) ;\n return ;\n }\n buf = createPQExpBuffer ( ) ;\n * pos = 0 ;\n appendPQExpBuffer ( buf , \"ALTER %s %s \" , type , fmtId ( name ) ) ;\n if ( type2 != NULL && name2 != NULL ) appendPQExpBuffer ( buf , \"IN %s %s \" , type2 , fmtId ( name2 ) ) ;\n appendPQExpBuffer ( buf , \"SET %s TO \" , fmtId ( mine ) ) ;\n if ( pg_strcasecmp ( mine , \"DateStyle\" ) == 0 || pg_strcasecmp ( mine , \"search_path\" ) == 0 ) appendPQExpBufferStr ( buf , pos + 1 ) ;\n else appendStringLiteralConn ( buf , pos + 1 , conn ) ;\n appendPQExpBufferStr ( buf , \";\n\\n\" ) ;\n fprintf ( OPF , \"%s\" , buf -> data ) ;\n destroyPQExpBuffer ( buf ) ;\n free ( mine ) ;\n }"}
{"idx": 12724, "target": 0, "func": "static char * make_fast_import_path ( const char * path ) {\n if ( ! relative_marks_paths || is_absolute_path ( path ) ) return xstrdup ( path ) ;\n return xstrdup ( git_path ( \"info/fast-import/%s\" , path ) ) ;\n }"}
{"idx": 12725, "target": 0, "func": "static void xhci_reset_streams ( XHCIEPContext * epctx ) {\n unsigned int i ;\n for ( i = 0 ;\n i < epctx -> nr_pstreams ;\n i ++ ) {\n epctx -> pstreams [ i ] . sct = - 1 ;\n }\n }"}
{"idx": 12726, "target": 0, "func": "int DMA_write_memory ( int nchan , void * buf , int pos , int size ) {\n return 0 ;\n }"}
{"idx": 12727, "target": 0, "func": "static int arm_mptimer_init ( SysBusDevice * dev ) {\n ARMMPTimerState * s = FROM_SYSBUS ( ARMMPTimerState , dev ) ;\n int i ;\n if ( s -> num_cpu < 1 || s -> num_cpu > MAX_CPUS ) {\n hw_error ( \"%s: num-cpu must be between 1 and %d\\n\" , __func__ , MAX_CPUS ) ;\n }\n memory_region_init_io ( & s -> iomem , OBJECT ( s ) , & arm_thistimer_ops , s , \"arm_mptimer_timer\" , 0x20 ) ;\n sysbus_init_mmio ( dev , & s -> iomem ) ;\n for ( i = 0 ;\n i < s -> num_cpu ;\n i ++ ) {\n TimerBlock * tb = & s -> timerblock [ i ] ;\n tb -> timer = qemu_new_timer_ns ( vm_clock , timerblock_tick , tb ) ;\n sysbus_init_irq ( dev , & tb -> irq ) ;\n memory_region_init_io ( & tb -> iomem , OBJECT ( s ) , & timerblock_ops , tb , \"arm_mptimer_timerblock\" , 0x20 ) ;\n sysbus_init_mmio ( dev , & tb -> iomem ) ;\n }\n return 0 ;\n }"}
{"idx": 12728, "target": 0, "func": "proto_item * proto_tree_add_item_ret_uint ( proto_tree * tree , int hfindex , tvbuff_t * tvb , const gint start , gint length , const guint encoding , guint32 * retval ) {\n header_field_info * hfinfo = proto_registrar_get_nth ( hfindex ) ;\n field_info * new_fi ;\n guint32 value ;\n DISSECTOR_ASSERT_HINT ( hfinfo != NULL , \"Not passed hfi!\" ) ;\n switch ( hfinfo -> type ) {\n case FT_UINT8 : case FT_UINT16 : case FT_UINT24 : case FT_UINT32 : break ;\n default : DISSECTOR_ASSERT_NOT_REACHED ( ) ;\n }\n if ( length < - 1 || length == 0 ) REPORT_DISSECTOR_BUG ( wmem_strdup_printf ( wmem_packet_scope ( ) , \"Invalid length %d passed to proto_tree_add_item_ret_uint\" , length ) ) ;\n if ( encoding & ENC_STRING ) {\n REPORT_DISSECTOR_BUG ( \"wrong encoding\" ) ;\n }\n value = get_uint_value ( tree , tvb , start , length , encoding ) ;\n if ( retval ) * retval = value ;\n CHECK_FOR_NULL_TREE ( tree ) ;\n TRY_TO_FAKE_THIS_ITEM ( tree , hfinfo -> id , hfinfo ) ;\n new_fi = new_field_info ( tree , hfinfo , tvb , start , length ) ;\n proto_tree_set_uint ( new_fi , value ) ;\n new_fi -> flags |= ( encoding & ENC_LITTLE_ENDIAN ) ? FI_LITTLE_ENDIAN : FI_BIG_ENDIAN ;\n return proto_tree_add_node ( tree , new_fi ) ;\n }"}
{"idx": 12729, "target": 0, "func": "static void truemotion1_decode_16bit ( TrueMotion1Context * s ) {\n int y ;\n int pixels_left ;\n unsigned int predictor_pair ;\n unsigned int horiz_pred ;\n unsigned int * vert_pred ;\n unsigned int * current_pixel_pair ;\n unsigned char * current_line = s -> frame . data [ 0 ] ;\n int keyframe = s -> flags & FLAG_KEYFRAME ;\n const unsigned char * mb_change_bits = s -> mb_change_bits ;\n unsigned char mb_change_byte ;\n unsigned char mb_change_byte_mask ;\n int mb_change_index ;\n int index_stream_index = 0 ;\n int index ;\n memset ( s -> vert_pred , 0 , s -> avctx -> width * sizeof ( unsigned int ) ) ;\n GET_NEXT_INDEX ( ) ;\n for ( y = 0 ;\n y < s -> avctx -> height ;\n y ++ ) {\n horiz_pred = 0 ;\n current_pixel_pair = ( unsigned int * ) current_line ;\n vert_pred = s -> vert_pred ;\n mb_change_index = 0 ;\n mb_change_byte = mb_change_bits [ mb_change_index ++ ] ;\n mb_change_byte_mask = 0x01 ;\n pixels_left = s -> avctx -> width ;\n while ( pixels_left > 0 ) {\n if ( keyframe || ( ( mb_change_byte & mb_change_byte_mask ) == 0 ) ) {\n switch ( y & 3 ) {\n case 0 : if ( s -> block_width == 2 ) {\n APPLY_C_PREDICTOR ( ) ;\n APPLY_Y_PREDICTOR ( ) ;\n OUTPUT_PIXEL_PAIR ( ) ;\n APPLY_C_PREDICTOR ( ) ;\n APPLY_Y_PREDICTOR ( ) ;\n OUTPUT_PIXEL_PAIR ( ) ;\n }\n else {\n APPLY_C_PREDICTOR ( ) ;\n APPLY_Y_PREDICTOR ( ) ;\n OUTPUT_PIXEL_PAIR ( ) ;\n APPLY_Y_PREDICTOR ( ) ;\n OUTPUT_PIXEL_PAIR ( ) ;\n }\n break ;\n case 1 : case 3 : APPLY_Y_PREDICTOR ( ) ;\n OUTPUT_PIXEL_PAIR ( ) ;\n APPLY_Y_PREDICTOR ( ) ;\n OUTPUT_PIXEL_PAIR ( ) ;\n break ;\n case 2 : if ( s -> block_type == BLOCK_2x2 ) {\n APPLY_C_PREDICTOR ( ) ;\n APPLY_Y_PREDICTOR ( ) ;\n OUTPUT_PIXEL_PAIR ( ) ;\n APPLY_C_PREDICTOR ( ) ;\n APPLY_Y_PREDICTOR ( ) ;\n OUTPUT_PIXEL_PAIR ( ) ;\n }\n else if ( s -> block_type == BLOCK_4x2 ) {\n APPLY_C_PREDICTOR ( ) ;\n APPLY_Y_PREDICTOR ( ) ;\n OUTPUT_PIXEL_PAIR ( ) ;\n APPLY_Y_PREDICTOR ( ) ;\n OUTPUT_PIXEL_PAIR ( ) ;\n }\n else {\n APPLY_Y_PREDICTOR ( ) ;\n OUTPUT_PIXEL_PAIR ( ) ;\n APPLY_Y_PREDICTOR ( ) ;\n OUTPUT_PIXEL_PAIR ( ) ;\n }\n break ;\n }\n }\n else {\n * vert_pred ++ = * current_pixel_pair ++ ;\n horiz_pred = * current_pixel_pair - * vert_pred ;\n * vert_pred ++ = * current_pixel_pair ++ ;\n }\n if ( ! keyframe ) {\n mb_change_byte_mask <<= 1 ;\n if ( ! mb_change_byte_mask ) {\n mb_change_byte = mb_change_bits [ mb_change_index ++ ] ;\n mb_change_byte_mask = 0x01 ;\n }\n }\n pixels_left -= 4 ;\n }\n if ( ( ( y + 1 ) & 3 ) == 0 ) mb_change_bits += s -> mb_change_bits_row_size ;\n current_line += s -> frame . linesize [ 0 ] ;\n }\n }"}
{"idx": 12730, "target": 0, "func": "int kvm_arch_add_msi_route_post ( struct kvm_irq_routing_entry * route , int vector , PCIDevice * dev ) {\n static bool notify_list_inited = false ;\n MSIRouteEntry * entry ;\n if ( ! dev ) {\n return 0 ;\n }\n entry = g_new0 ( MSIRouteEntry , 1 ) ;\n entry -> dev = dev ;\n entry -> vector = vector ;\n entry -> virq = route -> gsi ;\n QLIST_INSERT_HEAD ( & msi_route_list , entry , list ) ;\n trace_kvm_x86_add_msi_route ( route -> gsi ) ;\n if ( ! notify_list_inited ) {\n X86IOMMUState * iommu = x86_iommu_get_default ( ) ;\n if ( iommu ) {\n x86_iommu_iec_register_notifier ( iommu , kvm_update_msi_routes_all , NULL ) ;\n }\n notify_list_inited = true ;\n }\n return 0 ;\n }"}
{"idx": 12731, "target": 0, "func": "static int dissect_h225_H245Control_item ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 370 \"./asn1/h225/h225.cnf\" tvbuff_t * h245_tvb = NULL ;\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , NO_BOUND , NO_BOUND , FALSE , & h245_tvb ) ;\n next_tvb_add_handle ( & h245_list , h245_tvb , ( h225_h245_in_tree ) ? tree : NULL , h245dg_handle ) ;\n return offset ;\n }"}
{"idx": 12732, "target": 0, "func": "void WriteData ( Archive * AHX , const void * data , size_t dLen ) {\n ArchiveHandle * AH = ( ArchiveHandle * ) AHX ;\n if ( ! AH -> currToc ) exit_horribly ( modulename , \"internal error -- WriteData cannot be called outside the context of a DataDumper routine\\n\" ) ;\n ( * AH -> WriteDataPtr ) ( AH , data , dLen ) ;\n return ;\n }"}
{"idx": 12733, "target": 0, "func": "int vp9_get_reference_mode_context ( const VP9_COMMON * cm , const MACROBLOCKD * xd ) {\n int ctx ;\n const MB_MODE_INFO * const above_mbmi = get_mbmi ( get_above_mi ( xd ) ) ;\n const MB_MODE_INFO * const left_mbmi = get_mbmi ( get_left_mi ( xd ) ) ;\n const int has_above = above_mbmi != NULL ;\n const int has_left = left_mbmi != NULL ;\n if ( has_above && has_left ) {\n if ( ! has_second_ref ( above_mbmi ) && ! has_second_ref ( left_mbmi ) ) ctx = ( above_mbmi -> ref_frame [ 0 ] == cm -> comp_fixed_ref ) ^ ( left_mbmi -> ref_frame [ 0 ] == cm -> comp_fixed_ref ) ;\n else if ( ! has_second_ref ( above_mbmi ) ) ctx = 2 + ( above_mbmi -> ref_frame [ 0 ] == cm -> comp_fixed_ref || ! is_inter_block ( above_mbmi ) ) ;\n else if ( ! has_second_ref ( left_mbmi ) ) ctx = 2 + ( left_mbmi -> ref_frame [ 0 ] == cm -> comp_fixed_ref || ! is_inter_block ( left_mbmi ) ) ;\n else ctx = 4 ;\n }\n else if ( has_above || has_left ) {\n const MB_MODE_INFO * edge_mbmi = has_above ? above_mbmi : left_mbmi ;\n if ( ! has_second_ref ( edge_mbmi ) ) ctx = edge_mbmi -> ref_frame [ 0 ] == cm -> comp_fixed_ref ;\n else ctx = 3 ;\n }\n else {\n ctx = 1 ;\n }\n assert ( ctx >= 0 && ctx < COMP_INTER_CONTEXTS ) ;\n return ctx ;\n }"}
{"idx": 12734, "target": 0, "func": "static inline int ohci_put_td ( OHCIState * ohci , dma_addr_t addr , struct ohci_td * td ) {\n return put_dwords ( ohci , addr , ( uint32_t * ) td , sizeof ( * td ) >> 2 ) ;\n }"}
{"idx": 12735, "target": 0, "func": "static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_reserve ( sk_ ## t1 ## _compfunc compare , int n ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_reserve ( ( OPENSSL_sk_compfunc ) compare , n ) ;\n }\n static ossl_inline int sk_ ## t1 ## _reserve ( STACK_OF ( t1 ) * sk , int n ) {\n return OPENSSL_sk_reserve ( ( OPENSSL_STACK * ) sk , n ) ;\n }\n static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 12736, "target": 0, "func": "static uint64_t translate_prom_address ( void * opaque , uint64_t addr ) {\n hwaddr * base_addr = ( hwaddr * ) opaque ;\n return addr + * base_addr - PROM_VADDR ;\n }"}
{"idx": 12737, "target": 0, "func": "static vpx_codec_err_t set_encoder_config ( VP9EncoderConfig * oxcf , const vpx_codec_enc_cfg_t * cfg , const struct vp9_extracfg * extra_cfg ) {\n const int is_vbr = cfg -> rc_end_usage == VPX_VBR ;\n oxcf -> profile = cfg -> g_profile ;\n oxcf -> width = cfg -> g_w ;\n oxcf -> height = cfg -> g_h ;\n oxcf -> bit_depth = extra_cfg -> bit_depth ;\n oxcf -> input_bit_depth = cfg -> g_input_bit_depth ;\n oxcf -> init_framerate = ( double ) cfg -> g_timebase . den / cfg -> g_timebase . num ;\n if ( oxcf -> init_framerate > 180 ) oxcf -> init_framerate = 30 ;\n oxcf -> mode = GOOD ;\n switch ( cfg -> g_pass ) {\n case VPX_RC_ONE_PASS : oxcf -> pass = 0 ;\n break ;\n case VPX_RC_FIRST_PASS : oxcf -> pass = 1 ;\n break ;\n case VPX_RC_LAST_PASS : oxcf -> pass = 2 ;\n break ;\n }\n oxcf -> lag_in_frames = cfg -> g_pass == VPX_RC_FIRST_PASS ? 0 : cfg -> g_lag_in_frames ;\n oxcf -> rc_mode = cfg -> rc_end_usage ;\n oxcf -> target_bandwidth = 1000 * cfg -> rc_target_bitrate ;\n oxcf -> rc_max_intra_bitrate_pct = extra_cfg -> rc_max_intra_bitrate_pct ;\n oxcf -> best_allowed_q = extra_cfg -> lossless ? 0 : vp9_quantizer_to_qindex ( cfg -> rc_min_quantizer ) ;\n oxcf -> worst_allowed_q = extra_cfg -> lossless ? 0 : vp9_quantizer_to_qindex ( cfg -> rc_max_quantizer ) ;\n oxcf -> cq_level = vp9_quantizer_to_qindex ( extra_cfg -> cq_level ) ;\n oxcf -> fixed_q = - 1 ;\n oxcf -> under_shoot_pct = cfg -> rc_undershoot_pct ;\n oxcf -> over_shoot_pct = cfg -> rc_overshoot_pct ;\n oxcf -> allow_spatial_resampling = cfg -> rc_resize_allowed ;\n oxcf -> scaled_frame_width = cfg -> rc_scaled_width ;\n oxcf -> scaled_frame_height = cfg -> rc_scaled_height ;\n oxcf -> maximum_buffer_size_ms = is_vbr ? 240000 : cfg -> rc_buf_sz ;\n oxcf -> starting_buffer_level_ms = is_vbr ? 60000 : cfg -> rc_buf_initial_sz ;\n oxcf -> optimal_buffer_level_ms = is_vbr ? 60000 : cfg -> rc_buf_optimal_sz ;\n oxcf -> drop_frames_water_mark = cfg -> rc_dropframe_thresh ;\n oxcf -> two_pass_vbrbias = cfg -> rc_2pass_vbr_bias_pct ;\n oxcf -> two_pass_vbrmin_section = cfg -> rc_2pass_vbr_minsection_pct ;\n oxcf -> two_pass_vbrmax_section = cfg -> rc_2pass_vbr_maxsection_pct ;\n oxcf -> auto_key = cfg -> kf_mode == VPX_KF_AUTO && cfg -> kf_min_dist != cfg -> kf_max_dist ;\n oxcf -> key_freq = cfg -> kf_max_dist ;\n oxcf -> speed = abs ( extra_cfg -> cpu_used ) ;\n oxcf -> encode_breakout = extra_cfg -> static_thresh ;\n oxcf -> play_alternate = extra_cfg -> enable_auto_alt_ref ;\n oxcf -> noise_sensitivity = extra_cfg -> noise_sensitivity ;\n oxcf -> sharpness = extra_cfg -> sharpness ;\n oxcf -> two_pass_stats_in = cfg -> rc_twopass_stats_in ;\n # if CONFIG_FP_MB_STATS oxcf -> firstpass_mb_stats_in = cfg -> rc_firstpass_mb_stats_in ;\n # endif oxcf -> arnr_max_frames = extra_cfg -> arnr_max_frames ;\n oxcf -> arnr_strength = extra_cfg -> arnr_strength ;\n oxcf -> tuning = extra_cfg -> tuning ;\n oxcf -> content = extra_cfg -> content ;\n oxcf -> tile_columns = extra_cfg -> tile_columns ;\n oxcf -> tile_rows = extra_cfg -> tile_rows ;\n oxcf -> error_resilient_mode = cfg -> g_error_resilient ;\n oxcf -> frame_parallel_decoding_mode = extra_cfg -> frame_parallel_decoding_mode ;\n oxcf -> aq_mode = extra_cfg -> aq_mode ;\n oxcf -> frame_periodic_boost = extra_cfg -> frame_periodic_boost ;\n oxcf -> ss_number_layers = cfg -> ss_number_layers ;\n if ( oxcf -> ss_number_layers > 1 ) {\n int i ;\n for ( i = 0 ;\n i < VPX_SS_MAX_LAYERS ;\n ++ i ) {\n oxcf -> ss_target_bitrate [ i ] = 1000 * cfg -> ss_target_bitrate [ i ] ;\n # if CONFIG_SPATIAL_SVC oxcf -> ss_play_alternate [ i ] = cfg -> ss_enable_auto_alt_ref [ i ] ;\n # endif }\n }\n else if ( oxcf -> ss_number_layers == 1 ) {\n oxcf -> ss_target_bitrate [ 0 ] = ( int ) oxcf -> target_bandwidth ;\n # if CONFIG_SPATIAL_SVC oxcf -> ss_play_alternate [ 0 ] = extra_cfg -> enable_auto_alt_ref ;\n # endif }\n oxcf -> ts_number_layers = cfg -> ts_number_layers ;\n if ( oxcf -> ts_number_layers > 1 ) {\n int i ;\n for ( i = 0 ;\n i < VPX_TS_MAX_LAYERS ;\n ++ i ) {\n oxcf -> ts_target_bitrate [ i ] = 1000 * cfg -> ts_target_bitrate [ i ] ;\n oxcf -> ts_rate_decimator [ i ] = cfg -> ts_rate_decimator [ i ] ;\n }\n }\n else if ( oxcf -> ts_number_layers == 1 ) {\n oxcf -> ts_target_bitrate [ 0 ] = ( int ) oxcf -> target_bandwidth ;\n oxcf -> ts_rate_decimator [ 0 ] = 1 ;\n }\n return VPX_CODEC_OK ;\n }"}
{"idx": 12738, "target": 0, "func": "static int astream_open_output ( struct attachment_istream * astream ) {\n int fd ;\n i_assert ( astream -> part . temp_fd == - 1 ) ;\n fd = astream -> set . open_temp_fd ( astream -> context ) ;\n if ( fd == - 1 ) return - 1 ;\n astream -> part . temp_fd = fd ;\n astream -> part . temp_output = o_stream_create_fd ( fd , 0 , FALSE ) ;\n o_stream_cork ( astream -> part . temp_output ) ;\n return 0 ;\n }"}
{"idx": 12739, "target": 0, "func": "void virLogSetFromEnv ( void ) {\n const char * debugEnv ;\n if ( virLogInitialize ( ) < 0 ) return ;\n debugEnv = virGetEnvAllowSUID ( \"LIBVIRT_DEBUG\" ) ;\n if ( debugEnv && * debugEnv ) virLogSetDefaultPriority ( virLogParseDefaultPriority ( debugEnv ) ) ;\n debugEnv = virGetEnvAllowSUID ( \"LIBVIRT_LOG_FILTERS\" ) ;\n if ( debugEnv && * debugEnv ) virLogSetFilters ( debugEnv ) ;\n debugEnv = virGetEnvAllowSUID ( \"LIBVIRT_LOG_OUTPUTS\" ) ;\n if ( debugEnv && * debugEnv ) virLogSetOutputs ( debugEnv ) ;\n }"}
{"idx": 12740, "target": 0, "func": "int print_unknown_data ( netdissect_options * ndo , const u_char * cp , const char * ident , int len ) {\n if ( len < 0 ) {\n ND_PRINT ( ( ndo , \"%sDissector error: print_unknown_data called with negative length\" , ident ) ) ;\n return ( 0 ) ;\n }\n if ( ndo -> ndo_snapend - cp < len ) len = ndo -> ndo_snapend - cp ;\n if ( len < 0 ) {\n ND_PRINT ( ( ndo , \"%sDissector error: print_unknown_data called with pointer past end of packet\" , ident ) ) ;\n return ( 0 ) ;\n }\n hex_print ( ndo , ident , cp , len ) ;\n return ( 1 ) ;\n }"}
{"idx": 12741, "target": 0, "func": "static void _initializeULanguageTag ( ULanguageTag * langtag ) {\n int32_t i ;\n langtag -> buf = NULL ;\n langtag -> language = EMPTY ;\n for ( i = 0 ;\n i < MAXEXTLANG ;\n i ++ ) {\n langtag -> extlang [ i ] = NULL ;\n }\n langtag -> script = EMPTY ;\n langtag -> region = EMPTY ;\n langtag -> variants = NULL ;\n langtag -> extensions = NULL ;\n langtag -> grandfathered = EMPTY ;\n langtag -> privateuse = EMPTY ;\n }"}
{"idx": 12742, "target": 0, "func": "static void read_mv_probs ( nmv_context * ctx , int allow_hp , vp9_reader * r ) {\n int i , j ;\n update_mv_probs ( ctx -> joints , MV_JOINTS - 1 , r ) ;\n for ( i = 0 ;\n i < 2 ;\n ++ i ) {\n nmv_component * const comp_ctx = & ctx -> comps [ i ] ;\n update_mv_probs ( & comp_ctx -> sign , 1 , r ) ;\n update_mv_probs ( comp_ctx -> classes , MV_CLASSES - 1 , r ) ;\n update_mv_probs ( comp_ctx -> class0 , CLASS0_SIZE - 1 , r ) ;\n update_mv_probs ( comp_ctx -> bits , MV_OFFSET_BITS , r ) ;\n }\n for ( i = 0 ;\n i < 2 ;\n ++ i ) {\n nmv_component * const comp_ctx = & ctx -> comps [ i ] ;\n for ( j = 0 ;\n j < CLASS0_SIZE ;\n ++ j ) update_mv_probs ( comp_ctx -> class0_fp [ j ] , MV_FP_SIZE - 1 , r ) ;\n update_mv_probs ( comp_ctx -> fp , 3 , r ) ;\n }\n if ( allow_hp ) {\n for ( i = 0 ;\n i < 2 ;\n ++ i ) {\n nmv_component * const comp_ctx = & ctx -> comps [ i ] ;\n update_mv_probs ( & comp_ctx -> class0_hp , 1 , r ) ;\n update_mv_probs ( & comp_ctx -> hp , 1 , r ) ;\n }\n }\n }"}
{"idx": 12743, "target": 0, "func": "struct archive_string * archive_strncat ( struct archive_string * as , const void * _p , size_t n ) {\n size_t s ;\n const char * p , * pp ;\n p = ( const char * ) _p ;\n s = 0 ;\n pp = p ;\n while ( s < n && * pp ) {\n pp ++ ;\n s ++ ;\n }\n if ( ( as = archive_string_append ( as , p , s ) ) == NULL ) __archive_errx ( 1 , \"Out of memory\" ) ;\n return ( as ) ;\n }"}
{"idx": 12744, "target": 0, "func": "static void mainwindows_add_space ( MAIN_WINDOW_REC * destroy_win ) {\n MAIN_WINDOW_REC * rec ;\n int size , rsize ;\n if ( destroy_win -> last_line < destroy_win -> first_line ) return ;\n if ( destroy_win -> last_column < destroy_win -> first_column ) return ;\n rsize = destroy_win -> last_column - destroy_win -> first_column + 1 ;\n rec = mainwindows_find_left ( destroy_win , FALSE ) ;\n if ( rec != NULL ) {\n rec -> last_column = destroy_win -> last_column ;\n mainwindow_resize ( rec , rsize + 1 , 0 ) ;\n return ;\n }\n rec = mainwindows_find_right ( destroy_win , FALSE ) ;\n if ( rec != NULL ) {\n rec -> first_column = destroy_win -> first_column ;\n mainwindow_resize ( rec , rsize + 1 , 0 ) ;\n return ;\n }\n size = destroy_win -> last_line - destroy_win -> first_line + 1 ;\n rec = mainwindows_find_lower ( destroy_win ) ;\n if ( rec != NULL ) {\n GSList * tmp , * list ;\n list = mainwindows_get_line ( rec ) ;\n for ( tmp = list ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n MAIN_WINDOW_REC * rec = tmp -> data ;\n rec -> first_line = destroy_win -> first_line ;\n mainwindow_resize ( rec , 0 , size ) ;\n }\n g_slist_free ( list ) ;\n return ;\n }\n rec = mainwindows_find_upper ( destroy_win ) ;\n if ( rec != NULL ) {\n GSList * tmp , * list ;\n list = mainwindows_get_line ( rec ) ;\n for ( tmp = list ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n MAIN_WINDOW_REC * rec = tmp -> data ;\n rec -> last_line = destroy_win -> last_line ;\n mainwindow_resize ( rec , 0 , size ) ;\n }\n g_slist_free ( list ) ;\n return ;\n }\n }"}
{"idx": 12745, "target": 0, "func": "static int init_duplicate_context ( MpegEncContext * s ) {\n int y_size = s -> b8_stride * ( 2 * s -> mb_height + 1 ) ;\n int c_size = s -> mb_stride * ( s -> mb_height + 1 ) ;\n int yc_size = y_size + 2 * c_size ;\n int i ;\n s -> edge_emu_buffer = s -> me . scratchpad = s -> me . temp = s -> rd_scratchpad = s -> b_scratchpad = s -> obmc_scratchpad = NULL ;\n if ( s -> encoding ) {\n FF_ALLOCZ_OR_GOTO ( s -> avctx , s -> me . map , ME_MAP_SIZE * sizeof ( uint32_t ) , fail ) FF_ALLOCZ_OR_GOTO ( s -> avctx , s -> me . score_map , ME_MAP_SIZE * sizeof ( uint32_t ) , fail ) if ( s -> avctx -> noise_reduction ) {\n FF_ALLOCZ_OR_GOTO ( s -> avctx , s -> dct_error_sum , 2 * 64 * sizeof ( int ) , fail ) }\n }\n FF_ALLOCZ_OR_GOTO ( s -> avctx , s -> blocks , 64 * 12 * 2 * sizeof ( int16_t ) , fail ) s -> block = s -> blocks [ 0 ] ;\n for ( i = 0 ;\n i < 12 ;\n i ++ ) {\n s -> pblocks [ i ] = & s -> block [ i ] ;\n }\n if ( s -> out_format == FMT_H263 ) {\n FF_ALLOCZ_OR_GOTO ( s -> avctx , s -> ac_val_base , yc_size * sizeof ( int16_t ) * 16 , fail ) ;\n s -> ac_val [ 0 ] = s -> ac_val_base + s -> b8_stride + 1 ;\n s -> ac_val [ 1 ] = s -> ac_val_base + y_size + s -> mb_stride + 1 ;\n s -> ac_val [ 2 ] = s -> ac_val [ 1 ] + c_size ;\n }\n return 0 ;\n fail : return - 1 ;\n }"}
{"idx": 12746, "target": 0, "func": "static guint16 de_add_upd_params ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n curr_offset = offset ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( curr_offset << 3 ) + 4 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_dtap_csmo , tvb , ( curr_offset << 3 ) + 6 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_dtap_csmt , tvb , ( curr_offset << 3 ) + 7 , 1 , ENC_BIG_ENDIAN ) ;\n return ( len ) ;\n }"}
{"idx": 12747, "target": 0, "func": "uint64_t mime_field_presence_mask ( int well_known_str_index ) {\n return hdrtoken_index_to_mask ( well_known_str_index ) ;\n }"}
{"idx": 12748, "target": 0, "func": "extern void free_rpc_stats ( void ) {\n slurm_mutex_lock ( & rpc_mutex ) ;\n xfree ( rpc_type_cnt ) ;\n xfree ( rpc_type_id ) ;\n xfree ( rpc_type_time ) ;\n rpc_type_size = 0 ;\n xfree ( rpc_user_cnt ) ;\n xfree ( rpc_user_id ) ;\n xfree ( rpc_user_time ) ;\n rpc_user_size = 0 ;\n slurm_mutex_unlock ( & rpc_mutex ) ;\n }"}
{"idx": 12749, "target": 0, "func": "static void rv34_gen_vlc ( const uint8_t * bits , int size , VLC * vlc , const uint8_t * insyms , const int num ) {\n int i ;\n int counts [ 17 ] = {\n 0 }\n , codes [ 17 ] ;\n uint16_t cw [ MAX_VLC_SIZE ] , syms [ MAX_VLC_SIZE ] ;\n uint8_t bits2 [ MAX_VLC_SIZE ] ;\n int maxbits = 0 , realsize = 0 ;\n for ( i = 0 ;\n i < size ;\n i ++ ) {\n if ( bits [ i ] ) {\n bits2 [ realsize ] = bits [ i ] ;\n syms [ realsize ] = insyms ? insyms [ i ] : i ;\n realsize ++ ;\n maxbits = FFMAX ( maxbits , bits [ i ] ) ;\n counts [ bits [ i ] ] ++ ;\n }\n }\n codes [ 0 ] = 0 ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) codes [ i + 1 ] = ( codes [ i ] + counts [ i ] ) << 1 ;\n for ( i = 0 ;\n i < realsize ;\n i ++ ) cw [ i ] = codes [ bits2 [ i ] ] ++ ;\n vlc -> table = & table_data [ table_offs [ num ] ] ;\n vlc -> table_allocated = table_offs [ num + 1 ] - table_offs [ num ] ;\n ff_init_vlc_sparse ( vlc , FFMIN ( maxbits , 9 ) , realsize , bits2 , 1 , 1 , cw , 2 , 2 , syms , 2 , 2 , INIT_VLC_USE_NEW_STATIC ) ;\n }"}
{"idx": 12750, "target": 0, "func": "static void dissect_mcast_byte ( proto_tree * tree , tvbuff_t * tvb , int offset , packet_info * pinfo _U_ ) {\n proto_item * mcast_item ;\n proto_tree * mcast_tree ;\n # if 0 guint8 mcast_byte ;\n mcast_byte = tvb_get_guint8 ( tvb , offset ) ;\n # endif mcast_item = proto_tree_add_item ( tree , hf_cipsafety_mcast_byte , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n mcast_tree = proto_item_add_subtree ( mcast_item , ett_cipsafety_mcast_byte ) ;\n proto_tree_add_item ( mcast_tree , hf_cipsafety_mcast_byte_consumer_num , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( mcast_tree , hf_cipsafety_mcast_byte_reserved1 , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( mcast_tree , hf_cipsafety_mcast_byte_mai , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( mcast_tree , hf_cipsafety_mcast_byte_reserved2 , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( mcast_tree , hf_cipsafety_mcast_byte_parity_even , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n }"}
{"idx": 12751, "target": 0, "func": "void vp9_denoiser_update_frame_stats ( MB_MODE_INFO * mbmi , unsigned int sse , PREDICTION_MODE mode , PICK_MODE_CONTEXT * ctx ) {\n if ( mbmi -> mv [ 0 ] . as_int == 0 && sse < ctx -> zeromv_sse ) {\n ctx -> zeromv_sse = sse ;\n ctx -> best_zeromv_reference_frame = mbmi -> ref_frame [ 0 ] ;\n }\n if ( mode == NEWMV ) {\n ctx -> newmv_sse = sse ;\n ctx -> best_sse_inter_mode = mode ;\n ctx -> best_sse_mv = mbmi -> mv [ 0 ] ;\n ctx -> best_reference_frame = mbmi -> ref_frame [ 0 ] ;\n }\n }"}
{"idx": 12752, "target": 0, "func": "static struct passwd * check_perms ( void ) {\n # ifdef USE_PAM const char * tmp_name ;\n int ret ;\n # endif struct passwd * pw = xgetpwnam ( name ) ;\n if ( NULL == pw ) {\n ( void ) fprintf ( stderr , _ ( \"No passwd entry for user '%s'\\n\" ) , name ) ;\n SYSLOG ( ( LOG_NOTICE , \"No passwd entry for user '%s'\" , name ) ) ;\n su_failure ( caller_tty , true ) ;\n }\n ( void ) signal ( SIGINT , SIG_IGN ) ;\n ( void ) signal ( SIGQUIT , SIG_IGN ) ;\n # ifdef USE_PAM check_perms_pam ( pw ) ;\n ret = pam_get_item ( pamh , PAM_USER , ( const void * * ) & tmp_name ) ;\n if ( ret != PAM_SUCCESS ) {\n SYSLOG ( ( LOG_ERR , \"pam_get_item: internal PAM error\\n\" ) ) ;\n ( void ) fprintf ( stderr , \"%s: Internal PAM error retrieving username\\n\" , Prog ) ;\n ( void ) pam_end ( pamh , ret ) ;\n su_failure ( caller_tty , 0 == pw -> pw_uid ) ;\n }\n if ( strcmp ( name , tmp_name ) != 0 ) {\n SYSLOG ( ( LOG_INFO , \"Change user from '%s' to '%s' as requested by PAM\" , name , tmp_name ) ) ;\n strncpy ( name , tmp_name , sizeof ( name ) - 1 ) ;\n name [ sizeof ( name ) - 1 ] = '\\0' ;\n pw = xgetpwnam ( name ) ;\n if ( NULL == pw ) {\n ( void ) fprintf ( stderr , _ ( \"No passwd entry for user '%s'\\n\" ) , name ) ;\n SYSLOG ( ( LOG_NOTICE , \"No passwd entry for user '%s'\" , name ) ) ;\n su_failure ( caller_tty , true ) ;\n }\n }\n # else check_perms_nopam ( pw ) ;\n # endif ( void ) signal ( SIGINT , SIG_DFL ) ;\n ( void ) signal ( SIGQUIT , SIG_DFL ) ;\n if ( '*' == pw -> pw_shell [ 0 ] ) {\n subsystem ( pw ) ;\n endpwent ( ) ;\n endspent ( ) ;\n pw_free ( pw ) ;\n return check_perms ( ) ;\n }\n return pw ;\n }"}
{"idx": 12753, "target": 0, "func": "static VALUE ossl_asn1_ ## klass ( int argc , VALUE * argv , VALUE self ) \\ {\n return rb_funcall3 ( cASN1 ## klass , rb_intern ( \"new\" ) , argc , argv ) ;\n }\n OSSL_ASN1_IMPL_FACTORY_METHOD ( Boolean ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Integer ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Enumerated ) OSSL_ASN1_IMPL_FACTORY_METHOD ( BitString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( OctetString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( UTF8String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( NumericString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( PrintableString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( T61String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( VideotexString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( IA5String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( GraphicString )"}
{"idx": 12754, "target": 0, "func": "static int add_object_entry_from_bitmap ( const unsigned char * sha1 , enum object_type type , int flags , uint32_t name_hash , struct packed_git * pack , off_t offset ) {\n uint32_t index_pos ;\n if ( have_duplicate_entry ( sha1 , 0 , & index_pos ) ) return 0 ;\n create_object_entry ( sha1 , type , name_hash , 0 , 0 , index_pos , pack , offset ) ;\n display_progress ( progress_state , nr_result ) ;\n return 1 ;\n }"}
{"idx": 12755, "target": 0, "func": "static guint16 de_bcc_state_attr ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n proto_tree_add_item ( tree , hf_gsm_a_dtap_bcc_state_attr , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_bcc_state_attr_da , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_bcc_state_attr_ua , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_bcc_state_attr_comm , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_bcc_state_attr_oi , tvb , offset , 1 , ENC_NA ) ;\n return 1 ;\n }"}
{"idx": 12756, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize ) ;\n DECL_PIOCTL ( PGetCacheSize ) ;\n DECL_PIOCTL ( PRemoveCallBack ) ;\n DECL_PIOCTL ( PNewCell ) ;\n DECL_PIOCTL ( PNewAlias ) ;\n DECL_PIOCTL ( PListCells ) ;\n DECL_PIOCTL ( PListAliases ) ;\n DECL_PIOCTL ( PRemoveMount ) ;\n DECL_PIOCTL ( PGetCellStatus ) ;\n DECL_PIOCTL ( PSetCellStatus ) ;\n DECL_PIOCTL ( PFlushVolumeData ) ;\n DECL_PIOCTL ( PFlushAllVolumeData ) ;\n DECL_PIOCTL ( PGetVnodeXStatus ) ;\n DECL_PIOCTL ( PGetVnodeXStatus2 ) ;\n DECL_PIOCTL ( PSetSysName ) ;\n DECL_PIOCTL ( PSetSPrefs ) ;\n DECL_PIOCTL ( PSetSPrefs33 ) ;\n DECL_PIOCTL ( PGetSPrefs ) ;\n DECL_PIOCTL ( PExportAfs ) ;\n DECL_PIOCTL ( PGag ) ;\n DECL_PIOCTL ( PTwiddleRx ) ;\n DECL_PIOCTL ( PGetInitParams ) ;\n DECL_PIOCTL ( PGetRxkcrypt ) ;\n DECL_PIOCTL ( PSetRxkcrypt ) ;\n DECL_PIOCTL ( PGetCPrefs ) ;\n DECL_PIOCTL ( PSetCPrefs ) ;\n DECL_PIOCTL ( PFlushMount ) ;\n DECL_PIOCTL ( PRxStatProc ) ;\n DECL_PIOCTL ( PRxStatPeer ) ;\n DECL_PIOCTL ( PPrefetchFromTape ) ;\n DECL_PIOCTL ( PFsCmd )"}
{"idx": 12757, "target": 0, "func": "int gs_main_set_lib_paths ( gs_main_instance * minst ) {\n ref * paths = minst -> lib_path . container . value . refs ;\n int first_is_here = ( r_size ( & minst -> lib_path . list ) != 0 && paths [ 0 ] . value . bytes == ( const byte * ) gp_current_directory_name ? 1 : 0 ) ;\n int code = 0 ;\n int count = minst -> lib_path . count ;\n int i , have_rom_device = 0 ;\n if ( minst -> search_here_first ) {\n if ( ! ( first_is_here || ( r_size ( & minst -> lib_path . list ) != 0 && ! bytes_compare ( ( const byte * ) gp_current_directory_name , strlen ( gp_current_directory_name ) , paths [ 0 ] . value . bytes , r_size ( & paths [ 0 ] ) ) ) ) ) {\n memmove ( paths + 1 , paths , count * sizeof ( * paths ) ) ;\n make_const_string ( paths , avm_foreign | a_readonly , strlen ( gp_current_directory_name ) , ( const byte * ) gp_current_directory_name ) ;\n }\n }\n else {\n if ( first_is_here ) memmove ( paths , paths + 1 , count * sizeof ( * paths ) ) ;\n }\n r_set_size ( & minst -> lib_path . list , count + ( minst -> search_here_first ? 1 : 0 ) ) ;\n if ( minst -> lib_path . env != 0 ) code = file_path_add ( minst , & minst -> lib_path , minst -> lib_path . env ) ;\n for ( i = 0 ;\n i < gx_io_device_table_count ;\n i ++ ) {\n const gx_io_device * iodev = gx_io_device_table [ i ] ;\n const char * dname = iodev -> dname ;\n if ( dname && strlen ( dname ) == 5 && ! memcmp ( \"%rom%\" , dname , 5 ) ) {\n struct stat pstat ;\n int code = iodev -> procs . file_status ( ( gx_io_device * ) iodev , dname , & pstat ) ;\n if ( code != gs_error_unregistered ) {\n have_rom_device = 1 ;\n }\n break ;\n }\n }\n if ( have_rom_device && code >= 0 ) {\n code = file_path_add ( minst , & minst -> lib_path , \"%rom%Resource/Init/\" ) ;\n if ( code < 0 ) return code ;\n code = file_path_add ( minst , & minst -> lib_path , \"%rom%lib/\" ) ;\n }\n if ( minst -> lib_path . final != 0 && code >= 0 ) code = file_path_add ( minst , & minst -> lib_path , minst -> lib_path . final ) ;\n return code ;\n }"}
{"idx": 12758, "target": 0, "func": "TEST_F ( SSLErrorAssistantTest , DynamicInterstitialListHashesMismatch ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n EXPECT_EQ ( 1u , ssl_info ( ) . public_key_hashes . size ( ) ) ;\n auto config_proto = std : : make_unique < chrome_browser_ssl : : SSLErrorAssistantConfig > ( ) ;\n config_proto -> set_version_id ( kLargeVersionId ) ;\n chrome_browser_ssl : : DynamicInterstitial * filter = config_proto -> add_dynamic_interstitial ( ) ;\n filter -> set_interstitial_type ( chrome_browser_ssl : : DynamicInterstitial : : INTERSTITIAL_PAGE_SSL ) ;\n filter -> set_cert_error ( chrome_browser_ssl : : DynamicInterstitial : : UNKNOWN_CERT_ERROR ) ;\n filter -> add_sha256_hash ( \"sha256/yellowlegs\" ) ;\n filter -> add_sha256_hash ( \"sha256/killdeer\" ) ;\n filter -> set_issuer_common_name_regex ( issuer_common_name ( ) ) ;\n filter -> set_issuer_organization_regex ( issuer_organization_name ( ) ) ;\n filter -> set_mitm_software_name ( \"UwS\" ) ;\n error_assistant ( ) -> SetErrorAssistantProto ( std : : move ( config_proto ) ) ;\n EXPECT_FALSE ( error_assistant ( ) -> MatchDynamicInterstitial ( ssl_info ( ) ) ) ;\n }"}
{"idx": 12759, "target": 0, "func": "bool mysql_rename_user ( THD * thd , List < LEX_USER > & list ) {\n int result ;\n String wrong_users ;\n LEX_USER * user_from , * tmp_user_from ;\n LEX_USER * user_to , * tmp_user_to ;\n List_iterator < LEX_USER > user_list ( list ) ;\n TABLE_LIST tables [ GRANT_TABLES ] ;\n bool some_users_renamed = FALSE ;\n bool save_binlog_row_based ;\n DBUG_ENTER ( \"mysql_rename_user\" ) ;\n save_binlog_row_based = thd -> current_stmt_binlog_row_based ;\n thd -> clear_current_stmt_binlog_row_based ( ) ;\n if ( ( result = open_grant_tables ( thd , tables ) ) ) {\n thd -> current_stmt_binlog_row_based = save_binlog_row_based ;\n DBUG_RETURN ( result != 1 ) ;\n }\n rw_wrlock ( & LOCK_grant ) ;\n VOID ( pthread_mutex_lock ( & acl_cache -> lock ) ) ;\n while ( ( tmp_user_from = user_list ++ ) ) {\n if ( ! ( user_from = get_current_user ( thd , tmp_user_from ) ) ) {\n result = TRUE ;\n continue ;\n }\n tmp_user_to = user_list ++ ;\n if ( ! ( user_to = get_current_user ( thd , tmp_user_to ) ) ) {\n result = TRUE ;\n continue ;\n }\n DBUG_ASSERT ( user_to != 0 ) ;\n if ( handle_grant_data ( tables , 0 , user_to , NULL ) || handle_grant_data ( tables , 0 , user_from , user_to ) <= 0 ) {\n append_user ( & wrong_users , user_from ) ;\n result = TRUE ;\n continue ;\n }\n some_users_renamed = TRUE ;\n }\n rebuild_check_host ( ) ;\n VOID ( pthread_mutex_unlock ( & acl_cache -> lock ) ) ;\n if ( result ) my_error ( ER_CANNOT_USER , MYF ( 0 ) , \"RENAME USER\" , wrong_users . c_ptr_safe ( ) ) ;\n if ( some_users_renamed && mysql_bin_log . is_open ( ) ) result |= write_bin_log ( thd , FALSE , thd -> query ( ) , thd -> query_length ( ) ) ;\n rw_unlock ( & LOCK_grant ) ;\n close_thread_tables ( thd ) ;\n thd -> current_stmt_binlog_row_based = save_binlog_row_based ;\n DBUG_RETURN ( result ) ;\n }"}
{"idx": 12760, "target": 0, "func": "static void export_diameter_pdu ( packet_info * pinfo , tvbuff_t * tvb ) {\n exp_pdu_data_t * exp_pdu_data ;\n guint8 tags_bit_field ;\n tags_bit_field = EXP_PDU_TAG_IP_SRC_BIT + EXP_PDU_TAG_IP_DST_BIT + EXP_PDU_TAG_SRC_PORT_BIT + EXP_PDU_TAG_DST_PORT_BIT + EXP_PDU_TAG_ORIG_FNO_BIT ;\n exp_pdu_data = load_export_pdu_tags ( pinfo , EXP_PDU_TAG_PROTO_NAME , \"diameter\" , & tags_bit_field , 1 ) ;\n exp_pdu_data -> tvb_captured_length = tvb_captured_length ( tvb ) ;\n exp_pdu_data -> tvb_reported_length = tvb_reported_length ( tvb ) ;\n exp_pdu_data -> pdu_tvb = tvb ;\n tap_queue_packet ( exported_pdu_tap , pinfo , exp_pdu_data ) ;\n }"}
{"idx": 12761, "target": 0, "func": "static uint32_t read_offs ( AVCodecContext * avctx , GetBitContext * gb , uint32_t size , const char * err_msg ) {\n uint32_t offs = get_bits_long ( gb , 32 ) ;\n if ( offs >= size ) {\n av_log ( avctx , AV_LOG_WARNING , err_msg , offs , size ) ;\n return 0 ;\n }\n return offs ;\n }"}
{"idx": 12762, "target": 0, "func": "static int nsv_read_chunk ( AVFormatContext * s , int fill_header ) {\n NSVContext * nsv = s -> priv_data ;\n AVIOContext * pb = s -> pb ;\n AVStream * st [ 2 ] = {\n NULL , NULL }\n ;\n NSVStream * nst ;\n AVPacket * pkt ;\n int i , err = 0 ;\n uint8_t auxcount ;\n uint32_t vsize ;\n uint16_t asize ;\n uint16_t auxsize ;\n int ret ;\n if ( nsv -> ahead [ 0 ] . data || nsv -> ahead [ 1 ] . data ) return 0 ;\n null_chunk_retry : if ( avio_feof ( pb ) ) return - 1 ;\n for ( i = 0 ;\n i < NSV_MAX_RESYNC_TRIES && nsv -> state < NSV_FOUND_NSVS && ! err ;\n i ++ ) err = nsv_resync ( s ) ;\n if ( err < 0 ) return err ;\n if ( nsv -> state == NSV_FOUND_NSVS ) err = nsv_parse_NSVs_header ( s ) ;\n if ( err < 0 ) return err ;\n if ( nsv -> state != NSV_HAS_READ_NSVS && nsv -> state != NSV_FOUND_BEEF ) return - 1 ;\n auxcount = avio_r8 ( pb ) ;\n vsize = avio_rl16 ( pb ) ;\n asize = avio_rl16 ( pb ) ;\n vsize = ( vsize << 4 ) | ( auxcount >> 4 ) ;\n auxcount &= 0x0f ;\n av_log ( s , AV_LOG_TRACE , \"NSV CHUNK %d aux, %\" PRIu32 \" bytes video, %d bytes audio\\n\" , auxcount , vsize , asize ) ;\n for ( i = 0 ;\n i < auxcount ;\n i ++ ) {\n uint32_t av_unused auxtag ;\n auxsize = avio_rl16 ( pb ) ;\n auxtag = avio_rl32 ( pb ) ;\n avio_skip ( pb , auxsize ) ;\n vsize -= auxsize + sizeof ( uint16_t ) + sizeof ( uint32_t ) ;\n }\n if ( avio_feof ( pb ) ) return - 1 ;\n if ( ! vsize && ! asize ) {\n nsv -> state = NSV_UNSYNC ;\n goto null_chunk_retry ;\n }\n if ( s -> nb_streams > 0 ) st [ s -> streams [ 0 ] -> id ] = s -> streams [ 0 ] ;\n if ( s -> nb_streams > 1 ) st [ s -> streams [ 1 ] -> id ] = s -> streams [ 1 ] ;\n if ( vsize && st [ NSV_ST_VIDEO ] ) {\n nst = st [ NSV_ST_VIDEO ] -> priv_data ;\n pkt = & nsv -> ahead [ NSV_ST_VIDEO ] ;\n if ( ( ret = av_get_packet ( pb , pkt , vsize ) ) < 0 ) return ret ;\n pkt -> stream_index = st [ NSV_ST_VIDEO ] -> index ;\n pkt -> dts = nst -> frame_offset ;\n pkt -> flags |= nsv -> state == NSV_HAS_READ_NSVS ? AV_PKT_FLAG_KEY : 0 ;\n for ( i = 0 ;\n i < FFMIN ( 8 , vsize ) ;\n i ++ ) av_log ( s , AV_LOG_TRACE , \"NSV video: [%d] = %02x\\n\" , i , pkt -> data [ i ] ) ;\n }\n if ( st [ NSV_ST_VIDEO ] ) ( ( NSVStream * ) st [ NSV_ST_VIDEO ] -> priv_data ) -> frame_offset ++ ;\n if ( asize && st [ NSV_ST_AUDIO ] ) {\n nst = st [ NSV_ST_AUDIO ] -> priv_data ;\n pkt = & nsv -> ahead [ NSV_ST_AUDIO ] ;\n if ( asize && st [ NSV_ST_AUDIO ] -> codecpar -> codec_tag == MKTAG ( 'P' , 'C' , 'M' , ' ' ) ) {\n uint8_t bps ;\n uint8_t channels ;\n uint16_t samplerate ;\n bps = avio_r8 ( pb ) ;\n channels = avio_r8 ( pb ) ;\n samplerate = avio_rl16 ( pb ) ;\n if ( ! channels || ! samplerate ) return AVERROR_INVALIDDATA ;\n asize -= 4 ;\n av_log ( s , AV_LOG_TRACE , \"NSV RAWAUDIO: bps %d, nchan %d, srate %d\\n\" , bps , channels , samplerate ) ;\n if ( fill_header ) {\n st [ NSV_ST_AUDIO ] -> need_parsing = AVSTREAM_PARSE_NONE ;\n if ( bps != 16 ) {\n av_log ( s , AV_LOG_TRACE , \"NSV AUDIO bit/sample != 16 (%d)!!!\\n\" , bps ) ;\n }\n bps /= channels ;\n if ( bps == 8 ) st [ NSV_ST_AUDIO ] -> codecpar -> codec_id = AV_CODEC_ID_PCM_U8 ;\n samplerate /= 4 ;\n channels = 1 ;\n st [ NSV_ST_AUDIO ] -> codecpar -> channels = channels ;\n st [ NSV_ST_AUDIO ] -> codecpar -> sample_rate = samplerate ;\n av_log ( s , AV_LOG_TRACE , \"NSV RAWAUDIO: bps %d, nchan %d, srate %d\\n\" , bps , channels , samplerate ) ;\n }\n }\n if ( ( ret = av_get_packet ( pb , pkt , asize ) ) < 0 ) return ret ;\n pkt -> stream_index = st [ NSV_ST_AUDIO ] -> index ;\n pkt -> flags |= nsv -> state == NSV_HAS_READ_NSVS ? AV_PKT_FLAG_KEY : 0 ;\n if ( nsv -> state == NSV_HAS_READ_NSVS && st [ NSV_ST_VIDEO ] ) {\n pkt -> dts = ( ( ( NSVStream * ) st [ NSV_ST_VIDEO ] -> priv_data ) -> frame_offset - 1 ) ;\n pkt -> dts *= ( int64_t ) 1000 * nsv -> framerate . den ;\n pkt -> dts += ( int64_t ) nsv -> avsync * nsv -> framerate . num ;\n av_log ( s , AV_LOG_TRACE , \"NSV AUDIO: sync:%d, dts:%\" PRId64 , nsv -> avsync , pkt -> dts ) ;\n }\n nst -> frame_offset ++ ;\n }\n nsv -> state = NSV_UNSYNC ;\n return 0 ;\n }"}
{"idx": 12763, "target": 0, "func": "int TSVConnClosedGet ( TSVConn connp ) {\n sdk_assert ( sdk_sanity_check_iocore_structure ( connp ) == TS_SUCCESS ) ;\n VConnection * vc = ( VConnection * ) connp ;\n int data = 0 ;\n bool f = vc -> get_data ( TS_API_DATA_CLOSED , & data ) ;\n ink_assert ( f ) ;\n return data ;\n }"}
{"idx": 12764, "target": 0, "func": "static int selinux_inode_setxattr ( struct dentry * dentry , const char * name , const void * value , size_t size , int flags ) {\n struct inode * inode = d_backing_inode ( dentry ) ;\n struct inode_security_struct * isec ;\n struct superblock_security_struct * sbsec ;\n struct common_audit_data ad ;\n u32 newsid , sid = current_sid ( ) ;\n int rc = 0 ;\n if ( strcmp ( name , XATTR_NAME_SELINUX ) ) return selinux_inode_setotherxattr ( dentry , name ) ;\n sbsec = inode -> i_sb -> s_security ;\n if ( ! ( sbsec -> flags & SBLABEL_MNT ) ) return - EOPNOTSUPP ;\n if ( ! inode_owner_or_capable ( inode ) ) return - EPERM ;\n ad . type = LSM_AUDIT_DATA_DENTRY ;\n ad . u . dentry = dentry ;\n isec = backing_inode_security ( dentry ) ;\n rc = avc_has_perm ( sid , isec -> sid , isec -> sclass , FILE__RELABELFROM , & ad ) ;\n if ( rc ) return rc ;\n rc = security_context_to_sid ( value , size , & newsid , GFP_KERNEL ) ;\n if ( rc == - EINVAL ) {\n if ( ! capable ( CAP_MAC_ADMIN ) ) {\n struct audit_buffer * ab ;\n size_t audit_size ;\n const char * str ;\n if ( value ) {\n str = value ;\n if ( str [ size - 1 ] == '\\0' ) audit_size = size - 1 ;\n else audit_size = size ;\n }\n else {\n str = \"\" ;\n audit_size = 0 ;\n }\n ab = audit_log_start ( current -> audit_context , GFP_ATOMIC , AUDIT_SELINUX_ERR ) ;\n audit_log_format ( ab , \"op=setxattr invalid_context=\" ) ;\n audit_log_n_untrustedstring ( ab , value , audit_size ) ;\n audit_log_end ( ab ) ;\n return rc ;\n }\n rc = security_context_to_sid_force ( value , size , & newsid ) ;\n }\n if ( rc ) return rc ;\n rc = avc_has_perm ( sid , newsid , isec -> sclass , FILE__RELABELTO , & ad ) ;\n if ( rc ) return rc ;\n rc = security_validate_transition ( isec -> sid , newsid , sid , isec -> sclass ) ;\n if ( rc ) return rc ;\n return avc_has_perm ( newsid , sbsec -> sid , SECCLASS_FILESYSTEM , FILESYSTEM__ASSOCIATE , & ad ) ;\n }"}
{"idx": 12765, "target": 0, "func": "static jboolean ShouldUseSmartLockBranding ( JNIEnv * env , const JavaParamRef < jclass > & ) {\n const ProfileSyncService * sync_service = ProfileSyncServiceFactory : : GetForProfile ( ProfileManager : : GetLastUsedProfile ( ) ) ;\n return password_bubble_experiment : : IsSmartLockBrandingEnabled ( sync_service ) ;\n }"}
{"idx": 12766, "target": 0, "func": "unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 ) VAR ( 8 , 4 ) SUBPIX_VAR ( 8 , 4 ) SUBPIX_AVG_VAR ( 8 , 4 ) VAR ( 8 , 8 ) SUBPIX_VAR ( 8 , 8 ) SUBPIX_AVG_VAR ( 8 , 8 ) VAR ( 8 , 16 ) SUBPIX_VAR ( 8 , 16 ) SUBPIX_AVG_VAR ( 8 , 16 ) VAR ( 16 , 8 ) SUBPIX_VAR ( 16 , 8 ) SUBPIX_AVG_VAR ( 16 , 8 ) VAR ( 16 , 16 ) SUBPIX_VAR ( 16 , 16 ) SUBPIX_AVG_VAR ( 16 , 16 )"}
{"idx": 12767, "target": 0, "func": "static void handle_chap ( netdissect_options * ndo , const u_char * p , int length ) {\n u_int code , len ;\n int val_size , name_size , msg_size ;\n const u_char * p0 ;\n int i ;\n p0 = p ;\n if ( length < 1 ) {\n ND_PRINT ( ( ndo , \"[|chap]\" ) ) ;\n return ;\n }\n else if ( length < 4 ) {\n ND_TCHECK ( * p ) ;\n ND_PRINT ( ( ndo , \"[|chap 0x%02x]\" , * p ) ) ;\n return ;\n }\n ND_TCHECK ( * p ) ;\n code = * p ;\n ND_PRINT ( ( ndo , \"CHAP, %s (0x%02x)\" , tok2str ( chapcode_values , \"unknown\" , code ) , code ) ) ;\n p ++ ;\n ND_TCHECK ( * p ) ;\n ND_PRINT ( ( ndo , \", id %u\" , * p ) ) ;\n p ++ ;\n ND_TCHECK2 ( * p , 2 ) ;\n len = EXTRACT_16BITS ( p ) ;\n p += 2 ;\n switch ( code ) {\n case CHAP_CHAL : case CHAP_RESP : if ( length - ( p - p0 ) < 1 ) return ;\n ND_TCHECK ( * p ) ;\n val_size = * p ;\n p ++ ;\n if ( length - ( p - p0 ) < val_size ) return ;\n ND_PRINT ( ( ndo , \", Value \" ) ) ;\n for ( i = 0 ;\n i < val_size ;\n i ++ ) {\n ND_TCHECK ( * p ) ;\n ND_PRINT ( ( ndo , \"%02x\" , * p ++ ) ) ;\n }\n name_size = len - ( p - p0 ) ;\n ND_PRINT ( ( ndo , \", Name \" ) ) ;\n for ( i = 0 ;\n i < name_size ;\n i ++ ) {\n ND_TCHECK ( * p ) ;\n safeputchar ( ndo , * p ++ ) ;\n }\n break ;\n case CHAP_SUCC : case CHAP_FAIL : msg_size = len - ( p - p0 ) ;\n ND_PRINT ( ( ndo , \", Msg \" ) ) ;\n for ( i = 0 ;\n i < msg_size ;\n i ++ ) {\n ND_TCHECK ( * p ) ;\n safeputchar ( ndo , * p ++ ) ;\n }\n break ;\n }\n return ;\n trunc : ND_PRINT ( ( ndo , \"[|chap]\" ) ) ;\n }"}
{"idx": 12768, "target": 0, "func": "static int dissect_h245_OCTET_STRING_SIZE_1_65535 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 1 , 65535 , FALSE , NULL ) ;\n return offset ;\n }"}
{"idx": 12769, "target": 1, "func": "static double get_prediction_decay_rate ( const VP9_COMMON * cm , const FIRSTPASS_STATS * next_frame ) {\n const double mb_sr_err_diff = ( next_frame -> sr_coded_error - next_frame -> coded_error ) / cm -> MBs ;\n const double second_ref_decay = mb_sr_err_diff <= 512.0 ? fclamp ( pow ( 1.0 - ( mb_sr_err_diff / 512.0 ) , 0.5 ) , 0.85 , 1.0 ) : 0.85 ;\n return MIN ( second_ref_decay , next_frame -> pcnt_inter ) ;\n }"}
{"idx": 12770, "target": 0, "func": "gcry_err_code_t _gcry_pubkey_get_sexp ( gcry_sexp_t * r_sexp , int mode , gcry_ctx_t ctx ) {\n mpi_ec_t ec ;\n if ( ! r_sexp ) return GPG_ERR_INV_VALUE ;\n * r_sexp = NULL ;\n switch ( mode ) {\n case 0 : case GCRY_PK_GET_PUBKEY : case GCRY_PK_GET_SECKEY : break ;\n default : return GPG_ERR_INV_VALUE ;\n }\n if ( ! ctx ) return GPG_ERR_NO_CRYPT_CTX ;\n ec = _gcry_ctx_find_pointer ( ctx , CONTEXT_TYPE_EC ) ;\n if ( ec ) return _gcry_pk_ecc_get_sexp ( r_sexp , mode , ec ) ;\n return GPG_ERR_WRONG_CRYPT_CTX ;\n }"}
{"idx": 12771, "target": 0, "func": "static void inverse_transform_block ( MACROBLOCKD * xd , int plane , int block , TX_SIZE tx_size , uint8_t * dst , int stride , int eob ) {\n struct macroblockd_plane * const pd = & xd -> plane [ plane ] ;\n if ( eob > 0 ) {\n TX_TYPE tx_type ;\n int16_t * const dqcoeff = BLOCK_OFFSET ( pd -> dqcoeff , block ) ;\n if ( xd -> lossless ) {\n tx_type = DCT_DCT ;\n vp9_iwht4x4_add ( dqcoeff , dst , stride , eob ) ;\n }\n else {\n const PLANE_TYPE plane_type = pd -> plane_type ;\n switch ( tx_size ) {\n case TX_4X4 : tx_type = get_tx_type_4x4 ( plane_type , xd , block ) ;\n vp9_iht4x4_add ( tx_type , dqcoeff , dst , stride , eob ) ;\n break ;\n case TX_8X8 : tx_type = get_tx_type ( plane_type , xd ) ;\n vp9_iht8x8_add ( tx_type , dqcoeff , dst , stride , eob ) ;\n break ;\n case TX_16X16 : tx_type = get_tx_type ( plane_type , xd ) ;\n vp9_iht16x16_add ( tx_type , dqcoeff , dst , stride , eob ) ;\n break ;\n case TX_32X32 : tx_type = DCT_DCT ;\n vp9_idct32x32_add ( dqcoeff , dst , stride , eob ) ;\n break ;\n default : assert ( 0 && \"Invalid transform size\" ) ;\n }\n }\n if ( eob == 1 ) {\n vpx_memset ( dqcoeff , 0 , 2 * sizeof ( dqcoeff [ 0 ] ) ) ;\n }\n else {\n if ( tx_type == DCT_DCT && tx_size <= TX_16X16 && eob <= 10 ) vpx_memset ( dqcoeff , 0 , 4 * ( 4 << tx_size ) * sizeof ( dqcoeff [ 0 ] ) ) ;\n else if ( tx_size == TX_32X32 && eob <= 34 ) vpx_memset ( dqcoeff , 0 , 256 * sizeof ( dqcoeff [ 0 ] ) ) ;\n else vpx_memset ( dqcoeff , 0 , ( 16 << ( tx_size << 1 ) ) * sizeof ( dqcoeff [ 0 ] ) ) ;\n }\n }\n }"}
{"idx": 12772, "target": 0, "func": "void proto_tree_reset ( proto_tree * tree ) {\n tree_data_t * tree_data = PTREE_DATA ( tree ) ;\n proto_tree_children_foreach ( tree , proto_tree_free_node , NULL ) ;\n if ( tree_data -> interesting_hfids ) {\n g_hash_table_foreach ( tree_data -> interesting_hfids , free_GPtrArray_value , NULL ) ;\n g_hash_table_remove_all ( tree_data -> interesting_hfids ) ;\n }\n tree_data -> count = 0 ;\n PROTO_NODE_INIT ( tree ) ;\n }"}
{"idx": 12773, "target": 0, "func": "static void check_reset_of_active_ep ( struct usb_device * udev , unsigned int epnum , char * ioctl_name ) {\n struct usb_host_endpoint * * eps ;\n struct usb_host_endpoint * ep ;\n eps = ( epnum & USB_DIR_IN ) ? udev -> ep_in : udev -> ep_out ;\n ep = eps [ epnum & 0x0f ] ;\n if ( ep && ! list_empty ( & ep -> urb_list ) ) dev_warn ( & udev -> dev , \"Process %d (%s) called USBDEVFS_%s for active endpoint 0x%02x\\n\" , task_pid_nr ( current ) , current -> comm , ioctl_name , epnum ) ;\n }"}
{"idx": 12774, "target": 0, "func": "static int zquit ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n check_op ( 2 ) ;\n check_type ( * op , t_integer ) ;\n return_error ( gs_error_Quit ) ;\n }"}
{"idx": 12775, "target": 0, "func": "static int dissect_segment_data ( tvbuff_t * tvb , int offset , packet_info * pinfo _U_ , proto_tree * tree , lbmpdm_msg_definition_id_t * id , int encoding ) {\n proto_item * subtree_item = NULL ;\n proto_tree * subtree = NULL ;\n int datalen = 0 ;\n int seglen = 0 ;\n lbmpdm_definition_t * def = NULL ;\n seglen = lbmpdm_get_segment_length ( tvb , offset , encoding , & datalen ) ;\n subtree_item = proto_tree_add_none_format ( tree , hf_lbmpdm_segment , tvb , offset , seglen , \"Data Segment\" ) ;\n subtree = proto_item_add_subtree ( subtree_item , ett_lbmpdm_segment ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_segment_next_hdr , tvb , offset + O_LBMPDM_SEG_HDR_T_NEXT_HDR , L_LBMPDM_SEG_HDR_T_NEXT_HDR , encoding ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_segment_flags , tvb , offset + O_LBMPDM_SEG_HDR_T_FLAGS , L_LBMPDM_SEG_HDR_T_FLAGS , encoding ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_segment_res , tvb , offset + O_LBMPDM_SEG_HDR_T_RES , L_LBMPDM_SEG_HDR_T_RES , encoding ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_segment_len , tvb , offset + O_LBMPDM_SEG_HDR_T_LEN , L_LBMPDM_SEG_HDR_T_LEN , encoding ) ;\n if ( ( id != NULL ) && ( id -> offset_table != NULL ) ) {\n def = lbmpdm_definition_find ( id -> channel , id -> msg_def_id , id -> ver_major , id -> ver_minor ) ;\n }\n if ( def == NULL ) {\n proto_tree_add_item ( subtree , hf_lbmpdm_segment_data , tvb , offset + L_LBMPDM_SEG_HDR_T , datalen , ENC_NA ) ;\n }\n else {\n int fld_offset = offset + L_LBMPDM_SEG_HDR_T ;\n lbmpdm_definition_field_t * field = NULL ;\n gboolean string_field_names = FALSE ;\n guint32 idx ;\n if ( def -> field_names_type == PDM_DEFN_STR_FIELD_NAMES ) {\n string_field_names = TRUE ;\n }\n else {\n string_field_names = FALSE ;\n }\n for ( field = def -> first_fixed_required ;\n field != NULL ;\n field = field -> next_fixed_required ) {\n fld_offset += dissect_field ( tvb , fld_offset , subtree , field , string_field_names , encoding ) ;\n }\n for ( idx = 0 ;\n idx < id -> offset_table -> num_flds ;\n ++ idx ) {\n gint32 ofs = id -> offset_table -> offset_list [ idx ] ;\n if ( ofs != - 1 ) {\n field = lbmpdm_definition_field_find ( def , idx ) ;\n if ( field != NULL ) {\n ( void ) dissect_field ( tvb , offset + L_LBMPDM_SEG_HDR_T + ofs , subtree , field , string_field_names , encoding ) ;\n }\n }\n }\n }\n return ( seglen ) ;\n }"}
{"idx": 12776, "target": 0, "func": "void usage_exit ( ) {\n fprintf ( stderr , \"Usage: %s <codec> <width> <height> <infile> <outfile> \" \"<keyframe-interval> [<error-resilient>]\\nSee comments in \" \"simple_encoder.c for more information.\\n\" , exec_name ) ;\n exit ( EXIT_FAILURE ) ;\n }"}
{"idx": 12777, "target": 0, "func": "static struct tree_content * new_tree_content ( unsigned int cnt ) {\n struct avail_tree_content * f , * l = NULL ;\n struct tree_content * t ;\n unsigned int hc = hc_entries ( cnt ) ;\n for ( f = avail_tree_table [ hc ] ;\n f ;\n l = f , f = f -> next_avail ) if ( f -> entry_capacity >= cnt ) break ;\n if ( f ) {\n if ( l ) l -> next_avail = f -> next_avail ;\n else avail_tree_table [ hc ] = f -> next_avail ;\n }\n else {\n cnt = cnt & 7 ? ( ( cnt / 8 ) + 1 ) * 8 : cnt ;\n f = pool_alloc ( sizeof ( * t ) + sizeof ( t -> entries [ 0 ] ) * cnt ) ;\n f -> entry_capacity = cnt ;\n }\n t = ( struct tree_content * ) f ;\n t -> entry_count = 0 ;\n t -> delta_depth = 0 ;\n return t ;\n }"}
{"idx": 12778, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( ClientHintsBrowserTest , ClientHintsNoLifetimeScriptNotAllowed ) {\n base : : HistogramTester histogram_tester ;\n ContentSettingsForOneType host_settings ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> GetSettingsForOneType ( CONTENT_SETTINGS_TYPE_CLIENT_HINTS , std : : string ( ) , & host_settings ) ;\n EXPECT_EQ ( 0u , host_settings . size ( ) ) ;\n SetClientHintExpectationsOnSubresources ( false ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> SetContentSettingDefaultScope ( accept_ch_without_lifetime_img_localhost ( ) , GURL ( ) , CONTENT_SETTINGS_TYPE_JAVASCRIPT , std : : string ( ) , CONTENT_SETTING_BLOCK ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , accept_ch_without_lifetime_img_localhost ( ) ) ;\n EXPECT_EQ ( 0u , count_client_hints_headers_seen ( ) ) ;\n EXPECT_EQ ( 1u , third_party_request_count_seen ( ) ) ;\n EXPECT_EQ ( 0u , third_party_client_hints_count_seen ( ) ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> SetContentSettingDefaultScope ( accept_ch_without_lifetime_img_localhost ( ) , GURL ( ) , CONTENT_SETTINGS_TYPE_JAVASCRIPT , std : : string ( ) , CONTENT_SETTING_ALLOW ) ;\n SetClientHintExpectationsOnSubresources ( true ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , accept_ch_without_lifetime_img_localhost ( ) ) ;\n EXPECT_EQ ( 3u , count_client_hints_headers_seen ( ) ) ;\n EXPECT_EQ ( 2u , third_party_request_count_seen ( ) ) ;\n EXPECT_EQ ( 0u , third_party_client_hints_count_seen ( ) ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> ClearSettingsForOneType ( CONTENT_SETTINGS_TYPE_JAVASCRIPT ) ;\n SetClientHintExpectationsOnSubresources ( false ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> SetContentSettingDefaultScope ( accept_ch_without_lifetime_img_localhost ( ) , GURL ( ) , CONTENT_SETTINGS_TYPE_JAVASCRIPT , std : : string ( ) , CONTENT_SETTING_BLOCK ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , accept_ch_without_lifetime_img_localhost ( ) ) ;\n EXPECT_EQ ( 3u , count_client_hints_headers_seen ( ) ) ;\n EXPECT_EQ ( 3u , third_party_request_count_seen ( ) ) ;\n EXPECT_EQ ( 0u , third_party_client_hints_count_seen ( ) ) ;\n }"}
{"idx": 12779, "target": 0, "func": "static void source_var_based_partition_search_method ( VP9_COMP * cpi ) {\n VP9_COMMON * const cm = & cpi -> common ;\n SPEED_FEATURES * const sf = & cpi -> sf ;\n if ( cm -> frame_type == KEY_FRAME ) {\n sf -> partition_search_type = SEARCH_PARTITION ;\n }\n else if ( cm -> intra_only ) {\n sf -> partition_search_type = FIXED_PARTITION ;\n }\n else {\n if ( cm -> last_width != cm -> width || cm -> last_height != cm -> height ) {\n if ( cpi -> source_diff_var ) vpx_free ( cpi -> source_diff_var ) ;\n CHECK_MEM_ERROR ( cm , cpi -> source_diff_var , vpx_calloc ( cm -> MBs , sizeof ( diff ) ) ) ;\n }\n if ( ! cpi -> frames_till_next_var_check ) cpi -> frames_till_next_var_check = set_var_thresh_from_histogram ( cpi ) ;\n if ( cpi -> frames_till_next_var_check > 0 ) {\n sf -> partition_search_type = FIXED_PARTITION ;\n cpi -> frames_till_next_var_check -- ;\n }\n }\n }"}
{"idx": 12780, "target": 1, "func": "static vpx_codec_err_t parse_options ( SvcContext * svc_ctx , const char * options ) {\n char * input_string ;\n char * option_name ;\n char * option_value ;\n char * input_ptr ;\n SvcInternal * const si = get_svc_internal ( svc_ctx ) ;\n vpx_codec_err_t res = VPX_CODEC_OK ;\n if ( options == NULL ) return VPX_CODEC_OK ;\n input_string = strdup ( options ) ;\n option_name = strtok_r ( input_string , \"=\" , & input_ptr ) ;\n while ( option_name != NULL ) {\n option_value = strtok_r ( NULL , \" \" , & input_ptr ) ;\n if ( option_value == NULL ) {\n svc_log ( svc_ctx , SVC_LOG_ERROR , \"option missing value: %s\\n\" , option_name ) ;\n res = VPX_CODEC_INVALID_PARAM ;\n break ;\n }\n if ( strcmp ( \"spatial-layers\" , option_name ) == 0 ) {\n svc_ctx -> spatial_layers = atoi ( option_value ) ;\n }\n else if ( strcmp ( \"temporal-layers\" , option_name ) == 0 ) {\n svc_ctx -> temporal_layers = atoi ( option_value ) ;\n }\n else if ( strcmp ( \"scale-factors\" , option_name ) == 0 ) {\n res = parse_scale_factors ( svc_ctx , option_value ) ;\n if ( res != VPX_CODEC_OK ) break ;\n }\n else if ( strcmp ( \"quantizers\" , option_name ) == 0 ) {\n res = parse_quantizer_values ( svc_ctx , option_value ) ;\n if ( res != VPX_CODEC_OK ) break ;\n }\n else if ( strcmp ( \"auto-alt-refs\" , option_name ) == 0 ) {\n res = parse_auto_alt_ref ( svc_ctx , option_value ) ;\n if ( res != VPX_CODEC_OK ) break ;\n }\n else if ( strcmp ( \"multi-frame-contexts\" , option_name ) == 0 ) {\n si -> use_multiple_frame_contexts = atoi ( option_value ) ;\n }\n else {\n svc_log ( svc_ctx , SVC_LOG_ERROR , \"invalid option: %s\\n\" , option_name ) ;\n res = VPX_CODEC_INVALID_PARAM ;\n break ;\n }\n option_name = strtok_r ( NULL , \"=\" , & input_ptr ) ;\n }\n free ( input_string ) ;\n if ( si -> use_multiple_frame_contexts && ( svc_ctx -> spatial_layers > 3 || svc_ctx -> spatial_layers * svc_ctx -> temporal_layers > 4 ) ) res = VPX_CODEC_INVALID_PARAM ;\n return res ;\n }"}
{"idx": 12781, "target": 0, "func": "static int dissect_h225_BIT_STRING_SIZE_32 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_bit_string ( tvb , offset , actx , tree , hf_index , 32 , 32 , FALSE , NULL , NULL ) ;\n return offset ;\n }"}
{"idx": 12782, "target": 0, "func": "static void aw_parse_coords ( WMAVoiceContext * s , GetBitContext * gb , const int * pitch ) {\n static const int16_t start_offset [ 94 ] = {\n - 11 , - 9 , - 7 , - 5 , - 3 , - 1 , 1 , 3 , 5 , 7 , 9 , 11 , 13 , 15 , 18 , 17 , 19 , 20 , 21 , 22 , 23 , 24 , 25 , 26 , 27 , 28 , 29 , 30 , 31 , 32 , 33 , 35 , 37 , 39 , 41 , 43 , 45 , 47 , 49 , 51 , 53 , 55 , 57 , 59 , 61 , 63 , 65 , 67 , 69 , 71 , 73 , 75 , 77 , 79 , 81 , 83 , 85 , 87 , 89 , 91 , 93 , 95 , 97 , 99 , 101 , 103 , 105 , 107 , 109 , 111 , 113 , 115 , 117 , 119 , 121 , 123 , 125 , 127 , 129 , 131 , 133 , 135 , 137 , 139 , 141 , 143 , 145 , 147 , 149 , 151 , 153 , 155 , 157 , 159 }\n ;\n int bits , offset ;\n s -> aw_idx_is_ext = 0 ;\n if ( ( bits = get_bits ( gb , 6 ) ) >= 54 ) {\n s -> aw_idx_is_ext = 1 ;\n bits += ( bits - 54 ) * 3 + get_bits ( gb , 2 ) ;\n }\n s -> aw_pulse_range = FFMIN ( pitch [ 0 ] , pitch [ 1 ] ) > 32 ? 24 : 16 ;\n for ( offset = start_offset [ bits ] ;\n offset < 0 ;\n offset += pitch [ 0 ] ) ;\n s -> aw_n_pulses [ 0 ] = ( pitch [ 0 ] - 1 + MAX_FRAMESIZE / 2 - offset ) / pitch [ 0 ] ;\n s -> aw_first_pulse_off [ 0 ] = offset - s -> aw_pulse_range / 2 ;\n offset += s -> aw_n_pulses [ 0 ] * pitch [ 0 ] ;\n s -> aw_n_pulses [ 1 ] = ( pitch [ 1 ] - 1 + MAX_FRAMESIZE - offset ) / pitch [ 1 ] ;\n s -> aw_first_pulse_off [ 1 ] = offset - ( MAX_FRAMESIZE + s -> aw_pulse_range ) / 2 ;\n if ( start_offset [ bits ] < MAX_FRAMESIZE / 2 ) {\n while ( s -> aw_first_pulse_off [ 1 ] - pitch [ 1 ] + s -> aw_pulse_range > 0 ) s -> aw_first_pulse_off [ 1 ] -= pitch [ 1 ] ;\n if ( start_offset [ bits ] < 0 ) while ( s -> aw_first_pulse_off [ 0 ] - pitch [ 0 ] + s -> aw_pulse_range > 0 ) s -> aw_first_pulse_off [ 0 ] -= pitch [ 0 ] ;\n }\n }"}
{"idx": 12783, "target": 0, "func": "static hb_position_t hb_font_get_glyph_h_kerning_nil ( hb_font_t * font , void * font_data HB_UNUSED , hb_codepoint_t left_glyph , hb_codepoint_t right_glyph , void * user_data HB_UNUSED ) {\n if ( font -> parent ) return font -> parent_scale_x_distance ( font -> parent -> get_glyph_h_kerning ( left_glyph , right_glyph ) ) ;\n return 0 ;\n }"}
{"idx": 12784, "target": 0, "func": "static void test_prepare_field_result ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_RES * result ;\n int rc ;\n char query [ MAX_TEST_QUERY_LENGTH ] ;\n myheader ( \"test_prepare_field_result\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_prepare_field_result\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_prepare_field_result(int_c int, \" \"var_c varchar(50), ts_c timestamp, \" \"char_c char(4), date_c date, extra tinyint)\" ) ;\n myquery ( rc ) ;\n strmov ( query , \"SELECT int_c, var_c, date_c as date, ts_c, char_c FROM \" \" test_prepare_field_result as t1 WHERE int_c=?\" ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 1 ) ;\n result = mysql_stmt_result_metadata ( stmt ) ;\n mytest ( result ) ;\n my_print_result_metadata ( result ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n\\n field attributes:\\n\" ) ;\n verify_prepare_field ( result , 0 , \"int_c\" , \"int_c\" , MYSQL_TYPE_LONG , \"t1\" , \"test_prepare_field_result\" , current_db , 11 , 0 ) ;\n verify_prepare_field ( result , 1 , \"var_c\" , \"var_c\" , MYSQL_TYPE_VAR_STRING , \"t1\" , \"test_prepare_field_result\" , current_db , 50 , 0 ) ;\n verify_prepare_field ( result , 2 , \"date\" , \"date_c\" , MYSQL_TYPE_DATE , \"t1\" , \"test_prepare_field_result\" , current_db , 10 , 0 ) ;\n verify_prepare_field ( result , 3 , \"ts_c\" , \"ts_c\" , MYSQL_TYPE_TIMESTAMP , \"t1\" , \"test_prepare_field_result\" , current_db , 19 , 0 ) ;\n verify_prepare_field ( result , 4 , \"char_c\" , \"char_c\" , ( mysql_get_server_version ( mysql ) <= 50000 ? MYSQL_TYPE_VAR_STRING : MYSQL_TYPE_STRING ) , \"t1\" , \"test_prepare_field_result\" , current_db , 4 , 0 ) ;\n verify_field_count ( result , 5 ) ;\n mysql_free_result ( result ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 12785, "target": 0, "func": "static inline int loco_predict ( uint8_t * data , int stride , int step ) {\n int a , b , c ;\n a = data [ - stride ] ;\n b = data [ - step ] ;\n c = data [ - stride - step ] ;\n return mid_pred ( a , a + b - c , b ) ;\n }"}
{"idx": 12786, "target": 0, "func": "static diam_avp_t * build_appid_avp ( const avp_type_t * type , guint32 code , diam_vnd_t * vendor , const char * name , const value_string * vs _U_ , void * data _U_ ) {\n diam_avp_t * a ;\n field_display_e base ;\n a = ( diam_avp_t * ) wmem_alloc0 ( wmem_epan_scope ( ) , sizeof ( diam_avp_t ) ) ;\n a -> code = code ;\n a -> vendor = vendor ;\n a -> dissector_v16 = type -> v16 ;\n a -> dissector_rfc = type -> rfc ;\n a -> ett = - 1 ;\n a -> hf_value = - 1 ;\n if ( vs != NULL ) {\n report_failure ( \"Diameter Dictionary: AVP '%s' (of type AppId) has a list of values but the list won't be used\\n\" , name ) ;\n }\n base = ( field_display_e ) ( type -> base | BASE_EXT_STRING ) ;\n basic_avp_reginfo ( a , name , type -> ft , base , dictionary . applications ) ;\n return a ;\n }"}
{"idx": 12787, "target": 0, "func": "static inline Quantum GetPixelRed ( const Image * restrict image , const Quantum * restrict pixel ) {\n return ( pixel [ image -> channel_map [ RedPixelChannel ] . offset ] ) ;\n }"}
{"idx": 12788, "target": 0, "func": "size_t vmxnet_tx_pkt_get_total_len ( struct VmxnetTxPkt * pkt ) {\n assert ( pkt ) ;\n return pkt -> hdr_len + pkt -> payload_len ;\n }"}
{"idx": 12789, "target": 0, "func": "static VALUE cState_array_nl_set ( VALUE self , VALUE array_nl ) {\n unsigned long len ;\n GET_STATE ( self ) ;\n Check_Type ( array_nl , T_STRING ) ;\n len = RSTRING_LEN ( array_nl ) ;\n if ( len == 0 ) {\n if ( state -> array_nl ) {\n ruby_xfree ( state -> array_nl ) ;\n state -> array_nl = NULL ;\n }\n }\n else {\n if ( state -> array_nl ) ruby_xfree ( state -> array_nl ) ;\n state -> array_nl = fstrndup ( RSTRING_PTR ( array_nl ) , len ) ;\n state -> array_nl_len = len ;\n }\n return Qnil ;\n }"}
{"idx": 12790, "target": 0, "func": "static void vmsvga_text_update ( void * opaque , console_ch_t * chardata ) {\n struct vmsvga_state_s * s = opaque ;\n if ( s -> vga . hw_ops -> text_update ) {\n s -> vga . hw_ops -> text_update ( & s -> vga , chardata ) ;\n }\n }"}
{"idx": 12791, "target": 0, "func": "static void dissect_zcl_ota_imageblockrsp ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n guint8 status ;\n guint8 data_size ;\n status = tvb_get_guint8 ( tvb , * offset ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_status , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n if ( status == ZBEE_ZCL_STAT_SUCCESS ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_manufacturer_code , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_image_type , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n dissect_zcl_ota_file_version_field ( tvb , tree , offset ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_file_offset , tvb , * offset , 4 , ENC_LITTLE_ENDIAN ) ;\n * offset += 4 ;\n data_size = tvb_get_guint8 ( tvb , * offset ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_data_size , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_image_data , tvb , * offset , data_size , ENC_NA ) ;\n * offset += data_size ;\n }\n else if ( status == ZBEE_ZCL_STAT_OTA_WAIT_FOR_DATA ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_current_time , tvb , * offset , 4 , ENC_LITTLE_ENDIAN ) ;\n * offset += 4 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_request_time , tvb , * offset , 4 , ENC_LITTLE_ENDIAN ) ;\n * offset += 4 ;\n }\n else {\n }\n }"}
{"idx": 12792, "target": 0, "func": "static int zmbv_decode_xor_16 ( ZmbvContext * c ) {\n uint8_t * src = c -> decomp_buf ;\n uint16_t * output , * prev ;\n int8_t * mvec ;\n int x , y ;\n int d , dx , dy , bw2 , bh2 ;\n int block ;\n int i , j ;\n int mx , my ;\n output = ( uint16_t * ) c -> cur ;\n prev = ( uint16_t * ) c -> prev ;\n mvec = ( int8_t * ) src ;\n src += ( ( c -> bx * c -> by * 2 + 3 ) & ~ 3 ) ;\n block = 0 ;\n for ( y = 0 ;\n y < c -> height ;\n y += c -> bh ) {\n bh2 = ( ( c -> height - y ) > c -> bh ) ? c -> bh : ( c -> height - y ) ;\n for ( x = 0 ;\n x < c -> width ;\n x += c -> bw ) {\n uint16_t * out , * tprev ;\n d = mvec [ block ] & 1 ;\n dx = mvec [ block ] >> 1 ;\n dy = mvec [ block + 1 ] >> 1 ;\n block += 2 ;\n bw2 = ( ( c -> width - x ) > c -> bw ) ? c -> bw : ( c -> width - x ) ;\n out = output + x ;\n tprev = prev + x + dx + dy * c -> width ;\n mx = x + dx ;\n my = y + dy ;\n for ( j = 0 ;\n j < bh2 ;\n j ++ ) {\n if ( my + j < 0 || my + j >= c -> height ) {\n memset ( out , 0 , bw2 * 2 ) ;\n }\n else {\n for ( i = 0 ;\n i < bw2 ;\n i ++ ) {\n if ( mx + i < 0 || mx + i >= c -> width ) out [ i ] = 0 ;\n else out [ i ] = tprev [ i ] ;\n }\n }\n out += c -> width ;\n tprev += c -> width ;\n }\n if ( d ) {\n out = output + x ;\n for ( j = 0 ;\n j < bh2 ;\n j ++ ) {\n for ( i = 0 ;\n i < bw2 ;\n i ++ ) {\n out [ i ] ^= * ( ( uint16_t * ) src ) ;\n src += 2 ;\n }\n out += c -> width ;\n }\n }\n }\n output += c -> width * c -> bh ;\n prev += c -> width * c -> bh ;\n }\n if ( src - c -> decomp_buf != c -> decomp_len ) av_log ( c -> avctx , AV_LOG_ERROR , \"Used %ti of %i bytes\\n\" , src - c -> decomp_buf , c -> decomp_len ) ;\n return 0 ;\n }"}
{"idx": 12793, "target": 0, "func": "void gx_ttfReader__set_font ( gx_ttfReader * self , gs_font_type42 * pfont ) {\n self -> pfont = pfont ;\n self -> super . get_metrics = gx_ttfReader__default_get_metrics ;\n }"}
{"idx": 12794, "target": 0, "func": "static int dissect_h245_Al3 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_Al3 , Al3_sequence ) ;\n return offset ;\n }"}
{"idx": 12795, "target": 1, "func": "static int qcelp_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n QCELPContext * q = avctx -> priv_data ;\n AVFrame * frame = data ;\n float * outbuffer ;\n int i , ret ;\n float quantized_lspf [ 10 ] , lpc [ 10 ] ;\n float gain [ 16 ] ;\n float * formant_mem ;\n frame -> nb_samples = 160 ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n outbuffer = ( float * ) frame -> data [ 0 ] ;\n if ( ( q -> bitrate = determine_bitrate ( avctx , buf_size , & buf ) ) == I_F_Q ) {\n warn_insufficient_frame_quality ( avctx , \"bitrate cannot be determined.\" ) ;\n goto erasure ;\n }\n if ( q -> bitrate == RATE_OCTAVE && ( q -> first16bits = AV_RB16 ( buf ) ) == 0xFFFF ) {\n warn_insufficient_frame_quality ( avctx , \"Bitrate is 1/8 and first 16 bits are on.\" ) ;\n goto erasure ;\n }\n if ( q -> bitrate > SILENCE ) {\n const QCELPBitmap * bitmaps = qcelp_unpacking_bitmaps_per_rate [ q -> bitrate ] ;\n const QCELPBitmap * bitmaps_end = qcelp_unpacking_bitmaps_per_rate [ q -> bitrate ] + qcelp_unpacking_bitmaps_lengths [ q -> bitrate ] ;\n uint8_t * unpacked_data = ( uint8_t * ) & q -> frame ;\n init_get_bits ( & q -> gb , buf , 8 * buf_size ) ;\n memset ( & q -> frame , 0 , sizeof ( QCELPFrame ) ) ;\n for ( ;\n bitmaps < bitmaps_end ;\n bitmaps ++ ) unpacked_data [ bitmaps -> index ] |= get_bits ( & q -> gb , bitmaps -> bitlen ) << bitmaps -> bitpos ;\n if ( q -> frame . reserved ) {\n warn_insufficient_frame_quality ( avctx , \"Wrong data in reserved frame area.\" ) ;\n goto erasure ;\n }\n if ( q -> bitrate == RATE_QUARTER && codebook_sanity_check_for_rate_quarter ( q -> frame . cbgain ) ) {\n warn_insufficient_frame_quality ( avctx , \"Codebook gain sanity check failed.\" ) ;\n goto erasure ;\n }\n if ( q -> bitrate >= RATE_HALF ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n if ( q -> frame . pfrac [ i ] && q -> frame . plag [ i ] >= 124 ) {\n warn_insufficient_frame_quality ( avctx , \"Cannot initialize pitch filter.\" ) ;\n goto erasure ;\n }\n }\n }\n }\n decode_gain_and_index ( q , gain ) ;\n compute_svector ( q , gain , outbuffer ) ;\n if ( decode_lspf ( q , quantized_lspf ) < 0 ) {\n warn_insufficient_frame_quality ( avctx , \"Badly received packets in frame.\" ) ;\n goto erasure ;\n }\n apply_pitch_filters ( q , outbuffer ) ;\n if ( q -> bitrate == I_F_Q ) {\n erasure : q -> bitrate = I_F_Q ;\n q -> erasure_count ++ ;\n decode_gain_and_index ( q , gain ) ;\n compute_svector ( q , gain , outbuffer ) ;\n decode_lspf ( q , quantized_lspf ) ;\n apply_pitch_filters ( q , outbuffer ) ;\n }\n else q -> erasure_count = 0 ;\n formant_mem = q -> formant_mem + 10 ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n interpolate_lpc ( q , quantized_lspf , lpc , i ) ;\n ff_celp_lp_synthesis_filterf ( formant_mem , lpc , outbuffer + i * 40 , 40 , 10 ) ;\n formant_mem += 40 ;\n }\n postfilter ( q , outbuffer , lpc ) ;\n memcpy ( q -> formant_mem , q -> formant_mem + 160 , 10 * sizeof ( float ) ) ;\n memcpy ( q -> prev_lspf , quantized_lspf , sizeof ( q -> prev_lspf ) ) ;\n q -> prev_bitrate = q -> bitrate ;\n * got_frame_ptr = 1 ;\n return buf_size ;\n }"}
{"idx": 12796, "target": 0, "func": "static int decode_dct ( RangeCoder * c , DCTBlockCoder * bc , int * block , int bx , int by ) {\n int skip , val , sign , pos = 1 , zz_pos , dc ;\n int blk_pos = bx + by * bc -> prev_dc_stride ;\n memset ( block , 0 , sizeof ( * block ) * 64 ) ;\n dc = decode_coeff ( c , & bc -> dc_model ) ;\n if ( by ) {\n if ( bx ) {\n int l , tl , t ;\n l = bc -> prev_dc [ blk_pos - 1 ] ;\n tl = bc -> prev_dc [ blk_pos - 1 - bc -> prev_dc_stride ] ;\n t = bc -> prev_dc [ blk_pos - bc -> prev_dc_stride ] ;\n if ( FFABS ( t - tl ) <= FFABS ( l - tl ) ) dc += l ;\n else dc += t ;\n }\n else {\n dc += bc -> prev_dc [ blk_pos - bc -> prev_dc_stride ] ;\n }\n }\n else if ( bx ) {\n dc += bc -> prev_dc [ bx - 1 ] ;\n }\n bc -> prev_dc [ blk_pos ] = dc ;\n block [ 0 ] = dc * bc -> qmat [ 0 ] ;\n while ( pos < 64 ) {\n val = rac_get_model256_sym ( c , & bc -> ac_model ) ;\n if ( ! val ) return 0 ;\n if ( val == 0xF0 ) {\n pos += 16 ;\n continue ;\n }\n skip = val >> 4 ;\n val = val & 0xF ;\n if ( ! val ) return - 1 ;\n pos += skip ;\n if ( pos >= 64 ) return - 1 ;\n sign = rac_get_model2_sym ( c , & bc -> sign_model ) ;\n if ( val > 1 ) {\n val -- ;\n val = ( 1 << val ) + rac_get_bits ( c , val ) ;\n }\n if ( ! sign ) val = - val ;\n zz_pos = ff_zigzag_direct [ pos ] ;\n block [ zz_pos ] = val * bc -> qmat [ zz_pos ] ;\n pos ++ ;\n }\n return pos == 64 ? 0 : - 1 ;\n }"}
{"idx": 12797, "target": 0, "func": "static void build_inter_predictors_for_planes ( MACROBLOCKD * xd , BLOCK_SIZE bsize , int mi_row , int mi_col , int plane_from , int plane_to ) {\n int plane ;\n const int mi_x = mi_col * MI_SIZE ;\n const int mi_y = mi_row * MI_SIZE ;\n for ( plane = plane_from ;\n plane <= plane_to ;\n ++ plane ) {\n const BLOCK_SIZE plane_bsize = get_plane_block_size ( bsize , & xd -> plane [ plane ] ) ;\n const int num_4x4_w = num_4x4_blocks_wide_lookup [ plane_bsize ] ;\n const int num_4x4_h = num_4x4_blocks_high_lookup [ plane_bsize ] ;\n const int bw = 4 * num_4x4_w ;\n const int bh = 4 * num_4x4_h ;\n if ( xd -> mi [ 0 ] . src_mi -> mbmi . sb_type < BLOCK_8X8 ) {\n int i = 0 , x , y ;\n assert ( bsize == BLOCK_8X8 ) ;\n for ( y = 0 ;\n y < num_4x4_h ;\n ++ y ) for ( x = 0 ;\n x < num_4x4_w ;\n ++ x ) build_inter_predictors ( xd , plane , i ++ , bw , bh , * x , 4 * y , 4 , 4 , mi_x , mi_y ) ;\n }\n else {\n build_inter_predictors ( xd , plane , 0 , bw , bh , 0 , 0 , bw , bh , mi_x , mi_y ) ;\n }\n }\n }"}
{"idx": 12798, "target": 0, "func": "void vp9_twopass_postencode_update ( VP9_COMP * cpi ) {\n TWO_PASS * const twopass = & cpi -> twopass ;\n RATE_CONTROL * const rc = & cpi -> rc ;\n const int bits_used = rc -> base_frame_target ;\n rc -> vbr_bits_off_target += rc -> base_frame_target - rc -> projected_frame_size ;\n twopass -> bits_left = MAX ( twopass -> bits_left - bits_used , 0 ) ;\n if ( cpi -> common . frame_type != KEY_FRAME && ! vp9_is_upper_layer_key_frame ( cpi ) ) {\n twopass -> kf_group_bits -= bits_used ;\n twopass -> last_kfgroup_zeromotion_pct = twopass -> kf_zeromotion_pct ;\n }\n twopass -> kf_group_bits = MAX ( twopass -> kf_group_bits , 0 ) ;\n ++ twopass -> gf_group . index ;\n }"}
{"idx": 12799, "target": 0, "func": "static void read_once_cb ( int fd , short event , void * arg ) {\n char buf [ 256 ] ;\n int len ;\n len = read ( fd , buf , sizeof ( buf ) ) ;\n if ( called ) {\n test_ok = 0 ;\n }\n else if ( len ) {\n write ( pair [ 0 ] , TEST1 , strlen ( TEST1 ) + 1 ) ;\n test_ok = 1 ;\n }\n called ++ ;\n }"}
{"idx": 12800, "target": 0, "func": "static void isofile_add_data_file ( struct iso9660 * iso9660 , struct isofile * file ) {\n file -> datanext = NULL ;\n * iso9660 -> data_file_list . last = file ;\n iso9660 -> data_file_list . last = & ( file -> datanext ) ;\n }"}
{"idx": 12801, "target": 0, "func": "int qemuAssignDeviceDiskAlias ( virDomainDefPtr def , virDomainDiskDefPtr disk , virQEMUCapsPtr qemuCaps ) {\n const char * prefix = virDomainDiskBusTypeToString ( disk -> bus ) ;\n int controllerModel = - 1 ;\n if ( disk -> info . type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_DRIVE ) {\n if ( disk -> bus == VIR_DOMAIN_DISK_BUS_SCSI ) {\n controllerModel = virDomainDeviceFindControllerModel ( def , & disk -> info , VIR_DOMAIN_CONTROLLER_TYPE_SCSI ) ;\n if ( ( qemuDomainSetSCSIControllerModel ( def , qemuCaps , & controllerModel ) ) < 0 ) return - 1 ;\n }\n if ( disk -> bus != VIR_DOMAIN_DISK_BUS_SCSI || controllerModel == VIR_DOMAIN_CONTROLLER_MODEL_SCSI_LSILOGIC ) {\n if ( virAsprintf ( & disk -> info . alias , \"%s%d-%d-%d\" , prefix , disk -> info . addr . drive . controller , disk -> info . addr . drive . bus , disk -> info . addr . drive . unit ) < 0 ) return - 1 ;\n }\n else {\n if ( virAsprintf ( & disk -> info . alias , \"%s%d-%d-%d-%d\" , prefix , disk -> info . addr . drive . controller , disk -> info . addr . drive . bus , disk -> info . addr . drive . target , disk -> info . addr . drive . unit ) < 0 ) return - 1 ;\n }\n }\n else {\n int idx = virDiskNameToIndex ( disk -> dst ) ;\n if ( virAsprintf ( & disk -> info . alias , \"%s-disk%d\" , prefix , idx ) < 0 ) return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 12802, "target": 0, "func": "static QCryptoTLSCreds * nbd_get_tls_creds ( const char * id , Error * * errp ) {\n Object * obj ;\n QCryptoTLSCreds * creds ;\n obj = object_resolve_path_component ( object_get_objects_root ( ) , id ) ;\n if ( ! obj ) {\n error_setg ( errp , \"No TLS credentials with id '%s'\" , id ) ;\n return NULL ;\n }\n creds = ( QCryptoTLSCreds * ) object_dynamic_cast ( obj , TYPE_QCRYPTO_TLS_CREDS ) ;\n if ( ! creds ) {\n error_setg ( errp , \"Object with id '%s' is not TLS credentials\" , id ) ;\n return NULL ;\n }\n if ( creds -> endpoint != QCRYPTO_TLS_CREDS_ENDPOINT_SERVER ) {\n error_setg ( errp , \"Expecting TLS credentials with a server endpoint\" ) ;\n return NULL ;\n }\n object_ref ( obj ) ;\n return creds ;\n }"}
{"idx": 12803, "target": 0, "func": "static void dissect_fhandle_data_unknown ( tvbuff_t * tvb , int offset , proto_tree * tree ) {\n guint bytes_left = PVFS2_FH_LENGTH ;\n proto_tree_add_item ( tree , hf_fhandle_data , tvb , offset , bytes_left , ENC_NA ) ;\n }"}
{"idx": 12804, "target": 0, "func": "static int pRNG ( int frame_cntr , int block_num , int block_size ) {\n static const unsigned int div_tbl [ 9 ] [ 2 ] = {\n {\n 8332 , 3 * 715827883U }\n , {\n 4545 , 0 * 390451573U }\n , {\n 3124 , 11 * 268435456U }\n , {\n 2380 , 15 * 204522253U }\n , {\n 1922 , 23 * 165191050U }\n , {\n 1612 , 23 * 138547333U }\n , {\n 1388 , 27 * 119304648U }\n , {\n 1219 , 16 * 104755300U }\n , {\n 1086 , 39 * 93368855U }\n }\n ;\n unsigned int z , y , x = MUL16 ( block_num , 1877 ) + frame_cntr ;\n if ( x >= 0xFFFF ) x -= 0xFFFF ;\n y = x - 9 * MULH ( 477218589 , x ) ;\n z = ( uint16_t ) ( x * div_tbl [ y ] [ 0 ] + UMULH ( x , div_tbl [ y ] [ 1 ] ) ) ;\n return z % ( 1000 - block_size ) ;\n }"}
{"idx": 12805, "target": 0, "func": "void TSHttpParserClear ( TSHttpParser parser ) {\n sdk_assert ( sdk_sanity_check_http_parser ( parser ) == TS_SUCCESS ) ;\n http_parser_clear ( ( HTTPParser * ) parser ) ;\n }"}
{"idx": 12806, "target": 0, "func": "static void destroy_k12_file_data ( k12_t * fd ) {\n g_hash_table_destroy ( fd -> src_by_id ) ;\n g_hash_table_foreach_remove ( fd -> src_by_name , destroy_srcdsc , NULL ) ;\n g_hash_table_destroy ( fd -> src_by_name ) ;\n ws_buffer_free ( & ( fd -> extra_info ) ) ;\n g_free ( fd -> seq_read_buff ) ;\n g_free ( fd -> rand_read_buff ) ;\n g_free ( fd ) ;\n }"}
{"idx": 12807, "target": 1, "func": "static int compute_rd_thresh_factor ( int qindex ) {\n const int q = ( int ) ( pow ( vp9_dc_quant ( qindex , 0 ) / 4.0 , RD_THRESH_POW ) * 5.12 ) ;\n return MAX ( q , 8 ) ;\n }"}
{"idx": 12808, "target": 0, "func": "static int decode_seq_header ( AVSContext * h ) {\n int frame_rate_code ;\n int width , height ;\n h -> profile = get_bits ( & h -> gb , 8 ) ;\n h -> level = get_bits ( & h -> gb , 8 ) ;\n skip_bits1 ( & h -> gb ) ;\n width = get_bits ( & h -> gb , 14 ) ;\n height = get_bits ( & h -> gb , 14 ) ;\n if ( ( h -> width || h -> height ) && ( h -> width != width || h -> height != height ) ) {\n av_log_missing_feature ( h -> avctx , \"Width/height changing in CAVS\" , 0 ) ;\n return AVERROR_PATCHWELCOME ;\n }\n h -> width = width ;\n h -> height = height ;\n skip_bits ( & h -> gb , 2 ) ;\n skip_bits ( & h -> gb , 3 ) ;\n h -> aspect_ratio = get_bits ( & h -> gb , 4 ) ;\n frame_rate_code = get_bits ( & h -> gb , 4 ) ;\n skip_bits ( & h -> gb , 18 ) ;\n skip_bits1 ( & h -> gb ) ;\n skip_bits ( & h -> gb , 12 ) ;\n h -> low_delay = get_bits1 ( & h -> gb ) ;\n h -> mb_width = ( h -> width + 15 ) >> 4 ;\n h -> mb_height = ( h -> height + 15 ) >> 4 ;\n h -> avctx -> time_base . den = ff_mpeg12_frame_rate_tab [ frame_rate_code ] . num ;\n h -> avctx -> time_base . num = ff_mpeg12_frame_rate_tab [ frame_rate_code ] . den ;\n h -> avctx -> width = h -> width ;\n h -> avctx -> height = h -> height ;\n if ( ! h -> top_qp ) ff_cavs_init_top_lines ( h ) ;\n return 0 ;\n }"}
{"idx": 12809, "target": 0, "func": "static int mime_header_decoder_collector ( int c , void * data ) {\n const mbfl_encoding * encoding ;\n struct mime_header_decoder_data * pd = ( struct mime_header_decoder_data * ) data ;\n switch ( pd -> status ) {\n case 1 : if ( c == 0x3f ) {\n mbfl_memory_device_output ( c , & pd -> tmpdev ) ;\n pd -> cspos = pd -> tmpdev . pos ;\n pd -> status = 2 ;\n }\n else {\n mbfl_convert_filter_devcat ( pd -> conv1_filter , & pd -> tmpdev ) ;\n mbfl_memory_device_reset ( & pd -> tmpdev ) ;\n if ( c == 0x3d ) {\n mbfl_memory_device_output ( c , & pd -> tmpdev ) ;\n }\n else if ( c == 0x0d || c == 0x0a ) {\n pd -> status = 9 ;\n }\n else {\n ( * pd -> conv1_filter -> filter_function ) ( c , pd -> conv1_filter ) ;\n pd -> status = 0 ;\n }\n }\n break ;\n case 2 : if ( c == 0x3f ) {\n mbfl_memory_device_output ( '\\0' , & pd -> tmpdev ) ;\n encoding = mbfl_name2encoding ( ( const char * ) & pd -> tmpdev . buffer [ pd -> cspos ] ) ;\n if ( encoding != NULL ) {\n pd -> incode = encoding -> no_encoding ;\n pd -> status = 3 ;\n }\n mbfl_memory_device_unput ( & pd -> tmpdev ) ;\n mbfl_memory_device_output ( c , & pd -> tmpdev ) ;\n }\n else {\n mbfl_memory_device_output ( c , & pd -> tmpdev ) ;\n if ( pd -> tmpdev . pos > 100 ) {\n pd -> status = 0 ;\n }\n else if ( c == 0x0d || c == 0x0a ) {\n mbfl_memory_device_unput ( & pd -> tmpdev ) ;\n pd -> status = 9 ;\n }\n if ( pd -> status != 2 ) {\n mbfl_convert_filter_devcat ( pd -> conv1_filter , & pd -> tmpdev ) ;\n mbfl_memory_device_reset ( & pd -> tmpdev ) ;\n }\n }\n break ;\n case 3 : mbfl_memory_device_output ( c , & pd -> tmpdev ) ;\n if ( c == 0x42 || c == 0x62 ) {\n pd -> encoding = mbfl_no_encoding_base64 ;\n pd -> status = 4 ;\n }\n else if ( c == 0x51 || c == 0x71 ) {\n pd -> encoding = mbfl_no_encoding_qprint ;\n pd -> status = 4 ;\n }\n else {\n if ( c == 0x0d || c == 0x0a ) {\n mbfl_memory_device_unput ( & pd -> tmpdev ) ;\n pd -> status = 9 ;\n }\n else {\n pd -> status = 0 ;\n }\n mbfl_convert_filter_devcat ( pd -> conv1_filter , & pd -> tmpdev ) ;\n mbfl_memory_device_reset ( & pd -> tmpdev ) ;\n }\n break ;\n case 4 : mbfl_memory_device_output ( c , & pd -> tmpdev ) ;\n if ( c == 0x3f ) {\n mbfl_convert_filter_reset ( pd -> conv1_filter , pd -> incode , mbfl_no_encoding_wchar ) ;\n mbfl_convert_filter_reset ( pd -> deco_filter , pd -> encoding , mbfl_no_encoding_8bit ) ;\n pd -> status = 5 ;\n }\n else {\n if ( c == 0x0d || c == 0x0a ) {\n mbfl_memory_device_unput ( & pd -> tmpdev ) ;\n pd -> status = 9 ;\n }\n else {\n pd -> status = 0 ;\n }\n mbfl_convert_filter_devcat ( pd -> conv1_filter , & pd -> tmpdev ) ;\n }\n mbfl_memory_device_reset ( & pd -> tmpdev ) ;\n break ;\n case 5 : if ( c == 0x3f ) {\n pd -> status = 6 ;\n }\n else {\n ( * pd -> deco_filter -> filter_function ) ( c , pd -> deco_filter ) ;\n }\n break ;\n case 6 : if ( c == 0x3d ) {\n ( * pd -> deco_filter -> filter_flush ) ( pd -> deco_filter ) ;\n ( * pd -> conv1_filter -> filter_flush ) ( pd -> conv1_filter ) ;\n mbfl_convert_filter_reset ( pd -> conv1_filter , mbfl_no_encoding_ascii , mbfl_no_encoding_wchar ) ;\n pd -> status = 7 ;\n }\n else {\n ( * pd -> deco_filter -> filter_function ) ( 0x3f , pd -> deco_filter ) ;\n if ( c != 0x3f ) {\n ( * pd -> deco_filter -> filter_function ) ( c , pd -> deco_filter ) ;\n pd -> status = 5 ;\n }\n }\n break ;\n case 7 : if ( c == 0x0d || c == 0x0a ) {\n pd -> status = 8 ;\n }\n else {\n mbfl_memory_device_output ( c , & pd -> tmpdev ) ;\n if ( c == 0x3d ) {\n pd -> status = 1 ;\n }\n else if ( c != 0x20 && c != 0x09 ) {\n mbfl_convert_filter_devcat ( pd -> conv1_filter , & pd -> tmpdev ) ;\n mbfl_memory_device_reset ( & pd -> tmpdev ) ;\n pd -> status = 0 ;\n }\n }\n break ;\n case 8 : case 9 : if ( c != 0x0d && c != 0x0a && c != 0x20 && c != 0x09 ) {\n if ( c == 0x3d ) {\n if ( pd -> status == 8 ) {\n mbfl_memory_device_output ( 0x20 , & pd -> tmpdev ) ;\n }\n else {\n ( * pd -> conv1_filter -> filter_function ) ( 0x20 , pd -> conv1_filter ) ;\n }\n mbfl_memory_device_output ( c , & pd -> tmpdev ) ;\n pd -> status = 1 ;\n }\n else {\n mbfl_memory_device_output ( 0x20 , & pd -> tmpdev ) ;\n mbfl_memory_device_output ( c , & pd -> tmpdev ) ;\n mbfl_convert_filter_devcat ( pd -> conv1_filter , & pd -> tmpdev ) ;\n mbfl_memory_device_reset ( & pd -> tmpdev ) ;\n pd -> status = 0 ;\n }\n }\n break ;\n default : if ( c == 0x0d || c == 0x0a ) {\n pd -> status = 9 ;\n }\n else if ( c == 0x3d ) {\n mbfl_memory_device_output ( c , & pd -> tmpdev ) ;\n pd -> status = 1 ;\n }\n else {\n ( * pd -> conv1_filter -> filter_function ) ( c , pd -> conv1_filter ) ;\n }\n break ;\n }\n return c ;\n }"}
{"idx": 12810, "target": 0, "func": "static void nb_xmit_corrl ( tvbuff_t * tvb , int offset , proto_tree * tree ) {\n proto_tree_add_item ( tree , hf_netb_xmit_corrl , tvb , offset + NB_XMIT_CORL , 2 , ENC_LITTLE_ENDIAN ) ;\n }"}
{"idx": 12811, "target": 0, "func": "static void pxa2xx_fir_rx ( void * opaque , const uint8_t * buf , int size ) {\n PXA2xxFIrState * s = ( PXA2xxFIrState * ) opaque ;\n if ( ! ( s -> control [ 0 ] & ( 1 << 4 ) ) ) return ;\n while ( size -- ) {\n s -> status [ 1 ] |= 1 << 4 ;\n if ( s -> rx_len >= 64 ) {\n s -> status [ 1 ] |= 1 << 6 ;\n break ;\n }\n if ( s -> control [ 2 ] & ( 1 << 3 ) ) s -> rx_fifo [ ( s -> rx_start + s -> rx_len ++ ) & 63 ] = * ( buf ++ ) ;\n else s -> rx_fifo [ ( s -> rx_start + s -> rx_len ++ ) & 63 ] = ~ * ( buf ++ ) ;\n }\n pxa2xx_fir_update ( s ) ;\n }"}
{"idx": 12812, "target": 0, "func": "int qemuMonitorJSONRemovePCIDevice ( qemuMonitorPtr mon ATTRIBUTE_UNUSED , virDomainDevicePCIAddress * guestAddr ATTRIBUTE_UNUSED ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"pci_del not suppported in JSON mode\" ) ) ;\n return - 1 ;\n }"}
{"idx": 12813, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , LoadingMetrics ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : LOAD_TIMING_INFO ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/title1.html\" ) ) ;\n waiter -> Wait ( ) ;\n }"}
{"idx": 12814, "target": 0, "func": "static void libopenjpeg_copyto8 ( AVFrame * picture , opj_image_t * image ) {\n int * comp_data ;\n uint8_t * img_ptr ;\n int index , x , y ;\n for ( index = 0 ;\n index < image -> numcomps ;\n index ++ ) {\n comp_data = image -> comps [ index ] . data ;\n for ( y = 0 ;\n y < image -> comps [ index ] . h ;\n y ++ ) {\n img_ptr = picture -> data [ index ] + y * picture -> linesize [ index ] ;\n for ( x = 0 ;\n x < image -> comps [ index ] . w ;\n x ++ ) {\n * img_ptr = ( uint8_t ) * comp_data ;\n img_ptr ++ ;\n comp_data ++ ;\n }\n }\n }\n }"}
{"idx": 12815, "target": 0, "func": "static int dissect_h225_SEQUENCE_OF_AliasAddress ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_SEQUENCE_OF_AliasAddress , SEQUENCE_OF_AliasAddress_sequence_of ) ;\n return offset ;\n }"}
{"idx": 12816, "target": 0, "func": "int xmlHashUpdateEntry ( xmlHashTablePtr table , const xmlChar * name , void * userdata , xmlHashDeallocator f ) {\n return ( xmlHashUpdateEntry3 ( table , name , NULL , NULL , userdata , f ) ) ;\n }"}
{"idx": 12817, "target": 0, "func": "void BrotliStateMetablockBegin ( BrotliState * s ) {\n s -> meta_block_remaining_len = 0 ;\n s -> block_length [ 0 ] = 1U << 28 ;\n s -> block_length [ 1 ] = 1U << 28 ;\n s -> block_length [ 2 ] = 1U << 28 ;\n s -> num_block_types [ 0 ] = 1 ;\n s -> num_block_types [ 1 ] = 1 ;\n s -> num_block_types [ 2 ] = 1 ;\n s -> block_type_rb [ 0 ] = 1 ;\n s -> block_type_rb [ 1 ] = 0 ;\n s -> block_type_rb [ 2 ] = 1 ;\n s -> block_type_rb [ 3 ] = 0 ;\n s -> block_type_rb [ 4 ] = 1 ;\n s -> block_type_rb [ 5 ] = 0 ;\n s -> context_map = NULL ;\n s -> context_modes = NULL ;\n s -> dist_context_map = NULL ;\n s -> context_map_slice = NULL ;\n s -> literal_htree_index = 0 ;\n s -> literal_htree = NULL ;\n s -> dist_context_map_slice = NULL ;\n s -> dist_htree_index = 0 ;\n s -> context_lookup1 = NULL ;\n s -> context_lookup2 = NULL ;\n s -> literal_hgroup . codes = NULL ;\n s -> literal_hgroup . htrees = NULL ;\n s -> insert_copy_hgroup . codes = NULL ;\n s -> insert_copy_hgroup . htrees = NULL ;\n s -> distance_hgroup . codes = NULL ;\n s -> distance_hgroup . htrees = NULL ;\n }"}
{"idx": 12818, "target": 0, "func": "static int best_effort_strncat_to_utf16le ( struct archive_string * as16 , const void * _p , size_t length , struct archive_string_conv * sc ) {\n return ( best_effort_strncat_to_utf16 ( as16 , _p , length , sc , 0 ) ) ;\n }"}
{"idx": 12819, "target": 0, "func": "TEST ( URLFixerTest , SegmentURL ) {\n std : : string result ;\n url : : Parsed parts ;\n for ( size_t i = 0 ;\n i < arraysize ( segment_cases ) ;\n ++ i ) {\n SegmentCase value = segment_cases [ i ] ;\n result = url_formatter : : SegmentURL ( value . input , & parts ) ;\n EXPECT_EQ ( value . result , result ) ;\n EXPECT_EQ ( value . scheme , parts . scheme ) ;\n EXPECT_EQ ( value . username , parts . username ) ;\n EXPECT_EQ ( value . password , parts . password ) ;\n EXPECT_EQ ( value . host , parts . host ) ;\n EXPECT_EQ ( value . port , parts . port ) ;\n EXPECT_EQ ( value . path , parts . path ) ;\n EXPECT_EQ ( value . query , parts . query ) ;\n EXPECT_EQ ( value . ref , parts . ref ) ;\n }\n }"}
{"idx": 12820, "target": 0, "func": "static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 12821, "target": 0, "func": "event_info * find_event ( tm_event_t x ) {\n event_info * ep ;\n for ( ep = event_hash [ x % EVENT_HASH ] ;\n ep ;\n ep = ep -> e_next ) {\n if ( ep -> e_event == x ) break ;\n }\n return ep ;\n }"}
{"idx": 12822, "target": 0, "func": "static int test_if_case_insensitive ( const char * dir_name ) {\n int result = 0 ;\n File file ;\n char buff [ FN_REFLEN ] , buff2 [ FN_REFLEN ] ;\n MY_STAT stat_info ;\n DBUG_ENTER ( \"test_if_case_insensitive\" ) ;\n fn_format ( buff , glob_hostname , dir_name , \".lower-test\" , MY_UNPACK_FILENAME | MY_REPLACE_EXT | MY_REPLACE_DIR ) ;\n fn_format ( buff2 , glob_hostname , dir_name , \".LOWER-TEST\" , MY_UNPACK_FILENAME | MY_REPLACE_EXT | MY_REPLACE_DIR ) ;\n mysql_file_delete ( key_file_casetest , buff2 , MYF ( 0 ) ) ;\n if ( ( file = mysql_file_create ( key_file_casetest , buff , 0666 , O_RDWR , MYF ( 0 ) ) ) < 0 ) {\n if ( ! opt_abort ) sql_print_warning ( \"Can't create test file %s\" , buff ) ;\n DBUG_RETURN ( - 1 ) ;\n }\n mysql_file_close ( file , MYF ( 0 ) ) ;\n if ( mysql_file_stat ( key_file_casetest , buff2 , & stat_info , MYF ( 0 ) ) ) result = 1 ;\n mysql_file_delete ( key_file_casetest , buff , MYF ( MY_WME ) ) ;\n DBUG_PRINT ( \"exit\" , ( \"result: %d\" , result ) ) ;\n DBUG_RETURN ( result ) ;\n }"}
{"idx": 12823, "target": 0, "func": "void psf_fsync ( SF_PRIVATE * psf ) {\n # if HAVE_FSYNC if ( psf -> file . mode == SFM_WRITE || psf -> file . mode == SFM_RDWR ) fsync ( psf -> file . filedes ) ;\n # else psf = NULL ;\n # endif }"}
{"idx": 12824, "target": 0, "func": "php_stream * php_stream_url_wrap_http ( php_stream_wrapper * wrapper , const char * path , const char * mode , int options , char * * opened_path , php_stream_context * context STREAMS_DC TSRMLS_DC ) {\n return php_stream_url_wrap_http_ex ( wrapper , path , mode , options , opened_path , context , PHP_URL_REDIRECT_MAX , HTTP_WRAPPER_HEADER_INIT STREAMS_CC TSRMLS_CC ) ;\n }"}
{"idx": 12825, "target": 0, "func": "static void pxa2xx_ssp_save ( QEMUFile * f , void * opaque ) {\n PXA2xxSSPState * s = ( PXA2xxSSPState * ) opaque ;\n int i ;\n qemu_put_be32 ( f , s -> enable ) ;\n qemu_put_be32s ( f , & s -> sscr [ 0 ] ) ;\n qemu_put_be32s ( f , & s -> sscr [ 1 ] ) ;\n qemu_put_be32s ( f , & s -> sspsp ) ;\n qemu_put_be32s ( f , & s -> ssto ) ;\n qemu_put_be32s ( f , & s -> ssitr ) ;\n qemu_put_be32s ( f , & s -> sssr ) ;\n qemu_put_8s ( f , & s -> sstsa ) ;\n qemu_put_8s ( f , & s -> ssrsa ) ;\n qemu_put_8s ( f , & s -> ssacd ) ;\n qemu_put_byte ( f , s -> rx_level ) ;\n for ( i = 0 ;\n i < s -> rx_level ;\n i ++ ) qemu_put_byte ( f , s -> rx_fifo [ ( s -> rx_start + i ) & 0xf ] ) ;\n }"}
{"idx": 12826, "target": 0, "func": "void TSTextLogObjectFlush ( TSTextLogObject the_object ) {\n sdk_assert ( sdk_sanity_check_iocore_structure ( the_object ) == TS_SUCCESS ) ;\n ( ( TextLogObject * ) the_object ) -> force_new_buffer ( ) ;\n }"}
{"idx": 12827, "target": 0, "func": "static void copy_task_done ( GObject * source_object , GAsyncResult * res , gpointer user_data ) {\n CopyMoveJob * job ;\n job = user_data ;\n if ( job -> done_callback ) {\n job -> done_callback ( job -> debuting_files , ! job_aborted ( ( CommonJob * ) job ) , job -> done_callback_data ) ;\n }\n g_list_free_full ( job -> files , g_object_unref ) ;\n if ( job -> destination ) {\n g_object_unref ( job -> destination ) ;\n }\n if ( job -> desktop_location ) {\n g_object_unref ( job -> desktop_location ) ;\n }\n g_hash_table_unref ( job -> debuting_files ) ;\n g_free ( job -> icon_positions ) ;\n g_free ( job -> target_name ) ;\n g_clear_object ( & job -> fake_display_source ) ;\n finalize_common ( ( CommonJob * ) job ) ;\n nautilus_file_changes_consume_changes ( TRUE ) ;\n }"}
{"idx": 12828, "target": 0, "func": "static inline void qemu_put_be16s ( QEMUFile * f , const uint16_t * pv ) {\n qemu_put_be16 ( f , * pv ) ;\n }"}
{"idx": 12829, "target": 0, "func": "static void help ( const char * progname ) {\n printf ( _ ( \"%s cleans and analyzes a PostgreSQL database.\\n\\n\" ) , progname ) ;\n printf ( _ ( \"Usage:\\n\" ) ) ;\n printf ( _ ( \" %s [OPTION]... [DBNAME]\\n\" ) , progname ) ;\n printf ( _ ( \"\\nOptions:\\n\" ) ) ;\n printf ( _ ( \" -a, --all vacuum all databases\\n\" ) ) ;\n printf ( _ ( \" -d, --dbname=DBNAME database to vacuum\\n\" ) ) ;\n printf ( _ ( \" -e, --echo show the commands being sent to the server\\n\" ) ) ;\n printf ( _ ( \" -f, --full do full vacuuming\\n\" ) ) ;\n printf ( _ ( \" -F, --freeze freeze row transaction information\\n\" ) ) ;\n printf ( _ ( \" -j, --jobs=NUM use this many concurrent connections to vacuum\\n\" ) ) ;\n printf ( _ ( \" -q, --quiet don't write any messages\\n\" ) ) ;\n printf ( _ ( \" -t, --table='TABLE[(COLUMNS)]' vacuum specific table(s) only\\n\" ) ) ;\n printf ( _ ( \" -v, --verbose write a lot of output\\n\" ) ) ;\n printf ( _ ( \" -V, --version output version information, then exit\\n\" ) ) ;\n printf ( _ ( \" -z, --analyze update optimizer statistics\\n\" ) ) ;\n printf ( _ ( \" -Z, --analyze-only only update optimizer statistics;\n no vacuum\\n\" ) ) ;\n printf ( _ ( \" --analyze-in-stages only update optimizer statistics, in multiple\\n\" \" stages for faster results;\n no vacuum\\n\" ) ) ;\n printf ( _ ( \" -?, --help show this help, then exit\\n\" ) ) ;\n printf ( _ ( \"\\nConnection options:\\n\" ) ) ;\n printf ( _ ( \" -h, --host=HOSTNAME database server host or socket directory\\n\" ) ) ;\n printf ( _ ( \" -p, --port=PORT database server port\\n\" ) ) ;\n printf ( _ ( \" -U, --username=USERNAME user name to connect as\\n\" ) ) ;\n printf ( _ ( \" -w, --no-password never prompt for password\\n\" ) ) ;\n printf ( _ ( \" -W, --password force password prompt\\n\" ) ) ;\n printf ( _ ( \" --maintenance-db=DBNAME alternate maintenance database\\n\" ) ) ;\n printf ( _ ( \"\\nRead the description of the SQL command VACUUM for details.\\n\" ) ) ;\n printf ( _ ( \"\\nReport bugs to <pgsql-bugs@postgresql.org>.\\n\" ) ) ;\n }"}
{"idx": 12830, "target": 0, "func": "static int dissect_h245_INTEGER_1_8192 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 8192U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 12831, "target": 0, "func": "static void activation_parameters_free ( ActivateParameters * parameters ) {\n if ( parameters -> timed_wait_active ) {\n eel_timed_wait_stop ( cancel_activate_callback , parameters ) ;\n }\n if ( parameters -> slot ) {\n g_object_remove_weak_pointer ( G_OBJECT ( parameters -> slot ) , ( gpointer * ) & parameters -> slot ) ;\n }\n if ( parameters -> parent_window ) {\n g_object_remove_weak_pointer ( G_OBJECT ( parameters -> parent_window ) , ( gpointer * ) & parameters -> parent_window ) ;\n }\n g_object_unref ( parameters -> cancellable ) ;\n launch_location_list_free ( parameters -> locations ) ;\n nautilus_file_list_free ( parameters -> mountables ) ;\n nautilus_file_list_free ( parameters -> start_mountables ) ;\n nautilus_file_list_free ( parameters -> not_mounted ) ;\n g_free ( parameters -> activation_directory ) ;\n g_free ( parameters -> timed_wait_prompt ) ;\n g_assert ( parameters -> files_handle == NULL ) ;\n g_free ( parameters ) ;\n }"}
{"idx": 12832, "target": 0, "func": "unsigned int vp9_sad ## m ## x ## n ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride ) {\n return sad ( src , src_stride , ref , ref_stride , m , n ) ;\n \\ }\n 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 ) {\n uint8_t comp_pred [ m * n ] ;\n vp9_comp_avg_pred ( comp_pred , second_pred , m , n , ref , ref_stride ) ;\n return sad ( src , src_stride , comp_pred , m , m , n ) ;\n \\ }\n # define sadMxNxK ( m , n , k ) void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 )"}
{"idx": 12833, "target": 0, "func": "void vp9_find_best_ref_mvs ( MACROBLOCKD * xd , int allow_hp , int_mv * mvlist , int_mv * nearest , int_mv * near ) {\n int i ;\n for ( i = 0 ;\n i < MAX_MV_REF_CANDIDATES ;\n ++ i ) {\n lower_mv_precision ( & mvlist [ i ] . as_mv , allow_hp ) ;\n clamp_mv2 ( & mvlist [ i ] . as_mv , xd ) ;\n }\n * nearest = mvlist [ 0 ] ;\n * near = mvlist [ 1 ] ;\n }"}
{"idx": 12834, "target": 1, "func": "void vp9_idct16x16_256_add_c ( const int16_t * input , uint8_t * dest , int stride ) {\n int16_t out [ 16 * 16 ] ;\n int16_t * outptr = out ;\n int i , j ;\n int16_t temp_in [ 16 ] , temp_out [ 16 ] ;\n for ( i = 0 ;\n i < 16 ;\n ++ i ) {\n idct16 ( input , outptr ) ;\n input += 16 ;\n outptr += 16 ;\n }\n for ( i = 0 ;\n i < 16 ;\n ++ i ) {\n for ( j = 0 ;\n j < 16 ;\n ++ j ) temp_in [ j ] = out [ j * 16 + i ] ;\n idct16 ( temp_in , temp_out ) ;\n for ( j = 0 ;\n j < 16 ;\n ++ j ) dest [ j * stride + i ] = clip_pixel ( ROUND_POWER_OF_TWO ( temp_out [ j ] , 6 ) + dest [ j * stride + i ] ) ;\n }\n }"}
{"idx": 12835, "target": 0, "func": "static void update_layer_buffer_level ( SVC * svc , int encoded_frame_size ) {\n int temporal_layer = 0 ;\n int current_temporal_layer = svc -> temporal_layer_id ;\n for ( temporal_layer = current_temporal_layer + 1 ;\n temporal_layer < svc -> number_temporal_layers ;\n ++ temporal_layer ) {\n LAYER_CONTEXT * lc = & svc -> layer_context [ temporal_layer ] ;\n RATE_CONTROL * lrc = & lc -> rc ;\n int bits_off_for_this_layer = ( int ) ( lc -> target_bandwidth / lc -> framerate - encoded_frame_size ) ;\n lrc -> bits_off_target += bits_off_for_this_layer ;\n lrc -> bits_off_target = MIN ( lrc -> bits_off_target , lrc -> maximum_buffer_size ) ;\n lrc -> buffer_level = lrc -> bits_off_target ;\n }\n }"}
{"idx": 12836, "target": 0, "func": "static gint round_to_8byte ( gint current_offset , gint starting_offset ) {\n gint length = current_offset - starting_offset ;\n return starting_offset + ROUND_TO_8BYTE ( length ) ;\n }"}
{"idx": 12837, "target": 0, "func": "int test_mod_mul ( BIO * bp , BN_CTX * ctx ) {\n BIGNUM * a , * b , * c , * d , * e ;\n int i , j ;\n a = BN_new ( ) ;\n b = BN_new ( ) ;\n c = BN_new ( ) ;\n d = BN_new ( ) ;\n e = BN_new ( ) ;\n for ( j = 0 ;\n j < 3 ;\n j ++ ) {\n BN_bntest_rand ( c , 1024 , 0 , 0 ) ;\n for ( i = 0 ;\n i < num0 ;\n i ++ ) {\n BN_bntest_rand ( a , 475 + i * 10 , 0 , 0 ) ;\n BN_bntest_rand ( b , 425 + i * 11 , 0 , 0 ) ;\n a -> neg = rand_neg ( ) ;\n b -> neg = rand_neg ( ) ;\n if ( ! BN_mod_mul ( e , a , b , c , ctx ) ) {\n unsigned long l ;\n while ( ( l = ERR_get_error ( ) ) ) fprintf ( stderr , \"ERROR:%s\\n\" , ERR_error_string ( l , NULL ) ) ;\n EXIT ( 1 ) ;\n }\n if ( bp != NULL ) {\n if ( ! results ) {\n BN_print ( bp , a ) ;\n BIO_puts ( bp , \" * \" ) ;\n BN_print ( bp , b ) ;\n BIO_puts ( bp , \" % \" ) ;\n BN_print ( bp , c ) ;\n if ( ( a -> neg ^ b -> neg ) && ! BN_is_zero ( e ) ) {\n BIO_puts ( bp , \" + \" ) ;\n BN_print ( bp , c ) ;\n }\n BIO_puts ( bp , \" - \" ) ;\n }\n BN_print ( bp , e ) ;\n BIO_puts ( bp , \"\\n\" ) ;\n }\n BN_mul ( d , a , b , ctx ) ;\n BN_sub ( d , d , e ) ;\n BN_div ( a , b , d , c , ctx ) ;\n if ( ! BN_is_zero ( b ) ) {\n fprintf ( stderr , \"Modulo multiply test failed!\\n\" ) ;\n ERR_print_errors_fp ( stderr ) ;\n return 0 ;\n }\n }\n }\n BN_free ( a ) ;\n BN_free ( b ) ;\n BN_free ( c ) ;\n BN_free ( d ) ;\n BN_free ( e ) ;\n return ( 1 ) ;\n }"}
{"idx": 12838, "target": 1, "func": "void appendConnStrVal ( PQExpBuffer buf , const char * str ) {\n const char * s ;\n bool needquotes ;\n needquotes = false ;\n for ( s = str ;\n * s ;\n s ++ ) {\n if ( ! ( ( * s >= 'a' && * s <= 'z' ) || ( * s >= 'A' && * s <= 'Z' ) || ( * s >= '0' && * s <= '9' ) || * s == '_' || * s == '.' ) ) {\n needquotes = true ;\n break ;\n }\n }\n if ( needquotes ) {\n appendPQExpBufferChar ( buf , '\\'' ) ;\n while ( * str ) {\n if ( * str == '\\'' || * str == '\\\\' ) appendPQExpBufferChar ( buf , '\\\\' ) ;\n appendPQExpBufferChar ( buf , * str ) ;\n str ++ ;\n }\n appendPQExpBufferChar ( buf , '\\'' ) ;\n }\n else appendPQExpBufferStr ( buf , str ) ;\n }"}
{"idx": 12839, "target": 0, "func": "static gboolean mac_is_fragment_equal ( gconstpointer a , gconstpointer b ) {\n const mac_is_fragment * x = ( const mac_is_fragment * ) a , * y = ( const mac_is_fragment * ) b ;\n return x -> frame_num == y -> frame_num && x -> tsn == y -> tsn && x -> type == y -> type ;\n }"}
{"idx": 12840, "target": 0, "func": "static guint16 de_tp_ue_positioning_technology ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n guchar oct ;\n curr_offset = offset ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n proto_tree_add_uint_format_value ( tree , hf_gsm_a_dtap_ue_positioning_technology , tvb , curr_offset , 1 , oct , \"%s\" , val_to_str ( oct , gsm_positioning_technology_vals , \"Reserved (%d)\" ) ) ;\n curr_offset += 1 ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 12841, "target": 0, "func": "static int dissect_h225_T_h323_message_body ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 241 \"./asn1/h225/h225.cnf\" gint32 message_body_val ;\n h225_packet_info * h225_pi ;\n contains_faststart = FALSE ;\n call_id_guid = NULL ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_T_h323_message_body , T_h323_message_body_choice , & message_body_val ) ;\n col_append_fstr ( actx -> pinfo -> cinfo , COL_INFO , \"CS: %s \" , val_to_str ( message_body_val , T_h323_message_body_vals , \"<unknown>\" ) ) ;\n h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n if ( h225_pi != NULL ) {\n if ( h225_pi -> msg_type == H225_CS ) {\n h225_pi -> msg_tag = message_body_val ;\n }\n if ( call_id_guid ) {\n h225_pi -> guid = * call_id_guid ;\n }\n }\n if ( contains_faststart == TRUE ) {\n col_append_str ( actx -> pinfo -> cinfo , COL_INFO , \"OpenLogicalChannel \" ) ;\n }\n col_set_fence ( actx -> pinfo -> cinfo , COL_INFO ) ;\n return offset ;\n }"}
{"idx": 12842, "target": 0, "func": "static int match_section ( const char * section_name , int show_all_entries , AVDictionary * entries ) {\n int i , ret = 0 ;\n for ( i = 0 ;\n i < FF_ARRAY_ELEMS ( sections ) ;\n i ++ ) {\n const struct section * section = & sections [ i ] ;\n if ( ! strcmp ( section_name , section -> name ) || ( section -> unique_name && ! strcmp ( section_name , section -> unique_name ) ) ) {\n av_log ( NULL , AV_LOG_DEBUG , \"'%s' matches section with unique name '%s'\\n\" , section_name , ( char * ) av_x_if_null ( section -> unique_name , section -> name ) ) ;\n ret ++ ;\n mark_section_show_entries ( section -> id , show_all_entries , entries ) ;\n }\n }\n return ret ;\n }"}
{"idx": 12843, "target": 0, "func": "ACL_USER * check_acl_user ( LEX_USER * user_name , uint * acl_acl_userdx ) {\n ACL_USER * acl_user = 0 ;\n uint counter ;\n safe_mutex_assert_owner ( & acl_cache -> lock ) ;\n for ( counter = 0 ;\n counter < acl_users . elements ;\n counter ++ ) {\n const char * user , * host ;\n acl_user = dynamic_element ( & acl_users , counter , ACL_USER * ) ;\n if ( ! ( user = acl_user -> user ) ) user = \"\" ;\n if ( ! ( host = acl_user -> host . hostname ) ) host = \"\" ;\n if ( ! strcmp ( user_name -> user . str , user ) && ! my_strcasecmp ( system_charset_info , user_name -> host . str , host ) ) break ;\n }\n if ( counter == acl_users . elements ) return 0 ;\n * acl_acl_userdx = counter ;\n return acl_user ;\n }"}
{"idx": 12844, "target": 0, "func": "sf_count_t psf_fread ( void * ptr , sf_count_t bytes , sf_count_t items , SF_PRIVATE * psf ) {\n sf_count_t total = 0 ;\n ssize_t count ;\n if ( psf -> virtual_io ) return psf -> vio . read ( ptr , bytes * items , psf -> vio_user_data ) / bytes ;\n items *= bytes ;\n if ( items <= 0 ) return 0 ;\n while ( items > 0 ) {\n count = ( items > SENSIBLE_SIZE ) ? SENSIBLE_SIZE : ( ssize_t ) items ;\n count = read ( psf -> file . filedes , ( ( char * ) ptr ) + total , ( size_t ) count ) ;\n if ( count == - 1 ) {\n if ( errno == EINTR ) continue ;\n psf_log_syserr ( psf , errno ) ;\n break ;\n }\n ;\n if ( count == 0 ) break ;\n total += count ;\n items -= count ;\n }\n ;\n if ( psf -> is_pipe ) psf -> pipeoffset += total ;\n return total / bytes ;\n }"}
{"idx": 12845, "target": 0, "func": "static void free_statement ( pdo_stmt_t * stmt TSRMLS_DC ) {\n if ( stmt -> bound_params ) {\n zend_hash_destroy ( stmt -> bound_params ) ;\n FREE_HASHTABLE ( stmt -> bound_params ) ;\n stmt -> bound_params = NULL ;\n }\n if ( stmt -> bound_param_map ) {\n zend_hash_destroy ( stmt -> bound_param_map ) ;\n FREE_HASHTABLE ( stmt -> bound_param_map ) ;\n stmt -> bound_param_map = NULL ;\n }\n if ( stmt -> bound_columns ) {\n zend_hash_destroy ( stmt -> bound_columns ) ;\n FREE_HASHTABLE ( stmt -> bound_columns ) ;\n stmt -> bound_columns = NULL ;\n }\n if ( stmt -> methods && stmt -> methods -> dtor ) {\n stmt -> methods -> dtor ( stmt TSRMLS_CC ) ;\n }\n if ( stmt -> query_string ) {\n efree ( stmt -> query_string ) ;\n }\n if ( stmt -> columns ) {\n int i ;\n struct pdo_column_data * cols = stmt -> columns ;\n for ( i = 0 ;\n i < stmt -> column_count ;\n i ++ ) {\n if ( cols [ i ] . name ) {\n efree ( cols [ i ] . name ) ;\n cols [ i ] . name = NULL ;\n }\n }\n efree ( stmt -> columns ) ;\n stmt -> columns = NULL ;\n }\n if ( stmt -> fetch . into && stmt -> default_fetch_type == PDO_FETCH_INTO ) {\n FREE_ZVAL ( stmt -> fetch . into ) ;\n stmt -> fetch . into = NULL ;\n }\n do_fetch_opt_finish ( stmt , 1 TSRMLS_CC ) ;\n zend_objects_store_del_ref ( & stmt -> database_object_handle TSRMLS_CC ) ;\n if ( stmt -> dbh ) {\n php_pdo_dbh_delref ( stmt -> dbh TSRMLS_CC ) ;\n }\n zend_object_std_dtor ( & stmt -> std TSRMLS_CC ) ;\n efree ( stmt ) ;\n }"}
{"idx": 12846, "target": 0, "func": "static void dissect_rtp_rfc2198 ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree ) {\n gint offset = 0 ;\n guint8 octet1 ;\n int cnt ;\n gboolean hdr_follow = TRUE ;\n proto_item * ti = NULL ;\n proto_tree * rfc2198_tree = NULL ;\n proto_tree * rfc2198_hdr_tree = NULL ;\n rfc2198_hdr * hdr_last , * hdr_new ;\n rfc2198_hdr * hdr_chain = NULL ;\n struct _rtp_conversation_info * p_conv_data = NULL ;\n const gchar * payload_type_str ;\n p_conv_data = ( struct _rtp_conversation_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_rtp , 0 ) ;\n ti = proto_tree_add_text ( tree , tvb , offset , - 1 , \"RFC 2198: Redundant Audio Data\" ) ;\n rfc2198_tree = proto_item_add_subtree ( ti , ett_rtp_rfc2198 ) ;\n hdr_last = NULL ;\n cnt = 0 ;\n while ( hdr_follow ) {\n cnt ++ ;\n payload_type_str = NULL ;\n hdr_new = wmem_new ( wmem_packet_scope ( ) , rfc2198_hdr ) ;\n hdr_new -> next = NULL ;\n octet1 = tvb_get_guint8 ( tvb , offset ) ;\n hdr_new -> pt = RTP_PAYLOAD_TYPE ( octet1 ) ;\n hdr_follow = ( octet1 & 0x80 ) ;\n if ( ( hdr_new -> pt > 95 ) && ( hdr_new -> pt < 128 ) ) {\n if ( p_conv_data && p_conv_data -> rtp_dyn_payload ) {\n payload_type_str = rtp_dyn_payload_get_name ( p_conv_data -> rtp_dyn_payload , hdr_new -> pt ) ;\n }\n }\n ti = proto_tree_add_text ( rfc2198_tree , tvb , offset , ( hdr_follow ) ? 4 : 1 , \"Header %u\" , cnt ) ;\n rfc2198_hdr_tree = proto_item_add_subtree ( ti , ett_rtp_rfc2198_hdr ) ;\n proto_tree_add_item ( rfc2198_hdr_tree , hf_rtp_rfc2198_follow , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_uint_format_value ( rfc2198_hdr_tree , hf_rtp_payload_type , tvb , offset , 1 , octet1 , \"%s (%u)\" , payload_type_str ? payload_type_str : val_to_str_ext_const ( hdr_new -> pt , & rtp_payload_type_vals_ext , \"Unknown\" ) , hdr_new -> pt ) ;\n proto_item_append_text ( ti , \": PT=%s\" , payload_type_str ? payload_type_str : val_to_str_ext ( hdr_new -> pt , & rtp_payload_type_vals_ext , \"Unknown (%u)\" ) ) ;\n offset += 1 ;\n if ( hdr_follow ) {\n proto_tree_add_item ( rfc2198_hdr_tree , hf_rtp_rfc2198_tm_off , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rfc2198_hdr_tree , hf_rtp_rfc2198_bl_len , tvb , offset + 1 , 2 , ENC_BIG_ENDIAN ) ;\n hdr_new -> len = tvb_get_ntohs ( tvb , offset + 1 ) & 0x03FF ;\n proto_item_append_text ( ti , \", len=%u\" , hdr_new -> len ) ;\n offset += 3 ;\n }\n else {\n hdr_new -> len = - 1 ;\n hdr_follow = FALSE ;\n }\n if ( hdr_last ) {\n hdr_last -> next = hdr_new ;\n }\n else {\n hdr_chain = hdr_new ;\n }\n hdr_last = hdr_new ;\n }\n hdr_last = hdr_chain ;\n while ( hdr_last ) {\n hdr_last -> offset = offset ;\n if ( ! hdr_last -> next ) {\n hdr_last -> len = tvb_reported_length_remaining ( tvb , offset ) ;\n }\n dissect_rtp_data ( tvb , pinfo , tree , rfc2198_tree , hdr_last -> offset , hdr_last -> len , hdr_last -> len , hdr_last -> pt ) ;\n offset += hdr_last -> len ;\n hdr_last = hdr_last -> next ;\n }\n }"}
{"idx": 12847, "target": 0, "func": "static void remove_new_subdir ( char * subdir , bool rmtopdir ) {\n char new_path [ MAXPGPATH ] ;\n prep_status ( \"Deleting files from new %s\" , subdir ) ;\n snprintf ( new_path , sizeof ( new_path ) , \"%s/%s\" , new_cluster . pgdata , subdir ) ;\n if ( ! rmtree ( new_path , rmtopdir ) ) pg_fatal ( \"could not delete directory \\\"%s\\\"\\n\" , new_path ) ;\n check_ok ( ) ;\n }"}
{"idx": 12848, "target": 0, "func": "static int validate_raw_date ( const char * src , struct strbuf * result ) {\n const char * orig_src = src ;\n char * endp ;\n unsigned long num ;\n errno = 0 ;\n num = strtoul ( src , & endp , 10 ) ;\n if ( errno || endp == src || * endp != ' ' ) return - 1 ;\n src = endp + 1 ;\n if ( * src != '-' && * src != '+' ) return - 1 ;\n num = strtoul ( src + 1 , & endp , 10 ) ;\n if ( errno || endp == src + 1 || * endp || 1400 < num ) return - 1 ;\n strbuf_addstr ( result , orig_src ) ;\n return 0 ;\n }"}
{"idx": 12849, "target": 1, "func": "static void alloc_mode_context ( VP9_COMMON * cm , int num_4x4_blk , PICK_MODE_CONTEXT * ctx ) {\n const int num_blk = ( num_4x4_blk < 4 ? 4 : num_4x4_blk ) ;\n const int num_pix = num_blk << 4 ;\n int i , k ;\n ctx -> num_4x4_blk = num_blk ;\n CHECK_MEM_ERROR ( cm , ctx -> zcoeff_blk , vpx_calloc ( num_4x4_blk , sizeof ( uint8_t ) ) ) ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n ++ i ) {\n for ( k = 0 ;\n k < 3 ;\n ++ k ) {\n CHECK_MEM_ERROR ( cm , ctx -> coeff [ i ] [ k ] , vpx_memalign ( 16 , num_pix * sizeof ( int16_t ) ) ) ;\n CHECK_MEM_ERROR ( cm , ctx -> qcoeff [ i ] [ k ] , vpx_memalign ( 16 , num_pix * sizeof ( int16_t ) ) ) ;\n CHECK_MEM_ERROR ( cm , ctx -> dqcoeff [ i ] [ k ] , vpx_memalign ( 16 , num_pix * sizeof ( int16_t ) ) ) ;\n CHECK_MEM_ERROR ( cm , ctx -> eobs [ i ] [ k ] , vpx_memalign ( 16 , num_pix * sizeof ( uint16_t ) ) ) ;\n ctx -> coeff_pbuf [ i ] [ k ] = ctx -> coeff [ i ] [ k ] ;\n ctx -> qcoeff_pbuf [ i ] [ k ] = ctx -> qcoeff [ i ] [ k ] ;\n ctx -> dqcoeff_pbuf [ i ] [ k ] = ctx -> dqcoeff [ i ] [ k ] ;\n ctx -> eobs_pbuf [ i ] [ k ] = ctx -> eobs [ i ] [ k ] ;\n }\n }\n }"}
{"idx": 12850, "target": 0, "func": "void vp9_set_quantizer ( VP9_COMMON * cm , int q ) {\n cm -> base_qindex = q ;\n cm -> y_dc_delta_q = 0 ;\n cm -> uv_dc_delta_q = 0 ;\n cm -> uv_ac_delta_q = 0 ;\n }"}
{"idx": 12851, "target": 0, "func": "inline static void update_dns_info ( HttpTransact : : DNSLookupInfo * dns , HttpTransact : : CurrentInfo * from , int attempts , Arena * ) {\n dns -> looking_up = from -> request_to ;\n dns -> lookup_name = from -> server -> name ;\n dns -> attempts = attempts ;\n }"}
{"idx": 12852, "target": 0, "func": "static int cllc_decode_frame ( AVCodecContext * avctx , void * data , int * got_picture_ptr , AVPacket * avpkt ) {\n CLLCContext * ctx = avctx -> priv_data ;\n AVFrame * pic = data ;\n uint8_t * src = avpkt -> data ;\n uint32_t info_tag , info_offset ;\n int data_size ;\n GetBitContext gb ;\n int coding_type , ret ;\n info_offset = 0 ;\n info_tag = AV_RL32 ( src ) ;\n if ( info_tag == MKTAG ( 'I' , 'N' , 'F' , 'O' ) ) {\n info_offset = AV_RL32 ( src + 4 ) ;\n if ( info_offset > UINT32_MAX - 8 || info_offset + 8 > avpkt -> size ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid INFO header offset: 0x%08X is too large.\\n\" , info_offset ) ;\n return AVERROR_INVALIDDATA ;\n }\n info_offset += 8 ;\n src += info_offset ;\n av_log ( avctx , AV_LOG_DEBUG , \"Skipping INFO chunk.\\n\" ) ;\n }\n data_size = ( avpkt -> size - info_offset ) & ~ 1 ;\n av_fast_padded_malloc ( & ctx -> swapped_buf , & ctx -> swapped_buf_size , data_size ) ;\n if ( ! ctx -> swapped_buf ) {\n av_log ( avctx , AV_LOG_ERROR , \"Could not allocate swapped buffer.\\n\" ) ;\n return AVERROR ( ENOMEM ) ;\n }\n ctx -> dsp . bswap16_buf ( ( uint16_t * ) ctx -> swapped_buf , ( uint16_t * ) src , data_size / 2 ) ;\n init_get_bits ( & gb , ctx -> swapped_buf , data_size * 8 ) ;\n coding_type = ( AV_RL32 ( src ) >> 8 ) & 0xFF ;\n av_log ( avctx , AV_LOG_DEBUG , \"Frame coding type: %d\\n\" , coding_type ) ;\n switch ( coding_type ) {\n case 1 : case 2 : avctx -> pix_fmt = AV_PIX_FMT_RGB24 ;\n avctx -> bits_per_raw_sample = 8 ;\n ret = ff_get_buffer ( avctx , pic , 0 ) ;\n if ( ret < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Could not allocate buffer.\\n\" ) ;\n return ret ;\n }\n ret = decode_rgb24_frame ( ctx , & gb , pic ) ;\n if ( ret < 0 ) return ret ;\n break ;\n case 3 : avctx -> pix_fmt = AV_PIX_FMT_ARGB ;\n avctx -> bits_per_raw_sample = 8 ;\n ret = ff_get_buffer ( avctx , pic , 0 ) ;\n if ( ret < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Could not allocate buffer.\\n\" ) ;\n return ret ;\n }\n ret = decode_argb_frame ( ctx , & gb , pic ) ;\n if ( ret < 0 ) return ret ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"Unknown coding type: %d.\\n\" , coding_type ) ;\n return AVERROR_INVALIDDATA ;\n }\n pic -> key_frame = 1 ;\n pic -> pict_type = AV_PICTURE_TYPE_I ;\n * got_picture_ptr = 1 ;\n return avpkt -> size ;\n }"}
{"idx": 12853, "target": 0, "func": "static void test_bug15613 ( ) {\n MYSQL_STMT * stmt ;\n const char * stmt_text ;\n MYSQL_RES * metadata ;\n MYSQL_FIELD * field ;\n int rc ;\n myheader ( \"test_bug15613\" ) ;\n rc = mysql_query ( mysql , \"set names latin1\" ) ;\n myquery ( rc ) ;\n mysql_query ( mysql , \"drop table if exists t1\" ) ;\n rc = mysql_query ( mysql , \"create table t1 (t text character set utf8, \" \"tt tinytext character set utf8, \" \"mt mediumtext character set utf8, \" \"lt longtext character set utf8, \" \"vl varchar(255) character set latin1,\" \"vb varchar(255) character set binary,\" \"vu varchar(255) character set utf8)\" ) ;\n myquery ( rc ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n stmt_text = ( \"select t, tt, mt, lt, vl, vb, vu from t1\" ) ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n metadata = mysql_stmt_result_metadata ( stmt ) ;\n field = mysql_fetch_fields ( metadata ) ;\n if ( ! opt_silent ) {\n printf ( \"Field lengths (client character set is latin1):\\n\" \"text character set utf8:\\t\\t%lu\\n\" \"tinytext character set utf8:\\t\\t%lu\\n\" \"mediumtext character set utf8:\\t\\t%lu\\n\" \"longtext character set utf8:\\t\\t%lu\\n\" \"varchar(255) character set latin1:\\t%lu\\n\" \"varchar(255) character set binary:\\t%lu\\n\" \"varchar(255) character set utf8:\\t%lu\\n\" , field [ 0 ] . length , field [ 1 ] . length , field [ 2 ] . length , field [ 3 ] . length , field [ 4 ] . length , field [ 5 ] . length , field [ 6 ] . length ) ;\n }\n DIE_UNLESS ( field [ 0 ] . length == 65535 ) ;\n DIE_UNLESS ( field [ 1 ] . length == 255 ) ;\n DIE_UNLESS ( field [ 2 ] . length == 16777215 ) ;\n DIE_UNLESS ( field [ 3 ] . length == 4294967295UL ) ;\n DIE_UNLESS ( field [ 4 ] . length == 255 ) ;\n DIE_UNLESS ( field [ 5 ] . length == 255 ) ;\n DIE_UNLESS ( field [ 6 ] . length == 255 ) ;\n mysql_free_result ( metadata ) ;\n mysql_stmt_free_result ( stmt ) ;\n rc = mysql_query ( mysql , \"drop table t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"set names default\" ) ;\n myquery ( rc ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 12854, "target": 0, "func": "int vp9_set_active_map ( VP9_COMP * cpi , unsigned char * map , int rows , int cols ) {\n if ( rows == cpi -> common . mb_rows && cols == cpi -> common . mb_cols ) {\n const int mi_rows = cpi -> common . mi_rows ;\n const int mi_cols = cpi -> common . mi_cols ;\n if ( map ) {\n int r , c ;\n for ( r = 0 ;\n r < mi_rows ;\n r ++ ) {\n for ( c = 0 ;\n c < mi_cols ;\n c ++ ) {\n cpi -> segmentation_map [ r * mi_cols + c ] = ! map [ ( r >> 1 ) * cols + ( c >> 1 ) ] ;\n }\n }\n vp9_enable_segfeature ( & cpi -> common . seg , 1 , SEG_LVL_SKIP ) ;\n vp9_enable_segmentation ( & cpi -> common . seg ) ;\n }\n else {\n vp9_disable_segmentation ( & cpi -> common . seg ) ;\n }\n return 0 ;\n }\n else {\n return - 1 ;\n }\n }"}
{"idx": 12855, "target": 0, "func": "static int dissect_rsl_ie_full_imm_ass_inf ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_item * ti ;\n proto_tree * ie_tree ;\n guint length ;\n tvbuff_t * next_tvb ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_FULL_IMM_ASS_INF ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_ie_full_imm_ass_inf , & ti , \"Full Immediate Assign Info IE \" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n length = tvb_get_guint8 ( tvb , offset ) ;\n proto_item_set_len ( ti , length + 2 ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_length , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_full_immediate_assign_info_field , tvb , offset , length , ENC_NA ) ;\n next_tvb = tvb_new_subset_length ( tvb , offset , length ) ;\n call_dissector ( gsm_a_ccch_handle , next_tvb , pinfo , top_tree ) ;\n offset = offset + length ;\n return offset ;\n }"}
{"idx": 12856, "target": 1, "func": "int i2d_ ## name ( type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;\n int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DIRECTORYSTRING ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DISPLAYTEXT ) DECLARE_ASN1_FUNCTIONS ( ASN1_PRINTABLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_T61STRING )"}
{"idx": 12857, "target": 1, "func": "static int dissect_h225_Facility_UUIE ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 441 \"./asn1/h225/h225.cnf\" h225_packet_info * h225_pi ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_Facility_UUIE , Facility_UUIE_sequence ) ;\n # line 445 \"./asn1/h225/h225.cnf\" h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> cs_type = H225_FACILITY ;\n g_snprintf ( h225_pi -> frame_label , 50 , \"%s\" , val_to_str ( h225_pi -> cs_type , T_h323_message_body_vals , \"<unknown>\" ) ) ;\n }\n return offset ;\n }"}
{"idx": 12858, "target": 0, "func": "static PGconn * get_db_conn ( ClusterInfo * cluster , const char * db_name ) {\n PQExpBufferData conn_opts ;\n PGconn * conn ;\n initPQExpBuffer ( & conn_opts ) ;\n appendPQExpBufferStr ( & conn_opts , \"dbname=\" ) ;\n appendConnStrVal ( & conn_opts , db_name ) ;\n appendPQExpBufferStr ( & conn_opts , \" user=\" ) ;\n appendConnStrVal ( & conn_opts , os_info . user ) ;\n appendPQExpBuffer ( & conn_opts , \" port=%d\" , cluster -> port ) ;\n if ( cluster -> sockdir ) {\n appendPQExpBufferStr ( & conn_opts , \" host=\" ) ;\n appendConnStrVal ( & conn_opts , cluster -> sockdir ) ;\n }\n conn = PQconnectdb ( conn_opts . data ) ;\n termPQExpBuffer ( & conn_opts ) ;\n return conn ;\n }"}
{"idx": 12859, "target": 0, "func": "static int minima_cmp ( const void * a , const void * b ) {\n const Minima * da = ( const Minima * ) a ;\n const Minima * db = ( const Minima * ) b ;\n return da -> height - db -> height ;\n }"}
{"idx": 12860, "target": 0, "func": "vpx_codec_err_t vp9_copy_reference_dec ( VP9Decoder * pbi , VP9_REFFRAME ref_frame_flag , YV12_BUFFER_CONFIG * sd ) {\n VP9_COMMON * cm = & pbi -> common ;\n if ( ref_frame_flag == VP9_LAST_FLAG ) {\n const YV12_BUFFER_CONFIG * const cfg = get_ref_frame ( cm , 0 ) ;\n if ( cfg == NULL ) {\n vpx_internal_error ( & cm -> error , VPX_CODEC_ERROR , \"No 'last' reference frame\" ) ;\n return VPX_CODEC_ERROR ;\n }\n if ( ! equal_dimensions ( cfg , sd ) ) vpx_internal_error ( & cm -> error , VPX_CODEC_ERROR , \"Incorrect buffer dimensions\" ) ;\n else vp8_yv12_copy_frame ( cfg , sd ) ;\n }\n else {\n vpx_internal_error ( & cm -> error , VPX_CODEC_ERROR , \"Invalid reference frame\" ) ;\n }\n return cm -> error . error_code ;\n }"}
{"idx": 12861, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( SafeJsonParserTest , Parse ) {\n TestParse ( \"{\n}\n\" ) ;\n TestParse ( \"choke\" ) ;\n TestParse ( \"{\n\\\"awesome\\\": true}\n\" ) ;\n TestParse ( \"\\\"laser\\\"\" ) ;\n TestParse ( \"false\" ) ;\n TestParse ( \"null\" ) ;\n TestParse ( \"3.14\" ) ;\n TestParse ( \"[\" ) ;\n TestParse ( \"\\\"\" ) ;\n TestParse ( std : : string ( ) ) ;\n TestParse ( \"\u2603\" ) ;\n TestParse ( \"\\\"\u2603\\\"\" ) ;\n TestParse ( \"\\\"\\\\ufdd0\\\"\" ) ;\n TestParse ( \"\\\"\\\\ufffe\\\"\" ) ;\n TestParse ( \"\\\"\\\\ud83f\\\\udffe\\\"\" ) ;\n }"}
{"idx": 12862, "target": 1, "func": "int xmlHashAddEntry3 ( xmlHashTablePtr table , const xmlChar * name , const xmlChar * name2 , const xmlChar * name3 , void * userdata ) {\n unsigned long key , len = 0 ;\n xmlHashEntryPtr entry ;\n xmlHashEntryPtr insert ;\n if ( ( table == NULL ) || ( name == NULL ) ) return ( - 1 ) ;\n if ( table -> dict ) {\n if ( ! xmlDictOwns ( table -> dict , name ) ) {\n name = xmlDictLookup ( table -> dict , name , - 1 ) ;\n if ( name == NULL ) return ( - 1 ) ;\n }\n if ( ( name2 != NULL ) && ( ! xmlDictOwns ( table -> dict , name2 ) ) ) {\n name2 = xmlDictLookup ( table -> dict , name2 , - 1 ) ;\n if ( name2 == NULL ) return ( - 1 ) ;\n }\n if ( ( name3 != NULL ) && ( ! xmlDictOwns ( table -> dict , name3 ) ) ) {\n name3 = xmlDictLookup ( table -> dict , name3 , - 1 ) ;\n if ( name3 == NULL ) return ( - 1 ) ;\n }\n }\n key = xmlHashComputeKey ( table , name , name2 , name3 ) ;\n if ( table -> table [ key ] . valid == 0 ) {\n insert = NULL ;\n }\n else {\n if ( table -> dict ) {\n for ( insert = & ( table -> table [ key ] ) ;\n insert -> next != NULL ;\n insert = insert -> next ) {\n if ( ( insert -> name == name ) && ( insert -> name2 == name2 ) && ( insert -> name3 == name3 ) ) return ( - 1 ) ;\n len ++ ;\n }\n if ( ( insert -> name == name ) && ( insert -> name2 == name2 ) && ( insert -> name3 == name3 ) ) return ( - 1 ) ;\n }\n else {\n for ( insert = & ( table -> table [ key ] ) ;\n insert -> next != NULL ;\n insert = insert -> next ) {\n if ( ( xmlStrEqual ( insert -> name , name ) ) && ( xmlStrEqual ( insert -> name2 , name2 ) ) && ( xmlStrEqual ( insert -> name3 , name3 ) ) ) return ( - 1 ) ;\n len ++ ;\n }\n if ( ( xmlStrEqual ( insert -> name , name ) ) && ( xmlStrEqual ( insert -> name2 , name2 ) ) && ( xmlStrEqual ( insert -> name3 , name3 ) ) ) return ( - 1 ) ;\n }\n }\n if ( insert == NULL ) {\n entry = & ( table -> table [ key ] ) ;\n }\n else {\n entry = xmlMalloc ( sizeof ( xmlHashEntry ) ) ;\n if ( entry == NULL ) return ( - 1 ) ;\n }\n if ( table -> dict != NULL ) {\n entry -> name = ( xmlChar * ) name ;\n entry -> name2 = ( xmlChar * ) name2 ;\n entry -> name3 = ( xmlChar * ) name3 ;\n }\n else {\n entry -> name = xmlStrdup ( name ) ;\n entry -> name2 = xmlStrdup ( name2 ) ;\n entry -> name3 = xmlStrdup ( name3 ) ;\n }\n entry -> payload = userdata ;\n entry -> next = NULL ;\n entry -> valid = 1 ;\n if ( insert != NULL ) insert -> next = entry ;\n table -> nbElems ++ ;\n if ( len > MAX_HASH_LEN ) xmlHashGrow ( table , MAX_HASH_LEN * table -> size ) ;\n return ( 0 ) ;\n }"}
{"idx": 12863, "target": 0, "func": "static int dissect_h225_UseSpecifiedTransport ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_UseSpecifiedTransport , UseSpecifiedTransport_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 12864, "target": 0, "func": "static int xhci_submit ( XHCIState * xhci , XHCITransfer * xfer , XHCIEPContext * epctx ) {\n uint64_t mfindex ;\n DPRINTF ( \"xhci_submit(slotid=%d,epid=%d)\\n\" , xfer -> slotid , xfer -> epid ) ;\n xfer -> in_xfer = epctx -> type >> 2 ;\n switch ( epctx -> type ) {\n case ET_INTR_OUT : case ET_INTR_IN : xfer -> pkts = 0 ;\n xfer -> iso_xfer = false ;\n xfer -> timed_xfer = true ;\n mfindex = xhci_mfindex_get ( xhci ) ;\n xhci_calc_intr_kick ( xhci , xfer , epctx , mfindex ) ;\n xhci_check_intr_iso_kick ( xhci , xfer , epctx , mfindex ) ;\n if ( xfer -> running_retry ) {\n return - 1 ;\n }\n break ;\n case ET_BULK_OUT : case ET_BULK_IN : xfer -> pkts = 0 ;\n xfer -> iso_xfer = false ;\n xfer -> timed_xfer = false ;\n break ;\n case ET_ISO_OUT : case ET_ISO_IN : xfer -> pkts = 1 ;\n xfer -> iso_xfer = true ;\n xfer -> timed_xfer = true ;\n mfindex = xhci_mfindex_get ( xhci ) ;\n xhci_calc_iso_kick ( xhci , xfer , epctx , mfindex ) ;\n xhci_check_intr_iso_kick ( xhci , xfer , epctx , mfindex ) ;\n if ( xfer -> running_retry ) {\n return - 1 ;\n }\n break ;\n default : trace_usb_xhci_unimplemented ( \"endpoint type\" , epctx -> type ) ;\n return - 1 ;\n }\n if ( xhci_setup_packet ( xfer ) < 0 ) {\n return - 1 ;\n }\n usb_handle_packet ( xfer -> packet . ep -> dev , & xfer -> packet ) ;\n xhci_try_complete_packet ( xfer ) ;\n return 0 ;\n }"}
{"idx": 12865, "target": 0, "func": "static inline uint8_t read_u8 ( const unsigned char * buffer , size_t * pos ) {\n return buffer [ ( * pos ) ++ ] ;\n }"}
{"idx": 12866, "target": 0, "func": "static int rac_get_model_sym ( RangeCoder * c , Model * m ) {\n int prob , prob2 , helper , val ;\n int end , end2 ;\n prob = 0 ;\n prob2 = c -> range ;\n c -> range >>= MODEL_SCALE ;\n val = 0 ;\n end = m -> num_syms >> 1 ;\n end2 = m -> num_syms ;\n do {\n helper = m -> freqs [ end ] * c -> range ;\n if ( helper <= c -> low ) {\n val = end ;\n prob = helper ;\n }\n else {\n end2 = end ;\n prob2 = helper ;\n }\n end = ( end2 + val ) >> 1 ;\n }\n while ( end != val ) ;\n c -> low -= prob ;\n c -> range = prob2 - prob ;\n if ( c -> range < RAC_BOTTOM ) rac_normalise ( c ) ;\n model_update ( m , val ) ;\n return val ;\n }"}
{"idx": 12867, "target": 0, "func": "TSReturnCode TSMgmtIntGet ( const char * var_name , TSMgmtInt * result ) {\n return RecGetRecordInt ( ( char * ) var_name , ( RecInt * ) result ) == REC_ERR_OKAY ? TS_SUCCESS : TS_ERROR ;\n }"}
{"idx": 12868, "target": 0, "func": "static void cmd_window_move_dright ( void ) {\n MAIN_WINDOW_REC * rec ;\n rec = mainwindows_find_right ( active_mainwin , FALSE ) ;\n if ( rec == NULL ) rec = mainwindows_find_right ( active_mainwin , TRUE ) ;\n if ( rec != NULL ) window_reparent ( active_win , rec ) ;\n }"}
{"idx": 12869, "target": 0, "func": "static void swap_frame_buffers ( VP9Decoder * pbi ) {\n int ref_index = 0 , mask ;\n VP9_COMMON * const cm = & pbi -> common ;\n for ( mask = pbi -> refresh_frame_flags ;\n mask ;\n mask >>= 1 ) {\n if ( mask & 1 ) {\n const int old_idx = cm -> ref_frame_map [ ref_index ] ;\n ref_cnt_fb ( cm -> frame_bufs , & cm -> ref_frame_map [ ref_index ] , cm -> new_fb_idx ) ;\n if ( old_idx >= 0 && cm -> frame_bufs [ old_idx ] . ref_count == 0 ) cm -> release_fb_cb ( cm -> cb_priv , & cm -> frame_bufs [ old_idx ] . raw_frame_buffer ) ;\n }\n ++ ref_index ;\n }\n cm -> frame_to_show = get_frame_new_buffer ( cm ) ;\n cm -> frame_bufs [ cm -> new_fb_idx ] . ref_count -- ;\n for ( ref_index = 0 ;\n ref_index < 3 ;\n ref_index ++ ) cm -> frame_refs [ ref_index ] . idx = INT_MAX ;\n }"}
{"idx": 12870, "target": 0, "func": "void set_property ( st_command * command , enum_prop prop , my_bool val ) {\n char * p = command -> first_argument ;\n if ( p && ! strcmp ( p , \"ONCE\" ) ) {\n command -> last_argument = p + 4 ;\n set_once_property ( prop , val ) ;\n return ;\n }\n property & pr = prop_list [ prop ] ;\n * pr . var = val ;\n pr . set = 0 ;\n var_set_int ( pr . env_name , ( val != pr . reverse ) ) ;\n }"}
{"idx": 12871, "target": 0, "func": "static void ustr_resize ( struct UString * s , int32_t len , UErrorCode * status ) {\n if ( U_FAILURE ( * status ) ) return ;\n s -> fChars = ( UChar * ) uprv_realloc ( s -> fChars , sizeof ( UChar ) * ( len + 1 ) ) ;\n if ( s -> fChars == 0 ) {\n * status = U_MEMORY_ALLOCATION_ERROR ;\n s -> fLength = s -> fCapacity = 0 ;\n return ;\n }\n s -> fCapacity = len ;\n }"}
{"idx": 12872, "target": 0, "func": "static int mdb_waitfixup ( Operation * op , ww_ctx * ww , MDB_cursor * mci , MDB_cursor * mcd , IdScopes * isc ) {\n MDB_val key ;\n int rc = 0 ;\n ww -> flag = 0 ;\n mdb_txn_renew ( ww -> txn ) ;\n mdb_cursor_renew ( ww -> txn , mci ) ;\n mdb_cursor_renew ( ww -> txn , mcd ) ;\n key . mv_size = sizeof ( ID ) ;\n if ( ww -> mcd ) {\n MDB_val data ;\n if ( isc -> numrdns ) mdb_dn2id_wrestore ( op , isc ) ;\n key . mv_data = & ww -> key ;\n data = ww -> data ;\n rc = mdb_cursor_get ( mcd , & key , & data , MDB_GET_BOTH ) ;\n if ( rc == MDB_NOTFOUND ) {\n data = ww -> data ;\n rc = mdb_cursor_get ( mcd , & key , & data , MDB_GET_BOTH_RANGE ) ;\n if ( rc == MDB_SUCCESS ) mdb_cursor_get ( mcd , & key , & data , MDB_PREV_DUP ) ;\n else rc = LDAP_BUSY ;\n }\n else if ( rc ) {\n rc = LDAP_OTHER ;\n }\n op -> o_tmpfree ( ww -> data . mv_data , op -> o_tmpmemctx ) ;\n ww -> data . mv_data = NULL ;\n }\n else if ( isc -> scopes [ 0 ] . mid > 1 ) {\n int i ;\n for ( i = 1 ;\n i < isc -> scopes [ 0 ] . mid ;\n i ++ ) {\n if ( ! isc -> scopes [ i ] . mval . mv_data ) continue ;\n key . mv_data = & isc -> scopes [ i ] . mid ;\n mdb_cursor_get ( mcd , & key , & isc -> scopes [ i ] . mval , MDB_SET ) ;\n }\n }\n return rc ;\n }"}
{"idx": 12873, "target": 0, "func": "int xmlrpc_register_method ( const char * name , XMLRPCMethodFunc func ) {\n XMLRPCCmd * xml ;\n return_val_if_fail ( name != NULL , XMLRPC_ERR_PARAMS ) ;\n return_val_if_fail ( func != NULL , XMLRPC_ERR_PARAMS ) ;\n xml = createXMLCommand ( name , func ) ;\n return addXMLCommand ( xml ) ;\n }"}
{"idx": 12874, "target": 0, "func": "static int selinux_is_sblabel_mnt ( struct super_block * sb ) {\n struct superblock_security_struct * sbsec = sb -> s_security ;\n return sbsec -> behavior == SECURITY_FS_USE_XATTR || sbsec -> behavior == SECURITY_FS_USE_TRANS || sbsec -> behavior == SECURITY_FS_USE_TASK || sbsec -> behavior == SECURITY_FS_USE_NATIVE || ! strcmp ( sb -> s_type -> name , \"sysfs\" ) || ! strcmp ( sb -> s_type -> name , \"pstore\" ) || ! strcmp ( sb -> s_type -> name , \"debugfs\" ) || ! strcmp ( sb -> s_type -> name , \"rootfs\" ) ;\n }"}
{"idx": 12875, "target": 0, "func": "void vp9_iht16x16_256_add_c ( const tran_low_t * input , uint8_t * dest , int stride , int tx_type ) {\n int i , j ;\n tran_low_t out [ 16 * 16 ] ;\n tran_low_t * outptr = out ;\n tran_low_t temp_in [ 16 ] , temp_out [ 16 ] ;\n const transform_2d ht = IHT_16 [ tx_type ] ;\n for ( i = 0 ;\n i < 16 ;\n ++ i ) {\n ht . rows ( input , outptr ) ;\n input += 16 ;\n outptr += 16 ;\n }\n for ( i = 0 ;\n i < 16 ;\n ++ i ) {\n for ( j = 0 ;\n j < 16 ;\n ++ j ) temp_in [ j ] = out [ j * 16 + i ] ;\n ht . cols ( temp_in , temp_out ) ;\n for ( j = 0 ;\n j < 16 ;\n ++ j ) dest [ j * stride + i ] = clip_pixel ( ROUND_POWER_OF_TWO ( temp_out [ j ] , 6 ) + dest [ j * stride + i ] ) ;\n }\n }"}
{"idx": 12876, "target": 0, "func": "static int mxpeg_check_dimensions ( MXpegDecodeContext * s , MJpegDecodeContext * jpg , AVFrame * reference_ptr ) {\n if ( ( jpg -> width + 0x0F ) >> 4 != s -> mb_width || ( jpg -> height + 0x0F ) >> 4 != s -> mb_height ) {\n av_log ( jpg -> avctx , AV_LOG_ERROR , \"Picture dimensions stored in SOF and MXM mismatch\\n\" ) ;\n return AVERROR ( EINVAL ) ;\n }\n if ( reference_ptr -> data [ 0 ] ) {\n int i ;\n for ( i = 0 ;\n i < MAX_COMPONENTS ;\n ++ i ) {\n if ( ( ! reference_ptr -> data [ i ] ^ ! jpg -> picture_ptr -> data [ i ] ) || reference_ptr -> linesize [ i ] != jpg -> picture_ptr -> linesize [ i ] ) {\n av_log ( jpg -> avctx , AV_LOG_ERROR , \"Dimensions of current and reference picture mismatch\\n\" ) ;\n return AVERROR ( EINVAL ) ;\n }\n }\n }\n return 0 ;\n }"}
{"idx": 12877, "target": 0, "func": "TEST_F ( HistoryQuickProviderTest , EncodingMatch ) {\n std : : vector < std : : string > expected_urls ;\n expected_urls . push_back ( \"http://spaces.com/path%20with%20spaces/foo.html\" ) ;\n RunTest ( ASCIIToUTF16 ( \"path with spaces\" ) , false , expected_urls , false , ASCIIToUTF16 ( \"spaces.com/path with spaces/foo.html\" ) , base : : string16 ( ) ) ;\n }"}
{"idx": 12878, "target": 0, "func": "static int * get_userlist ( struct proclistlist * pll , int * num_users ) {\n int * ret = calloc ( sizeof ( int ) , pll -> length ) ;\n int lokke ;\n * num_users = 0 ;\n for ( lokke = 0 ;\n lokke < pll -> length ;\n lokke ++ ) {\n glibtop_proc_uid uid ;\n glibtop_get_proc_uid ( & uid , pll -> proclist [ lokke ] . pid ) ;\n if ( ! is_a_member ( uid . uid , ret , * num_users ) ) {\n ret [ * num_users ] = uid . uid ;\n ( * num_users ) ++ ;\n }\n }\n return ret ;\n }"}
{"idx": 12879, "target": 0, "func": "static void pdf_run_B ( fz_context * ctx , pdf_processor * proc ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_show_path ( ctx , pr , 0 , 1 , 1 , 0 ) ;\n }"}
{"idx": 12880, "target": 0, "func": "static diam_avp_t * build_proto_avp ( const avp_type_t * type _U_ , guint32 code , diam_vnd_t * vendor , const char * name _U_ , const value_string * vs _U_ , void * data ) {\n diam_avp_t * a = ( diam_avp_t * ) g_malloc0 ( sizeof ( diam_avp_t ) ) ;\n proto_avp_t * t = ( proto_avp_t * ) g_malloc0 ( sizeof ( proto_avp_t ) ) ;\n gint * ettp = & ( a -> ett ) ;\n a -> code = code ;\n a -> vendor = vendor ;\n a -> dissector_v16 = proto_avp ;\n a -> dissector_rfc = proto_avp ;\n a -> ett = - 1 ;\n a -> hf_value = - 2 ;\n a -> type_data = t ;\n t -> name = ( char * ) data ;\n t -> handle = NULL ;\n t -> reassemble_mode = REASEMBLE_NEVER ;\n g_ptr_array_add ( build_dict . ett , ettp ) ;\n return a ;\n }"}
{"idx": 12881, "target": 0, "func": "static void set_file_unconfirmed ( NautilusFile * file , gboolean unconfirmed ) {\n NautilusDirectory * directory ;\n g_assert ( NAUTILUS_IS_FILE ( file ) ) ;\n g_assert ( unconfirmed == FALSE || unconfirmed == TRUE ) ;\n if ( file -> details -> unconfirmed == unconfirmed ) {\n return ;\n }\n file -> details -> unconfirmed = unconfirmed ;\n directory = file -> details -> directory ;\n if ( unconfirmed ) {\n directory -> details -> confirmed_file_count -- ;\n }\n else {\n directory -> details -> confirmed_file_count ++ ;\n }\n }"}
{"idx": 12882, "target": 1, "func": "static int sdp_parse_fmtp_config_h264 ( AVFormatContext * s , AVStream * stream , PayloadContext * h264_data , const char * attr , const char * value ) {\n AVCodecParameters * par = stream -> codecpar ;\n if ( ! strcmp ( attr , \"packetization-mode\" ) ) {\n av_log ( s , AV_LOG_DEBUG , \"RTP Packetization Mode: %d\\n\" , atoi ( value ) ) ;\n h264_data -> packetization_mode = atoi ( value ) ;\n if ( h264_data -> packetization_mode > 1 ) av_log ( s , AV_LOG_ERROR , \"Interleaved RTP mode is not supported yet.\\n\" ) ;\n }\n else if ( ! strcmp ( attr , \"profile-level-id\" ) ) {\n if ( strlen ( value ) == 6 ) parse_profile_level_id ( s , h264_data , value ) ;\n }\n else if ( ! strcmp ( attr , \"sprop-parameter-sets\" ) ) {\n int ret ;\n if ( value [ strlen ( value ) - 1 ] == ',' ) {\n av_log ( s , AV_LOG_WARNING , \"Missing PPS in sprop-parameter-sets, ignoring\\n\" ) ;\n return 0 ;\n }\n par -> extradata_size = 0 ;\n av_freep ( & par -> extradata ) ;\n ret = ff_h264_parse_sprop_parameter_sets ( s , & par -> extradata , & par -> extradata_size , value ) ;\n av_log ( s , AV_LOG_DEBUG , \"Extradata set to %p (size: %d)\\n\" , par -> extradata , par -> extradata_size ) ;\n return ret ;\n }\n return 0 ;\n }"}
{"idx": 12883, "target": 0, "func": "static void update_buffer_level ( VP9_COMP * cpi , int encoded_frame_size ) {\n const VP9_COMMON * const cm = & cpi -> common ;\n RATE_CONTROL * const rc = & cpi -> rc ;\n if ( ! cm -> show_frame ) {\n rc -> bits_off_target -= encoded_frame_size ;\n }\n else {\n rc -> bits_off_target += rc -> avg_frame_bandwidth - encoded_frame_size ;\n }\n rc -> bits_off_target = MIN ( rc -> bits_off_target , rc -> maximum_buffer_size ) ;\n rc -> buffer_level = rc -> bits_off_target ;\n if ( cpi -> use_svc && cpi -> oxcf . rc_mode == VPX_CBR ) {\n update_layer_buffer_level ( & cpi -> svc , encoded_frame_size ) ;\n }\n }"}
{"idx": 12884, "target": 1, "func": "static int64_t rd_pick_intra_sby_mode ( VP9_COMP * cpi , MACROBLOCK * x , int * rate , int * rate_tokenonly , int64_t * distortion , int * skippable , BLOCK_SIZE bsize , int64_t tx_cache [ TX_MODES ] , int64_t best_rd ) {\n PREDICTION_MODE mode ;\n PREDICTION_MODE mode_selected = DC_PRED ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n MODE_INFO * const mic = xd -> mi [ 0 ] ;\n int this_rate , this_rate_tokenonly , s ;\n int64_t this_distortion , this_rd ;\n TX_SIZE best_tx = TX_4X4 ;\n int i ;\n int * bmode_costs = cpi -> mbmode_cost ;\n if ( cpi -> sf . tx_size_search_method == USE_FULL_RD ) for ( i = 0 ;\n i < TX_MODES ;\n i ++ ) tx_cache [ i ] = INT64_MAX ;\n for ( mode = DC_PRED ;\n mode <= TM_PRED ;\n mode ++ ) {\n int64_t local_tx_cache [ TX_MODES ] ;\n MODE_INFO * above_mi = xd -> mi [ - xd -> mi_stride ] ;\n MODE_INFO * left_mi = xd -> left_available ? xd -> mi [ - 1 ] : NULL ;\n if ( cpi -> common . frame_type == KEY_FRAME ) {\n const PREDICTION_MODE A = vp9_above_block_mode ( mic , above_mi , 0 ) ;\n const PREDICTION_MODE L = vp9_left_block_mode ( mic , left_mi , 0 ) ;\n bmode_costs = cpi -> y_mode_costs [ A ] [ L ] ;\n }\n mic -> mbmi . mode = mode ;\n super_block_yrd ( cpi , x , & this_rate_tokenonly , & this_distortion , & s , NULL , bsize , local_tx_cache , best_rd ) ;\n if ( this_rate_tokenonly == INT_MAX ) continue ;\n this_rate = this_rate_tokenonly + bmode_costs [ mode ] ;\n this_rd = RDCOST ( x -> rdmult , x -> rddiv , this_rate , this_distortion ) ;\n if ( this_rd < best_rd ) {\n mode_selected = mode ;\n best_rd = this_rd ;\n best_tx = mic -> mbmi . tx_size ;\n * rate = this_rate ;\n * rate_tokenonly = this_rate_tokenonly ;\n * distortion = this_distortion ;\n * skippable = s ;\n }\n if ( cpi -> sf . tx_size_search_method == USE_FULL_RD && this_rd < INT64_MAX ) {\n for ( i = 0 ;\n i < TX_MODES && local_tx_cache [ i ] < INT64_MAX ;\n i ++ ) {\n const int64_t adj_rd = this_rd + local_tx_cache [ i ] - local_tx_cache [ cpi -> common . tx_mode ] ;\n if ( adj_rd < tx_cache [ i ] ) {\n tx_cache [ i ] = adj_rd ;\n }\n }\n }\n }\n mic -> mbmi . mode = mode_selected ;\n mic -> mbmi . tx_size = best_tx ;\n return best_rd ;\n }"}
{"idx": 12885, "target": 0, "func": "static void fsl_common_init ( OpenPICState * opp ) {\n int i ;\n int virq = OPENPIC_MAX_SRC ;\n opp -> vid = VID_REVISION_1_2 ;\n opp -> vir = VIR_GENERIC ;\n opp -> vector_mask = 0xFFFF ;\n opp -> tfrr_reset = 0 ;\n opp -> ivpr_reset = IVPR_MASK_MASK ;\n opp -> idr_reset = 1 << 0 ;\n opp -> max_irq = OPENPIC_MAX_IRQ ;\n opp -> irq_ipi0 = virq ;\n virq += OPENPIC_MAX_IPI ;\n opp -> irq_tim0 = virq ;\n virq += OPENPIC_MAX_TMR ;\n assert ( virq <= OPENPIC_MAX_IRQ ) ;\n opp -> irq_msi = 224 ;\n msi_supported = true ;\n for ( i = 0 ;\n i < opp -> fsl -> max_ext ;\n i ++ ) {\n opp -> src [ i ] . level = false ;\n }\n for ( i = 16 ;\n i < OPENPIC_MAX_SRC ;\n i ++ ) {\n opp -> src [ i ] . type = IRQ_TYPE_FSLINT ;\n opp -> src [ i ] . level = true ;\n }\n for ( i = OPENPIC_MAX_SRC ;\n i < virq ;\n i ++ ) {\n opp -> src [ i ] . type = IRQ_TYPE_FSLSPECIAL ;\n opp -> src [ i ] . level = false ;\n }\n }"}
{"idx": 12886, "target": 0, "func": "static void short_usage ( FILE * f ) {\n short_usage_sub ( f ) ;\n fprintf ( f , \"For more options, use %s --help\\n\" , my_progname_short ) ;\n }"}
{"idx": 12887, "target": 0, "func": "peer_node * create_peer_node ( int hmode , address_node * addr , attr_val_fifo * options ) {\n peer_node * my_node ;\n attr_val * option ;\n int freenode ;\n int errflag = 0 ;\n my_node = emalloc_zero ( sizeof ( * my_node ) ) ;\n my_node -> peerversion = NTP_VERSION ;\n my_node -> host_mode = hmode ;\n my_node -> addr = addr ;\n while ( options != NULL ) {\n UNLINK_FIFO ( option , * options , link ) ;\n if ( NULL == option ) {\n free ( options ) ;\n break ;\n }\n freenode = 1 ;\n switch ( option -> attr ) {\n case T_Flag : APPEND_G_FIFO ( my_node -> peerflags , option ) ;\n freenode = 0 ;\n break ;\n case T_Minpoll : if ( option -> value . i < NTP_MINPOLL || option -> value . i > UCHAR_MAX ) {\n msyslog ( LOG_INFO , \"minpoll: provided value (%d) is out of range [%d-%d])\" , option -> value . i , NTP_MINPOLL , UCHAR_MAX ) ;\n my_node -> minpoll = NTP_MINPOLL ;\n }\n else {\n my_node -> minpoll = ( u_char ) option -> value . u ;\n }\n break ;\n case T_Maxpoll : if ( option -> value . i < 0 || option -> value . i > NTP_MAXPOLL ) {\n msyslog ( LOG_INFO , \"maxpoll: provided value (%d) is out of range [0-%d])\" , option -> value . i , NTP_MAXPOLL ) ;\n my_node -> maxpoll = NTP_MAXPOLL ;\n }\n else {\n my_node -> maxpoll = ( u_char ) option -> value . u ;\n }\n break ;\n case T_Ttl : if ( option -> value . u >= MAX_TTL ) {\n msyslog ( LOG_ERR , \"ttl: invalid argument\" ) ;\n errflag = 1 ;\n }\n else {\n my_node -> ttl = ( u_char ) option -> value . u ;\n }\n break ;\n case T_Mode : if ( option -> value . u >= UCHAR_MAX ) {\n msyslog ( LOG_ERR , \"mode: invalid argument\" ) ;\n errflag = 1 ;\n }\n else {\n my_node -> ttl = ( u_char ) option -> value . u ;\n }\n break ;\n case T_Key : if ( option -> value . u >= KEYID_T_MAX ) {\n msyslog ( LOG_ERR , \"key: invalid argument\" ) ;\n errflag = 1 ;\n }\n else {\n my_node -> peerkey = ( keyid_t ) option -> value . u ;\n }\n break ;\n case T_Version : if ( option -> value . u >= UCHAR_MAX ) {\n msyslog ( LOG_ERR , \"version: invalid argument\" ) ;\n errflag = 1 ;\n }\n else {\n my_node -> peerversion = ( u_char ) option -> value . u ;\n }\n break ;\n case T_Ident : my_node -> group = option -> value . s ;\n break ;\n default : msyslog ( LOG_ERR , \"Unknown peer/server option token %s\" , token_name ( option -> attr ) ) ;\n errflag = 1 ;\n }\n if ( freenode ) free ( option ) ;\n }\n if ( errflag ) {\n free ( my_node ) ;\n my_node = NULL ;\n }\n return my_node ;\n }"}
{"idx": 12888, "target": 0, "func": "static int dissect_h245_Ind_aal1 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_Ind_aal1 , Ind_aal1_sequence ) ;\n return offset ;\n }"}
{"idx": 12889, "target": 0, "func": "int virLogSetDefaultPriority ( virLogPriority priority ) {\n if ( ( priority < VIR_LOG_DEBUG ) || ( priority > VIR_LOG_ERROR ) ) {\n virReportError ( VIR_ERR_INVALID_ARG , _ ( \"Failed to set logging priority, argument '%u' is \" \"invalid\" ) , priority ) ;\n return - 1 ;\n }\n if ( virLogInitialize ( ) < 0 ) return - 1 ;\n virLogDefaultPriority = priority ;\n return 0 ;\n }"}
{"idx": 12890, "target": 0, "func": "static int virtio_pci_load_queue ( void * opaque , int n , QEMUFile * f ) {\n VirtIOPCIProxy * proxy = opaque ;\n uint16_t vector ;\n if ( msix_present ( & proxy -> pci_dev ) ) {\n qemu_get_be16s ( f , & vector ) ;\n }\n else {\n vector = VIRTIO_NO_VECTOR ;\n }\n virtio_queue_set_vector ( proxy -> vdev , n , vector ) ;\n if ( vector != VIRTIO_NO_VECTOR ) {\n return msix_vector_use ( & proxy -> pci_dev , vector ) ;\n }\n return 0 ;\n }"}
{"idx": 12891, "target": 0, "func": "void vp8cx_frame_init_quantizer ( VP8_COMP * cpi ) {\n cpi -> mb . zbin_mode_boost = 0 ;\n vp8cx_mb_init_quantizer ( cpi , & cpi -> mb , 0 ) ;\n }"}
{"idx": 12892, "target": 0, "func": "static int dissect_h225_SetupAcknowledge_UUIE ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 432 \"./asn1/h225/h225.cnf\" h225_packet_info * h225_pi ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_SetupAcknowledge_UUIE , SetupAcknowledge_UUIE_sequence ) ;\n # line 436 \"./asn1/h225/h225.cnf\" h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> cs_type = H225_SETUP_ACK ;\n g_snprintf ( h225_pi -> frame_label , 50 , \"%s\" , val_to_str ( h225_pi -> cs_type , T_h323_message_body_vals , \"<unknown>\" ) ) ;\n }\n return offset ;\n }"}
{"idx": 12893, "target": 0, "func": "TEST_F ( ExtensionServiceSyncTest , GetSyncData ) {\n InitializeEmptyExtensionService ( ) ;\n InstallCRX ( data_dir ( ) . AppendASCII ( \"good.crx\" ) , INSTALL_NEW ) ;\n const Extension * extension = service ( ) -> GetInstalledExtension ( good_crx ) ;\n ASSERT_TRUE ( extension ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , syncer : : SyncDataList ( ) , base : : MakeUnique < syncer : : FakeSyncChangeProcessor > ( ) , base : : MakeUnique < syncer : : SyncErrorFactoryMock > ( ) ) ;\n syncer : : SyncDataList list = extension_sync_service ( ) -> GetAllSyncData ( syncer : : EXTENSIONS ) ;\n ASSERT_EQ ( list . size ( ) , 1U ) ;\n std : : unique_ptr < ExtensionSyncData > data = ExtensionSyncData : : CreateFromSyncData ( list [ 0 ] ) ;\n ASSERT_TRUE ( data . get ( ) ) ;\n EXPECT_EQ ( extension -> id ( ) , data -> id ( ) ) ;\n EXPECT_FALSE ( data -> uninstalled ( ) ) ;\n EXPECT_EQ ( service ( ) -> IsExtensionEnabled ( good_crx ) , data -> enabled ( ) ) ;\n EXPECT_EQ ( extensions : : util : : IsIncognitoEnabled ( good_crx , profile ( ) ) , data -> incognito_enabled ( ) ) ;\n EXPECT_EQ ( ExtensionSyncData : : BOOLEAN_UNSET , data -> all_urls_enabled ( ) ) ;\n EXPECT_EQ ( data -> version ( ) , * extension -> version ( ) ) ;\n EXPECT_EQ ( extensions : : ManifestURL : : GetUpdateURL ( extension ) , data -> update_url ( ) ) ;\n EXPECT_EQ ( extension -> name ( ) , data -> name ( ) ) ;\n }"}
{"idx": 12894, "target": 0, "func": "static int aes_gcm_ctrl ( EVP_CIPHER_CTX * c , int type , int arg , void * ptr ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , c ) ;\n switch ( type ) {\n case EVP_CTRL_INIT : gctx -> key_set = 0 ;\n gctx -> iv_set = 0 ;\n gctx -> ivlen = EVP_CIPHER_CTX_iv_length ( c ) ;\n gctx -> iv = EVP_CIPHER_CTX_iv_noconst ( c ) ;\n gctx -> taglen = - 1 ;\n gctx -> iv_gen = 0 ;\n gctx -> tls_aad_len = - 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_IVLEN : if ( arg <= 0 ) return 0 ;\n if ( ( arg > EVP_MAX_IV_LENGTH ) && ( arg > gctx -> ivlen ) ) {\n if ( gctx -> iv != EVP_CIPHER_CTX_iv_noconst ( c ) ) OPENSSL_free ( gctx -> iv ) ;\n gctx -> iv = OPENSSL_malloc ( arg ) ;\n if ( gctx -> iv == NULL ) return 0 ;\n }\n gctx -> ivlen = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_TAG : if ( arg <= 0 || arg > 16 || EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n gctx -> taglen = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_GET_TAG : if ( arg <= 0 || arg > 16 || ! EVP_CIPHER_CTX_encrypting ( c ) || gctx -> taglen < 0 ) return 0 ;\n memcpy ( ptr , EVP_CIPHER_CTX_buf_noconst ( c ) , arg ) ;\n return 1 ;\n case EVP_CTRL_GCM_SET_IV_FIXED : if ( arg == - 1 ) {\n memcpy ( gctx -> iv , ptr , gctx -> ivlen ) ;\n gctx -> iv_gen = 1 ;\n return 1 ;\n }\n if ( ( arg < 4 ) || ( gctx -> ivlen - arg ) < 8 ) return 0 ;\n if ( arg ) memcpy ( gctx -> iv , ptr , arg ) ;\n if ( EVP_CIPHER_CTX_encrypting ( c ) && RAND_bytes ( gctx -> iv + arg , gctx -> ivlen - arg ) <= 0 ) return 0 ;\n gctx -> iv_gen = 1 ;\n return 1 ;\n case EVP_CTRL_GCM_IV_GEN : if ( gctx -> iv_gen == 0 || gctx -> key_set == 0 ) return 0 ;\n CRYPTO_gcm128_setiv ( & gctx -> gcm , gctx -> iv , gctx -> ivlen ) ;\n if ( arg <= 0 || arg > gctx -> ivlen ) arg = gctx -> ivlen ;\n memcpy ( ptr , gctx -> iv + gctx -> ivlen - arg , arg ) ;\n ctr64_inc ( gctx -> iv + gctx -> ivlen - 8 ) ;\n gctx -> iv_set = 1 ;\n return 1 ;\n case EVP_CTRL_GCM_SET_IV_INV : if ( gctx -> iv_gen == 0 || gctx -> key_set == 0 || EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( gctx -> iv + gctx -> ivlen - arg , ptr , arg ) ;\n CRYPTO_gcm128_setiv ( & gctx -> gcm , gctx -> iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_TLS1_AAD : if ( arg != EVP_AEAD_TLS1_AAD_LEN ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n gctx -> tls_aad_len = arg ;\n {\n unsigned int len = EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] << 8 | EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] ;\n if ( len < EVP_GCM_TLS_EXPLICIT_IV_LEN ) return 0 ;\n len -= EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n if ( ! EVP_CIPHER_CTX_encrypting ( c ) ) {\n if ( len < EVP_GCM_TLS_TAG_LEN ) return 0 ;\n len -= EVP_GCM_TLS_TAG_LEN ;\n }\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] = len >> 8 ;\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] = len & 0xff ;\n }\n return EVP_GCM_TLS_TAG_LEN ;\n case EVP_CTRL_COPY : {\n EVP_CIPHER_CTX * out = ptr ;\n EVP_AES_GCM_CTX * gctx_out = EVP_C_DATA ( EVP_AES_GCM_CTX , out ) ;\n if ( gctx -> gcm . key ) {\n if ( gctx -> gcm . key != & gctx -> ks ) return 0 ;\n gctx_out -> gcm . key = & gctx_out -> ks ;\n }\n if ( gctx -> iv == EVP_CIPHER_CTX_iv_noconst ( c ) ) gctx_out -> iv = EVP_CIPHER_CTX_iv_noconst ( out ) ;\n else {\n gctx_out -> iv = OPENSSL_malloc ( gctx -> ivlen ) ;\n if ( gctx_out -> iv == NULL ) return 0 ;\n memcpy ( gctx_out -> iv , gctx -> iv , gctx -> ivlen ) ;\n }\n return 1 ;\n }\n default : return - 1 ;\n }\n }"}
{"idx": 12895, "target": 0, "func": "TEST_F ( TemplateURLTest , URLRefTermToWide ) {\n struct ToWideCase {\n const char * encoded_search_term ;\n const base : : string16 expected_decoded_term ;\n }\n to_wide_cases [ ] = {\n {\n \"hello+world\" , ASCIIToUTF16 ( \"hello world\" ) }\n , {\n \"%a7A%A6%6e+to+you\" , base : : WideToUTF16 ( L\"\\x4f60\\x597d to you\" ) }\n , {\n \"%e4%bd%a05%e5%a5%bd+to+you\" , base : : WideToUTF16 ( L\"\\x4f60\\x35\\x597d to you\" ) }\n , {\n \"%91%01+abcd\" , base : : WideToUTF16 ( L\"%91%01 abcd\" ) }\n , {\n \"C%2B%2B\" , ASCIIToUTF16 ( \"C++\" ) }\n , {\n \"C%252B\" , ASCIIToUTF16 ( \"C%2B\" ) }\n , }\n ;\n TemplateURLData data ;\n data . SetURL ( \"http://foo?q={\nsearchTerms}\n\" ) ;\n data . input_encodings . push_back ( \"big-5\" ) ;\n TemplateURL url ( data ) ;\n EXPECT_TRUE ( url . url_ref ( ) . IsValid ( search_terms_data_ ) ) ;\n ASSERT_TRUE ( url . url_ref ( ) . SupportsReplacement ( search_terms_data_ ) ) ;\n for ( size_t i = 0 ;\n i < arraysize ( to_wide_cases ) ;\n i ++ ) {\n EXPECT_EQ ( to_wide_cases [ i ] . expected_decoded_term , url . url_ref ( ) . SearchTermToString16 ( to_wide_cases [ i ] . encoded_search_term ) ) ;\n }\n }"}
{"idx": 12896, "target": 0, "func": "static u16 transaction_id_pick ( void ) {\n for ( ;\n ;\n ) {\n u16 trans_id = trans_id_function ( ) ;\n if ( trans_id == 0xffff ) continue ;\n if ( request_find_from_trans_id ( trans_id ) == NULL ) return trans_id ;\n }\n }"}
{"idx": 12897, "target": 0, "func": "static gboolean should_confirm_trash ( void ) {\n GSettings * prefs ;\n gboolean confirm_trash ;\n prefs = g_settings_new ( \"org.gnome.nautilus.preferences\" ) ;\n confirm_trash = g_settings_get_boolean ( prefs , NAUTILUS_PREFERENCES_CONFIRM_TRASH ) ;\n g_object_unref ( prefs ) ;\n return confirm_trash ;\n }"}
{"idx": 12898, "target": 0, "func": "static enum nss_status getanswer_r ( const querybuf * answer , int anslen , const char * qname , int qtype , struct hostent * result , char * buffer , size_t buflen , int * errnop , int * h_errnop , int map , int32_t * ttlp , char * * canonp ) {\n struct host_data {\n char * aliases [ MAX_NR_ALIASES ] ;\n unsigned char host_addr [ 16 ] ;\n char * h_addr_ptrs [ 0 ] ;\n }\n * host_data ;\n int linebuflen ;\n const HEADER * hp ;\n const u_char * end_of_message , * cp ;\n int n , ancount , qdcount ;\n int haveanswer , had_error ;\n char * bp , * * ap , * * hap ;\n char tbuf [ MAXDNAME ] ;\n const char * tname ;\n int ( * name_ok ) ( const char * ) ;\n u_char packtmp [ NS_MAXCDNAME ] ;\n int have_to_map = 0 ;\n uintptr_t pad = - ( uintptr_t ) buffer % __alignof__ ( struct host_data ) ;\n buffer += pad ;\n buflen = buflen > pad ? buflen - pad : 0 ;\n if ( __glibc_unlikely ( buflen < sizeof ( struct host_data ) ) ) {\n too_small : * errnop = ERANGE ;\n * h_errnop = NETDB_INTERNAL ;\n return NSS_STATUS_TRYAGAIN ;\n }\n host_data = ( struct host_data * ) buffer ;\n linebuflen = buflen - sizeof ( struct host_data ) ;\n if ( buflen - sizeof ( struct host_data ) != linebuflen ) linebuflen = INT_MAX ;\n tname = qname ;\n result -> h_name = NULL ;\n end_of_message = answer -> buf + anslen ;\n switch ( qtype ) {\n case T_A : case T_AAAA : name_ok = res_hnok ;\n break ;\n case T_PTR : name_ok = res_dnok ;\n break ;\n default : * errnop = ENOENT ;\n return NSS_STATUS_UNAVAIL ;\n }\n hp = & answer -> hdr ;\n ancount = ntohs ( hp -> ancount ) ;\n qdcount = ntohs ( hp -> qdcount ) ;\n cp = answer -> buf + HFIXEDSZ ;\n if ( __builtin_expect ( qdcount , 1 ) != 1 ) {\n * h_errnop = NO_RECOVERY ;\n return NSS_STATUS_UNAVAIL ;\n }\n if ( sizeof ( struct host_data ) + ( ancount + 1 ) * sizeof ( char * ) >= buflen ) goto too_small ;\n bp = ( char * ) & host_data -> h_addr_ptrs [ ancount + 1 ] ;\n linebuflen -= ( ancount + 1 ) * sizeof ( char * ) ;\n n = __ns_name_unpack ( answer -> buf , end_of_message , cp , packtmp , sizeof packtmp ) ;\n if ( n != - 1 && __ns_name_ntop ( packtmp , bp , linebuflen ) == - 1 ) {\n if ( __builtin_expect ( errno , 0 ) == EMSGSIZE ) goto too_small ;\n n = - 1 ;\n }\n if ( n > 0 && bp [ 0 ] == '.' ) bp [ 0 ] = '\\0' ;\n if ( __builtin_expect ( n < 0 || ( ( * name_ok ) ( bp ) == 0 && ( errno = EBADMSG ) ) , 0 ) ) {\n * errnop = errno ;\n * h_errnop = NO_RECOVERY ;\n return NSS_STATUS_UNAVAIL ;\n }\n cp += n + QFIXEDSZ ;\n if ( qtype == T_A || qtype == T_AAAA ) {\n n = strlen ( bp ) + 1 ;\n if ( n >= MAXHOSTNAMELEN ) {\n * h_errnop = NO_RECOVERY ;\n * errnop = ENOENT ;\n return NSS_STATUS_TRYAGAIN ;\n }\n result -> h_name = bp ;\n bp += n ;\n linebuflen -= n ;\n if ( linebuflen < 0 ) goto too_small ;\n qname = result -> h_name ;\n }\n ap = host_data -> aliases ;\n * ap = NULL ;\n result -> h_aliases = host_data -> aliases ;\n hap = host_data -> h_addr_ptrs ;\n * hap = NULL ;\n result -> h_addr_list = host_data -> h_addr_ptrs ;\n haveanswer = 0 ;\n had_error = 0 ;\n while ( ancount -- > 0 && cp < end_of_message && had_error == 0 ) {\n int type , class ;\n n = __ns_name_unpack ( answer -> buf , end_of_message , cp , packtmp , sizeof packtmp ) ;\n if ( n != - 1 && __ns_name_ntop ( packtmp , bp , linebuflen ) == - 1 ) {\n if ( __builtin_expect ( errno , 0 ) == EMSGSIZE ) goto too_small ;\n n = - 1 ;\n }\n if ( __glibc_unlikely ( n < 0 || ( * name_ok ) ( bp ) == 0 ) ) {\n ++ had_error ;\n continue ;\n }\n cp += n ;\n if ( __glibc_unlikely ( cp + 10 > end_of_message ) ) {\n ++ had_error ;\n continue ;\n }\n type = __ns_get16 ( cp ) ;\n cp += INT16SZ ;\n class = __ns_get16 ( cp ) ;\n cp += INT16SZ ;\n int32_t ttl = __ns_get32 ( cp ) ;\n cp += INT32SZ ;\n n = __ns_get16 ( cp ) ;\n cp += INT16SZ ;\n if ( __glibc_unlikely ( class != C_IN ) ) {\n cp += n ;\n continue ;\n }\n if ( ( qtype == T_A || qtype == T_AAAA ) && type == T_CNAME ) {\n if ( ttlp != NULL && ttl < * ttlp ) * ttlp = ttl ;\n if ( ap >= & host_data -> aliases [ MAX_NR_ALIASES - 1 ] ) continue ;\n n = dn_expand ( answer -> buf , end_of_message , cp , tbuf , sizeof tbuf ) ;\n if ( __glibc_unlikely ( n < 0 || ( * name_ok ) ( tbuf ) == 0 ) ) {\n ++ had_error ;\n continue ;\n }\n cp += n ;\n * ap ++ = bp ;\n n = strlen ( bp ) + 1 ;\n if ( __builtin_expect ( n , 0 ) >= MAXHOSTNAMELEN ) {\n ++ had_error ;\n continue ;\n }\n bp += n ;\n linebuflen -= n ;\n n = strlen ( tbuf ) + 1 ;\n if ( __glibc_unlikely ( n > linebuflen ) ) goto too_small ;\n if ( __builtin_expect ( n , 0 ) >= MAXHOSTNAMELEN ) {\n ++ had_error ;\n continue ;\n }\n result -> h_name = bp ;\n bp = __mempcpy ( bp , tbuf , n ) ;\n linebuflen -= n ;\n continue ;\n }\n if ( qtype == T_PTR && type == T_CNAME ) {\n n = dn_expand ( answer -> buf , end_of_message , cp , tbuf , sizeof tbuf ) ;\n if ( __glibc_unlikely ( n < 0 || res_dnok ( tbuf ) == 0 ) ) {\n ++ had_error ;\n continue ;\n }\n cp += n ;\n n = strlen ( tbuf ) + 1 ;\n if ( __glibc_unlikely ( n > linebuflen ) ) goto too_small ;\n if ( __builtin_expect ( n , 0 ) >= MAXHOSTNAMELEN ) {\n ++ had_error ;\n continue ;\n }\n tname = bp ;\n bp = __mempcpy ( bp , tbuf , n ) ;\n linebuflen -= n ;\n continue ;\n }\n if ( type == T_A && qtype == T_AAAA && map ) have_to_map = 1 ;\n else if ( __glibc_unlikely ( type != qtype ) ) {\n if ( ( _res . options & RES_USE_DNSSEC ) == 0 ) syslog ( LOG_NOTICE | LOG_AUTH , \"gethostby*.getanswer: asked for \\\"%s %s %s\\\", \" \"got type \\\"%s\\\"\" , qname , p_class ( C_IN ) , p_type ( qtype ) , p_type ( type ) ) ;\n cp += n ;\n continue ;\n }\n switch ( type ) {\n case T_PTR : if ( __glibc_unlikely ( strcasecmp ( tname , bp ) != 0 ) ) {\n syslog ( LOG_NOTICE | LOG_AUTH , AskedForGot , qname , bp ) ;\n cp += n ;\n continue ;\n }\n n = __ns_name_unpack ( answer -> buf , end_of_message , cp , packtmp , sizeof packtmp ) ;\n if ( n != - 1 && __ns_name_ntop ( packtmp , bp , linebuflen ) == - 1 ) {\n if ( __builtin_expect ( errno , 0 ) == EMSGSIZE ) goto too_small ;\n n = - 1 ;\n }\n if ( __glibc_unlikely ( n < 0 || res_hnok ( bp ) == 0 ) ) {\n ++ had_error ;\n break ;\n }\n result -> h_name = bp ;\n if ( have_to_map ) {\n n = strlen ( bp ) + 1 ;\n if ( __glibc_unlikely ( n >= MAXHOSTNAMELEN ) ) {\n ++ had_error ;\n break ;\n }\n bp += n ;\n linebuflen -= n ;\n if ( map_v4v6_hostent ( result , & bp , & linebuflen ) ) goto too_small ;\n }\n * h_errnop = NETDB_SUCCESS ;\n return NSS_STATUS_SUCCESS ;\n case T_A : case T_AAAA : if ( __builtin_expect ( strcasecmp ( result -> h_name , bp ) , 0 ) != 0 ) {\n syslog ( LOG_NOTICE | LOG_AUTH , AskedForGot , result -> h_name , bp ) ;\n cp += n ;\n continue ;\n }\n if ( n != result -> h_length ) {\n cp += n ;\n continue ;\n }\n if ( ! haveanswer ) {\n int nn ;\n if ( ttlp != NULL && ttl < * ttlp ) * ttlp = ttl ;\n if ( canonp != NULL ) * canonp = bp ;\n result -> h_name = bp ;\n nn = strlen ( bp ) + 1 ;\n bp += nn ;\n linebuflen -= nn ;\n }\n linebuflen -= sizeof ( align ) - ( ( u_long ) bp % sizeof ( align ) ) ;\n bp += sizeof ( align ) - ( ( u_long ) bp % sizeof ( align ) ) ;\n if ( __glibc_unlikely ( n > linebuflen ) ) goto too_small ;\n bp = __mempcpy ( * hap ++ = bp , cp , n ) ;\n cp += n ;\n linebuflen -= n ;\n break ;\n default : abort ( ) ;\n }\n if ( had_error == 0 ) ++ haveanswer ;\n }\n if ( haveanswer > 0 ) {\n * ap = NULL ;\n * hap = NULL ;\n # if defined RESOLVSORT if ( _res . nsort && haveanswer > 1 && qtype == T_A ) addrsort ( host_data -> h_addr_ptrs , haveanswer ) ;\n # endif if ( result -> h_name == NULL ) {\n n = strlen ( qname ) + 1 ;\n if ( n > linebuflen ) goto too_small ;\n if ( n >= MAXHOSTNAMELEN ) goto no_recovery ;\n result -> h_name = bp ;\n bp = __mempcpy ( bp , qname , n ) ;\n linebuflen -= n ;\n }\n if ( have_to_map ) if ( map_v4v6_hostent ( result , & bp , & linebuflen ) ) goto too_small ;\n * h_errnop = NETDB_SUCCESS ;\n return NSS_STATUS_SUCCESS ;\n }\n no_recovery : * h_errnop = NO_RECOVERY ;\n * errnop = ENOENT ;\n return ( ( qtype == T_A || qtype == T_AAAA ) && ap != host_data -> aliases ? NSS_STATUS_NOTFOUND : NSS_STATUS_TRYAGAIN ) ;\n }"}
{"idx": 12899, "target": 0, "func": "static gboolean is_trusted_desktop_file ( GFile * file , GCancellable * cancellable ) {\n char * basename ;\n gboolean res ;\n GFileInfo * info ;\n if ( ! g_file_is_native ( file ) ) {\n return FALSE ;\n }\n basename = g_file_get_basename ( file ) ;\n if ( ! g_str_has_suffix ( basename , \".desktop\" ) ) {\n g_free ( basename ) ;\n return FALSE ;\n }\n g_free ( basename ) ;\n info = g_file_query_info ( file , G_FILE_ATTRIBUTE_STANDARD_TYPE \",\" G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE , G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS , cancellable , NULL ) ;\n if ( info == NULL ) {\n return FALSE ;\n }\n res = FALSE ;\n if ( g_file_info_get_file_type ( info ) == G_FILE_TYPE_REGULAR && ! g_file_info_get_attribute_boolean ( info , G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE ) && nautilus_is_in_system_dir ( file ) ) {\n res = TRUE ;\n }\n g_object_unref ( info ) ;\n return res ;\n }"}
{"idx": 12900, "target": 0, "func": "void vp9_rc_init_minq_luts ( ) {\n init_minq_luts ( kf_low_motion_minq_8 , kf_high_motion_minq_8 , arfgf_low_motion_minq_8 , arfgf_high_motion_minq_8 , inter_minq_8 , rtc_minq_8 , VPX_BITS_8 ) ;\n # if CONFIG_VP9_HIGHBITDEPTH init_minq_luts ( kf_low_motion_minq_10 , kf_high_motion_minq_10 , arfgf_low_motion_minq_10 , arfgf_high_motion_minq_10 , inter_minq_10 , rtc_minq_10 , VPX_BITS_10 ) ;\n init_minq_luts ( kf_low_motion_minq_12 , kf_high_motion_minq_12 , arfgf_low_motion_minq_12 , arfgf_high_motion_minq_12 , inter_minq_12 , rtc_minq_12 , VPX_BITS_12 ) ;\n # endif }"}
{"idx": 12901, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( BluetoothChooserBrowserTest , InvokeDialog_UnavailableBubble ) {\n RunDialog ( ) ;\n }"}
{"idx": 12902, "target": 1, "func": "static struct evhttp * http_setup ( short * pport , struct event_base * base ) {\n int i ;\n struct evhttp * myhttp ;\n short port = - 1 ;\n myhttp = evhttp_new ( base ) ;\n for ( i = 0 ;\n i < 50 ;\n ++ i ) {\n if ( evhttp_bind_socket ( myhttp , \"127.0.0.1\" , 8080 + i ) != - 1 ) {\n port = 8080 + i ;\n break ;\n }\n }\n if ( port == - 1 ) event_errx ( 1 , \"Could not start web server\" ) ;\n evhttp_set_cb ( myhttp , \"/test\" , http_basic_cb , NULL ) ;\n evhttp_set_cb ( myhttp , \"/chunked\" , http_chunked_cb , NULL ) ;\n evhttp_set_cb ( myhttp , \"/postit\" , http_post_cb , NULL ) ;\n evhttp_set_cb ( myhttp , \"/largedelay\" , http_large_delay_cb , NULL ) ;\n evhttp_set_cb ( myhttp , \"/\" , http_dispatcher_cb , NULL ) ;\n * pport = port ;\n return ( myhttp ) ;\n }"}
{"idx": 12903, "target": 0, "func": "static CURLcode glob_fixed ( URLGlob * glob , char * fixed , size_t len ) {\n URLPattern * pat = & glob -> pattern [ glob -> size ] ;\n pat -> type = UPTSet ;\n pat -> content . Set . size = 1 ;\n pat -> content . Set . ptr_s = 0 ;\n pat -> globindex = - 1 ;\n pat -> content . Set . elements = malloc ( sizeof ( char * ) ) ;\n if ( ! pat -> content . Set . elements ) return GLOBERROR ( \"out of memory\" , 0 , CURLE_OUT_OF_MEMORY ) ;\n pat -> content . Set . elements [ 0 ] = malloc ( len + 1 ) ;\n if ( ! pat -> content . Set . elements [ 0 ] ) return GLOBERROR ( \"out of memory\" , 0 , CURLE_OUT_OF_MEMORY ) ;\n memcpy ( pat -> content . Set . elements [ 0 ] , fixed , len ) ;\n pat -> content . Set . elements [ 0 ] [ len ] = 0 ;\n return CURLE_OK ;\n }"}
{"idx": 12904, "target": 1, "func": "void vp9_fdct32x32_rd_c ( const int16_t * input , int16_t * out , int stride ) {\n int i , j ;\n int output [ 32 * 32 ] ;\n for ( i = 0 ;\n i < 32 ;\n ++ i ) {\n int temp_in [ 32 ] , temp_out [ 32 ] ;\n for ( j = 0 ;\n j < 32 ;\n ++ j ) temp_in [ j ] = input [ j * stride + i ] * 4 ;\n fdct32 ( temp_in , temp_out , 0 ) ;\n for ( j = 0 ;\n j < 32 ;\n ++ j ) output [ j * 32 + i ] = ( temp_out [ j ] + 1 + ( temp_out [ j ] > 0 ) ) >> 2 ;\n }\n for ( i = 0 ;\n i < 32 ;\n ++ i ) {\n int temp_in [ 32 ] , temp_out [ 32 ] ;\n for ( j = 0 ;\n j < 32 ;\n ++ j ) temp_in [ j ] = output [ j + i * 32 ] ;\n fdct32 ( temp_in , temp_out , 1 ) ;\n for ( j = 0 ;\n j < 32 ;\n ++ j ) out [ j + i * 32 ] = temp_out [ j ] ;\n }\n }"}
{"idx": 12905, "target": 0, "func": "void vp9_init3smotion_compensation ( search_site_config * cfg , int stride ) {\n int len , ss_count = 1 ;\n cfg -> ss [ 0 ] . mv . col = cfg -> ss [ 0 ] . mv . row = 0 ;\n cfg -> ss [ 0 ] . offset = 0 ;\n for ( len = MAX_FIRST_STEP ;\n len > 0 ;\n len /= 2 ) {\n const MV ss_mvs [ 8 ] = {\n {\n - len , 0 }\n , {\n len , 0 }\n , {\n 0 , - len }\n , {\n 0 , len }\n , {\n - len , - len }\n , {\n - len , len }\n , {\n len , - len }\n , {\n len , len }\n }\n ;\n int i ;\n for ( i = 0 ;\n i < 8 ;\n ++ i ) {\n search_site * const ss = & cfg -> ss [ ss_count ++ ] ;\n ss -> mv = ss_mvs [ i ] ;\n ss -> offset = ss -> mv . row * stride + ss -> mv . col ;\n }\n }\n cfg -> ss_count = ss_count ;\n cfg -> searches_per_step = 8 ;\n }"}
{"idx": 12906, "target": 0, "func": "static inline void rv34_process_block ( RV34DecContext * r , uint8_t * pdst , int stride , int fc , int sc , int q_dc , int q_ac ) {\n MpegEncContext * s = & r -> s ;\n int16_t * ptr = s -> block [ 0 ] ;\n int has_ac = rv34_decode_block ( ptr , & s -> gb , r -> cur_vlcs , fc , sc , q_dc , q_ac , q_ac ) ;\n if ( has_ac ) {\n r -> rdsp . rv34_idct_add ( pdst , stride , ptr ) ;\n }\n else {\n r -> rdsp . rv34_idct_dc_add ( pdst , stride , ptr [ 0 ] ) ;\n ptr [ 0 ] = 0 ;\n }\n }"}
{"idx": 12907, "target": 0, "func": "struct evdns_server_port * evdns_add_server_port ( int socket , int is_tcp , evdns_request_callback_fn_type cb , void * user_data ) {\n struct evdns_server_port * port ;\n if ( ! ( port = malloc ( sizeof ( struct evdns_server_port ) ) ) ) return NULL ;\n memset ( port , 0 , sizeof ( struct evdns_server_port ) ) ;\n assert ( ! is_tcp ) ;\n port -> socket = socket ;\n port -> refcnt = 1 ;\n port -> choked = 0 ;\n port -> closing = 0 ;\n port -> user_callback = cb ;\n port -> user_data = user_data ;\n port -> pending_replies = NULL ;\n event_set ( & port -> event , port -> socket , EV_READ | EV_PERSIST , server_port_ready_callback , port ) ;\n event_add ( & port -> event , NULL ) ;\n return port ;\n }"}
{"idx": 12908, "target": 0, "func": "static void sapi_uwsgi_log_message ( char * message TSRMLS_DC ) {\n # endif uwsgi_log ( \"%s\\n\" , message ) ;\n }"}
{"idx": 12909, "target": 1, "func": "void run_on_cpu ( CPUState * cpu , void ( * func ) ( void * data ) , void * data ) {\n struct qemu_work_item wi ;\n if ( qemu_cpu_is_self ( cpu ) ) {\n func ( data ) ;\n return ;\n }\n wi . func = func ;\n wi . data = data ;\n if ( cpu -> queued_work_first == NULL ) {\n cpu -> queued_work_first = & wi ;\n }\n else {\n cpu -> queued_work_last -> next = & wi ;\n }\n cpu -> queued_work_last = & wi ;\n wi . next = NULL ;\n wi . done = false ;\n qemu_cpu_kick ( cpu ) ;\n while ( ! wi . done ) {\n CPUArchState * self_env = cpu_single_env ;\n qemu_cond_wait ( & qemu_work_cond , & qemu_global_mutex ) ;\n cpu_single_env = self_env ;\n }\n }"}
{"idx": 12910, "target": 0, "func": "void proto_item_set_end ( proto_item * pi , tvbuff_t * tvb , gint end ) {\n field_info * fi ;\n TRY_TO_FAKE_THIS_REPR_VOID ( pi ) ;\n fi = PITEM_FINFO ( pi ) ;\n if ( fi == NULL ) return ;\n end += tvb_raw_offset ( tvb ) ;\n DISSECTOR_ASSERT ( end >= fi -> start ) ;\n fi -> length = end - fi -> start ;\n }"}
{"idx": 12911, "target": 0, "func": "static void gs_gstate_update_device ( gs_gstate * pgs , gx_device * dev ) {\n gx_set_cmap_procs ( pgs , dev ) ;\n gx_unset_both_dev_colors ( pgs ) ;\n }"}
{"idx": 12912, "target": 0, "func": "static void usage ( void ) {\n const char * p ;\n p = lafe_getprogname ( ) ;\n fprintf ( stderr , \"Brief Usage:\\n\" ) ;\n fprintf ( stderr , \" List: %s -it < archive\\n\" , p ) ;\n fprintf ( stderr , \" Extract: %s -i < archive\\n\" , p ) ;\n fprintf ( stderr , \" Create: %s -o < filenames > archive\\n\" , p ) ;\n fprintf ( stderr , \" Help: %s --help\\n\" , p ) ;\n exit ( 1 ) ;\n }"}
{"idx": 12913, "target": 0, "func": "static int header_is_transfer_encoding ( ngx_str_t * key ) {\n return key -> len == sizeof ( \"transfer-encoding\" ) - 1 && ngx_tolower ( key -> data [ 0 ] ) == ( u_char ) 't' && ngx_tolower ( key -> data [ sizeof ( \"transfer-encoding\" ) - 2 ] ) == ( u_char ) 'g' && ngx_strncasecmp ( key -> data + 1 , ( u_char * ) \"ransfer-encodin\" , sizeof ( \"ransfer-encodin\" ) - 1 ) == 0 ;\n }"}
{"idx": 12914, "target": 0, "func": "int ff_h264_decode_mb_cabac ( H264Context * h ) {\n int mb_xy ;\n int mb_type , partition_count , cbp = 0 ;\n int dct8x8_allowed = h -> pps . transform_8x8_mode ;\n int decode_chroma = h -> sps . chroma_format_idc == 1 || h -> sps . chroma_format_idc == 2 ;\n const int pixel_shift = h -> pixel_shift ;\n mb_xy = h -> mb_xy = h -> mb_x + h -> mb_y * h -> mb_stride ;\n tprintf ( h -> avctx , \"pic:%d mb:%d/%d\\n\" , h -> frame_num , h -> mb_x , h -> mb_y ) ;\n if ( h -> slice_type_nos != AV_PICTURE_TYPE_I ) {\n int skip ;\n if ( FRAME_MBAFF && ( h -> mb_y & 1 ) == 1 && h -> prev_mb_skipped ) skip = h -> next_mb_skipped ;\n else skip = decode_cabac_mb_skip ( h , h -> mb_x , h -> mb_y ) ;\n if ( skip ) {\n if ( FRAME_MBAFF && ( h -> mb_y & 1 ) == 0 ) {\n h -> cur_pic . mb_type [ mb_xy ] = MB_TYPE_SKIP ;\n h -> next_mb_skipped = decode_cabac_mb_skip ( h , h -> mb_x , h -> mb_y + 1 ) ;\n if ( ! h -> next_mb_skipped ) h -> mb_mbaff = h -> mb_field_decoding_flag = decode_cabac_field_decoding_flag ( h ) ;\n }\n decode_mb_skip ( h ) ;\n h -> cbp_table [ mb_xy ] = 0 ;\n h -> chroma_pred_mode_table [ mb_xy ] = 0 ;\n h -> last_qscale_diff = 0 ;\n return 0 ;\n }\n }\n if ( FRAME_MBAFF ) {\n if ( ( h -> mb_y & 1 ) == 0 ) h -> mb_mbaff = h -> mb_field_decoding_flag = decode_cabac_field_decoding_flag ( h ) ;\n }\n h -> prev_mb_skipped = 0 ;\n fill_decode_neighbors ( h , - ( MB_FIELD ) ) ;\n if ( h -> slice_type_nos == AV_PICTURE_TYPE_B ) {\n int ctx = 0 ;\n assert ( h -> slice_type_nos == AV_PICTURE_TYPE_B ) ;\n if ( ! IS_DIRECT ( h -> left_type [ LTOP ] - 1 ) ) ctx ++ ;\n if ( ! IS_DIRECT ( h -> top_type - 1 ) ) ctx ++ ;\n if ( ! get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 27 + ctx ] ) ) {\n mb_type = 0 ;\n }\n else if ( ! get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 27 + 3 ] ) ) {\n mb_type = 1 + get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 27 + 5 ] ) ;\n }\n else {\n int bits ;\n bits = get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 27 + 4 ] ) << 3 ;\n bits += get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 27 + 5 ] ) << 2 ;\n bits += get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 27 + 5 ] ) << 1 ;\n bits += get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 27 + 5 ] ) ;\n if ( bits < 8 ) {\n mb_type = bits + 3 ;\n }\n else if ( bits == 13 ) {\n mb_type = decode_cabac_intra_mb_type ( h , 32 , 0 ) ;\n goto decode_intra_mb ;\n }\n else if ( bits == 14 ) {\n mb_type = 11 ;\n }\n else if ( bits == 15 ) {\n mb_type = 22 ;\n }\n else {\n bits = ( bits << 1 ) + get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 27 + 5 ] ) ;\n mb_type = bits - 4 ;\n }\n }\n partition_count = b_mb_type_info [ mb_type ] . partition_count ;\n mb_type = b_mb_type_info [ mb_type ] . type ;\n }\n else if ( h -> slice_type_nos == AV_PICTURE_TYPE_P ) {\n if ( get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 14 ] ) == 0 ) {\n if ( get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 15 ] ) == 0 ) {\n mb_type = 3 * get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 16 ] ) ;\n }\n else {\n mb_type = 2 - get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 17 ] ) ;\n }\n partition_count = p_mb_type_info [ mb_type ] . partition_count ;\n mb_type = p_mb_type_info [ mb_type ] . type ;\n }\n else {\n mb_type = decode_cabac_intra_mb_type ( h , 17 , 0 ) ;\n goto decode_intra_mb ;\n }\n }\n else {\n mb_type = decode_cabac_intra_mb_type ( h , 3 , 1 ) ;\n if ( h -> slice_type == AV_PICTURE_TYPE_SI && mb_type ) mb_type -- ;\n assert ( h -> slice_type_nos == AV_PICTURE_TYPE_I ) ;\n decode_intra_mb : partition_count = 0 ;\n cbp = i_mb_type_info [ mb_type ] . cbp ;\n h -> intra16x16_pred_mode = i_mb_type_info [ mb_type ] . pred_mode ;\n mb_type = i_mb_type_info [ mb_type ] . type ;\n }\n if ( MB_FIELD ) mb_type |= MB_TYPE_INTERLACED ;\n h -> slice_table [ mb_xy ] = h -> slice_num ;\n if ( IS_INTRA_PCM ( mb_type ) ) {\n const int mb_size = ff_h264_mb_sizes [ h -> sps . chroma_format_idc ] * h -> sps . bit_depth_luma >> 3 ;\n const uint8_t * ptr ;\n ptr = h -> cabac . bytestream ;\n if ( h -> cabac . low & 0x1 ) ptr -- ;\n if ( CABAC_BITS == 16 ) {\n if ( h -> cabac . low & 0x1FF ) ptr -- ;\n }\n if ( ( int ) ( h -> cabac . bytestream_end - ptr ) < mb_size ) return - 1 ;\n h -> intra_pcm_ptr = ptr ;\n ptr += mb_size ;\n ff_init_cabac_decoder ( & h -> cabac , ptr , h -> cabac . bytestream_end - ptr ) ;\n h -> cbp_table [ mb_xy ] = 0xf7ef ;\n h -> chroma_pred_mode_table [ mb_xy ] = 0 ;\n h -> cur_pic . qscale_table [ mb_xy ] = 0 ;\n memset ( h -> non_zero_count [ mb_xy ] , 16 , 48 ) ;\n h -> cur_pic . mb_type [ mb_xy ] = mb_type ;\n h -> last_qscale_diff = 0 ;\n return 0 ;\n }\n fill_decode_caches ( h , mb_type ) ;\n if ( IS_INTRA ( mb_type ) ) {\n int i , pred_mode ;\n if ( IS_INTRA4x4 ( mb_type ) ) {\n if ( dct8x8_allowed && get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 399 + h -> neighbor_transform_size ] ) ) {\n mb_type |= MB_TYPE_8x8DCT ;\n for ( i = 0 ;\n i < 16 ;\n i += 4 ) {\n int pred = pred_intra_mode ( h , i ) ;\n int mode = decode_cabac_mb_intra4x4_pred_mode ( h , pred ) ;\n fill_rectangle ( & h -> intra4x4_pred_mode_cache [ scan8 [ i ] ] , 2 , 2 , 8 , mode , 1 ) ;\n }\n }\n else {\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n int pred = pred_intra_mode ( h , i ) ;\n h -> intra4x4_pred_mode_cache [ scan8 [ i ] ] = decode_cabac_mb_intra4x4_pred_mode ( h , pred ) ;\n av_dlog ( h -> avctx , \"i4x4 pred=%d mode=%d\\n\" , pred , h -> intra4x4_pred_mode_cache [ scan8 [ i ] ] ) ;\n }\n }\n write_back_intra_pred_mode ( h ) ;\n if ( ff_h264_check_intra4x4_pred_mode ( h ) < 0 ) return - 1 ;\n }\n else {\n h -> intra16x16_pred_mode = ff_h264_check_intra_pred_mode ( h , h -> intra16x16_pred_mode , 0 ) ;\n if ( h -> intra16x16_pred_mode < 0 ) return - 1 ;\n }\n if ( decode_chroma ) {\n h -> chroma_pred_mode_table [ mb_xy ] = pred_mode = decode_cabac_mb_chroma_pre_mode ( h ) ;\n pred_mode = ff_h264_check_intra_pred_mode ( h , pred_mode , 1 ) ;\n if ( pred_mode < 0 ) return - 1 ;\n h -> chroma_pred_mode = pred_mode ;\n }\n else {\n h -> chroma_pred_mode = DC_128_PRED8x8 ;\n }\n }\n else if ( partition_count == 4 ) {\n int i , j , sub_partition_count [ 4 ] , list , ref [ 2 ] [ 4 ] ;\n if ( h -> slice_type_nos == AV_PICTURE_TYPE_B ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n h -> sub_mb_type [ i ] = decode_cabac_b_mb_sub_type ( h ) ;\n sub_partition_count [ i ] = b_sub_mb_type_info [ h -> sub_mb_type [ i ] ] . partition_count ;\n h -> sub_mb_type [ i ] = b_sub_mb_type_info [ h -> sub_mb_type [ i ] ] . type ;\n }\n if ( IS_DIRECT ( h -> sub_mb_type [ 0 ] | h -> sub_mb_type [ 1 ] | h -> sub_mb_type [ 2 ] | h -> sub_mb_type [ 3 ] ) ) {\n ff_h264_pred_direct_motion ( h , & mb_type ) ;\n h -> ref_cache [ 0 ] [ scan8 [ 4 ] ] = h -> ref_cache [ 1 ] [ scan8 [ 4 ] ] = h -> ref_cache [ 0 ] [ scan8 [ 12 ] ] = h -> ref_cache [ 1 ] [ scan8 [ 12 ] ] = PART_NOT_AVAILABLE ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) fill_rectangle ( & h -> direct_cache [ scan8 [ 4 * i ] ] , 2 , 2 , 8 , ( h -> sub_mb_type [ i ] >> 1 ) & 0xFF , 1 ) ;\n }\n }\n else {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n h -> sub_mb_type [ i ] = decode_cabac_p_mb_sub_type ( h ) ;\n sub_partition_count [ i ] = p_sub_mb_type_info [ h -> sub_mb_type [ i ] ] . partition_count ;\n h -> sub_mb_type [ i ] = p_sub_mb_type_info [ h -> sub_mb_type [ i ] ] . type ;\n }\n }\n for ( list = 0 ;\n list < h -> list_count ;\n list ++ ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n if ( IS_DIRECT ( h -> sub_mb_type [ i ] ) ) continue ;\n if ( IS_DIR ( h -> sub_mb_type [ i ] , 0 , list ) ) {\n int rc = h -> ref_count [ list ] << MB_MBAFF ;\n if ( rc > 1 ) {\n ref [ list ] [ i ] = decode_cabac_mb_ref ( h , list , 4 * i ) ;\n if ( ref [ list ] [ i ] >= ( unsigned ) rc ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"Reference %d >= %d\\n\" , ref [ list ] [ i ] , rc ) ;\n return - 1 ;\n }\n }\n else ref [ list ] [ i ] = 0 ;\n }\n else {\n ref [ list ] [ i ] = - 1 ;\n }\n h -> ref_cache [ list ] [ scan8 [ 4 * i ] + 1 ] = h -> ref_cache [ list ] [ scan8 [ 4 * i ] + 8 ] = h -> ref_cache [ list ] [ scan8 [ 4 * i ] + 9 ] = ref [ list ] [ i ] ;\n }\n }\n if ( dct8x8_allowed ) dct8x8_allowed = get_dct8x8_allowed ( h ) ;\n for ( list = 0 ;\n list < h -> list_count ;\n list ++ ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n h -> ref_cache [ list ] [ scan8 [ 4 * i ] ] = h -> ref_cache [ list ] [ scan8 [ 4 * i ] + 1 ] ;\n if ( IS_DIRECT ( h -> sub_mb_type [ i ] ) ) {\n fill_rectangle ( h -> mvd_cache [ list ] [ scan8 [ 4 * i ] ] , 2 , 2 , 8 , 0 , 2 ) ;\n continue ;\n }\n if ( IS_DIR ( h -> sub_mb_type [ i ] , 0 , list ) && ! IS_DIRECT ( h -> sub_mb_type [ i ] ) ) {\n const int sub_mb_type = h -> sub_mb_type [ i ] ;\n const int block_width = ( sub_mb_type & ( MB_TYPE_16x16 | MB_TYPE_16x8 ) ) ? 2 : 1 ;\n for ( j = 0 ;\n j < sub_partition_count [ i ] ;\n j ++ ) {\n int mpx , mpy ;\n int mx , my ;\n const int index = 4 * i + block_width * j ;\n int16_t ( * mv_cache ) [ 2 ] = & h -> mv_cache [ list ] [ scan8 [ index ] ] ;\n uint8_t ( * mvd_cache ) [ 2 ] = & h -> mvd_cache [ list ] [ scan8 [ index ] ] ;\n pred_motion ( h , index , block_width , list , h -> ref_cache [ list ] [ scan8 [ index ] ] , & mx , & my ) ;\n DECODE_CABAC_MB_MVD ( h , list , index ) tprintf ( h -> avctx , \"final mv:%d %d\\n\" , mx , my ) ;\n if ( IS_SUB_8X8 ( sub_mb_type ) ) {\n mv_cache [ 1 ] [ 0 ] = mv_cache [ 8 ] [ 0 ] = mv_cache [ 9 ] [ 0 ] = mx ;\n mv_cache [ 1 ] [ 1 ] = mv_cache [ 8 ] [ 1 ] = mv_cache [ 9 ] [ 1 ] = my ;\n mvd_cache [ 1 ] [ 0 ] = mvd_cache [ 8 ] [ 0 ] = mvd_cache [ 9 ] [ 0 ] = mpx ;\n mvd_cache [ 1 ] [ 1 ] = mvd_cache [ 8 ] [ 1 ] = mvd_cache [ 9 ] [ 1 ] = mpy ;\n }\n else if ( IS_SUB_8X4 ( sub_mb_type ) ) {\n mv_cache [ 1 ] [ 0 ] = mx ;\n mv_cache [ 1 ] [ 1 ] = my ;\n mvd_cache [ 1 ] [ 0 ] = mpx ;\n mvd_cache [ 1 ] [ 1 ] = mpy ;\n }\n else if ( IS_SUB_4X8 ( sub_mb_type ) ) {\n mv_cache [ 8 ] [ 0 ] = mx ;\n mv_cache [ 8 ] [ 1 ] = my ;\n mvd_cache [ 8 ] [ 0 ] = mpx ;\n mvd_cache [ 8 ] [ 1 ] = mpy ;\n }\n mv_cache [ 0 ] [ 0 ] = mx ;\n mv_cache [ 0 ] [ 1 ] = my ;\n mvd_cache [ 0 ] [ 0 ] = mpx ;\n mvd_cache [ 0 ] [ 1 ] = mpy ;\n }\n }\n else {\n fill_rectangle ( h -> mv_cache [ list ] [ scan8 [ 4 * i ] ] , 2 , 2 , 8 , 0 , 4 ) ;\n fill_rectangle ( h -> mvd_cache [ list ] [ scan8 [ 4 * i ] ] , 2 , 2 , 8 , 0 , 2 ) ;\n }\n }\n }\n }\n else if ( IS_DIRECT ( mb_type ) ) {\n ff_h264_pred_direct_motion ( h , & mb_type ) ;\n fill_rectangle ( h -> mvd_cache [ 0 ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , 0 , 2 ) ;\n fill_rectangle ( h -> mvd_cache [ 1 ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , 0 , 2 ) ;\n dct8x8_allowed &= h -> sps . direct_8x8_inference_flag ;\n }\n else {\n int list , i ;\n if ( IS_16X16 ( mb_type ) ) {\n for ( list = 0 ;\n list < h -> list_count ;\n list ++ ) {\n if ( IS_DIR ( mb_type , 0 , list ) ) {\n int ref , rc = h -> ref_count [ list ] << MB_MBAFF ;\n if ( rc > 1 ) {\n ref = decode_cabac_mb_ref ( h , list , 0 ) ;\n if ( ref >= ( unsigned ) rc ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"Reference %d >= %d\\n\" , ref , rc ) ;\n return - 1 ;\n }\n }\n else ref = 0 ;\n fill_rectangle ( & h -> ref_cache [ list ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , ref , 1 ) ;\n }\n }\n for ( list = 0 ;\n list < h -> list_count ;\n list ++ ) {\n if ( IS_DIR ( mb_type , 0 , list ) ) {\n int mx , my , mpx , mpy ;\n pred_motion ( h , 0 , 4 , list , h -> ref_cache [ list ] [ scan8 [ 0 ] ] , & mx , & my ) ;\n DECODE_CABAC_MB_MVD ( h , list , 0 ) tprintf ( h -> avctx , \"final mv:%d %d\\n\" , mx , my ) ;\n fill_rectangle ( h -> mvd_cache [ list ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , pack8to16 ( mpx , mpy ) , 2 ) ;\n fill_rectangle ( h -> mv_cache [ list ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , pack16to32 ( mx , my ) , 4 ) ;\n }\n }\n }\n else if ( IS_16X8 ( mb_type ) ) {\n for ( list = 0 ;\n list < h -> list_count ;\n list ++ ) {\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n if ( IS_DIR ( mb_type , i , list ) ) {\n int ref , rc = h -> ref_count [ list ] << MB_MBAFF ;\n if ( rc > 1 ) {\n ref = decode_cabac_mb_ref ( h , list , 8 * i ) ;\n if ( ref >= ( unsigned ) rc ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"Reference %d >= %d\\n\" , ref , rc ) ;\n return - 1 ;\n }\n }\n else ref = 0 ;\n fill_rectangle ( & h -> ref_cache [ list ] [ scan8 [ 0 ] + 16 * i ] , 4 , 2 , 8 , ref , 1 ) ;\n }\n else fill_rectangle ( & h -> ref_cache [ list ] [ scan8 [ 0 ] + 16 * i ] , 4 , 2 , 8 , ( LIST_NOT_USED & 0xFF ) , 1 ) ;\n }\n }\n for ( list = 0 ;\n list < h -> list_count ;\n list ++ ) {\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n if ( IS_DIR ( mb_type , i , list ) ) {\n int mx , my , mpx , mpy ;\n pred_16x8_motion ( h , 8 * i , list , h -> ref_cache [ list ] [ scan8 [ 0 ] + 16 * i ] , & mx , & my ) ;\n DECODE_CABAC_MB_MVD ( h , list , 8 * i ) tprintf ( h -> avctx , \"final mv:%d %d\\n\" , mx , my ) ;\n fill_rectangle ( h -> mvd_cache [ list ] [ scan8 [ 0 ] + 16 * i ] , 4 , 2 , 8 , pack8to16 ( mpx , mpy ) , 2 ) ;\n fill_rectangle ( h -> mv_cache [ list ] [ scan8 [ 0 ] + 16 * i ] , 4 , 2 , 8 , pack16to32 ( mx , my ) , 4 ) ;\n }\n else {\n fill_rectangle ( h -> mvd_cache [ list ] [ scan8 [ 0 ] + 16 * i ] , 4 , 2 , 8 , 0 , 2 ) ;\n fill_rectangle ( h -> mv_cache [ list ] [ scan8 [ 0 ] + 16 * i ] , 4 , 2 , 8 , 0 , 4 ) ;\n }\n }\n }\n }\n else {\n assert ( IS_8X16 ( mb_type ) ) ;\n for ( list = 0 ;\n list < h -> list_count ;\n list ++ ) {\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n if ( IS_DIR ( mb_type , i , list ) ) {\n int ref , rc = h -> ref_count [ list ] << MB_MBAFF ;\n if ( rc > 1 ) {\n ref = decode_cabac_mb_ref ( h , list , 4 * i ) ;\n if ( ref >= ( unsigned ) rc ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"Reference %d >= %d\\n\" , ref , rc ) ;\n return - 1 ;\n }\n }\n else ref = 0 ;\n fill_rectangle ( & h -> ref_cache [ list ] [ scan8 [ 0 ] + 2 * i ] , 2 , 4 , 8 , ref , 1 ) ;\n }\n else fill_rectangle ( & h -> ref_cache [ list ] [ scan8 [ 0 ] + 2 * i ] , 2 , 4 , 8 , ( LIST_NOT_USED & 0xFF ) , 1 ) ;\n }\n }\n for ( list = 0 ;\n list < h -> list_count ;\n list ++ ) {\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n if ( IS_DIR ( mb_type , i , list ) ) {\n int mx , my , mpx , mpy ;\n pred_8x16_motion ( h , i * 4 , list , h -> ref_cache [ list ] [ scan8 [ 0 ] + 2 * i ] , & mx , & my ) ;\n DECODE_CABAC_MB_MVD ( h , list , 4 * i ) tprintf ( h -> avctx , \"final mv:%d %d\\n\" , mx , my ) ;\n fill_rectangle ( h -> mvd_cache [ list ] [ scan8 [ 0 ] + 2 * i ] , 2 , 4 , 8 , pack8to16 ( mpx , mpy ) , 2 ) ;\n fill_rectangle ( h -> mv_cache [ list ] [ scan8 [ 0 ] + 2 * i ] , 2 , 4 , 8 , pack16to32 ( mx , my ) , 4 ) ;\n }\n else {\n fill_rectangle ( h -> mvd_cache [ list ] [ scan8 [ 0 ] + 2 * i ] , 2 , 4 , 8 , 0 , 2 ) ;\n fill_rectangle ( h -> mv_cache [ list ] [ scan8 [ 0 ] + 2 * i ] , 2 , 4 , 8 , 0 , 4 ) ;\n }\n }\n }\n }\n }\n if ( IS_INTER ( mb_type ) ) {\n h -> chroma_pred_mode_table [ mb_xy ] = 0 ;\n write_back_motion ( h , mb_type ) ;\n }\n if ( ! IS_INTRA16x16 ( mb_type ) ) {\n cbp = decode_cabac_mb_cbp_luma ( h ) ;\n if ( decode_chroma ) cbp |= decode_cabac_mb_cbp_chroma ( h ) << 4 ;\n }\n h -> cbp_table [ mb_xy ] = h -> cbp = cbp ;\n if ( dct8x8_allowed && ( cbp & 15 ) && ! IS_INTRA ( mb_type ) ) {\n mb_type |= MB_TYPE_8x8DCT * get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 399 + h -> neighbor_transform_size ] ) ;\n }\n if ( CHROMA444 && IS_8x8DCT ( mb_type ) ) {\n int i ;\n uint8_t * nnz_cache = h -> non_zero_count_cache ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n if ( h -> left_type [ LEFT ( i ) ] && ! IS_8x8DCT ( h -> left_type [ LEFT ( i ) ] ) ) {\n nnz_cache [ 3 + 8 * 1 + 2 * 8 * i ] = nnz_cache [ 3 + 8 * 2 + 2 * 8 * i ] = nnz_cache [ 3 + 8 * 6 + 2 * 8 * i ] = nnz_cache [ 3 + 8 * 7 + 2 * 8 * i ] = nnz_cache [ 3 + 8 * 11 + 2 * 8 * i ] = nnz_cache [ 3 + 8 * 12 + 2 * 8 * i ] = IS_INTRA ( mb_type ) ? 64 : 0 ;\n }\n }\n if ( h -> top_type && ! IS_8x8DCT ( h -> top_type ) ) {\n uint32_t top_empty = CABAC && ! IS_INTRA ( mb_type ) ? 0 : 0x40404040 ;\n AV_WN32A ( & nnz_cache [ 4 + 8 * 0 ] , top_empty ) ;\n AV_WN32A ( & nnz_cache [ 4 + 8 * 5 ] , top_empty ) ;\n AV_WN32A ( & nnz_cache [ 4 + 8 * 10 ] , top_empty ) ;\n }\n }\n h -> cur_pic . mb_type [ mb_xy ] = mb_type ;\n if ( cbp || IS_INTRA16x16 ( mb_type ) ) {\n const uint8_t * scan , * scan8x8 ;\n const uint32_t * qmul ;\n if ( IS_INTERLACED ( mb_type ) ) {\n scan8x8 = h -> qscale ? h -> field_scan8x8 : h -> field_scan8x8_q0 ;\n scan = h -> qscale ? h -> field_scan : h -> field_scan_q0 ;\n }\n else {\n scan8x8 = h -> qscale ? h -> zigzag_scan8x8 : h -> zigzag_scan8x8_q0 ;\n scan = h -> qscale ? h -> zigzag_scan : h -> zigzag_scan_q0 ;\n }\n if ( get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 60 + ( h -> last_qscale_diff != 0 ) ] ) ) {\n int val = 1 ;\n int ctx = 2 ;\n const int max_qp = 51 + 6 * ( h -> sps . bit_depth_luma - 8 ) ;\n while ( get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 60 + ctx ] ) ) {\n ctx = 3 ;\n val ++ ;\n if ( val > 2 * max_qp ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"cabac decode of qscale diff failed at %d %d\\n\" , h -> mb_x , h -> mb_y ) ;\n return - 1 ;\n }\n }\n if ( val & 0x01 ) val = ( val + 1 ) >> 1 ;\n else val = - ( ( val + 1 ) >> 1 ) ;\n h -> last_qscale_diff = val ;\n h -> qscale += val ;\n if ( ( ( unsigned ) h -> qscale ) > max_qp ) {\n if ( h -> qscale < 0 ) h -> qscale += max_qp + 1 ;\n else h -> qscale -= max_qp + 1 ;\n }\n h -> chroma_qp [ 0 ] = get_chroma_qp ( h , 0 , h -> qscale ) ;\n h -> chroma_qp [ 1 ] = get_chroma_qp ( h , 1 , h -> qscale ) ;\n }\n else h -> last_qscale_diff = 0 ;\n decode_cabac_luma_residual ( h , scan , scan8x8 , pixel_shift , mb_type , cbp , 0 ) ;\n if ( CHROMA444 ) {\n decode_cabac_luma_residual ( h , scan , scan8x8 , pixel_shift , mb_type , cbp , 1 ) ;\n decode_cabac_luma_residual ( h , scan , scan8x8 , pixel_shift , mb_type , cbp , 2 ) ;\n }\n else if ( CHROMA422 ) {\n if ( cbp & 0x30 ) {\n int c ;\n for ( c = 0 ;\n c < 2 ;\n c ++ ) decode_cabac_residual_dc_422 ( h , h -> mb + ( ( 256 + 16 * 16 * c ) << pixel_shift ) , 3 , CHROMA_DC_BLOCK_INDEX + c , chroma422_dc_scan , 8 ) ;\n }\n if ( cbp & 0x20 ) {\n int c , i , i8x8 ;\n for ( c = 0 ;\n c < 2 ;\n c ++ ) {\n int16_t * mb = h -> mb + ( 16 * ( 16 + 16 * c ) << pixel_shift ) ;\n qmul = h -> dequant4_coeff [ c + 1 + ( IS_INTRA ( mb_type ) ? 0 : 3 ) ] [ h -> chroma_qp [ c ] ] ;\n for ( i8x8 = 0 ;\n i8x8 < 2 ;\n i8x8 ++ ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n const int index = 16 + 16 * c + 8 * i8x8 + i ;\n decode_cabac_residual_nondc ( h , mb , 4 , index , scan + 1 , qmul , 15 ) ;\n mb += 16 << pixel_shift ;\n }\n }\n }\n }\n else {\n fill_rectangle ( & h -> non_zero_count_cache [ scan8 [ 16 ] ] , 4 , 4 , 8 , 0 , 1 ) ;\n fill_rectangle ( & h -> non_zero_count_cache [ scan8 [ 32 ] ] , 4 , 4 , 8 , 0 , 1 ) ;\n }\n }\n else {\n if ( cbp & 0x30 ) {\n int c ;\n for ( c = 0 ;\n c < 2 ;\n c ++ ) decode_cabac_residual_dc ( h , h -> mb + ( ( 256 + 16 * 16 * c ) << pixel_shift ) , 3 , CHROMA_DC_BLOCK_INDEX + c , chroma_dc_scan , 4 ) ;\n }\n if ( cbp & 0x20 ) {\n int c , i ;\n for ( c = 0 ;\n c < 2 ;\n c ++ ) {\n qmul = h -> dequant4_coeff [ c + 1 + ( IS_INTRA ( mb_type ) ? 0 : 3 ) ] [ h -> chroma_qp [ c ] ] ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n const int index = 16 + 16 * c + i ;\n decode_cabac_residual_nondc ( h , h -> mb + ( 16 * index << pixel_shift ) , 4 , index , scan + 1 , qmul , 15 ) ;\n }\n }\n }\n else {\n fill_rectangle ( & h -> non_zero_count_cache [ scan8 [ 16 ] ] , 4 , 4 , 8 , 0 , 1 ) ;\n fill_rectangle ( & h -> non_zero_count_cache [ scan8 [ 32 ] ] , 4 , 4 , 8 , 0 , 1 ) ;\n }\n }\n }\n else {\n fill_rectangle ( & h -> non_zero_count_cache [ scan8 [ 0 ] ] , 4 , 4 , 8 , 0 , 1 ) ;\n fill_rectangle ( & h -> non_zero_count_cache [ scan8 [ 16 ] ] , 4 , 4 , 8 , 0 , 1 ) ;\n fill_rectangle ( & h -> non_zero_count_cache [ scan8 [ 32 ] ] , 4 , 4 , 8 , 0 , 1 ) ;\n h -> last_qscale_diff = 0 ;\n }\n h -> cur_pic . qscale_table [ mb_xy ] = h -> qscale ;\n write_back_non_zero_count ( h ) ;\n return 0 ;\n }"}
{"idx": 12915, "target": 0, "func": "static int32_t setCodes ( const UScriptCode * src , int32_t length , UScriptCode * dest , int32_t capacity , UErrorCode * err ) {\n int32_t i ;\n if ( U_FAILURE ( * err ) ) {\n return 0 ;\n }\n if ( length > capacity ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n return length ;\n }\n for ( i = 0 ;\n i < length ;\n ++ i ) {\n dest [ i ] = src [ i ] ;\n }\n return length ;\n }"}
{"idx": 12916, "target": 0, "func": "static void dissect_q931_reverse_charge_ind_ie ( tvbuff_t * tvb , int offset , int len , proto_tree * tree ) {\n if ( len == 0 ) return ;\n proto_tree_add_item ( tree , hf_q931_reverse_charging_ind , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n }"}
{"idx": 12917, "target": 0, "func": "static size_t try_block ( const char * d , size_t dlen , const char * fromcode , const char * tocode , encoder_t * encoder , size_t * wlen ) {\n char buf [ ENCWORD_LEN_MAX - ENCWORD_LEN_MIN + 1 ] ;\n const char * ib = NULL ;\n char * ob = NULL ;\n size_t ibl , obl ;\n int count , len , len_b , len_q ;\n if ( fromcode ) {\n iconv_t cd = mutt_ch_iconv_open ( tocode , fromcode , 0 ) ;\n assert ( cd != ( iconv_t ) ( - 1 ) ) ;\n ib = d ;\n ibl = dlen ;\n ob = buf ;\n obl = sizeof ( buf ) - strlen ( tocode ) ;\n if ( iconv ( cd , ( ICONV_CONST char * * ) & ib , & ibl , & ob , & obl ) == ( size_t ) ( - 1 ) || iconv ( cd , NULL , NULL , & ob , & obl ) == ( size_t ) ( - 1 ) ) {\n assert ( errno == E2BIG ) ;\n iconv_close ( cd ) ;\n assert ( ib > d ) ;\n return ( ib - d == dlen ) ? dlen : ib - d + 1 ;\n }\n iconv_close ( cd ) ;\n }\n else {\n if ( dlen > ( sizeof ( buf ) - strlen ( tocode ) ) ) return ( sizeof ( buf ) - strlen ( tocode ) + 1 ) ;\n memcpy ( buf , d , dlen ) ;\n ob = buf + dlen ;\n }\n count = 0 ;\n for ( char * p = buf ;\n p < ob ;\n p ++ ) {\n unsigned char c = * p ;\n assert ( strchr ( MimeSpecials , '?' ) ) ;\n if ( ( c >= 0x7f ) || ( c < 0x20 ) || ( * p == '_' ) || ( ( c != ' ' ) && strchr ( MimeSpecials , * p ) ) ) {\n count ++ ;\n }\n }\n len = ENCWORD_LEN_MIN - 2 + strlen ( tocode ) ;\n len_b = len + ( ( ( ob - buf ) + 2 ) / 3 ) * 4 ;\n len_q = len + ( ob - buf ) + 2 * count ;\n if ( mutt_str_strcasecmp ( tocode , \"ISO-2022-JP\" ) == 0 ) len_q = ENCWORD_LEN_MAX + 1 ;\n if ( ( len_b < len_q ) && ( len_b <= ENCWORD_LEN_MAX ) ) {\n * encoder = b_encoder ;\n * wlen = len_b ;\n return 0 ;\n }\n else if ( len_q <= ENCWORD_LEN_MAX ) {\n * encoder = q_encoder ;\n * wlen = len_q ;\n return 0 ;\n }\n else return dlen ;\n }"}
{"idx": 12918, "target": 0, "func": "static float hb_graphite2_get_advance ( const void * hb_font , unsigned short gid ) {\n return ( ( hb_font_t * ) hb_font ) -> get_glyph_h_advance ( gid ) ;\n }"}
{"idx": 12919, "target": 0, "func": "static void decode_postinit ( H264Context * h , int setup_finished ) {\n Picture * out = h -> cur_pic_ptr ;\n Picture * cur = h -> cur_pic_ptr ;\n int i , pics , out_of_order , out_idx ;\n h -> cur_pic_ptr -> f . pict_type = h -> pict_type ;\n if ( h -> next_output_pic ) return ;\n if ( cur -> field_poc [ 0 ] == INT_MAX || cur -> field_poc [ 1 ] == INT_MAX ) {\n return ;\n }\n cur -> f . interlaced_frame = 0 ;\n cur -> f . repeat_pict = 0 ;\n if ( h -> sps . pic_struct_present_flag ) {\n switch ( h -> sei_pic_struct ) {\n case SEI_PIC_STRUCT_FRAME : break ;\n case SEI_PIC_STRUCT_TOP_FIELD : case SEI_PIC_STRUCT_BOTTOM_FIELD : cur -> f . interlaced_frame = 1 ;\n break ;\n case SEI_PIC_STRUCT_TOP_BOTTOM : case SEI_PIC_STRUCT_BOTTOM_TOP : if ( FIELD_OR_MBAFF_PICTURE ( h ) ) cur -> f . interlaced_frame = 1 ;\n else cur -> f . interlaced_frame = h -> prev_interlaced_frame ;\n break ;\n case SEI_PIC_STRUCT_TOP_BOTTOM_TOP : case SEI_PIC_STRUCT_BOTTOM_TOP_BOTTOM : cur -> f . repeat_pict = 1 ;\n break ;\n case SEI_PIC_STRUCT_FRAME_DOUBLING : cur -> f . repeat_pict = 2 ;\n break ;\n case SEI_PIC_STRUCT_FRAME_TRIPLING : cur -> f . repeat_pict = 4 ;\n break ;\n }\n if ( ( h -> sei_ct_type & 3 ) && h -> sei_pic_struct <= SEI_PIC_STRUCT_BOTTOM_TOP ) cur -> f . interlaced_frame = ( h -> sei_ct_type & ( 1 << 1 ) ) != 0 ;\n }\n else {\n cur -> f . interlaced_frame = FIELD_OR_MBAFF_PICTURE ( h ) ;\n }\n h -> prev_interlaced_frame = cur -> f . interlaced_frame ;\n if ( cur -> field_poc [ 0 ] != cur -> field_poc [ 1 ] ) {\n cur -> f . top_field_first = cur -> field_poc [ 0 ] < cur -> field_poc [ 1 ] ;\n }\n else {\n if ( cur -> f . interlaced_frame || h -> sps . pic_struct_present_flag ) {\n if ( h -> sei_pic_struct == SEI_PIC_STRUCT_TOP_BOTTOM || h -> sei_pic_struct == SEI_PIC_STRUCT_TOP_BOTTOM_TOP ) cur -> f . top_field_first = 1 ;\n else cur -> f . top_field_first = 0 ;\n }\n else {\n cur -> f . top_field_first = 0 ;\n }\n }\n cur -> mmco_reset = h -> mmco_reset ;\n h -> mmco_reset = 0 ;\n if ( h -> sps . bitstream_restriction_flag && h -> avctx -> has_b_frames < h -> sps . num_reorder_frames ) {\n h -> avctx -> has_b_frames = h -> sps . num_reorder_frames ;\n h -> low_delay = 0 ;\n }\n if ( h -> avctx -> strict_std_compliance >= FF_COMPLIANCE_STRICT && ! h -> sps . bitstream_restriction_flag ) {\n h -> avctx -> has_b_frames = MAX_DELAYED_PIC_COUNT - 1 ;\n h -> low_delay = 0 ;\n }\n for ( i = 0 ;\n 1 ;\n i ++ ) {\n if ( i == MAX_DELAYED_PIC_COUNT || cur -> poc < h -> last_pocs [ i ] ) {\n if ( i ) h -> last_pocs [ i - 1 ] = cur -> poc ;\n break ;\n }\n else if ( i ) {\n h -> last_pocs [ i - 1 ] = h -> last_pocs [ i ] ;\n }\n }\n out_of_order = MAX_DELAYED_PIC_COUNT - i ;\n if ( cur -> f . pict_type == AV_PICTURE_TYPE_B || ( h -> last_pocs [ MAX_DELAYED_PIC_COUNT - 2 ] > INT_MIN && h -> last_pocs [ MAX_DELAYED_PIC_COUNT - 1 ] - h -> last_pocs [ MAX_DELAYED_PIC_COUNT - 2 ] > 2 ) ) out_of_order = FFMAX ( out_of_order , 1 ) ;\n if ( out_of_order == MAX_DELAYED_PIC_COUNT ) {\n av_log ( h -> avctx , AV_LOG_VERBOSE , \"Invalid POC %d<%d\\n\" , cur -> poc , h -> last_pocs [ 0 ] ) ;\n for ( i = 1 ;\n i < MAX_DELAYED_PIC_COUNT ;\n i ++ ) h -> last_pocs [ i ] = INT_MIN ;\n h -> last_pocs [ 0 ] = cur -> poc ;\n cur -> mmco_reset = 1 ;\n }\n else if ( h -> avctx -> has_b_frames < out_of_order && ! h -> sps . bitstream_restriction_flag ) {\n av_log ( h -> avctx , AV_LOG_VERBOSE , \"Increasing reorder buffer to %d\\n\" , out_of_order ) ;\n h -> avctx -> has_b_frames = out_of_order ;\n h -> low_delay = 0 ;\n }\n pics = 0 ;\n while ( h -> delayed_pic [ pics ] ) pics ++ ;\n av_assert0 ( pics <= MAX_DELAYED_PIC_COUNT ) ;\n h -> delayed_pic [ pics ++ ] = cur ;\n if ( cur -> reference == 0 ) cur -> reference = DELAYED_PIC_REF ;\n out = h -> delayed_pic [ 0 ] ;\n out_idx = 0 ;\n for ( i = 1 ;\n h -> delayed_pic [ i ] && ! h -> delayed_pic [ i ] -> f . key_frame && ! h -> delayed_pic [ i ] -> mmco_reset ;\n i ++ ) if ( h -> delayed_pic [ i ] -> poc < out -> poc ) {\n out = h -> delayed_pic [ i ] ;\n out_idx = i ;\n }\n if ( h -> avctx -> has_b_frames == 0 && ( h -> delayed_pic [ 0 ] -> f . key_frame || h -> delayed_pic [ 0 ] -> mmco_reset ) ) h -> next_outputed_poc = INT_MIN ;\n out_of_order = out -> poc < h -> next_outputed_poc ;\n if ( out_of_order || pics > h -> avctx -> has_b_frames ) {\n out -> reference &= ~ DELAYED_PIC_REF ;\n for ( i = out_idx ;\n h -> delayed_pic [ i ] ;\n i ++ ) h -> delayed_pic [ i ] = h -> delayed_pic [ i + 1 ] ;\n }\n if ( ! out_of_order && pics > h -> avctx -> has_b_frames ) {\n h -> next_output_pic = out ;\n if ( out_idx == 0 && h -> delayed_pic [ 0 ] && ( h -> delayed_pic [ 0 ] -> f . key_frame || h -> delayed_pic [ 0 ] -> mmco_reset ) ) {\n h -> next_outputed_poc = INT_MIN ;\n }\n else h -> next_outputed_poc = out -> poc ;\n }\n else {\n av_log ( h -> avctx , AV_LOG_DEBUG , \"no picture %s\\n\" , out_of_order ? \"ooo\" : \"\" ) ;\n }\n if ( h -> next_output_pic ) {\n if ( h -> next_output_pic -> recovered ) {\n h -> frame_recovered |= FRAME_RECOVERED_SEI ;\n }\n h -> next_output_pic -> recovered |= ! ! ( h -> frame_recovered & FRAME_RECOVERED_SEI ) ;\n }\n if ( setup_finished && ! h -> avctx -> hwaccel ) ff_thread_finish_setup ( h -> avctx ) ;\n }"}
{"idx": 12920, "target": 0, "func": "static int dissect_nlm4_test_res ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n return dissect_nlm_test_res ( tvb , 0 , pinfo , tree , 4 , ( rpc_call_info_value * ) data ) ;\n }"}
{"idx": 12921, "target": 0, "func": "static int selinux_mount ( const char * dev_name , const struct path * path , const char * type , unsigned long flags , void * data ) {\n const struct cred * cred = current_cred ( ) ;\n if ( flags & MS_REMOUNT ) return superblock_has_perm ( cred , path -> dentry -> d_sb , FILESYSTEM__REMOUNT , NULL ) ;\n else return path_has_perm ( cred , path , FILE__MOUNTON ) ;\n }"}
{"idx": 12922, "target": 0, "func": "static void decode_10bit_pulse ( int code , int pulse_position [ 8 ] , int i1 , int i2 , int i3 ) {\n const uint8_t * positions = base_five_table [ code >> 3 ] ;\n pulse_position [ i1 ] = ( positions [ 2 ] << 1 ) + ( code & 1 ) ;\n pulse_position [ i2 ] = ( positions [ 1 ] << 1 ) + ( ( code >> 1 ) & 1 ) ;\n pulse_position [ i3 ] = ( positions [ 0 ] << 1 ) + ( ( code >> 2 ) & 1 ) ;\n }"}
{"idx": 12923, "target": 0, "func": "static double var_eq_non_const ( VariableStatData * vardata , Oid operator , Node * other , bool varonleft ) {\n double selec ;\n bool isdefault ;\n if ( vardata -> isunique && vardata -> rel && vardata -> rel -> tuples >= 1.0 ) return 1.0 / vardata -> rel -> tuples ;\n if ( HeapTupleIsValid ( vardata -> statsTuple ) ) {\n Form_pg_statistic stats ;\n double ndistinct ;\n float4 * numbers ;\n int nnumbers ;\n stats = ( Form_pg_statistic ) GETSTRUCT ( vardata -> statsTuple ) ;\n selec = 1.0 - stats -> stanullfrac ;\n ndistinct = get_variable_numdistinct ( vardata , & isdefault ) ;\n if ( ndistinct > 1 ) selec /= ndistinct ;\n if ( get_attstatsslot ( vardata -> statsTuple , vardata -> atttype , vardata -> atttypmod , STATISTIC_KIND_MCV , InvalidOid , NULL , NULL , NULL , & numbers , & nnumbers ) ) {\n if ( nnumbers > 0 && selec > numbers [ 0 ] ) selec = numbers [ 0 ] ;\n free_attstatsslot ( vardata -> atttype , NULL , 0 , numbers , nnumbers ) ;\n }\n }\n else {\n selec = 1.0 / get_variable_numdistinct ( vardata , & isdefault ) ;\n }\n CLAMP_PROBABILITY ( selec ) ;\n return selec ;\n }"}
{"idx": 12924, "target": 0, "func": "void nautilus_directory_add_file_monitors ( NautilusDirectory * directory , NautilusFile * file , FileMonitors * monitors ) {\n GList * * list ;\n GList * l ;\n Monitor * monitor ;\n g_assert ( NAUTILUS_IS_DIRECTORY ( directory ) ) ;\n g_assert ( NAUTILUS_IS_FILE ( file ) ) ;\n g_assert ( file -> details -> directory == directory ) ;\n if ( monitors == NULL ) {\n return ;\n }\n for ( l = ( GList * ) monitors ;\n l != NULL ;\n l = l -> next ) {\n monitor = l -> data ;\n request_counter_add_request ( directory -> details -> monitor_counters , monitor -> request ) ;\n }\n list = & directory -> details -> monitor_list ;\n * list = g_list_concat ( * list , ( GList * ) monitors ) ;\n nautilus_directory_add_file_to_work_queue ( directory , file ) ;\n nautilus_directory_async_state_changed ( directory ) ;\n }"}
{"idx": 12925, "target": 0, "func": "static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 12926, "target": 0, "func": "SPL_METHOD ( SplDoublyLinkedList , rewind ) {\n spl_dllist_object * intern = ( spl_dllist_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n spl_dllist_it_helper_rewind ( & intern -> traverse_pointer , & intern -> traverse_position , intern -> llist , intern -> flags TSRMLS_CC ) ;\n }"}
{"idx": 12927, "target": 0, "func": "CharDriverState * qdev_init_chardev ( DeviceState * dev ) {\n static int next_serial ;\n return serial_hds [ next_serial ++ ] ;\n }"}
{"idx": 12928, "target": 0, "func": "static void termsig_handler ( int signum ) {\n atomic_cmpxchg ( & state , RUNNING , TERMINATE ) ;\n qemu_notify_event ( ) ;\n }"}
{"idx": 12929, "target": 0, "func": "TEST_F ( ShortcutsProviderTest , CalculateScore ) {\n ShortcutsDatabase : : Shortcut shortcut ( std : : string ( ) , ASCIIToUTF16 ( \"test\" ) , ShortcutsDatabase : : Shortcut : : MatchCore ( ASCIIToUTF16 ( \"www.test.com\" ) , GURL ( \"http://www.test.com\" ) , ASCIIToUTF16 ( \"www.test.com\" ) , \"0,1,4,3,8,1\" , ASCIIToUTF16 ( \"A test\" ) , \"0,0,2,2\" , ui : : PAGE_TRANSITION_TYPED , AutocompleteMatchType : : HISTORY_URL , base : : string16 ( ) ) , base : : Time : : Now ( ) , 1 ) ;\n const int max_relevance = ShortcutsProvider : : kShortcutsProviderDefaultMaxRelevance ;\n const int kMaxScore = CalculateScore ( \"test\" , shortcut , max_relevance ) ;\n int score_three_quarters = CalculateScore ( \"tes\" , shortcut , max_relevance ) ;\n EXPECT_LT ( score_three_quarters , kMaxScore ) ;\n int score_one_half = CalculateScore ( \"te\" , shortcut , max_relevance ) ;\n EXPECT_LT ( score_one_half , score_three_quarters ) ;\n int score_one_quarter = CalculateScore ( \"t\" , shortcut , max_relevance ) ;\n EXPECT_LT ( score_one_quarter , score_one_half ) ;\n shortcut . last_access_time = base : : Time : : Now ( ) - base : : TimeDelta : : FromDays ( 7 ) ;\n int score_week_old = CalculateScore ( \"test\" , shortcut , max_relevance ) ;\n EXPECT_LT ( score_week_old , kMaxScore ) ;\n shortcut . last_access_time = base : : Time : : Now ( ) - base : : TimeDelta : : FromDays ( 14 ) ;\n int score_two_weeks_old = CalculateScore ( \"test\" , shortcut , max_relevance ) ;\n EXPECT_LT ( score_two_weeks_old , score_week_old ) ;\n shortcut . number_of_hits = 2 ;\n shortcut . last_access_time = base : : Time : : Now ( ) - base : : TimeDelta : : FromDays ( 14 ) ;\n int score_popular_two_weeks_old = CalculateScore ( \"test\" , shortcut , max_relevance ) ;\n EXPECT_LT ( score_two_weeks_old , score_popular_two_weeks_old ) ;\n EXPECT_LT ( score_popular_two_weeks_old , kMaxScore ) ;\n shortcut . number_of_hits = 3 ;\n shortcut . last_access_time = base : : Time : : Now ( ) - base : : TimeDelta : : FromDays ( 14 ) ;\n int score_more_popular_two_weeks_old = CalculateScore ( \"test\" , shortcut , max_relevance ) ;\n EXPECT_LT ( score_two_weeks_old , score_more_popular_two_weeks_old ) ;\n EXPECT_LT ( score_popular_two_weeks_old , score_more_popular_two_weeks_old ) ;\n EXPECT_LT ( score_more_popular_two_weeks_old , kMaxScore ) ;\n }"}
{"idx": 12930, "target": 0, "func": "int MatIsIdentity ( real transform [ 6 ] ) {\n return ( transform [ 0 ] == 1 && transform [ 3 ] == 1 && transform [ 1 ] == 0 && transform [ 2 ] == 0 && transform [ 4 ] == 0 && transform [ 5 ] == 0 ) ;\n }"}
{"idx": 12931, "target": 0, "func": "static int32_t pointerTOCPrefixBinarySearch ( const char * s , const PointerTOCEntry * toc , int32_t count ) {\n int32_t start = 0 ;\n int32_t limit = count ;\n int32_t startPrefixLength = 0 ;\n int32_t limitPrefixLength = 0 ;\n if ( count == 0 ) {\n return - 1 ;\n }\n if ( 0 == strcmpAfterPrefix ( s , toc [ 0 ] . entryName , & startPrefixLength ) ) {\n return 0 ;\n }\n ++ start ;\n -- limit ;\n if ( 0 == strcmpAfterPrefix ( s , toc [ limit ] . entryName , & limitPrefixLength ) ) {\n return limit ;\n }\n while ( start < limit ) {\n int32_t i = ( start + limit ) / 2 ;\n int32_t prefixLength = MIN ( startPrefixLength , limitPrefixLength ) ;\n int32_t cmp = strcmpAfterPrefix ( s , toc [ i ] . entryName , & prefixLength ) ;\n if ( cmp < 0 ) {\n limit = i ;\n limitPrefixLength = prefixLength ;\n }\n else if ( cmp == 0 ) {\n return i ;\n }\n else {\n start = i + 1 ;\n startPrefixLength = prefixLength ;\n }\n }\n return - 1 ;\n }"}
{"idx": 12932, "target": 0, "func": "static FileType get_file_type ( const u_char * filename , unsigned int throttle_rate ) {\n struct stat buf ;\n int ret ;\n ret = pp_cached_file_stat_perform ( pp_stat_cache , ( const char * ) filename , & buf , throttle_rate ) ;\n if ( ret == 0 ) {\n if ( S_ISREG ( buf . st_mode ) ) {\n return FT_FILE ;\n }\n else if ( S_ISDIR ( buf . st_mode ) ) {\n return FT_DIRECTORY ;\n }\n else {\n return FT_OTHER ;\n }\n }\n else {\n return FT_ERROR ;\n }\n }"}
{"idx": 12933, "target": 0, "func": "static int handle_grant_table ( TABLE_LIST * tables , uint table_no , bool drop , LEX_USER * user_from , LEX_USER * user_to ) {\n int result = 0 ;\n int error ;\n TABLE * table = tables [ table_no ] . table ;\n Field * host_field = table -> field [ 0 ] ;\n Field * user_field = table -> field [ table_no ? 2 : 1 ] ;\n char * host_str = user_from -> host . str ;\n char * user_str = user_from -> user . str ;\n const char * host ;\n const char * user ;\n uchar user_key [ MAX_KEY_LENGTH ] ;\n uint key_prefix_length ;\n DBUG_ENTER ( \"handle_grant_table\" ) ;\n THD * thd = current_thd ;\n table -> use_all_columns ( ) ;\n if ( ! table_no ) {\n DBUG_PRINT ( \"info\" , ( \"read table: '%s' search: '%s'@'%s'\" , table -> s -> table_name . str , user_str , host_str ) ) ;\n host_field -> store ( host_str , user_from -> host . length , system_charset_info ) ;\n user_field -> store ( user_str , user_from -> user . length , system_charset_info ) ;\n key_prefix_length = ( table -> key_info -> key_part [ 0 ] . store_length + table -> key_info -> key_part [ 1 ] . store_length ) ;\n key_copy ( user_key , table -> record [ 0 ] , table -> key_info , key_prefix_length ) ;\n if ( ( error = table -> file -> index_read_idx_map ( table -> record [ 0 ] , 0 , user_key , ( key_part_map ) 3 , HA_READ_KEY_EXACT ) ) ) {\n if ( error != HA_ERR_KEY_NOT_FOUND && error != HA_ERR_END_OF_FILE ) {\n table -> file -> print_error ( error , MYF ( 0 ) ) ;\n result = - 1 ;\n }\n }\n else {\n result = ( ( drop || user_to ) && modify_grant_table ( table , host_field , user_field , user_to ) ) ? - 1 : 1 ;\n }\n DBUG_PRINT ( \"info\" , ( \"read result: %d\" , result ) ) ;\n }\n else {\n if ( ( error = table -> file -> ha_rnd_init ( 1 ) ) ) {\n table -> file -> print_error ( error , MYF ( 0 ) ) ;\n result = - 1 ;\n }\n else {\n # ifdef EXTRA_DEBUG DBUG_PRINT ( \"info\" , ( \"scan table: '%s' search: '%s'@'%s'\" , table -> s -> table_name . str , user_str , host_str ) ) ;\n # endif while ( ( error = table -> file -> rnd_next ( table -> record [ 0 ] ) ) != HA_ERR_END_OF_FILE ) {\n if ( error ) {\n DBUG_PRINT ( \"info\" , ( \"scan error: %d\" , error ) ) ;\n continue ;\n }\n if ( ! ( host = get_field ( thd -> mem_root , host_field ) ) ) host = \"\" ;\n if ( ! ( user = get_field ( thd -> mem_root , user_field ) ) ) user = \"\" ;\n # ifdef EXTRA_DEBUG DBUG_PRINT ( \"loop\" , ( \"scan fields: '%s'@'%s' '%s' '%s' '%s'\" , user , host , get_field ( thd -> mem_root , table -> field [ 1 ] ) , get_field ( thd -> mem_root , table -> field [ 3 ] ) , get_field ( thd -> mem_root , table -> field [ 4 ] ) ) ) ;\n # endif if ( strcmp ( user_str , user ) || my_strcasecmp ( system_charset_info , host_str , host ) ) continue ;\n result = ( ( drop || user_to ) && modify_grant_table ( table , host_field , user_field , user_to ) ) ? - 1 : result ? result : 1 ;\n if ( ! drop && ! user_to ) break ;\n }\n ( void ) table -> file -> ha_rnd_end ( ) ;\n DBUG_PRINT ( \"info\" , ( \"scan result: %d\" , result ) ) ;\n }\n }\n DBUG_RETURN ( result ) ;\n }"}
{"idx": 12934, "target": 0, "func": "void glob_cleanup ( URLGlob * glob ) {\n size_t i ;\n int elem ;\n for ( i = 0 ;\n i < glob -> size ;\n i ++ ) {\n if ( ( glob -> pattern [ i ] . type == UPTSet ) && ( glob -> pattern [ i ] . content . Set . elements ) ) {\n for ( elem = glob -> pattern [ i ] . content . Set . size - 1 ;\n elem >= 0 ;\n -- elem ) {\n Curl_safefree ( glob -> pattern [ i ] . content . Set . elements [ elem ] ) ;\n }\n Curl_safefree ( glob -> pattern [ i ] . content . Set . elements ) ;\n }\n }\n Curl_safefree ( glob -> glob_buffer ) ;\n Curl_safefree ( glob ) ;\n }"}
{"idx": 12935, "target": 0, "func": "static uint16_t * invert_lut ( uint16_t * table , int length , size_t out_length ) {\n int NumZeroes ;\n int NumPoles ;\n int i ;\n uint16_t * output = malloc ( sizeof ( uint16_t ) * out_length ) ;\n if ( ! output ) return NULL ;\n count_zeroes_and_poles ( table , length , & NumZeroes , & NumPoles ) ;\n for ( i = 0 ;\n i < out_length ;\n i ++ ) {\n double x = ( ( double ) i * 65535. ) / ( double ) ( out_length - 1 ) ;\n uint16_fract_t input = floor ( x + .5 ) ;\n output [ i ] = lut_inverse_interp16 ( input , table , length , NumZeroes , NumPoles ) ;\n }\n return output ;\n }"}
{"idx": 12936, "target": 0, "func": "static int dissect_pvfs2_rmdirent_response ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"handle\" , NULL ) ;\n return offset ;\n }"}
{"idx": 12937, "target": 0, "func": "int proto_registrar_get_id_byname ( const char * field_name ) {\n header_field_info * hfinfo ;\n hfinfo = proto_registrar_get_byname ( field_name ) ;\n if ( ! hfinfo ) return - 1 ;\n return hfinfo -> id ;\n }"}
{"idx": 12938, "target": 0, "func": "static int write_file_contents ( struct archive_write * a , int64_t offset , int64_t size ) {\n struct iso9660 * iso9660 = a -> format_data ;\n int r ;\n lseek ( iso9660 -> temp_fd , offset , SEEK_SET ) ;\n while ( size ) {\n size_t rsize ;\n ssize_t rs ;\n unsigned char * wb ;\n wb = wb_buffptr ( a ) ;\n rsize = wb_remaining ( a ) ;\n if ( rsize > ( size_t ) size ) rsize = ( size_t ) size ;\n rs = read ( iso9660 -> temp_fd , wb , rsize ) ;\n if ( rs <= 0 ) {\n archive_set_error ( & a -> archive , errno , \"Can't read temporary file(%jd)\" , ( intmax_t ) rs ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n size -= rs ;\n r = wb_consume ( a , rs ) ;\n if ( r < 0 ) return ( r ) ;\n }\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 12939, "target": 0, "func": "int event_base_loopbreak ( struct event_base * event_base ) {\n if ( event_base == NULL ) return ( - 1 ) ;\n event_base -> event_break = 1 ;\n return ( 0 ) ;\n }"}
{"idx": 12940, "target": 0, "func": "static int arith_get_prob ( ArithCoder * c , int16_t * probs ) {\n int range = c -> high - c -> low + 1 ;\n int val = ( ( c -> value - c -> low + 1 ) * probs [ 0 ] - 1 ) / range ;\n int sym = 1 ;\n while ( probs [ sym ] > val ) sym ++ ;\n c -> high = range * probs [ sym - 1 ] / probs [ 0 ] + c -> low - 1 ;\n c -> low += range * probs [ sym ] / probs [ 0 ] ;\n return sym ;\n }"}
{"idx": 12941, "target": 0, "func": "static void spl_dllist_it_move_forward ( zend_object_iterator * iter TSRMLS_DC ) {\n spl_dllist_it * iterator = ( spl_dllist_it * ) iter ;\n spl_dllist_object * object = iterator -> object ;\n zend_user_it_invalidate_current ( iter TSRMLS_CC ) ;\n spl_dllist_it_helper_move_forward ( & iterator -> traverse_pointer , & iterator -> traverse_position , object -> llist , object -> flags TSRMLS_CC ) ;\n }"}
{"idx": 12942, "target": 0, "func": "static int selinux_inode_alloc_security ( struct inode * inode ) {\n return inode_alloc_security ( inode ) ;\n }"}
{"idx": 12943, "target": 1, "func": "int ff_alloc_picture ( MpegEncContext * s , Picture * pic , int shared ) {\n const int big_mb_num = s -> mb_stride * ( s -> mb_height + 1 ) + 1 ;\n const int mb_array_size = s -> mb_stride * s -> mb_height ;\n const int b8_array_size = s -> b8_stride * s -> mb_height * 2 ;\n const int b4_array_size = s -> b4_stride * s -> mb_height * 4 ;\n int i ;\n int r = - 1 ;\n if ( shared ) {\n assert ( pic -> f . data [ 0 ] ) ;\n assert ( pic -> f . type == 0 || pic -> f . type == FF_BUFFER_TYPE_SHARED ) ;\n pic -> f . type = FF_BUFFER_TYPE_SHARED ;\n }\n else {\n assert ( ! pic -> f . data [ 0 ] ) ;\n if ( alloc_frame_buffer ( s , pic ) < 0 ) return - 1 ;\n s -> linesize = pic -> f . linesize [ 0 ] ;\n s -> uvlinesize = pic -> f . linesize [ 1 ] ;\n }\n if ( pic -> f . qscale_table == NULL ) {\n if ( s -> encoding ) {\n FF_ALLOCZ_OR_GOTO ( s -> avctx , pic -> mb_var , mb_array_size * sizeof ( int16_t ) , fail ) FF_ALLOCZ_OR_GOTO ( s -> avctx , pic -> mc_mb_var , mb_array_size * sizeof ( int16_t ) , fail ) FF_ALLOCZ_OR_GOTO ( s -> avctx , pic -> mb_mean , mb_array_size * sizeof ( int8_t ) , fail ) }\n FF_ALLOCZ_OR_GOTO ( s -> avctx , pic -> f . mbskip_table , mb_array_size * sizeof ( uint8_t ) + 2 , fail ) FF_ALLOCZ_OR_GOTO ( s -> avctx , pic -> qscale_table_base , ( big_mb_num + s -> mb_stride ) * sizeof ( uint8_t ) , fail ) FF_ALLOCZ_OR_GOTO ( s -> avctx , pic -> mb_type_base , ( big_mb_num + s -> mb_stride ) * sizeof ( uint32_t ) , fail ) pic -> f . mb_type = pic -> mb_type_base + 2 * s -> mb_stride + 1 ;\n pic -> f . qscale_table = pic -> qscale_table_base + 2 * s -> mb_stride + 1 ;\n if ( s -> out_format == FMT_H264 ) {\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n FF_ALLOCZ_OR_GOTO ( s -> avctx , pic -> motion_val_base [ i ] , 2 * ( b4_array_size + 4 ) * sizeof ( int16_t ) , fail ) pic -> f . motion_val [ i ] = pic -> motion_val_base [ i ] + 4 ;\n FF_ALLOCZ_OR_GOTO ( s -> avctx , pic -> f . ref_index [ i ] , 4 * mb_array_size * sizeof ( uint8_t ) , fail ) }\n pic -> f . motion_subsample_log2 = 2 ;\n }\n else if ( s -> out_format == FMT_H263 || s -> encoding || ( s -> avctx -> debug & FF_DEBUG_MV ) || s -> avctx -> debug_mv ) {\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n FF_ALLOCZ_OR_GOTO ( s -> avctx , pic -> motion_val_base [ i ] , 2 * ( b8_array_size + 4 ) * sizeof ( int16_t ) , fail ) pic -> f . motion_val [ i ] = pic -> motion_val_base [ i ] + 4 ;\n FF_ALLOCZ_OR_GOTO ( s -> avctx , pic -> f . ref_index [ i ] , 4 * mb_array_size * sizeof ( uint8_t ) , fail ) }\n pic -> f . motion_subsample_log2 = 3 ;\n }\n if ( s -> avctx -> debug & FF_DEBUG_DCT_COEFF ) {\n FF_ALLOCZ_OR_GOTO ( s -> avctx , pic -> f . dct_coeff , 64 * mb_array_size * sizeof ( int16_t ) * 6 , fail ) }\n pic -> f . qstride = s -> mb_stride ;\n FF_ALLOCZ_OR_GOTO ( s -> avctx , pic -> f . pan_scan , 1 * sizeof ( AVPanScan ) , fail ) }\n pic -> owner2 = s ;\n return 0 ;\n fail : if ( r >= 0 ) free_frame_buffer ( s , pic ) ;\n return - 1 ;\n }"}
{"idx": 12944, "target": 1, "func": "static void T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n const UChar * mySource = args -> source ;\n unsigned char * myTarget ;\n int32_t * myOffsets ;\n const UChar * sourceLimit = args -> sourceLimit ;\n const unsigned char * targetLimit = ( unsigned char * ) args -> targetLimit ;\n UChar32 ch , ch2 ;\n unsigned int indexToWrite ;\n unsigned char temp [ sizeof ( uint32_t ) ] ;\n int32_t offsetNum = 0 ;\n if ( mySource >= sourceLimit ) {\n return ;\n }\n if ( args -> converter -> fromUnicodeStatus == UCNV_NEED_TO_WRITE_BOM ) {\n static const char bom [ ] = {\n ( char ) 0xff , ( char ) 0xfe , 0 , 0 }\n ;\n ucnv_fromUWriteBytes ( args -> converter , bom , 4 , & args -> target , args -> targetLimit , & args -> offsets , - 1 , err ) ;\n args -> converter -> fromUnicodeStatus = 0 ;\n }\n myTarget = ( unsigned char * ) args -> target ;\n myOffsets = args -> offsets ;\n temp [ 3 ] = 0 ;\n if ( args -> converter -> fromUChar32 ) {\n ch = args -> converter -> fromUChar32 ;\n args -> converter -> fromUChar32 = 0 ;\n goto lowsurogate ;\n }\n while ( mySource < sourceLimit && myTarget < targetLimit ) {\n ch = * ( mySource ++ ) ;\n if ( U16_IS_SURROGATE ( ch ) ) {\n if ( U16_IS_LEAD ( ch ) ) {\n lowsurogate : if ( mySource < sourceLimit ) {\n ch2 = * mySource ;\n if ( U16_IS_TRAIL ( ch2 ) ) {\n ch = ( ( ch - SURROGATE_HIGH_START ) << HALF_SHIFT ) + ch2 + SURROGATE_LOW_BASE ;\n mySource ++ ;\n }\n else {\n args -> converter -> fromUChar32 = ch ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n }\n else {\n args -> converter -> fromUChar32 = ch ;\n if ( args -> flush ) {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n break ;\n }\n }\n else {\n args -> converter -> fromUChar32 = ch ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n }\n temp [ 2 ] = ( uint8_t ) ( ch >> 16 & 0x1F ) ;\n temp [ 1 ] = ( uint8_t ) ( ch >> 8 ) ;\n temp [ 0 ] = ( uint8_t ) ( ch ) ;\n for ( indexToWrite = 0 ;\n indexToWrite <= sizeof ( uint32_t ) - 1 ;\n indexToWrite ++ ) {\n if ( myTarget < targetLimit ) {\n * ( myTarget ++ ) = temp [ indexToWrite ] ;\n * ( myOffsets ++ ) = offsetNum ;\n }\n else {\n args -> converter -> charErrorBuffer [ args -> converter -> charErrorBufferLength ++ ] = temp [ indexToWrite ] ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n offsetNum = offsetNum + 1 + ( temp [ 2 ] != 0 ) ;\n }\n if ( mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS ( * err ) ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n args -> target = ( char * ) myTarget ;\n args -> source = mySource ;\n args -> offsets = myOffsets ;\n }"}
{"idx": 12945, "target": 0, "func": "int query_get_string ( MYSQL * mysql , const char * query , int column , DYNAMIC_STRING * ds ) {\n MYSQL_RES * res = NULL ;\n MYSQL_ROW row ;\n if ( mysql_query ( mysql , query ) ) {\n report_or_die ( \"'%s' failed: %d %s\" , query , mysql_errno ( mysql ) , mysql_error ( mysql ) ) ;\n return 1 ;\n }\n if ( ( res = mysql_store_result ( mysql ) ) == NULL ) {\n report_or_die ( \"Failed to store result: %d %s\" , mysql_errno ( mysql ) , mysql_error ( mysql ) ) ;\n return 1 ;\n }\n if ( ( row = mysql_fetch_row ( res ) ) == NULL ) {\n mysql_free_result ( res ) ;\n return 1 ;\n }\n init_dynamic_string ( ds , ( row [ column ] ? row [ column ] : \"NULL\" ) , ~ 0 , 32 ) ;\n mysql_free_result ( res ) ;\n return 0 ;\n }"}
{"idx": 12946, "target": 0, "func": "static int dissect_pvfs2_crdirent_request ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n offset = dissect_pvfs_string ( tvb , tree , hf_pvfs_path , offset , NULL ) ;\n offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"file handle\" , NULL ) ;\n offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"parent handle\" , NULL ) ;\n offset = dissect_pvfs_fs_id ( tvb , tree , offset ) ;\n offset += 4 ;\n offset = dissect_pvfs_time ( tvb , tree , offset , hf_pvfs_atime , hf_pvfs_atime_sec , hf_pvfs_atime_nsec ) ;\n offset = dissect_pvfs_time ( tvb , tree , offset , hf_pvfs_mtime , hf_pvfs_mtime_sec , hf_pvfs_mtime_nsec ) ;\n offset = dissect_pvfs_time ( tvb , tree , offset , hf_pvfs_ctime , hf_pvfs_ctime_sec , hf_pvfs_ctime_nsec ) ;\n return offset ;\n }"}
{"idx": 12947, "target": 0, "func": "static int dissect_h225_LocationRejectReason ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 680 \"./asn1/h225/h225.cnf\" gint32 value ;\n h225_packet_info * h225_pi ;\n h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_LocationRejectReason , LocationRejectReason_choice , & value ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> reason = value ;\n }\n return offset ;\n }"}
{"idx": 12948, "target": 0, "func": "int qemuMonitorJSONSetLink ( qemuMonitorPtr mon , const char * name , enum virDomainNetInterfaceLinkState state ) {\n int ret ;\n virJSONValuePtr reply = NULL ;\n virJSONValuePtr cmd = qemuMonitorJSONMakeCommand ( \"set_link\" , \"s:name\" , name , \"b:up\" , state != VIR_DOMAIN_NET_INTERFACE_LINK_STATE_DOWN , NULL ) ;\n if ( ! cmd ) return - 1 ;\n if ( ( ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ) == 0 ) ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 12949, "target": 1, "func": "static void vga_draw_line16_be ( VGACommonState * s1 , uint8_t * d , const uint8_t * s , int width ) {\n int w ;\n uint32_t v , r , g , b ;\n w = width ;\n do {\n v = lduw_be_p ( ( void * ) s ) ;\n r = ( v >> 8 ) & 0xf8 ;\n g = ( v >> 3 ) & 0xfc ;\n b = ( v << 3 ) & 0xf8 ;\n ( ( uint32_t * ) d ) [ 0 ] = rgb_to_pixel32 ( r , g , b ) ;\n s += 2 ;\n d += 4 ;\n }\n while ( -- w != 0 ) ;\n }"}
{"idx": 12950, "target": 0, "func": "static gint dissect_bta2dp ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n proto_item * ti ;\n proto_tree * bta2dp_tree ;\n proto_item * pitem ;\n gint offset = 0 ;\n dissector_handle_t codec_dissector = NULL ;\n bta2dp_codec_info_t bta2dp_codec_info ;\n sep_data_t sep_data ;\n gboolean no_avdtp_session ;\n no_avdtp_session = ( proto_btavdtp != ( gint ) GPOINTER_TO_UINT ( wmem_list_frame_data ( wmem_list_frame_prev ( wmem_list_tail ( pinfo -> layers ) ) ) ) ) ;\n sep_data . codec = CODEC_SBC ;\n sep_data . content_protection_type = 0 ;\n sep_data . acp_seid = 0 ;\n sep_data . int_seid = 0 ;\n sep_data . previous_media_packet_info = NULL ;\n sep_data . current_media_packet_info = NULL ;\n sep_data . stream_start_in_frame = 0 ;\n sep_data . stream_end_in_frame = 0 ;\n sep_data . stream_number = 1 ;\n sep_data . vendor_id = 0 ;\n sep_data . vendor_codec = 0 ;\n sep_data . configuration_length = 0 ;\n sep_data . configuration = NULL ;\n if ( force_a2dp_scms_t || force_a2dp_codec != CODEC_DEFAULT ) {\n if ( force_a2dp_scms_t ) sep_data . content_protection_type = 2 ;\n else if ( data && ! no_avdtp_session ) sep_data . content_protection_type = ( ( sep_data_t * ) data ) -> content_protection_type ;\n if ( force_a2dp_codec != CODEC_DEFAULT ) sep_data . codec = force_a2dp_codec ;\n else if ( data && ! no_avdtp_session ) sep_data . codec = ( ( sep_data_t * ) data ) -> codec ;\n }\n else {\n if ( data && ! no_avdtp_session ) sep_data = * ( ( sep_data_t * ) data ) ;\n }\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"A2DP\" ) ;\n switch ( pinfo -> p2p_dir ) {\n case P2P_DIR_SENT : col_set_str ( pinfo -> cinfo , COL_INFO , \"Sent \" ) ;\n break ;\n case P2P_DIR_RECV : col_set_str ( pinfo -> cinfo , COL_INFO , \"Rcvd \" ) ;\n break ;\n case P2P_DIR_UNKNOWN : col_clear ( pinfo -> cinfo , COL_INFO ) ;\n break ;\n default : col_add_fstr ( pinfo -> cinfo , COL_INFO , \"Unknown direction %d \" , pinfo -> p2p_dir ) ;\n break ;\n }\n ti = proto_tree_add_item ( tree , proto_bta2dp , tvb , offset , - 1 , ENC_NA ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"Audio stream - %s\" , val_to_str_const ( sep_data . codec , media_codec_audio_type_vals , \"unknown codec\" ) ) ;\n bta2dp_tree = proto_item_add_subtree ( ti , ett_bta2dp ) ;\n pitem = proto_tree_add_uint ( bta2dp_tree , hf_bta2dp_acp_seid , tvb , 0 , 0 , sep_data . acp_seid ) ;\n PROTO_ITEM_SET_GENERATED ( pitem ) ;\n pitem = proto_tree_add_uint ( bta2dp_tree , hf_bta2dp_int_seid , tvb , 0 , 0 , sep_data . int_seid ) ;\n PROTO_ITEM_SET_GENERATED ( pitem ) ;\n pitem = proto_tree_add_uint ( bta2dp_tree , hf_bta2dp_codec , tvb , 0 , 0 , sep_data . codec ) ;\n PROTO_ITEM_SET_GENERATED ( pitem ) ;\n if ( sep_data . codec == 0xFF ) {\n pitem = proto_tree_add_uint ( bta2dp_tree , hf_bta2dp_vendor_id , tvb , 0 , 0 , sep_data . vendor_id ) ;\n PROTO_ITEM_SET_GENERATED ( pitem ) ;\n pitem = proto_tree_add_uint ( bta2dp_tree , hf_bta2dp_vendor_codec_id , tvb , 0 , 0 , sep_data . vendor_codec ) ;\n PROTO_ITEM_SET_GENERATED ( pitem ) ;\n if ( sep_data . vendor_id == 0x004F && sep_data . vendor_codec == 0x0001 ) codec_dissector = aptx_handle ;\n }\n if ( sep_data . content_protection_type > 0 ) {\n pitem = proto_tree_add_uint ( bta2dp_tree , hf_bta2dp_content_protection , tvb , 0 , 0 , sep_data . content_protection_type ) ;\n PROTO_ITEM_SET_GENERATED ( pitem ) ;\n }\n if ( sep_data . stream_start_in_frame > 0 ) {\n pitem = proto_tree_add_uint ( bta2dp_tree , hf_bta2dp_stream_start_in_frame , tvb , 0 , 0 , sep_data . stream_start_in_frame ) ;\n PROTO_ITEM_SET_GENERATED ( pitem ) ;\n }\n if ( sep_data . stream_end_in_frame > 0 ) {\n pitem = proto_tree_add_uint ( bta2dp_tree , hf_bta2dp_stream_end_in_frame , tvb , 0 , 0 , sep_data . stream_end_in_frame ) ;\n PROTO_ITEM_SET_GENERATED ( pitem ) ;\n }\n pitem = proto_tree_add_uint ( bta2dp_tree , hf_bta2dp_stream_number , tvb , 0 , 0 , sep_data . stream_number ) ;\n PROTO_ITEM_SET_GENERATED ( pitem ) ;\n switch ( sep_data . codec ) {\n case CODEC_SBC : codec_dissector = sbc_handle ;\n break ;\n case CODEC_MPEG12_AUDIO : codec_dissector = mp2t_handle ;\n break ;\n case CODEC_MPEG24_AAC : codec_dissector = mpeg_audio_handle ;\n break ;\n case CODEC_ATRAC : codec_dissector = atrac_handle ;\n break ;\n case CODEC_APT_X : codec_dissector = aptx_handle ;\n break ;\n }\n bta2dp_codec_info . codec_dissector = codec_dissector ;\n bta2dp_codec_info . configuration_length = sep_data . configuration_length ;\n bta2dp_codec_info . configuration = sep_data . configuration ;\n bta2dp_codec_info . content_protection_type = sep_data . content_protection_type ;\n bta2dp_codec_info . previous_media_packet_info = sep_data . previous_media_packet_info ;\n bta2dp_codec_info . current_media_packet_info = sep_data . current_media_packet_info ;\n # if RTP_PLAYER_WORKAROUND == TRUE pinfo -> srcport = sep_data . stream_number ;\n pinfo -> destport = sep_data . stream_number ;\n # endif if ( bta2dp_codec_info . content_protection_type == 0 && codec_dissector == aptx_handle ) {\n call_dissector_with_data ( aptx_handle , tvb , pinfo , tree , & bta2dp_codec_info ) ;\n }\n else {\n bluetooth_add_address ( pinfo , & pinfo -> net_dst , sep_data . stream_number , \"BT A2DP\" , pinfo -> num , RTP_MEDIA_AUDIO , & bta2dp_codec_info ) ;\n call_dissector ( rtp_handle , tvb , pinfo , tree ) ;\n }\n offset += tvb_reported_length_remaining ( tvb , offset ) ;\n return offset ;\n }"}
{"idx": 12951, "target": 0, "func": "SRP_user_pwd * SRP_VBASE_get_by_user ( SRP_VBASE * vb , char * username ) {\n return find_user ( vb , username ) ;\n }"}
{"idx": 12952, "target": 0, "func": "static PyObject * string_upper ( PyStringObject * self ) {\n char * s ;\n Py_ssize_t i , n = PyString_GET_SIZE ( self ) ;\n PyObject * newobj ;\n newobj = PyString_FromStringAndSize ( NULL , n ) ;\n if ( ! newobj ) return NULL ;\n s = PyString_AS_STRING ( newobj ) ;\n Py_MEMCPY ( s , PyString_AS_STRING ( self ) , n ) ;\n for ( i = 0 ;\n i < n ;\n i ++ ) {\n int c = Py_CHARMASK ( s [ i ] ) ;\n if ( islower ( c ) ) s [ i ] = _toupper ( c ) ;\n }\n return newobj ;\n }"}
{"idx": 12953, "target": 0, "func": "static int dissect_h245_INTEGER_27_78 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 27U , 78U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 12954, "target": 0, "func": "kadm5_ret_t kadm5_rename_principal ( void * server_handle , krb5_principal source , krb5_principal target ) {\n krb5_db_entry * kdb ;\n osa_princ_ent_rec adb ;\n krb5_error_code ret ;\n kadm5_server_handle_t handle = server_handle ;\n krb5_int16 stype , i ;\n krb5_data * salt = NULL ;\n krb5_tl_data tl ;\n CHECK_HANDLE ( server_handle ) ;\n krb5_clear_error_message ( handle -> context ) ;\n if ( source == NULL || target == NULL ) return EINVAL ;\n if ( ( ret = kdb_get_entry ( handle , target , & kdb , & adb ) ) == 0 ) {\n kdb_free_entry ( handle , kdb , & adb ) ;\n return ( KADM5_DUP ) ;\n }\n if ( ( ret = kdb_get_entry ( handle , source , & kdb , & adb ) ) ) return ret ;\n tl . tl_data_type = 0x7FFE ;\n if ( krb5_dbe_lookup_tl_data ( handle -> context , kdb , & tl ) == 0 && tl . tl_data_length > 0 ) {\n ret = KRB5_PLUGIN_OP_NOTSUPP ;\n goto done ;\n }\n for ( i = 0 ;\n i < kdb -> n_key_data ;\n i ++ ) {\n ret = krb5_dbe_compute_salt ( handle -> context , & kdb -> key_data [ i ] , kdb -> princ , & stype , & salt ) ;\n if ( ret == KRB5_KDB_BAD_SALTTYPE ) ret = KADM5_NO_RENAME_SALT ;\n if ( ret ) goto done ;\n kdb -> key_data [ i ] . key_data_type [ 1 ] = KRB5_KDB_SALTTYPE_SPECIAL ;\n free ( kdb -> key_data [ i ] . key_data_contents [ 1 ] ) ;\n kdb -> key_data [ i ] . key_data_contents [ 1 ] = ( krb5_octet * ) salt -> data ;\n kdb -> key_data [ i ] . key_data_length [ 1 ] = salt -> length ;\n kdb -> key_data [ i ] . key_data_ver = 2 ;\n free ( salt ) ;\n salt = NULL ;\n }\n kadm5_free_principal ( handle -> context , kdb -> princ ) ;\n ret = kadm5_copy_principal ( handle -> context , target , & kdb -> princ ) ;\n if ( ret ) {\n kdb -> princ = NULL ;\n goto done ;\n }\n ret = k5_kadm5_hook_rename ( handle -> context , handle -> hook_handles , KADM5_HOOK_STAGE_PRECOMMIT , source , target ) ;\n if ( ret ) goto done ;\n if ( ( ret = kdb_put_entry ( handle , kdb , & adb ) ) ) goto done ;\n ( void ) k5_kadm5_hook_rename ( handle -> context , handle -> hook_handles , KADM5_HOOK_STAGE_POSTCOMMIT , source , target ) ;\n ret = kdb_delete_entry ( handle , source ) ;\n done : krb5_free_data ( handle -> context , salt ) ;\n kdb_free_entry ( handle , kdb , & adb ) ;\n return ret ;\n }"}
{"idx": 12955, "target": 0, "func": "static inline Quantum GetPixelYellow ( const Image * restrict image , const Quantum * restrict pixel ) {\n return ( pixel [ image -> channel_map [ YellowPixelChannel ] . offset ] ) ;\n }"}
{"idx": 12956, "target": 0, "func": "static void WarnPatented ( gs_font_type42 * pfont , ttfFont * ttf , const char * txt ) {\n if ( ! ttf -> design_grid ) {\n char buf [ gs_font_name_max + 1 ] ;\n int l ;\n gs_font_type42 * base_font = pfont ;\n while ( ( gs_font_type42 * ) base_font -> base != base_font ) base_font = ( gs_font_type42 * ) base_font -> base ;\n if ( ! base_font -> data . warning_patented ) {\n l = min ( sizeof ( buf ) - 1 , base_font -> font_name . size ) ;\n memcpy ( buf , base_font -> font_name . chars , l ) ;\n buf [ l ] = 0 ;\n emprintf2 ( pfont -> memory , \"%s %s requires a patented True Type interpreter.\\n\" , txt , buf ) ;\n base_font -> data . warning_patented = true ;\n }\n }\n }"}
{"idx": 12957, "target": 0, "func": "IN_PROC_BROWSER_TEST_P ( BrowserCloseManagerBrowserTest , TestShutdownMoreThanOnce ) {\n ASSERT_NO_FATAL_FAILURE ( ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/beforeunload.html\" ) ) ) ;\n PrepareForDialog ( browser ( ) ) ;\n RepeatedNotificationObserver cancel_observer ( chrome : : NOTIFICATION_BROWSER_CLOSE_CANCELLED , 1 ) ;\n chrome : : CloseAllBrowsersAndQuit ( ) ;\n chrome : : CloseAllBrowsersAndQuit ( ) ;\n ASSERT_NO_FATAL_FAILURE ( CancelClose ( ) ) ;\n cancel_observer . Wait ( ) ;\n EXPECT_FALSE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_EQ ( 1 , browser ( ) -> tab_strip_model ( ) -> count ( ) ) ;\n RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , 1 ) ;\n chrome : : CloseAllBrowsersAndQuit ( ) ;\n chrome : : CloseAllBrowsersAndQuit ( ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n close_observer . Wait ( ) ;\n EXPECT_TRUE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_TRUE ( BrowserList : : GetInstance ( ) -> empty ( ) ) ;\n }"}
{"idx": 12958, "target": 0, "func": "static void cmd_network_list ( void ) {\n GString * str ;\n GSList * tmp ;\n str = g_string_new ( NULL ) ;\n printformat ( NULL , NULL , MSGLEVEL_CLIENTCRAP , IRCTXT_NETWORK_HEADER ) ;\n for ( tmp = chatnets ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n IRC_CHATNET_REC * rec = tmp -> data ;\n if ( ! IS_IRCNET ( rec ) ) continue ;\n g_string_truncate ( str , 0 ) ;\n if ( rec -> nick != NULL ) g_string_append_printf ( str , \"nick: %s, \" , rec -> nick ) ;\n if ( rec -> alternate_nick != NULL ) g_string_append_printf ( str , \"alternate_nick: %s, \" , rec -> alternate_nick ) ;\n if ( rec -> username != NULL ) g_string_append_printf ( str , \"username: %s, \" , rec -> username ) ;\n if ( rec -> realname != NULL ) g_string_append_printf ( str , \"realname: %s, \" , rec -> realname ) ;\n if ( rec -> own_host != NULL ) g_string_append_printf ( str , \"host: %s, \" , rec -> own_host ) ;\n if ( rec -> autosendcmd != NULL ) g_string_append_printf ( str , \"autosendcmd: %s, \" , rec -> autosendcmd ) ;\n if ( rec -> usermode != NULL ) g_string_append_printf ( str , \"usermode: %s, \" , rec -> usermode ) ;\n if ( rec -> sasl_mechanism != NULL ) g_string_append_printf ( str , \"sasl_mechanism: %s, \" , rec -> sasl_mechanism ) ;\n if ( rec -> sasl_username != NULL ) g_string_append_printf ( str , \"sasl_username: %s, \" , rec -> sasl_username ) ;\n if ( rec -> sasl_password != NULL ) g_string_append_printf ( str , \"sasl_password: (pass), \" ) ;\n if ( rec -> cmd_queue_speed > 0 ) g_string_append_printf ( str , \"cmdspeed: %d, \" , rec -> cmd_queue_speed ) ;\n if ( rec -> max_cmds_at_once > 0 ) g_string_append_printf ( str , \"cmdmax: %d, \" , rec -> max_cmds_at_once ) ;\n if ( rec -> max_query_chans > 0 ) g_string_append_printf ( str , \"querychans: %d, \" , rec -> max_query_chans ) ;\n if ( rec -> max_kicks > 0 ) g_string_append_printf ( str , \"max_kicks: %d, \" , rec -> max_kicks ) ;\n if ( rec -> max_msgs > 0 ) g_string_append_printf ( str , \"max_msgs: %d, \" , rec -> max_msgs ) ;\n if ( rec -> max_modes > 0 ) g_string_append_printf ( str , \"max_modes: %d, \" , rec -> max_modes ) ;\n if ( rec -> max_whois > 0 ) g_string_append_printf ( str , \"max_whois: %d, \" , rec -> max_whois ) ;\n if ( str -> len > 1 ) g_string_truncate ( str , str -> len - 2 ) ;\n printformat ( NULL , NULL , MSGLEVEL_CLIENTCRAP , IRCTXT_NETWORK_LINE , rec -> name , str -> str ) ;\n }\n g_string_free ( str , TRUE ) ;\n printformat ( NULL , NULL , MSGLEVEL_CLIENTCRAP , IRCTXT_NETWORK_FOOTER ) ;\n }"}
{"idx": 12959, "target": 0, "func": "int config_filter_parsers_get ( struct config_filter_context * ctx , pool_t pool , const char * const * modules , const struct config_filter * filter , struct config_module_parser * * parsers_r , struct master_service_settings_output * output_r , const char * * error_r ) {\n struct config_filter_parser * const * src ;\n struct config_module_parser * dest ;\n const char * error = NULL , * * error_p ;\n unsigned int i , count ;\n src = config_filter_find_all ( ctx , pool , modules , filter , output_r ) ;\n for ( count = 0 ;\n src [ 0 ] -> parsers [ count ] . root != NULL ;\n count ++ ) ;\n dest = p_new ( pool , struct config_module_parser , count + 1 ) ;\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n dest [ i ] = src [ 0 ] -> parsers [ i ] ;\n dest [ i ] . parser = settings_parser_dup ( src [ 0 ] -> parsers [ i ] . parser , pool ) ;\n }\n for ( i = 1 ;\n src [ i ] != NULL ;\n i ++ ) {\n if ( config_filter_is_superset ( & src [ i ] -> filter , & src [ i - 1 ] -> filter ) ) error_p = NULL ;\n else error_p = & error ;\n if ( config_module_parser_apply_changes ( dest , src [ i ] , pool , error_p ) < 0 ) {\n i_assert ( error != NULL ) ;\n config_filter_parsers_free ( dest ) ;\n * error_r = error ;\n return - 1 ;\n }\n }\n * parsers_r = dest ;\n return 0 ;\n }"}
{"idx": 12960, "target": 0, "func": "static void redohhead ( struct alltabs * at , int isv ) {\n int i ;\n struct hhead * head ;\n FILE * f ;\n if ( ! isv ) {\n f = at -> hheadf = tmpfile ( ) ;\n head = & at -> hhead ;\n }\n else {\n f = at -> vheadf = tmpfile ( ) ;\n head = & at -> vhead ;\n }\n putlong ( f , head -> version ) ;\n putshort ( f , head -> ascender ) ;\n putshort ( f , head -> descender ) ;\n putshort ( f , head -> linegap ) ;\n putshort ( f , head -> maxwidth ) ;\n putshort ( f , head -> minlsb ) ;\n putshort ( f , head -> minrsb ) ;\n putshort ( f , head -> maxextent ) ;\n putshort ( f , head -> caretSlopeRise ) ;\n putshort ( f , head -> caretSlopeRun ) ;\n for ( i = 0 ;\n i < 5 ;\n ++ i ) putshort ( f , head -> mbz [ i ] ) ;\n putshort ( f , head -> metricformat ) ;\n putshort ( f , head -> numMetrics ) ;\n if ( ! isv ) {\n at -> hheadlen = ftell ( f ) ;\n if ( ( at -> hheadlen & 2 ) != 0 ) putshort ( f , 0 ) ;\n }\n else {\n at -> vheadlen = ftell ( f ) ;\n if ( ( at -> vheadlen & 2 ) != 0 ) putshort ( f , 0 ) ;\n }\n }"}
{"idx": 12961, "target": 0, "func": "static VALUE cState_max_nesting_set ( VALUE self , VALUE depth ) {\n GET_STATE ( self ) ;\n Check_Type ( depth , T_FIXNUM ) ;\n return state -> max_nesting = FIX2LONG ( depth ) ;\n }"}
{"idx": 12962, "target": 0, "func": "IN_PROC_BROWSER_TEST_P ( SupervisedUserNavigationThrottleTest , DontBlockSubFrame ) {\n BlockHost ( kExampleHost2 ) ;\n BlockHost ( kIframeHost2 ) ;\n WebContents * tab = browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) ;\n GURL allowed_url_with_iframes = embedded_test_server ( ) -> GetURL ( kExampleHost , \"/supervised_user/with_iframes.html\" ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , allowed_url_with_iframes ) ;\n EXPECT_FALSE ( IsInterstitialBeingShown ( browser ( ) ) ) ;\n bool loaded1 = false ;\n ASSERT_TRUE ( content : : ExecuteScriptAndExtractBool ( tab , \"loaded1()\" , & loaded1 ) ) ;\n EXPECT_TRUE ( loaded1 ) ;\n bool loaded2 = false ;\n ASSERT_TRUE ( content : : ExecuteScriptAndExtractBool ( tab , \"loaded2()\" , & loaded2 ) ) ;\n EXPECT_TRUE ( loaded2 ) ;\n }"}
{"idx": 12963, "target": 1, "func": "GType hb_gobject_ ## name ## _get_type ( void ) \\ {\n static gsize type_id = 0 ;\n if ( g_once_init_enter ( & type_id ) ) {\n GType id = g_boxed_type_register_static ( g_intern_static_string ( \"hb_\" # name \"_t\" ) , ( GBoxedCopyFunc ) copy_func , ( GBoxedFreeFunc ) free_func ) ;\n g_once_init_leave ( & type_id , id ) ;\n }\n return type_id ;\n \\ }\n # define HB_DEFINE_OBJECT_TYPE ( name ) HB_DEFINE_BOXED_TYPE ( name , hb_ ## name ## _reference , hb_ ## name ## _destroy ) ;\n HB_DEFINE_OBJECT_TYPE ( buffer ) HB_DEFINE_OBJECT_TYPE ( blob ) HB_DEFINE_OBJECT_TYPE ( face ) HB_DEFINE_OBJECT_TYPE ( font ) HB_DEFINE_OBJECT_TYPE ( font_funcs )"}
{"idx": 12964, "target": 1, "func": "static int dissect_mac_fdd_fach ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n guint8 hdr , tctf ;\n guint16 bitoffs = 0 ;\n guint16 tctf_len , chan ;\n proto_tree * fach_tree = NULL ;\n proto_item * channel_type ;\n tvbuff_t * next_tvb ;\n umts_mac_info * macinf ;\n fp_info * fpinf ;\n rlc_info * rlcinf ;\n struct rrc_info * rrcinf ;\n proto_item * ti = NULL ;\n gint c_t ;\n hdr = tvb_get_guint8 ( tvb , 0 ) ;\n tctf = fach_fdd_tctf ( hdr , & bitoffs ) ;\n tctf_len = bitoffs ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"MAC\" ) ;\n col_set_str ( pinfo -> cinfo , COL_INFO , val_to_str_const ( tctf , fach_fdd_tctf_vals , \"Unknown TCTF\" ) ) ;\n ti = proto_tree_add_item ( tree , proto_umts_mac , tvb , 0 , - 1 , ENC_NA ) ;\n fach_tree = proto_item_add_subtree ( ti , ett_mac_fach ) ;\n macinf = ( umts_mac_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_umts_mac , 0 ) ;\n fpinf = ( fp_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_fp , 0 ) ;\n rlcinf = ( rlc_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_rlc , 0 ) ;\n if ( ! macinf || ! fpinf ) {\n proto_tree_add_expert ( fach_tree , pinfo , & ei_mac_per_frame_info_missing , tvb , 0 , - 1 ) ;\n return 1 ;\n }\n proto_tree_add_bits_item ( fach_tree , hf_mac_fach_fdd_tctf , tvb , 0 , tctf_len , ENC_BIG_ENDIAN ) ;\n if ( tctf == TCTF_DCCH_DTCH_FACH_FDD ) {\n macinf -> ctmux [ fpinf -> cur_tb ] = 1 ;\n bitoffs = tree_add_common_dcch_dtch_fields ( tvb , pinfo , fach_tree , bitoffs , fpinf , macinf , rlcinf ) ;\n }\n chan = fpinf -> cur_chan ;\n switch ( tctf ) {\n case TCTF_CCCH_FACH_FDD : proto_item_append_text ( ti , \" (CCCH)\" ) ;\n channel_type = proto_tree_add_uint ( fach_tree , hf_mac_channel , tvb , 0 , 0 , MAC_CCCH ) ;\n PROTO_ITEM_SET_GENERATED ( channel_type ) ;\n next_tvb = tvb_new_subset_remaining ( tvb , 1 ) ;\n call_dissector_with_data ( rlc_ccch_handle , next_tvb , pinfo , tree , data ) ;\n break ;\n case TCTF_DCCH_DTCH_FACH_FDD : c_t = tvb_get_bits8 ( tvb , bitoffs - 4 , 4 ) ;\n rlcinf -> mode [ fpinf -> cur_tb ] = lchId_rlc_map [ c_t + 1 ] ;\n macinf -> content [ fpinf -> cur_tb ] = lchId_type_table [ c_t + 1 ] ;\n switch ( macinf -> content [ fpinf -> cur_tb ] ) {\n case MAC_CONTENT_DCCH : proto_item_append_text ( ti , \" (DCCH)\" ) ;\n channel_type = proto_tree_add_uint ( fach_tree , hf_mac_channel , tvb , 0 , 0 , MAC_DCCH ) ;\n PROTO_ITEM_SET_GENERATED ( channel_type ) ;\n next_tvb = tvb_new_octet_aligned ( tvb , bitoffs , fpinf -> chan_tf_size [ chan ] - bitoffs ) ;\n add_new_data_source ( pinfo , next_tvb , \"Octet-Aligned DCCH Data\" ) ;\n call_dissector_with_data ( rlc_dcch_handle , next_tvb , pinfo , tree , data ) ;\n break ;\n case MAC_CONTENT_PS_DTCH : proto_item_append_text ( ti , \" (PS DTCH)\" ) ;\n channel_type = proto_tree_add_uint ( fach_tree , hf_mac_channel , tvb , 0 , 0 , MAC_DTCH ) ;\n PROTO_ITEM_SET_GENERATED ( channel_type ) ;\n next_tvb = tvb_new_octet_aligned ( tvb , bitoffs , fpinf -> chan_tf_size [ chan ] - bitoffs ) ;\n add_new_data_source ( pinfo , next_tvb , \"Octet-Aligned DCCH Data\" ) ;\n call_dissector_with_data ( rlc_ps_dtch_handle , next_tvb , pinfo , tree , data ) ;\n break ;\n case MAC_CONTENT_CS_DTCH : proto_item_append_text ( ti , \" (CS DTCH)\" ) ;\n expert_add_info ( pinfo , NULL , & ei_mac_cs_dtch_not_implemented ) ;\n break ;\n default : proto_item_append_text ( ti , \" (Unknown FACH Content\" ) ;\n expert_add_info_format ( pinfo , NULL , & ei_mac_unknown_content , \"Unknown FACH Content for this transportblock\" ) ;\n }\n break ;\n case TCTF_CTCH_FACH_FDD : proto_item_append_text ( ti , \" (CTCH)\" ) ;\n channel_type = proto_tree_add_uint ( fach_tree , hf_mac_channel , tvb , 0 , 0 , MAC_CTCH ) ;\n PROTO_ITEM_SET_GENERATED ( channel_type ) ;\n next_tvb = tvb_new_subset_remaining ( tvb , 1 ) ;\n call_dissector_with_data ( rlc_ctch_handle , next_tvb , pinfo , tree , data ) ;\n break ;\n case TCTF_BCCH_FACH_FDD : proto_item_append_text ( ti , \" (BCCH)\" ) ;\n channel_type = proto_tree_add_uint ( fach_tree , hf_mac_channel , tvb , 0 , 0 , MAC_BCCH ) ;\n PROTO_ITEM_SET_GENERATED ( channel_type ) ;\n next_tvb = tvb_new_octet_aligned ( tvb , 2 , ( tvb_reported_length ( tvb ) * 8 ) - 2 ) ;\n add_new_data_source ( pinfo , next_tvb , \"Octet-Aligned BCCH Data\" ) ;\n rrcinf = ( rrc_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_rrc , 0 ) ;\n if ( ! rrcinf ) {\n rrcinf = wmem_new0 ( wmem_file_scope ( ) , struct rrc_info ) ;\n p_add_proto_data ( wmem_file_scope ( ) , pinfo , proto_rrc , 0 , rrcinf ) ;\n }\n rrcinf -> msgtype [ fpinf -> cur_tb ] = RRC_MESSAGE_TYPE_BCCH_FACH ;\n call_dissector_with_data ( rrc_handle , next_tvb , pinfo , tree , data ) ;\n break ;\n case TCTF_MSCH_FACH_FDD : case TCTF_MCCH_FACH_FDD : case TCTF_MTCH_FACH_FDD : expert_add_info ( pinfo , NULL , & ei_mac_fach_content_type_unknown ) ;\n break ;\n default : proto_item_append_text ( ti , \" (Unknown FACH Content)\" ) ;\n expert_add_info_format ( pinfo , NULL , & ei_mac_unknown_content , \" Unknown FACH Content\" ) ;\n break ;\n }\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 12965, "target": 1, "func": "static void fdct4 ( const int16_t * input , int16_t * output ) {\n int16_t step [ 4 ] ;\n int temp1 , temp2 ;\n step [ 0 ] = input [ 0 ] + input [ 3 ] ;\n step [ 1 ] = input [ 1 ] + input [ 2 ] ;\n step [ 2 ] = input [ 1 ] - input [ 2 ] ;\n step [ 3 ] = input [ 0 ] - input [ 3 ] ;\n temp1 = ( step [ 0 ] + step [ 1 ] ) * cospi_16_64 ;\n temp2 = ( step [ 0 ] - step [ 1 ] ) * cospi_16_64 ;\n output [ 0 ] = fdct_round_shift ( temp1 ) ;\n output [ 2 ] = fdct_round_shift ( temp2 ) ;\n temp1 = step [ 2 ] * cospi_24_64 + step [ 3 ] * cospi_8_64 ;\n temp2 = - step [ 2 ] * cospi_8_64 + step [ 3 ] * cospi_24_64 ;\n output [ 1 ] = fdct_round_shift ( temp1 ) ;\n output [ 3 ] = fdct_round_shift ( temp2 ) ;\n }"}
{"idx": 12966, "target": 0, "func": "static int casecmp ( const chr * x , const chr * y , size_t len ) {\n for ( ;\n len > 0 ;\n len -- , x ++ , y ++ ) {\n if ( ( * x != * y ) && ( pg_wc_tolower ( * x ) != pg_wc_tolower ( * y ) ) ) return 1 ;\n }\n return 0 ;\n }"}
{"idx": 12967, "target": 0, "func": "static uint32_t gic_dist_readb ( void * opaque , hwaddr offset ) {\n GICState * s = ( GICState * ) opaque ;\n uint32_t res ;\n int irq ;\n int i ;\n int cpu ;\n int cm ;\n int mask ;\n cpu = gic_get_current_cpu ( s ) ;\n cm = 1 << cpu ;\n if ( offset < 0x100 ) {\n if ( offset == 0 ) return s -> enabled ;\n if ( offset == 4 ) return ( ( s -> num_irq / 32 ) - 1 ) | ( ( NUM_CPU ( s ) - 1 ) << 5 ) ;\n if ( offset < 0x08 ) return 0 ;\n if ( offset >= 0x80 ) {\n return 0 ;\n }\n goto bad_reg ;\n }\n else if ( offset < 0x200 ) {\n if ( offset < 0x180 ) irq = ( offset - 0x100 ) * 8 ;\n else irq = ( offset - 0x180 ) * 8 ;\n irq += GIC_BASE_IRQ ;\n if ( irq >= s -> num_irq ) goto bad_reg ;\n res = 0 ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n if ( GIC_TEST_ENABLED ( irq + i , cm ) ) {\n res |= ( 1 << i ) ;\n }\n }\n }\n else if ( offset < 0x300 ) {\n if ( offset < 0x280 ) irq = ( offset - 0x200 ) * 8 ;\n else irq = ( offset - 0x280 ) * 8 ;\n irq += GIC_BASE_IRQ ;\n if ( irq >= s -> num_irq ) goto bad_reg ;\n res = 0 ;\n mask = ( irq < GIC_INTERNAL ) ? cm : ALL_CPU_MASK ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n if ( GIC_TEST_PENDING ( irq + i , mask ) ) {\n res |= ( 1 << i ) ;\n }\n }\n }\n else if ( offset < 0x400 ) {\n irq = ( offset - 0x300 ) * 8 + GIC_BASE_IRQ ;\n if ( irq >= s -> num_irq ) goto bad_reg ;\n res = 0 ;\n mask = ( irq < GIC_INTERNAL ) ? cm : ALL_CPU_MASK ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n if ( GIC_TEST_ACTIVE ( irq + i , mask ) ) {\n res |= ( 1 << i ) ;\n }\n }\n }\n else if ( offset < 0x800 ) {\n irq = ( offset - 0x400 ) + GIC_BASE_IRQ ;\n if ( irq >= s -> num_irq ) goto bad_reg ;\n res = GIC_GET_PRIORITY ( irq , cpu ) ;\n }\n else if ( offset < 0xc00 ) {\n if ( s -> num_cpu == 1 && s -> revision != REV_11MPCORE ) {\n res = 0 ;\n }\n else {\n irq = ( offset - 0x800 ) + GIC_BASE_IRQ ;\n if ( irq >= s -> num_irq ) {\n goto bad_reg ;\n }\n if ( irq >= 29 && irq <= 31 ) {\n res = cm ;\n }\n else {\n res = GIC_TARGET ( irq ) ;\n }\n }\n }\n else if ( offset < 0xf00 ) {\n irq = ( offset - 0xc00 ) * 2 + GIC_BASE_IRQ ;\n if ( irq >= s -> num_irq ) goto bad_reg ;\n res = 0 ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n if ( GIC_TEST_MODEL ( irq + i ) ) res |= ( 1 << ( i * 2 ) ) ;\n if ( GIC_TEST_TRIGGER ( irq + i ) ) res |= ( 2 << ( i * 2 ) ) ;\n }\n }\n else if ( offset < 0xfe0 ) {\n goto bad_reg ;\n }\n else {\n if ( offset & 3 ) {\n res = 0 ;\n }\n else {\n res = gic_id [ ( offset - 0xfe0 ) >> 2 ] ;\n }\n }\n return res ;\n bad_reg : qemu_log_mask ( LOG_GUEST_ERROR , \"gic_dist_readb: Bad offset %x\\n\" , ( int ) offset ) ;\n return 0 ;\n }"}
{"idx": 12968, "target": 0, "func": "static int dissect_diameter_base_framed_ipv6_prefix ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , void * data ) {\n diam_sub_dis_t * diam_sub_dis = ( diam_sub_dis_t * ) data ;\n guint8 prefix_len , prefix_len_bytes ;\n proto_item * pi ;\n proto_tree_add_item ( tree , hf_framed_ipv6_prefix_reserved , tvb , 0 , 1 , ENC_BIG_ENDIAN ) ;\n pi = proto_tree_add_item ( tree , hf_framed_ipv6_prefix_length , tvb , 1 , 1 , ENC_BIG_ENDIAN ) ;\n prefix_len = tvb_get_guint8 ( tvb , 1 ) ;\n if ( prefix_len > 128 ) {\n expert_add_info ( pinfo , pi , & ei_diameter_invalid_ipv6_prefix_len ) ;\n }\n prefix_len_bytes = prefix_len / 8 ;\n if ( prefix_len % 8 ) prefix_len_bytes ++ ;\n proto_tree_add_item ( tree , hf_framed_ipv6_prefix_bytes , tvb , 2 , prefix_len_bytes , ENC_NA ) ;\n if ( prefix_len_bytes == 16 ) {\n proto_tree_add_item ( tree , hf_framed_ipv6_prefix_ipv6 , tvb , 2 , prefix_len_bytes , ENC_NA ) ;\n }\n else if ( prefix_len_bytes < 16 ) {\n struct e_in6_addr value ;\n address addr ;\n memset ( & value . bytes , 0 , sizeof ( value ) ) ;\n tvb_memcpy ( tvb , ( guint8 * ) & value . bytes , 2 , prefix_len_bytes ) ;\n value . bytes [ prefix_len_bytes ] = value . bytes [ prefix_len_bytes ] & ( 0xff << ( prefix_len % 8 ) ) ;\n proto_tree_add_ipv6 ( tree , hf_framed_ipv6_prefix_ipv6 , tvb , 2 , prefix_len_bytes , & value ) ;\n set_address ( & addr , AT_IPv6 , 16 , value . bytes ) ;\n diam_sub_dis -> avp_str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"%s/%u\" , address_to_str ( wmem_packet_scope ( ) , & addr ) , prefix_len ) ;\n }\n return ( prefix_len_bytes + 2 ) ;\n }"}
{"idx": 12969, "target": 0, "func": "static void read_status ( struct recvbuf * rbufp , int restrict_mask ) {\n struct peer * peer ;\n const u_char * cp ;\n size_t n ;\n u_short a_st [ CTL_MAX_DATA_LEN / sizeof ( u_short ) ] ;\n # ifdef DEBUG if ( debug > 2 ) printf ( \"read_status: ID %d\\n\" , res_associd ) ;\n # endif if ( res_associd ) {\n peer = findpeerbyassoc ( res_associd ) ;\n if ( NULL == peer ) {\n ctl_error ( CERR_BADASSOC ) ;\n return ;\n }\n rpkt . status = htons ( ctlpeerstatus ( peer ) ) ;\n if ( res_authokay ) peer -> num_events = 0 ;\n for ( cp = def_peer_var ;\n * cp != 0 ;\n cp ++ ) ctl_putpeer ( ( int ) * cp , peer ) ;\n ctl_flushpkt ( 0 ) ;\n return ;\n }\n n = 0 ;\n rpkt . status = htons ( ctlsysstatus ( ) ) ;\n for ( peer = peer_list ;\n peer != NULL ;\n peer = peer -> p_link ) {\n a_st [ n ++ ] = htons ( peer -> associd ) ;\n a_st [ n ++ ] = htons ( ctlpeerstatus ( peer ) ) ;\n if ( n + 1 >= COUNTOF ( a_st ) ) {\n ctl_putdata ( ( void * ) a_st , n * sizeof ( a_st [ 0 ] ) , 1 ) ;\n n = 0 ;\n }\n }\n if ( n ) ctl_putdata ( ( void * ) a_st , n * sizeof ( a_st [ 0 ] ) , 1 ) ;\n ctl_flushpkt ( 0 ) ;\n }"}
{"idx": 12970, "target": 0, "func": "static int dissect_h245_T38FaxTcpOptions ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T38FaxTcpOptions , T38FaxTcpOptions_sequence ) ;\n return offset ;\n }"}
{"idx": 12971, "target": 0, "func": "static void tree_content_replace ( struct tree_entry * root , const unsigned char * sha1 , const uint16_t mode , struct tree_content * newtree ) {\n if ( ! S_ISDIR ( mode ) ) die ( \"Root cannot be a non-directory\" ) ;\n hashclr ( root -> versions [ 0 ] . sha1 ) ;\n hashcpy ( root -> versions [ 1 ] . sha1 , sha1 ) ;\n if ( root -> tree ) release_tree_content_recursive ( root -> tree ) ;\n root -> tree = newtree ;\n }"}
{"idx": 12972, "target": 0, "func": "int uwsgi_php_init ( void ) {\n struct uwsgi_string_list * pset = uphp . set ;\n struct uwsgi_string_list * append_config = uphp . append_config ;\n # ifdef ZTS tsrm_startup ( 1 , 1 , 0 , NULL ) ;\n # endif sapi_startup ( & uwsgi_sapi_module ) ;\n while ( append_config ) {\n uwsgi_php_append_config ( append_config -> value ) ;\n append_config = append_config -> next ;\n }\n while ( pset ) {\n uwsgi_php_set ( pset -> value ) ;\n pset = pset -> next ;\n }\n if ( uphp . dump_config ) {\n uwsgi_log ( \"--- PHP custom config ---\\n\\n\" ) ;\n uwsgi_log ( \"%s\\n\" , uwsgi_sapi_module . ini_entries ) ;\n uwsgi_log ( \"--- end of PHP custom config ---\\n\" ) ;\n }\n if ( uphp . docroot ) {\n char * orig_docroot = uphp . docroot ;\n uphp . docroot = uwsgi_expand_path ( uphp . docroot , strlen ( uphp . docroot ) , NULL ) ;\n if ( ! uphp . docroot ) {\n uwsgi_log ( \"unable to set php docroot to %s\\n\" , orig_docroot ) ;\n exit ( 1 ) ;\n }\n uwsgi_log ( \"PHP document root set to %s\\n\" , uphp . docroot ) ;\n uphp . docroot_len = strlen ( uphp . docroot ) ;\n }\n if ( uphp . sapi_name ) {\n uwsgi_sapi_module . name = uphp . sapi_name ;\n }\n uwsgi_sapi_module . startup ( & uwsgi_sapi_module ) ;\n uwsgi_log ( \"PHP %s initialized\\n\" , PHP_VERSION ) ;\n return 0 ;\n }"}
{"idx": 12973, "target": 0, "func": "static int make_tables_writable ( Picture * pic ) {\n int ret , i ;\n # define MAKE_WRITABLE ( table ) do {\n if ( pic -> table && ( ret = av_buffer_make_writable ( & pic -> table ) ) < 0 ) return ret ;\n \\ }\n while ( 0 ) MAKE_WRITABLE ( mb_var_buf ) ;\n MAKE_WRITABLE ( mc_mb_var_buf ) ;\n MAKE_WRITABLE ( mb_mean_buf ) ;\n MAKE_WRITABLE ( mbskip_table_buf ) ;\n MAKE_WRITABLE ( qscale_table_buf ) ;\n MAKE_WRITABLE ( mb_type_buf ) ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n MAKE_WRITABLE ( motion_val_buf [ i ] ) ;\n MAKE_WRITABLE ( ref_index_buf [ i ] ) ;\n }\n return 0 ;\n }"}
{"idx": 12974, "target": 0, "func": "int dissect_h225_CircuitInfo ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_CircuitInfo , CircuitInfo_sequence ) ;\n return offset ;\n }"}
{"idx": 12975, "target": 0, "func": "static int dissect_h245_ConferenceID ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 1 , 32 , FALSE , NULL ) ;\n return offset ;\n }"}
{"idx": 12976, "target": 0, "func": "static int locking_available ( void ) {\n struct active_request_slot * slot ;\n struct slot_results results ;\n struct strbuf in_buffer = STRBUF_INIT ;\n struct buffer out_buffer = {\n STRBUF_INIT , 0 }\n ;\n struct curl_slist * dav_headers = NULL ;\n struct xml_ctx ctx ;\n int lock_flags = 0 ;\n char * escaped ;\n escaped = xml_entities ( repo -> url ) ;\n strbuf_addf ( & out_buffer . buf , PROPFIND_SUPPORTEDLOCK_REQUEST , escaped ) ;\n free ( escaped ) ;\n dav_headers = curl_slist_append ( dav_headers , \"Depth: 0\" ) ;\n dav_headers = curl_slist_append ( dav_headers , \"Content-Type: text/xml\" ) ;\n slot = get_active_slot ( ) ;\n slot -> results = & results ;\n curl_setup_http ( slot -> curl , repo -> url , DAV_PROPFIND , & out_buffer , fwrite_buffer ) ;\n curl_easy_setopt ( slot -> curl , CURLOPT_HTTPHEADER , dav_headers ) ;\n curl_easy_setopt ( slot -> curl , CURLOPT_FILE , & in_buffer ) ;\n if ( start_active_slot ( slot ) ) {\n run_active_slot ( slot ) ;\n if ( results . curl_result == CURLE_OK ) {\n XML_Parser parser = XML_ParserCreate ( NULL ) ;\n enum XML_Status result ;\n ctx . name = xcalloc ( 10 , 1 ) ;\n ctx . len = 0 ;\n ctx . cdata = NULL ;\n ctx . userFunc = handle_lockprop_ctx ;\n ctx . userData = & lock_flags ;\n XML_SetUserData ( parser , & ctx ) ;\n XML_SetElementHandler ( parser , xml_start_tag , xml_end_tag ) ;\n result = XML_Parse ( parser , in_buffer . buf , in_buffer . len , 1 ) ;\n free ( ctx . name ) ;\n if ( result != XML_STATUS_OK ) {\n fprintf ( stderr , \"XML error: %s\\n\" , XML_ErrorString ( XML_GetErrorCode ( parser ) ) ) ;\n lock_flags = 0 ;\n }\n XML_ParserFree ( parser ) ;\n if ( ! lock_flags ) error ( \"no DAV locking support on %s\" , repo -> url ) ;\n }\n else {\n error ( \"Cannot access URL %s, return code %d\" , repo -> url , results . curl_result ) ;\n lock_flags = 0 ;\n }\n }\n else {\n error ( \"Unable to start PROPFIND request on %s\" , repo -> url ) ;\n }\n strbuf_release ( & out_buffer . buf ) ;\n strbuf_release ( & in_buffer ) ;\n curl_slist_free_all ( dav_headers ) ;\n return lock_flags ;\n }"}
{"idx": 12977, "target": 0, "func": "static void test_bug4079 ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND my_bind [ 1 ] ;\n const char * stmt_text ;\n uint32 res ;\n int rc ;\n myheader ( \"test_bug4079\" ) ;\n mysql_query ( mysql , \"DROP TABLE IF EXISTS t1\" ) ;\n mysql_query ( mysql , \"CREATE TABLE t1 (a int)\" ) ;\n mysql_query ( mysql , \"INSERT INTO t1 VALUES (1), (2)\" ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n stmt_text = \"SELECT 1 < (SELECT a FROM t1)\" ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 0 ] . buffer = ( void * ) & res ;\n mysql_stmt_bind_result ( stmt , my_bind ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc != 0 && rc != MYSQL_NO_DATA ) ;\n if ( ! opt_silent ) printf ( \"Got error from mysql_stmt_fetch (as expected):\\n%s\\n\" , mysql_stmt_error ( stmt ) ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 12978, "target": 0, "func": "static void client_use_result ( ) {\n MYSQL_RES * result ;\n int rc ;\n myheader ( \"client_use_result\" ) ;\n rc = mysql_query ( mysql , \"SELECT * FROM t1\" ) ;\n myquery ( rc ) ;\n result = mysql_use_result ( mysql ) ;\n mytest ( result ) ;\n ( void ) my_process_result_set ( result ) ;\n mysql_free_result ( result ) ;\n }"}
{"idx": 12979, "target": 0, "func": "void ufmt_64tou ( UChar * buffer , int32_t * len , uint64_t value , uint8_t radix , UBool uselower , int32_t minDigits ) {\n int32_t length = 0 ;\n uint32_t digit ;\n UChar * left , * right , temp ;\n do {\n digit = ( uint32_t ) ( value % radix ) ;\n value = value / radix ;\n buffer [ length ++ ] = ( UChar ) ( uselower ? TO_LC_DIGIT ( digit ) : TO_UC_DIGIT ( digit ) ) ;\n }\n while ( value ) ;\n if ( minDigits != - 1 && length < minDigits ) {\n while ( length < minDigits && length < * len ) buffer [ length ++ ] = DIGIT_0 ;\n }\n left = buffer ;\n right = buffer + length ;\n while ( left < -- right ) {\n temp = * left ;\n * left ++ = * right ;\n * right = temp ;\n }\n * len = length ;\n }"}
{"idx": 12980, "target": 0, "func": "void _hb_graphite2_shaper_font_data_destroy ( hb_graphite2_shaper_font_data_t * data ) {\n gr_font_destroy ( data ) ;\n }"}
{"idx": 12981, "target": 0, "func": "static void tcg_exec_all ( void ) {\n int r ;\n qemu_clock_warp ( vm_clock ) ;\n if ( next_cpu == NULL ) {\n next_cpu = first_cpu ;\n }\n for ( ;\n next_cpu != NULL && ! exit_request ;\n next_cpu = next_cpu -> next_cpu ) {\n CPUArchState * env = next_cpu ;\n CPUState * cpu = ENV_GET_CPU ( env ) ;\n qemu_clock_enable ( vm_clock , ( env -> singlestep_enabled & SSTEP_NOTIMER ) == 0 ) ;\n if ( cpu_can_run ( cpu ) ) {\n r = tcg_cpu_exec ( env ) ;\n if ( r == EXCP_DEBUG ) {\n cpu_handle_guest_debug ( cpu ) ;\n break ;\n }\n }\n else if ( cpu -> stop || cpu -> stopped ) {\n break ;\n }\n }\n exit_request = 0 ;\n }"}
{"idx": 12982, "target": 0, "func": "void gs_memory_set_gc_status ( gs_ref_memory_t * mem , const gs_memory_gc_status_t * pstat ) {\n mem -> gc_status = * pstat ;\n ialloc_set_limit ( mem ) ;\n }"}
{"idx": 12983, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize ) ;\n DECL_PIOCTL ( PGetCacheSize ) ;\n DECL_PIOCTL ( PRemoveCallBack ) ;\n DECL_PIOCTL ( PNewCell ) ;\n DECL_PIOCTL ( PNewAlias ) ;\n DECL_PIOCTL ( PListCells ) ;\n DECL_PIOCTL ( PListAliases ) ;\n DECL_PIOCTL ( PRemoveMount ) ;\n DECL_PIOCTL ( PGetCellStatus ) ;\n DECL_PIOCTL ( PSetCellStatus ) ;\n DECL_PIOCTL ( PFlushVolumeData ) ;\n DECL_PIOCTL ( PFlushAllVolumeData ) ;\n DECL_PIOCTL ( PGetVnodeXStatus ) ;\n DECL_PIOCTL ( PGetVnodeXStatus2 ) ;\n DECL_PIOCTL ( PSetSysName ) ;\n DECL_PIOCTL ( PSetSPrefs ) ;\n DECL_PIOCTL ( PSetSPrefs33 ) ;\n DECL_PIOCTL ( PGetSPrefs ) ;\n DECL_PIOCTL ( PExportAfs ) ;\n DECL_PIOCTL ( PGag ) ;\n DECL_PIOCTL ( PTwiddleRx ) ;\n DECL_PIOCTL ( PGetInitParams )"}
{"idx": 12984, "target": 0, "func": "static void iax2_populate_pinfo_from_packet_data ( packet_info * pinfo , const iax_packet_data * p ) {\n if ( p -> call_data != NULL ) {\n pinfo -> p2p_dir = p -> reversed ? P2P_DIR_RECV : P2P_DIR_SENT ;\n col_set_str ( pinfo -> cinfo , COL_IF_DIR , p -> reversed ? \"rev\" : \"fwd\" ) ;\n }\n }"}
{"idx": 12985, "target": 0, "func": "static void save_mtu ( packet_info * pinfo , bluetooth_data_t * bluetooth_data , guint mtu ) {\n wmem_tree_key_t key [ 4 ] ;\n guint32 frame_number ;\n mtu_data_t * mtu_data ;\n frame_number = pinfo -> num ;\n key [ 0 ] . length = 1 ;\n key [ 0 ] . key = & bluetooth_data -> interface_id ;\n key [ 1 ] . length = 1 ;\n key [ 1 ] . key = & bluetooth_data -> adapter_id ;\n key [ 2 ] . length = 1 ;\n key [ 2 ] . key = & frame_number ;\n key [ 3 ] . length = 0 ;\n key [ 3 ] . key = NULL ;\n mtu_data = wmem_new ( wmem_file_scope ( ) , mtu_data_t ) ;\n mtu_data -> mtu = mtu ;\n wmem_tree_insert32_array ( mtus , key , mtu_data ) ;\n }"}
{"idx": 12986, "target": 0, "func": "static int dissect_diameter_user_name ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n diam_sub_dis_t * diam_sub_dis = ( diam_sub_dis_t * ) data ;\n guint32 application_id = 0 , str_len ;\n if ( diam_sub_dis ) {\n application_id = diam_sub_dis -> application_id ;\n }\n switch ( application_id ) {\n case DIAM_APPID_3GPP_S6A_S6D : case DIAM_APPID_3GPP_SLH : case DIAM_APPID_3GPP_S7A : str_len = tvb_reported_length ( tvb ) ;\n dissect_e212_utf8_imsi ( tvb , pinfo , tree , 0 , str_len ) ;\n return str_len ;\n }\n return 0 ;\n }"}
{"idx": 12987, "target": 0, "func": "void vp9_fht8x8_c ( const int16_t * input , tran_low_t * output , int stride , int tx_type ) {\n if ( tx_type == DCT_DCT ) {\n vp9_fdct8x8_c ( input , output , stride ) ;\n }\n else {\n tran_low_t out [ 64 ] ;\n tran_low_t * outptr = & out [ 0 ] ;\n int i , j ;\n tran_low_t temp_in [ 8 ] , temp_out [ 8 ] ;\n const transform_2d ht = FHT_8 [ tx_type ] ;\n for ( i = 0 ;\n i < 8 ;\n ++ i ) {\n for ( j = 0 ;\n j < 8 ;\n ++ j ) temp_in [ j ] = input [ j * stride + i ] * 4 ;\n ht . cols ( temp_in , temp_out ) ;\n for ( j = 0 ;\n j < 8 ;\n ++ j ) outptr [ j * 8 + i ] = temp_out [ j ] ;\n }\n for ( i = 0 ;\n i < 8 ;\n ++ i ) {\n for ( j = 0 ;\n j < 8 ;\n ++ j ) temp_in [ j ] = out [ j + i * 8 ] ;\n ht . rows ( temp_in , temp_out ) ;\n for ( j = 0 ;\n j < 8 ;\n ++ j ) output [ j + i * 8 ] = ( temp_out [ j ] + ( temp_out [ j ] < 0 ) ) >> 1 ;\n }\n }\n }"}
{"idx": 12988, "target": 0, "func": "TEST_F ( FullscreenControllerStateUnitTest , TwoFullscreenedTabsOneCaptured ) {\n content : : WebContentsDelegate * const wc_delegate = static_cast < content : : WebContentsDelegate * > ( browser ( ) ) ;\n ASSERT_TRUE ( wc_delegate -> EmbedsFullscreenWidget ( ) ) ;\n AddTab ( browser ( ) , GURL ( url : : kAboutBlankURL ) ) ;\n AddTab ( browser ( ) , GURL ( url : : kAboutBlankURL ) ) ;\n content : : WebContents * const first_tab = browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 0 ) ;\n content : : WebContents * const second_tab = browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 1 ) ;\n browser ( ) -> tab_strip_model ( ) -> ActivateTabAt ( 0 , true ) ;\n const gfx : : Size kCaptureSize ( 1280 , 720 ) ;\n first_tab -> IncrementCapturerCount ( kCaptureSize ) ;\n ASSERT_TRUE ( InvokeEvent ( TAB_FULLSCREEN_TRUE ) ) ;\n EXPECT_FALSE ( browser ( ) -> window ( ) -> IsFullscreen ( ) ) ;\n EXPECT_TRUE ( wc_delegate -> IsFullscreenForTabOrPending ( first_tab ) ) ;\n EXPECT_FALSE ( wc_delegate -> IsFullscreenForTabOrPending ( second_tab ) ) ;\n EXPECT_FALSE ( GetFullscreenController ( ) -> IsWindowFullscreenForTabOrPending ( ) ) ;\n browser ( ) -> tab_strip_model ( ) -> ActivateTabAt ( 1 , true ) ;\n ASSERT_TRUE ( InvokeEvent ( TAB_FULLSCREEN_TRUE ) ) ;\n ASSERT_TRUE ( InvokeEvent ( WINDOW_CHANGE ) ) ;\n EXPECT_TRUE ( browser ( ) -> window ( ) -> IsFullscreen ( ) ) ;\n EXPECT_TRUE ( wc_delegate -> IsFullscreenForTabOrPending ( first_tab ) ) ;\n EXPECT_TRUE ( wc_delegate -> IsFullscreenForTabOrPending ( second_tab ) ) ;\n EXPECT_TRUE ( GetFullscreenController ( ) -> IsWindowFullscreenForTabOrPending ( ) ) ;\n ASSERT_TRUE ( InvokeEvent ( TAB_FULLSCREEN_FALSE ) ) ;\n ASSERT_TRUE ( InvokeEvent ( WINDOW_CHANGE ) ) ;\n EXPECT_FALSE ( browser ( ) -> window ( ) -> IsFullscreen ( ) ) ;\n EXPECT_TRUE ( wc_delegate -> IsFullscreenForTabOrPending ( first_tab ) ) ;\n EXPECT_FALSE ( wc_delegate -> IsFullscreenForTabOrPending ( second_tab ) ) ;\n EXPECT_FALSE ( GetFullscreenController ( ) -> IsWindowFullscreenForTabOrPending ( ) ) ;\n browser ( ) -> tab_strip_model ( ) -> ActivateTabAt ( 0 , true ) ;\n ASSERT_TRUE ( InvokeEvent ( TAB_FULLSCREEN_FALSE ) ) ;\n EXPECT_FALSE ( browser ( ) -> window ( ) -> IsFullscreen ( ) ) ;\n EXPECT_FALSE ( wc_delegate -> IsFullscreenForTabOrPending ( first_tab ) ) ;\n EXPECT_FALSE ( wc_delegate -> IsFullscreenForTabOrPending ( second_tab ) ) ;\n EXPECT_FALSE ( GetFullscreenController ( ) -> IsWindowFullscreenForTabOrPending ( ) ) ;\n }"}
{"idx": 12989, "target": 0, "func": "static int virtio_exit_pci ( PCIDevice * pci_dev ) {\n return msix_uninit ( pci_dev ) ;\n }"}
{"idx": 12990, "target": 0, "func": "static void set_checkpoint_signal ( void ) {\n }"}
{"idx": 12991, "target": 0, "func": "const char * SSL_alert_desc_string_long ( int value ) {\n const char * str ;\n switch ( value & 0xff ) {\n case SSL3_AD_CLOSE_NOTIFY : str = \"close notify\" ;\n break ;\n case SSL3_AD_UNEXPECTED_MESSAGE : str = \"unexpected_message\" ;\n break ;\n case SSL3_AD_BAD_RECORD_MAC : str = \"bad record mac\" ;\n break ;\n case SSL3_AD_DECOMPRESSION_FAILURE : str = \"decompression failure\" ;\n break ;\n case SSL3_AD_HANDSHAKE_FAILURE : str = \"handshake failure\" ;\n break ;\n case SSL3_AD_NO_CERTIFICATE : str = \"no certificate\" ;\n break ;\n case SSL3_AD_BAD_CERTIFICATE : str = \"bad certificate\" ;\n break ;\n case SSL3_AD_UNSUPPORTED_CERTIFICATE : str = \"unsupported certificate\" ;\n break ;\n case SSL3_AD_CERTIFICATE_REVOKED : str = \"certificate revoked\" ;\n break ;\n case SSL3_AD_CERTIFICATE_EXPIRED : str = \"certificate expired\" ;\n break ;\n case SSL3_AD_CERTIFICATE_UNKNOWN : str = \"certificate unknown\" ;\n break ;\n case SSL3_AD_ILLEGAL_PARAMETER : str = \"illegal parameter\" ;\n break ;\n case TLS1_AD_DECRYPTION_FAILED : str = \"decryption failed\" ;\n break ;\n case TLS1_AD_RECORD_OVERFLOW : str = \"record overflow\" ;\n break ;\n case TLS1_AD_UNKNOWN_CA : str = \"unknown CA\" ;\n break ;\n case TLS1_AD_ACCESS_DENIED : str = \"access denied\" ;\n break ;\n case TLS1_AD_DECODE_ERROR : str = \"decode error\" ;\n break ;\n case TLS1_AD_DECRYPT_ERROR : str = \"decrypt error\" ;\n break ;\n case TLS1_AD_EXPORT_RESTRICTION : str = \"export restriction\" ;\n break ;\n case TLS1_AD_PROTOCOL_VERSION : str = \"protocol version\" ;\n break ;\n case TLS1_AD_INSUFFICIENT_SECURITY : str = \"insufficient security\" ;\n break ;\n case TLS1_AD_INTERNAL_ERROR : str = \"internal error\" ;\n break ;\n case TLS1_AD_USER_CANCELLED : str = \"user canceled\" ;\n break ;\n case TLS1_AD_NO_RENEGOTIATION : str = \"no renegotiation\" ;\n break ;\n case TLS1_AD_UNSUPPORTED_EXTENSION : str = \"unsupported extension\" ;\n break ;\n case TLS1_AD_CERTIFICATE_UNOBTAINABLE : str = \"certificate unobtainable\" ;\n break ;\n case TLS1_AD_UNRECOGNIZED_NAME : str = \"unrecognized name\" ;\n break ;\n case TLS1_AD_BAD_CERTIFICATE_STATUS_RESPONSE : str = \"bad certificate status response\" ;\n break ;\n case TLS1_AD_BAD_CERTIFICATE_HASH_VALUE : str = \"bad certificate hash value\" ;\n break ;\n case TLS1_AD_UNKNOWN_PSK_IDENTITY : str = \"unknown PSK identity\" ;\n break ;\n default : str = \"unknown\" ;\n break ;\n }\n return ( str ) ;\n }"}
{"idx": 12992, "target": 0, "func": "TEST_F ( ShortcutsProviderTest , DaysAgoMatches ) {\n base : : string16 text ( ASCIIToUTF16 ( \"ago\" ) ) ;\n ExpectedURLs expected_urls ;\n expected_urls . push_back ( ExpectedURLAndAllowedToBeDefault ( \"http://www.daysagotest.com/a.html\" , false ) ) ;\n expected_urls . push_back ( ExpectedURLAndAllowedToBeDefault ( \"http://www.daysagotest.com/b.html\" , false ) ) ;\n expected_urls . push_back ( ExpectedURLAndAllowedToBeDefault ( \"http://www.daysagotest.com/c.html\" , false ) ) ;\n RunShortcutsProviderTest ( provider_ , text , false , expected_urls , \"http://www.daysagotest.com/a.html\" , base : : string16 ( ) ) ;\n }"}
{"idx": 12993, "target": 0, "func": "static int _warc_bid ( struct archive_read * a , int best_bid ) {\n const char * hdr ;\n ssize_t nrd ;\n unsigned int ver ;\n ( void ) best_bid ;\n if ( ( hdr = __archive_read_ahead ( a , 12U , & nrd ) ) == NULL ) {\n return - 1 ;\n }\n else if ( nrd < 12 ) {\n return - 1 ;\n }\n ver = _warc_rdver ( hdr , nrd ) ;\n if ( ver < 1200U || ver > 10000U ) {\n return - 1 ;\n }\n return ( 64 ) ;\n }"}
{"idx": 12994, "target": 0, "func": "static void write_mb_modes_kf ( const VP9_COMMON * cm , const MACROBLOCKD * xd , MODE_INFO * mi_8x8 , vp9_writer * w ) {\n const struct segmentation * const seg = & cm -> seg ;\n const MODE_INFO * const mi = mi_8x8 ;\n const MODE_INFO * const above_mi = mi_8x8 [ - xd -> mi_stride ] . src_mi ;\n const MODE_INFO * const left_mi = xd -> left_available ? mi_8x8 [ - 1 ] . src_mi : NULL ;\n const MB_MODE_INFO * const mbmi = & mi -> mbmi ;\n const BLOCK_SIZE bsize = mbmi -> sb_type ;\n if ( seg -> update_map ) write_segment_id ( w , seg , mbmi -> segment_id ) ;\n write_skip ( cm , xd , mbmi -> segment_id , mi , w ) ;\n if ( bsize >= BLOCK_8X8 && cm -> tx_mode == TX_MODE_SELECT ) write_selected_tx_size ( cm , xd , mbmi -> tx_size , bsize , w ) ;\n if ( bsize >= BLOCK_8X8 ) {\n write_intra_mode ( w , mbmi -> mode , get_y_mode_probs ( mi , above_mi , left_mi , 0 ) ) ;\n }\n else {\n const int num_4x4_w = num_4x4_blocks_wide_lookup [ bsize ] ;\n const int num_4x4_h = num_4x4_blocks_high_lookup [ bsize ] ;\n int idx , idy ;\n for ( idy = 0 ;\n idy < 2 ;\n idy += num_4x4_h ) {\n for ( idx = 0 ;\n idx < 2 ;\n idx += num_4x4_w ) {\n const int block = idy * 2 + idx ;\n write_intra_mode ( w , mi -> bmi [ block ] . as_mode , get_y_mode_probs ( mi , above_mi , left_mi , block ) ) ;\n }\n }\n }\n write_intra_mode ( w , mbmi -> uv_mode , vp9_kf_uv_mode_prob [ mbmi -> mode ] ) ;\n }"}
{"idx": 12995, "target": 0, "func": "int X509_digest ( const X509 * data , const EVP_MD * type , unsigned char * md , unsigned int * len ) {\n return ( ASN1_item_digest ( ASN1_ITEM_rptr ( X509 ) , type , ( char * ) data , md , len ) ) ;\n }"}
{"idx": 12996, "target": 0, "func": "static int32_t U_CALLCONV uprv_copyArray32 ( const UDataSwapper * ds , const void * inData , int32_t length , void * outData , UErrorCode * pErrorCode ) {\n if ( pErrorCode == NULL || U_FAILURE ( * pErrorCode ) ) {\n return 0 ;\n }\n if ( ds == NULL || inData == NULL || length < 0 || ( length & 3 ) != 0 || outData == NULL ) {\n * pErrorCode = U_ILLEGAL_ARGUMENT_ERROR ;\n return 0 ;\n }\n if ( length > 0 && inData != outData ) {\n uprv_memcpy ( outData , inData , length ) ;\n }\n return length ;\n }"}
{"idx": 12997, "target": 0, "func": "static size_t qio_channel_websock_extract_headers ( QIOChannelWebsock * ioc , char * buffer , QIOChannelWebsockHTTPHeader * hdrs , size_t nhdrsalloc , Error * * errp ) {\n char * nl , * sep , * tmp ;\n size_t nhdrs = 0 ;\n nl = strstr ( buffer , QIO_CHANNEL_WEBSOCK_HANDSHAKE_DELIM ) ;\n if ( ! nl ) {\n error_setg ( errp , \"Missing HTTP header delimiter\" ) ;\n goto bad_request ;\n }\n * nl = '\\0' ;\n tmp = strchr ( buffer , ' ' ) ;\n if ( ! tmp ) {\n error_setg ( errp , \"Missing HTTP path delimiter\" ) ;\n return 0 ;\n }\n * tmp = '\\0' ;\n if ( ! g_str_equal ( buffer , QIO_CHANNEL_WEBSOCK_HTTP_METHOD ) ) {\n error_setg ( errp , \"Unsupported HTTP method %s\" , buffer ) ;\n goto bad_request ;\n }\n buffer = tmp + 1 ;\n tmp = strchr ( buffer , ' ' ) ;\n if ( ! tmp ) {\n error_setg ( errp , \"Missing HTTP version delimiter\" ) ;\n goto bad_request ;\n }\n * tmp = '\\0' ;\n if ( ! g_str_equal ( buffer , QIO_CHANNEL_WEBSOCK_HTTP_PATH ) ) {\n qio_channel_websock_handshake_send_res_err ( ioc , QIO_CHANNEL_WEBSOCK_HANDSHAKE_RES_NOT_FOUND ) ;\n error_setg ( errp , \"Unexpected HTTP path %s\" , buffer ) ;\n return 0 ;\n }\n buffer = tmp + 1 ;\n if ( ! g_str_equal ( buffer , QIO_CHANNEL_WEBSOCK_HTTP_VERSION ) ) {\n error_setg ( errp , \"Unsupported HTTP version %s\" , buffer ) ;\n goto bad_request ;\n }\n buffer = nl + strlen ( QIO_CHANNEL_WEBSOCK_HANDSHAKE_DELIM ) ;\n do {\n QIOChannelWebsockHTTPHeader * hdr ;\n nl = strstr ( buffer , QIO_CHANNEL_WEBSOCK_HANDSHAKE_DELIM ) ;\n if ( nl ) {\n * nl = '\\0' ;\n }\n sep = strchr ( buffer , ':' ) ;\n if ( ! sep ) {\n error_setg ( errp , \"Malformed HTTP header\" ) ;\n goto bad_request ;\n }\n * sep = '\\0' ;\n sep ++ ;\n while ( * sep == ' ' ) {\n sep ++ ;\n }\n if ( nhdrs >= nhdrsalloc ) {\n error_setg ( errp , \"Too many HTTP headers\" ) ;\n goto bad_request ;\n }\n hdr = & hdrs [ nhdrs ++ ] ;\n hdr -> name = buffer ;\n hdr -> value = sep ;\n for ( tmp = hdr -> name ;\n * tmp ;\n tmp ++ ) {\n * tmp = g_ascii_tolower ( * tmp ) ;\n }\n if ( nl ) {\n buffer = nl + strlen ( QIO_CHANNEL_WEBSOCK_HANDSHAKE_DELIM ) ;\n }\n }\n while ( nl != NULL ) ;\n return nhdrs ;\n bad_request : qio_channel_websock_handshake_send_res_err ( ioc , QIO_CHANNEL_WEBSOCK_HANDSHAKE_RES_BAD_REQUEST ) ;\n return 0 ;\n }"}
{"idx": 12998, "target": 0, "func": "static void printMapping ( UCMapping * m , UChar32 * codePoints , uint8_t * bytes , FILE * f ) {\n int32_t j ;\n for ( j = 0 ;\n j < m -> uLen ;\n ++ j ) {\n fprintf ( f , \"<U%04lX>\" , ( long ) codePoints [ j ] ) ;\n }\n fputc ( ' ' , f ) ;\n for ( j = 0 ;\n j < m -> bLen ;\n ++ j ) {\n fprintf ( f , \"\\\\x%02X\" , bytes [ j ] ) ;\n }\n if ( m -> f >= 0 ) {\n fprintf ( f , \" |%u\\n\" , m -> f ) ;\n }\n else {\n fputs ( \"\\n\" , f ) ;\n }\n }"}
{"idx": 12999, "target": 0, "func": "static void authenticate ( const struct passwd * pw ) {\n const struct passwd * lpw = NULL ;\n const char * cp , * srvname = NULL ;\n int retval ;\n switch ( su_mode ) {\n case SU_MODE : srvname = simulate_login ? PAM_SRVNAME_SU_L : PAM_SRVNAME_SU ;\n break ;\n case RUNUSER_MODE : srvname = simulate_login ? PAM_SRVNAME_RUNUSER_L : PAM_SRVNAME_RUNUSER ;\n break ;\n default : abort ( ) ;\n break ;\n }\n retval = pam_start ( srvname , pw -> pw_name , & conv , & pamh ) ;\n if ( is_pam_failure ( retval ) ) goto done ;\n if ( isatty ( 0 ) && ( cp = ttyname ( 0 ) ) != NULL ) {\n const char * tty ;\n if ( strncmp ( cp , \"/dev/\" , 5 ) == 0 ) tty = cp + 5 ;\n else tty = cp ;\n retval = pam_set_item ( pamh , PAM_TTY , tty ) ;\n if ( is_pam_failure ( retval ) ) goto done ;\n }\n lpw = current_getpwuid ( ) ;\n if ( lpw && lpw -> pw_name ) {\n retval = pam_set_item ( pamh , PAM_RUSER , ( const void * ) lpw -> pw_name ) ;\n if ( is_pam_failure ( retval ) ) goto done ;\n }\n if ( su_mode == RUNUSER_MODE ) {\n if ( restricted ) errx ( EXIT_FAILURE , _ ( \"may not be used by non-root users\" ) ) ;\n return ;\n }\n retval = pam_authenticate ( pamh , 0 ) ;\n if ( is_pam_failure ( retval ) ) goto done ;\n retval = pam_acct_mgmt ( pamh , 0 ) ;\n if ( retval == PAM_NEW_AUTHTOK_REQD ) {\n retval = pam_chauthtok ( pamh , PAM_CHANGE_EXPIRED_AUTHTOK ) ;\n }\n done : log_syslog ( pw , ! is_pam_failure ( retval ) ) ;\n if ( is_pam_failure ( retval ) ) {\n const char * msg ;\n log_btmp ( pw ) ;\n msg = pam_strerror ( pamh , retval ) ;\n pam_end ( pamh , retval ) ;\n sleep ( getlogindefs_num ( \"FAIL_DELAY\" , 1 ) ) ;\n errx ( EXIT_FAILURE , \"%s\" , msg ? msg : _ ( \"incorrect password\" ) ) ;\n }\n }"}
{"idx": 13000, "target": 0, "func": "void configure_buffer_updates ( VP9_COMP * cpi ) {\n TWO_PASS * const twopass = & cpi -> twopass ;\n cpi -> rc . is_src_frame_alt_ref = 0 ;\n switch ( twopass -> gf_group . update_type [ twopass -> gf_group . index ] ) {\n case KF_UPDATE : cpi -> refresh_last_frame = 1 ;\n cpi -> refresh_golden_frame = 1 ;\n cpi -> refresh_alt_ref_frame = 1 ;\n break ;\n case LF_UPDATE : cpi -> refresh_last_frame = 1 ;\n cpi -> refresh_golden_frame = 0 ;\n cpi -> refresh_alt_ref_frame = 0 ;\n break ;\n case GF_UPDATE : cpi -> refresh_last_frame = 1 ;\n cpi -> refresh_golden_frame = 1 ;\n cpi -> refresh_alt_ref_frame = 0 ;\n break ;\n case OVERLAY_UPDATE : cpi -> refresh_last_frame = 0 ;\n cpi -> refresh_golden_frame = 1 ;\n cpi -> refresh_alt_ref_frame = 0 ;\n cpi -> rc . is_src_frame_alt_ref = 1 ;\n break ;\n case ARF_UPDATE : cpi -> refresh_last_frame = 0 ;\n cpi -> refresh_golden_frame = 0 ;\n cpi -> refresh_alt_ref_frame = 1 ;\n break ;\n default : assert ( 0 ) ;\n break ;\n }\n if ( is_two_pass_svc ( cpi ) ) {\n if ( cpi -> svc . temporal_layer_id > 0 ) {\n cpi -> refresh_last_frame = 0 ;\n cpi -> refresh_golden_frame = 0 ;\n }\n if ( cpi -> svc . layer_context [ cpi -> svc . spatial_layer_id ] . gold_ref_idx < 0 ) cpi -> refresh_golden_frame = 0 ;\n if ( cpi -> alt_ref_source == NULL ) cpi -> refresh_alt_ref_frame = 0 ;\n }\n }"}
{"idx": 13001, "target": 0, "func": "static int proc_ioctl ( struct usb_dev_state * ps , struct usbdevfs_ioctl * ctl ) {\n int size ;\n void * buf = NULL ;\n int retval = 0 ;\n struct usb_interface * intf = NULL ;\n struct usb_driver * driver = NULL ;\n if ( ps -> privileges_dropped ) return - EACCES ;\n size = _IOC_SIZE ( ctl -> ioctl_code ) ;\n if ( size > 0 ) {\n buf = kmalloc ( size , GFP_KERNEL ) ;\n if ( buf == NULL ) return - ENOMEM ;\n if ( ( _IOC_DIR ( ctl -> ioctl_code ) & _IOC_WRITE ) ) {\n if ( copy_from_user ( buf , ctl -> data , size ) ) {\n kfree ( buf ) ;\n return - EFAULT ;\n }\n }\n else {\n memset ( buf , 0 , size ) ;\n }\n }\n if ( ! connected ( ps ) ) {\n kfree ( buf ) ;\n return - ENODEV ;\n }\n if ( ps -> dev -> state != USB_STATE_CONFIGURED ) retval = - EHOSTUNREACH ;\n else if ( ! ( intf = usb_ifnum_to_if ( ps -> dev , ctl -> ifno ) ) ) retval = - EINVAL ;\n else switch ( ctl -> ioctl_code ) {\n case USBDEVFS_DISCONNECT : if ( intf -> dev . driver ) {\n driver = to_usb_driver ( intf -> dev . driver ) ;\n dev_dbg ( & intf -> dev , \"disconnect by usbfs\\n\" ) ;\n usb_driver_release_interface ( driver , intf ) ;\n }\n else retval = - ENODATA ;\n break ;\n case USBDEVFS_CONNECT : if ( ! intf -> dev . driver ) retval = device_attach ( & intf -> dev ) ;\n else retval = - EBUSY ;\n break ;\n default : if ( intf -> dev . driver ) driver = to_usb_driver ( intf -> dev . driver ) ;\n if ( driver == NULL || driver -> unlocked_ioctl == NULL ) {\n retval = - ENOTTY ;\n }\n else {\n retval = driver -> unlocked_ioctl ( intf , ctl -> ioctl_code , buf ) ;\n if ( retval == - ENOIOCTLCMD ) retval = - ENOTTY ;\n }\n }\n if ( retval >= 0 && ( _IOC_DIR ( ctl -> ioctl_code ) & _IOC_READ ) != 0 && size > 0 && copy_to_user ( ctl -> data , buf , size ) != 0 ) retval = - EFAULT ;\n kfree ( buf ) ;\n return retval ;\n }"}
{"idx": 13002, "target": 0, "func": "static const char * cmd_rule_perf_time ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n long int limit ;\n if ( dcfg == NULL ) return NULL ;\n limit = strtol ( p1 , NULL , 10 ) ;\n if ( ( limit == LONG_MAX ) || ( limit == LONG_MIN ) || ( limit <= 0 ) ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid value for SecRulePerfTime: %s\" , p1 ) ;\n }\n dcfg -> max_rule_time = limit ;\n return NULL ;\n }"}
{"idx": 13003, "target": 0, "func": "static void vvalue_strbuf_append_bool ( wmem_strbuf_t * strbuf , void * ptr ) {\n guint16 val = * ( guint * ) ptr ;\n switch ( val ) {\n case 0 : wmem_strbuf_append ( strbuf , \"False\" ) ;\n break ;\n case 0xffff : wmem_strbuf_append ( strbuf , \"True\" ) ;\n break ;\n default : wmem_strbuf_append_printf ( strbuf , \"Invalid (0x%4x)\" , val ) ;\n }\n }"}
{"idx": 13004, "target": 0, "func": "static iax_call_data * iax_lookup_call_from_dest ( packet_info * pinfo , proto_item * item , guint src_circuit_id , guint dst_circuit_id , guint framenum , gboolean * reversed_p ) {\n circuit_t * dst_circuit ;\n iax_call_data * iax_call ;\n gboolean reversed = FALSE ;\n dst_circuit = find_circuit ( CT_IAX2 , dst_circuit_id , framenum ) ;\n if ( ! dst_circuit ) {\n # ifdef DEBUG_HASHING g_debug ( \"++ destination circuit not found, must have missed NEW packet\" ) ;\n # endif if ( reversed_p ) * reversed_p = FALSE ;\n return NULL ;\n }\n # ifdef DEBUG_HASHING g_debug ( \"++ found destination circuit\" ) ;\n # endif iax_call = ( iax_call_data * ) circuit_get_proto_data ( dst_circuit , proto_iax2 ) ;\n DISSECTOR_ASSERT ( iax_call ) ;\n if ( is_forward_circuit ( dst_circuit_id , iax_call ) ) {\n # ifdef DEBUG_HASHING g_debug ( \"++ destination circuit matches forward_circuit_id of call, \" \"therefore packet is reversed\" ) ;\n # endif reversed = TRUE ;\n if ( iax_call -> n_reverse_circuit_ids == 0 ) {\n # ifdef DEBUG_HASHING g_debug ( \"++ reverse_circuit_id of call is zero, need to create a \" \"new reverse circuit for this call\" ) ;\n # endif iax2_new_circuit_for_call ( pinfo , item , src_circuit_id , framenum , iax_call , TRUE ) ;\n # ifdef DEBUG_HASHING g_debug ( \"++ done\" ) ;\n # endif }\n else if ( ! is_reverse_circuit ( src_circuit_id , iax_call ) ) {\n expert_add_info_format ( pinfo , item , & ei_iax_circuit_id_conflict , \"IAX Packet %u from circuit ids %u->%u conflicts with earlier call with circuit ids %u->%u\" , framenum , src_circuit_id , dst_circuit_id , iax_call -> forward_circuit_ids [ 0 ] , iax_call -> reverse_circuit_ids [ 0 ] ) ;\n return NULL ;\n }\n }\n else if ( is_reverse_circuit ( dst_circuit_id , iax_call ) ) {\n # ifdef DEBUG_HASHING g_debug ( \"++ destination circuit matches reverse_circuit_id of call, \" \"therefore packet is forward\" ) ;\n # endif reversed = FALSE ;\n if ( ! is_forward_circuit ( src_circuit_id , iax_call ) ) {\n expert_add_info_format ( pinfo , item , & ei_iax_circuit_id_conflict , \"IAX Packet %u from circuit ids %u->%u conflicts with earlier call with circuit ids %u->%u\" , framenum , src_circuit_id , dst_circuit_id , iax_call -> forward_circuit_ids [ 0 ] , iax_call -> reverse_circuit_ids [ 0 ] ) ;\n if ( reversed_p ) * reversed_p = FALSE ;\n return NULL ;\n }\n }\n else {\n DISSECTOR_ASSERT_NOT_REACHED ( ) ;\n }\n if ( reversed_p ) * reversed_p = reversed ;\n return iax_call ;\n }"}
{"idx": 13005, "target": 0, "func": "static uint64_t cirrus_vga_mem_read ( void * opaque , hwaddr addr , uint32_t size ) {\n CirrusVGAState * s = opaque ;\n unsigned bank_index ;\n unsigned bank_offset ;\n uint32_t val ;\n if ( ( s -> vga . sr [ 0x07 ] & 0x01 ) == 0 ) {\n return vga_mem_readb ( & s -> vga , addr ) ;\n }\n if ( addr < 0x10000 ) {\n bank_index = addr >> 15 ;\n bank_offset = addr & 0x7fff ;\n if ( bank_offset < s -> cirrus_bank_limit [ bank_index ] ) {\n bank_offset += s -> cirrus_bank_base [ bank_index ] ;\n if ( ( s -> vga . gr [ 0x0B ] & 0x14 ) == 0x14 ) {\n bank_offset <<= 4 ;\n }\n else if ( s -> vga . gr [ 0x0B ] & 0x02 ) {\n bank_offset <<= 3 ;\n }\n bank_offset &= s -> cirrus_addr_mask ;\n val = * ( s -> vga . vram_ptr + bank_offset ) ;\n }\n else val = 0xff ;\n }\n else if ( addr >= 0x18000 && addr < 0x18100 ) {\n val = 0xff ;\n if ( ( s -> vga . sr [ 0x17 ] & 0x44 ) == 0x04 ) {\n val = cirrus_mmio_blt_read ( s , addr & 0xff ) ;\n }\n }\n else {\n val = 0xff ;\n # ifdef DEBUG_CIRRUS printf ( \"cirrus: mem_readb \" TARGET_FMT_plx \"\\n\" , addr ) ;\n # endif }\n return val ;\n }"}
{"idx": 13006, "target": 0, "func": "int main ( int argc , char * * argv ) {\n UBool displayUsage = FALSE ;\n UBool verbose = FALSE ;\n char * optionError = NULL ;\n char * locale = NULL ;\n const char * programName = argv [ 0 ] ;\n UFILE * u_stdout ;\n UErrorCode err = U_ZERO_ERROR ;\n UResourceBundle * myResources ;\n UResourceBundle * fortunes_r ;\n int32_t numFortunes ;\n int i ;\n const UChar * resString ;\n int32_t len ;\n for ( i = 1 ;\n i < argc ;\n i ++ ) {\n if ( strcmp ( argv [ i ] , \"-l\" ) == 0 ) {\n if ( ++ i < argc ) {\n locale = argv [ i ] ;\n }\n continue ;\n }\n if ( strcmp ( argv [ i ] , \"-v\" ) == 0 ) {\n verbose = TRUE ;\n continue ;\n }\n if ( strcmp ( argv [ i ] , \"-?\" ) == 0 || strcmp ( argv [ i ] , \"--help\" ) == 0 ) {\n displayUsage = TRUE ;\n continue ;\n }\n optionError = argv [ i ] ;\n displayUsage = TRUE ;\n break ;\n }\n u_stdout = u_finit ( stdout , NULL , NULL ) ;\n if ( verbose ) {\n u_fprintf ( u_stdout , \"%s: checking output via icuio.\\n\" , programName ) ;\n }\n # ifndef UFORTUNE_NOSETAPPDATA udata_setAppData ( \"fortune_resources\" , & fortune_resources_dat , & err ) ;\n if ( U_FAILURE ( err ) ) {\n fprintf ( stderr , \"%s: udata_setAppData failed with error \\\"%s\\\"\\n\" , programName , u_errorName ( err ) ) ;\n exit ( - 1 ) ;\n }\n # endif myResources = ures_open ( \"fortune_resources\" , locale , & err ) ;\n if ( U_FAILURE ( err ) ) {\n fprintf ( stderr , \"%s: ures_open failed with error \\\"%s\\\"\\n\" , programName , u_errorName ( err ) ) ;\n exit ( - 1 ) ;\n }\n if ( verbose ) {\n u_fprintf ( u_stdout , \"status from ures_open(\\\"fortune_resources\\\", %s) is %s\\n\" , locale ? locale : \" \" , u_errorName ( err ) ) ;\n }\n if ( optionError != NULL ) {\n const UChar * msg = ures_getStringByKey ( myResources , \"optionMessage\" , & len , & err ) ;\n if ( U_FAILURE ( err ) ) {\n fprintf ( stderr , \"%s: ures_getStringByKey(\\\"optionMessage\\\") failed, %s\\n\" , programName , u_errorName ( err ) ) ;\n exit ( - 1 ) ;\n }\n u_file_write ( msg , len , u_stdout ) ;\n u_fprintf ( u_stdout , \" %s\\n\" , optionError ) ;\n }\n if ( displayUsage ) {\n const UChar * usage ;\n int returnValue = 0 ;\n usage = ures_getStringByKey ( myResources , \"usage\" , & len , & err ) ;\n if ( U_FAILURE ( err ) ) {\n fprintf ( stderr , \"%s: ures_getStringByKey(\\\"usage\\\") failed, %s\\n\" , programName , u_errorName ( err ) ) ;\n exit ( - 1 ) ;\n }\n u_file_write ( usage , len , u_stdout ) ;\n if ( optionError != NULL ) {\n returnValue = - 1 ;\n }\n return returnValue ;\n }\n fortunes_r = ures_getByKey ( myResources , \"fortunes\" , NULL , & err ) ;\n if ( U_FAILURE ( err ) ) {\n fprintf ( stderr , \"%s: ures_getByKey(\\\"fortunes\\\") failed, %s\\n\" , programName , u_errorName ( err ) ) ;\n exit ( - 1 ) ;\n }\n numFortunes = ures_countArrayItems ( myResources , \"fortunes\" , & err ) ;\n if ( U_FAILURE ( err ) ) {\n fprintf ( stderr , \"%s: ures_countArrayItems(\\\"fortunes\\\") failed, %s\\n\" , programName , u_errorName ( err ) ) ;\n exit ( - 1 ) ;\n }\n if ( numFortunes <= 0 ) {\n fprintf ( stderr , \"%s: no fortunes found.\\n\" , programName ) ;\n exit ( - 1 ) ;\n }\n i = ( int ) time ( NULL ) % numFortunes ;\n resString = ures_getStringByIndex ( fortunes_r , i , & len , & err ) ;\n if ( U_FAILURE ( err ) ) {\n fprintf ( stderr , \"%s: ures_getStringByIndex(%d) failed, %s\\n\" , programName , i , u_errorName ( err ) ) ;\n exit ( - 1 ) ;\n }\n u_file_write ( resString , len , u_stdout ) ;\n u_fputc ( 0x0a , u_stdout ) ;\n return 0 ;\n }"}
{"idx": 13007, "target": 0, "func": "static int user_key_allowed2 ( struct ssh * ssh , struct passwd * pw , struct sshkey * key , char * file , struct sshauthopt * * authoptsp ) {\n FILE * f ;\n int found_key = 0 ;\n if ( authoptsp != NULL ) * authoptsp = NULL ;\n temporarily_use_uid ( pw ) ;\n debug ( \"trying public key file %s\" , file ) ;\n if ( ( f = auth_openkeyfile ( file , pw , options . strict_modes ) ) != NULL ) {\n found_key = check_authkeys_file ( ssh , pw , f , file , key , authoptsp ) ;\n fclose ( f ) ;\n }\n restore_uid ( ) ;\n return found_key ;\n }"}
{"idx": 13008, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n ASV1Context * const a = avctx -> priv_data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n AVFrame * picture = data ;\n AVFrame * const p = & a -> picture ;\n int mb_x , mb_y , ret ;\n if ( p -> data [ 0 ] ) avctx -> release_buffer ( avctx , p ) ;\n p -> reference = 0 ;\n if ( ( ret = ff_get_buffer ( avctx , p ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n p -> pict_type = AV_PICTURE_TYPE_I ;\n p -> key_frame = 1 ;\n av_fast_padded_malloc ( & a -> bitstream_buffer , & a -> bitstream_buffer_size , buf_size ) ;\n if ( ! a -> bitstream_buffer ) return AVERROR ( ENOMEM ) ;\n if ( avctx -> codec_id == AV_CODEC_ID_ASV1 ) a -> dsp . bswap_buf ( ( uint32_t * ) a -> bitstream_buffer , ( const uint32_t * ) buf , buf_size / 4 ) ;\n else {\n int i ;\n for ( i = 0 ;\n i < buf_size ;\n i ++ ) a -> bitstream_buffer [ i ] = ff_reverse [ buf [ i ] ] ;\n }\n init_get_bits ( & a -> gb , a -> bitstream_buffer , buf_size * 8 ) ;\n for ( mb_y = 0 ;\n mb_y < a -> mb_height2 ;\n mb_y ++ ) {\n for ( mb_x = 0 ;\n mb_x < a -> mb_width2 ;\n mb_x ++ ) {\n if ( ( ret = decode_mb ( a , a -> block ) ) < 0 ) return ret ;\n idct_put ( a , mb_x , mb_y ) ;\n }\n }\n if ( a -> mb_width2 != a -> mb_width ) {\n mb_x = a -> mb_width2 ;\n for ( mb_y = 0 ;\n mb_y < a -> mb_height2 ;\n mb_y ++ ) {\n if ( ( ret = decode_mb ( a , a -> block ) ) < 0 ) return ret ;\n idct_put ( a , mb_x , mb_y ) ;\n }\n }\n if ( a -> mb_height2 != a -> mb_height ) {\n mb_y = a -> mb_height2 ;\n for ( mb_x = 0 ;\n mb_x < a -> mb_width ;\n mb_x ++ ) {\n if ( ( ret = decode_mb ( a , a -> block ) ) < 0 ) return ret ;\n idct_put ( a , mb_x , mb_y ) ;\n }\n }\n * picture = a -> picture ;\n * got_frame = 1 ;\n emms_c ( ) ;\n return ( get_bits_count ( & a -> gb ) + 31 ) / 32 * 4 ;\n }"}
{"idx": 13009, "target": 0, "func": "static void test_bug16143 ( ) {\n MYSQL_STMT * stmt ;\n myheader ( \"test_bug16143\" ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n DIE_UNLESS ( strcmp ( mysql_stmt_sqlstate ( stmt ) , \"00000\" ) == 0 ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 13010, "target": 0, "func": "static void initialize_readline ( char * name ) {\n rl_readline_name = name ;\n # if defined ( USE_NEW_READLINE_INTERFACE ) rl_attempted_completion_function = ( rl_completion_func_t * ) & new_mysql_completion ;\n rl_completion_entry_function = ( rl_compentry_func_t * ) & no_completion ;\n rl_add_defun ( \"magic-space\" , ( rl_command_func_t * ) & fake_magic_space , - 1 ) ;\n # elif defined ( USE_LIBEDIT_INTERFACE ) # ifdef HAVE_LOCALE_H setlocale ( LC_ALL , \"\" ) ;\n # endif rl_attempted_completion_function = ( CPPFunction * ) & new_mysql_completion ;\n rl_completion_entry_function = & no_completion ;\n rl_add_defun ( \"magic-space\" , ( Function * ) & fake_magic_space , - 1 ) ;\n # else rl_attempted_completion_function = ( CPPFunction * ) & new_mysql_completion ;\n rl_completion_entry_function = & no_completion ;\n # endif }"}
{"idx": 13011, "target": 0, "func": "static void custom_time_skip ( va_list * va ) {\n ( void ) va_arg ( * va , int ) ;\n }"}
{"idx": 13012, "target": 1, "func": "static void _CompoundTextClose ( UConverter * converter ) {\n UConverterDataCompoundText * myConverterData = ( UConverterDataCompoundText * ) ( converter -> extraInfo ) ;\n int32_t i ;\n if ( converter -> extraInfo != NULL ) {\n for ( i = 0 ;\n i < NUM_OF_CONVERTERS ;\n i ++ ) {\n if ( myConverterData -> myConverterArray [ i ] != NULL ) {\n ucnv_unloadSharedDataIfReady ( myConverterData -> myConverterArray [ i ] ) ;\n }\n }\n uprv_free ( converter -> extraInfo ) ;\n }\n }"}
{"idx": 13013, "target": 0, "func": "void vp9_update_temporal_layer_framerate ( VP9_COMP * const cpi ) {\n SVC * const svc = & cpi -> svc ;\n const VP9EncoderConfig * const oxcf = & cpi -> oxcf ;\n LAYER_CONTEXT * const lc = get_layer_context ( cpi ) ;\n RATE_CONTROL * const lrc = & lc -> rc ;\n const int layer = svc -> temporal_layer_id ;\n lc -> framerate = cpi -> framerate / oxcf -> ts_rate_decimator [ layer ] ;\n lrc -> avg_frame_bandwidth = ( int ) ( lc -> target_bandwidth / lc -> framerate ) ;\n lrc -> max_frame_bandwidth = cpi -> rc . max_frame_bandwidth ;\n if ( layer == 0 ) {\n lc -> avg_frame_size = lrc -> avg_frame_bandwidth ;\n }\n else {\n const double prev_layer_framerate = cpi -> framerate / oxcf -> ts_rate_decimator [ layer - 1 ] ;\n const int prev_layer_target_bandwidth = oxcf -> ts_target_bitrate [ layer - 1 ] ;\n lc -> avg_frame_size = ( int ) ( ( lc -> target_bandwidth - prev_layer_target_bandwidth ) / ( lc -> framerate - prev_layer_framerate ) ) ;\n }\n }"}
{"idx": 13014, "target": 0, "func": "long jas_stream_length ( jas_stream_t * stream ) {\n long oldpos ;\n long pos ;\n if ( ( oldpos = jas_stream_tell ( stream ) ) < 0 ) {\n return - 1 ;\n }\n if ( jas_stream_seek ( stream , 0 , SEEK_END ) < 0 ) {\n return - 1 ;\n }\n if ( ( pos = jas_stream_tell ( stream ) ) < 0 ) {\n return - 1 ;\n }\n if ( jas_stream_seek ( stream , oldpos , SEEK_SET ) < 0 ) {\n return - 1 ;\n }\n return pos ;\n }"}
{"idx": 13015, "target": 0, "func": "static inline void SetPixelChannelAttributes ( const Image * restrict image , const PixelChannel channel , const PixelTrait traits , const ssize_t offset ) {\n image -> channel_map [ offset ] . channel = channel ;\n image -> channel_map [ channel ] . offset = offset ;\n image -> channel_map [ channel ] . traits = traits ;\n }"}
{"idx": 13016, "target": 0, "func": "static void gst_asf_demux_init ( GstASFDemux * demux ) {\n demux -> sinkpad = gst_pad_new_from_static_template ( & gst_asf_demux_sink_template , \"sink\" ) ;\n gst_pad_set_chain_function ( demux -> sinkpad , GST_DEBUG_FUNCPTR ( gst_asf_demux_chain ) ) ;\n gst_pad_set_event_function ( demux -> sinkpad , GST_DEBUG_FUNCPTR ( gst_asf_demux_sink_event ) ) ;\n gst_pad_set_activate_function ( demux -> sinkpad , GST_DEBUG_FUNCPTR ( gst_asf_demux_activate ) ) ;\n gst_pad_set_activatemode_function ( demux -> sinkpad , GST_DEBUG_FUNCPTR ( gst_asf_demux_activate_mode ) ) ;\n gst_element_add_pad ( GST_ELEMENT ( demux ) , demux -> sinkpad ) ;\n gst_asf_demux_reset ( demux , FALSE ) ;\n }"}
{"idx": 13017, "target": 0, "func": "static void dbstmt_prop_delete ( zval * object , zval * member , const zend_literal * key TSRMLS_DC ) {\n pdo_stmt_t * stmt = ( pdo_stmt_t * ) zend_object_store_get_object ( object TSRMLS_CC ) ;\n convert_to_string ( member ) ;\n if ( strcmp ( Z_STRVAL_P ( member ) , \"queryString\" ) == 0 ) {\n pdo_raise_impl_error ( stmt -> dbh , stmt , \"HY000\" , \"property queryString is read only\" TSRMLS_CC ) ;\n }\n else {\n std_object_handlers . unset_property ( object , member , key TSRMLS_CC ) ;\n }\n }"}
{"idx": 13018, "target": 0, "func": "static uint32_t openpic_cpu_read_internal ( void * opaque , hwaddr addr , int idx ) {\n OpenPICState * opp = opaque ;\n IRQDest * dst ;\n uint32_t retval ;\n DPRINTF ( \"%s: cpu %d addr %#\" HWADDR_PRIx \"\\n\" , __func__ , idx , addr ) ;\n retval = 0xFFFFFFFF ;\n if ( idx < 0 ) {\n return retval ;\n }\n if ( addr & 0xF ) {\n return retval ;\n }\n dst = & opp -> dst [ idx ] ;\n addr &= 0xFF0 ;\n switch ( addr ) {\n case 0x80 : retval = dst -> ctpr ;\n break ;\n case 0x90 : retval = idx ;\n break ;\n case 0xA0 : retval = openpic_iack ( opp , dst , idx ) ;\n break ;\n case 0xB0 : retval = 0 ;\n break ;\n default : break ;\n }\n DPRINTF ( \"%s: => 0x%08x\\n\" , __func__ , retval ) ;\n return retval ;\n }"}
{"idx": 13019, "target": 1, "func": "static void write_modes_sb ( VP9_COMP * cpi , const TileInfo * const tile , vp9_writer * w , TOKENEXTRA * * tok , const TOKENEXTRA * const tok_end , int mi_row , int mi_col , BLOCK_SIZE bsize ) {\n const VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCKD * const xd = & cpi -> mb . e_mbd ;\n const int bsl = b_width_log2 ( bsize ) ;\n const int bs = ( 1 << bsl ) / 4 ;\n PARTITION_TYPE partition ;\n BLOCK_SIZE subsize ;\n const MODE_INFO * m = NULL ;\n if ( mi_row >= cm -> mi_rows || mi_col >= cm -> mi_cols ) return ;\n m = cm -> mi_grid_visible [ mi_row * cm -> mi_stride + mi_col ] ;\n partition = partition_lookup [ bsl ] [ m -> mbmi . sb_type ] ;\n write_partition ( cm , xd , bs , mi_row , mi_col , partition , bsize , w ) ;\n subsize = get_subsize ( bsize , partition ) ;\n if ( subsize < BLOCK_8X8 ) {\n write_modes_b ( cpi , tile , w , tok , tok_end , mi_row , mi_col ) ;\n }\n else {\n switch ( partition ) {\n case PARTITION_NONE : write_modes_b ( cpi , tile , w , tok , tok_end , mi_row , mi_col ) ;\n break ;\n case PARTITION_HORZ : write_modes_b ( cpi , tile , w , tok , tok_end , mi_row , mi_col ) ;\n if ( mi_row + bs < cm -> mi_rows ) write_modes_b ( cpi , tile , w , tok , tok_end , mi_row + bs , mi_col ) ;\n break ;\n case PARTITION_VERT : write_modes_b ( cpi , tile , w , tok , tok_end , mi_row , mi_col ) ;\n if ( mi_col + bs < cm -> mi_cols ) write_modes_b ( cpi , tile , w , tok , tok_end , mi_row , mi_col + bs ) ;\n break ;\n case PARTITION_SPLIT : write_modes_sb ( cpi , tile , w , tok , tok_end , mi_row , mi_col , subsize ) ;\n write_modes_sb ( cpi , tile , w , tok , tok_end , mi_row , mi_col + bs , subsize ) ;\n write_modes_sb ( cpi , tile , w , tok , tok_end , mi_row + bs , mi_col , subsize ) ;\n write_modes_sb ( cpi , tile , w , tok , tok_end , mi_row + bs , mi_col + bs , subsize ) ;\n break ;\n default : assert ( 0 ) ;\n }\n }\n if ( bsize >= BLOCK_8X8 && ( bsize == BLOCK_8X8 || partition != PARTITION_SPLIT ) ) update_partition_context ( xd , mi_row , mi_col , subsize , bsize ) ;\n }"}
{"idx": 13020, "target": 0, "func": "tvbuff_t * tvb_child_uncompress ( tvbuff_t * parent , tvbuff_t * tvb , const int offset , int comprlen ) {\n tvbuff_t * new_tvb = tvb_uncompress ( tvb , offset , comprlen ) ;\n if ( new_tvb ) tvb_set_child_real_data_tvbuff ( parent , new_tvb ) ;\n return new_tvb ;\n }"}
{"idx": 13021, "target": 0, "func": "static size_t readfromfile ( struct Form * form , char * buffer , size_t size ) {\n size_t nread ;\n bool callback = ( form -> data -> type == FORM_CALLBACK ) ? TRUE : FALSE ;\n if ( callback ) {\n if ( form -> fread_func == ZERO_NULL ) return 0 ;\n else nread = form -> fread_func ( buffer , 1 , size , form -> data -> line ) ;\n }\n else {\n if ( ! form -> fp ) {\n form -> fp = fopen_read ( form -> data -> line , \"rb\" ) ;\n if ( ! form -> fp ) return ( size_t ) - 1 ;\n }\n nread = fread ( buffer , 1 , size , form -> fp ) ;\n }\n if ( ! nread ) {\n if ( form -> fp ) {\n fclose ( form -> fp ) ;\n form -> fp = NULL ;\n }\n form -> data = form -> data -> next ;\n }\n return nread ;\n }"}
{"idx": 13022, "target": 0, "func": "static void icount_adjust ( void ) {\n int64_t cur_time ;\n int64_t cur_icount ;\n int64_t delta ;\n static int64_t last_delta ;\n if ( ! runstate_is_running ( ) ) {\n return ;\n }\n cur_time = cpu_get_clock ( ) ;\n cur_icount = qemu_get_clock_ns ( vm_clock ) ;\n delta = cur_icount - cur_time ;\n if ( delta > 0 && last_delta + ICOUNT_WOBBLE < delta * 2 && icount_time_shift > 0 ) {\n icount_time_shift -- ;\n }\n if ( delta < 0 && last_delta - ICOUNT_WOBBLE > delta * 2 && icount_time_shift < MAX_ICOUNT_SHIFT ) {\n icount_time_shift ++ ;\n }\n last_delta = delta ;\n qemu_icount_bias = cur_icount - ( qemu_icount << icount_time_shift ) ;\n }"}
{"idx": 13023, "target": 0, "func": "static int get_buffer ( AVCodecContext * avctx , Picture * pic ) {\n SVQ3Context * s = avctx -> priv_data ;\n H264Context * h = & s -> h ;\n const int big_mb_num = h -> mb_stride * ( h -> mb_height + 1 ) + 1 ;\n const int mb_array_size = h -> mb_stride * h -> mb_height ;\n const int b4_stride = h -> mb_width * 4 + 1 ;\n const int b4_array_size = b4_stride * h -> mb_height * 4 ;\n int ret ;\n if ( ! pic -> motion_val_buf [ 0 ] ) {\n int i ;\n pic -> mb_type_buf = av_buffer_allocz ( ( big_mb_num + h -> mb_stride ) * sizeof ( uint32_t ) ) ;\n if ( ! pic -> mb_type_buf ) return AVERROR ( ENOMEM ) ;\n pic -> mb_type = ( uint32_t * ) pic -> mb_type_buf -> data + 2 * h -> mb_stride + 1 ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n pic -> motion_val_buf [ i ] = av_buffer_allocz ( 2 * ( b4_array_size + 4 ) * sizeof ( int16_t ) ) ;\n pic -> ref_index_buf [ i ] = av_buffer_allocz ( 4 * mb_array_size ) ;\n if ( ! pic -> motion_val_buf [ i ] || ! pic -> ref_index_buf [ i ] ) {\n ret = AVERROR ( ENOMEM ) ;\n goto fail ;\n }\n pic -> motion_val [ i ] = ( int16_t ( * ) [ 2 ] ) pic -> motion_val_buf [ i ] -> data + 4 ;\n pic -> ref_index [ i ] = pic -> ref_index_buf [ i ] -> data ;\n }\n }\n pic -> f . motion_subsample_log2 = 2 ;\n pic -> reference = ! ( h -> pict_type == AV_PICTURE_TYPE_B ) ;\n ret = ff_get_buffer ( avctx , & pic -> f , pic -> reference ? AV_GET_BUFFER_FLAG_REF : 0 ) ;\n if ( ret < 0 ) goto fail ;\n if ( ! h -> edge_emu_buffer ) {\n h -> edge_emu_buffer = av_mallocz ( pic -> f . linesize [ 0 ] * 17 ) ;\n if ( ! h -> edge_emu_buffer ) return AVERROR ( ENOMEM ) ;\n }\n h -> linesize = pic -> f . linesize [ 0 ] ;\n h -> uvlinesize = pic -> f . linesize [ 1 ] ;\n return 0 ;\n fail : free_picture ( avctx , pic ) ;\n return ret ;\n }"}
{"idx": 13024, "target": 0, "func": "static UBool action_mirror ( UBiDiTransform * pTransform , UErrorCode * pErrorCode ) {\n UChar32 c ;\n uint32_t i = 0 , j = 0 ;\n if ( 0 == ( pTransform -> reorderingOptions & UBIDI_DO_MIRRORING ) ) {\n return FALSE ;\n }\n if ( pTransform -> destSize < pTransform -> srcLength ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n return FALSE ;\n }\n do {\n UBool isOdd = ubidi_getLevelAt ( pTransform -> pBidi , i ) & 1 ;\n U16_NEXT ( pTransform -> src , i , pTransform -> srcLength , c ) ;\n U16_APPEND_UNSAFE ( pTransform -> dest , j , isOdd ? u_charMirror ( c ) : c ) ;\n }\n while ( i < pTransform -> srcLength ) ;\n * pTransform -> pDestLength = pTransform -> srcLength ;\n pTransform -> reorderingOptions = UBIDI_REORDER_DEFAULT ;\n return TRUE ;\n }"}
{"idx": 13025, "target": 0, "func": "x509_cert_t * x509_cert_gen ( certificate_type_t type , va_list args ) {\n private_x509_cert_t * cert ;\n certificate_t * sign_cert = NULL ;\n private_key_t * sign_key = NULL ;\n hash_algorithm_t digest_alg = HASH_SHA1 ;\n u_int constraint ;\n cert = create_empty ( ) ;\n while ( TRUE ) {\n switch ( va_arg ( args , builder_part_t ) ) {\n case BUILD_X509_FLAG : cert -> flags |= va_arg ( args , x509_flag_t ) ;\n continue ;\n case BUILD_SIGNING_KEY : sign_key = va_arg ( args , private_key_t * ) ;\n continue ;\n case BUILD_SIGNING_CERT : sign_cert = va_arg ( args , certificate_t * ) ;\n continue ;\n case BUILD_PUBLIC_KEY : cert -> public_key = va_arg ( args , public_key_t * ) ;\n cert -> public_key -> get_ref ( cert -> public_key ) ;\n continue ;\n case BUILD_SUBJECT : cert -> subject = va_arg ( args , identification_t * ) ;\n cert -> subject = cert -> subject -> clone ( cert -> subject ) ;\n continue ;\n case BUILD_SUBJECT_ALTNAMES : {\n enumerator_t * enumerator ;\n identification_t * id ;\n linked_list_t * list ;\n list = va_arg ( args , linked_list_t * ) ;\n enumerator = list -> create_enumerator ( list ) ;\n while ( enumerator -> enumerate ( enumerator , & id ) ) {\n cert -> subjectAltNames -> insert_last ( cert -> subjectAltNames , id -> clone ( id ) ) ;\n }\n enumerator -> destroy ( enumerator ) ;\n continue ;\n }\n case BUILD_CRL_DISTRIBUTION_POINTS : {\n enumerator_t * enumerator ;\n linked_list_t * list ;\n x509_cdp_t * in , * cdp ;\n list = va_arg ( args , linked_list_t * ) ;\n enumerator = list -> create_enumerator ( list ) ;\n while ( enumerator -> enumerate ( enumerator , & in ) ) {\n INIT ( cdp , . uri = strdup ( in -> uri ) , . issuer = in -> issuer ? in -> issuer -> clone ( in -> issuer ) : NULL , ) ;\n cert -> crl_uris -> insert_last ( cert -> crl_uris , cdp ) ;\n }\n enumerator -> destroy ( enumerator ) ;\n continue ;\n }\n case BUILD_OCSP_ACCESS_LOCATIONS : {\n enumerator_t * enumerator ;\n linked_list_t * list ;\n char * uri ;\n list = va_arg ( args , linked_list_t * ) ;\n enumerator = list -> create_enumerator ( list ) ;\n while ( enumerator -> enumerate ( enumerator , & uri ) ) {\n cert -> ocsp_uris -> insert_last ( cert -> ocsp_uris , strdup ( uri ) ) ;\n }\n enumerator -> destroy ( enumerator ) ;\n continue ;\n }\n case BUILD_PATHLEN : constraint = va_arg ( args , u_int ) ;\n cert -> pathLenConstraint = ( constraint < 128 ) ? constraint : X509_NO_CONSTRAINT ;\n continue ;\n case BUILD_ADDRBLOCKS : {\n enumerator_t * enumerator ;\n traffic_selector_t * ts ;\n linked_list_t * list ;\n list = va_arg ( args , linked_list_t * ) ;\n enumerator = list -> create_enumerator ( list ) ;\n while ( enumerator -> enumerate ( enumerator , & ts ) ) {\n cert -> ipAddrBlocks -> insert_last ( cert -> ipAddrBlocks , ts -> clone ( ts ) ) ;\n }\n enumerator -> destroy ( enumerator ) ;\n continue ;\n }\n case BUILD_PERMITTED_NAME_CONSTRAINTS : {\n enumerator_t * enumerator ;\n linked_list_t * list ;\n identification_t * constraint ;\n list = va_arg ( args , linked_list_t * ) ;\n enumerator = list -> create_enumerator ( list ) ;\n while ( enumerator -> enumerate ( enumerator , & constraint ) ) {\n cert -> permitted_names -> insert_last ( cert -> permitted_names , constraint -> clone ( constraint ) ) ;\n }\n enumerator -> destroy ( enumerator ) ;\n continue ;\n }\n case BUILD_EXCLUDED_NAME_CONSTRAINTS : {\n enumerator_t * enumerator ;\n linked_list_t * list ;\n identification_t * constraint ;\n list = va_arg ( args , linked_list_t * ) ;\n enumerator = list -> create_enumerator ( list ) ;\n while ( enumerator -> enumerate ( enumerator , & constraint ) ) {\n cert -> excluded_names -> insert_last ( cert -> excluded_names , constraint -> clone ( constraint ) ) ;\n }\n enumerator -> destroy ( enumerator ) ;\n continue ;\n }\n case BUILD_CERTIFICATE_POLICIES : {\n enumerator_t * enumerator ;\n linked_list_t * list ;\n x509_cert_policy_t * policy , * in ;\n list = va_arg ( args , linked_list_t * ) ;\n enumerator = list -> create_enumerator ( list ) ;\n while ( enumerator -> enumerate ( enumerator , & in ) ) {\n INIT ( policy , . oid = chunk_clone ( in -> oid ) , . cps_uri = strdupnull ( in -> cps_uri ) , . unotice_text = strdupnull ( in -> unotice_text ) , ) ;\n cert -> cert_policies -> insert_last ( cert -> cert_policies , policy ) ;\n }\n enumerator -> destroy ( enumerator ) ;\n continue ;\n }\n case BUILD_POLICY_MAPPINGS : {\n enumerator_t * enumerator ;\n linked_list_t * list ;\n x509_policy_mapping_t * mapping , * in ;\n list = va_arg ( args , linked_list_t * ) ;\n enumerator = list -> create_enumerator ( list ) ;\n while ( enumerator -> enumerate ( enumerator , & in ) ) {\n INIT ( mapping , . issuer = chunk_clone ( in -> issuer ) , . subject = chunk_clone ( in -> subject ) , ) ;\n cert -> policy_mappings -> insert_last ( cert -> policy_mappings , mapping ) ;\n }\n enumerator -> destroy ( enumerator ) ;\n continue ;\n }\n case BUILD_POLICY_REQUIRE_EXPLICIT : constraint = va_arg ( args , u_int ) ;\n cert -> require_explicit = ( constraint < 128 ) ? constraint : X509_NO_CONSTRAINT ;\n continue ;\n case BUILD_POLICY_INHIBIT_MAPPING : constraint = va_arg ( args , u_int ) ;\n cert -> inhibit_mapping = ( constraint < 128 ) ? constraint : X509_NO_CONSTRAINT ;\n continue ;\n case BUILD_POLICY_INHIBIT_ANY : constraint = va_arg ( args , u_int ) ;\n cert -> inhibit_any = ( constraint < 128 ) ? constraint : X509_NO_CONSTRAINT ;\n continue ;\n case BUILD_NOT_BEFORE_TIME : cert -> notBefore = va_arg ( args , time_t ) ;\n continue ;\n case BUILD_NOT_AFTER_TIME : cert -> notAfter = va_arg ( args , time_t ) ;\n continue ;\n case BUILD_SERIAL : cert -> serialNumber = chunk_clone ( va_arg ( args , chunk_t ) ) ;\n continue ;\n case BUILD_DIGEST_ALG : digest_alg = va_arg ( args , int ) ;\n continue ;\n case BUILD_END : break ;\n default : destroy ( cert ) ;\n return NULL ;\n }\n break ;\n }\n if ( sign_key && generate ( cert , sign_cert , sign_key , digest_alg ) ) {\n return & cert -> public ;\n }\n destroy ( cert ) ;\n return NULL ;\n }"}
{"idx": 13026, "target": 0, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DIRECTORYSTRING ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DISPLAYTEXT ) DECLARE_ASN1_FUNCTIONS ( ASN1_PRINTABLESTRING )"}
{"idx": 13027, "target": 0, "func": "static inline void idct_put ( FourXContext * f , AVFrame * frame , int x , int y ) {\n int16_t ( * block ) [ 64 ] = f -> block ;\n int stride = frame -> linesize [ 0 ] >> 1 ;\n int i ;\n uint16_t * dst = ( ( uint16_t * ) frame -> data [ 0 ] ) + y * stride + x ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n block [ i ] [ 0 ] += 0x80 * 8 * 8 ;\n idct ( block [ i ] ) ;\n }\n if ( ! ( f -> avctx -> flags & CODEC_FLAG_GRAY ) ) {\n for ( i = 4 ;\n i < 6 ;\n i ++ ) idct ( block [ i ] ) ;\n }\n for ( y = 0 ;\n y < 8 ;\n y ++ ) {\n for ( x = 0 ;\n x < 8 ;\n x ++ ) {\n int16_t * temp = block [ ( x >> 2 ) + 2 * ( y >> 2 ) ] + 2 * ( x & 3 ) + 2 * 8 * ( y & 3 ) ;\n int cb = block [ 4 ] [ x + 8 * y ] ;\n int cr = block [ 5 ] [ x + 8 * y ] ;\n int cg = ( cb + cr ) >> 1 ;\n int y ;\n cb += cb ;\n y = temp [ 0 ] ;\n dst [ 0 ] = ( ( y + cb ) >> 3 ) + ( ( ( y - cg ) & 0xFC ) << 3 ) + ( ( ( y + cr ) & 0xF8 ) << 8 ) ;\n y = temp [ 1 ] ;\n dst [ 1 ] = ( ( y + cb ) >> 3 ) + ( ( ( y - cg ) & 0xFC ) << 3 ) + ( ( ( y + cr ) & 0xF8 ) << 8 ) ;\n y = temp [ 8 ] ;\n dst [ stride ] = ( ( y + cb ) >> 3 ) + ( ( ( y - cg ) & 0xFC ) << 3 ) + ( ( ( y + cr ) & 0xF8 ) << 8 ) ;\n y = temp [ 9 ] ;\n dst [ 1 + stride ] = ( ( y + cb ) >> 3 ) + ( ( ( y - cg ) & 0xFC ) << 3 ) + ( ( ( y + cr ) & 0xF8 ) << 8 ) ;\n dst += 2 ;\n }\n dst += 2 * stride - 2 * 8 ;\n }\n }"}
{"idx": 13028, "target": 0, "func": "static void vmport_ioport_write ( void * opaque , hwaddr addr , uint64_t val , unsigned size ) {\n X86CPU * cpu = X86_CPU ( current_cpu ) ;\n cpu -> env . regs [ R_EAX ] = vmport_ioport_read ( opaque , addr , 4 ) ;\n }"}
{"idx": 13029, "target": 0, "func": "static int matroska_ebmlnum_sint ( MatroskaDemuxContext * matroska , uint8_t * data , uint32_t size , int64_t * num ) {\n uint64_t unum ;\n int res ;\n if ( ( res = matroska_ebmlnum_uint ( matroska , data , size , & unum ) ) < 0 ) return res ;\n * num = unum - ( ( 1LL << ( 7 * res - 1 ) ) - 1 ) ;\n return res ;\n }"}
{"idx": 13030, "target": 1, "func": "static VALUE ossl_cipher_set_key ( VALUE self , VALUE key ) {\n EVP_CIPHER_CTX * ctx ;\n int key_len ;\n StringValue ( key ) ;\n GetCipher ( self , ctx ) ;\n key_len = EVP_CIPHER_CTX_key_length ( ctx ) ;\n if ( RSTRING_LEN ( key ) != key_len ) ossl_raise ( rb_eArgError , \"key must be %d bytes\" , key_len ) ;\n if ( EVP_CipherInit_ex ( ctx , NULL , NULL , ( unsigned char * ) RSTRING_PTR ( key ) , NULL , - 1 ) != 1 ) ossl_raise ( eCipherError , NULL ) ;\n return key ;\n }"}
{"idx": 13031, "target": 0, "func": "static void pdo_stmt_iter_get_data ( zend_object_iterator * iter , zval * * * data TSRMLS_DC ) {\n struct php_pdo_iterator * I = ( struct php_pdo_iterator * ) iter -> data ;\n if ( ! I -> fetch_ahead ) {\n * data = NULL ;\n return ;\n }\n * data = & I -> fetch_ahead ;\n }"}
{"idx": 13032, "target": 0, "func": "xsltDocumentPtr xsltNewStyleDocument ( xsltStylesheetPtr style , xmlDocPtr doc ) {\n xsltDocumentPtr cur ;\n cur = ( xsltDocumentPtr ) xmlMalloc ( sizeof ( xsltDocument ) ) ;\n if ( cur == NULL ) {\n xsltTransformError ( NULL , style , ( xmlNodePtr ) doc , \"xsltNewStyleDocument : malloc failed\\n\" ) ;\n return ( NULL ) ;\n }\n memset ( cur , 0 , sizeof ( xsltDocument ) ) ;\n cur -> doc = doc ;\n if ( style != NULL ) {\n cur -> next = style -> docList ;\n style -> docList = cur ;\n }\n return ( cur ) ;\n }"}
{"idx": 13033, "target": 0, "func": "static void set_roi_map ( const vpx_codec_enc_cfg_t * cfg , vpx_codec_ctx_t * codec ) {\n unsigned int i ;\n vpx_roi_map_t roi ;\n memset ( & roi , 0 , sizeof ( roi ) ) ;\n roi . rows = ( cfg -> g_h + 15 ) / 16 ;\n roi . cols = ( cfg -> g_w + 15 ) / 16 ;\n roi . delta_q [ 0 ] = 0 ;\n roi . delta_q [ 1 ] = - 2 ;\n roi . delta_q [ 2 ] = - 4 ;\n roi . delta_q [ 3 ] = - 6 ;\n roi . delta_lf [ 0 ] = 0 ;\n roi . delta_lf [ 1 ] = 1 ;\n roi . delta_lf [ 2 ] = 2 ;\n roi . delta_lf [ 3 ] = 3 ;\n roi . static_threshold [ 0 ] = 1500 ;\n roi . static_threshold [ 1 ] = 1000 ;\n roi . static_threshold [ 2 ] = 500 ;\n roi . static_threshold [ 3 ] = 0 ;\n roi . roi_map = ( uint8_t * ) malloc ( roi . rows * roi . cols ) ;\n for ( i = 0 ;\n i < roi . rows * roi . cols ;\n ++ i ) roi . roi_map [ i ] = i % 4 ;\n if ( vpx_codec_control ( codec , VP8E_SET_ROI_MAP , & roi ) ) die_codec ( codec , \"Failed to set ROI map\" ) ;\n free ( roi . roi_map ) ;\n }"}
{"idx": 13034, "target": 0, "func": "static void output_stats ( FIRSTPASS_STATS * stats , struct vpx_codec_pkt_list * pktlist ) {\n struct vpx_codec_cx_pkt pkt ;\n pkt . kind = VPX_CODEC_STATS_PKT ;\n pkt . data . twopass_stats . buf = stats ;\n pkt . data . twopass_stats . sz = sizeof ( FIRSTPASS_STATS ) ;\n vpx_codec_pkt_list_add ( pktlist , & pkt ) ;\n # if OUTPUT_FPF {\n FILE * fpfile ;\n fpfile = fopen ( \"firstpass.stt\" , \"a\" ) ;\n fprintf ( fpfile , \"%12.0f %12.0f %12.0f %12.0f %12.4f %12.4f\" \"%12.4f %12.4f %12.4f %12.4f %12.4f %12.4f %12.4f\" \"%12.0f %12.0f %12.4f %12.0f %12.0f %12.4f\\n\" , stats -> frame , stats -> intra_error , stats -> coded_error , stats -> sr_coded_error , stats -> pcnt_inter , stats -> pcnt_motion , stats -> pcnt_second_ref , stats -> pcnt_neutral , stats -> MVr , stats -> mvr_abs , stats -> MVc , stats -> mvc_abs , stats -> MVrv , stats -> MVcv , stats -> mv_in_out_count , stats -> new_mv_count , stats -> count , stats -> duration ) ;\n fclose ( fpfile ) ;\n }\n # endif }"}
{"idx": 13035, "target": 0, "func": "static int should_include ( struct commit * commit , void * _data ) {\n struct include_data * data = _data ;\n int bitmap_pos ;\n bitmap_pos = bitmap_position ( commit -> object . oid . hash ) ;\n if ( bitmap_pos < 0 ) bitmap_pos = ext_index_add_object ( ( struct object * ) commit , NULL ) ;\n if ( ! add_to_include_set ( data , commit -> object . oid . hash , bitmap_pos ) ) {\n struct commit_list * parent = commit -> parents ;\n while ( parent ) {\n parent -> item -> object . flags |= SEEN ;\n parent = parent -> next ;\n }\n return 0 ;\n }\n return 1 ;\n }"}
{"idx": 13036, "target": 0, "func": "static void delete_files ( CommonJob * job , GList * files , int * files_skipped ) {\n GList * l ;\n GFile * file ;\n SourceInfo source_info ;\n TransferInfo transfer_info ;\n DeleteData data ;\n if ( job_aborted ( job ) ) {\n return ;\n }\n scan_sources ( files , & source_info , job , OP_KIND_DELETE ) ;\n if ( job_aborted ( job ) ) {\n return ;\n }\n g_timer_start ( job -> time ) ;\n memset ( & transfer_info , 0 , sizeof ( transfer_info ) ) ;\n report_delete_progress ( job , & source_info , & transfer_info ) ;\n data . job = job ;\n data . source_info = & source_info ;\n data . transfer_info = & transfer_info ;\n for ( l = files ;\n l != NULL && ! job_aborted ( job ) ;\n l = l -> next ) {\n gboolean success ;\n file = l -> data ;\n if ( should_skip_file ( job , file ) ) {\n ( * files_skipped ) ++ ;\n continue ;\n }\n success = delete_file_recursively ( file , job -> cancellable , file_deleted_callback , & data ) ;\n if ( ! success ) {\n ( * files_skipped ) ++ ;\n }\n }\n }"}
{"idx": 13037, "target": 0, "func": "proto_item * proto_tree_add_int64 ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , gint64 value ) {\n proto_item * pi = NULL ;\n header_field_info * hfinfo ;\n CHECK_FOR_NULL_TREE ( tree ) ;\n TRY_TO_FAKE_THIS_ITEM ( tree , hfindex , hfinfo ) ;\n switch ( hfinfo -> type ) {\n case FT_INT40 : case FT_INT48 : case FT_INT56 : case FT_INT64 : pi = proto_tree_add_pi ( tree , hfinfo , tvb , start , & length ) ;\n proto_tree_set_int64 ( PNODE_FINFO ( pi ) , value ) ;\n break ;\n default : DISSECTOR_ASSERT_NOT_REACHED ( ) ;\n }\n return pi ;\n }"}
{"idx": 13038, "target": 0, "func": "relpRetVal relpTcpAcceptConnReq ( relpTcp_t * * ppThis , int sock , relpSrv_t * pSrv ) {\n relpTcp_t * pThis = NULL ;\n int sockflags ;\n struct sockaddr_storage addr ;\n socklen_t addrlen = sizeof ( addr ) ;\n int iNewSock = - 1 ;\n relpEngine_t * pEngine = pSrv -> pEngine ;\n ENTER_RELPFUNC ;\n assert ( ppThis != NULL ) ;\n iNewSock = accept ( sock , ( struct sockaddr * ) & addr , & addrlen ) ;\n int errnosave = errno ;\n if ( iNewSock < 0 ) {\n pSrv -> pEngine -> dbgprint ( \"error during accept, sleeping 20ms: %s\\n\" , strerror ( errnosave ) ) ;\n doSleep ( 0 , 20000 ) ;\n pSrv -> pEngine -> dbgprint ( \"END SLEEP\\n\" ) ;\n ABORT_FINALIZE ( RELP_RET_ACCEPT_ERR ) ;\n }\n CHKRet ( relpTcpConstruct ( & pThis , pEngine , RELP_SRV_CONN , pSrv ) ) ;\n if ( pSrv -> bKeepAlive ) EnableKeepAlive ( pThis , pSrv , iNewSock ) ;\n CHKRet ( relpTcpSetRemHost ( pThis , ( struct sockaddr * ) & addr ) ) ;\n pThis -> pEngine -> dbgprint ( \"remote host is '%s', ip '%s'\\n\" , pThis -> pRemHostName , pThis -> pRemHostIP ) ;\n if ( ( sockflags = fcntl ( iNewSock , F_GETFL ) ) != - 1 ) {\n sockflags |= O_NONBLOCK ;\n sockflags = fcntl ( iNewSock , F_SETFL , sockflags ) ;\n }\n if ( sockflags == - 1 ) {\n pThis -> pEngine -> dbgprint ( \"error %d setting fcntl(O_NONBLOCK) on relp socket %d\" , errno , iNewSock ) ;\n ABORT_FINALIZE ( RELP_RET_IO_ERR ) ;\n }\n pThis -> sock = iNewSock ;\n # ifdef ENABLE_TLS if ( pSrv -> pTcp -> bEnableTLS ) {\n pThis -> bEnableTLS = 1 ;\n pThis -> pSrv = pSrv ;\n CHKRet ( relpTcpSetPermittedPeers ( pThis , & ( pSrv -> permittedPeers ) ) ) ;\n CHKRet ( relpTcpAcceptConnReqInitTLS ( pThis , pSrv ) ) ;\n }\n # endif * ppThis = pThis ;\n finalize_it : if ( iRet != RELP_RET_OK ) {\n if ( pThis != NULL ) relpTcpDestruct ( & pThis ) ;\n if ( iNewSock >= 0 ) close ( iNewSock ) ;\n }\n LEAVE_RELPFUNC ;\n }"}
{"idx": 13039, "target": 0, "func": "static u32 ptrace_parent_sid ( struct task_struct * task ) {\n u32 sid = 0 ;\n struct task_struct * tracer ;\n rcu_read_lock ( ) ;\n tracer = ptrace_parent ( task ) ;\n if ( tracer ) sid = task_sid ( tracer ) ;\n rcu_read_unlock ( ) ;\n return sid ;\n }"}
{"idx": 13040, "target": 0, "func": "static void buildTocEntryArrays ( ArchiveHandle * AH ) {\n DumpId maxDumpId = AH -> maxDumpId ;\n TocEntry * te ;\n AH -> tocsByDumpId = ( TocEntry * * ) pg_malloc0 ( ( maxDumpId + 1 ) * sizeof ( TocEntry * ) ) ;\n AH -> tableDataId = ( DumpId * ) pg_malloc0 ( ( maxDumpId + 1 ) * sizeof ( DumpId ) ) ;\n for ( te = AH -> toc -> next ;\n te != AH -> toc ;\n te = te -> next ) {\n if ( te -> dumpId <= 0 || te -> dumpId > maxDumpId ) exit_horribly ( modulename , \"bad dumpId\\n\" ) ;\n AH -> tocsByDumpId [ te -> dumpId ] = te ;\n if ( strcmp ( te -> desc , \"TABLE DATA\" ) == 0 && te -> nDeps > 0 ) {\n DumpId tableId = te -> dependencies [ 0 ] ;\n if ( tableId <= 0 || tableId > maxDumpId ) exit_horribly ( modulename , \"bad table dumpId for TABLE DATA item\\n\" ) ;\n AH -> tableDataId [ tableId ] = te -> dumpId ;\n }\n }\n }"}
{"idx": 13041, "target": 0, "func": "static inline u32 ipv6_addr_hash ( const struct in6_addr * a ) {\n # if defined ( CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS ) && BITS_PER_LONG == 64 const unsigned long * ul = ( const unsigned long * ) a ;\n unsigned long x = ul [ 0 ] ^ ul [ 1 ] ;\n return ( u32 ) ( x ^ ( x >> 32 ) ) ;\n # else return ( __force u32 ) ( a -> s6_addr32 [ 0 ] ^ a -> s6_addr32 [ 1 ] ^ a -> s6_addr32 [ 2 ] ^ a -> s6_addr32 [ 3 ] ) ;\n # endif }"}
{"idx": 13042, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( UnloadTest , BrowserListDoubleCloseBeforeUnloadCancel ) {\n NavigateToDataURL ( BEFORE_UNLOAD_HTML , \"beforeunload\" ) ;\n UnloadResults unload_results ;\n BrowserList : : CloseAllBrowsersWithProfile ( browser ( ) -> profile ( ) , base : : Bind ( & UnloadResults : : AddSuccess , base : : Unretained ( & unload_results ) ) , base : : Bind ( & UnloadResults : : AddAbort , base : : Unretained ( & unload_results ) ) , false ) ;\n BrowserList : : CloseAllBrowsersWithProfile ( browser ( ) -> profile ( ) , base : : Bind ( & UnloadResults : : AddSuccess , base : : Unretained ( & unload_results ) ) , base : : Bind ( & UnloadResults : : AddAbort , base : : Unretained ( & unload_results ) ) , false ) ;\n base : : string16 expected_title = base : : ASCIIToUTF16 ( \"cancelled\" ) ;\n content : : TitleWatcher title_watcher ( browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) , expected_title ) ;\n ClickModalDialogButton ( false ) ;\n ASSERT_EQ ( expected_title , title_watcher . WaitAndGetTitle ( ) ) ;\n EXPECT_EQ ( 0 , unload_results . get_successes ( ) ) ;\n EXPECT_EQ ( 1 , unload_results . get_aborts ( ) ) ;\n content : : WindowedNotificationObserver window_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , content : : NotificationService : : AllSources ( ) ) ;\n chrome : : CloseWindow ( browser ( ) ) ;\n ClickModalDialogButton ( true ) ;\n window_observer . Wait ( ) ;\n }"}
{"idx": 13043, "target": 0, "func": "__attribute__ ( ( format ( printf , 2 , 3 ) ) ) static int cmd_submitf ( int id , const char * fmt , ... ) {\n char cmd [ MAX_EXTERNAL_COMMAND_LENGTH ] ;\n const char * command ;\n int len , len2 ;\n va_list ap ;\n command = extcmd_get_name ( id ) ;\n len = snprintf ( cmd , sizeof ( cmd ) - 1 , \"[%lu] %s;\n\" , time ( NULL ) , command ) ;\n if ( len < 0 || len >= sizeof ( cmd ) ) return ERROR ;\n if ( fmt ) {\n va_start ( ap , fmt ) ;\n len2 = vsnprintf ( & cmd [ len ] , sizeof ( cmd ) - len - 1 , fmt , ap ) ;\n va_end ( ap ) ;\n if ( len2 < 0 || len2 >= sizeof ( cmd ) - len ) return ERROR ;\n }\n return write_command_to_file ( cmd ) ;\n }"}
{"idx": 13044, "target": 0, "func": "static void printout_rate_control_summary ( struct RateControlMetrics * rc , vpx_codec_enc_cfg_t * cfg , int frame_cnt ) {\n unsigned int i = 0 ;\n int tot_num_frames = 0 ;\n printf ( \"Total number of processed frames: %d\\n\\n\" , frame_cnt - 1 ) ;\n printf ( \"Rate control layer stats for %d layer(s):\\n\\n\" , cfg -> ts_number_layers ) ;\n for ( i = 0 ;\n i < cfg -> ts_number_layers ;\n ++ i ) {\n const int num_dropped = ( i > 0 ) ? ( rc -> layer_input_frames [ i ] - rc -> layer_enc_frames [ i ] ) : ( rc -> layer_input_frames [ i ] - rc -> layer_enc_frames [ i ] - 1 ) ;\n tot_num_frames += rc -> layer_input_frames [ i ] ;\n rc -> layer_encoding_bitrate [ i ] = 0.001 * rc -> layer_framerate [ i ] * rc -> layer_encoding_bitrate [ i ] / tot_num_frames ;\n rc -> layer_avg_frame_size [ i ] = rc -> layer_avg_frame_size [ i ] / rc -> layer_enc_frames [ i ] ;\n rc -> layer_avg_rate_mismatch [ i ] = 100.0 * rc -> layer_avg_rate_mismatch [ i ] / rc -> layer_enc_frames [ i ] ;\n printf ( \"For layer#: %d \\n\" , i ) ;\n printf ( \"Bitrate (target vs actual): %d %f \\n\" , cfg -> ts_target_bitrate [ i ] , rc -> layer_encoding_bitrate [ i ] ) ;\n printf ( \"Average frame size (target vs actual): %f %f \\n\" , rc -> layer_pfb [ i ] , rc -> layer_avg_frame_size [ i ] ) ;\n printf ( \"Average rate_mismatch: %f \\n\" , rc -> layer_avg_rate_mismatch [ i ] ) ;\n printf ( \"Number of input frames, encoded (non-key) frames, \" \"and perc dropped frames: %d %d %f \\n\" , rc -> layer_input_frames [ i ] , rc -> layer_enc_frames [ i ] , 100.0 * num_dropped / rc -> layer_input_frames [ i ] ) ;\n printf ( \"\\n\" ) ;\n }\n if ( ( frame_cnt - 1 ) != tot_num_frames ) die ( \"Error: Number of input frames not equal to output! \\n\" ) ;\n }"}
{"idx": 13045, "target": 0, "func": "static void unnextch ( int ch , IO * wrapper ) {\n if ( ch == EOF ) return ;\n if ( wrapper -> top == NULL ) LogError ( _ ( \"Can't back up with nothing on stack\\n\" ) ) ;\n else if ( wrapper -> top -> backedup != EOF ) LogError ( _ ( \"Attempt to back up twice\\n\" ) ) ;\n else if ( wrapper -> top -> ps != NULL ) ungetc ( ch , wrapper -> top -> ps ) ;\n else wrapper -> top -> backedup = ch ;\n }"}
{"idx": 13046, "target": 0, "func": "static inline int tm2_get_token ( GetBitContext * gb , TM2Codes * code ) {\n int val ;\n val = get_vlc2 ( gb , code -> vlc . table , code -> bits , 1 ) ;\n return code -> recode [ val ] ;\n }"}
{"idx": 13047, "target": 1, "func": "int ssl3_send_finished ( SSL * s , int a , int b , const char * sender , int slen ) {\n unsigned char * p , * d ;\n int i ;\n unsigned long l ;\n if ( s -> state == a ) {\n d = ( unsigned char * ) s -> init_buf -> data ;\n p = & ( d [ 4 ] ) ;\n i = s -> method -> ssl3_enc -> final_finish_mac ( s , sender , slen , s -> s3 -> tmp . finish_md ) ;\n s -> s3 -> tmp . finish_md_len = i ;\n memcpy ( p , s -> s3 -> tmp . finish_md , i ) ;\n p += i ;\n l = i ;\n if ( s -> type == SSL_ST_CONNECT ) {\n OPENSSL_assert ( i <= EVP_MAX_MD_SIZE ) ;\n memcpy ( s -> s3 -> previous_client_finished , s -> s3 -> tmp . finish_md , i ) ;\n s -> s3 -> previous_client_finished_len = i ;\n }\n else {\n OPENSSL_assert ( i <= EVP_MAX_MD_SIZE ) ;\n memcpy ( s -> s3 -> previous_server_finished , s -> s3 -> tmp . finish_md , i ) ;\n s -> s3 -> previous_server_finished_len = i ;\n }\n # ifdef OPENSSL_SYS_WIN16 l &= 0xffff ;\n # endif * ( d ++ ) = SSL3_MT_FINISHED ;\n l2n3 ( l , d ) ;\n s -> init_num = ( int ) l + 4 ;\n s -> init_off = 0 ;\n s -> state = b ;\n }\n return ( ssl3_do_write ( s , SSL3_RT_HANDSHAKE ) ) ;\n }"}
{"idx": 13048, "target": 0, "func": "static void test_union_param ( ) {\n MYSQL_STMT * stmt ;\n char * query ;\n int rc , i ;\n MYSQL_BIND my_bind [ 2 ] ;\n char my_val [ 4 ] ;\n ulong my_length = 3L ;\n my_bool my_null = FALSE ;\n myheader ( \"test_union_param\" ) ;\n strmov ( my_val , \"abc\" ) ;\n query = ( char * ) \"select ? as my_col union distinct select ?\" ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 0 ] . buffer = ( char * ) & my_val ;\n my_bind [ 0 ] . buffer_length = 4 ;\n my_bind [ 0 ] . length = & my_length ;\n my_bind [ 0 ] . is_null = ( char * ) & my_null ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 1 ] . buffer = ( char * ) & my_val ;\n my_bind [ 1 ] . buffer_length = 4 ;\n my_bind [ 1 ] . length = & my_length ;\n my_bind [ 1 ] . is_null = ( char * ) & my_null ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( rc == 1 ) ;\n }\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 13049, "target": 0, "func": "static int init_nss_hash ( struct crypto_instance * instance ) {\n if ( ! hash_to_nss [ instance -> crypto_hash_type ] ) {\n return 0 ;\n }\n instance -> nss_sym_key_sign = import_symmetric_key ( instance , SYM_KEY_TYPE_HASH ) ;\n if ( instance -> nss_sym_key_sign == NULL ) {\n return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 13050, "target": 0, "func": "PkRoleEnum pk_transaction_get_role ( PkTransaction * transaction ) {\n g_return_val_if_fail ( PK_IS_TRANSACTION ( transaction ) , FALSE ) ;\n return transaction -> priv -> role ;\n }"}
{"idx": 13051, "target": 0, "func": "static uint64_t cirrus_vga_ioport_read ( void * opaque , hwaddr addr , unsigned size ) {\n CirrusVGAState * c = opaque ;\n VGACommonState * s = & c -> vga ;\n int val , index ;\n addr += 0x3b0 ;\n if ( vga_ioport_invalid ( s , addr ) ) {\n val = 0xff ;\n }\n else {\n switch ( addr ) {\n case 0x3c0 : if ( s -> ar_flip_flop == 0 ) {\n val = s -> ar_index ;\n }\n else {\n val = 0 ;\n }\n break ;\n case 0x3c1 : index = s -> ar_index & 0x1f ;\n if ( index < 21 ) val = s -> ar [ index ] ;\n else val = 0 ;\n break ;\n case 0x3c2 : val = s -> st00 ;\n break ;\n case 0x3c4 : val = s -> sr_index ;\n break ;\n case 0x3c5 : val = cirrus_vga_read_sr ( c ) ;\n break ;\n # ifdef DEBUG_VGA_REG printf ( \"vga: read SR%x = 0x%02x\\n\" , s -> sr_index , val ) ;\n # endif break ;\n case 0x3c6 : val = cirrus_read_hidden_dac ( c ) ;\n break ;\n case 0x3c7 : val = s -> dac_state ;\n break ;\n case 0x3c8 : val = s -> dac_write_index ;\n c -> cirrus_hidden_dac_lockindex = 0 ;\n break ;\n case 0x3c9 : val = cirrus_vga_read_palette ( c ) ;\n break ;\n case 0x3ca : val = s -> fcr ;\n break ;\n case 0x3cc : val = s -> msr ;\n break ;\n case 0x3ce : val = s -> gr_index ;\n break ;\n case 0x3cf : val = cirrus_vga_read_gr ( c , s -> gr_index ) ;\n # ifdef DEBUG_VGA_REG printf ( \"vga: read GR%x = 0x%02x\\n\" , s -> gr_index , val ) ;\n # endif break ;\n case 0x3b4 : case 0x3d4 : val = s -> cr_index ;\n break ;\n case 0x3b5 : case 0x3d5 : val = cirrus_vga_read_cr ( c , s -> cr_index ) ;\n # ifdef DEBUG_VGA_REG printf ( \"vga: read CR%x = 0x%02x\\n\" , s -> cr_index , val ) ;\n # endif break ;\n case 0x3ba : case 0x3da : val = s -> st01 = s -> retrace ( s ) ;\n s -> ar_flip_flop = 0 ;\n break ;\n default : val = 0x00 ;\n break ;\n }\n }\n trace_vga_cirrus_read_io ( addr , val ) ;\n return val ;\n }"}
{"idx": 13052, "target": 0, "func": "void mtp3_calls_init_tap ( void ) {\n GString * error_string ;\n if ( have_mtp3_tap_listener == FALSE ) {\n error_string = register_tap_listener ( \"mtp3\" , & ( the_tapinfo_struct . mtp3_dummy ) , NULL , 0 , voip_calls_dlg_reset , mtp3_calls_packet , voip_calls_dlg_draw ) ;\n if ( error_string != NULL ) {\n simple_dialog ( ESD_TYPE_ERROR , ESD_BTN_OK , \"%s\" , error_string -> str ) ;\n g_string_free ( error_string , TRUE ) ;\n exit ( 1 ) ;\n }\n have_mtp3_tap_listener = TRUE ;\n }\n if ( have_m3ua_tap_listener == FALSE ) {\n error_string = register_tap_listener ( \"m3ua\" , & ( the_tapinfo_struct . mtp3_dummy ) , NULL , 0 , voip_calls_dlg_reset , mtp3_calls_packet , voip_calls_dlg_draw ) ;\n if ( error_string != NULL ) {\n simple_dialog ( ESD_TYPE_ERROR , ESD_BTN_OK , \"%s\" , error_string -> str ) ;\n g_string_free ( error_string , TRUE ) ;\n exit ( 1 ) ;\n }\n have_m3ua_tap_listener = TRUE ;\n }\n }"}
{"idx": 13053, "target": 0, "func": "static int genprime_cb ( int p , int n , BN_GENCB * arg ) {\n char c = '*' ;\n if ( p == 0 ) c = '.' ;\n if ( p == 1 ) c = '+' ;\n if ( p == 2 ) c = '*' ;\n if ( p == 3 ) c = '\\n' ;\n putc ( c , stderr ) ;\n fflush ( stderr ) ;\n return 1 ;\n }"}
{"idx": 13054, "target": 0, "func": "static int tqi_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n const uint8_t * buf_end = buf + buf_size ;\n TqiContext * t = avctx -> priv_data ;\n MpegEncContext * s = & t -> s ;\n AVFrame * frame = data ;\n int ret ;\n s -> width = AV_RL16 ( & buf [ 0 ] ) ;\n s -> height = AV_RL16 ( & buf [ 2 ] ) ;\n tqi_calculate_qtable ( s , buf [ 4 ] ) ;\n buf += 8 ;\n if ( s -> avctx -> width != s -> width || s -> avctx -> height != s -> height ) avcodec_set_dimensions ( s -> avctx , s -> width , s -> height ) ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n av_fast_padded_malloc ( & t -> bitstream_buf , & t -> bitstream_buf_size , buf_end - buf ) ;\n if ( ! t -> bitstream_buf ) return AVERROR ( ENOMEM ) ;\n s -> dsp . bswap_buf ( t -> bitstream_buf , ( const uint32_t * ) buf , ( buf_end - buf ) / 4 ) ;\n init_get_bits ( & s -> gb , t -> bitstream_buf , 8 * ( buf_end - buf ) ) ;\n s -> last_dc [ 0 ] = s -> last_dc [ 1 ] = s -> last_dc [ 2 ] = 0 ;\n for ( s -> mb_y = 0 ;\n s -> mb_y < ( avctx -> height + 15 ) / 16 ;\n s -> mb_y ++ ) for ( s -> mb_x = 0 ;\n s -> mb_x < ( avctx -> width + 15 ) / 16 ;\n s -> mb_x ++ ) {\n if ( tqi_decode_mb ( s , t -> block ) < 0 ) break ;\n tqi_idct_put ( t , frame , t -> block ) ;\n }\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 13055, "target": 0, "func": "static const char * get_mode ( const char * str , uint16_t * modep ) {\n unsigned char c ;\n uint16_t mode = 0 ;\n while ( ( c = * str ++ ) != ' ' ) {\n if ( c < '0' || c > '7' ) return NULL ;\n mode = ( mode << 3 ) + ( c - '0' ) ;\n }\n * modep = mode ;\n return str ;\n }"}
{"idx": 13056, "target": 1, "func": "int linux_udev_start_event_monitor ( void ) {\n int r ;\n assert ( udev_ctx == NULL ) ;\n udev_ctx = udev_new ( ) ;\n if ( ! udev_ctx ) {\n usbi_err ( NULL , \"could not create udev context\" ) ;\n return LIBUSB_ERROR_OTHER ;\n }\n udev_monitor = udev_monitor_new_from_netlink ( udev_ctx , \"udev\" ) ;\n if ( ! udev_monitor ) {\n usbi_err ( NULL , \"could not initialize udev monitor\" ) ;\n goto err_free_ctx ;\n }\n r = udev_monitor_filter_add_match_subsystem_devtype ( udev_monitor , \"usb\" , 0 ) ;\n if ( r ) {\n usbi_err ( NULL , \"could not initialize udev monitor filter for \\\"usb\\\" subsystem\" ) ;\n goto err_free_monitor ;\n }\n if ( udev_monitor_enable_receiving ( udev_monitor ) ) {\n usbi_err ( NULL , \"failed to enable the udev monitor\" ) ;\n goto err_free_monitor ;\n }\n udev_monitor_fd = udev_monitor_get_fd ( udev_monitor ) ;\n r = fcntl ( udev_monitor_fd , F_GETFL ) ;\n if ( r == - 1 ) {\n usbi_err ( NULL , \"getting udev monitor fd flags (%d)\" , errno ) ;\n goto err_free_monitor ;\n }\n r = fcntl ( udev_monitor_fd , F_SETFL , r | O_NONBLOCK ) ;\n if ( r ) {\n usbi_err ( NULL , \"setting udev monitor fd flags (%d)\" , errno ) ;\n goto err_free_monitor ;\n }\n r = usbi_pipe ( udev_control_pipe ) ;\n if ( r ) {\n usbi_err ( NULL , \"could not create udev control pipe\" ) ;\n goto err_free_monitor ;\n }\n r = pthread_create ( & linux_event_thread , NULL , linux_udev_event_thread_main , NULL ) ;\n if ( r ) {\n usbi_err ( NULL , \"creating hotplug event thread (%d)\" , r ) ;\n goto err_close_pipe ;\n }\n return LIBUSB_SUCCESS ;\n err_close_pipe : close ( udev_control_pipe [ 0 ] ) ;\n close ( udev_control_pipe [ 1 ] ) ;\n err_free_monitor : udev_monitor_unref ( udev_monitor ) ;\n udev_monitor = NULL ;\n udev_monitor_fd = - 1 ;\n err_free_ctx : udev_unref ( udev_ctx ) ;\n udev_ctx = NULL ;\n return LIBUSB_ERROR_OTHER ;\n }"}
{"idx": 13057, "target": 0, "func": "int ff_h263_get_gob_height ( MpegEncContext * s ) {\n if ( s -> height <= 400 ) return 1 ;\n else if ( s -> height <= 800 ) return 2 ;\n else return 4 ;\n }"}
{"idx": 13058, "target": 0, "func": "static int selinux_binder_transfer_binder ( struct task_struct * from , struct task_struct * to ) {\n u32 fromsid = task_sid ( from ) ;\n u32 tosid = task_sid ( to ) ;\n return avc_has_perm ( fromsid , tosid , SECCLASS_BINDER , BINDER__TRANSFER , NULL ) ;\n }"}
{"idx": 13059, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ExtensionPreferenceApiTest , OnChangeSplitWithoutIncognitoAccess ) {\n PrefService * prefs = profile_ -> GetPrefs ( ) ;\n prefs -> SetBoolean ( prefs : : kBlockThirdPartyCookies , true ) ;\n OpenURLOffTheRecord ( profile_ , GURL ( \"chrome:/ewtab/\" ) ) ;\n EXPECT_TRUE ( profile_ -> HasOffTheRecordProfile ( ) ) ;\n extensions : : ResultCatcher catcher ;\n ExtensionTestMessageListener loaded_incognito_test_listener ( \"incognito loaded\" , false ) ;\n ExtensionTestMessageListener change_pref_listener ( \"change pref value\" , false ) ;\n ASSERT_TRUE ( LoadExtension ( test_data_dir_ . AppendASCII ( \"preference\" ) . AppendASCII ( \"onchange_split_regular_only\" ) ) ) ;\n ASSERT_TRUE ( change_pref_listener . WaitUntilSatisfied ( ) ) ;\n prefs -> SetBoolean ( prefs : : kBlockThirdPartyCookies , false ) ;\n EXPECT_TRUE ( catcher . GetNextResult ( ) ) << catcher . message ( ) ;\n EXPECT_FALSE ( loaded_incognito_test_listener . was_satisfied ( ) ) ;\n }"}
{"idx": 13060, "target": 0, "func": "static int create_tmp_file ( const char * template , char * * r_bakfname , char * * r_tmpfname , IOBUF * r_fp ) {\n char * bakfname , * tmpfname ;\n mode_t oldmask ;\n * r_bakfname = NULL ;\n * r_tmpfname = NULL ;\n # ifdef USE_ONLY_8DOT3 if ( strlen ( template ) > 4 && ! strcmp ( template + strlen ( template ) - 4 , EXTSEP_S GPGEXT_GPG ) ) {\n bakfname = xmalloc ( strlen ( template ) + 1 ) ;\n strcpy ( bakfname , template ) ;\n strcpy ( bakfname + strlen ( template ) - 4 , EXTSEP_S \"bak\" ) ;\n tmpfname = xmalloc ( strlen ( template ) + 1 ) ;\n strcpy ( tmpfname , template ) ;\n strcpy ( tmpfname + strlen ( template ) - 4 , EXTSEP_S \"tmp\" ) ;\n }\n else {\n bakfname = xmalloc ( strlen ( template ) + 5 ) ;\n strcpy ( stpcpy ( bakfname , template ) , EXTSEP_S \"bak\" ) ;\n tmpfname = xmalloc ( strlen ( template ) + 5 ) ;\n strcpy ( stpcpy ( tmpfname , template ) , EXTSEP_S \"tmp\" ) ;\n }\n # else bakfname = xmalloc ( strlen ( template ) + 2 ) ;\n strcpy ( stpcpy ( bakfname , template ) , \"~\" ) ;\n tmpfname = xmalloc ( strlen ( template ) + 5 ) ;\n strcpy ( stpcpy ( tmpfname , template ) , EXTSEP_S \"tmp\" ) ;\n # endif oldmask = umask ( 077 ) ;\n if ( is_secured_filename ( tmpfname ) ) {\n * r_fp = NULL ;\n gpg_err_set_errno ( EPERM ) ;\n }\n else * r_fp = iobuf_create ( tmpfname , 1 ) ;\n umask ( oldmask ) ;\n if ( ! * r_fp ) {\n int rc = gpg_error_from_syserror ( ) ;\n log_error ( _ ( \"can't create '%s': %s\\n\" ) , tmpfname , strerror ( errno ) ) ;\n xfree ( tmpfname ) ;\n xfree ( bakfname ) ;\n return rc ;\n }\n * r_bakfname = bakfname ;\n * r_tmpfname = tmpfname ;\n return 0 ;\n }\n static int rename_tmp_file ( const char * bakfname , const char * tmpfname , const char * fname ) {\n int rc = 0 ;\n if ( iobuf_ioctl ( NULL , IOBUF_IOCTL_INVALIDATE_CACHE , 0 , ( char * ) tmpfname ) ) {\n rc = gpg_error_from_syserror ( ) ;\n goto fail ;\n }\n iobuf_ioctl ( NULL , IOBUF_IOCTL_INVALIDATE_CACHE , 0 , ( char * ) bakfname ) ;\n iobuf_ioctl ( NULL , IOBUF_IOCTL_INVALIDATE_CACHE , 0 , ( char * ) fname ) ;\n # if defined ( HAVE_DOSISH_SYSTEM ) || defined ( __riscos__ ) gnupg_remove ( bakfname ) ;\n # endif if ( rename ( fname , bakfname ) ) {\n rc = gpg_error_from_syserror ( ) ;\n log_error ( \"renaming '%s' to '%s' failed: %s\\n\" , fname , bakfname , strerror ( errno ) ) ;\n return rc ;\n }\n # if defined ( HAVE_DOSISH_SYSTEM ) || defined ( __riscos__ ) gnupg_remove ( fname ) ;\n # endif if ( rename ( tmpfname , fname ) ) {\n rc = gpg_error_from_syserror ( ) ;\n log_error ( _ ( \"renaming '%s' to '%s' failed: %s\\n\" ) , tmpfname , fname , strerror ( errno ) ) ;\n register_secured_file ( fname ) ;\n goto fail ;\n }\n # ifndef HAVE_DOSISH_SYSTEM {\n struct stat statbuf ;\n statbuf . st_mode = S_IRUSR | S_IWUSR ;\n if ( ! stat ( bakfname , & statbuf ) && ! chmod ( fname , statbuf . st_mode ) ) ;\n else log_error ( \"WARNING: unable to restore permissions to '%s': %s\" , fname , strerror ( errno ) ) ;\n }\n # endif return 0 ;\n fail : return rc ;\n }\n static int write_keyblock ( IOBUF fp , KBNODE keyblock ) {\n KBNODE kbctx = NULL , node ;\n int rc ;\n while ( ( node = walk_kbnode ( keyblock , & kbctx , 0 ) ) ) {\n if ( node -> pkt -> pkttype == PKT_RING_TRUST ) continue ;\n if ( ( rc = build_packet ( fp , node -> pkt ) ) ) {\n log_error ( \"build_packet(%d) failed: %s\\n\" , node -> pkt -> pkttype , gpg_strerror ( rc ) ) ;\n return rc ;\n }\n if ( node -> pkt -> pkttype == PKT_SIGNATURE ) {\n PKT_signature * sig = node -> pkt -> pkt . signature ;\n unsigned int cacheval = 0 ;\n if ( sig -> flags . checked ) {\n cacheval |= 1 ;\n if ( sig -> flags . valid ) cacheval |= 2 ;\n }\n iobuf_put ( fp , 0xb0 ) ;\n iobuf_put ( fp , 2 ) ;\n iobuf_put ( fp , 0 ) ;\n if ( iobuf_put ( fp , cacheval ) ) {\n rc = gpg_error_from_syserror ( ) ;\n log_error ( \"writing sigcache packet failed\\n\" ) ;\n return rc ;\n }\n }\n }\n return 0 ;\n }\n int keyring_rebuild_cache ( void * token , int noisy ) {\n KEYRING_HANDLE hd ;\n KEYDB_SEARCH_DESC desc ;\n KBNODE keyblock = NULL , node ;\n const char * lastresname = NULL , * resname ;\n IOBUF tmpfp = NULL ;\n char * tmpfilename = NULL ;\n char * bakfilename = NULL ;\n int rc ;\n ulong count = 0 , sigcount = 0 ;\n hd = keyring_new ( token ) ;\n memset ( & desc , 0 , sizeof desc ) ;\n desc . mode = KEYDB_SEARCH_MODE_FIRST ;\n rc = keyring_lock ( hd , 1 ) ;\n if ( rc ) goto leave ;\n for ( ;\n ;\n ) {\n rc = keyring_search ( hd , & desc , 1 , NULL ) ;\n if ( rc && gpg_err_code ( rc ) != GPG_ERR_LEGACY_KEY ) break ;\n desc . mode = KEYDB_SEARCH_MODE_NEXT ;\n resname = keyring_get_resource_name ( hd ) ;\n if ( lastresname != resname ) {\n if ( tmpfp ) {\n if ( iobuf_close ( tmpfp ) ) {\n rc = gpg_error_from_syserror ( ) ;\n log_error ( \"error closing '%s': %s\\n\" , tmpfilename , strerror ( errno ) ) ;\n goto leave ;\n }\n tmpfp = NULL ;\n }\n rc = lastresname ? rename_tmp_file ( bakfilename , tmpfilename , lastresname ) : 0 ;\n xfree ( tmpfilename ) ;\n tmpfilename = NULL ;\n xfree ( bakfilename ) ;\n bakfilename = NULL ;\n if ( rc ) goto leave ;\n lastresname = resname ;\n if ( noisy && ! opt . quiet ) log_info ( _ ( \"caching keyring '%s'\\n\" ) , resname ) ;\n rc = create_tmp_file ( resname , & bakfilename , & tmpfilename , & tmpfp ) ;\n if ( rc ) goto leave ;\n }\n if ( gpg_err_code ( rc ) == GPG_ERR_LEGACY_KEY ) continue ;\n release_kbnode ( keyblock ) ;\n rc = keyring_get_keyblock ( hd , & keyblock ) ;\n if ( rc ) {\n if ( gpg_err_code ( rc ) == GPG_ERR_LEGACY_KEY ) continue ;\n log_error ( \"keyring_get_keyblock failed: %s\\n\" , gpg_strerror ( rc ) ) ;\n goto leave ;\n }\n if ( keyblock -> pkt -> pkttype != PKT_PUBLIC_KEY ) {\n log_error ( \"unexpected keyblock found (pkttype=%d)%s\\n\" , keyblock -> pkt -> pkttype , noisy ? \" - deleted\" : \"\" ) ;\n if ( noisy ) continue ;\n log_info ( \"Hint: backup your keys and try running '%s'\\n\" , \"gpg --rebuild-keydb-caches\" ) ;\n rc = gpg_error ( GPG_ERR_INV_KEYRING ) ;\n goto leave ;\n }\n if ( keyblock -> pkt -> pkt . public_key -> version < 4 ) {\n }\n else {\n for ( node = keyblock ;\n node ;\n node = node -> next ) {\n if ( node -> pkt -> pkttype == PKT_SIGNATURE ) {\n PKT_signature * sig = node -> pkt -> pkt . signature ;\n if ( ! opt . no_sig_cache && sig -> flags . checked && sig -> flags . valid && ( openpgp_md_test_algo ( sig -> digest_algo ) || openpgp_pk_test_algo ( sig -> pubkey_algo ) ) ) sig -> flags . checked = sig -> flags . valid = 0 ;\n else check_key_signature ( keyblock , node , NULL ) ;\n sigcount ++ ;\n }\n }\n rc = write_keyblock ( tmpfp , keyblock ) ;\n if ( rc ) goto leave ;\n if ( ! ( ++ count % 50 ) && noisy && ! opt . quiet ) log_info ( _ ( \"%lu keys cached so far (%lu signatures)\\n\" ) , count , sigcount ) ;\n }\n }\n if ( rc == - 1 ) rc = 0 ;\n if ( rc ) {\n log_error ( \"keyring_search failed: %s\\n\" , gpg_strerror ( rc ) ) ;\n goto leave ;\n }\n if ( noisy || opt . verbose ) log_info ( _ ( \"%lu keys cached (%lu signatures)\\n\" ) , count , sigcount ) ;\n if ( tmpfp ) {\n if ( iobuf_close ( tmpfp ) ) {\n rc = gpg_error_from_syserror ( ) ;\n log_error ( \"error closing '%s': %s\\n\" , tmpfilename , strerror ( errno ) ) ;\n goto leave ;\n }\n tmpfp = NULL ;\n }\n rc = lastresname ? rename_tmp_file ( bakfilename , tmpfilename , lastresname ) : 0 ;\n xfree ( tmpfilename ) ;\n tmpfilename = NULL ;\n xfree ( bakfilename ) ;\n bakfilename = NULL ;\n leave : if ( tmpfp ) iobuf_cancel ( tmpfp ) ;\n xfree ( tmpfilename ) ;\n xfree ( bakfilename ) ;\n release_kbnode ( keyblock ) ;\n keyring_lock ( hd , 0 ) ;\n keyring_release ( hd ) ;\n return rc ;\n }\n \\ f static int do_copy ( int mode , const char * fname , KBNODE root , off_t start_offset , unsigned int n_packets ) {\n IOBUF fp , newfp ;\n int rc = 0 ;\n char * bakfname = NULL ;\n char * tmpfname = NULL ;\n if ( access ( fname , W_OK ) ) return gpg_error_from_syserror ( ) ;\n fp = iobuf_open ( fname ) ;\n if ( mode == 1 && ! fp && errno == ENOENT ) {\n KBNODE kbctx , node ;\n mode_t oldmask ;\n oldmask = umask ( 077 ) ;\n if ( is_secured_filename ( fname ) ) {\n newfp = NULL ;\n gpg_err_set_errno ( EPERM ) ;\n }\n else newfp = iobuf_create ( fname , 1 ) ;\n umask ( oldmask ) ;\n if ( ! newfp ) {\n rc = gpg_error_from_syserror ( ) ;\n log_error ( _ ( \"can't create '%s': %s\\n\" ) , fname , strerror ( errno ) ) ;\n return rc ;\n }\n if ( ! opt . quiet ) log_info ( _ ( \"%s: keyring created\\n\" ) , fname ) ;\n kbctx = NULL ;\n while ( ( node = walk_kbnode ( root , & kbctx , 0 ) ) ) {\n if ( ( rc = build_packet ( newfp , node -> pkt ) ) ) {\n log_error ( \"build_packet(%d) failed: %s\\n\" , node -> pkt -> pkttype , gpg_strerror ( rc ) ) ;\n iobuf_cancel ( newfp ) ;\n return rc ;\n }\n }\n if ( iobuf_close ( newfp ) ) {\n rc = gpg_error_from_syserror ( ) ;\n log_error ( \"%s: close failed: %s\\n\" , fname , strerror ( errno ) ) ;\n return rc ;\n }\n return 0 ;\n }\n if ( ! fp ) {\n rc = gpg_error_from_syserror ( ) ;\n log_error ( _ ( \"can't open '%s': %s\\n\" ) , fname , strerror ( errno ) ) ;\n goto leave ;\n }\n rc = create_tmp_file ( fname , & bakfname , & tmpfname , & newfp ) ;\n if ( rc ) {\n iobuf_close ( fp ) ;\n goto leave ;\n }\n if ( mode == 1 ) {\n rc = copy_all_packets ( fp , newfp ) ;\n if ( rc != - 1 ) {\n log_error ( \"%s: copy to '%s' failed: %s\\n\" , fname , tmpfname , gpg_strerror ( rc ) ) ;\n iobuf_close ( fp ) ;\n iobuf_cancel ( newfp ) ;\n goto leave ;\n }\n rc = 0 ;\n }\n if ( mode == 2 || mode == 3 ) {\n rc = copy_some_packets ( fp , newfp , start_offset ) ;\n if ( rc ) {\n log_error ( \"%s: copy to '%s' failed: %s\\n\" , fname , tmpfname , gpg_strerror ( rc ) ) ;\n iobuf_close ( fp ) ;\n iobuf_cancel ( newfp ) ;\n goto leave ;\n }\n assert ( n_packets ) ;\n rc = skip_some_packets ( fp , n_packets ) ;\n if ( rc ) {\n log_error ( \"%s: skipping %u packets failed: %s\\n\" , fname , n_packets , gpg_strerror ( rc ) ) ;\n iobuf_close ( fp ) ;\n iobuf_cancel ( newfp ) ;\n goto leave ;\n }\n }\n if ( mode == 1 || mode == 3 ) {\n rc = write_keyblock ( newfp , root ) ;\n if ( rc ) {\n iobuf_close ( fp ) ;\n iobuf_cancel ( newfp ) ;\n goto leave ;\n }\n }\n if ( mode == 2 || mode == 3 ) {\n rc = copy_all_packets ( fp , newfp ) ;\n if ( rc != - 1 ) {\n log_error ( \"%s: copy to '%s' failed: %s\\n\" , fname , tmpfname , gpg_strerror ( rc ) ) ;\n iobuf_close ( fp ) ;\n iobuf_cancel ( newfp ) ;\n goto leave ;\n }\n rc = 0 ;\n }\n if ( iobuf_close ( fp ) ) {\n rc = gpg_error_from_syserror ( ) ;\n log_error ( \"%s: close failed: %s\\n\" , fname , strerror ( errno ) ) ;\n goto leave ;\n }\n if ( iobuf_close ( newfp ) ) {\n rc = gpg_error_from_syserror ( ) ;\n log_error ( \"%s: close failed: %s\\n\" , tmpfname , strerror ( errno ) ) ;\n goto leave ;\n }\n rc = rename_tmp_file ( bakfname , tmpfname , fname ) ;\n leave : xfree ( bakfname ) ;\n xfree ( tmpfname ) ;\n return rc ;\n }"}
{"idx": 13061, "target": 1, "func": "int jas_image_readcmpt ( jas_image_t * image , int cmptno , jas_image_coord_t x , jas_image_coord_t y , jas_image_coord_t width , jas_image_coord_t height , jas_matrix_t * data ) {\n jas_image_cmpt_t * cmpt ;\n jas_image_coord_t i ;\n jas_image_coord_t j ;\n int k ;\n jas_seqent_t v ;\n int c ;\n jas_seqent_t * dr ;\n jas_seqent_t * d ;\n int drs ;\n if ( cmptno < 0 || cmptno >= image -> numcmpts_ ) {\n return - 1 ;\n }\n cmpt = image -> cmpts_ [ cmptno ] ;\n if ( x >= cmpt -> width_ || y >= cmpt -> height_ || x + width > cmpt -> width_ || y + height > cmpt -> height_ ) {\n return - 1 ;\n }\n if ( jas_matrix_numrows ( data ) != height || jas_matrix_numcols ( data ) != width ) {\n if ( jas_matrix_resize ( data , height , width ) ) {\n return - 1 ;\n }\n }\n dr = jas_matrix_getref ( data , 0 , 0 ) ;\n drs = jas_matrix_rowstep ( data ) ;\n for ( i = 0 ;\n i < height ;\n ++ i , dr += drs ) {\n d = dr ;\n if ( jas_stream_seek ( cmpt -> stream_ , ( cmpt -> width_ * ( y + i ) + x ) * cmpt -> cps_ , SEEK_SET ) < 0 ) {\n return - 1 ;\n }\n for ( j = width ;\n j > 0 ;\n -- j , ++ d ) {\n v = 0 ;\n for ( k = cmpt -> cps_ ;\n k > 0 ;\n -- k ) {\n if ( ( c = jas_stream_getc ( cmpt -> stream_ ) ) == EOF ) {\n return - 1 ;\n }\n v = ( v << 8 ) | ( c & 0xff ) ;\n }\n * d = bitstoint ( v , cmpt -> prec_ , cmpt -> sgnd_ ) ;\n }\n }\n return 0 ;\n }"}
{"idx": 13062, "target": 0, "func": "static int copy_rules ( apr_pool_t * mp , msre_ruleset * parent_ruleset , msre_ruleset * child_ruleset , apr_array_header_t * exceptions_arr ) {\n copy_rules_phase ( mp , parent_ruleset -> phase_request_headers , child_ruleset -> phase_request_headers , exceptions_arr ) ;\n copy_rules_phase ( mp , parent_ruleset -> phase_request_body , child_ruleset -> phase_request_body , exceptions_arr ) ;\n copy_rules_phase ( mp , parent_ruleset -> phase_response_headers , child_ruleset -> phase_response_headers , exceptions_arr ) ;\n copy_rules_phase ( mp , parent_ruleset -> phase_response_body , child_ruleset -> phase_response_body , exceptions_arr ) ;\n copy_rules_phase ( mp , parent_ruleset -> phase_logging , child_ruleset -> phase_logging , exceptions_arr ) ;\n return 1 ;\n }"}
{"idx": 13063, "target": 0, "func": "void remoteDispatchOOMError ( remote_error * rerr ) {\n remoteDispatchStringError ( rerr , VIR_ERR_NO_MEMORY , \"out of memory\" ) ;\n }"}
{"idx": 13064, "target": 0, "func": "REGRESSION_TEST ( SDK_API_TSActionCancel ) ( RegressionTest * test , int , int * pstatus ) {\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n SDK_ActionCancel_test = test ;\n SDK_ActionCancel_pstatus = pstatus ;\n TSMutex cont_mutex = TSMutexCreate ( ) ;\n TSCont contp = TSContCreate ( action_cancel_handler , cont_mutex ) ;\n TSAction actionp = TSContSchedule ( contp , 10000 , TS_THREAD_POOL_DEFAULT ) ;\n TSMutexLock ( cont_mutex ) ;\n if ( TSActionDone ( actionp ) ) {\n * pstatus = REGRESSION_TEST_FAILED ;\n TSMutexUnlock ( cont_mutex ) ;\n return ;\n }\n else {\n TSActionCancel ( actionp ) ;\n }\n TSMutexUnlock ( cont_mutex ) ;\n TSContSchedule ( contp , 0 , TS_THREAD_POOL_DEFAULT ) ;\n }"}
{"idx": 13065, "target": 0, "func": "static inline void GetPixelInfoPixel ( const Image * restrict image , const Quantum * restrict pixel , PixelInfo * restrict pixel_info ) {\n pixel_info -> colorspace = image -> colorspace ;\n pixel_info -> fuzz = image -> fuzz ;\n pixel_info -> red = ( MagickRealType ) pixel [ image -> channel_map [ RedPixelChannel ] . offset ] ;\n pixel_info -> green = ( MagickRealType ) pixel [ image -> channel_map [ GreenPixelChannel ] . offset ] ;\n pixel_info -> blue = ( MagickRealType ) pixel [ image -> channel_map [ BluePixelChannel ] . offset ] ;\n pixel_info -> black = 0.0f ;\n if ( image -> channel_map [ BlackPixelChannel ] . traits != UndefinedPixelTrait ) pixel_info -> black = ( MagickRealType ) pixel [ image -> channel_map [ BlackPixelChannel ] . offset ] ;\n pixel_info -> alpha = ( MagickRealType ) OpaqueAlpha ;\n pixel_info -> alpha_trait = UndefinedPixelTrait ;\n if ( image -> channel_map [ AlphaPixelChannel ] . traits != UndefinedPixelTrait ) {\n pixel_info -> alpha = ( MagickRealType ) pixel [ image -> channel_map [ AlphaPixelChannel ] . offset ] ;\n pixel_info -> alpha_trait = BlendPixelTrait ;\n }\n pixel_info -> index = 0.0f ;\n if ( image -> channel_map [ IndexPixelChannel ] . traits != UndefinedPixelTrait ) pixel_info -> index = ( MagickRealType ) pixel [ image -> channel_map [ IndexPixelChannel ] . offset ] ;\n }"}
{"idx": 13066, "target": 0, "func": "static int dissect_h245_OLC_rev_h223_params ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 206 \"../../asn1/h245/h245.cnf\" h223_rev_lc_params = wmem_new ( wmem_file_scope ( ) , h223_lc_params ) ;\n h223_rev_lc_params -> al_type = al_nonStandard ;\n h223_rev_lc_params -> al_params = NULL ;\n h223_rev_lc_params -> segmentable = 0 ;\n h223_rev_lc_params -> subdissector = NULL ;\n h223_lc_params_temp = h223_rev_lc_params ;\n offset = dissect_h245_H223LogicalChannelParameters ( tvb , offset , actx , tree , hf_index ) ;\n return offset ;\n }"}
{"idx": 13067, "target": 0, "func": "int i2d_ ## name ( type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;\n int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING )"}
{"idx": 13068, "target": 1, "func": "int16_t vp9_ac_quant ( int qindex , int delta ) {\n return ac_qlookup [ clamp ( qindex + delta , 0 , MAXQ ) ] ;\n }"}
{"idx": 13069, "target": 0, "func": "static void test_fetch_null ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n int i , nData ;\n MYSQL_BIND my_bind [ 11 ] ;\n ulong length [ 11 ] ;\n my_bool is_null [ 11 ] ;\n char query [ MAX_TEST_QUERY_LENGTH ] ;\n myheader ( \"test_fetch_null\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_fetch_null\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_fetch_null(\" \" col1 tinyint, col2 smallint, \" \" col3 int, col4 bigint, \" \" col5 float, col6 double, \" \" col7 date, col8 time, \" \" col9 varbinary(10), \" \" col10 varchar(50), \" \" col11 char(20))\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_fetch_null (col11) \" \"VALUES (1000), (88), (389789)\" ) ;\n myquery ( rc ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n for ( i = 0 ;\n i < ( int ) array_elements ( my_bind ) ;\n i ++ ) {\n my_bind [ i ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ i ] . is_null = & is_null [ i ] ;\n my_bind [ i ] . length = & length [ i ] ;\n }\n my_bind [ i - 1 ] . buffer = ( void * ) & nData ;\n strmov ( ( char * ) query , \"SELECT * FROM test_fetch_null\" ) ;\n rc = my_stmt_result ( query ) ;\n DIE_UNLESS ( rc == 3 ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = 0 ;\n while ( mysql_stmt_fetch ( stmt ) != MYSQL_NO_DATA ) {\n rc ++ ;\n for ( i = 0 ;\n i < 10 ;\n i ++ ) {\n if ( ! opt_silent ) fprintf ( stdout , \"\\n data[%d] : %s\" , i , is_null [ i ] ? \"NULL\" : \"NOT NULL\" ) ;\n DIE_UNLESS ( is_null [ i ] ) ;\n }\n if ( ! opt_silent ) fprintf ( stdout , \"\\n data[%d]: %d\" , i , nData ) ;\n DIE_UNLESS ( nData == 1000 || nData == 88 || nData == 389789 ) ;\n DIE_UNLESS ( is_null [ i ] == 0 ) ;\n DIE_UNLESS ( length [ i ] == 4 ) ;\n }\n DIE_UNLESS ( rc == 3 ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 13070, "target": 0, "func": "static void * search_stack ( Operation * op ) {\n struct mdb_info * mdb = ( struct mdb_info * ) op -> o_bd -> be_private ;\n void * ret = NULL ;\n if ( op -> o_threadctx ) {\n ldap_pvt_thread_pool_getkey ( op -> o_threadctx , ( void * ) search_stack , & ret , NULL ) ;\n }\n else {\n ret = mdb -> mi_search_stack ;\n }\n if ( ! ret ) {\n ret = ch_malloc ( mdb -> mi_search_stack_depth * MDB_IDL_UM_SIZE * sizeof ( ID ) ) ;\n if ( op -> o_threadctx ) {\n ldap_pvt_thread_pool_setkey ( op -> o_threadctx , ( void * ) search_stack , ret , search_stack_free , NULL , NULL ) ;\n }\n else {\n mdb -> mi_search_stack = ret ;\n }\n }\n return ret ;\n }"}
{"idx": 13071, "target": 0, "func": "static int err_end_runandhide ( i_ctx_t * i_ctx_p ) {\n int code ;\n if ( ( code = runandhide_restore_hidden ( i_ctx_p , esp + 3 , esp + 2 ) ) < 0 ) return code ;\n return 0 ;\n }"}
{"idx": 13072, "target": 0, "func": "static int remoteStreamHandleWriteData ( struct qemud_client * client , struct qemud_client_stream * stream , struct qemud_client_message * msg ) {\n remote_error rerr ;\n int ret ;\n VIR_DEBUG ( \"stream=%p proc=%d serial=%d len=%d offset=%d\" , stream , msg -> hdr . proc , msg -> hdr . serial , msg -> bufferLength , msg -> bufferOffset ) ;\n memset ( & rerr , 0 , sizeof rerr ) ;\n ret = virStreamSend ( stream -> st , msg -> buffer + msg -> bufferOffset , msg -> bufferLength - msg -> bufferOffset ) ;\n if ( ret > 0 ) {\n msg -> bufferOffset += ret ;\n if ( msg -> bufferOffset < msg -> bufferLength ) return 1 ;\n }\n else if ( ret == - 2 ) {\n return 1 ;\n }\n else {\n VIR_INFO0 ( \"Stream send failed\" ) ;\n stream -> closed = 1 ;\n remoteDispatchError ( & rerr ) ;\n return remoteSerializeReplyError ( client , & rerr , & msg -> hdr ) ;\n }\n return 0 ;\n }"}
{"idx": 13073, "target": 0, "func": "static int dissect_h245_INTEGER_0_63 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 63U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 13074, "target": 0, "func": "static void mips_fulong2e_machine_init ( void ) {\n qemu_register_machine ( & mips_fulong2e_machine ) ;\n }"}
{"idx": 13075, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( SiteDetailsBrowserTest , MAYBE_IsolateExtensions ) {\n scoped_refptr < TestMemoryDetails > details = new TestMemoryDetails ( ) ;\n details -> StartFetchAndWait ( ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.CurrentRendererProcessCount\" ) , HasOneSample ( GetRenderProcessCount ( ) ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateNothingProcessCountEstimate\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountEstimate\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountLowerBound\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountNoLimit\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( GetRenderProcessCount ( ) , 1 ) ;\n EXPECT_EQ ( 0 , details -> GetOutOfProcessIframeCount ( ) ) ;\n const Extension * extension1 = CreateExtension ( \"Extension One\" , true ) ;\n const Extension * extension2 = CreateExtension ( \"Extension Two\" , false ) ;\n GURL tab1_url = embedded_test_server ( ) -> GetURL ( \"a.com\" , \"/cross_site_iframe_factory.html?a(b,c)\" ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , tab1_url ) ;\n WebContents * tab1 = browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 0 ) ;\n GURL tab2_url = embedded_test_server ( ) -> GetURL ( \"a.com\" , \"/cross_site_iframe_factory.html?a(d,e)\" ) ;\n AddTabAtIndex ( 1 , tab2_url , ui : : PAGE_TRANSITION_TYPED ) ;\n WebContents * tab2 = browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 1 ) ;\n details = new TestMemoryDetails ( ) ;\n details -> StartFetchAndWait ( ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.CurrentRendererProcessCount\" ) , HasOneSample ( GetRenderProcessCount ( ) ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateNothingProcessCountEstimate\" ) , HasOneSample ( 3 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountEstimate\" ) , HasOneSample ( 3 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountLowerBound\" ) , HasOneSample ( 2 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountNoLimit\" ) , HasOneSample ( 3 ) ) ;\n EXPECT_THAT ( GetRenderProcessCount ( ) , DependingOnPolicy ( 3 , 3 , 7 ) ) ;\n EXPECT_THAT ( details -> GetOutOfProcessIframeCount ( ) , DependingOnPolicy ( 0 , 0 , 4 ) ) ;\n content : : NavigateIframeToURL ( tab1 , \"child-0\" , extension1 -> GetResourceURL ( \"/blank_iframe.html\" ) ) ;\n details = new TestMemoryDetails ( ) ;\n details -> StartFetchAndWait ( ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.CurrentRendererProcessCount\" ) , HasOneSample ( GetRenderProcessCount ( ) ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateNothingProcessCountEstimate\" ) , HasOneSample ( 3 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountEstimate\" ) , HasOneSample ( 3 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountLowerBound\" ) , HasOneSample ( 2 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountNoLimit\" ) , HasOneSample ( 3 ) ) ;\n EXPECT_THAT ( GetRenderProcessCount ( ) , DependingOnPolicy ( 3 , 3 , 6 ) ) ;\n EXPECT_THAT ( details -> GetOutOfProcessIframeCount ( ) , DependingOnPolicy ( 0 , 1 , 4 ) ) ;\n content : : NavigateIframeToURL ( tab2 , \"child-0\" , extension1 -> GetResourceURL ( \"/blank_iframe.html\" ) ) ;\n details = new TestMemoryDetails ( ) ;\n details -> StartFetchAndWait ( ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.CurrentRendererProcessCount\" ) , HasOneSample ( GetRenderProcessCount ( ) ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateNothingProcessCountEstimate\" ) , HasOneSample ( 3 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountEstimate\" ) , HasOneSample ( 3 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountLowerBound\" ) , HasOneSample ( 2 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountNoLimit\" ) , HasOneSample ( 3 ) ) ;\n EXPECT_THAT ( GetRenderProcessCount ( ) , DependingOnPolicy ( 3 , 3 , 5 ) ) ;\n EXPECT_THAT ( details -> GetOutOfProcessIframeCount ( ) , DependingOnPolicy ( 0 , 2 , 4 ) ) ;\n content : : NavigateIframeToURL ( tab1 , \"child-1\" , extension2 -> GetResourceURL ( \"/blank_iframe.html\" ) ) ;\n details = new TestMemoryDetails ( ) ;\n details -> StartFetchAndWait ( ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.CurrentRendererProcessCount\" ) , HasOneSample ( GetRenderProcessCount ( ) ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateNothingProcessCountEstimate\" ) , HasOneSample ( 3 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountEstimate\" ) , HasOneSample ( 4 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountLowerBound\" ) , HasOneSample ( 3 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountNoLimit\" ) , HasOneSample ( 4 ) ) ;\n EXPECT_THAT ( GetRenderProcessCount ( ) , DependingOnPolicy ( 3 , 4 , 5 ) ) ;\n EXPECT_THAT ( details -> GetOutOfProcessIframeCount ( ) , DependingOnPolicy ( 0 , 3 , 4 ) ) ;\n content : : NavigateIframeToURL ( tab2 , \"child-1\" , extension2 -> GetResourceURL ( \"/blank_iframe.html\" ) ) ;\n details = new TestMemoryDetails ( ) ;\n details -> StartFetchAndWait ( ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.CurrentRendererProcessCount\" ) , HasOneSample ( GetRenderProcessCount ( ) ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateNothingProcessCountEstimate\" ) , HasOneSample ( 3 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountEstimate\" ) , HasOneSample ( 4 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountLowerBound\" ) , HasOneSample ( 3 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountNoLimit\" ) , HasOneSample ( 4 ) ) ;\n EXPECT_THAT ( GetRenderProcessCount ( ) , DependingOnPolicy ( 3 , 4 , 4 ) ) ;\n EXPECT_THAT ( details -> GetOutOfProcessIframeCount ( ) , DependingOnPolicy ( 0 , 4 , 4 ) ) ;\n const Extension * extension3 = CreateExtension ( \"Extension Three\" , false ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , extension3 -> GetResourceURL ( \"blank_iframe.html\" ) ) ;\n details = new TestMemoryDetails ( ) ;\n details -> StartFetchAndWait ( ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.CurrentRendererProcessCount\" ) , HasOneSample ( GetRenderProcessCount ( ) ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateNothingProcessCountEstimate\" ) , HasOneSample ( 3 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountEstimate\" ) , HasOneSample ( 4 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountLowerBound\" ) , HasOneSample ( 4 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountNoLimit\" ) , HasOneSample ( 4 ) ) ;\n EXPECT_THAT ( GetRenderProcessCount ( ) , DependingOnPolicy ( 3 , 4 , 4 ) ) ;\n EXPECT_THAT ( details -> GetOutOfProcessIframeCount ( ) , DependingOnPolicy ( 0 , 2 , 2 ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , extension3 -> GetResourceURL ( \"http_iframe.html\" ) ) ;\n details = new TestMemoryDetails ( ) ;\n details -> StartFetchAndWait ( ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.CurrentRendererProcessCount\" ) , HasOneSample ( GetRenderProcessCount ( ) ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateNothingProcessCountEstimate\" ) , HasOneSample ( 3 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountEstimate\" ) , HasOneSample ( 5 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountLowerBound\" ) , HasOneSample ( 4 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountNoLimit\" ) , HasOneSample ( 5 ) ) ;\n EXPECT_THAT ( GetRenderProcessCount ( ) , DependingOnPolicy ( 3 , 5 , 5 ) ) ;\n EXPECT_THAT ( details -> GetOutOfProcessIframeCount ( ) , DependingOnPolicy ( 0 , 3 , 3 ) ) ;\n browser ( ) -> tab_strip_model ( ) -> ActivateTabAt ( 0 , true ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , extension3 -> GetResourceURL ( \"blank_iframe.html\" ) ) ;\n details = new TestMemoryDetails ( ) ;\n details -> StartFetchAndWait ( ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.CurrentRendererProcessCount\" ) , HasOneSample ( GetRenderProcessCount ( ) ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateNothingProcessCountEstimate\" ) , HasOneSample ( 2 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountEstimate\" ) , HasOneSample ( 3 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountLowerBound\" ) , HasOneSample ( 3 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountNoLimit\" ) , HasOneSample ( 3 ) ) ;\n EXPECT_THAT ( GetRenderProcessCount ( ) , DependingOnPolicy ( 2 , 3 , 3 ) ) ;\n EXPECT_THAT ( details -> GetOutOfProcessIframeCount ( ) , DependingOnPolicy ( 0 , 1 , 1 ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , extension3 -> GetResourceURL ( \"http_iframe.html\" ) ) ;\n details = new TestMemoryDetails ( ) ;\n details -> StartFetchAndWait ( ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.CurrentRendererProcessCount\" ) , HasOneSample ( GetRenderProcessCount ( ) ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateNothingProcessCountEstimate\" ) , HasOneSample ( 2 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountEstimate\" ) , HasOneSample ( 4 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountLowerBound\" ) , HasOneSample ( 3 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountNoLimit\" ) , HasOneSample ( 4 ) ) ;\n EXPECT_THAT ( GetRenderProcessCount ( ) , DependingOnPolicy ( 2 , 4 , 3 ) ) ;\n EXPECT_THAT ( details -> GetOutOfProcessIframeCount ( ) , DependingOnPolicy ( 0 , 2 , 2 ) ) ;\n }"}
{"idx": 13076, "target": 1, "func": "void bn_sqr_comba4 ( BN_ULONG * r , const BN_ULONG * a ) {\n BN_ULONG t1 , t2 ;\n BN_ULONG c1 , c2 , c3 ;\n c1 = 0 ;\n c2 = 0 ;\n c3 = 0 ;\n sqr_add_c ( a , 0 , c1 , c2 , c3 ) ;\n r [ 0 ] = c1 ;\n c1 = 0 ;\n sqr_add_c2 ( a , 1 , 0 , c2 , c3 , c1 ) ;\n r [ 1 ] = c2 ;\n c2 = 0 ;\n sqr_add_c ( a , 1 , c3 , c1 , c2 ) ;\n sqr_add_c2 ( a , 2 , 0 , c3 , c1 , c2 ) ;\n r [ 2 ] = c3 ;\n c3 = 0 ;\n sqr_add_c2 ( a , 3 , 0 , c1 , c2 , c3 ) ;\n sqr_add_c2 ( a , 2 , 1 , c1 , c2 , c3 ) ;\n r [ 3 ] = c1 ;\n c1 = 0 ;\n sqr_add_c ( a , 2 , c2 , c3 , c1 ) ;\n sqr_add_c2 ( a , 3 , 1 , c2 , c3 , c1 ) ;\n r [ 4 ] = c2 ;\n c2 = 0 ;\n sqr_add_c2 ( a , 3 , 2 , c3 , c1 , c2 ) ;\n r [ 5 ] = c3 ;\n c3 = 0 ;\n sqr_add_c ( a , 3 , c1 , c2 , c3 ) ;\n r [ 6 ] = c1 ;\n r [ 7 ] = c2 ;\n }"}
{"idx": 13077, "target": 0, "func": "int estimate_array_length ( Node * arrayexpr ) {\n arrayexpr = strip_array_coercion ( arrayexpr ) ;\n if ( arrayexpr && IsA ( arrayexpr , Const ) ) {\n Datum arraydatum = ( ( Const * ) arrayexpr ) -> constvalue ;\n bool arrayisnull = ( ( Const * ) arrayexpr ) -> constisnull ;\n ArrayType * arrayval ;\n if ( arrayisnull ) return 0 ;\n arrayval = DatumGetArrayTypeP ( arraydatum ) ;\n return ArrayGetNItems ( ARR_NDIM ( arrayval ) , ARR_DIMS ( arrayval ) ) ;\n }\n else if ( arrayexpr && IsA ( arrayexpr , ArrayExpr ) && ! ( ( ArrayExpr * ) arrayexpr ) -> multidims ) {\n return list_length ( ( ( ArrayExpr * ) arrayexpr ) -> elements ) ;\n }\n else {\n return 10 ;\n }\n }"}
{"idx": 13078, "target": 0, "func": "TEST_F ( BrowsingDataRemoverImplTest , RemoveQuotaManagedProtectedSpecificOrigin ) {\n # if BUILDFLAG ( ENABLE_EXTENSIONS ) MockExtensionSpecialStoragePolicy * policy = CreateMockPolicy ( ) ;\n policy -> AddProtected ( kOrigin1 . GetOrigin ( ) ) ;\n # endif std : : unique_ptr < BrowsingDataFilterBuilder > builder ( BrowsingDataFilterBuilder : : Create ( BrowsingDataFilterBuilder : : WHITELIST ) ) ;\n builder -> AddRegisterableDomain ( kTestRegisterableDomain1 ) ;\n BlockUntilOriginDataRemoved ( base : : Time ( ) , base : : Time : : Max ( ) , BrowsingDataRemover : : REMOVE_APPCACHE | BrowsingDataRemover : : REMOVE_SERVICE_WORKERS | BrowsingDataRemover : : REMOVE_CACHE_STORAGE | BrowsingDataRemover : : REMOVE_FILE_SYSTEMS | BrowsingDataRemover : : REMOVE_INDEXEDDB | BrowsingDataRemover : : REMOVE_WEBSQL , std : : move ( builder ) ) ;\n EXPECT_EQ ( BrowsingDataRemover : : REMOVE_APPCACHE | BrowsingDataRemover : : REMOVE_SERVICE_WORKERS | BrowsingDataRemover : : REMOVE_CACHE_STORAGE | BrowsingDataRemover : : REMOVE_FILE_SYSTEMS | BrowsingDataRemover : : REMOVE_INDEXEDDB | BrowsingDataRemover : : REMOVE_WEBSQL , GetRemovalMask ( ) ) ;\n EXPECT_EQ ( BrowsingDataHelper : : UNPROTECTED_WEB , GetOriginTypeMask ( ) ) ;\n StoragePartitionRemovalData removal_data = GetStoragePartitionRemovalData ( ) ;\n EXPECT_EQ ( removal_data . remove_mask , StoragePartition : : REMOVE_DATA_MASK_FILE_SYSTEMS | StoragePartition : : REMOVE_DATA_MASK_WEBSQL | StoragePartition : : REMOVE_DATA_MASK_APPCACHE | StoragePartition : : REMOVE_DATA_MASK_SERVICE_WORKERS | StoragePartition : : REMOVE_DATA_MASK_CACHE_STORAGE | StoragePartition : : REMOVE_DATA_MASK_INDEXEDDB ) ;\n EXPECT_EQ ( removal_data . quota_storage_remove_mask , StoragePartition : : QUOTA_MANAGED_STORAGE_MASK_ALL ) ;\n EXPECT_EQ ( ShouldRemoveForProtectedOriginOne ( ) , removal_data . origin_matcher . Run ( kOrigin1 , mock_policy ( ) ) ) ;\n EXPECT_FALSE ( removal_data . origin_matcher . Run ( kOrigin2 , mock_policy ( ) ) ) ;\n EXPECT_FALSE ( removal_data . origin_matcher . Run ( kOrigin3 , mock_policy ( ) ) ) ;\n }"}
{"idx": 13079, "target": 0, "func": "void check_regerr ( my_regex_t * r , int err ) {\n char err_buf [ 1024 ] ;\n if ( err ) {\n my_regerror ( err , r , err_buf , sizeof ( err_buf ) ) ;\n die ( \"Regex error: %s\\n\" , err_buf ) ;\n }\n }"}
{"idx": 13080, "target": 0, "func": "static void par_list_append ( TocEntry * l , TocEntry * te ) {\n te -> par_prev = l -> par_prev ;\n l -> par_prev -> par_next = te ;\n l -> par_prev = te ;\n te -> par_next = l ;\n }"}
{"idx": 13081, "target": 0, "func": "static void dumpgasp ( struct alltabs * at , SplineFont * sf ) {\n int i ;\n at -> gaspf = tmpfile ( ) ;\n if ( sf -> gasp_cnt == 0 ) {\n putshort ( at -> gaspf , 0 ) ;\n putshort ( at -> gaspf , 1 ) ;\n putshort ( at -> gaspf , 0xffff ) ;\n putshort ( at -> gaspf , 0x2 ) ;\n }\n else {\n putshort ( at -> gaspf , sf -> gasp_version ) ;\n putshort ( at -> gaspf , sf -> gasp_cnt ) ;\n for ( i = 0 ;\n i < sf -> gasp_cnt ;\n ++ i ) {\n putshort ( at -> gaspf , sf -> gasp [ i ] . ppem ) ;\n putshort ( at -> gaspf , sf -> gasp [ i ] . flags ) ;\n }\n }\n at -> gasplen = ftell ( at -> gaspf ) ;\n }"}
{"idx": 13082, "target": 0, "func": "proto_item * parseSByte ( proto_tree * tree , tvbuff_t * tvb , packet_info * pinfo _U_ , gint * pOffset , int hfIndex ) {\n proto_item * item = proto_tree_add_item ( tree , hfIndex , tvb , * pOffset , 1 , ENC_LITTLE_ENDIAN ) ;\n * pOffset += 1 ;\n return item ;\n }"}
{"idx": 13083, "target": 0, "func": "static void arm_gic_realize ( DeviceState * dev , Error * * errp ) {\n int i ;\n GICState * s = ARM_GIC ( dev ) ;\n SysBusDevice * sbd = SYS_BUS_DEVICE ( dev ) ;\n ARMGICClass * agc = ARM_GIC_GET_CLASS ( s ) ;\n agc -> parent_realize ( dev , errp ) ;\n if ( error_is_set ( errp ) ) {\n return ;\n }\n gic_init_irqs_and_distributor ( s , s -> num_irq ) ;\n memory_region_init_io ( & s -> cpuiomem [ 0 ] , OBJECT ( s ) , & gic_thiscpu_ops , s , \"gic_cpu\" , 0x100 ) ;\n for ( i = 0 ;\n i < NUM_CPU ( s ) ;\n i ++ ) {\n s -> backref [ i ] = s ;\n memory_region_init_io ( & s -> cpuiomem [ i + 1 ] , OBJECT ( s ) , & gic_cpu_ops , & s -> backref [ i ] , \"gic_cpu\" , 0x100 ) ;\n }\n sysbus_init_mmio ( sbd , & s -> iomem ) ;\n for ( i = 0 ;\n i <= NUM_CPU ( s ) ;\n i ++ ) {\n sysbus_init_mmio ( sbd , & s -> cpuiomem [ i ] ) ;\n }\n }"}
{"idx": 13084, "target": 0, "func": "void proto_reg_handoff_pkt_ccc ( void ) {\n static gboolean initialized = FALSE ;\n static dissector_handle_t pkt_ccc_handle ;\n static guint saved_pkt_ccc_udp_port ;\n if ( ! initialized ) {\n pkt_ccc_handle = find_dissector ( \"pkt_ccc\" ) ;\n dissector_add_handle ( \"udp.port\" , pkt_ccc_handle ) ;\n initialized = TRUE ;\n }\n else {\n if ( saved_pkt_ccc_udp_port != 0 ) {\n dissector_delete_uint ( \"udp.port\" , saved_pkt_ccc_udp_port , pkt_ccc_handle ) ;\n }\n }\n if ( global_pkt_ccc_udp_port != 0 ) {\n dissector_add_uint ( \"udp.port\" , global_pkt_ccc_udp_port , pkt_ccc_handle ) ;\n }\n saved_pkt_ccc_udp_port = global_pkt_ccc_udp_port ;\n }"}
{"idx": 13085, "target": 0, "func": "static void put_cursor ( uint8_t * dst , int stride , VmncContext * c , int dx , int dy ) {\n int i , j ;\n int w , h , x , y ;\n w = c -> cur_w ;\n if ( c -> width < c -> cur_x + c -> cur_w ) w = c -> width - c -> cur_x ;\n h = c -> cur_h ;\n if ( c -> height < c -> cur_y + c -> cur_h ) h = c -> height - c -> cur_y ;\n x = c -> cur_x ;\n y = c -> cur_y ;\n if ( x < 0 ) {\n w += x ;\n x = 0 ;\n }\n if ( y < 0 ) {\n h += y ;\n y = 0 ;\n }\n if ( ( w < 1 ) || ( h < 1 ) ) return ;\n dst += x * c -> bpp2 + y * stride ;\n if ( c -> bpp2 == 1 ) {\n uint8_t * cd = c -> curbits , * msk = c -> curmask ;\n for ( j = 0 ;\n j < h ;\n j ++ ) {\n for ( i = 0 ;\n i < w ;\n i ++ ) dst [ i ] = ( dst [ i ] & cd [ i ] ) ^ msk [ i ] ;\n msk += c -> cur_w ;\n cd += c -> cur_w ;\n dst += stride ;\n }\n }\n else if ( c -> bpp2 == 2 ) {\n uint16_t * cd = ( uint16_t * ) c -> curbits , * msk = ( uint16_t * ) c -> curmask ;\n uint16_t * dst2 ;\n for ( j = 0 ;\n j < h ;\n j ++ ) {\n dst2 = ( uint16_t * ) dst ;\n for ( i = 0 ;\n i < w ;\n i ++ ) dst2 [ i ] = ( dst2 [ i ] & cd [ i ] ) ^ msk [ i ] ;\n msk += c -> cur_w ;\n cd += c -> cur_w ;\n dst += stride ;\n }\n }\n else if ( c -> bpp2 == 4 ) {\n uint32_t * cd = ( uint32_t * ) c -> curbits , * msk = ( uint32_t * ) c -> curmask ;\n uint32_t * dst2 ;\n for ( j = 0 ;\n j < h ;\n j ++ ) {\n dst2 = ( uint32_t * ) dst ;\n for ( i = 0 ;\n i < w ;\n i ++ ) dst2 [ i ] = ( dst2 [ i ] & cd [ i ] ) ^ msk [ i ] ;\n msk += c -> cur_w ;\n cd += c -> cur_w ;\n dst += stride ;\n }\n }\n }"}
{"idx": 13086, "target": 0, "func": "static cmsTagTypeHandler * GetHandler ( cmsTagTypeSignature sig , _cmsTagTypeLinkedList * PluginLinkedList , _cmsTagTypeLinkedList * DefaultLinkedList ) {\n _cmsTagTypeLinkedList * pt ;\n for ( pt = PluginLinkedList ;\n pt != NULL ;\n pt = pt -> Next ) {\n if ( sig == pt -> Handler . Signature ) return & pt -> Handler ;\n }\n for ( pt = DefaultLinkedList ;\n pt != NULL ;\n pt = pt -> Next ) {\n if ( sig == pt -> Handler . Signature ) return & pt -> Handler ;\n }\n return NULL ;\n }"}
{"idx": 13087, "target": 0, "func": "static void copy_frame_default ( AVFrame * f , const uint8_t * src , int src_stride , int linelen , int height ) {\n int i ;\n uint8_t * dst = f -> data [ 0 ] ;\n dst += ( height - 1 ) * f -> linesize [ 0 ] ;\n for ( i = height ;\n i ;\n i -- ) {\n memcpy ( dst , src , linelen ) ;\n src += src_stride ;\n dst -= f -> linesize [ 0 ] ;\n }\n }"}
{"idx": 13088, "target": 1, "func": "static uint get_table_structure ( char * table , char * db , char * table_type , char * ignore_flag ) {\n my_bool init = 0 , delayed , write_data , complete_insert ;\n my_ulonglong num_fields ;\n char * result_table , * opt_quoted_table ;\n const char * insert_option ;\n char name_buff [ NAME_LEN + 3 ] , table_buff [ NAME_LEN * 2 + 3 ] ;\n char table_buff2 [ NAME_LEN * 2 + 3 ] , query_buff [ QUERY_LENGTH ] ;\n const char * show_fields_stmt = \"SELECT `COLUMN_NAME` AS `Field`, \" \"`COLUMN_TYPE` AS `Type`, \" \"`IS_NULLABLE` AS `Null`, \" \"`COLUMN_KEY` AS `Key`, \" \"`COLUMN_DEFAULT` AS `Default`, \" \"`EXTRA` AS `Extra`, \" \"`COLUMN_COMMENT` AS `Comment` \" \"FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE \" \"TABLE_SCHEMA = '%s' AND TABLE_NAME = '%s'\" ;\n FILE * sql_file = md_result_file ;\n int len ;\n my_bool is_log_table ;\n MYSQL_RES * result ;\n MYSQL_ROW row ;\n DBUG_ENTER ( \"get_table_structure\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"db: %s table: %s\" , db , table ) ) ;\n * ignore_flag = check_if_ignore_table ( table , table_type ) ;\n delayed = opt_delayed ;\n if ( delayed && ( * ignore_flag & IGNORE_INSERT_DELAYED ) ) {\n delayed = 0 ;\n verbose_msg ( \"-- Warning: Unable to use delayed inserts for table '%s' \" \"because it's of type %s\\n\" , table , table_type ) ;\n }\n complete_insert = 0 ;\n if ( ( write_data = ! ( * ignore_flag & IGNORE_DATA ) ) ) {\n complete_insert = opt_complete_insert ;\n if ( ! insert_pat_inited ) {\n insert_pat_inited = 1 ;\n init_dynamic_string_checked ( & insert_pat , \"\" , 1024 , 1024 ) ;\n }\n else dynstr_set_checked ( & insert_pat , \"\" ) ;\n }\n insert_option = ( ( delayed && opt_ignore ) ? \" DELAYED IGNORE \" : delayed ? \" DELAYED \" : opt_ignore ? \" IGNORE \" : \"\" ) ;\n verbose_msg ( \"-- Retrieving table structure for table %s...\\n\" , table ) ;\n len = my_snprintf ( query_buff , sizeof ( query_buff ) , \"SET SQL_QUOTE_SHOW_CREATE=%d\" , ( opt_quoted || opt_keywords ) ) ;\n if ( ! create_options ) strmov ( query_buff + len , \"/*!40102 ,SQL_MODE=concat(@@sql_mode, _utf8 ',NO_KEY_OPTIONS,NO_TABLE_OPTIONS,NO_FIELD_OPTIONS') */\" ) ;\n result_table = quote_name ( table , table_buff , 1 ) ;\n opt_quoted_table = quote_name ( table , table_buff2 , 0 ) ;\n if ( opt_order_by_primary ) order_by = primary_key_fields ( result_table ) ;\n if ( ! opt_xml && ! mysql_query_with_error_report ( mysql , 0 , query_buff ) ) {\n if ( ! opt_no_create_info ) {\n char buff [ 20 + FN_REFLEN ] ;\n MYSQL_FIELD * field ;\n my_snprintf ( buff , sizeof ( buff ) , \"show create table %s\" , result_table ) ;\n if ( switch_character_set_results ( mysql , \"binary\" ) || mysql_query_with_error_report ( mysql , & result , buff ) || switch_character_set_results ( mysql , default_charset ) ) DBUG_RETURN ( 0 ) ;\n if ( path ) {\n if ( ! ( sql_file = open_sql_file_for_table ( table , O_WRONLY ) ) ) DBUG_RETURN ( 0 ) ;\n write_header ( sql_file , db ) ;\n }\n if ( strcmp ( table_type , \"VIEW\" ) == 0 ) print_comment ( sql_file , 0 , \"\\n--\\n-- Temporary table structure for view %s\\n--\\n\\n\" , result_table ) ;\n else print_comment ( sql_file , 0 , \"\\n--\\n-- Table structure for table %s\\n--\\n\\n\" , result_table ) ;\n if ( opt_drop ) {\n if ( ! general_log_or_slow_log_tables ( db , table ) ) fprintf ( sql_file , \"DROP TABLE IF EXISTS %s;\n\\n\" , opt_quoted_table ) ;\n check_io ( sql_file ) ;\n }\n field = mysql_fetch_field_direct ( result , 0 ) ;\n if ( strcmp ( field -> name , \"View\" ) == 0 ) {\n char * scv_buff = NULL ;\n my_ulonglong n_cols ;\n verbose_msg ( \"-- It's a view, create dummy table for view\\n\" ) ;\n if ( ( row = mysql_fetch_row ( result ) ) && ( scv_buff = row [ 1 ] ) ) scv_buff = my_strdup ( scv_buff , MYF ( 0 ) ) ;\n mysql_free_result ( result ) ;\n my_snprintf ( query_buff , sizeof ( query_buff ) , \"SHOW FIELDS FROM %s\" , result_table ) ;\n if ( switch_character_set_results ( mysql , \"binary\" ) || mysql_query_with_error_report ( mysql , & result , query_buff ) || switch_character_set_results ( mysql , default_charset ) ) {\n if ( mysql_errno ( mysql ) == ER_VIEW_INVALID ) fprintf ( sql_file , \"\\n-- failed on view %s: %s\\n\\n\" , result_table , scv_buff ? scv_buff : \"\" ) ;\n my_free ( scv_buff ) ;\n DBUG_RETURN ( 0 ) ;\n }\n else my_free ( scv_buff ) ;\n n_cols = mysql_num_rows ( result ) ;\n if ( 0 != n_cols ) {\n if ( n_cols >= 1000 ) fprintf ( stderr , \"-- Warning: Creating a stand-in table for view %s may\" \" fail when replaying the dump file produced because \" \"of the number of columns exceeding 1000. Exercise \" \"caution when replaying the produced dump file.\\n\" , table ) ;\n if ( opt_drop ) {\n fprintf ( sql_file , \"/*!50001 DROP VIEW IF EXISTS %s*/;\n\\n\" , opt_quoted_table ) ;\n check_io ( sql_file ) ;\n }\n fprintf ( sql_file , \"SET @saved_cs_client = @@character_set_client;\n\\n\" \"SET character_set_client = utf8;\n\\n\" \"/*!50001 CREATE TABLE %s (\\n\" , result_table ) ;\n row = mysql_fetch_row ( result ) ;\n fprintf ( sql_file , \" %s tinyint NOT NULL\" , quote_name ( row [ 0 ] , name_buff , 0 ) ) ;\n while ( ( row = mysql_fetch_row ( result ) ) ) {\n fprintf ( sql_file , \",\\n %s tinyint NOT NULL\" , quote_name ( row [ 0 ] , name_buff , 0 ) ) ;\n }\n fprintf ( sql_file , \"\\n) ENGINE=MyISAM */;\n\\n\" \"SET character_set_client = @saved_cs_client;\n\\n\" ) ;\n check_io ( sql_file ) ;\n }\n mysql_free_result ( result ) ;\n if ( path ) my_fclose ( sql_file , MYF ( MY_WME ) ) ;\n seen_views = 1 ;\n DBUG_RETURN ( 0 ) ;\n }\n row = mysql_fetch_row ( result ) ;\n is_log_table = general_log_or_slow_log_tables ( db , table ) ;\n if ( is_log_table ) row [ 1 ] += 13 ;\n if ( opt_compatible_mode & 3 ) {\n fprintf ( sql_file , is_log_table ? \"CREATE TABLE IF NOT EXISTS %s;\n\\n\" : \"%s;\n\\n\" , row [ 1 ] ) ;\n }\n else {\n fprintf ( sql_file , \"/*!40101 SET @saved_cs_client = @@character_set_client */;\n\\n\" \"/*!40101 SET character_set_client = utf8 */;\n\\n\" \"%s%s;\n\\n\" \"/*!40101 SET character_set_client = @saved_cs_client */;\n\\n\" , is_log_table ? \"CREATE TABLE IF NOT EXISTS \" : \"\" , row [ 1 ] ) ;\n }\n check_io ( sql_file ) ;\n mysql_free_result ( result ) ;\n }\n my_snprintf ( query_buff , sizeof ( query_buff ) , \"show fields from %s\" , result_table ) ;\n if ( mysql_query_with_error_report ( mysql , & result , query_buff ) ) {\n if ( path ) my_fclose ( sql_file , MYF ( MY_WME ) ) ;\n DBUG_RETURN ( 0 ) ;\n }\n if ( write_data ) {\n if ( opt_replace_into ) dynstr_append_checked ( & insert_pat , \"REPLACE \" ) ;\n else dynstr_append_checked ( & insert_pat , \"INSERT \" ) ;\n dynstr_append_checked ( & insert_pat , insert_option ) ;\n dynstr_append_checked ( & insert_pat , \"INTO \" ) ;\n dynstr_append_checked ( & insert_pat , opt_quoted_table ) ;\n if ( complete_insert ) {\n dynstr_append_checked ( & insert_pat , \" (\" ) ;\n }\n else {\n dynstr_append_checked ( & insert_pat , \" VALUES \" ) ;\n if ( ! extended_insert ) dynstr_append_checked ( & insert_pat , \"(\" ) ;\n }\n }\n while ( ( row = mysql_fetch_row ( result ) ) ) {\n if ( complete_insert ) {\n if ( init ) {\n dynstr_append_checked ( & insert_pat , \", \" ) ;\n }\n init = 1 ;\n dynstr_append_checked ( & insert_pat , quote_name ( row [ SHOW_FIELDNAME ] , name_buff , 0 ) ) ;\n }\n }\n num_fields = mysql_num_rows ( result ) ;\n mysql_free_result ( result ) ;\n }\n else {\n verbose_msg ( \"%s: Warning: Can't set SQL_QUOTE_SHOW_CREATE option (%s)\\n\" , my_progname_short , mysql_error ( mysql ) ) ;\n my_snprintf ( query_buff , sizeof ( query_buff ) , show_fields_stmt , db , table ) ;\n if ( mysql_query_with_error_report ( mysql , & result , query_buff ) ) DBUG_RETURN ( 0 ) ;\n if ( ! opt_no_create_info ) {\n if ( path ) {\n if ( ! ( sql_file = open_sql_file_for_table ( table , O_WRONLY ) ) ) DBUG_RETURN ( 0 ) ;\n write_header ( sql_file , db ) ;\n }\n print_comment ( sql_file , 0 , \"\\n--\\n-- Table structure for table %s\\n--\\n\\n\" , result_table ) ;\n if ( opt_drop ) fprintf ( sql_file , \"DROP TABLE IF EXISTS %s;\n\\n\" , result_table ) ;\n if ( ! opt_xml ) fprintf ( sql_file , \"CREATE TABLE %s (\\n\" , result_table ) ;\n else print_xml_tag ( sql_file , \"\\t\" , \"\\n\" , \"table_structure\" , \"name=\" , table , NullS ) ;\n check_io ( sql_file ) ;\n }\n if ( write_data ) {\n if ( opt_replace_into ) dynstr_append_checked ( & insert_pat , \"REPLACE \" ) ;\n else dynstr_append_checked ( & insert_pat , \"INSERT \" ) ;\n dynstr_append_checked ( & insert_pat , insert_option ) ;\n dynstr_append_checked ( & insert_pat , \"INTO \" ) ;\n dynstr_append_checked ( & insert_pat , result_table ) ;\n if ( complete_insert ) dynstr_append_checked ( & insert_pat , \" (\" ) ;\n else {\n dynstr_append_checked ( & insert_pat , \" VALUES \" ) ;\n if ( ! extended_insert ) dynstr_append_checked ( & insert_pat , \"(\" ) ;\n }\n }\n while ( ( row = mysql_fetch_row ( result ) ) ) {\n ulong * lengths = mysql_fetch_lengths ( result ) ;\n if ( init ) {\n if ( ! opt_xml && ! opt_no_create_info ) {\n fputs ( \",\\n\" , sql_file ) ;\n check_io ( sql_file ) ;\n }\n if ( complete_insert ) dynstr_append_checked ( & insert_pat , \", \" ) ;\n }\n init = 1 ;\n if ( complete_insert ) dynstr_append_checked ( & insert_pat , quote_name ( row [ SHOW_FIELDNAME ] , name_buff , 0 ) ) ;\n if ( ! opt_no_create_info ) {\n if ( opt_xml ) {\n print_xml_row ( sql_file , \"field\" , result , & row , NullS ) ;\n continue ;\n }\n if ( opt_keywords ) fprintf ( sql_file , \" %s.%s %s\" , result_table , quote_name ( row [ SHOW_FIELDNAME ] , name_buff , 0 ) , row [ SHOW_TYPE ] ) ;\n else fprintf ( sql_file , \" %s %s\" , quote_name ( row [ SHOW_FIELDNAME ] , name_buff , 0 ) , row [ SHOW_TYPE ] ) ;\n if ( row [ SHOW_DEFAULT ] ) {\n fputs ( \" DEFAULT \" , sql_file ) ;\n unescape ( sql_file , row [ SHOW_DEFAULT ] , lengths [ SHOW_DEFAULT ] ) ;\n }\n if ( ! row [ SHOW_NULL ] [ 0 ] ) fputs ( \" NOT NULL\" , sql_file ) ;\n if ( row [ SHOW_EXTRA ] [ 0 ] ) fprintf ( sql_file , \" %s\" , row [ SHOW_EXTRA ] ) ;\n check_io ( sql_file ) ;\n }\n }\n num_fields = mysql_num_rows ( result ) ;\n mysql_free_result ( result ) ;\n if ( ! opt_no_create_info ) {\n char buff [ 20 + FN_REFLEN ] ;\n uint keynr , primary_key ;\n my_snprintf ( buff , sizeof ( buff ) , \"show keys from %s\" , result_table ) ;\n if ( mysql_query_with_error_report ( mysql , & result , buff ) ) {\n if ( mysql_errno ( mysql ) == ER_WRONG_OBJECT ) {\n fputs ( \"\\t\\t<options Comment=\\\"view\\\" />\\n\" , sql_file ) ;\n goto continue_xml ;\n }\n fprintf ( stderr , \"%s: Can't get keys for table %s (%s)\\n\" , my_progname_short , result_table , mysql_error ( mysql ) ) ;\n if ( path ) my_fclose ( sql_file , MYF ( MY_WME ) ) ;\n DBUG_RETURN ( 0 ) ;\n }\n keynr = 0 ;\n primary_key = INT_MAX ;\n while ( ( row = mysql_fetch_row ( result ) ) ) {\n if ( atoi ( row [ 3 ] ) == 1 ) {\n keynr ++ ;\n # ifdef FORCE_PRIMARY_KEY if ( atoi ( row [ 1 ] ) == 0 && primary_key == INT_MAX ) primary_key = keynr ;\n # endif if ( ! strcmp ( row [ 2 ] , \"PRIMARY\" ) ) {\n primary_key = keynr ;\n break ;\n }\n }\n }\n mysql_data_seek ( result , 0 ) ;\n keynr = 0 ;\n while ( ( row = mysql_fetch_row ( result ) ) ) {\n if ( opt_xml ) {\n print_xml_row ( sql_file , \"key\" , result , & row , NullS ) ;\n continue ;\n }\n if ( atoi ( row [ 3 ] ) == 1 ) {\n if ( keynr ++ ) putc ( ')' , sql_file ) ;\n if ( atoi ( row [ 1 ] ) ) fprintf ( sql_file , \",\\n KEY %s (\" , quote_name ( row [ 2 ] , name_buff , 0 ) ) ;\n else if ( keynr == primary_key ) fputs ( \",\\n PRIMARY KEY (\" , sql_file ) ;\n else fprintf ( sql_file , \",\\n UNIQUE %s (\" , quote_name ( row [ 2 ] , name_buff , 0 ) ) ;\n }\n else putc ( ',' , sql_file ) ;\n fputs ( quote_name ( row [ 4 ] , name_buff , 0 ) , sql_file ) ;\n if ( row [ 7 ] ) fprintf ( sql_file , \" (%s)\" , row [ 7 ] ) ;\n check_io ( sql_file ) ;\n }\n mysql_free_result ( result ) ;\n if ( ! opt_xml ) {\n if ( keynr ) putc ( ')' , sql_file ) ;\n fputs ( \"\\n)\" , sql_file ) ;\n check_io ( sql_file ) ;\n }\n if ( create_options ) {\n char show_name_buff [ NAME_LEN * 2 + 2 + 24 ] ;\n my_snprintf ( buff , sizeof ( buff ) , \"show table status like %s\" , quote_for_like ( table , show_name_buff ) ) ;\n if ( mysql_query_with_error_report ( mysql , & result , buff ) ) {\n if ( mysql_errno ( mysql ) != ER_PARSE_ERROR ) {\n verbose_msg ( \"-- Warning: Couldn't get status information for \" \"table %s (%s)\\n\" , result_table , mysql_error ( mysql ) ) ;\n }\n }\n else if ( ! ( row = mysql_fetch_row ( result ) ) ) {\n fprintf ( stderr , \"Error: Couldn't read status information for table %s (%s)\\n\" , result_table , mysql_error ( mysql ) ) ;\n }\n else {\n if ( opt_xml ) print_xml_row ( sql_file , \"options\" , result , & row , NullS ) ;\n else {\n fputs ( \"/*!\" , sql_file ) ;\n print_value ( sql_file , result , row , \"engine=\" , \"Engine\" , 0 ) ;\n print_value ( sql_file , result , row , \"\" , \"Create_options\" , 0 ) ;\n print_value ( sql_file , result , row , \"comment=\" , \"Comment\" , 1 ) ;\n fputs ( \" */\" , sql_file ) ;\n check_io ( sql_file ) ;\n }\n }\n mysql_free_result ( result ) ;\n }\n continue_xml : if ( ! opt_xml ) fputs ( \";\n\\n\" , sql_file ) ;\n else fputs ( \"\\t</table_structure>\\n\" , sql_file ) ;\n check_io ( sql_file ) ;\n }\n }\n if ( complete_insert ) {\n dynstr_append_checked ( & insert_pat , \") VALUES \" ) ;\n if ( ! extended_insert ) dynstr_append_checked ( & insert_pat , \"(\" ) ;\n }\n if ( sql_file != md_result_file ) {\n fputs ( \"\\n\" , sql_file ) ;\n write_footer ( sql_file ) ;\n my_fclose ( sql_file , MYF ( MY_WME ) ) ;\n }\n DBUG_RETURN ( ( uint ) num_fields ) ;\n }"}
{"idx": 13089, "target": 0, "func": "TEST_F ( TemplateURLTest , TestValidWithComplete ) {\n TemplateURLData data ;\n data . SetURL ( \"{\nsearchTerms}\n\" ) ;\n TemplateURL url ( data ) ;\n EXPECT_TRUE ( url . url_ref ( ) . IsValid ( search_terms_data_ ) ) ;\n }"}
{"idx": 13090, "target": 0, "func": "static void netbios_data_only_flags ( tvbuff_t * tvb , proto_tree * tree , int offset ) {\n proto_tree * field_tree ;\n proto_item * tf ;\n tf = proto_tree_add_item ( tree , hf_netb_flags , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n field_tree = proto_item_add_subtree ( tf , ett_netb_flags ) ;\n proto_tree_add_item ( field_tree , hf_netb_flags_ack , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( field_tree , hf_netb_flags_ack_with_data , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( field_tree , hf_netb_flags_ack_expected , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n }"}
{"idx": 13091, "target": 0, "func": "static void encode_b ( VP9_COMP * cpi , const TileInfo * const tile , TOKENEXTRA * * tp , int mi_row , int mi_col , int output_enabled , BLOCK_SIZE bsize , PICK_MODE_CONTEXT * ctx ) {\n set_offsets ( cpi , tile , mi_row , mi_col , bsize ) ;\n update_state ( cpi , ctx , mi_row , mi_col , bsize , output_enabled ) ;\n encode_superblock ( cpi , tp , output_enabled , mi_row , mi_col , bsize , ctx ) ;\n if ( output_enabled ) {\n update_stats ( & cpi -> common , & cpi -> mb ) ;\n ( * tp ) -> token = EOSB_TOKEN ;\n ( * tp ) ++ ;\n }\n }"}
{"idx": 13092, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize ) ;\n DECL_PIOCTL ( PGetCacheSize ) ;\n DECL_PIOCTL ( PRemoveCallBack ) ;\n DECL_PIOCTL ( PNewCell ) ;\n DECL_PIOCTL ( PNewAlias ) ;\n DECL_PIOCTL ( PListCells ) ;\n DECL_PIOCTL ( PListAliases ) ;\n DECL_PIOCTL ( PRemoveMount ) ;\n DECL_PIOCTL ( PGetCellStatus ) ;\n DECL_PIOCTL ( PSetCellStatus )"}
{"idx": 13093, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n int h , w ;\n AVFrame * pic = data ;\n const uint8_t * src = avpkt -> data ;\n uint8_t * Y1 , * Y2 , * U , * V ;\n int ret ;\n if ( avpkt -> size < avctx -> width * avctx -> height * 3 / 2 + 16 ) {\n av_log ( avctx , AV_LOG_ERROR , \"packet too small\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ( ret = ff_get_buffer ( avctx , pic , 0 ) ) < 0 ) return ret ;\n pic -> pict_type = AV_PICTURE_TYPE_I ;\n pic -> key_frame = 1 ;\n if ( AV_RL32 ( src ) != 0x01000002 ) {\n av_log_ask_for_sample ( avctx , \"Unknown frame header %X\\n\" , AV_RL32 ( src ) ) ;\n return AVERROR_PATCHWELCOME ;\n }\n src += 16 ;\n Y1 = pic -> data [ 0 ] ;\n Y2 = pic -> data [ 0 ] + pic -> linesize [ 0 ] ;\n U = pic -> data [ 1 ] ;\n V = pic -> data [ 2 ] ;\n for ( h = 0 ;\n h < avctx -> height ;\n h += 2 ) {\n for ( w = 0 ;\n w < avctx -> width ;\n w += 2 ) {\n AV_COPY16 ( Y1 + w , src ) ;\n AV_COPY16 ( Y2 + w , src + 2 ) ;\n U [ w >> 1 ] = src [ 4 ] + 0x80 ;\n V [ w >> 1 ] = src [ 5 ] + 0x80 ;\n src += 6 ;\n }\n Y1 += pic -> linesize [ 0 ] << 1 ;\n Y2 += pic -> linesize [ 0 ] << 1 ;\n U += pic -> linesize [ 1 ] ;\n V += pic -> linesize [ 2 ] ;\n }\n * got_frame = 1 ;\n return avpkt -> size ;\n }"}
{"idx": 13094, "target": 0, "func": "static void dissect_rsvp_ero_rro_subobjects ( proto_tree * ti , packet_info * pinfo , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class ) {\n int i , j , k , l , flags ;\n proto_tree * ti2 = NULL , * rsvp_ro_subtree , * rsvp_rro_flags_subtree ;\n int tree_type ;\n switch ( rsvp_class ) {\n case RSVP_CLASS_EXPLICIT_ROUTE : tree_type = TREE ( TT_EXPLICIT_ROUTE_SUBOBJ ) ;\n break ;\n case RSVP_CLASS_RECORD_ROUTE : tree_type = TREE ( TT_RECORD_ROUTE_SUBOBJ ) ;\n break ;\n default : return ;\n }\n for ( i = 1 , l = 0 ;\n l < obj_length - 4 ;\n i ++ ) {\n j = tvb_get_guint8 ( tvb , offset + l ) & 0x7f ;\n switch ( j ) {\n case 1 : k = tvb_get_guint8 ( tvb , offset + l ) & 0x80 ;\n rsvp_ro_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset + l , 8 , tree_type , & ti2 , \"IPv4 Subobject - %s%s\" , tvb_ip_to_str ( tvb , offset + l + 2 ) , rsvp_class == RSVP_CLASS_EXPLICIT_ROUTE ? ( k ? \", Loose\" : \", Strict\" ) : \"\" ) ;\n if ( rsvp_class == RSVP_CLASS_EXPLICIT_ROUTE ) proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_loose_hop , tvb , offset + l , 1 , ENC_NA ) ;\n proto_tree_add_uint_format_value ( rsvp_ro_subtree , hf_rsvp_type , tvb , offset + l , 1 , j , \"1 (IPv4)\" ) ;\n proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_ero_rro_subobjects_length , tvb , offset + l + 1 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_ero_rro_subobjects_ipv4_hop , tvb , offset + l + 2 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_ero_rro_subobjects_prefix_length , tvb , offset + l + 6 , 1 , ENC_BIG_ENDIAN ) ;\n if ( i < 4 ) {\n proto_item_append_text ( ti , \"IPv4 %s%s\" , tvb_ip_to_str ( tvb , offset + l + 2 ) , k ? \" [L]\" : \"\" ) ;\n }\n if ( rsvp_class == RSVP_CLASS_RECORD_ROUTE ) {\n flags = tvb_get_guint8 ( tvb , offset + l + 7 ) ;\n if ( flags & 0x20 ) {\n proto_item_append_text ( ti , \" (Node-id)\" ) ;\n proto_item_append_text ( ti2 , \" (Node-id)\" ) ;\n }\n if ( flags & 0x01 ) proto_item_append_text ( ti2 , \", Local Protection Available\" ) ;\n if ( flags & 0x02 ) proto_item_append_text ( ti2 , \", Local Protection In Use\" ) ;\n if ( flags & 0x04 ) proto_item_append_text ( ti2 , \", Backup BW Avail\" ) ;\n if ( flags & 0x08 ) proto_item_append_text ( ti2 , \", Backup is Next-Next-Hop\" ) ;\n ti2 = proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_ero_rro_subobjects_flags , tvb , offset + l + 7 , 1 , ENC_BIG_ENDIAN ) ;\n rsvp_rro_flags_subtree = proto_item_add_subtree ( ti2 , TREE ( TT_RECORD_ROUTE_SUBOBJ_FLAGS ) ) ;\n proto_tree_add_item ( rsvp_rro_flags_subtree , hf_rsvp_rro_flags_local_avail , tvb , offset + l + 7 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_rro_flags_subtree , hf_rsvp_rro_flags_local_in_use , tvb , offset + l + 7 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_rro_flags_subtree , hf_rsvp_rro_flags_bandwidth , tvb , offset + l + 7 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_rro_flags_subtree , hf_rsvp_rro_flags_node , tvb , offset + l + 7 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_rro_flags_subtree , hf_rsvp_rro_flags_node_address , tvb , offset + l + 7 , 1 , ENC_BIG_ENDIAN ) ;\n }\n break ;\n case 2 : rsvp_ro_subtree = proto_tree_add_subtree ( rsvp_object_tree , tvb , offset + l , 20 , tree_type , & ti2 , \"IPv6 Subobject\" ) ;\n k = tvb_get_guint8 ( tvb , offset + l ) & 0x80 ;\n if ( rsvp_class == RSVP_CLASS_EXPLICIT_ROUTE ) proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_loose_hop , tvb , offset + l , 1 , ENC_NA ) ;\n proto_tree_add_uint_format_value ( rsvp_ro_subtree , hf_rsvp_type , tvb , offset + l , 1 , j , \"2 (IPv6)\" ) ;\n proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_ero_rro_subobjects_length , tvb , offset + l + 1 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_ero_rro_subobjects_ipv6_hop , tvb , offset + l + 2 , 16 , ENC_NA ) ;\n proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_ero_rro_subobjects_prefix_length , tvb , offset + l + 18 , 1 , ENC_BIG_ENDIAN ) ;\n if ( i < 4 ) {\n proto_item_append_text ( ti , \"IPv6 [...]%s\" , k ? \" [L]\" : \"\" ) ;\n }\n if ( rsvp_class == RSVP_CLASS_RECORD_ROUTE ) {\n flags = tvb_get_guint8 ( tvb , offset + l + 19 ) ;\n if ( flags & 0x20 ) {\n proto_item_append_text ( ti , \" (Node-id)\" ) ;\n proto_item_append_text ( ti2 , \" (Node-id)\" ) ;\n }\n if ( flags & 0x01 ) proto_item_append_text ( ti2 , \", Local Protection Available\" ) ;\n if ( flags & 0x02 ) proto_item_append_text ( ti2 , \", Local Protection In Use\" ) ;\n if ( flags & 0x04 ) proto_item_append_text ( ti2 , \", Backup BW Avail\" ) ;\n if ( flags & 0x08 ) proto_item_append_text ( ti2 , \", Backup is Next-Next-Hop\" ) ;\n ti2 = proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_ero_rro_subobjects_flags , tvb , offset + l + 19 , 1 , ENC_BIG_ENDIAN ) ;\n rsvp_rro_flags_subtree = proto_item_add_subtree ( ti2 , TREE ( TT_RECORD_ROUTE_SUBOBJ_FLAGS ) ) ;\n proto_tree_add_item ( rsvp_rro_flags_subtree , hf_rsvp_rro_flags_local_avail , tvb , offset + l + 19 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_rro_flags_subtree , hf_rsvp_rro_flags_local_in_use , tvb , offset + l + 19 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_rro_flags_subtree , hf_rsvp_rro_flags_backup_tunnel_bandwidth , tvb , offset + l + 19 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_rro_flags_subtree , hf_rsvp_rro_flags_backup_tunnel_hop , tvb , offset + l + 19 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_rro_flags_subtree , hf_rsvp_rro_flags_node_address , tvb , offset + l + 19 , 1 , ENC_BIG_ENDIAN ) ;\n }\n break ;\n case 3 : k = tvb_get_guint8 ( tvb , offset + l ) & 0x80 ;\n rsvp_ro_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset + l , 8 , tree_type , & ti2 , \"Label Subobject - %d, %s\" , tvb_get_ntohl ( tvb , offset + l + 4 ) , rsvp_class == RSVP_CLASS_EXPLICIT_ROUTE ? ( k ? \"Loose\" : \"Strict\" ) : \"\" ) ;\n if ( rsvp_class == RSVP_CLASS_EXPLICIT_ROUTE ) proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_loose_hop , tvb , offset + l , 1 , ENC_NA ) ;\n proto_tree_add_uint_format_value ( rsvp_ro_subtree , hf_rsvp_type , tvb , offset + l , 1 , j , \"3 (Label)\" ) ;\n proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_ero_rro_subobjects_length , tvb , offset + l + 1 , 1 , ENC_BIG_ENDIAN ) ;\n if ( rsvp_class == RSVP_CLASS_RECORD_ROUTE ) {\n flags = tvb_get_guint8 ( tvb , offset + l + 2 ) ;\n if ( flags & 0x01 ) proto_item_append_text ( ti2 , \"The label will be understood if received on any interface\" ) ;\n ti2 = proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_ero_rro_subobjects_flags , tvb , offset + l + 2 , 1 , ENC_BIG_ENDIAN ) ;\n rsvp_rro_flags_subtree = proto_item_add_subtree ( ti2 , TREE ( TT_RECORD_ROUTE_SUBOBJ_FLAGS ) ) ;\n proto_tree_add_item ( rsvp_rro_flags_subtree , hf_rsvp_rro_flags_global_label , tvb , offset + l + 2 , 1 , ENC_BIG_ENDIAN ) ;\n }\n proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_ctype , tvb , offset + l + 3 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_ero_rro_subobjects_label , tvb , offset + l + 4 , 4 , ENC_BIG_ENDIAN ) ;\n if ( i < 4 ) {\n proto_item_append_text ( ti , \"Label %d%s\" , tvb_get_ntohl ( tvb , offset + l + 4 ) , k ? \" [L]\" : \"\" ) ;\n }\n break ;\n case 4 : k = tvb_get_guint8 ( tvb , offset + l ) & 0x80 ;\n rsvp_ro_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset + l , 8 , tree_type , & ti2 , \"Unnumbered Interface-ID - %s, %d, %s\" , tvb_ip_to_str ( tvb , offset + l + 4 ) , tvb_get_ntohl ( tvb , offset + l + 8 ) , rsvp_class == RSVP_CLASS_EXPLICIT_ROUTE ? ( k ? \"Loose\" : \"Strict\" ) : \"\" ) ;\n if ( rsvp_class == RSVP_CLASS_EXPLICIT_ROUTE ) proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_loose_hop , tvb , offset + l , 1 , ENC_NA ) ;\n proto_tree_add_uint_format_value ( rsvp_ro_subtree , hf_rsvp_type , tvb , offset + l , 1 , j , \"4 (Unnumbered Interface-ID)\" ) ;\n proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_ero_rro_subobjects_length , tvb , offset + l + 1 , 1 , ENC_BIG_ENDIAN ) ;\n if ( rsvp_class == RSVP_CLASS_RECORD_ROUTE ) {\n flags = tvb_get_guint8 ( tvb , offset + l + 2 ) ;\n if ( flags & 0x01 ) proto_item_append_text ( ti2 , \", Local Protection Available\" ) ;\n if ( flags & 0x02 ) proto_item_append_text ( ti2 , \", Local Protection In Use\" ) ;\n ti2 = proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_ero_rro_subobjects_flags , tvb , offset + l + 2 , 1 , ENC_BIG_ENDIAN ) ;\n rsvp_rro_flags_subtree = proto_item_add_subtree ( ti2 , TREE ( TT_RECORD_ROUTE_SUBOBJ_FLAGS ) ) ;\n proto_tree_add_item ( rsvp_rro_flags_subtree , hf_rsvp_rro_flags_local_avail , tvb , offset + l + 2 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_rro_flags_subtree , hf_rsvp_rro_flags_local_in_use , tvb , offset + l + 2 , 1 , ENC_BIG_ENDIAN ) ;\n }\n proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_ero_rro_subobjects_router_id , tvb , offset + l + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_ero_rro_subobjects_interface_id , tvb , offset + l + 8 , 4 , ENC_BIG_ENDIAN ) ;\n if ( i < 4 ) {\n proto_item_append_text ( ti , \"Unnum %s/%d%s\" , tvb_ip_to_str ( tvb , offset + l + 4 ) , tvb_get_ntohl ( tvb , offset + l + 8 ) , k ? \" [L]\" : \"\" ) ;\n }\n break ;\n case 32 : if ( rsvp_class == RSVP_CLASS_RECORD_ROUTE ) goto defaultsub ;\n k = tvb_get_ntohs ( tvb , offset + l + 2 ) ;\n rsvp_ro_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset + l , 4 , tree_type , & ti2 , \"Autonomous System %u\" , k ) ;\n proto_tree_add_uint_format_value ( rsvp_ro_subtree , hf_rsvp_type , tvb , offset + l , 1 , j , \"32 (Autonomous System Number)\" ) ;\n proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_ero_rro_subobjects_length , tvb , offset + l + 1 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_ero_rro_autonomous_system , tvb , offset + l + 2 , 2 , ENC_BIG_ENDIAN ) ;\n if ( i < 4 ) {\n proto_item_append_text ( ti , \"AS %d\" , tvb_get_ntohs ( tvb , offset + l + 2 ) ) ;\n }\n break ;\n case 64 : if ( rsvp_class == RSVP_CLASS_RECORD_ROUTE ) goto defaultsub ;\n k = tvb_get_ntohs ( tvb , offset + l + 2 ) ;\n rsvp_ro_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset + l , 8 , tree_type , & ti2 , \"Path Key subobject - %s, %u\" , tvb_ip_to_str ( tvb , offset + l + 4 ) , k ) ;\n proto_tree_add_uint_format_value ( rsvp_ro_subtree , hf_rsvp_type , tvb , offset + l , 1 , j , \"64 (Path Key with IPv4 PCE-ID)\" ) ;\n proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_ero_rro_subobjects_length , tvb , offset + l + 1 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_ero_rro_subobjects_path_key , tvb , offset + l + 2 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_ero_rro_subobjects_pce_id_ipv4 , tvb , offset + l + 4 , 4 , ENC_BIG_ENDIAN ) ;\n if ( i < 4 ) {\n proto_item_append_text ( ti , \"Path Key %d\" , k ) ;\n }\n break ;\n case 65 : if ( rsvp_class == RSVP_CLASS_RECORD_ROUTE ) goto defaultsub ;\n k = tvb_get_ntohs ( tvb , offset + l + 2 ) ;\n rsvp_ro_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset + l , 8 , tree_type , & ti2 , \"Path Key subobject - %s, %u\" , tvb_ip6_to_str ( tvb , offset + l + 4 ) , k ) ;\n proto_tree_add_uint_format_value ( rsvp_ro_subtree , hf_rsvp_type , tvb , offset + l , 1 , j , \"65 (Path Key with IPv6 PCE-ID)\" ) ;\n proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_ero_rro_subobjects_length , tvb , offset + l + 1 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_ero_rro_subobjects_path_key , tvb , offset + l + 2 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_ero_rro_subobjects_pce_id_ipv6 , tvb , offset + l + 4 , 16 , ENC_NA ) ;\n if ( i < 4 ) {\n proto_item_append_text ( ti , \"Path Key %d\" , k ) ;\n }\n break ;\n case 124 : case 125 : case 126 : case 127 : if ( rsvp_class == RSVP_CLASS_RECORD_ROUTE ) goto defaultsub ;\n else goto privatesub ;\n break ;\n case 252 : case 253 : case 254 : case 255 : if ( rsvp_class == RSVP_CLASS_EXPLICIT_ROUTE ) goto defaultsub ;\n else goto privatesub ;\n break ;\n privatesub : {\n guint8 private_so_len = tvb_get_guint8 ( tvb , offset + l + 1 ) ;\n rsvp_ro_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset + l , tvb_get_guint8 ( tvb , offset + l + 1 ) , tree_type , & ti2 , \"Private Subobject: %d\" , j ) ;\n proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_loose_hop , tvb , offset + l , 1 , ENC_NA ) ;\n proto_tree_add_uint_format_value ( rsvp_ro_subtree , hf_rsvp_type , tvb , offset + l , 1 , j , \"%u (Private)\" , j ) ;\n proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_ero_rro_subobjects_private_length , tvb , offset + l + 1 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_filter [ RSVPF_ENT_CODE ] , tvb , offset + l + 4 , 4 , ENC_BIG_ENDIAN ) ;\n if ( private_so_len > 8 ) {\n proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_ero_rro_subobjects_private_data , tvb , offset + l + 8 , private_so_len - 8 , ENC_NA ) ;\n }\n }\n break ;\n default : defaultsub : rsvp_ro_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset + l , tvb_get_guint8 ( tvb , offset + l + 1 ) , tree_type , & ti2 , \"Unknown subobject: %d\" , j ) ;\n proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_loose_hop , tvb , offset + l , 1 , ENC_NA ) ;\n proto_tree_add_uint_format_value ( rsvp_ro_subtree , hf_rsvp_type , tvb , offset + l , 1 , j , \"%u (Unknown)\" , j ) ;\n proto_tree_add_item ( rsvp_ro_subtree , hf_rsvp_ero_rro_subobjects_length , tvb , offset + l + 1 , 1 , ENC_BIG_ENDIAN ) ;\n break ;\n }\n if ( tvb_get_guint8 ( tvb , offset + l + 1 ) < 1 ) {\n proto_tree_add_expert_format ( rsvp_ro_subtree , pinfo , & ei_rsvp_invalid_length , tvb , offset + l + 1 , 1 , \"Invalid length: %u\" , tvb_get_guint8 ( tvb , offset + l + 1 ) ) ;\n return ;\n }\n l += tvb_get_guint8 ( tvb , offset + l + 1 ) ;\n if ( l < obj_length - 4 ) {\n if ( i < 4 ) proto_item_append_text ( ti , \", \" ) ;\n else if ( i == 4 ) proto_item_append_text ( ti , \"...\" ) ;\n }\n }\n }"}
{"idx": 13095, "target": 0, "func": "static void get_icu_value_src_php ( char * tag_name , INTERNAL_FUNCTION_PARAMETERS ) {\n const char * loc_name = NULL ;\n int loc_name_len = 0 ;\n char * tag_value = NULL ;\n char * empty_result = \"\" ;\n int result = 0 ;\n char * msg = NULL ;\n UErrorCode status = U_ZERO_ERROR ;\n intl_error_reset ( NULL TSRMLS_CC ) ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"s\" , & loc_name , & loc_name_len ) == FAILURE ) {\n spprintf ( & msg , 0 , \"locale_get_%s : unable to parse input params\" , tag_name ) ;\n intl_error_set ( NULL , U_ILLEGAL_ARGUMENT_ERROR , msg , 1 TSRMLS_CC ) ;\n efree ( msg ) ;\n RETURN_FALSE ;\n }\n if ( loc_name_len == 0 ) {\n loc_name = intl_locale_get_default ( TSRMLS_C ) ;\n }\n tag_value = get_icu_value_internal ( loc_name , tag_name , & result , 0 ) ;\n if ( result == - 1 ) {\n if ( tag_value ) {\n efree ( tag_value ) ;\n }\n RETURN_STRING ( empty_result , TRUE ) ;\n }\n if ( tag_value ) {\n RETURN_STRING ( tag_value , FALSE ) ;\n }\n if ( result == 0 ) {\n spprintf ( & msg , 0 , \"locale_get_%s : unable to get locale %s\" , tag_name , tag_name ) ;\n intl_error_set ( NULL , status , msg , 1 TSRMLS_CC ) ;\n efree ( msg ) ;\n RETURN_NULL ( ) ;\n }\n }"}
{"idx": 13096, "target": 0, "func": "static void sig_complete_connect ( GList * * list , WINDOW_REC * window , const char * word , const char * line , int * want_space ) {\n g_return_if_fail ( list != NULL ) ;\n g_return_if_fail ( word != NULL ) ;\n * list = completion_get_chatnets ( word ) ;\n * list = g_list_concat ( * list , completion_get_servers ( word ) ) ;\n if ( * list != NULL ) signal_stop ( ) ;\n }"}
{"idx": 13097, "target": 0, "func": "static void inverse_quant ( int16_t * cur_lsp , int16_t * prev_lsp , uint8_t * lsp_index , int bad_frame ) {\n int min_dist , pred ;\n int i , j , temp , stable ;\n if ( ! bad_frame ) {\n min_dist = 0x100 ;\n pred = 12288 ;\n }\n else {\n min_dist = 0x200 ;\n pred = 23552 ;\n lsp_index [ 0 ] = lsp_index [ 1 ] = lsp_index [ 2 ] = 0 ;\n }\n cur_lsp [ 0 ] = lsp_band0 [ lsp_index [ 0 ] ] [ 0 ] ;\n cur_lsp [ 1 ] = lsp_band0 [ lsp_index [ 0 ] ] [ 1 ] ;\n cur_lsp [ 2 ] = lsp_band0 [ lsp_index [ 0 ] ] [ 2 ] ;\n cur_lsp [ 3 ] = lsp_band1 [ lsp_index [ 1 ] ] [ 0 ] ;\n cur_lsp [ 4 ] = lsp_band1 [ lsp_index [ 1 ] ] [ 1 ] ;\n cur_lsp [ 5 ] = lsp_band1 [ lsp_index [ 1 ] ] [ 2 ] ;\n cur_lsp [ 6 ] = lsp_band2 [ lsp_index [ 2 ] ] [ 0 ] ;\n cur_lsp [ 7 ] = lsp_band2 [ lsp_index [ 2 ] ] [ 1 ] ;\n cur_lsp [ 8 ] = lsp_band2 [ lsp_index [ 2 ] ] [ 2 ] ;\n cur_lsp [ 9 ] = lsp_band2 [ lsp_index [ 2 ] ] [ 3 ] ;\n for ( i = 0 ;\n i < LPC_ORDER ;\n i ++ ) {\n temp = ( ( prev_lsp [ i ] - dc_lsp [ i ] ) * pred + ( 1 << 14 ) ) >> 15 ;\n cur_lsp [ i ] += dc_lsp [ i ] + temp ;\n }\n for ( i = 0 ;\n i < LPC_ORDER ;\n i ++ ) {\n cur_lsp [ 0 ] = FFMAX ( cur_lsp [ 0 ] , 0x180 ) ;\n cur_lsp [ LPC_ORDER - 1 ] = FFMIN ( cur_lsp [ LPC_ORDER - 1 ] , 0x7e00 ) ;\n for ( j = 1 ;\n j < LPC_ORDER ;\n j ++ ) {\n temp = min_dist + cur_lsp [ j - 1 ] - cur_lsp [ j ] ;\n if ( temp > 0 ) {\n temp >>= 1 ;\n cur_lsp [ j - 1 ] -= temp ;\n cur_lsp [ j ] += temp ;\n }\n }\n stable = 1 ;\n for ( j = 1 ;\n j < LPC_ORDER ;\n j ++ ) {\n temp = cur_lsp [ j - 1 ] + min_dist - cur_lsp [ j ] - 4 ;\n if ( temp > 0 ) {\n stable = 0 ;\n break ;\n }\n }\n if ( stable ) break ;\n }\n if ( ! stable ) memcpy ( cur_lsp , prev_lsp , LPC_ORDER * sizeof ( * cur_lsp ) ) ;\n }"}
{"idx": 13098, "target": 0, "func": "static int ipvideo_decode_block_opcode_0xF ( IpvideoContext * s , AVFrame * frame ) {\n int x , y ;\n unsigned char sample [ 2 ] ;\n sample [ 0 ] = bytestream2_get_byte ( & s -> stream_ptr ) ;\n sample [ 1 ] = bytestream2_get_byte ( & s -> stream_ptr ) ;\n for ( y = 0 ;\n y < 8 ;\n y ++ ) {\n for ( x = 0 ;\n x < 8 ;\n x += 2 ) {\n * s -> pixel_ptr ++ = sample [ y & 1 ] ;\n * s -> pixel_ptr ++ = sample [ ! ( y & 1 ) ] ;\n }\n s -> pixel_ptr += s -> line_inc ;\n }\n return 0 ;\n }"}
{"idx": 13099, "target": 0, "func": "static gboolean proto_tree_traverse_pre_order ( proto_tree * tree , proto_tree_traverse_func func , gpointer data ) {\n proto_node * pnode = tree ;\n proto_node * child ;\n proto_node * current ;\n if ( func ( pnode , data ) ) return TRUE ;\n child = pnode -> first_child ;\n while ( child != NULL ) {\n current = child ;\n child = current -> next ;\n if ( proto_tree_traverse_pre_order ( ( proto_tree * ) current , func , data ) ) return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 13100, "target": 1, "func": "static struct object_list * * process_tree ( struct tree * tree , struct object_list * * p , struct name_path * path , const char * name ) {\n struct object * obj = & tree -> object ;\n struct tree_desc desc ;\n struct name_entry entry ;\n struct name_path me ;\n obj -> flags |= LOCAL ;\n if ( obj -> flags & ( UNINTERESTING | SEEN ) ) return p ;\n if ( parse_tree ( tree ) < 0 ) die ( \"bad tree object %s\" , oid_to_hex ( & obj -> oid ) ) ;\n obj -> flags |= SEEN ;\n name = xstrdup ( name ) ;\n p = add_one_object ( obj , p ) ;\n me . up = path ;\n me . elem = name ;\n me . elem_len = strlen ( name ) ;\n init_tree_desc ( & desc , tree -> buffer , tree -> size ) ;\n while ( tree_entry ( & desc , & entry ) ) switch ( object_type ( entry . mode ) ) {\n case OBJ_TREE : p = process_tree ( lookup_tree ( entry . sha1 ) , p , & me , name ) ;\n break ;\n case OBJ_BLOB : p = process_blob ( lookup_blob ( entry . sha1 ) , p , & me , name ) ;\n break ;\n default : break ;\n }\n free_tree_buffer ( tree ) ;\n return p ;\n }"}
{"idx": 13101, "target": 0, "func": "static int dissect_h225_Connect_UUIE ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 538 \"./asn1/h225/h225.cnf\" h225_packet_info * h225_pi ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_Connect_UUIE , Connect_UUIE_sequence ) ;\n # line 542 \"./asn1/h225/h225.cnf\" h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> cs_type = H225_CONNECT ;\n if ( contains_faststart ) {\n char temp [ 50 ] ;\n g_snprintf ( temp , 50 , \"%s OLC (%s)\" , val_to_str ( h225_pi -> cs_type , T_h323_message_body_vals , \"<unknown>\" ) , h225_pi -> frame_label ) ;\n g_strlcpy ( h225_pi -> frame_label , temp , 50 ) ;\n }\n else g_snprintf ( h225_pi -> frame_label , 50 , \"%s\" , val_to_str ( h225_pi -> cs_type , T_h323_message_body_vals , \"<unknown>\" ) ) ;\n }\n return offset ;\n }"}
{"idx": 13102, "target": 0, "func": "int ff_msmpeg4_decode_ext_header ( MpegEncContext * s , int buf_size ) {\n int left = buf_size * 8 - get_bits_count ( & s -> gb ) ;\n int length = s -> msmpeg4_version >= 3 ? 17 : 16 ;\n if ( left >= length && left < length + 8 ) {\n skip_bits ( & s -> gb , 5 ) ;\n s -> bit_rate = get_bits ( & s -> gb , 11 ) * 1024 ;\n if ( s -> msmpeg4_version >= 3 ) s -> flipflop_rounding = get_bits1 ( & s -> gb ) ;\n else s -> flipflop_rounding = 0 ;\n }\n else if ( left < length + 8 ) {\n s -> flipflop_rounding = 0 ;\n if ( s -> msmpeg4_version != 2 ) av_log ( s -> avctx , AV_LOG_ERROR , \"ext header missing, %d left\\n\" , left ) ;\n }\n else {\n av_log ( s -> avctx , AV_LOG_ERROR , \"I frame too long, ignoring ext header\\n\" ) ;\n }\n return 0 ;\n }"}
{"idx": 13103, "target": 0, "func": "static uint16_t * appendEncodedByte ( uint16_t * buffer , uint16_t * buffLimit , uint8_t value , uint8_t state [ ] , UErrorCode * status ) {\n if ( ! status || U_FAILURE ( * status ) ) {\n return NULL ;\n }\n if ( state [ 0 ] != 0 ) {\n uint16_t c = ( uint16_t ) ( ( state [ 1 ] << 8 ) | ( ( ( int32_t ) value ) & 0xFF ) ) ;\n if ( buffer < buffLimit ) {\n * buffer ++ = c ;\n }\n else {\n * status = U_BUFFER_OVERFLOW_ERROR ;\n }\n state [ 0 ] = 0 ;\n return buffer ;\n }\n else {\n state [ 0 ] = 1 ;\n state [ 1 ] = value ;\n return buffer ;\n }\n }"}
{"idx": 13104, "target": 0, "func": "static int equal_dimensions ( const YV12_BUFFER_CONFIG * a , const YV12_BUFFER_CONFIG * b ) {\n return a -> y_height == b -> y_height && a -> y_width == b -> y_width && a -> uv_height == b -> uv_height && a -> uv_width == b -> uv_width ;\n }"}
{"idx": 13105, "target": 0, "func": "static int synthesis ( AMRContext * p , float * lpc , float fixed_gain , const float * fixed_vector , float * samples , uint8_t overflow ) {\n int i ;\n float excitation [ AMR_SUBFRAME_SIZE ] ;\n if ( overflow ) for ( i = 0 ;\n i < AMR_SUBFRAME_SIZE ;\n i ++ ) p -> pitch_vector [ i ] *= 0.25 ;\n ff_weighted_vector_sumf ( excitation , p -> pitch_vector , fixed_vector , p -> pitch_gain [ 4 ] , fixed_gain , AMR_SUBFRAME_SIZE ) ;\n if ( p -> pitch_gain [ 4 ] > 0.5 && ! overflow ) {\n float energy = avpriv_scalarproduct_float_c ( excitation , excitation , AMR_SUBFRAME_SIZE ) ;\n float pitch_factor = p -> pitch_gain [ 4 ] * ( p -> cur_frame_mode == MODE_12k2 ? 0.25 * FFMIN ( p -> pitch_gain [ 4 ] , 1.0 ) : 0.5 * FFMIN ( p -> pitch_gain [ 4 ] , SHARP_MAX ) ) ;\n for ( i = 0 ;\n i < AMR_SUBFRAME_SIZE ;\n i ++ ) excitation [ i ] += pitch_factor * p -> pitch_vector [ i ] ;\n ff_scale_vector_to_given_sum_of_squares ( excitation , excitation , energy , AMR_SUBFRAME_SIZE ) ;\n }\n ff_celp_lp_synthesis_filterf ( samples , lpc , excitation , AMR_SUBFRAME_SIZE , LP_FILTER_ORDER ) ;\n for ( i = 0 ;\n i < AMR_SUBFRAME_SIZE ;\n i ++ ) if ( fabsf ( samples [ i ] ) > AMR_SAMPLE_BOUND ) {\n return 1 ;\n }\n return 0 ;\n }"}
{"idx": 13106, "target": 0, "func": "static void gtkui_connection_inject_file ( void ) {\n GtkWidget * dialog , * label , * vbox , * hbox , * content_area ;\n GtkWidget * button1 , * button2 , * button , * entry ;\n char tmp [ MAX_ASCII_ADDR_LEN ] ;\n const char * filename = NULL ;\n gint response = 0 ;\n DEBUG_MSG ( \"gtk_connection_inject_file\" ) ;\n if ( curr_conn == NULL ) return ;\n dialog = gtk_dialog_new_with_buttons ( \"Character Injection\" , GTK_WINDOW ( window ) , GTK_DIALOG_MODAL , GTK_STOCK_CANCEL , GTK_RESPONSE_CANCEL , GTK_STOCK_OK , GTK_RESPONSE_OK , NULL ) ;\n gtk_window_set_default_size ( GTK_WINDOW ( dialog ) , 400 , 150 ) ;\n # if ! GTK_CHECK_VERSION ( 2 , 22 , 0 ) gtk_dialog_set_has_separator ( GTK_DIALOG ( dialog ) , FALSE ) ;\n # endif gtk_container_set_border_width ( GTK_CONTAINER ( dialog ) , 5 ) ;\n content_area = gtk_dialog_get_content_area ( GTK_DIALOG ( dialog ) ) ;\n vbox = gtkui_box_new ( GTK_ORIENTATION_VERTICAL , 0 , FALSE ) ;\n gtk_box_pack_start ( GTK_BOX ( content_area ) , vbox , FALSE , FALSE , 0 ) ;\n label = gtk_label_new ( \"Packet destination:\" ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_box_pack_start ( GTK_BOX ( vbox ) , label , FALSE , FALSE , 0 ) ;\n hbox = gtkui_box_new ( GTK_ORIENTATION_HORIZONTAL , 5 , FALSE ) ;\n gtk_box_pack_start ( GTK_BOX ( vbox ) , hbox , FALSE , FALSE , 0 ) ;\n button1 = gtk_radio_button_new_with_label ( NULL , ip_addr_ntoa ( & curr_conn -> L3_addr2 , tmp ) ) ;\n gtk_box_pack_start ( GTK_BOX ( hbox ) , button1 , FALSE , FALSE , 0 ) ;\n gtk_widget_show ( button1 ) ;\n button2 = gtk_radio_button_new_with_label_from_widget ( GTK_RADIO_BUTTON ( button1 ) , ip_addr_ntoa ( & curr_conn -> L3_addr1 , tmp ) ) ;\n gtk_box_pack_start ( GTK_BOX ( hbox ) , button2 , FALSE , FALSE , 0 ) ;\n label = gtk_label_new ( \"File to inject:\" ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_box_pack_start ( GTK_BOX ( vbox ) , label , FALSE , FALSE , 0 ) ;\n hbox = gtkui_box_new ( GTK_ORIENTATION_HORIZONTAL , 5 , FALSE ) ;\n gtk_box_pack_start ( GTK_BOX ( vbox ) , hbox , FALSE , FALSE , 0 ) ;\n entry = gtk_entry_new ( ) ;\n gtk_box_pack_start ( GTK_BOX ( hbox ) , entry , TRUE , TRUE , 0 ) ;\n button = gtk_button_new_with_label ( \"...\" ) ;\n gtk_box_pack_start ( GTK_BOX ( hbox ) , button , FALSE , FALSE , 0 ) ;\n g_signal_connect ( G_OBJECT ( button ) , \"clicked\" , G_CALLBACK ( gtkui_filename_browse ) , entry ) ;\n gtk_widget_show_all ( dialog ) ;\n response = gtk_dialog_run ( GTK_DIALOG ( dialog ) ) ;\n if ( response == GTK_RESPONSE_OK ) {\n gtk_widget_hide ( dialog ) ;\n filename = gtk_entry_get_text ( GTK_ENTRY ( entry ) ) ;\n if ( filename && strlen ( filename ) > 0 ) {\n if ( gtk_toggle_button_get_active ( GTK_TOGGLE_BUTTON ( button1 ) ) ) gtkui_inject_file ( filename , 1 ) ;\n else if ( gtk_toggle_button_get_active ( GTK_TOGGLE_BUTTON ( button2 ) ) ) gtkui_inject_file ( filename , 2 ) ;\n }\n }\n gtk_widget_destroy ( dialog ) ;\n }"}
{"idx": 13107, "target": 0, "func": "static int selinux_file_mprotect ( struct vm_area_struct * vma , unsigned long reqprot , unsigned long prot ) {\n const struct cred * cred = current_cred ( ) ;\n if ( selinux_checkreqprot ) prot = reqprot ;\n if ( default_noexec && ( prot & PROT_EXEC ) && ! ( vma -> vm_flags & VM_EXEC ) ) {\n int rc = 0 ;\n if ( vma -> vm_start >= vma -> vm_mm -> start_brk && vma -> vm_end <= vma -> vm_mm -> brk ) {\n rc = cred_has_perm ( cred , cred , PROCESS__EXECHEAP ) ;\n }\n else if ( ! vma -> vm_file && ( ( vma -> vm_start <= vma -> vm_mm -> start_stack && vma -> vm_end >= vma -> vm_mm -> start_stack ) || vma_is_stack_for_current ( vma ) ) ) {\n rc = current_has_perm ( current , PROCESS__EXECSTACK ) ;\n }\n else if ( vma -> vm_file && vma -> anon_vma ) {\n rc = file_has_perm ( cred , vma -> vm_file , FILE__EXECMOD ) ;\n }\n if ( rc ) return rc ;\n }\n return file_map_prot_check ( vma -> vm_file , prot , vma -> vm_flags & VM_SHARED ) ;\n }"}
{"idx": 13108, "target": 0, "func": "static void * i_alloc_struct_array_immovable ( gs_memory_t * mem , uint num_elements , gs_memory_type_ptr_t pstype , client_name_t cname ) {\n gs_ref_memory_t * const imem = ( gs_ref_memory_t * ) mem ;\n obj_header_t * obj ;\n ulong lsize ;\n # ifdef MEMENTO if ( Memento_failThisEvent ( ) ) return NULL ;\n # endif ALLOC_CHECK_SIZE ( mem , pstype ) ;\n if ( alloc_array_check_size ( num_elements , pstype -> ssize , & lsize ) == false ) return NULL ;\n obj = alloc_obj ( imem , lsize , pstype , ALLOC_IMMOVABLE | ALLOC_DIRECT , cname ) ;\n if_debug7m ( 'A' , mem , \"[a%d|+<.]%s %s*(%lu=%u*%u) = 0x%lx\\n\" , alloc_trace_space ( imem ) , client_name_string ( cname ) , struct_type_name_string ( pstype ) , ( ulong ) num_elements * pstype -> ssize , num_elements , pstype -> ssize , ( ulong ) obj ) ;\n return ( char * ) obj ;\n }"}
{"idx": 13109, "target": 0, "func": "static void test_bug20152 ( ) {\n MYSQL_BIND my_bind [ 1 ] ;\n MYSQL_STMT * stmt ;\n MYSQL_TIME tm ;\n int rc ;\n const char * query = \"INSERT INTO t1 (f1) VALUES (?)\" ;\n myheader ( \"test_bug20152\" ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_DATE ;\n my_bind [ 0 ] . buffer = ( void * ) & tm ;\n tm . year = 2006 ;\n tm . month = 6 ;\n tm . day = 18 ;\n tm . hour = 14 ;\n tm . minute = 9 ;\n tm . second = 42 ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE t1 (f1 DATE)\" ) ;\n myquery ( rc ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n rc = mysql_stmt_prepare ( stmt , query , strlen ( query ) ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_close ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_query ( mysql , \"DROP TABLE t1\" ) ;\n myquery ( rc ) ;\n if ( tm . hour == 14 && tm . minute == 9 && tm . second == 42 ) {\n if ( ! opt_silent ) printf ( \"OK!\" ) ;\n }\n else {\n printf ( \"[14:09:42] != [%02d:%02d:%02d]\\n\" , tm . hour , tm . minute , tm . second ) ;\n DIE_UNLESS ( 0 == 1 ) ;\n }\n }"}
{"idx": 13110, "target": 0, "func": "gpg_err_code_t _gcry_mpi_ec_new ( gcry_ctx_t * r_ctx , gcry_sexp_t keyparam , const char * curvename ) {\n gpg_err_code_t errc ;\n gcry_ctx_t ctx = NULL ;\n enum gcry_mpi_ec_models model = MPI_EC_WEIERSTRASS ;\n gcry_mpi_t p = NULL ;\n gcry_mpi_t a = NULL ;\n gcry_mpi_t b = NULL ;\n gcry_mpi_point_t G = NULL ;\n gcry_mpi_t n = NULL ;\n gcry_mpi_point_t Q = NULL ;\n gcry_mpi_t d = NULL ;\n gcry_sexp_t l1 ;\n * r_ctx = NULL ;\n if ( keyparam ) {\n errc = mpi_from_keyparam ( & p , keyparam , \"p\" ) ;\n if ( errc ) goto leave ;\n errc = mpi_from_keyparam ( & a , keyparam , \"a\" ) ;\n if ( errc ) goto leave ;\n errc = mpi_from_keyparam ( & b , keyparam , \"b\" ) ;\n if ( errc ) goto leave ;\n errc = point_from_keyparam ( & G , keyparam , \"g\" ) ;\n if ( errc ) goto leave ;\n errc = mpi_from_keyparam ( & n , keyparam , \"n\" ) ;\n if ( errc ) goto leave ;\n errc = point_from_keyparam ( & Q , keyparam , \"q\" ) ;\n if ( errc ) goto leave ;\n errc = mpi_from_keyparam ( & d , keyparam , \"d\" ) ;\n if ( errc ) goto leave ;\n }\n if ( keyparam ) l1 = gcry_sexp_find_token ( keyparam , \"curve\" , 5 ) ;\n else l1 = NULL ;\n if ( l1 || curvename ) {\n char * name ;\n elliptic_curve_t * E ;\n if ( l1 ) {\n name = _gcry_sexp_nth_string ( l1 , 1 ) ;\n gcry_sexp_release ( l1 ) ;\n if ( ! name ) {\n errc = GPG_ERR_INV_OBJ ;\n goto leave ;\n }\n }\n else name = NULL ;\n E = gcry_calloc ( 1 , sizeof * E ) ;\n if ( ! E ) {\n errc = gpg_err_code_from_syserror ( ) ;\n gcry_free ( name ) ;\n goto leave ;\n }\n errc = _gcry_ecc_fill_in_curve ( 0 , name ? name : curvename , E , NULL ) ;\n gcry_free ( name ) ;\n if ( errc ) {\n gcry_free ( E ) ;\n goto leave ;\n }\n model = E -> model ;\n if ( ! p ) {\n p = E -> p ;\n E -> p = NULL ;\n }\n if ( ! a ) {\n a = E -> a ;\n E -> a = NULL ;\n }\n if ( ! b ) {\n b = E -> b ;\n E -> b = NULL ;\n }\n if ( ! G ) {\n G = gcry_mpi_point_snatch_set ( NULL , E -> G . x , E -> G . y , E -> G . z ) ;\n E -> G . x = NULL ;\n E -> G . y = NULL ;\n E -> G . z = NULL ;\n }\n if ( ! n ) {\n n = E -> n ;\n E -> n = NULL ;\n }\n _gcry_ecc_curve_free ( E ) ;\n gcry_free ( E ) ;\n }\n errc = _gcry_mpi_ec_p_new ( & ctx , model , p , a , b ) ;\n if ( ! errc ) {\n mpi_ec_t ec = _gcry_ctx_get_pointer ( ctx , CONTEXT_TYPE_EC ) ;\n if ( b ) {\n ec -> b = b ;\n b = NULL ;\n }\n if ( G ) {\n ec -> G = G ;\n G = NULL ;\n }\n if ( n ) {\n ec -> n = n ;\n n = NULL ;\n }\n if ( Q ) {\n ec -> Q = Q ;\n Q = NULL ;\n }\n if ( d ) {\n ec -> d = d ;\n d = NULL ;\n }\n * r_ctx = ctx ;\n }\n leave : mpi_free ( p ) ;\n mpi_free ( a ) ;\n mpi_free ( b ) ;\n gcry_mpi_point_release ( G ) ;\n mpi_free ( n ) ;\n gcry_mpi_point_release ( Q ) ;\n mpi_free ( d ) ;\n return errc ;\n }"}
{"idx": 13111, "target": 0, "func": "TEST_F ( ExternalProtocolHandlerTest , TestLaunchSchemeBlockedChromeNotDefault ) {\n DoTest ( ExternalProtocolHandler : : BLOCK , shell_integration : : NOT_DEFAULT , Action : : BLOCK ) ;\n }"}
{"idx": 13112, "target": 0, "func": "static fz_iccprofile * get_base_icc_profile ( fz_context * ctx , const fz_colorspace * cs ) {\n fz_colorspace * base ;\n fz_cal_colorspace * cal ;\n fz_iccprofile * cal_icc ;\n if ( ! cs || ! cs -> get_base ) return NULL ;\n base = cs -> get_base ( cs ) ;\n if ( base == NULL ) return NULL ;\n if ( fz_colorspace_is_icc ( ctx , base ) ) return base -> data ;\n if ( ! fz_colorspace_is_cal ( ctx , base ) ) return get_base_icc_profile ( ctx , base ) ;\n cal = base -> data ;\n cal_icc = cal -> profile ;\n if ( cal_icc && cal_icc -> cmm_handle == NULL ) fz_cmm_init_profile ( ctx , cal_icc ) ;\n return cal_icc ;\n }"}
{"idx": 13113, "target": 1, "func": "struct config_filter_parser * const * config_filter_find_subset ( struct config_filter_context * ctx , const struct config_filter * filter ) {\n ARRAY_TYPE ( config_filter_parsers ) matches ;\n struct config_filter tmp_mask ;\n unsigned int i ;\n t_array_init ( & matches , 8 ) ;\n for ( i = 0 ;\n ctx -> parsers [ i ] != NULL ;\n i ++ ) {\n const struct config_filter * mask = & ctx -> parsers [ i ] -> filter ;\n if ( filter -> service != NULL ) {\n if ( ! config_filter_match_service ( mask , filter ) ) continue ;\n }\n tmp_mask = * mask ;\n if ( filter -> local_name == NULL ) tmp_mask . local_name = NULL ;\n if ( filter -> local_bits == 0 ) tmp_mask . local_bits = 0 ;\n if ( filter -> remote_bits == 0 ) tmp_mask . remote_bits = 0 ;\n if ( config_filter_match_rest ( & tmp_mask , filter ) ) array_append ( & matches , & ctx -> parsers [ i ] , 1 ) ;\n }\n array_sort ( & matches , config_filter_parser_cmp_rev ) ;\n array_append_zero ( & matches ) ;\n return array_idx ( & matches , 0 ) ;\n }"}
{"idx": 13114, "target": 0, "func": "qemu_irq qdev_get_gpio_in ( DeviceState * dev , int n ) {\n assert ( n >= 0 && n < dev -> num_gpio_in ) ;\n return dev -> gpio_in [ n ] ;\n }"}
{"idx": 13115, "target": 0, "func": "static void dct_unquantize_mpeg2_intra_c ( MpegEncContext * s , int16_t * block , int n , int qscale ) {\n int i , level , nCoeffs ;\n const uint16_t * quant_matrix ;\n if ( s -> alternate_scan ) nCoeffs = 63 ;\n else nCoeffs = s -> block_last_index [ n ] ;\n if ( n < 4 ) block [ 0 ] = block [ 0 ] * s -> y_dc_scale ;\n else block [ 0 ] = block [ 0 ] * s -> c_dc_scale ;\n quant_matrix = s -> intra_matrix ;\n for ( i = 1 ;\n i <= nCoeffs ;\n i ++ ) {\n int j = s -> intra_scantable . permutated [ i ] ;\n level = block [ j ] ;\n if ( level ) {\n if ( level < 0 ) {\n level = - level ;\n level = ( int ) ( level * qscale * quant_matrix [ j ] ) >> 3 ;\n level = - level ;\n }\n else {\n level = ( int ) ( level * qscale * quant_matrix [ j ] ) >> 3 ;\n }\n block [ j ] = level ;\n }\n }\n }"}
{"idx": 13116, "target": 0, "func": "static inline void save_to_qmem_pingordata ( int userid , struct query * q ) {\n char cmc [ 8 ] ;\n int i ;\n if ( q -> name [ 0 ] == 'P' || q -> name [ 0 ] == 'p' ) {\n size_t cmcsize = sizeof ( cmc ) ;\n char * cp = strchr ( q -> name , '.' ) ;\n if ( cp == NULL ) return ;\n i = b32 -> decode ( cmc , & cmcsize , q -> name + 1 , ( cp - q -> name ) - 1 ) ;\n if ( i < 4 ) return ;\n save_to_qmem ( users [ userid ] . qmemping_cmc , users [ userid ] . qmemping_type , QMEMPING_LEN , & users [ userid ] . qmemping_lastfilled , ( void * ) cmc , q -> type ) ;\n }\n else {\n if ( strlen ( q -> name ) < 5 ) return ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) if ( q -> name [ i + 1 ] >= 'A' && q -> name [ i + 1 ] <= 'Z' ) cmc [ i ] = q -> name [ i + 1 ] + ( 'a' - 'A' ) ;\n else cmc [ i ] = q -> name [ i + 1 ] ;\n save_to_qmem ( users [ userid ] . qmemdata_cmc , users [ userid ] . qmemdata_type , QMEMDATA_LEN , & users [ userid ] . qmemdata_lastfilled , ( void * ) cmc , q -> type ) ;\n }\n }"}
{"idx": 13117, "target": 0, "func": "static char * convert_string_datum ( Datum value , Oid typid ) {\n char * val ;\n switch ( typid ) {\n case CHAROID : val = ( char * ) palloc ( 2 ) ;\n val [ 0 ] = DatumGetChar ( value ) ;\n val [ 1 ] = '\\0' ;\n break ;\n case BPCHAROID : case VARCHAROID : case TEXTOID : val = TextDatumGetCString ( value ) ;\n break ;\n case NAMEOID : {\n NameData * nm = ( NameData * ) DatumGetPointer ( value ) ;\n val = pstrdup ( NameStr ( * nm ) ) ;\n break ;\n }\n default : elog ( ERROR , \"unsupported type: %u\" , typid ) ;\n return NULL ;\n }\n if ( ! lc_collate_is_c ( DEFAULT_COLLATION_OID ) ) {\n char * xfrmstr ;\n size_t xfrmlen ;\n size_t xfrmlen2 PG_USED_FOR_ASSERTS_ONLY ;\n # if _MSC_VER == 1400 {\n char x [ 1 ] ;\n xfrmlen = strxfrm ( x , val , 0 ) ;\n }\n # else xfrmlen = strxfrm ( NULL , val , 0 ) ;\n # endif # ifdef WIN32 if ( xfrmlen == INT_MAX ) return val ;\n # endif xfrmstr = ( char * ) palloc ( xfrmlen + 1 ) ;\n xfrmlen2 = strxfrm ( xfrmstr , val , xfrmlen + 1 ) ;\n Assert ( xfrmlen2 <= xfrmlen ) ;\n pfree ( val ) ;\n val = xfrmstr ;\n }\n return val ;\n }"}
{"idx": 13118, "target": 0, "func": "size_t get_alloc_limit ( ) {\n return alloc_limit ;\n }"}
{"idx": 13119, "target": 0, "func": "ptvcursor_t * ptvcursor_new ( proto_tree * tree , tvbuff_t * tvb , gint offset ) {\n ptvcursor_t * ptvc ;\n ptvc = ( ptvcursor_t * ) wmem_alloc ( wmem_packet_scope ( ) , sizeof ( ptvcursor_t ) ) ;\n ptvc -> tree = tree ;\n ptvc -> tvb = tvb ;\n ptvc -> offset = offset ;\n ptvc -> pushed_tree = NULL ;\n ptvc -> pushed_tree_max = 0 ;\n ptvc -> pushed_tree_index = 0 ;\n return ptvc ;\n }"}
{"idx": 13120, "target": 0, "func": "static void read_partition ( uint8_t * p , struct partition_record * r ) {\n r -> bootable = p [ 0 ] ;\n r -> start_head = p [ 1 ] ;\n r -> start_cylinder = p [ 3 ] | ( ( p [ 2 ] << 2 ) & 0x0300 ) ;\n r -> start_sector = p [ 2 ] & 0x3f ;\n r -> system = p [ 4 ] ;\n r -> end_head = p [ 5 ] ;\n r -> end_cylinder = p [ 7 ] | ( ( p [ 6 ] << 2 ) & 0x300 ) ;\n r -> end_sector = p [ 6 ] & 0x3f ;\n r -> start_sector_abs = ldl_le_p ( p + 8 ) ;\n r -> nb_sectors_abs = ldl_le_p ( p + 12 ) ;\n }"}
{"idx": 13121, "target": 0, "func": "static int dissect_pcp_message_desc_req ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , int offset ) {\n proto_item * pcp_desc_req_item ;\n proto_tree * pcp_desc_req_tree ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"[%s]\" , val_to_str ( PCP_PDU_DESC_REQ , packettypenames , \"Unknown Type:0x%02x\" ) ) ;\n pcp_desc_req_item = proto_tree_add_item ( tree , hf_pcp_desc_req , tvb , offset , - 1 , ENC_NA ) ;\n pcp_desc_req_tree = proto_item_add_subtree ( pcp_desc_req_item , ett_pcp ) ;\n offset = dissect_pcp_partial_pmid ( tvb , pinfo , pcp_desc_req_tree , offset ) ;\n return offset ;\n }"}
{"idx": 13122, "target": 0, "func": "TEST_F ( TemplateURLTest , ReplaceSearchTermsInURL ) {\n TemplateURLData data ;\n data . SetURL ( \"http://google.com/?q={\nsearchTerms}\n\" ) ;\n data . instant_url = \"http://google.com/instant#q={\nsearchTerms}\n\" ;\n data . alternate_urls . push_back ( \"http://google.com/alt/#q={\nsearchTerms}\n\" ) ;\n data . alternate_urls . push_back ( \"http://google.com/alt/?ext=foo&q={\nsearchTerms}\n#ref=bar\" ) ;\n TemplateURL url ( data ) ;\n TemplateURLRef : : SearchTermsArgs search_terms ( ASCIIToUTF16 ( \"Bob Morane\" ) ) ;\n GURL result ;\n EXPECT_TRUE ( url . ReplaceSearchTermsInURL ( GURL ( \"http://google.com/?q=something\" ) , search_terms , search_terms_data_ , & result ) ) ;\n EXPECT_EQ ( GURL ( \"http://google.com/?q=Bob+Morane\" ) , result ) ;\n result = GURL ( \"http://should.not.change.com\" ) ;\n EXPECT_FALSE ( url . ReplaceSearchTermsInURL ( GURL ( \"http://google.ca/?q=something\" ) , search_terms , search_terms_data_ , & result ) ) ;\n EXPECT_EQ ( GURL ( \"http://should.not.change.com\" ) , result ) ;\n EXPECT_FALSE ( url . ReplaceSearchTermsInURL ( GURL ( \"http://google.com/foo/?q=foo\" ) , search_terms , search_terms_data_ , & result ) ) ;\n EXPECT_TRUE ( url . ReplaceSearchTermsInURL ( GURL ( \"https://google.com/?q=foo\" ) , search_terms , search_terms_data_ , & result ) ) ;\n EXPECT_EQ ( GURL ( \"https://google.com/?q=Bob+Morane\" ) , result ) ;\n EXPECT_FALSE ( url . ReplaceSearchTermsInURL ( GURL ( \"http://google.com:8080/?q=foo\" ) , search_terms , search_terms_data_ , & result ) ) ;\n EXPECT_TRUE ( url . ReplaceSearchTermsInURL ( GURL ( \"http://google.com/?q=1+2+3&b=456\" ) , search_terms , search_terms_data_ , & result ) ) ;\n EXPECT_EQ ( GURL ( \"http://google.com/?q=Bob+Morane&b=456\" ) , result ) ;\n EXPECT_TRUE ( url . ReplaceSearchTermsInURL ( GURL ( \"http://google.com/alt/?q=123#q=456\" ) , search_terms , search_terms_data_ , & result ) ) ;\n EXPECT_EQ ( GURL ( \"http://google.com/alt/?q=123#q=Bob+Morane\" ) , result ) ;\n EXPECT_TRUE ( url . ReplaceSearchTermsInURL ( GURL ( \"http://google.com/alt/?a=012&q=123&b=456#f=789\" ) , search_terms , search_terms_data_ , & result ) ) ;\n EXPECT_EQ ( GURL ( \"http://google.com/alt/?a=012&q=Bob+Morane&b=456#f=789\" ) , result ) ;\n EXPECT_TRUE ( url . ReplaceSearchTermsInURL ( GURL ( \"http://google.com/alt/?a=012&q=123&b=456#j=abc&q=789&h=def9\" ) , search_terms , search_terms_data_ , & result ) ) ;\n EXPECT_EQ ( GURL ( \"http://google.com/alt/?a=012&q=123&b=456\" \"#j=abc&q=Bob+Morane&h=def9\" ) , result ) ;\n EXPECT_FALSE ( url . ReplaceSearchTermsInURL ( GURL ( \"http://google.com/alt/?q=\" ) , search_terms , search_terms_data_ , & result ) ) ;\n EXPECT_FALSE ( url . ReplaceSearchTermsInURL ( GURL ( \"http://google.com/alt/?#q=\" ) , search_terms , search_terms_data_ , & result ) ) ;\n EXPECT_FALSE ( url . ReplaceSearchTermsInURL ( GURL ( \"http://google.com/alt/?q=#q=\" ) , search_terms , search_terms_data_ , & result ) ) ;\n EXPECT_FALSE ( url . ReplaceSearchTermsInURL ( GURL ( \"http://google.com/alt/?q=123#q=\" ) , search_terms , search_terms_data_ , & result ) ) ;\n EXPECT_TRUE ( url . ReplaceSearchTermsInURL ( GURL ( \"http://google.com/alt/?q=#q=123\" ) , search_terms , search_terms_data_ , & result ) ) ;\n EXPECT_EQ ( GURL ( \"http://google.com/alt/?q=#q=Bob+Morane\" ) , result ) ;\n }"}
{"idx": 13123, "target": 0, "func": "static int kvm_getput_regs ( X86CPU * cpu , int set ) {\n CPUX86State * env = & cpu -> env ;\n struct kvm_regs regs ;\n int ret = 0 ;\n if ( ! set ) {\n ret = kvm_vcpu_ioctl ( CPU ( cpu ) , KVM_GET_REGS , & regs ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n }\n kvm_getput_reg ( & regs . rax , & env -> regs [ R_EAX ] , set ) ;\n kvm_getput_reg ( & regs . rbx , & env -> regs [ R_EBX ] , set ) ;\n kvm_getput_reg ( & regs . rcx , & env -> regs [ R_ECX ] , set ) ;\n kvm_getput_reg ( & regs . rdx , & env -> regs [ R_EDX ] , set ) ;\n kvm_getput_reg ( & regs . rsi , & env -> regs [ R_ESI ] , set ) ;\n kvm_getput_reg ( & regs . rdi , & env -> regs [ R_EDI ] , set ) ;\n kvm_getput_reg ( & regs . rsp , & env -> regs [ R_ESP ] , set ) ;\n kvm_getput_reg ( & regs . rbp , & env -> regs [ R_EBP ] , set ) ;\n # ifdef TARGET_X86_64 kvm_getput_reg ( & regs . r8 , & env -> regs [ 8 ] , set ) ;\n kvm_getput_reg ( & regs . r9 , & env -> regs [ 9 ] , set ) ;\n kvm_getput_reg ( & regs . r10 , & env -> regs [ 10 ] , set ) ;\n kvm_getput_reg ( & regs . r11 , & env -> regs [ 11 ] , set ) ;\n kvm_getput_reg ( & regs . r12 , & env -> regs [ 12 ] , set ) ;\n kvm_getput_reg ( & regs . r13 , & env -> regs [ 13 ] , set ) ;\n kvm_getput_reg ( & regs . r14 , & env -> regs [ 14 ] , set ) ;\n kvm_getput_reg ( & regs . r15 , & env -> regs [ 15 ] , set ) ;\n # endif kvm_getput_reg ( & regs . rflags , & env -> eflags , set ) ;\n kvm_getput_reg ( & regs . rip , & env -> eip , set ) ;\n if ( set ) {\n ret = kvm_vcpu_ioctl ( CPU ( cpu ) , KVM_SET_REGS , & regs ) ;\n }\n return ret ;\n }"}
{"idx": 13124, "target": 0, "func": "static inline int mpeg1_fast_decode_block_inter ( MpegEncContext * s , int16_t * block , int n ) {\n int level , i , j , run ;\n RLTable * rl = & ff_rl_mpeg1 ;\n uint8_t * const scantable = s -> intra_scantable . permutated ;\n const int qscale = s -> qscale ;\n {\n OPEN_READER ( re , & s -> gb ) ;\n i = - 1 ;\n UPDATE_CACHE ( re , & s -> gb ) ;\n if ( ( ( int32_t ) GET_CACHE ( re , & s -> gb ) ) < 0 ) {\n level = ( 3 * qscale ) >> 1 ;\n level = ( level - 1 ) | 1 ;\n if ( GET_CACHE ( re , & s -> gb ) & 0x40000000 ) level = - level ;\n block [ 0 ] = level ;\n i ++ ;\n SKIP_BITS ( re , & s -> gb , 2 ) ;\n if ( ( ( int32_t ) GET_CACHE ( re , & s -> gb ) ) <= ( int32_t ) 0xBFFFFFFF ) goto end ;\n }\n for ( ;\n ;\n ) {\n GET_RL_VLC ( level , run , re , & s -> gb , rl -> rl_vlc [ 0 ] , TEX_VLC_BITS , 2 , 0 ) ;\n if ( level != 0 ) {\n i += run ;\n j = scantable [ i ] ;\n level = ( ( level * 2 + 1 ) * qscale ) >> 1 ;\n level = ( level - 1 ) | 1 ;\n level = ( level ^ SHOW_SBITS ( re , & s -> gb , 1 ) ) - SHOW_SBITS ( re , & s -> gb , 1 ) ;\n SKIP_BITS ( re , & s -> gb , 1 ) ;\n }\n else {\n run = SHOW_UBITS ( re , & s -> gb , 6 ) + 1 ;\n LAST_SKIP_BITS ( re , & s -> gb , 6 ) ;\n UPDATE_CACHE ( re , & s -> gb ) ;\n level = SHOW_SBITS ( re , & s -> gb , 8 ) ;\n SKIP_BITS ( re , & s -> gb , 8 ) ;\n if ( level == - 128 ) {\n level = SHOW_UBITS ( re , & s -> gb , 8 ) - 256 ;\n SKIP_BITS ( re , & s -> gb , 8 ) ;\n }\n else if ( level == 0 ) {\n level = SHOW_UBITS ( re , & s -> gb , 8 ) ;\n SKIP_BITS ( re , & s -> gb , 8 ) ;\n }\n i += run ;\n j = scantable [ i ] ;\n if ( level < 0 ) {\n level = - level ;\n level = ( ( level * 2 + 1 ) * qscale ) >> 1 ;\n level = ( level - 1 ) | 1 ;\n level = - level ;\n }\n else {\n level = ( ( level * 2 + 1 ) * qscale ) >> 1 ;\n level = ( level - 1 ) | 1 ;\n }\n }\n block [ j ] = level ;\n if ( ( ( int32_t ) GET_CACHE ( re , & s -> gb ) ) <= ( int32_t ) 0xBFFFFFFF ) break ;\n UPDATE_CACHE ( re , & s -> gb ) ;\n }\n end : LAST_SKIP_BITS ( re , & s -> gb , 2 ) ;\n CLOSE_READER ( re , & s -> gb ) ;\n }\n s -> block_last_index [ n ] = i ;\n return 0 ;\n }"}
{"idx": 13125, "target": 0, "func": "static int matroska_parse_rm_audio ( MatroskaDemuxContext * matroska , MatroskaTrack * track , AVStream * st , uint8_t * data , int size , uint64_t timecode , uint64_t duration , int64_t pos ) {\n int a = st -> codec -> block_align ;\n int sps = track -> audio . sub_packet_size ;\n int cfs = track -> audio . coded_framesize ;\n int h = track -> audio . sub_packet_h ;\n int y = track -> audio . sub_packet_cnt ;\n int w = track -> audio . frame_size ;\n int x ;\n if ( ! track -> audio . pkt_cnt ) {\n if ( track -> audio . sub_packet_cnt == 0 ) track -> audio . buf_timecode = timecode ;\n if ( st -> codec -> codec_id == AV_CODEC_ID_RA_288 ) {\n if ( size < cfs * h / 2 ) {\n av_log ( matroska -> ctx , AV_LOG_ERROR , \"Corrupt int4 RM-style audio packet size\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( x = 0 ;\n x < h / 2 ;\n x ++ ) memcpy ( track -> audio . buf + x * 2 * w + y * cfs , data + x * cfs , cfs ) ;\n }\n else if ( st -> codec -> codec_id == AV_CODEC_ID_SIPR ) {\n if ( size < w ) {\n av_log ( matroska -> ctx , AV_LOG_ERROR , \"Corrupt sipr RM-style audio packet size\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n memcpy ( track -> audio . buf + y * w , data , w ) ;\n }\n else {\n if ( size < sps * w / sps ) {\n av_log ( matroska -> ctx , AV_LOG_ERROR , \"Corrupt generic RM-style audio packet size\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( x = 0 ;\n x < w / sps ;\n x ++ ) memcpy ( track -> audio . buf + sps * ( h * x + ( ( h + 1 ) / 2 ) * ( y & 1 ) + ( y >> 1 ) ) , data + x * sps , sps ) ;\n }\n if ( ++ track -> audio . sub_packet_cnt >= h ) {\n if ( st -> codec -> codec_id == AV_CODEC_ID_SIPR ) ff_rm_reorder_sipr_data ( track -> audio . buf , h , w ) ;\n track -> audio . sub_packet_cnt = 0 ;\n track -> audio . pkt_cnt = h * w / a ;\n }\n }\n while ( track -> audio . pkt_cnt ) {\n int ret ;\n AVPacket * pkt = av_mallocz ( sizeof ( AVPacket ) ) ;\n if ( ! pkt ) return AVERROR ( ENOMEM ) ;\n ret = av_new_packet ( pkt , a ) ;\n if ( ret < 0 ) {\n av_free ( pkt ) ;\n return ret ;\n }\n memcpy ( pkt -> data , track -> audio . buf + a * ( h * w / a - track -> audio . pkt_cnt -- ) , a ) ;\n pkt -> pts = track -> audio . buf_timecode ;\n track -> audio . buf_timecode = AV_NOPTS_VALUE ;\n pkt -> pos = pos ;\n pkt -> stream_index = st -> index ;\n dynarray_add ( & matroska -> packets , & matroska -> num_packets , pkt ) ;\n }\n return 0 ;\n }"}
{"idx": 13126, "target": 0, "func": "static vpx_codec_err_t encoder_set_config ( vpx_codec_alg_priv_t * ctx , const vpx_codec_enc_cfg_t * cfg ) {\n vpx_codec_err_t res ;\n if ( cfg -> g_w != ctx -> cfg . g_w || cfg -> g_h != ctx -> cfg . g_h ) ERROR ( \"Cannot change width or height after initialization\" ) ;\n if ( cfg -> g_lag_in_frames > ctx -> cfg . g_lag_in_frames ) ERROR ( \"Cannot increase lag_in_frames\" ) ;\n res = validate_config ( ctx , cfg , & ctx -> extra_cfg ) ;\n if ( res == VPX_CODEC_OK ) {\n ctx -> cfg = * cfg ;\n set_encoder_config ( & ctx -> oxcf , & ctx -> cfg , & ctx -> extra_cfg ) ;\n vp9_change_config ( ctx -> cpi , & ctx -> oxcf ) ;\n }\n return res ;\n }"}
{"idx": 13127, "target": 0, "func": "int main ( int argc ATTRIBUTE_UNUSED , char * * argv ATTRIBUTE_UNUSED ) {\n printf ( \"%s : Schemas support not compiled in\\n\" , argv [ 0 ] ) ;\n return ( 0 ) ;\n }"}
{"idx": 13128, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( DownloadExtensionTest , DownloadExtensionTest_OnDeterminingFilename_IllegalFilename ) {\n GoOnTheRecord ( ) ;\n LoadExtension ( \"downloads_split\" ) ;\n AddFilenameDeterminer ( ) ;\n ASSERT_TRUE ( StartEmbeddedTestServer ( ) ) ;\n std : : string download_url = embedded_test_server ( ) -> GetURL ( \"/slow?0\" ) . spec ( ) ;\n std : : unique_ptr < base : : Value > result ( RunFunctionAndReturnResult ( new DownloadsDownloadFunction ( ) , base : : StringPrintf ( \"[{\n\\\"url\\\": \\\"%s\\\"}\n]\" , download_url . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( result . get ( ) ) ;\n int result_id = - 1 ;\n ASSERT_TRUE ( result -> GetAsInteger ( & result_id ) ) ;\n DownloadItem * item = GetCurrentManager ( ) -> GetDownload ( result_id ) ;\n ASSERT_TRUE ( item ) ;\n ScopedCancellingItem canceller ( item ) ;\n ASSERT_EQ ( download_url , item -> GetOriginalUrl ( ) . spec ( ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnCreated : : kEventName , base : : StringPrintf ( \"[{\n\\\"danger\\\": \\\"safe\\\",\" \" \\\"incognito\\\": false,\" \" \\\"id\\\": %d,\" \" \\\"mime\\\": \\\"text/plain\\\",\" \" \\\"paused\\\": false,\" \" \\\"url\\\": \\\"%s\\\"}\n]\" , result_id , download_url . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnDeterminingFilename : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"filename\\\":\\\"slow.txt\\\"}\n]\" , result_id ) ) ) ;\n ASSERT_TRUE ( item -> GetTargetFilePath ( ) . empty ( ) ) ;\n ASSERT_EQ ( DownloadItem : : IN_PROGRESS , item -> GetState ( ) ) ;\n std : : string error ;\n ASSERT_FALSE ( ExtensionDownloadsEventRouter : : DetermineFilename ( browser ( ) -> profile ( ) , false , GetExtensionId ( ) , result_id , base : : FilePath ( FILE_PATH_LITERAL ( \"<\" ) ) , downloads : : FILENAME_CONFLICT_ACTION_UNIQUIFY , & error ) ) ;\n EXPECT_STREQ ( errors : : kInvalidFilename , error . c_str ( ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnChanged : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"filename\\\": {\n\" \" \\\"previous\\\": \\\"\\\",\" \" \\\"current\\\": \\\"%s\\\"}\n}\n]\" , result_id , GetFilename ( \"slow.txt\" ) . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnChanged : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"state\\\": {\n\" \" \\\"previous\\\": \\\"in_progress\\\",\" \" \\\"current\\\": \\\"complete\\\"}\n}\n]\" , result_id ) ) ) ;\n }"}
{"idx": 13129, "target": 0, "func": "int print_encoded_msg ( FILE * fd , char * code , char * prefix ) {\n unsigned short int i , j , k , l , m , msglen ;\n char r , * msg ;\n unsigned char * payload ;\n payload = ( unsigned char * ) code ;\n memcpy ( & i , code , 2 ) ;\n memcpy ( & j , & code [ MSG_START_IDX ] , 2 ) ;\n memcpy ( & msglen , & code [ MSG_LEN_IDX ] , 2 ) ;\n i = ntohs ( i ) ;\n j = ntohs ( j ) ;\n msglen = ntohs ( msglen ) ;\n for ( k = 0 ;\n k < j ;\n k ++ ) fprintf ( fd , \"%s%d%s\" , k == 0 ? \"ENCODED-MSG:[\" : \":\" , payload [ k ] , k == j - 1 ? \"]\\n\" : \"\" ) ;\n msg = ( char * ) & payload [ j ] ;\n fprintf ( fd , \"MESSAGE:\\n[%.*s]\\n\" , msglen , msg ) ;\n r = ( i < 100 ) ? 1 : 0 ;\n if ( r ) {\n fprintf ( fd , \"%sREQUEST CODE=%d==%.*s,URI=%.*s,VERSION=%*.s\\n\" , prefix , i , payload [ METHOD_CODE_IDX + 1 ] , & msg [ payload [ METHOD_CODE_IDX ] ] , payload [ URI_REASON_IDX + 1 ] , & msg [ payload [ URI_REASON_IDX ] ] , payload [ VERSION_IDX + 1 ] , & msg [ payload [ VERSION_IDX ] ] ) ;\n print_encoded_uri ( fd , & payload [ REQUEST_URI_IDX + 1 ] , payload [ REQUEST_URI_IDX ] , msg , 50 , strcat ( prefix , \" \" ) ) ;\n prefix [ strlen ( prefix ) - 2 ] = 0 ;\n i = REQUEST_URI_IDX + 1 + payload [ REQUEST_URI_IDX ] ;\n }\n else {\n fprintf ( fd , \"%sRESPONSE CODE=%d==%.*s,REASON=%.*s,VERSION=%.*s\\n\" , prefix , i , payload [ METHOD_CODE_IDX + 1 ] , & msg [ payload [ METHOD_CODE_IDX ] ] , payload [ URI_REASON_IDX + 1 ] , & msg [ payload [ URI_REASON_IDX ] ] , payload [ VERSION_IDX + 1 ] , & msg [ payload [ VERSION_IDX ] ] ) ;\n i = REQUEST_URI_IDX ;\n }\n k = ( ( payload [ CONTENT_IDX ] << 8 ) | payload [ CONTENT_IDX + 1 ] ) ;\n j = msglen - k ;\n fprintf ( fd , \"%sMESSAGE CONTENT:%.*s\\n\" , prefix , j , & msg [ k ] ) ;\n j = payload [ i ] ;\n fprintf ( fd , \"%sHEADERS PRESENT(%d):\" , prefix , j ) ;\n i ++ ;\n for ( k = i ;\n k < i + ( j * 3 ) ;\n k += 3 ) fprintf ( fd , \"%c%d%c\" , k == i ? '[' : ',' , payload [ k ] , k == ( i + 3 * j - 3 ) ? ']' : ' ' ) ;\n fprintf ( fd , \"\\n\" ) ;\n for ( k = i ;\n k < i + ( j * 3 ) ;\n k += 3 ) {\n memcpy ( & l , & payload [ k + 1 ] , 2 ) ;\n memcpy ( & m , & payload [ k + 4 ] , 2 ) ;\n l = ntohs ( l ) ;\n m = ntohs ( m ) ;\n print_encoded_header ( fd , msg , msglen , & payload [ l ] , m - l , payload [ k ] , prefix ) ;\n }\n return 1 ;\n }"}
{"idx": 13130, "target": 0, "func": "void gcry_sexp_dump ( const gcry_sexp_t a ) {\n const byte * p ;\n int indent = 0 ;\n int type ;\n if ( ! a ) {\n log_printf ( \"[nil]\\n\" ) ;\n return ;\n }\n p = a -> d ;\n while ( ( type = * p ) != ST_STOP ) {\n p ++ ;\n switch ( type ) {\n case ST_OPEN : log_printf ( \"%*s[open]\\n\" , 2 * indent , \"\" ) ;\n indent ++ ;\n break ;\n case ST_CLOSE : if ( indent ) indent -- ;\n log_printf ( \"%*s[close]\\n\" , 2 * indent , \"\" ) ;\n break ;\n case ST_DATA : {\n DATALEN n ;\n memcpy ( & n , p , sizeof n ) ;\n p += sizeof n ;\n log_printf ( \"%*s[data=\\\"\" , 2 * indent , \"\" ) ;\n dump_string ( p , n , '\\\"' ) ;\n log_printf ( \"\\\"]\\n\" ) ;\n p += n ;\n }\n break ;\n default : log_printf ( \"%*s[unknown tag %d]\\n\" , 2 * indent , \"\" , type ) ;\n break ;\n }\n }\n }"}
{"idx": 13131, "target": 0, "func": "void luaD_callhook ( lua_State * L , int event , int line ) {\n lua_Hook hook = L -> hook ;\n if ( hook && L -> allowhook ) {\n ptrdiff_t top = savestack ( L , L -> top ) ;\n ptrdiff_t ci_top = savestack ( L , L -> ci -> top ) ;\n lua_Debug ar ;\n ar . event = event ;\n ar . currentline = line ;\n if ( event == LUA_HOOKTAILRET ) ar . i_ci = 0 ;\n else ar . i_ci = cast_int ( L -> ci - L -> base_ci ) ;\n luaD_checkstack ( L , LUA_MINSTACK ) ;\n L -> ci -> top = L -> top + LUA_MINSTACK ;\n lua_assert ( L -> ci -> top <= L -> stack_last ) ;\n L -> allowhook = 0 ;\n lua_unlock ( L ) ;\n ( * hook ) ( L , & ar ) ;\n lua_lock ( L ) ;\n lua_assert ( ! L -> allowhook ) ;\n L -> allowhook = 1 ;\n L -> ci -> top = restorestack ( L , ci_top ) ;\n L -> top = restorestack ( L , top ) ;\n }\n }"}
{"idx": 13132, "target": 0, "func": "static void testIteratorState ( UCharIterator * iter1 , UCharIterator * iter2 , const char * n , int32_t middle ) {\n UChar32 u [ 4 ] ;\n UErrorCode errorCode ;\n UChar32 c ;\n uint32_t state ;\n int32_t i , j ;\n iter1 -> move ( iter1 , middle - 2 , UITER_ZERO ) ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) {\n c = iter1 -> next ( iter1 ) ;\n if ( c < 0 ) {\n log_err ( \"test error: %s[%d]=%d\\n\" , n , middle - 2 + i , c ) ;\n return ;\n }\n u [ i ] = c ;\n }\n iter1 -> move ( iter1 , - 2 , UITER_CURRENT ) ;\n state = uiter_getState ( iter1 ) ;\n errorCode = U_ZERO_ERROR ;\n uiter_setState ( iter2 , state , & errorCode ) ;\n if ( U_FAILURE ( errorCode ) ) {\n log_err ( \"%s->setState(0x%x) failed: %s\\n\" , n , state , u_errorName ( errorCode ) ) ;\n return ;\n }\n c = iter2 -> current ( iter2 ) ;\n if ( c != u [ 2 ] ) {\n log_err ( \"%s->current(at %d)=U+%04x!=U+%04x\\n\" , n , middle , c , u [ 2 ] ) ;\n }\n c = iter2 -> previous ( iter2 ) ;\n if ( c != u [ 1 ] ) {\n log_err ( \"%s->previous(at %d)=U+%04x!=U+%04x\\n\" , n , middle - 1 , c , u [ 1 ] ) ;\n }\n iter2 -> move ( iter2 , 2 , UITER_CURRENT ) ;\n c = iter2 -> next ( iter2 ) ;\n if ( c != u [ 3 ] ) {\n log_err ( \"%s->next(at %d)=U+%04x!=U+%04x\\n\" , n , middle + 1 , c , u [ 3 ] ) ;\n }\n iter2 -> move ( iter2 , - 3 , UITER_CURRENT ) ;\n c = iter2 -> previous ( iter2 ) ;\n if ( c != u [ 0 ] ) {\n log_err ( \"%s->previous(at %d)=U+%04x!=U+%04x\\n\" , n , middle - 2 , c , u [ 0 ] ) ;\n }\n iter2 -> move ( iter2 , 1 , UITER_CURRENT ) ;\n iter2 -> next ( iter2 ) ;\n i = iter1 -> getIndex ( iter1 , UITER_CURRENT ) ;\n j = iter2 -> getIndex ( iter2 , UITER_CURRENT ) ;\n if ( i != middle ) {\n log_err ( \"%s->getIndex(current)=%d!=%d as expected\\n\" , n , i , middle ) ;\n }\n if ( i != j ) {\n log_err ( \"%s->getIndex(current)=%d!=%d after setState()\\n\" , n , j , i ) ;\n }\n i = iter1 -> getIndex ( iter1 , UITER_LENGTH ) ;\n j = iter2 -> getIndex ( iter2 , UITER_LENGTH ) ;\n if ( i != j ) {\n log_err ( \"%s->getIndex(length)=%d!=%d before/after setState()\\n\" , n , i , j ) ;\n }\n }"}
{"idx": 13133, "target": 0, "func": "SPL_METHOD ( FilesystemIterator , __construct ) {\n spl_filesystem_object_construct ( INTERNAL_FUNCTION_PARAM_PASSTHRU , DIT_CTOR_FLAGS | SPL_FILE_DIR_SKIPDOTS ) ;\n }"}
{"idx": 13134, "target": 0, "func": "void jpc_ft_fwdlift_col ( jpc_fix_t * a , int numrows , int stride , int parity ) {\n jpc_fix_t * lptr ;\n jpc_fix_t * hptr ;\n # if 0 register jpc_fix_t * lptr2 ;\n register jpc_fix_t * hptr2 ;\n register int i ;\n # endif register int n ;\n int llen ;\n llen = ( numrows + 1 - parity ) >> 1 ;\n if ( numrows > 1 ) {\n lptr = & a [ 0 ] ;\n hptr = & a [ llen * stride ] ;\n if ( parity ) {\n hptr [ 0 ] -= lptr [ 0 ] ;\n hptr += stride ;\n }\n n = numrows - llen - parity - ( parity == ( numrows & 1 ) ) ;\n while ( n -- > 0 ) {\n hptr [ 0 ] -= jpc_fix_asr ( lptr [ 0 ] + lptr [ stride ] , 1 ) ;\n hptr += stride ;\n lptr += stride ;\n }\n if ( parity == ( numrows & 1 ) ) {\n hptr [ 0 ] -= lptr [ 0 ] ;\n }\n lptr = & a [ 0 ] ;\n hptr = & a [ llen * stride ] ;\n if ( ! parity ) {\n lptr [ 0 ] += jpc_fix_asr ( hptr [ 0 ] + 1 , 1 ) ;\n lptr += stride ;\n }\n n = llen - ( ! parity ) - ( parity != ( numrows & 1 ) ) ;\n while ( n -- > 0 ) {\n lptr [ 0 ] += jpc_fix_asr ( hptr [ 0 ] + hptr [ stride ] + 2 , 2 ) ;\n lptr += stride ;\n hptr += stride ;\n }\n if ( parity != ( numrows & 1 ) ) {\n lptr [ 0 ] += jpc_fix_asr ( hptr [ 0 ] + 1 , 1 ) ;\n }\n }\n else {\n if ( parity ) {\n lptr = & a [ 0 ] ;\n lptr [ 0 ] = jpc_fix_asl ( lptr [ 0 ] , 1 ) ;\n }\n }\n }"}
{"idx": 13135, "target": 0, "func": "static void handle_ctrl_proto ( netdissect_options * ndo , u_int proto , const u_char * pptr , int length ) {\n const char * typestr ;\n u_int code , len ;\n int ( * pfunc ) ( netdissect_options * , const u_char * , int ) ;\n int x , j ;\n const u_char * tptr ;\n tptr = pptr ;\n typestr = tok2str ( ppptype2str , \"unknown ctrl-proto (0x%04x)\" , proto ) ;\n ND_PRINT ( ( ndo , \"%s, \" , typestr ) ) ;\n if ( length < 4 ) goto trunc ;\n ND_TCHECK2 ( * tptr , 2 ) ;\n code = * tptr ++ ;\n ND_PRINT ( ( ndo , \"%s (0x%02x), id %u, length %u\" , tok2str ( cpcodes , \"Unknown Opcode\" , code ) , code , * tptr ++ , length + 2 ) ) ;\n if ( ! ndo -> ndo_vflag ) return ;\n if ( length <= 4 ) return ;\n ND_TCHECK2 ( * tptr , 2 ) ;\n len = EXTRACT_16BITS ( tptr ) ;\n tptr += 2 ;\n ND_PRINT ( ( ndo , \"\\n\\tencoded length %u (=Option(s) length %u)\" , len , len - 4 ) ) ;\n if ( ndo -> ndo_vflag > 1 ) print_unknown_data ( ndo , pptr - 2 , \"\\n\\t\" , 6 ) ;\n switch ( code ) {\n case CPCODES_VEXT : if ( length < 11 ) break ;\n ND_TCHECK2 ( * tptr , 4 ) ;\n ND_PRINT ( ( ndo , \"\\n\\t Magic-Num 0x%08x\" , EXTRACT_32BITS ( tptr ) ) ) ;\n tptr += 4 ;\n ND_TCHECK2 ( * tptr , 3 ) ;\n ND_PRINT ( ( ndo , \" Vendor: %s (%u)\" , tok2str ( oui_values , \"Unknown\" , EXTRACT_24BITS ( tptr ) ) , EXTRACT_24BITS ( tptr ) ) ) ;\n break ;\n case CPCODES_CONF_REQ : case CPCODES_CONF_ACK : case CPCODES_CONF_NAK : case CPCODES_CONF_REJ : x = len - 4 ;\n do {\n switch ( proto ) {\n case PPP_LCP : pfunc = print_lcp_config_options ;\n break ;\n case PPP_IPCP : pfunc = print_ipcp_config_options ;\n break ;\n case PPP_IPV6CP : pfunc = print_ip6cp_config_options ;\n break ;\n case PPP_CCP : pfunc = print_ccp_config_options ;\n break ;\n case PPP_BACP : pfunc = print_bacp_config_options ;\n break ;\n default : pfunc = NULL ;\n break ;\n }\n if ( pfunc == NULL ) break ;\n if ( ( j = ( * pfunc ) ( ndo , tptr , len ) ) == 0 ) break ;\n x -= j ;\n tptr += j ;\n }\n while ( x > 0 ) ;\n break ;\n case CPCODES_TERM_REQ : case CPCODES_TERM_ACK : break ;\n case CPCODES_CODE_REJ : break ;\n case CPCODES_PROT_REJ : if ( length < 6 ) break ;\n ND_TCHECK2 ( * tptr , 2 ) ;\n ND_PRINT ( ( ndo , \"\\n\\t Rejected %s Protocol (0x%04x)\" , tok2str ( ppptype2str , \"unknown\" , EXTRACT_16BITS ( tptr ) ) , EXTRACT_16BITS ( tptr ) ) ) ;\n if ( len > 6 ) {\n ND_PRINT ( ( ndo , \"\\n\\t Rejected Packet\" ) ) ;\n print_unknown_data ( ndo , tptr + 2 , \"\\n\\t \" , len - 2 ) ;\n }\n break ;\n case CPCODES_ECHO_REQ : case CPCODES_ECHO_RPL : case CPCODES_DISC_REQ : if ( length < 8 ) break ;\n ND_TCHECK2 ( * tptr , 4 ) ;\n ND_PRINT ( ( ndo , \"\\n\\t Magic-Num 0x%08x\" , EXTRACT_32BITS ( tptr ) ) ) ;\n if ( len > 8 ) {\n ND_PRINT ( ( ndo , \"\\n\\t -----trailing data-----\" ) ) ;\n ND_TCHECK2 ( tptr [ 4 ] , len - 8 ) ;\n print_unknown_data ( ndo , tptr + 4 , \"\\n\\t \" , len - 8 ) ;\n }\n break ;\n case CPCODES_ID : if ( length < 8 ) break ;\n ND_TCHECK2 ( * tptr , 4 ) ;\n ND_PRINT ( ( ndo , \"\\n\\t Magic-Num 0x%08x\" , EXTRACT_32BITS ( tptr ) ) ) ;\n if ( len > 8 ) {\n ND_PRINT ( ( ndo , \"\\n\\t Message\\n\\t \" ) ) ;\n if ( fn_printn ( ndo , tptr + 4 , len - 4 , ndo -> ndo_snapend ) ) goto trunc ;\n }\n break ;\n case CPCODES_TIME_REM : if ( length < 12 ) break ;\n ND_TCHECK2 ( * tptr , 4 ) ;\n ND_PRINT ( ( ndo , \"\\n\\t Magic-Num 0x%08x\" , EXTRACT_32BITS ( tptr ) ) ) ;\n ND_TCHECK2 ( * ( tptr + 4 ) , 4 ) ;\n ND_PRINT ( ( ndo , \", Seconds-Remaining %us\" , EXTRACT_32BITS ( tptr + 4 ) ) ) ;\n break ;\n default : if ( ndo -> ndo_vflag <= 1 ) print_unknown_data ( ndo , pptr - 2 , \"\\n\\t \" , length + 2 ) ;\n break ;\n }\n return ;\n trunc : ND_PRINT ( ( ndo , \"[|%s]\" , typestr ) ) ;\n }"}
{"idx": 13136, "target": 0, "func": "int qemuAgentArbitraryCommand ( qemuAgentPtr mon , const char * cmd_str , char * * result , int timeout ) {\n int ret = - 1 ;\n virJSONValuePtr cmd = NULL ;\n virJSONValuePtr reply = NULL ;\n * result = NULL ;\n if ( timeout < VIR_DOMAIN_QEMU_AGENT_COMMAND_MIN ) {\n virReportError ( VIR_ERR_INVALID_ARG , _ ( \"guest agent timeout '%d' is \" \"less than the minimum '%d'\" ) , timeout , VIR_DOMAIN_QEMU_AGENT_COMMAND_MIN ) ;\n goto cleanup ;\n }\n if ( ! ( cmd = virJSONValueFromString ( cmd_str ) ) ) goto cleanup ;\n if ( ( ret = qemuAgentCommand ( mon , cmd , & reply , true , timeout ) ) < 0 ) goto cleanup ;\n if ( ! ( * result = virJSONValueToString ( reply , false ) ) ) ret = - 1 ;\n cleanup : virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 13137, "target": 0, "func": "void proto_register_ber ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_ber_id_class , {\n \"Class\" , \"ber.id.class\" , FT_UINT8 , BASE_DEC , VALS ( ber_class_codes ) , 0xc0 , \"Class of BER TLV Identifier\" , HFILL }\n }\n , {\n & hf_ber_bitstring_padding , {\n \"Padding\" , \"ber.bitstring.padding\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , \"Number of unused bits in the last octet of the bitstring\" , HFILL }\n }\n , {\n & hf_ber_bitstring_empty , {\n \"Empty\" , \"ber.bitstring.empty\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , \"This is an empty bitstring\" , HFILL }\n }\n , {\n & hf_ber_id_pc , {\n \"P/C\" , \"ber.id.pc\" , FT_BOOLEAN , 8 , TFS ( & ber_pc_codes ) , 0x20 , \"Primitive or Constructed BER encoding\" , HFILL }\n }\n , {\n & hf_ber_id_uni_tag , {\n \"Tag\" , \"ber.id.uni_tag\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & ber_uni_tag_codes_ext , 0x1f , \"Universal tag type\" , HFILL }\n }\n , {\n & hf_ber_id_uni_tag_ext , {\n \"Tag\" , \"ber.id.uni_tag\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Universal tag type\" , HFILL }\n }\n , {\n & hf_ber_id_tag , {\n \"Tag\" , \"ber.id.tag\" , FT_UINT8 , BASE_DEC , NULL , 0x1f , \"Tag value for non-Universal classes\" , HFILL }\n }\n , {\n & hf_ber_id_tag_ext , {\n \"Tag\" , \"ber.id.tag\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Tag value for non-Universal classes\" , HFILL }\n }\n , {\n & hf_ber_length , {\n \"Length\" , \"ber.length\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Length of contents\" , HFILL }\n }\n , {\n & hf_ber_unknown_OCTETSTRING , {\n \"OCTETSTRING\" , \"ber.unknown.OCTETSTRING\" , FT_BYTES , BASE_NONE , NULL , 0 , \"This is an unknown OCTETSTRING\" , HFILL }\n }\n , {\n & hf_ber_unknown_BER_OCTETSTRING , {\n \"OCTETSTRING [BER encoded]\" , \"ber.unknown.OCTETSTRING\" , FT_NONE , BASE_NONE , NULL , 0 , \"This is an BER encoded OCTETSTRING\" , HFILL }\n }\n , {\n & hf_ber_unknown_BER_primitive , {\n \"Primitive [BER encoded]\" , \"ber.unknown.primitive\" , FT_NONE , BASE_NONE , NULL , 0 , \"This is a BER encoded Primitive\" , HFILL }\n }\n , {\n & hf_ber_unknown_OID , {\n \"OID\" , \"ber.unknown.OID\" , FT_OID , BASE_NONE , NULL , 0 , \"This is an unknown Object Identifier\" , HFILL }\n }\n , {\n & hf_ber_unknown_relative_OID , {\n \"OID\" , \"ber.unknown.relative_OID\" , FT_REL_OID , BASE_NONE , NULL , 0 , \"This is an unknown relative Object Identifier\" , HFILL }\n }\n , {\n & hf_ber_unknown_GraphicString , {\n \"GRAPHICSTRING\" , \"ber.unknown.GRAPHICSTRING\" , FT_STRING , BASE_NONE , NULL , 0 , \"This is an unknown GRAPHICSTRING\" , HFILL }\n }\n , {\n & hf_ber_unknown_NumericString , {\n \"NumericString\" , \"ber.unknown.NumericString\" , FT_STRING , BASE_NONE , NULL , 0 , \"This is an unknown NumericString\" , HFILL }\n }\n , {\n & hf_ber_unknown_PrintableString , {\n \"PrintableString\" , \"ber.unknown.PrintableString\" , FT_STRING , BASE_NONE , NULL , 0 , \"This is an unknown PrintableString\" , HFILL }\n }\n , {\n & hf_ber_unknown_TeletexString , {\n \"TeletexString\" , \"ber.unknown.TeletexString\" , FT_STRING , BASE_NONE , NULL , 0 , \"This is an unknown TeletexString\" , HFILL }\n }\n , {\n & hf_ber_unknown_VisibleString , {\n \"VisibleString\" , \"ber.unknown.VisibleString\" , FT_STRING , BASE_NONE , NULL , 0 , \"This is an unknown VisibleString\" , HFILL }\n }\n , {\n & hf_ber_unknown_GeneralString , {\n \"GeneralString\" , \"ber.unknown.GeneralString\" , FT_STRING , BASE_NONE , NULL , 0 , \"This is an unknown GeneralString\" , HFILL }\n }\n , {\n & hf_ber_unknown_UniversalString , {\n \"UniversalString\" , \"ber.unknown.UniversalString\" , FT_STRING , BASE_NONE , NULL , 0 , \"This is an unknown UniversalString\" , HFILL }\n }\n , {\n & hf_ber_unknown_BMPString , {\n \"BMPString\" , \"ber.unknown.BMPString\" , FT_STRING , BASE_NONE , NULL , 0 , \"This is an unknown BMPString\" , HFILL }\n }\n , {\n & hf_ber_unknown_IA5String , {\n \"IA5String\" , \"ber.unknown.IA5String\" , FT_STRING , BASE_NONE , NULL , 0 , \"This is an unknown IA5String\" , HFILL }\n }\n , {\n & hf_ber_unknown_UTCTime , {\n \"UTCTime\" , \"ber.unknown.UTCTime\" , FT_STRING , BASE_NONE , NULL , 0 , \"This is an unknown UTCTime\" , HFILL }\n }\n , {\n & hf_ber_unknown_UTF8String , {\n \"UTF8String\" , \"ber.unknown.UTF8String\" , FT_STRING , BASE_NONE , NULL , 0 , \"This is an unknown UTF8String\" , HFILL }\n }\n , {\n & hf_ber_unknown_GeneralizedTime , {\n \"GeneralizedTime\" , \"ber.unknown.GeneralizedTime\" , FT_STRING , BASE_NONE , NULL , 0 , \"This is an unknown GeneralizedTime\" , HFILL }\n }\n , {\n & hf_ber_unknown_INTEGER , {\n \"INTEGER\" , \"ber.unknown.INTEGER\" , FT_INT64 , BASE_DEC , NULL , 0 , \"This is an unknown INTEGER\" , HFILL }\n }\n , {\n & hf_ber_unknown_REAL , {\n \"REAL\" , \"ber.unknown.REAL\" , FT_DOUBLE , BASE_NONE , NULL , 0 , \"This is an unknown REAL\" , HFILL }\n }\n , {\n & hf_ber_unknown_BITSTRING , {\n \"BITSTRING\" , \"ber.unknown.BITSTRING\" , FT_BYTES , BASE_NONE , NULL , 0 , \"This is an unknown BITSTRING\" , HFILL }\n }\n , {\n & hf_ber_unknown_BOOLEAN , {\n \"BOOLEAN\" , \"ber.unknown.BOOLEAN\" , FT_UINT8 , BASE_HEX , NULL , 0 , \"This is an unknown BOOLEAN\" , HFILL }\n }\n , {\n & hf_ber_unknown_ENUMERATED , {\n \"ENUMERATED\" , \"ber.unknown.ENUMERATED\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"This is an unknown ENUMERATED\" , HFILL }\n }\n , {\n & hf_ber_error , {\n \"BER Error\" , \"ber.error\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_ber_direct_reference , {\n \"direct-reference\" , \"ber.direct_reference\" , FT_OID , BASE_NONE , NULL , 0 , \"ber.OBJECT_IDENTIFIER\" , HFILL }\n }\n , {\n & hf_ber_indirect_reference , {\n \"indirect-reference\" , \"ber.indirect_reference\" , FT_INT32 , BASE_DEC , NULL , 0 , \"ber.INTEGER\" , HFILL }\n }\n , {\n & hf_ber_data_value_descriptor , {\n \"data-value-descriptor\" , \"ber.data_value_descriptor\" , FT_STRING , BASE_NONE , NULL , 0 , \"ber.ObjectDescriptor\" , HFILL }\n }\n , {\n & hf_ber_encoding , {\n \"encoding\" , \"ber.encoding\" , FT_UINT32 , BASE_DEC , VALS ( ber_T_encoding_vals ) , 0 , \"ber.T_encoding\" , HFILL }\n }\n , {\n & hf_ber_octet_aligned , {\n \"octet-aligned\" , \"ber.octet_aligned\" , FT_BYTES , BASE_NONE , NULL , 0 , \"ber.T_octet_aligned\" , HFILL }\n }\n , {\n & hf_ber_arbitrary , {\n \"arbitrary\" , \"ber.arbitrary\" , FT_BYTES , BASE_NONE , NULL , 0 , \"ber.T_arbitrary\" , HFILL }\n }\n , {\n & hf_ber_single_ASN1_type , {\n \"single-ASN1-type\" , \"ber.single_ASN1_type\" , FT_NONE , BASE_NONE , NULL , 0 , \"ber.T_single_ASN1_type\" , HFILL }\n }\n , {\n & hf_ber_fragments , {\n \"OCTET STRING fragments\" , \"ber.octet_string.fragments\" , FT_NONE , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_ber_fragment , {\n \"OCTET STRING fragment\" , \"ber.octet_string.fragment\" , FT_FRAMENUM , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_ber_fragment_overlap , {\n \"OCTET STRING fragment overlap\" , \"ber.octet_string.fragment.overlap\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ber_fragment_overlap_conflicts , {\n \"OCTET STRING fragment overlapping with conflicting data\" , \"ber.octet_string.fragment.overlap.conflicts\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ber_fragment_multiple_tails , {\n \"OCTET STRING has multiple tail fragments\" , \"ber.octet_string.fragment.multiple_tails\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ber_fragment_too_long_fragment , {\n \"OCTET STRING fragment too long\" , \"ber.octet_string.fragment.too_long_fragment\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ber_fragment_error , {\n \"OCTET STRING defragmentation error\" , \"ber.octet_string.fragment.error\" , FT_FRAMENUM , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_ber_fragment_count , {\n \"OCTET STRING fragment count\" , \"ber.octet_string.fragment.count\" , FT_UINT32 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_ber_reassembled_in , {\n \"Reassembled in\" , \"ber.octet_string.reassembled.in\" , FT_FRAMENUM , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_ber_reassembled_length , {\n \"Reassembled OCTET STRING length\" , \"ber.octet_string.reassembled.length\" , FT_UINT32 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_ber_null_tag , {\n \"NULL tag\" , \"ber.null_tag\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ber_unknown_data , {\n \"Unknown Data\" , \"ber.unknown_data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ber_unknown_octetstring , {\n \"Unknown OctetString\" , \"ber.unknown_octetstring\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ber_seq_field_eoc , {\n \"SEQ FIELD EOC\" , \"ber.seq_field_eoc\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ber_seq_eoc , {\n \"SEQ EOC\" , \"ber.seq_eoc\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ber_set_field_eoc , {\n \"SET FIELD EOC\" , \"ber.set_field_eoc\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ber_set_eoc , {\n \"SET EOC\" , \"ber.set_eoc\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ber_choice_eoc , {\n \"CHOICE EOC\" , \"ber.choice_eoc\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ber_seq_of_eoc , {\n \"SEQ OF EOC\" , \"ber.seq_of_eoc\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ber_64bit_uint_as_bytes , {\n \"64bits unsigned integer\" , \"ber.64bit_uint_as_bytes\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , }\n ;\n static gint * ett [ ] = {\n & ett_ber_octet_string , & ett_ber_reassembled_octet_string , & ett_ber_primitive , & ett_ber_unknown , & ett_ber_SEQUENCE , & ett_ber_EXTERNAL , & ett_ber_T_encoding , & ett_ber_fragment , & ett_ber_fragments }\n ;\n static ei_register_info ei [ ] = {\n {\n & ei_ber_size_constraint_string , {\n \"ber.size_constraint.string\" , PI_PROTOCOL , PI_WARN , \"Size constraint: string\" , EXPFILL }\n }\n , {\n & ei_ber_size_constraint_value , {\n \"ber.size_constraint.value\" , PI_PROTOCOL , PI_WARN , \"Size constraint: values\" , EXPFILL }\n }\n , {\n & ei_ber_size_constraint_items , {\n \"ber.size_constraint.items\" , PI_PROTOCOL , PI_WARN , \"Size constraint: items\" , EXPFILL }\n }\n , {\n & ei_ber_sequence_field_wrong , {\n \"ber.error.sequence.field_wrong\" , PI_MALFORMED , PI_WARN , \"BER Error: Wrong field in SEQUENCE\" , EXPFILL }\n }\n , {\n & ei_ber_expected_octet_string , {\n \"ber.error.expected.octet_string\" , PI_MALFORMED , PI_WARN , \"BER Error: OctetString expected\" , EXPFILL }\n }\n , {\n & ei_ber_expected_null , {\n \"ber.error.expected.null\" , PI_MALFORMED , PI_WARN , \"BER Error: NULL expected\" , EXPFILL }\n }\n , {\n & ei_ber_expected_null_zero_length , {\n \"ber.error.expected.null_zero_length\" , PI_MALFORMED , PI_WARN , \"BER Error: NULL expect zero length\" , EXPFILL }\n }\n , {\n & ei_ber_expected_sequence , {\n \"ber.error.expected.sequence\" , PI_MALFORMED , PI_WARN , \"BER Error: Sequence expected\" , EXPFILL }\n }\n , {\n & ei_ber_expected_set , {\n \"ber.error.expected.set\" , PI_MALFORMED , PI_WARN , \"BER Error: SET expected\" , EXPFILL }\n }\n , {\n & ei_ber_expected_string , {\n \"ber.error.expected.string\" , PI_MALFORMED , PI_WARN , \"BER Error: String expected\" , EXPFILL }\n }\n , {\n & ei_ber_expected_object_identifier , {\n \"ber.error.expected.object_identifier\" , PI_MALFORMED , PI_WARN , \"BER Error: Object Identifier expected\" , EXPFILL }\n }\n , {\n & ei_ber_expected_generalized_time , {\n \"ber.error.expected.generalized_time\" , PI_MALFORMED , PI_WARN , \"BER Error: GeneralizedTime expected\" , EXPFILL }\n }\n , {\n & ei_ber_expected_utc_time , {\n \"ber.error.expected.utc_time\" , PI_MALFORMED , PI_WARN , \"BER Error: UTCTime expected\" , EXPFILL }\n }\n , {\n & ei_ber_expected_bitstring , {\n \"ber.error.expected.bitstring\" , PI_MALFORMED , PI_WARN , \"BER Error: BitString expected\" , EXPFILL }\n }\n , {\n & ei_ber_error_length , {\n \"ber.error.length\" , PI_MALFORMED , PI_WARN , \"BER Error length\" , EXPFILL }\n }\n , {\n & ei_ber_wrong_tag_in_tagged_type , {\n \"ber.error.wrong_tag_in_tagged_type\" , PI_MALFORMED , PI_WARN , \"BER Error: Wrong tag in tagged type\" , EXPFILL }\n }\n , {\n & ei_ber_universal_tag_unknown , {\n \"ber.error.universal_tag_unknown\" , PI_MALFORMED , PI_WARN , \"BER Error: can not handle universal\" , EXPFILL }\n }\n , {\n & ei_ber_no_oid , {\n \"ber.error.no_oid\" , PI_MALFORMED , PI_WARN , \"BER Error: No OID supplied to call_ber_oid_callback\" , EXPFILL }\n }\n , {\n & ei_ber_oid_not_implemented , {\n \"ber.error.oid_not_implemented\" , PI_UNDECODED , PI_WARN , \"BER: Dissector for OID not implemented. Contact Wireshark developers if you want this supported\" , EXPFILL }\n }\n , {\n & ei_ber_syntax_not_implemented , {\n \"ber.error.syntax_not_implemented\" , PI_UNDECODED , PI_WARN , \"BER: Syntax not implemented\" , EXPFILL }\n }\n , {\n & ei_ber_value_too_many_bytes , {\n \"ber.error.value_too_many_bytes\" , PI_MALFORMED , PI_WARN , \"Value is encoded with too many bytes\" , EXPFILL }\n }\n , {\n & ei_ber_unknown_field_sequence , {\n \"ber.error.unknown_field.sequence\" , PI_MALFORMED , PI_WARN , \"BER Error: Unknown field in Sequence\" , EXPFILL }\n }\n , {\n & ei_ber_unknown_field_set , {\n \"ber.error.unknown_field.set\" , PI_MALFORMED , PI_WARN , \"BER Error: Unknown field in SET\" , EXPFILL }\n }\n , {\n & ei_ber_missing_field_set , {\n \"ber.error.missing_field.set\" , PI_MALFORMED , PI_WARN , \"BER Error: Missing field in SET\" , EXPFILL }\n }\n , {\n & ei_ber_empty_choice , {\n \"ber.error.empty_choice\" , PI_MALFORMED , PI_WARN , \"BER Error: Empty choice was found\" , EXPFILL }\n }\n , {\n & ei_ber_choice_not_found , {\n \"ber.error.choice_not_found\" , PI_MALFORMED , PI_WARN , \"BER Error: This choice field was not found\" , EXPFILL }\n }\n , {\n & ei_ber_bits_unknown , {\n \"ber.error.bits_unknown\" , PI_UNDECODED , PI_WARN , \"BER Error: Bits unknown\" , EXPFILL }\n }\n , {\n & ei_ber_bits_set_padded , {\n \"ber.error.bits_set_padded\" , PI_UNDECODED , PI_WARN , \"BER Error: Bits set in padded area\" , EXPFILL }\n }\n , {\n & ei_ber_illegal_padding , {\n \"ber.error.illegal_padding\" , PI_UNDECODED , PI_WARN , \"Illegal padding\" , EXPFILL }\n }\n , {\n & ei_ber_invalid_format_generalized_time , {\n \"ber.error.invalid_format.generalized_time\" , PI_MALFORMED , PI_WARN , \"BER Error: GeneralizedTime invalid format\" , EXPFILL }\n }\n , {\n & ei_ber_invalid_format_utctime , {\n \"ber.error.invalid_format.utctime\" , PI_MALFORMED , PI_WARN , \"BER Error: malformed UTCTime encoding\" , EXPFILL }\n }\n , {\n & ei_hf_field_not_integer_type , {\n \"ber.error.hf_field_not_integer_type\" , PI_PROTOCOL , PI_ERROR , \"Was passed a HF field that was not integer type\" , EXPFILL }\n }\n , }\n ;\n static build_valid_func ber_da_build_value [ 1 ] = {\n ber_value }\n ;\n static decode_as_value_t ber_da_values = {\n ber_prompt , 1 , ber_da_build_value }\n ;\n static decode_as_t ber_da = {\n \"ber\" , \"ASN.1\" , \"ber.syntax\" , 1 , 0 , & ber_da_values , NULL , NULL , ber_populate_list , ber_decode_as_reset , ber_decode_as_change , NULL }\n ;\n module_t * ber_module ;\n expert_module_t * expert_ber ;\n uat_t * users_uat = uat_new ( \"OID Tables\" , sizeof ( oid_user_t ) , \"oid\" , FALSE , & oid_users , & num_oid_users , UAT_AFFECTS_DISSECTION , \"ChObjectIdentifiers\" , oid_copy_cb , NULL , oid_free_cb , ber_update_oids , users_flds ) ;\n proto_ber = proto_register_protocol ( \"Basic Encoding Rules (ASN.1 X.690)\" , \"BER\" , \"ber\" ) ;\n ber_handle = new_register_dissector ( \"ber\" , dissect_ber , proto_ber ) ;\n proto_register_field_array ( proto_ber , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n expert_ber = expert_register_protocol ( proto_ber ) ;\n expert_register_field_array ( expert_ber , ei , array_length ( ei ) ) ;\n proto_set_cant_toggle ( proto_ber ) ;\n ber_module = prefs_register_protocol ( proto_ber , NULL ) ;\n prefs_register_bool_preference ( ber_module , \"show_internals\" , \"Show internal BER encapsulation tokens\" , \"Whether the dissector should also display internal\" \" ASN.1 BER details such as Identifier and Length fields\" , & show_internal_ber_fields ) ;\n prefs_register_bool_preference ( ber_module , \"decode_unexpected\" , \"Decode unexpected tags as BER encoded data\" , \"Whether the dissector should decode unexpected tags as\" \" ASN.1 BER encoded data\" , & decode_unexpected ) ;\n prefs_register_bool_preference ( ber_module , \"decode_octetstring\" , \"Decode OCTET STRING as BER encoded data\" , \"Whether the dissector should try decoding OCTET STRINGs as\" \" constructed ASN.1 BER encoded data\" , & decode_octetstring_as_ber ) ;\n prefs_register_bool_preference ( ber_module , \"decode_primitive\" , \"Decode Primitive as BER encoded data\" , \"Whether the dissector should try decoding unknown primitive as\" \" constructed ASN.1 BER encoded data\" , & decode_primitive_as_ber ) ;\n prefs_register_bool_preference ( ber_module , \"warn_too_many_bytes\" , \"Warn if too many leading zero bits in encoded data\" , \"Whether the dissector should warn if excessive leading zero (0) bits\" , & decode_warning_leading_zero_bits ) ;\n prefs_register_uat_preference ( ber_module , \"oid_table\" , \"Object Identifiers\" , \"A table that provides names for object identifiers\" \" and the syntax of any associated values\" , users_uat ) ;\n ber_oid_dissector_table = register_dissector_table ( \"ber.oid\" , \"BER OID Dissectors\" , FT_STRING , BASE_NONE , DISSECTOR_TABLE_ALLOW_DUPLICATE ) ;\n ber_syntax_dissector_table = register_dissector_table ( \"ber.syntax\" , \"BER syntax\" , FT_STRING , BASE_NONE , DISSECTOR_TABLE_ALLOW_DUPLICATE ) ;\n syntax_table = g_hash_table_new ( g_str_hash , g_str_equal ) ;\n register_ber_syntax_dissector ( \"ASN.1\" , proto_ber , dissect_ber_syntax ) ;\n register_init_routine ( ber_defragment_init ) ;\n register_cleanup_routine ( ber_defragment_cleanup ) ;\n register_decode_as ( & ber_da ) ;\n }"}
{"idx": 13138, "target": 0, "func": "int c_main ( UFILE * out ) {\n UChar32 ch ;\n UErrorCode errorCode = U_ZERO_ERROR ;\n static const UChar upper [ ] = {\n 0x61 , 0x42 , 0x49 , 0 }\n ;\n static const UChar lower [ ] = {\n 0x61 , 0x42 , 0x69 , 0 }\n ;\n static const UChar unfold [ ] = {\n 0x61 , 0x42 , 0x131 , 0 }\n ;\n UChar buffer [ 32 ] ;\n const UChar char_k = 0x006b ;\n const UChar char_K = 0x004b ;\n int length ;\n printf ( \"** C Case Mapping Sample\\n\" ) ;\n ch = u_toupper ( char_k ) ;\n u_fprintf ( out , \"toupper(%C) = %C\\n\" , char_k , ch ) ;\n ch = u_tolower ( ch ) ;\n u_fprintf ( out , \"tolower() = %C\\n\" , ch ) ;\n ch = u_totitle ( char_k ) ;\n u_fprintf ( out , \"totitle(%C) = %C\\n\" , char_k , ch ) ;\n ch = u_foldCase ( char_K , U_FOLD_CASE_DEFAULT ) ;\n u_fprintf ( out , \"u_foldCase(%C, U_FOLD_CASE_DEFAULT) = %C\\n\" , char_K , ( UChar ) ch ) ;\n length = u_strToLower ( buffer , sizeof ( buffer ) / sizeof ( buffer [ 0 ] ) , upper , sizeof ( upper ) / sizeof ( upper [ 0 ] ) , \"tr\" , & errorCode ) ;\n if ( U_FAILURE ( errorCode ) || buffer [ length ] != 0 ) {\n u_fprintf ( out , \"error in u_strToLower(Turkish locale)=%ld error=%s\\n\" , length , u_errorName ( errorCode ) ) ;\n }\n u_fprintf ( out , \"u_strToLower(%S, turkish) -> %S\\n\" , upper , buffer ) ;\n length = u_strToUpper ( buffer , sizeof ( buffer ) / sizeof ( buffer [ 0 ] ) , upper , sizeof ( upper ) / sizeof ( upper [ 0 ] ) , \"en\" , & errorCode ) ;\n if ( U_FAILURE ( errorCode ) || buffer [ length ] != 0 ) {\n u_fprintf ( out , \"error in u_strToLower(English locale)=%ld error=%s\\n\" , length , u_errorName ( errorCode ) ) ;\n }\n u_fprintf ( out , \"u_strToUpper(%S, english) -> %S\\n\" , lower , buffer ) ;\n length = u_strFoldCase ( buffer , sizeof ( buffer ) / sizeof ( buffer [ 0 ] ) , unfold , sizeof ( unfold ) / sizeof ( unfold [ 0 ] ) , U_FOLD_CASE_DEFAULT , & errorCode ) ;\n if ( U_FAILURE ( errorCode ) || buffer [ length ] != 0 ) {\n u_fprintf ( out , \"error in u_strFoldCase()=%ld error=%s\\n\" , length , u_errorName ( errorCode ) ) ;\n }\n u_fprintf ( out , \"u_strFoldCase(%S, U_FOLD_CASE_DEFAULT) -> %S\\n\" , unfold , buffer ) ;\n u_fprintf ( out , \"\\n** end of C sample\\n\" ) ;\n return 0 ;\n }"}
{"idx": 13139, "target": 0, "func": "static int dissect_h245_CommunicationModeRequest ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_CommunicationModeRequest , CommunicationModeRequest_sequence ) ;\n return offset ;\n }"}
{"idx": 13140, "target": 0, "func": "unsigned int hb_face_get_index ( hb_face_t * face ) {\n return face -> index ;\n }"}
{"idx": 13141, "target": 0, "func": "static int dissect_h245_MediaDistributionCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MediaDistributionCapability , MediaDistributionCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 13142, "target": 0, "func": "static unsigned char * kex_agree_instr ( unsigned char * haystack , unsigned long haystack_len , const unsigned char * needle , unsigned long needle_len ) {\n unsigned char * s ;\n if ( haystack_len < needle_len ) {\n return NULL ;\n }\n if ( ( strncmp ( ( char * ) haystack , ( char * ) needle , needle_len ) == 0 ) && ( needle_len == haystack_len || haystack [ needle_len ] == ',' ) ) {\n return haystack ;\n }\n s = haystack ;\n while ( ( s = ( unsigned char * ) strchr ( ( char * ) s , ',' ) ) && ( ( haystack_len - ( s - haystack ) ) > needle_len ) ) {\n s ++ ;\n if ( ( strncmp ( ( char * ) s , ( char * ) needle , needle_len ) == 0 ) && ( ( ( s - haystack ) + needle_len ) == haystack_len || s [ needle_len ] == ',' ) ) {\n return s ;\n }\n }\n return NULL ;\n }"}
{"idx": 13143, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ContentFaviconDriverTest , AssociateIconWithInitialPageDespiteMetaRefreshTag ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n GURL url = embedded_test_server ( ) -> GetURL ( \"/favicon/page_with_meta_refresh_tag.html\" ) ;\n GURL landing_url = embedded_test_server ( ) -> GetURL ( \"/favicon/page_with_favicon.html\" ) ;\n PendingTaskWaiter waiter ( web_contents ( ) ) ;\n waiter . AlsoRequireUrl ( landing_url ) ;\n ui_test_utils : : NavigateToURLWithDisposition ( browser ( ) , url , WindowOpenDisposition : : CURRENT_TAB , ui_test_utils : : BROWSER_TEST_NONE ) ;\n waiter . Wait ( ) ;\n EXPECT_NE ( nullptr , GetFaviconForPageURL ( url , favicon_base : : IconType : : kFavicon ) . bitmap_data ) ;\n EXPECT_NE ( nullptr , GetFaviconForPageURL ( landing_url , favicon_base : : IconType : : kFavicon ) . bitmap_data ) ;\n }"}
{"idx": 13144, "target": 0, "func": "static int dissect_h245_T_requestType ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_requestType , T_requestType_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 13145, "target": 0, "func": "static PyObject * string_rpartition ( PyStringObject * self , PyObject * sep_obj ) {\n const char * sep ;\n Py_ssize_t sep_len ;\n if ( PyString_Check ( sep_obj ) ) {\n sep = PyString_AS_STRING ( sep_obj ) ;\n sep_len = PyString_GET_SIZE ( sep_obj ) ;\n }\n # ifdef Py_USING_UNICODE else if ( PyUnicode_Check ( sep_obj ) ) return PyUnicode_RPartition ( ( PyObject * ) self , sep_obj ) ;\n # endif else if ( PyObject_AsCharBuffer ( sep_obj , & sep , & sep_len ) ) return NULL ;\n return stringlib_rpartition ( ( PyObject * ) self , PyString_AS_STRING ( self ) , PyString_GET_SIZE ( self ) , sep_obj , sep , sep_len ) ;\n }"}
{"idx": 13146, "target": 0, "func": "void PNGAPI png_set_cHRM_fixed ( png_structp png_ptr , png_infop info_ptr , png_fixed_point white_x , png_fixed_point white_y , png_fixed_point red_x , png_fixed_point red_y , png_fixed_point green_x , png_fixed_point green_y , png_fixed_point blue_x , png_fixed_point blue_y ) {\n png_debug1 ( 1 , \"in %s storage function\" , \"cHRM fixed\" ) ;\n if ( png_ptr == NULL || info_ptr == NULL ) return ;\n # ifdef PNG_CHECK_cHRM_SUPPORTED if ( png_check_cHRM_fixed ( png_ptr , white_x , white_y , red_x , red_y , green_x , green_y , blue_x , blue_y ) ) # endif {\n info_ptr -> int_x_white = white_x ;\n info_ptr -> int_y_white = white_y ;\n info_ptr -> int_x_red = red_x ;\n info_ptr -> int_y_red = red_y ;\n info_ptr -> int_x_green = green_x ;\n info_ptr -> int_y_green = green_y ;\n info_ptr -> int_x_blue = blue_x ;\n info_ptr -> int_y_blue = blue_y ;\n # ifdef PNG_FLOATING_POINT_SUPPORTED info_ptr -> x_white = ( float ) ( white_x / 100000. ) ;\n info_ptr -> y_white = ( float ) ( white_y / 100000. ) ;\n info_ptr -> x_red = ( float ) ( red_x / 100000. ) ;\n info_ptr -> y_red = ( float ) ( red_y / 100000. ) ;\n info_ptr -> x_green = ( float ) ( green_x / 100000. ) ;\n info_ptr -> y_green = ( float ) ( green_y / 100000. ) ;\n info_ptr -> x_blue = ( float ) ( blue_x / 100000. ) ;\n info_ptr -> y_blue = ( float ) ( blue_y / 100000. ) ;\n # endif info_ptr -> valid |= PNG_INFO_cHRM ;\n }\n }"}
{"idx": 13147, "target": 0, "func": "static int allocate_buffers ( ShortenContext * s ) {\n int i , chan ;\n int * coeffs ;\n void * tmp_ptr ;\n for ( chan = 0 ;\n chan < s -> channels ;\n chan ++ ) {\n if ( FFMAX ( 1 , s -> nmean ) >= UINT_MAX / sizeof ( int32_t ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"nmean too large\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( s -> blocksize + s -> nwrap >= UINT_MAX / sizeof ( int32_t ) || s -> blocksize + s -> nwrap <= ( unsigned ) s -> nwrap ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"s->blocksize + s->nwrap too large\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n tmp_ptr = av_realloc ( s -> offset [ chan ] , sizeof ( int32_t ) * FFMAX ( 1 , s -> nmean ) ) ;\n if ( ! tmp_ptr ) return AVERROR ( ENOMEM ) ;\n s -> offset [ chan ] = tmp_ptr ;\n tmp_ptr = av_realloc ( s -> decoded_base [ chan ] , ( s -> blocksize + s -> nwrap ) * sizeof ( s -> decoded_base [ 0 ] [ 0 ] ) ) ;\n if ( ! tmp_ptr ) return AVERROR ( ENOMEM ) ;\n s -> decoded_base [ chan ] = tmp_ptr ;\n for ( i = 0 ;\n i < s -> nwrap ;\n i ++ ) s -> decoded_base [ chan ] [ i ] = 0 ;\n s -> decoded [ chan ] = s -> decoded_base [ chan ] + s -> nwrap ;\n }\n coeffs = av_realloc ( s -> coeffs , s -> nwrap * sizeof ( * s -> coeffs ) ) ;\n if ( ! coeffs ) return AVERROR ( ENOMEM ) ;\n s -> coeffs = coeffs ;\n return 0 ;\n }"}
{"idx": 13148, "target": 0, "func": "static int do_show_slave_status ( MYSQL * mysql_con ) {\n MYSQL_RES * slave = 0 ;\n const char * comment_prefix = ( opt_slave_data == MYSQL_OPT_SLAVE_DATA_COMMENTED_SQL ) ? \"-- \" : \"\" ;\n if ( mysql_query_with_error_report ( mysql_con , & slave , \"SHOW SLAVE STATUS\" ) ) {\n if ( ! ignore_errors ) {\n fprintf ( stderr , \"%s: Error: Slave not set up\\n\" , my_progname_short ) ;\n }\n mysql_free_result ( slave ) ;\n return 1 ;\n }\n else {\n MYSQL_ROW row = mysql_fetch_row ( slave ) ;\n if ( row && row [ 9 ] && row [ 21 ] ) {\n if ( opt_comments ) fprintf ( md_result_file , \"\\n--\\n-- Position to start replication or point-in-time \" \"recovery from (the master of this slave)\\n--\\n\\n\" ) ;\n fprintf ( md_result_file , \"%sCHANGE MASTER TO \" , comment_prefix ) ;\n if ( opt_include_master_host_port ) {\n if ( row [ 1 ] ) fprintf ( md_result_file , \"MASTER_HOST='%s', \" , row [ 1 ] ) ;\n if ( row [ 3 ] ) fprintf ( md_result_file , \"MASTER_PORT=%s, \" , row [ 3 ] ) ;\n }\n fprintf ( md_result_file , \"MASTER_LOG_FILE='%s', MASTER_LOG_POS=%s;\n\\n\" , row [ 9 ] , row [ 21 ] ) ;\n check_io ( md_result_file ) ;\n }\n mysql_free_result ( slave ) ;\n }\n return 0 ;\n }"}
{"idx": 13149, "target": 0, "func": "int main ( int argc ATTRIBUTE_UNUSED , char * * argv ATTRIBUTE_UNUSED ) {\n printf ( \"%s : XPath/Debug support not compiled in\\n\" , argv [ 0 ] ) ;\n return ( 0 ) ;\n }"}
{"idx": 13150, "target": 0, "func": "void virLogLock ( void ) {\n virMutexLock ( & virLogMutex ) ;\n }"}
{"idx": 13151, "target": 0, "func": "static void h225_stat_init ( stat_tap_table_ui * new_stat , new_stat_tap_gui_init_cb gui_callback , void * gui_data ) {\n int num_fields = sizeof ( h225_stat_fields ) / sizeof ( stat_tap_table_item ) ;\n stat_tap_table * table = new_stat_tap_init_table ( \"H.225 Messages and Message Reasons\" , num_fields , 0 , NULL , gui_callback , gui_data ) ;\n int row_idx = 0 , msg_idx ;\n stat_tap_table_item_type items [ sizeof ( h225_stat_fields ) / sizeof ( stat_tap_table_item ) ] ;\n new_stat_tap_add_table ( new_stat , table ) ;\n items [ MESSAGE_TYPE_COLUMN ] . type = TABLE_ITEM_STRING ;\n items [ COUNT_COLUMN ] . type = TABLE_ITEM_UINT ;\n items [ COUNT_COLUMN ] . value . uint_value = 0 ;\n msg_idx = 0 ;\n do {\n items [ MESSAGE_TYPE_COLUMN ] . value . string_value = h225_RasMessage_vals [ msg_idx ] . strptr ? h225_RasMessage_vals [ msg_idx ] . strptr : \"Unknown RAS message\" ;\n ras_msg_idx [ msg_idx ] = row_idx ;\n new_stat_tap_init_table_row ( table , row_idx , num_fields , items ) ;\n row_idx ++ ;\n msg_idx ++ ;\n }\n while ( h225_RasMessage_vals [ msg_idx ] . strptr ) ;\n msg_idx = 0 ;\n do {\n items [ MESSAGE_TYPE_COLUMN ] . value . string_value = T_h323_message_body_vals [ msg_idx ] . strptr ? T_h323_message_body_vals [ msg_idx ] . strptr : \"Unknown CS message\" ;\n cs_msg_idx [ msg_idx ] = row_idx ;\n new_stat_tap_init_table_row ( table , row_idx , num_fields , items ) ;\n row_idx ++ ;\n msg_idx ++ ;\n }\n while ( T_h323_message_body_vals [ msg_idx ] . strptr ) ;\n msg_idx = 0 ;\n do {\n items [ MESSAGE_TYPE_COLUMN ] . value . string_value = GatekeeperRejectReason_vals [ msg_idx ] . strptr ? GatekeeperRejectReason_vals [ msg_idx ] . strptr : \"Unknown gatekeeper reject reason\" ;\n grj_reason_idx [ msg_idx ] = row_idx ;\n new_stat_tap_init_table_row ( table , row_idx , num_fields , items ) ;\n row_idx ++ ;\n msg_idx ++ ;\n }\n while ( GatekeeperRejectReason_vals [ msg_idx ] . strptr ) ;\n msg_idx = 0 ;\n do {\n items [ MESSAGE_TYPE_COLUMN ] . value . string_value = RegistrationRejectReason_vals [ msg_idx ] . strptr ? RegistrationRejectReason_vals [ msg_idx ] . strptr : \"Unknown registration reject reason\" ;\n rrj_reason_idx [ msg_idx ] = row_idx ;\n new_stat_tap_init_table_row ( table , row_idx , num_fields , items ) ;\n row_idx ++ ;\n msg_idx ++ ;\n }\n while ( RegistrationRejectReason_vals [ msg_idx ] . strptr ) ;\n msg_idx = 0 ;\n do {\n items [ MESSAGE_TYPE_COLUMN ] . value . string_value = UnregRequestReason_vals [ msg_idx ] . strptr ? UnregRequestReason_vals [ msg_idx ] . strptr : \"Unknown unregistration request reason\" ;\n urq_reason_idx [ msg_idx ] = row_idx ;\n new_stat_tap_init_table_row ( table , row_idx , num_fields , items ) ;\n row_idx ++ ;\n msg_idx ++ ;\n }\n while ( UnregRequestReason_vals [ msg_idx ] . strptr ) ;\n msg_idx = 0 ;\n do {\n items [ MESSAGE_TYPE_COLUMN ] . value . string_value = UnregRejectReason_vals [ msg_idx ] . strptr ? UnregRejectReason_vals [ msg_idx ] . strptr : \"Unknown unregistration reject reason\" ;\n urj_reason_idx [ msg_idx ] = row_idx ;\n new_stat_tap_init_table_row ( table , row_idx , num_fields , items ) ;\n row_idx ++ ;\n msg_idx ++ ;\n }\n while ( UnregRejectReason_vals [ msg_idx ] . strptr ) ;\n msg_idx = 0 ;\n do {\n items [ MESSAGE_TYPE_COLUMN ] . value . string_value = AdmissionRejectReason_vals [ msg_idx ] . strptr ? AdmissionRejectReason_vals [ msg_idx ] . strptr : \"Unknown admission reject reason\" ;\n arj_reason_idx [ msg_idx ] = row_idx ;\n new_stat_tap_init_table_row ( table , row_idx , num_fields , items ) ;\n row_idx ++ ;\n msg_idx ++ ;\n }\n while ( AdmissionRejectReason_vals [ msg_idx ] . strptr ) ;\n msg_idx = 0 ;\n do {\n items [ MESSAGE_TYPE_COLUMN ] . value . string_value = BandRejectReason_vals [ msg_idx ] . strptr ? BandRejectReason_vals [ msg_idx ] . strptr : \"Unknown band reject reason\" ;\n brj_reason_idx [ msg_idx ] = row_idx ;\n new_stat_tap_init_table_row ( table , row_idx , num_fields , items ) ;\n row_idx ++ ;\n msg_idx ++ ;\n }\n while ( BandRejectReason_vals [ msg_idx ] . strptr ) ;\n msg_idx = 0 ;\n do {\n items [ MESSAGE_TYPE_COLUMN ] . value . string_value = DisengageReason_vals [ msg_idx ] . strptr ? DisengageReason_vals [ msg_idx ] . strptr : \"Unknown disengage reason\" ;\n drq_reason_idx [ msg_idx ] = row_idx ;\n new_stat_tap_init_table_row ( table , row_idx , num_fields , items ) ;\n row_idx ++ ;\n msg_idx ++ ;\n }\n while ( DisengageReason_vals [ msg_idx ] . strptr ) ;\n msg_idx = 0 ;\n do {\n items [ MESSAGE_TYPE_COLUMN ] . value . string_value = DisengageRejectReason_vals [ msg_idx ] . strptr ? DisengageRejectReason_vals [ msg_idx ] . strptr : \"Unknown disengage reject reason\" ;\n drj_reason_idx [ msg_idx ] = row_idx ;\n new_stat_tap_init_table_row ( table , row_idx , num_fields , items ) ;\n row_idx ++ ;\n msg_idx ++ ;\n }\n while ( DisengageRejectReason_vals [ msg_idx ] . strptr ) ;\n msg_idx = 0 ;\n do {\n items [ MESSAGE_TYPE_COLUMN ] . value . string_value = LocationRejectReason_vals [ msg_idx ] . strptr ? LocationRejectReason_vals [ msg_idx ] . strptr : \"Unknown location reject reason\" ;\n lrj_reason_idx [ msg_idx ] = row_idx ;\n new_stat_tap_init_table_row ( table , row_idx , num_fields , items ) ;\n row_idx ++ ;\n msg_idx ++ ;\n }\n while ( LocationRejectReason_vals [ msg_idx ] . strptr ) ;\n msg_idx = 0 ;\n do {\n items [ MESSAGE_TYPE_COLUMN ] . value . string_value = InfoRequestNakReason_vals [ msg_idx ] . strptr ? InfoRequestNakReason_vals [ msg_idx ] . strptr : \"Unknown info request nak reason\" ;\n irqnak_reason_idx [ msg_idx ] = row_idx ;\n new_stat_tap_init_table_row ( table , row_idx , num_fields , items ) ;\n row_idx ++ ;\n msg_idx ++ ;\n }\n while ( InfoRequestNakReason_vals [ msg_idx ] . strptr ) ;\n msg_idx = 0 ;\n do {\n items [ MESSAGE_TYPE_COLUMN ] . value . string_value = h225_ReleaseCompleteReason_vals [ msg_idx ] . strptr ? h225_ReleaseCompleteReason_vals [ msg_idx ] . strptr : \"Unknown release complete reason\" ;\n rel_cmp_reason_idx [ msg_idx ] = row_idx ;\n new_stat_tap_init_table_row ( table , row_idx , num_fields , items ) ;\n row_idx ++ ;\n msg_idx ++ ;\n }\n while ( h225_ReleaseCompleteReason_vals [ msg_idx ] . strptr ) ;\n msg_idx = 0 ;\n do {\n items [ MESSAGE_TYPE_COLUMN ] . value . string_value = FacilityReason_vals [ msg_idx ] . strptr ? FacilityReason_vals [ msg_idx ] . strptr : \"Unknown facility reason\" ;\n facility_reason_idx [ msg_idx ] = row_idx ;\n new_stat_tap_init_table_row ( table , row_idx , num_fields , items ) ;\n row_idx ++ ;\n msg_idx ++ ;\n }\n while ( FacilityReason_vals [ msg_idx ] . strptr ) ;\n items [ MESSAGE_TYPE_COLUMN ] . value . string_value = \"Unknown H.225 message\" ;\n new_stat_tap_init_table_row ( table , row_idx , num_fields , items ) ;\n other_idx = row_idx ;\n }"}
{"idx": 13152, "target": 0, "func": "static void set_str ( unsigned char * p , const char * s , size_t l , char f , const char * map ) {\n unsigned char c ;\n if ( s == NULL ) s = \"\" ;\n while ( ( c = * s ++ ) != 0 && l > 0 ) {\n if ( c >= 0x80 || map [ c ] == 0 ) {\n if ( c >= 'a' && c <= 'z' ) {\n c -= 0x20 ;\n }\n else c = 0x5f ;\n }\n * p ++ = c ;\n l -- ;\n }\n if ( l > 0 ) memset ( p , f , l ) ;\n }"}
{"idx": 13153, "target": 0, "func": "static cmsBool CheckEOLN ( cmsIT8 * it8 ) {\n if ( ! Check ( it8 , SEOLN , \"Expected separator\" ) ) return FALSE ;\n while ( it8 -> sy == SEOLN ) InSymbol ( it8 ) ;\n return TRUE ;\n }"}
{"idx": 13154, "target": 0, "func": "static void U_CALLCONV _HZ_WriteSub ( UConverterFromUnicodeArgs * args , int32_t offsetIndex , UErrorCode * err ) {\n UConverter * cnv = args -> converter ;\n UConverterDataHZ * convData = ( UConverterDataHZ * ) cnv -> extraInfo ;\n char * p ;\n char buffer [ 4 ] ;\n p = buffer ;\n if ( convData -> isTargetUCharDBCS ) {\n * p ++ = UCNV_TILDE ;\n * p ++ = UCNV_CLOSE_BRACE ;\n convData -> isTargetUCharDBCS = FALSE ;\n }\n * p ++ = ( char ) cnv -> subChars [ 0 ] ;\n ucnv_cbFromUWriteBytes ( args , buffer , ( int32_t ) ( p - buffer ) , offsetIndex , err ) ;\n }"}
{"idx": 13155, "target": 0, "func": "int jas_image_readcmpt2 ( jas_image_t * image , int cmptno , jas_image_coord_t x , jas_image_coord_t y , jas_image_coord_t width , jas_image_coord_t height , long * buf ) {\n jas_image_cmpt_t * cmpt ;\n jas_image_coord_t i ;\n jas_image_coord_t j ;\n long v ;\n long * bufptr ;\n if ( cmptno < 0 || cmptno >= image -> numcmpts_ ) goto error ;\n cmpt = image -> cmpts_ [ cmptno ] ;\n if ( x < 0 || x >= cmpt -> width_ || y < 0 || y >= cmpt -> height_ || width < 0 || height < 0 || x + width > cmpt -> width_ || y + height > cmpt -> height_ ) goto error ;\n bufptr = buf ;\n for ( i = 0 ;\n i < height ;\n ++ i ) {\n if ( jas_stream_seek ( cmpt -> stream_ , ( cmpt -> width_ * ( y + i ) + x ) * cmpt -> cps_ , SEEK_SET ) < 0 ) goto error ;\n for ( j = 0 ;\n j < width ;\n ++ j ) {\n if ( getint ( cmpt -> stream_ , cmpt -> sgnd_ , cmpt -> prec_ , & v ) ) goto error ;\n * bufptr ++ = v ;\n }\n }\n return 0 ;\n error : return - 1 ;\n }"}
{"idx": 13156, "target": 0, "func": "size_t WriteInt ( ArchiveHandle * AH , int i ) {\n int b ;\n if ( i < 0 ) {\n ( * AH -> WriteBytePtr ) ( AH , 1 ) ;\n i = - i ;\n }\n else ( * AH -> WriteBytePtr ) ( AH , 0 ) ;\n for ( b = 0 ;\n b < AH -> intSize ;\n b ++ ) {\n ( * AH -> WriteBytePtr ) ( AH , i & 0xFF ) ;\n i >>= 8 ;\n }\n return AH -> intSize + 1 ;\n }"}
{"idx": 13157, "target": 1, "func": "extern rtype gnu_dev_ ## name proto __THROW __attribute_const__ ;\n # define __SYSMACROS_IMPL_TEMPL ( rtype , name , proto ) __extension__ __extern_inline __attribute_const__ rtype __NTH ( gnu_dev_ ## name proto ) __BEGIN_DECLS __SYSMACROS_DECLARE_MAJOR ( __SYSMACROS_DECL_TEMPL ) __SYSMACROS_DECLARE_MINOR ( __SYSMACROS_DECL_TEMPL ) __SYSMACROS_DECLARE_MAKEDEV ( __SYSMACROS_DECL_TEMPL )"}
{"idx": 13158, "target": 0, "func": "static void test_bind_result_ext1 ( ) {\n MYSQL_STMT * stmt ;\n uint i ;\n int rc ;\n char t_data [ 20 ] ;\n float s_data ;\n short i_data ;\n uchar b_data ;\n int f_data ;\n long bData ;\n char d_data [ 20 ] ;\n double szData ;\n MYSQL_BIND my_bind [ 8 ] ;\n ulong length [ 8 ] ;\n my_bool is_null [ 8 ] ;\n myheader ( \"test_bind_result_ext1\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_bind_result\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_bind_result(c1 tinyint, c2 smallint, \\ c3 int, c4 bigint, \\ c5 float, c6 double, \\ c7 varbinary(10), \\ c8 varchar(10))\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_bind_result VALUES(120, 2999, 3999, 54, \\ 2.6, 58.89, \\ '206', '6.7')\" ) ;\n myquery ( rc ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 0 ] . buffer = ( void * ) t_data ;\n my_bind [ 0 ] . buffer_length = sizeof ( t_data ) ;\n my_bind [ 0 ] . error = & my_bind [ 0 ] . error_value ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_FLOAT ;\n my_bind [ 1 ] . buffer = ( void * ) & s_data ;\n my_bind [ 1 ] . buffer_length = 0 ;\n my_bind [ 1 ] . error = & my_bind [ 1 ] . error_value ;\n my_bind [ 2 ] . buffer_type = MYSQL_TYPE_SHORT ;\n my_bind [ 2 ] . buffer = ( void * ) & i_data ;\n my_bind [ 2 ] . buffer_length = 0 ;\n my_bind [ 2 ] . error = & my_bind [ 2 ] . error_value ;\n my_bind [ 3 ] . buffer_type = MYSQL_TYPE_TINY ;\n my_bind [ 3 ] . buffer = ( void * ) & b_data ;\n my_bind [ 3 ] . buffer_length = 0 ;\n my_bind [ 3 ] . error = & my_bind [ 3 ] . error_value ;\n my_bind [ 4 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 4 ] . buffer = ( void * ) & f_data ;\n my_bind [ 4 ] . buffer_length = 0 ;\n my_bind [ 4 ] . error = & my_bind [ 4 ] . error_value ;\n my_bind [ 5 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 5 ] . buffer = ( void * ) d_data ;\n my_bind [ 5 ] . buffer_length = sizeof ( d_data ) ;\n my_bind [ 5 ] . error = & my_bind [ 5 ] . error_value ;\n my_bind [ 6 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 6 ] . buffer = ( void * ) & bData ;\n my_bind [ 6 ] . buffer_length = 0 ;\n my_bind [ 6 ] . error = & my_bind [ 6 ] . error_value ;\n my_bind [ 7 ] . buffer_type = MYSQL_TYPE_DOUBLE ;\n my_bind [ 7 ] . buffer = ( void * ) & szData ;\n my_bind [ 7 ] . buffer_length = 0 ;\n my_bind [ 7 ] . error = & my_bind [ 7 ] . error_value ;\n for ( i = 0 ;\n i < array_elements ( my_bind ) ;\n i ++ ) {\n my_bind [ i ] . is_null = & is_null [ i ] ;\n my_bind [ i ] . length = & length [ i ] ;\n }\n stmt = mysql_simple_prepare ( mysql , \"select * from test_bind_result\" ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n printf ( \"rc=%d\\n\" , rc ) ;\n DIE_UNLESS ( rc == 0 ) ;\n if ( ! opt_silent ) {\n fprintf ( stdout , \"\\n data (tiny) : %s(%lu)\" , t_data , length [ 0 ] ) ;\n fprintf ( stdout , \"\\n data (short) : %f(%lu)\" , s_data , length [ 1 ] ) ;\n fprintf ( stdout , \"\\n data (int) : %d(%lu)\" , i_data , length [ 2 ] ) ;\n fprintf ( stdout , \"\\n data (big) : %d(%lu)\" , b_data , length [ 3 ] ) ;\n fprintf ( stdout , \"\\n data (float) : %d(%lu)\" , f_data , length [ 4 ] ) ;\n fprintf ( stdout , \"\\n data (double) : %s(%lu)\" , d_data , length [ 5 ] ) ;\n fprintf ( stdout , \"\\n data (bin) : %ld(%lu)\" , bData , length [ 6 ] ) ;\n fprintf ( stdout , \"\\n data (str) : %g(%lu)\" , szData , length [ 7 ] ) ;\n }\n DIE_UNLESS ( strcmp ( t_data , \"120\" ) == 0 ) ;\n DIE_UNLESS ( i_data == 3999 ) ;\n DIE_UNLESS ( f_data == 2 ) ;\n DIE_UNLESS ( strcmp ( d_data , \"58.89\" ) == 0 ) ;\n DIE_UNLESS ( b_data == 54 ) ;\n DIE_UNLESS ( length [ 0 ] == 3 ) ;\n DIE_UNLESS ( length [ 1 ] == 4 ) ;\n DIE_UNLESS ( length [ 2 ] == 2 ) ;\n DIE_UNLESS ( length [ 3 ] == 1 ) ;\n DIE_UNLESS ( length [ 4 ] == 4 ) ;\n DIE_UNLESS ( length [ 5 ] == 5 ) ;\n DIE_UNLESS ( length [ 6 ] == 4 ) ;\n DIE_UNLESS ( length [ 7 ] == 8 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 13159, "target": 0, "func": "static int vp8_alloc_partition_data ( VP8_COMP * cpi ) {\n vpx_free ( cpi -> mb . pip ) ;\n cpi -> mb . pip = vpx_calloc ( ( cpi -> common . mb_cols + 1 ) * ( cpi -> common . mb_rows + 1 ) , sizeof ( PARTITION_INFO ) ) ;\n if ( ! cpi -> mb . pip ) return 1 ;\n cpi -> mb . pi = cpi -> mb . pip + cpi -> common . mode_info_stride + 1 ;\n return 0 ;\n }"}
{"idx": 13160, "target": 0, "func": "int test_mul ( BIO * bp ) {\n BIGNUM a , b , c , d , e ;\n int i ;\n BN_CTX * ctx ;\n ctx = BN_CTX_new ( ) ;\n if ( ctx == NULL ) EXIT ( 1 ) ;\n BN_init ( & a ) ;\n BN_init ( & b ) ;\n BN_init ( & c ) ;\n BN_init ( & d ) ;\n BN_init ( & e ) ;\n for ( i = 0 ;\n i < num0 + num1 ;\n i ++ ) {\n if ( i <= num1 ) {\n BN_bntest_rand ( & a , 100 , 0 , 0 ) ;\n BN_bntest_rand ( & b , 100 , 0 , 0 ) ;\n }\n else BN_bntest_rand ( & b , i - num1 , 0 , 0 ) ;\n a . neg = rand_neg ( ) ;\n b . neg = rand_neg ( ) ;\n BN_mul ( & c , & a , & b , ctx ) ;\n if ( bp != NULL ) {\n if ( ! results ) {\n BN_print ( bp , & a ) ;\n BIO_puts ( bp , \" * \" ) ;\n BN_print ( bp , & b ) ;\n BIO_puts ( bp , \" - \" ) ;\n }\n BN_print ( bp , & c ) ;\n BIO_puts ( bp , \"\\n\" ) ;\n }\n BN_div ( & d , & e , & c , & a , ctx ) ;\n BN_sub ( & d , & d , & b ) ;\n if ( ! BN_is_zero ( & d ) || ! BN_is_zero ( & e ) ) {\n fprintf ( stderr , \"Multiplication test failed!\\n\" ) ;\n return 0 ;\n }\n }\n BN_free ( & a ) ;\n BN_free ( & b ) ;\n BN_free ( & c ) ;\n BN_free ( & d ) ;\n BN_free ( & e ) ;\n BN_CTX_free ( ctx ) ;\n return ( 1 ) ;\n }"}
{"idx": 13161, "target": 1, "func": "void vp9_iht8x8_add ( TX_TYPE tx_type , const int16_t * input , uint8_t * dest , int stride , int eob ) {\n if ( tx_type == DCT_DCT ) {\n vp9_idct8x8_add ( input , dest , stride , eob ) ;\n }\n else {\n vp9_iht8x8_64_add ( input , dest , stride , tx_type ) ;\n }\n }"}
{"idx": 13162, "target": 0, "func": "static void vvalue_strbuf_append_r4 ( wmem_strbuf_t * strbuf , void * ptr ) {\n float r4 = * ( float * ) ptr ;\n wmem_strbuf_append_printf ( strbuf , \"%g\" , ( double ) r4 ) ;\n }"}
{"idx": 13163, "target": 0, "func": "const char * cpio_i64toa ( int64_t n0 ) {\n static char buff [ 22 ] ;\n int64_t n = n0 < 0 ? - n0 : n0 ;\n char * p = buff + sizeof ( buff ) ;\n * -- p = '\\0' ;\n do {\n * -- p = '0' + ( int ) ( n % 10 ) ;\n n /= 10 ;\n }\n while ( n > 0 ) ;\n if ( n0 < 0 ) * -- p = '-' ;\n return p ;\n }"}
{"idx": 13164, "target": 0, "func": "static int AssignTTFGlyph ( struct glyphinfo * gi , SplineFont * sf , EncMap * map , int iscff ) {\n int * bygid = malloc ( ( sf -> glyphcnt + 3 ) * sizeof ( int ) ) ;\n int i , j ;\n memset ( bygid , 0xff , ( sf -> glyphcnt + 3 ) * sizeof ( int ) ) ;\n AssignNotdefNull ( sf , bygid , iscff ) ;\n j = iscff ? 1 : 3 ;\n for ( i = 0 ;\n i < map -> enccount ;\n ++ i ) if ( map -> map [ i ] != - 1 ) {\n SplineChar * sc = sf -> glyphs [ map -> map [ i ] ] ;\n if ( SCWorthOutputting ( sc ) && sc -> ttf_glyph == - 1 # if HANYANG && ( ! iscff || ! sc -> compositionunit ) # endif ) {\n sc -> ttf_glyph = j ;\n bygid [ j ++ ] = sc -> orig_pos ;\n }\n }\n for ( i = 0 ;\n i < sf -> glyphcnt ;\n ++ i ) if ( sf -> glyphs [ i ] != NULL ) {\n SplineChar * sc = sf -> glyphs [ i ] ;\n if ( SCWorthOutputting ( sc ) && sc -> ttf_glyph == - 1 # if HANYANG && ( ! iscff || ! sc -> compositionunit ) # endif ) {\n sc -> ttf_glyph = j ;\n bygid [ j ++ ] = i ;\n }\n }\n gi -> bygid = bygid ;\n gi -> gcnt = j ;\n return j ;\n }"}
{"idx": 13165, "target": 0, "func": "static struct async * async_getpending ( struct usb_dev_state * ps , void __user * userurb ) {\n struct async * as ;\n list_for_each_entry ( as , & ps -> async_pending , asynclist ) if ( as -> userurb == userurb ) {\n list_del_init ( & as -> asynclist ) ;\n return as ;\n }\n return NULL ;\n }"}
{"idx": 13166, "target": 1, "func": "static int seqvideo_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n SeqVideoContext * seq = avctx -> priv_data ;\n seq -> frame . reference = 1 ;\n seq -> frame . buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE ;\n if ( avctx -> reget_buffer ( avctx , & seq -> frame ) ) {\n av_log ( seq -> avctx , AV_LOG_ERROR , \"tiertexseqvideo: reget_buffer() failed\\n\" ) ;\n return - 1 ;\n }\n if ( seqvideo_decode ( seq , buf , buf_size ) ) return AVERROR_INVALIDDATA ;\n * got_frame = 1 ;\n * ( AVFrame * ) data = seq -> frame ;\n return buf_size ;\n }"}
{"idx": 13167, "target": 0, "func": "static void dissect_fpdu_markers ( tvbuff_t * tvb , proto_tree * tree , mpa_state_t * state , struct tcpinfo * tcpinfo , guint8 endpoint ) {\n proto_tree * mpa_marker_tree ;\n proto_item * mpa_marker_item ;\n guint32 offset , i ;\n mpa_marker_item = proto_tree_add_item ( tree , hf_mpa_marker , tvb , 0 , - 1 , ENC_NA ) ;\n mpa_marker_tree = proto_item_add_subtree ( mpa_marker_item , ett_mpa ) ;\n offset = get_first_marker_offset ( state , tcpinfo , endpoint ) ;\n for ( i = 0 ;\n i < number_of_markers ( state , tcpinfo , endpoint ) ;\n i ++ ) {\n proto_tree_add_item ( mpa_marker_tree , hf_mpa_marker_res , tvb , offset , MPA_MARKER_RSVD_LEN , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( mpa_marker_tree , hf_mpa_marker_fpduptr , tvb , offset + MPA_MARKER_RSVD_LEN , MPA_MARKER_FPDUPTR_LEN , ENC_BIG_ENDIAN ) ;\n offset += MPA_MARKER_INTERVAL ;\n }\n }"}
{"idx": 13168, "target": 0, "func": "static void report_preparing_link_progress ( CopyMoveJob * link_job , int total , int left ) {\n CommonJob * job ;\n job = ( CommonJob * ) link_job ;\n nautilus_progress_info_take_status ( job -> progress , f ( _ ( \"Creating links in \u201c%B\u201d\" ) , link_job -> destination ) ) ;\n nautilus_progress_info_take_details ( job -> progress , f ( ngettext ( \"Making link to %'d file\" , \"Making links to %'d files\" , left ) , left ) ) ;\n nautilus_progress_info_set_progress ( job -> progress , left , total ) ;\n }"}
{"idx": 13169, "target": 0, "func": "TSReturnCode TSCacheKeyDestroy ( TSCacheKey key ) {\n sdk_assert ( sdk_sanity_check_cachekey ( key ) == TS_SUCCESS ) ;\n if ( ( ( CacheInfo * ) key ) -> magic != CACHE_INFO_MAGIC_ALIVE ) {\n return TS_ERROR ;\n }\n CacheInfo * i = ( CacheInfo * ) key ;\n ats_free ( i -> hostname ) ;\n i -> magic = CACHE_INFO_MAGIC_DEAD ;\n delete i ;\n return TS_SUCCESS ;\n }"}
{"idx": 13170, "target": 0, "func": "static void roq_write_video_info_chunk ( RoqContext * enc ) {\n bytestream_put_le16 ( & enc -> out_buf , RoQ_INFO ) ;\n bytestream_put_le32 ( & enc -> out_buf , 8 ) ;\n bytestream_put_byte ( & enc -> out_buf , 0x00 ) ;\n bytestream_put_byte ( & enc -> out_buf , 0x00 ) ;\n bytestream_put_le16 ( & enc -> out_buf , enc -> width ) ;\n bytestream_put_le16 ( & enc -> out_buf , enc -> height ) ;\n bytestream_put_byte ( & enc -> out_buf , 0x08 ) ;\n bytestream_put_byte ( & enc -> out_buf , 0x00 ) ;\n bytestream_put_byte ( & enc -> out_buf , 0x04 ) ;\n bytestream_put_byte ( & enc -> out_buf , 0x00 ) ;\n }"}
{"idx": 13171, "target": 0, "func": "int TSUrlPortGet ( TSMBuffer bufp , TSMLoc obj ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_url_handle ( obj ) == TS_SUCCESS ) ;\n URL u ;\n u . m_heap = ( ( HdrHeapSDKHandle * ) bufp ) -> m_heap ;\n u . m_url_impl = ( URLImpl * ) obj ;\n return u . port_get ( ) ;\n }"}
{"idx": 13172, "target": 0, "func": "void config_connections_destroy_all ( void ) {\n while ( config_connections != NULL ) config_connection_destroy ( config_connections ) ;\n }"}
{"idx": 13173, "target": 0, "func": "static void set_block_size ( VP9_COMP * const cpi , int mi_row , int mi_col , BLOCK_SIZE bsize ) {\n if ( cpi -> common . mi_cols > mi_col && cpi -> common . mi_rows > mi_row ) {\n MACROBLOCKD * const xd = & cpi -> mb . e_mbd ;\n set_modeinfo_offsets ( & cpi -> common , xd , mi_row , mi_col ) ;\n xd -> mi [ 0 ] . src_mi -> mbmi . sb_type = bsize ;\n duplicate_mode_info_in_sb ( & cpi -> common , xd , mi_row , mi_col , bsize ) ;\n }\n }"}
{"idx": 13174, "target": 0, "func": "static void rv34_mc_1mv ( RV34DecContext * r , const int block_type , const int xoff , const int yoff , int mv_off , const int width , const int height , int dir ) {\n rv34_mc ( r , block_type , xoff , yoff , mv_off , width , height , dir , r -> rv30 , 0 , r -> rdsp . put_pixels_tab , r -> rdsp . put_chroma_pixels_tab ) ;\n }"}
{"idx": 13175, "target": 0, "func": "static void thumbnail_read_callback ( GObject * source_object , GAsyncResult * res , gpointer user_data ) {\n ThumbnailState * state ;\n gsize file_size ;\n char * file_contents ;\n gboolean result ;\n NautilusDirectory * directory ;\n GdkPixbuf * pixbuf ;\n GFile * location ;\n state = user_data ;\n if ( state -> directory == NULL ) {\n thumbnail_state_free ( state ) ;\n return ;\n }\n directory = nautilus_directory_ref ( state -> directory ) ;\n result = g_file_load_contents_finish ( G_FILE ( source_object ) , res , & file_contents , & file_size , NULL , NULL ) ;\n pixbuf = NULL ;\n if ( result ) {\n pixbuf = get_pixbuf_for_content ( file_size , file_contents ) ;\n g_free ( file_contents ) ;\n }\n if ( pixbuf == NULL && state -> trying_original ) {\n state -> trying_original = FALSE ;\n location = g_file_new_for_path ( state -> file -> details -> thumbnail_path ) ;\n g_file_load_contents_async ( location , state -> cancellable , thumbnail_read_callback , state ) ;\n g_object_unref ( location ) ;\n }\n else {\n state -> directory -> details -> thumbnail_state = NULL ;\n async_job_end ( state -> directory , \"thumbnail\" ) ;\n thumbnail_got_pixbuf ( state -> directory , state -> file , pixbuf , state -> tried_original ) ;\n thumbnail_state_free ( state ) ;\n }\n nautilus_directory_unref ( directory ) ;\n }"}
{"idx": 13176, "target": 0, "func": "static Datum ExecEvalFunc ( FuncExprState * fcache , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n FuncExpr * func = ( FuncExpr * ) fcache -> xprstate . expr ;\n init_fcache ( func -> funcid , func -> inputcollid , fcache , econtext -> ecxt_per_query_memory , true ) ;\n if ( fcache -> func . fn_retset || expression_returns_set ( ( Node * ) func -> args ) ) {\n fcache -> xprstate . evalfunc = ( ExprStateEvalFunc ) ExecMakeFunctionResult ;\n return ExecMakeFunctionResult ( fcache , econtext , isNull , isDone ) ;\n }\n else {\n fcache -> xprstate . evalfunc = ( ExprStateEvalFunc ) ExecMakeFunctionResultNoSets ;\n return ExecMakeFunctionResultNoSets ( fcache , econtext , isNull , isDone ) ;\n }\n }"}
{"idx": 13177, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( HttpsEngagementPageLoadMetricsBrowserTest , Navigate_Both_NonHtmlMainResource ) {\n StartHttpServer ( ) ;\n StartHttpsServer ( false ) ;\n NavigateTwiceInTabAndClose ( http_test_server_ -> GetURL ( \"/circle.svg\" ) , https_test_server_ -> GetURL ( \"/circle.svg\" ) ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpEngagementHistogram , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementHistogram , 1 ) ;\n FakeUserMetricsUpload ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementSessionPercentage , 1 ) ;\n int32_t ratio_bucket = histogram_tester_ . GetAllSamples ( internal : : kHttpsEngagementSessionPercentage ) [ 0 ] . min ;\n EXPECT_GT ( 100 , ratio_bucket ) ;\n EXPECT_LT ( 0 , ratio_bucket ) ;\n }"}
{"idx": 13178, "target": 0, "func": "static int slice_decode_thread ( AVCodecContext * c , void * arg ) {\n MpegEncContext * s = * ( void * * ) arg ;\n const uint8_t * buf = s -> gb . buffer ;\n int mb_y = s -> start_mb_y ;\n const int field_pic = s -> picture_structure != PICT_FRAME ;\n s -> er . error_count = ( 3 * ( s -> end_mb_y - s -> start_mb_y ) * s -> mb_width ) >> field_pic ;\n for ( ;\n ;\n ) {\n uint32_t start_code ;\n int ret ;\n ret = mpeg_decode_slice ( s , mb_y , & buf , s -> gb . buffer_end - buf ) ;\n emms_c ( ) ;\n av_dlog ( c , \"ret:%d resync:%d/%d mb:%d/%d ts:%d/%d ec:%d\\n\" , ret , s -> resync_mb_x , s -> resync_mb_y , s -> mb_x , s -> mb_y , s -> start_mb_y , s -> end_mb_y , s -> er . error_count ) ;\n if ( ret < 0 ) {\n if ( c -> err_recognition & AV_EF_EXPLODE ) return ret ;\n if ( s -> resync_mb_x >= 0 && s -> resync_mb_y >= 0 ) ff_er_add_slice ( & s -> er , s -> resync_mb_x , s -> resync_mb_y , s -> mb_x , s -> mb_y , ER_AC_ERROR | ER_DC_ERROR | ER_MV_ERROR ) ;\n }\n else {\n ff_er_add_slice ( & s -> er , s -> resync_mb_x , s -> resync_mb_y , s -> mb_x - 1 , s -> mb_y , ER_AC_END | ER_DC_END | ER_MV_END ) ;\n }\n if ( s -> mb_y == s -> end_mb_y ) return 0 ;\n start_code = - 1 ;\n buf = avpriv_mpv_find_start_code ( buf , s -> gb . buffer_end , & start_code ) ;\n mb_y = ( start_code - SLICE_MIN_START_CODE ) << field_pic ;\n if ( s -> picture_structure == PICT_BOTTOM_FIELD ) mb_y ++ ;\n if ( mb_y < 0 || mb_y >= s -> end_mb_y ) return - 1 ;\n }\n }"}
{"idx": 13179, "target": 1, "func": "void vp9_iht16x16_256_add_c ( const int16_t * input , uint8_t * dest , int stride , int tx_type ) {\n int i , j ;\n int16_t out [ 16 * 16 ] ;\n int16_t * outptr = out ;\n int16_t temp_in [ 16 ] , temp_out [ 16 ] ;\n const transform_2d ht = IHT_16 [ tx_type ] ;\n for ( i = 0 ;\n i < 16 ;\n ++ i ) {\n ht . rows ( input , outptr ) ;\n input += 16 ;\n outptr += 16 ;\n }\n for ( i = 0 ;\n i < 16 ;\n ++ i ) {\n for ( j = 0 ;\n j < 16 ;\n ++ j ) temp_in [ j ] = out [ j * 16 + i ] ;\n ht . cols ( temp_in , temp_out ) ;\n for ( j = 0 ;\n j < 16 ;\n ++ j ) dest [ j * stride + i ] = clip_pixel ( ROUND_POWER_OF_TWO ( temp_out [ j ] , 6 ) + dest [ j * stride + i ] ) ;\n }\n }"}
{"idx": 13180, "target": 0, "func": "void TSHttpTxnRespCacheableSet ( TSHttpTxn txnp , int flag ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n sm -> t_state . api_resp_cacheable = ( flag != 0 ) ;\n }"}
{"idx": 13181, "target": 0, "func": "static ossl_inline int lh_ ## type ## _error ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_error ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _num_items ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_num_items ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _node_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _node_usage_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_usage_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING )"}
{"idx": 13182, "target": 0, "func": "int evbuffer_add ( struct evbuffer * buf , const void * data , size_t datlen ) {\n size_t used = buf -> misalign + buf -> off ;\n size_t oldoff = buf -> off ;\n if ( buf -> totallen - used < datlen ) {\n if ( evbuffer_expand ( buf , datlen ) == - 1 ) return ( - 1 ) ;\n }\n memcpy ( buf -> buffer + buf -> off , data , datlen ) ;\n buf -> off += datlen ;\n if ( datlen && buf -> cb != NULL ) ( * buf -> cb ) ( buf , oldoff , buf -> off , buf -> cbarg ) ;\n return ( 0 ) ;\n }"}
{"idx": 13183, "target": 0, "func": "rfbBool rfbSendFramebufferUpdate ( rfbClientPtr cl , sraRegionPtr givenUpdateRegion ) {\n sraRectangleIterator * i = NULL ;\n sraRect rect ;\n int nUpdateRegionRects ;\n rfbFramebufferUpdateMsg * fu = ( rfbFramebufferUpdateMsg * ) cl -> updateBuf ;\n sraRegionPtr updateRegion , updateCopyRegion , tmpRegion ;\n int dx , dy ;\n rfbBool sendCursorShape = FALSE ;\n rfbBool sendCursorPos = FALSE ;\n rfbBool sendKeyboardLedState = FALSE ;\n rfbBool sendSupportedMessages = FALSE ;\n rfbBool sendSupportedEncodings = FALSE ;\n rfbBool sendServerIdentity = FALSE ;\n rfbBool result = TRUE ;\n if ( cl -> screen -> displayHook ) cl -> screen -> displayHook ( cl ) ;\n if ( cl -> useNewFBSize && cl -> newFBSizePending ) {\n LOCK ( cl -> updateMutex ) ;\n cl -> newFBSizePending = FALSE ;\n UNLOCK ( cl -> updateMutex ) ;\n fu -> type = rfbFramebufferUpdate ;\n fu -> nRects = Swap16IfLE ( 1 ) ;\n cl -> ublen = sz_rfbFramebufferUpdateMsg ;\n if ( ! rfbSendNewFBSize ( cl , cl -> scaledScreen -> width , cl -> scaledScreen -> height ) ) {\n if ( cl -> screen -> displayFinishedHook ) cl -> screen -> displayFinishedHook ( cl , FALSE ) ;\n return FALSE ;\n }\n result = rfbSendUpdateBuf ( cl ) ;\n if ( cl -> screen -> displayFinishedHook ) cl -> screen -> displayFinishedHook ( cl , result ) ;\n return result ;\n }\n if ( cl -> enableCursorShapeUpdates ) {\n if ( cl -> cursorWasChanged && cl -> readyForSetColourMapEntries ) sendCursorShape = TRUE ;\n }\n if ( cl -> enableCursorPosUpdates && cl -> cursorWasMoved ) sendCursorPos = TRUE ;\n if ( ( cl -> enableKeyboardLedState ) && ( cl -> screen -> getKeyboardLedStateHook != NULL ) ) {\n int x ;\n x = cl -> screen -> getKeyboardLedStateHook ( cl -> screen ) ;\n if ( x != cl -> lastKeyboardLedState ) {\n sendKeyboardLedState = TRUE ;\n cl -> lastKeyboardLedState = x ;\n }\n }\n if ( cl -> enableSupportedMessages ) {\n sendSupportedMessages = TRUE ;\n cl -> enableSupportedMessages = FALSE ;\n }\n if ( cl -> enableSupportedEncodings ) {\n sendSupportedEncodings = TRUE ;\n cl -> enableSupportedEncodings = FALSE ;\n }\n if ( cl -> enableServerIdentity ) {\n sendServerIdentity = TRUE ;\n cl -> enableServerIdentity = FALSE ;\n }\n LOCK ( cl -> updateMutex ) ;\n sraRgnSubtract ( cl -> copyRegion , cl -> modifiedRegion ) ;\n updateRegion = sraRgnCreateRgn ( givenUpdateRegion ) ;\n if ( cl -> screen -> progressiveSliceHeight > 0 ) {\n int height = cl -> screen -> progressiveSliceHeight , y = cl -> progressiveSliceY ;\n sraRegionPtr bbox = sraRgnBBox ( updateRegion ) ;\n sraRect rect ;\n if ( sraRgnPopRect ( bbox , & rect , 0 ) ) {\n sraRegionPtr slice ;\n if ( y < rect . y1 || y >= rect . y2 ) y = rect . y1 ;\n slice = sraRgnCreateRect ( 0 , y , cl -> screen -> width , y + height ) ;\n sraRgnAnd ( updateRegion , slice ) ;\n sraRgnDestroy ( slice ) ;\n }\n sraRgnDestroy ( bbox ) ;\n y += height ;\n if ( y >= cl -> screen -> height ) y = 0 ;\n cl -> progressiveSliceY = y ;\n }\n sraRgnOr ( updateRegion , cl -> copyRegion ) ;\n if ( ! sraRgnAnd ( updateRegion , cl -> requestedRegion ) && sraRgnEmpty ( updateRegion ) && ( cl -> enableCursorShapeUpdates || ( cl -> cursorX == cl -> screen -> cursorX && cl -> cursorY == cl -> screen -> cursorY ) ) && ! sendCursorShape && ! sendCursorPos && ! sendKeyboardLedState && ! sendSupportedMessages && ! sendSupportedEncodings && ! sendServerIdentity ) {\n sraRgnDestroy ( updateRegion ) ;\n UNLOCK ( cl -> updateMutex ) ;\n if ( cl -> screen -> displayFinishedHook ) cl -> screen -> displayFinishedHook ( cl , TRUE ) ;\n return TRUE ;\n }\n updateCopyRegion = sraRgnCreateRgn ( cl -> copyRegion ) ;\n sraRgnAnd ( updateCopyRegion , cl -> requestedRegion ) ;\n tmpRegion = sraRgnCreateRgn ( cl -> requestedRegion ) ;\n sraRgnOffset ( tmpRegion , cl -> copyDX , cl -> copyDY ) ;\n sraRgnAnd ( updateCopyRegion , tmpRegion ) ;\n sraRgnDestroy ( tmpRegion ) ;\n dx = cl -> copyDX ;\n dy = cl -> copyDY ;\n sraRgnSubtract ( updateRegion , updateCopyRegion ) ;\n sraRgnOr ( cl -> modifiedRegion , cl -> copyRegion ) ;\n sraRgnSubtract ( cl -> modifiedRegion , updateRegion ) ;\n sraRgnSubtract ( cl -> modifiedRegion , updateCopyRegion ) ;\n sraRgnMakeEmpty ( cl -> requestedRegion ) ;\n sraRgnMakeEmpty ( cl -> copyRegion ) ;\n cl -> copyDX = 0 ;\n cl -> copyDY = 0 ;\n UNLOCK ( cl -> updateMutex ) ;\n if ( ! cl -> enableCursorShapeUpdates ) {\n if ( cl -> cursorX != cl -> screen -> cursorX || cl -> cursorY != cl -> screen -> cursorY ) {\n rfbRedrawAfterHideCursor ( cl , updateRegion ) ;\n LOCK ( cl -> screen -> cursorMutex ) ;\n cl -> cursorX = cl -> screen -> cursorX ;\n cl -> cursorY = cl -> screen -> cursorY ;\n UNLOCK ( cl -> screen -> cursorMutex ) ;\n rfbRedrawAfterHideCursor ( cl , updateRegion ) ;\n }\n rfbShowCursor ( cl ) ;\n }\n rfbStatRecordMessageSent ( cl , rfbFramebufferUpdate , 0 , 0 ) ;\n if ( cl -> preferredEncoding == rfbEncodingCoRRE ) {\n nUpdateRegionRects = 0 ;\n for ( i = sraRgnGetIterator ( updateRegion ) ;\n sraRgnIteratorNext ( i , & rect ) ;\n ) {\n int x = rect . x1 ;\n int y = rect . y1 ;\n int w = rect . x2 - x ;\n int h = rect . y2 - y ;\n int rectsPerRow , rows ;\n if ( cl -> screen != cl -> scaledScreen ) rfbScaledCorrection ( cl -> screen , cl -> scaledScreen , & x , & y , & w , & h , \"rfbSendFramebufferUpdate\" ) ;\n rectsPerRow = ( w - 1 ) / cl -> correMaxWidth + 1 ;\n rows = ( h - 1 ) / cl -> correMaxHeight + 1 ;\n nUpdateRegionRects += rectsPerRow * rows ;\n }\n sraRgnReleaseIterator ( i ) ;\n i = NULL ;\n }\n else if ( cl -> preferredEncoding == rfbEncodingUltra ) {\n nUpdateRegionRects = 0 ;\n for ( i = sraRgnGetIterator ( updateRegion ) ;\n sraRgnIteratorNext ( i , & rect ) ;\n ) {\n int x = rect . x1 ;\n int y = rect . y1 ;\n int w = rect . x2 - x ;\n int h = rect . y2 - y ;\n if ( cl -> screen != cl -> scaledScreen ) rfbScaledCorrection ( cl -> screen , cl -> scaledScreen , & x , & y , & w , & h , \"rfbSendFramebufferUpdate\" ) ;\n nUpdateRegionRects += ( ( ( h - 1 ) / ( ULTRA_MAX_SIZE ( w ) / w ) ) + 1 ) ;\n }\n sraRgnReleaseIterator ( i ) ;\n i = NULL ;\n # ifdef LIBVNCSERVER_HAVE_LIBZ }\n else if ( cl -> preferredEncoding == rfbEncodingZlib ) {\n nUpdateRegionRects = 0 ;\n for ( i = sraRgnGetIterator ( updateRegion ) ;\n sraRgnIteratorNext ( i , & rect ) ;\n ) {\n int x = rect . x1 ;\n int y = rect . y1 ;\n int w = rect . x2 - x ;\n int h = rect . y2 - y ;\n if ( cl -> screen != cl -> scaledScreen ) rfbScaledCorrection ( cl -> screen , cl -> scaledScreen , & x , & y , & w , & h , \"rfbSendFramebufferUpdate\" ) ;\n nUpdateRegionRects += ( ( ( h - 1 ) / ( ZLIB_MAX_SIZE ( w ) / w ) ) + 1 ) ;\n }\n sraRgnReleaseIterator ( i ) ;\n i = NULL ;\n # ifdef LIBVNCSERVER_HAVE_LIBJPEG }\n else if ( cl -> preferredEncoding == rfbEncodingTight ) {\n nUpdateRegionRects = 0 ;\n for ( i = sraRgnGetIterator ( updateRegion ) ;\n sraRgnIteratorNext ( i , & rect ) ;\n ) {\n int x = rect . x1 ;\n int y = rect . y1 ;\n int w = rect . x2 - x ;\n int h = rect . y2 - y ;\n int n ;\n if ( cl -> screen != cl -> scaledScreen ) rfbScaledCorrection ( cl -> screen , cl -> scaledScreen , & x , & y , & w , & h , \"rfbSendFramebufferUpdate\" ) ;\n n = rfbNumCodedRectsTight ( cl , x , y , w , h ) ;\n if ( n == 0 ) {\n nUpdateRegionRects = 0xFFFF ;\n break ;\n }\n nUpdateRegionRects += n ;\n }\n sraRgnReleaseIterator ( i ) ;\n i = NULL ;\n # endif # endif # if defined ( LIBVNCSERVER_HAVE_LIBJPEG ) && defined ( LIBVNCSERVER_HAVE_LIBPNG ) }\n else if ( cl -> preferredEncoding == rfbEncodingTightPng ) {\n nUpdateRegionRects = 0 ;\n for ( i = sraRgnGetIterator ( updateRegion ) ;\n sraRgnIteratorNext ( i , & rect ) ;\n ) {\n int x = rect . x1 ;\n int y = rect . y1 ;\n int w = rect . x2 - x ;\n int h = rect . y2 - y ;\n int n ;\n if ( cl -> screen != cl -> scaledScreen ) rfbScaledCorrection ( cl -> screen , cl -> scaledScreen , & x , & y , & w , & h , \"rfbSendFramebufferUpdate\" ) ;\n n = rfbNumCodedRectsTight ( cl , x , y , w , h ) ;\n if ( n == 0 ) {\n nUpdateRegionRects = 0xFFFF ;\n break ;\n }\n nUpdateRegionRects += n ;\n }\n sraRgnReleaseIterator ( i ) ;\n i = NULL ;\n # endif }\n else {\n nUpdateRegionRects = sraRgnCountRects ( updateRegion ) ;\n }\n fu -> type = rfbFramebufferUpdate ;\n if ( nUpdateRegionRects != 0xFFFF ) {\n if ( cl -> screen -> maxRectsPerUpdate > 0 && cl -> preferredEncoding != rfbEncodingCoRRE && cl -> preferredEncoding != rfbEncodingUltra # ifdef LIBVNCSERVER_HAVE_LIBZ && cl -> preferredEncoding != rfbEncodingZlib # ifdef LIBVNCSERVER_HAVE_LIBJPEG && cl -> preferredEncoding != rfbEncodingTight # endif # endif # ifdef LIBVNCSERVER_HAVE_LIBPNG && cl -> preferredEncoding != rfbEncodingTightPng # endif && nUpdateRegionRects > cl -> screen -> maxRectsPerUpdate ) {\n sraRegion * newUpdateRegion = sraRgnBBox ( updateRegion ) ;\n sraRgnDestroy ( updateRegion ) ;\n updateRegion = newUpdateRegion ;\n nUpdateRegionRects = sraRgnCountRects ( updateRegion ) ;\n }\n fu -> nRects = Swap16IfLE ( ( uint16_t ) ( sraRgnCountRects ( updateCopyRegion ) + nUpdateRegionRects + ! ! sendCursorShape + ! ! sendCursorPos + ! ! sendKeyboardLedState + ! ! sendSupportedMessages + ! ! sendSupportedEncodings + ! ! sendServerIdentity ) ) ;\n }\n else {\n fu -> nRects = 0xFFFF ;\n }\n cl -> ublen = sz_rfbFramebufferUpdateMsg ;\n if ( sendCursorShape ) {\n cl -> cursorWasChanged = FALSE ;\n if ( ! rfbSendCursorShape ( cl ) ) goto updateFailed ;\n }\n if ( sendCursorPos ) {\n cl -> cursorWasMoved = FALSE ;\n if ( ! rfbSendCursorPos ( cl ) ) goto updateFailed ;\n }\n if ( sendKeyboardLedState ) {\n if ( ! rfbSendKeyboardLedState ( cl ) ) goto updateFailed ;\n }\n if ( sendSupportedMessages ) {\n if ( ! rfbSendSupportedMessages ( cl ) ) goto updateFailed ;\n }\n if ( sendSupportedEncodings ) {\n if ( ! rfbSendSupportedEncodings ( cl ) ) goto updateFailed ;\n }\n if ( sendServerIdentity ) {\n if ( ! rfbSendServerIdentity ( cl ) ) goto updateFailed ;\n }\n if ( ! sraRgnEmpty ( updateCopyRegion ) ) {\n if ( ! rfbSendCopyRegion ( cl , updateCopyRegion , dx , dy ) ) goto updateFailed ;\n }\n for ( i = sraRgnGetIterator ( updateRegion ) ;\n sraRgnIteratorNext ( i , & rect ) ;\n ) {\n int x = rect . x1 ;\n int y = rect . y1 ;\n int w = rect . x2 - x ;\n int h = rect . y2 - y ;\n if ( cl -> screen != cl -> scaledScreen ) rfbScaledCorrection ( cl -> screen , cl -> scaledScreen , & x , & y , & w , & h , \"rfbSendFramebufferUpdate\" ) ;\n switch ( cl -> preferredEncoding ) {\n case - 1 : case rfbEncodingRaw : if ( ! rfbSendRectEncodingRaw ( cl , x , y , w , h ) ) goto updateFailed ;\n break ;\n case rfbEncodingRRE : if ( ! rfbSendRectEncodingRRE ( cl , x , y , w , h ) ) goto updateFailed ;\n break ;\n case rfbEncodingCoRRE : if ( ! rfbSendRectEncodingCoRRE ( cl , x , y , w , h ) ) goto updateFailed ;\n break ;\n case rfbEncodingHextile : if ( ! rfbSendRectEncodingHextile ( cl , x , y , w , h ) ) goto updateFailed ;\n break ;\n case rfbEncodingUltra : if ( ! rfbSendRectEncodingUltra ( cl , x , y , w , h ) ) goto updateFailed ;\n break ;\n # ifdef LIBVNCSERVER_HAVE_LIBZ case rfbEncodingZlib : if ( ! rfbSendRectEncodingZlib ( cl , x , y , w , h ) ) goto updateFailed ;\n break ;\n case rfbEncodingZRLE : case rfbEncodingZYWRLE : if ( ! rfbSendRectEncodingZRLE ( cl , x , y , w , h ) ) goto updateFailed ;\n break ;\n # endif # if defined ( LIBVNCSERVER_HAVE_LIBJPEG ) && ( defined ( LIBVNCSERVER_HAVE_LIBZ ) || defined ( LIBVNCSERVER_HAVE_LIBPNG ) ) case rfbEncodingTight : if ( ! rfbSendRectEncodingTight ( cl , x , y , w , h ) ) goto updateFailed ;\n break ;\n # ifdef LIBVNCSERVER_HAVE_LIBPNG case rfbEncodingTightPng : if ( ! rfbSendRectEncodingTightPng ( cl , x , y , w , h ) ) goto updateFailed ;\n break ;\n # endif # endif }\n }\n if ( i ) {\n sraRgnReleaseIterator ( i ) ;\n i = NULL ;\n }\n if ( nUpdateRegionRects == 0xFFFF && ! rfbSendLastRectMarker ( cl ) ) goto updateFailed ;\n if ( ! rfbSendUpdateBuf ( cl ) ) {\n updateFailed : result = FALSE ;\n }\n if ( ! cl -> enableCursorShapeUpdates ) {\n rfbHideCursor ( cl ) ;\n }\n if ( i ) sraRgnReleaseIterator ( i ) ;\n sraRgnDestroy ( updateRegion ) ;\n sraRgnDestroy ( updateCopyRegion ) ;\n if ( cl -> screen -> displayFinishedHook ) cl -> screen -> displayFinishedHook ( cl , result ) ;\n return result ;\n }"}
{"idx": 13184, "target": 0, "func": "int jas_stream_read ( jas_stream_t * stream , void * buf , int cnt ) {\n int n ;\n int c ;\n char * bufptr ;\n bufptr = buf ;\n n = 0 ;\n while ( n < cnt ) {\n if ( ( c = jas_stream_getc ( stream ) ) == EOF ) {\n return n ;\n }\n * bufptr ++ = c ;\n ++ n ;\n }\n return n ;\n }"}
{"idx": 13185, "target": 0, "func": "static int dissect_h225_T120OnlyCaps ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_T120OnlyCaps , T120OnlyCaps_sequence ) ;\n return offset ;\n }"}
{"idx": 13186, "target": 0, "func": "static void test_simpleread ( void ) {\n struct event ev ;\n setup_test ( \"Simple read: \" ) ;\n write ( pair [ 0 ] , TEST1 , strlen ( TEST1 ) + 1 ) ;\n shutdown ( pair [ 0 ] , SHUT_WR ) ;\n event_set ( & ev , pair [ 1 ] , EV_READ , simple_read_cb , & ev ) ;\n if ( event_add ( & ev , NULL ) == - 1 ) exit ( 1 ) ;\n event_dispatch ( ) ;\n cleanup_test ( ) ;\n }"}
{"idx": 13187, "target": 0, "func": "int evbuffer_add_vprintf ( struct evbuffer * buf , const char * fmt , va_list ap ) {\n char * buffer ;\n size_t space ;\n size_t oldoff = buf -> off ;\n int sz ;\n va_list aq ;\n if ( evbuffer_expand ( buf , 64 ) < 0 ) return ( - 1 ) ;\n for ( ;\n ;\n ) {\n size_t used = buf -> misalign + buf -> off ;\n buffer = ( char * ) buf -> buffer + buf -> off ;\n assert ( buf -> totallen >= used ) ;\n space = buf -> totallen - used ;\n # ifndef va_copy # define va_copy ( dst , src ) memcpy ( & ( dst ) , & ( src ) , sizeof ( va_list ) ) # endif va_copy ( aq , ap ) ;\n sz = evutil_vsnprintf ( buffer , space , fmt , aq ) ;\n va_end ( aq ) ;\n if ( sz < 0 ) return ( - 1 ) ;\n if ( ( size_t ) sz < space ) {\n buf -> off += sz ;\n if ( buf -> cb != NULL ) ( * buf -> cb ) ( buf , oldoff , buf -> off , buf -> cbarg ) ;\n return ( sz ) ;\n }\n if ( evbuffer_expand ( buf , sz + 1 ) == - 1 ) return ( - 1 ) ;\n }\n }"}
{"idx": 13188, "target": 0, "func": "REP_SET * make_new_set ( REP_SETS * sets ) {\n uint i , count , * bit_buffer ;\n REP_SET * set ;\n if ( sets -> extra ) {\n sets -> extra -- ;\n set = sets -> set + sets -> count ++ ;\n bzero ( ( char * ) set -> bits , sizeof ( uint ) * sets -> size_of_bits ) ;\n bzero ( ( char * ) & set -> next [ 0 ] , sizeof ( set -> next [ 0 ] ) * LAST_CHAR_CODE ) ;\n set -> found_offset = 0 ;\n set -> found_len = 0 ;\n set -> table_offset = ( uint ) ~ 0 ;\n set -> size_of_bits = sets -> size_of_bits ;\n return set ;\n }\n count = sets -> count + sets -> invisible + SET_MALLOC_HUNC ;\n if ( ! ( set = ( REP_SET * ) my_realloc ( ( uchar * ) sets -> set_buffer , sizeof ( REP_SET ) * count , MYF ( MY_WME ) ) ) ) return 0 ;\n sets -> set_buffer = set ;\n sets -> set = set + sets -> invisible ;\n if ( ! ( bit_buffer = ( uint * ) my_realloc ( ( uchar * ) sets -> bit_buffer , ( sizeof ( uint ) * sets -> size_of_bits ) * count , MYF ( MY_WME ) ) ) ) return 0 ;\n sets -> bit_buffer = bit_buffer ;\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n sets -> set_buffer [ i ] . bits = bit_buffer ;\n bit_buffer += sets -> size_of_bits ;\n }\n sets -> extra = SET_MALLOC_HUNC ;\n return make_new_set ( sets ) ;\n }"}
{"idx": 13189, "target": 0, "func": "static void steamdiscover_dissect_body_unknown ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , gint offset , gint bytes_left ) {\n gint len ;\n protobuf_desc_t pb = {\n tvb , offset , bytes_left }\n ;\n protobuf_tag_t tag = {\n 0 , 0 , 0 }\n ;\n while ( protobuf_iter_next ( & pb , & tag ) ) {\n len = protobuf_dissect_unknown_field ( & pb , & tag , pinfo , tree , NULL ) ;\n protobuf_seek_forward ( & pb , len ) ;\n }\n }"}
{"idx": 13190, "target": 0, "func": "static void reconstruct_and_encode_image ( RoqContext * enc , RoqTempdata * tempData , int w , int h , int numBlocks ) {\n int i , j , k ;\n int x , y ;\n int subX , subY ;\n int dist = 0 ;\n roq_qcell * qcell ;\n CelEvaluation * eval ;\n CodingSpool spool ;\n spool . typeSpool = 0 ;\n spool . typeSpoolLength = 0 ;\n spool . args = spool . argumentSpool ;\n spool . pout = & enc -> out_buf ;\n if ( tempData -> used_option [ RoQ_ID_CCC ] % 2 ) tempData -> mainChunkSize += 8 ;\n bytestream_put_le16 ( & enc -> out_buf , RoQ_QUAD_VQ ) ;\n bytestream_put_le32 ( & enc -> out_buf , tempData -> mainChunkSize / 8 ) ;\n bytestream_put_byte ( & enc -> out_buf , 0x0 ) ;\n bytestream_put_byte ( & enc -> out_buf , 0x0 ) ;\n for ( i = 0 ;\n i < numBlocks ;\n i ++ ) {\n eval = tempData -> cel_evals + i ;\n x = eval -> sourceX ;\n y = eval -> sourceY ;\n dist += eval -> eval_dist [ eval -> best_coding ] ;\n switch ( eval -> best_coding ) {\n case RoQ_ID_MOT : write_typecode ( & spool , RoQ_ID_MOT ) ;\n break ;\n case RoQ_ID_FCC : bytestream_put_byte ( & spool . args , motion_arg ( eval -> motion ) ) ;\n write_typecode ( & spool , RoQ_ID_FCC ) ;\n ff_apply_motion_8x8 ( enc , x , y , eval -> motion . d [ 0 ] , eval -> motion . d [ 1 ] ) ;\n break ;\n case RoQ_ID_SLD : bytestream_put_byte ( & spool . args , tempData -> i2f4 [ eval -> cbEntry ] ) ;\n write_typecode ( & spool , RoQ_ID_SLD ) ;\n qcell = enc -> cb4x4 + eval -> cbEntry ;\n ff_apply_vector_4x4 ( enc , x , y , enc -> cb2x2 + qcell -> idx [ 0 ] ) ;\n ff_apply_vector_4x4 ( enc , x + 4 , y , enc -> cb2x2 + qcell -> idx [ 1 ] ) ;\n ff_apply_vector_4x4 ( enc , x , y + 4 , enc -> cb2x2 + qcell -> idx [ 2 ] ) ;\n ff_apply_vector_4x4 ( enc , x + 4 , y + 4 , enc -> cb2x2 + qcell -> idx [ 3 ] ) ;\n break ;\n case RoQ_ID_CCC : write_typecode ( & spool , RoQ_ID_CCC ) ;\n for ( j = 0 ;\n j < 4 ;\n j ++ ) {\n subX = x + 4 * ( j & 1 ) ;\n subY = y + 2 * ( j & 2 ) ;\n switch ( eval -> subCels [ j ] . best_coding ) {\n case RoQ_ID_MOT : break ;\n case RoQ_ID_FCC : bytestream_put_byte ( & spool . args , motion_arg ( eval -> subCels [ j ] . motion ) ) ;\n ff_apply_motion_4x4 ( enc , subX , subY , eval -> subCels [ j ] . motion . d [ 0 ] , eval -> subCels [ j ] . motion . d [ 1 ] ) ;\n break ;\n case RoQ_ID_SLD : bytestream_put_byte ( & spool . args , tempData -> i2f4 [ eval -> subCels [ j ] . cbEntry ] ) ;\n qcell = enc -> cb4x4 + eval -> subCels [ j ] . cbEntry ;\n ff_apply_vector_2x2 ( enc , subX , subY , enc -> cb2x2 + qcell -> idx [ 0 ] ) ;\n ff_apply_vector_2x2 ( enc , subX + 2 , subY , enc -> cb2x2 + qcell -> idx [ 1 ] ) ;\n ff_apply_vector_2x2 ( enc , subX , subY + 2 , enc -> cb2x2 + qcell -> idx [ 2 ] ) ;\n ff_apply_vector_2x2 ( enc , subX + 2 , subY + 2 , enc -> cb2x2 + qcell -> idx [ 3 ] ) ;\n break ;\n case RoQ_ID_CCC : for ( k = 0 ;\n k < 4 ;\n k ++ ) {\n int cb_idx = eval -> subCels [ j ] . subCels [ k ] ;\n bytestream_put_byte ( & spool . args , tempData -> i2f2 [ cb_idx ] ) ;\n ff_apply_vector_2x2 ( enc , subX + 2 * ( k & 1 ) , subY + ( k & 2 ) , enc -> cb2x2 + cb_idx ) ;\n }\n break ;\n }\n write_typecode ( & spool , eval -> subCels [ j ] . best_coding ) ;\n }\n break ;\n }\n }\n while ( spool . typeSpoolLength ) write_typecode ( & spool , 0x0 ) ;\n # if 0 uint8_t * fdata [ 3 ] = {\n enc -> frame_to_enc -> data [ 0 ] , enc -> frame_to_enc -> data [ 1 ] , enc -> frame_to_enc -> data [ 2 ] }\n ;\n uint8_t * cdata [ 3 ] = {\n enc -> current_frame -> data [ 0 ] , enc -> current_frame -> data [ 1 ] , enc -> current_frame -> data [ 2 ] }\n ;\n av_log ( enc -> avctx , AV_LOG_ERROR , \"Expected distortion: %i Actual: %i\\n\" , dist , block_sse ( fdata , cdata , 0 , 0 , 0 , 0 , enc -> frame_to_enc -> linesize , enc -> current_frame -> linesize , enc -> width ) ) ;\n # endif }"}
{"idx": 13191, "target": 0, "func": "static uint32_t PPC_io_readl ( target_phys_addr_t addr ) {\n uint32_t ret = cpu_inl ( NULL , addr - PPC_IO_BASE ) ;\n # ifdef TARGET_WORDS_BIGENDIAN ret = bswap32 ( ret ) ;\n # endif PPC_IO_DPRINTF ( \"0x%08x <= 0x%08x\\n\" , addr - PPC_IO_BASE , ret ) ;\n return ret ;\n }"}
{"idx": 13192, "target": 0, "func": "int curl_mvfprintf ( FILE * whereto , const char * format , va_list ap_save ) {\n return dprintf_formatf ( whereto , fputc , format , ap_save ) ;\n }"}
{"idx": 13193, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( SiteDetailsBrowserTest , ManyIframes ) {\n GURL abcdefghi_url = embedded_test_server ( ) -> GetURL ( \"a.com\" , \"/cross_site_iframe_factory.html?a(b(a(b,c,d,e,f,g,h)),c,d,e,i(f))\" ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , abcdefghi_url ) ;\n scoped_refptr < TestMemoryDetails > details = new TestMemoryDetails ( ) ;\n details -> StartFetchAndWait ( ) ;\n EXPECT_EQ ( 1U , details -> CountPageTitles ( ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.BrowsingInstanceCount\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.CurrentRendererProcessCount\" ) , HasOneSample ( GetRenderProcessCount ( ) ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateNothingProcessCountEstimate\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateAllSitesProcessCountEstimate\" ) , HasOneSample ( 9 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateAllSitesProcessCountLowerBound\" ) , HasOneSample ( 9 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateAllSitesProcessCountNoLimit\" ) , HasOneSample ( 9 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateHttpsSitesProcessCountEstimate\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateHttpsSitesProcessCountLowerBound\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateHttpsSitesProcessCountNoLimit\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountEstimate\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountLowerBound\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountNoLimit\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( GetRenderProcessCount ( ) , DependingOnPolicy ( 1 , 1 , 9 ) ) ;\n EXPECT_THAT ( details -> GetOutOfProcessIframeCount ( ) , DependingOnPolicy ( 0 , 0 , 14 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.ProxyCount\" ) , HasOneSample ( DependingOnPolicy ( 0 , 0 , 114 ) ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.ProxyCountPerBrowsingInstance\" ) , HasOneSample ( DependingOnPolicy ( 0 , 0 , 114 ) ) ) ;\n GURL pqrstuv_url = embedded_test_server ( ) -> GetURL ( \"p.com\" , \"/cross_site_iframe_factory.html?p(q(r),r(s),s(t),t(q),u(u),v(p))\" ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , pqrstuv_url ) ;\n details = new TestMemoryDetails ( ) ;\n details -> StartFetchAndWait ( ) ;\n EXPECT_EQ ( 1U , details -> CountPageTitles ( ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.BrowsingInstanceCount\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.CurrentRendererProcessCount\" ) , HasOneSample ( GetRenderProcessCount ( ) ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateNothingProcessCountEstimate\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateAllSitesProcessCountEstimate\" ) , HasOneSample ( 7 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateAllSitesProcessCountLowerBound\" ) , HasOneSample ( 7 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateAllSitesProcessCountNoLimit\" ) , HasOneSample ( 7 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateHttpsSitesProcessCountEstimate\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateHttpsSitesProcessCountLowerBound\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateHttpsSitesProcessCountNoLimit\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountEstimate\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountLowerBound\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountNoLimit\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( GetRenderProcessCount ( ) , DependingOnPolicy ( 1 , 1 , 7 ) ) ;\n EXPECT_THAT ( details -> GetOutOfProcessIframeCount ( ) , DependingOnPolicy ( 0 , 0 , 11 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.ProxyCount\" ) , HasOneSample ( DependingOnPolicy ( 0 , 0 , 68 ) ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.ProxyCountPerBrowsingInstance\" ) , HasOneSample ( DependingOnPolicy ( 0 , 0 , 68 ) ) ) ;\n GURL abcd_url = embedded_test_server ( ) -> GetURL ( \"a.com\" , \"/cross_site_iframe_factory.html?a(b(c(d())))\" ) ;\n AddTabAtIndex ( 1 , abcd_url , ui : : PAGE_TRANSITION_TYPED ) ;\n details = new TestMemoryDetails ( ) ;\n details -> StartFetchAndWait ( ) ;\n EXPECT_EQ ( 2U , details -> CountPageTitles ( ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.BrowsingInstanceCount\" ) , HasOneSample ( 2 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.CurrentRendererProcessCount\" ) , HasOneSample ( GetRenderProcessCount ( ) ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateNothingProcessCountEstimate\" ) , HasOneSample ( 2 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateAllSitesProcessCountEstimate\" ) , HasOneSample ( 11 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateAllSitesProcessCountLowerBound\" ) , HasOneSample ( 11 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateAllSitesProcessCountNoLimit\" ) , HasOneSample ( 11 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateHttpsSitesProcessCountEstimate\" ) , HasOneSample ( 2 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateHttpsSitesProcessCountLowerBound\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateHttpsSitesProcessCountNoLimit\" ) , HasOneSample ( 2 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountEstimate\" ) , HasOneSample ( 2 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountLowerBound\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountNoLimit\" ) , HasOneSample ( 2 ) ) ;\n EXPECT_THAT ( GetRenderProcessCount ( ) , DependingOnPolicy ( 2 , 2 , 11 ) ) ;\n EXPECT_THAT ( details -> GetOutOfProcessIframeCount ( ) , DependingOnPolicy ( 0 , 0 , 14 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.ProxyCount\" ) , HasOneSample ( DependingOnPolicy ( 0 , 0 , 81 ) ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.ProxyCountPerBrowsingInstance\" ) , DependingOnPolicy ( ElementsAre ( Bucket ( 0 , 2 ) ) , ElementsAre ( Bucket ( 0 , 2 ) ) , ElementsAre ( Bucket ( 12 , 1 ) , Bucket ( 68 , 1 ) ) ) ) ;\n AddTabAtIndex ( 2 , abcd_url , ui : : PAGE_TRANSITION_TYPED ) ;\n details = new TestMemoryDetails ( ) ;\n details -> StartFetchAndWait ( ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.BrowsingInstanceCount\" ) , HasOneSample ( 3 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.CurrentRendererProcessCount\" ) , HasOneSample ( GetRenderProcessCount ( ) ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateNothingProcessCountEstimate\" ) , HasOneSample ( 3 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateAllSitesProcessCountEstimate\" ) , HasOneSample ( 15 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateAllSitesProcessCountLowerBound\" ) , HasOneSample ( 11 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateAllSitesProcessCountNoLimit\" ) , HasOneSample ( 15 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateHttpsSitesProcessCountEstimate\" ) , HasOneSample ( 3 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateHttpsSitesProcessCountLowerBound\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateHttpsSitesProcessCountNoLimit\" ) , HasOneSample ( 3 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountEstimate\" ) , HasOneSample ( 3 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountLowerBound\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountNoLimit\" ) , HasOneSample ( 3 ) ) ;\n EXPECT_THAT ( GetRenderProcessCount ( ) , DependingOnPolicy ( 3 , 3 , 12 ) ) ;\n EXPECT_THAT ( details -> GetOutOfProcessIframeCount ( ) , DependingOnPolicy ( 0 , 0 , 17 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.ProxyCount\" ) , HasOneSample ( DependingOnPolicy ( 0 , 0 , 96 ) ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.ProxyCountPerBrowsingInstance\" ) , DependingOnPolicy ( ElementsAre ( Bucket ( 0 , 3 ) ) , ElementsAre ( Bucket ( 0 , 3 ) ) , ElementsAre ( Bucket ( 12 , 2 ) , Bucket ( 68 , 1 ) ) ) ) ;\n GURL dcbae_url = embedded_test_server ( ) -> GetURL ( \"a.com\" , \"/cross_site_iframe_factory.html?d(c(b(a(e))))\" ) ;\n ui_test_utils : : UrlLoadObserver load_complete ( dcbae_url , content : : NotificationService : : AllSources ( ) ) ;\n ASSERT_EQ ( 3 , browser ( ) -> tab_strip_model ( ) -> count ( ) ) ;\n ASSERT_TRUE ( content : : ExecuteScript ( browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) , \"window.open('\" + dcbae_url . spec ( ) + \"');\n\" ) ) ;\n ASSERT_EQ ( 4 , browser ( ) -> tab_strip_model ( ) -> count ( ) ) ;\n load_complete . Wait ( ) ;\n details = new TestMemoryDetails ( ) ;\n details -> StartFetchAndWait ( ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.BrowsingInstanceCount\" ) , HasOneSample ( 3 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.CurrentRendererProcessCount\" ) , HasOneSample ( GetRenderProcessCount ( ) ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateNothingProcessCountEstimate\" ) , HasOneSample ( 3 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateAllSitesProcessCountEstimate\" ) , HasOneSample ( 16 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateAllSitesProcessCountLowerBound\" ) , HasOneSample ( 12 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateAllSitesProcessCountNoLimit\" ) , HasOneSample ( 16 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateHttpsSitesProcessCountEstimate\" ) , HasOneSample ( 3 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateHttpsSitesProcessCountLowerBound\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateHttpsSitesProcessCountNoLimit\" ) , HasOneSample ( 3 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountEstimate\" ) , HasOneSample ( 3 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountLowerBound\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountNoLimit\" ) , HasOneSample ( 3 ) ) ;\n EXPECT_THAT ( GetRenderProcessCount ( ) , DependingOnPolicy ( 3 , 3 , 13 ) ) ;\n EXPECT_THAT ( details -> GetOutOfProcessIframeCount ( ) , DependingOnPolicy ( 0 , 0 , 21 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.ProxyCount\" ) , HasOneSample ( DependingOnPolicy ( 0 , 0 , 114 ) ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.ProxyCountPerBrowsingInstance\" ) , DependingOnPolicy ( ElementsAre ( Bucket ( 0 , 3 ) ) , ElementsAre ( Bucket ( 0 , 3 ) ) , ElementsAre ( Bucket ( 12 , 1 ) , Bucket ( 29 , 1 ) , Bucket ( 68 , 1 ) ) ) ) ;\n }"}
{"idx": 13194, "target": 0, "func": "static void xhci_die ( XHCIState * xhci ) {\n xhci -> usbsts |= USBSTS_HCE ;\n DPRINTF ( \"xhci: asserted controller error\\n\" ) ;\n }"}
{"idx": 13195, "target": 0, "func": "static void exponents_from_scale_factors ( MPADecodeContext * s , GranuleDef * g , int16_t * exponents ) {\n const uint8_t * bstab , * pretab ;\n int len , i , j , k , l , v0 , shift , gain , gains [ 3 ] ;\n int16_t * exp_ptr ;\n exp_ptr = exponents ;\n gain = g -> global_gain - 210 ;\n shift = g -> scalefac_scale + 1 ;\n bstab = band_size_long [ s -> sample_rate_index ] ;\n pretab = mpa_pretab [ g -> preflag ] ;\n for ( i = 0 ;\n i < g -> long_end ;\n i ++ ) {\n v0 = gain - ( ( g -> scale_factors [ i ] + pretab [ i ] ) << shift ) + 400 ;\n len = bstab [ i ] ;\n for ( j = len ;\n j > 0 ;\n j -- ) * exp_ptr ++ = v0 ;\n }\n if ( g -> short_start < 13 ) {\n bstab = band_size_short [ s -> sample_rate_index ] ;\n gains [ 0 ] = gain - ( g -> subblock_gain [ 0 ] << 3 ) ;\n gains [ 1 ] = gain - ( g -> subblock_gain [ 1 ] << 3 ) ;\n gains [ 2 ] = gain - ( g -> subblock_gain [ 2 ] << 3 ) ;\n k = g -> long_end ;\n for ( i = g -> short_start ;\n i < 13 ;\n i ++ ) {\n len = bstab [ i ] ;\n for ( l = 0 ;\n l < 3 ;\n l ++ ) {\n v0 = gains [ l ] - ( g -> scale_factors [ k ++ ] << shift ) + 400 ;\n for ( j = len ;\n j > 0 ;\n j -- ) * exp_ptr ++ = v0 ;\n }\n }\n }\n }"}
{"idx": 13196, "target": 0, "func": "static void idr_relaxed_filenames ( char * map ) {\n int i ;\n for ( i = 0x21 ;\n i <= 0x2F ;\n i ++ ) map [ i ] = 1 ;\n for ( i = 0x3A ;\n i <= 0x41 ;\n i ++ ) map [ i ] = 1 ;\n for ( i = 0x5B ;\n i <= 0x5E ;\n i ++ ) map [ i ] = 1 ;\n map [ 0x60 ] = 1 ;\n for ( i = 0x7B ;\n i <= 0x7E ;\n i ++ ) map [ i ] = 1 ;\n }"}
{"idx": 13197, "target": 0, "func": "static void exchange_uv ( MpegEncContext * s ) {\n int16_t ( * tmp ) [ 64 ] ;\n tmp = s -> pblocks [ 4 ] ;\n s -> pblocks [ 4 ] = s -> pblocks [ 5 ] ;\n s -> pblocks [ 5 ] = tmp ;\n }"}
{"idx": 13198, "target": 0, "func": "int64_t ufmt_uto64 ( const UChar * buffer , int32_t * len , int8_t radix ) {\n const UChar * limit ;\n int32_t count ;\n int64_t result ;\n limit = buffer + * len ;\n count = 0 ;\n result = 0 ;\n while ( ufmt_isdigit ( * buffer , radix ) && buffer < limit ) {\n result *= radix ;\n result += ufmt_digitvalue ( * buffer ++ ) ;\n ++ count ;\n }\n * len = count ;\n return result ;\n }"}
{"idx": 13199, "target": 0, "func": "static void apc_init ( hwaddr power_base , qemu_irq cpu_halt ) {\n DeviceState * dev ;\n SysBusDevice * s ;\n dev = qdev_create ( NULL , \"apc\" ) ;\n qdev_init_nofail ( dev ) ;\n s = SYS_BUS_DEVICE ( dev ) ;\n sysbus_mmio_map ( s , 0 , power_base ) ;\n sysbus_connect_irq ( s , 0 , cpu_halt ) ;\n }"}
{"idx": 13200, "target": 0, "func": "void remove_tap_listener_voip_calls ( void ) {\n remove_tap_listener ( & ( the_tapinfo_struct . voip_dummy ) ) ;\n have_voip_tap_listener = FALSE ;\n }"}
{"idx": 13201, "target": 0, "func": "static void parse_presentation_segment ( AVCodecContext * avctx , const uint8_t * buf , int buf_size ) {\n PGSSubContext * ctx = avctx -> priv_data ;\n int w = bytestream_get_be16 ( & buf ) ;\n int h = bytestream_get_be16 ( & buf ) ;\n uint16_t object_index ;\n av_dlog ( avctx , \"Video Dimensions %dx%d\\n\" , w , h ) ;\n if ( av_image_check_size ( w , h , 0 , avctx ) >= 0 ) avcodec_set_dimensions ( avctx , w , h ) ;\n buf ++ ;\n ctx -> presentation . id_number = bytestream_get_be16 ( & buf ) ;\n buf += 3 ;\n ctx -> presentation . object_count = bytestream_get_byte ( & buf ) ;\n if ( ! ctx -> presentation . object_count ) return ;\n buf_size -= 11 ;\n if ( buf_size < ctx -> presentation . object_count * 8 ) {\n ctx -> presentation . object_count = 0 ;\n return ;\n }\n av_freep ( & ctx -> presentation . objects ) ;\n ctx -> presentation . objects = av_malloc ( sizeof ( PGSSubPictureReference ) * ctx -> presentation . object_count ) ;\n if ( ! ctx -> presentation . objects ) {\n ctx -> presentation . object_count = 0 ;\n return ;\n }\n for ( object_index = 0 ;\n object_index < ctx -> presentation . object_count ;\n ++ object_index ) {\n PGSSubPictureReference * reference = & ctx -> presentation . objects [ object_index ] ;\n reference -> picture_id = bytestream_get_be16 ( & buf ) ;\n buf ++ ;\n reference -> composition = bytestream_get_byte ( & buf ) ;\n reference -> x = bytestream_get_be16 ( & buf ) ;\n reference -> y = bytestream_get_be16 ( & buf ) ;\n av_dlog ( avctx , \"Subtitle Placement ID=%d, x=%d, y=%d\\n\" , reference -> picture_id , reference -> x , reference -> y ) ;\n if ( reference -> x > avctx -> width || reference -> y > avctx -> height ) {\n av_log ( avctx , AV_LOG_ERROR , \"Subtitle out of video bounds. x = %d, y = %d, video width = %d, video height = %d.\\n\" , reference -> x , reference -> y , avctx -> width , avctx -> height ) ;\n reference -> x = 0 ;\n reference -> y = 0 ;\n }\n }\n }"}
{"idx": 13202, "target": 1, "func": "static void set_offsets ( VP9_COMP * cpi , const TileInfo * const tile , int mi_row , int mi_col , BLOCK_SIZE bsize ) {\n MACROBLOCK * const x = & cpi -> mb ;\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n MB_MODE_INFO * mbmi ;\n const int mi_width = num_8x8_blocks_wide_lookup [ bsize ] ;\n const int mi_height = num_8x8_blocks_high_lookup [ bsize ] ;\n const struct segmentation * const seg = & cm -> seg ;\n set_skip_context ( xd , mi_row , mi_col ) ;\n set_modeinfo_offsets ( cm , xd , mi_row , mi_col ) ;\n mbmi = & xd -> mi [ 0 ] -> mbmi ;\n vp9_setup_dst_planes ( xd -> plane , get_frame_new_buffer ( cm ) , mi_row , mi_col ) ;\n x -> mv_row_min = - ( ( ( mi_row + mi_height ) * MI_SIZE ) + VP9_INTERP_EXTEND ) ;\n x -> mv_col_min = - ( ( ( mi_col + mi_width ) * MI_SIZE ) + VP9_INTERP_EXTEND ) ;\n x -> mv_row_max = ( cm -> mi_rows - mi_row ) * MI_SIZE + VP9_INTERP_EXTEND ;\n x -> mv_col_max = ( cm -> mi_cols - mi_col ) * MI_SIZE + VP9_INTERP_EXTEND ;\n assert ( ! ( mi_col & ( mi_width - 1 ) ) && ! ( mi_row & ( mi_height - 1 ) ) ) ;\n set_mi_row_col ( xd , tile , mi_row , mi_height , mi_col , mi_width , cm -> mi_rows , cm -> mi_cols ) ;\n vp9_setup_src_planes ( x , cpi -> Source , mi_row , mi_col ) ;\n x -> rddiv = cpi -> rd . RDDIV ;\n x -> rdmult = cpi -> rd . RDMULT ;\n if ( seg -> enabled ) {\n if ( cpi -> oxcf . aq_mode != VARIANCE_AQ ) {\n const uint8_t * const map = seg -> update_map ? cpi -> segmentation_map : cm -> last_frame_seg_map ;\n mbmi -> segment_id = vp9_get_segment_id ( cm , map , bsize , mi_row , mi_col ) ;\n }\n vp9_init_plane_quantizers ( cpi , x ) ;\n x -> encode_breakout = cpi -> segment_encode_breakout [ mbmi -> segment_id ] ;\n }\n else {\n mbmi -> segment_id = 0 ;\n x -> encode_breakout = cpi -> encode_breakout ;\n }\n }"}
{"idx": 13203, "target": 0, "func": "static int jbig2_find_changing_element ( const byte * line , uint32_t x , uint32_t w ) {\n int a , b ;\n if ( line == 0 ) return ( int ) w ;\n if ( x == MINUS1 ) {\n a = 0 ;\n x = 0 ;\n }\n else {\n a = getbit ( line , x ) ;\n x ++ ;\n }\n while ( x < w ) {\n b = getbit ( line , x ) ;\n if ( a != b ) break ;\n x ++ ;\n }\n return x ;\n }"}
{"idx": 13204, "target": 0, "func": "static hb_script_t hb_ot_new_tag_to_script ( hb_tag_t tag ) {\n switch ( tag ) {\n case HB_TAG ( 'b' , 'n' , 'g' , '2' ) : return HB_SCRIPT_BENGALI ;\n case HB_TAG ( 'd' , 'e' , 'v' , '2' ) : return HB_SCRIPT_DEVANAGARI ;\n case HB_TAG ( 'g' , 'j' , 'r' , '2' ) : return HB_SCRIPT_GUJARATI ;\n case HB_TAG ( 'g' , 'u' , 'r' , '2' ) : return HB_SCRIPT_GURMUKHI ;\n case HB_TAG ( 'k' , 'n' , 'd' , '2' ) : return HB_SCRIPT_KANNADA ;\n case HB_TAG ( 'm' , 'l' , 'm' , '2' ) : return HB_SCRIPT_MALAYALAM ;\n case HB_TAG ( 'o' , 'r' , 'y' , '2' ) : return HB_SCRIPT_ORIYA ;\n case HB_TAG ( 't' , 'm' , 'l' , '2' ) : return HB_SCRIPT_TAMIL ;\n case HB_TAG ( 't' , 'e' , 'l' , '2' ) : return HB_SCRIPT_TELUGU ;\n case HB_TAG ( 'm' , 'y' , 'm' , '2' ) : return HB_SCRIPT_MYANMAR ;\n }\n return HB_SCRIPT_UNKNOWN ;\n }"}
{"idx": 13205, "target": 0, "func": "TSReturnCode TSHttpHdrVersionSet ( TSMBuffer bufp , TSMLoc obj , int ver ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_http_hdr_handle ( obj ) == TS_SUCCESS ) ;\n if ( ! isWriteable ( bufp ) ) {\n return TS_ERROR ;\n }\n HTTPHdr h ;\n HTTPVersion version ( ver ) ;\n SET_HTTP_HDR ( h , bufp , obj ) ;\n ink_assert ( h . m_http -> m_type == HDR_HEAP_OBJ_HTTP_HEADER ) ;\n h . version_set ( version ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 13206, "target": 0, "func": "static void xhci_detach ( USBPort * usbport ) {\n XHCIState * xhci = usbport -> opaque ;\n XHCIPort * port = xhci_lookup_port ( xhci , usbport ) ;\n xhci_detach_slot ( xhci , usbport ) ;\n xhci_port_update ( port , 1 ) ;\n }"}
{"idx": 13207, "target": 0, "func": "static uint32_t e1000e_mac_low ## num ## _read ( E1000ECore * core , int index ) {\n return core -> mac [ index ] & ( BIT ( num ) - 1 ) ;\n }\n # define E1000E_LOW_BITS_READ ( num ) e1000e_mac_low ## num ## _read E1000E_LOW_BITS_READ_FUNC ( 4 ) ;\n E1000E_LOW_BITS_READ_FUNC ( 6 ) ;\n E1000E_LOW_BITS_READ_FUNC ( 11 ) ;\n E1000E_LOW_BITS_READ_FUNC ( 13 ) ;\n E1000E_LOW_BITS_READ_FUNC ( 16 )"}
{"idx": 13208, "target": 0, "func": "SPL_METHOD ( SplDoublyLinkedList , unshift ) {\n zval * value ;\n spl_dllist_object * intern ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"z\" , & value ) == FAILURE ) {\n return ;\n }\n SEPARATE_ARG_IF_REF ( value ) ;\n intern = ( spl_dllist_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n spl_ptr_llist_unshift ( intern -> llist , value TSRMLS_CC ) ;\n RETURN_TRUE ;\n }"}
{"idx": 13209, "target": 0, "func": "static Datum ExecEvalOper ( FuncExprState * fcache , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n OpExpr * op = ( OpExpr * ) fcache -> xprstate . expr ;\n init_fcache ( op -> opfuncid , op -> inputcollid , fcache , econtext -> ecxt_per_query_memory , true ) ;\n if ( fcache -> func . fn_retset || expression_returns_set ( ( Node * ) op -> args ) ) {\n fcache -> xprstate . evalfunc = ( ExprStateEvalFunc ) ExecMakeFunctionResult ;\n return ExecMakeFunctionResult ( fcache , econtext , isNull , isDone ) ;\n }\n else {\n fcache -> xprstate . evalfunc = ( ExprStateEvalFunc ) ExecMakeFunctionResultNoSets ;\n return ExecMakeFunctionResultNoSets ( fcache , econtext , isNull , isDone ) ;\n }\n }"}
{"idx": 13210, "target": 0, "func": "static inline void mc_part_std ( AVSContext * h , int chroma_height , int delta , uint8_t * dest_y , uint8_t * dest_cb , uint8_t * dest_cr , int x_offset , int y_offset , qpel_mc_func * qpix_put , h264_chroma_mc_func chroma_put , qpel_mc_func * qpix_avg , h264_chroma_mc_func chroma_avg , cavs_vector * mv ) {\n qpel_mc_func * qpix_op = qpix_put ;\n h264_chroma_mc_func chroma_op = chroma_put ;\n dest_y += 2 * x_offset + 2 * y_offset * h -> l_stride ;\n dest_cb += x_offset + y_offset * h -> c_stride ;\n dest_cr += x_offset + y_offset * h -> c_stride ;\n x_offset += 8 * h -> mbx ;\n y_offset += 8 * h -> mby ;\n if ( mv -> ref >= 0 ) {\n AVFrame * ref = h -> DPB [ mv -> ref ] . f ;\n mc_dir_part ( h , ref , chroma_height , delta , 0 , dest_y , dest_cb , dest_cr , x_offset , y_offset , qpix_op , chroma_op , mv ) ;\n qpix_op = qpix_avg ;\n chroma_op = chroma_avg ;\n }\n if ( ( mv + MV_BWD_OFFS ) -> ref >= 0 ) {\n AVFrame * ref = h -> DPB [ 0 ] . f ;\n mc_dir_part ( h , ref , chroma_height , delta , 1 , dest_y , dest_cb , dest_cr , x_offset , y_offset , qpix_op , chroma_op , mv + MV_BWD_OFFS ) ;\n }\n }"}
{"idx": 13211, "target": 0, "func": "static const wbxml_decoding * wv_csp_discriminator ( tvbuff_t * tvb , guint32 offset ) {\n guint32 magic_1 = tvb_get_ntohl ( tvb , offset + 0 ) ;\n guint16 magic_2 = tvb_get_ntohs ( tvb , offset + 4 ) ;\n if ( magic_1 == 0xFE050331 && magic_2 == 0x2e30 ) {\n return & decode_wv_cspc_10 ;\n }\n else if ( magic_1 == 0xC9050331 && magic_2 == 0x2e31 ) {\n return & decode_wv_cspc_11 ;\n }\n else if ( magic_1 == 0xC9080331 && magic_2 == 0x2e32 ) {\n return & decode_wv_cspc_12 ;\n }\n else if ( magic_1 == 0xC90B0331 && magic_2 == 0x2E33 ) {\n return & decode_wv_cspc_13 ;\n }\n return & decode_wv_cspc_12 ;\n }"}
{"idx": 13212, "target": 0, "func": "void luaD_seterrorobj ( lua_State * L , int errcode , StkId oldtop ) {\n switch ( errcode ) {\n case LUA_ERRMEM : {\n setsvalue2s ( L , oldtop , luaS_newliteral ( L , MEMERRMSG ) ) ;\n break ;\n }\n case LUA_ERRERR : {\n setsvalue2s ( L , oldtop , luaS_newliteral ( L , \"error in error handling\" ) ) ;\n break ;\n }\n case LUA_ERRSYNTAX : case LUA_ERRRUN : {\n setobjs2s ( L , oldtop , L -> top - 1 ) ;\n break ;\n }\n }\n L -> top = oldtop + 1 ;\n }"}
{"idx": 13213, "target": 0, "func": "static kadm5_ret_t add_to_history ( krb5_context context , krb5_kvno hist_kvno , osa_princ_ent_t adb , kadm5_policy_ent_t pol , osa_pw_hist_ent * pw ) {\n osa_pw_hist_ent * histp ;\n uint32_t nhist ;\n unsigned int i , knext , nkeys ;\n nhist = pol -> pw_history_num ;\n if ( nhist <= 1 ) return 0 ;\n if ( adb -> admin_history_kvno != hist_kvno ) {\n free ( adb -> old_keys ) ;\n adb -> old_keys = NULL ;\n adb -> old_key_len = 0 ;\n adb -> old_key_next = 0 ;\n adb -> admin_history_kvno = hist_kvno ;\n }\n nkeys = adb -> old_key_len ;\n knext = adb -> old_key_next ;\n if ( nkeys + 1 < nhist ) {\n if ( adb -> old_keys == NULL ) {\n adb -> old_keys = ( osa_pw_hist_ent * ) malloc ( ( nkeys + 1 ) * sizeof ( osa_pw_hist_ent ) ) ;\n }\n else {\n adb -> old_keys = ( osa_pw_hist_ent * ) realloc ( adb -> old_keys , ( nkeys + 1 ) * sizeof ( osa_pw_hist_ent ) ) ;\n }\n if ( adb -> old_keys == NULL ) return ( ENOMEM ) ;\n memset ( & adb -> old_keys [ nkeys ] , 0 , sizeof ( osa_pw_hist_ent ) ) ;\n nkeys = ++ adb -> old_key_len ;\n for ( i = nkeys - 1 ;\n i > knext ;\n i -- ) {\n adb -> old_keys [ i ] = adb -> old_keys [ i - 1 ] ;\n }\n memset ( & adb -> old_keys [ knext ] , 0 , sizeof ( osa_pw_hist_ent ) ) ;\n }\n else if ( nkeys + 1 > nhist ) {\n int j ;\n osa_pw_hist_t tmp ;\n tmp = ( osa_pw_hist_ent * ) malloc ( ( nhist - 1 ) * sizeof ( osa_pw_hist_ent ) ) ;\n if ( tmp == NULL ) return ENOMEM ;\n for ( i = 0 ;\n i < nhist - 1 ;\n i ++ ) {\n j = ( i + nkeys + knext - ( nhist - 1 ) ) % nkeys ;\n tmp [ i ] = adb -> old_keys [ j ] ;\n }\n for ( i = 0 ;\n i < nkeys - ( nhist - 1 ) ;\n i ++ ) {\n j = ( i + nkeys + knext ) % nkeys ;\n histp = & adb -> old_keys [ j ] ;\n for ( j = 0 ;\n j < histp -> n_key_data ;\n j ++ ) {\n krb5_free_key_data_contents ( context , & histp -> key_data [ j ] ) ;\n }\n free ( histp -> key_data ) ;\n }\n free ( adb -> old_keys ) ;\n adb -> old_keys = tmp ;\n nkeys = adb -> old_key_len = nhist - 1 ;\n knext = adb -> old_key_next = 0 ;\n }\n if ( knext + 1 > nkeys ) knext = adb -> old_key_next = 0 ;\n histp = & adb -> old_keys [ knext ] ;\n for ( i = 0 ;\n i < ( unsigned int ) histp -> n_key_data ;\n i ++ ) krb5_free_key_data_contents ( context , & histp -> key_data [ i ] ) ;\n free ( histp -> key_data ) ;\n adb -> old_keys [ knext ] = * pw ;\n if ( ++ adb -> old_key_next == nhist - 1 ) adb -> old_key_next = 0 ;\n return ( 0 ) ;\n }"}
{"idx": 13214, "target": 0, "func": "int event_priority_set ( struct event * ev , int pri ) {\n if ( ev -> ev_flags & EVLIST_ACTIVE ) return ( - 1 ) ;\n if ( pri < 0 || pri >= ev -> ev_base -> nactivequeues ) return ( - 1 ) ;\n ev -> ev_pri = pri ;\n return ( 0 ) ;\n }"}
{"idx": 13215, "target": 0, "func": "static void idct32 ( const tran_low_t * input , tran_low_t * output ) {\n tran_low_t step1 [ 32 ] , step2 [ 32 ] ;\n tran_high_t temp1 , temp2 ;\n step1 [ 0 ] = input [ 0 ] ;\n step1 [ 1 ] = input [ 16 ] ;\n step1 [ 2 ] = input [ 8 ] ;\n step1 [ 3 ] = input [ 24 ] ;\n step1 [ 4 ] = input [ 4 ] ;\n step1 [ 5 ] = input [ 20 ] ;\n step1 [ 6 ] = input [ 12 ] ;\n step1 [ 7 ] = input [ 28 ] ;\n step1 [ 8 ] = input [ 2 ] ;\n step1 [ 9 ] = input [ 18 ] ;\n step1 [ 10 ] = input [ 10 ] ;\n step1 [ 11 ] = input [ 26 ] ;\n step1 [ 12 ] = input [ 6 ] ;\n step1 [ 13 ] = input [ 22 ] ;\n step1 [ 14 ] = input [ 14 ] ;\n step1 [ 15 ] = input [ 30 ] ;\n temp1 = input [ 1 ] * cospi_31_64 - input [ 31 ] * cospi_1_64 ;\n temp2 = input [ 1 ] * cospi_1_64 + input [ 31 ] * cospi_31_64 ;\n step1 [ 16 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 31 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = input [ 17 ] * cospi_15_64 - input [ 15 ] * cospi_17_64 ;\n temp2 = input [ 17 ] * cospi_17_64 + input [ 15 ] * cospi_15_64 ;\n step1 [ 17 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 30 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = input [ 9 ] * cospi_23_64 - input [ 23 ] * cospi_9_64 ;\n temp2 = input [ 9 ] * cospi_9_64 + input [ 23 ] * cospi_23_64 ;\n step1 [ 18 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 29 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = input [ 25 ] * cospi_7_64 - input [ 7 ] * cospi_25_64 ;\n temp2 = input [ 25 ] * cospi_25_64 + input [ 7 ] * cospi_7_64 ;\n step1 [ 19 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 28 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = input [ 5 ] * cospi_27_64 - input [ 27 ] * cospi_5_64 ;\n temp2 = input [ 5 ] * cospi_5_64 + input [ 27 ] * cospi_27_64 ;\n step1 [ 20 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 27 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = input [ 21 ] * cospi_11_64 - input [ 11 ] * cospi_21_64 ;\n temp2 = input [ 21 ] * cospi_21_64 + input [ 11 ] * cospi_11_64 ;\n step1 [ 21 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 26 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = input [ 13 ] * cospi_19_64 - input [ 19 ] * cospi_13_64 ;\n temp2 = input [ 13 ] * cospi_13_64 + input [ 19 ] * cospi_19_64 ;\n step1 [ 22 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 25 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = input [ 29 ] * cospi_3_64 - input [ 3 ] * cospi_29_64 ;\n temp2 = input [ 29 ] * cospi_29_64 + input [ 3 ] * cospi_3_64 ;\n step1 [ 23 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 24 ] = dct_const_round_shift ( temp2 ) ;\n step2 [ 0 ] = step1 [ 0 ] ;\n step2 [ 1 ] = step1 [ 1 ] ;\n step2 [ 2 ] = step1 [ 2 ] ;\n step2 [ 3 ] = step1 [ 3 ] ;\n step2 [ 4 ] = step1 [ 4 ] ;\n step2 [ 5 ] = step1 [ 5 ] ;\n step2 [ 6 ] = step1 [ 6 ] ;\n step2 [ 7 ] = step1 [ 7 ] ;\n temp1 = step1 [ 8 ] * cospi_30_64 - step1 [ 15 ] * cospi_2_64 ;\n temp2 = step1 [ 8 ] * cospi_2_64 + step1 [ 15 ] * cospi_30_64 ;\n step2 [ 8 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 15 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = step1 [ 9 ] * cospi_14_64 - step1 [ 14 ] * cospi_18_64 ;\n temp2 = step1 [ 9 ] * cospi_18_64 + step1 [ 14 ] * cospi_14_64 ;\n step2 [ 9 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 14 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = step1 [ 10 ] * cospi_22_64 - step1 [ 13 ] * cospi_10_64 ;\n temp2 = step1 [ 10 ] * cospi_10_64 + step1 [ 13 ] * cospi_22_64 ;\n step2 [ 10 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 13 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = step1 [ 11 ] * cospi_6_64 - step1 [ 12 ] * cospi_26_64 ;\n temp2 = step1 [ 11 ] * cospi_26_64 + step1 [ 12 ] * cospi_6_64 ;\n step2 [ 11 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 12 ] = dct_const_round_shift ( temp2 ) ;\n step2 [ 16 ] = step1 [ 16 ] + step1 [ 17 ] ;\n step2 [ 17 ] = step1 [ 16 ] - step1 [ 17 ] ;\n step2 [ 18 ] = - step1 [ 18 ] + step1 [ 19 ] ;\n step2 [ 19 ] = step1 [ 18 ] + step1 [ 19 ] ;\n step2 [ 20 ] = step1 [ 20 ] + step1 [ 21 ] ;\n step2 [ 21 ] = step1 [ 20 ] - step1 [ 21 ] ;\n step2 [ 22 ] = - step1 [ 22 ] + step1 [ 23 ] ;\n step2 [ 23 ] = step1 [ 22 ] + step1 [ 23 ] ;\n step2 [ 24 ] = step1 [ 24 ] + step1 [ 25 ] ;\n step2 [ 25 ] = step1 [ 24 ] - step1 [ 25 ] ;\n step2 [ 26 ] = - step1 [ 26 ] + step1 [ 27 ] ;\n step2 [ 27 ] = step1 [ 26 ] + step1 [ 27 ] ;\n step2 [ 28 ] = step1 [ 28 ] + step1 [ 29 ] ;\n step2 [ 29 ] = step1 [ 28 ] - step1 [ 29 ] ;\n step2 [ 30 ] = - step1 [ 30 ] + step1 [ 31 ] ;\n step2 [ 31 ] = step1 [ 30 ] + step1 [ 31 ] ;\n step1 [ 0 ] = step2 [ 0 ] ;\n step1 [ 1 ] = step2 [ 1 ] ;\n step1 [ 2 ] = step2 [ 2 ] ;\n step1 [ 3 ] = step2 [ 3 ] ;\n temp1 = step2 [ 4 ] * cospi_28_64 - step2 [ 7 ] * cospi_4_64 ;\n temp2 = step2 [ 4 ] * cospi_4_64 + step2 [ 7 ] * cospi_28_64 ;\n step1 [ 4 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 7 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = step2 [ 5 ] * cospi_12_64 - step2 [ 6 ] * cospi_20_64 ;\n temp2 = step2 [ 5 ] * cospi_20_64 + step2 [ 6 ] * cospi_12_64 ;\n step1 [ 5 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 6 ] = dct_const_round_shift ( temp2 ) ;\n step1 [ 8 ] = step2 [ 8 ] + step2 [ 9 ] ;\n step1 [ 9 ] = step2 [ 8 ] - step2 [ 9 ] ;\n step1 [ 10 ] = - step2 [ 10 ] + step2 [ 11 ] ;\n step1 [ 11 ] = step2 [ 10 ] + step2 [ 11 ] ;\n step1 [ 12 ] = step2 [ 12 ] + step2 [ 13 ] ;\n step1 [ 13 ] = step2 [ 12 ] - step2 [ 13 ] ;\n step1 [ 14 ] = - step2 [ 14 ] + step2 [ 15 ] ;\n step1 [ 15 ] = step2 [ 14 ] + step2 [ 15 ] ;\n step1 [ 16 ] = step2 [ 16 ] ;\n step1 [ 31 ] = step2 [ 31 ] ;\n temp1 = - step2 [ 17 ] * cospi_4_64 + step2 [ 30 ] * cospi_28_64 ;\n temp2 = step2 [ 17 ] * cospi_28_64 + step2 [ 30 ] * cospi_4_64 ;\n step1 [ 17 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 30 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = - step2 [ 18 ] * cospi_28_64 - step2 [ 29 ] * cospi_4_64 ;\n temp2 = - step2 [ 18 ] * cospi_4_64 + step2 [ 29 ] * cospi_28_64 ;\n step1 [ 18 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 29 ] = dct_const_round_shift ( temp2 ) ;\n step1 [ 19 ] = step2 [ 19 ] ;\n step1 [ 20 ] = step2 [ 20 ] ;\n temp1 = - step2 [ 21 ] * cospi_20_64 + step2 [ 26 ] * cospi_12_64 ;\n temp2 = step2 [ 21 ] * cospi_12_64 + step2 [ 26 ] * cospi_20_64 ;\n step1 [ 21 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 26 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = - step2 [ 22 ] * cospi_12_64 - step2 [ 25 ] * cospi_20_64 ;\n temp2 = - step2 [ 22 ] * cospi_20_64 + step2 [ 25 ] * cospi_12_64 ;\n step1 [ 22 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 25 ] = dct_const_round_shift ( temp2 ) ;\n step1 [ 23 ] = step2 [ 23 ] ;\n step1 [ 24 ] = step2 [ 24 ] ;\n step1 [ 27 ] = step2 [ 27 ] ;\n step1 [ 28 ] = step2 [ 28 ] ;\n temp1 = ( step1 [ 0 ] + step1 [ 1 ] ) * cospi_16_64 ;\n temp2 = ( step1 [ 0 ] - step1 [ 1 ] ) * cospi_16_64 ;\n step2 [ 0 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 1 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = step1 [ 2 ] * cospi_24_64 - step1 [ 3 ] * cospi_8_64 ;\n temp2 = step1 [ 2 ] * cospi_8_64 + step1 [ 3 ] * cospi_24_64 ;\n step2 [ 2 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 3 ] = dct_const_round_shift ( temp2 ) ;\n step2 [ 4 ] = step1 [ 4 ] + step1 [ 5 ] ;\n step2 [ 5 ] = step1 [ 4 ] - step1 [ 5 ] ;\n step2 [ 6 ] = - step1 [ 6 ] + step1 [ 7 ] ;\n step2 [ 7 ] = step1 [ 6 ] + step1 [ 7 ] ;\n step2 [ 8 ] = step1 [ 8 ] ;\n step2 [ 15 ] = step1 [ 15 ] ;\n temp1 = - step1 [ 9 ] * cospi_8_64 + step1 [ 14 ] * cospi_24_64 ;\n temp2 = step1 [ 9 ] * cospi_24_64 + step1 [ 14 ] * cospi_8_64 ;\n step2 [ 9 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 14 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = - step1 [ 10 ] * cospi_24_64 - step1 [ 13 ] * cospi_8_64 ;\n temp2 = - step1 [ 10 ] * cospi_8_64 + step1 [ 13 ] * cospi_24_64 ;\n step2 [ 10 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 13 ] = dct_const_round_shift ( temp2 ) ;\n step2 [ 11 ] = step1 [ 11 ] ;\n step2 [ 12 ] = step1 [ 12 ] ;\n step2 [ 16 ] = step1 [ 16 ] + step1 [ 19 ] ;\n step2 [ 17 ] = step1 [ 17 ] + step1 [ 18 ] ;\n step2 [ 18 ] = step1 [ 17 ] - step1 [ 18 ] ;\n step2 [ 19 ] = step1 [ 16 ] - step1 [ 19 ] ;\n step2 [ 20 ] = - step1 [ 20 ] + step1 [ 23 ] ;\n step2 [ 21 ] = - step1 [ 21 ] + step1 [ 22 ] ;\n step2 [ 22 ] = step1 [ 21 ] + step1 [ 22 ] ;\n step2 [ 23 ] = step1 [ 20 ] + step1 [ 23 ] ;\n step2 [ 24 ] = step1 [ 24 ] + step1 [ 27 ] ;\n step2 [ 25 ] = step1 [ 25 ] + step1 [ 26 ] ;\n step2 [ 26 ] = step1 [ 25 ] - step1 [ 26 ] ;\n step2 [ 27 ] = step1 [ 24 ] - step1 [ 27 ] ;\n step2 [ 28 ] = - step1 [ 28 ] + step1 [ 31 ] ;\n step2 [ 29 ] = - step1 [ 29 ] + step1 [ 30 ] ;\n step2 [ 30 ] = step1 [ 29 ] + step1 [ 30 ] ;\n step2 [ 31 ] = step1 [ 28 ] + step1 [ 31 ] ;\n step1 [ 0 ] = step2 [ 0 ] + step2 [ 3 ] ;\n step1 [ 1 ] = step2 [ 1 ] + step2 [ 2 ] ;\n step1 [ 2 ] = step2 [ 1 ] - step2 [ 2 ] ;\n step1 [ 3 ] = step2 [ 0 ] - step2 [ 3 ] ;\n step1 [ 4 ] = step2 [ 4 ] ;\n temp1 = ( step2 [ 6 ] - step2 [ 5 ] ) * cospi_16_64 ;\n temp2 = ( step2 [ 5 ] + step2 [ 6 ] ) * cospi_16_64 ;\n step1 [ 5 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 6 ] = dct_const_round_shift ( temp2 ) ;\n step1 [ 7 ] = step2 [ 7 ] ;\n step1 [ 8 ] = step2 [ 8 ] + step2 [ 11 ] ;\n step1 [ 9 ] = step2 [ 9 ] + step2 [ 10 ] ;\n step1 [ 10 ] = step2 [ 9 ] - step2 [ 10 ] ;\n step1 [ 11 ] = step2 [ 8 ] - step2 [ 11 ] ;\n step1 [ 12 ] = - step2 [ 12 ] + step2 [ 15 ] ;\n step1 [ 13 ] = - step2 [ 13 ] + step2 [ 14 ] ;\n step1 [ 14 ] = step2 [ 13 ] + step2 [ 14 ] ;\n step1 [ 15 ] = step2 [ 12 ] + step2 [ 15 ] ;\n step1 [ 16 ] = step2 [ 16 ] ;\n step1 [ 17 ] = step2 [ 17 ] ;\n temp1 = - step2 [ 18 ] * cospi_8_64 + step2 [ 29 ] * cospi_24_64 ;\n temp2 = step2 [ 18 ] * cospi_24_64 + step2 [ 29 ] * cospi_8_64 ;\n step1 [ 18 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 29 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = - step2 [ 19 ] * cospi_8_64 + step2 [ 28 ] * cospi_24_64 ;\n temp2 = step2 [ 19 ] * cospi_24_64 + step2 [ 28 ] * cospi_8_64 ;\n step1 [ 19 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 28 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = - step2 [ 20 ] * cospi_24_64 - step2 [ 27 ] * cospi_8_64 ;\n temp2 = - step2 [ 20 ] * cospi_8_64 + step2 [ 27 ] * cospi_24_64 ;\n step1 [ 20 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 27 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = - step2 [ 21 ] * cospi_24_64 - step2 [ 26 ] * cospi_8_64 ;\n temp2 = - step2 [ 21 ] * cospi_8_64 + step2 [ 26 ] * cospi_24_64 ;\n step1 [ 21 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 26 ] = dct_const_round_shift ( temp2 ) ;\n step1 [ 22 ] = step2 [ 22 ] ;\n step1 [ 23 ] = step2 [ 23 ] ;\n step1 [ 24 ] = step2 [ 24 ] ;\n step1 [ 25 ] = step2 [ 25 ] ;\n step1 [ 30 ] = step2 [ 30 ] ;\n step1 [ 31 ] = step2 [ 31 ] ;\n step2 [ 0 ] = step1 [ 0 ] + step1 [ 7 ] ;\n step2 [ 1 ] = step1 [ 1 ] + step1 [ 6 ] ;\n step2 [ 2 ] = step1 [ 2 ] + step1 [ 5 ] ;\n step2 [ 3 ] = step1 [ 3 ] + step1 [ 4 ] ;\n step2 [ 4 ] = step1 [ 3 ] - step1 [ 4 ] ;\n step2 [ 5 ] = step1 [ 2 ] - step1 [ 5 ] ;\n step2 [ 6 ] = step1 [ 1 ] - step1 [ 6 ] ;\n step2 [ 7 ] = step1 [ 0 ] - step1 [ 7 ] ;\n step2 [ 8 ] = step1 [ 8 ] ;\n step2 [ 9 ] = step1 [ 9 ] ;\n temp1 = ( - step1 [ 10 ] + step1 [ 13 ] ) * cospi_16_64 ;\n temp2 = ( step1 [ 10 ] + step1 [ 13 ] ) * cospi_16_64 ;\n step2 [ 10 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 13 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = ( - step1 [ 11 ] + step1 [ 12 ] ) * cospi_16_64 ;\n temp2 = ( step1 [ 11 ] + step1 [ 12 ] ) * cospi_16_64 ;\n step2 [ 11 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 12 ] = dct_const_round_shift ( temp2 ) ;\n step2 [ 14 ] = step1 [ 14 ] ;\n step2 [ 15 ] = step1 [ 15 ] ;\n step2 [ 16 ] = step1 [ 16 ] + step1 [ 23 ] ;\n step2 [ 17 ] = step1 [ 17 ] + step1 [ 22 ] ;\n step2 [ 18 ] = step1 [ 18 ] + step1 [ 21 ] ;\n step2 [ 19 ] = step1 [ 19 ] + step1 [ 20 ] ;\n step2 [ 20 ] = step1 [ 19 ] - step1 [ 20 ] ;\n step2 [ 21 ] = step1 [ 18 ] - step1 [ 21 ] ;\n step2 [ 22 ] = step1 [ 17 ] - step1 [ 22 ] ;\n step2 [ 23 ] = step1 [ 16 ] - step1 [ 23 ] ;\n step2 [ 24 ] = - step1 [ 24 ] + step1 [ 31 ] ;\n step2 [ 25 ] = - step1 [ 25 ] + step1 [ 30 ] ;\n step2 [ 26 ] = - step1 [ 26 ] + step1 [ 29 ] ;\n step2 [ 27 ] = - step1 [ 27 ] + step1 [ 28 ] ;\n step2 [ 28 ] = step1 [ 27 ] + step1 [ 28 ] ;\n step2 [ 29 ] = step1 [ 26 ] + step1 [ 29 ] ;\n step2 [ 30 ] = step1 [ 25 ] + step1 [ 30 ] ;\n step2 [ 31 ] = step1 [ 24 ] + step1 [ 31 ] ;\n step1 [ 0 ] = step2 [ 0 ] + step2 [ 15 ] ;\n step1 [ 1 ] = step2 [ 1 ] + step2 [ 14 ] ;\n step1 [ 2 ] = step2 [ 2 ] + step2 [ 13 ] ;\n step1 [ 3 ] = step2 [ 3 ] + step2 [ 12 ] ;\n step1 [ 4 ] = step2 [ 4 ] + step2 [ 11 ] ;\n step1 [ 5 ] = step2 [ 5 ] + step2 [ 10 ] ;\n step1 [ 6 ] = step2 [ 6 ] + step2 [ 9 ] ;\n step1 [ 7 ] = step2 [ 7 ] + step2 [ 8 ] ;\n step1 [ 8 ] = step2 [ 7 ] - step2 [ 8 ] ;\n step1 [ 9 ] = step2 [ 6 ] - step2 [ 9 ] ;\n step1 [ 10 ] = step2 [ 5 ] - step2 [ 10 ] ;\n step1 [ 11 ] = step2 [ 4 ] - step2 [ 11 ] ;\n step1 [ 12 ] = step2 [ 3 ] - step2 [ 12 ] ;\n step1 [ 13 ] = step2 [ 2 ] - step2 [ 13 ] ;\n step1 [ 14 ] = step2 [ 1 ] - step2 [ 14 ] ;\n step1 [ 15 ] = step2 [ 0 ] - step2 [ 15 ] ;\n step1 [ 16 ] = step2 [ 16 ] ;\n step1 [ 17 ] = step2 [ 17 ] ;\n step1 [ 18 ] = step2 [ 18 ] ;\n step1 [ 19 ] = step2 [ 19 ] ;\n temp1 = ( - step2 [ 20 ] + step2 [ 27 ] ) * cospi_16_64 ;\n temp2 = ( step2 [ 20 ] + step2 [ 27 ] ) * cospi_16_64 ;\n step1 [ 20 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 27 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = ( - step2 [ 21 ] + step2 [ 26 ] ) * cospi_16_64 ;\n temp2 = ( step2 [ 21 ] + step2 [ 26 ] ) * cospi_16_64 ;\n step1 [ 21 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 26 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = ( - step2 [ 22 ] + step2 [ 25 ] ) * cospi_16_64 ;\n temp2 = ( step2 [ 22 ] + step2 [ 25 ] ) * cospi_16_64 ;\n step1 [ 22 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 25 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = ( - step2 [ 23 ] + step2 [ 24 ] ) * cospi_16_64 ;\n temp2 = ( step2 [ 23 ] + step2 [ 24 ] ) * cospi_16_64 ;\n step1 [ 23 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 24 ] = dct_const_round_shift ( temp2 ) ;\n step1 [ 28 ] = step2 [ 28 ] ;\n step1 [ 29 ] = step2 [ 29 ] ;\n step1 [ 30 ] = step2 [ 30 ] ;\n step1 [ 31 ] = step2 [ 31 ] ;\n output [ 0 ] = step1 [ 0 ] + step1 [ 31 ] ;\n output [ 1 ] = step1 [ 1 ] + step1 [ 30 ] ;\n output [ 2 ] = step1 [ 2 ] + step1 [ 29 ] ;\n output [ 3 ] = step1 [ 3 ] + step1 [ 28 ] ;\n output [ 4 ] = step1 [ 4 ] + step1 [ 27 ] ;\n output [ 5 ] = step1 [ 5 ] + step1 [ 26 ] ;\n output [ 6 ] = step1 [ 6 ] + step1 [ 25 ] ;\n output [ 7 ] = step1 [ 7 ] + step1 [ 24 ] ;\n output [ 8 ] = step1 [ 8 ] + step1 [ 23 ] ;\n output [ 9 ] = step1 [ 9 ] + step1 [ 22 ] ;\n output [ 10 ] = step1 [ 10 ] + step1 [ 21 ] ;\n output [ 11 ] = step1 [ 11 ] + step1 [ 20 ] ;\n output [ 12 ] = step1 [ 12 ] + step1 [ 19 ] ;\n output [ 13 ] = step1 [ 13 ] + step1 [ 18 ] ;\n output [ 14 ] = step1 [ 14 ] + step1 [ 17 ] ;\n output [ 15 ] = step1 [ 15 ] + step1 [ 16 ] ;\n output [ 16 ] = step1 [ 15 ] - step1 [ 16 ] ;\n output [ 17 ] = step1 [ 14 ] - step1 [ 17 ] ;\n output [ 18 ] = step1 [ 13 ] - step1 [ 18 ] ;\n output [ 19 ] = step1 [ 12 ] - step1 [ 19 ] ;\n output [ 20 ] = step1 [ 11 ] - step1 [ 20 ] ;\n output [ 21 ] = step1 [ 10 ] - step1 [ 21 ] ;\n output [ 22 ] = step1 [ 9 ] - step1 [ 22 ] ;\n output [ 23 ] = step1 [ 8 ] - step1 [ 23 ] ;\n output [ 24 ] = step1 [ 7 ] - step1 [ 24 ] ;\n output [ 25 ] = step1 [ 6 ] - step1 [ 25 ] ;\n output [ 26 ] = step1 [ 5 ] - step1 [ 26 ] ;\n output [ 27 ] = step1 [ 4 ] - step1 [ 27 ] ;\n output [ 28 ] = step1 [ 3 ] - step1 [ 28 ] ;\n output [ 29 ] = step1 [ 2 ] - step1 [ 29 ] ;\n output [ 30 ] = step1 [ 1 ] - step1 [ 30 ] ;\n output [ 31 ] = step1 [ 0 ] - step1 [ 31 ] ;\n }"}
{"idx": 13216, "target": 0, "func": "static void test_wl4166_1 ( ) {\n MYSQL_STMT * stmt ;\n int int_data ;\n char str_data [ 50 ] ;\n char tiny_data ;\n short small_data ;\n longlong big_data ;\n float real_data ;\n double double_data ;\n ulong length [ 7 ] ;\n my_bool is_null [ 7 ] ;\n MYSQL_BIND my_bind [ 7 ] ;\n int rc ;\n int i ;\n myheader ( \"test_wl4166_1\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS table_4166\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE table_4166(col1 tinyint NOT NULL, \" \"col2 varchar(15), col3 int, \" \"col4 smallint, col5 bigint, \" \"col6 float, col7 double, \" \"colX varchar(10) default NULL)\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"INSERT INTO table_4166(col1, col2, col3, col4, col5, col6, col7) \" \"VALUES(?, ?, ?, ?, ?, ?, ?)\" ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 7 ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_TINY ;\n my_bind [ 0 ] . buffer = ( void * ) & tiny_data ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 1 ] . buffer = ( void * ) str_data ;\n my_bind [ 1 ] . buffer_length = 1000 ;\n my_bind [ 2 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 2 ] . buffer = ( void * ) & int_data ;\n my_bind [ 3 ] . buffer_type = MYSQL_TYPE_SHORT ;\n my_bind [ 3 ] . buffer = ( void * ) & small_data ;\n my_bind [ 4 ] . buffer_type = MYSQL_TYPE_LONGLONG ;\n my_bind [ 4 ] . buffer = ( void * ) & big_data ;\n my_bind [ 5 ] . buffer_type = MYSQL_TYPE_FLOAT ;\n my_bind [ 5 ] . buffer = ( void * ) & real_data ;\n my_bind [ 6 ] . buffer_type = MYSQL_TYPE_DOUBLE ;\n my_bind [ 6 ] . buffer = ( void * ) & double_data ;\n for ( i = 0 ;\n i < ( int ) array_elements ( my_bind ) ;\n i ++ ) {\n my_bind [ i ] . length = & length [ i ] ;\n my_bind [ i ] . is_null = & is_null [ i ] ;\n is_null [ i ] = 0 ;\n }\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n int_data = 320 ;\n small_data = 1867 ;\n big_data = 1000 ;\n real_data = 2 ;\n double_data = 6578.001 ;\n for ( tiny_data = 0 ;\n tiny_data < 10 ;\n tiny_data ++ ) {\n length [ 1 ] = sprintf ( str_data , \"MySQL%d\" , int_data ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n int_data += 25 ;\n small_data += 10 ;\n big_data += 100 ;\n real_data += 1 ;\n double_data += 10.09 ;\n }\n rc = mysql_query ( mysql , \"ALTER TABLE table_4166 change colX colX varchar(20) default NULL\" ) ;\n myquery ( rc ) ;\n for ( tiny_data = 50 ;\n tiny_data < 60 ;\n tiny_data ++ ) {\n length [ 1 ] = sprintf ( str_data , \"MySQL%d\" , int_data ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n int_data += 25 ;\n small_data += 10 ;\n big_data += 100 ;\n real_data += 1 ;\n double_data += 10.09 ;\n }\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"DROP TABLE table_4166\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 13217, "target": 0, "func": "int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL ) DECLARE_PEM_rw ( PKCS7 , PKCS7 ) DECLARE_PEM_rw ( NETSCAPE_CERT_SEQUENCE , NETSCAPE_CERT_SEQUENCE ) DECLARE_PEM_rw ( PKCS8 , X509_SIG ) DECLARE_PEM_rw ( PKCS8_PRIV_KEY_INFO , PKCS8_PRIV_KEY_INFO ) # ifndef OPENSSL_NO_RSA DECLARE_PEM_rw_cb ( RSAPrivateKey , RSA ) DECLARE_PEM_rw_const ( RSAPublicKey , RSA ) DECLARE_PEM_rw ( RSA_PUBKEY , RSA ) # endif # ifndef OPENSSL_NO_DSA DECLARE_PEM_rw_cb ( DSAPrivateKey , DSA ) DECLARE_PEM_rw ( DSA_PUBKEY , DSA ) DECLARE_PEM_rw_const ( DSAparams , DSA ) # endif # ifndef OPENSSL_NO_EC DECLARE_PEM_rw_const ( ECPKParameters , EC_GROUP ) DECLARE_PEM_rw_cb ( ECPrivateKey , EC_KEY ) DECLARE_PEM_rw ( EC_PUBKEY , EC_KEY ) # endif # ifndef OPENSSL_NO_DH DECLARE_PEM_rw_const ( DHparams , DH ) DECLARE_PEM_write_const ( DHxparams , DH ) # endif DECLARE_PEM_rw_cb ( PrivateKey , EVP_PKEY )"}
{"idx": 13218, "target": 0, "func": "void record_sys_stats ( void ) {\n l_fp now ;\n u_long day ;\n if ( ! stats_control ) return ;\n get_systime ( & now ) ;\n filegen_setup ( & sysstats , now . l_ui ) ;\n day = now . l_ui / 86400 + MJD_1900 ;\n now . l_ui %= 86400 ;\n if ( sysstats . fp != NULL ) {\n fprintf ( sysstats . fp , \"%lu %s %lu %lu %lu %lu %lu %lu %lu %lu %lu %lu %lu\\n\" , day , ulfptoa ( & now , 3 ) , current_time - sys_stattime , sys_received , sys_processed , sys_newversion , sys_oldversion , sys_restricted , sys_badlength , sys_badauth , sys_declined , sys_limitrejected , sys_kodsent ) ;\n fflush ( sysstats . fp ) ;\n proto_clr_stats ( ) ;\n }\n }"}
{"idx": 13219, "target": 0, "func": "VirtIOS390Device * s390_virtio_bus_console ( VirtIOS390Bus * bus ) {\n return bus -> console ;\n }"}
{"idx": 13220, "target": 0, "func": "static void evhttp_read_trailer ( struct evhttp_connection * evcon , struct evhttp_request * req ) {\n struct evbuffer * buf = evcon -> input_buffer ;\n switch ( evhttp_parse_headers ( req , buf ) ) {\n case DATA_CORRUPTED : evhttp_connection_fail ( evcon , EVCON_HTTP_INVALID_HEADER ) ;\n break ;\n case ALL_DATA_READ : event_del ( & evcon -> ev ) ;\n evhttp_connection_done ( evcon ) ;\n break ;\n case MORE_DATA_EXPECTED : default : evhttp_add_event ( & evcon -> ev , evcon -> timeout , HTTP_READ_TIMEOUT ) ;\n break ;\n }\n }"}
{"idx": 13221, "target": 0, "func": "TEST_F ( WebFrameSimTest , NormalIFrameHasLayoutObjects ) {\n SimRequest main_resource ( \"https://example.com/test.html\" , \"text/html\" ) ;\n SimRequest frame_resource ( \"https://example.com/frame.html\" , \"text/html\" ) ;\n LoadURL ( \"https://example.com/test.html\" ) ;\n main_resource . Complete ( \"<!DOCTYPE html>\" \"<iframe src=frame.html style='display: block'></iframe>\" ) ;\n frame_resource . Complete ( \"<!DOCTYPE html>\" \"<html><body>This is a visible iframe.</body></html>\" ) ;\n Element * element = GetDocument ( ) . QuerySelector ( \"iframe\" ) ;\n HTMLFrameOwnerElement * frame_owner_element = ToHTMLFrameOwnerElement ( element ) ;\n Document * iframe_doc = frame_owner_element -> contentDocument ( ) ;\n EXPECT_TRUE ( iframe_doc -> documentElement ( ) -> GetLayoutObject ( ) ) ;\n element -> SetInlineStyleProperty ( CSSPropertyDisplay , CSSValueNone ) ;\n Compositor ( ) . BeginFrame ( ) ;\n EXPECT_FALSE ( iframe_doc -> documentElement ( ) -> GetLayoutObject ( ) ) ;\n }"}
{"idx": 13222, "target": 0, "func": "int y4m_input_fetch_frame ( y4m_input * _y4m , FILE * _fin , vpx_image_t * _img ) {\n char frame [ 6 ] ;\n int pic_sz ;\n int c_w ;\n int c_h ;\n int c_sz ;\n int bytes_per_sample = _y4m -> bit_depth > 8 ? 2 : 1 ;\n if ( ! file_read ( frame , 6 , _fin ) ) return 0 ;\n if ( memcmp ( frame , \"FRAME\" , 5 ) ) {\n fprintf ( stderr , \"Loss of framing in Y4M input data\\n\" ) ;\n return - 1 ;\n }\n if ( frame [ 5 ] != '\\n' ) {\n char c ;\n int j ;\n for ( j = 0 ;\n j < 79 && file_read ( & c , 1 , _fin ) && c != '\\n' ;\n j ++ ) {\n }\n if ( j == 79 ) {\n fprintf ( stderr , \"Error parsing Y4M frame header\\n\" ) ;\n return - 1 ;\n }\n }\n if ( ! file_read ( _y4m -> dst_buf , _y4m -> dst_buf_read_sz , _fin ) ) {\n fprintf ( stderr , \"Error reading Y4M frame data.\\n\" ) ;\n return - 1 ;\n }\n if ( ! file_read ( _y4m -> aux_buf , _y4m -> aux_buf_read_sz , _fin ) ) {\n fprintf ( stderr , \"Error reading Y4M frame data.\\n\" ) ;\n return - 1 ;\n }\n ( * _y4m -> convert ) ( _y4m , _y4m -> dst_buf , _y4m -> aux_buf ) ;\n memset ( _img , 0 , sizeof ( * _img ) ) ;\n _img -> fmt = _y4m -> vpx_fmt ;\n _img -> w = _img -> d_w = _y4m -> pic_w ;\n _img -> h = _img -> d_h = _y4m -> pic_h ;\n _img -> x_chroma_shift = _y4m -> dst_c_dec_h >> 1 ;\n _img -> y_chroma_shift = _y4m -> dst_c_dec_v >> 1 ;\n _img -> bps = _y4m -> bps ;\n pic_sz = _y4m -> pic_w * _y4m -> pic_h * bytes_per_sample ;\n c_w = ( _y4m -> pic_w + _y4m -> dst_c_dec_h - 1 ) / _y4m -> dst_c_dec_h ;\n c_w *= bytes_per_sample ;\n c_h = ( _y4m -> pic_h + _y4m -> dst_c_dec_v - 1 ) / _y4m -> dst_c_dec_v ;\n c_sz = c_w * c_h ;\n _img -> stride [ VPX_PLANE_Y ] = _img -> stride [ VPX_PLANE_ALPHA ] = _y4m -> pic_w * bytes_per_sample ;\n _img -> stride [ VPX_PLANE_U ] = _img -> stride [ VPX_PLANE_V ] = c_w ;\n _img -> planes [ VPX_PLANE_Y ] = _y4m -> dst_buf ;\n _img -> planes [ VPX_PLANE_U ] = _y4m -> dst_buf + pic_sz ;\n _img -> planes [ VPX_PLANE_V ] = _y4m -> dst_buf + pic_sz + c_sz ;\n _img -> planes [ VPX_PLANE_ALPHA ] = _y4m -> dst_buf + pic_sz + 2 * c_sz ;\n return 1 ;\n }"}
{"idx": 13223, "target": 0, "func": "int gs_main_run_string_end ( gs_main_instance * minst , int user_errors , int * pexit_code , ref * perror_object ) {\n ref rstr ;\n make_empty_const_string ( & rstr , avm_foreign | a_readonly ) ;\n return gs_main_interpret ( minst , & rstr , user_errors , pexit_code , perror_object ) ;\n }"}
{"idx": 13224, "target": 0, "func": "int jas_image_writecmpt ( jas_image_t * image , int cmptno , jas_image_coord_t x , jas_image_coord_t y , jas_image_coord_t width , jas_image_coord_t height , jas_matrix_t * data ) {\n jas_image_cmpt_t * cmpt ;\n jas_image_coord_t i ;\n jas_image_coord_t j ;\n jas_seqent_t * d ;\n jas_seqent_t * dr ;\n int drs ;\n jas_seqent_t v ;\n int k ;\n int c ;\n if ( cmptno < 0 || cmptno >= image -> numcmpts_ ) {\n return - 1 ;\n }\n cmpt = image -> cmpts_ [ cmptno ] ;\n if ( x >= cmpt -> width_ || y >= cmpt -> height_ || x + width > cmpt -> width_ || y + height > cmpt -> height_ ) {\n return - 1 ;\n }\n if ( ! jas_matrix_numrows ( data ) || ! jas_matrix_numcols ( data ) ) {\n return - 1 ;\n }\n if ( jas_matrix_numrows ( data ) != height || jas_matrix_numcols ( data ) != width ) {\n return - 1 ;\n }\n dr = jas_matrix_getref ( data , 0 , 0 ) ;\n drs = jas_matrix_rowstep ( data ) ;\n for ( i = 0 ;\n i < height ;\n ++ i , dr += drs ) {\n d = dr ;\n if ( jas_stream_seek ( cmpt -> stream_ , ( cmpt -> width_ * ( y + i ) + x ) * cmpt -> cps_ , SEEK_SET ) < 0 ) {\n return - 1 ;\n }\n for ( j = width ;\n j > 0 ;\n -- j , ++ d ) {\n v = inttobits ( * d , cmpt -> prec_ , cmpt -> sgnd_ ) ;\n for ( k = cmpt -> cps_ ;\n k > 0 ;\n -- k ) {\n c = ( v >> ( 8 * ( cmpt -> cps_ - 1 ) ) ) & 0xff ;\n if ( jas_stream_putc ( cmpt -> stream_ , ( unsigned char ) c ) == EOF ) {\n return - 1 ;\n }\n v <<= 8 ;\n }\n }\n }\n return 0 ;\n }"}
{"idx": 13225, "target": 0, "func": "static int parse_picture_segment ( AVCodecContext * avctx , const uint8_t * buf , int buf_size ) {\n PGSSubContext * ctx = avctx -> priv_data ;\n uint8_t sequence_desc ;\n unsigned int rle_bitmap_len , width , height ;\n uint16_t picture_id ;\n if ( buf_size <= 4 ) return - 1 ;\n buf_size -= 4 ;\n picture_id = bytestream_get_be16 ( & buf ) ;\n buf ++ ;\n sequence_desc = bytestream_get_byte ( & buf ) ;\n if ( ! ( sequence_desc & 0x80 ) ) {\n if ( buf_size > ctx -> pictures [ picture_id ] . rle_remaining_len ) return - 1 ;\n memcpy ( ctx -> pictures [ picture_id ] . rle + ctx -> pictures [ picture_id ] . rle_data_len , buf , buf_size ) ;\n ctx -> pictures [ picture_id ] . rle_data_len += buf_size ;\n ctx -> pictures [ picture_id ] . rle_remaining_len -= buf_size ;\n return 0 ;\n }\n if ( buf_size <= 7 ) return - 1 ;\n buf_size -= 7 ;\n rle_bitmap_len = bytestream_get_be24 ( & buf ) - 2 * 2 ;\n width = bytestream_get_be16 ( & buf ) ;\n height = bytestream_get_be16 ( & buf ) ;\n if ( avctx -> width < width || avctx -> height < height ) {\n av_log ( avctx , AV_LOG_ERROR , \"Bitmap dimensions larger than video.\\n\" ) ;\n return - 1 ;\n }\n if ( buf_size > rle_bitmap_len ) {\n av_log ( avctx , AV_LOG_ERROR , \"too much RLE data\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n ctx -> pictures [ picture_id ] . w = width ;\n ctx -> pictures [ picture_id ] . h = height ;\n av_fast_malloc ( & ctx -> pictures [ picture_id ] . rle , & ctx -> pictures [ picture_id ] . rle_buffer_size , rle_bitmap_len ) ;\n if ( ! ctx -> pictures [ picture_id ] . rle ) return - 1 ;\n memcpy ( ctx -> pictures [ picture_id ] . rle , buf , buf_size ) ;\n ctx -> pictures [ picture_id ] . rle_data_len = buf_size ;\n ctx -> pictures [ picture_id ] . rle_remaining_len = rle_bitmap_len - buf_size ;\n return 0 ;\n }"}
{"idx": 13226, "target": 0, "func": "static VALUE ossl_cipher_set_padding ( VALUE self , VALUE padding ) {\n EVP_CIPHER_CTX * ctx ;\n int pad = NUM2INT ( padding ) ;\n GetCipher ( self , ctx ) ;\n if ( EVP_CIPHER_CTX_set_padding ( ctx , pad ) != 1 ) ossl_raise ( eCipherError , NULL ) ;\n return padding ;\n }"}
{"idx": 13227, "target": 0, "func": "static void dissect_zcl_power_profile ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_pwr_prof_id , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_energy_phase_id , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_pwr_prof_rem_ctrl , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_pwr_prof_state , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n }"}
{"idx": 13228, "target": 0, "func": "void proto_register_zbee_zcl_met_idt ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_zbee_zcl_met_idt_attr_id , {\n \"Attribute\" , \"zbee_zcl_ha.metidt.attr_id\" , FT_UINT16 , BASE_HEX , VALS ( zbee_zcl_met_idt_attr_names ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_met_idt_meter_type_id , {\n \"Meter Type ID\" , \"zbee_zcl_ha.metidt.attr.meter_type.id\" , FT_UINT16 , BASE_HEX , VALS ( zbee_zcl_met_idt_meter_type_names ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_met_idt_data_quality_id , {\n \"Data Quality ID\" , \"zbee_zcl_ha.metidt.attr.data_quality.id\" , FT_UINT16 , BASE_HEX , VALS ( zbee_zcl_met_idt_data_quality_names ) , 0x00 , NULL , HFILL }\n }\n }\n ;\n proto_zbee_zcl_met_idt = proto_register_protocol ( \"ZigBee ZCL Meter Identification\" , \"ZCL Meter Identification\" , ZBEE_PROTOABBREV_ZCL_METIDT ) ;\n proto_register_field_array ( proto_zbee_zcl_met_idt , hf , array_length ( hf ) ) ;\n register_dissector ( ZBEE_PROTOABBREV_ZCL_METIDT , dissect_zbee_zcl_met_idt , proto_zbee_zcl_met_idt ) ;\n }"}
{"idx": 13229, "target": 0, "func": "int set_wep_key ( char * string ) {\n int bit = 0 ;\n char * p , type ;\n char * tok ;\n char s [ strlen ( string ) + 1 ] ;\n u_char tmp_wkey [ 512 ] ;\n size_t tmp_wkey_len ;\n char tmp [ 128 ] ;\n memset ( GBL_WIFI -> wkey , 0 , sizeof ( GBL_WIFI -> wkey ) ) ;\n GBL_WIFI -> wkey_len = 0 ;\n strcpy ( s , string ) ;\n p = ec_strtok ( s , \":\" , & tok ) ;\n if ( p == NULL ) SEMIFATAL_ERROR ( \"Invalid parsing of the WEP key\" ) ;\n bit = atoi ( p ) ;\n if ( bit <= 0 ) SEMIFATAL_ERROR ( \"Unsupported WEP key length\" ) ;\n tmp_wkey_len = bit / 8 - WEP_IV_LEN ;\n if ( bit != 64 && bit != 128 ) SEMIFATAL_ERROR ( \"Unsupported WEP key length\" ) ;\n p = ec_strtok ( NULL , \":\" , & tok ) ;\n if ( p == NULL ) SEMIFATAL_ERROR ( \"Invalid parsing of the WEP key\" ) ;\n type = * p ;\n p = ec_strtok ( NULL , \":\" , & tok ) ;\n if ( p == NULL ) SEMIFATAL_ERROR ( \"Invalid parsing of the WEP key\" ) ;\n if ( type == 's' ) {\n if ( strescape ( ( char * ) tmp_wkey , p , strlen ( tmp_wkey ) + 1 ) != ( int ) tmp_wkey_len ) SEMIFATAL_ERROR ( \"Specified WEP key length does not match the given string\" ) ;\n }\n else if ( type == 'p' ) {\n if ( bit == 64 ) make_key_64 ( ( u_char * ) p , tmp_wkey ) ;\n else if ( bit == 128 ) make_key_128 ( ( u_char * ) p , tmp_wkey ) ;\n }\n else {\n SEMIFATAL_ERROR ( \"Invalid parsing of the WEP key\" ) ;\n }\n USER_MSG ( \"Using WEP key: %s\\n\" , str_tohex ( tmp_wkey , tmp_wkey_len , tmp , sizeof ( tmp ) ) ) ;\n memcpy ( GBL_WIFI -> wkey , tmp_wkey , sizeof ( GBL_WIFI -> wkey ) ) ;\n GBL_WIFI -> wkey_len = tmp_wkey_len ;\n return E_SUCCESS ;\n }"}
{"idx": 13230, "target": 0, "func": "static List * add_function_defaults ( List * args , HeapTuple func_tuple ) {\n Form_pg_proc funcform = ( Form_pg_proc ) GETSTRUCT ( func_tuple ) ;\n int nargsprovided = list_length ( args ) ;\n List * defaults ;\n int ndelete ;\n defaults = fetch_function_defaults ( func_tuple ) ;\n ndelete = nargsprovided + list_length ( defaults ) - funcform -> pronargs ;\n if ( ndelete < 0 ) elog ( ERROR , \"not enough default arguments\" ) ;\n while ( ndelete -- > 0 ) defaults = list_delete_first ( defaults ) ;\n return list_concat ( list_copy ( args ) , defaults ) ;\n }"}
{"idx": 13231, "target": 0, "func": "static void server_send_summary ( struct client * client , struct config * config ) {\n char * path = NULL ;\n char * program ;\n const char * subcommand ;\n struct rule * rule = NULL ;\n size_t i ;\n const char * * req_argv = NULL ;\n bool ok_any = false ;\n int status_all = 0 ;\n struct process process ;\n struct evbuffer * output = NULL ;\n if ( client -> protocol == 1 ) {\n output = evbuffer_new ( ) ;\n if ( output == NULL ) die ( \"internal error: cannot create output buffer\" ) ;\n }\n for ( i = 0 ;\n i < config -> count ;\n i ++ ) {\n memset ( & process , 0 , sizeof ( process ) ) ;\n process . client = client ;\n rule = config -> rules [ i ] ;\n if ( ! server_config_acl_permit ( rule , client ) ) continue ;\n if ( rule -> summary == NULL ) continue ;\n ok_any = true ;\n path = rule -> program ;\n req_argv = xcalloc ( 4 , sizeof ( char * ) ) ;\n program = strrchr ( path , '/' ) ;\n if ( program == NULL ) program = path ;\n else program ++ ;\n req_argv [ 0 ] = program ;\n req_argv [ 1 ] = rule -> summary ;\n subcommand = rule -> subcommand ;\n if ( strcmp ( subcommand , \"ALL\" ) == 0 || strcmp ( subcommand , \"EMPTY\" ) == 0 ) req_argv [ 2 ] = NULL ;\n else req_argv [ 2 ] = subcommand ;\n req_argv [ 3 ] = NULL ;\n process . command = rule -> summary ;\n process . argv = req_argv ;\n process . rule = rule ;\n if ( server_process_run ( & process ) ) {\n if ( client -> protocol == 1 ) if ( evbuffer_add_buffer ( output , process . output ) < 0 ) die ( \"internal error: cannot copy data from output buffer\" ) ;\n if ( process . status != 0 ) status_all = process . status ;\n }\n free ( req_argv ) ;\n }\n if ( WIFEXITED ( status_all ) ) status_all = ( int ) WEXITSTATUS ( process . status ) ;\n else status_all = - 1 ;\n if ( ok_any ) client -> finish ( client , output , status_all ) ;\n else {\n notice ( \"summary request from user %s, but no defined summaries\" , client -> user ) ;\n client -> error ( client , ERROR_UNKNOWN_COMMAND , \"Unknown command\" ) ;\n }\n if ( output != NULL ) evbuffer_free ( output ) ;\n }"}
{"idx": 13232, "target": 0, "func": "static void pdf_run_gs_end ( fz_context * ctx , pdf_processor * proc ) {\n }"}
{"idx": 13233, "target": 0, "func": "static void jas_image_setbbox ( jas_image_t * image ) {\n jas_image_cmpt_t * cmpt ;\n int cmptno ;\n int_fast32_t x ;\n int_fast32_t y ;\n if ( image -> numcmpts_ > 0 ) {\n cmpt = image -> cmpts_ [ 0 ] ;\n image -> tlx_ = cmpt -> tlx_ ;\n image -> tly_ = cmpt -> tly_ ;\n image -> brx_ = cmpt -> tlx_ + cmpt -> hstep_ * ( cmpt -> width_ - 1 ) + 1 ;\n image -> bry_ = cmpt -> tly_ + cmpt -> vstep_ * ( cmpt -> height_ - 1 ) + 1 ;\n for ( cmptno = 1 ;\n cmptno < image -> numcmpts_ ;\n ++ cmptno ) {\n cmpt = image -> cmpts_ [ cmptno ] ;\n if ( image -> tlx_ > cmpt -> tlx_ ) {\n image -> tlx_ = cmpt -> tlx_ ;\n }\n if ( image -> tly_ > cmpt -> tly_ ) {\n image -> tly_ = cmpt -> tly_ ;\n }\n x = cmpt -> tlx_ + cmpt -> hstep_ * ( cmpt -> width_ - 1 ) + 1 ;\n if ( image -> brx_ < x ) {\n image -> brx_ = x ;\n }\n y = cmpt -> tly_ + cmpt -> vstep_ * ( cmpt -> height_ - 1 ) + 1 ;\n if ( image -> bry_ < y ) {\n image -> bry_ = y ;\n }\n }\n }\n else {\n image -> tlx_ = 0 ;\n image -> tly_ = 0 ;\n image -> brx_ = 0 ;\n image -> bry_ = 0 ;\n }\n }"}
{"idx": 13234, "target": 0, "func": "static void map_linear_vram ( CirrusVGAState * s ) {\n if ( s -> bustype == CIRRUS_BUSTYPE_PCI && ! s -> linear_vram ) {\n s -> linear_vram = true ;\n memory_region_add_subregion_overlap ( & s -> pci_bar , 0 , & s -> vga . vram , 1 ) ;\n }\n map_linear_vram_bank ( s , 0 ) ;\n map_linear_vram_bank ( s , 1 ) ;\n }"}
{"idx": 13235, "target": 0, "func": "int TS_MSG_IMPRINT_print_bio ( BIO * bio , TS_MSG_IMPRINT * a ) {\n ASN1_OCTET_STRING * msg ;\n TS_X509_ALGOR_print_bio ( bio , a -> hash_algo ) ;\n BIO_printf ( bio , \"Message data:\\n\" ) ;\n msg = a -> hashed_msg ;\n BIO_dump_indent ( bio , ( const char * ) ASN1_STRING_data ( msg ) , ASN1_STRING_length ( msg ) , 4 ) ;\n return 1 ;\n }"}
{"idx": 13236, "target": 0, "func": "void auth_server_connection_remove_request ( struct auth_server_connection * conn , unsigned int id ) {\n i_assert ( conn -> handshake_received ) ;\n hash_table_remove ( conn -> requests , POINTER_CAST ( id ) ) ;\n }"}
{"idx": 13237, "target": 0, "func": "static int get_str_opt ( struct archive_write * a , struct archive_string * s , size_t maxsize , const char * key , const char * value ) {\n if ( strlen ( value ) > maxsize ) {\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"Value is longer than %zu characters \" \"for option ``%s''\" , maxsize , key ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n archive_strcpy ( s , value ) ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 13238, "target": 1, "func": "OFCondition parseAssociate ( unsigned char * buf , unsigned long pduLength , PRV_ASSOCIATEPDU * assoc ) {\n OFCondition cond = EC_Normal ;\n unsigned char type ;\n unsigned long itemLength ;\n PRV_PRESENTATIONCONTEXTITEM * context ;\n ( void ) memset ( assoc , 0 , sizeof ( * assoc ) ) ;\n if ( ( assoc -> presentationContextList = LST_Create ( ) ) == NULL ) return EC_MemoryExhausted ;\n if ( ( assoc -> userInfo . SCUSCPRoleList = LST_Create ( ) ) == NULL ) return EC_MemoryExhausted ;\n if ( pduLength < 2 + 2 + 16 + 16 + 32 ) return makeLengthError ( \"associate PDU\" , pduLength , 2 + 2 + 16 + 16 + 32 ) ;\n assoc -> type = * buf ++ ;\n assoc -> rsv1 = * buf ++ ;\n EXTRACT_LONG_BIG ( buf , assoc -> length ) ;\n buf += 4 ;\n EXTRACT_SHORT_BIG ( buf , assoc -> protocol ) ;\n buf += 2 ;\n pduLength -= 2 ;\n if ( ( assoc -> protocol & DUL_PROTOCOL ) == 0 ) {\n char buffer [ 256 ] ;\n sprintf ( buffer , \"DUL Unsupported peer protocol %04x;\n expected %04x in %s\" , assoc -> protocol , DUL_PROTOCOL , \"parseAssociate\" ) ;\n return makeDcmnetCondition ( DULC_UNSUPPORTEDPEERPROTOCOL , OF_error , buffer ) ;\n }\n assoc -> rsv2 [ 0 ] = * buf ++ ;\n pduLength -- ;\n assoc -> rsv2 [ 1 ] = * buf ++ ;\n pduLength -- ;\n ( void ) strncpy ( assoc -> calledAPTitle , ( char * ) buf , 16 ) ;\n assoc -> calledAPTitle [ 16 ] = '\\0' ;\n trim_trailing_spaces ( assoc -> calledAPTitle ) ;\n buf += 16 ;\n pduLength -= 16 ;\n ( void ) strncpy ( assoc -> callingAPTitle , ( char * ) buf , 16 ) ;\n assoc -> callingAPTitle [ 16 ] = '\\0' ;\n trim_trailing_spaces ( assoc -> callingAPTitle ) ;\n buf += 16 ;\n pduLength -= 16 ;\n ( void ) memcpy ( assoc -> rsv3 , buf , 32 ) ;\n buf += 32 ;\n pduLength -= 32 ;\n if ( DCM_dcmnetLogger . isEnabledFor ( OFLogger : : DEBUG_LOG_LEVEL ) ) {\n const char * s ;\n DCMNET_DEBUG ( \"Parsing an A-ASSOCIATE PDU\" ) ;\n if ( assoc -> type == DUL_TYPEASSOCIATERQ ) s = \"A-ASSOCIATE RQ\" ;\n else if ( assoc -> type == DUL_TYPEASSOCIATEAC ) s = \"A-ASSOCIATE AC\" ;\n else s = \"Unknown: Programming bug in parseAssociate\" ;\n DCMNET_TRACE ( \"PDU type: \" << STD_NAMESPACE hex << ( ( unsigned int ) assoc -> type ) << STD_NAMESPACE dec << \" (\" << s << \"), PDU Length: \" << assoc -> length << OFendl << \"DICOM Protocol: \" << STD_NAMESPACE hex << assoc -> protocol << STD_NAMESPACE dec << OFendl << \"Called AP Title: \" << assoc -> calledAPTitle << OFendl << \"Calling AP Title: \" << assoc -> callingAPTitle ) ;\n }\n while ( ( cond . good ( ) ) && ( pduLength > 0 ) ) {\n type = * buf ;\n DCMNET_TRACE ( \"Parsing remaining \" << pduLength << \" bytes of A-ASSOCIATE PDU\" << OFendl << \"Next item type: \" << STD_NAMESPACE hex << STD_NAMESPACE setfill ( '0' ) << STD_NAMESPACE setw ( 2 ) << ( ( unsigned int ) type ) ) ;\n switch ( type ) {\n case DUL_TYPEAPPLICATIONCONTEXT : cond = parseSubItem ( & assoc -> applicationContext , buf , & itemLength , pduLength ) ;\n if ( cond . good ( ) ) {\n buf += itemLength ;\n pduLength -= itemLength ;\n DCMNET_TRACE ( \"Successfully parsed Application Context\" ) ;\n }\n break ;\n case DUL_TYPEPRESENTATIONCONTEXTRQ : case DUL_TYPEPRESENTATIONCONTEXTAC : context = ( PRV_PRESENTATIONCONTEXTITEM * ) malloc ( sizeof ( PRV_PRESENTATIONCONTEXTITEM ) ) ;\n if ( context == NULL ) return EC_MemoryExhausted ;\n ( void ) memset ( context , 0 , sizeof ( * context ) ) ;\n cond = parsePresentationContext ( type , context , buf , & itemLength , pduLength ) ;\n if ( cond . bad ( ) ) return cond ;\n buf += itemLength ;\n pduLength -= itemLength ;\n LST_Enqueue ( & assoc -> presentationContextList , ( LST_NODE * ) context ) ;\n DCMNET_TRACE ( \"Successfully parsed Presentation Context\" ) ;\n break ;\n case DUL_TYPEUSERINFO : cond = parseUserInfo ( & assoc -> userInfo , buf , & itemLength , assoc -> type , pduLength ) ;\n if ( cond . bad ( ) ) return cond ;\n buf += itemLength ;\n pduLength -= itemLength ;\n DCMNET_TRACE ( \"Successfully parsed User Information\" ) ;\n break ;\n default : cond = parseDummy ( buf , & itemLength , pduLength ) ;\n buf += itemLength ;\n pduLength -= itemLength ;\n break ;\n }\n }\n return cond ;\n }"}
{"idx": 13239, "target": 0, "func": "static int adx_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n int buf_size = avpkt -> size ;\n ADXContext * c = avctx -> priv_data ;\n int16_t * * samples ;\n int samples_offset ;\n const uint8_t * buf = avpkt -> data ;\n int num_blocks , ch , ret ;\n if ( c -> eof ) {\n * got_frame_ptr = 0 ;\n return buf_size ;\n }\n if ( ! c -> header_parsed && buf_size >= 2 && AV_RB16 ( buf ) == 0x8000 ) {\n int header_size ;\n if ( ( ret = avpriv_adx_decode_header ( avctx , buf , buf_size , & header_size , c -> coeff ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"error parsing ADX header\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n c -> channels = avctx -> channels ;\n c -> header_parsed = 1 ;\n if ( buf_size < header_size ) return AVERROR_INVALIDDATA ;\n buf += header_size ;\n buf_size -= header_size ;\n }\n if ( ! c -> header_parsed ) return AVERROR_INVALIDDATA ;\n num_blocks = buf_size / ( BLOCK_SIZE * c -> channels ) ;\n if ( ! num_blocks || buf_size % ( BLOCK_SIZE * avctx -> channels ) ) {\n if ( buf_size >= 4 && ( AV_RB16 ( buf ) & 0x8000 ) ) {\n c -> eof = 1 ;\n * got_frame_ptr = 0 ;\n return avpkt -> size ;\n }\n return AVERROR_INVALIDDATA ;\n }\n frame -> nb_samples = num_blocks * BLOCK_SAMPLES ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n samples = ( int16_t * * ) frame -> extended_data ;\n samples_offset = 0 ;\n while ( num_blocks -- ) {\n for ( ch = 0 ;\n ch < c -> channels ;\n ch ++ ) {\n if ( adx_decode ( c , samples [ ch ] , samples_offset , buf , ch ) ) {\n c -> eof = 1 ;\n buf = avpkt -> data + avpkt -> size ;\n break ;\n }\n buf_size -= BLOCK_SIZE ;\n buf += BLOCK_SIZE ;\n }\n samples_offset += BLOCK_SAMPLES ;\n }\n * got_frame_ptr = 1 ;\n return buf - avpkt -> data ;\n }"}
{"idx": 13240, "target": 0, "func": "static void macio_ide_reset ( DeviceState * dev ) {\n MACIOIDEState * d = MACIO_IDE ( dev ) ;\n ide_bus_reset ( & d -> bus ) ;\n }"}
{"idx": 13241, "target": 0, "func": "static int selinux_cred_alloc_blank ( struct cred * cred , gfp_t gfp ) {\n struct task_security_struct * tsec ;\n tsec = kzalloc ( sizeof ( struct task_security_struct ) , gfp ) ;\n if ( ! tsec ) return - ENOMEM ;\n cred -> security = tsec ;\n return 0 ;\n }"}
{"idx": 13242, "target": 0, "func": "void jpc_qmfb_split_colgrp ( jpc_fix_t * a , int numrows , int stride , int parity ) {\n int bufsize = JPC_CEILDIVPOW2 ( numrows , 1 ) ;\n jpc_fix_t splitbuf [ QMFB_SPLITBUFSIZE * JPC_QMFB_COLGRPSIZE ] ;\n jpc_fix_t * buf = splitbuf ;\n jpc_fix_t * srcptr ;\n jpc_fix_t * dstptr ;\n register jpc_fix_t * srcptr2 ;\n register jpc_fix_t * dstptr2 ;\n register int n ;\n register int i ;\n int m ;\n int hstartrow ;\n if ( bufsize > QMFB_SPLITBUFSIZE ) {\n if ( ! ( buf = jas_alloc3 ( bufsize , JPC_QMFB_COLGRPSIZE , sizeof ( jpc_fix_t ) ) ) ) {\n abort ( ) ;\n }\n }\n if ( numrows >= 2 ) {\n hstartrow = ( numrows + 1 - parity ) >> 1 ;\n m = numrows - hstartrow ;\n n = m ;\n dstptr = buf ;\n srcptr = & a [ ( 1 - parity ) * stride ] ;\n while ( n -- > 0 ) {\n dstptr2 = dstptr ;\n srcptr2 = srcptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n * dstptr2 = * srcptr2 ;\n ++ dstptr2 ;\n ++ srcptr2 ;\n }\n dstptr += JPC_QMFB_COLGRPSIZE ;\n srcptr += stride << 1 ;\n }\n dstptr = & a [ ( 1 - parity ) * stride ] ;\n srcptr = & a [ ( 2 - parity ) * stride ] ;\n n = numrows - m - ( ! parity ) ;\n while ( n -- > 0 ) {\n dstptr2 = dstptr ;\n srcptr2 = srcptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n * dstptr2 = * srcptr2 ;\n ++ dstptr2 ;\n ++ srcptr2 ;\n }\n dstptr += stride ;\n srcptr += stride << 1 ;\n }\n dstptr = & a [ hstartrow * stride ] ;\n srcptr = buf ;\n n = m ;\n while ( n -- > 0 ) {\n dstptr2 = dstptr ;\n srcptr2 = srcptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n * dstptr2 = * srcptr2 ;\n ++ dstptr2 ;\n ++ srcptr2 ;\n }\n dstptr += stride ;\n srcptr += JPC_QMFB_COLGRPSIZE ;\n }\n }\n if ( buf != splitbuf ) {\n jas_free ( buf ) ;\n }\n }"}
{"idx": 13243, "target": 0, "func": "static CURLcode AddFormData ( struct FormData * * formp , enum formtype type , const void * line , size_t length , curl_off_t * size ) {\n struct FormData * newform = malloc ( sizeof ( struct FormData ) ) ;\n if ( ! newform ) return CURLE_OUT_OF_MEMORY ;\n newform -> next = NULL ;\n if ( type <= FORM_CONTENT ) {\n if ( ! length ) length = strlen ( ( char * ) line ) ;\n newform -> line = malloc ( length + 1 ) ;\n if ( ! newform -> line ) {\n free ( newform ) ;\n return CURLE_OUT_OF_MEMORY ;\n }\n memcpy ( newform -> line , line , length ) ;\n newform -> length = length ;\n newform -> line [ length ] = 0 ;\n }\n else newform -> line = ( char * ) line ;\n newform -> type = type ;\n if ( * formp ) {\n ( * formp ) -> next = newform ;\n * formp = newform ;\n }\n else * formp = newform ;\n if ( size ) {\n if ( type != FORM_FILE ) * size += length ;\n else {\n if ( ! strequal ( \"-\" , newform -> line ) ) {\n struct_stat file ;\n if ( ! stat ( newform -> line , & file ) && ! S_ISDIR ( file . st_mode ) ) * size += filesize ( newform -> line , file ) ;\n else return CURLE_BAD_FUNCTION_ARGUMENT ;\n }\n }\n }\n return CURLE_OK ;\n }"}
{"idx": 13244, "target": 0, "func": "void gistcostestimate ( PlannerInfo * root , IndexPath * path , double loop_count , Cost * indexStartupCost , Cost * indexTotalCost , Selectivity * indexSelectivity , double * indexCorrelation ) {\n IndexOptInfo * index = path -> indexinfo ;\n List * qinfos ;\n GenericCosts costs ;\n Cost descentCost ;\n qinfos = deconstruct_indexquals ( path ) ;\n MemSet ( & costs , 0 , sizeof ( costs ) ) ;\n genericcostestimate ( root , path , loop_count , qinfos , & costs ) ;\n if ( index -> tree_height < 0 ) {\n if ( index -> pages > 1 ) index -> tree_height = ( int ) ( log ( index -> pages ) / log ( 100.0 ) ) ;\n else index -> tree_height = 0 ;\n }\n if ( index -> tuples > 1 ) {\n descentCost = ceil ( log ( index -> tuples ) ) * cpu_operator_cost ;\n costs . indexStartupCost += descentCost ;\n costs . indexTotalCost += costs . num_sa_scans * descentCost ;\n }\n descentCost = ( index -> tree_height + 1 ) * 50.0 * cpu_operator_cost ;\n costs . indexStartupCost += descentCost ;\n costs . indexTotalCost += costs . num_sa_scans * descentCost ;\n * indexStartupCost = costs . indexStartupCost ;\n * indexTotalCost = costs . indexTotalCost ;\n * indexSelectivity = costs . indexSelectivity ;\n * indexCorrelation = costs . indexCorrelation ;\n }"}
{"idx": 13245, "target": 0, "func": "TSReturnCode TSHttpTxnInfoIntGet ( TSHttpTxn txnp , TSHttpTxnInfoKey key , TSMgmtInt * value ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) value ) == TS_SUCCESS ) ;\n HttpSM * s = reinterpret_cast < HttpSM * > ( txnp ) ;\n HttpCacheSM * c_sm = & ( s -> get_cache_sm ( ) ) ;\n switch ( key ) {\n case TS_TXN_INFO_CACHE_HIT_RAM : * value = ( static_cast < TSMgmtInt > ( c_sm -> is_ram_cache_hit ( ) ) ) ;\n break ;\n case TS_TXN_INFO_CACHE_COMPRESSED_IN_RAM : * value = ( static_cast < TSMgmtInt > ( c_sm -> is_compressed_in_ram ( ) ) ) ;\n break ;\n case TS_TXN_INFO_CACHE_HIT_RWW : * value = ( static_cast < TSMgmtInt > ( c_sm -> is_readwhilewrite_inprogress ( ) ) ) ;\n break ;\n case TS_TXN_INFO_CACHE_OPEN_READ_TRIES : * value = ( static_cast < TSMgmtInt > ( c_sm -> get_open_read_tries ( ) ) ) ;\n break ;\n case TS_TXN_INFO_CACHE_OPEN_WRITE_TRIES : * value = ( static_cast < TSMgmtInt > ( c_sm -> get_open_write_tries ( ) ) ) ;\n break ;\n case TS_TXN_INFO_CACHE_VOLUME : * value = ( static_cast < TSMgmtInt > ( c_sm -> get_volume_number ( ) ) ) ;\n break ;\n default : return TS_ERROR ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 13246, "target": 0, "func": "void close_files ( ) {\n DBUG_ENTER ( \"close_files\" ) ;\n for ( ;\n cur_file >= file_stack ;\n cur_file -- ) {\n if ( cur_file -> file && cur_file -> file != stdin ) {\n DBUG_PRINT ( \"info\" , ( \"closing file: %s\" , cur_file -> file_name ) ) ;\n fclose ( cur_file -> file ) ;\n }\n my_free ( cur_file -> file_name ) ;\n cur_file -> file_name = 0 ;\n }\n DBUG_VOID_RETURN ;\n }"}
{"idx": 13247, "target": 0, "func": "static int word_match ( const byte * uid , size_t uidlen , const byte * pattern ) {\n size_t wlen , n ;\n const byte * p ;\n const byte * s ;\n for ( s = pattern ;\n * s ;\n ) {\n do {\n while ( uidlen && ! word_match_chars [ * uid ] ) uid ++ , uidlen -- ;\n n = uidlen ;\n p = uid ;\n while ( n && word_match_chars [ * p ] ) p ++ , n -- ;\n wlen = p - uid ;\n for ( n = 0 , p = uid ;\n n < wlen && s [ n ] != ' ' && s [ n ] ;\n n ++ , p ++ ) {\n if ( word_match_chars [ * p ] != s [ n ] ) break ;\n }\n if ( n == wlen && ( s [ n ] == ' ' || ! s [ n ] ) ) break ;\n uid += wlen ;\n uidlen -= wlen ;\n }\n while ( uidlen ) ;\n if ( ! uidlen ) return - 1 ;\n for ( ;\n * s != ' ' && * s ;\n s ++ ) ;\n if ( * s ) s ++ ;\n }\n return 0 ;\n }"}
{"idx": 13248, "target": 0, "func": "static void flush ( AVCodecContext * avctx ) {\n WMAProDecodeCtx * s = avctx -> priv_data ;\n int i ;\n for ( i = 0 ;\n i < avctx -> channels ;\n i ++ ) memset ( s -> channel [ i ] . out , 0 , s -> samples_per_frame * sizeof ( * s -> channel [ i ] . out ) ) ;\n s -> packet_loss = 1 ;\n }"}
{"idx": 13249, "target": 0, "func": "static void memset_float ( float * buf , float val , int size ) {\n while ( size -- ) * buf ++ = val ;\n }"}
{"idx": 13250, "target": 0, "func": "static void iax2_add_ts_fields ( packet_info * pinfo , proto_tree * iax2_tree , tvbuff_t * tvb , iax_packet_data * iax_packet , guint16 shortts ) {\n guint longts = shortts ;\n nstime_t ts ;\n proto_item * item ;\n if ( iax_packet -> call_data == NULL ) {\n return ;\n }\n if ( iax_packet -> abstime . secs == - 1 ) {\n time_t start_secs = iax_packet -> call_data -> start_time . secs ;\n time_t abs_secs = start_secs + longts / 1000 ;\n if ( pinfo -> abs_ts . secs - abs_secs > MAX_SECS_DIFF ) {\n proto_tree_add_expert ( iax2_tree , pinfo , & ei_iax_invalid_ts , tvb , 0 , 0 ) ;\n }\n else {\n while ( abs_secs < pinfo -> fd -> abs_ts . secs - 16 ) {\n longts += 32768 ;\n abs_secs = start_secs + longts / 1000 ;\n }\n }\n iax_packet -> abstime . secs = abs_secs ;\n iax_packet -> abstime . nsecs = iax_packet -> call_data -> start_time . nsecs + ( longts % 1000 ) * 1000000 ;\n if ( iax_packet -> abstime . nsecs >= 1000000000 ) {\n iax_packet -> abstime . nsecs -= 1000000000 ;\n iax_packet -> abstime . secs ++ ;\n }\n }\n iax2_info -> timestamp = longts ;\n if ( iax2_tree ) {\n item = proto_tree_add_time ( iax2_tree , hf_iax2_absts , tvb , 0 , 0 , & iax_packet -> abstime ) ;\n PROTO_ITEM_SET_GENERATED ( item ) ;\n ts = pinfo -> fd -> abs_ts ;\n nstime_delta ( & ts , & ts , & iax_packet -> abstime ) ;\n item = proto_tree_add_time ( iax2_tree , hf_iax2_lateness , tvb , 0 , 0 , & ts ) ;\n PROTO_ITEM_SET_GENERATED ( item ) ;\n }\n }"}
{"idx": 13251, "target": 0, "func": "static int vc1_decode_p_mb_intfr ( VC1Context * v ) {\n MpegEncContext * s = & v -> s ;\n GetBitContext * gb = & s -> gb ;\n int i ;\n int mb_pos = s -> mb_x + s -> mb_y * s -> mb_stride ;\n int cbp = 0 ;\n int mqdiff , mquant ;\n int ttmb = v -> ttfrm ;\n int mb_has_coeffs = 1 ;\n int dmv_x , dmv_y ;\n int val ;\n int first_block = 1 ;\n int dst_idx , off ;\n int skipped , fourmv = 0 , twomv = 0 ;\n int block_cbp = 0 , pat , block_tt = 0 ;\n int idx_mbmode = 0 , mvbp ;\n int stride_y , fieldtx ;\n mquant = v -> pq ;\n if ( v -> skip_is_raw ) skipped = get_bits1 ( gb ) ;\n else skipped = v -> s . mbskip_table [ mb_pos ] ;\n if ( ! skipped ) {\n if ( v -> fourmvswitch ) idx_mbmode = get_vlc2 ( gb , v -> mbmode_vlc -> table , VC1_INTFR_4MV_MBMODE_VLC_BITS , 2 ) ;\n else idx_mbmode = get_vlc2 ( gb , v -> mbmode_vlc -> table , VC1_INTFR_NON4MV_MBMODE_VLC_BITS , 2 ) ;\n switch ( ff_vc1_mbmode_intfrp [ v -> fourmvswitch ] [ idx_mbmode ] [ 0 ] ) {\n case MV_PMODE_INTFR_4MV : fourmv = 1 ;\n v -> blk_mv_type [ s -> block_index [ 0 ] ] = 0 ;\n v -> blk_mv_type [ s -> block_index [ 1 ] ] = 0 ;\n v -> blk_mv_type [ s -> block_index [ 2 ] ] = 0 ;\n v -> blk_mv_type [ s -> block_index [ 3 ] ] = 0 ;\n break ;\n case MV_PMODE_INTFR_4MV_FIELD : fourmv = 1 ;\n v -> blk_mv_type [ s -> block_index [ 0 ] ] = 1 ;\n v -> blk_mv_type [ s -> block_index [ 1 ] ] = 1 ;\n v -> blk_mv_type [ s -> block_index [ 2 ] ] = 1 ;\n v -> blk_mv_type [ s -> block_index [ 3 ] ] = 1 ;\n break ;\n case MV_PMODE_INTFR_2MV_FIELD : twomv = 1 ;\n v -> blk_mv_type [ s -> block_index [ 0 ] ] = 1 ;\n v -> blk_mv_type [ s -> block_index [ 1 ] ] = 1 ;\n v -> blk_mv_type [ s -> block_index [ 2 ] ] = 1 ;\n v -> blk_mv_type [ s -> block_index [ 3 ] ] = 1 ;\n break ;\n case MV_PMODE_INTFR_1MV : v -> blk_mv_type [ s -> block_index [ 0 ] ] = 0 ;\n v -> blk_mv_type [ s -> block_index [ 1 ] ] = 0 ;\n v -> blk_mv_type [ s -> block_index [ 2 ] ] = 0 ;\n v -> blk_mv_type [ s -> block_index [ 3 ] ] = 0 ;\n break ;\n }\n if ( ff_vc1_mbmode_intfrp [ v -> fourmvswitch ] [ idx_mbmode ] [ 0 ] == MV_PMODE_INTFR_INTRA ) {\n s -> current_picture . motion_val [ 1 ] [ s -> block_index [ 0 ] ] [ 0 ] = 0 ;\n s -> current_picture . motion_val [ 1 ] [ s -> block_index [ 0 ] ] [ 1 ] = 0 ;\n s -> current_picture . mb_type [ mb_pos ] = MB_TYPE_INTRA ;\n s -> mb_intra = v -> is_intra [ s -> mb_x ] = 1 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) v -> mb_type [ 0 ] [ s -> block_index [ i ] ] = 1 ;\n fieldtx = v -> fieldtx_plane [ mb_pos ] = get_bits1 ( gb ) ;\n mb_has_coeffs = get_bits1 ( gb ) ;\n if ( mb_has_coeffs ) cbp = 1 + get_vlc2 ( & v -> s . gb , v -> cbpcy_vlc -> table , VC1_CBPCY_P_VLC_BITS , 2 ) ;\n v -> s . ac_pred = v -> acpred_plane [ mb_pos ] = get_bits1 ( gb ) ;\n GET_MQUANT ( ) ;\n s -> current_picture . qscale_table [ mb_pos ] = mquant ;\n s -> y_dc_scale = s -> y_dc_scale_table [ mquant ] ;\n s -> c_dc_scale = s -> c_dc_scale_table [ mquant ] ;\n dst_idx = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n s -> dc_val [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n dst_idx += i >> 2 ;\n val = ( ( cbp >> ( 5 - i ) ) & 1 ) ;\n v -> mb_type [ 0 ] [ s -> block_index [ i ] ] = s -> mb_intra ;\n v -> a_avail = v -> c_avail = 0 ;\n if ( i == 2 || i == 3 || ! s -> first_slice_line ) v -> a_avail = v -> mb_type [ 0 ] [ s -> block_index [ i ] - s -> block_wrap [ i ] ] ;\n if ( i == 1 || i == 3 || s -> mb_x ) v -> c_avail = v -> mb_type [ 0 ] [ s -> block_index [ i ] - 1 ] ;\n vc1_decode_intra_block ( v , s -> block [ i ] , i , val , mquant , ( i & 4 ) ? v -> codingset2 : v -> codingset ) ;\n if ( ( i > 3 ) && ( s -> flags & CODEC_FLAG_GRAY ) ) continue ;\n v -> vc1dsp . vc1_inv_trans_8x8 ( s -> block [ i ] ) ;\n if ( i < 4 ) {\n stride_y = s -> linesize << fieldtx ;\n off = ( fieldtx ) ? ( ( i & 1 ) * 8 ) + ( ( i & 2 ) >> 1 ) * s -> linesize : ( i & 1 ) * 8 + 4 * ( i & 2 ) * s -> linesize ;\n }\n else {\n stride_y = s -> uvlinesize ;\n off = 0 ;\n }\n s -> dsp . put_signed_pixels_clamped ( s -> block [ i ] , s -> dest [ dst_idx ] + off , stride_y ) ;\n }\n }\n else {\n mb_has_coeffs = ff_vc1_mbmode_intfrp [ v -> fourmvswitch ] [ idx_mbmode ] [ 3 ] ;\n if ( mb_has_coeffs ) cbp = 1 + get_vlc2 ( & v -> s . gb , v -> cbpcy_vlc -> table , VC1_CBPCY_P_VLC_BITS , 2 ) ;\n if ( ff_vc1_mbmode_intfrp [ v -> fourmvswitch ] [ idx_mbmode ] [ 0 ] == MV_PMODE_INTFR_2MV_FIELD ) {\n v -> twomvbp = get_vlc2 ( gb , v -> twomvbp_vlc -> table , VC1_2MV_BLOCK_PATTERN_VLC_BITS , 1 ) ;\n }\n else {\n if ( ( ff_vc1_mbmode_intfrp [ v -> fourmvswitch ] [ idx_mbmode ] [ 0 ] == MV_PMODE_INTFR_4MV ) || ( ff_vc1_mbmode_intfrp [ v -> fourmvswitch ] [ idx_mbmode ] [ 0 ] == MV_PMODE_INTFR_4MV_FIELD ) ) {\n v -> fourmvbp = get_vlc2 ( gb , v -> fourmvbp_vlc -> table , VC1_4MV_BLOCK_PATTERN_VLC_BITS , 1 ) ;\n }\n }\n s -> mb_intra = v -> is_intra [ s -> mb_x ] = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) v -> mb_type [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n fieldtx = v -> fieldtx_plane [ mb_pos ] = ff_vc1_mbmode_intfrp [ v -> fourmvswitch ] [ idx_mbmode ] [ 1 ] ;\n dst_idx = 0 ;\n if ( fourmv ) {\n mvbp = v -> fourmvbp ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( i < 4 ) {\n dmv_x = dmv_y = 0 ;\n val = ( ( mvbp >> ( 3 - i ) ) & 1 ) ;\n if ( val ) {\n get_mvdata_interlaced ( v , & dmv_x , & dmv_y , 0 ) ;\n }\n vc1_pred_mv_intfr ( v , i , dmv_x , dmv_y , 0 , v -> range_x , v -> range_y , v -> mb_type [ 0 ] ) ;\n vc1_mc_4mv_luma ( v , i , 0 ) ;\n }\n else if ( i == 4 ) {\n vc1_mc_4mv_chroma4 ( v ) ;\n }\n }\n }\n else if ( twomv ) {\n mvbp = v -> twomvbp ;\n dmv_x = dmv_y = 0 ;\n if ( mvbp & 2 ) {\n get_mvdata_interlaced ( v , & dmv_x , & dmv_y , 0 ) ;\n }\n vc1_pred_mv_intfr ( v , 0 , dmv_x , dmv_y , 2 , v -> range_x , v -> range_y , v -> mb_type [ 0 ] ) ;\n vc1_mc_4mv_luma ( v , 0 , 0 ) ;\n vc1_mc_4mv_luma ( v , 1 , 0 ) ;\n dmv_x = dmv_y = 0 ;\n if ( mvbp & 1 ) {\n get_mvdata_interlaced ( v , & dmv_x , & dmv_y , 0 ) ;\n }\n vc1_pred_mv_intfr ( v , 2 , dmv_x , dmv_y , 2 , v -> range_x , v -> range_y , v -> mb_type [ 0 ] ) ;\n vc1_mc_4mv_luma ( v , 2 , 0 ) ;\n vc1_mc_4mv_luma ( v , 3 , 0 ) ;\n vc1_mc_4mv_chroma4 ( v ) ;\n }\n else {\n mvbp = ff_vc1_mbmode_intfrp [ v -> fourmvswitch ] [ idx_mbmode ] [ 2 ] ;\n dmv_x = dmv_y = 0 ;\n if ( mvbp ) {\n get_mvdata_interlaced ( v , & dmv_x , & dmv_y , 0 ) ;\n }\n vc1_pred_mv_intfr ( v , 0 , dmv_x , dmv_y , 1 , v -> range_x , v -> range_y , v -> mb_type [ 0 ] ) ;\n vc1_mc_1mv ( v , 0 ) ;\n }\n if ( cbp ) GET_MQUANT ( ) ;\n s -> current_picture . qscale_table [ mb_pos ] = mquant ;\n if ( ! v -> ttmbf && cbp ) ttmb = get_vlc2 ( gb , ff_vc1_ttmb_vlc [ v -> tt_index ] . table , VC1_TTMB_VLC_BITS , 2 ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n s -> dc_val [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n dst_idx += i >> 2 ;\n val = ( ( cbp >> ( 5 - i ) ) & 1 ) ;\n if ( ! fieldtx ) off = ( i & 4 ) ? 0 : ( ( i & 1 ) * 8 + ( i & 2 ) * 4 * s -> linesize ) ;\n else off = ( i & 4 ) ? 0 : ( ( i & 1 ) * 8 + ( ( i > 1 ) * s -> linesize ) ) ;\n if ( val ) {\n pat = vc1_decode_p_block ( v , s -> block [ i ] , i , mquant , ttmb , first_block , s -> dest [ dst_idx ] + off , ( i & 4 ) ? s -> uvlinesize : ( s -> linesize << fieldtx ) , ( i & 4 ) && ( s -> flags & CODEC_FLAG_GRAY ) , & block_tt ) ;\n block_cbp |= pat << ( i << 2 ) ;\n if ( ! v -> ttmbf && ttmb < 8 ) ttmb = - 1 ;\n first_block = 0 ;\n }\n }\n }\n }\n else {\n s -> mb_intra = v -> is_intra [ s -> mb_x ] = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n v -> mb_type [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n s -> dc_val [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n }\n s -> current_picture . mb_type [ mb_pos ] = MB_TYPE_SKIP ;\n s -> current_picture . qscale_table [ mb_pos ] = 0 ;\n v -> blk_mv_type [ s -> block_index [ 0 ] ] = 0 ;\n v -> blk_mv_type [ s -> block_index [ 1 ] ] = 0 ;\n v -> blk_mv_type [ s -> block_index [ 2 ] ] = 0 ;\n v -> blk_mv_type [ s -> block_index [ 3 ] ] = 0 ;\n vc1_pred_mv_intfr ( v , 0 , 0 , 0 , 1 , v -> range_x , v -> range_y , v -> mb_type [ 0 ] ) ;\n vc1_mc_1mv ( v , 0 ) ;\n }\n if ( s -> mb_x == s -> mb_width - 1 ) memmove ( v -> is_intra_base , v -> is_intra , sizeof ( v -> is_intra_base [ 0 ] ) * s -> mb_stride ) ;\n return 0 ;\n }"}
{"idx": 13252, "target": 0, "func": "static void signal_cb_swp ( int sig , short event , void * arg ) {\n called ++ ;\n if ( called < 5 ) raise ( sig ) ;\n else event_loopexit ( NULL ) ;\n }"}
{"idx": 13253, "target": 0, "func": "static inline void x8_select_ac_table ( IntraX8Context * const w , int mode ) {\n MpegEncContext * const s = w -> s ;\n int table_index ;\n assert ( mode < 4 ) ;\n if ( w -> j_ac_vlc [ mode ] ) return ;\n table_index = get_bits ( & s -> gb , 3 ) ;\n w -> j_ac_vlc [ mode ] = & j_ac_vlc [ w -> quant < 13 ] [ mode >> 1 ] [ table_index ] ;\n assert ( w -> j_ac_vlc [ mode ] ) ;\n }"}
{"idx": 13254, "target": 0, "func": "static jpc_enc_rlvl_t * rlvl_create ( jpc_enc_rlvl_t * rlvl , jpc_enc_cp_t * cp , jpc_enc_tcmpt_t * tcmpt , jpc_tsfb_band_t * bandinfos ) {\n uint_fast16_t rlvlno ;\n uint_fast32_t tlprctlx ;\n uint_fast32_t tlprctly ;\n uint_fast32_t brprcbrx ;\n uint_fast32_t brprcbry ;\n uint_fast16_t bandno ;\n jpc_enc_band_t * band ;\n rlvlno = rlvl - tcmpt -> rlvls ;\n rlvl -> bands = 0 ;\n rlvl -> tcmpt = tcmpt ;\n rlvl -> tlx = JPC_CEILDIVPOW2 ( jas_seq2d_xstart ( tcmpt -> data ) , tcmpt -> numrlvls - - rlvlno ) ;\n rlvl -> tly = JPC_CEILDIVPOW2 ( jas_seq2d_ystart ( tcmpt -> data ) , tcmpt -> numrlvls - - rlvlno ) ;\n rlvl -> brx = JPC_CEILDIVPOW2 ( jas_seq2d_xend ( tcmpt -> data ) , tcmpt -> numrlvls - - rlvlno ) ;\n rlvl -> bry = JPC_CEILDIVPOW2 ( jas_seq2d_yend ( tcmpt -> data ) , tcmpt -> numrlvls - - rlvlno ) ;\n if ( rlvl -> tlx >= rlvl -> brx || rlvl -> tly >= rlvl -> bry ) {\n rlvl -> numhprcs = 0 ;\n rlvl -> numvprcs = 0 ;\n rlvl -> numprcs = 0 ;\n return rlvl ;\n }\n rlvl -> numbands = ( ! rlvlno ) ? 1 : 3 ;\n rlvl -> prcwidthexpn = cp -> tccp . prcwidthexpns [ rlvlno ] ;\n rlvl -> prcheightexpn = cp -> tccp . prcheightexpns [ rlvlno ] ;\n if ( ! rlvlno ) {\n rlvl -> cbgwidthexpn = rlvl -> prcwidthexpn ;\n rlvl -> cbgheightexpn = rlvl -> prcheightexpn ;\n }\n else {\n rlvl -> cbgwidthexpn = rlvl -> prcwidthexpn - 1 ;\n rlvl -> cbgheightexpn = rlvl -> prcheightexpn - 1 ;\n }\n rlvl -> cblkwidthexpn = JAS_MIN ( cp -> tccp . cblkwidthexpn , rlvl -> cbgwidthexpn ) ;\n rlvl -> cblkheightexpn = JAS_MIN ( cp -> tccp . cblkheightexpn , rlvl -> cbgheightexpn ) ;\n tlprctlx = JPC_FLOORTOMULTPOW2 ( rlvl -> tlx , rlvl -> prcwidthexpn ) ;\n tlprctly = JPC_FLOORTOMULTPOW2 ( rlvl -> tly , rlvl -> prcheightexpn ) ;\n brprcbrx = JPC_CEILTOMULTPOW2 ( rlvl -> brx , rlvl -> prcwidthexpn ) ;\n brprcbry = JPC_CEILTOMULTPOW2 ( rlvl -> bry , rlvl -> prcheightexpn ) ;\n rlvl -> numhprcs = JPC_FLOORDIVPOW2 ( brprcbrx - tlprctlx , rlvl -> prcwidthexpn ) ;\n rlvl -> numvprcs = JPC_FLOORDIVPOW2 ( brprcbry - tlprctly , rlvl -> prcheightexpn ) ;\n rlvl -> numprcs = rlvl -> numhprcs * rlvl -> numvprcs ;\n if ( ! ( rlvl -> bands = jas_alloc2 ( rlvl -> numbands , sizeof ( jpc_enc_band_t ) ) ) ) {\n goto error ;\n }\n for ( bandno = 0 , band = rlvl -> bands ;\n bandno < rlvl -> numbands ;\n ++ bandno , ++ band ) {\n band -> prcs = 0 ;\n band -> data = 0 ;\n band -> rlvl = rlvl ;\n }\n for ( bandno = 0 , band = rlvl -> bands ;\n bandno < rlvl -> numbands ;\n ++ bandno , ++ band ) {\n if ( ! band_create ( band , cp , rlvl , bandinfos ) ) {\n goto error ;\n }\n }\n return rlvl ;\n error : rlvl_destroy ( rlvl ) ;\n return 0 ;\n }"}
{"idx": 13255, "target": 0, "func": "static uint64_t ohci_mem_read ( void * opaque , hwaddr addr , unsigned size ) {\n OHCIState * ohci = opaque ;\n uint32_t retval ;\n if ( addr & 3 ) {\n trace_usb_ohci_mem_read_unaligned ( addr ) ;\n return 0xffffffff ;\n }\n else if ( addr >= 0x54 && addr < 0x54 + ohci -> num_ports * 4 ) {\n retval = ohci -> rhport [ ( addr - 0x54 ) >> 2 ] . ctrl | OHCI_PORT_PPS ;\n }\n else {\n switch ( addr >> 2 ) {\n case 0 : retval = 0x10 ;\n break ;\n case 1 : retval = ohci -> ctl ;\n break ;\n case 2 : retval = ohci -> status ;\n break ;\n case 3 : retval = ohci -> intr_status ;\n break ;\n case 4 : case 5 : retval = ohci -> intr ;\n break ;\n case 6 : retval = ohci -> hcca ;\n break ;\n case 7 : retval = ohci -> per_cur ;\n break ;\n case 8 : retval = ohci -> ctrl_head ;\n break ;\n case 9 : retval = ohci -> ctrl_cur ;\n break ;\n case 10 : retval = ohci -> bulk_head ;\n break ;\n case 11 : retval = ohci -> bulk_cur ;\n break ;\n case 12 : retval = ohci -> done ;\n break ;\n case 13 : retval = ( ohci -> fit << 31 ) | ( ohci -> fsmps << 16 ) | ( ohci -> fi ) ;\n break ;\n case 14 : retval = ohci_get_frame_remaining ( ohci ) ;\n break ;\n case 15 : retval = ohci -> frame_number ;\n break ;\n case 16 : retval = ohci -> pstart ;\n break ;\n case 17 : retval = ohci -> lst ;\n break ;\n case 18 : retval = ohci -> rhdesc_a ;\n break ;\n case 19 : retval = ohci -> rhdesc_b ;\n break ;\n case 20 : retval = ohci -> rhstatus ;\n break ;\n case 24 : retval = ohci -> hstatus & ohci -> hmask ;\n break ;\n case 25 : retval = ohci -> hreset ;\n break ;\n case 26 : retval = ohci -> hmask ;\n break ;\n case 27 : retval = ohci -> htest ;\n break ;\n default : trace_usb_ohci_mem_read_bad_offset ( addr ) ;\n retval = 0xffffffff ;\n }\n }\n return retval ;\n }"}
{"idx": 13256, "target": 0, "func": "static ssize_t qio_channel_websock_readv ( QIOChannel * ioc , const struct iovec * iov , size_t niov , int * * fds , size_t * nfds , Error * * errp ) {\n QIOChannelWebsock * wioc = QIO_CHANNEL_WEBSOCK ( ioc ) ;\n size_t i ;\n ssize_t got = 0 ;\n ssize_t ret ;\n if ( wioc -> io_err ) {\n error_propagate ( errp , error_copy ( wioc -> io_err ) ) ;\n return - 1 ;\n }\n if ( ! wioc -> rawinput . offset ) {\n ret = qio_channel_websock_read_wire ( QIO_CHANNEL_WEBSOCK ( ioc ) , errp ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n }\n for ( i = 0 ;\n i < niov ;\n i ++ ) {\n size_t want = iov [ i ] . iov_len ;\n if ( want > ( wioc -> rawinput . offset - got ) ) {\n want = ( wioc -> rawinput . offset - got ) ;\n }\n memcpy ( iov [ i ] . iov_base , wioc -> rawinput . buffer + got , want ) ;\n got += want ;\n if ( want < iov [ i ] . iov_len ) {\n break ;\n }\n }\n buffer_advance ( & wioc -> rawinput , got ) ;\n qio_channel_websock_set_watch ( wioc ) ;\n return got ;\n }"}
{"idx": 13257, "target": 0, "func": "int vp9_get_mvpred_var ( const MACROBLOCK * x , const MV * best_mv , const MV * center_mv , const vp9_variance_fn_ptr_t * vfp , int use_mvcost ) {\n const MACROBLOCKD * const xd = & x -> e_mbd ;\n const struct buf_2d * const what = & x -> plane [ 0 ] . src ;\n const struct buf_2d * const in_what = & xd -> plane [ 0 ] . pre [ 0 ] ;\n const MV mv = {\n best_mv -> row * 8 , best_mv -> col * 8 }\n ;\n unsigned int unused ;\n return vfp -> vf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , best_mv ) , in_what -> stride , & unused ) + ( use_mvcost ? mv_err_cost ( & mv , center_mv , x -> nmvjointcost , x -> mvcost , x -> errorperbit ) : 0 ) ;\n }"}
{"idx": 13258, "target": 0, "func": "void vp9_iht8x8_64_add_c ( const tran_low_t * input , uint8_t * dest , int stride , int tx_type ) {\n int i , j ;\n tran_low_t out [ 8 * 8 ] ;\n tran_low_t * outptr = out ;\n tran_low_t temp_in [ 8 ] , temp_out [ 8 ] ;\n const transform_2d ht = IHT_8 [ tx_type ] ;\n for ( i = 0 ;\n i < 8 ;\n ++ i ) {\n ht . rows ( input , outptr ) ;\n input += 8 ;\n outptr += 8 ;\n }\n for ( i = 0 ;\n i < 8 ;\n ++ i ) {\n for ( j = 0 ;\n j < 8 ;\n ++ j ) temp_in [ j ] = out [ j * 8 + i ] ;\n ht . cols ( temp_in , temp_out ) ;\n for ( j = 0 ;\n j < 8 ;\n ++ j ) dest [ j * stride + i ] = clip_pixel ( ROUND_POWER_OF_TWO ( temp_out [ j ] , 5 ) + dest [ j * stride + i ] ) ;\n }\n }"}
{"idx": 13259, "target": 0, "func": "static inline void copy_context_before_encode ( MpegEncContext * d , MpegEncContext * s , int type ) {\n int i ;\n memcpy ( d -> last_mv , s -> last_mv , 2 * 2 * 2 * sizeof ( int ) ) ;\n d -> mb_skip_run = s -> mb_skip_run ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) d -> last_dc [ i ] = s -> last_dc [ i ] ;\n d -> mv_bits = s -> mv_bits ;\n d -> i_tex_bits = s -> i_tex_bits ;\n d -> p_tex_bits = s -> p_tex_bits ;\n d -> i_count = s -> i_count ;\n d -> f_count = s -> f_count ;\n d -> b_count = s -> b_count ;\n d -> skip_count = s -> skip_count ;\n d -> misc_bits = s -> misc_bits ;\n d -> last_bits = 0 ;\n d -> mb_skipped = 0 ;\n d -> qscale = s -> qscale ;\n d -> dquant = s -> dquant ;\n d -> esc3_level_length = s -> esc3_level_length ;\n }"}
{"idx": 13260, "target": 0, "func": "static int dissect_h245_T_olc_ack_multiplexParameters ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_olc_ack_multiplexParameters , T_olc_ack_multiplexParameters_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 13261, "target": 1, "func": "static int parse_VariantCol ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , guint64 base_address , guint32 length _U_ , gboolean is_64bit , struct CRowVariant * variant , const char * fmt , ... ) {\n proto_tree * tree ;\n proto_item * item ;\n va_list ap ;\n struct vtype_data * vt_type ;\n const char * modifier = \"\" , * txt ;\n int size ;\n guint16 vtype_high ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CRowVariant , & item , txt ) ;\n variant -> vtype = tvb_get_letohs ( tvb , offset ) ;\n vt_type = vType_get_type ( ( enum vType ) variant -> vtype ) ;\n DISSECTOR_ASSERT ( vt_type != NULL ) ;\n vtype_high = ( variant -> vtype & 0xFF00 ) ;\n if ( vtype_high ) {\n if ( vtype_high == VT_VECTOR ) {\n modifier = \"|VT_VECTOR\" ;\n }\n else if ( vtype_high == VT_ARRAY ) {\n modifier = \"|VT_ARRAY\" ;\n }\n else {\n modifier = \"|Unknown, possibly error\" ;\n }\n }\n proto_tree_add_string_format_value ( tree , hf_mswsp_rowvariant_vtype , tvb , offset , 2 , vt_type -> str , \"%s%s\" , vt_type -> str , modifier ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_mswsp_rowvariant_reserved1 , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n variant -> reserved1 = tvb_get_letohs ( tvb , offset ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_mswsp_rowvariant_reserved2 , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n variant -> reserved2 = tvb_get_letohl ( tvb , offset ) ;\n offset += 4 ;\n size = get_fixed_vtype_dataize ( ( enum vType ) ( variant -> vtype & 0x00FF ) ) ;\n if ( vtype_high == VT_VECTOR || vtype_high == VT_ARRAY ) {\n offset = parse_VariantColVector ( tvb , offset , tree , base_address , is_64bit , variant ) ;\n }\n else {\n wmem_strbuf_t * strbuf = wmem_strbuf_new ( wmem_packet_scope ( ) , \"\" ) ;\n if ( size != - 1 ) {\n const char * desc = vt_type -> str ;\n DISSECTOR_ASSERT_HINT ( vt_type -> tvb_get != 0 , \"appears fixed type that we don't know yet how to handle, please submit a bug with trace\" ) ;\n vt_type -> tvb_get ( tvb , offset , & variant -> content ) ;\n vt_type -> strbuf_append ( strbuf , & variant -> content ) ;\n proto_tree_add_string_format_value ( tree , hf_mswsp_rowvariant_item_value , tvb , offset , size , desc , \"%s: %s\" , desc , wmem_strbuf_get_str ( strbuf ) ) ;\n }\n else {\n gint64 value_address ;\n int buf_offset = offset ;\n int len ;\n union vt_single non_fixed_size_val ;\n DISSECTOR_ASSERT_HINT ( vt_type -> tvb_get_value_only != 0 , \"appears this is a dynamic type that we don't know yet how to handle, please submit a bug with network trace\" ) ;\n if ( is_64bit ) {\n variant -> content . hyperw = tvb_get_letoh64 ( tvb , offset ) ;\n offset += 8 ;\n value_address = variant -> content . hyperw ;\n proto_tree_add_uint64 ( tree , hf_mswsp_rowvariant_item_address64 , tvb , buf_offset , 8 , value_address ) ;\n }\n else {\n variant -> content . longw = tvb_get_letohl ( tvb , offset ) ;\n offset += 4 ;\n value_address = variant -> content . longw ;\n proto_tree_add_uint ( tree , hf_mswsp_rowvariant_item_address32 , tvb , buf_offset , 4 , ( guint32 ) value_address ) ;\n }\n len = vt_type -> tvb_get_value_only ( tvb , ( int ) ( value_address - base_address ) , 0 , & non_fixed_size_val ) ;\n vt_type -> strbuf_append ( strbuf , & non_fixed_size_val ) ;\n proto_tree_add_string ( tree , hf_mswsp_rowvariant_item_value , tvb , ( gint ) ( value_address - base_address ) , len , wmem_strbuf_get_str ( strbuf ) ) ;\n }\n }\n return offset ;\n }"}
{"idx": 13262, "target": 0, "func": "static int sockstat_seq_show ( struct seq_file * seq , void * v ) {\n struct net * net = seq -> private ;\n int orphans , sockets ;\n local_bh_disable ( ) ;\n orphans = percpu_counter_sum_positive ( & tcp_orphan_count ) ;\n sockets = proto_sockets_allocated_sum_positive ( & tcp_prot ) ;\n local_bh_enable ( ) ;\n socket_seq_show ( seq ) ;\n seq_printf ( seq , \"TCP: inuse %d orphan %d tw %d alloc %d mem %ld\\n\" , sock_prot_inuse_get ( net , & tcp_prot ) , orphans , tcp_death_row . tw_count , sockets , proto_memory_allocated ( & tcp_prot ) ) ;\n seq_printf ( seq , \"UDP: inuse %d mem %ld\\n\" , sock_prot_inuse_get ( net , & udp_prot ) , proto_memory_allocated ( & udp_prot ) ) ;\n seq_printf ( seq , \"UDPLITE: inuse %d\\n\" , sock_prot_inuse_get ( net , & udplite_prot ) ) ;\n seq_printf ( seq , \"RAW: inuse %d\\n\" , sock_prot_inuse_get ( net , & raw_prot ) ) ;\n seq_printf ( seq , \"FRAG: inuse %d memory %d\\n\" , ip_frag_nqueues ( net ) , ip_frag_mem ( net ) ) ;\n return 0 ;\n }"}
{"idx": 13263, "target": 0, "func": "TSReturnCode TSHttpTxnClientRespGet ( TSHttpTxn txnp , TSMBuffer * bufp , TSMLoc * obj ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) obj ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n HTTPHdr * hptr = & ( sm -> t_state . hdr_info . client_response ) ;\n if ( hptr -> valid ( ) ) {\n * ( reinterpret_cast < HTTPHdr * * > ( bufp ) ) = hptr ;\n * obj = reinterpret_cast < TSMLoc > ( hptr -> m_http ) ;\n sdk_assert ( sdk_sanity_check_mbuffer ( * bufp ) == TS_SUCCESS ) ;\n return TS_SUCCESS ;\n }\n return TS_ERROR ;\n }"}
{"idx": 13264, "target": 0, "func": "static void count_node_types ( cmap_splay * node , void * arg ) {\n int * counts = ( int * ) arg ;\n if ( node -> many ) counts [ 2 ] ++ ;\n else if ( node -> low <= 0xffff && node -> high <= 0xFFFF && node -> out <= 0xFFFF ) counts [ 0 ] ++ ;\n else counts [ 1 ] ++ ;\n }"}
{"idx": 13265, "target": 0, "func": "static int dissect_h225_CallCreditServiceControl_callStartingPoint ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_CallCreditServiceControl_callStartingPoint , CallCreditServiceControl_callStartingPoint_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 13266, "target": 0, "func": "static uint32_t e1000e_get_status ( E1000ECore * core , int index ) {\n uint32_t res = core -> mac [ STATUS ] ;\n if ( ! ( core -> mac [ CTRL ] & E1000_CTRL_GIO_MASTER_DISABLE ) ) {\n res |= E1000_STATUS_GIO_MASTER_ENABLE ;\n }\n if ( core -> mac [ CTRL ] & E1000_CTRL_FRCDPX ) {\n res |= ( core -> mac [ CTRL ] & E1000_CTRL_FD ) ? E1000_STATUS_FD : 0 ;\n }\n else {\n res |= E1000_STATUS_FD ;\n }\n if ( ( core -> mac [ CTRL ] & E1000_CTRL_FRCSPD ) || ( core -> mac [ CTRL_EXT ] & E1000_CTRL_EXT_SPD_BYPS ) ) {\n switch ( core -> mac [ CTRL ] & E1000_CTRL_SPD_SEL ) {\n case E1000_CTRL_SPD_10 : res |= E1000_STATUS_SPEED_10 ;\n break ;\n case E1000_CTRL_SPD_100 : res |= E1000_STATUS_SPEED_100 ;\n break ;\n case E1000_CTRL_SPD_1000 : default : res |= E1000_STATUS_SPEED_1000 ;\n break ;\n }\n }\n else {\n res |= E1000_STATUS_SPEED_1000 ;\n }\n trace_e1000e_link_status ( ! ! ( res & E1000_STATUS_LU ) , ! ! ( res & E1000_STATUS_FD ) , ( res & E1000_STATUS_SPEED_MASK ) >> E1000_STATUS_SPEED_SHIFT , ( res & E1000_STATUS_ASDV ) >> E1000_STATUS_ASDV_SHIFT ) ;\n return res ;\n }"}
{"idx": 13267, "target": 0, "func": "static void free_pred_buffer ( PRED_BUFFER * p ) {\n if ( p != NULL ) p -> in_use = 0 ;\n }"}
{"idx": 13268, "target": 0, "func": "int ff_alloc_picture ( MpegEncContext * s , Picture * pic , int shared ) {\n int i , ret ;\n if ( shared ) {\n assert ( pic -> f . data [ 0 ] ) ;\n pic -> shared = 1 ;\n }\n else {\n assert ( ! pic -> f . data [ 0 ] ) ;\n if ( alloc_frame_buffer ( s , pic ) < 0 ) return - 1 ;\n s -> linesize = pic -> f . linesize [ 0 ] ;\n s -> uvlinesize = pic -> f . linesize [ 1 ] ;\n }\n if ( ! pic -> qscale_table_buf ) ret = alloc_picture_tables ( s , pic ) ;\n else ret = make_tables_writable ( pic ) ;\n if ( ret < 0 ) goto fail ;\n if ( s -> encoding ) {\n pic -> mb_var = ( uint16_t * ) pic -> mb_var_buf -> data ;\n pic -> mc_mb_var = ( uint16_t * ) pic -> mc_mb_var_buf -> data ;\n pic -> mb_mean = pic -> mb_mean_buf -> data ;\n }\n pic -> mbskip_table = pic -> mbskip_table_buf -> data ;\n pic -> qscale_table = pic -> qscale_table_buf -> data + 2 * s -> mb_stride + 1 ;\n pic -> mb_type = ( uint32_t * ) pic -> mb_type_buf -> data + 2 * s -> mb_stride + 1 ;\n if ( pic -> motion_val_buf [ 0 ] ) {\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n pic -> motion_val [ i ] = ( int16_t ( * ) [ 2 ] ) pic -> motion_val_buf [ i ] -> data + 4 ;\n pic -> ref_index [ i ] = pic -> ref_index_buf [ i ] -> data ;\n }\n }\n return 0 ;\n fail : av_log ( s -> avctx , AV_LOG_ERROR , \"Error allocating a picture.\\n\" ) ;\n ff_mpeg_unref_picture ( s , pic ) ;\n free_picture_tables ( pic ) ;\n return AVERROR ( ENOMEM ) ;\n }"}
{"idx": 13269, "target": 0, "func": "static int dissect_h245_INTEGER_2_255 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 2U , 255U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 13270, "target": 0, "func": "static void nautilus_directory_invalidate_file_attributes ( NautilusDirectory * directory , NautilusFileAttributes file_attributes ) {\n GList * node ;\n cancel_loading_attributes ( directory , file_attributes ) ;\n for ( node = directory -> details -> file_list ;\n node != NULL ;\n node = node -> next ) {\n nautilus_file_invalidate_attributes_internal ( NAUTILUS_FILE ( node -> data ) , file_attributes ) ;\n }\n if ( directory -> details -> as_file != NULL ) {\n nautilus_file_invalidate_attributes_internal ( directory -> details -> as_file , file_attributes ) ;\n }\n }"}
{"idx": 13271, "target": 0, "func": "static gboolean pk_transaction_is_supported_content_type ( PkTransaction * transaction , const gchar * content_type ) {\n const gchar * tmp ;\n GPtrArray * array = transaction -> priv -> supported_content_types ;\n guint i ;\n for ( i = 0 ;\n i < array -> len ;\n i ++ ) {\n tmp = g_ptr_array_index ( array , i ) ;\n if ( g_strcmp0 ( tmp , content_type ) == 0 ) return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 13272, "target": 0, "func": "static inline struct pfkey_sock * pfkey_sk ( struct sock * sk ) {\n return ( struct pfkey_sock * ) sk ;\n }"}
{"idx": 13273, "target": 0, "func": "static void pdf_run_sc_color ( fz_context * ctx , pdf_processor * proc , int n , float * color ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pr -> dev -> flags &= ~ FZ_DEVFLAG_FILLCOLOR_UNDEFINED ;\n pdf_set_color ( ctx , pr , PDF_FILL , color ) ;\n }"}
{"idx": 13274, "target": 0, "func": "static int dissect_h225_InfoRequestNakReason ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 702 \"./asn1/h225/h225.cnf\" gint32 value ;\n h225_packet_info * h225_pi ;\n h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_InfoRequestNakReason , InfoRequestNakReason_choice , & value ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> reason = value ;\n }\n return offset ;\n }"}
{"idx": 13275, "target": 0, "func": "static void temporal_filter_predictors_mb_c ( MACROBLOCKD * xd , uint8_t * y_mb_ptr , uint8_t * u_mb_ptr , uint8_t * v_mb_ptr , int stride , int uv_block_width , int uv_block_height , int mv_row , int mv_col , uint8_t * pred , struct scale_factors * scale , int x , int y ) {\n const int which_mv = 0 ;\n const MV mv = {\n mv_row , mv_col }\n ;\n const InterpKernel * const kernel = vp9_get_interp_kernel ( xd -> mi [ 0 ] . src_mi -> mbmi . interp_filter ) ;\n enum mv_precision mv_precision_uv ;\n int uv_stride ;\n if ( uv_block_width == 8 ) {\n uv_stride = ( stride + 1 ) >> 1 ;\n mv_precision_uv = MV_PRECISION_Q4 ;\n }\n else {\n uv_stride = stride ;\n mv_precision_uv = MV_PRECISION_Q3 ;\n }\n vp9_build_inter_predictor ( y_mb_ptr , stride , & pred [ 0 ] , 16 , & mv , scale , 16 , 16 , which_mv , kernel , MV_PRECISION_Q3 , x , y ) ;\n vp9_build_inter_predictor ( u_mb_ptr , uv_stride , & pred [ 256 ] , uv_block_width , & mv , scale , uv_block_width , uv_block_height , which_mv , kernel , mv_precision_uv , x , y ) ;\n vp9_build_inter_predictor ( v_mb_ptr , uv_stride , & pred [ 512 ] , uv_block_width , & mv , scale , uv_block_width , uv_block_height , which_mv , kernel , mv_precision_uv , x , y ) ;\n }"}
{"idx": 13276, "target": 0, "func": "static int get_sae ( uint8_t * src , int ref , int stride ) {\n int x , y ;\n int acc = 0 ;\n for ( y = 0 ;\n y < 16 ;\n y ++ ) {\n for ( x = 0 ;\n x < 16 ;\n x ++ ) {\n acc += FFABS ( src [ x + y * stride ] - ref ) ;\n }\n }\n return acc ;\n }"}
{"idx": 13277, "target": 0, "func": "void qtest_clock_warp ( int64_t dest ) {\n int64_t clock = qemu_get_clock_ns ( vm_clock ) ;\n assert ( qtest_enabled ( ) ) ;\n while ( clock < dest ) {\n int64_t deadline = qemu_clock_deadline ( vm_clock ) ;\n int64_t warp = MIN ( dest - clock , deadline ) ;\n qemu_icount_bias += warp ;\n qemu_run_timers ( vm_clock ) ;\n clock = qemu_get_clock_ns ( vm_clock ) ;\n }\n qemu_notify_event ( ) ;\n }"}
{"idx": 13278, "target": 0, "func": "void vp8cx_mb_init_quantizer ( VP8_COMP * cpi , MACROBLOCK * x , int ok_to_skip ) {\n int i ;\n int QIndex ;\n MACROBLOCKD * xd = & x -> e_mbd ;\n int zbin_extra ;\n if ( xd -> segmentation_enabled ) {\n if ( xd -> mb_segement_abs_delta == SEGMENT_ABSDATA ) QIndex = xd -> segment_feature_data [ MB_LVL_ALT_Q ] [ xd -> mode_info_context -> mbmi . segment_id ] ;\n else {\n QIndex = cpi -> common . base_qindex + xd -> segment_feature_data [ MB_LVL_ALT_Q ] [ xd -> mode_info_context -> mbmi . segment_id ] ;\n QIndex = ( QIndex >= 0 ) ? ( ( QIndex <= MAXQ ) ? QIndex : MAXQ ) : 0 ;\n }\n }\n else QIndex = cpi -> common . base_qindex ;\n if ( ! ok_to_skip || QIndex != x -> q_index ) {\n xd -> dequant_y1_dc [ 0 ] = 1 ;\n xd -> dequant_y1 [ 0 ] = cpi -> common . Y1dequant [ QIndex ] [ 0 ] ;\n xd -> dequant_y2 [ 0 ] = cpi -> common . Y2dequant [ QIndex ] [ 0 ] ;\n xd -> dequant_uv [ 0 ] = cpi -> common . UVdequant [ QIndex ] [ 0 ] ;\n for ( i = 1 ;\n i < 16 ;\n i ++ ) {\n xd -> dequant_y1_dc [ i ] = xd -> dequant_y1 [ i ] = cpi -> common . Y1dequant [ QIndex ] [ 1 ] ;\n xd -> dequant_y2 [ i ] = cpi -> common . Y2dequant [ QIndex ] [ 1 ] ;\n xd -> dequant_uv [ i ] = cpi -> common . UVdequant [ QIndex ] [ 1 ] ;\n }\n # if 1 for ( i = 0 ;\n i < 16 ;\n i ++ ) x -> e_mbd . block [ i ] . dequant = xd -> dequant_y1 ;\n for ( i = 16 ;\n i < 24 ;\n i ++ ) x -> e_mbd . block [ i ] . dequant = xd -> dequant_uv ;\n x -> e_mbd . block [ 24 ] . dequant = xd -> dequant_y2 ;\n # endif zbin_extra = ZBIN_EXTRA_Y ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n x -> block [ i ] . quant = cpi -> Y1quant [ QIndex ] ;\n x -> block [ i ] . quant_fast = cpi -> Y1quant_fast [ QIndex ] ;\n x -> block [ i ] . quant_shift = cpi -> Y1quant_shift [ QIndex ] ;\n x -> block [ i ] . zbin = cpi -> Y1zbin [ QIndex ] ;\n x -> block [ i ] . round = cpi -> Y1round [ QIndex ] ;\n x -> block [ i ] . zrun_zbin_boost = cpi -> zrun_zbin_boost_y1 [ QIndex ] ;\n x -> block [ i ] . zbin_extra = ( short ) zbin_extra ;\n }\n zbin_extra = ZBIN_EXTRA_UV ;\n for ( i = 16 ;\n i < 24 ;\n i ++ ) {\n x -> block [ i ] . quant = cpi -> UVquant [ QIndex ] ;\n x -> block [ i ] . quant_fast = cpi -> UVquant_fast [ QIndex ] ;\n x -> block [ i ] . quant_shift = cpi -> UVquant_shift [ QIndex ] ;\n x -> block [ i ] . zbin = cpi -> UVzbin [ QIndex ] ;\n x -> block [ i ] . round = cpi -> UVround [ QIndex ] ;\n x -> block [ i ] . zrun_zbin_boost = cpi -> zrun_zbin_boost_uv [ QIndex ] ;\n x -> block [ i ] . zbin_extra = ( short ) zbin_extra ;\n }\n zbin_extra = ZBIN_EXTRA_Y2 ;\n x -> block [ 24 ] . quant_fast = cpi -> Y2quant_fast [ QIndex ] ;\n x -> block [ 24 ] . quant = cpi -> Y2quant [ QIndex ] ;\n x -> block [ 24 ] . quant_shift = cpi -> Y2quant_shift [ QIndex ] ;\n x -> block [ 24 ] . zbin = cpi -> Y2zbin [ QIndex ] ;\n x -> block [ 24 ] . round = cpi -> Y2round [ QIndex ] ;\n x -> block [ 24 ] . zrun_zbin_boost = cpi -> zrun_zbin_boost_y2 [ QIndex ] ;\n x -> block [ 24 ] . zbin_extra = ( short ) zbin_extra ;\n x -> q_index = QIndex ;\n x -> last_zbin_over_quant = x -> zbin_over_quant ;\n x -> last_zbin_mode_boost = x -> zbin_mode_boost ;\n x -> last_act_zbin_adj = x -> act_zbin_adj ;\n }\n else if ( x -> last_zbin_over_quant != x -> zbin_over_quant || x -> last_zbin_mode_boost != x -> zbin_mode_boost || x -> last_act_zbin_adj != x -> act_zbin_adj ) {\n zbin_extra = ZBIN_EXTRA_Y ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) x -> block [ i ] . zbin_extra = ( short ) zbin_extra ;\n zbin_extra = ZBIN_EXTRA_UV ;\n for ( i = 16 ;\n i < 24 ;\n i ++ ) x -> block [ i ] . zbin_extra = ( short ) zbin_extra ;\n zbin_extra = ZBIN_EXTRA_Y2 ;\n x -> block [ 24 ] . zbin_extra = ( short ) zbin_extra ;\n x -> last_zbin_over_quant = x -> zbin_over_quant ;\n x -> last_zbin_mode_boost = x -> zbin_mode_boost ;\n x -> last_act_zbin_adj = x -> act_zbin_adj ;\n }\n }"}
{"idx": 13279, "target": 0, "func": "static int auth_server_input_fail ( struct auth_server_connection * conn , const char * const * args ) {\n struct auth_client_request * request ;\n if ( auth_server_lookup_request ( conn , args [ 0 ] , TRUE , & request ) < 0 ) return - 1 ;\n auth_client_request_server_input ( request , AUTH_REQUEST_STATUS_FAIL , args + 1 ) ;\n return 0 ;\n }"}
{"idx": 13280, "target": 0, "func": "vpx_codec_err_t vpx_codec_enc_init_multi_ver ( vpx_codec_ctx_t * ctx , vpx_codec_iface_t * iface , vpx_codec_enc_cfg_t * cfg , int num_enc , vpx_codec_flags_t flags , vpx_rational_t * dsf , int ver ) {\n vpx_codec_err_t res = VPX_CODEC_OK ;\n if ( ver != VPX_ENCODER_ABI_VERSION ) res = VPX_CODEC_ABI_MISMATCH ;\n else if ( ! ctx || ! iface || ! cfg || ( num_enc > 16 || num_enc < 1 ) ) res = VPX_CODEC_INVALID_PARAM ;\n else if ( iface -> abi_version != VPX_CODEC_INTERNAL_ABI_VERSION ) res = VPX_CODEC_ABI_MISMATCH ;\n else if ( ! ( iface -> caps & VPX_CODEC_CAP_ENCODER ) ) res = VPX_CODEC_INCAPABLE ;\n else if ( ( flags & VPX_CODEC_USE_PSNR ) && ! ( iface -> caps & VPX_CODEC_CAP_PSNR ) ) res = VPX_CODEC_INCAPABLE ;\n else if ( ( flags & VPX_CODEC_USE_OUTPUT_PARTITION ) && ! ( iface -> caps & VPX_CODEC_CAP_OUTPUT_PARTITION ) ) res = VPX_CODEC_INCAPABLE ;\n else {\n int i ;\n void * mem_loc = NULL ;\n if ( ! ( res = iface -> enc . mr_get_mem_loc ( cfg , & mem_loc ) ) ) {\n for ( i = 0 ;\n i < num_enc ;\n i ++ ) {\n vpx_codec_priv_enc_mr_cfg_t mr_cfg ;\n if ( dsf -> num < 1 || dsf -> num > 4096 || dsf -> den < 1 || dsf -> den > dsf -> num ) {\n res = VPX_CODEC_INVALID_PARAM ;\n break ;\n }\n mr_cfg . mr_low_res_mode_info = mem_loc ;\n mr_cfg . mr_total_resolutions = num_enc ;\n mr_cfg . mr_encoder_id = num_enc - 1 - i ;\n mr_cfg . mr_down_sampling_factor . num = dsf -> num ;\n mr_cfg . mr_down_sampling_factor . den = dsf -> den ;\n if ( mr_cfg . mr_encoder_id ) cfg -> kf_mode = VPX_KF_DISABLED ;\n ctx -> iface = iface ;\n ctx -> name = iface -> name ;\n ctx -> priv = NULL ;\n ctx -> init_flags = flags ;\n ctx -> config . enc = cfg ;\n res = ctx -> iface -> init ( ctx , & mr_cfg ) ;\n if ( res ) {\n const char * error_detail = ctx -> priv ? ctx -> priv -> err_detail : NULL ;\n ctx -> err_detail = error_detail ;\n vpx_codec_destroy ( ctx ) ;\n while ( i ) {\n ctx -- ;\n ctx -> err_detail = error_detail ;\n vpx_codec_destroy ( ctx ) ;\n i -- ;\n }\n }\n if ( res ) break ;\n ctx ++ ;\n cfg ++ ;\n dsf ++ ;\n }\n ctx -- ;\n }\n }\n return SAVE_STATUS ( ctx , res ) ;\n }"}
{"idx": 13281, "target": 1, "func": "void evhttp_send_reply_chunk ( struct evhttp_request * req , struct evbuffer * databuf ) {\n if ( req -> chunked ) {\n evbuffer_add_printf ( req -> evcon -> output_buffer , \"%x\\r\\n\" , ( unsigned ) EVBUFFER_LENGTH ( databuf ) ) ;\n }\n evbuffer_add_buffer ( req -> evcon -> output_buffer , databuf ) ;\n if ( req -> chunked ) {\n evbuffer_add ( req -> evcon -> output_buffer , \"\\r\\n\" , 2 ) ;\n }\n evhttp_write_buffer ( req -> evcon , NULL , NULL ) ;\n }"}
{"idx": 13282, "target": 0, "func": "op_array_table * get_local_op_array ( const gs_memory_t * mem ) {\n gs_main_instance * minst = get_minst_from_memory ( mem ) ;\n return & minst -> i_ctx_p -> op_array_table_local ;\n }"}
{"idx": 13283, "target": 0, "func": "static void steamdiscover_dissect_body_status ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , gint offset , gint bytes_left ) {\n gint64 value ;\n gint len ;\n gint len2 ;\n protobuf_desc_t pb = {\n tvb , offset , bytes_left }\n ;\n protobuf_desc_t pb2 = {\n tvb , 0 , 0 }\n ;\n protobuf_tag_t tag = {\n 0 , 0 , 0 }\n ;\n guint8 * hostname ;\n nstime_t timestamp ;\n proto_tree * user_tree ;\n proto_item * user_it ;\n while ( protobuf_iter_next ( & pb , & tag ) ) {\n switch ( tag . field_number ) {\n case STEAMDISCOVER_FN_STATUS_VERSION : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_int ( tree , hf_steam_ihs_discovery_body_status_version , pb . tvb , pb . offset , len , ( gint32 ) value ) ;\n break ;\n case STEAMDISCOVER_FN_STATUS_MINVERSION : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_int ( tree , hf_steam_ihs_discovery_body_status_minversion , pb . tvb , pb . offset , len , ( gint32 ) value ) ;\n break ;\n case STEAMDISCOVER_FN_STATUS_CONNECTPORT : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_uint ( tree , hf_steam_ihs_discovery_body_status_connectport , pb . tvb , pb . offset , len , ( guint32 ) value ) ;\n break ;\n case STEAMDISCOVER_FN_STATUS_HOSTNAME : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_LENGTHDELIMITED ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_item ( tree , hf_steam_ihs_discovery_body_status_hostname , pb . tvb , pb . offset + len , ( gint ) value , ENC_UTF_8 | ENC_NA ) ;\n hostname = tvb_get_string_enc ( wmem_packet_scope ( ) , pb . tvb , pb . offset + len , ( gint ) value , ENC_UTF_8 ) ;\n if ( hostname && strlen ( hostname ) ) {\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"%s from %s\" , hf_steam_ihs_discovery_header_msgtype_strings [ STEAMDISCOVER_MSGTYPE_CLIENTBROADCASTMSGSTATUS ] . strptr , hostname ) ;\n }\n len += ( gint ) value ;\n break ;\n case STEAMDISCOVER_FN_STATUS_ENABLEDSERVICES : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_uint ( tree , hf_steam_ihs_discovery_body_status_enabledservices , pb . tvb , pb . offset , len , ( guint32 ) value ) ;\n break ;\n case STEAMDISCOVER_FN_STATUS_OSTYPE : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_int ( tree , hf_steam_ihs_discovery_body_status_ostype , pb . tvb , pb . offset , len , ( gint32 ) value ) ;\n break ;\n case STEAMDISCOVER_FN_STATUS_IS64BIT : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_boolean ( tree , hf_steam_ihs_discovery_body_status_is64bit , pb . tvb , pb . offset , len , ( gint32 ) value ) ;\n break ;\n case STEAMDISCOVER_FN_STATUS_USERS : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_LENGTHDELIMITED ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n pb2 . offset = pb . offset + len ;\n pb2 . bytes_left = ( gint ) value ;\n len += ( gint ) value ;\n user_tree = proto_tree_add_subtree ( tree , pb . tvb , pb . offset , len , ett_steam_ihs_discovery_body_status_user , & user_it , \"User\" ) ;\n while ( protobuf_iter_next ( & pb2 , & tag ) ) {\n switch ( tag . field_number ) {\n case STEAMDISCOVER_FN_STATUS_USER_STEAMID : if ( ( len2 = protobuf_verify_wiretype ( & pb2 , & tag , pinfo , user_tree , PROTOBUF_WIRETYPE_64BIT ) ) ) break ;\n len2 = 8 ;\n value = tvb_get_letoh64 ( pb2 . tvb , pb2 . offset ) ;\n proto_tree_add_uint64 ( user_tree , hf_steam_ihs_discovery_body_status_user_steamid , pb2 . tvb , pb2 . offset , len2 , ( guint64 ) value ) ;\n proto_item_append_text ( user_it , \", Steam ID: %\" G_GUINT64_FORMAT , ( guint64 ) value ) ;\n break ;\n case STEAMDISCOVER_FN_STATUS_USER_AUTHKEYID : if ( ( len2 = protobuf_verify_wiretype ( & pb2 , & tag , pinfo , user_tree , PROTOBUF_WIRETYPE_VARINT ) ) ) break ;\n value = get_varint64 ( pb2 . tvb , pb2 . offset , pb2 . bytes_left , & len2 ) ;\n proto_tree_add_uint ( user_tree , hf_steam_ihs_discovery_body_status_user_authkeyid , pb2 . tvb , pb2 . offset , len2 , ( guint32 ) value ) ;\n proto_item_append_text ( user_it , \", Auth Key ID: %\" G_GUINT32_FORMAT , ( guint32 ) value ) ;\n break ;\n default : len2 = protobuf_dissect_unknown_field ( & pb2 , & tag , pinfo , tree , NULL ) ;\n break ;\n }\n protobuf_seek_forward ( & pb2 , len2 ) ;\n }\n break ;\n case STEAMDISCOVER_FN_STATUS_EUNIVERSE : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_int ( tree , hf_steam_ihs_discovery_body_status_euniverse , pb . tvb , pb . offset , len , ( gint32 ) value ) ;\n break ;\n case STEAMDISCOVER_FN_STATUS_TIMESTAMP : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n timestamp . secs = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n timestamp . nsecs = 0 ;\n proto_tree_add_time ( tree , hf_steam_ihs_discovery_body_status_timestamp , pb . tvb , pb . offset , len , & timestamp ) ;\n break ;\n case STEAMDISCOVER_FN_STATUS_SCREENLOCKED : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_boolean ( tree , hf_steam_ihs_discovery_body_status_screenlocked , pb . tvb , pb . offset , len , ( gint32 ) value ) ;\n break ;\n case STEAMDISCOVER_FN_STATUS_GAMESRUNNING : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_VARINT ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_boolean ( tree , hf_steam_ihs_discovery_body_status_gamesrunning , pb . tvb , pb . offset , len , ( gint32 ) value ) ;\n break ;\n case STEAMDISCOVER_FN_STATUS_MACADDRESSES : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_LENGTHDELIMITED ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_item ( tree , hf_steam_ihs_discovery_body_status_macaddresses , pb . tvb , pb . offset + len , ( gint ) value , ENC_UTF_8 | ENC_NA ) ;\n len += ( gint ) value ;\n break ;\n default : len = protobuf_dissect_unknown_field ( & pb , & tag , pinfo , tree , NULL ) ;\n break ;\n }\n protobuf_seek_forward ( & pb , len ) ;\n }\n }"}
{"idx": 13284, "target": 1, "func": "static void dissect_rtp_rfc2198 ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree ) {\n gint offset = 0 ;\n guint8 octet1 ;\n int cnt ;\n gboolean hdr_follow = TRUE ;\n proto_item * ti = NULL ;\n proto_tree * rfc2198_tree = NULL ;\n proto_tree * rfc2198_hdr_tree = NULL ;\n rfc2198_hdr * hdr_last , * hdr_new ;\n rfc2198_hdr * hdr_chain = NULL ;\n struct _rtp_conversation_info * p_conv_data = NULL ;\n gchar * payload_type_str ;\n p_conv_data = ( struct _rtp_conversation_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_rtp , 0 ) ;\n ti = proto_tree_add_text ( tree , tvb , offset , - 1 , \"RFC 2198: Redundant Audio Data\" ) ;\n rfc2198_tree = proto_item_add_subtree ( ti , ett_rtp_rfc2198 ) ;\n hdr_last = NULL ;\n cnt = 0 ;\n while ( hdr_follow ) {\n cnt ++ ;\n payload_type_str = NULL ;\n hdr_new = wmem_new ( wmem_packet_scope ( ) , rfc2198_hdr ) ;\n hdr_new -> next = NULL ;\n octet1 = tvb_get_guint8 ( tvb , offset ) ;\n hdr_new -> pt = RTP_PAYLOAD_TYPE ( octet1 ) ;\n hdr_follow = ( octet1 & 0x80 ) ;\n if ( ( hdr_new -> pt > 95 ) && ( hdr_new -> pt < 128 ) ) {\n if ( p_conv_data && p_conv_data -> rtp_dyn_payload ) {\n encoding_name_and_rate_t * encoding_name_and_rate_pt = NULL ;\n encoding_name_and_rate_pt = ( encoding_name_and_rate_t * ) g_hash_table_lookup ( p_conv_data -> rtp_dyn_payload , & hdr_new -> pt ) ;\n if ( encoding_name_and_rate_pt ) {\n payload_type_str = encoding_name_and_rate_pt -> encoding_name ;\n }\n }\n }\n ti = proto_tree_add_text ( rfc2198_tree , tvb , offset , ( hdr_follow ) ? 4 : 1 , \"Header %u\" , cnt ) ;\n rfc2198_hdr_tree = proto_item_add_subtree ( ti , ett_rtp_rfc2198_hdr ) ;\n proto_tree_add_item ( rfc2198_hdr_tree , hf_rtp_rfc2198_follow , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_uint_format_value ( rfc2198_hdr_tree , hf_rtp_payload_type , tvb , offset , 1 , octet1 , \"%s (%u)\" , payload_type_str ? payload_type_str : val_to_str_ext_const ( hdr_new -> pt , & rtp_payload_type_vals_ext , \"Unknown\" ) , hdr_new -> pt ) ;\n proto_item_append_text ( ti , \": PT=%s\" , payload_type_str ? payload_type_str : val_to_str_ext ( hdr_new -> pt , & rtp_payload_type_vals_ext , \"Unknown (%u)\" ) ) ;\n offset += 1 ;\n if ( hdr_follow ) {\n proto_tree_add_item ( rfc2198_hdr_tree , hf_rtp_rfc2198_tm_off , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rfc2198_hdr_tree , hf_rtp_rfc2198_bl_len , tvb , offset + 1 , 2 , ENC_BIG_ENDIAN ) ;\n hdr_new -> len = tvb_get_ntohs ( tvb , offset + 1 ) & 0x03FF ;\n proto_item_append_text ( ti , \", len=%u\" , hdr_new -> len ) ;\n offset += 3 ;\n }\n else {\n hdr_new -> len = - 1 ;\n hdr_follow = FALSE ;\n }\n if ( hdr_last ) {\n hdr_last -> next = hdr_new ;\n }\n else {\n hdr_chain = hdr_new ;\n }\n hdr_last = hdr_new ;\n }\n hdr_last = hdr_chain ;\n while ( hdr_last ) {\n hdr_last -> offset = offset ;\n if ( ! hdr_last -> next ) {\n hdr_last -> len = tvb_reported_length_remaining ( tvb , offset ) ;\n }\n dissect_rtp_data ( tvb , pinfo , tree , rfc2198_tree , hdr_last -> offset , hdr_last -> len , hdr_last -> len , hdr_last -> pt ) ;\n offset += hdr_last -> len ;\n hdr_last = hdr_last -> next ;\n }\n }"}
{"idx": 13285, "target": 0, "func": "static struct cgroup_hierarchy * lxc_cgroup_find_hierarchy ( struct cgroup_meta_data * meta_data , const char * subsystem ) {\n size_t i ;\n for ( i = 0 ;\n i <= meta_data -> maximum_hierarchy ;\n i ++ ) {\n struct cgroup_hierarchy * h = meta_data -> hierarchies [ i ] ;\n if ( h && lxc_string_in_array ( subsystem , ( const char * * ) h -> subsystems ) ) return h ;\n }\n return NULL ;\n }"}
{"idx": 13286, "target": 0, "func": "int SRP_VBASE_free ( SRP_VBASE * vb ) {\n sk_SRP_user_pwd_pop_free ( vb -> users_pwd , SRP_user_pwd_free ) ;\n sk_SRP_gN_cache_free ( vb -> gN_cache ) ;\n OPENSSL_free ( vb -> seed_key ) ;\n OPENSSL_free ( vb ) ;\n return 0 ;\n }"}
{"idx": 13287, "target": 0, "func": "guint16 elem_v_short ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , gint pdu_type , int idx , guint32 offset , guint32 nibble ) {\n guint16 consumed = 1 ;\n guint32 curr_offset ;\n proto_tree * subtree ;\n proto_item * item ;\n value_string_ext elem_names_ext ;\n gint * elem_ett ;\n elem_fcn * elem_funcs ;\n gchar * a_add_string ;\n const gchar * elem_name ;\n curr_offset = offset ;\n SET_ELEM_VARS ( pdu_type , elem_names_ext , elem_ett , elem_funcs , & ei_gsm_a_unknown_pdu_type ) ;\n elem_name = try_val_to_str_ext ( idx , & elem_names_ext ) ;\n if ( elem_name == NULL ) {\n proto_tree_add_expert ( tree , pinfo , & ei_gsm_a_unknown_element , tvb , curr_offset , 0 ) ;\n return consumed ;\n }\n subtree = proto_tree_add_subtree ( tree , tvb , curr_offset , 0 , elem_ett [ idx ] , & item , elem_name ) ;\n a_add_string = ( gchar * ) wmem_alloc ( wmem_packet_scope ( ) , 1024 ) ;\n a_add_string [ 0 ] = '\\0' ;\n if ( elem_funcs [ idx ] == NULL ) {\n ( void ) de_spare_nibble ( tvb , subtree , pinfo , curr_offset , nibble , a_add_string , 1024 ) ;\n }\n else {\n ( void ) ( * elem_funcs [ idx ] ) ( tvb , subtree , pinfo , curr_offset , nibble , a_add_string , 1024 ) ;\n }\n if ( a_add_string [ 0 ] != '\\0' ) {\n proto_item_append_text ( item , \"%s\" , a_add_string ) ;\n }\n proto_item_set_len ( item , consumed ) ;\n return consumed ;\n }"}
{"idx": 13288, "target": 0, "func": "const char * elg_get_info ( int algo , int * npkey , int * nskey , int * nenc , int * nsig , int * use ) {\n * npkey = 3 ;\n * nskey = 4 ;\n * nenc = 2 ;\n * nsig = 2 ;\n switch ( algo ) {\n case PUBKEY_ALGO_ELGAMAL_E : * use = PUBKEY_USAGE_ENC ;\n return \"ELG-E\" ;\n default : * use = 0 ;\n return NULL ;\n }\n }"}
{"idx": 13289, "target": 0, "func": "void xsltCompileAttr ( xsltStylesheetPtr style , xmlAttrPtr attr ) {\n const xmlChar * str ;\n const xmlChar * cur ;\n xmlChar * ret = NULL ;\n xmlChar * expr = NULL ;\n xsltAttrVTPtr avt ;\n int i = 0 , lastavt = 0 ;\n if ( ( style == NULL ) || ( attr == NULL ) || ( attr -> children == NULL ) ) return ;\n if ( ( attr -> children -> type != XML_TEXT_NODE ) || ( attr -> children -> next != NULL ) ) {\n xsltTransformError ( NULL , style , attr -> parent , \"Attribute '%s': The content is expected to be a single text \" \"node when compiling an AVT.\\n\" , attr -> name ) ;\n style -> errors ++ ;\n return ;\n }\n str = attr -> children -> content ;\n if ( ( xmlStrchr ( str , '{\n' ) == NULL ) && ( xmlStrchr ( str , '}\n' ) == NULL ) ) return ;\n # ifdef WITH_XSLT_DEBUG_AVT xsltGenericDebug ( xsltGenericDebugContext , \"Found AVT %s: %s\\n\" , attr -> name , str ) ;\n # endif if ( attr -> psvi != NULL ) {\n # ifdef WITH_XSLT_DEBUG_AVT xsltGenericDebug ( xsltGenericDebugContext , \"AVT %s: already compiled\\n\" , attr -> name ) ;\n # endif return ;\n }\n avt = xsltNewAttrVT ( style ) ;\n if ( avt == NULL ) return ;\n attr -> psvi = avt ;\n avt -> nsList = xmlGetNsList ( attr -> doc , attr -> parent ) ;\n if ( avt -> nsList != NULL ) {\n while ( avt -> nsList [ i ] != NULL ) i ++ ;\n }\n avt -> nsNr = i ;\n cur = str ;\n while ( * cur != 0 ) {\n if ( * cur == '{\n' ) {\n if ( * ( cur + 1 ) == '{\n' ) {\n cur ++ ;\n ret = xmlStrncat ( ret , str , cur - str ) ;\n cur ++ ;\n str = cur ;\n continue ;\n }\n if ( * ( cur + 1 ) == '}\n' ) {\n ret = xmlStrncat ( ret , str , cur - str ) ;\n cur += 2 ;\n str = cur ;\n continue ;\n }\n if ( ( ret != NULL ) || ( cur - str > 0 ) ) {\n ret = xmlStrncat ( ret , str , cur - str ) ;\n str = cur ;\n if ( avt -> nb_seg == 0 ) avt -> strstart = 1 ;\n if ( ( avt = xsltSetAttrVTsegment ( avt , ( void * ) ret ) ) == NULL ) goto error ;\n ret = NULL ;\n lastavt = 0 ;\n }\n cur ++ ;\n while ( ( * cur != 0 ) && ( * cur != '}\n' ) ) {\n if ( ( * cur == '\\'' ) || ( * cur == '\"' ) ) {\n char delim = * ( cur ++ ) ;\n while ( ( * cur != 0 ) && ( * cur != delim ) ) cur ++ ;\n if ( * cur != 0 ) cur ++ ;\n }\n else cur ++ ;\n }\n if ( * cur == 0 ) {\n xsltTransformError ( NULL , style , attr -> parent , \"Attribute '%s': The AVT has an unmatched '{\n'.\\n\" , attr -> name ) ;\n style -> errors ++ ;\n goto error ;\n }\n str ++ ;\n expr = xmlStrndup ( str , cur - str ) ;\n if ( expr == NULL ) {\n XSLT_TODO goto error ;\n }\n else {\n xmlXPathCompExprPtr comp ;\n comp = xsltXPathCompile ( style , expr ) ;\n if ( comp == NULL ) {\n xsltTransformError ( NULL , style , attr -> parent , \"Attribute '%s': Failed to compile the expression \" \"'%s' in the AVT.\\n\" , attr -> name , expr ) ;\n style -> errors ++ ;\n goto error ;\n }\n if ( avt -> nb_seg == 0 ) avt -> strstart = 0 ;\n if ( lastavt == 1 ) {\n if ( ( avt = xsltSetAttrVTsegment ( avt , NULL ) ) == NULL ) goto error ;\n }\n if ( ( avt = xsltSetAttrVTsegment ( avt , ( void * ) comp ) ) == NULL ) goto error ;\n lastavt = 1 ;\n xmlFree ( expr ) ;\n expr = NULL ;\n }\n cur ++ ;\n str = cur ;\n }\n else if ( * cur == '}\n' ) {\n cur ++ ;\n if ( * cur == '}\n' ) {\n ret = xmlStrncat ( ret , str , cur - str ) ;\n cur ++ ;\n str = cur ;\n continue ;\n }\n else {\n xsltTransformError ( NULL , style , attr -> parent , \"Attribute '%s': The AVT has an unmatched '}\n'.\\n\" , attr -> name ) ;\n goto error ;\n }\n }\n else cur ++ ;\n }\n if ( ( ret != NULL ) || ( cur - str > 0 ) ) {\n ret = xmlStrncat ( ret , str , cur - str ) ;\n str = cur ;\n if ( avt -> nb_seg == 0 ) avt -> strstart = 1 ;\n if ( ( avt = xsltSetAttrVTsegment ( avt , ( void * ) ret ) ) == NULL ) goto error ;\n ret = NULL ;\n }\n error : if ( avt == NULL ) {\n xsltTransformError ( NULL , style , attr -> parent , \"xsltCompileAttr: malloc problem\\n\" ) ;\n }\n else {\n if ( attr -> psvi != avt ) {\n attr -> psvi = avt ;\n style -> attVTs = avt ;\n }\n }\n if ( ret != NULL ) xmlFree ( ret ) ;\n if ( expr != NULL ) xmlFree ( expr ) ;\n }"}
{"idx": 13290, "target": 0, "func": "static int decode_mv_component ( GetBitContext * gb , int v ) {\n int mv_diff = get_vlc2 ( gb , h261_mv_vlc . table , H261_MV_VLC_BITS , 2 ) ;\n if ( mv_diff < 0 ) return v ;\n mv_diff = mvmap [ mv_diff ] ;\n if ( mv_diff && ! get_bits1 ( gb ) ) mv_diff = - mv_diff ;\n v += mv_diff ;\n if ( v <= - 16 ) v += 32 ;\n else if ( v >= 16 ) v -= 32 ;\n return v ;\n }"}
{"idx": 13291, "target": 0, "func": "static Int decShiftToLeast ( Unit * uar , Int units , Int shift ) {\n Unit * target , * up ;\n Int cut , count ;\n Int quot , rem ;\n if ( shift == 0 ) return units ;\n if ( shift == units * DECDPUN ) {\n * uar = 0 ;\n return 1 ;\n }\n target = uar ;\n cut = MSUDIGITS ( shift ) ;\n if ( cut == DECDPUN ) {\n up = uar + D2U ( shift ) ;\n for ( ;\n up < uar + units ;\n target ++ , up ++ ) * target = * up ;\n return target - uar ;\n }\n up = uar + D2U ( shift - cut ) ;\n count = units * DECDPUN - shift ;\n # if DECDPUN <= 4 quot = QUOT10 ( * up , cut ) ;\n # else quot = * up / powers [ cut ] ;\n # endif for ( ;\n ;\n target ++ ) {\n * target = ( Unit ) quot ;\n count -= ( DECDPUN - cut ) ;\n if ( count <= 0 ) break ;\n up ++ ;\n quot = * up ;\n # if DECDPUN <= 4 quot = QUOT10 ( quot , cut ) ;\n rem = * up - quot * powers [ cut ] ;\n # else rem = quot % powers [ cut ] ;\n quot = quot / powers [ cut ] ;\n # endif * target = ( Unit ) ( * target + rem * powers [ DECDPUN - cut ] ) ;\n count -= cut ;\n if ( count <= 0 ) break ;\n }\n return target - uar + 1 ;\n }"}
{"idx": 13292, "target": 0, "func": "static void reset_skip_tx_size ( VP9_COMMON * cm , TX_SIZE max_tx_size ) {\n int mi_row , mi_col ;\n const int mis = cm -> mi_stride ;\n MODE_INFO * mi_ptr = cm -> mi ;\n for ( mi_row = 0 ;\n mi_row < cm -> mi_rows ;\n ++ mi_row , mi_ptr += mis ) {\n for ( mi_col = 0 ;\n mi_col < cm -> mi_cols ;\n ++ mi_col ) {\n if ( mi_ptr [ mi_col ] . src_mi -> mbmi . tx_size > max_tx_size ) mi_ptr [ mi_col ] . src_mi -> mbmi . tx_size = max_tx_size ;\n }\n }\n }"}
{"idx": 13293, "target": 0, "func": "static inline void SetPixelRed ( const Image * restrict image , const Quantum red , Quantum * restrict pixel ) {\n pixel [ image -> channel_map [ RedPixelChannel ] . offset ] = red ;\n }"}
{"idx": 13294, "target": 0, "func": "TEST_F ( ExtensionServiceSyncTest , ReenableDisabledExtensionFromSync ) {\n InitializeEmptyExtensionService ( ) ;\n browser_sync : : ProfileSyncService * sync_service = ProfileSyncServiceFactory : : GetForProfile ( profile ( ) ) ;\n sync_service -> SetFirstSetupComplete ( ) ;\n service ( ) -> Init ( ) ;\n extensions : : ChromeTestExtensionLoader extension_loader ( profile ( ) ) ;\n extension_loader . set_pack_extension ( true ) ;\n scoped_refptr < const Extension > extension = extension_loader . LoadExtension ( data_dir ( ) . AppendASCII ( \"simple_with_file\" ) ) ;\n ASSERT_TRUE ( extension ) ;\n const std : : string kExtensionId = extension -> id ( ) ;\n ASSERT_TRUE ( registry ( ) -> enabled_extensions ( ) . GetByID ( kExtensionId ) ) ;\n syncer : : FakeSyncChangeProcessor * processor_raw = nullptr ;\n {\n auto processor = base : : MakeUnique < syncer : : FakeSyncChangeProcessor > ( ) ;\n processor_raw = processor . get ( ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , syncer : : SyncDataList ( ) , std : : move ( processor ) , base : : MakeUnique < syncer : : SyncErrorFactoryMock > ( ) ) ;\n }\n processor_raw -> changes ( ) . clear ( ) ;\n DisableExtensionFromSync ( * extension , extensions : : disable_reason : : DISABLE_USER_ACTION ) ;\n EXPECT_TRUE ( registry ( ) -> disabled_extensions ( ) . GetByID ( kExtensionId ) ) ;\n EXPECT_EQ ( extensions : : disable_reason : : DISABLE_USER_ACTION , ExtensionPrefs : : Get ( profile ( ) ) -> GetDisableReasons ( kExtensionId ) ) ;\n EXPECT_TRUE ( processor_raw -> changes ( ) . empty ( ) ) ;\n service ( ) -> EnableExtension ( kExtensionId ) ;\n {\n ASSERT_EQ ( 1u , processor_raw -> changes ( ) . size ( ) ) ;\n const SyncChange & change = processor_raw -> changes ( ) [ 0 ] ;\n EXPECT_EQ ( SyncChange : : ACTION_UPDATE , change . change_type ( ) ) ;\n std : : unique_ptr < ExtensionSyncData > data = ExtensionSyncData : : CreateFromSyncData ( change . sync_data ( ) ) ;\n EXPECT_EQ ( kExtensionId , data -> id ( ) ) ;\n EXPECT_EQ ( 0 , data -> disable_reasons ( ) ) ;\n EXPECT_TRUE ( data -> enabled ( ) ) ;\n }\n processor_raw -> changes ( ) . clear ( ) ;\n service ( ) -> DisableExtension ( kExtensionId , extensions : : disable_reason : : DISABLE_USER_ACTION ) ;\n EXPECT_TRUE ( registry ( ) -> disabled_extensions ( ) . GetByID ( kExtensionId ) ) ;\n {\n ASSERT_EQ ( 1u , processor_raw -> changes ( ) . size ( ) ) ;\n const SyncChange & change = processor_raw -> changes ( ) [ 0 ] ;\n EXPECT_EQ ( SyncChange : : ACTION_UPDATE , change . change_type ( ) ) ;\n std : : unique_ptr < ExtensionSyncData > data = ExtensionSyncData : : CreateFromSyncData ( change . sync_data ( ) ) ;\n EXPECT_EQ ( kExtensionId , data -> id ( ) ) ;\n EXPECT_EQ ( extensions : : disable_reason : : DISABLE_USER_ACTION , data -> disable_reasons ( ) ) ;\n EXPECT_FALSE ( data -> enabled ( ) ) ;\n }\n processor_raw -> changes ( ) . clear ( ) ;\n EnableExtensionFromSync ( * extension ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . GetByID ( kExtensionId ) ) ;\n EXPECT_TRUE ( processor_raw -> changes ( ) . empty ( ) ) ;\n }"}
{"idx": 13295, "target": 0, "func": "rfbBool rfbFilenameTranslate2DOS ( rfbClientPtr cl , char * unixPath , char * path ) {\n int x ;\n FILEXFER_ALLOWED_OR_CLOSE_AND_RETURN ( \"\" , cl , FALSE ) ;\n sprintf ( path , \"C:%s\" , unixPath ) ;\n for ( x = 2 ;\n x < strlen ( path ) ;\n x ++ ) if ( path [ x ] == '/' ) path [ x ] = '\\\\' ;\n return TRUE ;\n }"}
{"idx": 13296, "target": 0, "func": "static void cleanup_preferred_base ( void ) {\n struct pbase_tree * it ;\n unsigned i ;\n it = pbase_tree ;\n pbase_tree = NULL ;\n while ( it ) {\n struct pbase_tree * this = it ;\n it = this -> next ;\n free ( this -> pcache . tree_data ) ;\n free ( this ) ;\n }\n for ( i = 0 ;\n i < ARRAY_SIZE ( pbase_tree_cache ) ;\n i ++ ) {\n if ( ! pbase_tree_cache [ i ] ) continue ;\n free ( pbase_tree_cache [ i ] -> tree_data ) ;\n free ( pbase_tree_cache [ i ] ) ;\n pbase_tree_cache [ i ] = NULL ;\n }\n free ( done_pbase_paths ) ;\n done_pbase_paths = NULL ;\n done_pbase_paths_num = done_pbase_paths_alloc = 0 ;\n }"}
{"idx": 13297, "target": 0, "func": "static void xhci_reset ( DeviceState * dev ) {\n XHCIState * xhci = XHCI ( dev ) ;\n int i ;\n trace_usb_xhci_reset ( ) ;\n if ( ! ( xhci -> usbsts & USBSTS_HCH ) ) {\n DPRINTF ( \"xhci: reset while running!\\n\" ) ;\n }\n xhci -> usbcmd = 0 ;\n xhci -> usbsts = USBSTS_HCH ;\n xhci -> dnctrl = 0 ;\n xhci -> crcr_low = 0 ;\n xhci -> crcr_high = 0 ;\n xhci -> dcbaap_low = 0 ;\n xhci -> dcbaap_high = 0 ;\n xhci -> config = 0 ;\n for ( i = 0 ;\n i < xhci -> numslots ;\n i ++ ) {\n xhci_disable_slot ( xhci , i + 1 ) ;\n }\n for ( i = 0 ;\n i < xhci -> numports ;\n i ++ ) {\n xhci_port_update ( xhci -> ports + i , 0 ) ;\n }\n for ( i = 0 ;\n i < xhci -> numintrs ;\n i ++ ) {\n xhci -> intr [ i ] . iman = 0 ;\n xhci -> intr [ i ] . imod = 0 ;\n xhci -> intr [ i ] . erstsz = 0 ;\n xhci -> intr [ i ] . erstba_low = 0 ;\n xhci -> intr [ i ] . erstba_high = 0 ;\n xhci -> intr [ i ] . erdp_low = 0 ;\n xhci -> intr [ i ] . erdp_high = 0 ;\n xhci -> intr [ i ] . msix_used = 0 ;\n xhci -> intr [ i ] . er_ep_idx = 0 ;\n xhci -> intr [ i ] . er_pcs = 1 ;\n xhci -> intr [ i ] . er_full = 0 ;\n xhci -> intr [ i ] . ev_buffer_put = 0 ;\n xhci -> intr [ i ] . ev_buffer_get = 0 ;\n }\n xhci -> mfindex_start = qemu_clock_get_ns ( QEMU_CLOCK_VIRTUAL ) ;\n xhci_mfwrap_update ( xhci ) ;\n }"}
{"idx": 13298, "target": 0, "func": "void archive_string_conversion_free ( struct archive * a ) {\n struct archive_string_conv * sc ;\n struct archive_string_conv * sc_next ;\n for ( sc = a -> sconv ;\n sc != NULL ;\n sc = sc_next ) {\n sc_next = sc -> next ;\n free_sconv_object ( sc ) ;\n }\n a -> sconv = NULL ;\n free ( a -> current_code ) ;\n a -> current_code = NULL ;\n }"}
{"idx": 13299, "target": 0, "func": "void av_image_copy_plane ( uint8_t * dst , int dst_linesize , const uint8_t * src , int src_linesize , int bytewidth , int height ) {\n if ( ! dst || ! src ) return ;\n for ( ;\n height > 0 ;\n height -- ) {\n memcpy ( dst , src , bytewidth ) ;\n dst += dst_linesize ;\n src += src_linesize ;\n }\n }"}
{"idx": 13300, "target": 0, "func": "static int at1_parse_bsm ( GetBitContext * gb , int log2_block_cnt [ AT1_QMF_BANDS ] ) {\n int log2_block_count_tmp , i ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n log2_block_count_tmp = get_bits ( gb , 2 ) ;\n if ( log2_block_count_tmp & 1 ) return AVERROR_INVALIDDATA ;\n log2_block_cnt [ i ] = 2 - log2_block_count_tmp ;\n }\n log2_block_count_tmp = get_bits ( gb , 2 ) ;\n if ( log2_block_count_tmp != 0 && log2_block_count_tmp != 3 ) return AVERROR_INVALIDDATA ;\n log2_block_cnt [ IDX_HIGH_BAND ] = 3 - log2_block_count_tmp ;\n skip_bits ( gb , 2 ) ;\n return 0 ;\n }"}
{"idx": 13301, "target": 0, "func": "static void ide_dbdma_start ( IDEDMA * dma , IDEState * s , BlockCompletionFunc * cb ) {\n MACIOIDEState * m = container_of ( dma , MACIOIDEState , dma ) ;\n MACIO_DPRINTF ( \"\\n\" ) ;\n m -> dma_active = true ;\n DBDMA_kick ( m -> dbdma ) ;\n }"}
{"idx": 13302, "target": 0, "func": "static void openpic_cpu_write_internal ( void * opaque , hwaddr addr , uint32_t val , int idx ) {\n OpenPICState * opp = opaque ;\n IRQSource * src ;\n IRQDest * dst ;\n int s_IRQ , n_IRQ ;\n DPRINTF ( \"%s: cpu %d addr %#\" HWADDR_PRIx \" <= 0x%08x\\n\" , __func__ , idx , addr , val ) ;\n if ( idx < 0 ) {\n return ;\n }\n if ( addr & 0xF ) {\n return ;\n }\n dst = & opp -> dst [ idx ] ;\n addr &= 0xFF0 ;\n switch ( addr ) {\n case 0x40 : case 0x50 : case 0x60 : case 0x70 : idx = ( addr - 0x40 ) >> 4 ;\n opp -> src [ opp -> irq_ipi0 + idx ] . destmask |= val ;\n openpic_set_irq ( opp , opp -> irq_ipi0 + idx , 1 ) ;\n openpic_set_irq ( opp , opp -> irq_ipi0 + idx , 0 ) ;\n break ;\n case 0x80 : dst -> ctpr = val & 0x0000000F ;\n DPRINTF ( \"%s: set CPU %d ctpr to %d, raised %d servicing %d\\n\" , __func__ , idx , dst -> ctpr , dst -> raised . priority , dst -> servicing . priority ) ;\n if ( dst -> raised . priority <= dst -> ctpr ) {\n DPRINTF ( \"%s: Lower OpenPIC INT output cpu %d due to ctpr\\n\" , __func__ , idx ) ;\n qemu_irq_lower ( dst -> irqs [ OPENPIC_OUTPUT_INT ] ) ;\n }\n else if ( dst -> raised . priority > dst -> servicing . priority ) {\n DPRINTF ( \"%s: Raise OpenPIC INT output cpu %d irq %d\\n\" , __func__ , idx , dst -> raised . next ) ;\n qemu_irq_raise ( dst -> irqs [ OPENPIC_OUTPUT_INT ] ) ;\n }\n break ;\n case 0x90 : break ;\n case 0xA0 : break ;\n case 0xB0 : DPRINTF ( \"EOI\\n\" ) ;\n s_IRQ = IRQ_get_next ( opp , & dst -> servicing ) ;\n if ( s_IRQ < 0 ) {\n DPRINTF ( \"%s: EOI with no interrupt in service\\n\" , __func__ ) ;\n break ;\n }\n IRQ_resetbit ( & dst -> servicing , s_IRQ ) ;\n s_IRQ = IRQ_get_next ( opp , & dst -> servicing ) ;\n n_IRQ = IRQ_get_next ( opp , & dst -> raised ) ;\n src = & opp -> src [ n_IRQ ] ;\n if ( n_IRQ != - 1 && ( s_IRQ == - 1 || IVPR_PRIORITY ( src -> ivpr ) > dst -> servicing . priority ) ) {\n DPRINTF ( \"Raise OpenPIC INT output cpu %d irq %d\\n\" , idx , n_IRQ ) ;\n qemu_irq_raise ( opp -> dst [ idx ] . irqs [ OPENPIC_OUTPUT_INT ] ) ;\n }\n break ;\n default : break ;\n }\n }"}
{"idx": 13303, "target": 0, "func": "static int ir2_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n Ir2Context * const s = avctx -> priv_data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n AVFrame * picture = data ;\n AVFrame * const p = & s -> picture ;\n int start , ret ;\n if ( ( ret = ff_reget_buffer ( avctx , p ) ) < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n start = 48 ;\n if ( start >= buf_size ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"input buffer size too small (%d)\\n\" , buf_size ) ;\n return AVERROR_INVALIDDATA ;\n }\n s -> decode_delta = buf [ 18 ] ;\n # ifndef BITSTREAM_READER_LE for ( i = 0 ;\n i < buf_size ;\n i ++ ) buf [ i ] = ff_reverse [ buf [ i ] ] ;\n # endif init_get_bits ( & s -> gb , buf + start , ( buf_size - start ) * 8 ) ;\n if ( s -> decode_delta ) {\n if ( ( ret = ir2_decode_plane ( s , avctx -> width , avctx -> height , s -> picture . data [ 0 ] , s -> picture . linesize [ 0 ] , ir2_luma_table ) ) < 0 ) return ret ;\n if ( ( ret = ir2_decode_plane ( s , avctx -> width >> 2 , avctx -> height >> 2 , s -> picture . data [ 2 ] , s -> picture . linesize [ 2 ] , ir2_luma_table ) ) < 0 ) return ret ;\n if ( ( ret = ir2_decode_plane ( s , avctx -> width >> 2 , avctx -> height >> 2 , s -> picture . data [ 1 ] , s -> picture . linesize [ 1 ] , ir2_luma_table ) ) < 0 ) return ret ;\n }\n else {\n if ( ( ret = ir2_decode_plane_inter ( s , avctx -> width , avctx -> height , s -> picture . data [ 0 ] , s -> picture . linesize [ 0 ] , ir2_luma_table ) ) < 0 ) return ret ;\n if ( ( ret = ir2_decode_plane_inter ( s , avctx -> width >> 2 , avctx -> height >> 2 , s -> picture . data [ 2 ] , s -> picture . linesize [ 2 ] , ir2_luma_table ) ) < 0 ) return ret ;\n if ( ( ret = ir2_decode_plane_inter ( s , avctx -> width >> 2 , avctx -> height >> 2 , s -> picture . data [ 1 ] , s -> picture . linesize [ 1 ] , ir2_luma_table ) ) < 0 ) return ret ;\n }\n if ( ( ret = av_frame_ref ( picture , & s -> picture ) ) < 0 ) return ret ;\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 13304, "target": 0, "func": "static afs_int32 listElements ( struct rx_call * call , afs_int32 aid , prlist * alist , afs_int32 * over , afs_int32 * cid ) {\n afs_int32 code ;\n struct ubik_trans * tt ;\n afs_int32 temp ;\n struct prentry tentry ;\n * over = 0 ;\n alist -> prlist_len = 0 ;\n alist -> prlist_val = NULL ;\n code = Initdb ( ) ;\n if ( code != PRSUCCESS ) return code ;\n code = ubik_BeginTransReadAny ( dbase , UBIK_READTRANS , & tt ) ;\n if ( code ) return code ;\n code = ubik_SetLock ( tt , 1 , 1 , LOCKREAD ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = read_DbHeader ( tt ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = WhoIsThis ( call , tt , cid ) ;\n if ( code ) ABORT_WITH ( tt , PRPERM ) ;\n temp = FindByID ( tt , aid ) ;\n if ( ! temp ) ABORT_WITH ( tt , PRNOENT ) ;\n code = pr_ReadEntry ( tt , 0 , temp , & tentry ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n if ( ! AccessOK ( tt , * cid , & tentry , PRP_MEMBER_MEM , PRP_MEMBER_ANY ) ) ABORT_WITH ( tt , PRPERM ) ;\n code = GetList ( tt , & tentry , alist , 0 ) ;\n if ( code != PRSUCCESS ) ABORT_WITH ( tt , code ) ;\n code = ubik_EndTrans ( tt ) ;\n return code ;\n }"}
{"idx": 13305, "target": 0, "func": "static void update_layer_contexts ( VP8_COMP * cpi ) {\n VP8_CONFIG * oxcf = & cpi -> oxcf ;\n if ( oxcf -> number_of_layers > 1 ) {\n unsigned int i ;\n double prev_layer_framerate = 0 ;\n assert ( oxcf -> number_of_layers <= VPX_TS_MAX_LAYERS ) ;\n for ( i = 0 ;\n i < oxcf -> number_of_layers && i < VPX_TS_MAX_LAYERS ;\n ++ i ) {\n LAYER_CONTEXT * lc = & cpi -> layer_context [ i ] ;\n lc -> framerate = cpi -> ref_framerate / oxcf -> rate_decimator [ i ] ;\n lc -> target_bandwidth = oxcf -> target_bitrate [ i ] * 1000 ;\n lc -> starting_buffer_level = rescale ( ( int ) oxcf -> starting_buffer_level_in_ms , lc -> target_bandwidth , 1000 ) ;\n if ( oxcf -> optimal_buffer_level == 0 ) lc -> optimal_buffer_level = lc -> target_bandwidth / 8 ;\n else lc -> optimal_buffer_level = rescale ( ( int ) oxcf -> optimal_buffer_level_in_ms , lc -> target_bandwidth , 1000 ) ;\n if ( oxcf -> maximum_buffer_size == 0 ) lc -> maximum_buffer_size = lc -> target_bandwidth / 8 ;\n else lc -> maximum_buffer_size = rescale ( ( int ) oxcf -> maximum_buffer_size_in_ms , lc -> target_bandwidth , 1000 ) ;\n if ( i > 0 ) lc -> avg_frame_size_for_layer = ( int ) ( ( oxcf -> target_bitrate [ i ] - oxcf -> target_bitrate [ i - 1 ] ) * 1000 / ( lc -> framerate - prev_layer_framerate ) ) ;\n prev_layer_framerate = lc -> framerate ;\n }\n }\n }"}
{"idx": 13306, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( VirtualKeyboardBrowserTest , ControlKeysTest ) {\n RunTest ( base : : FilePath ( FILE_PATH_LITERAL ( \"control_keys_test.js\" ) ) ) ;\n }"}
{"idx": 13307, "target": 0, "func": "static int lag_read_prob_header ( lag_rac * rac , GetBitContext * gb ) {\n int i , j , scale_factor ;\n unsigned prob , cumulative_target ;\n unsigned cumul_prob = 0 ;\n unsigned scaled_cumul_prob = 0 ;\n rac -> prob [ 0 ] = 0 ;\n rac -> prob [ 257 ] = UINT_MAX ;\n for ( i = 1 ;\n i < 257 ;\n i ++ ) {\n if ( lag_decode_prob ( gb , & rac -> prob [ i ] ) < 0 ) {\n av_log ( rac -> avctx , AV_LOG_ERROR , \"Invalid probability encountered.\\n\" ) ;\n return - 1 ;\n }\n if ( ( uint64_t ) cumul_prob + rac -> prob [ i ] > UINT_MAX ) {\n av_log ( rac -> avctx , AV_LOG_ERROR , \"Integer overflow encountered in cumulative probability calculation.\\n\" ) ;\n return - 1 ;\n }\n cumul_prob += rac -> prob [ i ] ;\n if ( ! rac -> prob [ i ] ) {\n if ( lag_decode_prob ( gb , & prob ) ) {\n av_log ( rac -> avctx , AV_LOG_ERROR , \"Invalid probability run encountered.\\n\" ) ;\n return - 1 ;\n }\n if ( prob > 257 - i ) prob = 257 - i ;\n for ( j = 0 ;\n j < prob ;\n j ++ ) rac -> prob [ ++ i ] = 0 ;\n }\n }\n if ( ! cumul_prob ) {\n av_log ( rac -> avctx , AV_LOG_ERROR , \"All probabilities are 0!\\n\" ) ;\n return - 1 ;\n }\n scale_factor = av_log2 ( cumul_prob ) ;\n if ( cumul_prob & ( cumul_prob - 1 ) ) {\n uint64_t mul = softfloat_reciprocal ( cumul_prob ) ;\n for ( i = 1 ;\n i < 257 ;\n i ++ ) {\n rac -> prob [ i ] = softfloat_mul ( rac -> prob [ i ] , mul ) ;\n scaled_cumul_prob += rac -> prob [ i ] ;\n }\n scale_factor ++ ;\n cumulative_target = 1 << scale_factor ;\n if ( scaled_cumul_prob > cumulative_target ) {\n av_log ( rac -> avctx , AV_LOG_ERROR , \"Scaled probabilities are larger than target!\\n\" ) ;\n return - 1 ;\n }\n scaled_cumul_prob = cumulative_target - scaled_cumul_prob ;\n for ( i = 1 ;\n scaled_cumul_prob ;\n i = ( i & 0x7f ) + 1 ) {\n if ( rac -> prob [ i ] ) {\n rac -> prob [ i ] ++ ;\n scaled_cumul_prob -- ;\n }\n }\n }\n rac -> scale = scale_factor ;\n for ( i = 1 ;\n i < 257 ;\n i ++ ) rac -> prob [ i ] += rac -> prob [ i - 1 ] ;\n return 0 ;\n }"}
{"idx": 13308, "target": 0, "func": "static int matroska_decode_buffer ( uint8_t * * buf , int * buf_size , MatroskaTrack * track ) {\n MatroskaTrackEncoding * encodings = track -> encodings . elem ;\n uint8_t * data = * buf ;\n int isize = * buf_size ;\n uint8_t * pkt_data = NULL ;\n uint8_t av_unused * newpktdata ;\n int pkt_size = isize ;\n int result = 0 ;\n int olen ;\n if ( pkt_size >= 10000000 ) return AVERROR_INVALIDDATA ;\n switch ( encodings [ 0 ] . compression . algo ) {\n case MATROSKA_TRACK_ENCODING_COMP_HEADERSTRIP : {\n int header_size = encodings [ 0 ] . compression . settings . size ;\n uint8_t * header = encodings [ 0 ] . compression . settings . data ;\n if ( ! header_size ) return 0 ;\n pkt_size = isize + header_size ;\n pkt_data = av_malloc ( pkt_size ) ;\n if ( ! pkt_data ) return AVERROR ( ENOMEM ) ;\n memcpy ( pkt_data , header , header_size ) ;\n memcpy ( pkt_data + header_size , data , isize ) ;\n break ;\n }\n # if CONFIG_LZO case MATROSKA_TRACK_ENCODING_COMP_LZO : do {\n olen = pkt_size *= 3 ;\n newpktdata = av_realloc ( pkt_data , pkt_size + AV_LZO_OUTPUT_PADDING ) ;\n if ( ! newpktdata ) {\n result = AVERROR ( ENOMEM ) ;\n goto failed ;\n }\n pkt_data = newpktdata ;\n result = av_lzo1x_decode ( pkt_data , & olen , data , & isize ) ;\n }\n while ( result == AV_LZO_OUTPUT_FULL && pkt_size < 10000000 ) ;\n if ( result ) {\n result = AVERROR_INVALIDDATA ;\n goto failed ;\n }\n pkt_size -= olen ;\n break ;\n # endif # if CONFIG_ZLIB case MATROSKA_TRACK_ENCODING_COMP_ZLIB : {\n z_stream zstream = {\n 0 }\n ;\n if ( inflateInit ( & zstream ) != Z_OK ) return - 1 ;\n zstream . next_in = data ;\n zstream . avail_in = isize ;\n do {\n pkt_size *= 3 ;\n newpktdata = av_realloc ( pkt_data , pkt_size ) ;\n if ( ! newpktdata ) {\n inflateEnd ( & zstream ) ;\n goto failed ;\n }\n pkt_data = newpktdata ;\n zstream . avail_out = pkt_size - zstream . total_out ;\n zstream . next_out = pkt_data + zstream . total_out ;\n result = inflate ( & zstream , Z_NO_FLUSH ) ;\n }\n while ( result == Z_OK && pkt_size < 10000000 ) ;\n pkt_size = zstream . total_out ;\n inflateEnd ( & zstream ) ;\n if ( result != Z_STREAM_END ) {\n if ( result == Z_MEM_ERROR ) result = AVERROR ( ENOMEM ) ;\n else result = AVERROR_INVALIDDATA ;\n goto failed ;\n }\n break ;\n }\n # endif # if CONFIG_BZLIB case MATROSKA_TRACK_ENCODING_COMP_BZLIB : {\n bz_stream bzstream = {\n 0 }\n ;\n if ( BZ2_bzDecompressInit ( & bzstream , 0 , 0 ) != BZ_OK ) return - 1 ;\n bzstream . next_in = data ;\n bzstream . avail_in = isize ;\n do {\n pkt_size *= 3 ;\n newpktdata = av_realloc ( pkt_data , pkt_size ) ;\n if ( ! newpktdata ) {\n BZ2_bzDecompressEnd ( & bzstream ) ;\n goto failed ;\n }\n pkt_data = newpktdata ;\n bzstream . avail_out = pkt_size - bzstream . total_out_lo32 ;\n bzstream . next_out = pkt_data + bzstream . total_out_lo32 ;\n result = BZ2_bzDecompress ( & bzstream ) ;\n }\n while ( result == BZ_OK && pkt_size < 10000000 ) ;\n pkt_size = bzstream . total_out_lo32 ;\n BZ2_bzDecompressEnd ( & bzstream ) ;\n if ( result != BZ_STREAM_END ) {\n if ( result == BZ_MEM_ERROR ) result = AVERROR ( ENOMEM ) ;\n else result = AVERROR_INVALIDDATA ;\n goto failed ;\n }\n break ;\n }\n # endif default : return AVERROR_INVALIDDATA ;\n }\n * buf = pkt_data ;\n * buf_size = pkt_size ;\n return 0 ;\n failed : av_free ( pkt_data ) ;\n return result ;\n }"}
{"idx": 13309, "target": 0, "func": "static Picture * remove_long ( H264Context * h , int i , int ref_mask ) {\n Picture * pic ;\n pic = h -> long_ref [ i ] ;\n if ( pic ) {\n if ( unreference_pic ( h , pic , ref_mask ) ) {\n assert ( h -> long_ref [ i ] -> long_ref == 1 ) ;\n h -> long_ref [ i ] -> long_ref = 0 ;\n h -> long_ref [ i ] = NULL ;\n h -> long_ref_count -- ;\n }\n }\n return pic ;\n }"}
{"idx": 13310, "target": 0, "func": "static void dissect_coap_opt_hex_string ( tvbuff_t * tvb , proto_item * item , proto_tree * subtree , gint offset , gint opt_length , int hf ) {\n const guint8 * str ;\n if ( opt_length == 0 ) str = nullstr ;\n else str = tvb_bytes_to_str_punct ( wmem_packet_scope ( ) , tvb , offset , opt_length , ' ' ) ;\n proto_tree_add_item ( subtree , hf , tvb , offset , opt_length , ENC_NA ) ;\n proto_item_append_text ( item , \": %s\" , str ) ;\n }"}
{"idx": 13311, "target": 0, "func": "static kadm5_ret_t copy_tl_data ( krb5_int16 n_tl_data , krb5_tl_data * tl_data , krb5_tl_data * * out ) {\n kadm5_ret_t ret ;\n krb5_tl_data * tl , * tl_new ;\n if ( ( ret = alloc_tl_data ( n_tl_data , out ) ) ) return ret ;\n tl = tl_data ;\n tl_new = * out ;\n for ( ;\n tl ;\n tl = tl -> tl_data_next , tl_new = tl_new -> tl_data_next ) {\n tl_new -> tl_data_contents = malloc ( tl -> tl_data_length ) ;\n if ( tl_new -> tl_data_contents == NULL ) return ENOMEM ;\n memcpy ( tl_new -> tl_data_contents , tl -> tl_data_contents , tl -> tl_data_length ) ;\n tl_new -> tl_data_type = tl -> tl_data_type ;\n tl_new -> tl_data_length = tl -> tl_data_length ;\n }\n return 0 ;\n }"}
{"idx": 13312, "target": 0, "func": "static int checkHttpTxnServerReqGet ( SocketTest * test , void * data ) {\n TSMBuffer bufp ;\n TSMLoc mloc ;\n TSHttpTxn txnp = ( TSHttpTxn ) data ;\n if ( TSHttpTxnServerReqGet ( txnp , & bufp , & mloc ) != TS_SUCCESS ) {\n test -> test_server_req_get = false ;\n SDK_RPRINT ( test -> regtest , \"TSHttpTxnServerReqGet\" , \"TestCase1\" , TC_FAIL , \"Unable to get handle to server request\" ) ;\n return TS_EVENT_CONTINUE ;\n }\n if ( ( bufp == reinterpret_cast < TSMBuffer > ( & ( ( HttpSM * ) txnp ) -> t_state . hdr_info . server_request ) ) && ( mloc == reinterpret_cast < TSMLoc > ( ( ( HttpSM * ) txnp ) -> t_state . hdr_info . server_request . m_http ) ) ) {\n test -> test_server_req_get = true ;\n SDK_RPRINT ( test -> regtest , \"TSHttpTxnServerReqGet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n else {\n test -> test_server_req_get = false ;\n SDK_RPRINT ( test -> regtest , \"TSHttpTxnServerReqGet\" , \"TestCase1\" , TC_FAIL , \"Value's Mismatch\" ) ;\n }\n return TS_EVENT_CONTINUE ;\n }"}
{"idx": 13313, "target": 0, "func": "static int dissect_h245_INTEGER_1_448 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 448U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 13314, "target": 0, "func": "static void residual_interp ( int16_t * buf , int16_t * out , int lag , int gain , int * rseed ) {\n int i ;\n if ( lag ) {\n int16_t * vector_ptr = buf + PITCH_MAX ;\n for ( i = 0 ;\n i < lag ;\n i ++ ) out [ i ] = vector_ptr [ i - lag ] * 3 >> 2 ;\n av_memcpy_backptr ( ( uint8_t * ) ( out + lag ) , lag * sizeof ( * out ) , ( FRAME_LEN - lag ) * sizeof ( * out ) ) ;\n }\n else {\n for ( i = 0 ;\n i < FRAME_LEN ;\n i ++ ) {\n * rseed = * rseed * 521 + 259 ;\n out [ i ] = gain * * rseed >> 15 ;\n }\n memset ( buf , 0 , ( FRAME_LEN + PITCH_MAX ) * sizeof ( * buf ) ) ;\n }\n }"}
{"idx": 13315, "target": 0, "func": "void nautilus_async_destroying_file ( NautilusFile * file ) {\n NautilusDirectory * directory ;\n gboolean changed ;\n GList * node , * next ;\n ReadyCallback * callback ;\n Monitor * monitor ;\n directory = file -> details -> directory ;\n changed = FALSE ;\n for ( node = directory -> details -> call_when_ready_list ;\n node != NULL ;\n node = next ) {\n next = node -> next ;\n callback = node -> data ;\n if ( callback -> file == file ) {\n if ( callback -> active ) {\n g_warning ( \"destroyed file has call_when_ready pending\" ) ;\n }\n remove_callback_link ( directory , node ) ;\n changed = TRUE ;\n }\n }\n for ( node = directory -> details -> monitor_list ;\n node != NULL ;\n node = next ) {\n next = node -> next ;\n monitor = node -> data ;\n if ( monitor -> file == file ) {\n g_warning ( \"destroyed file still being monitored\" ) ;\n remove_monitor_link ( directory , node ) ;\n changed = TRUE ;\n }\n }\n if ( directory -> details -> count_in_progress != NULL && directory -> details -> count_in_progress -> count_file == file ) {\n directory -> details -> count_in_progress -> count_file = NULL ;\n changed = TRUE ;\n }\n if ( directory -> details -> deep_count_file == file ) {\n directory -> details -> deep_count_file = NULL ;\n changed = TRUE ;\n }\n if ( directory -> details -> mime_list_in_progress != NULL && directory -> details -> mime_list_in_progress -> mime_list_file == file ) {\n directory -> details -> mime_list_in_progress -> mime_list_file = NULL ;\n changed = TRUE ;\n }\n if ( directory -> details -> get_info_file == file ) {\n directory -> details -> get_info_file = NULL ;\n changed = TRUE ;\n }\n if ( directory -> details -> link_info_read_state != NULL && directory -> details -> link_info_read_state -> file == file ) {\n directory -> details -> link_info_read_state -> file = NULL ;\n changed = TRUE ;\n }\n if ( directory -> details -> extension_info_file == file ) {\n directory -> details -> extension_info_file = NULL ;\n changed = TRUE ;\n }\n if ( directory -> details -> thumbnail_state != NULL && directory -> details -> thumbnail_state -> file == file ) {\n directory -> details -> thumbnail_state -> file = NULL ;\n changed = TRUE ;\n }\n if ( directory -> details -> mount_state != NULL && directory -> details -> mount_state -> file == file ) {\n directory -> details -> mount_state -> file = NULL ;\n changed = TRUE ;\n }\n if ( directory -> details -> filesystem_info_state != NULL && directory -> details -> filesystem_info_state -> file == file ) {\n directory -> details -> filesystem_info_state -> file = NULL ;\n changed = TRUE ;\n }\n if ( changed ) {\n nautilus_directory_async_state_changed ( directory ) ;\n }\n }"}
{"idx": 13316, "target": 0, "func": "void qemu_spice_display_init ( void ) {\n QemuConsole * con ;\n int i ;\n for ( i = 0 ;\n ;\n i ++ ) {\n con = qemu_console_lookup_by_index ( i ) ;\n if ( ! con || ! qemu_console_is_graphic ( con ) ) {\n break ;\n }\n if ( qemu_spice_have_display_interface ( con ) ) {\n continue ;\n }\n qemu_spice_display_init_one ( con ) ;\n }\n }"}
{"idx": 13317, "target": 0, "func": "static uint32_t e1000e_txdesc_writeback ( E1000ECore * core , dma_addr_t base , struct e1000_tx_desc * dp , bool * ide , int queue_idx ) {\n uint32_t txd_upper , txd_lower = le32_to_cpu ( dp -> lower . data ) ;\n if ( ! ( txd_lower & E1000_TXD_CMD_RS ) && ! ( core -> mac [ IVAR ] & E1000_IVAR_TX_INT_EVERY_WB ) ) {\n return 0 ;\n }\n * ide = ( txd_lower & E1000_TXD_CMD_IDE ) ? true : false ;\n txd_upper = le32_to_cpu ( dp -> upper . data ) | E1000_TXD_STAT_DD ;\n dp -> upper . data = cpu_to_le32 ( txd_upper ) ;\n pci_dma_write ( core -> owner , base + ( ( char * ) & dp -> upper - ( char * ) dp ) , & dp -> upper , sizeof ( dp -> upper ) ) ;\n return e1000e_tx_wb_interrupt_cause ( core , queue_idx ) ;\n }"}
{"idx": 13318, "target": 0, "func": "static int s_aes_init ( stream_state * ss ) {\n stream_aes_state * const state = ( stream_aes_state * ) ss ;\n state -> initialized = 0 ;\n state -> ctx = NULL ;\n return 0 ;\n }"}
{"idx": 13319, "target": 0, "func": "static void ImportIndexAlphaQuantum ( const Image * image , QuantumInfo * quantum_info , const MagickSizeType number_pixels , const unsigned char * magick_restrict p , Quantum * magick_restrict q , ExceptionInfo * exception ) {\n MagickBooleanType range_exception ;\n QuantumAny range ;\n register ssize_t x ;\n ssize_t bit ;\n unsigned int pixel ;\n if ( image -> storage_class != PseudoClass ) {\n ( void ) ThrowMagickException ( exception , GetMagickModule ( ) , ImageError , \"ColormappedImageRequired\" , \"`%s'\" , image -> filename ) ;\n return ;\n }\n range_exception = MagickFalse ;\n switch ( quantum_info -> depth ) {\n case 1 : {\n register unsigned char pixel ;\n for ( x = ( ( ssize_t ) number_pixels - 3 ) ;\n x > 0 ;\n x -= 4 ) {\n for ( bit = 0 ;\n bit < 8 ;\n bit += 2 ) {\n if ( quantum_info -> min_is_white == MagickFalse ) pixel = ( unsigned char ) ( ( ( * p ) & ( 1 << ( 7 - bit ) ) ) == 0 ? 0x00 : 0x01 ) ;\n else pixel = ( unsigned char ) ( ( ( * p ) & ( 1 << ( 7 - bit ) ) ) != 0 ? 0x00 : 0x01 ) ;\n SetPixelGray ( image , ( Quantum ) ( pixel == 0 ? 0 : QuantumRange ) , q ) ;\n SetPixelAlpha ( image , ( ( * p ) & ( 1UL << ( unsigned char ) ( 6 - bit ) ) ) == 0 ? TransparentAlpha : OpaqueAlpha , q ) ;\n SetPixelIndex ( image , ( Quantum ) ( pixel == 0 ? 0 : 1 ) , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n }\n if ( ( number_pixels % 4 ) != 0 ) for ( bit = 3 ;\n bit >= ( ssize_t ) ( 4 - ( number_pixels % 4 ) ) ;\n bit -= 2 ) {\n if ( quantum_info -> min_is_white == MagickFalse ) pixel = ( unsigned char ) ( ( ( * p ) & ( 1 << ( 7 - bit ) ) ) == 0 ? 0x00 : 0x01 ) ;\n else pixel = ( unsigned char ) ( ( ( * p ) & ( 1 << ( 7 - bit ) ) ) != 0 ? 0x00 : 0x01 ) ;\n SetPixelIndex ( image , ( Quantum ) ( pixel == 0 ? 0 : 1 ) , q ) ;\n SetPixelGray ( image , ( Quantum ) ( pixel == 0 ? 0 : QuantumRange ) , q ) ;\n SetPixelAlpha ( image , ( ( * p ) & ( 1UL << ( unsigned char ) ( 6 - bit ) ) ) == 0 ? TransparentAlpha : OpaqueAlpha , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 4 : {\n register unsigned char pixel ;\n range = GetQuantumRange ( quantum_info -> depth ) ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n pixel = ( unsigned char ) ( ( * p >> 4 ) & 0xf ) ;\n SetPixelIndex ( image , PushColormapIndex ( image , pixel , & range_exception ) , q ) ;\n SetPixelViaPixelInfo ( image , image -> colormap + ( ssize_t ) GetPixelIndex ( image , q ) , q ) ;\n pixel = ( unsigned char ) ( ( * p ) & 0xf ) ;\n SetPixelAlpha ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p ++ ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 8 : {\n unsigned char pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelIndex ( image , PushColormapIndex ( image , pixel , & range_exception ) , q ) ;\n SetPixelViaPixelInfo ( image , image -> colormap + ( ssize_t ) GetPixelIndex ( image , q ) , q ) ;\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelAlpha ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 16 : {\n unsigned short pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelIndex ( image , PushColormapIndex ( image , ClampToQuantum ( ( double ) QuantumRange * HalfToSinglePrecision ( pixel ) ) , & range_exception ) , q ) ;\n SetPixelViaPixelInfo ( image , image -> colormap + ( ssize_t ) GetPixelIndex ( image , q ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelAlpha ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelIndex ( image , PushColormapIndex ( image , pixel , & range_exception ) , q ) ;\n SetPixelViaPixelInfo ( image , image -> colormap + ( ssize_t ) GetPixelIndex ( image , q ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelAlpha ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 32 : {\n unsigned int pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n float pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelIndex ( image , PushColormapIndex ( image , ClampToQuantum ( pixel ) , & range_exception ) , q ) ;\n SetPixelViaPixelInfo ( image , image -> colormap + ( ssize_t ) GetPixelIndex ( image , q ) , q ) ;\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelAlpha ( image , ClampToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelIndex ( image , PushColormapIndex ( image , pixel , & range_exception ) , q ) ;\n SetPixelViaPixelInfo ( image , image -> colormap + ( ssize_t ) GetPixelIndex ( image , q ) , q ) ;\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelAlpha ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 64 : {\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n double pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelIndex ( image , PushColormapIndex ( image , ClampToQuantum ( pixel ) , & range_exception ) , q ) ;\n SetPixelViaPixelInfo ( image , image -> colormap + ( ssize_t ) GetPixelIndex ( image , q ) , q ) ;\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelAlpha ( image , ClampToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n default : {\n range = GetQuantumRange ( quantum_info -> depth ) ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelIndex ( image , PushColormapIndex ( image , pixel , & range_exception ) , q ) ;\n SetPixelViaPixelInfo ( image , image -> colormap + ( ssize_t ) GetPixelIndex ( image , q ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelAlpha ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n if ( range_exception != MagickFalse ) ( void ) ThrowMagickException ( exception , GetMagickModule ( ) , CorruptImageError , \"InvalidColormapIndex\" , \"`%s'\" , image -> filename ) ;\n }"}
{"idx": 13320, "target": 1, "func": "static int svq3_decode_mb ( SVQ3Context * s , unsigned int mb_type ) {\n H264Context * h = & s -> h ;\n int i , j , k , m , dir , mode ;\n int cbp = 0 ;\n uint32_t vlc ;\n int8_t * top , * left ;\n const int mb_xy = h -> mb_xy ;\n const int b_xy = 4 * h -> mb_x + 4 * h -> mb_y * h -> b_stride ;\n h -> top_samples_available = ( h -> mb_y == 0 ) ? 0x33FF : 0xFFFF ;\n h -> left_samples_available = ( h -> mb_x == 0 ) ? 0x5F5F : 0xFFFF ;\n h -> topright_samples_available = 0xFFFF ;\n if ( mb_type == 0 ) {\n if ( h -> pict_type == AV_PICTURE_TYPE_P || s -> next_pic -> f . mb_type [ mb_xy ] == - 1 ) {\n svq3_mc_dir_part ( s , 16 * h -> mb_x , 16 * h -> mb_y , 16 , 16 , 0 , 0 , 0 , 0 , 0 , 0 ) ;\n if ( h -> pict_type == AV_PICTURE_TYPE_B ) svq3_mc_dir_part ( s , 16 * h -> mb_x , 16 * h -> mb_y , 16 , 16 , 0 , 0 , 0 , 0 , 1 , 1 ) ;\n mb_type = MB_TYPE_SKIP ;\n }\n else {\n mb_type = FFMIN ( s -> next_pic -> f . mb_type [ mb_xy ] , 6 ) ;\n if ( svq3_mc_dir ( s , mb_type , PREDICT_MODE , 0 , 0 ) < 0 ) return - 1 ;\n if ( svq3_mc_dir ( s , mb_type , PREDICT_MODE , 1 , 1 ) < 0 ) return - 1 ;\n mb_type = MB_TYPE_16x16 ;\n }\n }\n else if ( mb_type < 8 ) {\n if ( s -> thirdpel_flag && s -> halfpel_flag == ! get_bits1 ( & h -> gb ) ) mode = THIRDPEL_MODE ;\n else if ( s -> halfpel_flag && s -> thirdpel_flag == ! get_bits1 ( & h -> gb ) ) mode = HALFPEL_MODE ;\n else mode = FULLPEL_MODE ;\n for ( m = 0 ;\n m < 2 ;\n m ++ ) {\n if ( h -> mb_x > 0 && h -> intra4x4_pred_mode [ h -> mb2br_xy [ mb_xy - 1 ] + 6 ] != - 1 ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) AV_COPY32 ( h -> mv_cache [ m ] [ scan8 [ 0 ] - 1 + i * 8 ] , h -> cur_pic . f . motion_val [ m ] [ b_xy - 1 + i * h -> b_stride ] ) ;\n }\n else {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) AV_ZERO32 ( h -> mv_cache [ m ] [ scan8 [ 0 ] - 1 + i * 8 ] ) ;\n }\n if ( h -> mb_y > 0 ) {\n memcpy ( h -> mv_cache [ m ] [ scan8 [ 0 ] - 1 * 8 ] , h -> cur_pic . f . motion_val [ m ] [ b_xy - h -> b_stride ] , 4 * 2 * sizeof ( int16_t ) ) ;\n memset ( & h -> ref_cache [ m ] [ scan8 [ 0 ] - 1 * 8 ] , ( h -> intra4x4_pred_mode [ h -> mb2br_xy [ mb_xy - h -> mb_stride ] ] == - 1 ) ? PART_NOT_AVAILABLE : 1 , 4 ) ;\n if ( h -> mb_x < h -> mb_width - 1 ) {\n AV_COPY32 ( h -> mv_cache [ m ] [ scan8 [ 0 ] + 4 - 1 * 8 ] , h -> cur_pic . f . motion_val [ m ] [ b_xy - h -> b_stride + 4 ] ) ;\n h -> ref_cache [ m ] [ scan8 [ 0 ] + 4 - 1 * 8 ] = ( h -> intra4x4_pred_mode [ h -> mb2br_xy [ mb_xy - h -> mb_stride + 1 ] + 6 ] == - 1 || h -> intra4x4_pred_mode [ h -> mb2br_xy [ mb_xy - h -> mb_stride ] ] == - 1 ) ? PART_NOT_AVAILABLE : 1 ;\n }\n else h -> ref_cache [ m ] [ scan8 [ 0 ] + 4 - 1 * 8 ] = PART_NOT_AVAILABLE ;\n if ( h -> mb_x > 0 ) {\n AV_COPY32 ( h -> mv_cache [ m ] [ scan8 [ 0 ] - 1 - 1 * 8 ] , h -> cur_pic . f . motion_val [ m ] [ b_xy - h -> b_stride - 1 ] ) ;\n h -> ref_cache [ m ] [ scan8 [ 0 ] - 1 - 1 * 8 ] = ( h -> intra4x4_pred_mode [ h -> mb2br_xy [ mb_xy - h -> mb_stride - 1 ] + 3 ] == - 1 ) ? PART_NOT_AVAILABLE : 1 ;\n }\n else h -> ref_cache [ m ] [ scan8 [ 0 ] - 1 - 1 * 8 ] = PART_NOT_AVAILABLE ;\n }\n else memset ( & h -> ref_cache [ m ] [ scan8 [ 0 ] - 1 * 8 - 1 ] , PART_NOT_AVAILABLE , 8 ) ;\n if ( h -> pict_type != AV_PICTURE_TYPE_B ) break ;\n }\n if ( h -> pict_type == AV_PICTURE_TYPE_P ) {\n if ( svq3_mc_dir ( s , mb_type - 1 , mode , 0 , 0 ) < 0 ) return - 1 ;\n }\n else {\n if ( mb_type != 2 ) {\n if ( svq3_mc_dir ( s , 0 , mode , 0 , 0 ) < 0 ) return - 1 ;\n }\n else {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) memset ( h -> cur_pic . f . motion_val [ 0 ] [ b_xy + i * h -> b_stride ] , 0 , 4 * 2 * sizeof ( int16_t ) ) ;\n }\n if ( mb_type != 1 ) {\n if ( svq3_mc_dir ( s , 0 , mode , 1 , mb_type == 3 ) < 0 ) return - 1 ;\n }\n else {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) memset ( h -> cur_pic . f . motion_val [ 1 ] [ b_xy + i * h -> b_stride ] , 0 , 4 * 2 * sizeof ( int16_t ) ) ;\n }\n }\n mb_type = MB_TYPE_16x16 ;\n }\n else if ( mb_type == 8 || mb_type == 33 ) {\n memset ( h -> intra4x4_pred_mode_cache , - 1 , 8 * 5 * sizeof ( int8_t ) ) ;\n if ( mb_type == 8 ) {\n if ( h -> mb_x > 0 ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) h -> intra4x4_pred_mode_cache [ scan8 [ 0 ] - 1 + i * 8 ] = h -> intra4x4_pred_mode [ h -> mb2br_xy [ mb_xy - 1 ] + 6 - i ] ;\n if ( h -> intra4x4_pred_mode_cache [ scan8 [ 0 ] - 1 ] == - 1 ) h -> left_samples_available = 0x5F5F ;\n }\n if ( h -> mb_y > 0 ) {\n h -> intra4x4_pred_mode_cache [ 4 + 8 * 0 ] = h -> intra4x4_pred_mode [ h -> mb2br_xy [ mb_xy - h -> mb_stride ] + 0 ] ;\n h -> intra4x4_pred_mode_cache [ 5 + 8 * 0 ] = h -> intra4x4_pred_mode [ h -> mb2br_xy [ mb_xy - h -> mb_stride ] + 1 ] ;\n h -> intra4x4_pred_mode_cache [ 6 + 8 * 0 ] = h -> intra4x4_pred_mode [ h -> mb2br_xy [ mb_xy - h -> mb_stride ] + 2 ] ;\n h -> intra4x4_pred_mode_cache [ 7 + 8 * 0 ] = h -> intra4x4_pred_mode [ h -> mb2br_xy [ mb_xy - h -> mb_stride ] + 3 ] ;\n if ( h -> intra4x4_pred_mode_cache [ 4 + 8 * 0 ] == - 1 ) h -> top_samples_available = 0x33FF ;\n }\n for ( i = 0 ;\n i < 16 ;\n i += 2 ) {\n vlc = svq3_get_ue_golomb ( & h -> gb ) ;\n if ( vlc >= 25 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"luma prediction:%d\\n\" , vlc ) ;\n return - 1 ;\n }\n left = & h -> intra4x4_pred_mode_cache [ scan8 [ i ] - 1 ] ;\n top = & h -> intra4x4_pred_mode_cache [ scan8 [ i ] - 8 ] ;\n left [ 1 ] = svq3_pred_1 [ top [ 0 ] + 1 ] [ left [ 0 ] + 1 ] [ svq3_pred_0 [ vlc ] [ 0 ] ] ;\n left [ 2 ] = svq3_pred_1 [ top [ 1 ] + 1 ] [ left [ 1 ] + 1 ] [ svq3_pred_0 [ vlc ] [ 1 ] ] ;\n if ( left [ 1 ] == - 1 || left [ 2 ] == - 1 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"weird prediction\\n\" ) ;\n return - 1 ;\n }\n }\n }\n else {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) memset ( & h -> intra4x4_pred_mode_cache [ scan8 [ 0 ] + 8 * i ] , DC_PRED , 4 ) ;\n }\n write_back_intra_pred_mode ( h ) ;\n if ( mb_type == 8 ) {\n ff_h264_check_intra4x4_pred_mode ( h ) ;\n h -> top_samples_available = ( h -> mb_y == 0 ) ? 0x33FF : 0xFFFF ;\n h -> left_samples_available = ( h -> mb_x == 0 ) ? 0x5F5F : 0xFFFF ;\n }\n else {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) memset ( & h -> intra4x4_pred_mode_cache [ scan8 [ 0 ] + 8 * i ] , DC_128_PRED , 4 ) ;\n h -> top_samples_available = 0x33FF ;\n h -> left_samples_available = 0x5F5F ;\n }\n mb_type = MB_TYPE_INTRA4x4 ;\n }\n else {\n dir = i_mb_type_info [ mb_type - 8 ] . pred_mode ;\n dir = ( dir >> 1 ) ^ 3 * ( dir & 1 ) ^ 1 ;\n if ( ( h -> intra16x16_pred_mode = ff_h264_check_intra_pred_mode ( h , dir , 0 ) ) == - 1 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"check_intra_pred_mode = -1\\n\" ) ;\n return - 1 ;\n }\n cbp = i_mb_type_info [ mb_type - 8 ] . cbp ;\n mb_type = MB_TYPE_INTRA16x16 ;\n }\n if ( ! IS_INTER ( mb_type ) && h -> pict_type != AV_PICTURE_TYPE_I ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) memset ( h -> cur_pic . f . motion_val [ 0 ] [ b_xy + i * h -> b_stride ] , 0 , 4 * 2 * sizeof ( int16_t ) ) ;\n if ( h -> pict_type == AV_PICTURE_TYPE_B ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) memset ( h -> cur_pic . f . motion_val [ 1 ] [ b_xy + i * h -> b_stride ] , 0 , 4 * 2 * sizeof ( int16_t ) ) ;\n }\n }\n if ( ! IS_INTRA4x4 ( mb_type ) ) {\n memset ( h -> intra4x4_pred_mode + h -> mb2br_xy [ mb_xy ] , DC_PRED , 8 ) ;\n }\n if ( ! IS_SKIP ( mb_type ) || h -> pict_type == AV_PICTURE_TYPE_B ) {\n memset ( h -> non_zero_count_cache + 8 , 0 , 14 * 8 * sizeof ( uint8_t ) ) ;\n h -> dsp . clear_blocks ( h -> mb + 0 ) ;\n h -> dsp . clear_blocks ( h -> mb + 384 ) ;\n }\n if ( ! IS_INTRA16x16 ( mb_type ) && ( ! IS_SKIP ( mb_type ) || h -> pict_type == AV_PICTURE_TYPE_B ) ) {\n if ( ( vlc = svq3_get_ue_golomb ( & h -> gb ) ) >= 48 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"cbp_vlc=%d\\n\" , vlc ) ;\n return - 1 ;\n }\n cbp = IS_INTRA ( mb_type ) ? golomb_to_intra4x4_cbp [ vlc ] : golomb_to_inter_cbp [ vlc ] ;\n }\n if ( IS_INTRA16x16 ( mb_type ) || ( h -> pict_type != AV_PICTURE_TYPE_I && s -> adaptive_quant && cbp ) ) {\n h -> qscale += svq3_get_se_golomb ( & h -> gb ) ;\n if ( h -> qscale > 31u ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"qscale:%d\\n\" , h -> qscale ) ;\n return - 1 ;\n }\n }\n if ( IS_INTRA16x16 ( mb_type ) ) {\n AV_ZERO128 ( h -> mb_luma_dc [ 0 ] + 0 ) ;\n AV_ZERO128 ( h -> mb_luma_dc [ 0 ] + 8 ) ;\n if ( svq3_decode_block ( & h -> gb , h -> mb_luma_dc [ 0 ] , 0 , 1 ) ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"error while decoding intra luma dc\\n\" ) ;\n return - 1 ;\n }\n }\n if ( cbp ) {\n const int index = IS_INTRA16x16 ( mb_type ) ? 1 : 0 ;\n const int type = ( ( h -> qscale < 24 && IS_INTRA4x4 ( mb_type ) ) ? 2 : 1 ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) if ( ( cbp & ( 1 << i ) ) ) {\n for ( j = 0 ;\n j < 4 ;\n j ++ ) {\n k = index ? ( 1 * ( j & 1 ) + 2 * ( i & 1 ) + 2 * ( j & 2 ) + 4 * ( i & 2 ) ) : ( 4 * i + j ) ;\n h -> non_zero_count_cache [ scan8 [ k ] ] = 1 ;\n if ( svq3_decode_block ( & h -> gb , & h -> mb [ 16 * k ] , index , type ) ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"error while decoding block\\n\" ) ;\n return - 1 ;\n }\n }\n }\n if ( ( cbp & 0x30 ) ) {\n for ( i = 1 ;\n i < 3 ;\n ++ i ) if ( svq3_decode_block ( & h -> gb , & h -> mb [ 16 * 16 * i ] , 0 , 3 ) ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"error while decoding chroma dc block\\n\" ) ;\n return - 1 ;\n }\n if ( ( cbp & 0x20 ) ) {\n for ( i = 1 ;\n i < 3 ;\n i ++ ) {\n for ( j = 0 ;\n j < 4 ;\n j ++ ) {\n k = 16 * i + j ;\n h -> non_zero_count_cache [ scan8 [ k ] ] = 1 ;\n if ( svq3_decode_block ( & h -> gb , & h -> mb [ 16 * k ] , 1 , 1 ) ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"error while decoding chroma ac block\\n\" ) ;\n return - 1 ;\n }\n }\n }\n }\n }\n }\n h -> cbp = cbp ;\n h -> cur_pic . f . mb_type [ mb_xy ] = mb_type ;\n if ( IS_INTRA ( mb_type ) ) h -> chroma_pred_mode = ff_h264_check_intra_pred_mode ( h , DC_PRED8x8 , 1 ) ;\n return 0 ;\n }"}
{"idx": 13321, "target": 0, "func": "static void * Type_LUTB2A_Dup ( struct _cms_typehandler_struct * self , const void * Ptr , cmsUInt32Number n ) {\n return ( void * ) cmsPipelineDup ( ( cmsPipeline * ) Ptr ) ;\n cmsUNUSED_PARAMETER ( n ) ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 13322, "target": 0, "func": "static int evhttp_connected ( struct evhttp_connection * evcon ) {\n switch ( evcon -> state ) {\n case EVCON_DISCONNECTED : case EVCON_CONNECTING : return ( 0 ) ;\n case EVCON_IDLE : case EVCON_READING_FIRSTLINE : case EVCON_READING_HEADERS : case EVCON_READING_BODY : case EVCON_READING_TRAILER : case EVCON_WRITING : default : return ( 1 ) ;\n }\n }"}
{"idx": 13323, "target": 0, "func": "void key_put ( struct key * key ) {\n if ( key ) {\n key_check ( key ) ;\n if ( atomic_dec_and_test ( & key -> usage ) ) schedule_work ( & key_gc_work ) ;\n }\n }"}
{"idx": 13324, "target": 0, "func": "void timer_output ( void ) {\n if ( timer_file ) {\n char buf [ 32 ] , * end ;\n ulonglong timer = timer_now ( ) - timer_start ;\n end = longlong10_to_str ( timer , buf , 10 ) ;\n str_to_file ( timer_file , buf , ( int ) ( end - buf ) ) ;\n timer_file = 0 ;\n }\n }"}
{"idx": 13325, "target": 0, "func": "static struct cgroup_process_info * lxc_cgroup_get_container_info ( const char * name , const char * lxcpath , struct cgroup_meta_data * meta_data ) {\n struct cgroup_process_info * result = NULL ;\n int saved_errno = 0 ;\n size_t i ;\n struct cgroup_process_info * * cptr = & result ;\n struct cgroup_process_info * entry = NULL ;\n char * path = NULL ;\n for ( i = 0 ;\n i <= meta_data -> maximum_hierarchy ;\n i ++ ) {\n struct cgroup_hierarchy * h = meta_data -> hierarchies [ i ] ;\n if ( ! h || ! h -> used ) continue ;\n path = lxc_cmd_get_cgroup_path ( name , lxcpath , h -> subsystems [ 0 ] ) ;\n if ( ! path ) {\n h -> used = false ;\n WARN ( \"Not attaching to cgroup %s unknown to %s %s\" , h -> subsystems [ 0 ] , lxcpath , name ) ;\n continue ;\n }\n entry = calloc ( 1 , sizeof ( struct cgroup_process_info ) ) ;\n if ( ! entry ) goto out_error ;\n entry -> meta_ref = lxc_cgroup_get_meta ( meta_data ) ;\n entry -> hierarchy = h ;\n entry -> cgroup_path = path ;\n path = NULL ;\n entry -> designated_mount_point = lxc_cgroup_find_mount_point ( h , entry -> cgroup_path , true ) ;\n * cptr = entry ;\n cptr = & entry -> next ;\n entry = NULL ;\n }\n return result ;\n out_error : saved_errno = errno ;\n free ( path ) ;\n lxc_cgroup_process_info_free ( result ) ;\n lxc_cgroup_process_info_free ( entry ) ;\n errno = saved_errno ;\n return NULL ;\n }"}
{"idx": 13326, "target": 0, "func": "static ufmt_args * parseArguments ( const UChar * alias , va_list ap , UErrorCode * status ) {\n ufmt_args * arglist = NULL ;\n ufmt_type_info * typelist = NULL ;\n UBool * islonglong = NULL ;\n int32_t size = 0 ;\n int32_t pos = 0 ;\n UChar type ;\n uint16_t handlerNum ;\n const UChar * aliasStart = alias ;\n for ( ;\n ;\n ) {\n while ( * alias != UP_PERCENT && * alias != 0x0000 ) {\n alias ++ ;\n }\n if ( * alias == 0x0000 ) {\n break ;\n }\n alias ++ ;\n if ( ISDIGIT ( * alias ) ) {\n if ( ISDIGIT ( * alias ) ) {\n pos = ( int ) ( * alias ++ - DIGIT_ZERO ) ;\n while ( ISDIGIT ( * alias ) ) {\n pos *= 10 ;\n pos += ( int ) ( * alias ++ - DIGIT_ZERO ) ;\n }\n }\n if ( * alias != SPEC_DOLLARSIGN ) {\n return NULL ;\n }\n }\n else {\n return NULL ;\n }\n if ( pos > size ) {\n size = pos ;\n }\n }\n typelist = ( ufmt_type_info * ) uprv_malloc ( sizeof ( ufmt_type_info ) * size ) ;\n islonglong = ( UBool * ) uprv_malloc ( sizeof ( UBool ) * size ) ;\n arglist = ( ufmt_args * ) uprv_malloc ( sizeof ( ufmt_args ) * size ) ;\n if ( ! typelist || ! islonglong || ! arglist ) {\n if ( typelist ) {\n uprv_free ( typelist ) ;\n }\n if ( islonglong ) {\n uprv_free ( islonglong ) ;\n }\n if ( arglist ) {\n uprv_free ( arglist ) ;\n }\n * status = U_MEMORY_ALLOCATION_ERROR ;\n return NULL ;\n }\n alias = aliasStart ;\n for ( ;\n ;\n ) {\n while ( * alias != UP_PERCENT && * alias != 0x0000 ) {\n alias ++ ;\n }\n if ( * alias == 0x0000 ) {\n break ;\n }\n alias ++ ;\n if ( ISDIGIT ( * alias ) ) {\n pos = ( int ) ( * alias ++ - DIGIT_ZERO ) ;\n while ( ISDIGIT ( * alias ) ) {\n pos *= 10 ;\n pos += ( int ) ( * alias ++ - DIGIT_ZERO ) ;\n }\n }\n pos -- ;\n while ( ISMOD ( * alias ) || ISFLAG ( * alias ) || ISDIGIT ( * alias ) || * alias == SPEC_ASTERISK || * alias == SPEC_PERIOD || * alias == SPEC_DOLLARSIGN ) {\n islonglong [ pos ] = FALSE ;\n if ( ISMOD ( * alias ) ) {\n alias ++ ;\n if ( * alias == MOD_LOWERL ) {\n islonglong [ pos ] = TRUE ;\n }\n }\n alias ++ ;\n }\n type = * alias ;\n handlerNum = ( uint16_t ) ( type - UPRINTF_BASE_FMT_HANDLERS ) ;\n if ( handlerNum < UPRINTF_NUM_FMT_HANDLERS ) {\n typelist [ pos ] = g_u_printf_infos [ handlerNum ] . info ;\n }\n else {\n typelist [ pos ] = ufmt_empty ;\n }\n }\n for ( pos = 0 ;\n pos < size ;\n pos ++ ) {\n switch ( typelist [ pos ] ) {\n case ufmt_string : case ufmt_ustring : case ufmt_pointer : arglist [ pos ] . ptrValue = va_arg ( ap , void * ) ;\n break ;\n case ufmt_char : case ufmt_uchar : case ufmt_int : if ( islonglong [ pos ] ) {\n arglist [ pos ] . int64Value = va_arg ( ap , int64_t ) ;\n }\n else {\n arglist [ pos ] . int64Value = va_arg ( ap , int32_t ) ;\n }\n break ;\n case ufmt_float : arglist [ pos ] . floatValue = ( float ) va_arg ( ap , double ) ;\n break ;\n case ufmt_double : arglist [ pos ] . doubleValue = va_arg ( ap , double ) ;\n break ;\n default : arglist [ pos ] . ptrValue = NULL ;\n break ;\n }\n }\n uprv_free ( typelist ) ;\n uprv_free ( islonglong ) ;\n return arglist ;\n }"}
{"idx": 13327, "target": 0, "func": "void evhttp_request_set_chunked_cb ( struct evhttp_request * req , void ( * cb ) ( struct evhttp_request * , void * ) ) {\n req -> chunk_cb = cb ;\n }"}
{"idx": 13328, "target": 0, "func": "static inline void e1000e_clear_ims_bits ( E1000ECore * core , uint32_t bits ) {\n trace_e1000e_irq_clear_ims ( bits , core -> mac [ IMS ] , core -> mac [ IMS ] & ~ bits ) ;\n core -> mac [ IMS ] &= ~ bits ;\n }"}
{"idx": 13329, "target": 0, "func": "static uint32_t getToUnicodeValue ( CnvExtData * extData , UCMTable * table , UCMapping * m ) {\n UChar32 * u32 ;\n UChar * u ;\n uint32_t value ;\n int32_t u16Length , ratio ;\n UErrorCode errorCode ;\n if ( m -> uLen == 1 ) {\n u16Length = U16_LENGTH ( m -> u ) ;\n value = ( uint32_t ) ( UCNV_EXT_TO_U_MIN_CODE_POINT + m -> u ) ;\n }\n else {\n u32 = UCM_GET_CODE_POINTS ( table , m ) ;\n errorCode = U_ZERO_ERROR ;\n u_strFromUTF32 ( NULL , 0 , & u16Length , u32 , m -> uLen , & errorCode ) ;\n if ( U_FAILURE ( errorCode ) && errorCode != U_BUFFER_OVERFLOW_ERROR ) {\n exit ( errorCode ) ;\n }\n value = ( ( ( uint32_t ) u16Length + UCNV_EXT_TO_U_LENGTH_OFFSET ) << UCNV_EXT_TO_U_LENGTH_SHIFT ) | ( ( uint32_t ) utm_countItems ( extData -> toUUChars ) ) ;\n u = utm_allocN ( extData -> toUUChars , u16Length ) ;\n errorCode = U_ZERO_ERROR ;\n u_strFromUTF32 ( u , u16Length , NULL , u32 , m -> uLen , & errorCode ) ;\n if ( U_FAILURE ( errorCode ) && errorCode != U_BUFFER_OVERFLOW_ERROR ) {\n exit ( errorCode ) ;\n }\n }\n if ( m -> f == 0 ) {\n value |= UCNV_EXT_TO_U_ROUNDTRIP_FLAG ;\n }\n if ( m -> bLen > extData -> maxInBytes ) {\n extData -> maxInBytes = m -> bLen ;\n }\n if ( u16Length > extData -> maxOutUChars ) {\n extData -> maxOutUChars = u16Length ;\n }\n ratio = ( u16Length + ( m -> bLen - 1 ) ) / m -> bLen ;\n if ( ratio > extData -> maxUCharsPerByte ) {\n extData -> maxUCharsPerByte = ratio ;\n }\n return value ;\n }"}
{"idx": 13330, "target": 0, "func": "static uint64_t pxa2xx_i2s_read ( void * opaque , hwaddr addr , unsigned size ) {\n PXA2xxI2SState * s = ( PXA2xxI2SState * ) opaque ;\n switch ( addr ) {\n case SACR0 : return s -> control [ 0 ] ;\n case SACR1 : return s -> control [ 1 ] ;\n case SASR0 : return s -> status ;\n case SAIMR : return s -> mask ;\n case SAICR : return 0 ;\n case SADIV : return s -> clk ;\n case SADR : if ( s -> rx_len > 0 ) {\n s -> rx_len -- ;\n pxa2xx_i2s_update ( s ) ;\n return s -> codec_in ( s -> opaque ) ;\n }\n return 0 ;\n default : printf ( \"%s: Bad register \" REG_FMT \"\\n\" , __FUNCTION__ , addr ) ;\n break ;\n }\n return 0 ;\n }"}
{"idx": 13331, "target": 0, "func": "static inline u32 cred_sid ( const struct cred * cred ) {\n const struct task_security_struct * tsec ;\n tsec = cred -> security ;\n return tsec -> sid ;\n }"}
{"idx": 13332, "target": 0, "func": "static int dump_tablespaces ( char * ts_where ) {\n MYSQL_ROW row ;\n MYSQL_RES * tableres ;\n char buf [ FN_REFLEN ] ;\n DYNAMIC_STRING sqlbuf ;\n int first = 0 ;\n char extra_format [ ] = \"UNDO_BUFFER_SIZE=\" ;\n char * ubs ;\n char * endsemi ;\n DBUG_ENTER ( \"dump_tablespaces\" ) ;\n mysql_query ( mysql , \"set optimizer_switch='semijoin=off'\" ) ;\n init_dynamic_string_checked ( & sqlbuf , \"SELECT LOGFILE_GROUP_NAME,\" \" FILE_NAME,\" \" TOTAL_EXTENTS,\" \" INITIAL_SIZE,\" \" ENGINE,\" \" EXTRA\" \" FROM INFORMATION_SCHEMA.FILES\" \" WHERE FILE_TYPE = 'UNDO LOG'\" \" AND FILE_NAME IS NOT NULL\" , 256 , 1024 ) ;\n if ( ts_where ) {\n dynstr_append_checked ( & sqlbuf , \" AND LOGFILE_GROUP_NAME IN (\" \"SELECT DISTINCT LOGFILE_GROUP_NAME\" \" FROM INFORMATION_SCHEMA.FILES\" \" WHERE FILE_TYPE = 'DATAFILE'\" ) ;\n dynstr_append_checked ( & sqlbuf , ts_where ) ;\n dynstr_append_checked ( & sqlbuf , \")\" ) ;\n }\n dynstr_append_checked ( & sqlbuf , \" GROUP BY LOGFILE_GROUP_NAME, FILE_NAME\" \", ENGINE\" \" ORDER BY LOGFILE_GROUP_NAME\" ) ;\n if ( mysql_query ( mysql , sqlbuf . str ) || ! ( tableres = mysql_store_result ( mysql ) ) ) {\n dynstr_free ( & sqlbuf ) ;\n if ( mysql_errno ( mysql ) == ER_BAD_TABLE_ERROR || mysql_errno ( mysql ) == ER_BAD_DB_ERROR || mysql_errno ( mysql ) == ER_UNKNOWN_TABLE ) {\n fprintf ( md_result_file , \"\\n--\\n-- Not dumping tablespaces as no INFORMATION_SCHEMA.FILES\" \" table on this server\\n--\\n\" ) ;\n check_io ( md_result_file ) ;\n DBUG_RETURN ( 0 ) ;\n }\n fprintf ( stderr , \"%s: Error: '%s' when trying to dump tablespaces\\n\" , my_progname_short , mysql_error ( mysql ) ) ;\n DBUG_RETURN ( 1 ) ;\n }\n buf [ 0 ] = 0 ;\n while ( ( row = mysql_fetch_row ( tableres ) ) ) {\n if ( strcmp ( buf , row [ 0 ] ) != 0 ) first = 1 ;\n if ( first ) {\n print_comment ( md_result_file , 0 , \"\\n--\\n-- Logfile group: %s\\n--\\n\" , fix_for_comment ( row [ 0 ] ) ) ;\n fprintf ( md_result_file , \"\\nCREATE\" ) ;\n }\n else {\n fprintf ( md_result_file , \"\\nALTER\" ) ;\n }\n fprintf ( md_result_file , \" LOGFILE GROUP %s\\n\" \" ADD UNDOFILE '%s'\\n\" , row [ 0 ] , row [ 1 ] ) ;\n if ( first ) {\n ubs = strstr ( row [ 5 ] , extra_format ) ;\n if ( ! ubs ) break ;\n ubs += strlen ( extra_format ) ;\n endsemi = strstr ( ubs , \";\n\" ) ;\n if ( endsemi ) endsemi [ 0 ] = '\\0' ;\n fprintf ( md_result_file , \" UNDO_BUFFER_SIZE %s\\n\" , ubs ) ;\n }\n fprintf ( md_result_file , \" INITIAL_SIZE %s\\n\" \" ENGINE=%s;\n\\n\" , row [ 3 ] , row [ 4 ] ) ;\n check_io ( md_result_file ) ;\n if ( first ) {\n first = 0 ;\n strxmov ( buf , row [ 0 ] , NullS ) ;\n }\n }\n dynstr_free ( & sqlbuf ) ;\n mysql_free_result ( tableres ) ;\n init_dynamic_string_checked ( & sqlbuf , \"SELECT DISTINCT TABLESPACE_NAME,\" \" FILE_NAME,\" \" LOGFILE_GROUP_NAME,\" \" EXTENT_SIZE,\" \" INITIAL_SIZE,\" \" ENGINE\" \" FROM INFORMATION_SCHEMA.FILES\" \" WHERE FILE_TYPE = 'DATAFILE'\" , 256 , 1024 ) ;\n if ( ts_where ) dynstr_append_checked ( & sqlbuf , ts_where ) ;\n dynstr_append_checked ( & sqlbuf , \" ORDER BY TABLESPACE_NAME, LOGFILE_GROUP_NAME\" ) ;\n if ( mysql_query_with_error_report ( mysql , & tableres , sqlbuf . str ) ) {\n dynstr_free ( & sqlbuf ) ;\n DBUG_RETURN ( 1 ) ;\n }\n buf [ 0 ] = 0 ;\n while ( ( row = mysql_fetch_row ( tableres ) ) ) {\n if ( strcmp ( buf , row [ 0 ] ) != 0 ) first = 1 ;\n if ( first ) {\n print_comment ( md_result_file , 0 , \"\\n--\\n-- Tablespace: %s\\n--\\n\" , fix_for_comment ( row [ 0 ] ) ) ;\n fprintf ( md_result_file , \"\\nCREATE\" ) ;\n }\n else {\n fprintf ( md_result_file , \"\\nALTER\" ) ;\n }\n fprintf ( md_result_file , \" TABLESPACE %s\\n\" \" ADD DATAFILE '%s'\\n\" , row [ 0 ] , row [ 1 ] ) ;\n if ( first ) {\n fprintf ( md_result_file , \" USE LOGFILE GROUP %s\\n\" \" EXTENT_SIZE %s\\n\" , row [ 2 ] , row [ 3 ] ) ;\n }\n fprintf ( md_result_file , \" INITIAL_SIZE %s\\n\" \" ENGINE=%s;\n\\n\" , row [ 4 ] , row [ 5 ] ) ;\n check_io ( md_result_file ) ;\n if ( first ) {\n first = 0 ;\n strxmov ( buf , row [ 0 ] , NullS ) ;\n }\n }\n mysql_free_result ( tableres ) ;\n dynstr_free ( & sqlbuf ) ;\n mysql_query ( mysql , \"set optimizer_switch=default\" ) ;\n DBUG_RETURN ( 0 ) ;\n }"}
{"idx": 13333, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( BookmarkBubbleSignInDelegateTest , BrowserRemoved ) {\n Browser * extra_browser = CreateBrowser ( profile ( ) ) ;\n ReplaceBlank ( extra_browser ) ;\n int starting_tab_count = extra_browser -> tab_strip_model ( ) -> count ( ) ;\n scoped_ptr < BookmarkBubbleDelegate > delegate ;\n delegate . reset ( new BookmarkBubbleSignInDelegate ( browser ( ) ) ) ;\n BrowserList : : SetLastActive ( extra_browser ) ;\n browser ( ) -> tab_strip_model ( ) -> CloseAllTabs ( ) ;\n content : : RunAllPendingInMessageLoop ( ) ;\n delegate -> OnSignInLinkClicked ( ) ;\n int tab_count = extra_browser -> tab_strip_model ( ) -> count ( ) ;\n EXPECT_EQ ( starting_tab_count + 1 , tab_count ) ;\n }"}
{"idx": 13334, "target": 1, "func": "static int mss2_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n MSS2Context * ctx = avctx -> priv_data ;\n MSS12Context * c = & ctx -> c ;\n GetBitContext gb ;\n GetByteContext gB ;\n ArithCoder acoder ;\n int keyframe , has_wmv9 , has_mv , is_rle , is_555 , ret ;\n Rectangle wmv9rects [ MAX_WMV9_RECTANGLES ] , * r ;\n int used_rects = 0 , i , implicit_rect = 0 , av_uninit ( wmv9_mask ) ;\n av_assert0 ( FF_INPUT_BUFFER_PADDING_SIZE >= ARITH2_PADDING + ( MIN_CACHE_BITS + 7 ) / 8 ) ;\n init_get_bits ( & gb , buf , buf_size * 8 ) ;\n if ( keyframe = get_bits1 ( & gb ) ) skip_bits ( & gb , 7 ) ;\n has_wmv9 = get_bits1 ( & gb ) ;\n has_mv = keyframe ? 0 : get_bits1 ( & gb ) ;\n is_rle = get_bits1 ( & gb ) ;\n is_555 = is_rle && get_bits1 ( & gb ) ;\n if ( c -> slice_split > 0 ) ctx -> split_position = c -> slice_split ;\n else if ( c -> slice_split < 0 ) {\n if ( get_bits1 ( & gb ) ) {\n if ( get_bits1 ( & gb ) ) {\n if ( get_bits1 ( & gb ) ) ctx -> split_position = get_bits ( & gb , 16 ) ;\n else ctx -> split_position = get_bits ( & gb , 12 ) ;\n }\n else ctx -> split_position = get_bits ( & gb , 8 ) << 4 ;\n }\n else {\n if ( keyframe ) ctx -> split_position = avctx -> height / 2 ;\n }\n }\n else ctx -> split_position = avctx -> height ;\n if ( c -> slice_split && ( ctx -> split_position < 1 - is_555 || ctx -> split_position > avctx -> height - 1 ) ) return AVERROR_INVALIDDATA ;\n align_get_bits ( & gb ) ;\n buf += get_bits_count ( & gb ) >> 3 ;\n buf_size -= get_bits_count ( & gb ) >> 3 ;\n if ( buf_size < 1 ) return AVERROR_INVALIDDATA ;\n if ( is_555 && ( has_wmv9 || has_mv || c -> slice_split && ctx -> split_position ) ) return AVERROR_INVALIDDATA ;\n avctx -> pix_fmt = is_555 ? AV_PIX_FMT_RGB555 : AV_PIX_FMT_RGB24 ;\n if ( ctx -> pic . data [ 0 ] && ctx -> pic . format != avctx -> pix_fmt ) avctx -> release_buffer ( avctx , & ctx -> pic ) ;\n if ( has_wmv9 ) {\n bytestream2_init ( & gB , buf , buf_size + ARITH2_PADDING ) ;\n arith2_init ( & acoder , & gB ) ;\n implicit_rect = ! arith2_get_bit ( & acoder ) ;\n while ( arith2_get_bit ( & acoder ) ) {\n if ( used_rects == MAX_WMV9_RECTANGLES ) return AVERROR_INVALIDDATA ;\n r = & wmv9rects [ used_rects ] ;\n if ( ! used_rects ) r -> x = arith2_get_number ( & acoder , avctx -> width ) ;\n else r -> x = arith2_get_number ( & acoder , avctx -> width - wmv9rects [ used_rects - 1 ] . x ) + wmv9rects [ used_rects - 1 ] . x ;\n r -> y = arith2_get_number ( & acoder , avctx -> height ) ;\n r -> w = arith2_get_number ( & acoder , avctx -> width - r -> x ) + 1 ;\n r -> h = arith2_get_number ( & acoder , avctx -> height - r -> y ) + 1 ;\n used_rects ++ ;\n }\n if ( implicit_rect && used_rects ) {\n av_log ( avctx , AV_LOG_ERROR , \"implicit_rect && used_rects > 0\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( implicit_rect ) {\n wmv9rects [ 0 ] . x = 0 ;\n wmv9rects [ 0 ] . y = 0 ;\n wmv9rects [ 0 ] . w = avctx -> width ;\n wmv9rects [ 0 ] . h = avctx -> height ;\n used_rects = 1 ;\n }\n for ( i = 0 ;\n i < used_rects ;\n i ++ ) {\n if ( ! implicit_rect && arith2_get_bit ( & acoder ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Unexpected grandchildren\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ! i ) {\n wmv9_mask = arith2_get_bit ( & acoder ) - 1 ;\n if ( ! wmv9_mask ) wmv9_mask = arith2_get_number ( & acoder , 256 ) ;\n }\n wmv9rects [ i ] . coded = arith2_get_number ( & acoder , 2 ) ;\n }\n buf += arith2_get_consumed_bytes ( & acoder ) ;\n buf_size -= arith2_get_consumed_bytes ( & acoder ) ;\n if ( buf_size < 1 ) return AVERROR_INVALIDDATA ;\n }\n c -> mvX = c -> mvY = 0 ;\n if ( keyframe && ! is_555 ) {\n if ( ( i = decode_pal_v2 ( c , buf , buf_size ) ) < 0 ) return AVERROR_INVALIDDATA ;\n buf += i ;\n buf_size -= i ;\n }\n else if ( has_mv ) {\n buf += 4 ;\n buf_size -= 4 ;\n if ( buf_size < 1 ) return AVERROR_INVALIDDATA ;\n c -> mvX = AV_RB16 ( buf - 4 ) - avctx -> width ;\n c -> mvY = AV_RB16 ( buf - 2 ) - avctx -> height ;\n }\n if ( c -> mvX < 0 || c -> mvY < 0 ) {\n FFSWAP ( AVFrame , ctx -> pic , ctx -> last_pic ) ;\n FFSWAP ( uint8_t * , c -> pal_pic , c -> last_pal_pic ) ;\n if ( ctx -> pic . data [ 0 ] ) avctx -> release_buffer ( avctx , & ctx -> pic ) ;\n ctx -> pic . reference = 3 ;\n ctx -> pic . buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_READABLE | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE ;\n if ( ( ret = ff_get_buffer ( avctx , & ctx -> pic ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( ctx -> last_pic . data [ 0 ] ) {\n av_assert0 ( ctx -> pic . linesize [ 0 ] == ctx -> last_pic . linesize [ 0 ] ) ;\n c -> last_rgb_pic = ctx -> last_pic . data [ 0 ] + ctx -> last_pic . linesize [ 0 ] * ( avctx -> height - 1 ) ;\n }\n else {\n av_log ( avctx , AV_LOG_ERROR , \"Missing keyframe\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n else {\n if ( ctx -> last_pic . data [ 0 ] ) avctx -> release_buffer ( avctx , & ctx -> last_pic ) ;\n ctx -> pic . reference = 3 ;\n ctx -> pic . buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_READABLE | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE ;\n if ( ( ret = avctx -> reget_buffer ( avctx , & ctx -> pic ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n c -> last_rgb_pic = NULL ;\n }\n c -> rgb_pic = ctx -> pic . data [ 0 ] + ctx -> pic . linesize [ 0 ] * ( avctx -> height - 1 ) ;\n c -> rgb_stride = - ctx -> pic . linesize [ 0 ] ;\n ctx -> pic . key_frame = keyframe ;\n ctx -> pic . pict_type = keyframe ? AV_PICTURE_TYPE_I : AV_PICTURE_TYPE_P ;\n if ( is_555 ) {\n bytestream2_init ( & gB , buf , buf_size ) ;\n if ( decode_555 ( & gB , ( uint16_t * ) c -> rgb_pic , c -> rgb_stride >> 1 , keyframe , avctx -> width , avctx -> height ) ) return AVERROR_INVALIDDATA ;\n buf_size -= bytestream2_tell ( & gB ) ;\n }\n else {\n if ( keyframe ) {\n c -> corrupted = 0 ;\n ff_mss12_slicecontext_reset ( & ctx -> sc [ 0 ] ) ;\n if ( c -> slice_split ) ff_mss12_slicecontext_reset ( & ctx -> sc [ 1 ] ) ;\n }\n if ( is_rle ) {\n init_get_bits ( & gb , buf , buf_size * 8 ) ;\n if ( ret = decode_rle ( & gb , c -> pal_pic , c -> pal_stride , c -> rgb_pic , c -> rgb_stride , c -> pal , keyframe , ctx -> split_position , 0 , avctx -> width , avctx -> height ) ) return ret ;\n align_get_bits ( & gb ) ;\n if ( c -> slice_split ) if ( ret = decode_rle ( & gb , c -> pal_pic , c -> pal_stride , c -> rgb_pic , c -> rgb_stride , c -> pal , keyframe , ctx -> split_position , 1 , avctx -> width , avctx -> height ) ) return ret ;\n align_get_bits ( & gb ) ;\n buf += get_bits_count ( & gb ) >> 3 ;\n buf_size -= get_bits_count ( & gb ) >> 3 ;\n }\n else if ( ! implicit_rect || wmv9_mask != - 1 ) {\n if ( c -> corrupted ) return AVERROR_INVALIDDATA ;\n bytestream2_init ( & gB , buf , buf_size + ARITH2_PADDING ) ;\n arith2_init ( & acoder , & gB ) ;\n c -> keyframe = keyframe ;\n if ( c -> corrupted = ff_mss12_decode_rect ( & ctx -> sc [ 0 ] , & acoder , 0 , 0 , avctx -> width , ctx -> split_position ) ) return AVERROR_INVALIDDATA ;\n buf += arith2_get_consumed_bytes ( & acoder ) ;\n buf_size -= arith2_get_consumed_bytes ( & acoder ) ;\n if ( c -> slice_split ) {\n if ( buf_size < 1 ) return AVERROR_INVALIDDATA ;\n bytestream2_init ( & gB , buf , buf_size + ARITH2_PADDING ) ;\n arith2_init ( & acoder , & gB ) ;\n if ( c -> corrupted = ff_mss12_decode_rect ( & ctx -> sc [ 1 ] , & acoder , 0 , ctx -> split_position , avctx -> width , avctx -> height - ctx -> split_position ) ) return AVERROR_INVALIDDATA ;\n buf += arith2_get_consumed_bytes ( & acoder ) ;\n buf_size -= arith2_get_consumed_bytes ( & acoder ) ;\n }\n }\n else memset ( c -> pal_pic , 0 , c -> pal_stride * avctx -> height ) ;\n }\n if ( has_wmv9 ) {\n for ( i = 0 ;\n i < used_rects ;\n i ++ ) {\n int x = wmv9rects [ i ] . x ;\n int y = wmv9rects [ i ] . y ;\n int w = wmv9rects [ i ] . w ;\n int h = wmv9rects [ i ] . h ;\n if ( wmv9rects [ i ] . coded ) {\n int WMV9codedFrameSize ;\n if ( buf_size < 4 || ! ( WMV9codedFrameSize = AV_RL24 ( buf ) ) ) return AVERROR_INVALIDDATA ;\n if ( ret = decode_wmv9 ( avctx , buf + 3 , buf_size - 3 , x , y , w , h , wmv9_mask ) ) return ret ;\n buf += WMV9codedFrameSize + 3 ;\n buf_size -= WMV9codedFrameSize + 3 ;\n }\n else {\n uint8_t * dst = c -> rgb_pic + y * c -> rgb_stride + x * 3 ;\n if ( wmv9_mask != - 1 ) {\n ctx -> dsp . mss2_gray_fill_masked ( dst , c -> rgb_stride , wmv9_mask , c -> pal_pic + y * c -> pal_stride + x , c -> pal_stride , w , h ) ;\n }\n else {\n do {\n memset ( dst , 0x80 , w * 3 ) ;\n dst += c -> rgb_stride ;\n }\n while ( -- h ) ;\n }\n }\n }\n }\n if ( buf_size ) av_log ( avctx , AV_LOG_WARNING , \"buffer not fully consumed\\n\" ) ;\n * got_frame = 1 ;\n * ( AVFrame * ) data = ctx -> pic ;\n return avpkt -> size ;\n }"}
{"idx": 13335, "target": 0, "func": "static void create_clusters ( const AVFrame * frame , int w , int h , uint8_t * yuvClusters ) {\n int i , j , k , l ;\n for ( i = 0 ;\n i < h ;\n i += 4 ) for ( j = 0 ;\n j < w ;\n j += 4 ) {\n for ( k = 0 ;\n k < 2 ;\n k ++ ) for ( l = 0 ;\n l < 2 ;\n l ++ ) frame_block_to_cell ( yuvClusters + ( l + 2 * k ) * 6 , frame -> data , i + 2 * k , j + 2 * l , frame -> linesize ) ;\n yuvClusters += 24 ;\n }\n }"}
{"idx": 13336, "target": 0, "func": "static bool blit_region_is_unsafe ( struct CirrusVGAState * s , int32_t pitch , int32_t addr ) {\n if ( ! pitch ) {\n return true ;\n }\n if ( pitch < 0 ) {\n int64_t min = addr + ( ( int64_t ) s -> cirrus_blt_height - 1 ) * pitch - s -> cirrus_blt_width ;\n if ( min < - 1 || addr >= s -> vga . vram_size ) {\n return true ;\n }\n }\n else {\n int64_t max = addr + ( ( int64_t ) s -> cirrus_blt_height - 1 ) * pitch + s -> cirrus_blt_width ;\n if ( max > s -> vga . vram_size ) {\n return true ;\n }\n }\n return false ;\n }"}
{"idx": 13337, "target": 0, "func": "static int jbig2_default_error ( void * data , const char * msg , Jbig2Severity severity , int32_t seg_idx ) {\n if ( severity == JBIG2_SEVERITY_FATAL ) {\n fprintf ( stderr , \"jbig2 decoder FATAL ERROR: %s\" , msg ) ;\n if ( seg_idx != - 1 ) fprintf ( stderr , \" (segment 0x%02x)\" , seg_idx ) ;\n fprintf ( stderr , \"\\n\" ) ;\n fflush ( stderr ) ;\n }\n return 0 ;\n }"}
{"idx": 13338, "target": 0, "func": "int libevt_record_values_read_element_data ( libevt_io_handle_t * io_handle , libbfio_handle_t * file_io_handle , libfdata_list_element_t * element , libfcache_cache_t * cache , int element_file_index LIBEVT_ATTRIBUTE_UNUSED , off64_t element_offset , size64_t element_size LIBEVT_ATTRIBUTE_UNUSED , uint32_t element_flags LIBEVT_ATTRIBUTE_UNUSED , uint8_t read_flags LIBEVT_ATTRIBUTE_UNUSED , libcerror_error_t * * error ) {\n libevt_record_values_t * record_values = NULL ;\n static char * function = \"libevt_record_values_read_element_data\" ;\n off64_t file_offset = 0 ;\n ssize_t read_count = 0 ;\n LIBEVT_UNREFERENCED_PARAMETER ( element_size ) LIBEVT_UNREFERENCED_PARAMETER ( element_file_index ) LIBEVT_UNREFERENCED_PARAMETER ( element_flags ) LIBEVT_UNREFERENCED_PARAMETER ( read_flags ) # if defined ( HAVE_DEBUG_OUTPUT ) if ( libcnotify_verbose != 0 ) {\n libcnotify_printf ( \"%s: reading record at offset: %\" PRIi64 \" (0x%08\" PRIx64 \")\\n\" , function , element_offset , element_offset ) ;\n }\n # endif if ( libbfio_handle_seek_offset ( file_io_handle , element_offset , SEEK_SET , error ) == - 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_IO , LIBCERROR_IO_ERROR_SEEK_FAILED , \"%s: unable to seek record offset: %\" PRIi64 \".\" , function , element_offset ) ;\n goto on_error ;\n }\n if ( libevt_record_values_initialize ( & record_values , error ) != 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED , \"%s: unable to create record values.\" , function ) ;\n goto on_error ;\n }\n file_offset = element_offset ;\n read_count = libevt_record_values_read ( record_values , file_io_handle , io_handle , & file_offset , 0 , error ) ;\n if ( read_count == - 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_IO , LIBCERROR_IO_ERROR_READ_FAILED , \"%s: unable to read record at offset: %\" PRIi64 \".\" , function , element_offset ) ;\n goto on_error ;\n }\n if ( libfdata_list_element_set_element_value ( element , ( intptr_t * ) file_io_handle , cache , ( intptr_t * ) record_values , ( int ( * ) ( intptr_t * * , libcerror_error_t * * ) ) & libevt_record_values_free , LIBFDATA_LIST_ELEMENT_VALUE_FLAG_MANAGED , error ) != 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_SET_FAILED , \"%s: unable to set record values as element value.\" , function ) ;\n goto on_error ;\n }\n return ( 1 ) ;\n on_error : if ( record_values != NULL ) {\n libevt_record_values_free ( & record_values , NULL ) ;\n }\n return ( - 1 ) ;\n }"}
{"idx": 13339, "target": 0, "func": "static void pk_transaction_get_distro_upgrades ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) {\n g_autoptr ( GError ) error = NULL ;\n g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;\n g_return_if_fail ( transaction -> priv -> tid != NULL ) ;\n g_debug ( \"GetDistroUpgrades method called\" ) ;\n if ( ! pk_backend_is_implemented ( transaction -> priv -> backend , PK_ROLE_ENUM_GET_DISTRO_UPGRADES ) ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NOT_SUPPORTED , \"GetDistroUpgrades not supported by backend\" ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n pk_transaction_set_role ( transaction , PK_ROLE_ENUM_GET_DISTRO_UPGRADES ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_READY ) ;\n out : pk_transaction_dbus_return ( context , error ) ;\n }"}
{"idx": 13340, "target": 0, "func": "static int dissect_h245_ParameterValue ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_ParameterValue , ParameterValue_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 13341, "target": 0, "func": "void proto_register_zbee_zcl_poll_ctrl ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_zbee_zcl_poll_ctrl_attr_id , {\n \"Attribute\" , \"zbee_zcl_general.poll.attr_id\" , FT_UINT16 , BASE_HEX , VALS ( zbee_zcl_poll_ctrl_attr_names ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_poll_ctrl_srv_rx_cmd_id , {\n \"Command\" , \"zbee_zcl_general.poll.cmd.srv_rx.id\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_poll_ctrl_srv_rx_cmd_names ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_poll_ctrl_srv_tx_cmd_id , {\n \"Command\" , \"zbee_zcl_general.poll.cmd.srv_tx.id\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_poll_ctrl_srv_tx_cmd_names ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_poll_ctrl_start_fast_polling , {\n \"Start Fast Polling\" , \"zbee_zcl_general.poll.start\" , FT_BOOLEAN , 8 , TFS ( & tfs_true_false ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_poll_ctrl_fast_poll_timeout , {\n \"Fast Poll Timeout (quarterseconds)\" , \"zbee_zcl_general.poll.fast_timeout\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_poll_ctrl_new_long_poll_interval , {\n \"New Long Poll Interval\" , \"zbee_zcl_general.poll.new_long_interval\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_poll_ctrl_new_short_poll_interval , {\n \"New Short Poll Interval\" , \"zbee_zcl_general.poll.new_short_interval\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n }\n ;\n static gint * ett [ ZBEE_ZCL_POLL_CTRL_NUM_ETT ] ;\n ett [ 0 ] = & ett_zbee_zcl_poll_ctrl ;\n proto_zbee_zcl_poll_ctrl = proto_register_protocol ( \"ZigBee ZCL Poll Control\" , \"ZCL Poll Control\" , ZBEE_PROTOABBREV_ZCL_POLL ) ;\n proto_register_field_array ( proto_zbee_zcl_poll_ctrl , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n register_dissector ( ZBEE_PROTOABBREV_ZCL_POLL , dissect_zbee_zcl_poll_ctrl , proto_zbee_zcl_poll_ctrl ) ;\n }"}
{"idx": 13342, "target": 0, "func": "static guint32 dissect_netb_terminate_trace ( tvbuff_t * tvb _U_ , packet_info * pinfo _U_ , int offset _U_ , proto_tree * tree _U_ ) {\n return 0 ;\n }"}
{"idx": 13343, "target": 0, "func": "static long downtomult ( long x , long y ) {\n assert ( x >= 0 ) ;\n return ( x / y ) * y ;\n }"}
{"idx": 13344, "target": 0, "func": "proto_item * proto_tree_add_oid_format_value ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , const guint8 * value_ptr , const char * format , ... ) {\n proto_item * pi ;\n va_list ap ;\n pi = proto_tree_add_oid ( tree , hfindex , tvb , start , length , value_ptr ) ;\n if ( pi != tree ) {\n va_start ( ap , format ) ;\n proto_tree_set_representation_value ( pi , format , ap ) ;\n va_end ( ap ) ;\n }\n return pi ;\n }"}
{"idx": 13345, "target": 1, "func": "static void spl_filesystem_dir_it_current_data ( zend_object_iterator * iter , zval * * * data TSRMLS_DC ) {\n spl_filesystem_iterator * iterator = ( spl_filesystem_iterator * ) iter ;\n * data = & iterator -> current ;\n }"}
{"idx": 13346, "target": 0, "func": "static int dissect_h225_DisengageRejectReason ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 658 \"./asn1/h225/h225.cnf\" gint32 value ;\n h225_packet_info * h225_pi ;\n h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_DisengageRejectReason , DisengageRejectReason_choice , & value ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> reason = value ;\n }\n return offset ;\n }"}
{"idx": 13347, "target": 1, "func": "void vp9_pick_filter_level ( const YV12_BUFFER_CONFIG * sd , VP9_COMP * cpi , LPF_PICK_METHOD method ) {\n VP9_COMMON * const cm = & cpi -> common ;\n struct loopfilter * const lf = & cm -> lf ;\n lf -> sharpness_level = cm -> frame_type == KEY_FRAME ? 0 : cpi -> oxcf . sharpness ;\n if ( method == LPF_PICK_MINIMAL_LPF && lf -> filter_level ) {\n lf -> filter_level = 0 ;\n }\n else if ( method >= LPF_PICK_FROM_Q ) {\n const int min_filter_level = 0 ;\n const int max_filter_level = get_max_filter_level ( cpi ) ;\n const int q = vp9_ac_quant ( cm -> base_qindex , 0 ) ;\n int filt_guess = ROUND_POWER_OF_TWO ( q * 20723 + 1015158 , 18 ) ;\n if ( cm -> frame_type == KEY_FRAME ) filt_guess -= 4 ;\n lf -> filter_level = clamp ( filt_guess , min_filter_level , max_filter_level ) ;\n }\n else {\n lf -> filter_level = search_filter_level ( sd , cpi , method == LPF_PICK_FROM_SUBIMAGE ) ;\n }\n }"}
{"idx": 13348, "target": 1, "func": "static void _slurm_rpc_job_will_run ( slurm_msg_t * msg ) {\n DEF_TIMERS ;\n int error_code = SLURM_SUCCESS ;\n struct job_record * job_ptr = NULL ;\n job_desc_msg_t * job_desc_msg = ( job_desc_msg_t * ) msg -> data ;\n slurmctld_lock_t job_read_lock = {\n READ_LOCK , READ_LOCK , READ_LOCK , READ_LOCK , READ_LOCK }\n ;\n slurmctld_lock_t job_write_lock = {\n READ_LOCK , WRITE_LOCK , WRITE_LOCK , READ_LOCK , READ_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n uint16_t port ;\n slurm_addr_t resp_addr ;\n will_run_response_msg_t * resp = NULL ;\n char * err_msg = NULL , * job_submit_user_msg = NULL ;\n if ( slurmctld_config . submissions_disabled ) {\n info ( \"Submissions disabled on system\" ) ;\n error_code = ESLURM_SUBMISSIONS_DISABLED ;\n goto send_reply ;\n }\n START_TIMER ;\n debug2 ( \"Processing RPC: REQUEST_JOB_WILL_RUN from uid=%d\" , uid ) ;\n if ( ! _is_valid_will_run_user ( job_desc_msg , uid ) ) {\n error_code = ESLURM_USER_ID_MISSING ;\n error ( \"Security violation, JOB_WILL_RUN RPC from uid=%d\" , uid ) ;\n }\n if ( ( job_desc_msg -> alloc_node == NULL ) || ( job_desc_msg -> alloc_node [ 0 ] == '\\0' ) ) {\n error_code = ESLURM_INVALID_NODE_NAME ;\n error ( \"REQUEST_JOB_WILL_RUN lacks alloc_node from uid=%d\" , uid ) ;\n }\n if ( error_code == SLURM_SUCCESS ) {\n lock_slurmctld ( job_read_lock ) ;\n job_desc_msg -> pack_job_offset = NO_VAL ;\n error_code = validate_job_create_req ( job_desc_msg , uid , & err_msg ) ;\n unlock_slurmctld ( job_read_lock ) ;\n }\n if ( err_msg ) job_submit_user_msg = xstrdup ( err_msg ) ;\n if ( ! slurm_get_peer_addr ( msg -> conn_fd , & resp_addr ) ) {\n job_desc_msg -> resp_host = xmalloc ( 16 ) ;\n slurm_get_ip_str ( & resp_addr , & port , job_desc_msg -> resp_host , 16 ) ;\n dump_job_desc ( job_desc_msg ) ;\n if ( error_code == SLURM_SUCCESS ) {\n lock_slurmctld ( job_write_lock ) ;\n if ( job_desc_msg -> job_id == NO_VAL ) {\n job_desc_msg -> pack_job_offset = NO_VAL ;\n error_code = job_allocate ( job_desc_msg , false , true , & resp , true , uid , & job_ptr , & err_msg , msg -> protocol_version ) ;\n }\n else {\n error_code = job_start_data ( job_desc_msg , & resp ) ;\n }\n unlock_slurmctld ( job_write_lock ) ;\n END_TIMER2 ( \"_slurm_rpc_job_will_run\" ) ;\n }\n }\n else if ( errno ) error_code = errno ;\n else error_code = SLURM_ERROR ;\n send_reply : if ( error_code ) {\n debug2 ( \"_slurm_rpc_job_will_run: %s\" , slurm_strerror ( error_code ) ) ;\n if ( err_msg ) slurm_send_rc_err_msg ( msg , error_code , err_msg ) ;\n else slurm_send_rc_msg ( msg , error_code ) ;\n }\n else if ( resp ) {\n slurm_msg_t response_msg ;\n slurm_msg_t_init ( & response_msg ) ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . address = msg -> address ;\n response_msg . conn = msg -> conn ;\n response_msg . msg_type = RESPONSE_JOB_WILL_RUN ;\n response_msg . data = resp ;\n resp -> job_submit_user_msg = job_submit_user_msg ;\n job_submit_user_msg = NULL ;\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n slurm_free_will_run_response_msg ( resp ) ;\n debug2 ( \"_slurm_rpc_job_will_run success %s\" , TIME_STR ) ;\n }\n else {\n debug2 ( \"_slurm_rpc_job_will_run success %s\" , TIME_STR ) ;\n if ( job_desc_msg -> job_id == NO_VAL ) slurm_send_rc_msg ( msg , SLURM_SUCCESS ) ;\n }\n xfree ( err_msg ) ;\n xfree ( job_submit_user_msg ) ;\n }"}
{"idx": 13349, "target": 0, "func": "static int file_compare_by_parent_uri ( NautilusFile * file_a , NautilusFile * file_b ) {\n char * parent_uri_a , * parent_uri_b ;\n int ret ;\n parent_uri_a = nautilus_file_get_parent_uri ( file_a ) ;\n parent_uri_b = nautilus_file_get_parent_uri ( file_b ) ;\n ret = strcmp ( parent_uri_a , parent_uri_b ) ;\n g_free ( parent_uri_a ) ;\n g_free ( parent_uri_b ) ;\n return ret ;\n }"}
{"idx": 13350, "target": 0, "func": "static int qemuAgentIOProcessData ( qemuAgentPtr mon , char * data , size_t len , qemuAgentMessagePtr msg ) {\n int used = 0 ;\n size_t i = 0 ;\n # if DEBUG_IO # if DEBUG_RAW_IO char * str1 = qemuAgentEscapeNonPrintable ( data ) ;\n VIR_ERROR ( \"[%s]\" , str1 ) ;\n VIR_FREE ( str1 ) ;\n # else VIR_DEBUG ( \"Data %zu bytes [%s]\" , len , data ) ;\n # endif # endif while ( used < len ) {\n char * nl = strstr ( data + used , LINE_ENDING ) ;\n if ( nl ) {\n int got = nl - ( data + used ) ;\n for ( i = 0 ;\n i < strlen ( LINE_ENDING ) ;\n i ++ ) data [ used + got + i ] = '\\0' ;\n if ( qemuAgentIOProcessLine ( mon , data + used , msg ) < 0 ) return - 1 ;\n used += got + strlen ( LINE_ENDING ) ;\n }\n else {\n break ;\n }\n }\n VIR_DEBUG ( \"Total used %d bytes out of %zd available in buffer\" , used , len ) ;\n return used ;\n }"}
{"idx": 13351, "target": 0, "func": "static int dissect_h245_Cm_mediaChannel ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_h245_TransportAddress ( tvb , offset , actx , tree , hf_index ) ;\n return offset ;\n }"}
{"idx": 13352, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( HttpsEngagementPageLoadMetricsBrowserTest , Simple_Https ) {\n StartHttpsServer ( false ) ;\n base : : TimeDelta upper_bound = NavigateInForegroundAndCloseWithTiming ( https_test_server_ -> GetURL ( \"/simple.html\" ) ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpEngagementHistogram , 0 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementHistogram , 1 ) ;\n int32_t bucket_min = histogram_tester_ . GetAllSamples ( internal : : kHttpsEngagementHistogram ) [ 0 ] . min ;\n EXPECT_GE ( upper_bound . InMilliseconds ( ) , bucket_min ) ;\n EXPECT_LT ( 0 , bucket_min ) ;\n }"}
{"idx": 13353, "target": 0, "func": "static void spl_ptr_llist_zval_dtor ( spl_ptr_llist_element * elem TSRMLS_DC ) {\n if ( elem -> data ) {\n zval_ptr_dtor ( ( zval * * ) & elem -> data ) ;\n }\n }"}
{"idx": 13354, "target": 0, "func": "TSReturnCode TSCacheKeyDataTypeSet ( TSCacheKey key , TSCacheDataType type ) {\n sdk_assert ( sdk_sanity_check_cachekey ( key ) == TS_SUCCESS ) ;\n if ( ( ( CacheInfo * ) key ) -> magic != CACHE_INFO_MAGIC_ALIVE ) {\n return TS_ERROR ;\n }\n switch ( type ) {\n case TS_CACHE_DATA_TYPE_NONE : ( ( CacheInfo * ) key ) -> frag_type = CACHE_FRAG_TYPE_NONE ;\n break ;\n case TS_CACHE_DATA_TYPE_OTHER : case TS_CACHE_DATA_TYPE_HTTP : ( ( CacheInfo * ) key ) -> frag_type = CACHE_FRAG_TYPE_HTTP ;\n break ;\n default : return TS_ERROR ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 13355, "target": 0, "func": "static int decode_cabac_mb_chroma_pre_mode ( H264Context * h ) {\n const int mba_xy = h -> left_mb_xy [ 0 ] ;\n const int mbb_xy = h -> top_mb_xy ;\n int ctx = 0 ;\n if ( h -> left_type [ LTOP ] && h -> chroma_pred_mode_table [ mba_xy ] != 0 ) ctx ++ ;\n if ( h -> top_type && h -> chroma_pred_mode_table [ mbb_xy ] != 0 ) ctx ++ ;\n if ( get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 64 + ctx ] ) == 0 ) return 0 ;\n if ( get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 64 + 3 ] ) == 0 ) return 1 ;\n if ( get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 64 + 3 ] ) == 0 ) return 2 ;\n else return 3 ;\n }"}
{"idx": 13356, "target": 0, "func": "static void __fill_bc_link_stat ( struct tipc_nl_compat_msg * msg , struct nlattr * prop [ ] , struct nlattr * stats [ ] ) {\n tipc_tlv_sprintf ( msg -> rep , \" Window:%u packets\\n\" , nla_get_u32 ( prop [ TIPC_NLA_PROP_WIN ] ) ) ;\n tipc_tlv_sprintf ( msg -> rep , \" RX packets:%u fragments:%u/%u bundles:%u/%u\\n\" , nla_get_u32 ( stats [ TIPC_NLA_STATS_RX_INFO ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_RX_FRAGMENTS ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_RX_FRAGMENTED ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_RX_BUNDLES ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_RX_BUNDLED ] ) ) ;\n tipc_tlv_sprintf ( msg -> rep , \" TX packets:%u fragments:%u/%u bundles:%u/%u\\n\" , nla_get_u32 ( stats [ TIPC_NLA_STATS_TX_INFO ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_TX_FRAGMENTS ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_TX_FRAGMENTED ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_TX_BUNDLES ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_TX_BUNDLED ] ) ) ;\n tipc_tlv_sprintf ( msg -> rep , \" RX naks:%u defs:%u dups:%u\\n\" , nla_get_u32 ( stats [ TIPC_NLA_STATS_RX_NACKS ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_RX_DEFERRED ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_DUPLICATES ] ) ) ;\n tipc_tlv_sprintf ( msg -> rep , \" TX naks:%u acks:%u dups:%u\\n\" , nla_get_u32 ( stats [ TIPC_NLA_STATS_TX_NACKS ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_TX_ACKS ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_RETRANSMITTED ] ) ) ;\n tipc_tlv_sprintf ( msg -> rep , \" Congestion link:%u Send queue max:%u avg:%u\" , nla_get_u32 ( stats [ TIPC_NLA_STATS_LINK_CONGS ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_MAX_QUEUE ] ) , nla_get_u32 ( stats [ TIPC_NLA_STATS_AVG_QUEUE ] ) ) ;\n }"}
{"idx": 13357, "target": 0, "func": "static int decode_cabac_p_mb_sub_type ( H264Context * h ) {\n if ( get_cabac ( & h -> cabac , & h -> cabac_state [ 21 ] ) ) return 0 ;\n if ( ! get_cabac ( & h -> cabac , & h -> cabac_state [ 22 ] ) ) return 1 ;\n if ( get_cabac ( & h -> cabac , & h -> cabac_state [ 23 ] ) ) return 2 ;\n return 3 ;\n }"}
{"idx": 13358, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( AppApiTest , OpenAppFromIframe ) {\n extensions : : ProcessMap * process_map = extensions : : ProcessMap : : Get ( browser ( ) -> profile ( ) ) ;\n GURL base_url = GetTestBaseURL ( \"app_process\" ) ;\n const Extension * app = LoadExtension ( test_data_dir_ . AppendASCII ( \"app_process\" ) ) ;\n ASSERT_TRUE ( app ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , base_url . Resolve ( \"path3/container.html\" ) ) ;\n EXPECT_FALSE ( process_map -> Contains ( browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 0 ) -> GetRenderProcessHost ( ) -> GetID ( ) ) ) ;\n const BrowserList * active_browser_list = BrowserList : : GetInstance ( ) ;\n EXPECT_EQ ( 2U , active_browser_list -> size ( ) ) ;\n content : : WebContents * popup_contents = active_browser_list -> get ( 1 ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) ;\n content : : WaitForLoadStop ( popup_contents ) ;\n RenderViewHost * popup_host = popup_contents -> GetRenderViewHost ( ) ;\n EXPECT_TRUE ( process_map -> Contains ( popup_host -> GetProcess ( ) -> GetID ( ) ) ) ;\n }"}
{"idx": 13359, "target": 0, "func": "static int dissect_h245_T_makeMeChairResponse ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_makeMeChairResponse , T_makeMeChairResponse_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 13360, "target": 0, "func": "void OS2FigureUnicodeRanges ( SplineFont * sf , uint32 Ranges [ 4 ] ) {\n int i , k ;\n unsigned j ;\n SplineChar * sc ;\n SplineFont * sub ;\n memset ( Ranges , 0 , 4 * sizeof ( uint32 ) ) ;\n k = 0 ;\n do {\n sub = k < sf -> subfontcnt ? sf -> subfonts [ k ] : sf ;\n for ( i = 0 ;\n i < sub -> glyphcnt ;\n ++ i ) if ( ( sc = sub -> glyphs [ i ] ) != NULL ) {\n if ( SCWorthOutputting ( sc ) && sc -> unicodeenc != - 1 ) {\n if ( sc -> unicodeenc > 0xffff ) Ranges [ 57 >> 5 ] |= ( 1 << ( 57 & 31 ) ) ;\n for ( j = 0 ;\n j < sizeof ( uniranges ) / sizeof ( uniranges [ 0 ] ) ;\n ++ j ) if ( sc -> unicodeenc >= uniranges [ j ] [ 0 ] && sc -> unicodeenc <= uniranges [ j ] [ 1 ] ) {\n int bit = uniranges [ j ] [ 2 ] ;\n Ranges [ bit >> 5 ] |= ( 1 << ( bit & 31 ) ) ;\n break ;\n }\n }\n }\n ++ k ;\n }\n while ( k < sf -> subfontcnt ) ;\n }"}
{"idx": 13361, "target": 0, "func": "static void copy_superblock ( uint16_t * dest , unsigned dest_stride , uint16_t * src , unsigned src_stride ) {\n unsigned y ;\n if ( src ) for ( y = 0 ;\n y < 8 ;\n y ++ ) memcpy ( dest + y * dest_stride , src + y * src_stride , sizeof ( uint16_t ) * 8 ) ;\n else for ( y = 0 ;\n y < 8 ;\n y ++ ) memset ( dest + y * dest_stride , 0 , sizeof ( uint16_t ) * 8 ) ;\n }"}
{"idx": 13362, "target": 0, "func": "static inline bool e1000e_ring_empty ( E1000ECore * core , const E1000E_RingInfo * r ) {\n return core -> mac [ r -> dh ] == core -> mac [ r -> dt ] || core -> mac [ r -> dt ] >= core -> mac [ r -> dlen ] / E1000_RING_DESC_LEN ;\n }"}
{"idx": 13363, "target": 0, "func": "int qtmd_decompress ( struct qtmd_stream * qtm , off_t out_bytes ) {\n unsigned int frame_todo , frame_end , window_posn , match_offset , range ;\n unsigned char * window , * i_ptr , * i_end , * runsrc , * rundest ;\n int i , j , selector , extra , sym , match_length ;\n unsigned short H , L , C , symf ;\n register unsigned int bit_buffer ;\n register unsigned char bits_left ;\n if ( ! qtm || ( out_bytes < 0 ) ) return MSPACK_ERR_ARGS ;\n if ( qtm -> error ) return qtm -> error ;\n i = qtm -> o_end - qtm -> o_ptr ;\n if ( ( off_t ) i > out_bytes ) i = ( int ) out_bytes ;\n if ( i ) {\n if ( qtm -> sys -> write ( qtm -> output , qtm -> o_ptr , i ) != i ) {\n return qtm -> error = MSPACK_ERR_WRITE ;\n }\n qtm -> o_ptr += i ;\n out_bytes -= i ;\n }\n if ( out_bytes == 0 ) return MSPACK_ERR_OK ;\n RESTORE_BITS ;\n window = qtm -> window ;\n window_posn = qtm -> window_posn ;\n frame_todo = qtm -> frame_todo ;\n H = qtm -> H ;\n L = qtm -> L ;\n C = qtm -> C ;\n while ( ( qtm -> o_end - qtm -> o_ptr ) < out_bytes ) {\n if ( ! qtm -> header_read ) {\n H = 0xFFFF ;\n L = 0 ;\n READ_BITS ( C , 16 ) ;\n qtm -> header_read = 1 ;\n }\n frame_end = window_posn + ( out_bytes - ( qtm -> o_end - qtm -> o_ptr ) ) ;\n if ( ( window_posn + frame_todo ) < frame_end ) {\n frame_end = window_posn + frame_todo ;\n }\n if ( frame_end > qtm -> window_size ) {\n frame_end = qtm -> window_size ;\n }\n while ( window_posn < frame_end ) {\n GET_SYMBOL ( qtm -> model7 , selector ) ;\n if ( selector < 4 ) {\n struct qtmd_model * mdl = ( selector == 0 ) ? & qtm -> model0 : ( ( selector == 1 ) ? & qtm -> model1 : ( ( selector == 2 ) ? & qtm -> model2 : & qtm -> model3 ) ) ;\n GET_SYMBOL ( ( * mdl ) , sym ) ;\n window [ window_posn ++ ] = sym ;\n frame_todo -- ;\n }\n else {\n switch ( selector ) {\n case 4 : GET_SYMBOL ( qtm -> model4 , sym ) ;\n READ_MANY_BITS ( extra , extra_bits [ sym ] ) ;\n match_offset = position_base [ sym ] + extra + 1 ;\n match_length = 3 ;\n break ;\n case 5 : GET_SYMBOL ( qtm -> model5 , sym ) ;\n READ_MANY_BITS ( extra , extra_bits [ sym ] ) ;\n match_offset = position_base [ sym ] + extra + 1 ;\n match_length = 4 ;\n break ;\n case 6 : GET_SYMBOL ( qtm -> model6len , sym ) ;\n READ_MANY_BITS ( extra , length_extra [ sym ] ) ;\n match_length = length_base [ sym ] + extra + 5 ;\n GET_SYMBOL ( qtm -> model6 , sym ) ;\n READ_MANY_BITS ( extra , extra_bits [ sym ] ) ;\n match_offset = position_base [ sym ] + extra + 1 ;\n break ;\n default : D ( ( \"got %d from selector\" , selector ) ) return qtm -> error = MSPACK_ERR_DECRUNCH ;\n }\n rundest = & window [ window_posn ] ;\n frame_todo -= match_length ;\n if ( ( window_posn + match_length ) > qtm -> window_size ) {\n i = qtm -> window_size - window_posn ;\n j = window_posn - match_offset ;\n while ( i -- ) * rundest ++ = window [ j ++ & ( qtm -> window_size - 1 ) ] ;\n i = ( & window [ qtm -> window_size ] - qtm -> o_ptr ) ;\n if ( i > out_bytes ) {\n D ( ( \"during window-wrap match;\n %d bytes to flush but only need %d\" , i , ( int ) out_bytes ) ) return qtm -> error = MSPACK_ERR_DECRUNCH ;\n }\n if ( qtm -> sys -> write ( qtm -> output , qtm -> o_ptr , i ) != i ) {\n return qtm -> error = MSPACK_ERR_WRITE ;\n }\n out_bytes -= i ;\n qtm -> o_ptr = & window [ 0 ] ;\n qtm -> o_end = & window [ 0 ] ;\n rundest = & window [ 0 ] ;\n i = match_length - ( qtm -> window_size - window_posn ) ;\n while ( i -- ) * rundest ++ = window [ j ++ & ( qtm -> window_size - 1 ) ] ;\n window_posn = window_posn + match_length - qtm -> window_size ;\n break ;\n }\n else {\n i = match_length ;\n if ( match_offset > window_posn ) {\n j = match_offset - window_posn ;\n if ( j > ( int ) qtm -> window_size ) {\n D ( ( \"match offset beyond window boundaries\" ) ) return qtm -> error = MSPACK_ERR_DECRUNCH ;\n }\n runsrc = & window [ qtm -> window_size - j ] ;\n if ( j < i ) {\n i -= j ;\n while ( j -- > 0 ) * rundest ++ = * runsrc ++ ;\n runsrc = window ;\n }\n while ( i -- > 0 ) * rundest ++ = * runsrc ++ ;\n }\n else {\n runsrc = rundest - match_offset ;\n while ( i -- > 0 ) * rundest ++ = * runsrc ++ ;\n }\n window_posn += match_length ;\n }\n }\n }\n qtm -> o_end = & window [ window_posn ] ;\n if ( frame_todo > QTM_FRAME_SIZE ) {\n D ( ( \"overshot frame alignment\" ) ) return qtm -> error = MSPACK_ERR_DECRUNCH ;\n }\n if ( frame_todo == 0 ) {\n if ( bits_left & 7 ) REMOVE_BITS ( bits_left & 7 ) ;\n do {\n READ_BITS ( i , 8 ) ;\n }\n while ( i != 0xFF ) ;\n qtm -> header_read = 0 ;\n frame_todo = QTM_FRAME_SIZE ;\n }\n if ( window_posn == qtm -> window_size ) {\n i = ( qtm -> o_end - qtm -> o_ptr ) ;\n if ( i >= out_bytes ) break ;\n if ( qtm -> sys -> write ( qtm -> output , qtm -> o_ptr , i ) != i ) {\n return qtm -> error = MSPACK_ERR_WRITE ;\n }\n out_bytes -= i ;\n qtm -> o_ptr = & window [ 0 ] ;\n qtm -> o_end = & window [ 0 ] ;\n window_posn = 0 ;\n }\n }\n if ( out_bytes ) {\n i = ( int ) out_bytes ;\n if ( qtm -> sys -> write ( qtm -> output , qtm -> o_ptr , i ) != i ) {\n return qtm -> error = MSPACK_ERR_WRITE ;\n }\n qtm -> o_ptr += i ;\n }\n STORE_BITS ;\n qtm -> window_posn = window_posn ;\n qtm -> frame_todo = frame_todo ;\n qtm -> H = H ;\n qtm -> L = L ;\n qtm -> C = C ;\n return MSPACK_ERR_OK ;\n }"}
{"idx": 13364, "target": 0, "func": "static void virtio_pci_save_queue ( void * opaque , int n , QEMUFile * f ) {\n VirtIOPCIProxy * proxy = opaque ;\n if ( msix_present ( & proxy -> pci_dev ) ) qemu_put_be16 ( f , virtio_queue_vector ( proxy -> vdev , n ) ) ;\n }"}
{"idx": 13365, "target": 0, "func": "static char * string_getbuffer ( register PyObject * op ) {\n char * s ;\n Py_ssize_t len ;\n if ( PyString_AsStringAndSize ( op , & s , & len ) ) return NULL ;\n return s ;\n }"}
{"idx": 13366, "target": 0, "func": "void nautilus_file_operations_unmount_mount ( GtkWindow * parent_window , GMount * mount , gboolean eject , gboolean check_trash ) {\n nautilus_file_operations_unmount_mount_full ( parent_window , mount , NULL , eject , check_trash , NULL , NULL ) ;\n }"}
{"idx": 13367, "target": 1, "func": "static void s390_init ( ram_addr_t ram_size , const char * boot_device , const char * kernel_filename , const char * kernel_cmdline , const char * initrd_filename , const char * cpu_model ) {\n CPUState * env = NULL ;\n ram_addr_t ram_addr ;\n ram_addr_t kernel_size = 0 ;\n ram_addr_t initrd_offset ;\n ram_addr_t initrd_size = 0 ;\n int i ;\n if ( ! kvm_enabled ( ) ) {\n fprintf ( stderr , \"The S390 target only works with KVM enabled\\n\" ) ;\n exit ( 1 ) ;\n }\n s390_bus = s390_virtio_bus_init ( & ram_size ) ;\n ram_addr = qemu_ram_alloc ( ram_size ) ;\n cpu_register_physical_memory ( 0 , ram_size , ram_addr ) ;\n if ( cpu_model == NULL ) {\n cpu_model = \"host\" ;\n }\n ipi_states = qemu_malloc ( sizeof ( CPUState * ) * smp_cpus ) ;\n for ( i = 0 ;\n i < smp_cpus ;\n i ++ ) {\n CPUState * tmp_env ;\n tmp_env = cpu_init ( cpu_model ) ;\n if ( ! env ) {\n env = tmp_env ;\n }\n ipi_states [ i ] = tmp_env ;\n tmp_env -> halted = 1 ;\n tmp_env -> exception_index = EXCP_HLT ;\n }\n env -> halted = 0 ;\n env -> exception_index = 0 ;\n if ( kernel_filename ) {\n kernel_size = load_image ( kernel_filename , qemu_get_ram_ptr ( 0 ) ) ;\n if ( lduw_phys ( KERN_IMAGE_START ) != 0x0dd0 ) {\n fprintf ( stderr , \"Specified image is not an s390 boot image\\n\" ) ;\n exit ( 1 ) ;\n }\n cpu_synchronize_state ( env ) ;\n env -> psw . addr = KERN_IMAGE_START ;\n env -> psw . mask = 0x0000000180000000ULL ;\n }\n if ( initrd_filename ) {\n initrd_offset = INITRD_START ;\n while ( kernel_size + 0x100000 > initrd_offset ) {\n initrd_offset += 0x100000 ;\n }\n initrd_size = load_image ( initrd_filename , qemu_get_ram_ptr ( initrd_offset ) ) ;\n stq_phys ( INITRD_PARM_START , initrd_offset ) ;\n stq_phys ( INITRD_PARM_SIZE , initrd_size ) ;\n }\n if ( kernel_cmdline ) {\n cpu_physical_memory_rw ( KERN_PARM_AREA , ( uint8_t * ) kernel_cmdline , strlen ( kernel_cmdline ) , 1 ) ;\n }\n for ( i = 0 ;\n i < MAX_VIRTIO_CONSOLES ;\n i ++ ) {\n if ( virtcon_hds [ i ] ) {\n qdev_init_nofail ( qdev_create ( ( BusState * ) s390_bus , \"virtio-console-s390\" ) ) ;\n }\n }\n for ( i = 0 ;\n i < nb_nics ;\n i ++ ) {\n NICInfo * nd = & nd_table [ i ] ;\n DeviceState * dev ;\n if ( ! nd -> model ) {\n nd -> model = qemu_strdup ( \"virtio\" ) ;\n }\n if ( strcmp ( nd -> model , \"virtio\" ) ) {\n fprintf ( stderr , \"S390 only supports VirtIO nics\\n\" ) ;\n exit ( 1 ) ;\n }\n dev = qdev_create ( ( BusState * ) s390_bus , \"virtio-net-s390\" ) ;\n qdev_set_nic_properties ( dev , nd ) ;\n qdev_init_nofail ( dev ) ;\n }\n for ( i = 0 ;\n i < MAX_BLK_DEVS ;\n i ++ ) {\n DriveInfo * dinfo ;\n DeviceState * dev ;\n dinfo = drive_get ( IF_IDE , 0 , i ) ;\n if ( ! dinfo ) {\n continue ;\n }\n dev = qdev_create ( ( BusState * ) s390_bus , \"virtio-blk-s390\" ) ;\n qdev_prop_set_drive ( dev , \"drive\" , dinfo ) ;\n qdev_init_nofail ( dev ) ;\n }\n }"}
{"idx": 13368, "target": 0, "func": "static unsigned int hb_ucdn_decompose_compatibility ( hb_unicode_funcs_t * ufuncs , hb_codepoint_t u , hb_codepoint_t * decomposed , void * user_data HB_UNUSED ) {\n return ucdn_compat_decompose ( u , decomposed ) ;\n }"}
{"idx": 13369, "target": 0, "func": "void qdev_init_nofail ( DeviceState * dev ) {\n DeviceInfo * info = dev -> info ;\n if ( qdev_init ( dev ) < 0 ) hw_error ( \"Initialization of device %s failed\\n\" , info -> name ) ;\n }"}
{"idx": 13370, "target": 0, "func": "bool not_clause ( Node * clause ) {\n return ( clause != NULL && IsA ( clause , BoolExpr ) && ( ( BoolExpr * ) clause ) -> boolop == NOT_EXPR ) ;\n }"}
{"idx": 13371, "target": 0, "func": "static const char * cmd_upload_dir ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n if ( dcfg == NULL ) return NULL ;\n if ( strcasecmp ( p1 , \"none\" ) == 0 ) dcfg -> upload_dir = NULL ;\n else dcfg -> upload_dir = ap_server_root_relative ( cmd -> pool , p1 ) ;\n return NULL ;\n }"}
{"idx": 13372, "target": 0, "func": "Request nautilus_directory_set_up_request ( NautilusFileAttributes file_attributes ) {\n Request request ;\n request = 0 ;\n if ( ( file_attributes & NAUTILUS_FILE_ATTRIBUTE_DIRECTORY_ITEM_COUNT ) != 0 ) {\n REQUEST_SET_TYPE ( request , REQUEST_DIRECTORY_COUNT ) ;\n }\n if ( ( file_attributes & NAUTILUS_FILE_ATTRIBUTE_DEEP_COUNTS ) != 0 ) {\n REQUEST_SET_TYPE ( request , REQUEST_DEEP_COUNT ) ;\n }\n if ( ( file_attributes & NAUTILUS_FILE_ATTRIBUTE_DIRECTORY_ITEM_MIME_TYPES ) != 0 ) {\n REQUEST_SET_TYPE ( request , REQUEST_MIME_LIST ) ;\n }\n if ( ( file_attributes & NAUTILUS_FILE_ATTRIBUTE_INFO ) != 0 ) {\n REQUEST_SET_TYPE ( request , REQUEST_FILE_INFO ) ;\n }\n if ( file_attributes & NAUTILUS_FILE_ATTRIBUTE_LINK_INFO ) {\n REQUEST_SET_TYPE ( request , REQUEST_FILE_INFO ) ;\n REQUEST_SET_TYPE ( request , REQUEST_LINK_INFO ) ;\n }\n if ( ( file_attributes & NAUTILUS_FILE_ATTRIBUTE_EXTENSION_INFO ) != 0 ) {\n REQUEST_SET_TYPE ( request , REQUEST_EXTENSION_INFO ) ;\n }\n if ( file_attributes & NAUTILUS_FILE_ATTRIBUTE_THUMBNAIL ) {\n REQUEST_SET_TYPE ( request , REQUEST_THUMBNAIL ) ;\n REQUEST_SET_TYPE ( request , REQUEST_FILE_INFO ) ;\n }\n if ( file_attributes & NAUTILUS_FILE_ATTRIBUTE_MOUNT ) {\n REQUEST_SET_TYPE ( request , REQUEST_MOUNT ) ;\n REQUEST_SET_TYPE ( request , REQUEST_FILE_INFO ) ;\n }\n if ( file_attributes & NAUTILUS_FILE_ATTRIBUTE_FILESYSTEM_INFO ) {\n REQUEST_SET_TYPE ( request , REQUEST_FILESYSTEM_INFO ) ;\n }\n return request ;\n }"}
{"idx": 13373, "target": 0, "func": "struct key_user * key_user_lookup ( kuid_t uid ) {\n struct key_user * candidate = NULL , * user ;\n struct rb_node * parent = NULL ;\n struct rb_node * * p ;\n try_again : p = & key_user_tree . rb_node ;\n spin_lock ( & key_user_lock ) ;\n while ( * p ) {\n parent = * p ;\n user = rb_entry ( parent , struct key_user , node ) ;\n if ( uid_lt ( uid , user -> uid ) ) p = & ( * p ) -> rb_left ;\n else if ( uid_gt ( uid , user -> uid ) ) p = & ( * p ) -> rb_right ;\n else goto found ;\n }\n if ( ! candidate ) {\n spin_unlock ( & key_user_lock ) ;\n user = NULL ;\n candidate = kmalloc ( sizeof ( struct key_user ) , GFP_KERNEL ) ;\n if ( unlikely ( ! candidate ) ) goto out ;\n goto try_again ;\n }\n atomic_set ( & candidate -> usage , 1 ) ;\n atomic_set ( & candidate -> nkeys , 0 ) ;\n atomic_set ( & candidate -> nikeys , 0 ) ;\n candidate -> uid = uid ;\n candidate -> qnkeys = 0 ;\n candidate -> qnbytes = 0 ;\n spin_lock_init ( & candidate -> lock ) ;\n mutex_init ( & candidate -> cons_lock ) ;\n rb_link_node ( & candidate -> node , parent , p ) ;\n rb_insert_color ( & candidate -> node , & key_user_tree ) ;\n spin_unlock ( & key_user_lock ) ;\n user = candidate ;\n goto out ;\n found : atomic_inc ( & user -> usage ) ;\n spin_unlock ( & key_user_lock ) ;\n kfree ( candidate ) ;\n out : return user ;\n }"}
{"idx": 13374, "target": 0, "func": "int upx_inflate2b ( const char * src , uint32_t ssize , char * dst , uint32_t * dsize , uint32_t upx0 , uint32_t upx1 , uint32_t ep ) {\n int32_t backbytes , unp_offset = - 1 ;\n uint32_t backsize , myebx = 0 , scur = 0 , dcur = 0 , i , magic [ ] = {\n 0x108 , 0x110 , 0xd5 , 0 }\n ;\n int oob ;\n while ( 1 ) {\n while ( ( oob = doubleebx ( src , & myebx , & scur , ssize ) ) == 1 ) {\n if ( scur >= ssize || dcur >= * dsize ) return - 1 ;\n dst [ dcur ++ ] = src [ scur ++ ] ;\n }\n if ( oob == - 1 ) return - 1 ;\n backbytes = 1 ;\n while ( 1 ) {\n if ( ( oob = doubleebx ( src , & myebx , & scur , ssize ) ) == - 1 ) return - 1 ;\n backbytes = backbytes * 2 + oob ;\n if ( ( oob = doubleebx ( src , & myebx , & scur , ssize ) ) == - 1 ) return - 1 ;\n if ( oob ) break ;\n }\n backbytes -= 3 ;\n if ( backbytes >= 0 ) {\n if ( scur >= ssize ) return - 1 ;\n backbytes <<= 8 ;\n backbytes += ( unsigned char ) ( src [ scur ++ ] ) ;\n backbytes ^= 0xffffffff ;\n if ( ! backbytes ) break ;\n unp_offset = backbytes ;\n }\n if ( ( backsize = ( uint32_t ) doubleebx ( src , & myebx , & scur , ssize ) ) == 0xffffffff ) return - 1 ;\n if ( ( oob = doubleebx ( src , & myebx , & scur , ssize ) ) == - 1 ) return - 1 ;\n backsize = backsize * 2 + oob ;\n if ( ! backsize ) {\n backsize ++ ;\n do {\n if ( ( oob = doubleebx ( src , & myebx , & scur , ssize ) ) == - 1 ) return - 1 ;\n backsize = backsize * 2 + oob ;\n }\n while ( ( oob = doubleebx ( src , & myebx , & scur , ssize ) ) == 0 ) ;\n if ( oob == - 1 ) return - 1 ;\n backsize += 2 ;\n }\n if ( ( uint32_t ) unp_offset < 0xfffff300 ) backsize ++ ;\n backsize ++ ;\n if ( ! CLI_ISCONTAINED ( dst , * dsize , dst + dcur + unp_offset , backsize ) || ! CLI_ISCONTAINED ( dst , * dsize , dst + dcur , backsize ) || unp_offset >= 0 ) return - 1 ;\n for ( i = 0 ;\n i < backsize ;\n i ++ ) dst [ dcur + i ] = dst [ dcur + unp_offset + i ] ;\n dcur += backsize ;\n }\n return pefromupx ( src , ssize , dst , dsize , ep , upx0 , upx1 , magic , dcur ) ;\n }"}
{"idx": 13375, "target": 0, "func": "static void predict_field_decoding_flag ( H264Context * h ) {\n const int mb_xy = h -> mb_x + h -> mb_y * h -> mb_stride ;\n int mb_type = ( h -> slice_table [ mb_xy - 1 ] == h -> slice_num ) ? h -> cur_pic . mb_type [ mb_xy - 1 ] : ( h -> slice_table [ mb_xy - h -> mb_stride ] == h -> slice_num ) ? h -> cur_pic . mb_type [ mb_xy - h -> mb_stride ] : 0 ;\n h -> mb_mbaff = h -> mb_field_decoding_flag = IS_INTERLACED ( mb_type ) ? 1 : 0 ;\n }"}
{"idx": 13376, "target": 0, "func": "static int inverse_quant_coeff ( IMCContext * q , IMCChannel * chctx , int stream_format_code ) {\n int i , j ;\n int middle_value , cw_len , max_size ;\n const float * quantizer ;\n for ( i = 0 ;\n i < BANDS ;\n i ++ ) {\n for ( j = band_tab [ i ] ;\n j < band_tab [ i + 1 ] ;\n j ++ ) {\n chctx -> CWdecoded [ j ] = 0 ;\n cw_len = chctx -> CWlengthT [ j ] ;\n if ( cw_len <= 0 || chctx -> skipFlags [ j ] ) continue ;\n max_size = 1 << cw_len ;\n middle_value = max_size >> 1 ;\n if ( chctx -> codewords [ j ] >= max_size || chctx -> codewords [ j ] < 0 ) return AVERROR_INVALIDDATA ;\n if ( cw_len >= 4 ) {\n quantizer = imc_quantizer2 [ ( stream_format_code & 2 ) >> 1 ] ;\n if ( chctx -> codewords [ j ] >= middle_value ) chctx -> CWdecoded [ j ] = quantizer [ chctx -> codewords [ j ] - 8 ] * chctx -> flcoeffs6 [ i ] ;\n else chctx -> CWdecoded [ j ] = - quantizer [ max_size - chctx -> codewords [ j ] - 8 - 1 ] * chctx -> flcoeffs6 [ i ] ;\n }\n else {\n quantizer = imc_quantizer1 [ ( ( stream_format_code & 2 ) >> 1 ) | ( chctx -> bandFlagsBuf [ i ] << 1 ) ] ;\n if ( chctx -> codewords [ j ] >= middle_value ) chctx -> CWdecoded [ j ] = quantizer [ chctx -> codewords [ j ] - 1 ] * chctx -> flcoeffs6 [ i ] ;\n else chctx -> CWdecoded [ j ] = - quantizer [ max_size - 2 - chctx -> codewords [ j ] ] * chctx -> flcoeffs6 [ i ] ;\n }\n }\n }\n return 0 ;\n }"}
{"idx": 13377, "target": 1, "func": "static void vga_draw_line15_le ( VGACommonState * s1 , uint8_t * d , const uint8_t * s , int width ) {\n int w ;\n uint32_t v , r , g , b ;\n w = width ;\n do {\n v = lduw_le_p ( ( void * ) s ) ;\n r = ( v >> 7 ) & 0xf8 ;\n g = ( v >> 2 ) & 0xf8 ;\n b = ( v << 3 ) & 0xf8 ;\n ( ( uint32_t * ) d ) [ 0 ] = rgb_to_pixel32 ( r , g , b ) ;\n s += 2 ;\n d += 4 ;\n }\n while ( -- w != 0 ) ;\n }"}
{"idx": 13378, "target": 0, "func": "void dissect_coap_payload ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * coap_tree , proto_tree * parent_tree , gint offset , gint offset_end , guint8 code_class , coap_info * coinfo , coap_common_dissect_t * dissect_hf , gboolean oscore ) {\n proto_tree * payload_tree ;\n proto_item * payload_item , * length_item ;\n tvbuff_t * payload_tvb ;\n guint payload_length = offset_end - offset ;\n const char * coap_ctype_str_dis ;\n char str_payload [ 80 ] ;\n if ( coinfo -> ctype_value == DEFAULT_COAP_CTYPE_VALUE ) {\n if ( ( code_class >= 4 ) && ( code_class <= 5 ) ) {\n coinfo -> ctype_str = \"text/plain;\n charset=utf-8\" ;\n coap_ctype_str_dis = \"text/plain\" ;\n }\n else {\n coinfo -> ctype_str = \"application/octet-stream\" ;\n coap_ctype_str_dis = coinfo -> ctype_str ;\n }\n }\n else if ( coinfo -> ctype_value == 0 ) {\n coap_ctype_str_dis = \"text/plain\" ;\n }\n else {\n coap_ctype_str_dis = coinfo -> ctype_str ;\n }\n g_snprintf ( str_payload , sizeof ( str_payload ) , \"Payload Content-Format: %s%s, Length: %u\" , coinfo -> ctype_str , coinfo -> ctype_value == DEFAULT_COAP_CTYPE_VALUE ? \" (no Content-Format)\" : \"\" , payload_length ) ;\n payload_item = proto_tree_add_string ( coap_tree , dissect_hf -> hf . payload , tvb , offset , payload_length , str_payload ) ;\n payload_tree = proto_item_add_subtree ( payload_item , dissect_hf -> ett . payload ) ;\n proto_tree_add_string ( payload_tree , dissect_hf -> hf . payload_desc , tvb , offset , 0 , coinfo -> ctype_str ) ;\n length_item = proto_tree_add_uint ( payload_tree , dissect_hf -> hf . payload_length , tvb , offset , 0 , payload_length ) ;\n PROTO_ITEM_SET_GENERATED ( length_item ) ;\n payload_tvb = tvb_new_subset_length ( tvb , offset , payload_length ) ;\n dissector_try_string ( media_type_dissector_table , coap_ctype_str_dis , payload_tvb , pinfo , parent_tree , NULL ) ;\n if ( coinfo -> object_security && ! oscore ) {\n proto_item_set_text ( payload_item , \"Encrypted OSCORE Data\" ) ;\n call_dissector_with_data ( oscore_handle , payload_tvb , pinfo , parent_tree , coinfo -> oscore_info ) ;\n }\n }"}
{"idx": 13379, "target": 0, "func": "IN_PROC_BROWSER_TEST_P ( WebRtcWebcamBrowserTest , TestAcquiringAndReacquiringWebcam ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> InitializeAndWaitUntilReady ( ) ) ;\n GURL url ( embedded_test_server ( ) -> GetURL ( kMainWebrtcTestHtmlPage ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , url ) ;\n content : : WebContents * tab = browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) ;\n if ( ! HasWebcamAvailableOnSystem ( tab ) ) {\n LOG ( INFO ) << \"No webcam found on bot: skipping...\" ;\n return ;\n }\n if ( ! IsOnQtKit ( ) ) {\n EXPECT_EQ ( \"320x240\" , GetUserMediaAndGetStreamSize ( tab , kVideoCallConstraintsQVGA ) ) ;\n }\n EXPECT_EQ ( \"640x480\" , GetUserMediaAndGetStreamSize ( tab , kVideoCallConstraintsVGA ) ) ;\n EXPECT_EQ ( \"640x360\" , GetUserMediaAndGetStreamSize ( tab , kVideoCallConstraints360p ) ) ;\n if ( IsOnQtKit ( ) ) return ;\n EXPECT_EQ ( \"1280x720\" , GetUserMediaAndGetStreamSize ( tab , kVideoCallConstraints720p ) ) ;\n EXPECT_EQ ( \"1920x1080\" , GetUserMediaAndGetStreamSize ( tab , kVideoCallConstraints1080p ) ) ;\n }"}
{"idx": 13380, "target": 0, "func": "static void pdf_run_s ( fz_context * ctx , pdf_processor * proc ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_show_path ( ctx , pr , 1 , 0 , 1 , 0 ) ;\n }"}
{"idx": 13381, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FullscreenControllerInteractiveTest , DISABLED_BrowserFullscreenMouseLockContentSettings ) {\n ASSERT_NO_FATAL_FAILURE ( ToggleBrowserFullscreen ( true ) ) ;\n TestFullscreenMouseLockContentSettings ( ) ;\n ASSERT_NO_FATAL_FAILURE ( ToggleBrowserFullscreen ( false ) ) ;\n }"}
{"idx": 13382, "target": 1, "func": "void vp9_set_rd_speed_thresholds ( VP9_COMP * cpi ) {\n int i ;\n RD_OPT * const rd = & cpi -> rd ;\n SPEED_FEATURES * const sf = & cpi -> sf ;\n for ( i = 0 ;\n i < MAX_MODES ;\n ++ i ) rd -> thresh_mult [ i ] = cpi -> oxcf . mode == BEST ? - 500 : 0 ;\n rd -> thresh_mult [ THR_NEARESTMV ] = 0 ;\n rd -> thresh_mult [ THR_NEARESTG ] = 0 ;\n rd -> thresh_mult [ THR_NEARESTA ] = 0 ;\n rd -> thresh_mult [ THR_DC ] += 1000 ;\n rd -> thresh_mult [ THR_NEWMV ] += 1000 ;\n rd -> thresh_mult [ THR_NEWA ] += 1000 ;\n rd -> thresh_mult [ THR_NEWG ] += 1000 ;\n rd -> thresh_mult [ THR_NEWMV ] += sf -> elevate_newmv_thresh ;\n rd -> thresh_mult [ THR_NEARMV ] += 1000 ;\n rd -> thresh_mult [ THR_NEARA ] += 1000 ;\n rd -> thresh_mult [ THR_COMP_NEARESTLA ] += 1000 ;\n rd -> thresh_mult [ THR_COMP_NEARESTGA ] += 1000 ;\n rd -> thresh_mult [ THR_TM ] += 1000 ;\n rd -> thresh_mult [ THR_COMP_NEARLA ] += 1500 ;\n rd -> thresh_mult [ THR_COMP_NEWLA ] += 2000 ;\n rd -> thresh_mult [ THR_NEARG ] += 1000 ;\n rd -> thresh_mult [ THR_COMP_NEARGA ] += 1500 ;\n rd -> thresh_mult [ THR_COMP_NEWGA ] += 2000 ;\n rd -> thresh_mult [ THR_ZEROMV ] += 2000 ;\n rd -> thresh_mult [ THR_ZEROG ] += 2000 ;\n rd -> thresh_mult [ THR_ZEROA ] += 2000 ;\n rd -> thresh_mult [ THR_COMP_ZEROLA ] += 2500 ;\n rd -> thresh_mult [ THR_COMP_ZEROGA ] += 2500 ;\n rd -> thresh_mult [ THR_H_PRED ] += 2000 ;\n rd -> thresh_mult [ THR_V_PRED ] += 2000 ;\n rd -> thresh_mult [ THR_D45_PRED ] += 2500 ;\n rd -> thresh_mult [ THR_D135_PRED ] += 2500 ;\n rd -> thresh_mult [ THR_D117_PRED ] += 2500 ;\n rd -> thresh_mult [ THR_D153_PRED ] += 2500 ;\n rd -> thresh_mult [ THR_D207_PRED ] += 2500 ;\n rd -> thresh_mult [ THR_D63_PRED ] += 2500 ;\n if ( ! ( cpi -> ref_frame_flags & VP9_LAST_FLAG ) ) {\n rd -> thresh_mult [ THR_NEWMV ] = INT_MAX ;\n rd -> thresh_mult [ THR_NEARESTMV ] = INT_MAX ;\n rd -> thresh_mult [ THR_ZEROMV ] = INT_MAX ;\n rd -> thresh_mult [ THR_NEARMV ] = INT_MAX ;\n }\n if ( ! ( cpi -> ref_frame_flags & VP9_GOLD_FLAG ) ) {\n rd -> thresh_mult [ THR_NEARESTG ] = INT_MAX ;\n rd -> thresh_mult [ THR_ZEROG ] = INT_MAX ;\n rd -> thresh_mult [ THR_NEARG ] = INT_MAX ;\n rd -> thresh_mult [ THR_NEWG ] = INT_MAX ;\n }\n if ( ! ( cpi -> ref_frame_flags & VP9_ALT_FLAG ) ) {\n rd -> thresh_mult [ THR_NEARESTA ] = INT_MAX ;\n rd -> thresh_mult [ THR_ZEROA ] = INT_MAX ;\n rd -> thresh_mult [ THR_NEARA ] = INT_MAX ;\n rd -> thresh_mult [ THR_NEWA ] = INT_MAX ;\n }\n if ( ( cpi -> ref_frame_flags & ( VP9_LAST_FLAG | VP9_ALT_FLAG ) ) != ( VP9_LAST_FLAG | VP9_ALT_FLAG ) ) {\n rd -> thresh_mult [ THR_COMP_ZEROLA ] = INT_MAX ;\n rd -> thresh_mult [ THR_COMP_NEARESTLA ] = INT_MAX ;\n rd -> thresh_mult [ THR_COMP_NEARLA ] = INT_MAX ;\n rd -> thresh_mult [ THR_COMP_NEWLA ] = INT_MAX ;\n }\n if ( ( cpi -> ref_frame_flags & ( VP9_GOLD_FLAG | VP9_ALT_FLAG ) ) != ( VP9_GOLD_FLAG | VP9_ALT_FLAG ) ) {\n rd -> thresh_mult [ THR_COMP_ZEROGA ] = INT_MAX ;\n rd -> thresh_mult [ THR_COMP_NEARESTGA ] = INT_MAX ;\n rd -> thresh_mult [ THR_COMP_NEARGA ] = INT_MAX ;\n rd -> thresh_mult [ THR_COMP_NEWGA ] = INT_MAX ;\n }\n }"}
{"idx": 13383, "target": 1, "func": "static int tta_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n TTAContext * s = avctx -> priv_data ;\n int i , ret ;\n int cur_chan = 0 , framelen = s -> frame_length ;\n int32_t * p ;\n if ( avctx -> err_recognition & AV_EF_CRCCHECK ) {\n if ( buf_size < 4 || tta_check_crc ( s , buf , buf_size - 4 ) ) return AVERROR_INVALIDDATA ;\n }\n init_get_bits ( & s -> gb , buf , buf_size * 8 ) ;\n frame -> nb_samples = framelen ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( s -> bps == 3 ) s -> decode_buffer = ( int32_t * ) frame -> data [ 0 ] ;\n for ( i = 0 ;\n i < s -> channels ;\n i ++ ) {\n s -> ch_ctx [ i ] . predictor = 0 ;\n ttafilter_init ( & s -> ch_ctx [ i ] . filter , ttafilter_configs [ s -> bps - 1 ] ) ;\n rice_init ( & s -> ch_ctx [ i ] . rice , 10 , 10 ) ;\n }\n i = 0 ;\n for ( p = s -> decode_buffer ;\n p < s -> decode_buffer + ( framelen * s -> channels ) ;\n p ++ ) {\n int32_t * predictor = & s -> ch_ctx [ cur_chan ] . predictor ;\n TTAFilter * filter = & s -> ch_ctx [ cur_chan ] . filter ;\n TTARice * rice = & s -> ch_ctx [ cur_chan ] . rice ;\n uint32_t unary , depth , k ;\n int32_t value ;\n unary = tta_get_unary ( & s -> gb ) ;\n if ( unary == 0 ) {\n depth = 0 ;\n k = rice -> k0 ;\n }\n else {\n depth = 1 ;\n k = rice -> k1 ;\n unary -- ;\n }\n if ( get_bits_left ( & s -> gb ) < k ) {\n ret = AVERROR_INVALIDDATA ;\n goto error ;\n }\n if ( k ) {\n if ( k > MIN_CACHE_BITS ) {\n ret = AVERROR_INVALIDDATA ;\n goto error ;\n }\n value = ( unary << k ) + get_bits ( & s -> gb , k ) ;\n }\n else value = unary ;\n switch ( depth ) {\n case 1 : rice -> sum1 += value - ( rice -> sum1 >> 4 ) ;\n if ( rice -> k1 > 0 && rice -> sum1 < shift_16 [ rice -> k1 ] ) rice -> k1 -- ;\n else if ( rice -> sum1 > shift_16 [ rice -> k1 + 1 ] ) rice -> k1 ++ ;\n value += shift_1 [ rice -> k0 ] ;\n default : rice -> sum0 += value - ( rice -> sum0 >> 4 ) ;\n if ( rice -> k0 > 0 && rice -> sum0 < shift_16 [ rice -> k0 ] ) rice -> k0 -- ;\n else if ( rice -> sum0 > shift_16 [ rice -> k0 + 1 ] ) rice -> k0 ++ ;\n }\n * p = 1 + ( ( value >> 1 ) ^ ( ( value & 1 ) - 1 ) ) ;\n ttafilter_process ( filter , p ) ;\n # define PRED ( x , k ) ( int32_t ) ( ( ( ( uint64_t ) x << k ) - x ) >> k ) switch ( s -> bps ) {\n case 1 : * p += PRED ( * predictor , 4 ) ;\n break ;\n case 2 : case 3 : * p += PRED ( * predictor , 5 ) ;\n break ;\n case 4 : * p += * predictor ;\n break ;\n }\n * predictor = * p ;\n if ( cur_chan < ( s -> channels - 1 ) ) cur_chan ++ ;\n else {\n if ( s -> channels > 1 ) {\n int32_t * r = p - 1 ;\n for ( * p += * r / 2 ;\n r > p - s -> channels ;\n r -- ) * r = * ( r + 1 ) - * r ;\n }\n cur_chan = 0 ;\n i ++ ;\n if ( i == s -> last_frame_length && get_bits_left ( & s -> gb ) / 8 == 4 ) {\n frame -> nb_samples = framelen = s -> last_frame_length ;\n break ;\n }\n }\n }\n align_get_bits ( & s -> gb ) ;\n if ( get_bits_left ( & s -> gb ) < 32 ) {\n ret = AVERROR_INVALIDDATA ;\n goto error ;\n }\n skip_bits_long ( & s -> gb , 32 ) ;\n if ( s -> bps == 2 ) {\n int16_t * samples = ( int16_t * ) frame -> data [ 0 ] ;\n for ( p = s -> decode_buffer ;\n p < s -> decode_buffer + ( framelen * s -> channels ) ;\n p ++ ) * samples ++ = * p ;\n }\n else {\n int32_t * samples = ( int32_t * ) frame -> data [ 0 ] ;\n for ( i = 0 ;\n i < framelen * s -> channels ;\n i ++ ) * samples ++ <<= 8 ;\n s -> decode_buffer = NULL ;\n }\n * got_frame_ptr = 1 ;\n return buf_size ;\n error : if ( s -> bps == 3 ) s -> decode_buffer = NULL ;\n return ret ;\n }"}
{"idx": 13384, "target": 0, "func": "static void curses_kill_connections ( void ) {\n DEBUG_MSG ( \"curses_kill_connections\" ) ;\n wdg_del_idle_callback ( refresh_connections ) ;\n wdg_connections = NULL ;\n }"}
{"idx": 13385, "target": 0, "func": "int action_cancel_handler ( TSCont contp , TSEvent event , void * ) {\n if ( event == TS_EVENT_IMMEDIATE ) {\n SDK_RPRINT ( SDK_ActionCancel_test , \"TSActionCancel\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n * SDK_ActionCancel_pstatus = REGRESSION_TEST_PASSED ;\n }\n else if ( event == TS_EVENT_TIMEOUT ) {\n SDK_RPRINT ( SDK_ActionCancel_test , \"TSActionCancel\" , \"TestCase1\" , TC_FAIL , \"bad action\" ) ;\n * SDK_ActionCancel_pstatus = REGRESSION_TEST_FAILED ;\n }\n else {\n SDK_RPRINT ( SDK_ActionCancel_test , \"TSActionCancel\" , \"TestCase1\" , TC_FAIL , \"bad event\" ) ;\n * SDK_ActionCancel_pstatus = REGRESSION_TEST_FAILED ;\n }\n TSContDestroy ( contp ) ;\n return 0 ;\n }"}
{"idx": 13386, "target": 0, "func": "static struct branch * new_branch ( const char * name ) {\n unsigned int hc = hc_str ( name , strlen ( name ) ) % branch_table_sz ;\n struct branch * b = lookup_branch ( name ) ;\n if ( b ) die ( \"Invalid attempt to create duplicate branch: %s\" , name ) ;\n if ( check_refname_format ( name , REFNAME_ALLOW_ONELEVEL ) ) die ( \"Branch name doesn't conform to GIT standards: %s\" , name ) ;\n b = pool_calloc ( 1 , sizeof ( struct branch ) ) ;\n b -> name = pool_strdup ( name ) ;\n b -> table_next_branch = branch_table [ hc ] ;\n b -> branch_tree . versions [ 0 ] . mode = S_IFDIR ;\n b -> branch_tree . versions [ 1 ] . mode = S_IFDIR ;\n b -> num_notes = 0 ;\n b -> active = 0 ;\n b -> pack_id = MAX_PACK_ID ;\n branch_table [ hc ] = b ;\n branch_count ++ ;\n return b ;\n }"}
{"idx": 13387, "target": 0, "func": "PHP_FUNCTION ( uwsgi_version ) {\n # ifdef UWSGI_PHP7 RETURN_STRING ( UWSGI_VERSION ) ;\n # else RETURN_STRING ( UWSGI_VERSION , 1 ) ;\n # endif }"}
{"idx": 13388, "target": 0, "func": "pdf_cmap * pdf_new_cmap ( fz_context * ctx ) {\n pdf_cmap * cmap = fz_malloc_struct ( ctx , pdf_cmap ) ;\n FZ_INIT_STORABLE ( cmap , 1 , pdf_drop_cmap_imp ) ;\n return cmap ;\n }"}
{"idx": 13389, "target": 0, "func": "TEST_F ( HistoryQuickProviderTest , PreventBeatingURLWhatYouTypedMatch ) {\n std : : vector < std : : string > expected_urls ;\n expected_urls . clear ( ) ;\n expected_urls . push_back ( \"http://popularsitewithroot.com/\" ) ;\n RunTest ( ASCIIToUTF16 ( \"popularsitewithroot.com\" ) , false , expected_urls , true , ASCIIToUTF16 ( \"popularsitewithroot.com\" ) , base : : string16 ( ) ) ;\n EXPECT_LT ( ac_matches_ [ 0 ] . relevance , HistoryURLProvider : : kScoreForBestInlineableResult ) ;\n RunTest ( ASCIIToUTF16 ( \"popularsitewithroot.c\" ) , false , expected_urls , true , ASCIIToUTF16 ( \"popularsitewithroot.com\" ) , ASCIIToUTF16 ( \"om\" ) ) ;\n EXPECT_GE ( ac_matches_ [ 0 ] . relevance , HistoryURLProvider : : kScoreForWhatYouTypedResult ) ;\n expected_urls . clear ( ) ;\n expected_urls . push_back ( \"http://popularsitewithpathonly.com/moo\" ) ;\n RunTest ( ASCIIToUTF16 ( \"popularsitewithpathonly.com\" ) , false , expected_urls , true , ASCIIToUTF16 ( \"popularsitewithpathonly.com/moo\" ) , ASCIIToUTF16 ( \"/moo\" ) ) ;\n EXPECT_LT ( ac_matches_ [ 0 ] . relevance , HistoryURLProvider : : kScoreForUnvisitedIntranetResult ) ;\n RunTest ( ASCIIToUTF16 ( \"popularsitewithpathonly.com/\" ) , false , expected_urls , true , ASCIIToUTF16 ( \"popularsitewithpathonly.com/moo\" ) , ASCIIToUTF16 ( \"moo\" ) ) ;\n EXPECT_LT ( ac_matches_ [ 0 ] . relevance , HistoryURLProvider : : kScoreForUnvisitedIntranetResult ) ;\n RunTest ( ASCIIToUTF16 ( \"popularsitewithpathonly.co\" ) , false , expected_urls , true , ASCIIToUTF16 ( \"popularsitewithpathonly.com/moo\" ) , ASCIIToUTF16 ( \"m/moo\" ) ) ;\n EXPECT_GE ( ac_matches_ [ 0 ] . relevance , HistoryURLProvider : : kScoreForWhatYouTypedResult ) ;\n RunTest ( ASCIIToUTF16 ( \"popularsitewithpathonly.com/mo\" ) , false , expected_urls , true , ASCIIToUTF16 ( \"popularsitewithpathonly.com/moo\" ) , ASCIIToUTF16 ( \"o\" ) ) ;\n EXPECT_GE ( ac_matches_ [ 0 ] . relevance , HistoryURLProvider : : kScoreForWhatYouTypedResult ) ;\n RunTest ( ASCIIToUTF16 ( \"popularsitewithpathonly.com/moo\" ) , false , expected_urls , true , ASCIIToUTF16 ( \"popularsitewithpathonly.com/moo\" ) , base : : string16 ( ) ) ;\n EXPECT_LT ( ac_matches_ [ 0 ] . relevance , HistoryURLProvider : : kScoreForBestInlineableResult ) ;\n }"}
{"idx": 13390, "target": 0, "func": "static double uprv_delta ( UTimer * timer1 , UTimer * timer2 ) {\n double t1 , t2 ;\n t1 = ( double ) timer1 -> start . tv_sec + ( double ) timer1 -> start . tv_usec / ( 1000 * 1000 ) ;\n t2 = ( double ) timer2 -> start . tv_sec + ( double ) timer2 -> start . tv_usec / ( 1000 * 1000 ) ;\n return ( t2 - t1 ) ;\n }"}
{"idx": 13391, "target": 1, "func": "static void vga_draw_line4 ( VGACommonState * s1 , uint8_t * d , const uint8_t * s , int width ) {\n uint32_t plane_mask , data , v , * palette ;\n int x ;\n palette = s1 -> last_palette ;\n plane_mask = mask16 [ s1 -> ar [ VGA_ATC_PLANE_ENABLE ] & 0xf ] ;\n width >>= 3 ;\n for ( x = 0 ;\n x < width ;\n x ++ ) {\n data = ( ( uint32_t * ) s ) [ 0 ] ;\n data &= plane_mask ;\n v = expand4 [ GET_PLANE ( data , 0 ) ] ;\n v |= expand4 [ GET_PLANE ( data , 1 ) ] << 1 ;\n v |= expand4 [ GET_PLANE ( data , 2 ) ] << 2 ;\n v |= expand4 [ GET_PLANE ( data , 3 ) ] << 3 ;\n ( ( uint32_t * ) d ) [ 0 ] = palette [ v >> 28 ] ;\n ( ( uint32_t * ) d ) [ 1 ] = palette [ ( v >> 24 ) & 0xf ] ;\n ( ( uint32_t * ) d ) [ 2 ] = palette [ ( v >> 20 ) & 0xf ] ;\n ( ( uint32_t * ) d ) [ 3 ] = palette [ ( v >> 16 ) & 0xf ] ;\n ( ( uint32_t * ) d ) [ 4 ] = palette [ ( v >> 12 ) & 0xf ] ;\n ( ( uint32_t * ) d ) [ 5 ] = palette [ ( v >> 8 ) & 0xf ] ;\n ( ( uint32_t * ) d ) [ 6 ] = palette [ ( v >> 4 ) & 0xf ] ;\n ( ( uint32_t * ) d ) [ 7 ] = palette [ ( v >> 0 ) & 0xf ] ;\n d += 32 ;\n s += 4 ;\n }\n }"}
{"idx": 13392, "target": 0, "func": "CPUState * s390_cpu_addr2state ( uint16_t cpu_addr ) {\n if ( cpu_addr >= smp_cpus ) {\n return NULL ;\n }\n return ipi_states [ cpu_addr ] ;\n }"}
{"idx": 13393, "target": 0, "func": "static void config_setvar ( config_tree * ptree ) {\n setvar_node * my_node ;\n size_t varlen , vallen , octets ;\n char * str ;\n str = NULL ;\n my_node = HEAD_PFIFO ( ptree -> setvar ) ;\n for ( ;\n my_node != NULL ;\n my_node = my_node -> link ) {\n varlen = strlen ( my_node -> var ) ;\n vallen = strlen ( my_node -> val ) ;\n octets = varlen + vallen + 1 + 1 ;\n str = erealloc ( str , octets ) ;\n snprintf ( str , octets , \"%s=%s\" , my_node -> var , my_node -> val ) ;\n set_sys_var ( str , octets , ( my_node -> isdefault ) ? DEF : 0 ) ;\n }\n if ( str != NULL ) free ( str ) ;\n }"}
{"idx": 13394, "target": 0, "func": "int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY )"}
{"idx": 13395, "target": 1, "func": "static void define_gf_group ( VP9_COMP * cpi , FIRSTPASS_STATS * this_frame ) {\n RATE_CONTROL * const rc = & cpi -> rc ;\n const VP9EncoderConfig * const oxcf = & cpi -> oxcf ;\n TWO_PASS * const twopass = & cpi -> twopass ;\n FIRSTPASS_STATS next_frame ;\n const FIRSTPASS_STATS * const start_pos = twopass -> stats_in ;\n int i ;\n double boost_score = 0.0 ;\n double old_boost_score = 0.0 ;\n double gf_group_err = 0.0 ;\n double gf_first_frame_err = 0.0 ;\n double mod_frame_err = 0.0 ;\n double mv_ratio_accumulator = 0.0 ;\n double decay_accumulator = 1.0 ;\n double zero_motion_accumulator = 1.0 ;\n double loop_decay_rate = 1.00 ;\n double last_loop_decay_rate = 1.00 ;\n double this_frame_mv_in_out = 0.0 ;\n double mv_in_out_accumulator = 0.0 ;\n double abs_mv_in_out_accumulator = 0.0 ;\n double mv_ratio_accumulator_thresh ;\n unsigned int allow_alt_ref = is_altref_enabled ( cpi ) ;\n int f_boost = 0 ;\n int b_boost = 0 ;\n int flash_detected ;\n int active_max_gf_interval ;\n int64_t gf_group_bits ;\n double gf_group_error_left ;\n int gf_arf_bits ;\n if ( cpi -> common . frame_type != KEY_FRAME ) {\n vp9_zero ( twopass -> gf_group ) ;\n }\n vp9_clear_system_state ( ) ;\n vp9_zero ( next_frame ) ;\n mod_frame_err = calculate_modified_err ( twopass , oxcf , this_frame ) ;\n gf_first_frame_err = mod_frame_err ;\n if ( cpi -> common . frame_type == KEY_FRAME || rc -> source_alt_ref_active ) gf_group_err -= gf_first_frame_err ;\n mv_ratio_accumulator_thresh = ( cpi -> common . width + cpi -> common . height ) / 10.0 ;\n if ( cpi -> multi_arf_allowed ) {\n active_max_gf_interval = rc -> max_gf_interval ;\n }\n else {\n active_max_gf_interval = + ( ( int ) vp9_convert_qindex_to_q ( rc -> last_q [ INTER_FRAME ] ) >> 5 ) ;\n if ( active_max_gf_interval > rc -> max_gf_interval ) active_max_gf_interval = rc -> max_gf_interval ;\n }\n i = 0 ;\n while ( i < rc -> static_scene_max_gf_interval && i < rc -> frames_to_key ) {\n ++ i ;\n mod_frame_err = calculate_modified_err ( twopass , oxcf , this_frame ) ;\n gf_group_err += mod_frame_err ;\n if ( EOF == input_stats ( twopass , & next_frame ) ) break ;\n flash_detected = detect_flash ( twopass , 0 ) ;\n accumulate_frame_motion_stats ( & next_frame , & this_frame_mv_in_out , & mv_in_out_accumulator , & abs_mv_in_out_accumulator , & mv_ratio_accumulator ) ;\n if ( ! flash_detected ) {\n last_loop_decay_rate = loop_decay_rate ;\n loop_decay_rate = get_prediction_decay_rate ( & cpi -> common , & next_frame ) ;\n decay_accumulator = decay_accumulator * loop_decay_rate ;\n zero_motion_accumulator = MIN ( zero_motion_accumulator , get_zero_motion_factor ( & next_frame ) ) ;\n if ( detect_transition_to_still ( twopass , i , 5 , loop_decay_rate , last_loop_decay_rate ) ) {\n allow_alt_ref = 0 ;\n break ;\n }\n }\n boost_score += decay_accumulator * calc_frame_boost ( twopass , & next_frame , this_frame_mv_in_out ) ;\n if ( ( i >= active_max_gf_interval && ( zero_motion_accumulator < 0.995 ) ) || ( ( i > MIN_GF_INTERVAL ) && ( ( boost_score > 125.0 ) || ( next_frame . pcnt_inter < 0.75 ) ) && ( ! flash_detected ) && ( ( mv_ratio_accumulator > mv_ratio_accumulator_thresh ) || ( abs_mv_in_out_accumulator > 3.0 ) || ( mv_in_out_accumulator < - 2.0 ) || ( ( boost_score - old_boost_score ) < IIFACTOR ) ) ) ) {\n boost_score = old_boost_score ;\n break ;\n }\n * this_frame = next_frame ;\n old_boost_score = boost_score ;\n }\n twopass -> gf_zeromotion_pct = ( int ) ( zero_motion_accumulator * 1000.0 ) ;\n if ( ( rc -> frames_to_key - i ) < MIN_GF_INTERVAL ) {\n while ( i < ( rc -> frames_to_key + ! rc -> next_key_frame_forced ) ) {\n ++ i ;\n if ( EOF == input_stats ( twopass , this_frame ) ) break ;\n if ( i < rc -> frames_to_key ) {\n mod_frame_err = calculate_modified_err ( twopass , oxcf , this_frame ) ;\n gf_group_err += mod_frame_err ;\n }\n }\n }\n if ( cpi -> common . frame_type == KEY_FRAME || rc -> source_alt_ref_active ) rc -> baseline_gf_interval = i - 1 ;\n else rc -> baseline_gf_interval = i ;\n if ( is_two_pass_svc ( cpi ) && cpi -> svc . number_temporal_layers > 1 ) {\n int count = ( 1 << ( cpi -> svc . number_temporal_layers - 1 ) ) - 1 ;\n int new_gf_interval = ( rc -> baseline_gf_interval + count ) & ( ~ count ) ;\n int j ;\n for ( j = 0 ;\n j < new_gf_interval - rc -> baseline_gf_interval ;\n ++ j ) {\n if ( EOF == input_stats ( twopass , this_frame ) ) break ;\n gf_group_err += calculate_modified_err ( twopass , oxcf , this_frame ) ;\n }\n rc -> baseline_gf_interval = new_gf_interval ;\n }\n rc -> frames_till_gf_update_due = rc -> baseline_gf_interval ;\n if ( allow_alt_ref && ( i < cpi -> oxcf . lag_in_frames ) && ( i >= MIN_GF_INTERVAL ) && ( rc -> next_key_frame_forced || ( i <= ( rc -> frames_to_key - MIN_GF_INTERVAL ) ) ) ) {\n rc -> gfu_boost = calc_arf_boost ( cpi , 0 , ( i - 1 ) , ( i - 1 ) , & f_boost , & b_boost ) ;\n rc -> source_alt_ref_pending = 1 ;\n cpi -> multi_arf_enabled = ( cpi -> multi_arf_allowed && ( rc -> baseline_gf_interval >= 6 ) && ( zero_motion_accumulator < 0.995 ) ) ? 1 : 0 ;\n }\n else {\n rc -> gfu_boost = ( int ) boost_score ;\n rc -> source_alt_ref_pending = 0 ;\n }\n reset_fpf_position ( twopass , start_pos ) ;\n gf_group_bits = calculate_total_gf_group_bits ( cpi , gf_group_err ) ;\n {\n int q = rc -> last_q [ INTER_FRAME ] ;\n int boost = ( rc -> gfu_boost * gfboost_qadjust ( q ) ) / 100 ;\n boost = clamp ( boost , 125 , ( rc -> baseline_gf_interval + 1 ) * 200 ) ;\n gf_arf_bits = calculate_boost_bits ( rc -> baseline_gf_interval , boost , gf_group_bits ) ;\n }\n twopass -> kf_group_error_left -= ( int64_t ) gf_group_err ;\n if ( rc -> source_alt_ref_pending ) {\n gf_group_error_left = gf_group_err - mod_frame_err ;\n }\n else if ( cpi -> common . frame_type != KEY_FRAME ) {\n gf_group_error_left = gf_group_err - gf_first_frame_err ;\n }\n else {\n gf_group_error_left = gf_group_err ;\n }\n allocate_gf_group_bits ( cpi , gf_group_bits , gf_group_error_left , gf_arf_bits ) ;\n reset_fpf_position ( twopass , start_pos ) ;\n if ( cpi -> common . frame_type != KEY_FRAME ) {\n twopass -> section_intra_rating = calculate_section_intra_ratio ( start_pos , twopass -> stats_in_end , rc -> baseline_gf_interval ) ;\n }\n }"}
{"idx": 13396, "target": 1, "func": "static OFCondition parseUserInfo ( DUL_USERINFO * userInfo , unsigned char * buf , unsigned long * itemLength , unsigned char typeRQorAC , unsigned long availData ) {\n unsigned short userLength ;\n unsigned long length ;\n OFCondition cond = EC_Normal ;\n PRV_SCUSCPROLE * role ;\n SOPClassExtendedNegotiationSubItem * extNeg = NULL ;\n UserIdentityNegotiationSubItem * usrIdent = NULL ;\n if ( availData < 4 ) return makeLengthError ( \"user info\" , availData , 4 ) ;\n userInfo -> type = * buf ++ ;\n userInfo -> rsv1 = * buf ++ ;\n EXTRACT_SHORT_BIG ( buf , userInfo -> length ) ;\n buf += 2 ;\n userLength = userInfo -> length ;\n * itemLength = userLength + 4 ;\n if ( availData - 4 < userLength ) return makeLengthError ( \"user info\" , availData , 0 , userLength ) ;\n DCMNET_TRACE ( \"Parsing user info field (\" << STD_NAMESPACE hex << STD_NAMESPACE setfill ( '0' ) << STD_NAMESPACE setw ( 2 ) << ( unsigned int ) userInfo -> type << STD_NAMESPACE dec << \"), Length: \" << ( unsigned long ) userInfo -> length ) ;\n while ( userLength > 0 ) {\n DCMNET_TRACE ( \"Parsing remaining \" << ( long ) userLength << \" bytes of User Information\" << OFendl << \"Next item type: \" << STD_NAMESPACE hex << STD_NAMESPACE setfill ( '0' ) << STD_NAMESPACE setw ( 2 ) << ( unsigned int ) * buf ) ;\n switch ( * buf ) {\n case DUL_TYPEMAXLENGTH : cond = parseMaxPDU ( & userInfo -> maxLength , buf , & length , userLength ) ;\n if ( cond . bad ( ) ) return cond ;\n buf += length ;\n userLength -= ( unsigned short ) length ;\n DCMNET_TRACE ( \"Successfully parsed Maximum PDU Length\" ) ;\n break ;\n case DUL_TYPEIMPLEMENTATIONCLASSUID : cond = parseSubItem ( & userInfo -> implementationClassUID , buf , & length , userLength ) ;\n if ( cond . bad ( ) ) return cond ;\n buf += length ;\n userLength -= ( unsigned short ) length ;\n break ;\n case DUL_TYPEASYNCOPERATIONS : cond = parseDummy ( buf , & length , userLength ) ;\n buf += length ;\n userLength -= ( unsigned short ) length ;\n break ;\n case DUL_TYPESCUSCPROLE : role = ( PRV_SCUSCPROLE * ) malloc ( sizeof ( PRV_SCUSCPROLE ) ) ;\n if ( role == NULL ) return EC_MemoryExhausted ;\n cond = parseSCUSCPRole ( role , buf , & length , userLength ) ;\n if ( cond . bad ( ) ) return cond ;\n LST_Enqueue ( & userInfo -> SCUSCPRoleList , ( LST_NODE * ) role ) ;\n buf += length ;\n userLength -= ( unsigned short ) length ;\n break ;\n case DUL_TYPEIMPLEMENTATIONVERSIONNAME : cond = parseSubItem ( & userInfo -> implementationVersionName , buf , & length , userLength ) ;\n if ( cond . bad ( ) ) return cond ;\n buf += length ;\n userLength -= ( unsigned short ) length ;\n break ;\n case DUL_TYPESOPCLASSEXTENDEDNEGOTIATION : extNeg = new SOPClassExtendedNegotiationSubItem ;\n if ( extNeg == NULL ) return EC_MemoryExhausted ;\n cond = parseExtNeg ( extNeg , buf , & length , userLength ) ;\n if ( cond . bad ( ) ) return cond ;\n if ( userInfo -> extNegList == NULL ) {\n userInfo -> extNegList = new SOPClassExtendedNegotiationSubItemList ;\n if ( userInfo -> extNegList == NULL ) return EC_MemoryExhausted ;\n }\n userInfo -> extNegList -> push_back ( extNeg ) ;\n buf += length ;\n userLength -= ( unsigned short ) length ;\n break ;\n case DUL_TYPENEGOTIATIONOFUSERIDENTITY : if ( typeRQorAC == DUL_TYPEASSOCIATERQ ) usrIdent = new UserIdentityNegotiationSubItemRQ ( ) ;\n else usrIdent = new UserIdentityNegotiationSubItemAC ( ) ;\n if ( usrIdent == NULL ) return EC_MemoryExhausted ;\n cond = usrIdent -> parseFromBuffer ( buf , length , userLength ) ;\n if ( cond . bad ( ) ) {\n delete usrIdent ;\n return cond ;\n }\n userInfo -> usrIdent = usrIdent ;\n buf += length ;\n userLength -= ( unsigned short ) length ;\n break ;\n default : cond = parseDummy ( buf , & length , userLength ) ;\n buf += length ;\n userLength -= ( unsigned short ) length ;\n break ;\n }\n }\n return EC_Normal ;\n }"}
{"idx": 13397, "target": 0, "func": "static void dissect_udvm_bytecode ( tvbuff_t * udvm_tvb , packet_info * pinfo , proto_tree * sigcomp_udvm_tree , guint start_address ) {\n guint instruction ;\n gint offset = 0 ;\n gint start_offset = 0 ;\n gint len ;\n gint n ;\n guint instruction_no = 0 ;\n guint16 value = 0 ;\n proto_item * item , * item2 ;\n guint UDVM_address = start_address ;\n gboolean is_memory_address ;\n guint16 msg_length = tvb_reported_length_remaining ( udvm_tvb , offset ) ;\n while ( msg_length > offset ) {\n instruction = tvb_get_guint8 ( udvm_tvb , offset ) ;\n instruction_no ++ ;\n UDVM_address = start_address + offset ;\n item = proto_tree_add_uint_format ( sigcomp_udvm_tree , hf_sigcomp_udvm_instruction , udvm_tvb , offset , 1 , instruction_no , \"######### UDVM instruction %u at UDVM-address %u (0x%x) #########\" , instruction_no , UDVM_address , UDVM_address ) ;\n PROTO_ITEM_SET_GENERATED ( item ) ;\n proto_tree_add_item ( sigcomp_udvm_tree , hf_sigcomp_udvm_instr , udvm_tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n switch ( instruction ) {\n case SIGCOMP_INSTR_AND : offset = dissect_udvm_reference_operand ( udvm_tvb , sigcomp_udvm_tree , offset , & start_offset , & value ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_operand_1 , udvm_tvb , start_offset , len , value ) ;\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_operand_2_addr , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_operand_2 , udvm_tvb , start_offset , len , value ) ;\n }\n break ;\n case SIGCOMP_INSTR_OR : offset = dissect_udvm_reference_operand ( udvm_tvb , sigcomp_udvm_tree , offset , & start_offset , & value ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_operand_1 , udvm_tvb , start_offset , len , value ) ;\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_operand_2_addr , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_operand_2 , udvm_tvb , start_offset , len , value ) ;\n }\n break ;\n case SIGCOMP_INSTR_NOT : offset = dissect_udvm_reference_operand ( udvm_tvb , sigcomp_udvm_tree , offset , & start_offset , & value ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_operand_1 , udvm_tvb , start_offset , len , value ) ;\n break ;\n case SIGCOMP_INSTR_LSHIFT : offset = dissect_udvm_reference_operand ( udvm_tvb , sigcomp_udvm_tree , offset , & start_offset , & value ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_operand_1 , udvm_tvb , start_offset , len , value ) ;\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_operand_2_addr , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_operand_2 , udvm_tvb , start_offset , len , value ) ;\n }\n break ;\n case SIGCOMP_INSTR_RSHIFT : offset = dissect_udvm_reference_operand ( udvm_tvb , sigcomp_udvm_tree , offset , & start_offset , & value ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_operand_1 , udvm_tvb , start_offset , len , value ) ;\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_operand_2_addr , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_operand_2 , udvm_tvb , start_offset , len , value ) ;\n }\n break ;\n case SIGCOMP_INSTR_ADD : offset = dissect_udvm_reference_operand ( udvm_tvb , sigcomp_udvm_tree , offset , & start_offset , & value ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_operand_1 , udvm_tvb , start_offset , len , value ) ;\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_operand_2_addr , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_operand_2 , udvm_tvb , start_offset , len , value ) ;\n }\n break ;\n case SIGCOMP_INSTR_SUBTRACT : offset = dissect_udvm_reference_operand ( udvm_tvb , sigcomp_udvm_tree , offset , & start_offset , & value ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_operand_1 , udvm_tvb , start_offset , len , value ) ;\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_operand_2_addr , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_operand_2 , udvm_tvb , start_offset , len , value ) ;\n }\n break ;\n case SIGCOMP_INSTR_MULTIPLY : offset = dissect_udvm_reference_operand ( udvm_tvb , sigcomp_udvm_tree , offset , & start_offset , & value ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_operand_1 , udvm_tvb , start_offset , len , value ) ;\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_operand_2_addr , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_operand_2 , udvm_tvb , start_offset , len , value ) ;\n }\n break ;\n case SIGCOMP_INSTR_DIVIDE : offset = dissect_udvm_reference_operand ( udvm_tvb , sigcomp_udvm_tree , offset , & start_offset , & value ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_operand_1 , udvm_tvb , start_offset , len , value ) ;\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_operand_2_addr , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_operand_2 , udvm_tvb , start_offset , len , value ) ;\n }\n break ;\n case SIGCOMP_INSTR_REMAINDER : offset = dissect_udvm_reference_operand ( udvm_tvb , sigcomp_udvm_tree , offset , & start_offset , & value ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_operand_1 , udvm_tvb , start_offset , len , value ) ;\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_operand_2_addr , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_operand_2 , udvm_tvb , start_offset , len , value ) ;\n }\n break ;\n case SIGCOMP_INSTR_SORT_ASCENDING : offset = offset + tvb_reported_length_remaining ( udvm_tvb , offset ) ;\n break ;\n case SIGCOMP_INSTR_SORT_DESCENDING : offset = offset + tvb_reported_length_remaining ( udvm_tvb , offset ) ;\n break ;\n case SIGCOMP_INSTR_SHA_1 : offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_position , udvm_tvb , start_offset , len , value ) ;\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_addr_length , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_length , udvm_tvb , start_offset , len , value ) ;\n }\n offset = dissect_udvm_reference_operand ( udvm_tvb , sigcomp_udvm_tree , offset , & start_offset , & value ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_ref_dest , udvm_tvb , start_offset , len , value ) ;\n break ;\n case SIGCOMP_INSTR_LOAD : offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_address , udvm_tvb , start_offset , len , value ) ;\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_addr_value , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_value , udvm_tvb , start_offset , len , value ) ;\n }\n break ;\n case SIGCOMP_INSTR_MULTILOAD : offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_address , udvm_tvb , start_offset , len , value ) ;\n offset = dissect_udvm_literal_operand ( udvm_tvb , sigcomp_udvm_tree , offset , & start_offset , & value ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_literal_num , udvm_tvb , start_offset , len , value ) ;\n n = value ;\n while ( n > 0 ) {\n n = n - 1 ;\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_addr_value , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_value , udvm_tvb , start_offset , len , value ) ;\n }\n }\n break ;\n case SIGCOMP_INSTR_PUSH : offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_addr_value , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_value , udvm_tvb , start_offset , len , value ) ;\n }\n break ;\n case SIGCOMP_INSTR_POP : offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_address , udvm_tvb , start_offset , len , value ) ;\n break ;\n case SIGCOMP_INSTR_COPY : offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_position , udvm_tvb , start_offset , len , value ) ;\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_addr_length , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_length , udvm_tvb , start_offset , len , value ) ;\n }\n offset = dissect_udvm_reference_operand ( udvm_tvb , sigcomp_udvm_tree , offset , & start_offset , & value ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_ref_dest , udvm_tvb , start_offset , len , value ) ;\n break ;\n case SIGCOMP_INSTR_COPY_LITERAL : offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_position , udvm_tvb , start_offset , len , value ) ;\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_addr_length , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_length , udvm_tvb , start_offset , len , value ) ;\n }\n offset = dissect_udvm_reference_operand ( udvm_tvb , sigcomp_udvm_tree , offset , & start_offset , & value ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_ref_dest , udvm_tvb , start_offset , len , value ) ;\n break ;\n case SIGCOMP_INSTR_COPY_OFFSET : offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_addr_offset , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_offset , udvm_tvb , start_offset , len , value ) ;\n }\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_addr_length , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_length , udvm_tvb , start_offset , len , value ) ;\n }\n offset = dissect_udvm_reference_operand ( udvm_tvb , sigcomp_udvm_tree , offset , & start_offset , & value ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_ref_dest , udvm_tvb , start_offset , len , value ) ;\n break ;\n case SIGCOMP_INSTR_MEMSET : offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_address , udvm_tvb , start_offset , len , value ) ;\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_addr_length , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_length , udvm_tvb , start_offset , len , value ) ;\n }\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_start_value , udvm_tvb , start_offset , len , value ) ;\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_offset , udvm_tvb , start_offset , len , value ) ;\n break ;\n case SIGCOMP_INSTR_JUMP : offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n value = ( value + UDVM_address ) & 0xffff ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_at_address , udvm_tvb , start_offset , len , value ) ;\n break ;\n case SIGCOMP_INSTR_COMPARE : offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_addr_value , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_value , udvm_tvb , start_offset , len , value ) ;\n }\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_addr_value , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_value , udvm_tvb , start_offset , len , value ) ;\n }\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n value = ( value + UDVM_address ) & 0xffff ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_at_address , udvm_tvb , start_offset , len , value ) ;\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n value = ( value + UDVM_address ) & 0xffff ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_at_address , udvm_tvb , start_offset , len , value ) ;\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n value = ( value + UDVM_address ) & 0xffff ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_at_address , udvm_tvb , start_offset , len , value ) ;\n break ;\n case SIGCOMP_INSTR_CALL : offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n value = ( value + UDVM_address ) & 0xffff ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_at_address , udvm_tvb , start_offset , len , value ) ;\n break ;\n case SIGCOMP_INSTR_RETURN : break ;\n case SIGCOMP_INSTR_SWITCH : offset = dissect_udvm_literal_operand ( udvm_tvb , sigcomp_udvm_tree , offset , & start_offset , & value ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_literal_num , udvm_tvb , start_offset , len , value ) ;\n n = value ;\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_addr_j , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_j , udvm_tvb , start_offset , len , value ) ;\n }\n while ( n > 0 ) {\n n = n - 1 ;\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n value = ( value + UDVM_address ) & 0xffff ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_at_address , udvm_tvb , start_offset , len , value ) ;\n }\n break ;\n case SIGCOMP_INSTR_CRC : offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_addr_value , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_value , udvm_tvb , start_offset , len , value ) ;\n }\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_position , udvm_tvb , start_offset , len , value ) ;\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_addr_length , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_length , udvm_tvb , start_offset , len , value ) ;\n }\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n value = ( value + UDVM_address ) & 0xffff ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_at_address , udvm_tvb , start_offset , len , value ) ;\n break ;\n case SIGCOMP_INSTR_INPUT_BYTES : offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_addr_length , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_length , udvm_tvb , start_offset , len , value ) ;\n }\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_addr_destination , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_destination , udvm_tvb , start_offset , len , value ) ;\n }\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n value = ( value + UDVM_address ) & 0xffff ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_at_address , udvm_tvb , start_offset , len , value ) ;\n break ;\n case SIGCOMP_INSTR_INPUT_BITS : offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_addr_length , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_length , udvm_tvb , start_offset , len , value ) ;\n }\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_addr_destination , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_destination , udvm_tvb , start_offset , len , value ) ;\n }\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n value = ( value + UDVM_address ) & 0xffff ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_at_address , udvm_tvb , start_offset , len , value ) ;\n break ;\n case SIGCOMP_INSTR_INPUT_HUFFMAN : offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_addr_destination , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_destination , udvm_tvb , start_offset , len , value ) ;\n }\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n value = ( value + UDVM_address ) & 0xffff ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_at_address , udvm_tvb , start_offset , len , value ) ;\n offset = dissect_udvm_literal_operand ( udvm_tvb , sigcomp_udvm_tree , offset , & start_offset , & value ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_literal_num , udvm_tvb , start_offset , len , value ) ;\n n = value ;\n while ( n > 0 ) {\n n = n - 1 ;\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_bits , udvm_tvb , start_offset , len , value ) ;\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_lower_bound , udvm_tvb , start_offset , len , value ) ;\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_upper_bound , udvm_tvb , start_offset , len , value ) ;\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , FALSE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_uncompressed , udvm_tvb , start_offset , len , value ) ;\n }\n break ;\n case SIGCOMP_INSTR_STATE_ACCESS : offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_partial_identifier_start , udvm_tvb , start_offset , len , value ) ;\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_partial_identifier_length , udvm_tvb , start_offset , len , value ) ;\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_state_begin , udvm_tvb , start_offset , len , value ) ;\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_state_length_addr , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_state_length , udvm_tvb , start_offset , len , value ) ;\n }\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_state_address_addr , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_state_address , udvm_tvb , start_offset , len , value ) ;\n }\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_state_instr , udvm_tvb , start_offset , len , value ) ;\n break ;\n case SIGCOMP_INSTR_STATE_CREATE : offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_state_length_addr , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_state_length , udvm_tvb , start_offset , len , value ) ;\n }\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_state_address_addr , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_state_address , udvm_tvb , start_offset , len , value ) ;\n }\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_state_instr , udvm_tvb , start_offset , len , value ) ;\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_min_acc_len , udvm_tvb , start_offset , len , value ) ;\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_state_ret_pri , udvm_tvb , start_offset , len , value ) ;\n break ;\n case SIGCOMP_INSTR_STATE_FREE : offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_partial_identifier_start , udvm_tvb , start_offset , len , value ) ;\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_partial_identifier_length , udvm_tvb , start_offset , len , value ) ;\n break ;\n case SIGCOMP_INSTR_OUTPUT : offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_addr_output_start , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_output_start , udvm_tvb , start_offset , len , value ) ;\n }\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_output_length_addr , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_output_length , udvm_tvb , start_offset , len , value ) ;\n }\n break ;\n case SIGCOMP_INSTR_END_MESSAGE : if ( ( msg_length - 1 ) < offset ) {\n proto_tree_add_expert ( sigcomp_udvm_tree , pinfo , & ei_sigcomp_all_remaining_parameters_zero , udvm_tvb , 0 , - 1 ) ;\n return ;\n }\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_req_feedback_loc , udvm_tvb , start_offset , len , value ) ;\n if ( ( msg_length - 1 ) < offset ) {\n proto_tree_add_expert ( sigcomp_udvm_tree , pinfo , & ei_sigcomp_all_remaining_parameters_zero , udvm_tvb , offset - 1 , - 1 ) ;\n return ;\n }\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_ret_param_loc , udvm_tvb , start_offset , len , value ) ;\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_state_length_addr , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_state_length , udvm_tvb , start_offset , len , value ) ;\n }\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n if ( is_memory_address ) {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_state_address_addr , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_state_address , udvm_tvb , start_offset , len , value ) ;\n }\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_state_instr , udvm_tvb , start_offset , len , value ) ;\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_min_acc_len , udvm_tvb , start_offset , len , value ) ;\n if ( tvb_reported_length_remaining ( udvm_tvb , offset ) != 0 ) {\n offset = dissect_udvm_multitype_operand ( udvm_tvb , sigcomp_udvm_tree , offset , TRUE , & start_offset , & value , & is_memory_address ) ;\n len = offset - start_offset ;\n proto_tree_add_uint ( sigcomp_udvm_tree , hf_udvm_state_ret_pri , udvm_tvb , start_offset , len , value ) ;\n }\n else {\n item2 = proto_tree_add_uint_format_value ( sigcomp_udvm_tree , hf_udvm_state_ret_pri , udvm_tvb , offset , 1 , 0 , \"0 (Not in the uploaded code as UDVM buffer initialized to Zero\" ) ;\n PROTO_ITEM_SET_GENERATED ( item2 ) ;\n }\n if ( tvb_reported_length_remaining ( udvm_tvb , offset ) != 0 ) {\n len = tvb_reported_length_remaining ( udvm_tvb , offset ) ;\n UDVM_address = start_address + offset ;\n proto_tree_add_bytes_format ( sigcomp_udvm_tree , hf_sigcomp_remaining_bytes , udvm_tvb , offset , len , NULL , \"Remaining %u bytes starting at UDVM addr %u (0x%x)- State information ?\" , len , UDVM_address , UDVM_address ) ;\n }\n offset = offset + tvb_reported_length_remaining ( udvm_tvb , offset ) ;\n break ;\n default : offset = offset + tvb_reported_length_remaining ( udvm_tvb , offset ) ;\n break ;\n }\n }\n return ;\n }"}
{"idx": 13398, "target": 0, "func": "static inline int asv2_decode_block ( ASV1Context * a , int16_t block [ 64 ] ) {\n int i , count , ccp ;\n count = asv2_get_bits ( & a -> gb , 4 ) ;\n block [ 0 ] = 8 * asv2_get_bits ( & a -> gb , 8 ) ;\n ccp = get_vlc2 ( & a -> gb , dc_ccp_vlc . table , VLC_BITS , 1 ) ;\n if ( ccp ) {\n if ( ccp & 4 ) block [ a -> scantable . permutated [ 1 ] ] = ( asv2_get_level ( & a -> gb ) * a -> intra_matrix [ 1 ] ) >> 4 ;\n if ( ccp & 2 ) block [ a -> scantable . permutated [ 2 ] ] = ( asv2_get_level ( & a -> gb ) * a -> intra_matrix [ 2 ] ) >> 4 ;\n if ( ccp & 1 ) block [ a -> scantable . permutated [ 3 ] ] = ( asv2_get_level ( & a -> gb ) * a -> intra_matrix [ 3 ] ) >> 4 ;\n }\n for ( i = 1 ;\n i < count + 1 ;\n i ++ ) {\n const int ccp = get_vlc2 ( & a -> gb , ac_ccp_vlc . table , VLC_BITS , 1 ) ;\n if ( ccp ) {\n if ( ccp & 8 ) block [ a -> scantable . permutated [ 4 * i + 0 ] ] = ( asv2_get_level ( & a -> gb ) * a -> intra_matrix [ 4 * i + 0 ] ) >> 4 ;\n if ( ccp & 4 ) block [ a -> scantable . permutated [ 4 * i + 1 ] ] = ( asv2_get_level ( & a -> gb ) * a -> intra_matrix [ 4 * i + 1 ] ) >> 4 ;\n if ( ccp & 2 ) block [ a -> scantable . permutated [ 4 * i + 2 ] ] = ( asv2_get_level ( & a -> gb ) * a -> intra_matrix [ 4 * i + 2 ] ) >> 4 ;\n if ( ccp & 1 ) block [ a -> scantable . permutated [ 4 * i + 3 ] ] = ( asv2_get_level ( & a -> gb ) * a -> intra_matrix [ 4 * i + 3 ] ) >> 4 ;\n }\n }\n return 0 ;\n }"}
{"idx": 13399, "target": 0, "func": "longlong longlong_from_string_with_check ( CHARSET_INFO * cs , const char * cptr , const char * end ) {\n int err ;\n longlong tmp ;\n char * end_of_num = ( char * ) end ;\n tmp = ( * ( cs -> cset -> strtoll10 ) ) ( cs , cptr , & end_of_num , & err ) ;\n if ( ! current_thd -> no_errors && ( err > 0 || ( end != end_of_num && ! check_if_only_end_space ( cs , end_of_num , end ) ) ) ) {\n ErrConvString err ( cptr , end - cptr , cs ) ;\n push_warning_printf ( current_thd , MYSQL_ERROR : : WARN_LEVEL_WARN , ER_TRUNCATED_WRONG_VALUE , ER ( ER_TRUNCATED_WRONG_VALUE ) , \"INTEGER\" , err . ptr ( ) ) ;\n }\n return tmp ;\n }"}
{"idx": 13400, "target": 0, "func": "const char * SSL_alert_type_string ( int value ) {\n value >>= 8 ;\n if ( value == SSL3_AL_WARNING ) return ( \"W\" ) ;\n else if ( value == SSL3_AL_FATAL ) return ( \"F\" ) ;\n else return ( \"U\" ) ;\n }"}
{"idx": 13401, "target": 0, "func": "TSReturnCode TSHttpTxnFollowRedirect ( TSHttpTxn txnp , int on ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n sm -> enable_redirection = ( on ? true : false ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 13402, "target": 0, "func": "static bfd_boolean srec_set_section_contents ( bfd * abfd , sec_ptr section , const void * location , file_ptr offset , bfd_size_type bytes_to_do ) {\n int opb = bfd_octets_per_byte ( abfd ) ;\n tdata_type * tdata = abfd -> tdata . srec_data ;\n srec_data_list_type * entry ;\n entry = ( srec_data_list_type * ) bfd_alloc ( abfd , sizeof ( * entry ) ) ;\n if ( entry == NULL ) return FALSE ;\n if ( bytes_to_do && ( section -> flags & SEC_ALLOC ) && ( section -> flags & SEC_LOAD ) ) {\n bfd_byte * data ;\n data = ( bfd_byte * ) bfd_alloc ( abfd , bytes_to_do ) ;\n if ( data == NULL ) return FALSE ;\n memcpy ( ( void * ) data , location , ( size_t ) bytes_to_do ) ;\n if ( S3Forced ) tdata -> type = 3 ;\n else if ( ( section -> lma + ( offset + bytes_to_do ) / opb - 1 ) <= 0xffff ) ;\n else if ( ( section -> lma + ( offset + bytes_to_do ) / opb - 1 ) <= 0xffffff && tdata -> type <= 2 ) tdata -> type = 2 ;\n else tdata -> type = 3 ;\n entry -> data = data ;\n entry -> where = section -> lma + offset / opb ;\n entry -> size = bytes_to_do ;\n if ( tdata -> tail != NULL && entry -> where >= tdata -> tail -> where ) {\n tdata -> tail -> next = entry ;\n entry -> next = NULL ;\n tdata -> tail = entry ;\n }\n else {\n srec_data_list_type * * look ;\n for ( look = & tdata -> head ;\n * look != NULL && ( * look ) -> where < entry -> where ;\n look = & ( * look ) -> next ) ;\n entry -> next = * look ;\n * look = entry ;\n if ( entry -> next == NULL ) tdata -> tail = entry ;\n }\n }\n return TRUE ;\n }"}
{"idx": 13403, "target": 0, "func": "static int get_consumed_bytes ( MpegEncContext * s , int buf_size ) {\n int pos = ( get_bits_count ( & s -> gb ) + 7 ) >> 3 ;\n if ( s -> divx_packed || s -> avctx -> hwaccel ) {\n return buf_size ;\n }\n else if ( s -> flags & CODEC_FLAG_TRUNCATED ) {\n pos -= s -> parse_context . last_index ;\n if ( pos < 0 ) pos = 0 ;\n return pos ;\n }\n else {\n if ( pos == 0 ) pos = 1 ;\n if ( pos + 10 > buf_size ) pos = buf_size ;\n return pos ;\n }\n }"}
{"idx": 13404, "target": 0, "func": "static void pk_transaction_accept_eula ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) {\n gboolean ret ;\n guint idle_id ;\n const gchar * eula_id = NULL ;\n g_autoptr ( GError ) error = NULL ;\n g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;\n g_return_if_fail ( transaction -> priv -> tid != NULL ) ;\n g_variant_get ( params , \"(&s)\" , & eula_id ) ;\n ret = pk_transaction_strvalidate ( eula_id , & error ) ;\n if ( ! ret ) {\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n pk_transaction_set_role ( transaction , PK_ROLE_ENUM_ACCEPT_EULA ) ;\n ret = pk_transaction_obtain_authorization ( transaction , PK_ROLE_ENUM_ACCEPT_EULA , & error ) ;\n if ( ! ret ) {\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n g_debug ( \"AcceptEula method called: %s\" , eula_id ) ;\n pk_backend_accept_eula ( transaction -> priv -> backend , eula_id ) ;\n idle_id = g_idle_add ( ( GSourceFunc ) pk_transaction_finished_idle_cb , transaction ) ;\n g_source_set_name_by_id ( idle_id , \"[PkTransaction] finished from accept\" ) ;\n out : pk_transaction_dbus_return ( context , error ) ;\n }"}
{"idx": 13405, "target": 0, "func": "static int parse_padding ( tvbuff_t * tvb , int offset , int alignment , proto_tree * pad_tree , const char * fmt , ... ) {\n if ( offset % alignment ) {\n const int padding = alignment - ( offset % alignment ) ;\n const char * txt ;\n va_list ap ;\n proto_item * ti ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n proto_tree_add_subtree ( pad_tree , tvb , offset , padding , ett_mswsp_msg_padding , & ti , txt ) ;\n va_end ( ap ) ;\n proto_item_append_text ( ti , \" (%d)\" , padding ) ;\n offset += padding ;\n }\n DISSECTOR_ASSERT ( ( offset % alignment ) == 0 ) ;\n return offset ;\n }"}
{"idx": 13406, "target": 0, "func": "static void * DefaultAllocFunc ( void * opaque , size_t size ) {\n BROTLI_UNUSED ( opaque ) ;\n return malloc ( size ) ;\n }"}
{"idx": 13407, "target": 0, "func": "static zend_object_value spl_dllist_object_new_ex ( zend_class_entry * class_type , spl_dllist_object * * obj , zval * orig , int clone_orig TSRMLS_DC ) {\n zend_object_value retval = {\n 0 }\n ;\n spl_dllist_object * intern ;\n zend_class_entry * parent = class_type ;\n int inherited = 0 ;\n intern = ecalloc ( 1 , sizeof ( spl_dllist_object ) ) ;\n * obj = intern ;\n ALLOC_INIT_ZVAL ( intern -> retval ) ;\n zend_object_std_init ( & intern -> std , class_type TSRMLS_CC ) ;\n object_properties_init ( & intern -> std , class_type ) ;\n intern -> flags = 0 ;\n intern -> traverse_position = 0 ;\n intern -> debug_info = NULL ;\n if ( orig ) {\n spl_dllist_object * other = ( spl_dllist_object * ) zend_object_store_get_object ( orig TSRMLS_CC ) ;\n intern -> ce_get_iterator = other -> ce_get_iterator ;\n if ( clone_orig ) {\n intern -> llist = ( spl_ptr_llist * ) spl_ptr_llist_init ( other -> llist -> ctor , other -> llist -> dtor ) ;\n spl_ptr_llist_copy ( other -> llist , intern -> llist TSRMLS_CC ) ;\n intern -> traverse_pointer = intern -> llist -> head ;\n SPL_LLIST_CHECK_ADDREF ( intern -> traverse_pointer ) ;\n }\n else {\n intern -> llist = other -> llist ;\n intern -> traverse_pointer = intern -> llist -> head ;\n SPL_LLIST_CHECK_ADDREF ( intern -> traverse_pointer ) ;\n }\n intern -> flags = other -> flags ;\n }\n else {\n intern -> llist = ( spl_ptr_llist * ) spl_ptr_llist_init ( spl_ptr_llist_zval_ctor , spl_ptr_llist_zval_dtor ) ;\n intern -> traverse_pointer = intern -> llist -> head ;\n SPL_LLIST_CHECK_ADDREF ( intern -> traverse_pointer ) ;\n }\n while ( parent ) {\n if ( parent == spl_ce_SplStack ) {\n intern -> flags |= ( SPL_DLLIST_IT_FIX | SPL_DLLIST_IT_LIFO ) ;\n retval . handlers = & spl_handler_SplDoublyLinkedList ;\n }\n else if ( parent == spl_ce_SplQueue ) {\n intern -> flags |= SPL_DLLIST_IT_FIX ;\n retval . handlers = & spl_handler_SplDoublyLinkedList ;\n }\n if ( parent == spl_ce_SplDoublyLinkedList ) {\n retval . handlers = & spl_handler_SplDoublyLinkedList ;\n break ;\n }\n parent = parent -> parent ;\n inherited = 1 ;\n }\n retval . handle = zend_objects_store_put ( intern , ( zend_objects_store_dtor_t ) zend_objects_destroy_object , spl_dllist_object_free_storage , NULL TSRMLS_CC ) ;\n if ( ! parent ) {\n php_error_docref ( NULL TSRMLS_CC , E_COMPILE_ERROR , \"Internal compiler error, Class is not child of SplDoublyLinkedList\" ) ;\n }\n if ( inherited ) {\n zend_hash_find ( & class_type -> function_table , \"offsetget\" , sizeof ( \"offsetget\" ) , ( void * * ) & intern -> fptr_offset_get ) ;\n if ( intern -> fptr_offset_get -> common . scope == parent ) {\n intern -> fptr_offset_get = NULL ;\n }\n zend_hash_find ( & class_type -> function_table , \"offsetset\" , sizeof ( \"offsetset\" ) , ( void * * ) & intern -> fptr_offset_set ) ;\n if ( intern -> fptr_offset_set -> common . scope == parent ) {\n intern -> fptr_offset_set = NULL ;\n }\n zend_hash_find ( & class_type -> function_table , \"offsetexists\" , sizeof ( \"offsetexists\" ) , ( void * * ) & intern -> fptr_offset_has ) ;\n if ( intern -> fptr_offset_has -> common . scope == parent ) {\n intern -> fptr_offset_has = NULL ;\n }\n zend_hash_find ( & class_type -> function_table , \"offsetunset\" , sizeof ( \"offsetunset\" ) , ( void * * ) & intern -> fptr_offset_del ) ;\n if ( intern -> fptr_offset_del -> common . scope == parent ) {\n intern -> fptr_offset_del = NULL ;\n }\n zend_hash_find ( & class_type -> function_table , \"count\" , sizeof ( \"count\" ) , ( void * * ) & intern -> fptr_count ) ;\n if ( intern -> fptr_count -> common . scope == parent ) {\n intern -> fptr_count = NULL ;\n }\n }\n return retval ;\n }"}
{"idx": 13408, "target": 0, "func": "kadm5_ret_t kadm5_create_policy ( void * server_handle , kadm5_policy_ent_t entry , long mask ) {\n CHECK_HANDLE ( server_handle ) ;\n krb5_clear_error_message ( ( ( kadm5_server_handle_t ) server_handle ) -> context ) ;\n if ( mask & KADM5_REF_COUNT ) return KADM5_BAD_MASK ;\n else return kadm5_create_policy_internal ( server_handle , entry , mask ) ;\n }"}
{"idx": 13409, "target": 1, "func": "static int spl_filesystem_file_call ( spl_filesystem_object * intern , zend_function * func_ptr , int pass_num_args , zval * return_value , zval * arg2 TSRMLS_DC ) {\n zend_fcall_info fci ;\n zend_fcall_info_cache fcic ;\n zval z_fname ;\n zval * zresource_ptr = & intern -> u . file . zresource , * retval ;\n int result ;\n int num_args = pass_num_args + ( arg2 ? 2 : 1 ) ;\n zval * * * params = ( zval * * * ) safe_emalloc ( num_args , sizeof ( zval * * ) , 0 ) ;\n params [ 0 ] = & zresource_ptr ;\n if ( arg2 ) {\n params [ 1 ] = & arg2 ;\n }\n zend_get_parameters_array_ex ( pass_num_args , params + ( arg2 ? 2 : 1 ) ) ;\n ZVAL_STRING ( & z_fname , func_ptr -> common . function_name , 0 ) ;\n fci . size = sizeof ( fci ) ;\n fci . function_table = EG ( function_table ) ;\n fci . object_ptr = NULL ;\n fci . function_name = & z_fname ;\n fci . retval_ptr_ptr = & retval ;\n fci . param_count = num_args ;\n fci . params = params ;\n fci . no_separation = 1 ;\n fci . symbol_table = NULL ;\n fcic . initialized = 1 ;\n fcic . function_handler = func_ptr ;\n fcic . calling_scope = NULL ;\n fcic . called_scope = NULL ;\n fcic . object_ptr = NULL ;\n result = zend_call_function ( & fci , & fcic TSRMLS_CC ) ;\n if ( result == FAILURE ) {\n RETVAL_FALSE ;\n }\n else {\n ZVAL_ZVAL ( return_value , retval , 1 , 1 ) ;\n }\n efree ( params ) ;\n return result ;\n }"}
{"idx": 13410, "target": 0, "func": "void TSHttpTxnHookAdd ( TSHttpTxn txnp , TSHttpHookID id , TSCont contp ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_continuation ( contp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_hook_id ( id ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n APIHook * hook = sm -> txn_hook_get ( id ) ;\n while ( hook != nullptr ) {\n if ( hook -> m_cont == ( INKContInternal * ) contp ) {\n return ;\n }\n hook = hook -> m_link . next ;\n }\n sm -> txn_hook_append ( id , ( INKContInternal * ) contp ) ;\n }"}
{"idx": 13411, "target": 0, "func": "void http_parser_init ( HTTPParser * parser ) {\n _http_parser_init ( parser ) ;\n mime_parser_init ( & parser -> m_mime_parser ) ;\n }"}
{"idx": 13412, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( HttpsEngagementPageLoadMetricsBrowserTest , ClosedWhileHidden_Https ) {\n StartHttpsServer ( false ) ;\n base : : TimeDelta upper_bound = NavigateInForegroundAndCloseInBackgroundWithTiming ( https_test_server_ -> GetURL ( \"/simple.html\" ) ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpEngagementHistogram , 0 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementHistogram , 1 ) ;\n int32_t bucket_min = histogram_tester_ . GetAllSamples ( internal : : kHttpsEngagementHistogram ) [ 0 ] . min ;\n EXPECT_GE ( upper_bound . InMilliseconds ( ) , bucket_min ) ;\n EXPECT_LT ( 0 , bucket_min ) ;\n FakeUserMetricsUpload ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementSessionPercentage , 1 ) ;\n int32_t ratio_bucket = histogram_tester_ . GetAllSamples ( internal : : kHttpsEngagementSessionPercentage ) [ 0 ] . min ;\n EXPECT_EQ ( 100 , ratio_bucket ) ;\n }"}
{"idx": 13413, "target": 1, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DIRECTORYSTRING ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DISPLAYTEXT ) DECLARE_ASN1_FUNCTIONS ( ASN1_PRINTABLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_T61STRING )"}
{"idx": 13414, "target": 0, "func": "static __inline__ __u32 __fswahb32 ( __u32 val ) {\n # ifdef __arch_swahb32 return __arch_swahb32 ( val ) ;\n # else return ___constant_swahb32 ( val ) ;\n # endif }"}
{"idx": 13415, "target": 0, "func": "static void add_family_to_write_order ( struct object_entry * * wo , unsigned int * endp , struct object_entry * e ) {\n struct object_entry * root ;\n for ( root = e ;\n root -> delta ;\n root = root -> delta ) ;\n add_descendants_to_write_order ( wo , endp , root ) ;\n }"}
{"idx": 13416, "target": 0, "func": "static void add_mrange ( fz_context * ctx , pdf_cmap * cmap , unsigned int low , int * out , int len ) {\n int out_pos ;\n if ( cmap -> dlen + len + 1 > cmap -> dcap ) {\n int new_cap = cmap -> dcap ? cmap -> dcap * 2 : 256 ;\n cmap -> dict = fz_resize_array ( ctx , cmap -> dict , new_cap , sizeof * cmap -> dict ) ;\n cmap -> dcap = new_cap ;\n }\n out_pos = cmap -> dlen ;\n cmap -> dict [ out_pos ] = len ;\n memcpy ( & cmap -> dict [ out_pos + 1 ] , out , sizeof ( int ) * len ) ;\n cmap -> dlen += len + 1 ;\n add_range ( ctx , cmap , low , low , out_pos , 1 , 1 ) ;\n }"}
{"idx": 13417, "target": 0, "func": "static vpx_codec_err_t update_extra_cfg ( vpx_codec_alg_priv_t * ctx , const struct vp9_extracfg * extra_cfg ) {\n const vpx_codec_err_t res = validate_config ( ctx , & ctx -> cfg , extra_cfg ) ;\n if ( res == VPX_CODEC_OK ) {\n ctx -> extra_cfg = * extra_cfg ;\n set_encoder_config ( & ctx -> oxcf , & ctx -> cfg , & ctx -> extra_cfg ) ;\n vp9_change_config ( ctx -> cpi , & ctx -> oxcf ) ;\n }\n return res ;\n }"}
{"idx": 13418, "target": 0, "func": "SPL_METHOD ( SplFileObject , fgets ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n if ( spl_filesystem_file_read ( intern , 0 TSRMLS_CC ) == FAILURE ) {\n RETURN_FALSE ;\n }\n RETURN_STRINGL ( intern -> u . file . current_line , intern -> u . file . current_line_len , 1 ) ;\n }"}
{"idx": 13419, "target": 0, "func": "static int sort_ft_key_write ( MI_SORT_PARAM * sort_param , const void * a ) {\n uint a_len , val_off , val_len , error ;\n uchar * p ;\n SORT_INFO * sort_info = sort_param -> sort_info ;\n SORT_FT_BUF * ft_buf = sort_info -> ft_buf ;\n SORT_KEY_BLOCKS * key_block = sort_info -> key_block ;\n val_len = HA_FT_WLEN + sort_info -> info -> s -> rec_reflength ;\n get_key_full_length_rdonly ( a_len , ( uchar * ) a ) ;\n if ( ! ft_buf ) {\n if ( ( sort_info -> info -> s -> base . key_reflength <= sort_info -> info -> s -> rec_reflength ) && ( sort_info -> info -> s -> options & ( HA_OPTION_PACK_RECORD | HA_OPTION_COMPRESS_RECORD ) ) ) ft_buf = ( SORT_FT_BUF * ) my_malloc ( sort_param -> keyinfo -> block_length + sizeof ( SORT_FT_BUF ) , MYF ( MY_WME ) ) ;\n if ( ! ft_buf ) {\n sort_param -> key_write = sort_key_write ;\n return sort_key_write ( sort_param , a ) ;\n }\n sort_info -> ft_buf = ft_buf ;\n goto word_init_ft_buf ;\n }\n get_key_full_length_rdonly ( val_off , ft_buf -> lastkey ) ;\n if ( ha_compare_text ( sort_param -> seg -> charset , ( ( uchar * ) a ) + 1 , a_len - 1 , ft_buf -> lastkey + 1 , val_off - 1 , 0 , 0 ) == 0 ) {\n if ( ! ft_buf -> buf ) {\n ft_buf -> count ++ ;\n return sort_insert_key ( sort_param , key_block , ( ( uchar * ) a ) + a_len , HA_OFFSET_ERROR ) ;\n }\n memcpy ( ft_buf -> buf , ( char * ) a + a_len , val_len ) ;\n ft_buf -> buf += val_len ;\n if ( ft_buf -> buf < ft_buf -> end ) return 0 ;\n p = ft_buf -> lastkey + val_off ;\n while ( key_block -> inited ) key_block ++ ;\n sort_info -> key_block = key_block ;\n sort_param -> keyinfo = & sort_info -> info -> s -> ft2_keyinfo ;\n ft_buf -> count = ( uint ) ( ft_buf -> buf - p ) / val_len ;\n for ( error = 0 ;\n ! error && p < ft_buf -> buf ;\n p += val_len ) error = sort_insert_key ( sort_param , key_block , p , HA_OFFSET_ERROR ) ;\n ft_buf -> buf = 0 ;\n return error ;\n }\n if ( ( error = sort_ft_buf_flush ( sort_param ) ) ) return error ;\n word_init_ft_buf : a_len += val_len ;\n memcpy ( ft_buf -> lastkey , a , a_len ) ;\n ft_buf -> buf = ft_buf -> lastkey + a_len ;\n ft_buf -> end = ft_buf -> lastkey + ( sort_param -> keyinfo -> block_length - 32 ) ;\n return 0 ;\n }"}
{"idx": 13420, "target": 0, "func": "static int dissect_h245_CapabilityTableEntry ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_CapabilityTableEntry , CapabilityTableEntry_sequence ) ;\n return offset ;\n }"}
{"idx": 13421, "target": 0, "func": "static gboolean set_pinfo_desegment ( packet_info * pinfo , gint next_offset , gint addition_bytes_needed ) {\n if ( pinfo -> can_desegment ) {\n pinfo -> desegment_offset = next_offset ;\n pinfo -> desegment_len = addition_bytes_needed ;\n return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 13422, "target": 0, "func": "void dtls1_get_ccs_header ( unsigned char * data , struct ccs_header_st * ccs_hdr ) {\n memset ( ccs_hdr , 0x00 , sizeof ( struct ccs_header_st ) ) ;\n ccs_hdr -> type = * ( data ++ ) ;\n }"}
{"idx": 13423, "target": 0, "func": "static void pk_transaction_method_call ( GDBusConnection * connection_ , const gchar * sender , const gchar * object_path , const gchar * interface_name , const gchar * method_name , GVariant * parameters , GDBusMethodInvocation * invocation , gpointer user_data ) {\n PkTransaction * transaction = PK_TRANSACTION ( user_data ) ;\n g_return_if_fail ( transaction -> priv -> sender != NULL ) ;\n if ( g_strcmp0 ( transaction -> priv -> sender , sender ) != 0 ) {\n g_dbus_method_invocation_return_error ( invocation , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_REFUSED_BY_POLICY , \"sender does not match (%s vs %s)\" , sender , transaction -> priv -> sender ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"SetHints\" ) == 0 ) {\n pk_transaction_set_hints ( transaction , parameters , invocation ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"AcceptEula\" ) == 0 ) {\n pk_transaction_accept_eula ( transaction , parameters , invocation ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"Cancel\" ) == 0 ) {\n pk_transaction_cancel ( transaction , parameters , invocation ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"DownloadPackages\" ) == 0 ) {\n pk_transaction_download_packages ( transaction , parameters , invocation ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"GetCategories\" ) == 0 ) {\n pk_transaction_get_categories ( transaction , parameters , invocation ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"DependsOn\" ) == 0 ) {\n pk_transaction_depends_on ( transaction , parameters , invocation ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"GetDetails\" ) == 0 ) {\n pk_transaction_get_details ( transaction , parameters , invocation ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"GetDetailsLocal\" ) == 0 ) {\n pk_transaction_get_details_local ( transaction , parameters , invocation ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"GetFilesLocal\" ) == 0 ) {\n pk_transaction_get_files_local ( transaction , parameters , invocation ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"GetFiles\" ) == 0 ) {\n pk_transaction_get_files ( transaction , parameters , invocation ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"GetOldTransactions\" ) == 0 ) {\n pk_transaction_get_old_transactions ( transaction , parameters , invocation ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"GetPackages\" ) == 0 ) {\n pk_transaction_get_packages ( transaction , parameters , invocation ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"GetRepoList\" ) == 0 ) {\n pk_transaction_get_repo_list ( transaction , parameters , invocation ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"RequiredBy\" ) == 0 ) {\n pk_transaction_required_by ( transaction , parameters , invocation ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"GetUpdateDetail\" ) == 0 ) {\n pk_transaction_get_update_detail ( transaction , parameters , invocation ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"GetUpdates\" ) == 0 ) {\n pk_transaction_get_updates ( transaction , parameters , invocation ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"GetDistroUpgrades\" ) == 0 ) {\n pk_transaction_get_distro_upgrades ( transaction , parameters , invocation ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"InstallFiles\" ) == 0 ) {\n pk_transaction_install_files ( transaction , parameters , invocation ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"InstallPackages\" ) == 0 ) {\n pk_transaction_install_packages ( transaction , parameters , invocation ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"InstallSignature\" ) == 0 ) {\n pk_transaction_install_signature ( transaction , parameters , invocation ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"RefreshCache\" ) == 0 ) {\n pk_transaction_refresh_cache ( transaction , parameters , invocation ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"RemovePackages\" ) == 0 ) {\n pk_transaction_remove_packages ( transaction , parameters , invocation ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"RepoEnable\" ) == 0 ) {\n pk_transaction_repo_enable ( transaction , parameters , invocation ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"RepoSetData\" ) == 0 ) {\n pk_transaction_repo_set_data ( transaction , parameters , invocation ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"RepoRemove\" ) == 0 ) {\n pk_transaction_repo_remove ( transaction , parameters , invocation ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"Resolve\" ) == 0 ) {\n pk_transaction_resolve ( transaction , parameters , invocation ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"SearchDetails\" ) == 0 ) {\n pk_transaction_search_details ( transaction , parameters , invocation ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"SearchFiles\" ) == 0 ) {\n pk_transaction_search_files ( transaction , parameters , invocation ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"SearchGroups\" ) == 0 ) {\n pk_transaction_search_groups ( transaction , parameters , invocation ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"SearchNames\" ) == 0 ) {\n pk_transaction_search_names ( transaction , parameters , invocation ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"UpdatePackages\" ) == 0 ) {\n pk_transaction_update_packages ( transaction , parameters , invocation ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"WhatProvides\" ) == 0 ) {\n pk_transaction_what_provides ( transaction , parameters , invocation ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"UpgradeSystem\" ) == 0 ) {\n pk_transaction_upgrade_system ( transaction , parameters , invocation ) ;\n return ;\n }\n if ( g_strcmp0 ( method_name , \"RepairSystem\" ) == 0 ) {\n pk_transaction_repair_system ( transaction , parameters , invocation ) ;\n return ;\n }\n g_dbus_method_invocation_return_error ( invocation , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_INVALID_STATE , \"method from %s not recognised\" , sender ) ;\n }"}
{"idx": 13424, "target": 0, "func": "TEST_F ( ExtensionWelcomeNotificationTest , ShowWelcomeNotificationAgain ) {\n StartPreferenceSyncing ( ) ;\n SetBooleanPref ( prefs : : kWelcomeNotificationPreviouslyPoppedUp , true ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissed ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissedLocal ) ) ;\n EXPECT_TRUE ( GetBooleanPref ( prefs : : kWelcomeNotificationPreviouslyPoppedUp ) ) ;\n ShowChromeNowNotification ( ) ;\n EXPECT_EQ ( message_center ( ) -> add_notification_calls ( ) , 1 ) ;\n EXPECT_EQ ( message_center ( ) -> remove_notification_calls ( ) , 0 ) ;\n EXPECT_EQ ( message_center ( ) -> notifications_with_shown_as_popup ( ) , 1 ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissed ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissedLocal ) ) ;\n EXPECT_TRUE ( GetBooleanPref ( prefs : : kWelcomeNotificationPreviouslyPoppedUp ) ) ;\n }"}
{"idx": 13425, "target": 1, "func": "static void pred_spatial_direct_motion ( H264Context * const h , int * mb_type ) {\n int b8_stride = 2 ;\n int b4_stride = h -> b_stride ;\n int mb_xy = h -> mb_xy , mb_y = h -> mb_y ;\n int mb_type_col [ 2 ] ;\n const int16_t ( * l1mv0 ) [ 2 ] , ( * l1mv1 ) [ 2 ] ;\n const int8_t * l1ref0 , * l1ref1 ;\n const int is_b8x8 = IS_8X8 ( * mb_type ) ;\n unsigned int sub_mb_type = MB_TYPE_L0L1 ;\n int i8 , i4 ;\n int ref [ 2 ] ;\n int mv [ 2 ] ;\n int list ;\n assert ( h -> ref_list [ 1 ] [ 0 ] . f . reference & 3 ) ;\n await_reference_mb_row ( h , & h -> ref_list [ 1 ] [ 0 ] , h -> mb_y + ! ! IS_INTERLACED ( * mb_type ) ) ;\n # define MB_TYPE_16x16_OR_INTRA ( MB_TYPE_16x16 | MB_TYPE_INTRA4x4 | MB_TYPE_INTRA16x16 | MB_TYPE_INTRA_PCM ) for ( list = 0 ;\n list < 2 ;\n list ++ ) {\n int left_ref = h -> ref_cache [ list ] [ scan8 [ 0 ] - 1 ] ;\n int top_ref = h -> ref_cache [ list ] [ scan8 [ 0 ] - 8 ] ;\n int refc = h -> ref_cache [ list ] [ scan8 [ 0 ] - 8 + 4 ] ;\n const int16_t * C = h -> mv_cache [ list ] [ scan8 [ 0 ] - 8 + 4 ] ;\n if ( refc == PART_NOT_AVAILABLE ) {\n refc = h -> ref_cache [ list ] [ scan8 [ 0 ] - 8 - 1 ] ;\n C = h -> mv_cache [ list ] [ scan8 [ 0 ] - 8 - 1 ] ;\n }\n ref [ list ] = FFMIN3 ( ( unsigned ) left_ref , ( unsigned ) top_ref , ( unsigned ) refc ) ;\n if ( ref [ list ] >= 0 ) {\n const int16_t * const A = h -> mv_cache [ list ] [ scan8 [ 0 ] - 1 ] ;\n const int16_t * const B = h -> mv_cache [ list ] [ scan8 [ 0 ] - 8 ] ;\n int match_count = ( left_ref == ref [ list ] ) + ( top_ref == ref [ list ] ) + ( refc == ref [ list ] ) ;\n if ( match_count > 1 ) {\n mv [ list ] = pack16to32 ( mid_pred ( A [ 0 ] , B [ 0 ] , C [ 0 ] ) , mid_pred ( A [ 1 ] , B [ 1 ] , C [ 1 ] ) ) ;\n }\n else {\n assert ( match_count == 1 ) ;\n if ( left_ref == ref [ list ] ) {\n mv [ list ] = AV_RN32A ( A ) ;\n }\n else if ( top_ref == ref [ list ] ) {\n mv [ list ] = AV_RN32A ( B ) ;\n }\n else {\n mv [ list ] = AV_RN32A ( C ) ;\n }\n }\n }\n else {\n int mask = ~ ( MB_TYPE_L0 << ( 2 * list ) ) ;\n mv [ list ] = 0 ;\n ref [ list ] = - 1 ;\n if ( ! is_b8x8 ) * mb_type &= mask ;\n sub_mb_type &= mask ;\n }\n }\n if ( ref [ 0 ] < 0 && ref [ 1 ] < 0 ) {\n ref [ 0 ] = ref [ 1 ] = 0 ;\n if ( ! is_b8x8 ) * mb_type |= MB_TYPE_L0L1 ;\n sub_mb_type |= MB_TYPE_L0L1 ;\n }\n if ( ! ( is_b8x8 | mv [ 0 ] | mv [ 1 ] ) ) {\n fill_rectangle ( & h -> ref_cache [ 0 ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , ( uint8_t ) ref [ 0 ] , 1 ) ;\n fill_rectangle ( & h -> ref_cache [ 1 ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , ( uint8_t ) ref [ 1 ] , 1 ) ;\n fill_rectangle ( & h -> mv_cache [ 0 ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , 0 , 4 ) ;\n fill_rectangle ( & h -> mv_cache [ 1 ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , 0 , 4 ) ;\n * mb_type = ( * mb_type & ~ ( MB_TYPE_8x8 | MB_TYPE_16x8 | MB_TYPE_8x16 | MB_TYPE_P1L0 | MB_TYPE_P1L1 ) ) | MB_TYPE_16x16 | MB_TYPE_DIRECT2 ;\n return ;\n }\n if ( IS_INTERLACED ( h -> ref_list [ 1 ] [ 0 ] . f . mb_type [ mb_xy ] ) ) {\n if ( ! IS_INTERLACED ( * mb_type ) ) {\n mb_y = ( h -> mb_y & ~ 1 ) + h -> col_parity ;\n mb_xy = h -> mb_x + ( ( h -> mb_y & ~ 1 ) + h -> col_parity ) * h -> mb_stride ;\n b8_stride = 0 ;\n }\n else {\n mb_y += h -> col_fieldoff ;\n mb_xy += h -> mb_stride * h -> col_fieldoff ;\n }\n goto single_col ;\n }\n else {\n if ( IS_INTERLACED ( * mb_type ) ) {\n mb_y = h -> mb_y & ~ 1 ;\n mb_xy = h -> mb_x + ( h -> mb_y & ~ 1 ) * h -> mb_stride ;\n mb_type_col [ 0 ] = h -> ref_list [ 1 ] [ 0 ] . f . mb_type [ mb_xy ] ;\n mb_type_col [ 1 ] = h -> ref_list [ 1 ] [ 0 ] . f . mb_type [ mb_xy + h -> mb_stride ] ;\n b8_stride = 2 + 4 * h -> mb_stride ;\n b4_stride *= 6 ;\n if ( IS_INTERLACED ( mb_type_col [ 0 ] ) != IS_INTERLACED ( mb_type_col [ 1 ] ) ) {\n mb_type_col [ 0 ] &= ~ MB_TYPE_INTERLACED ;\n mb_type_col [ 1 ] &= ~ MB_TYPE_INTERLACED ;\n }\n sub_mb_type |= MB_TYPE_16x16 | MB_TYPE_DIRECT2 ;\n if ( ( mb_type_col [ 0 ] & MB_TYPE_16x16_OR_INTRA ) && ( mb_type_col [ 1 ] & MB_TYPE_16x16_OR_INTRA ) && ! is_b8x8 ) {\n * mb_type |= MB_TYPE_16x8 | MB_TYPE_DIRECT2 ;\n }\n else {\n * mb_type |= MB_TYPE_8x8 ;\n }\n }\n else {\n single_col : mb_type_col [ 0 ] = mb_type_col [ 1 ] = h -> ref_list [ 1 ] [ 0 ] . f . mb_type [ mb_xy ] ;\n sub_mb_type |= MB_TYPE_16x16 | MB_TYPE_DIRECT2 ;\n if ( ! is_b8x8 && ( mb_type_col [ 0 ] & MB_TYPE_16x16_OR_INTRA ) ) {\n * mb_type |= MB_TYPE_16x16 | MB_TYPE_DIRECT2 ;\n }\n else if ( ! is_b8x8 && ( mb_type_col [ 0 ] & ( MB_TYPE_16x8 | MB_TYPE_8x16 ) ) ) {\n * mb_type |= MB_TYPE_DIRECT2 | ( mb_type_col [ 0 ] & ( MB_TYPE_16x8 | MB_TYPE_8x16 ) ) ;\n }\n else {\n if ( ! h -> sps . direct_8x8_inference_flag ) {\n sub_mb_type += ( MB_TYPE_8x8 - MB_TYPE_16x16 ) ;\n }\n * mb_type |= MB_TYPE_8x8 ;\n }\n }\n }\n await_reference_mb_row ( h , & h -> ref_list [ 1 ] [ 0 ] , mb_y ) ;\n l1mv0 = & h -> ref_list [ 1 ] [ 0 ] . f . motion_val [ 0 ] [ h -> mb2b_xy [ mb_xy ] ] ;\n l1mv1 = & h -> ref_list [ 1 ] [ 0 ] . f . motion_val [ 1 ] [ h -> mb2b_xy [ mb_xy ] ] ;\n l1ref0 = & h -> ref_list [ 1 ] [ 0 ] . f . ref_index [ 0 ] [ 4 * mb_xy ] ;\n l1ref1 = & h -> ref_list [ 1 ] [ 0 ] . f . ref_index [ 1 ] [ 4 * mb_xy ] ;\n if ( ! b8_stride ) {\n if ( h -> mb_y & 1 ) {\n l1ref0 += 2 ;\n l1ref1 += 2 ;\n l1mv0 += 2 * b4_stride ;\n l1mv1 += 2 * b4_stride ;\n }\n }\n if ( IS_INTERLACED ( * mb_type ) != IS_INTERLACED ( mb_type_col [ 0 ] ) ) {\n int n = 0 ;\n for ( i8 = 0 ;\n i8 < 4 ;\n i8 ++ ) {\n int x8 = i8 & 1 ;\n int y8 = i8 >> 1 ;\n int xy8 = x8 + y8 * b8_stride ;\n int xy4 = 3 * x8 + y8 * b4_stride ;\n int a , b ;\n if ( is_b8x8 && ! IS_DIRECT ( h -> sub_mb_type [ i8 ] ) ) continue ;\n h -> sub_mb_type [ i8 ] = sub_mb_type ;\n fill_rectangle ( & h -> ref_cache [ 0 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , ( uint8_t ) ref [ 0 ] , 1 ) ;\n fill_rectangle ( & h -> ref_cache [ 1 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , ( uint8_t ) ref [ 1 ] , 1 ) ;\n if ( ! IS_INTRA ( mb_type_col [ y8 ] ) && ! h -> ref_list [ 1 ] [ 0 ] . long_ref && ( ( l1ref0 [ xy8 ] == 0 && FFABS ( l1mv0 [ xy4 ] [ 0 ] ) <= 1 && FFABS ( l1mv0 [ xy4 ] [ 1 ] ) <= 1 ) || ( l1ref0 [ xy8 ] < 0 && l1ref1 [ xy8 ] == 0 && FFABS ( l1mv1 [ xy4 ] [ 0 ] ) <= 1 && FFABS ( l1mv1 [ xy4 ] [ 1 ] ) <= 1 ) ) ) {\n a = b = 0 ;\n if ( ref [ 0 ] > 0 ) a = mv [ 0 ] ;\n if ( ref [ 1 ] > 0 ) b = mv [ 1 ] ;\n n ++ ;\n }\n else {\n a = mv [ 0 ] ;\n b = mv [ 1 ] ;\n }\n fill_rectangle ( & h -> mv_cache [ 0 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , a , 4 ) ;\n fill_rectangle ( & h -> mv_cache [ 1 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , b , 4 ) ;\n }\n if ( ! is_b8x8 && ! ( n & 3 ) ) * mb_type = ( * mb_type & ~ ( MB_TYPE_8x8 | MB_TYPE_16x8 | MB_TYPE_8x16 | MB_TYPE_P1L0 | MB_TYPE_P1L1 ) ) | MB_TYPE_16x16 | MB_TYPE_DIRECT2 ;\n }\n else if ( IS_16X16 ( * mb_type ) ) {\n int a , b ;\n fill_rectangle ( & h -> ref_cache [ 0 ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , ( uint8_t ) ref [ 0 ] , 1 ) ;\n fill_rectangle ( & h -> ref_cache [ 1 ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , ( uint8_t ) ref [ 1 ] , 1 ) ;\n if ( ! IS_INTRA ( mb_type_col [ 0 ] ) && ! h -> ref_list [ 1 ] [ 0 ] . long_ref && ( ( l1ref0 [ 0 ] == 0 && FFABS ( l1mv0 [ 0 ] [ 0 ] ) <= 1 && FFABS ( l1mv0 [ 0 ] [ 1 ] ) <= 1 ) || ( l1ref0 [ 0 ] < 0 && l1ref1 [ 0 ] == 0 && FFABS ( l1mv1 [ 0 ] [ 0 ] ) <= 1 && FFABS ( l1mv1 [ 0 ] [ 1 ] ) <= 1 && h -> x264_build > 33U ) ) ) {\n a = b = 0 ;\n if ( ref [ 0 ] > 0 ) a = mv [ 0 ] ;\n if ( ref [ 1 ] > 0 ) b = mv [ 1 ] ;\n }\n else {\n a = mv [ 0 ] ;\n b = mv [ 1 ] ;\n }\n fill_rectangle ( & h -> mv_cache [ 0 ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , a , 4 ) ;\n fill_rectangle ( & h -> mv_cache [ 1 ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , b , 4 ) ;\n }\n else {\n int n = 0 ;\n for ( i8 = 0 ;\n i8 < 4 ;\n i8 ++ ) {\n const int x8 = i8 & 1 ;\n const int y8 = i8 >> 1 ;\n if ( is_b8x8 && ! IS_DIRECT ( h -> sub_mb_type [ i8 ] ) ) continue ;\n h -> sub_mb_type [ i8 ] = sub_mb_type ;\n fill_rectangle ( & h -> mv_cache [ 0 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , mv [ 0 ] , 4 ) ;\n fill_rectangle ( & h -> mv_cache [ 1 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , mv [ 1 ] , 4 ) ;\n fill_rectangle ( & h -> ref_cache [ 0 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , ( uint8_t ) ref [ 0 ] , 1 ) ;\n fill_rectangle ( & h -> ref_cache [ 1 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , ( uint8_t ) ref [ 1 ] , 1 ) ;\n assert ( b8_stride == 2 ) ;\n if ( ! IS_INTRA ( mb_type_col [ 0 ] ) && ! h -> ref_list [ 1 ] [ 0 ] . long_ref && ( l1ref0 [ i8 ] == 0 || ( l1ref0 [ i8 ] < 0 && l1ref1 [ i8 ] == 0 && h -> x264_build > 33U ) ) ) {\n const int16_t ( * l1mv ) [ 2 ] = l1ref0 [ i8 ] == 0 ? l1mv0 : l1mv1 ;\n if ( IS_SUB_8X8 ( sub_mb_type ) ) {\n const int16_t * mv_col = l1mv [ x8 * 3 + y8 * 3 * b4_stride ] ;\n if ( FFABS ( mv_col [ 0 ] ) <= 1 && FFABS ( mv_col [ 1 ] ) <= 1 ) {\n if ( ref [ 0 ] == 0 ) fill_rectangle ( & h -> mv_cache [ 0 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , 0 , 4 ) ;\n if ( ref [ 1 ] == 0 ) fill_rectangle ( & h -> mv_cache [ 1 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , 0 , 4 ) ;\n n += 4 ;\n }\n }\n else {\n int m = 0 ;\n for ( i4 = 0 ;\n i4 < 4 ;\n i4 ++ ) {\n const int16_t * mv_col = l1mv [ x8 * 2 + ( i4 & 1 ) + ( y8 * 2 + ( i4 >> 1 ) ) * b4_stride ] ;\n if ( FFABS ( mv_col [ 0 ] ) <= 1 && FFABS ( mv_col [ 1 ] ) <= 1 ) {\n if ( ref [ 0 ] == 0 ) AV_ZERO32 ( h -> mv_cache [ 0 ] [ scan8 [ i8 * 4 + i4 ] ] ) ;\n if ( ref [ 1 ] == 0 ) AV_ZERO32 ( h -> mv_cache [ 1 ] [ scan8 [ i8 * 4 + i4 ] ] ) ;\n m ++ ;\n }\n }\n if ( ! ( m & 3 ) ) h -> sub_mb_type [ i8 ] += MB_TYPE_16x16 - MB_TYPE_8x8 ;\n n += m ;\n }\n }\n }\n if ( ! is_b8x8 && ! ( n & 15 ) ) * mb_type = ( * mb_type & ~ ( MB_TYPE_8x8 | MB_TYPE_16x8 | MB_TYPE_8x16 | MB_TYPE_P1L0 | MB_TYPE_P1L1 ) ) | MB_TYPE_16x16 | MB_TYPE_DIRECT2 ;\n }\n }"}
{"idx": 13426, "target": 1, "func": "static void _UTF32Open ( UConverter * cnv , UConverterLoadArgs * pArgs , UErrorCode * pErrorCode ) {\n _UTF32Reset ( cnv , UCNV_RESET_BOTH ) ;\n }"}
{"idx": 13427, "target": 0, "func": "static void set_num_723 ( unsigned char * p , uint16_t value ) {\n archive_le16enc ( p , value ) ;\n archive_be16enc ( p + 2 , value ) ;\n }"}
{"idx": 13428, "target": 0, "func": "static void * freelist_extract ( SSL_CTX * ctx , int for_read , int sz ) {\n SSL3_BUF_FREELIST * list ;\n SSL3_BUF_FREELIST_ENTRY * ent = NULL ;\n void * result = NULL ;\n CRYPTO_w_lock ( CRYPTO_LOCK_SSL_CTX ) ;\n list = for_read ? ctx -> rbuf_freelist : ctx -> wbuf_freelist ;\n if ( list != NULL && sz == ( int ) list -> chunklen ) ent = list -> head ;\n if ( ent != NULL ) {\n list -> head = ent -> next ;\n result = ent ;\n if ( -- list -> len == 0 ) list -> chunklen = 0 ;\n }\n CRYPTO_w_unlock ( CRYPTO_LOCK_SSL_CTX ) ;\n if ( ! result ) result = OPENSSL_malloc ( sz ) ;\n return result ;\n }"}
{"idx": 13429, "target": 0, "func": "TEST_F ( ScoredHistoryMatchTest , FilterMatches ) {\n WordStarts terms_to_word_starts_offsets ;\n terms_to_word_starts_offsets . push_back ( 0 ) ;\n WordStarts word_starts ;\n word_starts . push_back ( 0 ) ;\n word_starts . push_back ( 7 ) ;\n word_starts . push_back ( 12 ) ;\n word_starts . push_back ( 16 ) ;\n word_starts . push_back ( 24 ) ;\n word_starts . push_back ( 28 ) ;\n word_starts . push_back ( 37 ) ;\n word_starts . push_back ( 43 ) ;\n TermMatches term_matches ;\n term_matches . push_back ( TermMatch ( 0 , 0 , 1 ) ) ;\n term_matches . push_back ( TermMatch ( 0 , 32 , 1 ) ) ;\n term_matches . push_back ( TermMatch ( 0 , 37 , 1 ) ) ;\n term_matches . push_back ( TermMatch ( 0 , 43 , 1 ) ) ;\n TermMatches filtered_term_matches = ScoredHistoryMatch : : FilterTermMatchesByWordStarts ( term_matches , terms_to_word_starts_offsets , word_starts , 15 , std : : string : : npos ) ;\n ASSERT_EQ ( 3u , filtered_term_matches . size ( ) ) ;\n EXPECT_EQ ( 0u , filtered_term_matches [ 0 ] . offset ) ;\n EXPECT_EQ ( 37u , filtered_term_matches [ 1 ] . offset ) ;\n EXPECT_EQ ( 43u , filtered_term_matches [ 2 ] . offset ) ;\n filtered_term_matches = ScoredHistoryMatch : : FilterTermMatchesByWordStarts ( filtered_term_matches , terms_to_word_starts_offsets , word_starts , 0 , 5 ) ;\n ASSERT_EQ ( 3u , filtered_term_matches . size ( ) ) ;\n EXPECT_EQ ( 0u , filtered_term_matches [ 0 ] . offset ) ;\n EXPECT_EQ ( 37u , filtered_term_matches [ 1 ] . offset ) ;\n EXPECT_EQ ( 43u , filtered_term_matches [ 2 ] . offset ) ;\n term_matches . clear ( ) ;\n term_matches . push_back ( TermMatch ( 0 , 1 , 1 ) ) ;\n term_matches . push_back ( TermMatch ( 0 , 2 , 1 ) ) ;\n term_matches . push_back ( TermMatch ( 0 , 7 , 1 ) ) ;\n term_matches . push_back ( TermMatch ( 0 , 10 , 1 ) ) ;\n term_matches . push_back ( TermMatch ( 0 , 22 , 1 ) ) ;\n term_matches . push_back ( TermMatch ( 0 , 45 , 1 ) ) ;\n filtered_term_matches = ScoredHistoryMatch : : FilterTermMatchesByWordStarts ( term_matches , terms_to_word_starts_offsets , word_starts , 15 , std : : string : : npos ) ;\n ASSERT_EQ ( 4u , filtered_term_matches . size ( ) ) ;\n EXPECT_EQ ( 1u , filtered_term_matches [ 0 ] . offset ) ;\n EXPECT_EQ ( 2u , filtered_term_matches [ 1 ] . offset ) ;\n EXPECT_EQ ( 7u , filtered_term_matches [ 2 ] . offset ) ;\n EXPECT_EQ ( 10u , filtered_term_matches [ 3 ] . offset ) ;\n filtered_term_matches = ScoredHistoryMatch : : FilterTermMatchesByWordStarts ( filtered_term_matches , terms_to_word_starts_offsets , word_starts , 0 , 4 ) ;\n ASSERT_EQ ( 2u , filtered_term_matches . size ( ) ) ;\n EXPECT_EQ ( 7u , filtered_term_matches [ 0 ] . offset ) ;\n EXPECT_EQ ( 10u , filtered_term_matches [ 1 ] . offset ) ;\n term_matches . clear ( ) ;\n term_matches . push_back ( TermMatch ( 0 , 8 , 1 ) ) ;\n term_matches . push_back ( TermMatch ( 0 , 17 , 1 ) ) ;\n term_matches . push_back ( TermMatch ( 0 , 38 , 1 ) ) ;\n filtered_term_matches = ScoredHistoryMatch : : FilterTermMatchesByWordStarts ( term_matches , terms_to_word_starts_offsets , word_starts , 15 , std : : string : : npos ) ;\n ASSERT_EQ ( 1u , filtered_term_matches . size ( ) ) ;\n EXPECT_EQ ( 8u , filtered_term_matches [ 0 ] . offset ) ;\n term_matches . clear ( ) ;\n term_matches . push_back ( TermMatch ( 0 , 16 , 1 ) ) ;\n filtered_term_matches = ScoredHistoryMatch : : FilterTermMatchesByWordStarts ( term_matches , terms_to_word_starts_offsets , word_starts , 15 , std : : string : : npos ) ;\n ASSERT_EQ ( 1u , filtered_term_matches . size ( ) ) ;\n EXPECT_EQ ( 16u , filtered_term_matches [ 0 ] . offset ) ;\n term_matches . clear ( ) ;\n term_matches . push_back ( TermMatch ( 0 , 19 , 1 ) ) ;\n term_matches . push_back ( TermMatch ( 0 , 28 , 1 ) ) ;\n filtered_term_matches = ScoredHistoryMatch : : FilterTermMatchesByWordStarts ( term_matches , terms_to_word_starts_offsets , word_starts , 15 , std : : string : : npos ) ;\n ASSERT_EQ ( 1u , filtered_term_matches . size ( ) ) ;\n EXPECT_EQ ( 28u , filtered_term_matches [ 0 ] . offset ) ;\n terms_to_word_starts_offsets [ 0 ] = 1 ;\n term_matches . clear ( ) ;\n term_matches . push_back ( TermMatch ( 0 , 27 , 1 ) ) ;\n filtered_term_matches = ScoredHistoryMatch : : FilterTermMatchesByWordStarts ( term_matches , terms_to_word_starts_offsets , word_starts , 15 , std : : string : : npos ) ;\n ASSERT_EQ ( 1u , filtered_term_matches . size ( ) ) ;\n EXPECT_EQ ( 27u , filtered_term_matches [ 0 ] . offset ) ;\n }"}
{"idx": 13430, "target": 0, "func": "static void test_view_insert_fields ( ) {\n MYSQL_STMT * stmt ;\n char parm [ 11 ] [ 1000 ] ;\n ulong l [ 11 ] ;\n int rc , i ;\n MYSQL_BIND my_bind [ 11 ] ;\n const char * query = \"INSERT INTO `v1` ( `K1C4` ,`K2C4` ,`K3C4` ,`K4N4` ,`F1C4` ,`F2I4` ,`F3N5` ,`F7F8` ,`F6N4` ,`F5C8` ,`F9D8` ) VALUES( ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )\" ;\n myheader ( \"test_view_insert_fields\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS t1, v1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP VIEW IF EXISTS t1, v1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE t1 (K1C4 varchar(4) NOT NULL,\" \"K2C4 varchar(4) NOT NULL, K3C4 varchar(4) NOT NULL,\" \"K4N4 varchar(4) NOT NULL default '0000',\" \"F1C4 varchar(4) NOT NULL, F2I4 int(11) NOT NULL,\" \"F3N5 varchar(5) NOT NULL default '00000',\" \"F4I4 int(11) NOT NULL default '0', F5C8 varchar(8) NOT NULL,\" \"F6N4 varchar(4) NOT NULL default '0000',\" \"F7F8 double NOT NULL default '0',\" \"F8F8 double NOT NULL default '0',\" \"F9D8 decimal(8,2) NOT NULL default '0.00',\" \"PRIMARY KEY (K1C4,K2C4,K3C4,K4N4)) \" \"CHARSET=latin1 COLLATE latin1_bin\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE VIEW v1 AS select sql_no_cache \" \" K1C4 AS K1C4, K2C4 AS K2C4, K3C4 AS K3C4, K4N4 AS K4N4, \" \" F1C4 AS F1C4, F2I4 AS F2I4, F3N5 AS F3N5,\" \" F7F8 AS F7F8, F6N4 AS F6N4, F5C8 AS F5C8, F9D8 AS F9D8\" \" from t1 T0001\" ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n for ( i = 0 ;\n i < 11 ;\n i ++ ) {\n l [ i ] = 20 ;\n my_bind [ i ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ i ] . is_null = 0 ;\n my_bind [ i ] . buffer = ( char * ) & parm [ i ] ;\n strmov ( parm [ i ] , \"1\" ) ;\n my_bind [ i ] . buffer_length = 2 ;\n my_bind [ i ] . length = & l [ i ] ;\n }\n stmt = mysql_stmt_init ( mysql ) ;\n rc = mysql_stmt_prepare ( stmt , query , strlen ( query ) ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n mysql_stmt_close ( stmt ) ;\n query = \"select * from t1\" ;\n stmt = mysql_stmt_init ( mysql ) ;\n rc = mysql_stmt_prepare ( stmt , query , strlen ( query ) ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( 1 == rc ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"DROP VIEW v1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP TABLE t1\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 13431, "target": 0, "func": "int compare_key_tok_id ( const void * a1 , const void * a2 ) {\n const struct key_tok * p1 = a1 ;\n const struct key_tok * p2 = a2 ;\n if ( p1 -> token == p2 -> token ) return 0 ;\n if ( p1 -> token < p2 -> token ) return - 1 ;\n else return 1 ;\n }"}
{"idx": 13432, "target": 0, "func": "static inline int sub_left_prediction ( HYuvContext * s , uint8_t * dst , const uint8_t * src , int w , int left ) {\n int i ;\n if ( w < 32 ) {\n for ( i = 0 ;\n i < w ;\n i ++ ) {\n const int temp = src [ i ] ;\n dst [ i ] = temp - left ;\n left = temp ;\n }\n return left ;\n }\n else {\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n const int temp = src [ i ] ;\n dst [ i ] = temp - left ;\n left = temp ;\n }\n s -> dsp . diff_bytes ( dst + 16 , src + 16 , src + 15 , w - 16 ) ;\n return src [ w - 1 ] ;\n }\n }"}
{"idx": 13433, "target": 0, "func": "int dissect_h225_ConferenceIdentifier ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_h225_GloballyUniqueID ( tvb , offset , actx , tree , hf_index ) ;\n return offset ;\n }"}
{"idx": 13434, "target": 0, "func": "KEYDB_HANDLE keydb_new ( void ) {\n KEYDB_HANDLE hd ;\n int i , j ;\n if ( DBG_CLOCK ) log_clock ( \"keydb_new\" ) ;\n hd = xmalloc_clear ( sizeof * hd ) ;\n hd -> found = - 1 ;\n assert ( used_resources <= MAX_KEYDB_RESOURCES ) ;\n for ( i = j = 0 ;\n i < used_resources ;\n i ++ ) {\n switch ( all_resources [ i ] . type ) {\n case KEYDB_RESOURCE_TYPE_NONE : break ;\n case KEYDB_RESOURCE_TYPE_KEYRING : hd -> active [ j ] . type = all_resources [ i ] . type ;\n hd -> active [ j ] . token = all_resources [ i ] . token ;\n hd -> active [ j ] . u . kr = keyring_new ( all_resources [ i ] . token ) ;\n if ( ! hd -> active [ j ] . u . kr ) {\n xfree ( hd ) ;\n return NULL ;\n }\n j ++ ;\n break ;\n case KEYDB_RESOURCE_TYPE_KEYBOX : hd -> active [ j ] . type = all_resources [ i ] . type ;\n hd -> active [ j ] . token = all_resources [ i ] . token ;\n hd -> active [ j ] . u . kb = keybox_new_openpgp ( all_resources [ i ] . token , 0 ) ;\n if ( ! hd -> active [ j ] . u . kb ) {\n xfree ( hd ) ;\n return NULL ;\n }\n j ++ ;\n break ;\n }\n }\n hd -> used = j ;\n active_handles ++ ;\n return hd ;\n }"}
{"idx": 13435, "target": 0, "func": "static uint32_t ffmpeg_CodecTag ( vlc_fourcc_t fcc ) {\n uint8_t * p = ( uint8_t * ) & fcc ;\n return p [ 0 ] | ( p [ 1 ] << 8 ) | ( p [ 2 ] << 16 ) | ( p [ 3 ] << 24 ) ;\n }"}
{"idx": 13436, "target": 0, "func": "static int ts_lua_http_enable_redirect ( lua_State * L ) {\n int value ;\n ts_lua_http_ctx * http_ctx ;\n GET_HTTP_CONTEXT ( http_ctx , L ) ;\n value = luaL_checkinteger ( L , 1 ) ;\n TSDebug ( TS_LUA_DEBUG_TAG , \"enable redirect\" ) ;\n TSHttpTxnFollowRedirect ( http_ctx -> txnp , value ) ;\n return 0 ;\n }"}
{"idx": 13437, "target": 0, "func": "static void filter_channel ( MLPDecodeContext * m , unsigned int substr , unsigned int channel ) {\n SubStream * s = & m -> substream [ substr ] ;\n const int32_t * fircoeff = s -> channel_params [ channel ] . coeff [ FIR ] ;\n int32_t state_buffer [ NUM_FILTERS ] [ MAX_BLOCKSIZE + MAX_FIR_ORDER ] ;\n int32_t * firbuf = state_buffer [ FIR ] + MAX_BLOCKSIZE ;\n int32_t * iirbuf = state_buffer [ IIR ] + MAX_BLOCKSIZE ;\n FilterParams * fir = & s -> channel_params [ channel ] . filter_params [ FIR ] ;\n FilterParams * iir = & s -> channel_params [ channel ] . filter_params [ IIR ] ;\n unsigned int filter_shift = fir -> shift ;\n int32_t mask = MSB_MASK ( s -> quant_step_size [ channel ] ) ;\n memcpy ( firbuf , fir -> state , MAX_FIR_ORDER * sizeof ( int32_t ) ) ;\n memcpy ( iirbuf , iir -> state , MAX_IIR_ORDER * sizeof ( int32_t ) ) ;\n m -> dsp . mlp_filter_channel ( firbuf , fircoeff , fir -> order , iir -> order , filter_shift , mask , s -> blocksize , & m -> sample_buffer [ s -> blockpos ] [ channel ] ) ;\n memcpy ( fir -> state , firbuf - s -> blocksize , MAX_FIR_ORDER * sizeof ( int32_t ) ) ;\n memcpy ( iir -> state , iirbuf - s -> blocksize , MAX_IIR_ORDER * sizeof ( int32_t ) ) ;\n }"}
{"idx": 13438, "target": 0, "func": "void fe_ircnet_init ( void ) {\n command_bind ( \"ircnet\" , NULL , ( SIGNAL_FUNC ) cmd_network ) ;\n command_bind ( \"network\" , NULL , ( SIGNAL_FUNC ) cmd_network ) ;\n command_bind ( \"network list\" , NULL , ( SIGNAL_FUNC ) cmd_network_list ) ;\n command_bind ( \"network add\" , NULL , ( SIGNAL_FUNC ) cmd_network_add ) ;\n command_bind ( \"network modify\" , NULL , ( SIGNAL_FUNC ) cmd_network_modify ) ;\n command_bind ( \"network remove\" , NULL , ( SIGNAL_FUNC ) cmd_network_remove ) ;\n command_set_options ( \"network add\" , \"-kicks -msgs -modes -whois -cmdspeed \" \"-cmdmax -nick -alternate_nick -user -realname -host -autosendcmd -querychans -usermode -sasl_mechanism -sasl_username -sasl_password\" ) ;\n command_set_options ( \"network modify\" , \"-kicks -msgs -modes -whois -cmdspeed \" \"-cmdmax -nick -alternate_nick -user -realname -host -autosendcmd -querychans -usermode -sasl_mechanism -sasl_username -sasl_password\" ) ;\n }"}
{"idx": 13439, "target": 0, "func": "static int count_lines ( const char * fn ) {\n FILE * f ;\n char * line = NULL ;\n size_t sz = 0 ;\n int n = 0 ;\n f = fopen_cloexec ( fn , \"r\" ) ;\n if ( ! f ) return - 1 ;\n while ( getline ( & line , & sz , f ) != - 1 ) {\n n ++ ;\n }\n free ( line ) ;\n fclose ( f ) ;\n return n ;\n }"}
{"idx": 13440, "target": 0, "func": "static unsigned int uint_to_str ( ngx_uint_t i , u_char * str , ngx_uint_t size ) {\n unsigned int len = ngx_snprintf ( str , size - 1 , \"%ui\" , i ) - str ;\n str [ len ] = '\\0' ;\n return len ;\n }"}
{"idx": 13441, "target": 0, "func": "static int encode_slices ( VC2EncContext * s ) {\n uint8_t * buf ;\n int slice_x , slice_y , skip = 0 ;\n SliceArgs * enc_args = s -> slice_args ;\n avpriv_align_put_bits ( & s -> pb ) ;\n flush_put_bits ( & s -> pb ) ;\n buf = put_bits_ptr ( & s -> pb ) ;\n for ( slice_y = 0 ;\n slice_y < s -> num_y ;\n slice_y ++ ) {\n for ( slice_x = 0 ;\n slice_x < s -> num_x ;\n slice_x ++ ) {\n SliceArgs * args = & enc_args [ s -> num_x * slice_y + slice_x ] ;\n init_put_bits ( & args -> pb , buf + skip , args -> bytes + s -> prefix_bytes ) ;\n skip += args -> bytes ;\n }\n }\n s -> avctx -> execute ( s -> avctx , encode_hq_slice , enc_args , NULL , s -> num_x * s -> num_y , sizeof ( SliceArgs ) ) ;\n skip_put_bytes ( & s -> pb , skip ) ;\n return 0 ;\n }"}
{"idx": 13442, "target": 0, "func": "static gint dissect_amf3_value_type ( tvbuff_t * tvb , gint offset , proto_tree * tree , proto_item * parent_ti ) {\n guint8 iObjType ;\n proto_item * ti ;\n proto_tree * val_tree ;\n gint iValueOffset = offset ;\n guint iValueLength ;\n guint32 iIntegerValue ;\n double iDoubleValue ;\n guint iStringLength ;\n gchar * iStringValue ;\n guint iArrayLength ;\n proto_item * subval_ti ;\n proto_tree * subval_tree ;\n guint i ;\n gboolean iTypeIsDynamic ;\n guint iTraitCount ;\n proto_item * traits_ti ;\n proto_tree * traits_tree ;\n proto_tree * name_tree ;\n proto_tree * member_tree ;\n guint8 * iByteArrayValue ;\n iObjType = tvb_get_guint8 ( tvb , offset ) ;\n if ( parent_ti != NULL ) proto_item_append_text ( parent_ti , \" %s\" , val_to_str_const ( iObjType , amf3_type_vals , \"Unknown\" ) ) ;\n switch ( iObjType ) {\n case AMF3_ARRAY : ti = proto_tree_add_item ( tree , hf_amf_array , tvb , offset , - 1 , ENC_NA ) ;\n val_tree = proto_item_add_subtree ( ti , ett_amf_value ) ;\n break ;\n case AMF3_OBJECT : ti = proto_tree_add_item ( tree , hf_amf_object , tvb , offset , - 1 , ENC_NA ) ;\n val_tree = proto_item_add_subtree ( ti , ett_amf_value ) ;\n break ;\n default : val_tree = proto_tree_add_subtree ( tree , tvb , offset , - 1 , ett_amf_value , & ti , val_to_str_const ( iObjType , amf3_type_vals , \"Unknown\" ) ) ;\n break ;\n }\n proto_tree_add_uint ( val_tree , hf_amf_amf3_type , tvb , iValueOffset , 1 , iObjType ) ;\n iValueOffset ++ ;\n switch ( iObjType ) {\n case AMF3_UNDEFINED : case AMF3_NULL : break ;\n case AMF3_FALSE : proto_tree_add_boolean ( val_tree , hf_amf_boolean , tvb , 0 , 0 , FALSE ) ;\n proto_item_append_text ( ti , \" false\" ) ;\n break ;\n case AMF3_TRUE : proto_tree_add_boolean ( val_tree , hf_amf_boolean , tvb , 0 , 0 , TRUE ) ;\n proto_item_append_text ( ti , \" true\" ) ;\n break ;\n case AMF3_INTEGER : iIntegerValue = amf_get_u29 ( tvb , iValueOffset , & iValueLength ) ;\n proto_tree_add_uint ( val_tree , hf_amf_integer , tvb , iValueOffset , iValueLength , iIntegerValue ) ;\n proto_item_append_text ( ti , \" %u\" , iIntegerValue ) ;\n if ( parent_ti != NULL ) proto_item_append_text ( parent_ti , \" %u\" , iIntegerValue ) ;\n iValueOffset += iValueLength ;\n break ;\n case AMF3_DOUBLE : iDoubleValue = tvb_get_ntohieee_double ( tvb , iValueOffset ) ;\n proto_tree_add_double ( val_tree , hf_amf_number , tvb , iValueOffset , 8 , iDoubleValue ) ;\n iValueOffset += 8 ;\n proto_item_append_text ( ti , \" %.\" G_STRINGIFY ( DBL_DIG ) \"g\" , iDoubleValue ) ;\n if ( parent_ti != NULL ) proto_item_append_text ( parent_ti , \" %.\" G_STRINGIFY ( DBL_DIG ) \"g\" , iDoubleValue ) ;\n break ;\n case AMF3_STRING : iIntegerValue = amf_get_u29 ( tvb , iValueOffset , & iValueLength ) ;\n if ( iIntegerValue & 0x00000001 ) {\n iStringLength = iIntegerValue >> 1 ;\n proto_tree_add_uint ( val_tree , hf_amf_stringlength , tvb , iValueOffset , iValueLength , iStringLength ) ;\n iValueOffset += iValueLength ;\n iStringValue = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , iValueOffset , iStringLength , ENC_UTF_8 | ENC_NA ) ;\n if ( iStringLength != 0 ) proto_tree_add_string ( val_tree , hf_amf_string , tvb , iValueOffset , iStringLength , iStringValue ) ;\n iValueOffset += iStringLength ;\n proto_item_append_text ( ti , \" '%s'\" , iStringValue ) ;\n if ( parent_ti != NULL ) proto_item_append_text ( parent_ti , \" '%s'\" , iStringValue ) ;\n }\n else {\n proto_tree_add_uint ( val_tree , hf_amf_string_reference , tvb , iValueOffset , iValueLength , iIntegerValue >> 1 ) ;\n iValueOffset += iValueLength ;\n proto_item_append_text ( ti , \" reference %u\" , iIntegerValue >> 1 ) ;\n if ( parent_ti != NULL ) proto_item_append_text ( parent_ti , \" reference %u\" , iIntegerValue >> 1 ) ;\n }\n break ;\n case AMF3_DATE : iIntegerValue = amf_get_u29 ( tvb , iValueOffset , & iValueLength ) ;\n if ( iIntegerValue & 0x00000001 ) {\n nstime_t t ;\n iValueOffset += iValueLength ;\n iDoubleValue = tvb_get_ntohieee_double ( tvb , iValueOffset ) ;\n t . secs = ( time_t ) ( iDoubleValue / 1000 ) ;\n t . nsecs = ( int ) ( ( iDoubleValue - 1000 * ( double ) t . secs ) * 1000000 ) ;\n proto_tree_add_time ( val_tree , hf_amf_date , tvb , iValueOffset , 8 , & t ) ;\n iValueOffset += 8 ;\n proto_item_append_text ( ti , \"%s\" , abs_time_to_str ( wmem_packet_scope ( ) , & t , ABSOLUTE_TIME_LOCAL , TRUE ) ) ;\n if ( parent_ti != NULL ) proto_item_append_text ( parent_ti , \"%s\" , abs_time_to_str ( wmem_packet_scope ( ) , & t , ABSOLUTE_TIME_LOCAL , TRUE ) ) ;\n }\n else {\n proto_tree_add_uint ( val_tree , hf_amf_object_reference , tvb , iValueOffset , iValueLength , iIntegerValue >> 1 ) ;\n iValueOffset += iValueLength ;\n proto_item_append_text ( ti , \" object reference %u\" , iIntegerValue >> 1 ) ;\n if ( parent_ti != NULL ) proto_item_append_text ( parent_ti , \" object reference %u\" , iIntegerValue >> 1 ) ;\n }\n break ;\n case AMF3_ARRAY : iIntegerValue = amf_get_u29 ( tvb , iValueOffset , & iValueLength ) ;\n if ( iIntegerValue & 0x00000001 ) {\n iArrayLength = iIntegerValue >> 1 ;\n proto_tree_add_uint ( val_tree , hf_amf_arraydenselength , tvb , iValueOffset , iValueLength , iArrayLength ) ;\n iValueOffset += iValueLength ;\n for ( ;\n ;\n ) {\n iIntegerValue = amf_get_u29 ( tvb , iValueOffset , & iValueLength ) ;\n if ( iIntegerValue & 0x00000001 ) {\n iStringLength = iIntegerValue >> 1 ;\n if ( iStringLength == 0 ) {\n proto_tree_add_item ( val_tree , hf_amf_end_of_associative_part , tvb , iValueOffset , iValueLength , ENC_NA ) ;\n iValueOffset += iValueLength ;\n break ;\n }\n iStringValue = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , iValueOffset + iValueLength , iStringLength , ENC_UTF_8 | ENC_NA ) ;\n subval_tree = proto_tree_add_subtree ( val_tree , tvb , iValueOffset , iStringLength , ett_amf_array_element , & subval_ti , iStringValue ) ;\n proto_tree_add_uint ( subval_tree , hf_amf_stringlength , tvb , iValueOffset , iValueLength , iStringLength ) ;\n iValueOffset += iValueLength ;\n proto_tree_add_string ( subval_tree , hf_amf_string , tvb , iValueOffset , iStringLength , iStringValue ) ;\n }\n else {\n subval_tree = proto_tree_add_subtree_format ( val_tree , tvb , iValueOffset , iValueLength , ett_amf_array_element , & subval_ti , \"Reference %u:\" , iIntegerValue >> 1 ) ;\n proto_tree_add_uint ( subval_tree , hf_amf_string_reference , tvb , iValueOffset , iValueLength , iIntegerValue >> 1 ) ;\n }\n iObjType = tvb_get_guint8 ( tvb , offset ) ;\n proto_item_append_text ( subval_ti , \"%s\" , val_to_str_const ( iObjType , amf3_type_vals , \"Unknown\" ) ) ;\n iValueOffset = dissect_amf3_value_type ( tvb , iValueOffset , subval_tree , subval_ti ) ;\n }\n for ( i = 0 ;\n i < iArrayLength ;\n i ++ ) iValueOffset = dissect_amf3_value_type ( tvb , iValueOffset , val_tree , NULL ) ;\n proto_item_set_end ( ti , tvb , iValueOffset ) ;\n }\n else {\n proto_tree_add_uint ( val_tree , hf_amf_object_reference , tvb , iValueOffset , iValueLength , iIntegerValue >> 1 ) ;\n proto_item_append_text ( ti , \" reference %u\" , iIntegerValue >> 1 ) ;\n if ( parent_ti != NULL ) proto_item_append_text ( parent_ti , \" reference %u\" , iIntegerValue >> 1 ) ;\n }\n break ;\n case AMF3_OBJECT : iIntegerValue = amf_get_u29 ( tvb , iValueOffset , & iValueLength ) ;\n if ( iIntegerValue & 0x00000001 ) {\n if ( iIntegerValue & 0x00000002 ) {\n if ( iIntegerValue & 0x00000004 ) {\n iValueOffset += iValueLength ;\n }\n else {\n iTypeIsDynamic = ( iIntegerValue & 0x00000008 ) ? TRUE : FALSE ;\n iTraitCount = iIntegerValue >> 4 ;\n proto_tree_add_uint ( val_tree , hf_amf_traitcount , tvb , iValueOffset , iValueLength , iTraitCount ) ;\n iValueOffset += iValueLength ;\n iIntegerValue = amf_get_u29 ( tvb , iValueOffset , & iValueLength ) ;\n if ( iIntegerValue & 0x00000001 ) {\n iStringLength = iIntegerValue >> 1 ;\n iStringValue = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , iValueOffset + iValueLength , iStringLength , ENC_UTF_8 | ENC_NA ) ;\n traits_tree = proto_tree_add_subtree_format ( val_tree , tvb , iValueOffset , - 1 , ett_amf_traits , & traits_ti , \"Traits for class %s (%u member names)\" , iStringValue , iTraitCount ) ;\n name_tree = proto_tree_add_subtree_format ( traits_tree , tvb , iValueOffset , iValueLength + iStringLength , ett_amf_string , NULL , \"Class name: %s\" , iStringValue ) ;\n proto_tree_add_uint ( name_tree , hf_amf_classnamelength , tvb , iValueOffset , iValueLength , iStringLength ) ;\n iValueOffset += iValueLength ;\n proto_tree_add_string ( name_tree , hf_amf_classname , tvb , iValueOffset , iStringLength , iStringValue ) ;\n iValueOffset += iStringLength ;\n }\n else {\n traits_tree = proto_tree_add_subtree_format ( val_tree , tvb , iValueOffset , iValueLength , ett_amf_traits , & traits_ti , \"Traits for class (reference %u for name)\" , iIntegerValue >> 1 ) ;\n proto_tree_add_uint ( traits_tree , hf_amf_string_reference , tvb , iValueOffset , iValueLength , iIntegerValue >> 1 ) ;\n iValueOffset += iValueLength ;\n }\n for ( i = 0 ;\n i < iTraitCount ;\n i ++ ) {\n iIntegerValue = amf_get_u29 ( tvb , iValueOffset , & iValueLength ) ;\n if ( iIntegerValue & 0x00000001 ) {\n iStringLength = iIntegerValue >> 1 ;\n iStringValue = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , iValueOffset + iValueLength , iStringLength , ENC_UTF_8 | ENC_NA ) ;\n member_tree = proto_tree_add_subtree_format ( traits_tree , tvb , iValueOffset , iValueLength + iStringLength , ett_amf_trait_member , NULL , \"Member '%s'\" , iStringValue ) ;\n proto_tree_add_uint ( member_tree , hf_amf_membernamelength , tvb , iValueOffset , iValueLength , iStringLength ) ;\n iValueOffset += iValueLength ;\n proto_tree_add_string ( member_tree , hf_amf_membername , tvb , iValueOffset , iStringLength , iStringValue ) ;\n iValueOffset += iStringLength ;\n }\n else {\n proto_tree_add_uint ( traits_tree , hf_amf_string_reference , tvb , iValueOffset , iValueLength , iIntegerValue >> 1 ) ;\n iValueOffset += iValueLength ;\n }\n }\n for ( i = 0 ;\n i < iTraitCount ;\n i ++ ) iValueOffset = dissect_amf3_value_type ( tvb , iValueOffset , traits_tree , NULL ) ;\n if ( iTypeIsDynamic ) {\n for ( ;\n ;\n ) {\n iIntegerValue = amf_get_u29 ( tvb , iValueOffset , & iValueLength ) ;\n if ( iIntegerValue & 0x00000001 ) {\n iStringLength = iIntegerValue >> 1 ;\n if ( iStringLength == 0 ) {\n proto_tree_add_item ( traits_tree , hf_amf_end_of_dynamic_members , tvb , iValueOffset , iValueLength , ENC_NA ) ;\n iValueOffset += iValueLength ;\n break ;\n }\n iStringValue = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , iValueOffset + iValueLength , iStringLength , ENC_UTF_8 | ENC_NA ) ;\n subval_tree = proto_tree_add_subtree_format ( traits_tree , tvb , iValueOffset , - 1 , ett_amf_array_element , & subval_ti , \"%s:\" , iStringValue ) ;\n name_tree = proto_tree_add_subtree_format ( subval_tree , tvb , iValueOffset , iValueLength + iStringLength , ett_amf_string , NULL , \"Member name: %s\" , iStringValue ) ;\n proto_tree_add_uint ( name_tree , hf_amf_membernamelength , tvb , iValueOffset , iValueLength , iStringLength ) ;\n iValueOffset += iValueLength ;\n proto_tree_add_string ( name_tree , hf_amf_membername , tvb , iValueOffset , iStringLength , iStringValue ) ;\n iValueOffset += iStringLength ;\n }\n else {\n subval_tree = proto_tree_add_subtree_format ( traits_tree , tvb , iValueOffset , iValueLength , ett_amf_array_element , & subval_ti , \"Reference %u:\" , iIntegerValue >> 1 ) ;\n proto_tree_add_uint ( subval_tree , hf_amf_string_reference , tvb , iValueOffset , iValueLength , iIntegerValue >> 1 ) ;\n iValueOffset += iValueLength ;\n }\n iValueOffset = dissect_amf3_value_type ( tvb , iValueOffset , subval_tree , subval_ti ) ;\n proto_item_set_end ( subval_ti , tvb , iValueOffset ) ;\n }\n }\n proto_item_set_end ( traits_ti , tvb , iValueOffset ) ;\n }\n }\n else {\n proto_tree_add_uint ( val_tree , hf_amf_trait_reference , tvb , iValueOffset , iValueLength , iIntegerValue >> 2 ) ;\n iValueOffset += iValueLength ;\n }\n }\n else {\n proto_tree_add_uint ( val_tree , hf_amf_object_reference , tvb , iValueOffset , iValueLength , iIntegerValue >> 1 ) ;\n proto_item_append_text ( ti , \" reference %u\" , iIntegerValue >> 1 ) ;\n if ( parent_ti != NULL ) proto_item_append_text ( parent_ti , \" reference %u\" , iIntegerValue >> 1 ) ;\n }\n break ;\n case AMF3_XML : iIntegerValue = amf_get_u29 ( tvb , iValueOffset , & iValueLength ) ;\n if ( iIntegerValue & 0x00000001 ) {\n iStringLength = iIntegerValue >> 1 ;\n proto_tree_add_uint ( val_tree , hf_amf_xmllength , tvb , iValueOffset , iValueLength , iStringLength ) ;\n iValueOffset += iValueLength ;\n proto_tree_add_item ( val_tree , hf_amf_xml , tvb , iValueOffset , iStringLength , ENC_UTF_8 | ENC_NA ) ;\n }\n else {\n proto_tree_add_uint ( val_tree , hf_amf_object_reference , tvb , iValueOffset , iValueLength , iIntegerValue >> 1 ) ;\n proto_item_append_text ( ti , \" reference %u\" , iIntegerValue >> 1 ) ;\n if ( parent_ti != NULL ) proto_item_append_text ( parent_ti , \" reference %u\" , iIntegerValue >> 1 ) ;\n }\n break ;\n case AMF3_BYTEARRAY : iIntegerValue = amf_get_u29 ( tvb , iValueOffset , & iValueLength ) ;\n if ( iIntegerValue & 0x00000001 ) {\n iArrayLength = iIntegerValue >> 1 ;\n proto_tree_add_uint ( val_tree , hf_amf_bytearraylength , tvb , iValueOffset , iValueLength , iArrayLength ) ;\n iValueOffset += iValueLength ;\n iByteArrayValue = ( guint8 * ) tvb_memdup ( wmem_packet_scope ( ) , tvb , iValueOffset , iArrayLength ) ;\n proto_tree_add_bytes ( val_tree , hf_amf_bytearray , tvb , iValueOffset , iArrayLength , iByteArrayValue ) ;\n proto_item_append_text ( ti , \" %s\" , bytes_to_str ( wmem_packet_scope ( ) , iByteArrayValue , iArrayLength ) ) ;\n if ( parent_ti != NULL ) proto_item_append_text ( parent_ti , \" %s\" , bytes_to_str ( wmem_packet_scope ( ) , iByteArrayValue , iArrayLength ) ) ;\n }\n else {\n proto_tree_add_uint ( val_tree , hf_amf_object_reference , tvb , iValueOffset , iValueLength , iIntegerValue >> 1 ) ;\n proto_item_append_text ( ti , \" reference %u\" , iIntegerValue >> 1 ) ;\n if ( parent_ti != NULL ) proto_item_append_text ( parent_ti , \" reference %u\" , iIntegerValue >> 1 ) ;\n }\n break ;\n default : iValueOffset = tvb_reported_length ( tvb ) ;\n break ;\n }\n proto_item_set_end ( ti , tvb , iValueOffset ) ;\n return iValueOffset ;\n }"}
{"idx": 13443, "target": 0, "func": "static int dissect_h225_OCTET_STRING_SIZE_1 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 1 , 1 , FALSE , NULL ) ;\n return offset ;\n }"}
{"idx": 13444, "target": 1, "func": "SPL_METHOD ( SplFileInfo , __construct ) {\n spl_filesystem_object * intern ;\n char * path ;\n int len ;\n zend_error_handling error_handling ;\n zend_replace_error_handling ( EH_THROW , spl_ce_RuntimeException , & error_handling TSRMLS_CC ) ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"s\" , & path , & len ) == FAILURE ) {\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n return ;\n }\n intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n spl_filesystem_info_set_filename ( intern , path , len , 1 TSRMLS_CC ) ;\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n }"}
{"idx": 13445, "target": 0, "func": "int ztoken ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n switch ( r_type ( op ) ) {\n default : return_op_typecheck ( op ) ;\n case t_file : {\n stream * s ;\n scanner_state state ;\n check_read_file ( i_ctx_p , s , op ) ;\n check_ostack ( 1 ) ;\n gs_scanner_init ( & state , op ) ;\n return token_continue ( i_ctx_p , & state , true ) ;\n }\n case t_string : {\n ref token ;\n int orig_ostack_depth = ref_stack_count ( & o_stack ) - 1 ;\n int code ;\n if ( ! r_has_attr ( op , a_read ) ) return_error ( gs_error_invalidaccess ) ;\n code = gs_scan_string_token ( i_ctx_p , op , & token ) ;\n switch ( code ) {\n case scan_EOF : make_false ( op ) ;\n return 0 ;\n default : if ( code < 0 ) {\n if ( orig_ostack_depth < ref_stack_count ( & o_stack ) ) pop ( ref_stack_count ( & o_stack ) - orig_ostack_depth ) ;\n return code ;\n }\n }\n push ( 2 ) ;\n op [ - 1 ] = token ;\n make_true ( op ) ;\n return 0 ;\n }\n }\n }"}
{"idx": 13446, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( MediaStreamPermissionTest , TestDismissingRequest ) {\n content : : WebContents * tab_contents = LoadTestPageInTab ( ) ;\n GetUserMediaAndDismiss ( tab_contents ) ;\n }"}
{"idx": 13447, "target": 0, "func": "static void * qemu_kvm_cpu_thread_fn ( void * arg ) {\n CPUState * cpu = arg ;\n int r ;\n qemu_mutex_lock ( & qemu_global_mutex ) ;\n qemu_thread_get_self ( cpu -> thread ) ;\n cpu -> thread_id = qemu_get_thread_id ( ) ;\n current_cpu = cpu ;\n r = kvm_init_vcpu ( cpu ) ;\n if ( r < 0 ) {\n fprintf ( stderr , \"kvm_init_vcpu failed: %s\\n\" , strerror ( - r ) ) ;\n exit ( 1 ) ;\n }\n qemu_kvm_init_cpu_signals ( cpu ) ;\n cpu -> created = true ;\n qemu_cond_signal ( & qemu_cpu_cond ) ;\n while ( 1 ) {\n if ( cpu_can_run ( cpu ) ) {\n r = kvm_cpu_exec ( cpu ) ;\n if ( r == EXCP_DEBUG ) {\n cpu_handle_guest_debug ( cpu ) ;\n }\n }\n qemu_kvm_wait_io_event ( cpu ) ;\n }\n return NULL ;\n }"}
{"idx": 13448, "target": 0, "func": "static struct kvm_cpuid2 * try_get_cpuid ( KVMState * s , int max ) {\n struct kvm_cpuid2 * cpuid ;\n int r , size ;\n size = sizeof ( * cpuid ) + max * sizeof ( * cpuid -> entries ) ;\n cpuid = g_malloc0 ( size ) ;\n cpuid -> nent = max ;\n r = kvm_ioctl ( s , KVM_GET_SUPPORTED_CPUID , cpuid ) ;\n if ( r == 0 && cpuid -> nent >= max ) {\n r = - E2BIG ;\n }\n if ( r < 0 ) {\n if ( r == - E2BIG ) {\n g_free ( cpuid ) ;\n return NULL ;\n }\n else {\n fprintf ( stderr , \"KVM_GET_SUPPORTED_CPUID failed: %s\\n\" , strerror ( - r ) ) ;\n exit ( 1 ) ;\n }\n }\n return cpuid ;\n }"}
{"idx": 13449, "target": 0, "func": "bool fn_format_relative_to_data_home ( char * to , const char * name , const char * dir , const char * extension ) {\n char tmp_path [ FN_REFLEN ] ;\n if ( ! test_if_hard_path ( dir ) ) {\n strxnmov ( tmp_path , sizeof ( tmp_path ) - 1 , mysql_real_data_home , dir , NullS ) ;\n dir = tmp_path ;\n }\n return ! fn_format ( to , name , dir , extension , MY_APPEND_EXT | MY_UNPACK_FILENAME | MY_SAFE_PATH ) ;\n }"}
{"idx": 13450, "target": 0, "func": "static void decompose_matrix ( const gs_font_type42 * pfont , const gs_matrix * char_tm , const gs_log2_scale_point * log2_scale , bool design_grid , gs_point * char_size , gs_point * subpix_origin , gs_matrix * post_transform , bool * dg ) {\n int scale_x = 1 << log2_scale -> x ;\n int scale_y = 1 << log2_scale -> y ;\n bool atp = gs_currentaligntopixels ( pfont -> dir ) ;\n bool design_grid1 ;\n char_size -> x = hypot ( char_tm -> xx , char_tm -> xy ) ;\n char_size -> y = hypot ( char_tm -> yx , char_tm -> yy ) ;\n if ( char_size -> x <= 2 && char_size -> y <= 2 ) {\n design_grid1 = true ;\n }\n else design_grid1 = design_grid || ! ( gs_currentgridfittt ( pfont -> dir ) & 1 ) ;\n * dg = design_grid1 ;\n subpix_origin -> x = ( atp ? 0 : reminder ( char_tm -> tx , scale_x ) / scale_x ) ;\n subpix_origin -> y = ( atp ? 0 : reminder ( char_tm -> ty , scale_y ) / scale_y ) ;\n post_transform -> xx = char_tm -> xx / ( design_grid1 ? 1 : char_size -> x ) ;\n post_transform -> xy = char_tm -> xy / ( design_grid1 ? 1 : char_size -> x ) ;\n post_transform -> yx = char_tm -> yx / ( design_grid1 ? 1 : char_size -> y ) ;\n post_transform -> yy = char_tm -> yy / ( design_grid1 ? 1 : char_size -> y ) ;\n post_transform -> tx = char_tm -> tx - subpix_origin -> x ;\n post_transform -> ty = char_tm -> ty - subpix_origin -> y ;\n }"}
{"idx": 13451, "target": 0, "func": "static int opt_show_ ## section ( const char * opt , const char * arg ) {\n mark_section_show_entries ( SECTION_ID_ ## target_section_id , 1 , NULL ) ;\n return 0 ;\n }\n DEFINE_OPT_SHOW_SECTION ( chapters , CHAPTERS ) DEFINE_OPT_SHOW_SECTION ( error , ERROR )"}
{"idx": 13452, "target": 0, "func": "static int SpoolssDeletePrinter_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , NULL , NULL , FALSE , FALSE ) ;\n return offset ;\n }"}
{"idx": 13453, "target": 0, "func": "static const char * time_avp ( diam_ctx_t * c , diam_avp_t * a , tvbuff_t * tvb , diam_sub_dis_t * diam_sub_dis_inf _U_ ) {\n int len = tvb_reported_length ( tvb ) ;\n char * label = NULL ;\n proto_item * pi ;\n if ( len != 4 ) {\n proto_tree_add_expert_format ( c -> tree , c -> pinfo , & ei_diameter_avp_len , tvb , 0 , 4 , \"Bad Timestamp Length: %d instead of 4\" , len ) ;\n return \"[Malformed]\" ;\n }\n if ( c -> tree ) {\n label = ( char * ) wmem_alloc ( wmem_packet_scope ( ) , ITEM_LABEL_LENGTH + 1 ) ;\n pi = proto_tree_add_item ( c -> tree , ( a -> hf_value ) , tvb , 0 , 4 , ENC_TIME_NTP | ENC_BIG_ENDIAN ) ;\n proto_item_fill_label ( PITEM_FINFO ( pi ) , label ) ;\n label = strstr ( label , \": \" ) + 2 ;\n }\n return label ;\n }"}
{"idx": 13454, "target": 0, "func": "const char * tok2strbuf ( register const struct tok * lp , register const char * fmt , register u_int v , char * buf , size_t bufsize ) {\n if ( lp != NULL ) {\n while ( lp -> s != NULL ) {\n if ( lp -> v == v ) return ( lp -> s ) ;\n ++ lp ;\n }\n }\n if ( fmt == NULL ) fmt = \"#%d\" ;\n ( void ) snprintf ( buf , bufsize , fmt , v ) ;\n return ( const char * ) buf ;\n }"}
{"idx": 13455, "target": 0, "func": "static int32_t u_scanf_scidbl_handler ( UFILE * input , u_scanf_spec_info * info , ufmt_args * args , const UChar * fmt , int32_t * fmtConsumed , int32_t * argConverted ) {\n ( void ) fmt ;\n ( void ) fmtConsumed ;\n int32_t len ;\n double num ;\n UNumberFormat * scientificFormat , * genericFormat ;\n double scientificResult , genericResult ;\n int32_t scientificParsePos = 0 , genericParsePos = 0 , parsePos = 0 ;\n int32_t skipped ;\n UErrorCode scientificStatus = U_ZERO_ERROR ;\n UErrorCode genericStatus = U_ZERO_ERROR ;\n skipped = u_scanf_skip_leading_ws ( input , info -> fPadChar ) ;\n ufile_fill_uchar_buffer ( input ) ;\n len = ( int32_t ) ( input -> str . fLimit - input -> str . fPos ) ;\n if ( info -> fWidth != - 1 ) len = ufmt_min ( len , info -> fWidth ) ;\n scientificFormat = u_locbund_getNumberFormat ( & input -> str . fBundle , UNUM_SCIENTIFIC ) ;\n genericFormat = u_locbund_getNumberFormat ( & input -> str . fBundle , UNUM_DECIMAL ) ;\n if ( scientificFormat == 0 || genericFormat == 0 ) return 0 ;\n skipped += u_scanf_skip_leading_positive_sign ( input , genericFormat , & genericStatus ) ;\n scientificResult = unum_parseDouble ( scientificFormat , input -> str . fPos , len , & scientificParsePos , & scientificStatus ) ;\n genericResult = unum_parseDouble ( genericFormat , input -> str . fPos , len , & genericParsePos , & genericStatus ) ;\n if ( scientificParsePos > genericParsePos ) {\n num = scientificResult ;\n parsePos += scientificParsePos ;\n }\n else {\n num = genericResult ;\n parsePos += genericParsePos ;\n }\n input -> str . fPos += parsePos ;\n if ( ! info -> fSkipArg ) {\n if ( info -> fIsLong ) * ( double * ) ( args [ 0 ] . ptrValue ) = num ;\n else if ( info -> fIsLongDouble ) * ( long double * ) ( args [ 0 ] . ptrValue ) = num ;\n else * ( float * ) ( args [ 0 ] . ptrValue ) = ( float ) num ;\n }\n * argConverted = ! info -> fSkipArg ;\n return parsePos + skipped ;\n }"}
{"idx": 13456, "target": 0, "func": "static void gsm_a_stat_reset ( new_stat_tap_table * table ) {\n guint element ;\n stat_tap_table_item_type * item_data ;\n for ( element = 0 ;\n element < table -> num_elements ;\n element ++ ) {\n item_data = new_stat_tap_get_field_data ( table , element , COUNT_COLUMN ) ;\n item_data -> value . uint_value = 0 ;\n new_stat_tap_set_field_data ( table , element , COUNT_COLUMN , item_data ) ;\n }\n }"}
{"idx": 13457, "target": 0, "func": "extern int slurm_fail_job ( uint32_t job_id , uint32_t job_state ) {\n int error_code ;\n DEF_TIMERS ;\n slurmctld_lock_t job_write_lock = {\n NO_LOCK , WRITE_LOCK , WRITE_LOCK , NO_LOCK , NO_LOCK }\n ;\n START_TIMER ;\n lock_slurmctld ( job_write_lock ) ;\n error_code = job_fail ( job_id , job_state ) ;\n unlock_slurmctld ( job_write_lock ) ;\n END_TIMER2 ( \"slurm_fail_job\" ) ;\n return error_code ;\n }"}
{"idx": 13458, "target": 0, "func": "proto_item * proto_tree_add_uint ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , guint32 value ) {\n proto_item * pi = NULL ;\n header_field_info * hfinfo ;\n CHECK_FOR_NULL_TREE ( tree ) ;\n TRY_TO_FAKE_THIS_ITEM ( tree , hfindex , hfinfo ) ;\n switch ( hfinfo -> type ) {\n case FT_UINT8 : case FT_UINT16 : case FT_UINT24 : case FT_UINT32 : case FT_FRAMENUM : pi = proto_tree_add_pi ( tree , hfinfo , tvb , start , & length ) ;\n proto_tree_set_uint ( PNODE_FINFO ( pi ) , value ) ;\n break ;\n default : DISSECTOR_ASSERT_NOT_REACHED ( ) ;\n }\n return pi ;\n }"}
{"idx": 13459, "target": 0, "func": "static void _slurm_rpc_sib_job_lock ( uint32_t uid , slurm_msg_t * msg ) {\n int rc ;\n sib_msg_t * sib_msg = msg -> data ;\n if ( ! msg -> conn ) {\n error ( \"Security violation, SIB_JOB_LOCK RPC from uid=%d\" , uid ) ;\n slurm_send_rc_msg ( msg , ESLURM_ACCESS_DENIED ) ;\n return ;\n }\n rc = fed_mgr_job_lock_set ( sib_msg -> job_id , sib_msg -> cluster_id ) ;\n slurm_send_rc_msg ( msg , rc ) ;\n }"}
{"idx": 13460, "target": 0, "func": "static void write_typecode ( CodingSpool * s , uint8_t type ) {\n s -> typeSpool |= ( type & 3 ) << ( 14 - s -> typeSpoolLength ) ;\n s -> typeSpoolLength += 2 ;\n if ( s -> typeSpoolLength == 16 ) {\n bytestream_put_le16 ( s -> pout , s -> typeSpool ) ;\n bytestream_put_buffer ( s -> pout , s -> argumentSpool , s -> args - s -> argumentSpool ) ;\n s -> typeSpoolLength = 0 ;\n s -> typeSpool = 0 ;\n s -> args = s -> argumentSpool ;\n }\n }"}
{"idx": 13461, "target": 0, "func": "static int cmp_mpihex ( gcry_mpi_t a , const char * b ) {\n gcry_mpi_t bval ;\n int res ;\n bval = hex2mpi ( b ) ;\n res = gcry_mpi_cmp ( a , bval ) ;\n gcry_mpi_release ( bval ) ;\n return res ;\n }"}
{"idx": 13462, "target": 0, "func": "static void virtio_balloon_get_config ( VirtIODevice * vdev , uint8_t * config_data ) {\n VirtIOBalloon * dev = to_virtio_balloon ( vdev ) ;\n struct virtio_balloon_config config ;\n config . num_pages = cpu_to_le32 ( dev -> num_pages ) ;\n config . actual = cpu_to_le32 ( dev -> actual ) ;\n memcpy ( config_data , & config , 8 ) ;\n }"}
{"idx": 13463, "target": 1, "func": "static void final_reordering ( const hb_ot_shape_plan_t * plan , hb_font_t * font HB_UNUSED , hb_buffer_t * buffer ) {\n unsigned int count = buffer -> len ;\n if ( unlikely ( ! count ) ) return ;\n hb_glyph_info_t * info = buffer -> info ;\n unsigned int last = 0 ;\n unsigned int last_syllable = info [ 0 ] . syllable ( ) ;\n for ( unsigned int i = 1 ;\n i < count ;\n i ++ ) if ( last_syllable != info [ i ] . syllable ( ) ) {\n final_reordering_syllable ( plan , buffer , last , i ) ;\n last = i ;\n last_syllable = info [ last ] . syllable ( ) ;\n }\n final_reordering_syllable ( plan , buffer , last , count ) ;\n HB_BUFFER_DEALLOCATE_VAR ( buffer , indic_category ) ;\n HB_BUFFER_DEALLOCATE_VAR ( buffer , indic_position ) ;\n }"}
{"idx": 13464, "target": 0, "func": "int parse_CNatLanguageRestriction ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree , struct CNatLanguageRestriction * v , const char * fmt , ... ) {\n proto_tree * tree ;\n proto_item * item ;\n va_list ap ;\n guint32 cc ;\n const char * txt ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CNatLanguageRestriction , & item , txt ) ;\n offset = parse_CFullPropSpec ( tvb , offset , tree , pad_tree , & v -> property , \"Property\" ) ;\n offset = parse_padding ( tvb , offset , 4 , pad_tree , \"padding_cc\" ) ;\n cc = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_natlangrestrict_cc , tvb , offset , 4 , cc ) ;\n offset += 4 ;\n proto_tree_add_item_ret_string ( tree , hf_mswsp_natlangrestrict_phrase , tvb , offset , 2 * cc , ENC_LITTLE_ENDIAN | ENC_UCS_2 , wmem_packet_scope ( ) , & v -> phrase ) ;\n offset += 2 * cc ;\n offset = parse_padding ( tvb , offset , 4 , pad_tree , \"padding_lcid\" ) ;\n v -> lcid = tvb_get_letohl ( tvb , offset ) ;\n offset = parse_lcid ( tvb , offset , tree , \"lcid\" ) ;\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 13465, "target": 0, "func": "static int dissect_s_supervisor_exception_detail_alarm ( packet_info * pinfo , proto_tree * tree , proto_item * item , tvbuff_t * tvb , int offset , int total_len ) {\n proto_item * pi ;\n proto_tree * item_tree ;\n int total_size = 0 , size ;\n item_tree = proto_tree_add_subtree ( tree , tvb , offset , 1 , ett_exception_detail_alarm_common , & pi , \"Common Exception Detail\" ) ;\n size = dissect_s_supervisor_exception_detail ( item_tree , pi , tvb , offset , hf_cip_ssupervisor_exception_detail_alarm_ced_size , hf_cip_ssupervisor_exception_detail_alarm_ced_detail ) ;\n if ( size == 0 ) {\n expert_add_info ( pinfo , item , & ei_mal_ssupervisor_exception_detail_alarm_ced ) ;\n return total_len ;\n }\n total_size += size ;\n item_tree = proto_tree_add_subtree ( tree , tvb , offset , 1 , ett_exception_detail_alarm_device , & pi , \"Device Exception Detail\" ) ;\n size = dissect_s_supervisor_exception_detail ( item_tree , pi , tvb , offset , hf_cip_ssupervisor_exception_detail_alarm_ded_size , hf_cip_ssupervisor_exception_detail_alarm_ded_detail ) ;\n if ( size == 0 ) {\n expert_add_info ( pinfo , item , & ei_mal_ssupervisor_exception_detail_alarm_ded ) ;\n return total_len ;\n }\n total_size += size ;\n item_tree = proto_tree_add_subtree ( tree , tvb , offset , 1 , ett_exception_detail_alarm_manufacturer , & pi , \"Manufacturer Exception Detail\" ) ;\n size = dissect_s_supervisor_exception_detail ( item_tree , pi , tvb , offset , hf_cip_ssupervisor_exception_detail_alarm_med_size , hf_cip_ssupervisor_exception_detail_alarm_med_detail ) ;\n if ( size == 0 ) {\n expert_add_info ( pinfo , item , & ei_mal_ssupervisor_exception_detail_alarm_med ) ;\n return total_len ;\n }\n total_size += size ;\n return total_size ;\n }"}
{"idx": 13466, "target": 0, "func": "SPL_METHOD ( SplFileObject , fread ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n long length = 0 ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"l\" , & length ) == FAILURE ) {\n return ;\n }\n if ( length <= 0 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"Length parameter must be greater than 0\" ) ;\n RETURN_FALSE ;\n }\n if ( length > INT_MAX ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"Length parameter must be no more than %d\" , INT_MAX ) ;\n RETURN_FALSE ;\n }\n Z_STRVAL_P ( return_value ) = emalloc ( length + 1 ) ;\n Z_STRLEN_P ( return_value ) = php_stream_read ( intern -> u . file . stream , Z_STRVAL_P ( return_value ) , length ) ;\n Z_STRVAL_P ( return_value ) [ Z_STRLEN_P ( return_value ) ] = 0 ;\n Z_TYPE_P ( return_value ) = IS_STRING ;\n }"}
{"idx": 13467, "target": 0, "func": "static int delta_thresh ( BLOCK_SIZE bs , int increase_denoising ) {\n ( void ) bs ;\n ( void ) increase_denoising ;\n return 4 ;\n }"}
{"idx": 13468, "target": 0, "func": "void config_connection_destroy ( struct config_connection * conn ) {\n DLLIST_REMOVE ( & config_connections , conn ) ;\n io_remove ( & conn -> io ) ;\n i_stream_destroy ( & conn -> input ) ;\n o_stream_destroy ( & conn -> output ) ;\n if ( close ( conn -> fd ) < 0 ) i_error ( \"close(config conn) failed: %m\" ) ;\n i_free ( conn ) ;\n master_service_client_connection_destroyed ( master_service ) ;\n }"}
{"idx": 13469, "target": 0, "func": "static union _zend_function * row_get_ctor ( zval * object TSRMLS_DC ) {\n static zend_internal_function ctor = {\n 0 }\n ;\n ctor . type = ZEND_INTERNAL_FUNCTION ;\n ctor . function_name = \"__construct\" ;\n ctor . scope = pdo_row_ce ;\n ctor . handler = ZEND_FN ( dbstmt_constructor ) ;\n ctor . fn_flags = ZEND_ACC_PUBLIC ;\n return ( union _zend_function * ) & ctor ;\n }"}
{"idx": 13470, "target": 0, "func": "static int best_effort_strncat_in_locale ( struct archive_string * as , const void * _p , size_t length , struct archive_string_conv * sc ) {\n size_t remaining ;\n const uint8_t * itp ;\n int return_value = 0 ;\n if ( sc -> same ) {\n if ( archive_string_append ( as , _p , length ) == NULL ) return ( - 1 ) ;\n return ( invalid_mbs ( _p , length , sc ) ) ;\n }\n remaining = length ;\n itp = ( const uint8_t * ) _p ;\n while ( * itp && remaining > 0 ) {\n if ( * itp > 127 ) {\n if ( sc -> flag & SCONV_TO_UTF8 ) {\n if ( archive_string_append ( as , utf8_replacement_char , sizeof ( utf8_replacement_char ) ) == NULL ) {\n __archive_errx ( 1 , \"Out of memory\" ) ;\n }\n }\n else {\n archive_strappend_char ( as , '?' ) ;\n }\n return_value = - 1 ;\n }\n else {\n archive_strappend_char ( as , * itp ) ;\n }\n ++ itp ;\n }\n return ( return_value ) ;\n }"}
{"idx": 13471, "target": 0, "func": "static _Bool have_gcrypt ( void ) {\n static _Bool result = 0 ;\n static _Bool need_init = 1 ;\n if ( ! need_init ) return ( result ) ;\n need_init = 0 ;\n # if HAVE_LIBGCRYPT # if GCRYPT_VERSION_NUMBER < 0x010600 if ( gcry_control ( GCRYCTL_SET_THREAD_CBS , & gcry_threads_pthread ) ) return ( 0 ) ;\n # endif if ( ! gcry_check_version ( GCRYPT_VERSION ) ) return ( 0 ) ;\n if ( ! gcry_control ( GCRYCTL_INIT_SECMEM , 32768 , 0 ) ) return ( 0 ) ;\n gcry_control ( GCRYCTL_INITIALIZATION_FINISHED , 0 ) ;\n result = 1 ;\n return ( 1 ) ;\n # else return ( 0 ) ;\n # endif }"}
{"idx": 13472, "target": 0, "func": "static inline uint32_t read_IRQreg_ivpr ( OpenPICState * opp , int n_IRQ ) {\n return opp -> src [ n_IRQ ] . ivpr ;\n }"}
{"idx": 13473, "target": 0, "func": "static int dtls1_preprocess_fragment ( SSL * s , struct hm_header_st * msg_hdr , int max ) {\n size_t frag_off , frag_len , msg_len ;\n msg_len = msg_hdr -> msg_len ;\n frag_off = msg_hdr -> frag_off ;\n frag_len = msg_hdr -> frag_len ;\n if ( ( frag_off + frag_len ) > msg_len ) {\n SSLerr ( SSL_F_DTLS1_PREPROCESS_FRAGMENT , SSL_R_EXCESSIVE_MESSAGE_SIZE ) ;\n return SSL_AD_ILLEGAL_PARAMETER ;\n }\n if ( ( frag_off + frag_len ) > ( unsigned long ) max ) {\n SSLerr ( SSL_F_DTLS1_PREPROCESS_FRAGMENT , SSL_R_EXCESSIVE_MESSAGE_SIZE ) ;\n return SSL_AD_ILLEGAL_PARAMETER ;\n }\n if ( s -> d1 -> r_msg_hdr . frag_off == 0 ) {\n if ( ! BUF_MEM_grow_clean ( s -> init_buf , msg_len + DTLS1_HM_HEADER_LENGTH ) ) {\n SSLerr ( SSL_F_DTLS1_PREPROCESS_FRAGMENT , ERR_R_BUF_LIB ) ;\n return SSL_AD_INTERNAL_ERROR ;\n }\n s -> s3 -> tmp . message_size = msg_len ;\n s -> d1 -> r_msg_hdr . msg_len = msg_len ;\n s -> s3 -> tmp . message_type = msg_hdr -> type ;\n s -> d1 -> r_msg_hdr . type = msg_hdr -> type ;\n s -> d1 -> r_msg_hdr . seq = msg_hdr -> seq ;\n }\n else if ( msg_len != s -> d1 -> r_msg_hdr . msg_len ) {\n SSLerr ( SSL_F_DTLS1_PREPROCESS_FRAGMENT , SSL_R_EXCESSIVE_MESSAGE_SIZE ) ;\n return SSL_AD_ILLEGAL_PARAMETER ;\n }\n return 0 ;\n }"}
{"idx": 13474, "target": 0, "func": "void kadmin_getprinc ( int argc , char * argv [ ] ) {\n kadm5_principal_ent_rec dprinc ;\n krb5_principal princ = NULL ;\n krb5_error_code retval ;\n const char * polname , * noexist ;\n char * canon = NULL , * princstr = NULL , * modprincstr = NULL ;\n int i ;\n size_t j ;\n if ( ! ( argc == 2 || ( argc == 3 && ! strcmp ( \"-terse\" , argv [ 1 ] ) ) ) ) {\n fprintf ( stderr , _ ( \"usage: get_principal [-terse] principal\\n\" ) ) ;\n return ;\n }\n memset ( & dprinc , 0 , sizeof ( dprinc ) ) ;\n retval = kadmin_parse_name ( argv [ argc - 1 ] , & princ ) ;\n if ( retval ) {\n com_err ( \"get_principal\" , retval , _ ( \"while parsing principal\" ) ) ;\n return ;\n }\n retval = krb5_unparse_name ( context , princ , & canon ) ;\n if ( retval ) {\n com_err ( \"get_principal\" , retval , _ ( \"while canonicalizing principal\" ) ) ;\n goto cleanup ;\n }\n retval = kadm5_get_principal ( handle , princ , & dprinc , KADM5_PRINCIPAL_NORMAL_MASK | KADM5_KEY_DATA ) ;\n if ( retval ) {\n com_err ( \"get_principal\" , retval , _ ( \"while retrieving \\\"%s\\\".\" ) , canon ) ;\n goto cleanup ;\n }\n retval = krb5_unparse_name ( context , dprinc . principal , & princstr ) ;\n if ( retval ) {\n com_err ( \"get_principal\" , retval , _ ( \"while unparsing principal\" ) ) ;\n goto cleanup ;\n }\n retval = krb5_unparse_name ( context , dprinc . mod_name , & modprincstr ) ;\n if ( retval ) {\n com_err ( \"get_principal\" , retval , _ ( \"while unparsing principal\" ) ) ;\n goto cleanup ;\n }\n if ( argc == 2 ) {\n printf ( _ ( \"Principal: %s\\n\" ) , princstr ) ;\n printf ( _ ( \"Expiration date: %s\\n\" ) , dprinc . princ_expire_time ? strdate ( dprinc . princ_expire_time ) : _ ( \"[never]\" ) ) ;\n printf ( _ ( \"Last password change: %s\\n\" ) , dprinc . last_pwd_change ? strdate ( dprinc . last_pwd_change ) : _ ( \"[never]\" ) ) ;\n printf ( _ ( \"Password expiration date: %s\\n\" ) , dprinc . pw_expiration ? strdate ( dprinc . pw_expiration ) : _ ( \"[none]\" ) ) ;\n printf ( _ ( \"Maximum ticket life: %s\\n\" ) , strdur ( dprinc . max_life ) ) ;\n printf ( _ ( \"Maximum renewable life: %s\\n\" ) , strdur ( dprinc . max_renewable_life ) ) ;\n printf ( _ ( \"Last modified: %s (%s)\\n\" ) , strdate ( dprinc . mod_date ) , modprincstr ) ;\n printf ( _ ( \"Last successful authentication: %s\\n\" ) , dprinc . last_success ? strdate ( dprinc . last_success ) : _ ( \"[never]\" ) ) ;\n printf ( \"Last failed authentication: %s\\n\" , dprinc . last_failed ? strdate ( dprinc . last_failed ) : \"[never]\" ) ;\n printf ( _ ( \"Failed password attempts: %d\\n\" ) , dprinc . fail_auth_count ) ;\n printf ( _ ( \"Number of keys: %d\\n\" ) , dprinc . n_key_data ) ;\n for ( i = 0 ;\n i < dprinc . n_key_data ;\n i ++ ) {\n krb5_key_data * key_data = & dprinc . key_data [ i ] ;\n char enctype [ BUFSIZ ] , salttype [ BUFSIZ ] ;\n if ( krb5_enctype_to_name ( key_data -> key_data_type [ 0 ] , FALSE , enctype , sizeof ( enctype ) ) ) snprintf ( enctype , sizeof ( enctype ) , _ ( \"<Encryption type 0x%x>\" ) , key_data -> key_data_type [ 0 ] ) ;\n printf ( \"Key: vno %d, %s, \" , key_data -> key_data_kvno , enctype ) ;\n if ( key_data -> key_data_ver > 1 ) {\n if ( krb5_salttype_to_string ( key_data -> key_data_type [ 1 ] , salttype , sizeof ( salttype ) ) ) snprintf ( salttype , sizeof ( salttype ) , _ ( \"<Salt type 0x%x>\" ) , key_data -> key_data_type [ 1 ] ) ;\n printf ( \"%s\\n\" , salttype ) ;\n }\n else printf ( _ ( \"no salt\\n\" ) ) ;\n }\n printf ( _ ( \"MKey: vno %d\\n\" ) , dprinc . mkvno ) ;\n printf ( _ ( \"Attributes:\" ) ) ;\n for ( j = 0 ;\n j < sizeof ( prflags ) / sizeof ( char * ) ;\n j ++ ) {\n if ( dprinc . attributes & ( krb5_flags ) 1 << j ) printf ( \" %s\" , prflags [ j ] ) ;\n }\n printf ( \"\\n\" ) ;\n polname = ( dprinc . policy != NULL ) ? dprinc . policy : _ ( \"[none]\" ) ;\n noexist = ( dprinc . policy != NULL && ! policy_exists ( dprinc . policy ) ) ? _ ( \" [does not exist]\" ) : \"\" ;\n printf ( _ ( \"Policy: %s%s\\n\" ) , polname , noexist ) ;\n }\n else {\n printf ( \"\\\"%s\\\"\\t%d\\t%d\\t%d\\t%d\\t\\\"%s\\\"\\t%d\\t%d\\t%d\\t%d\\t\\\"%s\\\"\" \"\\t%d\\t%d\\t%d\\t%d\\t%d\" , princstr , dprinc . princ_expire_time , dprinc . last_pwd_change , dprinc . pw_expiration , dprinc . max_life , modprincstr , dprinc . mod_date , dprinc . attributes , dprinc . kvno , dprinc . mkvno , dprinc . policy ? dprinc . policy : \"[none]\" , dprinc . max_renewable_life , dprinc . last_success , dprinc . last_failed , dprinc . fail_auth_count , dprinc . n_key_data ) ;\n for ( i = 0 ;\n i < dprinc . n_key_data ;\n i ++ ) printf ( \"\\t%d\\t%d\\t%d\\t%d\" , dprinc . key_data [ i ] . key_data_ver , dprinc . key_data [ i ] . key_data_kvno , dprinc . key_data [ i ] . key_data_type [ 0 ] , dprinc . key_data [ i ] . key_data_type [ 1 ] ) ;\n printf ( \"\\n\" ) ;\n }\n cleanup : krb5_free_principal ( context , princ ) ;\n kadm5_free_principal_ent ( handle , & dprinc ) ;\n free ( canon ) ;\n free ( princstr ) ;\n free ( modprincstr ) ;\n }"}
{"idx": 13475, "target": 0, "func": "static int kvm_put_tscdeadline_msr ( X86CPU * cpu ) {\n CPUX86State * env = & cpu -> env ;\n int ret ;\n if ( ! has_msr_tsc_deadline ) {\n return 0 ;\n }\n ret = kvm_put_one_msr ( cpu , MSR_IA32_TSCDEADLINE , env -> tsc_deadline ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n assert ( ret == 1 ) ;\n return 0 ;\n }"}
{"idx": 13476, "target": 0, "func": "afs_int32 SPR_AddToGroup ( struct rx_call * call , afs_int32 aid , afs_int32 gid ) {\n afs_int32 code ;\n afs_int32 cid = ANONYMOUSID ;\n code = addToGroup ( call , aid , gid , & cid ) ;\n osi_auditU ( call , PTS_AdToGrpEvent , code , AUD_ID , gid , AUD_ID , aid , AUD_END ) ;\n ViceLog ( 5 , ( \"PTS_AddToGroup: code %d cid %d gid %d aid %d\\n\" , code , cid , gid , aid ) ) ;\n return code ;\n }"}
{"idx": 13477, "target": 0, "func": "static int zcvlit ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n ref * aop ;\n check_op ( 1 ) ;\n aop = ACCESS_REF ( op ) ;\n r_clear_attrs ( aop , a_executable ) ;\n return 0 ;\n }"}
{"idx": 13478, "target": 0, "func": "static unsigned int delete_node ( pdf_cmap * cmap , unsigned int current ) {\n cmap_splay * tree = cmap -> tree ;\n unsigned int parent ;\n unsigned int replacement ;\n assert ( current != EMPTY ) ;\n parent = tree [ current ] . parent ;\n if ( tree [ current ] . right == EMPTY ) {\n if ( parent == EMPTY ) {\n replacement = cmap -> ttop = tree [ current ] . left ;\n }\n else if ( tree [ parent ] . left == current ) {\n replacement = tree [ parent ] . left = tree [ current ] . left ;\n }\n else {\n assert ( tree [ parent ] . right == current ) ;\n replacement = tree [ parent ] . right = tree [ current ] . left ;\n }\n if ( replacement != EMPTY ) tree [ replacement ] . parent = parent ;\n else replacement = parent ;\n }\n else if ( tree [ current ] . left == EMPTY ) {\n if ( parent == EMPTY ) {\n replacement = cmap -> ttop = tree [ current ] . right ;\n }\n else if ( tree [ parent ] . left == current ) {\n replacement = tree [ parent ] . left = tree [ current ] . right ;\n }\n else {\n assert ( tree [ parent ] . right == current ) ;\n replacement = tree [ parent ] . right = tree [ current ] . right ;\n }\n if ( replacement != EMPTY ) tree [ replacement ] . parent = parent ;\n else replacement = parent ;\n }\n else {\n int amputee = current ;\n replacement = tree [ current ] . left ;\n while ( tree [ replacement ] . right != EMPTY ) {\n amputee = replacement ;\n replacement = tree [ replacement ] . right ;\n }\n if ( amputee == current ) {\n tree [ amputee ] . left = tree [ replacement ] . left ;\n if ( tree [ amputee ] . left != EMPTY ) tree [ tree [ amputee ] . left ] . parent = amputee ;\n }\n else {\n tree [ amputee ] . right = tree [ replacement ] . left ;\n if ( tree [ amputee ] . right != EMPTY ) tree [ tree [ amputee ] . right ] . parent = amputee ;\n }\n tree [ replacement ] . parent = parent ;\n if ( parent == EMPTY ) {\n tree [ replacement ] . parent = EMPTY ;\n cmap -> ttop = replacement ;\n }\n else if ( tree [ parent ] . left == current ) tree [ parent ] . left = replacement ;\n else {\n assert ( tree [ parent ] . right == current ) ;\n tree [ parent ] . right = replacement ;\n }\n tree [ replacement ] . left = tree [ current ] . left ;\n if ( tree [ replacement ] . left != EMPTY ) tree [ tree [ replacement ] . left ] . parent = replacement ;\n tree [ replacement ] . right = tree [ current ] . right ;\n if ( tree [ replacement ] . right != EMPTY ) tree [ tree [ replacement ] . right ] . parent = replacement ;\n }\n cmap -> tlen -- ;\n if ( current != cmap -> tlen ) {\n if ( replacement == cmap -> tlen ) replacement = current ;\n tree [ current ] = tree [ cmap -> tlen ] ;\n parent = tree [ current ] . parent ;\n if ( parent == EMPTY ) cmap -> ttop = current ;\n else if ( tree [ parent ] . left == cmap -> tlen ) tree [ parent ] . left = current ;\n else {\n assert ( tree [ parent ] . right == cmap -> tlen ) ;\n tree [ parent ] . right = current ;\n }\n if ( tree [ current ] . left != EMPTY ) {\n assert ( tree [ tree [ current ] . left ] . parent == cmap -> tlen ) ;\n tree [ tree [ current ] . left ] . parent = current ;\n }\n if ( tree [ current ] . right != EMPTY ) {\n assert ( tree [ tree [ current ] . right ] . parent == cmap -> tlen ) ;\n tree [ tree [ current ] . right ] . parent = current ;\n }\n }\n return replacement ;\n }"}
{"idx": 13479, "target": 0, "func": "static int ps2_mouse_pre_save ( void * opaque ) {\n PS2MouseState * s = ( PS2MouseState * ) opaque ;\n PS2State * ps2 = & s -> common ;\n ps2_common_post_load ( ps2 ) ;\n return 0 ;\n }"}
{"idx": 13480, "target": 0, "func": "static int jbig2_decode_get_code ( Jbig2MmrCtx * mmr , const mmr_table_node * table , int initial_bits ) {\n uint32_t word = mmr -> word ;\n int table_ix = word >> ( 32 - initial_bits ) ;\n int val = table [ table_ix ] . val ;\n int n_bits = table [ table_ix ] . n_bits ;\n if ( n_bits > initial_bits ) {\n int mask = ( 1 << ( 32 - initial_bits ) ) - 1 ;\n table_ix = val + ( ( word & mask ) >> ( 32 - n_bits ) ) ;\n val = table [ table_ix ] . val ;\n n_bits = initial_bits + table [ table_ix ] . n_bits ;\n }\n jbig2_decode_mmr_consume ( mmr , n_bits ) ;\n return val ;\n }"}
{"idx": 13481, "target": 0, "func": "static int dissect_h245_H262VideoMode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_H262VideoMode , H262VideoMode_sequence ) ;\n return offset ;\n }"}
{"idx": 13482, "target": 0, "func": "static int fix_pseudo_header ( int encap , Buffer * buf , int len , union wtap_pseudo_header * pseudo_header ) {\n const guint8 * pd ;\n pd = ws_buffer_start_ptr ( buf ) ;\n switch ( encap ) {\n case WTAP_ENCAP_PER_PACKET : encap = infer_pkt_encap ( pd , len ) ;\n switch ( encap ) {\n case WTAP_ENCAP_WFLEET_HDLC : case WTAP_ENCAP_CHDLC_WITH_PHDR : case WTAP_ENCAP_PPP_WITH_PHDR : if ( pseudo_header -> x25 . flags == 0 ) pseudo_header -> p2p . sent = TRUE ;\n else pseudo_header -> p2p . sent = FALSE ;\n break ;\n case WTAP_ENCAP_ISDN : if ( pseudo_header -> x25 . flags == 0x00 ) pseudo_header -> isdn . uton = FALSE ;\n else pseudo_header -> isdn . uton = TRUE ;\n pseudo_header -> isdn . channel = 0 ;\n break ;\n }\n break ;\n case WTAP_ENCAP_ATM_PDUS : if ( pseudo_header -> atm . type == TRAF_LANE && len >= 2 ) {\n if ( pd [ 0 ] == 0xff && pd [ 1 ] == 0x00 ) {\n pseudo_header -> atm . subtype = TRAF_ST_LANE_LE_CTRL ;\n }\n else {\n if ( pseudo_header -> atm . subtype == TRAF_ST_LANE_LE_CTRL ) {\n pseudo_header -> atm . subtype = TRAF_ST_LANE_802_3 ;\n }\n }\n }\n break ;\n }\n return encap ;\n }"}
{"idx": 13483, "target": 0, "func": "static void dynstr_append_checked ( DYNAMIC_STRING * dest , const char * src ) {\n if ( dynstr_append ( dest , src ) ) die ( EX_MYSQLERR , DYNAMIC_STR_ERROR_MSG ) ;\n }"}
{"idx": 13484, "target": 0, "func": "static gchar * qio_channel_websock_date_str ( void ) {\n struct tm tm ;\n time_t now = time ( NULL ) ;\n char datebuf [ 128 ] ;\n gmtime_r ( & now , & tm ) ;\n strftime ( datebuf , sizeof ( datebuf ) , \"%a, %d %b %Y %H:%M:%S GMT\" , & tm ) ;\n return g_strdup ( datebuf ) ;\n }"}
{"idx": 13485, "target": 0, "func": "static inline void decode_ac_coeffs ( GetBitContext * gb , int16_t * out , int blocks_per_slice , int plane_size_factor , const uint8_t * scan ) {\n int pos , block_mask , run , level , sign , run_cb_index , lev_cb_index ;\n int max_coeffs , bits_left ;\n run = 4 ;\n level = 2 ;\n max_coeffs = blocks_per_slice << 6 ;\n block_mask = blocks_per_slice - 1 ;\n for ( pos = blocks_per_slice - 1 ;\n pos < max_coeffs ;\n ) {\n run_cb_index = ff_prores_run_to_cb_index [ FFMIN ( run , 15 ) ] ;\n lev_cb_index = ff_prores_lev_to_cb_index [ FFMIN ( level , 9 ) ] ;\n bits_left = get_bits_left ( gb ) ;\n if ( bits_left <= 0 || ( bits_left <= 8 && ! show_bits ( gb , bits_left ) ) ) return ;\n run = decode_vlc_codeword ( gb , ff_prores_ac_codebook [ run_cb_index ] ) ;\n bits_left = get_bits_left ( gb ) ;\n if ( bits_left <= 0 || ( bits_left <= 8 && ! show_bits ( gb , bits_left ) ) ) return ;\n level = decode_vlc_codeword ( gb , ff_prores_ac_codebook [ lev_cb_index ] ) + 1 ;\n pos += run + 1 ;\n if ( pos >= max_coeffs ) break ;\n sign = get_sbits ( gb , 1 ) ;\n out [ ( ( pos & block_mask ) << 6 ) + scan [ pos >> plane_size_factor ] ] = ( level ^ sign ) - sign ;\n }\n }"}
{"idx": 13486, "target": 1, "func": "static int get_delta ( struct rev_info * revs , struct remote_lock * lock ) {\n int i ;\n struct commit * commit ;\n struct object_list * * p = & objects ;\n int count = 0 ;\n while ( ( commit = get_revision ( revs ) ) != NULL ) {\n p = process_tree ( commit -> tree , p , NULL , \"\" ) ;\n commit -> object . flags |= LOCAL ;\n if ( ! ( commit -> object . flags & UNINTERESTING ) ) count += add_send_request ( & commit -> object , lock ) ;\n }\n for ( i = 0 ;\n i < revs -> pending . nr ;\n i ++ ) {\n struct object_array_entry * entry = revs -> pending . objects + i ;\n struct object * obj = entry -> item ;\n const char * name = entry -> name ;\n if ( obj -> flags & ( UNINTERESTING | SEEN ) ) continue ;\n if ( obj -> type == OBJ_TAG ) {\n obj -> flags |= SEEN ;\n p = add_one_object ( obj , p ) ;\n continue ;\n }\n if ( obj -> type == OBJ_TREE ) {\n p = process_tree ( ( struct tree * ) obj , p , NULL , name ) ;\n continue ;\n }\n if ( obj -> type == OBJ_BLOB ) {\n p = process_blob ( ( struct blob * ) obj , p , NULL , name ) ;\n continue ;\n }\n die ( \"unknown pending object %s (%s)\" , oid_to_hex ( & obj -> oid ) , name ) ;\n }\n while ( objects ) {\n if ( ! ( objects -> item -> flags & UNINTERESTING ) ) count += add_send_request ( objects -> item , lock ) ;\n objects = objects -> next ;\n }\n return count ;\n }"}
{"idx": 13487, "target": 0, "func": "int gs_main_run_file_open ( gs_main_instance * minst , const char * file_name , ref * pfref ) {\n gs_main_set_lib_paths ( minst ) ;\n if ( gs_main_lib_open ( minst , file_name , pfref ) < 0 ) {\n emprintf1 ( minst -> heap , \"Can't find initialization file %s.\\n\" , file_name ) ;\n return_error ( gs_error_Fatal ) ;\n }\n r_set_attrs ( pfref , a_execute + a_executable ) ;\n return 0 ;\n }"}
{"idx": 13488, "target": 0, "func": "static void t42_parse_charstrings ( T42_Face face , T42_Loader loader ) {\n T42_Parser parser = & loader -> parser ;\n PS_Table code_table = & loader -> charstrings ;\n PS_Table name_table = & loader -> glyph_names ;\n PS_Table swap_table = & loader -> swap_table ;\n FT_Memory memory = parser -> root . memory ;\n FT_Error error ;\n PSAux_Service psaux = ( PSAux_Service ) face -> psaux ;\n FT_Byte * cur ;\n FT_Byte * limit = parser -> root . limit ;\n FT_UInt n ;\n FT_UInt notdef_index = 0 ;\n FT_Byte notdef_found = 0 ;\n T1_Skip_Spaces ( parser ) ;\n if ( parser -> root . cursor >= limit ) {\n FT_ERROR ( ( \"t42_parse_charstrings: out of bounds\\n\" ) ) ;\n error = FT_THROW ( Invalid_File_Format ) ;\n goto Fail ;\n }\n if ( ft_isdigit ( * parser -> root . cursor ) ) {\n loader -> num_glyphs = ( FT_UInt ) T1_ToInt ( parser ) ;\n if ( parser -> root . error ) return ;\n }\n else if ( * parser -> root . cursor == '<' ) {\n FT_UInt count = 0 ;\n T1_Skip_PS_Token ( parser ) ;\n if ( parser -> root . error ) return ;\n T1_Skip_Spaces ( parser ) ;\n cur = parser -> root . cursor ;\n while ( parser -> root . cursor < limit ) {\n if ( * parser -> root . cursor == '/' ) count ++ ;\n else if ( * parser -> root . cursor == '>' ) {\n loader -> num_glyphs = count ;\n parser -> root . cursor = cur ;\n break ;\n }\n T1_Skip_PS_Token ( parser ) ;\n if ( parser -> root . error ) return ;\n T1_Skip_Spaces ( parser ) ;\n }\n }\n else {\n FT_ERROR ( ( \"t42_parse_charstrings: invalid token\\n\" ) ) ;\n error = FT_THROW ( Invalid_File_Format ) ;\n goto Fail ;\n }\n if ( parser -> root . cursor >= limit ) {\n FT_ERROR ( ( \"t42_parse_charstrings: out of bounds\\n\" ) ) ;\n error = FT_THROW ( Invalid_File_Format ) ;\n goto Fail ;\n }\n error = psaux -> ps_table_funcs -> init ( code_table , loader -> num_glyphs , memory ) ;\n if ( error ) goto Fail ;\n error = psaux -> ps_table_funcs -> init ( name_table , loader -> num_glyphs , memory ) ;\n if ( error ) goto Fail ;\n error = psaux -> ps_table_funcs -> init ( swap_table , 4 , memory ) ;\n if ( error ) goto Fail ;\n n = 0 ;\n for ( ;\n ;\n ) {\n T1_Skip_Spaces ( parser ) ;\n cur = parser -> root . cursor ;\n if ( cur >= limit ) break ;\n if ( * cur == 'e' && cur + 3 < limit && cur [ 1 ] == 'n' && cur [ 2 ] == 'd' && t42_is_space ( cur [ 3 ] ) ) break ;\n if ( * cur == '>' ) break ;\n T1_Skip_PS_Token ( parser ) ;\n if ( parser -> root . error ) return ;\n if ( * cur == '/' ) {\n FT_PtrDist len ;\n if ( cur + 1 >= limit ) {\n FT_ERROR ( ( \"t42_parse_charstrings: out of bounds\\n\" ) ) ;\n error = FT_THROW ( Invalid_File_Format ) ;\n goto Fail ;\n }\n cur ++ ;\n len = parser -> root . cursor - cur ;\n error = T1_Add_Table ( name_table , n , cur , len + 1 ) ;\n if ( error ) goto Fail ;\n name_table -> elements [ n ] [ len ] = '\\0' ;\n if ( * cur == '.' && ft_strcmp ( \".notdef\" , ( const char * ) ( name_table -> elements [ n ] ) ) == 0 ) {\n notdef_index = n ;\n notdef_found = 1 ;\n }\n T1_Skip_Spaces ( parser ) ;\n cur = parser -> root . cursor ;\n ( void ) T1_ToInt ( parser ) ;\n if ( parser -> root . cursor >= limit ) {\n FT_ERROR ( ( \"t42_parse_charstrings: out of bounds\\n\" ) ) ;\n error = FT_THROW ( Invalid_File_Format ) ;\n goto Fail ;\n }\n len = parser -> root . cursor - cur ;\n error = T1_Add_Table ( code_table , n , cur , len + 1 ) ;\n if ( error ) goto Fail ;\n code_table -> elements [ n ] [ len ] = '\\0' ;\n n ++ ;\n if ( n >= loader -> num_glyphs ) break ;\n }\n }\n loader -> num_glyphs = n ;\n if ( ! notdef_found ) {\n FT_ERROR ( ( \"t42_parse_charstrings: no /.notdef glyph\\n\" ) ) ;\n error = FT_THROW ( Invalid_File_Format ) ;\n goto Fail ;\n }\n if ( ft_strcmp ( ( const char * ) \".notdef\" , ( const char * ) name_table -> elements [ 0 ] ) ) {\n error = T1_Add_Table ( swap_table , 0 , name_table -> elements [ 0 ] , name_table -> lengths [ 0 ] ) ;\n if ( error ) goto Fail ;\n error = T1_Add_Table ( swap_table , 1 , code_table -> elements [ 0 ] , code_table -> lengths [ 0 ] ) ;\n if ( error ) goto Fail ;\n error = T1_Add_Table ( swap_table , 2 , name_table -> elements [ notdef_index ] , name_table -> lengths [ notdef_index ] ) ;\n if ( error ) goto Fail ;\n error = T1_Add_Table ( swap_table , 3 , code_table -> elements [ notdef_index ] , code_table -> lengths [ notdef_index ] ) ;\n if ( error ) goto Fail ;\n error = T1_Add_Table ( name_table , notdef_index , swap_table -> elements [ 0 ] , swap_table -> lengths [ 0 ] ) ;\n if ( error ) goto Fail ;\n error = T1_Add_Table ( code_table , notdef_index , swap_table -> elements [ 1 ] , swap_table -> lengths [ 1 ] ) ;\n if ( error ) goto Fail ;\n error = T1_Add_Table ( name_table , 0 , swap_table -> elements [ 2 ] , swap_table -> lengths [ 2 ] ) ;\n if ( error ) goto Fail ;\n error = T1_Add_Table ( code_table , 0 , swap_table -> elements [ 3 ] , swap_table -> lengths [ 3 ] ) ;\n if ( error ) goto Fail ;\n }\n return ;\n Fail : parser -> root . error = error ;\n }"}
{"idx": 13489, "target": 0, "func": "void kadmin_delpol ( int argc , char * argv [ ] ) {\n krb5_error_code retval ;\n char reply [ 5 ] ;\n if ( ! ( argc == 2 || ( argc == 3 && ! strcmp ( \"-force\" , argv [ 1 ] ) ) ) ) {\n fprintf ( stderr , _ ( \"usage: delete_policy [-force] policy\\n\" ) ) ;\n return ;\n }\n if ( argc == 2 ) {\n printf ( _ ( \"Are you sure you want to delete the policy \\\"%s\\\"? \" \"(yeso): \" ) , argv [ 1 ] ) ;\n fgets ( reply , sizeof ( reply ) , stdin ) ;\n if ( strcmp ( \"yes\\n\" , reply ) ) {\n fprintf ( stderr , _ ( \"Policy \\\"%s\\\" not deleted.\\n\" ) , argv [ 1 ] ) ;\n return ;\n }\n }\n retval = kadm5_delete_policy ( handle , argv [ argc - 1 ] ) ;\n if ( retval ) {\n com_err ( \"delete_policy:\" , retval , _ ( \"while deleting policy \\\"%s\\\"\" ) , argv [ argc - 1 ] ) ;\n }\n }"}
{"idx": 13490, "target": 0, "func": "int proto_get_next_protocol ( void * * cookie ) {\n GList * list_item = ( GList * ) * cookie ;\n protocol_t * protocol ;\n list_item = g_list_next ( list_item ) ;\n if ( list_item == NULL ) return - 1 ;\n * cookie = list_item ;\n protocol = ( protocol_t * ) list_item -> data ;\n return protocol -> proto_id ;\n }"}
{"idx": 13491, "target": 0, "func": "static int chacha20_poly1305_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * inkey , const unsigned char * iv , int enc ) {\n EVP_CHACHA_AEAD_CTX * actx = aead_data ( ctx ) ;\n if ( ! inkey && ! iv ) return 1 ;\n actx -> len . aad = 0 ;\n actx -> len . text = 0 ;\n actx -> aad = 0 ;\n actx -> mac_inited = 0 ;\n actx -> tls_payload_length = NO_TLS_PAYLOAD_LENGTH ;\n if ( iv != NULL ) {\n unsigned char temp [ CHACHA_CTR_SIZE ] = {\n 0 }\n ;\n if ( actx -> nonce_len <= CHACHA_CTR_SIZE ) memcpy ( temp + CHACHA_CTR_SIZE - actx -> nonce_len , iv , actx -> nonce_len ) ;\n chacha_init_key ( ctx , inkey , temp , enc ) ;\n actx -> nonce [ 0 ] = actx -> key . counter [ 1 ] ;\n actx -> nonce [ 1 ] = actx -> key . counter [ 2 ] ;\n actx -> nonce [ 2 ] = actx -> key . counter [ 3 ] ;\n }\n else {\n chacha_init_key ( ctx , inkey , NULL , enc ) ;\n }\n return 1 ;\n }"}
{"idx": 13492, "target": 1, "func": "int mi_sort_index ( MI_CHECK * param , register MI_INFO * info , char * name ) {\n reg2 uint key ;\n reg1 MI_KEYDEF * keyinfo ;\n File new_file ;\n my_off_t index_pos [ HA_MAX_POSSIBLE_KEY ] ;\n uint r_locks , w_locks ;\n int old_lock ;\n MYISAM_SHARE * share = info -> s ;\n MI_STATE_INFO old_state ;\n DBUG_ENTER ( \"mi_sort_index\" ) ;\n for ( key = 0 , keyinfo = & share -> keyinfo [ 0 ] ;\n key < share -> base . keys ;\n key ++ , keyinfo ++ ) if ( keyinfo -> key_alg == HA_KEY_ALG_RTREE ) DBUG_RETURN ( 0 ) ;\n if ( ! ( param -> testflag & T_SILENT ) ) printf ( \"- Sorting index for MyISAM-table '%s'\\n\" , name ) ;\n fn_format ( param -> temp_filename , name , \"\" , MI_NAME_IEXT , 2 + 4 + 32 ) ;\n if ( ( new_file = mysql_file_create ( mi_key_file_datatmp , fn_format ( param -> temp_filename , param -> temp_filename , \"\" , INDEX_TMP_EXT , 2 + 4 ) , 0 , param -> tmpfile_createflag , MYF ( 0 ) ) ) <= 0 ) {\n mi_check_print_error ( param , \"Can't create new tempfile: '%s'\" , param -> temp_filename ) ;\n DBUG_RETURN ( - 1 ) ;\n }\n if ( filecopy ( param , new_file , share -> kfile , 0L , ( ulong ) share -> base . keystart , \"headerblock\" ) ) goto err ;\n param -> new_file_pos = share -> base . keystart ;\n for ( key = 0 , keyinfo = & share -> keyinfo [ 0 ] ;\n key < share -> base . keys ;\n key ++ , keyinfo ++ ) {\n if ( ! mi_is_key_active ( info -> s -> state . key_map , key ) ) continue ;\n if ( share -> state . key_root [ key ] != HA_OFFSET_ERROR ) {\n index_pos [ key ] = param -> new_file_pos ;\n if ( sort_one_index ( param , info , keyinfo , share -> state . key_root [ key ] , new_file ) ) goto err ;\n }\n else index_pos [ key ] = HA_OFFSET_ERROR ;\n }\n flush_key_blocks ( share -> key_cache , share -> kfile , FLUSH_IGNORE_CHANGED ) ;\n share -> state . version = ( ulong ) time ( ( time_t * ) 0 ) ;\n old_state = share -> state ;\n r_locks = share -> r_locks ;\n w_locks = share -> w_locks ;\n old_lock = info -> lock_type ;\n share -> r_locks = share -> w_locks = share -> tot_locks = 0 ;\n ( void ) _mi_writeinfo ( info , WRITEINFO_UPDATE_KEYFILE ) ;\n ( void ) mysql_file_close ( share -> kfile , MYF ( MY_WME ) ) ;\n share -> kfile = - 1 ;\n ( void ) mysql_file_close ( new_file , MYF ( MY_WME ) ) ;\n if ( change_to_newfile ( share -> index_file_name , MI_NAME_IEXT , INDEX_TMP_EXT , MYF ( 0 ) ) || mi_open_keyfile ( share ) ) goto err2 ;\n info -> lock_type = F_UNLCK ;\n _mi_readinfo ( info , F_WRLCK , 0 ) ;\n info -> lock_type = old_lock ;\n share -> r_locks = r_locks ;\n share -> w_locks = w_locks ;\n share -> tot_locks = r_locks + w_locks ;\n share -> state = old_state ;\n info -> state -> key_file_length = param -> new_file_pos ;\n info -> update = ( short ) ( HA_STATE_CHANGED | HA_STATE_ROW_CHANGED ) ;\n for ( key = 0 ;\n key < info -> s -> base . keys ;\n key ++ ) info -> s -> state . key_root [ key ] = index_pos [ key ] ;\n for ( key = 0 ;\n key < info -> s -> state . header . max_block_size_index ;\n key ++ ) info -> s -> state . key_del [ key ] = HA_OFFSET_ERROR ;\n info -> s -> state . changed &= ~ STATE_NOT_SORTED_PAGES ;\n DBUG_RETURN ( 0 ) ;\n err : ( void ) mysql_file_close ( new_file , MYF ( MY_WME ) ) ;\n err2 : ( void ) mysql_file_delete ( mi_key_file_datatmp , param -> temp_filename , MYF ( MY_WME ) ) ;\n DBUG_RETURN ( - 1 ) ;\n }"}
{"idx": 13493, "target": 0, "func": "int EC_GROUP_get_pentanomial_basis ( const EC_GROUP * group , unsigned int * k1 , unsigned int * k2 , unsigned int * k3 ) {\n if ( group == NULL ) return 0 ;\n if ( EC_GROUP_method_of ( group ) -> group_set_curve != ec_GF2m_simple_group_set_curve || ! ( ( group -> poly [ 0 ] != 0 ) && ( group -> poly [ 1 ] != 0 ) && ( group -> poly [ 2 ] != 0 ) && ( group -> poly [ 3 ] != 0 ) && ( group -> poly [ 4 ] == 0 ) ) ) {\n ECerr ( EC_F_EC_GROUP_GET_PENTANOMIAL_BASIS , ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED ) ;\n return 0 ;\n }\n if ( k1 ) * k1 = group -> poly [ 3 ] ;\n if ( k2 ) * k2 = group -> poly [ 2 ] ;\n if ( k3 ) * k3 = group -> poly [ 1 ] ;\n return 1 ;\n }"}
{"idx": 13494, "target": 0, "func": "static int is_fullwidth ( int c ) {\n int i ;\n if ( c < mbfl_eaw_table [ 0 ] . begin ) {\n return 0 ;\n }\n for ( i = 0 ;\n i < sizeof ( mbfl_eaw_table ) / sizeof ( mbfl_eaw_table [ 0 ] ) ;\n i ++ ) {\n if ( mbfl_eaw_table [ i ] . begin <= c && c <= mbfl_eaw_table [ i ] . end ) {\n return 1 ;\n }\n }\n return 0 ;\n }"}
{"idx": 13495, "target": 0, "func": "kadm5_ret_t krb5_copy_key_data_contents ( context , from , to ) krb5_context context ;\n krb5_key_data * from , * to ;\n {\n int i , idx ;\n * to = * from ;\n idx = ( from -> key_data_ver == 1 ? 1 : 2 ) ;\n for ( i = 0 ;\n i < idx ;\n i ++ ) {\n if ( from -> key_data_length [ i ] ) {\n to -> key_data_contents [ i ] = malloc ( from -> key_data_length [ i ] ) ;\n if ( to -> key_data_contents [ i ] == NULL ) {\n for ( i = 0 ;\n i < idx ;\n i ++ ) {\n if ( to -> key_data_contents [ i ] ) {\n memset ( to -> key_data_contents [ i ] , 0 , to -> key_data_length [ i ] ) ;\n free ( to -> key_data_contents [ i ] ) ;\n }\n }\n return ENOMEM ;\n }\n memcpy ( to -> key_data_contents [ i ] , from -> key_data_contents [ i ] , from -> key_data_length [ i ] ) ;\n }\n }\n return 0 ;\n }"}
{"idx": 13496, "target": 0, "func": "void TSHttpTxnIntercept ( TSCont contp , TSHttpTxn txnp ) {\n HttpSM * http_sm = ( HttpSM * ) txnp ;\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_continuation ( contp ) == TS_SUCCESS ) ;\n http_sm -> plugin_tunnel_type = HTTP_PLUGIN_AS_INTERCEPT ;\n http_sm -> plugin_tunnel = PluginVCCore : : alloc ( ( INKContInternal * ) contp ) ;\n }"}
{"idx": 13497, "target": 0, "func": "static void dissect_zcl_color_control_move_to_hue ( tvbuff_t * tvb , proto_tree * tree , guint * offset , gboolean enhanced ) {\n if ( enhanced ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_enhanced_hue , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n }\n else {\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_hue , tvb , * offset , 1 , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n }\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_direction , tvb , * offset , 1 , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_transit_time , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n }"}
{"idx": 13498, "target": 1, "func": "extern int name ( int ) __THROW __exctype ( isalnum ) ;\n __exctype ( isalpha ) ;\n __exctype ( iscntrl ) ;\n __exctype ( isdigit ) ;\n __exctype ( islower ) ;\n __exctype ( isgraph ) ;\n __exctype ( isprint ) ;\n __exctype ( ispunct ) ;\n __exctype ( isspace ) ;\n __exctype ( isupper )"}
{"idx": 13499, "target": 0, "func": "extern int name ( int ) __THROW __exctype ( isalnum ) ;\n __exctype ( isalpha ) ;\n __exctype ( iscntrl )"}
{"idx": 13500, "target": 0, "func": "SPL_METHOD ( SplFileObject , eof ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n RETURN_BOOL ( php_stream_eof ( intern -> u . file . stream ) ) ;\n }"}
{"idx": 13501, "target": 0, "func": "static inline int pfkey_xfrm_policy2sec_ctx_size ( const struct xfrm_policy * xp ) {\n struct xfrm_sec_ctx * xfrm_ctx = xp -> security ;\n if ( xfrm_ctx ) {\n int len = sizeof ( struct sadb_x_sec_ctx ) ;\n len += xfrm_ctx -> ctx_len ;\n return PFKEY_ALIGN8 ( len ) ;\n }\n return 0 ;\n }"}
{"idx": 13502, "target": 0, "func": "int qemuMonitorTextSetVNCPassword ( qemuMonitorPtr mon , const char * password ) {\n char * info = NULL ;\n if ( qemuMonitorTextCommandWithHandler ( mon , \"change vnc password\" , qemuMonitorSendVNCPassphrase , ( char * ) password , - 1 , & info ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"setting VNC password failed\" ) ) ;\n return - 1 ;\n }\n VIR_FREE ( info ) ;\n return 0 ;\n }"}
{"idx": 13503, "target": 0, "func": "TEST_F ( HistoryQuickProviderTest , MultiMatch ) {\n std : : vector < std : : string > expected_urls ;\n expected_urls . push_back ( \"http://foo.com/\" ) ;\n expected_urls . push_back ( \"http://foo.com/dir/another/\" ) ;\n expected_urls . push_back ( \"http://foo.com/dir/another/again/\" ) ;\n RunTest ( ASCIIToUTF16 ( \"foo\" ) , false , expected_urls , true , ASCIIToUTF16 ( \"foo.com\" ) , ASCIIToUTF16 ( \".com\" ) ) ;\n }"}
{"idx": 13504, "target": 1, "func": "static int64_t rd_pick_intra_sub_8x8_y_mode ( VP9_COMP * cpi , MACROBLOCK * mb , int * rate , int * rate_y , int64_t * distortion , int64_t best_rd ) {\n int i , j ;\n const MACROBLOCKD * const xd = & mb -> e_mbd ;\n MODE_INFO * const mic = xd -> mi [ 0 ] ;\n const MODE_INFO * above_mi = xd -> mi [ - xd -> mi_stride ] ;\n const MODE_INFO * left_mi = xd -> left_available ? xd -> mi [ - 1 ] : NULL ;\n const BLOCK_SIZE bsize = xd -> mi [ 0 ] -> mbmi . sb_type ;\n const int num_4x4_blocks_wide = num_4x4_blocks_wide_lookup [ bsize ] ;\n const int num_4x4_blocks_high = num_4x4_blocks_high_lookup [ bsize ] ;\n int idx , idy ;\n int cost = 0 ;\n int64_t total_distortion = 0 ;\n int tot_rate_y = 0 ;\n int64_t total_rd = 0 ;\n ENTROPY_CONTEXT t_above [ 4 ] , t_left [ 4 ] ;\n const int * bmode_costs = cpi -> mbmode_cost ;\n vpx_memcpy ( t_above , xd -> plane [ 0 ] . above_context , sizeof ( t_above ) ) ;\n vpx_memcpy ( t_left , xd -> plane [ 0 ] . left_context , sizeof ( t_left ) ) ;\n for ( idy = 0 ;\n idy < 2 ;\n idy += num_4x4_blocks_high ) {\n for ( idx = 0 ;\n idx < 2 ;\n idx += num_4x4_blocks_wide ) {\n PREDICTION_MODE best_mode = DC_PRED ;\n int r = INT_MAX , ry = INT_MAX ;\n int64_t d = INT64_MAX , this_rd = INT64_MAX ;\n i = idy * 2 + idx ;\n if ( cpi -> common . frame_type == KEY_FRAME ) {\n const PREDICTION_MODE A = vp9_above_block_mode ( mic , above_mi , i ) ;\n const PREDICTION_MODE L = vp9_left_block_mode ( mic , left_mi , i ) ;\n bmode_costs = cpi -> y_mode_costs [ A ] [ L ] ;\n }\n this_rd = rd_pick_intra4x4block ( cpi , mb , i , & best_mode , bmode_costs , t_above + idx , t_left + idy , & r , & ry , & d , bsize , best_rd - total_rd ) ;\n if ( this_rd >= best_rd - total_rd ) return INT64_MAX ;\n total_rd += this_rd ;\n cost += r ;\n total_distortion += d ;\n tot_rate_y += ry ;\n mic -> bmi [ i ] . as_mode = best_mode ;\n for ( j = 1 ;\n j < num_4x4_blocks_high ;\n ++ j ) mic -> bmi [ i + j * 2 ] . as_mode = best_mode ;\n for ( j = 1 ;\n j < num_4x4_blocks_wide ;\n ++ j ) mic -> bmi [ i + j ] . as_mode = best_mode ;\n if ( total_rd >= best_rd ) return INT64_MAX ;\n }\n }\n * rate = cost ;\n * rate_y = tot_rate_y ;\n * distortion = total_distortion ;\n mic -> mbmi . mode = mic -> bmi [ 3 ] . as_mode ;\n return RDCOST ( mb -> rdmult , mb -> rddiv , cost , total_distortion ) ;\n }"}
{"idx": 13505, "target": 0, "func": "static void thumbnail_loader_size_prepared ( GdkPixbufLoader * loader , int width , int height , gpointer user_data ) {\n int max_thumbnail_size ;\n double aspect_ratio ;\n aspect_ratio = ( ( double ) width ) / height ;\n max_thumbnail_size = NAUTILUS_CANVAS_ICON_SIZE_LARGER * cached_thumbnail_size / NAUTILUS_CANVAS_ICON_SIZE_SMALL ;\n if ( MAX ( width , height ) > max_thumbnail_size ) {\n if ( width > height ) {\n width = max_thumbnail_size ;\n height = width / aspect_ratio ;\n }\n else {\n height = max_thumbnail_size ;\n width = height * aspect_ratio ;\n }\n gdk_pixbuf_loader_set_size ( loader , width , height ) ;\n }\n }"}
{"idx": 13506, "target": 1, "func": "static inline int h263_mv4_search ( MpegEncContext * s , int mx , int my , int shift ) {\n MotionEstContext * const c = & s -> me ;\n const int size = 1 ;\n const int h = 8 ;\n int block ;\n int P [ 10 ] [ 2 ] ;\n int dmin_sum = 0 , mx4_sum = 0 , my4_sum = 0 ;\n int same = 1 ;\n const int stride = c -> stride ;\n uint8_t * mv_penalty = c -> current_mv_penalty ;\n init_mv4_ref ( c ) ;\n for ( block = 0 ;\n block < 4 ;\n block ++ ) {\n int mx4 , my4 ;\n int pred_x4 , pred_y4 ;\n int dmin4 ;\n static const int off [ 4 ] = {\n 2 , 1 , 1 , - 1 }\n ;\n const int mot_stride = s -> b8_stride ;\n const int mot_xy = s -> block_index [ block ] ;\n P_LEFT [ 0 ] = s -> current_picture . f . motion_val [ 0 ] [ mot_xy - 1 ] [ 0 ] ;\n P_LEFT [ 1 ] = s -> current_picture . f . motion_val [ 0 ] [ mot_xy - 1 ] [ 1 ] ;\n if ( P_LEFT [ 0 ] > ( c -> xmax << shift ) ) P_LEFT [ 0 ] = ( c -> xmax << shift ) ;\n if ( s -> first_slice_line && block < 2 ) {\n c -> pred_x = pred_x4 = P_LEFT [ 0 ] ;\n c -> pred_y = pred_y4 = P_LEFT [ 1 ] ;\n }\n else {\n P_TOP [ 0 ] = s -> current_picture . f . motion_val [ 0 ] [ mot_xy - mot_stride ] [ 0 ] ;\n P_TOP [ 1 ] = s -> current_picture . f . motion_val [ 0 ] [ mot_xy - mot_stride ] [ 1 ] ;\n P_TOPRIGHT [ 0 ] = s -> current_picture . f . motion_val [ 0 ] [ mot_xy - mot_stride + off [ block ] ] [ 0 ] ;\n P_TOPRIGHT [ 1 ] = s -> current_picture . f . motion_val [ 0 ] [ mot_xy - mot_stride + off [ block ] ] [ 1 ] ;\n if ( P_TOP [ 1 ] > ( c -> ymax << shift ) ) P_TOP [ 1 ] = ( c -> ymax << shift ) ;\n if ( P_TOPRIGHT [ 0 ] < ( c -> xmin << shift ) ) P_TOPRIGHT [ 0 ] = ( c -> xmin << shift ) ;\n if ( P_TOPRIGHT [ 0 ] > ( c -> xmax << shift ) ) P_TOPRIGHT [ 0 ] = ( c -> xmax << shift ) ;\n if ( P_TOPRIGHT [ 1 ] > ( c -> ymax << shift ) ) P_TOPRIGHT [ 1 ] = ( c -> ymax << shift ) ;\n P_MEDIAN [ 0 ] = mid_pred ( P_LEFT [ 0 ] , P_TOP [ 0 ] , P_TOPRIGHT [ 0 ] ) ;\n P_MEDIAN [ 1 ] = mid_pred ( P_LEFT [ 1 ] , P_TOP [ 1 ] , P_TOPRIGHT [ 1 ] ) ;\n c -> pred_x = pred_x4 = P_MEDIAN [ 0 ] ;\n c -> pred_y = pred_y4 = P_MEDIAN [ 1 ] ;\n }\n P_MV1 [ 0 ] = mx ;\n P_MV1 [ 1 ] = my ;\n dmin4 = epzs_motion_search4 ( s , & mx4 , & my4 , P , block , block , s -> p_mv_table , ( 1 << 16 ) >> shift ) ;\n dmin4 = c -> sub_motion_search ( s , & mx4 , & my4 , dmin4 , block , block , size , h ) ;\n if ( s -> dsp . me_sub_cmp [ 0 ] != s -> dsp . mb_cmp [ 0 ] ) {\n int dxy ;\n const int offset = ( ( block & 1 ) + ( block >> 1 ) * stride ) * 8 ;\n uint8_t * dest_y = c -> scratchpad + offset ;\n if ( s -> quarter_sample ) {\n uint8_t * ref = c -> ref [ block ] [ 0 ] + ( mx4 >> 2 ) + ( my4 >> 2 ) * stride ;\n dxy = ( ( my4 & 3 ) << 2 ) | ( mx4 & 3 ) ;\n if ( s -> no_rounding ) s -> dsp . put_no_rnd_qpel_pixels_tab [ 1 ] [ dxy ] ( dest_y , ref , stride ) ;\n else s -> dsp . put_qpel_pixels_tab [ 1 ] [ dxy ] ( dest_y , ref , stride ) ;\n }\n else {\n uint8_t * ref = c -> ref [ block ] [ 0 ] + ( mx4 >> 1 ) + ( my4 >> 1 ) * stride ;\n dxy = ( ( my4 & 1 ) << 1 ) | ( mx4 & 1 ) ;\n if ( s -> no_rounding ) s -> dsp . put_no_rnd_pixels_tab [ 1 ] [ dxy ] ( dest_y , ref , stride , h ) ;\n else s -> dsp . put_pixels_tab [ 1 ] [ dxy ] ( dest_y , ref , stride , h ) ;\n }\n dmin_sum += ( mv_penalty [ mx4 - pred_x4 ] + mv_penalty [ my4 - pred_y4 ] ) * c -> mb_penalty_factor ;\n }\n else dmin_sum += dmin4 ;\n if ( s -> quarter_sample ) {\n mx4_sum += mx4 / 2 ;\n my4_sum += my4 / 2 ;\n }\n else {\n mx4_sum += mx4 ;\n my4_sum += my4 ;\n }\n s -> current_picture . f . motion_val [ 0 ] [ s -> block_index [ block ] ] [ 0 ] = mx4 ;\n s -> current_picture . f . motion_val [ 0 ] [ s -> block_index [ block ] ] [ 1 ] = my4 ;\n if ( mx4 != mx || my4 != my ) same = 0 ;\n }\n if ( same ) return INT_MAX ;\n if ( s -> dsp . me_sub_cmp [ 0 ] != s -> dsp . mb_cmp [ 0 ] ) {\n dmin_sum += s -> dsp . mb_cmp [ 0 ] ( s , s -> new_picture . f . data [ 0 ] + s -> mb_x * 16 + s -> mb_y * 16 * stride , c -> scratchpad , stride , 16 ) ;\n }\n if ( c -> avctx -> mb_cmp & FF_CMP_CHROMA ) {\n int dxy ;\n int mx , my ;\n int offset ;\n mx = ff_h263_round_chroma ( mx4_sum ) ;\n my = ff_h263_round_chroma ( my4_sum ) ;\n dxy = ( ( my & 1 ) << 1 ) | ( mx & 1 ) ;\n offset = ( s -> mb_x * 8 + ( mx >> 1 ) ) + ( s -> mb_y * 8 + ( my >> 1 ) ) * s -> uvlinesize ;\n if ( s -> no_rounding ) {\n s -> dsp . put_no_rnd_pixels_tab [ 1 ] [ dxy ] ( c -> scratchpad , s -> last_picture . f . data [ 1 ] + offset , s -> uvlinesize , 8 ) ;\n s -> dsp . put_no_rnd_pixels_tab [ 1 ] [ dxy ] ( c -> scratchpad + 8 , s -> last_picture . f . data [ 2 ] + offset , s -> uvlinesize , 8 ) ;\n }\n else {\n s -> dsp . put_pixels_tab [ 1 ] [ dxy ] ( c -> scratchpad , s -> last_picture . f . data [ 1 ] + offset , s -> uvlinesize , 8 ) ;\n s -> dsp . put_pixels_tab [ 1 ] [ dxy ] ( c -> scratchpad + 8 , s -> last_picture . f . data [ 2 ] + offset , s -> uvlinesize , 8 ) ;\n }\n dmin_sum += s -> dsp . mb_cmp [ 1 ] ( s , s -> new_picture . f . data [ 1 ] + s -> mb_x * 8 + s -> mb_y * 8 * s -> uvlinesize , c -> scratchpad , s -> uvlinesize , 8 ) ;\n dmin_sum += s -> dsp . mb_cmp [ 1 ] ( s , s -> new_picture . f . data [ 2 ] + s -> mb_x * 8 + s -> mb_y * 8 * s -> uvlinesize , c -> scratchpad + 8 , s -> uvlinesize , 8 ) ;\n }\n c -> pred_x = mx ;\n c -> pred_y = my ;\n switch ( c -> avctx -> mb_cmp & 0xFF ) {\n case FF_CMP_RD : return dmin_sum ;\n default : return dmin_sum + 11 * c -> mb_penalty_factor ;\n }\n }"}
{"idx": 13507, "target": 1, "func": "static VALUE ossl_asn1_decode0 ( unsigned char * * pp , long length , long * offset , int depth , int yield , long * num_read ) {\n unsigned char * start , * p ;\n const unsigned char * p0 ;\n long len = 0 , inner_read = 0 , off = * offset , hlen ;\n int tag , tc , j ;\n VALUE asn1data , tag_class ;\n p = * pp ;\n start = p ;\n p0 = p ;\n j = ASN1_get_object ( & p0 , & len , & tag , & tc , length ) ;\n p = ( unsigned char * ) p0 ;\n if ( j & 0x80 ) ossl_raise ( eASN1Error , NULL ) ;\n if ( len > length ) ossl_raise ( eASN1Error , \"value is too short\" ) ;\n if ( ( tc & V_ASN1_PRIVATE ) == V_ASN1_PRIVATE ) tag_class = sym_PRIVATE ;\n else if ( ( tc & V_ASN1_CONTEXT_SPECIFIC ) == V_ASN1_CONTEXT_SPECIFIC ) tag_class = sym_CONTEXT_SPECIFIC ;\n else if ( ( tc & V_ASN1_APPLICATION ) == V_ASN1_APPLICATION ) tag_class = sym_APPLICATION ;\n else tag_class = sym_UNIVERSAL ;\n hlen = p - start ;\n if ( yield ) {\n VALUE arg = rb_ary_new ( ) ;\n rb_ary_push ( arg , LONG2NUM ( depth ) ) ;\n rb_ary_push ( arg , LONG2NUM ( * offset ) ) ;\n rb_ary_push ( arg , LONG2NUM ( hlen ) ) ;\n rb_ary_push ( arg , LONG2NUM ( len ) ) ;\n rb_ary_push ( arg , ( j & V_ASN1_CONSTRUCTED ) ? Qtrue : Qfalse ) ;\n rb_ary_push ( arg , ossl_asn1_class2sym ( tc ) ) ;\n rb_ary_push ( arg , INT2NUM ( tag ) ) ;\n rb_yield ( arg ) ;\n }\n if ( j & V_ASN1_CONSTRUCTED ) {\n * pp += hlen ;\n off += hlen ;\n asn1data = int_ossl_asn1_decode0_cons ( pp , length , len , & off , depth , yield , j , tag , tag_class , & inner_read ) ;\n inner_read += hlen ;\n }\n else {\n if ( ( j & 0x01 ) && ( len == 0 ) ) ossl_raise ( eASN1Error , \"Infinite length for primitive value\" ) ;\n asn1data = int_ossl_asn1_decode0_prim ( pp , len , hlen , tag , tag_class , & inner_read ) ;\n off += hlen + len ;\n }\n if ( num_read ) * num_read = inner_read ;\n if ( len != 0 && inner_read != hlen + len ) {\n ossl_raise ( eASN1Error , \"Type mismatch. Bytes read: %ld Bytes available: %ld\" , inner_read , hlen + len ) ;\n }\n * offset = off ;\n return asn1data ;\n }"}
{"idx": 13508, "target": 0, "func": "static inline int get_hash_algo ( const char * s , size_t n ) {\n static const struct {\n const char * name ;\n int algo ;\n }\n hashnames [ ] = {\n {\n \"sha1\" , GCRY_MD_SHA1 }\n , {\n \"md5\" , GCRY_MD_MD5 }\n , {\n \"sha256\" , GCRY_MD_SHA256 }\n , {\n \"ripemd160\" , GCRY_MD_RMD160 }\n , {\n \"rmd160\" , GCRY_MD_RMD160 }\n , {\n \"sha384\" , GCRY_MD_SHA384 }\n , {\n \"sha512\" , GCRY_MD_SHA512 }\n , {\n \"sha224\" , GCRY_MD_SHA224 }\n , {\n \"md2\" , GCRY_MD_MD2 }\n , {\n \"md4\" , GCRY_MD_MD4 }\n , {\n \"tiger\" , GCRY_MD_TIGER }\n , {\n \"haval\" , GCRY_MD_HAVAL }\n , {\n NULL , 0 }\n }\n ;\n int algo ;\n int i ;\n for ( i = 0 ;\n hashnames [ i ] . name ;\n i ++ ) {\n if ( strlen ( hashnames [ i ] . name ) == n && ! memcmp ( hashnames [ i ] . name , s , n ) ) break ;\n }\n if ( hashnames [ i ] . name ) algo = hashnames [ i ] . algo ;\n else {\n char * tmpname ;\n tmpname = gcry_malloc ( n + 1 ) ;\n if ( ! tmpname ) algo = 0 ;\n else {\n memcpy ( tmpname , s , n ) ;\n tmpname [ n ] = 0 ;\n algo = gcry_md_map_name ( tmpname ) ;\n gcry_free ( tmpname ) ;\n }\n }\n return algo ;\n }"}
{"idx": 13509, "target": 0, "func": "static void dumpmissingglyph ( SplineFont * sf , struct glyphinfo * gi , int fixedwidth ) {\n struct glyphhead gh ;\n BasePoint bp [ 10 ] ;\n uint8 instrs [ 50 ] ;\n int stemcvt , stem ;\n char * stempt ;\n stem = 0 ;\n if ( sf -> private != NULL && ( stempt = PSDictHasEntry ( sf -> private , \"StdVW\" ) ) != NULL ) stem = strtod ( stempt , NULL ) ;\n else if ( sf -> private != NULL && ( stempt = PSDictHasEntry ( sf -> private , \"StdHW\" ) ) != NULL ) stem = strtod ( stempt , NULL ) ;\n if ( stem <= 0 ) stem = ( sf -> ascent + sf -> descent ) / 30 ;\n gi -> pointcounts [ gi -> next_glyph ] = 8 ;\n gi -> loca [ gi -> next_glyph ++ ] = ftell ( gi -> glyphs ) ;\n gi -> maxp -> maxContours = 2 ;\n gh . numContours = 2 ;\n gh . ymin = 0 ;\n gh . ymax = 2 * ( sf -> ascent + sf -> descent ) / 3 ;\n gh . xmax = 5 * stem + ( sf -> ascent + sf -> descent ) / 10 ;\n gh . xmin = stem ;\n gh . xmax += stem ;\n if ( gh . ymax > sf -> ascent ) gh . ymax = sf -> ascent ;\n dumpghstruct ( gi , & gh ) ;\n bp [ 0 ] . x = stem ;\n bp [ 0 ] . y = 0 ;\n bp [ 1 ] . x = stem ;\n bp [ 1 ] . y = gh . ymax ;\n bp [ 2 ] . x = gh . xmax ;\n bp [ 2 ] . y = gh . ymax ;\n bp [ 3 ] . x = gh . xmax ;\n bp [ 3 ] . y = 0 ;\n bp [ 4 ] . x = 2 * stem ;\n bp [ 4 ] . y = stem ;\n bp [ 5 ] . x = gh . xmax - stem ;\n bp [ 5 ] . y = stem ;\n bp [ 6 ] . x = gh . xmax - stem ;\n bp [ 6 ] . y = gh . ymax - stem ;\n bp [ 7 ] . x = 2 * stem ;\n bp [ 7 ] . y = gh . ymax - stem ;\n if ( ! gi -> ttc_composite_font ) {\n stemcvt = TTF_getcvtval ( gi -> sf , stem ) ;\n instrs [ 0 ] = 0xb1 ;\n instrs [ 1 ] = 1 ;\n instrs [ 2 ] = 0 ;\n instrs [ 3 ] = 0x2f ;\n instrs [ 4 ] = 0x3c ;\n instrs [ 5 ] = 0xb2 ;\n instrs [ 6 ] = 7 ;\n instrs [ 7 ] = 4 ;\n instrs [ 8 ] = stemcvt ;\n instrs [ 9 ] = 0xe0 + 0x0d ;\n instrs [ 10 ] = 0x32 ;\n instrs [ 11 ] = 0xb1 ;\n instrs [ 12 ] = 6 ;\n instrs [ 13 ] = 5 ;\n instrs [ 14 ] = 0xc0 + 0x1c ;\n instrs [ 15 ] = 0x3c ;\n instrs [ 16 ] = 0xb2 ;\n instrs [ 17 ] = 3 ;\n instrs [ 18 ] = 2 ;\n instrs [ 19 ] = stemcvt ;\n instrs [ 20 ] = 0xe0 + 0x0d ;\n instrs [ 21 ] = 0x32 ;\n instrs [ 22 ] = 0x00 ;\n instrs [ 23 ] = 0xb1 ;\n instrs [ 24 ] = 3 ;\n instrs [ 25 ] = 0 ;\n instrs [ 26 ] = 0x2f ;\n instrs [ 27 ] = 0x3c ;\n instrs [ 28 ] = 0xb2 ;\n instrs [ 29 ] = 5 ;\n instrs [ 30 ] = 4 ;\n instrs [ 31 ] = stemcvt ;\n instrs [ 32 ] = 0xe0 + 0x0d ;\n instrs [ 33 ] = 0x32 ;\n instrs [ 34 ] = 0xb2 ;\n instrs [ 35 ] = 7 ;\n instrs [ 36 ] = 6 ;\n instrs [ 37 ] = TTF_getcvtval ( gi -> sf , bp [ 6 ] . y ) ;\n instrs [ 38 ] = 0xe0 + 0x1c ;\n instrs [ 39 ] = 0x3c ;\n instrs [ 40 ] = 0xb2 ;\n instrs [ 41 ] = 1 ;\n instrs [ 42 ] = 2 ;\n instrs [ 43 ] = stemcvt ;\n instrs [ 44 ] = 0xe0 + 0x0d ;\n instrs [ 45 ] = 0x32 ;\n }\n putshort ( gi -> glyphs , 4 - 1 ) ;\n putshort ( gi -> glyphs , 8 - 1 ) ;\n if ( ! gi -> ttc_composite_font ) dumpinstrs ( gi , instrs , 46 ) ;\n else dumpinstrs ( gi , NULL , 0 ) ;\n dumppointarrays ( gi , bp , NULL , 8 ) ;\n if ( fixedwidth <= 0 ) putshort ( gi -> hmtx , gh . xmax + 2 * stem ) ;\n else putshort ( gi -> hmtx , fixedwidth ) ;\n putshort ( gi -> hmtx , stem ) ;\n if ( sf -> hasvmetrics ) {\n putshort ( gi -> vmtx , sf -> ascent + sf -> descent ) ;\n putshort ( gi -> vmtx , gh . ymax ) ;\n }\n }"}
{"idx": 13510, "target": 0, "func": "static uint32_t vmport_cmd_ram_size ( void * opaque , uint32_t addr ) {\n X86CPU * cpu = X86_CPU ( current_cpu ) ;\n cpu -> env . regs [ R_EBX ] = 0x1177 ;\n return ram_size ;\n }"}
{"idx": 13511, "target": 0, "func": "gcry_error_t gcry_pk_testkey ( gcry_sexp_t s_key ) {\n gcry_module_t module = NULL ;\n gcry_mpi_t * key = NULL ;\n gcry_err_code_t rc ;\n REGISTER_DEFAULT_PUBKEYS ;\n rc = sexp_to_key ( s_key , 1 , 0 , NULL , & key , & module , NULL ) ;\n if ( ! rc ) {\n rc = pubkey_check_secret_key ( module -> mod_id , key ) ;\n release_mpi_array ( key ) ;\n gcry_free ( key ) ;\n }\n return gcry_error ( rc ) ;\n }"}
{"idx": 13512, "target": 0, "func": "static int dissect_spoolss_doc_info_data ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n if ( di -> conformant_run ) return offset ;\n return dissect_spoolss_doc_info_1 ( tvb , offset , pinfo , tree , di , drep ) ;\n }"}
{"idx": 13513, "target": 0, "func": "static inline void invalidate_cursor1 ( CirrusVGAState * s ) {\n if ( s -> last_hw_cursor_size ) {\n vga_invalidate_scanlines ( & s -> vga , s -> last_hw_cursor_y + s -> last_hw_cursor_y_start , s -> last_hw_cursor_y + s -> last_hw_cursor_y_end ) ;\n }\n }"}
{"idx": 13514, "target": 0, "func": "static void scale_and_extend_source ( YV12_BUFFER_CONFIG * sd , VP8_COMP * cpi ) {\n VP8_COMMON * cm = & cpi -> common ;\n if ( cm -> horiz_scale != 0 || cm -> vert_scale != 0 ) {\n # if CONFIG_SPATIAL_RESAMPLING int UNINITIALIZED_IS_SAFE ( hr ) , UNINITIALIZED_IS_SAFE ( hs ) ;\n int UNINITIALIZED_IS_SAFE ( vr ) , UNINITIALIZED_IS_SAFE ( vs ) ;\n int tmp_height ;\n if ( cm -> vert_scale == 3 ) tmp_height = 9 ;\n else tmp_height = 11 ;\n Scale2Ratio ( cm -> horiz_scale , & hr , & hs ) ;\n Scale2Ratio ( cm -> vert_scale , & vr , & vs ) ;\n vpx_scale_frame ( sd , & cpi -> scaled_source , cm -> temp_scale_frame . y_buffer , tmp_height , hs , hr , vs , vr , 0 ) ;\n vp8_yv12_extend_frame_borders ( & cpi -> scaled_source ) ;\n cpi -> Source = & cpi -> scaled_source ;\n # endif }\n else cpi -> Source = sd ;\n }"}
{"idx": 13515, "target": 0, "func": "static const char * U_CALLCONV _UTF7GetName ( const UConverter * cnv ) {\n switch ( cnv -> fromUnicodeStatus >> 28 ) {\n case 1 : return \"UTF-7,version=1\" ;\n default : return \"UTF-7\" ;\n }\n }"}
{"idx": 13516, "target": 0, "func": "static void vvalue_strbuf_append_i1 ( wmem_strbuf_t * strbuf , void * ptr ) {\n gint8 i1 = * ( gint8 * ) ptr ;\n wmem_strbuf_append_printf ( strbuf , \"%d\" , ( int ) i1 ) ;\n }"}
{"idx": 13517, "target": 0, "func": "static int trellis_get_coeff_context ( const int16_t * scan , const int16_t * nb , int idx , int token , uint8_t * token_cache ) {\n int bak = token_cache [ scan [ idx ] ] , pt ;\n token_cache [ scan [ idx ] ] = vp9_pt_energy_class [ token ] ;\n pt = get_coef_context ( nb , token_cache , idx + 1 ) ;\n token_cache [ scan [ idx ] ] = bak ;\n return pt ;\n }"}
{"idx": 13518, "target": 0, "func": "int test_small_prime ( BIO * bp , BN_CTX * ctx ) {\n static const int bits = 10 ;\n int ret = 0 ;\n BIGNUM r ;\n BN_init ( & r ) ;\n if ( ! BN_generate_prime_ex ( & r , bits , 0 , NULL , NULL , NULL ) ) goto err ;\n if ( BN_num_bits ( & r ) != bits ) {\n BIO_printf ( bp , \"Expected %d bit prime, got %d bit number\\n\" , bits , BN_num_bits ( & r ) ) ;\n goto err ;\n }\n ret = 1 ;\n err : BN_clear ( & r ) ;\n return ret ;\n }"}
{"idx": 13519, "target": 0, "func": "static int pfkey_create ( struct net * net , struct socket * sock , int protocol , int kern ) {\n struct netns_pfkey * net_pfkey = net_generic ( net , pfkey_net_id ) ;\n struct sock * sk ;\n int err ;\n if ( ! ns_capable ( net -> user_ns , CAP_NET_ADMIN ) ) return - EPERM ;\n if ( sock -> type != SOCK_RAW ) return - ESOCKTNOSUPPORT ;\n if ( protocol != PF_KEY_V2 ) return - EPROTONOSUPPORT ;\n err = - ENOMEM ;\n sk = sk_alloc ( net , PF_KEY , GFP_KERNEL , & key_proto ) ;\n if ( sk == NULL ) goto out ;\n sock -> ops = & pfkey_ops ;\n sock_init_data ( sock , sk ) ;\n sk -> sk_family = PF_KEY ;\n sk -> sk_destruct = pfkey_sock_destruct ;\n atomic_inc ( & net_pfkey -> socks_nr ) ;\n pfkey_insert ( sk ) ;\n return 0 ;\n out : return err ;\n }"}
{"idx": 13520, "target": 0, "func": "TEST_F ( WebFrameSimTest , DoubleTapZoomWhileScrolled ) {\n UseAndroidSettings ( ) ;\n WebView ( ) . Resize ( WebSize ( 490 , 500 ) ) ;\n WebView ( ) . EnableFakePageScaleAnimationForTesting ( true ) ;\n WebView ( ) . GetSettings ( ) -> SetTextAutosizingEnabled ( false ) ;\n WebView ( ) . SetDefaultPageScaleLimits ( 0.5f , 4 ) ;\n SimRequest request ( \"https://example.com/test.html\" , \"text/html\" ) ;\n LoadURL ( \"https://example.com/test.html\" ) ;\n request . Complete ( R \"HTML( < ! DOCTYPE html > < style > : : - webkit - scrollbar {\n width : 0px ;\n height : 0px ;\n }\n body {\n margin : 0px ;\n width : 10000px ;\n height : 10000px ;\n }\n # target {\n position : absolute ;\n left : 2000px ;\n top : 3000px ;\n width : 100px ;\n height : 100px ;\n background - color : blue ;\n }\n < / style > < div id = \"target\" > < / div > ) HTML \");\n Compositor ( ) . BeginFrame ( ) ;\n LocalFrame * frame = ToLocalFrame ( WebView ( ) . GetPage ( ) -> MainFrame ( ) ) ;\n LocalFrameView * frame_view = frame -> View ( ) ;\n VisualViewport & visual_viewport = frame -> GetPage ( ) -> GetVisualViewport ( ) ;\n FloatRect target_rect_in_document ( 2000 , 3000 , 100 , 100 ) ;\n ASSERT_EQ ( 0.5f , visual_viewport . Scale ( ) ) ;\n frame_view -> GetScrollableArea ( ) -> SetScrollOffset ( ScrollOffset ( 2000 - 440 , 3000 - 450 ) , kProgrammaticScroll ) ;\n Element * target = GetDocument ( ) . QuerySelector ( \"#target\" ) ;\n DOMRect * rect = target -> getBoundingClientRect ( ) ;\n ASSERT_EQ ( 440 , rect -> left ( ) ) ;\n ASSERT_EQ ( 450 , rect -> top ( ) ) ;\n {\n WebView ( ) . AnimateDoubleTapZoom ( WebPoint ( 445 , 455 ) ) ;\n EXPECT_TRUE ( WebView ( ) . FakeDoubleTapAnimationPendingForTesting ( ) ) ;\n ScrollOffset new_offset = ToScrollOffset ( FloatPoint ( WebView ( ) . FakePageScaleAnimationTargetPositionForTesting ( ) ) ) ;\n float new_scale = WebView ( ) . FakePageScaleAnimationPageScaleForTesting ( ) ;\n visual_viewport . SetScale ( new_scale ) ;\n frame_view -> GetScrollableArea ( ) -> SetScrollOffset ( new_offset , kProgrammaticScroll ) ;\n EXPECT_FLOAT_EQ ( 1 , visual_viewport . Scale ( ) ) ;\n EXPECT_TRUE ( visual_viewport . VisibleRectInDocument ( ) . Contains ( target_rect_in_document ) ) ;\n }\n WebView ( ) . EnableFakePageScaleAnimationForTesting ( true ) ;\n {\n WebView ( ) . AnimateDoubleTapZoom ( WebPoint ( 445 , 455 ) ) ;\n EXPECT_TRUE ( WebView ( ) . FakeDoubleTapAnimationPendingForTesting ( ) ) ;\n FloatPoint target_offset ( WebView ( ) . FakePageScaleAnimationTargetPositionForTesting ( ) ) ;\n float new_scale = WebView ( ) . FakePageScaleAnimationPageScaleForTesting ( ) ;\n EXPECT_FLOAT_EQ ( 0.5f , new_scale ) ;\n EXPECT_TRUE ( target_rect_in_document . Contains ( target_offset ) ) ;\n }\n }"}
{"idx": 13521, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , TestGetHandlerFor ) {\n ProtocolHandler ph1 = CreateProtocolHandler ( \"test\" , \"test1\" ) ;\n ProtocolHandler ph2 = CreateProtocolHandler ( \"test\" , \"test2\" ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph2 ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph2 ) ;\n ASSERT_EQ ( ph2 , registry ( ) -> GetHandlerFor ( \"test\" ) ) ;\n ASSERT_TRUE ( registry ( ) -> IsHandledProtocol ( \"test\" ) ) ;\n }"}
{"idx": 13522, "target": 0, "func": "static int decode_cabac_intra_mb_type ( H264Context * h , int ctx_base , int intra_slice ) {\n uint8_t * state = & h -> cabac_state [ ctx_base ] ;\n int mb_type ;\n if ( intra_slice ) {\n int ctx = 0 ;\n if ( h -> left_type [ LTOP ] & ( MB_TYPE_INTRA16x16 | MB_TYPE_INTRA_PCM ) ) ctx ++ ;\n if ( h -> top_type & ( MB_TYPE_INTRA16x16 | MB_TYPE_INTRA_PCM ) ) ctx ++ ;\n if ( get_cabac_noinline ( & h -> cabac , & state [ ctx ] ) == 0 ) return 0 ;\n state += 2 ;\n }\n else {\n if ( get_cabac_noinline ( & h -> cabac , state ) == 0 ) return 0 ;\n }\n if ( get_cabac_terminate ( & h -> cabac ) ) return 25 ;\n mb_type = 1 ;\n mb_type += 12 * get_cabac_noinline ( & h -> cabac , & state [ 1 ] ) ;\n if ( get_cabac_noinline ( & h -> cabac , & state [ 2 ] ) ) mb_type += 4 + 4 * get_cabac_noinline ( & h -> cabac , & state [ 2 + intra_slice ] ) ;\n mb_type += 2 * get_cabac_noinline ( & h -> cabac , & state [ 3 + intra_slice ] ) ;\n mb_type += 1 * get_cabac_noinline ( & h -> cabac , & state [ 3 + 2 * intra_slice ] ) ;\n return mb_type ;\n }"}
{"idx": 13523, "target": 0, "func": "static const char * rsvp_conv_get_filter_type ( conv_item_t * conv , conv_filter_type_e filter _U_ ) {\n if ( ( filter == CONV_FT_SRC_ADDRESS ) && ( conv -> src_address . type == AT_IPv4 ) ) return \"ip.src\" ;\n if ( ( filter == CONV_FT_DST_ADDRESS ) && ( conv -> dst_address . type == AT_IPv4 ) ) return \"ip.dst\" ;\n if ( ( filter == CONV_FT_ANY_ADDRESS ) && ( conv -> src_address . type == AT_IPv4 ) ) return \"ip.addr\" ;\n return CONV_FILTER_INVALID ;\n }"}
{"idx": 13524, "target": 1, "func": "static void _LMBCSOpenWorker ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err , ulmbcs_byte_t OptGroup ) {\n UConverterDataLMBCS * extraInfo = _this -> extraInfo = ( UConverterDataLMBCS * ) uprv_malloc ( sizeof ( UConverterDataLMBCS ) ) ;\n if ( extraInfo != NULL ) {\n UConverterNamePieces stackPieces ;\n UConverterLoadArgs stackArgs = {\n ( int32_t ) sizeof ( UConverterLoadArgs ) }\n ;\n ulmbcs_byte_t i ;\n uprv_memset ( extraInfo , 0 , sizeof ( UConverterDataLMBCS ) ) ;\n stackArgs . onlyTestIsLoadable = pArgs -> onlyTestIsLoadable ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST && U_SUCCESS ( * err ) ;\n i ++ ) {\n if ( OptGroupByteToCPName [ i ] != NULL ) {\n extraInfo -> OptGrpConverter [ i ] = ucnv_loadSharedData ( OptGroupByteToCPName [ i ] , & stackPieces , & stackArgs , err ) ;\n }\n }\n if ( U_FAILURE ( * err ) || pArgs -> onlyTestIsLoadable ) {\n _LMBCSClose ( _this ) ;\n return ;\n }\n extraInfo -> OptGroup = OptGroup ;\n extraInfo -> localeConverterIndex = FindLMBCSLocale ( pArgs -> locale ) ;\n }\n else {\n * err = U_MEMORY_ALLOCATION_ERROR ;\n }\n }"}
{"idx": 13525, "target": 0, "func": "static PyObject * string_zfill ( PyStringObject * self , PyObject * args ) {\n Py_ssize_t fill ;\n PyObject * s ;\n char * p ;\n Py_ssize_t width ;\n if ( ! PyArg_ParseTuple ( args , \"n:zfill\" , & width ) ) return NULL ;\n if ( PyString_GET_SIZE ( self ) >= width ) {\n if ( PyString_CheckExact ( self ) ) {\n Py_INCREF ( self ) ;\n return ( PyObject * ) self ;\n }\n else return PyString_FromStringAndSize ( PyString_AS_STRING ( self ) , PyString_GET_SIZE ( self ) ) ;\n }\n fill = width - PyString_GET_SIZE ( self ) ;\n s = pad ( self , fill , 0 , '0' ) ;\n if ( s == NULL ) return NULL ;\n p = PyString_AS_STRING ( s ) ;\n if ( p [ fill ] == '+' || p [ fill ] == '-' ) {\n p [ 0 ] = p [ fill ] ;\n p [ fill ] = '0' ;\n }\n return ( PyObject * ) s ;\n }"}
{"idx": 13526, "target": 0, "func": "void dcc_resume_init ( void ) {\n signal_add ( \"ctcp msg dcc resume\" , ( SIGNAL_FUNC ) ctcp_msg_dcc_resume ) ;\n signal_add ( \"ctcp msg dcc accept\" , ( SIGNAL_FUNC ) ctcp_msg_dcc_accept ) ;\n command_bind ( \"dcc resume\" , NULL , ( SIGNAL_FUNC ) cmd_dcc_resume ) ;\n }"}
{"idx": 13527, "target": 0, "func": "static int dissect_h245_MaintenanceLoopReject ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MaintenanceLoopReject , MaintenanceLoopReject_sequence ) ;\n return offset ;\n }"}
{"idx": 13528, "target": 0, "func": "rfbBool rfbSendSupportedMessages ( rfbClientPtr cl ) {\n rfbFramebufferUpdateRectHeader rect ;\n rfbSupportedMessages msgs ;\n if ( cl -> ublen + sz_rfbFramebufferUpdateRectHeader + sz_rfbSupportedMessages > UPDATE_BUF_SIZE ) {\n if ( ! rfbSendUpdateBuf ( cl ) ) return FALSE ;\n }\n rect . encoding = Swap32IfLE ( rfbEncodingSupportedMessages ) ;\n rect . r . x = 0 ;\n rect . r . y = 0 ;\n rect . r . w = Swap16IfLE ( sz_rfbSupportedMessages ) ;\n rect . r . h = 0 ;\n memcpy ( & cl -> updateBuf [ cl -> ublen ] , ( char * ) & rect , sz_rfbFramebufferUpdateRectHeader ) ;\n cl -> ublen += sz_rfbFramebufferUpdateRectHeader ;\n memset ( ( char * ) & msgs , 0 , sz_rfbSupportedMessages ) ;\n rfbSetBit ( msgs . client2server , rfbSetPixelFormat ) ;\n rfbSetBit ( msgs . client2server , rfbFixColourMapEntries ) ;\n rfbSetBit ( msgs . client2server , rfbSetEncodings ) ;\n rfbSetBit ( msgs . client2server , rfbFramebufferUpdateRequest ) ;\n rfbSetBit ( msgs . client2server , rfbKeyEvent ) ;\n rfbSetBit ( msgs . client2server , rfbPointerEvent ) ;\n rfbSetBit ( msgs . client2server , rfbClientCutText ) ;\n rfbSetBit ( msgs . client2server , rfbFileTransfer ) ;\n rfbSetBit ( msgs . client2server , rfbSetScale ) ;\n rfbSetBit ( msgs . client2server , rfbPalmVNCSetScaleFactor ) ;\n rfbSetBit ( msgs . server2client , rfbFramebufferUpdate ) ;\n rfbSetBit ( msgs . server2client , rfbSetColourMapEntries ) ;\n rfbSetBit ( msgs . server2client , rfbBell ) ;\n rfbSetBit ( msgs . server2client , rfbServerCutText ) ;\n rfbSetBit ( msgs . server2client , rfbResizeFrameBuffer ) ;\n rfbSetBit ( msgs . server2client , rfbPalmVNCReSizeFrameBuffer ) ;\n if ( cl -> screen -> xvpHook ) {\n rfbSetBit ( msgs . client2server , rfbXvp ) ;\n rfbSetBit ( msgs . server2client , rfbXvp ) ;\n }\n memcpy ( & cl -> updateBuf [ cl -> ublen ] , ( char * ) & msgs , sz_rfbSupportedMessages ) ;\n cl -> ublen += sz_rfbSupportedMessages ;\n rfbStatRecordEncodingSent ( cl , rfbEncodingSupportedMessages , sz_rfbFramebufferUpdateRectHeader + sz_rfbSupportedMessages , sz_rfbFramebufferUpdateRectHeader + sz_rfbSupportedMessages ) ;\n if ( ! rfbSendUpdateBuf ( cl ) ) return FALSE ;\n return TRUE ;\n }"}
{"idx": 13529, "target": 0, "func": "void xps_clip ( xps_document * doc , const fz_matrix * ctm , xps_resource * dict , char * clip_att , fz_xml * clip_tag ) {\n fz_path * path ;\n int fill_rule = 0 ;\n if ( clip_att ) path = xps_parse_abbreviated_geometry ( doc , clip_att , & fill_rule ) ;\n else if ( clip_tag ) path = xps_parse_path_geometry ( doc , dict , clip_tag , 0 , & fill_rule ) ;\n else path = fz_new_path ( doc -> ctx ) ;\n fz_clip_path ( doc -> dev , path , NULL , fill_rule == 0 , ctm ) ;\n fz_free_path ( doc -> ctx , path ) ;\n }"}
{"idx": 13530, "target": 0, "func": "static int lag_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n LagarithContext * l = avctx -> priv_data ;\n ThreadFrame frame = {\n . f = data }\n ;\n AVFrame * const p = data ;\n uint8_t frametype = 0 ;\n uint32_t offset_gu = 0 , offset_bv = 0 , offset_ry = 9 ;\n uint32_t offs [ 4 ] ;\n uint8_t * srcs [ 4 ] , * dst ;\n int i , j , planes = 3 ;\n p -> key_frame = 1 ;\n frametype = buf [ 0 ] ;\n offset_gu = AV_RL32 ( buf + 1 ) ;\n offset_bv = AV_RL32 ( buf + 5 ) ;\n switch ( frametype ) {\n case FRAME_SOLID_RGBA : avctx -> pix_fmt = AV_PIX_FMT_RGB32 ;\n if ( ff_thread_get_buffer ( avctx , & frame , 0 ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return - 1 ;\n }\n dst = p -> data [ 0 ] ;\n for ( j = 0 ;\n j < avctx -> height ;\n j ++ ) {\n for ( i = 0 ;\n i < avctx -> width ;\n i ++ ) AV_WN32 ( dst + i * 4 , offset_gu ) ;\n dst += p -> linesize [ 0 ] ;\n }\n break ;\n case FRAME_ARITH_RGBA : avctx -> pix_fmt = AV_PIX_FMT_RGB32 ;\n planes = 4 ;\n offset_ry += 4 ;\n offs [ 3 ] = AV_RL32 ( buf + 9 ) ;\n case FRAME_ARITH_RGB24 : case FRAME_U_RGB24 : if ( frametype == FRAME_ARITH_RGB24 || frametype == FRAME_U_RGB24 ) avctx -> pix_fmt = AV_PIX_FMT_RGB24 ;\n if ( ff_thread_get_buffer ( avctx , & frame , 0 ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return - 1 ;\n }\n offs [ 0 ] = offset_bv ;\n offs [ 1 ] = offset_gu ;\n offs [ 2 ] = offset_ry ;\n if ( ! l -> rgb_planes ) {\n l -> rgb_stride = FFALIGN ( avctx -> width , 16 ) ;\n l -> rgb_planes = av_malloc ( l -> rgb_stride * avctx -> height * planes + 1 ) ;\n if ( ! l -> rgb_planes ) {\n av_log ( avctx , AV_LOG_ERROR , \"cannot allocate temporary buffer\\n\" ) ;\n return AVERROR ( ENOMEM ) ;\n }\n }\n for ( i = 0 ;\n i < planes ;\n i ++ ) srcs [ i ] = l -> rgb_planes + ( i + 1 ) * l -> rgb_stride * avctx -> height - l -> rgb_stride ;\n if ( offset_ry >= buf_size || offset_gu >= buf_size || offset_bv >= buf_size || ( planes == 4 && offs [ 3 ] >= buf_size ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid frame offsets\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( i = 0 ;\n i < planes ;\n i ++ ) lag_decode_arith_plane ( l , srcs [ i ] , avctx -> width , avctx -> height , - l -> rgb_stride , buf + offs [ i ] , buf_size - offs [ i ] ) ;\n dst = p -> data [ 0 ] ;\n for ( i = 0 ;\n i < planes ;\n i ++ ) srcs [ i ] = l -> rgb_planes + i * l -> rgb_stride * avctx -> height ;\n for ( j = 0 ;\n j < avctx -> height ;\n j ++ ) {\n for ( i = 0 ;\n i < avctx -> width ;\n i ++ ) {\n uint8_t r , g , b , a ;\n r = srcs [ 0 ] [ i ] ;\n g = srcs [ 1 ] [ i ] ;\n b = srcs [ 2 ] [ i ] ;\n r += g ;\n b += g ;\n if ( frametype == FRAME_ARITH_RGBA ) {\n a = srcs [ 3 ] [ i ] ;\n AV_WN32 ( dst + i * 4 , MKBETAG ( a , r , g , b ) ) ;\n }\n else {\n dst [ i * 3 + 0 ] = r ;\n dst [ i * 3 + 1 ] = g ;\n dst [ i * 3 + 2 ] = b ;\n }\n }\n dst += p -> linesize [ 0 ] ;\n for ( i = 0 ;\n i < planes ;\n i ++ ) srcs [ i ] += l -> rgb_stride ;\n }\n break ;\n case FRAME_ARITH_YUY2 : avctx -> pix_fmt = AV_PIX_FMT_YUV422P ;\n if ( ff_thread_get_buffer ( avctx , & frame , 0 ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return - 1 ;\n }\n if ( offset_ry >= buf_size || offset_gu >= buf_size || offset_bv >= buf_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid frame offsets\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n lag_decode_arith_plane ( l , p -> data [ 0 ] , avctx -> width , avctx -> height , p -> linesize [ 0 ] , buf + offset_ry , buf_size - offset_ry ) ;\n lag_decode_arith_plane ( l , p -> data [ 1 ] , avctx -> width / 2 , avctx -> height , p -> linesize [ 1 ] , buf + offset_gu , buf_size - offset_gu ) ;\n lag_decode_arith_plane ( l , p -> data [ 2 ] , avctx -> width / 2 , avctx -> height , p -> linesize [ 2 ] , buf + offset_bv , buf_size - offset_bv ) ;\n break ;\n case FRAME_ARITH_YV12 : avctx -> pix_fmt = AV_PIX_FMT_YUV420P ;\n if ( ff_thread_get_buffer ( avctx , & frame , 0 ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return - 1 ;\n }\n if ( offset_ry >= buf_size || offset_gu >= buf_size || offset_bv >= buf_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid frame offsets\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n lag_decode_arith_plane ( l , p -> data [ 0 ] , avctx -> width , avctx -> height , p -> linesize [ 0 ] , buf + offset_ry , buf_size - offset_ry ) ;\n lag_decode_arith_plane ( l , p -> data [ 2 ] , avctx -> width / 2 , avctx -> height / 2 , p -> linesize [ 2 ] , buf + offset_gu , buf_size - offset_gu ) ;\n lag_decode_arith_plane ( l , p -> data [ 1 ] , avctx -> width / 2 , avctx -> height / 2 , p -> linesize [ 1 ] , buf + offset_bv , buf_size - offset_bv ) ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"Unsupported Lagarith frame type: %#x\\n\" , frametype ) ;\n return - 1 ;\n }\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 13531, "target": 0, "func": "gboolean logcat_text_tag_dump_open ( wtap_dumper * wdh , int * err _U_ ) {\n struct dumper_t * dumper ;\n dumper = ( struct dumper_t * ) g_malloc ( sizeof ( struct dumper_t ) ) ;\n dumper -> type = DUMP_TAG ;\n wdh -> priv = dumper ;\n wdh -> subtype_write = logcat_dump_text ;\n wdh -> subtype_close = NULL ;\n return TRUE ;\n }"}
{"idx": 13532, "target": 0, "func": "static void dissect_zcl_groups_view_group_response ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n guint attr_uint ;\n guint8 * attr_string ;\n proto_tree_add_item ( tree , hf_zbee_zcl_groups_status , tvb , * offset , 1 , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_groups_group_id , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n attr_uint = tvb_get_guint8 ( tvb , * offset ) ;\n if ( attr_uint == 0xff ) attr_uint = 0 ;\n proto_tree_add_uint ( tree , hf_zbee_zcl_groups_attr_str_len , tvb , * offset , 1 , attr_uint ) ;\n * offset += 1 ;\n attr_string = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , * offset , attr_uint , ENC_ASCII ) ;\n proto_item_append_text ( tree , \", String: %s\" , attr_string ) ;\n proto_tree_add_string ( tree , hf_zbee_zcl_groups_attr_str , tvb , * offset , attr_uint , attr_string ) ;\n * offset += attr_uint ;\n }"}
{"idx": 13533, "target": 0, "func": "TEST_F ( TemplateURLTest , ExtractSearchTermsFromUTF8URL ) {\n TemplateURLData data ;\n data . SetURL ( \"http://utf-8.ru/?q={\nsearchTerms}\n\" ) ;\n data . alternate_urls . push_back ( \"http://utf-8.ru/#q={\nsearchTerms}\n\" ) ;\n data . alternate_urls . push_back ( \"http://utf-8.ru/path/{\nsearchTerms}\n\" ) ;\n TemplateURL url ( data ) ;\n base : : string16 result ;\n EXPECT_TRUE ( url . ExtractSearchTermsFromURL ( GURL ( \"http://utf-8.ru/?q=%D0%97%D0%B4%D1%80%D0%B0%D0%B2%D1%81%D1%82\" \"%D0%B2%D1%83%D0%B9,+%D0%BC%D0%B8%D1%80!\" ) , search_terms_data_ , & result ) ) ;\n EXPECT_EQ ( base : : WideToUTF16 ( L\"\\x0417\\x0434\\x0440\\x0430\\x0432\\x0441\\x0442\\x0432\\x0443\\x0439, \" L\"\\x043C\\x0438\\x0440!\" ) , result ) ;\n EXPECT_TRUE ( url . ExtractSearchTermsFromURL ( GURL ( \"http://utf-8.ru/#q=%D0%B4%D0%B2%D0%B0+%D1%81%D0%BB%D0%BE%D0%B2\" \"%D0%B0\" ) , search_terms_data_ , & result ) ) ;\n EXPECT_EQ ( base : : WideToUTF16 ( L\"\\x0434\\x0432\\x0430 \\x0441\\x043B\\x043E\\x0432\\x0430\" ) , result ) ;\n EXPECT_TRUE ( url . ExtractSearchTermsFromURL ( GURL ( \"http://utf-8.ru/path/%D0%B1%D1%83%D0%BA%D0%B2%D1%8B%20%D0%90%20\" \"%D0%B8%20A\" ) , search_terms_data_ , & result ) ) ;\n EXPECT_EQ ( base : : WideToUTF16 ( L\"\\x0431\\x0443\\x043A\\x0432\\x044B \\x0410 \\x0438 A\" ) , result ) ;\n }"}
{"idx": 13534, "target": 0, "func": "static void usbdev_remove ( struct usb_device * udev ) {\n struct usb_dev_state * ps ;\n struct siginfo sinfo ;\n while ( ! list_empty ( & udev -> filelist ) ) {\n ps = list_entry ( udev -> filelist . next , struct usb_dev_state , list ) ;\n destroy_all_async ( ps ) ;\n wake_up_all ( & ps -> wait ) ;\n list_del_init ( & ps -> list ) ;\n if ( ps -> discsignr ) {\n memset ( & sinfo , 0 , sizeof ( sinfo ) ) ;\n sinfo . si_signo = ps -> discsignr ;\n sinfo . si_errno = EPIPE ;\n sinfo . si_code = SI_ASYNCIO ;\n sinfo . si_addr = ps -> disccontext ;\n kill_pid_info_as_cred ( ps -> discsignr , & sinfo , ps -> disc_pid , ps -> cred , ps -> secid ) ;\n }\n }\n }"}
{"idx": 13535, "target": 0, "func": "static void ohci_register_types ( void ) {\n type_register_static ( & ohci_pci_info ) ;\n type_register_static ( & ohci_sysbus_info ) ;\n }"}
{"idx": 13536, "target": 1, "func": "static void * _conf_to_memberp ( TSOverridableConfigKey conf , OverridableHttpConfigParams * overridableHttpConfig , OverridableDataType * typep ) {\n OverridableDataType typ = OVERRIDABLE_TYPE_BYTE ;\n void * ret = nullptr ;\n switch ( conf ) {\n case TS_CONFIG_URL_REMAP_PRISTINE_HOST_HDR : ret = & overridableHttpConfig -> maintain_pristine_host_hdr ;\n break ;\n case TS_CONFIG_HTTP_CHUNKING_ENABLED : ret = & overridableHttpConfig -> chunking_enabled ;\n break ;\n case TS_CONFIG_HTTP_NEGATIVE_CACHING_ENABLED : ret = & overridableHttpConfig -> negative_caching_enabled ;\n break ;\n case TS_CONFIG_HTTP_NEGATIVE_CACHING_LIFETIME : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> negative_caching_lifetime ;\n break ;\n case TS_CONFIG_HTTP_CACHE_WHEN_TO_REVALIDATE : ret = & overridableHttpConfig -> cache_when_to_revalidate ;\n break ;\n case TS_CONFIG_HTTP_KEEP_ALIVE_ENABLED_IN : ret = & overridableHttpConfig -> keep_alive_enabled_in ;\n break ;\n case TS_CONFIG_HTTP_KEEP_ALIVE_ENABLED_OUT : ret = & overridableHttpConfig -> keep_alive_enabled_out ;\n break ;\n case TS_CONFIG_HTTP_KEEP_ALIVE_POST_OUT : ret = & overridableHttpConfig -> keep_alive_post_out ;\n break ;\n case TS_CONFIG_HTTP_SERVER_SESSION_SHARING_MATCH : ret = & overridableHttpConfig -> server_session_sharing_match ;\n break ;\n case TS_CONFIG_NET_SOCK_RECV_BUFFER_SIZE_OUT : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> sock_recv_buffer_size_out ;\n break ;\n case TS_CONFIG_NET_SOCK_SEND_BUFFER_SIZE_OUT : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> sock_send_buffer_size_out ;\n break ;\n case TS_CONFIG_NET_SOCK_OPTION_FLAG_OUT : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> sock_option_flag_out ;\n break ;\n case TS_CONFIG_HTTP_FORWARD_PROXY_AUTH_TO_PARENT : ret = & overridableHttpConfig -> fwd_proxy_auth_to_parent ;\n break ;\n case TS_CONFIG_HTTP_ANONYMIZE_REMOVE_FROM : ret = & overridableHttpConfig -> anonymize_remove_from ;\n break ;\n case TS_CONFIG_HTTP_ANONYMIZE_REMOVE_REFERER : ret = & overridableHttpConfig -> anonymize_remove_referer ;\n break ;\n case TS_CONFIG_HTTP_ANONYMIZE_REMOVE_USER_AGENT : ret = & overridableHttpConfig -> anonymize_remove_user_agent ;\n break ;\n case TS_CONFIG_HTTP_ANONYMIZE_REMOVE_COOKIE : ret = & overridableHttpConfig -> anonymize_remove_cookie ;\n break ;\n case TS_CONFIG_HTTP_ANONYMIZE_REMOVE_CLIENT_IP : ret = & overridableHttpConfig -> anonymize_remove_client_ip ;\n break ;\n case TS_CONFIG_HTTP_ANONYMIZE_INSERT_CLIENT_IP : ret = & overridableHttpConfig -> anonymize_insert_client_ip ;\n break ;\n case TS_CONFIG_HTTP_RESPONSE_SERVER_ENABLED : ret = & overridableHttpConfig -> proxy_response_server_enabled ;\n break ;\n case TS_CONFIG_HTTP_INSERT_SQUID_X_FORWARDED_FOR : ret = & overridableHttpConfig -> insert_squid_x_forwarded_for ;\n break ;\n case TS_CONFIG_HTTP_SERVER_TCP_INIT_CWND : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> server_tcp_init_cwnd ;\n break ;\n case TS_CONFIG_HTTP_SEND_HTTP11_REQUESTS : ret = & overridableHttpConfig -> send_http11_requests ;\n break ;\n case TS_CONFIG_HTTP_CACHE_HTTP : ret = & overridableHttpConfig -> cache_http ;\n break ;\n case TS_CONFIG_HTTP_CACHE_CLUSTER_CACHE_LOCAL : ret = & overridableHttpConfig -> cache_cluster_cache_local ;\n break ;\n case TS_CONFIG_HTTP_CACHE_IGNORE_CLIENT_NO_CACHE : ret = & overridableHttpConfig -> cache_ignore_client_no_cache ;\n break ;\n case TS_CONFIG_HTTP_CACHE_IGNORE_CLIENT_CC_MAX_AGE : ret = & overridableHttpConfig -> cache_ignore_client_cc_max_age ;\n break ;\n case TS_CONFIG_HTTP_CACHE_IMS_ON_CLIENT_NO_CACHE : ret = & overridableHttpConfig -> cache_ims_on_client_no_cache ;\n break ;\n case TS_CONFIG_HTTP_CACHE_IGNORE_SERVER_NO_CACHE : ret = & overridableHttpConfig -> cache_ignore_server_no_cache ;\n break ;\n case TS_CONFIG_HTTP_CACHE_CACHE_RESPONSES_TO_COOKIES : ret = & overridableHttpConfig -> cache_responses_to_cookies ;\n break ;\n case TS_CONFIG_HTTP_CACHE_IGNORE_AUTHENTICATION : ret = & overridableHttpConfig -> cache_ignore_auth ;\n break ;\n case TS_CONFIG_HTTP_CACHE_CACHE_URLS_THAT_LOOK_DYNAMIC : ret = & overridableHttpConfig -> cache_urls_that_look_dynamic ;\n break ;\n case TS_CONFIG_HTTP_CACHE_REQUIRED_HEADERS : ret = & overridableHttpConfig -> cache_required_headers ;\n break ;\n case TS_CONFIG_HTTP_INSERT_REQUEST_VIA_STR : ret = & overridableHttpConfig -> insert_request_via_string ;\n break ;\n case TS_CONFIG_HTTP_INSERT_RESPONSE_VIA_STR : ret = & overridableHttpConfig -> insert_response_via_string ;\n break ;\n case TS_CONFIG_HTTP_CACHE_HEURISTIC_MIN_LIFETIME : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> cache_heuristic_min_lifetime ;\n break ;\n case TS_CONFIG_HTTP_CACHE_HEURISTIC_MAX_LIFETIME : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> cache_heuristic_max_lifetime ;\n break ;\n case TS_CONFIG_HTTP_CACHE_GUARANTEED_MIN_LIFETIME : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> cache_guaranteed_min_lifetime ;\n break ;\n case TS_CONFIG_HTTP_CACHE_GUARANTEED_MAX_LIFETIME : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> cache_guaranteed_max_lifetime ;\n break ;\n case TS_CONFIG_HTTP_CACHE_MAX_STALE_AGE : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> cache_max_stale_age ;\n break ;\n case TS_CONFIG_HTTP_KEEP_ALIVE_NO_ACTIVITY_TIMEOUT_IN : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> keep_alive_no_activity_timeout_in ;\n break ;\n case TS_CONFIG_HTTP_KEEP_ALIVE_NO_ACTIVITY_TIMEOUT_OUT : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> keep_alive_no_activity_timeout_out ;\n break ;\n case TS_CONFIG_HTTP_TRANSACTION_NO_ACTIVITY_TIMEOUT_IN : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> transaction_no_activity_timeout_in ;\n break ;\n case TS_CONFIG_HTTP_TRANSACTION_NO_ACTIVITY_TIMEOUT_OUT : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> transaction_no_activity_timeout_out ;\n break ;\n case TS_CONFIG_HTTP_TRANSACTION_ACTIVE_TIMEOUT_OUT : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> transaction_active_timeout_out ;\n break ;\n case TS_CONFIG_HTTP_ORIGIN_MAX_CONNECTIONS : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> origin_max_connections ;\n break ;\n case TS_CONFIG_HTTP_CONNECT_ATTEMPTS_MAX_RETRIES : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> connect_attempts_max_retries ;\n break ;\n case TS_CONFIG_HTTP_CONNECT_ATTEMPTS_MAX_RETRIES_DEAD_SERVER : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> connect_attempts_max_retries_dead_server ;\n break ;\n case TS_CONFIG_HTTP_CONNECT_ATTEMPTS_RR_RETRIES : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> connect_attempts_rr_retries ;\n break ;\n case TS_CONFIG_HTTP_CONNECT_ATTEMPTS_TIMEOUT : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> connect_attempts_timeout ;\n break ;\n case TS_CONFIG_HTTP_POST_CONNECT_ATTEMPTS_TIMEOUT : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> post_connect_attempts_timeout ;\n break ;\n case TS_CONFIG_HTTP_DOWN_SERVER_CACHE_TIME : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> down_server_timeout ;\n break ;\n case TS_CONFIG_HTTP_DOWN_SERVER_ABORT_THRESHOLD : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> client_abort_threshold ;\n break ;\n case TS_CONFIG_HTTP_CACHE_FUZZ_TIME : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> freshness_fuzz_time ;\n break ;\n case TS_CONFIG_HTTP_CACHE_FUZZ_MIN_TIME : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> freshness_fuzz_min_time ;\n break ;\n case TS_CONFIG_HTTP_DOC_IN_CACHE_SKIP_DNS : ret = & overridableHttpConfig -> doc_in_cache_skip_dns ;\n break ;\n case TS_CONFIG_HTTP_BACKGROUND_FILL_ACTIVE_TIMEOUT : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> background_fill_active_timeout ;\n break ;\n case TS_CONFIG_HTTP_RESPONSE_SERVER_STR : typ = OVERRIDABLE_TYPE_STRING ;\n ret = & overridableHttpConfig -> proxy_response_server_string ;\n break ;\n case TS_CONFIG_HTTP_CACHE_HEURISTIC_LM_FACTOR : typ = OVERRIDABLE_TYPE_FLOAT ;\n ret = & overridableHttpConfig -> cache_heuristic_lm_factor ;\n break ;\n case TS_CONFIG_HTTP_CACHE_FUZZ_PROBABILITY : typ = OVERRIDABLE_TYPE_FLOAT ;\n ret = & overridableHttpConfig -> freshness_fuzz_prob ;\n break ;\n case TS_CONFIG_HTTP_BACKGROUND_FILL_COMPLETED_THRESHOLD : typ = OVERRIDABLE_TYPE_FLOAT ;\n ret = & overridableHttpConfig -> background_fill_threshold ;\n break ;\n case TS_CONFIG_NET_SOCK_PACKET_MARK_OUT : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> sock_packet_mark_out ;\n break ;\n case TS_CONFIG_NET_SOCK_PACKET_TOS_OUT : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> sock_packet_tos_out ;\n break ;\n case TS_CONFIG_HTTP_INSERT_AGE_IN_RESPONSE : ret = & overridableHttpConfig -> insert_age_in_response ;\n break ;\n case TS_CONFIG_HTTP_CHUNKING_SIZE : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> http_chunking_size ;\n break ;\n case TS_CONFIG_HTTP_FLOW_CONTROL_ENABLED : ret = & overridableHttpConfig -> flow_control_enabled ;\n break ;\n case TS_CONFIG_HTTP_FLOW_CONTROL_LOW_WATER_MARK : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> flow_low_water_mark ;\n break ;\n case TS_CONFIG_HTTP_FLOW_CONTROL_HIGH_WATER_MARK : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> flow_high_water_mark ;\n break ;\n case TS_CONFIG_HTTP_CACHE_RANGE_LOOKUP : ret = & overridableHttpConfig -> cache_range_lookup ;\n break ;\n case TS_CONFIG_HTTP_NORMALIZE_AE_GZIP : ret = & overridableHttpConfig -> normalize_ae_gzip ;\n break ;\n case TS_CONFIG_HTTP_DEFAULT_BUFFER_SIZE : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> default_buffer_size_index ;\n break ;\n case TS_CONFIG_HTTP_DEFAULT_BUFFER_WATER_MARK : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> default_buffer_water_mark ;\n break ;\n case TS_CONFIG_HTTP_REQUEST_HEADER_MAX_SIZE : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> request_hdr_max_size ;\n break ;\n case TS_CONFIG_HTTP_RESPONSE_HEADER_MAX_SIZE : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> response_hdr_max_size ;\n break ;\n case TS_CONFIG_HTTP_NEGATIVE_REVALIDATING_ENABLED : ret = & overridableHttpConfig -> negative_revalidating_enabled ;\n break ;\n case TS_CONFIG_HTTP_NEGATIVE_REVALIDATING_LIFETIME : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> negative_revalidating_lifetime ;\n break ;\n case TS_CONFIG_SSL_HSTS_MAX_AGE : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> proxy_response_hsts_max_age ;\n break ;\n case TS_CONFIG_SSL_HSTS_INCLUDE_SUBDOMAINS : ret = & overridableHttpConfig -> proxy_response_hsts_include_subdomains ;\n break ;\n case TS_CONFIG_HTTP_CACHE_OPEN_READ_RETRY_TIME : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> cache_open_read_retry_time ;\n break ;\n case TS_CONFIG_HTTP_CACHE_MAX_OPEN_READ_RETRIES : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> max_cache_open_read_retries ;\n break ;\n case TS_CONFIG_HTTP_CACHE_RANGE_WRITE : ret = & overridableHttpConfig -> cache_range_write ;\n break ;\n case TS_CONFIG_HTTP_POST_CHECK_CONTENT_LENGTH_ENABLED : ret = & overridableHttpConfig -> post_check_content_length_enabled ;\n break ;\n case TS_CONFIG_HTTP_GLOBAL_USER_AGENT_HEADER : typ = OVERRIDABLE_TYPE_STRING ;\n ret = & overridableHttpConfig -> global_user_agent_header ;\n break ;\n case TS_CONFIG_HTTP_AUTH_SERVER_SESSION_PRIVATE : ret = & overridableHttpConfig -> auth_server_session_private ;\n break ;\n case TS_CONFIG_HTTP_SLOW_LOG_THRESHOLD : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> slow_log_threshold ;\n break ;\n case TS_CONFIG_HTTP_CACHE_GENERATION : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> cache_generation_number ;\n break ;\n case TS_CONFIG_BODY_FACTORY_TEMPLATE_BASE : typ = OVERRIDABLE_TYPE_STRING ;\n ret = & overridableHttpConfig -> body_factory_template_base ;\n break ;\n case TS_CONFIG_HTTP_CACHE_OPEN_WRITE_FAIL_ACTION : ret = & overridableHttpConfig -> cache_open_write_fail_action ;\n break ;\n case TS_CONFIG_HTTP_ENABLE_REDIRECTION : ret = & overridableHttpConfig -> redirection_enabled ;\n break ;\n case TS_CONFIG_HTTP_NUMBER_OF_REDIRECTIONS : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> number_of_redirections ;\n break ;\n case TS_CONFIG_HTTP_CACHE_MAX_OPEN_WRITE_RETRIES : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> max_cache_open_write_retries ;\n break ;\n case TS_CONFIG_HTTP_REDIRECT_USE_ORIG_CACHE_KEY : ret = & overridableHttpConfig -> redirect_use_orig_cache_key ;\n break ;\n case TS_CONFIG_HTTP_ATTACH_SERVER_SESSION_TO_CLIENT : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> attach_server_session_to_client ;\n break ;\n case TS_CONFIG_HTTP_SAFE_REQUESTS_RETRYABLE : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> safe_requests_retryable ;\n break ;\n case TS_CONFIG_HTTP_ORIGIN_MAX_CONNECTIONS_QUEUE : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> origin_max_connections_queue ;\n break ;\n case TS_CONFIG_WEBSOCKET_NO_ACTIVITY_TIMEOUT : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> websocket_inactive_timeout ;\n break ;\n case TS_CONFIG_WEBSOCKET_ACTIVE_TIMEOUT : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> websocket_active_timeout ;\n break ;\n case TS_CONFIG_HTTP_UNCACHEABLE_REQUESTS_BYPASS_PARENT : ret = & overridableHttpConfig -> uncacheable_requests_bypass_parent ;\n break ;\n case TS_CONFIG_HTTP_PARENT_PROXY_TOTAL_CONNECT_ATTEMPTS : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> parent_connect_attempts ;\n break ;\n case TS_CONFIG_HTTP_TRANSACTION_ACTIVE_TIMEOUT_IN : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> transaction_active_timeout_in ;\n break ;\n case TS_CONFIG_SRV_ENABLED : ret = & overridableHttpConfig -> srv_enabled ;\n break ;\n case TS_CONFIG_HTTP_FORWARD_CONNECT_METHOD : ret = & overridableHttpConfig -> forward_connect_method ;\n break ;\n case TS_CONFIG_SSL_CERT_FILENAME : typ = OVERRIDABLE_TYPE_STRING ;\n ret = & overridableHttpConfig -> client_cert_filename ;\n break ;\n case TS_CONFIG_SSL_CERT_FILEPATH : typ = OVERRIDABLE_TYPE_STRING ;\n ret = & overridableHttpConfig -> client_cert_filepath ;\n break ;\n case TS_CONFIG_PARENT_FAILURES_UPDATE_HOSTDB : ret = & overridableHttpConfig -> parent_failures_update_hostdb ;\n break ;\n case TS_CONFIG_SSL_CLIENT_VERIFY_SERVER : ret = & overridableHttpConfig -> ssl_client_verify_server ;\n break ;\n case TS_CONFIG_HTTP_PARENT_PROXY_FAIL_THRESHOLD : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> parent_fail_threshold ;\n break ;\n case TS_CONFIG_HTTP_PARENT_PROXY_RETRY_TIME : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> parent_retry_time ;\n break ;\n case TS_CONFIG_HTTP_PER_PARENT_CONNECT_ATTEMPTS : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> per_parent_connect_attempts ;\n break ;\n case TS_CONFIG_HTTP_PARENT_CONNECT_ATTEMPT_TIMEOUT : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> parent_connect_timeout ;\n break ;\n case TS_CONFIG_NULL : case TS_CONFIG_LAST_ENTRY : typ = OVERRIDABLE_TYPE_NULL ;\n ret = nullptr ;\n break ;\n }\n * typep = typ ;\n return ret ;\n }"}
{"idx": 13537, "target": 0, "func": "static int test_source_cksum_offset ( xd3_stream * stream , int ignore ) {\n xd3_source source ;\n struct {\n xoff_t cpos ;\n xoff_t ipos ;\n xoff_t size ;\n usize_t input ;\n xoff_t output ;\n }\n cksum_test [ ] = {\n {\n 1 , 1 , 1 , 1 , 1 }\n , # if XD3_USE_LARGEFILE64 {\n 0x100100000ULL , 0x100000000ULL , 0x100200000ULL , 0x00000000UL , 0x100000000ULL }\n , {\n 0x100100000ULL , 0x100000000ULL , 0x100200000ULL , 0xF0000000UL , 0x0F0000000ULL }\n , {\n 0x100200000ULL , 0x100100000ULL , 0x100200000ULL , 0x00300000UL , 0x000300000ULL }\n , {\n 25771983104ULL , 25770000000ULL , 26414808769ULL , 2139216707UL , 23614053187ULL }\n , # endif {\n 0 , 0 , 0 , 0 , 0 }\n , }\n , * test_ptr ;\n stream -> src = & source ;\n for ( test_ptr = cksum_test ;\n test_ptr -> cpos ;\n test_ptr ++ ) {\n xoff_t r ;\n stream -> srcwin_cksum_pos = test_ptr -> cpos ;\n stream -> total_in = test_ptr -> ipos ;\n r = xd3_source_cksum_offset ( stream , test_ptr -> input ) ;\n CHECK ( r == test_ptr -> output ) ;\n }\n return 0 ;\n }"}
{"idx": 13538, "target": 0, "func": "int vp9_release_frame_buffer ( void * cb_priv , vpx_codec_frame_buffer_t * fb ) {\n InternalFrameBuffer * const int_fb = ( InternalFrameBuffer * ) fb -> priv ;\n ( void ) cb_priv ;\n if ( int_fb ) int_fb -> in_use = 0 ;\n return 0 ;\n }"}
{"idx": 13539, "target": 0, "func": "TEST_F ( TransportSecurityPersisterTest , SerializeData1 ) {\n std : : string output ;\n bool dirty ;\n EXPECT_TRUE ( persister_ -> SerializeData ( & output ) ) ;\n EXPECT_TRUE ( persister_ -> LoadEntries ( output , & dirty ) ) ;\n EXPECT_FALSE ( dirty ) ;\n }"}
{"idx": 13540, "target": 0, "func": "int dissect_ber_octet_string ( gboolean implicit_tag , asn1_ctx_t * actx , proto_tree * tree , tvbuff_t * tvb , int offset , gint hf_id , tvbuff_t * * out_tvb ) {\n return dissect_ber_constrained_octet_string ( implicit_tag , actx , tree , tvb , offset , NO_BOUND , NO_BOUND , hf_id , out_tvb ) ;\n }"}
{"idx": 13541, "target": 0, "func": "static int avi_probe ( AVProbeData * p ) {\n int i ;\n for ( i = 0 ;\n avi_headers [ i ] [ 0 ] ;\n i ++ ) if ( AV_RL32 ( p -> buf ) == AV_RL32 ( avi_headers [ i ] ) && AV_RL32 ( p -> buf + 8 ) == AV_RL32 ( avi_headers [ i ] + 4 ) ) return AVPROBE_SCORE_MAX ;\n return 0 ;\n }"}
{"idx": 13542, "target": 0, "func": "static int load ( const char * append_string ) {\n TSIOBufferBlock blk ;\n char * p ;\n int64_t avail ;\n append_buffer = TSIOBufferCreate ( ) ;\n append_buffer_reader = TSIOBufferReaderAlloc ( append_buffer ) ;\n blk = TSIOBufferStart ( append_buffer ) ;\n p = TSIOBufferBlockWriteStart ( blk , & avail ) ;\n ink_strlcpy ( p , append_string , avail ) ;\n if ( append_string != nullptr ) {\n TSIOBufferProduce ( append_buffer , strlen ( append_string ) ) ;\n }\n append_buffer_length = TSIOBufferReaderAvail ( append_buffer_reader ) ;\n return 1 ;\n }"}
{"idx": 13543, "target": 0, "func": "static void _slurm_rpc_get_shares ( slurm_msg_t * msg ) {\n DEF_TIMERS ;\n shares_request_msg_t * req_msg = ( shares_request_msg_t * ) msg -> data ;\n shares_response_msg_t resp_msg ;\n slurm_msg_t response_msg ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n START_TIMER ;\n debug2 ( \"Processing RPC: REQUEST_SHARE_INFO from uid=%d\" , uid ) ;\n memset ( & resp_msg , 0 , sizeof ( shares_response_msg_t ) ) ;\n assoc_mgr_get_shares ( acct_db_conn , uid , req_msg , & resp_msg ) ;\n slurm_msg_t_init ( & response_msg ) ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . address = msg -> address ;\n response_msg . conn = msg -> conn ;\n response_msg . msg_type = RESPONSE_SHARE_INFO ;\n response_msg . data = & resp_msg ;\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n FREE_NULL_LIST ( resp_msg . assoc_shares_list ) ;\n END_TIMER2 ( \"_slurm_rpc_get_share\" ) ;\n debug2 ( \"_slurm_rpc_get_shares %s\" , TIME_STR ) ;\n }"}
{"idx": 13544, "target": 0, "func": "TSReturnCode TSUrlPercentEncode ( TSMBuffer bufp , TSMLoc obj , char * dst , size_t dst_size , size_t * length , const unsigned char * map ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_url_handle ( obj ) == TS_SUCCESS ) ;\n char * url ;\n int url_len ;\n TSReturnCode ret ;\n URLImpl * url_impl = ( URLImpl * ) obj ;\n url = url_string_get ( url_impl , nullptr , & url_len , nullptr ) ;\n ret = TSStringPercentEncode ( url , url_len , dst , dst_size , length , map ) ;\n ats_free ( url ) ;\n return ret ;\n }"}
{"idx": 13545, "target": 0, "func": "void ahlog ( ArchiveHandle * AH , int level , const char * fmt , ... ) {\n va_list ap ;\n if ( AH -> debugLevel < level && ( ! AH -> public . verbose || level > 1 ) ) return ;\n va_start ( ap , fmt ) ;\n vwrite_msg ( NULL , fmt , ap ) ;\n va_end ( ap ) ;\n }"}
{"idx": 13546, "target": 0, "func": "static int dissect_btgatt_nordic_dfu_control_point ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n gint offset = 0 ;\n guint8 opcode ;\n guint8 request_opcode ;\n guint8 status ;\n btatt_data_t * att_data = ( btatt_data_t * ) data ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) return - 1 ;\n proto_tree_add_item ( tree , hf_gatt_nordic_dfu_control_point_opcode , tvb , offset , 1 , ENC_NA ) ;\n opcode = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n switch ( opcode ) {\n case 0x01 : proto_tree_add_item ( tree , hf_gatt_nordic_dfu_control_point_image_type , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x02 : if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n proto_tree_add_item ( tree , hf_gatt_nordic_dfu_control_point_init_packet , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n break ;\n case 0x03 : case 0x04 : case 0x05 : case 0x06 : case 0x07 : break ;\n case 0x08 : proto_tree_add_item ( tree , hf_gatt_nordic_dfu_control_point_number_of_packets , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x10 : proto_tree_add_item ( tree , hf_gatt_nordic_dfu_control_point_request_opcode , tvb , offset , 1 , ENC_NA ) ;\n request_opcode = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_gatt_nordic_dfu_control_point_response_value , tvb , offset , 1 , ENC_NA ) ;\n status = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n if ( request_opcode == 0x07 && status == 0x01 ) {\n proto_tree_add_item ( tree , hf_gatt_nordic_dfu_control_point_number_of_bytes , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n }\n break ;\n case 0x11 : proto_tree_add_item ( tree , hf_gatt_nordic_dfu_control_point_number_of_bytes , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n break ;\n }\n if ( tvb_captured_length_remaining ( tvb , offset ) > 0 ) {\n proto_tree_add_expert ( tree , pinfo , & ei_btatt_unexpected_data , tvb , offset , - 1 ) ;\n offset = tvb_captured_length ( tvb ) ;\n }\n return offset ;\n }"}
{"idx": 13547, "target": 0, "func": "static void cal_nmvjointsadcost ( int * mvjointsadcost ) {\n mvjointsadcost [ 0 ] = 600 ;\n mvjointsadcost [ 1 ] = 300 ;\n mvjointsadcost [ 2 ] = 300 ;\n mvjointsadcost [ 3 ] = 300 ;\n }"}
{"idx": 13548, "target": 0, "func": "static afs_int32 getCPS2 ( struct rx_call * call , afs_int32 aid , afs_uint32 ahost , prlist * alist , afs_int32 * over , afs_int32 * cid ) {\n afs_int32 code ;\n struct ubik_trans * tt ;\n afs_int32 temp ;\n struct prentry tentry ;\n struct prentry host_tentry ;\n afs_int32 hostid ;\n int host_list = 0 ;\n struct in_addr iaddr ;\n char hoststr [ 16 ] ;\n * over = 0 ;\n iaddr . s_addr = ntohl ( ahost ) ;\n alist -> prlist_len = 0 ;\n alist -> prlist_val = NULL ;\n code = Initdb ( ) ;\n if ( code != PRSUCCESS ) return code ;\n code = ubik_BeginTransReadAny ( dbase , UBIK_READTRANS , & tt ) ;\n if ( code ) return code ;\n code = ubik_SetLock ( tt , 1 , 1 , LOCKREAD ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = read_DbHeader ( tt ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n if ( aid != PRBADID ) {\n temp = FindByID ( tt , aid ) ;\n if ( ! temp ) ABORT_WITH ( tt , PRNOENT ) ;\n code = pr_ReadEntry ( tt , 0 , temp , & tentry ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = WhoIsThis ( call , tt , cid ) ;\n if ( code || ! AccessOK ( tt , * cid , & tentry , PRP_MEMBER_MEM , PRP_MEMBER_ANY ) ) ABORT_WITH ( tt , PRPERM ) ;\n }\n code = NameToID ( tt , afs_inet_ntoa_r ( iaddr . s_addr , hoststr ) , & hostid ) ;\n if ( code == PRSUCCESS && hostid != 0 ) {\n temp = FindByID ( tt , hostid ) ;\n if ( temp ) {\n code = pr_ReadEntry ( tt , 0 , temp , & host_tentry ) ;\n if ( code == PRSUCCESS ) host_list = 1 ;\n else fprintf ( stderr , \"pr_ReadEntry returned %d\\n\" , code ) ;\n }\n else fprintf ( stderr , \"FindByID Failed -- Not found\\n\" ) ;\n }\n if ( host_list ) code = GetList2 ( tt , & tentry , & host_tentry , alist , 1 ) ;\n else code = GetList ( tt , & tentry , alist , 1 ) ;\n if ( ! code ) code = addWildCards ( tt , alist , ntohl ( ahost ) ) ;\n if ( code != PRSUCCESS ) ABORT_WITH ( tt , code ) ;\n code = ubik_EndTrans ( tt ) ;\n return code ;\n }"}
{"idx": 13549, "target": 0, "func": "static bool gn_to_string ( identification_t * id , char * * uri ) {\n int len ;\n # ifdef USE_FUZZING chunk_t proper ;\n chunk_printable ( id -> get_encoding ( id ) , & proper , '?' ) ;\n len = asprintf ( uri , \"%.*s\" , ( int ) proper . len , proper . ptr ) ;\n chunk_free ( & proper ) ;\n # else len = asprintf ( uri , \"%Y\" , id ) ;\n # endif if ( ! len ) {\n free ( * uri ) ;\n return FALSE ;\n }\n return len > 0 ;\n }"}
{"idx": 13550, "target": 0, "func": "static int ps2_mouse_post_load ( void * opaque , int version_id ) {\n PS2MouseState * s = ( PS2MouseState * ) opaque ;\n PS2State * ps2 = & s -> common ;\n ps2_common_post_load ( ps2 ) ;\n return 0 ;\n }"}
{"idx": 13551, "target": 0, "func": "static my_bool mi_too_big_key_for_sort ( MI_KEYDEF * key , ha_rows rows ) {\n uint key_maxlength = key -> maxlength ;\n if ( key -> flag & HA_FULLTEXT ) {\n uint ft_max_word_len_for_sort = FT_MAX_WORD_LEN_FOR_SORT * key -> seg -> charset -> mbmaxlen ;\n key_maxlength += ft_max_word_len_for_sort - HA_FT_MAXBYTELEN ;\n }\n return ( key -> flag & HA_SPATIAL ) || ( key -> flag & ( HA_BINARY_PACK_KEY | HA_VAR_LENGTH_KEY | HA_FULLTEXT ) && ( ( ulonglong ) rows * key_maxlength > myisam_max_temp_length ) ) ;\n }"}
{"idx": 13552, "target": 0, "func": "static int dissect_nlm4_cancel ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n return dissect_nlm_cancel ( tvb , 0 , pinfo , tree , 4 , ( rpc_call_info_value * ) data ) ;\n }"}
{"idx": 13553, "target": 0, "func": "static int dissect_h245_RTPH263VideoRedundancyFrameMapping ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_RTPH263VideoRedundancyFrameMapping , RTPH263VideoRedundancyFrameMapping_sequence ) ;\n return offset ;\n }"}
{"idx": 13554, "target": 0, "func": "void vp9_model_to_full_probs ( const vp9_prob * model , vp9_prob * full ) {\n if ( full != model ) vpx_memcpy ( full , model , sizeof ( vp9_prob ) * UNCONSTRAINED_NODES ) ;\n extend_to_full_distribution ( & full [ UNCONSTRAINED_NODES ] , model [ PIVOT_NODE ] ) ;\n }"}
{"idx": 13555, "target": 0, "func": "static bool mpx_needed ( void * opaque ) {\n X86CPU * cpu = opaque ;\n CPUX86State * env = & cpu -> env ;\n unsigned int i ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n if ( env -> bnd_regs [ i ] . lb || env -> bnd_regs [ i ] . ub ) {\n return true ;\n }\n }\n if ( env -> bndcs_regs . cfgu || env -> bndcs_regs . sts ) {\n return true ;\n }\n return ! ! env -> msr_bndcfgs ;\n }"}
{"idx": 13556, "target": 0, "func": "xmlBufferAllocationScheme xmlThrDefBufferAllocScheme ( xmlBufferAllocationScheme v ) {\n xmlBufferAllocationScheme ret ;\n xmlMutexLock ( xmlThrDefMutex ) ;\n ret = xmlBufferAllocSchemeThrDef ;\n xmlBufferAllocSchemeThrDef = v ;\n xmlMutexUnlock ( xmlThrDefMutex ) ;\n return ret ;\n }"}
{"idx": 13557, "target": 0, "func": "static void encode_sb_rt ( VP9_COMP * cpi , const TileInfo * const tile , TOKENEXTRA * * tp , int mi_row , int mi_col , int output_enabled , BLOCK_SIZE bsize , PC_TREE * pc_tree ) {\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCK * const x = & cpi -> mb ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n const int bsl = b_width_log2 ( bsize ) , hbs = ( 1 << bsl ) / 4 ;\n int ctx ;\n PARTITION_TYPE partition ;\n BLOCK_SIZE subsize ;\n if ( mi_row >= cm -> mi_rows || mi_col >= cm -> mi_cols ) return ;\n if ( bsize >= BLOCK_8X8 ) {\n const int idx_str = xd -> mi_stride * mi_row + mi_col ;\n MODE_INFO * mi_8x8 = cm -> mi [ idx_str ] . src_mi ;\n ctx = partition_plane_context ( xd , mi_row , mi_col , bsize ) ;\n subsize = mi_8x8 [ 0 ] . src_mi -> mbmi . sb_type ;\n }\n else {\n ctx = 0 ;\n subsize = BLOCK_4X4 ;\n }\n partition = partition_lookup [ bsl ] [ subsize ] ;\n if ( output_enabled && bsize != BLOCK_4X4 ) cm -> counts . partition [ ctx ] [ partition ] ++ ;\n switch ( partition ) {\n case PARTITION_NONE : encode_b_rt ( cpi , tile , tp , mi_row , mi_col , output_enabled , subsize , & pc_tree -> none ) ;\n break ;\n case PARTITION_VERT : encode_b_rt ( cpi , tile , tp , mi_row , mi_col , output_enabled , subsize , & pc_tree -> vertical [ 0 ] ) ;\n if ( mi_col + hbs < cm -> mi_cols && bsize > BLOCK_8X8 ) {\n encode_b_rt ( cpi , tile , tp , mi_row , mi_col + hbs , output_enabled , subsize , & pc_tree -> vertical [ 1 ] ) ;\n }\n break ;\n case PARTITION_HORZ : encode_b_rt ( cpi , tile , tp , mi_row , mi_col , output_enabled , subsize , & pc_tree -> horizontal [ 0 ] ) ;\n if ( mi_row + hbs < cm -> mi_rows && bsize > BLOCK_8X8 ) {\n encode_b_rt ( cpi , tile , tp , mi_row + hbs , mi_col , output_enabled , subsize , & pc_tree -> horizontal [ 1 ] ) ;\n }\n break ;\n case PARTITION_SPLIT : subsize = get_subsize ( bsize , PARTITION_SPLIT ) ;\n encode_sb_rt ( cpi , tile , tp , mi_row , mi_col , output_enabled , subsize , pc_tree -> split [ 0 ] ) ;\n encode_sb_rt ( cpi , tile , tp , mi_row , mi_col + hbs , output_enabled , subsize , pc_tree -> split [ 1 ] ) ;\n encode_sb_rt ( cpi , tile , tp , mi_row + hbs , mi_col , output_enabled , subsize , pc_tree -> split [ 2 ] ) ;\n encode_sb_rt ( cpi , tile , tp , mi_row + hbs , mi_col + hbs , output_enabled , subsize , pc_tree -> split [ 3 ] ) ;\n break ;\n default : assert ( \"Invalid partition type.\" ) ;\n break ;\n }\n if ( partition != PARTITION_SPLIT || bsize == BLOCK_8X8 ) update_partition_context ( xd , mi_row , mi_col , subsize , bsize ) ;\n }"}
{"idx": 13558, "target": 1, "func": "static void get_conv_info ( packet_info * pinfo , struct _rtp_info * rtp_info ) {\n conversation_t * p_conv = NULL ;\n struct _rtp_conversation_info * p_conv_data = NULL ;\n p_conv_data = ( struct _rtp_conversation_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_rtp , 0 ) ;\n if ( ! p_conv_data ) {\n p_conv = find_conversation ( pinfo -> fd -> num , & pinfo -> net_dst , & pinfo -> net_src , pinfo -> ptype , pinfo -> destport , pinfo -> srcport , NO_ADDR_B ) ;\n if ( p_conv ) {\n struct _rtp_conversation_info * p_conv_packet_data ;\n p_conv_data = ( struct _rtp_conversation_info * ) conversation_get_proto_data ( p_conv , proto_rtp ) ;\n if ( p_conv_data ) {\n guint32 seqno ;\n p_conv_packet_data = wmem_new ( wmem_file_scope ( ) , struct _rtp_conversation_info ) ;\n g_strlcpy ( p_conv_packet_data -> method , p_conv_data -> method , MAX_RTP_SETUP_METHOD_SIZE + 1 ) ;\n p_conv_packet_data -> frame_number = p_conv_data -> frame_number ;\n p_conv_packet_data -> is_video = p_conv_data -> is_video ;\n p_conv_packet_data -> rtp_dyn_payload = p_conv_data -> rtp_dyn_payload ;\n p_conv_packet_data -> rtp_conv_info = p_conv_data -> rtp_conv_info ;\n p_conv_packet_data -> srtp_info = p_conv_data -> srtp_info ;\n p_conv_packet_data -> bta2dp_info = p_conv_data -> bta2dp_info ;\n p_conv_packet_data -> btvdp_info = p_conv_data -> btvdp_info ;\n p_add_proto_data ( wmem_file_scope ( ) , pinfo , proto_rtp , 0 , p_conv_packet_data ) ;\n seqno = calculate_extended_seqno ( p_conv_data -> extended_seqno , rtp_info -> info_seq_num ) ;\n p_conv_packet_data -> extended_seqno = seqno ;\n p_conv_data -> extended_seqno = seqno ;\n }\n }\n }\n if ( p_conv_data ) rtp_info -> info_setup_frame_num = p_conv_data -> frame_number ;\n }"}
{"idx": 13559, "target": 0, "func": "static union _zend_function * incomplete_class_get_method ( zval * * object , char * method , int method_len , const zend_literal * key TSRMLS_DC ) {\n incomplete_class_message ( * object , E_ERROR TSRMLS_CC ) ;\n return NULL ;\n }"}
{"idx": 13560, "target": 0, "func": "static void labels_to_offsets ( void ) {\n struct unfold_elm * ue ;\n struct unfold_elm * s ;\n u_int32 offset = 0 ;\n fprintf ( stdout , \" Converting labels to real offsets \" ) ;\n fflush ( stdout ) ;\n TAILQ_FOREACH ( ue , & unfolded_tree , next ) {\n if ( ue -> fop . opcode == FOP_JMP || ue -> fop . opcode == FOP_JTRUE || ue -> fop . opcode == FOP_JFALSE ) {\n switch ( ue -> fop . opcode ) {\n case FOP_JMP : ef_debug ( 1 , \"*\" ) ;\n break ;\n case FOP_JTRUE : ef_debug ( 1 , \"+\" ) ;\n break ;\n case FOP_JFALSE : ef_debug ( 1 , \"-\" ) ;\n break ;\n }\n TAILQ_FOREACH ( s , & unfolded_tree , next ) {\n if ( s -> label == ue -> fop . op . jmp ) {\n ue -> fop . op . jmp = offset ;\n offset = 0 ;\n break ;\n }\n if ( s -> label == 0 ) offset ++ ;\n }\n }\n }\n fprintf ( stdout , \" done.\\n\\n\" ) ;\n }"}
{"idx": 13561, "target": 0, "func": "void nautilus_file_operations_mount_volume ( GtkWindow * parent_window , GVolume * volume ) {\n nautilus_file_operations_mount_volume_full ( parent_window , volume , NULL , NULL ) ;\n }"}
{"idx": 13562, "target": 0, "func": "static int pfkey_release ( struct socket * sock ) {\n struct sock * sk = sock -> sk ;\n if ( ! sk ) return 0 ;\n pfkey_remove ( sk ) ;\n sock_orphan ( sk ) ;\n sock -> sk = NULL ;\n skb_queue_purge ( & sk -> sk_write_queue ) ;\n synchronize_rcu ( ) ;\n sock_put ( sk ) ;\n return 0 ;\n }"}
{"idx": 13563, "target": 0, "func": "int TSHttpCurrentActiveClientConnectionsGet ( void ) {\n int64_t S ;\n HTTP_READ_DYN_SUM ( http_current_active_client_connections_stat , S ) ;\n return ( int ) S ;\n }"}
{"idx": 13564, "target": 0, "func": "int key_payload_reserve ( struct key * key , size_t datalen ) {\n int delta = ( int ) datalen - key -> datalen ;\n int ret = 0 ;\n key_check ( key ) ;\n if ( delta != 0 && test_bit ( KEY_FLAG_IN_QUOTA , & key -> flags ) ) {\n unsigned maxbytes = uid_eq ( key -> user -> uid , GLOBAL_ROOT_UID ) ? key_quota_root_maxbytes : key_quota_maxbytes ;\n spin_lock ( & key -> user -> lock ) ;\n if ( delta > 0 && ( key -> user -> qnbytes + delta >= maxbytes || key -> user -> qnbytes + delta < key -> user -> qnbytes ) ) {\n ret = - EDQUOT ;\n }\n else {\n key -> user -> qnbytes += delta ;\n key -> quotalen += delta ;\n }\n spin_unlock ( & key -> user -> lock ) ;\n }\n if ( ret == 0 ) key -> datalen = datalen ;\n return ret ;\n }"}
{"idx": 13565, "target": 0, "func": "MSG_PROCESS_RETURN tls_process_client_key_exchange ( SSL * s , PACKET * pkt ) {\n int al = - 1 ;\n unsigned long alg_k ;\n alg_k = s -> s3 -> tmp . new_cipher -> algorithm_mkey ;\n if ( ( alg_k & SSL_PSK ) && ! tls_process_cke_psk_preamble ( s , pkt , & al ) ) goto err ;\n if ( alg_k & SSL_kPSK ) {\n if ( PACKET_remaining ( pkt ) != 0 ) {\n al = SSL_AD_HANDSHAKE_FAILURE ;\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_KEY_EXCHANGE , SSL_R_LENGTH_MISMATCH ) ;\n goto err ;\n }\n if ( ! ssl_generate_master_secret ( s , NULL , 0 , 0 ) ) {\n al = SSL_AD_INTERNAL_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_KEY_EXCHANGE , ERR_R_INTERNAL_ERROR ) ;\n goto err ;\n }\n }\n else if ( alg_k & ( SSL_kRSA | SSL_kRSAPSK ) ) {\n if ( ! tls_process_cke_rsa ( s , pkt , & al ) ) goto err ;\n }\n else if ( alg_k & ( SSL_kDHE | SSL_kDHEPSK ) ) {\n if ( ! tls_process_cke_dhe ( s , pkt , & al ) ) goto err ;\n }\n else if ( alg_k & ( SSL_kECDHE | SSL_kECDHEPSK ) ) {\n if ( ! tls_process_cke_ecdhe ( s , pkt , & al ) ) goto err ;\n }\n else if ( alg_k & SSL_kSRP ) {\n if ( ! tls_process_cke_srp ( s , pkt , & al ) ) goto err ;\n }\n else if ( alg_k & SSL_kGOST ) {\n if ( ! tls_process_cke_gost ( s , pkt , & al ) ) goto err ;\n }\n else {\n al = SSL_AD_HANDSHAKE_FAILURE ;\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_KEY_EXCHANGE , SSL_R_UNKNOWN_CIPHER_TYPE ) ;\n goto err ;\n }\n return MSG_PROCESS_CONTINUE_PROCESSING ;\n err : if ( al != - 1 ) ssl3_send_alert ( s , SSL3_AL_FATAL , al ) ;\n # ifndef OPENSSL_NO_PSK OPENSSL_clear_free ( s -> s3 -> tmp . psk , s -> s3 -> tmp . psklen ) ;\n s -> s3 -> tmp . psk = NULL ;\n # endif ossl_statem_set_error ( s ) ;\n return MSG_PROCESS_ERROR ;\n }"}
{"idx": 13566, "target": 0, "func": "static void print_section ( SectionID id , int level ) {\n const SectionID * pid ;\n const struct section * section = & sections [ id ] ;\n printf ( \"%c%c%c\" , section -> flags & SECTION_FLAG_IS_WRAPPER ? 'W' : '.' , section -> flags & SECTION_FLAG_IS_ARRAY ? 'A' : '.' , section -> flags & SECTION_FLAG_HAS_VARIABLE_FIELDS ? 'V' : '.' ) ;\n printf ( \"%*c %s\" , level * 4 , ' ' , section -> name ) ;\n if ( section -> unique_name ) printf ( \"/%s\" , section -> unique_name ) ;\n printf ( \"\\n\" ) ;\n for ( pid = section -> children_ids ;\n * pid != - 1 ;\n pid ++ ) print_section ( * pid , level + 1 ) ;\n }"}
{"idx": 13567, "target": 1, "func": "void xmlHashScan ( xmlHashTablePtr table , xmlHashScanner f , void * data ) {\n stubData stubdata ;\n stubdata . data = data ;\n stubdata . hashscanner = f ;\n xmlHashScanFull ( table , stubHashScannerFull , & stubdata ) ;\n }"}
{"idx": 13568, "target": 0, "func": "static int validate_nonce ( const char * pnonce , struct recvbuf * rbufp ) {\n u_int ts_i ;\n u_int ts_f ;\n l_fp ts ;\n l_fp now_delta ;\n u_int supposed ;\n u_int derived ;\n if ( 3 != sscanf ( pnonce , \"%08x%08x%08x\" , & ts_i , & ts_f , & supposed ) ) return FALSE ;\n ts . l_ui = ( u_int32 ) ts_i ;\n ts . l_uf = ( u_int32 ) ts_f ;\n derived = derive_nonce ( & rbufp -> recv_srcadr , ts . l_ui , ts . l_uf ) ;\n get_systime ( & now_delta ) ;\n L_SUB ( & now_delta , & ts ) ;\n return ( supposed == derived && now_delta . l_ui < 16 ) ;\n }"}
{"idx": 13569, "target": 0, "func": "static int dissect_pcp_message_pmns_names ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , int offset ) {\n proto_item * pcp_pmns_names_item ;\n proto_tree * pcp_pmns_names_tree ;\n proto_item * pcp_pmns_names_name_item ;\n proto_tree * pcp_pmns_names_name_tree ;\n guint32 is_pmns_names_status ;\n guint32 num_names ;\n guint32 name_len ;\n guint32 full_name_len ;\n guint32 padding ;\n guint32 i ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"[%s]\" , val_to_str ( PCP_PDU_PMNS_NAMES , packettypenames , \"Unknown Type:0x%02x\" ) ) ;\n pcp_pmns_names_item = proto_tree_add_item ( tree , hf_pcp_pmns_names , tvb , offset , - 1 , ENC_NA ) ;\n pcp_pmns_names_tree = proto_item_add_subtree ( pcp_pmns_names_item , ett_pcp ) ;\n proto_tree_add_item ( pcp_pmns_names_tree , hf_pcp_pmns_names_nstrbytes , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( pcp_pmns_names_tree , hf_pcp_pmns_names_numstatus , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n is_pmns_names_status = tvb_get_ntohl ( tvb , offset ) ;\n offset += 4 ;\n proto_tree_add_item ( pcp_pmns_names_tree , hf_pcp_pmns_names_numnames , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n num_names = tvb_get_ntohl ( tvb , offset ) ;\n offset += 4 ;\n for ( i = 0 ;\n i < num_names ;\n i ++ ) {\n if ( is_pmns_names_status ) {\n name_len = tvb_get_ntohl ( tvb , offset + 4 ) ;\n full_name_len = name_len + 8 ;\n }\n else {\n name_len = tvb_get_ntohl ( tvb , offset ) ;\n full_name_len = name_len + 4 ;\n }\n pcp_pmns_names_name_item = proto_tree_add_item ( pcp_pmns_names_tree , hf_pcp_pmns_names_nametree , tvb , offset , full_name_len , ENC_NA ) ;\n pcp_pmns_names_name_tree = proto_item_add_subtree ( pcp_pmns_names_name_item , ett_pcp ) ;\n if ( is_pmns_names_status ) {\n proto_tree_add_item ( pcp_pmns_names_name_tree , hf_pcp_pmns_names_nametree_status , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n }\n proto_tree_add_item ( pcp_pmns_names_name_tree , hf_pcp_pmns_names_nametree_namelen , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n if ( client_to_server ( pinfo ) ) {\n add_candidate_name_for_pmid_resolution ( pinfo , tvb , offset , name_len ) ;\n }\n proto_tree_add_item ( pcp_pmns_names_name_tree , hf_pcp_pmns_names_nametree_name , tvb , offset , name_len , ENC_ASCII | ENC_NA ) ;\n offset += name_len ;\n padding = name_len % 4 ;\n if ( padding != 0 ) {\n padding = 4 - padding ;\n proto_tree_add_item ( pcp_pmns_names_name_tree , hf_pcp_pdu_padding , tvb , offset , padding , ENC_NA ) ;\n offset += padding ;\n }\n }\n if ( client_to_server ( pinfo ) ) {\n mark_this_frame_as_last_pmns_names_frame ( pinfo ) ;\n }\n return offset ;\n }"}
{"idx": 13570, "target": 0, "func": "static int32_t u_sprintf_pad_and_justify ( void * context , const u_printf_spec_info * info , const UChar * result , int32_t resultLen ) {\n u_localized_print_string * output = ( u_localized_print_string * ) context ;\n int32_t written = 0 ;\n int32_t lengthOfResult = resultLen ;\n resultLen = ufmt_min ( resultLen , output -> available ) ;\n if ( info -> fWidth != - 1 && resultLen < info -> fWidth ) {\n int32_t paddingLeft = info -> fWidth - resultLen ;\n int32_t outputPos = output -> len - output -> available ;\n if ( paddingLeft + resultLen > output -> available ) {\n paddingLeft = output -> available - resultLen ;\n if ( paddingLeft < 0 ) {\n paddingLeft = 0 ;\n }\n }\n written += paddingLeft ;\n if ( info -> fLeft ) {\n written += u_sprintf_write ( output , result , resultLen ) ;\n u_memset ( & output -> str [ outputPos + resultLen ] , info -> fPadChar , paddingLeft ) ;\n output -> available -= paddingLeft ;\n }\n else {\n u_memset ( & output -> str [ outputPos ] , info -> fPadChar , paddingLeft ) ;\n output -> available -= paddingLeft ;\n written += u_sprintf_write ( output , result , resultLen ) ;\n }\n }\n else {\n written = u_sprintf_write ( output , result , resultLen ) ;\n }\n if ( written >= 0 && lengthOfResult > written ) {\n return lengthOfResult ;\n }\n return written ;\n }"}
{"idx": 13571, "target": 0, "func": "int i2d_ ## name ( type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;\n int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DIRECTORYSTRING ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DISPLAYTEXT ) DECLARE_ASN1_FUNCTIONS ( ASN1_PRINTABLESTRING )"}
{"idx": 13572, "target": 0, "func": "static void send_mru_entry ( mon_entry * mon , int count ) {\n const char first_fmt [ ] = \"first.%d\" ;\n const char ct_fmt [ ] = \"ct.%d\" ;\n const char mv_fmt [ ] = \"mv.%d\" ;\n const char rs_fmt [ ] = \"rs.%d\" ;\n char tag [ 32 ] ;\n u_char sent [ 6 ] ;\n u_int32 noise ;\n u_int which ;\n u_int remaining ;\n const char * pch ;\n remaining = COUNTOF ( sent ) ;\n ZERO ( sent ) ;\n noise = ( u_int32 ) ( rand ( ) ^ ( rand ( ) << 16 ) ) ;\n while ( remaining > 0 ) {\n which = ( noise & 7 ) % COUNTOF ( sent ) ;\n noise >>= 3 ;\n while ( sent [ which ] ) which = ( which + 1 ) % COUNTOF ( sent ) ;\n switch ( which ) {\n case 0 : snprintf ( tag , sizeof ( tag ) , addr_fmt , count ) ;\n pch = sptoa ( & mon -> rmtadr ) ;\n ctl_putunqstr ( tag , pch , strlen ( pch ) ) ;\n break ;\n case 1 : snprintf ( tag , sizeof ( tag ) , last_fmt , count ) ;\n ctl_putts ( tag , & mon -> last ) ;\n break ;\n case 2 : snprintf ( tag , sizeof ( tag ) , first_fmt , count ) ;\n ctl_putts ( tag , & mon -> first ) ;\n break ;\n case 3 : snprintf ( tag , sizeof ( tag ) , ct_fmt , count ) ;\n ctl_putint ( tag , mon -> count ) ;\n break ;\n case 4 : snprintf ( tag , sizeof ( tag ) , mv_fmt , count ) ;\n ctl_putuint ( tag , mon -> vn_mode ) ;\n break ;\n case 5 : snprintf ( tag , sizeof ( tag ) , rs_fmt , count ) ;\n ctl_puthex ( tag , mon -> flags ) ;\n break ;\n }\n sent [ which ] = TRUE ;\n remaining -- ;\n }\n }"}
{"idx": 13573, "target": 0, "func": "static VALUE ossl_x509name_alloc ( VALUE klass ) {\n X509_NAME * name ;\n VALUE obj ;\n obj = NewX509Name ( klass ) ;\n if ( ! ( name = X509_NAME_new ( ) ) ) {\n ossl_raise ( eX509NameError , NULL ) ;\n }\n SetX509Name ( obj , name ) ;\n return obj ;\n }"}
{"idx": 13574, "target": 0, "func": "static uint16_t * encodeRunByte ( uint16_t * buffer , uint16_t * bufLimit , uint8_t value , int32_t length , uint8_t state [ ] , UErrorCode * status ) {\n if ( ! status || U_FAILURE ( * status ) ) {\n return NULL ;\n }\n if ( length < 4 ) {\n int32_t j = 0 ;\n for ( ;\n j < length ;\n ++ j ) {\n if ( value == ESCAPE_BYTE ) {\n buffer = appendEncodedByte ( buffer , bufLimit , ESCAPE_BYTE , state , status ) ;\n }\n buffer = appendEncodedByte ( buffer , bufLimit , value , state , status ) ;\n }\n }\n else {\n if ( length == ESCAPE_BYTE ) {\n if ( value == ESCAPE_BYTE ) {\n buffer = appendEncodedByte ( buffer , bufLimit , ESCAPE_BYTE , state , status ) ;\n }\n buffer = appendEncodedByte ( buffer , bufLimit , value , state , status ) ;\n -- length ;\n }\n buffer = appendEncodedByte ( buffer , bufLimit , ESCAPE_BYTE , state , status ) ;\n buffer = appendEncodedByte ( buffer , bufLimit , ( char ) length , state , status ) ;\n buffer = appendEncodedByte ( buffer , bufLimit , value , state , status ) ;\n }\n return buffer ;\n }"}
{"idx": 13575, "target": 0, "func": "static int encode_frame ( vpx_codec_ctx_t * codec , vpx_image_t * img , int frame_index , int flags , VpxVideoWriter * writer ) {\n int got_pkts = 0 ;\n vpx_codec_iter_t iter = NULL ;\n const vpx_codec_cx_pkt_t * pkt = NULL ;\n const vpx_codec_err_t res = vpx_codec_encode ( codec , img , frame_index , 1 , flags , VPX_DL_GOOD_QUALITY ) ;\n if ( res != VPX_CODEC_OK ) die_codec ( codec , \"Failed to encode frame\" ) ;\n while ( ( pkt = vpx_codec_get_cx_data ( codec , & iter ) ) != NULL ) {\n got_pkts = 1 ;\n if ( pkt -> kind == VPX_CODEC_CX_FRAME_PKT ) {\n const int keyframe = ( pkt -> data . frame . flags & VPX_FRAME_IS_KEY ) != 0 ;\n if ( ! vpx_video_writer_write_frame ( writer , pkt -> data . frame . buf , pkt -> data . frame . sz , pkt -> data . frame . pts ) ) {\n die_codec ( codec , \"Failed to write compressed frame\" ) ;\n }\n printf ( keyframe ? \"K\" : \".\" ) ;\n fflush ( stdout ) ;\n }\n }\n return got_pkts ;\n }"}
{"idx": 13576, "target": 0, "func": "static void isoent_free_all ( struct isoent * isoent ) {\n struct isoent * np , * np_temp ;\n if ( isoent == NULL ) return ;\n np = isoent ;\n for ( ;\n ;\n ) {\n if ( np -> dir ) {\n if ( np -> children . first != NULL ) {\n np = np -> children . first ;\n continue ;\n }\n }\n for ( ;\n ;\n ) {\n np_temp = np ;\n if ( np -> chnext == NULL ) {\n np = np -> parent ;\n _isoent_free ( np_temp ) ;\n if ( np == np_temp ) return ;\n }\n else {\n np = np -> chnext ;\n _isoent_free ( np_temp ) ;\n break ;\n }\n }\n }\n }"}
{"idx": 13577, "target": 0, "func": "TEST_F ( ProfileInfoCacheTest , AddProfiles ) {\n EXPECT_EQ ( 0u , GetCache ( ) -> GetNumberOfProfiles ( ) ) ;\n SkBitmap bitmap ;\n bitmap . allocN32Pixels ( 38 , 31 ) ;\n bitmap . eraseColor ( SK_ColorGREEN ) ;\n ui : : ResourceBundle & rb = ui : : ResourceBundle : : GetSharedInstance ( ) ;\n for ( uint32 i = 0 ;\n i < 4 ;\n ++ i ) {\n base : : FilePath profile_path = GetProfilePath ( base : : StringPrintf ( \"path_%ud\" , i ) ) ;\n base : : string16 profile_name = ASCIIToUTF16 ( base : : StringPrintf ( \"name_%ud\" , i ) ) ;\n const SkBitmap * icon = rb . GetImageNamed ( profiles : : GetDefaultAvatarIconResourceIDAtIndex ( i ) ) . ToSkBitmap ( ) ;\n std : : string supervised_user_id = i == 3 ? \"TEST_ID\" : \"\" ;\n GetCache ( ) -> AddProfileToCache ( profile_path , profile_name , base : : string16 ( ) , i , supervised_user_id ) ;\n GetCache ( ) -> SetBackgroundStatusOfProfileAtIndex ( i , true ) ;\n base : : string16 gaia_name = ASCIIToUTF16 ( base : : StringPrintf ( \"gaia_%ud\" , i ) ) ;\n GetCache ( ) -> SetGAIANameOfProfileAtIndex ( i , gaia_name ) ;\n EXPECT_EQ ( i + 1 , GetCache ( ) -> GetNumberOfProfiles ( ) ) ;\n EXPECT_EQ ( profile_name , GetCache ( ) -> GetNameOfProfileAtIndex ( i ) ) ;\n EXPECT_EQ ( profile_path , GetCache ( ) -> GetPathOfProfileAtIndex ( i ) ) ;\n ProfileAvatarDownloader avatar_downloader ( GetCache ( ) -> GetAvatarIconIndexOfProfileAtIndex ( i ) , profile_path , GetCache ( ) ) ;\n avatar_downloader . OnFetchComplete ( GURL ( \"http://www.google.com/avatar.png\" ) , & bitmap ) ;\n const SkBitmap * actual_icon = GetCache ( ) -> GetAvatarIconOfProfileAtIndex ( i ) . ToSkBitmap ( ) ;\n EXPECT_EQ ( icon -> width ( ) , actual_icon -> width ( ) ) ;\n EXPECT_EQ ( icon -> height ( ) , actual_icon -> height ( ) ) ;\n EXPECT_EQ ( i == 3 , GetCache ( ) -> ProfileIsSupervisedAtIndex ( i ) ) ;\n EXPECT_EQ ( i == 3 , GetCache ( ) -> IsOmittedProfileAtIndex ( i ) ) ;\n EXPECT_EQ ( supervised_user_id , GetCache ( ) -> GetSupervisedUserIdOfProfileAtIndex ( i ) ) ;\n }\n ResetCache ( ) ;\n EXPECT_EQ ( 4u , GetCache ( ) -> GetNumberOfProfiles ( ) ) ;\n for ( uint32 i = 0 ;\n i < 4 ;\n ++ i ) {\n base : : FilePath profile_path = GetProfilePath ( base : : StringPrintf ( \"path_%ud\" , i ) ) ;\n EXPECT_EQ ( i , GetCache ( ) -> GetIndexOfProfileWithPath ( profile_path ) ) ;\n base : : string16 profile_name = ASCIIToUTF16 ( base : : StringPrintf ( \"name_%ud\" , i ) ) ;\n EXPECT_EQ ( profile_name , GetCache ( ) -> GetNameOfProfileAtIndex ( i ) ) ;\n EXPECT_EQ ( i , GetCache ( ) -> GetAvatarIconIndexOfProfileAtIndex ( i ) ) ;\n EXPECT_EQ ( true , GetCache ( ) -> GetBackgroundStatusOfProfileAtIndex ( i ) ) ;\n base : : string16 gaia_name = ASCIIToUTF16 ( base : : StringPrintf ( \"gaia_%ud\" , i ) ) ;\n EXPECT_EQ ( gaia_name , GetCache ( ) -> GetGAIANameOfProfileAtIndex ( i ) ) ;\n }\n }"}
{"idx": 13578, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ClientHintsBrowserTest , ClientHintsLifetimeNotPersistedCookiesBlocked ) {\n scoped_refptr < content_settings : : CookieSettings > cookie_settings_ = CookieSettingsFactory : : GetForProfile ( browser ( ) -> profile ( ) ) ;\n base : : HistogramTester histogram_tester ;\n ContentSettingsForOneType host_settings ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> SetContentSettingDefaultScope ( accept_ch_without_lifetime_url ( ) , GURL ( ) , CONTENT_SETTINGS_TYPE_COOKIES , std : : string ( ) , CONTENT_SETTING_BLOCK ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , accept_ch_with_lifetime_url ( ) ) ;\n histogram_tester . ExpectTotalCount ( \"ClientHints.UpdateEventCount\" , 0 ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> GetSettingsForOneType ( CONTENT_SETTINGS_TYPE_CLIENT_HINTS , std : : string ( ) , & host_settings ) ;\n EXPECT_EQ ( 0u , host_settings . size ( ) ) ;\n VerifyContentSettingsNotNotified ( ) ;\n cookie_settings_ -> SetCookieSetting ( accept_ch_without_lifetime_url ( ) , CONTENT_SETTING_ALLOW ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , accept_ch_with_lifetime_url ( ) ) ;\n histogram_tester . ExpectTotalCount ( \"ClientHints.UpdateEventCount\" , 1 ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> GetSettingsForOneType ( CONTENT_SETTINGS_TYPE_CLIENT_HINTS , std : : string ( ) , & host_settings ) ;\n EXPECT_EQ ( 1u , host_settings . size ( ) ) ;\n }"}
{"idx": 13579, "target": 1, "func": "int archive_strncat_l ( struct archive_string * as , const void * _p , size_t n , struct archive_string_conv * sc ) {\n const void * s ;\n size_t length ;\n int i , r = 0 , r2 ;\n if ( _p == NULL || n == 0 ) {\n int tn = 1 ;\n if ( sc != NULL && ( sc -> flag & SCONV_TO_UTF16 ) ) tn = 2 ;\n if ( archive_string_ensure ( as , as -> length + tn ) == NULL ) return ( - 1 ) ;\n as -> s [ as -> length ] = 0 ;\n if ( tn == 2 ) as -> s [ as -> length + 1 ] = 0 ;\n return ( 0 ) ;\n }\n if ( sc == NULL ) {\n length = mbsnbytes ( _p , n ) ;\n if ( archive_string_append ( as , _p , length ) == NULL ) return ( - 1 ) ;\n return ( 0 ) ;\n }\n if ( sc -> flag & SCONV_FROM_UTF16 ) length = utf16nbytes ( _p , n ) ;\n else length = mbsnbytes ( _p , n ) ;\n s = _p ;\n i = 0 ;\n if ( sc -> nconverter > 1 ) {\n sc -> utftmp . length = 0 ;\n r2 = sc -> converter [ 0 ] ( & ( sc -> utftmp ) , s , length , sc ) ;\n if ( r2 != 0 && errno == ENOMEM ) return ( r2 ) ;\n if ( r > r2 ) r = r2 ;\n s = sc -> utftmp . s ;\n length = sc -> utftmp . length ;\n ++ i ;\n }\n r2 = sc -> converter [ i ] ( as , s , length , sc ) ;\n if ( r > r2 ) r = r2 ;\n return ( r ) ;\n }"}
{"idx": 13580, "target": 0, "func": "static guint16 de_tp_mode_flag ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset = offset ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_mode_flag , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_downlink_timeslot_offset , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset += 1 ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 13581, "target": 0, "func": "void h248_calls_init_tap ( void ) {\n GString * error_string ;\n if ( have_megaco_tap_listener == FALSE ) {\n error_string = register_tap_listener ( \"megaco\" , & ( the_tapinfo_struct . megaco_dummy ) , NULL , 0 , voip_calls_dlg_reset , h248_calls_packet , voip_calls_dlg_draw ) ;\n if ( error_string != NULL ) {\n simple_dialog ( ESD_TYPE_ERROR , ESD_BTN_OK , \"%s\" , error_string -> str ) ;\n g_string_free ( error_string , TRUE ) ;\n exit ( 1 ) ;\n }\n have_megaco_tap_listener = TRUE ;\n }\n if ( have_h248_tap_listener == FALSE ) {\n error_string = register_tap_listener ( \"h248\" , & ( the_tapinfo_struct . h248_dummy ) , NULL , 0 , voip_calls_dlg_reset , h248_calls_packet , voip_calls_dlg_draw ) ;\n if ( error_string != NULL ) {\n simple_dialog ( ESD_TYPE_ERROR , ESD_BTN_OK , \"%s\" , error_string -> str ) ;\n g_string_free ( error_string , TRUE ) ;\n exit ( 1 ) ;\n }\n have_h248_tap_listener = TRUE ;\n }\n }"}
{"idx": 13582, "target": 0, "func": "static int mainwindows_compare ( MAIN_WINDOW_REC * w1 , MAIN_WINDOW_REC * w2 ) {\n return w1 -> first_line < w2 -> first_line ? - 1 : w1 -> first_line > w2 -> first_line ? 1 : w1 -> first_column < w2 -> first_column ? - 1 : w1 -> first_column > w2 -> first_column ? 1 : 0 ;\n }"}
{"idx": 13583, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , PaintInMultipleChildFrames ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n GURL a_url ( embedded_test_server ( ) -> GetURL ( \"/page_load_metrics/iframes.html\" ) ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : FIRST_LAYOUT ) ;\n waiter -> AddPageExpectation ( TimingField : : LOAD_EVENT ) ;\n waiter -> AddSubFrameExpectation ( TimingField : : FIRST_PAINT ) ;\n waiter -> AddSubFrameExpectation ( TimingField : : FIRST_CONTENTFUL_PAINT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , a_url ) ;\n waiter -> Wait ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramFirstLayout , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramLoad , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramFirstPaint , 1 ) ;\n }"}
{"idx": 13584, "target": 0, "func": "void BrotliStateInit ( BrotliState * s ) {\n BrotliStateInitWithCustomAllocators ( s , 0 , 0 , 0 ) ;\n }"}
{"idx": 13585, "target": 0, "func": "static void dissect_q931_ns_facilities_ie ( tvbuff_t * tvb , int offset , int len , proto_tree * tree ) {\n guint8 octet ;\n int netid_len ;\n if ( len == 0 ) return ;\n octet = tvb_get_guint8 ( tvb , offset ) ;\n netid_len = octet & 0x7F ;\n proto_tree_add_item ( tree , hf_q931_netid_length , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset += 1 ;\n len -= 1 ;\n if ( netid_len != 0 ) {\n if ( len == 0 ) return ;\n proto_tree_add_item ( tree , hf_q931_netid_type , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_q931_netid_plan , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset += 1 ;\n len -= 1 ;\n netid_len -- ;\n if ( len == 0 ) return ;\n if ( netid_len > len ) netid_len = len ;\n if ( netid_len != 0 ) {\n proto_tree_add_item ( tree , hf_q931_netid , tvb , offset , netid_len , ENC_NA | ENC_ASCII ) ;\n offset += netid_len ;\n len -= netid_len ;\n }\n }\n if ( len == 0 ) return ;\n proto_tree_add_item ( tree , hf_q931_netid_facility_specification , tvb , offset , len , ENC_NA ) ;\n }"}
{"idx": 13586, "target": 0, "func": "static int dissect_h225_T_h245Ip ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 341 \"./asn1/h225/h225.cnf\" tvbuff_t * value_tvb ;\n ipv4_address = 0 ;\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 4 , 4 , FALSE , & value_tvb ) ;\n if ( value_tvb ) ipv4_address = tvb_get_ipv4 ( value_tvb , 0 ) ;\n return offset ;\n }"}
{"idx": 13587, "target": 0, "func": "static inline int extend_code ( GetBitContext * gb , int val , int range , int bits ) {\n if ( val == 0 ) {\n val = - range - get_ue_golomb ( gb ) ;\n }\n else if ( val == range * 2 ) {\n val = range + get_ue_golomb ( gb ) ;\n }\n else {\n val -= range ;\n }\n if ( bits ) val = ( val << bits ) | get_bits ( gb , bits ) ;\n return val ;\n }"}
{"idx": 13588, "target": 0, "func": "bool gx_color_info_equal ( const gx_device_color_info * p1 , const gx_device_color_info * p2 ) {\n if ( p1 -> anti_alias . graphics_bits != p2 -> anti_alias . graphics_bits ) return false ;\n if ( p1 -> anti_alias . text_bits != p2 -> anti_alias . text_bits ) return false ;\n if ( p1 -> black_component != p2 -> black_component ) return false ;\n if ( strcmp ( p1 -> cm_name , p2 -> cm_name ) != 0 ) return false ;\n if ( p1 -> depth != p2 -> depth ) return false ;\n if ( p1 -> dither_colors != p2 -> dither_colors ) return false ;\n if ( p1 -> dither_grays != p2 -> dither_grays ) return false ;\n if ( p1 -> gray_index != p2 -> gray_index ) return false ;\n if ( p1 -> max_color != p2 -> max_color ) return false ;\n if ( p1 -> max_components != p2 -> max_components ) return false ;\n if ( p1 -> opmode != p2 -> opmode ) return false ;\n if ( p1 -> polarity != p2 -> polarity ) return false ;\n if ( p1 -> process_comps != p2 -> process_comps ) return false ;\n if ( p1 -> separable_and_linear != p2 -> separable_and_linear ) return false ;\n if ( p1 -> use_antidropout_downscaler != p2 -> use_antidropout_downscaler ) return false ;\n return true ;\n }"}
{"idx": 13589, "target": 0, "func": "static int32_t u_scanf_uchar_handler ( UFILE * input , u_scanf_spec_info * info , ufmt_args * args , const UChar * fmt , int32_t * fmtConsumed , int32_t * argConverted ) {\n if ( info -> fWidth < 0 ) {\n info -> fWidth = 1 ;\n }\n info -> fIsString = FALSE ;\n return u_scanf_ustring_handler ( input , info , args , fmt , fmtConsumed , argConverted ) ;\n }"}
{"idx": 13590, "target": 0, "func": "static int rv10_decode_packet ( AVCodecContext * avctx , const uint8_t * buf , int buf_size , int buf_size2 ) {\n RVDecContext * rv = avctx -> priv_data ;\n MpegEncContext * s = & rv -> m ;\n int mb_count , mb_pos , left , start_mb_x , active_bits_size ;\n active_bits_size = buf_size * 8 ;\n init_get_bits ( & s -> gb , buf , FFMAX ( buf_size , buf_size2 ) * 8 ) ;\n if ( s -> codec_id == AV_CODEC_ID_RV10 ) mb_count = rv10_decode_picture_header ( s ) ;\n else mb_count = rv20_decode_picture_header ( rv ) ;\n if ( mb_count < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"HEADER ERROR\\n\" ) ;\n return - 1 ;\n }\n if ( s -> mb_x >= s -> mb_width || s -> mb_y >= s -> mb_height ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"POS ERROR %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n mb_pos = s -> mb_y * s -> mb_width + s -> mb_x ;\n left = s -> mb_width * s -> mb_height - mb_pos ;\n if ( mb_count > left ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"COUNT ERROR\\n\" ) ;\n return - 1 ;\n }\n if ( ( s -> mb_x == 0 && s -> mb_y == 0 ) || s -> current_picture_ptr == NULL ) {\n if ( s -> current_picture_ptr ) {\n ff_er_frame_end ( & s -> er ) ;\n ff_MPV_frame_end ( s ) ;\n s -> mb_x = s -> mb_y = s -> resync_mb_x = s -> resync_mb_y = 0 ;\n }\n if ( ff_MPV_frame_start ( s , avctx ) < 0 ) return - 1 ;\n ff_mpeg_er_frame_start ( s ) ;\n }\n else {\n if ( s -> current_picture_ptr -> f . pict_type != s -> pict_type ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Slice type mismatch\\n\" ) ;\n return - 1 ;\n }\n }\n av_dlog ( avctx , \"qscale=%d\\n\" , s -> qscale ) ;\n if ( s -> codec_id == AV_CODEC_ID_RV10 ) {\n if ( s -> mb_y == 0 ) s -> first_slice_line = 1 ;\n }\n else {\n s -> first_slice_line = 1 ;\n s -> resync_mb_x = s -> mb_x ;\n }\n start_mb_x = s -> mb_x ;\n s -> resync_mb_y = s -> mb_y ;\n if ( s -> h263_aic ) {\n s -> y_dc_scale_table = s -> c_dc_scale_table = ff_aic_dc_scale_table ;\n }\n else {\n s -> y_dc_scale_table = s -> c_dc_scale_table = ff_mpeg1_dc_scale_table ;\n }\n if ( s -> modified_quant ) s -> chroma_qscale_table = ff_h263_chroma_qscale_table ;\n ff_set_qscale ( s , s -> qscale ) ;\n s -> rv10_first_dc_coded [ 0 ] = 0 ;\n s -> rv10_first_dc_coded [ 1 ] = 0 ;\n s -> rv10_first_dc_coded [ 2 ] = 0 ;\n s -> block_wrap [ 0 ] = s -> block_wrap [ 1 ] = s -> block_wrap [ 2 ] = s -> block_wrap [ 3 ] = s -> b8_stride ;\n s -> block_wrap [ 4 ] = s -> block_wrap [ 5 ] = s -> mb_stride ;\n ff_init_block_index ( s ) ;\n for ( s -> mb_num_left = mb_count ;\n s -> mb_num_left > 0 ;\n s -> mb_num_left -- ) {\n int ret ;\n ff_update_block_index ( s ) ;\n av_dlog ( avctx , \"**mb x=%d y=%d\\n\" , s -> mb_x , s -> mb_y ) ;\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n ret = ff_h263_decode_mb ( s , s -> block ) ;\n if ( ret != SLICE_ERROR ) {\n int v = show_bits ( & s -> gb , 16 ) ;\n if ( get_bits_count ( & s -> gb ) + 16 > active_bits_size ) v >>= get_bits_count ( & s -> gb ) + 16 - active_bits_size ;\n if ( ! v ) ret = SLICE_END ;\n }\n if ( ret != SLICE_ERROR && active_bits_size < get_bits_count ( & s -> gb ) && 8 * buf_size2 >= get_bits_count ( & s -> gb ) ) {\n active_bits_size = buf_size2 * 8 ;\n av_log ( avctx , AV_LOG_DEBUG , \"update size from %d to %d\\n\" , 8 * buf_size , active_bits_size ) ;\n ret = SLICE_OK ;\n }\n if ( ret == SLICE_ERROR || active_bits_size < get_bits_count ( & s -> gb ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"ERROR at MB %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n if ( s -> pict_type != AV_PICTURE_TYPE_B ) ff_h263_update_motion_val ( s ) ;\n ff_MPV_decode_mb ( s , s -> block ) ;\n if ( s -> loop_filter ) ff_h263_loop_filter ( s ) ;\n if ( ++ s -> mb_x == s -> mb_width ) {\n s -> mb_x = 0 ;\n s -> mb_y ++ ;\n ff_init_block_index ( s ) ;\n }\n if ( s -> mb_x == s -> resync_mb_x ) s -> first_slice_line = 0 ;\n if ( ret == SLICE_END ) break ;\n }\n ff_er_add_slice ( & s -> er , start_mb_x , s -> resync_mb_y , s -> mb_x - 1 , s -> mb_y , ER_MB_END ) ;\n return active_bits_size ;\n }"}
{"idx": 13591, "target": 0, "func": "int tm_poll ( tm_event_t poll_event , tm_event_t * result_event , int wait , int * tm_errno ) {\n int num , i ;\n int ret , mtype , nnodes ;\n int prot , protver ;\n int * obitvalp ;\n event_info * ep = NULL ;\n tm_task_id tid , * tidp ;\n tm_event_t nevent ;\n tm_node_id node ;\n char * jobid = NULL ;\n char * info = NULL ;\n struct tm_roots * roots ;\n struct taskhold * thold ;\n struct infohold * ihold ;\n struct reschold * rhold ;\n extern time_t pbs_tcp_timeout ;\n if ( ! init_done ) {\n return ( TM_BADINIT ) ;\n }\n if ( result_event == NULL ) return ( TM_EBADENVIRONMENT ) ;\n * result_event = TM_ERROR_EVENT ;\n if ( poll_event != TM_NULL_EVENT ) return ( TM_ENOTIMPLEMENTED ) ;\n if ( tm_errno == NULL ) return ( TM_EBADENVIRONMENT ) ;\n if ( event_count == 0 ) {\n TM_DBPRT ( ( \"%s: no events waiting\\n\" , __func__ ) ) return ( TM_ENOTFOUND ) ;\n }\n if ( local_conn < 0 ) {\n TM_DBPRT ( ( \"%s: INTERNAL ERROR %d events but no connection (%d)\\n\" , __func__ , event_count , local_conn ) ) if ( static_chan != NULL ) {\n DIS_tcp_cleanup ( static_chan ) ;\n static_chan = NULL ;\n }\n return ( TM_ENOTCONNECTED ) ;\n }\n if ( ( static_chan == NULL ) && ( ( static_chan = DIS_tcp_setup ( local_conn ) ) == NULL ) ) {\n TM_DBPRT ( ( \"%s: Error allocating memory for sock buffer %d\" , __func__ , PBSE_MEM_MALLOC ) ) return TM_BADINIT ;\n }\n pbs_tcp_timeout = wait ? FOREVER : 1 ;\n prot = disrsi ( static_chan , & ret ) ;\n if ( ret == DIS_EOD ) {\n * result_event = TM_NULL_EVENT ;\n DIS_tcp_cleanup ( static_chan ) ;\n static_chan = NULL ;\n return TM_SUCCESS ;\n }\n else if ( ret != DIS_SUCCESS ) {\n TM_DBPRT ( ( \"%s: protocol number dis error %d\\n\" , __func__ , ret ) ) goto tm_poll_error ;\n }\n if ( prot != TM_PROTOCOL ) {\n TM_DBPRT ( ( \"%s: bad protocol number %d\\n\" , __func__ , prot ) ) goto tm_poll_error ;\n }\n pbs_tcp_timeout = FOREVER ;\n protver = disrsi ( static_chan , & ret ) ;\n if ( ret != DIS_SUCCESS ) {\n TM_DBPRT ( ( \"%s: protocol version dis error %d\\n\" , __func__ , ret ) ) goto tm_poll_error ;\n }\n if ( protver != TM_PROTOCOL_VER ) {\n TM_DBPRT ( ( \"%s: bad protocol version %d\\n\" , __func__ , protver ) ) goto tm_poll_error ;\n }\n mtype = disrsi ( static_chan , & ret ) ;\n if ( ret != DIS_SUCCESS ) {\n TM_DBPRT ( ( \"%s: mtype dis error %d\\n\" , __func__ , ret ) ) goto tm_poll_error ;\n }\n nevent = disrsi ( static_chan , & ret ) ;\n if ( ret != DIS_SUCCESS ) {\n TM_DBPRT ( ( \"%s: event dis error %d\\n\" , __func__ , ret ) ) goto tm_poll_error ;\n }\n * result_event = nevent ;\n TM_DBPRT ( ( \"%s: got event %d return %d\\n\" , __func__ , nevent , mtype ) ) if ( ( ep = find_event ( nevent ) ) == NULL ) {\n TM_DBPRT ( ( \"%s: No event found for number %d\\n\" , __func__ , nevent ) ) ;\n DIS_tcp_close ( static_chan ) ;\n static_chan = NULL ;\n local_conn = - 1 ;\n return TM_ENOEVENT ;\n }\n if ( mtype == TM_ERROR ) {\n * tm_errno = disrsi ( static_chan , & ret ) ;\n TM_DBPRT ( ( \"%s: event %d error %d\\n\" , __func__ , nevent , * tm_errno ) ) ;\n goto tm_poll_done ;\n }\n * tm_errno = TM_SUCCESS ;\n switch ( ep -> e_mtype ) {\n case TM_INIT : nnodes = disrsi ( static_chan , & ret ) ;\n if ( ret != DIS_SUCCESS ) {\n TM_DBPRT ( ( \"%s: INIT failed nnodes\\n\" , __func__ ) ) goto tm_poll_error ;\n }\n node_table = ( tm_node_id * ) calloc ( nnodes + 1 , sizeof ( tm_node_id ) ) ;\n if ( node_table == NULL ) {\n perror ( \"Memory allocation failed\" ) ;\n goto tm_poll_error ;\n }\n TM_DBPRT ( ( \"%s: INIT nodes %d\\n\" , __func__ , nnodes ) ) for ( i = 0 ;\n i < nnodes ;\n i ++ ) {\n node_table [ i ] = disrsi ( static_chan , & ret ) ;\n if ( ret != DIS_SUCCESS ) {\n TM_DBPRT ( ( \"%s: INIT failed nodeid %d\\n\" , __func__ , i ) ) goto tm_poll_error ;\n }\n }\n node_table [ nnodes ] = TM_ERROR_NODE ;\n jobid = disrst ( static_chan , & ret ) ;\n if ( ret != DIS_SUCCESS ) {\n TM_DBPRT ( ( \"%s: INIT failed jobid\\n\" , __func__ ) ) goto tm_poll_error ;\n }\n TM_DBPRT ( ( \"%s: INIT daddy jobid %s\\n\" , __func__ , jobid ) ) node = disrsi ( static_chan , & ret ) ;\n if ( ret != DIS_SUCCESS ) {\n TM_DBPRT ( ( \"%s: INIT failed parent nodeid\\n\" , __func__ ) ) goto tm_poll_error ;\n }\n TM_DBPRT ( ( \"%s: INIT daddy node %d\\n\" , __func__ , node ) ) tid = disrsi ( static_chan , & ret ) ;\n if ( ret != DIS_SUCCESS ) {\n TM_DBPRT ( ( \"%s: INIT failed parent taskid\\n\" , __func__ ) ) goto tm_poll_error ;\n }\n TM_DBPRT ( ( \"%s: INIT daddy tid %lu\\n\" , __func__ , ( unsigned long ) tid ) ) roots = ( struct tm_roots * ) ep -> e_info ;\n roots -> tm_parent = new_task ( jobid , node , tid ) ;\n roots -> tm_me = new_task ( tm_jobid , tm_jobndid , tm_jobtid ) ;\n roots -> tm_nnodes = nnodes ;\n roots -> tm_ntasks = 0 ;\n roots -> tm_taskpoolid = - 1 ;\n roots -> tm_tasklist = NULL ;\n break ;\n case TM_TASKS : thold = ( struct taskhold * ) ep -> e_info ;\n tidp = thold -> list ;\n num = thold -> size ;\n for ( i = 0 ;\n ;\n i ++ ) {\n tid = disrsi ( static_chan , & ret ) ;\n if ( tid == TM_NULL_TASK ) break ;\n if ( ret != DIS_SUCCESS ) goto tm_poll_error ;\n if ( i < num ) {\n tidp [ i ] = new_task ( tm_jobid , ep -> e_node , tid ) ;\n }\n }\n if ( i < num ) tidp [ i ] = TM_NULL_TASK ;\n * ( thold -> ntasks ) = i ;\n break ;\n case TM_SPAWN : tid = disrsi ( static_chan , & ret ) ;\n if ( ret != DIS_SUCCESS ) {\n TM_DBPRT ( ( \"%s: SPAWN failed tid\\n\" , __func__ ) ) goto tm_poll_error ;\n }\n tidp = ( tm_task_id * ) ep -> e_info ;\n * tidp = new_task ( tm_jobid , ep -> e_node , tid ) ;\n break ;\n case TM_SIGNAL : break ;\n case TM_OBIT : obitvalp = ( int * ) ep -> e_info ;\n * obitvalp = disrsi ( static_chan , & ret ) ;\n if ( ret != DIS_SUCCESS ) {\n TM_DBPRT ( ( \"%s: OBIT failed obitval\\n\" , __func__ ) ) goto tm_poll_error ;\n }\n break ;\n case TM_POSTINFO : break ;\n case TM_GETINFO : ihold = ( struct infohold * ) ep -> e_info ;\n info = disrcs ( static_chan , ( size_t * ) ihold -> info_len , & ret ) ;\n if ( ret != DIS_SUCCESS ) {\n if ( info != NULL ) free ( info ) ;\n TM_DBPRT ( ( \"%s: GETINFO failed info\\n\" , __func__ ) ) break ;\n }\n memcpy ( ihold -> info , info , MIN ( * ihold -> info_len , ihold -> len ) ) ;\n free ( info ) ;\n break ;\n case TM_RESOURCES : rhold = ( struct reschold * ) ep -> e_info ;\n info = disrst ( static_chan , & ret ) ;\n if ( ret != DIS_SUCCESS ) {\n if ( info != NULL ) free ( info ) ;\n break ;\n }\n snprintf ( rhold -> resc , rhold -> len , \"%s\" , info ) ;\n free ( info ) ;\n break ;\n default : TM_DBPRT ( ( \"%s: unknown event command %d\\n\" , __func__ , ep -> e_mtype ) ) goto tm_poll_error ;\n }\n DIS_tcp_wflush ( static_chan ) ;\n tm_poll_done : if ( jobid != NULL ) free ( jobid ) ;\n del_event ( ep ) ;\n if ( tcp_chan_has_data ( static_chan ) == FALSE ) {\n DIS_tcp_cleanup ( static_chan ) ;\n static_chan = NULL ;\n }\n return TM_SUCCESS ;\n tm_poll_error : if ( jobid != NULL ) free ( jobid ) ;\n if ( ep ) del_event ( ep ) ;\n close ( local_conn ) ;\n DIS_tcp_cleanup ( static_chan ) ;\n static_chan = NULL ;\n local_conn = - 1 ;\n return TM_ENOTCONNECTED ;\n }"}
{"idx": 13592, "target": 1, "func": "static uint32_t getHostID ( const ILcidPosixMap * this_0 , const char * posixID , UErrorCode * status ) {\n int32_t bestIdx = 0 ;\n int32_t bestIdxDiff = 0 ;\n int32_t posixIDlen = ( int32_t ) uprv_strlen ( posixID ) ;\n uint32_t idx ;\n for ( idx = 0 ;\n idx < this_0 -> numRegions ;\n idx ++ ) {\n int32_t sameChars = idCmp ( posixID , this_0 -> regionMaps [ idx ] . posixID ) ;\n if ( sameChars > bestIdxDiff && this_0 -> regionMaps [ idx ] . posixID [ sameChars ] == 0 ) {\n if ( posixIDlen == sameChars ) {\n return this_0 -> regionMaps [ idx ] . hostID ;\n }\n bestIdxDiff = sameChars ;\n bestIdx = idx ;\n }\n }\n if ( ( posixID [ bestIdxDiff ] == '_' || posixID [ bestIdxDiff ] == '@' ) && this_0 -> regionMaps [ bestIdx ] . posixID [ bestIdxDiff ] == 0 ) {\n * status = U_USING_FALLBACK_WARNING ;\n return this_0 -> regionMaps [ bestIdx ] . hostID ;\n }\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n return this_0 -> regionMaps -> hostID ;\n }"}
{"idx": 13593, "target": 0, "func": "char * test_url_print ( TSMBuffer bufp , TSMLoc hdr_loc ) {\n TSIOBuffer output_buffer ;\n TSIOBufferReader reader ;\n int64_t total_avail ;\n TSIOBufferBlock block ;\n const char * block_start ;\n int64_t block_avail ;\n char * output_string ;\n int output_len ;\n output_buffer = TSIOBufferCreate ( ) ;\n if ( ! output_buffer ) {\n TSError ( \"[InkAPITest] couldn't allocate IOBuffer\" ) ;\n }\n reader = TSIOBufferReaderAlloc ( output_buffer ) ;\n TSUrlPrint ( bufp , hdr_loc , output_buffer ) ;\n total_avail = TSIOBufferReaderAvail ( reader ) ;\n output_string = ( char * ) TSmalloc ( total_avail + 1 ) ;\n output_len = 0 ;\n block = TSIOBufferReaderStart ( reader ) ;\n while ( block ) {\n block_start = TSIOBufferBlockReadStart ( block , reader , & block_avail ) ;\n if ( block_avail == 0 ) {\n break ;\n }\n memcpy ( output_string + output_len , block_start , block_avail ) ;\n output_len += block_avail ;\n TSIOBufferReaderConsume ( reader , block_avail ) ;\n block = TSIOBufferReaderStart ( reader ) ;\n }\n output_string [ output_len ] = '\\0' ;\n output_len ++ ;\n TSIOBufferReaderFree ( reader ) ;\n TSIOBufferDestroy ( output_buffer ) ;\n return output_string ;\n }"}
{"idx": 13594, "target": 0, "func": "PGresult * executeQueryOrDie ( PGconn * conn , const char * fmt , ... ) {\n static char query [ QUERY_ALLOC ] ;\n va_list args ;\n PGresult * result ;\n ExecStatusType status ;\n va_start ( args , fmt ) ;\n vsnprintf ( query , sizeof ( query ) , fmt , args ) ;\n va_end ( args ) ;\n pg_log ( PG_VERBOSE , \"executing: %s\\n\" , query ) ;\n result = PQexec ( conn , query ) ;\n status = PQresultStatus ( result ) ;\n if ( ( status != PGRES_TUPLES_OK ) && ( status != PGRES_COMMAND_OK ) ) {\n pg_log ( PG_REPORT , \"SQL command failed\\n%s\\n%s\\n\" , query , PQerrorMessage ( conn ) ) ;\n PQclear ( result ) ;\n PQfinish ( conn ) ;\n printf ( \"Failure, exiting\\n\" ) ;\n exit ( 1 ) ;\n }\n else return result ;\n }"}
{"idx": 13595, "target": 0, "func": "static int doapr_outch ( char * * sbuffer , char * * buffer , size_t * currlen , size_t * maxlen , int c ) {\n assert ( * sbuffer != NULL || buffer != NULL ) ;\n assert ( * currlen <= * maxlen ) ;\n if ( buffer && * currlen == * maxlen ) {\n if ( * maxlen > INT_MAX - BUFFER_INC ) return 0 ;\n * maxlen += BUFFER_INC ;\n if ( * buffer == NULL ) {\n * buffer = OPENSSL_malloc ( * maxlen ) ;\n if ( * buffer == NULL ) return 0 ;\n if ( * currlen > 0 ) {\n assert ( * sbuffer != NULL ) ;\n memcpy ( * buffer , * sbuffer , * currlen ) ;\n }\n * sbuffer = NULL ;\n }\n else {\n char * tmpbuf ;\n tmpbuf = OPENSSL_realloc ( * buffer , * maxlen ) ;\n if ( tmpbuf == NULL ) return 0 ;\n * buffer = tmpbuf ;\n }\n }\n if ( * currlen < * maxlen ) {\n if ( * sbuffer ) ( * sbuffer ) [ ( * currlen ) ++ ] = ( char ) c ;\n else ( * buffer ) [ ( * currlen ) ++ ] = ( char ) c ;\n }\n return 1 ;\n }"}
{"idx": 13596, "target": 1, "func": "static int32_t _appendPrivateuseToLanguageTag ( const char * localeID , char * appendAt , int32_t capacity , UBool strict , UBool hadPosix , UErrorCode * status ) {\n char buf [ ULOC_FULLNAME_CAPACITY ] ;\n char tmpAppend [ ULOC_FULLNAME_CAPACITY ] ;\n UErrorCode tmpStatus = U_ZERO_ERROR ;\n int32_t len , i ;\n int32_t reslen = 0 ;\n if ( U_FAILURE ( * status ) ) {\n return 0 ;\n }\n len = uloc_getVariant ( localeID , buf , sizeof ( buf ) , & tmpStatus ) ;\n if ( U_FAILURE ( tmpStatus ) || tmpStatus == U_STRING_NOT_TERMINATED_WARNING ) {\n if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n }\n return 0 ;\n }\n if ( len > 0 ) {\n char * p , * pPriv ;\n UBool bNext = TRUE ;\n UBool firstValue = TRUE ;\n UBool writeValue ;\n pPriv = NULL ;\n p = buf ;\n while ( bNext ) {\n writeValue = FALSE ;\n if ( * p == SEP || * p == LOCALE_SEP || * p == 0 ) {\n if ( * p == 0 ) {\n bNext = FALSE ;\n }\n else {\n * p = 0 ;\n }\n if ( pPriv != NULL ) {\n for ( i = 0 ;\n * ( pPriv + i ) != 0 ;\n i ++ ) {\n * ( pPriv + i ) = uprv_tolower ( * ( pPriv + i ) ) ;\n }\n if ( _isPrivateuseValueSubtag ( pPriv , - 1 ) ) {\n if ( firstValue ) {\n if ( ! _isVariantSubtag ( pPriv , - 1 ) ) {\n writeValue = TRUE ;\n }\n }\n else {\n writeValue = TRUE ;\n }\n }\n else if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n break ;\n }\n else {\n break ;\n }\n if ( writeValue ) {\n if ( reslen < capacity ) {\n tmpAppend [ reslen ++ ] = SEP ;\n }\n if ( firstValue ) {\n if ( reslen < capacity ) {\n tmpAppend [ reslen ++ ] = * PRIVATEUSE_KEY ;\n }\n if ( reslen < capacity ) {\n tmpAppend [ reslen ++ ] = SEP ;\n }\n len = ( int32_t ) uprv_strlen ( PRIVUSE_VARIANT_PREFIX ) ;\n if ( reslen < capacity ) {\n uprv_memcpy ( tmpAppend + reslen , PRIVUSE_VARIANT_PREFIX , uprv_min ( len , capacity - reslen ) ) ;\n }\n reslen += len ;\n if ( reslen < capacity ) {\n tmpAppend [ reslen ++ ] = SEP ;\n }\n firstValue = FALSE ;\n }\n len = ( int32_t ) uprv_strlen ( pPriv ) ;\n if ( reslen < capacity ) {\n uprv_memcpy ( tmpAppend + reslen , pPriv , uprv_min ( len , capacity - reslen ) ) ;\n }\n reslen += len ;\n }\n }\n pPriv = NULL ;\n }\n else if ( pPriv == NULL ) {\n pPriv = p ;\n }\n p ++ ;\n }\n if ( U_FAILURE ( * status ) ) {\n return 0 ;\n }\n }\n if ( U_SUCCESS ( * status ) ) {\n len = reslen ;\n if ( reslen < capacity ) {\n uprv_memcpy ( appendAt , tmpAppend , uprv_min ( len , capacity - reslen ) ) ;\n }\n }\n u_terminateChars ( appendAt , capacity , reslen , status ) ;\n return reslen ;\n }"}
{"idx": 13597, "target": 0, "func": "static void fake_freeaddrinfo ( struct addrinfo * ai ) {\n free ( ai -> ai_addr ) ;\n }"}
{"idx": 13598, "target": 0, "func": "static int decode_rgb24_frame ( CLLCContext * ctx , GetBitContext * gb , AVFrame * pic ) {\n AVCodecContext * avctx = ctx -> avctx ;\n uint8_t * dst ;\n int pred [ 3 ] ;\n int ret ;\n int i , j ;\n VLC vlc [ 3 ] ;\n pred [ 0 ] = 0x80 ;\n pred [ 1 ] = 0x80 ;\n pred [ 2 ] = 0x80 ;\n dst = pic -> data [ 0 ] ;\n skip_bits ( gb , 16 ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n ret = read_code_table ( ctx , gb , & vlc [ i ] ) ;\n if ( ret < 0 ) {\n for ( j = 0 ;\n j <= i ;\n j ++ ) ff_free_vlc ( & vlc [ j ] ) ;\n av_log ( ctx -> avctx , AV_LOG_ERROR , \"Could not read code table %d.\\n\" , i ) ;\n return ret ;\n }\n }\n for ( i = 0 ;\n i < avctx -> height ;\n i ++ ) {\n for ( j = 0 ;\n j < 3 ;\n j ++ ) read_rgb24_component_line ( ctx , gb , & pred [ j ] , & vlc [ j ] , & dst [ j ] ) ;\n dst += pic -> linesize [ 0 ] ;\n }\n for ( i = 0 ;\n i < 3 ;\n i ++ ) ff_free_vlc ( & vlc [ i ] ) ;\n return 0 ;\n }"}
{"idx": 13599, "target": 0, "func": "static LAYER_CONTEXT * get_layer_context ( VP9_COMP * const cpi ) {\n return ( cpi -> svc . number_temporal_layers > 1 && cpi -> oxcf . rc_mode == VPX_CBR ) ? & cpi -> svc . layer_context [ cpi -> svc . temporal_layer_id ] : & cpi -> svc . layer_context [ cpi -> svc . spatial_layer_id ] ;\n }"}
{"idx": 13600, "target": 0, "func": "static void handle_raw_login ( char * packet , int len , struct query * q , int fd , int userid ) {\n char myhash [ 16 ] ;\n if ( len < 16 ) return ;\n if ( userid < 0 || userid >= created_users ) return ;\n if ( ! users [ userid ] . active || users [ userid ] . disabled ) return ;\n if ( ! users [ userid ] . authenticated ) return ;\n if ( users [ userid ] . last_pkt + 60 < time ( NULL ) ) return ;\n if ( debug >= 1 ) {\n fprintf ( stderr , \"IN login raw, len %d, from user %d\\n\" , len , userid ) ;\n }\n login_calculate ( myhash , 16 , password , users [ userid ] . seed + 1 ) ;\n if ( memcmp ( packet , myhash , 16 ) == 0 ) {\n struct sockaddr_in * tempin ;\n users [ userid ] . last_pkt = time ( NULL ) ;\n memcpy ( & ( users [ userid ] . q ) , q , sizeof ( struct query ) ) ;\n tempin = ( struct sockaddr_in * ) & ( q -> from ) ;\n memcpy ( & ( users [ userid ] . host ) , & ( tempin -> sin_addr ) , sizeof ( struct in_addr ) ) ;\n user_set_conn_type ( userid , CONN_RAW_UDP ) ;\n login_calculate ( myhash , 16 , password , users [ userid ] . seed - 1 ) ;\n send_raw ( fd , myhash , 16 , userid , RAW_HDR_CMD_LOGIN , q ) ;\n users [ userid ] . authenticated_raw = 1 ;\n }\n }"}
{"idx": 13601, "target": 0, "func": "static double patternsel ( PG_FUNCTION_ARGS , Pattern_Type ptype , bool negate ) {\n PlannerInfo * root = ( PlannerInfo * ) PG_GETARG_POINTER ( 0 ) ;\n Oid operator = PG_GETARG_OID ( 1 ) ;\n List * args = ( List * ) PG_GETARG_POINTER ( 2 ) ;\n int varRelid = PG_GETARG_INT32 ( 3 ) ;\n Oid collation = PG_GET_COLLATION ( ) ;\n VariableStatData vardata ;\n Node * other ;\n bool varonleft ;\n Datum constval ;\n Oid consttype ;\n Oid vartype ;\n Oid opfamily ;\n Pattern_Prefix_Status pstatus ;\n Const * patt ;\n Const * prefix = NULL ;\n Selectivity rest_selec = 0 ;\n double result ;\n if ( negate ) {\n operator = get_negator ( operator ) ;\n if ( ! OidIsValid ( operator ) ) elog ( ERROR , \"patternsel called for operator without a negator\" ) ;\n result = 1.0 - DEFAULT_MATCH_SEL ;\n }\n else {\n result = DEFAULT_MATCH_SEL ;\n }\n if ( ! get_restriction_variable ( root , args , varRelid , & vardata , & other , & varonleft ) ) return result ;\n if ( ! varonleft || ! IsA ( other , Const ) ) {\n ReleaseVariableStats ( vardata ) ;\n return result ;\n }\n if ( ( ( Const * ) other ) -> constisnull ) {\n ReleaseVariableStats ( vardata ) ;\n return 0.0 ;\n }\n constval = ( ( Const * ) other ) -> constvalue ;\n consttype = ( ( Const * ) other ) -> consttype ;\n if ( consttype != TEXTOID && consttype != BYTEAOID ) {\n ReleaseVariableStats ( vardata ) ;\n return result ;\n }\n vartype = vardata . vartype ;\n switch ( vartype ) {\n case TEXTOID : opfamily = TEXT_BTREE_FAM_OID ;\n break ;\n case BPCHAROID : opfamily = BPCHAR_BTREE_FAM_OID ;\n break ;\n case NAMEOID : opfamily = NAME_BTREE_FAM_OID ;\n break ;\n case BYTEAOID : opfamily = BYTEA_BTREE_FAM_OID ;\n break ;\n default : ReleaseVariableStats ( vardata ) ;\n return result ;\n }\n patt = ( Const * ) other ;\n pstatus = pattern_fixed_prefix ( patt , ptype , collation , & prefix , & rest_selec ) ;\n if ( prefix && prefix -> consttype != vartype ) {\n char * prefixstr ;\n switch ( prefix -> consttype ) {\n case TEXTOID : prefixstr = TextDatumGetCString ( prefix -> constvalue ) ;\n break ;\n case BYTEAOID : prefixstr = DatumGetCString ( DirectFunctionCall1 ( byteaout , prefix -> constvalue ) ) ;\n break ;\n default : elog ( ERROR , \"unrecognized consttype: %u\" , prefix -> consttype ) ;\n ReleaseVariableStats ( vardata ) ;\n return result ;\n }\n prefix = string_to_const ( prefixstr , vartype ) ;\n pfree ( prefixstr ) ;\n }\n if ( pstatus == Pattern_Prefix_Exact ) {\n Oid eqopr = get_opfamily_member ( opfamily , vartype , vartype , BTEqualStrategyNumber ) ;\n if ( eqopr == InvalidOid ) elog ( ERROR , \"no = operator for opfamily %u\" , opfamily ) ;\n result = var_eq_const ( & vardata , eqopr , prefix -> constvalue , false , true ) ;\n }\n else {\n Selectivity selec ;\n int hist_size ;\n FmgrInfo opproc ;\n double nullfrac , mcv_selec , sumcommon ;\n fmgr_info ( get_opcode ( operator ) , & opproc ) ;\n selec = histogram_selectivity ( & vardata , & opproc , constval , true , 10 , 1 , & hist_size ) ;\n if ( hist_size < 100 ) {\n Selectivity heursel ;\n Selectivity prefixsel ;\n if ( pstatus == Pattern_Prefix_Partial ) prefixsel = prefix_selectivity ( root , & vardata , vartype , opfamily , prefix ) ;\n else prefixsel = 1.0 ;\n heursel = prefixsel * rest_selec ;\n if ( selec < 0 ) selec = heursel ;\n else {\n double hist_weight = hist_size / 100.0 ;\n selec = selec * hist_weight + heursel * ( 1.0 - hist_weight ) ;\n }\n }\n if ( selec < 0.0001 ) selec = 0.0001 ;\n else if ( selec > 0.9999 ) selec = 0.9999 ;\n mcv_selec = mcv_selectivity ( & vardata , & opproc , constval , true , & sumcommon ) ;\n if ( HeapTupleIsValid ( vardata . statsTuple ) ) nullfrac = ( ( Form_pg_statistic ) GETSTRUCT ( vardata . statsTuple ) ) -> stanullfrac ;\n else nullfrac = 0.0 ;\n selec *= 1.0 - nullfrac - sumcommon ;\n selec += mcv_selec ;\n CLAMP_PROBABILITY ( selec ) ;\n result = selec ;\n }\n if ( prefix ) {\n pfree ( DatumGetPointer ( prefix -> constvalue ) ) ;\n pfree ( prefix ) ;\n }\n ReleaseVariableStats ( vardata ) ;\n return negate ? ( 1.0 - result ) : result ;\n }"}
{"idx": 13602, "target": 0, "func": "static char * spl_filesystem_object_get_pathname ( spl_filesystem_object * intern , int * len TSRMLS_DC ) {\n switch ( intern -> type ) {\n case SPL_FS_INFO : case SPL_FS_FILE : * len = intern -> file_name_len ;\n return intern -> file_name ;\n case SPL_FS_DIR : if ( intern -> u . dir . entry . d_name [ 0 ] ) {\n spl_filesystem_object_get_file_name ( intern TSRMLS_CC ) ;\n * len = intern -> file_name_len ;\n return intern -> file_name ;\n }\n }\n * len = 0 ;\n return NULL ;\n }"}
{"idx": 13603, "target": 0, "func": "static int decode_residues ( TAKDecContext * s , int32_t * decoded , int length ) {\n GetBitContext * gb = & s -> gb ;\n int i , mode , ret ;\n if ( length > s -> nb_samples ) return AVERROR_INVALIDDATA ;\n if ( get_bits1 ( gb ) ) {\n int wlength , rval ;\n int coding_mode [ 128 ] ;\n wlength = length / s -> uval ;\n rval = length - ( wlength * s -> uval ) ;\n if ( rval < s -> uval / 2 ) rval += s -> uval ;\n else wlength ++ ;\n if ( wlength <= 1 || wlength > 128 ) return AVERROR_INVALIDDATA ;\n coding_mode [ 0 ] = mode = get_bits ( gb , 6 ) ;\n for ( i = 1 ;\n i < wlength ;\n i ++ ) {\n int c = get_unary ( gb , 1 , 6 ) ;\n switch ( c ) {\n case 6 : mode = get_bits ( gb , 6 ) ;\n break ;\n case 5 : case 4 : case 3 : {\n int sign = get_bits1 ( gb ) ;\n mode += ( - sign ^ ( c - 1 ) ) + sign ;\n break ;\n }\n case 2 : mode ++ ;\n break ;\n case 1 : mode -- ;\n break ;\n }\n coding_mode [ i ] = mode ;\n }\n i = 0 ;\n while ( i < wlength ) {\n int len = 0 ;\n mode = coding_mode [ i ] ;\n do {\n if ( i >= wlength - 1 ) len += rval ;\n else len += s -> uval ;\n i ++ ;\n if ( i == wlength ) break ;\n }\n while ( coding_mode [ i ] == mode ) ;\n if ( ( ret = decode_segment ( gb , mode , decoded , len ) ) < 0 ) return ret ;\n decoded += len ;\n }\n }\n else {\n mode = get_bits ( gb , 6 ) ;\n if ( ( ret = decode_segment ( gb , mode , decoded , length ) ) < 0 ) return ret ;\n }\n return 0 ;\n }"}
{"idx": 13604, "target": 1, "func": "static bool cgroupfs_mount_cgroup ( void * hdata , const char * root , int type ) {\n size_t bufsz = strlen ( root ) + sizeof ( \"/sys/fs/cgroup\" ) ;\n char * path = NULL ;\n char * * parts = NULL ;\n char * dirname = NULL ;\n char * abs_path = NULL ;\n char * abs_path2 = NULL ;\n struct cgfs_data * cgfs_d ;\n struct cgroup_process_info * info , * base_info ;\n int r , saved_errno = 0 ;\n cgfs_d = hdata ;\n if ( ! cgfs_d ) return false ;\n base_info = cgfs_d -> info ;\n if ( type == LXC_AUTO_CGROUP_FULL_NOSPEC ) type = LXC_AUTO_CGROUP_FULL_MIXED ;\n else if ( type == LXC_AUTO_CGROUP_NOSPEC ) type = LXC_AUTO_CGROUP_MIXED ;\n if ( type < LXC_AUTO_CGROUP_RO || type > LXC_AUTO_CGROUP_FULL_MIXED ) {\n ERROR ( \"could not mount cgroups into container: invalid type specified internally\" ) ;\n errno = EINVAL ;\n return false ;\n }\n path = calloc ( 1 , bufsz ) ;\n if ( ! path ) return false ;\n snprintf ( path , bufsz , \"%s/sys/fs/cgroup\" , root ) ;\n r = mount ( \"cgroup_root\" , path , \"tmpfs\" , MS_NOSUID | MS_NODEV | MS_NOEXEC | MS_RELATIME , \"size=10240k,mode=755\" ) ;\n if ( r < 0 ) {\n SYSERROR ( \"could not mount tmpfs to /sys/fs/cgroup in the container\" ) ;\n return false ;\n }\n for ( info = base_info ;\n info ;\n info = info -> next ) {\n size_t subsystem_count , i ;\n struct cgroup_mount_point * mp = info -> designated_mount_point ;\n if ( ! mp ) mp = lxc_cgroup_find_mount_point ( info -> hierarchy , info -> cgroup_path , true ) ;\n if ( ! mp ) {\n SYSERROR ( \"could not find original mount point for cgroup hierarchy while trying to mount cgroup filesystem\" ) ;\n goto out_error ;\n }\n subsystem_count = lxc_array_len ( ( void * * ) info -> hierarchy -> subsystems ) ;\n parts = calloc ( subsystem_count + 1 , sizeof ( char * ) ) ;\n if ( ! parts ) goto out_error ;\n for ( i = 0 ;\n i < subsystem_count ;\n i ++ ) {\n if ( ! strncmp ( info -> hierarchy -> subsystems [ i ] , \"name=\" , 5 ) ) parts [ i ] = info -> hierarchy -> subsystems [ i ] + 5 ;\n else parts [ i ] = info -> hierarchy -> subsystems [ i ] ;\n }\n dirname = lxc_string_join ( \",\" , ( const char * * ) parts , false ) ;\n if ( ! dirname ) goto out_error ;\n abs_path = lxc_append_paths ( path , dirname ) ;\n if ( ! abs_path ) goto out_error ;\n r = mkdir_p ( abs_path , 0755 ) ;\n if ( r < 0 && errno != EEXIST ) {\n SYSERROR ( \"could not create cgroup subsystem directory /sys/fs/cgroup/%s\" , dirname ) ;\n goto out_error ;\n }\n abs_path2 = lxc_append_paths ( abs_path , info -> cgroup_path ) ;\n if ( ! abs_path2 ) goto out_error ;\n if ( type == LXC_AUTO_CGROUP_FULL_RO || type == LXC_AUTO_CGROUP_FULL_RW || type == LXC_AUTO_CGROUP_FULL_MIXED ) {\n if ( strcmp ( mp -> mount_prefix , \"/\" ) != 0 ) {\n ERROR ( \"could not automatically mount cgroup-full to /sys/fs/cgroup/%s: host has no mount point for this cgroup filesystem that has access to the root cgroup\" , dirname ) ;\n goto out_error ;\n }\n r = mount ( mp -> mount_point , abs_path , \"none\" , MS_BIND , 0 ) ;\n if ( r < 0 ) {\n SYSERROR ( \"error bind-mounting %s to %s\" , mp -> mount_point , abs_path ) ;\n goto out_error ;\n }\n if ( type == LXC_AUTO_CGROUP_FULL_RO || type == LXC_AUTO_CGROUP_FULL_MIXED ) {\n r = mount ( NULL , abs_path , NULL , MS_REMOUNT | MS_BIND | MS_RDONLY , NULL ) ;\n if ( r < 0 ) {\n SYSERROR ( \"error re-mounting %s readonly\" , abs_path ) ;\n goto out_error ;\n }\n }\n if ( type == LXC_AUTO_CGROUP_FULL_MIXED ) {\n r = mount ( abs_path2 , abs_path2 , NULL , MS_BIND , NULL ) ;\n if ( r < 0 ) {\n SYSERROR ( \"error bind-mounting %s onto itself\" , abs_path2 ) ;\n goto out_error ;\n }\n r = mount ( NULL , abs_path2 , NULL , MS_REMOUNT | MS_BIND , NULL ) ;\n if ( r < 0 ) {\n SYSERROR ( \"error re-mounting %s readwrite\" , abs_path2 ) ;\n goto out_error ;\n }\n }\n }\n else {\n r = mkdir_p ( abs_path2 , 0755 ) ;\n if ( r < 0 && errno != EEXIST ) {\n SYSERROR ( \"could not create cgroup directory /sys/fs/cgroup/%s%s\" , dirname , info -> cgroup_path ) ;\n goto out_error ;\n }\n if ( type == LXC_AUTO_CGROUP_MIXED || type == LXC_AUTO_CGROUP_RO ) {\n r = mount ( abs_path , abs_path , NULL , MS_BIND , NULL ) ;\n if ( r < 0 ) {\n SYSERROR ( \"error bind-mounting %s onto itself\" , abs_path ) ;\n goto out_error ;\n }\n r = mount ( NULL , abs_path , NULL , MS_REMOUNT | MS_BIND | MS_RDONLY , NULL ) ;\n if ( r < 0 ) {\n SYSERROR ( \"error re-mounting %s readonly\" , abs_path ) ;\n goto out_error ;\n }\n }\n free ( abs_path ) ;\n abs_path = NULL ;\n abs_path = cgroup_to_absolute_path ( mp , info -> cgroup_path , NULL ) ;\n if ( ! abs_path ) goto out_error ;\n r = mount ( abs_path , abs_path2 , \"none\" , MS_BIND , 0 ) ;\n if ( r < 0 ) {\n SYSERROR ( \"error bind-mounting %s to %s\" , abs_path , abs_path2 ) ;\n goto out_error ;\n }\n if ( type == LXC_AUTO_CGROUP_RO ) {\n r = mount ( NULL , abs_path2 , NULL , MS_REMOUNT | MS_BIND | MS_RDONLY , NULL ) ;\n if ( r < 0 ) {\n SYSERROR ( \"error re-mounting %s readonly\" , abs_path2 ) ;\n goto out_error ;\n }\n }\n }\n free ( abs_path ) ;\n free ( abs_path2 ) ;\n abs_path = NULL ;\n abs_path2 = NULL ;\n if ( subsystem_count > 1 ) {\n for ( i = 0 ;\n i < subsystem_count ;\n i ++ ) {\n abs_path = lxc_append_paths ( path , parts [ i ] ) ;\n if ( ! abs_path ) goto out_error ;\n r = symlink ( dirname , abs_path ) ;\n if ( r < 0 ) WARN ( \"could not create symlink %s -> %s in /sys/fs/cgroup of container\" , parts [ i ] , dirname ) ;\n free ( abs_path ) ;\n abs_path = NULL ;\n }\n }\n free ( dirname ) ;\n free ( parts ) ;\n dirname = NULL ;\n parts = NULL ;\n }\n free ( path ) ;\n return true ;\n out_error : saved_errno = errno ;\n free ( path ) ;\n free ( dirname ) ;\n free ( parts ) ;\n free ( abs_path ) ;\n free ( abs_path2 ) ;\n errno = saved_errno ;\n return false ;\n }"}
{"idx": 13605, "target": 0, "func": "CURLcode Curl_getformdata ( struct SessionHandle * data , struct FormData * * finalform , struct curl_httppost * post , const char * custom_content_type , curl_off_t * sizep ) {\n struct FormData * form = NULL ;\n struct FormData * firstform ;\n struct curl_httppost * file ;\n CURLcode result = CURLE_OK ;\n curl_off_t size = 0 ;\n char * boundary ;\n char * fileboundary = NULL ;\n struct curl_slist * curList ;\n * finalform = NULL ;\n if ( ! post ) return result ;\n boundary = formboundary ( data ) ;\n if ( ! boundary ) return CURLE_OUT_OF_MEMORY ;\n result = AddFormDataf ( & form , NULL , \"%s;\n boundary=%s\\r\\n\" , custom_content_type ? custom_content_type : \"Content-Type: multipart/form-data\" , boundary ) ;\n if ( result ) {\n Curl_safefree ( boundary ) ;\n return result ;\n }\n firstform = form ;\n do {\n if ( size ) {\n result = AddFormDataf ( & form , & size , \"\\r\\n\" ) ;\n if ( result ) break ;\n }\n result = AddFormDataf ( & form , & size , \"--%s\\r\\n\" , boundary ) ;\n if ( result ) break ;\n result = AddFormDataf ( & form , & size , \"Content-Disposition: form-data;\n name=\\\"\" ) ;\n if ( result ) break ;\n result = AddFormData ( & form , FORM_DATA , post -> name , post -> namelength , & size ) ;\n if ( result ) break ;\n result = AddFormDataf ( & form , & size , \"\\\"\" ) ;\n if ( result ) break ;\n if ( post -> more ) {\n Curl_safefree ( fileboundary ) ;\n fileboundary = formboundary ( data ) ;\n if ( ! fileboundary ) {\n result = CURLE_OUT_OF_MEMORY ;\n break ;\n }\n result = AddFormDataf ( & form , & size , \"\\r\\nContent-Type: multipart/mixed;\n\" \" boundary=%s\\r\\n\" , fileboundary ) ;\n if ( result ) break ;\n }\n file = post ;\n do {\n if ( post -> more ) {\n result = AddFormDataf ( & form , & size , \"\\r\\n--%s\\r\\nContent-Disposition: \" \"attachment\" , fileboundary ) ;\n if ( result ) break ;\n result = formdata_add_filename ( file , & form , & size ) ;\n if ( result ) break ;\n }\n else if ( post -> flags & ( HTTPPOST_FILENAME | HTTPPOST_BUFFER | HTTPPOST_CALLBACK ) ) {\n if ( post -> showfilename || ( post -> flags & HTTPPOST_FILENAME ) ) {\n result = formdata_add_filename ( post , & form , & size ) ;\n }\n if ( result ) break ;\n }\n if ( file -> contenttype ) {\n result = AddFormDataf ( & form , & size , \"\\r\\nContent-Type: %s\" , file -> contenttype ) ;\n if ( result ) break ;\n }\n curList = file -> contentheader ;\n while ( curList ) {\n result = AddFormDataf ( & form , & size , \"\\r\\n%s\" , curList -> data ) ;\n if ( result ) break ;\n curList = curList -> next ;\n }\n if ( result ) break ;\n result = AddFormDataf ( & form , & size , \"\\r\\n\\r\\n\" ) ;\n if ( result ) break ;\n if ( ( post -> flags & HTTPPOST_FILENAME ) || ( post -> flags & HTTPPOST_READFILE ) ) {\n FILE * fileread ;\n fileread = strequal ( \"-\" , file -> contents ) ? stdin : fopen ( file -> contents , \"rb\" ) ;\n if ( fileread ) {\n if ( fileread != stdin ) {\n fclose ( fileread ) ;\n result = AddFormData ( & form , FORM_FILE , file -> contents , 0 , & size ) ;\n }\n else {\n size_t nread ;\n char buffer [ 512 ] ;\n while ( ( nread = fread ( buffer , 1 , sizeof ( buffer ) , fileread ) ) != 0 ) {\n result = AddFormData ( & form , FORM_CONTENT , buffer , nread , & size ) ;\n if ( result ) break ;\n }\n }\n }\n else {\n if ( data ) failf ( data , \"couldn't open file \\\"%s\\\"\" , file -> contents ) ;\n * finalform = NULL ;\n result = CURLE_READ_ERROR ;\n }\n }\n else if ( post -> flags & HTTPPOST_BUFFER ) result = AddFormData ( & form , FORM_CONTENT , post -> buffer , post -> bufferlength , & size ) ;\n else if ( post -> flags & HTTPPOST_CALLBACK ) result = AddFormData ( & form , FORM_CALLBACK , post -> userp , post -> contentslength , & size ) ;\n else result = AddFormData ( & form , FORM_CONTENT , post -> contents , post -> contentslength , & size ) ;\n file = file -> more ;\n }\n while ( file && ! result ) ;\n if ( result ) break ;\n if ( post -> more ) {\n result = AddFormDataf ( & form , & size , \"\\r\\n--%s--\" , fileboundary ) ;\n if ( result ) break ;\n }\n }\n while ( ( post = post -> next ) != NULL ) ;\n if ( ! result ) result = AddFormDataf ( & form , & size , \"\\r\\n--%s--\\r\\n\" , boundary ) ;\n if ( result ) {\n Curl_formclean ( & firstform ) ;\n Curl_safefree ( fileboundary ) ;\n Curl_safefree ( boundary ) ;\n return result ;\n }\n * sizep = size ;\n Curl_safefree ( fileboundary ) ;\n Curl_safefree ( boundary ) ;\n * finalform = firstform ;\n return result ;\n }"}
{"idx": 13606, "target": 0, "func": "static void f_parser ( lua_State * L , void * ud ) {\n int i ;\n Proto * tf ;\n Closure * cl ;\n struct SParser * p = cast ( struct SParser * , ud ) ;\n int c = luaZ_lookahead ( p -> z ) ;\n luaC_checkGC ( L ) ;\n tf = ( luaY_parser ) ( L , p -> z , & p -> buff , p -> name ) ;\n cl = luaF_newLclosure ( L , tf -> nups , hvalue ( gt ( L ) ) ) ;\n cl -> l . p = tf ;\n for ( i = 0 ;\n i < tf -> nups ;\n i ++ ) cl -> l . upvals [ i ] = luaF_newupval ( L ) ;\n setclvalue ( L , L -> top , cl ) ;\n incr_top ( L ) ;\n }"}
{"idx": 13607, "target": 0, "func": "static size_t unquote_string ( const char * string , size_t length , unsigned char * buf ) {\n int esc = 0 ;\n const unsigned char * s = ( const unsigned char * ) string ;\n unsigned char * d = buf ;\n size_t n = length ;\n for ( ;\n n ;\n n -- , s ++ ) {\n if ( esc ) {\n switch ( * s ) {\n case 'b' : * d ++ = '\\b' ;\n break ;\n case 't' : * d ++ = '\\t' ;\n break ;\n case 'v' : * d ++ = '\\v' ;\n break ;\n case 'n' : * d ++ = '\\n' ;\n break ;\n case 'f' : * d ++ = '\\f' ;\n break ;\n case 'r' : * d ++ = '\\r' ;\n break ;\n case '\"' : * d ++ = '\\\"' ;\n break ;\n case '\\'' : * d ++ = '\\'' ;\n break ;\n case '\\\\' : * d ++ = '\\\\' ;\n break ;\n case '\\r' : if ( n > 1 && s [ 1 ] == '\\n' ) {\n s ++ ;\n n -- ;\n }\n break ;\n case '\\n' : if ( n > 1 && s [ 1 ] == '\\r' ) {\n s ++ ;\n n -- ;\n }\n break ;\n case 'x' : if ( n > 2 && hexdigitp ( s + 1 ) && hexdigitp ( s + 2 ) ) {\n s ++ ;\n n -- ;\n * d ++ = xtoi_2 ( s ) ;\n s ++ ;\n n -- ;\n }\n break ;\n default : if ( n > 2 && octdigitp ( s ) && octdigitp ( s + 1 ) && octdigitp ( s + 2 ) ) {\n * d ++ = ( atoi_1 ( s ) * 64 ) + ( atoi_1 ( s + 1 ) * 8 ) + atoi_1 ( s + 2 ) ;\n s += 2 ;\n n -= 2 ;\n }\n break ;\n }\n esc = 0 ;\n }\n else if ( * s == '\\\\' ) esc = 1 ;\n else * d ++ = * s ;\n }\n return d - buf ;\n }"}
{"idx": 13608, "target": 0, "func": "static struct qcms_modular_transform * reverse_transform ( struct qcms_modular_transform * transform ) {\n struct qcms_modular_transform * prev_transform = NULL ;\n while ( transform != NULL ) {\n struct qcms_modular_transform * next_transform = transform -> next_transform ;\n transform -> next_transform = prev_transform ;\n prev_transform = transform ;\n transform = next_transform ;\n }\n return prev_transform ;\n }"}
{"idx": 13609, "target": 0, "func": "static void destroy_restrict_node ( restrict_node * my_node ) {\n destroy_address_node ( my_node -> addr ) ;\n destroy_address_node ( my_node -> mask ) ;\n destroy_int_fifo ( my_node -> flags ) ;\n free ( my_node ) ;\n }"}
{"idx": 13610, "target": 0, "func": "static void pdf_run_h ( fz_context * ctx , pdf_processor * proc ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n fz_closepath ( ctx , pr -> path ) ;\n }"}
{"idx": 13611, "target": 0, "func": "static int is_single_file ( const char * outfile_pattern ) {\n const char * p = outfile_pattern ;\n do {\n p = strchr ( p , '%' ) ;\n if ( p && p [ 1 ] >= '1' && p [ 1 ] <= '9' ) return 0 ;\n if ( p ) p ++ ;\n }\n while ( p ) ;\n return 1 ;\n }"}
{"idx": 13612, "target": 0, "func": "TSReturnCode TSHttpTxnCacheLookupStatusGet ( TSHttpTxn txnp , int * lookup_status ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) lookup_status ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n switch ( sm -> t_state . cache_lookup_result ) {\n case HttpTransact : : CACHE_LOOKUP_MISS : case HttpTransact : : CACHE_LOOKUP_DOC_BUSY : * lookup_status = TS_CACHE_LOOKUP_MISS ;\n break ;\n case HttpTransact : : CACHE_LOOKUP_HIT_STALE : * lookup_status = TS_CACHE_LOOKUP_HIT_STALE ;\n break ;\n case HttpTransact : : CACHE_LOOKUP_HIT_WARNING : case HttpTransact : : CACHE_LOOKUP_HIT_FRESH : * lookup_status = TS_CACHE_LOOKUP_HIT_FRESH ;\n break ;\n case HttpTransact : : CACHE_LOOKUP_SKIPPED : * lookup_status = TS_CACHE_LOOKUP_SKIPPED ;\n break ;\n case HttpTransact : : CACHE_LOOKUP_NONE : default : return TS_ERROR ;\n }\n ;\n return TS_SUCCESS ;\n }"}
{"idx": 13613, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , UseCounterCSSPropertiesInIframes ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : LOAD_EVENT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/page_load_metrics/use_counter_features_in_iframes.html\" ) ) ;\n waiter -> Wait ( ) ;\n NavigateToUntrackedUrl ( ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kCssPropertiesHistogramName , 6 , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kCssPropertiesHistogramName , 7 , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kCssPropertiesHistogramName , blink : : mojom : : kTotalPagesMeasuredCSSSampleId , 1 ) ;\n }"}
{"idx": 13614, "target": 0, "func": "static int dissect_h225_SEQUENCE_SIZE_1_16_OF_GenericData ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_SEQUENCE_SIZE_1_16_OF_GenericData , SEQUENCE_SIZE_1_16_OF_GenericData_sequence_of , 1 , 16 , FALSE ) ;\n return offset ;\n }"}
{"idx": 13615, "target": 0, "func": "static char * getstringtime ( krb5_timestamp epochtime ) {\n struct tm tme ;\n char * strtime = NULL ;\n time_t posixtime = epochtime ;\n strtime = calloc ( 50 , 1 ) ;\n if ( strtime == NULL ) return NULL ;\n if ( gmtime_r ( & posixtime , & tme ) == NULL ) return NULL ;\n strftime ( strtime , 50 , \"%Y%m%d%H%M%SZ\" , & tme ) ;\n return strtime ;\n }"}
{"idx": 13616, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( UnloadTest , DISABLED_BrowserCloseInfiniteBeforeUnloadAlert ) {\n if ( base : : CommandLine : : ForCurrentProcess ( ) -> HasSwitch ( switches : : kSingleProcess ) ) return ;\n LoadUrlAndQuitBrowser ( INFINITE_BEFORE_UNLOAD_ALERT_HTML , \"infinitebeforeunloadalert\" ) ;\n }"}
{"idx": 13617, "target": 0, "func": "void dissect_cipsafety_ssn ( proto_tree * tree , tvbuff_t * tvb , packet_info * pinfo _U_ , int offset , int hf_real_datetime , int hf_date , int hf_time ) {\n guint16 date ;\n date = tvb_get_letohs ( tvb , offset ) ;\n if ( ( date >= 11688 ) && ( date <= 65534 ) ) {\n dissect_cip_date_and_time ( tree , tvb , offset , hf_real_datetime ) ;\n }\n else {\n proto_tree_add_item ( tree , hf_date , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_time , tvb , offset + 2 , 4 , ENC_LITTLE_ENDIAN ) ;\n }\n }"}
{"idx": 13618, "target": 0, "func": "static void strip_parentheses ( struct st_command * command ) {\n if ( strip_surrounding ( command -> first_argument , '(' , ')' ) ) die ( \"%.*s - argument list started with '%c' must be ended with '%c'\" , command -> first_word_len , command -> query , '(' , ')' ) ;\n }"}
{"idx": 13619, "target": 0, "func": "static void test_bug9159 ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n const char * stmt_text = \"select a, b from t1\" ;\n const unsigned long type = CURSOR_TYPE_READ_ONLY ;\n myheader ( \"test_bug9159\" ) ;\n mysql_query ( mysql , \"drop table if exists t1\" ) ;\n mysql_query ( mysql , \"create table t1 (a int not null primary key, b int)\" ) ;\n rc = mysql_query ( mysql , \"insert into t1 values (1,1)\" ) ;\n myquery ( rc ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n mysql_stmt_attr_set ( stmt , STMT_ATTR_CURSOR_TYPE , ( const void * ) & type ) ;\n mysql_stmt_execute ( stmt ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"drop table if exists t1\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 13620, "target": 0, "func": "static const char * rsvp_host_get_filter_type ( hostlist_talker_t * host _U_ , conv_filter_type_e filter ) {\n if ( ( filter == CONV_FT_ANY_ADDRESS ) && ( host -> myaddress . type == AT_IPv4 ) ) return \"ip.addr\" ;\n return CONV_FILTER_INVALID ;\n }"}
{"idx": 13621, "target": 0, "func": "static int dissect_CPMSetScopePrioritization ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * parent_tree , gboolean in , void * data _U_ ) {\n gint offset = 16 ;\n proto_item * item ;\n proto_tree * tree ;\n col_append_str ( pinfo -> cinfo , COL_INFO , \"SetScopePrioritization\" ) ;\n if ( in ) {\n item = proto_tree_add_item ( parent_tree , hf_mswsp_msg , tvb , offset , - 1 , ENC_NA ) ;\n tree = proto_item_add_subtree ( item , ett_mswsp_msg ) ;\n proto_item_set_text ( item , \"SetScopePrioritizationIn\" ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmsetscopeprioritization_priority , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmsetscopeprioritization_eventfreq , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n }\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 13622, "target": 1, "func": "static void stubHashScannerFull ( void * payload , void * data , const xmlChar * name , const xmlChar * name2 ATTRIBUTE_UNUSED , const xmlChar * name3 ATTRIBUTE_UNUSED ) {\n stubData * stubdata = ( stubData * ) data ;\n stubdata -> hashscanner ( payload , stubdata -> data , ( xmlChar * ) name ) ;\n }"}
{"idx": 13623, "target": 0, "func": "void vp8_blend_mb_inner_c ( unsigned char * y , unsigned char * u , unsigned char * v , int y_1 , int u_1 , int v_1 , int alpha , int stride ) {\n int i , j ;\n int y1_const = y_1 * ( ( 1 << 16 ) - alpha ) ;\n int u1_const = u_1 * ( ( 1 << 16 ) - alpha ) ;\n int v1_const = v_1 * ( ( 1 << 16 ) - alpha ) ;\n y += 2 * stride + 2 ;\n for ( i = 0 ;\n i < 12 ;\n i ++ ) {\n for ( j = 0 ;\n j < 12 ;\n j ++ ) {\n y [ j ] = ( y [ j ] * alpha + y1_const ) >> 16 ;\n }\n y += stride ;\n }\n stride >>= 1 ;\n u += stride + 1 ;\n v += stride + 1 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n for ( j = 0 ;\n j < 6 ;\n j ++ ) {\n u [ j ] = ( u [ j ] * alpha + u1_const ) >> 16 ;\n v [ j ] = ( v [ j ] * alpha + v1_const ) >> 16 ;\n }\n u += stride ;\n v += stride ;\n }\n }"}
{"idx": 13624, "target": 0, "func": "static int cine_read_seek ( AVFormatContext * avctx , int stream_index , int64_t timestamp , int flags ) {\n CineDemuxContext * cine = avctx -> priv_data ;\n if ( ( flags & AVSEEK_FLAG_FRAME ) || ( flags & AVSEEK_FLAG_BYTE ) ) return AVERROR ( ENOSYS ) ;\n if ( ! ( avctx -> pb -> seekable & AVIO_SEEKABLE_NORMAL ) ) return AVERROR ( EIO ) ;\n cine -> pts = timestamp ;\n return 0 ;\n }"}
{"idx": 13625, "target": 0, "func": "static void msvideo1_decode_16bit ( Msvideo1Context * s ) {\n int block_ptr , pixel_ptr ;\n int total_blocks ;\n int pixel_x , pixel_y ;\n int block_x , block_y ;\n int blocks_wide , blocks_high ;\n int block_inc ;\n int row_dec ;\n int stream_ptr ;\n unsigned char byte_a , byte_b ;\n unsigned short flags ;\n int skip_blocks ;\n unsigned short colors [ 8 ] ;\n unsigned short * pixels = ( unsigned short * ) s -> frame . data [ 0 ] ;\n int stride = s -> frame . linesize [ 0 ] / 2 ;\n stream_ptr = 0 ;\n skip_blocks = 0 ;\n blocks_wide = s -> avctx -> width / 4 ;\n blocks_high = s -> avctx -> height / 4 ;\n total_blocks = blocks_wide * blocks_high ;\n block_inc = 4 ;\n row_dec = stride + 4 ;\n for ( block_y = blocks_high ;\n block_y > 0 ;\n block_y -- ) {\n block_ptr = ( ( block_y * 4 ) - 1 ) * stride ;\n for ( block_x = blocks_wide ;\n block_x > 0 ;\n block_x -- ) {\n if ( skip_blocks ) {\n block_ptr += block_inc ;\n skip_blocks -- ;\n total_blocks -- ;\n continue ;\n }\n pixel_ptr = block_ptr ;\n CHECK_STREAM_PTR ( 2 ) ;\n byte_a = s -> buf [ stream_ptr ++ ] ;\n byte_b = s -> buf [ stream_ptr ++ ] ;\n if ( ( byte_a == 0 ) && ( byte_b == 0 ) && ( total_blocks == 0 ) ) {\n return ;\n }\n else if ( ( byte_b & 0xFC ) == 0x84 ) {\n skip_blocks = ( ( byte_b - 0x84 ) << 8 ) + byte_a - 1 ;\n }\n else if ( byte_b < 0x80 ) {\n flags = ( byte_b << 8 ) | byte_a ;\n CHECK_STREAM_PTR ( 4 ) ;\n colors [ 0 ] = AV_RL16 ( & s -> buf [ stream_ptr ] ) ;\n stream_ptr += 2 ;\n colors [ 1 ] = AV_RL16 ( & s -> buf [ stream_ptr ] ) ;\n stream_ptr += 2 ;\n if ( colors [ 0 ] & 0x8000 ) {\n CHECK_STREAM_PTR ( 12 ) ;\n colors [ 2 ] = AV_RL16 ( & s -> buf [ stream_ptr ] ) ;\n stream_ptr += 2 ;\n colors [ 3 ] = AV_RL16 ( & s -> buf [ stream_ptr ] ) ;\n stream_ptr += 2 ;\n colors [ 4 ] = AV_RL16 ( & s -> buf [ stream_ptr ] ) ;\n stream_ptr += 2 ;\n colors [ 5 ] = AV_RL16 ( & s -> buf [ stream_ptr ] ) ;\n stream_ptr += 2 ;\n colors [ 6 ] = AV_RL16 ( & s -> buf [ stream_ptr ] ) ;\n stream_ptr += 2 ;\n colors [ 7 ] = AV_RL16 ( & s -> buf [ stream_ptr ] ) ;\n stream_ptr += 2 ;\n for ( pixel_y = 0 ;\n pixel_y < 4 ;\n pixel_y ++ ) {\n for ( pixel_x = 0 ;\n pixel_x < 4 ;\n pixel_x ++ , flags >>= 1 ) pixels [ pixel_ptr ++ ] = colors [ ( ( pixel_y & 0x2 ) << 1 ) + ( pixel_x & 0x2 ) + ( ( flags & 0x1 ) ^ 1 ) ] ;\n pixel_ptr -= row_dec ;\n }\n }\n else {\n for ( pixel_y = 0 ;\n pixel_y < 4 ;\n pixel_y ++ ) {\n for ( pixel_x = 0 ;\n pixel_x < 4 ;\n pixel_x ++ , flags >>= 1 ) pixels [ pixel_ptr ++ ] = colors [ ( flags & 0x1 ) ^ 1 ] ;\n pixel_ptr -= row_dec ;\n }\n }\n }\n else {\n colors [ 0 ] = ( byte_b << 8 ) | byte_a ;\n for ( pixel_y = 0 ;\n pixel_y < 4 ;\n pixel_y ++ ) {\n for ( pixel_x = 0 ;\n pixel_x < 4 ;\n pixel_x ++ ) pixels [ pixel_ptr ++ ] = colors [ 0 ] ;\n pixel_ptr -= row_dec ;\n }\n }\n block_ptr += block_inc ;\n total_blocks -- ;\n }\n }\n }"}
{"idx": 13626, "target": 0, "func": "static void update_stat ( char * port , uint64_t traffic ) {\n if ( verbose ) {\n LOGI ( \"update traffic %\" PRIu64 \" for port %s\" , traffic , port ) ;\n }\n void * ret = cork_hash_table_get ( server_table , ( void * ) port ) ;\n if ( ret != NULL ) {\n struct server * server = ( struct server * ) ret ;\n server -> traffic = traffic ;\n }\n }"}
{"idx": 13627, "target": 1, "func": "void ff_init_qscale_tab ( MpegEncContext * s ) {\n int8_t * const qscale_table = s -> current_picture . f . qscale_table ;\n int i ;\n for ( i = 0 ;\n i < s -> mb_num ;\n i ++ ) {\n unsigned int lam = s -> lambda_table [ s -> mb_index2xy [ i ] ] ;\n int qp = ( lam * 139 + FF_LAMBDA_SCALE * 64 ) >> ( FF_LAMBDA_SHIFT + 7 ) ;\n qscale_table [ s -> mb_index2xy [ i ] ] = av_clip ( qp , s -> avctx -> qmin , s -> avctx -> qmax ) ;\n }\n }"}
{"idx": 13628, "target": 0, "func": "TEST_F ( ExternalProtocolHandlerTest , TestLaunchSchemeUnBlockedChromeDefault ) {\n DoTest ( ExternalProtocolHandler : : DONT_BLOCK , shell_integration : : IS_DEFAULT , Action : : BLOCK ) ;\n }"}
{"idx": 13629, "target": 0, "func": "size_t gcry_sexp_sprint ( const gcry_sexp_t list , int mode , void * buffer , size_t maxlength ) {\n static unsigned char empty [ 3 ] = {\n ST_OPEN , ST_CLOSE , ST_STOP }\n ;\n const unsigned char * s ;\n char * d ;\n DATALEN n ;\n char numbuf [ 20 ] ;\n size_t len = 0 ;\n int i , indent = 0 ;\n s = list ? list -> d : empty ;\n d = buffer ;\n while ( * s != ST_STOP ) {\n switch ( * s ) {\n case ST_OPEN : s ++ ;\n if ( mode != GCRYSEXP_FMT_CANON ) {\n if ( indent ) len ++ ;\n len += indent ;\n }\n len ++ ;\n if ( buffer ) {\n if ( len >= maxlength ) return 0 ;\n if ( mode != GCRYSEXP_FMT_CANON ) {\n if ( indent ) * d ++ = '\\n' ;\n for ( i = 0 ;\n i < indent ;\n i ++ ) * d ++ = ' ' ;\n }\n * d ++ = '(' ;\n }\n indent ++ ;\n break ;\n case ST_CLOSE : s ++ ;\n len ++ ;\n if ( buffer ) {\n if ( len >= maxlength ) return 0 ;\n * d ++ = ')' ;\n }\n indent -- ;\n if ( * s != ST_OPEN && * s != ST_STOP && mode != GCRYSEXP_FMT_CANON ) {\n len ++ ;\n len += indent ;\n if ( buffer ) {\n if ( len >= maxlength ) return 0 ;\n * d ++ = '\\n' ;\n for ( i = 0 ;\n i < indent ;\n i ++ ) * d ++ = ' ' ;\n }\n }\n break ;\n case ST_DATA : s ++ ;\n memcpy ( & n , s , sizeof n ) ;\n s += sizeof n ;\n if ( mode == GCRYSEXP_FMT_ADVANCED ) {\n int type ;\n size_t nn ;\n switch ( ( type = suitable_encoding ( s , n ) ) ) {\n case 1 : nn = convert_to_string ( s , n , NULL ) ;\n break ;\n case 2 : nn = convert_to_token ( s , n , NULL ) ;\n break ;\n default : nn = convert_to_hex ( s , n , NULL ) ;\n break ;\n }\n len += nn ;\n if ( buffer ) {\n if ( len >= maxlength ) return 0 ;\n switch ( type ) {\n case 1 : convert_to_string ( s , n , d ) ;\n break ;\n case 2 : convert_to_token ( s , n , d ) ;\n break ;\n default : convert_to_hex ( s , n , d ) ;\n break ;\n }\n d += nn ;\n }\n if ( s [ n ] != ST_CLOSE ) {\n len ++ ;\n if ( buffer ) {\n if ( len >= maxlength ) return 0 ;\n * d ++ = ' ' ;\n }\n }\n }\n else {\n sprintf ( numbuf , \"%u:\" , ( unsigned int ) n ) ;\n len += strlen ( numbuf ) + n ;\n if ( buffer ) {\n if ( len >= maxlength ) return 0 ;\n d = stpcpy ( d , numbuf ) ;\n memcpy ( d , s , n ) ;\n d += n ;\n }\n }\n s += n ;\n break ;\n default : BUG ( ) ;\n }\n }\n if ( mode != GCRYSEXP_FMT_CANON ) {\n len ++ ;\n if ( buffer ) {\n if ( len >= maxlength ) return 0 ;\n * d ++ = '\\n' ;\n }\n }\n if ( buffer ) {\n if ( len >= maxlength ) return 0 ;\n * d ++ = 0 ;\n }\n else len ++ ;\n return len ;\n }"}
{"idx": 13630, "target": 0, "func": "static void _tiffUnmapProc ( thandle_t fd , void * base , toff_t size ) {\n ( void ) fd ;\n ( void ) base ;\n ( void ) size ;\n }"}
{"idx": 13631, "target": 0, "func": "static cmsToneCurve * ReadEmbeddedCurve ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io ) {\n cmsTagTypeSignature BaseType ;\n cmsUInt32Number nItems ;\n BaseType = _cmsReadTypeBase ( io ) ;\n switch ( BaseType ) {\n case cmsSigCurveType : return ( cmsToneCurve * ) Type_Curve_Read ( self , io , & nItems , 0 ) ;\n case cmsSigParametricCurveType : return ( cmsToneCurve * ) Type_ParametricCurve_Read ( self , io , & nItems , 0 ) ;\n default : {\n char String [ 5 ] ;\n _cmsTagSignature2String ( String , ( cmsTagSignature ) BaseType ) ;\n cmsSignalError ( self -> ContextID , cmsERROR_UNKNOWN_EXTENSION , \"Unknown curve type '%s'\" , String ) ;\n }\n return NULL ;\n }\n }"}
{"idx": 13632, "target": 0, "func": "enum message_read_status evhttp_parse_firstline ( struct evhttp_request * req , struct evbuffer * buffer ) {\n char * line ;\n enum message_read_status status = ALL_DATA_READ ;\n line = evbuffer_readline ( buffer ) ;\n if ( line == NULL ) return ( MORE_DATA_EXPECTED ) ;\n switch ( req -> kind ) {\n case EVHTTP_REQUEST : if ( evhttp_parse_request_line ( req , line ) == - 1 ) status = DATA_CORRUPTED ;\n break ;\n case EVHTTP_RESPONSE : if ( evhttp_parse_response_line ( req , line ) == - 1 ) status = DATA_CORRUPTED ;\n break ;\n default : status = DATA_CORRUPTED ;\n }\n free ( line ) ;\n return ( status ) ;\n }"}
{"idx": 13633, "target": 0, "func": "PyObject * PyString_AsEncodedString ( PyObject * str , const char * encoding , const char * errors ) {\n PyObject * v ;\n v = PyString_AsEncodedObject ( str , encoding , errors ) ;\n if ( v == NULL ) goto onError ;\n # ifdef Py_USING_UNICODE if ( PyUnicode_Check ( v ) ) {\n PyObject * temp = v ;\n v = PyUnicode_AsEncodedString ( v , NULL , NULL ) ;\n Py_DECREF ( temp ) ;\n if ( v == NULL ) goto onError ;\n }\n # endif if ( ! PyString_Check ( v ) ) {\n PyErr_Format ( PyExc_TypeError , \"encoder did not return a string object (type=%.400s)\" , Py_TYPE ( v ) -> tp_name ) ;\n Py_DECREF ( v ) ;\n goto onError ;\n }\n return v ;\n onError : return NULL ;\n }"}
{"idx": 13634, "target": 0, "func": "static void test_bug12243 ( ) {\n MYSQL_STMT * stmt1 , * stmt2 ;\n int rc ;\n const char * stmt_text ;\n ulong type ;\n myheader ( \"test_bug12243\" ) ;\n if ( ! have_innodb ) {\n if ( ! opt_silent ) printf ( \"This test requires InnoDB.\\n\" ) ;\n return ;\n }\n mysql_query ( mysql , \"drop table if exists t1\" ) ;\n mysql_query ( mysql , \"create table t1 (a int) engine=InnoDB\" ) ;\n rc = mysql_query ( mysql , \"insert into t1 (a) values (1), (2)\" ) ;\n myquery ( rc ) ;\n mysql_autocommit ( mysql , FALSE ) ;\n stmt1 = mysql_stmt_init ( mysql ) ;\n stmt2 = mysql_stmt_init ( mysql ) ;\n type = ( ulong ) CURSOR_TYPE_READ_ONLY ;\n mysql_stmt_attr_set ( stmt1 , STMT_ATTR_CURSOR_TYPE , ( const void * ) & type ) ;\n mysql_stmt_attr_set ( stmt2 , STMT_ATTR_CURSOR_TYPE , ( const void * ) & type ) ;\n stmt_text = \"select a from t1\" ;\n rc = mysql_stmt_prepare ( stmt1 , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt1 , rc ) ;\n rc = mysql_stmt_execute ( stmt1 ) ;\n check_execute ( stmt1 , rc ) ;\n rc = mysql_stmt_fetch ( stmt1 ) ;\n check_execute ( stmt1 , rc ) ;\n rc = mysql_stmt_prepare ( stmt2 , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt2 , rc ) ;\n rc = mysql_stmt_execute ( stmt2 ) ;\n check_execute ( stmt2 , rc ) ;\n rc = mysql_stmt_fetch ( stmt2 ) ;\n check_execute ( stmt2 , rc ) ;\n rc = mysql_stmt_close ( stmt1 ) ;\n check_execute ( stmt1 , rc ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n rc = mysql_stmt_fetch ( stmt2 ) ;\n check_execute ( stmt2 , rc ) ;\n mysql_stmt_close ( stmt2 ) ;\n rc = mysql_query ( mysql , \"drop table t1\" ) ;\n myquery ( rc ) ;\n mysql_autocommit ( mysql , TRUE ) ;\n }"}
{"idx": 13635, "target": 0, "func": "void qemuAgentNotifyClose ( qemuAgentPtr mon ) {\n if ( ! mon ) return ;\n VIR_DEBUG ( \"mon=%p\" , mon ) ;\n virObjectLock ( mon ) ;\n qemuAgentNotifyCloseLocked ( mon ) ;\n virObjectUnlock ( mon ) ;\n }"}
{"idx": 13636, "target": 0, "func": "static block_t * PacketizeStreamBlock ( decoder_t * p_dec , block_t * * pp_block ) {\n decoder_sys_t * p_sys = p_dec -> p_sys ;\n uint8_t p_header [ ADTS_HEADER_SIZE + LOAS_HEADER_SIZE ] ;\n block_t * p_out_buffer ;\n uint8_t * p_buf ;\n if ( ! pp_block || ! * pp_block ) return NULL ;\n if ( ( * pp_block ) -> i_flags & ( BLOCK_FLAG_DISCONTINUITY | BLOCK_FLAG_CORRUPTED ) ) {\n if ( ( * pp_block ) -> i_flags & BLOCK_FLAG_CORRUPTED ) {\n p_sys -> i_state = STATE_NOSYNC ;\n block_BytestreamEmpty ( & p_sys -> bytestream ) ;\n }\n date_Set ( & p_sys -> end_date , 0 ) ;\n block_Release ( * pp_block ) ;\n return NULL ;\n }\n if ( ! date_Get ( & p_sys -> end_date ) && ( * pp_block ) -> i_pts <= VLC_TS_INVALID ) {\n block_Release ( * pp_block ) ;\n return NULL ;\n }\n block_BytestreamPush ( & p_sys -> bytestream , * pp_block ) ;\n for ( ;\n ;\n ) {\n switch ( p_sys -> i_state ) {\n case STATE_NOSYNC : while ( block_PeekBytes ( & p_sys -> bytestream , p_header , 2 ) == VLC_SUCCESS ) {\n if ( p_header [ 0 ] == 0xff && ( p_header [ 1 ] & 0xf6 ) == 0xf0 ) {\n if ( p_sys -> i_type != TYPE_ADTS ) msg_Dbg ( p_dec , \"detected ADTS format\" ) ;\n p_sys -> i_state = STATE_SYNC ;\n p_sys -> i_type = TYPE_ADTS ;\n break ;\n }\n else if ( p_header [ 0 ] == 0x56 && ( p_header [ 1 ] & 0xe0 ) == 0xe0 ) {\n if ( p_sys -> i_type != TYPE_LOAS ) msg_Dbg ( p_dec , \"detected LOAS format\" ) ;\n p_sys -> i_state = STATE_SYNC ;\n p_sys -> i_type = TYPE_LOAS ;\n break ;\n }\n block_SkipByte ( & p_sys -> bytestream ) ;\n }\n if ( p_sys -> i_state != STATE_SYNC ) {\n block_BytestreamFlush ( & p_sys -> bytestream ) ;\n return NULL ;\n }\n case STATE_SYNC : p_sys -> i_pts = p_sys -> bytestream . p_block -> i_pts ;\n if ( p_sys -> i_pts > VLC_TS_INVALID && p_sys -> i_pts != date_Get ( & p_sys -> end_date ) ) date_Set ( & p_sys -> end_date , p_sys -> i_pts ) ;\n p_sys -> i_state = STATE_HEADER ;\n break ;\n case STATE_HEADER : if ( p_sys -> i_type == TYPE_ADTS ) {\n if ( block_PeekBytes ( & p_sys -> bytestream , p_header , ADTS_HEADER_SIZE ) != VLC_SUCCESS ) return NULL ;\n p_sys -> i_frame_size = ADTSSyncInfo ( p_dec , p_header , & p_sys -> i_channels , & p_sys -> i_rate , & p_sys -> i_frame_length , & p_sys -> i_header_size ) ;\n }\n else {\n assert ( p_sys -> i_type == TYPE_LOAS ) ;\n if ( block_PeekBytes ( & p_sys -> bytestream , p_header , LOAS_HEADER_SIZE ) != VLC_SUCCESS ) return NULL ;\n p_sys -> i_frame_size = LOASSyncInfo ( p_header , & p_sys -> i_header_size ) ;\n }\n if ( p_sys -> i_frame_size <= 0 ) {\n msg_Dbg ( p_dec , \"emulated sync word\" ) ;\n block_SkipByte ( & p_sys -> bytestream ) ;\n p_sys -> i_state = STATE_NOSYNC ;\n break ;\n }\n p_sys -> i_state = STATE_NEXT_SYNC ;\n case STATE_NEXT_SYNC : if ( p_sys -> bytestream . p_block == NULL ) {\n p_sys -> i_state = STATE_NOSYNC ;\n block_BytestreamFlush ( & p_sys -> bytestream ) ;\n return NULL ;\n }\n if ( block_PeekOffsetBytes ( & p_sys -> bytestream , p_sys -> i_frame_size + p_sys -> i_header_size , p_header , 2 ) != VLC_SUCCESS ) return NULL ;\n assert ( ( p_sys -> i_type == TYPE_ADTS ) || ( p_sys -> i_type == TYPE_LOAS ) ) ;\n if ( ( ( p_sys -> i_type == TYPE_ADTS ) && ( p_header [ 0 ] != 0xff || ( p_header [ 1 ] & 0xf6 ) != 0xf0 ) ) || ( ( p_sys -> i_type == TYPE_LOAS ) && ( p_header [ 0 ] != 0x56 || ( p_header [ 1 ] & 0xe0 ) != 0xe0 ) ) ) {\n msg_Dbg ( p_dec , \"emulated sync word \" \"(no sync on following frame)\" ) ;\n p_sys -> i_state = STATE_NOSYNC ;\n block_SkipByte ( & p_sys -> bytestream ) ;\n break ;\n }\n p_sys -> i_state = STATE_SEND_DATA ;\n break ;\n case STATE_GET_DATA : if ( block_WaitBytes ( & p_sys -> bytestream , p_sys -> i_frame_size + p_sys -> i_header_size ) != VLC_SUCCESS ) return NULL ;\n p_sys -> i_state = STATE_SEND_DATA ;\n case STATE_SEND_DATA : p_out_buffer = block_Alloc ( p_sys -> i_frame_size ) ;\n if ( ! p_out_buffer ) {\n return NULL ;\n }\n p_buf = p_out_buffer -> p_buffer ;\n block_SkipBytes ( & p_sys -> bytestream , p_sys -> i_header_size ) ;\n if ( p_sys -> i_type == TYPE_ADTS ) {\n block_GetBytes ( & p_sys -> bytestream , p_buf , p_sys -> i_frame_size ) ;\n }\n else {\n assert ( p_sys -> i_type == TYPE_LOAS ) ;\n block_GetBytes ( & p_sys -> bytestream , p_buf , p_sys -> i_frame_size ) ;\n p_out_buffer -> i_buffer = LOASParse ( p_dec , p_buf , p_sys -> i_frame_size ) ;\n if ( p_out_buffer -> i_buffer <= 0 ) {\n if ( ! p_sys -> b_latm_cfg ) msg_Warn ( p_dec , \"waiting for header\" ) ;\n block_Release ( p_out_buffer ) ;\n p_out_buffer = NULL ;\n p_sys -> i_state = STATE_NOSYNC ;\n break ;\n }\n }\n SetupOutput ( p_dec , p_out_buffer ) ;\n if ( p_sys -> i_pts == p_sys -> bytestream . p_block -> i_pts ) p_sys -> i_pts = p_sys -> bytestream . p_block -> i_pts = VLC_TS_INVALID ;\n * pp_block = block_BytestreamPop ( & p_sys -> bytestream ) ;\n p_sys -> i_state = STATE_NOSYNC ;\n return p_out_buffer ;\n }\n }\n return NULL ;\n }"}
{"idx": 13637, "target": 0, "func": "static double scalarineqsel ( PlannerInfo * root , Oid operator , bool isgt , VariableStatData * vardata , Datum constval , Oid consttype ) {\n Form_pg_statistic stats ;\n FmgrInfo opproc ;\n double mcv_selec , hist_selec , sumcommon ;\n double selec ;\n if ( ! HeapTupleIsValid ( vardata -> statsTuple ) ) {\n return DEFAULT_INEQ_SEL ;\n }\n stats = ( Form_pg_statistic ) GETSTRUCT ( vardata -> statsTuple ) ;\n fmgr_info ( get_opcode ( operator ) , & opproc ) ;\n mcv_selec = mcv_selectivity ( vardata , & opproc , constval , true , & sumcommon ) ;\n hist_selec = ineq_histogram_selectivity ( root , vardata , & opproc , isgt , constval , consttype ) ;\n selec = 1.0 - stats -> stanullfrac - sumcommon ;\n if ( hist_selec >= 0.0 ) selec *= hist_selec ;\n else {\n selec *= 0.5 ;\n }\n selec += mcv_selec ;\n CLAMP_PROBABILITY ( selec ) ;\n return selec ;\n }"}
{"idx": 13638, "target": 0, "func": "static void pxa2xx_i2s_write ( void * opaque , hwaddr addr , uint64_t value , unsigned size ) {\n PXA2xxI2SState * s = ( PXA2xxI2SState * ) opaque ;\n uint32_t * sample ;\n switch ( addr ) {\n case SACR0 : if ( value & ( 1 << 3 ) ) pxa2xx_i2s_reset ( s ) ;\n s -> control [ 0 ] = value & 0xff3d ;\n if ( ! s -> enable && ( value & 1 ) && s -> tx_len ) {\n for ( sample = s -> fifo ;\n s -> fifo_len > 0 ;\n s -> fifo_len -- , sample ++ ) s -> codec_out ( s -> opaque , * sample ) ;\n s -> status &= ~ ( 1 << 7 ) ;\n }\n if ( value & ( 1 << 4 ) ) printf ( \"%s: Attempt to use special function\\n\" , __FUNCTION__ ) ;\n s -> enable = ( value & 9 ) == 1 ;\n pxa2xx_i2s_update ( s ) ;\n break ;\n case SACR1 : s -> control [ 1 ] = value & 0x0039 ;\n if ( value & ( 1 << 5 ) ) printf ( \"%s: Attempt to use loopback function\\n\" , __FUNCTION__ ) ;\n if ( value & ( 1 << 4 ) ) s -> fifo_len = 0 ;\n pxa2xx_i2s_update ( s ) ;\n break ;\n case SAIMR : s -> mask = value & 0x0078 ;\n pxa2xx_i2s_update ( s ) ;\n break ;\n case SAICR : s -> status &= ~ ( value & ( 3 << 5 ) ) ;\n pxa2xx_i2s_update ( s ) ;\n break ;\n case SADIV : s -> clk = value & 0x007f ;\n break ;\n case SADR : if ( s -> tx_len && s -> enable ) {\n s -> tx_len -- ;\n pxa2xx_i2s_update ( s ) ;\n s -> codec_out ( s -> opaque , value ) ;\n }\n else if ( s -> fifo_len < 16 ) {\n s -> fifo [ s -> fifo_len ++ ] = value ;\n pxa2xx_i2s_update ( s ) ;\n }\n break ;\n default : printf ( \"%s: Bad register \" REG_FMT \"\\n\" , __FUNCTION__ , addr ) ;\n }\n }"}
{"idx": 13639, "target": 0, "func": "void proto_register_opcua ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_opcua_fragments , {\n \"Message fragments\" , \"opcua.fragments\" , FT_NONE , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_opcua_fragment , {\n \"Message fragment\" , \"opcua.fragment\" , FT_FRAMENUM , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_opcua_fragment_overlap , {\n \"Message fragment overlap\" , \"opcua.fragment.overlap\" , FT_BOOLEAN , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_opcua_fragment_overlap_conflicts , {\n \"Message fragment overlapping with conflicting data\" , \"opcua.fragment.overlap.conflicts\" , FT_BOOLEAN , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_opcua_fragment_multiple_tails , {\n \"Message has multiple tail fragments\" , \"opcua.fragment.multiple_tails\" , FT_BOOLEAN , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_opcua_fragment_too_long_fragment , {\n \"Message fragment too long\" , \"opcua.fragment.too_long_fragment\" , FT_BOOLEAN , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_opcua_fragment_error , {\n \"Message defragmentation error\" , \"opcua.fragment.error\" , FT_FRAMENUM , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_opcua_fragment_count , {\n \"Message fragment count\" , \"opcua.fragment.count\" , FT_UINT32 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_opcua_reassembled_in , {\n \"Reassembled in\" , \"opcua.reassembled.in\" , FT_FRAMENUM , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_opcua_reassembled_length , {\n \"Reassembled length\" , \"opcua.reassembled.length\" , FT_UINT32 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n }\n ;\n static gint * ett [ ] = {\n & ett_opcua_extensionobject , & ett_opcua_nodeid , & ett_opcua_transport , & ett_opcua_fragment , & ett_opcua_fragments }\n ;\n proto_opcua = proto_register_protocol ( \"OpcUa Binary Protocol\" , \"OpcUa\" , \"opcua\" ) ;\n registerTransportLayerTypes ( proto_opcua ) ;\n registerSecurityLayerTypes ( proto_opcua ) ;\n registerApplicationLayerTypes ( proto_opcua ) ;\n registerSimpleTypes ( proto_opcua ) ;\n registerEnumTypes ( proto_opcua ) ;\n registerComplexTypes ( ) ;\n registerServiceTypes ( ) ;\n registerFieldTypes ( proto_opcua ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n proto_register_field_array ( proto_opcua , hf , array_length ( hf ) ) ;\n reassembly_table_register ( & opcua_reassembly_table , & addresses_reassembly_table_functions ) ;\n }"}
{"idx": 13640, "target": 0, "func": "static bool gincost_scalararrayopexpr ( PlannerInfo * root , IndexOptInfo * index , IndexQualInfo * qinfo , double numIndexEntries , GinQualCounts * counts ) {\n int indexcol = qinfo -> indexcol ;\n Oid clause_op = qinfo -> clause_op ;\n Node * rightop = qinfo -> other_operand ;\n ArrayType * arrayval ;\n int16 elmlen ;\n bool elmbyval ;\n char elmalign ;\n int numElems ;\n Datum * elemValues ;\n bool * elemNulls ;\n GinQualCounts arraycounts ;\n int numPossible = 0 ;\n int i ;\n Assert ( ( ( ScalarArrayOpExpr * ) qinfo -> rinfo -> clause ) -> useOr ) ;\n rightop = estimate_expression_value ( root , rightop ) ;\n if ( IsA ( rightop , RelabelType ) ) rightop = ( Node * ) ( ( RelabelType * ) rightop ) -> arg ;\n if ( ! IsA ( rightop , Const ) ) {\n counts -> exactEntries ++ ;\n counts -> searchEntries ++ ;\n counts -> arrayScans *= estimate_array_length ( rightop ) ;\n return true ;\n }\n if ( ( ( Const * ) rightop ) -> constisnull ) return false ;\n arrayval = DatumGetArrayTypeP ( ( ( Const * ) rightop ) -> constvalue ) ;\n get_typlenbyvalalign ( ARR_ELEMTYPE ( arrayval ) , & elmlen , & elmbyval , & elmalign ) ;\n deconstruct_array ( arrayval , ARR_ELEMTYPE ( arrayval ) , elmlen , elmbyval , elmalign , & elemValues , & elemNulls , & numElems ) ;\n memset ( & arraycounts , 0 , sizeof ( arraycounts ) ) ;\n for ( i = 0 ;\n i < numElems ;\n i ++ ) {\n GinQualCounts elemcounts ;\n if ( elemNulls [ i ] ) continue ;\n memset ( & elemcounts , 0 , sizeof ( elemcounts ) ) ;\n if ( gincost_pattern ( index , indexcol , clause_op , elemValues [ i ] , & elemcounts ) ) {\n numPossible ++ ;\n if ( elemcounts . haveFullScan ) {\n elemcounts . partialEntries = 0 ;\n elemcounts . exactEntries = numIndexEntries ;\n elemcounts . searchEntries = numIndexEntries ;\n }\n arraycounts . partialEntries += elemcounts . partialEntries ;\n arraycounts . exactEntries += elemcounts . exactEntries ;\n arraycounts . searchEntries += elemcounts . searchEntries ;\n }\n }\n if ( numPossible == 0 ) {\n return false ;\n }\n counts -> partialEntries += arraycounts . partialEntries / numPossible ;\n counts -> exactEntries += arraycounts . exactEntries / numPossible ;\n counts -> searchEntries += arraycounts . searchEntries / numPossible ;\n counts -> arrayScans *= numPossible ;\n return true ;\n }"}
{"idx": 13641, "target": 1, "func": "static COMMANDS * find_command ( char * name ) {\n uint len ;\n char * end ;\n DBUG_ENTER ( \"find_command\" ) ;\n DBUG_ASSERT ( name != NULL ) ;\n DBUG_PRINT ( \"enter\" , ( \"name: '%s'\" , name ) ) ;\n while ( my_isspace ( charset_info , * name ) ) name ++ ;\n if ( ( ! real_binary_mode && strstr ( name , \"\\\\g\" ) ) || ( strstr ( name , delimiter ) && ! is_delimiter_command ( name , DELIMITER_NAME_LEN ) ) ) DBUG_RETURN ( ( COMMANDS * ) 0 ) ;\n if ( ( end = strcont ( name , \" \\t\" ) ) ) {\n len = ( uint ) ( end - name ) ;\n while ( my_isspace ( charset_info , * end ) ) end ++ ;\n if ( ! * end ) end = 0 ;\n }\n else len = ( uint ) strlen ( name ) ;\n int index = - 1 ;\n if ( real_binary_mode ) {\n if ( is_delimiter_command ( name , len ) ) index = delimiter_index ;\n }\n else {\n for ( uint i = 0 ;\n commands [ i ] . func ;\n i ++ ) {\n if ( ! my_strnncoll ( & my_charset_latin1 , ( uchar * ) name , len , ( uchar * ) commands [ i ] . name , len ) && ( commands [ i ] . name [ len ] == '\\0' ) && ( ! end || commands [ i ] . takes_params ) ) {\n index = i ;\n break ;\n }\n }\n }\n if ( index >= 0 ) {\n DBUG_PRINT ( \"exit\" , ( \"found command: %s\" , commands [ index ] . name ) ) ;\n DBUG_RETURN ( & commands [ index ] ) ;\n }\n DBUG_RETURN ( ( COMMANDS * ) 0 ) ;\n }"}
{"idx": 13642, "target": 0, "func": "static unsigned int mszh_decomp ( const unsigned char * srcptr , int srclen , unsigned char * destptr , unsigned int destsize ) {\n unsigned char * destptr_bak = destptr ;\n unsigned char * destptr_end = destptr + destsize ;\n const unsigned char * srcptr_end = srcptr + srclen ;\n unsigned mask = * srcptr ++ ;\n unsigned maskbit = 0x80 ;\n while ( srcptr < srcptr_end && destptr < destptr_end ) {\n if ( ! ( mask & maskbit ) ) {\n memcpy ( destptr , srcptr , 4 ) ;\n destptr += 4 ;\n srcptr += 4 ;\n }\n else {\n unsigned ofs = bytestream_get_le16 ( & srcptr ) ;\n unsigned cnt = ( ofs >> 11 ) + 1 ;\n ofs &= 0x7ff ;\n ofs = FFMIN ( ofs , destptr - destptr_bak ) ;\n cnt *= 4 ;\n cnt = FFMIN ( cnt , destptr_end - destptr ) ;\n av_memcpy_backptr ( destptr , ofs , cnt ) ;\n destptr += cnt ;\n }\n maskbit >>= 1 ;\n if ( ! maskbit ) {\n mask = * srcptr ++ ;\n while ( ! mask ) {\n if ( destptr_end - destptr < 32 || srcptr_end - srcptr < 32 ) break ;\n memcpy ( destptr , srcptr , 32 ) ;\n destptr += 32 ;\n srcptr += 32 ;\n mask = * srcptr ++ ;\n }\n maskbit = 0x80 ;\n }\n }\n return destptr - destptr_bak ;\n }"}
{"idx": 13643, "target": 0, "func": "int X509_pubkey_digest ( const X509 * data , const EVP_MD * type , unsigned char * md , unsigned int * len ) {\n ASN1_BIT_STRING * key ;\n key = X509_get0_pubkey_bitstr ( data ) ;\n if ( ! key ) return 0 ;\n return EVP_Digest ( key -> data , key -> length , md , len , type , NULL ) ;\n }"}
{"idx": 13644, "target": 1, "func": "void jpc_qmfb_split_colres ( jpc_fix_t * a , int numrows , int numcols , int stride , int parity ) {\n int bufsize = JPC_CEILDIVPOW2 ( numrows , 1 ) ;\n jpc_fix_t splitbuf [ QMFB_SPLITBUFSIZE * JPC_QMFB_COLGRPSIZE ] ;\n jpc_fix_t * buf = splitbuf ;\n jpc_fix_t * srcptr ;\n jpc_fix_t * dstptr ;\n register jpc_fix_t * srcptr2 ;\n register jpc_fix_t * dstptr2 ;\n register int n ;\n register int i ;\n int m ;\n int hstartcol ;\n if ( bufsize > QMFB_SPLITBUFSIZE ) {\n if ( ! ( buf = jas_alloc2 ( bufsize , sizeof ( jpc_fix_t ) ) ) ) {\n abort ( ) ;\n }\n }\n if ( numrows >= 2 ) {\n hstartcol = ( numrows + 1 - parity ) >> 1 ;\n m = numrows - hstartcol ;\n n = m ;\n dstptr = buf ;\n srcptr = & a [ ( 1 - parity ) * stride ] ;\n while ( n -- > 0 ) {\n dstptr2 = dstptr ;\n srcptr2 = srcptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n * dstptr2 = * srcptr2 ;\n ++ dstptr2 ;\n ++ srcptr2 ;\n }\n dstptr += numcols ;\n srcptr += stride << 1 ;\n }\n dstptr = & a [ ( 1 - parity ) * stride ] ;\n srcptr = & a [ ( 2 - parity ) * stride ] ;\n n = numrows - m - ( ! parity ) ;\n while ( n -- > 0 ) {\n dstptr2 = dstptr ;\n srcptr2 = srcptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n * dstptr2 = * srcptr2 ;\n ++ dstptr2 ;\n ++ srcptr2 ;\n }\n dstptr += stride ;\n srcptr += stride << 1 ;\n }\n dstptr = & a [ hstartcol * stride ] ;\n srcptr = buf ;\n n = m ;\n while ( n -- > 0 ) {\n dstptr2 = dstptr ;\n srcptr2 = srcptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n * dstptr2 = * srcptr2 ;\n ++ dstptr2 ;\n ++ srcptr2 ;\n }\n dstptr += stride ;\n srcptr += numcols ;\n }\n }\n if ( buf != splitbuf ) {\n jas_free ( buf ) ;\n }\n }"}
{"idx": 13645, "target": 0, "func": "static gboolean is_dir ( GFile * file ) {\n GFileInfo * info ;\n gboolean res ;\n res = FALSE ;\n info = g_file_query_info ( file , G_FILE_ATTRIBUTE_STANDARD_TYPE , G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS , NULL , NULL ) ;\n if ( info ) {\n res = g_file_info_get_file_type ( info ) == G_FILE_TYPE_DIRECTORY ;\n g_object_unref ( info ) ;\n }\n return res ;\n }"}
{"idx": 13646, "target": 0, "func": "static int invalid_mbs ( const void * _p , size_t n , struct archive_string_conv * sc ) {\n const char * p = ( const char * ) _p ;\n size_t r ;\n # if HAVE_MBRTOWC mbstate_t shift_state ;\n memset ( & shift_state , 0 , sizeof ( shift_state ) ) ;\n # else mbtowc ( NULL , NULL , 0 ) ;\n # endif while ( n ) {\n wchar_t wc ;\n # if HAVE_MBRTOWC r = mbrtowc ( & wc , p , n , & shift_state ) ;\n # else r = mbtowc ( & wc , p , n ) ;\n # endif if ( r == ( size_t ) - 1 || r == ( size_t ) - 2 ) return ( - 1 ) ;\n if ( r == 0 ) break ;\n p += r ;\n n -= r ;\n }\n ( void ) sc ;\n return ( 0 ) ;\n }"}
{"idx": 13647, "target": 0, "func": "void kadmin_getpols ( int argc , char * argv [ ] ) {\n krb5_error_code retval ;\n char * expr , * * names ;\n int i , count ;\n expr = NULL ;\n if ( ! ( argc == 1 || ( argc == 2 && ( expr = argv [ 1 ] ) ) ) ) {\n fprintf ( stderr , _ ( \"usage: get_policies [expression]\\n\" ) ) ;\n return ;\n }\n retval = kadm5_get_policies ( handle , expr , & names , & count ) ;\n if ( retval ) {\n com_err ( \"get_policies\" , retval , _ ( \"while retrieving list.\" ) ) ;\n return ;\n }\n for ( i = 0 ;\n i < count ;\n i ++ ) printf ( \"%s\\n\" , names [ i ] ) ;\n kadm5_free_name_list ( handle , names , count ) ;\n }"}
{"idx": 13648, "target": 0, "func": "static int kwajd_error ( struct mskwaj_decompressor * base ) {\n struct mskwaj_decompressor_p * self = ( struct mskwaj_decompressor_p * ) base ;\n return ( self ) ? self -> error : MSPACK_ERR_ARGS ;\n }"}
{"idx": 13649, "target": 1, "func": "static int matroska_read_seek ( AVFormatContext * s , int stream_index , int64_t timestamp , int flags ) {\n MatroskaDemuxContext * matroska = s -> priv_data ;\n MatroskaTrack * tracks = matroska -> tracks . elem ;\n AVStream * st = s -> streams [ stream_index ] ;\n int i , index , index_sub , index_min ;\n if ( matroska -> cues_parsing_deferred ) {\n matroska_parse_cues ( matroska ) ;\n matroska -> cues_parsing_deferred = 0 ;\n }\n if ( ! st -> nb_index_entries ) return 0 ;\n timestamp = FFMAX ( timestamp , st -> index_entries [ 0 ] . timestamp ) ;\n if ( ( index = av_index_search_timestamp ( st , timestamp , flags ) ) < 0 ) {\n avio_seek ( s -> pb , st -> index_entries [ st -> nb_index_entries - 1 ] . pos , SEEK_SET ) ;\n matroska -> current_id = 0 ;\n while ( ( index = av_index_search_timestamp ( st , timestamp , flags ) ) < 0 ) {\n matroska_clear_queue ( matroska ) ;\n if ( matroska_parse_cluster ( matroska ) < 0 ) break ;\n }\n }\n matroska_clear_queue ( matroska ) ;\n if ( index < 0 ) return 0 ;\n index_min = index ;\n for ( i = 0 ;\n i < matroska -> tracks . nb_elem ;\n i ++ ) {\n tracks [ i ] . audio . pkt_cnt = 0 ;\n tracks [ i ] . audio . sub_packet_cnt = 0 ;\n tracks [ i ] . audio . buf_timecode = AV_NOPTS_VALUE ;\n tracks [ i ] . end_timecode = 0 ;\n if ( tracks [ i ] . type == MATROSKA_TRACK_TYPE_SUBTITLE && tracks [ i ] . stream -> discard != AVDISCARD_ALL ) {\n index_sub = av_index_search_timestamp ( tracks [ i ] . stream , st -> index_entries [ index ] . timestamp , AVSEEK_FLAG_BACKWARD ) ;\n if ( index_sub >= 0 && st -> index_entries [ index_sub ] . pos < st -> index_entries [ index_min ] . pos && st -> index_entries [ index ] . timestamp - st -> index_entries [ index_sub ] . timestamp < 30000000000 / matroska -> time_scale ) index_min = index_sub ;\n }\n }\n avio_seek ( s -> pb , st -> index_entries [ index_min ] . pos , SEEK_SET ) ;\n matroska -> current_id = 0 ;\n matroska -> skip_to_keyframe = ! ( flags & AVSEEK_FLAG_ANY ) ;\n matroska -> skip_to_timecode = st -> index_entries [ index ] . timestamp ;\n matroska -> done = 0 ;\n ff_update_cur_dts ( s , st , st -> index_entries [ index ] . timestamp ) ;\n return 0 ;\n }"}
{"idx": 13650, "target": 0, "func": "RSA * d2i_RSAPrivateKey_fp ( FILE * fp , RSA * * rsa ) {\n return ASN1_item_d2i_fp ( ASN1_ITEM_rptr ( RSAPrivateKey ) , fp , rsa ) ;\n }"}
{"idx": 13651, "target": 0, "func": "static void set_state_ivars ( VALUE hash , VALUE state ) {\n VALUE ivars = rb_obj_instance_variables ( state ) ;\n int i = 0 ;\n for ( i = 0 ;\n i < RARRAY_LEN ( ivars ) ;\n i ++ ) {\n VALUE key = rb_funcall ( rb_ary_entry ( ivars , i ) , i_to_s , 0 ) ;\n long key_len = RSTRING_LEN ( key ) ;\n VALUE value = rb_iv_get ( state , StringValueCStr ( key ) ) ;\n rb_hash_aset ( hash , rb_str_intern ( rb_str_substr ( key , 1 , key_len - 1 ) ) , value ) ;\n }\n }"}
{"idx": 13652, "target": 0, "func": "static void progress ( int c ) {\n if ( progress_cb ) progress_cb ( progress_cb_data , c ) ;\n else fputc ( c , stderr ) ;\n }"}
{"idx": 13653, "target": 0, "func": "static void dissect_zcl_appl_ctrl_signal_state_rsp ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n static const int * flags [ ] = {\n & hf_zbee_zcl_appl_ctrl_rem_en_flags , & hf_zbee_zcl_appl_ctrl_status2 , NULL }\n ;\n proto_tree_add_item ( tree , hf_zbee_zcl_appl_ctrl_appl_status , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n proto_tree_add_bitmask ( tree , tvb , * offset , hf_zbee_zcl_appl_ctrl_rem_en_flags_raw , ett_zbee_zcl_appl_ctrl_flags , flags , ENC_NA ) ;\n * offset += 1 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_appl_ctrl_status2_array , tvb , * offset , 3 , ENC_BIG_ENDIAN ) ;\n }"}
{"idx": 13654, "target": 0, "func": "TEST_F ( MdDownloadsDOMHandlerTest , ClearAll ) {\n std : : vector < content : : DownloadItem * > downloads ;\n testing : : StrictMock < content : : MockDownloadItem > in_progress ;\n EXPECT_CALL ( in_progress , IsDangerous ( ) ) . WillOnce ( testing : : Return ( false ) ) ;\n EXPECT_CALL ( in_progress , GetState ( ) ) . WillOnce ( testing : : Return ( content : : DownloadItem : : IN_PROGRESS ) ) ;\n downloads . push_back ( & in_progress ) ;\n testing : : StrictMock < content : : MockDownloadItem > dangerous ;\n EXPECT_CALL ( dangerous , IsDangerous ( ) ) . WillOnce ( testing : : Return ( true ) ) ;\n EXPECT_CALL ( dangerous , Remove ( ) ) ;\n downloads . push_back ( & dangerous ) ;\n testing : : StrictMock < content : : MockDownloadItem > completed ;\n EXPECT_CALL ( completed , IsDangerous ( ) ) . WillOnce ( testing : : Return ( false ) ) ;\n EXPECT_CALL ( completed , GetState ( ) ) . WillOnce ( testing : : Return ( content : : DownloadItem : : COMPLETE ) ) ;\n EXPECT_CALL ( completed , GetId ( ) ) . WillOnce ( testing : : Return ( 1 ) ) ;\n EXPECT_CALL ( completed , UpdateObservers ( ) ) ;\n downloads . push_back ( & completed ) ;\n ASSERT_TRUE ( DownloadItemModel ( & completed ) . ShouldShowInShelf ( ) ) ;\n TestMdDownloadsDOMHandler handler ( manager ( ) , web_ui ( ) ) ;\n handler . RemoveDownloads ( downloads ) ;\n EXPECT_FALSE ( DownloadItemModel ( & completed ) . ShouldShowInShelf ( ) ) ;\n EXPECT_CALL ( * manager ( ) , GetDownload ( 1 ) ) . WillOnce ( testing : : Return ( & completed ) ) ;\n EXPECT_CALL ( completed , Remove ( ) ) ;\n handler . FinalizeRemovals ( ) ;\n }"}
{"idx": 13655, "target": 0, "func": "static inline int ohci_read_iso_td ( OHCIState * ohci , dma_addr_t addr , struct ohci_iso_td * td ) {\n return get_dwords ( ohci , addr , ( uint32_t * ) td , 4 ) || get_words ( ohci , addr + 16 , td -> offset , 8 ) ;\n }"}
{"idx": 13656, "target": 0, "func": "static __inline__ int TLV_LIST_EMPTY ( struct tlv_list_desc * list ) {\n return ( list -> tlv_space == 0 ) ;\n }"}
{"idx": 13657, "target": 0, "func": "static void func_decode_delayinminute ( gchar * s , guint16 value ) {\n if ( value == 0 ) {\n g_snprintf ( s , ITEM_LABEL_LENGTH , \"%d minutes (Not permitted)\" , value ) ;\n }\n else {\n g_snprintf ( s , ITEM_LABEL_LENGTH , \"%d minutes\" , value ) ;\n }\n }"}
{"idx": 13658, "target": 0, "func": "static const char * cmd_sensor_id ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n dcfg -> sensor_id = p1 ;\n return NULL ;\n }"}
{"idx": 13659, "target": 0, "func": "static inline void SetPixelCrTraits ( Image * image , const PixelTrait traits ) {\n image -> channel_map [ CrPixelChannel ] . traits = traits ;\n }"}
{"idx": 13660, "target": 0, "func": "static void setup_pass ( struct stream_state * stream , struct VpxEncoderConfig * global , int pass ) {\n if ( stream -> config . stats_fn ) {\n if ( ! stats_open_file ( & stream -> stats , stream -> config . stats_fn , pass ) ) fatal ( \"Failed to open statistics store\" ) ;\n }\n else {\n if ( ! stats_open_mem ( & stream -> stats , pass ) ) fatal ( \"Failed to open statistics store\" ) ;\n }\n # if CONFIG_FP_MB_STATS if ( stream -> config . fpmb_stats_fn ) {\n if ( ! stats_open_file ( & stream -> fpmb_stats , stream -> config . fpmb_stats_fn , pass ) ) fatal ( \"Failed to open mb statistics store\" ) ;\n }\n else {\n if ( ! stats_open_mem ( & stream -> fpmb_stats , pass ) ) fatal ( \"Failed to open mb statistics store\" ) ;\n }\n # endif stream -> config . cfg . g_pass = global -> passes == 2 ? pass ? VPX_RC_LAST_PASS : VPX_RC_FIRST_PASS : VPX_RC_ONE_PASS ;\n if ( pass ) {\n stream -> config . cfg . rc_twopass_stats_in = stats_get ( & stream -> stats ) ;\n # if CONFIG_FP_MB_STATS stream -> config . cfg . rc_firstpass_mb_stats_in = stats_get ( & stream -> fpmb_stats ) ;\n # endif }\n stream -> cx_time = 0 ;\n stream -> nbytes = 0 ;\n stream -> frames_out = 0 ;\n }"}
{"idx": 13661, "target": 0, "func": "int mbfl_oddlen ( mbfl_string * string ) {\n int len , n , m , k ;\n unsigned char * p ;\n const unsigned char * mbtab ;\n const mbfl_encoding * encoding ;\n if ( string == NULL ) {\n return - 1 ;\n }\n encoding = mbfl_no2encoding ( string -> no_encoding ) ;\n if ( encoding == NULL ) {\n return - 1 ;\n }\n len = 0 ;\n if ( encoding -> flag & MBFL_ENCTYPE_SBCS ) {\n return 0 ;\n }\n else if ( encoding -> flag & ( MBFL_ENCTYPE_WCS2BE | MBFL_ENCTYPE_WCS2LE ) ) {\n return len % 2 ;\n }\n else if ( encoding -> flag & ( MBFL_ENCTYPE_WCS4BE | MBFL_ENCTYPE_WCS4LE ) ) {\n return len % 4 ;\n }\n else if ( encoding -> mblen_table != NULL ) {\n mbtab = encoding -> mblen_table ;\n n = 0 ;\n p = string -> val ;\n k = string -> len ;\n if ( p != NULL ) {\n while ( n < k ) {\n m = mbtab [ * p ] ;\n n += m ;\n p += m ;\n }\n ;\n }\n return n - k ;\n }\n else {\n return 0 ;\n }\n }"}
{"idx": 13662, "target": 0, "func": "static void U_CALLCONV _ISCIIGetUnicodeSet ( const UConverter * cnv , const USetAdder * sa , UConverterUnicodeSet which , UErrorCode * pErrorCode ) {\n ( void ) cnv ;\n ( void ) which ;\n ( void ) pErrorCode ;\n int32_t idx , script ;\n uint8_t mask ;\n sa -> addRange ( sa -> set , 0 , ASCII_END ) ;\n for ( script = DEVANAGARI ;\n script <= MALAYALAM ;\n script ++ ) {\n mask = ( uint8_t ) ( lookupInitialData [ script ] . maskEnum ) ;\n for ( idx = 0 ;\n idx < DELTA ;\n idx ++ ) {\n if ( ( validityTable [ idx ] & mask ) || ( script == TELUGU && idx == 0x31 ) ) {\n sa -> add ( sa -> set , idx + ( script * DELTA ) + INDIC_BLOCK_BEGIN ) ;\n }\n }\n }\n sa -> add ( sa -> set , DANDA ) ;\n sa -> add ( sa -> set , DOUBLE_DANDA ) ;\n sa -> add ( sa -> set , ZWNJ ) ;\n sa -> add ( sa -> set , ZWJ ) ;\n }"}
{"idx": 13663, "target": 0, "func": "static int dissect_rsl_ie_tfo_transp_cont ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_item * ti ;\n proto_tree * ie_tree ;\n guint8 length ;\n int ie_offset ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_TFO_TRANSP_CONT ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_ie_tfo_transp_cont , & ti , \"TFO transparent container IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n length = tvb_get_guint8 ( tvb , offset ) ;\n proto_item_set_len ( ti , length + 2 ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_length , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n ie_offset = offset ;\n proto_tree_add_expert ( tree , pinfo , & ei_rsl_embedded_message_tfo_configuration , tvb , offset , length ) ;\n return ie_offset + length ;\n }"}
{"idx": 13664, "target": 0, "func": "static void evhttp_add_event ( struct event * ev , int timeout , int default_timeout ) {\n if ( timeout != 0 ) {\n struct timeval tv ;\n evutil_timerclear ( & tv ) ;\n tv . tv_sec = timeout != - 1 ? timeout : default_timeout ;\n event_add ( ev , & tv ) ;\n }\n else {\n event_add ( ev , NULL ) ;\n }\n }"}
{"idx": 13665, "target": 0, "func": "int psf_fclose ( SF_PRIVATE * psf ) {\n int retval ;\n if ( psf -> virtual_io ) return 0 ;\n if ( psf -> file . do_not_close_descriptor ) {\n psf -> file . filedes = - 1 ;\n return 0 ;\n }\n ;\n if ( ( retval = psf_close_fd ( psf -> file . filedes ) ) == - 1 ) psf_log_syserr ( psf , errno ) ;\n psf -> file . filedes = - 1 ;\n return retval ;\n }"}
{"idx": 13666, "target": 0, "func": "static void do_list_files_write_file_command ( struct st_command * command , my_bool append ) {\n int error ;\n static DYNAMIC_STRING ds_content ;\n static DYNAMIC_STRING ds_filename ;\n static DYNAMIC_STRING ds_dirname ;\n static DYNAMIC_STRING ds_wild ;\n const struct command_arg list_files_args [ ] = {\n {\n \"filename\" , ARG_STRING , TRUE , & ds_filename , \"Filename for write\" }\n , {\n \"dirname\" , ARG_STRING , TRUE , & ds_dirname , \"Directory to list\" }\n , {\n \"file\" , ARG_STRING , FALSE , & ds_wild , \"Filename (incl. wildcard)\" }\n }\n ;\n DBUG_ENTER ( \"do_list_files_write_file\" ) ;\n command -> used_replace = 1 ;\n check_command_args ( command , command -> first_argument , list_files_args , sizeof ( list_files_args ) / sizeof ( struct command_arg ) , ' ' ) ;\n init_dynamic_string ( & ds_content , \"\" , 1024 , 1024 ) ;\n error = get_list_files ( & ds_content , & ds_dirname , & ds_wild ) ;\n handle_command_error ( command , error , my_errno ) ;\n str_to_file2 ( ds_filename . str , ds_content . str , ds_content . length , append ) ;\n dynstr_free ( & ds_content ) ;\n dynstr_free ( & ds_filename ) ;\n dynstr_free ( & ds_dirname ) ;\n dynstr_free ( & ds_wild ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 13667, "target": 1, "func": "static void constrain_copy_partitioning ( VP9_COMP * const cpi , const TileInfo * const tile , MODE_INFO * * mi_8x8 , MODE_INFO * * prev_mi_8x8 , int mi_row , int mi_col , BLOCK_SIZE bsize ) {\n VP9_COMMON * const cm = & cpi -> common ;\n const int mis = cm -> mi_stride ;\n const int row8x8_remaining = tile -> mi_row_end - mi_row ;\n const int col8x8_remaining = tile -> mi_col_end - mi_col ;\n MODE_INFO * const mi_upper_left = cm -> mi + mi_row * mis + mi_col ;\n const int bh = num_8x8_blocks_high_lookup [ bsize ] ;\n const int bw = num_8x8_blocks_wide_lookup [ bsize ] ;\n int block_row , block_col ;\n assert ( ( row8x8_remaining > 0 ) && ( col8x8_remaining > 0 ) ) ;\n if ( ( col8x8_remaining >= MI_BLOCK_SIZE ) && ( row8x8_remaining >= MI_BLOCK_SIZE ) ) {\n for ( block_row = 0 ;\n block_row < MI_BLOCK_SIZE ;\n block_row += bh ) {\n for ( block_col = 0 ;\n block_col < MI_BLOCK_SIZE ;\n block_col += bw ) {\n const int index = block_row * mis + block_col ;\n MODE_INFO * prev_mi = prev_mi_8x8 [ index ] ;\n const BLOCK_SIZE sb_type = prev_mi ? prev_mi -> mbmi . sb_type : 0 ;\n if ( prev_mi && sb_type <= bsize ) {\n int block_row2 , block_col2 ;\n for ( block_row2 = 0 ;\n block_row2 < bh ;\n ++ block_row2 ) {\n for ( block_col2 = 0 ;\n block_col2 < bw ;\n ++ block_col2 ) {\n const int index2 = ( block_row + block_row2 ) * mis + block_col + block_col2 ;\n prev_mi = prev_mi_8x8 [ index2 ] ;\n if ( prev_mi ) {\n const ptrdiff_t offset = prev_mi - cm -> prev_mi ;\n mi_8x8 [ index2 ] = cm -> mi + offset ;\n mi_8x8 [ index2 ] -> mbmi . sb_type = prev_mi -> mbmi . sb_type ;\n }\n }\n }\n }\n else {\n mi_8x8 [ index ] = mi_upper_left + index ;\n mi_8x8 [ index ] -> mbmi . sb_type = bsize ;\n }\n }\n }\n }\n else {\n copy_partitioning ( cm , mi_8x8 , prev_mi_8x8 ) ;\n }\n }"}
{"idx": 13668, "target": 0, "func": "static int aes_ctr_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n unsigned int num = EVP_CIPHER_CTX_num ( ctx ) ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( dat -> stream . ctr ) CRYPTO_ctr128_encrypt_ctr32 ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> stream . ctr ) ;\n else CRYPTO_ctr128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }"}
{"idx": 13669, "target": 0, "func": "static void e1000e_set_tidv ( E1000ECore * core , int index , uint32_t val ) {\n e1000e_set_16bit ( core , index , val ) ;\n if ( ( val & E1000_TIDV_FPD ) && ( core -> tidv . running ) ) {\n trace_e1000e_irq_tidv_fpd_running ( ) ;\n e1000e_intrmgr_fire_delayed_interrupts ( core ) ;\n }\n else {\n trace_e1000e_irq_tidv_fpd_not_running ( ) ;\n }\n }"}
{"idx": 13670, "target": 0, "func": "bool kvm_has_smm ( void ) {\n return kvm_check_extension ( kvm_state , KVM_CAP_X86_SMM ) ;\n }"}
{"idx": 13671, "target": 0, "func": "Oid get_typcollation ( Oid typid ) {\n HeapTuple tp ;\n tp = SearchSysCache1 ( TYPEOID , ObjectIdGetDatum ( typid ) ) ;\n if ( HeapTupleIsValid ( tp ) ) {\n Form_pg_type typtup = ( Form_pg_type ) GETSTRUCT ( tp ) ;\n Oid result ;\n result = typtup -> typcollation ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }\n else return InvalidOid ;\n }"}
{"idx": 13672, "target": 1, "func": "void msyslog ( int level , const char * fmt , ... ) {\n char buf [ 1024 ] ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n mvsnprintf ( buf , sizeof ( buf ) , fmt , ap ) ;\n va_end ( ap ) ;\n addto_syslog ( level , buf ) ;\n }"}
{"idx": 13673, "target": 0, "func": "gpg_error_t keydb_add_resource ( const char * url , unsigned int flags ) {\n static int any_registered ;\n const char * resname = url ;\n char * filename = NULL ;\n int create ;\n int read_only = ! ! ( flags & KEYDB_RESOURCE_FLAG_READONLY ) ;\n int is_default = ! ! ( flags & KEYDB_RESOURCE_FLAG_DEFAULT ) ;\n int rc = 0 ;\n KeydbResourceType rt = KEYDB_RESOURCE_TYPE_NONE ;\n void * token ;\n create = ( ! read_only && ! any_registered ) ;\n if ( strlen ( resname ) > 11 && ! strncmp ( resname , \"gnupg-ring:\" , 11 ) ) {\n rt = KEYDB_RESOURCE_TYPE_KEYRING ;\n resname += 11 ;\n }\n else if ( strlen ( resname ) > 10 && ! strncmp ( resname , \"gnupg-kbx:\" , 10 ) ) {\n rt = KEYDB_RESOURCE_TYPE_KEYBOX ;\n resname += 10 ;\n }\n # if ! defined ( HAVE_DRIVE_LETTERS ) && ! defined ( __riscos__ ) else if ( strchr ( resname , ':' ) ) {\n log_error ( \"invalid key resource URL '%s'\\n\" , url ) ;\n rc = gpg_error ( GPG_ERR_GENERAL ) ;\n goto leave ;\n }\n # endif if ( * resname != DIRSEP_C ) {\n if ( strchr ( resname , DIRSEP_C ) ) filename = make_filename ( resname , NULL ) ;\n else filename = make_filename ( opt . homedir , resname , NULL ) ;\n }\n else filename = xstrdup ( resname ) ;\n if ( rt == KEYDB_RESOURCE_TYPE_NONE ) {\n int found , openpgp_flag ;\n int pass = 0 ;\n size_t filenamelen ;\n check_again : filenamelen = strlen ( filename ) ;\n rt = rt_from_file ( filename , & found , & openpgp_flag ) ;\n if ( found ) {\n if ( ! pass && is_default && rt == KEYDB_RESOURCE_TYPE_KEYRING && filenamelen > 4 && ! strcmp ( filename + filenamelen - 4 , \".gpg\" ) ) {\n strcpy ( filename + filenamelen - 4 , \".kbx\" ) ;\n if ( ( rt_from_file ( filename , & found , & openpgp_flag ) == KEYDB_RESOURCE_TYPE_KEYBOX ) && found && openpgp_flag ) rt = KEYDB_RESOURCE_TYPE_KEYBOX ;\n else strcpy ( filename + filenamelen - 4 , \".gpg\" ) ;\n }\n }\n else if ( ! pass && is_default && create && filenamelen > 4 && ! strcmp ( filename + filenamelen - 4 , \".gpg\" ) ) {\n strcpy ( filename + filenamelen - 4 , \".kbx\" ) ;\n pass ++ ;\n goto check_again ;\n }\n else rt = KEYDB_RESOURCE_TYPE_KEYBOX ;\n }\n switch ( rt ) {\n case KEYDB_RESOURCE_TYPE_NONE : log_error ( \"unknown type of key resource '%s'\\n\" , url ) ;\n rc = gpg_error ( GPG_ERR_GENERAL ) ;\n goto leave ;\n case KEYDB_RESOURCE_TYPE_KEYRING : rc = maybe_create_keyring_or_box ( filename , 0 , create ) ;\n if ( rc ) goto leave ;\n if ( keyring_register_filename ( filename , read_only , & token ) ) {\n if ( used_resources >= MAX_KEYDB_RESOURCES ) rc = gpg_error ( GPG_ERR_RESOURCE_LIMIT ) ;\n else {\n if ( ( flags & KEYDB_RESOURCE_FLAG_PRIMARY ) ) primary_keyring = token ;\n all_resources [ used_resources ] . type = rt ;\n all_resources [ used_resources ] . u . kr = NULL ;\n all_resources [ used_resources ] . token = token ;\n used_resources ++ ;\n }\n }\n else {\n if ( ( flags & KEYDB_RESOURCE_FLAG_PRIMARY ) ) primary_keyring = token ;\n }\n break ;\n case KEYDB_RESOURCE_TYPE_KEYBOX : {\n rc = maybe_create_keyring_or_box ( filename , 1 , create ) ;\n if ( rc ) goto leave ;\n token = keybox_register_file ( filename , 0 ) ;\n if ( token ) {\n if ( used_resources >= MAX_KEYDB_RESOURCES ) rc = gpg_error ( GPG_ERR_RESOURCE_LIMIT ) ;\n else {\n all_resources [ used_resources ] . type = rt ;\n all_resources [ used_resources ] . u . kb = NULL ;\n all_resources [ used_resources ] . token = token ;\n used_resources ++ ;\n }\n }\n else {\n }\n }\n break ;\n default : log_error ( \"resource type of '%s' not supported\\n\" , url ) ;\n rc = gpg_error ( GPG_ERR_GENERAL ) ;\n goto leave ;\n }\n leave : if ( rc ) log_error ( _ ( \"keyblock resource '%s': %s\\n\" ) , filename , gpg_strerror ( rc ) ) ;\n else any_registered = 1 ;\n xfree ( filename ) ;\n return rc ;\n }"}
{"idx": 13674, "target": 0, "func": "static void adjust_arnr_filter ( VP9_COMP * cpi , int distance , int group_boost , int * arnr_frames , int * arnr_strength ) {\n const VP9EncoderConfig * const oxcf = & cpi -> oxcf ;\n const int frames_after_arf = vp9_lookahead_depth ( cpi -> lookahead ) - distance - 1 ;\n int frames_fwd = ( cpi -> oxcf . arnr_max_frames - 1 ) >> 1 ;\n int frames_bwd ;\n int q , frames , strength ;\n if ( frames_fwd > frames_after_arf ) frames_fwd = frames_after_arf ;\n if ( frames_fwd > distance ) frames_fwd = distance ;\n frames_bwd = frames_fwd ;\n if ( frames_bwd < distance ) frames_bwd += ( oxcf -> arnr_max_frames + 1 ) & 0x1 ;\n frames = frames_bwd + 1 + frames_fwd ;\n if ( cpi -> common . current_video_frame > 1 ) q = ( ( int ) vp9_convert_qindex_to_q ( cpi -> rc . avg_frame_qindex [ INTER_FRAME ] , cpi -> common . bit_depth ) ) ;\n else q = ( ( int ) vp9_convert_qindex_to_q ( cpi -> rc . avg_frame_qindex [ KEY_FRAME ] , cpi -> common . bit_depth ) ) ;\n if ( q > 16 ) {\n strength = oxcf -> arnr_strength ;\n }\n else {\n strength = oxcf -> arnr_strength - ( ( 16 - q ) / 2 ) ;\n if ( strength < 0 ) strength = 0 ;\n }\n if ( frames > group_boost / 150 ) {\n frames = group_boost / 150 ;\n frames += ! ( frames & 1 ) ;\n }\n if ( strength > group_boost / 300 ) {\n strength = group_boost / 300 ;\n }\n if ( cpi -> oxcf . pass == 2 && cpi -> multi_arf_allowed ) {\n const GF_GROUP * const gf_group = & cpi -> twopass . gf_group ;\n if ( gf_group -> rf_level [ gf_group -> index ] != GF_ARF_STD ) {\n strength >>= 1 ;\n }\n }\n * arnr_frames = frames ;\n * arnr_strength = strength ;\n }"}
{"idx": 13675, "target": 0, "func": "static void ImportRedQuantum ( const Image * image , QuantumInfo * quantum_info , const MagickSizeType number_pixels , const unsigned char * magick_restrict p , Quantum * magick_restrict q , ExceptionInfo * exception ) {\n QuantumAny range ;\n register ssize_t x ;\n unsigned int pixel ;\n assert ( image != ( Image * ) NULL ) ;\n assert ( image -> signature == MagickCoreSignature ) ;\n switch ( quantum_info -> depth ) {\n case 8 : {\n unsigned char pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelRed ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 16 : {\n unsigned short pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelRed ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelRed ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 32 : {\n unsigned int pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n float pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ClampToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelRed ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 64 : {\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n double pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ClampToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n default : {\n range = GetQuantumRange ( quantum_info -> depth ) ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n }"}
{"idx": 13676, "target": 0, "func": "static void test_open_direct ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_RES * result ;\n int rc ;\n myheader ( \"test_open_direct\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_open_direct\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_open_direct(id int, name char(6))\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"INSERT INTO test_open_direct values(10, 'mysql')\" ) ;\n check_stmt ( stmt ) ;\n rc = mysql_query ( mysql , \"SELECT * FROM test_open_direct\" ) ;\n myquery ( rc ) ;\n result = mysql_store_result ( mysql ) ;\n mytest ( result ) ;\n rc = my_process_result_set ( result ) ;\n DIE_UNLESS ( rc == 0 ) ;\n mysql_free_result ( result ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n verify_st_affected_rows ( stmt , 1 ) ;\n rc = mysql_query ( mysql , \"SELECT * FROM test_open_direct\" ) ;\n myquery ( rc ) ;\n result = mysql_store_result ( mysql ) ;\n mytest ( result ) ;\n rc = my_process_result_set ( result ) ;\n DIE_UNLESS ( rc == 1 ) ;\n mysql_free_result ( result ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n verify_st_affected_rows ( stmt , 1 ) ;\n rc = mysql_query ( mysql , \"SELECT * FROM test_open_direct\" ) ;\n myquery ( rc ) ;\n result = mysql_store_result ( mysql ) ;\n mytest ( result ) ;\n rc = my_process_result_set ( result ) ;\n DIE_UNLESS ( rc == 2 ) ;\n mysql_free_result ( result ) ;\n mysql_stmt_close ( stmt ) ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT * FROM test_open_direct\" ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_open_direct(id) VALUES(20)\" ) ;\n myquery_r ( rc ) ;\n rc = mysql_stmt_close ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_open_direct(id) VALUES(20)\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT * FROM test_open_direct\" ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_store_result ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_query ( mysql , \"drop table test_open_direct\" ) ;\n myquery ( rc ) ;\n rc = mysql_stmt_close ( stmt ) ;\n check_execute ( stmt , rc ) ;\n }"}
{"idx": 13677, "target": 0, "func": "int jas_image_sampcmpt ( jas_image_t * image , int cmptno , int newcmptno , jas_image_coord_t ho , jas_image_coord_t vo , jas_image_coord_t hs , jas_image_coord_t vs , int sgnd , int prec ) {\n jas_image_cmpt_t * oldcmpt ;\n jas_image_cmpt_t * newcmpt ;\n int width ;\n int height ;\n jas_image_coord_t tlx ;\n jas_image_coord_t tly ;\n jas_image_coord_t brx ;\n jas_image_coord_t bry ;\n int i ;\n int j ;\n jas_image_cmptparm_t cmptparm ;\n jas_image_coord_t ax ;\n jas_image_coord_t ay ;\n jas_image_coord_t bx ;\n jas_image_coord_t by ;\n jas_image_coord_t d0 ;\n jas_image_coord_t d1 ;\n jas_image_coord_t d2 ;\n jas_image_coord_t d3 ;\n jas_image_coord_t oldx ;\n jas_image_coord_t oldy ;\n jas_image_coord_t x ;\n jas_image_coord_t y ;\n long v ;\n jas_image_coord_t cmptbrx ;\n jas_image_coord_t cmptbry ;\n assert ( cmptno >= 0 && cmptno < image -> numcmpts_ ) ;\n oldcmpt = image -> cmpts_ [ cmptno ] ;\n assert ( oldcmpt -> tlx_ == 0 && oldcmpt -> tly_ == 0 ) ;\n jas_image_calcbbox2 ( image , & tlx , & tly , & brx , & bry ) ;\n width = FLOORDIV ( brx - ho + hs , hs ) ;\n height = FLOORDIV ( bry - vo + vs , vs ) ;\n cmptparm . tlx = ho ;\n cmptparm . tly = vo ;\n cmptparm . hstep = hs ;\n cmptparm . vstep = vs ;\n cmptparm . width = width ;\n cmptparm . height = height ;\n cmptparm . prec = prec ;\n cmptparm . sgnd = sgnd ;\n if ( jas_image_addcmpt ( image , newcmptno , & cmptparm ) ) goto error ;\n cmptbrx = oldcmpt -> tlx_ + ( oldcmpt -> width_ - 1 ) * oldcmpt -> hstep_ ;\n cmptbry = oldcmpt -> tly_ + ( oldcmpt -> height_ - 1 ) * oldcmpt -> vstep_ ;\n newcmpt = image -> cmpts_ [ newcmptno ] ;\n jas_stream_rewind ( newcmpt -> stream_ ) ;\n for ( i = 0 ;\n i < height ;\n ++ i ) {\n y = newcmpt -> tly_ + newcmpt -> vstep_ * i ;\n for ( j = 0 ;\n j < width ;\n ++ j ) {\n x = newcmpt -> tlx_ + newcmpt -> hstep_ * j ;\n ax = downtomult ( x - oldcmpt -> tlx_ , oldcmpt -> hstep_ ) + oldcmpt -> tlx_ ;\n ay = downtomult ( y - oldcmpt -> tly_ , oldcmpt -> vstep_ ) + oldcmpt -> tly_ ;\n bx = uptomult ( x - oldcmpt -> tlx_ , oldcmpt -> hstep_ ) + oldcmpt -> tlx_ ;\n if ( bx > cmptbrx ) bx = cmptbrx ;\n by = uptomult ( y - oldcmpt -> tly_ , oldcmpt -> vstep_ ) + oldcmpt -> tly_ ;\n if ( by > cmptbry ) by = cmptbry ;\n d0 = ( ax - x ) * ( ax - x ) + ( ay - y ) * ( ay - y ) ;\n d1 = ( bx - x ) * ( bx - x ) + ( ay - y ) * ( ay - y ) ;\n d2 = ( bx - x ) * ( bx - x ) + ( by - y ) * ( by - y ) ;\n d3 = ( ax - x ) * ( ax - x ) + ( by - y ) * ( by - y ) ;\n if ( d0 <= d1 && d0 <= d2 && d0 <= d3 ) {\n oldx = ( ax - oldcmpt -> tlx_ ) / oldcmpt -> hstep_ ;\n oldy = ( ay - oldcmpt -> tly_ ) / oldcmpt -> vstep_ ;\n }\n else if ( d1 <= d0 && d1 <= d2 && d1 <= d3 ) {\n oldx = ( bx - oldcmpt -> tlx_ ) / oldcmpt -> hstep_ ;\n oldy = ( ay - oldcmpt -> tly_ ) / oldcmpt -> vstep_ ;\n }\n else if ( d2 <= d0 && d2 <= d1 && d1 <= d3 ) {\n oldx = ( bx - oldcmpt -> tlx_ ) / oldcmpt -> hstep_ ;\n oldy = ( by - oldcmpt -> tly_ ) / oldcmpt -> vstep_ ;\n }\n else {\n oldx = ( ax - oldcmpt -> tlx_ ) / oldcmpt -> hstep_ ;\n oldy = ( by - oldcmpt -> tly_ ) / oldcmpt -> vstep_ ;\n }\n assert ( oldx >= 0 && oldx < oldcmpt -> width_ && oldy >= 0 && oldy < oldcmpt -> height_ ) ;\n if ( jas_stream_seek ( oldcmpt -> stream_ , oldcmpt -> cps_ * ( oldy * oldcmpt -> width_ + oldx ) , SEEK_SET ) < 0 ) goto error ;\n if ( getint ( oldcmpt -> stream_ , oldcmpt -> sgnd_ , oldcmpt -> prec_ , & v ) ) goto error ;\n if ( newcmpt -> prec_ != oldcmpt -> prec_ || newcmpt -> sgnd_ != oldcmpt -> sgnd_ ) {\n v = convert ( v , oldcmpt -> sgnd_ , oldcmpt -> prec_ , newcmpt -> sgnd_ , newcmpt -> prec_ ) ;\n }\n if ( putint ( newcmpt -> stream_ , newcmpt -> sgnd_ , newcmpt -> prec_ , v ) ) goto error ;\n }\n }\n return 0 ;\n error : return - 1 ;\n }"}
{"idx": 13678, "target": 0, "func": "static void test_left_join_view ( ) {\n MYSQL_STMT * stmt ;\n int rc , i ;\n const char * query = \"select t1.a, v1.x from t1 left join v1 on (t1.a= v1.x);\n\" ;\n myheader ( \"test_left_join_view\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS t1,v1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP VIEW IF EXISTS v1,t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE t1 (a int)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t1 values (1), (2), (3)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create view v1 (x) as select a from t1 where a > 1\" ) ;\n myquery ( rc ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n rc = mysql_stmt_prepare ( stmt , query , strlen ( query ) ) ;\n check_execute ( stmt , rc ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( 3 == rc ) ;\n }\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"DROP VIEW v1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP TABLE t1\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 13679, "target": 1, "func": "static int xwd_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n AVFrame * p = avctx -> coded_frame ;\n const uint8_t * buf = avpkt -> data ;\n int i , ret , buf_size = avpkt -> size ;\n uint32_t version , header_size , vclass , ncolors ;\n uint32_t xoffset , be , bpp , lsize , rsize ;\n uint32_t pixformat , pixdepth , bunit , bitorder , bpad ;\n uint32_t rgb [ 3 ] ;\n uint8_t * ptr ;\n GetByteContext gb ;\n if ( buf_size < XWD_HEADER_SIZE ) return AVERROR_INVALIDDATA ;\n bytestream2_init ( & gb , buf , buf_size ) ;\n header_size = bytestream2_get_be32u ( & gb ) ;\n version = bytestream2_get_be32u ( & gb ) ;\n if ( version != XWD_VERSION ) {\n av_log ( avctx , AV_LOG_ERROR , \"unsupported version\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( buf_size < header_size || header_size < XWD_HEADER_SIZE ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid header size\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n pixformat = bytestream2_get_be32u ( & gb ) ;\n pixdepth = bytestream2_get_be32u ( & gb ) ;\n avctx -> width = bytestream2_get_be32u ( & gb ) ;\n avctx -> height = bytestream2_get_be32u ( & gb ) ;\n xoffset = bytestream2_get_be32u ( & gb ) ;\n be = bytestream2_get_be32u ( & gb ) ;\n bunit = bytestream2_get_be32u ( & gb ) ;\n bitorder = bytestream2_get_be32u ( & gb ) ;\n bpad = bytestream2_get_be32u ( & gb ) ;\n bpp = bytestream2_get_be32u ( & gb ) ;\n lsize = bytestream2_get_be32u ( & gb ) ;\n vclass = bytestream2_get_be32u ( & gb ) ;\n rgb [ 0 ] = bytestream2_get_be32u ( & gb ) ;\n rgb [ 1 ] = bytestream2_get_be32u ( & gb ) ;\n rgb [ 2 ] = bytestream2_get_be32u ( & gb ) ;\n bytestream2_skipu ( & gb , 8 ) ;\n ncolors = bytestream2_get_be32u ( & gb ) ;\n bytestream2_skipu ( & gb , header_size - ( XWD_HEADER_SIZE - 20 ) ) ;\n av_log ( avctx , AV_LOG_DEBUG , \"pixformat %d, pixdepth %d, bunit %d, bitorder %d, bpad %d\\n\" , pixformat , pixdepth , bunit , bitorder , bpad ) ;\n av_log ( avctx , AV_LOG_DEBUG , \"vclass %d, ncolors %d, bpp %d, be %d, lsize %d, xoffset %d\\n\" , vclass , ncolors , bpp , be , lsize , xoffset ) ;\n av_log ( avctx , AV_LOG_DEBUG , \"red %0x, green %0x, blue %0x\\n\" , rgb [ 0 ] , rgb [ 1 ] , rgb [ 2 ] ) ;\n if ( pixformat > XWD_Z_PIXMAP ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid pixmap format\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( pixdepth == 0 || pixdepth > 32 ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid pixmap depth\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( xoffset ) {\n av_log_ask_for_sample ( avctx , \"unsupported xoffset %d\\n\" , xoffset ) ;\n return AVERROR_PATCHWELCOME ;\n }\n if ( be > 1 ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid byte order\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( bitorder > 1 ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid bitmap bit order\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( bunit != 8 && bunit != 16 && bunit != 32 ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid bitmap unit\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( bpad != 8 && bpad != 16 && bpad != 32 ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid bitmap scan-line pad\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( bpp == 0 || bpp > 32 ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid bits per pixel\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ncolors > 256 ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid number of entries in colormap\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ( ret = av_image_check_size ( avctx -> width , avctx -> height , 0 , NULL ) ) < 0 ) return ret ;\n rsize = FFALIGN ( avctx -> width * bpp , bpad ) / 8 ;\n if ( lsize < rsize ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid bytes per scan-line\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( bytestream2_get_bytes_left ( & gb ) < ncolors * XWD_CMAP_SIZE + avctx -> height * lsize ) {\n av_log ( avctx , AV_LOG_ERROR , \"input buffer too small\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( pixformat != XWD_Z_PIXMAP ) {\n av_log ( avctx , AV_LOG_ERROR , \"pixmap format %d unsupported\\n\" , pixformat ) ;\n return AVERROR_PATCHWELCOME ;\n }\n avctx -> pix_fmt = AV_PIX_FMT_NONE ;\n switch ( vclass ) {\n case XWD_STATIC_GRAY : case XWD_GRAY_SCALE : if ( bpp != 1 ) return AVERROR_INVALIDDATA ;\n if ( pixdepth == 1 ) avctx -> pix_fmt = AV_PIX_FMT_MONOWHITE ;\n break ;\n case XWD_STATIC_COLOR : case XWD_PSEUDO_COLOR : if ( bpp == 8 ) avctx -> pix_fmt = AV_PIX_FMT_PAL8 ;\n break ;\n case XWD_TRUE_COLOR : case XWD_DIRECT_COLOR : if ( bpp != 16 && bpp != 24 && bpp != 32 ) return AVERROR_INVALIDDATA ;\n if ( bpp == 16 && pixdepth == 15 ) {\n if ( rgb [ 0 ] == 0x7C00 && rgb [ 1 ] == 0x3E0 && rgb [ 2 ] == 0x1F ) avctx -> pix_fmt = be ? AV_PIX_FMT_RGB555BE : AV_PIX_FMT_RGB555LE ;\n else if ( rgb [ 0 ] == 0x1F && rgb [ 1 ] == 0x3E0 && rgb [ 2 ] == 0x7C00 ) avctx -> pix_fmt = be ? AV_PIX_FMT_BGR555BE : AV_PIX_FMT_BGR555LE ;\n }\n else if ( bpp == 16 && pixdepth == 16 ) {\n if ( rgb [ 0 ] == 0xF800 && rgb [ 1 ] == 0x7E0 && rgb [ 2 ] == 0x1F ) avctx -> pix_fmt = be ? AV_PIX_FMT_RGB565BE : AV_PIX_FMT_RGB565LE ;\n else if ( rgb [ 0 ] == 0x1F && rgb [ 1 ] == 0x7E0 && rgb [ 2 ] == 0xF800 ) avctx -> pix_fmt = be ? AV_PIX_FMT_BGR565BE : AV_PIX_FMT_BGR565LE ;\n }\n else if ( bpp == 24 ) {\n if ( rgb [ 0 ] == 0xFF0000 && rgb [ 1 ] == 0xFF00 && rgb [ 2 ] == 0xFF ) avctx -> pix_fmt = be ? AV_PIX_FMT_RGB24 : AV_PIX_FMT_BGR24 ;\n else if ( rgb [ 0 ] == 0xFF && rgb [ 1 ] == 0xFF00 && rgb [ 2 ] == 0xFF0000 ) avctx -> pix_fmt = be ? AV_PIX_FMT_BGR24 : AV_PIX_FMT_RGB24 ;\n }\n else if ( bpp == 32 ) {\n if ( rgb [ 0 ] == 0xFF0000 && rgb [ 1 ] == 0xFF00 && rgb [ 2 ] == 0xFF ) avctx -> pix_fmt = be ? AV_PIX_FMT_ARGB : AV_PIX_FMT_BGRA ;\n else if ( rgb [ 0 ] == 0xFF && rgb [ 1 ] == 0xFF00 && rgb [ 2 ] == 0xFF0000 ) avctx -> pix_fmt = be ? AV_PIX_FMT_ABGR : AV_PIX_FMT_RGBA ;\n }\n bytestream2_skipu ( & gb , ncolors * XWD_CMAP_SIZE ) ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"invalid visual class\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( avctx -> pix_fmt == AV_PIX_FMT_NONE ) {\n av_log_ask_for_sample ( avctx , \"unknown file: bpp %d, pixdepth %d, vclass %d\\n\" , bpp , pixdepth , vclass ) ;\n return AVERROR_PATCHWELCOME ;\n }\n if ( p -> data [ 0 ] ) avctx -> release_buffer ( avctx , p ) ;\n p -> reference = 0 ;\n if ( ( ret = ff_get_buffer ( avctx , p ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n p -> key_frame = 1 ;\n p -> pict_type = AV_PICTURE_TYPE_I ;\n if ( avctx -> pix_fmt == AV_PIX_FMT_PAL8 ) {\n uint32_t * dst = ( uint32_t * ) p -> data [ 1 ] ;\n uint8_t red , green , blue ;\n for ( i = 0 ;\n i < ncolors ;\n i ++ ) {\n bytestream2_skipu ( & gb , 4 ) ;\n red = bytestream2_get_byteu ( & gb ) ;\n bytestream2_skipu ( & gb , 1 ) ;\n green = bytestream2_get_byteu ( & gb ) ;\n bytestream2_skipu ( & gb , 1 ) ;\n blue = bytestream2_get_byteu ( & gb ) ;\n bytestream2_skipu ( & gb , 3 ) ;\n dst [ i ] = red << 16 | green << 8 | blue ;\n }\n }\n ptr = p -> data [ 0 ] ;\n for ( i = 0 ;\n i < avctx -> height ;\n i ++ ) {\n bytestream2_get_bufferu ( & gb , ptr , rsize ) ;\n bytestream2_skipu ( & gb , lsize - rsize ) ;\n ptr += p -> linesize [ 0 ] ;\n }\n * got_frame = 1 ;\n * ( AVFrame * ) data = * p ;\n return buf_size ;\n }"}
{"idx": 13680, "target": 0, "func": "static FormInfo * AddFormInfo ( char * value , char * contenttype , FormInfo * parent_form_info ) {\n FormInfo * form_info ;\n form_info = calloc ( 1 , sizeof ( struct FormInfo ) ) ;\n if ( form_info ) {\n if ( value ) form_info -> value = value ;\n if ( contenttype ) form_info -> contenttype = contenttype ;\n form_info -> flags = HTTPPOST_FILENAME ;\n }\n else return NULL ;\n if ( parent_form_info ) {\n form_info -> more = parent_form_info -> more ;\n parent_form_info -> more = form_info ;\n }\n return form_info ;\n }"}
{"idx": 13681, "target": 0, "func": "static void e1000e_intrmgr_pause ( E1000ECore * core ) {\n int i ;\n e1000e_intmgr_timer_pause ( & core -> radv ) ;\n e1000e_intmgr_timer_pause ( & core -> rdtr ) ;\n e1000e_intmgr_timer_pause ( & core -> raid ) ;\n e1000e_intmgr_timer_pause ( & core -> tidv ) ;\n e1000e_intmgr_timer_pause ( & core -> tadv ) ;\n e1000e_intmgr_timer_pause ( & core -> itr ) ;\n for ( i = 0 ;\n i < E1000E_MSIX_VEC_NUM ;\n i ++ ) {\n e1000e_intmgr_timer_pause ( & core -> eitr [ i ] ) ;\n }\n }"}
{"idx": 13682, "target": 0, "func": "static int dissect_pvfs2_mgmt_iterate_handles_request ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n offset = dissect_pvfs_fs_id ( tvb , tree , offset ) ;\n offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"handle\" , NULL ) ;\n return offset ;\n }"}
{"idx": 13683, "target": 0, "func": "static inline int get_bitsz ( GetBitContext * s , int n ) {\n return n ? get_bits ( s , n ) : 0 ;\n }"}
{"idx": 13684, "target": 0, "func": "void cisco_autorp_print ( netdissect_options * ndo , register const u_char * bp , register u_int len ) {\n int type ;\n int numrps ;\n int hold ;\n ND_TCHECK ( bp [ 0 ] ) ;\n ND_PRINT ( ( ndo , \" auto-rp \" ) ) ;\n type = bp [ 0 ] ;\n switch ( type ) {\n case 0x11 : ND_PRINT ( ( ndo , \"candidate-advert\" ) ) ;\n break ;\n case 0x12 : ND_PRINT ( ( ndo , \"mapping\" ) ) ;\n break ;\n default : ND_PRINT ( ( ndo , \"type-0x%02x\" , type ) ) ;\n break ;\n }\n ND_TCHECK ( bp [ 1 ] ) ;\n numrps = bp [ 1 ] ;\n ND_TCHECK2 ( bp [ 2 ] , 2 ) ;\n ND_PRINT ( ( ndo , \" Hold \" ) ) ;\n hold = EXTRACT_16BITS ( & bp [ 2 ] ) ;\n if ( hold ) unsigned_relts_print ( ndo , EXTRACT_16BITS ( & bp [ 2 ] ) ) ;\n else ND_PRINT ( ( ndo , \"FOREVER\" ) ) ;\n bp += 8 ;\n len -= 8 ;\n while ( numrps -- ) {\n int nentries ;\n char s ;\n ND_TCHECK2 ( bp [ 0 ] , 4 ) ;\n ND_PRINT ( ( ndo , \" RP %s\" , ipaddr_string ( ndo , bp ) ) ) ;\n ND_TCHECK ( bp [ 4 ] ) ;\n switch ( bp [ 4 ] & 0x3 ) {\n case 0 : ND_PRINT ( ( ndo , \" PIMv?\" ) ) ;\n break ;\n case 1 : ND_PRINT ( ( ndo , \" PIMv1\" ) ) ;\n break ;\n case 2 : ND_PRINT ( ( ndo , \" PIMv2\" ) ) ;\n break ;\n case 3 : ND_PRINT ( ( ndo , \" PIMv1+2\" ) ) ;\n break ;\n }\n if ( bp [ 4 ] & 0xfc ) ND_PRINT ( ( ndo , \" [rsvd=0x%02x]\" , bp [ 4 ] & 0xfc ) ) ;\n ND_TCHECK ( bp [ 5 ] ) ;\n nentries = bp [ 5 ] ;\n bp += 6 ;\n len -= 6 ;\n s = ' ' ;\n for ( ;\n nentries ;\n nentries -- ) {\n ND_TCHECK2 ( bp [ 0 ] , 6 ) ;\n ND_PRINT ( ( ndo , \"%c%s%s/%d\" , s , bp [ 0 ] & 1 ? \"!\" : \"\" , ipaddr_string ( ndo , & bp [ 2 ] ) , bp [ 1 ] ) ) ;\n if ( bp [ 0 ] & 0x02 ) {\n ND_PRINT ( ( ndo , \" bidir\" ) ) ;\n }\n if ( bp [ 0 ] & 0xfc ) {\n ND_PRINT ( ( ndo , \"[rsvd=0x%02x]\" , bp [ 0 ] & 0xfc ) ) ;\n }\n s = ',' ;\n bp += 6 ;\n len -= 6 ;\n }\n }\n return ;\n trunc : ND_PRINT ( ( ndo , \"[|autorp]\" ) ) ;\n return ;\n }"}
{"idx": 13685, "target": 0, "func": "static int read_colors ( GetBitContext * gb , Bundle * b , BinkContext * c ) {\n int t , sign , v ;\n const uint8_t * dec_end ;\n CHECK_READ_VAL ( gb , b , t ) ;\n dec_end = b -> cur_dec + t ;\n if ( dec_end > b -> data_end ) {\n av_log ( c -> avctx , AV_LOG_ERROR , \"Too many color values\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( get_bits1 ( gb ) ) {\n c -> col_lastval = GET_HUFF ( gb , c -> col_high [ c -> col_lastval ] ) ;\n v = GET_HUFF ( gb , b -> tree ) ;\n v = ( c -> col_lastval << 4 ) | v ;\n if ( c -> version < 'i' ) {\n sign = ( ( int8_t ) v ) >> 7 ;\n v = ( ( v & 0x7F ) ^ sign ) - sign ;\n v += 0x80 ;\n }\n memset ( b -> cur_dec , v , t ) ;\n b -> cur_dec += t ;\n }\n else {\n while ( b -> cur_dec < dec_end ) {\n c -> col_lastval = GET_HUFF ( gb , c -> col_high [ c -> col_lastval ] ) ;\n v = GET_HUFF ( gb , b -> tree ) ;\n v = ( c -> col_lastval << 4 ) | v ;\n if ( c -> version < 'i' ) {\n sign = ( ( int8_t ) v ) >> 7 ;\n v = ( ( v & 0x7F ) ^ sign ) - sign ;\n v += 0x80 ;\n }\n * b -> cur_dec ++ = v ;\n }\n }\n return 0 ;\n }"}
{"idx": 13686, "target": 0, "func": "static void cooked ( struct parse * pcmd , FILE * fp ) {\n rawmode = 0 ;\n ( void ) fprintf ( fp , \"Output set to cooked\\n\" ) ;\n return ;\n }"}
{"idx": 13687, "target": 0, "func": "static void * oid_copy_cb ( void * dest , const void * orig , size_t len _U_ ) {\n oid_user_t * u = ( oid_user_t * ) dest ;\n const oid_user_t * o = ( const oid_user_t * ) orig ;\n u -> oid = g_strdup ( o -> oid ) ;\n u -> name = g_strdup ( o -> name ) ;\n u -> syntax = o -> syntax ;\n return dest ;\n }"}
{"idx": 13688, "target": 0, "func": "static int calc_slice_sizes ( VC2EncContext * s ) {\n int i , j , slice_x , slice_y , bytes_left = 0 ;\n int bytes_top [ SLICE_REDIST_TOTAL ] = {\n 0 }\n ;\n int64_t total_bytes_needed = 0 ;\n int slice_redist_range = FFMIN ( SLICE_REDIST_TOTAL , s -> num_x * s -> num_y ) ;\n SliceArgs * enc_args = s -> slice_args ;\n SliceArgs * top_loc [ SLICE_REDIST_TOTAL ] = {\n NULL }\n ;\n init_quant_matrix ( s ) ;\n for ( slice_y = 0 ;\n slice_y < s -> num_y ;\n slice_y ++ ) {\n for ( slice_x = 0 ;\n slice_x < s -> num_x ;\n slice_x ++ ) {\n SliceArgs * args = & enc_args [ s -> num_x * slice_y + slice_x ] ;\n args -> ctx = s ;\n args -> x = slice_x ;\n args -> y = slice_y ;\n args -> bits_ceil = s -> slice_max_bytes << 3 ;\n args -> bits_floor = s -> slice_min_bytes << 3 ;\n memset ( args -> cache , 0 , s -> q_ceil * sizeof ( * args -> cache ) ) ;\n }\n }\n s -> avctx -> execute ( s -> avctx , rate_control , enc_args , NULL , s -> num_x * s -> num_y , sizeof ( SliceArgs ) ) ;\n for ( i = 0 ;\n i < s -> num_x * s -> num_y ;\n i ++ ) {\n SliceArgs * args = & enc_args [ i ] ;\n bytes_left += s -> slice_max_bytes - args -> bytes ;\n for ( j = 0 ;\n j < slice_redist_range ;\n j ++ ) {\n if ( args -> bytes > bytes_top [ j ] ) {\n bytes_top [ j ] = args -> bytes ;\n top_loc [ j ] = args ;\n break ;\n }\n }\n }\n while ( 1 ) {\n int distributed = 0 ;\n for ( i = 0 ;\n i < slice_redist_range ;\n i ++ ) {\n SliceArgs * args ;\n int bits , bytes , diff , prev_bytes , new_idx ;\n if ( bytes_left <= 0 ) break ;\n if ( ! top_loc [ i ] || ! top_loc [ i ] -> quant_idx ) break ;\n args = top_loc [ i ] ;\n prev_bytes = args -> bytes ;\n new_idx = FFMAX ( args -> quant_idx - 1 , 0 ) ;\n bits = count_hq_slice ( args , new_idx ) ;\n bytes = SSIZE_ROUND ( bits >> 3 ) ;\n diff = bytes - prev_bytes ;\n if ( ( bytes_left - diff ) > 0 ) {\n args -> quant_idx = new_idx ;\n args -> bytes = bytes ;\n bytes_left -= diff ;\n distributed ++ ;\n }\n }\n if ( ! distributed ) break ;\n }\n for ( i = 0 ;\n i < s -> num_x * s -> num_y ;\n i ++ ) {\n SliceArgs * args = & enc_args [ i ] ;\n total_bytes_needed += args -> bytes ;\n s -> q_avg = ( s -> q_avg + args -> quant_idx ) / 2 ;\n }\n return total_bytes_needed ;\n }"}
{"idx": 13689, "target": 0, "func": "static void prepare_dummy_password ( char * buf , size_t sz ) {\n size_t i ;\n strlcpy ( buf , \"6F a[\" , sz ) ;\n for ( i = strlen ( buf ) ;\n i < sz - 1 ;\n i ++ ) buf [ i ] = 'a' + ( i % 26 ) ;\n buf [ sz - 1 ] = '\\0' ;\n }"}
{"idx": 13690, "target": 0, "func": "static const xmlChar * xsltDefaultRegion ( const xmlChar * localeName ) {\n xmlChar c ;\n const char * region = NULL ;\n c = localeName [ 1 ] ;\n switch ( localeName [ 0 ] ) {\n case 'a' : if ( c == 'a' || c == 'm' ) region = \"ET\" ;\n else if ( c == 'f' ) region = \"ZA\" ;\n else if ( c == 'n' ) region = \"ES\" ;\n else if ( c == 'r' ) region = \"AE\" ;\n else if ( c == 'z' ) region = \"AZ\" ;\n break ;\n case 'b' : if ( c == 'e' ) region = \"BY\" ;\n else if ( c == 'g' ) region = \"BG\" ;\n else if ( c == 'n' ) region = \"BD\" ;\n else if ( c == 'r' ) region = \"FR\" ;\n else if ( c == 's' ) region = \"BA\" ;\n break ;\n case 'c' : if ( c == 'a' ) region = \"ES\" ;\n else if ( c == 's' ) region = \"CZ\" ;\n else if ( c == 'y' ) region = \"GB\" ;\n break ;\n case 'd' : if ( c == 'a' ) region = \"DK\" ;\n else if ( c == 'e' ) region = \"DE\" ;\n break ;\n case 'e' : if ( c == 'l' ) region = \"GR\" ;\n else if ( c == 'n' || c == 'o' ) region = \"US\" ;\n else if ( c == 's' || c == 'u' ) region = \"ES\" ;\n else if ( c == 't' ) region = \"EE\" ;\n break ;\n case 'f' : if ( c == 'a' ) region = \"IR\" ;\n else if ( c == 'i' ) region = \"FI\" ;\n else if ( c == 'o' ) region = \"FO\" ;\n else if ( c == 'r' ) region = \"FR\" ;\n break ;\n case 'g' : if ( c == 'a' ) region = \"IE\" ;\n else if ( c == 'l' ) region = \"ES\" ;\n else if ( c == 'v' ) region = \"GB\" ;\n break ;\n case 'h' : if ( c == 'e' ) region = \"IL\" ;\n else if ( c == 'i' ) region = \"IN\" ;\n else if ( c == 'r' ) region = \"HT\" ;\n else if ( c == 'u' ) region = \"HU\" ;\n break ;\n case 'i' : if ( c == 'd' ) region = \"ID\" ;\n else if ( c == 's' ) region = \"IS\" ;\n else if ( c == 't' ) region = \"IT\" ;\n else if ( c == 'w' ) region = \"IL\" ;\n break ;\n case 'j' : if ( c == 'a' ) region = \"JP\" ;\n break ;\n case 'k' : if ( c == 'l' ) region = \"GL\" ;\n else if ( c == 'o' ) region = \"KR\" ;\n else if ( c == 'w' ) region = \"GB\" ;\n break ;\n case 'l' : if ( c == 't' ) region = \"LT\" ;\n else if ( c == 'v' ) region = \"LV\" ;\n break ;\n case 'm' : if ( c == 'k' ) region = \"MK\" ;\n else if ( c == 'l' || c == 'r' ) region = \"IN\" ;\n else if ( c == 'n' ) region = \"MN\" ;\n else if ( c == 's' ) region = \"MY\" ;\n else if ( c == 't' ) region = \"MT\" ;\n break ;\n case 'n' : if ( c == 'b' || c == 'n' || c == 'o' ) region = \"NO\" ;\n else if ( c == 'e' ) region = \"NP\" ;\n else if ( c == 'l' ) region = \"NL\" ;\n break ;\n case 'o' : if ( c == 'm' ) region = \"ET\" ;\n break ;\n case 'p' : if ( c == 'a' ) region = \"IN\" ;\n else if ( c == 'l' ) region = \"PL\" ;\n else if ( c == 't' ) region = \"PT\" ;\n break ;\n case 'r' : if ( c == 'o' ) region = \"RO\" ;\n else if ( c == 'u' ) region = \"RU\" ;\n break ;\n case 's' : switch ( c ) {\n case 'e' : region = \"NO\" ;\n break ;\n case 'h' : region = \"YU\" ;\n break ;\n case 'k' : region = \"SK\" ;\n break ;\n case 'l' : region = \"SI\" ;\n break ;\n case 'o' : region = \"ET\" ;\n break ;\n case 'q' : region = \"AL\" ;\n break ;\n case 't' : region = \"ZA\" ;\n break ;\n case 'v' : region = \"SE\" ;\n break ;\n }\n break ;\n case 't' : if ( c == 'a' || c == 'e' ) region = \"IN\" ;\n else if ( c == 'h' ) region = \"TH\" ;\n else if ( c == 'i' ) region = \"ER\" ;\n else if ( c == 'r' ) region = \"TR\" ;\n else if ( c == 't' ) region = \"RU\" ;\n break ;\n case 'u' : if ( c == 'k' ) region = \"UA\" ;\n else if ( c == 'r' ) region = \"PK\" ;\n break ;\n case 'v' : if ( c == 'i' ) region = \"VN\" ;\n break ;\n case 'w' : if ( c == 'a' ) region = \"BE\" ;\n break ;\n case 'x' : if ( c == 'h' ) region = \"ZA\" ;\n break ;\n case 'z' : if ( c == 'h' ) region = \"CN\" ;\n else if ( c == 'u' ) region = \"ZA\" ;\n break ;\n }\n return ( ( xmlChar * ) region ) ;\n }"}
{"idx": 13691, "target": 0, "func": "static int pfkey_do_dump ( struct pfkey_sock * pfk ) {\n struct sadb_msg * hdr ;\n int rc ;\n rc = pfk -> dump . dump ( pfk ) ;\n if ( rc == - ENOBUFS ) return 0 ;\n if ( pfk -> dump . skb ) {\n if ( ! pfkey_can_dump ( & pfk -> sk ) ) return 0 ;\n hdr = ( struct sadb_msg * ) pfk -> dump . skb -> data ;\n hdr -> sadb_msg_seq = 0 ;\n hdr -> sadb_msg_errno = rc ;\n pfkey_broadcast ( pfk -> dump . skb , GFP_ATOMIC , BROADCAST_ONE , & pfk -> sk , sock_net ( & pfk -> sk ) ) ;\n pfk -> dump . skb = NULL ;\n }\n pfkey_terminate_dump ( pfk ) ;\n return rc ;\n }"}
{"idx": 13692, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n FrapsContext * const s = avctx -> priv_data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n AVFrame * frame = data ;\n AVFrame * const f = & s -> frame ;\n uint32_t header ;\n unsigned int version , header_size ;\n unsigned int x , y ;\n const uint32_t * buf32 ;\n uint32_t * luma1 , * luma2 , * cb , * cr ;\n uint32_t offs [ 4 ] ;\n int i , j , ret , is_chroma , planes ;\n enum AVPixelFormat pix_fmt ;\n header = AV_RL32 ( buf ) ;\n version = header & 0xff ;\n header_size = ( header & ( 1 << 30 ) ) ? 8 : 4 ;\n if ( version > 5 ) {\n av_log ( avctx , AV_LOG_ERROR , \"This file is encoded with Fraps version %d. \" \\ \"This codec can only decode versions <= 5.\\n\" , version ) ;\n return AVERROR_PATCHWELCOME ;\n }\n buf += 4 ;\n if ( header_size == 8 ) buf += 4 ;\n pix_fmt = version & 1 ? AV_PIX_FMT_BGR24 : AV_PIX_FMT_YUVJ420P ;\n if ( avctx -> pix_fmt != pix_fmt && f -> data [ 0 ] ) {\n av_frame_unref ( f ) ;\n }\n avctx -> pix_fmt = pix_fmt ;\n switch ( version ) {\n case 0 : default : if ( ( buf_size != avctx -> width * avctx -> height * 3 / 2 + header_size ) && ( buf_size != header_size ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid frame length %d (should be %d)\\n\" , buf_size , avctx -> width * avctx -> height * 3 / 2 + header_size ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ( ( avctx -> width % 8 ) != 0 ) || ( ( avctx -> height % 2 ) != 0 ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid frame size %dx%d\\n\" , avctx -> width , avctx -> height ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ( ret = ff_reget_buffer ( avctx , f ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n f -> pict_type = ( header & ( 1U << 31 ) ) ? AV_PICTURE_TYPE_P : AV_PICTURE_TYPE_I ;\n f -> key_frame = f -> pict_type == AV_PICTURE_TYPE_I ;\n if ( f -> pict_type == AV_PICTURE_TYPE_I ) {\n buf32 = ( const uint32_t * ) buf ;\n for ( y = 0 ;\n y < avctx -> height / 2 ;\n y ++ ) {\n luma1 = ( uint32_t * ) & f -> data [ 0 ] [ y * 2 * f -> linesize [ 0 ] ] ;\n luma2 = ( uint32_t * ) & f -> data [ 0 ] [ ( y * 2 + 1 ) * f -> linesize [ 0 ] ] ;\n cr = ( uint32_t * ) & f -> data [ 1 ] [ y * f -> linesize [ 1 ] ] ;\n cb = ( uint32_t * ) & f -> data [ 2 ] [ y * f -> linesize [ 2 ] ] ;\n for ( x = 0 ;\n x < avctx -> width ;\n x += 8 ) {\n * ( luma1 ++ ) = * ( buf32 ++ ) ;\n * ( luma1 ++ ) = * ( buf32 ++ ) ;\n * ( luma2 ++ ) = * ( buf32 ++ ) ;\n * ( luma2 ++ ) = * ( buf32 ++ ) ;\n * ( cr ++ ) = * ( buf32 ++ ) ;\n * ( cb ++ ) = * ( buf32 ++ ) ;\n }\n }\n }\n break ;\n case 1 : if ( ( buf_size != avctx -> width * avctx -> height * 3 + header_size ) && ( buf_size != header_size ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid frame length %d (should be %d)\\n\" , buf_size , avctx -> width * avctx -> height * 3 + header_size ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ( ret = ff_reget_buffer ( avctx , f ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n f -> pict_type = ( header & ( 1U << 31 ) ) ? AV_PICTURE_TYPE_P : AV_PICTURE_TYPE_I ;\n f -> key_frame = f -> pict_type == AV_PICTURE_TYPE_I ;\n if ( f -> pict_type == AV_PICTURE_TYPE_I ) {\n for ( y = 0 ;\n y < avctx -> height ;\n y ++ ) memcpy ( & f -> data [ 0 ] [ ( avctx -> height - y - 1 ) * f -> linesize [ 0 ] ] , & buf [ y * avctx -> width * 3 ] , 3 * avctx -> width ) ;\n }\n break ;\n case 2 : case 4 : planes = 3 ;\n if ( ( ret = ff_reget_buffer ( avctx , f ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( buf_size == 8 ) {\n f -> pict_type = AV_PICTURE_TYPE_P ;\n f -> key_frame = 0 ;\n break ;\n }\n f -> pict_type = AV_PICTURE_TYPE_I ;\n f -> key_frame = 1 ;\n if ( ( AV_RL32 ( buf ) != FPS_TAG ) || ( buf_size < ( planes * 1024 + 24 ) ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Fraps: error in data stream\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( i = 0 ;\n i < planes ;\n i ++ ) {\n offs [ i ] = AV_RL32 ( buf + 4 + i * 4 ) ;\n if ( offs [ i ] >= buf_size || ( i && offs [ i ] <= offs [ i - 1 ] + 1024 ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Fraps: plane %i offset is out of bounds\\n\" , i ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n offs [ planes ] = buf_size ;\n for ( i = 0 ;\n i < planes ;\n i ++ ) {\n is_chroma = ! ! i ;\n av_fast_padded_malloc ( & s -> tmpbuf , & s -> tmpbuf_size , offs [ i + 1 ] - offs [ i ] - 1024 ) ;\n if ( ! s -> tmpbuf ) return AVERROR ( ENOMEM ) ;\n if ( ( ret = fraps2_decode_plane ( s , f -> data [ i ] , f -> linesize [ i ] , avctx -> width >> is_chroma , avctx -> height >> is_chroma , buf + offs [ i ] , offs [ i + 1 ] - offs [ i ] , is_chroma , 1 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error decoding plane %i\\n\" , i ) ;\n return ret ;\n }\n }\n break ;\n case 3 : case 5 : planes = 3 ;\n if ( ( ret = ff_reget_buffer ( avctx , f ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( buf_size == 8 ) {\n f -> pict_type = AV_PICTURE_TYPE_P ;\n f -> key_frame = 0 ;\n break ;\n }\n f -> pict_type = AV_PICTURE_TYPE_I ;\n f -> key_frame = 1 ;\n if ( ( AV_RL32 ( buf ) != FPS_TAG ) || ( buf_size < ( planes * 1024 + 24 ) ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Fraps: error in data stream\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( i = 0 ;\n i < planes ;\n i ++ ) {\n offs [ i ] = AV_RL32 ( buf + 4 + i * 4 ) ;\n if ( offs [ i ] >= buf_size || ( i && offs [ i ] <= offs [ i - 1 ] + 1024 ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Fraps: plane %i offset is out of bounds\\n\" , i ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n offs [ planes ] = buf_size ;\n for ( i = 0 ;\n i < planes ;\n i ++ ) {\n av_fast_padded_malloc ( & s -> tmpbuf , & s -> tmpbuf_size , offs [ i + 1 ] - offs [ i ] - 1024 ) ;\n if ( ! s -> tmpbuf ) return AVERROR ( ENOMEM ) ;\n if ( ( ret = fraps2_decode_plane ( s , f -> data [ 0 ] + i + ( f -> linesize [ 0 ] * ( avctx -> height - 1 ) ) , - f -> linesize [ 0 ] , avctx -> width , avctx -> height , buf + offs [ i ] , offs [ i + 1 ] - offs [ i ] , 0 , 3 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error decoding plane %i\\n\" , i ) ;\n return ret ;\n }\n }\n for ( j = 0 ;\n j < avctx -> height ;\n j ++ ) {\n for ( i = 0 ;\n i < avctx -> width ;\n i ++ ) {\n f -> data [ 0 ] [ 0 + i * 3 + j * f -> linesize [ 0 ] ] += f -> data [ 0 ] [ 1 + i * 3 + j * f -> linesize [ 0 ] ] ;\n f -> data [ 0 ] [ 2 + i * 3 + j * f -> linesize [ 0 ] ] += f -> data [ 0 ] [ 1 + i * 3 + j * f -> linesize [ 0 ] ] ;\n }\n }\n break ;\n }\n if ( ( ret = av_frame_ref ( frame , f ) ) < 0 ) return ret ;\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 13693, "target": 0, "func": "static inline unsigned long realpath_cache_key ( const char * path , int path_len ) {\n register unsigned long h ;\n const char * e = path + path_len ;\n for ( h = 2166136261U ;\n path < e ;\n ) {\n h *= 16777619 ;\n h ^= * path ++ ;\n }\n return h ;\n }"}
{"idx": 13694, "target": 0, "func": "void main_file_init ( main_file * xfile ) {\n memset ( xfile , 0 , sizeof ( * xfile ) ) ;\n # if XD3_POSIX xfile -> file = - 1 ;\n # endif # if XD3_WIN32 xfile -> file = INVALID_HANDLE_VALUE ;\n # endif }"}
{"idx": 13695, "target": 1, "func": "static int dissect_h225_T_standard ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 862 \"./asn1/h225/h225.cnf\" guint32 value_int = ( guint32 ) - 1 ;\n gef_ctx_t * gefx ;\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 16383U , & value_int , TRUE ) ;\n gefx = gef_ctx_get ( actx -> private_data ) ;\n if ( gefx ) gefx -> id = wmem_strdup_printf ( wmem_packet_scope ( ) , \"%u\" , value_int ) ;\n return offset ;\n }"}
{"idx": 13696, "target": 0, "func": "unsigned int vp9_sad ## m ## x ## n ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride ) {\n return sad ( src , src_stride , ref , ref_stride , m , n ) ;\n \\ }\n 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 ) {\n uint8_t comp_pred [ m * n ] ;\n vp9_comp_avg_pred ( comp_pred , second_pred , m , n , ref , ref_stride ) ;\n return sad ( src , src_stride , comp_pred , m , m , n ) ;\n \\ }\n # define sadMxNxK ( m , n , k ) void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 ) sadMxN ( 16 , 32 ) sadMxNx4D ( 16 , 32 ) sadMxN ( 16 , 16 )"}
{"idx": 13697, "target": 0, "func": "static void vmport_realizefn ( DeviceState * dev , Error * * errp ) {\n ISADevice * isadev = ISA_DEVICE ( dev ) ;\n VMPortState * s = VMPORT ( dev ) ;\n memory_region_init_io ( & s -> io , OBJECT ( s ) , & vmport_ops , s , \"vmport\" , 1 ) ;\n isa_register_ioport ( isadev , & s -> io , 0x5658 ) ;\n port_state = s ;\n vmport_register ( VMPORT_CMD_GETVERSION , vmport_cmd_get_version , NULL ) ;\n vmport_register ( VMPORT_CMD_GETRAMSIZE , vmport_cmd_ram_size , NULL ) ;\n }"}
{"idx": 13698, "target": 0, "func": "static bool check_address_object ( ts_type_t ts_type , chunk_t object ) {\n switch ( ts_type ) {\n case TS_IPV4_ADDR_RANGE : if ( object . len > 5 ) {\n DBG1 ( DBG_ASN , \"IPv4 address object is larger than 5 octets\" ) ;\n return FALSE ;\n }\n break ;\n case TS_IPV6_ADDR_RANGE : if ( object . len > 17 ) {\n DBG1 ( DBG_ASN , \"IPv6 address object is larger than 17 octets\" ) ;\n return FALSE ;\n }\n break ;\n default : DBG1 ( DBG_ASN , \"unknown address family\" ) ;\n return FALSE ;\n }\n if ( object . len == 0 ) {\n DBG1 ( DBG_ASN , \"An ASN.1 bit string must contain at least the \" \"initial octet\" ) ;\n return FALSE ;\n }\n if ( object . len == 1 && object . ptr [ 0 ] != 0 ) {\n DBG1 ( DBG_ASN , \"An empty ASN.1 bit string must contain a zero \" \"initial octet\" ) ;\n return FALSE ;\n }\n if ( object . ptr [ 0 ] > 7 ) {\n DBG1 ( DBG_ASN , \"number of unused bits is too large\" ) ;\n return FALSE ;\n }\n return TRUE ;\n }"}
{"idx": 13699, "target": 0, "func": "static VALUE cState_object_nl_set ( VALUE self , VALUE object_nl ) {\n unsigned long len ;\n GET_STATE ( self ) ;\n Check_Type ( object_nl , T_STRING ) ;\n len = RSTRING_LEN ( object_nl ) ;\n if ( len == 0 ) {\n if ( state -> object_nl ) {\n ruby_xfree ( state -> object_nl ) ;\n state -> object_nl = NULL ;\n }\n }\n else {\n if ( state -> object_nl ) ruby_xfree ( state -> object_nl ) ;\n state -> object_nl = fstrndup ( RSTRING_PTR ( object_nl ) , len ) ;\n state -> object_nl_len = len ;\n }\n return Qnil ;\n }"}
{"idx": 13700, "target": 0, "func": "Oid getBaseType ( Oid typid ) {\n int32 typmod = - 1 ;\n return getBaseTypeAndTypmod ( typid , & typmod ) ;\n }"}
{"idx": 13701, "target": 0, "func": "static void model2_update ( Model2 * m , int bit ) {\n unsigned scale ;\n if ( ! bit ) m -> zero_weight ++ ;\n m -> till_rescale -- ;\n if ( m -> till_rescale ) return ;\n m -> total_weight += m -> upd_val ;\n if ( m -> total_weight > 0x2000 ) {\n m -> total_weight = ( m -> total_weight + 1 ) >> 1 ;\n m -> zero_weight = ( m -> zero_weight + 1 ) >> 1 ;\n if ( m -> total_weight == m -> zero_weight ) m -> total_weight = m -> zero_weight + 1 ;\n }\n m -> upd_val = m -> upd_val * 5 >> 2 ;\n if ( m -> upd_val > 64 ) m -> upd_val = 64 ;\n scale = 0x80000000u / m -> total_weight ;\n m -> zero_freq = m -> zero_weight * scale >> 18 ;\n m -> total_freq = m -> total_weight * scale >> 18 ;\n m -> till_rescale = m -> upd_val ;\n }"}
{"idx": 13702, "target": 0, "func": "relpRetVal relpTcpSend ( relpTcp_t * pThis , relpOctet_t * pBuf , ssize_t * pLenBuf ) {\n ssize_t written ;\n ENTER_RELPFUNC ;\n RELPOBJ_assert ( pThis , Tcp ) ;\n # ifdef ENABLE_TLS if ( pThis -> bEnableTLS ) {\n written = gnutls_record_send ( pThis -> session , pBuf , * pLenBuf ) ;\n pThis -> pEngine -> dbgprint ( \"librelp: TLS send returned %d\\n\" , ( int ) written ) ;\n if ( written == GNUTLS_E_AGAIN || written == GNUTLS_E_INTERRUPTED ) {\n pThis -> rtryOp = relpTCP_RETRY_send ;\n written = 0 ;\n }\n else {\n pThis -> rtryOp = relpTCP_RETRY_none ;\n if ( written < 1 ) {\n chkGnutlsCode ( pThis , \"TLS record write failed\" , RELP_RET_IO_ERR , written ) ;\n ABORT_FINALIZE ( RELP_RET_IO_ERR ) ;\n }\n }\n }\n else {\n # endif written = send ( pThis -> sock , pBuf , * pLenBuf , 0 ) ;\n const int errno_save = errno ;\n pThis -> pEngine -> dbgprint ( \"relpTcpSend: sock %d, lenbuf %zd, send returned %d [errno %d]\\n\" , ( int ) pThis -> sock , * pLenBuf , ( int ) written , errno_save ) ;\n if ( written == - 1 ) {\n switch ( errno_save ) {\n case EAGAIN : case EINTR : written = 0 ;\n break ;\n default : ABORT_FINALIZE ( RELP_RET_IO_ERR ) ;\n break ;\n }\n }\n # ifdef ENABLE_TLS }\n # endif * pLenBuf = written ;\n finalize_it : LEAVE_RELPFUNC ;\n }"}
{"idx": 13703, "target": 0, "func": "static int dissect_btatt ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n proto_item * main_item ;\n proto_tree * main_tree ;\n proto_item * sub_item ;\n proto_tree * sub_tree ;\n int offset = 0 ;\n guint8 opcode ;\n guint8 request_opcode ;\n bluetooth_data_t * bluetooth_data ;\n btatt_data_t att_data ;\n request_data_t * request_data ;\n guint16 handle ;\n bluetooth_uuid_t uuid ;\n guint mtu ;\n memset ( & uuid , 0 , sizeof uuid ) ;\n bluetooth_data = ( bluetooth_data_t * ) data ;\n if ( tvb_reported_length_remaining ( tvb , 0 ) < 1 ) return 0 ;\n att_data . bluetooth_data = bluetooth_data ;\n main_item = proto_tree_add_item ( tree , proto_btatt , tvb , 0 , - 1 , ENC_NA ) ;\n main_tree = proto_item_add_subtree ( main_item , ett_btatt ) ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"ATT\" ) ;\n switch ( pinfo -> p2p_dir ) {\n case P2P_DIR_SENT : col_set_str ( pinfo -> cinfo , COL_INFO , \"Sent \" ) ;\n break ;\n case P2P_DIR_RECV : col_set_str ( pinfo -> cinfo , COL_INFO , \"Rcvd \" ) ;\n break ;\n default : col_set_str ( pinfo -> cinfo , COL_INFO , \"UnknownDirection \" ) ;\n break ;\n }\n mtu = get_mtu ( pinfo , bluetooth_data ) ;\n if ( tvb_reported_length ( tvb ) > mtu ) expert_add_info ( pinfo , main_item , & ei_btatt_mtu_exceeded ) ;\n proto_tree_add_bitmask_with_flags ( main_tree , tvb , offset , hf_btatt_opcode , ett_btatt_opcode , hfx_btatt_opcode , ENC_NA , BMT_NO_APPEND ) ;\n opcode = tvb_get_guint8 ( tvb , 0 ) ;\n att_data . opcode = opcode ;\n offset ++ ;\n request_data = get_request ( tvb , offset , pinfo , opcode , bluetooth_data ) ;\n col_append_str ( pinfo -> cinfo , COL_INFO , val_to_str_const ( opcode , opcode_vals , \"<unknown>\" ) ) ;\n switch ( opcode ) {\n case 0x01 : {\n guint8 error_code ;\n bluetooth_uuid_t service_uuid ;\n const value_string * error_vals = error_code_vals ;\n gint hfx_btatt_error_code = hf_btatt_error_code ;\n proto_tree_add_bitmask_with_flags ( main_tree , tvb , offset , hf_btatt_req_opcode_in_error , ett_btatt_opcode , hfx_btatt_opcode , ENC_NA , BMT_NO_APPEND ) ;\n request_opcode = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n offset = dissect_handle ( main_tree , pinfo , hf_btatt_handle_in_error , tvb , offset , bluetooth_data , NULL , HANDLE_TVB ) ;\n handle = tvb_get_letohs ( tvb , offset - 2 ) ;\n error_code = tvb_get_guint8 ( tvb , offset ) ;\n if ( error_code >= 0x80 && error_code <= 0x9F ) {\n service_uuid = get_service_uuid_from_handle ( pinfo , handle , bluetooth_data ) ;\n switch ( service_uuid . bt_uuid ) {\n case GATT_SERVICE_AUTOMATION_IO : error_vals = error_code_aios_vals ;\n hfx_btatt_error_code = hf_btatt_error_code_aios ;\n break ;\n case GATT_SERVICE_ALERT_NOTIFICATION_SERVICE : error_vals = error_code_ans_vals ;\n hfx_btatt_error_code = hf_btatt_error_code_ans ;\n break ;\n case GATT_SERVICE_BOND_MANAGEMENT : error_vals = error_code_bms_vals ;\n hfx_btatt_error_code = hf_btatt_error_code_bms ;\n break ;\n case GATT_SERVICE_CONTINUOUS_GLUCOSE_MONITORING : error_vals = error_code_cgms_vals ;\n hfx_btatt_error_code = hf_btatt_error_code_cgms ;\n break ;\n case GATT_SERVICE_CYCLING_POWER : error_vals = error_code_cps_vals ;\n hfx_btatt_error_code = hf_btatt_error_code_cps ;\n break ;\n case GATT_SERVICE_CYCLING_SPEED_AND_CADENCE : error_vals = error_code_cscs_vals ;\n hfx_btatt_error_code = hf_btatt_error_code_cscs ;\n break ;\n case GATT_SERVICE_CURRENT_TIME_SERVICE : error_vals = error_code_cts_vals ;\n hfx_btatt_error_code = hf_btatt_error_code_cts ;\n break ;\n case GATT_SERVICE_ENVIRONMENTAL_SENSING : error_vals = error_code_ess_vals ;\n hfx_btatt_error_code = hf_btatt_error_code_ess ;\n break ;\n case GATT_SERVICE_GLUCOSE : error_vals = error_code_gls_vals ;\n hfx_btatt_error_code = hf_btatt_error_code_gls ;\n break ;\n case GATT_SERVICE_HTTP_PROXY : error_vals = error_code_hps_vals ;\n hfx_btatt_error_code = hf_btatt_error_code_hps ;\n break ;\n case GATT_SERVICE_HEART_RATE : error_vals = error_code_hrs_vals ;\n hfx_btatt_error_code = hf_btatt_error_code_hrs ;\n break ;\n case GATT_SERVICE_HEALTH_THERMOMETER : error_vals = error_code_hts_vals ;\n hfx_btatt_error_code = hf_btatt_error_code_hts ;\n break ;\n case GATT_SERVICE_INDOOR_POSITIONING : error_vals = error_code_ips_vals ;\n hfx_btatt_error_code = hf_btatt_error_code_ips ;\n break ;\n case GATT_SERVICE_OBJECT_TRANSFER : error_vals = error_code_ots_vals ;\n hfx_btatt_error_code = hf_btatt_error_code_ots ;\n break ;\n case GATT_SERVICE_RUNNING_SPEED_AND_CADENCE : error_vals = error_code_rscs_vals ;\n hfx_btatt_error_code = hf_btatt_error_code_rscs ;\n break ;\n case GATT_SERVICE_USER_DATA : error_vals = error_code_uds_vals ;\n hfx_btatt_error_code = hf_btatt_error_code_uds ;\n break ;\n default : error_vals = error_code_vals ;\n hfx_btatt_error_code = hf_btatt_error_code ;\n }\n }\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" - %s\" , val_to_str_const ( error_code , error_vals , \"<unknown>\" ) ) ;\n col_append_info_by_handle ( pinfo , handle , bluetooth_data ) ;\n proto_tree_add_item ( main_tree , hfx_btatt_error_code , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset ++ ;\n if ( request_data && ( request_opcode == 0x08 || request_opcode == 0x10 ) ) {\n sub_item = proto_tree_add_uint ( main_tree , hf_btatt_uuid16 , tvb , 0 , 0 , request_data -> parameters . read_by_type . uuid . bt_uuid ) ;\n PROTO_ITEM_SET_GENERATED ( sub_item ) ;\n }\n }\n break ;\n case 0x02 : col_append_fstr ( pinfo -> cinfo , COL_INFO , \", Client Rx MTU: %u\" , tvb_get_letohs ( tvb , offset ) ) ;\n proto_tree_add_item ( main_tree , hf_btatt_client_rx_mtu , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( ! pinfo -> fd -> flags . visited && bluetooth_data ) {\n union request_parameters_union request_parameters ;\n request_parameters . mtu . mtu = tvb_get_guint16 ( tvb , offset - 2 , ENC_LITTLE_ENDIAN ) ;\n save_request ( pinfo , opcode , request_parameters , bluetooth_data ) ;\n }\n break ;\n case 0x03 : col_append_fstr ( pinfo -> cinfo , COL_INFO , \", Server Rx MTU: %u\" , tvb_get_letohs ( tvb , offset ) ) ;\n proto_tree_add_item ( main_tree , hf_btatt_server_rx_mtu , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n if ( ! pinfo -> fd -> flags . visited && request_data && bluetooth_data ) {\n guint new_mtu ;\n new_mtu = tvb_get_guint16 ( tvb , offset , ENC_LITTLE_ENDIAN ) ;\n if ( new_mtu > request_data -> parameters . mtu . mtu ) new_mtu = request_data -> parameters . mtu . mtu ;\n save_mtu ( pinfo , bluetooth_data , new_mtu ) ;\n }\n offset += 2 ;\n break ;\n case 0x04 : col_append_fstr ( pinfo -> cinfo , COL_INFO , \", Handles: 0x%04x..0x%04x\" , tvb_get_letohs ( tvb , offset ) , tvb_get_letohs ( tvb , offset + 2 ) ) ;\n proto_tree_add_item ( main_tree , hf_btatt_starting_handle , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( main_tree , hf_btatt_ending_handle , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( ! pinfo -> fd -> flags . visited && bluetooth_data ) {\n union request_parameters_union request_parameters ;\n request_parameters . find_information . starting_handle = tvb_get_guint16 ( tvb , offset - 4 , ENC_LITTLE_ENDIAN ) ;\n request_parameters . find_information . ending_handle = tvb_get_guint16 ( tvb , offset - 2 , ENC_LITTLE_ENDIAN ) ;\n save_request ( pinfo , opcode , request_parameters , bluetooth_data ) ;\n }\n break ;\n case 0x05 : {\n guint8 format ;\n sub_item = proto_tree_add_item ( main_tree , hf_btatt_uuid_format , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n format = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n if ( format == 1 ) {\n while ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n sub_item = proto_tree_add_item ( main_tree , hf_btatt_information_data , tvb , offset , 4 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n offset = dissect_handle ( sub_tree , pinfo , hf_btatt_handle , tvb , offset , bluetooth_data , NULL , HANDLE_TVB ) ;\n handle = tvb_get_guint16 ( tvb , offset - 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( sub_tree , hf_btatt_uuid16 , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n uuid = get_uuid ( tvb , offset , 2 ) ;\n offset += 2 ;\n proto_item_append_text ( sub_item , \", Handle: 0x%04x, UUID: %s\" , handle , print_uuid ( & uuid ) ) ;\n save_handle ( pinfo , uuid , handle , ATTRIBUTE_TYPE_OTHER , bluetooth_data ) ;\n col_append_info_by_handle ( pinfo , handle , bluetooth_data ) ;\n }\n }\n else if ( format == 2 ) {\n while ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n sub_item = proto_tree_add_item ( main_tree , hf_btatt_information_data , tvb , offset , 4 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n offset = dissect_handle ( sub_tree , pinfo , hf_btatt_handle , tvb , offset , bluetooth_data , NULL , HANDLE_TVB ) ;\n handle = tvb_get_guint16 ( tvb , offset - 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( sub_tree , hf_btatt_uuid128 , tvb , offset , 16 , ENC_NA ) ;\n uuid = get_uuid ( tvb , offset , 16 ) ;\n offset += 16 ;\n proto_item_append_text ( sub_item , \", Handle: 0x%04x, UUID: %s\" , handle , print_uuid ( & uuid ) ) ;\n save_handle ( pinfo , uuid , handle , ATTRIBUTE_TYPE_OTHER , bluetooth_data ) ;\n col_append_info_by_handle ( pinfo , handle , bluetooth_data ) ;\n }\n }\n else {\n expert_add_info ( pinfo , sub_item , & ei_btatt_uuid_format_unknown ) ;\n }\n }\n break ;\n case 0x06 : col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s, Handles: 0x%04x..0x%04x\" , val_to_str_ext_const ( tvb_get_letohs ( tvb , offset + 4 ) , & bluetooth_uuid_vals_ext , \"<unknown>\" ) , tvb_get_letohs ( tvb , offset ) , tvb_get_letohs ( tvb , offset + 2 ) ) ;\n proto_tree_add_item ( main_tree , hf_btatt_starting_handle , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( main_tree , hf_btatt_ending_handle , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( main_tree , hf_btatt_uuid16 , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n uuid = get_uuid ( tvb , offset - 2 , 2 ) ;\n offset += 2 ;\n dissect_attribute_value ( main_tree , NULL , pinfo , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , 0 , uuid , & att_data ) ;\n if ( ! pinfo -> fd -> flags . visited && bluetooth_data ) {\n union request_parameters_union request_parameters ;\n request_parameters . read_by_type . starting_handle = tvb_get_guint16 ( tvb , offset - 6 , ENC_LITTLE_ENDIAN ) ;\n request_parameters . read_by_type . ending_handle = tvb_get_guint16 ( tvb , offset - 4 , ENC_LITTLE_ENDIAN ) ;\n request_parameters . read_by_type . uuid = uuid ;\n save_request ( pinfo , opcode , request_parameters , bluetooth_data ) ;\n }\n offset = tvb_reported_length ( tvb ) ;\n break ;\n case 0x07 : while ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n sub_item = proto_tree_add_none_format ( main_tree , hf_btatt_handles_info , tvb , offset , 4 , \"Handles Info, Handle: 0x%04x, Group End Handle: 0x%04x\" , tvb_get_letohs ( tvb , offset ) , tvb_get_letohs ( tvb , offset + 2 ) ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n offset = dissect_handle ( sub_tree , pinfo , hf_btatt_handle , tvb , offset , bluetooth_data , NULL , HANDLE_TVB ) ;\n proto_tree_add_item ( sub_tree , hf_btatt_group_end_handle , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( request_data ) save_handle ( pinfo , request_data -> parameters . read_by_type . uuid , tvb_get_guint16 ( tvb , offset - 4 , ENC_LITTLE_ENDIAN ) , ATTRIBUTE_TYPE_OTHER , bluetooth_data ) ;\n }\n break ;\n case 0x08 : case 0x10 : col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s, Handles: 0x%04x..0x%04x\" , val_to_str_ext_const ( tvb_get_letohs ( tvb , offset + 4 ) , & bluetooth_uuid_vals_ext , \"<unknown>\" ) , tvb_get_letohs ( tvb , offset ) , tvb_get_letohs ( tvb , offset + 2 ) ) ;\n proto_tree_add_item ( main_tree , hf_btatt_starting_handle , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( main_tree , hf_btatt_ending_handle , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( tvb_reported_length_remaining ( tvb , offset ) == 2 ) {\n proto_tree_add_item ( main_tree , hf_btatt_uuid16 , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( ! pinfo -> fd -> flags . visited && bluetooth_data ) {\n union request_parameters_union request_parameters ;\n request_parameters . read_by_type . starting_handle = tvb_get_guint16 ( tvb , offset - 6 , ENC_LITTLE_ENDIAN ) ;\n request_parameters . read_by_type . ending_handle = tvb_get_guint16 ( tvb , offset - 4 , ENC_LITTLE_ENDIAN ) ;\n request_parameters . read_by_type . uuid = get_uuid ( tvb , offset - 2 , 2 ) ;\n save_request ( pinfo , opcode , request_parameters , bluetooth_data ) ;\n }\n }\n else if ( tvb_reported_length_remaining ( tvb , offset ) == 16 ) {\n sub_item = proto_tree_add_item ( main_tree , hf_btatt_uuid128 , tvb , offset , 16 , ENC_NA ) ;\n proto_item_append_text ( sub_item , \" (%s)\" , val_to_str_ext_const ( tvb_get_letohs ( tvb , offset ) , & bluetooth_uuid_vals_ext , \"<unknown>\" ) ) ;\n offset += 16 ;\n if ( ! pinfo -> fd -> flags . visited && bluetooth_data ) {\n union request_parameters_union request_parameters ;\n request_parameters . read_by_type . starting_handle = tvb_get_guint16 ( tvb , offset - 20 , ENC_LITTLE_ENDIAN ) ;\n request_parameters . read_by_type . ending_handle = tvb_get_guint16 ( tvb , offset - 18 , ENC_LITTLE_ENDIAN ) ;\n request_parameters . read_by_type . uuid = get_uuid ( tvb , offset - 16 , 16 ) ;\n save_request ( pinfo , opcode , request_parameters , bluetooth_data ) ;\n }\n }\n else {\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_bad_data ) ;\n offset = tvb_captured_length ( tvb ) ;\n }\n break ;\n case 0x09 : {\n guint8 length = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( main_tree , hf_btatt_length , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset ++ ;\n if ( length > 0 ) {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", Attribute List Length: %u\" , tvb_reported_length_remaining ( tvb , offset ) / length ) ;\n while ( tvb_reported_length_remaining ( tvb , offset ) >= length ) {\n sub_item = proto_tree_add_none_format ( main_tree , hf_btatt_attribute_data , tvb , offset , length , \"Attribute Data, Handle: 0x%04x\" , tvb_get_letohs ( tvb , offset ) ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n if ( request_data ) {\n save_handle ( pinfo , request_data -> parameters . read_by_type . uuid , tvb_get_guint16 ( tvb , offset , ENC_LITTLE_ENDIAN ) , ATTRIBUTE_TYPE_OTHER , bluetooth_data ) ;\n }\n offset = dissect_handle ( sub_tree , pinfo , hf_btatt_handle , tvb , offset , bluetooth_data , NULL , HANDLE_TVB ) ;\n if ( request_data ) {\n offset = dissect_attribute_value ( sub_tree , sub_item , pinfo , tvb , offset , length - 2 , tvb_get_guint16 ( tvb , offset - 2 , ENC_LITTLE_ENDIAN ) , request_data -> parameters . read_by_type . uuid , & att_data ) ;\n }\n else {\n proto_tree_add_item ( sub_tree , hf_btatt_value , tvb , offset , length - 2 , ENC_NA ) ;\n offset += length - 2 ;\n }\n }\n }\n if ( request_data ) {\n sub_item = proto_tree_add_uint ( main_tree , hf_btatt_uuid16 , tvb , 0 , 0 , request_data -> parameters . read_by_type . uuid . bt_uuid ) ;\n PROTO_ITEM_SET_GENERATED ( sub_item ) ;\n }\n }\n break ;\n case 0x0a : offset = dissect_handle ( main_tree , pinfo , hf_btatt_handle , tvb , offset , bluetooth_data , & uuid , HANDLE_TVB ) ;\n handle = tvb_get_letohs ( tvb , offset - 2 ) ;\n col_append_info_by_handle ( pinfo , handle , bluetooth_data ) ;\n if ( ! pinfo -> fd -> flags . visited && bluetooth_data ) {\n union request_parameters_union request_parameters ;\n request_parameters . read_write . handle = handle ;\n request_parameters . read_write . offset = 0 ;\n save_request ( pinfo , opcode , request_parameters , bluetooth_data ) ;\n }\n offset = dissect_attribute_value ( main_tree , NULL , pinfo , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , handle , uuid , & att_data ) ;\n break ;\n case 0x0b : if ( request_data ) {\n dissect_handle ( main_tree , pinfo , hf_btatt_handle , tvb , offset , bluetooth_data , & uuid , request_data -> parameters . read_write . handle ) ;\n col_append_info_by_handle ( pinfo , request_data -> parameters . read_write . handle , bluetooth_data ) ;\n }\n if ( is_long_attribute_value ( uuid ) && tvb_captured_length ( tvb ) >= mtu ) {\n sub_item = proto_tree_add_item ( main_tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n if ( ! pinfo -> fd -> flags . visited && request_data && bluetooth_data ) save_value_fragment ( pinfo , tvb , offset , request_data -> parameters . read_write . handle , 0 , bluetooth_data ) ;\n offset = tvb_captured_length ( tvb ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_mtu_full ) ;\n }\n else {\n if ( request_data ) handle = request_data -> parameters . read_write . handle ;\n else handle = 0 ;\n offset = dissect_attribute_value ( main_tree , NULL , pinfo , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , handle , uuid , & att_data ) ;\n }\n break ;\n case 0x0c : offset = dissect_handle ( main_tree , pinfo , hf_btatt_handle , tvb , offset , bluetooth_data , & uuid , HANDLE_TVB ) ;\n handle = tvb_get_letohs ( tvb , offset - 2 ) ;\n col_append_info_by_handle ( pinfo , handle , bluetooth_data ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", Offset: %u\" , tvb_get_letohs ( tvb , offset ) ) ;\n proto_tree_add_item ( main_tree , hf_btatt_offset , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n dissect_attribute_value ( main_tree , NULL , pinfo , tvb , offset , 0 , handle , uuid , & att_data ) ;\n if ( ! pinfo -> fd -> flags . visited && bluetooth_data ) {\n union request_parameters_union request_parameters ;\n request_parameters . read_write . handle = handle ;\n request_parameters . read_write . offset = tvb_get_guint16 ( tvb , offset - 2 , ENC_LITTLE_ENDIAN ) ;\n save_request ( pinfo , opcode , request_parameters , bluetooth_data ) ;\n }\n break ;\n case 0x0d : if ( request_data ) {\n dissect_handle ( main_tree , pinfo , hf_btatt_handle , tvb , offset , bluetooth_data , & uuid , request_data -> parameters . read_write . handle ) ;\n col_append_info_by_handle ( pinfo , request_data -> parameters . read_write . handle , bluetooth_data ) ;\n if ( request_data -> parameters . read_write . offset == 0 && ! is_long_attribute_value ( uuid ) ) {\n offset = dissect_attribute_value ( main_tree , NULL , pinfo , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , request_data -> parameters . read_write . handle , uuid , & att_data ) ;\n }\n else {\n if ( ! pinfo -> fd -> flags . visited && bluetooth_data ) save_value_fragment ( pinfo , tvb , offset , request_data -> parameters . read_write . handle , request_data -> parameters . read_write . offset , bluetooth_data ) ;\n if ( tvb_captured_length ( tvb ) < mtu ) {\n tvbuff_t * next_tvb ;\n guint reassembled_length ;\n guint8 * reassembled_data ;\n sub_item = proto_tree_add_item ( main_tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n offset = tvb_captured_length ( tvb ) ;\n reassembled_data = get_value ( pinfo , request_data -> parameters . read_write . handle , bluetooth_data , & reassembled_length ) ;\n if ( reassembled_data ) {\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_value ) ;\n next_tvb = tvb_new_child_real_data ( tvb , reassembled_data , reassembled_length , reassembled_length ) ;\n add_new_data_source ( pinfo , next_tvb , \"Reassembled ATT\" ) ;\n dissect_attribute_value ( sub_tree , NULL , pinfo , next_tvb , 0 , tvb_captured_length ( next_tvb ) , request_data -> parameters . read_write . handle , uuid , & att_data ) ;\n }\n }\n else {\n sub_item = proto_tree_add_item ( main_tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n offset = tvb_captured_length ( tvb ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_mtu_full ) ;\n }\n }\n }\n else {\n proto_tree_add_item ( main_tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n offset = tvb_captured_length ( tvb ) ;\n }\n break ;\n case 0x0e : if ( tvb_reported_length_remaining ( tvb , offset ) < 4 ) {\n expert_add_info ( pinfo , main_item , & ei_btatt_handle_too_few ) ;\n break ;\n }\n col_append_str ( pinfo -> cinfo , COL_INFO , \", Handles: \" ) ;\n while ( tvb_reported_length_remaining ( tvb , offset ) >= 2 ) {\n offset = dissect_handle ( main_tree , pinfo , hf_btatt_handle , tvb , offset , bluetooth_data , & uuid , HANDLE_TVB ) ;\n handle = tvb_get_letohs ( tvb , offset - 2 ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"0x%04x \" , handle ) ;\n dissect_attribute_value ( main_tree , NULL , pinfo , tvb , offset , 0 , handle , uuid , & att_data ) ;\n }\n if ( ! pinfo -> fd -> flags . visited && bluetooth_data ) {\n union request_parameters_union request_parameters ;\n request_parameters . read_multiple . number_of_handles = ( tvb_captured_length ( tvb ) - 1 ) / 2 ;\n request_parameters . read_multiple . handle = ( guint16 * ) tvb_memdup ( wmem_file_scope ( ) , tvb , 1 , request_parameters . read_multiple . number_of_handles * 2 ) ;\n save_request ( pinfo , opcode , request_parameters , bluetooth_data ) ;\n }\n break ;\n case 0x0f : if ( request_data ) {\n guint i_handle ;\n for ( i_handle = 0 ;\n i_handle < request_data -> parameters . read_multiple . number_of_handles ;\n i_handle += 1 ) {\n dissect_handle ( main_tree , pinfo , hf_btatt_handle , tvb , offset , bluetooth_data , & uuid , request_data -> parameters . read_multiple . handle [ i_handle ] ) ;\n offset = dissect_attribute_value ( main_tree , NULL , pinfo , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , request_data -> parameters . read_multiple . handle [ i_handle ] , uuid , & att_data ) ;\n }\n }\n else {\n proto_tree_add_item ( main_tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n offset = tvb_reported_length ( tvb ) ;\n }\n break ;\n case 0x11 : {\n guint8 length = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( main_tree , hf_btatt_length , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset ++ ;\n if ( length > 0 ) {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", Attribute List Length: %u\" , tvb_reported_length_remaining ( tvb , offset ) / length ) ;\n while ( tvb_reported_length_remaining ( tvb , offset ) >= length ) {\n sub_item = proto_tree_add_none_format ( main_tree , hf_btatt_attribute_data , tvb , offset , length , \"Attribute Data, Handle: 0x%04x, Group End Handle: 0x%04x\" , tvb_get_letohs ( tvb , offset ) , tvb_get_letohs ( tvb , offset + 2 ) ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n offset = dissect_handle ( sub_tree , pinfo , hf_btatt_handle , tvb , offset , bluetooth_data , NULL , HANDLE_TVB ) ;\n handle = tvb_get_guint16 ( tvb , offset - 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( sub_tree , hf_btatt_group_end_handle , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( request_data ) {\n offset = dissect_attribute_value ( sub_tree , sub_item , pinfo , tvb , offset , length - 4 , handle , request_data -> parameters . read_by_type . uuid , & att_data ) ;\n }\n else {\n proto_tree_add_item ( sub_tree , hf_btatt_value , tvb , offset , length - 4 , ENC_NA ) ;\n offset += length - 4 ;\n }\n }\n }\n if ( request_data ) {\n sub_item = proto_tree_add_uint ( main_tree , hf_btatt_uuid16 , tvb , 0 , 0 , request_data -> parameters . read_by_type . uuid . bt_uuid ) ;\n PROTO_ITEM_SET_GENERATED ( sub_item ) ;\n }\n }\n break ;\n case 0x12 : case 0x1d : case 0x52 : case 0x1b : offset = dissect_handle ( main_tree , pinfo , hf_btatt_handle , tvb , offset , bluetooth_data , & uuid , HANDLE_TVB ) ;\n handle = tvb_get_letohs ( tvb , offset - 2 ) ;\n col_append_info_by_handle ( pinfo , handle , bluetooth_data ) ;\n offset = dissect_attribute_value ( main_tree , NULL , pinfo , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , tvb_get_guint16 ( tvb , offset - 2 , ENC_LITTLE_ENDIAN ) , uuid , & att_data ) ;\n if ( ! pinfo -> fd -> flags . visited && bluetooth_data && ( opcode == 0x12 || opcode == 0x1d ) ) {\n union request_parameters_union request_parameters ;\n request_parameters . read_write . handle = handle ;\n request_parameters . read_write . offset = 0 ;\n save_request ( pinfo , opcode , request_parameters , bluetooth_data ) ;\n }\n break ;\n case 0x13 : if ( request_data ) {\n dissect_handle ( main_tree , pinfo , hf_btatt_handle , tvb , offset , bluetooth_data , & uuid , request_data -> parameters . read_write . handle ) ;\n dissect_attribute_value ( main_tree , NULL , pinfo , tvb , offset , 0 , request_data -> parameters . read_write . handle , uuid , & att_data ) ;\n col_append_info_by_handle ( pinfo , request_data -> parameters . read_write . handle , bluetooth_data ) ;\n }\n break ;\n case 0x16 : case 0x17 : offset = dissect_handle ( main_tree , pinfo , hf_btatt_handle , tvb , offset , bluetooth_data , & uuid , HANDLE_TVB ) ;\n handle = tvb_get_letohs ( tvb , offset - 2 ) ;\n col_append_info_by_handle ( pinfo , handle , bluetooth_data ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", Offset: %u\" , tvb_get_letohs ( tvb , offset ) ) ;\n proto_tree_add_item ( main_tree , hf_btatt_offset , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( ! pinfo -> fd -> flags . visited && bluetooth_data && opcode == 0x16 ) {\n union request_parameters_union request_parameters ;\n request_parameters . data = NULL ;\n save_request ( pinfo , opcode , request_parameters , bluetooth_data ) ;\n }\n if ( ! pinfo -> fd -> flags . visited && request_data && bluetooth_data && opcode == 0x16 ) save_value_fragment ( pinfo , tvb , offset , tvb_get_guint16 ( tvb , offset - 4 , ENC_LITTLE_ENDIAN ) , tvb_get_guint16 ( tvb , offset - 2 , ENC_LITTLE_ENDIAN ) , bluetooth_data ) ;\n if ( request_data && tvb_captured_length ( tvb ) < mtu ) {\n tvbuff_t * next_tvb ;\n guint reassembled_length ;\n guint8 * reassembled_data ;\n sub_item = proto_tree_add_item ( main_tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n reassembled_data = get_value ( pinfo , request_data -> parameters . read_write . handle , bluetooth_data , & reassembled_length ) ;\n if ( reassembled_data ) {\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_value ) ;\n next_tvb = tvb_new_child_real_data ( tvb , reassembled_data , reassembled_length , reassembled_length ) ;\n add_new_data_source ( pinfo , next_tvb , \"Reassembled ATT\" ) ;\n dissect_attribute_value ( sub_tree , NULL , pinfo , next_tvb , 0 , tvb_captured_length ( next_tvb ) , request_data -> parameters . read_write . handle , uuid , & att_data ) ;\n }\n }\n else {\n proto_tree_add_item ( main_tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n }\n offset = tvb_reported_length ( tvb ) ;\n break ;\n case 0x18 : col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , val_to_str_const ( tvb_get_guint8 ( tvb , offset ) , flags_vals , \"<unknown>\" ) ) ;\n proto_tree_add_item ( main_tree , hf_btatt_flags , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset ++ ;\n if ( ! pinfo -> fd -> flags . visited && bluetooth_data ) {\n union request_parameters_union request_parameters ;\n request_parameters . data = NULL ;\n save_request ( pinfo , opcode , request_parameters , bluetooth_data ) ;\n }\n break ;\n case 0x19 : break ;\n case 0x1E : if ( request_data ) {\n dissect_handle ( main_tree , pinfo , hf_btatt_handle , tvb , offset , bluetooth_data , & uuid , request_data -> parameters . read_write . handle ) ;\n col_append_info_by_handle ( pinfo , request_data -> parameters . read_write . handle , bluetooth_data ) ;\n dissect_attribute_value ( main_tree , NULL , pinfo , tvb , offset , 0 , request_data -> parameters . read_write . handle , uuid , & att_data ) ;\n }\n break ;\n case 0xd2 : {\n guint8 length ;\n offset = dissect_handle ( main_tree , pinfo , hf_btatt_handle , tvb , offset , bluetooth_data , & uuid , HANDLE_TVB ) ;\n handle = tvb_get_letohs ( tvb , offset - 2 ) ;\n col_append_info_by_handle ( pinfo , handle , bluetooth_data ) ;\n length = tvb_reported_length_remaining ( tvb , offset ) ;\n dissect_attribute_value ( main_tree , NULL , pinfo , tvb , offset , ( length > 12 ) ? length - 12 : 0 , handle , uuid , & att_data ) ;\n if ( length > 12 ) {\n offset += length - 12 ;\n }\n proto_tree_add_item ( main_tree , hf_btatt_sign_counter , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( main_tree , hf_btatt_signature , tvb , offset , 8 , ENC_NA ) ;\n offset += 8 ;\n break ;\n }\n default : break ;\n }\n if ( request_data ) {\n if ( request_data -> request_in_frame > 0 && request_data -> request_in_frame != pinfo -> num ) {\n sub_item = proto_tree_add_uint ( main_tree , hf_request_in_frame , tvb , 0 , 0 , request_data -> request_in_frame ) ;\n PROTO_ITEM_SET_GENERATED ( sub_item ) ;\n }\n if ( ! pinfo -> fd -> flags . visited && request_data -> response_in_frame == 0 && pinfo -> num > request_data -> request_in_frame ) request_data -> response_in_frame = pinfo -> num ;\n if ( request_data -> response_in_frame > 0 && request_data -> response_in_frame != pinfo -> num ) {\n sub_item = proto_tree_add_uint ( main_tree , hf_response_in_frame , tvb , 0 , 0 , request_data -> response_in_frame ) ;\n PROTO_ITEM_SET_GENERATED ( sub_item ) ;\n }\n }\n return offset ;\n }"}
{"idx": 13704, "target": 0, "func": "static void dl_main ( const ElfW ( Phdr ) * phdr , ElfW ( Word ) phnum , ElfW ( Addr ) * user_entry , ElfW ( auxv_t ) * auxv ) {\n const ElfW ( Phdr ) * ph ;\n enum mode mode ;\n struct link_map * main_map ;\n size_t file_size ;\n char * file ;\n bool has_interp = false ;\n unsigned int i ;\n bool prelinked = false ;\n bool rtld_is_main = false ;\n # ifndef HP_TIMING_NONAVAIL hp_timing_t start ;\n hp_timing_t stop ;\n hp_timing_t diff ;\n # endif void * tcbp = NULL ;\n # ifdef _LIBC_REENTRANT GL ( dl_error_catch_tsd ) = & _dl_initial_error_catch_tsd ;\n # endif GL ( dl_init_static_tls ) = & _dl_nothread_init_static_tls ;\n # if defined SHARED && defined _LIBC_REENTRANT && defined __rtld_lock_default_lock_recursive GL ( dl_rtld_lock_recursive ) = rtld_lock_default_lock_recursive ;\n GL ( dl_rtld_unlock_recursive ) = rtld_lock_default_unlock_recursive ;\n # endif GL ( dl_make_stack_executable_hook ) = & _dl_make_stack_executable ;\n process_envvars ( & mode ) ;\n # ifndef HAVE_INLINED_SYSCALLS _dl_starting_up = 1 ;\n # endif if ( * user_entry == ( ElfW ( Addr ) ) ENTRY_POINT ) {\n rtld_is_main = true ;\n GL ( dl_rtld_map ) . l_name = rtld_progname ;\n while ( _dl_argc > 1 ) if ( ! strcmp ( _dl_argv [ 1 ] , \"--list\" ) ) {\n mode = list ;\n GLRO ( dl_lazy ) = - 1 ;\n ++ _dl_skip_args ;\n -- _dl_argc ;\n ++ _dl_argv ;\n }\n else if ( ! strcmp ( _dl_argv [ 1 ] , \"--verify\" ) ) {\n mode = verify ;\n ++ _dl_skip_args ;\n -- _dl_argc ;\n ++ _dl_argv ;\n }\n else if ( ! strcmp ( _dl_argv [ 1 ] , \"--inhibit-cache\" ) ) {\n GLRO ( dl_inhibit_cache ) = 1 ;\n ++ _dl_skip_args ;\n -- _dl_argc ;\n ++ _dl_argv ;\n }\n else if ( ! strcmp ( _dl_argv [ 1 ] , \"--library-path\" ) && _dl_argc > 2 ) {\n library_path = _dl_argv [ 2 ] ;\n _dl_skip_args += 2 ;\n _dl_argc -= 2 ;\n _dl_argv += 2 ;\n }\n else if ( ! strcmp ( _dl_argv [ 1 ] , \"--inhibit-rpath\" ) && _dl_argc > 2 ) {\n GLRO ( dl_inhibit_rpath ) = _dl_argv [ 2 ] ;\n _dl_skip_args += 2 ;\n _dl_argc -= 2 ;\n _dl_argv += 2 ;\n }\n else if ( ! strcmp ( _dl_argv [ 1 ] , \"--audit\" ) && _dl_argc > 2 ) {\n process_dl_audit ( _dl_argv [ 2 ] ) ;\n _dl_skip_args += 2 ;\n _dl_argc -= 2 ;\n _dl_argv += 2 ;\n }\n else break ;\n if ( _dl_argc < 2 ) _dl_fatal_printf ( \"\\ Usage: ld.so [OPTION]... EXECUTABLE-FILE [ARGS-FOR-PROGRAM...]\\n\\ You have invoked `ld.so', the helper program for shared library executables.\\n\\ This program usually lives in the file `/lib/ld.so', and special directives\\n\\ in executable files using ELF shared libraries tell the system's program\\n\\ loader to load the helper program from this file. This helper program loads\\n\\ the shared libraries needed by the program executable, prepares the program\\n\\ to run, and runs it. You may invoke this helper program directly from the\\n\\ command line to load and run an ELF executable file;\n this is like executing\\n\\ that file itself, but always uses this helper program from the file you\\n\\ specified, instead of the helper program file specified in the executable\\n\\ file you run. This is mostly of use for maintainers to test new versions\\n\\ of this helper program;\n chances are you did not intend to run this program.\\n\\ \\n\\ --list list all dependencies and how they are resolved\\n\\ --verify verify that given object really is a dynamically linked\\n\\ object we can handle\\n\\ --inhibit-cache Do not use \" LD_SO_CACHE \"\\n\\ --library-path PATH use given PATH instead of content of the environment\\n\\ variable LD_LIBRARY_PATH\\n\\ --inhibit-rpath LIST ignore RUNPATH and RPATH information in object names\\n\\ in LIST\\n\\ --audit LIST use objects named in LIST as auditors\\n\" ) ;\n ++ _dl_skip_args ;\n -- _dl_argc ;\n ++ _dl_argv ;\n for ( ph = phdr ;\n ph < & phdr [ phnum ] ;\n ++ ph ) if ( ph -> p_type == PT_GNU_STACK ) {\n GL ( dl_stack_flags ) = ph -> p_flags ;\n break ;\n }\n if ( __builtin_expect ( mode , normal ) == verify ) {\n const char * objname ;\n const char * err_str = NULL ;\n struct map_args args ;\n bool malloced ;\n args . str = rtld_progname ;\n args . loader = NULL ;\n args . mode = __RTLD_OPENEXEC ;\n ( void ) _dl_catch_error ( & objname , & err_str , & malloced , map_doit , & args ) ;\n if ( __glibc_unlikely ( err_str != NULL ) ) _exit ( EXIT_FAILURE ) ;\n }\n else {\n HP_TIMING_NOW ( start ) ;\n _dl_map_object ( NULL , rtld_progname , lt_executable , 0 , __RTLD_OPENEXEC , LM_ID_BASE ) ;\n HP_TIMING_NOW ( stop ) ;\n HP_TIMING_DIFF ( load_time , start , stop ) ;\n }\n main_map = GL ( dl_ns ) [ LM_ID_BASE ] . _ns_loaded ;\n if ( __builtin_expect ( mode , normal ) == normal && GL ( dl_rtld_map ) . l_info [ DT_SONAME ] != NULL && main_map -> l_info [ DT_SONAME ] != NULL && strcmp ( ( const char * ) D_PTR ( & GL ( dl_rtld_map ) , l_info [ DT_STRTAB ] ) + GL ( dl_rtld_map ) . l_info [ DT_SONAME ] -> d_un . d_val , ( const char * ) D_PTR ( main_map , l_info [ DT_STRTAB ] ) + main_map -> l_info [ DT_SONAME ] -> d_un . d_val ) == 0 ) _dl_fatal_printf ( \"loader cannot load itself\\n\" ) ;\n phdr = main_map -> l_phdr ;\n phnum = main_map -> l_phnum ;\n main_map -> l_name = ( char * ) \"\" ;\n * user_entry = main_map -> l_entry ;\n # ifdef HAVE_AUX_VECTOR for ( ElfW ( auxv_t ) * av = auxv ;\n av -> a_type != AT_NULL ;\n av ++ ) switch ( av -> a_type ) {\n case AT_PHDR : av -> a_un . a_val = ( uintptr_t ) phdr ;\n break ;\n case AT_PHNUM : av -> a_un . a_val = phnum ;\n break ;\n case AT_ENTRY : av -> a_un . a_val = * user_entry ;\n break ;\n case AT_EXECFN : av -> a_un . a_val = ( uintptr_t ) _dl_argv [ 0 ] ;\n break ;\n }\n # endif }\n else {\n main_map = _dl_new_object ( ( char * ) \"\" , \"\" , lt_executable , NULL , __RTLD_OPENEXEC , LM_ID_BASE ) ;\n assert ( main_map != NULL ) ;\n main_map -> l_phdr = phdr ;\n main_map -> l_phnum = phnum ;\n main_map -> l_entry = * user_entry ;\n _dl_add_to_namespace_list ( main_map , LM_ID_BASE ) ;\n assert ( main_map == GL ( dl_ns ) [ LM_ID_BASE ] . _ns_loaded ) ;\n }\n main_map -> l_map_end = 0 ;\n main_map -> l_text_end = 0 ;\n main_map -> l_map_start = ~ 0 ;\n ++ main_map -> l_direct_opencount ;\n for ( ph = phdr ;\n ph < & phdr [ phnum ] ;\n ++ ph ) switch ( ph -> p_type ) {\n case PT_PHDR : main_map -> l_addr = ( ElfW ( Addr ) ) phdr - ph -> p_vaddr ;\n break ;\n case PT_DYNAMIC : main_map -> l_ld = ( void * ) main_map -> l_addr + ph -> p_vaddr ;\n break ;\n case PT_INTERP : _dl_rtld_libname . name = ( ( const char * ) main_map -> l_addr + ph -> p_vaddr ) ;\n GL ( dl_rtld_map ) . l_libname = & _dl_rtld_libname ;\n if ( GL ( dl_rtld_map ) . l_ld == NULL ) {\n const char * p = NULL ;\n const char * cp = _dl_rtld_libname . name ;\n while ( * cp != '\\0' ) if ( * cp ++ == '/' ) p = cp ;\n if ( p != NULL ) {\n _dl_rtld_libname2 . name = p ;\n _dl_rtld_libname . next = & _dl_rtld_libname2 ;\n }\n }\n has_interp = true ;\n break ;\n case PT_LOAD : {\n ElfW ( Addr ) mapstart ;\n ElfW ( Addr ) allocend ;\n mapstart = ( main_map -> l_addr + ( ph -> p_vaddr & ~ ( GLRO ( dl_pagesize ) - 1 ) ) ) ;\n if ( main_map -> l_map_start > mapstart ) main_map -> l_map_start = mapstart ;\n allocend = main_map -> l_addr + ph -> p_vaddr + ph -> p_memsz ;\n if ( main_map -> l_map_end < allocend ) main_map -> l_map_end = allocend ;\n if ( ( ph -> p_flags & PF_X ) && allocend > main_map -> l_text_end ) main_map -> l_text_end = allocend ;\n }\n break ;\n case PT_TLS : if ( ph -> p_memsz > 0 ) {\n main_map -> l_tls_blocksize = ph -> p_memsz ;\n main_map -> l_tls_align = ph -> p_align ;\n if ( ph -> p_align == 0 ) main_map -> l_tls_firstbyte_offset = 0 ;\n else main_map -> l_tls_firstbyte_offset = ( ph -> p_vaddr & ( ph -> p_align - 1 ) ) ;\n main_map -> l_tls_initimage_size = ph -> p_filesz ;\n main_map -> l_tls_initimage = ( void * ) ph -> p_vaddr ;\n GL ( dl_tls_max_dtv_idx ) = main_map -> l_tls_modid = 1 ;\n }\n break ;\n case PT_GNU_STACK : GL ( dl_stack_flags ) = ph -> p_flags ;\n break ;\n case PT_GNU_RELRO : main_map -> l_relro_addr = ph -> p_vaddr ;\n main_map -> l_relro_size = ph -> p_memsz ;\n break ;\n }\n if ( main_map -> l_tls_initimage != NULL ) main_map -> l_tls_initimage = ( char * ) main_map -> l_tls_initimage + main_map -> l_addr ;\n if ( ! main_map -> l_map_end ) main_map -> l_map_end = ~ 0 ;\n if ( ! main_map -> l_text_end ) main_map -> l_text_end = ~ 0 ;\n if ( ! GL ( dl_rtld_map ) . l_libname && GL ( dl_rtld_map ) . l_name ) {\n _dl_rtld_libname . name = GL ( dl_rtld_map ) . l_name ;\n GL ( dl_rtld_map ) . l_libname = & _dl_rtld_libname ;\n }\n else assert ( GL ( dl_rtld_map ) . l_libname ) ;\n if ( GL ( dl_rtld_map ) . l_info [ DT_SONAME ] != NULL && strcmp ( GL ( dl_rtld_map ) . l_libname -> name , ( const char * ) D_PTR ( & GL ( dl_rtld_map ) , l_info [ DT_STRTAB ] ) + GL ( dl_rtld_map ) . l_info [ DT_SONAME ] -> d_un . d_val ) != 0 ) {\n static struct libname_list newname ;\n newname . name = ( ( char * ) D_PTR ( & GL ( dl_rtld_map ) , l_info [ DT_STRTAB ] ) + GL ( dl_rtld_map ) . l_info [ DT_SONAME ] -> d_un . d_ptr ) ;\n newname . next = NULL ;\n newname . dont_free = 1 ;\n assert ( GL ( dl_rtld_map ) . l_libname -> next == NULL ) ;\n GL ( dl_rtld_map ) . l_libname -> next = & newname ;\n }\n assert ( GL ( dl_rtld_map ) . l_relocated ) ;\n if ( ! rtld_is_main ) {\n elf_get_dynamic_info ( main_map , NULL ) ;\n _dl_setup_hash ( main_map ) ;\n }\n if ( __builtin_expect ( mode , normal ) == verify ) {\n if ( main_map -> l_ld == NULL ) _exit ( 1 ) ;\n # ifdef DISTINGUISH_LIB_VERSIONS DISTINGUISH_LIB_VERSIONS ;\n # endif _exit ( has_interp ? 0 : 2 ) ;\n }\n struct link_map * * first_preload = & GL ( dl_rtld_map ) . l_next ;\n setup_vdso ( main_map , & first_preload ) ;\n # ifdef DL_SYSDEP_OSCHECK DL_SYSDEP_OSCHECK ( _dl_fatal_printf ) ;\n # endif _dl_init_paths ( library_path ) ;\n struct r_debug * r = _dl_debug_initialize ( GL ( dl_rtld_map ) . l_addr , LM_ID_BASE ) ;\n r -> r_state = RT_CONSISTENT ;\n if ( ! GL ( dl_rtld_map ) . l_name ) GL ( dl_rtld_map ) . l_name = ( char * ) GL ( dl_rtld_map ) . l_libname -> name ;\n GL ( dl_rtld_map ) . l_type = lt_library ;\n main_map -> l_next = & GL ( dl_rtld_map ) ;\n GL ( dl_rtld_map ) . l_prev = main_map ;\n ++ GL ( dl_ns ) [ LM_ID_BASE ] . _ns_nloaded ;\n ++ GL ( dl_load_adds ) ;\n if ( GLRO ( dl_use_load_bias ) == ( ElfW ( Addr ) ) - 2 ) GLRO ( dl_use_load_bias ) = main_map -> l_addr == 0 ? - 1 : 0 ;\n const ElfW ( Ehdr ) * rtld_ehdr ;\n # ifdef HAVE_EHDR_START extern const ElfW ( Ehdr ) __ehdr_start __attribute__ ( ( visibility ( \"hidden\" ) ) ) ;\n rtld_ehdr = & __ehdr_start ;\n # else rtld_ehdr = ( void * ) GL ( dl_rtld_map ) . l_map_start ;\n # endif assert ( rtld_ehdr -> e_ehsize == sizeof * rtld_ehdr ) ;\n assert ( rtld_ehdr -> e_phentsize == sizeof ( ElfW ( Phdr ) ) ) ;\n const ElfW ( Phdr ) * rtld_phdr = ( const void * ) rtld_ehdr + rtld_ehdr -> e_phoff ;\n GL ( dl_rtld_map ) . l_phdr = rtld_phdr ;\n GL ( dl_rtld_map ) . l_phnum = rtld_ehdr -> e_phnum ;\n size_t cnt = rtld_ehdr -> e_phnum ;\n while ( cnt -- > 0 ) if ( rtld_phdr [ cnt ] . p_type == PT_GNU_RELRO ) {\n GL ( dl_rtld_map ) . l_relro_addr = rtld_phdr [ cnt ] . p_vaddr ;\n GL ( dl_rtld_map ) . l_relro_size = rtld_phdr [ cnt ] . p_memsz ;\n break ;\n }\n if ( GL ( dl_rtld_map ) . l_tls_blocksize != 0 ) GL ( dl_rtld_map ) . l_tls_modid = _dl_next_tls_modid ( ) ;\n if ( __glibc_unlikely ( audit_list != NULL ) ) {\n struct audit_ifaces * last_audit = NULL ;\n struct audit_list * al = audit_list -> next ;\n tcbp = init_tls ( ) ;\n security_init ( ) ;\n do {\n int tls_idx = GL ( dl_tls_max_dtv_idx ) ;\n struct dlmopen_args dlmargs ;\n dlmargs . fname = al -> name ;\n dlmargs . map = NULL ;\n const char * objname ;\n const char * err_str = NULL ;\n bool malloced ;\n ( void ) _dl_catch_error ( & objname , & err_str , & malloced , dlmopen_doit , & dlmargs ) ;\n if ( __glibc_unlikely ( err_str != NULL ) ) {\n not_loaded : _dl_error_printf ( \"\\ ERROR: ld.so: object '%s' cannot be loaded as audit interface: %s;\n ignored.\\n\" , al -> name , err_str ) ;\n if ( malloced ) free ( ( char * ) err_str ) ;\n }\n else {\n struct lookup_args largs ;\n largs . name = \"la_version\" ;\n largs . map = dlmargs . map ;\n ( void ) _dl_catch_error ( & objname , & err_str , & malloced , lookup_doit , & largs ) ;\n unsigned int ( * laversion ) ( unsigned int ) ;\n unsigned int lav ;\n if ( err_str == NULL && ( laversion = largs . result ) != NULL && ( lav = laversion ( LAV_CURRENT ) ) > 0 && lav <= LAV_CURRENT ) {\n union {\n struct audit_ifaces ifaces ;\n # define naudit_ifaces 8 void ( * fptr [ naudit_ifaces ] ) ( void ) ;\n }\n * newp = malloc ( sizeof ( * newp ) ) ;\n static const char audit_iface_names [ ] = \"la_activity\\0\" \"la_objsearch\\0\" \"la_objopen\\0\" \"la_preinit\\0\" # if __ELF_NATIVE_CLASS == 32 \"la_symbind32\\0\" # elif __ELF_NATIVE_CLASS == 64 \"la_symbind64\\0\" # else # error \"__ELF_NATIVE_CLASS must be defined\" # endif # define STRING ( s ) __STRING ( s ) \"la_\" STRING ( ARCH_LA_PLTENTER ) \"\\0\" \"la_\" STRING ( ARCH_LA_PLTEXIT ) \"\\0\" \"la_objclose\\0\" ;\n unsigned int cnt = 0 ;\n const char * cp = audit_iface_names ;\n do {\n largs . name = cp ;\n ( void ) _dl_catch_error ( & objname , & err_str , & malloced , lookup_doit , & largs ) ;\n if ( err_str == NULL && largs . result != NULL ) {\n newp -> fptr [ cnt ] = largs . result ;\n GL ( dl_rtld_map ) . l_audit [ cnt ] . cookie = ( intptr_t ) & GL ( dl_rtld_map ) ;\n }\n else newp -> fptr [ cnt ] = NULL ;\n ++ cnt ;\n cp = ( char * ) rawmemchr ( cp , '\\0' ) + 1 ;\n }\n while ( * cp != '\\0' ) ;\n assert ( cnt == naudit_ifaces ) ;\n newp -> ifaces . next = NULL ;\n if ( last_audit == NULL ) last_audit = GLRO ( dl_audit ) = & newp -> ifaces ;\n else last_audit = last_audit -> next = & newp -> ifaces ;\n ++ GLRO ( dl_naudit ) ;\n dlmargs . map -> l_auditing = 1 ;\n }\n else {\n # ifndef NDEBUG Lmid_t ns = dlmargs . map -> l_ns ;\n # endif _dl_close ( dlmargs . map ) ;\n assert ( GL ( dl_ns ) [ ns ] . _ns_loaded == NULL ) ;\n assert ( GL ( dl_ns ) [ ns ] . _ns_nloaded == 0 ) ;\n GL ( dl_tls_max_dtv_idx ) = tls_idx ;\n goto not_loaded ;\n }\n }\n al = al -> next ;\n }\n while ( al != audit_list -> next ) ;\n if ( __glibc_unlikely ( GLRO ( dl_naudit ) > 0 ) ) {\n struct link_map * ls [ 2 ] = {\n main_map , & GL ( dl_rtld_map ) }\n ;\n for ( unsigned int outer = 0 ;\n outer < 2 ;\n ++ outer ) {\n struct audit_ifaces * afct = GLRO ( dl_audit ) ;\n for ( unsigned int cnt = 0 ;\n cnt < GLRO ( dl_naudit ) ;\n ++ cnt ) {\n if ( afct -> objopen != NULL ) {\n ls [ outer ] -> l_audit [ cnt ] . bindflags = afct -> objopen ( ls [ outer ] , LM_ID_BASE , & ls [ outer ] -> l_audit [ cnt ] . cookie ) ;\n ls [ outer ] -> l_audit_any_plt |= ls [ outer ] -> l_audit [ cnt ] . bindflags != 0 ;\n }\n afct = afct -> next ;\n }\n }\n }\n }\n size_t count_modids = _dl_count_modids ( ) ;\n # ifdef ELF_MACHINE_DEBUG_SETUP ELF_MACHINE_DEBUG_SETUP ( main_map , r ) ;\n ELF_MACHINE_DEBUG_SETUP ( & GL ( dl_rtld_map ) , r ) ;\n # else if ( main_map -> l_info [ DT_DEBUG ] != NULL ) main_map -> l_info [ DT_DEBUG ] -> d_un . d_ptr = ( ElfW ( Addr ) ) r ;\n if ( GL ( dl_rtld_map ) . l_info [ DT_DEBUG ] != NULL ) GL ( dl_rtld_map ) . l_info [ DT_DEBUG ] -> d_un . d_ptr = ( ElfW ( Addr ) ) r ;\n # endif r -> r_state = RT_ADD ;\n _dl_debug_state ( ) ;\n LIBC_PROBE ( init_start , 2 , LM_ID_BASE , r ) ;\n if ( __glibc_unlikely ( GLRO ( dl_naudit ) > 0 ) ) {\n struct audit_ifaces * afct = GLRO ( dl_audit ) ;\n for ( unsigned int cnt = 0 ;\n cnt < GLRO ( dl_naudit ) ;\n ++ cnt ) {\n if ( afct -> activity != NULL ) afct -> activity ( & main_map -> l_audit [ cnt ] . cookie , LA_ACT_ADD ) ;\n afct = afct -> next ;\n }\n }\n assert ( * first_preload == NULL ) ;\n struct link_map * * preloads = NULL ;\n unsigned int npreloads = 0 ;\n if ( __glibc_unlikely ( preloadlist != NULL ) ) {\n char * list = strdupa ( preloadlist ) ;\n char * p ;\n HP_TIMING_NOW ( start ) ;\n while ( ( p = ( strsep ) ( & list , \" :\" ) ) != NULL ) if ( p [ 0 ] != '\\0' && ( __builtin_expect ( ! __libc_enable_secure , 1 ) || strchr ( p , '/' ) == NULL ) ) npreloads += do_preload ( p , main_map , \"LD_PRELOAD\" ) ;\n HP_TIMING_NOW ( stop ) ;\n HP_TIMING_DIFF ( diff , start , stop ) ;\n HP_TIMING_ACCUM_NT ( load_time , diff ) ;\n }\n static const char preload_file [ ] = \"/etc/ld.so.preload\" ;\n if ( __glibc_unlikely ( __access ( preload_file , R_OK ) == 0 ) ) {\n file = _dl_sysdep_read_whole_file ( preload_file , & file_size , PROT_READ | PROT_WRITE ) ;\n if ( __glibc_unlikely ( file != MAP_FAILED ) ) {\n char * problem ;\n char * runp ;\n size_t rest ;\n runp = file ;\n rest = file_size ;\n while ( rest > 0 ) {\n char * comment = memchr ( runp , '#' , rest ) ;\n if ( comment == NULL ) break ;\n rest -= comment - runp ;\n do * comment = ' ' ;\n while ( -- rest > 0 && * ++ comment != '\\n' ) ;\n }\n if ( file [ file_size - 1 ] != ' ' && file [ file_size - 1 ] != '\\t' && file [ file_size - 1 ] != '\\n' && file [ file_size - 1 ] != ':' ) {\n problem = & file [ file_size ] ;\n while ( problem > file && problem [ - 1 ] != ' ' && problem [ - 1 ] != '\\t' && problem [ - 1 ] != '\\n' && problem [ - 1 ] != ':' ) -- problem ;\n if ( problem > file ) problem [ - 1 ] = '\\0' ;\n }\n else {\n problem = NULL ;\n file [ file_size - 1 ] = '\\0' ;\n }\n HP_TIMING_NOW ( start ) ;\n if ( file != problem ) {\n char * p ;\n runp = file ;\n while ( ( p = strsep ( & runp , \": \\t\\n\" ) ) != NULL ) if ( p [ 0 ] != '\\0' ) npreloads += do_preload ( p , main_map , preload_file ) ;\n }\n if ( problem != NULL ) {\n char * p = strndupa ( problem , file_size - ( problem - file ) ) ;\n npreloads += do_preload ( p , main_map , preload_file ) ;\n }\n HP_TIMING_NOW ( stop ) ;\n HP_TIMING_DIFF ( diff , start , stop ) ;\n HP_TIMING_ACCUM_NT ( load_time , diff ) ;\n __munmap ( file , file_size ) ;\n }\n }\n if ( __glibc_unlikely ( * first_preload != NULL ) ) {\n struct link_map * l = * first_preload ;\n preloads = __alloca ( npreloads * sizeof preloads [ 0 ] ) ;\n i = 0 ;\n do {\n preloads [ i ++ ] = l ;\n l = l -> l_next ;\n }\n while ( l ) ;\n assert ( i == npreloads ) ;\n }\n HP_TIMING_NOW ( start ) ;\n _dl_map_object_deps ( main_map , preloads , npreloads , mode == trace , 0 ) ;\n HP_TIMING_NOW ( stop ) ;\n HP_TIMING_DIFF ( diff , start , stop ) ;\n HP_TIMING_ACCUM_NT ( load_time , diff ) ;\n for ( i = main_map -> l_searchlist . r_nlist ;\n i > 0 ;\n ) main_map -> l_searchlist . r_list [ -- i ] -> l_global = 1 ;\n GL ( dl_rtld_map ) . l_prev -> l_next = GL ( dl_rtld_map ) . l_next ;\n if ( GL ( dl_rtld_map ) . l_next != NULL ) GL ( dl_rtld_map ) . l_next -> l_prev = GL ( dl_rtld_map ) . l_prev ;\n for ( i = 1 ;\n i < main_map -> l_searchlist . r_nlist ;\n ++ i ) if ( main_map -> l_searchlist . r_list [ i ] == & GL ( dl_rtld_map ) ) break ;\n bool rtld_multiple_ref = false ;\n if ( __glibc_likely ( i < main_map -> l_searchlist . r_nlist ) ) {\n rtld_multiple_ref = true ;\n GL ( dl_rtld_map ) . l_prev = main_map -> l_searchlist . r_list [ i - 1 ] ;\n if ( __builtin_expect ( mode , normal ) == normal ) {\n GL ( dl_rtld_map ) . l_next = ( i + 1 < main_map -> l_searchlist . r_nlist ? main_map -> l_searchlist . r_list [ i + 1 ] : NULL ) ;\n # ifdef NEED_DL_SYSINFO_DSO if ( GLRO ( dl_sysinfo_map ) != NULL && GL ( dl_rtld_map ) . l_prev -> l_next == GLRO ( dl_sysinfo_map ) && GL ( dl_rtld_map ) . l_next != GLRO ( dl_sysinfo_map ) ) GL ( dl_rtld_map ) . l_prev = GLRO ( dl_sysinfo_map ) ;\n # endif }\n else GL ( dl_rtld_map ) . l_next = GL ( dl_rtld_map ) . l_prev -> l_next ;\n assert ( GL ( dl_rtld_map ) . l_prev -> l_next == GL ( dl_rtld_map ) . l_next ) ;\n GL ( dl_rtld_map ) . l_prev -> l_next = & GL ( dl_rtld_map ) ;\n if ( GL ( dl_rtld_map ) . l_next != NULL ) {\n assert ( GL ( dl_rtld_map ) . l_next -> l_prev == GL ( dl_rtld_map ) . l_prev ) ;\n GL ( dl_rtld_map ) . l_next -> l_prev = & GL ( dl_rtld_map ) ;\n }\n }\n {\n struct version_check_args args ;\n args . doexit = mode == normal ;\n args . dotrace = mode == trace ;\n _dl_receive_error ( print_missing_version , version_check_doit , & args ) ;\n }\n bool was_tls_init_tp_called = tls_init_tp_called ;\n if ( tcbp == NULL ) tcbp = init_tls ( ) ;\n if ( __glibc_likely ( audit_list == NULL ) ) security_init ( ) ;\n if ( __builtin_expect ( mode , normal ) != normal ) {\n struct link_map * l ;\n if ( GLRO ( dl_debug_mask ) & DL_DEBUG_PRELINK ) {\n struct r_scope_elem * scope = & main_map -> l_searchlist ;\n for ( i = 0 ;\n i < scope -> r_nlist ;\n i ++ ) {\n l = scope -> r_list [ i ] ;\n if ( l -> l_faked ) {\n _dl_printf ( \"\\t%s => not found\\n\" , l -> l_libname -> name ) ;\n continue ;\n }\n if ( _dl_name_match_p ( GLRO ( dl_trace_prelink ) , l ) ) GLRO ( dl_trace_prelink_map ) = l ;\n _dl_printf ( \"\\t%s => %s (0x%0*Zx, 0x%0*Zx)\" , DSO_FILENAME ( l -> l_libname -> name ) , DSO_FILENAME ( l -> l_name ) , ( int ) sizeof l -> l_map_start * 2 , ( size_t ) l -> l_map_start , ( int ) sizeof l -> l_addr * 2 , ( size_t ) l -> l_addr ) ;\n if ( l -> l_tls_modid ) _dl_printf ( \" TLS(0x%Zx, 0x%0*Zx)\\n\" , l -> l_tls_modid , ( int ) sizeof l -> l_tls_offset * 2 , ( size_t ) l -> l_tls_offset ) ;\n else _dl_printf ( \"\\n\" ) ;\n }\n }\n else if ( GLRO ( dl_debug_mask ) & DL_DEBUG_UNUSED ) {\n struct link_map * l = main_map ;\n struct relocate_args args = {\n . l = l , . reloc_mode = ( ( GLRO ( dl_lazy ) ? RTLD_LAZY : 0 ) | __RTLD_NOIFUNC ) }\n ;\n _dl_receive_error ( print_unresolved , relocate_doit , & args ) ;\n ElfW ( Dyn ) * dyn = main_map -> l_ld ;\n bool first = true ;\n while ( dyn -> d_tag != DT_NULL ) {\n if ( dyn -> d_tag == DT_NEEDED ) {\n l = l -> l_next ;\n # ifdef NEED_DL_SYSINFO_DSO if ( l == GLRO ( dl_sysinfo_map ) ) l = l -> l_next ;\n # endif if ( ! l -> l_used ) {\n if ( first ) {\n _dl_printf ( \"Unused direct dependencies:\\n\" ) ;\n first = false ;\n }\n _dl_printf ( \"\\t%s\\n\" , l -> l_name ) ;\n }\n }\n ++ dyn ;\n }\n _exit ( first != true ) ;\n }\n else if ( ! main_map -> l_info [ DT_NEEDED ] ) _dl_printf ( \"\\tstatically linked\\n\" ) ;\n else {\n for ( l = main_map -> l_next ;\n l ;\n l = l -> l_next ) if ( l -> l_faked ) _dl_printf ( \"\\t%s => not found\\n\" , l -> l_libname -> name ) ;\n else if ( strcmp ( l -> l_libname -> name , l -> l_name ) == 0 ) _dl_printf ( \"\\t%s (0x%0*Zx)\\n\" , l -> l_libname -> name , ( int ) sizeof l -> l_map_start * 2 , ( size_t ) l -> l_map_start ) ;\n else _dl_printf ( \"\\t%s => %s (0x%0*Zx)\\n\" , l -> l_libname -> name , l -> l_name , ( int ) sizeof l -> l_map_start * 2 , ( size_t ) l -> l_map_start ) ;\n }\n if ( __builtin_expect ( mode , trace ) != trace ) for ( i = 1 ;\n i < ( unsigned int ) _dl_argc ;\n ++ i ) {\n const ElfW ( Sym ) * ref = NULL ;\n ElfW ( Addr ) loadbase ;\n lookup_t result ;\n result = _dl_lookup_symbol_x ( _dl_argv [ i ] , main_map , & ref , main_map -> l_scope , NULL , ELF_RTYPE_CLASS_PLT , DL_LOOKUP_ADD_DEPENDENCY , NULL ) ;\n loadbase = LOOKUP_VALUE_ADDRESS ( result ) ;\n _dl_printf ( \"%s found at 0x%0*Zd in object at 0x%0*Zd\\n\" , _dl_argv [ i ] , ( int ) sizeof ref -> st_value * 2 , ( size_t ) ref -> st_value , ( int ) sizeof loadbase * 2 , ( size_t ) loadbase ) ;\n }\n else {\n if ( GLRO ( dl_lazy ) >= 0 && GLRO ( dl_verbose ) ) {\n struct relocate_args args ;\n unsigned int i ;\n args . reloc_mode = ( ( GLRO ( dl_lazy ) ? RTLD_LAZY : 0 ) | __RTLD_NOIFUNC ) ;\n i = main_map -> l_searchlist . r_nlist ;\n while ( i -- > 0 ) {\n struct link_map * l = main_map -> l_initfini [ i ] ;\n if ( l != & GL ( dl_rtld_map ) && ! l -> l_faked ) {\n args . l = l ;\n _dl_receive_error ( print_unresolved , relocate_doit , & args ) ;\n }\n }\n if ( ( GLRO ( dl_debug_mask ) & DL_DEBUG_PRELINK ) && rtld_multiple_ref ) {\n GL ( dl_rtld_map ) . l_relocated = 0 ;\n _dl_relocate_object ( & GL ( dl_rtld_map ) , main_map -> l_scope , __RTLD_NOIFUNC , 0 ) ;\n }\n }\n # define VERNEEDTAG ( DT_NUM + DT_THISPROCNUM + DT_VERSIONTAGIDX ( DT_VERNEED ) ) if ( version_info ) {\n int first = 1 ;\n struct link_map * map ;\n for ( map = main_map ;\n map != NULL ;\n map = map -> l_next ) {\n const char * strtab ;\n ElfW ( Dyn ) * dyn = map -> l_info [ VERNEEDTAG ] ;\n ElfW ( Verneed ) * ent ;\n if ( dyn == NULL ) continue ;\n strtab = ( const void * ) D_PTR ( map , l_info [ DT_STRTAB ] ) ;\n ent = ( ElfW ( Verneed ) * ) ( map -> l_addr + dyn -> d_un . d_ptr ) ;\n if ( first ) {\n _dl_printf ( \"\\n\\tVersion information:\\n\" ) ;\n first = 0 ;\n }\n _dl_printf ( \"\\t%s:\\n\" , DSO_FILENAME ( map -> l_name ) ) ;\n while ( 1 ) {\n ElfW ( Vernaux ) * aux ;\n struct link_map * needed ;\n needed = find_needed ( strtab + ent -> vn_file ) ;\n aux = ( ElfW ( Vernaux ) * ) ( ( char * ) ent + ent -> vn_aux ) ;\n while ( 1 ) {\n const char * fname = NULL ;\n if ( needed != NULL && match_version ( strtab + aux -> vna_name , needed ) ) fname = needed -> l_name ;\n _dl_printf ( \"\\t\\t%s (%s) %s=> %s\\n\" , strtab + ent -> vn_file , strtab + aux -> vna_name , aux -> vna_flags & VER_FLG_WEAK ? \"[WEAK] \" : \"\" , fname ? : \"not found\" ) ;\n if ( aux -> vna_next == 0 ) break ;\n aux = ( ElfW ( Vernaux ) * ) ( ( char * ) aux + aux -> vna_next ) ;\n }\n if ( ent -> vn_next == 0 ) break ;\n ent = ( ElfW ( Verneed ) * ) ( ( char * ) ent + ent -> vn_next ) ;\n }\n }\n }\n }\n _exit ( 0 ) ;\n }\n if ( main_map -> l_info [ ADDRIDX ( DT_GNU_LIBLIST ) ] && ! __builtin_expect ( GLRO ( dl_profile ) != NULL , 0 ) && ! __builtin_expect ( GLRO ( dl_dynamic_weak ) , 0 ) ) {\n ElfW ( Lib ) * liblist , * liblistend ;\n struct link_map * * r_list , * * r_listend , * l ;\n const char * strtab = ( const void * ) D_PTR ( main_map , l_info [ DT_STRTAB ] ) ;\n assert ( main_map -> l_info [ VALIDX ( DT_GNU_LIBLISTSZ ) ] != NULL ) ;\n liblist = ( ElfW ( Lib ) * ) main_map -> l_info [ ADDRIDX ( DT_GNU_LIBLIST ) ] -> d_un . d_ptr ;\n liblistend = ( ElfW ( Lib ) * ) ( ( char * ) liblist + main_map -> l_info [ VALIDX ( DT_GNU_LIBLISTSZ ) ] -> d_un . d_val ) ;\n r_list = main_map -> l_searchlist . r_list ;\n r_listend = r_list + main_map -> l_searchlist . r_nlist ;\n for ( ;\n r_list < r_listend && liblist < liblistend ;\n r_list ++ ) {\n l = * r_list ;\n if ( l == main_map ) continue ;\n if ( l -> l_addr ) break ;\n if ( l -> l_info [ VALIDX ( DT_CHECKSUM ) ] == NULL || l -> l_info [ VALIDX ( DT_CHECKSUM ) ] -> d_un . d_val != liblist -> l_checksum ) break ;\n if ( l -> l_info [ VALIDX ( DT_GNU_PRELINKED ) ] == NULL || l -> l_info [ VALIDX ( DT_GNU_PRELINKED ) ] -> d_un . d_val != liblist -> l_time_stamp ) break ;\n if ( ! _dl_name_match_p ( strtab + liblist -> l_name , l ) ) break ;\n ++ liblist ;\n }\n if ( r_list == r_listend && liblist == liblistend ) prelinked = true ;\n if ( __glibc_unlikely ( GLRO ( dl_debug_mask ) & DL_DEBUG_LIBS ) ) _dl_debug_printf ( \"\\nprelink checking: %s\\n\" , prelinked ? \"ok\" : \"failed\" ) ;\n }\n GL ( dl_ns ) [ LM_ID_BASE ] . _ns_main_searchlist = & main_map -> l_searchlist ;\n GLRO ( dl_initial_searchlist ) = * GL ( dl_ns ) [ LM_ID_BASE ] . _ns_main_searchlist ;\n GLRO ( dl_init_all_dirs ) = GL ( dl_all_dirs ) ;\n if ( __glibc_unlikely ( GLRO ( dl_debug_mask ) & DL_DEBUG_SCOPES ) ) {\n _dl_debug_printf ( \"\\nInitial object scopes\\n\" ) ;\n for ( struct link_map * l = main_map ;\n l != NULL ;\n l = l -> l_next ) _dl_show_scope ( l , 0 ) ;\n }\n if ( prelinked ) {\n if ( main_map -> l_info [ ADDRIDX ( DT_GNU_CONFLICT ) ] != NULL ) {\n ElfW ( Rela ) * conflict , * conflictend ;\n # ifndef HP_TIMING_NONAVAIL hp_timing_t start ;\n hp_timing_t stop ;\n # endif HP_TIMING_NOW ( start ) ;\n assert ( main_map -> l_info [ VALIDX ( DT_GNU_CONFLICTSZ ) ] != NULL ) ;\n conflict = ( ElfW ( Rela ) * ) main_map -> l_info [ ADDRIDX ( DT_GNU_CONFLICT ) ] -> d_un . d_ptr ;\n conflictend = ( ElfW ( Rela ) * ) ( ( char * ) conflict + main_map -> l_info [ VALIDX ( DT_GNU_CONFLICTSZ ) ] -> d_un . d_val ) ;\n _dl_resolve_conflicts ( main_map , conflict , conflictend ) ;\n HP_TIMING_NOW ( stop ) ;\n HP_TIMING_DIFF ( relocate_time , start , stop ) ;\n }\n for ( struct link_map * l = main_map ;\n l != NULL ;\n l = l -> l_next ) {\n l -> l_relocated = 1 ;\n if ( l -> l_relro_size ) _dl_protect_relro ( l ) ;\n if ( l -> l_tls_blocksize != 0 && tls_init_tp_called ) _dl_add_to_slotinfo ( l ) ;\n }\n }\n else {\n int consider_profiling = GLRO ( dl_profile ) != NULL ;\n # ifndef HP_TIMING_NONAVAIL hp_timing_t start ;\n hp_timing_t stop ;\n # endif GLRO ( dl_lazy ) |= consider_profiling ;\n HP_TIMING_NOW ( start ) ;\n unsigned i = main_map -> l_searchlist . r_nlist ;\n while ( i -- > 0 ) {\n struct link_map * l = main_map -> l_initfini [ i ] ;\n struct libname_list * lnp = l -> l_libname -> next ;\n while ( __builtin_expect ( lnp != NULL , 0 ) ) {\n lnp -> dont_free = 1 ;\n lnp = lnp -> next ;\n }\n l -> l_free_initfini = 0 ;\n if ( l != & GL ( dl_rtld_map ) ) _dl_relocate_object ( l , l -> l_scope , GLRO ( dl_lazy ) ? RTLD_LAZY : 0 , consider_profiling ) ;\n if ( l -> l_tls_blocksize != 0 && tls_init_tp_called ) _dl_add_to_slotinfo ( l ) ;\n }\n HP_TIMING_NOW ( stop ) ;\n HP_TIMING_DIFF ( relocate_time , start , stop ) ;\n if ( __glibc_unlikely ( GL ( dl_profile_map ) != NULL ) ) _dl_start_profile ( ) ;\n }\n if ( ( ! was_tls_init_tp_called && GL ( dl_tls_max_dtv_idx ) > 0 ) || count_modids != _dl_count_modids ( ) ) ++ GL ( dl_tls_generation ) ;\n _dl_allocate_tls_init ( tcbp ) ;\n if ( ! tls_init_tp_called ) {\n const char * lossage = TLS_INIT_TP ( tcbp ) ;\n if ( __glibc_unlikely ( lossage != NULL ) ) _dl_fatal_printf ( \"cannot set up thread-local storage: %s\\n\" , lossage ) ;\n }\n assert ( GLRO ( dl_init_all_dirs ) == GL ( dl_all_dirs ) ) ;\n if ( ! prelinked && rtld_multiple_ref ) {\n # ifndef HP_TIMING_NONAVAIL hp_timing_t start ;\n hp_timing_t stop ;\n hp_timing_t add ;\n # endif HP_TIMING_NOW ( start ) ;\n GL ( dl_rtld_map ) . l_relocated = 0 ;\n _dl_relocate_object ( & GL ( dl_rtld_map ) , main_map -> l_scope , 0 , 0 ) ;\n HP_TIMING_NOW ( stop ) ;\n HP_TIMING_DIFF ( add , start , stop ) ;\n HP_TIMING_ACCUM_NT ( relocate_time , add ) ;\n }\n _dl_sysdep_start_cleanup ( ) ;\n # ifdef SHARED if ( __glibc_unlikely ( GLRO ( dl_naudit ) > 0 ) ) {\n struct link_map * head = GL ( dl_ns ) [ LM_ID_BASE ] . _ns_loaded ;\n if ( head -> l_auditing == 0 ) {\n struct audit_ifaces * afct = GLRO ( dl_audit ) ;\n for ( unsigned int cnt = 0 ;\n cnt < GLRO ( dl_naudit ) ;\n ++ cnt ) {\n if ( afct -> activity != NULL ) afct -> activity ( & head -> l_audit [ cnt ] . cookie , LA_ACT_CONSISTENT ) ;\n afct = afct -> next ;\n }\n }\n }\n # endif r = _dl_debug_initialize ( 0 , LM_ID_BASE ) ;\n r -> r_state = RT_CONSISTENT ;\n _dl_debug_state ( ) ;\n LIBC_PROBE ( init_complete , 2 , LM_ID_BASE , r ) ;\n # if defined USE_LDCONFIG && ! defined MAP_COPY _dl_unload_cache ( ) ;\n # endif }"}
{"idx": 13705, "target": 1, "func": "int evbuffer_expand ( struct evbuffer * buf , size_t datlen ) {\n size_t need = buf -> misalign + buf -> off + datlen ;\n if ( buf -> totallen >= need ) return ( 0 ) ;\n if ( buf -> misalign >= datlen ) {\n evbuffer_align ( buf ) ;\n }\n else {\n void * newbuf ;\n size_t length = buf -> totallen ;\n if ( length < 256 ) length = 256 ;\n while ( length < need ) length <<= 1 ;\n if ( buf -> orig_buffer != buf -> buffer ) evbuffer_align ( buf ) ;\n if ( ( newbuf = realloc ( buf -> buffer , length ) ) == NULL ) return ( - 1 ) ;\n buf -> orig_buffer = buf -> buffer = newbuf ;\n buf -> totallen = length ;\n }\n return ( 0 ) ;\n }"}
{"idx": 13706, "target": 0, "func": "static void test_select_version ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n myheader ( \"test_select_version\" ) ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT @@version\" ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 0 ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n my_process_stmt_result ( stmt ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 13707, "target": 0, "func": "static void nb_call_name_type ( tvbuff_t * tvb , int offset , proto_tree * tree ) {\n proto_tree_add_item ( tree , hf_netb_call_name_type , tvb , offset + NB_CALL_NAME_TYPE , 1 , ENC_LITTLE_ENDIAN ) ;\n }"}
{"idx": 13708, "target": 0, "func": "decoder_t * input_DecoderNew ( input_thread_t * p_input , es_format_t * fmt , input_clock_t * p_clock , sout_instance_t * p_sout ) {\n return decoder_New ( VLC_OBJECT ( p_input ) , p_input , fmt , p_clock , p_input -> p -> p_resource , p_sout ) ;\n }"}
{"idx": 13709, "target": 0, "func": "afs_int32 getHostCPS ( struct rx_call * call , afs_uint32 ahost , prlist * alist , afs_int32 * over ) {\n afs_int32 code , temp ;\n struct ubik_trans * tt ;\n struct prentry host_tentry ;\n afs_int32 hostid ;\n struct in_addr iaddr ;\n char hoststr [ 16 ] ;\n * over = 0 ;\n iaddr . s_addr = ntohl ( ahost ) ;\n alist -> prlist_len = 0 ;\n alist -> prlist_val = NULL ;\n code = Initdb ( ) ;\n if ( code != PRSUCCESS ) return code ;\n code = ubik_BeginTransReadAny ( dbase , UBIK_READTRANS , & tt ) ;\n if ( code ) return code ;\n code = ubik_SetLock ( tt , 1 , 1 , LOCKREAD ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = read_DbHeader ( tt ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = NameToID ( tt , afs_inet_ntoa_r ( iaddr . s_addr , hoststr ) , & hostid ) ;\n if ( code == PRSUCCESS && hostid != 0 ) {\n temp = FindByID ( tt , hostid ) ;\n if ( temp ) {\n code = pr_ReadEntry ( tt , 0 , temp , & host_tentry ) ;\n if ( code == PRSUCCESS ) {\n code = GetList ( tt , & host_tentry , alist , 0 ) ;\n if ( code ) goto bad ;\n }\n else fprintf ( stderr , \"pr_ReadEntry returned %d\\n\" , code ) ;\n }\n else fprintf ( stderr , \"FindByID Failed -- Not found\\n\" ) ;\n }\n code = addWildCards ( tt , alist , ntohl ( ahost ) ) ;\n bad : if ( code != PRSUCCESS ) ABORT_WITH ( tt , code ) ;\n code = ubik_EndTrans ( tt ) ;\n return code ;\n }"}
{"idx": 13710, "target": 0, "func": "int ff_h263_decode_mb ( MpegEncContext * s , int16_t block [ 6 ] [ 64 ] ) {\n int cbpc , cbpy , i , cbp , pred_x , pred_y , mx , my , dquant ;\n int16_t * mot_val ;\n const int xy = s -> mb_x + s -> mb_y * s -> mb_stride ;\n int cbpb = 0 , pb_mv_count = 0 ;\n assert ( ! s -> h263_pred ) ;\n if ( s -> pict_type == AV_PICTURE_TYPE_P ) {\n do {\n if ( get_bits1 ( & s -> gb ) ) {\n s -> mb_intra = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) s -> block_last_index [ i ] = - 1 ;\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n s -> current_picture . mb_type [ xy ] = MB_TYPE_SKIP | MB_TYPE_16x16 | MB_TYPE_L0 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = 0 ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = 0 ;\n s -> mb_skipped = ! ( s -> obmc | s -> loop_filter ) ;\n goto end ;\n }\n cbpc = get_vlc2 ( & s -> gb , ff_h263_inter_MCBPC_vlc . table , INTER_MCBPC_VLC_BITS , 2 ) ;\n if ( cbpc < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"cbpc damaged at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n }\n while ( cbpc == 20 ) ;\n s -> dsp . clear_blocks ( s -> block [ 0 ] ) ;\n dquant = cbpc & 8 ;\n s -> mb_intra = ( ( cbpc & 4 ) != 0 ) ;\n if ( s -> mb_intra ) goto intra ;\n if ( s -> pb_frame && get_bits1 ( & s -> gb ) ) pb_mv_count = h263_get_modb ( & s -> gb , s -> pb_frame , & cbpb ) ;\n cbpy = get_vlc2 ( & s -> gb , ff_h263_cbpy_vlc . table , CBPY_VLC_BITS , 1 ) ;\n if ( s -> alt_inter_vlc == 0 || ( cbpc & 3 ) != 3 ) cbpy ^= 0xF ;\n cbp = ( cbpc & 3 ) | ( cbpy << 2 ) ;\n if ( dquant ) {\n h263_decode_dquant ( s ) ;\n }\n s -> mv_dir = MV_DIR_FORWARD ;\n if ( ( cbpc & 16 ) == 0 ) {\n s -> current_picture . mb_type [ xy ] = MB_TYPE_16x16 | MB_TYPE_L0 ;\n s -> mv_type = MV_TYPE_16X16 ;\n ff_h263_pred_motion ( s , 0 , 0 , & pred_x , & pred_y ) ;\n if ( s -> umvplus ) mx = h263p_decode_umotion ( s , pred_x ) ;\n else mx = ff_h263_decode_motion ( s , pred_x , 1 ) ;\n if ( mx >= 0xffff ) return - 1 ;\n if ( s -> umvplus ) my = h263p_decode_umotion ( s , pred_y ) ;\n else my = ff_h263_decode_motion ( s , pred_y , 1 ) ;\n if ( my >= 0xffff ) return - 1 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = mx ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = my ;\n if ( s -> umvplus && ( mx - pred_x ) == 1 && ( my - pred_y ) == 1 ) skip_bits1 ( & s -> gb ) ;\n }\n else {\n s -> current_picture . mb_type [ xy ] = MB_TYPE_8x8 | MB_TYPE_L0 ;\n s -> mv_type = MV_TYPE_8X8 ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n mot_val = ff_h263_pred_motion ( s , i , 0 , & pred_x , & pred_y ) ;\n if ( s -> umvplus ) mx = h263p_decode_umotion ( s , pred_x ) ;\n else mx = ff_h263_decode_motion ( s , pred_x , 1 ) ;\n if ( mx >= 0xffff ) return - 1 ;\n if ( s -> umvplus ) my = h263p_decode_umotion ( s , pred_y ) ;\n else my = ff_h263_decode_motion ( s , pred_y , 1 ) ;\n if ( my >= 0xffff ) return - 1 ;\n s -> mv [ 0 ] [ i ] [ 0 ] = mx ;\n s -> mv [ 0 ] [ i ] [ 1 ] = my ;\n if ( s -> umvplus && ( mx - pred_x ) == 1 && ( my - pred_y ) == 1 ) skip_bits1 ( & s -> gb ) ;\n mot_val [ 0 ] = mx ;\n mot_val [ 1 ] = my ;\n }\n }\n }\n else if ( s -> pict_type == AV_PICTURE_TYPE_B ) {\n int mb_type ;\n const int stride = s -> b8_stride ;\n int16_t * mot_val0 = s -> current_picture . motion_val [ 0 ] [ 2 * ( s -> mb_x + s -> mb_y * stride ) ] ;\n int16_t * mot_val1 = s -> current_picture . motion_val [ 1 ] [ 2 * ( s -> mb_x + s -> mb_y * stride ) ] ;\n mot_val0 [ 0 ] = mot_val0 [ 2 ] = mot_val0 [ 0 + 2 * stride ] = mot_val0 [ 2 + 2 * stride ] = mot_val0 [ 1 ] = mot_val0 [ 3 ] = mot_val0 [ 1 + 2 * stride ] = mot_val0 [ 3 + 2 * stride ] = mot_val1 [ 0 ] = mot_val1 [ 2 ] = mot_val1 [ 0 + 2 * stride ] = mot_val1 [ 2 + 2 * stride ] = mot_val1 [ 1 ] = mot_val1 [ 3 ] = mot_val1 [ 1 + 2 * stride ] = mot_val1 [ 3 + 2 * stride ] = 0 ;\n do {\n mb_type = get_vlc2 ( & s -> gb , h263_mbtype_b_vlc . table , H263_MBTYPE_B_VLC_BITS , 2 ) ;\n if ( mb_type < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"b mb_type damaged at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n mb_type = h263_mb_type_b_map [ mb_type ] ;\n }\n while ( ! mb_type ) ;\n s -> mb_intra = IS_INTRA ( mb_type ) ;\n if ( HAS_CBP ( mb_type ) ) {\n s -> dsp . clear_blocks ( s -> block [ 0 ] ) ;\n cbpc = get_vlc2 ( & s -> gb , cbpc_b_vlc . table , CBPC_B_VLC_BITS , 1 ) ;\n if ( s -> mb_intra ) {\n dquant = IS_QUANT ( mb_type ) ;\n goto intra ;\n }\n cbpy = get_vlc2 ( & s -> gb , ff_h263_cbpy_vlc . table , CBPY_VLC_BITS , 1 ) ;\n if ( cbpy < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"b cbpy damaged at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n if ( s -> alt_inter_vlc == 0 || ( cbpc & 3 ) != 3 ) cbpy ^= 0xF ;\n cbp = ( cbpc & 3 ) | ( cbpy << 2 ) ;\n }\n else cbp = 0 ;\n assert ( ! s -> mb_intra ) ;\n if ( IS_QUANT ( mb_type ) ) {\n h263_decode_dquant ( s ) ;\n }\n if ( IS_DIRECT ( mb_type ) ) {\n s -> mv_dir = MV_DIR_FORWARD | MV_DIR_BACKWARD | MV_DIRECT ;\n mb_type |= ff_mpeg4_set_direct_mv ( s , 0 , 0 ) ;\n }\n else {\n s -> mv_dir = 0 ;\n s -> mv_type = MV_TYPE_16X16 ;\n if ( USES_LIST ( mb_type , 0 ) ) {\n int16_t * mot_val = ff_h263_pred_motion ( s , 0 , 0 , & mx , & my ) ;\n s -> mv_dir = MV_DIR_FORWARD ;\n mx = ff_h263_decode_motion ( s , mx , 1 ) ;\n my = ff_h263_decode_motion ( s , my , 1 ) ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = mx ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = my ;\n mot_val [ 0 ] = mot_val [ 2 ] = mot_val [ 0 + 2 * stride ] = mot_val [ 2 + 2 * stride ] = mx ;\n mot_val [ 1 ] = mot_val [ 3 ] = mot_val [ 1 + 2 * stride ] = mot_val [ 3 + 2 * stride ] = my ;\n }\n if ( USES_LIST ( mb_type , 1 ) ) {\n int16_t * mot_val = ff_h263_pred_motion ( s , 0 , 1 , & mx , & my ) ;\n s -> mv_dir |= MV_DIR_BACKWARD ;\n mx = ff_h263_decode_motion ( s , mx , 1 ) ;\n my = ff_h263_decode_motion ( s , my , 1 ) ;\n s -> mv [ 1 ] [ 0 ] [ 0 ] = mx ;\n s -> mv [ 1 ] [ 0 ] [ 1 ] = my ;\n mot_val [ 0 ] = mot_val [ 2 ] = mot_val [ 0 + 2 * stride ] = mot_val [ 2 + 2 * stride ] = mx ;\n mot_val [ 1 ] = mot_val [ 3 ] = mot_val [ 1 + 2 * stride ] = mot_val [ 3 + 2 * stride ] = my ;\n }\n }\n s -> current_picture . mb_type [ xy ] = mb_type ;\n }\n else {\n do {\n cbpc = get_vlc2 ( & s -> gb , ff_h263_intra_MCBPC_vlc . table , INTRA_MCBPC_VLC_BITS , 2 ) ;\n if ( cbpc < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"I cbpc damaged at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n }\n while ( cbpc == 8 ) ;\n s -> dsp . clear_blocks ( s -> block [ 0 ] ) ;\n dquant = cbpc & 4 ;\n s -> mb_intra = 1 ;\n intra : s -> current_picture . mb_type [ xy ] = MB_TYPE_INTRA ;\n if ( s -> h263_aic ) {\n s -> ac_pred = get_bits1 ( & s -> gb ) ;\n if ( s -> ac_pred ) {\n s -> current_picture . mb_type [ xy ] = MB_TYPE_INTRA | MB_TYPE_ACPRED ;\n s -> h263_aic_dir = get_bits1 ( & s -> gb ) ;\n }\n }\n else s -> ac_pred = 0 ;\n if ( s -> pb_frame && get_bits1 ( & s -> gb ) ) pb_mv_count = h263_get_modb ( & s -> gb , s -> pb_frame , & cbpb ) ;\n cbpy = get_vlc2 ( & s -> gb , ff_h263_cbpy_vlc . table , CBPY_VLC_BITS , 1 ) ;\n if ( cbpy < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"I cbpy damaged at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n cbp = ( cbpc & 3 ) | ( cbpy << 2 ) ;\n if ( dquant ) {\n h263_decode_dquant ( s ) ;\n }\n pb_mv_count += ! ! s -> pb_frame ;\n }\n while ( pb_mv_count -- ) {\n ff_h263_decode_motion ( s , 0 , 1 ) ;\n ff_h263_decode_motion ( s , 0 , 1 ) ;\n }\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( h263_decode_block ( s , block [ i ] , i , cbp & 32 ) < 0 ) return - 1 ;\n cbp += cbp ;\n }\n if ( s -> pb_frame && h263_skip_b_part ( s , cbpb ) < 0 ) return - 1 ;\n if ( s -> obmc && ! s -> mb_intra ) {\n if ( s -> pict_type == AV_PICTURE_TYPE_P && s -> mb_x + 1 < s -> mb_width && s -> mb_num_left != 1 ) preview_obmc ( s ) ;\n }\n end : {\n int v = show_bits ( & s -> gb , 16 ) ;\n if ( get_bits_left ( & s -> gb ) < 16 ) {\n v >>= 16 - get_bits_left ( & s -> gb ) ;\n }\n if ( v == 0 ) return SLICE_END ;\n }\n return SLICE_OK ;\n }"}
{"idx": 13711, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( SupervisedUserNavigationThrottleNotSupervisedTest , DontBlock ) {\n BlockHost ( kExampleHost ) ;\n WebContents * tab = browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) ;\n GURL blocked_url = embedded_test_server ( ) -> GetURL ( kExampleHost , \"/supervised_user/simple.html\" ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , blocked_url ) ;\n EXPECT_FALSE ( tab -> ShowingInterstitialPage ( ) ) ;\n }"}
{"idx": 13712, "target": 0, "func": "static float usec_to_fps ( uint64_t usec , unsigned int frames ) {\n return ( float ) ( usec > 0 ? frames * 1000000.0 / ( float ) usec : 0 ) ;\n }"}
{"idx": 13713, "target": 0, "func": "static struct rule * find_config_line ( struct config * config , char * command , char * subcommand ) {\n size_t i ;\n for ( i = 0 ;\n i < config -> count ;\n i ++ ) if ( line_matches ( config -> rules [ i ] , command , subcommand ) ) return config -> rules [ i ] ;\n return NULL ;\n }"}
{"idx": 13714, "target": 0, "func": "static void usb_ehci_pci_finalize ( Object * obj ) {\n EHCIPCIState * i = PCI_EHCI ( obj ) ;\n EHCIState * s = & i -> ehci ;\n usb_ehci_finalize ( s ) ;\n }"}
{"idx": 13715, "target": 0, "func": "static int dissect_h245_AddConnectionResp ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_AddConnectionResp , AddConnectionResp_sequence ) ;\n return offset ;\n }"}
{"idx": 13716, "target": 0, "func": "static void mips_jazz_machine_init ( void ) {\n qemu_register_machine ( & mips_magnum_machine ) ;\n qemu_register_machine ( & mips_pica61_machine ) ;\n }"}
{"idx": 13717, "target": 0, "func": "static int svq3_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n SVQ3Context * s = avctx -> priv_data ;\n H264Context * h = & s -> h ;\n int buf_size = avpkt -> size ;\n int ret , m , i ;\n if ( buf_size == 0 ) {\n if ( s -> next_pic -> f . data [ 0 ] && ! h -> low_delay && ! s -> last_frame_output ) {\n ret = av_frame_ref ( data , & s -> next_pic -> f ) ;\n if ( ret < 0 ) return ret ;\n s -> last_frame_output = 1 ;\n * got_frame = 1 ;\n }\n return 0 ;\n }\n init_get_bits ( & h -> gb , buf , 8 * buf_size ) ;\n h -> mb_x = h -> mb_y = h -> mb_xy = 0 ;\n if ( svq3_decode_slice_header ( avctx ) ) return - 1 ;\n h -> pict_type = h -> slice_type ;\n if ( h -> pict_type != AV_PICTURE_TYPE_B ) FFSWAP ( Picture * , s -> next_pic , s -> last_pic ) ;\n av_frame_unref ( & s -> cur_pic -> f ) ;\n s -> cur_pic -> f . pict_type = h -> pict_type ;\n s -> cur_pic -> f . key_frame = ( h -> pict_type == AV_PICTURE_TYPE_I ) ;\n ret = get_buffer ( avctx , s -> cur_pic ) ;\n if ( ret < 0 ) return ret ;\n h -> cur_pic_ptr = s -> cur_pic ;\n av_frame_unref ( & h -> cur_pic . f ) ;\n h -> cur_pic = * s -> cur_pic ;\n ret = av_frame_ref ( & h -> cur_pic . f , & s -> cur_pic -> f ) ;\n if ( ret < 0 ) return ret ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n h -> block_offset [ i ] = ( 4 * ( ( scan8 [ i ] - scan8 [ 0 ] ) & 7 ) ) + 4 * h -> linesize * ( ( scan8 [ i ] - scan8 [ 0 ] ) >> 3 ) ;\n h -> block_offset [ 48 + i ] = ( 4 * ( ( scan8 [ i ] - scan8 [ 0 ] ) & 7 ) ) + 8 * h -> linesize * ( ( scan8 [ i ] - scan8 [ 0 ] ) >> 3 ) ;\n }\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n h -> block_offset [ 16 + i ] = h -> block_offset [ 32 + i ] = ( 4 * ( ( scan8 [ i ] - scan8 [ 0 ] ) & 7 ) ) + 4 * h -> uvlinesize * ( ( scan8 [ i ] - scan8 [ 0 ] ) >> 3 ) ;\n h -> block_offset [ 48 + 16 + i ] = h -> block_offset [ 48 + 32 + i ] = ( 4 * ( ( scan8 [ i ] - scan8 [ 0 ] ) & 7 ) ) + 8 * h -> uvlinesize * ( ( scan8 [ i ] - scan8 [ 0 ] ) >> 3 ) ;\n }\n if ( h -> pict_type != AV_PICTURE_TYPE_I ) {\n if ( ! s -> last_pic -> f . data [ 0 ] ) {\n av_log ( avctx , AV_LOG_ERROR , \"Missing reference frame.\\n\" ) ;\n ret = get_buffer ( avctx , s -> last_pic ) ;\n if ( ret < 0 ) return ret ;\n memset ( s -> last_pic -> f . data [ 0 ] , 0 , avctx -> height * s -> last_pic -> f . linesize [ 0 ] ) ;\n memset ( s -> last_pic -> f . data [ 1 ] , 0x80 , ( avctx -> height / 2 ) * s -> last_pic -> f . linesize [ 1 ] ) ;\n memset ( s -> last_pic -> f . data [ 2 ] , 0x80 , ( avctx -> height / 2 ) * s -> last_pic -> f . linesize [ 2 ] ) ;\n }\n if ( h -> pict_type == AV_PICTURE_TYPE_B && ! s -> next_pic -> f . data [ 0 ] ) {\n av_log ( avctx , AV_LOG_ERROR , \"Missing reference frame.\\n\" ) ;\n ret = get_buffer ( avctx , s -> next_pic ) ;\n if ( ret < 0 ) return ret ;\n memset ( s -> next_pic -> f . data [ 0 ] , 0 , avctx -> height * s -> next_pic -> f . linesize [ 0 ] ) ;\n memset ( s -> next_pic -> f . data [ 1 ] , 0x80 , ( avctx -> height / 2 ) * s -> next_pic -> f . linesize [ 1 ] ) ;\n memset ( s -> next_pic -> f . data [ 2 ] , 0x80 , ( avctx -> height / 2 ) * s -> next_pic -> f . linesize [ 2 ] ) ;\n }\n }\n if ( avctx -> debug & FF_DEBUG_PICT_INFO ) av_log ( h -> avctx , AV_LOG_DEBUG , \"%c hpel:%d, tpel:%d aqp:%d qp:%d, slice_num:%02X\\n\" , av_get_picture_type_char ( h -> pict_type ) , s -> halfpel_flag , s -> thirdpel_flag , s -> adaptive_quant , h -> qscale , h -> slice_num ) ;\n if ( avctx -> skip_frame >= AVDISCARD_NONREF && h -> pict_type == AV_PICTURE_TYPE_B || avctx -> skip_frame >= AVDISCARD_NONKEY && h -> pict_type != AV_PICTURE_TYPE_I || avctx -> skip_frame >= AVDISCARD_ALL ) return 0 ;\n if ( s -> next_p_frame_damaged ) {\n if ( h -> pict_type == AV_PICTURE_TYPE_B ) return 0 ;\n else s -> next_p_frame_damaged = 0 ;\n }\n if ( h -> pict_type == AV_PICTURE_TYPE_B ) {\n h -> frame_num_offset = h -> slice_num - h -> prev_frame_num ;\n if ( h -> frame_num_offset < 0 ) h -> frame_num_offset += 256 ;\n if ( h -> frame_num_offset == 0 || h -> frame_num_offset >= h -> prev_frame_num_offset ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"error in B-frame picture id\\n\" ) ;\n return - 1 ;\n }\n }\n else {\n h -> prev_frame_num = h -> frame_num ;\n h -> frame_num = h -> slice_num ;\n h -> prev_frame_num_offset = h -> frame_num - h -> prev_frame_num ;\n if ( h -> prev_frame_num_offset < 0 ) h -> prev_frame_num_offset += 256 ;\n }\n for ( m = 0 ;\n m < 2 ;\n m ++ ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n int j ;\n for ( j = - 1 ;\n j < 4 ;\n j ++ ) h -> ref_cache [ m ] [ scan8 [ 0 ] + 8 * i + j ] = 1 ;\n if ( i < 3 ) h -> ref_cache [ m ] [ scan8 [ 0 ] + 8 * i + j ] = PART_NOT_AVAILABLE ;\n }\n }\n for ( h -> mb_y = 0 ;\n h -> mb_y < h -> mb_height ;\n h -> mb_y ++ ) {\n for ( h -> mb_x = 0 ;\n h -> mb_x < h -> mb_width ;\n h -> mb_x ++ ) {\n unsigned mb_type ;\n h -> mb_xy = h -> mb_x + h -> mb_y * h -> mb_stride ;\n if ( ( get_bits_count ( & h -> gb ) + 7 ) >= h -> gb . size_in_bits && ( ( get_bits_count ( & h -> gb ) & 7 ) == 0 || show_bits ( & h -> gb , - get_bits_count ( & h -> gb ) & 7 ) == 0 ) ) {\n skip_bits ( & h -> gb , s -> next_slice_index - get_bits_count ( & h -> gb ) ) ;\n h -> gb . size_in_bits = 8 * buf_size ;\n if ( svq3_decode_slice_header ( avctx ) ) return - 1 ;\n }\n mb_type = svq3_get_ue_golomb ( & h -> gb ) ;\n if ( h -> pict_type == AV_PICTURE_TYPE_I ) mb_type += 8 ;\n else if ( h -> pict_type == AV_PICTURE_TYPE_B && mb_type >= 4 ) mb_type += 4 ;\n if ( mb_type > 33 || svq3_decode_mb ( s , mb_type ) ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"error while decoding MB %d %d\\n\" , h -> mb_x , h -> mb_y ) ;\n return - 1 ;\n }\n if ( mb_type != 0 ) ff_h264_hl_decode_mb ( h ) ;\n if ( h -> pict_type != AV_PICTURE_TYPE_B && ! h -> low_delay ) h -> cur_pic . mb_type [ h -> mb_x + h -> mb_y * h -> mb_stride ] = ( h -> pict_type == AV_PICTURE_TYPE_P && mb_type < 8 ) ? ( mb_type - 1 ) : - 1 ;\n }\n ff_draw_horiz_band ( avctx , NULL , s -> cur_pic , s -> last_pic -> f . data [ 0 ] ? s -> last_pic : NULL , 16 * h -> mb_y , 16 , h -> picture_structure , 0 , 0 , h -> low_delay , h -> mb_height * 16 , h -> mb_width * 16 ) ;\n }\n if ( h -> pict_type == AV_PICTURE_TYPE_B || h -> low_delay ) ret = av_frame_ref ( data , & s -> cur_pic -> f ) ;\n else if ( s -> last_pic -> f . data [ 0 ] ) ret = av_frame_ref ( data , & s -> last_pic -> f ) ;\n if ( ret < 0 ) return ret ;\n if ( s -> last_pic -> f . data [ 0 ] || h -> low_delay ) * got_frame = 1 ;\n if ( h -> pict_type != AV_PICTURE_TYPE_B ) {\n FFSWAP ( Picture * , s -> cur_pic , s -> next_pic ) ;\n }\n else {\n av_frame_unref ( & s -> cur_pic -> f ) ;\n }\n return buf_size ;\n }"}
{"idx": 13718, "target": 0, "func": "static int decode_tilehdr ( WmallDecodeCtx * s ) {\n uint16_t num_samples [ WMALL_MAX_CHANNELS ] = {\n 0 }\n ;\n uint8_t contains_subframe [ WMALL_MAX_CHANNELS ] ;\n int channels_for_cur_subframe = s -> num_channels ;\n int fixed_channel_layout = 0 ;\n int min_channel_len = 0 ;\n int c , tile_aligned ;\n for ( c = 0 ;\n c < s -> num_channels ;\n c ++ ) s -> channel [ c ] . num_subframes = 0 ;\n tile_aligned = get_bits1 ( & s -> gb ) ;\n if ( s -> max_num_subframes == 1 || tile_aligned ) fixed_channel_layout = 1 ;\n do {\n int subframe_len , in_use = 0 ;\n for ( c = 0 ;\n c < s -> num_channels ;\n c ++ ) {\n if ( num_samples [ c ] == min_channel_len ) {\n if ( fixed_channel_layout || channels_for_cur_subframe == 1 || ( min_channel_len == s -> samples_per_frame - s -> min_samples_per_subframe ) ) {\n contains_subframe [ c ] = in_use = 1 ;\n }\n else {\n if ( get_bits1 ( & s -> gb ) ) contains_subframe [ c ] = in_use = 1 ;\n }\n }\n else contains_subframe [ c ] = 0 ;\n }\n if ( ! in_use ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Found empty subframe\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ( subframe_len = decode_subframe_length ( s , min_channel_len ) ) <= 0 ) return AVERROR_INVALIDDATA ;\n min_channel_len += subframe_len ;\n for ( c = 0 ;\n c < s -> num_channels ;\n c ++ ) {\n WmallChannelCtx * chan = & s -> channel [ c ] ;\n if ( contains_subframe [ c ] ) {\n if ( chan -> num_subframes >= MAX_SUBFRAMES ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"broken frame: num subframes > 31\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n chan -> subframe_len [ chan -> num_subframes ] = subframe_len ;\n num_samples [ c ] += subframe_len ;\n ++ chan -> num_subframes ;\n if ( num_samples [ c ] > s -> samples_per_frame ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"broken frame: \" \"channel len(%d) > samples_per_frame(%d)\\n\" , num_samples [ c ] , s -> samples_per_frame ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n else if ( num_samples [ c ] <= min_channel_len ) {\n if ( num_samples [ c ] < min_channel_len ) {\n channels_for_cur_subframe = 0 ;\n min_channel_len = num_samples [ c ] ;\n }\n ++ channels_for_cur_subframe ;\n }\n }\n }\n while ( min_channel_len < s -> samples_per_frame ) ;\n for ( c = 0 ;\n c < s -> num_channels ;\n c ++ ) {\n int i , offset = 0 ;\n for ( i = 0 ;\n i < s -> channel [ c ] . num_subframes ;\n i ++ ) {\n s -> channel [ c ] . subframe_offsets [ i ] = offset ;\n offset += s -> channel [ c ] . subframe_len [ i ] ;\n }\n }\n return 0 ;\n }"}
{"idx": 13719, "target": 0, "func": "END_TEST START_TEST ( test_users_waiting ) {\n in_addr_t ip ;\n ip = inet_addr ( \"127.0.0.1\" ) ;\n init_users ( ip , 27 ) ;\n fail_unless ( users_waiting_on_reply ( ) == 0 ) ;\n users [ 3 ] . active = 1 ;\n fail_unless ( users_waiting_on_reply ( ) == 0 ) ;\n users [ 3 ] . last_pkt = time ( NULL ) ;\n fail_unless ( users_waiting_on_reply ( ) == 0 ) ;\n users [ 3 ] . conn = CONN_DNS_NULL ;\n users [ 3 ] . q . id = 1 ;\n fail_unless ( users_waiting_on_reply ( ) == 1 ) ;\n }"}
{"idx": 13720, "target": 0, "func": "volatile int * killed_ptr ( MI_CHECK * param __attribute__ ( ( unused ) ) ) {\n return & not_killed ;\n }"}
{"idx": 13721, "target": 0, "func": "static const char * hfinfo_number_value_format64 ( const header_field_info * hfinfo , char buf [ 64 ] , guint64 value ) {\n int display = hfinfo -> display ;\n if ( hfinfo -> type == FT_FRAMENUM ) {\n display = BASE_DEC ;\n }\n return hfinfo_number_value_format_display64 ( hfinfo , display , buf , value ) ;\n }"}
{"idx": 13722, "target": 0, "func": "static int zip_read_lens ( struct mszipd_stream * zip ) {\n register unsigned int bit_buffer ;\n register int bits_left ;\n unsigned char * i_ptr , * i_end ;\n unsigned short bl_table [ ( 1 << 7 ) ] ;\n unsigned char bl_len [ 19 ] ;\n unsigned char lens [ MSZIP_LITERAL_MAXSYMBOLS + MSZIP_DISTANCE_MAXSYMBOLS ] ;\n unsigned int lit_codes , dist_codes , code , last_code = 0 , bitlen_codes , i , run ;\n RESTORE_BITS ;\n READ_BITS ( lit_codes , 5 ) ;\n lit_codes += 257 ;\n READ_BITS ( dist_codes , 5 ) ;\n dist_codes += 1 ;\n READ_BITS ( bitlen_codes , 4 ) ;\n bitlen_codes += 4 ;\n if ( lit_codes > MSZIP_LITERAL_MAXSYMBOLS ) return INF_ERR_SYMLENS ;\n if ( dist_codes > MSZIP_DISTANCE_MAXSYMBOLS ) return INF_ERR_SYMLENS ;\n for ( i = 0 ;\n i < bitlen_codes ;\n i ++ ) READ_BITS ( bl_len [ bitlen_order [ i ] ] , 3 ) ;\n while ( i < 19 ) bl_len [ bitlen_order [ i ++ ] ] = 0 ;\n if ( make_decode_table ( 19 , 7 , & bl_len [ 0 ] , & bl_table [ 0 ] ) ) {\n return INF_ERR_BITLENTBL ;\n }\n for ( i = 0 ;\n i < ( lit_codes + dist_codes ) ;\n i ++ ) {\n ENSURE_BITS ( 7 ) ;\n code = bl_table [ PEEK_BITS ( 7 ) ] ;\n REMOVE_BITS ( bl_len [ code ] ) ;\n if ( code < 16 ) lens [ i ] = last_code = code ;\n else {\n switch ( code ) {\n case 16 : READ_BITS ( run , 2 ) ;\n run += 3 ;\n code = last_code ;\n break ;\n case 17 : READ_BITS ( run , 3 ) ;\n run += 3 ;\n code = 0 ;\n break ;\n case 18 : READ_BITS ( run , 7 ) ;\n run += 11 ;\n code = 0 ;\n break ;\n default : D ( ( \"bad code!: %u\" , code ) ) return INF_ERR_BADBITLEN ;\n }\n if ( ( i + run ) > ( lit_codes + dist_codes ) ) return INF_ERR_BITOVERRUN ;\n while ( run -- ) lens [ i ++ ] = code ;\n i -- ;\n }\n }\n i = lit_codes ;\n zip -> sys -> copy ( & lens [ 0 ] , & zip -> LITERAL_len [ 0 ] , i ) ;\n while ( i < MSZIP_LITERAL_MAXSYMBOLS ) zip -> LITERAL_len [ i ++ ] = 0 ;\n i = dist_codes ;\n zip -> sys -> copy ( & lens [ lit_codes ] , & zip -> DISTANCE_len [ 0 ] , i ) ;\n while ( i < MSZIP_DISTANCE_MAXSYMBOLS ) zip -> DISTANCE_len [ i ++ ] = 0 ;\n STORE_BITS ;\n return 0 ;\n }"}
{"idx": 13723, "target": 0, "func": "static void set_arf_sign_bias ( VP9_COMP * cpi ) {\n VP9_COMMON * const cm = & cpi -> common ;\n int arf_sign_bias ;\n if ( ( cpi -> oxcf . pass == 2 ) && cpi -> multi_arf_allowed ) {\n const GF_GROUP * const gf_group = & cpi -> twopass . gf_group ;\n arf_sign_bias = cpi -> rc . source_alt_ref_active && ( ! cpi -> refresh_alt_ref_frame || ( gf_group -> rf_level [ gf_group -> index ] == GF_ARF_LOW ) ) ;\n }\n else {\n arf_sign_bias = ( cpi -> rc . source_alt_ref_active && ! cpi -> refresh_alt_ref_frame ) ;\n }\n cm -> ref_frame_sign_bias [ ALTREF_FRAME ] = arf_sign_bias ;\n }"}
{"idx": 13724, "target": 0, "func": "X509_CRL * d2i_X509_CRL_bio ( BIO * bp , X509_CRL * * crl ) {\n return ASN1_item_d2i_bio ( ASN1_ITEM_rptr ( X509_CRL ) , bp , crl ) ;\n }"}
{"idx": 13725, "target": 0, "func": "static void init_compress ( compress_filter_context_t * zfx , z_stream * zs ) {\n int rc ;\n int level ;\n # if defined ( __riscos__ ) && defined ( USE_ZLIBRISCOS ) static int zlib_initialized = 0 ;\n if ( ! zlib_initialized ) zlib_initialized = riscos_load_module ( \"ZLib\" , zlib_path , 1 ) ;\n # endif if ( opt . compress_level >= 1 && opt . compress_level <= 9 ) level = opt . compress_level ;\n else if ( opt . compress_level == - 1 ) level = Z_DEFAULT_COMPRESSION ;\n else {\n log_error ( \"invalid compression level;\n using default level\\n\" ) ;\n level = Z_DEFAULT_COMPRESSION ;\n }\n if ( ( rc = zfx -> algo == 1 ? deflateInit2 ( zs , level , Z_DEFLATED , - 13 , 8 , Z_DEFAULT_STRATEGY ) : deflateInit ( zs , level ) ) != Z_OK ) {\n log_fatal ( \"zlib problem: %s\\n\" , zs -> msg ? zs -> msg : rc == Z_MEM_ERROR ? \"out of core\" : rc == Z_VERSION_ERROR ? \"invalid lib version\" : \"unknown error\" ) ;\n }\n zfx -> outbufsize = 8192 ;\n zfx -> outbuf = xmalloc ( zfx -> outbufsize ) ;\n }"}
{"idx": 13726, "target": 0, "func": "static void add_opt_rr_to_tree ( proto_tree * rr_tree , tvbuff_t * tvb , int offset , const char * name , int namelen , gboolean is_mdns ) {\n proto_tree * Z_tree ;\n proto_item * Z_item ;\n proto_tree_add_string ( rr_tree , hf_dns_rr_name , tvb , offset , namelen , name ) ;\n offset += namelen ;\n proto_tree_add_item ( rr_tree , hf_dns_rr_type , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n offset += 2 ;\n if ( is_mdns ) {\n proto_tree_add_item ( rr_tree , hf_dns_rr_udp_payload_size_mdns , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rr_tree , hf_dns_rr_cache_flush , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n }\n else {\n proto_tree_add_item ( rr_tree , hf_dns_rr_udp_payload_size , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n }\n offset += 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_rr_ext_rcode , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( rr_tree , hf_dns_rr_edns0_version , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n Z_item = proto_tree_add_item ( rr_tree , hf_dns_rr_z , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n Z_tree = proto_item_add_subtree ( Z_item , ett_dns_rr ) ;\n proto_tree_add_item ( Z_tree , hf_dns_rr_z_do , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( Z_tree , hf_dns_rr_z_reserved , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_rr_len , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n }"}
{"idx": 13727, "target": 0, "func": "unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 ) VAR ( 8 , 4 ) SUBPIX_VAR ( 8 , 4 ) SUBPIX_AVG_VAR ( 8 , 4 ) VAR ( 8 , 8 ) SUBPIX_VAR ( 8 , 8 ) SUBPIX_AVG_VAR ( 8 , 8 ) VAR ( 8 , 16 ) SUBPIX_VAR ( 8 , 16 ) SUBPIX_AVG_VAR ( 8 , 16 ) VAR ( 16 , 8 ) SUBPIX_VAR ( 16 , 8 ) SUBPIX_AVG_VAR ( 16 , 8 ) VAR ( 16 , 16 ) SUBPIX_VAR ( 16 , 16 ) SUBPIX_AVG_VAR ( 16 , 16 ) VAR ( 16 , 32 ) SUBPIX_VAR ( 16 , 32 ) SUBPIX_AVG_VAR ( 16 , 32 ) VAR ( 32 , 16 ) SUBPIX_VAR ( 32 , 16 ) SUBPIX_AVG_VAR ( 32 , 16 )"}
{"idx": 13728, "target": 0, "func": "TEST_F ( HistoryQuickProviderTest , NonWordLastCharacterMatch ) {\n std : : string expected_url ( \"http://slashdot.org/favorite_page.html\" ) ;\n std : : vector < std : : string > expected_urls ;\n expected_urls . push_back ( expected_url ) ;\n RunTest ( ASCIIToUTF16 ( \"slashdot.org/\" ) , false , expected_urls , true , ASCIIToUTF16 ( \"slashdot.org/favorite_page.html\" ) , ASCIIToUTF16 ( \"favorite_page.html\" ) ) ;\n }"}
{"idx": 13729, "target": 0, "func": "int proto_get_data_protocol ( void * cookie ) {\n GList * list_item = ( GList * ) cookie ;\n protocol_t * protocol = ( protocol_t * ) list_item -> data ;\n return protocol -> proto_id ;\n }"}
{"idx": 13730, "target": 0, "func": "static int dissect_pvfs_distribution ( tvbuff_t * tvb , proto_tree * tree , int offset ) {\n proto_item * dist_item ;\n proto_tree * dist_tree ;\n guint32 distlen ;\n char * tmpstr ;\n guint8 issimplestripe = 0 ;\n guint32 total_len ;\n distlen = tvb_get_letohl ( tvb , offset ) ;\n tmpstr = ( char * ) tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset + 4 , distlen , ENC_ASCII ) ;\n total_len = roundup8 ( 4 + distlen + 1 ) ;\n if ( ( ( distlen + 1 ) == PVFS_DIST_SIMPLE_STRIPE_NAME_SIZE ) && ( g_ascii_strncasecmp ( tmpstr , PVFS_DIST_SIMPLE_STRIPE_NAME , distlen ) == 0 ) ) {\n total_len += 8 ;\n issimplestripe = 1 ;\n }\n dist_item = proto_tree_add_string ( tree , hf_pvfs_distribution , tvb , offset , total_len + 8 , tmpstr ) ;\n dist_tree = proto_item_add_subtree ( dist_item , ett_pvfs_distribution ) ;\n offset = dissect_pvfs_string ( tvb , dist_tree , hf_pvfs_io_dist , offset , NULL ) ;\n if ( issimplestripe ) offset = dissect_pvfs_uint64 ( tvb , dist_tree , offset , hf_pvfs_strip_size , NULL ) ;\n offset += 8 ;\n return offset ;\n }"}
{"idx": 13731, "target": 0, "func": "REGRESSION_TEST ( SDK_API_TSHttpHdrParse ) ( RegressionTest * test , int , int * pstatus ) {\n const char * req = \"GET http://www.example.com/ HTTP/1.1\\r\\nmimefield1:field1value1,field1value2\\r\\nmimefield2:field2value1,field2value2\\r\\n\\r\\n\" ;\n const char * resp = \"HTTP/1.1 200 OK\\r\\n1mimefield:1field1value,1field2value\\r\\n2mimefield:2field1value,2field2value\\r\\n\\r\\n\" ;\n const char * start ;\n const char * end ;\n char * temp ;\n int retval ;\n TSMBuffer reqbufp ;\n TSMBuffer respbufp = ( TSMBuffer ) nullptr ;\n TSMLoc req_hdr_loc = ( TSMLoc ) nullptr ;\n TSMLoc resp_hdr_loc = ( TSMLoc ) nullptr ;\n TSHttpParser parser ;\n bool test_passed_parse_req = false ;\n bool test_passed_parse_resp = false ;\n bool test_passed_parser_clear = false ;\n bool test_passed_parser_destroy = false ;\n parser = TSHttpParserCreate ( ) ;\n SDK_RPRINT ( test , \"TSHttpParserCreate\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n reqbufp = TSMBufferCreate ( ) ;\n req_hdr_loc = TSHttpHdrCreate ( reqbufp ) ;\n start = req ;\n end = req + strlen ( req ) + 1 ;\n if ( ( retval = TSHttpHdrParseReq ( parser , reqbufp , req_hdr_loc , & start , end ) ) == TS_PARSE_ERROR ) {\n SDK_RPRINT ( test , \"TSHttpHdrParseReq\" , \"TestCase1\" , TC_FAIL , \"TSHttpHdrParseReq returns TS_PARSE_ERROR\" ) ;\n }\n else {\n if ( retval == TS_PARSE_DONE ) {\n test_passed_parse_req = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSHttpHdrParseReq\" , \"TestCase1\" , TC_FAIL , \"Parsing Error\" ) ;\n }\n }\n TSHttpParserClear ( parser ) ;\n SDK_RPRINT ( test , \"TSHttpParserClear\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_parser_clear = true ;\n if ( test_passed_parser_clear == true ) {\n respbufp = TSMBufferCreate ( ) ;\n resp_hdr_loc = TSHttpHdrCreate ( respbufp ) ;\n start = resp ;\n end = resp + strlen ( resp ) + 1 ;\n if ( ( retval = TSHttpHdrParseResp ( parser , respbufp , resp_hdr_loc , & start , end ) ) == TS_PARSE_ERROR ) {\n SDK_RPRINT ( test , \"TSHttpHdrParseResp\" , \"TestCase1\" , TC_FAIL , \"TSHttpHdrParseResp returns TS_PARSE_ERROR.\" ) ;\n }\n else {\n if ( retval == TS_PARSE_DONE ) {\n test_passed_parse_resp = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSHttpHdrParseResp\" , \"TestCase1\" , TC_FAIL , \"Parsing Error\" ) ;\n }\n }\n }\n if ( test_passed_parse_req == true ) {\n temp = convert_http_hdr_to_string ( reqbufp , req_hdr_loc ) ;\n if ( strcmp ( req , temp ) == 0 ) {\n SDK_RPRINT ( test , \"TSHttpHdrParseReq\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n else {\n SDK_RPRINT ( test , \"TSHttpHdrParseReq\" , \"TestCase1\" , TC_FAIL , \"Incorrect parsing\" ) ;\n test_passed_parse_req = false ;\n }\n TSfree ( temp ) ;\n }\n if ( test_passed_parse_resp == true ) {\n temp = convert_http_hdr_to_string ( respbufp , resp_hdr_loc ) ;\n if ( strcmp ( resp , temp ) == 0 ) {\n SDK_RPRINT ( test , \"TSHttpHdrParseResp\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n else {\n SDK_RPRINT ( test , \"TSHttpHdrParseResp\" , \"TestCase1\" , TC_FAIL , \"Incorrect parsing\" ) ;\n test_passed_parse_resp = false ;\n }\n TSfree ( temp ) ;\n }\n TSHttpParserDestroy ( parser ) ;\n SDK_RPRINT ( test , \"TSHttpParserDestroy\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed_parser_destroy = true ;\n if ( ( test_passed_parse_req != true ) || ( test_passed_parse_resp != true ) || ( test_passed_parser_clear != true ) || ( test_passed_parser_destroy != true ) ) {\n * pstatus = REGRESSION_TEST_FAILED ;\n }\n else {\n * pstatus = REGRESSION_TEST_PASSED ;\n }\n TSMimeHdrDestroy ( reqbufp , req_hdr_loc ) ;\n TSHandleMLocRelease ( reqbufp , TS_NULL_MLOC , req_hdr_loc ) ;\n TSMBufferDestroy ( reqbufp ) ;\n if ( resp_hdr_loc ) {\n TSMimeHdrDestroy ( respbufp , resp_hdr_loc ) ;\n TSHandleMLocRelease ( respbufp , TS_NULL_MLOC , resp_hdr_loc ) ;\n }\n if ( respbufp ) {\n TSMBufferDestroy ( respbufp ) ;\n }\n return ;\n }"}
{"idx": 13732, "target": 0, "func": "static int dissect_diameter_subscription_id ( tvbuff_t * tvb _U_ , packet_info * pinfo _U_ , proto_tree * tree _U_ , void * data _U_ ) {\n subscription_id_type = SUBSCRIPTION_ID_TYPE_UNKNOWN ;\n return 0 ;\n }"}
{"idx": 13733, "target": 0, "func": "static int dissect_h245_Si_rtp ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_Si_rtp , Si_rtp_sequence ) ;\n return offset ;\n }"}
{"idx": 13734, "target": 0, "func": "proto_item * proto_tree_add_item_ret_string_and_length ( proto_tree * tree , int hfindex , tvbuff_t * tvb , const gint start , gint length , const guint encoding , wmem_allocator_t * scope , const guint8 * * retval , gint * lenretval ) {\n header_field_info * hfinfo = proto_registrar_get_nth ( hfindex ) ;\n field_info * new_fi ;\n const guint8 * value ;\n DISSECTOR_ASSERT_HINT ( hfinfo != NULL , \"Not passed hfi!\" ) ;\n switch ( hfinfo -> type ) {\n case FT_STRING : value = get_string_value ( scope , tvb , start , length , lenretval , encoding ) ;\n break ;\n case FT_STRINGZ : value = get_stringz_value ( scope , tree , tvb , start , length , lenretval , encoding ) ;\n break ;\n case FT_UINT_STRING : value = get_uint_string_value ( scope , tree , tvb , start , length , lenretval , encoding ) ;\n break ;\n case FT_STRINGZPAD : value = get_stringzpad_value ( scope , tvb , start , length , lenretval , encoding ) ;\n break ;\n default : DISSECTOR_ASSERT_NOT_REACHED ( ) ;\n }\n if ( retval ) * retval = value ;\n CHECK_FOR_NULL_TREE ( tree ) ;\n TRY_TO_FAKE_THIS_ITEM ( tree , hfinfo -> id , hfinfo ) ;\n new_fi = new_field_info ( tree , hfinfo , tvb , start , length ) ;\n proto_tree_set_string ( new_fi , value ) ;\n new_fi -> flags |= ( encoding & ENC_LITTLE_ENDIAN ) ? FI_LITTLE_ENDIAN : FI_BIG_ENDIAN ;\n return proto_tree_add_node ( tree , new_fi ) ;\n }"}
{"idx": 13735, "target": 0, "func": "void remove_tap_listener_t38 ( void ) {\n remove_tap_listener ( & ( the_tapinfo_struct . t38_dummy ) ) ;\n have_T38_tap_listener = FALSE ;\n }"}
{"idx": 13736, "target": 0, "func": "Jbig2PatternDict * jbig2_hd_new ( Jbig2Ctx * ctx , const Jbig2PatternDictParams * params , Jbig2Image * image ) {\n Jbig2PatternDict * new ;\n const int N = params -> GRAYMAX + 1 ;\n const int HPW = params -> HDPW ;\n const int HPH = params -> HDPH ;\n int i ;\n new = jbig2_new ( ctx , Jbig2PatternDict , 1 ) ;\n if ( new != NULL ) {\n new -> patterns = jbig2_new ( ctx , Jbig2Image * , N ) ;\n if ( new -> patterns == NULL ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , - 1 , \"failed to allocate pattern in collective bitmap dictionary\" ) ;\n jbig2_free ( ctx -> allocator , new ) ;\n return NULL ;\n }\n new -> n_patterns = N ;\n new -> HPW = HPW ;\n new -> HPH = HPH ;\n for ( i = 0 ;\n i < N ;\n i ++ ) {\n new -> patterns [ i ] = jbig2_image_new ( ctx , HPW , HPH ) ;\n if ( new -> patterns [ i ] == NULL ) {\n int j ;\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , - 1 , \"failed to allocate pattern element image\" ) ;\n for ( j = 0 ;\n j < i ;\n j ++ ) jbig2_free ( ctx -> allocator , new -> patterns [ j ] ) ;\n jbig2_free ( ctx -> allocator , new ) ;\n return NULL ;\n }\n jbig2_image_compose ( ctx , new -> patterns [ i ] , image , - i * HPW , 0 , JBIG2_COMPOSE_REPLACE ) ;\n }\n }\n else {\n jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , - 1 , \"failed to allocate collective bitmap dictionary\" ) ;\n }\n return new ;\n }"}
{"idx": 13737, "target": 0, "func": "const char * TSMimeHdrFieldNameGet ( TSMBuffer bufp , TSMLoc hdr , TSMLoc field , int * length ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( hdr ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( hdr ) == TS_SUCCESS ) ) ;\n sdk_assert ( sdk_sanity_check_field_handle ( field , hdr ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) length ) == TS_SUCCESS ) ;\n MIMEFieldSDKHandle * handle = ( MIMEFieldSDKHandle * ) field ;\n return mime_field_name_get ( handle -> field_ptr , length ) ;\n }"}
{"idx": 13738, "target": 0, "func": "bool agg_item_collations_for_comparison ( DTCollation & c , const char * fname , Item * * av , uint count , uint flags ) {\n return ( agg_item_collations ( c , fname , av , count , flags | MY_COLL_DISALLOW_NONE , 1 ) ) ;\n }"}
{"idx": 13739, "target": 0, "func": "int gs_opendevice ( gx_device * dev ) {\n if ( dev -> is_open ) return 0 ;\n check_device_separable ( dev ) ;\n gx_device_fill_in_procs ( dev ) ;\n {\n int code = ( * dev_proc ( dev , open_device ) ) ( dev ) ;\n if ( code < 0 ) return_error ( code ) ;\n dev -> is_open = true ;\n return 1 ;\n }\n }"}
{"idx": 13740, "target": 0, "func": "static void evhttp_read_firstline ( struct evhttp_connection * evcon , struct evhttp_request * req ) {\n enum message_read_status res ;\n res = evhttp_parse_firstline ( req , evcon -> input_buffer ) ;\n if ( res == DATA_CORRUPTED ) {\n event_debug ( ( \"%s: bad header lines on %d\\n\" , __func__ , evcon -> fd ) ) ;\n evhttp_connection_fail ( evcon , EVCON_HTTP_INVALID_HEADER ) ;\n return ;\n }\n else if ( res == MORE_DATA_EXPECTED ) {\n evhttp_add_event ( & evcon -> ev , evcon -> timeout , HTTP_READ_TIMEOUT ) ;\n return ;\n }\n evcon -> state = EVCON_READING_HEADERS ;\n evhttp_read_header ( evcon , req ) ;\n }"}
{"idx": 13741, "target": 0, "func": "static int dissect_h245_NumericString_SIZE_0_40 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_NumericString ( tvb , offset , actx , tree , hf_index , 0 , 40 , FALSE ) ;\n return offset ;\n }"}
{"idx": 13742, "target": 0, "func": "void SSL3_RECORD_set_seq_num ( SSL3_RECORD * r , const unsigned char * seq_num ) {\n memcpy ( r -> seq_num , seq_num , SEQ_NUM_SIZE ) ;\n }"}
{"idx": 13743, "target": 0, "func": "static int selinux_parse_skb_ipv4 ( struct sk_buff * skb , struct common_audit_data * ad , u8 * proto ) {\n int offset , ihlen , ret = - EINVAL ;\n struct iphdr _iph , * ih ;\n offset = skb_network_offset ( skb ) ;\n ih = skb_header_pointer ( skb , offset , sizeof ( _iph ) , & _iph ) ;\n if ( ih == NULL ) goto out ;\n ihlen = ih -> ihl * 4 ;\n if ( ihlen < sizeof ( _iph ) ) goto out ;\n ad -> u . net -> v4info . saddr = ih -> saddr ;\n ad -> u . net -> v4info . daddr = ih -> daddr ;\n ret = 0 ;\n if ( proto ) * proto = ih -> protocol ;\n switch ( ih -> protocol ) {\n case IPPROTO_TCP : {\n struct tcphdr _tcph , * th ;\n if ( ntohs ( ih -> frag_off ) & IP_OFFSET ) break ;\n offset += ihlen ;\n th = skb_header_pointer ( skb , offset , sizeof ( _tcph ) , & _tcph ) ;\n if ( th == NULL ) break ;\n ad -> u . net -> sport = th -> source ;\n ad -> u . net -> dport = th -> dest ;\n break ;\n }\n case IPPROTO_UDP : {\n struct udphdr _udph , * uh ;\n if ( ntohs ( ih -> frag_off ) & IP_OFFSET ) break ;\n offset += ihlen ;\n uh = skb_header_pointer ( skb , offset , sizeof ( _udph ) , & _udph ) ;\n if ( uh == NULL ) break ;\n ad -> u . net -> sport = uh -> source ;\n ad -> u . net -> dport = uh -> dest ;\n break ;\n }\n case IPPROTO_DCCP : {\n struct dccp_hdr _dccph , * dh ;\n if ( ntohs ( ih -> frag_off ) & IP_OFFSET ) break ;\n offset += ihlen ;\n dh = skb_header_pointer ( skb , offset , sizeof ( _dccph ) , & _dccph ) ;\n if ( dh == NULL ) break ;\n ad -> u . net -> sport = dh -> dccph_sport ;\n ad -> u . net -> dport = dh -> dccph_dport ;\n break ;\n }\n default : break ;\n }\n out : return ret ;\n }"}
{"idx": 13744, "target": 0, "func": "double vp8_gaussian ( double sigma , double mu , double x ) {\n return 1 / ( sigma * sqrt ( 2.0 * 3.14159265 ) ) * ( exp ( - ( x - mu ) * ( x - mu ) / ( 2 * sigma * sigma ) ) ) ;\n }"}
{"idx": 13745, "target": 0, "func": "static ArchiveHandle * _allocAH ( const char * FileSpec , const ArchiveFormat fmt , const int compression , ArchiveMode mode , SetupWorkerPtr setupWorkerPtr ) {\n ArchiveHandle * AH ;\n # if 0 write_msg ( modulename , \"allocating AH for %s, format %d\\n\" , FileSpec , fmt ) ;\n # endif AH = ( ArchiveHandle * ) pg_malloc0 ( sizeof ( ArchiveHandle ) ) ;\n AH -> vmaj = K_VERS_MAJOR ;\n AH -> vmin = K_VERS_MINOR ;\n AH -> vrev = K_VERS_REV ;\n AH -> version = ( ( AH -> vmaj * 256 + AH -> vmin ) * 256 + AH -> vrev ) * 256 + 0 ;\n AH -> public . encoding = 0 ;\n AH -> public . std_strings = false ;\n AH -> public . exit_on_error = true ;\n AH -> public . n_errors = 0 ;\n AH -> archiveDumpVersion = PG_VERSION ;\n AH -> createDate = time ( NULL ) ;\n AH -> intSize = sizeof ( int ) ;\n AH -> offSize = sizeof ( pgoff_t ) ;\n if ( FileSpec ) {\n AH -> fSpec = pg_strdup ( FileSpec ) ;\n }\n else AH -> fSpec = NULL ;\n AH -> currUser = NULL ;\n AH -> currSchema = NULL ;\n AH -> currTablespace = NULL ;\n AH -> currWithOids = - 1 ;\n AH -> toc = ( TocEntry * ) pg_malloc0 ( sizeof ( TocEntry ) ) ;\n AH -> toc -> next = AH -> toc ;\n AH -> toc -> prev = AH -> toc ;\n AH -> mode = mode ;\n AH -> compression = compression ;\n memset ( & ( AH -> sqlparse ) , 0 , sizeof ( AH -> sqlparse ) ) ;\n AH -> gzOut = 0 ;\n AH -> OF = stdout ;\n # ifdef WIN32 if ( fmt != archNull && ( AH -> fSpec == NULL || strcmp ( AH -> fSpec , \"\" ) == 0 ) ) {\n if ( mode == archModeWrite ) setmode ( fileno ( stdout ) , O_BINARY ) ;\n else setmode ( fileno ( stdin ) , O_BINARY ) ;\n }\n # endif AH -> SetupWorkerPtr = setupWorkerPtr ;\n if ( fmt == archUnknown ) AH -> format = _discoverArchiveFormat ( AH ) ;\n else AH -> format = fmt ;\n AH -> promptPassword = TRI_DEFAULT ;\n switch ( AH -> format ) {\n case archCustom : InitArchiveFmt_Custom ( AH ) ;\n break ;\n case archNull : InitArchiveFmt_Null ( AH ) ;\n break ;\n case archDirectory : InitArchiveFmt_Directory ( AH ) ;\n break ;\n case archTar : InitArchiveFmt_Tar ( AH ) ;\n break ;\n default : exit_horribly ( modulename , \"unrecognized file format \\\"%d\\\"\\n\" , fmt ) ;\n }\n return AH ;\n }"}
{"idx": 13746, "target": 0, "func": "void mem_swap_byte_rect ( byte * base , uint raster , int x , int w , int h , bool store ) {\n int xbit = x & 31 ;\n if ( store ) {\n if ( xbit + w > 64 ) {\n if ( xbit != 0 ) mem_swap_byte_rect ( base , raster , x , 1 , h , false ) ;\n x += w - 1 ;\n xbit = x & 31 ;\n if ( xbit == 31 ) return ;\n w = 1 ;\n }\n }\n {\n byte * row = base + ( ( x >> 5 ) << 2 ) ;\n int nw = ( xbit + w + 31 ) >> 5 ;\n int ny ;\n for ( ny = h ;\n ny > 0 ;\n row += raster , -- ny ) {\n int nx = nw ;\n bits32 * pw = ( bits32 * ) row ;\n do {\n bits32 w = * pw ;\n * pw ++ = ( w >> 24 ) + ( ( w >> 8 ) & 0xff00 ) + ( ( w & 0xff00 ) << 8 ) + ( w << 24 ) ;\n }\n while ( -- nx ) ;\n }\n }\n }"}
{"idx": 13747, "target": 0, "func": "static void i_free_string ( gs_memory_t * mem , byte * data , uint nbytes , client_name_t cname ) {\n gs_ref_memory_t * const imem = ( gs_ref_memory_t * ) mem ;\n if ( data ) {\n data -= HDR_ID_OFFSET ;\n nbytes += HDR_ID_OFFSET ;\n if ( imem -> cc && data == imem -> cc -> ctop ) {\n if_debug4m ( 'A' , mem , \"[a%d:-> ]%s(%u) 0x%lx\\n\" , alloc_trace_space ( imem ) , client_name_string ( cname ) , nbytes , ( ulong ) data ) ;\n imem -> cc -> ctop += nbytes ;\n }\n else {\n if_debug4m ( 'A' , mem , \"[a%d:->#]%s(%u) 0x%lx\\n\" , alloc_trace_space ( imem ) , client_name_string ( cname ) , nbytes , ( ulong ) data ) ;\n imem -> lost . strings += nbytes ;\n }\n gs_alloc_fill ( data , gs_alloc_fill_free , nbytes ) ;\n }\n }"}
{"idx": 13748, "target": 0, "func": "static int dissect_h245_MultilinkResponse ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_MultilinkResponse , MultilinkResponse_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 13749, "target": 0, "func": "struct mime_header_decoder_data * mime_header_decoder_new ( enum mbfl_no_encoding outcode ) {\n struct mime_header_decoder_data * pd ;\n pd = ( struct mime_header_decoder_data * ) mbfl_malloc ( sizeof ( struct mime_header_decoder_data ) ) ;\n if ( pd == NULL ) {\n return NULL ;\n }\n mbfl_memory_device_init ( & pd -> outdev , 0 , 0 ) ;\n mbfl_memory_device_init ( & pd -> tmpdev , 0 , 0 ) ;\n pd -> cspos = 0 ;\n pd -> status = 0 ;\n pd -> encoding = mbfl_no_encoding_pass ;\n pd -> incode = mbfl_no_encoding_ascii ;\n pd -> outcode = outcode ;\n pd -> conv2_filter = mbfl_convert_filter_new ( mbfl_no_encoding_wchar , pd -> outcode , mbfl_memory_device_output , 0 , & pd -> outdev ) ;\n pd -> conv1_filter = mbfl_convert_filter_new ( pd -> incode , mbfl_no_encoding_wchar , mbfl_filter_output_pipe , 0 , pd -> conv2_filter ) ;\n pd -> deco_filter = mbfl_convert_filter_new ( pd -> encoding , mbfl_no_encoding_8bit , mbfl_filter_output_pipe , 0 , pd -> conv1_filter ) ;\n if ( pd -> conv1_filter == NULL || pd -> conv2_filter == NULL || pd -> deco_filter == NULL ) {\n mime_header_decoder_delete ( pd ) ;\n return NULL ;\n }\n return pd ;\n }"}
{"idx": 13750, "target": 1, "func": "GType hb_gobject_ ## name ## _get_type ( void ) \\ {\n static gsize type_id = 0 ;\n if ( g_once_init_enter ( & type_id ) ) {\n GType id = g_boxed_type_register_static ( g_intern_static_string ( \"hb_\" # name \"_t\" ) , ( GBoxedCopyFunc ) copy_func , ( GBoxedFreeFunc ) free_func ) ;\n g_once_init_leave ( & type_id , id ) ;\n }\n return type_id ;\n \\ }\n # define HB_DEFINE_OBJECT_TYPE ( name ) HB_DEFINE_BOXED_TYPE ( name , hb_ ## name ## _reference , hb_ ## name ## _destroy ) ;\n HB_DEFINE_OBJECT_TYPE ( buffer ) HB_DEFINE_OBJECT_TYPE ( blob ) HB_DEFINE_OBJECT_TYPE ( face ) HB_DEFINE_OBJECT_TYPE ( font ) HB_DEFINE_OBJECT_TYPE ( font_funcs ) HB_DEFINE_OBJECT_TYPE ( set ) HB_DEFINE_OBJECT_TYPE ( shape_plan ) HB_DEFINE_OBJECT_TYPE ( unicode_funcs ) static hb_feature_t * feature_reference ( hb_feature_t * g ) {\n hb_feature_t * c = ( hb_feature_t * ) calloc ( 1 , sizeof ( hb_feature_t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * g ;\n return c ;\n }\n static void feature_destroy ( hb_feature_t * g ) {\n free ( g ) ;\n }\n HB_DEFINE_BOXED_TYPE ( feature , feature_reference , feature_destroy )"}
{"idx": 13751, "target": 0, "func": "static void uiserver_io_event ( void * engine , gpgme_event_io_t type , void * type_data ) {\n engine_uiserver_t uiserver = engine ;\n TRACE3 ( DEBUG_ENGINE , \"gpgme:uiserver_io_event\" , uiserver , \"event %p, type %d, type_data %p\" , uiserver -> io_cbs . event , type , type_data ) ;\n if ( uiserver -> io_cbs . event ) ( * uiserver -> io_cbs . event ) ( uiserver -> io_cbs . event_priv , type , type_data ) ;\n }"}
{"idx": 13752, "target": 0, "func": "int gdev_pdf_get_param ( gx_device * dev , char * Param , void * list ) {\n gx_device_pdf * pdev = ( gx_device_pdf * ) dev ;\n const gs_param_item_t * pi ;\n gs_param_list * plist = ( gs_param_list * ) list ;\n int code = 0 ;\n for ( pi = pdf_param_items ;\n pi -> key != 0 ;\n ++ pi ) {\n if ( strcmp ( pi -> key , Param ) == 0 ) {\n const char * key = pi -> key ;\n const void * pvalue = ( const void * ) ( ( const char * ) pdev + pi -> offset ) ;\n int size = xfer_item_sizes [ pi -> type ] ;\n gs_param_typed_value typed ;\n memcpy ( & typed . value , pvalue , size ) ;\n typed . type = pi -> type ;\n code = ( * plist -> procs -> xmit_typed ) ( plist , key , & typed ) ;\n return code ;\n }\n }\n if ( strcmp ( Param , \"CoreDistVersion\" ) == 0 ) {\n return ( param_write_int ( plist , \"CoreDistVersion\" , & CoreDistVersion ) ) ;\n }\n if ( strcmp ( Param , \"CompatibilityLevel\" ) == 0 ) {\n float f = pdev -> CompatibilityLevel ;\n return ( param_write_float ( plist , \"CompatibilityLevel\" , & f ) ) ;\n }\n if ( strcmp ( Param , \"ForOPDFRead\" ) == 0 ) {\n return ( param_write_bool ( plist , \"ForOPDFRead\" , & pdev -> ForOPDFRead ) ) ;\n }\n if ( ! pdev -> is_ps2write ) {\n if ( strcmp ( Param , \"pdfmark\" ) == 0 ) {\n return ( param_write_null ( plist , \"pdfmark\" ) ) ;\n }\n if ( strcmp ( Param , \"DSC\" ) == 0 ) {\n return ( param_write_null ( plist , \"DSC\" ) ) ;\n }\n }\n return gdev_psdf_get_param ( dev , Param , list ) ;\n }"}
{"idx": 13753, "target": 0, "func": "static void * fz_keep_link_key ( fz_context * ctx , void * key_ ) {\n fz_link_key * key = ( fz_link_key * ) key_ ;\n return fz_keep_imp ( ctx , key , & key -> refs ) ;\n }"}
{"idx": 13754, "target": 0, "func": "static void destroy_addr_opts_fifo ( addr_opts_fifo * fifo ) {\n addr_opts_node * aon ;\n if ( fifo != NULL ) {\n do {\n UNLINK_FIFO ( aon , * fifo , link ) ;\n if ( aon != NULL ) {\n destroy_address_node ( aon -> addr ) ;\n destroy_attr_val_fifo ( aon -> options ) ;\n free ( aon ) ;\n }\n }\n while ( aon != NULL ) ;\n free ( fifo ) ;\n }\n }"}
{"idx": 13755, "target": 1, "func": "static void fdct16 ( const int16_t in [ 16 ] , int16_t out [ 16 ] ) {\n int step1 [ 8 ] ;\n int step2 [ 8 ] ;\n int step3 [ 8 ] ;\n int input [ 8 ] ;\n int temp1 , temp2 ;\n input [ 0 ] = in [ 0 ] + in [ 15 ] ;\n input [ 1 ] = in [ 1 ] + in [ 14 ] ;\n input [ 2 ] = in [ 2 ] + in [ 13 ] ;\n input [ 3 ] = in [ 3 ] + in [ 12 ] ;\n input [ 4 ] = in [ 4 ] + in [ 11 ] ;\n input [ 5 ] = in [ 5 ] + in [ 10 ] ;\n input [ 6 ] = in [ 6 ] + in [ 9 ] ;\n input [ 7 ] = in [ 7 ] + in [ 8 ] ;\n step1 [ 0 ] = in [ 7 ] - in [ 8 ] ;\n step1 [ 1 ] = in [ 6 ] - in [ 9 ] ;\n step1 [ 2 ] = in [ 5 ] - in [ 10 ] ;\n step1 [ 3 ] = in [ 4 ] - in [ 11 ] ;\n step1 [ 4 ] = in [ 3 ] - in [ 12 ] ;\n step1 [ 5 ] = in [ 2 ] - in [ 13 ] ;\n step1 [ 6 ] = in [ 1 ] - in [ 14 ] ;\n step1 [ 7 ] = in [ 0 ] - in [ 15 ] ;\n {\n int s0 , s1 , s2 , s3 , s4 , s5 , s6 , s7 ;\n int t0 , t1 , t2 , t3 ;\n int x0 , x1 , x2 , x3 ;\n s0 = input [ 0 ] + input [ 7 ] ;\n s1 = input [ 1 ] + input [ 6 ] ;\n s2 = input [ 2 ] + input [ 5 ] ;\n s3 = input [ 3 ] + input [ 4 ] ;\n s4 = input [ 3 ] - input [ 4 ] ;\n s5 = input [ 2 ] - input [ 5 ] ;\n s6 = input [ 1 ] - input [ 6 ] ;\n s7 = input [ 0 ] - input [ 7 ] ;\n x0 = s0 + s3 ;\n x1 = s1 + s2 ;\n x2 = s1 - s2 ;\n x3 = s0 - s3 ;\n t0 = ( x0 + x1 ) * cospi_16_64 ;\n t1 = ( x0 - x1 ) * cospi_16_64 ;\n t2 = x3 * cospi_8_64 + x2 * cospi_24_64 ;\n t3 = x3 * cospi_24_64 - x2 * cospi_8_64 ;\n out [ 0 ] = fdct_round_shift ( t0 ) ;\n out [ 4 ] = fdct_round_shift ( t2 ) ;\n out [ 8 ] = fdct_round_shift ( t1 ) ;\n out [ 12 ] = fdct_round_shift ( t3 ) ;\n t0 = ( s6 - s5 ) * cospi_16_64 ;\n t1 = ( s6 + s5 ) * cospi_16_64 ;\n t2 = fdct_round_shift ( t0 ) ;\n t3 = fdct_round_shift ( t1 ) ;\n x0 = s4 + t2 ;\n x1 = s4 - t2 ;\n x2 = s7 - t3 ;\n x3 = s7 + t3 ;\n t0 = x0 * cospi_28_64 + x3 * cospi_4_64 ;\n t1 = x1 * cospi_12_64 + x2 * cospi_20_64 ;\n t2 = x2 * cospi_12_64 + x1 * - cospi_20_64 ;\n t3 = x3 * cospi_28_64 + x0 * - cospi_4_64 ;\n out [ 2 ] = fdct_round_shift ( t0 ) ;\n out [ 6 ] = fdct_round_shift ( t2 ) ;\n out [ 10 ] = fdct_round_shift ( t1 ) ;\n out [ 14 ] = fdct_round_shift ( t3 ) ;\n }\n temp1 = ( step1 [ 5 ] - step1 [ 2 ] ) * cospi_16_64 ;\n temp2 = ( step1 [ 4 ] - step1 [ 3 ] ) * cospi_16_64 ;\n step2 [ 2 ] = fdct_round_shift ( temp1 ) ;\n step2 [ 3 ] = fdct_round_shift ( temp2 ) ;\n temp1 = ( step1 [ 4 ] + step1 [ 3 ] ) * cospi_16_64 ;\n temp2 = ( step1 [ 5 ] + step1 [ 2 ] ) * cospi_16_64 ;\n step2 [ 4 ] = fdct_round_shift ( temp1 ) ;\n step2 [ 5 ] = fdct_round_shift ( temp2 ) ;\n step3 [ 0 ] = step1 [ 0 ] + step2 [ 3 ] ;\n step3 [ 1 ] = step1 [ 1 ] + step2 [ 2 ] ;\n step3 [ 2 ] = step1 [ 1 ] - step2 [ 2 ] ;\n step3 [ 3 ] = step1 [ 0 ] - step2 [ 3 ] ;\n step3 [ 4 ] = step1 [ 7 ] - step2 [ 4 ] ;\n step3 [ 5 ] = step1 [ 6 ] - step2 [ 5 ] ;\n step3 [ 6 ] = step1 [ 6 ] + step2 [ 5 ] ;\n step3 [ 7 ] = step1 [ 7 ] + step2 [ 4 ] ;\n temp1 = step3 [ 1 ] * - cospi_8_64 + step3 [ 6 ] * cospi_24_64 ;\n temp2 = step3 [ 2 ] * cospi_24_64 + step3 [ 5 ] * cospi_8_64 ;\n step2 [ 1 ] = fdct_round_shift ( temp1 ) ;\n step2 [ 2 ] = fdct_round_shift ( temp2 ) ;\n temp1 = step3 [ 2 ] * cospi_8_64 - step3 [ 5 ] * cospi_24_64 ;\n temp2 = step3 [ 1 ] * cospi_24_64 + step3 [ 6 ] * cospi_8_64 ;\n step2 [ 5 ] = fdct_round_shift ( temp1 ) ;\n step2 [ 6 ] = fdct_round_shift ( temp2 ) ;\n step1 [ 0 ] = step3 [ 0 ] + step2 [ 1 ] ;\n step1 [ 1 ] = step3 [ 0 ] - step2 [ 1 ] ;\n step1 [ 2 ] = step3 [ 3 ] + step2 [ 2 ] ;\n step1 [ 3 ] = step3 [ 3 ] - step2 [ 2 ] ;\n step1 [ 4 ] = step3 [ 4 ] - step2 [ 5 ] ;\n step1 [ 5 ] = step3 [ 4 ] + step2 [ 5 ] ;\n step1 [ 6 ] = step3 [ 7 ] - step2 [ 6 ] ;\n step1 [ 7 ] = step3 [ 7 ] + step2 [ 6 ] ;\n temp1 = step1 [ 0 ] * cospi_30_64 + step1 [ 7 ] * cospi_2_64 ;\n temp2 = step1 [ 1 ] * cospi_14_64 + step1 [ 6 ] * cospi_18_64 ;\n out [ 1 ] = fdct_round_shift ( temp1 ) ;\n out [ 9 ] = fdct_round_shift ( temp2 ) ;\n temp1 = step1 [ 2 ] * cospi_22_64 + step1 [ 5 ] * cospi_10_64 ;\n temp2 = step1 [ 3 ] * cospi_6_64 + step1 [ 4 ] * cospi_26_64 ;\n out [ 5 ] = fdct_round_shift ( temp1 ) ;\n out [ 13 ] = fdct_round_shift ( temp2 ) ;\n temp1 = step1 [ 3 ] * - cospi_26_64 + step1 [ 4 ] * cospi_6_64 ;\n temp2 = step1 [ 2 ] * - cospi_10_64 + step1 [ 5 ] * cospi_22_64 ;\n out [ 3 ] = fdct_round_shift ( temp1 ) ;\n out [ 11 ] = fdct_round_shift ( temp2 ) ;\n temp1 = step1 [ 1 ] * - cospi_18_64 + step1 [ 6 ] * cospi_14_64 ;\n temp2 = step1 [ 0 ] * - cospi_2_64 + step1 [ 7 ] * cospi_30_64 ;\n out [ 7 ] = fdct_round_shift ( temp1 ) ;\n out [ 15 ] = fdct_round_shift ( temp2 ) ;\n }"}
{"idx": 13756, "target": 0, "func": "static void move_task_thread_func ( GTask * task , gpointer source_object , gpointer task_data , GCancellable * cancellable ) {\n CopyMoveJob * job ;\n CommonJob * common ;\n GList * fallbacks ;\n SourceInfo source_info ;\n TransferInfo transfer_info ;\n char * dest_fs_id ;\n char * dest_fs_type ;\n GList * fallback_files ;\n job = task_data ;\n common = & job -> common ;\n dest_fs_id = NULL ;\n dest_fs_type = NULL ;\n fallbacks = NULL ;\n nautilus_progress_info_start ( job -> common . progress ) ;\n verify_destination ( & job -> common , job -> destination , & dest_fs_id , - 1 ) ;\n if ( job_aborted ( common ) ) {\n goto aborted ;\n }\n move_files_prepare ( job , dest_fs_id , & dest_fs_type , & fallbacks ) ;\n if ( job_aborted ( common ) ) {\n goto aborted ;\n }\n fallback_files = get_files_from_fallbacks ( fallbacks ) ;\n scan_sources ( fallback_files , & source_info , common , OP_KIND_MOVE ) ;\n g_list_free ( fallback_files ) ;\n if ( job_aborted ( common ) ) {\n goto aborted ;\n }\n verify_destination ( & job -> common , job -> destination , NULL , source_info . num_bytes ) ;\n if ( job_aborted ( common ) ) {\n goto aborted ;\n }\n memset ( & transfer_info , 0 , sizeof ( transfer_info ) ) ;\n move_files ( job , fallbacks , dest_fs_id , & dest_fs_type , & source_info , & transfer_info ) ;\n aborted : g_list_free_full ( fallbacks , g_free ) ;\n g_free ( dest_fs_id ) ;\n g_free ( dest_fs_type ) ;\n }"}
{"idx": 13757, "target": 0, "func": "static int dissect_h225_ScnConnectionType ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_ScnConnectionType , ScnConnectionType_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 13758, "target": 0, "func": "BerElement * ber_init ( struct berval * bv ) {\n BerElement * ber ;\n assert ( bv != NULL ) ;\n if ( bv == NULL ) {\n return NULL ;\n }\n ber = ber_alloc_t ( 0 ) ;\n if ( ber == NULL ) {\n return NULL ;\n }\n if ( ( ( ber_len_t ) ber_write ( ber , bv -> bv_val , bv -> bv_len , 0 ) ) != bv -> bv_len ) {\n ber_free ( ber , 1 ) ;\n return NULL ;\n }\n ber_reset ( ber , 1 ) ;\n return ber ;\n }"}
{"idx": 13759, "target": 1, "func": "static void dumpDatabases ( PGconn * conn ) {\n PGresult * res ;\n int i ;\n if ( server_version >= 70100 ) res = executeQuery ( conn , \"SELECT datname FROM pg_database WHERE datallowconn ORDER BY 1\" ) ;\n else res = executeQuery ( conn , \"SELECT datname FROM pg_database ORDER BY 1\" ) ;\n for ( i = 0 ;\n i < PQntuples ( res ) ;\n i ++ ) {\n int ret ;\n char * dbname = PQgetvalue ( res , i , 0 ) ;\n if ( verbose ) fprintf ( stderr , _ ( \"%s: dumping database \\\"%s\\\"...\\n\" ) , progname , dbname ) ;\n fprintf ( OPF , \"\\\\connect %s\\n\\n\" , fmtId ( dbname ) ) ;\n fprintf ( OPF , \"SET default_transaction_read_only = off;\n\\n\\n\" ) ;\n if ( filename ) fclose ( OPF ) ;\n ret = runPgDump ( dbname ) ;\n if ( ret != 0 ) {\n fprintf ( stderr , _ ( \"%s: pg_dump failed on database \\\"%s\\\", exiting\\n\" ) , progname , dbname ) ;\n exit_nicely ( 1 ) ;\n }\n if ( filename ) {\n OPF = fopen ( filename , PG_BINARY_A ) ;\n if ( ! OPF ) {\n fprintf ( stderr , _ ( \"%s: could not re-open the output file \\\"%s\\\": %s\\n\" ) , progname , filename , strerror ( errno ) ) ;\n exit_nicely ( 1 ) ;\n }\n }\n }\n PQclear ( res ) ;\n }"}
{"idx": 13760, "target": 0, "func": "uint64_t mime_field_presence_mask ( const char * well_known_str ) {\n return hdrtoken_wks_to_mask ( well_known_str ) ;\n }"}
{"idx": 13761, "target": 0, "func": "inline static void _slurm_rpc_reboot_nodes ( slurm_msg_t * msg ) {\n int rc ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n # ifndef HAVE_FRONT_END int i ;\n struct node_record * node_ptr ;\n reboot_msg_t * reboot_msg = ( reboot_msg_t * ) msg -> data ;\n char * nodelist = NULL ;\n bitstr_t * bitmap = NULL ;\n slurmctld_lock_t node_write_lock = {\n NO_LOCK , NO_LOCK , WRITE_LOCK , NO_LOCK , NO_LOCK }\n ;\n time_t now = time ( NULL ) ;\n # endif DEF_TIMERS ;\n START_TIMER ;\n debug2 ( \"Processing RPC: REQUEST_REBOOT_NODES from uid=%d\" , uid ) ;\n if ( ! validate_super_user ( uid ) ) {\n error ( \"Security violation, REBOOT_NODES RPC from uid=%d\" , uid ) ;\n slurm_send_rc_msg ( msg , EACCES ) ;\n return ;\n }\n # ifdef HAVE_FRONT_END rc = ESLURM_NOT_SUPPORTED ;\n # else if ( reboot_msg ) nodelist = reboot_msg -> node_list ;\n if ( ! nodelist || ! xstrcasecmp ( nodelist , \"ALL\" ) ) {\n bitmap = bit_alloc ( node_record_count ) ;\n bit_nset ( bitmap , 0 , ( node_record_count - 1 ) ) ;\n }\n else if ( node_name2bitmap ( nodelist , false , & bitmap ) != 0 ) {\n FREE_NULL_BITMAP ( bitmap ) ;\n error ( \"Bad node list in REBOOT_NODES request: %s\" , nodelist ) ;\n slurm_send_rc_msg ( msg , ESLURM_INVALID_NODE_NAME ) ;\n return ;\n }\n lock_slurmctld ( node_write_lock ) ;\n for ( i = 0 , node_ptr = node_record_table_ptr ;\n i < node_record_count ;\n i ++ , node_ptr ++ ) {\n if ( ! bit_test ( bitmap , i ) ) continue ;\n if ( IS_NODE_FUTURE ( node_ptr ) || IS_NODE_DOWN ( node_ptr ) || ( IS_NODE_CLOUD ( node_ptr ) && IS_NODE_POWER_SAVE ( node_ptr ) ) ) {\n bit_clear ( bitmap , i ) ;\n continue ;\n }\n node_ptr -> node_state |= NODE_STATE_REBOOT ;\n node_ptr -> boot_req_time = now ;\n node_ptr -> last_response = now + slurmctld_config . boot_time ;\n if ( reboot_msg && ( reboot_msg -> flags & REBOOT_FLAGS_ASAP ) ) {\n node_ptr -> node_state |= NODE_STATE_DRAIN ;\n if ( node_ptr -> reason == NULL ) {\n node_ptr -> reason = xstrdup ( \"Reboot ASAP\" ) ;\n node_ptr -> reason_time = now ;\n node_ptr -> reason_uid = uid ;\n }\n }\n want_nodes_reboot = true ;\n }\n if ( want_nodes_reboot == true ) schedule_node_save ( ) ;\n unlock_slurmctld ( node_write_lock ) ;\n if ( want_nodes_reboot == true ) {\n nodelist = bitmap2node_name ( bitmap ) ;\n info ( \"reboot request queued for nodes %s\" , nodelist ) ;\n xfree ( nodelist ) ;\n }\n FREE_NULL_BITMAP ( bitmap ) ;\n rc = SLURM_SUCCESS ;\n # endif END_TIMER2 ( \"_slurm_rpc_reboot_nodes\" ) ;\n slurm_send_rc_msg ( msg , rc ) ;\n }"}
{"idx": 13762, "target": 0, "func": "static int cirrus_bitblt_cputovideo ( CirrusVGAState * s ) {\n int w ;\n if ( blit_is_unsafe ( s , true ) ) {\n return 0 ;\n }\n s -> cirrus_blt_mode &= ~ CIRRUS_BLTMODE_MEMSYSSRC ;\n s -> cirrus_srcptr = & s -> cirrus_bltbuf [ 0 ] ;\n s -> cirrus_srcptr_end = & s -> cirrus_bltbuf [ 0 ] ;\n if ( s -> cirrus_blt_mode & CIRRUS_BLTMODE_PATTERNCOPY ) {\n if ( s -> cirrus_blt_mode & CIRRUS_BLTMODE_COLOREXPAND ) {\n s -> cirrus_blt_srcpitch = 8 ;\n }\n else {\n s -> cirrus_blt_srcpitch = 8 * 8 * s -> cirrus_blt_pixelwidth ;\n }\n s -> cirrus_srccounter = s -> cirrus_blt_srcpitch ;\n }\n else {\n if ( s -> cirrus_blt_mode & CIRRUS_BLTMODE_COLOREXPAND ) {\n w = s -> cirrus_blt_width / s -> cirrus_blt_pixelwidth ;\n if ( s -> cirrus_blt_modeext & CIRRUS_BLTMODEEXT_DWORDGRANULARITY ) s -> cirrus_blt_srcpitch = ( ( w + 31 ) >> 5 ) ;\n else s -> cirrus_blt_srcpitch = ( ( w + 7 ) >> 3 ) ;\n }\n else {\n s -> cirrus_blt_srcpitch = ( s -> cirrus_blt_width + 3 ) & ~ 3 ;\n }\n s -> cirrus_srccounter = s -> cirrus_blt_srcpitch * s -> cirrus_blt_height ;\n }\n assert ( s -> cirrus_blt_srcpitch <= CIRRUS_BLTBUFSIZE ) ;\n s -> cirrus_srcptr = s -> cirrus_bltbuf ;\n s -> cirrus_srcptr_end = s -> cirrus_bltbuf + s -> cirrus_blt_srcpitch ;\n cirrus_update_memory_access ( s ) ;\n return 1 ;\n }"}
{"idx": 13763, "target": 0, "func": "static int ebml_parse_id ( MatroskaDemuxContext * matroska , EbmlSyntax * syntax , uint32_t id , void * data ) {\n int i ;\n for ( i = 0 ;\n syntax [ i ] . id ;\n i ++ ) if ( id == syntax [ i ] . id ) break ;\n if ( ! syntax [ i ] . id && id == MATROSKA_ID_CLUSTER && matroska -> num_levels > 0 && matroska -> levels [ matroska -> num_levels - 1 ] . length == 0xffffffffffffff ) return 0 ;\n if ( ! syntax [ i ] . id && id != EBML_ID_VOID && id != EBML_ID_CRC32 ) {\n av_log ( matroska -> ctx , AV_LOG_INFO , \"Unknown entry 0x%\" PRIX32 \"\\n\" , id ) ;\n if ( matroska -> ctx -> error_recognition & AV_EF_EXPLODE ) return AVERROR_INVALIDDATA ;\n }\n return ebml_parse_elem ( matroska , & syntax [ i ] , data ) ;\n }"}
{"idx": 13764, "target": 0, "func": "static int qemuMonitorSendVNCPassphrase ( qemuMonitorPtr mon ATTRIBUTE_UNUSED , qemuMonitorMessagePtr msg , const char * data ATTRIBUTE_UNUSED , size_t len ATTRIBUTE_UNUSED , void * opaque ) {\n char * passphrase = opaque ;\n size_t passphrase_len = strlen ( passphrase ) ;\n if ( VIR_REALLOC_N ( msg -> txBuffer , msg -> txLength + passphrase_len + 1 + 1 ) < 0 ) {\n virReportOOMError ( ) ;\n return - 1 ;\n }\n memcpy ( msg -> txBuffer + msg -> txLength , passphrase , passphrase_len ) ;\n msg -> txLength += passphrase_len ;\n msg -> txBuffer [ msg -> txLength ] = '\\r' ;\n msg -> txLength ++ ;\n msg -> txBuffer [ msg -> txLength ] = '\\0' ;\n return 0 ;\n }"}
{"idx": 13765, "target": 0, "func": "static void add_all_files_to_work_queue ( NautilusDirectory * directory ) {\n GList * node ;\n NautilusFile * file ;\n for ( node = directory -> details -> file_list ;\n node != NULL ;\n node = node -> next ) {\n file = NAUTILUS_FILE ( node -> data ) ;\n nautilus_directory_add_file_to_work_queue ( directory , file ) ;\n }\n }"}
{"idx": 13766, "target": 0, "func": "static void xps_insert_font ( xps_document * doc , char * name , fz_font * font ) {\n xps_font_cache * cache = fz_malloc_struct ( doc -> ctx , xps_font_cache ) ;\n cache -> name = fz_strdup ( doc -> ctx , name ) ;\n cache -> font = fz_keep_font ( doc -> ctx , font ) ;\n cache -> next = doc -> font_table ;\n doc -> font_table = cache ;\n }"}
{"idx": 13767, "target": 0, "func": "static inline MagickBooleanType IsPixelEquivalent ( const Image * restrict image , const Quantum * restrict p , const PixelInfo * restrict q ) {\n MagickRealType blue , green , red ;\n red = ( MagickRealType ) p [ image -> channel_map [ RedPixelChannel ] . offset ] ;\n green = ( MagickRealType ) p [ image -> channel_map [ GreenPixelChannel ] . offset ] ;\n blue = ( MagickRealType ) p [ image -> channel_map [ BluePixelChannel ] . offset ] ;\n if ( ( AbsolutePixelValue ( red - q -> red ) < MagickEpsilon ) && ( AbsolutePixelValue ( green - q -> green ) < MagickEpsilon ) && ( AbsolutePixelValue ( blue - q -> blue ) < MagickEpsilon ) ) return ( MagickTrue ) ;\n return ( MagickFalse ) ;\n }"}
{"idx": 13768, "target": 1, "func": "TEST_F ( ProtocolHandlerRegistryTest , TestReplaceHandler ) {\n ProtocolHandler ph1 = CreateProtocolHandler ( \"mailto\" , GURL ( \"http://test.com/%s\" ) , \"test1\" ) ;\n ProtocolHandler ph2 = CreateProtocolHandler ( \"mailto\" , GURL ( \"http://test.com/updated-url/%s\" ) , \"test2\" ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ;\n ASSERT_TRUE ( registry ( ) -> AttemptReplace ( ph2 ) ) ;\n const ProtocolHandler & handler ( registry ( ) -> GetHandlerFor ( \"mailto\" ) ) ;\n ASSERT_EQ ( handler . url ( ) , ph2 . url ( ) ) ;\n }"}
{"idx": 13769, "target": 0, "func": "err_status_t srtp_stream_init ( srtp_stream_ctx_t * srtp , const srtp_policy_t * p ) {\n err_status_t err ;\n debug_print ( mod_srtp , \"initializing stream (SSRC: 0x%08x)\" , p -> ssrc . value ) ;\n if ( p -> window_size != 0 && ( p -> window_size < 64 || p -> window_size >= 0x8000 ) ) return err_status_bad_param ;\n if ( p -> window_size != 0 ) err = rdbx_init ( & srtp -> rtp_rdbx , p -> window_size ) ;\n else err = rdbx_init ( & srtp -> rtp_rdbx , 128 ) ;\n if ( err ) return err ;\n # ifdef NO_64BIT_MATH {\n uint64_t temp ;\n temp = make64 ( UINT_MAX , UINT_MAX ) ;\n key_limit_set ( srtp -> limit , temp ) ;\n }\n # else key_limit_set ( srtp -> limit , 0xffffffffffffLL ) ;\n # endif srtp -> ssrc = htonl ( p -> ssrc . value ) ;\n srtp -> rtp_services = p -> rtp . sec_serv ;\n srtp -> rtcp_services = p -> rtcp . sec_serv ;\n srtp -> direction = dir_unknown ;\n rdb_init ( & srtp -> rtcp_rdb ) ;\n if ( p -> allow_repeat_tx != 0 && p -> allow_repeat_tx != 1 ) {\n rdbx_dealloc ( & srtp -> rtp_rdbx ) ;\n return err_status_bad_param ;\n }\n srtp -> allow_repeat_tx = p -> allow_repeat_tx ;\n err = srtp_stream_init_keys ( srtp , p -> key ) ;\n if ( err ) {\n rdbx_dealloc ( & srtp -> rtp_rdbx ) ;\n return err ;\n }\n err = ekt_stream_init_from_policy ( srtp -> ekt , p -> ekt ) ;\n if ( err ) {\n rdbx_dealloc ( & srtp -> rtp_rdbx ) ;\n return err ;\n }\n return err_status_ok ;\n }"}
{"idx": 13770, "target": 0, "func": "static int read_uncompressed_sgi ( unsigned char * out_buf , uint8_t * out_end , SgiState * s ) {\n int x , y , z ;\n unsigned int offset = s -> height * s -> width * s -> bytes_per_channel ;\n GetByteContext gp [ 4 ] ;\n if ( offset * s -> depth > bytestream2_get_bytes_left ( & s -> g ) ) return AVERROR_INVALIDDATA ;\n for ( z = 0 ;\n z < s -> depth ;\n z ++ ) {\n gp [ z ] = s -> g ;\n bytestream2_skip ( & gp [ z ] , z * offset ) ;\n }\n for ( y = s -> height - 1 ;\n y >= 0 ;\n y -- ) {\n out_end = out_buf + ( y * s -> linesize ) ;\n if ( s -> bytes_per_channel == 1 ) {\n for ( x = s -> width ;\n x > 0 ;\n x -- ) for ( z = 0 ;\n z < s -> depth ;\n z ++ ) * out_end ++ = bytestream2_get_byteu ( & gp [ z ] ) ;\n }\n else {\n uint16_t * out16 = ( uint16_t * ) out_end ;\n for ( x = s -> width ;\n x > 0 ;\n x -- ) for ( z = 0 ;\n z < s -> depth ;\n z ++ ) * out16 ++ = bytestream2_get_ne16u ( & gp [ z ] ) ;\n }\n }\n return 0 ;\n }"}
{"idx": 13771, "target": 1, "func": "void qemu_cpu_kick_self ( void ) {\n # ifndef _WIN32 assert ( cpu_single_env ) ;\n CPUState * cpu_single_cpu = ENV_GET_CPU ( cpu_single_env ) ;\n if ( ! cpu_single_cpu -> thread_kicked ) {\n qemu_cpu_kick_thread ( cpu_single_cpu ) ;\n cpu_single_cpu -> thread_kicked = true ;\n }\n # else abort ( ) ;\n # endif }"}
{"idx": 13772, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FullscreenControllerInteractiveTest , DISABLED_ToggleFullscreenModeForTab ) {\n GURL url = test_server ( ) -> GetURL ( \"simple.html\" ) ;\n AddTabAtIndex ( 0 , url , PAGE_TRANSITION_TYPED ) ;\n ASSERT_FALSE ( IsFullscreenPermissionRequested ( ) ) ;\n ASSERT_NO_FATAL_FAILURE ( ToggleTabFullscreenNoRetries ( true ) ) ;\n ASSERT_TRUE ( IsFullscreenPermissionRequested ( ) ) ;\n ASSERT_NO_FATAL_FAILURE ( ToggleTabFullscreenNoRetries ( false ) ) ;\n }"}
{"idx": 13773, "target": 1, "func": "static int yop_paint_block ( YopDecContext * s , int tag ) {\n if ( s -> src_end - s -> srcptr < paint_lut [ tag ] [ 3 ] ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Packet too small.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n s -> dstptr [ 0 ] = s -> srcptr [ 0 ] ;\n s -> dstptr [ 1 ] = s -> srcptr [ paint_lut [ tag ] [ 0 ] ] ;\n s -> dstptr [ s -> frame . linesize [ 0 ] ] = s -> srcptr [ paint_lut [ tag ] [ 1 ] ] ;\n s -> dstptr [ s -> frame . linesize [ 0 ] + 1 ] = s -> srcptr [ paint_lut [ tag ] [ 2 ] ] ;\n s -> srcptr += paint_lut [ tag ] [ 3 ] ;\n return 0 ;\n }"}
{"idx": 13774, "target": 0, "func": "static void setup ( char * argv0 , bool * live_check ) {\n char exec_path [ MAXPGPATH ] ;\n check_pghost_envvar ( ) ;\n verify_directories ( ) ;\n if ( pid_lock_file_exists ( old_cluster . pgdata ) ) {\n if ( start_postmaster ( & old_cluster , false ) ) stop_postmaster ( false ) ;\n else {\n if ( ! user_opts . check ) pg_fatal ( \"There seems to be a postmaster servicing the old cluster.\\n\" \"Please shutdown that postmaster and try again.\\n\" ) ;\n else * live_check = true ;\n }\n }\n if ( pid_lock_file_exists ( new_cluster . pgdata ) ) {\n if ( start_postmaster ( & new_cluster , false ) ) stop_postmaster ( false ) ;\n else pg_fatal ( \"There seems to be a postmaster servicing the new cluster.\\n\" \"Please shutdown that postmaster and try again.\\n\" ) ;\n }\n if ( find_my_exec ( argv0 , exec_path ) < 0 ) pg_fatal ( \"Could not get path name to pg_upgrade: %s\\n\" , getErrorText ( ) ) ;\n * last_dir_separator ( exec_path ) = '\\0' ;\n canonicalize_path ( exec_path ) ;\n os_info . exec_path = pg_strdup ( exec_path ) ;\n }"}
{"idx": 13775, "target": 0, "func": "double vp9_vaq_inv_q_ratio ( int energy ) {\n ENERGY_IN_BOUNDS ( energy ) ;\n vp9_clear_system_state ( ) ;\n return Q_RATIO ( - energy ) ;\n }"}
{"idx": 13776, "target": 0, "func": "unsigned int hb_set_get_population ( const hb_set_t * set ) {\n return set -> get_population ( ) ;\n }"}
{"idx": 13777, "target": 0, "func": "static COMPOUND_TEXT_CONVERTERS findStateFromEscSeq ( const char * source , const char * sourceLimit , const uint8_t * toUBytesBuffer , int32_t toUBytesBufferLength , UErrorCode * err ) {\n COMPOUND_TEXT_CONVERTERS state = INVALID ;\n UBool matchFound = FALSE ;\n int32_t i , n , offset = toUBytesBufferLength ;\n for ( i = 0 ;\n i < NUM_OF_CONVERTERS ;\n i ++ ) {\n matchFound = TRUE ;\n for ( n = 0 ;\n escSeqCompoundText [ i ] [ n ] != 0 ;\n n ++ ) {\n if ( n < toUBytesBufferLength ) {\n if ( toUBytesBuffer [ n ] != escSeqCompoundText [ i ] [ n ] ) {\n matchFound = FALSE ;\n break ;\n }\n }\n else if ( ( source + ( n - offset ) ) >= sourceLimit ) {\n * err = U_TRUNCATED_CHAR_FOUND ;\n matchFound = FALSE ;\n break ;\n }\n else if ( * ( source + ( n - offset ) ) != escSeqCompoundText [ i ] [ n ] ) {\n matchFound = FALSE ;\n break ;\n }\n }\n if ( matchFound ) {\n break ;\n }\n }\n if ( matchFound ) {\n state = ( COMPOUND_TEXT_CONVERTERS ) i ;\n }\n return state ;\n }"}
{"idx": 13778, "target": 0, "func": "static int dissect_h245_T_al3_sendBufferSize ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 332 \"../../asn1/h245/h245.cnf\" guint32 value ;\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 16777215U , & value , FALSE ) ;\n if ( h223_lc_params_temp && h223_lc_params_temp -> al_params ) ( ( h223_al3_params * ) h223_lc_params_temp -> al_params ) -> send_buffer_size = value & 0xfffff ;\n return offset ;\n }"}
{"idx": 13779, "target": 0, "func": "static void test_bug32265 ( ) {\n int rc ;\n MYSQL_STMT * stmt ;\n MYSQL_FIELD * field ;\n MYSQL_RES * metadata ;\n DBUG_ENTER ( \"test_bug32265\" ) ;\n myheader ( \"test_bug32265\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE t1 (a INTEGER)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO t1 VALUES (1)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE VIEW v1 AS SELECT * FROM t1\" ) ;\n myquery ( rc ) ;\n stmt = open_cursor ( \"SELECT * FROM t1\" ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n metadata = mysql_stmt_result_metadata ( stmt ) ;\n field = mysql_fetch_field ( metadata ) ;\n DIE_UNLESS ( field ) ;\n DIE_UNLESS ( strcmp ( field -> table , \"t1\" ) == 0 ) ;\n DIE_UNLESS ( strcmp ( field -> org_table , \"t1\" ) == 0 ) ;\n DIE_UNLESS ( strcmp ( field -> db , \"client_test_db\" ) == 0 ) ;\n mysql_free_result ( metadata ) ;\n mysql_stmt_close ( stmt ) ;\n stmt = open_cursor ( \"SELECT a '' FROM t1 ``\" ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n metadata = mysql_stmt_result_metadata ( stmt ) ;\n field = mysql_fetch_field ( metadata ) ;\n DIE_UNLESS ( strcmp ( field -> table , \"\" ) == 0 ) ;\n DIE_UNLESS ( strcmp ( field -> org_table , \"t1\" ) == 0 ) ;\n DIE_UNLESS ( strcmp ( field -> db , \"client_test_db\" ) == 0 ) ;\n mysql_free_result ( metadata ) ;\n mysql_stmt_close ( stmt ) ;\n stmt = open_cursor ( \"SELECT a '' FROM t1 ``\" ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n metadata = mysql_stmt_result_metadata ( stmt ) ;\n field = mysql_fetch_field ( metadata ) ;\n DIE_UNLESS ( strcmp ( field -> table , \"\" ) == 0 ) ;\n DIE_UNLESS ( strcmp ( field -> org_table , \"t1\" ) == 0 ) ;\n DIE_UNLESS ( strcmp ( field -> db , \"client_test_db\" ) == 0 ) ;\n mysql_free_result ( metadata ) ;\n mysql_stmt_close ( stmt ) ;\n stmt = open_cursor ( \"SELECT * FROM v1\" ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n metadata = mysql_stmt_result_metadata ( stmt ) ;\n field = mysql_fetch_field ( metadata ) ;\n DIE_UNLESS ( strcmp ( field -> table , \"v1\" ) == 0 ) ;\n DIE_UNLESS ( strcmp ( field -> org_table , \"v1\" ) == 0 ) ;\n DIE_UNLESS ( strcmp ( field -> db , \"client_test_db\" ) == 0 ) ;\n mysql_free_result ( metadata ) ;\n mysql_stmt_close ( stmt ) ;\n stmt = open_cursor ( \"SELECT * FROM v1 /* SIC */ GROUP BY 1\" ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n metadata = mysql_stmt_result_metadata ( stmt ) ;\n field = mysql_fetch_field ( metadata ) ;\n DIE_UNLESS ( strcmp ( field -> table , \"v1\" ) == 0 ) ;\n DIE_UNLESS ( strcmp ( field -> org_table , \"v1\" ) == 0 ) ;\n DIE_UNLESS ( strcmp ( field -> db , \"client_test_db\" ) == 0 ) ;\n mysql_free_result ( metadata ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"DROP VIEW v1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP TABLE t1\" ) ;\n myquery ( rc ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 13780, "target": 0, "func": "gboolean proto_check_for_protocol_or_field ( const proto_tree * tree , const int id ) {\n GPtrArray * ptrs = proto_get_finfo_ptr_array ( tree , id ) ;\n if ( g_ptr_array_len ( ptrs ) > 0 ) {\n return TRUE ;\n }\n else {\n return FALSE ;\n }\n }"}
{"idx": 13781, "target": 0, "func": "static VALUE ossl_asn1_ ## klass ( int argc , VALUE * argv , VALUE self ) \\ {\n return rb_funcall3 ( cASN1 ## klass , rb_intern ( \"new\" ) , argc , argv ) ;\n }\n OSSL_ASN1_IMPL_FACTORY_METHOD ( Boolean ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Integer ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Enumerated ) OSSL_ASN1_IMPL_FACTORY_METHOD ( BitString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( OctetString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( UTF8String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( NumericString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( PrintableString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( T61String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( VideotexString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( IA5String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( GraphicString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( ISO64String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( GeneralString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( UniversalString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( BMPString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Null )"}
{"idx": 13782, "target": 0, "func": "static void rds_inc_addref ( struct rds_incoming * inc ) {\n rdsdebug ( \"addref inc %p ref %d\\n\" , inc , atomic_read ( & inc -> i_refcount ) ) ;\n atomic_inc ( & inc -> i_refcount ) ;\n }"}
{"idx": 13783, "target": 0, "func": "static void http_post_test ( void ) {\n short port = - 1 ;\n struct evhttp_connection * evcon = NULL ;\n struct evhttp_request * req = NULL ;\n test_ok = 0 ;\n fprintf ( stdout , \"Testing HTTP POST Request: \" ) ;\n http = http_setup ( & port , NULL ) ;\n evcon = evhttp_connection_new ( \"127.0.0.1\" , port ) ;\n if ( evcon == NULL ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n req = evhttp_request_new ( http_postrequest_done , NULL ) ;\n if ( req == NULL ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n evhttp_add_header ( req -> output_headers , \"Host\" , \"somehost\" ) ;\n evbuffer_add_printf ( req -> output_buffer , POST_DATA ) ;\n if ( evhttp_make_request ( evcon , req , EVHTTP_REQ_POST , \"/postit\" ) == - 1 ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n event_dispatch ( ) ;\n evhttp_connection_free ( evcon ) ;\n evhttp_free ( http ) ;\n if ( test_ok != 1 ) {\n fprintf ( stdout , \"FAILED: %d\\n\" , test_ok ) ;\n exit ( 1 ) ;\n }\n fprintf ( stdout , \"OK\\n\" ) ;\n }"}
{"idx": 13784, "target": 1, "func": "static int dissect_h225_H245TransportAddress ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 544 \"./asn1/h225/h225.cnf\" h225_packet_info * h225_pi ;\n ipv4_address = 0 ;\n ipv6_address = ipv6_address_zeros ;\n ip_port = 0 ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_H245TransportAddress , H245TransportAddress_choice , NULL ) ;\n # line 552 \"./asn1/h225/h225.cnf\" h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n if ( h225_pi ) {\n h225_pi -> is_h245 = TRUE ;\n h225_pi -> h245_address = ipv4_address ;\n h225_pi -> h245_port = ip_port ;\n }\n if ( ! actx -> pinfo -> fd -> flags . visited && h245_handle && ip_port != 0 ) {\n address src_addr ;\n conversation_t * conv = NULL ;\n if ( ipv4_address != 0 ) {\n set_address ( & src_addr , AT_IPv4 , 4 , & ipv4_address ) ;\n }\n else if ( memcmp ( ipv6_address . bytes , ipv6_address_zeros . bytes , sizeof ( ipv6_address . bytes ) ) != 0 ) {\n set_address ( & src_addr , AT_IPv6 , 16 , ipv6_address . bytes ) ;\n }\n else {\n return offset ;\n }\n conv = find_conversation ( actx -> pinfo -> num , & src_addr , & src_addr , PT_TCP , ip_port , ip_port , NO_ADDR_B | NO_PORT_B ) ;\n if ( ! conv ) {\n conv = conversation_new ( actx -> pinfo -> num , & src_addr , & src_addr , PT_TCP , ip_port , ip_port , NO_ADDR2 | NO_PORT2 ) ;\n conversation_set_dissector ( conv , h245_handle ) ;\n }\n }\n return offset ;\n }"}
{"idx": 13785, "target": 0, "func": "int dissect_h225_SupportedProtocols ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_SupportedProtocols , SupportedProtocols_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 13786, "target": 0, "func": "static void U_CALLCONV _LMBCSClose ( UConverter * _this ) {\n if ( _this -> extraInfo != NULL ) {\n ulmbcs_byte_t Ix ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) _this -> extraInfo ;\n for ( Ix = 0 ;\n Ix <= ULMBCS_GRP_LAST ;\n Ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ Ix ] != NULL ) ucnv_unloadSharedDataIfReady ( extraInfo -> OptGrpConverter [ Ix ] ) ;\n }\n if ( ! _this -> isExtraLocal ) {\n uprv_free ( _this -> extraInfo ) ;\n _this -> extraInfo = NULL ;\n }\n }\n }"}
{"idx": 13787, "target": 0, "func": "void xps_parse_glyphs ( xps_document * doc , const fz_matrix * ctm , char * base_uri , xps_resource * dict , fz_xml * root ) {\n fz_xml * node ;\n char * fill_uri ;\n char * opacity_mask_uri ;\n char * bidi_level_att ;\n char * fill_att ;\n char * font_size_att ;\n char * font_uri_att ;\n char * origin_x_att ;\n char * origin_y_att ;\n char * is_sideways_att ;\n char * indices_att ;\n char * unicode_att ;\n char * style_att ;\n char * transform_att ;\n char * clip_att ;\n char * opacity_att ;\n char * opacity_mask_att ;\n char * navigate_uri_att ;\n fz_xml * transform_tag = NULL ;\n fz_xml * clip_tag = NULL ;\n fz_xml * fill_tag = NULL ;\n fz_xml * opacity_mask_tag = NULL ;\n char * fill_opacity_att = NULL ;\n xps_part * part ;\n fz_font * font ;\n char partname [ 1024 ] ;\n char fakename [ 1024 ] ;\n char * subfont ;\n float font_size = 10 ;\n int subfontid = 0 ;\n int is_sideways = 0 ;\n int bidi_level = 0 ;\n fz_text * text ;\n fz_rect area ;\n fz_matrix local_ctm = * ctm ;\n bidi_level_att = fz_xml_att ( root , \"BidiLevel\" ) ;\n fill_att = fz_xml_att ( root , \"Fill\" ) ;\n font_size_att = fz_xml_att ( root , \"FontRenderingEmSize\" ) ;\n font_uri_att = fz_xml_att ( root , \"FontUri\" ) ;\n origin_x_att = fz_xml_att ( root , \"OriginX\" ) ;\n origin_y_att = fz_xml_att ( root , \"OriginY\" ) ;\n is_sideways_att = fz_xml_att ( root , \"IsSideways\" ) ;\n indices_att = fz_xml_att ( root , \"Indices\" ) ;\n unicode_att = fz_xml_att ( root , \"UnicodeString\" ) ;\n style_att = fz_xml_att ( root , \"StyleSimulations\" ) ;\n transform_att = fz_xml_att ( root , \"RenderTransform\" ) ;\n clip_att = fz_xml_att ( root , \"Clip\" ) ;\n opacity_att = fz_xml_att ( root , \"Opacity\" ) ;\n opacity_mask_att = fz_xml_att ( root , \"OpacityMask\" ) ;\n navigate_uri_att = fz_xml_att ( root , \"FixedPage.NavigateUri\" ) ;\n for ( node = fz_xml_down ( root ) ;\n node ;\n node = fz_xml_next ( node ) ) {\n if ( ! strcmp ( fz_xml_tag ( node ) , \"Glyphs.RenderTransform\" ) ) transform_tag = fz_xml_down ( node ) ;\n if ( ! strcmp ( fz_xml_tag ( node ) , \"Glyphs.OpacityMask\" ) ) opacity_mask_tag = fz_xml_down ( node ) ;\n if ( ! strcmp ( fz_xml_tag ( node ) , \"Glyphs.Clip\" ) ) clip_tag = fz_xml_down ( node ) ;\n if ( ! strcmp ( fz_xml_tag ( node ) , \"Glyphs.Fill\" ) ) fill_tag = fz_xml_down ( node ) ;\n }\n fill_uri = base_uri ;\n opacity_mask_uri = base_uri ;\n xps_resolve_resource_reference ( doc , dict , & transform_att , & transform_tag , NULL ) ;\n xps_resolve_resource_reference ( doc , dict , & clip_att , & clip_tag , NULL ) ;\n xps_resolve_resource_reference ( doc , dict , & fill_att , & fill_tag , & fill_uri ) ;\n xps_resolve_resource_reference ( doc , dict , & opacity_mask_att , & opacity_mask_tag , & opacity_mask_uri ) ;\n if ( ! font_size_att || ! font_uri_att || ! origin_x_att || ! origin_y_att ) {\n fz_warn ( doc -> ctx , \"missing attributes in glyphs element\" ) ;\n return ;\n }\n if ( ! indices_att && ! unicode_att ) return ;\n if ( is_sideways_att ) is_sideways = ! strcmp ( is_sideways_att , \"true\" ) ;\n if ( bidi_level_att ) bidi_level = atoi ( bidi_level_att ) ;\n xps_resolve_url ( partname , base_uri , font_uri_att , sizeof partname ) ;\n subfont = strrchr ( partname , '#' ) ;\n if ( subfont ) {\n subfontid = atoi ( subfont + 1 ) ;\n * subfont = 0 ;\n }\n fz_strlcpy ( fakename , partname , sizeof fakename ) ;\n if ( style_att ) {\n if ( ! strcmp ( style_att , \"BoldSimulation\" ) ) fz_strlcat ( fakename , \"#Bold\" , sizeof fakename ) ;\n else if ( ! strcmp ( style_att , \"ItalicSimulation\" ) ) fz_strlcat ( fakename , \"#Italic\" , sizeof fakename ) ;\n else if ( ! strcmp ( style_att , \"BoldItalicSimulation\" ) ) fz_strlcat ( fakename , \"#BoldItalic\" , sizeof fakename ) ;\n }\n font = xps_lookup_font ( doc , fakename ) ;\n if ( ! font ) {\n fz_try ( doc -> ctx ) {\n part = xps_read_part ( doc , partname ) ;\n }\n fz_catch ( doc -> ctx ) {\n fz_rethrow_if ( doc -> ctx , FZ_ERROR_TRYLATER ) ;\n fz_warn ( doc -> ctx , \"cannot find font resource part '%s'\" , partname ) ;\n return ;\n }\n if ( strstr ( part -> name , \".odttf\" ) ) xps_deobfuscate_font_resource ( doc , part ) ;\n if ( strstr ( part -> name , \".ODTTF\" ) ) xps_deobfuscate_font_resource ( doc , part ) ;\n fz_try ( doc -> ctx ) {\n fz_buffer * buf = fz_new_buffer_from_data ( doc -> ctx , part -> data , part -> size ) ;\n font = fz_new_font_from_buffer ( doc -> ctx , NULL , buf , subfontid , 1 ) ;\n fz_drop_buffer ( doc -> ctx , buf ) ;\n }\n fz_catch ( doc -> ctx ) {\n fz_rethrow_if ( doc -> ctx , FZ_ERROR_TRYLATER ) ;\n fz_warn ( doc -> ctx , \"cannot load font resource '%s'\" , partname ) ;\n xps_free_part ( doc , part ) ;\n return ;\n }\n if ( style_att ) {\n font -> ft_bold = ! ! strstr ( style_att , \"Bold\" ) ;\n font -> ft_italic = ! ! strstr ( style_att , \"Italic\" ) ;\n }\n xps_select_best_font_encoding ( doc , font ) ;\n xps_insert_font ( doc , fakename , font ) ;\n fz_free ( doc -> ctx , part -> name ) ;\n fz_free ( doc -> ctx , part ) ;\n }\n if ( transform_att || transform_tag ) {\n fz_matrix transform ;\n if ( transform_att ) xps_parse_render_transform ( doc , transform_att , & transform ) ;\n if ( transform_tag ) xps_parse_matrix_transform ( doc , transform_tag , & transform ) ;\n fz_concat ( & local_ctm , & transform , & local_ctm ) ;\n }\n if ( clip_att || clip_tag ) xps_clip ( doc , & local_ctm , dict , clip_att , clip_tag ) ;\n font_size = fz_atof ( font_size_att ) ;\n text = xps_parse_glyphs_imp ( doc , & local_ctm , font , font_size , fz_atof ( origin_x_att ) , fz_atof ( origin_y_att ) , is_sideways , bidi_level , indices_att , unicode_att ) ;\n fz_bound_text ( doc -> ctx , text , NULL , & local_ctm , & area ) ;\n if ( navigate_uri_att ) xps_add_link ( doc , & area , base_uri , navigate_uri_att ) ;\n xps_begin_opacity ( doc , & local_ctm , & area , opacity_mask_uri , dict , opacity_att , opacity_mask_tag ) ;\n if ( fill_tag && ! strcmp ( fz_xml_tag ( fill_tag ) , \"SolidColorBrush\" ) ) {\n fill_opacity_att = fz_xml_att ( fill_tag , \"Opacity\" ) ;\n fill_att = fz_xml_att ( fill_tag , \"Color\" ) ;\n fill_tag = NULL ;\n }\n if ( fill_att ) {\n float samples [ FZ_MAX_COLORS ] ;\n fz_colorspace * colorspace ;\n xps_parse_color ( doc , base_uri , fill_att , & colorspace , samples ) ;\n if ( fill_opacity_att ) samples [ 0 ] *= fz_atof ( fill_opacity_att ) ;\n xps_set_color ( doc , colorspace , samples ) ;\n fz_fill_text ( doc -> dev , text , & local_ctm , doc -> colorspace , doc -> color , doc -> alpha ) ;\n }\n if ( fill_tag ) {\n fz_clip_text ( doc -> dev , text , & local_ctm , 0 ) ;\n xps_parse_brush ( doc , & local_ctm , & area , fill_uri , dict , fill_tag ) ;\n fz_pop_clip ( doc -> dev ) ;\n }\n xps_end_opacity ( doc , opacity_mask_uri , dict , opacity_att , opacity_mask_tag ) ;\n fz_free_text ( doc -> ctx , text ) ;\n if ( clip_att || clip_tag ) fz_pop_clip ( doc -> dev ) ;\n fz_drop_font ( doc -> ctx , font ) ;\n }"}
{"idx": 13788, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , TestReplaceHandler ) {\n ProtocolHandler ph1 = CreateProtocolHandler ( \"mailto\" , GURL ( \"http://test.com/%s\" ) ) ;\n ProtocolHandler ph2 = CreateProtocolHandler ( \"mailto\" , GURL ( \"http://test.com/updated-url/%s\" ) ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ;\n ASSERT_TRUE ( registry ( ) -> AttemptReplace ( ph2 ) ) ;\n const ProtocolHandler & handler ( registry ( ) -> GetHandlerFor ( \"mailto\" ) ) ;\n ASSERT_EQ ( handler . url ( ) , ph2 . url ( ) ) ;\n }"}
{"idx": 13789, "target": 0, "func": "TEST_F ( WebFrameSimTest , LayoutViewLocalVisualRect ) {\n UseAndroidSettings ( ) ;\n WebView ( ) . Resize ( WebSize ( 600 , 400 ) ) ;\n WebView ( ) . SetDefaultPageScaleLimits ( 0.5f , 2 ) ;\n SimRequest main_resource ( \"https://example.com/test.html\" , \"text/html\" ) ;\n LoadURL ( \"https://example.com/test.html\" ) ;\n main_resource . Complete ( R \"HTML( < meta name = 'viewport' content = 'width=device-width, minimum-scale=0.5' > < body style = 'margin: 0;\n width: 1800px;\n height: 1200px' > < / div > ) HTML \");\n Compositor ( ) . BeginFrame ( ) ;\n ASSERT_EQ ( LayoutRect ( 0 , 0 , 1200 , 800 ) , GetDocument ( ) . GetLayoutView ( ) -> LocalVisualRect ( ) ) ;\n }"}
{"idx": 13790, "target": 0, "func": "static int decode_p_frame ( FourXContext * f , AVFrame * frame , const uint8_t * buf , int length ) {\n int x , y ;\n const int width = f -> avctx -> width ;\n const int height = f -> avctx -> height ;\n uint16_t * src = ( uint16_t * ) f -> last_picture -> data [ 0 ] ;\n uint16_t * dst = ( uint16_t * ) frame -> data [ 0 ] ;\n const int stride = frame -> linesize [ 0 ] >> 1 ;\n unsigned int bitstream_size , bytestream_size , wordstream_size , extra , bytestream_offset , wordstream_offset ;\n if ( f -> version > 1 ) {\n extra = 20 ;\n bitstream_size = AV_RL32 ( buf + 8 ) ;\n wordstream_size = AV_RL32 ( buf + 12 ) ;\n bytestream_size = AV_RL32 ( buf + 16 ) ;\n }\n else {\n extra = 0 ;\n bitstream_size = AV_RL16 ( buf - 4 ) ;\n wordstream_size = AV_RL16 ( buf - 2 ) ;\n bytestream_size = FFMAX ( length - bitstream_size - wordstream_size , 0 ) ;\n }\n if ( bitstream_size + bytestream_size + wordstream_size + extra != length || bitstream_size > ( 1 << 26 ) || bytestream_size > ( 1 << 26 ) || wordstream_size > ( 1 << 26 ) ) {\n av_log ( f -> avctx , AV_LOG_ERROR , \"lengths %d %d %d %d\\n\" , bitstream_size , bytestream_size , wordstream_size , bitstream_size + bytestream_size + wordstream_size - length ) ;\n return AVERROR_INVALIDDATA ;\n }\n av_fast_malloc ( & f -> bitstream_buffer , & f -> bitstream_buffer_size , bitstream_size + FF_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( ! f -> bitstream_buffer ) return AVERROR ( ENOMEM ) ;\n f -> dsp . bswap_buf ( f -> bitstream_buffer , ( const uint32_t * ) ( buf + extra ) , bitstream_size / 4 ) ;\n memset ( ( uint8_t * ) f -> bitstream_buffer + bitstream_size , 0 , FF_INPUT_BUFFER_PADDING_SIZE ) ;\n init_get_bits ( & f -> gb , f -> bitstream_buffer , 8 * bitstream_size ) ;\n wordstream_offset = extra + bitstream_size ;\n bytestream_offset = extra + bitstream_size + wordstream_size ;\n bytestream2_init ( & f -> g2 , buf + wordstream_offset , length - wordstream_offset ) ;\n bytestream2_init ( & f -> g , buf + bytestream_offset , length - bytestream_offset ) ;\n init_mv ( f , frame -> linesize [ 0 ] ) ;\n for ( y = 0 ;\n y < height ;\n y += 8 ) {\n for ( x = 0 ;\n x < width ;\n x += 8 ) decode_p_block ( f , dst + x , src + x , 3 , 3 , stride ) ;\n src += 8 * stride ;\n dst += 8 * stride ;\n }\n return 0 ;\n }"}
{"idx": 13791, "target": 0, "func": "static inline int check_line ( uint8_t * buf , uint8_t * start , uint8_t * end ) {\n return buf >= start && ( buf + 4 ) <= end ;\n }"}
{"idx": 13792, "target": 0, "func": "static int decode_exp_vlc ( WMACodecContext * s , int ch ) {\n int last_exp , n , code ;\n const uint16_t * ptr ;\n float v , max_scale ;\n uint32_t * q , * q_end , iv ;\n const float * ptab = pow_tab + 60 ;\n const uint32_t * iptab = ( const uint32_t * ) ptab ;\n ptr = s -> exponent_bands [ s -> frame_len_bits - s -> block_len_bits ] ;\n q = ( uint32_t * ) s -> exponents [ ch ] ;\n q_end = q + s -> block_len ;\n max_scale = 0 ;\n if ( s -> version == 1 ) {\n last_exp = get_bits ( & s -> gb , 5 ) + 10 ;\n v = ptab [ last_exp ] ;\n iv = iptab [ last_exp ] ;\n max_scale = v ;\n n = * ptr ++ ;\n switch ( n & 3 ) do {\n case 0 : * q ++ = iv ;\n case 3 : * q ++ = iv ;\n case 2 : * q ++ = iv ;\n case 1 : * q ++ = iv ;\n }\n while ( ( n -= 4 ) > 0 ) ;\n }\n else last_exp = 36 ;\n while ( q < q_end ) {\n code = get_vlc2 ( & s -> gb , s -> exp_vlc . table , EXPVLCBITS , EXPMAX ) ;\n if ( code < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Exponent vlc invalid\\n\" ) ;\n return - 1 ;\n }\n last_exp += code - 60 ;\n if ( ( unsigned ) last_exp + 60 >= FF_ARRAY_ELEMS ( pow_tab ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Exponent out of range: %d\\n\" , last_exp ) ;\n return - 1 ;\n }\n v = ptab [ last_exp ] ;\n iv = iptab [ last_exp ] ;\n if ( v > max_scale ) max_scale = v ;\n n = * ptr ++ ;\n switch ( n & 3 ) do {\n case 0 : * q ++ = iv ;\n case 3 : * q ++ = iv ;\n case 2 : * q ++ = iv ;\n case 1 : * q ++ = iv ;\n }\n while ( ( n -= 4 ) > 0 ) ;\n }\n s -> max_exponent [ ch ] = max_scale ;\n return 0 ;\n }"}
{"idx": 13793, "target": 0, "func": "static int jbig2_word_stream_buf_get_next_word ( Jbig2WordStream * self , size_t offset , uint32_t * word ) {\n Jbig2WordStreamBuf * z = ( Jbig2WordStreamBuf * ) self ;\n const byte * data = z -> data ;\n uint32_t result ;\n if ( offset + 4 < z -> size ) result = ( data [ offset ] << 24 ) | ( data [ offset + 1 ] << 16 ) | ( data [ offset + 2 ] << 8 ) | data [ offset + 3 ] ;\n else if ( offset > z -> size ) return - 1 ;\n else {\n size_t i ;\n result = 0 ;\n for ( i = 0 ;\n i < z -> size - offset ;\n i ++ ) result |= data [ offset + i ] << ( ( 3 - i ) << 3 ) ;\n }\n * word = result ;\n return 0 ;\n }"}
{"idx": 13794, "target": 0, "func": "static int optimize_b ( MACROBLOCK * mb , int plane , int block , TX_SIZE tx_size , int ctx ) {\n MACROBLOCKD * const xd = & mb -> e_mbd ;\n struct macroblock_plane * const p = & mb -> plane [ plane ] ;\n struct macroblockd_plane * const pd = & xd -> plane [ plane ] ;\n const int ref = is_inter_block ( & xd -> mi [ 0 ] . src_mi -> mbmi ) ;\n vp9_token_state tokens [ 1025 ] [ 2 ] ;\n unsigned best_index [ 1025 ] [ 2 ] ;\n uint8_t token_cache [ 1024 ] ;\n const tran_low_t * const coeff = BLOCK_OFFSET ( mb -> plane [ plane ] . coeff , block ) ;\n tran_low_t * const qcoeff = BLOCK_OFFSET ( p -> qcoeff , block ) ;\n tran_low_t * const dqcoeff = BLOCK_OFFSET ( pd -> dqcoeff , block ) ;\n const int eob = p -> eobs [ block ] ;\n const PLANE_TYPE type = pd -> plane_type ;\n const int default_eob = 16 << ( tx_size << 1 ) ;\n const int mul = 1 + ( tx_size == TX_32X32 ) ;\n const int16_t * dequant_ptr = pd -> dequant ;\n const uint8_t * const band_translate = get_band_translate ( tx_size ) ;\n const scan_order * const so = get_scan ( xd , tx_size , type , block ) ;\n const int16_t * const scan = so -> scan ;\n const int16_t * const nb = so -> neighbors ;\n int next = eob , sz = 0 ;\n int64_t rdmult = mb -> rdmult * plane_rd_mult [ type ] , rddiv = mb -> rddiv ;\n int64_t rd_cost0 , rd_cost1 ;\n int rate0 , rate1 , error0 , error1 , t0 , t1 ;\n int best , band , pt , i , final_eob ;\n assert ( ( ! type && ! plane ) || ( type && plane ) ) ;\n assert ( eob <= default_eob ) ;\n if ( ! ref ) rdmult = ( rdmult * 9 ) >> 4 ;\n tokens [ eob ] [ 0 ] . rate = 0 ;\n tokens [ eob ] [ 0 ] . error = 0 ;\n tokens [ eob ] [ 0 ] . next = default_eob ;\n tokens [ eob ] [ 0 ] . token = EOB_TOKEN ;\n tokens [ eob ] [ 0 ] . qc = 0 ;\n tokens [ eob ] [ 1 ] = tokens [ eob ] [ 0 ] ;\n for ( i = 0 ;\n i < eob ;\n i ++ ) token_cache [ scan [ i ] ] = vp9_pt_energy_class [ vp9_dct_value_tokens_ptr [ qcoeff [ scan [ i ] ] ] . token ] ;\n for ( i = eob ;\n i -- > 0 ;\n ) {\n int base_bits , d2 , dx ;\n const int rc = scan [ i ] ;\n int x = qcoeff [ rc ] ;\n if ( x ) {\n int shortcut = 0 ;\n error0 = tokens [ next ] [ 0 ] . error ;\n error1 = tokens [ next ] [ 1 ] . error ;\n rate0 = tokens [ next ] [ 0 ] . rate ;\n rate1 = tokens [ next ] [ 1 ] . rate ;\n t0 = ( vp9_dct_value_tokens_ptr + x ) -> token ;\n if ( next < default_eob ) {\n band = band_translate [ i + 1 ] ;\n pt = trellis_get_coeff_context ( scan , nb , i , t0 , token_cache ) ;\n rate0 += mb -> token_costs [ tx_size ] [ type ] [ ref ] [ band ] [ 0 ] [ pt ] [ tokens [ next ] [ 0 ] . token ] ;\n rate1 += mb -> token_costs [ tx_size ] [ type ] [ ref ] [ band ] [ 0 ] [ pt ] [ tokens [ next ] [ 1 ] . token ] ;\n }\n UPDATE_RD_COST ( ) ;\n best = rd_cost1 < rd_cost0 ;\n base_bits = vp9_dct_value_cost_ptr [ x ] ;\n dx = mul * ( dqcoeff [ rc ] - coeff [ rc ] ) ;\n d2 = dx * dx ;\n tokens [ i ] [ 0 ] . rate = base_bits + ( best ? rate1 : rate0 ) ;\n tokens [ i ] [ 0 ] . error = d2 + ( best ? error1 : error0 ) ;\n tokens [ i ] [ 0 ] . next = next ;\n tokens [ i ] [ 0 ] . token = t0 ;\n tokens [ i ] [ 0 ] . qc = x ;\n best_index [ i ] [ 0 ] = best ;\n rate0 = tokens [ next ] [ 0 ] . rate ;\n rate1 = tokens [ next ] [ 1 ] . rate ;\n if ( ( abs ( x ) * dequant_ptr [ rc != 0 ] > abs ( coeff [ rc ] ) * mul ) && ( abs ( x ) * dequant_ptr [ rc != 0 ] < abs ( coeff [ rc ] ) * mul + dequant_ptr [ rc != 0 ] ) ) shortcut = 1 ;\n else shortcut = 0 ;\n if ( shortcut ) {\n sz = - ( x < 0 ) ;\n x -= 2 * sz + 1 ;\n }\n if ( ! x ) {\n t0 = tokens [ next ] [ 0 ] . token == EOB_TOKEN ? EOB_TOKEN : ZERO_TOKEN ;\n t1 = tokens [ next ] [ 1 ] . token == EOB_TOKEN ? EOB_TOKEN : ZERO_TOKEN ;\n }\n else {\n t0 = t1 = ( vp9_dct_value_tokens_ptr + x ) -> token ;\n }\n if ( next < default_eob ) {\n band = band_translate [ i + 1 ] ;\n if ( t0 != EOB_TOKEN ) {\n pt = trellis_get_coeff_context ( scan , nb , i , t0 , token_cache ) ;\n rate0 += mb -> token_costs [ tx_size ] [ type ] [ ref ] [ band ] [ ! x ] [ pt ] [ tokens [ next ] [ 0 ] . token ] ;\n }\n if ( t1 != EOB_TOKEN ) {\n pt = trellis_get_coeff_context ( scan , nb , i , t1 , token_cache ) ;\n rate1 += mb -> token_costs [ tx_size ] [ type ] [ ref ] [ band ] [ ! x ] [ pt ] [ tokens [ next ] [ 1 ] . token ] ;\n }\n }\n UPDATE_RD_COST ( ) ;\n best = rd_cost1 < rd_cost0 ;\n base_bits = vp9_dct_value_cost_ptr [ x ] ;\n if ( shortcut ) {\n dx -= ( dequant_ptr [ rc != 0 ] + sz ) ^ sz ;\n d2 = dx * dx ;\n }\n tokens [ i ] [ 1 ] . rate = base_bits + ( best ? rate1 : rate0 ) ;\n tokens [ i ] [ 1 ] . error = d2 + ( best ? error1 : error0 ) ;\n tokens [ i ] [ 1 ] . next = next ;\n tokens [ i ] [ 1 ] . token = best ? t1 : t0 ;\n tokens [ i ] [ 1 ] . qc = x ;\n best_index [ i ] [ 1 ] = best ;\n next = i ;\n }\n else {\n band = band_translate [ i + 1 ] ;\n t0 = tokens [ next ] [ 0 ] . token ;\n t1 = tokens [ next ] [ 1 ] . token ;\n if ( t0 != EOB_TOKEN ) {\n tokens [ next ] [ 0 ] . rate += mb -> token_costs [ tx_size ] [ type ] [ ref ] [ band ] [ 1 ] [ 0 ] [ t0 ] ;\n tokens [ next ] [ 0 ] . token = ZERO_TOKEN ;\n }\n if ( t1 != EOB_TOKEN ) {\n tokens [ next ] [ 1 ] . rate += mb -> token_costs [ tx_size ] [ type ] [ ref ] [ band ] [ 1 ] [ 0 ] [ t1 ] ;\n tokens [ next ] [ 1 ] . token = ZERO_TOKEN ;\n }\n best_index [ i ] [ 0 ] = best_index [ i ] [ 1 ] = 0 ;\n }\n }\n band = band_translate [ i + 1 ] ;\n rate0 = tokens [ next ] [ 0 ] . rate ;\n rate1 = tokens [ next ] [ 1 ] . rate ;\n error0 = tokens [ next ] [ 0 ] . error ;\n error1 = tokens [ next ] [ 1 ] . error ;\n t0 = tokens [ next ] [ 0 ] . token ;\n t1 = tokens [ next ] [ 1 ] . token ;\n rate0 += mb -> token_costs [ tx_size ] [ type ] [ ref ] [ band ] [ 0 ] [ ctx ] [ t0 ] ;\n rate1 += mb -> token_costs [ tx_size ] [ type ] [ ref ] [ band ] [ 0 ] [ ctx ] [ t1 ] ;\n UPDATE_RD_COST ( ) ;\n best = rd_cost1 < rd_cost0 ;\n final_eob = - 1 ;\n vpx_memset ( qcoeff , 0 , sizeof ( * qcoeff ) * ( 16 << ( tx_size * 2 ) ) ) ;\n vpx_memset ( dqcoeff , 0 , sizeof ( * dqcoeff ) * ( 16 << ( tx_size * 2 ) ) ) ;\n for ( i = next ;\n i < eob ;\n i = next ) {\n const int x = tokens [ i ] [ best ] . qc ;\n const int rc = scan [ i ] ;\n if ( x ) {\n final_eob = i ;\n }\n qcoeff [ rc ] = x ;\n dqcoeff [ rc ] = ( x * dequant_ptr [ rc != 0 ] ) / mul ;\n next = tokens [ i ] [ best ] . next ;\n best = best_index [ i ] [ best ] ;\n }\n final_eob ++ ;\n mb -> plane [ plane ] . eobs [ block ] = final_eob ;\n return final_eob ;\n }"}
{"idx": 13795, "target": 0, "func": "static void * main_malloc ( size_t size ) {\n void * r = main_malloc1 ( size ) ;\n if ( r ) {\n IF_DEBUG ( main_mallocs += 1 ) ;\n }\n return r ;\n }"}
{"idx": 13796, "target": 0, "func": "static void ecc_init ( hwaddr base , qemu_irq irq , uint32_t version ) {\n DeviceState * dev ;\n SysBusDevice * s ;\n dev = qdev_create ( NULL , \"eccmemctl\" ) ;\n qdev_prop_set_uint32 ( dev , \"version\" , version ) ;\n qdev_init_nofail ( dev ) ;\n s = SYS_BUS_DEVICE ( dev ) ;\n sysbus_connect_irq ( s , 0 , irq ) ;\n sysbus_mmio_map ( s , 0 , base ) ;\n if ( version == 0 ) {\n sysbus_mmio_map ( s , 1 , base + 0x1000 ) ;\n }\n }"}
{"idx": 13797, "target": 0, "func": "int wpa_sess_get ( u_char * sta , struct wpa_sa * sa ) {\n struct wpa_session * e ;\n pthread_mutex_lock ( & root_mutex ) ;\n LIST_FOREACH ( e , & wpa_sess_root , next ) {\n if ( ! memcmp ( & e -> sta , sta , ETH_ADDR_LEN ) ) {\n memcpy ( sa , & e -> sa , sizeof ( struct wpa_sa ) ) ;\n pthread_mutex_unlock ( & root_mutex ) ;\n return E_SUCCESS ;\n }\n }\n pthread_mutex_unlock ( & root_mutex ) ;\n return - E_NOTFOUND ;\n }"}
{"idx": 13798, "target": 0, "func": "static int ps2_kbd_post_load ( void * opaque , int version_id ) {\n PS2KbdState * s = ( PS2KbdState * ) opaque ;\n PS2State * ps2 = & s -> common ;\n if ( version_id == 2 ) s -> scancode_set = 2 ;\n ps2_common_post_load ( ps2 ) ;\n return 0 ;\n }"}
{"idx": 13799, "target": 0, "func": "void dissect_geographical_description ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree ) {\n proto_item * lat_item , * long_item , * major_item , * minor_item , * alt_item , * uncer_item ;\n guint8 type_of_shape ;\n int offset = 0 ;\n int length ;\n guint8 value ;\n guint32 uvalue32 ;\n gint32 svalue32 ;\n length = tvb_reported_length_remaining ( tvb , 0 ) ;\n proto_tree_add_item ( tree , hf_gsm_a_geo_loc_type_of_shape , tvb , 0 , 1 , ENC_BIG_ENDIAN ) ;\n if ( length < 2 ) return ;\n type_of_shape = tvb_get_guint8 ( tvb , offset ) >> 4 ;\n switch ( type_of_shape ) {\n case ELLIPSOID_POINT : case ELLIPSOID_POINT_WITH_UNCERT_CIRC : case ELLIPSOID_POINT_WITH_UNCERT_ELLIPSE : case ELLIPSOID_POINT_WITH_ALT : case ELLIPSOID_POINT_WITH_ALT_AND_UNCERT_ELLIPSOID : case ELLIPSOID_ARC : offset ++ ;\n if ( length < 4 ) return ;\n proto_tree_add_item ( tree , hf_gsm_a_geo_loc_sign_of_lat , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n uvalue32 = tvb_get_ntoh24 ( tvb , offset ) ;\n lat_item = proto_tree_add_item ( tree , hf_gsm_a_geo_loc_deg_of_lat , tvb , offset , 3 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( lat_item , \" (%s%.5f degrees)\" , ( uvalue32 & 0x00800000 ) ? \"-\" : \"\" , ( ( double ) ( uvalue32 & 0x7fffff ) / 8388607.0 ) * 90 ) ;\n if ( length < 7 ) return ;\n offset = offset + 3 ;\n svalue32 = tvb_get_ntoh24 ( tvb , offset ) ;\n svalue32 |= ( svalue32 & 0x800000 ) ? 0xff000000 : 0x00000000 ;\n long_item = proto_tree_add_item ( tree , hf_gsm_a_geo_loc_deg_of_long , tvb , offset , 3 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( long_item , \" (%.5f degrees)\" , ( ( double ) svalue32 / 16777215.0 ) * 360 ) ;\n offset = offset + 3 ;\n if ( type_of_shape == ELLIPSOID_POINT_WITH_UNCERT_CIRC ) {\n if ( length < 8 ) return ;\n value = tvb_get_guint8 ( tvb , offset ) & 0x7f ;\n uncer_item = proto_tree_add_item ( tree , hf_gsm_a_geo_loc_uncertainty_code , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( uncer_item , \" (%.1f m)\" , 10 * ( pow ( 1.1 , ( double ) value ) - 1 ) ) ;\n }\n else if ( type_of_shape == ELLIPSOID_POINT_WITH_UNCERT_ELLIPSE ) {\n value = tvb_get_guint8 ( tvb , offset ) & 0x7f ;\n major_item = proto_tree_add_item ( tree , hf_gsm_a_geo_loc_uncertainty_semi_major , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( major_item , \" (%.1f m)\" , 10 * ( pow ( 1.1 , ( double ) value ) - 1 ) ) ;\n offset ++ ;\n value = tvb_get_guint8 ( tvb , offset ) & 0x7f ;\n minor_item = proto_tree_add_item ( tree , hf_gsm_a_geo_loc_uncertainty_semi_minor , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( minor_item , \" (%.1f m)\" , 10 * ( pow ( 1.1 , ( double ) value ) - 1 ) ) ;\n offset ++ ;\n value = tvb_get_guint8 ( tvb , offset ) & 0x7f ;\n proto_tree_add_uint ( tree , hf_gsm_a_geo_loc_orientation_of_major_axis , tvb , offset , 1 , value * 2 ) ;\n offset ++ ;\n proto_tree_add_item ( tree , hf_gsm_a_geo_loc_confidence , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n }\n else if ( type_of_shape == ELLIPSOID_POINT_WITH_ALT ) {\n proto_tree_add_item ( tree , hf_gsm_a_geo_loc_D , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_geo_loc_altitude , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n }\n else if ( type_of_shape == ELLIPSOID_POINT_WITH_ALT_AND_UNCERT_ELLIPSOID ) {\n proto_tree_add_item ( tree , hf_gsm_a_geo_loc_D , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_geo_loc_altitude , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n offset = offset + 2 ;\n value = tvb_get_guint8 ( tvb , offset ) & 0x7f ;\n major_item = proto_tree_add_item ( tree , hf_gsm_a_geo_loc_uncertainty_semi_major , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( major_item , \" (%.1f m)\" , 10 * ( pow ( 1.1 , ( double ) value ) - 1 ) ) ;\n offset ++ ;\n value = tvb_get_guint8 ( tvb , offset ) & 0x7f ;\n minor_item = proto_tree_add_item ( tree , hf_gsm_a_geo_loc_uncertainty_semi_minor , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( minor_item , \" (%.1f m)\" , 10 * ( pow ( 1.1 , ( double ) value ) - 1 ) ) ;\n offset ++ ;\n value = tvb_get_guint8 ( tvb , offset ) & 0x7f ;\n proto_tree_add_uint ( tree , hf_gsm_a_geo_loc_orientation_of_major_axis , tvb , offset , 1 , value * 2 ) ;\n offset ++ ;\n value = tvb_get_guint8 ( tvb , offset ) & 0x7f ;\n alt_item = proto_tree_add_item ( tree , hf_gsm_a_geo_loc_uncertainty_altitude , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( alt_item , \" (%.1f m)\" , 45 * ( pow ( 1.025 , ( double ) value ) - 1 ) ) ;\n offset ++ ;\n proto_tree_add_item ( tree , hf_gsm_a_geo_loc_confidence , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n }\n else if ( type_of_shape == ELLIPSOID_ARC ) {\n proto_tree_add_item ( tree , hf_gsm_a_geo_loc_inner_radius , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n offset = offset + 2 ;\n proto_tree_add_item ( tree , hf_gsm_a_geo_loc_uncertainty_radius , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( tree , hf_gsm_a_geo_loc_offset_angle , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( tree , hf_gsm_a_geo_loc_included_angle , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( tree , hf_gsm_a_geo_loc_confidence , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n }\n break ;\n case POLYGON : proto_tree_add_item ( tree , hf_gsm_a_geo_loc_no_of_points , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n # if 0 no_of_points = tvb_get_guint8 ( tvb , offset ) & 0x0f ;\n while ( no_of_points > 0 ) {\n offset ++ ;\n no_of_points -- ;\n }\n # endif break ;\n default : break ;\n }\n }"}
{"idx": 13800, "target": 0, "func": "TSReturnCode TSMimeHdrFieldValueDateSet ( TSMBuffer bufp , TSMLoc hdr , TSMLoc field , time_t value ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( hdr ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( hdr ) == TS_SUCCESS ) ) ;\n sdk_assert ( sdk_sanity_check_field_handle ( field , hdr ) == TS_SUCCESS ) ;\n if ( ! isWriteable ( bufp ) ) {\n return TS_ERROR ;\n }\n char tmp [ 33 ] ;\n int len = mime_format_date ( tmp , value ) ;\n TSMimeFieldValueSet ( bufp , field , - 1 , tmp , len ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 13801, "target": 0, "func": "static cmsBool Type_Text_Description_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) {\n cmsMLU * mlu = ( cmsMLU * ) Ptr ;\n char * Text = NULL ;\n wchar_t * Wide = NULL ;\n cmsUInt32Number len , len_text , len_tag_requirement , len_aligned ;\n cmsBool rc = FALSE ;\n char Filler [ 68 ] ;\n memset ( Filler , 0 , sizeof ( Filler ) ) ;\n len = cmsMLUgetASCII ( mlu , cmsNoLanguage , cmsNoCountry , NULL , 0 ) ;\n if ( len <= 0 ) {\n Text = ( char * ) _cmsDupMem ( self -> ContextID , \"\" , sizeof ( char ) ) ;\n Wide = ( wchar_t * ) _cmsDupMem ( self -> ContextID , L\"\" , sizeof ( wchar_t ) ) ;\n }\n else {\n Text = ( char * ) _cmsCalloc ( self -> ContextID , len , sizeof ( char ) ) ;\n if ( Text == NULL ) goto Error ;\n Wide = ( wchar_t * ) _cmsCalloc ( self -> ContextID , len , sizeof ( wchar_t ) ) ;\n if ( Wide == NULL ) goto Error ;\n cmsMLUgetASCII ( mlu , cmsNoLanguage , cmsNoCountry , Text , len * sizeof ( char ) ) ;\n cmsMLUgetWide ( mlu , cmsNoLanguage , cmsNoCountry , Wide , len * sizeof ( wchar_t ) ) ;\n }\n len_text = ( cmsUInt32Number ) strlen ( Text ) + 1 ;\n len_tag_requirement = ( 8 + 4 + len_text + 4 + 4 + 2 * len_text + 2 + 1 + 67 ) ;\n len_aligned = _cmsALIGNLONG ( len_tag_requirement ) ;\n if ( ! _cmsWriteUInt32Number ( io , len_text ) ) goto Error ;\n if ( ! io -> Write ( io , len_text , Text ) ) goto Error ;\n if ( ! _cmsWriteUInt32Number ( io , 0 ) ) goto Error ;\n if ( ! _cmsWriteUInt32Number ( io , len_text ) ) goto Error ;\n if ( ! _cmsWriteWCharArray ( io , len_text , Wide ) ) goto Error ;\n if ( ! _cmsWriteUInt16Number ( io , 0 ) ) goto Error ;\n if ( ! _cmsWriteUInt8Number ( io , 0 ) ) goto Error ;\n if ( ! io -> Write ( io , 67 , Filler ) ) goto Error ;\n if ( len_aligned - len_tag_requirement > 0 ) if ( ! io -> Write ( io , len_aligned - len_tag_requirement , Filler ) ) goto Error ;\n rc = TRUE ;\n Error : if ( Text ) _cmsFree ( self -> ContextID , Text ) ;\n if ( Wide ) _cmsFree ( self -> ContextID , Wide ) ;\n return rc ;\n cmsUNUSED_PARAMETER ( nItems ) ;\n }"}
{"idx": 13802, "target": 0, "func": "static int vapic_init ( SysBusDevice * dev ) {\n VAPICROMState * s = VAPIC ( dev ) ;\n memory_region_init_io ( & s -> io , OBJECT ( s ) , & vapic_ops , s , \"kvmvapic\" , 2 ) ;\n sysbus_add_io ( dev , VAPIC_IO_PORT , & s -> io ) ;\n sysbus_init_ioports ( dev , VAPIC_IO_PORT , 2 ) ;\n option_rom [ nb_option_roms ] . name = \"kvmvapic.bin\" ;\n option_rom [ nb_option_roms ] . bootindex = - 1 ;\n nb_option_roms ++ ;\n return 0 ;\n }"}
{"idx": 13803, "target": 0, "func": "static inline void mark_section_show_entries ( SectionID section_id , int show_all_entries , AVDictionary * entries ) {\n struct section * section = & sections [ section_id ] ;\n section -> show_all_entries = show_all_entries ;\n if ( show_all_entries ) {\n SectionID * id ;\n for ( id = section -> children_ids ;\n * id != - 1 ;\n id ++ ) mark_section_show_entries ( * id , show_all_entries , entries ) ;\n }\n else {\n av_dict_copy ( & section -> entries_to_show , entries , 0 ) ;\n }\n }"}
{"idx": 13804, "target": 0, "func": "static __inline__ __u16 __fswab16 ( __u16 val ) {\n # if defined ( __arch_swab16 ) return __arch_swab16 ( val ) ;\n # else return ___constant_swab16 ( val ) ;\n # endif }"}
{"idx": 13805, "target": 0, "func": "static int qemuMonitorJSONCommandWithFd ( qemuMonitorPtr mon , virJSONValuePtr cmd , int scm_fd , virJSONValuePtr * reply ) {\n int ret = - 1 ;\n qemuMonitorMessage msg ;\n char * cmdstr = NULL ;\n char * id = NULL ;\n virJSONValuePtr exe ;\n * reply = NULL ;\n memset ( & msg , 0 , sizeof msg ) ;\n exe = virJSONValueObjectGet ( cmd , \"execute\" ) ;\n if ( exe ) {\n if ( ! ( id = qemuMonitorNextCommandID ( mon ) ) ) goto cleanup ;\n if ( virJSONValueObjectAppendString ( cmd , \"id\" , id ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"Unable to append command 'id' string\" ) ) ;\n goto cleanup ;\n }\n }\n if ( ! ( cmdstr = virJSONValueToString ( cmd ) ) ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n if ( virAsprintf ( & msg . txBuffer , \"%s\\r\\n\" , cmdstr ) < 0 ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n msg . txLength = strlen ( msg . txBuffer ) ;\n msg . txFD = scm_fd ;\n VIR_DEBUG ( \"Send command '%s' for write with FD %d\" , cmdstr , scm_fd ) ;\n ret = qemuMonitorSend ( mon , & msg ) ;\n VIR_DEBUG ( \"Receive command reply ret=%d rxObject=%p\" , ret , msg . rxObject ) ;\n if ( ret == 0 ) {\n if ( ! msg . rxObject ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"Missing monitor reply object\" ) ) ;\n ret = - 1 ;\n }\n else {\n * reply = msg . rxObject ;\n }\n }\n cleanup : VIR_FREE ( id ) ;\n VIR_FREE ( cmdstr ) ;\n VIR_FREE ( msg . txBuffer ) ;\n return ret ;\n }"}
{"idx": 13806, "target": 0, "func": "static gint coap_get_opt_uint ( tvbuff_t * tvb , gint offset , gint length ) {\n switch ( length ) {\n case 0 : return 0 ;\n case 1 : return ( guint ) tvb_get_guint8 ( tvb , offset ) ;\n case 2 : return ( guint ) tvb_get_ntohs ( tvb , offset ) ;\n case 3 : return ( guint ) tvb_get_ntoh24 ( tvb , offset ) ;\n case 4 : return ( guint ) tvb_get_ntohl ( tvb , offset ) ;\n default : return - 1 ;\n }\n }"}
{"idx": 13807, "target": 0, "func": "static void test_xjoin ( ) {\n MYSQL_STMT * stmt ;\n int rc , i ;\n const char * query = \"select t.id, p1.value, n1.value, p2.value, n2.value from t3 t LEFT JOIN t1 p1 ON (p1.id=t.param1_id) LEFT JOIN t2 p2 ON (p2.id=t.param2_id) LEFT JOIN t4 n1 ON (n1.id=p1.name_id) LEFT JOIN t4 n2 ON (n2.id=p2.name_id) where t.id=1\" ;\n myheader ( \"test_xjoin\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS t1, t2, t3, t4\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t3 (id int(8), param1_id int(8), param2_id int(8)) ENGINE=InnoDB DEFAULT CHARSET=utf8\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t1 ( id int(8), name_id int(8), value varchar(10)) ENGINE=InnoDB DEFAULT CHARSET=utf8\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t2 (id int(8), name_id int(8), value varchar(10)) ENGINE=InnoDB DEFAULT CHARSET=utf8;\n\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t4(id int(8), value varchar(10)) ENGINE=InnoDB DEFAULT CHARSET=utf8\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t3 values (1, 1, 1), (2, 2, null)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t1 values (1, 1, 'aaa'), (2, null, 'bbb')\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t2 values (1, 2, 'ccc')\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t4 values (1, 'Name1'), (2, null)\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( rc == 1 ) ;\n }\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"DROP TABLE t1, t2, t3, t4\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 13808, "target": 0, "func": "static int parent_proxy_fail ( TSCont contp , TSEvent event , void * edata ) {\n ParentTest * ptest = ( ParentTest * ) TSContDataGet ( contp ) ;\n TSHttpTxn txnp = ( TSHttpTxn ) edata ;\n TSMBuffer mbuf ;\n TSMLoc hdr ;\n TSHttpStatus expected = TS_HTTP_STATUS_BAD_GATEWAY ;\n TSHttpStatus received ;\n int status ;\n switch ( event ) {\n case TS_EVENT_HTTP_SEND_RESPONSE_HDR : ink_release_assert ( TSHttpTxnClientRespGet ( txnp , & mbuf , & hdr ) == TS_SUCCESS ) ;\n received = TSHttpHdrStatusGet ( mbuf , hdr ) ;\n if ( expected != received ) {\n status = REGRESSION_TEST_FAILED ;\n SDK_RPRINT ( ptest -> regtest , \"TSHttpTxnParentProxySet\" , \"TestCase\" , TC_FAIL , \"Expected response status %d, received %d\" , expected , received ) ;\n }\n else {\n status = REGRESSION_TEST_PASSED ;\n SDK_RPRINT ( ptest -> regtest , \"TSHttpTxnParentProxySet\" , \"TestCase\" , TC_PASS , \"Received expected response status %d\" , expected ) ;\n }\n TSHandleMLocRelease ( mbuf , TS_NULL_MLOC , hdr ) ;\n return status ;\n default : SDK_RPRINT ( ptest -> regtest , \"TSHttpTxnParentProxySet\" , ptest -> testcase , TC_FAIL , \"Unexpected event %d\" , event ) ;\n return REGRESSION_TEST_FAILED ;\n }\n }"}
{"idx": 13809, "target": 0, "func": "static void add_tl_data ( krb5_int16 * n_tl_datap , krb5_tl_data * * tl_datap , krb5_int16 tl_type , krb5_ui_2 len , krb5_octet * contents ) {\n krb5_tl_data * tl_data ;\n krb5_octet * copy ;\n copy = malloc ( len ) ;\n tl_data = calloc ( 1 , sizeof ( * tl_data ) ) ;\n if ( copy == NULL || tl_data == NULL ) {\n fprintf ( stderr , _ ( \"Not enough memory\\n\" ) ) ;\n exit ( 1 ) ;\n }\n memcpy ( copy , contents , len ) ;\n tl_data -> tl_data_type = tl_type ;\n tl_data -> tl_data_length = len ;\n tl_data -> tl_data_contents = copy ;\n tl_data -> tl_data_next = NULL ;\n for ( ;\n * tl_datap != NULL ;\n tl_datap = & ( * tl_datap ) -> tl_data_next ) ;\n * tl_datap = tl_data ;\n ( * n_tl_datap ) ++ ;\n }"}
{"idx": 13810, "target": 0, "func": "static void main_cleanup ( void ) {\n if ( appheader_used != NULL && appheader_used != option_appheader ) {\n main_free ( appheader_used ) ;\n appheader_used = NULL ;\n }\n main_buffree ( main_bdata ) ;\n main_bdata = NULL ;\n main_bsize = 0 ;\n main_lru_cleanup ( ) ;\n if ( recode_stream != NULL ) {\n xd3_free_stream ( recode_stream ) ;\n main_free ( recode_stream ) ;\n recode_stream = NULL ;\n }\n if ( merge_stream != NULL ) {\n xd3_free_stream ( merge_stream ) ;\n main_free ( merge_stream ) ;\n merge_stream = NULL ;\n }\n XD3_ASSERT ( main_mallocs == 0 ) ;\n }"}
{"idx": 13811, "target": 0, "func": "static void * Type_ColorantTable_Read ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number * nItems , cmsUInt32Number SizeOfTag ) {\n cmsUInt32Number i , Count ;\n cmsNAMEDCOLORLIST * List ;\n char Name [ 34 ] ;\n cmsUInt16Number PCS [ 3 ] ;\n if ( ! _cmsReadUInt32Number ( io , & Count ) ) return NULL ;\n if ( Count > cmsMAXCHANNELS ) {\n cmsSignalError ( self -> ContextID , cmsERROR_RANGE , \"Too many colorants '%d'\" , Count ) ;\n return NULL ;\n }\n List = cmsAllocNamedColorList ( self -> ContextID , Count , 0 , \"\" , \"\" ) ;\n for ( i = 0 ;\n i < Count ;\n i ++ ) {\n if ( io -> Read ( io , Name , 32 , 1 ) != 1 ) goto Error ;\n Name [ 33 ] = 0 ;\n if ( ! _cmsReadUInt16Array ( io , 3 , PCS ) ) goto Error ;\n if ( ! cmsAppendNamedColor ( List , Name , PCS , NULL ) ) goto Error ;\n }\n * nItems = 1 ;\n return List ;\n Error : * nItems = 0 ;\n cmsFreeNamedColorList ( List ) ;\n return NULL ;\n cmsUNUSED_PARAMETER ( SizeOfTag ) ;\n }"}
{"idx": 13812, "target": 0, "func": "Selectivity estimate_hash_bucketsize ( PlannerInfo * root , Node * hashkey , double nbuckets ) {\n VariableStatData vardata ;\n double estfract , ndistinct , stanullfrac , mcvfreq , avgfreq ;\n bool isdefault ;\n float4 * numbers ;\n int nnumbers ;\n examine_variable ( root , hashkey , 0 , & vardata ) ;\n ndistinct = get_variable_numdistinct ( & vardata , & isdefault ) ;\n if ( isdefault ) {\n ReleaseVariableStats ( vardata ) ;\n return ( Selectivity ) 0.1 ;\n }\n if ( HeapTupleIsValid ( vardata . statsTuple ) ) {\n Form_pg_statistic stats ;\n stats = ( Form_pg_statistic ) GETSTRUCT ( vardata . statsTuple ) ;\n stanullfrac = stats -> stanullfrac ;\n }\n else stanullfrac = 0.0 ;\n avgfreq = ( 1.0 - stanullfrac ) / ndistinct ;\n if ( vardata . rel && vardata . rel -> tuples > 0 ) {\n ndistinct *= vardata . rel -> rows / vardata . rel -> tuples ;\n ndistinct = clamp_row_est ( ndistinct ) ;\n }\n if ( ndistinct > nbuckets ) estfract = 1.0 / nbuckets ;\n else estfract = 1.0 / ndistinct ;\n mcvfreq = 0.0 ;\n if ( HeapTupleIsValid ( vardata . statsTuple ) ) {\n if ( get_attstatsslot ( vardata . statsTuple , vardata . atttype , vardata . atttypmod , STATISTIC_KIND_MCV , InvalidOid , NULL , NULL , NULL , & numbers , & nnumbers ) ) {\n if ( nnumbers > 0 ) mcvfreq = numbers [ 0 ] ;\n free_attstatsslot ( vardata . atttype , NULL , 0 , numbers , nnumbers ) ;\n }\n }\n if ( avgfreq > 0.0 && mcvfreq > avgfreq ) estfract *= mcvfreq / avgfreq ;\n if ( estfract < 1.0e-6 ) estfract = 1.0e-6 ;\n else if ( estfract > 1.0 ) estfract = 1.0 ;\n ReleaseVariableStats ( vardata ) ;\n return ( Selectivity ) estfract ;\n }"}
{"idx": 13813, "target": 0, "func": "static void trash_or_delete_files ( GtkWindow * parent_window , const GList * files , gboolean delete_if_all_already_in_trash ) {\n GList * locations ;\n const GList * node ;\n locations = NULL ;\n for ( node = files ;\n node != NULL ;\n node = node -> next ) {\n locations = g_list_prepend ( locations , nautilus_file_get_location ( ( NautilusFile * ) node -> data ) ) ;\n }\n locations = g_list_reverse ( locations ) ;\n nautilus_file_operations_trash_or_delete ( locations , parent_window , NULL , NULL ) ;\n g_list_free_full ( locations , g_object_unref ) ;\n }"}
{"idx": 13814, "target": 1, "func": "TEST_P ( PasswordStoreXTest , Notifications ) {\n std : : unique_ptr < password_manager : : LoginDatabase > login_db ( new password_manager : : LoginDatabase ( test_login_db_file_path ( ) ) ) ;\n scoped_refptr < PasswordStoreX > store ( new PasswordStoreX ( base : : ThreadTaskRunnerHandle : : Get ( ) , base : : ThreadTaskRunnerHandle : : Get ( ) , std : : move ( login_db ) , GetBackend ( GetParam ( ) ) ) ) ;\n store -> Init ( syncer : : SyncableService : : StartSyncFlare ( ) ) ;\n password_manager : : PasswordFormData form_data = {\n PasswordForm : : SCHEME_HTML , \"http://bar.example.com\" , \"http://bar.example.com/origin\" , \"http://bar.example.com/action\" , L\"submit_element\" , L\"username_element\" , L\"password_element\" , L\"username_value\" , L\"password_value\" , true , false , 1 }\n ;\n std : : unique_ptr < PasswordForm > form = CreatePasswordFormFromDataForTesting ( form_data ) ;\n password_manager : : MockPasswordStoreObserver observer ;\n store -> AddObserver ( & observer ) ;\n const PasswordStoreChange expected_add_changes [ ] = {\n PasswordStoreChange ( PasswordStoreChange : : ADD , * form ) , }\n ;\n EXPECT_CALL ( observer , OnLoginsChanged ( ElementsAreArray ( expected_add_changes ) ) ) ;\n store -> AddLogin ( * form ) ;\n base : : RunLoop ( ) . RunUntilIdle ( ) ;\n form -> password_value = base : : ASCIIToUTF16 ( \"a different password\" ) ;\n const PasswordStoreChange expected_update_changes [ ] = {\n PasswordStoreChange ( PasswordStoreChange : : UPDATE , * form ) , }\n ;\n EXPECT_CALL ( observer , OnLoginsChanged ( ElementsAreArray ( expected_update_changes ) ) ) ;\n store -> UpdateLogin ( * form ) ;\n base : : RunLoop ( ) . RunUntilIdle ( ) ;\n const PasswordStoreChange expected_delete_changes [ ] = {\n PasswordStoreChange ( PasswordStoreChange : : REMOVE , * form ) , }\n ;\n EXPECT_CALL ( observer , OnLoginsChanged ( ElementsAreArray ( expected_delete_changes ) ) ) ;\n store -> RemoveLogin ( * form ) ;\n base : : RunLoop ( ) . RunUntilIdle ( ) ;\n store -> RemoveObserver ( & observer ) ;\n store -> ShutdownOnUIThread ( ) ;\n }"}
{"idx": 13815, "target": 0, "func": "static int nntp_mbox_open ( struct Context * ctx ) {\n struct NntpServer * nserv = NULL ;\n struct NntpData * nntp_data = NULL ;\n char buf [ HUGE_STRING ] ;\n char server [ LONG_STRING ] ;\n char * group = NULL ;\n int rc ;\n void * hc = NULL ;\n anum_t first , last , count = 0 ;\n struct Url url ;\n mutt_str_strfcpy ( buf , ctx -> path , sizeof ( buf ) ) ;\n if ( url_parse ( & url , buf ) < 0 || ! url . host || ! url . path || ! ( url . scheme == U_NNTP || url . scheme == U_NNTPS ) ) {\n url_free ( & url ) ;\n mutt_error ( _ ( \"%s is an invalid newsgroup specification!\" ) , ctx -> path ) ;\n return - 1 ;\n }\n group = url . path ;\n url . path = strchr ( url . path , '\\0' ) ;\n url_tostring ( & url , server , sizeof ( server ) , 0 ) ;\n nserv = nntp_select_server ( server , true ) ;\n url_free ( & url ) ;\n if ( ! nserv ) return - 1 ;\n CurrentNewsSrv = nserv ;\n nntp_data = mutt_hash_find ( nserv -> groups_hash , group ) ;\n if ( ! nntp_data ) {\n nntp_newsrc_close ( nserv ) ;\n mutt_error ( _ ( \"Newsgroup %s not found on the server.\" ) , group ) ;\n return - 1 ;\n }\n mutt_bit_unset ( ctx -> rights , MUTT_ACL_INSERT ) ;\n if ( ! nntp_data -> newsrc_ent && ! nntp_data -> subscribed && ! SaveUnsubscribed ) ctx -> readonly = true ;\n mutt_message ( _ ( \"Selecting %s...\" ) , group ) ;\n buf [ 0 ] = '\\0' ;\n if ( nntp_query ( nntp_data , buf , sizeof ( buf ) ) < 0 ) {\n nntp_newsrc_close ( nserv ) ;\n return - 1 ;\n }\n if ( mutt_str_strncmp ( \"411\" , buf , 3 ) == 0 ) {\n mutt_error ( _ ( \"Newsgroup %s has been removed from the server.\" ) , nntp_data -> group ) ;\n if ( ! nntp_data -> deleted ) {\n nntp_data -> deleted = true ;\n nntp_active_save_cache ( nserv ) ;\n }\n if ( nntp_data -> newsrc_ent && ! nntp_data -> subscribed && ! SaveUnsubscribed ) {\n FREE ( & nntp_data -> newsrc_ent ) ;\n nntp_data -> newsrc_len = 0 ;\n nntp_delete_group_cache ( nntp_data ) ;\n nntp_newsrc_update ( nserv ) ;\n }\n }\n else {\n if ( sscanf ( buf , \"211 \" ANUM \" \" ANUM \" \" ANUM , & count , & first , & last ) != 3 ) {\n nntp_newsrc_close ( nserv ) ;\n mutt_error ( \"GROUP: %s\" , buf ) ;\n return - 1 ;\n }\n nntp_data -> first_message = first ;\n nntp_data -> last_message = last ;\n nntp_data -> deleted = false ;\n if ( NntpLoadDescription && ! nntp_data -> desc ) {\n if ( get_description ( nntp_data , NULL , NULL ) < 0 ) {\n nntp_newsrc_close ( nserv ) ;\n return - 1 ;\n }\n if ( nntp_data -> desc ) nntp_active_save_cache ( nserv ) ;\n }\n }\n time ( & nserv -> check_time ) ;\n ctx -> data = nntp_data ;\n if ( ! nntp_data -> bcache && ( nntp_data -> newsrc_ent || nntp_data -> subscribed || SaveUnsubscribed ) ) nntp_data -> bcache = mutt_bcache_open ( & nserv -> conn -> account , nntp_data -> group ) ;\n first = nntp_data -> first_message ;\n if ( NntpContext && nntp_data -> last_message - first + 1 > NntpContext ) first = nntp_data -> last_message - NntpContext + 1 ;\n nntp_data -> last_loaded = first ? first - 1 : 0 ;\n count = nntp_data -> first_message ;\n nntp_data -> first_message = first ;\n nntp_bcache_update ( nntp_data ) ;\n nntp_data -> first_message = count ;\n # ifdef USE_HCACHE hc = nntp_hcache_open ( nntp_data ) ;\n nntp_hcache_update ( nntp_data , hc ) ;\n # endif if ( ! hc ) {\n mutt_bit_unset ( ctx -> rights , MUTT_ACL_WRITE ) ;\n mutt_bit_unset ( ctx -> rights , MUTT_ACL_DELETE ) ;\n }\n nntp_newsrc_close ( nserv ) ;\n rc = nntp_fetch_headers ( ctx , hc , first , nntp_data -> last_message , 0 ) ;\n # ifdef USE_HCACHE mutt_hcache_close ( hc ) ;\n # endif if ( rc < 0 ) return - 1 ;\n nntp_data -> last_loaded = nntp_data -> last_message ;\n nserv -> newsrc_modified = false ;\n return 0 ;\n }"}
{"idx": 13816, "target": 0, "func": "int qemuMonitorTextAddNetdev ( qemuMonitorPtr mon , const char * netdevstr ) {\n char * cmd ;\n char * reply = NULL ;\n int ret = - 1 ;\n if ( virAsprintf ( & cmd , \"netdev_add %s\" , netdevstr ) < 0 ) {\n virReportOOMError ( ) ;\n return - 1 ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"failed to add netdev with '%s'\" ) , cmd ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( cmd ) ;\n VIR_FREE ( reply ) ;\n return ret ;\n }"}
{"idx": 13817, "target": 0, "func": "void ssl3_clear ( SSL * s ) {\n unsigned char * rp , * wp ;\n size_t rlen , wlen ;\n int init_extra ;\n # ifdef TLSEXT_TYPE_opaque_prf_input if ( s -> s3 -> client_opaque_prf_input != NULL ) OPENSSL_free ( s -> s3 -> client_opaque_prf_input ) ;\n s -> s3 -> client_opaque_prf_input = NULL ;\n if ( s -> s3 -> server_opaque_prf_input != NULL ) OPENSSL_free ( s -> s3 -> server_opaque_prf_input ) ;\n s -> s3 -> server_opaque_prf_input = NULL ;\n # endif ssl3_cleanup_key_block ( s ) ;\n if ( s -> s3 -> tmp . ca_names != NULL ) sk_X509_NAME_pop_free ( s -> s3 -> tmp . ca_names , X509_NAME_free ) ;\n if ( s -> s3 -> rrec . comp != NULL ) {\n OPENSSL_free ( s -> s3 -> rrec . comp ) ;\n s -> s3 -> rrec . comp = NULL ;\n }\n # ifndef OPENSSL_NO_DH if ( s -> s3 -> tmp . dh != NULL ) {\n DH_free ( s -> s3 -> tmp . dh ) ;\n s -> s3 -> tmp . dh = NULL ;\n }\n # endif # ifndef OPENSSL_NO_ECDH if ( s -> s3 -> tmp . ecdh != NULL ) {\n EC_KEY_free ( s -> s3 -> tmp . ecdh ) ;\n s -> s3 -> tmp . ecdh = NULL ;\n }\n # endif # ifndef OPENSSL_NO_TLSEXT # ifndef OPENSSL_NO_EC s -> s3 -> is_probably_safari = 0 ;\n # endif # endif rp = s -> s3 -> rbuf . buf ;\n wp = s -> s3 -> wbuf . buf ;\n rlen = s -> s3 -> rbuf . len ;\n wlen = s -> s3 -> wbuf . len ;\n init_extra = s -> s3 -> init_extra ;\n if ( s -> s3 -> handshake_buffer ) {\n BIO_free ( s -> s3 -> handshake_buffer ) ;\n s -> s3 -> handshake_buffer = NULL ;\n }\n if ( s -> s3 -> handshake_dgst ) {\n ssl3_free_digest_list ( s ) ;\n }\n memset ( s -> s3 , 0 , sizeof * s -> s3 ) ;\n s -> s3 -> rbuf . buf = rp ;\n s -> s3 -> wbuf . buf = wp ;\n s -> s3 -> rbuf . len = rlen ;\n s -> s3 -> wbuf . len = wlen ;\n s -> s3 -> init_extra = init_extra ;\n ssl_free_wbio_buffer ( s ) ;\n s -> packet_length = 0 ;\n s -> s3 -> renegotiate = 0 ;\n s -> s3 -> total_renegotiations = 0 ;\n s -> s3 -> num_renegotiations = 0 ;\n s -> s3 -> in_read_app_data = 0 ;\n s -> version = SSL3_VERSION ;\n # if ! defined ( OPENSSL_NO_TLSEXT ) && ! defined ( OPENSSL_NO_NEXTPROTONEG ) if ( s -> next_proto_negotiated ) {\n OPENSSL_free ( s -> next_proto_negotiated ) ;\n s -> next_proto_negotiated = NULL ;\n s -> next_proto_negotiated_len = 0 ;\n }\n # endif }"}
{"idx": 13818, "target": 0, "func": "static int header_bin_be ( struct archive_read * a , struct cpio * cpio , struct archive_entry * entry , size_t * namelength , size_t * name_pad ) {\n const void * h ;\n const unsigned char * header ;\n a -> archive . archive_format = ARCHIVE_FORMAT_CPIO_BIN_BE ;\n a -> archive . archive_format_name = \"cpio (big-endian binary)\" ;\n h = __archive_read_ahead ( a , bin_header_size , NULL ) ;\n if ( h == NULL ) {\n archive_set_error ( & a -> archive , 0 , \"End of file trying to read next cpio header\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n header = ( const unsigned char * ) h ;\n archive_entry_set_dev ( entry , header [ bin_dev_offset ] * 256 + header [ bin_dev_offset + 1 ] ) ;\n archive_entry_set_ino ( entry , header [ bin_ino_offset ] * 256 + header [ bin_ino_offset + 1 ] ) ;\n archive_entry_set_mode ( entry , header [ bin_mode_offset ] * 256 + header [ bin_mode_offset + 1 ] ) ;\n archive_entry_set_uid ( entry , header [ bin_uid_offset ] * 256 + header [ bin_uid_offset + 1 ] ) ;\n archive_entry_set_gid ( entry , header [ bin_gid_offset ] * 256 + header [ bin_gid_offset + 1 ] ) ;\n archive_entry_set_nlink ( entry , header [ bin_nlink_offset ] * 256 + header [ bin_nlink_offset + 1 ] ) ;\n archive_entry_set_rdev ( entry , header [ bin_rdev_offset ] * 256 + header [ bin_rdev_offset + 1 ] ) ;\n archive_entry_set_mtime ( entry , be4 ( header + bin_mtime_offset ) , 0 ) ;\n * namelength = header [ bin_namesize_offset ] * 256 + header [ bin_namesize_offset + 1 ] ;\n * name_pad = * namelength & 1 ;\n cpio -> entry_bytes_remaining = be4 ( header + bin_filesize_offset ) ;\n archive_entry_set_size ( entry , cpio -> entry_bytes_remaining ) ;\n cpio -> entry_padding = cpio -> entry_bytes_remaining & 1 ;\n __archive_read_consume ( a , bin_header_size ) ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 13819, "target": 0, "func": "int decoder_GetInputAttachments ( decoder_t * p_dec , input_attachment_t * * * ppp_attachment , int * pi_attachment ) {\n if ( ! p_dec -> pf_get_attachments ) return VLC_EGENERIC ;\n return p_dec -> pf_get_attachments ( p_dec , ppp_attachment , pi_attachment ) ;\n }"}
{"idx": 13820, "target": 1, "func": "static inline void idct_put ( FourXContext * f , int x , int y ) {\n int16_t ( * block ) [ 64 ] = f -> block ;\n int stride = f -> current_picture -> linesize [ 0 ] >> 1 ;\n int i ;\n uint16_t * dst = ( ( uint16_t * ) f -> current_picture -> data [ 0 ] ) + y * stride + x ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n block [ i ] [ 0 ] += 0x80 * 8 * 8 ;\n idct ( block [ i ] ) ;\n }\n if ( ! ( f -> avctx -> flags & CODEC_FLAG_GRAY ) ) {\n for ( i = 4 ;\n i < 6 ;\n i ++ ) idct ( block [ i ] ) ;\n }\n for ( y = 0 ;\n y < 8 ;\n y ++ ) {\n for ( x = 0 ;\n x < 8 ;\n x ++ ) {\n int16_t * temp = block [ ( x >> 2 ) + 2 * ( y >> 2 ) ] + 2 * ( x & 3 ) + 2 * 8 * ( y & 3 ) ;\n int cb = block [ 4 ] [ x + 8 * y ] ;\n int cr = block [ 5 ] [ x + 8 * y ] ;\n int cg = ( cb + cr ) >> 1 ;\n int y ;\n cb += cb ;\n y = temp [ 0 ] ;\n dst [ 0 ] = ( ( y + cb ) >> 3 ) + ( ( ( y - cg ) & 0xFC ) << 3 ) + ( ( ( y + cr ) & 0xF8 ) << 8 ) ;\n y = temp [ 1 ] ;\n dst [ 1 ] = ( ( y + cb ) >> 3 ) + ( ( ( y - cg ) & 0xFC ) << 3 ) + ( ( ( y + cr ) & 0xF8 ) << 8 ) ;\n y = temp [ 8 ] ;\n dst [ stride ] = ( ( y + cb ) >> 3 ) + ( ( ( y - cg ) & 0xFC ) << 3 ) + ( ( ( y + cr ) & 0xF8 ) << 8 ) ;\n y = temp [ 9 ] ;\n dst [ 1 + stride ] = ( ( y + cb ) >> 3 ) + ( ( ( y - cg ) & 0xFC ) << 3 ) + ( ( ( y + cr ) & 0xF8 ) << 8 ) ;\n dst += 2 ;\n }\n dst += 2 * stride - 2 * 8 ;\n }\n }"}
{"idx": 13821, "target": 0, "func": "static void add_prefix ( smart_str * loc_name , char * key_name ) {\n if ( strncmp ( key_name , LOC_PRIVATE_TAG , 7 ) == 0 ) {\n smart_str_appendl ( loc_name , SEPARATOR , sizeof ( SEPARATOR ) - 1 ) ;\n smart_str_appendl ( loc_name , PRIVATE_PREFIX , sizeof ( PRIVATE_PREFIX ) - 1 ) ;\n }\n }"}
{"idx": 13822, "target": 0, "func": "void h245dg_calls_init_tap ( void ) {\n GString * error_string ;\n if ( have_H245dg_tap_listener == FALSE ) {\n error_string = register_tap_listener ( \"h245dg\" , & ( the_tapinfo_struct . h245dg_dummy ) , NULL , 0 , voip_calls_dlg_reset , H245dgcalls_packet , voip_calls_dlg_draw ) ;\n if ( error_string != NULL ) {\n simple_dialog ( ESD_TYPE_ERROR , ESD_BTN_OK , \"%s\" , error_string -> str ) ;\n g_string_free ( error_string , TRUE ) ;\n exit ( 1 ) ;\n }\n have_H245dg_tap_listener = TRUE ;\n }\n }"}
{"idx": 13823, "target": 0, "func": "static int pfkey_process ( struct sock * sk , struct sk_buff * skb , const struct sadb_msg * hdr ) {\n void * ext_hdrs [ SADB_EXT_MAX ] ;\n int err ;\n pfkey_broadcast ( skb_clone ( skb , GFP_KERNEL ) , GFP_KERNEL , BROADCAST_PROMISC_ONLY , NULL , sock_net ( sk ) ) ;\n memset ( ext_hdrs , 0 , sizeof ( ext_hdrs ) ) ;\n err = parse_exthdrs ( skb , hdr , ext_hdrs ) ;\n if ( ! err ) {\n err = - EOPNOTSUPP ;\n if ( pfkey_funcs [ hdr -> sadb_msg_type ] ) err = pfkey_funcs [ hdr -> sadb_msg_type ] ( sk , skb , hdr , ext_hdrs ) ;\n }\n return err ;\n }"}
{"idx": 13824, "target": 0, "func": "static void pirlvl_destroy ( jpc_pirlvl_t * rlvl ) {\n if ( rlvl -> prclyrnos ) {\n jas_free ( rlvl -> prclyrnos ) ;\n }\n }"}
{"idx": 13825, "target": 0, "func": "afs_int32 UpdateEntry ( struct rx_call * call , afs_int32 aid , char * name , struct PrUpdateEntry * uentry , afs_int32 * cid ) {\n afs_int32 code ;\n struct ubik_trans * tt ;\n struct prentry tentry ;\n afs_int32 loc ;\n int id = 0 ;\n code = Initdb ( ) ;\n if ( code ) return code ;\n if ( code != PRSUCCESS ) return code ;\n if ( aid ) {\n id = aid ;\n if ( aid == SYSADMINID || aid == ANYUSERID || aid == AUTHUSERID || aid == ANONYMOUSID ) return PRPERM ;\n }\n code = ubik_BeginTrans ( dbase , UBIK_WRITETRANS , & tt ) ;\n if ( code ) return code ;\n code = ubik_SetLock ( tt , 1 , 1 , LOCKWRITE ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = read_DbHeader ( tt ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = WhoIsThis ( call , tt , cid ) ;\n if ( code ) ABORT_WITH ( tt , PRPERM ) ;\n code = IsAMemberOf ( tt , * cid , SYSADMINID ) ;\n if ( ! code && ! pr_noAuth ) ABORT_WITH ( tt , PRPERM ) ;\n if ( id ) {\n loc = FindByID ( tt , aid ) ;\n }\n else {\n loc = FindByName ( tt , name , & tentry ) ;\n }\n if ( loc == 0 ) ABORT_WITH ( tt , PRNOENT ) ;\n code = pr_ReadEntry ( tt , 0 , loc , & tentry ) ;\n if ( code ) ABORT_WITH ( tt , PRDBFAIL ) ;\n if ( uentry -> Mask & PRUPDATE_NAMEHASH ) {\n int tloc ;\n code = RemoveFromNameHash ( tt , tentry . name , & tloc ) ;\n if ( code != PRSUCCESS ) ABORT_WITH ( tt , PRDBFAIL ) ;\n code = AddToNameHash ( tt , tentry . name , loc ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n }\n if ( uentry -> Mask & PRUPDATE_IDHASH ) {\n int tloc ;\n if ( ! id ) id = tentry . id ;\n code = RemoveFromIDHash ( tt , id , & tloc ) ;\n if ( code != PRSUCCESS ) ABORT_WITH ( tt , PRDBFAIL ) ;\n code = AddToIDHash ( tt , id , loc ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n }\n code = ubik_EndTrans ( tt ) ;\n if ( code ) return code ;\n return PRSUCCESS ;\n }"}
{"idx": 13826, "target": 0, "func": "static void debugCB_print_log ( debugCBContext * q , const char * name ) {\n if ( q == NULL ) {\n printf ( \"debugCBontext: %s is NULL!!\\n\" , name ) ;\n }\n else {\n if ( q -> magic != 0xC0FFEE ) {\n fprintf ( stderr , \"debugCBContext: %p:%d's magic is %x, supposed to be 0xC0FFEE\\n\" , q , q -> serial , q -> magic ) ;\n }\n printf ( \"debugCBContext %p:%d=%s - magic %x\\n\" , q , q -> serial , name , q -> magic ) ;\n }\n }"}
{"idx": 13827, "target": 0, "func": "TEST_F ( TemplateURLTest , ParseURLNestedParameter ) {\n TemplateURLData data ;\n data . SetURL ( \"{\n%s\" ) ;\n TemplateURL url ( data ) ;\n TemplateURLRef : : Replacements replacements ;\n bool valid = false ;\n EXPECT_EQ ( \"{\n\" , url . url_ref ( ) . ParseURL ( \"{\n{\nsearchTerms}\n\" , & replacements , NULL , & valid ) ) ;\n ASSERT_EQ ( 1U , replacements . size ( ) ) ;\n EXPECT_EQ ( 1U , replacements [ 0 ] . index ) ;\n EXPECT_EQ ( TemplateURLRef : : SEARCH_TERMS , replacements [ 0 ] . type ) ;\n EXPECT_TRUE ( valid ) ;\n }"}
{"idx": 13828, "target": 0, "func": "static void StorePicturePTS ( encoder_t * p_enc , uint32_t u_pnum , mtime_t i_pts ) {\n encoder_sys_t * p_sys = p_enc -> p_sys ;\n for ( int i = 0 ;\n i < SCHRO_PTS_TLB_SIZE ;\n i ++ ) {\n if ( p_sys -> pts_tlb [ i ] . b_empty ) {\n p_sys -> pts_tlb [ i ] . u_pnum = u_pnum ;\n p_sys -> pts_tlb [ i ] . i_pts = i_pts ;\n p_sys -> pts_tlb [ i ] . b_empty = false ;\n return ;\n }\n }\n msg_Err ( p_enc , \"Could not store PTS %\" PRId64 \" for frame %u\" , i_pts , u_pnum ) ;\n }"}
{"idx": 13829, "target": 0, "func": "static int dissect_h245_DialingInformationNetworkType ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_DialingInformationNetworkType , DialingInformationNetworkType_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 13830, "target": 0, "func": "void dispatch ( void * handle , struct sockaddr * local_saddr , const krb5_fulladdr * remote_faddr , krb5_data * request , int is_tcp , verto_ctx * vctx , loop_respond_fn respond , void * arg ) {\n krb5_error_code ret ;\n krb5_keytab kt = NULL ;\n kadm5_server_handle_t server_handle = ( kadm5_server_handle_t ) handle ;\n krb5_fulladdr local_faddr ;\n krb5_address * * local_kaddrs = NULL , local_kaddr_buf ;\n krb5_data * response = NULL ;\n if ( local_saddr == NULL ) {\n ret = krb5_os_localaddr ( server_handle -> context , & local_kaddrs ) ;\n if ( ret != 0 ) goto egress ;\n local_faddr . address = local_kaddrs [ 0 ] ;\n local_faddr . port = 0 ;\n }\n else {\n local_faddr . address = & local_kaddr_buf ;\n init_addr ( & local_faddr , local_saddr ) ;\n }\n ret = krb5_kt_resolve ( server_handle -> context , \"KDB:\" , & kt ) ;\n if ( ret != 0 ) {\n krb5_klog_syslog ( LOG_ERR , _ ( \"chpw: Couldn't open admin keytab %s\" ) , krb5_get_error_message ( server_handle -> context , ret ) ) ;\n goto egress ;\n }\n response = k5alloc ( sizeof ( krb5_data ) , & ret ) ;\n if ( response == NULL ) goto egress ;\n ret = process_chpw_request ( server_handle -> context , handle , server_handle -> params . realm , kt , & local_faddr , remote_faddr , request , response ) ;\n egress : if ( ret ) krb5_free_data ( server_handle -> context , response ) ;\n krb5_free_addresses ( server_handle -> context , local_kaddrs ) ;\n krb5_kt_close ( server_handle -> context , kt ) ;\n ( * respond ) ( arg , ret , ret == 0 ? response : NULL ) ;\n }"}
{"idx": 13831, "target": 0, "func": "static inline void sub_left_prediction_rgb24 ( HYuvContext * s , uint8_t * dst , const uint8_t * src , int w , int * red , int * green , int * blue ) {\n int i ;\n int r , g , b ;\n r = * red ;\n g = * green ;\n b = * blue ;\n for ( i = 0 ;\n i < FFMIN ( w , 16 ) ;\n i ++ ) {\n const int rt = src [ i * 3 + 0 ] ;\n const int gt = src [ i * 3 + 1 ] ;\n const int bt = src [ i * 3 + 2 ] ;\n dst [ i * 3 + 0 ] = rt - r ;\n dst [ i * 3 + 1 ] = gt - g ;\n dst [ i * 3 + 2 ] = bt - b ;\n r = rt ;\n g = gt ;\n b = bt ;\n }\n s -> dsp . diff_bytes ( dst + 48 , src + 48 , src + 48 - 3 , w * 3 - 48 ) ;\n * red = src [ ( w - 1 ) * 3 + 0 ] ;\n * green = src [ ( w - 1 ) * 3 + 1 ] ;\n * blue = src [ ( w - 1 ) * 3 + 2 ] ;\n }"}
{"idx": 13832, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n AVFrame * const p = data ;\n uint8_t * Y , * U , * V ;\n int i , j , ret ;\n int stride ;\n uint32_t val ;\n int y0 , y1 , y2 , y3 = 0 , c0 = 0 , c1 = 0 ;\n if ( ( ret = ff_get_buffer ( avctx , p , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n p -> pict_type = AV_PICTURE_TYPE_I ;\n p -> key_frame = 1 ;\n Y = p -> data [ 0 ] ;\n U = p -> data [ 1 ] ;\n V = p -> data [ 2 ] ;\n stride = avctx -> width - 4 ;\n if ( buf_size < avctx -> width * avctx -> height ) {\n av_log ( avctx , AV_LOG_ERROR , \"Packet is too small\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( i = 0 ;\n i < avctx -> height ;\n i ++ ) {\n buf += stride ;\n for ( j = 0 ;\n j < avctx -> width ;\n j += 4 ) {\n val = AV_RL32 ( buf ) ;\n buf -= 4 ;\n val = ( ( val >> 16 ) & 0xFFFF ) | ( ( val & 0xFFFF ) << 16 ) ;\n if ( ! j ) y0 = ( val & 0x1F ) << 2 ;\n else y0 = y3 + xl_table [ val & 0x1F ] ;\n val >>= 5 ;\n y1 = y0 + xl_table [ val & 0x1F ] ;\n val >>= 5 ;\n y2 = y1 + xl_table [ val & 0x1F ] ;\n val >>= 6 ;\n y3 = y2 + xl_table [ val & 0x1F ] ;\n val >>= 5 ;\n if ( ! j ) c0 = ( val & 0x1F ) << 2 ;\n else c0 += xl_table [ val & 0x1F ] ;\n val >>= 5 ;\n if ( ! j ) c1 = ( val & 0x1F ) << 2 ;\n else c1 += xl_table [ val & 0x1F ] ;\n Y [ j + 0 ] = y0 << 1 ;\n Y [ j + 1 ] = y1 << 1 ;\n Y [ j + 2 ] = y2 << 1 ;\n Y [ j + 3 ] = y3 << 1 ;\n U [ j >> 2 ] = c0 << 1 ;\n V [ j >> 2 ] = c1 << 1 ;\n }\n buf += avctx -> width + 4 ;\n Y += p -> linesize [ 0 ] ;\n U += p -> linesize [ 1 ] ;\n V += p -> linesize [ 2 ] ;\n }\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 13833, "target": 1, "func": "static int idcin_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n IdcinContext * s = avctx -> priv_data ;\n const uint8_t * pal = av_packet_get_side_data ( avpkt , AV_PKT_DATA_PALETTE , NULL ) ;\n s -> buf = buf ;\n s -> size = buf_size ;\n if ( s -> frame . data [ 0 ] ) avctx -> release_buffer ( avctx , & s -> frame ) ;\n if ( ff_get_buffer ( avctx , & s -> frame ) ) {\n av_log ( avctx , AV_LOG_ERROR , \" id CIN Video: get_buffer() failed\\n\" ) ;\n return - 1 ;\n }\n idcin_decode_vlcs ( s ) ;\n if ( pal ) {\n s -> frame . palette_has_changed = 1 ;\n memcpy ( s -> pal , pal , AVPALETTE_SIZE ) ;\n }\n memcpy ( s -> frame . data [ 1 ] , s -> pal , AVPALETTE_SIZE ) ;\n * got_frame = 1 ;\n * ( AVFrame * ) data = s -> frame ;\n return buf_size ;\n }"}
{"idx": 13834, "target": 0, "func": "static int16_t * raster_block_offset_int16 ( BLOCK_SIZE plane_bsize , int raster_block , int16_t * base ) {\n const int stride = 4 * num_4x4_blocks_wide_lookup [ plane_bsize ] ;\n return base + raster_block_offset ( plane_bsize , raster_block , stride ) ;\n }"}
{"idx": 13835, "target": 0, "func": "static int parse_CNodeRestriction ( tvbuff_t * tvb , packet_info * pinfo , int offset , proto_tree * parent_tree , proto_tree * pad_tree , struct CNodeRestriction * v , const char * fmt , ... ) {\n proto_tree * tree ;\n proto_item * item ;\n unsigned i ;\n const char * txt ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CNodeRestriction , & item , txt ) ;\n v -> cNode = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_cnoderestrict_cnode , tvb , offset , 4 , v -> cNode ) ;\n offset += 4 ;\n for ( i = 0 ;\n i < v -> cNode ;\n i ++ ) {\n struct CRestriction r ;\n ZERO_STRUCT ( r ) ;\n offset = parse_CRestriction ( tvb , pinfo , offset , tree , pad_tree , & r , \"paNode[%u]\" , i ) ;\n offset = parse_padding ( tvb , offset , 4 , tree , \"padding_paNode[%u]\" , i ) ;\n }\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 13836, "target": 0, "func": "void vp9_default_coef_probs ( VP9_COMMON * cm ) {\n vp9_copy ( cm -> fc . coef_probs [ TX_4X4 ] , default_coef_probs_4x4 ) ;\n vp9_copy ( cm -> fc . coef_probs [ TX_8X8 ] , default_coef_probs_8x8 ) ;\n vp9_copy ( cm -> fc . coef_probs [ TX_16X16 ] , default_coef_probs_16x16 ) ;\n vp9_copy ( cm -> fc . coef_probs [ TX_32X32 ] , default_coef_probs_32x32 ) ;\n }"}
{"idx": 13837, "target": 0, "func": "static void setup_address_and_port ( const char * * address , const char * * port ) {\n if ( * address == NULL ) {\n * address = \"0.0.0.0\" ;\n }\n if ( * port == NULL ) {\n * port = stringify ( NBD_DEFAULT_PORT ) ;\n }\n }"}
{"idx": 13838, "target": 0, "func": "static guint16 de_ms_net_feat_sup ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset , bit_offset ;\n curr_offset = offset ;\n bit_offset = ( curr_offset << 3 ) + 4 ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , bit_offset , 3 , ENC_BIG_ENDIAN ) ;\n bit_offset += 3 ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_ext_periodic_timers , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 13839, "target": 0, "func": "static void test_bug12925 ( ) {\n myheader ( \"test_bug12925\" ) ;\n if ( opt_getopt_ll_test ) DIE_UNLESS ( opt_getopt_ll_test == LL ( 25600 * 1024 * 1024 ) ) ;\n }"}
{"idx": 13840, "target": 1, "func": "static const char * _SCSUGetName ( const UConverter * cnv ) {\n SCSUData * scsu = ( SCSUData * ) cnv -> extraInfo ;\n switch ( scsu -> locale ) {\n case l_ja : return \"SCSU,locale=ja\" ;\n default : return \"SCSU\" ;\n }\n }"}
{"idx": 13841, "target": 0, "func": "static int _setup_cluster_cond_limits ( slurmdb_cluster_cond_t * cluster_cond , char * * extra ) {\n int set = 0 ;\n ListIterator itr = NULL ;\n char * object = NULL ;\n if ( ! cluster_cond ) return 0 ;\n if ( cluster_cond -> with_deleted ) xstrcat ( * extra , \" where (deleted=0 || deleted=1)\" ) ;\n else xstrcat ( * extra , \" where deleted=0\" ) ;\n if ( cluster_cond -> cluster_list && list_count ( cluster_cond -> cluster_list ) ) {\n set = 0 ;\n xstrcat ( * extra , \" && (\" ) ;\n itr = list_iterator_create ( cluster_cond -> cluster_list ) ;\n while ( ( object = list_next ( itr ) ) ) {\n if ( set ) xstrcat ( * extra , \" || \" ) ;\n xstrfmtcat ( * extra , \"name='%s'\" , object ) ;\n set = 1 ;\n }\n list_iterator_destroy ( itr ) ;\n xstrcat ( * extra , \")\" ) ;\n }\n if ( cluster_cond -> federation_list && list_count ( cluster_cond -> federation_list ) ) {\n set = 0 ;\n xstrcat ( * extra , \" && (\" ) ;\n itr = list_iterator_create ( cluster_cond -> federation_list ) ;\n while ( ( object = list_next ( itr ) ) ) {\n if ( set ) xstrcat ( * extra , \" || \" ) ;\n xstrfmtcat ( * extra , \"federation='%s'\" , object ) ;\n set = 1 ;\n }\n list_iterator_destroy ( itr ) ;\n xstrcat ( * extra , \")\" ) ;\n }\n if ( cluster_cond -> plugin_id_select_list && list_count ( cluster_cond -> plugin_id_select_list ) ) {\n set = 0 ;\n xstrcat ( * extra , \" && (\" ) ;\n itr = list_iterator_create ( cluster_cond -> plugin_id_select_list ) ;\n while ( ( object = list_next ( itr ) ) ) {\n if ( set ) xstrcat ( * extra , \" || \" ) ;\n xstrfmtcat ( * extra , \"plugin_id_select='%s'\" , object ) ;\n set = 1 ;\n }\n list_iterator_destroy ( itr ) ;\n xstrcat ( * extra , \")\" ) ;\n }\n if ( cluster_cond -> rpc_version_list && list_count ( cluster_cond -> rpc_version_list ) ) {\n set = 0 ;\n xstrcat ( * extra , \" && (\" ) ;\n itr = list_iterator_create ( cluster_cond -> rpc_version_list ) ;\n while ( ( object = list_next ( itr ) ) ) {\n if ( set ) xstrcat ( * extra , \" || \" ) ;\n xstrfmtcat ( * extra , \"rpc_version='%s'\" , object ) ;\n set = 1 ;\n }\n list_iterator_destroy ( itr ) ;\n xstrcat ( * extra , \")\" ) ;\n }\n if ( cluster_cond -> classification ) {\n xstrfmtcat ( * extra , \" && (classification & %u)\" , cluster_cond -> classification ) ;\n }\n if ( cluster_cond -> flags != NO_VAL ) {\n xstrfmtcat ( * extra , \" && (flags & %u)\" , cluster_cond -> flags ) ;\n }\n return set ;\n }"}
{"idx": 13842, "target": 0, "func": "PHP_FUNCTION ( uwsgi_cache_get ) {\n char * key = NULL ;\n int keylen = 0 ;\n char * cache = NULL ;\n int cachelen = 0 ;\n uint64_t valsize ;\n if ( ! uwsgi . caches ) RETURN_NULL ( ) ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"s|s\" , & key , & keylen , & cache , & cachelen ) == FAILURE ) {\n RETURN_NULL ( ) ;\n }\n char * value = uwsgi_cache_magic_get ( key , keylen , & valsize , NULL , cache ) ;\n if ( value ) {\n char * ret = estrndup ( value , valsize ) ;\n free ( value ) ;\n # ifdef UWSGI_PHP7 RETURN_STRING ( ret ) ;\n # else RETURN_STRING ( ret , 0 ) ;\n # endif }\n RETURN_NULL ( ) ;\n }"}
{"idx": 13843, "target": 0, "func": "static bool intel_pt_enable_needed ( void * opaque ) {\n X86CPU * cpu = opaque ;\n CPUX86State * env = & cpu -> env ;\n int i ;\n if ( env -> msr_rtit_ctrl || env -> msr_rtit_status || env -> msr_rtit_output_base || env -> msr_rtit_output_mask || env -> msr_rtit_cr3_match ) {\n return true ;\n }\n for ( i = 0 ;\n i < MAX_RTIT_ADDRS ;\n i ++ ) {\n if ( env -> msr_rtit_addrs [ i ] ) {\n return true ;\n }\n }\n return false ;\n }"}
{"idx": 13844, "target": 0, "func": "void vp9_find_mv_refs ( const VP9_COMMON * cm , const MACROBLOCKD * xd , const TileInfo * const tile , MODE_INFO * mi , MV_REFERENCE_FRAME ref_frame , int_mv * mv_ref_list , int mi_row , int mi_col ) {\n find_mv_refs_idx ( cm , xd , tile , mi , ref_frame , mv_ref_list , - 1 , mi_row , mi_col ) ;\n }"}
{"idx": 13845, "target": 0, "func": "static int pfkey_getspi ( struct sock * sk , struct sk_buff * skb , const struct sadb_msg * hdr , void * const * ext_hdrs ) {\n struct net * net = sock_net ( sk ) ;\n struct sk_buff * resp_skb ;\n struct sadb_x_sa2 * sa2 ;\n struct sadb_address * saddr , * daddr ;\n struct sadb_msg * out_hdr ;\n struct sadb_spirange * range ;\n struct xfrm_state * x = NULL ;\n int mode ;\n int err ;\n u32 min_spi , max_spi ;\n u32 reqid ;\n u8 proto ;\n unsigned short family ;\n xfrm_address_t * xsaddr = NULL , * xdaddr = NULL ;\n if ( ! present_and_same_family ( ext_hdrs [ SADB_EXT_ADDRESS_SRC - 1 ] , ext_hdrs [ SADB_EXT_ADDRESS_DST - 1 ] ) ) return - EINVAL ;\n proto = pfkey_satype2proto ( hdr -> sadb_msg_satype ) ;\n if ( proto == 0 ) return - EINVAL ;\n if ( ( sa2 = ext_hdrs [ SADB_X_EXT_SA2 - 1 ] ) != NULL ) {\n mode = pfkey_mode_to_xfrm ( sa2 -> sadb_x_sa2_mode ) ;\n if ( mode < 0 ) return - EINVAL ;\n reqid = sa2 -> sadb_x_sa2_reqid ;\n }\n else {\n mode = 0 ;\n reqid = 0 ;\n }\n saddr = ext_hdrs [ SADB_EXT_ADDRESS_SRC - 1 ] ;\n daddr = ext_hdrs [ SADB_EXT_ADDRESS_DST - 1 ] ;\n family = ( ( struct sockaddr * ) ( saddr + 1 ) ) -> sa_family ;\n switch ( family ) {\n case AF_INET : xdaddr = ( xfrm_address_t * ) & ( ( struct sockaddr_in * ) ( daddr + 1 ) ) -> sin_addr . s_addr ;\n xsaddr = ( xfrm_address_t * ) & ( ( struct sockaddr_in * ) ( saddr + 1 ) ) -> sin_addr . s_addr ;\n break ;\n # if IS_ENABLED ( CONFIG_IPV6 ) case AF_INET6 : xdaddr = ( xfrm_address_t * ) & ( ( struct sockaddr_in6 * ) ( daddr + 1 ) ) -> sin6_addr ;\n xsaddr = ( xfrm_address_t * ) & ( ( struct sockaddr_in6 * ) ( saddr + 1 ) ) -> sin6_addr ;\n break ;\n # endif }\n if ( hdr -> sadb_msg_seq ) {\n x = xfrm_find_acq_byseq ( net , DUMMY_MARK , hdr -> sadb_msg_seq ) ;\n if ( x && ! xfrm_addr_equal ( & x -> id . daddr , xdaddr , family ) ) {\n xfrm_state_put ( x ) ;\n x = NULL ;\n }\n }\n if ( ! x ) x = xfrm_find_acq ( net , & dummy_mark , mode , reqid , proto , xdaddr , xsaddr , 1 , family ) ;\n if ( x == NULL ) return - ENOENT ;\n min_spi = 0x100 ;\n max_spi = 0x0fffffff ;\n range = ext_hdrs [ SADB_EXT_SPIRANGE - 1 ] ;\n if ( range ) {\n min_spi = range -> sadb_spirange_min ;\n max_spi = range -> sadb_spirange_max ;\n }\n err = xfrm_alloc_spi ( x , min_spi , max_spi ) ;\n resp_skb = err ? ERR_PTR ( err ) : pfkey_xfrm_state2msg ( x ) ;\n if ( IS_ERR ( resp_skb ) ) {\n xfrm_state_put ( x ) ;\n return PTR_ERR ( resp_skb ) ;\n }\n out_hdr = ( struct sadb_msg * ) resp_skb -> data ;\n out_hdr -> sadb_msg_version = hdr -> sadb_msg_version ;\n out_hdr -> sadb_msg_type = SADB_GETSPI ;\n out_hdr -> sadb_msg_satype = pfkey_proto2satype ( proto ) ;\n out_hdr -> sadb_msg_errno = 0 ;\n out_hdr -> sadb_msg_reserved = 0 ;\n out_hdr -> sadb_msg_seq = hdr -> sadb_msg_seq ;\n out_hdr -> sadb_msg_pid = hdr -> sadb_msg_pid ;\n xfrm_state_put ( x ) ;\n pfkey_broadcast ( resp_skb , GFP_KERNEL , BROADCAST_ONE , sk , net ) ;\n return 0 ;\n }"}
{"idx": 13846, "target": 0, "func": "static UBool action_setInverse ( UBiDiTransform * pTransform , UErrorCode * pErrorCode ) {\n ( void ) pErrorCode ;\n ubidi_setInverse ( pTransform -> pBidi , TRUE ) ;\n ubidi_setReorderingMode ( pTransform -> pBidi , UBIDI_REORDER_INVERSE_LIKE_DIRECT ) ;\n return FALSE ;\n }"}
{"idx": 13847, "target": 0, "func": "void _mime_scanner_init ( MIMEScanner * scanner ) {\n scanner -> m_line = nullptr ;\n scanner -> m_line_size = 0 ;\n scanner -> m_line_length = 0 ;\n scanner -> m_state = MIME_PARSE_BEFORE ;\n }"}
{"idx": 13848, "target": 0, "func": "void DMA_release_DREQ ( int nchan ) {\n }"}
{"idx": 13849, "target": 0, "func": "void retry_outgoing ( outgoing_t * outgoing ) {\n outgoing -> timeout += 5 ;\n if ( outgoing -> timeout < mintimeout ) {\n outgoing -> timeout = mintimeout ;\n }\n if ( outgoing -> timeout > maxtimeout ) {\n outgoing -> timeout = maxtimeout ;\n }\n if ( outgoing -> event ) {\n event_del ( outgoing -> event ) ;\n }\n outgoing -> event = new_event ( ) ;\n outgoing -> event -> handler = ( event_handler_t ) setup_outgoing_connection ;\n outgoing -> event -> time = now + outgoing -> timeout ;\n outgoing -> event -> data = outgoing ;\n event_add ( outgoing -> event ) ;\n ifdebug ( CONNECTIONS ) logger ( LOG_NOTICE , \"Trying to re-establish outgoing connection in %d seconds\" , outgoing -> timeout ) ;\n }"}
{"idx": 13850, "target": 0, "func": "static void pk_transaction_authorize_actions_finished_cb ( GObject * source_object , GAsyncResult * res , struct AuthorizeActionsData * data ) {\n const gchar * action_id = NULL ;\n PkTransactionPrivate * priv = data -> transaction -> priv ;\n g_autoptr ( GError ) error = NULL ;\n g_autoptr ( PolkitAuthorizationResult ) result = NULL ;\n g_assert ( data -> actions && data -> actions -> len > 0 ) ;\n action_id = g_ptr_array_index ( data -> actions , 0 ) ;\n result = polkit_authority_check_authorization_finish ( priv -> authority , res , & error ) ;\n if ( g_cancellable_is_cancelled ( priv -> cancellable ) ) {\n priv -> waiting_for_auth = FALSE ;\n pk_transaction_status_changed_emit ( data -> transaction , PK_STATUS_ENUM_FINISHED ) ;\n pk_transaction_error_code_emit ( data -> transaction , PK_ERROR_ENUM_NOT_AUTHORIZED , \"The authentication was cancelled due to a timeout.\" ) ;\n pk_transaction_finished_emit ( data -> transaction , PK_EXIT_ENUM_FAILED , 0 ) ;\n goto out ;\n }\n if ( result == NULL ) {\n g_autofree gchar * message = NULL ;\n priv -> waiting_for_auth = FALSE ;\n g_warning ( \"failed to check for auth: %s\" , error -> message ) ;\n pk_transaction_status_changed_emit ( data -> transaction , PK_STATUS_ENUM_FINISHED ) ;\n message = g_strdup_printf ( \"Failed to check for authentication: %s\" , error -> message ) ;\n pk_transaction_error_code_emit ( data -> transaction , PK_ERROR_ENUM_NOT_AUTHORIZED , message ) ;\n pk_transaction_finished_emit ( data -> transaction , PK_EXIT_ENUM_FAILED , 0 ) ;\n goto out ;\n }\n if ( ! polkit_authorization_result_get_is_authorized ( result ) ) {\n priv -> waiting_for_auth = FALSE ;\n pk_transaction_status_changed_emit ( data -> transaction , PK_STATUS_ENUM_FINISHED ) ;\n pk_transaction_error_code_emit ( data -> transaction , PK_ERROR_ENUM_NOT_AUTHORIZED , \"Failed to obtain authentication.\" ) ;\n pk_transaction_finished_emit ( data -> transaction , PK_EXIT_ENUM_FAILED , 0 ) ;\n syslog ( LOG_AUTH | LOG_NOTICE , \"uid %i failed to obtain auth\" , priv -> uid ) ;\n goto out ;\n }\n if ( data -> actions -> len <= 1 ) {\n priv -> waiting_for_auth = FALSE ;\n pk_transaction_set_state ( data -> transaction , PK_TRANSACTION_STATE_READY ) ;\n syslog ( LOG_AUTH | LOG_INFO , \"uid %i obtained auth for %s\" , priv -> uid , action_id ) ;\n }\n else {\n g_ptr_array_remove_index ( data -> actions , 0 ) ;\n pk_transaction_authorize_actions ( data -> transaction , data -> role , data -> actions ) ;\n }\n out : g_ptr_array_unref ( data -> actions ) ;\n g_free ( data ) ;\n }"}
{"idx": 13851, "target": 0, "func": "static void encode_frame_to_data_rate ( VP8_COMP * cpi , unsigned long * size , unsigned char * dest , unsigned char * dest_end , unsigned int * frame_flags ) {\n int Q ;\n int frame_over_shoot_limit ;\n int frame_under_shoot_limit ;\n int Loop = 0 ;\n int loop_count ;\n VP8_COMMON * cm = & cpi -> common ;\n int active_worst_qchanged = 0 ;\n # if ! ( CONFIG_REALTIME_ONLY ) int q_low ;\n int q_high ;\n int zbin_oq_high ;\n int zbin_oq_low = 0 ;\n int top_index ;\n int bottom_index ;\n int overshoot_seen = 0 ;\n int undershoot_seen = 0 ;\n # endif int drop_mark = ( int ) ( cpi -> oxcf . drop_frames_water_mark * cpi -> oxcf . optimal_buffer_level / 100 ) ;\n int drop_mark75 = drop_mark * 2 / 3 ;\n int drop_mark50 = drop_mark / 4 ;\n int drop_mark25 = drop_mark / 8 ;\n vp8_clear_system_state ( ) ;\n # if CONFIG_MULTITHREAD if ( cpi -> b_lpf_running ) {\n sem_wait ( & cpi -> h_event_end_lpf ) ;\n cpi -> b_lpf_running = 0 ;\n }\n # endif if ( cpi -> force_next_frame_intra ) {\n cm -> frame_type = KEY_FRAME ;\n cpi -> force_next_frame_intra = 0 ;\n }\n # if ! ( CONFIG_REALTIME_ONLY ) if ( cpi -> pass == 2 ) {\n if ( cpi -> common . refresh_alt_ref_frame ) {\n cpi -> per_frame_bandwidth = cpi -> twopass . gf_bits ;\n cpi -> target_bandwidth = ( int ) ( cpi -> twopass . gf_bits * cpi -> output_framerate ) ;\n }\n }\n else # endif cpi -> per_frame_bandwidth = ( int ) ( cpi -> target_bandwidth / cpi -> output_framerate ) ;\n cm -> copy_buffer_to_gf = 0 ;\n cm -> copy_buffer_to_arf = 0 ;\n cpi -> mb . zbin_over_quant = 0 ;\n cpi -> mb . zbin_mode_boost = 0 ;\n cpi -> mb . zbin_mode_boost_enabled = 1 ;\n if ( cpi -> pass == 2 ) {\n if ( cpi -> gfu_boost <= 400 ) {\n cpi -> mb . zbin_mode_boost_enabled = 0 ;\n }\n }\n if ( cpi -> source_alt_ref_active ) cpi -> common . ref_frame_sign_bias [ ALTREF_FRAME ] = 1 ;\n else cpi -> common . ref_frame_sign_bias [ ALTREF_FRAME ] = 0 ;\n if ( ( cm -> current_video_frame == 0 ) || ( cm -> frame_flags & FRAMEFLAGS_KEY ) || ( cpi -> oxcf . auto_key && ( cpi -> frames_since_key % cpi -> key_frame_frequency == 0 ) ) ) {\n cm -> frame_type = KEY_FRAME ;\n # if CONFIG_TEMPORAL_DENOISING if ( cpi -> oxcf . noise_sensitivity == 4 ) {\n vp8_denoiser_set_parameters ( & cpi -> denoiser , kDenoiserOnYUV ) ;\n }\n # endif }\n # if CONFIG_MULTI_RES_ENCODING if ( cpi -> oxcf . mr_encoder_id ) {\n LOWER_RES_FRAME_INFO * low_res_frame_info = ( LOWER_RES_FRAME_INFO * ) cpi -> oxcf . mr_low_res_mode_info ;\n cm -> frame_type = low_res_frame_info -> frame_type ;\n if ( cm -> frame_type != KEY_FRAME ) {\n cpi -> mr_low_res_mv_avail = 1 ;\n cpi -> mr_low_res_mv_avail &= ! ( low_res_frame_info -> is_frame_dropped ) ;\n if ( cpi -> ref_frame_flags & VP8_LAST_FRAME ) cpi -> mr_low_res_mv_avail &= ( cpi -> current_ref_frames [ LAST_FRAME ] == low_res_frame_info -> low_res_ref_frames [ LAST_FRAME ] ) ;\n if ( cpi -> ref_frame_flags & VP8_GOLD_FRAME ) cpi -> mr_low_res_mv_avail &= ( cpi -> current_ref_frames [ GOLDEN_FRAME ] == low_res_frame_info -> low_res_ref_frames [ GOLDEN_FRAME ] ) ;\n if ( cpi -> ref_frame_flags & VP8_ALTR_FRAME ) cpi -> mr_low_res_mv_avail &= ( cpi -> current_ref_frames [ ALTREF_FRAME ] == low_res_frame_info -> low_res_ref_frames [ ALTREF_FRAME ] ) ;\n }\n }\n # endif cpi -> closest_reference_frame = LAST_FRAME ;\n if ( cm -> frame_type != KEY_FRAME ) {\n int i ;\n MV_REFERENCE_FRAME closest_ref = INTRA_FRAME ;\n if ( cpi -> ref_frame_flags & VP8_LAST_FRAME ) {\n closest_ref = LAST_FRAME ;\n }\n else if ( cpi -> ref_frame_flags & VP8_GOLD_FRAME ) {\n closest_ref = GOLDEN_FRAME ;\n }\n else if ( cpi -> ref_frame_flags & VP8_ALTR_FRAME ) {\n closest_ref = ALTREF_FRAME ;\n }\n for ( i = 1 ;\n i <= 3 ;\n i ++ ) {\n vpx_ref_frame_type_t ref_frame_type = ( vpx_ref_frame_type_t ) ( ( i == 3 ) ? 4 : i ) ;\n if ( cpi -> ref_frame_flags & ref_frame_type ) {\n if ( ( cm -> current_video_frame - cpi -> current_ref_frames [ i ] ) < ( cm -> current_video_frame - cpi -> current_ref_frames [ closest_ref ] ) ) {\n closest_ref = i ;\n }\n }\n }\n cpi -> closest_reference_frame = closest_ref ;\n }\n if ( cm -> frame_type == KEY_FRAME ) {\n int i ;\n setup_features ( cpi ) ;\n cpi -> source_alt_ref_active = 0 ;\n for ( i = 0 ;\n i < MAX_MODES ;\n i ++ ) {\n cpi -> mb . rd_thresh_mult [ i ] = 128 ;\n }\n vpx_memset ( cpi -> consec_zero_last , 0 , cm -> mb_rows * cm -> mb_cols ) ;\n }\n # if 0 {\n cpi -> one_pass_frame_index = cm -> current_video_frame % MAX_LAG_BUFFERS ;\n cpi -> one_pass_frame_stats [ cpi -> one_pass_frame_index ] . frames_so_far = 0 ;\n cpi -> one_pass_frame_stats [ cpi -> one_pass_frame_index ] . frame_intra_error = 0.0 ;\n cpi -> one_pass_frame_stats [ cpi -> one_pass_frame_index ] . frame_coded_error = 0.0 ;\n cpi -> one_pass_frame_stats [ cpi -> one_pass_frame_index ] . frame_pcnt_inter = 0.0 ;\n cpi -> one_pass_frame_stats [ cpi -> one_pass_frame_index ] . frame_pcnt_motion = 0.0 ;\n cpi -> one_pass_frame_stats [ cpi -> one_pass_frame_index ] . frame_mvr = 0.0 ;\n cpi -> one_pass_frame_stats [ cpi -> one_pass_frame_index ] . frame_mvr_abs = 0.0 ;\n cpi -> one_pass_frame_stats [ cpi -> one_pass_frame_index ] . frame_mvc = 0.0 ;\n cpi -> one_pass_frame_stats [ cpi -> one_pass_frame_index ] . frame_mvc_abs = 0.0 ;\n }\n # endif update_rd_ref_frame_probs ( cpi ) ;\n if ( cpi -> drop_frames_allowed ) {\n if ( ( cpi -> buffer_level > drop_mark ) && ( cpi -> decimation_factor > 0 ) ) cpi -> decimation_factor -- ;\n if ( cpi -> buffer_level > drop_mark75 && cpi -> decimation_factor > 0 ) cpi -> decimation_factor = 1 ;\n else if ( cpi -> buffer_level < drop_mark25 && ( cpi -> decimation_factor == 2 || cpi -> decimation_factor == 3 ) ) {\n cpi -> decimation_factor = 3 ;\n }\n else if ( cpi -> buffer_level < drop_mark50 && ( cpi -> decimation_factor == 1 || cpi -> decimation_factor == 2 ) ) {\n cpi -> decimation_factor = 2 ;\n }\n else if ( cpi -> buffer_level < drop_mark75 && ( cpi -> decimation_factor == 0 || cpi -> decimation_factor == 1 ) ) {\n cpi -> decimation_factor = 1 ;\n }\n }\n if ( cpi -> decimation_factor > 0 ) {\n switch ( cpi -> decimation_factor ) {\n case 1 : cpi -> per_frame_bandwidth = cpi -> per_frame_bandwidth * 3 / 2 ;\n break ;\n case 2 : cpi -> per_frame_bandwidth = cpi -> per_frame_bandwidth * 5 / 4 ;\n break ;\n case 3 : cpi -> per_frame_bandwidth = cpi -> per_frame_bandwidth * 5 / 4 ;\n break ;\n }\n if ( cm -> frame_type == KEY_FRAME ) {\n cpi -> decimation_count = cpi -> decimation_factor ;\n }\n else if ( cpi -> decimation_count > 0 ) {\n cpi -> decimation_count -- ;\n cpi -> bits_off_target += cpi -> av_per_frame_bandwidth ;\n if ( cpi -> bits_off_target > cpi -> oxcf . maximum_buffer_size ) cpi -> bits_off_target = cpi -> oxcf . maximum_buffer_size ;\n # if CONFIG_MULTI_RES_ENCODING vp8_store_drop_frame_info ( cpi ) ;\n # endif cm -> current_video_frame ++ ;\n cpi -> frames_since_key ++ ;\n cpi -> temporal_pattern_counter ++ ;\n # if CONFIG_INTERNAL_STATS cpi -> count ++ ;\n # endif cpi -> buffer_level = cpi -> bits_off_target ;\n if ( cpi -> oxcf . number_of_layers > 1 ) {\n unsigned int i ;\n for ( i = cpi -> current_layer + 1 ;\n i < cpi -> oxcf . number_of_layers ;\n i ++ ) {\n LAYER_CONTEXT * lc = & cpi -> layer_context [ i ] ;\n lc -> bits_off_target += ( int ) ( lc -> target_bandwidth / lc -> framerate ) ;\n if ( lc -> bits_off_target > lc -> maximum_buffer_size ) lc -> bits_off_target = lc -> maximum_buffer_size ;\n lc -> buffer_level = lc -> bits_off_target ;\n }\n }\n return ;\n }\n else cpi -> decimation_count = cpi -> decimation_factor ;\n }\n else cpi -> decimation_count = 0 ;\n if ( ! vp8_pick_frame_size ( cpi ) ) {\n # if CONFIG_MULTI_RES_ENCODING vp8_store_drop_frame_info ( cpi ) ;\n # endif cm -> current_video_frame ++ ;\n cpi -> frames_since_key ++ ;\n cpi -> temporal_pattern_counter ++ ;\n return ;\n }\n if ( ( cpi -> oxcf . end_usage == USAGE_STREAM_FROM_SERVER ) && ( cpi -> buffer_level >= cpi -> oxcf . optimal_buffer_level ) && cpi -> buffered_mode ) {\n int Adjustment = cpi -> active_worst_quality / 4 ;\n if ( Adjustment ) {\n int buff_lvl_step ;\n if ( cpi -> buffer_level < cpi -> oxcf . maximum_buffer_size ) {\n buff_lvl_step = ( int ) ( ( cpi -> oxcf . maximum_buffer_size - cpi -> oxcf . optimal_buffer_level ) / Adjustment ) ;\n if ( buff_lvl_step ) Adjustment = ( int ) ( ( cpi -> buffer_level - cpi -> oxcf . optimal_buffer_level ) / buff_lvl_step ) ;\n else Adjustment = 0 ;\n }\n cpi -> active_worst_quality -= Adjustment ;\n if ( cpi -> active_worst_quality < cpi -> active_best_quality ) cpi -> active_worst_quality = cpi -> active_best_quality ;\n }\n }\n if ( ( cpi -> pass == 2 ) || ( cpi -> ni_frames > 150 ) ) {\n vp8_clear_system_state ( ) ;\n Q = cpi -> active_worst_quality ;\n if ( cm -> frame_type == KEY_FRAME ) {\n if ( cpi -> pass == 2 ) {\n if ( cpi -> gfu_boost > 600 ) cpi -> active_best_quality = kf_low_motion_minq [ Q ] ;\n else cpi -> active_best_quality = kf_high_motion_minq [ Q ] ;\n if ( cpi -> this_key_frame_forced ) {\n if ( cpi -> active_best_quality > cpi -> avg_frame_qindex * 7 / 8 ) cpi -> active_best_quality = cpi -> avg_frame_qindex * 7 / 8 ;\n else if ( cpi -> active_best_quality < cpi -> avg_frame_qindex >> 2 ) cpi -> active_best_quality = cpi -> avg_frame_qindex >> 2 ;\n }\n }\n else cpi -> active_best_quality = kf_high_motion_minq [ Q ] ;\n }\n else if ( cpi -> oxcf . number_of_layers == 1 && ( cm -> refresh_golden_frame || cpi -> common . refresh_alt_ref_frame ) ) {\n if ( ( cpi -> frames_since_key > 1 ) && ( cpi -> avg_frame_qindex < cpi -> active_worst_quality ) ) {\n Q = cpi -> avg_frame_qindex ;\n }\n if ( ( cpi -> oxcf . end_usage == USAGE_CONSTRAINED_QUALITY ) && ( Q < cpi -> cq_target_quality ) ) {\n Q = cpi -> cq_target_quality ;\n }\n if ( cpi -> pass == 2 ) {\n if ( cpi -> gfu_boost > 1000 ) cpi -> active_best_quality = gf_low_motion_minq [ Q ] ;\n else if ( cpi -> gfu_boost < 400 ) cpi -> active_best_quality = gf_high_motion_minq [ Q ] ;\n else cpi -> active_best_quality = gf_mid_motion_minq [ Q ] ;\n if ( cpi -> oxcf . end_usage == USAGE_CONSTRAINED_QUALITY ) {\n cpi -> active_best_quality = cpi -> active_best_quality * 15 / 16 ;\n }\n }\n else cpi -> active_best_quality = gf_high_motion_minq [ Q ] ;\n }\n else {\n cpi -> active_best_quality = inter_minq [ Q ] ;\n if ( ( cpi -> oxcf . end_usage == USAGE_CONSTRAINED_QUALITY ) && ( cpi -> active_best_quality < cpi -> cq_target_quality ) ) {\n if ( cpi -> rolling_actual_bits < cpi -> min_frame_bandwidth ) cpi -> active_best_quality = cpi -> oxcf . cq_level ;\n else cpi -> active_best_quality = cpi -> cq_target_quality ;\n }\n }\n if ( cpi -> oxcf . end_usage == USAGE_STREAM_FROM_SERVER ) {\n if ( cpi -> buffer_level >= cpi -> oxcf . maximum_buffer_size ) cpi -> active_best_quality = cpi -> best_quality ;\n else if ( cpi -> buffer_level > cpi -> oxcf . optimal_buffer_level ) {\n int Fraction = ( int ) ( ( ( cpi -> buffer_level - cpi -> oxcf . optimal_buffer_level ) * 128 ) / ( cpi -> oxcf . maximum_buffer_size - cpi -> oxcf . optimal_buffer_level ) ) ;\n int min_qadjustment = ( ( cpi -> active_best_quality - cpi -> best_quality ) * Fraction ) / 128 ;\n cpi -> active_best_quality -= min_qadjustment ;\n }\n }\n }\n else if ( cpi -> oxcf . end_usage == USAGE_CONSTRAINED_QUALITY ) {\n if ( ( cm -> frame_type == KEY_FRAME ) || cm -> refresh_golden_frame || cpi -> common . refresh_alt_ref_frame ) {\n cpi -> active_best_quality = cpi -> best_quality ;\n }\n else if ( cpi -> active_best_quality < cpi -> cq_target_quality ) {\n cpi -> active_best_quality = cpi -> cq_target_quality ;\n }\n }\n if ( cpi -> active_worst_quality > cpi -> worst_quality ) cpi -> active_worst_quality = cpi -> worst_quality ;\n if ( cpi -> active_best_quality < cpi -> best_quality ) cpi -> active_best_quality = cpi -> best_quality ;\n if ( cpi -> active_worst_quality < cpi -> active_best_quality ) cpi -> active_worst_quality = cpi -> active_best_quality ;\n Q = vp8_regulate_q ( cpi , cpi -> this_frame_target ) ;\n # if ! ( CONFIG_REALTIME_ONLY ) if ( cm -> frame_type == KEY_FRAME ) zbin_oq_high = 0 ;\n else if ( ( cpi -> oxcf . number_of_layers == 1 ) && ( ( cm -> refresh_alt_ref_frame || ( cm -> refresh_golden_frame && ! cpi -> source_alt_ref_active ) ) ) ) {\n zbin_oq_high = 16 ;\n }\n else zbin_oq_high = ZBIN_OQ_MAX ;\n # endif if ( cpi -> cyclic_refresh_mode_enabled ) {\n if ( cpi -> current_layer == 0 ) cyclic_background_refresh ( cpi , Q , 0 ) ;\n else disable_segmentation ( cpi ) ;\n }\n vp8_compute_frame_size_bounds ( cpi , & frame_under_shoot_limit , & frame_over_shoot_limit ) ;\n # if ! ( CONFIG_REALTIME_ONLY ) bottom_index = cpi -> active_best_quality ;\n top_index = cpi -> active_worst_quality ;\n q_low = cpi -> active_best_quality ;\n q_high = cpi -> active_worst_quality ;\n # endif vp8_save_coding_context ( cpi ) ;\n loop_count = 0 ;\n scale_and_extend_source ( cpi -> un_scaled_source , cpi ) ;\n # if CONFIG_TEMPORAL_DENOISING && CONFIG_POSTPROC if ( cpi -> oxcf . noise_sensitivity >= 3 ) {\n if ( cpi -> denoiser . denoise_pars . spatial_blur != 0 ) {\n vp8_de_noise ( cm , cpi -> Source , cpi -> Source , cpi -> denoiser . denoise_pars . spatial_blur , 1 , 0 , 0 ) ;\n }\n }\n # endif # if ! ( CONFIG_REALTIME_ONLY ) && CONFIG_POSTPROC && ! ( CONFIG_TEMPORAL_DENOISING ) if ( cpi -> oxcf . noise_sensitivity > 0 ) {\n unsigned char * src ;\n int l = 0 ;\n switch ( cpi -> oxcf . noise_sensitivity ) {\n case 1 : l = 20 ;\n break ;\n case 2 : l = 40 ;\n break ;\n case 3 : l = 60 ;\n break ;\n case 4 : l = 80 ;\n break ;\n case 5 : l = 100 ;\n break ;\n case 6 : l = 150 ;\n break ;\n }\n if ( cm -> frame_type == KEY_FRAME ) {\n vp8_de_noise ( cm , cpi -> Source , cpi -> Source , l , 1 , 0 , 1 ) ;\n }\n else {\n vp8_de_noise ( cm , cpi -> Source , cpi -> Source , l , 1 , 0 , 1 ) ;\n src = cpi -> Source -> y_buffer ;\n if ( cpi -> Source -> y_stride < 0 ) {\n src += cpi -> Source -> y_stride * ( cpi -> Source -> y_height - 1 ) ;\n }\n }\n }\n # endif # ifdef OUTPUT_YUV_SRC vp8_write_yuv_frame ( yuv_file , cpi -> Source ) ;\n # endif do {\n vp8_clear_system_state ( ) ;\n vp8_set_quantizer ( cpi , Q ) ;\n if ( cpi -> common . mb_no_coeff_skip ) {\n cpi -> prob_skip_false = cpi -> base_skip_false_prob [ Q ] ;\n if ( cm -> frame_type != KEY_FRAME ) {\n if ( cpi -> common . refresh_alt_ref_frame ) {\n if ( cpi -> last_skip_false_probs [ 2 ] != 0 ) cpi -> prob_skip_false = cpi -> last_skip_false_probs [ 2 ] ;\n }\n else if ( cpi -> common . refresh_golden_frame ) {\n if ( cpi -> last_skip_false_probs [ 1 ] != 0 ) cpi -> prob_skip_false = cpi -> last_skip_false_probs [ 1 ] ;\n }\n else {\n if ( cpi -> last_skip_false_probs [ 0 ] != 0 ) cpi -> prob_skip_false = cpi -> last_skip_false_probs [ 0 ] ;\n }\n if ( cpi -> prob_skip_false < 5 ) cpi -> prob_skip_false = 5 ;\n if ( cpi -> prob_skip_false > 250 ) cpi -> prob_skip_false = 250 ;\n if ( cpi -> oxcf . number_of_layers == 1 && cpi -> is_src_frame_alt_ref ) cpi -> prob_skip_false = 1 ;\n }\n # if 0 if ( cpi -> pass != 1 ) {\n FILE * f = fopen ( \"skip.stt\" , \"a\" ) ;\n fprintf ( f , \"%d, %d, %4d \" , cpi -> common . refresh_golden_frame , cpi -> common . refresh_alt_ref_frame , cpi -> prob_skip_false ) ;\n fclose ( f ) ;\n }\n # endif }\n if ( cm -> frame_type == KEY_FRAME ) {\n if ( resize_key_frame ( cpi ) ) {\n Q = vp8_regulate_q ( cpi , cpi -> this_frame_target ) ;\n if ( cpi -> cyclic_refresh_mode_enabled ) {\n if ( cpi -> current_layer == 0 ) cyclic_background_refresh ( cpi , Q , 0 ) ;\n else disable_segmentation ( cpi ) ;\n }\n vpx_memset ( cpi -> consec_zero_last , 0 , cm -> mb_rows * cm -> mb_cols ) ;\n vp8_set_quantizer ( cpi , Q ) ;\n }\n vp8_setup_key_frame ( cpi ) ;\n }\n # if CONFIG_REALTIME_ONLY & CONFIG_ONTHEFLY_BITPACKING {\n if ( cpi -> oxcf . error_resilient_mode ) cm -> refresh_entropy_probs = 0 ;\n if ( cpi -> oxcf . error_resilient_mode & VPX_ERROR_RESILIENT_PARTITIONS ) {\n if ( cm -> frame_type == KEY_FRAME ) cm -> refresh_entropy_probs = 1 ;\n }\n if ( cm -> refresh_entropy_probs == 0 ) {\n vpx_memcpy ( & cm -> lfc , & cm -> fc , sizeof ( cm -> fc ) ) ;\n }\n vp8_update_coef_context ( cpi ) ;\n vp8_update_coef_probs ( cpi ) ;\n vp8_encode_frame ( cpi ) ;\n }\n # else vp8_encode_frame ( cpi ) ;\n cpi -> projected_frame_size -= vp8_estimate_entropy_savings ( cpi ) ;\n cpi -> projected_frame_size = ( cpi -> projected_frame_size > 0 ) ? cpi -> projected_frame_size : 0 ;\n # endif vp8_clear_system_state ( ) ;\n if ( cpi -> pass != 2 && cpi -> oxcf . auto_key && cm -> frame_type != KEY_FRAME && cpi -> compressor_speed != 2 ) {\n # if ! ( CONFIG_REALTIME_ONLY ) if ( decide_key_frame ( cpi ) ) {\n cm -> frame_type = KEY_FRAME ;\n vp8_pick_frame_size ( cpi ) ;\n cpi -> source_alt_ref_active = 0 ;\n setup_features ( cpi ) ;\n vp8_restore_coding_context ( cpi ) ;\n Q = vp8_regulate_q ( cpi , cpi -> this_frame_target ) ;\n vp8_compute_frame_size_bounds ( cpi , & frame_under_shoot_limit , & frame_over_shoot_limit ) ;\n bottom_index = cpi -> active_best_quality ;\n top_index = cpi -> active_worst_quality ;\n q_low = cpi -> active_best_quality ;\n q_high = cpi -> active_worst_quality ;\n loop_count ++ ;\n Loop = 1 ;\n continue ;\n }\n # endif }\n vp8_clear_system_state ( ) ;\n if ( frame_over_shoot_limit == 0 ) frame_over_shoot_limit = 1 ;\n if ( ( ( cpi -> pass != 2 ) || ( cpi -> oxcf . end_usage == USAGE_STREAM_FROM_SERVER ) ) && ( Q == cpi -> active_worst_quality ) && ( cpi -> active_worst_quality < cpi -> worst_quality ) && ( cpi -> projected_frame_size > frame_over_shoot_limit ) ) {\n int over_size_percent = ( ( cpi -> projected_frame_size - frame_over_shoot_limit ) * 100 ) / frame_over_shoot_limit ;\n while ( ( cpi -> active_worst_quality < cpi -> worst_quality ) && ( over_size_percent > 0 ) ) {\n cpi -> active_worst_quality ++ ;\n over_size_percent = ( int ) ( over_size_percent * 0.96 ) ;\n }\n # if ! ( CONFIG_REALTIME_ONLY ) top_index = cpi -> active_worst_quality ;\n # endif active_worst_qchanged = 1 ;\n }\n else active_worst_qchanged = 0 ;\n # if ! ( CONFIG_REALTIME_ONLY ) if ( ( cm -> frame_type == KEY_FRAME ) && cpi -> this_key_frame_forced ) {\n int last_q = Q ;\n int kf_err = vp8_calc_ss_err ( cpi -> Source , & cm -> yv12_fb [ cm -> new_fb_idx ] ) ;\n if ( kf_err > ( ( cpi -> ambient_err * 7 ) >> 3 ) ) {\n q_high = ( Q > q_low ) ? ( Q - 1 ) : q_low ;\n Q = ( q_high + q_low ) >> 1 ;\n }\n else if ( kf_err < ( cpi -> ambient_err >> 1 ) ) {\n q_low = ( Q < q_high ) ? ( Q + 1 ) : q_high ;\n Q = ( q_high + q_low + 1 ) >> 1 ;\n }\n if ( Q > q_high ) Q = q_high ;\n else if ( Q < q_low ) Q = q_low ;\n Loop = Q != last_q ;\n }\n else if ( recode_loop_test ( cpi , frame_over_shoot_limit , frame_under_shoot_limit , Q , top_index , bottom_index ) ) {\n int last_q = Q ;\n int Retries = 0 ;\n if ( cpi -> projected_frame_size > cpi -> this_frame_target ) {\n q_low = ( Q < q_high ) ? ( Q + 1 ) : q_high ;\n if ( cpi -> mb . zbin_over_quant > 0 ) zbin_oq_low = ( cpi -> mb . zbin_over_quant < zbin_oq_high ) ? ( cpi -> mb . zbin_over_quant + 1 ) : zbin_oq_high ;\n if ( undershoot_seen ) {\n if ( ! active_worst_qchanged ) vp8_update_rate_correction_factors ( cpi , 1 ) ;\n Q = ( q_high + q_low + 1 ) / 2 ;\n if ( Q < MAXQ ) cpi -> mb . zbin_over_quant = 0 ;\n else {\n zbin_oq_low = ( cpi -> mb . zbin_over_quant < zbin_oq_high ) ? ( cpi -> mb . zbin_over_quant + 1 ) : zbin_oq_high ;\n cpi -> mb . zbin_over_quant = ( zbin_oq_high + zbin_oq_low ) / 2 ;\n }\n }\n else {\n if ( ! active_worst_qchanged ) vp8_update_rate_correction_factors ( cpi , 0 ) ;\n Q = vp8_regulate_q ( cpi , cpi -> this_frame_target ) ;\n while ( ( ( Q < q_low ) || ( cpi -> mb . zbin_over_quant < zbin_oq_low ) ) && ( Retries < 10 ) ) {\n vp8_update_rate_correction_factors ( cpi , 0 ) ;\n Q = vp8_regulate_q ( cpi , cpi -> this_frame_target ) ;\n Retries ++ ;\n }\n }\n overshoot_seen = 1 ;\n }\n else {\n if ( cpi -> mb . zbin_over_quant == 0 ) q_high = ( Q > q_low ) ? ( Q - 1 ) : q_low ;\n else zbin_oq_high = ( cpi -> mb . zbin_over_quant > zbin_oq_low ) ? ( cpi -> mb . zbin_over_quant - 1 ) : zbin_oq_low ;\n if ( overshoot_seen ) {\n if ( ! active_worst_qchanged ) vp8_update_rate_correction_factors ( cpi , 1 ) ;\n Q = ( q_high + q_low ) / 2 ;\n if ( Q < MAXQ ) cpi -> mb . zbin_over_quant = 0 ;\n else cpi -> mb . zbin_over_quant = ( zbin_oq_high + zbin_oq_low ) / 2 ;\n }\n else {\n if ( ! active_worst_qchanged ) vp8_update_rate_correction_factors ( cpi , 0 ) ;\n Q = vp8_regulate_q ( cpi , cpi -> this_frame_target ) ;\n if ( ( cpi -> oxcf . end_usage == USAGE_CONSTRAINED_QUALITY ) && ( Q < q_low ) ) {\n q_low = Q ;\n }\n while ( ( ( Q > q_high ) || ( cpi -> mb . zbin_over_quant > zbin_oq_high ) ) && ( Retries < 10 ) ) {\n vp8_update_rate_correction_factors ( cpi , 0 ) ;\n Q = vp8_regulate_q ( cpi , cpi -> this_frame_target ) ;\n Retries ++ ;\n }\n }\n undershoot_seen = 1 ;\n }\n if ( Q > q_high ) Q = q_high ;\n else if ( Q < q_low ) Q = q_low ;\n cpi -> mb . zbin_over_quant = ( cpi -> mb . zbin_over_quant < zbin_oq_low ) ? zbin_oq_low : ( cpi -> mb . zbin_over_quant > zbin_oq_high ) ? zbin_oq_high : cpi -> mb . zbin_over_quant ;\n Loop = Q != last_q ;\n }\n else # endif Loop = 0 ;\n if ( cpi -> is_src_frame_alt_ref ) Loop = 0 ;\n if ( Loop == 1 ) {\n vp8_restore_coding_context ( cpi ) ;\n loop_count ++ ;\n # if CONFIG_INTERNAL_STATS cpi -> tot_recode_hits ++ ;\n # endif }\n }\n while ( Loop == 1 ) ;\n # if 0 {\n cpi -> one_pass_frame_stats [ cpi -> one_pass_frame_index ] . frame_coded_error = ( double ) cpi -> prediction_error ;\n cpi -> one_pass_frame_stats [ cpi -> one_pass_frame_index ] . frame_intra_error = ( double ) cpi -> intra_error ;\n cpi -> one_pass_frame_stats [ cpi -> one_pass_frame_index ] . frame_pcnt_inter = ( double ) ( 100 - cpi -> this_frame_percent_intra ) / 100.0 ;\n }\n # endif if ( cpi -> next_key_frame_forced && ( cpi -> twopass . frames_to_key == 0 ) ) {\n cpi -> ambient_err = vp8_calc_ss_err ( cpi -> Source , & cm -> yv12_fb [ cm -> new_fb_idx ] ) ;\n }\n # if CONFIG_MULTI_RES_ENCODING if ( ! cpi -> oxcf . mr_encoder_id && cm -> show_frame ) # else if ( cm -> show_frame ) # endif {\n int mb_row ;\n int mb_col ;\n MODE_INFO * tmp = cm -> mip ;\n if ( cm -> frame_type != KEY_FRAME ) {\n for ( mb_row = 0 ;\n mb_row < cm -> mb_rows + 1 ;\n mb_row ++ ) {\n for ( mb_col = 0 ;\n mb_col < cm -> mb_cols + 1 ;\n mb_col ++ ) {\n if ( tmp -> mbmi . ref_frame != INTRA_FRAME ) cpi -> lfmv [ mb_col + mb_row * ( cm -> mode_info_stride + 1 ) ] . as_int = tmp -> mbmi . mv . as_int ;\n cpi -> lf_ref_frame_sign_bias [ mb_col + mb_row * ( cm -> mode_info_stride + 1 ) ] = cm -> ref_frame_sign_bias [ tmp -> mbmi . ref_frame ] ;\n cpi -> lf_ref_frame [ mb_col + mb_row * ( cm -> mode_info_stride + 1 ) ] = tmp -> mbmi . ref_frame ;\n tmp ++ ;\n }\n }\n }\n }\n {\n int mb_row ;\n int mb_col ;\n MODE_INFO * tmp = cm -> mi ;\n cpi -> zeromv_count = 0 ;\n if ( cm -> frame_type != KEY_FRAME ) {\n for ( mb_row = 0 ;\n mb_row < cm -> mb_rows ;\n mb_row ++ ) {\n for ( mb_col = 0 ;\n mb_col < cm -> mb_cols ;\n mb_col ++ ) {\n if ( tmp -> mbmi . mode == ZEROMV && tmp -> mbmi . ref_frame == LAST_FRAME ) cpi -> zeromv_count ++ ;\n tmp ++ ;\n }\n tmp ++ ;\n }\n }\n }\n # if CONFIG_MULTI_RES_ENCODING vp8_cal_dissimilarity ( cpi ) ;\n # endif if ( cpi -> oxcf . number_of_layers == 1 ) vp8_update_gf_useage_maps ( cpi , cm , & cpi -> mb ) ;\n if ( cm -> frame_type == KEY_FRAME ) cm -> refresh_last_frame = 1 ;\n # if 0 {\n FILE * f = fopen ( \"gfactive.stt\" , \"a\" ) ;\n fprintf ( f , \"%8d %8d %8d %8d %8d\\n\" , cm -> current_video_frame , ( 100 * cpi -> gf_active_count ) / ( cpi -> common . mb_rows * cpi -> common . mb_cols ) , cpi -> this_iiratio , cpi -> next_iiratio , cm -> refresh_golden_frame ) ;\n fclose ( f ) ;\n }\n # endif if ( ! cpi -> oxcf . error_resilient_mode && cm -> refresh_golden_frame ) cm -> copy_buffer_to_arf = 2 ;\n else cm -> copy_buffer_to_arf = 0 ;\n cm -> frame_to_show = & cm -> yv12_fb [ cm -> new_fb_idx ] ;\n # if CONFIG_TEMPORAL_DENOISING if ( cpi -> oxcf . noise_sensitivity == 4 && cpi -> frames_since_key % 8 == 0 && cm -> frame_type != KEY_FRAME ) {\n process_denoiser_mode_change ( cpi ) ;\n }\n # endif # if CONFIG_MULTITHREAD if ( cpi -> b_multi_threaded ) {\n sem_post ( & cpi -> h_event_start_lpf ) ;\n cpi -> b_lpf_running = 1 ;\n }\n else # endif {\n vp8_loopfilter_frame ( cpi , cm ) ;\n }\n update_reference_frames ( cpi ) ;\n # ifdef OUTPUT_YUV_DENOISED vp8_write_yuv_frame ( yuv_denoised_file , & cpi -> denoiser . yv12_running_avg [ INTRA_FRAME ] ) ;\n # endif # if ! ( CONFIG_REALTIME_ONLY & CONFIG_ONTHEFLY_BITPACKING ) if ( cpi -> oxcf . error_resilient_mode ) {\n cm -> refresh_entropy_probs = 0 ;\n }\n # endif # if CONFIG_MULTITHREAD if ( cpi -> b_multi_threaded ) sem_wait ( & cpi -> h_event_end_lpf ) ;\n # endif vp8_pack_bitstream ( cpi , dest , dest_end , size ) ;\n # if CONFIG_MULTITHREAD if ( cpi -> b_lpf_running && cpi -> b_calculate_psnr ) {\n sem_wait ( & cpi -> h_event_end_lpf ) ;\n cpi -> b_lpf_running = 0 ;\n }\n # endif cm -> last_frame_type = cm -> frame_type ;\n cpi -> total_byte_count += ( * size ) ;\n cpi -> projected_frame_size = ( * size ) << 3 ;\n if ( cpi -> oxcf . number_of_layers > 1 ) {\n unsigned int i ;\n for ( i = cpi -> current_layer + 1 ;\n i < cpi -> oxcf . number_of_layers ;\n i ++ ) cpi -> layer_context [ i ] . total_byte_count += ( * size ) ;\n }\n if ( ! active_worst_qchanged ) vp8_update_rate_correction_factors ( cpi , 2 ) ;\n cpi -> last_q [ cm -> frame_type ] = cm -> base_qindex ;\n if ( cm -> frame_type == KEY_FRAME ) {\n vp8_adjust_key_frame_context ( cpi ) ;\n }\n if ( cm -> frame_type != KEY_FRAME ) cpi -> avg_frame_qindex = ( 2 + 3 * cpi -> avg_frame_qindex + cm -> base_qindex ) >> 2 ;\n if ( ( cm -> frame_type != KEY_FRAME ) && ( ( cpi -> oxcf . number_of_layers > 1 ) || ( ! cm -> refresh_golden_frame && ! cm -> refresh_alt_ref_frame ) ) ) {\n cpi -> ni_frames ++ ;\n if ( cpi -> pass == 2 ) {\n cpi -> ni_tot_qi += Q ;\n cpi -> ni_av_qi = ( cpi -> ni_tot_qi / cpi -> ni_frames ) ;\n }\n else {\n if ( cpi -> ni_frames > 150 ) {\n cpi -> ni_tot_qi += Q ;\n cpi -> ni_av_qi = ( cpi -> ni_tot_qi / cpi -> ni_frames ) ;\n }\n else {\n cpi -> ni_tot_qi += Q ;\n cpi -> ni_av_qi = ( ( cpi -> ni_tot_qi / cpi -> ni_frames ) + cpi -> worst_quality + 1 ) / 2 ;\n }\n if ( Q > cpi -> ni_av_qi ) cpi -> ni_av_qi = Q - 1 ;\n }\n }\n if ( ! cm -> show_frame ) cpi -> bits_off_target -= cpi -> projected_frame_size ;\n else cpi -> bits_off_target += cpi -> av_per_frame_bandwidth - cpi -> projected_frame_size ;\n if ( cpi -> bits_off_target > cpi -> oxcf . maximum_buffer_size ) cpi -> bits_off_target = cpi -> oxcf . maximum_buffer_size ;\n cpi -> rolling_target_bits = ( ( cpi -> rolling_target_bits * 3 ) + cpi -> this_frame_target + 2 ) / 4 ;\n cpi -> rolling_actual_bits = ( ( cpi -> rolling_actual_bits * 3 ) + cpi -> projected_frame_size + 2 ) / 4 ;\n cpi -> long_rolling_target_bits = ( ( cpi -> long_rolling_target_bits * 31 ) + cpi -> this_frame_target + 16 ) / 32 ;\n cpi -> long_rolling_actual_bits = ( ( cpi -> long_rolling_actual_bits * 31 ) + cpi -> projected_frame_size + 16 ) / 32 ;\n cpi -> total_actual_bits += cpi -> projected_frame_size ;\n cpi -> total_target_vs_actual += ( cpi -> this_frame_target - cpi -> projected_frame_size ) ;\n cpi -> buffer_level = cpi -> bits_off_target ;\n if ( cpi -> oxcf . number_of_layers > 1 ) {\n unsigned int i ;\n for ( i = cpi -> current_layer + 1 ;\n i < cpi -> oxcf . number_of_layers ;\n i ++ ) {\n LAYER_CONTEXT * lc = & cpi -> layer_context [ i ] ;\n int bits_off_for_this_layer = ( int ) ( lc -> target_bandwidth / lc -> framerate - cpi -> projected_frame_size ) ;\n lc -> bits_off_target += bits_off_for_this_layer ;\n if ( lc -> bits_off_target > lc -> maximum_buffer_size ) lc -> bits_off_target = lc -> maximum_buffer_size ;\n lc -> total_actual_bits += cpi -> projected_frame_size ;\n lc -> total_target_vs_actual += bits_off_for_this_layer ;\n lc -> buffer_level = lc -> bits_off_target ;\n }\n }\n if ( cm -> frame_type == KEY_FRAME ) {\n cpi -> twopass . kf_group_bits += cpi -> this_frame_target - cpi -> projected_frame_size ;\n if ( cpi -> twopass . kf_group_bits < 0 ) cpi -> twopass . kf_group_bits = 0 ;\n }\n else if ( cm -> refresh_golden_frame || cm -> refresh_alt_ref_frame ) {\n cpi -> twopass . gf_group_bits += cpi -> this_frame_target - cpi -> projected_frame_size ;\n if ( cpi -> twopass . gf_group_bits < 0 ) cpi -> twopass . gf_group_bits = 0 ;\n }\n if ( cm -> frame_type != KEY_FRAME ) {\n if ( cpi -> common . refresh_alt_ref_frame ) {\n cpi -> last_skip_false_probs [ 2 ] = cpi -> prob_skip_false ;\n cpi -> last_skip_probs_q [ 2 ] = cm -> base_qindex ;\n }\n else if ( cpi -> common . refresh_golden_frame ) {\n cpi -> last_skip_false_probs [ 1 ] = cpi -> prob_skip_false ;\n cpi -> last_skip_probs_q [ 1 ] = cm -> base_qindex ;\n }\n else {\n cpi -> last_skip_false_probs [ 0 ] = cpi -> prob_skip_false ;\n cpi -> last_skip_probs_q [ 0 ] = cm -> base_qindex ;\n cpi -> base_skip_false_prob [ cm -> base_qindex ] = cpi -> prob_skip_false ;\n }\n }\n # if 0 && CONFIG_INTERNAL_STATS {\n FILE * f = fopen ( \"tmp.stt\" , \"a\" ) ;\n vp8_clear_system_state ( ) ;\n if ( cpi -> twopass . total_left_stats . coded_error != 0.0 ) fprintf ( f , \"%10d %10d %10d %10d %10d %10\" PRId64 \" %10\" PRId64 \"%10\" PRId64 \" %10d %6d %6d %6d %6d %5d %5d %5d %8d \" \"%8.2lf %\" PRId64 \" %10.3lf %10\" PRId64 \" %8d\\n\" , cpi -> common . current_video_frame , cpi -> this_frame_target , cpi -> projected_frame_size , ( cpi -> projected_frame_size - cpi -> this_frame_target ) , cpi -> total_target_vs_actual , cpi -> buffer_level , ( cpi -> oxcf . starting_buffer_level - cpi -> bits_off_target ) , cpi -> total_actual_bits , cm -> base_qindex , cpi -> active_best_quality , cpi -> active_worst_quality , cpi -> ni_av_qi , cpi -> cq_target_quality , cm -> refresh_golden_frame , cm -> refresh_alt_ref_frame , cm -> frame_type , cpi -> gfu_boost , cpi -> twopass . est_max_qcorrection_factor , cpi -> twopass . bits_left , cpi -> twopass . total_left_stats . coded_error , ( double ) cpi -> twopass . bits_left / cpi -> twopass . total_left_stats . coded_error , cpi -> tot_recode_hits ) ;\n else fprintf ( f , \"%10d %10d %10d %10d %10d %10\" PRId64 \" %10\" PRId64 \"%10\" PRId64 \" %10d %6d %6d %6d %6d %5d %5d %5d %8d \" \"%8.2lf %\" PRId64 \" %10.3lf %8d\\n\" , cpi -> common . current_video_frame , cpi -> this_frame_target , cpi -> projected_frame_size , ( cpi -> projected_frame_size - cpi -> this_frame_target ) , cpi -> total_target_vs_actual , cpi -> buffer_level , ( cpi -> oxcf . starting_buffer_level - cpi -> bits_off_target ) , cpi -> total_actual_bits , cm -> base_qindex , cpi -> active_best_quality , cpi -> active_worst_quality , cpi -> ni_av_qi , cpi -> cq_target_quality , cm -> refresh_golden_frame , cm -> refresh_alt_ref_frame , cm -> frame_type , cpi -> gfu_boost , cpi -> twopass . est_max_qcorrection_factor , cpi -> twopass . bits_left , cpi -> twopass . total_left_stats . coded_error , cpi -> tot_recode_hits ) ;\n fclose ( f ) ;\n {\n FILE * fmodes = fopen ( \"Modes.stt\" , \"a\" ) ;\n fprintf ( fmodes , \"%6d:%1d:%1d:%1d \" , cpi -> common . current_video_frame , cm -> frame_type , cm -> refresh_golden_frame , cm -> refresh_alt_ref_frame ) ;\n fprintf ( fmodes , \"\\n\" ) ;\n fclose ( fmodes ) ;\n }\n }\n # endif if ( cm -> refresh_golden_frame == 1 ) cm -> frame_flags = cm -> frame_flags | FRAMEFLAGS_GOLDEN ;\n else cm -> frame_flags = cm -> frame_flags & ~ FRAMEFLAGS_GOLDEN ;\n if ( cm -> refresh_alt_ref_frame == 1 ) cm -> frame_flags = cm -> frame_flags | FRAMEFLAGS_ALTREF ;\n else cm -> frame_flags = cm -> frame_flags & ~ FRAMEFLAGS_ALTREF ;\n if ( cm -> refresh_last_frame & cm -> refresh_golden_frame ) cpi -> gold_is_last = 1 ;\n else if ( cm -> refresh_last_frame ^ cm -> refresh_golden_frame ) cpi -> gold_is_last = 0 ;\n if ( cm -> refresh_last_frame & cm -> refresh_alt_ref_frame ) cpi -> alt_is_last = 1 ;\n else if ( cm -> refresh_last_frame ^ cm -> refresh_alt_ref_frame ) cpi -> alt_is_last = 0 ;\n if ( cm -> refresh_alt_ref_frame & cm -> refresh_golden_frame ) cpi -> gold_is_alt = 1 ;\n else if ( cm -> refresh_alt_ref_frame ^ cm -> refresh_golden_frame ) cpi -> gold_is_alt = 0 ;\n cpi -> ref_frame_flags = VP8_ALTR_FRAME | VP8_GOLD_FRAME | VP8_LAST_FRAME ;\n if ( cpi -> gold_is_last ) cpi -> ref_frame_flags &= ~ VP8_GOLD_FRAME ;\n if ( cpi -> alt_is_last ) cpi -> ref_frame_flags &= ~ VP8_ALTR_FRAME ;\n if ( cpi -> gold_is_alt ) cpi -> ref_frame_flags &= ~ VP8_ALTR_FRAME ;\n if ( ! cpi -> oxcf . error_resilient_mode ) {\n if ( cpi -> oxcf . play_alternate && cm -> refresh_alt_ref_frame && ( cm -> frame_type != KEY_FRAME ) ) update_alt_ref_frame_stats ( cpi ) ;\n else update_golden_frame_stats ( cpi ) ;\n }\n if ( cm -> frame_type == KEY_FRAME ) {\n * frame_flags = cm -> frame_flags | FRAMEFLAGS_KEY ;\n cm -> frame_type = INTER_FRAME ;\n cpi -> last_frame_percent_intra = 100 ;\n }\n else {\n * frame_flags = cm -> frame_flags & ~ FRAMEFLAGS_KEY ;\n cpi -> last_frame_percent_intra = cpi -> this_frame_percent_intra ;\n }\n cpi -> mb . e_mbd . update_mb_segmentation_map = 0 ;\n cpi -> mb . e_mbd . update_mb_segmentation_data = 0 ;\n cpi -> mb . e_mbd . mode_ref_lf_delta_update = 0 ;\n if ( cm -> show_frame ) {\n cm -> current_video_frame ++ ;\n cpi -> frames_since_key ++ ;\n cpi -> temporal_pattern_counter ++ ;\n }\n # if 0 {\n char filename [ 512 ] ;\n FILE * recon_file ;\n sprintf ( filename , \"enc%04d.yuv\" , ( int ) cm -> current_video_frame ) ;\n recon_file = fopen ( filename , \"wb\" ) ;\n fwrite ( cm -> yv12_fb [ cm -> lst_fb_idx ] . buffer_alloc , cm -> yv12_fb [ cm -> lst_fb_idx ] . frame_size , 1 , recon_file ) ;\n fclose ( recon_file ) ;\n }\n # endif }"}
{"idx": 13852, "target": 0, "func": "static ossl_inline void lh_ ## type ## _free ( LHASH_OF ( type ) * lh ) {\n OPENSSL_LH_free ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline type * lh_ ## type ## _insert ( LHASH_OF ( type ) * lh , type * d ) {\n return ( type * ) OPENSSL_LH_insert ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline type * lh_ ## type ## _delete ( LHASH_OF ( type ) * lh , const type * d ) {\n return ( type * ) OPENSSL_LH_delete ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline type * lh_ ## type ## _retrieve ( LHASH_OF ( type ) * lh , const type * d ) {\n return ( type * ) OPENSSL_LH_retrieve ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline int lh_ ## type ## _error ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_error ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _num_items ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_num_items ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _node_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _node_usage_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_usage_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING )"}
{"idx": 13853, "target": 0, "func": "static SORT_KEY_BLOCKS * alloc_key_blocks ( MI_CHECK * param , uint blocks , uint buffer_length ) {\n reg1 uint i ;\n SORT_KEY_BLOCKS * block ;\n DBUG_ENTER ( \"alloc_key_blocks\" ) ;\n if ( ! ( block = ( SORT_KEY_BLOCKS * ) my_malloc ( ( sizeof ( SORT_KEY_BLOCKS ) + buffer_length + IO_SIZE ) * blocks , MYF ( 0 ) ) ) ) {\n mi_check_print_error ( param , \"Not enough memory for sort-key-blocks\" ) ;\n return ( 0 ) ;\n }\n for ( i = 0 ;\n i < blocks ;\n i ++ ) {\n block [ i ] . inited = 0 ;\n block [ i ] . buff = ( uchar * ) ( block + blocks ) + ( buffer_length + IO_SIZE ) * i ;\n }\n DBUG_RETURN ( block ) ;\n }"}
{"idx": 13854, "target": 0, "func": "static void display_update ( DisplayChangeListener * dcl , int x , int y , int w , int h ) {\n SimpleSpiceDisplay * ssd = container_of ( dcl , SimpleSpiceDisplay , dcl ) ;\n qemu_spice_display_update ( ssd , x , y , w , h ) ;\n }"}
{"idx": 13855, "target": 0, "func": "SPL_METHOD ( SplFileInfo , setFileClass ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n zend_class_entry * ce = spl_ce_SplFileObject ;\n zend_error_handling error_handling ;\n zend_replace_error_handling ( EH_THROW , spl_ce_UnexpectedValueException , & error_handling TSRMLS_CC ) ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"|C\" , & ce ) == SUCCESS ) {\n intern -> file_class = ce ;\n }\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n }"}
{"idx": 13856, "target": 0, "func": "void dtls1_free ( SSL * s ) {\n DTLS_RECORD_LAYER_free ( & s -> rlayer ) ;\n ssl3_free ( s ) ;\n dtls1_clear_queues ( s ) ;\n pqueue_free ( s -> d1 -> buffered_messages ) ;\n pqueue_free ( s -> d1 -> sent_messages ) ;\n OPENSSL_free ( s -> d1 ) ;\n s -> d1 = NULL ;\n }"}
{"idx": 13857, "target": 0, "func": "static inline Quantum GetPixela ( const Image * restrict image , const Quantum * restrict pixel ) {\n return ( pixel [ image -> channel_map [ aPixelChannel ] . offset ] ) ;\n }"}
{"idx": 13858, "target": 0, "func": "X509 * d2i_X509_bio ( BIO * bp , X509 * * x509 ) {\n return ASN1_item_d2i_bio ( ASN1_ITEM_rptr ( X509 ) , bp , x509 ) ;\n }"}
{"idx": 13859, "target": 0, "func": "enum ImapAuthRes imap_auth_cram_md5 ( struct ImapData * idata , const char * method ) {\n char ibuf [ LONG_STRING * 2 ] , obuf [ LONG_STRING ] ;\n unsigned char hmac_response [ MD5_DIGEST_LEN ] ;\n int len ;\n int rc ;\n if ( ! mutt_bit_isset ( idata -> capabilities , ACRAM_MD5 ) ) return IMAP_AUTH_UNAVAIL ;\n mutt_message ( _ ( \"Authenticating (CRAM-MD5)...\" ) ) ;\n if ( mutt_account_getlogin ( & idata -> conn -> account ) < 0 ) return IMAP_AUTH_FAILURE ;\n if ( mutt_account_getpass ( & idata -> conn -> account ) < 0 ) return IMAP_AUTH_FAILURE ;\n imap_cmd_start ( idata , \"AUTHENTICATE CRAM-MD5\" ) ;\n do rc = imap_cmd_step ( idata ) ;\n while ( rc == IMAP_CMD_CONTINUE ) ;\n if ( rc != IMAP_CMD_RESPOND ) {\n mutt_debug ( 1 , \"Invalid response from server: %s\\n\" , ibuf ) ;\n goto bail ;\n }\n len = mutt_b64_decode ( obuf , idata -> buf + 2 , sizeof ( obuf ) ) ;\n if ( len == - 1 ) {\n mutt_debug ( 1 , \"Error decoding base64 response.\\n\" ) ;\n goto bail ;\n }\n obuf [ len ] = '\\0' ;\n mutt_debug ( 2 , \"CRAM challenge: %s\\n\" , obuf ) ;\n hmac_md5 ( idata -> conn -> account . pass , obuf , hmac_response ) ;\n int off = snprintf ( obuf , sizeof ( obuf ) , \"%s \" , idata -> conn -> account . user ) ;\n mutt_md5_toascii ( hmac_response , obuf + off ) ;\n mutt_debug ( 2 , \"CRAM response: %s\\n\" , obuf ) ;\n mutt_b64_encode ( ibuf , obuf , strlen ( obuf ) , sizeof ( ibuf ) - 2 ) ;\n mutt_str_strcat ( ibuf , sizeof ( ibuf ) , \"\\r\\n\" ) ;\n mutt_socket_send ( idata -> conn , ibuf ) ;\n do rc = imap_cmd_step ( idata ) ;\n while ( rc == IMAP_CMD_CONTINUE ) ;\n if ( rc != IMAP_CMD_OK ) {\n mutt_debug ( 1 , \"Error receiving server response.\\n\" ) ;\n goto bail ;\n }\n if ( imap_code ( idata -> buf ) ) return IMAP_AUTH_SUCCESS ;\n bail : mutt_error ( _ ( \"CRAM-MD5 authentication failed.\" ) ) ;\n return IMAP_AUTH_FAILURE ;\n }"}
{"idx": 13860, "target": 0, "func": "static inline int mpc8_get_mod_golomb ( GetBitContext * gb , int m ) {\n if ( mpc8_cnk_len [ 0 ] [ m ] < 1 ) return 0 ;\n return mpc8_dec_base ( gb , 1 , m + 1 ) ;\n }"}
{"idx": 13861, "target": 0, "func": "static int dissect_h245_SET_SIZE_1_256_OF_AlternativeCapabilitySet ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_set_of ( tvb , offset , actx , tree , hf_index , ett_h245_SET_SIZE_1_256_OF_AlternativeCapabilitySet , SET_SIZE_1_256_OF_AlternativeCapabilitySet_set_of , 1 , 256 , FALSE ) ;\n return offset ;\n }"}
{"idx": 13862, "target": 0, "func": "static void _slurmctld_free_comp_msg_list ( void * x ) {\n slurm_msg_t * msg = ( slurm_msg_t * ) x ;\n if ( msg ) {\n if ( msg -> msg_type == REQUEST_BATCH_JOB_LAUNCH ) {\n slurm_free_job_launch_msg ( msg -> data ) ;\n msg -> data = NULL ;\n }\n slurm_free_comp_msg_list ( msg ) ;\n }\n }"}
{"idx": 13863, "target": 0, "func": "static void U_CALLCONV _Latin1GetUnicodeSet ( const UConverter * cnv , const USetAdder * sa , UConverterUnicodeSet which , UErrorCode * pErrorCode ) {\n ( void ) cnv ;\n ( void ) which ;\n ( void ) pErrorCode ;\n sa -> addRange ( sa -> set , 0 , 0xff ) ;\n }"}
{"idx": 13864, "target": 0, "func": "static void pick_quickcompress_mode ( vpx_codec_alg_priv_t * ctx , unsigned long duration , unsigned long deadline ) {\n MODE new_mode = BEST ;\n switch ( ctx -> cfg . g_pass ) {\n case VPX_RC_ONE_PASS : if ( deadline > 0 ) {\n const vpx_codec_enc_cfg_t * const cfg = & ctx -> cfg ;\n const uint64_t duration_us = ( uint64_t ) duration * 1000000 * ( uint64_t ) cfg -> g_timebase . num / ( uint64_t ) cfg -> g_timebase . den ;\n new_mode = ( deadline > duration_us ) ? GOOD : REALTIME ;\n }\n else {\n new_mode = BEST ;\n }\n break ;\n case VPX_RC_FIRST_PASS : break ;\n case VPX_RC_LAST_PASS : new_mode = deadline > 0 ? GOOD : BEST ;\n break ;\n }\n if ( ctx -> oxcf . mode != new_mode ) {\n ctx -> oxcf . mode = new_mode ;\n vp9_change_config ( ctx -> cpi , & ctx -> oxcf ) ;\n }\n }"}
{"idx": 13865, "target": 1, "func": "static void _ISCIIGetUnicodeSet ( const UConverter * cnv , const USetAdder * sa , UConverterUnicodeSet which , UErrorCode * pErrorCode ) {\n int32_t idx , script ;\n uint8_t mask ;\n sa -> addRange ( sa -> set , 0 , ASCII_END ) ;\n for ( script = DEVANAGARI ;\n script <= MALAYALAM ;\n script ++ ) {\n mask = ( uint8_t ) ( lookupInitialData [ script ] . maskEnum ) ;\n for ( idx = 0 ;\n idx < DELTA ;\n idx ++ ) {\n if ( ( validityTable [ idx ] & mask ) || ( script == TELUGU && idx == 0x31 ) ) {\n sa -> add ( sa -> set , idx + ( script * DELTA ) + INDIC_BLOCK_BEGIN ) ;\n }\n }\n }\n sa -> add ( sa -> set , DANDA ) ;\n sa -> add ( sa -> set , DOUBLE_DANDA ) ;\n sa -> add ( sa -> set , ZWNJ ) ;\n sa -> add ( sa -> set , ZWJ ) ;\n }"}
{"idx": 13866, "target": 0, "func": "int dtls1_get_record ( SSL * s ) {\n int ssl_major , ssl_minor ;\n int i , n ;\n SSL3_RECORD * rr ;\n unsigned char * p = NULL ;\n unsigned short version ;\n DTLS1_BITMAP * bitmap ;\n unsigned int is_next_epoch ;\n rr = RECORD_LAYER_get_rrec ( & s -> rlayer ) ;\n again : if ( ! dtls1_process_buffered_records ( s ) ) return - 1 ;\n if ( dtls1_get_processed_record ( s ) ) return 1 ;\n if ( ( RECORD_LAYER_get_rstate ( & s -> rlayer ) != SSL_ST_READ_BODY ) || ( RECORD_LAYER_get_packet_length ( & s -> rlayer ) < DTLS1_RT_HEADER_LENGTH ) ) {\n n = ssl3_read_n ( s , DTLS1_RT_HEADER_LENGTH , SSL3_BUFFER_get_len ( & s -> rlayer . rbuf ) , 0 , 1 ) ;\n if ( n <= 0 ) return ( n ) ;\n if ( RECORD_LAYER_get_packet_length ( & s -> rlayer ) != DTLS1_RT_HEADER_LENGTH ) {\n RECORD_LAYER_reset_packet_length ( & s -> rlayer ) ;\n goto again ;\n }\n RECORD_LAYER_set_rstate ( & s -> rlayer , SSL_ST_READ_BODY ) ;\n p = RECORD_LAYER_get_packet ( & s -> rlayer ) ;\n if ( s -> msg_callback ) s -> msg_callback ( 0 , 0 , SSL3_RT_HEADER , p , DTLS1_RT_HEADER_LENGTH , s , s -> msg_callback_arg ) ;\n rr -> type = * ( p ++ ) ;\n ssl_major = * ( p ++ ) ;\n ssl_minor = * ( p ++ ) ;\n version = ( ssl_major << 8 ) | ssl_minor ;\n n2s ( p , rr -> epoch ) ;\n memcpy ( & ( RECORD_LAYER_get_read_sequence ( & s -> rlayer ) [ 2 ] ) , p , 6 ) ;\n p += 6 ;\n n2s ( p , rr -> length ) ;\n if ( ! s -> first_packet ) {\n if ( version != s -> version ) {\n rr -> length = 0 ;\n RECORD_LAYER_reset_packet_length ( & s -> rlayer ) ;\n goto again ;\n }\n }\n if ( ( version & 0xff00 ) != ( s -> version & 0xff00 ) ) {\n rr -> length = 0 ;\n RECORD_LAYER_reset_packet_length ( & s -> rlayer ) ;\n goto again ;\n }\n if ( rr -> length > SSL3_RT_MAX_ENCRYPTED_LENGTH ) {\n rr -> length = 0 ;\n RECORD_LAYER_reset_packet_length ( & s -> rlayer ) ;\n goto again ;\n }\n }\n if ( rr -> length > RECORD_LAYER_get_packet_length ( & s -> rlayer ) - DTLS1_RT_HEADER_LENGTH ) {\n i = rr -> length ;\n n = ssl3_read_n ( s , i , i , 1 , 1 ) ;\n if ( n != i ) {\n rr -> length = 0 ;\n RECORD_LAYER_reset_packet_length ( & s -> rlayer ) ;\n goto again ;\n }\n }\n RECORD_LAYER_set_rstate ( & s -> rlayer , SSL_ST_READ_HEADER ) ;\n bitmap = dtls1_get_bitmap ( s , rr , & is_next_epoch ) ;\n if ( bitmap == NULL ) {\n rr -> length = 0 ;\n RECORD_LAYER_reset_packet_length ( & s -> rlayer ) ;\n goto again ;\n }\n # ifndef OPENSSL_NO_SCTP if ( ! BIO_dgram_is_sctp ( SSL_get_rbio ( s ) ) ) {\n # endif if ( ! dtls1_record_replay_check ( s , bitmap ) ) {\n rr -> length = 0 ;\n RECORD_LAYER_reset_packet_length ( & s -> rlayer ) ;\n goto again ;\n }\n # ifndef OPENSSL_NO_SCTP }\n # endif if ( rr -> length == 0 ) goto again ;\n if ( is_next_epoch ) {\n if ( ( SSL_in_init ( s ) || ossl_statem_get_in_handshake ( s ) ) ) {\n if ( dtls1_buffer_record ( s , & ( DTLS_RECORD_LAYER_get_unprocessed_rcds ( & s -> rlayer ) ) , rr -> seq_num ) < 0 ) return - 1 ;\n }\n rr -> length = 0 ;\n RECORD_LAYER_reset_packet_length ( & s -> rlayer ) ;\n goto again ;\n }\n if ( ! dtls1_process_record ( s , bitmap ) ) {\n rr -> length = 0 ;\n RECORD_LAYER_reset_packet_length ( & s -> rlayer ) ;\n goto again ;\n }\n return ( 1 ) ;\n }"}
{"idx": 13867, "target": 0, "func": "static void e1000e_set_rxcsum ( E1000ECore * core , int index , uint32_t val ) {\n core -> mac [ RXCSUM ] = val ;\n e1000e_update_rx_offloads ( core ) ;\n }"}
{"idx": 13868, "target": 0, "func": "EVP_CIPHER_CTX * EVP_CIPHER_CTX_new ( void ) {\n return OPENSSL_zalloc ( sizeof ( EVP_CIPHER_CTX ) ) ;\n }"}
{"idx": 13869, "target": 1, "func": "static const DataHeader * offsetTOCLookupFn ( const UDataMemory * pData , const char * tocEntryName , int32_t * pLength , UErrorCode * pErrorCode ) {\n const UDataOffsetTOC * toc = ( UDataOffsetTOC * ) pData -> toc ;\n if ( toc != NULL ) {\n const char * base = ( const char * ) toc ;\n int32_t number , count = ( int32_t ) toc -> count ;\n # if defined ( UDATA_DEBUG_DUMP ) for ( number = 0 ;\n number < count ;\n ++ number ) {\n fprintf ( stderr , \"\\tx%d: %s\\n\" , number , & base [ toc -> entry [ number ] . nameOffset ] ) ;\n }\n # endif number = offsetTOCPrefixBinarySearch ( tocEntryName , base , toc -> entry , count ) ;\n if ( number >= 0 ) {\n const UDataOffsetTOCEntry * entry = toc -> entry + number ;\n # ifdef UDATA_DEBUG fprintf ( stderr , \"%s: Found.\\n\" , tocEntryName ) ;\n # endif if ( ( number + 1 ) < count ) {\n * pLength = ( int32_t ) ( entry [ 1 ] . dataOffset - entry -> dataOffset ) ;\n }\n else {\n * pLength = - 1 ;\n }\n return ( const DataHeader * ) ( base + entry -> dataOffset ) ;\n }\n else {\n # ifdef UDATA_DEBUG fprintf ( stderr , \"%s: Not found.\\n\" , tocEntryName ) ;\n # endif return NULL ;\n }\n }\n else {\n # ifdef UDATA_DEBUG fprintf ( stderr , \"returning header\\n\" ) ;\n # endif return pData -> pHeader ;\n }\n }"}
{"idx": 13870, "target": 0, "func": "static inline void save_to_qmem ( unsigned char * qmem_cmc , unsigned short * qmem_type , int qmem_len , int * qmem_lastfilled , unsigned char * cmc_to_add , unsigned short type_to_add ) {\n int fill ;\n fill = * qmem_lastfilled + 1 ;\n if ( fill >= qmem_len ) fill = 0 ;\n memcpy ( qmem_cmc + fill * 4 , cmc_to_add , 4 ) ;\n qmem_type [ fill ] = type_to_add ;\n * qmem_lastfilled = fill ;\n }"}
{"idx": 13871, "target": 0, "func": "static gcry_err_code_t dummy_verify ( int algorithm , gcry_mpi_t hash , gcry_mpi_t * data , gcry_mpi_t * pkey , int ( * cmp ) ( void * , gcry_mpi_t ) , void * opaquev , int flags , int hashalgo ) {\n ( void ) algorithm ;\n ( void ) hash ;\n ( void ) data ;\n ( void ) pkey ;\n ( void ) cmp ;\n ( void ) opaquev ;\n ( void ) flags ;\n ( void ) hashalgo ;\n fips_signal_error ( \"using dummy public key function\" ) ;\n return GPG_ERR_NOT_IMPLEMENTED ;\n }"}
{"idx": 13872, "target": 0, "func": "int jas_image_addfmt ( int id , char * name , char * ext , char * desc , jas_image_fmtops_t * ops ) {\n jas_image_fmtinfo_t * fmtinfo ;\n assert ( id >= 0 && name && ext && ops ) ;\n if ( jas_image_numfmts >= JAS_IMAGE_MAXFMTS ) {\n return - 1 ;\n }\n fmtinfo = & jas_image_fmtinfos [ jas_image_numfmts ] ;\n fmtinfo -> id = id ;\n if ( ! ( fmtinfo -> name = jas_strdup ( name ) ) ) {\n return - 1 ;\n }\n if ( ! ( fmtinfo -> ext = jas_strdup ( ext ) ) ) {\n jas_free ( fmtinfo -> name ) ;\n return - 1 ;\n }\n if ( ! ( fmtinfo -> desc = jas_strdup ( desc ) ) ) {\n jas_free ( fmtinfo -> name ) ;\n jas_free ( fmtinfo -> ext ) ;\n return - 1 ;\n }\n fmtinfo -> ops = * ops ;\n ++ jas_image_numfmts ;\n return 0 ;\n }"}
{"idx": 13873, "target": 0, "func": "void keydb_rebuild_caches ( int noisy ) {\n int i , rc ;\n keyblock_cache_clear ( ) ;\n for ( i = 0 ;\n i < used_resources ;\n i ++ ) {\n if ( ! keyring_is_writable ( all_resources [ i ] . token ) ) continue ;\n switch ( all_resources [ i ] . type ) {\n case KEYDB_RESOURCE_TYPE_NONE : break ;\n case KEYDB_RESOURCE_TYPE_KEYRING : rc = keyring_rebuild_cache ( all_resources [ i ] . token , noisy ) ;\n if ( rc ) log_error ( _ ( \"failed to rebuild keyring cache: %s\\n\" ) , gpg_strerror ( rc ) ) ;\n break ;\n case KEYDB_RESOURCE_TYPE_KEYBOX : break ;\n }\n }\n }"}
{"idx": 13874, "target": 0, "func": "EC_KEY * d2i_EC_PUBKEY_bio ( BIO * bp , EC_KEY * * eckey ) {\n return ASN1_d2i_bio_of ( EC_KEY , EC_KEY_new , d2i_EC_PUBKEY , bp , eckey ) ;\n }"}
{"idx": 13875, "target": 1, "func": "TEST_F ( ProtocolHandlerRegistryTest , TestReplaceNonDefaultHandler ) {\n ProtocolHandler ph1 = CreateProtocolHandler ( \"mailto\" , GURL ( \"http://test.com/%s\" ) , \"test1\" ) ;\n ProtocolHandler ph2 = CreateProtocolHandler ( \"mailto\" , GURL ( \"http://test.com/updated-url/%s\" ) , \"test2\" ) ;\n ProtocolHandler ph3 = CreateProtocolHandler ( \"mailto\" , GURL ( \"http://else.com/%s\" ) , \"test3\" ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph3 ) ;\n ASSERT_TRUE ( registry ( ) -> AttemptReplace ( ph2 ) ) ;\n const ProtocolHandler & handler ( registry ( ) -> GetHandlerFor ( \"mailto\" ) ) ;\n ASSERT_EQ ( handler . url ( ) , ph3 . url ( ) ) ;\n }"}
{"idx": 13876, "target": 0, "func": "static void e1000e_write_to_rx_buffers ( E1000ECore * core , hwaddr ( * ba ) [ MAX_PS_BUFFERS ] , e1000e_ba_state * bastate , const char * data , dma_addr_t data_len ) {\n while ( data_len > 0 ) {\n uint32_t cur_buf_len = core -> rxbuf_sizes [ bastate -> cur_idx ] ;\n uint32_t cur_buf_bytes_left = cur_buf_len - bastate -> written [ bastate -> cur_idx ] ;\n uint32_t bytes_to_write = MIN ( data_len , cur_buf_bytes_left ) ;\n trace_e1000e_rx_desc_buff_write ( bastate -> cur_idx , ( * ba ) [ bastate -> cur_idx ] , bastate -> written [ bastate -> cur_idx ] , data , bytes_to_write ) ;\n pci_dma_write ( core -> owner , ( * ba ) [ bastate -> cur_idx ] + bastate -> written [ bastate -> cur_idx ] , data , bytes_to_write ) ;\n bastate -> written [ bastate -> cur_idx ] += bytes_to_write ;\n data += bytes_to_write ;\n data_len -= bytes_to_write ;\n if ( bastate -> written [ bastate -> cur_idx ] == cur_buf_len ) {\n bastate -> cur_idx ++ ;\n }\n assert ( bastate -> cur_idx < MAX_PS_BUFFERS ) ;\n }\n }"}
{"idx": 13877, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ContentFaviconDriverTest , AssociateIconWithInitialPageIconDespitePushState ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n GURL url = embedded_test_server ( ) -> GetURL ( \"/favicon/pushstate_with_favicon.html\" ) ;\n GURL pushstate_url = embedded_test_server ( ) -> GetURL ( \"/favicon/pushstate_with_favicon_pushed.html\" ) ;\n PendingTaskWaiter waiter ( web_contents ( ) ) ;\n waiter . AlsoRequireUrl ( pushstate_url ) ;\n ui_test_utils : : NavigateToURLWithDisposition ( browser ( ) , url , WindowOpenDisposition : : CURRENT_TAB , ui_test_utils : : BROWSER_TEST_NONE ) ;\n waiter . Wait ( ) ;\n EXPECT_NE ( nullptr , GetFaviconForPageURL ( url , favicon_base : : IconType : : kFavicon ) . bitmap_data ) ;\n EXPECT_NE ( nullptr , GetFaviconForPageURL ( pushstate_url , favicon_base : : IconType : : kFavicon ) . bitmap_data ) ;\n }"}
{"idx": 13878, "target": 0, "func": "static __always_inline __u64 __le64_to_cpup ( const __le64 * p ) {\n return ( __u64 ) * p ;\n }"}
{"idx": 13879, "target": 0, "func": "static __inline__ int ethtool_validate_speed ( __u32 speed ) {\n return speed <= INT_MAX || speed == SPEED_UNKNOWN ;\n }"}
{"idx": 13880, "target": 0, "func": "static UHashTok _uhash_internalRemoveElement ( UHashtable * hash , UHashElement * e ) {\n UHashTok empty ;\n U_ASSERT ( ! IS_EMPTY_OR_DELETED ( e -> hashcode ) ) ;\n -- hash -> count ;\n empty . pointer = NULL ;\n empty . integer = 0 ;\n return _uhash_setElement ( hash , e , HASH_DELETED , empty , empty , 0 ) ;\n }"}
{"idx": 13881, "target": 0, "func": "static void qemuMonitorJSONHandleIOError ( qemuMonitorPtr mon , virJSONValuePtr data ) {\n const char * device ;\n const char * action ;\n const char * reason ;\n int actionID ;\n if ( ( action = virJSONValueObjectGetString ( data , \"action\" ) ) == NULL ) {\n VIR_WARN ( \"Missing action in disk io error event\" ) ;\n action = \"ignore\" ;\n }\n if ( ( device = virJSONValueObjectGetString ( data , \"device\" ) ) == NULL ) {\n VIR_WARN ( \"missing device in disk io error event\" ) ;\n }\n # if 0 if ( ( reason = virJSONValueObjectGetString ( data , \"reason\" ) ) == NULL ) {\n VIR_WARN ( \"missing reason in disk io error event\" ) ;\n reason = \"\" ;\n }\n # else reason = \"\" ;\n # endif if ( ( actionID = qemuMonitorIOErrorActionTypeFromString ( action ) ) < 0 ) {\n VIR_WARN ( \"unknown disk io error action '%s'\" , action ) ;\n actionID = VIR_DOMAIN_EVENT_IO_ERROR_NONE ;\n }\n qemuMonitorEmitIOError ( mon , device , actionID , reason ) ;\n }"}
{"idx": 13882, "target": 0, "func": "int elg_decrypt ( int algo , MPI * result , MPI * data , MPI * skey ) {\n ELG_secret_key sk ;\n if ( ! is_ELGAMAL ( algo ) ) return G10ERR_PUBKEY_ALGO ;\n if ( ! data [ 0 ] || ! data [ 1 ] || ! skey [ 0 ] || ! skey [ 1 ] || ! skey [ 2 ] || ! skey [ 3 ] ) return G10ERR_BAD_MPI ;\n sk . p = skey [ 0 ] ;\n sk . g = skey [ 1 ] ;\n sk . y = skey [ 2 ] ;\n sk . x = skey [ 3 ] ;\n * result = mpi_alloc_secure ( mpi_get_nlimbs ( sk . p ) ) ;\n decrypt ( * result , data [ 0 ] , data [ 1 ] , & sk ) ;\n return 0 ;\n }"}
{"idx": 13883, "target": 0, "func": "IN_PROC_BROWSER_TEST_P ( BrowserCloseManagerBrowserTest , TestOpenAndCloseWindowDuringShutdown ) {\n ASSERT_NO_FATAL_FAILURE ( ui_test_utils : : NavigateToURL ( browsers_ [ 0 ] , embedded_test_server ( ) -> GetURL ( \"/beforeunload.html\" ) ) ) ;\n PrepareForDialog ( browsers_ [ 0 ] ) ;\n RepeatedNotificationObserver cancel_observer ( chrome : : NOTIFICATION_BROWSER_CLOSE_CANCELLED , 2 ) ;\n chrome : : CloseAllBrowsersAndQuit ( ) ;\n browsers_ . push_back ( CreateBrowser ( browser ( ) -> profile ( ) ) ) ;\n ASSERT_NO_FATAL_FAILURE ( ui_test_utils : : NavigateToURL ( browsers_ [ 1 ] , embedded_test_server ( ) -> GetURL ( \"/beforeunload.html\" ) ) ) ;\n PrepareForDialog ( browsers_ [ 1 ] ) ;\n ASSERT_FALSE ( browsers_ [ 1 ] -> ShouldCloseWindow ( ) ) ;\n ASSERT_NO_FATAL_FAILURE ( CancelClose ( ) ) ;\n ASSERT_NO_FATAL_FAILURE ( CancelClose ( ) ) ;\n cancel_observer . Wait ( ) ;\n EXPECT_FALSE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_EQ ( 1 , browsers_ [ 0 ] -> tab_strip_model ( ) -> count ( ) ) ;\n EXPECT_EQ ( 1 , browsers_ [ 1 ] -> tab_strip_model ( ) -> count ( ) ) ;\n RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , 2 ) ;\n chrome : : CloseAllBrowsersAndQuit ( ) ;\n ASSERT_FALSE ( browsers_ [ 1 ] -> ShouldCloseWindow ( ) ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n close_observer . Wait ( ) ;\n EXPECT_TRUE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_TRUE ( BrowserList : : GetInstance ( ) -> empty ( ) ) ;\n }"}
{"idx": 13884, "target": 1, "func": "static void rv34_pred_mv ( RV34DecContext * r , int block_type , int subblock_no , int dmv_no ) {\n MpegEncContext * s = & r -> s ;\n int mv_pos = s -> mb_x * 2 + s -> mb_y * 2 * s -> b8_stride ;\n int A [ 2 ] = {\n 0 }\n , B [ 2 ] , C [ 2 ] ;\n int i , j ;\n int mx , my ;\n int * avail = r -> avail_cache + avail_indexes [ subblock_no ] ;\n int c_off = part_sizes_w [ block_type ] ;\n mv_pos += ( subblock_no & 1 ) + ( subblock_no >> 1 ) * s -> b8_stride ;\n if ( subblock_no == 3 ) c_off = - 1 ;\n if ( avail [ - 1 ] ) {\n A [ 0 ] = s -> current_picture_ptr -> f . motion_val [ 0 ] [ mv_pos - 1 ] [ 0 ] ;\n A [ 1 ] = s -> current_picture_ptr -> f . motion_val [ 0 ] [ mv_pos - 1 ] [ 1 ] ;\n }\n if ( avail [ - 4 ] ) {\n B [ 0 ] = s -> current_picture_ptr -> f . motion_val [ 0 ] [ mv_pos - s -> b8_stride ] [ 0 ] ;\n B [ 1 ] = s -> current_picture_ptr -> f . motion_val [ 0 ] [ mv_pos - s -> b8_stride ] [ 1 ] ;\n }\n else {\n B [ 0 ] = A [ 0 ] ;\n B [ 1 ] = A [ 1 ] ;\n }\n if ( ! avail [ c_off - 4 ] ) {\n if ( avail [ - 4 ] && ( avail [ - 1 ] || r -> rv30 ) ) {\n C [ 0 ] = s -> current_picture_ptr -> f . motion_val [ 0 ] [ mv_pos - s -> b8_stride - 1 ] [ 0 ] ;\n C [ 1 ] = s -> current_picture_ptr -> f . motion_val [ 0 ] [ mv_pos - s -> b8_stride - 1 ] [ 1 ] ;\n }\n else {\n C [ 0 ] = A [ 0 ] ;\n C [ 1 ] = A [ 1 ] ;\n }\n }\n else {\n C [ 0 ] = s -> current_picture_ptr -> f . motion_val [ 0 ] [ mv_pos - s -> b8_stride + c_off ] [ 0 ] ;\n C [ 1 ] = s -> current_picture_ptr -> f . motion_val [ 0 ] [ mv_pos - s -> b8_stride + c_off ] [ 1 ] ;\n }\n mx = mid_pred ( A [ 0 ] , B [ 0 ] , C [ 0 ] ) ;\n my = mid_pred ( A [ 1 ] , B [ 1 ] , C [ 1 ] ) ;\n mx += r -> dmv [ dmv_no ] [ 0 ] ;\n my += r -> dmv [ dmv_no ] [ 1 ] ;\n for ( j = 0 ;\n j < part_sizes_h [ block_type ] ;\n j ++ ) {\n for ( i = 0 ;\n i < part_sizes_w [ block_type ] ;\n i ++ ) {\n s -> current_picture_ptr -> f . motion_val [ 0 ] [ mv_pos + i + j * s -> b8_stride ] [ 0 ] = mx ;\n s -> current_picture_ptr -> f . motion_val [ 0 ] [ mv_pos + i + j * s -> b8_stride ] [ 1 ] = my ;\n }\n }\n }"}
{"idx": 13885, "target": 0, "func": "xmlError * __xmlLastError ( void ) {\n if ( IS_MAIN_THREAD ) return ( & xmlLastError ) ;\n else return ( & xmlGetGlobalState ( ) -> xmlLastError ) ;\n }"}
{"idx": 13886, "target": 0, "func": "static void nameserver_read ( struct nameserver * ns ) {\n u8 packet [ 1500 ] ;\n struct sockaddr_storage ss ;\n socklen_t addrlen = sizeof ( ss ) ;\n for ( ;\n ;\n ) {\n const int r = recvfrom ( ns -> socket , packet , sizeof ( packet ) , 0 , ( struct sockaddr * ) & ss , & addrlen ) ;\n if ( r < 0 ) {\n int err = last_error ( ns -> socket ) ;\n if ( error_is_eagain ( err ) ) return ;\n nameserver_failed ( ns , strerror ( err ) ) ;\n return ;\n }\n if ( ! address_is_correct ( ns , ( struct sockaddr * ) & ss , addrlen ) ) {\n log ( EVDNS_LOG_WARN , \"Address mismatch on received \" \"DNS packet.\" ) ;\n return ;\n }\n ns -> timedout = 0 ;\n reply_parse ( packet , r ) ;\n }\n }"}
{"idx": 13887, "target": 0, "func": "static ssize_t iso9660_write_data ( struct archive_write * a , const void * buff , size_t s ) {\n struct iso9660 * iso9660 = a -> format_data ;\n ssize_t r ;\n if ( iso9660 -> cur_file == NULL ) return ( 0 ) ;\n if ( archive_entry_filetype ( iso9660 -> cur_file -> entry ) != AE_IFREG ) return ( 0 ) ;\n if ( s > iso9660 -> bytes_remaining ) s = ( size_t ) iso9660 -> bytes_remaining ;\n if ( s == 0 ) return ( 0 ) ;\n r = write_iso9660_data ( a , buff , s ) ;\n if ( r > 0 ) iso9660 -> bytes_remaining -= r ;\n return ( r ) ;\n }"}
{"idx": 13888, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ExtensionMessageBubbleViewBrowserTest , TestClickingActionButton ) {\n TestClickingActionButton ( ) ;\n }"}
{"idx": 13889, "target": 0, "func": "static void xhci_events_update ( XHCIState * xhci , int v ) {\n XHCIInterrupter * intr = & xhci -> intr [ v ] ;\n dma_addr_t erdp ;\n unsigned int dp_idx ;\n bool do_irq = 0 ;\n if ( xhci -> usbsts & USBSTS_HCH ) {\n return ;\n }\n erdp = xhci_addr64 ( intr -> erdp_low , intr -> erdp_high ) ;\n if ( erdp < intr -> er_start || erdp >= ( intr -> er_start + TRB_SIZE * intr -> er_size ) ) {\n DPRINTF ( \"xhci: ERDP out of bounds: \" DMA_ADDR_FMT \"\\n\" , erdp ) ;\n DPRINTF ( \"xhci: ER[%d] at \" DMA_ADDR_FMT \" len %d\\n\" , v , intr -> er_start , intr -> er_size ) ;\n xhci_die ( xhci ) ;\n return ;\n }\n dp_idx = ( erdp - intr -> er_start ) / TRB_SIZE ;\n assert ( dp_idx < intr -> er_size ) ;\n if ( intr -> er_full ) {\n int er_free = dp_idx - intr -> er_ep_idx ;\n if ( er_free <= 0 ) {\n er_free += intr -> er_size ;\n }\n if ( er_free < ( intr -> er_size / 2 ) ) {\n DPRINTF ( \"xhci_events_update(): event ring still \" \"more than half full (hack)\\n\" ) ;\n return ;\n }\n }\n while ( intr -> ev_buffer_put != intr -> ev_buffer_get ) {\n assert ( intr -> er_full ) ;\n if ( ( ( intr -> er_ep_idx + 1 ) % intr -> er_size ) == dp_idx ) {\n DPRINTF ( \"xhci_events_update(): event ring full again\\n\" ) ;\n # ifndef ER_FULL_HACK XHCIEvent full = {\n ER_HOST_CONTROLLER , CC_EVENT_RING_FULL_ERROR }\n ;\n xhci_write_event ( xhci , & full , v ) ;\n # endif do_irq = 1 ;\n break ;\n }\n XHCIEvent * event = & intr -> ev_buffer [ intr -> ev_buffer_get ] ;\n xhci_write_event ( xhci , event , v ) ;\n intr -> ev_buffer_get ++ ;\n do_irq = 1 ;\n if ( intr -> ev_buffer_get == EV_QUEUE ) {\n intr -> ev_buffer_get = 0 ;\n }\n }\n if ( do_irq ) {\n xhci_intr_raise ( xhci , v ) ;\n }\n if ( intr -> er_full && intr -> ev_buffer_put == intr -> ev_buffer_get ) {\n DPRINTF ( \"xhci_events_update(): event ring no longer full\\n\" ) ;\n intr -> er_full = 0 ;\n }\n }"}
{"idx": 13890, "target": 0, "func": "static int dissect_h245_Ind_clockRecovery ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_Ind_clockRecovery , Ind_clockRecovery_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 13891, "target": 0, "func": "unsigned int vp9_sub_pixel_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp2 , W , dst , dst_stride , sse ) ;\n \\ }\n # define SUBPIX_AVG_VAR ( W , H ) unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 ) VAR ( 8 , 4 ) SUBPIX_VAR ( 8 , 4 ) SUBPIX_AVG_VAR ( 8 , 4 ) VAR ( 8 , 8 ) SUBPIX_VAR ( 8 , 8 ) SUBPIX_AVG_VAR ( 8 , 8 ) VAR ( 8 , 16 ) SUBPIX_VAR ( 8 , 16 ) SUBPIX_AVG_VAR ( 8 , 16 ) VAR ( 16 , 8 ) SUBPIX_VAR ( 16 , 8 ) SUBPIX_AVG_VAR ( 16 , 8 ) VAR ( 16 , 16 ) SUBPIX_VAR ( 16 , 16 )"}
{"idx": 13892, "target": 1, "func": "static int archive_read_format_cpio_read_header ( struct archive_read * a , struct archive_entry * entry ) {\n struct cpio * cpio ;\n const void * h ;\n struct archive_string_conv * sconv ;\n size_t namelength ;\n size_t name_pad ;\n int r ;\n cpio = ( struct cpio * ) ( a -> format -> data ) ;\n sconv = cpio -> opt_sconv ;\n if ( sconv == NULL ) {\n if ( ! cpio -> init_default_conversion ) {\n cpio -> sconv_default = archive_string_default_conversion_for_read ( & ( a -> archive ) ) ;\n cpio -> init_default_conversion = 1 ;\n }\n sconv = cpio -> sconv_default ;\n }\n r = ( cpio -> read_header ( a , cpio , entry , & namelength , & name_pad ) ) ;\n if ( r < ARCHIVE_WARN ) return ( r ) ;\n h = __archive_read_ahead ( a , namelength + name_pad , NULL ) ;\n if ( h == NULL ) return ( ARCHIVE_FATAL ) ;\n if ( archive_entry_copy_pathname_l ( entry , ( const char * ) h , namelength , sconv ) != 0 ) {\n if ( errno == ENOMEM ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate memory for Pathname\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_FILE_FORMAT , \"Pathname can't be converted from %s to current locale.\" , archive_string_conversion_charset_name ( sconv ) ) ;\n r = ARCHIVE_WARN ;\n }\n cpio -> entry_offset = 0 ;\n __archive_read_consume ( a , namelength + name_pad ) ;\n if ( archive_entry_filetype ( entry ) == AE_IFLNK ) {\n h = __archive_read_ahead ( a , ( size_t ) cpio -> entry_bytes_remaining , NULL ) ;\n if ( h == NULL ) return ( ARCHIVE_FATAL ) ;\n if ( archive_entry_copy_symlink_l ( entry , ( const char * ) h , ( size_t ) cpio -> entry_bytes_remaining , sconv ) != 0 ) {\n if ( errno == ENOMEM ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate memory for Linkname\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_FILE_FORMAT , \"Linkname can't be converted from %s to \" \"current locale.\" , archive_string_conversion_charset_name ( sconv ) ) ;\n r = ARCHIVE_WARN ;\n }\n __archive_read_consume ( a , cpio -> entry_bytes_remaining ) ;\n cpio -> entry_bytes_remaining = 0 ;\n }\n if ( namelength == 11 && strcmp ( ( const char * ) h , \"TRAILER!!!\" ) == 0 ) {\n archive_clear_error ( & a -> archive ) ;\n return ( ARCHIVE_EOF ) ;\n }\n if ( record_hardlink ( a , cpio , entry ) != ARCHIVE_OK ) {\n return ( ARCHIVE_FATAL ) ;\n }\n return ( r ) ;\n }"}
{"idx": 13893, "target": 0, "func": "static void http_negative_content_length_test ( void ) {\n short port = - 1 ;\n struct evhttp_connection * evcon = NULL ;\n struct evhttp_request * req = NULL ;\n test_ok = 0 ;\n fprintf ( stdout , \"Testing HTTP Negative Content Length: \" ) ;\n http = http_setup ( & port , NULL ) ;\n evcon = evhttp_connection_new ( \"127.0.0.1\" , port ) ;\n if ( evcon == NULL ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n req = evhttp_request_new ( http_request_bad , NULL ) ;\n evhttp_add_header ( req -> output_headers , \"X-Negative\" , \"makeitso\" ) ;\n if ( evhttp_make_request ( evcon , req , EVHTTP_REQ_GET , \"/test\" ) == - 1 ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n event_dispatch ( ) ;\n evhttp_free ( http ) ;\n if ( test_ok != 1 ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n fprintf ( stdout , \"OK\\n\" ) ;\n }"}
{"idx": 13894, "target": 1, "func": "static gcry_err_code_t sexp_data_to_mpi ( gcry_sexp_t input , gcry_mpi_t * ret_mpi , struct pk_encoding_ctx * ctx ) {\n gcry_err_code_t rc = 0 ;\n gcry_sexp_t ldata , lhash , lvalue ;\n int i ;\n size_t n ;\n const char * s ;\n int unknown_flag = 0 ;\n int parsed_flags = 0 ;\n int explicit_raw = 0 ;\n * ret_mpi = NULL ;\n ldata = gcry_sexp_find_token ( input , \"data\" , 0 ) ;\n if ( ! ldata ) {\n * ret_mpi = gcry_sexp_nth_mpi ( input , 0 , 0 ) ;\n return * ret_mpi ? GPG_ERR_NO_ERROR : GPG_ERR_INV_OBJ ;\n }\n {\n gcry_sexp_t lflags = gcry_sexp_find_token ( ldata , \"flags\" , 0 ) ;\n if ( lflags ) {\n for ( i = gcry_sexp_length ( lflags ) - 1 ;\n i > 0 ;\n i -- ) {\n s = gcry_sexp_nth_data ( lflags , i , & n ) ;\n if ( ! s ) ;\n else if ( n == 7 && ! memcmp ( s , \"rfc6979\" , 7 ) ) parsed_flags |= PUBKEY_FLAG_RFC6979 ;\n else if ( n == 5 && ! memcmp ( s , \"eddsa\" , 5 ) ) {\n ctx -> encoding = PUBKEY_ENC_RAW ;\n parsed_flags |= PUBKEY_FLAG_EDDSA ;\n }\n else if ( n == 3 && ! memcmp ( s , \"raw\" , 3 ) && ctx -> encoding == PUBKEY_ENC_UNKNOWN ) {\n ctx -> encoding = PUBKEY_ENC_RAW ;\n explicit_raw = 1 ;\n }\n else if ( n == 5 && ! memcmp ( s , \"pkcs1\" , 5 ) && ctx -> encoding == PUBKEY_ENC_UNKNOWN ) ctx -> encoding = PUBKEY_ENC_PKCS1 ;\n else if ( n == 4 && ! memcmp ( s , \"oaep\" , 4 ) && ctx -> encoding == PUBKEY_ENC_UNKNOWN ) ctx -> encoding = PUBKEY_ENC_OAEP ;\n else if ( n == 3 && ! memcmp ( s , \"pss\" , 3 ) && ctx -> encoding == PUBKEY_ENC_UNKNOWN ) ctx -> encoding = PUBKEY_ENC_PSS ;\n else if ( n == 11 && ! memcmp ( s , \"no-blinding\" , 11 ) ) parsed_flags |= PUBKEY_FLAG_NO_BLINDING ;\n else unknown_flag = 1 ;\n }\n gcry_sexp_release ( lflags ) ;\n }\n }\n if ( ctx -> encoding == PUBKEY_ENC_UNKNOWN ) ctx -> encoding = PUBKEY_ENC_RAW ;\n lhash = gcry_sexp_find_token ( ldata , \"hash\" , 0 ) ;\n lvalue = lhash ? NULL : gcry_sexp_find_token ( ldata , \"value\" , 0 ) ;\n if ( ! ( ! lhash ^ ! lvalue ) ) rc = GPG_ERR_INV_OBJ ;\n else if ( unknown_flag ) rc = GPG_ERR_INV_FLAG ;\n else if ( ctx -> encoding == PUBKEY_ENC_RAW && ( parsed_flags & PUBKEY_FLAG_EDDSA ) ) {\n gcry_sexp_t list ;\n void * value ;\n size_t valuelen ;\n if ( ! lvalue ) {\n rc = GPG_ERR_INV_OBJ ;\n goto leave ;\n }\n list = gcry_sexp_find_token ( ldata , \"hash-algo\" , 0 ) ;\n if ( list ) {\n s = gcry_sexp_nth_data ( list , 1 , & n ) ;\n if ( ! s ) rc = GPG_ERR_NO_OBJ ;\n else {\n ctx -> hash_algo = get_hash_algo ( s , n ) ;\n if ( ! ctx -> hash_algo ) rc = GPG_ERR_DIGEST_ALGO ;\n }\n gcry_sexp_release ( list ) ;\n }\n else rc = GPG_ERR_INV_OBJ ;\n if ( rc ) goto leave ;\n value = gcry_sexp_nth_buffer ( lvalue , 1 , & valuelen ) ;\n if ( ! value ) rc = GPG_ERR_INV_OBJ ;\n else if ( ( valuelen * 8 ) < valuelen ) {\n gcry_free ( value ) ;\n rc = GPG_ERR_TOO_LARGE ;\n }\n if ( rc ) goto leave ;\n * ret_mpi = gcry_mpi_set_opaque ( NULL , value , valuelen * 8 ) ;\n }\n else if ( ctx -> encoding == PUBKEY_ENC_RAW && lhash && ( explicit_raw || ( parsed_flags & PUBKEY_FLAG_RFC6979 ) ) ) {\n if ( gcry_sexp_length ( lhash ) != 3 ) rc = GPG_ERR_INV_OBJ ;\n else if ( ! ( s = gcry_sexp_nth_data ( lhash , 1 , & n ) ) || ! n ) rc = GPG_ERR_INV_OBJ ;\n else {\n void * value ;\n size_t valuelen ;\n ctx -> hash_algo = get_hash_algo ( s , n ) ;\n if ( ! ctx -> hash_algo ) rc = GPG_ERR_DIGEST_ALGO ;\n else if ( ! ( value = gcry_sexp_nth_buffer ( lhash , 2 , & valuelen ) ) ) rc = GPG_ERR_INV_OBJ ;\n else if ( ( valuelen * 8 ) < valuelen ) {\n gcry_free ( value ) ;\n rc = GPG_ERR_TOO_LARGE ;\n }\n else * ret_mpi = gcry_mpi_set_opaque ( NULL , value , valuelen * 8 ) ;\n }\n }\n else if ( ctx -> encoding == PUBKEY_ENC_RAW && lvalue ) {\n if ( parsed_flags & PUBKEY_FLAG_RFC6979 ) {\n rc = GPG_ERR_CONFLICT ;\n goto leave ;\n }\n * ret_mpi = gcry_sexp_nth_mpi ( lvalue , 1 , GCRYMPI_FMT_USG ) ;\n if ( ! * ret_mpi ) rc = GPG_ERR_INV_OBJ ;\n }\n else if ( ctx -> encoding == PUBKEY_ENC_PKCS1 && lvalue && ctx -> op == PUBKEY_OP_ENCRYPT ) {\n const void * value ;\n size_t valuelen ;\n gcry_sexp_t list ;\n void * random_override = NULL ;\n size_t random_override_len = 0 ;\n if ( ! ( value = gcry_sexp_nth_data ( lvalue , 1 , & valuelen ) ) || ! valuelen ) rc = GPG_ERR_INV_OBJ ;\n else {\n list = gcry_sexp_find_token ( ldata , \"random-override\" , 0 ) ;\n if ( list ) {\n s = gcry_sexp_nth_data ( list , 1 , & n ) ;\n if ( ! s ) rc = GPG_ERR_NO_OBJ ;\n else if ( n > 0 ) {\n random_override = gcry_malloc ( n ) ;\n if ( ! random_override ) rc = gpg_err_code_from_syserror ( ) ;\n else {\n memcpy ( random_override , s , n ) ;\n random_override_len = n ;\n }\n }\n gcry_sexp_release ( list ) ;\n if ( rc ) goto leave ;\n }\n rc = pkcs1_encode_for_encryption ( ret_mpi , ctx -> nbits , value , valuelen , random_override , random_override_len ) ;\n gcry_free ( random_override ) ;\n }\n }\n else if ( ctx -> encoding == PUBKEY_ENC_PKCS1 && lhash && ( ctx -> op == PUBKEY_OP_SIGN || ctx -> op == PUBKEY_OP_VERIFY ) ) {\n if ( gcry_sexp_length ( lhash ) != 3 ) rc = GPG_ERR_INV_OBJ ;\n else if ( ! ( s = gcry_sexp_nth_data ( lhash , 1 , & n ) ) || ! n ) rc = GPG_ERR_INV_OBJ ;\n else {\n const void * value ;\n size_t valuelen ;\n ctx -> hash_algo = get_hash_algo ( s , n ) ;\n if ( ! ctx -> hash_algo ) rc = GPG_ERR_DIGEST_ALGO ;\n else if ( ! ( value = gcry_sexp_nth_data ( lhash , 2 , & valuelen ) ) || ! valuelen ) rc = GPG_ERR_INV_OBJ ;\n else rc = pkcs1_encode_for_signature ( ret_mpi , ctx -> nbits , value , valuelen , ctx -> hash_algo ) ;\n }\n }\n else if ( ctx -> encoding == PUBKEY_ENC_OAEP && lvalue && ctx -> op == PUBKEY_OP_ENCRYPT ) {\n const void * value ;\n size_t valuelen ;\n if ( ! ( value = gcry_sexp_nth_data ( lvalue , 1 , & valuelen ) ) || ! valuelen ) rc = GPG_ERR_INV_OBJ ;\n else {\n gcry_sexp_t list ;\n void * random_override = NULL ;\n size_t random_override_len = 0 ;\n list = gcry_sexp_find_token ( ldata , \"hash-algo\" , 0 ) ;\n if ( list ) {\n s = gcry_sexp_nth_data ( list , 1 , & n ) ;\n if ( ! s ) rc = GPG_ERR_NO_OBJ ;\n else {\n ctx -> hash_algo = get_hash_algo ( s , n ) ;\n if ( ! ctx -> hash_algo ) rc = GPG_ERR_DIGEST_ALGO ;\n }\n gcry_sexp_release ( list ) ;\n if ( rc ) goto leave ;\n }\n list = gcry_sexp_find_token ( ldata , \"label\" , 0 ) ;\n if ( list ) {\n s = gcry_sexp_nth_data ( list , 1 , & n ) ;\n if ( ! s ) rc = GPG_ERR_NO_OBJ ;\n else if ( n > 0 ) {\n ctx -> label = gcry_malloc ( n ) ;\n if ( ! ctx -> label ) rc = gpg_err_code_from_syserror ( ) ;\n else {\n memcpy ( ctx -> label , s , n ) ;\n ctx -> labellen = n ;\n }\n }\n gcry_sexp_release ( list ) ;\n if ( rc ) goto leave ;\n }\n list = gcry_sexp_find_token ( ldata , \"random-override\" , 0 ) ;\n if ( list ) {\n s = gcry_sexp_nth_data ( list , 1 , & n ) ;\n if ( ! s ) rc = GPG_ERR_NO_OBJ ;\n else if ( n > 0 ) {\n random_override = gcry_malloc ( n ) ;\n if ( ! random_override ) rc = gpg_err_code_from_syserror ( ) ;\n else {\n memcpy ( random_override , s , n ) ;\n random_override_len = n ;\n }\n }\n gcry_sexp_release ( list ) ;\n if ( rc ) goto leave ;\n }\n rc = oaep_encode ( ret_mpi , ctx -> nbits , ctx -> hash_algo , value , valuelen , ctx -> label , ctx -> labellen , random_override , random_override_len ) ;\n gcry_free ( random_override ) ;\n }\n }\n else if ( ctx -> encoding == PUBKEY_ENC_PSS && lhash && ctx -> op == PUBKEY_OP_SIGN ) {\n if ( gcry_sexp_length ( lhash ) != 3 ) rc = GPG_ERR_INV_OBJ ;\n else if ( ! ( s = gcry_sexp_nth_data ( lhash , 1 , & n ) ) || ! n ) rc = GPG_ERR_INV_OBJ ;\n else {\n const void * value ;\n size_t valuelen ;\n void * random_override = NULL ;\n size_t random_override_len = 0 ;\n ctx -> hash_algo = get_hash_algo ( s , n ) ;\n if ( ! ctx -> hash_algo ) rc = GPG_ERR_DIGEST_ALGO ;\n else if ( ! ( value = gcry_sexp_nth_data ( lhash , 2 , & valuelen ) ) || ! valuelen ) rc = GPG_ERR_INV_OBJ ;\n else {\n gcry_sexp_t list ;\n list = gcry_sexp_find_token ( ldata , \"salt-length\" , 0 ) ;\n if ( list ) {\n s = gcry_sexp_nth_data ( list , 1 , & n ) ;\n if ( ! s ) {\n rc = GPG_ERR_NO_OBJ ;\n goto leave ;\n }\n ctx -> saltlen = ( unsigned int ) strtoul ( s , NULL , 10 ) ;\n gcry_sexp_release ( list ) ;\n }\n list = gcry_sexp_find_token ( ldata , \"random-override\" , 0 ) ;\n if ( list ) {\n s = gcry_sexp_nth_data ( list , 1 , & n ) ;\n if ( ! s ) rc = GPG_ERR_NO_OBJ ;\n else if ( n > 0 ) {\n random_override = gcry_malloc ( n ) ;\n if ( ! random_override ) rc = gpg_err_code_from_syserror ( ) ;\n else {\n memcpy ( random_override , s , n ) ;\n random_override_len = n ;\n }\n }\n gcry_sexp_release ( list ) ;\n if ( rc ) goto leave ;\n }\n rc = pss_encode ( ret_mpi , ctx -> nbits - 1 , ctx -> hash_algo , value , valuelen , ctx -> saltlen , random_override , random_override_len ) ;\n gcry_free ( random_override ) ;\n }\n }\n }\n else if ( ctx -> encoding == PUBKEY_ENC_PSS && lhash && ctx -> op == PUBKEY_OP_VERIFY ) {\n if ( gcry_sexp_length ( lhash ) != 3 ) rc = GPG_ERR_INV_OBJ ;\n else if ( ! ( s = gcry_sexp_nth_data ( lhash , 1 , & n ) ) || ! n ) rc = GPG_ERR_INV_OBJ ;\n else {\n ctx -> hash_algo = get_hash_algo ( s , n ) ;\n if ( ! ctx -> hash_algo ) rc = GPG_ERR_DIGEST_ALGO ;\n else {\n * ret_mpi = gcry_sexp_nth_mpi ( lhash , 2 , GCRYMPI_FMT_USG ) ;\n if ( ! * ret_mpi ) rc = GPG_ERR_INV_OBJ ;\n ctx -> verify_cmp = pss_verify_cmp ;\n ctx -> verify_arg = * ret_mpi ;\n }\n }\n }\n else rc = GPG_ERR_CONFLICT ;\n leave : gcry_sexp_release ( ldata ) ;\n gcry_sexp_release ( lhash ) ;\n gcry_sexp_release ( lvalue ) ;\n if ( ! rc ) ctx -> flags = parsed_flags ;\n else {\n gcry_free ( ctx -> label ) ;\n ctx -> label = NULL ;\n }\n return rc ;\n }"}
{"idx": 13895, "target": 0, "func": "static void evtag_tag_encoding ( void ) {\n struct evbuffer * tmp = evbuffer_new ( ) ;\n uint32_t integers [ TEST_MAX_INT ] = {\n 0xaf0 , 0x1000 , 0x1 , 0xdeadbeef , 0x00 , 0xbef000 }\n ;\n uint32_t integer ;\n int i ;\n for ( i = 0 ;\n i < TEST_MAX_INT ;\n i ++ ) {\n int oldlen , newlen ;\n oldlen = EVBUFFER_LENGTH ( tmp ) ;\n evtag_encode_tag ( tmp , integers [ i ] ) ;\n newlen = EVBUFFER_LENGTH ( tmp ) ;\n fprintf ( stdout , \"\\t\\tencoded 0x%08x with %d bytes\\n\" , integers [ i ] , newlen - oldlen ) ;\n }\n for ( i = 0 ;\n i < TEST_MAX_INT ;\n i ++ ) {\n if ( evtag_decode_tag ( & integer , tmp ) == - 1 ) {\n fprintf ( stderr , \"decode %d failed\" , i ) ;\n exit ( 1 ) ;\n }\n if ( integer != integers [ i ] ) {\n fprintf ( stderr , \"got %x, wanted %x\" , integer , integers [ i ] ) ;\n exit ( 1 ) ;\n }\n }\n if ( EVBUFFER_LENGTH ( tmp ) != 0 ) {\n fprintf ( stderr , \"trailing data\" ) ;\n exit ( 1 ) ;\n }\n evbuffer_free ( tmp ) ;\n fprintf ( stdout , \"\\t%s: OK\\n\" , __func__ ) ;\n }"}
{"idx": 13896, "target": 0, "func": "static int32_t u_scanf_uinteger_handler ( UFILE * input , u_scanf_spec_info * info , ufmt_args * args , const UChar * fmt , int32_t * fmtConsumed , int32_t * argConverted ) {\n return u_scanf_integer_handler ( input , info , args , fmt , fmtConsumed , argConverted ) ;\n }"}
{"idx": 13897, "target": 0, "func": "static void nb_data1 ( int hf , tvbuff_t * tvb , int offset , proto_tree * tree ) {\n proto_tree_add_item ( tree , hf , tvb , offset + NB_DATA1 , 1 , ENC_LITTLE_ENDIAN ) ;\n }"}
{"idx": 13898, "target": 0, "func": "static void add_lag_median_prediction ( uint8_t * dst , uint8_t * src1 , uint8_t * diff , int w , int * left , int * left_top ) {\n int i ;\n uint8_t l , lt ;\n l = * left ;\n lt = * left_top ;\n for ( i = 0 ;\n i < w ;\n i ++ ) {\n l = mid_pred ( l , src1 [ i ] , l + src1 [ i ] - lt ) + diff [ i ] ;\n lt = src1 [ i ] ;\n dst [ i ] = l ;\n }\n * left = l ;\n * left_top = lt ;\n }"}
{"idx": 13899, "target": 0, "func": "static void xhci_run ( XHCIState * xhci ) {\n trace_usb_xhci_run ( ) ;\n xhci -> usbsts &= ~ USBSTS_HCH ;\n xhci -> mfindex_start = qemu_clock_get_ns ( QEMU_CLOCK_VIRTUAL ) ;\n }"}
{"idx": 13900, "target": 0, "func": "static void show_object ( struct object * obj , const char * name , void * data ) {\n add_preferred_base_object ( name ) ;\n add_object_entry ( obj -> oid . hash , obj -> type , name , 0 ) ;\n obj -> flags |= OBJECT_ADDED ;\n }"}
{"idx": 13901, "target": 0, "func": "static void slavio_powerdown_req ( Notifier * n , void * opaque ) {\n qemu_irq_raise ( slavio_system_powerdown ) ;\n }"}
{"idx": 13902, "target": 0, "func": "static int write_VD_terminator ( struct archive_write * a ) {\n unsigned char * bp ;\n bp = wb_buffptr ( a ) - 1 ;\n set_VD_bp ( bp , VDT_TERMINATOR , 1 ) ;\n set_unused_field_bp ( bp , 8 , LOGICAL_BLOCK_SIZE ) ;\n return ( wb_consume ( a , LOGICAL_BLOCK_SIZE ) ) ;\n }"}
{"idx": 13903, "target": 0, "func": "static void matroska_fix_ass_packet ( MatroskaDemuxContext * matroska , AVPacket * pkt , uint64_t display_duration ) {\n AVBufferRef * line ;\n char * layer , * ptr = pkt -> data , * end = ptr + pkt -> size ;\n for ( ;\n * ptr != ',' && ptr < end - 1 ;\n ptr ++ ) ;\n if ( * ptr == ',' ) layer = ++ ptr ;\n for ( ;\n * ptr != ',' && ptr < end - 1 ;\n ptr ++ ) ;\n if ( * ptr == ',' ) {\n int64_t end_pts = pkt -> pts + display_duration ;\n int sc = matroska -> time_scale * pkt -> pts / 10000000 ;\n int ec = matroska -> time_scale * end_pts / 10000000 ;\n int sh , sm , ss , eh , em , es , len ;\n sh = sc / 360000 ;\n sc -= 360000 * sh ;\n sm = sc / 6000 ;\n sc -= 6000 * sm ;\n ss = sc / 100 ;\n sc -= 100 * ss ;\n eh = ec / 360000 ;\n ec -= 360000 * eh ;\n em = ec / 6000 ;\n ec -= 6000 * em ;\n es = ec / 100 ;\n ec -= 100 * es ;\n * ptr ++ = '\\0' ;\n len = 50 + end - ptr + FF_INPUT_BUFFER_PADDING_SIZE ;\n if ( ! ( line = av_buffer_alloc ( len ) ) ) return ;\n snprintf ( line -> data , len , \"Dialogue: %s,%d:%02d:%02d.%02d,%d:%02d:%02d.%02d,%s\\r\\n\" , layer , sh , sm , ss , sc , eh , em , es , ec , ptr ) ;\n av_buffer_unref ( & pkt -> buf ) ;\n pkt -> buf = line ;\n pkt -> data = line -> data ;\n pkt -> size = strlen ( line -> data ) ;\n }\n }"}
{"idx": 13904, "target": 0, "func": "static VALUE ossl_asn1obj_get_ln ( VALUE self ) {\n VALUE val , ret = Qnil ;\n int nid ;\n val = ossl_asn1_get_value ( self ) ;\n if ( ( nid = OBJ_txt2nid ( StringValueCStr ( val ) ) ) != NID_undef ) ret = rb_str_new2 ( OBJ_nid2ln ( nid ) ) ;\n return ret ;\n }"}
{"idx": 13905, "target": 0, "func": "void do_sync_with_master ( struct st_command * command ) {\n long offset = 0 ;\n char * p = command -> first_argument ;\n const char * offset_start = p ;\n if ( * offset_start ) {\n for ( ;\n my_isdigit ( charset_info , * p ) ;\n p ++ ) offset = offset * 10 + * p - '0' ;\n if ( * p && ! my_isspace ( charset_info , * p ) ) die ( \"Invalid integer argument \\\"%s\\\"\" , offset_start ) ;\n command -> last_argument = p ;\n }\n do_sync_with_master2 ( command , offset ) ;\n return ;\n }"}
{"idx": 13906, "target": 0, "func": "static int glob_in_dir ( const char * pattern , const char * directory , int flags , int ( * errfunc ) ( const char * , int ) , glob_t * pglob , size_t alloca_used ) {\n size_t dirlen = strlen ( directory ) ;\n void * stream = NULL ;\n struct globnames {\n struct globnames * next ;\n size_t count ;\n char * name [ 64 ] ;\n }\n ;\n # define INITIAL_COUNT sizeof ( init_names . name ) / sizeof ( init_names . name [ 0 ] ) struct globnames init_names ;\n struct globnames * names = & init_names ;\n struct globnames * names_alloca = & init_names ;\n size_t nfound = 0 ;\n size_t cur = 0 ;\n int meta ;\n int save ;\n alloca_used += sizeof ( init_names ) ;\n init_names . next = NULL ;\n init_names . count = INITIAL_COUNT ;\n meta = __glob_pattern_type ( pattern , ! ( flags & GLOB_NOESCAPE ) ) ;\n if ( meta == 0 && ( flags & ( GLOB_NOCHECK | GLOB_NOMAGIC ) ) ) {\n flags |= GLOB_NOCHECK ;\n }\n else if ( meta == 0 ) {\n union {\n struct stat st ;\n struct_stat64 st64 ;\n }\n ust ;\n size_t patlen = strlen ( pattern ) ;\n int alloca_fullname = __libc_use_alloca ( alloca_used + dirlen + 1 + patlen + 1 ) ;\n char * fullname ;\n if ( alloca_fullname ) fullname = alloca_account ( dirlen + 1 + patlen + 1 , alloca_used ) ;\n else {\n fullname = malloc ( dirlen + 1 + patlen + 1 ) ;\n if ( fullname == NULL ) return GLOB_NOSPACE ;\n }\n mempcpy ( mempcpy ( mempcpy ( fullname , directory , dirlen ) , \"/\" , 1 ) , pattern , patlen + 1 ) ;\n if ( ( __builtin_expect ( flags & GLOB_ALTDIRFUNC , 0 ) ? ( * pglob -> gl_stat ) ( fullname , & ust . st ) : __stat64 ( fullname , & ust . st64 ) ) == 0 ) flags |= GLOB_NOCHECK ;\n if ( __builtin_expect ( ! alloca_fullname , 0 ) ) free ( fullname ) ;\n }\n else {\n stream = ( __builtin_expect ( flags & GLOB_ALTDIRFUNC , 0 ) ? ( * pglob -> gl_opendir ) ( directory ) : opendir ( directory ) ) ;\n if ( stream == NULL ) {\n if ( errno != ENOTDIR && ( ( errfunc != NULL && ( * errfunc ) ( directory , errno ) ) || ( flags & GLOB_ERR ) ) ) return GLOB_ABORTED ;\n }\n else {\n # ifdef _LIBC int dfd = ( __builtin_expect ( flags & GLOB_ALTDIRFUNC , 0 ) ? - 1 : dirfd ( ( DIR * ) stream ) ) ;\n # endif int fnm_flags = ( ( ! ( flags & GLOB_PERIOD ) ? FNM_PERIOD : 0 ) | ( ( flags & GLOB_NOESCAPE ) ? FNM_NOESCAPE : 0 ) # if defined _AMIGA || defined VMS | FNM_CASEFOLD # endif ) ;\n flags |= GLOB_MAGCHAR ;\n while ( 1 ) {\n const char * name ;\n size_t len ;\n # if defined _LIBC && ! defined COMPILE_GLOB64 struct dirent64 * d ;\n union {\n struct dirent64 d64 ;\n char room [ offsetof ( struct dirent64 , d_name [ 0 ] ) + NAME_MAX + 1 ] ;\n }\n d64buf ;\n if ( __builtin_expect ( flags & GLOB_ALTDIRFUNC , 0 ) ) {\n struct dirent * d32 = ( * pglob -> gl_readdir ) ( stream ) ;\n if ( d32 != NULL ) {\n CONVERT_DIRENT_DIRENT64 ( & d64buf . d64 , d32 ) ;\n d = & d64buf . d64 ;\n }\n else d = NULL ;\n }\n else d = __readdir64 ( stream ) ;\n # else struct dirent * d = ( __builtin_expect ( flags & GLOB_ALTDIRFUNC , 0 ) ? ( ( struct dirent * ) ( * pglob -> gl_readdir ) ( stream ) ) : __readdir ( stream ) ) ;\n # endif if ( d == NULL ) break ;\n if ( ! REAL_DIR_ENTRY ( d ) ) continue ;\n if ( ( flags & GLOB_ONLYDIR ) && ! DIRENT_MIGHT_BE_DIR ( d ) ) continue ;\n name = d -> d_name ;\n if ( fnmatch ( pattern , name , fnm_flags ) == 0 ) {\n if ( ! DIRENT_MIGHT_BE_SYMLINK ( d ) || link_exists_p ( dfd , directory , dirlen , name , pglob , flags ) ) {\n if ( cur == names -> count ) {\n struct globnames * newnames ;\n size_t count = names -> count * 2 ;\n size_t size = ( sizeof ( struct globnames ) + ( ( count - INITIAL_COUNT ) * sizeof ( char * ) ) ) ;\n if ( __libc_use_alloca ( alloca_used + size ) ) newnames = names_alloca = alloca_account ( size , alloca_used ) ;\n else if ( ( newnames = malloc ( size ) ) == NULL ) goto memory_error ;\n newnames -> count = count ;\n newnames -> next = names ;\n names = newnames ;\n cur = 0 ;\n }\n len = NAMLEN ( d ) ;\n names -> name [ cur ] = ( char * ) malloc ( len + 1 ) ;\n if ( names -> name [ cur ] == NULL ) goto memory_error ;\n * ( ( char * ) mempcpy ( names -> name [ cur ++ ] , name , len ) ) = '\\0' ;\n ++ nfound ;\n }\n }\n }\n }\n }\n if ( nfound == 0 && ( flags & GLOB_NOCHECK ) ) {\n size_t len = strlen ( pattern ) ;\n nfound = 1 ;\n names -> name [ cur ] = ( char * ) malloc ( len + 1 ) ;\n if ( names -> name [ cur ] == NULL ) goto memory_error ;\n * ( ( char * ) mempcpy ( names -> name [ cur ++ ] , pattern , len ) ) = '\\0' ;\n }\n int result = GLOB_NOMATCH ;\n if ( nfound != 0 ) {\n result = 0 ;\n char * * new_gl_pathv ;\n new_gl_pathv = ( char * * ) realloc ( pglob -> gl_pathv , ( pglob -> gl_pathc + pglob -> gl_offs + nfound + 1 ) * sizeof ( char * ) ) ;\n if ( new_gl_pathv == NULL ) {\n memory_error : while ( 1 ) {\n struct globnames * old = names ;\n for ( size_t i = 0 ;\n i < cur ;\n ++ i ) free ( names -> name [ i ] ) ;\n names = names -> next ;\n if ( names == NULL ) {\n assert ( old == & init_names ) ;\n break ;\n }\n cur = names -> count ;\n if ( old == names_alloca ) names_alloca = names ;\n else free ( old ) ;\n }\n result = GLOB_NOSPACE ;\n }\n else {\n while ( 1 ) {\n struct globnames * old = names ;\n for ( size_t i = 0 ;\n i < cur ;\n ++ i ) new_gl_pathv [ pglob -> gl_offs + pglob -> gl_pathc ++ ] = names -> name [ i ] ;\n names = names -> next ;\n if ( names == NULL ) {\n assert ( old == & init_names ) ;\n break ;\n }\n cur = names -> count ;\n if ( old == names_alloca ) names_alloca = names ;\n else free ( old ) ;\n }\n pglob -> gl_pathv = new_gl_pathv ;\n pglob -> gl_pathv [ pglob -> gl_offs + pglob -> gl_pathc ] = NULL ;\n pglob -> gl_flags = flags ;\n }\n }\n if ( stream != NULL ) {\n save = errno ;\n if ( __builtin_expect ( flags & GLOB_ALTDIRFUNC , 0 ) ) ( * pglob -> gl_closedir ) ( stream ) ;\n else closedir ( stream ) ;\n __set_errno ( save ) ;\n }\n return result ;\n }"}
{"idx": 13907, "target": 0, "func": "int main ( int argc , char * argv [ ] ) {\n int frame_cnt = 0 ;\n FILE * infile = NULL ;\n VpxVideoWriter * writers [ kNumEncoders ] ;\n vpx_codec_ctx_t codec [ kNumEncoders ] ;\n vpx_codec_enc_cfg_t cfg [ kNumEncoders ] ;\n vpx_image_t raw [ kNumEncoders ] ;\n const VpxInterface * const encoder = get_vpx_encoder_by_name ( \"vp8\" ) ;\n const int arg_deadline = VPX_DL_REALTIME ;\n int i ;\n int width = 0 ;\n int height = 0 ;\n int frame_avail = 0 ;\n int got_data = 0 ;\n int show_psnr = 0 ;\n uint64_t psnr_sse_total [ kNumEncoders ] = {\n 0 }\n ;\n uint64_t psnr_samples_total [ kNumEncoders ] = {\n 0 }\n ;\n double psnr_totals [ kNumEncoders ] [ 4 ] = {\n {\n 0 , 0 }\n }\n ;\n int psnr_count [ kNumEncoders ] = {\n 0 }\n ;\n unsigned int target_bitrate [ kNumEncoders ] = {\n 1000 , 500 , 100 }\n ;\n const int framerate = 30 ;\n vpx_rational_t dsf [ kNumEncoders ] = {\n {\n 2 , 1 }\n , {\n 2 , 1 }\n , {\n 1 , 1 }\n }\n ;\n exec_name = argv [ 0 ] ;\n if ( ! encoder ) die ( \"Unsupported codec.\" ) ;\n if ( argc != ( 5 + kNumEncoders ) ) die ( \"Invalid number of input options.\" ) ;\n printf ( \"Using %s\\n\" , vpx_codec_iface_name ( encoder -> codec_interface ( ) ) ) ;\n width = strtol ( argv [ 1 ] , NULL , 0 ) ;\n height = strtol ( argv [ 2 ] , NULL , 0 ) ;\n if ( width < 16 || width % 2 || height < 16 || height % 2 ) die ( \"Invalid resolution: %ldx%ld\" , width , height ) ;\n if ( ! ( infile = fopen ( argv [ 3 ] , \"rb\" ) ) ) die ( \"Failed to open %s for reading\" , argv [ 3 ] ) ;\n show_psnr = strtol ( argv [ kNumEncoders + 4 ] , NULL , 0 ) ;\n for ( i = 0 ;\n i < kNumEncoders ;\n ++ i ) {\n vpx_codec_err_t res = vpx_codec_enc_config_default ( encoder -> codec_interface ( ) , & cfg [ i ] , 0 ) ;\n if ( res != VPX_CODEC_OK ) {\n printf ( \"Failed to get config: %s\\n\" , vpx_codec_err_to_string ( res ) ) ;\n return EXIT_FAILURE ;\n }\n }\n cfg [ 0 ] . g_w = width ;\n cfg [ 0 ] . g_h = height ;\n cfg [ 0 ] . g_threads = 1 ;\n cfg [ 0 ] . rc_dropframe_thresh = 30 ;\n cfg [ 0 ] . rc_end_usage = VPX_CBR ;\n cfg [ 0 ] . rc_resize_allowed = 0 ;\n cfg [ 0 ] . rc_min_quantizer = 4 ;\n cfg [ 0 ] . rc_max_quantizer = 56 ;\n cfg [ 0 ] . rc_undershoot_pct = 98 ;\n cfg [ 0 ] . rc_overshoot_pct = 100 ;\n cfg [ 0 ] . rc_buf_initial_sz = 500 ;\n cfg [ 0 ] . rc_buf_optimal_sz = 600 ;\n cfg [ 0 ] . rc_buf_sz = 1000 ;\n cfg [ 0 ] . g_error_resilient = 1 ;\n cfg [ 0 ] . g_lag_in_frames = 0 ;\n cfg [ 0 ] . kf_mode = VPX_KF_AUTO ;\n cfg [ 0 ] . kf_min_dist = 3000 ;\n cfg [ 0 ] . kf_max_dist = 3000 ;\n cfg [ 0 ] . rc_target_bitrate = target_bitrate [ 0 ] ;\n cfg [ 0 ] . g_timebase . num = 1 ;\n cfg [ 0 ] . g_timebase . den = framerate ;\n for ( i = 1 ;\n i < kNumEncoders ;\n ++ i ) {\n cfg [ i ] = cfg [ 0 ] ;\n cfg [ i ] . g_threads = 1 ;\n cfg [ i ] . rc_target_bitrate = target_bitrate [ i ] ;\n {\n unsigned int iw = cfg [ i - 1 ] . g_w * dsf [ i - 1 ] . den + dsf [ i - 1 ] . num - 1 ;\n unsigned int ih = cfg [ i - 1 ] . g_h * dsf [ i - 1 ] . den + dsf [ i - 1 ] . num - 1 ;\n cfg [ i ] . g_w = iw / dsf [ i - 1 ] . num ;\n cfg [ i ] . g_h = ih / dsf [ i - 1 ] . num ;\n }\n if ( ( cfg [ i ] . g_w ) % 2 ) cfg [ i ] . g_w ++ ;\n if ( ( cfg [ i ] . g_h ) % 2 ) cfg [ i ] . g_h ++ ;\n }\n for ( i = 0 ;\n i < kNumEncoders ;\n ++ i ) {\n VpxVideoInfo info = {\n encoder -> fourcc , cfg [ i ] . g_w , cfg [ i ] . g_h , {\n cfg [ i ] . g_timebase . num , cfg [ i ] . g_timebase . den }\n }\n ;\n if ( ! ( writers [ i ] = vpx_video_writer_open ( argv [ i + 4 ] , kContainerIVF , & info ) ) ) die ( \"Failed to open %s for writing\" , argv [ i + 4 ] ) ;\n }\n for ( i = 0 ;\n i < kNumEncoders ;\n ++ i ) if ( ! vpx_img_alloc ( & raw [ i ] , VPX_IMG_FMT_I420 , cfg [ i ] . g_w , cfg [ i ] . g_h , 32 ) ) die ( \"Failed to allocate image\" , cfg [ i ] . g_w , cfg [ i ] . g_h ) ;\n if ( vpx_codec_enc_init_multi ( & codec [ 0 ] , encoder -> codec_interface ( ) , & cfg [ 0 ] , kNumEncoders , show_psnr ? VPX_CODEC_USE_PSNR : 0 , & dsf [ 0 ] ) ) die_codec ( & codec [ 0 ] , \"Failed to initialize encoder\" ) ;\n for ( i = 0 ;\n i < kNumEncoders ;\n i ++ ) {\n if ( vpx_codec_control ( & codec [ i ] , VP8E_SET_CPUUSED , - 6 ) ) die_codec ( & codec [ i ] , \"Failed to set cpu_used\" ) ;\n if ( vpx_codec_control ( & codec [ i ] , VP8E_SET_STATIC_THRESHOLD , 1 ) ) die_codec ( & codec [ i ] , \"Failed to set static threshold\" ) ;\n if ( vpx_codec_control ( & codec [ 0 ] , VP8E_SET_NOISE_SENSITIVITY , i == 0 ) ) die_codec ( & codec [ 0 ] , \"Failed to set noise_sensitivity\" ) ;\n }\n frame_avail = 1 ;\n got_data = 0 ;\n while ( frame_avail || got_data ) {\n vpx_codec_iter_t iter [ kNumEncoders ] = {\n NULL }\n ;\n const vpx_codec_cx_pkt_t * pkt [ kNumEncoders ] ;\n frame_avail = vpx_img_read ( & raw [ 0 ] , infile ) ;\n if ( frame_avail ) {\n for ( i = 1 ;\n i < kNumEncoders ;\n ++ i ) {\n vpx_image_t * const prev = & raw [ i - 1 ] ;\n I420Scale ( prev -> planes [ VPX_PLANE_Y ] , prev -> stride [ VPX_PLANE_Y ] , prev -> planes [ VPX_PLANE_U ] , prev -> stride [ VPX_PLANE_U ] , prev -> planes [ VPX_PLANE_V ] , prev -> stride [ VPX_PLANE_V ] , prev -> d_w , prev -> d_h , raw [ i ] . planes [ VPX_PLANE_Y ] , raw [ i ] . stride [ VPX_PLANE_Y ] , raw [ i ] . planes [ VPX_PLANE_U ] , raw [ i ] . stride [ VPX_PLANE_U ] , raw [ i ] . planes [ VPX_PLANE_V ] , raw [ i ] . stride [ VPX_PLANE_V ] , raw [ i ] . d_w , raw [ i ] . d_h , 1 ) ;\n }\n }\n if ( vpx_codec_encode ( & codec [ 0 ] , frame_avail ? & raw [ 0 ] : NULL , frame_cnt , 1 , 0 , arg_deadline ) ) {\n die_codec ( & codec [ 0 ] , \"Failed to encode frame\" ) ;\n }\n for ( i = kNumEncoders - 1 ;\n i >= 0 ;\n i -- ) {\n got_data = 0 ;\n while ( ( pkt [ i ] = vpx_codec_get_cx_data ( & codec [ i ] , & iter [ i ] ) ) ) {\n got_data = 1 ;\n switch ( pkt [ i ] -> kind ) {\n case VPX_CODEC_CX_FRAME_PKT : vpx_video_writer_write_frame ( writers [ i ] , pkt [ i ] -> data . frame . buf , pkt [ i ] -> data . frame . sz , frame_cnt - 1 ) ;\n break ;\n case VPX_CODEC_PSNR_PKT : if ( show_psnr ) {\n int j ;\n psnr_sse_total [ i ] += pkt [ i ] -> data . psnr . sse [ 0 ] ;\n psnr_samples_total [ i ] += pkt [ i ] -> data . psnr . samples [ 0 ] ;\n for ( j = 0 ;\n j < 4 ;\n j ++ ) psnr_totals [ i ] [ j ] += pkt [ i ] -> data . psnr . psnr [ j ] ;\n psnr_count [ i ] ++ ;\n }\n break ;\n default : break ;\n }\n printf ( pkt [ i ] -> kind == VPX_CODEC_CX_FRAME_PKT && ( pkt [ i ] -> data . frame . flags & VPX_FRAME_IS_KEY ) ? \"K\" : \".\" ) ;\n fflush ( stdout ) ;\n }\n }\n frame_cnt ++ ;\n }\n printf ( \"\\n\" ) ;\n fclose ( infile ) ;\n printf ( \"Processed %d frames.\\n\" , frame_cnt - 1 ) ;\n for ( i = 0 ;\n i < kNumEncoders ;\n ++ i ) {\n if ( show_psnr && psnr_count [ i ] > 0 ) {\n int j ;\n double ovpsnr = sse_to_psnr ( psnr_samples_total [ i ] , 255.0 , psnr_sse_total [ i ] ) ;\n fprintf ( stderr , \"\\n ENC%d PSNR (Overall/Avg/Y/U/V)\" , i ) ;\n fprintf ( stderr , \" %.3lf\" , ovpsnr ) ;\n for ( j = 0 ;\n j < 4 ;\n j ++ ) fprintf ( stderr , \" %.3lf\" , psnr_totals [ i ] [ j ] / psnr_count [ i ] ) ;\n }\n if ( vpx_codec_destroy ( & codec [ i ] ) ) die_codec ( & codec [ i ] , \"Failed to destroy codec\" ) ;\n vpx_img_free ( & raw [ i ] ) ;\n vpx_video_writer_close ( writers [ i ] ) ;\n }\n printf ( \"\\n\" ) ;\n return EXIT_SUCCESS ;\n }"}
{"idx": 13908, "target": 0, "func": "TEST_F ( WebFrameTest , DidScrollCallbackAfterScrollableAreaChanges ) {\n FrameTestHelpers : : WebViewHelper web_view_helper ;\n web_view_helper . Initialize ( ) ;\n web_view_helper . Resize ( WebSize ( 200 , 200 ) ) ;\n WebViewImpl * web_view = web_view_helper . GetWebView ( ) ;\n InitializeWithHTML ( * web_view -> MainFrameImpl ( ) -> GetFrame ( ) , \"<style>\" \" #scrollable {\n\" \" height: 100px;\n\" \" width: 100px;\n\" \" overflow: scroll;\n\" \" will-change: transform;\n\" \" }\n\" \" #forceScroll {\n height: 120px;\n width: 50px;\n }\n\" \"</style>\" \"<div id='scrollable'>\" \" <div id='forceScroll'></div>\" \"</div>\" ) ;\n web_view -> UpdateAllLifecyclePhases ( ) ;\n Document * document = web_view -> MainFrameImpl ( ) -> GetFrame ( ) -> GetDocument ( ) ;\n Element * scrollable = document -> getElementById ( \"scrollable\" ) ;\n auto * scrollable_area = ToLayoutBox ( scrollable -> GetLayoutObject ( ) ) -> GetScrollableArea ( ) ;\n EXPECT_NE ( nullptr , scrollable_area ) ;\n cc : : Layer * cc_scroll_layer = scrollable_area -> LayerForScrolling ( ) -> CcLayer ( ) ;\n EXPECT_NE ( nullptr , cc_scroll_layer ) ;\n EXPECT_EQ ( ScrollOffset ( ) , scrollable_area -> GetScrollOffset ( ) ) ;\n cc_scroll_layer -> SetScrollOffsetFromImplSide ( gfx : : ScrollOffset ( 0 , 1 ) ) ;\n web_view -> UpdateAllLifecyclePhases ( ) ;\n EXPECT_EQ ( ScrollOffset ( 0 , 1 ) , scrollable_area -> GetScrollOffset ( ) ) ;\n scrollable -> setAttribute ( HTMLNames : : styleAttr , \"overflow: visible\" ) ;\n WebLocalFrame * frame = web_view_helper . LocalMainFrame ( ) ;\n frame -> ExecuteScript ( WebScriptSource ( \"var forceLayoutFromScript = scrollable.offsetTop;\n\" ) ) ;\n EXPECT_EQ ( document -> Lifecycle ( ) . GetState ( ) , DocumentLifecycle : : kLayoutClean ) ;\n EXPECT_EQ ( nullptr , ToLayoutBox ( scrollable -> GetLayoutObject ( ) ) -> GetScrollableArea ( ) ) ;\n cc_scroll_layer -> SetScrollOffsetFromImplSide ( gfx : : ScrollOffset ( 0 , 3 ) ) ;\n }"}
{"idx": 13909, "target": 0, "func": "static const ReorderingScheme * findMatchingScheme ( UBiDiLevel inLevel , UBiDiLevel outLevel , UBiDiOrder inOrder , UBiDiOrder outOrder ) {\n uint32_t i ;\n for ( i = 0 ;\n i < nSchemes ;\n i ++ ) {\n const ReorderingScheme * pScheme = Schemes + i ;\n if ( inLevel == pScheme -> inLevel && outLevel == pScheme -> outLevel && inOrder == pScheme -> inOrder && outOrder == pScheme -> outOrder ) {\n return pScheme ;\n }\n }\n return NULL ;\n }"}
{"idx": 13910, "target": 0, "func": "static void qio_channel_websock_set_watch ( QIOChannelWebsock * ioc ) {\n GIOCondition cond = 0 ;\n qio_channel_websock_unset_watch ( ioc ) ;\n if ( ioc -> io_err ) {\n return ;\n }\n if ( ioc -> encoutput . offset || ioc -> ping_reply . offset ) {\n cond |= G_IO_OUT ;\n }\n if ( ioc -> encinput . offset < QIO_CHANNEL_WEBSOCK_MAX_BUFFER && ! ioc -> io_eof ) {\n cond |= G_IO_IN ;\n }\n if ( cond ) {\n object_ref ( OBJECT ( ioc ) ) ;\n ioc -> io_tag = qio_channel_add_watch ( ioc -> master , cond , qio_channel_websock_flush , ioc , qio_channel_websock_flush_free ) ;\n }\n }"}
{"idx": 13911, "target": 0, "func": "static gboolean gst_asf_demux_get_stream_video_format ( asf_stream_video_format * fmt , guint8 * * p_data , guint64 * p_size ) {\n if ( * p_size < ( 4 + 4 + 4 + 2 + 2 + 4 + 4 + 4 + 4 + 4 + 4 ) ) return FALSE ;\n fmt -> size = gst_asf_demux_get_uint32 ( p_data , p_size ) ;\n if ( fmt -> size < 40 ) {\n GST_WARNING ( \"Corrupted asf_stream_video_format (size < 40)\" ) ;\n return FALSE ;\n }\n if ( ( guint64 ) fmt -> size - 4 > * p_size ) {\n GST_WARNING ( \"Corrupted asf_stream_video_format (codec_data is too small)\" ) ;\n return FALSE ;\n }\n fmt -> width = gst_asf_demux_get_uint32 ( p_data , p_size ) ;\n fmt -> height = gst_asf_demux_get_uint32 ( p_data , p_size ) ;\n fmt -> planes = gst_asf_demux_get_uint16 ( p_data , p_size ) ;\n fmt -> depth = gst_asf_demux_get_uint16 ( p_data , p_size ) ;\n fmt -> tag = gst_asf_demux_get_uint32 ( p_data , p_size ) ;\n fmt -> image_size = gst_asf_demux_get_uint32 ( p_data , p_size ) ;\n fmt -> xpels_meter = gst_asf_demux_get_uint32 ( p_data , p_size ) ;\n fmt -> ypels_meter = gst_asf_demux_get_uint32 ( p_data , p_size ) ;\n fmt -> num_colors = gst_asf_demux_get_uint32 ( p_data , p_size ) ;\n fmt -> imp_colors = gst_asf_demux_get_uint32 ( p_data , p_size ) ;\n return TRUE ;\n }"}
{"idx": 13912, "target": 0, "func": "static int idr_start ( struct archive_write * a , struct idr * idr , int cnt , int ffmax , int num_size , int null_size , const struct archive_rb_tree_ops * rbt_ops ) {\n int r ;\n ( void ) ffmax ;\n r = idr_ensure_poolsize ( a , idr , cnt ) ;\n if ( r != ARCHIVE_OK ) return ( r ) ;\n __archive_rb_tree_init ( & ( idr -> rbtree ) , rbt_ops ) ;\n idr -> wait_list . first = NULL ;\n idr -> wait_list . last = & ( idr -> wait_list . first ) ;\n idr -> pool_idx = 0 ;\n idr -> num_size = num_size ;\n idr -> null_size = null_size ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 13913, "target": 0, "func": "static ossl_inline int lh_ ## type ## _error ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_error ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _num_items ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_num_items ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _node_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _node_usage_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_usage_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING ) ;\n # ifdef _MSC_VER # pragma warning ( push ) # pragma warning ( disable : 4090 ) # endif DEFINE_LHASH_OF ( OPENSSL_CSTRING )"}
{"idx": 13914, "target": 0, "func": "static int selinux_ptrace_traceme ( struct task_struct * parent ) {\n return task_has_perm ( parent , current , PROCESS__PTRACE ) ;\n }"}
{"idx": 13915, "target": 0, "func": "int X509_REQ_get_attr_by_OBJ ( const X509_REQ * req , ASN1_OBJECT * obj , int lastpos ) {\n return X509at_get_attr_by_OBJ ( req -> req_info -> attributes , obj , lastpos ) ;\n }"}
{"idx": 13916, "target": 0, "func": "static int read_huffman_tree ( AVCodecContext * avctx , GetBitContext * gb ) {\n Vp3DecodeContext * s = avctx -> priv_data ;\n if ( get_bits1 ( gb ) ) {\n int token ;\n if ( s -> entries >= 32 ) {\n av_log ( avctx , AV_LOG_ERROR , \"huffman tree overflow\\n\" ) ;\n return - 1 ;\n }\n token = get_bits ( gb , 5 ) ;\n av_dlog ( avctx , \"hti %d hbits %x token %d entry : %d size %d\\n\" , s -> hti , s -> hbits , token , s -> entries , s -> huff_code_size ) ;\n s -> huffman_table [ s -> hti ] [ token ] [ 0 ] = s -> hbits ;\n s -> huffman_table [ s -> hti ] [ token ] [ 1 ] = s -> huff_code_size ;\n s -> entries ++ ;\n }\n else {\n if ( s -> huff_code_size >= 32 ) {\n av_log ( avctx , AV_LOG_ERROR , \"huffman tree overflow\\n\" ) ;\n return - 1 ;\n }\n s -> huff_code_size ++ ;\n s -> hbits <<= 1 ;\n if ( read_huffman_tree ( avctx , gb ) ) return - 1 ;\n s -> hbits |= 1 ;\n if ( read_huffman_tree ( avctx , gb ) ) return - 1 ;\n s -> hbits >>= 1 ;\n s -> huff_code_size -- ;\n }\n return 0 ;\n }"}
{"idx": 13917, "target": 0, "func": "static const char * cmd_collection_timeout ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n dcfg -> col_timeout = atoi ( p1 ) ;\n if ( ( dcfg -> col_timeout >= 0 ) && ( dcfg -> col_timeout <= 2592000 ) ) return NULL ;\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid value for SecCollectionTimeout: %s\" , p1 ) ;\n }"}
{"idx": 13918, "target": 0, "func": "void proto_register_subtree_array ( gint * const * indices , const int num_indices ) {\n int i ;\n gint * const * ptr = indices ;\n if ( tree_is_expanded != NULL ) {\n tree_is_expanded = ( guint32 * ) g_realloc ( tree_is_expanded , ( 1 + ( ( num_tree_types + num_indices ) / 32 ) ) * sizeof ( guint32 ) ) ;\n for ( i = num_tree_types ;\n i < num_tree_types + num_indices ;\n i ++ ) tree_is_expanded [ i >> 5 ] &= ~ ( 1U << ( i & 31 ) ) ;\n }\n for ( i = 0 ;\n i < num_indices ;\n i ++ , ptr ++ , num_tree_types ++ ) {\n if ( * * ptr != - 1 ) {\n g_error ( \"register_subtree_array: subtree item type (ett_...) not -1 !\" \" This is a development error:\" \" Either the subtree item type has already been assigned or\" \" was not initialized to -1.\" ) ;\n }\n * * ptr = num_tree_types ;\n }\n }"}
{"idx": 13919, "target": 0, "func": "static int dissect_h245_EnhancementLayerInfo ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_EnhancementLayerInfo , EnhancementLayerInfo_sequence ) ;\n return offset ;\n }"}
{"idx": 13920, "target": 0, "func": "static void purple_add_buddy ( struct im_connection * ic , char * who , char * group ) {\n PurpleBuddy * pb ;\n PurpleGroup * pg = NULL ;\n struct purple_data * pd = ic -> proto_data ;\n if ( group && ! ( pg = purple_find_group ( group ) ) ) {\n pg = purple_group_new ( group ) ;\n purple_blist_add_group ( pg , NULL ) ;\n }\n pb = purple_buddy_new ( pd -> account , who , NULL ) ;\n purple_blist_add_buddy ( pb , NULL , pg , NULL ) ;\n purple_account_add_buddy ( pd -> account , pb ) ;\n purple_gg_buddylist_export ( pd -> account -> gc ) ;\n }"}
{"idx": 13921, "target": 0, "func": "static void indexed_to_rgb ( fz_context * ctx , const fz_colorspace * cs , const float * color , float * rgb ) {\n float alt [ FZ_MAX_COLORS ] ;\n struct indexed * idx = cs -> data ;\n indexed_to_alt ( ctx , cs , color , alt ) ;\n idx -> base -> to_ccs ( ctx , idx -> base , alt , rgb ) ;\n }"}
{"idx": 13922, "target": 0, "func": "TEST_F ( TemplateURLTest , SessionToken ) {\n TemplateURLData data ;\n search_terms_data_ . set_google_base_url ( \"http://bar/\" ) ;\n data . SetURL ( \"http://bar/search?q={\nsearchTerms}\n&{\ngoogle:sessionToken}\nxssi=t\" ) ;\n TemplateURL url ( data ) ;\n TemplateURLRef : : SearchTermsArgs search_terms_args ( ASCIIToUTF16 ( \"foo\" ) ) ;\n search_terms_args . session_token = \"SESSIONTOKENGOESHERE\" ;\n std : : string result = url . url_ref ( ) . ReplaceSearchTerms ( search_terms_args , search_terms_data_ ) ;\n EXPECT_EQ ( \"http://bar/search?q=foo&psi=SESSIONTOKENGOESHERE&xssi=t\" , result ) ;\n TemplateURL url2 ( data ) ;\n search_terms_args . session_token = \"\" ;\n result = url . url_ref ( ) . ReplaceSearchTerms ( search_terms_args , search_terms_data_ ) ;\n EXPECT_EQ ( \"http://bar/search?q=foo&xssi=t\" , result ) ;\n }"}
{"idx": 13923, "target": 0, "func": "static tvbuff_t * ber_tvb_new_subset_length ( tvbuff_t * tvb , const gint backing_offset , const gint backing_length ) {\n gint length_remaining ;\n length_remaining = tvb_reported_length_remaining ( tvb , backing_offset ) ;\n return tvb_new_subset_length ( tvb , backing_offset , ( length_remaining > backing_length ) ? backing_length : length_remaining ) ;\n }"}
{"idx": 13924, "target": 0, "func": "static void exception_action ( CPUArchState * env1 ) {\n # if defined ( TARGET_I386 ) raise_exception_err ( env1 , env1 -> exception_index , env1 -> error_code ) ;\n # else cpu_loop_exit ( env1 ) ;\n # endif }"}
{"idx": 13925, "target": 0, "func": "void pdf_sort_cmap ( fz_context * ctx , pdf_cmap * cmap ) {\n int counts [ 3 ] ;\n if ( cmap -> tree == NULL ) return ;\n counts [ 0 ] = 0 ;\n counts [ 1 ] = 0 ;\n counts [ 2 ] = 0 ;\n walk_splay ( cmap -> tree , cmap -> ttop , count_node_types , & counts ) ;\n cmap -> ranges = fz_malloc_array ( ctx , counts [ 0 ] , sizeof ( * cmap -> ranges ) ) ;\n cmap -> rcap = counts [ 0 ] ;\n cmap -> xranges = fz_malloc_array ( ctx , counts [ 1 ] , sizeof ( * cmap -> xranges ) ) ;\n cmap -> xcap = counts [ 1 ] ;\n cmap -> mranges = fz_malloc_array ( ctx , counts [ 2 ] , sizeof ( * cmap -> mranges ) ) ;\n cmap -> mcap = counts [ 2 ] ;\n walk_splay ( cmap -> tree , cmap -> ttop , copy_node_types , cmap ) ;\n fz_free ( ctx , cmap -> tree ) ;\n cmap -> tree = NULL ;\n }"}
{"idx": 13926, "target": 1, "func": "static int mpeg_decode_slice ( MpegEncContext * s , int mb_y , const uint8_t * * buf , int buf_size ) {\n AVCodecContext * avctx = s -> avctx ;\n const int field_pic = s -> picture_structure != PICT_FRAME ;\n s -> resync_mb_x = s -> resync_mb_y = - 1 ;\n assert ( mb_y < s -> mb_height ) ;\n init_get_bits ( & s -> gb , * buf , buf_size * 8 ) ;\n ff_mpeg1_clean_buffers ( s ) ;\n s -> interlaced_dct = 0 ;\n s -> qscale = get_qscale ( s ) ;\n if ( s -> qscale == 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"qscale == 0\\n\" ) ;\n return - 1 ;\n }\n while ( get_bits1 ( & s -> gb ) != 0 ) {\n skip_bits ( & s -> gb , 8 ) ;\n }\n s -> mb_x = 0 ;\n if ( mb_y == 0 && s -> codec_tag == AV_RL32 ( \"SLIF\" ) ) {\n skip_bits1 ( & s -> gb ) ;\n }\n else {\n while ( get_bits_left ( & s -> gb ) > 0 ) {\n int code = get_vlc2 ( & s -> gb , mbincr_vlc . table , MBINCR_VLC_BITS , 2 ) ;\n if ( code < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"first mb_incr damaged\\n\" ) ;\n return - 1 ;\n }\n if ( code >= 33 ) {\n if ( code == 33 ) {\n s -> mb_x += 33 ;\n }\n }\n else {\n s -> mb_x += code ;\n break ;\n }\n }\n }\n if ( s -> mb_x >= ( unsigned ) s -> mb_width ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"initial skip overflow\\n\" ) ;\n return - 1 ;\n }\n if ( avctx -> hwaccel ) {\n const uint8_t * buf_end , * buf_start = * buf - 4 ;\n int start_code = - 1 ;\n buf_end = avpriv_mpv_find_start_code ( buf_start + 2 , * buf + buf_size , & start_code ) ;\n if ( buf_end < * buf + buf_size ) buf_end -= 4 ;\n s -> mb_y = mb_y ;\n if ( avctx -> hwaccel -> decode_slice ( avctx , buf_start , buf_end - buf_start ) < 0 ) return DECODE_SLICE_ERROR ;\n * buf = buf_end ;\n return DECODE_SLICE_OK ;\n }\n s -> resync_mb_x = s -> mb_x ;\n s -> resync_mb_y = s -> mb_y = mb_y ;\n s -> mb_skip_run = 0 ;\n ff_init_block_index ( s ) ;\n if ( s -> mb_y == 0 && s -> mb_x == 0 && ( s -> first_field || s -> picture_structure == PICT_FRAME ) ) {\n if ( s -> avctx -> debug & FF_DEBUG_PICT_INFO ) {\n av_log ( s -> avctx , AV_LOG_DEBUG , \"qp:%d fc:%2d%2d%2d%2d %s %s %s %s %s dc:%d pstruct:%d fdct:%d cmv:%d qtype:%d ivlc:%d rff:%d %s\\n\" , s -> qscale , s -> mpeg_f_code [ 0 ] [ 0 ] , s -> mpeg_f_code [ 0 ] [ 1 ] , s -> mpeg_f_code [ 1 ] [ 0 ] , s -> mpeg_f_code [ 1 ] [ 1 ] , s -> pict_type == AV_PICTURE_TYPE_I ? \"I\" : ( s -> pict_type == AV_PICTURE_TYPE_P ? \"P\" : ( s -> pict_type == AV_PICTURE_TYPE_B ? \"B\" : \"S\" ) ) , s -> progressive_sequence ? \"ps\" : \"\" , s -> progressive_frame ? \"pf\" : \"\" , s -> alternate_scan ? \"alt\" : \"\" , s -> top_field_first ? \"top\" : \"\" , s -> intra_dc_precision , s -> picture_structure , s -> frame_pred_frame_dct , s -> concealment_motion_vectors , s -> q_scale_type , s -> intra_vlc_format , s -> repeat_first_field , s -> chroma_420_type ? \"420\" : \"\" ) ;\n }\n }\n for ( ;\n ;\n ) {\n if ( CONFIG_MPEG_XVMC_DECODER && s -> avctx -> xvmc_acceleration > 1 ) ff_xvmc_init_block ( s ) ;\n if ( mpeg_decode_mb ( s , s -> block ) < 0 ) return - 1 ;\n if ( s -> current_picture . f . motion_val [ 0 ] && ! s -> encoding ) {\n const int wrap = s -> b8_stride ;\n int xy = s -> mb_x * 2 + s -> mb_y * 2 * wrap ;\n int b8_xy = 4 * ( s -> mb_x + s -> mb_y * s -> mb_stride ) ;\n int motion_x , motion_y , dir , i ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n for ( dir = 0 ;\n dir < 2 ;\n dir ++ ) {\n if ( s -> mb_intra || ( dir == 1 && s -> pict_type != AV_PICTURE_TYPE_B ) ) {\n motion_x = motion_y = 0 ;\n }\n else if ( s -> mv_type == MV_TYPE_16X16 || ( s -> mv_type == MV_TYPE_FIELD && field_pic ) ) {\n motion_x = s -> mv [ dir ] [ 0 ] [ 0 ] ;\n motion_y = s -> mv [ dir ] [ 0 ] [ 1 ] ;\n }\n else {\n motion_x = s -> mv [ dir ] [ i ] [ 0 ] ;\n motion_y = s -> mv [ dir ] [ i ] [ 1 ] ;\n }\n s -> current_picture . f . motion_val [ dir ] [ xy ] [ 0 ] = motion_x ;\n s -> current_picture . f . motion_val [ dir ] [ xy ] [ 1 ] = motion_y ;\n s -> current_picture . f . motion_val [ dir ] [ xy + 1 ] [ 0 ] = motion_x ;\n s -> current_picture . f . motion_val [ dir ] [ xy + 1 ] [ 1 ] = motion_y ;\n s -> current_picture . f . ref_index [ dir ] [ b8_xy ] = s -> current_picture . f . ref_index [ dir ] [ b8_xy + 1 ] = s -> field_select [ dir ] [ i ] ;\n assert ( s -> field_select [ dir ] [ i ] == 0 || s -> field_select [ dir ] [ i ] == 1 ) ;\n }\n xy += wrap ;\n b8_xy += 2 ;\n }\n }\n s -> dest [ 0 ] += 16 ;\n s -> dest [ 1 ] += 16 >> s -> chroma_x_shift ;\n s -> dest [ 2 ] += 16 >> s -> chroma_x_shift ;\n ff_MPV_decode_mb ( s , s -> block ) ;\n if ( ++ s -> mb_x >= s -> mb_width ) {\n const int mb_size = 16 ;\n ff_mpeg_draw_horiz_band ( s , mb_size * ( s -> mb_y >> field_pic ) , mb_size ) ;\n ff_MPV_report_decode_progress ( s ) ;\n s -> mb_x = 0 ;\n s -> mb_y += 1 << field_pic ;\n if ( s -> mb_y >= s -> mb_height ) {\n int left = get_bits_left ( & s -> gb ) ;\n int is_d10 = s -> chroma_format == 2 && s -> pict_type == AV_PICTURE_TYPE_I && avctx -> profile == 0 && avctx -> level == 5 && s -> intra_dc_precision == 2 && s -> q_scale_type == 1 && s -> alternate_scan == 0 && s -> progressive_frame == 0 ;\n if ( left < 0 || ( left && show_bits ( & s -> gb , FFMIN ( left , 23 ) ) && ! is_d10 ) || ( ( avctx -> err_recognition & AV_EF_BUFFER ) && left > 8 ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"end mismatch left=%d %0X\\n\" , left , show_bits ( & s -> gb , FFMIN ( left , 23 ) ) ) ;\n return - 1 ;\n }\n else goto eos ;\n }\n ff_init_block_index ( s ) ;\n }\n if ( s -> mb_skip_run == - 1 ) {\n s -> mb_skip_run = 0 ;\n for ( ;\n ;\n ) {\n int code = get_vlc2 ( & s -> gb , mbincr_vlc . table , MBINCR_VLC_BITS , 2 ) ;\n if ( code < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"mb incr damaged\\n\" ) ;\n return - 1 ;\n }\n if ( code >= 33 ) {\n if ( code == 33 ) {\n s -> mb_skip_run += 33 ;\n }\n else if ( code == 35 ) {\n if ( s -> mb_skip_run != 0 || show_bits ( & s -> gb , 15 ) != 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"slice mismatch\\n\" ) ;\n return - 1 ;\n }\n goto eos ;\n }\n }\n else {\n s -> mb_skip_run += code ;\n break ;\n }\n }\n if ( s -> mb_skip_run ) {\n int i ;\n if ( s -> pict_type == AV_PICTURE_TYPE_I ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"skipped MB in I frame at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n s -> mb_intra = 0 ;\n for ( i = 0 ;\n i < 12 ;\n i ++ ) s -> block_last_index [ i ] = - 1 ;\n if ( s -> picture_structure == PICT_FRAME ) s -> mv_type = MV_TYPE_16X16 ;\n else s -> mv_type = MV_TYPE_FIELD ;\n if ( s -> pict_type == AV_PICTURE_TYPE_P ) {\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = s -> mv [ 0 ] [ 0 ] [ 1 ] = 0 ;\n s -> last_mv [ 0 ] [ 0 ] [ 0 ] = s -> last_mv [ 0 ] [ 0 ] [ 1 ] = 0 ;\n s -> last_mv [ 0 ] [ 1 ] [ 0 ] = s -> last_mv [ 0 ] [ 1 ] [ 1 ] = 0 ;\n s -> field_select [ 0 ] [ 0 ] = ( s -> picture_structure - 1 ) & 1 ;\n }\n else {\n s -> mv [ 0 ] [ 0 ] [ 0 ] = s -> last_mv [ 0 ] [ 0 ] [ 0 ] ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = s -> last_mv [ 0 ] [ 0 ] [ 1 ] ;\n s -> mv [ 1 ] [ 0 ] [ 0 ] = s -> last_mv [ 1 ] [ 0 ] [ 0 ] ;\n s -> mv [ 1 ] [ 0 ] [ 1 ] = s -> last_mv [ 1 ] [ 0 ] [ 1 ] ;\n }\n }\n }\n }\n eos : * buf += ( get_bits_count ( & s -> gb ) - 1 ) / 8 ;\n av_dlog ( s , \"y %d %d %d %d\\n\" , s -> resync_mb_x , s -> resync_mb_y , s -> mb_x , s -> mb_y ) ;\n return 0 ;\n }"}
{"idx": 13927, "target": 0, "func": "static void start_move ( struct transfer_request * request ) {\n struct active_request_slot * slot ;\n struct curl_slist * dav_headers = NULL ;\n slot = get_active_slot ( ) ;\n slot -> callback_func = process_response ;\n slot -> callback_data = request ;\n curl_setup_http_get ( slot -> curl , request -> url , DAV_MOVE ) ;\n dav_headers = curl_slist_append ( dav_headers , request -> dest ) ;\n dav_headers = curl_slist_append ( dav_headers , \"Overwrite: T\" ) ;\n curl_easy_setopt ( slot -> curl , CURLOPT_HTTPHEADER , dav_headers ) ;\n if ( start_active_slot ( slot ) ) {\n request -> slot = slot ;\n request -> state = RUN_MOVE ;\n }\n else {\n request -> state = ABORTED ;\n free ( request -> url ) ;\n request -> url = NULL ;\n }\n }"}
{"idx": 13928, "target": 0, "func": "static GstFlowReturn gst_asf_demux_process_advanced_mutual_exclusion ( GstASFDemux * demux , guint8 * data , guint64 size ) {\n ASFGuid guid ;\n guint16 num , i ;\n if ( size < 16 + 2 + ( 2 * 2 ) ) goto not_enough_data ;\n gst_asf_demux_get_guid ( & guid , & data , & size ) ;\n num = gst_asf_demux_get_uint16 ( & data , & size ) ;\n if ( num < 2 ) {\n GST_WARNING_OBJECT ( demux , \"nonsensical mutually exclusive streams count\" ) ;\n return GST_FLOW_OK ;\n }\n if ( size < ( num * sizeof ( guint16 ) ) ) goto not_enough_data ;\n for ( i = 0 ;\n i < num ;\n ++ i ) {\n guint8 mes ;\n mes = gst_asf_demux_get_uint16 ( & data , & size ) & 0x7f ;\n GST_LOG_OBJECT ( demux , \"mutually exclusive: stream %d\" , mes ) ;\n demux -> mut_ex_streams = g_slist_append ( demux -> mut_ex_streams , GINT_TO_POINTER ( mes ) ) ;\n }\n return GST_FLOW_OK ;\n not_enough_data : {\n GST_WARNING_OBJECT ( demux , \"short read parsing advanced mutual exclusion\" ) ;\n return GST_FLOW_OK ;\n }\n }"}
{"idx": 13929, "target": 0, "func": "static inline int selinux_option ( char * option , int len ) {\n return ( match_prefix ( CONTEXT_STR , sizeof ( CONTEXT_STR ) - 1 , option , len ) || match_prefix ( FSCONTEXT_STR , sizeof ( FSCONTEXT_STR ) - 1 , option , len ) || match_prefix ( DEFCONTEXT_STR , sizeof ( DEFCONTEXT_STR ) - 1 , option , len ) || match_prefix ( ROOTCONTEXT_STR , sizeof ( ROOTCONTEXT_STR ) - 1 , option , len ) || match_prefix ( LABELSUPP_STR , sizeof ( LABELSUPP_STR ) - 1 , option , len ) ) ;\n }"}
{"idx": 13930, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( VirtualKeyboardBrowserTest , KeysetTransitionTest ) {\n RunTest ( base : : FilePath ( FILE_PATH_LITERAL ( \"keyset_transition_test.js\" ) ) ) ;\n }"}
{"idx": 13931, "target": 1, "func": "static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 13932, "target": 1, "func": "static int dissect_h225_RequestSeqNum ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 724 \"./asn1/h225/h225.cnf\" h225_packet_info * h225_pi ;\n h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n if ( h225_pi != NULL ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 65535U , & ( h225_pi -> requestSeqNum ) , FALSE ) ;\n # line 732 \"./asn1/h225/h225.cnf\" }\n return offset ;\n }"}
{"idx": 13933, "target": 0, "func": "kadm5_ret_t kadm5_randkey_principal_3 ( void * server_handle , krb5_principal principal , krb5_boolean keepold , int n_ks_tuple , krb5_key_salt_tuple * ks_tuple , krb5_keyblock * * keyblocks , int * n_keys ) {\n krb5_db_entry * kdb ;\n osa_princ_ent_rec adb ;\n krb5_int32 now ;\n kadm5_policy_ent_rec pol ;\n int ret , last_pwd , n_new_keys ;\n krb5_boolean have_pol = FALSE ;\n kadm5_server_handle_t handle = server_handle ;\n krb5_keyblock * act_mkey ;\n krb5_kvno act_kvno ;\n int new_n_ks_tuple = 0 ;\n krb5_key_salt_tuple * new_ks_tuple = NULL ;\n if ( keyblocks ) * keyblocks = NULL ;\n CHECK_HANDLE ( server_handle ) ;\n krb5_clear_error_message ( handle -> context ) ;\n if ( principal == NULL ) return EINVAL ;\n if ( ( ret = kdb_get_entry ( handle , principal , & kdb , & adb ) ) ) return ( ret ) ;\n ret = apply_keysalt_policy ( handle , adb . policy , n_ks_tuple , ks_tuple , & new_n_ks_tuple , & new_ks_tuple ) ;\n if ( ret ) goto done ;\n if ( krb5_principal_compare ( handle -> context , principal , hist_princ ) ) {\n if ( keepold ) return KADM5_PROTECT_PRINCIPAL ;\n new_n_ks_tuple = 1 ;\n }\n ret = kdb_get_active_mkey ( handle , & act_kvno , & act_mkey ) ;\n if ( ret ) goto done ;\n ret = krb5_dbe_crk ( handle -> context , act_mkey , new_ks_tuple , new_n_ks_tuple , keepold , kdb ) ;\n if ( ret ) goto done ;\n ret = krb5_dbe_update_mkvno ( handle -> context , kdb , act_kvno ) ;\n if ( ret ) goto done ;\n kdb -> attributes &= ~ KRB5_KDB_REQUIRES_PWCHANGE ;\n ret = krb5_timeofday ( handle -> context , & now ) ;\n if ( ret ) goto done ;\n if ( ( adb . aux_attributes & KADM5_POLICY ) ) {\n ret = get_policy ( handle , adb . policy , & pol , & have_pol ) ;\n if ( ret ) goto done ;\n }\n if ( have_pol ) {\n ret = krb5_dbe_lookup_last_pwd_change ( handle -> context , kdb , & last_pwd ) ;\n if ( ret ) goto done ;\n # if 0 if ( ( now - last_pwd ) < pol . pw_min_life && ! ( kdb -> attributes & KRB5_KDB_REQUIRES_PWCHANGE ) ) {\n ret = KADM5_PASS_TOOSOON ;\n goto done ;\n }\n # endif if ( pol . pw_max_life ) kdb -> pw_expiration = now + pol . pw_max_life ;\n else kdb -> pw_expiration = 0 ;\n }\n else {\n kdb -> pw_expiration = 0 ;\n }\n ret = krb5_dbe_update_last_pwd_change ( handle -> context , kdb , now ) ;\n if ( ret ) goto done ;\n kdb -> fail_auth_count = 0 ;\n if ( keyblocks ) {\n n_new_keys = count_new_keys ( kdb -> n_key_data , kdb -> key_data ) ;\n ret = decrypt_key_data ( handle -> context , n_new_keys , kdb -> key_data , keyblocks , n_keys ) ;\n if ( ret ) goto done ;\n }\n kdb -> mask = KADM5_KEY_DATA | KADM5_FAIL_AUTH_COUNT ;\n ;\n ret = k5_kadm5_hook_chpass ( handle -> context , handle -> hook_handles , KADM5_HOOK_STAGE_PRECOMMIT , principal , keepold , new_n_ks_tuple , new_ks_tuple , NULL ) ;\n if ( ret ) goto done ;\n if ( ( ret = kdb_put_entry ( handle , kdb , & adb ) ) ) goto done ;\n ( void ) k5_kadm5_hook_chpass ( handle -> context , handle -> hook_handles , KADM5_HOOK_STAGE_POSTCOMMIT , principal , keepold , new_n_ks_tuple , new_ks_tuple , NULL ) ;\n ret = KADM5_OK ;\n done : free ( new_ks_tuple ) ;\n kdb_free_entry ( handle , kdb , & adb ) ;\n if ( have_pol ) kadm5_free_policy_ent ( handle -> lhandle , & pol ) ;\n return ret ;\n }"}
{"idx": 13934, "target": 0, "func": "static void test_bug4236 ( ) {\n MYSQL_STMT * stmt ;\n const char * stmt_text ;\n int rc ;\n MYSQL_STMT backup ;\n myheader ( \"test_bug4236\" ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n stmt_text = \"SELECT 1\" ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt , rc ) ;\n backup . stmt_id = stmt -> stmt_id ;\n stmt -> stmt_id = 0 ;\n rc = mysql_stmt_execute ( stmt ) ;\n DIE_UNLESS ( rc ) ;\n stmt -> stmt_id = backup . stmt_id ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 13935, "target": 1, "func": "static void initial_reordering_broken_cluster ( const hb_ot_shape_plan_t * plan , hb_face_t * face , hb_buffer_t * buffer , unsigned int start , unsigned int end ) {\n initial_reordering_standalone_cluster ( plan , face , buffer , start , end ) ;\n }"}
{"idx": 13936, "target": 1, "func": "static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 13937, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( DownloadNotificationTest , InterruptDownload ) {\n CreateDownload ( ) ;\n InterruptTheDownload ( ) ;\n EXPECT_EQ ( 1u , GetDownloadNotifications ( ) . size ( ) ) ;\n ASSERT_TRUE ( notification ( ) ) ;\n EXPECT_EQ ( l10n_util : : GetStringFUTF16 ( IDS_DOWNLOAD_STATUS_DOWNLOAD_FAILED_TITLE , download_item ( ) -> GetFileNameToReportUser ( ) . LossyDisplayName ( ) ) , notification ( ) -> title ( ) ) ;\n EXPECT_NE ( notification ( ) -> message ( ) . find ( l10n_util : : GetStringFUTF16 ( IDS_DOWNLOAD_STATUS_INTERRUPTED , l10n_util : : GetStringUTF16 ( IDS_DOWNLOAD_INTERRUPTED_DESCRIPTION_NETWORK_ERROR ) ) ) , std : : string : : npos ) ;\n EXPECT_EQ ( message_center : : NOTIFICATION_TYPE_BASE_FORMAT , notification ( ) -> type ( ) ) ;\n }"}
{"idx": 13938, "target": 0, "func": "static int test_string_matching ( xd3_stream * stream , int ignore ) {\n usize_t i ;\n int ret ;\n xd3_config config ;\n char rbuf [ TESTBUFSIZE ] ;\n for ( i = 0 ;\n i < SIZEOF_ARRAY ( match_tests ) ;\n i += 1 ) {\n const string_match_test * test = & match_tests [ i ] ;\n char * rptr = rbuf ;\n usize_t len = ( usize_t ) strlen ( test -> input ) ;\n xd3_free_stream ( stream ) ;\n xd3_init_config ( & config , 0 ) ;\n config . smatch_cfg = XD3_SMATCH_SOFT ;\n config . smatcher_soft . large_look = 4 ;\n config . smatcher_soft . large_step = 4 ;\n config . smatcher_soft . small_look = 4 ;\n config . smatcher_soft . small_chain = 10 ;\n config . smatcher_soft . small_lchain = 10 ;\n config . smatcher_soft . max_lazy = ( test -> flags & SM_LAZY ) ? 10 : 0 ;\n config . smatcher_soft . long_enough = 10 ;\n if ( ( ret = xd3_config_stream ( stream , & config ) ) ) {\n return ret ;\n }\n if ( ( ret = xd3_encode_init_full ( stream ) ) ) {\n return ret ;\n }\n xd3_avail_input ( stream , ( uint8_t * ) test -> input , len ) ;\n if ( ( ret = stream -> smatcher . string_match ( stream ) ) ) {\n return ret ;\n }\n * rptr = 0 ;\n while ( ! xd3_rlist_empty ( & stream -> iopt_used ) ) {\n xd3_rinst * inst = xd3_rlist_pop_front ( & stream -> iopt_used ) ;\n switch ( inst -> type ) {\n case XD3_RUN : * rptr ++ = 'R' ;\n break ;\n case XD3_CPY : * rptr ++ = 'C' ;\n break ;\n default : CHECK ( 0 ) ;\n }\n snprintf_func ( rptr , rbuf + TESTBUFSIZE - rptr , \"%d/%d\" , inst -> pos , inst -> size ) ;\n rptr += strlen ( rptr ) ;\n if ( inst -> type == XD3_CPY ) {\n * rptr ++ = '@' ;\n snprintf_func ( rptr , rbuf + TESTBUFSIZE - rptr , \"%\" Q \"d\" , inst -> addr ) ;\n rptr += strlen ( rptr ) ;\n }\n * rptr ++ = ' ' ;\n xd3_rlist_push_back ( & stream -> iopt_free , inst ) ;\n }\n if ( rptr != rbuf ) {\n rptr -= 1 ;\n * rptr = 0 ;\n }\n if ( strcmp ( rbuf , test -> result ) != 0 ) {\n XPR ( NT \"test %u: expected %s: got %s\" , i , test -> result , rbuf ) ;\n stream -> msg = \"wrong result\" ;\n return XD3_INTERNAL ;\n }\n }\n return 0 ;\n }"}
{"idx": 13939, "target": 0, "func": "static float * calc_hist ( const float4 * hist , int nhist , int n ) {\n float * hist_part ;\n int k , i = 0 ;\n float prev_interval = 0 , next_interval ;\n float frac ;\n hist_part = ( float * ) palloc ( ( n + 1 ) * sizeof ( float ) ) ;\n frac = 1.0f / ( ( float ) ( nhist - 1 ) ) ;\n for ( k = 0 ;\n k <= n ;\n k ++ ) {\n int count = 0 ;\n while ( i < nhist && hist [ i ] <= k ) {\n count ++ ;\n i ++ ;\n }\n if ( count > 0 ) {\n float val ;\n if ( i < nhist ) next_interval = hist [ i ] - hist [ i - 1 ] ;\n else next_interval = 0 ;\n val = ( float ) ( count - 1 ) ;\n if ( next_interval > 0 ) val += 0.5f / next_interval ;\n if ( prev_interval > 0 ) val += 0.5f / prev_interval ;\n hist_part [ k ] = frac * val ;\n prev_interval = next_interval ;\n }\n else {\n if ( prev_interval > 0 ) hist_part [ k ] = frac / prev_interval ;\n else hist_part [ k ] = 0.0f ;\n }\n }\n return hist_part ;\n }"}
{"idx": 13940, "target": 0, "func": "static void ohci_port_power ( OHCIState * ohci , int i , int p ) {\n if ( p ) {\n ohci -> rhport [ i ] . ctrl |= OHCI_PORT_PPS ;\n }\n else {\n ohci -> rhport [ i ] . ctrl &= ~ ( OHCI_PORT_PPS | OHCI_PORT_CCS | OHCI_PORT_PSS | OHCI_PORT_PRS ) ;\n }\n }"}
{"idx": 13941, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n Indeo3DecodeContext * ctx = avctx -> priv_data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n int res ;\n res = decode_frame_headers ( ctx , avctx , buf , buf_size ) ;\n if ( res < 0 ) return res ;\n if ( res ) {\n * got_frame = 0 ;\n return buf_size ;\n }\n if ( ctx -> frame_flags & BS_NONREF && ( avctx -> skip_frame >= AVDISCARD_NONREF ) ) return 0 ;\n if ( ! ( ctx -> frame_flags & BS_KEYFRAME ) && avctx -> skip_frame >= AVDISCARD_NONKEY ) return 0 ;\n ctx -> buf_sel = ( ctx -> frame_flags >> BS_BUFFER ) & 1 ;\n if ( ( res = decode_plane ( ctx , avctx , ctx -> planes , ctx -> y_data_ptr , ctx -> y_data_size , 40 ) ) ) return res ;\n if ( ( res = decode_plane ( ctx , avctx , & ctx -> planes [ 1 ] , ctx -> u_data_ptr , ctx -> u_data_size , 10 ) ) ) return res ;\n if ( ( res = decode_plane ( ctx , avctx , & ctx -> planes [ 2 ] , ctx -> v_data_ptr , ctx -> v_data_size , 10 ) ) ) return res ;\n if ( ctx -> frame . data [ 0 ] ) avctx -> release_buffer ( avctx , & ctx -> frame ) ;\n ctx -> frame . reference = 0 ;\n if ( ( res = ff_get_buffer ( avctx , & ctx -> frame ) ) < 0 ) {\n av_log ( ctx -> avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return res ;\n }\n output_plane ( & ctx -> planes [ 0 ] , ctx -> buf_sel , ctx -> frame . data [ 0 ] , ctx -> frame . linesize [ 0 ] , avctx -> height ) ;\n output_plane ( & ctx -> planes [ 1 ] , ctx -> buf_sel , ctx -> frame . data [ 1 ] , ctx -> frame . linesize [ 1 ] , ( avctx -> height + 3 ) >> 2 ) ;\n output_plane ( & ctx -> planes [ 2 ] , ctx -> buf_sel , ctx -> frame . data [ 2 ] , ctx -> frame . linesize [ 2 ] , ( avctx -> height + 3 ) >> 2 ) ;\n * got_frame = 1 ;\n * ( AVFrame * ) data = ctx -> frame ;\n return buf_size ;\n }"}
{"idx": 13942, "target": 1, "func": "file_transfer_t * imcb_file_send_start ( struct im_connection * ic , char * handle , char * file_name , size_t file_size ) {\n bee_t * bee = ic -> bee ;\n bee_user_t * bu = bee_user_by_handle ( bee , ic , handle ) ;\n if ( bee -> ui -> ft_in_start ) {\n return bee -> ui -> ft_in_start ( bee , bu , file_name , file_size ) ;\n }\n else {\n return NULL ;\n }\n }"}
{"idx": 13943, "target": 1, "func": "int vp8_denoiser_filter_c ( unsigned char * mc_running_avg_y , int mc_avg_y_stride , unsigned char * running_avg_y , int avg_y_stride , unsigned char * sig , int sig_stride , unsigned int motion_magnitude , int increase_denoising ) {\n unsigned char * running_avg_y_start = running_avg_y ;\n unsigned char * sig_start = sig ;\n int sum_diff_thresh ;\n int r , c ;\n int sum_diff = 0 ;\n int adj_val [ 3 ] = {\n 3 , 4 , 6 }\n ;\n int shift_inc1 = 0 ;\n int shift_inc2 = 1 ;\n if ( motion_magnitude <= MOTION_MAGNITUDE_THRESHOLD ) {\n if ( increase_denoising ) {\n shift_inc1 = 1 ;\n shift_inc2 = 2 ;\n }\n adj_val [ 0 ] += shift_inc2 ;\n adj_val [ 1 ] += shift_inc2 ;\n adj_val [ 2 ] += shift_inc2 ;\n }\n for ( r = 0 ;\n r < 16 ;\n ++ r ) {\n for ( c = 0 ;\n c < 16 ;\n ++ c ) {\n int diff = 0 ;\n int adjustment = 0 ;\n int absdiff = 0 ;\n diff = mc_running_avg_y [ c ] - sig [ c ] ;\n absdiff = abs ( diff ) ;\n if ( absdiff <= 3 + shift_inc1 ) {\n running_avg_y [ c ] = mc_running_avg_y [ c ] ;\n sum_diff += diff ;\n }\n else {\n if ( absdiff >= 4 && absdiff <= 7 ) adjustment = adj_val [ 0 ] ;\n else if ( absdiff >= 8 && absdiff <= 15 ) adjustment = adj_val [ 1 ] ;\n else adjustment = adj_val [ 2 ] ;\n if ( diff > 0 ) {\n if ( ( sig [ c ] + adjustment ) > 255 ) running_avg_y [ c ] = 255 ;\n else running_avg_y [ c ] = sig [ c ] + adjustment ;\n sum_diff += adjustment ;\n }\n else {\n if ( ( sig [ c ] - adjustment ) < 0 ) running_avg_y [ c ] = 0 ;\n else running_avg_y [ c ] = sig [ c ] - adjustment ;\n sum_diff -= adjustment ;\n }\n }\n }\n sig += sig_stride ;\n mc_running_avg_y += mc_avg_y_stride ;\n running_avg_y += avg_y_stride ;\n }\n sum_diff_thresh = SUM_DIFF_THRESHOLD ;\n if ( increase_denoising ) sum_diff_thresh = SUM_DIFF_THRESHOLD_HIGH ;\n if ( abs ( sum_diff ) > sum_diff_thresh ) {\n int delta = ( ( abs ( sum_diff ) - sum_diff_thresh ) >> 8 ) + 1 ;\n if ( delta < 4 ) {\n sig -= sig_stride * 16 ;\n mc_running_avg_y -= mc_avg_y_stride * 16 ;\n running_avg_y -= avg_y_stride * 16 ;\n for ( r = 0 ;\n r < 16 ;\n ++ r ) {\n for ( c = 0 ;\n c < 16 ;\n ++ c ) {\n int diff = mc_running_avg_y [ c ] - sig [ c ] ;\n int adjustment = abs ( diff ) ;\n if ( adjustment > delta ) adjustment = delta ;\n if ( diff > 0 ) {\n if ( running_avg_y [ c ] - adjustment < 0 ) running_avg_y [ c ] = 0 ;\n else running_avg_y [ c ] = running_avg_y [ c ] - adjustment ;\n sum_diff -= adjustment ;\n }\n else if ( diff < 0 ) {\n if ( running_avg_y [ c ] + adjustment > 255 ) running_avg_y [ c ] = 255 ;\n else running_avg_y [ c ] = running_avg_y [ c ] + adjustment ;\n sum_diff += adjustment ;\n }\n }\n sig += sig_stride ;\n mc_running_avg_y += mc_avg_y_stride ;\n running_avg_y += avg_y_stride ;\n }\n if ( abs ( sum_diff ) > sum_diff_thresh ) return COPY_BLOCK ;\n }\n else {\n return COPY_BLOCK ;\n }\n }\n vp8_copy_mem16x16 ( running_avg_y_start , avg_y_stride , sig_start , sig_stride ) ;\n return FILTER_BLOCK ;\n }"}
{"idx": 13944, "target": 0, "func": "static UChar32 U_CALLCONV _UTF16LEGetNextUChar ( UConverterToUnicodeArgs * pArgs , UErrorCode * err ) {\n const uint8_t * s , * sourceLimit ;\n UChar32 c ;\n if ( pArgs -> converter -> mode < 8 ) {\n return UCNV_GET_NEXT_UCHAR_USE_TO_U ;\n }\n s = ( const uint8_t * ) pArgs -> source ;\n sourceLimit = ( const uint8_t * ) pArgs -> sourceLimit ;\n if ( s >= sourceLimit ) {\n * err = U_INDEX_OUTOFBOUNDS_ERROR ;\n return 0xffff ;\n }\n if ( s + 2 > sourceLimit ) {\n pArgs -> converter -> toUBytes [ 0 ] = * s ++ ;\n pArgs -> converter -> toULength = 1 ;\n pArgs -> source = ( const char * ) s ;\n * err = U_TRUNCATED_CHAR_FOUND ;\n return 0xffff ;\n }\n c = ( ( UChar32 ) s [ 1 ] << 8 ) | * s ;\n s += 2 ;\n if ( U_IS_SURROGATE ( c ) ) {\n if ( U16_IS_SURROGATE_LEAD ( c ) ) {\n if ( s + 2 <= sourceLimit ) {\n UChar trail ;\n trail = ( ( UChar ) s [ 1 ] << 8 ) | * s ;\n if ( U16_IS_TRAIL ( trail ) ) {\n c = U16_GET_SUPPLEMENTARY ( c , trail ) ;\n s += 2 ;\n }\n else {\n c = - 2 ;\n }\n }\n else {\n uint8_t * bytes = pArgs -> converter -> toUBytes ;\n s -= 2 ;\n pArgs -> converter -> toULength = ( int8_t ) ( sourceLimit - s ) ;\n do {\n * bytes ++ = * s ++ ;\n }\n while ( s < sourceLimit ) ;\n c = 0xffff ;\n * err = U_TRUNCATED_CHAR_FOUND ;\n }\n }\n else {\n c = - 2 ;\n }\n if ( c < 0 ) {\n uint8_t * bytes = pArgs -> converter -> toUBytes ;\n pArgs -> converter -> toULength = 2 ;\n * bytes = * ( s - 2 ) ;\n bytes [ 1 ] = * ( s - 1 ) ;\n c = 0xffff ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n pArgs -> source = ( const char * ) s ;\n return c ;\n }"}
{"idx": 13945, "target": 0, "func": "static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING )"}
{"idx": 13946, "target": 0, "func": "static int dissect_h225_ParallelH245Control ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_ParallelH245Control , ParallelH245Control_sequence_of ) ;\n return offset ;\n }"}
{"idx": 13947, "target": 0, "func": "static void free_deregistered_field ( gpointer data , gpointer user_data _U_ ) {\n header_field_info * hfi = ( header_field_info * ) data ;\n gint hf_id = hfi -> id ;\n g_free ( ( char * ) hfi -> name ) ;\n g_free ( ( char * ) hfi -> abbrev ) ;\n g_free ( ( char * ) hfi -> blurb ) ;\n if ( hfi -> strings ) {\n switch ( hfi -> type ) {\n case FT_FRAMENUM : break ;\n case FT_PROTOCOL : {\n protocol_t * protocol = ( protocol_t * ) hfi -> strings ;\n g_free ( ( gchar * ) protocol -> short_name ) ;\n break ;\n }\n case FT_BOOLEAN : {\n true_false_string * tf = ( true_false_string * ) hfi -> strings ;\n g_free ( ( gchar * ) tf -> true_string ) ;\n g_free ( ( gchar * ) tf -> false_string ) ;\n break ;\n }\n case FT_UINT64 : case FT_INT64 : {\n val64_string * vs64 = ( val64_string * ) hfi -> strings ;\n while ( vs64 -> strptr ) {\n g_free ( ( gchar * ) vs64 -> strptr ) ;\n vs64 ++ ;\n }\n break ;\n }\n default : {\n value_string * vs = ( value_string * ) hfi -> strings ;\n while ( vs -> strptr ) {\n g_free ( ( gchar * ) vs -> strptr ) ;\n vs ++ ;\n }\n break ;\n }\n }\n if ( hfi -> type != FT_FRAMENUM ) {\n g_free ( ( void * ) hfi -> strings ) ;\n }\n }\n if ( hfi -> parent == - 1 ) g_slice_free ( header_field_info , hfi ) ;\n gpa_hfinfo . hfi [ hf_id ] = NULL ;\n }"}
{"idx": 13948, "target": 0, "func": "static void split_print_po ( struct packet_object * po ) {\n int ret ;\n if ( ! data_window ) return ;\n if ( GBL_OPTIONS -> regex && regexec ( GBL_OPTIONS -> regex , po -> DATA . disp_data , 0 , NULL , 0 ) != 0 ) {\n return ;\n }\n SAFE_REALLOC ( dispbuf , hex_len ( po -> DATA . disp_len ) * sizeof ( u_char ) + 1 ) ;\n ret = GBL_FORMAT ( po -> DATA . disp_data , po -> DATA . disp_len , dispbuf ) ;\n dispbuf [ ret ] = 0 ;\n if ( ! ip_addr_cmp ( & po -> L3 . src , & curr_conn -> L3_addr1 ) ) gtkui_data_print ( 1 , dispbuf , 0 ) ;\n else gtkui_data_print ( 2 , dispbuf , 0 ) ;\n }"}
{"idx": 13949, "target": 0, "func": "static void cmd_names ( const char * data , SERVER_REC * server , WI_ITEM_REC * item ) {\n CHANNEL_REC * chanrec ;\n GHashTable * optlist ;\n GString * unknowns ;\n char * channel , * * channels , * * tmp ;\n int flags ;\n void * free_arg ;\n g_return_if_fail ( data != NULL ) ;\n if ( ! IS_SERVER ( server ) || ! server -> connected ) cmd_return_error ( CMDERR_NOT_CONNECTED ) ;\n if ( ! cmd_get_params ( data , & free_arg , 1 | PARAM_FLAG_OPTIONS , \"names\" , & optlist , & channel ) ) return ;\n if ( g_strcmp0 ( channel , \"*\" ) == 0 || * channel == '\\0' ) {\n if ( ! IS_CHANNEL ( item ) ) cmd_param_error ( CMDERR_NOT_JOINED ) ;\n channel = CHANNEL ( item ) -> name ;\n }\n flags = 0 ;\n if ( g_hash_table_lookup ( optlist , \"ops\" ) != NULL ) flags |= CHANNEL_NICKLIST_FLAG_OPS ;\n if ( g_hash_table_lookup ( optlist , \"halfops\" ) != NULL ) flags |= CHANNEL_NICKLIST_FLAG_HALFOPS ;\n if ( g_hash_table_lookup ( optlist , \"voices\" ) != NULL ) flags |= CHANNEL_NICKLIST_FLAG_VOICES ;\n if ( g_hash_table_lookup ( optlist , \"normal\" ) != NULL ) flags |= CHANNEL_NICKLIST_FLAG_NORMAL ;\n if ( g_hash_table_lookup ( optlist , \"count\" ) != NULL ) flags |= CHANNEL_NICKLIST_FLAG_COUNT ;\n if ( flags == 0 ) flags = CHANNEL_NICKLIST_FLAG_ALL ;\n unknowns = g_string_new ( NULL ) ;\n channels = g_strsplit ( channel , \",\" , - 1 ) ;\n for ( tmp = channels ;\n * tmp != NULL ;\n tmp ++ ) {\n chanrec = channel_find ( server , * tmp ) ;\n if ( chanrec == NULL ) g_string_append_printf ( unknowns , \"%s,\" , * tmp ) ;\n else {\n fe_channels_nicklist ( chanrec , flags ) ;\n signal_stop ( ) ;\n }\n }\n g_strfreev ( channels ) ;\n if ( unknowns -> len > 1 ) g_string_truncate ( unknowns , unknowns -> len - 1 ) ;\n if ( unknowns -> len > 0 && g_strcmp0 ( channel , unknowns -> str ) != 0 ) signal_emit ( \"command names\" , 3 , unknowns -> str , server , item ) ;\n g_string_free ( unknowns , TRUE ) ;\n cmd_params_free ( free_arg ) ;\n }"}
{"idx": 13950, "target": 0, "func": "static int dissect_h225_GatekeeperInfo ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_GatekeeperInfo , GatekeeperInfo_sequence ) ;\n return offset ;\n }"}
{"idx": 13951, "target": 0, "func": "static const char * cmd_rule_update_action_by_id ( cmd_parms * cmd , void * _dcfg , const char * p1 , const char * p2 ) {\n int offset = 0 , rule_id = atoi ( p1 ) ;\n char * opt = strchr ( p1 , ':' ) ;\n char * savedptr = NULL ;\n char * param = apr_pstrdup ( cmd -> pool , p1 ) ;\n if ( ( rule_id == LONG_MAX ) || ( rule_id == LONG_MIN ) || ( rule_id <= 0 ) ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid value for ID for update action: %s\" , p1 ) ;\n }\n if ( opt != NULL ) {\n opt ++ ;\n offset = atoi ( opt ) ;\n opt = apr_strtok ( param , \":\" , & savedptr ) ;\n return update_rule_action ( cmd , ( directory_config * ) _dcfg , ( const char * ) opt , p2 , offset ) ;\n }\n return update_rule_action ( cmd , ( directory_config * ) _dcfg , p1 , p2 , offset ) ;\n }"}
{"idx": 13952, "target": 0, "func": "static inline int get_bs ( cavs_vector * mvP , cavs_vector * mvQ , int b ) {\n if ( ( mvP -> ref == REF_INTRA ) || ( mvQ -> ref == REF_INTRA ) ) return 2 ;\n if ( ( abs ( mvP -> x - mvQ -> x ) >= 4 ) || ( abs ( mvP -> y - mvQ -> y ) >= 4 ) ) return 1 ;\n if ( b ) {\n mvP += MV_BWD_OFFS ;\n mvQ += MV_BWD_OFFS ;\n if ( ( abs ( mvP -> x - mvQ -> x ) >= 4 ) || ( abs ( mvP -> y - mvQ -> y ) >= 4 ) ) return 1 ;\n }\n else {\n if ( mvP -> ref != mvQ -> ref ) return 1 ;\n }\n return 0 ;\n }"}
{"idx": 13953, "target": 0, "func": "static void e1000e_set_eewr ( E1000ECore * core , int index , uint32_t val ) {\n uint32_t addr = ( val >> E1000_EERW_ADDR_SHIFT ) & E1000_EERW_ADDR_MASK ;\n uint32_t data = ( val >> E1000_EERW_DATA_SHIFT ) & E1000_EERW_DATA_MASK ;\n uint32_t flags = 0 ;\n if ( ( addr < E1000E_EEPROM_SIZE ) && ( val & E1000_EERW_START ) ) {\n core -> eeprom [ addr ] = data ;\n flags = E1000_EERW_DONE ;\n }\n core -> mac [ EERD ] = flags | ( addr << E1000_EERW_ADDR_SHIFT ) | ( data << E1000_EERW_DATA_SHIFT ) ;\n }"}
{"idx": 13954, "target": 0, "func": "static uint get_table_structure ( char * table , char * db , char * table_type , char * ignore_flag ) {\n my_bool init = 0 , delayed , write_data , complete_insert ;\n my_ulonglong num_fields ;\n char * result_table , * opt_quoted_table ;\n const char * insert_option ;\n char name_buff [ NAME_LEN + 3 ] , table_buff [ NAME_LEN * 2 + 3 ] ;\n char table_buff2 [ NAME_LEN * 2 + 3 ] , query_buff [ QUERY_LENGTH ] ;\n const char * show_fields_stmt = \"SELECT `COLUMN_NAME` AS `Field`, \" \"`COLUMN_TYPE` AS `Type`, \" \"`IS_NULLABLE` AS `Null`, \" \"`COLUMN_KEY` AS `Key`, \" \"`COLUMN_DEFAULT` AS `Default`, \" \"`EXTRA` AS `Extra`, \" \"`COLUMN_COMMENT` AS `Comment` \" \"FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE \" \"TABLE_SCHEMA = '%s' AND TABLE_NAME = '%s'\" ;\n FILE * sql_file = md_result_file ;\n int len ;\n my_bool is_log_table ;\n MYSQL_RES * result ;\n MYSQL_ROW row ;\n DBUG_ENTER ( \"get_table_structure\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"db: %s table: %s\" , db , table ) ) ;\n * ignore_flag = check_if_ignore_table ( table , table_type ) ;\n delayed = opt_delayed ;\n if ( delayed && ( * ignore_flag & IGNORE_INSERT_DELAYED ) ) {\n delayed = 0 ;\n verbose_msg ( \"-- Warning: Unable to use delayed inserts for table '%s' \" \"because it's of type %s\\n\" , table , table_type ) ;\n }\n complete_insert = 0 ;\n if ( ( write_data = ! ( * ignore_flag & IGNORE_DATA ) ) ) {\n complete_insert = opt_complete_insert ;\n if ( ! insert_pat_inited ) {\n insert_pat_inited = 1 ;\n init_dynamic_string_checked ( & insert_pat , \"\" , 1024 , 1024 ) ;\n }\n else dynstr_set_checked ( & insert_pat , \"\" ) ;\n }\n insert_option = ( ( delayed && opt_ignore ) ? \" DELAYED IGNORE \" : delayed ? \" DELAYED \" : opt_ignore ? \" IGNORE \" : \"\" ) ;\n verbose_msg ( \"-- Retrieving table structure for table %s...\\n\" , table ) ;\n len = my_snprintf ( query_buff , sizeof ( query_buff ) , \"SET SQL_QUOTE_SHOW_CREATE=%d\" , ( opt_quoted || opt_keywords ) ) ;\n if ( ! create_options ) strmov ( query_buff + len , \"/*!40102 ,SQL_MODE=concat(@@sql_mode, _utf8 ',NO_KEY_OPTIONS,NO_TABLE_OPTIONS,NO_FIELD_OPTIONS') */\" ) ;\n result_table = quote_name ( table , table_buff , 1 ) ;\n opt_quoted_table = quote_name ( table , table_buff2 , 0 ) ;\n if ( opt_order_by_primary ) order_by = primary_key_fields ( result_table ) ;\n if ( ! opt_xml && ! mysql_query_with_error_report ( mysql , 0 , query_buff ) ) {\n if ( ! opt_no_create_info ) {\n char buff [ 20 + FN_REFLEN ] ;\n MYSQL_FIELD * field ;\n my_snprintf ( buff , sizeof ( buff ) , \"show create table %s\" , result_table ) ;\n if ( switch_character_set_results ( mysql , \"binary\" ) || mysql_query_with_error_report ( mysql , & result , buff ) || switch_character_set_results ( mysql , default_charset ) ) DBUG_RETURN ( 0 ) ;\n if ( path ) {\n if ( ! ( sql_file = open_sql_file_for_table ( table , O_WRONLY ) ) ) DBUG_RETURN ( 0 ) ;\n write_header ( sql_file , db ) ;\n }\n if ( strcmp ( table_type , \"VIEW\" ) == 0 ) print_comment ( sql_file , 0 , \"\\n--\\n-- Temporary table structure for view %s\\n--\\n\\n\" , fix_for_comment ( result_table ) ) ;\n else print_comment ( sql_file , 0 , \"\\n--\\n-- Table structure for table %s\\n--\\n\\n\" , fix_for_comment ( result_table ) ) ;\n if ( opt_drop ) {\n if ( ! general_log_or_slow_log_tables ( db , table ) ) fprintf ( sql_file , \"DROP TABLE IF EXISTS %s;\n\\n\" , opt_quoted_table ) ;\n check_io ( sql_file ) ;\n }\n field = mysql_fetch_field_direct ( result , 0 ) ;\n if ( strcmp ( field -> name , \"View\" ) == 0 ) {\n char * scv_buff = NULL ;\n my_ulonglong n_cols ;\n verbose_msg ( \"-- It's a view, create dummy table for view\\n\" ) ;\n if ( ( row = mysql_fetch_row ( result ) ) && ( scv_buff = row [ 1 ] ) ) scv_buff = my_strdup ( scv_buff , MYF ( 0 ) ) ;\n mysql_free_result ( result ) ;\n my_snprintf ( query_buff , sizeof ( query_buff ) , \"SHOW FIELDS FROM %s\" , result_table ) ;\n if ( switch_character_set_results ( mysql , \"binary\" ) || mysql_query_with_error_report ( mysql , & result , query_buff ) || switch_character_set_results ( mysql , default_charset ) ) {\n if ( mysql_errno ( mysql ) == ER_VIEW_INVALID ) fprintf ( sql_file , \"\\n-- failed on view %s: %s\\n\\n\" , result_table , scv_buff ? scv_buff : \"\" ) ;\n my_free ( scv_buff ) ;\n DBUG_RETURN ( 0 ) ;\n }\n else my_free ( scv_buff ) ;\n n_cols = mysql_num_rows ( result ) ;\n if ( 0 != n_cols ) {\n if ( n_cols >= 1000 ) fprintf ( stderr , \"-- Warning: Creating a stand-in table for view %s may\" \" fail when replaying the dump file produced because \" \"of the number of columns exceeding 1000. Exercise \" \"caution when replaying the produced dump file.\\n\" , table ) ;\n if ( opt_drop ) {\n fprintf ( sql_file , \"/*!50001 DROP VIEW IF EXISTS %s*/;\n\\n\" , opt_quoted_table ) ;\n check_io ( sql_file ) ;\n }\n fprintf ( sql_file , \"SET @saved_cs_client = @@character_set_client;\n\\n\" \"SET character_set_client = utf8;\n\\n\" \"/*!50001 CREATE TABLE %s (\\n\" , result_table ) ;\n row = mysql_fetch_row ( result ) ;\n fprintf ( sql_file , \" %s tinyint NOT NULL\" , quote_name ( row [ 0 ] , name_buff , 0 ) ) ;\n while ( ( row = mysql_fetch_row ( result ) ) ) {\n fprintf ( sql_file , \",\\n %s tinyint NOT NULL\" , quote_name ( row [ 0 ] , name_buff , 0 ) ) ;\n }\n fprintf ( sql_file , \"\\n) ENGINE=MyISAM */;\n\\n\" \"SET character_set_client = @saved_cs_client;\n\\n\" ) ;\n check_io ( sql_file ) ;\n }\n mysql_free_result ( result ) ;\n if ( path ) my_fclose ( sql_file , MYF ( MY_WME ) ) ;\n seen_views = 1 ;\n DBUG_RETURN ( 0 ) ;\n }\n row = mysql_fetch_row ( result ) ;\n is_log_table = general_log_or_slow_log_tables ( db , table ) ;\n if ( is_log_table ) row [ 1 ] += 13 ;\n if ( opt_compatible_mode & 3 ) {\n fprintf ( sql_file , is_log_table ? \"CREATE TABLE IF NOT EXISTS %s;\n\\n\" : \"%s;\n\\n\" , row [ 1 ] ) ;\n }\n else {\n fprintf ( sql_file , \"/*!40101 SET @saved_cs_client = @@character_set_client */;\n\\n\" \"/*!40101 SET character_set_client = utf8 */;\n\\n\" \"%s%s;\n\\n\" \"/*!40101 SET character_set_client = @saved_cs_client */;\n\\n\" , is_log_table ? \"CREATE TABLE IF NOT EXISTS \" : \"\" , row [ 1 ] ) ;\n }\n check_io ( sql_file ) ;\n mysql_free_result ( result ) ;\n }\n my_snprintf ( query_buff , sizeof ( query_buff ) , \"show fields from %s\" , result_table ) ;\n if ( mysql_query_with_error_report ( mysql , & result , query_buff ) ) {\n if ( path ) my_fclose ( sql_file , MYF ( MY_WME ) ) ;\n DBUG_RETURN ( 0 ) ;\n }\n if ( write_data ) {\n if ( opt_replace_into ) dynstr_append_checked ( & insert_pat , \"REPLACE \" ) ;\n else dynstr_append_checked ( & insert_pat , \"INSERT \" ) ;\n dynstr_append_checked ( & insert_pat , insert_option ) ;\n dynstr_append_checked ( & insert_pat , \"INTO \" ) ;\n dynstr_append_checked ( & insert_pat , opt_quoted_table ) ;\n if ( complete_insert ) {\n dynstr_append_checked ( & insert_pat , \" (\" ) ;\n }\n else {\n dynstr_append_checked ( & insert_pat , \" VALUES \" ) ;\n if ( ! extended_insert ) dynstr_append_checked ( & insert_pat , \"(\" ) ;\n }\n }\n while ( ( row = mysql_fetch_row ( result ) ) ) {\n if ( complete_insert ) {\n if ( init ) {\n dynstr_append_checked ( & insert_pat , \", \" ) ;\n }\n init = 1 ;\n dynstr_append_checked ( & insert_pat , quote_name ( row [ SHOW_FIELDNAME ] , name_buff , 0 ) ) ;\n }\n }\n num_fields = mysql_num_rows ( result ) ;\n mysql_free_result ( result ) ;\n }\n else {\n verbose_msg ( \"%s: Warning: Can't set SQL_QUOTE_SHOW_CREATE option (%s)\\n\" , my_progname_short , mysql_error ( mysql ) ) ;\n my_snprintf ( query_buff , sizeof ( query_buff ) , show_fields_stmt , db , table ) ;\n if ( mysql_query_with_error_report ( mysql , & result , query_buff ) ) DBUG_RETURN ( 0 ) ;\n if ( ! opt_no_create_info ) {\n if ( path ) {\n if ( ! ( sql_file = open_sql_file_for_table ( table , O_WRONLY ) ) ) DBUG_RETURN ( 0 ) ;\n write_header ( sql_file , db ) ;\n }\n print_comment ( sql_file , 0 , \"\\n--\\n-- Table structure for table %s\\n--\\n\\n\" , fix_for_comment ( result_table ) ) ;\n if ( opt_drop ) fprintf ( sql_file , \"DROP TABLE IF EXISTS %s;\n\\n\" , result_table ) ;\n if ( ! opt_xml ) fprintf ( sql_file , \"CREATE TABLE %s (\\n\" , result_table ) ;\n else print_xml_tag ( sql_file , \"\\t\" , \"\\n\" , \"table_structure\" , \"name=\" , table , NullS ) ;\n check_io ( sql_file ) ;\n }\n if ( write_data ) {\n if ( opt_replace_into ) dynstr_append_checked ( & insert_pat , \"REPLACE \" ) ;\n else dynstr_append_checked ( & insert_pat , \"INSERT \" ) ;\n dynstr_append_checked ( & insert_pat , insert_option ) ;\n dynstr_append_checked ( & insert_pat , \"INTO \" ) ;\n dynstr_append_checked ( & insert_pat , result_table ) ;\n if ( complete_insert ) dynstr_append_checked ( & insert_pat , \" (\" ) ;\n else {\n dynstr_append_checked ( & insert_pat , \" VALUES \" ) ;\n if ( ! extended_insert ) dynstr_append_checked ( & insert_pat , \"(\" ) ;\n }\n }\n while ( ( row = mysql_fetch_row ( result ) ) ) {\n ulong * lengths = mysql_fetch_lengths ( result ) ;\n if ( init ) {\n if ( ! opt_xml && ! opt_no_create_info ) {\n fputs ( \",\\n\" , sql_file ) ;\n check_io ( sql_file ) ;\n }\n if ( complete_insert ) dynstr_append_checked ( & insert_pat , \", \" ) ;\n }\n init = 1 ;\n if ( complete_insert ) dynstr_append_checked ( & insert_pat , quote_name ( row [ SHOW_FIELDNAME ] , name_buff , 0 ) ) ;\n if ( ! opt_no_create_info ) {\n if ( opt_xml ) {\n print_xml_row ( sql_file , \"field\" , result , & row , NullS ) ;\n continue ;\n }\n if ( opt_keywords ) fprintf ( sql_file , \" %s.%s %s\" , result_table , quote_name ( row [ SHOW_FIELDNAME ] , name_buff , 0 ) , row [ SHOW_TYPE ] ) ;\n else fprintf ( sql_file , \" %s %s\" , quote_name ( row [ SHOW_FIELDNAME ] , name_buff , 0 ) , row [ SHOW_TYPE ] ) ;\n if ( row [ SHOW_DEFAULT ] ) {\n fputs ( \" DEFAULT \" , sql_file ) ;\n unescape ( sql_file , row [ SHOW_DEFAULT ] , lengths [ SHOW_DEFAULT ] ) ;\n }\n if ( ! row [ SHOW_NULL ] [ 0 ] ) fputs ( \" NOT NULL\" , sql_file ) ;\n if ( row [ SHOW_EXTRA ] [ 0 ] ) fprintf ( sql_file , \" %s\" , row [ SHOW_EXTRA ] ) ;\n check_io ( sql_file ) ;\n }\n }\n num_fields = mysql_num_rows ( result ) ;\n mysql_free_result ( result ) ;\n if ( ! opt_no_create_info ) {\n char buff [ 20 + FN_REFLEN ] ;\n uint keynr , primary_key ;\n my_snprintf ( buff , sizeof ( buff ) , \"show keys from %s\" , result_table ) ;\n if ( mysql_query_with_error_report ( mysql , & result , buff ) ) {\n if ( mysql_errno ( mysql ) == ER_WRONG_OBJECT ) {\n fputs ( \"\\t\\t<options Comment=\\\"view\\\" />\\n\" , sql_file ) ;\n goto continue_xml ;\n }\n fprintf ( stderr , \"%s: Can't get keys for table %s (%s)\\n\" , my_progname_short , result_table , mysql_error ( mysql ) ) ;\n if ( path ) my_fclose ( sql_file , MYF ( MY_WME ) ) ;\n DBUG_RETURN ( 0 ) ;\n }\n keynr = 0 ;\n primary_key = INT_MAX ;\n while ( ( row = mysql_fetch_row ( result ) ) ) {\n if ( atoi ( row [ 3 ] ) == 1 ) {\n keynr ++ ;\n # ifdef FORCE_PRIMARY_KEY if ( atoi ( row [ 1 ] ) == 0 && primary_key == INT_MAX ) primary_key = keynr ;\n # endif if ( ! strcmp ( row [ 2 ] , \"PRIMARY\" ) ) {\n primary_key = keynr ;\n break ;\n }\n }\n }\n mysql_data_seek ( result , 0 ) ;\n keynr = 0 ;\n while ( ( row = mysql_fetch_row ( result ) ) ) {\n if ( opt_xml ) {\n print_xml_row ( sql_file , \"key\" , result , & row , NullS ) ;\n continue ;\n }\n if ( atoi ( row [ 3 ] ) == 1 ) {\n if ( keynr ++ ) putc ( ')' , sql_file ) ;\n if ( atoi ( row [ 1 ] ) ) fprintf ( sql_file , \",\\n KEY %s (\" , quote_name ( row [ 2 ] , name_buff , 0 ) ) ;\n else if ( keynr == primary_key ) fputs ( \",\\n PRIMARY KEY (\" , sql_file ) ;\n else fprintf ( sql_file , \",\\n UNIQUE %s (\" , quote_name ( row [ 2 ] , name_buff , 0 ) ) ;\n }\n else putc ( ',' , sql_file ) ;\n fputs ( quote_name ( row [ 4 ] , name_buff , 0 ) , sql_file ) ;\n if ( row [ 7 ] ) fprintf ( sql_file , \" (%s)\" , row [ 7 ] ) ;\n check_io ( sql_file ) ;\n }\n mysql_free_result ( result ) ;\n if ( ! opt_xml ) {\n if ( keynr ) putc ( ')' , sql_file ) ;\n fputs ( \"\\n)\" , sql_file ) ;\n check_io ( sql_file ) ;\n }\n if ( create_options ) {\n char show_name_buff [ NAME_LEN * 2 + 2 + 24 ] ;\n my_snprintf ( buff , sizeof ( buff ) , \"show table status like %s\" , quote_for_like ( table , show_name_buff ) ) ;\n if ( mysql_query_with_error_report ( mysql , & result , buff ) ) {\n if ( mysql_errno ( mysql ) != ER_PARSE_ERROR ) {\n verbose_msg ( \"-- Warning: Couldn't get status information for \" \"table %s (%s)\\n\" , result_table , mysql_error ( mysql ) ) ;\n }\n }\n else if ( ! ( row = mysql_fetch_row ( result ) ) ) {\n fprintf ( stderr , \"Error: Couldn't read status information for table %s (%s)\\n\" , result_table , mysql_error ( mysql ) ) ;\n }\n else {\n if ( opt_xml ) print_xml_row ( sql_file , \"options\" , result , & row , NullS ) ;\n else {\n fputs ( \"/*!\" , sql_file ) ;\n print_value ( sql_file , result , row , \"engine=\" , \"Engine\" , 0 ) ;\n print_value ( sql_file , result , row , \"\" , \"Create_options\" , 0 ) ;\n print_value ( sql_file , result , row , \"comment=\" , \"Comment\" , 1 ) ;\n fputs ( \" */\" , sql_file ) ;\n check_io ( sql_file ) ;\n }\n }\n mysql_free_result ( result ) ;\n }\n continue_xml : if ( ! opt_xml ) fputs ( \";\n\\n\" , sql_file ) ;\n else fputs ( \"\\t</table_structure>\\n\" , sql_file ) ;\n check_io ( sql_file ) ;\n }\n }\n if ( complete_insert ) {\n dynstr_append_checked ( & insert_pat , \") VALUES \" ) ;\n if ( ! extended_insert ) dynstr_append_checked ( & insert_pat , \"(\" ) ;\n }\n if ( sql_file != md_result_file ) {\n fputs ( \"\\n\" , sql_file ) ;\n write_footer ( sql_file ) ;\n my_fclose ( sql_file , MYF ( MY_WME ) ) ;\n }\n DBUG_RETURN ( ( uint ) num_fields ) ;\n }"}
{"idx": 13955, "target": 0, "func": "static void dumpoffset ( FILE * file , int offsize , int val ) {\n if ( offsize == 1 ) putc ( val , file ) ;\n else if ( offsize == 2 ) putshort ( file , val ) ;\n else if ( offsize == 3 ) {\n putc ( ( val >> 16 ) & 0xff , file ) ;\n putc ( ( val >> 8 ) & 0xff , file ) ;\n putc ( val & 0xff , file ) ;\n }\n else putlong ( file , val ) ;\n }"}
{"idx": 13956, "target": 0, "func": "static int remoteStreamFilter ( struct qemud_client * client , struct qemud_client_message * msg , void * opaque ) {\n struct qemud_client_stream * stream = opaque ;\n if ( msg -> hdr . serial == stream -> serial && msg -> hdr . proc == stream -> procedure && msg -> hdr . type == REMOTE_STREAM ) {\n VIR_DEBUG ( \"Incoming rx=%p serial=%d proc=%d status=%d\" , stream -> rx , msg -> hdr . proc , msg -> hdr . serial , msg -> hdr . status ) ;\n if ( stream -> rx ) {\n qemudClientMessageQueuePush ( & stream -> rx , msg ) ;\n remoteStreamUpdateEvents ( stream ) ;\n }\n else {\n int ret = 0 ;\n switch ( msg -> hdr . status ) {\n case REMOTE_OK : ret = remoteStreamHandleFinish ( client , stream , msg ) ;\n if ( ret == 0 ) qemudClientMessageRelease ( client , msg ) ;\n break ;\n case REMOTE_CONTINUE : qemudClientMessageQueuePush ( & stream -> rx , msg ) ;\n remoteStreamUpdateEvents ( stream ) ;\n break ;\n case REMOTE_ERROR : default : ret = remoteStreamHandleAbort ( client , stream , msg ) ;\n if ( ret == 0 ) qemudClientMessageRelease ( client , msg ) ;\n break ;\n }\n if ( ret < 0 ) return - 1 ;\n }\n return 1 ;\n }\n return 0 ;\n }"}
{"idx": 13957, "target": 0, "func": "void SFDefaultOS2Info ( struct pfminfo * pfminfo , SplineFont * sf , char * fontname ) {\n int samewid = - 1 ;\n char * weight = sf -> cidmaster == NULL ? sf -> weight : sf -> cidmaster -> weight ;\n if ( sf -> pfminfo . pfmset ) {\n if ( pfminfo != & sf -> pfminfo ) * pfminfo = sf -> pfminfo ;\n if ( ! pfminfo -> panose_set ) {\n struct pfminfo info ;\n memset ( & info , 0 , sizeof ( info ) ) ;\n sf -> pfminfo . pfmset = false ;\n SFDefaultOS2Info ( & info , sf , fontname ) ;\n sf -> pfminfo . pfmset = true ;\n memcpy ( pfminfo -> panose , info . panose , sizeof ( info . panose ) ) ;\n }\n }\n else {\n struct pfminfo hold ;\n if ( pfminfo -> hheadset || pfminfo -> vheadset ) hold = * pfminfo ;\n else hold . hheadset = hold . vheadset = false ;\n memset ( pfminfo , '\\0' , sizeof ( * pfminfo ) ) ;\n SFDefaultOS2Simple ( pfminfo , sf ) ;\n samewid = CIDOneWidth ( sf ) ;\n pfminfo -> pfmfamily = 0x10 ;\n if ( samewid > 0 ) {\n pfminfo -> pfmfamily = 0x30 ;\n }\n else if ( strstrmatch ( fontname , \"sans\" ) != NULL ) pfminfo -> pfmfamily = 0x20 ;\n else if ( strstrmatch ( fontname , \"script\" ) != NULL ) {\n pfminfo -> pfmfamily = 0x40 ;\n pfminfo -> panose [ 0 ] = 3 ;\n }\n if ( samewid == - 1 ) pfminfo -> pfmfamily |= 0x1 ;\n if ( weight != NULL ) OS2WeightCheck ( pfminfo , weight ) ;\n OS2WeightCheck ( pfminfo , fontname ) ;\n if ( strstrmatch ( fontname , \"ultra\" ) != NULL && strstrmatch ( fontname , \"condensed\" ) != NULL ) {\n pfminfo -> width = 1 ;\n pfminfo -> panose [ 3 ] = 8 ;\n }\n else if ( strstrmatch ( fontname , \"extra\" ) != NULL && strstrmatch ( fontname , \"condensed\" ) != NULL ) {\n pfminfo -> width = 2 ;\n pfminfo -> panose [ 3 ] = 8 ;\n }\n else if ( strstrmatch ( fontname , \"semi\" ) != NULL && strstrmatch ( fontname , \"condensed\" ) != NULL ) {\n pfminfo -> width = 4 ;\n pfminfo -> panose [ 3 ] = 6 ;\n }\n else if ( strstrmatch ( fontname , \"condensed\" ) != NULL || strstrmatch ( fontname , \"narrow\" ) != NULL ) {\n pfminfo -> width = 3 ;\n pfminfo -> panose [ 3 ] = 6 ;\n }\n else if ( strstrmatch ( fontname , \"ultra\" ) != NULL && strstrmatch ( fontname , \"expanded\" ) != NULL ) {\n pfminfo -> width = 9 ;\n pfminfo -> panose [ 3 ] = 7 ;\n }\n else if ( strstrmatch ( fontname , \"extra\" ) != NULL && strstrmatch ( fontname , \"expanded\" ) != NULL ) {\n pfminfo -> width = 8 ;\n pfminfo -> panose [ 3 ] = 7 ;\n }\n else if ( strstrmatch ( fontname , \"semi\" ) != NULL && strstrmatch ( fontname , \"expanded\" ) != NULL ) {\n pfminfo -> width = 6 ;\n pfminfo -> panose [ 3 ] = 5 ;\n }\n else if ( strstrmatch ( fontname , \"expanded\" ) != NULL ) {\n pfminfo -> width = 7 ;\n pfminfo -> panose [ 3 ] = 5 ;\n }\n if ( samewid > 0 ) pfminfo -> panose [ 3 ] = 9 ;\n if ( hold . hheadset ) {\n pfminfo -> hheadset = true ;\n pfminfo -> hheadascent_add = hold . hheadascent_add ;\n pfminfo -> hheaddescent_add = hold . hheaddescent_add ;\n pfminfo -> hhead_ascent = hold . hhead_ascent ;\n pfminfo -> hhead_descent = hold . hhead_descent ;\n pfminfo -> linegap = hold . linegap ;\n }\n if ( hold . vheadset ) {\n pfminfo -> vheadset = true ;\n pfminfo -> vlinegap = hold . vlinegap ;\n }\n }\n if ( ! pfminfo -> subsuper_set ) SFDefaultOS2SubSuper ( pfminfo , sf -> ascent + sf -> descent , sf -> italicangle ) ;\n }"}
{"idx": 13958, "target": 0, "func": "int ber_len ( BerElement * ber ) {\n return ( ber -> ber_end - ber -> ber_buf ) ;\n }"}
{"idx": 13959, "target": 0, "func": "static guint16 de_tp_epc_ue_tl_a_lb_setup ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n guint32 count , nb_lb ;\n guint8 drb ;\n proto_tree * lb_setup_tree = NULL ;\n proto_item * ti ;\n curr_offset = offset ;\n count = 0 ;\n nb_lb = len / 3 ;\n ti = proto_tree_add_uint ( tree , hf_gsm_a_dtap_num_lb_entities , tvb , curr_offset , 1 , nb_lb ) ;\n proto_item_set_len ( ti , len ) ;\n while ( ( count < nb_lb ) && ( count < 8 ) ) {\n lb_setup_tree = proto_tree_add_subtree_format ( tree , tvb , curr_offset , 3 , ett_epc_ue_tl_a_lb_setup , NULL , \"LB entity %d\" , count ) ;\n proto_tree_add_bits_item ( lb_setup_tree , hf_gsm_a_dtap_epc_ue_tl_a_ul_sdu_size , tvb , curr_offset << 3 , 16 , ENC_BIG_ENDIAN ) ;\n curr_offset += 2 ;\n drb = tvb_get_guint8 ( tvb , curr_offset ) & 0x1f ;\n proto_tree_add_uint_format_value ( lb_setup_tree , hf_gsm_a_dtap_epc_ue_tl_a_drb , tvb , curr_offset , 1 , drb , \"%d (%d)\" , drb + 1 , drb ) ;\n curr_offset ++ ;\n count ++ ;\n }\n EXTRANEOUS_DATA_CHECK ( len , curr_offset - offset , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n return ( len ) ;\n }"}
{"idx": 13960, "target": 1, "func": "static gint dissect_attribute_value ( proto_tree * tree , proto_item * patron_item , packet_info * pinfo , tvbuff_t * old_tvb , gint old_offset , gint length , guint16 handle , bluetooth_uuid_t uuid , btatt_data_t * att_data ) {\n proto_item * sub_item ;\n proto_tree * sub_tree = NULL ;\n tvbuff_t * tvb ;\n gint offset = 0 ;\n bluetooth_uuid_t sub_uuid ;\n bluetooth_uuid_t service_uuid ;\n guint16 sub_handle ;\n guint32 value ;\n guint32 flags ;\n guint32 operator_value ;\n guint32 opcode ;\n guint32 operand_offset ;\n const gint * * hfs ;\n bluetooth_data_t * bluetooth_data = NULL ;\n tvb = tvb_new_subset_length_caplen ( old_tvb , old_offset , length , length ) ;\n DISSECTOR_ASSERT ( att_data ) ;\n bluetooth_data = att_data -> bluetooth_data ;\n if ( p_get_proto_data ( pinfo -> pool , pinfo , proto_btatt , PROTO_DATA_BTATT_HANDLE ) == NULL ) {\n guint16 * value_data ;\n value_data = wmem_new ( wmem_file_scope ( ) , guint16 ) ;\n * value_data = handle ;\n p_add_proto_data ( pinfo -> pool , pinfo , proto_btatt , PROTO_DATA_BTATT_HANDLE , value_data ) ;\n }\n if ( btatt_dissect_attribute_handle ( handle , tvb , pinfo , tree , att_data ) ) return old_offset + length ;\n if ( p_get_proto_data ( pinfo -> pool , pinfo , proto_bluetooth , PROTO_DATA_BLUETOOTH_SERVICE_UUID ) == NULL ) {\n guint8 * value_data ;\n value_data = wmem_strdup ( wmem_file_scope ( ) , print_numeric_uuid ( & uuid ) ) ;\n p_add_proto_data ( pinfo -> pool , pinfo , proto_bluetooth , PROTO_DATA_BLUETOOTH_SERVICE_UUID , value_data ) ;\n }\n if ( dissector_try_string ( bluetooth_uuid_table , print_numeric_uuid ( & uuid ) , tvb , pinfo , tree , att_data ) ) return old_offset + length ;\n else if ( ! uuid . bt_uuid ) {\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) return old_offset ;\n proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n return old_offset + tvb_captured_length ( tvb ) ;\n }\n service_uuid = get_service_uuid_from_handle ( pinfo , handle , bluetooth_data ) ;\n switch ( uuid . bt_uuid ) {\n case 0x2800 : case 0x2801 : if ( is_readable_request ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_READ_BY_GROUP_TYPE_REQUEST ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_READ_BY_GROUP_TYPE_RESPONSE ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n if ( tvb_reported_length_remaining ( tvb , offset ) == 2 ) {\n proto_tree_add_item ( tree , hf_btatt_uuid16 , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n sub_uuid = get_uuid ( tvb , offset , 2 ) ;\n proto_item_append_text ( patron_item , \", UUID: %s\" , print_uuid ( & sub_uuid ) ) ;\n offset += 2 ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , print_uuid ( & sub_uuid ) ) ;\n save_handle ( pinfo , sub_uuid , handle , ATTRIBUTE_TYPE_SERVICE , bluetooth_data ) ;\n }\n else if ( tvb_reported_length_remaining ( tvb , offset ) == 16 ) {\n proto_tree_add_item ( tree , hf_btatt_uuid128 , tvb , offset , 16 , ENC_NA ) ;\n sub_uuid = get_uuid ( tvb , offset , 16 ) ;\n proto_item_append_text ( patron_item , \", UUID128: %s\" , print_uuid ( & sub_uuid ) ) ;\n offset += 16 ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , print_uuid ( & sub_uuid ) ) ;\n save_handle ( pinfo , sub_uuid , handle , ATTRIBUTE_TYPE_SERVICE , bluetooth_data ) ;\n }\n else {\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_bad_data ) ;\n offset = tvb_captured_length ( tvb ) ;\n }\n break ;\n case 0x2802 : if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n offset = dissect_handle ( tree , pinfo , hf_btatt_included_service_handle , tvb , offset , bluetooth_data , NULL , HANDLE_TVB ) ;\n sub_handle = tvb_get_guint16 ( tvb , offset - 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_btatt_ending_handle , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_uuid16 , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n sub_uuid = get_uuid ( tvb , offset , 2 ) ;\n proto_item_append_text ( patron_item , \", Included Handle: 0x%04x, UUID: %s\" , sub_handle , print_uuid ( & sub_uuid ) ) ;\n offset += 2 ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , print_uuid ( & sub_uuid ) ) ;\n save_handle ( pinfo , sub_uuid , sub_handle , ATTRIBUTE_TYPE_OTHER , bluetooth_data ) ;\n break ;\n case 0x2803 : if ( is_readable_request ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_READ_BY_TYPE_REQUEST ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_READ_BY_TYPE_RESPONSE ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_characteristic_properties , ett_btatt_characteristic_properties , hfx_btatt_characteristic_properties , ENC_NA ) ;\n offset += 1 ;\n offset = dissect_handle ( tree , pinfo , hf_btatt_characteristic_value_handle , tvb , offset , bluetooth_data , NULL , HANDLE_TVB ) ;\n sub_handle = tvb_get_guint16 ( tvb , offset - 2 , ENC_LITTLE_ENDIAN ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) == 16 ) {\n proto_tree_add_item ( tree , hf_btatt_uuid128 , tvb , offset , 16 , ENC_NA ) ;\n sub_uuid = get_uuid ( tvb , offset , 16 ) ;\n proto_item_append_text ( patron_item , \", Characteristic Handle: 0x%04x, UUID128: %s\" , tvb_get_guint16 ( tvb , offset - 2 , ENC_LITTLE_ENDIAN ) , print_uuid ( & sub_uuid ) ) ;\n offset += 16 ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , print_uuid ( & sub_uuid ) ) ;\n save_handle ( pinfo , sub_uuid , sub_handle , ATTRIBUTE_TYPE_CHARACTERISTIC , bluetooth_data ) ;\n }\n else if ( tvb_reported_length_remaining ( tvb , offset ) == 2 ) {\n proto_tree_add_item ( tree , hf_btatt_uuid16 , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n sub_uuid = get_uuid ( tvb , offset , 2 ) ;\n proto_item_append_text ( patron_item , \", Characteristic Handle: 0x%04x, UUID: %s\" , sub_handle , print_uuid ( & sub_uuid ) ) ;\n offset += 2 ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , print_uuid ( & sub_uuid ) ) ;\n save_handle ( pinfo , sub_uuid , sub_handle , ATTRIBUTE_TYPE_CHARACTERISTIC , bluetooth_data ) ;\n }\n else {\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_bad_data ) ;\n offset = tvb_captured_length ( tvb ) ;\n }\n break ;\n case 0x2900 : if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_characteristic_extended_properties , ett_btatt_value , hfx_btatt_characteristic_extended_properties , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2901 : if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_characteristic_user_description , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2902 : if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_characteristic_configuration_client , ett_btatt_value , hfx_btatt_characteristic_configuration_client , ENC_LITTLE_ENDIAN ) ;\n value = tvb_get_guint16 ( tvb , offset , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n {\n bluetooth_uuid_t characteristic_uuid ;\n characteristic_uuid = get_characteristic_uuid_from_handle ( pinfo , handle , bluetooth_data ) ;\n if ( value & 0x1 ) switch ( characteristic_uuid . bt_uuid ) {\n case 0x2A05 : case 0x2A1C : case 0x2A21 : case 0x2A35 : case 0x2A52 : case 0x2A55 : case 0x2A66 : case 0x2A6B : case 0x2A99 : case 0x2A9C : case 0x2A9D : case 0x2A9F : case 0x2ABC : case 0x2AC5 : case 0x2AC6 : case 0x2AC8 : case 0x2AC9 : case 0x2ACC : case 0x2AD4 : case 0x2AD5 : case 0x2AD6 : case 0x2AD7 : case 0x2AD8 : case 0x2AD9 : expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n break ;\n case 0x2A18 : case 0x2A19 : case 0x2A1E : case 0x2A22 : case 0x2A2C : case 0x2A2B : case 0x2A31 : case 0x2A33 : case 0x2A34 : case 0x2A36 : case 0x2A37 : case 0x2A3F : case 0x2A45 : case 0x2A46 : case 0x2A4D : case 0x2A53 : case 0x2A56 : case 0x2A58 : case 0x2A5A : case 0x2A5B : case 0x2A63 : case 0x2A64 : case 0x2A67 : case 0x2A68 : case 0x2A6C : case 0x2A6D : case 0x2A6E : case 0x2A6F : case 0x2A70 : case 0x2A71 : case 0x2A72 : case 0x2A73 : case 0x2A74 : case 0x2A75 : case 0x2A76 : case 0x2A77 : case 0x2A78 : case 0x2A79 : case 0x2A7A : case 0x2A7B : case 0x2AA0 : case 0x2AA1 : case 0x2AA3 : case 0x2AA7 : case 0x2AB8 : case 0x2ACD : case 0x2ACE : case 0x2ACF : case 0x2AD0 : case 0x2AD1 : case 0x2AD2 : case 0x2AD3 : case 0x2ADA : default : break ;\n }\n if ( value & 0x2 ) switch ( characteristic_uuid . bt_uuid ) {\n case 0x2A18 : case 0x2A19 : case 0x2A1E : case 0x2A22 : case 0x2A2B : case 0x2A2C : case 0x2A31 : case 0x2A33 : case 0x2A34 : case 0x2A36 : case 0x2A37 : case 0x2A3F : case 0x2A45 : case 0x2A46 : case 0x2A4D : case 0x2A53 : case 0x2A5B : case 0x2A63 : case 0x2A64 : case 0x2A67 : case 0x2A68 : case 0x2A6C : case 0x2A6D : case 0x2A6E : case 0x2A6F : case 0x2A70 : case 0x2A71 : case 0x2A72 : case 0x2A73 : case 0x2A74 : case 0x2A75 : case 0x2A76 : case 0x2A77 : case 0x2A78 : case 0x2A79 : case 0x2A7A : case 0x2A7B : case 0x2AA0 : case 0x2AA1 : case 0x2AA3 : case 0x2AA7 : case 0x2AB8 : case 0x2AC9 : case 0x2ACC : case 0x2ACD : case 0x2ACE : case 0x2ACF : case 0x2AD0 : case 0x2AD1 : case 0x2AD2 : case 0x2AD3 : case 0x2AD4 : case 0x2AD5 : case 0x2AD6 : case 0x2AD7 : case 0x2AD8 : case 0x2ADA : expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n break ;\n case 0x2A05 : case 0x2A1C : case 0x2A21 : case 0x2A35 : case 0x2A52 : case 0x2A55 : case 0x2A56 : case 0x2A58 : case 0x2A5A : case 0x2A66 : case 0x2A6B : case 0x2A99 : case 0x2A9C : case 0x2A9D : case 0x2A9F : case 0x2ABC : case 0x2AC5 : case 0x2AC6 : case 0x2AC8 : case 0x2AD9 : default : break ;\n }\n if ( value > 0x3 ) expert_add_info ( pinfo , tree , & ei_btatt_bad_data ) ;\n }\n break ;\n case 0x2903 : if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_characteristic_configuration_server , ett_btatt_value , hfx_btatt_characteristic_configuration_server , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2904 : if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_characteristic_presentation_format , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_characteristic_presentation_exponent , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_characteristic_presentation_unit , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_characteristic_presentation_namespace , tvb , offset , 1 , ENC_NA ) ;\n value = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n if ( value == 0x01 ) proto_tree_add_item ( tree , hf_btatt_characteristic_presentation_namespace_description_btsig , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n else proto_tree_add_item ( tree , hf_btatt_characteristic_presentation_namespace_description , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2905 : if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_none_format ( tree , hf_btatt_handles_info , tvb , offset , tvb_captured_length ( tvb ) , \"Handles (%i items)\" , tvb_captured_length ( tvb ) / 2 ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n while ( offset < ( gint64 ) tvb_captured_length ( tvb ) ) {\n offset = dissect_handle ( sub_tree , pinfo , hf_btatt_handle , tvb , offset , bluetooth_data , NULL , HANDLE_TVB ) ;\n }\n break ;\n case 0x2906 : {\n bluetooth_uuid_t characteristic_uuid ;\n guint8 * characteristic_dissector_name ;\n dissector_handle_t characteristic_dissector ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n characteristic_uuid = get_characteristic_uuid_from_handle ( pinfo , handle , bluetooth_data ) ;\n characteristic_dissector_name = wmem_strdup_printf ( wmem_packet_scope ( ) , \"btgatt.uuid0x%s\" , print_numeric_uuid ( & characteristic_uuid ) ) ;\n characteristic_dissector = find_dissector ( characteristic_dissector_name ) ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_valid_range_lower_inclusive_value , tvb , offset , tvb_reported_length_remaining ( tvb , offset ) / 2 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n if ( characteristic_dissector ) call_dissector_with_data ( characteristic_dissector , tvb_new_subset_length_caplen ( tvb , offset , tvb_reported_length_remaining ( tvb , offset ) / 2 , tvb_reported_length_remaining ( tvb , offset ) / 2 ) , pinfo , sub_tree , att_data ) ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_valid_range_upper_inclusive_value , tvb , offset + tvb_reported_length_remaining ( tvb , offset ) / 2 , tvb_reported_length_remaining ( tvb , offset ) / 2 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n if ( characteristic_dissector ) call_dissector_with_data ( characteristic_dissector , tvb_new_subset_length_caplen ( tvb , offset + tvb_reported_length_remaining ( tvb , offset ) / 2 , tvb_reported_length_remaining ( tvb , offset ) / 2 , tvb_reported_length_remaining ( tvb , offset ) / 2 ) , pinfo , sub_tree , att_data ) ;\n offset += tvb_reported_length_remaining ( tvb , offset ) ;\n }\n break ;\n case 0x2907 : if ( service_uuid . bt_uuid == GATT_SERVICE_HUMAN_INTERFACE_DEVICE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n if ( tvb_reported_length_remaining ( tvb , offset ) == 2 ) {\n proto_tree_add_item ( tree , hf_btatt_uuid16 , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n else if ( tvb_reported_length_remaining ( tvb , offset ) == 16 ) {\n proto_tree_add_item ( tree , hf_btatt_uuid128 , tvb , offset , 16 , ENC_NA ) ;\n offset += 16 ;\n }\n else {\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_bad_data ) ;\n offset = tvb_captured_length ( tvb ) ;\n }\n break ;\n case 0x2908 : if ( service_uuid . bt_uuid == GATT_SERVICE_HUMAN_INTERFACE_DEVICE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_report_reference_report_id , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_report_reference_report_type , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2909 : if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_number_of_digitals , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x290A : if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_value_trigger_setting_condition , tvb , offset , 1 , ENC_NA ) ;\n value = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n if ( value >= 1 && value <= 3 ) {\n proto_tree_add_item ( tree , hf_btatt_value_trigger_setting_analog , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n else if ( value == 4 ) {\n call_dissector_with_data ( find_dissector ( \"btgatt.uuid0x2a56\" ) , tvb_new_subset_length_caplen ( tvb , offset , 1 , 1 ) , pinfo , tree , att_data ) ;\n offset += 1 ;\n }\n else if ( value == 5 || value == 6 ) {\n proto_tree_add_item ( tree , hf_btatt_value_trigger_setting_analog_one , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_value_trigger_setting_analog_two , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x290B : if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_esp_trigger_logic , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x290C : if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_esp_flags , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_esp_sampling_function , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_esp_measurement_period , tvb , offset , 3 , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n proto_tree_add_item ( tree , hf_btatt_esp_update_interval , tvb , offset , 3 , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n proto_tree_add_item ( tree , hf_btatt_esp_application , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_esp_measurement_uncertainty , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x290D : if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_esp_condition , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_esp_operand , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x290E : if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_time_trigger_setting_condition , tvb , offset , 1 , ENC_NA ) ;\n value = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n if ( value == 0 ) {\n proto_tree_add_item ( tree , hf_btatt_time_trigger_setting_value , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n else if ( value == 1 || value == 2 ) {\n proto_tree_add_item ( tree , hf_btatt_time_trigger_setting_value_time_interval , tvb , offset , 3 , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n }\n else if ( value == 3 ) {\n proto_tree_add_item ( tree , hf_btatt_time_trigger_setting_value_count , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x2A00 : if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_device_name , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2A01 : if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n switch ( ( tvb_get_guint16 ( tvb , offset , ENC_LITTLE_ENDIAN ) & 0xFFC0 ) >> 6 ) {\n case 0x003 : hfs = hfx_btatt_appearance_watch ;\n break ;\n case 0x00C : hfs = hfx_btatt_appearance_thermometer ;\n break ;\n case 0x00D : hfs = hfx_btatt_appearance_heart_rate ;\n break ;\n case 0x00E : hfs = hfx_btatt_appearance_blood_pressure ;\n break ;\n case 0x00F : hfs = hfx_btatt_appearance_hid ;\n break ;\n case 0x011 : hfs = hfx_btatt_appearance_running_walking_sensor ;\n break ;\n case 0x012 : hfs = hfx_btatt_appearance_cycling ;\n break ;\n case 0x031 : hfs = hfx_btatt_appearance_pulse_oximeter ;\n break ;\n case 0x033 : hfs = hfx_btatt_appearance_personal_mobility_device ;\n break ;\n case 0x035 : hfs = hfx_btatt_appearance_insulin_pump ;\n break ;\n case 0x051 : hfs = hfx_btatt_appearance_outdoor_sports_activity ;\n break ;\n default : hfs = hfx_btatt_appearance ;\n }\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_appearance , ett_btatt_value , hfs , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A02 : if ( service_uuid . bt_uuid == GATT_SERVICE_GENERIC_ACCESS_PROFILE ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_peripheral_privacy_flag , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A03 : if ( service_uuid . bt_uuid == GATT_SERVICE_GENERIC_ACCESS_PROFILE ) {\n if ( is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n offset = dissect_bd_addr ( hf_btatt_reconnection_address , pinfo , tree , tvb , offset , FALSE , bluetooth_data -> interface_id , bluetooth_data -> adapter_id , NULL ) ;\n break ;\n case 0x2A04 : if ( service_uuid . bt_uuid == GATT_SERVICE_GENERIC_ACCESS_PROFILE ) {\n if ( ! ( is_readable_request ( att_data -> opcode ) || is_readable_response ( att_data -> opcode ) ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_minimum_connection_interval , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_maximum_connection_interval , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_slave_latency , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_connection_supervision_timeout_multiplier , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A05 : if ( service_uuid . bt_uuid == GATT_SERVICE_GENERIC_ATTRIBUTE_PROFILE ) {\n if ( att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_starting_handle , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_ending_handle , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A06 : if ( service_uuid . bt_uuid == GATT_SERVICE_IMMEDIATE_ALERT ) {\n if ( att_data -> opcode != ATT_OPCODE_WRITE_COMMAND ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n else if ( service_uuid . bt_uuid == GATT_SERVICE_LINK_LOSS ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_alert_level , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A07 : if ( service_uuid . bt_uuid == GATT_SERVICE_TX_POWER ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_tx_power_level , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A08 : if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_year , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_month , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_day , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_hours , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_minutes , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_seconds , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A09 : if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_day_of_week , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A0A : case 0x2A0B : case 0x2A0C : case 0x2A2B : if ( uuid . bt_uuid == 0x2A2B ) {\n if ( service_uuid . bt_uuid == GATT_SERVICE_CURRENT_TIME_SERVICE ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_year , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_month , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_day , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_hours , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_minutes , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_seconds , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_day_of_week , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n if ( uuid . bt_uuid == 0x2A0C || uuid . bt_uuid == 0x2A2B ) {\n proto_tree_add_item ( tree , hf_btatt_fractions256 , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n else if ( uuid . bt_uuid == 0x2A0B ) {\n proto_tree_add_item ( tree , hf_btatt_fractions100 , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( uuid . bt_uuid == 0x2A2B ) {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_time_adjust_reason , ett_btatt_value , hfx_btatt_time_adjust_reason , ENC_NA ) ;\n offset += 1 ;\n }\n break ;\n case 0x2A0D : if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_dst_offset , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A0E : if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_timezone , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A0F : case 0x2A10 : if ( service_uuid . bt_uuid == GATT_SERVICE_CURRENT_TIME_SERVICE ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n if ( uuid . bt_uuid == 0x2A10 ) {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_timezone_information , ett_btatt_value , hfx_btatt_timezone_information , ENC_NA ) ;\n offset += 1 ;\n }\n proto_tree_add_item ( tree , hf_btatt_timezone , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_dst_offset , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A11 : if ( service_uuid . bt_uuid == GATT_SERVICE_NEXT_DST_CHANGE_SERVICE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_year , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_month , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_day , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_hours , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_minutes , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_seconds , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_dst_offset , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A12 : if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_time_accuracy , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A13 : if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_time_source , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A14 : if ( service_uuid . bt_uuid == GATT_SERVICE_CURRENT_TIME_SERVICE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_time_source , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_time_accuracy , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_time_days_since_update , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_time_hours_since_update , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A15 : if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n call_dissector_with_data ( find_dissector ( \"btgatt.uuid0x2A0C\" ) , tvb_new_subset_length_caplen ( tvb , offset , 9 , 9 ) , pinfo , tree , att_data ) ;\n offset += 9 ;\n call_dissector_with_data ( find_dissector ( \"btgatt.uuid0x2A0F\" ) , tvb_new_subset_length_caplen ( tvb , offset , 2 , 2 ) , pinfo , tree , att_data ) ;\n offset += 2 ;\n call_dissector_with_data ( find_dissector ( \"btgatt.uuid0x2A14\" ) , tvb_new_subset_length_caplen ( tvb , offset , 4 , 4 ) , pinfo , tree , att_data ) ;\n offset += 4 ;\n break ;\n case 0x2A16 : if ( service_uuid . bt_uuid == GATT_SERVICE_REFERENCE_TIME_UPDATE_SERVICE ) {\n if ( att_data -> opcode != ATT_OPCODE_WRITE_COMMAND ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_time_update_control_point , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A17 : if ( service_uuid . bt_uuid == GATT_SERVICE_REFERENCE_TIME_UPDATE_SERVICE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_time_current_state , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_time_result , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A18 : if ( service_uuid . bt_uuid == GATT_SERVICE_GLUCOSE ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_glucose_measurement_flags , ett_btatt_value , hfx_btatt_glucose_measurement_flags , ENC_NA ) ;\n flags = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_glucose_measurement_sequence_number , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_glucose_measurement_base_time , tvb , offset , 7 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n proto_tree_add_item ( sub_tree , hf_btatt_year , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_month , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_day , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_hours , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_minutes , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_seconds , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n if ( flags & 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_glucose_measurement_time_offset , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( ( flags & 0x02 ) && ! ( flags & 0x04 ) ) {\n proto_tree_add_item ( tree , hf_btatt_glucose_measurement_glucose_concentration_kg_per_l , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( ( flags & 0x02 ) && ( flags & 0x04 ) ) {\n proto_tree_add_item ( tree , hf_btatt_glucose_measurement_glucose_concentration_mol_per_l , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x02 ) {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_glucose_measurement_type_and_sample_location , ett_btatt_value , hfx_btatt_glucose_measurement_type_and_sample_location , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x08 ) {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_glucose_measurement_sensor_status_annunciation , ett_btatt_value , hfx_btatt_glucose_measurement_sensor_status_annunciation , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x2A19 : {\n if ( service_uuid . bt_uuid == GATT_SERVICE_BATTERY_SERVICE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n guint32 battery_level ;\n sub_item = proto_tree_add_item_ret_uint ( tree , hf_btatt_battery_level , tvb , offset , 1 , ENC_NA , & battery_level ) ;\n if ( battery_level > 100 ) expert_add_info ( pinfo , sub_item , & ei_btatt_bad_data ) ;\n offset += 1 ;\n }\n break ;\n case 0x2A1A : if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_battery_power_state , ett_btatt_value , hfx_btatt_battery_power_state , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A1B : {\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n guint32 battery_level ;\n sub_item = proto_tree_add_item_ret_uint ( tree , hf_btatt_battery_level , tvb , offset , 1 , ENC_NA , & battery_level ) ;\n if ( battery_level > 100 ) expert_add_info ( pinfo , sub_item , & ei_btatt_bad_data ) ;\n offset += 1 ;\n if ( tvb_reported_length_remaining ( tvb , offset ) >= 1 ) {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_battery_power_state , ett_btatt_value , hfx_btatt_battery_power_state , ENC_NA ) ;\n offset += 1 ;\n }\n }\n break ;\n case 0x2A1C : case 0x2A1E : if ( uuid . bt_uuid == 0x2A1C ) {\n if ( service_uuid . bt_uuid == GATT_SERVICE_HEALTH_THERMOMETER ) {\n if ( att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n }\n else if ( uuid . bt_uuid == 0x2A1E ) {\n if ( service_uuid . bt_uuid == GATT_SERVICE_HEALTH_THERMOMETER ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_temperature_measurement_flags , ett_btatt_value , hfx_btatt_temperature_measurement_flags , ENC_NA ) ;\n flags = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n if ( flags & 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_temperature_measurement_value_celsius , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n }\n else {\n proto_tree_add_item ( tree , hf_btatt_temperature_measurement_value_fahrenheit , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n }\n if ( flags & 0x02 ) {\n sub_item = proto_tree_add_item ( tree , hf_btatt_temperature_measurement_timestamp , tvb , offset , 7 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n proto_tree_add_item ( sub_tree , hf_btatt_year , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_month , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_day , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_hours , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_minutes , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_seconds , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x04 ) {\n proto_tree_add_item ( tree , hf_btatt_temperature_type , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n break ;\n case 0x2A1D : if ( service_uuid . bt_uuid == GATT_SERVICE_HEALTH_THERMOMETER ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_temperature_type , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A21 : if ( service_uuid . bt_uuid == GATT_SERVICE_HEALTH_THERMOMETER ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_measurement_interval , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A22 : if ( service_uuid . bt_uuid == GATT_SERVICE_HUMAN_INTERFACE_DEVICE ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n call_dissector_with_data ( usb_hid_boot_keyboard_input_report_handle , tvb_new_subset_remaining ( tvb , offset ) , pinfo , tree , NULL ) ;\n offset += tvb_reported_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2A23 : if ( service_uuid . bt_uuid == GATT_SERVICE_DEVICE_INFORMATION ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_system_id_manufacturer_identifier , tvb , offset , 5 , ENC_LITTLE_ENDIAN ) ;\n offset += 5 ;\n proto_tree_add_item ( tree , hf_btatt_system_id_organizationally_unique_identifier , tvb , offset , 3 , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n break ;\n case 0x2A24 : if ( service_uuid . bt_uuid == GATT_SERVICE_DEVICE_INFORMATION ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_model_number_string , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2A25 : if ( service_uuid . bt_uuid == GATT_SERVICE_DEVICE_INFORMATION ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_serial_number_string , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2A26 : if ( service_uuid . bt_uuid == GATT_SERVICE_DEVICE_INFORMATION ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_firmware_revision_string , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2A27 : if ( service_uuid . bt_uuid == GATT_SERVICE_DEVICE_INFORMATION ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_hardware_revision_string , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2A28 : if ( service_uuid . bt_uuid == GATT_SERVICE_DEVICE_INFORMATION ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_software_revision_string , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2A29 : if ( service_uuid . bt_uuid == GATT_SERVICE_DEVICE_INFORMATION ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_manufacturer_string , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2A2A : {\n guint16 count ;\n guint16 list_length = 0 ;\n if ( service_uuid . bt_uuid == GATT_SERVICE_DEVICE_INFORMATION ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_regulatory_certification_data_list_count , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n count = tvb_get_guint16 ( tvb , offset , ENC_LITTLE_ENDIAN ) ;\n list_length += 2 ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_regulatory_certification_data_list_length , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n list_length += 2 ;\n offset += 2 ;\n while ( count -- ) {\n proto_item * authorizing_body_data_item ;\n proto_tree * authorizing_body_data_tree ;\n guint8 item_type ;\n guint16 item_length ;\n guint16 certification_data_list_count = 0 ;\n guint16 certification_data_list_length = 0 ;\n proto_item * list_length_item ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_regulatory_certification_data_list_item , tvb , offset , 0 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n proto_tree_add_item ( sub_tree , hf_btatt_regulatory_certification_data_list_item_body , tvb , offset , 1 , ENC_NA ) ;\n list_length += 1 ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_regulatory_certification_data_list_item_body_structure_type , tvb , offset , 1 , ENC_NA ) ;\n item_type = tvb_get_guint8 ( tvb , offset ) ;\n list_length += 1 ;\n offset += 1 ;\n list_length_item = proto_tree_add_item ( sub_tree , hf_btatt_regulatory_certification_data_list_item_body_structure_length , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n item_length = tvb_get_guint16 ( tvb , offset , ENC_LITTLE_ENDIAN ) ;\n list_length += 2 + item_length ;\n offset += 2 ;\n if ( item_type == 0x01 ) {\n authorizing_body_data_item = proto_tree_add_item ( sub_tree , hf_btatt_regulatory_certification_data_list_item_authorizing_body_data , tvb , offset , item_length , ENC_NA ) ;\n authorizing_body_data_tree = proto_item_add_subtree ( authorizing_body_data_item , ett_btatt_list ) ;\n if ( item_length > 0 ) {\n proto_tree_add_item ( authorizing_body_data_tree , hf_btatt_regulatory_certification_data_list_item_authorizing_body_data_major_ig_version , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( item_length > 1 ) {\n proto_tree_add_item ( authorizing_body_data_tree , hf_btatt_regulatory_certification_data_list_item_authorizing_body_data_minor_ig_version , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( item_length > 2 ) {\n proto_tree_add_item ( authorizing_body_data_tree , hf_btatt_regulatory_certification_data_list_item_authorizing_body_data_certification_data_list_count , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n certification_data_list_count = tvb_get_guint16 ( tvb , offset , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( item_length > 4 ) {\n proto_tree_add_item ( authorizing_body_data_tree , hf_btatt_regulatory_certification_data_list_item_authorizing_body_data_certification_data_list_length , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n certification_data_list_length = tvb_get_guint16 ( tvb , offset , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( item_length > 6 && certification_data_list_count ) {\n proto_item * certification_data_list_item ;\n proto_tree * certification_data_list_tree ;\n certification_data_list_item = proto_tree_add_item ( sub_tree , hf_btatt_regulatory_certification_data_list_item_authorizing_body_data_certification_data_list , tvb , offset , certification_data_list_length , ENC_NA ) ;\n certification_data_list_tree = proto_item_add_subtree ( certification_data_list_item , ett_btatt_list ) ;\n while ( certification_data_list_count -- ) {\n proto_tree_add_item ( certification_data_list_tree , hf_btatt_regulatory_certification_data_list_item_authorizing_body_data_certified_device_class , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n }\n }\n else if ( item_type == 0x02 ) {\n proto_tree_add_item ( sub_tree , hf_btatt_regulatory_certification_data_list_item_regulation_bit_field_type , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n else {\n proto_tree_add_item ( sub_tree , hf_btatt_regulatory_certification_data_list_item_data , tvb , offset , item_length , ENC_NA ) ;\n offset += item_length ;\n }\n proto_item_set_len ( sub_item , 1 + 1 + 2 + item_length ) ;\n if ( list_length != length ) expert_add_info ( pinfo , list_length_item , & ei_btatt_invalid_length ) ;\n }\n }\n break ;\n case 0x2A2C : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_magnetic_declination , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A31 : if ( service_uuid . bt_uuid == GATT_SERVICE_SCAN_PARAMETERS ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_scan_refresh , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A32 : if ( service_uuid . bt_uuid == GATT_SERVICE_HUMAN_INTERFACE_DEVICE ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_WRITE_COMMAND ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n call_dissector_with_data ( usb_hid_boot_keyboard_output_report_handle , tvb_new_subset_remaining ( tvb , offset ) , pinfo , tree , NULL ) ;\n offset += tvb_reported_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2A33 : if ( service_uuid . bt_uuid == GATT_SERVICE_HUMAN_INTERFACE_DEVICE ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n call_dissector_with_data ( usb_hid_boot_mouse_input_report_handle , tvb_new_subset_remaining ( tvb , offset ) , pinfo , tree , NULL ) ;\n offset += tvb_reported_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2A34 : if ( service_uuid . bt_uuid == GATT_SERVICE_GLUCOSE ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_glucose_measurement_context_flags , ett_btatt_value , hfx_btatt_glucose_measurement_context_flags , ENC_NA ) ;\n flags = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_glucose_measurement_context_sequence_number , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( flags & 0x80 ) {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_glucose_measurement_context_extended_flags , ett_btatt_value , hfx_btatt_glucose_measurement_context_extended_flags , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_glucose_measurement_context_carbohydrate_id , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_glucose_measurement_context_carbohydrate_kg , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x02 ) {\n proto_tree_add_item ( tree , hf_btatt_glucose_measurement_context_meal , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x04 ) {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_glucose_measurement_context_tester_health , ett_btatt_value , hfx_btatt_glucose_measurement_context_tester_health , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x08 ) {\n proto_tree_add_item ( tree , hf_btatt_glucose_measurement_context_exercise_duration , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_glucose_measurement_context_exercise_intensity , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x10 ) {\n proto_tree_add_item ( tree , hf_btatt_glucose_measurement_context_medication_id , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n if ( flags & 0x20 ) {\n proto_tree_add_item ( tree , hf_btatt_glucose_measurement_context_medication_l , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n else {\n proto_tree_add_item ( tree , hf_btatt_glucose_measurement_context_medication_kg , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n }\n if ( flags & 0x40 ) {\n proto_tree_add_item ( tree , hf_btatt_glucose_measurement_context_hba1c , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x2A35 : case 0x2A36 : if ( uuid . bt_uuid == 0x2A35 ) {\n if ( service_uuid . bt_uuid == GATT_SERVICE_BLOOD_PRESSURE ) {\n if ( att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n }\n else if ( uuid . bt_uuid == 0x2A36 ) {\n if ( service_uuid . bt_uuid == GATT_SERVICE_BLOOD_PRESSURE ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_blood_pressure_measurement_flags , ett_btatt_value , hfx_btatt_blood_pressure_measurement_flags , ENC_NA ) ;\n flags = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n if ( flags & 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_blood_pressure_measurement_compound_value_systolic_kpa , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_blood_pressure_measurement_compound_value_diastolic_kpa , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_blood_pressure_measurement_compound_value_mean_arterial_pressure_kpa , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n else {\n proto_tree_add_item ( tree , hf_btatt_blood_pressure_measurement_compound_value_systolic_mmhg , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_blood_pressure_measurement_compound_value_diastolic_mmhg , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_blood_pressure_measurement_compound_value_mean_arterial_pressure_mmhg , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x02 ) {\n sub_item = proto_tree_add_item ( tree , hf_btatt_blood_pressure_measurement_timestamp , tvb , offset , 7 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n proto_tree_add_item ( sub_tree , hf_btatt_year , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_month , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_day , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_hours , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_minutes , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_seconds , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x04 ) {\n proto_tree_add_item ( tree , hf_btatt_blood_pressure_measurement_pulse_rate , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x08 ) {\n proto_tree_add_item ( tree , hf_btatt_blood_pressure_measurement_user_id , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x10 ) {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_blood_pressure_measurement_status , ett_btatt_value , hfx_btatt_blood_pressure_measurement_status , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x2A37 : if ( service_uuid . bt_uuid == GATT_SERVICE_HEART_RATE ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_heart_rate_measurement_flags , ett_btatt_value , hfx_btatt_heart_rate_measurement_flags , ENC_NA ) ;\n flags = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n if ( flags & 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_heart_rate_measurement_value_16 , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n else {\n proto_tree_add_item ( tree , hf_btatt_heart_rate_measurement_value_8 , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x08 ) {\n proto_tree_add_item ( tree , hf_btatt_heart_rate_measurement_energy_expended , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x10 ) {\n guint interval_count = 0 ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_heart_rate_measurement_rr_intervals , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n while ( tvb_reported_length_remaining ( tvb , offset ) ) {\n proto_tree_add_item ( sub_tree , hf_btatt_heart_rate_measurement_rr_interval , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n interval_count += 1 ;\n }\n proto_item_append_text ( sub_item , \" [count = %2u]\" , interval_count ) ;\n }\n break ;\n case 0x2A38 : if ( service_uuid . bt_uuid == GATT_SERVICE_HEART_RATE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_body_sensor_location , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A39 : if ( service_uuid . bt_uuid == GATT_SERVICE_HEART_RATE ) {\n if ( is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_heart_rate_control_point , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A3F : if ( service_uuid . bt_uuid == GATT_SERVICE_PHONE_ALERT_STATUS_SERVICE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_alert_status , ett_btatt_value , hfx_btatt_alert_status , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A40 : if ( service_uuid . bt_uuid == GATT_SERVICE_PHONE_ALERT_STATUS_SERVICE ) {\n if ( att_data -> opcode != ATT_OPCODE_WRITE_COMMAND ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_ringer_control_point , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A41 : if ( service_uuid . bt_uuid == GATT_SERVICE_PHONE_ALERT_STATUS_SERVICE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_ringer_setting , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A42 : case 0x2A47 : case 0x2A48 : if ( uuid . bt_uuid == 0x2A47 || uuid . bt_uuid == 0x2A48 ) {\n if ( service_uuid . bt_uuid == GATT_SERVICE_ALERT_NOTIFICATION_SERVICE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_alert_category_id_bitmask_1 , ett_btatt_value , hfx_btatt_alert_category_id_bitmask_1 , ENC_NA ) ;\n offset += 1 ;\n if ( tvb_reported_length_remaining ( tvb , offset ) >= 1 ) {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_alert_category_id_bitmask_2 , ett_btatt_value , hfx_btatt_alert_category_id_bitmask_2 , ENC_NA ) ;\n offset += 1 ;\n }\n break ;\n case 0x2A43 : if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_alert_category_id , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A44 : if ( service_uuid . bt_uuid == GATT_SERVICE_ALERT_NOTIFICATION_SERVICE ) {\n if ( is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_alert_command_id , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_alert_category_id , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A45 : if ( service_uuid . bt_uuid == GATT_SERVICE_ALERT_NOTIFICATION_SERVICE ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_alert_category_id , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_alert_unread_count , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A46 : if ( service_uuid . bt_uuid == GATT_SERVICE_ALERT_NOTIFICATION_SERVICE ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_alert_category_id , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_alert_number_of_new_alert , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n proto_tree_add_item ( tree , hf_btatt_alert_text_string_information , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n }\n break ;\n case 0x2A49 : if ( service_uuid . bt_uuid == GATT_SERVICE_BLOOD_PRESSURE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_blood_pressure_feature , ett_btatt_value , hfx_btatt_blood_pressure_feature , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A4A : if ( service_uuid . bt_uuid == GATT_SERVICE_HUMAN_INTERFACE_DEVICE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_hogp_bcd_hid , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_hogp_b_country_code , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_hogp_flags , ett_btatt_value , hfx_btatt_hogp_flags , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A4B : if ( service_uuid . bt_uuid == GATT_SERVICE_HUMAN_INTERFACE_DEVICE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n offset = dissect_usb_hid_get_report_descriptor ( pinfo , tree , tvb , offset , NULL ) ;\n break ;\n case 0x2A4C : if ( service_uuid . bt_uuid == GATT_SERVICE_HUMAN_INTERFACE_DEVICE ) {\n if ( att_data -> opcode != ATT_OPCODE_WRITE_COMMAND ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_hogp_hid_control_point_command , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A4D : if ( service_uuid . bt_uuid == GATT_SERVICE_HUMAN_INTERFACE_DEVICE ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_WRITE_COMMAND && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_undecoded ) ;\n offset = tvb_captured_length ( tvb ) ;\n break ;\n case 0x2A4E : if ( service_uuid . bt_uuid == GATT_SERVICE_HUMAN_INTERFACE_DEVICE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_WRITE_COMMAND ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_hogp_protocol_mode , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A4F : if ( service_uuid . bt_uuid == GATT_SERVICE_SCAN_PARAMETERS ) {\n if ( att_data -> opcode != ATT_OPCODE_WRITE_COMMAND ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_le_scan_interval , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_le_scan_window , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A50 : if ( service_uuid . bt_uuid == GATT_SERVICE_DEVICE_INFORMATION ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_pnp_id_vendor_id_source , tvb , offset , 1 , ENC_NA ) ;\n value = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n if ( value == 1 ) proto_tree_add_item ( tree , hf_btatt_pnp_id_vendor_id_bluetooth_sig , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n else if ( value == 2 ) proto_tree_add_item ( tree , hf_btatt_pnp_id_vendor_id_usb_forum , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n else proto_tree_add_item ( tree , hf_btatt_pnp_id_vendor_id , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_pnp_id_product_id , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_pnp_id_product_version , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A51 : if ( service_uuid . bt_uuid == GATT_SERVICE_GLUCOSE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_glucose_feature , ett_btatt_value , hfx_btatt_glucose_feature , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A52 : if ( service_uuid . bt_uuid == GATT_SERVICE_GLUCOSE || service_uuid . bt_uuid == GATT_SERVICE_CONTINUOUS_GLUCOSE_MONITORING || service_uuid . bt_uuid == GATT_SERVICE_PULSE_OXIMETER ) {\n if ( is_writeable_response ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_record_access_control_point_opcode , tvb , offset , 1 , ENC_NA ) ;\n opcode = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_record_access_control_point_operator , tvb , offset , 1 , ENC_NA ) ;\n operator_value = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_record_access_control_point_operand , tvb , offset , 0 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n operand_offset = offset ;\n switch ( opcode ) {\n case 1 : case 2 : case 4 : switch ( operator_value ) {\n case 0 : case 1 : case 5 : case 6 : break ;\n case 2 : proto_tree_add_item ( sub_tree , hf_btatt_record_access_control_point_operand_filter_type , tvb , offset , 1 , ENC_NA ) ;\n value = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n if ( value == 0x01 ) {\n proto_tree_add_item ( sub_tree , hf_btatt_record_access_control_point_operand_max_time_offset , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n else {\n proto_tree_add_item ( sub_tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n offset = tvb_captured_length ( tvb ) ;\n }\n break ;\n case 3 : proto_tree_add_item ( sub_tree , hf_btatt_record_access_control_point_operand_filter_type , tvb , offset , 1 , ENC_NA ) ;\n value = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n if ( value == 0x01 ) {\n proto_tree_add_item ( sub_tree , hf_btatt_record_access_control_point_operand_min_time_offset , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n else {\n proto_tree_add_item ( sub_tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n offset = tvb_captured_length ( tvb ) ;\n }\n break ;\n case 4 : proto_tree_add_item ( sub_tree , hf_btatt_record_access_control_point_operand_filter_type , tvb , offset , 1 , ENC_NA ) ;\n value = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n if ( value == 0x01 ) {\n proto_tree_add_item ( sub_tree , hf_btatt_record_access_control_point_operand_min_time_offset , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_record_access_control_point_operand_max_time_offset , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n else {\n proto_tree_add_item ( sub_tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n offset = tvb_captured_length ( tvb ) ;\n }\n break ;\n }\n break ;\n case 3 : break ;\n case 5 : proto_tree_add_item ( sub_tree , hf_btatt_record_access_control_point_operand_number_of_records , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 6 : proto_tree_add_item ( sub_tree , hf_btatt_record_access_control_point_request_opcode , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_record_access_control_point_response_code , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n }\n ;\n proto_item_set_len ( sub_item , offset - operand_offset ) ;\n break ;\n case 0x2A53 : if ( service_uuid . bt_uuid == GATT_SERVICE_RUNNING_SPEED_AND_CADENCE ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_rsc_measurement_flags , ett_btatt_value , hfx_btatt_rsc_measurement_flags , ENC_NA ) ;\n flags = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_rsc_measurement_instantaneous_speed , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_rsc_measurement_instantaneous_cadence , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n if ( flags & 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_rsc_measurement_instantaneous_stride_length , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x02 ) {\n proto_tree_add_item ( tree , hf_btatt_rsc_measurement_total_distance , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n }\n break ;\n case 0x2A54 : if ( service_uuid . bt_uuid == GATT_SERVICE_RUNNING_SPEED_AND_CADENCE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_rsc_feature , ett_btatt_value , hfx_btatt_rsc_feature , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A55 : if ( service_uuid . bt_uuid == GATT_SERVICE_RUNNING_SPEED_AND_CADENCE || service_uuid . bt_uuid == GATT_SERVICE_CYCLING_SPEED_AND_CADENCE ) {\n if ( is_writeable_response ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_sc_control_point_opcode , tvb , offset , 1 , ENC_NA ) ;\n opcode = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n switch ( opcode ) {\n case 1 : proto_tree_add_item ( tree , hf_btatt_sc_control_point_cumulative_value , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n break ;\n case 3 : proto_tree_add_item ( tree , hf_btatt_sensor_location , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 16 : proto_tree_add_item ( tree , hf_btatt_sc_control_point_request_opcode , tvb , offset , 1 , ENC_NA ) ;\n value = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_sc_control_point_response_value , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n if ( value == 0x04 && tvb_get_guint8 ( tvb , offset ) == 0x01 ) {\n while ( tvb_captured_length_remaining ( tvb , offset ) ) {\n proto_tree_add_item ( tree , hf_btatt_sensor_location , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n }\n break ;\n case 2 : case 4 : break ;\n }\n break ;\n case 0x2A56 : if ( service_uuid . bt_uuid == GATT_SERVICE_AUTOMATION_IO ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_WRITE_COMMAND && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_digital , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A58 : if ( service_uuid . bt_uuid == GATT_SERVICE_AUTOMATION_IO ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_WRITE_COMMAND && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_analog , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A5A : if ( service_uuid . bt_uuid == GATT_SERVICE_AUTOMATION_IO ) {\n if ( is_readable_request ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n call_dissector_with_data ( find_dissector ( \"btgatt.uuid0x2a56\" ) , tvb_new_subset_length_caplen ( tvb , offset , 1 , 1 ) , pinfo , tree , att_data ) ;\n offset += 1 ;\n call_dissector_with_data ( find_dissector ( \"btgatt.uuid0x2a58\" ) , tvb_new_subset_length_caplen ( tvb , offset , 2 , 2 ) , pinfo , tree , att_data ) ;\n offset += 2 ;\n break ;\n case 0x2A5B : if ( service_uuid . bt_uuid == GATT_SERVICE_CYCLING_SPEED_AND_CADENCE ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_csc_measurement_flags , ett_btatt_value , hfx_btatt_csc_measurement_flags , ENC_NA ) ;\n flags = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n if ( flags & 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_csc_measurement_cumulative_wheel_revolutions , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_btatt_csc_measurement_last_event_time , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x02 ) {\n proto_tree_add_item ( tree , hf_btatt_csc_measurement_cumulative_crank_revolutions , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_csc_measurement_last_event_time , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x2A5C : if ( service_uuid . bt_uuid == GATT_SERVICE_CYCLING_SPEED_AND_CADENCE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_csc_feature , ett_btatt_value , hfx_btatt_csc_feature , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A5D : if ( service_uuid . bt_uuid == GATT_SERVICE_RUNNING_SPEED_AND_CADENCE || service_uuid . bt_uuid == GATT_SERVICE_CYCLING_SPEED_AND_CADENCE || service_uuid . bt_uuid == GATT_SERVICE_CYCLING_POWER ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_sensor_location , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A5E : if ( service_uuid . bt_uuid == GATT_SERVICE_PULSE_OXIMETER ) {\n if ( att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_plx_spot_check_measurement_flags , ett_btatt_value , hfx_btatt_plx_spot_check_measurement_flags , ENC_NA ) ;\n flags = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_plx_spo2pr_spot_check , tvb , offset , 4 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_value ) ;\n proto_tree_add_item ( sub_tree , hf_btatt_plx_spo2 , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_plx_pulse_rate , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( flags & 0x01 ) {\n sub_item = proto_tree_add_item ( tree , hf_btatt_plx_spot_check_measurement_timestamp , tvb , offset , 7 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_value ) ;\n call_dissector_with_data ( find_dissector ( \"btgatt.uuid0x2a08\" ) , tvb_new_subset_length_caplen ( tvb , offset , 7 , 7 ) , pinfo , sub_tree , att_data ) ;\n offset += 7 ;\n }\n if ( flags & 0x02 ) {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_plx_measurement_status , ett_btatt_value , hfx_btatt_plx_measurement_status , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x04 ) {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_plx_device_and_sensor_status , ett_btatt_value , hfx_btatt_plx_device_and_sensor_status , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n }\n if ( flags & 0x08 ) {\n proto_tree_add_item ( tree , hf_btatt_plx_pulse_amplitude_index , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x2A5F : if ( service_uuid . bt_uuid == GATT_SERVICE_PULSE_OXIMETER ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_plx_continuous_measurement_flags , ett_btatt_value , hfx_btatt_plx_continuous_measurement_flags , ENC_NA ) ;\n flags = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_plx_spo2pr_normal , tvb , offset , 4 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_value ) ;\n proto_tree_add_item ( sub_tree , hf_btatt_plx_spo2 , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_plx_pulse_rate , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( flags & 0x01 ) {\n sub_item = proto_tree_add_item ( tree , hf_btatt_plx_spo2pr_fast , tvb , offset , 4 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_value ) ;\n proto_tree_add_item ( sub_tree , hf_btatt_plx_spo2 , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_plx_pulse_rate , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x02 ) {\n sub_item = proto_tree_add_item ( tree , hf_btatt_plx_spo2pr_slow , tvb , offset , 4 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_value ) ;\n proto_tree_add_item ( sub_tree , hf_btatt_plx_spo2 , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_plx_pulse_rate , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x04 ) {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_plx_measurement_status , ett_btatt_value , hfx_btatt_plx_measurement_status , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x08 ) {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_plx_device_and_sensor_status , ett_btatt_value , hfx_btatt_plx_device_and_sensor_status , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n }\n if ( flags & 0x10 ) {\n proto_tree_add_item ( tree , hf_btatt_plx_pulse_amplitude_index , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x2A60 : if ( service_uuid . bt_uuid == GATT_SERVICE_PULSE_OXIMETER ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_plx_features_supported_features , ett_btatt_value , hfx_btatt_plx_features_supported_features , ENC_LITTLE_ENDIAN ) ;\n flags = tvb_get_guint16 ( tvb , offset , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( flags & 0x01 ) {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_plx_measurement_status , ett_btatt_value , hfx_btatt_plx_measurement_status , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x02 ) {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_plx_device_and_sensor_status , ett_btatt_value , hfx_btatt_plx_device_and_sensor_status , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n }\n break ;\n case 0x2A63 : if ( service_uuid . bt_uuid == GATT_SERVICE_CYCLING_POWER ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_cycling_power_measurement_flags , ett_btatt_value , hfx_btatt_cycling_power_measurement_flags , ENC_LITTLE_ENDIAN ) ;\n flags = tvb_get_guint16 ( tvb , offset , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_cycling_power_measurement_instantaneous_power , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( flags & 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_measurement_pedal_power_balance , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x04 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_measurement_accumulated_torque , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x10 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_measurement_wheel_revolution_data_cumulative_wheel_revolutions , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_btatt_cycling_power_measurement_wheel_revolution_data_last_wheel_event_time , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x20 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_measurement_crank_revolution_data_cumulative_crank_revolutions , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_cycling_power_measurement_crank_revolution_data_last_crank_event_time , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x40 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_measurement_extreme_force_magnitudes_maximum_force_magnitude , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_cycling_power_measurement_extreme_force_magnitudes_minimum_force_magnitude , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x80 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_measurement_extreme_torque_magnitudes_maximum_torque_magnitude , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_cycling_power_measurement_extreme_torque_magnitudes_minimum_torque_magnitude , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x100 ) {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_cycling_power_measurement_extreme_angles , ett_btatt_value , hfx_btatt_cycling_power_measurement_extreme_angles , ENC_NA ) ;\n offset += 3 ;\n }\n if ( flags & 0x200 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_measurement_top_dead_spot_angle , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x400 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_measurement_bottom_dead_spot_angle , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x800 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_measurement_accumulated_energy , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x2A64 : if ( service_uuid . bt_uuid == GATT_SERVICE_CYCLING_POWER ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_cycling_power_vector_flags , ett_btatt_value , hfx_btatt_cycling_power_vector_flags , ENC_NA ) ;\n flags = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n if ( flags & 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_vector_crank_revolution_data_cumulative_crank_revolutions , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_cycling_power_vector_crank_revolution_data_last_crank_event_time , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x02 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_vector_first_crank_measurement_angle , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x04 ) {\n while ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_vector_instantaneous_force_magnitude_array , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n }\n if ( flags & 0x08 ) {\n while ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_vector_instantaneous_torque_magnitude_array , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n }\n break ;\n case 0x2A65 : if ( service_uuid . bt_uuid == GATT_SERVICE_CYCLING_POWER ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_cycling_power_feature , ett_btatt_value , hfx_btatt_cycling_power_feature , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n break ;\n case 0x2A66 : if ( service_uuid . bt_uuid == GATT_SERVICE_CYCLING_POWER ) {\n if ( is_writeable_response ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_cycling_power_control_point_opcode , tvb , offset , 1 , ENC_NA ) ;\n opcode = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n switch ( opcode ) {\n case 1 : proto_tree_add_item ( tree , hf_btatt_cycling_power_control_point_cumulative_value , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n break ;\n case 2 : proto_tree_add_item ( tree , hf_btatt_cycling_power_control_point_sensor_location , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 4 : proto_tree_add_item ( tree , hf_btatt_cycling_power_control_point_crank_length , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 6 : proto_tree_add_item ( tree , hf_btatt_cycling_power_control_point_chain_length , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 8 : proto_tree_add_item ( tree , hf_btatt_cycling_power_control_point_chain_weight , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 10 : proto_tree_add_item ( tree , hf_btatt_cycling_power_control_point_span_length , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 13 : proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_cycling_power_control_point_content_mask , ett_btatt_value , hfx_btatt_cycling_power_control_point_content_mask , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 3 : case 5 : case 7 : case 9 : case 11 : case 12 : case 14 : case 15 : break ;\n case 32 : proto_tree_add_item ( tree , hf_btatt_cycling_power_control_point_request_opcode , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_cycling_power_control_point_response_value , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n switch ( tvb_get_guint8 ( tvb , offset - 2 ) ) {\n case 1 : case 2 : case 4 : case 6 : case 8 : case 10 : case 13 : break ;\n case 3 : if ( tvb_get_guint8 ( tvb , offset - 1 ) == 0x01 ) {\n while ( tvb_captured_length_remaining ( tvb , offset ) ) {\n proto_tree_add_item ( tree , hf_btatt_sensor_location , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n }\n break ;\n case 5 : if ( tvb_get_guint8 ( tvb , offset - 1 ) == 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_control_point_crank_length , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 7 : if ( tvb_get_guint8 ( tvb , offset - 1 ) == 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_control_point_chain_length , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 9 : if ( tvb_get_guint8 ( tvb , offset - 1 ) == 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_control_point_chain_weight , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 11 : if ( tvb_get_guint8 ( tvb , offset - 1 ) == 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_control_point_span_length , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 12 : if ( tvb_get_guint8 ( tvb , offset - 1 ) == 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_control_point_start_offset_compensation , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 14 : if ( tvb_get_guint8 ( tvb , offset - 1 ) == 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_cycling_power_control_point_sampling_rate , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n break ;\n case 15 : if ( tvb_get_guint8 ( tvb , offset - 1 ) == 0x01 ) {\n sub_item = proto_tree_add_item ( tree , hf_btatt_cycling_power_control_point_factory_calibration_date , tvb , offset , 7 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n proto_tree_add_item ( sub_tree , hf_btatt_year , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_month , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_day , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_hours , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_minutes , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_seconds , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n break ;\n }\n break ;\n }\n break ;\n case 0x2A67 : if ( service_uuid . bt_uuid == GATT_SERVICE_LOCATION_AND_NAVIGATION ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_location_and_speed_flags , ett_btatt_value , hfx_btatt_location_and_speed_flags , ENC_LITTLE_ENDIAN ) ;\n flags = tvb_get_guint16 ( tvb , offset , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( flags & 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_location_and_speed_instantaneous_speed , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x02 ) {\n proto_tree_add_item ( tree , hf_btatt_location_and_speed_total_distance , tvb , offset , 3 , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n }\n if ( flags & 0x04 ) {\n proto_tree_add_item ( tree , hf_btatt_location_and_speed_location_latitude , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_btatt_location_and_speed_location_longitude , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n }\n if ( flags & 0x08 ) {\n proto_tree_add_item ( tree , hf_btatt_location_and_speed_elevation , tvb , offset , 3 , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n }\n if ( flags & 0x10 ) {\n proto_tree_add_item ( tree , hf_btatt_location_and_speed_heading , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x20 ) {\n proto_tree_add_item ( tree , hf_btatt_location_and_speed_rolling_time , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x40 ) {\n sub_item = proto_tree_add_item ( tree , hf_btatt_location_and_speed_utc_time , tvb , offset , 7 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n proto_tree_add_item ( sub_tree , hf_btatt_year , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_month , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_day , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_hours , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_minutes , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_seconds , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n break ;\n case 0x2A68 : if ( service_uuid . bt_uuid == GATT_SERVICE_LOCATION_AND_NAVIGATION ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_navigation_flags , ett_btatt_value , hfx_btatt_navigation_flags , ENC_LITTLE_ENDIAN ) ;\n flags = tvb_get_guint16 ( tvb , offset , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_navigation_bearing , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_navigation_heading , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( flags & 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_navigation_remaining_distance , tvb , offset , 3 , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n }\n if ( flags & 0x02 ) {\n proto_tree_add_item ( tree , hf_btatt_navigation_remaining_vertical_distance , tvb , offset , 3 , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n }\n if ( flags & 0x04 ) {\n sub_item = proto_tree_add_item ( tree , hf_btatt_navigation_estimated_time_of_arrival , tvb , offset , 7 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n proto_tree_add_item ( sub_tree , hf_btatt_year , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_month , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_day , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_hours , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_minutes , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_seconds , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n break ;\n case 0x2A69 : if ( service_uuid . bt_uuid == GATT_SERVICE_LOCATION_AND_NAVIGATION ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_position_quality_flags , ett_btatt_value , hfx_btatt_position_quality_flags , ENC_LITTLE_ENDIAN ) ;\n flags = tvb_get_guint16 ( tvb , offset , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( flags & 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_position_quality_number_of_beacons_in_solution , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x02 ) {\n proto_tree_add_item ( tree , hf_btatt_position_quality_number_of_beacons_in_view , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x04 ) {\n proto_tree_add_item ( tree , hf_btatt_position_quality_time_to_first_fix , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x08 ) {\n proto_tree_add_item ( tree , hf_btatt_position_quality_ehpe , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n }\n if ( flags & 0x10 ) {\n proto_tree_add_item ( tree , hf_btatt_position_quality_evpe , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n }\n if ( flags & 0x20 ) {\n proto_tree_add_item ( tree , hf_btatt_position_quality_hdop , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x40 ) {\n proto_tree_add_item ( tree , hf_btatt_position_quality_vdop , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n break ;\n case 0x2A6A : if ( service_uuid . bt_uuid == GATT_SERVICE_LOCATION_AND_NAVIGATION ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_ln_feature , ett_btatt_value , hfx_btatt_ln_feature , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n break ;\n case 0x2A6B : if ( service_uuid . bt_uuid == GATT_SERVICE_LOCATION_AND_NAVIGATION ) {\n if ( is_writeable_response ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_ln_control_point_opcode , tvb , offset , 1 , ENC_NA ) ;\n opcode = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n switch ( opcode ) {\n case 1 : proto_tree_add_item ( tree , hf_btatt_ln_control_point_cumulative_value , tvb , offset , 3 , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n break ;\n case 2 : proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_ln_control_point_content_mask , ett_btatt_value , hfx_btatt_ln_control_point_content_mask , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 3 : proto_tree_add_item ( tree , hf_btatt_ln_control_point_navigation_control , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 4 : break ;\n case 5 : case 6 : proto_tree_add_item ( tree , hf_btatt_ln_control_point_route_number , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 7 : proto_tree_add_item ( tree , hf_btatt_ln_control_point_fix_rate , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 8 : proto_tree_add_item ( tree , hf_btatt_ln_control_point_elevation , tvb , offset , 3 , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n break ;\n case 32 : proto_tree_add_item ( tree , hf_btatt_ln_control_point_request_opcode , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_ln_control_point_response_value , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n switch ( tvb_get_guint8 ( tvb , offset - 2 ) ) {\n case 1 : case 2 : case 3 : case 6 : case 7 : case 8 : break ;\n case 4 : proto_tree_add_item ( tree , hf_btatt_ln_control_point_response_value_number_of_routes , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 5 : proto_tree_add_item ( tree , hf_btatt_ln_control_point_response_value_name_of_route , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n }\n break ;\n }\n break ;\n case 0x2A6C : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_elevation , tvb , offset , 3 , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n break ;\n case 0x2A6D : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_pressure , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n break ;\n case 0x2A6E : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_temperature , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A6F : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_humidity , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A70 : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_true_wind_speed , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A71 : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_true_wind_direction , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A72 : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_apparent_wind_speed , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A73 : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_apparent_wind_direction , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A74 : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_gust_factor , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A75 : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_pollen_concentration , tvb , offset , 3 , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n break ;\n case 0x2A76 : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_uv_index , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A77 : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_irradiance , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A78 : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_rainfall , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A79 : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_wind_chill , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A7A : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_heart_index , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A7B : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_dew_point , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A7D : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_descriptor_value_changed_flags , ett_btatt_value , hfx_btatt_descriptor_value_changed_flags , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( tvb_reported_length_remaining ( tvb , offset ) == 2 ) {\n proto_tree_add_item ( tree , hf_btatt_uuid16 , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n else if ( tvb_reported_length_remaining ( tvb , offset ) == 16 ) {\n proto_tree_add_item ( tree , hf_btatt_uuid128 , tvb , offset , 16 , ENC_NA ) ;\n offset += 16 ;\n }\n else {\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_bad_data ) ;\n offset = tvb_captured_length ( tvb ) ;\n }\n break ;\n case 0x2A7E : if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_aerobic_heart_rate_lower_limit , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A7F : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_aerobic_threshold , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A80 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_age , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A81 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_anaerobic_heart_rate_lower_limit , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A82 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_anaerobic_heart_rate_upper_limit , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A83 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_anaerobic_threshold , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A84 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_aerobic_heart_rate_upper_limit , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A85 : case 0x2A86 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_year , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_month , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_day , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A87 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_email_address , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2A88 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_fat_burn_heart_rate_lower_limit , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A89 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_fat_burn_heart_rate_upper_limit , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A8A : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_first_name , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2A8B : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_five_zone_heart_rate_limits_very_light_light_limit , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_five_zone_heart_rate_limits_light_moderate_limit , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_five_zone_heart_rate_limits_moderate_hard_limit , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_five_zone_heart_rate_limits_hard_maximum_limit , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A8C : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_gender , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A8D : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_heart_rate_max , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A8E : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_height , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A8F : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_hip_circumference , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A90 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_last_name , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2A91 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_maximum_recommended_heart_rate , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A92 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_resting_heart_rate , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A93 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_sport_type_for_aerobic_and_anaerobic_thresholds , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A94 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_three_zone_heart_rate_limits_light_moderate , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_three_zone_heart_rate_limits_moderate_hard , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A95 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_two_zone_heart_rate_limit_fat_burn_fitness , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A96 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_vo2_max , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A97 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_waist_circumference , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A98 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_weight , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2A99 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_database_change_increment , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n break ;\n case 0x2A9A : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_user_index , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2A9B : if ( service_uuid . bt_uuid == GATT_SERVICE_BODY_COMPOSITION ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_body_composition_feature , ett_btatt_value , hfx_btatt_body_composition_feature , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n break ;\n case 0x2A9C : if ( service_uuid . bt_uuid == GATT_SERVICE_BODY_COMPOSITION ) {\n if ( att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_body_composition_measurement_flags , ett_btatt_value , hfx_btatt_body_composition_measurement_flags , ENC_LITTLE_ENDIAN ) ;\n flags = tvb_get_guint16 ( tvb , offset , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_body_composition_measurement_body_fat_percentage , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( flags & 0x02 ) {\n sub_item = proto_tree_add_item ( tree , hf_btatt_body_composition_measurement_timestamp , tvb , offset , 7 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n proto_tree_add_item ( sub_tree , hf_btatt_year , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_month , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_day , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_hours , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_minutes , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_seconds , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x04 ) {\n proto_tree_add_item ( tree , hf_btatt_body_composition_measurement_user_id , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x08 ) {\n proto_tree_add_item ( sub_tree , hf_btatt_body_composition_measurement_basal_metabolism , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x10 ) {\n proto_tree_add_item ( sub_tree , hf_btatt_body_composition_measurement_muscle_percentage , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x20 ) {\n if ( flags & 0x01 ) proto_tree_add_item ( sub_tree , hf_btatt_body_composition_measurement_muscle_mass_lb , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n else proto_tree_add_item ( sub_tree , hf_btatt_body_composition_measurement_muscle_mass_kg , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x40 ) {\n if ( flags & 0x01 ) proto_tree_add_item ( sub_tree , hf_btatt_body_composition_measurement_fat_free_mass_lb , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n else proto_tree_add_item ( sub_tree , hf_btatt_body_composition_measurement_fat_free_mass_kg , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x80 ) {\n if ( flags & 0x01 ) proto_tree_add_item ( sub_tree , hf_btatt_body_composition_measurement_soft_lean_mass_lb , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n else proto_tree_add_item ( sub_tree , hf_btatt_body_composition_measurement_soft_lean_mass_kg , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x100 ) {\n if ( flags & 0x01 ) proto_tree_add_item ( sub_tree , hf_btatt_body_composition_measurement_body_water_mass_lb , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n else proto_tree_add_item ( sub_tree , hf_btatt_body_composition_measurement_body_water_mass_kg , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x200 ) {\n proto_tree_add_item ( sub_tree , hf_btatt_body_composition_measurement_impedance , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x400 ) {\n if ( flags & 0x01 ) proto_tree_add_item ( sub_tree , hf_btatt_body_composition_measurement_weight_lb , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n else proto_tree_add_item ( sub_tree , hf_btatt_body_composition_measurement_weight_kg , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x800 ) {\n if ( flags & 0x01 ) proto_tree_add_item ( sub_tree , hf_btatt_body_composition_measurement_height_inches , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n else proto_tree_add_item ( sub_tree , hf_btatt_body_composition_measurement_height_meter , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x2A9D : if ( service_uuid . bt_uuid == GATT_SERVICE_WEIGHT_SCALE ) {\n if ( is_writeable_response ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_weight_measurement_flags , ett_btatt_value , hfx_btatt_weight_measurement_flags , ENC_NA ) ;\n flags = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n if ( flags & 0x01 ) proto_tree_add_item ( tree , hf_btatt_weight_measurement_weight_lb , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n else proto_tree_add_item ( tree , hf_btatt_weight_measurement_weight_kg , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( flags & 0x02 ) {\n sub_item = proto_tree_add_item ( tree , hf_btatt_weight_measurement_timestamp , tvb , offset , 7 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n proto_tree_add_item ( sub_tree , hf_btatt_year , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_month , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_day , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_hours , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_minutes , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_seconds , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x04 ) {\n proto_tree_add_item ( tree , hf_btatt_weight_measurement_user_id , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x08 ) {\n proto_tree_add_item ( sub_tree , hf_btatt_weight_measurement_bmi , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( flags & 0x01 ) proto_tree_add_item ( sub_tree , hf_btatt_weight_measurement_height_in , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n else proto_tree_add_item ( sub_tree , hf_btatt_weight_measurement_height_m , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x2A9E : if ( service_uuid . bt_uuid == GATT_SERVICE_WEIGHT_SCALE ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_weight_scale_feature , ett_btatt_value , hfx_btatt_weight_scale_feature , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n break ;\n case 0x2A9F : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_writeable_response ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_user_control_point_opcode , tvb , offset , 1 , ENC_NA ) ;\n opcode = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n switch ( opcode ) {\n case 0x01 : sub_item = proto_tree_add_item ( tree , hf_btatt_user_control_point_consent_code , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n value = tvb_get_guint16 ( tvb , offset , ENC_LITTLE_ENDIAN ) ;\n if ( value > 9999 ) expert_add_info ( pinfo , sub_item , & ei_btatt_consent_out_of_bounds ) ;\n offset += 2 ;\n break ;\n case 0x02 : proto_tree_add_item ( tree , hf_btatt_user_index , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_user_control_point_consent_code , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n value = tvb_get_guint16 ( tvb , offset , ENC_LITTLE_ENDIAN ) ;\n if ( value > 9999 ) expert_add_info ( pinfo , sub_item , & ei_btatt_consent_out_of_bounds ) ;\n offset += 2 ;\n break ;\n case 0x03 : break ;\n case 0x20 : proto_tree_add_item ( tree , hf_btatt_user_control_point_request_opcode , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_user_control_point_response_value , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n if ( tvb_get_guint8 ( tvb , offset - 2 ) == 0x01 && tvb_get_guint8 ( tvb , offset - 1 ) == 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_user_index , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n break ;\n }\n break ;\n case 0x2AA0 : case 0x2AA1 : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_magnetic_flux_density_x , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_magnetic_flux_density_y , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( uuid . bt_uuid == 0x2AA1 ) {\n proto_tree_add_item ( tree , hf_btatt_magnetic_flux_density_z , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x2AA2 : if ( service_uuid . bt_uuid == GATT_SERVICE_USER_DATA ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_language , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2AA3 : if ( service_uuid . bt_uuid == GATT_SERVICE_ENVIRONMENTAL_SENSING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_barometric_pressure_trend , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2AA4 : if ( service_uuid . bt_uuid == GATT_SERVICE_BOND_MANAGEMENT ) {\n if ( is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_bond_management_control_point_opcode , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n proto_tree_add_item ( tree , hf_btatt_bond_management_control_point_authorization_code , tvb , offset , length - 1 , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_reported_length_remaining ( tvb , offset ) ;\n }\n break ;\n case 0x2AA5 : if ( service_uuid . bt_uuid == GATT_SERVICE_BOND_MANAGEMENT ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_bond_management_feature , ett_btatt_value , hfx_btatt_bond_management_feature , ENC_LITTLE_ENDIAN ) ;\n flags = tvb_get_guint24 ( tvb , offset , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n if ( flags & 0x800000 ) {\n do {\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_bond_management_feature_nth , ett_btatt_value , hfx_btatt_bond_management_feature_nth , ENC_LITTLE_ENDIAN ) ;\n offset += 1 ;\n }\n while ( tvb_get_guint8 ( tvb , offset - 1 ) & 0x80 ) ;\n }\n break ;\n case 0x2AA6 : if ( service_uuid . bt_uuid == GATT_SERVICE_GENERIC_ACCESS_PROFILE ) {\n if ( ! ( is_readable_request ( att_data -> opcode ) || is_readable_response ( att_data -> opcode ) ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_central_address_resolution , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2AA7 : if ( service_uuid . bt_uuid == GATT_SERVICE_CONTINUOUS_GLUCOSE_MONITORING ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_cgm_measurement_size , tvb , offset , 1 , ENC_NA ) ;\n if ( tvb_get_guint8 ( tvb , offset ) >= 6 ) expert_add_info ( pinfo , sub_item , & ei_btatt_cgm_size_too_small ) ;\n offset += 1 ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_cgm_measurement_flags , ett_btatt_value , hfx_btatt_cgm_measurement_flags , ENC_NA ) ;\n flags = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_cgm_measurement_glucose_concentration , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( tree , hf_btatt_cgm_measurement_time_offset , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( flags & 0xE0 ) {\n value = 0 ;\n if ( flags & 0x80 ) value += 1 ;\n if ( flags & 0x40 ) value += 1 ;\n if ( flags & 0x20 ) value += 1 ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_cgm_sensor_status_annunciation , tvb , offset , value , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n }\n if ( flags & 0x80 ) {\n proto_tree_add_bitmask ( sub_tree , tvb , offset , hf_btatt_cgm_sensor_status_annunciation_status , ett_btatt_value , hfx_btatt_cgm_sensor_status_annunciation_status , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x40 ) {\n proto_tree_add_bitmask ( sub_tree , tvb , offset , hf_btatt_cgm_sensor_status_annunciation_cal_temp , ett_btatt_value , hfx_btatt_cgm_sensor_status_annunciation_cal_temp , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x20 ) {\n proto_tree_add_bitmask ( sub_tree , tvb , offset , hf_btatt_cgm_sensor_status_annunciation_warning , ett_btatt_value , hfx_btatt_cgm_sensor_status_annunciation_warning , ENC_NA ) ;\n offset += 1 ;\n }\n if ( flags & 0x01 ) {\n proto_tree_add_item ( tree , hf_btatt_cgm_measurement_trend_information , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( flags & 0x02 ) {\n proto_tree_add_item ( tree , hf_btatt_cgm_measurement_quality , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n if ( tvb_reported_length_remaining ( tvb , offset ) >= 2 ) {\n proto_tree_add_item ( tree , hf_btatt_cgm_e2e_crc , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x2AA8 : if ( service_uuid . bt_uuid == GATT_SERVICE_CONTINUOUS_GLUCOSE_MONITORING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_cgm_feature_feature , ett_btatt_value , hfx_btatt_cgm_feature_feature , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_cgm_type_and_sample_location , ett_btatt_value , hfx_btatt_cgm_type_and_sample_location , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_cgm_e2e_crc , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2AA9 : if ( service_uuid . bt_uuid == GATT_SERVICE_CONTINUOUS_GLUCOSE_MONITORING ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_cgm_time_offset , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_cgm_status , tvb , offset , 3 , ENC_LITTLE_ENDIAN ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n proto_tree_add_bitmask ( sub_tree , tvb , offset , hf_btatt_cgm_sensor_status_annunciation_status , ett_btatt_value , hfx_btatt_cgm_sensor_status_annunciation_status , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_bitmask ( sub_tree , tvb , offset , hf_btatt_cgm_sensor_status_annunciation_cal_temp , ett_btatt_value , hfx_btatt_cgm_sensor_status_annunciation_cal_temp , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_bitmask ( sub_tree , tvb , offset , hf_btatt_cgm_sensor_status_annunciation_warning , ett_btatt_value , hfx_btatt_cgm_sensor_status_annunciation_warning , ENC_NA ) ;\n offset += 1 ;\n if ( tvb_reported_length_remaining ( tvb , offset ) >= 2 ) {\n proto_tree_add_item ( tree , hf_btatt_cgm_e2e_crc , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x2AAA : if ( service_uuid . bt_uuid == GATT_SERVICE_CONTINUOUS_GLUCOSE_MONITORING ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_cgm_session_start_time , tvb , offset , 7 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n proto_tree_add_item ( sub_tree , hf_btatt_year , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_month , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_day , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_hours , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_minutes , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_seconds , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_timezone , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_dst_offset , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n if ( tvb_reported_length_remaining ( tvb , offset ) >= 2 ) {\n proto_tree_add_item ( tree , hf_btatt_cgm_e2e_crc , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x2AAB : if ( service_uuid . bt_uuid == GATT_SERVICE_CONTINUOUS_GLUCOSE_MONITORING ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_cgm_session_run_time , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( tvb_reported_length_remaining ( tvb , offset ) >= 2 ) {\n proto_tree_add_item ( tree , hf_btatt_cgm_e2e_crc , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x2AAC : if ( service_uuid . bt_uuid == GATT_SERVICE_CONTINUOUS_GLUCOSE_MONITORING ) {\n if ( is_writeable_response ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_cgm_specific_ops_control_point_opcode , tvb , offset , 1 , ENC_NA ) ;\n opcode = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_cgm_specific_ops_control_point_operand , tvb , offset , 0 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_list ) ;\n operand_offset = offset ;\n switch ( opcode ) {\n case 1 : proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_operand_communication_interval , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 2 : case 8 : case 11 : case 14 : case 17 : case 20 : case 23 : case 25 : case 26 : case 27 : break ;\n case 4 : proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_calibration_glucose_concentration , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_calibration_time , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_bitmask ( sub_tree , tvb , offset , hf_btatt_cgm_type_and_sample_location , ett_btatt_value , hfx_btatt_cgm_type_and_sample_location , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_next_calibration_time , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_calibration_data_record_number , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_bitmask ( sub_tree , tvb , offset , hf_btatt_cgm_specific_ops_control_point_calibration_status , ett_btatt_value , hfx_btatt_cgm_specific_ops_control_point_calibration_status , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 5 : proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_operand_calibration_data_record_number , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 7 : case 10 : case 13 : case 16 : proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_operand_alert_level , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 19 : case 22 : proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_operand_alert_level_rate , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 3 : case 6 : case 9 : case 12 : case 15 : case 18 : case 21 : case 24 : expert_add_info ( pinfo , sub_item , & ei_btatt_opcode_invalid_request ) ;\n break ;\n case 28 : proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_request_opcode , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_response_code , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n switch ( tvb_get_guint8 ( tvb , offset - 2 ) ) {\n case 1 : case 2 : case 4 : case 5 : case 7 : case 8 : case 10 : case 11 : case 13 : case 14 : case 16 : case 17 : case 19 : case 20 : case 22 : case 23 : case 25 : case 26 : case 27 : expert_add_info ( pinfo , sub_item , & ei_btatt_opcode_invalid_response ) ;\n break ;\n case 3 : proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_operand_communication_interval , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 6 : proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_calibration_glucose_concentration , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_calibration_time , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_bitmask ( sub_tree , tvb , offset , hf_btatt_cgm_type_and_sample_location , ett_btatt_value , hfx_btatt_cgm_type_and_sample_location , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_next_calibration_time , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_calibration_data_record_number , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_bitmask ( sub_tree , tvb , offset , hf_btatt_cgm_specific_ops_control_point_calibration_status , ett_btatt_value , hfx_btatt_cgm_specific_ops_control_point_calibration_status , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 9 : case 12 : case 15 : case 18 : proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_operand_alert_level , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 21 : case 24 : proto_tree_add_item ( sub_tree , hf_btatt_cgm_specific_ops_control_point_operand_alert_level_rate , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n }\n break ;\n }\n ;\n proto_item_set_len ( sub_item , offset - operand_offset ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) >= 2 ) {\n proto_tree_add_item ( tree , hf_btatt_cgm_e2e_crc , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n break ;\n case 0x2AAD : if ( service_uuid . bt_uuid == GATT_SERVICE_INDOOR_POSITIONING ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_WRITE_COMMAND ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_indoor_positioning_configuration , ett_btatt_value , hfx_btatt_indoor_positioning_configuration , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2AAE : if ( service_uuid . bt_uuid == GATT_SERVICE_INDOOR_POSITIONING ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_WRITE_COMMAND ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_latitude , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n break ;\n case 0x2AAF : if ( service_uuid . bt_uuid == GATT_SERVICE_INDOOR_POSITIONING ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_WRITE_COMMAND ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_longitude , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n break ;\n case 0x2AB0 : if ( service_uuid . bt_uuid == GATT_SERVICE_INDOOR_POSITIONING ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_WRITE_COMMAND ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_local_north_coordinate , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2AB1 : if ( service_uuid . bt_uuid == GATT_SERVICE_INDOOR_POSITIONING ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_WRITE_COMMAND ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_local_east_coordinate , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2AB2 : if ( service_uuid . bt_uuid == GATT_SERVICE_INDOOR_POSITIONING ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_WRITE_COMMAND ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_floor_number , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2AB3 : if ( service_uuid . bt_uuid == GATT_SERVICE_INDOOR_POSITIONING ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_WRITE_COMMAND ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_altitude , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n break ;\n case 0x2AB4 : if ( service_uuid . bt_uuid == GATT_SERVICE_INDOOR_POSITIONING ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_WRITE_COMMAND ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_uncertainty , ett_btatt_value , hfx_btatt_uncertainty , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2AB5 : if ( service_uuid . bt_uuid == GATT_SERVICE_INDOOR_POSITIONING ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_WRITE_COMMAND ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_location_name , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2AB6 : if ( service_uuid . bt_uuid == GATT_SERVICE_HTTP_PROXY ) {\n if ( is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_uri , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2AB7 : if ( service_uuid . bt_uuid == GATT_SERVICE_HTTP_PROXY ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_http_headers , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_value ) ;\n call_dissector ( http_handle , tvb_new_subset_remaining ( tvb , offset ) , pinfo , sub_tree ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2AB8 : if ( service_uuid . bt_uuid == GATT_SERVICE_HTTP_PROXY ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_http_status_code , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_http_data_status , ett_btatt_value , hfx_btatt_http_data_status , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2AB9 : if ( service_uuid . bt_uuid == GATT_SERVICE_HTTP_PROXY ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_http_entity_body , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2ABA : if ( service_uuid . bt_uuid == GATT_SERVICE_HTTP_PROXY ) {\n if ( is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_http_control_point_opcode , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2ABB : if ( service_uuid . bt_uuid == GATT_SERVICE_HTTP_PROXY ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_https_security , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2ABC : if ( service_uuid . bt_uuid == GATT_SERVICE_TRANSPORT_DISCOVERY ) {\n if ( is_writeable_response ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_tds_opcode , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n if ( att_data -> opcode == 0x1B || att_data -> opcode == 0x1D ) {\n proto_tree_add_item ( tree , hf_btatt_tds_result_code , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n else {\n proto_tree_add_item ( tree , hf_btatt_tds_organization_id , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n proto_tree_add_item ( tree , hf_btatt_tds_data , tvb , offset , tvb_reported_length_remaining ( tvb , offset ) , ENC_NA ) ;\n offset += tvb_reported_length_remaining ( tvb , offset ) ;\n }\n break ;\n case 0x2ABD : if ( service_uuid . bt_uuid == GATT_SERVICE_OBJECT_TRANSFER ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_ots_feature_oacp , ett_btatt_value , hfx_btatt_ots_feature_oacp , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_ots_feature_olcp , ett_btatt_value , hfx_btatt_ots_feature_olcp , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n break ;\n case 0x2ABE : if ( service_uuid . bt_uuid == GATT_SERVICE_OBJECT_TRANSFER ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_ots_object_name , tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_captured_length_remaining ( tvb , offset ) ;\n break ;\n case 0x2ABF : if ( service_uuid . bt_uuid == GATT_SERVICE_OBJECT_TRANSFER ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n offset = dissect_gatt_uuid ( tree , pinfo , tvb , offset ) ;\n break ;\n case 0x2AC0 : if ( service_uuid . bt_uuid == GATT_SERVICE_OBJECT_TRANSFER ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_ots_current_size , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_btatt_ots_allocated_size , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n break ;\n case 0x2AC1 : if ( service_uuid . bt_uuid == GATT_SERVICE_OBJECT_TRANSFER ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_ots_object_first_created , tvb , offset , 7 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_value ) ;\n call_dissector_with_data ( find_dissector ( \"btgatt.uuid0x2a08\" ) , tvb_new_subset_length_caplen ( tvb , offset , 7 , 7 ) , pinfo , sub_tree , att_data ) ;\n offset += 7 ;\n break ;\n case 0x2AC2 : if ( service_uuid . bt_uuid == GATT_SERVICE_OBJECT_TRANSFER ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_ots_object_last_modified , tvb , offset , 7 , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btatt_value ) ;\n call_dissector_with_data ( find_dissector ( \"btgatt.uuid0x2a08\" ) , tvb_new_subset_length_caplen ( tvb , offset , 7 , 7 ) , pinfo , sub_tree , att_data ) ;\n offset += 7 ;\n break ;\n case 0x2AC3 : if ( service_uuid . bt_uuid == GATT_SERVICE_OBJECT_TRANSFER ) {\n if ( is_readable_request ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_ots_object_id , tvb , offset , 6 , ENC_LITTLE_ENDIAN ) ;\n offset += 6 ;\n break ;\n case 0x2AC4 : if ( service_uuid . bt_uuid == GATT_SERVICE_OBJECT_TRANSFER ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_ots_properties , ett_btatt_value , hfx_btatt_ots_properties , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n break ;\n case 0x2AC5 : if ( service_uuid . bt_uuid == GATT_SERVICE_OBJECT_TRANSFER ) {\n if ( is_writeable_response ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_ots_action_opcode , tvb , offset , 1 , ENC_NA ) ;\n opcode = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n switch ( opcode ) {\n case 0x01 : proto_tree_add_item ( tree , hf_btatt_ots_size , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n offset = dissect_gatt_uuid ( tree , pinfo , tvb , offset ) ;\n break ;\n case 0x02 : case 0x07 : break ;\n case 0x03 : case 0x05 : case 0x06 : proto_tree_add_item ( tree , hf_btatt_ots_offset , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_btatt_ots_length , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n break ;\n case 0x04 : if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n proto_tree_add_item ( tree , hf_btatt_ots_execute_data , tvb , offset , tvb_reported_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_reported_length_remaining ( tvb , offset ) ;\n }\n break ;\n case 0x60 : proto_tree_add_item ( tree , hf_btatt_ots_action_response_opcode , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_ots_action_result_code , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n switch ( tvb_get_guint8 ( tvb , offset ) ) {\n case 0x01 : case 0x02 : case 0x05 : case 0x06 : case 0x07 : case 0x60 : break ;\n case 0x03 : proto_tree_add_checksum ( tree , tvb , offset , hf_btatt_ots_checksum , - 1 , NULL , pinfo , 0 , ENC_BIG_ENDIAN , PROTO_CHECKSUM_NO_FLAGS ) ;\n offset += 4 ;\n break ;\n case 0x04 : if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n proto_tree_add_item ( tree , hf_btatt_ots_execute_data , tvb , offset , tvb_reported_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_reported_length_remaining ( tvb , offset ) ;\n }\n break ;\n }\n }\n break ;\n case 0x2AC6 : if ( service_uuid . bt_uuid == GATT_SERVICE_OBJECT_TRANSFER ) {\n if ( is_writeable_response ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_ots_list_opcode , tvb , offset , 1 , ENC_NA ) ;\n opcode = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n switch ( opcode ) {\n case 0x01 : case 0x02 : case 0x03 : case 0x04 : case 0x07 : case 0x08 : break ;\n case 0x05 : proto_tree_add_item ( tree , hf_btatt_ots_object_id , tvb , offset , 6 , ENC_LITTLE_ENDIAN ) ;\n offset += 6 ;\n break ;\n case 0x06 : proto_tree_add_item ( tree , hf_btatt_ots_list_order , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x70 : proto_tree_add_item ( tree , hf_btatt_ots_list_response_opcode , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_ots_list_result_code , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n switch ( tvb_get_guint8 ( tvb , offset - 2 ) ) {\n case 0x01 : case 0x02 : case 0x03 : case 0x04 : case 0x05 : case 0x06 : case 0x08 : case 0x70 : break ;\n case 0x07 : proto_tree_add_item ( tree , hf_btatt_ots_list_total_number_of_objects , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n }\n }\n break ;\n case 0x2AC7 : if ( service_uuid . bt_uuid == GATT_SERVICE_OBJECT_TRANSFER ) {\n if ( is_readable_request ( att_data -> opcode ) || is_writeable_response ( att_data -> opcode ) ) break ;\n if ( ! is_readable_response ( att_data -> opcode ) && ! is_writeable_request ( att_data -> opcode ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_ots_filter , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n switch ( tvb_get_guint8 ( tvb , offset - 1 ) ) {\n case 0x00 : case 0x0A : break ;\n case 0x01 : case 0x02 : case 0x03 : case 0x04 : proto_tree_add_item ( tree , hf_btatt_ots_name_string , tvb , offset , tvb_reported_length_remaining ( tvb , offset ) , ENC_NA | ENC_UTF_8 ) ;\n offset += tvb_reported_length_remaining ( tvb , offset ) ;\n break ;\n case 0x05 : offset = dissect_gatt_uuid ( tree , pinfo , tvb , offset ) ;\n break ;\n case 0x06 : case 0x07 : call_dissector_with_data ( find_dissector ( \"btgatt.uuid0x2a08\" ) , tvb_new_subset_length_caplen ( tvb , offset , 7 , 7 ) , pinfo , tree , att_data ) ;\n offset += 7 ;\n call_dissector_with_data ( find_dissector ( \"btgatt.uuid0x2a08\" ) , tvb_new_subset_length_caplen ( tvb , offset , 7 , 7 ) , pinfo , tree , att_data ) ;\n offset += 7 ;\n break ;\n case 0x08 : case 0x09 : proto_tree_add_item ( tree , hf_btatt_ots_size_from , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_btatt_ots_size_to , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n break ;\n }\n break ;\n case 0x2AC8 : if ( service_uuid . bt_uuid == GATT_SERVICE_OBJECT_TRANSFER ) {\n if ( att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_btatt_ots_flags , ett_btatt_value , hfx_btatt_ots_flags , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_btatt_ots_object_id , tvb , offset , 6 , ENC_LITTLE_ENDIAN ) ;\n offset += 6 ;\n break ;\n case 0x2AC9 : if ( service_uuid . bt_uuid == GATT_SERVICE_GENERIC_ACCESS_PROFILE ) {\n if ( ! ( is_readable_request ( att_data -> opcode ) || is_readable_response ( att_data -> opcode ) ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_resolvable_private_address , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n break ;\n case 0x2ACC : if ( service_uuid . bt_uuid == GATT_SERVICE_FITNESS_MACHINE ) {\n if ( ! ( is_readable_request ( att_data -> opcode ) || is_readable_response ( att_data -> opcode ) ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_undecoded ) ;\n offset = tvb_captured_length ( tvb ) ;\n break ;\n case 0x2ACD : if ( service_uuid . bt_uuid == GATT_SERVICE_FITNESS_MACHINE ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_undecoded ) ;\n offset = tvb_captured_length ( tvb ) ;\n break ;\n case 0x2ACE : if ( service_uuid . bt_uuid == GATT_SERVICE_FITNESS_MACHINE ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_undecoded ) ;\n offset = tvb_captured_length ( tvb ) ;\n break ;\n case 0x2ACF : if ( service_uuid . bt_uuid == GATT_SERVICE_FITNESS_MACHINE ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_undecoded ) ;\n offset = tvb_captured_length ( tvb ) ;\n break ;\n case 0x2AD0 : if ( service_uuid . bt_uuid == GATT_SERVICE_FITNESS_MACHINE ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_undecoded ) ;\n offset = tvb_captured_length ( tvb ) ;\n break ;\n case 0x2AD1 : if ( service_uuid . bt_uuid == GATT_SERVICE_FITNESS_MACHINE ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_undecoded ) ;\n offset = tvb_captured_length ( tvb ) ;\n break ;\n case 0x2AD2 : if ( service_uuid . bt_uuid == GATT_SERVICE_FITNESS_MACHINE ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_undecoded ) ;\n offset = tvb_captured_length ( tvb ) ;\n break ;\n case 0x2AD3 : if ( service_uuid . bt_uuid == GATT_SERVICE_FITNESS_MACHINE ) {\n if ( ! ( is_readable_request ( att_data -> opcode ) || is_readable_response ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_undecoded ) ;\n offset = tvb_captured_length ( tvb ) ;\n break ;\n case 0x2AD4 : if ( service_uuid . bt_uuid == GATT_SERVICE_FITNESS_MACHINE ) {\n if ( ! ( is_readable_request ( att_data -> opcode ) || is_readable_response ( att_data -> opcode ) ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_undecoded ) ;\n offset = tvb_captured_length ( tvb ) ;\n break ;\n case 0x2AD5 : if ( service_uuid . bt_uuid == GATT_SERVICE_FITNESS_MACHINE ) {\n if ( ! ( is_readable_request ( att_data -> opcode ) || is_readable_response ( att_data -> opcode ) ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_undecoded ) ;\n offset = tvb_captured_length ( tvb ) ;\n break ;\n case 0x2AD6 : if ( service_uuid . bt_uuid == GATT_SERVICE_FITNESS_MACHINE ) {\n if ( ! ( is_readable_request ( att_data -> opcode ) || is_readable_response ( att_data -> opcode ) ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_undecoded ) ;\n offset = tvb_captured_length ( tvb ) ;\n break ;\n case 0x2AD7 : if ( service_uuid . bt_uuid == GATT_SERVICE_FITNESS_MACHINE ) {\n if ( ! ( is_readable_request ( att_data -> opcode ) || is_readable_response ( att_data -> opcode ) ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_undecoded ) ;\n offset = tvb_captured_length ( tvb ) ;\n break ;\n case 0x2AD8 : if ( service_uuid . bt_uuid == GATT_SERVICE_FITNESS_MACHINE ) {\n if ( ! ( is_readable_request ( att_data -> opcode ) || is_readable_response ( att_data -> opcode ) ) ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_undecoded ) ;\n offset = tvb_captured_length ( tvb ) ;\n break ;\n case 0x2AD9 : if ( service_uuid . bt_uuid == GATT_SERVICE_FITNESS_MACHINE ) {\n if ( is_writeable_response ( att_data -> opcode ) || att_data -> opcode == ATT_OPCODE_HANDLE_VALUE_CONFIRMATION ) break ;\n if ( ! is_writeable_request ( att_data -> opcode ) && att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_INDICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_undecoded ) ;\n offset = tvb_captured_length ( tvb ) ;\n break ;\n case 0x2ADA : if ( service_uuid . bt_uuid == GATT_SERVICE_FITNESS_MACHINE ) {\n if ( att_data -> opcode != ATT_OPCODE_HANDLE_VALUE_NOTIFICATION ) expert_add_info ( pinfo , tree , & ei_btatt_invalid_usage ) ;\n }\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n sub_item = proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n expert_add_info ( pinfo , sub_item , & ei_btatt_undecoded ) ;\n offset = tvb_captured_length ( tvb ) ;\n break ;\n case 0x2A1F : case 0x2A20 : case 0x2A2F : case 0x2A30 : case 0x2A3A : case 0x2A3B : case 0x2A3C : case 0x2A3D : case 0x2A3E : case 0x2A57 : case 0x2A59 : case 0x2ADB : case 0x2ADC : case 0x2ADD : case 0x2ADE : case 0x2AE0 : case 0x2AE1 : case 0x2AE2 : case 0x2AE3 : case 0x2AE4 : case 0x2AE5 : case 0x2AE6 : case 0x2AE7 : case 0x2AE8 : case 0x2AE9 : case 0x2AEA : case 0x2AEB : case 0x2AEC : case 0x2AED : case 0x2AEE : case 0x2AEF : case 0x2AF0 : case 0x2AF1 : case 0x2AF2 : case 0x2AF3 : case 0x2AF4 : case 0x2AF5 : case 0x2AF6 : case 0x2AF7 : case 0x2AF8 : case 0x2AF9 : case 0x2AFA : case 0x2AFB : case 0x2AFC : case 0x2AFD : case 0x2AFE : case 0x2AFF : case 0x2B00 : case 0x2B01 : case 0x2B02 : case 0x2B03 : case 0x2B04 : case 0x2B05 : case 0x2B06 : case 0x2B07 : case 0x2B08 : case 0x2B09 : case 0x2B0A : case 0x2B0B : case 0x2B0C : case 0x2B0D : case 0x2B0E : case 0x2B0F : case 0x2B10 : case 0x2B11 : case 0x2B12 : case 0x2B13 : case 0x2B14 : case 0x2B15 : case 0x2B16 : case 0x2B17 : case 0x2B18 : case 0x2B19 : case 0x2B1A : case 0x2B1B : case 0x2B1C : case 0x2B1D : case 0x2B1E : case 0x2B1F : default : if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) break ;\n proto_tree_add_item ( tree , hf_btatt_value , tvb , offset , - 1 , ENC_NA ) ;\n offset = tvb_captured_length ( tvb ) ;\n }\n return old_offset + offset ;\n }"}
{"idx": 13961, "target": 0, "func": "static void default_print_section_footer ( WriterContext * wctx ) {\n DefaultContext * def = wctx -> priv ;\n const struct section * section = wctx -> section [ wctx -> level ] ;\n char buf [ 32 ] ;\n if ( def -> noprint_wrappers || def -> nested_section [ wctx -> level ] ) return ;\n if ( ! ( section -> flags & ( SECTION_FLAG_IS_WRAPPER | SECTION_FLAG_IS_ARRAY ) ) ) printf ( \"[/%s]\\n\" , upcase_string ( buf , sizeof ( buf ) , section -> name ) ) ;\n }"}
{"idx": 13962, "target": 0, "func": "void hb_set_set ( hb_set_t * set , const hb_set_t * other ) {\n set -> set ( other ) ;\n }"}
{"idx": 13963, "target": 0, "func": "static VALUE ossl_asn1_ ## klass ( int argc , VALUE * argv , VALUE self ) \\ {\n return rb_funcall3 ( cASN1 ## klass , rb_intern ( \"new\" ) , argc , argv ) ;\n }\n OSSL_ASN1_IMPL_FACTORY_METHOD ( Boolean ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Integer ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Enumerated ) OSSL_ASN1_IMPL_FACTORY_METHOD ( BitString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( OctetString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( UTF8String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( NumericString )"}
{"idx": 13964, "target": 0, "func": "static Datum ExecEvalArrayRef ( ArrayRefExprState * astate , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n ArrayRef * arrayRef = ( ArrayRef * ) astate -> xprstate . expr ;\n Datum array_source ;\n bool isAssignment = ( arrayRef -> refassgnexpr != NULL ) ;\n bool eisnull ;\n ListCell * l ;\n int i = 0 , j = 0 ;\n IntArray upper , lower ;\n bool upperProvided [ MAXDIM ] , lowerProvided [ MAXDIM ] ;\n int * lIndex ;\n array_source = ExecEvalExpr ( astate -> refexpr , econtext , isNull , isDone ) ;\n if ( * isNull ) {\n if ( isDone && * isDone == ExprEndResult ) return ( Datum ) NULL ;\n if ( ! isAssignment ) return ( Datum ) NULL ;\n }\n foreach ( l , astate -> refupperindexpr ) {\n ExprState * eltstate = ( ExprState * ) lfirst ( l ) ;\n if ( i >= MAXDIM ) ereport ( ERROR , ( errcode ( ERRCODE_PROGRAM_LIMIT_EXCEEDED ) , errmsg ( \"number of array dimensions (%d) exceeds the maximum allowed (%d)\" , i + 1 , MAXDIM ) ) ) ;\n if ( eltstate == NULL ) {\n Assert ( astate -> reflowerindexpr != NIL ) ;\n upperProvided [ i ++ ] = false ;\n continue ;\n }\n upperProvided [ i ] = true ;\n upper . indx [ i ++ ] = DatumGetInt32 ( ExecEvalExpr ( eltstate , econtext , & eisnull , NULL ) ) ;\n if ( eisnull ) {\n if ( isAssignment ) ereport ( ERROR , ( errcode ( ERRCODE_NULL_VALUE_NOT_ALLOWED ) , errmsg ( \"array subscript in assignment must not be null\" ) ) ) ;\n * isNull = true ;\n return ( Datum ) NULL ;\n }\n }\n if ( astate -> reflowerindexpr != NIL ) {\n foreach ( l , astate -> reflowerindexpr ) {\n ExprState * eltstate = ( ExprState * ) lfirst ( l ) ;\n if ( j >= MAXDIM ) ereport ( ERROR , ( errcode ( ERRCODE_PROGRAM_LIMIT_EXCEEDED ) , errmsg ( \"number of array dimensions (%d) exceeds the maximum allowed (%d)\" , j + 1 , MAXDIM ) ) ) ;\n if ( eltstate == NULL ) {\n lowerProvided [ j ++ ] = false ;\n continue ;\n }\n lowerProvided [ j ] = true ;\n lower . indx [ j ++ ] = DatumGetInt32 ( ExecEvalExpr ( eltstate , econtext , & eisnull , NULL ) ) ;\n if ( eisnull ) {\n if ( isAssignment ) ereport ( ERROR , ( errcode ( ERRCODE_NULL_VALUE_NOT_ALLOWED ) , errmsg ( \"array subscript in assignment must not be null\" ) ) ) ;\n * isNull = true ;\n return ( Datum ) NULL ;\n }\n }\n if ( i != j ) elog ( ERROR , \"upper and lower index lists are not same length\" ) ;\n lIndex = lower . indx ;\n }\n else lIndex = NULL ;\n if ( isAssignment ) {\n Datum sourceData ;\n Datum save_datum ;\n bool save_isNull ;\n save_datum = econtext -> caseValue_datum ;\n save_isNull = econtext -> caseValue_isNull ;\n if ( isAssignmentIndirectionExpr ( astate -> refassgnexpr ) ) {\n if ( * isNull ) {\n econtext -> caseValue_datum = ( Datum ) 0 ;\n econtext -> caseValue_isNull = true ;\n }\n else if ( lIndex == NULL ) {\n econtext -> caseValue_datum = array_get_element ( array_source , i , upper . indx , astate -> refattrlength , astate -> refelemlength , astate -> refelembyval , astate -> refelemalign , & econtext -> caseValue_isNull ) ;\n }\n else {\n econtext -> caseValue_datum = array_get_slice ( array_source , i , upper . indx , lower . indx , upperProvided , lowerProvided , astate -> refattrlength , astate -> refelemlength , astate -> refelembyval , astate -> refelemalign ) ;\n econtext -> caseValue_isNull = false ;\n }\n }\n else {\n econtext -> caseValue_datum = ( Datum ) 0 ;\n econtext -> caseValue_isNull = true ;\n }\n sourceData = ExecEvalExpr ( astate -> refassgnexpr , econtext , & eisnull , NULL ) ;\n econtext -> caseValue_datum = save_datum ;\n econtext -> caseValue_isNull = save_isNull ;\n if ( astate -> refattrlength > 0 ) if ( eisnull || * isNull ) return array_source ;\n if ( * isNull ) {\n array_source = PointerGetDatum ( construct_empty_array ( arrayRef -> refelemtype ) ) ;\n * isNull = false ;\n }\n if ( lIndex == NULL ) return array_set_element ( array_source , i , upper . indx , sourceData , eisnull , astate -> refattrlength , astate -> refelemlength , astate -> refelembyval , astate -> refelemalign ) ;\n else return array_set_slice ( array_source , i , upper . indx , lower . indx , upperProvided , lowerProvided , sourceData , eisnull , astate -> refattrlength , astate -> refelemlength , astate -> refelembyval , astate -> refelemalign ) ;\n }\n if ( lIndex == NULL ) return array_get_element ( array_source , i , upper . indx , astate -> refattrlength , astate -> refelemlength , astate -> refelembyval , astate -> refelemalign , isNull ) ;\n else return array_get_slice ( array_source , i , upper . indx , lower . indx , upperProvided , lowerProvided , astate -> refattrlength , astate -> refelemlength , astate -> refelembyval , astate -> refelemalign ) ;\n }"}
{"idx": 13965, "target": 0, "func": "static void matroska_parse_cues ( MatroskaDemuxContext * matroska ) {\n EbmlList * seekhead_list = & matroska -> seekhead ;\n MatroskaSeekhead * seekhead = seekhead_list -> elem ;\n EbmlList * index_list ;\n MatroskaIndex * index ;\n int index_scale = 1 ;\n int i , j ;\n for ( i = 0 ;\n i < seekhead_list -> nb_elem ;\n i ++ ) if ( seekhead [ i ] . id == MATROSKA_ID_CUES ) break ;\n assert ( i <= seekhead_list -> nb_elem ) ;\n matroska_parse_seekhead_entry ( matroska , i ) ;\n index_list = & matroska -> index ;\n index = index_list -> elem ;\n if ( index_list -> nb_elem && index [ 0 ] . time > 1E14 / matroska -> time_scale ) {\n av_log ( matroska -> ctx , AV_LOG_WARNING , \"Working around broken index.\\n\" ) ;\n index_scale = matroska -> time_scale ;\n }\n for ( i = 0 ;\n i < index_list -> nb_elem ;\n i ++ ) {\n EbmlList * pos_list = & index [ i ] . pos ;\n MatroskaIndexPos * pos = pos_list -> elem ;\n for ( j = 0 ;\n j < pos_list -> nb_elem ;\n j ++ ) {\n MatroskaTrack * track = matroska_find_track_by_num ( matroska , pos [ j ] . track ) ;\n if ( track && track -> stream ) av_add_index_entry ( track -> stream , pos [ j ] . pos + matroska -> segment_start , index [ i ] . time / index_scale , 0 , 0 , AVINDEX_KEYFRAME ) ;\n }\n }\n }"}
{"idx": 13966, "target": 0, "func": "static void dissect_h245 ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * parent_tree ) {\n dissect_tpkt_encap ( tvb , pinfo , parent_tree , h245_reassembly , MultimediaSystemControlMessage_handle ) ;\n }"}
{"idx": 13967, "target": 0, "func": "static gcry_err_code_t pubkey_check_secret_key ( int algorithm , gcry_mpi_t * skey ) {\n gcry_err_code_t err = GPG_ERR_PUBKEY_ALGO ;\n gcry_module_t pubkey ;\n REGISTER_DEFAULT_PUBKEYS ;\n ath_mutex_lock ( & pubkeys_registered_lock ) ;\n pubkey = _gcry_module_lookup_id ( pubkeys_registered , algorithm ) ;\n if ( pubkey ) {\n err = ( ( gcry_pk_spec_t * ) pubkey -> spec ) -> check_secret_key ( algorithm , skey ) ;\n _gcry_module_release ( pubkey ) ;\n }\n ath_mutex_unlock ( & pubkeys_registered_lock ) ;\n return err ;\n }"}
{"idx": 13968, "target": 0, "func": "REGRESSION_TEST ( SDK_API_TSIOBufferReaderClone ) ( RegressionTest * test , int , int * pstatus ) {\n bool test_passed = false ;\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n TSIOBuffer bufp = TSIOBufferSizedCreate ( TS_IOBUFFER_SIZE_INDEX_4K ) ;\n TSIOBufferReader readerp = TSIOBufferReaderAlloc ( bufp ) ;\n TSIOBufferProduce ( bufp , 10 ) ;\n TSIOBufferReaderConsume ( readerp , 5 ) ;\n TSIOBufferReader readerp2 = TSIOBufferReaderClone ( readerp ) ;\n int64_t reader_avail = TSIOBufferReaderAvail ( readerp2 ) ;\n if ( reader_avail == 5 ) {\n SDK_RPRINT ( test , \"TSIOBufferReaderClone\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSIOBufferReaderClone\" , \"TestCase1\" , TC_FAIL , \"failed\" ) ;\n }\n * pstatus = ( ( test_passed == true ) ? REGRESSION_TEST_PASSED : REGRESSION_TEST_FAILED ) ;\n return ;\n }"}
{"idx": 13969, "target": 0, "func": "void proto_register_cipsafety ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_cip_reqrsp , {\n \"Request/Response\" , \"cip.rr\" , FT_UINT8 , BASE_HEX , VALS ( cip_sc_rr ) , 0x80 , \"Request or Response message\" , HFILL }\n }\n , {\n & hf_cip_data , {\n \"Data\" , \"cip.data\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cipsafety_data , {\n \"Data\" , \"enip.connection_transport_data\" , FT_BYTES , BASE_NONE , NULL , 0 , \"Connection Transport Data\" , HFILL }\n }\n , {\n & hf_cipsafety_mode_byte , {\n \"Mode Byte\" , \"cipsafety.mode_byte\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cipsafety_mode_byte_ping_count , {\n \"Ping Count\" , \"cipsafety.mode_byte.ping_count\" , FT_UINT8 , BASE_DEC , NULL , 0x03 , NULL , HFILL }\n }\n , {\n & hf_cipsafety_mode_byte_not_tbd , {\n \"Not TBD Bit\" , \"cipsafety.mode_byte.not_tbd\" , FT_BOOLEAN , 8 , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_cipsafety_mode_byte_tbd_2_copy , {\n \"TBD 2 Bit Copy\" , \"cipsafety.mode_byte.tbd_2_copy\" , FT_BOOLEAN , 8 , NULL , 0x08 , NULL , HFILL }\n }\n , {\n & hf_cipsafety_mode_byte_not_run_idle , {\n \"Not Run/Idle\" , \"cipsafety.mode_byte.not_run_idle\" , FT_BOOLEAN , 8 , NULL , 0x10 , NULL , HFILL }\n }\n , {\n & hf_cipsafety_mode_byte_tbd , {\n \"TBD Bit\" , \"cipsafety.mode_byte.tbd\" , FT_BOOLEAN , 8 , NULL , 0x20 , NULL , HFILL }\n }\n , {\n & hf_cipsafety_mode_byte_tbd_2_bit , {\n \"TBD 2 Bit\" , \"cipsafety.mode_byte.tbd_2_bit\" , FT_BOOLEAN , 8 , NULL , 0x40 , NULL , HFILL }\n }\n , {\n & hf_cipsafety_mode_byte_run_idle , {\n \"Run/Idle\" , \"cipsafety.mode_byte.run_idle\" , FT_BOOLEAN , 8 , NULL , 0x80 , NULL , HFILL }\n }\n , {\n & hf_cipsafety_crc_s1 , {\n \"CRC S1\" , \"cipsafety.crc_s1\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cipsafety_crc_s2 , {\n \"CRC S2\" , \"cipsafety.crc_s2\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cipsafety_crc_s3 , {\n \"CRC S3\" , \"cipsafety.crc_s3\" , FT_UINT16 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cipsafety_timestamp , {\n \"Timestamp\" , \"cipsafety.timestamp\" , FT_UINT16 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cipsafety_ack_byte , {\n \"ACK Byte\" , \"cipsafety.ack_byte\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cipsafety_ack_byte_ping_count_reply , {\n \"Ping Count Reply\" , \"cipsafety.ack_byte.ping_count_reply\" , FT_UINT8 , BASE_HEX , NULL , 0x03 , NULL , HFILL }\n }\n , {\n & hf_cipsafety_ack_byte_reserved1 , {\n \"Reserved\" , \"cipsafety.ack_byte.reserved1\" , FT_UINT8 , BASE_HEX , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_cipsafety_ack_byte_ping_response , {\n \"Ping Response\" , \"cipsafety.ack_byte.ping_response\" , FT_BOOLEAN , 8 , NULL , 0x08 , NULL , HFILL }\n }\n , {\n & hf_cipsafety_ack_byte_reserved2 , {\n \"Reserved\" , \"cipsafety.ack_byte.reserved2\" , FT_UINT8 , BASE_HEX , NULL , 0x70 , NULL , HFILL }\n }\n , {\n & hf_cipsafety_ack_byte_parity_even , {\n \"Parity Even\" , \"cipsafety.ack_byte.parity_even\" , FT_BOOLEAN , 8 , NULL , 0x80 , NULL , HFILL }\n }\n , {\n & hf_cipsafety_ack_byte2 , {\n \"ACK Byte 2\" , \"cipsafety.ack_byte2\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cipsafety_consumer_time_value , {\n \"Consumer Time Value\" , \"cipsafety.consumer_time_value\" , FT_UINT16 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cipsafety_mcast_byte , {\n \"MCAST Byte\" , \"cipsafety.mcast_byte\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cipsafety_mcast_byte_consumer_num , {\n \"Consumer #\" , \"cipsafety.mcast_byte.consumer_num\" , FT_UINT8 , BASE_HEX , NULL , 0x0F , NULL , HFILL }\n }\n , {\n & hf_cipsafety_mcast_byte_reserved1 , {\n \"Reserved\" , \"cipsafety.mcast_byte.reserved1\" , FT_UINT8 , BASE_HEX , NULL , 0x10 , NULL , HFILL }\n }\n , {\n & hf_cipsafety_mcast_byte_mai , {\n \"Multicast Active/Idle\" , \"cipsafety.mcast_byte.active_idle\" , FT_BOOLEAN , 8 , TFS ( & cip_safety_vals_active_idle ) , 0x20 , NULL , HFILL }\n }\n , {\n & hf_cipsafety_mcast_byte_reserved2 , {\n \"Reserved\" , \"cipsafety.mcast_byte.reserved2\" , FT_UINT8 , BASE_HEX , NULL , 0x40 , NULL , HFILL }\n }\n , {\n & hf_cipsafety_mcast_byte_parity_even , {\n \"Parity Even\" , \"cipsafety.mcast_byte.parity_even\" , FT_BOOLEAN , 8 , NULL , 0x80 , NULL , HFILL }\n }\n , {\n & hf_cipsafety_mcast_byte2 , {\n \"MCAST Byte 2\" , \"cipsafety.mcast_byte2\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cipsafety_time_correction , {\n \"Time Correction\" , \"cipsafety.time_correction\" , FT_UINT16 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cipsafety_crc_s5_0 , {\n \"CRC S5_0\" , \"cipsafety.crc_s5_0\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cipsafety_crc_s5_1 , {\n \"CRC S5_1\" , \"cipsafety.crc_s5_1\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cipsafety_crc_s5_2 , {\n \"CRC S5_2\" , \"cipsafety.crc_s5_2\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cipsafety_complement_data , {\n \"Complement Data\" , \"cipsafety.complement_data\" , FT_BYTES , BASE_NONE , NULL , 0 , \"Connection Transport Data\" , HFILL }\n }\n , {\n & hf_cip_sercosiii_link_snn , {\n \"Data\" , \"cipsafety.sercosiii_link.snn\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_sercosiii_link_communication_cycle_time , {\n \"Communication Cycle Time\" , \"cipsafety.sercosiii_link.communication_cycle_time\" , FT_INT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_sercosiii_link_interface_status , {\n \"Communication Cycle Time\" , \"cipsafety.sercosiii_link.interface_status\" , FT_UINT16 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_sercosiii_link_error_count_mstps , {\n \"Error Counter MST-P/S\" , \"cipsafety.sercosiii_link.error_count_mstps\" , FT_INT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_sercosiii_link_error_count_p1 , {\n \"Error Count Port 1\" , \"cipsafety.sercosiii_link.error_count_p1\" , FT_INT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_sercosiii_link_error_count_p2 , {\n \"Error Count Port 2\" , \"cipsafety.sercosiii_link.error_count_p2\" , FT_INT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_sercosiii_link_sercos_address , {\n \"SERCOS Address\" , \"cipsafety.sercosiii_link.sercos_address\" , FT_INT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , }\n ;\n static hf_register_info hf_ssupervisor [ ] = {\n {\n & hf_cip_ssupervisor_sc , {\n \"Service\" , \"cipsafety.ssupervisor.sc\" , FT_UINT8 , BASE_HEX , VALS ( cip_sc_vals_ssupervisor ) , 0x7F , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_recover_data , {\n \"Data\" , \"cipsafety.ssupervisor.recover.data\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_perform_diag_data , {\n \"Data\" , \"cipsafety.ssupervisor.perform_diag.data\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_configure_request_password , {\n \"Password\" , \"cipsafety.ssupervisor.configure_request.password\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_configure_request_tunid , {\n \"Target UNID\" , \"cipsafety.ssupervisor.configure_request.tunid\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_configure_request_tunid_ssn_timestamp , {\n \"TUNID SSN Timestamp\" , \"cipsafety.ssupervisor.configure_request.tunid.ssn.timestamp\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_UTC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_configure_request_tunid_ssn_date , {\n \"TUNID SSN (Manual) Date\" , \"cipsafety.ssupervisor.configure_request.tunid.ssn.date\" , FT_UINT16 , BASE_HEX , VALS ( cipsafety_ssn_date_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_configure_request_tunid_ssn_time , {\n \"TUNID SSN (Manual) Time\" , \"cipsafety.ssupervisor.configure_request.tunid.ssn.time\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_configure_request_tunid_macid , {\n \"MAC ID\" , \"cipsafety.ssupervisor.configure_request.tunid.macid\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_configure_request_ounid , {\n \"Originator UNID\" , \"cipsafety.ssupervisor.configure_request.ounid\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_configure_request_ounid_ssn_timestamp , {\n \"OUNID SSN Timestamp\" , \"cipsafety.ssupervisor.configure_request.ounid.ssn.timestamp\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_UTC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_configure_request_ounid_ssn_date , {\n \"OUNID SSN (Manual) Date\" , \"cipsafety.ssupervisor.configure_request.ounid.ssn.date\" , FT_UINT16 , BASE_HEX , VALS ( cipsafety_ssn_date_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_configure_request_ounid_ssn_time , {\n \"OUNID SSN (Manual) Time\" , \"cipsafety.ssupervisor.configure_request.ounid.ssn.time\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_configure_request_ounid_macid , {\n \"MAC ID\" , \"cipsafety.ssupervisor.configure_request.ounid.macid\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_validate_configuration_sccrc , {\n \"SCCRC\" , \"cipsafety.ssupervisor.validate_configuration.sccrc\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_validate_configuration_scts_timestamp , {\n \"SCTS (Timestamp)\" , \"cipsafety.ssupervisor.validate_configuration.scts.timestamp\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_UTC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_validate_configuration_scts_date , {\n \"SCTS (Manual) Date\" , \"cipsafety.ssupervisor.validate_configuration.scts.date\" , FT_UINT16 , BASE_HEX , VALS ( cipsafety_ssn_date_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_validate_configuration_scts_time , {\n \"SCTS (Manual) Time\" , \"cipsafety.ssupervisor.validate_configuration.scts.time\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_validate_configuration_ext_error , {\n \"Extended Error\" , \"cipsafety.ssupervisor.validate_configuration.ext_error\" , FT_UINT16 , BASE_DEC , VALS ( cip_ssupervisor_validate_configuration_ext_error_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_set_password_current_password , {\n \"Current Password\" , \"cipsafety.ssupervisor.set_password.current_pass\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_set_password_new_password , {\n \"New Password\" , \"cipsafety.ssupervisor.set_password.new_pass\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_configure_lock_value , {\n \"Lock Value\" , \"cipsafety.ssupervisor.configure_lock.lock\" , FT_UINT8 , BASE_DEC , VALS ( cip_ssupervisor_lock_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_configure_lock_password , {\n \"Password\" , \"cipsafety.ssupervisor.configure_lock.password\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_configure_lock_tunid , {\n \"Target UNID\" , \"cipsafety.ssupervisor.configure_lock.tunid\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_configure_lock_tunid_ssn_timestamp , {\n \"TUNID SSN Timestamp\" , \"cipsafety.ssupervisor.configure_lock.tunid.ssn.timestamp\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_UTC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_configure_lock_tunid_ssn_date , {\n \"TUNID SSN (Manual) Date\" , \"cipsafety.ssupervisor.configure_lock.tunid.ssn.date\" , FT_UINT16 , BASE_HEX , VALS ( cipsafety_ssn_date_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_configure_lock_tunid_ssn_time , {\n \"TUNID SSN (Manual) Time\" , \"cipsafety.ssupervisor.configure_lock.tunid.ssn.time\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_configure_lock_tunid_macid , {\n \"MAC ID\" , \"cipsafety.ssupervisor.configure_lock.tunid.macid\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_mode_change_value , {\n \"Value\" , \"cipsafety.ssupervisor.mode_change.value\" , FT_UINT8 , BASE_DEC , VALS ( cip_ssupervisor_change_mode_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_mode_change_password , {\n \"Password\" , \"cipsafety.ssupervisor.mode_change.password\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_reset_type , {\n \"Reset Type\" , \"cipsafety.ssupervisor.reset.type\" , FT_UINT8 , BASE_DEC , VALS ( cip_reset_type_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_reset_password , {\n \"Password\" , \"cipsafety.ssupervisor.reset.password\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_reset_tunid , {\n \"Target UNID\" , \"cipsafety.ssupervisor.reset.tunid\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_reset_tunid_tunid_ssn_timestamp , {\n \"TUNID SSN Timestamp\" , \"cipsafety.ssupervisor.reset.tunid.ssn.timestamp\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_UTC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_reset_tunid_tunid_ssn_date , {\n \"TUNID SSN (Manual) Date\" , \"cipsafety.ssupervisor.reset.tunid.ssn.date\" , FT_UINT16 , BASE_HEX , VALS ( cipsafety_ssn_date_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_reset_tunid_tunid_ssn_time , {\n \"TUNID SSN (Manual) Time\" , \"cipsafety.ssupervisor.reset.tunid.ssn.time\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_reset_tunid_macid , {\n \"MAC ID\" , \"cipsafety.ssupervisor.reset.tunid.macid\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_reset_attr_bitmap , {\n \"Attribute Bit Map\" , \"cipsafety.ssupervisor.reset.attr_bitmap\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_reset_attr_bitmap_macid , {\n \"Preserve MacID\" , \"cipsafety.ssupervisor.reset.attr_bitmap.macid\" , FT_BOOLEAN , 8 , TFS ( & tfs_true_false ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_reset_attr_bitmap_baudrate , {\n \"Preserve Baud Rate\" , \"cipsafety.ssupervisor.reset.attr_bitmap.baudrate\" , FT_BOOLEAN , 8 , TFS ( & tfs_true_false ) , 0x02 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_reset_attr_bitmap_tunid , {\n \"Preserve TUNID\" , \"cipsafety.ssupervisor.reset.attr_bitmap.tunid\" , FT_BOOLEAN , 8 , TFS ( & tfs_true_false ) , 0x04 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_reset_attr_bitmap_password , {\n \"Preserve Password\" , \"cipsafety.ssupervisor.reset.attr_bitmap.password\" , FT_BOOLEAN , 8 , TFS ( & tfs_true_false ) , 0x08 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_reset_attr_bitmap_cfunid , {\n \"Preserve CFUNID\" , \"cipsafety.ssupervisor.reset.attr_bitmap.cfunid\" , FT_BOOLEAN , 8 , TFS ( & tfs_true_false ) , 0x10 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_reset_attr_bitmap_ocpunid , {\n \"Preserve OPCUNID\" , \"cipsafety.ssupervisor.reset.attr_bitmap.ocpunid\" , FT_BOOLEAN , 8 , TFS ( & tfs_true_false ) , 0x20 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_reset_attr_bitmap_reserved , {\n \"Reserved\" , \"cipsafety.ssupervisor.reset.attr_bitmap.reserved\" , FT_BOOLEAN , 8 , TFS ( & tfs_true_false ) , 0x40 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_reset_attr_bitmap_extended , {\n \"Use Extended Map\" , \"cipsafety.ssupervisor.reset.attr_bitmap.extended\" , FT_BOOLEAN , 8 , TFS ( & tfs_true_false ) , 0x80 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_reset_password_data_size , {\n \"Data Size\" , \"cipsafety.ssupervisor.reset_password.data_size\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_reset_password_data , {\n \"Password Data\" , \"cipsafety.ssupervisor.reset_password.password_data\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_propose_tunid_tunid , {\n \"Target UNID\" , \"cipsafety.ssupervisor.propose_tunid.tunid\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_propose_tunid_tunid_ssn_timestamp , {\n \"TUNID SSN Timestamp\" , \"cipsafety.ssupervisor.propose_tunid.tunid.ssn.timestamp\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_UTC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_propose_tunid_tunid_ssn_date , {\n \"TUNID SSN (Manual) Date\" , \"cipsafety.ssupervisor.propose_tunid.tunid.ssn.date\" , FT_UINT16 , BASE_HEX , VALS ( cipsafety_ssn_date_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_propose_tunid_tunid_ssn_time , {\n \"TUNID SSN (Manual) Time\" , \"cipsafety.ssupervisor.propose_tunid.tunid.ssn.time\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_propose_tunid_tunid_macid , {\n \"MAC ID\" , \"cipsafety.ssupervisor.propose_tunid.tunid.macid\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_apply_tunid_tunid , {\n \"Target UNID\" , \"cipsafety.ssupervisor.apply_tunid.tunid\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_apply_tunid_tunid_ssn_timestamp , {\n \"TUNID SSN Timestamp\" , \"cipsafety.ssupervisor.apply_tunid.tunid.ssn.timestamp\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_UTC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_apply_tunid_tunid_ssn_date , {\n \"TUNID SSN (Manual) Date\" , \"cipsafety.ssupervisor.apply_tunid.tunid.ssn.date\" , FT_UINT16 , BASE_HEX , VALS ( cipsafety_ssn_date_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_apply_tunid_tunid_ssn_time , {\n \"TUNID SSN (Manual) Time\" , \"cipsafety.ssupervisor.apply_tunid.tunid.ssn.time\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_apply_tunid_tunid_macid , {\n \"MAC ID\" , \"cipsafety.ssupervisor.apply_tunid.tunid.macid\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_class_subclass , {\n \"Subclass\" , \"cipsafety.ssupervisor.class_subclass\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_num_attr , {\n \"Number of Attributes\" , \"cipsafety.ssupervisor.num_attr\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_attr_list , {\n \"Attributes List Item\" , \"cipsafety.ssupervisor.attr_item\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_manufacture_name , {\n \"Manufacturer Name\" , \"cipsafety.ssupervisor.manufacture_name\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_manufacture_model_number , {\n \"Manufacturer Model Number\" , \"cipsafety.ssupervisor.manufacture_model_number\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_sw_rev_level , {\n \"Software Revision Level\" , \"cipsafety.ssupervisor.sw_rev_level\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_hw_rev_level , {\n \"Hardware Revision Level\" , \"cipsafety.ssupervisor.hw_rev_level\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_manufacture_serial_number , {\n \"Manufacturer Serial Number\" , \"cipsafety.ssupervisor.manufacture_serial_number\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_device_config , {\n \"Device Configuration\" , \"cipsafety.ssupervisor.device_config\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_device_status , {\n \"Device Status\" , \"cipsafety.ssupervisor.device_status\" , FT_UINT8 , BASE_DEC , VALS ( cip_ssupervisor_device_status_type_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_exception_status , {\n \"Exception Status\" , \"cipsafety.ssupervisor.exception_status\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_exception_detail_alarm_ced_size , {\n \"Common Exeception Detail Size\" , \"cipsafety.ssupervisor.exception_detail_alarm.ced.size\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_exception_detail_alarm_ced_detail , {\n \"Common Exeception Detail Data\" , \"cipsafety.ssupervisor.exception_detail_alarm.ced.detail\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_exception_detail_alarm_ded_size , {\n \"Device Exeception Detail Size\" , \"cipsafety.ssupervisor.exception_detail_alarm.ded.size\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_exception_detail_alarm_ded_detail , {\n \"Device Exeception Detail Data\" , \"cipsafety.ssupervisor.exception_detail_alarm.ded.detail\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_exception_detail_alarm_med_size , {\n \"Manufacturer Exeception Detail Size\" , \"cipsafety.ssupervisor.exception_detail_alarm.med.size\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_exception_detail_alarm_med_detail , {\n \"Manufacturer Exeception Detail Data\" , \"cipsafety.ssupervisor.exception_detail_alarm.med.detail\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_exception_detail_warning_ced_size , {\n \"Common Exeception Detail Size\" , \"cipsafety.ssupervisor.exception_detail_warning.ced.size\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_exception_detail_warning_ced_detail , {\n \"Common Exeception Detail Data\" , \"cipsafety.ssupervisor.exception_detail_warning.ced.detail\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_exception_detail_warning_ded_size , {\n \"Device Exeception Detail Size\" , \"cipsafety.ssupervisor.exception_detail_warning.ded.size\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_exception_detail_warning_ded_detail , {\n \"Device Exeception Detail Data\" , \"cipsafety.ssupervisor.exception_detail_warning.ded.detail\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_exception_detail_warning_med_size , {\n \"Manufacturer Exeception Detail Size\" , \"cipsafety.ssupervisor.exception_detail_warning.med.size\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_exception_detail_warning_med_detail , {\n \"Manufacturer Exeception Detail Data\" , \"cipsafety.ssupervisor.exception_detail_warning.med.detail\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_alarm_enable , {\n \"Exception Detail Alarm\" , \"cipsafety.ssupervisor.alarm_enable\" , FT_BOOLEAN , BASE_NONE , TFS ( & tfs_true_false ) , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_warning_enable , {\n \"Exception Detail Warning\" , \"cipsafety.ssupervisor.warning_enable\" , FT_BOOLEAN , BASE_NONE , TFS ( & tfs_true_false ) , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_time , {\n \"Time\" , \"cipsafety.ssupervisor.time\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_UTC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_clock_power_cycle_behavior , {\n \"Clock Power Cycle Behavior\" , \"cipsafety.ssupervisor.clock_power_cycle_behavior\" , FT_UINT8 , BASE_DEC , VALS ( cip_ssupervisor_clock_power_cycle_type_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_last_maintenance_date , {\n \"Last Maintenance Date\" , \"cipsafety.ssupervisor.last_maintenance_date\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_next_scheduled_maintenance_date , {\n \"Next Scheduled Maintenance Date\" , \"cipsafety.ssupervisor.next_scheduled_maintenance_date\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_scheduled_maintenance_expiration_timer , {\n \"Scheduled Maintenance Expiration Timer\" , \"cipsafety.ssupervisor.scheduled_maintenance_expiration_timer\" , FT_INT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_scheduled_maintenance_expiration_warning_enable , {\n \"Scheduled Maintenance Expiration Warning Enable\" , \"cipsafety.ssupervisor.scheduled_maintenance_expiration_warning\" , FT_BOOLEAN , BASE_NONE , TFS ( & tfs_enabled_disabled ) , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_run_hours , {\n \"Run Hours\" , \"cipsafety.ssupervisor.run_hours\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_configuration_lock , {\n \"Configuration Lock\" , \"cipsafety.ssupervisor.configuration_lock\" , FT_UINT8 , BASE_DEC , VALS ( cip_ssupervisor_lock_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_configuration_unid_ssn_timestamp , {\n \"Configuration UNID SSN Timestamp\" , \"cipsafety.ssupervisor.configuration_unid.ssn.timestamp\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_UTC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_configuration_unid_ssn_date , {\n \"Configuration UNID SSN (Manual) Date\" , \"cipsafety.ssupervisor.configuration_unid.ssn.date\" , FT_UINT16 , BASE_HEX , VALS ( cipsafety_ssn_date_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_configuration_unid_ssn_time , {\n \"Configuration UNID SSN (Manual) Time\" , \"cipsafety.ssupervisor.configuration_unid.ssn.time\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_configuration_unid_macid , {\n \"Configuration UNID MAC ID\" , \"cipsafety.ssupervisor.configuration_unid.macid\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_safety_configuration_id_ssn_timestamp , {\n \"Safety Configuration ID SSN Timestamp\" , \"cipsafety.ssupervisor.safety_configuration_id.ssn.timestamp\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_UTC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_safety_configuration_id_ssn_date , {\n \"Safety Configuration ID SSN (Manual) Date\" , \"cipsafety.ssupervisor.safety_configuration_id.ssn.date\" , FT_UINT16 , BASE_HEX , VALS ( cipsafety_ssn_date_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_safety_configuration_id_ssn_time , {\n \"Safety Configuration ID SSN (Manual) Time\" , \"cipsafety.ssupervisor.safety_configuration_id.ssn.time\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_safety_configuration_id_macid , {\n \"Safety Configuration ID MAC ID\" , \"cipsafety.ssupervisor.safety_configuration_id.macid\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_target_unid_ssn_timestamp , {\n \"Target UNID SSN Timestamp\" , \"cipsafety.ssupervisor.target_unid.ssn.timestamp\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_UTC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_target_unid_ssn_date , {\n \"Target UNID SSN (Manual) Date\" , \"cipsafety.ssupervisor.target_unid.ssn.date\" , FT_UINT16 , BASE_HEX , VALS ( cipsafety_ssn_date_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_target_unid_ssn_time , {\n \"Target UNID SSN (Manual) Time\" , \"cipsafety.ssupervisor.target_unid.ssn.time\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_target_unid_macid , {\n \"Target UNID MAC ID\" , \"cipsafety.ssupervisor.target_unid.macid\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_cp_owners_num_entries , {\n \"Number of Array Entries\" , \"cipsafety.ssupervisor.cp_owners.num_entries\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_output_cp_owners_ocpunid_ssn_timestamp , {\n \"OCPUNID SSN Timestamp\" , \"cipsafety.ssupervisor.cp_owners.ssn.timestamp\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_UTC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_output_cp_owners_ocpunid_ssn_date , {\n \"OCPUNID SSN (Manual) Date\" , \"cipsafety.ssupervisor.cp_owners.ssn.date\" , FT_UINT16 , BASE_HEX , VALS ( cipsafety_ssn_date_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_output_cp_owners_ocpunid_ssn_time , {\n \"OCPUNID SSN (Manual) Time\" , \"cipsafety.ssupervisor.cp_owners.ssn.time\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_output_cp_owners_ocpunid_macid , {\n \"OCPUNID MAC ID\" , \"cipsafety.ssupervisor.cp_owners.ocpunid.macid\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_cp_owners_app_path_size , {\n \"EPATH Size\" , \"cipsafety.ssupervisor.cp_owners.epath_size\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_proposed_tunid_ssn_timestamp , {\n \"Proposed TUNID SSN Timestamp\" , \"cipsafety.ssupervisor.proposed_tunid.ssn.timestamp\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_UTC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_proposed_tunid_ssn_date , {\n \"Proposed TUNID SSN (Manual) Date\" , \"cipsafety.ssupervisor.proposed_tunid.ssn.date\" , FT_UINT16 , BASE_HEX , VALS ( cipsafety_ssn_date_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_proposed_tunid_ssn_time , {\n \"Proposed TUNID SSN (Manual) Time\" , \"cipsafety.ssupervisor.proposed_tunid.ssn.time\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_proposed_tunid_macid , {\n \"Proposed TUNID MAC ID\" , \"cipsafety.ssupervisor.proposed_tunid.macid\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_ssupervisor_instance_subclass , {\n \"Subclass\" , \"cipsafety.ssupervisor.instance_subclass\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n }\n ;\n static hf_register_info hf_svalidator [ ] = {\n {\n & hf_cip_svalidator_sc , {\n \"Service\" , \"cipsafety.svalidator.sc\" , FT_UINT8 , BASE_HEX , VALS ( cip_sc_vals_svalidator ) , 0x7F , NULL , HFILL }\n }\n , {\n & hf_cip_svalidator_sconn_fault_count , {\n \"Safety Connection Fault Count\" , \"cipsafety.svalidator.sconn_fault_count\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_svalidator_state , {\n \"Safety Validator State\" , \"cipsafety.svalidator.state\" , FT_UINT8 , BASE_DEC , VALS ( cip_svalidator_state_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_svalidator_type , {\n \"Safety Validator Type\" , \"cipsafety.svalidator.type\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_svalidator_type_pc , {\n \"Producer/Consumer\" , \"cipsafety.svalidator.type.pc\" , FT_UINT8 , BASE_HEX , VALS ( cip_svalidator_type_pc_vals ) , 0x80 , NULL , HFILL }\n }\n , {\n & hf_cip_svalidator_type_conn_type , {\n \"Safety Connection Type\" , \"cipsafety.svalidator.type.conn_type\" , FT_UINT8 , BASE_DEC , VALS ( cip_svalidator_type_conn_type_vals ) , 0x7F , NULL , HFILL }\n }\n , {\n & hf_cip_svalidator_ping_eri , {\n \"Ping Interval EPI Multipler\" , \"cipsafety.svalidator.ping_eri\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_svalidator_time_coord_msg_min_mult_size , {\n \"Time Coord Msg Min Multiplier Size\" , \"cipsafety.svalidator.time_coord_msg_min_mult.size\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_svalidator_time_coord_msg_min_mult_item , {\n \"Time Coord Msg Min Multiplier Item\" , \"cipsafety.svalidator.time_coord_msg_min_mult.item\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_svalidator_network_time_multiplier_size , {\n \"Network Time Expectation Multipler Size\" , \"cipsafety.svalidator.network_time_multiplier.size\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_svalidator_network_time_multiplier_item , {\n \"Network Time Expectation Multipler Item\" , \"cipsafety.svalidator.network_time_multiplier.item\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_svalidator_timeout_multiplier_size , {\n \"Timeout Multiplier Size\" , \"cipsafety.svalidator.timeout_multiplier.size\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_svalidator_timeout_multiplier_item , {\n \"Timeout Multiplier Item\" , \"cipsafety.svalidator.timeout_multiplier.item\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_svalidator_max_consumer_num , {\n \"Max Consumer Number\" , \"cipsafety.svalidator.max_consumer_num\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_svalidator_data_conn_inst , {\n \"Data Connection Instance\" , \"cipsafety.svalidator.data_conn_inst\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_svalidator_coordination_conn_inst_size , {\n \"Coordination Connection Instance Size\" , \"cipsafety.svalidator.coordination_conn_inst.size\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_svalidator_coordination_conn_inst_item , {\n \"Coordination Connection Instance Item\" , \"cipsafety.svalidator.coordination_conn_inst.item\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_svalidator_correction_conn_inst , {\n \"Correction Connection Instance\" , \"cipsafety.svalidator.correction_conn_inst\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_svalidator_cco_binding , {\n \"CCO Binding\" , \"cipsafety.svalidator.cco_binding\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_svalidator_max_data_age , {\n \"Max Data Age\" , \"cipsafety.svalidator.max_data_age\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_svalidator_error_code , {\n \"Error Code\" , \"cipsafety.svalidator.error_code\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_svalidator_prod_cons_fault_count_size , {\n \"Producer/Consumer Counter Size\" , \"cipsafety.svalidator.prod_cons_fault_count.size\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_cip_svalidator_prod_cons_fault_count_item , {\n \"Producer/Consumer Counter Item\" , \"cipsafety.svalidator.prod_cons_fault_count.item\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n }\n ;\n static gint * ett [ ] = {\n & ett_cip_safety , & ett_path , & ett_cipsafety_mode_byte , & ett_cipsafety_ack_byte , & ett_cipsafety_mcast_byte }\n ;\n static gint * ett_ssupervisor [ ] = {\n & ett_cip_class_s_supervisor , & ett_ssupervisor_rrsc , & ett_ssupervisor_cmd_data , & ett_ssupervisor_propose_tunid , & ett_ssupervisor_propose_tunid_ssn , & ett_ssupervisor_configure_request_tunid , & ett_ssupervisor_configure_request_tunid_ssn , & ett_ssupervisor_configure_request_ounid , & ett_ssupervisor_configure_request_ounid_ssn , & ett_ssupervisor_configure_lock_tunid , & ett_ssupervisor_configure_lock_tunid_ssn , & ett_ssupervisor_reset_tunid , & ett_ssupervisor_reset_tunid_ssn , & ett_ssupervisor_apply_tunid , & ett_ssupervisor_apply_tunid_ssn , & ett_exception_detail_alarm_common , & ett_exception_detail_alarm_device , & ett_exception_detail_alarm_manufacturer , & ett_exception_detail_warning_common , & ett_exception_detail_warning_device , & ett_exception_detail_warning_manufacturer , & ett_ssupervisor_configuration_unid , & ett_ssupervisor_configuration_unid_ssn , & ett_ssupervisor_safety_configuration_id , & ett_ssupervisor_safety_configuration_id_ssn , & ett_ssupervisor_target_unid , & ett_ssupervisor_target_unid_ssn , & ett_ssupervisor_output_cp_owners , & ett_ssupervisor_output_cp_owners_ocpunid , & ett_ssupervisor_output_cp_owners_ocpunid_ssn , & ett_ssupervisor_proposed_tunid , & ett_ssupervisor_proposed_tunid_ssn , & ett_cip_ssupervisor_reset_attr_bitmap }\n ;\n static gint * ett_svalidator [ ] = {\n & ett_cip_class_s_validator , & ett_svalidator_rrsc , & ett_svalidator_cmd_data , & ett_svalidator_type }\n ;\n static ei_register_info ei [ ] = {\n {\n & ei_cipsafety_tbd2_not_complemented , {\n \"cipsafety.tbd2_not_complemented\" , PI_PROTOCOL , PI_WARN , \"TBD_2_bit not complemented\" , EXPFILL }\n }\n , {\n & ei_cipsafety_tbd_not_copied , {\n \"cipsafety.tbd_not_copied\" , PI_PROTOCOL , PI_WARN , \"TBD bit not copied\" , EXPFILL }\n }\n , {\n & ei_cipsafety_run_idle_not_complemented , {\n \"cipsafety.run_idle_not_complemented\" , PI_PROTOCOL , PI_WARN , \"Run/Idle bit not complemented\" , EXPFILL }\n }\n , {\n & ei_mal_io , {\n \"cipsafety.malformed.io\" , PI_MALFORMED , PI_ERROR , \"Malformed CIP Safety I/O packet\" , EXPFILL }\n }\n , {\n & ei_mal_sercosiii_link_error_count_p1p2 , {\n \"cipsafety.malformed.sercosiii_link.error_count_p1p2\" , PI_MALFORMED , PI_ERROR , \"Malformed SERCOS III Attribute 5\" , EXPFILL }\n }\n , }\n ;\n static ei_register_info ei_ssupervisor [ ] = {\n {\n & ei_mal_ssupervisor_exception_detail_alarm_ced , {\n \"cipsafety.ssupervisor.malformed.exception_detail_alarm.ced\" , PI_MALFORMED , PI_ERROR , \"Malformed Safety Supervisor Exception Detail Alarm (Common Exception Detail)\" , EXPFILL }\n }\n , {\n & ei_mal_ssupervisor_exception_detail_alarm_ded , {\n \"cipsafety.ssupervisor.malformed.exception_detail_alarm.ded\" , PI_MALFORMED , PI_ERROR , \"Malformed Safety Supervisor Exception Detail Alarm (Device Exception Detail)\" , EXPFILL }\n }\n , {\n & ei_mal_ssupervisor_exception_detail_alarm_med , {\n \"cipsafety.ssupervisor.malformed.exception_detail_alarm.med\" , PI_MALFORMED , PI_ERROR , \"Malformed Safety Supervisor Exception Detail Alarm (Manufacturer Exception Detail)\" , EXPFILL }\n }\n , {\n & ei_mal_ssupervisor_detail_warning_ced , {\n \"cipsafety.ssupervisor.malformed.detail_warning.ced\" , PI_MALFORMED , PI_ERROR , \"Malformed Safety Supervisor Exception Detail Warning (Common Exception Detail)\" , EXPFILL }\n }\n , {\n & ei_mal_ssupervisor_detail_warning_ded , {\n \"cipsafety.ssupervisor.malformed.detail_warning.ded\" , PI_MALFORMED , PI_ERROR , \"Malformed Safety Supervisor Exception Detail Warning (Device Exception Detail)\" , EXPFILL }\n }\n , {\n & ei_mal_ssupervisor_detail_warning_med , {\n \"cipsafety.ssupervisor.malformed.detail_warning.med\" , PI_MALFORMED , PI_ERROR , \"Malformed Safety Supervisor Exception Detail Warning (Manufacturer Exception Detail)\" , EXPFILL }\n }\n , {\n & ei_mal_ssupervisor_configuration_unid , {\n \"cipsafety.ssupervisor.malformed.configuration_unid\" , PI_MALFORMED , PI_ERROR , \"Malformed Safety Supervisor Configuration UNID\" , EXPFILL }\n }\n , {\n & ei_mal_ssupervisor_safety_configuration_id , {\n \"cipsafety.ssupervisor.malformed.safety_configuration_id\" , PI_MALFORMED , PI_ERROR , \"Malformed Safety Supervisor Safety Configuration Identifier\" , EXPFILL }\n }\n , {\n & ei_mal_ssupervisor_target_unid , {\n \"cipsafety.ssupervisor.malformed.target_unid\" , PI_MALFORMED , PI_ERROR , \"Malformed Safety Supervisor Target UNID\" , EXPFILL }\n }\n , {\n & ei_mal_ssupervisor_cp_owners , {\n \"cipsafety.ssupervisor.malformed.cp_owners\" , PI_MALFORMED , PI_ERROR , \"Malformed Safety Supervisor Output Connection Point Owners\" , EXPFILL }\n }\n , {\n & ei_mal_ssupervisor_cp_owners_entry , {\n \"cipsafety.ssupervisor.malformed.cp_owners.entry\" , PI_MALFORMED , PI_ERROR , \"Malformed Safety Supervisor Output Connection Point Owners (UNID)\" , EXPFILL }\n }\n , {\n & ei_mal_ssupervisor_cp_owners_app_path_size , {\n \"cipsafety.ssupervisor.malformed.cp_owners.app_path_size\" , PI_MALFORMED , PI_ERROR , \"Malformed Safety Supervisor Output Connection Point Owners (EPATH)\" , EXPFILL }\n }\n , {\n & ei_mal_ssupervisor_proposed_tunid , {\n \"cipsafety.ssupervisor.malformed.proposed_tunid\" , PI_MALFORMED , PI_ERROR , \"Malformed Safety Supervisor Proposed TUNID\" , EXPFILL }\n }\n , }\n ;\n static ei_register_info ei_svalidator [ ] = {\n {\n & ei_mal_svalidator_type , {\n \"cipsafety.ssupervisor.malformed.svalidator.type\" , PI_MALFORMED , PI_ERROR , \"Malformed Safety Validator Type\" , EXPFILL }\n }\n , {\n & ei_mal_svalidator_time_coord_msg_min_mult , {\n \"cipsafety.ssupervisor.malformed.svalidator.time_coord_msg_min_mult\" , PI_MALFORMED , PI_ERROR , \"Malformed Safety Validator Time Coord Msg Min Multiplier\" , EXPFILL }\n }\n , {\n & ei_mal_svalidator_network_time_multiplier , {\n \"cipsafety.ssupervisor.malformed.svalidator.network_time_multiplier\" , PI_MALFORMED , PI_ERROR , \"Malformed Safety Validator Network Time Expectation Multiplier\" , EXPFILL }\n }\n , {\n & ei_mal_svalidator_timeout_multiplier , {\n \"cipsafety.ssupervisor.malformed.svalidator.timeout_multiplier\" , PI_MALFORMED , PI_ERROR , \"Malformed Safety Validator Timeout Multiplier\" , EXPFILL }\n }\n , {\n & ei_mal_svalidator_coordination_conn_inst , {\n \"cipsafety.ssupervisor.malformed.svalidator.coordination_conn_inst\" , PI_MALFORMED , PI_ERROR , \"Malformed Safety Validator Coordination Connection Instance\" , EXPFILL }\n }\n , {\n & ei_mal_svalidator_prod_cons_fault_count , {\n \"cipsafety.ssupervisor.malformed.svalidator.prod_cons_fault_count\" , PI_MALFORMED , PI_ERROR , \"Malformed Safety Validator Produce/Consume Fault Counters\" , EXPFILL }\n }\n , }\n ;\n expert_module_t * expert_cip_safety ;\n expert_module_t * expert_cip_class_s_supervisor ;\n expert_module_t * expert_cip_class_s_validator ;\n proto_cipsafety = proto_register_protocol ( \"Common Industrial Protocol, Safety\" , \"CIP Safety\" , \"cipsafety\" ) ;\n proto_register_field_array ( proto_cipsafety , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n expert_cip_safety = expert_register_protocol ( proto_cipsafety ) ;\n expert_register_field_array ( expert_cip_safety , ei , array_length ( ei ) ) ;\n cipsafety_handle = register_dissector ( \"cipsafety\" , dissect_cipsafety , proto_cipsafety ) ;\n proto_cip_class_s_supervisor = proto_register_protocol ( \"CIP Safety Supervisor\" , \"CIPSSupervisor\" , \"cipssupervisor\" ) ;\n proto_register_field_array ( proto_cip_class_s_supervisor , hf_ssupervisor , array_length ( hf_ssupervisor ) ) ;\n proto_register_subtree_array ( ett_ssupervisor , array_length ( ett_ssupervisor ) ) ;\n expert_cip_class_s_supervisor = expert_register_protocol ( proto_cip_class_s_supervisor ) ;\n expert_register_field_array ( expert_cip_class_s_supervisor , ei_ssupervisor , array_length ( ei_ssupervisor ) ) ;\n proto_cip_class_s_validator = proto_register_protocol ( \"CIP Safety Validator\" , \"CIPSValidator\" , \"cipsvalidator\" ) ;\n proto_register_field_array ( proto_cip_class_s_validator , hf_svalidator , array_length ( hf_svalidator ) ) ;\n proto_register_subtree_array ( ett_svalidator , array_length ( ett_svalidator ) ) ;\n expert_cip_class_s_validator = expert_register_protocol ( proto_cip_class_s_validator ) ;\n expert_register_field_array ( expert_cip_class_s_validator , ei_svalidator , array_length ( ei_svalidator ) ) ;\n }"}
{"idx": 13970, "target": 0, "func": "int EVP_DecryptUpdate ( EVP_CIPHER_CTX * ctx , unsigned char * out , int * outl , const unsigned char * in , int inl ) {\n int fix_len ;\n unsigned int b ;\n if ( ctx -> cipher -> flags & EVP_CIPH_FLAG_CUSTOM_CIPHER ) {\n fix_len = ctx -> cipher -> do_cipher ( ctx , out , in , inl ) ;\n if ( fix_len < 0 ) {\n * outl = 0 ;\n return 0 ;\n }\n else * outl = fix_len ;\n return 1 ;\n }\n if ( inl <= 0 ) {\n * outl = 0 ;\n return inl == 0 ;\n }\n if ( ctx -> flags & EVP_CIPH_NO_PADDING ) return EVP_EncryptUpdate ( ctx , out , outl , in , inl ) ;\n b = ctx -> cipher -> block_size ;\n OPENSSL_assert ( b <= sizeof ctx -> final ) ;\n if ( ctx -> final_used ) {\n memcpy ( out , ctx -> final , b ) ;\n out += b ;\n fix_len = 1 ;\n }\n else fix_len = 0 ;\n if ( ! EVP_EncryptUpdate ( ctx , out , outl , in , inl ) ) return 0 ;\n if ( b > 1 && ! ctx -> buf_len ) {\n * outl -= b ;\n ctx -> final_used = 1 ;\n memcpy ( ctx -> final , & out [ * outl ] , b ) ;\n }\n else ctx -> final_used = 0 ;\n if ( fix_len ) * outl += b ;\n return 1 ;\n }"}
{"idx": 13971, "target": 0, "func": "const char * get_gsm_a_msg_string ( int pdu_type , int idx ) {\n const char * msg_string = NULL ;\n switch ( pdu_type ) {\n case GSM_A_PDU_TYPE_BSSMAP : msg_string = val_to_str_ext ( idx , & gsm_bssmap_elem_strings_ext , \"GSM_A_PDU_TYPE_BSSMAP (%u)\" ) ;\n break ;\n case GSM_A_PDU_TYPE_DTAP : msg_string = val_to_str_ext ( idx , & gsm_dtap_elem_strings_ext , \"GSM_A_PDU_TYPE_DTAP (%u)\" ) ;\n break ;\n case GSM_A_PDU_TYPE_RP : msg_string = val_to_str_ext ( idx , & gsm_rp_elem_strings_ext , \"GSM_A_PDU_TYPE_RP (%u)\" ) ;\n break ;\n case GSM_A_PDU_TYPE_RR : msg_string = val_to_str_ext ( idx , & gsm_rr_elem_strings_ext , \"GSM_A_PDU_TYPE_RR (%u)\" ) ;\n break ;\n case GSM_A_PDU_TYPE_COMMON : msg_string = val_to_str_ext ( idx , & gsm_common_elem_strings_ext , \"GSM_A_PDU_TYPE_COMMON (%u)\" ) ;\n break ;\n case GSM_A_PDU_TYPE_GM : msg_string = val_to_str_ext ( idx , & gsm_gm_elem_strings_ext , \"GSM_A_PDU_TYPE_GM (%u)\" ) ;\n break ;\n case GSM_A_PDU_TYPE_BSSLAP : msg_string = val_to_str_ext ( idx , & gsm_bsslap_elem_strings_ext , \"GSM_A_PDU_TYPE_BSSLAP (%u)\" ) ;\n break ;\n case GSM_PDU_TYPE_BSSMAP_LE : msg_string = val_to_str_ext ( idx , & gsm_bssmap_le_elem_strings_ext , \"GSM_PDU_TYPE_BSSMAP_LE (%u)\" ) ;\n break ;\n case NAS_PDU_TYPE_COMMON : msg_string = val_to_str_ext ( idx , & nas_eps_common_elem_strings_ext , \"NAS_PDU_TYPE_COMMON (%u)\" ) ;\n break ;\n case NAS_PDU_TYPE_EMM : msg_string = val_to_str_ext ( idx , & nas_emm_elem_strings_ext , \"NAS_PDU_TYPE_EMM (%u)\" ) ;\n break ;\n case NAS_PDU_TYPE_ESM : msg_string = val_to_str_ext ( idx , & nas_esm_elem_strings_ext , \"NAS_PDU_TYPE_ESM (%u)\" ) ;\n break ;\n case SGSAP_PDU_TYPE : msg_string = val_to_str_ext ( idx , & sgsap_elem_strings_ext , \"SGSAP_PDU_TYPE (%u)\" ) ;\n break ;\n case BSSGP_PDU_TYPE : msg_string = val_to_str_ext ( idx , & bssgp_elem_strings_ext , \"BSSGP_PDU_TYPE (%u)\" ) ;\n break ;\n case GMR1_IE_COMMON : msg_string = val_to_str_ext ( idx , & gmr1_ie_common_strings_ext , \"GMR1_IE_COMMON (%u)\" ) ;\n break ;\n case GMR1_IE_RR : msg_string = val_to_str_ext ( idx , & gmr1_ie_rr_strings_ext , \"GMR1_IE_RR (%u)\" ) ;\n break ;\n default : DISSECTOR_ASSERT_NOT_REACHED ( ) ;\n }\n return msg_string ;\n }"}
{"idx": 13972, "target": 0, "func": "void purple_chat_set_topic ( struct groupchat * gc , char * topic ) {\n PurpleConversation * pc = gc -> data ;\n PurpleConvChat * pcc = PURPLE_CONV_CHAT ( pc ) ;\n struct purple_data * pd = gc -> ic -> proto_data ;\n PurplePlugin * prpl = purple_plugins_find_with_id ( pd -> account -> protocol_id ) ;\n PurplePluginProtocolInfo * pi = prpl -> info -> extra_info ;\n if ( pi -> set_chat_topic ) {\n pi -> set_chat_topic ( purple_account_get_connection ( pd -> account ) , purple_conv_chat_get_id ( pcc ) , topic ) ;\n }\n }"}
{"idx": 13973, "target": 1, "func": "void vp9_rc_init ( const VP9EncoderConfig * oxcf , int pass , RATE_CONTROL * rc ) {\n int i ;\n if ( pass == 0 && oxcf -> rc_mode == VPX_CBR ) {\n rc -> avg_frame_qindex [ KEY_FRAME ] = oxcf -> worst_allowed_q ;\n rc -> avg_frame_qindex [ INTER_FRAME ] = oxcf -> worst_allowed_q ;\n }\n else {\n rc -> avg_frame_qindex [ KEY_FRAME ] = ( oxcf -> worst_allowed_q + oxcf -> best_allowed_q ) / 2 ;\n rc -> avg_frame_qindex [ INTER_FRAME ] = ( oxcf -> worst_allowed_q + oxcf -> best_allowed_q ) / 2 ;\n }\n rc -> last_q [ KEY_FRAME ] = oxcf -> best_allowed_q ;\n rc -> last_q [ INTER_FRAME ] = oxcf -> best_allowed_q ;\n rc -> buffer_level = rc -> starting_buffer_level ;\n rc -> bits_off_target = rc -> starting_buffer_level ;\n rc -> rolling_target_bits = rc -> avg_frame_bandwidth ;\n rc -> rolling_actual_bits = rc -> avg_frame_bandwidth ;\n rc -> long_rolling_target_bits = rc -> avg_frame_bandwidth ;\n rc -> long_rolling_actual_bits = rc -> avg_frame_bandwidth ;\n rc -> total_actual_bits = 0 ;\n rc -> total_target_bits = 0 ;\n rc -> total_target_vs_actual = 0 ;\n rc -> baseline_gf_interval = DEFAULT_GF_INTERVAL ;\n rc -> frames_since_key = 8 ;\n rc -> this_key_frame_forced = 0 ;\n rc -> next_key_frame_forced = 0 ;\n rc -> source_alt_ref_pending = 0 ;\n rc -> source_alt_ref_active = 0 ;\n rc -> frames_till_gf_update_due = 0 ;\n rc -> ni_av_qi = oxcf -> worst_allowed_q ;\n rc -> ni_tot_qi = 0 ;\n rc -> ni_frames = 0 ;\n rc -> tot_q = 0.0 ;\n rc -> avg_q = vp9_convert_qindex_to_q ( oxcf -> worst_allowed_q ) ;\n for ( i = 0 ;\n i < RATE_FACTOR_LEVELS ;\n ++ i ) {\n rc -> rate_correction_factors [ i ] = 1.0 ;\n }\n }"}
{"idx": 13974, "target": 0, "func": "static int dissect_h225_T_h4501SupplementaryService_item ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 748 \"./asn1/h225/h225.cnf\" tvbuff_t * h4501_tvb = NULL ;\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , NO_BOUND , NO_BOUND , FALSE , & h4501_tvb ) ;\n if ( h4501_tvb && tvb_reported_length ( h4501_tvb ) ) {\n call_dissector ( h4501_handle , h4501_tvb , actx -> pinfo , tree ) ;\n }\n return offset ;\n }"}
{"idx": 13975, "target": 0, "func": "REGRESSION_TEST ( SDK_API_DEBUG_NAME_LOOKUPS ) ( RegressionTest * test , int , int * pstatus ) {\n bool success = true ;\n const char state_name [ ] = \"INACTIVE_TIMEOUT\" ;\n const char hook_name [ ] = \"TS_HTTP_READ_RESPONSE_HDR_HOOK\" ;\n const char event_name [ ] = \"VC_EVENT_IMMEDIATE\" ;\n const char * str ;\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n str = TSHttpServerStateNameLookup ( TS_SRVSTATE_INACTIVE_TIMEOUT ) ;\n if ( ( strlen ( str ) != strlen ( state_name ) || strcmp ( str , state_name ) ) ) {\n SDK_RPRINT ( test , \"TSHttpServerStateNameLookup\" , \"TestCase1\" , TC_FAIL , \"Failed on %d, expected %s, got %s\" , TS_SRVSTATE_INACTIVE_TIMEOUT , state_name , str ) ;\n success = false ;\n }\n else {\n SDK_RPRINT ( test , \"TSHttpServerStateNameLookup\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n str = TSHttpHookNameLookup ( TS_HTTP_READ_RESPONSE_HDR_HOOK ) ;\n if ( ( strlen ( str ) != strlen ( hook_name ) || strcmp ( str , hook_name ) ) ) {\n SDK_RPRINT ( test , \"TSHttpHookNameLookup\" , \"TestCase1\" , TC_FAIL , \"Failed on %d, expected %s, got %s\" , TS_HTTP_READ_RESPONSE_HDR_HOOK , hook_name , str ) ;\n success = false ;\n }\n else {\n SDK_RPRINT ( test , \"TSHttpHookNameLookup\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n str = TSHttpEventNameLookup ( TS_EVENT_IMMEDIATE ) ;\n if ( ( strlen ( str ) != strlen ( event_name ) || strcmp ( str , event_name ) ) ) {\n SDK_RPRINT ( test , \"TSHttpEventNameLookup\" , \"TestCase1\" , TC_FAIL , \"Failed on %d, expected %s, got %s\" , TS_EVENT_IMMEDIATE , hook_name , str ) ;\n success = false ;\n }\n else {\n SDK_RPRINT ( test , \"TSHttpEventNameLookup\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n * pstatus = success ? REGRESSION_TEST_PASSED : REGRESSION_TEST_FAILED ;\n return ;\n }"}
{"idx": 13976, "target": 0, "func": "void do_diff_files ( struct st_command * command ) {\n int error = 0 ;\n static DYNAMIC_STRING ds_filename ;\n static DYNAMIC_STRING ds_filename2 ;\n const struct command_arg diff_file_args [ ] = {\n {\n \"file1\" , ARG_STRING , TRUE , & ds_filename , \"First file to diff\" }\n , {\n \"file2\" , ARG_STRING , TRUE , & ds_filename2 , \"Second file to diff\" }\n }\n ;\n DBUG_ENTER ( \"do_diff_files\" ) ;\n check_command_args ( command , command -> first_argument , diff_file_args , sizeof ( diff_file_args ) / sizeof ( struct command_arg ) , ' ' ) ;\n if ( access ( ds_filename . str , F_OK ) != 0 ) die ( \"command \\\"diff_files\\\" failed, file '%s' does not exist\" , ds_filename . str ) ;\n if ( access ( ds_filename2 . str , F_OK ) != 0 ) die ( \"command \\\"diff_files\\\" failed, file '%s' does not exist\" , ds_filename2 . str ) ;\n if ( ( error = compare_files ( ds_filename . str , ds_filename2 . str ) ) && match_expected_error ( command , error , NULL ) < 0 ) {\n show_diff ( & ds_res , ds_filename . str , ds_filename2 . str ) ;\n log_file . write ( & ds_res ) ;\n log_file . flush ( ) ;\n dynstr_set ( & ds_res , 0 ) ;\n }\n dynstr_free ( & ds_filename ) ;\n dynstr_free ( & ds_filename2 ) ;\n handle_command_error ( command , error , - 1 ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 13977, "target": 0, "func": "static int dissect_h245_VendorIdentification ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_VendorIdentification , VendorIdentification_sequence ) ;\n return offset ;\n }"}
{"idx": 13978, "target": 0, "func": "static void auth_server_send_new_request ( struct auth_server_connection * conn , struct auth_client_request * request , const struct auth_request_info * info ) {\n string_t * str ;\n str = t_str_new ( 512 ) ;\n str_printfa ( str , \"AUTH\\t%u\\t\" , request -> id ) ;\n str_append_tabescaped ( str , info -> mech ) ;\n str_append ( str , \"\\tservice=\" ) ;\n str_append_tabescaped ( str , info -> service ) ;\n if ( ( info -> flags & AUTH_REQUEST_FLAG_SUPPORT_FINAL_RESP ) != 0 ) str_append ( str , \"\\tfinal-resp-ok\" ) ;\n if ( ( info -> flags & AUTH_REQUEST_FLAG_SECURED ) != 0 ) {\n str_append ( str , \"\\tsecured\" ) ;\n if ( ( info -> flags & AUTH_REQUEST_FLAG_TRANSPORT_SECURITY_TLS ) != 0 ) str_append ( str , \"=tls\" ) ;\n }\n else {\n i_assert ( ( info -> flags & AUTH_REQUEST_FLAG_TRANSPORT_SECURITY_TLS ) == 0 ) ;\n }\n if ( ( info -> flags & AUTH_REQUEST_FLAG_NO_PENALTY ) != 0 ) str_append ( str , \"\\tno-penalty\" ) ;\n if ( ( info -> flags & AUTH_REQUEST_FLAG_VALID_CLIENT_CERT ) != 0 ) str_append ( str , \"\\tvalid-client-cert\" ) ;\n if ( ( info -> flags & AUTH_REQUEST_FLAG_DEBUG ) != 0 ) str_append ( str , \"\\tdebug\" ) ;\n if ( info -> session_id != NULL ) {\n str_append ( str , \"\\tsession=\" ) ;\n str_append_tabescaped ( str , info -> session_id ) ;\n }\n if ( info -> cert_username != NULL ) {\n str_append ( str , \"\\tcert_username=\" ) ;\n str_append_tabescaped ( str , info -> cert_username ) ;\n }\n if ( info -> local_ip . family != 0 ) str_printfa ( str , \"\\tlip=%s\" , net_ip2addr ( & info -> local_ip ) ) ;\n if ( info -> remote_ip . family != 0 ) str_printfa ( str , \"\\trip=%s\" , net_ip2addr ( & info -> remote_ip ) ) ;\n if ( info -> local_port != 0 ) str_printfa ( str , \"\\tlport=%u\" , info -> local_port ) ;\n if ( info -> remote_port != 0 ) str_printfa ( str , \"\\trport=%u\" , info -> remote_port ) ;\n if ( info -> real_local_ip . family != 0 && ! net_ip_compare ( & info -> real_local_ip , & info -> local_ip ) ) {\n str_printfa ( str , \"\\treal_lip=%s\" , net_ip2addr ( & info -> real_local_ip ) ) ;\n }\n if ( info -> real_remote_ip . family != 0 && ! net_ip_compare ( & info -> real_remote_ip , & info -> remote_ip ) ) {\n str_printfa ( str , \"\\treal_rip=%s\" , net_ip2addr ( & info -> real_remote_ip ) ) ;\n }\n if ( info -> real_local_port != 0 && info -> real_local_port != info -> local_port ) str_printfa ( str , \"\\treal_lport=%u\" , info -> real_local_port ) ;\n if ( info -> real_remote_port != 0 && info -> real_remote_port != info -> remote_port ) str_printfa ( str , \"\\treal_rport=%u\" , info -> real_remote_port ) ;\n if ( info -> local_name != NULL && * info -> local_name != '\\0' ) {\n str_append ( str , \"\\tlocal_name=\" ) ;\n str_append_tabescaped ( str , info -> local_name ) ;\n }\n if ( info -> ssl_cipher_bits != 0 && info -> ssl_cipher != NULL ) {\n str_append ( str , \"\\tssl_cipher=\" ) ;\n str_append_tabescaped ( str , info -> ssl_cipher ) ;\n str_printfa ( str , \"\\tssl_cipher_bits=%u\" , info -> ssl_cipher_bits ) ;\n if ( info -> ssl_pfs != NULL ) {\n str_append ( str , \"\\tssl_pfs=\" ) ;\n str_append_tabescaped ( str , info -> ssl_pfs ) ;\n }\n }\n if ( info -> ssl_protocol != NULL ) {\n str_append ( str , \"\\tssl_protocol=\" ) ;\n str_append_tabescaped ( str , info -> ssl_protocol ) ;\n }\n if ( info -> client_id != NULL && * info -> client_id != '\\0' ) {\n str_append ( str , \"\\tclient_id=\" ) ;\n str_append_tabescaped ( str , info -> client_id ) ;\n }\n if ( info -> forward_fields != NULL && * info -> forward_fields != '\\0' ) {\n str_append ( str , \"\\tforward_fields=\" ) ;\n str_append_tabescaped ( str , info -> forward_fields ) ;\n }\n if ( info -> initial_resp_base64 != NULL ) {\n str_append ( str , \"\\tresp=\" ) ;\n str_append_tabescaped ( str , info -> initial_resp_base64 ) ;\n }\n str_append_c ( str , '\\n' ) ;\n if ( o_stream_send ( conn -> output , str_data ( str ) , str_len ( str ) ) < 0 ) i_error ( \"Error sending request to auth server: %m\" ) ;\n }"}
{"idx": 13979, "target": 0, "func": "static int kvm_get_vcpu_events ( X86CPU * cpu ) {\n CPUX86State * env = & cpu -> env ;\n struct kvm_vcpu_events events ;\n int ret ;\n if ( ! kvm_has_vcpu_events ( ) ) {\n return 0 ;\n }\n memset ( & events , 0 , sizeof ( events ) ) ;\n ret = kvm_vcpu_ioctl ( CPU ( cpu ) , KVM_GET_VCPU_EVENTS , & events ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n env -> exception_injected = events . exception . injected ? events . exception . nr : - 1 ;\n env -> has_error_code = events . exception . has_error_code ;\n env -> error_code = events . exception . error_code ;\n env -> interrupt_injected = events . interrupt . injected ? events . interrupt . nr : - 1 ;\n env -> soft_interrupt = events . interrupt . soft ;\n env -> nmi_injected = events . nmi . injected ;\n env -> nmi_pending = events . nmi . pending ;\n if ( events . nmi . masked ) {\n env -> hflags2 |= HF2_NMI_MASK ;\n }\n else {\n env -> hflags2 &= ~ HF2_NMI_MASK ;\n }\n if ( events . flags & KVM_VCPUEVENT_VALID_SMM ) {\n if ( events . smi . smm ) {\n env -> hflags |= HF_SMM_MASK ;\n }\n else {\n env -> hflags &= ~ HF_SMM_MASK ;\n }\n if ( events . smi . pending ) {\n cpu_interrupt ( CPU ( cpu ) , CPU_INTERRUPT_SMI ) ;\n }\n else {\n cpu_reset_interrupt ( CPU ( cpu ) , CPU_INTERRUPT_SMI ) ;\n }\n if ( events . smi . smm_inside_nmi ) {\n env -> hflags2 |= HF2_SMM_INSIDE_NMI_MASK ;\n }\n else {\n env -> hflags2 &= ~ HF2_SMM_INSIDE_NMI_MASK ;\n }\n if ( events . smi . latched_init ) {\n cpu_interrupt ( CPU ( cpu ) , CPU_INTERRUPT_INIT ) ;\n }\n else {\n cpu_reset_interrupt ( CPU ( cpu ) , CPU_INTERRUPT_INIT ) ;\n }\n }\n env -> sipi_vector = events . sipi_vector ;\n return 0 ;\n }"}
{"idx": 13980, "target": 0, "func": "static int q2mbl ( int x ) {\n if ( x < 20 ) x = 20 ;\n x = 50 + ( x - 50 ) * 10 / 8 ;\n return x * x / 3 ;\n }"}
{"idx": 13981, "target": 0, "func": "static void extension_info_cancel ( NautilusDirectory * directory ) {\n if ( directory -> details -> extension_info_in_progress != NULL ) {\n if ( directory -> details -> extension_info_idle ) {\n g_source_remove ( directory -> details -> extension_info_idle ) ;\n }\n else {\n nautilus_info_provider_cancel_update ( directory -> details -> extension_info_provider , directory -> details -> extension_info_in_progress ) ;\n }\n directory -> details -> extension_info_in_progress = NULL ;\n directory -> details -> extension_info_file = NULL ;\n directory -> details -> extension_info_provider = NULL ;\n directory -> details -> extension_info_idle = 0 ;\n async_job_end ( directory , \"extension info\" ) ;\n }\n }"}
{"idx": 13982, "target": 0, "func": "void do_change_user ( struct st_command * command ) {\n MYSQL * mysql = cur_con -> mysql ;\n static DYNAMIC_STRING ds_user , ds_passwd , ds_db ;\n const struct command_arg change_user_args [ ] = {\n {\n \"user\" , ARG_STRING , FALSE , & ds_user , \"User to connect as\" }\n , {\n \"password\" , ARG_STRING , FALSE , & ds_passwd , \"Password used when connecting\" }\n , {\n \"database\" , ARG_STRING , FALSE , & ds_db , \"Database to select after connect\" }\n , }\n ;\n DBUG_ENTER ( \"do_change_user\" ) ;\n check_command_args ( command , command -> first_argument , change_user_args , sizeof ( change_user_args ) / sizeof ( struct command_arg ) , ',' ) ;\n if ( cur_con -> stmt ) {\n mysql_stmt_close ( cur_con -> stmt ) ;\n cur_con -> stmt = NULL ;\n }\n if ( ! ds_user . length ) {\n dynstr_set ( & ds_user , mysql -> user ) ;\n if ( ! ds_passwd . length ) dynstr_set ( & ds_passwd , mysql -> passwd ) ;\n if ( ! ds_db . length ) dynstr_set ( & ds_db , mysql -> db ) ;\n }\n DBUG_PRINT ( \"info\" , ( \"connection: '%s' user: '%s' password: '%s' database: '%s'\" , cur_con -> name , ds_user . str , ds_passwd . str , ds_db . str ) ) ;\n if ( mysql_change_user ( mysql , ds_user . str , ds_passwd . str , ds_db . str ) ) handle_error ( command , mysql_errno ( mysql ) , mysql_error ( mysql ) , mysql_sqlstate ( mysql ) , & ds_res ) ;\n else handle_no_error ( command ) ;\n dynstr_free ( & ds_user ) ;\n dynstr_free ( & ds_passwd ) ;\n dynstr_free ( & ds_db ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 13983, "target": 0, "func": "static void test_read_format_mtree2 ( void ) {\n static char archive [ ] = \"#mtree\\n\" \"d type=dir content=.\\n\" ;\n struct archive_entry * ae ;\n struct archive * a ;\n assert ( ( a = archive_read_new ( ) ) != NULL ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_support_filter_all ( a ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_support_format_all ( a ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_set_options ( a , \"mtree:checkfs\" ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_open_memory ( a , archive , sizeof ( archive ) ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualInt ( archive_format ( a ) , ARCHIVE_FORMAT_MTREE ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"d\" ) ;\n assertEqualInt ( archive_entry_filetype ( ae ) , AE_IFDIR ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_EOF , archive_read_next_header ( a , & ae ) ) ;\n assertEqualInt ( 1 , archive_file_count ( a ) ) ;\n assertEqualInt ( ARCHIVE_OK , archive_read_close ( a ) ) ;\n assertEqualInt ( ARCHIVE_OK , archive_read_free ( a ) ) ;\n }"}
{"idx": 13984, "target": 0, "func": "static void _hb_ ## name ## _destroy ( hb_ ## name ## _t * l ) {\n free ( l ) ;\n }\n HB_DEFINE_BOXED_TYPE ( name , _hb_ ## name ## _reference , _hb_ ## name ## _destroy ) ;\n HB_DEFINE_OBJECT_TYPE ( buffer ) HB_DEFINE_OBJECT_TYPE ( blob ) HB_DEFINE_OBJECT_TYPE ( face ) HB_DEFINE_OBJECT_TYPE ( font ) HB_DEFINE_OBJECT_TYPE ( font_funcs ) HB_DEFINE_OBJECT_TYPE ( set ) HB_DEFINE_OBJECT_TYPE ( shape_plan ) HB_DEFINE_OBJECT_TYPE ( unicode_funcs ) HB_DEFINE_VALUE_TYPE ( feature ) HB_DEFINE_VALUE_TYPE ( glyph_info )"}
{"idx": 13985, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ExtensionPreferenceApiTest , DISABLED_IncognitoDisabled ) {\n EXPECT_FALSE ( RunExtensionTest ( \"preference/persistent_incognito\" ) ) ;\n }"}
{"idx": 13986, "target": 0, "func": "static void * _conf_to_memberp ( TSOverridableConfigKey conf , OverridableHttpConfigParams * overridableHttpConfig , OverridableDataType * typep ) {\n OverridableDataType typ = OVERRIDABLE_TYPE_BYTE ;\n void * ret = nullptr ;\n switch ( conf ) {\n case TS_CONFIG_URL_REMAP_PRISTINE_HOST_HDR : ret = & overridableHttpConfig -> maintain_pristine_host_hdr ;\n break ;\n case TS_CONFIG_HTTP_CHUNKING_ENABLED : ret = & overridableHttpConfig -> chunking_enabled ;\n break ;\n case TS_CONFIG_HTTP_NEGATIVE_CACHING_ENABLED : ret = & overridableHttpConfig -> negative_caching_enabled ;\n break ;\n case TS_CONFIG_HTTP_NEGATIVE_CACHING_LIFETIME : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> negative_caching_lifetime ;\n break ;\n case TS_CONFIG_HTTP_CACHE_WHEN_TO_REVALIDATE : ret = & overridableHttpConfig -> cache_when_to_revalidate ;\n break ;\n case TS_CONFIG_HTTP_KEEP_ALIVE_ENABLED_IN : ret = & overridableHttpConfig -> keep_alive_enabled_in ;\n break ;\n case TS_CONFIG_HTTP_KEEP_ALIVE_ENABLED_OUT : ret = & overridableHttpConfig -> keep_alive_enabled_out ;\n break ;\n case TS_CONFIG_HTTP_KEEP_ALIVE_POST_OUT : ret = & overridableHttpConfig -> keep_alive_post_out ;\n break ;\n case TS_CONFIG_HTTP_SERVER_SESSION_SHARING_MATCH : ret = & overridableHttpConfig -> server_session_sharing_match ;\n break ;\n case TS_CONFIG_NET_SOCK_RECV_BUFFER_SIZE_OUT : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> sock_recv_buffer_size_out ;\n break ;\n case TS_CONFIG_NET_SOCK_SEND_BUFFER_SIZE_OUT : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> sock_send_buffer_size_out ;\n break ;\n case TS_CONFIG_NET_SOCK_OPTION_FLAG_OUT : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> sock_option_flag_out ;\n break ;\n case TS_CONFIG_HTTP_FORWARD_PROXY_AUTH_TO_PARENT : ret = & overridableHttpConfig -> fwd_proxy_auth_to_parent ;\n break ;\n case TS_CONFIG_HTTP_ANONYMIZE_REMOVE_FROM : ret = & overridableHttpConfig -> anonymize_remove_from ;\n break ;\n case TS_CONFIG_HTTP_ANONYMIZE_REMOVE_REFERER : ret = & overridableHttpConfig -> anonymize_remove_referer ;\n break ;\n case TS_CONFIG_HTTP_ANONYMIZE_REMOVE_USER_AGENT : ret = & overridableHttpConfig -> anonymize_remove_user_agent ;\n break ;\n case TS_CONFIG_HTTP_ANONYMIZE_REMOVE_COOKIE : ret = & overridableHttpConfig -> anonymize_remove_cookie ;\n break ;\n case TS_CONFIG_HTTP_ANONYMIZE_REMOVE_CLIENT_IP : ret = & overridableHttpConfig -> anonymize_remove_client_ip ;\n break ;\n case TS_CONFIG_HTTP_ANONYMIZE_INSERT_CLIENT_IP : ret = & overridableHttpConfig -> anonymize_insert_client_ip ;\n break ;\n case TS_CONFIG_HTTP_RESPONSE_SERVER_ENABLED : ret = & overridableHttpConfig -> proxy_response_server_enabled ;\n break ;\n case TS_CONFIG_HTTP_INSERT_SQUID_X_FORWARDED_FOR : ret = & overridableHttpConfig -> insert_squid_x_forwarded_for ;\n break ;\n case TS_CONFIG_HTTP_SERVER_TCP_INIT_CWND : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> server_tcp_init_cwnd ;\n break ;\n case TS_CONFIG_HTTP_SEND_HTTP11_REQUESTS : ret = & overridableHttpConfig -> send_http11_requests ;\n break ;\n case TS_CONFIG_HTTP_CACHE_HTTP : ret = & overridableHttpConfig -> cache_http ;\n break ;\n case TS_CONFIG_HTTP_CACHE_CLUSTER_CACHE_LOCAL : ret = & overridableHttpConfig -> cache_cluster_cache_local ;\n break ;\n case TS_CONFIG_HTTP_CACHE_IGNORE_CLIENT_NO_CACHE : ret = & overridableHttpConfig -> cache_ignore_client_no_cache ;\n break ;\n case TS_CONFIG_HTTP_CACHE_IGNORE_CLIENT_CC_MAX_AGE : ret = & overridableHttpConfig -> cache_ignore_client_cc_max_age ;\n break ;\n case TS_CONFIG_HTTP_CACHE_IMS_ON_CLIENT_NO_CACHE : ret = & overridableHttpConfig -> cache_ims_on_client_no_cache ;\n break ;\n case TS_CONFIG_HTTP_CACHE_IGNORE_SERVER_NO_CACHE : ret = & overridableHttpConfig -> cache_ignore_server_no_cache ;\n break ;\n case TS_CONFIG_HTTP_CACHE_CACHE_RESPONSES_TO_COOKIES : ret = & overridableHttpConfig -> cache_responses_to_cookies ;\n break ;\n case TS_CONFIG_HTTP_CACHE_IGNORE_AUTHENTICATION : ret = & overridableHttpConfig -> cache_ignore_auth ;\n break ;\n case TS_CONFIG_HTTP_CACHE_CACHE_URLS_THAT_LOOK_DYNAMIC : ret = & overridableHttpConfig -> cache_urls_that_look_dynamic ;\n break ;\n case TS_CONFIG_HTTP_CACHE_REQUIRED_HEADERS : ret = & overridableHttpConfig -> cache_required_headers ;\n break ;\n case TS_CONFIG_HTTP_INSERT_REQUEST_VIA_STR : ret = & overridableHttpConfig -> insert_request_via_string ;\n break ;\n case TS_CONFIG_HTTP_INSERT_RESPONSE_VIA_STR : ret = & overridableHttpConfig -> insert_response_via_string ;\n break ;\n case TS_CONFIG_HTTP_CACHE_HEURISTIC_MIN_LIFETIME : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> cache_heuristic_min_lifetime ;\n break ;\n case TS_CONFIG_HTTP_CACHE_HEURISTIC_MAX_LIFETIME : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> cache_heuristic_max_lifetime ;\n break ;\n case TS_CONFIG_HTTP_CACHE_GUARANTEED_MIN_LIFETIME : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> cache_guaranteed_min_lifetime ;\n break ;\n case TS_CONFIG_HTTP_CACHE_GUARANTEED_MAX_LIFETIME : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> cache_guaranteed_max_lifetime ;\n break ;\n case TS_CONFIG_HTTP_CACHE_MAX_STALE_AGE : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> cache_max_stale_age ;\n break ;\n case TS_CONFIG_HTTP_KEEP_ALIVE_NO_ACTIVITY_TIMEOUT_IN : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> keep_alive_no_activity_timeout_in ;\n break ;\n case TS_CONFIG_HTTP_KEEP_ALIVE_NO_ACTIVITY_TIMEOUT_OUT : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> keep_alive_no_activity_timeout_out ;\n break ;\n case TS_CONFIG_HTTP_TRANSACTION_NO_ACTIVITY_TIMEOUT_IN : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> transaction_no_activity_timeout_in ;\n break ;\n case TS_CONFIG_HTTP_TRANSACTION_NO_ACTIVITY_TIMEOUT_OUT : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> transaction_no_activity_timeout_out ;\n break ;\n case TS_CONFIG_HTTP_TRANSACTION_ACTIVE_TIMEOUT_OUT : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> transaction_active_timeout_out ;\n break ;\n case TS_CONFIG_HTTP_ORIGIN_MAX_CONNECTIONS : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> origin_max_connections ;\n break ;\n case TS_CONFIG_HTTP_CONNECT_ATTEMPTS_MAX_RETRIES : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> connect_attempts_max_retries ;\n break ;\n case TS_CONFIG_HTTP_CONNECT_ATTEMPTS_MAX_RETRIES_DEAD_SERVER : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> connect_attempts_max_retries_dead_server ;\n break ;\n case TS_CONFIG_HTTP_CONNECT_ATTEMPTS_RR_RETRIES : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> connect_attempts_rr_retries ;\n break ;\n case TS_CONFIG_HTTP_CONNECT_ATTEMPTS_TIMEOUT : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> connect_attempts_timeout ;\n break ;\n case TS_CONFIG_HTTP_POST_CONNECT_ATTEMPTS_TIMEOUT : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> post_connect_attempts_timeout ;\n break ;\n case TS_CONFIG_HTTP_DOWN_SERVER_CACHE_TIME : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> down_server_timeout ;\n break ;\n case TS_CONFIG_HTTP_DOWN_SERVER_ABORT_THRESHOLD : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> client_abort_threshold ;\n break ;\n case TS_CONFIG_HTTP_CACHE_FUZZ_TIME : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> freshness_fuzz_time ;\n break ;\n case TS_CONFIG_HTTP_CACHE_FUZZ_MIN_TIME : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> freshness_fuzz_min_time ;\n break ;\n case TS_CONFIG_HTTP_DOC_IN_CACHE_SKIP_DNS : ret = & overridableHttpConfig -> doc_in_cache_skip_dns ;\n break ;\n case TS_CONFIG_HTTP_BACKGROUND_FILL_ACTIVE_TIMEOUT : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> background_fill_active_timeout ;\n break ;\n case TS_CONFIG_HTTP_RESPONSE_SERVER_STR : typ = OVERRIDABLE_TYPE_STRING ;\n ret = & overridableHttpConfig -> proxy_response_server_string ;\n break ;\n case TS_CONFIG_HTTP_CACHE_HEURISTIC_LM_FACTOR : typ = OVERRIDABLE_TYPE_FLOAT ;\n ret = & overridableHttpConfig -> cache_heuristic_lm_factor ;\n break ;\n case TS_CONFIG_HTTP_CACHE_FUZZ_PROBABILITY : typ = OVERRIDABLE_TYPE_FLOAT ;\n ret = & overridableHttpConfig -> freshness_fuzz_prob ;\n break ;\n case TS_CONFIG_HTTP_BACKGROUND_FILL_COMPLETED_THRESHOLD : typ = OVERRIDABLE_TYPE_FLOAT ;\n ret = & overridableHttpConfig -> background_fill_threshold ;\n break ;\n case TS_CONFIG_NET_SOCK_PACKET_MARK_OUT : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> sock_packet_mark_out ;\n break ;\n case TS_CONFIG_NET_SOCK_PACKET_TOS_OUT : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> sock_packet_tos_out ;\n break ;\n case TS_CONFIG_HTTP_INSERT_AGE_IN_RESPONSE : ret = & overridableHttpConfig -> insert_age_in_response ;\n break ;\n case TS_CONFIG_HTTP_CHUNKING_SIZE : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> http_chunking_size ;\n break ;\n case TS_CONFIG_HTTP_FLOW_CONTROL_ENABLED : ret = & overridableHttpConfig -> flow_control_enabled ;\n break ;\n case TS_CONFIG_HTTP_FLOW_CONTROL_LOW_WATER_MARK : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> flow_low_water_mark ;\n break ;\n case TS_CONFIG_HTTP_FLOW_CONTROL_HIGH_WATER_MARK : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> flow_high_water_mark ;\n break ;\n case TS_CONFIG_HTTP_CACHE_RANGE_LOOKUP : ret = & overridableHttpConfig -> cache_range_lookup ;\n break ;\n case TS_CONFIG_HTTP_NORMALIZE_AE_GZIP : ret = & overridableHttpConfig -> normalize_ae_gzip ;\n break ;\n case TS_CONFIG_HTTP_DEFAULT_BUFFER_SIZE : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> default_buffer_size_index ;\n break ;\n case TS_CONFIG_HTTP_DEFAULT_BUFFER_WATER_MARK : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> default_buffer_water_mark ;\n break ;\n case TS_CONFIG_HTTP_REQUEST_HEADER_MAX_SIZE : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> request_hdr_max_size ;\n break ;\n case TS_CONFIG_HTTP_RESPONSE_HEADER_MAX_SIZE : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> response_hdr_max_size ;\n break ;\n case TS_CONFIG_HTTP_NEGATIVE_REVALIDATING_ENABLED : ret = & overridableHttpConfig -> negative_revalidating_enabled ;\n break ;\n case TS_CONFIG_HTTP_NEGATIVE_REVALIDATING_LIFETIME : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> negative_revalidating_lifetime ;\n break ;\n case TS_CONFIG_SSL_HSTS_MAX_AGE : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> proxy_response_hsts_max_age ;\n break ;\n case TS_CONFIG_SSL_HSTS_INCLUDE_SUBDOMAINS : ret = & overridableHttpConfig -> proxy_response_hsts_include_subdomains ;\n break ;\n case TS_CONFIG_HTTP_CACHE_OPEN_READ_RETRY_TIME : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> cache_open_read_retry_time ;\n break ;\n case TS_CONFIG_HTTP_CACHE_MAX_OPEN_READ_RETRIES : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> max_cache_open_read_retries ;\n break ;\n case TS_CONFIG_HTTP_CACHE_RANGE_WRITE : ret = & overridableHttpConfig -> cache_range_write ;\n break ;\n case TS_CONFIG_HTTP_POST_CHECK_CONTENT_LENGTH_ENABLED : ret = & overridableHttpConfig -> post_check_content_length_enabled ;\n break ;\n case TS_CONFIG_HTTP_GLOBAL_USER_AGENT_HEADER : typ = OVERRIDABLE_TYPE_STRING ;\n ret = & overridableHttpConfig -> global_user_agent_header ;\n break ;\n case TS_CONFIG_HTTP_AUTH_SERVER_SESSION_PRIVATE : ret = & overridableHttpConfig -> auth_server_session_private ;\n break ;\n case TS_CONFIG_HTTP_SLOW_LOG_THRESHOLD : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> slow_log_threshold ;\n break ;\n case TS_CONFIG_HTTP_CACHE_GENERATION : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> cache_generation_number ;\n break ;\n case TS_CONFIG_BODY_FACTORY_TEMPLATE_BASE : typ = OVERRIDABLE_TYPE_STRING ;\n ret = & overridableHttpConfig -> body_factory_template_base ;\n break ;\n case TS_CONFIG_HTTP_CACHE_OPEN_WRITE_FAIL_ACTION : ret = & overridableHttpConfig -> cache_open_write_fail_action ;\n break ;\n case TS_CONFIG_HTTP_ENABLE_REDIRECTION : ret = & overridableHttpConfig -> redirection_enabled ;\n break ;\n case TS_CONFIG_HTTP_NUMBER_OF_REDIRECTIONS : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> number_of_redirections ;\n break ;\n case TS_CONFIG_HTTP_CACHE_MAX_OPEN_WRITE_RETRIES : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> max_cache_open_write_retries ;\n break ;\n case TS_CONFIG_HTTP_REDIRECT_USE_ORIG_CACHE_KEY : ret = & overridableHttpConfig -> redirect_use_orig_cache_key ;\n break ;\n case TS_CONFIG_HTTP_ATTACH_SERVER_SESSION_TO_CLIENT : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> attach_server_session_to_client ;\n break ;\n case TS_CONFIG_HTTP_SAFE_REQUESTS_RETRYABLE : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> safe_requests_retryable ;\n break ;\n case TS_CONFIG_HTTP_ORIGIN_MAX_CONNECTIONS_QUEUE : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> origin_max_connections_queue ;\n break ;\n case TS_CONFIG_WEBSOCKET_NO_ACTIVITY_TIMEOUT : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> websocket_inactive_timeout ;\n break ;\n case TS_CONFIG_WEBSOCKET_ACTIVE_TIMEOUT : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> websocket_active_timeout ;\n break ;\n case TS_CONFIG_HTTP_UNCACHEABLE_REQUESTS_BYPASS_PARENT : ret = & overridableHttpConfig -> uncacheable_requests_bypass_parent ;\n break ;\n case TS_CONFIG_HTTP_PARENT_PROXY_TOTAL_CONNECT_ATTEMPTS : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> parent_connect_attempts ;\n break ;\n case TS_CONFIG_HTTP_TRANSACTION_ACTIVE_TIMEOUT_IN : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> transaction_active_timeout_in ;\n break ;\n case TS_CONFIG_SRV_ENABLED : ret = & overridableHttpConfig -> srv_enabled ;\n break ;\n case TS_CONFIG_HTTP_FORWARD_CONNECT_METHOD : ret = & overridableHttpConfig -> forward_connect_method ;\n break ;\n case TS_CONFIG_SSL_CERT_FILENAME : typ = OVERRIDABLE_TYPE_STRING ;\n ret = & overridableHttpConfig -> client_cert_filename ;\n break ;\n case TS_CONFIG_SSL_CERT_FILEPATH : typ = OVERRIDABLE_TYPE_STRING ;\n ret = & overridableHttpConfig -> client_cert_filepath ;\n break ;\n case TS_CONFIG_PARENT_FAILURES_UPDATE_HOSTDB : ret = & overridableHttpConfig -> parent_failures_update_hostdb ;\n break ;\n case TS_CONFIG_SSL_CLIENT_VERIFY_SERVER : ret = & overridableHttpConfig -> ssl_client_verify_server ;\n break ;\n case TS_CONFIG_HTTP_PARENT_PROXY_FAIL_THRESHOLD : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> parent_fail_threshold ;\n break ;\n case TS_CONFIG_HTTP_PARENT_PROXY_RETRY_TIME : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> parent_retry_time ;\n break ;\n case TS_CONFIG_HTTP_PER_PARENT_CONNECT_ATTEMPTS : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> per_parent_connect_attempts ;\n break ;\n case TS_CONFIG_HTTP_PARENT_CONNECT_ATTEMPT_TIMEOUT : typ = OVERRIDABLE_TYPE_INT ;\n ret = & overridableHttpConfig -> parent_connect_timeout ;\n break ;\n case TS_CONFIG_HTTP_ALLOW_MULTI_RANGE : ret = & overridableHttpConfig -> allow_multi_range ;\n break ;\n case TS_CONFIG_NULL : case TS_CONFIG_LAST_ENTRY : typ = OVERRIDABLE_TYPE_NULL ;\n ret = nullptr ;\n break ;\n }\n * typep = typ ;\n return ret ;\n }"}
{"idx": 13987, "target": 0, "func": "static gboolean gst_asf_demux_check_buffer_is_header ( GstASFDemux * demux , GstBuffer * buf ) {\n AsfObject obj ;\n GstMapInfo map ;\n gboolean valid ;\n g_assert ( buf != NULL ) ;\n GST_LOG_OBJECT ( demux , \"Checking if buffer is a header\" ) ;\n gst_buffer_map ( buf , & map , GST_MAP_READ ) ;\n if ( map . size < ASF_OBJECT_HEADER_SIZE ) {\n gst_buffer_unmap ( buf , & map ) ;\n return FALSE ;\n }\n valid = asf_demux_peek_object ( demux , map . data , ASF_OBJECT_HEADER_SIZE , & obj , TRUE ) ;\n gst_buffer_unmap ( buf , & map ) ;\n if ( valid && obj . id == ASF_OBJ_HEADER ) {\n return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 13988, "target": 0, "func": "static void lexstart ( struct vars * v ) {\n prefixes ( v ) ;\n NOERR ( ) ;\n if ( v -> cflags & REG_QUOTE ) {\n assert ( ! ( v -> cflags & ( REG_ADVANCED | REG_EXPANDED | REG_NEWLINE ) ) ) ;\n INTOCON ( L_Q ) ;\n }\n else if ( v -> cflags & REG_EXTENDED ) {\n assert ( ! ( v -> cflags & REG_QUOTE ) ) ;\n INTOCON ( L_ERE ) ;\n }\n else {\n assert ( ! ( v -> cflags & ( REG_QUOTE | REG_ADVF ) ) ) ;\n INTOCON ( L_BRE ) ;\n }\n v -> nexttype = EMPTY ;\n next ( v ) ;\n }"}
{"idx": 13989, "target": 0, "func": "static bool search_header ( struct message_search_context * ctx , const struct message_header_line * hdr ) {\n static const unsigned char crlf [ 2 ] = {\n '\\r' , '\\n' }\n ;\n return str_find_more ( ctx -> str_find_ctx , ( const unsigned char * ) hdr -> name , hdr -> name_len ) || str_find_more ( ctx -> str_find_ctx , hdr -> middle , hdr -> middle_len ) || str_find_more ( ctx -> str_find_ctx , hdr -> full_value , hdr -> full_value_len ) || ( ! hdr -> no_newline && str_find_more ( ctx -> str_find_ctx , crlf , 2 ) ) ;\n }"}
{"idx": 13990, "target": 0, "func": "static cmsBool ReadMPEElem ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Cargo , cmsUInt32Number n , cmsUInt32Number SizeOfTag ) {\n cmsStageSignature ElementSig ;\n cmsTagTypeHandler * TypeHandler ;\n cmsUInt32Number nItems ;\n cmsPipeline * NewLUT = ( cmsPipeline * ) Cargo ;\n _cmsTagTypePluginChunkType * MPETypePluginChunk = ( _cmsTagTypePluginChunkType * ) _cmsContextGetClientChunk ( self -> ContextID , MPEPlugin ) ;\n if ( ! _cmsReadUInt32Number ( io , ( cmsUInt32Number * ) & ElementSig ) ) return FALSE ;\n if ( ! _cmsReadUInt32Number ( io , NULL ) ) return FALSE ;\n TypeHandler = GetHandler ( ( cmsTagTypeSignature ) ElementSig , MPETypePluginChunk -> TagTypes , SupportedMPEtypes ) ;\n if ( TypeHandler == NULL ) {\n char String [ 5 ] ;\n _cmsTagSignature2String ( String , ( cmsTagSignature ) ElementSig ) ;\n cmsSignalError ( self -> ContextID , cmsERROR_UNKNOWN_EXTENSION , \"Unknown MPE type '%s' found.\" , String ) ;\n return FALSE ;\n }\n if ( TypeHandler -> ReadPtr != NULL ) {\n if ( ! cmsPipelineInsertStage ( NewLUT , cmsAT_END , ( cmsStage * ) TypeHandler -> ReadPtr ( self , io , & nItems , SizeOfTag ) ) ) return FALSE ;\n }\n return TRUE ;\n cmsUNUSED_PARAMETER ( SizeOfTag ) ;\n cmsUNUSED_PARAMETER ( n ) ;\n }"}
{"idx": 13991, "target": 1, "func": "const mbfl_encoding * mbfl_identify_encoding2 ( mbfl_string * string , const mbfl_encoding * * elist , int elistsz , int strict ) {\n int i , n , num , bad ;\n unsigned char * p ;\n mbfl_identify_filter * flist , * filter ;\n const mbfl_encoding * encoding ;\n flist = ( mbfl_identify_filter * ) mbfl_calloc ( elistsz , sizeof ( mbfl_identify_filter ) ) ;\n if ( flist == NULL ) {\n return NULL ;\n }\n num = 0 ;\n if ( elist != NULL ) {\n for ( i = 0 ;\n i < elistsz ;\n i ++ ) {\n if ( ! mbfl_identify_filter_init2 ( & flist [ num ] , elist [ i ] ) ) {\n num ++ ;\n }\n }\n }\n n = string -> len ;\n p = string -> val ;\n if ( p != NULL ) {\n bad = 0 ;\n while ( n > 0 ) {\n for ( i = 0 ;\n i < num ;\n i ++ ) {\n filter = & flist [ i ] ;\n if ( ! filter -> flag ) {\n ( * filter -> filter_function ) ( * p , filter ) ;\n if ( filter -> flag ) {\n bad ++ ;\n }\n }\n }\n if ( ( num - 1 ) <= bad && ! strict ) {\n break ;\n }\n p ++ ;\n n -- ;\n }\n }\n encoding = NULL ;\n for ( i = 0 ;\n i < num ;\n i ++ ) {\n filter = & flist [ i ] ;\n if ( ! filter -> flag ) {\n if ( strict && filter -> status ) {\n continue ;\n }\n encoding = filter -> encoding ;\n break ;\n }\n }\n if ( ! encoding ) {\n for ( i = 0 ;\n i < num ;\n i ++ ) {\n filter = & flist [ i ] ;\n if ( ! filter -> flag && ( ! strict || ! filter -> status ) ) {\n encoding = filter -> encoding ;\n break ;\n }\n }\n }\n i = num ;\n while ( -- i >= 0 ) {\n mbfl_identify_filter_cleanup ( & flist [ i ] ) ;\n }\n mbfl_free ( ( void * ) flist ) ;\n return encoding ;\n }"}
{"idx": 13992, "target": 0, "func": "static void test_bug23383 ( ) {\n const char * insert_query = \"INSERT INTO t1 VALUES (1), (2)\" ;\n const char * update_query = \"UPDATE t1 SET i= 4 WHERE i = 3\" ;\n MYSQL_STMT * stmt ;\n my_ulonglong row_count ;\n int rc ;\n DBUG_ENTER ( \"test_bug23383\" ) ;\n myheader ( \"test_bug23383\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE t1 (i INT UNIQUE)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , insert_query ) ;\n myquery ( rc ) ;\n row_count = mysql_affected_rows ( mysql ) ;\n DIE_UNLESS ( row_count == 2 ) ;\n rc = mysql_query ( mysql , insert_query ) ;\n DIE_UNLESS ( rc != 0 ) ;\n row_count = mysql_affected_rows ( mysql ) ;\n DIE_UNLESS ( row_count == ( my_ulonglong ) - 1 ) ;\n rc = mysql_query ( mysql , update_query ) ;\n myquery ( rc ) ;\n row_count = mysql_affected_rows ( mysql ) ;\n DIE_UNLESS ( row_count == 0 ) ;\n rc = mysql_query ( mysql , \"DELETE FROM t1\" ) ;\n myquery ( rc ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n DIE_UNLESS ( stmt != 0 ) ;\n rc = mysql_stmt_prepare ( stmt , insert_query , strlen ( insert_query ) ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n row_count = mysql_stmt_affected_rows ( stmt ) ;\n DIE_UNLESS ( row_count == 2 ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n DIE_UNLESS ( rc != 0 ) ;\n row_count = mysql_stmt_affected_rows ( stmt ) ;\n DIE_UNLESS ( row_count == ( my_ulonglong ) - 1 ) ;\n rc = mysql_stmt_prepare ( stmt , update_query , strlen ( update_query ) ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n row_count = mysql_stmt_affected_rows ( stmt ) ;\n DIE_UNLESS ( row_count == 0 ) ;\n rc = mysql_stmt_close ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_query ( mysql , \"DROP TABLE t1\" ) ;\n myquery ( rc ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 13993, "target": 0, "func": "static guint16 de_gcc_call_ref ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n guint32 value ;\n curr_offset = offset ;\n value = tvb_get_ntohl ( tvb , curr_offset ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_gcc_call_ref , tvb , curr_offset , 4 , ENC_BIG_ENDIAN ) ;\n if ( value & 0x10 ) {\n proto_tree_add_item ( tree , hf_gsm_a_dtap_gcc_call_ref_has_priority , tvb , curr_offset , 4 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_gcc_call_priority , tvb , curr_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_gcc_spare_1 , tvb , curr_offset , 4 , ENC_NA ) ;\n }\n else {\n proto_tree_add_item ( tree , hf_gsm_a_dtap_gcc_call_ref_has_priority , tvb , curr_offset , 4 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_gcc_spare_4 , tvb , curr_offset , 4 , ENC_NA ) ;\n }\n curr_offset += 4 ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 13994, "target": 0, "func": "void jpc_enc_destroy ( jpc_enc_t * enc ) {\n if ( enc -> curtile ) {\n jpc_enc_tile_destroy ( enc -> curtile ) ;\n }\n if ( enc -> cp ) {\n jpc_enc_cp_destroy ( enc -> cp ) ;\n }\n if ( enc -> cstate ) {\n jpc_cstate_destroy ( enc -> cstate ) ;\n }\n if ( enc -> tmpstream ) {\n jas_stream_close ( enc -> tmpstream ) ;\n }\n jas_free ( enc ) ;\n }"}
{"idx": 13995, "target": 0, "func": "static void dissect_q931_call_state_ie ( tvbuff_t * tvb , int offset , int len , proto_tree * tree ) {\n guint8 octet ;\n guint8 coding_standard ;\n if ( len == 0 ) return ;\n octet = tvb_get_guint8 ( tvb , offset ) ;\n coding_standard = octet & 0x60 ;\n proto_tree_add_uint ( tree , hf_q931_coding_standard , tvb , offset , 1 , octet ) ;\n if ( coding_standard != Q931_ITU_STANDARDIZED_CODING ) {\n proto_tree_add_item ( tree , hf_q931_call_state_data , tvb , offset , len , ENC_NA ) ;\n return ;\n }\n proto_tree_add_item ( tree , hf_q931_call_state , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n }"}
{"idx": 13996, "target": 1, "func": "static UChar32 T_UConverter_getNextUChar_UTF32_BE ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n const uint8_t * mySource ;\n UChar32 myUChar ;\n int32_t length ;\n mySource = ( const uint8_t * ) args -> source ;\n if ( mySource >= ( const uint8_t * ) args -> sourceLimit ) {\n * err = U_INDEX_OUTOFBOUNDS_ERROR ;\n return 0xffff ;\n }\n length = ( int32_t ) ( ( const uint8_t * ) args -> sourceLimit - mySource ) ;\n if ( length < 4 ) {\n uprv_memcpy ( args -> converter -> toUBytes , mySource , length ) ;\n args -> converter -> toULength = ( int8_t ) length ;\n args -> source = ( const char * ) ( mySource + length ) ;\n * err = U_TRUNCATED_CHAR_FOUND ;\n return 0xffff ;\n }\n myUChar = ( ( UChar32 ) mySource [ 0 ] << 24 ) | ( ( UChar32 ) mySource [ 1 ] << 16 ) | ( ( UChar32 ) mySource [ 2 ] << 8 ) | ( ( UChar32 ) mySource [ 3 ] ) ;\n args -> source = ( const char * ) ( mySource + 4 ) ;\n if ( ( uint32_t ) myUChar <= MAXIMUM_UTF && ! U_IS_SURROGATE ( myUChar ) ) {\n return myUChar ;\n }\n uprv_memcpy ( args -> converter -> toUBytes , mySource , 4 ) ;\n args -> converter -> toULength = 4 ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n return 0xffff ;\n }"}
{"idx": 13997, "target": 0, "func": "static void rgb2bgr ( fz_context * ctx , fz_color_converter * cc , float * dv , const float * sv ) {\n dv [ 0 ] = sv [ 2 ] ;\n dv [ 1 ] = sv [ 1 ] ;\n dv [ 2 ] = sv [ 0 ] ;\n }"}
{"idx": 13998, "target": 0, "func": "static struct cgroup_process_info * lxc_cgroup_process_info_get ( pid_t pid , struct cgroup_meta_data * meta ) {\n char pid_buf [ 32 ] ;\n snprintf ( pid_buf , 32 , \"/proc/%lu/cgroup\" , ( unsigned long ) pid ) ;\n return lxc_cgroup_process_info_getx ( pid_buf , meta ) ;\n }"}
{"idx": 13999, "target": 0, "func": "static gchar * rtmpt_get_amf_param ( tvbuff_t * tvb , gint offset , gint param , const gchar * prop ) {\n guint32 remain = tvb_reported_length_remaining ( tvb , offset ) ;\n guint32 itemlen ;\n guint32 iStringLength ;\n while ( remain > 0 && param > 0 ) {\n itemlen = rtmpt_get_amf_length ( tvb , offset ) ;\n offset += itemlen ;\n remain -= itemlen ;\n param -- ;\n }\n if ( remain > 0 && param == 0 ) {\n guint8 iObjType = tvb_get_guint8 ( tvb , offset ) ;\n if ( ! prop && iObjType == AMF0_STRING && remain >= 3 ) {\n iStringLength = tvb_get_ntohs ( tvb , offset + 1 ) ;\n if ( remain >= iStringLength + 3 ) {\n return tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset + 3 , iStringLength , ENC_ASCII ) ;\n }\n }\n if ( prop && iObjType == AMF0_OBJECT ) {\n offset ++ ;\n remain -- ;\n while ( remain > 2 ) {\n guint32 iPropLength = tvb_get_ntohs ( tvb , offset ) ;\n if ( remain < 2 + iPropLength + 3 ) break ;\n if ( tvb_strneql ( tvb , offset + 2 , prop , strlen ( prop ) ) == 0 ) {\n if ( tvb_get_guint8 ( tvb , offset + 2 + iPropLength ) != AMF0_STRING ) break ;\n iStringLength = tvb_get_ntohs ( tvb , offset + 2 + iPropLength + 1 ) ;\n if ( remain < 2 + iPropLength + 3 + iStringLength ) break ;\n return tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset + 2 + iPropLength + 3 , iStringLength , ENC_ASCII ) ;\n }\n itemlen = rtmpt_get_amf_length ( tvb , offset + 2 + iPropLength ) ;\n offset += 2 + iPropLength + itemlen ;\n remain -= 2 + iPropLength + itemlen ;\n }\n }\n }\n return NULL ;\n }"}
{"idx": 14000, "target": 0, "func": "static const char * lookup_uname ( struct cpio * cpio , uid_t uid ) {\n return ( lookup_name ( cpio , & cpio -> uname_cache , & lookup_uname_helper , ( id_t ) uid ) ) ;\n }"}
{"idx": 14001, "target": 0, "func": "static int dissect_DRIVER_INFO_2 ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n proto_tree * subtree ;\n int struct_start = offset ;\n subtree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_DRIVER_INFO_2 , NULL , \"Driver info level 2\" ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_driverinfo_cversion , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_drivername , struct_start , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_environment , struct_start , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_driverpath , struct_start , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_datafile , struct_start , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_configfile , struct_start , NULL ) ;\n return offset ;\n }"}
{"idx": 14002, "target": 0, "func": "static const char * ultag_getScript ( const ULanguageTag * langtag ) {\n return langtag -> script ;\n }"}
{"idx": 14003, "target": 1, "func": "xmlAttrPtr xsltAttrTemplateProcess ( xsltTransformContextPtr ctxt , xmlNodePtr target , xmlAttrPtr attr ) {\n const xmlChar * value ;\n xmlAttrPtr ret ;\n if ( ( ctxt == NULL ) || ( attr == NULL ) || ( target == NULL ) ) return ( NULL ) ;\n if ( attr -> type != XML_ATTRIBUTE_NODE ) return ( NULL ) ;\n # ifdef XSLT_REFACTORED if ( attr -> psvi == xsltXSLTAttrMarker ) return ( NULL ) ;\n # else if ( ( attr -> ns != NULL ) && xmlStrEqual ( attr -> ns -> href , XSLT_NAMESPACE ) ) return ( NULL ) ;\n # endif if ( attr -> children != NULL ) {\n if ( ( attr -> children -> type != XML_TEXT_NODE ) || ( attr -> children -> next != NULL ) ) {\n xsltTransformError ( ctxt , NULL , attr -> parent , \"Internal error: The children of an attribute node of a \" \"literal result element are not in the expected form.\\n\" ) ;\n return ( NULL ) ;\n }\n value = attr -> children -> content ;\n if ( value == NULL ) value = xmlDictLookup ( ctxt -> dict , BAD_CAST \"\" , 0 ) ;\n }\n else value = xmlDictLookup ( ctxt -> dict , BAD_CAST \"\" , 0 ) ;\n ret = target -> properties ;\n while ( ret != NULL ) {\n if ( ( ( attr -> ns != NULL ) == ( ret -> ns != NULL ) ) && xmlStrEqual ( ret -> name , attr -> name ) && ( ( attr -> ns == NULL ) || xmlStrEqual ( ret -> ns -> href , attr -> ns -> href ) ) ) {\n break ;\n }\n ret = ret -> next ;\n }\n if ( ret != NULL ) {\n xmlFreeNodeList ( ret -> children ) ;\n ret -> children = ret -> last = NULL ;\n if ( ( ret -> ns != NULL ) && ( ! xmlStrEqual ( ret -> ns -> prefix , attr -> ns -> prefix ) ) ) {\n ret -> ns = xsltGetNamespace ( ctxt , attr -> parent , attr -> ns , target ) ;\n }\n }\n else {\n if ( attr -> ns != NULL ) ret = xmlNewNsProp ( target , xsltGetNamespace ( ctxt , attr -> parent , attr -> ns , target ) , attr -> name , NULL ) ;\n else ret = xmlNewNsProp ( target , NULL , attr -> name , NULL ) ;\n }\n if ( ret != NULL ) {\n xmlNodePtr text ;\n text = xmlNewText ( NULL ) ;\n if ( text != NULL ) {\n ret -> last = ret -> children = text ;\n text -> parent = ( xmlNodePtr ) ret ;\n text -> doc = ret -> doc ;\n if ( attr -> psvi != NULL ) {\n xmlChar * val ;\n val = xsltEvalAVT ( ctxt , attr -> psvi , attr -> parent ) ;\n if ( val == NULL ) {\n if ( attr -> ns ) {\n xsltTransformError ( ctxt , NULL , attr -> parent , \"Internal error: Failed to evaluate the AVT \" \"of attribute '{\n%s}\n%s'.\\n\" , attr -> ns -> href , attr -> name ) ;\n }\n else {\n xsltTransformError ( ctxt , NULL , attr -> parent , \"Internal error: Failed to evaluate the AVT \" \"of attribute '%s'.\\n\" , attr -> name ) ;\n }\n text -> content = xmlStrdup ( BAD_CAST \"\" ) ;\n }\n else {\n text -> content = val ;\n }\n }\n else if ( ( ctxt -> internalized ) && ( target != NULL ) && ( target -> doc != NULL ) && ( target -> doc -> dict == ctxt -> dict ) && xmlDictOwns ( ctxt -> dict , value ) ) {\n text -> content = ( xmlChar * ) value ;\n }\n else {\n text -> content = xmlStrdup ( value ) ;\n }\n }\n }\n else {\n if ( attr -> ns ) {\n xsltTransformError ( ctxt , NULL , attr -> parent , \"Internal error: Failed to create attribute '{\n%s}\n%s'.\\n\" , attr -> ns -> href , attr -> name ) ;\n }\n else {\n xsltTransformError ( ctxt , NULL , attr -> parent , \"Internal error: Failed to create attribute '%s'.\\n\" , attr -> name ) ;\n }\n }\n return ( ret ) ;\n }"}
{"idx": 14004, "target": 0, "func": "void vp9_change_config ( struct VP9_COMP * cpi , const VP9EncoderConfig * oxcf ) {\n VP9_COMMON * const cm = & cpi -> common ;\n RATE_CONTROL * const rc = & cpi -> rc ;\n if ( cm -> profile != oxcf -> profile ) cm -> profile = oxcf -> profile ;\n cm -> bit_depth = oxcf -> bit_depth ;\n if ( cm -> profile <= PROFILE_1 ) assert ( cm -> bit_depth == VPX_BITS_8 ) ;\n else assert ( cm -> bit_depth > VPX_BITS_8 ) ;\n cpi -> oxcf = * oxcf ;\n # if CONFIG_VP9_HIGHBITDEPTH if ( cpi -> oxcf . use_highbitdepth ) {\n cpi -> mb . e_mbd . bd = ( int ) cm -> bit_depth ;\n }\n # endif rc -> baseline_gf_interval = DEFAULT_GF_INTERVAL ;\n cpi -> refresh_golden_frame = 0 ;\n cpi -> refresh_last_frame = 1 ;\n cm -> refresh_frame_context = 1 ;\n cm -> reset_frame_context = 0 ;\n vp9_reset_segment_features ( & cm -> seg ) ;\n vp9_set_high_precision_mv ( cpi , 0 ) ;\n {\n int i ;\n for ( i = 0 ;\n i < MAX_SEGMENTS ;\n i ++ ) cpi -> segment_encode_breakout [ i ] = cpi -> oxcf . encode_breakout ;\n }\n cpi -> encode_breakout = cpi -> oxcf . encode_breakout ;\n set_rc_buffer_sizes ( rc , & cpi -> oxcf ) ;\n rc -> bits_off_target = MIN ( rc -> bits_off_target , rc -> maximum_buffer_size ) ;\n rc -> buffer_level = MIN ( rc -> buffer_level , rc -> maximum_buffer_size ) ;\n vp9_new_framerate ( cpi , cpi -> framerate ) ;\n rc -> worst_quality = cpi -> oxcf . worst_allowed_q ;\n rc -> best_quality = cpi -> oxcf . best_allowed_q ;\n cm -> interp_filter = cpi -> sf . default_interp_filter ;\n cm -> display_width = cpi -> oxcf . width ;\n cm -> display_height = cpi -> oxcf . height ;\n if ( cpi -> initial_width ) {\n assert ( cm -> width <= cpi -> initial_width ) ;\n assert ( cm -> height <= cpi -> initial_height ) ;\n }\n update_frame_size ( cpi ) ;\n if ( ( cpi -> svc . number_temporal_layers > 1 && cpi -> oxcf . rc_mode == VPX_CBR ) || ( ( cpi -> svc . number_temporal_layers > 1 || cpi -> svc . number_spatial_layers > 1 ) && cpi -> oxcf . pass == 2 ) ) {\n vp9_update_layer_context_change_config ( cpi , ( int ) cpi -> oxcf . target_bandwidth ) ;\n }\n cpi -> alt_ref_source = NULL ;\n rc -> is_src_frame_alt_ref = 0 ;\n # if 0 cpi -> frame_distortion = 0 ;\n cpi -> last_frame_distortion = 0 ;\n # endif set_tile_limits ( cpi ) ;\n cpi -> ext_refresh_frame_flags_pending = 0 ;\n cpi -> ext_refresh_frame_context_pending = 0 ;\n # if CONFIG_VP9_TEMPORAL_DENOISING if ( cpi -> oxcf . noise_sensitivity > 0 ) {\n vp9_denoiser_alloc ( & ( cpi -> denoiser ) , cm -> width , cm -> height , cm -> subsampling_x , cm -> subsampling_y , # if CONFIG_VP9_HIGHBITDEPTH cm -> use_highbitdepth , # endif VP9_ENC_BORDER_IN_PIXELS ) ;\n }\n # endif }"}
{"idx": 14005, "target": 0, "func": "void PNGAPI png_set_user_limits ( png_structp png_ptr , png_uint_32 user_width_max , png_uint_32 user_height_max ) {\n if ( png_ptr == NULL ) return ;\n png_ptr -> user_width_max = user_width_max ;\n png_ptr -> user_height_max = user_height_max ;\n }"}
{"idx": 14006, "target": 0, "func": "static bool xhci_get_flag ( XHCIState * xhci , enum xhci_flags bit ) {\n return xhci -> flags & ( 1 << bit ) ;\n }"}
{"idx": 14007, "target": 0, "func": "VAR * var_from_env ( const char * name , const char * def_val ) {\n const char * tmp ;\n VAR * v ;\n if ( ! ( tmp = getenv ( name ) ) ) tmp = def_val ;\n v = var_init ( 0 , name , strlen ( name ) , tmp , strlen ( tmp ) ) ;\n my_hash_insert ( & var_hash , ( uchar * ) v ) ;\n return v ;\n }"}
{"idx": 14008, "target": 0, "func": "static inline void decode_coeff ( int16_t * dst , int coef , int esc , GetBitContext * gb , VLC * vlc , int q ) {\n if ( coef ) {\n if ( coef == esc ) {\n coef = get_vlc2 ( gb , vlc -> table , 9 , 2 ) ;\n if ( coef > 23 ) {\n coef -= 23 ;\n coef = 22 + ( ( 1 << coef ) | get_bits ( gb , coef ) ) ;\n }\n coef += esc ;\n }\n if ( get_bits1 ( gb ) ) coef = - coef ;\n * dst = ( coef * q + 8 ) >> 4 ;\n }\n }"}
{"idx": 14009, "target": 0, "func": "GList * completion_get_servers ( const char * word ) {\n GList * list ;\n GSList * tmp ;\n int len ;\n g_return_val_if_fail ( word != NULL , NULL ) ;\n len = strlen ( word ) ;\n list = NULL ;\n for ( tmp = setupservers ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n SERVER_SETUP_REC * rec = tmp -> data ;\n if ( g_ascii_strncasecmp ( rec -> address , word , len ) == 0 ) list = g_list_append ( list , g_strdup ( rec -> address ) ) ;\n }\n return list ;\n }"}
{"idx": 14010, "target": 0, "func": "static void do_encrypt ( MPI a , MPI b , MPI input , ELG_public_key * pkey ) {\n MPI k ;\n k = gen_k ( pkey -> p , 1 ) ;\n mpi_powm ( a , pkey -> g , k , pkey -> p ) ;\n mpi_powm ( b , pkey -> y , k , pkey -> p ) ;\n mpi_mulm ( b , b , input , pkey -> p ) ;\n # if 0 if ( DBG_CIPHER ) {\n log_mpidump ( \"elg encrypted y= \" , pkey -> y ) ;\n log_mpidump ( \"elg encrypted p= \" , pkey -> p ) ;\n log_mpidump ( \"elg encrypted k= \" , k ) ;\n log_mpidump ( \"elg encrypted M= \" , input ) ;\n log_mpidump ( \"elg encrypted a= \" , a ) ;\n log_mpidump ( \"elg encrypted b= \" , b ) ;\n }\n # endif mpi_free ( k ) ;\n }"}
{"idx": 14011, "target": 1, "func": "static void config_connection_input ( struct config_connection * conn ) {\n const char * const * args , * line ;\n switch ( i_stream_read ( conn -> input ) ) {\n case - 2 : i_error ( \"BUG: Config client connection sent too much data\" ) ;\n config_connection_destroy ( conn ) ;\n return ;\n case - 1 : config_connection_destroy ( conn ) ;\n return ;\n }\n if ( ! conn -> version_received ) {\n line = i_stream_next_line ( conn -> input ) ;\n if ( line == NULL ) return ;\n if ( ! version_string_verify ( line , \"config\" , CONFIG_CLIENT_PROTOCOL_MAJOR_VERSION ) ) {\n i_error ( \"Config client not compatible with this server \" \"(mixed old and new binaries?)\" ) ;\n config_connection_destroy ( conn ) ;\n return ;\n }\n conn -> version_received = TRUE ;\n }\n while ( ( args = config_connection_next_line ( conn ) ) != NULL ) {\n if ( args [ 0 ] == NULL ) continue ;\n if ( strcmp ( args [ 0 ] , \"REQ\" ) == 0 ) {\n if ( config_connection_request ( conn , args + 1 ) < 0 ) break ;\n }\n }\n }"}
{"idx": 14012, "target": 0, "func": "bool is_acl_user ( const char * host , const char * user ) {\n bool res ;\n if ( ! initialized ) return TRUE ;\n VOID ( pthread_mutex_lock ( & acl_cache -> lock ) ) ;\n res = find_acl_user ( host , user , TRUE ) != NULL ;\n VOID ( pthread_mutex_unlock ( & acl_cache -> lock ) ) ;\n return res ;\n }"}
{"idx": 14013, "target": 0, "func": "static void matroska_convert_tag ( AVFormatContext * s , EbmlList * list , AVDictionary * * metadata , char * prefix ) {\n MatroskaTag * tags = list -> elem ;\n char key [ 1024 ] ;\n int i ;\n for ( i = 0 ;\n i < list -> nb_elem ;\n i ++ ) {\n const char * lang = tags [ i ] . lang && strcmp ( tags [ i ] . lang , \"und\" ) ? tags [ i ] . lang : NULL ;\n if ( ! tags [ i ] . name ) {\n av_log ( s , AV_LOG_WARNING , \"Skipping invalid tag with no TagName.\\n\" ) ;\n continue ;\n }\n if ( prefix ) snprintf ( key , sizeof ( key ) , \"%s/%s\" , prefix , tags [ i ] . name ) ;\n else av_strlcpy ( key , tags [ i ] . name , sizeof ( key ) ) ;\n if ( tags [ i ] . def || ! lang ) {\n av_dict_set ( metadata , key , tags [ i ] . string , 0 ) ;\n if ( tags [ i ] . sub . nb_elem ) matroska_convert_tag ( s , & tags [ i ] . sub , metadata , key ) ;\n }\n if ( lang ) {\n av_strlcat ( key , \"-\" , sizeof ( key ) ) ;\n av_strlcat ( key , lang , sizeof ( key ) ) ;\n av_dict_set ( metadata , key , tags [ i ] . string , 0 ) ;\n if ( tags [ i ] . sub . nb_elem ) matroska_convert_tag ( s , & tags [ i ] . sub , metadata , key ) ;\n }\n }\n ff_metadata_conv ( metadata , NULL , ff_mkv_metadata_conv ) ;\n }"}
{"idx": 14014, "target": 0, "func": "static void vger_init ( QEMUMachineInitArgs * args ) {\n ram_addr_t RAM_size = args -> ram_size ;\n const char * cpu_model = args -> cpu_model ;\n const char * kernel_filename = args -> kernel_filename ;\n const char * kernel_cmdline = args -> kernel_cmdline ;\n const char * initrd_filename = args -> initrd_filename ;\n const char * boot_device = args -> boot_device ;\n sun4m_hw_init ( & sun4m_hwdefs [ 4 ] , RAM_size , boot_device , kernel_filename , kernel_cmdline , initrd_filename , cpu_model ) ;\n }"}
{"idx": 14015, "target": 0, "func": "static char * my_case_str ( const char * str , size_t str_len , const char * token , uint token_len ) {\n my_match_t match ;\n uint status = my_charset_latin1 . coll -> instr ( & my_charset_latin1 , str , str_len , token , token_len , & match , 1 ) ;\n return status ? ( char * ) str + match . end : NULL ;\n }"}
{"idx": 14016, "target": 0, "func": "static int nsv_read_packet ( AVFormatContext * s , AVPacket * pkt ) {\n NSVContext * nsv = s -> priv_data ;\n int i , err = 0 ;\n if ( ! nsv -> ahead [ 0 ] . data && ! nsv -> ahead [ 1 ] . data ) err = nsv_read_chunk ( s , 0 ) ;\n if ( err < 0 ) return err ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n if ( nsv -> ahead [ i ] . data ) {\n memcpy ( pkt , & nsv -> ahead [ i ] , sizeof ( AVPacket ) ) ;\n nsv -> ahead [ i ] . data = NULL ;\n return pkt -> size ;\n }\n }\n return - 1 ;\n }"}
{"idx": 14017, "target": 0, "func": "int evhttp_add_header ( struct evkeyvalq * headers , const char * key , const char * value ) {\n event_debug ( ( \"%s: key: %s val: %s\\n\" , __func__ , key , value ) ) ;\n if ( strchr ( key , '\\r' ) != NULL || strchr ( key , '\\n' ) != NULL ) {\n event_debug ( ( \"%s: dropping illegal header key\\n\" , __func__ ) ) ;\n return ( - 1 ) ;\n }\n if ( ! evhttp_header_is_valid_value ( value ) ) {\n event_debug ( ( \"%s: dropping illegal header value\\n\" , __func__ ) ) ;\n return ( - 1 ) ;\n }\n return ( evhttp_add_header_internal ( headers , key , value ) ) ;\n }"}
{"idx": 14018, "target": 0, "func": "static void selinux_inode_post_setxattr ( struct dentry * dentry , const char * name , const void * value , size_t size , int flags ) {\n struct inode * inode = d_backing_inode ( dentry ) ;\n struct inode_security_struct * isec ;\n u32 newsid ;\n int rc ;\n if ( strcmp ( name , XATTR_NAME_SELINUX ) ) {\n return ;\n }\n rc = security_context_to_sid_force ( value , size , & newsid ) ;\n if ( rc ) {\n printk ( KERN_ERR \"SELinux: unable to map context to SID\" \"for (%s, %lu), rc=%d\\n\" , inode -> i_sb -> s_id , inode -> i_ino , - rc ) ;\n return ;\n }\n isec = backing_inode_security ( dentry ) ;\n spin_lock ( & isec -> lock ) ;\n isec -> sclass = inode_mode_to_security_class ( inode -> i_mode ) ;\n isec -> sid = newsid ;\n isec -> initialized = LABEL_INITIALIZED ;\n spin_unlock ( & isec -> lock ) ;\n return ;\n }"}
{"idx": 14019, "target": 0, "func": "bool send_del_edge ( connection_t * c , const edge_t * e ) {\n return send_request ( c , \"%d %x %s %s\" , DEL_EDGE , rand ( ) , e -> from -> name , e -> to -> name ) ;\n }"}
{"idx": 14020, "target": 0, "func": "static int dissect_h225_CallCreditServiceControl ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_CallCreditServiceControl , CallCreditServiceControl_sequence ) ;\n return offset ;\n }"}
{"idx": 14021, "target": 0, "func": "static int _setup_resv_cond_limits ( slurmdb_reservation_cond_t * resv_cond , char * * extra ) {\n int set = 0 ;\n ListIterator itr = NULL ;\n char * object = NULL ;\n char * prefix = \"t1\" ;\n time_t now = time ( NULL ) ;\n if ( ! resv_cond ) return 0 ;\n if ( resv_cond -> id_list && list_count ( resv_cond -> id_list ) ) {\n set = 0 ;\n if ( * extra ) xstrcat ( * extra , \" && (\" ) ;\n else xstrcat ( * extra , \" where (\" ) ;\n itr = list_iterator_create ( resv_cond -> id_list ) ;\n while ( ( object = list_next ( itr ) ) ) {\n if ( set ) xstrcat ( * extra , \" || \" ) ;\n xstrfmtcat ( * extra , \"%s.id_resv=%s\" , prefix , object ) ;\n set = 1 ;\n }\n list_iterator_destroy ( itr ) ;\n xstrcat ( * extra , \")\" ) ;\n }\n if ( resv_cond -> name_list && list_count ( resv_cond -> name_list ) ) {\n set = 0 ;\n if ( * extra ) xstrcat ( * extra , \" && (\" ) ;\n else xstrcat ( * extra , \" where (\" ) ;\n itr = list_iterator_create ( resv_cond -> name_list ) ;\n while ( ( object = list_next ( itr ) ) ) {\n if ( set ) xstrcat ( * extra , \" || \" ) ;\n xstrfmtcat ( * extra , \"%s.resv_name='%s'\" , prefix , object ) ;\n set = 1 ;\n }\n list_iterator_destroy ( itr ) ;\n xstrcat ( * extra , \")\" ) ;\n }\n if ( resv_cond -> time_start ) {\n if ( ! resv_cond -> time_end ) resv_cond -> time_end = now ;\n if ( * extra ) xstrcat ( * extra , \" && (\" ) ;\n else xstrcat ( * extra , \" where (\" ) ;\n xstrfmtcat ( * extra , \"(t1.time_start < %ld \" \"&& (t1.time_end >= %ld || t1.time_end = 0)))\" , resv_cond -> time_end , resv_cond -> time_start ) ;\n }\n else if ( resv_cond -> time_end ) {\n if ( * extra ) xstrcat ( * extra , \" && (\" ) ;\n else xstrcat ( * extra , \" where (\" ) ;\n xstrfmtcat ( * extra , \"(t1.time_start < %ld))\" , resv_cond -> time_end ) ;\n }\n return set ;\n }"}
{"idx": 14022, "target": 1, "func": "SplineChar * PSCharStringToSplines ( uint8 * type1 , int len , struct pscontext * context , struct pschars * subrs , struct pschars * gsubrs , const char * name ) {\n int is_type2 = context -> is_type2 ;\n real stack [ 50 ] ;\n int sp = 0 , v ;\n real transient [ 32 ] ;\n SplineChar * ret = SplineCharCreate ( 2 ) ;\n SplinePointList * cur = NULL , * oldcur = NULL ;\n RefChar * r1 , * r2 , * rlast = NULL ;\n DBasePoint current ;\n real dx , dy , dx2 , dy2 , dx3 , dy3 , dx4 , dy4 , dx5 , dy5 , dx6 , dy6 ;\n SplinePoint * pt ;\n struct substate {\n unsigned char * type1 ;\n int len ;\n int subnum ;\n }\n pcstack [ 11 ] ;\n int pcsp = 0 ;\n StemInfo * hint , * hp ;\n real pops [ 30 ] ;\n int popsp = 0 ;\n int base , polarity ;\n real coord ;\n struct pschars * s ;\n int hint_cnt = 0 ;\n StemInfo * activeh = NULL , * activev = NULL , * sameh ;\n HintMask * pending_hm = NULL ;\n HintMask * counters [ 96 ] ;\n int cp = 0 ;\n real unblended [ 2 ] [ MmMax ] ;\n int last_was_b1 = false , old_last_was_b1 ;\n if ( ! is_type2 && context -> instance_count > 1 ) memset ( unblended , 0 , sizeof ( unblended ) ) ;\n ret -> name = copy ( name ) ;\n ret -> unicodeenc = - 1 ;\n ret -> width = ( int16 ) 0x8000 ;\n if ( name == NULL ) name = \"unnamed\" ;\n ret -> manualhints = true ;\n current . x = current . y = 0 ;\n while ( len > 0 ) {\n if ( sp > 48 ) {\n LogError ( _ ( \"Stack got too big in %s\\n\" ) , name ) ;\n sp = 48 ;\n }\n base = 0 ;\n -- len ;\n if ( ( v = * type1 ++ ) >= 32 ) {\n if ( v <= 246 ) {\n stack [ sp ++ ] = v - 139 ;\n }\n else if ( v <= 250 ) {\n stack [ sp ++ ] = ( v - 247 ) * 256 + * type1 ++ + 108 ;\n -- len ;\n }\n else if ( v <= 254 ) {\n stack [ sp ++ ] = - ( v - 251 ) * 256 - * type1 ++ - 108 ;\n -- len ;\n }\n else {\n int val = ( * type1 << 24 ) | ( type1 [ 1 ] << 16 ) | ( type1 [ 2 ] << 8 ) | type1 [ 3 ] ;\n stack [ sp ++ ] = val ;\n type1 += 4 ;\n len -= 4 ;\n if ( is_type2 ) {\n # ifndef PSFixed_Is_TTF stack [ sp - 1 ] /= 65536. ;\n # else int mant = val & 0xffff ;\n stack [ sp - 1 ] = ( val >> 16 ) + mant / 65536. ;\n # endif }\n }\n }\n else if ( v == 28 ) {\n stack [ sp ++ ] = ( short ) ( ( type1 [ 0 ] << 8 ) | type1 [ 1 ] ) ;\n type1 += 2 ;\n len -= 2 ;\n }\n else if ( v == 12 ) {\n old_last_was_b1 = last_was_b1 ;\n last_was_b1 = false ;\n v = * type1 ++ ;\n -- len ;\n switch ( v ) {\n case 0 : if ( is_type2 ) LogError ( _ ( \"%s\\'s dotsection operator is deprecated for Type2\\n\" ) , name ) ;\n sp = 0 ;\n break ;\n case 1 : if ( sp < 6 ) LogError ( _ ( \"Stack underflow on vstem3 in %s\\n\" ) , name ) ;\n if ( is_type2 ) LogError ( _ ( \"%s\\'s vstem3 operator is not supported for Type2\\n\" ) , name ) ;\n sameh = NULL ;\n if ( ! is_type2 ) sameh = SameH ( ret -> vstem , stack [ 0 ] + ret -> lsidebearing , stack [ 1 ] , unblended , 0 ) ;\n hint = HintNew ( stack [ 0 ] + ret -> lsidebearing , stack [ 1 ] ) ;\n hint -> hintnumber = sameh != NULL ? sameh -> hintnumber : hint_cnt ++ ;\n if ( activev == NULL ) activev = hp = hint ;\n else {\n for ( hp = activev ;\n hp -> next != NULL ;\n hp = hp -> next ) ;\n hp -> next = hint ;\n hp = hint ;\n }\n sameh = NULL ;\n if ( ! is_type2 ) sameh = SameH ( ret -> vstem , stack [ 2 ] + ret -> lsidebearing , stack [ 3 ] , unblended , 0 ) ;\n hp -> next = HintNew ( stack [ 2 ] + ret -> lsidebearing , stack [ 3 ] ) ;\n hp -> next -> hintnumber = sameh != NULL ? sameh -> hintnumber : hint_cnt ++ ;\n if ( ! is_type2 ) sameh = SameH ( ret -> vstem , stack [ 4 ] + ret -> lsidebearing , stack [ 5 ] , unblended , 0 ) ;\n hp -> next -> next = HintNew ( stack [ 4 ] + ret -> lsidebearing , stack [ 5 ] ) ;\n hp -> next -> next -> hintnumber = sameh != NULL ? sameh -> hintnumber : hint_cnt ++ ;\n if ( ! is_type2 && hp -> next -> next -> hintnumber < 96 ) {\n if ( pending_hm == NULL ) pending_hm = chunkalloc ( sizeof ( HintMask ) ) ;\n ( * pending_hm ) [ hint -> hintnumber >> 3 ] |= 0x80 >> ( hint -> hintnumber & 0x7 ) ;\n ( * pending_hm ) [ hint -> next -> hintnumber >> 3 ] |= 0x80 >> ( hint -> next -> hintnumber & 0x7 ) ;\n ( * pending_hm ) [ hint -> next -> next -> hintnumber >> 3 ] |= 0x80 >> ( hint -> next -> next -> hintnumber & 0x7 ) ;\n }\n hp = hp -> next -> next ;\n sp = 0 ;\n break ;\n case 2 : if ( sp < 6 ) LogError ( _ ( \"Stack underflow on hstem3 in %s\\n\" ) , name ) ;\n if ( is_type2 ) LogError ( _ ( \"%s\\'s vstem3 operator is not supported for Type2\\n\" ) , name ) ;\n sameh = NULL ;\n if ( ! is_type2 ) sameh = SameH ( ret -> hstem , stack [ 0 ] , stack [ 1 ] , unblended , 0 ) ;\n hint = HintNew ( stack [ 0 ] , stack [ 1 ] ) ;\n hint -> hintnumber = sameh != NULL ? sameh -> hintnumber : hint_cnt ++ ;\n if ( activeh == NULL ) activeh = hp = hint ;\n else {\n for ( hp = activeh ;\n hp -> next != NULL ;\n hp = hp -> next ) ;\n hp -> next = hint ;\n hp = hint ;\n }\n sameh = NULL ;\n if ( ! is_type2 ) sameh = SameH ( ret -> hstem , stack [ 2 ] , stack [ 3 ] , unblended , 0 ) ;\n hp -> next = HintNew ( stack [ 2 ] , stack [ 3 ] ) ;\n hp -> next -> hintnumber = sameh != NULL ? sameh -> hintnumber : hint_cnt ++ ;\n sameh = NULL ;\n if ( ! is_type2 ) sameh = SameH ( ret -> hstem , stack [ 4 ] , stack [ 5 ] , unblended , 0 ) ;\n hp -> next -> next = HintNew ( stack [ 4 ] , stack [ 5 ] ) ;\n hp -> next -> next -> hintnumber = sameh != NULL ? sameh -> hintnumber : hint_cnt ++ ;\n if ( ! is_type2 && hp -> next -> next -> hintnumber < 96 ) {\n if ( pending_hm == NULL ) pending_hm = chunkalloc ( sizeof ( HintMask ) ) ;\n ( * pending_hm ) [ hint -> hintnumber >> 3 ] |= 0x80 >> ( hint -> hintnumber & 0x7 ) ;\n ( * pending_hm ) [ hint -> next -> hintnumber >> 3 ] |= 0x80 >> ( hint -> next -> hintnumber & 0x7 ) ;\n ( * pending_hm ) [ hint -> next -> next -> hintnumber >> 3 ] |= 0x80 >> ( hint -> next -> next -> hintnumber & 0x7 ) ;\n }\n hp = hp -> next -> next ;\n sp = 0 ;\n break ;\n case 6 : seac : if ( sp < 5 ) LogError ( _ ( \"Stack underflow on seac in %s\\n\" ) , name ) ;\n if ( is_type2 ) {\n if ( v == 6 ) LogError ( _ ( \"%s\\'s SEAC operator is invalid for Type2\\n\" ) , name ) ;\n else LogError ( _ ( \"%s\\'s SEAC-like endchar operator is deprecated for Type2\\n\" ) , name ) ;\n }\n r1 = RefCharCreate ( ) ;\n r2 = RefCharCreate ( ) ;\n r2 -> transform [ 0 ] = 1 ;\n r2 -> transform [ 3 ] = 1 ;\n r2 -> transform [ 4 ] = stack [ 1 ] - ( stack [ 0 ] - ret -> lsidebearing ) ;\n r2 -> transform [ 5 ] = stack [ 2 ] ;\n r1 -> transform [ 0 ] = 1 ;\n r1 -> transform [ 3 ] = 1 ;\n r1 -> adobe_enc = stack [ 3 ] ;\n r2 -> adobe_enc = stack [ 4 ] ;\n if ( stack [ 3 ] < 0 || stack [ 3 ] >= 256 || stack [ 4 ] < 0 || stack [ 4 ] >= 256 ) {\n LogError ( _ ( \"Reference encoding out of bounds in %s\\n\" ) , name ) ;\n r1 -> adobe_enc = 0 ;\n r2 -> adobe_enc = 0 ;\n }\n r1 -> next = r2 ;\n if ( rlast != NULL ) rlast -> next = r1 ;\n else ret -> layers [ ly_fore ] . refs = r1 ;\n ret -> changedsincelasthinted = true ;\n rlast = r2 ;\n sp = 0 ;\n break ;\n case 7 : if ( sp < 4 ) LogError ( _ ( \"Stack underflow on sbw in %s\\n\" ) , name ) ;\n if ( is_type2 ) LogError ( _ ( \"%s\\'s sbw operator is not supported for Type2\\n\" ) , name ) ;\n ret -> lsidebearing = stack [ 0 ] ;\n ret -> width = stack [ 2 ] ;\n sp = 0 ;\n break ;\n case 5 : case 9 : case 14 : case 26 : if ( sp < 1 ) LogError ( _ ( \"Stack underflow on unary operator in %s\\n\" ) , name ) ;\n switch ( v ) {\n case 5 : stack [ sp - 1 ] = ( stack [ sp - 1 ] == 0 ) ;\n break ;\n case 9 : if ( stack [ sp - 1 ] < 0 ) stack [ sp - 1 ] = - stack [ sp - 1 ] ;\n break ;\n case 14 : stack [ sp - 1 ] = - stack [ sp - 1 ] ;\n break ;\n case 26 : stack [ sp - 1 ] = sqrt ( stack [ sp - 1 ] ) ;\n break ;\n default : break ;\n }\n break ;\n case 3 : case 4 : case 10 : case 11 : case 12 : case 15 : case 24 : if ( sp < 2 ) LogError ( _ ( \"Stack underflow on binary operator in %s\\n\" ) , name ) ;\n else switch ( v ) {\n case 3 : stack [ sp - 2 ] = ( stack [ sp - 1 ] != 0 && stack [ sp - 2 ] != 0 ) ;\n break ;\n case 4 : stack [ sp - 2 ] = ( stack [ sp - 1 ] != 0 || stack [ sp - 2 ] != 0 ) ;\n break ;\n case 10 : stack [ sp - 2 ] += stack [ sp - 1 ] ;\n break ;\n case 11 : stack [ sp - 2 ] -= stack [ sp - 1 ] ;\n break ;\n case 12 : stack [ sp - 2 ] /= stack [ sp - 1 ] ;\n break ;\n case 24 : stack [ sp - 2 ] *= stack [ sp - 1 ] ;\n break ;\n case 15 : stack [ sp - 2 ] = ( stack [ sp - 1 ] == stack [ sp - 2 ] ) ;\n break ;\n default : break ;\n }\n -- sp ;\n break ;\n case 22 : if ( sp < 4 ) LogError ( _ ( \"Stack underflow on ifelse in %s\\n\" ) , name ) ;\n else {\n if ( stack [ sp - 2 ] > stack [ sp - 1 ] ) stack [ sp - 4 ] = stack [ sp - 3 ] ;\n sp -= 3 ;\n }\n break ;\n case 23 : do {\n stack [ sp ] = ( rand ( ) / ( RAND_MAX - 1 ) ) ;\n }\n while ( stack [ sp ] == 0 || stack [ sp ] > 1 ) ;\n ++ sp ;\n break ;\n case 16 : if ( is_type2 ) LogError ( _ ( \"Type2 fonts do not support the Type1 callothersubrs operator\" ) ) ;\n if ( sp < 2 || sp < 2 + stack [ sp - 2 ] ) {\n LogError ( _ ( \"Stack underflow on callothersubr in %s\\n\" ) , name ) ;\n sp = 0 ;\n }\n else {\n int tot = stack [ sp - 2 ] , i , k , j ;\n popsp = 0 ;\n for ( k = sp - 3 ;\n k >= sp - 2 - tot ;\n -- k ) pops [ popsp ++ ] = stack [ k ] ;\n switch ( ( int ) stack [ sp - 1 ] ) {\n case 3 : {\n ret -> manualhints = false ;\n ret -> hstem = HintsAppend ( ret -> hstem , activeh ) ;\n activeh = NULL ;\n ret -> vstem = HintsAppend ( ret -> vstem , activev ) ;\n activev = NULL ;\n }\n break ;\n case 1 : {\n is_type2 = false ;\n if ( cur != NULL ) {\n oldcur = cur ;\n cur -> next = NULL ;\n }\n else LogError ( _ ( \"Bad flex subroutine in %s\\n\" ) , name ) ;\n }\n break ;\n case 2 : {\n ;\n }\n break ;\n case 0 : if ( oldcur != NULL ) {\n SplinePointList * spl = oldcur -> next ;\n if ( spl != NULL && spl -> next != NULL && spl -> next -> next != NULL && spl -> next -> next -> next != NULL && spl -> next -> next -> next -> next != NULL && spl -> next -> next -> next -> next -> next != NULL && spl -> next -> next -> next -> next -> next -> next != NULL ) {\n BasePoint old_nextcp , mid_prevcp , mid , mid_nextcp , end_prevcp , end ;\n old_nextcp = spl -> next -> first -> me ;\n mid_prevcp = spl -> next -> next -> first -> me ;\n mid = spl -> next -> next -> next -> first -> me ;\n mid_nextcp = spl -> next -> next -> next -> next -> first -> me ;\n end_prevcp = spl -> next -> next -> next -> next -> next -> first -> me ;\n end = spl -> next -> next -> next -> next -> next -> next -> first -> me ;\n cur = oldcur ;\n if ( cur != NULL && cur -> first != NULL && ( cur -> first != cur -> last || cur -> first -> next == NULL ) ) {\n cur -> last -> nextcp = old_nextcp ;\n cur -> last -> nonextcp = false ;\n pt = chunkalloc ( sizeof ( SplinePoint ) ) ;\n pt -> hintmask = pending_hm ;\n pending_hm = NULL ;\n pt -> prevcp = mid_prevcp ;\n pt -> me = mid ;\n pt -> nextcp = mid_nextcp ;\n CheckMake ( cur -> last , pt ) ;\n SplineMake3 ( cur -> last , pt ) ;\n cur -> last = pt ;\n pt = chunkalloc ( sizeof ( SplinePoint ) ) ;\n pt -> prevcp = end_prevcp ;\n pt -> me = end ;\n pt -> nonextcp = true ;\n CheckMake ( cur -> last , pt ) ;\n SplineMake3 ( cur -> last , pt ) ;\n cur -> last = pt ;\n }\n else LogError ( _ ( \"No previous point on path in curveto from flex 0 in %s\\n\" ) , name ) ;\n }\n else {\n pt = chunkalloc ( sizeof ( SplinePoint ) ) ;\n pt -> me . x = pops [ 1 ] ;\n pt -> me . y = pops [ 0 ] ;\n pt -> noprevcp = true ;\n pt -> nonextcp = true ;\n SplinePointListFree ( oldcur -> next ) ;\n oldcur -> next = NULL ;\n spl = NULL ;\n cur = oldcur ;\n if ( cur != NULL && cur -> first != NULL && ( cur -> first != cur -> last || cur -> first -> next == NULL ) ) {\n CheckMake ( cur -> last , pt ) ;\n SplineMake3 ( cur -> last , pt ) ;\n cur -> last = pt ;\n }\n else LogError ( _ ( \"No previous point on path in lineto from flex 0 in %s\\n\" ) , name ) ;\n }\n -- popsp ;\n cur -> next = NULL ;\n SplinePointListsFree ( spl ) ;\n oldcur = NULL ;\n }\n else LogError ( _ ( \"Bad flex subroutine in %s\\n\" ) , name ) ;\n is_type2 = context -> is_type2 ;\n break ;\n case 14 : case 15 : case 16 : case 17 : case 18 : {\n int cnt = stack [ sp - 1 ] - 13 ;\n if ( cnt == 5 ) cnt = 6 ;\n if ( context -> instance_count == 0 ) LogError ( _ ( \"Attempt to use a multiple master subroutine in a non-mm font in %s.\\n\" ) , name ) ;\n else if ( tot != cnt * context -> instance_count ) LogError ( _ ( \"Multiple master subroutine called with the wrong number of arguments in %s.\\n\" ) , name ) ;\n else {\n if ( cnt == 1 && ! is_type2 ) {\n if ( sp - 2 - tot >= 1 && ( ! old_last_was_b1 || stack [ 0 ] != Blend ( unblended [ 1 ] , context ) ) ) {\n unblended [ 0 ] [ 0 ] = stack [ 0 ] ;\n for ( i = 1 ;\n i < context -> instance_count ;\n ++ i ) unblended [ 0 ] [ i ] = 0 ;\n }\n else memcpy ( unblended , unblended + 1 , context -> instance_count * sizeof ( real ) ) ;\n for ( j = 0 ;\n j < context -> instance_count ;\n ++ j ) unblended [ 1 ] [ j ] = stack [ sp - 2 - tot + j ] ;\n }\n else if ( cnt == 2 && ! is_type2 ) {\n unblended [ 0 ] [ 0 ] = stack [ sp - 2 - tot ] ;\n unblended [ 1 ] [ 0 ] = stack [ sp - 2 - tot + 1 ] ;\n for ( i = 0 ;\n i < 2 ;\n ++ i ) for ( j = 1 ;\n j < context -> instance_count ;\n ++ j ) unblended [ i ] [ j ] = stack [ sp - 2 - tot + 2 + i * ( context -> instance_count - 1 ) + ( j - 1 ) ] ;\n }\n popsp = 0 ;\n for ( i = 0 ;\n i < cnt ;\n ++ i ) {\n double sum = stack [ sp - 2 - tot + i ] ;\n for ( j = 1 ;\n j < context -> instance_count ;\n ++ j ) sum += context -> blend_values [ j ] * stack [ sp - 2 - tot + cnt + i * ( context -> instance_count - 1 ) + j - 1 ] ;\n pops [ cnt - 1 - popsp ++ ] = sum ;\n }\n }\n }\n break ;\n }\n sp = k + 1 ;\n }\n break ;\n case 20 : if ( sp < 2 ) LogError ( _ ( \"Too few items on stack for put in %s\\n\" ) , name ) ;\n else if ( stack [ sp - 1 ] < 0 || stack [ sp - 1 ] >= 32 ) LogError ( _ ( \"Reference to transient memory out of bounds in put in %s\\n\" ) , name ) ;\n else {\n transient [ ( int ) stack [ sp - 1 ] ] = stack [ sp - 2 ] ;\n sp -= 2 ;\n }\n break ;\n case 21 : if ( sp < 1 ) LogError ( _ ( \"Too few items on stack for get in %s\\n\" ) , name ) ;\n else if ( stack [ sp - 1 ] < 0 || stack [ sp - 1 ] >= 32 ) LogError ( _ ( \"Reference to transient memory out of bounds in put in %s\\n\" ) , name ) ;\n else stack [ sp - 1 ] = transient [ ( int ) stack [ sp - 1 ] ] ;\n break ;\n case 17 : if ( popsp <= 0 ) LogError ( _ ( \"Pop stack underflow on pop in %s\\n\" ) , name ) ;\n else stack [ sp ++ ] = pops [ -- popsp ] ;\n break ;\n case 18 : if ( sp > 0 ) -- sp ;\n break ;\n case 27 : if ( sp >= 1 ) {\n stack [ sp ] = stack [ sp - 1 ] ;\n ++ sp ;\n }\n break ;\n case 28 : if ( sp >= 2 ) {\n real temp = stack [ sp - 1 ] ;\n stack [ sp - 1 ] = stack [ sp - 2 ] ;\n stack [ sp - 2 ] = temp ;\n }\n break ;\n case 29 : if ( sp >= 1 ) {\n int index = stack [ -- sp ] ;\n if ( index < 0 || sp < index + 1 ) LogError ( _ ( \"Index out of range in %s\\n\" ) , name ) ;\n else {\n stack [ sp ] = stack [ sp - index - 1 ] ;\n ++ sp ;\n }\n }\n break ;\n case 30 : if ( sp >= 2 ) {\n int j = stack [ sp - 1 ] , N = stack [ sp - 2 ] ;\n if ( N > sp || j >= N || j < 0 || N < 0 ) LogError ( _ ( \"roll out of range in %s\\n\" ) , name ) ;\n else if ( j == 0 || N == 0 ) ;\n else {\n real * temp = malloc ( N * sizeof ( real ) ) ;\n int i ;\n for ( i = 0 ;\n i < N ;\n ++ i ) temp [ i ] = stack [ sp - N + i ] ;\n for ( i = 0 ;\n i < N ;\n ++ i ) stack [ sp - N + i ] = temp [ ( i + j ) % N ] ;\n free ( temp ) ;\n }\n }\n break ;\n case 33 : if ( is_type2 ) LogError ( _ ( \"Type2 fonts do not support the Type1 setcurrentpoint operator\" ) ) ;\n if ( sp < 2 ) LogError ( _ ( \"Stack underflow on setcurrentpoint in %s\\n\" ) , name ) ;\n else {\n current . x = stack [ 0 ] ;\n current . y = stack [ 1 ] ;\n }\n sp = 0 ;\n break ;\n case 34 : case 35 : case 36 : case 37 : dy = dy3 = dy4 = dy5 = dy6 = 0 ;\n dx = stack [ base ++ ] ;\n if ( v != 34 ) dy = stack [ base ++ ] ;\n dx2 = stack [ base ++ ] ;\n dy2 = stack [ base ++ ] ;\n dx3 = stack [ base ++ ] ;\n if ( v != 34 && v != 36 ) dy3 = stack [ base ++ ] ;\n dx4 = stack [ base ++ ] ;\n if ( v != 34 && v != 36 ) dy4 = stack [ base ++ ] ;\n dx5 = stack [ base ++ ] ;\n if ( v == 34 ) dy5 = - dy2 ;\n else dy5 = stack [ base ++ ] ;\n switch ( v ) {\n real xt , yt ;\n case 35 : dx6 = stack [ base ++ ] ;\n dy6 = stack [ base ++ ] ;\n break ;\n case 34 : dx6 = stack [ base ++ ] ;\n break ;\n case 36 : dx6 = stack [ base ++ ] ;\n dy6 = - dy - dy2 - dy5 ;\n break ;\n case 37 : xt = dx + dx2 + dx3 + dx4 + dx5 ;\n yt = dy + dy2 + dy3 + dy4 + dy5 ;\n if ( xt < 0 ) xt = - xt ;\n if ( yt < 0 ) yt = - yt ;\n if ( xt > yt ) {\n dx6 = stack [ base ++ ] ;\n dy6 = - dy - dy2 - dy3 - dy4 - dy5 ;\n }\n else {\n dy6 = stack [ base ++ ] ;\n dx6 = - dx - dx2 - dx3 - dx4 - dx5 ;\n }\n break ;\n }\n if ( cur != NULL && cur -> first != NULL && ( cur -> first != cur -> last || cur -> first -> next == NULL ) ) {\n current . x = rint ( ( current . x + dx ) * 1024 ) / 1024 ;\n current . y = rint ( ( current . y + dy ) * 1024 ) / 1024 ;\n cur -> last -> nextcp . x = current . x ;\n cur -> last -> nextcp . y = current . y ;\n cur -> last -> nonextcp = false ;\n current . x = rint ( ( current . x + dx2 ) * 1024 ) / 1024 ;\n current . y = rint ( ( current . y + dy2 ) * 1024 ) / 1024 ;\n pt = chunkalloc ( sizeof ( SplinePoint ) ) ;\n pt -> hintmask = pending_hm ;\n pending_hm = NULL ;\n pt -> prevcp . x = current . x ;\n pt -> prevcp . y = current . y ;\n current . x = rint ( ( current . x + dx3 ) * 1024 ) / 1024 ;\n current . y = rint ( ( current . y + dy3 ) * 1024 ) / 1024 ;\n pt -> me . x = current . x ;\n pt -> me . y = current . y ;\n pt -> nonextcp = true ;\n CheckMake ( cur -> last , pt ) ;\n SplineMake3 ( cur -> last , pt ) ;\n cur -> last = pt ;\n current . x = rint ( ( current . x + dx4 ) * 1024 ) / 1024 ;\n current . y = rint ( ( current . y + dy4 ) * 1024 ) / 1024 ;\n cur -> last -> nextcp . x = current . x ;\n cur -> last -> nextcp . y = current . y ;\n cur -> last -> nonextcp = false ;\n current . x = rint ( ( current . x + dx5 ) * 1024 ) / 1024 ;\n current . y = rint ( ( current . y + dy5 ) * 1024 ) / 1024 ;\n pt = chunkalloc ( sizeof ( SplinePoint ) ) ;\n pt -> prevcp . x = current . x ;\n pt -> prevcp . y = current . y ;\n current . x = rint ( ( current . x + dx6 ) * 1024 ) / 1024 ;\n current . y = rint ( ( current . y + dy6 ) * 1024 ) / 1024 ;\n pt -> me . x = current . x ;\n pt -> me . y = current . y ;\n pt -> nonextcp = true ;\n CheckMake ( cur -> last , pt ) ;\n SplineMake3 ( cur -> last , pt ) ;\n cur -> last = pt ;\n }\n else LogError ( _ ( \"No previous point on path in flex operator in %s\\n\" ) , name ) ;\n sp = 0 ;\n break ;\n default : LogError ( _ ( \"Uninterpreted opcode 12,%d in %s\\n\" ) , v , name ) ;\n break ;\n }\n }\n else {\n last_was_b1 = false ;\n switch ( v ) {\n case 1 : case 18 : base = 0 ;\n if ( ( sp & 1 ) && ret -> width == ( int16 ) 0x8000 ) ret -> width = stack [ 0 ] ;\n if ( sp & 1 ) base = 1 ;\n if ( sp - base < 2 ) LogError ( _ ( \"Stack underflow on hstem in %s\\n\" ) , name ) ;\n coord = 0 ;\n hp = NULL ;\n if ( activeh != NULL ) for ( hp = activeh ;\n hp -> next != NULL ;\n hp = hp -> next ) ;\n while ( sp - base >= 2 ) {\n sameh = NULL ;\n if ( ! is_type2 ) sameh = SameH ( ret -> hstem , stack [ base ] + coord , stack [ base + 1 ] , unblended , context -> instance_count ) ;\n hint = HintNew ( stack [ base ] + coord , stack [ base + 1 ] ) ;\n hint -> hintnumber = sameh != NULL ? sameh -> hintnumber : hint_cnt ++ ;\n if ( ! is_type2 && context -> instance_count != 0 ) {\n hint -> u . unblended = chunkalloc ( sizeof ( real [ 2 ] [ MmMax ] ) ) ;\n memcpy ( hint -> u . unblended , unblended , sizeof ( real [ 2 ] [ MmMax ] ) ) ;\n }\n if ( activeh == NULL ) activeh = hint ;\n else hp -> next = hint ;\n hp = hint ;\n if ( ! is_type2 && hint -> hintnumber < 96 ) {\n if ( pending_hm == NULL ) pending_hm = chunkalloc ( sizeof ( HintMask ) ) ;\n ( * pending_hm ) [ hint -> hintnumber >> 3 ] |= 0x80 >> ( hint -> hintnumber & 0x7 ) ;\n }\n base += 2 ;\n coord = hint -> start + hint -> width ;\n }\n sp = 0 ;\n break ;\n case 19 : case 20 : case 3 : case 23 : base = 0 ;\n if ( cur == NULL || v == 3 || v == 23 ) {\n if ( ( sp & 1 ) && is_type2 && ret -> width == ( int16 ) 0x8000 ) {\n ret -> width = stack [ 0 ] ;\n }\n if ( sp & 1 ) base = 1 ;\n if ( sp - base < 2 && v != 19 && v != 20 ) LogError ( _ ( \"Stack underflow on vstem in %s\\n\" ) , name ) ;\n coord = ret -> lsidebearing ;\n hp = NULL ;\n if ( activev != NULL ) for ( hp = activev ;\n hp -> next != NULL ;\n hp = hp -> next ) ;\n while ( sp - base >= 2 ) {\n sameh = NULL ;\n if ( ! is_type2 ) sameh = SameH ( ret -> vstem , stack [ base ] + coord , stack [ base + 1 ] , unblended , context -> instance_count ) ;\n hint = HintNew ( stack [ base ] + coord , stack [ base + 1 ] ) ;\n hint -> hintnumber = sameh != NULL ? sameh -> hintnumber : hint_cnt ++ ;\n if ( ! is_type2 && context -> instance_count != 0 ) {\n hint -> u . unblended = chunkalloc ( sizeof ( real [ 2 ] [ MmMax ] ) ) ;\n memcpy ( hint -> u . unblended , unblended , sizeof ( real [ 2 ] [ MmMax ] ) ) ;\n }\n if ( ! is_type2 && hint -> hintnumber < 96 ) {\n if ( pending_hm == NULL ) pending_hm = chunkalloc ( sizeof ( HintMask ) ) ;\n ( * pending_hm ) [ hint -> hintnumber >> 3 ] |= 0x80 >> ( hint -> hintnumber & 0x7 ) ;\n }\n if ( activev == NULL ) activev = hint ;\n else hp -> next = hint ;\n hp = hint ;\n base += 2 ;\n coord = hint -> start + hint -> width ;\n }\n sp = 0 ;\n }\n if ( v == 19 || v == 20 ) {\n int bytes = ( hint_cnt + 7 ) / 8 ;\n if ( bytes > sizeof ( HintMask ) ) bytes = sizeof ( HintMask ) ;\n if ( v == 19 ) {\n ret -> hstem = HintsAppend ( ret -> hstem , activeh ) ;\n activeh = NULL ;\n ret -> vstem = HintsAppend ( ret -> vstem , activev ) ;\n activev = NULL ;\n if ( pending_hm == NULL ) pending_hm = chunkalloc ( sizeof ( HintMask ) ) ;\n memcpy ( pending_hm , type1 , bytes ) ;\n }\n else if ( cp < sizeof ( counters ) / sizeof ( counters [ 0 ] ) ) {\n counters [ cp ] = chunkalloc ( sizeof ( HintMask ) ) ;\n memcpy ( counters [ cp ] , type1 , bytes ) ;\n ++ cp ;\n }\n if ( bytes != hint_cnt / 8 ) {\n int mask = 0xff >> ( hint_cnt & 7 ) ;\n if ( type1 [ bytes - 1 ] & mask ) LogError ( _ ( \"Hint mask (or counter mask) with too many hints in %s\\n\" ) , name ) ;\n }\n type1 += bytes ;\n len -= bytes ;\n }\n break ;\n case 14 : if ( ( sp & 1 ) && is_type2 && ret -> width == ( int16 ) 0x8000 ) ret -> width = stack [ 0 ] ;\n if ( context -> painttype != 2 ) closepath ( cur , is_type2 ) ;\n pcsp = 0 ;\n if ( sp == 4 ) {\n stack [ 4 ] = stack [ 3 ] ;\n stack [ 3 ] = stack [ 2 ] ;\n stack [ 2 ] = stack [ 1 ] ;\n stack [ 1 ] = stack [ 0 ] ;\n stack [ 0 ] = 0 ;\n sp = 5 ;\n goto seac ;\n }\n else if ( sp == 5 ) {\n stack [ 0 ] = 0 ;\n goto seac ;\n }\n goto done ;\n break ;\n case 13 : if ( sp < 2 ) LogError ( _ ( \"Stack underflow on hsbw in %s\\n\" ) , name ) ;\n ret -> lsidebearing = stack [ 0 ] ;\n current . x = stack [ 0 ] ;\n ret -> width = stack [ 1 ] ;\n sp = 0 ;\n break ;\n case 9 : sp = 0 ;\n closepath ( cur , is_type2 ) ;\n break ;\n case 21 : case 22 : case 4 : if ( is_type2 ) {\n if ( ( ( v == 21 && sp == 3 ) || ( v != 21 && sp == 2 ) ) && ret -> width == ( int16 ) 0x8000 ) ret -> width = stack [ 0 ] ;\n if ( v == 21 && sp > 2 ) {\n stack [ 0 ] = stack [ sp - 2 ] ;\n stack [ 1 ] = stack [ sp - 1 ] ;\n sp = 2 ;\n }\n else if ( v != 21 && sp > 1 ) {\n stack [ 0 ] = stack [ sp - 1 ] ;\n sp = 1 ;\n }\n if ( context -> painttype != 2 ) closepath ( cur , true ) ;\n }\n case 5 : case 6 : case 7 : polarity = 0 ;\n base = 0 ;\n while ( base < sp ) {\n dx = dy = 0 ;\n if ( v == 5 || v == 21 ) {\n if ( sp < base + 2 ) {\n LogError ( _ ( \"Stack underflow on rlineto/rmoveto in %s\\n\" ) , name ) ;\n break ;\n }\n dx = stack [ base ++ ] ;\n dy = stack [ base ++ ] ;\n }\n else if ( ( v == 6 && ! ( polarity & 1 ) ) || ( v == 7 && ( polarity & 1 ) ) || v == 22 ) {\n if ( sp <= base ) {\n LogError ( _ ( \"Stack underflow on hlineto/hmoveto in %s\\n\" ) , name ) ;\n break ;\n }\n dx = stack [ base ++ ] ;\n }\n else {\n if ( sp <= base ) {\n LogError ( _ ( \"Stack underflow on vlineto/vmoveto in %s\\n\" ) , name ) ;\n break ;\n }\n dy = stack [ base ++ ] ;\n }\n ++ polarity ;\n current . x = rint ( ( current . x + dx ) * 1024 ) / 1024 ;\n current . y = rint ( ( current . y + dy ) * 1024 ) / 1024 ;\n pt = chunkalloc ( sizeof ( SplinePoint ) ) ;\n pt -> hintmask = pending_hm ;\n pending_hm = NULL ;\n pt -> me . x = current . x ;\n pt -> me . y = current . y ;\n pt -> noprevcp = true ;\n pt -> nonextcp = true ;\n if ( v == 4 || v == 21 || v == 22 ) {\n if ( cur != NULL && cur -> first == cur -> last && cur -> first -> prev == NULL && is_type2 ) {\n cur -> first -> me . x = current . x ;\n cur -> first -> me . y = current . y ;\n SplinePointFree ( pt ) ;\n }\n else {\n SplinePointList * spl = chunkalloc ( sizeof ( SplinePointList ) ) ;\n spl -> first = spl -> last = pt ;\n if ( cur != NULL ) cur -> next = spl ;\n else ret -> layers [ ly_fore ] . splines = spl ;\n cur = spl ;\n }\n break ;\n }\n else {\n if ( cur != NULL && cur -> first != NULL && ( cur -> first != cur -> last || cur -> first -> next == NULL ) ) {\n CheckMake ( cur -> last , pt ) ;\n SplineMake3 ( cur -> last , pt ) ;\n cur -> last = pt ;\n }\n else LogError ( _ ( \"No previous point on path in lineto in %s\\n\" ) , name ) ;\n if ( ! is_type2 ) break ;\n }\n }\n sp = 0 ;\n break ;\n case 25 : base = 0 ;\n while ( sp > base + 6 ) {\n current . x = rint ( ( current . x + stack [ base ++ ] ) * 1024 ) / 1024 ;\n current . y = rint ( ( current . y + stack [ base ++ ] ) * 1024 ) / 1024 ;\n if ( cur != NULL ) {\n pt = chunkalloc ( sizeof ( SplinePoint ) ) ;\n pt -> hintmask = pending_hm ;\n pending_hm = NULL ;\n pt -> me . x = current . x ;\n pt -> me . y = current . y ;\n pt -> noprevcp = true ;\n pt -> nonextcp = true ;\n CheckMake ( cur -> last , pt ) ;\n SplineMake3 ( cur -> last , pt ) ;\n cur -> last = pt ;\n }\n }\n case 24 : case 8 : case 31 : case 30 : case 27 : case 26 : polarity = 0 ;\n while ( sp > base + 2 ) {\n dx = dy = dx2 = dy2 = dx3 = dy3 = 0 ;\n if ( v == 8 || v == 25 || v == 24 ) {\n if ( sp < 6 + base ) {\n LogError ( _ ( \"Stack underflow on rrcurveto in %s\\n\" ) , name ) ;\n base = sp ;\n }\n else {\n dx = stack [ base ++ ] ;\n dy = stack [ base ++ ] ;\n dx2 = stack [ base ++ ] ;\n dy2 = stack [ base ++ ] ;\n dx3 = stack [ base ++ ] ;\n dy3 = stack [ base ++ ] ;\n }\n }\n else if ( v == 27 ) {\n if ( sp < 4 + base ) {\n LogError ( _ ( \"Stack underflow on hhcurveto in %s\\n\" ) , name ) ;\n base = sp ;\n }\n else {\n if ( ( sp - base ) & 1 ) dy = stack [ base ++ ] ;\n dx = stack [ base ++ ] ;\n dx2 = stack [ base ++ ] ;\n dy2 = stack [ base ++ ] ;\n dx3 = stack [ base ++ ] ;\n }\n }\n else if ( v == 26 ) {\n if ( sp < 4 + base ) {\n LogError ( _ ( \"Stack underflow on hhcurveto in %s\\n\" ) , name ) ;\n base = sp ;\n }\n else {\n if ( ( sp - base ) & 1 ) dx = stack [ base ++ ] ;\n dy = stack [ base ++ ] ;\n dx2 = stack [ base ++ ] ;\n dy2 = stack [ base ++ ] ;\n dy3 = stack [ base ++ ] ;\n }\n }\n else if ( ( v == 31 && ! ( polarity & 1 ) ) || ( v == 30 && ( polarity & 1 ) ) ) {\n if ( sp < 4 + base ) {\n LogError ( _ ( \"Stack underflow on hvcurveto in %s\\n\" ) , name ) ;\n base = sp ;\n }\n else {\n dx = stack [ base ++ ] ;\n dx2 = stack [ base ++ ] ;\n dy2 = stack [ base ++ ] ;\n dy3 = stack [ base ++ ] ;\n if ( sp == base + 1 ) dx3 = stack [ base ++ ] ;\n }\n }\n else {\n if ( sp < 4 + base ) {\n LogError ( _ ( \"Stack underflow on vhcurveto in %s\\n\" ) , name ) ;\n base = sp ;\n }\n else {\n dy = stack [ base ++ ] ;\n dx2 = stack [ base ++ ] ;\n dy2 = stack [ base ++ ] ;\n dx3 = stack [ base ++ ] ;\n if ( sp == base + 1 ) dy3 = stack [ base ++ ] ;\n }\n }\n ++ polarity ;\n if ( cur != NULL && cur -> first != NULL && ( cur -> first != cur -> last || cur -> first -> next == NULL ) ) {\n current . x = rint ( ( current . x + dx ) * 1024 ) / 1024 ;\n current . y = rint ( ( current . y + dy ) * 1024 ) / 1024 ;\n cur -> last -> nextcp . x = current . x ;\n cur -> last -> nextcp . y = current . y ;\n cur -> last -> nonextcp = false ;\n current . x = rint ( ( current . x + dx2 ) * 1024 ) / 1024 ;\n current . y = rint ( ( current . y + dy2 ) * 1024 ) / 1024 ;\n pt = chunkalloc ( sizeof ( SplinePoint ) ) ;\n pt -> hintmask = pending_hm ;\n pending_hm = NULL ;\n pt -> prevcp . x = current . x ;\n pt -> prevcp . y = current . y ;\n current . x = rint ( ( current . x + dx3 ) * 1024 ) / 1024 ;\n current . y = rint ( ( current . y + dy3 ) * 1024 ) / 1024 ;\n pt -> me . x = current . x ;\n pt -> me . y = current . y ;\n pt -> nonextcp = true ;\n CheckMake ( cur -> last , pt ) ;\n SplineMake3 ( cur -> last , pt ) ;\n cur -> last = pt ;\n }\n else LogError ( _ ( \"No previous point on path in curveto in %s\\n\" ) , name ) ;\n }\n if ( v == 24 ) {\n current . x = rint ( ( current . x + stack [ base ++ ] ) * 1024 ) / 1024 ;\n current . y = rint ( ( current . y + stack [ base ++ ] ) * 1024 ) / 1024 ;\n if ( cur != NULL ) {\n pt = chunkalloc ( sizeof ( SplinePoint ) ) ;\n pt -> hintmask = pending_hm ;\n pending_hm = NULL ;\n pt -> me . x = current . x ;\n pt -> me . y = current . y ;\n pt -> noprevcp = true ;\n pt -> nonextcp = true ;\n CheckMake ( cur -> last , pt ) ;\n SplineMake3 ( cur -> last , pt ) ;\n cur -> last = pt ;\n }\n }\n sp = 0 ;\n break ;\n case 29 : case 10 : if ( sp < 1 ) {\n LogError ( _ ( \"Stack underflow on callsubr in %s\\n\" ) , name ) ;\n break ;\n }\n else if ( pcsp > 10 ) {\n LogError ( _ ( \"Too many subroutine calls in %s\\n\" ) , name ) ;\n break ;\n }\n s = subrs ;\n if ( v == 29 ) s = gsubrs ;\n if ( s != NULL ) stack [ sp - 1 ] += s -> bias ;\n if ( s == NULL || stack [ sp - 1 ] >= s -> cnt || stack [ sp - 1 ] < 0 || s -> values [ ( int ) stack [ sp - 1 ] ] == NULL ) LogError ( _ ( \"Subroutine number out of bounds in %s\\n\" ) , name ) ;\n else {\n pcstack [ pcsp ] . type1 = type1 ;\n pcstack [ pcsp ] . len = len ;\n pcstack [ pcsp ] . subnum = stack [ sp - 1 ] ;\n ++ pcsp ;\n type1 = s -> values [ ( int ) stack [ sp - 1 ] ] ;\n len = s -> lens [ ( int ) stack [ sp - 1 ] ] ;\n }\n if ( -- sp < 0 ) sp = 0 ;\n break ;\n case 11 : if ( pcsp < 1 ) LogError ( _ ( \"return when not in subroutine in %s\\n\" ) , name ) ;\n else {\n -- pcsp ;\n type1 = pcstack [ pcsp ] . type1 ;\n len = pcstack [ pcsp ] . len ;\n }\n break ;\n case 16 : {\n int cnt , i , j ;\n if ( context -> instance_count == 0 ) LogError ( _ ( \"Attempt to use a multiple master subroutine in a non-mm font.\\n\" ) ) ;\n else if ( sp < 1 || sp < context -> instance_count * stack [ sp - 1 ] + 1 ) LogError ( _ ( \"Too few items on stack for blend in %s\\n\" ) , name ) ;\n else {\n if ( ! context -> blend_warn ) {\n LogError ( _ ( \"Use of obsolete blend operator.\\n\" ) ) ;\n context -> blend_warn = true ;\n }\n cnt = stack [ sp - 1 ] ;\n sp -= context -> instance_count * stack [ sp - 1 ] + 1 ;\n for ( i = 0 ;\n i < cnt ;\n ++ i ) {\n for ( j = 1 ;\n j < context -> instance_count ;\n ++ j ) stack [ sp + i ] += context -> blend_values [ j ] * stack [ sp + cnt + i * ( context -> instance_count - 1 ) + j - 1 ] ;\n }\n sp += cnt ;\n }\n }\n break ;\n default : LogError ( _ ( \"Uninterpreted opcode %d in %s\\n\" ) , v , name ) ;\n break ;\n }\n }\n }\n done : if ( pcsp != 0 ) LogError ( _ ( \"end of subroutine reached with no return in %s\\n\" ) , name ) ;\n SCCategorizePoints ( ret ) ;\n ret -> hstem = HintsAppend ( ret -> hstem , activeh ) ;\n activeh = NULL ;\n ret -> vstem = HintsAppend ( ret -> vstem , activev ) ;\n activev = NULL ;\n if ( cp != 0 ) {\n int i ;\n ret -> countermasks = malloc ( cp * sizeof ( HintMask ) ) ;\n ret -> countermask_cnt = cp ;\n for ( i = 0 ;\n i < cp ;\n ++ i ) {\n memcpy ( & ret -> countermasks [ i ] , counters [ i ] , sizeof ( HintMask ) ) ;\n chunkfree ( counters [ i ] , sizeof ( HintMask ) ) ;\n }\n }\n if ( ! is_type2 && ! context -> painttype ) for ( cur = ret -> layers [ ly_fore ] . splines ;\n cur != NULL ;\n cur = cur -> next ) if ( cur -> first -> prev == NULL ) {\n CheckMake ( cur -> last , cur -> first ) ;\n SplineMake3 ( cur -> last , cur -> first ) ;\n cur -> last = cur -> first ;\n }\n for ( cur = ret -> layers [ ly_fore ] . splines ;\n cur != NULL ;\n cur = cur -> next ) SplineSetReverse ( cur ) ;\n if ( ret -> hstem == NULL && ret -> vstem == NULL ) ret -> manualhints = false ;\n if ( ! is_type2 && context -> instance_count != 0 ) {\n UnblendFree ( ret -> hstem ) ;\n UnblendFree ( ret -> vstem ) ;\n }\n ret -> hstem = HintCleanup ( ret -> hstem , true , context -> instance_count ) ;\n ret -> vstem = HintCleanup ( ret -> vstem , true , context -> instance_count ) ;\n SCGuessHHintInstancesList ( ret , ly_fore ) ;\n SCGuessVHintInstancesList ( ret , ly_fore ) ;\n ret -> hconflicts = StemListAnyConflicts ( ret -> hstem ) ;\n ret -> vconflicts = StemListAnyConflicts ( ret -> vstem ) ;\n if ( context -> instance_count == 1 && ! ret -> hconflicts && ! ret -> vconflicts ) SCClearHintMasks ( ret , ly_fore , false ) ;\n HintsRenumber ( ret ) ;\n if ( name != NULL && strcmp ( name , \".notdef\" ) != 0 ) ret -> widthset = true ;\n return ( ret ) ;\n }"}
{"idx": 14023, "target": 1, "func": "int MBS_ApplyPatch ( const MBSPatchHeader * header , int patchfd , unsigned char * fbuffer , int filefd ) {\n unsigned char * fbufend = fbuffer + header -> slen ;\n unsigned char * buf = ( unsigned char * ) malloc ( header -> cblen + header -> difflen + header -> extralen ) ;\n if ( ! buf ) return MEM_ERROR ;\n int rv = OK ;\n int r = header -> cblen + header -> difflen + header -> extralen ;\n unsigned char * wb = buf ;\n while ( r ) {\n int c = read ( patchfd , wb , ( r > SSIZE_MAX ) ? SSIZE_MAX : r ) ;\n if ( c < 0 ) {\n rv = READ_ERROR ;\n goto end ;\n }\n r -= c ;\n if ( c == 0 && r ) {\n rv = UNEXPECTED_ERROR ;\n goto end ;\n }\n }\n {\n MBSPatchTriple * ctrlsrc = ( MBSPatchTriple * ) buf ;\n unsigned char * diffsrc = buf + header -> cblen ;\n unsigned char * extrasrc = diffsrc + header -> difflen ;\n MBSPatchTriple * ctrlend = ( MBSPatchTriple * ) diffsrc ;\n unsigned char * diffend = extrasrc ;\n unsigned char * extraend = extrasrc + header -> extralen ;\n do {\n ctrlsrc -> x = ntohl ( ctrlsrc -> x ) ;\n ctrlsrc -> y = ntohl ( ctrlsrc -> y ) ;\n ctrlsrc -> z = ntohl ( ctrlsrc -> z ) ;\n # ifdef DEBUG_bsmedberg printf ( \"Applying block:\\n\" \" x: %u\\n\" \" y: %u\\n\" \" z: %i\\n\" , ctrlsrc -> x , ctrlsrc -> y , ctrlsrc -> z ) ;\n # endif if ( fbuffer + ctrlsrc -> x > fbufend || diffsrc + ctrlsrc -> x > diffend ) {\n rv = UNEXPECTED_ERROR ;\n goto end ;\n }\n for ( unsigned int i = 0 ;\n i < ctrlsrc -> x ;\n ++ i ) {\n diffsrc [ i ] += fbuffer [ i ] ;\n }\n if ( ( int ) write ( filefd , diffsrc , ctrlsrc -> x ) != ctrlsrc -> x ) {\n rv = WRITE_ERROR ;\n goto end ;\n }\n fbuffer += ctrlsrc -> x ;\n diffsrc += ctrlsrc -> x ;\n if ( extrasrc + ctrlsrc -> y > extraend ) {\n rv = UNEXPECTED_ERROR ;\n goto end ;\n }\n if ( ( int ) write ( filefd , extrasrc , ctrlsrc -> y ) != ctrlsrc -> y ) {\n rv = WRITE_ERROR ;\n goto end ;\n }\n extrasrc += ctrlsrc -> y ;\n if ( fbuffer + ctrlsrc -> z > fbufend ) {\n rv = UNEXPECTED_ERROR ;\n goto end ;\n }\n fbuffer += ctrlsrc -> z ;\n ++ ctrlsrc ;\n }\n while ( ctrlsrc < ctrlend ) ;\n }\n end : free ( buf ) ;\n return rv ;\n }"}
{"idx": 14024, "target": 0, "func": "static void encode_segmentation ( VP9_COMMON * cm , MACROBLOCKD * xd , struct vp9_write_bit_buffer * wb ) {\n int i , j ;\n const struct segmentation * seg = & cm -> seg ;\n vp9_wb_write_bit ( wb , seg -> enabled ) ;\n if ( ! seg -> enabled ) return ;\n vp9_wb_write_bit ( wb , seg -> update_map ) ;\n if ( seg -> update_map ) {\n vp9_choose_segmap_coding_method ( cm , xd ) ;\n for ( i = 0 ;\n i < SEG_TREE_PROBS ;\n i ++ ) {\n const int prob = seg -> tree_probs [ i ] ;\n const int update = prob != MAX_PROB ;\n vp9_wb_write_bit ( wb , update ) ;\n if ( update ) vp9_wb_write_literal ( wb , prob , 8 ) ;\n }\n vp9_wb_write_bit ( wb , seg -> temporal_update ) ;\n if ( seg -> temporal_update ) {\n for ( i = 0 ;\n i < PREDICTION_PROBS ;\n i ++ ) {\n const int prob = seg -> pred_probs [ i ] ;\n const int update = prob != MAX_PROB ;\n vp9_wb_write_bit ( wb , update ) ;\n if ( update ) vp9_wb_write_literal ( wb , prob , 8 ) ;\n }\n }\n }\n vp9_wb_write_bit ( wb , seg -> update_data ) ;\n if ( seg -> update_data ) {\n vp9_wb_write_bit ( wb , seg -> abs_delta ) ;\n for ( i = 0 ;\n i < MAX_SEGMENTS ;\n i ++ ) {\n for ( j = 0 ;\n j < SEG_LVL_MAX ;\n j ++ ) {\n const int active = vp9_segfeature_active ( seg , i , j ) ;\n vp9_wb_write_bit ( wb , active ) ;\n if ( active ) {\n const int data = vp9_get_segdata ( seg , i , j ) ;\n const int data_max = vp9_seg_feature_data_max ( j ) ;\n if ( vp9_is_segfeature_signed ( j ) ) {\n encode_unsigned_max ( wb , abs ( data ) , data_max ) ;\n vp9_wb_write_bit ( wb , data < 0 ) ;\n }\n else {\n encode_unsigned_max ( wb , data , data_max ) ;\n }\n }\n }\n }\n }\n }"}
{"idx": 14025, "target": 0, "func": "static HA_KEYSEG * ha_find_null ( HA_KEYSEG * keyseg , uchar * a ) {\n for ( ;\n ( enum ha_base_keytype ) keyseg -> type != HA_KEYTYPE_END ;\n keyseg ++ ) {\n uchar * end ;\n if ( keyseg -> null_bit ) {\n if ( ! * a ++ ) return keyseg ;\n }\n end = a + keyseg -> length ;\n switch ( ( enum ha_base_keytype ) keyseg -> type ) {\n case HA_KEYTYPE_TEXT : case HA_KEYTYPE_BINARY : case HA_KEYTYPE_BIT : if ( keyseg -> flag & HA_SPACE_PACK ) {\n int a_length ;\n get_key_length ( a_length , a ) ;\n a += a_length ;\n break ;\n }\n else a = end ;\n break ;\n case HA_KEYTYPE_VARTEXT1 : case HA_KEYTYPE_VARTEXT2 : case HA_KEYTYPE_VARBINARY1 : case HA_KEYTYPE_VARBINARY2 : {\n int a_length ;\n get_key_length ( a_length , a ) ;\n a += a_length ;\n break ;\n }\n case HA_KEYTYPE_NUM : if ( keyseg -> flag & HA_SPACE_PACK ) {\n int alength = * a ++ ;\n end = a + alength ;\n }\n a = end ;\n break ;\n case HA_KEYTYPE_INT8 : case HA_KEYTYPE_SHORT_INT : case HA_KEYTYPE_USHORT_INT : case HA_KEYTYPE_LONG_INT : case HA_KEYTYPE_ULONG_INT : case HA_KEYTYPE_INT24 : case HA_KEYTYPE_UINT24 : # ifdef HAVE_LONG_LONG case HA_KEYTYPE_LONGLONG : case HA_KEYTYPE_ULONGLONG : # endif case HA_KEYTYPE_FLOAT : case HA_KEYTYPE_DOUBLE : a = end ;\n break ;\n case HA_KEYTYPE_END : DBUG_ASSERT ( 0 ) ;\n break ;\n }\n }\n return keyseg ;\n }"}
{"idx": 14026, "target": 0, "func": "VALUE asn1time_to_time ( const ASN1_TIME * time ) {\n struct tm tm ;\n VALUE argv [ 6 ] ;\n int count ;\n if ( ! time || ! time -> data ) return Qnil ;\n memset ( & tm , 0 , sizeof ( struct tm ) ) ;\n switch ( time -> type ) {\n case V_ASN1_UTCTIME : count = sscanf ( ( const char * ) time -> data , \"%2d%2d%2d%2d%2d%2dZ\" , & tm . tm_year , & tm . tm_mon , & tm . tm_mday , & tm . tm_hour , & tm . tm_min , & tm . tm_sec ) ;\n if ( count == 5 ) {\n tm . tm_sec = 0 ;\n }\n else if ( count != 6 ) {\n ossl_raise ( rb_eTypeError , \"bad UTCTIME format: \\\"%s\\\"\" , time -> data ) ;\n }\n if ( tm . tm_year < 69 ) {\n tm . tm_year += 2000 ;\n }\n else {\n tm . tm_year += 1900 ;\n }\n break ;\n case V_ASN1_GENERALIZEDTIME : if ( sscanf ( ( const char * ) time -> data , \"%4d%2d%2d%2d%2d%2dZ\" , & tm . tm_year , & tm . tm_mon , & tm . tm_mday , & tm . tm_hour , & tm . tm_min , & tm . tm_sec ) != 6 ) {\n ossl_raise ( rb_eTypeError , \"bad GENERALIZEDTIME format\" ) ;\n }\n break ;\n default : rb_warning ( \"unknown time format\" ) ;\n return Qnil ;\n }\n argv [ 0 ] = INT2NUM ( tm . tm_year ) ;\n argv [ 1 ] = INT2NUM ( tm . tm_mon ) ;\n argv [ 2 ] = INT2NUM ( tm . tm_mday ) ;\n argv [ 3 ] = INT2NUM ( tm . tm_hour ) ;\n argv [ 4 ] = INT2NUM ( tm . tm_min ) ;\n argv [ 5 ] = INT2NUM ( tm . tm_sec ) ;\n return rb_funcall2 ( rb_cTime , rb_intern ( \"utc\" ) , 6 , argv ) ;\n }"}
{"idx": 14027, "target": 0, "func": "static int dissect_h225_DestinationInfo ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_DestinationInfo , DestinationInfo_sequence_of ) ;\n return offset ;\n }"}
{"idx": 14028, "target": 0, "func": "static gsize label_fill ( char * label_str , gsize pos , const header_field_info * hfinfo , const char * text ) {\n gsize name_pos ;\n name_pos = pos = label_concat ( label_str , pos , hfinfo -> name ) ;\n pos = label_concat ( label_str , pos , \": \" ) ;\n pos = label_concat ( label_str , pos , text ? text : \"(null)\" ) ;\n if ( pos >= ITEM_LABEL_LENGTH ) {\n label_mark_truncated ( label_str , name_pos ) ;\n }\n return pos ;\n }"}
{"idx": 14029, "target": 0, "func": "static UBool action_setRunsOnly ( UBiDiTransform * pTransform , UErrorCode * pErrorCode ) {\n ( void ) pErrorCode ;\n ubidi_setReorderingMode ( pTransform -> pBidi , UBIDI_REORDER_RUNS_ONLY ) ;\n return FALSE ;\n }"}
{"idx": 14030, "target": 0, "func": "const char * vpx_svc_get_message ( const SvcContext * svc_ctx ) {\n const SvcInternal * const si = get_const_svc_internal ( svc_ctx ) ;\n if ( svc_ctx == NULL || si == NULL ) return NULL ;\n return si -> message_buffer ;\n }"}
{"idx": 14031, "target": 0, "func": "static void sig_server_looking ( SERVER_REC * server ) {\n g_return_if_fail ( server != NULL ) ;\n printformat ( server , NULL , MSGLEVEL_CLIENTNOTICE , TXT_LOOKING_UP , server -> connrec -> address ) ;\n }"}
{"idx": 14032, "target": 0, "func": "static void dissect_zcl_identify_identifyqueryrsp ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_identify_identify_timeout , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n }"}
{"idx": 14033, "target": 0, "func": "static int rollstack ( struct psstack * stack , int sp ) {\n int n , j , i ;\n struct psstack * temp ;\n if ( sp > 1 ) {\n n = stack [ sp - 2 ] . u . val ;\n j = stack [ sp - 1 ] . u . val ;\n sp -= 2 ;\n if ( sp >= n && n > 0 ) {\n j %= n ;\n if ( j < 0 ) j += n ;\n temp = malloc ( n * sizeof ( struct psstack ) ) ;\n for ( i = 0 ;\n i < n ;\n ++ i ) temp [ i ] = stack [ sp - n + i ] ;\n for ( i = 0 ;\n i < n ;\n ++ i ) stack [ sp - n + ( i + j ) % n ] = temp [ i ] ;\n free ( temp ) ;\n }\n }\n return ( sp ) ;\n }"}
{"idx": 14034, "target": 0, "func": "int qemuMonitorTextRemovePCIDevice ( qemuMonitorPtr mon , virDomainDevicePCIAddress * guestAddr ) {\n char * cmd = NULL ;\n char * reply = NULL ;\n int tryOldSyntax = 0 ;\n int ret = - 1 ;\n try_command : if ( tryOldSyntax ) {\n if ( virAsprintf ( & cmd , \"pci_del 0 %.2x\" , guestAddr -> slot ) < 0 ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n }\n else {\n if ( virAsprintf ( & cmd , \"pci_del pci_addr=%.4x:%.2x:%.2x\" , guestAddr -> domain , guestAddr -> bus , guestAddr -> slot ) < 0 ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , _ ( \"failed to remove PCI device\" ) ) ;\n goto cleanup ;\n }\n if ( ! tryOldSyntax && strstr ( reply , \"extraneous characters\" ) ) {\n tryOldSyntax = 1 ;\n VIR_FREE ( reply ) ;\n VIR_FREE ( cmd ) ;\n goto try_command ;\n }\n if ( strstr ( reply , \"invalid slot\" ) || strstr ( reply , \"Invalid pci address\" ) ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"failed to detach PCI device, invalid address %.4x:%.2x:%.2x: %s\" ) , guestAddr -> domain , guestAddr -> bus , guestAddr -> slot , reply ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( cmd ) ;\n VIR_FREE ( reply ) ;\n return ret ;\n }"}
{"idx": 14035, "target": 0, "func": "void traverse_commit_list ( struct rev_info * revs , show_commit_fn show_commit , show_object_fn show_object , void * data ) {\n int i ;\n struct commit * commit ;\n struct strbuf base ;\n strbuf_init ( & base , PATH_MAX ) ;\n while ( ( commit = get_revision ( revs ) ) != NULL ) {\n if ( commit -> tree ) add_pending_tree ( revs , commit -> tree ) ;\n show_commit ( commit , data ) ;\n }\n for ( i = 0 ;\n i < revs -> pending . nr ;\n i ++ ) {\n struct object_array_entry * pending = revs -> pending . objects + i ;\n struct object * obj = pending -> item ;\n const char * name = pending -> name ;\n const char * path = pending -> path ;\n if ( obj -> flags & ( UNINTERESTING | SEEN ) ) continue ;\n if ( obj -> type == OBJ_TAG ) {\n obj -> flags |= SEEN ;\n show_object ( obj , name , data ) ;\n continue ;\n }\n if ( ! path ) path = \"\" ;\n if ( obj -> type == OBJ_TREE ) {\n process_tree ( revs , ( struct tree * ) obj , show_object , & base , path , data ) ;\n continue ;\n }\n if ( obj -> type == OBJ_BLOB ) {\n process_blob ( revs , ( struct blob * ) obj , show_object , & base , path , data ) ;\n continue ;\n }\n die ( \"unknown pending object %s (%s)\" , oid_to_hex ( & obj -> oid ) , name ) ;\n }\n object_array_clear ( & revs -> pending ) ;\n strbuf_release ( & base ) ;\n }"}
{"idx": 14036, "target": 0, "func": "static void rd_pick_partition ( VP9_COMP * cpi , const TileInfo * const tile , TOKENEXTRA * * tp , int mi_row , int mi_col , BLOCK_SIZE bsize , int * rate , int64_t * dist , int64_t best_rd , PC_TREE * pc_tree ) {\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCK * const x = & cpi -> mb ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n const int mi_step = num_8x8_blocks_wide_lookup [ bsize ] / 2 ;\n ENTROPY_CONTEXT l [ 16 * MAX_MB_PLANE ] , a [ 16 * MAX_MB_PLANE ] ;\n PARTITION_CONTEXT sl [ 8 ] , sa [ 8 ] ;\n TOKENEXTRA * tp_orig = * tp ;\n PICK_MODE_CONTEXT * ctx = & pc_tree -> none ;\n int i , pl ;\n BLOCK_SIZE subsize ;\n int this_rate , sum_rate = 0 , best_rate = INT_MAX ;\n int64_t this_dist , sum_dist = 0 , best_dist = INT64_MAX ;\n int64_t sum_rd = 0 ;\n int do_split = bsize >= BLOCK_8X8 ;\n int do_rect = 1 ;\n const int force_horz_split = ( mi_row + mi_step >= cm -> mi_rows ) ;\n const int force_vert_split = ( mi_col + mi_step >= cm -> mi_cols ) ;\n const int xss = x -> e_mbd . plane [ 1 ] . subsampling_x ;\n const int yss = x -> e_mbd . plane [ 1 ] . subsampling_y ;\n BLOCK_SIZE min_size = cpi -> sf . min_partition_size ;\n BLOCK_SIZE max_size = cpi -> sf . max_partition_size ;\n # if CONFIG_FP_MB_STATS unsigned int src_diff_var = UINT_MAX ;\n int none_complexity = 0 ;\n # endif int partition_none_allowed = ! force_horz_split && ! force_vert_split ;\n int partition_horz_allowed = ! force_vert_split && yss <= xss && bsize >= BLOCK_8X8 ;\n int partition_vert_allowed = ! force_horz_split && xss <= yss && bsize >= BLOCK_8X8 ;\n ( void ) * tp_orig ;\n assert ( num_8x8_blocks_wide_lookup [ bsize ] == num_8x8_blocks_high_lookup [ bsize ] ) ;\n set_offsets ( cpi , tile , mi_row , mi_col , bsize ) ;\n if ( bsize == BLOCK_16X16 && cpi -> oxcf . aq_mode ) x -> mb_energy = vp9_block_energy ( cpi , x , bsize ) ;\n if ( cpi -> sf . cb_partition_search && bsize == BLOCK_16X16 ) {\n int cb_partition_search_ctrl = ( ( pc_tree -> index == 0 || pc_tree -> index == 3 ) + get_chessboard_index ( cm -> current_video_frame ) ) & 0x1 ;\n if ( cb_partition_search_ctrl && bsize > min_size && bsize < max_size ) set_partition_range ( cm , xd , mi_row , mi_col , bsize , & min_size , & max_size ) ;\n }\n if ( cpi -> sf . auto_min_max_partition_size ) {\n partition_none_allowed &= ( bsize <= max_size && bsize >= min_size ) ;\n partition_horz_allowed &= ( ( bsize <= max_size && bsize > min_size ) || force_horz_split ) ;\n partition_vert_allowed &= ( ( bsize <= max_size && bsize > min_size ) || force_vert_split ) ;\n do_split &= bsize > min_size ;\n }\n if ( cpi -> sf . use_square_partition_only ) {\n partition_horz_allowed &= force_horz_split ;\n partition_vert_allowed &= force_vert_split ;\n }\n save_context ( cpi , mi_row , mi_col , a , l , sa , sl , bsize ) ;\n # if CONFIG_FP_MB_STATS if ( cpi -> use_fp_mb_stats ) {\n set_offsets ( cpi , tile , mi_row , mi_col , bsize ) ;\n src_diff_var = get_sby_perpixel_diff_variance ( cpi , & cpi -> mb . plane [ 0 ] . src , mi_row , mi_col , bsize ) ;\n }\n # endif # if CONFIG_FP_MB_STATS if ( cpi -> use_fp_mb_stats && bsize >= BLOCK_32X32 && do_split && partition_none_allowed && src_diff_var > 4 && cm -> base_qindex < qindex_split_threshold_lookup [ bsize ] ) {\n int mb_row = mi_row >> 1 ;\n int mb_col = mi_col >> 1 ;\n int mb_row_end = MIN ( mb_row + num_16x16_blocks_high_lookup [ bsize ] , cm -> mb_rows ) ;\n int mb_col_end = MIN ( mb_col + num_16x16_blocks_wide_lookup [ bsize ] , cm -> mb_cols ) ;\n int r , c ;\n for ( r = mb_row ;\n r < mb_row_end ;\n r ++ ) {\n for ( c = mb_col ;\n c < mb_col_end ;\n c ++ ) {\n const int mb_index = r * cm -> mb_cols + c ;\n MOTION_DIRECTION this_mv ;\n MOTION_DIRECTION right_mv ;\n MOTION_DIRECTION bottom_mv ;\n this_mv = get_motion_direction_fp ( cpi -> twopass . this_frame_mb_stats [ mb_index ] ) ;\n if ( c != mb_col_end - 1 ) {\n right_mv = get_motion_direction_fp ( cpi -> twopass . this_frame_mb_stats [ mb_index + 1 ] ) ;\n none_complexity += get_motion_inconsistency ( this_mv , right_mv ) ;\n }\n if ( r != mb_row_end - 1 ) {\n bottom_mv = get_motion_direction_fp ( cpi -> twopass . this_frame_mb_stats [ mb_index + cm -> mb_cols ] ) ;\n none_complexity += get_motion_inconsistency ( this_mv , bottom_mv ) ;\n }\n }\n }\n if ( none_complexity > complexity_16x16_blocks_threshold [ bsize ] ) {\n partition_none_allowed = 0 ;\n }\n }\n # endif if ( partition_none_allowed ) {\n rd_pick_sb_modes ( cpi , tile , mi_row , mi_col , & this_rate , & this_dist , bsize , ctx , best_rd , 0 ) ;\n if ( this_rate != INT_MAX ) {\n if ( bsize >= BLOCK_8X8 ) {\n pl = partition_plane_context ( xd , mi_row , mi_col , bsize ) ;\n this_rate += cpi -> partition_cost [ pl ] [ PARTITION_NONE ] ;\n }\n sum_rd = RDCOST ( x -> rdmult , x -> rddiv , this_rate , this_dist ) ;\n if ( sum_rd < best_rd ) {\n int64_t dist_breakout_thr = cpi -> sf . partition_search_breakout_dist_thr ;\n int rate_breakout_thr = cpi -> sf . partition_search_breakout_rate_thr ;\n best_rate = this_rate ;\n best_dist = this_dist ;\n best_rd = sum_rd ;\n if ( bsize >= BLOCK_8X8 ) pc_tree -> partitioning = PARTITION_NONE ;\n dist_breakout_thr >>= 8 - ( b_width_log2 ( bsize ) + b_height_log2 ( bsize ) ) ;\n if ( ! x -> e_mbd . lossless && ( ctx -> skippable && best_dist < dist_breakout_thr && best_rate < rate_breakout_thr ) ) {\n do_split = 0 ;\n do_rect = 0 ;\n }\n # if CONFIG_FP_MB_STATS if ( cpi -> use_fp_mb_stats && do_split != 0 && cm -> base_qindex > qindex_skip_threshold_lookup [ bsize ] ) {\n int mb_row = mi_row >> 1 ;\n int mb_col = mi_col >> 1 ;\n int mb_row_end = MIN ( mb_row + num_16x16_blocks_high_lookup [ bsize ] , cm -> mb_rows ) ;\n int mb_col_end = MIN ( mb_col + num_16x16_blocks_wide_lookup [ bsize ] , cm -> mb_cols ) ;\n int r , c ;\n int skip = 1 ;\n for ( r = mb_row ;\n r < mb_row_end ;\n r ++ ) {\n for ( c = mb_col ;\n c < mb_col_end ;\n c ++ ) {\n const int mb_index = r * cm -> mb_cols + c ;\n if ( ! ( cpi -> twopass . this_frame_mb_stats [ mb_index ] & FPMB_MOTION_ZERO_MASK ) || ! ( cpi -> twopass . this_frame_mb_stats [ mb_index ] & FPMB_ERROR_SMALL_MASK ) ) {\n skip = 0 ;\n break ;\n }\n }\n if ( skip == 0 ) {\n break ;\n }\n }\n if ( skip ) {\n if ( src_diff_var == UINT_MAX ) {\n set_offsets ( cpi , tile , mi_row , mi_col , bsize ) ;\n src_diff_var = get_sby_perpixel_diff_variance ( cpi , & cpi -> mb . plane [ 0 ] . src , mi_row , mi_col , bsize ) ;\n }\n if ( src_diff_var < 8 ) {\n do_split = 0 ;\n do_rect = 0 ;\n }\n }\n }\n # endif }\n }\n restore_context ( cpi , mi_row , mi_col , a , l , sa , sl , bsize ) ;\n }\n if ( cpi -> sf . adaptive_motion_search ) store_pred_mv ( x , ctx ) ;\n sum_rd = 0 ;\n if ( do_split ) {\n subsize = get_subsize ( bsize , PARTITION_SPLIT ) ;\n if ( bsize == BLOCK_8X8 ) {\n i = 4 ;\n if ( cpi -> sf . adaptive_pred_interp_filter && partition_none_allowed ) pc_tree -> leaf_split [ 0 ] -> pred_interp_filter = ctx -> mic . mbmi . interp_filter ;\n rd_pick_sb_modes ( cpi , tile , mi_row , mi_col , & sum_rate , & sum_dist , subsize , pc_tree -> leaf_split [ 0 ] , best_rd , 0 ) ;\n if ( sum_rate == INT_MAX ) sum_rd = INT64_MAX ;\n else sum_rd = RDCOST ( x -> rdmult , x -> rddiv , sum_rate , sum_dist ) ;\n }\n else {\n for ( i = 0 ;\n i < 4 && sum_rd < best_rd ;\n ++ i ) {\n const int x_idx = ( i & 1 ) * mi_step ;\n const int y_idx = ( i >> 1 ) * mi_step ;\n if ( mi_row + y_idx >= cm -> mi_rows || mi_col + x_idx >= cm -> mi_cols ) continue ;\n if ( cpi -> sf . adaptive_motion_search ) load_pred_mv ( x , ctx ) ;\n pc_tree -> split [ i ] -> index = i ;\n rd_pick_partition ( cpi , tile , tp , mi_row + y_idx , mi_col + x_idx , subsize , & this_rate , & this_dist , best_rd - sum_rd , pc_tree -> split [ i ] ) ;\n if ( this_rate == INT_MAX ) {\n sum_rd = INT64_MAX ;\n }\n else {\n sum_rate += this_rate ;\n sum_dist += this_dist ;\n sum_rd = RDCOST ( x -> rdmult , x -> rddiv , sum_rate , sum_dist ) ;\n }\n }\n }\n if ( sum_rd < best_rd && i == 4 ) {\n pl = partition_plane_context ( xd , mi_row , mi_col , bsize ) ;\n sum_rate += cpi -> partition_cost [ pl ] [ PARTITION_SPLIT ] ;\n sum_rd = RDCOST ( x -> rdmult , x -> rddiv , sum_rate , sum_dist ) ;\n if ( sum_rd < best_rd ) {\n best_rate = sum_rate ;\n best_dist = sum_dist ;\n best_rd = sum_rd ;\n pc_tree -> partitioning = PARTITION_SPLIT ;\n }\n }\n else {\n if ( cpi -> sf . less_rectangular_check ) do_rect &= ! partition_none_allowed ;\n }\n restore_context ( cpi , mi_row , mi_col , a , l , sa , sl , bsize ) ;\n }\n if ( partition_horz_allowed && do_rect ) {\n subsize = get_subsize ( bsize , PARTITION_HORZ ) ;\n if ( cpi -> sf . adaptive_motion_search ) load_pred_mv ( x , ctx ) ;\n if ( cpi -> sf . adaptive_pred_interp_filter && bsize == BLOCK_8X8 && partition_none_allowed ) pc_tree -> horizontal [ 0 ] . pred_interp_filter = ctx -> mic . mbmi . interp_filter ;\n rd_pick_sb_modes ( cpi , tile , mi_row , mi_col , & sum_rate , & sum_dist , subsize , & pc_tree -> horizontal [ 0 ] , best_rd , 0 ) ;\n sum_rd = RDCOST ( x -> rdmult , x -> rddiv , sum_rate , sum_dist ) ;\n if ( sum_rd < best_rd && mi_row + mi_step < cm -> mi_rows ) {\n PICK_MODE_CONTEXT * ctx = & pc_tree -> horizontal [ 0 ] ;\n update_state ( cpi , ctx , mi_row , mi_col , subsize , 0 ) ;\n encode_superblock ( cpi , tp , 0 , mi_row , mi_col , subsize , ctx ) ;\n if ( cpi -> sf . adaptive_motion_search ) load_pred_mv ( x , ctx ) ;\n if ( cpi -> sf . adaptive_pred_interp_filter && bsize == BLOCK_8X8 && partition_none_allowed ) pc_tree -> horizontal [ 1 ] . pred_interp_filter = ctx -> mic . mbmi . interp_filter ;\n rd_pick_sb_modes ( cpi , tile , mi_row + mi_step , mi_col , & this_rate , & this_dist , subsize , & pc_tree -> horizontal [ 1 ] , best_rd - sum_rd , 1 ) ;\n if ( this_rate == INT_MAX ) {\n sum_rd = INT64_MAX ;\n }\n else {\n sum_rate += this_rate ;\n sum_dist += this_dist ;\n sum_rd = RDCOST ( x -> rdmult , x -> rddiv , sum_rate , sum_dist ) ;\n }\n }\n if ( sum_rd < best_rd ) {\n pl = partition_plane_context ( xd , mi_row , mi_col , bsize ) ;\n sum_rate += cpi -> partition_cost [ pl ] [ PARTITION_HORZ ] ;\n sum_rd = RDCOST ( x -> rdmult , x -> rddiv , sum_rate , sum_dist ) ;\n if ( sum_rd < best_rd ) {\n best_rd = sum_rd ;\n best_rate = sum_rate ;\n best_dist = sum_dist ;\n pc_tree -> partitioning = PARTITION_HORZ ;\n }\n }\n restore_context ( cpi , mi_row , mi_col , a , l , sa , sl , bsize ) ;\n }\n if ( partition_vert_allowed && do_rect ) {\n subsize = get_subsize ( bsize , PARTITION_VERT ) ;\n if ( cpi -> sf . adaptive_motion_search ) load_pred_mv ( x , ctx ) ;\n if ( cpi -> sf . adaptive_pred_interp_filter && bsize == BLOCK_8X8 && partition_none_allowed ) pc_tree -> vertical [ 0 ] . pred_interp_filter = ctx -> mic . mbmi . interp_filter ;\n rd_pick_sb_modes ( cpi , tile , mi_row , mi_col , & sum_rate , & sum_dist , subsize , & pc_tree -> vertical [ 0 ] , best_rd , 0 ) ;\n sum_rd = RDCOST ( x -> rdmult , x -> rddiv , sum_rate , sum_dist ) ;\n if ( sum_rd < best_rd && mi_col + mi_step < cm -> mi_cols ) {\n update_state ( cpi , & pc_tree -> vertical [ 0 ] , mi_row , mi_col , subsize , 0 ) ;\n encode_superblock ( cpi , tp , 0 , mi_row , mi_col , subsize , & pc_tree -> vertical [ 0 ] ) ;\n if ( cpi -> sf . adaptive_motion_search ) load_pred_mv ( x , ctx ) ;\n if ( cpi -> sf . adaptive_pred_interp_filter && bsize == BLOCK_8X8 && partition_none_allowed ) pc_tree -> vertical [ 1 ] . pred_interp_filter = ctx -> mic . mbmi . interp_filter ;\n rd_pick_sb_modes ( cpi , tile , mi_row , mi_col + mi_step , & this_rate , & this_dist , subsize , & pc_tree -> vertical [ 1 ] , best_rd - sum_rd , 1 ) ;\n if ( this_rate == INT_MAX ) {\n sum_rd = INT64_MAX ;\n }\n else {\n sum_rate += this_rate ;\n sum_dist += this_dist ;\n sum_rd = RDCOST ( x -> rdmult , x -> rddiv , sum_rate , sum_dist ) ;\n }\n }\n if ( sum_rd < best_rd ) {\n pl = partition_plane_context ( xd , mi_row , mi_col , bsize ) ;\n sum_rate += cpi -> partition_cost [ pl ] [ PARTITION_VERT ] ;\n sum_rd = RDCOST ( x -> rdmult , x -> rddiv , sum_rate , sum_dist ) ;\n if ( sum_rd < best_rd ) {\n best_rate = sum_rate ;\n best_dist = sum_dist ;\n best_rd = sum_rd ;\n pc_tree -> partitioning = PARTITION_VERT ;\n }\n }\n restore_context ( cpi , mi_row , mi_col , a , l , sa , sl , bsize ) ;\n }\n ( void ) best_rd ;\n * rate = best_rate ;\n * dist = best_dist ;\n if ( best_rate < INT_MAX && best_dist < INT64_MAX && pc_tree -> index != 3 ) {\n int output_enabled = ( bsize == BLOCK_64X64 ) ;\n if ( ( cpi -> oxcf . aq_mode == COMPLEXITY_AQ ) && cm -> seg . update_map ) vp9_select_in_frame_q_segment ( cpi , mi_row , mi_col , output_enabled , best_rate ) ;\n if ( cpi -> oxcf . aq_mode == CYCLIC_REFRESH_AQ ) vp9_cyclic_refresh_set_rate_and_dist_sb ( cpi -> cyclic_refresh , best_rate , best_dist ) ;\n encode_sb ( cpi , tile , tp , mi_row , mi_col , output_enabled , bsize , pc_tree ) ;\n }\n if ( bsize == BLOCK_64X64 ) {\n assert ( tp_orig < * tp ) ;\n assert ( best_rate < INT_MAX ) ;\n assert ( best_dist < INT64_MAX ) ;\n }\n else {\n assert ( tp_orig == * tp ) ;\n }\n }"}
{"idx": 14037, "target": 0, "func": "static void optst ( struct vars * v , struct subre * t ) {\n return ;\n }"}
{"idx": 14038, "target": 1, "func": "static uint32_t U_CALLCONV _enumTypeValue ( const void * context , uint32_t value ) {\n return GET_CATEGORY ( value ) ;\n }"}
{"idx": 14039, "target": 0, "func": "static void openpic_set_irq ( void * opaque , int n_IRQ , int level ) {\n OpenPICState * opp = opaque ;\n IRQSource * src ;\n if ( n_IRQ >= OPENPIC_MAX_IRQ ) {\n fprintf ( stderr , \"%s: IRQ %d out of range\\n\" , __func__ , n_IRQ ) ;\n abort ( ) ;\n }\n src = & opp -> src [ n_IRQ ] ;\n DPRINTF ( \"openpic: set irq %d = %d ivpr=0x%08x\\n\" , n_IRQ , level , src -> ivpr ) ;\n if ( src -> level ) {\n src -> pending = level ;\n openpic_update_irq ( opp , n_IRQ ) ;\n }\n else {\n if ( level ) {\n src -> pending = 1 ;\n openpic_update_irq ( opp , n_IRQ ) ;\n }\n if ( src -> output != OPENPIC_OUTPUT_INT ) {\n src -> pending = 0 ;\n openpic_update_irq ( opp , n_IRQ ) ;\n }\n }\n }"}
{"idx": 14040, "target": 0, "func": "void xmlListClear ( xmlListPtr l ) {\n xmlLinkPtr lk ;\n if ( l == NULL ) return ;\n lk = l -> sentinel -> next ;\n while ( lk != l -> sentinel ) {\n xmlLinkPtr next = lk -> next ;\n xmlLinkDeallocator ( l , lk ) ;\n lk = next ;\n }\n }"}
{"idx": 14041, "target": 0, "func": "static int vorbis_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n vorbis_context * vc = avctx -> priv_data ;\n AVFrame * frame = data ;\n GetBitContext * gb = & vc -> gb ;\n float * channel_ptrs [ 255 ] ;\n int i , len , ret ;\n av_dlog ( NULL , \"packet length %d \\n\" , buf_size ) ;\n frame -> nb_samples = vc -> blocksize [ 1 ] / 2 ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( vc -> audio_channels > 8 ) {\n for ( i = 0 ;\n i < vc -> audio_channels ;\n i ++ ) channel_ptrs [ i ] = ( float * ) frame -> extended_data [ i ] ;\n }\n else {\n for ( i = 0 ;\n i < vc -> audio_channels ;\n i ++ ) {\n int ch = ff_vorbis_channel_layout_offsets [ vc -> audio_channels - 1 ] [ i ] ;\n channel_ptrs [ ch ] = ( float * ) frame -> extended_data [ i ] ;\n }\n }\n init_get_bits ( gb , buf , buf_size * 8 ) ;\n if ( ( len = vorbis_parse_audio_packet ( vc , channel_ptrs ) ) <= 0 ) return len ;\n if ( ! vc -> first_frame ) {\n vc -> first_frame = 1 ;\n * got_frame_ptr = 0 ;\n return buf_size ;\n }\n av_dlog ( NULL , \"parsed %d bytes %d bits, returned %d samples (*ch*bits) \\n\" , get_bits_count ( gb ) / 8 , get_bits_count ( gb ) % 8 , len ) ;\n frame -> nb_samples = len ;\n * got_frame_ptr = 1 ;\n return buf_size ;\n }"}
{"idx": 14042, "target": 0, "func": "static int32_t strcmpAfterPrefix ( const char * s1 , const char * s2 , int32_t * pPrefixLength ) {\n int32_t pl = * pPrefixLength ;\n int32_t cmp = 0 ;\n s1 += pl ;\n s2 += pl ;\n for ( ;\n ;\n ) {\n int32_t c1 = ( uint8_t ) * s1 ++ ;\n int32_t c2 = ( uint8_t ) * s2 ++ ;\n cmp = c1 - c2 ;\n if ( cmp != 0 || c1 == 0 ) {\n break ;\n }\n ++ pl ;\n }\n * pPrefixLength = pl ;\n return cmp ;\n }"}
{"idx": 14043, "target": 0, "func": "static void generate_2_noise_channels ( MLPDecodeContext * m , unsigned int substr ) {\n SubStream * s = & m -> substream [ substr ] ;\n unsigned int i ;\n uint32_t seed = s -> noisegen_seed ;\n unsigned int maxchan = s -> max_matrix_channel ;\n for ( i = 0 ;\n i < s -> blockpos ;\n i ++ ) {\n uint16_t seed_shr7 = seed >> 7 ;\n m -> sample_buffer [ i ] [ maxchan + 1 ] = ( ( int8_t ) ( seed >> 15 ) ) << s -> noise_shift ;\n m -> sample_buffer [ i ] [ maxchan + 2 ] = ( ( int8_t ) seed_shr7 ) << s -> noise_shift ;\n seed = ( seed << 16 ) ^ seed_shr7 ^ ( seed_shr7 << 5 ) ;\n }\n s -> noisegen_seed = seed ;\n }"}
{"idx": 14044, "target": 1, "func": "int av_image_fill_pointers ( uint8_t * data [ 4 ] , enum PixelFormat pix_fmt , int height , uint8_t * ptr , const int linesizes [ 4 ] ) {\n int i , total_size , size [ 4 ] , has_plane [ 4 ] ;\n const AVPixFmtDescriptor * desc = & av_pix_fmt_descriptors [ pix_fmt ] ;\n memset ( data , 0 , sizeof ( data [ 0 ] ) * 4 ) ;\n memset ( size , 0 , sizeof ( size ) ) ;\n memset ( has_plane , 0 , sizeof ( has_plane ) ) ;\n if ( ( unsigned ) pix_fmt >= PIX_FMT_NB || desc -> flags & PIX_FMT_HWACCEL ) return AVERROR ( EINVAL ) ;\n data [ 0 ] = ptr ;\n if ( linesizes [ 0 ] > ( INT_MAX - 1024 ) / height ) return AVERROR ( EINVAL ) ;\n size [ 0 ] = linesizes [ 0 ] * height ;\n if ( desc -> flags & PIX_FMT_PAL ) {\n size [ 0 ] = ( size [ 0 ] + 3 ) & ~ 3 ;\n data [ 1 ] = ptr + size [ 0 ] ;\n return size [ 0 ] + 256 * 4 ;\n }\n for ( i = 0 ;\n i < 4 ;\n i ++ ) has_plane [ desc -> comp [ i ] . plane ] = 1 ;\n total_size = size [ 0 ] ;\n for ( i = 1 ;\n has_plane [ i ] && i < 4 ;\n i ++ ) {\n int h , s = ( i == 1 || i == 2 ) ? desc -> log2_chroma_h : 0 ;\n data [ i ] = data [ i - 1 ] + size [ i - 1 ] ;\n h = ( height + ( 1 << s ) - 1 ) >> s ;\n if ( linesizes [ i ] > INT_MAX / h ) return AVERROR ( EINVAL ) ;\n size [ i ] = h * linesizes [ i ] ;\n if ( total_size > INT_MAX - size [ i ] ) return AVERROR ( EINVAL ) ;\n total_size += size [ i ] ;\n }\n return total_size ;\n }"}
{"idx": 14045, "target": 0, "func": "Jbig2PatternDict * jbig2_decode_ht_region_get_hpats ( Jbig2Ctx * ctx , Jbig2Segment * segment ) {\n int index = 0 ;\n Jbig2PatternDict * pattern_dict = NULL ;\n Jbig2Segment * rsegment = NULL ;\n while ( ! pattern_dict && segment -> referred_to_segment_count > index ) {\n rsegment = jbig2_find_segment ( ctx , segment -> referred_to_segments [ index ] ) ;\n if ( rsegment ) {\n if ( ( rsegment -> flags & 0x3f ) == 16 && rsegment -> result ) {\n pattern_dict = ( Jbig2PatternDict * ) rsegment -> result ;\n return pattern_dict ;\n }\n }\n index ++ ;\n }\n return pattern_dict ;\n }"}
{"idx": 14046, "target": 0, "func": "static int dissect_h245_T_t84 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_t84 , T_t84_sequence ) ;\n return offset ;\n }"}
{"idx": 14047, "target": 0, "func": "void archive_mstring_clean ( struct archive_mstring * aes ) {\n archive_wstring_free ( & ( aes -> aes_wcs ) ) ;\n archive_string_free ( & ( aes -> aes_mbs ) ) ;\n archive_string_free ( & ( aes -> aes_utf8 ) ) ;\n archive_string_free ( & ( aes -> aes_mbs_in_locale ) ) ;\n aes -> aes_set = 0 ;\n }"}
{"idx": 14048, "target": 0, "func": "static int dissect_h245_T_h223ModeChange ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_h223ModeChange , T_h223ModeChange_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 14049, "target": 0, "func": "struct auth_client_request * auth_client_request_new ( struct auth_client * client , const struct auth_request_info * request_info , auth_request_callback_t * callback , void * context ) {\n struct auth_client_request * request ;\n pool_t pool ;\n pool = pool_alloconly_create ( \"auth client request\" , 512 ) ;\n request = p_new ( pool , struct auth_client_request , 1 ) ;\n request -> pool = pool ;\n request -> conn = client -> conn ;\n request -> callback = callback ;\n request -> context = context ;\n request -> id = auth_server_connection_add_request ( request -> conn , request ) ;\n request -> created = ioloop_time ;\n T_BEGIN {\n auth_server_send_new_request ( request -> conn , request , request_info ) ;\n }\n T_END ;\n return request ;\n }"}
{"idx": 14050, "target": 0, "func": "static int pfkey_xfrm_policy2msg ( struct sk_buff * skb , const struct xfrm_policy * xp , int dir ) {\n struct sadb_msg * hdr ;\n struct sadb_address * addr ;\n struct sadb_lifetime * lifetime ;\n struct sadb_x_policy * pol ;\n struct sadb_x_sec_ctx * sec_ctx ;\n struct xfrm_sec_ctx * xfrm_ctx ;\n int i ;\n int size ;\n int sockaddr_size = pfkey_sockaddr_size ( xp -> family ) ;\n int socklen = pfkey_sockaddr_len ( xp -> family ) ;\n size = pfkey_xfrm_policy2msg_size ( xp ) ;\n hdr = ( struct sadb_msg * ) skb_put ( skb , sizeof ( struct sadb_msg ) ) ;\n memset ( hdr , 0 , size ) ;\n addr = ( struct sadb_address * ) skb_put ( skb , sizeof ( struct sadb_address ) + sockaddr_size ) ;\n addr -> sadb_address_len = ( sizeof ( struct sadb_address ) + sockaddr_size ) / sizeof ( uint64_t ) ;\n addr -> sadb_address_exttype = SADB_EXT_ADDRESS_SRC ;\n addr -> sadb_address_proto = pfkey_proto_from_xfrm ( xp -> selector . proto ) ;\n addr -> sadb_address_prefixlen = xp -> selector . prefixlen_s ;\n addr -> sadb_address_reserved = 0 ;\n if ( ! pfkey_sockaddr_fill ( & xp -> selector . saddr , xp -> selector . sport , ( struct sockaddr * ) ( addr + 1 ) , xp -> family ) ) BUG ( ) ;\n addr = ( struct sadb_address * ) skb_put ( skb , sizeof ( struct sadb_address ) + sockaddr_size ) ;\n addr -> sadb_address_len = ( sizeof ( struct sadb_address ) + sockaddr_size ) / sizeof ( uint64_t ) ;\n addr -> sadb_address_exttype = SADB_EXT_ADDRESS_DST ;\n addr -> sadb_address_proto = pfkey_proto_from_xfrm ( xp -> selector . proto ) ;\n addr -> sadb_address_prefixlen = xp -> selector . prefixlen_d ;\n addr -> sadb_address_reserved = 0 ;\n pfkey_sockaddr_fill ( & xp -> selector . daddr , xp -> selector . dport , ( struct sockaddr * ) ( addr + 1 ) , xp -> family ) ;\n lifetime = ( struct sadb_lifetime * ) skb_put ( skb , sizeof ( struct sadb_lifetime ) ) ;\n lifetime -> sadb_lifetime_len = sizeof ( struct sadb_lifetime ) / sizeof ( uint64_t ) ;\n lifetime -> sadb_lifetime_exttype = SADB_EXT_LIFETIME_HARD ;\n lifetime -> sadb_lifetime_allocations = _X2KEY ( xp -> lft . hard_packet_limit ) ;\n lifetime -> sadb_lifetime_bytes = _X2KEY ( xp -> lft . hard_byte_limit ) ;\n lifetime -> sadb_lifetime_addtime = xp -> lft . hard_add_expires_seconds ;\n lifetime -> sadb_lifetime_usetime = xp -> lft . hard_use_expires_seconds ;\n lifetime = ( struct sadb_lifetime * ) skb_put ( skb , sizeof ( struct sadb_lifetime ) ) ;\n lifetime -> sadb_lifetime_len = sizeof ( struct sadb_lifetime ) / sizeof ( uint64_t ) ;\n lifetime -> sadb_lifetime_exttype = SADB_EXT_LIFETIME_SOFT ;\n lifetime -> sadb_lifetime_allocations = _X2KEY ( xp -> lft . soft_packet_limit ) ;\n lifetime -> sadb_lifetime_bytes = _X2KEY ( xp -> lft . soft_byte_limit ) ;\n lifetime -> sadb_lifetime_addtime = xp -> lft . soft_add_expires_seconds ;\n lifetime -> sadb_lifetime_usetime = xp -> lft . soft_use_expires_seconds ;\n lifetime = ( struct sadb_lifetime * ) skb_put ( skb , sizeof ( struct sadb_lifetime ) ) ;\n lifetime -> sadb_lifetime_len = sizeof ( struct sadb_lifetime ) / sizeof ( uint64_t ) ;\n lifetime -> sadb_lifetime_exttype = SADB_EXT_LIFETIME_CURRENT ;\n lifetime -> sadb_lifetime_allocations = xp -> curlft . packets ;\n lifetime -> sadb_lifetime_bytes = xp -> curlft . bytes ;\n lifetime -> sadb_lifetime_addtime = xp -> curlft . add_time ;\n lifetime -> sadb_lifetime_usetime = xp -> curlft . use_time ;\n pol = ( struct sadb_x_policy * ) skb_put ( skb , sizeof ( struct sadb_x_policy ) ) ;\n pol -> sadb_x_policy_len = sizeof ( struct sadb_x_policy ) / sizeof ( uint64_t ) ;\n pol -> sadb_x_policy_exttype = SADB_X_EXT_POLICY ;\n pol -> sadb_x_policy_type = IPSEC_POLICY_DISCARD ;\n if ( xp -> action == XFRM_POLICY_ALLOW ) {\n if ( xp -> xfrm_nr ) pol -> sadb_x_policy_type = IPSEC_POLICY_IPSEC ;\n else pol -> sadb_x_policy_type = IPSEC_POLICY_NONE ;\n }\n pol -> sadb_x_policy_dir = dir + 1 ;\n pol -> sadb_x_policy_id = xp -> index ;\n pol -> sadb_x_policy_priority = xp -> priority ;\n for ( i = 0 ;\n i < xp -> xfrm_nr ;\n i ++ ) {\n const struct xfrm_tmpl * t = xp -> xfrm_vec + i ;\n struct sadb_x_ipsecrequest * rq ;\n int req_size ;\n int mode ;\n req_size = sizeof ( struct sadb_x_ipsecrequest ) ;\n if ( t -> mode == XFRM_MODE_TUNNEL ) {\n socklen = pfkey_sockaddr_len ( t -> encap_family ) ;\n req_size += socklen * 2 ;\n }\n else {\n size -= 2 * socklen ;\n }\n rq = ( void * ) skb_put ( skb , req_size ) ;\n pol -> sadb_x_policy_len += req_size / 8 ;\n memset ( rq , 0 , sizeof ( * rq ) ) ;\n rq -> sadb_x_ipsecrequest_len = req_size ;\n rq -> sadb_x_ipsecrequest_proto = t -> id . proto ;\n if ( ( mode = pfkey_mode_from_xfrm ( t -> mode ) ) < 0 ) return - EINVAL ;\n rq -> sadb_x_ipsecrequest_mode = mode ;\n rq -> sadb_x_ipsecrequest_level = IPSEC_LEVEL_REQUIRE ;\n if ( t -> reqid ) rq -> sadb_x_ipsecrequest_level = IPSEC_LEVEL_UNIQUE ;\n if ( t -> optional ) rq -> sadb_x_ipsecrequest_level = IPSEC_LEVEL_USE ;\n rq -> sadb_x_ipsecrequest_reqid = t -> reqid ;\n if ( t -> mode == XFRM_MODE_TUNNEL ) {\n u8 * sa = ( void * ) ( rq + 1 ) ;\n pfkey_sockaddr_fill ( & t -> saddr , 0 , ( struct sockaddr * ) sa , t -> encap_family ) ;\n pfkey_sockaddr_fill ( & t -> id . daddr , 0 , ( struct sockaddr * ) ( sa + socklen ) , t -> encap_family ) ;\n }\n }\n if ( ( xfrm_ctx = xp -> security ) ) {\n int ctx_size = pfkey_xfrm_policy2sec_ctx_size ( xp ) ;\n sec_ctx = ( struct sadb_x_sec_ctx * ) skb_put ( skb , ctx_size ) ;\n sec_ctx -> sadb_x_sec_len = ctx_size / sizeof ( uint64_t ) ;\n sec_ctx -> sadb_x_sec_exttype = SADB_X_EXT_SEC_CTX ;\n sec_ctx -> sadb_x_ctx_doi = xfrm_ctx -> ctx_doi ;\n sec_ctx -> sadb_x_ctx_alg = xfrm_ctx -> ctx_alg ;\n sec_ctx -> sadb_x_ctx_len = xfrm_ctx -> ctx_len ;\n memcpy ( sec_ctx + 1 , xfrm_ctx -> ctx_str , xfrm_ctx -> ctx_len ) ;\n }\n hdr -> sadb_msg_len = size / sizeof ( uint64_t ) ;\n hdr -> sadb_msg_reserved = atomic_read ( & xp -> refcnt ) ;\n return 0 ;\n }"}
{"idx": 14051, "target": 0, "func": "static void cmd_join ( const char * data , SERVER_REC * server ) {\n WINDOW_REC * window ;\n CHANNEL_REC * channel ;\n GHashTable * optlist ;\n char * pdata ;\n int invite ;\n int samewindow ;\n void * free_arg ;\n if ( ! cmd_get_params ( data , & free_arg , 1 | PARAM_FLAG_OPTIONS | PARAM_FLAG_UNKNOWN_OPTIONS | PARAM_FLAG_GETREST | PARAM_FLAG_STRIP_TRAILING_WS , \"join\" , & optlist , & pdata ) ) return ;\n invite = g_hash_table_lookup ( optlist , \"invite\" ) != NULL ;\n samewindow = g_hash_table_lookup ( optlist , \"window\" ) != NULL ;\n if ( ! invite && * pdata == '\\0' ) cmd_param_error ( CMDERR_NOT_ENOUGH_PARAMS ) ;\n server = cmd_options_get_server ( \"join\" , optlist , server ) ;\n channel = channel_find ( server , pdata ) ;\n if ( channel != NULL ) {\n window = window_item_window ( channel ) ;\n if ( window != active_win ) window_set_active ( window ) ;\n window_item_set_active ( active_win , ( WI_ITEM_REC * ) channel ) ;\n }\n else {\n if ( server == NULL || ! server -> connected ) cmd_param_error ( CMDERR_NOT_CONNECTED ) ;\n if ( invite ) {\n if ( server -> last_invite == NULL ) {\n printformat ( NULL , NULL , MSGLEVEL_CLIENTNOTICE , TXT_NOT_INVITED ) ;\n signal_stop ( ) ;\n cmd_params_free ( free_arg ) ;\n return ;\n }\n pdata = server -> last_invite ;\n }\n if ( samewindow ) signal_add ( \"channel created\" , ( SIGNAL_FUNC ) signal_channel_created_curwin ) ;\n server -> channels_join ( server , pdata , FALSE ) ;\n if ( samewindow ) signal_remove ( \"channel created\" , ( SIGNAL_FUNC ) signal_channel_created_curwin ) ;\n }\n cmd_params_free ( free_arg ) ;\n }"}
{"idx": 14052, "target": 0, "func": "static int qio_channel_websock_shutdown ( QIOChannel * ioc , QIOChannelShutdown how , Error * * errp ) {\n QIOChannelWebsock * tioc = QIO_CHANNEL_WEBSOCK ( ioc ) ;\n return qio_channel_shutdown ( tioc -> master , how , errp ) ;\n }"}
{"idx": 14053, "target": 0, "func": "static int dissect_h245_ConferenceCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_ConferenceCapability , ConferenceCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 14054, "target": 0, "func": "static int dissect_usb_video_format ( proto_tree * tree , tvbuff_t * tvb , int offset , guint8 subtype ) {\n static const int * interlace_bits [ ] = {\n & hf_usb_vid_is_interlaced , & hf_usb_vid_interlaced_fields , & hf_usb_vid_field_1_first , & hf_usb_vid_field_pattern , NULL }\n ;\n proto_item * desc_item ;\n guint8 format_index ;\n format_index = tvb_get_guint8 ( tvb , offset ) ;\n desc_item = proto_tree_get_parent ( tree ) ;\n proto_item_append_text ( desc_item , \" (Format %u)\" , format_index ) ;\n proto_tree_add_item ( tree , hf_usb_vid_format_index , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_usb_vid_format_num_frame_descriptors , tvb , offset + 1 , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if ( ( subtype == VS_FORMAT_UNCOMPRESSED ) || ( subtype == VS_FORMAT_FRAME_BASED ) ) {\n char fourcc [ 5 ] ;\n tvb_memcpy ( tvb , ( guint8 * ) fourcc , offset , 4 ) ;\n fourcc [ 4 ] = '\\0' ;\n proto_item_append_text ( desc_item , \": %s\" , fourcc ) ;\n proto_tree_add_item ( tree , hf_usb_vid_format_guid , tvb , offset , 16 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_usb_vid_format_bits_per_pixel , tvb , offset + 16 , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 17 ;\n }\n else if ( subtype == VS_FORMAT_MJPEG ) {\n static const int * flags [ ] = {\n & hf_usb_vid_mjpeg_fixed_samples , NULL }\n ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_usb_vid_mjpeg_flags , ett_mjpeg_flags , flags , ENC_NA ) ;\n offset ++ ;\n }\n else {\n DISSECTOR_ASSERT_NOT_REACHED ( ) ;\n }\n proto_tree_add_item ( tree , hf_usb_vid_default_frame_index , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_usb_vid_aspect_ratio_x , tvb , offset + 1 , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_usb_vid_aspect_ratio_y , tvb , offset + 2 , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n # if 0 if ( something ) proto_tree_add_uint_format_value ( tree , hf_usb_vid_interlace_flags , tvb , offset , 1 , tvb_get_guint8 ( tvb , offset ) , \"Not applicable\" ) ;\n # endif proto_tree_add_bitmask ( tree , tvb , offset , hf_usb_vid_interlace_flags , ett_interlace_flags , interlace_bits , ENC_NA ) ;\n offset ++ ;\n proto_tree_add_item ( tree , hf_usb_vid_copy_protect , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset ++ ;\n if ( subtype == VS_FORMAT_FRAME_BASED ) {\n proto_tree_add_item ( tree , hf_usb_vid_variable_size , tvb , offset , 1 , ENC_NA ) ;\n offset ++ ;\n }\n return offset ;\n }"}
{"idx": 14055, "target": 0, "func": "static void fillrd ( struct postproc_state * state , int q , int a ) {\n char char_dist [ 300 ] ;\n double sigma ;\n int i ;\n vp8_clear_system_state ( ) ;\n sigma = a + .5 + .6 * ( 63 - q ) / 63.0 ;\n {\n int next , j ;\n next = 0 ;\n for ( i = - 32 ;\n i < 32 ;\n i ++ ) {\n const int v = ( int ) ( .5 + 256 * vp8_gaussian ( sigma , 0 , i ) ) ;\n if ( v ) {\n for ( j = 0 ;\n j < v ;\n j ++ ) {\n char_dist [ next + j ] = ( char ) i ;\n }\n next = next + j ;\n }\n }\n for ( ;\n next < 256 ;\n next ++ ) char_dist [ next ] = 0 ;\n }\n for ( i = 0 ;\n i < 3072 ;\n i ++ ) {\n state -> noise [ i ] = char_dist [ rand ( ) & 0xff ] ;\n }\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n state -> blackclamp [ i ] = - char_dist [ 0 ] ;\n state -> whiteclamp [ i ] = - char_dist [ 0 ] ;\n state -> bothclamp [ i ] = - 2 * char_dist [ 0 ] ;\n }\n state -> last_q = q ;\n state -> last_noise = a ;\n }"}
{"idx": 14056, "target": 0, "func": "static int x8_setup_spatial_predictor ( IntraX8Context * const w , const int chroma ) {\n MpegEncContext * const s = w -> s ;\n int range ;\n int sum ;\n int quant ;\n w -> dsp . setup_spatial_compensation ( s -> dest [ chroma ] , s -> edge_emu_buffer , s -> current_picture . f . linesize [ chroma > 0 ] , & range , & sum , w -> edges ) ;\n if ( chroma ) {\n w -> orient = w -> chroma_orient ;\n quant = w -> quant_dc_chroma ;\n }\n else {\n quant = w -> quant ;\n }\n w -> flat_dc = 0 ;\n if ( range < quant || range < 3 ) {\n w -> orient = 0 ;\n if ( range < 3 ) {\n w -> flat_dc = 1 ;\n sum += 9 ;\n w -> predicted_dc = ( sum * 6899 ) >> 17 ;\n }\n }\n if ( chroma ) return 0 ;\n assert ( w -> orient < 3 ) ;\n if ( range < 2 * w -> quant ) {\n if ( ( w -> edges & 3 ) == 0 ) {\n if ( w -> orient == 1 ) w -> orient = 11 ;\n if ( w -> orient == 2 ) w -> orient = 10 ;\n }\n else {\n w -> orient = 0 ;\n }\n w -> raw_orient = 0 ;\n }\n else {\n static const uint8_t prediction_table [ 3 ] [ 12 ] = {\n {\n 0 , 8 , 4 , 10 , 11 , 2 , 6 , 9 , 1 , 3 , 5 , 7 }\n , {\n 4 , 0 , 8 , 11 , 10 , 3 , 5 , 2 , 6 , 9 , 1 , 7 }\n , {\n 8 , 0 , 4 , 10 , 11 , 1 , 7 , 2 , 6 , 9 , 3 , 5 }\n }\n ;\n w -> raw_orient = x8_get_orient_vlc ( w ) ;\n if ( w -> raw_orient < 0 ) return - 1 ;\n assert ( w -> raw_orient < 12 ) ;\n assert ( w -> orient < 3 ) ;\n w -> orient = prediction_table [ w -> orient ] [ w -> raw_orient ] ;\n }\n return 0 ;\n }"}
{"idx": 14057, "target": 1, "func": "static int decode_udvm_literal_operand ( guint8 * buff , guint operand_address , guint16 * value ) {\n guint bytecode ;\n guint16 operand ;\n guint test_bits ;\n guint offset = operand_address ;\n guint8 temp_data ;\n bytecode = buff [ operand_address ] ;\n test_bits = bytecode >> 7 ;\n if ( test_bits == 1 ) {\n test_bits = bytecode >> 6 ;\n if ( test_bits == 2 ) {\n temp_data = buff [ operand_address ] & 0x1f ;\n operand = temp_data << 8 ;\n temp_data = buff [ ( operand_address + 1 ) & 0xffff ] ;\n operand = operand | temp_data ;\n * value = operand ;\n offset = offset + 2 ;\n }\n else {\n offset ++ ;\n temp_data = buff [ operand_address ] & 0x1f ;\n operand = temp_data << 8 ;\n temp_data = buff [ ( operand_address + 1 ) & 0xffff ] ;\n operand = operand | temp_data ;\n * value = operand ;\n offset = offset + 2 ;\n }\n }\n else {\n operand = ( bytecode & 0x7f ) ;\n * value = operand ;\n offset ++ ;\n }\n return offset ;\n }"}
{"idx": 14058, "target": 0, "func": "void vp9_setup_mask ( VP9_COMMON * const cm , const int mi_row , const int mi_col , MODE_INFO * mi , const int mode_info_stride , LOOP_FILTER_MASK * lfm ) {\n int idx_32 , idx_16 , idx_8 ;\n const loop_filter_info_n * const lfi_n = & cm -> lf_info ;\n MODE_INFO * mip = mi ;\n MODE_INFO * mip2 = mi ;\n const int offset_32 [ ] = {\n 4 , ( mode_info_stride << 2 ) - 4 , 4 , - ( mode_info_stride << 2 ) - 4 }\n ;\n const int offset_16 [ ] = {\n 2 , ( mode_info_stride << 1 ) - 2 , 2 , - ( mode_info_stride << 1 ) - 2 }\n ;\n const int offset [ ] = {\n 1 , mode_info_stride - 1 , 1 , - mode_info_stride - 1 }\n ;\n const int shift_32_y [ ] = {\n 0 , 4 , 32 , 36 }\n ;\n const int shift_16_y [ ] = {\n 0 , 2 , 16 , 18 }\n ;\n const int shift_8_y [ ] = {\n 0 , 1 , 8 , 9 }\n ;\n const int shift_32_uv [ ] = {\n 0 , 2 , 8 , 10 }\n ;\n const int shift_16_uv [ ] = {\n 0 , 1 , 4 , 5 }\n ;\n int i ;\n const int max_rows = ( mi_row + MI_BLOCK_SIZE > cm -> mi_rows ? cm -> mi_rows - mi_row : MI_BLOCK_SIZE ) ;\n const int max_cols = ( mi_col + MI_BLOCK_SIZE > cm -> mi_cols ? cm -> mi_cols - mi_col : MI_BLOCK_SIZE ) ;\n vp9_zero ( * lfm ) ;\n assert ( mip != NULL ) ;\n switch ( mip -> mbmi . sb_type ) {\n case BLOCK_64X64 : build_masks ( lfi_n , mip , 0 , 0 , lfm ) ;\n break ;\n case BLOCK_64X32 : build_masks ( lfi_n , mip , 0 , 0 , lfm ) ;\n mip2 = mip + mode_info_stride * 4 ;\n if ( 4 >= max_rows ) break ;\n build_masks ( lfi_n , mip2 , 32 , 8 , lfm ) ;\n break ;\n case BLOCK_32X64 : build_masks ( lfi_n , mip , 0 , 0 , lfm ) ;\n mip2 = mip + 4 ;\n if ( 4 >= max_cols ) break ;\n build_masks ( lfi_n , mip2 , 4 , 2 , lfm ) ;\n break ;\n default : for ( idx_32 = 0 ;\n idx_32 < 4 ;\n mip += offset_32 [ idx_32 ] , ++ idx_32 ) {\n const int shift_y = shift_32_y [ idx_32 ] ;\n const int shift_uv = shift_32_uv [ idx_32 ] ;\n const int mi_32_col_offset = ( ( idx_32 & 1 ) << 2 ) ;\n const int mi_32_row_offset = ( ( idx_32 >> 1 ) << 2 ) ;\n if ( mi_32_col_offset >= max_cols || mi_32_row_offset >= max_rows ) continue ;\n switch ( mip -> mbmi . sb_type ) {\n case BLOCK_32X32 : build_masks ( lfi_n , mip , shift_y , shift_uv , lfm ) ;\n break ;\n case BLOCK_32X16 : build_masks ( lfi_n , mip , shift_y , shift_uv , lfm ) ;\n if ( mi_32_row_offset + 2 >= max_rows ) continue ;\n mip2 = mip + mode_info_stride * 2 ;\n build_masks ( lfi_n , mip2 , shift_y + 16 , shift_uv + 4 , lfm ) ;\n break ;\n case BLOCK_16X32 : build_masks ( lfi_n , mip , shift_y , shift_uv , lfm ) ;\n if ( mi_32_col_offset + 2 >= max_cols ) continue ;\n mip2 = mip + 2 ;\n build_masks ( lfi_n , mip2 , shift_y + 2 , shift_uv + 1 , lfm ) ;\n break ;\n default : for ( idx_16 = 0 ;\n idx_16 < 4 ;\n mip += offset_16 [ idx_16 ] , ++ idx_16 ) {\n const int shift_y = shift_32_y [ idx_32 ] + shift_16_y [ idx_16 ] ;\n const int shift_uv = shift_32_uv [ idx_32 ] + shift_16_uv [ idx_16 ] ;\n const int mi_16_col_offset = mi_32_col_offset + ( ( idx_16 & 1 ) << 1 ) ;\n const int mi_16_row_offset = mi_32_row_offset + ( ( idx_16 >> 1 ) << 1 ) ;\n if ( mi_16_col_offset >= max_cols || mi_16_row_offset >= max_rows ) continue ;\n switch ( mip -> mbmi . sb_type ) {\n case BLOCK_16X16 : build_masks ( lfi_n , mip , shift_y , shift_uv , lfm ) ;\n break ;\n case BLOCK_16X8 : build_masks ( lfi_n , mip , shift_y , shift_uv , lfm ) ;\n if ( mi_16_row_offset + 1 >= max_rows ) continue ;\n mip2 = mip + mode_info_stride ;\n build_y_mask ( lfi_n , mip2 , shift_y + 8 , lfm ) ;\n break ;\n case BLOCK_8X16 : build_masks ( lfi_n , mip , shift_y , shift_uv , lfm ) ;\n if ( mi_16_col_offset + 1 >= max_cols ) continue ;\n mip2 = mip + 1 ;\n build_y_mask ( lfi_n , mip2 , shift_y + 1 , lfm ) ;\n break ;\n default : {\n const int shift_y = shift_32_y [ idx_32 ] + shift_16_y [ idx_16 ] + shift_8_y [ 0 ] ;\n build_masks ( lfi_n , mip , shift_y , shift_uv , lfm ) ;\n mip += offset [ 0 ] ;\n for ( idx_8 = 1 ;\n idx_8 < 4 ;\n mip += offset [ idx_8 ] , ++ idx_8 ) {\n const int shift_y = shift_32_y [ idx_32 ] + shift_16_y [ idx_16 ] + shift_8_y [ idx_8 ] ;\n const int mi_8_col_offset = mi_16_col_offset + ( ( idx_8 & 1 ) ) ;\n const int mi_8_row_offset = mi_16_row_offset + ( ( idx_8 >> 1 ) ) ;\n if ( mi_8_col_offset >= max_cols || mi_8_row_offset >= max_rows ) continue ;\n build_y_mask ( lfi_n , mip , shift_y , lfm ) ;\n }\n break ;\n }\n }\n }\n break ;\n }\n }\n break ;\n }\n lfm -> left_y [ TX_16X16 ] |= lfm -> left_y [ TX_32X32 ] ;\n lfm -> above_y [ TX_16X16 ] |= lfm -> above_y [ TX_32X32 ] ;\n lfm -> left_uv [ TX_16X16 ] |= lfm -> left_uv [ TX_32X32 ] ;\n lfm -> above_uv [ TX_16X16 ] |= lfm -> above_uv [ TX_32X32 ] ;\n lfm -> left_y [ TX_8X8 ] |= lfm -> left_y [ TX_4X4 ] & left_border ;\n lfm -> left_y [ TX_4X4 ] &= ~ left_border ;\n lfm -> above_y [ TX_8X8 ] |= lfm -> above_y [ TX_4X4 ] & above_border ;\n lfm -> above_y [ TX_4X4 ] &= ~ above_border ;\n lfm -> left_uv [ TX_8X8 ] |= lfm -> left_uv [ TX_4X4 ] & left_border_uv ;\n lfm -> left_uv [ TX_4X4 ] &= ~ left_border_uv ;\n lfm -> above_uv [ TX_8X8 ] |= lfm -> above_uv [ TX_4X4 ] & above_border_uv ;\n lfm -> above_uv [ TX_4X4 ] &= ~ above_border_uv ;\n if ( mi_row + MI_BLOCK_SIZE > cm -> mi_rows ) {\n const uint64_t rows = cm -> mi_rows - mi_row ;\n const uint64_t mask_y = ( ( ( uint64_t ) 1 << ( rows << 3 ) ) - 1 ) ;\n const uint16_t mask_uv = ( ( ( uint16_t ) 1 << ( ( ( rows + 1 ) >> 1 ) << 2 ) ) - 1 ) ;\n for ( i = 0 ;\n i < TX_32X32 ;\n i ++ ) {\n lfm -> left_y [ i ] &= mask_y ;\n lfm -> above_y [ i ] &= mask_y ;\n lfm -> left_uv [ i ] &= mask_uv ;\n lfm -> above_uv [ i ] &= mask_uv ;\n }\n lfm -> int_4x4_y &= mask_y ;\n lfm -> int_4x4_uv &= mask_uv ;\n if ( rows == 1 ) {\n lfm -> above_uv [ TX_8X8 ] |= lfm -> above_uv [ TX_16X16 ] ;\n lfm -> above_uv [ TX_16X16 ] = 0 ;\n }\n if ( rows == 5 ) {\n lfm -> above_uv [ TX_8X8 ] |= lfm -> above_uv [ TX_16X16 ] & 0xff00 ;\n lfm -> above_uv [ TX_16X16 ] &= ~ ( lfm -> above_uv [ TX_16X16 ] & 0xff00 ) ;\n }\n }\n if ( mi_col + MI_BLOCK_SIZE > cm -> mi_cols ) {\n const uint64_t columns = cm -> mi_cols - mi_col ;\n const uint64_t mask_y = ( ( ( 1 << columns ) - 1 ) ) * 0x0101010101010101 ;\n const uint16_t mask_uv = ( ( 1 << ( ( columns + 1 ) >> 1 ) ) - 1 ) * 0x1111 ;\n const uint16_t mask_uv_int = ( ( 1 << ( columns >> 1 ) ) - 1 ) * 0x1111 ;\n for ( i = 0 ;\n i < TX_32X32 ;\n i ++ ) {\n lfm -> left_y [ i ] &= mask_y ;\n lfm -> above_y [ i ] &= mask_y ;\n lfm -> left_uv [ i ] &= mask_uv ;\n lfm -> above_uv [ i ] &= mask_uv ;\n }\n lfm -> int_4x4_y &= mask_y ;\n lfm -> int_4x4_uv &= mask_uv_int ;\n if ( columns == 1 ) {\n lfm -> left_uv [ TX_8X8 ] |= lfm -> left_uv [ TX_16X16 ] ;\n lfm -> left_uv [ TX_16X16 ] = 0 ;\n }\n if ( columns == 5 ) {\n lfm -> left_uv [ TX_8X8 ] |= ( lfm -> left_uv [ TX_16X16 ] & 0xcccc ) ;\n lfm -> left_uv [ TX_16X16 ] &= ~ ( lfm -> left_uv [ TX_16X16 ] & 0xcccc ) ;\n }\n }\n if ( mi_col == 0 ) {\n for ( i = 0 ;\n i < TX_32X32 ;\n i ++ ) {\n lfm -> left_y [ i ] &= 0xfefefefefefefefe ;\n lfm -> left_uv [ i ] &= 0xeeee ;\n }\n }\n assert ( ! ( lfm -> left_y [ TX_16X16 ] & lfm -> left_y [ TX_8X8 ] ) ) ;\n assert ( ! ( lfm -> left_y [ TX_16X16 ] & lfm -> left_y [ TX_4X4 ] ) ) ;\n assert ( ! ( lfm -> left_y [ TX_8X8 ] & lfm -> left_y [ TX_4X4 ] ) ) ;\n assert ( ! ( lfm -> int_4x4_y & lfm -> left_y [ TX_16X16 ] ) ) ;\n assert ( ! ( lfm -> left_uv [ TX_16X16 ] & lfm -> left_uv [ TX_8X8 ] ) ) ;\n assert ( ! ( lfm -> left_uv [ TX_16X16 ] & lfm -> left_uv [ TX_4X4 ] ) ) ;\n assert ( ! ( lfm -> left_uv [ TX_8X8 ] & lfm -> left_uv [ TX_4X4 ] ) ) ;\n assert ( ! ( lfm -> int_4x4_uv & lfm -> left_uv [ TX_16X16 ] ) ) ;\n assert ( ! ( lfm -> above_y [ TX_16X16 ] & lfm -> above_y [ TX_8X8 ] ) ) ;\n assert ( ! ( lfm -> above_y [ TX_16X16 ] & lfm -> above_y [ TX_4X4 ] ) ) ;\n assert ( ! ( lfm -> above_y [ TX_8X8 ] & lfm -> above_y [ TX_4X4 ] ) ) ;\n assert ( ! ( lfm -> int_4x4_y & lfm -> above_y [ TX_16X16 ] ) ) ;\n assert ( ! ( lfm -> above_uv [ TX_16X16 ] & lfm -> above_uv [ TX_8X8 ] ) ) ;\n assert ( ! ( lfm -> above_uv [ TX_16X16 ] & lfm -> above_uv [ TX_4X4 ] ) ) ;\n assert ( ! ( lfm -> above_uv [ TX_8X8 ] & lfm -> above_uv [ TX_4X4 ] ) ) ;\n assert ( ! ( lfm -> int_4x4_uv & lfm -> above_uv [ TX_16X16 ] ) ) ;\n }"}
{"idx": 14059, "target": 0, "func": "static OutputContext SaveOutput ( ArchiveHandle * AH ) {\n OutputContext sav ;\n sav . OF = AH -> OF ;\n sav . gzOut = AH -> gzOut ;\n return sav ;\n }"}
{"idx": 14060, "target": 0, "func": "void rereadkeys ( void ) {\n if ( NULL != key_file_name ) authreadkeys ( key_file_name ) ;\n }"}
{"idx": 14061, "target": 0, "func": "void av_image_fill_max_pixsteps ( int max_pixsteps [ 4 ] , int max_pixstep_comps [ 4 ] , const AVPixFmtDescriptor * pixdesc ) {\n int i ;\n memset ( max_pixsteps , 0 , 4 * sizeof ( max_pixsteps [ 0 ] ) ) ;\n if ( max_pixstep_comps ) memset ( max_pixstep_comps , 0 , 4 * sizeof ( max_pixstep_comps [ 0 ] ) ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n const AVComponentDescriptor * comp = & ( pixdesc -> comp [ i ] ) ;\n if ( ( comp -> step_minus1 + 1 ) > max_pixsteps [ comp -> plane ] ) {\n max_pixsteps [ comp -> plane ] = comp -> step_minus1 + 1 ;\n if ( max_pixstep_comps ) max_pixstep_comps [ comp -> plane ] = i ;\n }\n }\n }"}
{"idx": 14062, "target": 0, "func": "static void test_master_service_settings_cache_once ( void ) {\n const struct setting_parser_context * parser ;\n const char * error ;\n output . used_local = output . service_uses_local && rand ( ) % 2 ;\n if ( output . used_local ) {\n input . local_ip . family = AF_INET ;\n input . local_ip . u . ip4 . s_addr = 100 + rand ( ) % 100 ;\n }\n output . used_remote = output . service_uses_remote && rand ( ) % 2 ;\n if ( output . used_remote ) {\n input . remote_ip . family = AF_INET ;\n input . remote_ip . u . ip4 . s_addr = 100 + rand ( ) % 100 ;\n }\n test_assert ( master_service_settings_cache_read ( cache , & input , NULL , & parser , & error ) == 0 ) ;\n }"}
{"idx": 14063, "target": 0, "func": "static int estimate_bits_at_q ( FRAME_TYPE frame_type , int q , int mbs , double correction_factor , vpx_bit_depth_t bit_depth ) {\n const int bpm = ( int ) ( vp9_rc_bits_per_mb ( frame_type , q , correction_factor , bit_depth ) ) ;\n return ( ( uint64_t ) bpm * mbs ) >> BPER_MB_NORMBITS ;\n }"}
{"idx": 14064, "target": 0, "func": "float u8Fixed8Number_to_float ( uint16_t x ) {\n return x / 256. ;\n }"}
{"idx": 14065, "target": 0, "func": "int cont_schedule_handler ( TSCont contp , TSEvent event , void * ) {\n if ( event == TS_EVENT_IMMEDIATE ) {\n SDK_RPRINT ( SDK_ContSchedule_test , \"TSContSchedule\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n tc1_count ++ ;\n }\n else if ( event == TS_EVENT_TIMEOUT ) {\n SDK_RPRINT ( SDK_ContSchedule_test , \"TSContSchedule\" , \"TestCase2\" , TC_PASS , \"ok\" ) ;\n tc2_count ++ ;\n }\n else {\n SDK_RPRINT ( SDK_ContSchedule_test , \"TSContSchedule\" , \"TestCase1|2\" , TC_FAIL , \"received unexpected event number %d\" , event ) ;\n * SDK_ContSchedule_pstatus = REGRESSION_TEST_FAILED ;\n return 0 ;\n }\n if ( ( tc1_count == 1 ) && ( tc2_count == 1 ) ) {\n * SDK_ContSchedule_pstatus = REGRESSION_TEST_PASSED ;\n }\n else if ( tc1_count + tc2_count >= 2 ) {\n * SDK_ContSchedule_pstatus = REGRESSION_TEST_FAILED ;\n }\n TSContDestroy ( contp ) ;\n return 0 ;\n }"}
{"idx": 14066, "target": 0, "func": "static enum ETokenType getStringToken ( UCHARBUF * buf , UChar32 initialChar , struct UString * token , UErrorCode * status ) {\n UBool lastStringWasQuoted ;\n UChar32 c ;\n UChar target [ 3 ] = {\n '\\0' }\n ;\n UChar * pTarget = target ;\n int len = 0 ;\n UBool isFollowingCharEscaped = FALSE ;\n UBool isNLUnescaped = FALSE ;\n UChar32 prevC = 0 ;\n if ( U_FAILURE ( * status ) ) {\n return TOK_ERROR ;\n }\n lastStringWasQuoted = FALSE ;\n c = initialChar ;\n ustr_setlen ( token , 0 , status ) ;\n if ( U_FAILURE ( * status ) ) {\n return TOK_ERROR ;\n }\n for ( ;\n ;\n ) {\n if ( c == QUOTE ) {\n if ( ! lastStringWasQuoted && token -> fLength > 0 ) {\n ustr_ucat ( token , SPACE , status ) ;\n if ( U_FAILURE ( * status ) ) {\n return TOK_ERROR ;\n }\n }\n lastStringWasQuoted = TRUE ;\n for ( ;\n ;\n ) {\n c = ucbuf_getc ( buf , status ) ;\n if ( c == U_EOF ) {\n return TOK_EOF ;\n }\n if ( U_FAILURE ( * status ) ) {\n return TOK_ERROR ;\n }\n if ( c == QUOTE && ! isFollowingCharEscaped ) {\n break ;\n }\n if ( c == ESCAPE && ! isFollowingCharEscaped ) {\n pTarget = target ;\n c = unescape ( buf , status ) ;\n if ( c == U_ERR ) {\n return TOK_ERROR ;\n }\n if ( c == CR || c == LF ) {\n isNLUnescaped = TRUE ;\n }\n }\n if ( c == ESCAPE && ! isFollowingCharEscaped ) {\n isFollowingCharEscaped = TRUE ;\n }\n else {\n U_APPEND_CHAR32 ( c , pTarget , len ) ;\n pTarget = target ;\n ustr_uscat ( token , pTarget , len , status ) ;\n isFollowingCharEscaped = FALSE ;\n len = 0 ;\n if ( c == CR || c == LF ) {\n if ( isNLUnescaped == FALSE && prevC != CR ) {\n lineCount ++ ;\n }\n isNLUnescaped = FALSE ;\n }\n }\n if ( U_FAILURE ( * status ) ) {\n return TOK_ERROR ;\n }\n prevC = c ;\n }\n }\n else {\n if ( token -> fLength > 0 ) {\n ustr_ucat ( token , SPACE , status ) ;\n if ( U_FAILURE ( * status ) ) {\n return TOK_ERROR ;\n }\n }\n if ( lastStringWasQuoted ) {\n if ( getShowWarning ( ) ) {\n warning ( lineCount , \"Mixing quoted and unquoted strings\" ) ;\n }\n if ( isStrict ( ) ) {\n return TOK_ERROR ;\n }\n }\n lastStringWasQuoted = FALSE ;\n if ( c == ESCAPE ) {\n pTarget = target ;\n c = unescape ( buf , status ) ;\n if ( c == U_EOF ) {\n return TOK_ERROR ;\n }\n }\n U_APPEND_CHAR32 ( c , pTarget , len ) ;\n pTarget = target ;\n ustr_uscat ( token , pTarget , len , status ) ;\n len = 0 ;\n if ( U_FAILURE ( * status ) ) {\n return TOK_ERROR ;\n }\n for ( ;\n ;\n ) {\n c = getNextChar ( buf , FALSE , NULL , status ) ;\n if ( c == U_EOF ) {\n ucbuf_ungetc ( c , buf ) ;\n return TOK_STRING ;\n }\n if ( U_FAILURE ( * status ) ) {\n return TOK_STRING ;\n }\n if ( c == QUOTE || c == OPENBRACE || c == CLOSEBRACE || c == COMMA || c == COLON ) {\n ucbuf_ungetc ( c , buf ) ;\n break ;\n }\n if ( isWhitespace ( c ) ) {\n break ;\n }\n if ( c == ESCAPE ) {\n pTarget = target ;\n c = unescape ( buf , status ) ;\n if ( c == U_ERR ) {\n return TOK_ERROR ;\n }\n }\n U_APPEND_CHAR32 ( c , pTarget , len ) ;\n pTarget = target ;\n ustr_uscat ( token , pTarget , len , status ) ;\n len = 0 ;\n if ( U_FAILURE ( * status ) ) {\n return TOK_ERROR ;\n }\n }\n }\n c = getNextChar ( buf , TRUE , NULL , status ) ;\n if ( U_FAILURE ( * status ) ) {\n return TOK_STRING ;\n }\n if ( c == OPENBRACE || c == CLOSEBRACE || c == COMMA || c == COLON ) {\n ucbuf_ungetc ( c , buf ) ;\n return TOK_STRING ;\n }\n }\n }"}
{"idx": 14067, "target": 1, "func": "static int dissect_diameter_base_framed_ipv6_prefix ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , void * data ) {\n diam_sub_dis_t * diam_sub_dis = ( diam_sub_dis_t * ) data ;\n guint8 prefix_len , prefix_len_bytes ;\n proto_tree_add_item ( tree , hf_framed_ipv6_prefix_reserved , tvb , 0 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_framed_ipv6_prefix_length , tvb , 1 , 1 , ENC_BIG_ENDIAN ) ;\n prefix_len = tvb_get_guint8 ( tvb , 1 ) ;\n prefix_len_bytes = prefix_len / 8 ;\n if ( prefix_len % 8 ) prefix_len_bytes ++ ;\n proto_tree_add_item ( tree , hf_framed_ipv6_prefix_bytes , tvb , 2 , prefix_len_bytes , ENC_NA ) ;\n if ( prefix_len_bytes == 16 ) {\n proto_tree_add_item ( tree , hf_framed_ipv6_prefix_ipv6 , tvb , 2 , prefix_len_bytes , ENC_NA ) ;\n }\n else {\n struct e_in6_addr value ;\n address addr ;\n memset ( & value . bytes , 0 , sizeof ( value ) ) ;\n tvb_memcpy ( tvb , ( guint8 * ) & value . bytes , 2 , prefix_len_bytes ) ;\n value . bytes [ prefix_len_bytes ] = value . bytes [ prefix_len_bytes ] & ( 0xff << ( prefix_len % 8 ) ) ;\n proto_tree_add_ipv6 ( tree , hf_framed_ipv6_prefix_ipv6 , tvb , 2 , prefix_len_bytes , & value ) ;\n set_address ( & addr , AT_IPv6 , 16 , value . bytes ) ;\n diam_sub_dis -> avp_str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"%s/%u\" , address_to_str ( wmem_packet_scope ( ) , & addr ) , prefix_len ) ;\n }\n return ( prefix_len_bytes + 2 ) ;\n }"}
{"idx": 14068, "target": 0, "func": "void proto_register_zbee_zcl_color_control ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_zbee_zcl_color_control_attr_id , {\n \"Attribute\" , \"zbee_zcl_lighting.color_control.attr_id\" , FT_UINT16 , BASE_HEX , VALS ( zbee_zcl_color_control_attr_names ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_current_hue , {\n \"Hue\" , \"zbee_zcl_lighting.color_control.attr.current_hue\" , FT_UINT8 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_current_saturation , {\n \"Saturation\" , \"zbee_zcl_lighting.color_control.attr.current_satuaration\" , FT_UINT8 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_remaining_time , {\n \"Time\" , \"zbee_zcl_lighting.color_control.attr.remaining_time\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_zcl_time_in_100ms ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_color_x , {\n \"X\" , \"zbee_zcl_lighting.color_control.attr.color_x\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_xy ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_color_y , {\n \"Y\" , \"zbee_zcl_lighting.color_control.attr.color_y\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_xy ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_drift_compensation , {\n \"Drift Compensation\" , \"zbee_zcl_lighting.color_control.attr.drift_compensation\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_color_control_drift_compensation_values ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_color_temperature , {\n \"Color Temperature\" , \"zbee_zcl_lighting.color_control.attr.color_temperature\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_temperature ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_color_mode , {\n \"Color Mode\" , \"zbee_zcl_lighting.color_control.attr.color_mode\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_color_control_color_mode_values ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_nr_of_primaries , {\n \"Number\" , \"zbee_zcl_lighting.color_control.attr.nr_of_primaries\" , FT_UINT8 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_primary_1_x , {\n \"X\" , \"zbee_zcl_lighting.color_control.attr.primary_1_x\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_xy ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_primary_1_y , {\n \"Y\" , \"zbee_zcl_lighting.color_control.attr.primary_1_y\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_xy ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_primary_1_intensity , {\n \"Intensity\" , \"zbee_zcl_lighting.color_control.attr.primary_1_intensity\" , FT_UINT8 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_primary_2_x , {\n \"X\" , \"zbee_zcl_lighting.color_control.attr.primary_2_x\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_xy ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_primary_2_y , {\n \"Y\" , \"zbee_zcl_lighting.color_control.attr.primary_2_y\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_xy ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_primary_2_intensity , {\n \"Intensity\" , \"zbee_zcl_lighting.color_control.attr.primary_2_intensity\" , FT_UINT8 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_primary_3_x , {\n \"X\" , \"zbee_zcl_lighting.color_control.attr.primary_3_x\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_xy ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_primary_3_y , {\n \"Y\" , \"zbee_zcl_lighting.color_control.attr.primary_3_y\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_xy ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_primary_3_intensity , {\n \"Intensity\" , \"zbee_zcl_lighting.color_control.attr.primary_3_intensity\" , FT_UINT8 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_primary_4_x , {\n \"X\" , \"zbee_zcl_lighting.color_control.attr.primary_4_x\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_xy ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_primary_4_y , {\n \"Y\" , \"zbee_zcl_lighting.color_control.attr.primary_4_y\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_xy ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_primary_4_intensity , {\n \"Intensity\" , \"zbee_zcl_lighting.color_control.attr.primary_4_intensity\" , FT_UINT8 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_primary_5_x , {\n \"X\" , \"zbee_zcl_lighting.color_control.attr.primary_5_x\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_xy ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_primary_5_y , {\n \"Y\" , \"zbee_zcl_lighting.color_control.attr.primary_5_y\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_xy ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_primary_5_intensity , {\n \"Intensity\" , \"zbee_zcl_lighting.color_control.attr.primary_5_intensity\" , FT_UINT8 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_primary_6_x , {\n \"X\" , \"zbee_zcl_lighting.color_control.attr.primary_6_x\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_xy ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_primary_6_y , {\n \"Y\" , \"zbee_zcl_lighting.color_control.attr.primary_6_y\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_xy ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_primary_6_intensity , {\n \"Intensity\" , \"zbee_zcl_lighting.color_control.attr.primary_6_intensity\" , FT_UINT8 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_white_point_x , {\n \"X\" , \"zbee_zcl_lighting.color_control.attr.white_point_x\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_xy ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_white_point_y , {\n \"Y\" , \"zbee_zcl_lighting.color_control.attr.white_point_y\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_xy ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_red_x , {\n \"X\" , \"zbee_zcl_lighting.color_control.attr.red_x\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_xy ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_red_y , {\n \"Y\" , \"zbee_zcl_lighting.color_control.attr.red_y\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_xy ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_red_intensity , {\n \"Intensity\" , \"zbee_zcl_lighting.color_control.attr.red_intensity\" , FT_UINT8 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_green_x , {\n \"X\" , \"zbee_zcl_lighting.color_control.attr.green_x\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_xy ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_green_y , {\n \"Y\" , \"zbee_zcl_lighting.color_control.attr.green_y\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_xy ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_green_intensity , {\n \"Intensity\" , \"zbee_zcl_lighting.color_control.attr.green_intensity\" , FT_UINT8 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_blue_x , {\n \"X\" , \"zbee_zcl_lighting.color_control.attr.blue_x\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_xy ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_blue_y , {\n \"Y\" , \"zbee_zcl_lighting.color_control.attr.blue_y\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_xy ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_blue_intensity , {\n \"Intensity\" , \"zbee_zcl_lighting.color_control.attr.blue_intensity\" , FT_UINT8 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_enhanced_current_hue , {\n \"Enhanced Hue\" , \"zbee_zcl_lighting.color_control.attr.enhanced_current_hue\" , FT_UINT16 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_enhanced_color_mode , {\n \"Enhanced Color Mode\" , \"zbee_zcl_lighting.color_control.attr.enhanced_color_mode\" , FT_UINT8 , BASE_DEC , VALS ( zbee_zcl_color_control_color_mode_values ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_color_loop_active , {\n \"Active\" , \"zbee_zcl_lighting.color_control.attr.color_loop_active\" , FT_BOOLEAN , 8 , TFS ( & tfs_true_false ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_color_loop_direction , {\n \"Direction\" , \"zbee_zcl_lighting.color_control.attr.color_loop_direction\" , FT_UINT8 , BASE_DEC , VALS ( zbee_zcl_color_control_color_loop_direction_values ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_color_loop_time , {\n \"Time\" , \"zbee_zcl_lighting.color_control.attr.color_loop_time\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_zcl_time_in_seconds ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_color_loop_start_enhanced_hue , {\n \"Enhanced Hue\" , \"zbee_zcl_lighting.color_control.attr.color_loop_start_enhanced_hue\" , FT_UINT16 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_color_loop_stored_enhanced_hue , {\n \"Enhanced Hue\" , \"zbee_zcl_lighting.color_control.attr.color_loop_stored_enhanced_hue\" , FT_UINT16 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_color_capabilities , {\n \"Capabilities\" , \"zbee_zcl_lighting.color_control.attr.color_capabilities\" , FT_UINT16 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_color_capabilities_hs , {\n \"Support Hue and Saturation\" , \"zbee_zcl_lighting.color_control.attr.color_capabilities.hue_saturation\" , FT_UINT16 , BASE_DEC , NULL , ZBEE_ZCL_COLOR_CAPABILITIES_SUPPORT_HS_MASK , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_color_capabilities_ehs , {\n \"Support Enhanced Hue and Saturation\" , \"zbee_zcl_lighting.color_control.attr.color_capabilities.enhanced_hue_saturation\" , FT_UINT16 , BASE_DEC , NULL , ZBEE_ZCL_COLOR_CAPABILITIES_SUPPORT_EHS_MASK , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_color_capabilities_loop , {\n \"Support Color Loop\" , \"zbee_zcl_lighting.color_control.attr.color_capabilities.color_loop\" , FT_UINT16 , BASE_DEC , NULL , ZBEE_ZCL_COLOR_CAPABILITIES_SUPPORT_LOOP_MASK , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_color_capabilities_xy , {\n \"Support Color XY\" , \"zbee_zcl_lighting.color_control.attr.color_capabilities.color_xy\" , FT_UINT16 , BASE_DEC , NULL , ZBEE_ZCL_COLOR_CAPABILITIES_SUPPORT_XY_MASK , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_color_capabilities_ct , {\n \"Support Color Temperature\" , \"zbee_zcl_lighting.color_control.attr.color_capabilities.color_temperature\" , FT_UINT16 , BASE_DEC , NULL , ZBEE_ZCL_COLOR_CAPABILITIES_SUPPORT_CT_MASK , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_color_temperature_phys_min , {\n \"Color Temperature\" , \"zbee_zcl_lighting.color_control.attr.color_temperature_physical_min\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_temperature ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_attr_color_temperature_phys_max , {\n \"Color Temperature\" , \"zbee_zcl_lighting.color_control.attr.color_temperature_physical_max\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_temperature ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_hue , {\n \"Hue\" , \"zbee_zcl_lighting.color_control.hue\" , FT_UINT8 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_direction , {\n \"Direction\" , \"zbee_zcl_lighting.color_control.direction\" , FT_UINT8 , BASE_DEC , VALS ( zbee_zcl_color_control_direction_values ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_transit_time , {\n \"Transition Time\" , \"zbee_zcl_lighting.color_control.transit_time\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_zcl_time_in_100ms ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_move_mode , {\n \"Move Mode\" , \"zbee_zcl_lighting.color_control.move_mode\" , FT_UINT8 , BASE_DEC , VALS ( zbee_zcl_color_control_move_mode ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_rate , {\n \"Rate\" , \"zbee_zcl_lighting.color_control.rate\" , FT_UINT8 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_step_mode , {\n \"Step Mode\" , \"zbee_zcl_lighting.color_control.step_mode\" , FT_UINT8 , BASE_DEC , VALS ( zbee_zcl_color_control_step_mode ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_step_size , {\n \"Step Size\" , \"zbee_zcl_lighting.color_control.step_size\" , FT_UINT8 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_transit_time_8bit , {\n \"Transition Time\" , \"zbee_zcl_lighting.color_control.transition_time_8bit\" , FT_UINT8 , BASE_CUSTOM , CF_FUNC ( decode_zcl_time_in_100ms ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_saturation , {\n \"Saturation\" , \"zbee_zcl_lighting.color_control.saturation\" , FT_UINT8 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_color_X , {\n \"Color X\" , \"zbee_zcl_lighting.color_control.color_x\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_xy ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_color_Y , {\n \"Color Y\" , \"zbee_zcl_lighting.color_control.color_y\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_xy ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_rate_X , {\n \"Rate X\" , \"zbee_zcl_lighting.color_control.rate_x\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_xy ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_rate_Y , {\n \"Rate Y\" , \"zbee_zcl_lighting.color_control.rate_y\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_xy ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_step_X , {\n \"Step X\" , \"zbee_zcl_lighting.color_control.step_x\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_xy ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_step_Y , {\n \"Step Y\" , \"zbee_zcl_lighting.color_control.step_y\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_xy ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_color_temp , {\n \"Color temperature\" , \"zbee_zcl_lighting.color_control.color_temp\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_temperature ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_enhanced_hue , {\n \"Enhanced Hue\" , \"zbee_zcl_lighting.color_control.enhanced_hue\" , FT_UINT16 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_enhanced_rate , {\n \"Enhanced Rate\" , \"zbee_zcl_lighting.color_control.enhanced_rate\" , FT_UINT16 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_enhanced_step_size , {\n \"Enhanced Step Size\" , \"zbee_zcl_lighting.color_control.enhanced_step_size\" , FT_UINT16 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_color_loop_update_flags , {\n \"Update Flags\" , \"zbee_zcl_lighting.color_control.color_loop_update\" , FT_UINT8 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_color_loop_update_action , {\n \"Update Action\" , \"zbee_zcl_lighting.color_control.color_loop_update.action\" , FT_UINT8 , BASE_DEC , NULL , ZBEE_ZCL_COLOR_LOOP_UPDATE_ACTION_MASK , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_color_loop_update_direction , {\n \"Update Direction\" , \"zbee_zcl_lighting.color_control.color_loop_update.direction\" , FT_UINT8 , BASE_DEC , NULL , ZBEE_ZCL_COLOR_LOOP_UPDATE_DIRECTION_MASK , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_color_loop_update_time , {\n \"Update Time\" , \"zbee_zcl_lighting.color_control.color_loop_update.time\" , FT_UINT8 , BASE_DEC , NULL , ZBEE_ZCL_COLOR_LOOP_UPDATE_TIME_MASK , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_color_loop_update_start_hue , {\n \"Update Start Hue\" , \"zbee_zcl_lighting.color_control.color_loop_update.start_hue\" , FT_UINT8 , BASE_DEC , NULL , ZBEE_ZCL_COLOR_LOOP_UPDATE_START_HUE_MASK , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_color_loop_action , {\n \"Action\" , \"zbee_zcl_lighting.color_control.color_loop_action\" , FT_UINT8 , BASE_DEC , VALS ( zbee_zcl_color_control_action ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_color_loop_direction , {\n \"Direction\" , \"zbee_zcl_lighting.color_control.color_loop_direction\" , FT_UINT8 , BASE_DEC , VALS ( zbee_zcl_color_control_color_loop_direction_values ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_color_loop_time , {\n \"Time\" , \"zbee_zcl_lighting.color_control.color_loop_time\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_zcl_time_in_seconds ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_color_loop_start_hue , {\n \"Enhanced Hue\" , \"zbee_zcl_lighting.color_control.color_loop_start_hue\" , FT_UINT16 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_color_temp_min , {\n \"Color Temperature Minimum Mired\" , \"zbee_zcl_lighting.color_control.color_temp_min\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_temperature ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_color_temp_max , {\n \"Color Temperature Maximum Mired\" , \"zbee_zcl_lighting.color_control.color_temp_max\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_color_temperature ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_color_control_srv_rx_cmd_id , {\n \"Command\" , \"zbee_zcl_lighting.color_control.cmd.srv_rx.id\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_color_control_srv_rx_cmd_names ) , 0x00 , NULL , HFILL }\n }\n }\n ;\n static gint * ett [ ZBEE_ZCL_COLOR_CONTROL_NUM_ETT ] ;\n ett [ 0 ] = & ett_zbee_zcl_color_control ;\n ett [ 1 ] = & ett_zbee_zcl_color_control_color_capabilities ;\n ett [ 2 ] = & ett_zbee_zcl_color_control_color_loop_settings ;\n proto_zbee_zcl_color_control = proto_register_protocol ( \"ZigBee ZCL Color Control\" , \"ZCL Color Control\" , ZBEE_PROTOABBREV_ZCL_COLOR_CONTROL ) ;\n proto_register_field_array ( proto_zbee_zcl_color_control , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n register_dissector ( ZBEE_PROTOABBREV_ZCL_COLOR_CONTROL , dissect_zbee_zcl_color_control , proto_zbee_zcl_color_control ) ;\n }"}
{"idx": 14069, "target": 0, "func": "int qemuMonitorJSONAddDrive ( qemuMonitorPtr mon , const char * drivestr ) {\n int ret ;\n virJSONValuePtr cmd ;\n virJSONValuePtr reply = NULL ;\n cmd = qemuMonitorJSONMakeCommand ( \"drive_add\" , \"s:pci_addr\" , \"dummy\" , \"s:opts\" , drivestr , NULL ) ;\n if ( ! cmd ) return - 1 ;\n if ( ( ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) < 0 ) ) goto cleanup ;\n if ( qemuMonitorJSONHasError ( reply , \"CommandNotFound\" ) && qemuMonitorCheckHMP ( mon , \"drive_add\" ) ) {\n VIR_DEBUG ( \"drive_add command not found, trying HMP\" ) ;\n ret = qemuMonitorTextAddDrive ( mon , drivestr ) ;\n goto cleanup ;\n }\n ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n cleanup : virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 14070, "target": 0, "func": "static char * get_private_subtags ( const char * loc_name ) {\n char * result = NULL ;\n int singletonPos = 0 ;\n int len = 0 ;\n const char * mod_loc_name = NULL ;\n if ( loc_name && ( len = strlen ( loc_name ) > 0 ) ) {\n mod_loc_name = loc_name ;\n len = strlen ( mod_loc_name ) ;\n while ( ( singletonPos = getSingletonPos ( mod_loc_name ) ) != - 1 ) {\n if ( singletonPos != - 1 ) {\n if ( ( * ( mod_loc_name + singletonPos ) == 'x' ) || ( * ( mod_loc_name + singletonPos ) == 'X' ) ) {\n if ( singletonPos + 2 == len ) {\n }\n else {\n result = estrndup ( mod_loc_name + singletonPos + 2 , ( len - ( singletonPos + 2 ) ) ) ;\n }\n break ;\n }\n else {\n if ( singletonPos + 1 >= len ) {\n break ;\n }\n else {\n mod_loc_name = mod_loc_name + singletonPos + 1 ;\n len = strlen ( mod_loc_name ) ;\n }\n }\n }\n }\n }\n return result ;\n }"}
{"idx": 14071, "target": 0, "func": "static int key_notify_sa_flush ( const struct km_event * c ) {\n struct sk_buff * skb ;\n struct sadb_msg * hdr ;\n skb = alloc_skb ( sizeof ( struct sadb_msg ) + 16 , GFP_ATOMIC ) ;\n if ( ! skb ) return - ENOBUFS ;\n hdr = ( struct sadb_msg * ) skb_put ( skb , sizeof ( struct sadb_msg ) ) ;\n hdr -> sadb_msg_satype = pfkey_proto2satype ( c -> data . proto ) ;\n hdr -> sadb_msg_type = SADB_FLUSH ;\n hdr -> sadb_msg_seq = c -> seq ;\n hdr -> sadb_msg_pid = c -> portid ;\n hdr -> sadb_msg_version = PF_KEY_V2 ;\n hdr -> sadb_msg_errno = ( uint8_t ) 0 ;\n hdr -> sadb_msg_len = ( sizeof ( struct sadb_msg ) / sizeof ( uint64_t ) ) ;\n pfkey_broadcast ( skb , GFP_ATOMIC , BROADCAST_ALL , NULL , c -> net ) ;\n return 0 ;\n }"}
{"idx": 14072, "target": 0, "func": "void prplcb_conv_free ( PurpleConversation * conv ) {\n struct groupchat * gc = conv -> ui_data ;\n imcb_chat_free ( gc ) ;\n }"}
{"idx": 14073, "target": 0, "func": "int ssl3_pending ( const SSL * s ) {\n unsigned int i ;\n int num = 0 ;\n if ( s -> rlayer . rstate == SSL_ST_READ_BODY ) return 0 ;\n for ( i = 0 ;\n i < RECORD_LAYER_get_numrpipes ( & s -> rlayer ) ;\n i ++ ) {\n if ( SSL3_RECORD_get_type ( & s -> rlayer . rrec [ i ] ) != SSL3_RT_APPLICATION_DATA ) return 0 ;\n num += SSL3_RECORD_get_length ( & s -> rlayer . rrec [ i ] ) ;\n }\n return num ;\n }"}
{"idx": 14074, "target": 1, "func": "void vp9_quantize_dc ( const int16_t * coeff_ptr , int skip_block , const int16_t * round_ptr , const int16_t quant , int16_t * qcoeff_ptr , int16_t * dqcoeff_ptr , const int16_t dequant_ptr , uint16_t * eob_ptr ) {\n const int rc = 0 ;\n const int coeff = coeff_ptr [ rc ] ;\n const int coeff_sign = ( coeff >> 31 ) ;\n const int abs_coeff = ( coeff ^ coeff_sign ) - coeff_sign ;\n int tmp , eob = - 1 ;\n if ( ! skip_block ) {\n tmp = clamp ( abs_coeff + round_ptr [ rc != 0 ] , INT16_MIN , INT16_MAX ) ;\n tmp = ( tmp * quant ) >> 16 ;\n qcoeff_ptr [ rc ] = ( tmp ^ coeff_sign ) - coeff_sign ;\n dqcoeff_ptr [ rc ] = qcoeff_ptr [ rc ] * dequant_ptr ;\n if ( tmp ) eob = 0 ;\n }\n * eob_ptr = eob + 1 ;\n }"}
{"idx": 14075, "target": 0, "func": "static void xhci_calc_intr_kick ( XHCIState * xhci , XHCITransfer * xfer , XHCIEPContext * epctx , uint64_t mfindex ) {\n uint64_t asap = ( ( mfindex + epctx -> interval - 1 ) & ~ ( epctx -> interval - 1 ) ) ;\n uint64_t kick = epctx -> mfindex_last + epctx -> interval ;\n assert ( epctx -> interval != 0 ) ;\n xfer -> mfindex_kick = MAX ( asap , kick ) ;\n }"}
{"idx": 14076, "target": 0, "func": "static void t42_parse_sfnts ( T42_Face face , T42_Loader loader ) {\n T42_Parser parser = & loader -> parser ;\n FT_Memory memory = parser -> root . memory ;\n FT_Byte * cur ;\n FT_Byte * limit = parser -> root . limit ;\n FT_Error error ;\n FT_Int num_tables = 0 ;\n FT_ULong count , ttf_size = 0 ;\n FT_Long n , string_size , old_string_size , real_size ;\n FT_Byte * string_buf = NULL ;\n FT_Bool allocated = 0 ;\n T42_Load_Status status ;\n T1_Skip_Spaces ( parser ) ;\n if ( parser -> root . cursor >= limit || * parser -> root . cursor ++ != '[' ) {\n FT_ERROR ( ( \"t42_parse_sfnts: can't find begin of sfnts vector\\n\" ) ) ;\n error = FT_THROW ( Invalid_File_Format ) ;\n goto Fail ;\n }\n T1_Skip_Spaces ( parser ) ;\n status = BEFORE_START ;\n string_size = 0 ;\n old_string_size = 0 ;\n count = 0 ;\n while ( parser -> root . cursor < limit ) {\n cur = parser -> root . cursor ;\n if ( * cur == ']' ) {\n parser -> root . cursor ++ ;\n goto Exit ;\n }\n else if ( * cur == '<' ) {\n T1_Skip_PS_Token ( parser ) ;\n if ( parser -> root . error ) goto Exit ;\n string_size = ( FT_Long ) ( ( parser -> root . cursor - cur - 2 + 1 ) / 2 ) ;\n if ( FT_REALLOC ( string_buf , old_string_size , string_size ) ) goto Fail ;\n allocated = 1 ;\n parser -> root . cursor = cur ;\n ( void ) T1_ToBytes ( parser , string_buf , string_size , & real_size , 1 ) ;\n old_string_size = string_size ;\n string_size = real_size ;\n }\n else if ( ft_isdigit ( * cur ) ) {\n if ( allocated ) {\n FT_ERROR ( ( \"t42_parse_sfnts: \" \"can't handle mixed binary and hex strings\\n\" ) ) ;\n error = FT_THROW ( Invalid_File_Format ) ;\n goto Fail ;\n }\n string_size = T1_ToInt ( parser ) ;\n if ( string_size < 0 ) {\n FT_ERROR ( ( \"t42_parse_sfnts: invalid string size\\n\" ) ) ;\n error = FT_THROW ( Invalid_File_Format ) ;\n goto Fail ;\n }\n T1_Skip_PS_Token ( parser ) ;\n if ( parser -> root . error ) return ;\n string_buf = parser -> root . cursor + 1 ;\n if ( limit - parser -> root . cursor < string_size ) {\n FT_ERROR ( ( \"t42_parse_sfnts: too many binary data\\n\" ) ) ;\n error = FT_THROW ( Invalid_File_Format ) ;\n goto Fail ;\n }\n else parser -> root . cursor += string_size + 1 ;\n }\n if ( ! string_buf ) {\n FT_ERROR ( ( \"t42_parse_sfnts: invalid data in sfnts array\\n\" ) ) ;\n error = FT_THROW ( Invalid_File_Format ) ;\n goto Fail ;\n }\n if ( ( string_size & 1 ) && string_buf [ string_size - 1 ] == 0 ) string_size -- ;\n if ( ! string_size ) {\n FT_ERROR ( ( \"t42_parse_sfnts: invalid string\\n\" ) ) ;\n error = FT_THROW ( Invalid_File_Format ) ;\n goto Fail ;\n }\n for ( n = 0 ;\n n < string_size ;\n n ++ ) {\n switch ( status ) {\n case BEFORE_START : if ( count < 12 ) {\n face -> ttf_data [ count ++ ] = string_buf [ n ] ;\n continue ;\n }\n else {\n num_tables = 16 * face -> ttf_data [ 4 ] + face -> ttf_data [ 5 ] ;\n status = BEFORE_TABLE_DIR ;\n ttf_size = 12 + 16 * num_tables ;\n if ( FT_REALLOC ( face -> ttf_data , 12 , ttf_size ) ) goto Fail ;\n }\n case BEFORE_TABLE_DIR : if ( count < ttf_size ) {\n face -> ttf_data [ count ++ ] = string_buf [ n ] ;\n continue ;\n }\n else {\n int i ;\n FT_ULong len ;\n for ( i = 0 ;\n i < num_tables ;\n i ++ ) {\n FT_Byte * p = face -> ttf_data + 12 + 16 * i + 12 ;\n len = FT_PEEK_ULONG ( p ) ;\n ttf_size += ( len + 3 ) & ~ 3 ;\n }\n status = OTHER_TABLES ;\n face -> ttf_size = ttf_size ;\n if ( FT_REALLOC ( face -> ttf_data , 12 + 16 * num_tables , ttf_size + 1 ) ) goto Fail ;\n }\n case OTHER_TABLES : if ( count >= ttf_size ) {\n FT_ERROR ( ( \"t42_parse_sfnts: too many binary data\\n\" ) ) ;\n error = FT_THROW ( Invalid_File_Format ) ;\n goto Fail ;\n }\n face -> ttf_data [ count ++ ] = string_buf [ n ] ;\n }\n }\n T1_Skip_Spaces ( parser ) ;\n }\n error = FT_THROW ( Invalid_File_Format ) ;\n Fail : parser -> root . error = error ;\n Exit : if ( allocated ) FT_FREE ( string_buf ) ;\n }"}
{"idx": 14077, "target": 0, "func": "static int h264_slice_header_init ( H264Context * h , int reinit ) {\n int nb_slices = ( HAVE_THREADS && h -> avctx -> active_thread_type & FF_THREAD_SLICE ) ? h -> avctx -> thread_count : 1 ;\n int i , ret ;\n h -> avctx -> sample_aspect_ratio = h -> sps . sar ;\n av_assert0 ( h -> avctx -> sample_aspect_ratio . den ) ;\n av_pix_fmt_get_chroma_sub_sample ( h -> avctx -> pix_fmt , & h -> chroma_x_shift , & h -> chroma_y_shift ) ;\n if ( h -> sps . timing_info_present_flag ) {\n int64_t den = h -> sps . time_scale ;\n if ( h -> x264_build < 44U ) den *= 2 ;\n av_reduce ( & h -> avctx -> time_base . num , & h -> avctx -> time_base . den , h -> sps . num_units_in_tick , den , 1 << 30 ) ;\n }\n h -> avctx -> hwaccel = ff_find_hwaccel ( h -> avctx ) ;\n if ( reinit ) free_tables ( h , 0 ) ;\n h -> first_field = 0 ;\n h -> prev_interlaced_frame = 1 ;\n init_scan_tables ( h ) ;\n ret = ff_h264_alloc_tables ( h ) ;\n if ( ret < 0 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"Could not allocate memory for h264\\n\" ) ;\n return ret ;\n }\n if ( nb_slices > MAX_THREADS || ( nb_slices > h -> mb_height && h -> mb_height ) ) {\n int max_slices ;\n if ( h -> mb_height ) max_slices = FFMIN ( MAX_THREADS , h -> mb_height ) ;\n else max_slices = MAX_THREADS ;\n av_log ( h -> avctx , AV_LOG_WARNING , \"too many threads/slices (%d),\" \" reducing to %d\\n\" , nb_slices , max_slices ) ;\n nb_slices = max_slices ;\n }\n h -> slice_context_count = nb_slices ;\n if ( ! HAVE_THREADS || ! ( h -> avctx -> active_thread_type & FF_THREAD_SLICE ) ) {\n ret = context_init ( h ) ;\n if ( ret < 0 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"context_init() failed.\\n\" ) ;\n return ret ;\n }\n }\n else {\n for ( i = 1 ;\n i < h -> slice_context_count ;\n i ++ ) {\n H264Context * c ;\n c = h -> thread_context [ i ] = av_mallocz ( sizeof ( H264Context ) ) ;\n if ( ! c ) return AVERROR ( ENOMEM ) ;\n c -> avctx = h -> avctx ;\n if ( CONFIG_ERROR_RESILIENCE ) {\n c -> dsp = h -> dsp ;\n }\n c -> vdsp = h -> vdsp ;\n c -> h264dsp = h -> h264dsp ;\n c -> h264qpel = h -> h264qpel ;\n c -> h264chroma = h -> h264chroma ;\n c -> sps = h -> sps ;\n c -> pps = h -> pps ;\n c -> pixel_shift = h -> pixel_shift ;\n c -> cur_chroma_format_idc = h -> cur_chroma_format_idc ;\n c -> width = h -> width ;\n c -> height = h -> height ;\n c -> linesize = h -> linesize ;\n c -> uvlinesize = h -> uvlinesize ;\n c -> chroma_x_shift = h -> chroma_x_shift ;\n c -> chroma_y_shift = h -> chroma_y_shift ;\n c -> qscale = h -> qscale ;\n c -> droppable = h -> droppable ;\n c -> data_partitioning = h -> data_partitioning ;\n c -> low_delay = h -> low_delay ;\n c -> mb_width = h -> mb_width ;\n c -> mb_height = h -> mb_height ;\n c -> mb_stride = h -> mb_stride ;\n c -> mb_num = h -> mb_num ;\n c -> flags = h -> flags ;\n c -> workaround_bugs = h -> workaround_bugs ;\n c -> pict_type = h -> pict_type ;\n init_scan_tables ( c ) ;\n clone_tables ( c , h , i ) ;\n c -> context_initialized = 1 ;\n }\n for ( i = 0 ;\n i < h -> slice_context_count ;\n i ++ ) if ( ( ret = context_init ( h -> thread_context [ i ] ) ) < 0 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"context_init() failed.\\n\" ) ;\n return ret ;\n }\n }\n h -> context_initialized = 1 ;\n return 0 ;\n }"}
{"idx": 14078, "target": 0, "func": "static int dissect_usb_video_streaming_input_header ( proto_tree * tree , tvbuff_t * tvb , int offset ) {\n guint8 num_formats ;\n guint8 bm_size ;\n static const int * info_bits [ ] = {\n & hf_usb_vid_streaming_info_D [ 0 ] , NULL }\n ;\n static const int * control_bits [ ] = {\n & hf_usb_vid_streaming_control_D [ 0 ] , & hf_usb_vid_streaming_control_D [ 1 ] , & hf_usb_vid_streaming_control_D [ 2 ] , & hf_usb_vid_streaming_control_D [ 3 ] , & hf_usb_vid_streaming_control_D [ 4 ] , & hf_usb_vid_streaming_control_D [ 5 ] , NULL }\n ;\n DISSECTOR_ASSERT ( array_length ( control_bits ) == ( 1 + array_length ( hf_usb_vid_streaming_control_D ) ) ) ;\n num_formats = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_usb_vid_streaming_ifdesc_bNumFormats , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_usb_vid_ifdesc_wTotalLength , tvb , offset + 1 , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n dissect_usb_endpoint_address ( tree , tvb , offset ) ;\n offset ++ ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_usb_vid_streaming_bmInfo , ett_streaming_info , info_bits , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_usb_vid_streaming_terminal_link , tvb , offset + 1 , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_usb_vid_streaming_still_capture_method , tvb , offset + 2 , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n proto_tree_add_item ( tree , hf_usb_vid_streaming_trigger_support , tvb , offset , 1 , ENC_NA ) ;\n if ( tvb_get_guint8 ( tvb , offset ) > 0 ) {\n proto_tree_add_item ( tree , hf_usb_vid_streaming_trigger_usage , tvb , offset + 1 , 1 , ENC_LITTLE_ENDIAN ) ;\n }\n else {\n proto_tree_add_uint_format_value ( tree , hf_usb_vid_streaming_trigger_usage , tvb , offset + 1 , 1 , 0 , \"Not applicable\" ) ;\n }\n offset += 2 ;\n bm_size = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_usb_vid_bControlSize , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n ++ offset ;\n if ( bm_size > 0 ) {\n guint8 i ;\n for ( i = 0 ;\n i < num_formats ;\n ++ i ) {\n proto_tree_add_bitmask_len ( tree , tvb , offset , bm_size , hf_usb_vid_bmControl , ett_streaming_controls , control_bits , & ei_usb_vid_bitmask_len , ENC_LITTLE_ENDIAN ) ;\n offset += bm_size ;\n }\n }\n return offset ;\n }"}
{"idx": 14079, "target": 0, "func": "void http_basic_cb ( struct evhttp_request * req , void * arg ) {\n struct evbuffer * evb = evbuffer_new ( ) ;\n int empty = evhttp_find_header ( req -> input_headers , \"Empty\" ) != NULL ;\n event_debug ( ( \"%s: called\\n\" , __func__ ) ) ;\n evbuffer_add_printf ( evb , \"This is funny\" ) ;\n {\n const char * multi = evhttp_find_header ( req -> input_headers , \"X-multi\" ) ;\n if ( multi ) {\n if ( strcmp ( \"END\" , multi + strlen ( multi ) - 3 ) == 0 ) test_ok ++ ;\n if ( evhttp_find_header ( req -> input_headers , \"X-Last\" ) ) test_ok ++ ;\n }\n }\n if ( evhttp_find_header ( req -> input_headers , \"X-Negative\" ) ) evhttp_add_header ( req -> output_headers , \"Content-Length\" , \"-100\" ) ;\n evhttp_send_reply ( req , HTTP_OK , \"Everything is fine\" , ! empty ? evb : NULL ) ;\n evbuffer_free ( evb ) ;\n }"}
{"idx": 14080, "target": 1, "func": "xsltDocumentPtr xsltNewDocument ( xsltTransformContextPtr ctxt , xmlDocPtr doc ) {\n xsltDocumentPtr cur ;\n cur = ( xsltDocumentPtr ) xmlMalloc ( sizeof ( xsltDocument ) ) ;\n if ( cur == NULL ) {\n xsltTransformError ( ctxt , NULL , ( xmlNodePtr ) doc , \"xsltNewDocument : malloc failed\\n\" ) ;\n return ( NULL ) ;\n }\n memset ( cur , 0 , sizeof ( xsltDocument ) ) ;\n cur -> doc = doc ;\n if ( ctxt != NULL ) {\n if ( ! XSLT_IS_RES_TREE_FRAG ( doc ) ) {\n cur -> next = ctxt -> docList ;\n ctxt -> docList = cur ;\n }\n }\n return ( cur ) ;\n }"}
{"idx": 14081, "target": 0, "func": "static void idct8 ( const tran_low_t * input , tran_low_t * output ) {\n tran_low_t step1 [ 8 ] , step2 [ 8 ] ;\n tran_high_t temp1 , temp2 ;\n step1 [ 0 ] = input [ 0 ] ;\n step1 [ 2 ] = input [ 4 ] ;\n step1 [ 1 ] = input [ 2 ] ;\n step1 [ 3 ] = input [ 6 ] ;\n temp1 = input [ 1 ] * cospi_28_64 - input [ 7 ] * cospi_4_64 ;\n temp2 = input [ 1 ] * cospi_4_64 + input [ 7 ] * cospi_28_64 ;\n step1 [ 4 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 7 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = input [ 5 ] * cospi_12_64 - input [ 3 ] * cospi_20_64 ;\n temp2 = input [ 5 ] * cospi_20_64 + input [ 3 ] * cospi_12_64 ;\n step1 [ 5 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 6 ] = dct_const_round_shift ( temp2 ) ;\n idct4 ( step1 , step1 ) ;\n step2 [ 4 ] = step1 [ 4 ] + step1 [ 5 ] ;\n step2 [ 5 ] = step1 [ 4 ] - step1 [ 5 ] ;\n step2 [ 6 ] = - step1 [ 6 ] + step1 [ 7 ] ;\n step2 [ 7 ] = step1 [ 6 ] + step1 [ 7 ] ;\n step1 [ 4 ] = step2 [ 4 ] ;\n temp1 = ( step2 [ 6 ] - step2 [ 5 ] ) * cospi_16_64 ;\n temp2 = ( step2 [ 5 ] + step2 [ 6 ] ) * cospi_16_64 ;\n step1 [ 5 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 6 ] = dct_const_round_shift ( temp2 ) ;\n step1 [ 7 ] = step2 [ 7 ] ;\n output [ 0 ] = step1 [ 0 ] + step1 [ 7 ] ;\n output [ 1 ] = step1 [ 1 ] + step1 [ 6 ] ;\n output [ 2 ] = step1 [ 2 ] + step1 [ 5 ] ;\n output [ 3 ] = step1 [ 3 ] + step1 [ 4 ] ;\n output [ 4 ] = step1 [ 3 ] - step1 [ 4 ] ;\n output [ 5 ] = step1 [ 2 ] - step1 [ 5 ] ;\n output [ 6 ] = step1 [ 1 ] - step1 [ 6 ] ;\n output [ 7 ] = step1 [ 0 ] - step1 [ 7 ] ;\n }"}
{"idx": 14082, "target": 0, "func": "static int write_to_temp ( struct archive_write * a , const void * buff , size_t s ) {\n struct iso9660 * iso9660 = a -> format_data ;\n ssize_t written ;\n const unsigned char * b ;\n b = ( const unsigned char * ) buff ;\n while ( s ) {\n written = write ( iso9660 -> temp_fd , b , s ) ;\n if ( written < 0 ) {\n archive_set_error ( & a -> archive , errno , \"Can't write to temporary file\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n s -= written ;\n b += written ;\n }\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 14083, "target": 0, "func": "static afs_int32 changeEntry ( struct rx_call * call , afs_int32 aid , char * name , afs_int32 oid , afs_int32 newid , afs_int32 * cid ) {\n afs_int32 code ;\n struct ubik_trans * tt ;\n afs_int32 pos ;\n if ( ! name ) return PRPERM ;\n stolower ( name ) ;\n code = Initdb ( ) ;\n if ( code ) return code ;\n if ( aid == ANYUSERID || aid == AUTHUSERID || aid == ANONYMOUSID || aid == SYSADMINID ) return PRPERM ;\n if ( code != PRSUCCESS ) return code ;\n code = ubik_BeginTrans ( dbase , UBIK_WRITETRANS , & tt ) ;\n if ( code ) return code ;\n code = ubik_SetLock ( tt , 1 , 1 , LOCKWRITE ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = read_DbHeader ( tt ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = WhoIsThis ( call , tt , cid ) ;\n if ( code ) ABORT_WITH ( tt , PRPERM ) ;\n pos = FindByID ( tt , aid ) ;\n if ( ! pos ) ABORT_WITH ( tt , PRNOENT ) ;\n code = ChangeEntry ( tt , aid , * cid , name , oid , newid ) ;\n if ( code != PRSUCCESS ) ABORT_WITH ( tt , code ) ;\n code = ubik_EndTrans ( tt ) ;\n return code ;\n }"}
{"idx": 14084, "target": 0, "func": "static int dissect_h245_T_collapsing_item ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 671 \"../../asn1/h245/h245.cnf\" gef_ctx_t * parent_gefx ;\n parent_gefx = gef_ctx_get ( actx -> private_data ) ;\n actx -> private_data = gef_ctx_alloc ( parent_gefx , \"collapsing\" ) ;\n offset = dissect_h245_GenericParameter ( tvb , offset , actx , tree , hf_index ) ;\n # line 676 \"../../asn1/h245/h245.cnf\" actx -> private_data = parent_gefx ;\n return offset ;\n }"}
{"idx": 14085, "target": 0, "func": "static union _zend_function * row_method_get ( zval * * object_pp , char * method_name , int method_len , const zend_literal * key TSRMLS_DC ) {\n zend_function * fbc ;\n char * lc_method_name ;\n lc_method_name = emalloc ( method_len + 1 ) ;\n zend_str_tolower_copy ( lc_method_name , method_name , method_len ) ;\n if ( zend_hash_find ( & pdo_row_ce -> function_table , lc_method_name , method_len + 1 , ( void * * ) & fbc ) == FAILURE ) {\n efree ( lc_method_name ) ;\n return NULL ;\n }\n efree ( lc_method_name ) ;\n return fbc ;\n }"}
{"idx": 14086, "target": 0, "func": "unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 ) VAR ( 8 , 4 ) SUBPIX_VAR ( 8 , 4 ) SUBPIX_AVG_VAR ( 8 , 4 ) VAR ( 8 , 8 ) SUBPIX_VAR ( 8 , 8 ) SUBPIX_AVG_VAR ( 8 , 8 ) VAR ( 8 , 16 ) SUBPIX_VAR ( 8 , 16 ) SUBPIX_AVG_VAR ( 8 , 16 ) VAR ( 16 , 8 ) SUBPIX_VAR ( 16 , 8 ) SUBPIX_AVG_VAR ( 16 , 8 )"}
{"idx": 14087, "target": 0, "func": "static jas_image_cmpt_t * jas_image_cmpt_create0 ( ) {\n jas_image_cmpt_t * cmpt ;\n if ( ! ( cmpt = jas_malloc ( sizeof ( jas_image_cmpt_t ) ) ) ) {\n return 0 ;\n }\n memset ( cmpt , 0 , sizeof ( jas_image_cmpt_t ) ) ;\n cmpt -> type_ = JAS_IMAGE_CT_UNKNOWN ;\n return cmpt ;\n }"}
{"idx": 14088, "target": 0, "func": "static void dynstr_append_mem_checked ( DYNAMIC_STRING * str , const char * append , uint length ) {\n if ( dynstr_append_mem ( str , append , length ) ) die ( EX_MYSQLERR , DYNAMIC_STR_ERROR_MSG ) ;\n }"}
{"idx": 14089, "target": 0, "func": "void vp9_convolve8_avg_vert_c ( const uint8_t * src , ptrdiff_t src_stride , uint8_t * dst , ptrdiff_t dst_stride , const int16_t * filter_x , int x_step_q4 , const int16_t * filter_y , int y_step_q4 , int w , int h ) {\n const InterpKernel * const filters_y = get_filter_base ( filter_y ) ;\n const int y0_q4 = get_filter_offset ( filter_y , filters_y ) ;\n ( void ) filter_x ;\n ( void ) x_step_q4 ;\n convolve_avg_vert ( src , src_stride , dst , dst_stride , filters_y , y0_q4 , y_step_q4 , w , h ) ;\n }"}
{"idx": 14090, "target": 1, "func": "struct login_settings * login_settings_read ( pool_t pool , const struct ip_addr * local_ip , const struct ip_addr * remote_ip , const char * local_name , const struct master_service_ssl_settings * * ssl_set_r , void * * * other_settings_r ) {\n struct master_service_settings_input input ;\n const char * error ;\n const struct setting_parser_context * parser ;\n void * const * cache_sets ;\n void * * sets ;\n unsigned int i , count ;\n i_zero ( & input ) ;\n input . roots = login_set_roots ;\n input . module = login_binary -> process_name ;\n input . service = login_binary -> protocol ;\n input . local_name = local_name ;\n if ( local_ip != NULL ) input . local_ip = * local_ip ;\n if ( remote_ip != NULL ) input . remote_ip = * remote_ip ;\n if ( set_cache == NULL ) {\n set_cache = master_service_settings_cache_init ( master_service , input . module , input . service ) ;\n }\n if ( master_service_settings_cache_read ( set_cache , & input , NULL , & parser , & error ) < 0 ) i_fatal ( \"Error reading configuration: %s\" , error ) ;\n cache_sets = master_service_settings_parser_get_others ( master_service , parser ) ;\n for ( count = 0 ;\n input . roots [ count ] != NULL ;\n count ++ ) ;\n i_assert ( cache_sets [ count ] == NULL ) ;\n sets = p_new ( pool , void * , count + 1 ) ;\n for ( i = 0 ;\n i < count ;\n i ++ ) sets [ i ] = login_setting_dup ( pool , input . roots [ i ] , cache_sets [ i ] ) ;\n settings_var_expand ( & login_setting_parser_info , sets [ 0 ] , pool , login_set_var_expand_table ( & input ) ) ;\n * ssl_set_r = login_setting_dup ( pool , & master_service_ssl_setting_parser_info , settings_parser_get_list ( parser ) [ 1 ] ) ;\n * other_settings_r = sets + 1 ;\n return sets [ 0 ] ;\n }"}
{"idx": 14091, "target": 0, "func": "static void virLogStackTraceToFd ( int fd ) {\n void * array [ 100 ] ;\n int size ;\n static bool doneWarning ;\n const char * msg = \"Stack trace not available on this platform\\n\" ;\n # define STRIP_DEPTH 3 size = backtrace ( array , ARRAY_CARDINALITY ( array ) ) ;\n if ( size ) {\n backtrace_symbols_fd ( array + STRIP_DEPTH , size - STRIP_DEPTH , fd ) ;\n ignore_value ( safewrite ( fd , \"\\n\" , 1 ) ) ;\n }\n else if ( ! doneWarning ) {\n ignore_value ( safewrite ( fd , msg , strlen ( msg ) ) ) ;\n doneWarning = true ;\n }\n # undef STRIP_DEPTH }"}
{"idx": 14092, "target": 0, "func": "static inline void vmsvga_check_size ( struct vmsvga_state_s * s ) {\n DisplaySurface * surface = qemu_console_surface ( s -> vga . con ) ;\n if ( s -> new_width != surface_width ( surface ) || s -> new_height != surface_height ( surface ) || s -> new_depth != surface_bits_per_pixel ( surface ) ) {\n int stride = ( s -> new_depth * s -> new_width ) / 8 ;\n pixman_format_code_t format = qemu_default_pixman_format ( s -> new_depth , true ) ;\n trace_vmware_setmode ( s -> new_width , s -> new_height , s -> new_depth ) ;\n surface = qemu_create_displaysurface_from ( s -> new_width , s -> new_height , format , stride , s -> vga . vram_ptr ) ;\n dpy_gfx_replace_surface ( s -> vga . con , surface ) ;\n s -> invalidated = 1 ;\n }\n }"}
{"idx": 14093, "target": 0, "func": "static int diffie_hellman_sha1 ( LIBSSH2_SESSION * session , _libssh2_bn * g , _libssh2_bn * p , int group_order , unsigned char packet_type_init , unsigned char packet_type_reply , unsigned char * midhash , unsigned long midhash_len , kmdhgGPshakex_state_t * exchange_state ) {\n int ret = 0 ;\n int rc ;\n libssh2_sha1_ctx exchange_hash_ctx ;\n if ( exchange_state -> state == libssh2_NB_state_idle ) {\n exchange_state -> e_packet = NULL ;\n exchange_state -> s_packet = NULL ;\n exchange_state -> k_value = NULL ;\n exchange_state -> ctx = _libssh2_bn_ctx_new ( ) ;\n exchange_state -> x = _libssh2_bn_init ( ) ;\n exchange_state -> e = _libssh2_bn_init ( ) ;\n exchange_state -> f = _libssh2_bn_init_from_bin ( ) ;\n exchange_state -> k = _libssh2_bn_init ( ) ;\n memset ( & exchange_state -> req_state , 0 , sizeof ( packet_require_state_t ) ) ;\n _libssh2_bn_rand ( exchange_state -> x , group_order , 0 , - 1 ) ;\n _libssh2_bn_mod_exp ( exchange_state -> e , g , exchange_state -> x , p , exchange_state -> ctx ) ;\n exchange_state -> e_packet_len = _libssh2_bn_bytes ( exchange_state -> e ) + 6 ;\n if ( _libssh2_bn_bits ( exchange_state -> e ) % 8 ) {\n exchange_state -> e_packet_len -- ;\n }\n exchange_state -> e_packet = LIBSSH2_ALLOC ( session , exchange_state -> e_packet_len ) ;\n if ( ! exchange_state -> e_packet ) {\n ret = _libssh2_error ( session , LIBSSH2_ERROR_ALLOC , \"Out of memory error\" ) ;\n goto clean_exit ;\n }\n exchange_state -> e_packet [ 0 ] = packet_type_init ;\n _libssh2_htonu32 ( exchange_state -> e_packet + 1 , exchange_state -> e_packet_len - 5 ) ;\n if ( _libssh2_bn_bits ( exchange_state -> e ) % 8 ) {\n _libssh2_bn_to_bin ( exchange_state -> e , exchange_state -> e_packet + 5 ) ;\n }\n else {\n exchange_state -> e_packet [ 5 ] = 0 ;\n _libssh2_bn_to_bin ( exchange_state -> e , exchange_state -> e_packet + 6 ) ;\n }\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Sending KEX packet %d\" , ( int ) packet_type_init ) ;\n exchange_state -> state = libssh2_NB_state_created ;\n }\n if ( exchange_state -> state == libssh2_NB_state_created ) {\n rc = _libssh2_transport_send ( session , exchange_state -> e_packet , exchange_state -> e_packet_len , NULL , 0 ) ;\n if ( rc == LIBSSH2_ERROR_EAGAIN ) {\n return rc ;\n }\n else if ( rc ) {\n ret = _libssh2_error ( session , rc , \"Unable to send KEX init message\" ) ;\n goto clean_exit ;\n }\n exchange_state -> state = libssh2_NB_state_sent ;\n }\n if ( exchange_state -> state == libssh2_NB_state_sent ) {\n if ( session -> burn_optimistic_kexinit ) {\n int burn_type ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Waiting for badly guessed KEX packet (to be ignored)\" ) ;\n burn_type = _libssh2_packet_burn ( session , & exchange_state -> burn_state ) ;\n if ( burn_type == LIBSSH2_ERROR_EAGAIN ) {\n return burn_type ;\n }\n else if ( burn_type <= 0 ) {\n ret = burn_type ;\n goto clean_exit ;\n }\n session -> burn_optimistic_kexinit = 0 ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Burnt packet of type: %02x\" , ( unsigned int ) burn_type ) ;\n }\n exchange_state -> state = libssh2_NB_state_sent1 ;\n }\n if ( exchange_state -> state == libssh2_NB_state_sent1 ) {\n rc = _libssh2_packet_require ( session , packet_type_reply , & exchange_state -> s_packet , & exchange_state -> s_packet_len , 0 , NULL , 0 , & exchange_state -> req_state ) ;\n if ( rc == LIBSSH2_ERROR_EAGAIN ) {\n return rc ;\n }\n if ( rc ) {\n ret = _libssh2_error ( session , LIBSSH2_ERROR_TIMEOUT , \"Timed out waiting for KEX reply\" ) ;\n goto clean_exit ;\n }\n exchange_state -> s = exchange_state -> s_packet + 1 ;\n session -> server_hostkey_len = _libssh2_ntohu32 ( exchange_state -> s ) ;\n exchange_state -> s += 4 ;\n if ( session -> server_hostkey ) LIBSSH2_FREE ( session , session -> server_hostkey ) ;\n session -> server_hostkey = LIBSSH2_ALLOC ( session , session -> server_hostkey_len ) ;\n if ( ! session -> server_hostkey ) {\n ret = _libssh2_error ( session , LIBSSH2_ERROR_ALLOC , \"Unable to allocate memory for a copy \" \"of the host key\" ) ;\n goto clean_exit ;\n }\n memcpy ( session -> server_hostkey , exchange_state -> s , session -> server_hostkey_len ) ;\n exchange_state -> s += session -> server_hostkey_len ;\n # if LIBSSH2_MD5 {\n libssh2_md5_ctx fingerprint_ctx ;\n if ( libssh2_md5_init ( & fingerprint_ctx ) ) {\n libssh2_md5_update ( fingerprint_ctx , session -> server_hostkey , session -> server_hostkey_len ) ;\n libssh2_md5_final ( fingerprint_ctx , session -> server_hostkey_md5 ) ;\n session -> server_hostkey_md5_valid = TRUE ;\n }\n else {\n session -> server_hostkey_md5_valid = FALSE ;\n }\n }\n # ifdef LIBSSH2DEBUG {\n char fingerprint [ 50 ] , * fprint = fingerprint ;\n int i ;\n for ( i = 0 ;\n i < 16 ;\n i ++ , fprint += 3 ) {\n snprintf ( fprint , 4 , \"%02x:\" , session -> server_hostkey_md5 [ i ] ) ;\n }\n * ( -- fprint ) = '\\0' ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Server's MD5 Fingerprint: %s\" , fingerprint ) ;\n }\n # endif # endif {\n libssh2_sha1_ctx fingerprint_ctx ;\n if ( libssh2_sha1_init ( & fingerprint_ctx ) ) {\n libssh2_sha1_update ( fingerprint_ctx , session -> server_hostkey , session -> server_hostkey_len ) ;\n libssh2_sha1_final ( fingerprint_ctx , session -> server_hostkey_sha1 ) ;\n session -> server_hostkey_sha1_valid = TRUE ;\n }\n else {\n session -> server_hostkey_sha1_valid = FALSE ;\n }\n }\n # ifdef LIBSSH2DEBUG {\n char fingerprint [ 64 ] , * fprint = fingerprint ;\n int i ;\n for ( i = 0 ;\n i < 20 ;\n i ++ , fprint += 3 ) {\n snprintf ( fprint , 4 , \"%02x:\" , session -> server_hostkey_sha1 [ i ] ) ;\n }\n * ( -- fprint ) = '\\0' ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Server's SHA1 Fingerprint: %s\" , fingerprint ) ;\n }\n # endif if ( session -> hostkey -> init ( session , session -> server_hostkey , session -> server_hostkey_len , & session -> server_hostkey_abstract ) ) {\n ret = _libssh2_error ( session , LIBSSH2_ERROR_HOSTKEY_INIT , \"Unable to initialize hostkey importer\" ) ;\n goto clean_exit ;\n }\n exchange_state -> f_value_len = _libssh2_ntohu32 ( exchange_state -> s ) ;\n exchange_state -> s += 4 ;\n exchange_state -> f_value = exchange_state -> s ;\n exchange_state -> s += exchange_state -> f_value_len ;\n _libssh2_bn_from_bin ( exchange_state -> f , exchange_state -> f_value_len , exchange_state -> f_value ) ;\n exchange_state -> h_sig_len = _libssh2_ntohu32 ( exchange_state -> s ) ;\n exchange_state -> s += 4 ;\n exchange_state -> h_sig = exchange_state -> s ;\n _libssh2_bn_mod_exp ( exchange_state -> k , exchange_state -> f , exchange_state -> x , p , exchange_state -> ctx ) ;\n exchange_state -> k_value_len = _libssh2_bn_bytes ( exchange_state -> k ) + 5 ;\n if ( _libssh2_bn_bits ( exchange_state -> k ) % 8 ) {\n exchange_state -> k_value_len -- ;\n }\n exchange_state -> k_value = LIBSSH2_ALLOC ( session , exchange_state -> k_value_len ) ;\n if ( ! exchange_state -> k_value ) {\n ret = _libssh2_error ( session , LIBSSH2_ERROR_ALLOC , \"Unable to allocate buffer for K\" ) ;\n goto clean_exit ;\n }\n _libssh2_htonu32 ( exchange_state -> k_value , exchange_state -> k_value_len - 4 ) ;\n if ( _libssh2_bn_bits ( exchange_state -> k ) % 8 ) {\n _libssh2_bn_to_bin ( exchange_state -> k , exchange_state -> k_value + 4 ) ;\n }\n else {\n exchange_state -> k_value [ 4 ] = 0 ;\n _libssh2_bn_to_bin ( exchange_state -> k , exchange_state -> k_value + 5 ) ;\n }\n exchange_state -> exchange_hash = ( void * ) & exchange_hash_ctx ;\n libssh2_sha1_init ( & exchange_hash_ctx ) ;\n if ( session -> local . banner ) {\n _libssh2_htonu32 ( exchange_state -> h_sig_comp , strlen ( ( char * ) session -> local . banner ) - 2 ) ;\n libssh2_sha1_update ( exchange_hash_ctx , exchange_state -> h_sig_comp , 4 ) ;\n libssh2_sha1_update ( exchange_hash_ctx , ( char * ) session -> local . banner , strlen ( ( char * ) session -> local . banner ) - 2 ) ;\n }\n else {\n _libssh2_htonu32 ( exchange_state -> h_sig_comp , sizeof ( LIBSSH2_SSH_DEFAULT_BANNER ) - 1 ) ;\n libssh2_sha1_update ( exchange_hash_ctx , exchange_state -> h_sig_comp , 4 ) ;\n libssh2_sha1_update ( exchange_hash_ctx , LIBSSH2_SSH_DEFAULT_BANNER , sizeof ( LIBSSH2_SSH_DEFAULT_BANNER ) - 1 ) ;\n }\n _libssh2_htonu32 ( exchange_state -> h_sig_comp , strlen ( ( char * ) session -> remote . banner ) ) ;\n libssh2_sha1_update ( exchange_hash_ctx , exchange_state -> h_sig_comp , 4 ) ;\n libssh2_sha1_update ( exchange_hash_ctx , session -> remote . banner , strlen ( ( char * ) session -> remote . banner ) ) ;\n _libssh2_htonu32 ( exchange_state -> h_sig_comp , session -> local . kexinit_len ) ;\n libssh2_sha1_update ( exchange_hash_ctx , exchange_state -> h_sig_comp , 4 ) ;\n libssh2_sha1_update ( exchange_hash_ctx , session -> local . kexinit , session -> local . kexinit_len ) ;\n _libssh2_htonu32 ( exchange_state -> h_sig_comp , session -> remote . kexinit_len ) ;\n libssh2_sha1_update ( exchange_hash_ctx , exchange_state -> h_sig_comp , 4 ) ;\n libssh2_sha1_update ( exchange_hash_ctx , session -> remote . kexinit , session -> remote . kexinit_len ) ;\n _libssh2_htonu32 ( exchange_state -> h_sig_comp , session -> server_hostkey_len ) ;\n libssh2_sha1_update ( exchange_hash_ctx , exchange_state -> h_sig_comp , 4 ) ;\n libssh2_sha1_update ( exchange_hash_ctx , session -> server_hostkey , session -> server_hostkey_len ) ;\n if ( packet_type_init == SSH_MSG_KEX_DH_GEX_INIT ) {\n # ifdef LIBSSH2_DH_GEX_NEW _libssh2_htonu32 ( exchange_state -> h_sig_comp , LIBSSH2_DH_GEX_MINGROUP ) ;\n _libssh2_htonu32 ( exchange_state -> h_sig_comp + 4 , LIBSSH2_DH_GEX_OPTGROUP ) ;\n _libssh2_htonu32 ( exchange_state -> h_sig_comp + 8 , LIBSSH2_DH_GEX_MAXGROUP ) ;\n libssh2_sha1_update ( exchange_hash_ctx , exchange_state -> h_sig_comp , 12 ) ;\n # else _libssh2_htonu32 ( exchange_state -> h_sig_comp , LIBSSH2_DH_GEX_OPTGROUP ) ;\n libssh2_sha1_update ( exchange_hash_ctx , exchange_state -> h_sig_comp , 4 ) ;\n # endif }\n if ( midhash ) {\n libssh2_sha1_update ( exchange_hash_ctx , midhash , midhash_len ) ;\n }\n libssh2_sha1_update ( exchange_hash_ctx , exchange_state -> e_packet + 1 , exchange_state -> e_packet_len - 1 ) ;\n _libssh2_htonu32 ( exchange_state -> h_sig_comp , exchange_state -> f_value_len ) ;\n libssh2_sha1_update ( exchange_hash_ctx , exchange_state -> h_sig_comp , 4 ) ;\n libssh2_sha1_update ( exchange_hash_ctx , exchange_state -> f_value , exchange_state -> f_value_len ) ;\n libssh2_sha1_update ( exchange_hash_ctx , exchange_state -> k_value , exchange_state -> k_value_len ) ;\n libssh2_sha1_final ( exchange_hash_ctx , exchange_state -> h_sig_comp ) ;\n if ( session -> hostkey -> sig_verify ( session , exchange_state -> h_sig , exchange_state -> h_sig_len , exchange_state -> h_sig_comp , 20 , & session -> server_hostkey_abstract ) ) {\n ret = _libssh2_error ( session , LIBSSH2_ERROR_HOSTKEY_SIGN , \"Unable to verify hostkey signature\" ) ;\n goto clean_exit ;\n }\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Sending NEWKEYS message\" ) ;\n exchange_state -> c = SSH_MSG_NEWKEYS ;\n exchange_state -> state = libssh2_NB_state_sent2 ;\n }\n if ( exchange_state -> state == libssh2_NB_state_sent2 ) {\n rc = _libssh2_transport_send ( session , & exchange_state -> c , 1 , NULL , 0 ) ;\n if ( rc == LIBSSH2_ERROR_EAGAIN ) {\n return rc ;\n }\n else if ( rc ) {\n ret = _libssh2_error ( session , rc , \"Unable to send NEWKEYS message\" ) ;\n goto clean_exit ;\n }\n exchange_state -> state = libssh2_NB_state_sent3 ;\n }\n if ( exchange_state -> state == libssh2_NB_state_sent3 ) {\n rc = _libssh2_packet_require ( session , SSH_MSG_NEWKEYS , & exchange_state -> tmp , & exchange_state -> tmp_len , 0 , NULL , 0 , & exchange_state -> req_state ) ;\n if ( rc == LIBSSH2_ERROR_EAGAIN ) {\n return rc ;\n }\n else if ( rc ) {\n ret = _libssh2_error ( session , rc , \"Timed out waiting for NEWKEYS\" ) ;\n goto clean_exit ;\n }\n session -> state |= LIBSSH2_STATE_NEWKEYS ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Received NEWKEYS message\" ) ;\n LIBSSH2_FREE ( session , exchange_state -> tmp ) ;\n if ( ! session -> session_id ) {\n session -> session_id = LIBSSH2_ALLOC ( session , SHA_DIGEST_LENGTH ) ;\n if ( ! session -> session_id ) {\n ret = _libssh2_error ( session , LIBSSH2_ERROR_ALLOC , \"Unable to allocate buffer for SHA digest\" ) ;\n goto clean_exit ;\n }\n memcpy ( session -> session_id , exchange_state -> h_sig_comp , SHA_DIGEST_LENGTH ) ;\n session -> session_id_len = SHA_DIGEST_LENGTH ;\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"session_id calculated\" ) ;\n }\n if ( session -> local . crypt -> dtor ) {\n session -> local . crypt -> dtor ( session , & session -> local . crypt_abstract ) ;\n }\n if ( session -> local . crypt -> init ) {\n unsigned char * iv = NULL , * secret = NULL ;\n int free_iv = 0 , free_secret = 0 ;\n LIBSSH2_KEX_METHOD_DIFFIE_HELLMAN_SHA1_HASH ( iv , session -> local . crypt -> iv_len , \"A\" ) ;\n if ( ! iv ) {\n ret = - 1 ;\n goto clean_exit ;\n }\n LIBSSH2_KEX_METHOD_DIFFIE_HELLMAN_SHA1_HASH ( secret , session -> local . crypt -> secret_len , \"C\" ) ;\n if ( ! secret ) {\n LIBSSH2_FREE ( session , iv ) ;\n ret = LIBSSH2_ERROR_KEX_FAILURE ;\n goto clean_exit ;\n }\n if ( session -> local . crypt -> init ( session , session -> local . crypt , iv , & free_iv , secret , & free_secret , 1 , & session -> local . crypt_abstract ) ) {\n LIBSSH2_FREE ( session , iv ) ;\n LIBSSH2_FREE ( session , secret ) ;\n ret = LIBSSH2_ERROR_KEX_FAILURE ;\n goto clean_exit ;\n }\n if ( free_iv ) {\n memset ( iv , 0 , session -> local . crypt -> iv_len ) ;\n LIBSSH2_FREE ( session , iv ) ;\n }\n if ( free_secret ) {\n memset ( secret , 0 , session -> local . crypt -> secret_len ) ;\n LIBSSH2_FREE ( session , secret ) ;\n }\n }\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Client to Server IV and Key calculated\" ) ;\n if ( session -> remote . crypt -> dtor ) {\n session -> remote . crypt -> dtor ( session , & session -> remote . crypt_abstract ) ;\n }\n if ( session -> remote . crypt -> init ) {\n unsigned char * iv = NULL , * secret = NULL ;\n int free_iv = 0 , free_secret = 0 ;\n LIBSSH2_KEX_METHOD_DIFFIE_HELLMAN_SHA1_HASH ( iv , session -> remote . crypt -> iv_len , \"B\" ) ;\n if ( ! iv ) {\n ret = LIBSSH2_ERROR_KEX_FAILURE ;\n goto clean_exit ;\n }\n LIBSSH2_KEX_METHOD_DIFFIE_HELLMAN_SHA1_HASH ( secret , session -> remote . crypt -> secret_len , \"D\" ) ;\n if ( ! secret ) {\n LIBSSH2_FREE ( session , iv ) ;\n ret = LIBSSH2_ERROR_KEX_FAILURE ;\n goto clean_exit ;\n }\n if ( session -> remote . crypt -> init ( session , session -> remote . crypt , iv , & free_iv , secret , & free_secret , 0 , & session -> remote . crypt_abstract ) ) {\n LIBSSH2_FREE ( session , iv ) ;\n LIBSSH2_FREE ( session , secret ) ;\n ret = LIBSSH2_ERROR_KEX_FAILURE ;\n goto clean_exit ;\n }\n if ( free_iv ) {\n memset ( iv , 0 , session -> remote . crypt -> iv_len ) ;\n LIBSSH2_FREE ( session , iv ) ;\n }\n if ( free_secret ) {\n memset ( secret , 0 , session -> remote . crypt -> secret_len ) ;\n LIBSSH2_FREE ( session , secret ) ;\n }\n }\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Server to Client IV and Key calculated\" ) ;\n if ( session -> local . mac -> dtor ) {\n session -> local . mac -> dtor ( session , & session -> local . mac_abstract ) ;\n }\n if ( session -> local . mac -> init ) {\n unsigned char * key = NULL ;\n int free_key = 0 ;\n LIBSSH2_KEX_METHOD_DIFFIE_HELLMAN_SHA1_HASH ( key , session -> local . mac -> key_len , \"E\" ) ;\n if ( ! key ) {\n ret = LIBSSH2_ERROR_KEX_FAILURE ;\n goto clean_exit ;\n }\n session -> local . mac -> init ( session , key , & free_key , & session -> local . mac_abstract ) ;\n if ( free_key ) {\n memset ( key , 0 , session -> local . mac -> key_len ) ;\n LIBSSH2_FREE ( session , key ) ;\n }\n }\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Client to Server HMAC Key calculated\" ) ;\n if ( session -> remote . mac -> dtor ) {\n session -> remote . mac -> dtor ( session , & session -> remote . mac_abstract ) ;\n }\n if ( session -> remote . mac -> init ) {\n unsigned char * key = NULL ;\n int free_key = 0 ;\n LIBSSH2_KEX_METHOD_DIFFIE_HELLMAN_SHA1_HASH ( key , session -> remote . mac -> key_len , \"F\" ) ;\n if ( ! key ) {\n ret = LIBSSH2_ERROR_KEX_FAILURE ;\n goto clean_exit ;\n }\n session -> remote . mac -> init ( session , key , & free_key , & session -> remote . mac_abstract ) ;\n if ( free_key ) {\n memset ( key , 0 , session -> remote . mac -> key_len ) ;\n LIBSSH2_FREE ( session , key ) ;\n }\n }\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Server to Client HMAC Key calculated\" ) ;\n if ( session -> local . comp && session -> local . comp -> dtor ) {\n session -> local . comp -> dtor ( session , 1 , & session -> local . comp_abstract ) ;\n }\n if ( session -> local . comp && session -> local . comp -> init ) {\n if ( session -> local . comp -> init ( session , 1 , & session -> local . comp_abstract ) ) {\n ret = LIBSSH2_ERROR_KEX_FAILURE ;\n goto clean_exit ;\n }\n }\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Client to Server compression initialized\" ) ;\n if ( session -> remote . comp && session -> remote . comp -> dtor ) {\n session -> remote . comp -> dtor ( session , 0 , & session -> remote . comp_abstract ) ;\n }\n if ( session -> remote . comp && session -> remote . comp -> init ) {\n if ( session -> remote . comp -> init ( session , 0 , & session -> remote . comp_abstract ) ) {\n ret = LIBSSH2_ERROR_KEX_FAILURE ;\n goto clean_exit ;\n }\n }\n _libssh2_debug ( session , LIBSSH2_TRACE_KEX , \"Server to Client compression initialized\" ) ;\n }\n clean_exit : _libssh2_bn_free ( exchange_state -> x ) ;\n exchange_state -> x = NULL ;\n _libssh2_bn_free ( exchange_state -> e ) ;\n exchange_state -> e = NULL ;\n _libssh2_bn_free ( exchange_state -> f ) ;\n exchange_state -> f = NULL ;\n _libssh2_bn_free ( exchange_state -> k ) ;\n exchange_state -> k = NULL ;\n _libssh2_bn_ctx_free ( exchange_state -> ctx ) ;\n exchange_state -> ctx = NULL ;\n if ( exchange_state -> e_packet ) {\n LIBSSH2_FREE ( session , exchange_state -> e_packet ) ;\n exchange_state -> e_packet = NULL ;\n }\n if ( exchange_state -> s_packet ) {\n LIBSSH2_FREE ( session , exchange_state -> s_packet ) ;\n exchange_state -> s_packet = NULL ;\n }\n if ( exchange_state -> k_value ) {\n LIBSSH2_FREE ( session , exchange_state -> k_value ) ;\n exchange_state -> k_value = NULL ;\n }\n exchange_state -> state = libssh2_NB_state_idle ;\n return ret ;\n }"}
{"idx": 14094, "target": 0, "func": "static int xhci_ring_chain_length ( XHCIState * xhci , const XHCIRing * ring ) {\n PCIDevice * pci_dev = PCI_DEVICE ( xhci ) ;\n XHCITRB trb ;\n int length = 0 ;\n dma_addr_t dequeue = ring -> dequeue ;\n bool ccs = ring -> ccs ;\n bool control_td_set = 0 ;\n uint32_t link_cnt = 0 ;\n while ( 1 ) {\n TRBType type ;\n pci_dma_read ( pci_dev , dequeue , & trb , TRB_SIZE ) ;\n le64_to_cpus ( & trb . parameter ) ;\n le32_to_cpus ( & trb . status ) ;\n le32_to_cpus ( & trb . control ) ;\n if ( ( trb . control & TRB_C ) != ccs ) {\n return - length ;\n }\n type = TRB_TYPE ( trb ) ;\n if ( type == TR_LINK ) {\n if ( ++ link_cnt > TRB_LINK_LIMIT ) {\n return - length ;\n }\n dequeue = xhci_mask64 ( trb . parameter ) ;\n if ( trb . control & TRB_LK_TC ) {\n ccs = ! ccs ;\n }\n continue ;\n }\n length += 1 ;\n dequeue += TRB_SIZE ;\n if ( type == TR_SETUP ) {\n control_td_set = 1 ;\n }\n else if ( type == TR_STATUS ) {\n control_td_set = 0 ;\n }\n if ( ! control_td_set && ! ( trb . control & TRB_TR_CH ) ) {\n return length ;\n }\n }\n }"}
{"idx": 14095, "target": 0, "func": "void jpc_ns_fwdlift_colgrp ( jpc_fix_t * a , int numrows , int stride , int parity ) {\n jpc_fix_t * lptr ;\n jpc_fix_t * hptr ;\n register jpc_fix_t * lptr2 ;\n register jpc_fix_t * hptr2 ;\n register int n ;\n register int i ;\n int llen ;\n llen = ( numrows + 1 - parity ) >> 1 ;\n if ( numrows > 1 ) {\n lptr = & a [ 0 ] ;\n hptr = & a [ llen * stride ] ;\n if ( parity ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n jpc_fix_pluseq ( hptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * ALPHA ) , lptr2 [ 0 ] ) ) ;\n ++ hptr2 ;\n ++ lptr2 ;\n }\n hptr += stride ;\n }\n n = numrows - llen - parity - ( parity == ( numrows & 1 ) ) ;\n while ( n -- > 0 ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n jpc_fix_pluseq ( hptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( ALPHA ) , jpc_fix_add ( lptr2 [ 0 ] , lptr2 [ stride ] ) ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n hptr += stride ;\n lptr += stride ;\n }\n if ( parity == ( numrows & 1 ) ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n jpc_fix_pluseq ( hptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * ALPHA ) , lptr2 [ 0 ] ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n }\n lptr = & a [ 0 ] ;\n hptr = & a [ llen * stride ] ;\n if ( ! parity ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n jpc_fix_pluseq ( lptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * BETA ) , hptr2 [ 0 ] ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n lptr += stride ;\n }\n n = llen - ( ! parity ) - ( parity != ( numrows & 1 ) ) ;\n while ( n -- > 0 ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n jpc_fix_pluseq ( lptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( BETA ) , jpc_fix_add ( hptr2 [ 0 ] , hptr2 [ stride ] ) ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n lptr += stride ;\n hptr += stride ;\n }\n if ( parity != ( numrows & 1 ) ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n jpc_fix_pluseq ( lptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * BETA ) , hptr2 [ 0 ] ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n }\n lptr = & a [ 0 ] ;\n hptr = & a [ llen * stride ] ;\n if ( parity ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n jpc_fix_pluseq ( hptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * GAMMA ) , lptr2 [ 0 ] ) ) ;\n ++ hptr2 ;\n ++ lptr2 ;\n }\n hptr += stride ;\n }\n n = numrows - llen - parity - ( parity == ( numrows & 1 ) ) ;\n while ( n -- > 0 ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n jpc_fix_pluseq ( hptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( GAMMA ) , jpc_fix_add ( lptr2 [ 0 ] , lptr2 [ stride ] ) ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n hptr += stride ;\n lptr += stride ;\n }\n if ( parity == ( numrows & 1 ) ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n jpc_fix_pluseq ( hptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * GAMMA ) , lptr2 [ 0 ] ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n }\n lptr = & a [ 0 ] ;\n hptr = & a [ llen * stride ] ;\n if ( ! parity ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n jpc_fix_pluseq ( lptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * DELTA ) , hptr2 [ 0 ] ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n lptr += stride ;\n }\n n = llen - ( ! parity ) - ( parity != ( numrows & 1 ) ) ;\n while ( n -- > 0 ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n jpc_fix_pluseq ( lptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( DELTA ) , jpc_fix_add ( hptr2 [ 0 ] , hptr2 [ stride ] ) ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n lptr += stride ;\n hptr += stride ;\n }\n if ( parity != ( numrows & 1 ) ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n jpc_fix_pluseq ( lptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * DELTA ) , hptr2 [ 0 ] ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n }\n # if defined ( WT_DOSCALE ) lptr = & a [ 0 ] ;\n n = llen ;\n while ( n -- > 0 ) {\n lptr2 = lptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n lptr2 [ 0 ] = jpc_fix_mul ( lptr2 [ 0 ] , jpc_dbltofix ( LGAIN ) ) ;\n ++ lptr2 ;\n }\n lptr += stride ;\n }\n hptr = & a [ llen * stride ] ;\n n = numrows - llen ;\n while ( n -- > 0 ) {\n hptr2 = hptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n hptr2 [ 0 ] = jpc_fix_mul ( hptr2 [ 0 ] , jpc_dbltofix ( HGAIN ) ) ;\n ++ hptr2 ;\n }\n hptr += stride ;\n }\n # endif }\n else {\n # if defined ( WT_LENONE ) if ( parity ) {\n lptr2 = & a [ 0 ] ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n lptr2 [ 0 ] = jpc_fix_asl ( lptr2 [ 0 ] , 1 ) ;\n ++ lptr2 ;\n }\n }\n # endif }\n }"}
{"idx": 14096, "target": 0, "func": "int archive_read_support_format_xar ( struct archive * _a ) {\n struct archive_read * a = ( struct archive_read * ) _a ;\n archive_check_magic ( _a , ARCHIVE_READ_MAGIC , ARCHIVE_STATE_NEW , \"archive_read_support_format_xar\" ) ;\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"Xar not supported on this platform\" ) ;\n return ( ARCHIVE_WARN ) ;\n }"}
{"idx": 14097, "target": 0, "func": "int write_command_to_file ( char * cmd ) {\n char * buffer ;\n char * ip_address ;\n int dummy ;\n char * p ;\n FILE * fp ;\n struct stat statbuf ;\n char error_string [ MAX_INPUT_BUFFER ] ;\n if ( ! cmd || ! * cmd || strchr ( cmd , '\\n' ) ) return ERROR ;\n if ( stat ( command_file , & statbuf ) ) {\n snprintf ( error_string , sizeof ( error_string ) , \"Error: Could not stat() command file '%s'!\" , command_file ) ;\n error_string [ sizeof ( error_string ) - 1 ] = '\\x0' ;\n print_generic_error_message ( error_string , \"The external command file may be missing, Icinga may not be running, and/or Icinga may not be checking external commands.\" , 2 ) ;\n return ERROR ;\n }\n fp = fopen ( command_file , \"w\" ) ;\n if ( fp == NULL ) {\n snprintf ( error_string , sizeof ( error_string ) , \"Error: Could not open command file '%s' for update!\" , command_file ) ;\n error_string [ sizeof ( error_string ) - 1 ] = '\\x0' ;\n print_generic_error_message ( error_string , \"The permissions on the external command file and/or directory may be incorrect. Read the FAQs on how to setup proper permissions.\" , 2 ) ;\n return ERROR ;\n }\n if ( use_logging == TRUE ) {\n p = strchr ( cmd , ']' ) ;\n if ( p != NULL ) p += 2 ;\n else p = & cmd [ 0 ] ;\n ip_address = strdup ( getenv ( \"REMOTE_ADDR\" ) ) ;\n dummy = asprintf ( & buffer , \"EXTERNAL COMMAND: %s;\n%s;\n%s\" , current_authdata . username , ( ip_address != NULL ) ? ip_address : \"unknown remote address\" , p ) ;\n write_to_cgi_log ( buffer ) ;\n if ( enforce_comments_on_actions == TRUE ) {\n my_free ( buffer ) ;\n dummy = asprintf ( & buffer , \"FORCED COMMENT: %s;\n%s;\n%s;\n%s\" , current_authdata . username , ( ip_address != NULL ) ? ip_address : \"unknown remote address\" , comment_author , comment_data ) ;\n write_to_cgi_log ( buffer ) ;\n }\n my_free ( buffer ) ;\n }\n fprintf ( fp , \"%s\\n\" , cmd ) ;\n fflush ( fp ) ;\n fclose ( fp ) ;\n return OK ;\n }"}
{"idx": 14098, "target": 0, "func": "int jbig2_decode_text_region ( Jbig2Ctx * ctx , Jbig2Segment * segment , const Jbig2TextRegionParams * params , const Jbig2SymbolDict * const * dicts , const uint32_t n_dicts , Jbig2Image * image , const byte * data , const size_t size , Jbig2ArithCx * GR_stats , Jbig2ArithState * as , Jbig2WordStream * ws ) {\n uint32_t NINSTANCES ;\n uint32_t ID ;\n int32_t STRIPT ;\n int32_t FIRSTS ;\n int32_t DT ;\n int32_t DFS ;\n int32_t IDS ;\n int32_t CURS ;\n int32_t CURT ;\n int S , T ;\n int x , y ;\n bool first_symbol ;\n uint32_t index , SBNUMSYMS ;\n Jbig2Image * IB = NULL ;\n Jbig2HuffmanState * hs = NULL ;\n Jbig2HuffmanTable * SBSYMCODES = NULL ;\n int code = 0 ;\n int RI ;\n SBNUMSYMS = 0 ;\n for ( index = 0 ;\n index < n_dicts ;\n index ++ ) {\n SBNUMSYMS += dicts [ index ] -> n_symbols ;\n }\n jbig2_error ( ctx , JBIG2_SEVERITY_DEBUG , segment -> number , \"symbol list contains %d glyphs in %d dictionaries\" , SBNUMSYMS , n_dicts ) ;\n if ( params -> SBHUFF ) {\n Jbig2HuffmanTable * runcodes = NULL ;\n Jbig2HuffmanParams runcodeparams ;\n Jbig2HuffmanLine runcodelengths [ 35 ] ;\n Jbig2HuffmanLine * symcodelengths = NULL ;\n Jbig2HuffmanParams symcodeparams ;\n int err , len , range , r ;\n jbig2_error ( ctx , JBIG2_SEVERITY_DEBUG , segment -> number , \"huffman coded text region\" ) ;\n hs = jbig2_huffman_new ( ctx , ws ) ;\n if ( hs == NULL ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"failed to allocate storage for text region\" ) ;\n return - 1 ;\n }\n for ( index = 0 ;\n index < 35 ;\n index ++ ) {\n runcodelengths [ index ] . PREFLEN = jbig2_huffman_get_bits ( hs , 4 , & code ) ;\n if ( code < 0 ) goto cleanup1 ;\n runcodelengths [ index ] . RANGELEN = 0 ;\n runcodelengths [ index ] . RANGELOW = index ;\n jbig2_error ( ctx , JBIG2_SEVERITY_DEBUG , segment -> number , \" read runcode%d length %d\" , index , runcodelengths [ index ] . PREFLEN ) ;\n }\n runcodeparams . HTOOB = 0 ;\n runcodeparams . lines = runcodelengths ;\n runcodeparams . n_lines = 35 ;\n runcodes = jbig2_build_huffman_table ( ctx , & runcodeparams ) ;\n if ( runcodes == NULL ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"error constructing symbol id runcode table!\" ) ;\n code = - 1 ;\n goto cleanup1 ;\n }\n symcodelengths = jbig2_new ( ctx , Jbig2HuffmanLine , SBNUMSYMS ) ;\n if ( symcodelengths == NULL ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"memory allocation failure reading symbol ID huffman table!\" ) ;\n code = - 1 ;\n goto cleanup1 ;\n }\n index = 0 ;\n while ( index < SBNUMSYMS ) {\n code = jbig2_huffman_get ( hs , runcodes , & err ) ;\n if ( err != 0 || code < 0 || code >= 35 ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"error reading symbol ID huffman table!\" ) ;\n code = err ? err : - 1 ;\n goto cleanup1 ;\n }\n if ( code < 32 ) {\n len = code ;\n range = 1 ;\n }\n else {\n if ( code == 32 ) {\n if ( index < 1 ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"error decoding symbol id table: run length with no antecedent!\" ) ;\n code = - 1 ;\n goto cleanup1 ;\n }\n len = symcodelengths [ index - 1 ] . PREFLEN ;\n }\n else {\n len = 0 ;\n }\n err = 0 ;\n if ( code == 32 ) range = jbig2_huffman_get_bits ( hs , 2 , & err ) + 3 ;\n else if ( code == 33 ) range = jbig2_huffman_get_bits ( hs , 3 , & err ) + 3 ;\n else if ( code == 34 ) range = jbig2_huffman_get_bits ( hs , 7 , & err ) + 11 ;\n if ( err < 0 ) goto cleanup1 ;\n }\n jbig2_error ( ctx , JBIG2_SEVERITY_DEBUG , segment -> number , \" read runcode%d at index %d (length %d range %d)\" , code , index , len , range ) ;\n if ( index + range > SBNUMSYMS ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"runlength extends %d entries beyond the end of symbol id table!\" , index + range - SBNUMSYMS ) ;\n range = SBNUMSYMS - index ;\n }\n for ( r = 0 ;\n r < range ;\n r ++ ) {\n symcodelengths [ index + r ] . PREFLEN = len ;\n symcodelengths [ index + r ] . RANGELEN = 0 ;\n symcodelengths [ index + r ] . RANGELOW = index + r ;\n }\n index += r ;\n }\n if ( index < SBNUMSYMS ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"runlength codes do not cover the available symbol set\" ) ;\n }\n symcodeparams . HTOOB = 0 ;\n symcodeparams . lines = symcodelengths ;\n symcodeparams . n_lines = SBNUMSYMS ;\n jbig2_huffman_skip ( hs ) ;\n SBSYMCODES = jbig2_build_huffman_table ( ctx , & symcodeparams ) ;\n cleanup1 : jbig2_free ( ctx -> allocator , symcodelengths ) ;\n jbig2_release_huffman_table ( ctx , runcodes ) ;\n if ( SBSYMCODES == NULL ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"could not construct Symbol ID huffman table!\" ) ;\n jbig2_huffman_free ( ctx , hs ) ;\n return ( ( code != 0 ) ? code : - 1 ) ;\n }\n }\n jbig2_image_clear ( ctx , image , params -> SBDEFPIXEL ) ;\n if ( params -> SBHUFF ) {\n STRIPT = jbig2_huffman_get ( hs , params -> SBHUFFDT , & code ) ;\n }\n else {\n code = jbig2_arith_int_decode ( params -> IADT , as , & STRIPT ) ;\n }\n if ( code < 0 ) goto cleanup2 ;\n STRIPT *= - ( params -> SBSTRIPS ) ;\n FIRSTS = 0 ;\n NINSTANCES = 0 ;\n while ( NINSTANCES < params -> SBNUMINSTANCES ) {\n if ( params -> SBHUFF ) {\n DT = jbig2_huffman_get ( hs , params -> SBHUFFDT , & code ) ;\n }\n else {\n code = jbig2_arith_int_decode ( params -> IADT , as , & DT ) ;\n }\n if ( code < 0 ) goto cleanup2 ;\n DT *= params -> SBSTRIPS ;\n STRIPT += DT ;\n first_symbol = TRUE ;\n for ( ;\n ;\n ) {\n if ( first_symbol ) {\n if ( params -> SBHUFF ) {\n DFS = jbig2_huffman_get ( hs , params -> SBHUFFFS , & code ) ;\n }\n else {\n code = jbig2_arith_int_decode ( params -> IAFS , as , & DFS ) ;\n }\n if ( code < 0 ) goto cleanup2 ;\n FIRSTS += DFS ;\n CURS = FIRSTS ;\n first_symbol = FALSE ;\n }\n else {\n if ( NINSTANCES > params -> SBNUMINSTANCES ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"too many NINSTANCES (%d) decoded\" , NINSTANCES ) ;\n break ;\n }\n if ( params -> SBHUFF ) {\n IDS = jbig2_huffman_get ( hs , params -> SBHUFFDS , & code ) ;\n }\n else {\n code = jbig2_arith_int_decode ( params -> IADS , as , & IDS ) ;\n }\n if ( code ) {\n break ;\n }\n CURS += IDS + params -> SBDSOFFSET ;\n }\n if ( params -> SBSTRIPS == 1 ) {\n CURT = 0 ;\n }\n else if ( params -> SBHUFF ) {\n CURT = jbig2_huffman_get_bits ( hs , params -> LOGSBSTRIPS , & code ) ;\n }\n else {\n code = jbig2_arith_int_decode ( params -> IAIT , as , & CURT ) ;\n }\n if ( code < 0 ) goto cleanup2 ;\n T = STRIPT + CURT ;\n if ( params -> SBHUFF ) {\n ID = jbig2_huffman_get ( hs , SBSYMCODES , & code ) ;\n }\n else {\n code = jbig2_arith_iaid_decode ( params -> IAID , as , ( int * ) & ID ) ;\n }\n if ( code < 0 ) goto cleanup2 ;\n if ( ID >= SBNUMSYMS ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"symbol id out of range! (%d/%d)\" , ID , SBNUMSYMS ) ;\n goto cleanup2 ;\n }\n {\n uint32_t id = ID ;\n index = 0 ;\n while ( id >= dicts [ index ] -> n_symbols ) id -= dicts [ index ++ ] -> n_symbols ;\n IB = jbig2_image_clone ( ctx , dicts [ index ] -> glyphs [ id ] ) ;\n if ( ! IB ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"missing glyph %d/%d!\" , index , id ) ;\n goto cleanup2 ;\n }\n }\n if ( params -> SBREFINE ) {\n if ( params -> SBHUFF ) {\n RI = jbig2_huffman_get_bits ( hs , 1 , & code ) ;\n }\n else {\n code = jbig2_arith_int_decode ( params -> IARI , as , & RI ) ;\n }\n if ( code < 0 ) goto cleanup2 ;\n }\n else {\n RI = 0 ;\n }\n if ( RI ) {\n Jbig2RefinementRegionParams rparams ;\n Jbig2Image * IBO ;\n int32_t RDW , RDH , RDX , RDY ;\n Jbig2Image * refimage ;\n int BMSIZE = 0 ;\n int code1 = 0 ;\n int code2 = 0 ;\n int code3 = 0 ;\n int code4 = 0 ;\n int code5 = 0 ;\n if ( ! params -> SBHUFF ) {\n code1 = jbig2_arith_int_decode ( params -> IARDW , as , & RDW ) ;\n code2 = jbig2_arith_int_decode ( params -> IARDH , as , & RDH ) ;\n code3 = jbig2_arith_int_decode ( params -> IARDX , as , & RDX ) ;\n code4 = jbig2_arith_int_decode ( params -> IARDY , as , & RDY ) ;\n }\n else {\n RDW = jbig2_huffman_get ( hs , params -> SBHUFFRDW , & code1 ) ;\n RDH = jbig2_huffman_get ( hs , params -> SBHUFFRDH , & code2 ) ;\n RDX = jbig2_huffman_get ( hs , params -> SBHUFFRDX , & code3 ) ;\n RDY = jbig2_huffman_get ( hs , params -> SBHUFFRDY , & code4 ) ;\n BMSIZE = jbig2_huffman_get ( hs , params -> SBHUFFRSIZE , & code5 ) ;\n jbig2_huffman_skip ( hs ) ;\n }\n if ( ( code1 < 0 ) || ( code2 < 0 ) || ( code3 < 0 ) || ( code4 < 0 ) || ( code5 < 0 ) ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"failed to decode data\" ) ;\n goto cleanup2 ;\n }\n IBO = IB ;\n refimage = jbig2_image_new ( ctx , IBO -> width + RDW , IBO -> height + RDH ) ;\n if ( refimage == NULL ) {\n jbig2_image_release ( ctx , IBO ) ;\n if ( params -> SBHUFF ) {\n jbig2_release_huffman_table ( ctx , SBSYMCODES ) ;\n }\n return jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"couldn't allocate reference image\" ) ;\n }\n jbig2_image_clear ( ctx , refimage , 0x00 ) ;\n rparams . GRTEMPLATE = params -> SBRTEMPLATE ;\n rparams . reference = IBO ;\n rparams . DX = ( RDW >> 1 ) + RDX ;\n rparams . DY = ( RDH >> 1 ) + RDY ;\n rparams . TPGRON = 0 ;\n memcpy ( rparams . grat , params -> sbrat , 4 ) ;\n code = jbig2_decode_refinement_region ( ctx , segment , & rparams , as , refimage , GR_stats ) ;\n if ( code < 0 ) {\n jbig2_image_release ( ctx , refimage ) ;\n goto cleanup2 ;\n }\n IB = refimage ;\n jbig2_image_release ( ctx , IBO ) ;\n if ( params -> SBHUFF ) {\n jbig2_huffman_advance ( hs , BMSIZE ) ;\n }\n }\n if ( ( ! params -> TRANSPOSED ) && ( params -> REFCORNER > 1 ) ) {\n CURS += IB -> width - 1 ;\n }\n else if ( ( params -> TRANSPOSED ) && ! ( params -> REFCORNER & 1 ) ) {\n CURS += IB -> height - 1 ;\n }\n S = CURS ;\n if ( ! params -> TRANSPOSED ) {\n switch ( params -> REFCORNER ) {\n case JBIG2_CORNER_TOPLEFT : x = S ;\n y = T ;\n break ;\n case JBIG2_CORNER_TOPRIGHT : x = S - IB -> width + 1 ;\n y = T ;\n break ;\n case JBIG2_CORNER_BOTTOMLEFT : x = S ;\n y = T - IB -> height + 1 ;\n break ;\n default : case JBIG2_CORNER_BOTTOMRIGHT : x = S - IB -> width + 1 ;\n y = T - IB -> height + 1 ;\n break ;\n }\n }\n else {\n switch ( params -> REFCORNER ) {\n case JBIG2_CORNER_TOPLEFT : x = T ;\n y = S ;\n break ;\n case JBIG2_CORNER_TOPRIGHT : x = T - IB -> width + 1 ;\n y = S ;\n break ;\n case JBIG2_CORNER_BOTTOMLEFT : x = T ;\n y = S - IB -> height + 1 ;\n break ;\n default : case JBIG2_CORNER_BOTTOMRIGHT : x = T - IB -> width + 1 ;\n y = S - IB -> height + 1 ;\n break ;\n }\n }\n # ifdef JBIG2_DEBUG jbig2_error ( ctx , JBIG2_SEVERITY_DEBUG , segment -> number , \"composing glyph id %d: %dx%d @ (%d,%d) symbol %d/%d\" , ID , IB -> width , IB -> height , x , y , NINSTANCES + 1 , params -> SBNUMINSTANCES ) ;\n # endif code = jbig2_image_compose ( ctx , image , IB , x , y , params -> SBCOMBOP ) ;\n if ( code < 0 ) {\n jbig2_image_release ( ctx , IB ) ;\n goto cleanup2 ;\n }\n if ( ( ! params -> TRANSPOSED ) && ( params -> REFCORNER < 2 ) ) {\n CURS += IB -> width - 1 ;\n }\n else if ( ( params -> TRANSPOSED ) && ( params -> REFCORNER & 1 ) ) {\n CURS += IB -> height - 1 ;\n }\n NINSTANCES ++ ;\n jbig2_image_release ( ctx , IB ) ;\n }\n }\n cleanup2 : if ( params -> SBHUFF ) {\n jbig2_release_huffman_table ( ctx , SBSYMCODES ) ;\n }\n jbig2_huffman_free ( ctx , hs ) ;\n return code ;\n }"}
{"idx": 14099, "target": 1, "func": "void proto_register_mswsp ( void ) {\n expert_module_t * expert_mswsp = NULL ;\n static hf_register_info hf [ ] = {\n {\n & hf_mswsp_hdr , {\n \"Header\" , \"mswsp.hdr\" , FT_NONE , BASE_NONE , NULL , 0 , \"Message header\" , HFILL }\n }\n , {\n & hf_mswsp_hdr_msg , {\n \"Msg id\" , \"mswsp.hdr.id\" , FT_UINT32 , BASE_HEX , VALS ( msg_ids ) , 0 , \"Message id\" , HFILL }\n }\n , {\n & hf_mswsp_hdr_status , {\n \"Status\" , \"mswsp.hdr.status\" , FT_UINT32 , BASE_HEX , VALS ( dcom_hresult_vals ) , 0 , \"Message Status\" , HFILL }\n }\n , {\n & hf_mswsp_hdr_checksum , {\n \"checksum\" , \"mswsp.hdr.checksum\" , FT_UINT32 , BASE_HEX , NULL , 0 , \"Message Checksum\" , HFILL }\n }\n , {\n & hf_mswsp_hdr_reserved , {\n \"Reserved\" , \"mswsp.hdr.reserved\" , FT_UINT32 , BASE_HEX , NULL , 0 , \"Reserved bytes\" , HFILL }\n }\n , {\n & hf_mswsp_msg , {\n \"msg\" , \"mswsp.msg\" , FT_NONE , BASE_NONE , NULL , 0 , \"Message\" , HFILL }\n }\n , {\n & hf_mswsp_msg_Connect_Version , {\n \"Version\" , \"mswsp.Connect.version\" , FT_UINT32 , BASE_HEX , VALS ( version_vals ) , 0 , \"OS Version\" , HFILL }\n }\n , {\n & hf_mswsp_msg_ConnectIn_ClientIsRemote , {\n \"Remote\" , \"mswsp.ConnectIn.isRemote\" , FT_BOOLEAN , BASE_HEX , NULL , 0 , \"Client is remote\" , HFILL }\n }\n , {\n & hf_mswsp_msg_ConnectIn_Blob1 , {\n \"Size\" , \"mswsp.ConnectIn.propset.size\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Size of PropSet fields\" , HFILL }\n }\n , {\n & hf_mswsp_msg_ConnectIn_MachineName , {\n \"Remote machine\" , \"mswsp.ConnectIn.machine\" , FT_STRINGZ , BASE_NONE , NULL , 0 , \"Name of remote machine\" , HFILL }\n }\n , {\n & hf_mswsp_msg_ConnectIn_UserName , {\n \"User\" , \"mswsp.ConnectIn.user\" , FT_STRINGZ , BASE_NONE , NULL , 0 , \"Name of remote user\" , HFILL }\n }\n , {\n & hf_mswsp_msg_ConnectIn_PropSets_num , {\n \"Num\" , \"mswsp.ConnectIn.propset.num\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Number of Property Sets\" , HFILL }\n }\n , {\n & hf_mswsp_bool_options , {\n \"uBooleanOptions\" , \"mswsp.CPMCreateQuery.RowSetProperties.uBooleanOptions\" , FT_UINT32 , BASE_HEX , NULL , 0 , \"Boolean options\" , HFILL }\n }\n , {\n & hf_mswsp_bool_options_cursor , {\n \"Cursor\" , \"mswsp.CPMCreateQuery.RowSetProperties.uBooleanOptions\" , FT_UINT32 , BASE_HEX , VALS ( cursor_vals ) , 0x0000000007 , \"Cursor Type\" , HFILL }\n }\n , {\n & hf_mswsp_bool_options_async , {\n \"eAsynchronous\" , \"mswsp.CPMCreateQuery.RowSetProperties.uBooleanOptions.eAsyncronous\" , FT_BOOLEAN , 32 , NULL , eAsynchronous , \"The client will not wait for execution completion\" , HFILL }\n }\n , {\n & hf_mswsp_bool_options_firstrows , {\n \"eFirstRows\" , \"mswsp.CPMCreateQuery.RowSetProperties.uBooleanOptions.eFirstRows\" , FT_BOOLEAN , 32 , NULL , eFirstRows , \"Return the first rows encountered, not the best matches.\" , HFILL }\n }\n , {\n & hf_mswsp_bool_options_holdrows , {\n \"eHoldRows\" , \"mswsp.CPMCreateQuery.RowSetProperties.uBooleanOptions.eHoldRows\" , FT_BOOLEAN , 32 , NULL , eHoldRows , \"The server MUST NOT discard rows until the client is done with a query.\" , HFILL }\n }\n , {\n & hf_mswsp_bool_options_chaptered , {\n \"eChaptered\" , \"mswsp.CPMCreateQuery.RowSetProperties.uBooleanOptions.eChaptered\" , FT_BOOLEAN , 32 , NULL , eChaptered , \"The rowset supports chapters.\" , HFILL }\n }\n , {\n & hf_mswsp_bool_options_useci , {\n \"eUseCI\" , \"mswsp.CPMCreateQuery.RowSetProperties.uBooleanOptions.eUseCI\" , FT_BOOLEAN , 32 , NULL , eUseCI , \"Use the inverted index to evaluate content restrictions even if it is out of date.\" , HFILL }\n }\n , {\n & hf_mswsp_bool_options_defertrim , {\n \"eDeferTrimming\" , \"mswsp.CPMCreateQuery.RowSetProperties.uBooleanOptions.eDeferTrimming\" , FT_BOOLEAN , 32 , NULL , eDeferTrimming , \"Defer Non-indexed trimming operations like scoping or security checking which can be expensive.\" , HFILL }\n }\n , {\n & hf_mswsp_bool_options_rowsetevents , {\n \"eEnableRowsetEvents\" , \"mswsp.RowSetProperties.CPMCreateQuery.uBooleanOptions.eEnableRowsetEvents\" , FT_BOOLEAN , 32 , NULL , eEnableRowsetEvents , \"Enables storage of rowset events on the server side.\" , HFILL }\n }\n , {\n & hf_mswsp_bool_options_dontcomputeexpensive , {\n \"eDoNotComputeExpensiveProps\" , \"mswsp.CPMCreateQuery.RowSetProperties.uBooleanOptions.eDoNotComputeExpensiveProps\" , FT_BOOLEAN , 32 , NULL , eDoNotComputeExpensiveProps , \"Prevents computation of expensive properties.\" , HFILL }\n }\n , {\n & hf_mswsp_guid_time_low , {\n \"time-low\" , \"mswsp.guid.time_low\" , FT_UINT32 , BASE_HEX , NULL , 0 , \"time low value\" , HFILL }\n }\n , {\n & hf_mswsp_guid_time_mid , {\n \"time-mid\" , \"mswsp.guid.time_mid\" , FT_UINT16 , BASE_HEX , NULL , 0 , \"time mid value\" , HFILL }\n }\n , {\n & hf_mswsp_guid_time_high , {\n \"time-high\" , \"mswsp.guid.time_high\" , FT_UINT16 , BASE_HEX , NULL , 0 , \"time high value\" , HFILL }\n }\n , {\n & hf_mswsp_guid_time_clock_hi , {\n \"clock_seq_hi_and_reserved\" , \"mswsp.guid.time_clock_high\" , FT_UINT8 , BASE_HEX , NULL , 0 , \"time clock high value\" , HFILL }\n }\n , {\n & hf_mswsp_guid_time_clock_low , {\n \"clock_seq_low\" , \"mswsp.guid.time_clock_low\" , FT_UINT8 , BASE_HEX , NULL , 0 , \"time clock high low\" , HFILL }\n }\n , {\n & hf_mswsp_guid_node , {\n \"node\" , \"mswsp.guid.node\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_lcid , {\n \"lcid\" , \"mswsp.lcid\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_lcid_sortid , {\n \"Sort ID\" , \"mswsp.lcid.sortid\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_lcid_langid , {\n \"Language ID\" , \"mswsp.lcid.langid\" , FT_UINT16 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cscort_column , {\n \"column\" , \"mswsp.csort.column\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cscort_order , {\n \"order\" , \"mswsp.csort.order\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cscort_individual , {\n \"inidvidual\" , \"mswsp.csort.individual\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cscortset_count , {\n \"count\" , \"mswsp.csortset.count\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ctablecolumn_vtype , {\n \"vType\" , \"mswsp.ctablecolumn.vtype\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ctablecolumn_aggused , {\n \"AggreagateUsed\" , \"mswsp.ctablecolumn.aggused\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ctablecolumn_aggtype , {\n \"AggreagateType\" , \"mswsp.ctablecolumn.aggtype\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ctablecolumn_valused , {\n \"ValueUsed\" , \"mswsp.ctablecolumn.valused\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ctablecolumn_valoffset , {\n \"ValueOffset\" , \"mswsp.ctablecolumn.valused\" , FT_UINT16 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ctablecolumn_valsize , {\n \"ValueSize\" , \"mswsp.ctablecolumn.valsize\" , FT_UINT16 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ctablecolumn_statused , {\n \"StatusUsed\" , \"mswsp.ctablecolumn.statused\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ctablecolumn_statoffset , {\n \"StatusOffset\" , \"mswsp.ctablecolumn.statoffset\" , FT_UINT16 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ctablecolumn_lenused , {\n \"LengthUsed\" , \"mswsp.ctablecolumn.lenused\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ctablecolumn_lenoffset , {\n \"LengthOffset\" , \"mswsp.ctablecolumn.lenoffset\" , FT_UINT16 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cfullpropspec_kind , {\n \"ulKind\" , \"mswsp.cfullpropspec.kind\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cfullpropspec_propid , {\n \"propid\" , \"mswsp.cfullpropspec.propid\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cfullpropspec_propname , {\n \"propname\" , \"mswsp.cfullpropspec.propname\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cproprestrict_relop , {\n \"relop\" , \"mswsp.cproprestrict.relop\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ccoercerestrict_value , {\n \"value\" , \"mswsp.ccoercerestrict.value\" , FT_FLOAT , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ccontentrestrict_cc , {\n \"cc\" , \"mswsp.ccontentrestrict.cc\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ccontentrestrict_phrase , {\n \"phrase\" , \"mswsp.ccontentrestrict.phrase\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ccontentrestrict_method , {\n \"method\" , \"mswsp.ccontentrestrict.method\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_natlangrestrict_cc , {\n \"cc\" , \"mswsp.ccontentrestrict.cc\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_natlangrestrict_phrase , {\n \"phrase\" , \"mswsp.ccontentrestrict.phrase\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crestrict_ultype , {\n \"ulType\" , \"mswsp.crestrict.ultype\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crestrict_weight , {\n \"Weight\" , \"mswsp.crestrict.weight\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crestrictarray_count , {\n \"count\" , \"mswsp.crestrictarray.count\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crestrictarray_present , {\n \"present\" , \"mswsp.crestrictarray.present\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cnoderestrict_cnode , {\n \"Weight\" , \"mswsp.cnoderestrict.cnode\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cbasestorvariant_vtype , {\n \"vType\" , \"mswsp.cbasestorvariant.vtype\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cbasestorvariant_vvalue , {\n \"vValue\" , \"mswsp.cbasestorvariant.vvalue\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cbasestorvariant_vdata1 , {\n \"vData1\" , \"mswsp.cbasestorvariant.vdata1\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cbasestorvariant_vdata2 , {\n \"vData2\" , \"mswsp.cbasestorvariant.vdata2\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cbasestorvariant_num , {\n \"num\" , \"mswsp.cbasestorvariant.num\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cbasestorvariant_cdims , {\n \"cDims\" , \"mswsp.cbasestorvariant.cdims\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cbasestorvariant_ffeatures , {\n \"fFeatures\" , \"mswsp.cbasestorvariant.ffeatures\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cbasestorvariant_cbelements , {\n \"cbElements\" , \"mswsp.cbasestorvariant.cbelements\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cbasestorvariant_rgsabound , {\n \"Rgsabound\" , \"mswsp.cbasestorvariant.rgsabound\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cdbcolid_ekind , {\n \"eKind\" , \"mswsp.cdbcolid.ekind\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cdbcolid_ulid , {\n \"ulId\" , \"mswsp.cdbcolid.ulid\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cdbcolid_vstring , {\n \"vString\" , \"mswsp.cdbcolid.vstring\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cdbprop_id , {\n \"Id\" , \"mswsp.cdbprop.id\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cdbprop_options , {\n \"Options\" , \"mswsp.cdbprop.options\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cdbprop_status , {\n \"Status\" , \"mswsp.cdbprop.status\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cdbpropset_cprops , {\n \"cProperties\" , \"mswsp.cdbpropset.cprops\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_rangeboundry_ultype , {\n \"ulType\" , \"mswsp.rangeboundry.ultype\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_rangeboundry_labelpresent , {\n \"labelPresent\" , \"mswsp.rangeboundry.labelpresent\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_mswsp_rangeboundry_cclabel , {\n \"ccLabel\" , \"mswsp.rangeboundry.cclabel\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_rangeboundry_label , {\n \"Label\" , \"mswsp.rangeboundry.label\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crangecategspec_crange , {\n \"cRange\" , \"mswsp.crangecategspec.crange\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ccategspec_type , {\n \"type\" , \"mswsp.ccategspec.type\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_caggregspec_type , {\n \"type\" , \"mswsp.caggregspec.type\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_caggregspec_ccalias , {\n \"ccAlias\" , \"mswsp.caggregspec.ccalias\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_caggregspec_alias , {\n \"Alias\" , \"mswsp.caggregspec.alias\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_caggregspec_idcolumn , {\n \"idColumn\" , \"mswsp.caggregspec.idcolumn\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_caggregset_count , {\n \"count\" , \"mswsp.caggregset.count\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_caggregsortkey_order , {\n \"order\" , \"mswsp.caggregsortkey.order\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_csortaggregset_count , {\n \"count\" , \"mswsp.csortaggregset.count\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cingroupsortaggregset_type , {\n \"Type\" , \"mswsp.cingroupsortaggregset.type\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cingroupsortaggregsets_count , {\n \"count\" , \"mswsp.cingroupsortaggregsets.count\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_categorizationspec_cmaxres , {\n \"cMaxResults\" , \"mswsp.categorizationspec.cmaxres\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crowsetprops_ulmaxopenrows , {\n \"ulMaxOpenRows (ignored)\" , \"mswsp.crowsetprops.ulmaxopenrows\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crowsetprops_ulmemusage , {\n \"ulMemUsage (ignored)\" , \"mswsp.crowsetprops.ulmemusage\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crowsetprops_cmaxresults , {\n \"cMaxResults\" , \"mswsp.crowsetprops.cmaxresults\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crowsetprops_ccmdtimeout , {\n \"cCmdTimeout\" , \"mswsp.crowsetprops.ccmdtimeout\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_cpidmapper_count , {\n \"count\" , \"mswsp.cpidmapper.count\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ccolumngroup_count , {\n \"count\" , \"mswsp.ccolumngroup.count\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ccolumngroup_grouppid , {\n \"groupPid\" , \"mswsp.ccolumngroup.grouppid\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ccolumngroup_pid , {\n \"pid\" , \"mswsp.ccolumngroup.pid\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ccolumngrouparray_count , {\n \"count\" , \"mswsp.ccolumngrouparray.count\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_int32array_value , {\n \"value\" , \"mswsp.int32array.value\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crowseeknext_cskip , {\n \"cskip\" , \"mswsp.crowseeknext.cskip\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crowseekat_bmkoffset , {\n \"bmkoffset\" , \"mswsp.crowseekat.bmkoffset\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crowseekat_skip , {\n \"skip\" , \"mswsp.crowseekat.skip\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crowseekat_hregion , {\n \"hregion\" , \"mswsp.crowseekat.hregion\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crowseekatratio_ulnumerator , {\n \"ulnumerator\" , \"mswsp.crowseekatratio.ulnumerator\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crowseekatratio_uldenominator , {\n \"uldenominator\" , \"mswsp.crowseekatratio.uldenominator\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crowseekatratio_hregion , {\n \"hregion\" , \"mswsp.crowseekatratio.hregion\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crowseekbybookmark_cbookmarks , {\n \"cbookmarks\" , \"mswsp.crowseekbybookmark.cbookmarks\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crowseekbybookmark_maxret , {\n \"maxret\" , \"mswsp.crowseekbybookmark.maxret\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crowvariantinfo_count64 , {\n \"count\" , \"mswsp.crowvariantinfo.count64\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_arrayvector_address64 , {\n \"address of array\" , \"mswsp.arrayvector.address64\" , FT_UINT64 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_crowvariantinfo_count32 , {\n \"count\" , \"mswsp.crowvariantinfo.count32\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_arrayvector_address32 , {\n \"address of array\" , \"mswsp.arrayvector.address\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_rowvariant_item_address64 , {\n \"address\" , \"mswsp.rowvariant.item.address64\" , FT_UINT64 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_rowvariant_item_address32 , {\n \"address\" , \"mswsp.rowvariant.item.address32\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_rowvariant_item_value , {\n \"value\" , \"mswsp.rowvariant.item.value\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_rowvariant_vtype , {\n \"vtype\" , \"mswsp.rowvariant.vtype\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_rowvariant_reserved1 , {\n \"reserved1\" , \"mswsp.rowvariant.reserved1\" , FT_UINT16 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_rowvariant_reserved2 , {\n \"reserved2\" , \"mswsp.rowvariant.reserved2\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ctablecolumn_status , {\n \"status\" , \"mswsp.ctablecolumn.name\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_ctablecolumn_length , {\n \"length\" , \"mswsp.ctablecolumn.length\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcreatequery_size , {\n \"size\" , \"mswsp.cpmcreatequery.size\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcreatequery_ccolumnsetpresent , {\n \"CColumnSetPresent\" , \"mswsp.cpmcreatequery.ccolumnsetpresent\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcreatequery_crestrictionpresent , {\n \"CRestrictionPresent\" , \"mswsp.cpmcreatequery.crestrictionpresent\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcreatequery_csortpresent , {\n \"CSortPresent\" , \"mswsp.cpmcreatequery.csortpresent\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcreatequery_ccategpresent , {\n \"CCategorizationSetPresent\" , \"mswsp.cpmcreatequery.ccategpresent\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcreatequery_ccateg_count , {\n \"count\" , \"mswsp.cpmcreatequery.ccateg.count\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcreatequery_trueseq , {\n \"TrueSequential\" , \"mswsp.cpmcreatequery.trueseq\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcreatequery_workid , {\n \"WorkId\" , \"mswsp.cpmcreatequery.trueseq\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcreatequery_cursors , {\n \"Cursors\" , \"mswsp.cpmcreatequery.cursors\" , FT_BYTES , SEP_SPACE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrows_hcursor , {\n \"hCursor\" , \"mswsp.msg.cpmgetrows.hcursor\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrows_rowstotransfer , {\n \"cRowsToTransfer\" , \"mswsp.msg.cpmgetrows.rowstotransfer\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrows_rowwidth , {\n \"cbRowWidth\" , \"mswsp.msg.cpmgetrows.rowswidth\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrows_cbseek , {\n \"cbSeek\" , \"mswsp.msg.cpmgetrows.cbseek\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrows_cbreserved , {\n \"cbReserved\" , \"mswsp.msg.cpmgetrows.cbreserved\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrows_cbreadbuffer , {\n \"cbReadBuffer\" , \"mswsp.msg.cpmgetrows.cbreadbuffer\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrows_ulclientbase , {\n \"ulClientBase\" , \"mswsp.msg.cpmgetrows.ulclientbase\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrows_fbwdfetch , {\n \"fBwdFetch\" , \"mswsp.msg.cpmgetrows.fbwdfetch\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrows_etype , {\n \"eType\" , \"mswsp.msg.cpmgetrows.etype\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrows_chapt , {\n \"chapt\" , \"mswsp.msg.cpmgetrows.chapt\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrows_crowsreturned , {\n \"cRowsReturned\" , \"mswsp.msg.cpmgetrows.crowsreturned\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmratiofinished_hcursor , {\n \"hCursor\" , \"mswsp.msg.cpmratiofinished_hcursor\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmratiofinished_fquick , {\n \"fQuick\" , \"mswsp.msg.cpmratiofinished_fquick\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmratiofinished_ulnumerator , {\n \"ulNumerator\" , \"mswsp.msg.cpmratiofinished_ulnumerator\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmratiofinished_uldenominator , {\n \"ulDenominator\" , \"mswsp.msg.cpmratiofinished_uldenominator\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmratiofinished_crows , {\n \"cRows\" , \"mswsp.msg.cpmratiofinished_crows\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmratiofinished_fnewrows , {\n \"fNewRows\" , \"mswsp.msg.cpmratiofinished_fnewrows\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcomparebmk_hcursor , {\n \"hCursor\" , \"mswsp.msg.cpmcomparebmk.hcursor\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcomparebmk_chapt , {\n \"chapt\" , \"mswsp.msg.cpmcomparebmk.chapt\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcomparebmk_bmkfirst , {\n \"bmkFirst\" , \"mswsp.msg.cpmcomparebmk.bmkfirst\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcomparebmk_bmksecond , {\n \"bmkSecond\" , \"mswsp.msg.cpmcomparebmk.bmksecond\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcomparebmk_dwcomparison , {\n \"dwComparison\" , \"mswsp.msg.cpmcomparebmk.dwcomparison\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetapproxpos_hcursor , {\n \"hCursor\" , \"mswsp.msg.cpmgetapproxpos.hcursor\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetapproxpos_chapt , {\n \"chapt\" , \"mswsp.msg.cpmgetapproxpos.chapt\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetapproxpos_bmk , {\n \"bmk\" , \"mswsp.msg.cpmgetapproxpos.bmk\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetapproxpos_numerator , {\n \"numerator\" , \"mswsp.msg.cpmgetapproxpos.numerator\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetapproxpos_denominator , {\n \"denominator\" , \"mswsp.msg.cpmgetapproxpos.denominator\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmsetbinding_hcursor , {\n \"hCursor\" , \"mswsp.msg.cpmsetbinding.hcursor\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmsetbinding_cbrow , {\n \"cBrow\" , \"mswsp.msg.cpmsetbinding.cbrow\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmsetbinding_desc , {\n \"cbBindingDesc\" , \"mswsp.msg.cpmsetbinding.desc\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmsetbinding_dummy , {\n \"dummy\" , \"mswsp.msg.cpmsetbinding.dummy\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmsetbinding_ccolumns , {\n \"cColumns\" , \"mswsp.msg.cpmsetbinding.ccolumns\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmsetbinding_acolumns , {\n \"aColumns\" , \"mswsp.msg.cpmsetbinding.acolumns\" , FT_BYTES , SEP_DOT , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmsendnotify_watchnotify , {\n \"watchNotify\" , \"mswsp.msg.cpmsendnotify.watchnotify\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetquerystatus_hcursor , {\n \"hCursor\" , \"mswsp.msg.cpmquerystatus.hcursor\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetquerystatus_qstatus , {\n \"QStatus\" , \"mswsp.msg.cpmquerystatus.qstatus\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcistate_cbstruct , {\n \"cbStruct\" , \"mswsp.msg.cpmcistate.cbstruct\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcistate_cwordlist , {\n \"cbWordList\" , \"mswsp.msg.cpmcistate.cbwordlist\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcistate_cpersistindex , {\n \"cbPersistentIndex\" , \"mswsp.msg.cpmcistate.cbpersistindex\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcistate_cqueries , {\n \"cQueries\" , \"mswsp.msg.cpmcistate.cqueries\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcistate_cfreshtest , {\n \"cFreshTest\" , \"mswsp.msg.cpmcistate.cfreshtest\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcistate_dwmergeprogress , {\n \"dwMergeProgress\" , \"mswsp.msg.cpmcistate.dwmergeprogress\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcistate_estate , {\n \"eState\" , \"mswsp.msg.cpmcistate.estate\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcistate_cfiltereddocs , {\n \"cFilteredDocuments\" , \"mswsp.msg.cpmcistate.cfiltereddocs\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcistate_ctotaldocs , {\n \"cTotalDocuments\" , \"mswsp.msg.cpmcistate.ctotaldocs\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcistate_cpendingscans , {\n \"cPendingScans\" , \"mswsp.msg.cpmcistate.cpendingscans\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcistate_dwindexsize , {\n \"dwIndexSize\" , \"mswsp.msg.cpmcistate.dwindexsize\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcistate_cuniquekeys , {\n \"cUniqueKeys\" , \"mswsp.msg.cpmcistate.cuniquekeys\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcistate_csecqdocuments , {\n \"cSecQDocuments\" , \"mswsp.msg.cpmcistate.csecqdocuments\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmcistate_dwpropcachesize , {\n \"dwPropCacheSize\" , \"mswsp.msg.cpmcistate.dwpropcachesize\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmfetchvalue_wid , {\n \"wid\" , \"mswsp.msg.cpmfetchvalue.wid\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmfetchvalue_cbsofar , {\n \"cbSoFar\" , \"mswsp.msg.cpmfetchvalue.cbsofar\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmfetchvalue_cbpropspec , {\n \"cbPropSpec\" , \"mswsp.msg.cpmfetchvalue.cbpropspec\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmfetchvalue_cbchunk , {\n \"cbChunk\" , \"mswsp.msg.cpmfetchvalue.chunk\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmfetchvalue_cbvalue , {\n \"cbValue\" , \"mswsp.msg.cpmfetchvalue.cbvalue\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmfetchvalue_fmoreexists , {\n \"fMoreExists\" , \"mswsp.msg.cpmfetchvalue.fmoreexists\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmfetchvalue_fvalueexists , {\n \"fValueExists\" , \"mswsp.msg.cpmfetchvalue.fvalueexists\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmfetchvalue_vvalue , {\n \"vvalue\" , \"mswsp.msg.cpmfetchvalue.vvalue\" , FT_BYTES , SEP_SPACE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmquerystatusex_qstatus , {\n \"qStatus\" , \"mswsp.msg.cpmquerystatusex.qstatus\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmquerystatusex_hcursor , {\n \"hCursor\" , \"mswsp.msg.cpmquerystatusex.hcursor\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmquerystatusex_bmk , {\n \"bmk\" , \"mswsp.msg.cpmquerystatusex.bmk\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmquerystatusex_cfiltereddocs , {\n \"cFilteredDocuments\" , \"mswsp.msg.cpmquerystatusex.cfiltereddocs\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmquerystatusex_cdocstofilter , {\n \"cDocumentsToFilter\" , \"mswsp.msg.cpmquerystatusex.cdocstofilter\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmquerystatusex_dwratiodenom , {\n \"dwRatioFinishedDenomenator\" , \"mswsp.msg.cpmquerystatusex.dwratiodenom\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmquerystatusex_dwrationumer , {\n \"dwRatioFinishedNumerator\" , \"mswsp.msg.cpmquerystatusex.dwrationumer\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmquerystatusex_irowbmk , {\n \"iRowBmk\" , \"mswsp.msg.cpmquerystatusex.irowbmk\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmquerystatusex_crowstotal , {\n \"cRowsTotal\" , \"mswsp.msg.cpmquerystatusex.crowstotal\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmquerystatusex_maxrank , {\n \"maxRank\" , \"mswsp.msg.cpmquerystatusex.maxrank\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmquerystatusex_cresultsfound , {\n \"cResultsFound\" , \"mswsp.msg.cpmquerystatusex.cresultsfound\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmquerystatusex_whereid , {\n \"whereId\" , \"mswsp.msg.cpmquerystatusex.whereid\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmrestartposition_hcursor , {\n \"hCursor\" , \"mswsp.msg.cpmrestartposition.hcursor\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmrestartposition_chapt , {\n \"chapt\" , \"mswsp.msg.cpmrestartposition.chapt\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrowsetnotify_wid , {\n \"wid\" , \"mswsp.msg.cpmgetrowsetnotify.wid\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrowsetnotify_moreevents , {\n \"moreEvents\" , \"mswsp.msg.cpmgetrowsetnotify.moreevents\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrowsetnotify_eventtype , {\n \"eventType\" , \"mswsp.msg.cpmgetrowsetnotify.eventType\" , FT_UINT8 , BASE_DEC , NULL , 0xFE , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrowsetnotify_rowsetitemstate , {\n \"rowSetItemState\" , \"mswsp.msg.cpmgetrowsetnotify.rowsetitemstate\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrowsetnotify_changeditemstate , {\n \"changedItemState\" , \"mswsp.msg.cpmgetrowsetnotify.changeditemState\" , FT_UINT8 , BASE_DEC , NULL , 0 , 0 , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrowsetnotify_rowsetevent , {\n \"rowSetEvent\" , \"mswsp.msg.cpmgetrowsetnotify.rowsetevent\" , FT_UINT8 , BASE_DEC , NULL , 0 , 0 , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrowsetnotify_rowseteventdata1 , {\n \"rowSetEventdata1\" , \"mswsp.msg.cpmgetrowsetnotify.rowseteventdata1\" , FT_UINT64 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmgetrowsetnotify_rowseteventdata2 , {\n \"rowSetEventdata2\" , \"mswsp.msg.cpmgetrowsetnotify.rowseteventdata2\" , FT_UINT64 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmfindindices_cwids , {\n \"cWids\" , \"mswsp.msg.cpmfindindices.cwids\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmfindindices_cdepthprev , {\n \"cDepthPrev\" , \"mswsp.msg.cpmfindindices.cdepthprev\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmfindindices_cdepthnext , {\n \"cDepthNext\" , \"mswsp.msg.cpmfindindices.cdepthnext\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmsetscopeprioritization_priority , {\n \"priority\" , \"mswsp.msg.cpmsetscopeprioritization.priority\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmsetscopeprioritization_eventfreq , {\n \"eventFrequency\" , \"mswsp.msg.cpmsetscopeprioritization.eventfreq\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmsetscopestatisics_dwindexitems , {\n \"dwIndexedItems\" , \"mswsp.msg.cpmsetscopestatistics.dwindexitems\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmsetscopestatisics_dwoutstandingadds , {\n \"dwOutstandingAdds\" , \"mswsp.msg.cpmsetscopestatistics.dwoutstandingadds\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mswsp_msg_cpmsetscopestatisics_dwoutstandingmodifies , {\n \"dwOutstandingModifies\" , \"mswsp.msg.cpmsetscopestatistics.dwoutstandingmodifies\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n }\n ;\n static gint * ett [ ] = {\n & ett_mswsp , & ett_mswsp_hdr , & ett_mswsp_msg , & ett_mswsp_pad , & ett_mswsp_property_restriction , & ett_CRestrictionArray , & ett_CBaseStorageVariant , & ett_CBaseStorageVariant_Vector , & ett_CBaseStorageVariant_Array , & ett_CDbColId , & ett_GUID , & ett_CDbProp , & ett_CDbPropSet , & ett_CDbPropSet_Array , & ett_CRestriction , & ett_CNodeRestriction , & ett_CPropertyRestriction , & ett_CCoercionRestriction , & ett_CContentRestriction , & ett_RANGEBOUNDARY , & ett_CRangeCategSpec , & ett_CCategSpec , & ett_CAggregSpec , & ett_CAggregSet , & ett_CCategorizationSpec , & ett_CAggregSortKey , & ett_CSortAggregSet , & ett_CInGroupSortAggregSet , & ett_CInGroupSortAggregSets , & ett_CRowsetProperties , & ett_CFullPropSpec , & ett_CPidMapper , & ett_CSort , & ett_CSortSet , & ett_CNatLanguageRestriction , & ett_CColumnGroup , & ett_CColumnGroupArray , & ett_LCID , & ett_CTableColumn , & ett_Array , & ett_SeekDescription , & ett_CRowsSeekNext , & ett_CRowsSeekAt , & ett_CRowsSeekAtRatio , & ett_CRowsSeekByBookmark , & ett_GetRowsRow , & ett_GetRowsColumn , & ett_CRowVariant , & ett_CRowVariant_Vector , & ett_mswsp_bool_options , & ett_mswsp_uin32_array , & ett_mswsp_msg_padding , & ett_mswsp_msg_creusewhere }\n ;\n static ei_register_info ei [ ] = {\n {\n & ei_missing_msg_context , {\n \"mswsp.msg.cpmgetrows.missing_msg_context\" , PI_SEQUENCE , PI_WARN , \"previous messages needed for context not captured\" , EXPFILL }\n }\n , {\n & ei_mswsp_msg_cpmsetbinding_ccolumns , {\n \"mswsp.msg.cpmsetbinding.ccolumns.invalude\" , PI_PROTOCOL , PI_WARN , \"Invalid number of cColumns for packet\" , EXPFILL }\n }\n }\n ;\n int i ;\n proto_mswsp = proto_register_protocol ( \"Windows Search Protocol\" , \"MS-WSP\" , \"mswsp\" ) ;\n proto_register_field_array ( proto_mswsp , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n expert_mswsp = expert_register_protocol ( proto_mswsp ) ;\n expert_register_field_array ( expert_mswsp , ei , array_length ( ei ) ) ;\n for ( i = 0 ;\n i < ( int ) array_length ( GuidPropertySet ) ;\n i ++ ) {\n guids_add_guid ( & GuidPropertySet [ i ] . guid , GuidPropertySet [ i ] . def ) ;\n }\n }"}
{"idx": 14100, "target": 0, "func": "static int qemuMonitorJSONCommand ( qemuMonitorPtr mon , virJSONValuePtr cmd , virJSONValuePtr * reply ) {\n return qemuMonitorJSONCommandWithFd ( mon , cmd , - 1 , reply ) ;\n }"}
{"idx": 14101, "target": 0, "func": "static const char * ultag_getExtensionValue ( const ULanguageTag * langtag , int32_t idx ) {\n const char * val = NULL ;\n ExtensionListEntry * cur = langtag -> extensions ;\n int32_t i = 0 ;\n while ( cur ) {\n if ( i == idx ) {\n val = cur -> value ;\n break ;\n }\n cur = cur -> next ;\n i ++ ;\n }\n return val ;\n }"}
{"idx": 14102, "target": 0, "func": "static void fts_parse_mail_header ( struct fts_mail_build_context * ctx , const struct message_block * raw_block ) {\n const struct message_header_line * hdr = raw_block -> hdr ;\n if ( strcasecmp ( hdr -> name , \"Content-Type\" ) == 0 ) fts_build_parse_content_type ( ctx , hdr ) ;\n else if ( strcasecmp ( hdr -> name , \"Content-Disposition\" ) == 0 ) fts_build_parse_content_disposition ( ctx , hdr ) ;\n }"}
{"idx": 14103, "target": 0, "func": "static inline int decode_vlc_codeword ( GetBitContext * gb , unsigned codebook ) {\n unsigned int rice_order , exp_order , switch_bits ;\n unsigned int buf , code ;\n int log , prefix_len , len ;\n OPEN_READER ( re , gb ) ;\n UPDATE_CACHE ( re , gb ) ;\n buf = GET_CACHE ( re , gb ) ;\n switch_bits = ( codebook & 3 ) + 1 ;\n rice_order = codebook >> 5 ;\n exp_order = ( codebook >> 2 ) & 7 ;\n log = 31 - av_log2 ( buf ) ;\n if ( log < switch_bits ) {\n if ( ! rice_order ) {\n code = log ;\n LAST_SKIP_BITS ( re , gb , log + 1 ) ;\n }\n else {\n prefix_len = log + 1 ;\n code = ( log << rice_order ) + NEG_USR32 ( buf << prefix_len , rice_order ) ;\n LAST_SKIP_BITS ( re , gb , prefix_len + rice_order ) ;\n }\n }\n else {\n len = ( log << 1 ) - switch_bits + exp_order + 1 ;\n code = NEG_USR32 ( buf , len ) - ( 1 << exp_order ) + ( switch_bits << rice_order ) ;\n LAST_SKIP_BITS ( re , gb , len ) ;\n }\n CLOSE_READER ( re , gb ) ;\n return code ;\n }"}
{"idx": 14104, "target": 0, "func": "static int auth_server_input_ok ( struct auth_server_connection * conn , const char * const * args ) {\n struct auth_client_request * request ;\n if ( auth_server_lookup_request ( conn , args [ 0 ] , TRUE , & request ) < 0 ) return - 1 ;\n auth_client_request_server_input ( request , AUTH_REQUEST_STATUS_OK , args + 1 ) ;\n return 0 ;\n }"}
{"idx": 14105, "target": 0, "func": "static int dissect_btgatt_microbit_magnetometer_data ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , void * data ) {\n btatt_data_t * att_data = ( btatt_data_t * ) data ;\n proto_item * sub_item ;\n proto_tree * sub_tree ;\n gdouble x_axis , y_axis , z_axis ;\n gint offset = 0 ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) return - 1 ;\n x_axis = ( gdouble ) ( gint ) tvb_get_gint16 ( tvb , offset , ENC_LITTLE_ENDIAN ) / 1000.0 ;\n y_axis = ( gdouble ) ( gint ) tvb_get_gint16 ( tvb , offset + 2 , ENC_LITTLE_ENDIAN ) / 1000.0 ;\n z_axis = ( gdouble ) ( gint ) tvb_get_gint16 ( tvb , offset + 4 , ENC_LITTLE_ENDIAN ) / 1000.0 ;\n sub_item = proto_tree_add_item ( tree , hf_gatt_microbit_magnetometer_data , tvb , 0 , tvb_captured_length ( tvb ) , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btgatt_microbit_magnetometer ) ;\n proto_item_append_text ( sub_item , \" (X: %f, Y: %f, Z: %f)\" , x_axis , y_axis , z_axis ) ;\n proto_tree_add_double ( sub_tree , hf_gatt_microbit_magnetometer_x , tvb , offset , 2 , x_axis ) ;\n offset += 2 ;\n proto_tree_add_double ( sub_tree , hf_gatt_microbit_magnetometer_y , tvb , offset , 2 , y_axis ) ;\n offset += 2 ;\n proto_tree_add_double ( sub_tree , hf_gatt_microbit_magnetometer_z , tvb , offset , 2 , z_axis ) ;\n offset += 2 ;\n return offset ;\n }"}
{"idx": 14106, "target": 0, "func": "static int dsa_priv_print ( BIO * bp , const EVP_PKEY * pkey , int indent , ASN1_PCTX * ctx ) {\n return do_dsa_print ( bp , pkey -> pkey . dsa , indent , 2 ) ;\n }"}
{"idx": 14107, "target": 0, "func": "void e1000e_core_reset ( E1000ECore * core ) {\n int i ;\n timer_del ( core -> autoneg_timer ) ;\n e1000e_intrmgr_reset ( core ) ;\n memset ( core -> phy , 0 , sizeof core -> phy ) ;\n memmove ( core -> phy , e1000e_phy_reg_init , sizeof e1000e_phy_reg_init ) ;\n memset ( core -> mac , 0 , sizeof core -> mac ) ;\n memmove ( core -> mac , e1000e_mac_reg_init , sizeof e1000e_mac_reg_init ) ;\n core -> rxbuf_min_shift = 1 + E1000_RING_DESC_LEN_SHIFT ;\n if ( qemu_get_queue ( core -> owner_nic ) -> link_down ) {\n e1000e_link_down ( core ) ;\n }\n e1000x_reset_mac_addr ( core -> owner_nic , core -> mac , core -> permanent_mac ) ;\n for ( i = 0 ;\n i < ARRAY_SIZE ( core -> tx ) ;\n i ++ ) {\n net_tx_pkt_reset ( core -> tx [ i ] . tx_pkt ) ;\n memset ( & core -> tx [ i ] . props , 0 , sizeof ( core -> tx [ i ] . props ) ) ;\n core -> tx [ i ] . skip_cp = false ;\n }\n }"}
{"idx": 14108, "target": 0, "func": "static byte * i_alloc_byte_array ( gs_memory_t * mem , uint num_elements , uint elt_size , client_name_t cname ) {\n gs_ref_memory_t * const imem = ( gs_ref_memory_t * ) mem ;\n obj_header_t * obj ;\n ulong lsize ;\n # ifdef MEMENTO if ( Memento_failThisEvent ( ) ) return NULL ;\n # endif if ( alloc_array_check_size ( num_elements , elt_size , & lsize ) == false ) return NULL ;\n obj = alloc_obj ( imem , lsize , & st_bytes , ALLOC_DIRECT , cname ) ;\n if_debug6m ( 'A' , mem , \"[a%d:+b.]%s -bytes-*(%lu=%u*%u) = 0x%lx\\n\" , alloc_trace_space ( imem ) , client_name_string ( cname ) , ( ulong ) num_elements * elt_size , num_elements , elt_size , ( ulong ) obj ) ;\n return ( byte * ) obj ;\n }"}
{"idx": 14109, "target": 0, "func": "static void _slurm_rpc_sib_msg ( uint32_t uid , slurm_msg_t * msg ) {\n if ( ! msg -> conn ) {\n error ( \"Security violation, SIB_SUBMISSION RPC from uid=%d\" , uid ) ;\n slurm_send_rc_msg ( msg , ESLURM_ACCESS_DENIED ) ;\n return ;\n }\n fed_mgr_q_sib_msg ( msg , uid ) ;\n }"}
{"idx": 14110, "target": 0, "func": "static int run_command ( char * cmd , DYNAMIC_STRING * ds_res ) {\n char buf [ 512 ] = {\n 0 }\n ;\n FILE * res_file ;\n int error ;\n DBUG_ENTER ( \"run_command\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"cmd: %s\" , cmd ) ) ;\n if ( ! ( res_file = popen ( cmd , \"r\" ) ) ) {\n report_or_die ( \"popen(\\\"%s\\\", \\\"r\\\") failed\" , cmd ) ;\n return - 1 ;\n }\n while ( fgets ( buf , sizeof ( buf ) , res_file ) ) {\n DBUG_PRINT ( \"info\" , ( \"buf: %s\" , buf ) ) ;\n if ( ds_res ) {\n dynstr_append ( ds_res , buf ) ;\n }\n else {\n fprintf ( stdout , \"%s\" , buf ) ;\n }\n }\n error = pclose ( res_file ) ;\n DBUG_RETURN ( WEXITSTATUS ( error ) ) ;\n }"}
{"idx": 14111, "target": 0, "func": "static int rsvp_conversation_packet ( void * pct , packet_info * pinfo , epan_dissect_t * edt _U_ , const void * vip ) {\n conv_hash_t * hash = ( conv_hash_t * ) pct ;\n const rsvp_conversation_info * rsvph = ( const rsvp_conversation_info * ) vip ;\n add_conversation_table_data ( hash , & rsvph -> source , & rsvph -> destination , 0 , 0 , 1 , pinfo -> fd -> pkt_len , & pinfo -> rel_ts , & pinfo -> fd -> abs_ts , & rsvp_ct_dissector_info , PT_NONE ) ;\n return 1 ;\n }"}
{"idx": 14112, "target": 0, "func": "static fz_font * xps_lookup_font ( xps_document * doc , char * name ) {\n xps_font_cache * cache ;\n for ( cache = doc -> font_table ;\n cache ;\n cache = cache -> next ) if ( ! xps_strcasecmp ( cache -> name , name ) ) return fz_keep_font ( doc -> ctx , cache -> font ) ;\n return NULL ;\n }"}
{"idx": 14113, "target": 0, "func": "int gs_main_finit ( gs_main_instance * minst , int exit_status , int code ) {\n i_ctx_t * i_ctx_p = minst -> i_ctx_p ;\n gs_dual_memory_t dmem = {\n 0 }\n ;\n int exit_code ;\n ref error_object ;\n char * tempnames ;\n tempnames = gs_main_tempnames ( minst ) ;\n gs_finit_push_systemdict ( i_ctx_p ) ;\n if ( minst -> init_done >= 2 ) {\n gs_main_run_string ( minst , \"/BGPrint /GetDeviceParam .special_op \\ {\n{\n <</BeginPage {\npop}\n /EndPage {\npop pop //false }\n \\ /BGPrint false /NumRenderingThreads 0>> setpagedevice}\n if}\n if \\ serverdict /.jobsavelevel get 0 eq {\n/quit}\n {\n/stop}\n ifelse \\ .systemvar exec\" , 0 , & exit_code , & error_object ) ;\n }\n if ( minst -> init_done >= 2 ) {\n int code = 0 ;\n if ( idmemory -> reclaim != 0 ) {\n code = interp_reclaim ( & minst -> i_ctx_p , avm_global ) ;\n if ( code < 0 ) {\n ref error_name ;\n if ( tempnames ) free ( tempnames ) ;\n if ( gs_errorname ( i_ctx_p , code , & error_name ) >= 0 ) {\n char err_str [ 32 ] = {\n 0 }\n ;\n name_string_ref ( imemory , & error_name , & error_name ) ;\n memcpy ( err_str , error_name . value . const_bytes , r_size ( & error_name ) ) ;\n emprintf2 ( imemory , \"ERROR: %s (%d) reclaiming the memory while the interpreter finalization.\\n\" , err_str , code ) ;\n }\n else {\n emprintf1 ( imemory , \"UNKNOWN ERROR %d reclaiming the memory while the interpreter finalization.\\n\" , code ) ;\n }\n # ifdef MEMENTO_SQUEEZE_BUILD if ( code != gs_error_VMerror ) return gs_error_Fatal ;\n # else return gs_error_Fatal ;\n # endif }\n i_ctx_p = minst -> i_ctx_p ;\n }\n if ( i_ctx_p -> pgs != NULL && i_ctx_p -> pgs -> device != NULL && gx_device_is_null ( i_ctx_p -> pgs -> device ) ) {\n int code = gs_grestoreall ( i_ctx_p -> pgs ) ;\n if ( code < 0 ) return_error ( gs_error_Fatal ) ;\n }\n if ( i_ctx_p -> pgs != NULL && i_ctx_p -> pgs -> device != NULL ) {\n gx_device * pdev = i_ctx_p -> pgs -> device ;\n const char * dname = pdev -> dname ;\n rc_adjust ( pdev , 1 , \"gs_main_finit\" ) ;\n gs_main_run_string ( minst , \".uninstallpagedevice serverdict \\ /.jobsavelevel get 0 eq {\n/quit}\n {\n/stop}\n ifelse .systemvar exec\" , 0 , & exit_code , & error_object ) ;\n code = gs_closedevice ( pdev ) ;\n if ( code < 0 ) {\n ref error_name ;\n if ( gs_errorname ( i_ctx_p , code , & error_name ) >= 0 ) {\n char err_str [ 32 ] = {\n 0 }\n ;\n name_string_ref ( imemory , & error_name , & error_name ) ;\n memcpy ( err_str , error_name . value . const_bytes , r_size ( & error_name ) ) ;\n emprintf3 ( imemory , \"ERROR: %s (%d) on closing %s device.\\n\" , err_str , code , dname ) ;\n }\n else {\n emprintf2 ( imemory , \"UNKNOWN ERROR %d closing %s device.\\n\" , code , dname ) ;\n }\n }\n rc_decrement ( pdev , \"gs_main_finit\" ) ;\n if ( exit_status == 0 || exit_status == gs_error_Quit ) exit_status = code ;\n }\n gs_main_run_string ( minst , \"(%stdout) (w) file closefile (%stderr) (w) file closefile \\ serverdict /.jobsavelevel get 0 eq {\n/quit}\n {\n/stop}\n ifelse .systemexec \\ systemdict /savedinitialgstate .forceundef\" , 0 , & exit_code , & error_object ) ;\n }\n gp_readline_finit ( minst -> readline_data ) ;\n i_ctx_p = minst -> i_ctx_p ;\n if ( gs_debug_c ( ':' ) ) {\n print_resource_usage ( minst , & gs_imemory , \"Final\" ) ;\n dmprintf1 ( minst -> heap , \"%% Exiting instance 0x%p\\n\" , minst ) ;\n }\n if ( minst -> init_done >= 1 ) {\n gs_memory_t * mem_raw = i_ctx_p -> memory . current -> non_gc_memory ;\n i_plugin_holder * h = i_ctx_p -> plugin_list ;\n dmem = * idmemory ;\n code = alloc_restore_all ( i_ctx_p ) ;\n if ( code < 0 ) emprintf1 ( mem_raw , \"ERROR %d while the final restore. See gs/psi/ierrors.h for code explanation.\\n\" , code ) ;\n i_iodev_finit ( & dmem ) ;\n i_plugin_finit ( mem_raw , h ) ;\n }\n if ( minst -> heap -> gs_lib_ctx -> fstdout2 && ( minst -> heap -> gs_lib_ctx -> fstdout2 != minst -> heap -> gs_lib_ctx -> fstdout ) && ( minst -> heap -> gs_lib_ctx -> fstdout2 != minst -> heap -> gs_lib_ctx -> fstderr ) ) {\n fclose ( minst -> heap -> gs_lib_ctx -> fstdout2 ) ;\n minst -> heap -> gs_lib_ctx -> fstdout2 = ( FILE * ) NULL ;\n }\n minst -> heap -> gs_lib_ctx -> stdout_is_redirected = 0 ;\n minst -> heap -> gs_lib_ctx -> stdout_to_stderr = 0 ;\n if ( tempnames ) {\n char * p = tempnames ;\n while ( * p ) {\n unlink ( p ) ;\n p += strlen ( p ) + 1 ;\n }\n free ( tempnames ) ;\n }\n gs_lib_finit ( exit_status , code , minst -> heap ) ;\n gs_free_object ( minst -> heap , minst -> lib_path . container . value . refs , \"lib_path array\" ) ;\n ialloc_finit ( & dmem ) ;\n return exit_status ;\n }"}
{"idx": 14114, "target": 0, "func": "int tm_taskinfo ( tm_node_id node , tm_task_id * tid_list , int list_size , int * ntasks , tm_event_t * event ) {\n struct taskhold * thold ;\n struct tcp_chan * chan = NULL ;\n if ( ! init_done ) return TM_BADINIT ;\n if ( tid_list == NULL || list_size == 0 || ntasks == NULL ) return TM_EBADENVIRONMENT ;\n * event = new_event ( ) ;\n if ( startcom ( TM_TASKS , * event , & chan ) != DIS_SUCCESS ) return TM_ESYSTEM ;\n if ( diswsi ( chan , node ) != DIS_SUCCESS ) {\n DIS_tcp_cleanup ( chan ) ;\n return TM_ESYSTEM ;\n }\n DIS_tcp_wflush ( chan ) ;\n DIS_tcp_cleanup ( chan ) ;\n thold = ( struct taskhold * ) calloc ( 1 , sizeof ( struct taskhold ) ) ;\n assert ( thold != NULL ) ;\n thold -> list = tid_list ;\n thold -> size = list_size ;\n thold -> ntasks = ntasks ;\n add_event ( * event , node , TM_TASKS , ( void * ) thold ) ;\n return TM_SUCCESS ;\n }"}
{"idx": 14115, "target": 0, "func": "static int ptx_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n const uint8_t * buf_end = avpkt -> data + avpkt -> size ;\n AVFrame * const p = data ;\n unsigned int offset , w , h , y , stride , bytes_per_pixel ;\n int ret ;\n uint8_t * ptr ;\n if ( buf_end - buf < 14 ) return AVERROR_INVALIDDATA ;\n offset = AV_RL16 ( buf ) ;\n w = AV_RL16 ( buf + 8 ) ;\n h = AV_RL16 ( buf + 10 ) ;\n bytes_per_pixel = AV_RL16 ( buf + 12 ) >> 3 ;\n if ( bytes_per_pixel != 2 ) {\n av_log_ask_for_sample ( avctx , \"Image format is not RGB15.\\n\" ) ;\n return AVERROR_PATCHWELCOME ;\n }\n avctx -> pix_fmt = AV_PIX_FMT_RGB555 ;\n if ( buf_end - buf < offset ) return AVERROR_INVALIDDATA ;\n if ( offset != 0x2c ) av_log_ask_for_sample ( avctx , \"offset != 0x2c\\n\" ) ;\n buf += offset ;\n if ( ( ret = av_image_check_size ( w , h , 0 , avctx ) ) < 0 ) return ret ;\n if ( w != avctx -> width || h != avctx -> height ) avcodec_set_dimensions ( avctx , w , h ) ;\n if ( ( ret = ff_get_buffer ( avctx , p , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n p -> pict_type = AV_PICTURE_TYPE_I ;\n ptr = p -> data [ 0 ] ;\n stride = p -> linesize [ 0 ] ;\n for ( y = 0 ;\n y < h && buf_end - buf >= w * bytes_per_pixel ;\n y ++ ) {\n # if HAVE_BIGENDIAN unsigned int x ;\n for ( x = 0 ;\n x < w * bytes_per_pixel ;\n x += bytes_per_pixel ) AV_WN16 ( ptr + x , AV_RL16 ( buf + x ) ) ;\n # else memcpy ( ptr , buf , w * bytes_per_pixel ) ;\n # endif ptr += stride ;\n buf += w * bytes_per_pixel ;\n }\n * got_frame = 1 ;\n if ( y < h ) {\n av_log ( avctx , AV_LOG_WARNING , \"incomplete packet\\n\" ) ;\n return avpkt -> size ;\n }\n return offset + w * h * bytes_per_pixel ;\n }"}
{"idx": 14116, "target": 0, "func": "int EVP_CipherInit ( EVP_CIPHER_CTX * ctx , const EVP_CIPHER * cipher , const unsigned char * key , const unsigned char * iv , int enc ) {\n EVP_CIPHER_CTX_reset ( ctx ) ;\n return EVP_CipherInit_ex ( ctx , cipher , NULL , key , iv , enc ) ;\n }"}
{"idx": 14117, "target": 0, "func": "void vp8_de_noise ( VP8_COMMON * cm , YV12_BUFFER_CONFIG * source , YV12_BUFFER_CONFIG * post , int q , int low_var_thresh , int flag , int uvfilter ) {\n int mbr ;\n double level = 6.0e-05 * q * q * q - .0067 * q * q + .306 * q + .0065 ;\n int ppl = ( int ) ( level + .5 ) ;\n int mb_rows = cm -> mb_rows ;\n int mb_cols = cm -> mb_cols ;\n unsigned char * limits = cm -> pp_limits_buffer ;\n ;\n ( void ) post ;\n ( void ) low_var_thresh ;\n ( void ) flag ;\n vpx_memset ( limits , ( unsigned char ) ppl , 16 * mb_cols ) ;\n for ( mbr = 0 ;\n mbr < mb_rows ;\n mbr ++ ) {\n vp8_post_proc_down_and_across_mb_row ( source -> y_buffer + 16 * mbr * source -> y_stride , source -> y_buffer + 16 * mbr * source -> y_stride , source -> y_stride , source -> y_stride , source -> y_width , limits , 16 ) ;\n if ( uvfilter == 1 ) {\n vp8_post_proc_down_and_across_mb_row ( source -> u_buffer + 8 * mbr * source -> uv_stride , source -> u_buffer + 8 * mbr * source -> uv_stride , source -> uv_stride , source -> uv_stride , source -> uv_width , limits , 8 ) ;\n vp8_post_proc_down_and_across_mb_row ( source -> v_buffer + 8 * mbr * source -> uv_stride , source -> v_buffer + 8 * mbr * source -> uv_stride , source -> uv_stride , source -> uv_stride , source -> uv_width , limits , 8 ) ;\n }\n }\n }"}
{"idx": 14118, "target": 0, "func": "static void parse_get_mark ( const char * p ) {\n struct object_entry * oe = oe ;\n char output [ 42 ] ;\n if ( * p != ':' ) die ( \"Not a mark: %s\" , p ) ;\n oe = find_mark ( parse_mark_ref_eol ( p ) ) ;\n if ( ! oe ) die ( \"Unknown mark: %s\" , command_buf . buf ) ;\n snprintf ( output , sizeof ( output ) , \"%s\\n\" , sha1_to_hex ( oe -> idx . sha1 ) ) ;\n cat_blob_write ( output , 41 ) ;\n }"}
{"idx": 14119, "target": 0, "func": "TEST_F ( ExtensionWelcomeNotificationTest , DelayedPreferenceSyncNeverShown ) {\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissed ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissedLocal ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationPreviouslyPoppedUp ) ) ;\n ShowChromeNowNotification ( ) ;\n EXPECT_EQ ( message_center ( ) -> add_notification_calls ( ) , 0 ) ;\n EXPECT_EQ ( message_center ( ) -> remove_notification_calls ( ) , 0 ) ;\n EXPECT_EQ ( message_center ( ) -> notifications_with_shown_as_popup ( ) , 0 ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissed ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissedLocal ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationPreviouslyPoppedUp ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissed ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissedLocal ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationPreviouslyPoppedUp ) ) ;\n StartPreferenceSyncing ( ) ;\n EXPECT_EQ ( message_center ( ) -> add_notification_calls ( ) , 1 ) ;\n EXPECT_EQ ( message_center ( ) -> remove_notification_calls ( ) , 0 ) ;\n EXPECT_EQ ( message_center ( ) -> notifications_with_shown_as_popup ( ) , 0 ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissed ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissedLocal ) ) ;\n EXPECT_TRUE ( GetBooleanPref ( prefs : : kWelcomeNotificationPreviouslyPoppedUp ) ) ;\n }"}
{"idx": 14120, "target": 0, "func": "int dissect_ber_GeneralizedTime ( gboolean implicit_tag , asn1_ctx_t * actx , proto_tree * tree , tvbuff_t * tvb , int offset , gint hf_id ) {\n char str [ 35 ] ;\n int tmp_int ;\n const guint8 * tmpstr ;\n char * strptr ;\n char first_delim [ 2 ] ;\n int first_digits ;\n char second_delim [ 2 ] ;\n int second_digits ;\n int ret ;\n gint8 ber_class ;\n gboolean pc ;\n gint32 tag ;\n guint32 len ;\n int end_offset ;\n int hoffset ;\n proto_item * cause ;\n if ( ! implicit_tag ) {\n hoffset = offset ;\n offset = dissect_ber_identifier ( actx -> pinfo , tree , tvb , offset , & ber_class , & pc , & tag ) ;\n offset = dissect_ber_length ( actx -> pinfo , tree , tvb , offset , & len , NULL ) ;\n end_offset = offset + len ;\n if ( ( ber_class != BER_CLASS_UNI ) || ( tag != BER_UNI_TAG_GeneralizedTime ) ) {\n tvb_ensure_bytes_exist ( tvb , hoffset , 2 ) ;\n cause = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset , len , \"generalized_time_expected\" , \"GeneralizedTime expected but class:%s(%d) %s tag:%d was unexpected\" , val_to_str_const ( ber_class , ber_class_codes , \"Unknown\" ) , ber_class , pc ? ber_pc_codes_short . true_string : ber_pc_codes_short . false_string , tag ) ;\n expert_add_info ( actx -> pinfo , cause , & ei_ber_expected_generalized_time ) ;\n if ( decode_unexpected ) {\n proto_tree * unknown_tree = proto_item_add_subtree ( cause , ett_ber_unknown ) ;\n dissect_unknown_ber ( actx -> pinfo , tvb , hoffset , unknown_tree ) ;\n }\n return end_offset ;\n }\n }\n else {\n len = tvb_reported_length_remaining ( tvb , offset ) ;\n end_offset = offset + len ;\n }\n if ( ( len < 14 ) || ( len > 23 ) ) {\n cause = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset , len , \"illegal_length\" , \"GeneralizedTime invalid length: %u\" , len ) ;\n expert_add_info_format ( actx -> pinfo , cause , & ei_ber_error_length , \"BER Error: GeneralizedTime invalid length\" ) ;\n if ( decode_unexpected ) {\n proto_tree * unknown_tree = proto_item_add_subtree ( cause , ett_ber_unknown ) ;\n dissect_unknown_ber ( actx -> pinfo , tvb , offset , unknown_tree ) ;\n }\n return end_offset ;\n }\n tmpstr = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset , len , ENC_ASCII ) ;\n strptr = str ;\n strptr += g_snprintf ( str , 20 , \"%.4s-%.2s-%.2s %.2s:%.2s:%.2s\" , tmpstr , tmpstr + 4 , tmpstr + 6 , tmpstr + 8 , tmpstr + 10 , tmpstr + 12 ) ;\n first_delim [ 0 ] = 0 ;\n second_delim [ 0 ] = 0 ;\n ret = sscanf ( tmpstr , \"%14d%1[.,+-Z]%4d%1[+-Z]%4d\" , & tmp_int , first_delim , & first_digits , second_delim , & second_digits ) ;\n if ( ret < 1 ) {\n goto invalid ;\n }\n if ( ret >= 2 ) {\n switch ( first_delim [ 0 ] ) {\n case '.' : case ',' : if ( ret == 2 ) {\n goto invalid ;\n }\n strptr += g_snprintf ( strptr , 5 , \"%c%.3d\" , first_delim [ 0 ] , first_digits ) ;\n if ( ret >= 4 ) {\n switch ( second_delim [ 0 ] ) {\n case '+' : case '-' : if ( ret == 4 ) {\n goto invalid ;\n }\n g_snprintf ( strptr , 12 , \" (UTC%c%.4d)\" , second_delim [ 0 ] , second_digits ) ;\n break ;\n case 'Z' : g_snprintf ( strptr , 7 , \" (UTC)\" ) ;\n break ;\n default : break ;\n }\n }\n break ;\n case '+' : case '-' : if ( ret == 2 ) {\n goto invalid ;\n }\n g_snprintf ( strptr , 12 , \" (UTC%c%.4d)\" , first_delim [ 0 ] , first_digits ) ;\n break ;\n case 'Z' : g_snprintf ( strptr , 7 , \" (UTC)\" ) ;\n break ;\n default : break ;\n }\n }\n if ( hf_id >= 0 ) {\n proto_tree_add_string ( tree , hf_id , tvb , offset , len , str ) ;\n }\n offset += len ;\n return offset ;\n invalid : cause = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset , len , \"invalid_generalized_time\" , \"GeneralizedTime invalid format: %s\" , tmpstr ) ;\n expert_add_info ( actx -> pinfo , cause , & ei_ber_invalid_format_generalized_time ) ;\n if ( decode_unexpected ) {\n proto_tree * unknown_tree = proto_item_add_subtree ( cause , ett_ber_unknown ) ;\n dissect_unknown_ber ( actx -> pinfo , tvb , offset , unknown_tree ) ;\n }\n return end_offset ;\n }"}
{"idx": 14121, "target": 0, "func": "static void ffmpeg_CopyPicture ( decoder_t * p_dec , picture_t * p_pic , AVFrame * p_ff_pic ) {\n decoder_sys_t * p_sys = p_dec -> p_sys ;\n if ( p_sys -> p_va ) {\n vlc_va_Extract ( p_sys -> p_va , p_pic , p_ff_pic -> opaque , p_ff_pic -> data [ 3 ] ) ;\n }\n else if ( FindVlcChroma ( p_sys -> p_context -> pix_fmt ) ) {\n int i_plane , i_size , i_line ;\n uint8_t * p_dst , * p_src ;\n int i_src_stride , i_dst_stride ;\n for ( i_plane = 0 ;\n i_plane < p_pic -> i_planes ;\n i_plane ++ ) {\n p_src = p_ff_pic -> data [ i_plane ] ;\n p_dst = p_pic -> p [ i_plane ] . p_pixels ;\n i_src_stride = p_ff_pic -> linesize [ i_plane ] ;\n i_dst_stride = p_pic -> p [ i_plane ] . i_pitch ;\n i_size = __MIN ( i_src_stride , i_dst_stride ) ;\n for ( i_line = 0 ;\n i_line < p_pic -> p [ i_plane ] . i_visible_lines ;\n i_line ++ ) {\n memcpy ( p_dst , p_src , i_size ) ;\n p_src += i_src_stride ;\n p_dst += i_dst_stride ;\n }\n }\n }\n else {\n const char * name = av_get_pix_fmt_name ( p_sys -> p_context -> pix_fmt ) ;\n msg_Err ( p_dec , \"Unsupported decoded output format %d (%s)\" , p_sys -> p_context -> pix_fmt , name ? name : \"unknown\" ) ;\n p_dec -> b_error = 1 ;\n }\n }"}
{"idx": 14122, "target": 0, "func": "static void * i_alloc_struct ( gs_memory_t * mem , gs_memory_type_ptr_t pstype , client_name_t cname ) {\n gs_ref_memory_t * const imem = ( gs_ref_memory_t * ) mem ;\n uint size = pstype -> ssize ;\n obj_header_t * obj ;\n obj_header_t * * pfl ;\n # ifdef MEMENTO if ( Memento_failThisEvent ( ) ) return NULL ;\n # endif ALLOC_CHECK_SIZE ( mem , pstype ) ;\n IF_FREELIST_ALLOC ( obj , imem , size , pstype , pfl ) alloc_trace ( \":+<f\" , imem , cname , pstype , size , obj ) ;\n ELSEIF_BIG_FREELIST_ALLOC ( obj , imem , size , pstype ) alloc_trace ( \":+<F\" , imem , cname , pstype , size , obj ) ;\n ELSEIF_LIFO_ALLOC ( obj , imem , size , pstype ) alloc_trace ( \":+< \" , imem , cname , pstype , size , obj ) ;\n ELSE_ALLOC {\n obj = alloc_obj ( imem , size , pstype , 0 , cname ) ;\n if ( obj == 0 ) return 0 ;\n alloc_trace ( \":+<.\" , imem , cname , pstype , size , obj ) ;\n }\n # if IGC_PTR_STABILITY_CHECK obj [ - 1 ] . d . o . space_id = imem -> space_id ;\n # endif return obj ;\n }"}
{"idx": 14123, "target": 0, "func": "void mainwindow_destroy_half ( MAIN_WINDOW_REC * window ) {\n int really_quitting = quitting ;\n quitting = TRUE ;\n mainwindow_destroy ( window ) ;\n quitting = really_quitting ;\n }"}
{"idx": 14124, "target": 0, "func": "int setup_vpn_in_socket ( const sockaddr_t * sa ) {\n int nfd ;\n char * addrstr ;\n int option ;\n nfd = socket ( sa -> sa . sa_family , SOCK_DGRAM , IPPROTO_UDP ) ;\n if ( nfd < 0 ) {\n logger ( LOG_ERR , \"Creating UDP socket failed: %s\" , sockstrerror ( sockerrno ) ) ;\n return - 1 ;\n }\n # ifdef FD_CLOEXEC fcntl ( nfd , F_SETFD , FD_CLOEXEC ) ;\n # endif # ifdef O_NONBLOCK {\n int flags = fcntl ( nfd , F_GETFL ) ;\n if ( fcntl ( nfd , F_SETFL , flags | O_NONBLOCK ) < 0 ) {\n closesocket ( nfd ) ;\n logger ( LOG_ERR , \"System call `%s' failed: %s\" , \"fcntl\" , strerror ( errno ) ) ;\n return - 1 ;\n }\n }\n # elif defined ( WIN32 ) {\n unsigned long arg = 1 ;\n if ( ioctlsocket ( nfd , FIONBIO , & arg ) != 0 ) {\n closesocket ( nfd ) ;\n logger ( LOG_ERR , \"Call to `%s' failed: %s\" , \"ioctlsocket\" , sockstrerror ( sockerrno ) ) ;\n return - 1 ;\n }\n }\n # endif option = 1 ;\n setsockopt ( nfd , SOL_SOCKET , SO_REUSEADDR , ( void * ) & option , sizeof ( option ) ) ;\n setsockopt ( nfd , SOL_SOCKET , SO_BROADCAST , ( void * ) & option , sizeof ( option ) ) ;\n if ( udp_rcvbuf && setsockopt ( nfd , SOL_SOCKET , SO_RCVBUF , ( void * ) & udp_rcvbuf , sizeof ( udp_rcvbuf ) ) ) {\n logger ( LOG_WARNING , \"Can't set UDP SO_RCVBUF to %i: %s\" , udp_rcvbuf , strerror ( errno ) ) ;\n }\n if ( udp_sndbuf && setsockopt ( nfd , SOL_SOCKET , SO_SNDBUF , ( void * ) & udp_sndbuf , sizeof ( udp_sndbuf ) ) ) {\n logger ( LOG_WARNING , \"Can't set UDP SO_SNDBUF to %i: %s\" , udp_sndbuf , strerror ( errno ) ) ;\n }\n # if defined ( IPV6_V6ONLY ) if ( sa -> sa . sa_family == AF_INET6 ) {\n setsockopt ( nfd , IPPROTO_IPV6 , IPV6_V6ONLY , ( void * ) & option , sizeof ( option ) ) ;\n }\n # endif # if defined ( IP_DONTFRAG ) && ! defined ( IP_DONTFRAGMENT ) # define IP_DONTFRAGMENT IP_DONTFRAG # endif # if defined ( IP_MTU_DISCOVER ) && defined ( IP_PMTUDISC_DO ) if ( myself -> options & OPTION_PMTU_DISCOVERY ) {\n option = IP_PMTUDISC_DO ;\n setsockopt ( nfd , IPPROTO_IP , IP_MTU_DISCOVER , ( void * ) & option , sizeof ( option ) ) ;\n }\n # elif defined ( IP_DONTFRAGMENT ) if ( myself -> options & OPTION_PMTU_DISCOVERY ) {\n option = 1 ;\n setsockopt ( nfd , IPPROTO_IP , IP_DONTFRAGMENT , ( void * ) & option , sizeof ( option ) ) ;\n }\n # endif # if defined ( IPV6_MTU_DISCOVER ) && defined ( IPV6_PMTUDISC_DO ) if ( myself -> options & OPTION_PMTU_DISCOVERY ) {\n option = IPV6_PMTUDISC_DO ;\n setsockopt ( nfd , IPPROTO_IPV6 , IPV6_MTU_DISCOVER , ( void * ) & option , sizeof ( option ) ) ;\n }\n # elif defined ( IPV6_DONTFRAG ) if ( myself -> options & OPTION_PMTU_DISCOVERY ) {\n option = 1 ;\n setsockopt ( nfd , IPPROTO_IPV6 , IPV6_DONTFRAG , ( void * ) & option , sizeof ( option ) ) ;\n }\n # endif if ( ! bind_to_interface ( nfd ) ) {\n closesocket ( nfd ) ;\n return - 1 ;\n }\n if ( bind ( nfd , & sa -> sa , SALEN ( sa -> sa ) ) ) {\n closesocket ( nfd ) ;\n addrstr = sockaddr2hostname ( sa ) ;\n logger ( LOG_ERR , \"Can't bind to %s/udp: %s\" , addrstr , sockstrerror ( sockerrno ) ) ;\n free ( addrstr ) ;\n return - 1 ;\n }\n return nfd ;\n }"}
{"idx": 14125, "target": 0, "func": "int ec_GF2m_simple_mul ( const EC_GROUP * group , EC_POINT * r , const BIGNUM * scalar , size_t num , const EC_POINT * points [ ] , const BIGNUM * scalars [ ] , BN_CTX * ctx ) {\n BN_CTX * new_ctx = NULL ;\n int ret = 0 ;\n size_t i ;\n EC_POINT * p = NULL ;\n EC_POINT * acc = NULL ;\n if ( ctx == NULL ) {\n ctx = new_ctx = BN_CTX_new ( ) ;\n if ( ctx == NULL ) return 0 ;\n }\n if ( ( scalar && ( num > 1 ) ) || ( num > 2 ) || ( num == 0 && EC_GROUP_have_precompute_mult ( group ) ) ) {\n ret = ec_wNAF_mul ( group , r , scalar , num , points , scalars , ctx ) ;\n goto err ;\n }\n if ( ( p = EC_POINT_new ( group ) ) == NULL ) goto err ;\n if ( ( acc = EC_POINT_new ( group ) ) == NULL ) goto err ;\n if ( ! EC_POINT_set_to_infinity ( group , acc ) ) goto err ;\n if ( scalar ) {\n if ( ! ec_GF2m_montgomery_point_multiply ( group , p , scalar , group -> generator , ctx ) ) goto err ;\n if ( BN_is_negative ( scalar ) ) if ( ! group -> meth -> invert ( group , p , ctx ) ) goto err ;\n if ( ! group -> meth -> add ( group , acc , acc , p , ctx ) ) goto err ;\n }\n for ( i = 0 ;\n i < num ;\n i ++ ) {\n if ( ! ec_GF2m_montgomery_point_multiply ( group , p , scalars [ i ] , points [ i ] , ctx ) ) goto err ;\n if ( BN_is_negative ( scalars [ i ] ) ) if ( ! group -> meth -> invert ( group , p , ctx ) ) goto err ;\n if ( ! group -> meth -> add ( group , acc , acc , p , ctx ) ) goto err ;\n }\n if ( ! EC_POINT_copy ( r , acc ) ) goto err ;\n ret = 1 ;\n err : if ( p ) EC_POINT_free ( p ) ;\n if ( acc ) EC_POINT_free ( acc ) ;\n if ( new_ctx != NULL ) BN_CTX_free ( new_ctx ) ;\n return ret ;\n }"}
{"idx": 14126, "target": 0, "func": "static void ffprobe_show_program_version ( WriterContext * w ) {\n AVBPrint pbuf ;\n av_bprint_init ( & pbuf , 1 , AV_BPRINT_SIZE_UNLIMITED ) ;\n writer_print_section_header ( w , SECTION_ID_PROGRAM_VERSION ) ;\n print_str ( \"version\" , FFMPEG_VERSION ) ;\n print_fmt ( \"copyright\" , \"Copyright (c) %d-%d the FFmpeg developers\" , program_birth_year , CONFIG_THIS_YEAR ) ;\n print_str ( \"compiler_ident\" , CC_IDENT ) ;\n print_str ( \"configuration\" , FFMPEG_CONFIGURATION ) ;\n writer_print_section_footer ( w ) ;\n av_bprint_finalize ( & pbuf , NULL ) ;\n }"}
{"idx": 14127, "target": 0, "func": "static void _setWithOids ( ArchiveHandle * AH , TocEntry * te ) {\n if ( AH -> currWithOids != te -> withOids ) {\n _doSetWithOids ( AH , te -> withOids ) ;\n AH -> currWithOids = te -> withOids ;\n }\n }"}
{"idx": 14128, "target": 0, "func": "static void initATTables ( struct alltabs * at , SplineFont * sf , enum fontformat format ) {\n setos2 ( & at -> os2 , at , sf , format ) ;\n if ( at -> opentypemode ) {\n SFFindUnusedLookups ( sf ) ;\n otf_dumpgpos ( at , sf ) ;\n otf_dumpgsub ( at , sf ) ;\n otf_dumpgdef ( at , sf ) ;\n otf_dumpjstf ( at , sf ) ;\n otf_dumpbase ( at , sf ) ;\n otf_dump_math ( at , sf ) ;\n if ( at -> gi . flags & ttf_flag_dummyDSIG ) otf_dump_dummydsig ( at , sf ) ;\n }\n if ( at -> dovariations ) ttf_dumpvariations ( at , sf ) ;\n if ( at -> applemode ) {\n if ( ! at -> opentypemode ) SFFindUnusedLookups ( sf ) ;\n ttf_dumpkerns ( at , sf ) ;\n aat_dumplcar ( at , sf ) ;\n aat_dumpmorx ( at , sf ) ;\n aat_dumpopbd ( at , sf ) ;\n aat_dumpprop ( at , sf ) ;\n aat_dumpbsln ( at , sf ) ;\n }\n if ( ! at -> applemode && ( ! at -> opentypemode || ( at -> gi . flags & ttf_flag_oldkern ) ) ) ttf_dumpkerns ( at , sf ) ;\n dumpnames ( at , sf , format ) ;\n redoos2 ( at ) ;\n }"}
{"idx": 14129, "target": 0, "func": "static int dissect_zbee_zcl_color_control ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n proto_tree * payload_tree ;\n zbee_zcl_packet * zcl ;\n guint offset = 0 ;\n guint8 cmd_id ;\n gint rem_len ;\n if ( data == NULL ) return 0 ;\n zcl = ( zbee_zcl_packet * ) data ;\n cmd_id = zcl -> cmd_id ;\n if ( zcl -> direction == ZBEE_ZCL_FCF_TO_SERVER ) {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"%s, Seq: %u\" , val_to_str_const ( cmd_id , zbee_zcl_color_control_srv_rx_cmd_names , \"Unknown Command\" ) , zcl -> tran_seqno ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_srv_rx_cmd_id , tvb , offset , 1 , cmd_id ) ;\n rem_len = tvb_reported_length_remaining ( tvb , ++ offset ) ;\n if ( rem_len > 0 ) {\n payload_tree = proto_tree_add_subtree ( tree , tvb , offset , rem_len , ett_zbee_zcl_color_control , NULL , \"Payload\" ) ;\n switch ( cmd_id ) {\n case ZBEE_ZCL_CMD_ID_COLOR_CONTROL_MOVE_TO_HUE : dissect_zcl_color_control_move_to_hue ( tvb , payload_tree , & offset , ZBEE_ZCL_NORMAL_HUE ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_COLOR_CONTROL_MOVE_HUE : dissect_zcl_color_control_move_hue_saturation ( tvb , payload_tree , & offset , ZBEE_ZCL_NORMAL_HUE ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_COLOR_CONTROL_STEP_HUE : dissect_zcl_color_control_step_hue_saturation ( tvb , payload_tree , & offset , ZBEE_ZCL_NORMAL_HUE ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_COLOR_CONTROL_MOVE_TO_SATURATION : dissect_zcl_color_control_move_to_saturation ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_COLOR_CONTROL_MOVE_SATURATION : dissect_zcl_color_control_move_hue_saturation ( tvb , payload_tree , & offset , ZBEE_ZCL_NORMAL_HUE ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_COLOR_CONTROL_STEP_SATURATION : dissect_zcl_color_control_step_hue_saturation ( tvb , payload_tree , & offset , ZBEE_ZCL_NORMAL_HUE ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_COLOR_CONTROL_MOVE_TO_HUE_AND_SATURATION : dissect_zcl_color_control_move_to_hue_and_saturation ( tvb , payload_tree , & offset , ZBEE_ZCL_NORMAL_HUE ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_COLOR_CONTROL_MOVE_TO_COLOR : dissect_zcl_color_control_move_to_color ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_COLOR_CONTROL_MOVE_COLOR : dissect_zcl_color_control_move_color ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_COLOR_CONTROL_STEP_COLOR : dissect_zcl_color_control_step_color ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_COLOR_CONTROL_MOVE_TO_COLOR_TEMP : dissect_zcl_color_control_move_to_color_temp ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_COLOR_CONTROL_ENHANCED_MOVE_TO_HUE : dissect_zcl_color_control_move_to_hue ( tvb , payload_tree , & offset , ZBEE_ZCL_ENHANCED_HUE ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_COLOR_CONTROL_ENHANCED_MOVE_HUE : dissect_zcl_color_control_move_hue_saturation ( tvb , payload_tree , & offset , ZBEE_ZCL_ENHANCED_HUE ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_COLOR_CONTROL_ENHANCED_STEP_HUE : dissect_zcl_color_control_step_hue_saturation ( tvb , payload_tree , & offset , ZBEE_ZCL_ENHANCED_HUE ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_COLOR_CONTROL_ENHANCED_MOVE_TO_HUE_AND_SATURATION : dissect_zcl_color_control_move_to_hue_and_saturation ( tvb , payload_tree , & offset , ZBEE_ZCL_ENHANCED_HUE ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_COLOR_CONTROL_COLOR_LOOP_SET : dissect_zcl_color_control_color_loop_set ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_COLOR_CONTROL_MOVE_COLOR_TEMP : dissect_zcl_color_control_move_color_temp ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_COLOR_CONTROL_STEP_COLOR_TEMP : dissect_zcl_color_control_step_color_temp ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_COLOR_CONTROL_STOP_MOVE_STEP : default : break ;\n }\n }\n }\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 14130, "target": 0, "func": "static void finish_request ( struct transfer_request * request ) {\n struct http_pack_request * preq ;\n struct http_object_request * obj_req ;\n request -> curl_result = request -> slot -> curl_result ;\n request -> http_code = request -> slot -> http_code ;\n request -> slot = NULL ;\n check_locks ( ) ;\n if ( request -> headers != NULL ) curl_slist_free_all ( request -> headers ) ;\n if ( request -> state != RUN_PUT ) {\n free ( request -> url ) ;\n request -> url = NULL ;\n }\n if ( request -> state == RUN_MKCOL ) {\n if ( request -> curl_result == CURLE_OK || request -> http_code == 405 ) {\n remote_dir_exists [ request -> obj -> oid . hash [ 0 ] ] = 1 ;\n start_put ( request ) ;\n }\n else {\n fprintf ( stderr , \"MKCOL %s failed, aborting (%d/%ld)\\n\" , oid_to_hex ( & request -> obj -> oid ) , request -> curl_result , request -> http_code ) ;\n request -> state = ABORTED ;\n aborted = 1 ;\n }\n }\n else if ( request -> state == RUN_PUT ) {\n if ( request -> curl_result == CURLE_OK ) {\n start_move ( request ) ;\n }\n else {\n fprintf ( stderr , \"PUT %s failed, aborting (%d/%ld)\\n\" , oid_to_hex ( & request -> obj -> oid ) , request -> curl_result , request -> http_code ) ;\n request -> state = ABORTED ;\n aborted = 1 ;\n }\n }\n else if ( request -> state == RUN_MOVE ) {\n if ( request -> curl_result == CURLE_OK ) {\n if ( push_verbosely ) fprintf ( stderr , \" sent %s\\n\" , oid_to_hex ( & request -> obj -> oid ) ) ;\n request -> obj -> flags |= REMOTE ;\n release_request ( request ) ;\n }\n else {\n fprintf ( stderr , \"MOVE %s failed, aborting (%d/%ld)\\n\" , oid_to_hex ( & request -> obj -> oid ) , request -> curl_result , request -> http_code ) ;\n request -> state = ABORTED ;\n aborted = 1 ;\n }\n }\n else if ( request -> state == RUN_FETCH_LOOSE ) {\n obj_req = ( struct http_object_request * ) request -> userData ;\n if ( finish_http_object_request ( obj_req ) == 0 ) if ( obj_req -> rename == 0 ) request -> obj -> flags |= ( LOCAL | REMOTE ) ;\n if ( request -> obj -> flags & LOCAL ) {\n release_http_object_request ( obj_req ) ;\n release_request ( request ) ;\n }\n else start_fetch_packed ( request ) ;\n }\n else if ( request -> state == RUN_FETCH_PACKED ) {\n int fail = 1 ;\n if ( request -> curl_result != CURLE_OK ) {\n fprintf ( stderr , \"Unable to get pack file %s\\n%s\" , request -> url , curl_errorstr ) ;\n }\n else {\n preq = ( struct http_pack_request * ) request -> userData ;\n if ( preq ) {\n if ( finish_http_pack_request ( preq ) == 0 ) fail = 0 ;\n release_http_pack_request ( preq ) ;\n }\n }\n if ( fail ) repo -> can_update_info_refs = 0 ;\n release_request ( request ) ;\n }\n }"}
{"idx": 14131, "target": 0, "func": "static uint dump_routines_for_db ( char * db ) {\n char query_buff [ QUERY_LENGTH ] ;\n const char * routine_type [ ] = {\n \"FUNCTION\" , \"PROCEDURE\" }\n ;\n char db_name_buff [ NAME_LEN * 2 + 3 ] , name_buff [ NAME_LEN * 2 + 3 ] ;\n char * routine_name ;\n int i ;\n FILE * sql_file = md_result_file ;\n MYSQL_RES * routine_res , * routine_list_res ;\n MYSQL_ROW row , routine_list_row ;\n char db_cl_name [ MY_CS_NAME_SIZE ] ;\n int db_cl_altered = FALSE ;\n DBUG_ENTER ( \"dump_routines_for_db\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"db: '%s'\" , db ) ) ;\n mysql_real_escape_string ( mysql , db_name_buff , db , ( ulong ) strlen ( db ) ) ;\n print_comment ( sql_file , 0 , \"\\n--\\n-- Dumping routines for database '%s'\\n--\\n\" , fix_for_comment ( db ) ) ;\n if ( lock_tables ) mysql_query ( mysql , \"LOCK TABLES mysql.proc READ\" ) ;\n if ( fetch_db_collation ( db , db_cl_name , sizeof ( db_cl_name ) ) ) DBUG_RETURN ( 1 ) ;\n if ( switch_character_set_results ( mysql , \"binary\" ) ) DBUG_RETURN ( 1 ) ;\n if ( opt_xml ) fputs ( \"\\t<routines>\\n\" , sql_file ) ;\n for ( i = 0 ;\n i <= 1 ;\n i ++ ) {\n my_snprintf ( query_buff , sizeof ( query_buff ) , \"SHOW %s STATUS WHERE Db = '%s'\" , routine_type [ i ] , db_name_buff ) ;\n if ( mysql_query_with_error_report ( mysql , & routine_list_res , query_buff ) ) DBUG_RETURN ( 1 ) ;\n if ( mysql_num_rows ( routine_list_res ) ) {\n while ( ( routine_list_row = mysql_fetch_row ( routine_list_res ) ) ) {\n routine_name = quote_name ( routine_list_row [ 1 ] , name_buff , 0 ) ;\n DBUG_PRINT ( \"info\" , ( \"retrieving CREATE %s for %s\" , routine_type [ i ] , name_buff ) ) ;\n my_snprintf ( query_buff , sizeof ( query_buff ) , \"SHOW CREATE %s %s\" , routine_type [ i ] , routine_name ) ;\n if ( mysql_query_with_error_report ( mysql , & routine_res , query_buff ) ) DBUG_RETURN ( 1 ) ;\n while ( ( row = mysql_fetch_row ( routine_res ) ) ) {\n DBUG_PRINT ( \"info\" , ( \"length of body for %s row[2] '%s' is %zu\" , routine_name , row [ 2 ] ? row [ 2 ] : \"(null)\" , row [ 2 ] ? strlen ( row [ 2 ] ) : 0 ) ) ;\n if ( row [ 2 ] == NULL ) {\n print_comment ( sql_file , 1 , \"\\n-- insufficient privileges to %s\\n\" , query_buff ) ;\n print_comment ( sql_file , 1 , \"-- does %s have permissions on mysql.proc?\\n\\n\" , current_user ) ;\n maybe_die ( EX_MYSQLERR , \"%s has insufficent privileges to %s!\" , current_user , query_buff ) ;\n }\n else if ( strlen ( row [ 2 ] ) ) {\n if ( opt_xml ) {\n if ( i ) print_xml_row ( sql_file , \"routine\" , routine_res , & row , \"Create Procedure\" ) ;\n else print_xml_row ( sql_file , \"routine\" , routine_res , & row , \"Create Function\" ) ;\n continue ;\n }\n if ( opt_drop ) fprintf ( sql_file , \"/*!50003 DROP %s IF EXISTS %s */;\n\\n\" , routine_type [ i ] , routine_name ) ;\n if ( mysql_num_fields ( routine_res ) >= 6 ) {\n if ( switch_db_collation ( sql_file , db , \";\n\" , db_cl_name , row [ 5 ] , & db_cl_altered ) ) {\n DBUG_RETURN ( 1 ) ;\n }\n switch_cs_variables ( sql_file , \";\n\" , row [ 3 ] , row [ 3 ] , row [ 4 ] ) ;\n }\n else {\n fprintf ( sql_file , \"--\\n\" \"-- WARNING: old server version. \" \"The following dump may be incomplete.\\n\" \"--\\n\" ) ;\n }\n switch_sql_mode ( sql_file , \";\n\" , row [ 1 ] ) ;\n fprintf ( sql_file , \"DELIMITER ;\n;\n\\n\" \"%s ;\n;\n\\n\" \"DELIMITER ;\n\\n\" , ( const char * ) row [ 2 ] ) ;\n restore_sql_mode ( sql_file , \";\n\" ) ;\n if ( mysql_num_fields ( routine_res ) >= 6 ) {\n restore_cs_variables ( sql_file , \";\n\" ) ;\n if ( db_cl_altered ) {\n if ( restore_db_collation ( sql_file , db , \";\n\" , db_cl_name ) ) DBUG_RETURN ( 1 ) ;\n }\n }\n }\n }\n mysql_free_result ( routine_res ) ;\n }\n }\n mysql_free_result ( routine_list_res ) ;\n }\n if ( opt_xml ) {\n fputs ( \"\\t</routines>\\n\" , sql_file ) ;\n check_io ( sql_file ) ;\n }\n if ( switch_character_set_results ( mysql , default_charset ) ) DBUG_RETURN ( 1 ) ;\n if ( lock_tables ) ( void ) mysql_query_with_error_report ( mysql , 0 , \"UNLOCK TABLES\" ) ;\n DBUG_RETURN ( 0 ) ;\n }"}
{"idx": 14132, "target": 1, "func": "static int show_stream ( WriterContext * w , AVFormatContext * fmt_ctx , int stream_idx , InputStream * ist , int in_program ) {\n AVStream * stream = ist -> st ;\n AVCodecParameters * par ;\n AVCodecContext * dec_ctx ;\n char val_str [ 128 ] ;\n const char * s ;\n AVRational sar , dar ;\n AVBPrint pbuf ;\n const AVCodecDescriptor * cd ;\n int ret = 0 ;\n const char * profile = NULL ;\n av_bprint_init ( & pbuf , 1 , AV_BPRINT_SIZE_UNLIMITED ) ;\n writer_print_section_header ( w , in_program ? SECTION_ID_PROGRAM_STREAM : SECTION_ID_STREAM ) ;\n print_int ( \"index\" , stream -> index ) ;\n par = stream -> codecpar ;\n dec_ctx = ist -> dec_ctx ;\n if ( cd = avcodec_descriptor_get ( par -> codec_id ) ) {\n print_str ( \"codec_name\" , cd -> name ) ;\n if ( ! do_bitexact ) {\n print_str ( \"codec_long_name\" , cd -> long_name ? cd -> long_name : \"unknown\" ) ;\n }\n }\n else {\n print_str_opt ( \"codec_name\" , \"unknown\" ) ;\n if ( ! do_bitexact ) {\n print_str_opt ( \"codec_long_name\" , \"unknown\" ) ;\n }\n }\n if ( ! do_bitexact && ( profile = avcodec_profile_name ( par -> codec_id , par -> profile ) ) ) print_str ( \"profile\" , profile ) ;\n else {\n if ( par -> profile != FF_PROFILE_UNKNOWN ) {\n char profile_num [ 12 ] ;\n snprintf ( profile_num , sizeof ( profile_num ) , \"%d\" , par -> profile ) ;\n print_str ( \"profile\" , profile_num ) ;\n }\n else print_str_opt ( \"profile\" , \"unknown\" ) ;\n }\n s = av_get_media_type_string ( par -> codec_type ) ;\n if ( s ) print_str ( \"codec_type\" , s ) ;\n else print_str_opt ( \"codec_type\" , \"unknown\" ) ;\n # if FF_API_LAVF_AVCTX if ( dec_ctx ) print_q ( \"codec_time_base\" , dec_ctx -> time_base , '/' ) ;\n # endif print_str ( \"codec_tag_string\" , av_fourcc2str ( par -> codec_tag ) ) ;\n print_fmt ( \"codec_tag\" , \"0x%04\" PRIx32 , par -> codec_tag ) ;\n switch ( par -> codec_type ) {\n case AVMEDIA_TYPE_VIDEO : print_int ( \"width\" , par -> width ) ;\n print_int ( \"height\" , par -> height ) ;\n if ( dec_ctx ) {\n print_int ( \"coded_width\" , dec_ctx -> coded_width ) ;\n print_int ( \"coded_height\" , dec_ctx -> coded_height ) ;\n }\n print_int ( \"has_b_frames\" , par -> video_delay ) ;\n sar = av_guess_sample_aspect_ratio ( fmt_ctx , stream , NULL ) ;\n if ( sar . den ) {\n print_q ( \"sample_aspect_ratio\" , sar , ':' ) ;\n av_reduce ( & dar . num , & dar . den , par -> width * sar . num , par -> height * sar . den , 1024 * 1024 ) ;\n print_q ( \"display_aspect_ratio\" , dar , ':' ) ;\n }\n else {\n print_str_opt ( \"sample_aspect_ratio\" , \"N/A\" ) ;\n print_str_opt ( \"display_aspect_ratio\" , \"N/A\" ) ;\n }\n s = av_get_pix_fmt_name ( par -> format ) ;\n if ( s ) print_str ( \"pix_fmt\" , s ) ;\n else print_str_opt ( \"pix_fmt\" , \"unknown\" ) ;\n print_int ( \"level\" , par -> level ) ;\n if ( par -> color_range != AVCOL_RANGE_UNSPECIFIED ) print_str ( \"color_range\" , av_color_range_name ( par -> color_range ) ) ;\n else print_str_opt ( \"color_range\" , \"N/A\" ) ;\n if ( par -> color_space != AVCOL_SPC_UNSPECIFIED ) print_str ( \"color_space\" , av_color_space_name ( par -> color_space ) ) ;\n else print_str_opt ( \"color_space\" , av_color_space_name ( par -> color_space ) ) ;\n if ( par -> color_trc != AVCOL_TRC_UNSPECIFIED ) print_str ( \"color_transfer\" , av_color_transfer_name ( par -> color_trc ) ) ;\n else print_str_opt ( \"color_transfer\" , av_color_transfer_name ( par -> color_trc ) ) ;\n if ( par -> color_primaries != AVCOL_PRI_UNSPECIFIED ) print_str ( \"color_primaries\" , av_color_primaries_name ( par -> color_primaries ) ) ;\n else print_str_opt ( \"color_primaries\" , av_color_primaries_name ( par -> color_primaries ) ) ;\n if ( par -> chroma_location != AVCHROMA_LOC_UNSPECIFIED ) print_str ( \"chroma_location\" , av_chroma_location_name ( par -> chroma_location ) ) ;\n else print_str_opt ( \"chroma_location\" , av_chroma_location_name ( par -> chroma_location ) ) ;\n if ( par -> field_order == AV_FIELD_PROGRESSIVE ) print_str ( \"field_order\" , \"progressive\" ) ;\n else if ( par -> field_order == AV_FIELD_TT ) print_str ( \"field_order\" , \"tt\" ) ;\n else if ( par -> field_order == AV_FIELD_BB ) print_str ( \"field_order\" , \"bb\" ) ;\n else if ( par -> field_order == AV_FIELD_TB ) print_str ( \"field_order\" , \"tb\" ) ;\n else if ( par -> field_order == AV_FIELD_BT ) print_str ( \"field_order\" , \"bt\" ) ;\n else print_str_opt ( \"field_order\" , \"unknown\" ) ;\n # if FF_API_PRIVATE_OPT if ( dec_ctx && dec_ctx -> timecode_frame_start >= 0 ) {\n char tcbuf [ AV_TIMECODE_STR_SIZE ] ;\n av_timecode_make_mpeg_tc_string ( tcbuf , dec_ctx -> timecode_frame_start ) ;\n print_str ( \"timecode\" , tcbuf ) ;\n }\n else {\n print_str_opt ( \"timecode\" , \"N/A\" ) ;\n }\n # endif if ( dec_ctx ) print_int ( \"refs\" , dec_ctx -> refs ) ;\n break ;\n case AVMEDIA_TYPE_AUDIO : s = av_get_sample_fmt_name ( par -> format ) ;\n if ( s ) print_str ( \"sample_fmt\" , s ) ;\n else print_str_opt ( \"sample_fmt\" , \"unknown\" ) ;\n print_val ( \"sample_rate\" , par -> sample_rate , unit_hertz_str ) ;\n print_int ( \"channels\" , par -> channels ) ;\n if ( par -> channel_layout ) {\n av_bprint_clear ( & pbuf ) ;\n av_bprint_channel_layout ( & pbuf , par -> channels , par -> channel_layout ) ;\n print_str ( \"channel_layout\" , pbuf . str ) ;\n }\n else {\n print_str_opt ( \"channel_layout\" , \"unknown\" ) ;\n }\n print_int ( \"bits_per_sample\" , av_get_bits_per_sample ( par -> codec_id ) ) ;\n break ;\n case AVMEDIA_TYPE_SUBTITLE : if ( par -> width ) print_int ( \"width\" , par -> width ) ;\n else print_str_opt ( \"width\" , \"N/A\" ) ;\n if ( par -> height ) print_int ( \"height\" , par -> height ) ;\n else print_str_opt ( \"height\" , \"N/A\" ) ;\n break ;\n }\n if ( dec_ctx && dec_ctx -> codec && dec_ctx -> codec -> priv_class && show_private_data ) {\n const AVOption * opt = NULL ;\n while ( opt = av_opt_next ( dec_ctx -> priv_data , opt ) ) {\n uint8_t * str ;\n if ( opt -> flags ) continue ;\n if ( av_opt_get ( dec_ctx -> priv_data , opt -> name , 0 , & str ) >= 0 ) {\n print_str ( opt -> name , str ) ;\n av_free ( str ) ;\n }\n }\n }\n if ( fmt_ctx -> iformat -> flags & AVFMT_SHOW_IDS ) print_fmt ( \"id\" , \"0x%x\" , stream -> id ) ;\n else print_str_opt ( \"id\" , \"N/A\" ) ;\n print_q ( \"r_frame_rate\" , stream -> r_frame_rate , '/' ) ;\n print_q ( \"avg_frame_rate\" , stream -> avg_frame_rate , '/' ) ;\n print_q ( \"time_base\" , stream -> time_base , '/' ) ;\n print_ts ( \"start_pts\" , stream -> start_time ) ;\n print_time ( \"start_time\" , stream -> start_time , & stream -> time_base ) ;\n print_ts ( \"duration_ts\" , stream -> duration ) ;\n print_time ( \"duration\" , stream -> duration , & stream -> time_base ) ;\n if ( par -> bit_rate > 0 ) print_val ( \"bit_rate\" , par -> bit_rate , unit_bit_per_second_str ) ;\n else print_str_opt ( \"bit_rate\" , \"N/A\" ) ;\n # if FF_API_LAVF_AVCTX if ( stream -> codec -> rc_max_rate > 0 ) print_val ( \"max_bit_rate\" , stream -> codec -> rc_max_rate , unit_bit_per_second_str ) ;\n else print_str_opt ( \"max_bit_rate\" , \"N/A\" ) ;\n # endif if ( dec_ctx && dec_ctx -> bits_per_raw_sample > 0 ) print_fmt ( \"bits_per_raw_sample\" , \"%d\" , dec_ctx -> bits_per_raw_sample ) ;\n else print_str_opt ( \"bits_per_raw_sample\" , \"N/A\" ) ;\n if ( stream -> nb_frames ) print_fmt ( \"nb_frames\" , \"%\" PRId64 , stream -> nb_frames ) ;\n else print_str_opt ( \"nb_frames\" , \"N/A\" ) ;\n if ( nb_streams_frames [ stream_idx ] ) print_fmt ( \"nb_read_frames\" , \"%\" PRIu64 , nb_streams_frames [ stream_idx ] ) ;\n else print_str_opt ( \"nb_read_frames\" , \"N/A\" ) ;\n if ( nb_streams_packets [ stream_idx ] ) print_fmt ( \"nb_read_packets\" , \"%\" PRIu64 , nb_streams_packets [ stream_idx ] ) ;\n else print_str_opt ( \"nb_read_packets\" , \"N/A\" ) ;\n if ( do_show_data ) writer_print_data ( w , \"extradata\" , par -> extradata , par -> extradata_size ) ;\n writer_print_data_hash ( w , \"extradata_hash\" , par -> extradata , par -> extradata_size ) ;\n # define PRINT_DISPOSITION ( flagname , name ) do {\n print_int ( name , ! ! ( stream -> disposition & AV_DISPOSITION_ ## flagname ) ) ;\n }\n while ( 0 ) if ( do_show_stream_disposition ) {\n writer_print_section_header ( w , in_program ? SECTION_ID_PROGRAM_STREAM_DISPOSITION : SECTION_ID_STREAM_DISPOSITION ) ;\n PRINT_DISPOSITION ( DEFAULT , \"default\" ) ;\n PRINT_DISPOSITION ( DUB , \"dub\" ) ;\n PRINT_DISPOSITION ( ORIGINAL , \"original\" ) ;\n PRINT_DISPOSITION ( COMMENT , \"comment\" ) ;\n PRINT_DISPOSITION ( LYRICS , \"lyrics\" ) ;\n PRINT_DISPOSITION ( KARAOKE , \"karaoke\" ) ;\n PRINT_DISPOSITION ( FORCED , \"forced\" ) ;\n PRINT_DISPOSITION ( HEARING_IMPAIRED , \"hearing_impaired\" ) ;\n PRINT_DISPOSITION ( VISUAL_IMPAIRED , \"visual_impaired\" ) ;\n PRINT_DISPOSITION ( CLEAN_EFFECTS , \"clean_effects\" ) ;\n PRINT_DISPOSITION ( ATTACHED_PIC , \"attached_pic\" ) ;\n PRINT_DISPOSITION ( TIMED_THUMBNAILS , \"timed_thumbnails\" ) ;\n writer_print_section_footer ( w ) ;\n }\n if ( do_show_stream_tags ) ret = show_tags ( w , stream -> metadata , in_program ? SECTION_ID_PROGRAM_STREAM_TAGS : SECTION_ID_STREAM_TAGS ) ;\n if ( stream -> nb_side_data ) {\n print_pkt_side_data ( w , stream -> codecpar , stream -> side_data , stream -> nb_side_data , SECTION_ID_STREAM_SIDE_DATA_LIST , SECTION_ID_STREAM_SIDE_DATA ) ;\n }\n writer_print_section_footer ( w ) ;\n av_bprint_finalize ( & pbuf , NULL ) ;\n fflush ( stdout ) ;\n return ret ;\n }"}
{"idx": 14133, "target": 0, "func": "static void e1000e_msix_notify ( E1000ECore * core , uint32_t causes ) {\n if ( causes & E1000_ICR_RXQ0 ) {\n e1000e_msix_notify_one ( core , E1000_ICR_RXQ0 , E1000_IVAR_RXQ0 ( core -> mac [ IVAR ] ) ) ;\n }\n if ( causes & E1000_ICR_RXQ1 ) {\n e1000e_msix_notify_one ( core , E1000_ICR_RXQ1 , E1000_IVAR_RXQ1 ( core -> mac [ IVAR ] ) ) ;\n }\n if ( causes & E1000_ICR_TXQ0 ) {\n e1000e_msix_notify_one ( core , E1000_ICR_TXQ0 , E1000_IVAR_TXQ0 ( core -> mac [ IVAR ] ) ) ;\n }\n if ( causes & E1000_ICR_TXQ1 ) {\n e1000e_msix_notify_one ( core , E1000_ICR_TXQ1 , E1000_IVAR_TXQ1 ( core -> mac [ IVAR ] ) ) ;\n }\n if ( causes & E1000_ICR_OTHER ) {\n e1000e_msix_notify_one ( core , E1000_ICR_OTHER , E1000_IVAR_OTHER ( core -> mac [ IVAR ] ) ) ;\n }\n }"}
{"idx": 14134, "target": 0, "func": "fz_default_colorspaces * fz_new_default_colorspaces ( fz_context * ctx ) {\n fz_default_colorspaces * default_cs = fz_malloc_struct ( ctx , fz_default_colorspaces ) ;\n default_cs -> refs = 1 ;\n default_cs -> gray = fz_keep_colorspace ( ctx , fz_device_gray ( ctx ) ) ;\n default_cs -> rgb = fz_keep_colorspace ( ctx , fz_device_rgb ( ctx ) ) ;\n default_cs -> cmyk = fz_keep_colorspace ( ctx , fz_device_cmyk ( ctx ) ) ;\n default_cs -> oi = NULL ;\n return default_cs ;\n }"}
{"idx": 14135, "target": 1, "func": "int mdb_search ( Operation * op , SlapReply * rs ) {\n struct mdb_info * mdb = ( struct mdb_info * ) op -> o_bd -> be_private ;\n ID id , cursor , nsubs , ncand , cscope ;\n ID lastid = NOID ;\n ID candidates [ MDB_IDL_UM_SIZE ] ;\n ID iscopes [ MDB_IDL_DB_SIZE ] ;\n ID2 * scopes ;\n void * stack ;\n Entry * e = NULL , * base = NULL ;\n Entry * matched = NULL ;\n AttributeName * attrs ;\n slap_mask_t mask ;\n time_t stoptime ;\n int manageDSAit ;\n int tentries = 0 ;\n IdScopes isc ;\n MDB_cursor * mci , * mcd ;\n ww_ctx wwctx ;\n slap_callback cb = {\n 0 }\n ;\n mdb_op_info opinfo = {\n {\n {\n 0 }\n }\n }\n , * moi = & opinfo ;\n MDB_txn * ltid = NULL ;\n Debug ( LDAP_DEBUG_TRACE , \"=> \" LDAP_XSTRING ( mdb_search ) \"\\n\" , 0 , 0 , 0 ) ;\n attrs = op -> oq_search . rs_attrs ;\n manageDSAit = get_manageDSAit ( op ) ;\n rs -> sr_err = mdb_opinfo_get ( op , mdb , 1 , & moi ) ;\n switch ( rs -> sr_err ) {\n case 0 : break ;\n default : send_ldap_error ( op , rs , LDAP_OTHER , \"internal error\" ) ;\n return rs -> sr_err ;\n }\n ltid = moi -> moi_txn ;\n rs -> sr_err = mdb_cursor_open ( ltid , mdb -> mi_id2entry , & mci ) ;\n if ( rs -> sr_err ) {\n send_ldap_error ( op , rs , LDAP_OTHER , \"internal error\" ) ;\n return rs -> sr_err ;\n }\n rs -> sr_err = mdb_cursor_open ( ltid , mdb -> mi_dn2id , & mcd ) ;\n if ( rs -> sr_err ) {\n mdb_cursor_close ( mci ) ;\n send_ldap_error ( op , rs , LDAP_OTHER , \"internal error\" ) ;\n return rs -> sr_err ;\n }\n scopes = scope_chunk_get ( op ) ;\n stack = search_stack ( op ) ;\n isc . mt = ltid ;\n isc . mc = mcd ;\n isc . scopes = scopes ;\n isc . oscope = op -> ors_scope ;\n isc . sctmp = stack ;\n if ( op -> ors_deref & LDAP_DEREF_FINDING ) {\n MDB_IDL_ZERO ( candidates ) ;\n }\n dn2entry_retry : rs -> sr_err = mdb_dn2entry ( op , ltid , mcd , & op -> o_req_ndn , & e , & nsubs , 1 ) ;\n switch ( rs -> sr_err ) {\n case MDB_NOTFOUND : matched = e ;\n e = NULL ;\n break ;\n case 0 : break ;\n case LDAP_BUSY : send_ldap_error ( op , rs , LDAP_BUSY , \"ldap server busy\" ) ;\n goto done ;\n default : send_ldap_error ( op , rs , LDAP_OTHER , \"internal error\" ) ;\n goto done ;\n }\n if ( op -> ors_deref & LDAP_DEREF_FINDING ) {\n if ( matched && is_entry_alias ( matched ) ) {\n struct berval stub ;\n stub . bv_val = op -> o_req_ndn . bv_val ;\n stub . bv_len = op -> o_req_ndn . bv_len - matched -> e_nname . bv_len - 1 ;\n e = deref_base ( op , rs , matched , & matched , ltid , candidates , NULL ) ;\n if ( e ) {\n build_new_dn ( & op -> o_req_ndn , & e -> e_nname , & stub , op -> o_tmpmemctx ) ;\n mdb_entry_return ( op , e ) ;\n matched = NULL ;\n goto dn2entry_retry ;\n }\n }\n else if ( e && is_entry_alias ( e ) ) {\n e = deref_base ( op , rs , e , & matched , ltid , candidates , NULL ) ;\n }\n }\n if ( e == NULL ) {\n struct berval matched_dn = BER_BVNULL ;\n if ( matched != NULL ) {\n BerVarray erefs = NULL ;\n if ( ! access_allowed ( op , matched , slap_schema . si_ad_entry , NULL , ACL_DISCLOSE , NULL ) ) {\n rs -> sr_err = LDAP_NO_SUCH_OBJECT ;\n }\n else {\n ber_dupbv ( & matched_dn , & matched -> e_name ) ;\n erefs = is_entry_referral ( matched ) ? get_entry_referrals ( op , matched ) : NULL ;\n if ( rs -> sr_err == MDB_NOTFOUND ) rs -> sr_err = LDAP_REFERRAL ;\n rs -> sr_matched = matched_dn . bv_val ;\n }\n mdb_entry_return ( op , matched ) ;\n matched = NULL ;\n if ( erefs ) {\n rs -> sr_ref = referral_rewrite ( erefs , & matched_dn , & op -> o_req_dn , op -> oq_search . rs_scope ) ;\n ber_bvarray_free ( erefs ) ;\n }\n }\n else {\n rs -> sr_ref = referral_rewrite ( default_referral , NULL , & op -> o_req_dn , op -> oq_search . rs_scope ) ;\n rs -> sr_err = rs -> sr_ref != NULL ? LDAP_REFERRAL : LDAP_NO_SUCH_OBJECT ;\n }\n send_ldap_result ( op , rs ) ;\n if ( rs -> sr_ref ) {\n ber_bvarray_free ( rs -> sr_ref ) ;\n rs -> sr_ref = NULL ;\n }\n if ( ! BER_BVISNULL ( & matched_dn ) ) {\n ber_memfree ( matched_dn . bv_val ) ;\n rs -> sr_matched = NULL ;\n }\n goto done ;\n }\n if ( ! access_allowed_mask ( op , e , slap_schema . si_ad_entry , NULL , ACL_SEARCH , NULL , & mask ) ) {\n if ( ! ACL_GRANT ( mask , ACL_DISCLOSE ) ) {\n rs -> sr_err = LDAP_NO_SUCH_OBJECT ;\n }\n else {\n rs -> sr_err = LDAP_INSUFFICIENT_ACCESS ;\n }\n mdb_entry_return ( op , e ) ;\n send_ldap_result ( op , rs ) ;\n goto done ;\n }\n if ( ! manageDSAit && is_entry_referral ( e ) ) {\n struct berval matched_dn = BER_BVNULL ;\n BerVarray erefs = NULL ;\n ber_dupbv ( & matched_dn , & e -> e_name ) ;\n erefs = get_entry_referrals ( op , e ) ;\n rs -> sr_err = LDAP_REFERRAL ;\n mdb_entry_return ( op , e ) ;\n e = NULL ;\n if ( erefs ) {\n rs -> sr_ref = referral_rewrite ( erefs , & matched_dn , & op -> o_req_dn , op -> oq_search . rs_scope ) ;\n ber_bvarray_free ( erefs ) ;\n if ( ! rs -> sr_ref ) {\n rs -> sr_text = \"bad_referral object\" ;\n }\n }\n Debug ( LDAP_DEBUG_TRACE , LDAP_XSTRING ( mdb_search ) \": entry is referral\\n\" , 0 , 0 , 0 ) ;\n rs -> sr_matched = matched_dn . bv_val ;\n send_ldap_result ( op , rs ) ;\n ber_bvarray_free ( rs -> sr_ref ) ;\n rs -> sr_ref = NULL ;\n ber_memfree ( matched_dn . bv_val ) ;\n rs -> sr_matched = NULL ;\n goto done ;\n }\n if ( get_assert ( op ) && ( test_filter ( op , e , get_assertion ( op ) ) != LDAP_COMPARE_TRUE ) ) {\n rs -> sr_err = LDAP_ASSERTION_FAILED ;\n mdb_entry_return ( op , e ) ;\n send_ldap_result ( op , rs ) ;\n goto done ;\n }\n stoptime = op -> o_time + op -> ors_tlimit ;\n base = e ;\n e = NULL ;\n if ( op -> oq_search . rs_scope == LDAP_SCOPE_BASE ) {\n rs -> sr_err = base_candidate ( op -> o_bd , base , candidates ) ;\n scopes [ 0 ] . mid = 0 ;\n ncand = 1 ;\n }\n else {\n if ( op -> ors_scope == LDAP_SCOPE_ONELEVEL ) {\n size_t nkids ;\n MDB_val key , data ;\n key . mv_data = & base -> e_id ;\n key . mv_size = sizeof ( ID ) ;\n mdb_cursor_get ( mcd , & key , & data , MDB_SET ) ;\n mdb_cursor_count ( mcd , & nkids ) ;\n nsubs = nkids - 1 ;\n }\n else if ( ! base -> e_id ) {\n MDB_stat ms ;\n mdb_stat ( ltid , mdb -> mi_id2entry , & ms ) ;\n nsubs = ms . ms_entries ;\n }\n MDB_IDL_ZERO ( candidates ) ;\n scopes [ 0 ] . mid = 1 ;\n scopes [ 1 ] . mid = base -> e_id ;\n scopes [ 1 ] . mval . mv_data = NULL ;\n rs -> sr_err = search_candidates ( op , rs , base , & isc , mci , candidates , stack ) ;\n ncand = MDB_IDL_N ( candidates ) ;\n if ( ! base -> e_id || ncand == NOID ) {\n MDB_stat ms ;\n mdb_stat ( ltid , mdb -> mi_id2entry , & ms ) ;\n if ( ! base -> e_id ) nsubs = ms . ms_entries ;\n if ( ncand == NOID ) ncand = ms . ms_entries ;\n }\n }\n cursor = 0 ;\n if ( candidates [ 0 ] == 0 ) {\n Debug ( LDAP_DEBUG_TRACE , LDAP_XSTRING ( mdb_search ) \": no candidates\\n\" , 0 , 0 , 0 ) ;\n goto nochange ;\n }\n if ( op -> ors_limit && op -> ors_limit -> lms_s_unchecked != - 1 && ncand > ( unsigned ) op -> ors_limit -> lms_s_unchecked ) {\n rs -> sr_err = LDAP_ADMINLIMIT_EXCEEDED ;\n send_ldap_result ( op , rs ) ;\n rs -> sr_err = LDAP_SUCCESS ;\n goto done ;\n }\n if ( op -> ors_limit == NULL || ! op -> ors_limit -> lms_s_pr_hide ) {\n tentries = ncand ;\n }\n wwctx . flag = 0 ;\n if ( moi == & opinfo ) {\n cb . sc_writewait = mdb_writewait ;\n cb . sc_private = & wwctx ;\n wwctx . txn = ltid ;\n wwctx . mcd = NULL ;\n cb . sc_next = op -> o_callback ;\n op -> o_callback = & cb ;\n }\n if ( get_pagedresults ( op ) > SLAP_CONTROL_IGNORED ) {\n PagedResultsState * ps = op -> o_pagedresults_state ;\n rs -> sr_err = parse_paged_cookie ( op , rs ) ;\n if ( rs -> sr_err != LDAP_SUCCESS ) {\n send_ldap_result ( op , rs ) ;\n goto done ;\n }\n cursor = ( ID ) ps -> ps_cookie ;\n if ( cursor && ps -> ps_size == 0 ) {\n rs -> sr_err = LDAP_SUCCESS ;\n rs -> sr_text = \"search abandoned by pagedResult size=0\" ;\n send_ldap_result ( op , rs ) ;\n goto done ;\n }\n id = mdb_idl_first ( candidates , & cursor ) ;\n if ( id == NOID ) {\n Debug ( LDAP_DEBUG_TRACE , LDAP_XSTRING ( mdb_search ) \": no paged results candidates\\n\" , 0 , 0 , 0 ) ;\n send_paged_response ( op , rs , & lastid , 0 ) ;\n rs -> sr_err = LDAP_OTHER ;\n goto done ;\n }\n if ( id == ( ID ) ps -> ps_cookie ) id = mdb_idl_next ( candidates , & cursor ) ;\n nsubs = ncand ;\n goto loop_begin ;\n }\n if ( nsubs < ncand ) {\n int rc ;\n if ( scopes [ 0 ] . mid > 1 ) {\n cursor = 1 ;\n for ( cscope = 1 ;\n cscope <= scopes [ 0 ] . mid ;\n cscope ++ ) {\n if ( scopes [ cscope ] . mid == base -> e_id ) continue ;\n iscopes [ cursor ++ ] = scopes [ cscope ] . mid ;\n }\n iscopes [ 0 ] = scopes [ 0 ] . mid - 1 ;\n }\n else {\n iscopes [ 0 ] = 0 ;\n }\n wwctx . mcd = mcd ;\n isc . id = base -> e_id ;\n isc . numrdns = 0 ;\n rc = mdb_dn2id_walk ( op , & isc ) ;\n if ( rc ) id = NOID ;\n else id = isc . id ;\n cscope = 0 ;\n }\n else {\n id = mdb_idl_first ( candidates , & cursor ) ;\n }\n while ( id != NOID ) {\n int scopeok ;\n MDB_val edata ;\n loop_begin : if ( op -> o_abandon ) {\n rs -> sr_err = SLAPD_ABANDON ;\n send_ldap_result ( op , rs ) ;\n goto done ;\n }\n if ( slapd_shutdown ) {\n rs -> sr_err = LDAP_UNAVAILABLE ;\n send_ldap_disconnect ( op , rs ) ;\n goto done ;\n }\n if ( op -> ors_tlimit != SLAP_NO_LIMIT && slap_get_time ( ) > stoptime ) {\n rs -> sr_err = LDAP_TIMELIMIT_EXCEEDED ;\n rs -> sr_ref = rs -> sr_v2ref ;\n send_ldap_result ( op , rs ) ;\n rs -> sr_err = LDAP_SUCCESS ;\n goto done ;\n }\n if ( nsubs < ncand ) {\n unsigned i ;\n scopeok = 0 ;\n if ( MDB_IDL_IS_RANGE ( candidates ) ) {\n if ( id >= MDB_IDL_RANGE_FIRST ( candidates ) && id <= MDB_IDL_RANGE_LAST ( candidates ) ) scopeok = 1 ;\n }\n else {\n i = mdb_idl_search ( candidates , id ) ;\n if ( i <= candidates [ 0 ] && candidates [ i ] == id ) scopeok = 1 ;\n }\n if ( scopeok ) goto scopeok ;\n goto loop_continue ;\n }\n scopeok = 0 ;\n isc . numrdns = 0 ;\n switch ( op -> ors_scope ) {\n case LDAP_SCOPE_BASE : if ( id == base -> e_id ) scopeok = 1 ;\n break ;\n # ifdef LDAP_SCOPE_CHILDREN case LDAP_SCOPE_CHILDREN : if ( id == base -> e_id ) break ;\n # endif case LDAP_SCOPE_SUBTREE : if ( id == base -> e_id ) {\n scopeok = 1 ;\n break ;\n }\n case LDAP_SCOPE_ONELEVEL : if ( id == base -> e_id ) break ;\n isc . id = id ;\n isc . nscope = 0 ;\n rs -> sr_err = mdb_idscopes ( op , & isc ) ;\n if ( rs -> sr_err == MDB_SUCCESS ) {\n if ( isc . nscope ) scopeok = 1 ;\n }\n else {\n if ( rs -> sr_err == MDB_NOTFOUND ) goto notfound ;\n }\n break ;\n }\n if ( ! scopeok ) {\n Debug ( LDAP_DEBUG_TRACE , LDAP_XSTRING ( mdb_search ) \": %ld scope not okay\\n\" , ( long ) id , 0 , 0 ) ;\n goto loop_continue ;\n }\n scopeok : if ( id == base -> e_id ) {\n e = base ;\n }\n else {\n rs -> sr_err = mdb_id2edata ( op , mci , id , & edata ) ;\n if ( rs -> sr_err == MDB_NOTFOUND ) {\n notfound : if ( nsubs < ncand ) goto loop_continue ;\n if ( ! MDB_IDL_IS_RANGE ( candidates ) ) {\n Debug ( LDAP_DEBUG_TRACE , LDAP_XSTRING ( mdb_search ) \": candidate %ld not found\\n\" , ( long ) id , 0 , 0 ) ;\n }\n else {\n rs -> sr_err = mdb_get_nextid ( mci , & cursor ) ;\n if ( rs -> sr_err == MDB_NOTFOUND ) {\n break ;\n }\n if ( rs -> sr_err ) {\n rs -> sr_err = LDAP_OTHER ;\n rs -> sr_text = \"internal error in get_nextid\" ;\n send_ldap_result ( op , rs ) ;\n goto done ;\n }\n cursor -- ;\n }\n goto loop_continue ;\n }\n else if ( rs -> sr_err ) {\n rs -> sr_err = LDAP_OTHER ;\n rs -> sr_text = \"internal error in mdb_id2edata\" ;\n send_ldap_result ( op , rs ) ;\n goto done ;\n }\n rs -> sr_err = mdb_entry_decode ( op , ltid , & edata , id , & e ) ;\n if ( rs -> sr_err ) {\n rs -> sr_err = LDAP_OTHER ;\n rs -> sr_text = \"internal error in mdb_entry_decode\" ;\n send_ldap_result ( op , rs ) ;\n goto done ;\n }\n e -> e_id = id ;\n e -> e_name . bv_val = NULL ;\n e -> e_nname . bv_val = NULL ;\n }\n if ( is_entry_subentry ( e ) ) {\n if ( op -> oq_search . rs_scope != LDAP_SCOPE_BASE ) {\n if ( ! get_subentries_visibility ( op ) ) {\n goto loop_continue ;\n }\n }\n else if ( get_subentries ( op ) && ! get_subentries_visibility ( op ) ) {\n goto loop_continue ;\n }\n }\n else if ( get_subentries_visibility ( op ) ) {\n goto loop_continue ;\n }\n if ( op -> ors_deref & LDAP_DEREF_SEARCHING ) {\n if ( is_entry_alias ( e ) && ( ( op -> ors_deref & LDAP_DEREF_FINDING ) || e != base ) ) {\n goto loop_continue ;\n }\n }\n if ( ! manageDSAit && is_entry_glue ( e ) ) {\n goto loop_continue ;\n }\n if ( e != base ) {\n struct berval pdn , pndn ;\n char * d , * n ;\n int i ;\n if ( nsubs < ncand || isc . scopes [ isc . nscope ] . mid == base -> e_id ) {\n pdn = base -> e_name ;\n pndn = base -> e_nname ;\n }\n else {\n mdb_id2name ( op , ltid , & isc . mc , scopes [ isc . nscope ] . mid , & pdn , & pndn ) ;\n }\n e -> e_name . bv_len = pdn . bv_len ;\n e -> e_nname . bv_len = pndn . bv_len ;\n for ( i = 0 ;\n i < isc . numrdns ;\n i ++ ) {\n e -> e_name . bv_len += isc . rdns [ i ] . bv_len + 1 ;\n e -> e_nname . bv_len += isc . nrdns [ i ] . bv_len + 1 ;\n }\n e -> e_name . bv_val = op -> o_tmpalloc ( e -> e_name . bv_len + 1 , op -> o_tmpmemctx ) ;\n e -> e_nname . bv_val = op -> o_tmpalloc ( e -> e_nname . bv_len + 1 , op -> o_tmpmemctx ) ;\n d = e -> e_name . bv_val ;\n n = e -> e_nname . bv_val ;\n if ( nsubs < ncand ) {\n for ( i = isc . numrdns - 1 ;\n i >= 0 ;\n i -- ) {\n memcpy ( d , isc . rdns [ i ] . bv_val , isc . rdns [ i ] . bv_len ) ;\n d += isc . rdns [ i ] . bv_len ;\n * d ++ = ',' ;\n memcpy ( n , isc . nrdns [ i ] . bv_val , isc . nrdns [ i ] . bv_len ) ;\n n += isc . nrdns [ i ] . bv_len ;\n * n ++ = ',' ;\n }\n }\n else {\n for ( i = 0 ;\n i < isc . numrdns ;\n i ++ ) {\n memcpy ( d , isc . rdns [ i ] . bv_val , isc . rdns [ i ] . bv_len ) ;\n d += isc . rdns [ i ] . bv_len ;\n * d ++ = ',' ;\n memcpy ( n , isc . nrdns [ i ] . bv_val , isc . nrdns [ i ] . bv_len ) ;\n n += isc . nrdns [ i ] . bv_len ;\n * n ++ = ',' ;\n }\n }\n if ( pdn . bv_len ) {\n memcpy ( d , pdn . bv_val , pdn . bv_len + 1 ) ;\n memcpy ( n , pndn . bv_val , pndn . bv_len + 1 ) ;\n }\n else {\n * -- d = '\\0' ;\n * -- n = '\\0' ;\n e -> e_name . bv_len -- ;\n e -> e_nname . bv_len -- ;\n }\n if ( pndn . bv_val != base -> e_nname . bv_val ) {\n op -> o_tmpfree ( pndn . bv_val , op -> o_tmpmemctx ) ;\n op -> o_tmpfree ( pdn . bv_val , op -> o_tmpmemctx ) ;\n }\n }\n if ( ! manageDSAit && op -> oq_search . rs_scope != LDAP_SCOPE_BASE && is_entry_referral ( e ) ) {\n BerVarray erefs = get_entry_referrals ( op , e ) ;\n rs -> sr_ref = referral_rewrite ( erefs , & e -> e_name , NULL , op -> oq_search . rs_scope == LDAP_SCOPE_ONELEVEL ? LDAP_SCOPE_BASE : LDAP_SCOPE_SUBTREE ) ;\n rs -> sr_entry = e ;\n rs -> sr_flags = 0 ;\n send_search_reference ( op , rs ) ;\n if ( e != base ) mdb_entry_return ( op , e ) ;\n rs -> sr_entry = NULL ;\n e = NULL ;\n ber_bvarray_free ( rs -> sr_ref ) ;\n ber_bvarray_free ( erefs ) ;\n rs -> sr_ref = NULL ;\n goto loop_continue ;\n }\n rs -> sr_err = test_filter ( op , e , op -> oq_search . rs_filter ) ;\n if ( rs -> sr_err == LDAP_COMPARE_TRUE ) {\n if ( get_pagedresults ( op ) > SLAP_CONTROL_IGNORED ) {\n if ( rs -> sr_nentries >= ( ( PagedResultsState * ) op -> o_pagedresults_state ) -> ps_size ) {\n mdb_entry_return ( op , e ) ;\n e = NULL ;\n send_paged_response ( op , rs , & lastid , tentries ) ;\n goto done ;\n }\n lastid = id ;\n }\n if ( e ) {\n rs -> sr_attrs = op -> oq_search . rs_attrs ;\n rs -> sr_operational_attrs = NULL ;\n rs -> sr_ctrls = NULL ;\n rs -> sr_entry = e ;\n RS_ASSERT ( e -> e_private != NULL ) ;\n rs -> sr_flags = 0 ;\n rs -> sr_err = LDAP_SUCCESS ;\n rs -> sr_err = send_search_entry ( op , rs ) ;\n rs -> sr_attrs = NULL ;\n rs -> sr_entry = NULL ;\n if ( e != base ) mdb_entry_return ( op , e ) ;\n e = NULL ;\n switch ( rs -> sr_err ) {\n case LDAP_SUCCESS : break ;\n default : break ;\n case LDAP_BUSY : send_ldap_result ( op , rs ) ;\n goto done ;\n case LDAP_UNAVAILABLE : case LDAP_SIZELIMIT_EXCEEDED : if ( rs -> sr_err == LDAP_SIZELIMIT_EXCEEDED ) {\n rs -> sr_ref = rs -> sr_v2ref ;\n send_ldap_result ( op , rs ) ;\n rs -> sr_err = LDAP_SUCCESS ;\n }\n else {\n rs -> sr_err = LDAP_OTHER ;\n }\n goto done ;\n }\n }\n }\n else {\n Debug ( LDAP_DEBUG_TRACE , LDAP_XSTRING ( mdb_search ) \": %ld does not match filter\\n\" , ( long ) id , 0 , 0 ) ;\n }\n loop_continue : if ( moi == & opinfo && ! wwctx . flag && mdb -> mi_rtxn_size ) {\n wwctx . nentries ++ ;\n if ( wwctx . nentries >= mdb -> mi_rtxn_size ) {\n wwctx . nentries = 0 ;\n mdb_rtxn_snap ( op , & wwctx ) ;\n }\n }\n if ( wwctx . flag ) {\n rs -> sr_err = mdb_waitfixup ( op , & wwctx , mci , mcd , & isc ) ;\n if ( rs -> sr_err ) {\n send_ldap_result ( op , rs ) ;\n goto done ;\n }\n }\n if ( e != NULL ) {\n if ( e != base ) mdb_entry_return ( op , e ) ;\n RS_ASSERT ( rs -> sr_entry == NULL ) ;\n e = NULL ;\n rs -> sr_entry = NULL ;\n }\n if ( nsubs < ncand ) {\n int rc = mdb_dn2id_walk ( op , & isc ) ;\n if ( rc ) {\n id = NOID ;\n while ( iscopes [ 0 ] && cscope < iscopes [ 0 ] ) {\n cscope ++ ;\n isc . id = iscopes [ cscope ] ;\n if ( base ) mdb_entry_return ( op , base ) ;\n rs -> sr_err = mdb_id2entry ( op , mci , isc . id , & base ) ;\n if ( ! rs -> sr_err ) {\n mdb_id2name ( op , ltid , & isc . mc , isc . id , & base -> e_name , & base -> e_nname ) ;\n isc . numrdns = 0 ;\n if ( isc . oscope == LDAP_SCOPE_ONELEVEL ) isc . oscope = LDAP_SCOPE_BASE ;\n rc = mdb_dn2id_walk ( op , & isc ) ;\n if ( ! rc ) {\n id = isc . id ;\n break ;\n }\n }\n }\n }\n else id = isc . id ;\n }\n else {\n id = mdb_idl_next ( candidates , & cursor ) ;\n }\n }\n nochange : rs -> sr_ctrls = NULL ;\n rs -> sr_ref = rs -> sr_v2ref ;\n rs -> sr_err = ( rs -> sr_v2ref == NULL ) ? LDAP_SUCCESS : LDAP_REFERRAL ;\n rs -> sr_rspoid = NULL ;\n if ( get_pagedresults ( op ) > SLAP_CONTROL_IGNORED ) {\n send_paged_response ( op , rs , NULL , 0 ) ;\n }\n else {\n send_ldap_result ( op , rs ) ;\n }\n rs -> sr_err = LDAP_SUCCESS ;\n done : if ( cb . sc_private ) {\n slap_callback * * scp = & op -> o_callback ;\n while ( * scp ) {\n if ( * scp == & cb ) {\n * scp = cb . sc_next ;\n cb . sc_private = NULL ;\n break ;\n }\n }\n }\n mdb_cursor_close ( mcd ) ;\n mdb_cursor_close ( mci ) ;\n if ( moi == & opinfo ) {\n mdb_txn_reset ( moi -> moi_txn ) ;\n LDAP_SLIST_REMOVE ( & op -> o_extra , & moi -> moi_oe , OpExtra , oe_next ) ;\n }\n else {\n moi -> moi_ref -- ;\n }\n if ( rs -> sr_v2ref ) {\n ber_bvarray_free ( rs -> sr_v2ref ) ;\n rs -> sr_v2ref = NULL ;\n }\n if ( base ) mdb_entry_return ( op , base ) ;\n scope_chunk_ret ( op , scopes ) ;\n return rs -> sr_err ;\n }"}
{"idx": 14136, "target": 0, "func": "ParseResult validate_hdr_host ( HTTPHdrImpl * hh ) {\n ParseResult ret = PARSE_RESULT_DONE ;\n MIMEField * host_field = mime_hdr_field_find ( hh -> m_fields_impl , MIME_FIELD_HOST , MIME_LEN_HOST ) ;\n if ( host_field ) {\n if ( host_field -> has_dups ( ) ) {\n ret = PARSE_RESULT_ERROR ;\n }\n else {\n int host_len = 0 ;\n const char * host_val = host_field -> value_get ( & host_len ) ;\n ts : : ConstBuffer addr , port , rest , host ( host_val , host_len ) ;\n if ( 0 == ats_ip_parse ( host , & addr , & port , & rest ) ) {\n if ( port ) {\n if ( port . size ( ) > 5 ) {\n return PARSE_RESULT_ERROR ;\n }\n int port_i = ink_atoi ( port . data ( ) , port . size ( ) ) ;\n if ( port_i >= 65536 || port_i <= 0 ) {\n return PARSE_RESULT_ERROR ;\n }\n }\n if ( ! validate_host_name ( addr ) ) {\n return PARSE_RESULT_ERROR ;\n }\n while ( rest && PARSE_RESULT_DONE == ret ) {\n if ( ! ParseRules : : is_ws ( * rest ) ) {\n return PARSE_RESULT_ERROR ;\n }\n ++ rest ;\n }\n }\n else {\n ret = PARSE_RESULT_ERROR ;\n }\n }\n }\n return ret ;\n }"}
{"idx": 14137, "target": 0, "func": "proto_item * proto_tree_add_uint_format_value ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , guint32 value , const char * format , ... ) {\n proto_item * pi ;\n va_list ap ;\n pi = proto_tree_add_uint ( tree , hfindex , tvb , start , length , value ) ;\n if ( pi != tree ) {\n va_start ( ap , format ) ;\n proto_tree_set_representation_value ( pi , format , ap ) ;\n va_end ( ap ) ;\n }\n return pi ;\n }"}
{"idx": 14138, "target": 0, "func": "static const char * cmd_default_action ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n extern msc_engine * modsecurity ;\n char * my_error_msg = NULL ;\n dcfg -> tmp_default_actionset = msre_actionset_create ( modsecurity -> msre , p1 , & my_error_msg ) ;\n if ( dcfg -> tmp_default_actionset == NULL ) {\n if ( my_error_msg != NULL ) return my_error_msg ;\n else return FATAL_ERROR ;\n }\n if ( dcfg -> tmp_default_actionset -> intercept_action == NOT_SET ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: SecDefaultAction must specify a disruptive action.\" ) ;\n }\n if ( dcfg -> tmp_default_actionset -> phase == NOT_SET ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: SecDefaultAction must specify a phase.\" ) ;\n }\n if ( ( dcfg -> tmp_default_actionset -> id != NOT_SET_P ) || ( dcfg -> tmp_default_actionset -> rev != NOT_SET_P ) || ( dcfg -> tmp_default_actionset -> version != NOT_SET_P ) || ( dcfg -> tmp_default_actionset -> maturity != NOT_SET ) || ( dcfg -> tmp_default_actionset -> accuracy != NOT_SET ) || ( dcfg -> tmp_default_actionset -> msg != NOT_SET_P ) ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: SecDefaultAction must not \" \"contain any metadata actions (id, rev, msg, tag, severity, ver, accuracy, maturity, logdata).\" ) ;\n }\n if ( ( dcfg -> tmp_default_actionset -> severity != NOT_SET ) || ( dcfg -> tmp_default_actionset -> logdata != NOT_SET_P ) ) {\n ap_log_perror ( APLOG_MARK , APLOG_STARTUP | APLOG_WARNING | APLOG_NOERRNO , 0 , cmd -> pool , \"ModSecurity: WARNING Using \\\"severity\\\" or \\\"logdata\\\" in \" \"SecDefaultAction is deprecated (%s:%d).\" , cmd -> directive -> filename , cmd -> directive -> line_num ) ;\n }\n if ( apr_table_get ( dcfg -> tmp_default_actionset -> actions , \"t\" ) ) {\n ap_log_perror ( APLOG_MARK , APLOG_STARTUP | APLOG_WARNING | APLOG_NOERRNO , 0 , cmd -> pool , \"ModSecurity: WARNING Using transformations in \" \"SecDefaultAction is deprecated (%s:%d).\" , cmd -> directive -> filename , cmd -> directive -> line_num ) ;\n }\n if ( dcfg -> tmp_default_actionset -> is_chained != NOT_SET ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: SecDefaultAction must not \" \"contain a chain action.\" ) ;\n }\n if ( dcfg -> tmp_default_actionset -> skip_count != NOT_SET ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: SecDefaultAction must not \" \"contain a skip action.\" ) ;\n }\n if ( dcfg -> tmp_default_actionset -> skip_after != NOT_SET_P ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: SecDefaultAction must not \" \"contain a skipAfter action.\" ) ;\n }\n return NULL ;\n }"}
{"idx": 14139, "target": 0, "func": "static bool script_support_content ( struct mail_user * user , const char * * content_type , const char * filename ) {\n struct fts_parser_script_user * suser = SCRIPT_USER_CONTEXT ( user ) ;\n const struct content * content ;\n const char * extension ;\n if ( suser == NULL ) {\n suser = p_new ( user -> pool , struct fts_parser_script_user , 1 ) ;\n p_array_init ( & suser -> content , user -> pool , 32 ) ;\n MODULE_CONTEXT_SET ( user , fts_parser_script_user_module , suser ) ;\n }\n if ( array_count ( & suser -> content ) == 0 ) {\n if ( script_contents_read ( user ) < 0 ) return FALSE ;\n }\n if ( strcmp ( * content_type , \"application/octet-stream\" ) == 0 ) {\n if ( filename == NULL ) return FALSE ;\n extension = strrchr ( filename , '.' ) ;\n if ( extension == NULL ) return FALSE ;\n extension = filename + 1 ;\n array_foreach ( & suser -> content , content ) {\n if ( content -> extensions != NULL && str_array_icase_find ( content -> extensions , extension ) ) {\n * content_type = content -> content_type ;\n return TRUE ;\n }\n }\n }\n else {\n array_foreach ( & suser -> content , content ) {\n if ( strcmp ( content -> content_type , * content_type ) == 0 ) return TRUE ;\n }\n }\n return FALSE ;\n }"}
{"idx": 14140, "target": 0, "func": "static uint64_t cchip_read ( void * opaque , hwaddr addr , unsigned size ) {\n CPUState * cpu = current_cpu ;\n TyphoonState * s = opaque ;\n uint64_t ret = 0 ;\n if ( addr & 4 ) {\n return s -> latch_tmp ;\n }\n switch ( addr ) {\n case 0x0000 : break ;\n case 0x0040 : break ;\n case 0x0080 : ret = s -> cchip . misc | ( cpu -> cpu_index & 3 ) ;\n break ;\n case 0x00c0 : break ;\n case 0x0100 : case 0x0140 : case 0x0180 : case 0x01c0 : break ;\n case 0x0200 : ret = s -> cchip . dim [ 0 ] ;\n break ;\n case 0x0240 : ret = s -> cchip . dim [ 1 ] ;\n break ;\n case 0x0280 : ret = s -> cchip . dim [ 0 ] & s -> cchip . drir ;\n break ;\n case 0x02c0 : ret = s -> cchip . dim [ 1 ] & s -> cchip . drir ;\n break ;\n case 0x0300 : ret = s -> cchip . drir ;\n break ;\n case 0x0340 : break ;\n case 0x0380 : ret = s -> cchip . iic [ 0 ] ;\n break ;\n case 0x03c0 : ret = s -> cchip . iic [ 1 ] ;\n break ;\n case 0x0400 : case 0x0440 : case 0x0480 : case 0x04c0 : break ;\n case 0x0580 : break ;\n case 0x05c0 : break ;\n case 0x0600 : ret = s -> cchip . dim [ 2 ] ;\n break ;\n case 0x0640 : ret = s -> cchip . dim [ 3 ] ;\n break ;\n case 0x0680 : ret = s -> cchip . dim [ 2 ] & s -> cchip . drir ;\n break ;\n case 0x06c0 : ret = s -> cchip . dim [ 3 ] & s -> cchip . drir ;\n break ;\n case 0x0700 : ret = s -> cchip . iic [ 2 ] ;\n break ;\n case 0x0740 : ret = s -> cchip . iic [ 3 ] ;\n break ;\n case 0x0780 : break ;\n case 0x0c00 : case 0x0c40 : case 0x0c80 : case 0x0cc0 : break ;\n default : cpu_unassigned_access ( cpu , addr , false , false , 0 , size ) ;\n return - 1 ;\n }\n s -> latch_tmp = ret >> 32 ;\n return ret ;\n }"}
{"idx": 14141, "target": 0, "func": "static inline void frame_block_to_cell ( uint8_t * block , uint8_t * const * data , int top , int left , const int * stride ) {\n int i , j , u = 0 , v = 0 ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n int x = ( top + i ) * stride [ 0 ] + left + j ;\n * block ++ = data [ 0 ] [ x ] ;\n x = ( top + i ) * stride [ 1 ] + left + j ;\n u += data [ 1 ] [ x ] ;\n v += data [ 2 ] [ x ] ;\n }\n * block ++ = ( u + 2 ) / 4 ;\n * block ++ = ( v + 2 ) / 4 ;\n }"}
{"idx": 14142, "target": 0, "func": "static void build_dcblock ( MACROBLOCK * x ) {\n short * src_diff_ptr = & x -> src_diff [ 384 ] ;\n int i ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n src_diff_ptr [ i ] = x -> coeff [ i * 16 ] ;\n }\n }"}
{"idx": 14143, "target": 1, "func": "static int RTP_packet ( void * ptr _U_ , packet_info * pinfo , epan_dissect_t * edt _U_ , void const * RTPinfo ) {\n voip_rtp_tapinfo_t * tapinfo = & the_tapinfo_rtp_struct ;\n voip_rtp_stream_info_t * tmp_listinfo ;\n voip_rtp_stream_info_t * strinfo = NULL ;\n GList * list ;\n struct _rtp_conversation_info * p_conv_data = NULL ;\n const struct _rtp_info * pi = ( const struct _rtp_info * ) RTPinfo ;\n if ( pi -> info_setup_frame_num == 0 ) {\n return 0 ;\n }\n # ifdef HAVE_LIBPORTAUDIO add_rtp_packet ( pi , pinfo ) ;\n # endif list = g_list_first ( tapinfo -> list ) ;\n while ( list ) {\n tmp_listinfo = ( voip_rtp_stream_info_t * ) list -> data ;\n if ( ( tmp_listinfo -> setup_frame_number == pi -> info_setup_frame_num ) && ( tmp_listinfo -> ssrc == pi -> info_sync_src ) && ( tmp_listinfo -> end_stream == FALSE ) ) {\n if ( tmp_listinfo -> pt != pi -> info_payload_type ) {\n tmp_listinfo -> end_stream = TRUE ;\n }\n else {\n strinfo = ( voip_rtp_stream_info_t * ) ( list -> data ) ;\n break ;\n }\n }\n list = g_list_next ( list ) ;\n }\n if ( ( rtp_evt_frame_num == pinfo -> fd -> num ) && ! strinfo && ( rtp_evt_end == TRUE ) ) {\n return 0 ;\n }\n if ( strinfo == NULL ) {\n strinfo = ( voip_rtp_stream_info_t * ) g_malloc ( sizeof ( voip_rtp_stream_info_t ) ) ;\n COPY_ADDRESS ( & ( strinfo -> src_addr ) , & ( pinfo -> src ) ) ;\n strinfo -> src_port = pinfo -> srcport ;\n COPY_ADDRESS ( & ( strinfo -> dest_addr ) , & ( pinfo -> dst ) ) ;\n strinfo -> dest_port = pinfo -> destport ;\n strinfo -> ssrc = pi -> info_sync_src ;\n strinfo -> end_stream = FALSE ;\n strinfo -> pt = pi -> info_payload_type ;\n strinfo -> pt_str = NULL ;\n strinfo -> is_srtp = pi -> info_is_srtp ;\n if ( ( strinfo -> pt >= PT_UNDF_96 ) && ( strinfo -> pt <= PT_UNDF_127 ) ) {\n p_conv_data = ( struct _rtp_conversation_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_get_id_by_filter_name ( \"rtp\" ) , 0 ) ;\n if ( p_conv_data && p_conv_data -> rtp_dyn_payload ) {\n encoding_name_and_rate_t * encoding_name_and_rate_pt = NULL ;\n encoding_name_and_rate_pt = ( encoding_name_and_rate_t * ) g_hash_table_lookup ( p_conv_data -> rtp_dyn_payload , & strinfo -> pt ) ;\n if ( encoding_name_and_rate_pt ) {\n strinfo -> pt_str = g_strdup ( encoding_name_and_rate_pt -> encoding_name ) ;\n }\n }\n }\n if ( ! strinfo -> pt_str ) strinfo -> pt_str = g_strdup ( val_to_str_ext ( strinfo -> pt , & rtp_payload_type_short_vals_ext , \"%u\" ) ) ;\n strinfo -> npackets = 0 ;\n strinfo -> start_fd = pinfo -> fd ;\n strinfo -> start_rel_ts = pinfo -> rel_ts ;\n strinfo -> setup_frame_number = pi -> info_setup_frame_num ;\n strinfo -> rtp_event = - 1 ;\n tapinfo -> list = g_list_prepend ( tapinfo -> list , strinfo ) ;\n }\n strinfo -> npackets ++ ;\n strinfo -> stop_fd = pinfo -> fd ;\n strinfo -> stop_rel_ts = pinfo -> rel_ts ;\n if ( rtp_evt_frame_num == pinfo -> fd -> num ) {\n strinfo -> rtp_event = rtp_evt ;\n if ( rtp_evt_end == TRUE ) {\n strinfo -> end_stream = TRUE ;\n }\n }\n the_tapinfo_struct . redraw = TRUE ;\n return 1 ;\n }"}
{"idx": 14144, "target": 0, "func": "static inline Float11 * i2f ( int i , Float11 * f ) {\n f -> sign = ( i < 0 ) ;\n if ( f -> sign ) i = - i ;\n f -> exp = av_log2_16bit ( i ) + ! ! i ;\n f -> mant = i ? ( i << 6 ) >> f -> exp : 1 << 5 ;\n return f ;\n }"}
{"idx": 14145, "target": 1, "func": "static void decrypt ( MPI output , MPI a , MPI b , ELG_secret_key * skey ) {\n MPI t1 = mpi_alloc_secure ( mpi_get_nlimbs ( skey -> p ) ) ;\n mpi_normalize ( a ) ;\n mpi_normalize ( b ) ;\n mpi_powm ( t1 , a , skey -> x , skey -> p ) ;\n mpi_invm ( t1 , t1 , skey -> p ) ;\n mpi_mulm ( output , b , t1 , skey -> p ) ;\n # if 0 if ( DBG_CIPHER ) {\n log_mpidump ( \"elg decrypted x= \" , skey -> x ) ;\n log_mpidump ( \"elg decrypted p= \" , skey -> p ) ;\n log_mpidump ( \"elg decrypted a= \" , a ) ;\n log_mpidump ( \"elg decrypted b= \" , b ) ;\n log_mpidump ( \"elg decrypted M= \" , output ) ;\n }\n # endif mpi_free ( t1 ) ;\n }"}
{"idx": 14146, "target": 0, "func": "guint16 elem_tv_short ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint8 iei , gint pdu_type , int idx , guint32 offset , const gchar * name_add ) {\n guint8 oct ;\n guint16 consumed ;\n guint32 curr_offset ;\n proto_tree * subtree ;\n proto_item * item ;\n value_string_ext elem_names_ext ;\n gint * elem_ett ;\n const gchar * elem_name ;\n guint16 ( * * elem_funcs ) ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string , int string_len ) ;\n curr_offset = offset ;\n consumed = 0 ;\n SET_ELEM_VARS ( pdu_type , elem_names_ext , elem_ett , elem_funcs , & ei_gsm_a_unknown_pdu_type ) ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n if ( ( oct & 0xf0 ) == ( iei & 0xf0 ) ) {\n elem_name = try_val_to_str_ext ( idx , & elem_names_ext ) ;\n if ( elem_name == NULL ) {\n proto_tree_add_expert_format ( tree , pinfo , & ei_gsm_a_unknown_element , tvb , curr_offset , - 1 , \"Unknown - aborting dissection%s\" , ( name_add == NULL ) || ( name_add [ 0 ] == '\\0' ) ? \"\" : name_add ) ;\n return consumed ;\n }\n subtree = proto_tree_add_subtree_format ( tree , tvb , curr_offset , - 1 , elem_ett [ idx ] , & item , \"%s%s\" , elem_name , ( name_add == NULL ) || ( name_add [ 0 ] == '\\0' ) ? \"\" : name_add ) ;\n proto_tree_add_uint_format_value ( subtree , hf_gsm_a_common_elem_id_f0 , tvb , curr_offset , 1 , oct , \"0x%1x-\" , oct >> 4 ) ;\n if ( elem_funcs [ idx ] == NULL ) {\n expert_add_info ( pinfo , item , & ei_gsm_a_no_element_dissector ) ;\n consumed ++ ;\n }\n else {\n gchar * a_add_string ;\n a_add_string = ( gchar * ) wmem_alloc ( wmem_packet_scope ( ) , 1024 ) ;\n a_add_string [ 0 ] = '\\0' ;\n consumed = ( * elem_funcs [ idx ] ) ( tvb , subtree , pinfo , curr_offset , RIGHT_NIBBLE , a_add_string , 1024 ) ;\n if ( a_add_string [ 0 ] != '\\0' ) {\n proto_item_append_text ( item , \"%s\" , a_add_string ) ;\n }\n }\n proto_item_set_len ( item , consumed ) ;\n }\n return consumed ;\n }"}
{"idx": 14147, "target": 0, "func": "static void read_guest_rom_state ( VAPICROMState * s ) {\n cpu_physical_memory_rw ( s -> rom_state_paddr , ( void * ) & s -> rom_state , sizeof ( GuestROMState ) , 0 ) ;\n }"}
{"idx": 14148, "target": 0, "func": "static void systick_reload ( nvic_state * s , int reset ) {\n if ( reset ) s -> systick . tick = qemu_get_clock_ns ( vm_clock ) ;\n s -> systick . tick += ( s -> systick . reload + 1 ) * systick_scale ( s ) ;\n qemu_mod_timer ( s -> systick . timer , s -> systick . tick ) ;\n }"}
{"idx": 14149, "target": 0, "func": "static const char * cmd_xml_external_entity ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n if ( dcfg == NULL ) return NULL ;\n if ( strcasecmp ( p1 , \"on\" ) == 0 ) {\n dcfg -> xml_external_entity = 1 ;\n }\n else if ( strcasecmp ( p1 , \"off\" ) == 0 ) {\n dcfg -> xml_external_entity = 0 ;\n }\n else return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid value for SecXmlExternalEntity: %s\" , p1 ) ;\n return NULL ;\n }"}
{"idx": 14150, "target": 0, "func": "static cmsBool Type_Dictionary_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) {\n cmsHANDLE hDict = ( cmsHANDLE ) Ptr ;\n const cmsDICTentry * p ;\n cmsBool AnyName , AnyValue ;\n cmsUInt32Number i , Count , Length ;\n cmsUInt32Number DirectoryPos , CurrentPos , BaseOffset ;\n _cmsDICarray a ;\n if ( hDict == NULL ) return FALSE ;\n BaseOffset = io -> Tell ( io ) - sizeof ( _cmsTagBase ) ;\n Count = 0 ;\n AnyName = FALSE ;\n AnyValue = FALSE ;\n for ( p = cmsDictGetEntryList ( hDict ) ;\n p != NULL ;\n p = cmsDictNextEntry ( p ) ) {\n if ( p -> DisplayName != NULL ) AnyName = TRUE ;\n if ( p -> DisplayValue != NULL ) AnyValue = TRUE ;\n Count ++ ;\n }\n Length = 16 ;\n if ( AnyName ) Length += 8 ;\n if ( AnyValue ) Length += 8 ;\n if ( ! _cmsWriteUInt32Number ( io , Count ) ) return FALSE ;\n if ( ! _cmsWriteUInt32Number ( io , Length ) ) return FALSE ;\n DirectoryPos = io -> Tell ( io ) ;\n if ( ! AllocArray ( self -> ContextID , & a , Count , Length ) ) goto Error ;\n if ( ! WriteOffsetArray ( io , & a , Count , Length ) ) goto Error ;\n p = cmsDictGetEntryList ( hDict ) ;\n for ( i = 0 ;\n i < Count ;\n i ++ ) {\n if ( ! WriteOneWChar ( io , & a . Name , i , p -> Name , BaseOffset ) ) goto Error ;\n if ( ! WriteOneWChar ( io , & a . Value , i , p -> Value , BaseOffset ) ) goto Error ;\n if ( p -> DisplayName != NULL ) {\n if ( ! WriteOneMLUC ( self , io , & a . DisplayName , i , p -> DisplayName , BaseOffset ) ) goto Error ;\n }\n if ( p -> DisplayValue != NULL ) {\n if ( ! WriteOneMLUC ( self , io , & a . DisplayValue , i , p -> DisplayValue , BaseOffset ) ) goto Error ;\n }\n p = cmsDictNextEntry ( p ) ;\n }\n CurrentPos = io -> Tell ( io ) ;\n if ( ! io -> Seek ( io , DirectoryPos ) ) goto Error ;\n if ( ! WriteOffsetArray ( io , & a , Count , Length ) ) goto Error ;\n if ( ! io -> Seek ( io , CurrentPos ) ) goto Error ;\n FreeArray ( & a ) ;\n return TRUE ;\n Error : FreeArray ( & a ) ;\n return FALSE ;\n cmsUNUSED_PARAMETER ( nItems ) ;\n }"}
{"idx": 14151, "target": 0, "func": "static int tipc_nl_compat_name_table_dump ( struct tipc_nl_compat_msg * msg , struct nlattr * * attrs ) {\n char port_str [ 27 ] ;\n struct tipc_name_table_query * ntq ;\n struct nlattr * nt [ TIPC_NLA_NAME_TABLE_MAX + 1 ] ;\n struct nlattr * publ [ TIPC_NLA_PUBL_MAX + 1 ] ;\n u32 node , depth , type , lowbound , upbound ;\n static const char * const scope_str [ ] = {\n \"\" , \" zone\" , \" cluster\" , \" node\" }\n ;\n int err ;\n if ( ! attrs [ TIPC_NLA_NAME_TABLE ] ) return - EINVAL ;\n err = nla_parse_nested ( nt , TIPC_NLA_NAME_TABLE_MAX , attrs [ TIPC_NLA_NAME_TABLE ] , NULL ) ;\n if ( err ) return err ;\n if ( ! nt [ TIPC_NLA_NAME_TABLE_PUBL ] ) return - EINVAL ;\n err = nla_parse_nested ( publ , TIPC_NLA_PUBL_MAX , nt [ TIPC_NLA_NAME_TABLE_PUBL ] , NULL ) ;\n if ( err ) return err ;\n ntq = ( struct tipc_name_table_query * ) TLV_DATA ( msg -> req ) ;\n depth = ntohl ( ntq -> depth ) ;\n type = ntohl ( ntq -> type ) ;\n lowbound = ntohl ( ntq -> lowbound ) ;\n upbound = ntohl ( ntq -> upbound ) ;\n if ( ! ( depth & TIPC_NTQ_ALLTYPES ) && ( type != nla_get_u32 ( publ [ TIPC_NLA_PUBL_TYPE ] ) ) ) return 0 ;\n if ( lowbound && ( lowbound > nla_get_u32 ( publ [ TIPC_NLA_PUBL_UPPER ] ) ) ) return 0 ;\n if ( upbound && ( upbound < nla_get_u32 ( publ [ TIPC_NLA_PUBL_LOWER ] ) ) ) return 0 ;\n tipc_tlv_sprintf ( msg -> rep , \"%-10u \" , nla_get_u32 ( publ [ TIPC_NLA_PUBL_TYPE ] ) ) ;\n if ( depth == 1 ) goto out ;\n tipc_tlv_sprintf ( msg -> rep , \"%-10u %-10u \" , nla_get_u32 ( publ [ TIPC_NLA_PUBL_LOWER ] ) , nla_get_u32 ( publ [ TIPC_NLA_PUBL_UPPER ] ) ) ;\n if ( depth == 2 ) goto out ;\n node = nla_get_u32 ( publ [ TIPC_NLA_PUBL_NODE ] ) ;\n sprintf ( port_str , \"<%u.%u.%u:%u>\" , tipc_zone ( node ) , tipc_cluster ( node ) , tipc_node ( node ) , nla_get_u32 ( publ [ TIPC_NLA_PUBL_REF ] ) ) ;\n tipc_tlv_sprintf ( msg -> rep , \"%-26s \" , port_str ) ;\n if ( depth == 3 ) goto out ;\n tipc_tlv_sprintf ( msg -> rep , \"%-10u %s\" , nla_get_u32 ( publ [ TIPC_NLA_PUBL_KEY ] ) , scope_str [ nla_get_u32 ( publ [ TIPC_NLA_PUBL_SCOPE ] ) ] ) ;\n out : tipc_tlv_sprintf ( msg -> rep , \"\\n\" ) ;\n return 0 ;\n }"}
{"idx": 14152, "target": 0, "func": "static int pfkey_sockaddr_extract ( const struct sockaddr * sa , xfrm_address_t * xaddr ) {\n switch ( sa -> sa_family ) {\n case AF_INET : xaddr -> a4 = ( ( struct sockaddr_in * ) sa ) -> sin_addr . s_addr ;\n return AF_INET ;\n # if IS_ENABLED ( CONFIG_IPV6 ) case AF_INET6 : memcpy ( xaddr -> a6 , & ( ( struct sockaddr_in6 * ) sa ) -> sin6_addr , sizeof ( struct in6_addr ) ) ;\n return AF_INET6 ;\n # endif }\n return 0 ;\n }"}
{"idx": 14153, "target": 0, "func": "static inline void e1000e_intrmgr_rearm_timer ( E1000IntrDelayTimer * timer ) {\n int64_t delay_ns = ( int64_t ) timer -> core -> mac [ timer -> delay_reg ] * timer -> delay_resolution_ns ;\n trace_e1000e_irq_rearm_timer ( timer -> delay_reg << 2 , delay_ns ) ;\n timer_mod ( timer -> timer , qemu_clock_get_ns ( QEMU_CLOCK_VIRTUAL ) + delay_ns ) ;\n timer -> running = true ;\n }"}
{"idx": 14154, "target": 0, "func": "static void mspack_fmap_close ( struct mspack_file * file ) {\n struct mspack_handle * mspack_handle = ( struct mspack_handle * ) file ;\n if ( ! mspack_handle ) return ;\n if ( mspack_handle -> type == FILETYPE_FILENAME ) fclose ( mspack_handle -> f ) ;\n free ( mspack_handle ) ;\n }"}
{"idx": 14155, "target": 1, "func": "int vpx_svc_is_keyframe ( const SvcContext * svc_ctx ) {\n const SvcInternal * const si = get_const_svc_internal ( svc_ctx ) ;\n if ( svc_ctx == NULL || si == NULL || si -> frame_list == NULL ) return 0 ;\n return ( si -> frame_list -> flags & VPX_FRAME_IS_KEY ) != 0 ;\n }"}
{"idx": 14156, "target": 0, "func": "void vmxnet_tx_pkt_reset ( struct VmxnetTxPkt * pkt ) {\n int i ;\n if ( ! pkt ) {\n return ;\n }\n memset ( & pkt -> virt_hdr , 0 , sizeof ( pkt -> virt_hdr ) ) ;\n g_free ( pkt -> vec [ VMXNET_TX_PKT_L3HDR_FRAG ] . iov_base ) ;\n pkt -> vec [ VMXNET_TX_PKT_L3HDR_FRAG ] . iov_base = NULL ;\n assert ( pkt -> vec ) ;\n for ( i = VMXNET_TX_PKT_L2HDR_FRAG ;\n i < pkt -> payload_frags + VMXNET_TX_PKT_PL_START_FRAG ;\n i ++ ) {\n pkt -> vec [ i ] . iov_len = 0 ;\n }\n pkt -> payload_len = 0 ;\n pkt -> payload_frags = 0 ;\n assert ( pkt -> raw ) ;\n for ( i = 0 ;\n i < pkt -> raw_frags ;\n i ++ ) {\n assert ( pkt -> raw [ i ] . iov_base ) ;\n cpu_physical_memory_unmap ( pkt -> raw [ i ] . iov_base , pkt -> raw [ i ] . iov_len , false , pkt -> raw [ i ] . iov_len ) ;\n pkt -> raw [ i ] . iov_len = 0 ;\n }\n pkt -> raw_frags = 0 ;\n pkt -> hdr_len = 0 ;\n pkt -> packet_type = 0 ;\n pkt -> l4proto = 0 ;\n }"}
{"idx": 14157, "target": 0, "func": "void ff_h264_hl_decode_mb ( H264Context * h ) {\n const int mb_xy = h -> mb_xy ;\n const int mb_type = h -> cur_pic . mb_type [ mb_xy ] ;\n int is_complex = CONFIG_SMALL || h -> is_complex || IS_INTRA_PCM ( mb_type ) || h -> qscale == 0 ;\n if ( CHROMA444 ( h ) ) {\n if ( is_complex || h -> pixel_shift ) hl_decode_mb_444_complex ( h ) ;\n else hl_decode_mb_444_simple_8 ( h ) ;\n }\n else if ( is_complex ) {\n hl_decode_mb_complex ( h ) ;\n }\n else if ( h -> pixel_shift ) {\n hl_decode_mb_simple_16 ( h ) ;\n }\n else hl_decode_mb_simple_8 ( h ) ;\n }"}
{"idx": 14158, "target": 0, "func": "struct zip_cdir * _zip_cdir_new ( int nentry , struct zip_error * error ) {\n struct zip_cdir * cd ;\n if ( ( cd = ( struct zip_cdir * ) malloc ( sizeof ( * cd ) ) ) == NULL ) {\n _zip_error_set ( error , ZIP_ER_MEMORY , 0 ) ;\n return NULL ;\n }\n if ( nentry > ( ( size_t ) - 1 ) / sizeof ( * ( cd -> entry ) ) || ( cd -> entry = ( struct zip_dirent * ) malloc ( sizeof ( * ( cd -> entry ) ) * ( size_t ) nentry ) ) == NULL ) {\n _zip_error_set ( error , ZIP_ER_MEMORY , 0 ) ;\n free ( cd ) ;\n return NULL ;\n }\n cd -> nentry = nentry ;\n cd -> size = cd -> offset = 0 ;\n cd -> comment = NULL ;\n cd -> comment_len = 0 ;\n return cd ;\n }"}
{"idx": 14159, "target": 0, "func": "static void encode_seq_header ( VC2EncContext * s ) {\n avpriv_align_put_bits ( & s -> pb ) ;\n encode_parse_params ( s ) ;\n put_vc2_ue_uint ( & s -> pb , s -> base_vf ) ;\n encode_source_params ( s ) ;\n put_vc2_ue_uint ( & s -> pb , s -> interlaced ) ;\n }"}
{"idx": 14160, "target": 0, "func": "static void fill_token_costs ( vp9_coeff_cost * c , vp9_coeff_probs_model ( * p ) [ PLANE_TYPES ] ) {\n int i , j , k , l ;\n TX_SIZE t ;\n for ( t = TX_4X4 ;\n t <= TX_32X32 ;\n ++ t ) for ( i = 0 ;\n i < PLANE_TYPES ;\n ++ i ) for ( j = 0 ;\n j < REF_TYPES ;\n ++ j ) for ( k = 0 ;\n k < COEF_BANDS ;\n ++ k ) for ( l = 0 ;\n l < BAND_COEFF_CONTEXTS ( k ) ;\n ++ l ) {\n vp9_prob probs [ ENTROPY_NODES ] ;\n vp9_model_to_full_probs ( p [ t ] [ i ] [ j ] [ k ] [ l ] , probs ) ;\n vp9_cost_tokens ( ( int * ) c [ t ] [ i ] [ j ] [ k ] [ 0 ] [ l ] , probs , vp9_coef_tree ) ;\n vp9_cost_tokens_skip ( ( int * ) c [ t ] [ i ] [ j ] [ k ] [ 1 ] [ l ] , probs , vp9_coef_tree ) ;\n assert ( c [ t ] [ i ] [ j ] [ k ] [ 0 ] [ l ] [ EOB_TOKEN ] == c [ t ] [ i ] [ j ] [ k ] [ 1 ] [ l ] [ EOB_TOKEN ] ) ;\n }\n }"}
{"idx": 14161, "target": 0, "func": "static int ts_lua_http_config_float_get ( lua_State * L ) {\n int conf ;\n float value ;\n ts_lua_http_ctx * http_ctx ;\n GET_HTTP_CONTEXT ( http_ctx , L ) ;\n conf = luaL_checkinteger ( L , 1 ) ;\n TSHttpTxnConfigFloatGet ( http_ctx -> txnp , conf , & value ) ;\n lua_pushnumber ( L , value ) ;\n return 1 ;\n }"}
{"idx": 14162, "target": 0, "func": "static bool tsc_is_stable_and_known ( CPUX86State * env ) {\n if ( ! env -> tsc_khz ) {\n return false ;\n }\n return ( env -> features [ FEAT_8000_0007_EDX ] & CPUID_APM_INVTSC ) || env -> user_tsc_khz ;\n }"}
{"idx": 14163, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n NuvContext * c = avctx -> priv_data ;\n AVFrame * picture = data ;\n int orig_size = buf_size ;\n int keyframe ;\n int result , init_frame = ! avctx -> frame_number ;\n enum {\n NUV_UNCOMPRESSED = '0' , NUV_RTJPEG = '1' , NUV_RTJPEG_IN_LZO = '2' , NUV_LZO = '3' , NUV_BLACK = 'N' , NUV_COPY_LAST = 'L' }\n comptype ;\n if ( buf_size < 12 ) {\n av_log ( avctx , AV_LOG_ERROR , \"coded frame too small\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( buf [ 0 ] == 'D' && buf [ 1 ] == 'R' ) {\n int ret ;\n buf = & buf [ 12 ] ;\n buf_size -= 12 ;\n ret = get_quant ( avctx , c , buf , buf_size ) ;\n if ( ret < 0 ) return ret ;\n ff_rtjpeg_decode_init ( & c -> rtj , & c -> dsp , c -> width , c -> height , c -> lq , c -> cq ) ;\n return orig_size ;\n }\n if ( buf [ 0 ] != 'V' || buf_size < 12 ) {\n av_log ( avctx , AV_LOG_ERROR , \"not a nuv video frame\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n comptype = buf [ 1 ] ;\n switch ( comptype ) {\n case NUV_RTJPEG_IN_LZO : case NUV_RTJPEG : keyframe = ! buf [ 2 ] ;\n break ;\n case NUV_COPY_LAST : keyframe = 0 ;\n break ;\n default : keyframe = 1 ;\n break ;\n }\n buf = & buf [ 12 ] ;\n buf_size -= 12 ;\n if ( comptype == NUV_RTJPEG_IN_LZO || comptype == NUV_LZO ) {\n int outlen = c -> decomp_size , inlen = buf_size ;\n if ( av_lzo1x_decode ( c -> decomp_buf , & outlen , buf , & inlen ) ) av_log ( avctx , AV_LOG_ERROR , \"error during lzo decompression\\n\" ) ;\n buf = c -> decomp_buf ;\n buf_size = c -> decomp_size ;\n }\n if ( c -> codec_frameheader ) {\n int w , h , q ;\n if ( buf_size < RTJPEG_HEADER_SIZE || buf [ 4 ] != RTJPEG_HEADER_SIZE || buf [ 5 ] != RTJPEG_FILE_VERSION ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid nuv video frame\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n w = AV_RL16 ( & buf [ 6 ] ) ;\n h = AV_RL16 ( & buf [ 8 ] ) ;\n q = buf [ 10 ] ;\n if ( ( result = codec_reinit ( avctx , w , h , q ) ) < 0 ) return result ;\n buf = & buf [ RTJPEG_HEADER_SIZE ] ;\n buf_size -= RTJPEG_HEADER_SIZE ;\n }\n if ( keyframe && c -> pic . data [ 0 ] ) {\n avctx -> release_buffer ( avctx , & c -> pic ) ;\n init_frame = 1 ;\n }\n c -> pic . reference = 3 ;\n c -> pic . buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_READABLE | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE ;\n result = avctx -> reget_buffer ( avctx , & c -> pic ) ;\n if ( result < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return result ;\n }\n if ( init_frame ) {\n memset ( c -> pic . data [ 0 ] , 0 , avctx -> height * c -> pic . linesize [ 0 ] ) ;\n memset ( c -> pic . data [ 1 ] , 0x80 , avctx -> height * c -> pic . linesize [ 1 ] / 2 ) ;\n memset ( c -> pic . data [ 2 ] , 0x80 , avctx -> height * c -> pic . linesize [ 2 ] / 2 ) ;\n }\n c -> pic . pict_type = keyframe ? AV_PICTURE_TYPE_I : AV_PICTURE_TYPE_P ;\n c -> pic . key_frame = keyframe ;\n switch ( comptype ) {\n case NUV_LZO : case NUV_UNCOMPRESSED : {\n int height = c -> height ;\n if ( buf_size < c -> width * height * 3 / 2 ) {\n av_log ( avctx , AV_LOG_ERROR , \"uncompressed frame too short\\n\" ) ;\n height = buf_size / c -> width / 3 * 2 ;\n }\n copy_frame ( & c -> pic , buf , c -> width , height ) ;\n break ;\n }\n case NUV_RTJPEG_IN_LZO : case NUV_RTJPEG : ff_rtjpeg_decode_frame_yuv420 ( & c -> rtj , & c -> pic , buf , buf_size ) ;\n break ;\n case NUV_BLACK : memset ( c -> pic . data [ 0 ] , 0 , c -> width * c -> height ) ;\n memset ( c -> pic . data [ 1 ] , 128 , c -> width * c -> height / 4 ) ;\n memset ( c -> pic . data [ 2 ] , 128 , c -> width * c -> height / 4 ) ;\n break ;\n case NUV_COPY_LAST : break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"unknown compression\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n * picture = c -> pic ;\n * got_frame = 1 ;\n return orig_size ;\n }"}
{"idx": 14164, "target": 0, "func": "static const char * hfinfo_format_text ( const header_field_info * hfinfo , const guchar * string ) {\n switch ( hfinfo -> display ) {\n case STR_ASCII : return format_text ( string , strlen ( string ) ) ;\n case STR_UNICODE : return string ;\n }\n return format_text ( string , strlen ( string ) ) ;\n }"}
{"idx": 14165, "target": 0, "func": "static guint16 de_nw_call_ctrl_cap ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n curr_offset = offset ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( curr_offset << 3 ) , 7 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_mcs , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n EXTRANEOUS_DATA_CHECK ( len , curr_offset - offset , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n return ( len ) ;\n }"}
{"idx": 14166, "target": 0, "func": "static unsigned long do_compress ( void * * pptr , unsigned long size ) {\n git_zstream stream ;\n void * in , * out ;\n unsigned long maxsize ;\n git_deflate_init ( & stream , pack_compression_level ) ;\n maxsize = git_deflate_bound ( & stream , size ) ;\n in = * pptr ;\n out = xmalloc ( maxsize ) ;\n * pptr = out ;\n stream . next_in = in ;\n stream . avail_in = size ;\n stream . next_out = out ;\n stream . avail_out = maxsize ;\n while ( git_deflate ( & stream , Z_FINISH ) == Z_OK ) ;\n git_deflate_end ( & stream ) ;\n free ( in ) ;\n return stream . total_out ;\n }"}
{"idx": 14167, "target": 0, "func": "void PNGAPI png_set_text ( png_structp png_ptr , png_infop info_ptr , png_textp text_ptr , int num_text ) {\n int ret ;\n ret = png_set_text_2 ( png_ptr , info_ptr , text_ptr , num_text ) ;\n if ( ret ) png_error ( png_ptr , \"Insufficient memory to store text\" ) ;\n }"}
{"idx": 14168, "target": 0, "func": "static GstFlowReturn gst_asf_demux_push_complete_payloads ( GstASFDemux * demux , gboolean force ) {\n AsfStream * stream ;\n GstFlowReturn ret = GST_FLOW_OK ;\n if ( G_UNLIKELY ( ! demux -> activated_streams ) ) {\n if ( ! gst_asf_demux_check_activate_streams ( demux , force ) ) return GST_FLOW_OK ;\n }\n while ( ( stream = gst_asf_demux_find_stream_with_complete_payload ( demux ) ) ) {\n AsfPayload * payload ;\n GstClockTime timestamp = GST_CLOCK_TIME_NONE ;\n GstClockTime duration = GST_CLOCK_TIME_NONE ;\n if ( G_UNLIKELY ( demux -> need_newsegment && ! GST_CLOCK_TIME_IS_VALID ( demux -> segment_ts ) ) ) return GST_FLOW_OK ;\n if ( GST_ASF_DEMUX_IS_REVERSE_PLAYBACK ( demux -> segment ) && stream -> is_video && stream -> payloads -> len ) {\n payload = & g_array_index ( stream -> payloads , AsfPayload , stream -> kf_pos ) ;\n }\n else {\n payload = & g_array_index ( stream -> payloads , AsfPayload , 0 ) ;\n }\n if ( ( G_UNLIKELY ( demux -> need_newsegment ) ) ) {\n GstEvent * segment_event ;\n if ( ! GST_CLOCK_TIME_IS_VALID ( demux -> in_gap ) ) demux -> in_gap = 0 ;\n if ( demux -> segment . stop == GST_CLOCK_TIME_NONE && demux -> segment . duration > 0 ) {\n demux -> segment . stop = demux -> segment . duration + demux -> in_gap ;\n }\n if ( G_LIKELY ( ! demux -> keyunit_sync && ! demux -> accurate && ( GST_CLOCK_TIME_IS_VALID ( payload -> ts ) ) ) && ! GST_ASF_DEMUX_IS_REVERSE_PLAYBACK ( demux -> segment ) ) {\n GST_DEBUG ( \"Adjusting newsegment start to %\" GST_TIME_FORMAT , GST_TIME_ARGS ( payload -> ts ) ) ;\n demux -> segment . start = payload -> ts ;\n demux -> segment . time = payload -> ts ;\n }\n GST_DEBUG_OBJECT ( demux , \"sending new-segment event %\" GST_SEGMENT_FORMAT , & demux -> segment ) ;\n segment_event = gst_event_new_segment ( & demux -> segment ) ;\n if ( demux -> segment_seqnum ) gst_event_set_seqnum ( segment_event , demux -> segment_seqnum ) ;\n gst_asf_demux_send_event_unlocked ( demux , segment_event ) ;\n if ( demux -> taglist == NULL ) {\n demux -> taglist = gst_tag_list_new_empty ( ) ;\n gst_tag_list_set_scope ( demux -> taglist , GST_TAG_SCOPE_GLOBAL ) ;\n }\n gst_tag_list_add ( demux -> taglist , GST_TAG_MERGE_REPLACE , GST_TAG_CONTAINER_FORMAT , \"ASF\" , NULL ) ;\n GST_DEBUG_OBJECT ( demux , \"global tags: %\" GST_PTR_FORMAT , demux -> taglist ) ;\n gst_asf_demux_send_event_unlocked ( demux , gst_event_new_tag ( demux -> taglist ) ) ;\n demux -> taglist = NULL ;\n demux -> need_newsegment = FALSE ;\n demux -> segment_seqnum = 0 ;\n demux -> segment_running = TRUE ;\n }\n if ( G_UNLIKELY ( stream -> pending_tags ) ) {\n GST_LOG_OBJECT ( stream -> pad , \"%\" GST_PTR_FORMAT , stream -> pending_tags ) ;\n gst_pad_push_event ( stream -> pad , gst_event_new_tag ( stream -> pending_tags ) ) ;\n stream -> pending_tags = NULL ;\n }\n if ( G_UNLIKELY ( stream -> span > 1 ) ) {\n gst_asf_demux_descramble_buffer ( demux , stream , & payload -> buf ) ;\n }\n payload -> buf = gst_buffer_make_writable ( payload -> buf ) ;\n if ( G_LIKELY ( ! payload -> keyframe ) ) {\n GST_BUFFER_FLAG_SET ( payload -> buf , GST_BUFFER_FLAG_DELTA_UNIT ) ;\n }\n if ( G_UNLIKELY ( stream -> discont ) ) {\n GST_DEBUG_OBJECT ( stream -> pad , \"marking DISCONT on stream\" ) ;\n GST_BUFFER_FLAG_SET ( payload -> buf , GST_BUFFER_FLAG_DISCONT ) ;\n stream -> discont = FALSE ;\n }\n if ( G_UNLIKELY ( stream -> is_video && payload -> par_x && payload -> par_y && ( payload -> par_x != stream -> par_x ) && ( payload -> par_y != stream -> par_y ) ) ) {\n GST_DEBUG ( \"Updating PAR (%d/%d => %d/%d)\" , stream -> par_x , stream -> par_y , payload -> par_x , payload -> par_y ) ;\n stream -> par_x = payload -> par_x ;\n stream -> par_y = payload -> par_y ;\n stream -> caps = gst_caps_make_writable ( stream -> caps ) ;\n gst_caps_set_simple ( stream -> caps , \"pixel-aspect-ratio\" , GST_TYPE_FRACTION , stream -> par_x , stream -> par_y , NULL ) ;\n gst_pad_set_caps ( stream -> pad , stream -> caps ) ;\n }\n if ( G_UNLIKELY ( stream -> interlaced != payload -> interlaced ) ) {\n GST_DEBUG ( \"Updating interlaced status (%d => %d)\" , stream -> interlaced , payload -> interlaced ) ;\n stream -> interlaced = payload -> interlaced ;\n stream -> caps = gst_caps_make_writable ( stream -> caps ) ;\n gst_caps_set_simple ( stream -> caps , \"interlace-mode\" , G_TYPE_BOOLEAN , ( stream -> interlaced ? \"mixed\" : \"progressive\" ) , NULL ) ;\n gst_pad_set_caps ( stream -> pad , stream -> caps ) ;\n }\n timestamp = payload -> ts ;\n if ( GST_CLOCK_TIME_IS_VALID ( timestamp ) && ! GST_ASF_DEMUX_IS_REVERSE_PLAYBACK ( demux -> segment ) ) {\n timestamp += demux -> in_gap ;\n if ( demux -> segment . stop != - 1 && timestamp > demux -> segment . stop ) {\n GST_DEBUG_OBJECT ( stream -> pad , \"Payload after segment stop %\" GST_TIME_FORMAT , GST_TIME_ARGS ( demux -> segment . stop ) ) ;\n ret = gst_flow_combiner_update_pad_flow ( demux -> flowcombiner , stream -> pad , GST_FLOW_EOS ) ;\n gst_buffer_unref ( payload -> buf ) ;\n payload -> buf = NULL ;\n g_array_remove_index ( stream -> payloads , 0 ) ;\n if ( G_UNLIKELY ( ret != GST_FLOW_OK ) ) break ;\n continue ;\n }\n }\n GST_BUFFER_PTS ( payload -> buf ) = timestamp ;\n if ( payload -> duration == GST_CLOCK_TIME_NONE && stream -> ext_props . avg_time_per_frame != 0 ) {\n duration = stream -> ext_props . avg_time_per_frame * 100 ;\n }\n else {\n duration = payload -> duration ;\n }\n GST_BUFFER_DURATION ( payload -> buf ) = duration ;\n GST_LOG_OBJECT ( stream -> pad , \"pushing buffer, %\" GST_PTR_FORMAT , payload -> buf ) ;\n if ( GST_ASF_DEMUX_IS_REVERSE_PLAYBACK ( demux -> segment ) && stream -> is_video ) {\n if ( stream -> reverse_kf_ready == TRUE && stream -> kf_pos == 0 ) {\n GST_BUFFER_FLAG_SET ( payload -> buf , GST_BUFFER_FLAG_DISCONT ) ;\n }\n }\n else if ( GST_ASF_DEMUX_IS_REVERSE_PLAYBACK ( demux -> segment ) ) {\n GST_BUFFER_FLAG_SET ( payload -> buf , GST_BUFFER_FLAG_DISCONT ) ;\n }\n if ( stream -> active ) {\n if ( G_UNLIKELY ( stream -> first_buffer ) ) {\n if ( stream -> streamheader != NULL ) {\n GST_DEBUG_OBJECT ( stream -> pad , \"Pushing streamheader before first buffer\" ) ;\n gst_pad_push ( stream -> pad , gst_buffer_ref ( stream -> streamheader ) ) ;\n }\n stream -> first_buffer = FALSE ;\n }\n if ( GST_CLOCK_TIME_IS_VALID ( timestamp ) && timestamp > demux -> segment . position ) {\n demux -> segment . position = timestamp ;\n if ( GST_CLOCK_TIME_IS_VALID ( duration ) ) demux -> segment . position += timestamp ;\n }\n ret = gst_pad_push ( stream -> pad , payload -> buf ) ;\n ret = gst_flow_combiner_update_pad_flow ( demux -> flowcombiner , stream -> pad , ret ) ;\n }\n else {\n gst_buffer_unref ( payload -> buf ) ;\n ret = GST_FLOW_OK ;\n }\n payload -> buf = NULL ;\n if ( GST_ASF_DEMUX_IS_REVERSE_PLAYBACK ( demux -> segment ) && stream -> is_video && stream -> reverse_kf_ready ) {\n g_array_remove_index ( stream -> payloads , stream -> kf_pos ) ;\n stream -> kf_pos -- ;\n if ( stream -> reverse_kf_ready == TRUE && stream -> kf_pos < 0 ) {\n stream -> kf_pos = 0 ;\n stream -> reverse_kf_ready = FALSE ;\n }\n }\n else {\n g_array_remove_index ( stream -> payloads , 0 ) ;\n }\n if ( G_UNLIKELY ( ret != GST_FLOW_OK ) ) break ;\n }\n return ret ;\n }"}
{"idx": 14169, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , MAYBE_AbortClose ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n GURL url ( embedded_test_server ( ) -> GetURL ( \"/title1.html\" ) ) ;\n NavigateParams params ( browser ( ) , url , ui : : PAGE_TRANSITION_LINK ) ;\n content : : TestNavigationManager manager ( browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) , url ) ;\n Navigate ( & params ) ;\n EXPECT_TRUE ( manager . WaitForRequestStart ( ) ) ;\n browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) -> Close ( ) ;\n manager . WaitForNavigationFinished ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramAbortCloseBeforeCommit , 1 ) ;\n }"}
{"idx": 14170, "target": 0, "func": "void ber_decode_as ( const gchar * syntax ) {\n if ( decode_as_syntax ) {\n g_free ( decode_as_syntax ) ;\n decode_as_syntax = NULL ;\n }\n if ( syntax ) decode_as_syntax = g_strdup ( syntax ) ;\n }"}
{"idx": 14171, "target": 0, "func": "TEST_F ( BrowsingDataRemoverImplTest , RemoveProtectedLocalStorageForever ) {\n # if BUILDFLAG ( ENABLE_EXTENSIONS ) MockExtensionSpecialStoragePolicy * policy = CreateMockPolicy ( ) ;\n policy -> AddProtected ( kOrigin1 . GetOrigin ( ) ) ;\n # endif BlockUntilBrowsingDataRemoved ( base : : Time ( ) , base : : Time : : Max ( ) , BrowsingDataRemover : : REMOVE_LOCAL_STORAGE , true ) ;\n EXPECT_EQ ( BrowsingDataRemover : : REMOVE_LOCAL_STORAGE , GetRemovalMask ( ) ) ;\n EXPECT_EQ ( BrowsingDataHelper : : UNPROTECTED_WEB | BrowsingDataHelper : : PROTECTED_WEB , GetOriginTypeMask ( ) ) ;\n StoragePartitionRemovalData removal_data = GetStoragePartitionRemovalData ( ) ;\n EXPECT_EQ ( removal_data . remove_mask , StoragePartition : : REMOVE_DATA_MASK_LOCAL_STORAGE ) ;\n EXPECT_EQ ( removal_data . quota_storage_remove_mask , StoragePartition : : QUOTA_MANAGED_STORAGE_MASK_ALL ) ;\n EXPECT_EQ ( removal_data . remove_begin , GetBeginTime ( ) ) ;\n EXPECT_TRUE ( removal_data . origin_matcher . Run ( kOrigin1 , mock_policy ( ) ) ) ;\n EXPECT_TRUE ( removal_data . origin_matcher . Run ( kOrigin2 , mock_policy ( ) ) ) ;\n EXPECT_TRUE ( removal_data . origin_matcher . Run ( kOrigin3 , mock_policy ( ) ) ) ;\n EXPECT_FALSE ( removal_data . origin_matcher . Run ( kOriginExt , mock_policy ( ) ) ) ;\n }"}
{"idx": 14172, "target": 0, "func": "Tuplestorestate * ExecMakeTableFunctionResult ( ExprState * funcexpr , ExprContext * econtext , MemoryContext argContext , TupleDesc expectedDesc , bool randomAccess ) {\n Tuplestorestate * tupstore = NULL ;\n TupleDesc tupdesc = NULL ;\n Oid funcrettype ;\n bool returnsTuple ;\n bool returnsSet = false ;\n FunctionCallInfoData fcinfo ;\n PgStat_FunctionCallUsage fcusage ;\n ReturnSetInfo rsinfo ;\n HeapTupleData tmptup ;\n MemoryContext callerContext ;\n MemoryContext oldcontext ;\n bool direct_function_call ;\n bool first_time = true ;\n callerContext = CurrentMemoryContext ;\n funcrettype = exprType ( ( Node * ) funcexpr -> expr ) ;\n returnsTuple = type_is_rowtype ( funcrettype ) ;\n rsinfo . type = T_ReturnSetInfo ;\n rsinfo . econtext = econtext ;\n rsinfo . expectedDesc = expectedDesc ;\n rsinfo . allowedModes = ( int ) ( SFRM_ValuePerCall | SFRM_Materialize | SFRM_Materialize_Preferred ) ;\n if ( randomAccess ) rsinfo . allowedModes |= ( int ) SFRM_Materialize_Random ;\n rsinfo . returnMode = SFRM_ValuePerCall ;\n rsinfo . setResult = NULL ;\n rsinfo . setDesc = NULL ;\n if ( funcexpr && IsA ( funcexpr , FuncExprState ) && IsA ( funcexpr -> expr , FuncExpr ) ) {\n FuncExprState * fcache = ( FuncExprState * ) funcexpr ;\n ExprDoneCond argDone ;\n direct_function_call = true ;\n if ( fcache -> func . fn_oid == InvalidOid ) {\n FuncExpr * func = ( FuncExpr * ) fcache -> xprstate . expr ;\n init_fcache ( func -> funcid , func -> inputcollid , fcache , econtext -> ecxt_per_query_memory , false ) ;\n }\n returnsSet = fcache -> func . fn_retset ;\n InitFunctionCallInfoData ( fcinfo , & ( fcache -> func ) , list_length ( fcache -> args ) , fcache -> fcinfo_data . fncollation , NULL , ( Node * ) & rsinfo ) ;\n MemoryContextReset ( argContext ) ;\n oldcontext = MemoryContextSwitchTo ( argContext ) ;\n argDone = ExecEvalFuncArgs ( & fcinfo , fcache -> args , econtext ) ;\n MemoryContextSwitchTo ( oldcontext ) ;\n if ( argDone != ExprSingleResult ) ereport ( ERROR , ( errcode ( ERRCODE_FEATURE_NOT_SUPPORTED ) , errmsg ( \"set-valued function called in context that cannot accept a set\" ) ) ) ;\n if ( fcache -> func . fn_strict ) {\n int i ;\n for ( i = 0 ;\n i < fcinfo . nargs ;\n i ++ ) {\n if ( fcinfo . argnull [ i ] ) goto no_function_result ;\n }\n }\n }\n else {\n direct_function_call = false ;\n InitFunctionCallInfoData ( fcinfo , NULL , 0 , InvalidOid , NULL , NULL ) ;\n }\n MemoryContextSwitchTo ( econtext -> ecxt_per_tuple_memory ) ;\n for ( ;\n ;\n ) {\n Datum result ;\n CHECK_FOR_INTERRUPTS ( ) ;\n ResetExprContext ( econtext ) ;\n if ( direct_function_call ) {\n pgstat_init_function_usage ( & fcinfo , & fcusage ) ;\n fcinfo . isnull = false ;\n rsinfo . isDone = ExprSingleResult ;\n result = FunctionCallInvoke ( & fcinfo ) ;\n pgstat_end_function_usage ( & fcusage , rsinfo . isDone != ExprMultipleResult ) ;\n }\n else {\n result = ExecEvalExpr ( funcexpr , econtext , & fcinfo . isnull , & rsinfo . isDone ) ;\n }\n if ( rsinfo . returnMode == SFRM_ValuePerCall ) {\n if ( rsinfo . isDone == ExprEndResult ) break ;\n if ( first_time ) {\n oldcontext = MemoryContextSwitchTo ( econtext -> ecxt_per_query_memory ) ;\n tupstore = tuplestore_begin_heap ( randomAccess , false , work_mem ) ;\n rsinfo . setResult = tupstore ;\n if ( ! returnsTuple ) {\n tupdesc = CreateTemplateTupleDesc ( 1 , false ) ;\n TupleDescInitEntry ( tupdesc , ( AttrNumber ) 1 , \"column\" , funcrettype , - 1 , 0 ) ;\n rsinfo . setDesc = tupdesc ;\n }\n MemoryContextSwitchTo ( oldcontext ) ;\n }\n if ( returnsTuple ) {\n if ( ! fcinfo . isnull ) {\n HeapTupleHeader td = DatumGetHeapTupleHeader ( result ) ;\n if ( tupdesc == NULL ) {\n oldcontext = MemoryContextSwitchTo ( econtext -> ecxt_per_query_memory ) ;\n tupdesc = lookup_rowtype_tupdesc_copy ( HeapTupleHeaderGetTypeId ( td ) , HeapTupleHeaderGetTypMod ( td ) ) ;\n rsinfo . setDesc = tupdesc ;\n MemoryContextSwitchTo ( oldcontext ) ;\n }\n else {\n if ( HeapTupleHeaderGetTypeId ( td ) != tupdesc -> tdtypeid || HeapTupleHeaderGetTypMod ( td ) != tupdesc -> tdtypmod ) ereport ( ERROR , ( errcode ( ERRCODE_DATATYPE_MISMATCH ) , errmsg ( \"rows returned by function are not all of the same row type\" ) ) ) ;\n }\n tmptup . t_len = HeapTupleHeaderGetDatumLength ( td ) ;\n tmptup . t_data = td ;\n tuplestore_puttuple ( tupstore , & tmptup ) ;\n }\n else {\n int natts = expectedDesc -> natts ;\n bool * nullflags ;\n nullflags = ( bool * ) palloc ( natts * sizeof ( bool ) ) ;\n memset ( nullflags , true , natts * sizeof ( bool ) ) ;\n tuplestore_putvalues ( tupstore , expectedDesc , NULL , nullflags ) ;\n }\n }\n else {\n tuplestore_putvalues ( tupstore , tupdesc , & result , & fcinfo . isnull ) ;\n }\n if ( rsinfo . isDone != ExprMultipleResult ) break ;\n }\n else if ( rsinfo . returnMode == SFRM_Materialize ) {\n if ( ! first_time || rsinfo . isDone != ExprSingleResult ) ereport ( ERROR , ( errcode ( ERRCODE_E_R_I_E_SRF_PROTOCOL_VIOLATED ) , errmsg ( \"table-function protocol for materialize mode was not followed\" ) ) ) ;\n break ;\n }\n else ereport ( ERROR , ( errcode ( ERRCODE_E_R_I_E_SRF_PROTOCOL_VIOLATED ) , errmsg ( \"unrecognized table-function returnMode: %d\" , ( int ) rsinfo . returnMode ) ) ) ;\n first_time = false ;\n }\n no_function_result : if ( rsinfo . setResult == NULL ) {\n MemoryContextSwitchTo ( econtext -> ecxt_per_query_memory ) ;\n tupstore = tuplestore_begin_heap ( randomAccess , false , work_mem ) ;\n rsinfo . setResult = tupstore ;\n if ( ! returnsSet ) {\n int natts = expectedDesc -> natts ;\n bool * nullflags ;\n MemoryContextSwitchTo ( econtext -> ecxt_per_tuple_memory ) ;\n nullflags = ( bool * ) palloc ( natts * sizeof ( bool ) ) ;\n memset ( nullflags , true , natts * sizeof ( bool ) ) ;\n tuplestore_putvalues ( tupstore , expectedDesc , NULL , nullflags ) ;\n }\n }\n if ( rsinfo . setDesc ) {\n tupledesc_match ( expectedDesc , rsinfo . setDesc ) ;\n if ( rsinfo . setDesc -> tdrefcount == - 1 ) FreeTupleDesc ( rsinfo . setDesc ) ;\n }\n MemoryContextSwitchTo ( callerContext ) ;\n return rsinfo . setResult ;\n }"}
{"idx": 14173, "target": 0, "func": "static int netstat_seq_open ( struct inode * inode , struct file * file ) {\n return single_open_net ( inode , file , netstat_seq_show ) ;\n }"}
{"idx": 14174, "target": 0, "func": "static int mpeg_decode_postinit ( AVCodecContext * avctx ) {\n Mpeg1Context * s1 = avctx -> priv_data ;\n MpegEncContext * s = & s1 -> mpeg_enc_ctx ;\n uint8_t old_permutation [ 64 ] ;\n if ( ( s1 -> mpeg_enc_ctx_allocated == 0 ) || avctx -> coded_width != s -> width || avctx -> coded_height != s -> height || s1 -> save_width != s -> width || s1 -> save_height != s -> height || s1 -> save_aspect_info != s -> aspect_ratio_info || s1 -> save_progressive_seq != s -> progressive_sequence || 0 ) {\n if ( s1 -> mpeg_enc_ctx_allocated ) {\n ParseContext pc = s -> parse_context ;\n s -> parse_context . buffer = 0 ;\n ff_MPV_common_end ( s ) ;\n s -> parse_context = pc ;\n }\n if ( ( s -> width == 0 ) || ( s -> height == 0 ) ) return - 2 ;\n avcodec_set_dimensions ( avctx , s -> width , s -> height ) ;\n avctx -> bit_rate = s -> bit_rate ;\n s1 -> save_aspect_info = s -> aspect_ratio_info ;\n s1 -> save_width = s -> width ;\n s1 -> save_height = s -> height ;\n s1 -> save_progressive_seq = s -> progressive_sequence ;\n avctx -> has_b_frames = ! s -> low_delay ;\n if ( avctx -> codec_id == AV_CODEC_ID_MPEG1VIDEO ) {\n avctx -> time_base . den = ff_mpeg12_frame_rate_tab [ s -> frame_rate_index ] . num ;\n avctx -> time_base . num = ff_mpeg12_frame_rate_tab [ s -> frame_rate_index ] . den ;\n avctx -> sample_aspect_ratio = av_d2q ( 1.0 / ff_mpeg1_aspect [ s -> aspect_ratio_info ] , 255 ) ;\n avctx -> ticks_per_frame = 1 ;\n }\n else {\n av_reduce ( & s -> avctx -> time_base . den , & s -> avctx -> time_base . num , ff_mpeg12_frame_rate_tab [ s -> frame_rate_index ] . num * s1 -> frame_rate_ext . num * 2 , ff_mpeg12_frame_rate_tab [ s -> frame_rate_index ] . den * s1 -> frame_rate_ext . den , 1 << 30 ) ;\n avctx -> ticks_per_frame = 2 ;\n if ( s -> aspect_ratio_info > 1 ) {\n AVRational dar = av_mul_q ( av_div_q ( ff_mpeg2_aspect [ s -> aspect_ratio_info ] , ( AVRational ) {\n s1 -> pan_scan . width , s1 -> pan_scan . height }\n ) , ( AVRational ) {\n s -> width , s -> height }\n ) ;\n if ( ( s1 -> pan_scan . width == 0 ) || ( s1 -> pan_scan . height == 0 ) || ( av_cmp_q ( dar , ( AVRational ) {\n 4 , 3 }\n ) && av_cmp_q ( dar , ( AVRational ) {\n 16 , 9 }\n ) ) ) {\n s -> avctx -> sample_aspect_ratio = av_div_q ( ff_mpeg2_aspect [ s -> aspect_ratio_info ] , ( AVRational ) {\n s -> width , s -> height }\n ) ;\n }\n else {\n s -> avctx -> sample_aspect_ratio = av_div_q ( ff_mpeg2_aspect [ s -> aspect_ratio_info ] , ( AVRational ) {\n s1 -> pan_scan . width , s1 -> pan_scan . height }\n ) ;\n av_dlog ( avctx , \"A %d/%d\\n\" , ff_mpeg2_aspect [ s -> aspect_ratio_info ] . num , ff_mpeg2_aspect [ s -> aspect_ratio_info ] . den ) ;\n av_dlog ( avctx , \"B %d/%d\\n\" , s -> avctx -> sample_aspect_ratio . num , s -> avctx -> sample_aspect_ratio . den ) ;\n }\n }\n else {\n s -> avctx -> sample_aspect_ratio = ff_mpeg2_aspect [ s -> aspect_ratio_info ] ;\n }\n }\n avctx -> pix_fmt = mpeg_get_pixelformat ( avctx ) ;\n avctx -> hwaccel = ff_find_hwaccel ( avctx -> codec -> id , avctx -> pix_fmt ) ;\n if ( avctx -> pix_fmt == AV_PIX_FMT_XVMC_MPEG2_IDCT || avctx -> hwaccel || s -> avctx -> codec -> capabilities & CODEC_CAP_HWACCEL_VDPAU ) if ( avctx -> idct_algo == FF_IDCT_AUTO ) avctx -> idct_algo = FF_IDCT_SIMPLE ;\n memcpy ( old_permutation , s -> dsp . idct_permutation , 64 * sizeof ( uint8_t ) ) ;\n if ( ff_MPV_common_init ( s ) < 0 ) return - 2 ;\n quant_matrix_rebuild ( s -> intra_matrix , old_permutation , s -> dsp . idct_permutation ) ;\n quant_matrix_rebuild ( s -> inter_matrix , old_permutation , s -> dsp . idct_permutation ) ;\n quant_matrix_rebuild ( s -> chroma_intra_matrix , old_permutation , s -> dsp . idct_permutation ) ;\n quant_matrix_rebuild ( s -> chroma_inter_matrix , old_permutation , s -> dsp . idct_permutation ) ;\n s1 -> mpeg_enc_ctx_allocated = 1 ;\n }\n return 0 ;\n }"}
{"idx": 14175, "target": 0, "func": "static int asf_write_packet ( AVFormatContext * s , AVPacket * pkt ) {\n ASFContext * asf = s -> priv_data ;\n AVIOContext * pb = s -> pb ;\n ASFStream * stream ;\n AVCodecContext * codec ;\n uint32_t packet_number ;\n int64_t pts ;\n int start_sec ;\n int flags = pkt -> flags ;\n int ret ;\n uint64_t offset = avio_tell ( pb ) ;\n codec = s -> streams [ pkt -> stream_index ] -> codec ;\n stream = & asf -> streams [ pkt -> stream_index ] ;\n if ( codec -> codec_type == AVMEDIA_TYPE_AUDIO ) flags &= ~ AV_PKT_FLAG_KEY ;\n pts = ( pkt -> pts != AV_NOPTS_VALUE ) ? pkt -> pts : pkt -> dts ;\n av_assert0 ( pts != AV_NOPTS_VALUE ) ;\n if ( pts < - PREROLL_TIME || pts > ( INT_MAX - 3 ) / 10000LL * ASF_INDEXED_INTERVAL - PREROLL_TIME ) {\n av_log ( s , AV_LOG_ERROR , \"input pts %\" PRId64 \" is invalid\\n\" , pts ) ;\n return AVERROR ( EINVAL ) ;\n }\n pts *= 10000 ;\n asf -> duration = FFMAX ( asf -> duration , pts + pkt -> duration * 10000 ) ;\n packet_number = asf -> nb_packets ;\n put_frame ( s , stream , s -> streams [ pkt -> stream_index ] , pkt -> dts , pkt -> data , pkt -> size , flags ) ;\n start_sec = ( int ) ( ( PREROLL_TIME * 10000 + pts + ASF_INDEXED_INTERVAL - 1 ) / ASF_INDEXED_INTERVAL ) ;\n if ( ( ! asf -> is_streamed ) && ( flags & AV_PKT_FLAG_KEY ) ) {\n uint16_t packet_count = asf -> nb_packets - packet_number ;\n ret = update_index ( s , start_sec , packet_number , packet_count , offset ) ;\n if ( ret < 0 ) return ret ;\n }\n asf -> end_sec = start_sec ;\n return 0 ;\n }"}
{"idx": 14176, "target": 0, "func": "static char * _catkey ( char * buffer , int32_t set_num , int32_t msg_num ) {\n int32_t i = 0 ;\n i = T_CString_integerToString ( buffer , set_num , 10 ) ;\n buffer [ i ++ ] = SEPARATOR ;\n T_CString_integerToString ( buffer + i , msg_num , 10 ) ;\n return buffer ;\n }"}
{"idx": 14177, "target": 0, "func": "static void decode_fixed_sparse ( AMRFixed * fixed_sparse , const uint16_t * pulses , const enum Mode mode , const int subframe ) {\n assert ( MODE_4k75 <= mode && mode <= MODE_12k2 ) ;\n if ( mode == MODE_12k2 ) {\n ff_decode_10_pulses_35bits ( pulses , fixed_sparse , gray_decode , 5 , 3 ) ;\n }\n else if ( mode == MODE_10k2 ) {\n decode_8_pulses_31bits ( pulses , fixed_sparse ) ;\n }\n else {\n int * pulse_position = fixed_sparse -> x ;\n int i , pulse_subset ;\n const int fixed_index = pulses [ 0 ] ;\n if ( mode <= MODE_5k15 ) {\n pulse_subset = ( ( fixed_index >> 3 ) & 8 ) + ( subframe << 1 ) ;\n pulse_position [ 0 ] = ( fixed_index & 7 ) * 5 + track_position [ pulse_subset ] ;\n pulse_position [ 1 ] = ( ( fixed_index >> 3 ) & 7 ) * 5 + track_position [ pulse_subset + 1 ] ;\n fixed_sparse -> n = 2 ;\n }\n else if ( mode == MODE_5k9 ) {\n pulse_subset = ( ( fixed_index & 1 ) << 1 ) + 1 ;\n pulse_position [ 0 ] = ( ( fixed_index >> 1 ) & 7 ) * 5 + pulse_subset ;\n pulse_subset = ( fixed_index >> 4 ) & 3 ;\n pulse_position [ 1 ] = ( ( fixed_index >> 6 ) & 7 ) * 5 + pulse_subset + ( pulse_subset == 3 ? 1 : 0 ) ;\n fixed_sparse -> n = pulse_position [ 0 ] == pulse_position [ 1 ] ? 1 : 2 ;\n }\n else if ( mode == MODE_6k7 ) {\n pulse_position [ 0 ] = ( fixed_index & 7 ) * 5 ;\n pulse_subset = ( fixed_index >> 2 ) & 2 ;\n pulse_position [ 1 ] = ( ( fixed_index >> 4 ) & 7 ) * 5 + pulse_subset + 1 ;\n pulse_subset = ( fixed_index >> 6 ) & 2 ;\n pulse_position [ 2 ] = ( ( fixed_index >> 8 ) & 7 ) * 5 + pulse_subset + 2 ;\n fixed_sparse -> n = 3 ;\n }\n else {\n pulse_position [ 0 ] = gray_decode [ fixed_index & 7 ] ;\n pulse_position [ 1 ] = gray_decode [ ( fixed_index >> 3 ) & 7 ] + 1 ;\n pulse_position [ 2 ] = gray_decode [ ( fixed_index >> 6 ) & 7 ] + 2 ;\n pulse_subset = ( fixed_index >> 9 ) & 1 ;\n pulse_position [ 3 ] = gray_decode [ ( fixed_index >> 10 ) & 7 ] + pulse_subset + 3 ;\n fixed_sparse -> n = 4 ;\n }\n for ( i = 0 ;\n i < fixed_sparse -> n ;\n i ++ ) fixed_sparse -> y [ i ] = ( pulses [ 1 ] >> i ) & 1 ? 1.0 : - 1.0 ;\n }\n }"}
{"idx": 14178, "target": 0, "func": "static void prplcb_request_action_no ( void * data ) {\n struct prplcb_request_action_data * pqad = data ;\n if ( pqad -> no ) {\n pqad -> no ( pqad -> user_data , pqad -> no_i ) ;\n }\n }"}
{"idx": 14179, "target": 0, "func": "void vp9_rc_init ( const VP9EncoderConfig * oxcf , int pass , RATE_CONTROL * rc ) {\n int i ;\n if ( pass == 0 && oxcf -> rc_mode == VPX_CBR ) {\n rc -> avg_frame_qindex [ KEY_FRAME ] = oxcf -> worst_allowed_q ;\n rc -> avg_frame_qindex [ INTER_FRAME ] = oxcf -> worst_allowed_q ;\n }\n else {\n rc -> avg_frame_qindex [ KEY_FRAME ] = ( oxcf -> worst_allowed_q + oxcf -> best_allowed_q ) / 2 ;\n rc -> avg_frame_qindex [ INTER_FRAME ] = ( oxcf -> worst_allowed_q + oxcf -> best_allowed_q ) / 2 ;\n }\n rc -> last_q [ KEY_FRAME ] = oxcf -> best_allowed_q ;\n rc -> last_q [ INTER_FRAME ] = oxcf -> best_allowed_q ;\n rc -> buffer_level = rc -> starting_buffer_level ;\n rc -> bits_off_target = rc -> starting_buffer_level ;\n rc -> rolling_target_bits = rc -> avg_frame_bandwidth ;\n rc -> rolling_actual_bits = rc -> avg_frame_bandwidth ;\n rc -> long_rolling_target_bits = rc -> avg_frame_bandwidth ;\n rc -> long_rolling_actual_bits = rc -> avg_frame_bandwidth ;\n rc -> total_actual_bits = 0 ;\n rc -> total_target_bits = 0 ;\n rc -> total_target_vs_actual = 0 ;\n rc -> baseline_gf_interval = DEFAULT_GF_INTERVAL ;\n rc -> frames_since_key = 8 ;\n rc -> this_key_frame_forced = 0 ;\n rc -> next_key_frame_forced = 0 ;\n rc -> source_alt_ref_pending = 0 ;\n rc -> source_alt_ref_active = 0 ;\n rc -> frames_till_gf_update_due = 0 ;\n rc -> ni_av_qi = oxcf -> worst_allowed_q ;\n rc -> ni_tot_qi = 0 ;\n rc -> ni_frames = 0 ;\n rc -> tot_q = 0.0 ;\n rc -> avg_q = vp9_convert_qindex_to_q ( oxcf -> worst_allowed_q , oxcf -> bit_depth ) ;\n for ( i = 0 ;\n i < RATE_FACTOR_LEVELS ;\n ++ i ) {\n rc -> rate_correction_factors [ i ] = 1.0 ;\n }\n }"}
{"idx": 14180, "target": 0, "func": "static TRBCCode xhci_evaluate_slot ( XHCIState * xhci , unsigned int slotid , uint64_t pictx ) {\n dma_addr_t ictx , octx ;\n uint32_t ictl_ctx [ 2 ] ;\n uint32_t iep0_ctx [ 5 ] ;\n uint32_t ep0_ctx [ 5 ] ;\n uint32_t islot_ctx [ 4 ] ;\n uint32_t slot_ctx [ 4 ] ;\n trace_usb_xhci_slot_evaluate ( slotid ) ;\n assert ( slotid >= 1 && slotid <= xhci -> numslots ) ;\n ictx = xhci_mask64 ( pictx ) ;\n octx = xhci -> slots [ slotid - 1 ] . ctx ;\n DPRINTF ( \"xhci: input context at \" DMA_ADDR_FMT \"\\n\" , ictx ) ;\n DPRINTF ( \"xhci: output context at \" DMA_ADDR_FMT \"\\n\" , octx ) ;\n xhci_dma_read_u32s ( xhci , ictx , ictl_ctx , sizeof ( ictl_ctx ) ) ;\n if ( ictl_ctx [ 0 ] != 0x0 || ictl_ctx [ 1 ] & ~ 0x3 ) {\n DPRINTF ( \"xhci: invalid input context control %08x %08x\\n\" , ictl_ctx [ 0 ] , ictl_ctx [ 1 ] ) ;\n return CC_TRB_ERROR ;\n }\n if ( ictl_ctx [ 1 ] & 0x1 ) {\n xhci_dma_read_u32s ( xhci , ictx + 32 , islot_ctx , sizeof ( islot_ctx ) ) ;\n DPRINTF ( \"xhci: input slot context: %08x %08x %08x %08x\\n\" , islot_ctx [ 0 ] , islot_ctx [ 1 ] , islot_ctx [ 2 ] , islot_ctx [ 3 ] ) ;\n xhci_dma_read_u32s ( xhci , octx , slot_ctx , sizeof ( slot_ctx ) ) ;\n slot_ctx [ 1 ] &= ~ 0xFFFF ;\n slot_ctx [ 1 ] |= islot_ctx [ 1 ] & 0xFFFF ;\n slot_ctx [ 2 ] &= ~ 0xFF00000 ;\n slot_ctx [ 2 ] |= islot_ctx [ 2 ] & 0xFF000000 ;\n DPRINTF ( \"xhci: output slot context: %08x %08x %08x %08x\\n\" , slot_ctx [ 0 ] , slot_ctx [ 1 ] , slot_ctx [ 2 ] , slot_ctx [ 3 ] ) ;\n xhci_dma_write_u32s ( xhci , octx , slot_ctx , sizeof ( slot_ctx ) ) ;\n }\n if ( ictl_ctx [ 1 ] & 0x2 ) {\n xhci_dma_read_u32s ( xhci , ictx + 64 , iep0_ctx , sizeof ( iep0_ctx ) ) ;\n DPRINTF ( \"xhci: input ep0 context: %08x %08x %08x %08x %08x\\n\" , iep0_ctx [ 0 ] , iep0_ctx [ 1 ] , iep0_ctx [ 2 ] , iep0_ctx [ 3 ] , iep0_ctx [ 4 ] ) ;\n xhci_dma_read_u32s ( xhci , octx + 32 , ep0_ctx , sizeof ( ep0_ctx ) ) ;\n ep0_ctx [ 1 ] &= ~ 0xFFFF0000 ;\n ep0_ctx [ 1 ] |= iep0_ctx [ 1 ] & 0xFFFF0000 ;\n DPRINTF ( \"xhci: output ep0 context: %08x %08x %08x %08x %08x\\n\" , ep0_ctx [ 0 ] , ep0_ctx [ 1 ] , ep0_ctx [ 2 ] , ep0_ctx [ 3 ] , ep0_ctx [ 4 ] ) ;\n xhci_dma_write_u32s ( xhci , octx + 32 , ep0_ctx , sizeof ( ep0_ctx ) ) ;\n }\n return CC_SUCCESS ;\n }"}
{"idx": 14181, "target": 0, "func": "static vpx_codec_err_t parse_layer_options_from_string ( SvcContext * svc_ctx , LAYER_OPTION_TYPE type , const char * input , int * option0 , int * option1 ) {\n int i ;\n vpx_codec_err_t res = VPX_CODEC_OK ;\n char * input_string ;\n char * token ;\n const char * delim = \",\" ;\n char * save_ptr ;\n if ( input == NULL || option0 == NULL || ( option1 == NULL && type == SCALE_FACTOR ) ) return VPX_CODEC_INVALID_PARAM ;\n input_string = strdup ( input ) ;\n token = strtok_r ( input_string , delim , & save_ptr ) ;\n for ( i = 0 ;\n i < svc_ctx -> spatial_layers ;\n ++ i ) {\n if ( token != NULL ) {\n res = extract_option ( type , token , option0 + i , option1 + i ) ;\n if ( res != VPX_CODEC_OK ) break ;\n token = strtok_r ( NULL , delim , & save_ptr ) ;\n }\n else {\n break ;\n }\n }\n if ( res == VPX_CODEC_OK && i != svc_ctx -> spatial_layers ) {\n svc_log ( svc_ctx , SVC_LOG_ERROR , \"svc: layer params type: %d %d values required, \" \"but only %d specified\\n\" , type , svc_ctx -> spatial_layers , i ) ;\n res = VPX_CODEC_INVALID_PARAM ;\n }\n free ( input_string ) ;\n return res ;\n }"}
{"idx": 14182, "target": 1, "func": "extern int name ( int ) __THROW __exctype ( isalnum ) ;\n __exctype ( isalpha ) ;\n __exctype ( iscntrl ) ;\n __exctype ( isdigit ) ;\n __exctype ( islower ) ;\n __exctype ( isgraph ) ;\n __exctype ( isprint ) ;\n __exctype ( ispunct ) ;\n __exctype ( isspace ) ;\n __exctype ( isupper ) ;\n __exctype ( isxdigit ) ;\n extern int tolower ( int __c ) __THROW ;\n extern int toupper ( int __c ) __THROW ;\n # ifdef __USE_ISOC99 __exctype ( isblank ) ;\n # endif # ifdef __USE_GNU extern int isctype ( int __c , int __mask ) __THROW ;\n # endif # if defined __USE_MISC || defined __USE_XOPEN extern int isascii ( int __c ) __THROW ;\n extern int toascii ( int __c ) __THROW ;\n __exctype ( _toupper ) ;\n __exctype ( _tolower )"}
{"idx": 14183, "target": 0, "func": "static int dissect_h245_INTEGER_1_2048 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 2048U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 14184, "target": 0, "func": "static int32_t u_scanf_percent_handler ( UFILE * input , u_scanf_spec_info * info , ufmt_args * args , const UChar * fmt , int32_t * fmtConsumed , int32_t * argConverted ) {\n ( void ) fmt ;\n ( void ) fmtConsumed ;\n int32_t len ;\n double num ;\n UNumberFormat * format ;\n int32_t parsePos = 0 ;\n UErrorCode status = U_ZERO_ERROR ;\n u_scanf_skip_leading_ws ( input , info -> fPadChar ) ;\n ufile_fill_uchar_buffer ( input ) ;\n len = ( int32_t ) ( input -> str . fLimit - input -> str . fPos ) ;\n if ( info -> fWidth != - 1 ) len = ufmt_min ( len , info -> fWidth ) ;\n format = u_locbund_getNumberFormat ( & input -> str . fBundle , UNUM_PERCENT ) ;\n if ( format == 0 ) return 0 ;\n u_scanf_skip_leading_positive_sign ( input , format , & status ) ;\n num = unum_parseDouble ( format , input -> str . fPos , len , & parsePos , & status ) ;\n if ( ! info -> fSkipArg ) {\n * ( double * ) ( args [ 0 ] . ptrValue ) = num ;\n }\n input -> str . fPos += parsePos ;\n * argConverted = ! info -> fSkipArg ;\n return parsePos ;\n }"}
{"idx": 14185, "target": 0, "func": "TSVConn TSTransformOutputVConnGet ( TSVConn connp ) {\n sdk_assert ( sdk_sanity_check_iocore_structure ( connp ) == TS_SUCCESS ) ;\n VConnection * vc = ( VConnection * ) connp ;\n TSVConn data ;\n vc -> get_data ( TS_API_DATA_OUTPUT_VC , & data ) ;\n return data ;\n }"}
{"idx": 14186, "target": 0, "func": "static int dissect_pvfs2_mgmt_event_mon_request ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo _U_ ) {\n proto_tree_add_item ( tree , hf_pvfs_mgmt_perf_mon_request_event_count , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n return offset ;\n }"}
{"idx": 14187, "target": 0, "func": "static void handle_ns_request ( int dns_fd , struct query * q ) {\n char buf [ 64 * 1024 ] ;\n int len ;\n if ( ns_ip != INADDR_ANY ) {\n memcpy ( & q -> destination . s_addr , & ns_ip , sizeof ( in_addr_t ) ) ;\n }\n len = dns_encode_ns_response ( buf , sizeof ( buf ) , q , topdomain ) ;\n if ( len < 1 ) {\n warnx ( \"dns_encode_ns_response doesn't fit\" ) ;\n return ;\n }\n if ( debug >= 2 ) {\n fprintf ( stderr , \"TX: client %s, type %d, name %s, %d bytes NS reply\\n\" , format_addr ( & q -> from , q -> fromlen ) , q -> type , q -> name , len ) ;\n }\n if ( sendto ( dns_fd , buf , len , 0 , ( struct sockaddr * ) & q -> from , q -> fromlen ) <= 0 ) {\n warn ( \"ns reply send error\" ) ;\n }\n }"}
{"idx": 14188, "target": 0, "func": "int MDC2_Init ( MDC2_CTX * c ) {\n c -> num = 0 ;\n c -> pad_type = 1 ;\n memset ( & ( c -> h [ 0 ] ) , 0x52 , MDC2_BLOCK ) ;\n memset ( & ( c -> hh [ 0 ] ) , 0x25 , MDC2_BLOCK ) ;\n return 1 ;\n }"}
{"idx": 14189, "target": 1, "func": "static krb5_error_code process_chpw_request ( krb5_context context , void * server_handle , char * realm , krb5_keytab keytab , const krb5_fulladdr * local_faddr , const krb5_fulladdr * remote_faddr , krb5_data * req , krb5_data * rep ) {\n krb5_error_code ret ;\n char * ptr ;\n unsigned int plen , vno ;\n krb5_data ap_req , ap_rep = empty_data ( ) ;\n krb5_data cipher = empty_data ( ) , clear = empty_data ( ) ;\n krb5_auth_context auth_context = NULL ;\n krb5_principal changepw = NULL ;\n krb5_principal client , target = NULL ;\n krb5_ticket * ticket = NULL ;\n krb5_replay_data replay ;\n krb5_error krberror ;\n int numresult ;\n char strresult [ 1024 ] ;\n char * clientstr = NULL , * targetstr = NULL ;\n const char * errmsg = NULL ;\n size_t clen ;\n char * cdots ;\n struct sockaddr_storage ss ;\n socklen_t salen ;\n char addrbuf [ 100 ] ;\n krb5_address * addr = remote_faddr -> address ;\n * rep = empty_data ( ) ;\n if ( req -> length < 4 ) {\n ret = KRB5KRB_AP_ERR_MODIFIED ;\n numresult = KRB5_KPASSWD_MALFORMED ;\n strlcpy ( strresult , \"Request was truncated\" , sizeof ( strresult ) ) ;\n goto chpwfail ;\n }\n ptr = req -> data ;\n plen = ( * ptr ++ & 0xff ) ;\n plen = ( plen << 8 ) | ( * ptr ++ & 0xff ) ;\n if ( plen != req -> length ) {\n ret = KRB5KRB_AP_ERR_MODIFIED ;\n numresult = KRB5_KPASSWD_MALFORMED ;\n strlcpy ( strresult , \"Request length was inconsistent\" , sizeof ( strresult ) ) ;\n goto chpwfail ;\n }\n vno = ( * ptr ++ & 0xff ) ;\n vno = ( vno << 8 ) | ( * ptr ++ & 0xff ) ;\n if ( vno != 1 && vno != RFC3244_VERSION ) {\n ret = KRB5KDC_ERR_BAD_PVNO ;\n numresult = KRB5_KPASSWD_BAD_VERSION ;\n snprintf ( strresult , sizeof ( strresult ) , \"Request contained unknown protocol version number %d\" , vno ) ;\n goto chpwfail ;\n }\n ap_req . length = ( * ptr ++ & 0xff ) ;\n ap_req . length = ( ap_req . length << 8 ) | ( * ptr ++ & 0xff ) ;\n if ( ptr + ap_req . length >= req -> data + req -> length ) {\n ret = KRB5KRB_AP_ERR_MODIFIED ;\n numresult = KRB5_KPASSWD_MALFORMED ;\n strlcpy ( strresult , \"Request was truncated in AP-REQ\" , sizeof ( strresult ) ) ;\n goto chpwfail ;\n }\n ap_req . data = ptr ;\n ptr += ap_req . length ;\n ret = krb5_auth_con_init ( context , & auth_context ) ;\n if ( ret ) {\n numresult = KRB5_KPASSWD_HARDERROR ;\n strlcpy ( strresult , \"Failed initializing auth context\" , sizeof ( strresult ) ) ;\n goto chpwfail ;\n }\n ret = krb5_auth_con_setflags ( context , auth_context , KRB5_AUTH_CONTEXT_DO_SEQUENCE ) ;\n if ( ret ) {\n numresult = KRB5_KPASSWD_HARDERROR ;\n strlcpy ( strresult , \"Failed initializing auth context\" , sizeof ( strresult ) ) ;\n goto chpwfail ;\n }\n ret = krb5_build_principal ( context , & changepw , strlen ( realm ) , realm , \"kadmin\" , \"changepw\" , NULL ) ;\n if ( ret ) {\n numresult = KRB5_KPASSWD_HARDERROR ;\n strlcpy ( strresult , \"Failed building kadmin/changepw principal\" , sizeof ( strresult ) ) ;\n goto chpwfail ;\n }\n ret = krb5_rd_req ( context , & auth_context , & ap_req , changepw , keytab , NULL , & ticket ) ;\n if ( ret ) {\n numresult = KRB5_KPASSWD_AUTHERROR ;\n strlcpy ( strresult , \"Failed reading application request\" , sizeof ( strresult ) ) ;\n goto chpwfail ;\n }\n ret = krb5_mk_rep ( context , auth_context , & ap_rep ) ;\n if ( ret ) {\n numresult = KRB5_KPASSWD_AUTHERROR ;\n strlcpy ( strresult , \"Failed replying to application request\" , sizeof ( strresult ) ) ;\n goto chpwfail ;\n }\n cipher . length = ( req -> data + req -> length ) - ptr ;\n cipher . data = ptr ;\n ret = krb5_rd_priv ( context , auth_context , & cipher , & clear , & replay ) ;\n if ( ret ) {\n numresult = KRB5_KPASSWD_HARDERROR ;\n strlcpy ( strresult , \"Failed decrypting request\" , sizeof ( strresult ) ) ;\n goto chpwfail ;\n }\n client = ticket -> enc_part2 -> client ;\n if ( vno == RFC3244_VERSION ) {\n krb5_data * clear_data ;\n ret = decode_krb5_setpw_req ( & clear , & clear_data , & target ) ;\n if ( ret != 0 ) {\n numresult = KRB5_KPASSWD_MALFORMED ;\n strlcpy ( strresult , \"Failed decoding ChangePasswdData\" , sizeof ( strresult ) ) ;\n goto chpwfail ;\n }\n zapfree ( clear . data , clear . length ) ;\n clear = * clear_data ;\n free ( clear_data ) ;\n if ( target != NULL ) {\n ret = krb5_unparse_name ( context , target , & targetstr ) ;\n if ( ret != 0 ) {\n numresult = KRB5_KPASSWD_HARDERROR ;\n strlcpy ( strresult , \"Failed unparsing target name for log\" , sizeof ( strresult ) ) ;\n goto chpwfail ;\n }\n }\n }\n ret = krb5_unparse_name ( context , client , & clientstr ) ;\n if ( ret ) {\n numresult = KRB5_KPASSWD_HARDERROR ;\n strlcpy ( strresult , \"Failed unparsing client name for log\" , sizeof ( strresult ) ) ;\n goto chpwfail ;\n }\n if ( vno == 1 && ( ticket -> enc_part2 -> flags & TKT_FLG_INITIAL ) == 0 ) {\n numresult = KRB5_KPASSWD_INITIAL_FLAG_NEEDED ;\n strlcpy ( strresult , \"Ticket must be derived from a password\" , sizeof ( strresult ) ) ;\n goto chpwfail ;\n }\n ptr = k5memdup0 ( clear . data , clear . length , & ret ) ;\n ret = schpw_util_wrapper ( server_handle , client , target , ( ticket -> enc_part2 -> flags & TKT_FLG_INITIAL ) != 0 , ptr , NULL , strresult , sizeof ( strresult ) ) ;\n if ( ret ) errmsg = krb5_get_error_message ( context , ret ) ;\n zapfree ( clear . data , clear . length ) ;\n zapfree ( ptr , clear . length ) ;\n clear = empty_data ( ) ;\n clen = strlen ( clientstr ) ;\n trunc_name ( & clen , & cdots ) ;\n switch ( addr -> addrtype ) {\n case ADDRTYPE_INET : {\n struct sockaddr_in * sin = ss2sin ( & ss ) ;\n sin -> sin_family = AF_INET ;\n memcpy ( & sin -> sin_addr , addr -> contents , addr -> length ) ;\n sin -> sin_port = htons ( remote_faddr -> port ) ;\n salen = sizeof ( * sin ) ;\n break ;\n }\n case ADDRTYPE_INET6 : {\n struct sockaddr_in6 * sin6 = ss2sin6 ( & ss ) ;\n sin6 -> sin6_family = AF_INET6 ;\n memcpy ( & sin6 -> sin6_addr , addr -> contents , addr -> length ) ;\n sin6 -> sin6_port = htons ( remote_faddr -> port ) ;\n salen = sizeof ( * sin6 ) ;\n break ;\n }\n default : {\n struct sockaddr * sa = ss2sa ( & ss ) ;\n sa -> sa_family = AF_UNSPEC ;\n salen = sizeof ( * sa ) ;\n break ;\n }\n }\n if ( getnameinfo ( ss2sa ( & ss ) , salen , addrbuf , sizeof ( addrbuf ) , NULL , 0 , NI_NUMERICHOST | NI_NUMERICSERV ) != 0 ) strlcpy ( addrbuf , \"<unprintable>\" , sizeof ( addrbuf ) ) ;\n if ( vno == RFC3244_VERSION ) {\n size_t tlen ;\n char * tdots ;\n const char * targetp ;\n if ( target == NULL ) {\n tlen = clen ;\n tdots = cdots ;\n targetp = targetstr ;\n }\n else {\n tlen = strlen ( targetstr ) ;\n trunc_name ( & tlen , & tdots ) ;\n targetp = clientstr ;\n }\n krb5_klog_syslog ( LOG_NOTICE , _ ( \"setpw request from %s by %.*s%s for \" \"%.*s%s: %s\" ) , addrbuf , ( int ) clen , clientstr , cdots , ( int ) tlen , targetp , tdots , errmsg ? errmsg : \"success\" ) ;\n }\n else {\n krb5_klog_syslog ( LOG_NOTICE , _ ( \"chpw request from %s for %.*s%s: %s\" ) , addrbuf , ( int ) clen , clientstr , cdots , errmsg ? errmsg : \"success\" ) ;\n }\n switch ( ret ) {\n case KADM5_AUTH_CHANGEPW : numresult = KRB5_KPASSWD_ACCESSDENIED ;\n break ;\n case KADM5_PASS_Q_TOOSHORT : case KADM5_PASS_REUSE : case KADM5_PASS_Q_CLASS : case KADM5_PASS_Q_DICT : case KADM5_PASS_Q_GENERIC : case KADM5_PASS_TOOSOON : numresult = KRB5_KPASSWD_SOFTERROR ;\n break ;\n case 0 : numresult = KRB5_KPASSWD_SUCCESS ;\n strlcpy ( strresult , \"\" , sizeof ( strresult ) ) ;\n break ;\n default : numresult = KRB5_KPASSWD_HARDERROR ;\n break ;\n }\n chpwfail : clear . length = 2 + strlen ( strresult ) ;\n clear . data = ( char * ) malloc ( clear . length ) ;\n ptr = clear . data ;\n * ptr ++ = ( numresult >> 8 ) & 0xff ;\n * ptr ++ = numresult & 0xff ;\n memcpy ( ptr , strresult , strlen ( strresult ) ) ;\n cipher = empty_data ( ) ;\n if ( ap_rep . length ) {\n ret = krb5_auth_con_setaddrs ( context , auth_context , local_faddr -> address , NULL ) ;\n if ( ret ) {\n numresult = KRB5_KPASSWD_HARDERROR ;\n strlcpy ( strresult , \"Failed storing client and server internet addresses\" , sizeof ( strresult ) ) ;\n }\n else {\n ret = krb5_mk_priv ( context , auth_context , & clear , & cipher , & replay ) ;\n if ( ret ) {\n numresult = KRB5_KPASSWD_HARDERROR ;\n strlcpy ( strresult , \"Failed encrypting reply\" , sizeof ( strresult ) ) ;\n }\n }\n }\n if ( cipher . length == 0 ) {\n if ( ap_rep . length ) {\n free ( ap_rep . data ) ;\n ap_rep = empty_data ( ) ;\n }\n krberror . ctime = 0 ;\n krberror . cusec = 0 ;\n krberror . susec = 0 ;\n ret = krb5_timeofday ( context , & krberror . stime ) ;\n if ( ret ) goto bailout ;\n krberror . error = ret ;\n krberror . error -= ERROR_TABLE_BASE_krb5 ;\n if ( krberror . error < 0 || krberror . error > 128 ) krberror . error = KRB_ERR_GENERIC ;\n krberror . client = NULL ;\n ret = krb5_build_principal ( context , & krberror . server , strlen ( realm ) , realm , \"kadmin\" , \"changepw\" , NULL ) ;\n if ( ret ) goto bailout ;\n krberror . text . length = 0 ;\n krberror . e_data = clear ;\n ret = krb5_mk_error ( context , & krberror , & cipher ) ;\n krb5_free_principal ( context , krberror . server ) ;\n if ( ret ) goto bailout ;\n }\n ret = alloc_data ( rep , 6 + ap_rep . length + cipher . length ) ;\n if ( ret ) goto bailout ;\n ptr = rep -> data ;\n * ptr ++ = ( rep -> length >> 8 ) & 0xff ;\n * ptr ++ = rep -> length & 0xff ;\n * ptr ++ = 0 ;\n * ptr ++ = 1 ;\n * ptr ++ = ( ap_rep . length >> 8 ) & 0xff ;\n * ptr ++ = ap_rep . length & 0xff ;\n if ( ap_rep . length ) {\n memcpy ( ptr , ap_rep . data , ap_rep . length ) ;\n ptr += ap_rep . length ;\n }\n memcpy ( ptr , cipher . data , cipher . length ) ;\n bailout : krb5_auth_con_free ( context , auth_context ) ;\n krb5_free_principal ( context , changepw ) ;\n krb5_free_ticket ( context , ticket ) ;\n free ( ap_rep . data ) ;\n free ( clear . data ) ;\n free ( cipher . data ) ;\n krb5_free_principal ( context , target ) ;\n krb5_free_unparsed_name ( context , targetstr ) ;\n krb5_free_unparsed_name ( context , clientstr ) ;\n krb5_free_error_message ( context , errmsg ) ;\n return ret ;\n }"}
{"idx": 14190, "target": 0, "func": "static void remove_cntrl ( String & buffer ) {\n char * start , * end ;\n end = ( start = ( char * ) buffer . ptr ( ) ) + buffer . length ( ) ;\n while ( start < end && ! my_isgraph ( charset_info , end [ - 1 ] ) ) end -- ;\n buffer . length ( ( uint ) ( end - start ) ) ;\n }"}
{"idx": 14191, "target": 0, "func": "int qemuMonitorJSONSetBlockIoThrottle ( qemuMonitorPtr mon , const char * device , virDomainBlockIoTuneInfoPtr info ) {\n int ret = - 1 ;\n virJSONValuePtr cmd = NULL ;\n virJSONValuePtr result = NULL ;\n cmd = qemuMonitorJSONMakeCommand ( \"block_set_io_throttle\" , \"s:device\" , device , \"U:bps\" , info -> total_bytes_sec , \"U:bps_rd\" , info -> read_bytes_sec , \"U:bps_wr\" , info -> write_bytes_sec , \"U:iops\" , info -> total_iops_sec , \"U:iops_rd\" , info -> read_iops_sec , \"U:iops_wr\" , info -> write_iops_sec , NULL ) ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & result ) ;\n if ( ret == 0 && virJSONValueObjectHasKey ( result , \"error\" ) ) {\n if ( qemuMonitorJSONHasError ( result , \"DeviceNotActive\" ) ) qemuReportError ( VIR_ERR_OPERATION_INVALID , _ ( \"No active operation on device: %s\" ) , device ) ;\n else if ( qemuMonitorJSONHasError ( result , \"NotSupported\" ) ) qemuReportError ( VIR_ERR_OPERATION_INVALID , _ ( \"Operation is not supported for device: %s\" ) , device ) ;\n else qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"Unexpected error\" ) ) ;\n ret = - 1 ;\n }\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( result ) ;\n return ret ;\n }"}
{"idx": 14192, "target": 0, "func": "static void startoutput ( void ) {\n out_chars = 0 ;\n out_linecount = 0 ;\n }"}
{"idx": 14193, "target": 0, "func": "int do_ssl3_write ( SSL * s , int type , const unsigned char * buf , unsigned int * pipelens , unsigned int numpipes , int create_empty_fragment ) {\n unsigned char * outbuf [ SSL_MAX_PIPELINES ] , * plen [ SSL_MAX_PIPELINES ] ;\n SSL3_RECORD wr [ SSL_MAX_PIPELINES ] ;\n int i , mac_size , clear = 0 ;\n int prefix_len = 0 ;\n int eivlen ;\n size_t align = 0 ;\n SSL3_BUFFER * wb ;\n SSL_SESSION * sess ;\n unsigned int totlen = 0 ;\n unsigned int j ;\n for ( j = 0 ;\n j < numpipes ;\n j ++ ) totlen += pipelens [ j ] ;\n if ( RECORD_LAYER_write_pending ( & s -> rlayer ) ) return ( ssl3_write_pending ( s , type , buf , totlen ) ) ;\n if ( s -> s3 -> alert_dispatch ) {\n i = s -> method -> ssl_dispatch_alert ( s ) ;\n if ( i <= 0 ) return ( i ) ;\n }\n if ( s -> rlayer . numwpipes < numpipes ) if ( ! ssl3_setup_write_buffer ( s , numpipes , 0 ) ) return - 1 ;\n if ( totlen == 0 && ! create_empty_fragment ) return 0 ;\n sess = s -> session ;\n if ( ( sess == NULL ) || ( s -> enc_write_ctx == NULL ) || ( EVP_MD_CTX_md ( s -> write_hash ) == NULL ) ) {\n clear = s -> enc_write_ctx ? 0 : 1 ;\n mac_size = 0 ;\n }\n else {\n mac_size = EVP_MD_CTX_size ( s -> write_hash ) ;\n if ( mac_size < 0 ) goto err ;\n }\n if ( ! clear && ! create_empty_fragment && ! s -> s3 -> empty_fragment_done ) {\n if ( s -> s3 -> need_empty_fragments && type == SSL3_RT_APPLICATION_DATA ) {\n unsigned int tmppipelen = 0 ;\n prefix_len = do_ssl3_write ( s , type , buf , & tmppipelen , 1 , 1 ) ;\n if ( prefix_len <= 0 ) goto err ;\n if ( prefix_len > ( SSL3_RT_HEADER_LENGTH + SSL3_RT_SEND_MAX_ENCRYPTED_OVERHEAD ) ) {\n SSLerr ( SSL_F_DO_SSL3_WRITE , ERR_R_INTERNAL_ERROR ) ;\n goto err ;\n }\n }\n s -> s3 -> empty_fragment_done = 1 ;\n }\n if ( create_empty_fragment ) {\n wb = & s -> rlayer . wbuf [ 0 ] ;\n # if defined ( SSL3_ALIGN_PAYLOAD ) && SSL3_ALIGN_PAYLOAD != 0 align = ( size_t ) SSL3_BUFFER_get_buf ( wb ) + 2 * SSL3_RT_HEADER_LENGTH ;\n align = SSL3_ALIGN_PAYLOAD - 1 - ( ( align - 1 ) % SSL3_ALIGN_PAYLOAD ) ;\n # endif outbuf [ 0 ] = SSL3_BUFFER_get_buf ( wb ) + align ;\n SSL3_BUFFER_set_offset ( wb , align ) ;\n }\n else if ( prefix_len ) {\n wb = & s -> rlayer . wbuf [ 0 ] ;\n outbuf [ 0 ] = SSL3_BUFFER_get_buf ( wb ) + SSL3_BUFFER_get_offset ( wb ) + prefix_len ;\n }\n else {\n for ( j = 0 ;\n j < numpipes ;\n j ++ ) {\n wb = & s -> rlayer . wbuf [ j ] ;\n # if defined ( SSL3_ALIGN_PAYLOAD ) && SSL3_ALIGN_PAYLOAD != 0 align = ( size_t ) SSL3_BUFFER_get_buf ( wb ) + SSL3_RT_HEADER_LENGTH ;\n align = SSL3_ALIGN_PAYLOAD - 1 - ( ( align - 1 ) % SSL3_ALIGN_PAYLOAD ) ;\n # endif outbuf [ j ] = SSL3_BUFFER_get_buf ( wb ) + align ;\n SSL3_BUFFER_set_offset ( wb , align ) ;\n }\n }\n if ( s -> enc_write_ctx && SSL_USE_EXPLICIT_IV ( s ) ) {\n int mode = EVP_CIPHER_CTX_mode ( s -> enc_write_ctx ) ;\n if ( mode == EVP_CIPH_CBC_MODE ) {\n eivlen = EVP_CIPHER_CTX_iv_length ( s -> enc_write_ctx ) ;\n if ( eivlen <= 1 ) eivlen = 0 ;\n }\n else if ( mode == EVP_CIPH_GCM_MODE ) eivlen = EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n else if ( mode == EVP_CIPH_CCM_MODE ) eivlen = EVP_CCM_TLS_EXPLICIT_IV_LEN ;\n else eivlen = 0 ;\n }\n else eivlen = 0 ;\n totlen = 0 ;\n memset ( wr , 0 , sizeof wr ) ;\n for ( j = 0 ;\n j < numpipes ;\n j ++ ) {\n * ( outbuf [ j ] ++ ) = type & 0xff ;\n SSL3_RECORD_set_type ( & wr [ j ] , type ) ;\n * ( outbuf [ j ] ++ ) = ( s -> version >> 8 ) ;\n if ( SSL_get_state ( s ) == TLS_ST_CW_CLNT_HELLO && ! s -> renegotiate && TLS1_get_version ( s ) > TLS1_VERSION ) * ( outbuf [ j ] ++ ) = 0x1 ;\n else * ( outbuf [ j ] ++ ) = s -> version & 0xff ;\n plen [ j ] = outbuf [ j ] ;\n outbuf [ j ] += 2 ;\n SSL3_RECORD_set_data ( & wr [ j ] , outbuf [ j ] + eivlen ) ;\n SSL3_RECORD_set_length ( & wr [ j ] , ( int ) pipelens [ j ] ) ;\n SSL3_RECORD_set_input ( & wr [ j ] , ( unsigned char * ) & buf [ totlen ] ) ;\n totlen += pipelens [ j ] ;\n if ( s -> compress != NULL ) {\n if ( ! ssl3_do_compress ( s , & wr [ j ] ) ) {\n SSLerr ( SSL_F_DO_SSL3_WRITE , SSL_R_COMPRESSION_FAILURE ) ;\n goto err ;\n }\n }\n else {\n memcpy ( wr [ j ] . data , wr [ j ] . input , wr [ j ] . length ) ;\n SSL3_RECORD_reset_input ( & wr [ j ] ) ;\n }\n if ( ! SSL_USE_ETM ( s ) && mac_size != 0 ) {\n if ( s -> method -> ssl3_enc -> mac ( s , & wr [ j ] , & ( outbuf [ j ] [ wr [ j ] . length + eivlen ] ) , 1 ) < 0 ) goto err ;\n SSL3_RECORD_add_length ( & wr [ j ] , mac_size ) ;\n }\n SSL3_RECORD_set_data ( & wr [ j ] , outbuf [ j ] ) ;\n SSL3_RECORD_reset_input ( & wr [ j ] ) ;\n if ( eivlen ) {\n SSL3_RECORD_add_length ( & wr [ j ] , eivlen ) ;\n }\n }\n if ( s -> method -> ssl3_enc -> enc ( s , wr , numpipes , 1 ) < 1 ) goto err ;\n for ( j = 0 ;\n j < numpipes ;\n j ++ ) {\n if ( SSL_USE_ETM ( s ) && mac_size != 0 ) {\n if ( s -> method -> ssl3_enc -> mac ( s , & wr [ j ] , outbuf [ j ] + wr [ j ] . length , 1 ) < 0 ) goto err ;\n SSL3_RECORD_add_length ( & wr [ j ] , mac_size ) ;\n }\n s2n ( SSL3_RECORD_get_length ( & wr [ j ] ) , plen [ j ] ) ;\n if ( s -> msg_callback ) s -> msg_callback ( 1 , 0 , SSL3_RT_HEADER , plen [ j ] - 5 , 5 , s , s -> msg_callback_arg ) ;\n SSL3_RECORD_set_type ( & wr [ j ] , type ) ;\n SSL3_RECORD_add_length ( & wr [ j ] , SSL3_RT_HEADER_LENGTH ) ;\n if ( create_empty_fragment ) {\n if ( j > 0 ) {\n SSLerr ( SSL_F_DO_SSL3_WRITE , ERR_R_INTERNAL_ERROR ) ;\n goto err ;\n }\n return SSL3_RECORD_get_length ( wr ) ;\n }\n SSL3_BUFFER_set_left ( & s -> rlayer . wbuf [ j ] , prefix_len + SSL3_RECORD_get_length ( & wr [ j ] ) ) ;\n }\n s -> rlayer . wpend_tot = totlen ;\n s -> rlayer . wpend_buf = buf ;\n s -> rlayer . wpend_type = type ;\n s -> rlayer . wpend_ret = totlen ;\n return ssl3_write_pending ( s , type , buf , totlen ) ;\n err : return - 1 ;\n }"}
{"idx": 14194, "target": 0, "func": "static hb_blob_t * _hb_face_for_data_reference_table ( hb_face_t * face HB_UNUSED , hb_tag_t tag , void * user_data ) {\n hb_face_for_data_closure_t * data = ( hb_face_for_data_closure_t * ) user_data ;\n if ( tag == HB_TAG_NONE ) return hb_blob_reference ( data -> blob ) ;\n const OT : : OpenTypeFontFile & ot_file = * OT : : Sanitizer < OT : : OpenTypeFontFile > : : lock_instance ( data -> blob ) ;\n const OT : : OpenTypeFontFace & ot_face = ot_file . get_face ( data -> index ) ;\n const OT : : OpenTypeTable & table = ot_face . get_table_by_tag ( tag ) ;\n hb_blob_t * blob = hb_blob_create_sub_blob ( data -> blob , table . offset , table . length ) ;\n return blob ;\n }"}
{"idx": 14195, "target": 0, "func": "static void test_evbuffer_readln ( void ) {\n struct evbuffer * evb = evbuffer_new ( ) ;\n struct evbuffer * evb_tmp = evbuffer_new ( ) ;\n const char * s ;\n char * cp = NULL ;\n size_t sz ;\n # define tt_line_eq ( content ) if ( ! cp || sz != strlen ( content ) || strcmp ( cp , content ) ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n # define tt_assert ( expression ) if ( ! ( expression ) ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n fprintf ( stdout , \"Testing evbuffer_readln EOL_ANY: \" ) ;\n s = \"complex silly newline\\r\\n\\n\\r\\n\\n\\rmore\\0\\n\" ;\n evbuffer_add ( evb , s , strlen ( s ) + 2 ) ;\n cp = evbuffer_readln ( evb , & sz , EVBUFFER_EOL_ANY ) ;\n tt_line_eq ( \"complex silly newline\" ) ;\n free ( cp ) ;\n cp = evbuffer_readln ( evb , & sz , EVBUFFER_EOL_ANY ) ;\n if ( ! cp || sz != 5 || memcmp ( cp , \"more\\0\\0\" , 6 ) ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n if ( evb -> totallen == 0 ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n s = \"\\nno newline\" ;\n evbuffer_add ( evb , s , strlen ( s ) ) ;\n free ( cp ) ;\n cp = evbuffer_readln ( evb , & sz , EVBUFFER_EOL_ANY ) ;\n tt_line_eq ( \"\" ) ;\n free ( cp ) ;\n cp = evbuffer_readln ( evb , & sz , EVBUFFER_EOL_ANY ) ;\n tt_assert ( ! cp ) ;\n evbuffer_drain ( evb , EVBUFFER_LENGTH ( evb ) ) ;\n tt_assert ( EVBUFFER_LENGTH ( evb ) == 0 ) ;\n fprintf ( stdout , \"OK\\n\" ) ;\n fprintf ( stdout , \"Testing evbuffer_readln EOL_CRLF: \" ) ;\n s = \"Line with\\rin the middle\\nLine with good crlf\\r\\n\\nfinal\\n\" ;\n evbuffer_add ( evb , s , strlen ( s ) ) ;\n cp = evbuffer_readln ( evb , & sz , EVBUFFER_EOL_CRLF ) ;\n tt_line_eq ( \"Line with\\rin the middle\" ) ;\n free ( cp ) ;\n cp = evbuffer_readln ( evb , & sz , EVBUFFER_EOL_CRLF ) ;\n tt_line_eq ( \"Line with good crlf\" ) ;\n free ( cp ) ;\n cp = evbuffer_readln ( evb , & sz , EVBUFFER_EOL_CRLF ) ;\n tt_line_eq ( \"\" ) ;\n free ( cp ) ;\n cp = evbuffer_readln ( evb , & sz , EVBUFFER_EOL_CRLF ) ;\n tt_line_eq ( \"final\" ) ;\n s = \"x\" ;\n evbuffer_add ( evb , s , 1 ) ;\n free ( cp ) ;\n cp = evbuffer_readln ( evb , & sz , EVBUFFER_EOL_CRLF ) ;\n tt_assert ( ! cp ) ;\n fprintf ( stdout , \"OK\\n\" ) ;\n fprintf ( stdout , \"Testing evbuffer_readln CRLF_STRICT: \" ) ;\n s = \" and a bad crlf\\nand a good one\\r\\n\\r\\nMore\\r\" ;\n evbuffer_add ( evb , s , strlen ( s ) ) ;\n cp = evbuffer_readln ( evb , & sz , EVBUFFER_EOL_CRLF_STRICT ) ;\n tt_line_eq ( \"x and a bad crlf\\nand a good one\" ) ;\n free ( cp ) ;\n cp = evbuffer_readln ( evb , & sz , EVBUFFER_EOL_CRLF_STRICT ) ;\n tt_line_eq ( \"\" ) ;\n free ( cp ) ;\n cp = evbuffer_readln ( evb , & sz , EVBUFFER_EOL_CRLF_STRICT ) ;\n tt_assert ( ! cp ) ;\n evbuffer_add ( evb , \"\\n\" , 1 ) ;\n cp = evbuffer_readln ( evb , & sz , EVBUFFER_EOL_CRLF_STRICT ) ;\n tt_line_eq ( \"More\" ) ;\n free ( cp ) ;\n tt_assert ( EVBUFFER_LENGTH ( evb ) == 0 ) ;\n s = \"An internal CR\\r is not an eol\\r\\nNor is a lack of one\" ;\n evbuffer_add ( evb , s , strlen ( s ) ) ;\n cp = evbuffer_readln ( evb , & sz , EVBUFFER_EOL_CRLF_STRICT ) ;\n tt_line_eq ( \"An internal CR\\r is not an eol\" ) ;\n free ( cp ) ;\n cp = evbuffer_readln ( evb , & sz , EVBUFFER_EOL_CRLF_STRICT ) ;\n tt_assert ( ! cp ) ;\n evbuffer_add ( evb , \"\\r\\n\" , 2 ) ;\n cp = evbuffer_readln ( evb , & sz , EVBUFFER_EOL_CRLF_STRICT ) ;\n tt_line_eq ( \"Nor is a lack of one\" ) ;\n free ( cp ) ;\n tt_assert ( EVBUFFER_LENGTH ( evb ) == 0 ) ;\n fprintf ( stdout , \"OK\\n\" ) ;\n fprintf ( stdout , \"Testing evbuffer_readln LF: \" ) ;\n s = \"An\\rand a nl\\n\\nText\" ;\n evbuffer_add ( evb , s , strlen ( s ) ) ;\n cp = evbuffer_readln ( evb , & sz , EVBUFFER_EOL_LF ) ;\n tt_line_eq ( \"An\\rand a nl\" ) ;\n free ( cp ) ;\n cp = evbuffer_readln ( evb , & sz , EVBUFFER_EOL_LF ) ;\n tt_line_eq ( \"\" ) ;\n free ( cp ) ;\n cp = evbuffer_readln ( evb , & sz , EVBUFFER_EOL_LF ) ;\n tt_assert ( ! cp ) ;\n free ( cp ) ;\n evbuffer_add ( evb , \"\\n\" , 1 ) ;\n cp = evbuffer_readln ( evb , & sz , EVBUFFER_EOL_LF ) ;\n tt_line_eq ( \"Text\" ) ;\n free ( cp ) ;\n fprintf ( stdout , \"OK\\n\" ) ;\n fprintf ( stdout , \"Testing evbuffer_readln CRLF_STRICT across boundaries: \" ) ;\n s = \" and a bad crlf\\nand a good one\\r\" ;\n evbuffer_add ( evb_tmp , s , strlen ( s ) ) ;\n evbuffer_add_buffer ( evb , evb_tmp ) ;\n s = \"\\n\\r\" ;\n evbuffer_add ( evb_tmp , s , strlen ( s ) ) ;\n evbuffer_add_buffer ( evb , evb_tmp ) ;\n s = \"\\nMore\\r\" ;\n evbuffer_add ( evb_tmp , s , strlen ( s ) ) ;\n evbuffer_add_buffer ( evb , evb_tmp ) ;\n cp = evbuffer_readln ( evb , & sz , EVBUFFER_EOL_CRLF_STRICT ) ;\n tt_line_eq ( \" and a bad crlf\\nand a good one\" ) ;\n free ( cp ) ;\n cp = evbuffer_readln ( evb , & sz , EVBUFFER_EOL_CRLF_STRICT ) ;\n tt_line_eq ( \"\" ) ;\n free ( cp ) ;\n cp = evbuffer_readln ( evb , & sz , EVBUFFER_EOL_CRLF_STRICT ) ;\n tt_assert ( ! cp ) ;\n free ( cp ) ;\n evbuffer_add ( evb , \"\\n\" , 1 ) ;\n cp = evbuffer_readln ( evb , & sz , EVBUFFER_EOL_CRLF_STRICT ) ;\n tt_line_eq ( \"More\" ) ;\n free ( cp ) ;\n cp = NULL ;\n if ( EVBUFFER_LENGTH ( evb ) != 0 ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n fprintf ( stdout , \"OK\\n\" ) ;\n fprintf ( stdout , \"Testing evbuffer_readln memory problem: \" ) ;\n s = \"one line\\ntwo line\\nblue line\" ;\n evbuffer_add ( evb_tmp , s , strlen ( s ) ) ;\n evbuffer_add_buffer ( evb , evb_tmp ) ;\n cp = evbuffer_readln ( evb , & sz , EVBUFFER_EOL_LF ) ;\n tt_line_eq ( \"one line\" ) ;\n free ( cp ) ;\n cp = NULL ;\n cp = evbuffer_readln ( evb , & sz , EVBUFFER_EOL_LF ) ;\n tt_line_eq ( \"two line\" ) ;\n free ( cp ) ;\n cp = NULL ;\n fprintf ( stdout , \"OK\\n\" ) ;\n test_ok = 1 ;\n evbuffer_free ( evb ) ;\n evbuffer_free ( evb_tmp ) ;\n if ( cp ) free ( cp ) ;\n }"}
{"idx": 14196, "target": 0, "func": "static void pred_temp_direct_motion ( H264Context * const h , int * mb_type ) {\n int b8_stride = 2 ;\n int b4_stride = h -> b_stride ;\n int mb_xy = h -> mb_xy , mb_y = h -> mb_y ;\n int mb_type_col [ 2 ] ;\n const int16_t ( * l1mv0 ) [ 2 ] , ( * l1mv1 ) [ 2 ] ;\n const int8_t * l1ref0 , * l1ref1 ;\n const int is_b8x8 = IS_8X8 ( * mb_type ) ;\n unsigned int sub_mb_type ;\n int i8 , i4 ;\n assert ( h -> ref_list [ 1 ] [ 0 ] . reference & 3 ) ;\n await_reference_mb_row ( h , & h -> ref_list [ 1 ] [ 0 ] , h -> mb_y + ! ! IS_INTERLACED ( * mb_type ) ) ;\n if ( IS_INTERLACED ( h -> ref_list [ 1 ] [ 0 ] . mb_type [ mb_xy ] ) ) {\n if ( ! IS_INTERLACED ( * mb_type ) ) {\n mb_y = ( h -> mb_y & ~ 1 ) + h -> col_parity ;\n mb_xy = h -> mb_x + ( ( h -> mb_y & ~ 1 ) + h -> col_parity ) * h -> mb_stride ;\n b8_stride = 0 ;\n }\n else {\n mb_y += h -> col_fieldoff ;\n mb_xy += h -> mb_stride * h -> col_fieldoff ;\n }\n goto single_col ;\n }\n else {\n if ( IS_INTERLACED ( * mb_type ) ) {\n mb_y = h -> mb_y & ~ 1 ;\n mb_xy = h -> mb_x + ( h -> mb_y & ~ 1 ) * h -> mb_stride ;\n mb_type_col [ 0 ] = h -> ref_list [ 1 ] [ 0 ] . mb_type [ mb_xy ] ;\n mb_type_col [ 1 ] = h -> ref_list [ 1 ] [ 0 ] . mb_type [ mb_xy + h -> mb_stride ] ;\n b8_stride = 2 + 4 * h -> mb_stride ;\n b4_stride *= 6 ;\n if ( IS_INTERLACED ( mb_type_col [ 0 ] ) != IS_INTERLACED ( mb_type_col [ 1 ] ) ) {\n mb_type_col [ 0 ] &= ~ MB_TYPE_INTERLACED ;\n mb_type_col [ 1 ] &= ~ MB_TYPE_INTERLACED ;\n }\n sub_mb_type = MB_TYPE_16x16 | MB_TYPE_P0L0 | MB_TYPE_P0L1 | MB_TYPE_DIRECT2 ;\n if ( ( mb_type_col [ 0 ] & MB_TYPE_16x16_OR_INTRA ) && ( mb_type_col [ 1 ] & MB_TYPE_16x16_OR_INTRA ) && ! is_b8x8 ) {\n * mb_type |= MB_TYPE_16x8 | MB_TYPE_L0L1 | MB_TYPE_DIRECT2 ;\n }\n else {\n * mb_type |= MB_TYPE_8x8 | MB_TYPE_L0L1 ;\n }\n }\n else {\n single_col : mb_type_col [ 0 ] = mb_type_col [ 1 ] = h -> ref_list [ 1 ] [ 0 ] . mb_type [ mb_xy ] ;\n sub_mb_type = MB_TYPE_16x16 | MB_TYPE_P0L0 | MB_TYPE_P0L1 | MB_TYPE_DIRECT2 ;\n if ( ! is_b8x8 && ( mb_type_col [ 0 ] & MB_TYPE_16x16_OR_INTRA ) ) {\n * mb_type |= MB_TYPE_16x16 | MB_TYPE_P0L0 | MB_TYPE_P0L1 | MB_TYPE_DIRECT2 ;\n }\n else if ( ! is_b8x8 && ( mb_type_col [ 0 ] & ( MB_TYPE_16x8 | MB_TYPE_8x16 ) ) ) {\n * mb_type |= MB_TYPE_L0L1 | MB_TYPE_DIRECT2 | ( mb_type_col [ 0 ] & ( MB_TYPE_16x8 | MB_TYPE_8x16 ) ) ;\n }\n else {\n if ( ! h -> sps . direct_8x8_inference_flag ) {\n sub_mb_type = MB_TYPE_8x8 | MB_TYPE_P0L0 | MB_TYPE_P0L1 | MB_TYPE_DIRECT2 ;\n }\n * mb_type |= MB_TYPE_8x8 | MB_TYPE_L0L1 ;\n }\n }\n }\n await_reference_mb_row ( h , & h -> ref_list [ 1 ] [ 0 ] , mb_y ) ;\n l1mv0 = & h -> ref_list [ 1 ] [ 0 ] . motion_val [ 0 ] [ h -> mb2b_xy [ mb_xy ] ] ;\n l1mv1 = & h -> ref_list [ 1 ] [ 0 ] . motion_val [ 1 ] [ h -> mb2b_xy [ mb_xy ] ] ;\n l1ref0 = & h -> ref_list [ 1 ] [ 0 ] . ref_index [ 0 ] [ 4 * mb_xy ] ;\n l1ref1 = & h -> ref_list [ 1 ] [ 0 ] . ref_index [ 1 ] [ 4 * mb_xy ] ;\n if ( ! b8_stride ) {\n if ( h -> mb_y & 1 ) {\n l1ref0 += 2 ;\n l1ref1 += 2 ;\n l1mv0 += 2 * b4_stride ;\n l1mv1 += 2 * b4_stride ;\n }\n }\n {\n const int * map_col_to_list0 [ 2 ] = {\n h -> map_col_to_list0 [ 0 ] , h -> map_col_to_list0 [ 1 ] }\n ;\n const int * dist_scale_factor = h -> dist_scale_factor ;\n int ref_offset ;\n if ( FRAME_MBAFF && IS_INTERLACED ( * mb_type ) ) {\n map_col_to_list0 [ 0 ] = h -> map_col_to_list0_field [ h -> mb_y & 1 ] [ 0 ] ;\n map_col_to_list0 [ 1 ] = h -> map_col_to_list0_field [ h -> mb_y & 1 ] [ 1 ] ;\n dist_scale_factor = h -> dist_scale_factor_field [ h -> mb_y & 1 ] ;\n }\n ref_offset = ( h -> ref_list [ 1 ] [ 0 ] . mbaff << 4 ) & ( mb_type_col [ 0 ] >> 3 ) ;\n if ( IS_INTERLACED ( * mb_type ) != IS_INTERLACED ( mb_type_col [ 0 ] ) ) {\n int y_shift = 2 * ! IS_INTERLACED ( * mb_type ) ;\n assert ( h -> sps . direct_8x8_inference_flag ) ;\n for ( i8 = 0 ;\n i8 < 4 ;\n i8 ++ ) {\n const int x8 = i8 & 1 ;\n const int y8 = i8 >> 1 ;\n int ref0 , scale ;\n const int16_t ( * l1mv ) [ 2 ] = l1mv0 ;\n if ( is_b8x8 && ! IS_DIRECT ( h -> sub_mb_type [ i8 ] ) ) continue ;\n h -> sub_mb_type [ i8 ] = sub_mb_type ;\n fill_rectangle ( & h -> ref_cache [ 1 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , 0 , 1 ) ;\n if ( IS_INTRA ( mb_type_col [ y8 ] ) ) {\n fill_rectangle ( & h -> ref_cache [ 0 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , 0 , 1 ) ;\n fill_rectangle ( & h -> mv_cache [ 0 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , 0 , 4 ) ;\n fill_rectangle ( & h -> mv_cache [ 1 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , 0 , 4 ) ;\n continue ;\n }\n ref0 = l1ref0 [ x8 + y8 * b8_stride ] ;\n if ( ref0 >= 0 ) ref0 = map_col_to_list0 [ 0 ] [ ref0 + ref_offset ] ;\n else {\n ref0 = map_col_to_list0 [ 1 ] [ l1ref1 [ x8 + y8 * b8_stride ] + ref_offset ] ;\n l1mv = l1mv1 ;\n }\n scale = dist_scale_factor [ ref0 ] ;\n fill_rectangle ( & h -> ref_cache [ 0 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , ref0 , 1 ) ;\n {\n const int16_t * mv_col = l1mv [ x8 * 3 + y8 * b4_stride ] ;\n int my_col = ( mv_col [ 1 ] << y_shift ) / 2 ;\n int mx = ( scale * mv_col [ 0 ] + 128 ) >> 8 ;\n int my = ( scale * my_col + 128 ) >> 8 ;\n fill_rectangle ( & h -> mv_cache [ 0 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , pack16to32 ( mx , my ) , 4 ) ;\n fill_rectangle ( & h -> mv_cache [ 1 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , pack16to32 ( mx - mv_col [ 0 ] , my - my_col ) , 4 ) ;\n }\n }\n return ;\n }\n if ( IS_16X16 ( * mb_type ) ) {\n int ref , mv0 , mv1 ;\n fill_rectangle ( & h -> ref_cache [ 1 ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , 0 , 1 ) ;\n if ( IS_INTRA ( mb_type_col [ 0 ] ) ) {\n ref = mv0 = mv1 = 0 ;\n }\n else {\n const int ref0 = l1ref0 [ 0 ] >= 0 ? map_col_to_list0 [ 0 ] [ l1ref0 [ 0 ] + ref_offset ] : map_col_to_list0 [ 1 ] [ l1ref1 [ 0 ] + ref_offset ] ;\n const int scale = dist_scale_factor [ ref0 ] ;\n const int16_t * mv_col = l1ref0 [ 0 ] >= 0 ? l1mv0 [ 0 ] : l1mv1 [ 0 ] ;\n int mv_l0 [ 2 ] ;\n mv_l0 [ 0 ] = ( scale * mv_col [ 0 ] + 128 ) >> 8 ;\n mv_l0 [ 1 ] = ( scale * mv_col [ 1 ] + 128 ) >> 8 ;\n ref = ref0 ;\n mv0 = pack16to32 ( mv_l0 [ 0 ] , mv_l0 [ 1 ] ) ;\n mv1 = pack16to32 ( mv_l0 [ 0 ] - mv_col [ 0 ] , mv_l0 [ 1 ] - mv_col [ 1 ] ) ;\n }\n fill_rectangle ( & h -> ref_cache [ 0 ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , ref , 1 ) ;\n fill_rectangle ( & h -> mv_cache [ 0 ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , mv0 , 4 ) ;\n fill_rectangle ( & h -> mv_cache [ 1 ] [ scan8 [ 0 ] ] , 4 , 4 , 8 , mv1 , 4 ) ;\n }\n else {\n for ( i8 = 0 ;\n i8 < 4 ;\n i8 ++ ) {\n const int x8 = i8 & 1 ;\n const int y8 = i8 >> 1 ;\n int ref0 , scale ;\n const int16_t ( * l1mv ) [ 2 ] = l1mv0 ;\n if ( is_b8x8 && ! IS_DIRECT ( h -> sub_mb_type [ i8 ] ) ) continue ;\n h -> sub_mb_type [ i8 ] = sub_mb_type ;\n fill_rectangle ( & h -> ref_cache [ 1 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , 0 , 1 ) ;\n if ( IS_INTRA ( mb_type_col [ 0 ] ) ) {\n fill_rectangle ( & h -> ref_cache [ 0 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , 0 , 1 ) ;\n fill_rectangle ( & h -> mv_cache [ 0 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , 0 , 4 ) ;\n fill_rectangle ( & h -> mv_cache [ 1 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , 0 , 4 ) ;\n continue ;\n }\n assert ( b8_stride == 2 ) ;\n ref0 = l1ref0 [ i8 ] ;\n if ( ref0 >= 0 ) ref0 = map_col_to_list0 [ 0 ] [ ref0 + ref_offset ] ;\n else {\n ref0 = map_col_to_list0 [ 1 ] [ l1ref1 [ i8 ] + ref_offset ] ;\n l1mv = l1mv1 ;\n }\n scale = dist_scale_factor [ ref0 ] ;\n fill_rectangle ( & h -> ref_cache [ 0 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , ref0 , 1 ) ;\n if ( IS_SUB_8X8 ( sub_mb_type ) ) {\n const int16_t * mv_col = l1mv [ x8 * 3 + y8 * 3 * b4_stride ] ;\n int mx = ( scale * mv_col [ 0 ] + 128 ) >> 8 ;\n int my = ( scale * mv_col [ 1 ] + 128 ) >> 8 ;\n fill_rectangle ( & h -> mv_cache [ 0 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , pack16to32 ( mx , my ) , 4 ) ;\n fill_rectangle ( & h -> mv_cache [ 1 ] [ scan8 [ i8 * 4 ] ] , 2 , 2 , 8 , pack16to32 ( mx - mv_col [ 0 ] , my - mv_col [ 1 ] ) , 4 ) ;\n }\n else for ( i4 = 0 ;\n i4 < 4 ;\n i4 ++ ) {\n const int16_t * mv_col = l1mv [ x8 * 2 + ( i4 & 1 ) + ( y8 * 2 + ( i4 >> 1 ) ) * b4_stride ] ;\n int16_t * mv_l0 = h -> mv_cache [ 0 ] [ scan8 [ i8 * 4 + i4 ] ] ;\n mv_l0 [ 0 ] = ( scale * mv_col [ 0 ] + 128 ) >> 8 ;\n mv_l0 [ 1 ] = ( scale * mv_col [ 1 ] + 128 ) >> 8 ;\n AV_WN32A ( h -> mv_cache [ 1 ] [ scan8 [ i8 * 4 + i4 ] ] , pack16to32 ( mv_l0 [ 0 ] - mv_col [ 0 ] , mv_l0 [ 1 ] - mv_col [ 1 ] ) ) ;\n }\n }\n }\n }\n }"}
{"idx": 14197, "target": 0, "func": "static int s302m_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n int block_size , ret ;\n int frame_size = s302m_parse_frame_header ( avctx , buf , buf_size ) ;\n if ( frame_size < 0 ) return frame_size ;\n buf_size -= AES3_HEADER_LEN ;\n buf += AES3_HEADER_LEN ;\n block_size = ( avctx -> bits_per_coded_sample + 4 ) / 4 ;\n frame -> nb_samples = 2 * ( buf_size / block_size ) / avctx -> channels ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n buf_size = ( frame -> nb_samples * avctx -> channels / 2 ) * block_size ;\n if ( avctx -> bits_per_coded_sample == 24 ) {\n uint32_t * o = ( uint32_t * ) frame -> data [ 0 ] ;\n for ( ;\n buf_size > 6 ;\n buf_size -= 7 ) {\n * o ++ = ( ff_reverse [ buf [ 2 ] ] << 24 ) | ( ff_reverse [ buf [ 1 ] ] << 16 ) | ( ff_reverse [ buf [ 0 ] ] << 8 ) ;\n * o ++ = ( ff_reverse [ buf [ 6 ] & 0xf0 ] << 28 ) | ( ff_reverse [ buf [ 5 ] ] << 20 ) | ( ff_reverse [ buf [ 4 ] ] << 12 ) | ( ff_reverse [ buf [ 3 ] & 0x0f ] << 4 ) ;\n buf += 7 ;\n }\n }\n else if ( avctx -> bits_per_coded_sample == 20 ) {\n uint32_t * o = ( uint32_t * ) frame -> data [ 0 ] ;\n for ( ;\n buf_size > 5 ;\n buf_size -= 6 ) {\n * o ++ = ( ff_reverse [ buf [ 2 ] & 0xf0 ] << 28 ) | ( ff_reverse [ buf [ 1 ] ] << 20 ) | ( ff_reverse [ buf [ 0 ] ] << 12 ) ;\n * o ++ = ( ff_reverse [ buf [ 5 ] & 0xf0 ] << 28 ) | ( ff_reverse [ buf [ 4 ] ] << 20 ) | ( ff_reverse [ buf [ 3 ] ] << 12 ) ;\n buf += 6 ;\n }\n }\n else {\n uint16_t * o = ( uint16_t * ) frame -> data [ 0 ] ;\n for ( ;\n buf_size > 4 ;\n buf_size -= 5 ) {\n * o ++ = ( ff_reverse [ buf [ 1 ] ] << 8 ) | ff_reverse [ buf [ 0 ] ] ;\n * o ++ = ( ff_reverse [ buf [ 4 ] & 0xf0 ] << 12 ) | ( ff_reverse [ buf [ 3 ] ] << 4 ) | ( ff_reverse [ buf [ 2 ] ] >> 4 ) ;\n buf += 5 ;\n }\n }\n * got_frame_ptr = 1 ;\n return avpkt -> size ;\n }"}
{"idx": 14198, "target": 0, "func": "static int dissect_h245_RequestChannelClose ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_RequestChannelClose , RequestChannelClose_sequence ) ;\n return offset ;\n }"}
{"idx": 14199, "target": 0, "func": "static void set_segment_id ( VP9_COMMON * cm , BLOCK_SIZE bsize , int mi_row , int mi_col , int segment_id ) {\n const int mi_offset = mi_row * cm -> mi_cols + mi_col ;\n const int bw = num_8x8_blocks_wide_lookup [ bsize ] ;\n const int bh = num_8x8_blocks_high_lookup [ bsize ] ;\n const int xmis = MIN ( cm -> mi_cols - mi_col , bw ) ;\n const int ymis = MIN ( cm -> mi_rows - mi_row , bh ) ;\n int x , y ;\n assert ( segment_id >= 0 && segment_id < MAX_SEGMENTS ) ;\n for ( y = 0 ;\n y < ymis ;\n y ++ ) for ( x = 0 ;\n x < xmis ;\n x ++ ) cm -> last_frame_seg_map [ mi_offset + y * cm -> mi_cols + x ] = segment_id ;\n }"}
{"idx": 14200, "target": 0, "func": "static int stem_hint_handler ( void * client_data , gx_san_sect * ss ) {\n t1_hinter_aux * h = ( t1_hinter_aux * ) client_data ;\n if ( ss -> side_mask == 3 ) {\n if ( ss -> xl > h -> midx && h -> transpose ) return ( h -> transpose ? t1_hinter__hstem : t1_hinter__vstem ) ( & h -> super , ss -> xr , ss -> xl - ss -> xr ) ;\n else return ( h -> transpose ? t1_hinter__hstem : t1_hinter__vstem ) ( & h -> super , ss -> xl , ss -> xr - ss -> xl ) ;\n }\n else return t1_hinter__overall_hstem ( & h -> super , ss -> xl , ss -> xr - ss -> xl , ss -> side_mask ) ;\n }"}
{"idx": 14201, "target": 0, "func": "static void nvram_init ( M48t59State * nvram , uint8_t * macaddr , const char * cmdline , const char * boot_devices , ram_addr_t RAM_size , uint32_t kernel_size , int width , int height , int depth , int nvram_machine_id , const char * arch ) {\n unsigned int i ;\n uint32_t start , end ;\n uint8_t image [ 0x1ff0 ] ;\n struct OpenBIOS_nvpart_v1 * part_header ;\n memset ( image , '\\0' , sizeof ( image ) ) ;\n start = 0 ;\n part_header = ( struct OpenBIOS_nvpart_v1 * ) & image [ start ] ;\n part_header -> signature = OPENBIOS_PART_SYSTEM ;\n pstrcpy ( part_header -> name , sizeof ( part_header -> name ) , \"system\" ) ;\n end = start + sizeof ( struct OpenBIOS_nvpart_v1 ) ;\n for ( i = 0 ;\n i < nb_prom_envs ;\n i ++ ) end = OpenBIOS_set_var ( image , end , prom_envs [ i ] ) ;\n image [ end ++ ] = '\\0' ;\n end = start + ( ( end - start + 15 ) & ~ 15 ) ;\n OpenBIOS_finish_partition ( part_header , end - start ) ;\n start = end ;\n part_header = ( struct OpenBIOS_nvpart_v1 * ) & image [ start ] ;\n part_header -> signature = OPENBIOS_PART_FREE ;\n pstrcpy ( part_header -> name , sizeof ( part_header -> name ) , \"free\" ) ;\n end = 0x1fd0 ;\n OpenBIOS_finish_partition ( part_header , end - start ) ;\n Sun_init_header ( ( struct Sun_nvram * ) & image [ 0x1fd8 ] , macaddr , nvram_machine_id ) ;\n for ( i = 0 ;\n i < sizeof ( image ) ;\n i ++ ) m48t59_write ( nvram , i , image [ i ] ) ;\n }"}
{"idx": 14202, "target": 0, "func": "void globfree ( pglob ) register glob_t * pglob ;\n {\n if ( pglob -> gl_pathv != NULL ) {\n size_t i ;\n for ( i = 0 ;\n i < pglob -> gl_pathc ;\n ++ i ) free ( pglob -> gl_pathv [ pglob -> gl_offs + i ] ) ;\n free ( pglob -> gl_pathv ) ;\n pglob -> gl_pathv = NULL ;\n }\n }"}
{"idx": 14203, "target": 0, "func": "static int isoent_cmp_key ( const struct archive_rb_node * n , const void * key ) {\n const struct isoent * e = ( const struct isoent * ) n ;\n return ( strcmp ( e -> file -> basename . s , ( const char * ) key ) ) ;\n }"}
{"idx": 14204, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ContentFaviconDriverTest , AssociateIconWithInitialPageDespite300ResponseAndMetaRefreshTag ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n GURL url_with_meta_refresh_tag = embedded_test_server ( ) -> GetURL ( \"/favicon/page_with_meta_refresh_tag.html\" ) ;\n GURL url = embedded_test_server ( ) -> GetURL ( \"/server-redirect?\" + url_with_meta_refresh_tag . spec ( ) ) ;\n GURL landing_url = embedded_test_server ( ) -> GetURL ( \"/favicon/page_with_favicon.html\" ) ;\n PendingTaskWaiter waiter ( web_contents ( ) ) ;\n waiter . AlsoRequireUrl ( landing_url ) ;\n ui_test_utils : : NavigateToURLWithDisposition ( browser ( ) , url , WindowOpenDisposition : : CURRENT_TAB , ui_test_utils : : BROWSER_TEST_NONE ) ;\n waiter . Wait ( ) ;\n EXPECT_NE ( nullptr , GetFaviconForPageURL ( url , favicon_base : : IconType : : kFavicon ) . bitmap_data ) ;\n EXPECT_NE ( nullptr , GetFaviconForPageURL ( landing_url , favicon_base : : IconType : : kFavicon ) . bitmap_data ) ;\n }"}
{"idx": 14205, "target": 0, "func": "h225ras_call_t * append_h225ras_call ( h225ras_call_t * prev_call , packet_info * pinfo , e_guid_t * guid , int category _U_ ) {\n h225ras_call_t * h225ras_call = NULL ;\n h225ras_call = wmem_new ( wmem_file_scope ( ) , h225ras_call_t ) ;\n h225ras_call -> req_num = pinfo -> num ;\n h225ras_call -> rsp_num = 0 ;\n h225ras_call -> requestSeqNum = prev_call -> requestSeqNum ;\n h225ras_call -> responded = FALSE ;\n h225ras_call -> next_call = NULL ;\n h225ras_call -> req_time = pinfo -> abs_ts ;\n h225ras_call -> guid = * guid ;\n prev_call -> next_call = h225ras_call ;\n return h225ras_call ;\n }"}
{"idx": 14206, "target": 0, "func": "METHOD ( certificate_t , get_public_key , public_key_t * , private_x509_cert_t * this ) {\n this -> public_key -> get_ref ( this -> public_key ) ;\n return this -> public_key ;\n }"}
{"idx": 14207, "target": 0, "func": "xmlOutputBufferCreateFilenameFunc * __xmlOutputBufferCreateFilenameValue ( void ) {\n if ( IS_MAIN_THREAD ) return ( & xmlOutputBufferCreateFilenameValue ) ;\n else return ( & xmlGetGlobalState ( ) -> xmlOutputBufferCreateFilenameValue ) ;\n }"}
{"idx": 14208, "target": 0, "func": "inline static void _slurm_rpc_checkpoint_comp ( slurm_msg_t * msg ) {\n int error_code = SLURM_SUCCESS ;\n DEF_TIMERS ;\n checkpoint_comp_msg_t * ckpt_ptr = ( checkpoint_comp_msg_t * ) msg -> data ;\n slurmctld_lock_t job_read_lock = {\n NO_LOCK , READ_LOCK , NO_LOCK , NO_LOCK , NO_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n START_TIMER ;\n debug2 ( \"Processing RPC: REQUEST_CHECKPOINT_COMP from uid=%d\" , uid ) ;\n lock_slurmctld ( job_read_lock ) ;\n error_code = job_step_checkpoint_comp ( ckpt_ptr , uid , msg -> conn_fd , msg -> protocol_version ) ;\n unlock_slurmctld ( job_read_lock ) ;\n END_TIMER2 ( \"_slurm_rpc_checkpoint_comp\" ) ;\n if ( error_code ) {\n info ( \"_slurm_rpc_checkpoint_comp %u.%u: %s\" , ckpt_ptr -> job_id , ckpt_ptr -> step_id , slurm_strerror ( error_code ) ) ;\n }\n else {\n info ( \"_slurm_rpc_checkpoint_comp %u.%u %s\" , ckpt_ptr -> job_id , ckpt_ptr -> step_id , TIME_STR ) ;\n }\n }"}
{"idx": 14209, "target": 0, "func": "int fill_schema_schema_privileges ( THD * thd , TABLE_LIST * tables , COND * cond ) {\n # ifndef NO_EMBEDDED_ACCESS_CHECKS int error = 0 ;\n uint counter ;\n ACL_DB * acl_db ;\n ulong want_access ;\n char buff [ 100 ] ;\n TABLE * table = tables -> table ;\n bool no_global_access = check_access ( thd , SELECT_ACL , \"mysql\" , 0 , 1 , 1 , 0 ) ;\n char * curr_host = thd -> security_ctx -> priv_host_name ( ) ;\n DBUG_ENTER ( \"fill_schema_schema_privileges\" ) ;\n if ( ! initialized ) DBUG_RETURN ( 0 ) ;\n pthread_mutex_lock ( & acl_cache -> lock ) ;\n for ( counter = 0 ;\n counter < acl_dbs . elements ;\n counter ++ ) {\n const char * user , * host , * is_grantable = \"YES\" ;\n acl_db = dynamic_element ( & acl_dbs , counter , ACL_DB * ) ;\n if ( ! ( user = acl_db -> user ) ) user = \"\" ;\n if ( ! ( host = acl_db -> host . hostname ) ) host = \"\" ;\n if ( no_global_access && ( strcmp ( thd -> security_ctx -> priv_user , user ) || my_strcasecmp ( system_charset_info , curr_host , host ) ) ) continue ;\n want_access = acl_db -> access ;\n if ( want_access ) {\n if ( ! ( want_access & GRANT_ACL ) ) {\n is_grantable = \"NO\" ;\n }\n strxmov ( buff , \"'\" , user , \"'@'\" , host , \"'\" , NullS ) ;\n if ( ! ( want_access & ~ GRANT_ACL ) ) {\n if ( update_schema_privilege ( thd , table , buff , acl_db -> db , 0 , 0 , 0 , STRING_WITH_LEN ( \"USAGE\" ) , is_grantable ) ) {\n error = 1 ;\n goto err ;\n }\n }\n else {\n int cnt ;\n ulong j , test_access = want_access & ~ GRANT_ACL ;\n for ( cnt = 0 , j = SELECT_ACL ;\n j <= DB_ACLS ;\n cnt ++ , j <<= 1 ) if ( test_access & j ) {\n if ( update_schema_privilege ( thd , table , buff , acl_db -> db , 0 , 0 , 0 , command_array [ cnt ] , command_lengths [ cnt ] , is_grantable ) ) {\n error = 1 ;\n goto err ;\n }\n }\n }\n }\n }\n err : pthread_mutex_unlock ( & acl_cache -> lock ) ;\n DBUG_RETURN ( error ) ;\n # else return ( 0 ) ;\n # endif }"}
{"idx": 14210, "target": 0, "func": "static int cmp ( const chr * x , const chr * y , size_t len ) {\n return memcmp ( VS ( x ) , VS ( y ) , len * sizeof ( chr ) ) ;\n }"}
{"idx": 14211, "target": 0, "func": "int qemuMonitorTextGetPtyPaths ( qemuMonitorPtr mon , virHashTablePtr paths ) {\n char * reply = NULL ;\n int ret = - 1 ;\n if ( qemuMonitorHMPCommand ( mon , \"info chardev\" , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , _ ( \"failed to retrieve chardev info in qemu with 'info chardev'\" ) ) ;\n return - 1 ;\n }\n char * pos ;\n char * next = reply ;\n char * eol ;\n char * end = reply + strlen ( reply ) ;\n while ( next ) {\n pos = next ;\n eol = memchr ( pos , '\\n' , end - pos ) ;\n if ( eol == NULL ) {\n eol = end ;\n next = NULL ;\n }\n else {\n next = eol + 1 ;\n }\n while ( eol > pos && c_isspace ( * ( eol - 1 ) ) ) eol -= 1 ;\n # define NEEDLE \"filename=pty:\" char * needle = memmem ( pos , eol - pos , NEEDLE , strlen ( NEEDLE ) ) ;\n if ( ! needle ) continue ;\n char * colon = memchr ( pos , ':' , needle - pos ) ;\n if ( colon == NULL ) continue ;\n * colon = '\\0' ;\n char * id = pos ;\n * eol = '\\0' ;\n char * path = strdup ( needle + strlen ( NEEDLE ) ) ;\n if ( path == NULL ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n if ( virHashAddEntry ( paths , id , path ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"failed to save chardev path '%s'\" ) , path ) ;\n VIR_FREE ( path ) ;\n goto cleanup ;\n }\n # undef NEEDLE }\n ret = 0 ;\n cleanup : VIR_FREE ( reply ) ;\n return ret ;\n }"}
{"idx": 14212, "target": 0, "func": "TEST_F ( WebFrameSimTest , DisambiguationPopupPixelTest ) {\n WebView ( ) . Resize ( WebSize ( 400 , 600 ) ) ;\n WebView ( ) . GetPage ( ) -> GetSettings ( ) . SetTextAutosizingEnabled ( false ) ;\n UseAndroidSettings ( ) ;\n SimRequest request ( \"https://example.com/test.html\" , \"text/html\" ) ;\n LoadURL ( \"https://example.com/test.html\" ) ;\n request . Complete ( R \"HTML( < ! DOCTYPE html > < style > body , html {\n width : 4000px ;\n height : 4000px ;\n margin : 0 ;\n }\n # box {\n position : absolute ;\n left : 200px ;\n top : 300px ;\n width : 100px ;\n height : 100px ;\n background - color : red ;\n }\n < / style > < div id = \"box\" > < / div > ) HTML \");\n Compositor ( ) . BeginFrame ( ) ;\n ASSERT_EQ ( 0.25f , WebView ( ) . PageScaleFactor ( ) ) ;\n float scale = 4.f ;\n WebRect zoom_rect ( 200 , 300 , 100 , 100 ) ;\n gfx : : Size canvas_size ( zoom_rect . width * scale , zoom_rect . height * scale ) ;\n SkImageInfo info = SkImageInfo : : MakeN32Premul ( canvas_size . width ( ) , canvas_size . height ( ) ) ;\n size_t size = info . computeMinByteSize ( ) ;\n auto buffer = std : : make_unique < uint8_t [ ] > ( size ) ;\n SkBitmap bitmap ;\n bitmap . installPixels ( info , buffer . get ( ) , info . minRowBytes ( ) ) ;\n cc : : SkiaPaintCanvas canvas ( bitmap ) ;\n canvas . scale ( scale , scale ) ;\n canvas . translate ( - zoom_rect . x , - zoom_rect . y ) ;\n WebView ( ) . UpdateAllLifecyclePhases ( ) ;\n WebView ( ) . PaintContentIgnoringCompositing ( & canvas , zoom_rect ) ;\n for ( int x = 0 ;\n x < canvas_size . width ( ) ;\n ++ x ) {\n for ( int y = 0 ;\n y < canvas_size . height ( ) ;\n ++ y ) {\n ASSERT_EQ ( bitmap . getColor ( x , y ) , SK_ColorRED ) << \"Mismatching pixel at (\" << x << \", \" << y << \")\" ;\n }\n }\n }"}
{"idx": 14213, "target": 0, "func": "TEST_F ( WebFrameSimTest , FindInPageSelectNextMatch ) {\n WebView ( ) . Resize ( WebSize ( 500 , 300 ) ) ;\n WebView ( ) . GetPage ( ) -> GetSettings ( ) . SetTextAutosizingEnabled ( false ) ;\n SimRequest request ( \"https://example.com/test.html\" , \"text/html\" ) ;\n LoadURL ( \"https://example.com/test.html\" ) ;\n request . Complete ( R \"HTML( < ! DOCTYPE html > < style > body , html {\n width : 4000px ;\n height : 4000px ;\n margin : 0 ;\n }\n # box1 {\n position : absolute ;\n left : 800px ;\n top : 2000px ;\n }\n # box2 {\n position : absolute ;\n left : 1000px ;\n top : 3000px ;\n }"}
{"idx": 14214, "target": 0, "func": "int * X509_REQ_get_extension_nids ( void ) {\n return ext_nids ;\n }"}
{"idx": 14215, "target": 0, "func": "static int read_odml_index ( AVFormatContext * s , int frame_num ) {\n AVIContext * avi = s -> priv_data ;\n AVIOContext * pb = s -> pb ;\n int longs_per_entry = avio_rl16 ( pb ) ;\n int index_sub_type = avio_r8 ( pb ) ;\n int index_type = avio_r8 ( pb ) ;\n int entries_in_use = avio_rl32 ( pb ) ;\n int chunk_id = avio_rl32 ( pb ) ;\n int64_t base = avio_rl64 ( pb ) ;\n int stream_id = ( ( chunk_id & 0xFF ) - '0' ) * 10 + ( ( chunk_id >> 8 & 0xFF ) - '0' ) ;\n AVStream * st ;\n AVIStream * ast ;\n int i ;\n int64_t last_pos = - 1 ;\n int64_t filesize = avi -> fsize ;\n av_log ( s , AV_LOG_TRACE , \"longs_per_entry:%d index_type:%d entries_in_use:%d \" \"chunk_id:%X base:%16\" PRIX64 \" frame_num:%d\\n\" , longs_per_entry , index_type , entries_in_use , chunk_id , base , frame_num ) ;\n if ( stream_id >= s -> nb_streams || stream_id < 0 ) return AVERROR_INVALIDDATA ;\n st = s -> streams [ stream_id ] ;\n ast = st -> priv_data ;\n if ( index_sub_type ) return AVERROR_INVALIDDATA ;\n avio_rl32 ( pb ) ;\n if ( index_type && longs_per_entry != 2 ) return AVERROR_INVALIDDATA ;\n if ( index_type > 1 ) return AVERROR_INVALIDDATA ;\n if ( filesize > 0 && base >= filesize ) {\n av_log ( s , AV_LOG_ERROR , \"ODML index invalid\\n\" ) ;\n if ( base >> 32 == ( base & 0xFFFFFFFF ) && ( base & 0xFFFFFFFF ) < filesize && filesize <= 0xFFFFFFFF ) base &= 0xFFFFFFFF ;\n else return AVERROR_INVALIDDATA ;\n }\n for ( i = 0 ;\n i < entries_in_use ;\n i ++ ) {\n if ( index_type ) {\n int64_t pos = avio_rl32 ( pb ) + base - 8 ;\n int len = avio_rl32 ( pb ) ;\n int key = len >= 0 ;\n len &= 0x7FFFFFFF ;\n av_log ( s , AV_LOG_TRACE , \"pos:%\" PRId64 \", len:%X\\n\" , pos , len ) ;\n if ( avio_feof ( pb ) ) return AVERROR_INVALIDDATA ;\n if ( last_pos == pos || pos == base - 8 ) avi -> non_interleaved = 1 ;\n if ( last_pos != pos && len ) av_add_index_entry ( st , pos , ast -> cum_len , len , 0 , key ? AVINDEX_KEYFRAME : 0 ) ;\n ast -> cum_len += get_duration ( ast , len ) ;\n last_pos = pos ;\n }\n else {\n int64_t offset , pos ;\n int duration ;\n offset = avio_rl64 ( pb ) ;\n avio_rl32 ( pb ) ;\n duration = avio_rl32 ( pb ) ;\n if ( avio_feof ( pb ) ) return AVERROR_INVALIDDATA ;\n pos = avio_tell ( pb ) ;\n if ( avi -> odml_depth > MAX_ODML_DEPTH ) {\n av_log ( s , AV_LOG_ERROR , \"Too deeply nested ODML indexes\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( avio_seek ( pb , offset + 8 , SEEK_SET ) < 0 ) return - 1 ;\n avi -> odml_depth ++ ;\n read_odml_index ( s , frame_num ) ;\n avi -> odml_depth -- ;\n frame_num += duration ;\n if ( avio_seek ( pb , pos , SEEK_SET ) < 0 ) {\n av_log ( s , AV_LOG_ERROR , \"Failed to restore position after reading index\\n\" ) ;\n return - 1 ;\n }\n }\n }\n avi -> index_loaded = 2 ;\n return 0 ;\n }"}
{"idx": 14216, "target": 0, "func": "void nautilus_self_check_file_operations ( void ) {\n setlocale ( LC_MESSAGES , \"C\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \" (copy)\" , 1 , - 1 ) , \" (another copy)\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo\" , 1 , - 1 ) , \"foo (copy)\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \".bashrc\" , 1 , - 1 ) , \".bashrc (copy)\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \".foo.txt\" , 1 , - 1 ) , \".foo (copy).txt\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo foo\" , 1 , - 1 ) , \"foo foo (copy)\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo.txt\" , 1 , - 1 ) , \"foo (copy).txt\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo foo.txt\" , 1 , - 1 ) , \"foo foo (copy).txt\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo foo.txt txt\" , 1 , - 1 ) , \"foo foo (copy).txt txt\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo...txt\" , 1 , - 1 ) , \"foo.. (copy).txt\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo...\" , 1 , - 1 ) , \"foo... (copy)\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo. (copy)\" , 1 , - 1 ) , \"foo. (another copy)\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo (copy)\" , 1 , - 1 ) , \"foo (another copy)\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo (copy).txt\" , 1 , - 1 ) , \"foo (another copy).txt\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo (another copy)\" , 1 , - 1 ) , \"foo (3rd copy)\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo (another copy).txt\" , 1 , - 1 ) , \"foo (3rd copy).txt\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo foo (another copy).txt\" , 1 , - 1 ) , \"foo foo (3rd copy).txt\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo (13th copy)\" , 1 , - 1 ) , \"foo (14th copy)\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo (13th copy).txt\" , 1 , - 1 ) , \"foo (14th copy).txt\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo (21st copy)\" , 1 , - 1 ) , \"foo (22nd copy)\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo (21st copy).txt\" , 1 , - 1 ) , \"foo (22nd copy).txt\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo (22nd copy)\" , 1 , - 1 ) , \"foo (23rd copy)\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo (22nd copy).txt\" , 1 , - 1 ) , \"foo (23rd copy).txt\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo (23rd copy)\" , 1 , - 1 ) , \"foo (24th copy)\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo (23rd copy).txt\" , 1 , - 1 ) , \"foo (24th copy).txt\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo (24th copy)\" , 1 , - 1 ) , \"foo (25th copy)\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo (24th copy).txt\" , 1 , - 1 ) , \"foo (25th copy).txt\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo foo (24th copy)\" , 1 , - 1 ) , \"foo foo (25th copy)\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo foo (24th copy).txt\" , 1 , - 1 ) , \"foo foo (25th copy).txt\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo foo (100000000000000th copy).txt\" , 1 , - 1 ) , \"foo foo (copy).txt\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo (10th copy)\" , 1 , - 1 ) , \"foo (11th copy)\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo (10th copy).txt\" , 1 , - 1 ) , \"foo (11th copy).txt\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo (11th copy)\" , 1 , - 1 ) , \"foo (12th copy)\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo (11th copy).txt\" , 1 , - 1 ) , \"foo (12th copy).txt\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo (12th copy)\" , 1 , - 1 ) , \"foo (13th copy)\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo (12th copy).txt\" , 1 , - 1 ) , \"foo (13th copy).txt\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo (110th copy)\" , 1 , - 1 ) , \"foo (111th copy)\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo (110th copy).txt\" , 1 , - 1 ) , \"foo (111th copy).txt\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo (122nd copy)\" , 1 , - 1 ) , \"foo (123rd copy)\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo (122nd copy).txt\" , 1 , - 1 ) , \"foo (123rd copy).txt\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo (123rd copy)\" , 1 , - 1 ) , \"foo (124th copy)\" ) ;\n EEL_CHECK_STRING_RESULT ( get_duplicate_name ( \"foo (123rd copy).txt\" , 1 , - 1 ) , \"foo (124th copy).txt\" ) ;\n setlocale ( LC_MESSAGES , \"\" ) ;\n }"}
{"idx": 14217, "target": 0, "func": "TSReturnCode sdk_sanity_check_fetch_sm ( TSFetchSM fetch_sm ) {\n if ( fetch_sm == nullptr ) {\n return TS_ERROR ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 14218, "target": 0, "func": "static void dumpcfftopdict ( SplineFont * sf , struct alltabs * at ) {\n char * pt , * end ;\n FILE * cfff = at -> cfff ;\n DBounds b ;\n putshort ( cfff , 1 ) ;\n putc ( '\\2' , cfff ) ;\n putshort ( cfff , 1 ) ;\n at -> lenpos = ftell ( cfff ) ;\n putshort ( cfff , 0 ) ;\n dumpsid ( cfff , at , sf -> version , 0 ) ;\n dumpsid ( cfff , at , sf -> copyright , 1 ) ;\n dumpsid ( cfff , at , sf -> fullname ? sf -> fullname : sf -> fontname , 2 ) ;\n dumpsid ( cfff , at , sf -> familyname , 3 ) ;\n dumpsid ( cfff , at , sf -> weight , 4 ) ;\n if ( at -> gi . fixed_width > 0 ) dumpintoper ( cfff , 1 , ( 12 << 8 ) | 1 ) ;\n if ( sf -> italicangle != 0 ) dumpdbloper ( cfff , sf -> italicangle , ( 12 << 8 ) | 2 ) ;\n if ( sf -> upos != - 100 ) dumpdbloper ( cfff , sf -> upos , ( 12 << 8 ) | 3 ) ;\n if ( sf -> uwidth != 50 ) dumpdbloper ( cfff , sf -> uwidth , ( 12 << 8 ) | 4 ) ;\n if ( sf -> strokedfont ) {\n dumpintoper ( cfff , 2 , ( 12 << 8 ) | 5 ) ;\n dumpdbloper ( cfff , sf -> strokewidth , ( 12 << 8 ) | 8 ) ;\n }\n if ( sf -> ascent + sf -> descent != 1000 ) {\n dumpdbl ( cfff , 1.0 / ( sf -> ascent + sf -> descent ) ) ;\n dumpint ( cfff , 0 ) ;\n dumpint ( cfff , 0 ) ;\n dumpdbl ( cfff , 1.0 / ( sf -> ascent + sf -> descent ) ) ;\n dumpint ( cfff , 0 ) ;\n dumpintoper ( cfff , 0 , ( 12 << 8 ) | 7 ) ;\n }\n if ( sf -> uniqueid != - 1 && sf -> use_uniqueid ) dumpintoper ( cfff , sf -> uniqueid ? sf -> uniqueid : 4000000 + ( rand ( ) & 0x3ffff ) , 13 ) ;\n SplineFontLayerFindBounds ( sf , at -> gi . layer , & b ) ;\n at -> gi . xmin = b . minx ;\n at -> gi . ymin = b . miny ;\n at -> gi . xmax = b . maxx ;\n at -> gi . ymax = b . maxy ;\n dumpdbl ( cfff , floor ( b . minx ) ) ;\n dumpdbl ( cfff , floor ( b . miny ) ) ;\n dumpdbl ( cfff , ceil ( b . maxx ) ) ;\n dumpdbloper ( cfff , ceil ( b . maxy ) , 5 ) ;\n if ( sf -> xuid != NULL && sf -> use_xuid ) {\n pt = sf -> xuid ;\n if ( * pt == '[' ) ++ pt ;\n while ( * pt && * pt != ']' ) {\n dumpint ( cfff , strtol ( pt , & end , 10 ) ) ;\n if ( pt == end ) break ;\n for ( pt = end ;\n * pt == ' ' ;\n ++ pt ) ;\n }\n putc ( 14 , cfff ) ;\n if ( sf -> changed_since_xuidchanged ) SFIncrementXUID ( sf ) ;\n }\n }"}
{"idx": 14219, "target": 0, "func": "static void calc_psnr ( const YV12_BUFFER_CONFIG * a , const YV12_BUFFER_CONFIG * b , PSNR_STATS * psnr ) {\n const int widths [ 3 ] = {\n a -> y_width , a -> uv_width , a -> uv_width }\n ;\n const int heights [ 3 ] = {\n a -> y_height , a -> uv_height , a -> uv_height }\n ;\n const uint8_t * a_planes [ 3 ] = {\n a -> y_buffer , a -> u_buffer , a -> v_buffer }\n ;\n const int a_strides [ 3 ] = {\n a -> y_stride , a -> uv_stride , a -> uv_stride }\n ;\n const uint8_t * b_planes [ 3 ] = {\n b -> y_buffer , b -> u_buffer , b -> v_buffer }\n ;\n const int b_strides [ 3 ] = {\n b -> y_stride , b -> uv_stride , b -> uv_stride }\n ;\n int i ;\n uint64_t total_sse = 0 ;\n uint32_t total_samples = 0 ;\n for ( i = 0 ;\n i < 3 ;\n ++ i ) {\n const int w = widths [ i ] ;\n const int h = heights [ i ] ;\n const uint32_t samples = w * h ;\n const uint64_t sse = get_sse ( a_planes [ i ] , a_strides [ i ] , b_planes [ i ] , b_strides [ i ] , w , h ) ;\n psnr -> sse [ 1 + i ] = sse ;\n psnr -> samples [ 1 + i ] = samples ;\n psnr -> psnr [ 1 + i ] = vpx_sse_to_psnr ( samples , 255.0 , ( double ) sse ) ;\n total_sse += sse ;\n total_samples += samples ;\n }\n psnr -> sse [ 0 ] = total_sse ;\n psnr -> samples [ 0 ] = total_samples ;\n psnr -> psnr [ 0 ] = vpx_sse_to_psnr ( ( double ) total_samples , 255.0 , ( double ) total_sse ) ;\n }"}
{"idx": 14220, "target": 0, "func": "gcry_sexp_t gcry_sexp_cdr ( const gcry_sexp_t list ) {\n const byte * p ;\n const byte * head ;\n DATALEN n ;\n gcry_sexp_t newlist ;\n byte * d ;\n int level = 0 ;\n int skip = 1 ;\n if ( ! list || list -> d [ 0 ] != ST_OPEN ) return NULL ;\n p = list -> d ;\n while ( skip > 0 ) {\n p ++ ;\n if ( * p == ST_DATA ) {\n memcpy ( & n , ++ p , sizeof n ) ;\n p += sizeof n + n ;\n p -- ;\n if ( ! level ) skip -- ;\n }\n else if ( * p == ST_OPEN ) {\n level ++ ;\n }\n else if ( * p == ST_CLOSE ) {\n level -- ;\n if ( ! level ) skip -- ;\n }\n else if ( * p == ST_STOP ) {\n return NULL ;\n }\n }\n p ++ ;\n head = p ;\n level = 0 ;\n do {\n if ( * p == ST_DATA ) {\n memcpy ( & n , ++ p , sizeof n ) ;\n p += sizeof n + n ;\n p -- ;\n }\n else if ( * p == ST_OPEN ) {\n level ++ ;\n }\n else if ( * p == ST_CLOSE ) {\n level -- ;\n }\n else if ( * p == ST_STOP ) {\n return NULL ;\n }\n p ++ ;\n }\n while ( level ) ;\n n = p - head ;\n newlist = gcry_malloc ( sizeof * newlist + n + 2 ) ;\n if ( ! newlist ) return NULL ;\n d = newlist -> d ;\n * d ++ = ST_OPEN ;\n memcpy ( d , head , n ) ;\n d += n ;\n * d ++ = ST_CLOSE ;\n * d ++ = ST_STOP ;\n return normalize ( newlist ) ;\n }"}
{"idx": 14221, "target": 0, "func": "static bool tlist_matches_coltypelist ( List * tlist , List * coltypelist ) {\n ListCell * tlistitem ;\n ListCell * clistitem ;\n clistitem = list_head ( coltypelist ) ;\n foreach ( tlistitem , tlist ) {\n TargetEntry * tle = ( TargetEntry * ) lfirst ( tlistitem ) ;\n Oid coltype ;\n if ( tle -> resjunk ) continue ;\n if ( clistitem == NULL ) return false ;\n coltype = lfirst_oid ( clistitem ) ;\n clistitem = lnext ( clistitem ) ;\n if ( exprType ( ( Node * ) tle -> expr ) != coltype ) return false ;\n }\n if ( clistitem != NULL ) return false ;\n return true ;\n }"}
{"idx": 14222, "target": 0, "func": "Archive * OpenArchive ( const char * FileSpec , const ArchiveFormat fmt ) {\n ArchiveHandle * AH = _allocAH ( FileSpec , fmt , 0 , archModeRead , setupRestoreWorker ) ;\n return ( Archive * ) AH ;\n }"}
{"idx": 14223, "target": 0, "func": "static void pdf_init_gstate ( fz_context * ctx , pdf_gstate * gs , const fz_matrix * ctm ) {\n gs -> ctm = * ctm ;\n gs -> clip_depth = 0 ;\n gs -> stroke_state = fz_new_stroke_state ( ctx ) ;\n gs -> stroke . kind = PDF_MAT_COLOR ;\n gs -> stroke . colorspace = fz_keep_colorspace ( ctx , fz_device_gray ( ctx ) ) ;\n gs -> stroke . v [ 0 ] = 0 ;\n gs -> stroke . pattern = NULL ;\n gs -> stroke . shade = NULL ;\n gs -> stroke . alpha = 1 ;\n gs -> stroke . gstate_num = - 1 ;\n gs -> fill . kind = PDF_MAT_COLOR ;\n gs -> fill . colorspace = fz_keep_colorspace ( ctx , fz_device_gray ( ctx ) ) ;\n gs -> fill . v [ 0 ] = 0 ;\n gs -> fill . pattern = NULL ;\n gs -> fill . shade = NULL ;\n gs -> fill . alpha = 1 ;\n gs -> fill . gstate_num = - 1 ;\n gs -> text . char_space = 0 ;\n gs -> text . word_space = 0 ;\n gs -> text . scale = 1 ;\n gs -> text . leading = 0 ;\n gs -> text . font = NULL ;\n gs -> text . size = - 1 ;\n gs -> text . render = 0 ;\n gs -> text . rise = 0 ;\n gs -> blendmode = 0 ;\n gs -> softmask = NULL ;\n gs -> softmask_resources = NULL ;\n gs -> softmask_ctm = fz_identity ;\n gs -> luminosity = 0 ;\n gs -> fill . color_params = * fz_default_color_params ( ctx ) ;\n gs -> stroke . color_params = * fz_default_color_params ( ctx ) ;\n }"}
{"idx": 14224, "target": 0, "func": "int EVP_CIPHER_CTX_copy ( EVP_CIPHER_CTX * out , const EVP_CIPHER_CTX * in ) {\n if ( ( in == NULL ) || ( in -> cipher == NULL ) ) {\n EVPerr ( EVP_F_EVP_CIPHER_CTX_COPY , EVP_R_INPUT_NOT_INITIALIZED ) ;\n return 0 ;\n }\n # ifndef OPENSSL_NO_ENGINE if ( in -> engine && ! ENGINE_init ( in -> engine ) ) {\n EVPerr ( EVP_F_EVP_CIPHER_CTX_COPY , ERR_R_ENGINE_LIB ) ;\n return 0 ;\n }\n # endif EVP_CIPHER_CTX_reset ( out ) ;\n memcpy ( out , in , sizeof ( * out ) ) ;\n if ( in -> cipher_data && in -> cipher -> ctx_size ) {\n out -> cipher_data = OPENSSL_malloc ( in -> cipher -> ctx_size ) ;\n if ( out -> cipher_data == NULL ) {\n EVPerr ( EVP_F_EVP_CIPHER_CTX_COPY , ERR_R_MALLOC_FAILURE ) ;\n return 0 ;\n }\n memcpy ( out -> cipher_data , in -> cipher_data , in -> cipher -> ctx_size ) ;\n }\n if ( in -> cipher -> flags & EVP_CIPH_CUSTOM_COPY ) return in -> cipher -> ctrl ( ( EVP_CIPHER_CTX * ) in , EVP_CTRL_COPY , 0 , out ) ;\n return 1 ;\n }"}
{"idx": 14225, "target": 0, "func": "static int com_pager ( String * buffer __attribute__ ( ( unused ) ) , char * line __attribute__ ( ( unused ) ) ) {\n char pager_name [ FN_REFLEN ] , * end , * param ;\n if ( status . batch ) return 0 ;\n while ( my_isspace ( charset_info , * line ) ) line ++ ;\n param = strchr ( line , ' ' ) ;\n while ( param && my_isspace ( charset_info , * param ) ) param ++ ;\n if ( ! param || ! strlen ( param ) ) {\n if ( ! default_pager_set ) {\n tee_fprintf ( stdout , \"Default pager wasn't set, using stdout.\\n\" ) ;\n opt_nopager = 1 ;\n strmov ( pager , \"stdout\" ) ;\n PAGER = stdout ;\n return 0 ;\n }\n strmov ( pager , default_pager ) ;\n }\n else {\n end = strmake_buf ( pager_name , param ) ;\n while ( end > pager_name && ( my_isspace ( charset_info , end [ - 1 ] ) || my_iscntrl ( charset_info , end [ - 1 ] ) ) ) end -- ;\n end [ 0 ] = 0 ;\n strmov ( pager , pager_name ) ;\n strmov ( default_pager , pager_name ) ;\n }\n opt_nopager = 0 ;\n tee_fprintf ( stdout , \"PAGER set to '%s'\\n\" , pager ) ;\n return 0 ;\n }"}
{"idx": 14226, "target": 0, "func": "void jas_image_clearfmts ( ) {\n int i ;\n jas_image_fmtinfo_t * fmtinfo ;\n for ( i = 0 ;\n i < jas_image_numfmts ;\n ++ i ) {\n fmtinfo = & jas_image_fmtinfos [ i ] ;\n if ( fmtinfo -> name ) {\n jas_free ( fmtinfo -> name ) ;\n fmtinfo -> name = 0 ;\n }\n if ( fmtinfo -> ext ) {\n jas_free ( fmtinfo -> ext ) ;\n fmtinfo -> ext = 0 ;\n }\n if ( fmtinfo -> desc ) {\n jas_free ( fmtinfo -> desc ) ;\n fmtinfo -> desc = 0 ;\n }\n }\n jas_image_numfmts = 0 ;\n }"}
{"idx": 14227, "target": 0, "func": "static GFile * get_target_file_for_display_name ( GFile * dir , const gchar * name ) {\n GFile * dest ;\n dest = NULL ;\n dest = g_file_get_child_for_display_name ( dir , name , NULL ) ;\n if ( dest == NULL ) {\n dest = g_file_get_child ( dir , name ) ;\n }\n return dest ;\n }"}
{"idx": 14228, "target": 0, "func": "static void brackpart ( struct vars * v , struct state * lp , struct state * rp ) {\n celt startc ;\n celt endc ;\n struct cvec * cv ;\n const chr * startp ;\n const chr * endp ;\n chr c [ 1 ] ;\n switch ( v -> nexttype ) {\n case RANGE : ERR ( REG_ERANGE ) ;\n return ;\n break ;\n case PLAIN : c [ 0 ] = v -> nextvalue ;\n NEXT ( ) ;\n if ( ! SEE ( RANGE ) ) {\n onechr ( v , c [ 0 ] , lp , rp ) ;\n return ;\n }\n startc = element ( v , c , c + 1 ) ;\n NOERR ( ) ;\n break ;\n case COLLEL : startp = v -> now ;\n endp = scanplain ( v ) ;\n INSIST ( startp < endp , REG_ECOLLATE ) ;\n NOERR ( ) ;\n startc = element ( v , startp , endp ) ;\n NOERR ( ) ;\n break ;\n case ECLASS : startp = v -> now ;\n endp = scanplain ( v ) ;\n INSIST ( startp < endp , REG_ECOLLATE ) ;\n NOERR ( ) ;\n startc = element ( v , startp , endp ) ;\n NOERR ( ) ;\n cv = eclass ( v , startc , ( v -> cflags & REG_ICASE ) ) ;\n NOERR ( ) ;\n dovec ( v , cv , lp , rp ) ;\n return ;\n break ;\n case CCLASS : startp = v -> now ;\n endp = scanplain ( v ) ;\n INSIST ( startp < endp , REG_ECTYPE ) ;\n NOERR ( ) ;\n cv = cclass ( v , startp , endp , ( v -> cflags & REG_ICASE ) ) ;\n NOERR ( ) ;\n dovec ( v , cv , lp , rp ) ;\n return ;\n break ;\n default : ERR ( REG_ASSERT ) ;\n return ;\n break ;\n }\n if ( SEE ( RANGE ) ) {\n NEXT ( ) ;\n switch ( v -> nexttype ) {\n case PLAIN : case RANGE : c [ 0 ] = v -> nextvalue ;\n NEXT ( ) ;\n endc = element ( v , c , c + 1 ) ;\n NOERR ( ) ;\n break ;\n case COLLEL : startp = v -> now ;\n endp = scanplain ( v ) ;\n INSIST ( startp < endp , REG_ECOLLATE ) ;\n NOERR ( ) ;\n endc = element ( v , startp , endp ) ;\n NOERR ( ) ;\n break ;\n default : ERR ( REG_ERANGE ) ;\n return ;\n break ;\n }\n }\n else endc = startc ;\n if ( startc != endc ) NOTE ( REG_UUNPORT ) ;\n cv = range ( v , startc , endc , ( v -> cflags & REG_ICASE ) ) ;\n NOERR ( ) ;\n dovec ( v , cv , lp , rp ) ;\n }"}
{"idx": 14229, "target": 0, "func": "static void close_detect_launch ( int fd , short what , void * arg ) {\n struct evhttp_connection * evcon = arg ;\n struct evhttp_request * req ;\n req = evhttp_request_new ( close_detect_done , NULL ) ;\n evhttp_add_header ( req -> output_headers , \"Host\" , \"somehost\" ) ;\n if ( evhttp_make_request ( evcon , req , EVHTTP_REQ_GET , \"/test\" ) == - 1 ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n }"}
{"idx": 14230, "target": 0, "func": "static int dissect_pvfs_handle_extent_array ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n guint32 extent_count ;\n guint32 nCount ;\n proto_tree * extent_array_tree ;\n extent_count = tvb_get_letohl ( tvb , offset ) ;\n extent_array_tree = proto_tree_add_subtree_format ( tree , tvb , offset , 4 , ett_pvfs_extent_array_tree , NULL , \"Handle Extent Array (count = %d)\" , extent_count ) ;\n offset += 4 ;\n if ( extent_count > 0 ) {\n for ( nCount = 0 ;\n nCount < extent_count ;\n nCount ++ ) offset = dissect_pvfs_handle_extent ( tvb , extent_array_tree , offset , pinfo , nCount ) ;\n }\n return offset ;\n }"}
{"idx": 14231, "target": 0, "func": "void rfbSendBell ( rfbScreenInfoPtr rfbScreen ) {\n rfbClientIteratorPtr i ;\n rfbClientPtr cl ;\n rfbBellMsg b ;\n i = rfbGetClientIterator ( rfbScreen ) ;\n while ( ( cl = rfbClientIteratorNext ( i ) ) ) {\n b . type = rfbBell ;\n LOCK ( cl -> sendMutex ) ;\n if ( rfbWriteExact ( cl , ( char * ) & b , sz_rfbBellMsg ) < 0 ) {\n rfbLogPerror ( \"rfbSendBell: write\" ) ;\n rfbCloseClient ( cl ) ;\n }\n UNLOCK ( cl -> sendMutex ) ;\n }\n rfbStatRecordMessageSent ( cl , rfbBell , sz_rfbBellMsg , sz_rfbBellMsg ) ;\n rfbReleaseClientIterator ( i ) ;\n }"}
{"idx": 14232, "target": 0, "func": "int ztoken_get_scanner_option ( const ref * psref , int options , const char * * pname ) {\n const named_scanner_option_t * pnso ;\n for ( pnso = named_options + countof ( named_options ) ;\n pnso -- != named_options ;\n ) {\n if ( ! bytes_compare ( ( const byte * ) pnso -> pname , strlen ( pnso -> pname ) , psref -> value . const_bytes , r_size ( psref ) ) ) {\n * pname = pnso -> pname ;\n return ( options & pnso -> option ? 1 : 0 ) ;\n }\n }\n return - 1 ;\n }"}
{"idx": 14233, "target": 0, "func": "int EVP_DecodeFinal ( EVP_ENCODE_CTX * ctx , unsigned char * out , int * outl ) {\n int i ;\n * outl = 0 ;\n if ( ctx -> num != 0 ) {\n i = EVP_DecodeBlock ( out , ctx -> enc_data , ctx -> num ) ;\n if ( i < 0 ) return ( - 1 ) ;\n ctx -> num = 0 ;\n * outl = i ;\n return ( 1 ) ;\n }\n else return ( 1 ) ;\n }"}
{"idx": 14234, "target": 0, "func": "void mpi_clear ( MPI a ) {\n a -> nlimbs = 0 ;\n a -> nbits = 0 ;\n a -> flags = 0 ;\n }"}
{"idx": 14235, "target": 0, "func": "static int get_num_opt ( struct archive_write * a , int * num , int high , int low , const char * key , const char * value ) {\n const char * p = value ;\n int data = 0 ;\n int neg = 0 ;\n if ( p == NULL ) {\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"Invalid value(empty) for option ``%s''\" , key ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n if ( * p == '-' ) {\n neg = 1 ;\n p ++ ;\n }\n while ( * p ) {\n if ( * p >= '0' && * p <= '9' ) data = data * 10 + * p - '0' ;\n else {\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"Invalid value for option ``%s''\" , key ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n if ( data > high ) {\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"Invalid value(over %d) for \" \"option ``%s''\" , high , key ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n if ( data < low ) {\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"Invalid value(under %d) for \" \"option ``%s''\" , low , key ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n p ++ ;\n }\n if ( neg ) data *= - 1 ;\n * num = data ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 14236, "target": 0, "func": "PHP_FUNCTION ( locale_get_display_script ) {\n get_icu_disp_value_src_php ( LOC_SCRIPT_TAG , INTERNAL_FUNCTION_PARAM_PASSTHRU ) ;\n }"}
{"idx": 14237, "target": 0, "func": "static bool mimefield_value_equal ( MIMEField * field , const char * value , const int value_len ) {\n int field_value_len = 0 ;\n const char * field_value = field -> value_get ( & field_value_len ) ;\n if ( field_value != nullptr && field_value_len == value_len ) {\n return ! strncasecmp ( field_value , value , value_len ) ;\n }\n return false ;\n }"}
{"idx": 14238, "target": 0, "func": "TEST_F ( PrintPreviewUIUnitTest , PrintPreviewData ) {\n WebContents * initiator = browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) ;\n ASSERT_TRUE ( initiator ) ;\n EXPECT_FALSE ( IsShowingWebContentsModalDialog ( initiator ) ) ;\n printing : : PrintPreviewDialogController * controller = printing : : PrintPreviewDialogController : : GetInstance ( ) ;\n ASSERT_TRUE ( controller ) ;\n printing : : PrintViewManager * print_view_manager = printing : : PrintViewManager : : FromWebContents ( initiator ) ;\n print_view_manager -> PrintPreviewNow ( initiator -> GetMainFrame ( ) , false ) ;\n WebContents * preview_dialog = controller -> GetOrCreatePreviewDialog ( initiator ) ;\n EXPECT_NE ( initiator , preview_dialog ) ;\n EXPECT_EQ ( 1 , browser ( ) -> tab_strip_model ( ) -> count ( ) ) ;\n EXPECT_TRUE ( IsShowingWebContentsModalDialog ( initiator ) ) ;\n PrintPreviewUI * preview_ui = static_cast < PrintPreviewUI * > ( preview_dialog -> GetWebUI ( ) -> GetController ( ) ) ;\n ASSERT_TRUE ( preview_ui != NULL ) ;\n scoped_refptr < base : : RefCountedBytes > data ;\n preview_ui -> GetPrintPreviewDataForIndex ( printing : : COMPLETE_PREVIEW_DOCUMENT_INDEX , & data ) ;\n EXPECT_EQ ( NULL , data . get ( ) ) ;\n scoped_refptr < base : : RefCountedBytes > dummy_data = CreateTestData ( ) ;\n preview_ui -> SetPrintPreviewDataForIndex ( printing : : COMPLETE_PREVIEW_DOCUMENT_INDEX , dummy_data . get ( ) ) ;\n preview_ui -> GetPrintPreviewDataForIndex ( printing : : COMPLETE_PREVIEW_DOCUMENT_INDEX , & data ) ;\n EXPECT_EQ ( dummy_data -> size ( ) , data -> size ( ) ) ;\n EXPECT_EQ ( dummy_data . get ( ) , data . get ( ) ) ;\n dummy_data = new base : : RefCountedBytes ( ) ;\n preview_ui -> SetPrintPreviewDataForIndex ( printing : : FIRST_PAGE_INDEX , dummy_data . get ( ) ) ;\n preview_ui -> ClearAllPreviewData ( ) ;\n preview_ui -> GetPrintPreviewDataForIndex ( printing : : COMPLETE_PREVIEW_DOCUMENT_INDEX , & data ) ;\n EXPECT_EQ ( NULL , data . get ( ) ) ;\n }"}
{"idx": 14239, "target": 0, "func": "static void switch_sql_mode ( FILE * sql_file , const char * delimiter , const char * sql_mode ) {\n fprintf ( sql_file , \"/*!50003 SET @saved_sql_mode = @@sql_mode */ %s\\n\" \"/*!50003 SET sql_mode = '%s' */ %s\\n\" , ( const char * ) delimiter , ( const char * ) sql_mode , ( const char * ) delimiter ) ;\n }"}
{"idx": 14240, "target": 0, "func": "void _mime_hdr_field_block_init ( MIMEFieldBlockImpl * fblock ) {\n fblock -> m_freetop = 0 ;\n fblock -> m_next = nullptr ;\n # ifdef BLOCK_INIT_PARANOIA int i ;\n for ( i = 0 ;\n i < MIME_FIELD_BLOCK_SLOTS ;\n i ++ ) {\n MIMEField * field = & ( fblock -> m_field_slots [ i ] ) ;\n field -> m_readiness = MIME_FIELD_SLOT_READINESS_EMPTY ;\n }\n # endif }"}
{"idx": 14241, "target": 0, "func": "int dissect_h245_DataProtocolCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_DataProtocolCapability , DataProtocolCapability_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 14242, "target": 1, "func": "void vp9_initialize_me_consts ( VP9_COMP * cpi , int qindex ) {\n cpi -> mb . sadperbit16 = sad_per_bit16lut [ qindex ] ;\n cpi -> mb . sadperbit4 = sad_per_bit4lut [ qindex ] ;\n }"}
{"idx": 14243, "target": 0, "func": "static void e1000e_build_rx_metadata ( E1000ECore * core , struct NetRxPkt * pkt , bool is_eop , const E1000E_RSSInfo * rss_info , uint32_t * rss , uint32_t * mrq , uint32_t * status_flags , uint16_t * ip_id , uint16_t * vlan_tag ) {\n struct virtio_net_hdr * vhdr ;\n bool isip4 , isip6 , istcp , isudp ;\n uint32_t pkt_type ;\n * status_flags = E1000_RXD_STAT_DD ;\n if ( ! is_eop ) {\n goto func_exit ;\n }\n * status_flags |= E1000_RXD_STAT_EOP ;\n net_rx_pkt_get_protocols ( pkt , & isip4 , & isip6 , & isudp , & istcp ) ;\n trace_e1000e_rx_metadata_protocols ( isip4 , isip6 , isudp , istcp ) ;\n if ( net_rx_pkt_is_vlan_stripped ( pkt ) ) {\n * status_flags |= E1000_RXD_STAT_VP ;\n * vlan_tag = cpu_to_le16 ( net_rx_pkt_get_vlan_tag ( pkt ) ) ;\n trace_e1000e_rx_metadata_vlan ( * vlan_tag ) ;\n }\n if ( ( core -> mac [ RXCSUM ] & E1000_RXCSUM_PCSD ) != 0 ) {\n if ( rss_info -> enabled ) {\n * rss = cpu_to_le32 ( rss_info -> hash ) ;\n * mrq = cpu_to_le32 ( rss_info -> type | ( rss_info -> queue << 8 ) ) ;\n trace_e1000e_rx_metadata_rss ( * rss , * mrq ) ;\n }\n }\n else if ( isip4 ) {\n * status_flags |= E1000_RXD_STAT_IPIDV ;\n * ip_id = cpu_to_le16 ( net_rx_pkt_get_ip_id ( pkt ) ) ;\n trace_e1000e_rx_metadata_ip_id ( * ip_id ) ;\n }\n if ( istcp && e1000e_is_tcp_ack ( core , pkt ) ) {\n * status_flags |= E1000_RXD_STAT_ACK ;\n trace_e1000e_rx_metadata_ack ( ) ;\n }\n if ( isip6 && ( core -> mac [ RFCTL ] & E1000_RFCTL_IPV6_DIS ) ) {\n trace_e1000e_rx_metadata_ipv6_filtering_disabled ( ) ;\n pkt_type = E1000_RXD_PKT_MAC ;\n }\n else if ( istcp || isudp ) {\n pkt_type = isip4 ? E1000_RXD_PKT_IP4_XDP : E1000_RXD_PKT_IP6_XDP ;\n }\n else if ( isip4 || isip6 ) {\n pkt_type = isip4 ? E1000_RXD_PKT_IP4 : E1000_RXD_PKT_IP6 ;\n }\n else {\n pkt_type = E1000_RXD_PKT_MAC ;\n }\n * status_flags |= E1000_RXD_PKT_TYPE ( pkt_type ) ;\n trace_e1000e_rx_metadata_pkt_type ( pkt_type ) ;\n if ( isip6 && ( core -> mac [ RFCTL ] & E1000_RFCTL_IPV6_XSUM_DIS ) ) {\n trace_e1000e_rx_metadata_ipv6_sum_disabled ( ) ;\n goto func_exit ;\n }\n if ( ! net_rx_pkt_has_virt_hdr ( pkt ) ) {\n trace_e1000e_rx_metadata_no_virthdr ( ) ;\n e1000e_verify_csum_in_sw ( core , pkt , status_flags , istcp , isudp ) ;\n goto func_exit ;\n }\n vhdr = net_rx_pkt_get_vhdr ( pkt ) ;\n if ( ! ( vhdr -> flags & VIRTIO_NET_HDR_F_DATA_VALID ) && ! ( vhdr -> flags & VIRTIO_NET_HDR_F_NEEDS_CSUM ) ) {\n trace_e1000e_rx_metadata_virthdr_no_csum_info ( ) ;\n e1000e_verify_csum_in_sw ( core , pkt , status_flags , istcp , isudp ) ;\n goto func_exit ;\n }\n if ( e1000e_rx_l3_cso_enabled ( core ) ) {\n * status_flags |= isip4 ? E1000_RXD_STAT_IPCS : 0 ;\n }\n else {\n trace_e1000e_rx_metadata_l3_cso_disabled ( ) ;\n }\n if ( e1000e_rx_l4_cso_enabled ( core ) ) {\n if ( istcp ) {\n * status_flags |= E1000_RXD_STAT_TCPCS ;\n }\n else if ( isudp ) {\n * status_flags |= E1000_RXD_STAT_TCPCS | E1000_RXD_STAT_UDPCS ;\n }\n }\n else {\n trace_e1000e_rx_metadata_l4_cso_disabled ( ) ;\n }\n trace_e1000e_rx_metadata_status_flags ( * status_flags ) ;\n func_exit : * status_flags = cpu_to_le32 ( * status_flags ) ;\n }"}
{"idx": 14244, "target": 0, "func": "static int aes_ccm_tls_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_CCM_CTX * cctx = EVP_C_DATA ( EVP_AES_CCM_CTX , ctx ) ;\n CCM128_CONTEXT * ccm = & cctx -> ccm ;\n if ( out != in || len < ( EVP_CCM_TLS_EXPLICIT_IV_LEN + ( size_t ) cctx -> M ) ) return - 1 ;\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) memcpy ( out , EVP_CIPHER_CTX_buf_noconst ( ctx ) , EVP_CCM_TLS_EXPLICIT_IV_LEN ) ;\n memcpy ( EVP_CIPHER_CTX_iv_noconst ( ctx ) + EVP_CCM_TLS_FIXED_IV_LEN , in , EVP_CCM_TLS_EXPLICIT_IV_LEN ) ;\n len -= EVP_CCM_TLS_EXPLICIT_IV_LEN + cctx -> M ;\n if ( CRYPTO_ccm128_setiv ( ccm , EVP_CIPHER_CTX_iv_noconst ( ctx ) , 15 - cctx -> L , len ) ) return - 1 ;\n CRYPTO_ccm128_aad ( ccm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , cctx -> tls_aad_len ) ;\n in += EVP_CCM_TLS_EXPLICIT_IV_LEN ;\n out += EVP_CCM_TLS_EXPLICIT_IV_LEN ;\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( cctx -> str ? CRYPTO_ccm128_encrypt_ccm64 ( ccm , in , out , len , cctx -> str ) : CRYPTO_ccm128_encrypt ( ccm , in , out , len ) ) return - 1 ;\n if ( ! CRYPTO_ccm128_tag ( ccm , out + len , cctx -> M ) ) return - 1 ;\n return len + EVP_CCM_TLS_EXPLICIT_IV_LEN + cctx -> M ;\n }\n else {\n if ( cctx -> str ? ! CRYPTO_ccm128_decrypt_ccm64 ( ccm , in , out , len , cctx -> str ) : ! CRYPTO_ccm128_decrypt ( ccm , in , out , len ) ) {\n unsigned char tag [ 16 ] ;\n if ( CRYPTO_ccm128_tag ( ccm , tag , cctx -> M ) ) {\n if ( ! CRYPTO_memcmp ( tag , in + len , cctx -> M ) ) return len ;\n }\n }\n OPENSSL_cleanse ( out , len ) ;\n return - 1 ;\n }\n }"}
{"idx": 14245, "target": 0, "func": "void ber_rewind ( BerElement * ber ) {\n ber -> ber_rwptr = NULL ;\n ber -> ber_sos_ptr = NULL ;\n ber -> ber_end = ber -> ber_ptr ;\n ber -> ber_ptr = ber -> ber_buf ;\n # if 0 ber -> ber_tag = LBER_DEFAULT ;\n ber -> ber_usertag = 0 ;\n # endif }"}
{"idx": 14246, "target": 0, "func": "static int arith2_get_consumed_bytes ( ArithCoder * c ) {\n int diff = ( c -> high >> 16 ) - ( c -> low >> 16 ) ;\n int bp = bytestream2_tell ( c -> gbc . gB ) - 3 << 3 ;\n int bits = 1 ;\n while ( ! ( diff & 0x80 ) ) {\n bits ++ ;\n diff <<= 1 ;\n }\n return ( bits + bp + 7 >> 3 ) + ( ( c -> low >> 16 ) + 1 == c -> high >> 16 ) ;\n }"}
{"idx": 14247, "target": 0, "func": "static void cmv_motcomp ( unsigned char * dst , int dst_stride , const unsigned char * src , int src_stride , int x , int y , int xoffset , int yoffset , int width , int height ) {\n int i , j ;\n for ( j = y ;\n j < y + 4 ;\n j ++ ) for ( i = x ;\n i < x + 4 ;\n i ++ ) {\n if ( i + xoffset >= 0 && i + xoffset < width && j + yoffset >= 0 && j + yoffset < height ) {\n dst [ j * dst_stride + i ] = src [ ( j + yoffset ) * src_stride + i + xoffset ] ;\n }\n else {\n dst [ j * dst_stride + i ] = 0 ;\n }\n }\n }"}
{"idx": 14248, "target": 1, "func": "int vp9_loop_filter_worker ( void * arg1 , void * arg2 ) {\n LFWorkerData * const lf_data = ( LFWorkerData * ) arg1 ;\n ( void ) arg2 ;\n vp9_loop_filter_rows ( lf_data -> frame_buffer , lf_data -> cm , lf_data -> planes , lf_data -> start , lf_data -> stop , lf_data -> y_only ) ;\n return 1 ;\n }"}
{"idx": 14249, "target": 1, "func": "static int find_fp_qindex ( ) {\n int i ;\n for ( i = 0 ;\n i < QINDEX_RANGE ;\n ++ i ) if ( vp9_convert_qindex_to_q ( i ) >= 30.0 ) break ;\n if ( i == QINDEX_RANGE ) i -- ;\n return i ;\n }"}
{"idx": 14250, "target": 1, "func": "static krb5_error_code randkey_princ ( krb5_principal princ , krb5_boolean keepold , int n_ks , krb5_key_salt_tuple * ks ) {\n if ( keepold || ks ) {\n return kadm5_randkey_principal_3 ( handle , princ , keepold , n_ks , ks , NULL , NULL ) ;\n }\n else return kadm5_randkey_principal ( handle , princ , NULL , NULL ) ;\n }"}
{"idx": 14251, "target": 0, "func": "static inline uint32_t e1000e_tx_wb_interrupt_cause ( E1000ECore * core , int queue_idx ) {\n if ( ! msix_enabled ( core -> owner ) ) {\n return E1000_ICR_TXDW ;\n }\n return ( queue_idx == 0 ) ? E1000_ICR_TXQ0 : E1000_ICR_TXQ1 ;\n }"}
{"idx": 14252, "target": 0, "func": "setvar_node * create_setvar_node ( char * var , char * val , int isdefault ) {\n setvar_node * my_node ;\n char * pch ;\n pch = strchr ( var , '=' ) ;\n if ( NULL != pch ) * pch = '\\0' ;\n my_node = emalloc_zero ( sizeof ( * my_node ) ) ;\n my_node -> var = var ;\n my_node -> val = val ;\n my_node -> isdefault = isdefault ;\n return my_node ;\n }"}
{"idx": 14253, "target": 0, "func": "static VALUE ossl_x509name_to_a ( VALUE self ) {\n X509_NAME * name ;\n X509_NAME_ENTRY * entry ;\n int i , entries , nid ;\n char long_name [ 512 ] ;\n const char * short_name ;\n VALUE ary , vname , ret ;\n ASN1_STRING * value ;\n GetX509Name ( self , name ) ;\n entries = X509_NAME_entry_count ( name ) ;\n if ( entries < 0 ) {\n OSSL_Debug ( \"name entries < 0!\" ) ;\n return rb_ary_new ( ) ;\n }\n ret = rb_ary_new2 ( entries ) ;\n for ( i = 0 ;\n i < entries ;\n i ++ ) {\n if ( ! ( entry = X509_NAME_get_entry ( name , i ) ) ) {\n ossl_raise ( eX509NameError , NULL ) ;\n }\n if ( ! i2t_ASN1_OBJECT ( long_name , sizeof ( long_name ) , X509_NAME_ENTRY_get_object ( entry ) ) ) {\n ossl_raise ( eX509NameError , NULL ) ;\n }\n nid = OBJ_ln2nid ( long_name ) ;\n if ( nid == NID_undef ) {\n vname = rb_str_new2 ( ( const char * ) & long_name ) ;\n }\n else {\n short_name = OBJ_nid2sn ( nid ) ;\n vname = rb_str_new2 ( short_name ) ;\n }\n value = X509_NAME_ENTRY_get_data ( entry ) ;\n ary = rb_ary_new3 ( 3 , vname , asn1str_to_str ( value ) , INT2NUM ( value -> type ) ) ;\n rb_ary_push ( ret , ary ) ;\n }\n return ret ;\n }"}
{"idx": 14254, "target": 0, "func": "const char * SSL_alert_desc_string ( int value ) {\n const char * str ;\n switch ( value & 0xff ) {\n case SSL3_AD_CLOSE_NOTIFY : str = \"CN\" ;\n break ;\n case SSL3_AD_UNEXPECTED_MESSAGE : str = \"UM\" ;\n break ;\n case SSL3_AD_BAD_RECORD_MAC : str = \"BM\" ;\n break ;\n case SSL3_AD_DECOMPRESSION_FAILURE : str = \"DF\" ;\n break ;\n case SSL3_AD_HANDSHAKE_FAILURE : str = \"HF\" ;\n break ;\n case SSL3_AD_NO_CERTIFICATE : str = \"NC\" ;\n break ;\n case SSL3_AD_BAD_CERTIFICATE : str = \"BC\" ;\n break ;\n case SSL3_AD_UNSUPPORTED_CERTIFICATE : str = \"UC\" ;\n break ;\n case SSL3_AD_CERTIFICATE_REVOKED : str = \"CR\" ;\n break ;\n case SSL3_AD_CERTIFICATE_EXPIRED : str = \"CE\" ;\n break ;\n case SSL3_AD_CERTIFICATE_UNKNOWN : str = \"CU\" ;\n break ;\n case SSL3_AD_ILLEGAL_PARAMETER : str = \"IP\" ;\n break ;\n case TLS1_AD_DECRYPTION_FAILED : str = \"DC\" ;\n break ;\n case TLS1_AD_RECORD_OVERFLOW : str = \"RO\" ;\n break ;\n case TLS1_AD_UNKNOWN_CA : str = \"CA\" ;\n break ;\n case TLS1_AD_ACCESS_DENIED : str = \"AD\" ;\n break ;\n case TLS1_AD_DECODE_ERROR : str = \"DE\" ;\n break ;\n case TLS1_AD_DECRYPT_ERROR : str = \"CY\" ;\n break ;\n case TLS1_AD_EXPORT_RESTRICTION : str = \"ER\" ;\n break ;\n case TLS1_AD_PROTOCOL_VERSION : str = \"PV\" ;\n break ;\n case TLS1_AD_INSUFFICIENT_SECURITY : str = \"IS\" ;\n break ;\n case TLS1_AD_INTERNAL_ERROR : str = \"IE\" ;\n break ;\n case TLS1_AD_USER_CANCELLED : str = \"US\" ;\n break ;\n case TLS1_AD_NO_RENEGOTIATION : str = \"NR\" ;\n break ;\n case TLS1_AD_UNSUPPORTED_EXTENSION : str = \"UE\" ;\n break ;\n case TLS1_AD_CERTIFICATE_UNOBTAINABLE : str = \"CO\" ;\n break ;\n case TLS1_AD_UNRECOGNIZED_NAME : str = \"UN\" ;\n break ;\n case TLS1_AD_BAD_CERTIFICATE_STATUS_RESPONSE : str = \"BR\" ;\n break ;\n case TLS1_AD_BAD_CERTIFICATE_HASH_VALUE : str = \"BH\" ;\n break ;\n case TLS1_AD_UNKNOWN_PSK_IDENTITY : str = \"UP\" ;\n break ;\n default : str = \"UK\" ;\n break ;\n }\n return ( str ) ;\n }"}
{"idx": 14255, "target": 0, "func": "static zval * row_dim_read ( zval * object , zval * member , int type TSRMLS_DC ) {\n return row_prop_read ( object , member , type , NULL TSRMLS_CC ) ;\n }"}
{"idx": 14256, "target": 0, "func": "static int script_contents_read ( struct mail_user * user ) {\n struct fts_parser_script_user * suser = SCRIPT_USER_CONTEXT ( user ) ;\n const char * path , * cmd , * line ;\n char * * args ;\n struct istream * input ;\n struct content * content ;\n bool eof_seen = FALSE ;\n int fd , ret = 0 ;\n fd = script_connect ( user , & path ) ;\n if ( fd == - 1 ) return - 1 ;\n cmd = t_strdup_printf ( SCRIPT_HANDSHAKE \"\\n\" ) ;\n if ( write_full ( fd , cmd , strlen ( cmd ) ) < 0 ) {\n i_error ( \"write(%s) failed: %m\" , path ) ;\n i_close_fd ( & fd ) ;\n return - 1 ;\n }\n input = i_stream_create_fd_autoclose ( & fd , 1024 ) ;\n while ( ( line = i_stream_read_next_line ( input ) ) != NULL ) {\n args = p_strsplit_spaces ( user -> pool , line , \" \" ) ;\n if ( args [ 0 ] == NULL ) {\n eof_seen = TRUE ;\n break ;\n }\n if ( args [ 0 ] [ 0 ] == '\\0' || args [ 1 ] == NULL ) {\n i_error ( \"parser script sent invalid input: %s\" , line ) ;\n continue ;\n }\n content = array_append_space ( & suser -> content ) ;\n content -> content_type = args [ 0 ] ;\n content -> extensions = ( const void * ) ( args + 1 ) ;\n }\n if ( input -> stream_errno != 0 ) {\n i_error ( \"parser script read(%s) failed: %s\" , path , i_stream_get_error ( input ) ) ;\n ret = - 1 ;\n }\n else if ( ! eof_seen ) {\n if ( input -> v_offset == 0 ) i_error ( \"parser script didn't send any data\" ) ;\n else i_error ( \"parser script didn't send empty EOF line\" ) ;\n }\n i_stream_destroy ( & input ) ;\n return ret ;\n }"}
{"idx": 14257, "target": 0, "func": "void kadmin_cpw ( int argc , char * argv [ ] ) {\n kadm5_ret_t retval ;\n static char newpw [ 1024 ] ;\n static char prompt1 [ 1024 ] , prompt2 [ 1024 ] ;\n char * canon = NULL , * pwarg = NULL ;\n int n_ks_tuple = 0 , randkey = 0 ;\n krb5_boolean keepold = FALSE ;\n krb5_key_salt_tuple * ks_tuple = NULL ;\n krb5_principal princ = NULL ;\n char * * db_args = NULL ;\n int db_args_size = 0 ;\n if ( argc < 2 ) {\n cpw_usage ( NULL ) ;\n return ;\n }\n for ( argv ++ , argc -- ;\n argc > 1 ;\n argc -- , argv ++ ) {\n if ( ! strcmp ( \"-x\" , * argv ) ) {\n argc -- ;\n if ( argc < 1 ) {\n cpw_usage ( _ ( \"change_password: missing db argument\" ) ) ;\n goto cleanup ;\n }\n db_args_size ++ ;\n db_args = realloc ( db_args , sizeof ( char * ) * ( db_args_size + 1 ) ) ;\n if ( db_args == NULL ) {\n fprintf ( stderr , _ ( \"change_password: Not enough memory\\n\" ) ) ;\n exit ( 1 ) ;\n }\n db_args [ db_args_size - 1 ] = * ++ argv ;\n db_args [ db_args_size ] = NULL ;\n }\n else if ( ! strcmp ( \"-pw\" , * argv ) ) {\n argc -- ;\n if ( argc < 1 ) {\n cpw_usage ( _ ( \"change_password: missing password arg\" ) ) ;\n goto cleanup ;\n }\n pwarg = * ++ argv ;\n }\n else if ( ! strcmp ( \"-randkey\" , * argv ) ) {\n randkey ++ ;\n }\n else if ( ! strcmp ( \"-keepold\" , * argv ) ) {\n keepold = TRUE ;\n }\n else if ( ! strcmp ( \"-e\" , * argv ) ) {\n argc -- ;\n if ( argc < 1 ) {\n cpw_usage ( _ ( \"change_password: missing keysaltlist arg\" ) ) ;\n goto cleanup ;\n }\n retval = krb5_string_to_keysalts ( * ++ argv , \", \\t\" , \":.-\" , 0 , & ks_tuple , & n_ks_tuple ) ;\n if ( retval ) {\n com_err ( \"change_password\" , retval , _ ( \"while parsing keysalts %s\" ) , * argv ) ;\n goto cleanup ;\n }\n }\n else {\n cpw_usage ( NULL ) ;\n goto cleanup ;\n }\n }\n if ( * argv == NULL ) {\n com_err ( \"change_password\" , 0 , _ ( \"missing principal name\" ) ) ;\n cpw_usage ( NULL ) ;\n goto cleanup ;\n }\n retval = kadmin_parse_name ( * argv , & princ ) ;\n if ( retval ) {\n com_err ( \"change_password\" , retval , _ ( \"while parsing principal name\" ) ) ;\n goto cleanup ;\n }\n retval = krb5_unparse_name ( context , princ , & canon ) ;\n if ( retval ) {\n com_err ( \"change_password\" , retval , _ ( \"while canonicalizing principal\" ) ) ;\n goto cleanup ;\n }\n if ( pwarg != NULL ) {\n if ( keepold || ks_tuple != NULL ) {\n retval = kadm5_chpass_principal_3 ( handle , princ , keepold , n_ks_tuple , ks_tuple , pwarg ) ;\n }\n else {\n retval = kadm5_chpass_principal ( handle , princ , pwarg ) ;\n }\n if ( retval ) {\n com_err ( \"change_password\" , retval , _ ( \"while changing password for \\\"%s\\\".\" ) , canon ) ;\n goto cleanup ;\n }\n printf ( _ ( \"Password for \\\"%s\\\" changed.\\n\" ) , canon ) ;\n }\n else if ( randkey ) {\n retval = randkey_princ ( princ , keepold , n_ks_tuple , ks_tuple ) ;\n if ( retval ) {\n com_err ( \"change_password\" , retval , _ ( \"while randomizing key for \\\"%s\\\".\" ) , canon ) ;\n goto cleanup ;\n }\n printf ( _ ( \"Key for \\\"%s\\\" randomized.\\n\" ) , canon ) ;\n }\n else {\n unsigned int i = sizeof ( newpw ) - 1 ;\n snprintf ( prompt1 , sizeof ( prompt1 ) , _ ( \"Enter password for principal \\\"%s\\\"\" ) , canon ) ;\n snprintf ( prompt2 , sizeof ( prompt2 ) , _ ( \"Re-enter password for principal \\\"%s\\\"\" ) , canon ) ;\n retval = krb5_read_password ( context , prompt1 , prompt2 , newpw , & i ) ;\n if ( retval ) {\n com_err ( \"change_password\" , retval , _ ( \"while reading password for \\\"%s\\\".\" ) , canon ) ;\n goto cleanup ;\n }\n if ( keepold || ks_tuple != NULL ) {\n retval = kadm5_chpass_principal_3 ( handle , princ , keepold , n_ks_tuple , ks_tuple , newpw ) ;\n }\n else {\n retval = kadm5_chpass_principal ( handle , princ , newpw ) ;\n }\n memset ( newpw , 0 , sizeof ( newpw ) ) ;\n if ( retval ) {\n com_err ( \"change_password\" , retval , _ ( \"while changing password for \\\"%s\\\".\" ) , canon ) ;\n goto cleanup ;\n }\n printf ( _ ( \"Password for \\\"%s\\\" changed.\\n\" ) , canon ) ;\n }\n cleanup : free ( canon ) ;\n free ( db_args ) ;\n krb5_free_principal ( context , princ ) ;\n free ( ks_tuple ) ;\n }"}
{"idx": 14258, "target": 0, "func": "static struct inode_security_struct * inode_security_rcu ( struct inode * inode , bool rcu ) {\n int error ;\n error = __inode_security_revalidate ( inode , NULL , ! rcu ) ;\n if ( error ) return ERR_PTR ( error ) ;\n return inode -> i_security ;\n }"}
{"idx": 14259, "target": 0, "func": "inline static bool do_cookies_prevent_caching ( int cookies_conf , HTTPHdr * request , HTTPHdr * response , HTTPHdr * cached_request = nullptr ) {\n enum CookiesConfig {\n COOKIES_CACHE_NONE = 0 , COOKIES_CACHE_ALL = 1 , COOKIES_CACHE_IMAGES = 2 , COOKIES_CACHE_ALL_BUT_TEXT = 3 , COOKIES_CACHE_ALL_BUT_TEXT_EXT = 4 }\n ;\n const char * content_type = nullptr ;\n int str_len ;\n # ifdef DEBUG ink_assert ( request -> type_get ( ) == HTTP_TYPE_REQUEST ) ;\n ink_assert ( response -> type_get ( ) == HTTP_TYPE_RESPONSE ) ;\n if ( cached_request ) {\n ink_assert ( cached_request -> type_get ( ) == HTTP_TYPE_REQUEST ) ;\n }\n # endif if ( ( CookiesConfig ) cookies_conf == COOKIES_CACHE_ALL ) {\n return false ;\n }\n if ( ! response -> presence ( MIME_PRESENCE_SET_COOKIE ) && ! request -> presence ( MIME_PRESENCE_COOKIE ) && ( cached_request == nullptr || ! cached_request -> presence ( MIME_PRESENCE_COOKIE ) ) ) {\n return false ;\n }\n if ( ( CookiesConfig ) cookies_conf == COOKIES_CACHE_NONE ) {\n return true ;\n }\n content_type = response -> value_get ( MIME_FIELD_CONTENT_TYPE , MIME_LEN_CONTENT_TYPE , & str_len ) ;\n if ( ( CookiesConfig ) cookies_conf == COOKIES_CACHE_IMAGES ) {\n if ( content_type && str_len >= 5 && memcmp ( content_type , \"image\" , 5 ) == 0 ) {\n return false ;\n }\n return true ;\n }\n if ( content_type && str_len >= 4 && memcmp ( content_type , \"text\" , 4 ) == 0 ) {\n if ( ( CookiesConfig ) cookies_conf == COOKIES_CACHE_ALL_BUT_TEXT_EXT && ( ( ! response -> presence ( MIME_PRESENCE_SET_COOKIE ) ) || response -> is_cache_control_set ( HTTP_VALUE_PUBLIC ) ) ) {\n return false ;\n }\n return true ;\n }\n return false ;\n }"}
{"idx": 14260, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n KmvcContext * const ctx = avctx -> priv_data ;\n uint8_t * out , * src ;\n int i , ret ;\n int header ;\n int blocksize ;\n const uint8_t * pal = av_packet_get_side_data ( avpkt , AV_PKT_DATA_PALETTE , NULL ) ;\n bytestream2_init ( & ctx -> g , avpkt -> data , avpkt -> size ) ;\n if ( ctx -> pic . data [ 0 ] ) avctx -> release_buffer ( avctx , & ctx -> pic ) ;\n ctx -> pic . reference = 1 ;\n ctx -> pic . buffer_hints = FF_BUFFER_HINTS_VALID ;\n if ( ( ret = ff_get_buffer ( avctx , & ctx -> pic ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n header = bytestream2_get_byte ( & ctx -> g ) ;\n if ( bytestream2_peek_byte ( & ctx -> g ) == 127 ) {\n bytestream2_skip ( & ctx -> g , 3 ) ;\n for ( i = 0 ;\n i < 127 ;\n i ++ ) {\n ctx -> pal [ i + ( header & 0x81 ) ] = bytestream2_get_be24 ( & ctx -> g ) ;\n bytestream2_skip ( & ctx -> g , 1 ) ;\n }\n bytestream2_seek ( & ctx -> g , - 127 * 4 - 3 , SEEK_CUR ) ;\n }\n if ( header & KMVC_KEYFRAME ) {\n ctx -> pic . key_frame = 1 ;\n ctx -> pic . pict_type = AV_PICTURE_TYPE_I ;\n }\n else {\n ctx -> pic . key_frame = 0 ;\n ctx -> pic . pict_type = AV_PICTURE_TYPE_P ;\n }\n if ( header & KMVC_PALETTE ) {\n ctx -> pic . palette_has_changed = 1 ;\n for ( i = 1 ;\n i <= ctx -> palsize ;\n i ++ ) {\n ctx -> pal [ i ] = bytestream2_get_be24 ( & ctx -> g ) ;\n }\n }\n if ( pal ) {\n ctx -> pic . palette_has_changed = 1 ;\n memcpy ( ctx -> pal , pal , AVPALETTE_SIZE ) ;\n }\n if ( ctx -> setpal ) {\n ctx -> setpal = 0 ;\n ctx -> pic . palette_has_changed = 1 ;\n }\n memcpy ( ctx -> pic . data [ 1 ] , ctx -> pal , 1024 ) ;\n blocksize = bytestream2_get_byte ( & ctx -> g ) ;\n if ( blocksize != 8 && blocksize != 127 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Block size = %i\\n\" , blocksize ) ;\n return AVERROR_INVALIDDATA ;\n }\n memset ( ctx -> cur , 0 , 320 * 200 ) ;\n switch ( header & KMVC_METHOD ) {\n case 0 : case 1 : memcpy ( ctx -> cur , ctx -> prev , 320 * 200 ) ;\n break ;\n case 3 : kmvc_decode_intra_8x8 ( ctx , avctx -> width , avctx -> height ) ;\n break ;\n case 4 : kmvc_decode_inter_8x8 ( ctx , avctx -> width , avctx -> height ) ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"Unknown compression method %i\\n\" , header & KMVC_METHOD ) ;\n return AVERROR_INVALIDDATA ;\n }\n out = ctx -> pic . data [ 0 ] ;\n src = ctx -> cur ;\n for ( i = 0 ;\n i < avctx -> height ;\n i ++ ) {\n memcpy ( out , src , avctx -> width ) ;\n src += 320 ;\n out += ctx -> pic . linesize [ 0 ] ;\n }\n if ( ctx -> cur == ctx -> frm0 ) {\n ctx -> cur = ctx -> frm1 ;\n ctx -> prev = ctx -> frm0 ;\n }\n else {\n ctx -> cur = ctx -> frm0 ;\n ctx -> prev = ctx -> frm1 ;\n }\n * got_frame = 1 ;\n * ( AVFrame * ) data = ctx -> pic ;\n return avpkt -> size ;\n }"}
{"idx": 14261, "target": 0, "func": "static void test_length ( header_field_info * hfinfo , tvbuff_t * tvb , gint start , gint length ) {\n gint size = length ;\n if ( ! tvb ) return ;\n if ( hfinfo -> type == FT_STRINGZ ) {\n if ( length == - 1 ) size = 0 ;\n }\n tvb_ensure_bytes_exist ( tvb , start , size ) ;\n }"}
{"idx": 14262, "target": 0, "func": "static const char * utf8_avp ( diam_ctx_t * c , diam_avp_t * a , tvbuff_t * tvb , diam_sub_dis_t * diam_sub_dis_inf _U_ ) {\n char * label = NULL ;\n if ( c -> tree ) {\n proto_item * pi = proto_tree_add_item ( c -> tree , a -> hf_value , tvb , 0 , tvb_reported_length ( tvb ) , ENC_UTF_8 | ENC_BIG_ENDIAN ) ;\n label = ( char * ) wmem_alloc ( wmem_packet_scope ( ) , ITEM_LABEL_LENGTH + 1 ) ;\n proto_item_fill_label ( PITEM_FINFO ( pi ) , label ) ;\n label = strstr ( label , \": \" ) + 2 ;\n }\n return label ;\n }"}
{"idx": 14263, "target": 0, "func": "static int __key_instantiate_and_link ( struct key * key , struct key_preparsed_payload * prep , struct key * keyring , struct key * authkey , struct assoc_array_edit * * _edit ) {\n int ret , awaken ;\n key_check ( key ) ;\n key_check ( keyring ) ;\n awaken = 0 ;\n ret = - EBUSY ;\n mutex_lock ( & key_construction_mutex ) ;\n if ( ! test_bit ( KEY_FLAG_INSTANTIATED , & key -> flags ) ) {\n ret = key -> type -> instantiate ( key , prep ) ;\n if ( ret == 0 ) {\n atomic_inc ( & key -> user -> nikeys ) ;\n set_bit ( KEY_FLAG_INSTANTIATED , & key -> flags ) ;\n if ( test_and_clear_bit ( KEY_FLAG_USER_CONSTRUCT , & key -> flags ) ) awaken = 1 ;\n if ( keyring ) {\n if ( test_bit ( KEY_FLAG_KEEP , & keyring -> flags ) ) set_bit ( KEY_FLAG_KEEP , & key -> flags ) ;\n __key_link ( key , _edit ) ;\n }\n if ( authkey ) key_revoke ( authkey ) ;\n if ( prep -> expiry != TIME_T_MAX ) {\n key -> expiry = prep -> expiry ;\n key_schedule_gc ( prep -> expiry + key_gc_delay ) ;\n }\n }\n }\n mutex_unlock ( & key_construction_mutex ) ;\n if ( awaken ) wake_up_bit ( & key -> flags , KEY_FLAG_USER_CONSTRUCT ) ;\n return ret ;\n }"}
{"idx": 14264, "target": 0, "func": "int X509_REQ_verify ( X509_REQ * a , EVP_PKEY * r ) {\n return ( ASN1_item_verify ( ASN1_ITEM_rptr ( X509_REQ_INFO ) , a -> sig_alg , a -> signature , a -> req_info , r ) ) ;\n }"}
{"idx": 14265, "target": 0, "func": "MSG_PROCESS_RETURN tls_process_next_proto ( SSL * s , PACKET * pkt ) {\n PACKET next_proto , padding ;\n size_t next_proto_len ;\n if ( ! PACKET_get_length_prefixed_1 ( pkt , & next_proto ) || ! PACKET_get_length_prefixed_1 ( pkt , & padding ) || PACKET_remaining ( pkt ) > 0 ) {\n SSLerr ( SSL_F_TLS_PROCESS_NEXT_PROTO , SSL_R_LENGTH_MISMATCH ) ;\n goto err ;\n }\n if ( ! PACKET_memdup ( & next_proto , & s -> next_proto_negotiated , & next_proto_len ) ) {\n s -> next_proto_negotiated_len = 0 ;\n goto err ;\n }\n s -> next_proto_negotiated_len = ( unsigned char ) next_proto_len ;\n return MSG_PROCESS_CONTINUE_READING ;\n err : ossl_statem_set_error ( s ) ;\n return MSG_PROCESS_ERROR ;\n }"}
{"idx": 14266, "target": 1, "func": "static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_reserve ( sk_ ## t1 ## _compfunc compare , int n ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_reserve ( ( OPENSSL_sk_compfunc ) compare , n ) ;\n }\n static ossl_inline int sk_ ## t1 ## _reserve ( STACK_OF ( t1 ) * sk , int n ) {\n return OPENSSL_sk_reserve ( ( OPENSSL_STACK * ) sk , n ) ;\n }\n static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 14267, "target": 0, "func": "int archive_write_set_format_iso9660 ( struct archive * _a ) {\n struct archive_write * a = ( struct archive_write * ) _a ;\n struct iso9660 * iso9660 ;\n archive_check_magic ( _a , ARCHIVE_WRITE_MAGIC , ARCHIVE_STATE_NEW , \"archive_write_set_format_iso9660\" ) ;\n if ( a -> format_free != NULL ) ( a -> format_free ) ( a ) ;\n iso9660 = calloc ( 1 , sizeof ( * iso9660 ) ) ;\n if ( iso9660 == NULL ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate iso9660 data\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n iso9660 -> birth_time = 0 ;\n iso9660 -> temp_fd = - 1 ;\n iso9660 -> cur_file = NULL ;\n iso9660 -> primary . max_depth = 0 ;\n iso9660 -> primary . vdd_type = VDD_PRIMARY ;\n iso9660 -> primary . pathtbl = NULL ;\n iso9660 -> joliet . rootent = NULL ;\n iso9660 -> joliet . max_depth = 0 ;\n iso9660 -> joliet . vdd_type = VDD_JOLIET ;\n iso9660 -> joliet . pathtbl = NULL ;\n isofile_init_entry_list ( iso9660 ) ;\n isofile_init_entry_data_file_list ( iso9660 ) ;\n isofile_init_hardlinks ( iso9660 ) ;\n iso9660 -> directories_too_deep = NULL ;\n iso9660 -> dircnt_max = 1 ;\n iso9660 -> wbuff_remaining = wb_buffmax ( ) ;\n iso9660 -> wbuff_type = WB_TO_TEMP ;\n iso9660 -> wbuff_offset = 0 ;\n iso9660 -> wbuff_written = 0 ;\n iso9660 -> wbuff_tail = 0 ;\n archive_string_init ( & ( iso9660 -> utf16be ) ) ;\n archive_string_init ( & ( iso9660 -> mbs ) ) ;\n archive_string_init ( & ( iso9660 -> volume_identifier ) ) ;\n archive_strcpy ( & ( iso9660 -> volume_identifier ) , \"CDROM\" ) ;\n archive_string_init ( & ( iso9660 -> publisher_identifier ) ) ;\n archive_string_init ( & ( iso9660 -> data_preparer_identifier ) ) ;\n archive_string_init ( & ( iso9660 -> application_identifier ) ) ;\n archive_strcpy ( & ( iso9660 -> application_identifier ) , archive_version_string ( ) ) ;\n archive_string_init ( & ( iso9660 -> copyright_file_identifier ) ) ;\n archive_string_init ( & ( iso9660 -> abstract_file_identifier ) ) ;\n archive_string_init ( & ( iso9660 -> bibliographic_file_identifier ) ) ;\n archive_string_init ( & ( iso9660 -> el_torito . catalog_filename ) ) ;\n iso9660 -> el_torito . catalog = NULL ;\n archive_strcpy ( & ( iso9660 -> el_torito . catalog_filename ) , \"boot.catalog\" ) ;\n archive_string_init ( & ( iso9660 -> el_torito . boot_filename ) ) ;\n iso9660 -> el_torito . boot = NULL ;\n iso9660 -> el_torito . platform_id = BOOT_PLATFORM_X86 ;\n archive_string_init ( & ( iso9660 -> el_torito . id ) ) ;\n iso9660 -> el_torito . boot_load_seg = 0 ;\n iso9660 -> el_torito . boot_load_size = BOOT_LOAD_SIZE ;\n # ifdef HAVE_ZLIB_H iso9660 -> zisofs . block_pointers = NULL ;\n iso9660 -> zisofs . block_pointers_allocated = 0 ;\n iso9660 -> zisofs . stream_valid = 0 ;\n iso9660 -> zisofs . compression_level = 9 ;\n memset ( & ( iso9660 -> zisofs . stream ) , 0 , sizeof ( iso9660 -> zisofs . stream ) ) ;\n # endif iso9660 -> opt . abstract_file = OPT_ABSTRACT_FILE_DEFAULT ;\n iso9660 -> opt . application_id = OPT_APPLICATION_ID_DEFAULT ;\n iso9660 -> opt . allow_vernum = OPT_ALLOW_VERNUM_DEFAULT ;\n iso9660 -> opt . biblio_file = OPT_BIBLIO_FILE_DEFAULT ;\n iso9660 -> opt . boot = OPT_BOOT_DEFAULT ;\n iso9660 -> opt . boot_catalog = OPT_BOOT_CATALOG_DEFAULT ;\n iso9660 -> opt . boot_info_table = OPT_BOOT_INFO_TABLE_DEFAULT ;\n iso9660 -> opt . boot_load_seg = OPT_BOOT_LOAD_SEG_DEFAULT ;\n iso9660 -> opt . boot_load_size = OPT_BOOT_LOAD_SIZE_DEFAULT ;\n iso9660 -> opt . boot_type = OPT_BOOT_TYPE_DEFAULT ;\n iso9660 -> opt . compression_level = OPT_COMPRESSION_LEVEL_DEFAULT ;\n iso9660 -> opt . copyright_file = OPT_COPYRIGHT_FILE_DEFAULT ;\n iso9660 -> opt . iso_level = OPT_ISO_LEVEL_DEFAULT ;\n iso9660 -> opt . joliet = OPT_JOLIET_DEFAULT ;\n iso9660 -> opt . limit_depth = OPT_LIMIT_DEPTH_DEFAULT ;\n iso9660 -> opt . limit_dirs = OPT_LIMIT_DIRS_DEFAULT ;\n iso9660 -> opt . pad = OPT_PAD_DEFAULT ;\n iso9660 -> opt . publisher = OPT_PUBLISHER_DEFAULT ;\n iso9660 -> opt . rr = OPT_RR_DEFAULT ;\n iso9660 -> opt . volume_id = OPT_VOLUME_ID_DEFAULT ;\n iso9660 -> opt . zisofs = OPT_ZISOFS_DEFAULT ;\n iso9660 -> primary . rootent = isoent_create_virtual_dir ( a , iso9660 , \"\" ) ;\n if ( iso9660 -> primary . rootent == NULL ) {\n free ( iso9660 ) ;\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate memory\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n iso9660 -> primary . rootent -> parent = iso9660 -> primary . rootent ;\n iso9660 -> cur_dirent = iso9660 -> primary . rootent ;\n archive_string_init ( & ( iso9660 -> cur_dirstr ) ) ;\n archive_string_ensure ( & ( iso9660 -> cur_dirstr ) , 1 ) ;\n iso9660 -> cur_dirstr . s [ 0 ] = 0 ;\n iso9660 -> sconv_to_utf16be = NULL ;\n iso9660 -> sconv_from_utf16be = NULL ;\n a -> format_data = iso9660 ;\n a -> format_name = \"iso9660\" ;\n a -> format_options = iso9660_options ;\n a -> format_write_header = iso9660_write_header ;\n a -> format_write_data = iso9660_write_data ;\n a -> format_finish_entry = iso9660_finish_entry ;\n a -> format_close = iso9660_close ;\n a -> format_free = iso9660_free ;\n a -> archive . archive_format = ARCHIVE_FORMAT_ISO9660 ;\n a -> archive . archive_format_name = \"ISO9660\" ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 14268, "target": 0, "func": "static gboolean dissect_rtmpt_heur ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n conversation_t * conversation ;\n if ( tvb_reported_length ( tvb ) >= 12 ) {\n struct tcpinfo * tcpinfo = ( struct tcpinfo * ) data ;\n if ( tcpinfo -> lastackseq == RTMPT_HANDSHAKE_OFFSET_2 && tcpinfo -> seq == RTMPT_HANDSHAKE_OFFSET_1 && tvb_get_guint8 ( tvb , 0 ) == RTMPT_MAGIC ) {\n conversation = find_or_create_conversation ( pinfo ) ;\n conversation_set_dissector ( conversation , rtmpt_tcp_handle ) ;\n dissect_rtmpt_tcp ( tvb , pinfo , tree , data ) ;\n return TRUE ;\n }\n }\n return FALSE ;\n }"}
{"idx": 14269, "target": 0, "func": "static int matroska_aac_sri ( int samplerate ) {\n int sri ;\n for ( sri = 0 ;\n sri < FF_ARRAY_ELEMS ( avpriv_mpeg4audio_sample_rates ) ;\n sri ++ ) if ( avpriv_mpeg4audio_sample_rates [ sri ] == samplerate ) break ;\n return sri ;\n }"}
{"idx": 14270, "target": 0, "func": "int init_sets ( REP_SETS * sets , uint states ) {\n bzero ( ( char * ) sets , sizeof ( * sets ) ) ;\n sets -> size_of_bits = ( ( states + 7 ) / 8 ) ;\n if ( ! ( sets -> set_buffer = ( REP_SET * ) my_malloc ( sizeof ( REP_SET ) * SET_MALLOC_HUNC , MYF ( MY_WME ) ) ) ) return 1 ;\n if ( ! ( sets -> bit_buffer = ( uint * ) my_malloc ( sizeof ( uint ) * sets -> size_of_bits * SET_MALLOC_HUNC , MYF ( MY_WME ) ) ) ) {\n my_free ( sets -> set ) ;\n return 1 ;\n }\n return 0 ;\n }"}
{"idx": 14271, "target": 0, "func": "static int is_afio_large ( const char * h , size_t len ) {\n if ( len < afiol_header_size ) return ( 0 ) ;\n if ( h [ afiol_ino_m_offset ] != 'm' || h [ afiol_mtime_n_offset ] != 'n' || h [ afiol_xsize_s_offset ] != 's' || h [ afiol_filesize_c_offset ] != ':' ) return ( 0 ) ;\n if ( ! is_hex ( h + afiol_dev_offset , afiol_ino_m_offset - afiol_dev_offset ) ) return ( 0 ) ;\n if ( ! is_hex ( h + afiol_mode_offset , afiol_mtime_n_offset - afiol_mode_offset ) ) return ( 0 ) ;\n if ( ! is_hex ( h + afiol_namesize_offset , afiol_xsize_s_offset - afiol_namesize_offset ) ) return ( 0 ) ;\n if ( ! is_hex ( h + afiol_filesize_offset , afiol_filesize_size ) ) return ( 0 ) ;\n return ( 1 ) ;\n }"}
{"idx": 14272, "target": 0, "func": "static int dissect_h245_INTEGER_0_65535 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 65535U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 14273, "target": 0, "func": "void xps_parse_brush ( xps_document * doc , const fz_matrix * ctm , const fz_rect * area , char * base_uri , xps_resource * dict , fz_xml * node ) {\n if ( doc -> cookie && doc -> cookie -> abort ) return ;\n if ( ! strcmp ( fz_xml_tag ( node ) , \"ImageBrush\" ) ) xps_parse_image_brush ( doc , ctm , area , base_uri , dict , node ) ;\n else if ( ! strcmp ( fz_xml_tag ( node ) , \"VisualBrush\" ) ) xps_parse_visual_brush ( doc , ctm , area , base_uri , dict , node ) ;\n else if ( ! strcmp ( fz_xml_tag ( node ) , \"LinearGradientBrush\" ) ) xps_parse_linear_gradient_brush ( doc , ctm , area , base_uri , dict , node ) ;\n else if ( ! strcmp ( fz_xml_tag ( node ) , \"RadialGradientBrush\" ) ) xps_parse_radial_gradient_brush ( doc , ctm , area , base_uri , dict , node ) ;\n else fz_warn ( doc -> ctx , \"unknown brush tag: %s\" , fz_xml_tag ( node ) ) ;\n }"}
{"idx": 14274, "target": 0, "func": "static int32_t ultag_getExtensionsSize ( const ULanguageTag * langtag ) {\n int32_t size = 0 ;\n ExtensionListEntry * cur = langtag -> extensions ;\n while ( TRUE ) {\n if ( cur == NULL ) {\n break ;\n }\n size ++ ;\n cur = cur -> next ;\n }\n return size ;\n }"}
{"idx": 14275, "target": 0, "func": "static void test_do_set ( ) {\n MYSQL_STMT * stmt_do , * stmt_set ;\n char * query ;\n int rc , i ;\n myheader ( \"test_do_set\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t1 (a int)\" ) ;\n myquery ( rc ) ;\n query = ( char * ) \"do @var:=(1 in (select * from t1))\" ;\n stmt_do = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt_do ) ;\n query = ( char * ) \"set @var=(1 in (select * from t1))\" ;\n stmt_set = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt_set ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n rc = mysql_stmt_execute ( stmt_do ) ;\n check_execute ( stmt_do , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"do %i\\n\" , i ) ;\n rc = mysql_stmt_execute ( stmt_set ) ;\n check_execute ( stmt_set , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"set %i\\n\" , i ) ;\n }\n mysql_stmt_close ( stmt_do ) ;\n mysql_stmt_close ( stmt_set ) ;\n }"}
{"idx": 14276, "target": 0, "func": "int vp9_get_pred_context_switchable_interp ( const MACROBLOCKD * xd ) {\n const MB_MODE_INFO * const left_mbmi = get_mbmi ( get_left_mi ( xd ) ) ;\n const int left_type = left_mbmi != NULL && is_inter_block ( left_mbmi ) ? left_mbmi -> interp_filter : SWITCHABLE_FILTERS ;\n const MB_MODE_INFO * const above_mbmi = get_mbmi ( get_above_mi ( xd ) ) ;\n const int above_type = above_mbmi != NULL && is_inter_block ( above_mbmi ) ? above_mbmi -> interp_filter : SWITCHABLE_FILTERS ;\n if ( left_type == above_type ) return left_type ;\n else if ( left_type == SWITCHABLE_FILTERS && above_type != SWITCHABLE_FILTERS ) return above_type ;\n else if ( left_type != SWITCHABLE_FILTERS && above_type == SWITCHABLE_FILTERS ) return left_type ;\n else return SWITCHABLE_FILTERS ;\n }"}
{"idx": 14277, "target": 0, "func": "static jlong Init ( JNIEnv * env , const JavaParamRef < jobject > & obj ) {\n PasswordUIViewAndroid * controller = new PasswordUIViewAndroid ( env , obj ) ;\n return reinterpret_cast < intptr_t > ( controller ) ;\n }"}
{"idx": 14278, "target": 0, "func": "static MAIN_WINDOW_REC * mainwindows_find_lower ( MAIN_WINDOW_REC * window ) {\n int last_line ;\n MAIN_WINDOW_REC * best ;\n GSList * tmp ;\n if ( window != NULL ) last_line = window -> last_line ;\n else last_line = - 1 ;\n best = NULL ;\n for ( tmp = mainwindows ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n MAIN_WINDOW_REC * rec = tmp -> data ;\n if ( rec -> first_line > last_line && ( best == NULL || rec -> first_line < best -> first_line ) ) best = rec ;\n }\n return best ;\n }"}
{"idx": 14279, "target": 0, "func": "static inline int mpeg2_fast_decode_block_non_intra ( MpegEncContext * s , int16_t * block , int n ) {\n int level , i , j , run ;\n RLTable * rl = & ff_rl_mpeg1 ;\n uint8_t * const scantable = s -> intra_scantable . permutated ;\n const int qscale = s -> qscale ;\n OPEN_READER ( re , & s -> gb ) ;\n i = - 1 ;\n UPDATE_CACHE ( re , & s -> gb ) ;\n if ( ( ( int32_t ) GET_CACHE ( re , & s -> gb ) ) < 0 ) {\n level = ( 3 * qscale ) >> 1 ;\n if ( GET_CACHE ( re , & s -> gb ) & 0x40000000 ) level = - level ;\n block [ 0 ] = level ;\n i ++ ;\n SKIP_BITS ( re , & s -> gb , 2 ) ;\n if ( ( ( int32_t ) GET_CACHE ( re , & s -> gb ) ) <= ( int32_t ) 0xBFFFFFFF ) goto end ;\n }\n for ( ;\n ;\n ) {\n GET_RL_VLC ( level , run , re , & s -> gb , rl -> rl_vlc [ 0 ] , TEX_VLC_BITS , 2 , 0 ) ;\n if ( level != 0 ) {\n i += run ;\n j = scantable [ i ] ;\n level = ( ( level * 2 + 1 ) * qscale ) >> 1 ;\n level = ( level ^ SHOW_SBITS ( re , & s -> gb , 1 ) ) - SHOW_SBITS ( re , & s -> gb , 1 ) ;\n SKIP_BITS ( re , & s -> gb , 1 ) ;\n }\n else {\n run = SHOW_UBITS ( re , & s -> gb , 6 ) + 1 ;\n LAST_SKIP_BITS ( re , & s -> gb , 6 ) ;\n UPDATE_CACHE ( re , & s -> gb ) ;\n level = SHOW_SBITS ( re , & s -> gb , 12 ) ;\n SKIP_BITS ( re , & s -> gb , 12 ) ;\n i += run ;\n j = scantable [ i ] ;\n if ( level < 0 ) {\n level = ( ( - level * 2 + 1 ) * qscale ) >> 1 ;\n level = - level ;\n }\n else {\n level = ( ( level * 2 + 1 ) * qscale ) >> 1 ;\n }\n }\n block [ j ] = level ;\n if ( ( ( int32_t ) GET_CACHE ( re , & s -> gb ) ) <= ( int32_t ) 0xBFFFFFFF ) break ;\n UPDATE_CACHE ( re , & s -> gb ) ;\n }\n end : LAST_SKIP_BITS ( re , & s -> gb , 2 ) ;\n CLOSE_READER ( re , & s -> gb ) ;\n s -> block_last_index [ n ] = i ;\n return 0 ;\n }"}
{"idx": 14280, "target": 0, "func": "static void dissect_rtp_hext_rfc5215_onebyte ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * rtp_hext_tree ) {\n proto_item * ti = NULL ;\n proto_tree * rtp_hext_rfc5285_tree = NULL ;\n guint ext_offset = 0 , start_ext_offset ;\n while ( ext_offset < tvb_length ( tvb ) ) {\n guint8 ext_hdr_hdr ;\n guint8 ext_id ;\n guint8 ext_length ;\n tvbuff_t * subtvb = NULL ;\n start_ext_offset = ext_offset ;\n while ( tvb_get_guint8 ( tvb , ext_offset ) == 0 ) {\n ext_offset ++ ;\n if ( ext_offset >= tvb_length ( tvb ) ) return ;\n }\n if ( ext_offset > start_ext_offset ) proto_tree_add_item ( rtp_hext_tree , hf_rtp_padding_data , tvb , ext_offset , ext_offset - start_ext_offset , ENC_NA ) ;\n ext_hdr_hdr = tvb_get_guint8 ( tvb , ext_offset ) ;\n ext_id = ext_hdr_hdr >> 4 ;\n if ( ext_id == 15 ) return ;\n ext_length = ( ext_hdr_hdr & 0x0F ) + 1 ;\n if ( rtp_hext_tree ) {\n ti = proto_tree_add_text ( rtp_hext_tree , tvb , ext_offset , ext_length + 1 , \"RFC 5285 Header Extension (One-Byte Header)\" ) ;\n rtp_hext_rfc5285_tree = proto_item_add_subtree ( ti , ett_hdr_ext_rfc5285 ) ;\n proto_tree_add_uint ( rtp_hext_rfc5285_tree , hf_rtp_ext_rfc5285_id , tvb , ext_offset , 1 , ext_id ) ;\n proto_tree_add_uint ( rtp_hext_rfc5285_tree , hf_rtp_ext_rfc5285_length , tvb , ext_offset , 1 , ext_length ) ;\n }\n ext_offset ++ ;\n subtvb = tvb_new_subset ( tvb , ext_offset , ext_length , ext_length ) ;\n if ( ! dissector_try_uint ( rtp_hdr_ext_rfc5285_dissector_table , ext_id , subtvb , pinfo , rtp_hext_rfc5285_tree ) ) {\n if ( rtp_hext_tree ) proto_tree_add_item ( rtp_hext_rfc5285_tree , hf_rtp_ext_rfc5285_data , subtvb , 0 , ext_length , ENC_NA ) ;\n }\n ext_offset += ext_length ;\n }\n }"}
{"idx": 14281, "target": 0, "func": "static int selinux_cred_prepare ( struct cred * new , const struct cred * old , gfp_t gfp ) {\n const struct task_security_struct * old_tsec ;\n struct task_security_struct * tsec ;\n old_tsec = old -> security ;\n tsec = kmemdup ( old_tsec , sizeof ( struct task_security_struct ) , gfp ) ;\n if ( ! tsec ) return - ENOMEM ;\n new -> security = tsec ;\n return 0 ;\n }"}
{"idx": 14282, "target": 0, "func": "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_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MultiplexedStreamCapability , MultiplexedStreamCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 14283, "target": 0, "func": "static void libopus_flush ( AVCodecContext * avc ) {\n struct libopus_context * opus = avc -> priv_data ;\n opus_multistream_decoder_ctl ( opus -> dec , OPUS_RESET_STATE ) ;\n }"}
{"idx": 14284, "target": 0, "func": "static void ctl_putsys ( int varid ) {\n l_fp tmp ;\n char str [ 256 ] ;\n u_int u ;\n double kb ;\n double dtemp ;\n const char * ss ;\n # ifdef AUTOKEY struct cert_info * cp ;\n # endif # ifdef KERNEL_PLL static struct timex ntx ;\n static u_long ntp_adjtime_time ;\n static const double to_ms = # ifdef STA_NANO 1.0e-6 ;\n # else 1.0e-3 ;\n # endif if ( CS_KERN_FIRST <= varid && varid <= CS_KERN_LAST && current_time != ntp_adjtime_time ) {\n ZERO ( ntx ) ;\n if ( ntp_adjtime ( & ntx ) < 0 ) msyslog ( LOG_ERR , \"ntp_adjtime() for mode 6 query failed: %m\" ) ;\n else ntp_adjtime_time = current_time ;\n }\n # endif switch ( varid ) {\n case CS_LEAP : ctl_putuint ( sys_var [ CS_LEAP ] . text , sys_leap ) ;\n break ;\n case CS_STRATUM : ctl_putuint ( sys_var [ CS_STRATUM ] . text , sys_stratum ) ;\n break ;\n case CS_PRECISION : ctl_putint ( sys_var [ CS_PRECISION ] . text , sys_precision ) ;\n break ;\n case CS_ROOTDELAY : ctl_putdbl ( sys_var [ CS_ROOTDELAY ] . text , sys_rootdelay * 1e3 ) ;\n break ;\n case CS_ROOTDISPERSION : ctl_putdbl ( sys_var [ CS_ROOTDISPERSION ] . text , sys_rootdisp * 1e3 ) ;\n break ;\n case CS_REFID : if ( sys_stratum > 1 && sys_stratum < STRATUM_UNSPEC ) ctl_putadr ( sys_var [ varid ] . text , sys_refid , NULL ) ;\n else ctl_putrefid ( sys_var [ varid ] . text , sys_refid ) ;\n break ;\n case CS_REFTIME : ctl_putts ( sys_var [ CS_REFTIME ] . text , & sys_reftime ) ;\n break ;\n case CS_POLL : ctl_putuint ( sys_var [ CS_POLL ] . text , sys_poll ) ;\n break ;\n case CS_PEERID : if ( sys_peer == NULL ) ctl_putuint ( sys_var [ CS_PEERID ] . text , 0 ) ;\n else ctl_putuint ( sys_var [ CS_PEERID ] . text , sys_peer -> associd ) ;\n break ;\n case CS_PEERADR : if ( sys_peer != NULL && sys_peer -> dstadr != NULL ) ss = sptoa ( & sys_peer -> srcadr ) ;\n else ss = \"0.0.0.0:0\" ;\n ctl_putunqstr ( sys_var [ CS_PEERADR ] . text , ss , strlen ( ss ) ) ;\n break ;\n case CS_PEERMODE : u = ( sys_peer != NULL ) ? sys_peer -> hmode : MODE_UNSPEC ;\n ctl_putuint ( sys_var [ CS_PEERMODE ] . text , u ) ;\n break ;\n case CS_OFFSET : ctl_putdbl6 ( sys_var [ CS_OFFSET ] . text , last_offset * 1e3 ) ;\n break ;\n case CS_DRIFT : ctl_putdbl ( sys_var [ CS_DRIFT ] . text , drift_comp * 1e6 ) ;\n break ;\n case CS_JITTER : ctl_putdbl6 ( sys_var [ CS_JITTER ] . text , sys_jitter * 1e3 ) ;\n break ;\n case CS_ERROR : ctl_putdbl ( sys_var [ CS_ERROR ] . text , clock_jitter * 1e3 ) ;\n break ;\n case CS_CLOCK : get_systime ( & tmp ) ;\n ctl_putts ( sys_var [ CS_CLOCK ] . text , & tmp ) ;\n break ;\n case CS_PROCESSOR : # ifndef HAVE_UNAME ctl_putstr ( sys_var [ CS_PROCESSOR ] . text , str_processor , sizeof ( str_processor ) - 1 ) ;\n # else ctl_putstr ( sys_var [ CS_PROCESSOR ] . text , utsnamebuf . machine , strlen ( utsnamebuf . machine ) ) ;\n # endif break ;\n case CS_SYSTEM : # ifndef HAVE_UNAME ctl_putstr ( sys_var [ CS_SYSTEM ] . text , str_system , sizeof ( str_system ) - 1 ) ;\n # else snprintf ( str , sizeof ( str ) , \"%s/%s\" , utsnamebuf . sysname , utsnamebuf . release ) ;\n ctl_putstr ( sys_var [ CS_SYSTEM ] . text , str , strlen ( str ) ) ;\n # endif break ;\n case CS_VERSION : ctl_putstr ( sys_var [ CS_VERSION ] . text , Version , strlen ( Version ) ) ;\n break ;\n case CS_STABIL : ctl_putdbl ( sys_var [ CS_STABIL ] . text , clock_stability * 1e6 ) ;\n break ;\n case CS_VARLIST : {\n char buf [ CTL_MAX_DATA_LEN ] ;\n char * buffp , * buffend ;\n int firstVarName ;\n const char * ss1 ;\n int len ;\n const struct ctl_var * k ;\n buffp = buf ;\n buffend = buf + sizeof ( buf ) ;\n if ( buffp + strlen ( sys_var [ CS_VARLIST ] . text ) + 4 > buffend ) break ;\n snprintf ( buffp , sizeof ( buf ) , \"%s=\\\"\" , sys_var [ CS_VARLIST ] . text ) ;\n buffp += strlen ( buffp ) ;\n firstVarName = TRUE ;\n for ( k = sys_var ;\n ! ( k -> flags & EOV ) ;\n k ++ ) {\n if ( k -> flags & PADDING ) continue ;\n len = strlen ( k -> text ) ;\n if ( buffp + len + 1 >= buffend ) break ;\n if ( ! firstVarName ) * buffp ++ = ',' ;\n else firstVarName = FALSE ;\n memcpy ( buffp , k -> text , len ) ;\n buffp += len ;\n }\n for ( k = ext_sys_var ;\n k && ! ( k -> flags & EOV ) ;\n k ++ ) {\n if ( k -> flags & PADDING ) continue ;\n if ( NULL == k -> text ) continue ;\n ss1 = strchr ( k -> text , '=' ) ;\n if ( NULL == ss1 ) len = strlen ( k -> text ) ;\n else len = ss1 - k -> text ;\n if ( buffp + len + 1 >= buffend ) break ;\n if ( firstVarName ) {\n * buffp ++ = ',' ;\n firstVarName = FALSE ;\n }\n memcpy ( buffp , k -> text , ( unsigned ) len ) ;\n buffp += len ;\n }\n if ( buffp + 2 >= buffend ) break ;\n * buffp ++ = '\"' ;\n * buffp = '\\0' ;\n ctl_putdata ( buf , ( unsigned ) ( buffp - buf ) , 0 ) ;\n break ;\n }\n case CS_TAI : if ( sys_tai > 0 ) ctl_putuint ( sys_var [ CS_TAI ] . text , sys_tai ) ;\n break ;\n case CS_LEAPTAB : {\n leap_signature_t lsig ;\n leapsec_getsig ( & lsig ) ;\n if ( lsig . ttime > 0 ) ctl_putfs ( sys_var [ CS_LEAPTAB ] . text , lsig . ttime ) ;\n break ;\n }\n case CS_LEAPEND : {\n leap_signature_t lsig ;\n leapsec_getsig ( & lsig ) ;\n if ( lsig . etime > 0 ) ctl_putfs ( sys_var [ CS_LEAPEND ] . text , lsig . etime ) ;\n break ;\n }\n # ifdef LEAP_SMEAR case CS_LEAPSMEARINTV : if ( leap_smear_intv > 0 ) ctl_putuint ( sys_var [ CS_LEAPSMEARINTV ] . text , leap_smear_intv ) ;\n break ;\n case CS_LEAPSMEAROFFS : if ( leap_smear_intv > 0 ) ctl_putdbl ( sys_var [ CS_LEAPSMEAROFFS ] . text , leap_smear . doffset * 1e3 ) ;\n break ;\n # endif case CS_RATE : ctl_putuint ( sys_var [ CS_RATE ] . text , ntp_minpoll ) ;\n break ;\n case CS_MRU_ENABLED : ctl_puthex ( sys_var [ varid ] . text , mon_enabled ) ;\n break ;\n case CS_MRU_DEPTH : ctl_putuint ( sys_var [ varid ] . text , mru_entries ) ;\n break ;\n case CS_MRU_MEM : kb = mru_entries * ( sizeof ( mon_entry ) / 1024. ) ;\n u = ( u_int ) kb ;\n if ( kb - u >= 0.5 ) u ++ ;\n ctl_putuint ( sys_var [ varid ] . text , u ) ;\n break ;\n case CS_MRU_DEEPEST : ctl_putuint ( sys_var [ varid ] . text , mru_peakentries ) ;\n break ;\n case CS_MRU_MINDEPTH : ctl_putuint ( sys_var [ varid ] . text , mru_mindepth ) ;\n break ;\n case CS_MRU_MAXAGE : ctl_putint ( sys_var [ varid ] . text , mru_maxage ) ;\n break ;\n case CS_MRU_MAXDEPTH : ctl_putuint ( sys_var [ varid ] . text , mru_maxdepth ) ;\n break ;\n case CS_MRU_MAXMEM : kb = mru_maxdepth * ( sizeof ( mon_entry ) / 1024. ) ;\n u = ( u_int ) kb ;\n if ( kb - u >= 0.5 ) u ++ ;\n ctl_putuint ( sys_var [ varid ] . text , u ) ;\n break ;\n case CS_SS_UPTIME : ctl_putuint ( sys_var [ varid ] . text , current_time ) ;\n break ;\n case CS_SS_RESET : ctl_putuint ( sys_var [ varid ] . text , current_time - sys_stattime ) ;\n break ;\n case CS_SS_RECEIVED : ctl_putuint ( sys_var [ varid ] . text , sys_received ) ;\n break ;\n case CS_SS_THISVER : ctl_putuint ( sys_var [ varid ] . text , sys_newversion ) ;\n break ;\n case CS_SS_OLDVER : ctl_putuint ( sys_var [ varid ] . text , sys_oldversion ) ;\n break ;\n case CS_SS_BADFORMAT : ctl_putuint ( sys_var [ varid ] . text , sys_badlength ) ;\n break ;\n case CS_SS_BADAUTH : ctl_putuint ( sys_var [ varid ] . text , sys_badauth ) ;\n break ;\n case CS_SS_DECLINED : ctl_putuint ( sys_var [ varid ] . text , sys_declined ) ;\n break ;\n case CS_SS_RESTRICTED : ctl_putuint ( sys_var [ varid ] . text , sys_restricted ) ;\n break ;\n case CS_SS_LIMITED : ctl_putuint ( sys_var [ varid ] . text , sys_limitrejected ) ;\n break ;\n case CS_SS_KODSENT : ctl_putuint ( sys_var [ varid ] . text , sys_kodsent ) ;\n break ;\n case CS_SS_PROCESSED : ctl_putuint ( sys_var [ varid ] . text , sys_processed ) ;\n break ;\n case CS_BCASTDELAY : ctl_putdbl ( sys_var [ varid ] . text , sys_bdelay * 1e3 ) ;\n break ;\n case CS_AUTHDELAY : LFPTOD ( & sys_authdelay , dtemp ) ;\n ctl_putdbl ( sys_var [ varid ] . text , dtemp * 1e3 ) ;\n break ;\n case CS_AUTHKEYS : ctl_putuint ( sys_var [ varid ] . text , authnumkeys ) ;\n break ;\n case CS_AUTHFREEK : ctl_putuint ( sys_var [ varid ] . text , authnumfreekeys ) ;\n break ;\n case CS_AUTHKLOOKUPS : ctl_putuint ( sys_var [ varid ] . text , authkeylookups ) ;\n break ;\n case CS_AUTHKNOTFOUND : ctl_putuint ( sys_var [ varid ] . text , authkeynotfound ) ;\n break ;\n case CS_AUTHKUNCACHED : ctl_putuint ( sys_var [ varid ] . text , authkeyuncached ) ;\n break ;\n case CS_AUTHKEXPIRED : ctl_putuint ( sys_var [ varid ] . text , authkeyexpired ) ;\n break ;\n case CS_AUTHENCRYPTS : ctl_putuint ( sys_var [ varid ] . text , authencryptions ) ;\n break ;\n case CS_AUTHDECRYPTS : ctl_putuint ( sys_var [ varid ] . text , authdecryptions ) ;\n break ;\n case CS_AUTHRESET : ctl_putuint ( sys_var [ varid ] . text , current_time - auth_timereset ) ;\n break ;\n # ifndef KERNEL_PLL # define CTL_IF_KERNLOOP ( putfunc , args ) ctl_putint ( sys_var [ varid ] . text , 0 ) # else # define CTL_IF_KERNLOOP ( putfunc , args ) putfunc args # endif # ifndef KERNEL_PLL # define CTL_IF_KERNPPS ( putfunc , args ) ctl_putint ( sys_var [ varid ] . text , 0 ) # else # define CTL_IF_KERNPPS ( putfunc , args ) if ( 0 == ntx . shift ) ctl_putint ( sys_var [ varid ] . text , 0 ) ;\n else putfunc args # endif case CS_K_OFFSET : CTL_IF_KERNLOOP ( ctl_putdblf , ( sys_var [ varid ] . text , 0 , - 1 , to_ms * ntx . offset ) ) ;\n break ;\n case CS_K_FREQ : CTL_IF_KERNLOOP ( ctl_putsfp , ( sys_var [ varid ] . text , ntx . freq ) ) ;\n break ;\n case CS_K_MAXERR : CTL_IF_KERNLOOP ( ctl_putdblf , ( sys_var [ varid ] . text , 0 , 6 , to_ms * ntx . maxerror ) ) ;\n break ;\n case CS_K_ESTERR : CTL_IF_KERNLOOP ( ctl_putdblf , ( sys_var [ varid ] . text , 0 , 6 , to_ms * ntx . esterror ) ) ;\n break ;\n case CS_K_STFLAGS : # ifndef KERNEL_PLL ss = \"\" ;\n # else ss = k_st_flags ( ntx . status ) ;\n # endif ctl_putstr ( sys_var [ varid ] . text , ss , strlen ( ss ) ) ;\n break ;\n case CS_K_TIMECONST : CTL_IF_KERNLOOP ( ctl_putint , ( sys_var [ varid ] . text , ntx . constant ) ) ;\n break ;\n case CS_K_PRECISION : CTL_IF_KERNLOOP ( ctl_putdblf , ( sys_var [ varid ] . text , 0 , 6 , to_ms * ntx . precision ) ) ;\n break ;\n case CS_K_FREQTOL : CTL_IF_KERNLOOP ( ctl_putsfp , ( sys_var [ varid ] . text , ntx . tolerance ) ) ;\n break ;\n case CS_K_PPS_FREQ : CTL_IF_KERNPPS ( ctl_putsfp , ( sys_var [ varid ] . text , ntx . ppsfreq ) ) ;\n break ;\n case CS_K_PPS_STABIL : CTL_IF_KERNPPS ( ctl_putsfp , ( sys_var [ varid ] . text , ntx . stabil ) ) ;\n break ;\n case CS_K_PPS_JITTER : CTL_IF_KERNPPS ( ctl_putdbl , ( sys_var [ varid ] . text , to_ms * ntx . jitter ) ) ;\n break ;\n case CS_K_PPS_CALIBDUR : CTL_IF_KERNPPS ( ctl_putint , ( sys_var [ varid ] . text , 1 << ntx . shift ) ) ;\n break ;\n case CS_K_PPS_CALIBS : CTL_IF_KERNPPS ( ctl_putint , ( sys_var [ varid ] . text , ntx . calcnt ) ) ;\n break ;\n case CS_K_PPS_CALIBERRS : CTL_IF_KERNPPS ( ctl_putint , ( sys_var [ varid ] . text , ntx . errcnt ) ) ;\n break ;\n case CS_K_PPS_JITEXC : CTL_IF_KERNPPS ( ctl_putint , ( sys_var [ varid ] . text , ntx . jitcnt ) ) ;\n break ;\n case CS_K_PPS_STBEXC : CTL_IF_KERNPPS ( ctl_putint , ( sys_var [ varid ] . text , ntx . stbcnt ) ) ;\n break ;\n case CS_IOSTATS_RESET : ctl_putuint ( sys_var [ varid ] . text , current_time - io_timereset ) ;\n break ;\n case CS_TOTAL_RBUF : ctl_putuint ( sys_var [ varid ] . text , total_recvbuffs ( ) ) ;\n break ;\n case CS_FREE_RBUF : ctl_putuint ( sys_var [ varid ] . text , free_recvbuffs ( ) ) ;\n break ;\n case CS_USED_RBUF : ctl_putuint ( sys_var [ varid ] . text , full_recvbuffs ( ) ) ;\n break ;\n case CS_RBUF_LOWATER : ctl_putuint ( sys_var [ varid ] . text , lowater_additions ( ) ) ;\n break ;\n case CS_IO_DROPPED : ctl_putuint ( sys_var [ varid ] . text , packets_dropped ) ;\n break ;\n case CS_IO_IGNORED : ctl_putuint ( sys_var [ varid ] . text , packets_ignored ) ;\n break ;\n case CS_IO_RECEIVED : ctl_putuint ( sys_var [ varid ] . text , packets_received ) ;\n break ;\n case CS_IO_SENT : ctl_putuint ( sys_var [ varid ] . text , packets_sent ) ;\n break ;\n case CS_IO_SENDFAILED : ctl_putuint ( sys_var [ varid ] . text , packets_notsent ) ;\n break ;\n case CS_IO_WAKEUPS : ctl_putuint ( sys_var [ varid ] . text , handler_calls ) ;\n break ;\n case CS_IO_GOODWAKEUPS : ctl_putuint ( sys_var [ varid ] . text , handler_pkts ) ;\n break ;\n case CS_TIMERSTATS_RESET : ctl_putuint ( sys_var [ varid ] . text , current_time - timer_timereset ) ;\n break ;\n case CS_TIMER_OVERRUNS : ctl_putuint ( sys_var [ varid ] . text , alarm_overflow ) ;\n break ;\n case CS_TIMER_XMTS : ctl_putuint ( sys_var [ varid ] . text , timer_xmtcalls ) ;\n break ;\n case CS_FUZZ : ctl_putdbl ( sys_var [ varid ] . text , sys_fuzz * 1e3 ) ;\n break ;\n case CS_WANDER_THRESH : ctl_putdbl ( sys_var [ varid ] . text , wander_threshold * 1e6 ) ;\n break ;\n # ifdef AUTOKEY case CS_FLAGS : if ( crypto_flags ) ctl_puthex ( sys_var [ CS_FLAGS ] . text , crypto_flags ) ;\n break ;\n case CS_DIGEST : if ( crypto_flags ) {\n strlcpy ( str , OBJ_nid2ln ( crypto_nid ) , COUNTOF ( str ) ) ;\n ctl_putstr ( sys_var [ CS_DIGEST ] . text , str , strlen ( str ) ) ;\n }\n break ;\n case CS_SIGNATURE : if ( crypto_flags ) {\n const EVP_MD * dp ;\n dp = EVP_get_digestbynid ( crypto_flags >> 16 ) ;\n strlcpy ( str , OBJ_nid2ln ( EVP_MD_pkey_type ( dp ) ) , COUNTOF ( str ) ) ;\n ctl_putstr ( sys_var [ CS_SIGNATURE ] . text , str , strlen ( str ) ) ;\n }\n break ;\n case CS_HOST : if ( hostval . ptr != NULL ) ctl_putstr ( sys_var [ CS_HOST ] . text , hostval . ptr , strlen ( hostval . ptr ) ) ;\n break ;\n case CS_IDENT : if ( sys_ident != NULL ) ctl_putstr ( sys_var [ CS_IDENT ] . text , sys_ident , strlen ( sys_ident ) ) ;\n break ;\n case CS_CERTIF : for ( cp = cinfo ;\n cp != NULL ;\n cp = cp -> link ) {\n snprintf ( str , sizeof ( str ) , \"%s %s 0x%x\" , cp -> subject , cp -> issuer , cp -> flags ) ;\n ctl_putstr ( sys_var [ CS_CERTIF ] . text , str , strlen ( str ) ) ;\n ctl_putcal ( sys_var [ CS_REVTIME ] . text , & ( cp -> last ) ) ;\n }\n break ;\n case CS_PUBLIC : if ( hostval . tstamp != 0 ) ctl_putfs ( sys_var [ CS_PUBLIC ] . text , ntohl ( hostval . tstamp ) ) ;\n break ;\n # endif default : break ;\n }\n }"}
{"idx": 14285, "target": 0, "func": "static int dissct_rsl_ipaccess_msg ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , int offset ) {\n guint8 msg_type ;\n guint32 local_addr = 0 ;\n guint16 local_port = 0 ;\n address src_addr ;\n msg_type = tvb_get_guint8 ( tvb , offset ) & 0x7f ;\n offset ++ ;\n while ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n guint8 tag ;\n unsigned int len , hlen ;\n const struct tlv_def * tdef ;\n proto_item * ti ;\n proto_tree * ie_tree ;\n tag = tvb_get_guint8 ( tvb , offset ) ;\n tdef = & rsl_att_tlvdef . def [ tag ] ;\n switch ( tdef -> type ) {\n case TLV_TYPE_FIXED : hlen = 1 ;\n len = tdef -> fixed_len ;\n break ;\n case TLV_TYPE_T : hlen = 1 ;\n len = 0 ;\n break ;\n case TLV_TYPE_TV : hlen = 1 ;\n len = 1 ;\n break ;\n case TLV_TYPE_TLV : hlen = 2 ;\n len = tvb_get_guint8 ( tvb , offset + 1 ) ;\n break ;\n case TLV_TYPE_TL16V : hlen = 3 ;\n len = tvb_get_guint8 ( tvb , offset + 1 ) << 8 | tvb_get_guint8 ( tvb , offset + 2 ) ;\n break ;\n case TLV_TYPE_UNKNOWN : default : return tvb_reported_length ( tvb ) ;\n }\n ti = proto_tree_add_item ( tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n ie_tree = proto_item_add_subtree ( ti , ett_ie_local_port ) ;\n offset += hlen ;\n switch ( tag ) {\n case RSL_IE_CH_NO : dissect_rsl_ie_ch_no ( tvb , pinfo , ie_tree , offset , FALSE ) ;\n break ;\n case RSL_IE_FRAME_NO : dissect_rsl_ie_frame_no ( tvb , pinfo , ie_tree , offset , FALSE ) ;\n break ;\n case RSL_IE_MS_POW : dissect_rsl_ie_ms_pow ( tvb , pinfo , ie_tree , offset , FALSE ) ;\n break ;\n case RSL_IE_IPAC_REMOTE_IP : proto_tree_add_item ( ie_tree , hf_rsl_remote_ip , tvb , offset , len , ENC_BIG_ENDIAN ) ;\n break ;\n case RSL_IE_IPAC_REMOTE_PORT : proto_tree_add_item ( ie_tree , hf_rsl_remote_port , tvb , offset , len , ENC_BIG_ENDIAN ) ;\n break ;\n case RSL_IE_IPAC_LOCAL_IP : proto_tree_add_item ( ie_tree , hf_rsl_local_ip , tvb , offset , len , ENC_BIG_ENDIAN ) ;\n local_addr = tvb_get_ipv4 ( tvb , offset ) ;\n break ;\n case RSL_IE_IPAC_LOCAL_PORT : proto_tree_add_item ( ie_tree , hf_rsl_local_port , tvb , offset , len , ENC_BIG_ENDIAN ) ;\n local_port = tvb_get_ntohs ( tvb , offset ) ;\n break ;\n case RSL_IE_IPAC_SPEECH_MODE : proto_tree_add_item ( ie_tree , hf_rsl_speech_mode_s , tvb , offset , len , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_speech_mode_m , tvb , offset , len , ENC_BIG_ENDIAN ) ;\n break ;\n case RSL_IE_IPAC_RTP_PAYLOAD : case RSL_IE_IPAC_RTP_PAYLOAD2 : proto_tree_add_item ( ie_tree , hf_rsl_rtp_payload , tvb , offset , len , ENC_BIG_ENDIAN ) ;\n break ;\n case RSL_IE_IPAC_RTP_CSD_FMT : proto_tree_add_item ( ie_tree , hf_rsl_rtp_csd_fmt_d , tvb , offset , len , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_rtp_csd_fmt_ir , tvb , offset , len , ENC_BIG_ENDIAN ) ;\n break ;\n case RSL_IE_IPAC_CONN_ID : proto_tree_add_item ( ie_tree , hf_rsl_conn_id , tvb , offset , len , ENC_BIG_ENDIAN ) ;\n break ;\n case RSL_IE_IPAC_CONN_STAT : proto_tree_add_item ( ie_tree , hf_rsl_cstat_tx_pkts , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_cstat_tx_octs , tvb , offset + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_cstat_rx_pkts , tvb , offset + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_cstat_rx_octs , tvb , offset + 12 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_cstat_lost_pkts , tvb , offset + 16 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_cstat_ia_jitter , tvb , offset + 20 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_cstat_avg_tx_dly , tvb , offset + 24 , 4 , ENC_BIG_ENDIAN ) ;\n break ;\n }\n offset += len ;\n }\n switch ( msg_type ) {\n case RSL_MSG_TYPE_IPAC_CRCX_ACK : src_addr . type = AT_IPv4 ;\n src_addr . len = 4 ;\n src_addr . data = ( guint8 * ) & local_addr ;\n rtp_add_address ( pinfo , & src_addr , local_port , 0 , \"GSM A-bis/IP\" , pinfo -> fd -> num , 0 , NULL ) ;\n rtcp_add_address ( pinfo , & src_addr , local_port + 1 , 0 , \"GSM A-bis/IP\" , pinfo -> fd -> num ) ;\n break ;\n }\n return offset ;\n }"}
{"idx": 14286, "target": 0, "func": "static inline void tb_hash_remove ( TranslationBlock * * ptb , TranslationBlock * tb ) {\n TranslationBlock * tb1 ;\n for ( ;\n ;\n ) {\n tb1 = * ptb ;\n if ( tb1 == tb ) {\n * ptb = tb1 -> phys_hash_next ;\n break ;\n }\n ptb = & tb1 -> phys_hash_next ;\n }\n }"}
{"idx": 14287, "target": 0, "func": "uint32_t ps2_read_data ( PS2State * s ) {\n PS2Queue * q ;\n int val , index ;\n trace_ps2_read_data ( s ) ;\n q = & s -> queue ;\n if ( q -> count == 0 ) {\n index = q -> rptr - 1 ;\n if ( index < 0 ) index = PS2_QUEUE_SIZE - 1 ;\n val = q -> data [ index ] ;\n }\n else {\n val = q -> data [ q -> rptr ] ;\n if ( ++ q -> rptr == PS2_QUEUE_SIZE ) q -> rptr = 0 ;\n q -> count -- ;\n s -> update_irq ( s -> update_arg , 0 ) ;\n s -> update_irq ( s -> update_arg , q -> count != 0 ) ;\n }\n return val ;\n }"}
{"idx": 14288, "target": 0, "func": "static void imdct12 ( INTFLOAT * out , INTFLOAT * in ) {\n INTFLOAT in0 , in1 , in2 , in3 , in4 , in5 , t1 , t2 ;\n in0 = in [ 0 * 3 ] ;\n in1 = in [ 1 * 3 ] + in [ 0 * 3 ] ;\n in2 = in [ 2 * 3 ] + in [ 1 * 3 ] ;\n in3 = in [ 3 * 3 ] + in [ 2 * 3 ] ;\n in4 = in [ 4 * 3 ] + in [ 3 * 3 ] ;\n in5 = in [ 5 * 3 ] + in [ 4 * 3 ] ;\n in5 += in3 ;\n in3 += in1 ;\n in2 = MULH3 ( in2 , C3 , 2 ) ;\n in3 = MULH3 ( in3 , C3 , 4 ) ;\n t1 = in0 - in4 ;\n t2 = MULH3 ( in1 - in5 , C4 , 2 ) ;\n out [ 7 ] = out [ 10 ] = t1 + t2 ;\n out [ 1 ] = out [ 4 ] = t1 - t2 ;\n in0 += SHR ( in4 , 1 ) ;\n in4 = in0 + in2 ;\n in5 += 2 * in1 ;\n in1 = MULH3 ( in5 + in3 , C5 , 1 ) ;\n out [ 8 ] = out [ 9 ] = in4 + in1 ;\n out [ 2 ] = out [ 3 ] = in4 - in1 ;\n in0 -= in2 ;\n in5 = MULH3 ( in5 - in3 , C6 , 2 ) ;\n out [ 0 ] = out [ 5 ] = in0 - in5 ;\n out [ 6 ] = out [ 11 ] = in0 + in5 ;\n }"}
{"idx": 14289, "target": 0, "func": "void psf_use_rsrc ( SF_PRIVATE * psf , int on_off ) {\n if ( on_off ) {\n if ( psf -> file . filedes != psf -> rsrc . filedes ) {\n psf -> file . savedes = psf -> file . filedes ;\n psf -> file . filedes = psf -> rsrc . filedes ;\n }\n ;\n }\n else if ( psf -> file . filedes == psf -> rsrc . filedes ) psf -> file . filedes = psf -> file . savedes ;\n return ;\n }"}
{"idx": 14290, "target": 0, "func": "int mem_open ( gx_device * dev ) {\n gx_device_memory * const mdev = ( gx_device_memory * ) dev ;\n if ( mdev -> is_planar ) return_error ( gs_error_rangecheck ) ;\n return gdev_mem_open_scan_lines ( mdev , dev -> height ) ;\n }"}
{"idx": 14291, "target": 0, "func": "static void * Type_Screening_Dup ( struct _cms_typehandler_struct * self , const void * Ptr , cmsUInt32Number n ) {\n return _cmsDupMem ( self -> ContextID , Ptr , sizeof ( cmsScreening ) ) ;\n cmsUNUSED_PARAMETER ( n ) ;\n }"}
{"idx": 14292, "target": 0, "func": "static char * Tag2String ( uint32 tag ) {\n static char buffer [ 8 ] ;\n buffer [ 0 ] = tag >> 24 ;\n buffer [ 1 ] = tag >> 16 ;\n buffer [ 2 ] = tag >> 8 ;\n buffer [ 3 ] = tag ;\n buffer [ 4 ] = 0 ;\n return ( buffer ) ;\n }"}
{"idx": 14293, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FullscreenControllerInteractiveTest , DISABLED_TestTabExitsFullscreenOnNavigation ) {\n ASSERT_TRUE ( test_server ( ) -> Start ( ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , GURL ( \"about:blank\" ) ) ;\n ASSERT_NO_FATAL_FAILURE ( ToggleTabFullscreen ( true ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , GURL ( \"chrome:/ewtab\" ) ) ;\n ASSERT_FALSE ( browser ( ) -> window ( ) -> IsFullscreen ( ) ) ;\n }"}
{"idx": 14294, "target": 0, "func": "static int dissect_diameter_eap_payload ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n gboolean save_writable ;\n save_writable = col_get_writable ( pinfo -> cinfo ) ;\n col_set_writable ( pinfo -> cinfo , FALSE ) ;\n call_dissector ( eap_handle , tvb , pinfo , tree ) ;\n col_set_writable ( pinfo -> cinfo , save_writable ) ;\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 14295, "target": 0, "func": "static void test_evbuffer_find ( void ) {\n u_char * p ;\n const char * test1 = \"1234567890\\r\\n\" ;\n const char * test2 = \"1234567890\\r\" ;\n # define EVBUFFER_INITIAL_LENGTH 256 char test3 [ EVBUFFER_INITIAL_LENGTH ] ;\n unsigned int i ;\n struct evbuffer * buf = evbuffer_new ( ) ;\n fprintf ( stdout , \"Testing evbuffer_find 1: \" ) ;\n evbuffer_add ( buf , ( u_char * ) test1 , strlen ( test1 ) ) ;\n evbuffer_drain ( buf , strlen ( test1 ) ) ;\n evbuffer_add ( buf , ( u_char * ) test2 , strlen ( test2 ) ) ;\n p = evbuffer_find ( buf , ( u_char * ) \"\\r\\n\" , 2 ) ;\n if ( p == NULL ) {\n fprintf ( stdout , \"OK\\n\" ) ;\n }\n else {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n fprintf ( stdout , \"Testing evbuffer_find 2: \" ) ;\n evbuffer_drain ( buf , strlen ( test2 ) ) ;\n for ( i = 0 ;\n i < EVBUFFER_INITIAL_LENGTH ;\n ++ i ) test3 [ i ] = 'a' ;\n test3 [ EVBUFFER_INITIAL_LENGTH - 1 ] = 'x' ;\n evbuffer_add ( buf , ( u_char * ) test3 , EVBUFFER_INITIAL_LENGTH ) ;\n p = evbuffer_find ( buf , ( u_char * ) \"xy\" , 2 ) ;\n if ( p == NULL ) {\n printf ( \"OK\\n\" ) ;\n }\n else {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n fprintf ( stdout , \"Testing evbuffer_find 3: \" ) ;\n p = evbuffer_find ( buf , ( u_char * ) \"ax\" , 2 ) ;\n if ( p != NULL && strncmp ( ( char * ) p , \"ax\" , 2 ) == 0 ) {\n printf ( \"OK\\n\" ) ;\n }\n else {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n evbuffer_free ( buf ) ;\n }"}
{"idx": 14296, "target": 0, "func": "CURLcode Curl_add_buffer_send ( Curl_send_buffer * in , struct connectdata * conn , long * bytes_written , size_t included_body_bytes , int socketindex ) {\n ssize_t amount ;\n CURLcode result ;\n char * ptr ;\n size_t size ;\n struct HTTP * http = conn -> data -> req . protop ;\n size_t sendsize ;\n curl_socket_t sockfd ;\n size_t headersize ;\n DEBUGASSERT ( socketindex <= SECONDARYSOCKET ) ;\n sockfd = conn -> sock [ socketindex ] ;\n ptr = in -> buffer ;\n size = in -> size_used ;\n headersize = size - included_body_bytes ;\n DEBUGASSERT ( size > included_body_bytes ) ;\n result = Curl_convert_to_network ( conn -> data , ptr , headersize ) ;\n if ( result ) {\n Curl_add_buffer_free ( in ) ;\n return result ;\n }\n if ( ( conn -> handler -> flags & PROTOPT_SSL ) && conn -> httpversion != 20 ) {\n sendsize = ( size > CURL_MAX_WRITE_SIZE ) ? CURL_MAX_WRITE_SIZE : size ;\n memcpy ( conn -> data -> state . uploadbuffer , ptr , sendsize ) ;\n ptr = conn -> data -> state . uploadbuffer ;\n }\n else sendsize = size ;\n result = Curl_write ( conn , sockfd , ptr , sendsize , & amount ) ;\n if ( ! result ) {\n size_t headlen = ( size_t ) amount > headersize ? headersize : ( size_t ) amount ;\n size_t bodylen = amount - headlen ;\n if ( conn -> data -> set . verbose ) {\n Curl_debug ( conn -> data , CURLINFO_HEADER_OUT , ptr , headlen , conn ) ;\n if ( bodylen ) {\n Curl_debug ( conn -> data , CURLINFO_DATA_OUT , ptr + headlen , bodylen , conn ) ;\n }\n }\n * bytes_written += ( long ) amount ;\n if ( http ) {\n http -> writebytecount += bodylen ;\n if ( ( size_t ) amount != size ) {\n size -= amount ;\n ptr = in -> buffer + amount ;\n http -> backup . fread_func = conn -> data -> state . fread_func ;\n http -> backup . fread_in = conn -> data -> state . in ;\n http -> backup . postdata = http -> postdata ;\n http -> backup . postsize = http -> postsize ;\n conn -> data -> state . fread_func = ( curl_read_callback ) readmoredata ;\n conn -> data -> state . in = ( void * ) conn ;\n http -> postdata = ptr ;\n http -> postsize = ( curl_off_t ) size ;\n http -> send_buffer = in ;\n http -> sending = HTTPSEND_REQUEST ;\n return CURLE_OK ;\n }\n http -> sending = HTTPSEND_BODY ;\n }\n else {\n if ( ( size_t ) amount != size ) return CURLE_SEND_ERROR ;\n else Curl_pipeline_leave_write ( conn ) ;\n }\n }\n Curl_add_buffer_free ( in ) ;\n return result ;\n }"}
{"idx": 14297, "target": 0, "func": "proto_item * proto_item_get_parent_nth ( proto_item * ti , int gen ) {\n if ( ! ti ) return NULL ;\n while ( gen -- ) {\n ti = ti -> parent ;\n if ( ! ti ) return NULL ;\n }\n return ti ;\n }"}
{"idx": 14298, "target": 0, "func": "void TSHttpTxnSetHttpRetStatus ( TSHttpTxn txnp , TSHttpStatus http_retstatus ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n sm -> t_state . http_return_code = ( HTTPStatus ) http_retstatus ;\n }"}
{"idx": 14299, "target": 0, "func": "static int dissect_h225_T_guid ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 724 \"./asn1/h225/h225.cnf\" tvbuff_t * guid_tvb = NULL ;\n actx -> value_ptr = & guid_tvb ;\n offset = dissect_h225_GloballyUniqueID ( tvb , offset , actx , tree , hf_index ) ;\n if ( guid_tvb ) tvb_get_ntohguid ( guid_tvb , 0 , call_id_guid = wmem_new ( wmem_packet_scope ( ) , e_guid_t ) ) ;\n actx -> value_ptr = NULL ;\n return offset ;\n }"}
{"idx": 14300, "target": 0, "func": "static int dissect_h245_T_signal ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_signal , T_signal_sequence ) ;\n return offset ;\n }"}
{"idx": 14301, "target": 0, "func": "static void generate_noise ( G723_1_Context * p ) {\n int i , j , idx , t ;\n int off [ SUBFRAMES ] ;\n int signs [ SUBFRAMES / 2 * 11 ] , pos [ SUBFRAMES / 2 * 11 ] ;\n int tmp [ SUBFRAME_LEN * 2 ] ;\n int16_t * vector_ptr ;\n int64_t sum ;\n int b0 , c , delta , x , shift ;\n p -> pitch_lag [ 0 ] = cng_rand ( & p -> cng_random_seed , 21 ) + 123 ;\n p -> pitch_lag [ 1 ] = cng_rand ( & p -> cng_random_seed , 19 ) + 123 ;\n for ( i = 0 ;\n i < SUBFRAMES ;\n i ++ ) {\n p -> subframe [ i ] . ad_cb_gain = cng_rand ( & p -> cng_random_seed , 50 ) + 1 ;\n p -> subframe [ i ] . ad_cb_lag = cng_adaptive_cb_lag [ i ] ;\n }\n for ( i = 0 ;\n i < SUBFRAMES / 2 ;\n i ++ ) {\n t = cng_rand ( & p -> cng_random_seed , 1 << 13 ) ;\n off [ i * 2 ] = t & 1 ;\n off [ i * 2 + 1 ] = ( ( t >> 1 ) & 1 ) + SUBFRAME_LEN ;\n t >>= 2 ;\n for ( j = 0 ;\n j < 11 ;\n j ++ ) {\n signs [ i * 11 + j ] = ( t & 1 ) * 2 - 1 << 14 ;\n t >>= 1 ;\n }\n }\n idx = 0 ;\n for ( i = 0 ;\n i < SUBFRAMES ;\n i ++ ) {\n for ( j = 0 ;\n j < SUBFRAME_LEN / 2 ;\n j ++ ) tmp [ j ] = j ;\n t = SUBFRAME_LEN / 2 ;\n for ( j = 0 ;\n j < pulses [ i ] ;\n j ++ , idx ++ ) {\n int idx2 = cng_rand ( & p -> cng_random_seed , t ) ;\n pos [ idx ] = tmp [ idx2 ] * 2 + off [ i ] ;\n tmp [ idx2 ] = tmp [ -- t ] ;\n }\n }\n vector_ptr = p -> audio + LPC_ORDER ;\n memcpy ( vector_ptr , p -> prev_excitation , PITCH_MAX * sizeof ( * p -> excitation ) ) ;\n for ( i = 0 ;\n i < SUBFRAMES ;\n i += 2 ) {\n gen_acb_excitation ( vector_ptr , vector_ptr , p -> pitch_lag [ i >> 1 ] , & p -> subframe [ i ] , p -> cur_rate ) ;\n gen_acb_excitation ( vector_ptr + SUBFRAME_LEN , vector_ptr + SUBFRAME_LEN , p -> pitch_lag [ i >> 1 ] , & p -> subframe [ i + 1 ] , p -> cur_rate ) ;\n t = 0 ;\n for ( j = 0 ;\n j < SUBFRAME_LEN * 2 ;\n j ++ ) t |= FFABS ( vector_ptr [ j ] ) ;\n t = FFMIN ( t , 0x7FFF ) ;\n if ( ! t ) {\n shift = 0 ;\n }\n else {\n shift = - 10 + av_log2 ( t ) ;\n if ( shift < - 2 ) shift = - 2 ;\n }\n sum = 0 ;\n if ( shift < 0 ) {\n for ( j = 0 ;\n j < SUBFRAME_LEN * 2 ;\n j ++ ) {\n t = vector_ptr [ j ] << - shift ;\n sum += t * t ;\n tmp [ j ] = t ;\n }\n }\n else {\n for ( j = 0 ;\n j < SUBFRAME_LEN * 2 ;\n j ++ ) {\n t = vector_ptr [ j ] >> shift ;\n sum += t * t ;\n tmp [ j ] = t ;\n }\n }\n b0 = 0 ;\n for ( j = 0 ;\n j < 11 ;\n j ++ ) b0 += tmp [ pos [ ( i / 2 ) * 11 + j ] ] * signs [ ( i / 2 ) * 11 + j ] ;\n b0 = b0 * 2 * 2979LL + ( 1 << 29 ) >> 30 ;\n c = p -> cur_gain * ( p -> cur_gain * SUBFRAME_LEN >> 5 ) ;\n if ( shift * 2 + 3 >= 0 ) c >>= shift * 2 + 3 ;\n else c <<= - ( shift * 2 + 3 ) ;\n c = ( av_clipl_int32 ( sum << 1 ) - c ) * 2979LL >> 15 ;\n delta = b0 * b0 * 2 - c ;\n if ( delta <= 0 ) {\n x = - b0 ;\n }\n else {\n delta = square_root ( delta ) ;\n x = delta - b0 ;\n t = delta + b0 ;\n if ( FFABS ( t ) < FFABS ( x ) ) x = - t ;\n }\n shift ++ ;\n if ( shift < 0 ) x >>= - shift ;\n else x <<= shift ;\n x = av_clip ( x , - 10000 , 10000 ) ;\n for ( j = 0 ;\n j < 11 ;\n j ++ ) {\n idx = ( i / 2 ) * 11 + j ;\n vector_ptr [ pos [ idx ] ] = av_clip_int16 ( vector_ptr [ pos [ idx ] ] + ( x * signs [ idx ] >> 15 ) ) ;\n }\n memcpy ( vector_ptr + PITCH_MAX , vector_ptr , sizeof ( * vector_ptr ) * SUBFRAME_LEN * 2 ) ;\n vector_ptr += SUBFRAME_LEN * 2 ;\n }\n memcpy ( p -> prev_excitation , p -> audio + LPC_ORDER + FRAME_LEN , PITCH_MAX * sizeof ( * p -> excitation ) ) ;\n }"}
{"idx": 14302, "target": 0, "func": "unsigned int vp9_variance ## W ## x ## H ## _c ( const uint8_t * a , int a_stride , const uint8_t * b , int b_stride , unsigned int * sse ) {\n int sum ;\n variance ( a , a_stride , b , b_stride , W , H , sse , & sum ) ;\n return * sse - ( ( ( int64_t ) sum * sum ) / ( W * H ) ) ;\n \\ }\n # define SUBPIX_VAR ( W , H ) unsigned int vp9_sub_pixel_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp2 , W , dst , dst_stride , sse ) ;\n \\ }\n # define SUBPIX_AVG_VAR ( W , H ) unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 ) VAR ( 8 , 4 ) SUBPIX_VAR ( 8 , 4 ) SUBPIX_AVG_VAR ( 8 , 4 ) VAR ( 8 , 8 ) SUBPIX_VAR ( 8 , 8 ) SUBPIX_AVG_VAR ( 8 , 8 ) VAR ( 8 , 16 ) SUBPIX_VAR ( 8 , 16 ) SUBPIX_AVG_VAR ( 8 , 16 ) VAR ( 16 , 8 ) SUBPIX_VAR ( 16 , 8 ) SUBPIX_AVG_VAR ( 16 , 8 ) VAR ( 16 , 16 ) SUBPIX_VAR ( 16 , 16 ) SUBPIX_AVG_VAR ( 16 , 16 ) VAR ( 16 , 32 ) SUBPIX_VAR ( 16 , 32 ) SUBPIX_AVG_VAR ( 16 , 32 ) VAR ( 32 , 16 ) SUBPIX_VAR ( 32 , 16 ) SUBPIX_AVG_VAR ( 32 , 16 ) VAR ( 32 , 32 ) SUBPIX_VAR ( 32 , 32 ) SUBPIX_AVG_VAR ( 32 , 32 ) VAR ( 32 , 64 ) SUBPIX_VAR ( 32 , 64 ) SUBPIX_AVG_VAR ( 32 , 64 ) VAR ( 64 , 32 ) SUBPIX_VAR ( 64 , 32 ) SUBPIX_AVG_VAR ( 64 , 32 ) VAR ( 64 , 64 )"}
{"idx": 14303, "target": 0, "func": "static void qemu_tcg_wait_io_event ( void ) {\n CPUArchState * env ;\n while ( all_cpu_threads_idle ( ) ) {\n qemu_clock_warp ( vm_clock ) ;\n qemu_cond_wait ( tcg_halt_cond , & qemu_global_mutex ) ;\n }\n while ( iothread_requesting_mutex ) {\n qemu_cond_wait ( & qemu_io_proceeded_cond , & qemu_global_mutex ) ;\n }\n for ( env = first_cpu ;\n env != NULL ;\n env = env -> next_cpu ) {\n qemu_wait_io_event_common ( ENV_GET_CPU ( env ) ) ;\n }\n }"}
{"idx": 14304, "target": 0, "func": "static struct branch * lookup_branch ( const char * name ) {\n unsigned int hc = hc_str ( name , strlen ( name ) ) % branch_table_sz ;\n struct branch * b ;\n for ( b = branch_table [ hc ] ;\n b ;\n b = b -> table_next_branch ) if ( ! strcmp ( name , b -> name ) ) return b ;\n return NULL ;\n }"}
{"idx": 14305, "target": 0, "func": "void pcnet_common_init ( DeviceState * dev , PCNetState * s , NetClientInfo * info ) {\n int i ;\n uint16_t checksum ;\n s -> poll_timer = timer_new_ns ( QEMU_CLOCK_VIRTUAL , pcnet_poll_timer , s ) ;\n qemu_macaddr_default_if_unset ( & s -> conf . macaddr ) ;\n s -> nic = qemu_new_nic ( info , & s -> conf , object_get_typename ( OBJECT ( dev ) ) , dev -> id , s ) ;\n qemu_format_nic_info_str ( qemu_get_queue ( s -> nic ) , s -> conf . macaddr . a ) ;\n memcpy ( s -> prom , s -> conf . macaddr . a , 6 ) ;\n s -> prom [ 6 ] = s -> prom [ 7 ] = 0x00 ;\n s -> prom [ 8 ] = 0x00 ;\n s -> prom [ 9 ] = 0x11 ;\n s -> prom [ 10 ] = s -> prom [ 11 ] = 0x00 ;\n s -> prom [ 12 ] = s -> prom [ 13 ] = 0x00 ;\n s -> prom [ 14 ] = s -> prom [ 15 ] = 0x57 ;\n for ( i = 0 , checksum = 0 ;\n i < 16 ;\n i ++ ) {\n checksum += s -> prom [ i ] ;\n }\n * ( uint16_t * ) & s -> prom [ 12 ] = cpu_to_le16 ( checksum ) ;\n s -> lnkst = 0x40 ;\n }"}
{"idx": 14306, "target": 0, "func": "static inline PixelTrait GetPixelCyanTraits ( const Image * restrict image ) {\n return ( image -> channel_map [ CyanPixelChannel ] . traits ) ;\n }"}
{"idx": 14307, "target": 1, "func": "void rtp_free_hash_dyn_payload ( GHashTable * rtp_dyn_payload ) {\n if ( rtp_dyn_payload == NULL ) return ;\n g_hash_table_destroy ( rtp_dyn_payload ) ;\n rtp_dyn_payload = NULL ;\n }"}
{"idx": 14308, "target": 0, "func": "static void U_CALLCONV _LMBCSOpen ## n ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err ) \\ {\n _LMBCSOpenWorker ( _this , pArgs , err , n ) ;\n }\n static void _LMBCSOpenWorker ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err , ulmbcs_byte_t OptGroup ) {\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) uprv_malloc ( sizeof ( UConverterDataLMBCS ) ) ;\n _this -> extraInfo = extraInfo ;\n if ( extraInfo != NULL ) {\n UConverterNamePieces stackPieces ;\n UConverterLoadArgs stackArgs = UCNV_LOAD_ARGS_INITIALIZER ;\n ulmbcs_byte_t i ;\n uprv_memset ( extraInfo , 0 , sizeof ( UConverterDataLMBCS ) ) ;\n stackArgs . onlyTestIsLoadable = pArgs -> onlyTestIsLoadable ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST && U_SUCCESS ( * err ) ;\n i ++ ) {\n if ( OptGroupByteToCPName [ i ] != NULL ) {\n extraInfo -> OptGrpConverter [ i ] = ucnv_loadSharedData ( OptGroupByteToCPName [ i ] , & stackPieces , & stackArgs , err ) ;\n }\n }\n if ( U_FAILURE ( * err ) || pArgs -> onlyTestIsLoadable ) {\n _LMBCSClose ( _this ) ;\n return ;\n }\n extraInfo -> OptGroup = OptGroup ;\n extraInfo -> localeConverterIndex = FindLMBCSLocale ( pArgs -> locale ) ;\n }\n else {\n * err = U_MEMORY_ALLOCATION_ERROR ;\n }\n }\n U_CDECL_BEGIN static void U_CALLCONV _LMBCSClose ( UConverter * _this ) {\n if ( _this -> extraInfo != NULL ) {\n ulmbcs_byte_t Ix ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) _this -> extraInfo ;\n for ( Ix = 0 ;\n Ix <= ULMBCS_GRP_LAST ;\n Ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ Ix ] != NULL ) ucnv_unloadSharedDataIfReady ( extraInfo -> OptGrpConverter [ Ix ] ) ;\n }\n if ( ! _this -> isExtraLocal ) {\n uprv_free ( _this -> extraInfo ) ;\n _this -> extraInfo = NULL ;\n }\n }\n }\n typedef struct LMBCSClone {\n UConverter cnv ;\n UConverterDataLMBCS lmbcs ;\n }\n LMBCSClone ;\n static UConverter * U_CALLCONV _LMBCSSafeClone ( const UConverter * cnv , void * stackBuffer , int32_t * pBufferSize , UErrorCode * status ) {\n ( void ) status ;\n LMBCSClone * newLMBCS ;\n UConverterDataLMBCS * extraInfo ;\n int32_t i ;\n if ( * pBufferSize <= 0 ) {\n * pBufferSize = ( int32_t ) sizeof ( LMBCSClone ) ;\n return NULL ;\n }\n extraInfo = ( UConverterDataLMBCS * ) cnv -> extraInfo ;\n newLMBCS = ( LMBCSClone * ) stackBuffer ;\n uprv_memcpy ( & newLMBCS -> lmbcs , extraInfo , sizeof ( UConverterDataLMBCS ) ) ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST ;\n ++ i ) {\n if ( extraInfo -> OptGrpConverter [ i ] != NULL ) {\n ucnv_incrementRefCount ( extraInfo -> OptGrpConverter [ i ] ) ;\n }\n }\n newLMBCS -> cnv . extraInfo = & newLMBCS -> lmbcs ;\n newLMBCS -> cnv . isExtraLocal = TRUE ;\n return & newLMBCS -> cnv ;\n }\n static size_t LMBCSConversionWorker ( UConverterDataLMBCS * extraInfo , ulmbcs_byte_t group , ulmbcs_byte_t * pStartLMBCS , UChar * pUniChar , ulmbcs_byte_t * lastConverterIndex , UBool * groups_tried ) {\n ulmbcs_byte_t * pLMBCS = pStartLMBCS ;\n UConverterSharedData * xcnv = extraInfo -> OptGrpConverter [ group ] ;\n int bytesConverted ;\n uint32_t value ;\n ulmbcs_byte_t firstByte ;\n U_ASSERT ( xcnv ) ;\n U_ASSERT ( group < ULMBCS_GRP_UNICODE ) ;\n bytesConverted = ucnv_MBCSFromUChar32 ( xcnv , * pUniChar , & value , FALSE ) ;\n if ( bytesConverted > 0 ) {\n firstByte = ( ulmbcs_byte_t ) ( value >> ( ( bytesConverted - 1 ) * 8 ) ) ;\n }\n else {\n groups_tried [ group ] = TRUE ;\n return 0 ;\n }\n * lastConverterIndex = group ;\n U_ASSERT ( ( firstByte <= ULMBCS_C0END ) || ( firstByte >= ULMBCS_C1START ) || ( group == ULMBCS_GRP_EXCEPT ) ) ;\n if ( group != ULMBCS_GRP_EXCEPT && extraInfo -> OptGroup != group ) {\n * pLMBCS ++ = group ;\n if ( bytesConverted == 1 && group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n * pLMBCS ++ = group ;\n }\n }\n if ( bytesConverted == 1 && firstByte < 0x20 ) return 0 ;\n switch ( bytesConverted ) {\n case 4 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 24 ) ;\n U_FALLTHROUGH ;\n case 3 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 16 ) ;\n U_FALLTHROUGH ;\n case 2 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 8 ) ;\n U_FALLTHROUGH ;\n case 1 : * pLMBCS ++ = ( ulmbcs_byte_t ) value ;\n U_FALLTHROUGH ;\n default : break ;\n }\n return ( pLMBCS - pStartLMBCS ) ;\n }\n static size_t LMBCSConvertUni ( ulmbcs_byte_t * pLMBCS , UChar uniChar ) {\n uint8_t LowCh = ( uint8_t ) ( uniChar & 0x00FF ) ;\n uint8_t HighCh = ( uint8_t ) ( uniChar >> 8 ) ;\n * pLMBCS ++ = ULMBCS_GRP_UNICODE ;\n if ( LowCh == 0 ) {\n * pLMBCS ++ = ULMBCS_UNICOMPATZERO ;\n * pLMBCS ++ = HighCh ;\n }\n else {\n * pLMBCS ++ = HighCh ;\n * pLMBCS ++ = LowCh ;\n }\n return ULMBCS_UNICODE_SIZE ;\n }\n static void U_CALLCONV _LMBCSFromUnicode ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n ulmbcs_byte_t lastConverterIndex = 0 ;\n UChar uniChar ;\n ulmbcs_byte_t LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n ulmbcs_byte_t * pLMBCS ;\n int32_t bytes_written ;\n UBool groups_tried [ ULMBCS_GRP_LAST + 1 ] ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n int sourceIndex = 0 ;\n ulmbcs_byte_t OldConverterIndex = 0 ;\n while ( args -> source < args -> sourceLimit && ! U_FAILURE ( * err ) ) {\n OldConverterIndex = extraInfo -> localeConverterIndex ;\n if ( args -> target >= args -> targetLimit ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n uniChar = * ( args -> source ) ;\n bytes_written = 0 ;\n pLMBCS = LMBCS ;\n if ( ( uniChar >= 0x80 ) && ( uniChar <= 0xff ) && ( uniChar != 0xB1 ) && ( uniChar != 0xD7 ) && ( uniChar != 0xF7 ) && ( uniChar != 0xB0 ) && ( uniChar != 0xB4 ) && ( uniChar != 0xB6 ) && ( uniChar != 0xA7 ) && ( uniChar != 0xA8 ) ) {\n extraInfo -> localeConverterIndex = ULMBCS_GRP_L1 ;\n }\n if ( ( ( uniChar > ULMBCS_C0END ) && ( uniChar < ULMBCS_C1START ) ) || uniChar == 0 || uniChar == ULMBCS_HT || uniChar == ULMBCS_CR || uniChar == ULMBCS_LF || uniChar == ULMBCS_123SYSTEMRANGE ) {\n * pLMBCS ++ = ( ulmbcs_byte_t ) uniChar ;\n bytes_written = 1 ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t group = FindLMBCSUniRange ( uniChar ) ;\n if ( group == ULMBCS_GRP_UNICODE ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group == ULMBCS_GRP_CTRL ) {\n if ( uniChar <= ULMBCS_C0END ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( ULMBCS_CTRLOFFSET + uniChar ) ;\n }\n else if ( uniChar >= ULMBCS_C1START && uniChar <= ULMBCS_C1START + ULMBCS_CTRLOFFSET ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( uniChar & 0x00FF ) ;\n }\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group < ULMBCS_GRP_UNICODE ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , group , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n uprv_memset ( groups_tried , 0 , sizeof ( groups_tried ) ) ;\n if ( ( extraInfo -> OptGroup != 1 ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> OptGroup ) ) ) {\n if ( extraInfo -> localeConverterIndex < ULMBCS_DOUBLEOPTGROUP_START ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_L1 , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n else {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && ( extraInfo -> localeConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> localeConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written && ( lastConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , lastConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , lastConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t grp_start ;\n ulmbcs_byte_t grp_end ;\n ulmbcs_byte_t grp_ix ;\n grp_start = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_DOUBLEOPTGROUP_START : ULMBCS_GRP_L1 ) ;\n grp_end = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_GRP_LAST : ULMBCS_GRP_TH ) ;\n if ( group == ULMBCS_AMBIGUOUS_ALL ) {\n grp_start = ULMBCS_GRP_L1 ;\n grp_end = ULMBCS_GRP_LAST ;\n }\n for ( grp_ix = grp_start ;\n grp_ix <= grp_end && ! bytes_written ;\n grp_ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ grp_ix ] && ! groups_tried [ grp_ix ] ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , grp_ix , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && grp_start == ULMBCS_GRP_L1 ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n }\n }\n args -> source ++ ;\n pLMBCS = LMBCS ;\n while ( args -> target < args -> targetLimit && bytes_written -- ) {\n * ( args -> target ) ++ = * pLMBCS ++ ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = sourceIndex ;\n }\n }\n sourceIndex ++ ;\n if ( bytes_written > 0 ) {\n uint8_t * pErrorBuffer = args -> converter -> charErrorBuffer ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n args -> converter -> charErrorBufferLength = ( int8_t ) bytes_written ;\n while ( bytes_written -- ) {\n * pErrorBuffer ++ = * pLMBCS ++ ;\n }\n }\n extraInfo -> localeConverterIndex = OldConverterIndex ;\n }\n }\n static UChar GetUniFromLMBCSUni ( char const * * ppLMBCSin ) {\n uint8_t HighCh = * ( * ppLMBCSin ) ++ ;\n uint8_t LowCh = * ( * ppLMBCSin ) ++ ;\n if ( HighCh == ULMBCS_UNICOMPATZERO ) {\n HighCh = LowCh ;\n LowCh = 0 ;\n }\n return ( UChar ) ( ( HighCh << 8 ) | LowCh ) ;\n }\n # define CHECK_SOURCE_LIMIT ( index ) if ( args -> source + index > args -> sourceLimit ) {\n * err = U_TRUNCATED_CHAR_FOUND ;\n args -> source = args -> sourceLimit ;\n return 0xffff ;\n }\n static UChar32 U_CALLCONV _LMBCSGetNextUCharWorker ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n UChar32 uniChar = 0 ;\n ulmbcs_byte_t CurByte ;\n if ( args -> source >= args -> sourceLimit ) {\n * err = U_ILLEGAL_ARGUMENT_ERROR ;\n return 0xffff ;\n }\n CurByte = * ( ( ulmbcs_byte_t * ) ( args -> source ++ ) ) ;\n if ( ( ( CurByte > ULMBCS_C0END ) && ( CurByte < ULMBCS_C1START ) ) || ( CurByte == 0 ) || CurByte == ULMBCS_HT || CurByte == ULMBCS_CR || CurByte == ULMBCS_LF || CurByte == ULMBCS_123SYSTEMRANGE ) {\n uniChar = CurByte ;\n }\n else {\n UConverterDataLMBCS * extraInfo ;\n ulmbcs_byte_t group ;\n UConverterSharedData * cnv ;\n if ( CurByte == ULMBCS_GRP_CTRL ) {\n ulmbcs_byte_t C0C1byte ;\n CHECK_SOURCE_LIMIT ( 1 ) ;\n C0C1byte = * ( args -> source ) ++ ;\n uniChar = ( C0C1byte < ULMBCS_C1START ) ? C0C1byte - ULMBCS_CTRLOFFSET : C0C1byte ;\n }\n else if ( CurByte == ULMBCS_GRP_UNICODE ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n return GetUniFromLMBCSUni ( & ( args -> source ) ) ;\n }\n else if ( CurByte <= ULMBCS_CTRLOFFSET ) {\n group = CurByte ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n if ( group > ULMBCS_GRP_LAST || ( cnv = extraInfo -> OptGrpConverter [ group ] ) == NULL ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n if ( * args -> source == group ) {\n ++ args -> source ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 1 , FALSE ) ;\n ++ args -> source ;\n }\n else {\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 2 , FALSE ) ;\n args -> source += 2 ;\n }\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n CurByte = * ( args -> source ) ++ ;\n if ( CurByte >= ULMBCS_C1START ) {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n else {\n char bytes [ 2 ] ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n cnv = extraInfo -> OptGrpConverter [ ULMBCS_GRP_EXCEPT ] ;\n bytes [ 0 ] = group ;\n bytes [ 1 ] = CurByte ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , bytes , 2 , FALSE ) ;\n }\n }\n }\n else if ( CurByte >= ULMBCS_C1START ) {\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n group = extraInfo -> OptGroup ;\n cnv = extraInfo -> OptGrpConverter [ group ] ;\n if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n if ( ! ucnv_MBCSIsLeadByte ( cnv , CurByte ) ) {\n CHECK_SOURCE_LIMIT ( 0 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 1 , FALSE ) ;\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 2 , FALSE ) ;\n ++ args -> source ;\n }\n }\n else {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n }\n }\n return uniChar ;\n }\n static void U_CALLCONV _LMBCSToUnicodeWithOffsets ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n char LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n UChar uniChar ;\n const char * saveSource ;\n const char * pStartLMBCS = args -> source ;\n const char * errSource = NULL ;\n int8_t savebytes = 0 ;\n while ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit > args -> target ) {\n saveSource = args -> source ;\n if ( args -> converter -> toULength ) {\n const char * saveSourceLimit ;\n size_t size_old = args -> converter -> toULength ;\n size_t size_new_maybe_1 = sizeof ( LMBCS ) - size_old ;\n size_t size_new_maybe_2 = args -> sourceLimit - args -> source ;\n size_t size_new = ( size_new_maybe_1 < size_new_maybe_2 ) ? size_new_maybe_1 : size_new_maybe_2 ;\n uprv_memcpy ( LMBCS , args -> converter -> toUBytes , size_old ) ;\n uprv_memcpy ( LMBCS + size_old , args -> source , size_new ) ;\n saveSourceLimit = args -> sourceLimit ;\n args -> source = errSource = LMBCS ;\n args -> sourceLimit = LMBCS + size_old + size_new ;\n savebytes = ( int8_t ) ( size_old + size_new ) ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n args -> source = saveSource + ( ( args -> source - LMBCS ) - size_old ) ;\n args -> sourceLimit = saveSourceLimit ;\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n args -> converter -> toULength = savebytes ;\n uprv_memcpy ( args -> converter -> toUBytes , LMBCS , savebytes ) ;\n args -> source = args -> sourceLimit ;\n * err = U_ZERO_ERROR ;\n return ;\n }\n else {\n args -> converter -> toULength = 0 ;\n }\n }\n else {\n errSource = saveSource ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n savebytes = ( int8_t ) ( args -> source - saveSource ) ;\n }\n if ( U_SUCCESS ( * err ) ) {\n if ( uniChar < 0xfffe ) {\n * ( args -> target ) ++ = uniChar ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = ( int32_t ) ( saveSource - pStartLMBCS ) ;\n }\n }\n else if ( uniChar == 0xfffe ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n }\n if ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit <= args -> target ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n else if ( U_FAILURE ( * err ) ) {\n args -> converter -> toULength = savebytes ;\n if ( savebytes > 0 ) {\n uprv_memcpy ( args -> converter -> toUBytes , errSource , savebytes ) ;\n }\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n * err = U_ZERO_ERROR ;\n }\n }\n }\n DEFINE_LMBCS_OPEN ( 1 ) DEFINE_LMBCS_OPEN ( 2 ) DEFINE_LMBCS_OPEN ( 3 ) DEFINE_LMBCS_OPEN ( 4 ) DEFINE_LMBCS_OPEN ( 5 ) DEFINE_LMBCS_OPEN ( 6 ) DEFINE_LMBCS_OPEN ( 8 ) DEFINE_LMBCS_OPEN ( 11 ) DEFINE_LMBCS_OPEN ( 16 ) DEFINE_LMBCS_OPEN ( 17 ) DEFINE_LMBCS_OPEN ( 18 ) DEFINE_LMBCS_OPEN ( 19 )"}
{"idx": 14309, "target": 0, "func": "static bool use_http_1_1plus ( const struct Curl_easy * data , const struct connectdata * conn ) {\n if ( ( data -> state . httpversion == 10 ) || ( conn -> httpversion == 10 ) ) return FALSE ;\n if ( ( data -> set . httpversion == CURL_HTTP_VERSION_1_0 ) && ( conn -> httpversion <= 10 ) ) return FALSE ;\n return ( ( data -> set . httpversion == CURL_HTTP_VERSION_NONE ) || ( data -> set . httpversion >= CURL_HTTP_VERSION_1_1 ) ) ;\n }"}
{"idx": 14310, "target": 0, "func": "static void wm_writecb ( struct bufferevent * bev , void * arg ) {\n if ( EVBUFFER_LENGTH ( bev -> output ) == 0 ) test_ok ++ ;\n }"}
{"idx": 14311, "target": 0, "func": "static void check_locks ( void ) {\n struct remote_lock * lock = repo -> locks ;\n time_t current_time = time ( NULL ) ;\n int time_remaining ;\n while ( lock ) {\n time_remaining = lock -> start_time + lock -> timeout - current_time ;\n if ( ! lock -> refreshing && time_remaining < LOCK_REFRESH ) {\n if ( ! refresh_lock ( lock ) ) {\n fprintf ( stderr , \"Unable to refresh lock for %s\\n\" , lock -> url ) ;\n aborted = 1 ;\n return ;\n }\n }\n lock = lock -> next ;\n }\n }"}
{"idx": 14312, "target": 1, "func": "static void xhci_kick_ep ( XHCIState * xhci , unsigned int slotid , unsigned int epid , unsigned int streamid ) {\n XHCIEPContext * epctx ;\n assert ( slotid >= 1 && slotid <= xhci -> numslots ) ;\n assert ( epid >= 1 && epid <= 31 ) ;\n if ( ! xhci -> slots [ slotid - 1 ] . enabled ) {\n DPRINTF ( \"xhci: xhci_kick_ep for disabled slot %d\\n\" , slotid ) ;\n return ;\n }\n epctx = xhci -> slots [ slotid - 1 ] . eps [ epid - 1 ] ;\n if ( ! epctx ) {\n DPRINTF ( \"xhci: xhci_kick_ep for disabled endpoint %d,%d\\n\" , epid , slotid ) ;\n return ;\n }\n xhci_kick_epctx ( epctx , streamid ) ;\n }"}
{"idx": 14313, "target": 0, "func": "static struct cvec * allcases ( struct vars * v , chr pc ) {\n struct cvec * cv ;\n chr c = ( chr ) pc ;\n chr lc , uc ;\n lc = pg_wc_tolower ( ( chr ) c ) ;\n uc = pg_wc_toupper ( ( chr ) c ) ;\n cv = getcvec ( v , 2 , 0 ) ;\n addchr ( cv , lc ) ;\n if ( lc != uc ) addchr ( cv , uc ) ;\n return cv ;\n }"}
{"idx": 14314, "target": 0, "func": "static void empty_trash_for_unmount_done ( gboolean success , gpointer user_data ) {\n UnmountData * data = user_data ;\n do_unmount ( data ) ;\n }"}
{"idx": 14315, "target": 0, "func": "static int pubkey_get_nskey ( int algorithm ) {\n gcry_module_t pubkey ;\n int nskey = 0 ;\n REGISTER_DEFAULT_PUBKEYS ;\n ath_mutex_lock ( & pubkeys_registered_lock ) ;\n pubkey = _gcry_module_lookup_id ( pubkeys_registered , algorithm ) ;\n if ( pubkey ) {\n nskey = strlen ( ( ( gcry_pk_spec_t * ) pubkey -> spec ) -> elements_skey ) ;\n _gcry_module_release ( pubkey ) ;\n }\n ath_mutex_unlock ( & pubkeys_registered_lock ) ;\n return nskey ;\n }"}
{"idx": 14316, "target": 0, "func": "static int frame_is_reference ( const VP9_COMP * cpi ) {\n const VP9_COMMON * cm = & cpi -> common ;\n return cm -> frame_type == KEY_FRAME || cpi -> refresh_last_frame || cpi -> refresh_golden_frame || cpi -> refresh_alt_ref_frame || cm -> refresh_frame_context || cm -> lf . mode_ref_delta_update || cm -> seg . update_map || cm -> seg . update_data ;\n }"}
{"idx": 14317, "target": 1, "func": "X509_REQ * X509_to_X509_REQ ( X509 * x , EVP_PKEY * pkey , const EVP_MD * md ) {\n X509_REQ * ret ;\n X509_REQ_INFO * ri ;\n int i ;\n EVP_PKEY * pktmp ;\n ret = X509_REQ_new ( ) ;\n if ( ret == NULL ) {\n X509err ( X509_F_X509_TO_X509_REQ , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n ri = ret -> req_info ;\n ri -> version -> length = 1 ;\n ri -> version -> data = ( unsigned char * ) OPENSSL_malloc ( 1 ) ;\n if ( ri -> version -> data == NULL ) goto err ;\n ri -> version -> data [ 0 ] = 0 ;\n if ( ! X509_REQ_set_subject_name ( ret , X509_get_subject_name ( x ) ) ) goto err ;\n pktmp = X509_get_pubkey ( x ) ;\n i = X509_REQ_set_pubkey ( ret , pktmp ) ;\n EVP_PKEY_free ( pktmp ) ;\n if ( ! i ) goto err ;\n if ( pkey != NULL ) {\n if ( ! X509_REQ_sign ( ret , pkey , md ) ) goto err ;\n }\n return ( ret ) ;\n err : X509_REQ_free ( ret ) ;\n return ( NULL ) ;\n }"}
{"idx": 14318, "target": 0, "func": "static int dissect_h245_EndSessionCommand ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_EndSessionCommand , EndSessionCommand_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 14319, "target": 0, "func": "static gboolean wmem_rtp_dyn_payload_destroy_cb ( wmem_allocator_t * allocator _U_ , wmem_cb_event_t event _U_ , void * user_data _U_ ) {\n g_assert ( rtp_dyn_payloads ) ;\n DPRINT ( ( \"destroying %u remaining rtp_dyn_payload_t's\" , g_hash_table_size ( rtp_dyn_payloads ) ) ) ;\n g_hash_table_foreach_steal ( rtp_dyn_payloads , rtp_dyn_payloads_table_steal_func , NULL ) ;\n g_hash_table_destroy ( rtp_dyn_payloads ) ;\n rtp_dyn_payloads = NULL ;\n return FALSE ;\n }"}
{"idx": 14320, "target": 0, "func": "static VALUE cState_indent_set ( VALUE self , VALUE indent ) {\n unsigned long len ;\n GET_STATE ( self ) ;\n Check_Type ( indent , T_STRING ) ;\n len = RSTRING_LEN ( indent ) ;\n if ( len == 0 ) {\n if ( state -> indent ) {\n ruby_xfree ( state -> indent ) ;\n state -> indent = NULL ;\n state -> indent_len = 0 ;\n }\n }\n else {\n if ( state -> indent ) ruby_xfree ( state -> indent ) ;\n state -> indent = fstrndup ( RSTRING_PTR ( indent ) , len ) ;\n state -> indent_len = len ;\n }\n return Qnil ;\n }"}
{"idx": 14321, "target": 0, "func": "static const char * grouped_avp ( diam_ctx_t * c , diam_avp_t * a , tvbuff_t * tvb , diam_sub_dis_t * diam_sub_dis_inf ) {\n int offset = 0 ;\n int len = tvb_reported_length ( tvb ) ;\n proto_item * pi = proto_tree_add_item ( c -> tree , a -> hf_value , tvb , 0 , - 1 , ENC_BIG_ENDIAN ) ;\n proto_tree * pt = c -> tree ;\n c -> tree = proto_item_add_subtree ( pi , a -> ett ) ;\n diam_sub_dis_inf -> dis_gouped = TRUE ;\n while ( offset < len ) {\n offset += dissect_diameter_avp ( c , tvb , offset , diam_sub_dis_inf ) ;\n }\n diam_sub_dis_inf -> vendor_id = 0 ;\n diam_sub_dis_inf -> dis_gouped = FALSE ;\n diam_sub_dis_inf -> avp_str = NULL ;\n c -> tree = pt ;\n return NULL ;\n }"}
{"idx": 14322, "target": 1, "func": "static int init_dumping ( char * database , int init_func ( char * ) ) {\n if ( mysql_select_db ( mysql , database ) ) {\n DB_error ( mysql , \"when selecting the database\" ) ;\n return 1 ;\n }\n if ( ! path && ! opt_xml ) {\n if ( opt_databases || opt_alldbs ) {\n char quoted_database_buf [ NAME_LEN * 2 + 3 ] ;\n char * qdatabase = quote_name ( database , quoted_database_buf , opt_quoted ) ;\n print_comment ( md_result_file , 0 , \"\\n--\\n-- Current Database: %s\\n--\\n\" , qdatabase ) ;\n init_func ( qdatabase ) ;\n fprintf ( md_result_file , \"\\nUSE %s;\n\\n\" , qdatabase ) ;\n check_io ( md_result_file ) ;\n }\n }\n return 0 ;\n }"}
{"idx": 14323, "target": 0, "func": "proto_item * proto_item_get_parent ( const proto_item * ti ) {\n if ( ! ti ) return NULL ;\n return ti -> parent ;\n }"}
{"idx": 14324, "target": 0, "func": "static inline void e1000e_read_rx_descr ( E1000ECore * core , uint8_t * desc , hwaddr ( * buff_addr ) [ MAX_PS_BUFFERS ] ) {\n if ( e1000e_rx_use_legacy_descriptor ( core ) ) {\n e1000e_read_lgcy_rx_descr ( core , desc , & ( * buff_addr ) [ 0 ] ) ;\n ( * buff_addr ) [ 1 ] = ( * buff_addr ) [ 2 ] = ( * buff_addr ) [ 3 ] = 0 ;\n }\n else {\n if ( core -> mac [ RCTL ] & E1000_RCTL_DTYP_PS ) {\n e1000e_read_ps_rx_descr ( core , desc , buff_addr ) ;\n }\n else {\n e1000e_read_ext_rx_descr ( core , desc , & ( * buff_addr ) [ 0 ] ) ;\n ( * buff_addr ) [ 1 ] = ( * buff_addr ) [ 2 ] = ( * buff_addr ) [ 3 ] = 0 ;\n }\n }\n }"}
{"idx": 14325, "target": 0, "func": "static void dissect_zcl_groups_view_group ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_groups_group_id , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n }"}
{"idx": 14326, "target": 0, "func": "void vp9_xform_quant_dc ( MACROBLOCK * x , int plane , int block , BLOCK_SIZE plane_bsize , TX_SIZE tx_size ) {\n MACROBLOCKD * const xd = & x -> e_mbd ;\n const struct macroblock_plane * const p = & x -> plane [ plane ] ;\n const struct macroblockd_plane * const pd = & xd -> plane [ plane ] ;\n tran_low_t * const coeff = BLOCK_OFFSET ( p -> coeff , block ) ;\n tran_low_t * const qcoeff = BLOCK_OFFSET ( p -> qcoeff , block ) ;\n tran_low_t * const dqcoeff = BLOCK_OFFSET ( pd -> dqcoeff , block ) ;\n uint16_t * const eob = & p -> eobs [ block ] ;\n const int diff_stride = 4 * num_4x4_blocks_wide_lookup [ plane_bsize ] ;\n int i , j ;\n const int16_t * src_diff ;\n txfrm_block_to_raster_xy ( plane_bsize , tx_size , block , & i , & j ) ;\n src_diff = & p -> src_diff [ 4 * ( j * diff_stride + i ) ] ;\n switch ( tx_size ) {\n case TX_32X32 : vp9_fdct32x32_1 ( src_diff , coeff , diff_stride ) ;\n vp9_quantize_dc_32x32 ( coeff , x -> skip_block , p -> round , p -> quant_fp [ 0 ] , qcoeff , dqcoeff , pd -> dequant [ 0 ] , eob ) ;\n break ;\n case TX_16X16 : vp9_fdct16x16_1 ( src_diff , coeff , diff_stride ) ;\n vp9_quantize_dc ( coeff , x -> skip_block , p -> round , p -> quant_fp [ 0 ] , qcoeff , dqcoeff , pd -> dequant [ 0 ] , eob ) ;\n break ;\n case TX_8X8 : vp9_fdct8x8_1 ( src_diff , coeff , diff_stride ) ;\n vp9_quantize_dc ( coeff , x -> skip_block , p -> round , p -> quant_fp [ 0 ] , qcoeff , dqcoeff , pd -> dequant [ 0 ] , eob ) ;\n break ;\n case TX_4X4 : x -> fwd_txm4x4 ( src_diff , coeff , diff_stride ) ;\n vp9_quantize_dc ( coeff , x -> skip_block , p -> round , p -> quant_fp [ 0 ] , qcoeff , dqcoeff , pd -> dequant [ 0 ] , eob ) ;\n break ;\n default : assert ( 0 ) ;\n break ;\n }\n }"}
{"idx": 14327, "target": 1, "func": "static int parse_CRestrictionArray ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree , const char * fmt , ... ) {\n guint8 present , count ;\n proto_tree * tree ;\n proto_item * item ;\n const char * txt ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CRestrictionArray , & item , txt ) ;\n pad_tree = tree ;\n count = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_crestrictarray_count , tvb , offset , 1 , count ) ;\n offset += 1 ;\n present = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_crestrictarray_present , tvb , offset , 1 , present ) ;\n offset += 1 ;\n if ( present ) {\n unsigned i ;\n offset = parse_padding ( tvb , offset , 4 , pad_tree , \"paddingCRestrictionPresent\" ) ;\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n struct CRestriction r ;\n offset = parse_CRestriction ( tvb , offset , tree , pad_tree , & r , \"Restriction[%d]\" , i ) ;\n }\n }\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 14328, "target": 0, "func": "static bool parse_otherName ( chunk_t * blob , int level0 , id_type_t * type ) {\n asn1_parser_t * parser ;\n chunk_t object ;\n int objectID ;\n int oid = OID_UNKNOWN ;\n bool success = FALSE ;\n parser = asn1_parser_create ( otherNameObjects , * blob ) ;\n parser -> set_top_level ( parser , level0 ) ;\n while ( parser -> iterate ( parser , & objectID , & object ) ) {\n switch ( objectID ) {\n case ON_OBJ_ID_TYPE : oid = asn1_known_oid ( object ) ;\n break ;\n case ON_OBJ_VALUE : switch ( oid ) {\n case OID_XMPP_ADDR : if ( ! asn1_parse_simple_object ( & object , ASN1_UTF8STRING , parser -> get_level ( parser ) + 1 , \"xmppAddr\" ) ) {\n goto end ;\n }\n break ;\n case OID_USER_PRINCIPAL_NAME : if ( asn1_parse_simple_object ( & object , ASN1_UTF8STRING , parser -> get_level ( parser ) + 1 , \"msUPN\" ) ) {\n * blob = object ;\n * type = ID_RFC822_ADDR ;\n }\n else {\n goto end ;\n }\n break ;\n }\n break ;\n default : break ;\n }\n }\n success = parser -> success ( parser ) ;\n end : parser -> destroy ( parser ) ;\n return success ;\n }"}
{"idx": 14329, "target": 0, "func": "static void setup_frame_size ( VP9_COMMON * cm , struct vp9_read_bit_buffer * rb ) {\n int width , height ;\n vp9_read_frame_size ( rb , & width , & height ) ;\n apply_frame_size ( cm , width , height ) ;\n setup_display_size ( cm , rb ) ;\n }"}
{"idx": 14330, "target": 0, "func": "static int32_t u_scanf_parse_spec ( const UChar * fmt , u_scanf_spec * spec ) {\n const UChar * s = fmt ;\n const UChar * backup ;\n u_scanf_spec_info * info = & ( spec -> fInfo ) ;\n spec -> fArgPos = - 1 ;\n info -> fWidth = - 1 ;\n info -> fSpec = 0x0000 ;\n info -> fPadChar = 0x0020 ;\n info -> fSkipArg = FALSE ;\n info -> fIsLongDouble = FALSE ;\n info -> fIsShort = FALSE ;\n info -> fIsLong = FALSE ;\n info -> fIsLongLong = FALSE ;\n info -> fIsString = TRUE ;\n s ++ ;\n if ( ISDIGIT ( * s ) ) {\n backup = s ;\n if ( ISDIGIT ( * s ) ) {\n spec -> fArgPos = ( int ) ( * s ++ - DIGIT_ZERO ) ;\n while ( ISDIGIT ( * s ) ) {\n spec -> fArgPos *= 10 ;\n spec -> fArgPos += ( int ) ( * s ++ - DIGIT_ZERO ) ;\n }\n }\n if ( * s != SPEC_DOLLARSIGN ) {\n spec -> fArgPos = - 1 ;\n s = backup ;\n }\n else s ++ ;\n }\n while ( ISFLAG ( * s ) ) {\n switch ( * s ++ ) {\n case FLAG_ASTERISK : info -> fSkipArg = TRUE ;\n break ;\n case FLAG_PAREN : info -> fPadChar = ( UChar ) ufmt_digitvalue ( * s ++ ) ;\n info -> fPadChar = ( UChar ) ( ( info -> fPadChar * 16 ) + ufmt_digitvalue ( * s ++ ) ) ;\n info -> fPadChar = ( UChar ) ( ( info -> fPadChar * 16 ) + ufmt_digitvalue ( * s ++ ) ) ;\n info -> fPadChar = ( UChar ) ( ( info -> fPadChar * 16 ) + ufmt_digitvalue ( * s ++ ) ) ;\n s ++ ;\n break ;\n }\n }\n if ( ISDIGIT ( * s ) ) {\n info -> fWidth = ( int ) ( * s ++ - DIGIT_ZERO ) ;\n while ( ISDIGIT ( * s ) ) {\n info -> fWidth *= 10 ;\n info -> fWidth += ( int ) ( * s ++ - DIGIT_ZERO ) ;\n }\n }\n if ( ISMOD ( * s ) ) {\n switch ( * s ++ ) {\n case MOD_H : info -> fIsShort = TRUE ;\n break ;\n case MOD_LOWERL : if ( * s == MOD_LOWERL ) {\n info -> fIsLongLong = TRUE ;\n s ++ ;\n }\n else info -> fIsLong = TRUE ;\n break ;\n case MOD_L : info -> fIsLongDouble = TRUE ;\n break ;\n }\n }\n info -> fSpec = * s ++ ;\n return ( int32_t ) ( s - fmt ) ;\n }"}
{"idx": 14331, "target": 0, "func": "static struct sk_buff * pfkey_xfrm_policy2msg_prep ( const struct xfrm_policy * xp ) {\n struct sk_buff * skb ;\n int size ;\n size = pfkey_xfrm_policy2msg_size ( xp ) ;\n skb = alloc_skb ( size + 16 , GFP_ATOMIC ) ;\n if ( skb == NULL ) return ERR_PTR ( - ENOBUFS ) ;\n return skb ;\n }"}
{"idx": 14332, "target": 0, "func": "static void bug31418_impl ( ) {\n MYSQL con ;\n my_bool is_null ;\n int rc = 0 ;\n DIE_UNLESS ( mysql_client_init ( & con ) ) ;\n DIE_UNLESS ( mysql_real_connect ( & con , opt_host , opt_user , opt_password , opt_db ? opt_db : \"test\" , opt_port , opt_unix_socket , CLIENT_FOUND_ROWS ) ) ;\n is_null = query_int_variable ( & con , \"IS_FREE_LOCK('bug31418')\" , & rc ) ;\n DIE_UNLESS ( ! is_null && rc ) ;\n is_null = query_int_variable ( & con , \"IS_USED_LOCK('bug31418')\" , & rc ) ;\n DIE_UNLESS ( is_null ) ;\n query_int_variable ( & con , \"GET_LOCK('bug31418', 1)\" , & rc ) ;\n DIE_UNLESS ( rc ) ;\n is_null = query_int_variable ( & con , \"IS_FREE_LOCK('bug31418')\" , & rc ) ;\n DIE_UNLESS ( ! is_null && ! rc ) ;\n is_null = query_int_variable ( & con , \"IS_USED_LOCK('bug31418')\" , & rc ) ;\n DIE_UNLESS ( ! is_null && rc ) ;\n bug20023_change_user ( & con ) ;\n is_null = query_int_variable ( & con , \"IS_FREE_LOCK('bug31418')\" , & rc ) ;\n DIE_UNLESS ( ! is_null && rc ) ;\n is_null = query_int_variable ( & con , \"IS_USED_LOCK('bug31418')\" , & rc ) ;\n DIE_UNLESS ( is_null ) ;\n mysql_close ( & con ) ;\n }"}
{"idx": 14333, "target": 0, "func": "char * _ksba_oid_node_to_str ( const unsigned char * image , AsnNode node ) {\n if ( ! node || node -> type != TYPE_OBJECT_ID || node -> off == - 1 ) return NULL ;\n return ksba_oid_to_str ( image + node -> off + node -> nhdr , node -> len ) ;\n }"}
{"idx": 14334, "target": 0, "func": "int * __oldXMLWDcompatibility ( void ) {\n if ( IS_MAIN_THREAD ) return ( & oldXMLWDcompatibility ) ;\n else return ( & xmlGetGlobalState ( ) -> oldXMLWDcompatibility ) ;\n }"}
{"idx": 14335, "target": 0, "func": "static int avs_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n const uint8_t * buf_end = avpkt -> data + avpkt -> size ;\n int buf_size = avpkt -> size ;\n AvsContext * const avs = avctx -> priv_data ;\n AVFrame * picture = data ;\n AVFrame * const p = & avs -> picture ;\n const uint8_t * table , * vect ;\n uint8_t * out ;\n int i , j , x , y , stride , ret , vect_w = 3 , vect_h = 3 ;\n AvsVideoSubType sub_type ;\n AvsBlockType type ;\n GetBitContext change_map ;\n if ( ( ret = ff_reget_buffer ( avctx , p ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n p -> pict_type = AV_PICTURE_TYPE_P ;\n p -> key_frame = 0 ;\n out = avs -> picture . data [ 0 ] ;\n stride = avs -> picture . linesize [ 0 ] ;\n if ( buf_end - buf < 4 ) return AVERROR_INVALIDDATA ;\n sub_type = buf [ 0 ] ;\n type = buf [ 1 ] ;\n buf += 4 ;\n if ( type == AVS_PALETTE ) {\n int first , last ;\n uint32_t * pal = ( uint32_t * ) avs -> picture . data [ 1 ] ;\n first = AV_RL16 ( buf ) ;\n last = first + AV_RL16 ( buf + 2 ) ;\n if ( first >= 256 || last > 256 || buf_end - buf < 4 + 4 + 3 * ( last - first ) ) return AVERROR_INVALIDDATA ;\n buf += 4 ;\n for ( i = first ;\n i < last ;\n i ++ , buf += 3 ) pal [ i ] = ( buf [ 0 ] << 18 ) | ( buf [ 1 ] << 10 ) | ( buf [ 2 ] << 2 ) ;\n sub_type = buf [ 0 ] ;\n type = buf [ 1 ] ;\n buf += 4 ;\n }\n if ( type != AVS_VIDEO ) return AVERROR_INVALIDDATA ;\n switch ( sub_type ) {\n case AVS_I_FRAME : p -> pict_type = AV_PICTURE_TYPE_I ;\n p -> key_frame = 1 ;\n case AVS_P_FRAME_3X3 : vect_w = 3 ;\n vect_h = 3 ;\n break ;\n case AVS_P_FRAME_2X2 : vect_w = 2 ;\n vect_h = 2 ;\n break ;\n case AVS_P_FRAME_2X3 : vect_w = 2 ;\n vect_h = 3 ;\n break ;\n default : return AVERROR_INVALIDDATA ;\n }\n if ( buf_end - buf < 256 * vect_w * vect_h ) return AVERROR_INVALIDDATA ;\n table = buf + ( 256 * vect_w * vect_h ) ;\n if ( sub_type != AVS_I_FRAME ) {\n int map_size = ( ( 318 / vect_w + 7 ) / 8 ) * ( 198 / vect_h ) ;\n if ( buf_end - table < map_size ) return AVERROR_INVALIDDATA ;\n init_get_bits ( & change_map , table , map_size * 8 ) ;\n table += map_size ;\n }\n for ( y = 0 ;\n y < 198 ;\n y += vect_h ) {\n for ( x = 0 ;\n x < 318 ;\n x += vect_w ) {\n if ( sub_type == AVS_I_FRAME || get_bits1 ( & change_map ) ) {\n if ( buf_end - table < 1 ) return AVERROR_INVALIDDATA ;\n vect = & buf [ * table ++ * ( vect_w * vect_h ) ] ;\n for ( j = 0 ;\n j < vect_w ;\n j ++ ) {\n out [ ( y + 0 ) * stride + x + j ] = vect [ ( 0 * vect_w ) + j ] ;\n out [ ( y + 1 ) * stride + x + j ] = vect [ ( 1 * vect_w ) + j ] ;\n if ( vect_h == 3 ) out [ ( y + 2 ) * stride + x + j ] = vect [ ( 2 * vect_w ) + j ] ;\n }\n }\n }\n if ( sub_type != AVS_I_FRAME ) align_get_bits ( & change_map ) ;\n }\n if ( ( ret = av_frame_ref ( picture , & avs -> picture ) ) < 0 ) return ret ;\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 14336, "target": 0, "func": "static void vga_draw_line32_le ( VGACommonState * vga , uint8_t * d , uint32_t addr , int width ) {\n int w ;\n uint32_t r , g , b ;\n w = width ;\n do {\n b = vga_read_byte ( vga , addr + 0 ) ;\n g = vga_read_byte ( vga , addr + 1 ) ;\n r = vga_read_byte ( vga , addr + 2 ) ;\n ( ( uint32_t * ) d ) [ 0 ] = rgb_to_pixel32 ( r , g , b ) ;\n addr += 4 ;\n d += 4 ;\n }\n while ( -- w != 0 ) ;\n }"}
{"idx": 14337, "target": 0, "func": "unsigned int vp8_variance_halfpixvar16x16_h_neon ( const unsigned char * src_ptr , int source_stride , const unsigned char * ref_ptr , int recon_stride , unsigned int * sse ) {\n int i ;\n uint8x8_t d0u8 , d1u8 , d2u8 , d3u8 , d4u8 , d5u8 , d6u8 , d7u8 ;\n int16x4_t d0s16 , d1s16 , d2s16 , d3s16 , d4s16 , d5s16 , d6s16 , d7s16 ;\n int16x4_t d8s16 , d9s16 , d10s16 , d11s16 , d12s16 , d13s16 , d14s16 , d15s16 ;\n uint32x2_t d0u32 , d10u32 ;\n int64x1_t d0s64 , d1s64 , d2s64 , d3s64 ;\n uint8x16_t q0u8 , q1u8 , q2u8 , q3u8 , q4u8 , q5u8 , q6u8 ;\n uint8x16_t q7u8 , q11u8 , q12u8 , q13u8 , q14u8 ;\n uint16x8_t q0u16 , q1u16 , q2u16 , q3u16 , q4u16 , q5u16 , q6u16 , q7u16 ;\n int32x4_t q8s32 , q9s32 , q10s32 ;\n int64x2_t q0s64 , q1s64 , q5s64 ;\n q8s32 = vdupq_n_s32 ( 0 ) ;\n q9s32 = vdupq_n_s32 ( 0 ) ;\n q10s32 = vdupq_n_s32 ( 0 ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n q0u8 = vld1q_u8 ( src_ptr ) ;\n q1u8 = vld1q_u8 ( src_ptr + 16 ) ;\n src_ptr += source_stride ;\n q2u8 = vld1q_u8 ( src_ptr ) ;\n q3u8 = vld1q_u8 ( src_ptr + 16 ) ;\n src_ptr += source_stride ;\n q4u8 = vld1q_u8 ( src_ptr ) ;\n q5u8 = vld1q_u8 ( src_ptr + 16 ) ;\n src_ptr += source_stride ;\n q6u8 = vld1q_u8 ( src_ptr ) ;\n q7u8 = vld1q_u8 ( src_ptr + 16 ) ;\n src_ptr += source_stride ;\n q11u8 = vld1q_u8 ( ref_ptr ) ;\n ref_ptr += recon_stride ;\n q12u8 = vld1q_u8 ( ref_ptr ) ;\n ref_ptr += recon_stride ;\n q13u8 = vld1q_u8 ( ref_ptr ) ;\n ref_ptr += recon_stride ;\n q14u8 = vld1q_u8 ( ref_ptr ) ;\n ref_ptr += recon_stride ;\n q1u8 = vextq_u8 ( q0u8 , q1u8 , 1 ) ;\n q3u8 = vextq_u8 ( q2u8 , q3u8 , 1 ) ;\n q5u8 = vextq_u8 ( q4u8 , q5u8 , 1 ) ;\n q7u8 = vextq_u8 ( q6u8 , q7u8 , 1 ) ;\n q0u8 = vrhaddq_u8 ( q0u8 , q1u8 ) ;\n q1u8 = vrhaddq_u8 ( q2u8 , q3u8 ) ;\n q2u8 = vrhaddq_u8 ( q4u8 , q5u8 ) ;\n q3u8 = vrhaddq_u8 ( q6u8 , q7u8 ) ;\n d0u8 = vget_low_u8 ( q0u8 ) ;\n d1u8 = vget_high_u8 ( q0u8 ) ;\n d2u8 = vget_low_u8 ( q1u8 ) ;\n d3u8 = vget_high_u8 ( q1u8 ) ;\n d4u8 = vget_low_u8 ( q2u8 ) ;\n d5u8 = vget_high_u8 ( q2u8 ) ;\n d6u8 = vget_low_u8 ( q3u8 ) ;\n d7u8 = vget_high_u8 ( q3u8 ) ;\n q4u16 = vsubl_u8 ( d0u8 , vget_low_u8 ( q11u8 ) ) ;\n q5u16 = vsubl_u8 ( d1u8 , vget_high_u8 ( q11u8 ) ) ;\n q6u16 = vsubl_u8 ( d2u8 , vget_low_u8 ( q12u8 ) ) ;\n q7u16 = vsubl_u8 ( d3u8 , vget_high_u8 ( q12u8 ) ) ;\n q0u16 = vsubl_u8 ( d4u8 , vget_low_u8 ( q13u8 ) ) ;\n q1u16 = vsubl_u8 ( d5u8 , vget_high_u8 ( q13u8 ) ) ;\n q2u16 = vsubl_u8 ( d6u8 , vget_low_u8 ( q14u8 ) ) ;\n q3u16 = vsubl_u8 ( d7u8 , vget_high_u8 ( q14u8 ) ) ;\n d8s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q4u16 ) ) ;\n d9s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q4u16 ) ) ;\n q8s32 = vpadalq_s16 ( q8s32 , vreinterpretq_s16_u16 ( q4u16 ) ) ;\n q9s32 = vmlal_s16 ( q9s32 , d8s16 , d8s16 ) ;\n q10s32 = vmlal_s16 ( q10s32 , d9s16 , d9s16 ) ;\n d10s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q5u16 ) ) ;\n d11s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q5u16 ) ) ;\n q8s32 = vpadalq_s16 ( q8s32 , vreinterpretq_s16_u16 ( q5u16 ) ) ;\n q9s32 = vmlal_s16 ( q9s32 , d10s16 , d10s16 ) ;\n q10s32 = vmlal_s16 ( q10s32 , d11s16 , d11s16 ) ;\n d12s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q6u16 ) ) ;\n d13s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q6u16 ) ) ;\n q8s32 = vpadalq_s16 ( q8s32 , vreinterpretq_s16_u16 ( q6u16 ) ) ;\n q9s32 = vmlal_s16 ( q9s32 , d12s16 , d12s16 ) ;\n q10s32 = vmlal_s16 ( q10s32 , d13s16 , d13s16 ) ;\n d14s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q7u16 ) ) ;\n d15s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q7u16 ) ) ;\n q8s32 = vpadalq_s16 ( q8s32 , vreinterpretq_s16_u16 ( q7u16 ) ) ;\n q9s32 = vmlal_s16 ( q9s32 , d14s16 , d14s16 ) ;\n q10s32 = vmlal_s16 ( q10s32 , d15s16 , d15s16 ) ;\n d0s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q0u16 ) ) ;\n d1s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q0u16 ) ) ;\n q8s32 = vpadalq_s16 ( q8s32 , vreinterpretq_s16_u16 ( q0u16 ) ) ;\n q9s32 = vmlal_s16 ( q9s32 , d0s16 , d0s16 ) ;\n q10s32 = vmlal_s16 ( q10s32 , d1s16 , d1s16 ) ;\n d2s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q1u16 ) ) ;\n d3s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q1u16 ) ) ;\n q8s32 = vpadalq_s16 ( q8s32 , vreinterpretq_s16_u16 ( q1u16 ) ) ;\n q9s32 = vmlal_s16 ( q9s32 , d2s16 , d2s16 ) ;\n q10s32 = vmlal_s16 ( q10s32 , d3s16 , d3s16 ) ;\n d4s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q2u16 ) ) ;\n d5s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q2u16 ) ) ;\n q8s32 = vpadalq_s16 ( q8s32 , vreinterpretq_s16_u16 ( q2u16 ) ) ;\n q9s32 = vmlal_s16 ( q9s32 , d4s16 , d4s16 ) ;\n q10s32 = vmlal_s16 ( q10s32 , d5s16 , d5s16 ) ;\n d6s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q3u16 ) ) ;\n d7s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q3u16 ) ) ;\n q8s32 = vpadalq_s16 ( q8s32 , vreinterpretq_s16_u16 ( q3u16 ) ) ;\n q9s32 = vmlal_s16 ( q9s32 , d6s16 , d6s16 ) ;\n q10s32 = vmlal_s16 ( q10s32 , d7s16 , d7s16 ) ;\n }\n q10s32 = vaddq_s32 ( q10s32 , q9s32 ) ;\n q0s64 = vpaddlq_s32 ( q8s32 ) ;\n q1s64 = vpaddlq_s32 ( q10s32 ) ;\n d0s64 = vget_low_s64 ( q0s64 ) ;\n d1s64 = vget_high_s64 ( q0s64 ) ;\n d2s64 = vget_low_s64 ( q1s64 ) ;\n d3s64 = vget_high_s64 ( q1s64 ) ;\n d0s64 = vadd_s64 ( d0s64 , d1s64 ) ;\n d1s64 = vadd_s64 ( d2s64 , d3s64 ) ;\n q5s64 = vmull_s32 ( vreinterpret_s32_s64 ( d0s64 ) , vreinterpret_s32_s64 ( d0s64 ) ) ;\n vst1_lane_u32 ( ( uint32_t * ) sse , vreinterpret_u32_s64 ( d1s64 ) , 0 ) ;\n d10u32 = vshr_n_u32 ( vreinterpret_u32_s64 ( vget_low_s64 ( q5s64 ) ) , 8 ) ;\n d0u32 = vsub_u32 ( vreinterpret_u32_s64 ( d1s64 ) , d10u32 ) ;\n return vget_lane_u32 ( d0u32 , 0 ) ;\n }"}
{"idx": 14338, "target": 0, "func": "void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 ) sadMxN ( 16 , 32 ) sadMxNx4D ( 16 , 32 )"}
{"idx": 14339, "target": 0, "func": "static int dissect_mac_fdd_edch ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n proto_tree * edch_tree = NULL ;\n proto_item * channel_type ;\n umts_mac_info * macinf ;\n fp_info * fpinf ;\n guint16 pos ;\n proto_item * ti = NULL ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"MAC\" ) ;\n ti = proto_tree_add_item ( tree , proto_umts_mac , tvb , 0 , - 1 , ENC_NA ) ;\n edch_tree = proto_item_add_subtree ( ti , ett_mac_edch ) ;\n fpinf = ( fp_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_fp , 0 ) ;\n macinf = ( umts_mac_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_umts_mac , 0 ) ;\n if ( ! macinf || ! fpinf ) {\n proto_tree_add_expert ( edch_tree , pinfo , & ei_mac_per_frame_info_missing , tvb , 0 , - 1 ) ;\n return 1 ;\n }\n pos = fpinf -> cur_tb ;\n switch ( macinf -> content [ pos ] ) {\n case MAC_CONTENT_DCCH : proto_item_append_text ( ti , \" (DCCH)\" ) ;\n channel_type = proto_tree_add_uint ( edch_tree , hf_mac_lch_id , tvb , 0 , 0 , macinf -> lchid [ pos ] ) ;\n PROTO_ITEM_SET_GENERATED ( channel_type ) ;\n channel_type = proto_tree_add_uint ( edch_tree , hf_mac_channel , tvb , 0 , 0 , MAC_DCCH ) ;\n PROTO_ITEM_SET_GENERATED ( channel_type ) ;\n call_dissector_with_data ( rlc_dcch_handle , tvb , pinfo , tree , data ) ;\n break ;\n case MAC_CONTENT_PS_DTCH : proto_item_append_text ( ti , \" (PS DTCH)\" ) ;\n channel_type = proto_tree_add_uint ( edch_tree , hf_mac_lch_id , tvb , 0 , 0 , macinf -> lchid [ pos ] ) ;\n PROTO_ITEM_SET_GENERATED ( channel_type ) ;\n channel_type = proto_tree_add_uint ( edch_tree , hf_mac_channel , tvb , 0 , 0 , MAC_DTCH ) ;\n PROTO_ITEM_SET_GENERATED ( channel_type ) ;\n call_dissector_with_data ( rlc_ps_dtch_handle , tvb , pinfo , tree , data ) ;\n break ;\n case MAC_CONTENT_CS_DTCH : proto_item_append_text ( ti , \" (CS DTCH)\" ) ;\n break ;\n default : proto_item_append_text ( ti , \" (Unknown EDCH Content)\" ) ;\n expert_add_info_format ( pinfo , ti , & ei_mac_unknown_content , \"Unknown EDCH Content\" ) ;\n break ;\n }\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 14340, "target": 0, "func": "static void pk_transaction_repo_enable ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) {\n gboolean ret ;\n const gchar * repo_id ;\n gboolean enabled ;\n g_autoptr ( GError ) error = NULL ;\n g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;\n g_return_if_fail ( transaction -> priv -> tid != NULL ) ;\n g_variant_get ( params , \"(&sb)\" , & repo_id , & enabled ) ;\n g_debug ( \"RepoEnable method called: %s, %i\" , repo_id , enabled ) ;\n if ( ! pk_backend_is_implemented ( transaction -> priv -> backend , PK_ROLE_ENUM_REPO_ENABLE ) ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NOT_SUPPORTED , \"RepoEnable not supported by backend\" ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n ret = pk_transaction_strvalidate ( repo_id , & error ) ;\n if ( ! ret ) {\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n transaction -> priv -> cached_repo_id = g_strdup ( repo_id ) ;\n transaction -> priv -> cached_enabled = enabled ;\n pk_transaction_set_role ( transaction , PK_ROLE_ENUM_REPO_ENABLE ) ;\n ret = pk_transaction_obtain_authorization ( transaction , PK_ROLE_ENUM_REPO_ENABLE , & error ) ;\n if ( ! ret ) {\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n out : pk_transaction_dbus_return ( context , error ) ;\n }"}
{"idx": 14341, "target": 0, "func": "static void file_change_cr ( const char * s , struct branch * b , int rename ) {\n const char * d ;\n static struct strbuf s_uq = STRBUF_INIT ;\n static struct strbuf d_uq = STRBUF_INIT ;\n const char * endp ;\n struct tree_entry leaf ;\n strbuf_reset ( & s_uq ) ;\n if ( ! unquote_c_style ( & s_uq , s , & endp ) ) {\n if ( * endp != ' ' ) die ( \"Missing space after source: %s\" , command_buf . buf ) ;\n }\n else {\n endp = strchr ( s , ' ' ) ;\n if ( ! endp ) die ( \"Missing space after source: %s\" , command_buf . buf ) ;\n strbuf_add ( & s_uq , s , endp - s ) ;\n }\n s = s_uq . buf ;\n endp ++ ;\n if ( ! * endp ) die ( \"Missing dest: %s\" , command_buf . buf ) ;\n d = endp ;\n strbuf_reset ( & d_uq ) ;\n if ( ! unquote_c_style ( & d_uq , d , & endp ) ) {\n if ( * endp ) die ( \"Garbage after dest in: %s\" , command_buf . buf ) ;\n d = d_uq . buf ;\n }\n memset ( & leaf , 0 , sizeof ( leaf ) ) ;\n if ( rename ) tree_content_remove ( & b -> branch_tree , s , & leaf , 1 ) ;\n else tree_content_get ( & b -> branch_tree , s , & leaf , 1 ) ;\n if ( ! leaf . versions [ 1 ] . mode ) die ( \"Path %s not in branch\" , s ) ;\n if ( ! * d ) {\n tree_content_replace ( & b -> branch_tree , leaf . versions [ 1 ] . sha1 , leaf . versions [ 1 ] . mode , leaf . tree ) ;\n return ;\n }\n tree_content_set ( & b -> branch_tree , d , leaf . versions [ 1 ] . sha1 , leaf . versions [ 1 ] . mode , leaf . tree ) ;\n }"}
{"idx": 14342, "target": 0, "func": "int i2d_ ## name ( type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;\n int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DIRECTORYSTRING ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DISPLAYTEXT ) DECLARE_ASN1_FUNCTIONS ( ASN1_PRINTABLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_T61STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_IA5STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_GENERALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTCTIME ) DECLARE_ASN1_FUNCTIONS ( ASN1_GENERALIZEDTIME ) DECLARE_ASN1_FUNCTIONS ( ASN1_TIME )"}
{"idx": 14343, "target": 0, "func": "int ff_rm_retrieve_cache ( AVFormatContext * s , AVIOContext * pb , AVStream * st , RMStream * ast , AVPacket * pkt ) {\n RMDemuxContext * rm = s -> priv_data ;\n av_assert0 ( rm -> audio_pkt_cnt > 0 ) ;\n if ( ast -> deint_id == DEINT_ID_VBRF || ast -> deint_id == DEINT_ID_VBRS ) {\n int ret = av_get_packet ( pb , pkt , ast -> sub_packet_lengths [ ast -> sub_packet_cnt - rm -> audio_pkt_cnt ] ) ;\n if ( ret < 0 ) return ret ;\n }\n else {\n int ret = av_new_packet ( pkt , st -> codecpar -> block_align ) ;\n if ( ret < 0 ) return ret ;\n memcpy ( pkt -> data , ast -> pkt . data + st -> codecpar -> block_align * ( ast -> sub_packet_h * ast -> audio_framesize / st -> codecpar -> block_align - rm -> audio_pkt_cnt ) , st -> codecpar -> block_align ) ;\n }\n rm -> audio_pkt_cnt -- ;\n if ( ( pkt -> pts = ast -> audiotimestamp ) != AV_NOPTS_VALUE ) {\n ast -> audiotimestamp = AV_NOPTS_VALUE ;\n pkt -> flags = AV_PKT_FLAG_KEY ;\n }\n else pkt -> flags = 0 ;\n pkt -> stream_index = st -> index ;\n return rm -> audio_pkt_cnt ;\n }"}
{"idx": 14344, "target": 0, "func": "static size_t write_dns_nameenc ( char * buf , size_t buflen , char * data , int datalen , char downenc ) {\n static int td1 = 0 ;\n static int td2 = 0 ;\n size_t space ;\n char * b ;\n td1 += 3 ;\n td2 += 7 ;\n if ( td1 >= 26 ) td1 -= 26 ;\n if ( td2 >= 25 ) td2 -= 25 ;\n space = MIN ( 0xFF , buflen ) - 4 - 2 ;\n memset ( buf , 0 , buflen ) ;\n if ( downenc == 'S' ) {\n buf [ 0 ] = 'i' ;\n if ( ! b64 -> places_dots ( ) ) space -= ( space / 57 ) ;\n b64 -> encode ( buf + 1 , & space , data , datalen ) ;\n if ( ! b64 -> places_dots ( ) ) inline_dotify ( buf , buflen ) ;\n }\n else if ( downenc == 'U' ) {\n buf [ 0 ] = 'j' ;\n if ( ! b64u -> places_dots ( ) ) space -= ( space / 57 ) ;\n b64u -> encode ( buf + 1 , & space , data , datalen ) ;\n if ( ! b64u -> places_dots ( ) ) inline_dotify ( buf , buflen ) ;\n }\n else if ( downenc == 'V' ) {\n buf [ 0 ] = 'k' ;\n if ( ! b128 -> places_dots ( ) ) space -= ( space / 57 ) ;\n b128 -> encode ( buf + 1 , & space , data , datalen ) ;\n if ( ! b128 -> places_dots ( ) ) inline_dotify ( buf , buflen ) ;\n }\n else {\n buf [ 0 ] = 'h' ;\n if ( ! b32 -> places_dots ( ) ) space -= ( space / 57 ) ;\n b32 -> encode ( buf + 1 , & space , data , datalen ) ;\n if ( ! b32 -> places_dots ( ) ) inline_dotify ( buf , buflen ) ;\n }\n b = buf ;\n b += strlen ( buf ) - 1 ;\n if ( * b != '.' ) * ++ b = '.' ;\n b ++ ;\n * b = 'a' + td1 ;\n b ++ ;\n * b = 'a' + td2 ;\n b ++ ;\n * b = '\\0' ;\n return space ;\n }"}
{"idx": 14345, "target": 0, "func": "static guint32 dissect_netb_status_query ( tvbuff_t * tvb , packet_info * pinfo _U_ , int offset , proto_tree * tree ) {\n guint8 status_request = tvb_get_guint8 ( tvb , offset + NB_DATA1 ) ;\n switch ( status_request ) {\n case 0 : proto_tree_add_uint_format_value ( tree , hf_netb_status_request , tvb , offset + NB_DATA1 , 1 , status_request , \"NetBIOS 1.x or 2.0\" ) ;\n break ;\n case 1 : proto_tree_add_uint_format_value ( tree , hf_netb_status_request , tvb , offset + NB_DATA1 , 1 , status_request , \"NetBIOS 2.1, initial status request\" ) ;\n break ;\n default : proto_tree_add_uint_format_value ( tree , hf_netb_status_request , tvb , offset + NB_DATA1 , 1 , status_request , \"NetBIOS 2.1, %u names received so far\" , status_request ) ;\n break ;\n }\n nb_data2 ( hf_netb_status_buffer_len , tvb , offset , tree ) ;\n nb_resp_corrl ( tvb , offset , tree ) ;\n netbios_add_name ( \"Receiver's Name\" , tvb , offset + NB_RECVER_NAME , tree ) ;\n netbios_add_name ( \"Sender's Name\" , tvb , offset + NB_SENDER_NAME , tree ) ;\n return 0 ;\n }"}
{"idx": 14346, "target": 0, "func": "static struct bitmap * find_objects ( struct rev_info * revs , struct object_list * roots , struct bitmap * seen ) {\n struct bitmap * base = NULL ;\n int needs_walk = 0 ;\n struct object_list * not_mapped = NULL ;\n while ( roots ) {\n struct object * object = roots -> item ;\n roots = roots -> next ;\n if ( object -> type == OBJ_COMMIT ) {\n khiter_t pos = kh_get_sha1 ( bitmap_git . bitmaps , object -> oid . hash ) ;\n if ( pos < kh_end ( bitmap_git . bitmaps ) ) {\n struct stored_bitmap * st = kh_value ( bitmap_git . bitmaps , pos ) ;\n struct ewah_bitmap * or_with = lookup_stored_bitmap ( st ) ;\n if ( base == NULL ) base = ewah_to_bitmap ( or_with ) ;\n else bitmap_or_ewah ( base , or_with ) ;\n object -> flags |= SEEN ;\n continue ;\n }\n }\n object_list_insert ( object , & not_mapped ) ;\n }\n if ( not_mapped == NULL ) return base ;\n roots = not_mapped ;\n while ( roots ) {\n struct object * object = roots -> item ;\n int pos ;\n roots = roots -> next ;\n pos = bitmap_position ( object -> oid . hash ) ;\n if ( pos < 0 || base == NULL || ! bitmap_get ( base , pos ) ) {\n object -> flags &= ~ UNINTERESTING ;\n add_pending_object ( revs , object , \"\" ) ;\n needs_walk = 1 ;\n }\n else {\n object -> flags |= SEEN ;\n }\n }\n if ( needs_walk ) {\n struct include_data incdata ;\n if ( base == NULL ) base = bitmap_new ( ) ;\n incdata . base = base ;\n incdata . seen = seen ;\n revs -> include_check = should_include ;\n revs -> include_check_data = & incdata ;\n if ( prepare_revision_walk ( revs ) ) die ( \"revision walk setup failed\" ) ;\n traverse_commit_list ( revs , show_commit , show_object , base ) ;\n }\n return base ;\n }"}
{"idx": 14347, "target": 0, "func": "static int mpeg_field_start ( MpegEncContext * s , const uint8_t * buf , int buf_size ) {\n AVCodecContext * avctx = s -> avctx ;\n Mpeg1Context * s1 = ( Mpeg1Context * ) s ;\n if ( s -> first_field || s -> picture_structure == PICT_FRAME ) {\n AVFrameSideData * pan_scan ;\n if ( ff_MPV_frame_start ( s , avctx ) < 0 ) return - 1 ;\n ff_mpeg_er_frame_start ( s ) ;\n s -> current_picture_ptr -> f . repeat_pict = 0 ;\n if ( s -> repeat_first_field ) {\n if ( s -> progressive_sequence ) {\n if ( s -> top_field_first ) s -> current_picture_ptr -> f . repeat_pict = 4 ;\n else s -> current_picture_ptr -> f . repeat_pict = 2 ;\n }\n else if ( s -> progressive_frame ) {\n s -> current_picture_ptr -> f . repeat_pict = 1 ;\n }\n }\n pan_scan = av_frame_new_side_data ( & s -> current_picture_ptr -> f , AV_FRAME_DATA_PANSCAN , sizeof ( s1 -> pan_scan ) ) ;\n if ( ! pan_scan ) return AVERROR ( ENOMEM ) ;\n memcpy ( pan_scan -> data , & s1 -> pan_scan , sizeof ( s1 -> pan_scan ) ) ;\n if ( HAVE_THREADS && ( avctx -> active_thread_type & FF_THREAD_FRAME ) ) ff_thread_finish_setup ( avctx ) ;\n }\n else {\n int i ;\n if ( ! s -> current_picture_ptr ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"first field missing\\n\" ) ;\n return - 1 ;\n }\n if ( s -> avctx -> hwaccel && ( s -> avctx -> slice_flags & SLICE_FLAG_ALLOW_FIELD ) ) {\n if ( s -> avctx -> hwaccel -> end_frame ( s -> avctx ) < 0 ) av_log ( avctx , AV_LOG_ERROR , \"hardware accelerator failed to decode first field\\n\" ) ;\n }\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n s -> current_picture . f . data [ i ] = s -> current_picture_ptr -> f . data [ i ] ;\n if ( s -> picture_structure == PICT_BOTTOM_FIELD ) {\n s -> current_picture . f . data [ i ] += s -> current_picture_ptr -> f . linesize [ i ] ;\n }\n }\n }\n if ( avctx -> hwaccel ) {\n if ( avctx -> hwaccel -> start_frame ( avctx , buf , buf_size ) < 0 ) return - 1 ;\n }\n if ( CONFIG_MPEG_XVMC_DECODER && s -> avctx -> xvmc_acceleration ) if ( ff_xvmc_field_start ( s , avctx ) < 0 ) return - 1 ;\n return 0 ;\n }"}
{"idx": 14348, "target": 0, "func": "MIMEFieldBlockImpl * _mime_field_block_copy ( MIMEFieldBlockImpl * s_fblock , HdrHeap * , HdrHeap * d_heap ) {\n MIMEFieldBlockImpl * d_fblock ;\n d_fblock = ( MIMEFieldBlockImpl * ) d_heap -> allocate_obj ( sizeof ( MIMEFieldBlockImpl ) , HDR_HEAP_OBJ_FIELD_BLOCK ) ;\n memcpy ( d_fblock , s_fblock , sizeof ( MIMEFieldBlockImpl ) ) ;\n return d_fblock ;\n }"}
{"idx": 14349, "target": 0, "func": "static void * gs_heap_alloc_struct_array ( gs_memory_t * mem , uint num_elements , gs_memory_type_ptr_t pstype , client_name_t cname ) {\n void * ptr = gs_heap_alloc_byte_array ( mem , num_elements , gs_struct_type_size ( pstype ) , cname ) ;\n if ( ptr == 0 ) return 0 ;\n ( ( gs_malloc_block_t * ) ptr ) [ - 1 ] . type = pstype ;\n return ptr ;\n }"}
{"idx": 14350, "target": 0, "func": "static void setup_features ( VP8_COMP * cpi ) {\n if ( cpi -> mb . e_mbd . segmentation_enabled ) {\n cpi -> mb . e_mbd . update_mb_segmentation_map = 1 ;\n cpi -> mb . e_mbd . update_mb_segmentation_data = 1 ;\n }\n else {\n cpi -> mb . e_mbd . update_mb_segmentation_map = 0 ;\n cpi -> mb . e_mbd . update_mb_segmentation_data = 0 ;\n }\n cpi -> mb . e_mbd . mode_ref_lf_delta_enabled = 0 ;\n cpi -> mb . e_mbd . mode_ref_lf_delta_update = 0 ;\n vpx_memset ( cpi -> mb . e_mbd . ref_lf_deltas , 0 , sizeof ( cpi -> mb . e_mbd . ref_lf_deltas ) ) ;\n vpx_memset ( cpi -> mb . e_mbd . mode_lf_deltas , 0 , sizeof ( cpi -> mb . e_mbd . mode_lf_deltas ) ) ;\n vpx_memset ( cpi -> mb . e_mbd . last_ref_lf_deltas , 0 , sizeof ( cpi -> mb . e_mbd . ref_lf_deltas ) ) ;\n vpx_memset ( cpi -> mb . e_mbd . last_mode_lf_deltas , 0 , sizeof ( cpi -> mb . e_mbd . mode_lf_deltas ) ) ;\n set_default_lf_deltas ( cpi ) ;\n }"}
{"idx": 14351, "target": 0, "func": "const char * TSUrlHttpParamsGet ( TSMBuffer bufp , TSMLoc obj , int * length ) {\n return URLPartGet ( bufp , obj , length , & URL : : params_get ) ;\n }"}
{"idx": 14352, "target": 0, "func": "void mime_hdr_field_attach ( MIMEHdrImpl * mh , MIMEField * field , int check_for_dups , MIMEField * prev_dup ) {\n MIME_HDR_SANITY_CHECK ( mh ) ;\n if ( ! field -> is_detached ( ) ) {\n return ;\n }\n ink_assert ( field -> m_ptr_name != nullptr ) ;\n if ( check_for_dups || ( prev_dup && ( ! prev_dup -> is_dup_head ( ) ) ) ) {\n int length ;\n const char * name = mime_field_name_get ( field , & length ) ;\n prev_dup = mime_hdr_field_find ( mh , name , length ) ;\n ink_assert ( ( prev_dup == nullptr ) || ( prev_dup -> is_dup_head ( ) ) ) ;\n }\n field -> m_readiness = MIME_FIELD_SLOT_READINESS_LIVE ;\n if ( prev_dup ) {\n MIMEField * next_dup ;\n int field_slotnum , prev_slotnum , next_slotnum ;\n field_slotnum = mime_hdr_field_slotnum ( mh , field ) ;\n prev_slotnum = mime_hdr_field_slotnum ( mh , prev_dup ) ;\n next_dup = prev_dup -> m_next_dup ;\n next_slotnum = ( next_dup ? mime_hdr_field_slotnum ( mh , next_dup ) : - 1 ) ;\n ink_assert ( field_slotnum != prev_slotnum ) ;\n while ( prev_slotnum < field_slotnum ) {\n if ( next_dup == nullptr ) {\n break ;\n }\n if ( next_slotnum > field_slotnum ) {\n break ;\n }\n prev_dup = next_dup ;\n prev_slotnum = next_slotnum ;\n next_dup = prev_dup -> m_next_dup ;\n }\n if ( prev_slotnum > field_slotnum ) {\n field -> m_flags = ( field -> m_flags | MIME_FIELD_SLOT_FLAGS_DUP_HEAD ) ;\n field -> m_next_dup = prev_dup ;\n prev_dup -> m_flags = ( prev_dup -> m_flags & ~ MIME_FIELD_SLOT_FLAGS_DUP_HEAD ) ;\n mime_hdr_set_accelerators_and_presence_bits ( mh , field ) ;\n }\n else {\n ink_assert ( prev_slotnum < field_slotnum ) ;\n ink_assert ( ( next_dup == nullptr ) || ( next_slotnum > field_slotnum ) ) ;\n field -> m_flags = ( field -> m_flags & ~ MIME_FIELD_SLOT_FLAGS_DUP_HEAD ) ;\n ink_assert ( ( next_dup == nullptr ) || next_dup -> is_live ( ) ) ;\n prev_dup -> m_next_dup = field ;\n field -> m_next_dup = next_dup ;\n }\n }\n else {\n field -> m_flags = ( field -> m_flags | MIME_FIELD_SLOT_FLAGS_DUP_HEAD ) ;\n mime_hdr_set_accelerators_and_presence_bits ( mh , field ) ;\n }\n ink_assert ( field -> is_live ( ) ) ;\n if ( field -> m_ptr_value && field -> is_cooked ( ) ) {\n mh -> recompute_cooked_stuff ( field ) ;\n }\n MIME_HDR_SANITY_CHECK ( mh ) ;\n }"}
{"idx": 14353, "target": 0, "func": "static VALUE cState_depth ( VALUE self ) {\n GET_STATE ( self ) ;\n return LONG2FIX ( state -> depth ) ;\n }"}
{"idx": 14354, "target": 0, "func": "static int rv34_decode_intra_macroblock ( RV34DecContext * r , int8_t * intra_types ) {\n MpegEncContext * s = & r -> s ;\n int cbp , dist ;\n int mb_pos = s -> mb_x + s -> mb_y * s -> mb_stride ;\n memset ( r -> avail_cache , 0 , sizeof ( r -> avail_cache ) ) ;\n fill_rectangle ( r -> avail_cache + 6 , 2 , 2 , 4 , 1 , 4 ) ;\n dist = ( s -> mb_x - s -> resync_mb_x ) + ( s -> mb_y - s -> resync_mb_y ) * s -> mb_width ;\n if ( s -> mb_x && dist ) r -> avail_cache [ 5 ] = r -> avail_cache [ 9 ] = s -> current_picture_ptr -> mb_type [ mb_pos - 1 ] ;\n if ( dist >= s -> mb_width ) r -> avail_cache [ 2 ] = r -> avail_cache [ 3 ] = s -> current_picture_ptr -> mb_type [ mb_pos - s -> mb_stride ] ;\n if ( ( ( s -> mb_x + 1 ) < s -> mb_width ) && dist >= s -> mb_width - 1 ) r -> avail_cache [ 4 ] = s -> current_picture_ptr -> mb_type [ mb_pos - s -> mb_stride + 1 ] ;\n if ( s -> mb_x && dist > s -> mb_width ) r -> avail_cache [ 1 ] = s -> current_picture_ptr -> mb_type [ mb_pos - s -> mb_stride - 1 ] ;\n s -> qscale = r -> si . quant ;\n cbp = rv34_decode_intra_mb_header ( r , intra_types ) ;\n r -> cbp_luma [ mb_pos ] = cbp ;\n r -> cbp_chroma [ mb_pos ] = cbp >> 16 ;\n r -> deblock_coefs [ mb_pos ] = 0xFFFF ;\n s -> current_picture_ptr -> qscale_table [ mb_pos ] = s -> qscale ;\n if ( cbp == - 1 ) return - 1 ;\n if ( r -> is16 ) {\n rv34_output_i16x16 ( r , intra_types , cbp ) ;\n return 0 ;\n }\n rv34_output_intra ( r , intra_types , cbp ) ;\n return 0 ;\n }"}
{"idx": 14355, "target": 0, "func": "static inline void writer_print_section_header ( WriterContext * wctx , int section_id ) {\n int parent_section_id ;\n wctx -> level ++ ;\n av_assert0 ( wctx -> level < SECTION_MAX_NB_LEVELS ) ;\n parent_section_id = wctx -> level ? ( wctx -> section [ wctx -> level - 1 ] ) -> id : SECTION_ID_NONE ;\n wctx -> nb_item [ wctx -> level ] = 0 ;\n wctx -> section [ wctx -> level ] = & wctx -> sections [ section_id ] ;\n if ( section_id == SECTION_ID_PACKETS_AND_FRAMES ) {\n wctx -> nb_section_packet = wctx -> nb_section_frame = wctx -> nb_section_packet_frame = 0 ;\n }\n else if ( parent_section_id == SECTION_ID_PACKETS_AND_FRAMES ) {\n wctx -> nb_section_packet_frame = section_id == SECTION_ID_PACKET ? wctx -> nb_section_packet : wctx -> nb_section_frame ;\n }\n if ( wctx -> writer -> print_section_header ) wctx -> writer -> print_section_header ( wctx ) ;\n }"}
{"idx": 14356, "target": 0, "func": "static guint16 de_hlc ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n curr_offset = offset ;\n dissect_q931_high_layer_compat_ie ( tvb , offset , len , tree ) ;\n curr_offset = curr_offset + len ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 14357, "target": 0, "func": "void e1000e_core_pci_uninit ( E1000ECore * core ) {\n int i ;\n timer_del ( core -> autoneg_timer ) ;\n timer_free ( core -> autoneg_timer ) ;\n e1000e_intrmgr_pci_unint ( core ) ;\n qemu_del_vm_change_state_handler ( core -> vmstate ) ;\n for ( i = 0 ;\n i < E1000E_NUM_QUEUES ;\n i ++ ) {\n net_tx_pkt_reset ( core -> tx [ i ] . tx_pkt ) ;\n net_tx_pkt_uninit ( core -> tx [ i ] . tx_pkt ) ;\n }\n net_rx_pkt_uninit ( core -> rx_pkt ) ;\n }"}
{"idx": 14358, "target": 0, "func": "static ENUM_PTRS_WITH ( device_memory_enum_ptrs , gx_device_memory * mptr ) {\n return ENUM_USING ( st_device_forward , vptr , sizeof ( gx_device_forward ) , index - 3 ) ;\n }"}
{"idx": 14359, "target": 0, "func": "void do_chmod_file ( struct st_command * command ) {\n long mode = 0 ;\n int err_code ;\n static DYNAMIC_STRING ds_mode ;\n static DYNAMIC_STRING ds_file ;\n const struct command_arg chmod_file_args [ ] = {\n {\n \"mode\" , ARG_STRING , TRUE , & ds_mode , \"Mode of file(octal) ex. 0660\" }\n , {\n \"filename\" , ARG_STRING , TRUE , & ds_file , \"Filename of file to modify\" }\n }\n ;\n DBUG_ENTER ( \"do_chmod_file\" ) ;\n check_command_args ( command , command -> first_argument , chmod_file_args , sizeof ( chmod_file_args ) / sizeof ( struct command_arg ) , ' ' ) ;\n if ( ds_mode . length != 4 || str2int ( ds_mode . str , 8 , 0 , INT_MAX , & mode ) == NullS ) die ( \"You must write a 4 digit octal number for mode\" ) ;\n DBUG_PRINT ( \"info\" , ( \"chmod %o %s\" , ( uint ) mode , ds_file . str ) ) ;\n err_code = chmod ( ds_file . str , mode ) ;\n if ( err_code < 0 ) err_code = 1 ;\n handle_command_error ( command , err_code , errno ) ;\n dynstr_free ( & ds_mode ) ;\n dynstr_free ( & ds_file ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 14360, "target": 0, "func": "static void init_signal_handling ( void ) {\n struct sigaction sa ;\n DBUG_ENTER ( \"init_signal_handling\" ) ;\n # ifdef HAVE_STACKTRACE my_init_stacktrace ( ) ;\n # endif sa . sa_flags = SA_RESETHAND | SA_NODEFER ;\n sigemptyset ( & sa . sa_mask ) ;\n sigprocmask ( SIG_SETMASK , & sa . sa_mask , NULL ) ;\n sa . sa_handler = signal_handler ;\n sigaction ( SIGSEGV , & sa , NULL ) ;\n sigaction ( SIGABRT , & sa , NULL ) ;\n # ifdef SIGBUS sigaction ( SIGBUS , & sa , NULL ) ;\n # endif sigaction ( SIGILL , & sa , NULL ) ;\n sigaction ( SIGFPE , & sa , NULL ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 14361, "target": 0, "func": "void PNGAPI png_set_sRGB_gAMA_and_cHRM ( png_structp png_ptr , png_infop info_ptr , int intent ) {\n # ifdef PNG_gAMA_SUPPORTED # ifdef PNG_FLOATING_POINT_SUPPORTED float file_gamma ;\n # endif # ifdef PNG_FIXED_POINT_SUPPORTED png_fixed_point int_file_gamma ;\n # endif # endif # ifdef PNG_cHRM_SUPPORTED # ifdef PNG_FLOATING_POINT_SUPPORTED float white_x , white_y , red_x , red_y , green_x , green_y , blue_x , blue_y ;\n # endif # ifdef PNG_FIXED_POINT_SUPPORTED png_fixed_point int_white_x , int_white_y , int_red_x , int_red_y , int_green_x , int_green_y , int_blue_x , int_blue_y ;\n # endif # endif png_debug1 ( 1 , \"in %s storage function\" , \"sRGB_gAMA_and_cHRM\" ) ;\n if ( png_ptr == NULL || info_ptr == NULL ) return ;\n png_set_sRGB ( png_ptr , info_ptr , intent ) ;\n # ifdef PNG_gAMA_SUPPORTED # ifdef PNG_FLOATING_POINT_SUPPORTED file_gamma = ( float ) .45455 ;\n png_set_gAMA ( png_ptr , info_ptr , file_gamma ) ;\n # endif # ifdef PNG_FIXED_POINT_SUPPORTED int_file_gamma = 45455L ;\n png_set_gAMA_fixed ( png_ptr , info_ptr , int_file_gamma ) ;\n # endif # endif # ifdef PNG_cHRM_SUPPORTED # ifdef PNG_FIXED_POINT_SUPPORTED int_white_x = 31270L ;\n int_white_y = 32900L ;\n int_red_x = 64000L ;\n int_red_y = 33000L ;\n int_green_x = 30000L ;\n int_green_y = 60000L ;\n int_blue_x = 15000L ;\n int_blue_y = 6000L ;\n png_set_cHRM_fixed ( png_ptr , info_ptr , int_white_x , int_white_y , int_red_x , int_red_y , int_green_x , int_green_y , int_blue_x , int_blue_y ) ;\n # endif # ifdef PNG_FLOATING_POINT_SUPPORTED white_x = ( float ) .3127 ;\n white_y = ( float ) .3290 ;\n red_x = ( float ) .64 ;\n red_y = ( float ) .33 ;\n green_x = ( float ) .30 ;\n green_y = ( float ) .60 ;\n blue_x = ( float ) .15 ;\n blue_y = ( float ) .06 ;\n png_set_cHRM ( png_ptr , info_ptr , white_x , white_y , red_x , red_y , green_x , green_y , blue_x , blue_y ) ;\n # endif # endif }"}
{"idx": 14362, "target": 1, "func": "void vp9_mv_pred ( VP9_COMP * cpi , MACROBLOCK * x , uint8_t * ref_y_buffer , int ref_y_stride , int ref_frame , BLOCK_SIZE block_size ) {\n MACROBLOCKD * xd = & x -> e_mbd ;\n MB_MODE_INFO * mbmi = & xd -> mi [ 0 ] -> mbmi ;\n int i ;\n int zero_seen = 0 ;\n int best_index = 0 ;\n int best_sad = INT_MAX ;\n int this_sad = INT_MAX ;\n int max_mv = 0 ;\n uint8_t * src_y_ptr = x -> plane [ 0 ] . src . buf ;\n uint8_t * ref_y_ptr ;\n const int num_mv_refs = MAX_MV_REF_CANDIDATES + ( cpi -> sf . adaptive_motion_search && block_size < cpi -> sf . max_partition_size ) ;\n MV pred_mv [ 3 ] ;\n pred_mv [ 0 ] = mbmi -> ref_mvs [ ref_frame ] [ 0 ] . as_mv ;\n pred_mv [ 1 ] = mbmi -> ref_mvs [ ref_frame ] [ 1 ] . as_mv ;\n pred_mv [ 2 ] = x -> pred_mv [ ref_frame ] ;\n for ( i = 0 ;\n i < num_mv_refs ;\n ++ i ) {\n const MV * this_mv = & pred_mv [ i ] ;\n max_mv = MAX ( max_mv , MAX ( abs ( this_mv -> row ) , abs ( this_mv -> col ) ) >> 3 ) ;\n if ( is_zero_mv ( this_mv ) && zero_seen ) continue ;\n zero_seen |= is_zero_mv ( this_mv ) ;\n ref_y_ptr = & ref_y_buffer [ ref_y_stride * ( this_mv -> row >> 3 ) + ( this_mv -> col >> 3 ) ] ;\n this_sad = cpi -> fn_ptr [ block_size ] . sdf ( src_y_ptr , x -> plane [ 0 ] . src . stride , ref_y_ptr , ref_y_stride ) ;\n if ( this_sad < best_sad ) {\n best_sad = this_sad ;\n best_index = i ;\n }\n }\n x -> mv_best_ref_index [ ref_frame ] = best_index ;\n x -> max_mv_context [ ref_frame ] = max_mv ;\n x -> pred_mv_sad [ ref_frame ] = best_sad ;\n }"}
{"idx": 14363, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , IgnoreProtocolHandler ) {\n registry ( ) -> OnIgnoreRegisterProtocolHandler ( test_protocol_handler ( ) ) ;\n ASSERT_TRUE ( registry ( ) -> IsIgnored ( test_protocol_handler ( ) ) ) ;\n registry ( ) -> RemoveIgnoredHandler ( test_protocol_handler ( ) ) ;\n ASSERT_FALSE ( registry ( ) -> IsIgnored ( test_protocol_handler ( ) ) ) ;\n }"}
{"idx": 14364, "target": 1, "func": "static int com_charset ( String * buffer __attribute__ ( ( unused ) ) , char * line ) {\n char buff [ 256 ] , * param ;\n CHARSET_INFO * new_cs ;\n strmake_buf ( buff , line ) ;\n param = get_arg ( buff , 0 ) ;\n if ( ! param || ! * param ) {\n return put_info ( \"Usage: \\\\C charset_name | charset charset_name\" , INFO_ERROR , 0 ) ;\n }\n new_cs = get_charset_by_csname ( param , MY_CS_PRIMARY , MYF ( MY_WME ) ) ;\n if ( new_cs ) {\n charset_info = new_cs ;\n mysql_set_character_set ( & mysql , charset_info -> csname ) ;\n default_charset = ( char * ) charset_info -> csname ;\n put_info ( \"Charset changed\" , INFO_INFO ) ;\n }\n else put_info ( \"Charset is not found\" , INFO_INFO ) ;\n return 0 ;\n }"}
{"idx": 14365, "target": 0, "func": "static int dissect_h245_T_repeatCount ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_repeatCount , T_repeatCount_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 14366, "target": 1, "func": "static void fill_decode_neighbors ( H264Context * h , int mb_type ) {\n const int mb_xy = h -> mb_xy ;\n int topleft_xy , top_xy , topright_xy , left_xy [ LEFT_MBS ] ;\n static const uint8_t left_block_options [ 4 ] [ 32 ] = {\n {\n 0 , 1 , 2 , 3 , 7 , 10 , 8 , 11 , 3 + 0 * 4 , 3 + 1 * 4 , 3 + 2 * 4 , 3 + 3 * 4 , 1 + 4 * 4 , 1 + 8 * 4 , 1 + 5 * 4 , 1 + 9 * 4 }\n , {\n 2 , 2 , 3 , 3 , 8 , 11 , 8 , 11 , 3 + 2 * 4 , 3 + 2 * 4 , 3 + 3 * 4 , 3 + 3 * 4 , 1 + 5 * 4 , 1 + 9 * 4 , 1 + 5 * 4 , 1 + 9 * 4 }\n , {\n 0 , 0 , 1 , 1 , 7 , 10 , 7 , 10 , 3 + 0 * 4 , 3 + 0 * 4 , 3 + 1 * 4 , 3 + 1 * 4 , 1 + 4 * 4 , 1 + 8 * 4 , 1 + 4 * 4 , 1 + 8 * 4 }\n , {\n 0 , 2 , 0 , 2 , 7 , 10 , 7 , 10 , 3 + 0 * 4 , 3 + 2 * 4 , 3 + 0 * 4 , 3 + 2 * 4 , 1 + 4 * 4 , 1 + 8 * 4 , 1 + 4 * 4 , 1 + 8 * 4 }\n }\n ;\n h -> topleft_partition = - 1 ;\n top_xy = mb_xy - ( h -> mb_stride << MB_FIELD ) ;\n topleft_xy = top_xy - 1 ;\n topright_xy = top_xy + 1 ;\n left_xy [ LBOT ] = left_xy [ LTOP ] = mb_xy - 1 ;\n h -> left_block = left_block_options [ 0 ] ;\n if ( FRAME_MBAFF ) {\n const int left_mb_field_flag = IS_INTERLACED ( h -> cur_pic . f . mb_type [ mb_xy - 1 ] ) ;\n const int curr_mb_field_flag = IS_INTERLACED ( mb_type ) ;\n if ( h -> mb_y & 1 ) {\n if ( left_mb_field_flag != curr_mb_field_flag ) {\n left_xy [ LBOT ] = left_xy [ LTOP ] = mb_xy - h -> mb_stride - 1 ;\n if ( curr_mb_field_flag ) {\n left_xy [ LBOT ] += h -> mb_stride ;\n h -> left_block = left_block_options [ 3 ] ;\n }\n else {\n topleft_xy += h -> mb_stride ;\n h -> topleft_partition = 0 ;\n h -> left_block = left_block_options [ 1 ] ;\n }\n }\n }\n else {\n if ( curr_mb_field_flag ) {\n topleft_xy += h -> mb_stride & ( ( ( h -> cur_pic . f . mb_type [ top_xy - 1 ] >> 7 ) & 1 ) - 1 ) ;\n topright_xy += h -> mb_stride & ( ( ( h -> cur_pic . f . mb_type [ top_xy + 1 ] >> 7 ) & 1 ) - 1 ) ;\n top_xy += h -> mb_stride & ( ( ( h -> cur_pic . f . mb_type [ top_xy ] >> 7 ) & 1 ) - 1 ) ;\n }\n if ( left_mb_field_flag != curr_mb_field_flag ) {\n if ( curr_mb_field_flag ) {\n left_xy [ LBOT ] += h -> mb_stride ;\n h -> left_block = left_block_options [ 3 ] ;\n }\n else {\n h -> left_block = left_block_options [ 2 ] ;\n }\n }\n }\n }\n h -> topleft_mb_xy = topleft_xy ;\n h -> top_mb_xy = top_xy ;\n h -> topright_mb_xy = topright_xy ;\n h -> left_mb_xy [ LTOP ] = left_xy [ LTOP ] ;\n h -> left_mb_xy [ LBOT ] = left_xy [ LBOT ] ;\n h -> topleft_type = h -> cur_pic . f . mb_type [ topleft_xy ] ;\n h -> top_type = h -> cur_pic . f . mb_type [ top_xy ] ;\n h -> topright_type = h -> cur_pic . f . mb_type [ topright_xy ] ;\n h -> left_type [ LTOP ] = h -> cur_pic . f . mb_type [ left_xy [ LTOP ] ] ;\n h -> left_type [ LBOT ] = h -> cur_pic . f . mb_type [ left_xy [ LBOT ] ] ;\n if ( FMO ) {\n if ( h -> slice_table [ topleft_xy ] != h -> slice_num ) h -> topleft_type = 0 ;\n if ( h -> slice_table [ top_xy ] != h -> slice_num ) h -> top_type = 0 ;\n if ( h -> slice_table [ left_xy [ LTOP ] ] != h -> slice_num ) h -> left_type [ LTOP ] = h -> left_type [ LBOT ] = 0 ;\n }\n else {\n if ( h -> slice_table [ topleft_xy ] != h -> slice_num ) {\n h -> topleft_type = 0 ;\n if ( h -> slice_table [ top_xy ] != h -> slice_num ) h -> top_type = 0 ;\n if ( h -> slice_table [ left_xy [ LTOP ] ] != h -> slice_num ) h -> left_type [ LTOP ] = h -> left_type [ LBOT ] = 0 ;\n }\n }\n if ( h -> slice_table [ topright_xy ] != h -> slice_num ) h -> topright_type = 0 ;\n }"}
{"idx": 14367, "target": 1, "func": "static UChar32 _UTF16GetNextUChar ( UConverterToUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n switch ( pArgs -> converter -> mode ) {\n case 8 : return _UTF16BEGetNextUChar ( pArgs , pErrorCode ) ;\n case 9 : return _UTF16LEGetNextUChar ( pArgs , pErrorCode ) ;\n default : return UCNV_GET_NEXT_UCHAR_USE_TO_U ;\n }\n }"}
{"idx": 14368, "target": 0, "func": "static int dumptype2glyphs ( SplineFont * sf , struct alltabs * at ) {\n int i ;\n struct pschars * subrs , * chrs ;\n at -> cfff = tmpfile ( ) ;\n at -> sidf = tmpfile ( ) ;\n at -> sidh = tmpfile ( ) ;\n at -> charset = tmpfile ( ) ;\n at -> encoding = tmpfile ( ) ;\n at -> private = tmpfile ( ) ;\n dumpcffheader ( at -> cfff ) ;\n dumpcffnames ( sf , at -> cfff ) ;\n dumpcffcharset ( sf , at ) ;\n ff_progress_change_stages ( 2 + at -> gi . strikecnt ) ;\n ATFigureDefWidth ( sf , at , - 1 ) ;\n if ( ( chrs = SplineFont2ChrsSubrs2 ( sf , at -> nomwid , at -> defwid , at -> gi . bygid , at -> gi . gcnt , at -> gi . flags , & subrs , at -> gi . layer ) ) == NULL ) return ( false ) ;\n dumpcffprivate ( sf , at , - 1 , subrs -> next ) ;\n if ( subrs -> next != 0 ) _dumpcffstrings ( at -> private , subrs ) ;\n ff_progress_next_stage ( ) ;\n at -> charstrings = dumpcffstrings ( chrs ) ;\n PSCharsFree ( subrs ) ;\n if ( at -> charstrings == NULL ) return ( false ) ;\n if ( at -> format == ff_cff && ! isStdEncoding ( sf , at -> map ) ) dumpcffencoding ( sf , at ) ;\n dumpcfftopdict ( sf , at ) ;\n finishup ( sf , at ) ;\n at -> cfflen = ftell ( at -> cfff ) ;\n if ( at -> cfflen & 3 ) {\n for ( i = 4 - ( at -> cfflen & 3 ) ;\n i > 0 ;\n -- i ) putc ( '\\0' , at -> cfff ) ;\n }\n if ( at -> format != ff_cff ) dumpcffhmtx ( at , sf , false ) ;\n free ( at -> gn_sid ) ;\n at -> gn_sid = NULL ;\n return ( true ) ;\n }"}
{"idx": 14369, "target": 1, "func": "TEST_F ( AutocompleteResultTest , SortAndCullReorderForDefaultMatch ) {\n TestData data [ ] = {\n {\n 0 , 1 , 1300 , true }\n , {\n 1 , 1 , 1200 , true }\n , {\n 2 , 1 , 1100 , true }\n , {\n 3 , 1 , 1000 , true }\n }\n ;\n {\n ACMatches matches ;\n PopulateAutocompleteMatches ( data , arraysize ( data ) , & matches ) ;\n AutocompleteInput input ( base : : string16 ( ) , base : : string16 : : npos , std : : string ( ) , GURL ( ) , OmniboxEventProto : : HOME_PAGE , false , false , false , true , false , TestSchemeClassifier ( ) ) ;\n AutocompleteResult result ;\n result . AppendMatches ( input , matches ) ;\n result . SortAndCull ( input , std : : string ( ) , template_url_service_ . get ( ) ) ;\n AssertResultMatches ( result , data , 4 ) ;\n }\n {\n ACMatches matches ;\n PopulateAutocompleteMatches ( data , arraysize ( data ) , & matches ) ;\n matches [ 0 ] . allowed_to_be_default_match = false ;\n matches [ 1 ] . allowed_to_be_default_match = false ;\n AutocompleteInput input ( base : : string16 ( ) , base : : string16 : : npos , std : : string ( ) , GURL ( ) , OmniboxEventProto : : HOME_PAGE , false , false , false , true , false , TestSchemeClassifier ( ) ) ;\n AutocompleteResult result ;\n result . AppendMatches ( input , matches ) ;\n result . SortAndCull ( input , std : : string ( ) , template_url_service_ . get ( ) ) ;\n ASSERT_EQ ( 4U , result . size ( ) ) ;\n EXPECT_EQ ( \"http://c/\" , result . match_at ( 0 ) -> destination_url . spec ( ) ) ;\n EXPECT_EQ ( \"http://a/\" , result . match_at ( 1 ) -> destination_url . spec ( ) ) ;\n EXPECT_EQ ( \"http://b/\" , result . match_at ( 2 ) -> destination_url . spec ( ) ) ;\n EXPECT_EQ ( \"http://d/\" , result . match_at ( 3 ) -> destination_url . spec ( ) ) ;\n }\n }"}
{"idx": 14370, "target": 1, "func": "static int zrsdparams ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n ref * pFilter ;\n ref * pDecodeParms ;\n int Intent = 0 ;\n bool AsyncRead ;\n ref empty_array , filter1_array , parms1_array ;\n uint i ;\n int code ;\n make_empty_array ( & empty_array , a_readonly ) ;\n if ( dict_find_string ( op , \"Filter\" , & pFilter ) > 0 ) {\n if ( ! r_is_array ( pFilter ) ) {\n if ( ! r_has_type ( pFilter , t_name ) ) return_error ( gs_error_typecheck ) ;\n make_array ( & filter1_array , a_readonly , 1 , pFilter ) ;\n pFilter = & filter1_array ;\n }\n }\n else pFilter = & empty_array ;\n if ( pFilter != & empty_array && dict_find_string ( op , \"DecodeParms\" , & pDecodeParms ) > 0 ) {\n if ( pFilter == & filter1_array ) {\n make_array ( & parms1_array , a_readonly , 1 , pDecodeParms ) ;\n pDecodeParms = & parms1_array ;\n }\n else if ( ! r_is_array ( pDecodeParms ) ) return_error ( gs_error_typecheck ) ;\n else if ( r_size ( pFilter ) != r_size ( pDecodeParms ) ) return_error ( gs_error_rangecheck ) ;\n }\n else pDecodeParms = 0 ;\n for ( i = 0 ;\n i < r_size ( pFilter ) ;\n ++ i ) {\n ref f , fname , dp ;\n array_get ( imemory , pFilter , ( long ) i , & f ) ;\n if ( ! r_has_type ( & f , t_name ) ) return_error ( gs_error_typecheck ) ;\n name_string_ref ( imemory , & f , & fname ) ;\n if ( r_size ( & fname ) < 6 || memcmp ( fname . value . bytes + r_size ( & fname ) - 6 , \"Decode\" , 6 ) ) return_error ( gs_error_rangecheck ) ;\n if ( pDecodeParms ) {\n array_get ( imemory , pDecodeParms , ( long ) i , & dp ) ;\n if ( ! ( r_has_type ( & dp , t_dictionary ) || r_has_type ( & dp , t_null ) ) ) return_error ( gs_error_typecheck ) ;\n }\n }\n code = dict_int_param ( op , \"Intent\" , 0 , 3 , 0 , & Intent ) ;\n if ( code < 0 && code != gs_error_rangecheck ) return code ;\n if ( ( code = dict_bool_param ( op , \"AsyncRead\" , false , & AsyncRead ) ) < 0 ) return code ;\n push ( 1 ) ;\n op [ - 1 ] = * pFilter ;\n if ( pDecodeParms ) * op = * pDecodeParms ;\n else make_null ( op ) ;\n return 0 ;\n }"}
{"idx": 14371, "target": 0, "func": "static void updateSrc ( UBiDiTransform * pTransform , const UChar * newSrc , uint32_t newLength , uint32_t newSize , UErrorCode * pErrorCode ) {\n if ( newSize < newLength ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n return ;\n }\n if ( newSize > pTransform -> srcSize ) {\n newSize += 50 ;\n if ( pTransform -> src != NULL ) {\n uprv_free ( pTransform -> src ) ;\n pTransform -> src = NULL ;\n }\n pTransform -> src = ( UChar * ) uprv_malloc ( newSize * sizeof ( UChar ) ) ;\n if ( pTransform -> src == NULL ) {\n * pErrorCode = U_MEMORY_ALLOCATION_ERROR ;\n return ;\n }\n pTransform -> srcSize = newSize ;\n }\n u_strncpy ( pTransform -> src , newSrc , newLength ) ;\n pTransform -> srcLength = u_terminateUChars ( pTransform -> src , pTransform -> srcSize , newLength , pErrorCode ) ;\n }"}
{"idx": 14372, "target": 0, "func": "static int dissect_h245_Re_type ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_Re_type , Re_type_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 14373, "target": 0, "func": "static uint64_t pxa2xx_fir_read ( void * opaque , hwaddr addr , unsigned size ) {\n PXA2xxFIrState * s = ( PXA2xxFIrState * ) opaque ;\n uint8_t ret ;\n switch ( addr ) {\n case ICCR0 : return s -> control [ 0 ] ;\n case ICCR1 : return s -> control [ 1 ] ;\n case ICCR2 : return s -> control [ 2 ] ;\n case ICDR : s -> status [ 0 ] &= ~ 0x01 ;\n s -> status [ 1 ] &= ~ 0x72 ;\n if ( s -> rx_len ) {\n s -> rx_len -- ;\n ret = s -> rx_fifo [ s -> rx_start ++ ] ;\n s -> rx_start &= 63 ;\n pxa2xx_fir_update ( s ) ;\n return ret ;\n }\n printf ( \"%s: Rx FIFO underrun.\\n\" , __FUNCTION__ ) ;\n break ;\n case ICSR0 : return s -> status [ 0 ] ;\n case ICSR1 : return s -> status [ 1 ] | ( 1 << 3 ) ;\n case ICFOR : return s -> rx_len ;\n default : printf ( \"%s: Bad register \" REG_FMT \"\\n\" , __FUNCTION__ , addr ) ;\n break ;\n }\n return 0 ;\n }"}
{"idx": 14374, "target": 0, "func": "static void create_shutdown_thread ( ) {\n # ifdef __WIN__ hEventShutdown = CreateEvent ( 0 , FALSE , FALSE , shutdown_event_name ) ;\n pthread_t hThread ;\n int error ;\n if ( ( error = mysql_thread_create ( key_thread_handle_shutdown , & hThread , & connection_attrib , handle_shutdown , 0 ) ) ) sql_print_warning ( \"Can't create thread to handle shutdown requests\" \" (errno= %d)\" , error ) ;\n Service . SetShutdownEvent ( hEventShutdown ) ;\n # endif }"}
{"idx": 14375, "target": 0, "func": "extern int as_mysql_fini_ctld ( mysql_conn_t * mysql_conn , slurmdb_cluster_rec_t * cluster_rec ) {\n int rc = SLURM_SUCCESS ;\n time_t now = time ( NULL ) ;\n char * query = NULL ;\n bool free_it = false ;\n if ( check_connection ( mysql_conn ) != SLURM_SUCCESS ) return ESLURM_DB_CONNECTION ;\n query = xstrdup_printf ( \"update %s set mod_time=%ld, control_host='', \" \"control_port=0 where name='%s' && \" \"control_host='%s' && control_port=%u;\n\" , cluster_table , now , cluster_rec -> name , cluster_rec -> control_host , cluster_rec -> control_port ) ;\n if ( debug_flags & DEBUG_FLAG_DB_EVENT ) DB_DEBUG ( mysql_conn -> conn , \"query\\n%s\" , query ) ;\n rc = mysql_db_query ( mysql_conn , query ) ;\n xfree ( query ) ;\n if ( rc != SLURM_SUCCESS ) return SLURM_ERROR ;\n if ( ! last_affected_rows ( mysql_conn ) || ( slurmdbd_conf && ! slurmdbd_conf -> track_ctld ) ) return rc ;\n if ( ! cluster_rec -> tres_str ) {\n free_it = true ;\n as_mysql_cluster_tres ( mysql_conn , cluster_rec -> control_host , & cluster_rec -> tres_str , now ) ;\n }\n if ( ! cluster_rec -> tres_str ) return rc ;\n query = xstrdup_printf ( \"insert into \\\"%s_%s\\\" (tres, state, time_start, reason) \" \"values ('%s', %u, %ld, 'slurmctld disconnect');\n\" , cluster_rec -> name , event_table , cluster_rec -> tres_str , NODE_STATE_DOWN , ( long ) now ) ;\n if ( free_it ) xfree ( cluster_rec -> tres_str ) ;\n if ( debug_flags & DEBUG_FLAG_DB_EVENT ) DB_DEBUG ( mysql_conn -> conn , \"query\\n%s\" , query ) ;\n rc = mysql_db_query ( mysql_conn , query ) ;\n xfree ( query ) ;\n return rc ;\n }"}
{"idx": 14376, "target": 0, "func": "ASN1_BIT_STRING * c2i_ASN1_BIT_STRING ( ASN1_BIT_STRING * * a , const unsigned char * * pp , long len ) {\n ASN1_BIT_STRING * ret = NULL ;\n const unsigned char * p ;\n unsigned char * s ;\n int i ;\n if ( len < 1 ) {\n i = ASN1_R_STRING_TOO_SHORT ;\n goto err ;\n }\n if ( ( a == NULL ) || ( ( * a ) == NULL ) ) {\n if ( ( ret = M_ASN1_BIT_STRING_new ( ) ) == NULL ) return ( NULL ) ;\n }\n else ret = ( * a ) ;\n p = * pp ;\n i = * ( p ++ ) ;\n if ( i > 7 ) {\n i = ASN1_R_INVALID_BIT_STRING_BITS_LEFT ;\n goto err ;\n }\n ret -> flags &= ~ ( ASN1_STRING_FLAG_BITS_LEFT | 0x07 ) ;\n ret -> flags |= ( ASN1_STRING_FLAG_BITS_LEFT | i ) ;\n if ( len -- > 1 ) {\n s = ( unsigned char * ) OPENSSL_malloc ( ( int ) len ) ;\n if ( s == NULL ) {\n i = ERR_R_MALLOC_FAILURE ;\n goto err ;\n }\n memcpy ( s , p , ( int ) len ) ;\n s [ len - 1 ] &= ( 0xff << i ) ;\n p += len ;\n }\n else s = NULL ;\n ret -> length = ( int ) len ;\n if ( ret -> data != NULL ) OPENSSL_free ( ret -> data ) ;\n ret -> data = s ;\n ret -> type = V_ASN1_BIT_STRING ;\n if ( a != NULL ) ( * a ) = ret ;\n * pp = p ;\n return ( ret ) ;\n err : ASN1err ( ASN1_F_C2I_ASN1_BIT_STRING , i ) ;\n if ( ( ret != NULL ) && ( ( a == NULL ) || ( * a != ret ) ) ) M_ASN1_BIT_STRING_free ( ret ) ;\n return ( NULL ) ;\n }"}
{"idx": 14377, "target": 1, "func": "int linux_udev_scan_devices ( struct libusb_context * ctx ) {\n struct udev_enumerate * enumerator ;\n struct udev_list_entry * devices , * entry ;\n struct udev_device * udev_dev ;\n const char * sys_name ;\n int r ;\n assert ( udev_ctx != NULL ) ;\n enumerator = udev_enumerate_new ( udev_ctx ) ;\n if ( NULL == enumerator ) {\n usbi_err ( ctx , \"error creating udev enumerator\" ) ;\n return LIBUSB_ERROR_OTHER ;\n }\n udev_enumerate_add_match_subsystem ( enumerator , \"usb\" ) ;\n udev_enumerate_scan_devices ( enumerator ) ;\n devices = udev_enumerate_get_list_entry ( enumerator ) ;\n udev_list_entry_foreach ( entry , devices ) {\n const char * path = udev_list_entry_get_name ( entry ) ;\n uint8_t busnum = 0 , devaddr = 0 ;\n udev_dev = udev_device_new_from_syspath ( udev_ctx , path ) ;\n r = udev_device_info ( ctx , 0 , udev_dev , & busnum , & devaddr , & sys_name ) ;\n if ( r ) {\n udev_device_unref ( udev_dev ) ;\n continue ;\n }\n linux_enumerate_device ( ctx , busnum , devaddr , sys_name ) ;\n udev_device_unref ( udev_dev ) ;\n }\n udev_enumerate_unref ( enumerator ) ;\n return LIBUSB_SUCCESS ;\n }"}
{"idx": 14378, "target": 0, "func": "static void bgr2g ( fz_context * ctx , fz_color_converter * cc , float * dv , const float * sv ) {\n dv [ 0 ] = sv [ 0 ] * 0.11f + sv [ 1 ] * 0.59f + sv [ 2 ] * 0.3f ;\n }"}
{"idx": 14379, "target": 0, "func": "static void ohci_child_detach ( USBPort * port1 , USBDevice * child ) {\n OHCIState * s = port1 -> opaque ;\n ohci_async_cancel_device ( s , child ) ;\n }"}
{"idx": 14380, "target": 0, "func": "void fz_cmm_transform_pixmap ( fz_context * ctx , fz_icclink * link , fz_pixmap * dst , fz_pixmap * src ) {\n if ( ctx && ctx -> colorspace && ctx -> colorspace -> cmm && ctx -> cmm_instance ) ctx -> colorspace -> cmm -> transform_pixmap ( ctx -> cmm_instance , link , dst , src ) ;\n }"}
{"idx": 14381, "target": 1, "func": "static void _HZ_WriteSub ( UConverterFromUnicodeArgs * args , int32_t offsetIndex , UErrorCode * err ) {\n UConverter * cnv = args -> converter ;\n UConverterDataHZ * convData = ( UConverterDataHZ * ) cnv -> extraInfo ;\n char * p ;\n char buffer [ 4 ] ;\n p = buffer ;\n if ( convData -> isTargetUCharDBCS ) {\n * p ++ = UCNV_TILDE ;\n * p ++ = UCNV_CLOSE_BRACE ;\n convData -> isTargetUCharDBCS = FALSE ;\n }\n * p ++ = ( char ) cnv -> subChars [ 0 ] ;\n ucnv_cbFromUWriteBytes ( args , buffer , ( int32_t ) ( p - buffer ) , offsetIndex , err ) ;\n }"}
{"idx": 14382, "target": 0, "func": "int input_DecoderGetCcState ( decoder_t * p_dec , bool * pb_decode , int i_channel ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n * pb_decode = false ;\n if ( i_channel < 0 || i_channel >= 4 || ! p_owner -> cc . pb_present [ i_channel ] ) return VLC_EGENERIC ;\n vlc_mutex_lock ( & p_owner -> lock ) ;\n * pb_decode = p_owner -> cc . pp_decoder [ i_channel ] != NULL ;\n vlc_mutex_unlock ( & p_owner -> lock ) ;\n return VLC_EGENERIC ;\n }"}
{"idx": 14383, "target": 0, "func": "void dynstr_append_sorted ( DYNAMIC_STRING * ds , DYNAMIC_STRING * ds_input , bool keep_header ) {\n unsigned i ;\n char * start = ds_input -> str ;\n DYNAMIC_ARRAY lines ;\n DBUG_ENTER ( \"dynstr_append_sorted\" ) ;\n if ( ! * start ) DBUG_VOID_RETURN ;\n my_init_dynamic_array ( & lines , sizeof ( const char * ) , 32 , 32 ) ;\n if ( keep_header ) {\n while ( * start && * start != '\\n' ) start ++ ;\n start ++ ;\n dynstr_append_mem ( ds , ds_input -> str , start - ds_input -> str ) ;\n }\n while ( * start ) {\n char * line_end = ( char * ) start ;\n while ( * line_end && * line_end != '\\n' ) line_end ++ ;\n * line_end = 0 ;\n if ( insert_dynamic ( & lines , ( uchar * ) & start ) ) die ( \"Out of memory inserting lines to sort\" ) ;\n start = line_end + 1 ;\n }\n qsort ( lines . buffer , lines . elements , sizeof ( char * * ) , ( qsort_cmp ) comp_lines ) ;\n for ( i = 0 ;\n i < lines . elements ;\n i ++ ) {\n const char * * line = dynamic_element ( & lines , i , const char * * ) ;\n dynstr_append ( ds , * line ) ;\n dynstr_append ( ds , \"\\n\" ) ;\n }\n delete_dynamic ( & lines ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 14384, "target": 0, "func": "static gboolean gst_asf_demux_sink_event ( GstPad * pad , GstObject * parent , GstEvent * event ) {\n GstASFDemux * demux ;\n gboolean ret = TRUE ;\n demux = GST_ASF_DEMUX ( parent ) ;\n GST_LOG_OBJECT ( demux , \"handling %s event\" , GST_EVENT_TYPE_NAME ( event ) ) ;\n switch ( GST_EVENT_TYPE ( event ) ) {\n case GST_EVENT_SEGMENT : {\n const GstSegment * segment ;\n gst_event_parse_segment ( event , & segment ) ;\n if ( segment -> format == GST_FORMAT_BYTES ) {\n if ( demux -> packet_size && segment -> start > demux -> data_offset ) demux -> packet = ( segment -> start - demux -> data_offset ) / demux -> packet_size ;\n else demux -> packet = 0 ;\n }\n else if ( segment -> format == GST_FORMAT_TIME ) {\n demux -> packet = - 1 ;\n }\n else {\n GST_WARNING_OBJECT ( demux , \"unsupported newsegment format, ignoring\" ) ;\n gst_event_unref ( event ) ;\n break ;\n }\n if ( segment -> format != demux -> in_segment . format ) gst_segment_init ( & demux -> in_segment , GST_FORMAT_UNDEFINED ) ;\n gst_segment_copy_into ( segment , & demux -> in_segment ) ;\n GST_OBJECT_LOCK ( demux ) ;\n demux -> segment_ts = GST_CLOCK_TIME_NONE ;\n demux -> in_gap = GST_CLOCK_TIME_NONE ;\n demux -> need_newsegment = TRUE ;\n demux -> segment_seqnum = gst_event_get_seqnum ( event ) ;\n gst_asf_demux_reset_stream_state_after_discont ( demux ) ;\n if ( demux -> data_offset > 0 && segment -> start >= demux -> data_offset && demux -> state == GST_ASF_DEMUX_STATE_INDEX ) {\n demux -> state = GST_ASF_DEMUX_STATE_DATA ;\n }\n GST_OBJECT_UNLOCK ( demux ) ;\n gst_event_unref ( event ) ;\n break ;\n }\n case GST_EVENT_EOS : {\n GstFlowReturn flow ;\n if ( demux -> state == GST_ASF_DEMUX_STATE_HEADER ) {\n GST_ELEMENT_ERROR ( demux , STREAM , DEMUX , ( _ ( \"This stream contains no data.\" ) ) , ( \"got eos and didn't receive a complete header object\" ) ) ;\n break ;\n }\n flow = gst_asf_demux_push_complete_payloads ( demux , TRUE ) ;\n if ( ! demux -> activated_streams ) {\n GST_ELEMENT_ERROR ( demux , STREAM , WRONG_TYPE , ( _ ( \"This stream contains no data.\" ) ) , ( \"got eos and didn't receive a complete header object\" ) ) ;\n break ;\n }\n if ( flow < GST_FLOW_EOS || flow == GST_FLOW_NOT_LINKED ) {\n GST_ELEMENT_FLOW_ERROR ( demux , flow ) ;\n break ;\n }\n GST_OBJECT_LOCK ( demux ) ;\n gst_adapter_clear ( demux -> adapter ) ;\n GST_OBJECT_UNLOCK ( demux ) ;\n gst_asf_demux_send_event_unlocked ( demux , event ) ;\n break ;\n }\n case GST_EVENT_FLUSH_STOP : GST_OBJECT_LOCK ( demux ) ;\n gst_asf_demux_reset_stream_state_after_discont ( demux ) ;\n GST_OBJECT_UNLOCK ( demux ) ;\n gst_asf_demux_send_event_unlocked ( demux , event ) ;\n if ( demux -> activated_streams ) demux -> latency = 0 ;\n break ;\n default : ret = gst_pad_event_default ( pad , parent , event ) ;\n break ;\n }\n return ret ;\n }"}
{"idx": 14385, "target": 0, "func": "static char * emnc10_opaque_literal_attr ( tvbuff_t * tvb , guint32 offset , const char * token , guint8 codepage _U_ , guint32 * length ) {\n guint32 data_len = tvb_get_guintvar ( tvb , offset , length ) ;\n char * str = NULL ;\n if ( token && ( strcmp ( token , \"timestamp\" ) == 0 ) ) {\n str = date_time_from_opaque ( tvb , offset + * length , data_len ) ;\n }\n if ( str == NULL ) {\n str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"(%d bytes of unparsed opaque data)\" , data_len ) ;\n }\n * length += data_len ;\n return str ;\n }"}
{"idx": 14386, "target": 0, "func": "char * evhttp_encode_uri ( const char * uri ) {\n struct evbuffer * buf = evbuffer_new ( ) ;\n char * p ;\n for ( p = ( char * ) uri ;\n * p != '\\0' ;\n p ++ ) {\n if ( uri_chars [ ( u_char ) ( * p ) ] ) {\n evbuffer_add ( buf , p , 1 ) ;\n }\n else {\n evbuffer_add_printf ( buf , \"%%%02X\" , ( u_char ) ( * p ) ) ;\n }\n }\n evbuffer_add ( buf , \"\" , 1 ) ;\n p = strdup ( ( char * ) EVBUFFER_DATA ( buf ) ) ;\n evbuffer_free ( buf ) ;\n return ( p ) ;\n }"}
{"idx": 14387, "target": 0, "func": "static void U_CALLCONV UConverter_fromUnicode_CompoundText_OFFSETS ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n UConverter * cnv = args -> converter ;\n uint8_t * target = ( uint8_t * ) args -> target ;\n const uint8_t * targetLimit = ( const uint8_t * ) args -> targetLimit ;\n const UChar * source = args -> source ;\n const UChar * sourceLimit = args -> sourceLimit ;\n UChar32 sourceChar ;\n UBool useFallback = cnv -> useFallback ;\n uint8_t tmpTargetBuffer [ 7 ] ;\n int32_t tmpTargetBufferLength = 0 ;\n COMPOUND_TEXT_CONVERTERS currentState , tmpState ;\n uint32_t pValue ;\n int32_t pValueLength = 0 ;\n int32_t i , n , j ;\n UConverterDataCompoundText * myConverterData = ( UConverterDataCompoundText * ) cnv -> extraInfo ;\n currentState = myConverterData -> state ;\n if ( ( sourceChar = cnv -> fromUChar32 ) != 0 && target < targetLimit ) {\n goto getTrail ;\n }\n while ( source < sourceLimit ) {\n if ( target < targetLimit ) {\n sourceChar = * ( source ++ ) ;\n if ( U16_IS_SURROGATE ( sourceChar ) ) {\n if ( U16_IS_SURROGATE_LEAD ( sourceChar ) ) {\n getTrail : if ( source < sourceLimit ) {\n UChar trail = ( UChar ) * source ;\n if ( U16_IS_TRAIL ( trail ) ) {\n source ++ ;\n sourceChar = U16_GET_SUPPLEMENTARY ( sourceChar , trail ) ;\n cnv -> fromUChar32 = 0x00 ;\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n cnv -> fromUChar32 = sourceChar ;\n break ;\n }\n }\n else {\n cnv -> fromUChar32 = sourceChar ;\n break ;\n }\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n cnv -> fromUChar32 = sourceChar ;\n break ;\n }\n }\n tmpTargetBufferLength = 0 ;\n tmpState = getState ( sourceChar ) ;\n if ( tmpState != DO_SEARCH && currentState != tmpState ) {\n currentState = tmpState ;\n for ( i = 0 ;\n escSeqCompoundText [ currentState ] [ i ] != 0 ;\n i ++ ) {\n tmpTargetBuffer [ tmpTargetBufferLength ++ ] = escSeqCompoundText [ currentState ] [ i ] ;\n }\n }\n if ( tmpState == DO_SEARCH ) {\n for ( i = 1 ;\n i < SEARCH_LENGTH ;\n i ++ ) {\n pValueLength = ucnv_MBCSFromUChar32 ( myConverterData -> myConverterArray [ i ] , sourceChar , & pValue , useFallback ) ;\n if ( pValueLength > 0 ) {\n tmpState = ( COMPOUND_TEXT_CONVERTERS ) i ;\n if ( currentState != tmpState ) {\n currentState = tmpState ;\n for ( j = 0 ;\n escSeqCompoundText [ currentState ] [ j ] != 0 ;\n j ++ ) {\n tmpTargetBuffer [ tmpTargetBufferLength ++ ] = escSeqCompoundText [ currentState ] [ j ] ;\n }\n }\n for ( n = ( pValueLength - 1 ) ;\n n >= 0 ;\n n -- ) {\n tmpTargetBuffer [ tmpTargetBufferLength ++ ] = ( uint8_t ) ( pValue >> ( n * 8 ) ) ;\n }\n break ;\n }\n }\n }\n else if ( tmpState == COMPOUND_TEXT_SINGLE_0 ) {\n tmpTargetBuffer [ tmpTargetBufferLength ++ ] = ( uint8_t ) sourceChar ;\n }\n else {\n pValueLength = ucnv_MBCSFromUChar32 ( myConverterData -> myConverterArray [ currentState ] , sourceChar , & pValue , useFallback ) ;\n if ( pValueLength > 0 ) {\n for ( n = ( pValueLength - 1 ) ;\n n >= 0 ;\n n -- ) {\n tmpTargetBuffer [ tmpTargetBufferLength ++ ] = ( uint8_t ) ( pValue >> ( n * 8 ) ) ;\n }\n }\n }\n for ( i = 0 ;\n i < tmpTargetBufferLength ;\n i ++ ) {\n if ( target < targetLimit ) {\n * target ++ = tmpTargetBuffer [ i ] ;\n }\n else {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n if ( * err == U_BUFFER_OVERFLOW_ERROR ) {\n for ( ;\n i < tmpTargetBufferLength ;\n i ++ ) {\n args -> converter -> charErrorBuffer [ args -> converter -> charErrorBufferLength ++ ] = tmpTargetBuffer [ i ] ;\n }\n }\n }\n else {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n myConverterData -> state = currentState ;\n args -> source = source ;\n args -> target = ( char * ) target ;\n }"}
{"idx": 14388, "target": 0, "func": "static int dissect_pvfs2_lookup_path_request ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n offset = dissect_pvfs_string ( tvb , tree , hf_pvfs_path , offset , NULL ) ;\n offset = dissect_pvfs_fs_id ( tvb , tree , offset ) ;\n offset += 4 ;\n offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"handle\" , NULL ) ;\n offset = dissect_pvfs2_attrmask ( tvb , tree , offset , NULL ) ;\n return offset ;\n }"}
{"idx": 14389, "target": 0, "func": "wtap_open_return_val k12_open ( wtap * wth , int * err , gchar * * err_info ) {\n k12_src_desc_t * rec ;\n guint8 header_buffer [ K12_FILE_HDR_LEN ] ;\n guint8 * read_buffer ;\n guint32 type ;\n long offset ;\n long len ;\n guint port_type ;\n guint32 rec_len ;\n guint32 hwpart_len ;\n guint32 name_len ;\n guint32 stack_len ;\n guint i ;\n k12_t * file_data ;\n # ifdef DEBUG_K12 gchar * env_level = getenv ( \"K12_DEBUG_LEVEL\" ) ;\n env_file = getenv ( \"K12_DEBUG_FILENAME\" ) ;\n if ( env_file ) {\n dbg_out = ws_fopen ( env_file , \"w\" ) ;\n if ( dbg_out == NULL ) {\n dbg_out = stderr ;\n K12_DBG ( 1 , ( \"unable to open K12 DEBUG FILENAME for writing! Logging to standard error\" ) ) ;\n }\n }\n else dbg_out = stderr ;\n if ( env_level ) debug_level = ( unsigned int ) strtoul ( env_level , NULL , 10 ) ;\n K12_DBG ( 1 , ( \"k12_open: ENTER debug_level=%u\" , debug_level ) ) ;\n # endif if ( ! wtap_read_bytes ( wth -> fh , header_buffer , K12_FILE_HDR_LEN , err , err_info ) ) {\n K12_DBG ( 1 , ( \"k12_open: FILE HEADER TOO SHORT OR READ ERROR\" ) ) ;\n if ( * err != WTAP_ERR_SHORT_READ ) {\n return WTAP_OPEN_ERROR ;\n }\n return WTAP_OPEN_NOT_MINE ;\n }\n if ( memcmp ( header_buffer , k12_file_magic , 8 ) != 0 ) {\n K12_DBG ( 1 , ( \"k12_open: BAD MAGIC\" ) ) ;\n return WTAP_OPEN_NOT_MINE ;\n }\n offset = K12_FILE_HDR_LEN ;\n file_data = new_k12_file_data ( ) ;\n file_data -> file_len = pntoh32 ( header_buffer + 0x8 ) ;\n if ( memiszero ( header_buffer + 0x10 , K12_FILE_HDR_LEN - 0x10 ) ) {\n file_data -> num_of_records = pntoh32 ( header_buffer + 0x0C ) ;\n }\n else {\n file_data -> num_of_records = pntoh32 ( header_buffer + K12_FILE_HDR_RECORD_COUNT_1 ) ;\n if ( file_data -> num_of_records != pntoh32 ( header_buffer + K12_FILE_HDR_RECORD_COUNT_2 ) ) {\n * err = WTAP_ERR_BAD_FILE ;\n * err_info = g_strdup_printf ( \"k12: two different record counts, %u at 0x%02x and %u at 0x%02x\" , file_data -> num_of_records , K12_FILE_HDR_RECORD_COUNT_1 , pntoh32 ( header_buffer + K12_FILE_HDR_RECORD_COUNT_2 ) , K12_FILE_HDR_RECORD_COUNT_2 ) ;\n return WTAP_OPEN_ERROR ;\n }\n }\n K12_DBG ( 5 , ( \"k12_open: FILE_HEADER OK: offset=%x file_len=%i records=%i\" , offset , file_data -> file_len , file_data -> num_of_records ) ) ;\n do {\n if ( file_data -> num_of_records == 0 ) {\n * err = WTAP_ERR_SHORT_READ ;\n destroy_k12_file_data ( file_data ) ;\n return WTAP_OPEN_ERROR ;\n }\n len = get_record ( file_data , wth -> fh , offset , FALSE , err , err_info ) ;\n if ( len < 0 ) {\n K12_DBG ( 1 , ( \"k12_open: BAD HEADER RECORD\" , len ) ) ;\n destroy_k12_file_data ( file_data ) ;\n return WTAP_OPEN_ERROR ;\n }\n if ( len == 0 ) {\n K12_DBG ( 1 , ( \"k12_open: BAD HEADER RECORD\" , len ) ) ;\n * err = WTAP_ERR_SHORT_READ ;\n destroy_k12_file_data ( file_data ) ;\n return WTAP_OPEN_ERROR ;\n }\n read_buffer = file_data -> seq_read_buff ;\n rec_len = pntoh32 ( read_buffer + K12_RECORD_LEN ) ;\n if ( rec_len < K12_RECORD_TYPE + 4 ) {\n * err = WTAP_ERR_BAD_FILE ;\n * err_info = g_strdup_printf ( \"k12_open: record length %u < %u\" , rec_len , K12_RECORD_TYPE + 4 ) ;\n return WTAP_OPEN_ERROR ;\n }\n type = pntoh32 ( read_buffer + K12_RECORD_TYPE ) ;\n if ( ( type & K12_MASK_PACKET ) == K12_REC_PACKET || ( type & K12_MASK_PACKET ) == K12_REC_D0020 ) {\n if ( file_seek ( wth -> fh , offset , SEEK_SET , err ) == - 1 ) {\n destroy_k12_file_data ( file_data ) ;\n return WTAP_OPEN_ERROR ;\n }\n K12_DBG ( 5 , ( \"k12_open: FIRST PACKET offset=%x\" , offset ) ) ;\n break ;\n }\n switch ( type ) {\n case K12_REC_SRCDSC : case K12_REC_SRCDSC2 : rec = g_new0 ( k12_src_desc_t , 1 ) ;\n if ( rec_len < K12_SRCDESC_HWPART ) {\n * err = WTAP_ERR_BAD_FILE ;\n * err_info = g_strdup_printf ( \"k12_open: source descriptor record length %u < %u\" , rec_len , K12_SRCDESC_HWPART ) ;\n destroy_k12_file_data ( file_data ) ;\n g_free ( rec ) ;\n return WTAP_OPEN_ERROR ;\n }\n port_type = read_buffer [ K12_SRCDESC_PORT_TYPE ] ;\n hwpart_len = pntoh16 ( read_buffer + K12_SRCDESC_HWPARTLEN ) ;\n name_len = pntoh16 ( read_buffer + K12_SRCDESC_NAMELEN ) ;\n stack_len = pntoh16 ( read_buffer + K12_SRCDESC_STACKLEN ) ;\n rec -> input = pntoh32 ( read_buffer + K12_RECORD_SRC_ID ) ;\n K12_DBG ( 5 , ( \"k12_open: INTERFACE RECORD offset=%x interface=%x\" , offset , rec -> input ) ) ;\n if ( name_len == 0 ) {\n K12_DBG ( 5 , ( \"k12_open: failed (name_len == 0 in source description\" ) ) ;\n destroy_k12_file_data ( file_data ) ;\n g_free ( rec ) ;\n return WTAP_OPEN_NOT_MINE ;\n }\n if ( stack_len == 0 ) {\n K12_DBG ( 5 , ( \"k12_open: failed (stack_len == 0 in source description\" ) ) ;\n destroy_k12_file_data ( file_data ) ;\n g_free ( rec ) ;\n return WTAP_OPEN_NOT_MINE ;\n }\n if ( rec_len < K12_SRCDESC_HWPART + hwpart_len + name_len + stack_len ) {\n * err = WTAP_ERR_BAD_FILE ;\n * err_info = g_strdup_printf ( \"k12_open: source descriptor record length %u < %u (%u + %u + %u + %u)\" , rec_len , K12_SRCDESC_HWPART + hwpart_len + name_len + stack_len , K12_SRCDESC_HWPART , hwpart_len , name_len , stack_len ) ;\n destroy_k12_file_data ( file_data ) ;\n g_free ( rec ) ;\n return WTAP_OPEN_ERROR ;\n }\n if ( hwpart_len ) {\n if ( hwpart_len < 4 ) {\n * err = WTAP_ERR_BAD_FILE ;\n * err_info = g_strdup_printf ( \"k12_open: source descriptor hardware part length %u < 4\" , hwpart_len ) ;\n destroy_k12_file_data ( file_data ) ;\n g_free ( rec ) ;\n return WTAP_OPEN_ERROR ;\n }\n switch ( ( rec -> input_type = pntoh32 ( read_buffer + K12_SRCDESC_HWPART + K12_SRCDESC_HWPARTTYPE ) ) ) {\n case K12_PORT_DS0S : rec -> input_info . ds0mask = 0x00000000 ;\n if ( hwpart_len > K12_SRCDESC_DS0_MASK ) {\n for ( i = 0 ;\n i < hwpart_len - K12_SRCDESC_DS0_MASK ;\n i ++ ) {\n rec -> input_info . ds0mask |= ( * ( read_buffer + K12_SRCDESC_HWPART + K12_SRCDESC_DS0_MASK + i ) == 0xff ) ? 1U << ( 31 - i ) : 0x0 ;\n }\n }\n break ;\n case K12_PORT_ATMPVC : if ( hwpart_len < K12_SRCDESC_ATM_VCI + 2 ) {\n * err = WTAP_ERR_BAD_FILE ;\n * err_info = g_strdup_printf ( \"k12_open: source descriptor hardware part length %u < %u\" , hwpart_len , K12_SRCDESC_ATM_VCI + 2 ) ;\n destroy_k12_file_data ( file_data ) ;\n g_free ( rec ) ;\n return WTAP_OPEN_ERROR ;\n }\n rec -> input_info . atm . vp = pntoh16 ( read_buffer + K12_SRCDESC_HWPART + K12_SRCDESC_ATM_VPI ) ;\n rec -> input_info . atm . vc = pntoh16 ( read_buffer + K12_SRCDESC_HWPART + K12_SRCDESC_ATM_VCI ) ;\n break ;\n default : break ;\n }\n }\n else {\n if ( port_type >= 0x14 && port_type <= 0x17 ) {\n rec -> input_type = K12_PORT_ATMPVC ;\n rec -> input_info . atm . vp = 0 ;\n rec -> input_info . atm . vc = 0 ;\n }\n }\n if ( read_buffer [ K12_SRCDESC_HWPART + hwpart_len + name_len - 1 ] != '\\0' ) {\n * err = WTAP_ERR_BAD_FILE ;\n * err_info = g_strdup ( \"k12_open: source descriptor record contains non-null-terminated link-layer name\" ) ;\n destroy_k12_file_data ( file_data ) ;\n g_free ( rec ) ;\n return WTAP_OPEN_ERROR ;\n }\n if ( read_buffer [ K12_SRCDESC_HWPART + hwpart_len + name_len + stack_len - 1 ] != '\\0' ) {\n * err = WTAP_ERR_BAD_FILE ;\n * err_info = g_strdup ( \"k12_open: source descriptor record contains non-null-terminated stack path\" ) ;\n destroy_k12_file_data ( file_data ) ;\n g_free ( rec ) ;\n return WTAP_OPEN_ERROR ;\n }\n rec -> input_name = ( gchar * ) g_memdup ( read_buffer + K12_SRCDESC_HWPART + hwpart_len , name_len ) ;\n rec -> stack_file = ( gchar * ) g_memdup ( read_buffer + K12_SRCDESC_HWPART + hwpart_len + name_len , stack_len ) ;\n ascii_strdown_inplace ( rec -> stack_file ) ;\n g_hash_table_insert ( file_data -> src_by_id , GUINT_TO_POINTER ( rec -> input ) , rec ) ;\n g_hash_table_insert ( file_data -> src_by_name , rec -> stack_file , rec ) ;\n break ;\n case K12_REC_STK_FILE : K12_DBG ( 1 , ( \"k12_open: K12_REC_STK_FILE\" ) ) ;\n K12_DBG ( 1 , ( \"Field 1: 0x%08x\" , pntoh32 ( read_buffer + 0x08 ) ) ) ;\n K12_DBG ( 1 , ( \"Field 2: 0x%08x\" , pntoh32 ( read_buffer + 0x0c ) ) ) ;\n K12_ASCII_DUMP ( 1 , read_buffer , rec_len , 16 ) ;\n break ;\n default : K12_DBG ( 1 , ( \"k12_open: RECORD TYPE 0x%08x\" , type ) ) ;\n break ;\n }\n offset += len ;\n file_data -> num_of_records -- ;\n }\n while ( 1 ) ;\n wth -> file_type_subtype = WTAP_FILE_TYPE_SUBTYPE_K12 ;\n wth -> file_encap = WTAP_ENCAP_K12 ;\n wth -> snapshot_length = 0 ;\n wth -> subtype_read = k12_read ;\n wth -> subtype_seek_read = k12_seek_read ;\n wth -> subtype_close = k12_close ;\n wth -> priv = ( void * ) file_data ;\n wth -> file_tsprec = WTAP_TSPREC_NSEC ;\n return WTAP_OPEN_MINE ;\n }"}
{"idx": 14390, "target": 1, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DIRECTORYSTRING ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DISPLAYTEXT ) DECLARE_ASN1_FUNCTIONS ( ASN1_PRINTABLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_T61STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_IA5STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_GENERALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTCTIME ) DECLARE_ASN1_FUNCTIONS ( ASN1_GENERALIZEDTIME ) DECLARE_ASN1_FUNCTIONS ( ASN1_TIME )"}
{"idx": 14391, "target": 0, "func": "static struct inode_security_struct * inode_security ( struct inode * inode ) {\n __inode_security_revalidate ( inode , NULL , true ) ;\n return inode -> i_security ;\n }"}
{"idx": 14392, "target": 0, "func": "static int pfkey_migrate ( struct sock * sk , struct sk_buff * skb , const struct sadb_msg * hdr , void * const * ext_hdrs ) {\n return - ENOPROTOOPT ;\n }"}
{"idx": 14393, "target": 0, "func": "static int ohci_bus_start ( OHCIState * ohci ) {\n trace_usb_ohci_start ( ohci -> name ) ;\n ohci_eof_timer ( ohci ) ;\n return 1 ;\n }"}
{"idx": 14394, "target": 0, "func": "static void U_CALLCONV uprv_writeDirectUInt16 ( uint16_t * p , uint16_t x ) {\n * p = x ;\n }"}
{"idx": 14395, "target": 0, "func": "unsigned int TSConfigSet ( unsigned int id , void * data , TSConfigDestroyFunc funcp ) {\n INKConfigImpl * config = new INKConfigImpl ;\n config -> mdata = data ;\n config -> m_destroy_func = funcp ;\n return configProcessor . set ( id , config ) ;\n }"}
{"idx": 14396, "target": 0, "func": "static int purge_bin_logs_to ( MYSQL * mysql_con , char * log_name ) {\n DYNAMIC_STRING str ;\n int err ;\n init_dynamic_string_checked ( & str , \"PURGE BINARY LOGS TO '\" , 1024 , 1024 ) ;\n dynstr_append_checked ( & str , log_name ) ;\n dynstr_append_checked ( & str , \"'\" ) ;\n err = mysql_query_with_error_report ( mysql_con , 0 , str . str ) ;\n dynstr_free ( & str ) ;\n return err ;\n }"}
{"idx": 14397, "target": 0, "func": "long ssl3_default_timeout ( void ) {\n return ( 60 * 60 * 2 ) ;\n }"}
{"idx": 14398, "target": 0, "func": "static const char * cmd_rule_engine ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n if ( dcfg == NULL ) return NULL ;\n if ( strcasecmp ( p1 , \"on\" ) == 0 ) dcfg -> is_enabled = MODSEC_ENABLED ;\n else if ( strcasecmp ( p1 , \"off\" ) == 0 ) dcfg -> is_enabled = MODSEC_DISABLED ;\n else if ( strcasecmp ( p1 , \"detectiononly\" ) == 0 ) {\n dcfg -> is_enabled = MODSEC_DETECTION_ONLY ;\n dcfg -> of_limit_action = RESPONSE_BODY_LIMIT_ACTION_PARTIAL ;\n dcfg -> if_limit_action = REQUEST_BODY_LIMIT_ACTION_PARTIAL ;\n }\n else return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid value for SecRuleEngine: %s\" , p1 ) ;\n return NULL ;\n }"}
{"idx": 14399, "target": 0, "func": "static void CheckMake ( SplinePoint * from , SplinePoint * to ) {\n CheckMakeB ( & from -> me , NULL ) ;\n CheckMakeB ( & from -> nextcp , & from -> me ) ;\n CheckMakeB ( & to -> prevcp , & from -> nextcp ) ;\n CheckMakeB ( & to -> me , & to -> prevcp ) ;\n }"}
{"idx": 14400, "target": 1, "func": "static void test_show_object ( struct object * object , const struct name_path * path , const char * last , void * data ) {\n struct bitmap_test_data * tdata = data ;\n int bitmap_pos ;\n bitmap_pos = bitmap_position ( object -> oid . hash ) ;\n if ( bitmap_pos < 0 ) die ( \"Object not in bitmap: %s\\n\" , oid_to_hex ( & object -> oid ) ) ;\n bitmap_set ( tdata -> base , bitmap_pos ) ;\n display_progress ( tdata -> prg , ++ tdata -> seen ) ;\n }"}
{"idx": 14401, "target": 0, "func": "static cmsBool isseparator ( int c ) {\n return ( c == ' ' ) || ( c == '\\t' ) ;\n }"}
{"idx": 14402, "target": 0, "func": "static void cmd_window_rshow ( const char * data ) {\n _cmd_window_show_opt ( data , TRUE ) ;\n }"}
{"idx": 14403, "target": 0, "func": "void * _TIFFcalloc ( tmsize_t nmemb , tmsize_t siz ) {\n if ( nmemb == 0 || siz == 0 ) return ( ( void * ) NULL ) ;\n return calloc ( ( size_t ) nmemb , ( size_t ) siz ) ;\n }"}
{"idx": 14404, "target": 0, "func": "static PyObject * string_rfind ( PyStringObject * self , PyObject * args ) {\n Py_ssize_t result = string_find_internal ( self , args , - 1 ) ;\n if ( result == - 2 ) return NULL ;\n return PyInt_FromSsize_t ( result ) ;\n }"}
{"idx": 14405, "target": 1, "func": "static int decode_picture_header ( ProresContext * ctx , const uint8_t * buf , const int data_size , AVCodecContext * avctx ) {\n int i , hdr_size , pic_data_size , num_slices ;\n int slice_width_factor , slice_height_factor ;\n int remainder , num_x_slices ;\n const uint8_t * data_ptr , * index_ptr ;\n hdr_size = data_size > 0 ? buf [ 0 ] >> 3 : 0 ;\n if ( hdr_size < 8 || hdr_size > data_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"picture header too small\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n pic_data_size = AV_RB32 ( buf + 1 ) ;\n if ( pic_data_size > data_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"picture data too small\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n slice_width_factor = buf [ 7 ] >> 4 ;\n slice_height_factor = buf [ 7 ] & 0xF ;\n if ( slice_width_factor > 3 || slice_height_factor ) {\n av_log ( avctx , AV_LOG_ERROR , \"unsupported slice dimension: %d x %d\\n\" , 1 << slice_width_factor , 1 << slice_height_factor ) ;\n return AVERROR_INVALIDDATA ;\n }\n ctx -> slice_width_factor = slice_width_factor ;\n ctx -> slice_height_factor = slice_height_factor ;\n ctx -> num_x_mbs = ( avctx -> width + 15 ) >> 4 ;\n ctx -> num_y_mbs = ( avctx -> height + ( 1 << ( 4 + ctx -> picture . interlaced_frame ) ) - 1 ) >> ( 4 + ctx -> picture . interlaced_frame ) ;\n remainder = ctx -> num_x_mbs & ( ( 1 << slice_width_factor ) - 1 ) ;\n num_x_slices = ( ctx -> num_x_mbs >> slice_width_factor ) + ( remainder & 1 ) + ( ( remainder >> 1 ) & 1 ) + ( ( remainder >> 2 ) & 1 ) ;\n num_slices = num_x_slices * ctx -> num_y_mbs ;\n if ( num_slices != AV_RB16 ( buf + 5 ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid number of slices\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ctx -> total_slices != num_slices ) {\n av_freep ( & ctx -> slice_data ) ;\n ctx -> slice_data = av_malloc ( ( num_slices + 1 ) * sizeof ( ctx -> slice_data [ 0 ] ) ) ;\n if ( ! ctx -> slice_data ) return AVERROR ( ENOMEM ) ;\n ctx -> total_slices = num_slices ;\n }\n if ( hdr_size + num_slices * 2 > data_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"slice table too small\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n index_ptr = buf + hdr_size ;\n data_ptr = index_ptr + num_slices * 2 ;\n for ( i = 0 ;\n i < num_slices ;\n i ++ ) {\n ctx -> slice_data [ i ] . index = data_ptr ;\n ctx -> slice_data [ i ] . prev_slice_sf = 0 ;\n data_ptr += AV_RB16 ( index_ptr + i * 2 ) ;\n }\n ctx -> slice_data [ i ] . index = data_ptr ;\n ctx -> slice_data [ i ] . prev_slice_sf = 0 ;\n if ( data_ptr > buf + data_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"out of slice data\\n\" ) ;\n return - 1 ;\n }\n return pic_data_size ;\n }"}
{"idx": 14406, "target": 0, "func": "static void openpic_class_init ( ObjectClass * oc , void * data ) {\n DeviceClass * dc = DEVICE_CLASS ( oc ) ;\n dc -> realize = openpic_realize ;\n dc -> props = openpic_properties ;\n dc -> reset = openpic_reset ;\n }"}
{"idx": 14407, "target": 0, "func": "static char * timelib_string ( Scanner * s ) {\n char * tmp = calloc ( 1 , s -> cur - s -> tok + 1 ) ;\n memcpy ( tmp , s -> tok , s -> cur - s -> tok ) ;\n return tmp ;\n }"}
{"idx": 14408, "target": 0, "func": "int udpv6_sendmsg ( struct kiocb * iocb , struct sock * sk , struct msghdr * msg , size_t len ) {\n struct ipv6_txoptions opt_space ;\n struct udp_sock * up = udp_sk ( sk ) ;\n struct inet_sock * inet = inet_sk ( sk ) ;\n struct ipv6_pinfo * np = inet6_sk ( sk ) ;\n struct sockaddr_in6 * sin6 = ( struct sockaddr_in6 * ) msg -> msg_name ;\n struct in6_addr * daddr , * final_p = NULL , final ;\n struct ipv6_txoptions * opt = NULL ;\n struct ip6_flowlabel * flowlabel = NULL ;\n struct flowi fl ;\n struct dst_entry * dst ;\n int addr_len = msg -> msg_namelen ;\n int ulen = len ;\n int hlimit = - 1 ;\n int tclass = - 1 ;\n int dontfrag = - 1 ;\n int corkreq = up -> corkflag || msg -> msg_flags & MSG_MORE ;\n int err ;\n int connected = 0 ;\n int is_udplite = IS_UDPLITE ( sk ) ;\n int ( * getfrag ) ( void * , char * , int , int , int , struct sk_buff * ) ;\n if ( sin6 ) {\n if ( addr_len < offsetof ( struct sockaddr , sa_data ) ) return - EINVAL ;\n switch ( sin6 -> sin6_family ) {\n case AF_INET6 : if ( addr_len < SIN6_LEN_RFC2133 ) return - EINVAL ;\n daddr = & sin6 -> sin6_addr ;\n break ;\n case AF_INET : goto do_udp_sendmsg ;\n case AF_UNSPEC : msg -> msg_name = sin6 = NULL ;\n msg -> msg_namelen = addr_len = 0 ;\n daddr = NULL ;\n break ;\n default : return - EINVAL ;\n }\n }\n else if ( ! up -> pending ) {\n if ( sk -> sk_state != TCP_ESTABLISHED ) return - EDESTADDRREQ ;\n daddr = & np -> daddr ;\n }\n else daddr = NULL ;\n if ( daddr ) {\n if ( ipv6_addr_v4mapped ( daddr ) ) {\n struct sockaddr_in sin ;\n sin . sin_family = AF_INET ;\n sin . sin_port = sin6 ? sin6 -> sin6_port : inet -> inet_dport ;\n sin . sin_addr . s_addr = daddr -> s6_addr32 [ 3 ] ;\n msg -> msg_name = & sin ;\n msg -> msg_namelen = sizeof ( sin ) ;\n do_udp_sendmsg : if ( __ipv6_only_sock ( sk ) ) return - ENETUNREACH ;\n return udp_sendmsg ( iocb , sk , msg , len ) ;\n }\n }\n if ( up -> pending == AF_INET ) return udp_sendmsg ( iocb , sk , msg , len ) ;\n if ( len > INT_MAX - sizeof ( struct udphdr ) ) return - EMSGSIZE ;\n if ( up -> pending ) {\n lock_sock ( sk ) ;\n if ( likely ( up -> pending ) ) {\n if ( unlikely ( up -> pending != AF_INET6 ) ) {\n release_sock ( sk ) ;\n return - EAFNOSUPPORT ;\n }\n dst = NULL ;\n goto do_append_data ;\n }\n release_sock ( sk ) ;\n }\n ulen += sizeof ( struct udphdr ) ;\n memset ( & fl , 0 , sizeof ( fl ) ) ;\n if ( sin6 ) {\n if ( sin6 -> sin6_port == 0 ) return - EINVAL ;\n fl . fl_ip_dport = sin6 -> sin6_port ;\n daddr = & sin6 -> sin6_addr ;\n if ( np -> sndflow ) {\n fl . fl6_flowlabel = sin6 -> sin6_flowinfo & IPV6_FLOWINFO_MASK ;\n if ( fl . fl6_flowlabel & IPV6_FLOWLABEL_MASK ) {\n flowlabel = fl6_sock_lookup ( sk , fl . fl6_flowlabel ) ;\n if ( flowlabel == NULL ) return - EINVAL ;\n daddr = & flowlabel -> dst ;\n }\n }\n if ( sk -> sk_state == TCP_ESTABLISHED && ipv6_addr_equal ( daddr , & np -> daddr ) ) daddr = & np -> daddr ;\n if ( addr_len >= sizeof ( struct sockaddr_in6 ) && sin6 -> sin6_scope_id && ipv6_addr_type ( daddr ) & IPV6_ADDR_LINKLOCAL ) fl . oif = sin6 -> sin6_scope_id ;\n }\n else {\n if ( sk -> sk_state != TCP_ESTABLISHED ) return - EDESTADDRREQ ;\n fl . fl_ip_dport = inet -> inet_dport ;\n daddr = & np -> daddr ;\n fl . fl6_flowlabel = np -> flow_label ;\n connected = 1 ;\n }\n if ( ! fl . oif ) fl . oif = sk -> sk_bound_dev_if ;\n if ( ! fl . oif ) fl . oif = np -> sticky_pktinfo . ipi6_ifindex ;\n fl . mark = sk -> sk_mark ;\n if ( msg -> msg_controllen ) {\n opt = & opt_space ;\n memset ( opt , 0 , sizeof ( struct ipv6_txoptions ) ) ;\n opt -> tot_len = sizeof ( * opt ) ;\n err = datagram_send_ctl ( sock_net ( sk ) , msg , & fl , opt , & hlimit , & tclass , & dontfrag ) ;\n if ( err < 0 ) {\n fl6_sock_release ( flowlabel ) ;\n return err ;\n }\n if ( ( fl . fl6_flowlabel & IPV6_FLOWLABEL_MASK ) && ! flowlabel ) {\n flowlabel = fl6_sock_lookup ( sk , fl . fl6_flowlabel ) ;\n if ( flowlabel == NULL ) return - EINVAL ;\n }\n if ( ! ( opt -> opt_nflen | opt -> opt_flen ) ) opt = NULL ;\n connected = 0 ;\n }\n if ( opt == NULL ) opt = np -> opt ;\n if ( flowlabel ) opt = fl6_merge_options ( & opt_space , flowlabel , opt ) ;\n opt = ipv6_fixup_options ( & opt_space , opt ) ;\n fl . proto = sk -> sk_protocol ;\n if ( ! ipv6_addr_any ( daddr ) ) ipv6_addr_copy ( & fl . fl6_dst , daddr ) ;\n else fl . fl6_dst . s6_addr [ 15 ] = 0x1 ;\n if ( ipv6_addr_any ( & fl . fl6_src ) && ! ipv6_addr_any ( & np -> saddr ) ) ipv6_addr_copy ( & fl . fl6_src , & np -> saddr ) ;\n fl . fl_ip_sport = inet -> inet_sport ;\n if ( opt && opt -> srcrt ) {\n struct rt0_hdr * rt0 = ( struct rt0_hdr * ) opt -> srcrt ;\n ipv6_addr_copy ( & final , & fl . fl6_dst ) ;\n ipv6_addr_copy ( & fl . fl6_dst , rt0 -> addr ) ;\n final_p = & final ;\n connected = 0 ;\n }\n if ( ! fl . oif && ipv6_addr_is_multicast ( & fl . fl6_dst ) ) {\n fl . oif = np -> mcast_oif ;\n connected = 0 ;\n }\n security_sk_classify_flow ( sk , & fl ) ;\n err = ip6_sk_dst_lookup ( sk , & dst , & fl ) ;\n if ( err ) goto out ;\n if ( final_p ) ipv6_addr_copy ( & fl . fl6_dst , final_p ) ;\n err = __xfrm_lookup ( sock_net ( sk ) , & dst , & fl , sk , XFRM_LOOKUP_WAIT ) ;\n if ( err < 0 ) {\n if ( err == - EREMOTE ) err = ip6_dst_blackhole ( sk , & dst , & fl ) ;\n if ( err < 0 ) goto out ;\n }\n if ( hlimit < 0 ) {\n if ( ipv6_addr_is_multicast ( & fl . fl6_dst ) ) hlimit = np -> mcast_hops ;\n else hlimit = np -> hop_limit ;\n if ( hlimit < 0 ) hlimit = ip6_dst_hoplimit ( dst ) ;\n }\n if ( tclass < 0 ) tclass = np -> tclass ;\n if ( dontfrag < 0 ) dontfrag = np -> dontfrag ;\n if ( msg -> msg_flags & MSG_CONFIRM ) goto do_confirm ;\n back_from_confirm : lock_sock ( sk ) ;\n if ( unlikely ( up -> pending ) ) {\n release_sock ( sk ) ;\n LIMIT_NETDEBUG ( KERN_DEBUG \"udp cork app bug 2\\n\" ) ;\n err = - EINVAL ;\n goto out ;\n }\n up -> pending = AF_INET6 ;\n do_append_data : up -> len += ulen ;\n getfrag = is_udplite ? udplite_getfrag : ip_generic_getfrag ;\n err = ip6_append_data ( sk , getfrag , msg -> msg_iov , ulen , sizeof ( struct udphdr ) , hlimit , tclass , opt , & fl , ( struct rt6_info * ) dst , corkreq ? msg -> msg_flags | MSG_MORE : msg -> msg_flags , dontfrag ) ;\n if ( err ) udp_v6_flush_pending_frames ( sk ) ;\n else if ( ! corkreq ) err = udp_v6_push_pending_frames ( sk ) ;\n else if ( unlikely ( skb_queue_empty ( & sk -> sk_write_queue ) ) ) up -> pending = 0 ;\n if ( dst ) {\n if ( connected ) {\n ip6_dst_store ( sk , dst , ipv6_addr_equal ( & fl . fl6_dst , & np -> daddr ) ? & np -> daddr : NULL , # ifdef CONFIG_IPV6_SUBTREES ipv6_addr_equal ( & fl . fl6_src , & np -> saddr ) ? & np -> saddr : # endif NULL ) ;\n }\n else {\n dst_release ( dst ) ;\n }\n dst = NULL ;\n }\n if ( err > 0 ) err = np -> recverr ? net_xmit_errno ( err ) : 0 ;\n release_sock ( sk ) ;\n out : dst_release ( dst ) ;\n fl6_sock_release ( flowlabel ) ;\n if ( ! err ) return len ;\n if ( err == - ENOBUFS || test_bit ( SOCK_NOSPACE , & sk -> sk_socket -> flags ) ) {\n UDP6_INC_STATS_USER ( sock_net ( sk ) , UDP_MIB_SNDBUFERRORS , is_udplite ) ;\n }\n return err ;\n do_confirm : dst_confirm ( dst ) ;\n if ( ! ( msg -> msg_flags & MSG_PROBE ) || len ) goto back_from_confirm ;\n err = 0 ;\n goto out ;\n }"}
{"idx": 14409, "target": 0, "func": "static inline uint32_t read_IRQreg_idr ( OpenPICState * opp , int n_IRQ ) {\n return opp -> src [ n_IRQ ] . idr ;\n }"}
{"idx": 14410, "target": 0, "func": "static int dissect_h245_RemoveConnectionResp ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_RemoveConnectionResp , RemoveConnectionResp_sequence ) ;\n return offset ;\n }"}
{"idx": 14411, "target": 0, "func": "static void h264_close_context ( PayloadContext * data ) {\n # ifdef DEBUG int ii ;\n for ( ii = 0 ;\n ii < 32 ;\n ii ++ ) {\n if ( data -> packet_types_received [ ii ] ) av_log ( NULL , AV_LOG_DEBUG , \"Received %d packets of type %d\\n\" , data -> packet_types_received [ ii ] , ii ) ;\n }\n # endif }"}
{"idx": 14412, "target": 0, "func": "static void patch_instruction ( VAPICROMState * s , X86CPU * cpu , target_ulong ip ) {\n CPUState * cs = CPU ( cpu ) ;\n CPUX86State * env = & cpu -> env ;\n VAPICHandlers * handlers ;\n uint8_t opcode [ 2 ] ;\n uint32_t imm32 ;\n target_ulong current_pc = 0 ;\n target_ulong current_cs_base = 0 ;\n int current_flags = 0 ;\n if ( smp_cpus == 1 ) {\n handlers = & s -> rom_state . up ;\n }\n else {\n handlers = & s -> rom_state . mp ;\n }\n if ( ! kvm_enabled ( ) ) {\n cpu_restore_state ( env , env -> mem_io_pc ) ;\n cpu_get_tb_cpu_state ( env , & current_pc , & current_cs_base , & current_flags ) ;\n }\n pause_all_vcpus ( ) ;\n cpu_memory_rw_debug ( env , ip , opcode , sizeof ( opcode ) , 0 ) ;\n switch ( opcode [ 0 ] ) {\n case 0x89 : patch_byte ( env , ip , 0x50 + modrm_reg ( opcode [ 1 ] ) ) ;\n patch_call ( s , env , ip + 1 , handlers -> set_tpr ) ;\n break ;\n case 0x8b : patch_byte ( env , ip , 0x90 ) ;\n patch_call ( s , env , ip + 1 , handlers -> get_tpr [ modrm_reg ( opcode [ 1 ] ) ] ) ;\n break ;\n case 0xa1 : patch_call ( s , env , ip , handlers -> get_tpr [ 0 ] ) ;\n break ;\n case 0xa3 : patch_call ( s , env , ip , handlers -> set_tpr_eax ) ;\n break ;\n case 0xc7 : patch_byte ( env , ip , 0x68 ) ;\n cpu_memory_rw_debug ( env , ip + 6 , ( void * ) & imm32 , sizeof ( imm32 ) , 0 ) ;\n cpu_memory_rw_debug ( env , ip + 1 , ( void * ) & imm32 , sizeof ( imm32 ) , 1 ) ;\n patch_call ( s , env , ip + 5 , handlers -> set_tpr ) ;\n break ;\n case 0xff : patch_byte ( env , ip , 0x50 ) ;\n patch_call ( s , env , ip + 1 , handlers -> get_tpr_stack ) ;\n break ;\n default : abort ( ) ;\n }\n resume_all_vcpus ( ) ;\n if ( ! kvm_enabled ( ) ) {\n cs -> current_tb = NULL ;\n tb_gen_code ( env , current_pc , current_cs_base , current_flags , 1 ) ;\n cpu_resume_from_signal ( env , NULL ) ;\n }\n }"}
{"idx": 14413, "target": 1, "func": "static __inline__ __u32 __fswahw32 ( __u32 val ) {\n # ifdef __arch_swahw32 return __arch_swahw32 ( val ) ;\n # else return ___constant_swahw32 ( val ) ;\n # endif }"}
{"idx": 14414, "target": 0, "func": "static int com_status ( String * buffer __attribute__ ( ( unused ) ) , char * line __attribute__ ( ( unused ) ) ) {\n const char * status_str ;\n char buff [ 40 ] ;\n ulonglong id ;\n MYSQL_RES * result ;\n LINT_INIT ( result ) ;\n if ( mysql_real_query_for_lazy ( C_STRING_WITH_LEN ( \"select DATABASE(), USER() limit 1\" ) ) ) return 0 ;\n tee_puts ( \"--------------\" , stdout ) ;\n usage ( 1 ) ;\n tee_fprintf ( stdout , \"\\nConnection id:\\t\\t%lu\\n\" , mysql_thread_id ( & mysql ) ) ;\n if ( ! mysql_store_result_for_lazy ( & result ) ) {\n MYSQL_ROW cur = mysql_fetch_row ( result ) ;\n if ( cur ) {\n tee_fprintf ( stdout , \"Current database:\\t%s\\n\" , cur [ 0 ] ? cur [ 0 ] : \"\" ) ;\n tee_fprintf ( stdout , \"Current user:\\t\\t%s\\n\" , cur [ 1 ] ) ;\n }\n mysql_free_result ( result ) ;\n }\n # if defined ( HAVE_OPENSSL ) && ! defined ( EMBEDDED_LIBRARY ) if ( ( status_str = mysql_get_ssl_cipher ( & mysql ) ) ) tee_fprintf ( stdout , \"SSL:\\t\\t\\tCipher in use is %s\\n\" , status_str ) ;\n else # endif tee_puts ( \"SSL:\\t\\t\\tNot in use\" , stdout ) ;\n if ( skip_updates ) {\n my_vidattr ( A_BOLD ) ;\n tee_fprintf ( stdout , \"\\nAll updates ignored to this database\\n\" ) ;\n my_vidattr ( A_NORMAL ) ;\n }\n # ifdef USE_POPEN tee_fprintf ( stdout , \"Current pager:\\t\\t%s\\n\" , pager ) ;\n tee_fprintf ( stdout , \"Using outfile:\\t\\t'%s'\\n\" , opt_outfile ? outfile : \"\" ) ;\n # endif tee_fprintf ( stdout , \"Using delimiter:\\t%s\\n\" , delimiter ) ;\n tee_fprintf ( stdout , \"Server:\\t\\t\\t%s\\n\" , mysql_get_server_name ( & mysql ) ) ;\n tee_fprintf ( stdout , \"Server version:\\t\\t%s\\n\" , server_version_string ( & mysql ) ) ;\n tee_fprintf ( stdout , \"Protocol version:\\t%d\\n\" , mysql_get_proto_info ( & mysql ) ) ;\n tee_fprintf ( stdout , \"Connection:\\t\\t%s\\n\" , mysql_get_host_info ( & mysql ) ) ;\n if ( ( id = mysql_insert_id ( & mysql ) ) ) tee_fprintf ( stdout , \"Insert id:\\t\\t%s\\n\" , llstr ( id , buff ) ) ;\n if ( mysql_real_query_for_lazy ( C_STRING_WITH_LEN ( \"select @@character_set_client, @@character_set_connection, \" \"@@character_set_server, @@character_set_database limit 1\" ) ) ) {\n if ( mysql_errno ( & mysql ) == CR_SERVER_GONE_ERROR ) return 0 ;\n }\n if ( ! mysql_store_result_for_lazy ( & result ) ) {\n MYSQL_ROW cur = mysql_fetch_row ( result ) ;\n if ( cur ) {\n tee_fprintf ( stdout , \"Server characterset:\\t%s\\n\" , cur [ 2 ] ? cur [ 2 ] : \"\" ) ;\n tee_fprintf ( stdout , \"Db characterset:\\t%s\\n\" , cur [ 3 ] ? cur [ 3 ] : \"\" ) ;\n tee_fprintf ( stdout , \"Client characterset:\\t%s\\n\" , cur [ 0 ] ? cur [ 0 ] : \"\" ) ;\n tee_fprintf ( stdout , \"Conn. characterset:\\t%s\\n\" , cur [ 1 ] ? cur [ 1 ] : \"\" ) ;\n }\n mysql_free_result ( result ) ;\n }\n else {\n tee_fprintf ( stdout , \"Client characterset:\\t%s\\n\" , charset_info -> csname ) ;\n tee_fprintf ( stdout , \"Server characterset:\\t%s\\n\" , mysql . charset -> csname ) ;\n }\n # ifndef EMBEDDED_LIBRARY if ( strstr ( mysql_get_host_info ( & mysql ) , \"TCP/IP\" ) || ! mysql . unix_socket ) tee_fprintf ( stdout , \"TCP port:\\t\\t%d\\n\" , mysql . port ) ;\n else tee_fprintf ( stdout , \"UNIX socket:\\t\\t%s\\n\" , mysql . unix_socket ) ;\n if ( mysql . net . compress ) tee_fprintf ( stdout , \"Protocol:\\t\\tCompressed\\n\" ) ;\n # endif if ( ( status_str = mysql_stat ( & mysql ) ) && ! mysql_error ( & mysql ) [ 0 ] ) {\n ulong sec ;\n const char * pos = strchr ( status_str , ' ' ) ;\n tee_fprintf ( stdout , \"%.*s\\t\\t\\t\" , ( int ) ( pos - status_str ) , status_str ) ;\n if ( ( status_str = str2int ( pos , 10 , 0 , LONG_MAX , ( long * ) & sec ) ) ) {\n nice_time ( ( double ) sec , buff , 0 ) ;\n tee_puts ( buff , stdout ) ;\n while ( * status_str == ' ' ) status_str ++ ;\n tee_putc ( '\\n' , stdout ) ;\n tee_puts ( status_str , stdout ) ;\n }\n }\n if ( safe_updates ) {\n my_vidattr ( A_BOLD ) ;\n tee_fprintf ( stdout , \"\\nNote that you are running in safe_update_mode:\\n\" ) ;\n my_vidattr ( A_NORMAL ) ;\n tee_fprintf ( stdout , \"\\ UPDATEs and DELETEs that don't use a key in the WHERE clause are not allowed.\\n\\ (One can force an UPDATE/DELETE by adding LIMIT # at the end of the command.)\\n\\ SELECT has an automatic 'LIMIT %lu' if LIMIT is not used.\\n\\ Max number of examined row combination in a join is set to: %lu\\n\\n\" , select_limit , max_join_size ) ;\n }\n tee_puts ( \"--------------\\n\" , stdout ) ;\n return 0 ;\n }"}
{"idx": 14415, "target": 0, "func": "static cmsBool WriteSegmentedCurve ( cmsIOHANDLER * io , cmsToneCurve * g ) {\n cmsUInt32Number i , j ;\n cmsCurveSegment * Segments = g -> Segments ;\n cmsUInt32Number nSegments = g -> nSegments ;\n if ( ! _cmsWriteUInt32Number ( io , cmsSigSegmentedCurve ) ) goto Error ;\n if ( ! _cmsWriteUInt32Number ( io , 0 ) ) goto Error ;\n if ( ! _cmsWriteUInt16Number ( io , ( cmsUInt16Number ) nSegments ) ) goto Error ;\n if ( ! _cmsWriteUInt16Number ( io , 0 ) ) goto Error ;\n for ( i = 0 ;\n i < nSegments - 1 ;\n i ++ ) {\n if ( ! _cmsWriteFloat32Number ( io , Segments [ i ] . x1 ) ) goto Error ;\n }\n for ( i = 0 ;\n i < g -> nSegments ;\n i ++ ) {\n cmsCurveSegment * ActualSeg = Segments + i ;\n if ( ActualSeg -> Type == 0 ) {\n if ( ! _cmsWriteUInt32Number ( io , ( cmsUInt32Number ) cmsSigSampledCurveSeg ) ) goto Error ;\n if ( ! _cmsWriteUInt32Number ( io , 0 ) ) goto Error ;\n if ( ! _cmsWriteUInt32Number ( io , ActualSeg -> nGridPoints ) ) goto Error ;\n for ( j = 0 ;\n j < g -> Segments [ i ] . nGridPoints ;\n j ++ ) {\n if ( ! _cmsWriteFloat32Number ( io , ActualSeg -> SampledPoints [ j ] ) ) goto Error ;\n }\n }\n else {\n int Type ;\n cmsUInt32Number ParamsByType [ ] = {\n 4 , 5 , 5 }\n ;\n if ( ! _cmsWriteUInt32Number ( io , ( cmsUInt32Number ) cmsSigFormulaCurveSeg ) ) goto Error ;\n if ( ! _cmsWriteUInt32Number ( io , 0 ) ) goto Error ;\n Type = ActualSeg -> Type - 6 ;\n if ( Type > 2 || Type < 0 ) goto Error ;\n if ( ! _cmsWriteUInt16Number ( io , ( cmsUInt16Number ) Type ) ) goto Error ;\n if ( ! _cmsWriteUInt16Number ( io , 0 ) ) goto Error ;\n for ( j = 0 ;\n j < ParamsByType [ Type ] ;\n j ++ ) {\n if ( ! _cmsWriteFloat32Number ( io , ( cmsFloat32Number ) ActualSeg -> Params [ j ] ) ) goto Error ;\n }\n }\n }\n return TRUE ;\n Error : return FALSE ;\n }"}
{"idx": 14416, "target": 0, "func": "static int ohci_service_td ( OHCIState * ohci , struct ohci_ed * ed ) {\n int dir ;\n size_t len = 0 , pktlen = 0 ;\n const char * str = NULL ;\n int pid ;\n int ret ;\n int i ;\n USBDevice * dev ;\n USBEndpoint * ep ;\n struct ohci_td td ;\n uint32_t addr ;\n int flag_r ;\n int completion ;\n addr = ed -> head & OHCI_DPTR_MASK ;\n completion = ( addr == ohci -> async_td ) ;\n if ( completion && ! ohci -> async_complete ) {\n trace_usb_ohci_td_skip_async ( ) ;\n return 1 ;\n }\n if ( ohci_read_td ( ohci , addr , & td ) ) {\n trace_usb_ohci_td_read_error ( addr ) ;\n ohci_die ( ohci ) ;\n return 0 ;\n }\n dir = OHCI_BM ( ed -> flags , ED_D ) ;\n switch ( dir ) {\n case OHCI_TD_DIR_OUT : case OHCI_TD_DIR_IN : break ;\n default : dir = OHCI_BM ( td . flags , TD_DP ) ;\n break ;\n }\n switch ( dir ) {\n case OHCI_TD_DIR_IN : str = \"in\" ;\n pid = USB_TOKEN_IN ;\n break ;\n case OHCI_TD_DIR_OUT : str = \"out\" ;\n pid = USB_TOKEN_OUT ;\n break ;\n case OHCI_TD_DIR_SETUP : str = \"setup\" ;\n pid = USB_TOKEN_SETUP ;\n break ;\n default : trace_usb_ohci_td_bad_direction ( dir ) ;\n return 1 ;\n }\n if ( td . cbp && td . be ) {\n if ( ( td . cbp & 0xfffff000 ) != ( td . be & 0xfffff000 ) ) {\n len = ( td . be & 0xfff ) + 0x1001 - ( td . cbp & 0xfff ) ;\n }\n else {\n len = ( td . be - td . cbp ) + 1 ;\n }\n pktlen = len ;\n if ( len && dir != OHCI_TD_DIR_IN ) {\n pktlen = ( ed -> flags & OHCI_ED_MPS_MASK ) >> OHCI_ED_MPS_SHIFT ;\n if ( pktlen > len ) {\n pktlen = len ;\n }\n if ( ! completion ) {\n if ( ohci_copy_td ( ohci , & td , ohci -> usb_buf , pktlen , DMA_DIRECTION_TO_DEVICE ) ) {\n ohci_die ( ohci ) ;\n }\n }\n }\n }\n flag_r = ( td . flags & OHCI_TD_R ) != 0 ;\n trace_usb_ohci_td_pkt_hdr ( addr , ( int64_t ) pktlen , ( int64_t ) len , str , flag_r , td . cbp , td . be ) ;\n ohci_td_pkt ( \"OUT\" , ohci -> usb_buf , pktlen ) ;\n if ( completion ) {\n ohci -> async_td = 0 ;\n ohci -> async_complete = false ;\n }\n else {\n if ( ohci -> async_td ) {\n trace_usb_ohci_td_too_many_pending ( ) ;\n return 1 ;\n }\n dev = ohci_find_device ( ohci , OHCI_BM ( ed -> flags , ED_FA ) ) ;\n ep = usb_ep_get ( dev , pid , OHCI_BM ( ed -> flags , ED_EN ) ) ;\n usb_packet_setup ( & ohci -> usb_packet , pid , ep , 0 , addr , ! flag_r , OHCI_BM ( td . flags , TD_DI ) == 0 ) ;\n usb_packet_addbuf ( & ohci -> usb_packet , ohci -> usb_buf , pktlen ) ;\n usb_handle_packet ( dev , & ohci -> usb_packet ) ;\n trace_usb_ohci_td_packet_status ( ohci -> usb_packet . status ) ;\n if ( ohci -> usb_packet . status == USB_RET_ASYNC ) {\n usb_device_flush_ep_queue ( dev , ep ) ;\n ohci -> async_td = addr ;\n return 1 ;\n }\n }\n if ( ohci -> usb_packet . status == USB_RET_SUCCESS ) {\n ret = ohci -> usb_packet . actual_length ;\n }\n else {\n ret = ohci -> usb_packet . status ;\n }\n if ( ret >= 0 ) {\n if ( dir == OHCI_TD_DIR_IN ) {\n if ( ohci_copy_td ( ohci , & td , ohci -> usb_buf , ret , DMA_DIRECTION_FROM_DEVICE ) ) {\n ohci_die ( ohci ) ;\n }\n ohci_td_pkt ( \"IN\" , ohci -> usb_buf , pktlen ) ;\n }\n else {\n ret = pktlen ;\n }\n }\n if ( ret == pktlen || ( dir == OHCI_TD_DIR_IN && ret >= 0 && flag_r ) ) {\n if ( ret == len ) {\n td . cbp = 0 ;\n }\n else {\n if ( ( td . cbp & 0xfff ) + ret > 0xfff ) {\n td . cbp = ( td . be & ~ 0xfff ) + ( ( td . cbp + ret ) & 0xfff ) ;\n }\n else {\n td . cbp += ret ;\n }\n }\n td . flags |= OHCI_TD_T1 ;\n td . flags ^= OHCI_TD_T0 ;\n OHCI_SET_BM ( td . flags , TD_CC , OHCI_CC_NOERROR ) ;\n OHCI_SET_BM ( td . flags , TD_EC , 0 ) ;\n if ( ( dir != OHCI_TD_DIR_IN ) && ( ret != len ) ) {\n goto exit_no_retire ;\n }\n ed -> head &= ~ OHCI_ED_C ;\n if ( td . flags & OHCI_TD_T0 ) ed -> head |= OHCI_ED_C ;\n }\n else {\n if ( ret >= 0 ) {\n trace_usb_ohci_td_underrun ( ) ;\n OHCI_SET_BM ( td . flags , TD_CC , OHCI_CC_DATAUNDERRUN ) ;\n }\n else {\n switch ( ret ) {\n case USB_RET_IOERROR : case USB_RET_NODEV : trace_usb_ohci_td_dev_error ( ) ;\n OHCI_SET_BM ( td . flags , TD_CC , OHCI_CC_DEVICENOTRESPONDING ) ;\n break ;\n case USB_RET_NAK : trace_usb_ohci_td_nak ( ) ;\n return 1 ;\n case USB_RET_STALL : trace_usb_ohci_td_stall ( ) ;\n OHCI_SET_BM ( td . flags , TD_CC , OHCI_CC_STALL ) ;\n break ;\n case USB_RET_BABBLE : trace_usb_ohci_td_babble ( ) ;\n OHCI_SET_BM ( td . flags , TD_CC , OHCI_CC_DATAOVERRUN ) ;\n break ;\n default : trace_usb_ohci_td_bad_device_response ( ret ) ;\n OHCI_SET_BM ( td . flags , TD_CC , OHCI_CC_UNDEXPETEDPID ) ;\n OHCI_SET_BM ( td . flags , TD_EC , 3 ) ;\n break ;\n }\n }\n ed -> head |= OHCI_ED_H ;\n }\n ed -> head &= ~ OHCI_DPTR_MASK ;\n ed -> head |= td . next & OHCI_DPTR_MASK ;\n td . next = ohci -> done ;\n ohci -> done = addr ;\n i = OHCI_BM ( td . flags , TD_DI ) ;\n if ( i < ohci -> done_count ) ohci -> done_count = i ;\n exit_no_retire : if ( ohci_put_td ( ohci , addr , & td ) ) {\n ohci_die ( ohci ) ;\n return 1 ;\n }\n return OHCI_BM ( td . flags , TD_CC ) != OHCI_CC_NOERROR ;\n }"}
{"idx": 14417, "target": 0, "func": "static void option_date_format ( const char * fmt ) {\n if ( ! strcmp ( fmt , \"raw\" ) ) whenspec = WHENSPEC_RAW ;\n else if ( ! strcmp ( fmt , \"rfc2822\" ) ) whenspec = WHENSPEC_RFC2822 ;\n else if ( ! strcmp ( fmt , \"now\" ) ) whenspec = WHENSPEC_NOW ;\n else die ( \"unknown --date-format argument %s\" , fmt ) ;\n }"}
{"idx": 14418, "target": 0, "func": "static void superblock_free_security ( struct super_block * sb ) {\n struct superblock_security_struct * sbsec = sb -> s_security ;\n sb -> s_security = NULL ;\n kfree ( sbsec ) ;\n }"}
{"idx": 14419, "target": 0, "func": "static void virtio_balloon_handle_output ( VirtIODevice * vdev , VirtQueue * vq ) {\n VirtIOBalloon * s = to_virtio_balloon ( vdev ) ;\n VirtQueueElement elem ;\n MemoryRegionSection section ;\n while ( virtqueue_pop ( vq , & elem ) ) {\n size_t offset = 0 ;\n uint32_t pfn ;\n while ( iov_to_buf ( elem . out_sg , elem . out_num , offset , & pfn , 4 ) == 4 ) {\n ram_addr_t pa ;\n ram_addr_t addr ;\n pa = ( ram_addr_t ) ldl_p ( & pfn ) << VIRTIO_BALLOON_PFN_SHIFT ;\n offset += 4 ;\n section = memory_region_find ( get_system_memory ( ) , pa , 1 ) ;\n if ( ! section . size || ! memory_region_is_ram ( section . mr ) ) continue ;\n addr = section . offset_within_region ;\n balloon_page ( memory_region_get_ram_ptr ( section . mr ) + addr , ! ! ( vq == s -> dvq ) ) ;\n }\n virtqueue_push ( vq , & elem , offset ) ;\n virtio_notify ( vdev , vq ) ;\n }\n }"}
{"idx": 14420, "target": 0, "func": "static bool restricted_shell ( const char * shellname ) {\n const char * line ;\n setusershell ( ) ;\n while ( ( line = getusershell ( ) ) != NULL ) {\n if ( ( '#' != * line ) && ( strcmp ( line , shellname ) == 0 ) ) {\n endusershell ( ) ;\n return false ;\n }\n }\n endusershell ( ) ;\n return true ;\n }"}
{"idx": 14421, "target": 0, "func": "static void dec_build_inter_predictors ( MACROBLOCKD * xd , int plane , int block , int bw , int bh , int x , int y , int w , int h , int mi_x , int mi_y ) {\n struct macroblockd_plane * const pd = & xd -> plane [ plane ] ;\n const MODE_INFO * mi = xd -> mi [ 0 ] . src_mi ;\n const int is_compound = has_second_ref ( & mi -> mbmi ) ;\n const InterpKernel * kernel = vp9_get_interp_kernel ( mi -> mbmi . interp_filter ) ;\n int ref ;\n for ( ref = 0 ;\n ref < 1 + is_compound ;\n ++ ref ) {\n const struct scale_factors * const sf = & xd -> block_refs [ ref ] -> sf ;\n struct buf_2d * const pre_buf = & pd -> pre [ ref ] ;\n struct buf_2d * const dst_buf = & pd -> dst ;\n uint8_t * const dst = dst_buf -> buf + dst_buf -> stride * y + x ;\n const MV mv = mi -> mbmi . sb_type < BLOCK_8X8 ? average_split_mvs ( pd , mi , ref , block ) : mi -> mbmi . mv [ ref ] . as_mv ;\n const MV mv_q4 = clamp_mv_to_umv_border_sb ( xd , & mv , bw , bh , pd -> subsampling_x , pd -> subsampling_y ) ;\n MV32 scaled_mv ;\n int xs , ys , x0 , y0 , x0_16 , y0_16 , frame_width , frame_height , buf_stride , subpel_x , subpel_y ;\n uint8_t * ref_frame , * buf_ptr ;\n const YV12_BUFFER_CONFIG * ref_buf = xd -> block_refs [ ref ] -> buf ;\n if ( plane == 0 ) {\n frame_width = ref_buf -> y_crop_width ;\n frame_height = ref_buf -> y_crop_height ;\n ref_frame = ref_buf -> y_buffer ;\n }\n else {\n frame_width = ref_buf -> uv_crop_width ;\n frame_height = ref_buf -> uv_crop_height ;\n ref_frame = plane == 1 ? ref_buf -> u_buffer : ref_buf -> v_buffer ;\n }\n if ( vp9_is_scaled ( sf ) ) {\n int x_start = ( - xd -> mb_to_left_edge >> ( 3 + pd -> subsampling_x ) ) ;\n int y_start = ( - xd -> mb_to_top_edge >> ( 3 + pd -> subsampling_y ) ) ;\n x0_16 = ( x_start + x ) << SUBPEL_BITS ;\n y0_16 = ( y_start + y ) << SUBPEL_BITS ;\n x0_16 = sf -> scale_value_x ( x0_16 , sf ) ;\n y0_16 = sf -> scale_value_y ( y0_16 , sf ) ;\n x0 = sf -> scale_value_x ( x_start + x , sf ) ;\n y0 = sf -> scale_value_y ( y_start + y , sf ) ;\n scaled_mv = vp9_scale_mv ( & mv_q4 , mi_x + x , mi_y + y , sf ) ;\n xs = sf -> x_step_q4 ;\n ys = sf -> y_step_q4 ;\n }\n else {\n x0 = ( - xd -> mb_to_left_edge >> ( 3 + pd -> subsampling_x ) ) + x ;\n y0 = ( - xd -> mb_to_top_edge >> ( 3 + pd -> subsampling_y ) ) + y ;\n x0_16 = x0 << SUBPEL_BITS ;\n y0_16 = y0 << SUBPEL_BITS ;\n scaled_mv . row = mv_q4 . row ;\n scaled_mv . col = mv_q4 . col ;\n xs = ys = 16 ;\n }\n subpel_x = scaled_mv . col & SUBPEL_MASK ;\n subpel_y = scaled_mv . row & SUBPEL_MASK ;\n x0 += scaled_mv . col >> SUBPEL_BITS ;\n y0 += scaled_mv . row >> SUBPEL_BITS ;\n x0_16 += scaled_mv . col ;\n y0_16 += scaled_mv . row ;\n buf_ptr = ref_frame + y0 * pre_buf -> stride + x0 ;\n buf_stride = pre_buf -> stride ;\n if ( scaled_mv . col || scaled_mv . row || ( frame_width & 0x7 ) || ( frame_height & 0x7 ) ) {\n int x1 = ( ( x0_16 + ( w - 1 ) * xs ) >> SUBPEL_BITS ) + 1 ;\n int y1 = ( ( y0_16 + ( h - 1 ) * ys ) >> SUBPEL_BITS ) + 1 ;\n int x_pad = 0 , y_pad = 0 ;\n if ( subpel_x || ( sf -> x_step_q4 & SUBPEL_MASK ) ) {\n x0 -= VP9_INTERP_EXTEND - 1 ;\n x1 += VP9_INTERP_EXTEND ;\n x_pad = 1 ;\n }\n if ( subpel_y || ( sf -> y_step_q4 & SUBPEL_MASK ) ) {\n y0 -= VP9_INTERP_EXTEND - 1 ;\n y1 += VP9_INTERP_EXTEND ;\n y_pad = 1 ;\n }\n if ( x0 < 0 || x0 > frame_width - 1 || x1 < 0 || x1 > frame_width - 1 || y0 < 0 || y0 > frame_height - 1 || y1 < 0 || y1 > frame_height - 1 ) {\n uint8_t * buf_ptr1 = ref_frame + y0 * pre_buf -> stride + x0 ;\n # if CONFIG_VP9_HIGHBITDEPTH if ( xd -> cur_buf -> flags & YV12_FLAG_HIGHBITDEPTH ) {\n high_build_mc_border ( buf_ptr1 , pre_buf -> stride , xd -> mc_buf_high , x1 - x0 + 1 , x0 , y0 , x1 - x0 + 1 , y1 - y0 + 1 , frame_width , frame_height ) ;\n buf_stride = x1 - x0 + 1 ;\n buf_ptr = CONVERT_TO_BYTEPTR ( xd -> mc_buf_high ) + y_pad * 3 * buf_stride + x_pad * 3 ;\n }\n else {\n build_mc_border ( buf_ptr1 , pre_buf -> stride , xd -> mc_buf , x1 - x0 + 1 , x0 , y0 , x1 - x0 + 1 , y1 - y0 + 1 , frame_width , frame_height ) ;\n buf_stride = x1 - x0 + 1 ;\n buf_ptr = xd -> mc_buf + y_pad * 3 * buf_stride + x_pad * 3 ;\n }\n # else build_mc_border ( buf_ptr1 , pre_buf -> stride , xd -> mc_buf , x1 - x0 + 1 , x0 , y0 , x1 - x0 + 1 , y1 - y0 + 1 , frame_width , frame_height ) ;\n buf_stride = x1 - x0 + 1 ;\n buf_ptr = xd -> mc_buf + y_pad * 3 * buf_stride + x_pad * 3 ;\n # endif }\n }\n # if CONFIG_VP9_HIGHBITDEPTH if ( xd -> cur_buf -> flags & YV12_FLAG_HIGHBITDEPTH ) {\n high_inter_predictor ( buf_ptr , buf_stride , dst , dst_buf -> stride , subpel_x , subpel_y , sf , w , h , ref , kernel , xs , ys , xd -> bd ) ;\n }\n else {\n inter_predictor ( buf_ptr , buf_stride , dst , dst_buf -> stride , subpel_x , subpel_y , sf , w , h , ref , kernel , xs , ys ) ;\n }\n # else inter_predictor ( buf_ptr , buf_stride , dst , dst_buf -> stride , subpel_x , subpel_y , sf , w , h , ref , kernel , xs , ys ) ;\n # endif }\n }"}
{"idx": 14422, "target": 0, "func": "kadm5_ret_t kadm5_delete_principal ( void * server_handle , krb5_principal principal ) {\n unsigned int ret ;\n krb5_db_entry * kdb ;\n osa_princ_ent_rec adb ;\n kadm5_server_handle_t handle = server_handle ;\n CHECK_HANDLE ( server_handle ) ;\n krb5_clear_error_message ( handle -> context ) ;\n if ( principal == NULL ) return EINVAL ;\n if ( ( ret = kdb_get_entry ( handle , principal , & kdb , & adb ) ) ) return ( ret ) ;\n ret = k5_kadm5_hook_remove ( handle -> context , handle -> hook_handles , KADM5_HOOK_STAGE_PRECOMMIT , principal ) ;\n if ( ret ) {\n kdb_free_entry ( handle , kdb , & adb ) ;\n return ret ;\n }\n ret = kdb_delete_entry ( handle , principal ) ;\n kdb_free_entry ( handle , kdb , & adb ) ;\n if ( ret == 0 ) ( void ) k5_kadm5_hook_remove ( handle -> context , handle -> hook_handles , KADM5_HOOK_STAGE_POSTCOMMIT , principal ) ;\n return ret ;\n }"}
{"idx": 14423, "target": 0, "func": "static PyObject * elements_to_dict ( PyObject * self , const char * string , int max , PyObject * as_class , unsigned char tz_aware , unsigned char uuid_subtype ) {\n int position = 0 ;\n PyObject * dict = PyObject_CallObject ( as_class , NULL ) ;\n if ( ! dict ) {\n return NULL ;\n }\n while ( position < max ) {\n PyObject * name ;\n PyObject * value ;\n int type = ( int ) string [ position ++ ] ;\n int name_length = strlen ( string + position ) ;\n if ( position + name_length >= max ) {\n PyObject * InvalidBSON = _error ( \"InvalidBSON\" ) ;\n PyErr_SetNone ( InvalidBSON ) ;\n Py_DECREF ( InvalidBSON ) ;\n Py_DECREF ( dict ) ;\n return NULL ;\n }\n name = PyUnicode_DecodeUTF8 ( string + position , name_length , \"strict\" ) ;\n if ( ! name ) {\n Py_DECREF ( dict ) ;\n return NULL ;\n }\n position += name_length + 1 ;\n value = get_value ( self , string , & position , type , max - position , as_class , tz_aware , uuid_subtype ) ;\n if ( ! value ) {\n Py_DECREF ( name ) ;\n Py_DECREF ( dict ) ;\n return NULL ;\n }\n PyObject_SetItem ( dict , name , value ) ;\n Py_DECREF ( name ) ;\n Py_DECREF ( value ) ;\n }\n return dict ;\n }"}
{"idx": 14424, "target": 0, "func": "static int rtp_packetize_mpa ( sout_stream_id_sys_t * id , block_t * in ) {\n int i_max = rtp_mtu ( id ) - 4 ;\n int i_count = ( in -> i_buffer + i_max - 1 ) / i_max ;\n uint8_t * p_data = in -> p_buffer ;\n int i_data = in -> i_buffer ;\n int i ;\n for ( i = 0 ;\n i < i_count ;\n i ++ ) {\n int i_payload = __MIN ( i_max , i_data ) ;\n block_t * out = block_Alloc ( 16 + i_payload ) ;\n rtp_packetize_common ( id , out , ( i == i_count - 1 ) ? 1 : 0 , in -> i_pts ) ;\n SetWBE ( out -> p_buffer + 12 , 0 ) ;\n SetWBE ( out -> p_buffer + 14 , i * i_max ) ;\n memcpy ( & out -> p_buffer [ 16 ] , p_data , i_payload ) ;\n out -> i_dts = in -> i_dts + i * in -> i_length / i_count ;\n out -> i_length = in -> i_length / i_count ;\n rtp_packetize_send ( id , out ) ;\n p_data += i_payload ;\n i_data -= i_payload ;\n }\n block_Release ( in ) ;\n return VLC_SUCCESS ;\n }"}
{"idx": 14425, "target": 0, "func": "static void add_padding_item ( gint padding_start , gint padding_end , tvbuff_t * tvb , proto_tree * tree ) {\n if ( padding_end > padding_start && padding_end < ( gint ) tvb_reported_length ( tvb ) ) {\n gint padding_length = padding_end - padding_start ;\n if ( padding_length <= MAX_ROUND_TO_BYTES ) {\n proto_tree_add_item ( tree , hf_padding , tvb , padding_start , padding_length , ENC_NA ) ;\n }\n }\n }"}
{"idx": 14426, "target": 0, "func": "static inline int h263_mv4_search ( MpegEncContext * s , int mx , int my , int shift ) {\n MotionEstContext * const c = & s -> me ;\n const int size = 1 ;\n const int h = 8 ;\n int block ;\n int P [ 10 ] [ 2 ] ;\n int dmin_sum = 0 , mx4_sum = 0 , my4_sum = 0 ;\n int same = 1 ;\n const int stride = c -> stride ;\n uint8_t * mv_penalty = c -> current_mv_penalty ;\n init_mv4_ref ( c ) ;\n for ( block = 0 ;\n block < 4 ;\n block ++ ) {\n int mx4 , my4 ;\n int pred_x4 , pred_y4 ;\n int dmin4 ;\n static const int off [ 4 ] = {\n 2 , 1 , 1 , - 1 }\n ;\n const int mot_stride = s -> b8_stride ;\n const int mot_xy = s -> block_index [ block ] ;\n P_LEFT [ 0 ] = s -> current_picture . motion_val [ 0 ] [ mot_xy - 1 ] [ 0 ] ;\n P_LEFT [ 1 ] = s -> current_picture . motion_val [ 0 ] [ mot_xy - 1 ] [ 1 ] ;\n if ( P_LEFT [ 0 ] > ( c -> xmax << shift ) ) P_LEFT [ 0 ] = ( c -> xmax << shift ) ;\n if ( s -> first_slice_line && block < 2 ) {\n c -> pred_x = pred_x4 = P_LEFT [ 0 ] ;\n c -> pred_y = pred_y4 = P_LEFT [ 1 ] ;\n }\n else {\n P_TOP [ 0 ] = s -> current_picture . motion_val [ 0 ] [ mot_xy - mot_stride ] [ 0 ] ;\n P_TOP [ 1 ] = s -> current_picture . motion_val [ 0 ] [ mot_xy - mot_stride ] [ 1 ] ;\n P_TOPRIGHT [ 0 ] = s -> current_picture . motion_val [ 0 ] [ mot_xy - mot_stride + off [ block ] ] [ 0 ] ;\n P_TOPRIGHT [ 1 ] = s -> current_picture . motion_val [ 0 ] [ mot_xy - mot_stride + off [ block ] ] [ 1 ] ;\n if ( P_TOP [ 1 ] > ( c -> ymax << shift ) ) P_TOP [ 1 ] = ( c -> ymax << shift ) ;\n if ( P_TOPRIGHT [ 0 ] < ( c -> xmin << shift ) ) P_TOPRIGHT [ 0 ] = ( c -> xmin << shift ) ;\n if ( P_TOPRIGHT [ 0 ] > ( c -> xmax << shift ) ) P_TOPRIGHT [ 0 ] = ( c -> xmax << shift ) ;\n if ( P_TOPRIGHT [ 1 ] > ( c -> ymax << shift ) ) P_TOPRIGHT [ 1 ] = ( c -> ymax << shift ) ;\n P_MEDIAN [ 0 ] = mid_pred ( P_LEFT [ 0 ] , P_TOP [ 0 ] , P_TOPRIGHT [ 0 ] ) ;\n P_MEDIAN [ 1 ] = mid_pred ( P_LEFT [ 1 ] , P_TOP [ 1 ] , P_TOPRIGHT [ 1 ] ) ;\n c -> pred_x = pred_x4 = P_MEDIAN [ 0 ] ;\n c -> pred_y = pred_y4 = P_MEDIAN [ 1 ] ;\n }\n P_MV1 [ 0 ] = mx ;\n P_MV1 [ 1 ] = my ;\n dmin4 = epzs_motion_search4 ( s , & mx4 , & my4 , P , block , block , s -> p_mv_table , ( 1 << 16 ) >> shift ) ;\n dmin4 = c -> sub_motion_search ( s , & mx4 , & my4 , dmin4 , block , block , size , h ) ;\n if ( s -> dsp . me_sub_cmp [ 0 ] != s -> dsp . mb_cmp [ 0 ] ) {\n int dxy ;\n const int offset = ( ( block & 1 ) + ( block >> 1 ) * stride ) * 8 ;\n uint8_t * dest_y = c -> scratchpad + offset ;\n if ( s -> quarter_sample ) {\n uint8_t * ref = c -> ref [ block ] [ 0 ] + ( mx4 >> 2 ) + ( my4 >> 2 ) * stride ;\n dxy = ( ( my4 & 3 ) << 2 ) | ( mx4 & 3 ) ;\n if ( s -> no_rounding ) s -> dsp . put_no_rnd_qpel_pixels_tab [ 1 ] [ dxy ] ( dest_y , ref , stride ) ;\n else s -> dsp . put_qpel_pixels_tab [ 1 ] [ dxy ] ( dest_y , ref , stride ) ;\n }\n else {\n uint8_t * ref = c -> ref [ block ] [ 0 ] + ( mx4 >> 1 ) + ( my4 >> 1 ) * stride ;\n dxy = ( ( my4 & 1 ) << 1 ) | ( mx4 & 1 ) ;\n if ( s -> no_rounding ) s -> dsp . put_no_rnd_pixels_tab [ 1 ] [ dxy ] ( dest_y , ref , stride , h ) ;\n else s -> dsp . put_pixels_tab [ 1 ] [ dxy ] ( dest_y , ref , stride , h ) ;\n }\n dmin_sum += ( mv_penalty [ mx4 - pred_x4 ] + mv_penalty [ my4 - pred_y4 ] ) * c -> mb_penalty_factor ;\n }\n else dmin_sum += dmin4 ;\n if ( s -> quarter_sample ) {\n mx4_sum += mx4 / 2 ;\n my4_sum += my4 / 2 ;\n }\n else {\n mx4_sum += mx4 ;\n my4_sum += my4 ;\n }\n s -> current_picture . motion_val [ 0 ] [ s -> block_index [ block ] ] [ 0 ] = mx4 ;\n s -> current_picture . motion_val [ 0 ] [ s -> block_index [ block ] ] [ 1 ] = my4 ;\n if ( mx4 != mx || my4 != my ) same = 0 ;\n }\n if ( same ) return INT_MAX ;\n if ( s -> dsp . me_sub_cmp [ 0 ] != s -> dsp . mb_cmp [ 0 ] ) {\n dmin_sum += s -> dsp . mb_cmp [ 0 ] ( s , s -> new_picture . f . data [ 0 ] + s -> mb_x * 16 + s -> mb_y * 16 * stride , c -> scratchpad , stride , 16 ) ;\n }\n if ( c -> avctx -> mb_cmp & FF_CMP_CHROMA ) {\n int dxy ;\n int mx , my ;\n int offset ;\n mx = ff_h263_round_chroma ( mx4_sum ) ;\n my = ff_h263_round_chroma ( my4_sum ) ;\n dxy = ( ( my & 1 ) << 1 ) | ( mx & 1 ) ;\n offset = ( s -> mb_x * 8 + ( mx >> 1 ) ) + ( s -> mb_y * 8 + ( my >> 1 ) ) * s -> uvlinesize ;\n if ( s -> no_rounding ) {\n s -> dsp . put_no_rnd_pixels_tab [ 1 ] [ dxy ] ( c -> scratchpad , s -> last_picture . f . data [ 1 ] + offset , s -> uvlinesize , 8 ) ;\n s -> dsp . put_no_rnd_pixels_tab [ 1 ] [ dxy ] ( c -> scratchpad + 8 , s -> last_picture . f . data [ 2 ] + offset , s -> uvlinesize , 8 ) ;\n }\n else {\n s -> dsp . put_pixels_tab [ 1 ] [ dxy ] ( c -> scratchpad , s -> last_picture . f . data [ 1 ] + offset , s -> uvlinesize , 8 ) ;\n s -> dsp . put_pixels_tab [ 1 ] [ dxy ] ( c -> scratchpad + 8 , s -> last_picture . f . data [ 2 ] + offset , s -> uvlinesize , 8 ) ;\n }\n dmin_sum += s -> dsp . mb_cmp [ 1 ] ( s , s -> new_picture . f . data [ 1 ] + s -> mb_x * 8 + s -> mb_y * 8 * s -> uvlinesize , c -> scratchpad , s -> uvlinesize , 8 ) ;\n dmin_sum += s -> dsp . mb_cmp [ 1 ] ( s , s -> new_picture . f . data [ 2 ] + s -> mb_x * 8 + s -> mb_y * 8 * s -> uvlinesize , c -> scratchpad + 8 , s -> uvlinesize , 8 ) ;\n }\n c -> pred_x = mx ;\n c -> pred_y = my ;\n switch ( c -> avctx -> mb_cmp & 0xFF ) {\n case FF_CMP_RD : return dmin_sum ;\n default : return dmin_sum + 11 * c -> mb_penalty_factor ;\n }\n }"}
{"idx": 14427, "target": 1, "func": "static void glyph_position_destroy ( hb_glyph_position_t * g ) {\n free ( g ) ;\n }"}
{"idx": 14428, "target": 0, "func": "static int unlock_remote ( struct remote_lock * lock ) {\n struct active_request_slot * slot ;\n struct slot_results results ;\n struct remote_lock * prev = repo -> locks ;\n struct curl_slist * dav_headers ;\n int rc = 0 ;\n dav_headers = get_dav_token_headers ( lock , DAV_HEADER_LOCK ) ;\n slot = get_active_slot ( ) ;\n slot -> results = & results ;\n curl_setup_http_get ( slot -> curl , lock -> url , DAV_UNLOCK ) ;\n curl_easy_setopt ( slot -> curl , CURLOPT_HTTPHEADER , dav_headers ) ;\n if ( start_active_slot ( slot ) ) {\n run_active_slot ( slot ) ;\n if ( results . curl_result == CURLE_OK ) rc = 1 ;\n else fprintf ( stderr , \"UNLOCK HTTP error %ld\\n\" , results . http_code ) ;\n }\n else {\n fprintf ( stderr , \"Unable to start UNLOCK request\\n\" ) ;\n }\n curl_slist_free_all ( dav_headers ) ;\n if ( repo -> locks == lock ) {\n repo -> locks = lock -> next ;\n }\n else {\n while ( prev && prev -> next != lock ) prev = prev -> next ;\n if ( prev ) prev -> next = prev -> next -> next ;\n }\n free ( lock -> owner ) ;\n free ( lock -> url ) ;\n free ( lock -> token ) ;\n free ( lock ) ;\n return rc ;\n }"}
{"idx": 14429, "target": 0, "func": "static inline const guint8 * get_uint_string_value ( wmem_allocator_t * scope , proto_tree * tree , tvbuff_t * tvb , gint start , gint length , gint * ret_length , const guint encoding ) {\n guint32 n ;\n const guint8 * value ;\n n = get_uint_value ( tree , tvb , start , length , encoding & ~ ENC_CHARENCODING_MASK ) ;\n value = tvb_get_string_enc ( scope , tvb , start + length , n , encoding ) ;\n length += n ;\n * ret_length = length ;\n return value ;\n }"}
{"idx": 14430, "target": 0, "func": "static int evhttp_append_to_last_header ( struct evkeyvalq * headers , const char * line ) {\n struct evkeyval * header = TAILQ_LAST ( headers , evkeyvalq ) ;\n char * newval ;\n size_t old_len , line_len ;\n if ( header == NULL ) return ( - 1 ) ;\n old_len = strlen ( header -> value ) ;\n line_len = strlen ( line ) ;\n newval = realloc ( header -> value , old_len + line_len + 1 ) ;\n if ( newval == NULL ) return ( - 1 ) ;\n memcpy ( newval + old_len , line , line_len + 1 ) ;\n header -> value = newval ;\n return ( 0 ) ;\n }"}
{"idx": 14431, "target": 0, "func": "static VALUE cState_object_nl ( VALUE self ) {\n GET_STATE ( self ) ;\n return state -> object_nl ? rb_str_new ( state -> object_nl , state -> object_nl_len ) : rb_str_new2 ( \"\" ) ;\n }"}
{"idx": 14432, "target": 0, "func": "static GstFlowReturn gst_asf_demux_chain ( GstPad * pad , GstObject * parent , GstBuffer * buf ) {\n GstFlowReturn ret = GST_FLOW_OK ;\n GstASFDemux * demux ;\n demux = GST_ASF_DEMUX ( parent ) ;\n GST_LOG_OBJECT ( demux , \"buffer: size=%\" G_GSIZE_FORMAT \", offset=%\" G_GINT64_FORMAT \", time=%\" GST_TIME_FORMAT , gst_buffer_get_size ( buf ) , GST_BUFFER_OFFSET ( buf ) , GST_TIME_ARGS ( GST_BUFFER_TIMESTAMP ( buf ) ) ) ;\n if ( G_UNLIKELY ( GST_BUFFER_IS_DISCONT ( buf ) ) ) {\n GST_DEBUG_OBJECT ( demux , \"received DISCONT\" ) ;\n gst_asf_demux_mark_discont ( demux ) ;\n }\n if ( G_UNLIKELY ( ( ! GST_CLOCK_TIME_IS_VALID ( demux -> in_gap ) && GST_BUFFER_TIMESTAMP_IS_VALID ( buf ) ) ) ) {\n demux -> in_gap = GST_BUFFER_TIMESTAMP ( buf ) - demux -> in_segment . start ;\n GST_DEBUG_OBJECT ( demux , \"upstream segment start %\" GST_TIME_FORMAT \", interpolation gap: %\" GST_TIME_FORMAT , GST_TIME_ARGS ( demux -> in_segment . start ) , GST_TIME_ARGS ( demux -> in_gap ) ) ;\n }\n gst_adapter_push ( demux -> adapter , buf ) ;\n switch ( demux -> state ) {\n case GST_ASF_DEMUX_STATE_INDEX : {\n gint result = gst_asf_demux_check_header ( demux ) ;\n if ( result == GST_ASF_DEMUX_CHECK_HEADER_NEED_DATA ) break ;\n if ( result == GST_ASF_DEMUX_CHECK_HEADER_NO ) {\n GST_LOG_OBJECT ( demux , \"Received index object, its EOS\" ) ;\n goto eos ;\n }\n else {\n GST_INFO_OBJECT ( demux , \"Chained asf starting\" ) ;\n gst_asf_demux_reset ( demux , TRUE ) ;\n }\n }\n case GST_ASF_DEMUX_STATE_HEADER : {\n ret = gst_asf_demux_chain_headers ( demux ) ;\n if ( demux -> state != GST_ASF_DEMUX_STATE_DATA ) break ;\n }\n case GST_ASF_DEMUX_STATE_DATA : {\n guint64 data_size ;\n data_size = demux -> packet_size ;\n while ( gst_adapter_available ( demux -> adapter ) >= data_size ) {\n GstBuffer * buf ;\n GstAsfDemuxParsePacketError err ;\n if ( demux -> num_packets == 0 ) {\n gint result = gst_asf_demux_check_header ( demux ) ;\n if ( result == GST_ASF_DEMUX_CHECK_HEADER_YES ) {\n GST_INFO_OBJECT ( demux , \"Chained asf starting\" ) ;\n gst_asf_demux_reset ( demux , TRUE ) ;\n break ;\n }\n }\n else if ( G_UNLIKELY ( demux -> num_packets != 0 && demux -> packet >= 0 && demux -> packet >= demux -> num_packets ) ) {\n break ;\n }\n buf = gst_adapter_take_buffer ( demux -> adapter , data_size ) ;\n err = gst_asf_demux_parse_packet ( demux , buf ) ;\n gst_buffer_unref ( buf ) ;\n if ( G_LIKELY ( err == GST_ASF_DEMUX_PARSE_PACKET_ERROR_NONE ) ) ret = gst_asf_demux_push_complete_payloads ( demux , FALSE ) ;\n else GST_WARNING_OBJECT ( demux , \"Parse error\" ) ;\n if ( demux -> packet >= 0 ) ++ demux -> packet ;\n }\n if ( G_UNLIKELY ( demux -> num_packets != 0 && demux -> packet >= 0 && demux -> packet >= demux -> num_packets ) ) {\n demux -> state = GST_ASF_DEMUX_STATE_INDEX ;\n }\n break ;\n }\n default : g_assert_not_reached ( ) ;\n }\n done : if ( ret != GST_FLOW_OK ) GST_DEBUG_OBJECT ( demux , \"flow: %s\" , gst_flow_get_name ( ret ) ) ;\n return ret ;\n eos : {\n GST_DEBUG_OBJECT ( demux , \"Handled last packet, setting EOS\" ) ;\n ret = GST_FLOW_EOS ;\n goto done ;\n }\n }"}
{"idx": 14433, "target": 0, "func": "static int mp_decode_layer3 ( MPADecodeContext * s ) {\n int nb_granules , main_data_begin ;\n int gr , ch , blocksplit_flag , i , j , k , n , bits_pos ;\n GranuleDef * g ;\n int16_t exponents [ 576 ] ;\n if ( s -> lsf ) {\n main_data_begin = get_bits ( & s -> gb , 8 ) ;\n skip_bits ( & s -> gb , s -> nb_channels ) ;\n nb_granules = 1 ;\n }\n else {\n main_data_begin = get_bits ( & s -> gb , 9 ) ;\n if ( s -> nb_channels == 2 ) skip_bits ( & s -> gb , 3 ) ;\n else skip_bits ( & s -> gb , 5 ) ;\n nb_granules = 2 ;\n for ( ch = 0 ;\n ch < s -> nb_channels ;\n ch ++ ) {\n s -> granules [ ch ] [ 0 ] . scfsi = 0 ;\n s -> granules [ ch ] [ 1 ] . scfsi = get_bits ( & s -> gb , 4 ) ;\n }\n }\n for ( gr = 0 ;\n gr < nb_granules ;\n gr ++ ) {\n for ( ch = 0 ;\n ch < s -> nb_channels ;\n ch ++ ) {\n av_dlog ( s -> avctx , \"gr=%d ch=%d: side_info\\n\" , gr , ch ) ;\n g = & s -> granules [ ch ] [ gr ] ;\n g -> part2_3_length = get_bits ( & s -> gb , 12 ) ;\n g -> big_values = get_bits ( & s -> gb , 9 ) ;\n if ( g -> big_values > 288 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"big_values too big\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n g -> global_gain = get_bits ( & s -> gb , 8 ) ;\n if ( ( s -> mode_ext & ( MODE_EXT_MS_STEREO | MODE_EXT_I_STEREO ) ) == MODE_EXT_MS_STEREO ) g -> global_gain -= 2 ;\n if ( s -> lsf ) g -> scalefac_compress = get_bits ( & s -> gb , 9 ) ;\n else g -> scalefac_compress = get_bits ( & s -> gb , 4 ) ;\n blocksplit_flag = get_bits1 ( & s -> gb ) ;\n if ( blocksplit_flag ) {\n g -> block_type = get_bits ( & s -> gb , 2 ) ;\n if ( g -> block_type == 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"invalid block type\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n g -> switch_point = get_bits1 ( & s -> gb ) ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) g -> table_select [ i ] = get_bits ( & s -> gb , 5 ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) g -> subblock_gain [ i ] = get_bits ( & s -> gb , 3 ) ;\n ff_init_short_region ( s , g ) ;\n }\n else {\n int region_address1 , region_address2 ;\n g -> block_type = 0 ;\n g -> switch_point = 0 ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) g -> table_select [ i ] = get_bits ( & s -> gb , 5 ) ;\n region_address1 = get_bits ( & s -> gb , 4 ) ;\n region_address2 = get_bits ( & s -> gb , 3 ) ;\n av_dlog ( s -> avctx , \"region1=%d region2=%d\\n\" , region_address1 , region_address2 ) ;\n ff_init_long_region ( s , g , region_address1 , region_address2 ) ;\n }\n ff_region_offset2size ( g ) ;\n ff_compute_band_indexes ( s , g ) ;\n g -> preflag = 0 ;\n if ( ! s -> lsf ) g -> preflag = get_bits1 ( & s -> gb ) ;\n g -> scalefac_scale = get_bits1 ( & s -> gb ) ;\n g -> count1table_select = get_bits1 ( & s -> gb ) ;\n av_dlog ( s -> avctx , \"block_type=%d switch_point=%d\\n\" , g -> block_type , g -> switch_point ) ;\n }\n }\n if ( ! s -> adu_mode ) {\n int skip ;\n const uint8_t * ptr = s -> gb . buffer + ( get_bits_count ( & s -> gb ) >> 3 ) ;\n int extrasize = av_clip ( get_bits_left ( & s -> gb ) >> 3 , 0 , FFMAX ( 0 , LAST_BUF_SIZE - s -> last_buf_size ) ) ;\n assert ( ( get_bits_count ( & s -> gb ) & 7 ) == 0 ) ;\n av_dlog ( s -> avctx , \"seekback:%d, lastbuf:%d\\n\" , main_data_begin , s -> last_buf_size ) ;\n memcpy ( s -> last_buf + s -> last_buf_size , ptr , extrasize ) ;\n s -> in_gb = s -> gb ;\n init_get_bits ( & s -> gb , s -> last_buf , s -> last_buf_size * 8 ) ;\n # if ! UNCHECKED_BITSTREAM_READER s -> gb . size_in_bits_plus8 += extrasize * 8 ;\n # endif s -> last_buf_size <<= 3 ;\n for ( gr = 0 ;\n gr < nb_granules && ( s -> last_buf_size >> 3 ) < main_data_begin ;\n gr ++ ) {\n for ( ch = 0 ;\n ch < s -> nb_channels ;\n ch ++ ) {\n g = & s -> granules [ ch ] [ gr ] ;\n s -> last_buf_size += g -> part2_3_length ;\n memset ( g -> sb_hybrid , 0 , sizeof ( g -> sb_hybrid ) ) ;\n compute_imdct ( s , g , & s -> sb_samples [ ch ] [ 18 * gr ] [ 0 ] , s -> mdct_buf [ ch ] ) ;\n }\n }\n skip = s -> last_buf_size - 8 * main_data_begin ;\n if ( skip >= s -> gb . size_in_bits && s -> in_gb . buffer ) {\n skip_bits_long ( & s -> in_gb , skip - s -> gb . size_in_bits ) ;\n s -> gb = s -> in_gb ;\n s -> in_gb . buffer = NULL ;\n }\n else {\n skip_bits_long ( & s -> gb , skip ) ;\n }\n }\n else {\n gr = 0 ;\n }\n for ( ;\n gr < nb_granules ;\n gr ++ ) {\n for ( ch = 0 ;\n ch < s -> nb_channels ;\n ch ++ ) {\n g = & s -> granules [ ch ] [ gr ] ;\n bits_pos = get_bits_count ( & s -> gb ) ;\n if ( ! s -> lsf ) {\n uint8_t * sc ;\n int slen , slen1 , slen2 ;\n slen1 = slen_table [ 0 ] [ g -> scalefac_compress ] ;\n slen2 = slen_table [ 1 ] [ g -> scalefac_compress ] ;\n av_dlog ( s -> avctx , \"slen1=%d slen2=%d\\n\" , slen1 , slen2 ) ;\n if ( g -> block_type == 2 ) {\n n = g -> switch_point ? 17 : 18 ;\n j = 0 ;\n if ( slen1 ) {\n for ( i = 0 ;\n i < n ;\n i ++ ) g -> scale_factors [ j ++ ] = get_bits ( & s -> gb , slen1 ) ;\n }\n else {\n for ( i = 0 ;\n i < n ;\n i ++ ) g -> scale_factors [ j ++ ] = 0 ;\n }\n if ( slen2 ) {\n for ( i = 0 ;\n i < 18 ;\n i ++ ) g -> scale_factors [ j ++ ] = get_bits ( & s -> gb , slen2 ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) g -> scale_factors [ j ++ ] = 0 ;\n }\n else {\n for ( i = 0 ;\n i < 21 ;\n i ++ ) g -> scale_factors [ j ++ ] = 0 ;\n }\n }\n else {\n sc = s -> granules [ ch ] [ 0 ] . scale_factors ;\n j = 0 ;\n for ( k = 0 ;\n k < 4 ;\n k ++ ) {\n n = k == 0 ? 6 : 5 ;\n if ( ( g -> scfsi & ( 0x8 >> k ) ) == 0 ) {\n slen = ( k < 2 ) ? slen1 : slen2 ;\n if ( slen ) {\n for ( i = 0 ;\n i < n ;\n i ++ ) g -> scale_factors [ j ++ ] = get_bits ( & s -> gb , slen ) ;\n }\n else {\n for ( i = 0 ;\n i < n ;\n i ++ ) g -> scale_factors [ j ++ ] = 0 ;\n }\n }\n else {\n for ( i = 0 ;\n i < n ;\n i ++ ) {\n g -> scale_factors [ j ] = sc [ j ] ;\n j ++ ;\n }\n }\n }\n g -> scale_factors [ j ++ ] = 0 ;\n }\n }\n else {\n int tindex , tindex2 , slen [ 4 ] , sl , sf ;\n if ( g -> block_type == 2 ) tindex = g -> switch_point ? 2 : 1 ;\n else tindex = 0 ;\n sf = g -> scalefac_compress ;\n if ( ( s -> mode_ext & MODE_EXT_I_STEREO ) && ch == 1 ) {\n sf >>= 1 ;\n if ( sf < 180 ) {\n lsf_sf_expand ( slen , sf , 6 , 6 , 0 ) ;\n tindex2 = 3 ;\n }\n else if ( sf < 244 ) {\n lsf_sf_expand ( slen , sf - 180 , 4 , 4 , 0 ) ;\n tindex2 = 4 ;\n }\n else {\n lsf_sf_expand ( slen , sf - 244 , 3 , 0 , 0 ) ;\n tindex2 = 5 ;\n }\n }\n else {\n if ( sf < 400 ) {\n lsf_sf_expand ( slen , sf , 5 , 4 , 4 ) ;\n tindex2 = 0 ;\n }\n else if ( sf < 500 ) {\n lsf_sf_expand ( slen , sf - 400 , 5 , 4 , 0 ) ;\n tindex2 = 1 ;\n }\n else {\n lsf_sf_expand ( slen , sf - 500 , 3 , 0 , 0 ) ;\n tindex2 = 2 ;\n g -> preflag = 1 ;\n }\n }\n j = 0 ;\n for ( k = 0 ;\n k < 4 ;\n k ++ ) {\n n = lsf_nsf_table [ tindex2 ] [ tindex ] [ k ] ;\n sl = slen [ k ] ;\n if ( sl ) {\n for ( i = 0 ;\n i < n ;\n i ++ ) g -> scale_factors [ j ++ ] = get_bits ( & s -> gb , sl ) ;\n }\n else {\n for ( i = 0 ;\n i < n ;\n i ++ ) g -> scale_factors [ j ++ ] = 0 ;\n }\n }\n for ( ;\n j < 40 ;\n j ++ ) g -> scale_factors [ j ] = 0 ;\n }\n exponents_from_scale_factors ( s , g , exponents ) ;\n huffman_decode ( s , g , exponents , bits_pos + g -> part2_3_length ) ;\n }\n if ( s -> mode == MPA_JSTEREO ) compute_stereo ( s , & s -> granules [ 0 ] [ gr ] , & s -> granules [ 1 ] [ gr ] ) ;\n for ( ch = 0 ;\n ch < s -> nb_channels ;\n ch ++ ) {\n g = & s -> granules [ ch ] [ gr ] ;\n reorder_block ( s , g ) ;\n compute_antialias ( s , g ) ;\n compute_imdct ( s , g , & s -> sb_samples [ ch ] [ 18 * gr ] [ 0 ] , s -> mdct_buf [ ch ] ) ;\n }\n }\n if ( get_bits_count ( & s -> gb ) < 0 ) skip_bits_long ( & s -> gb , - get_bits_count ( & s -> gb ) ) ;\n return nb_granules * 18 ;\n }"}
{"idx": 14434, "target": 0, "func": "static void s390_machine_init ( void ) {\n qemu_register_machine ( & s390_machine ) ;\n }"}
{"idx": 14435, "target": 1, "func": "static int dissect_h225_Alerting_UUIE ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 499 \"./asn1/h225/h225.cnf\" h225_packet_info * h225_pi ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_Alerting_UUIE , Alerting_UUIE_sequence ) ;\n # line 503 \"./asn1/h225/h225.cnf\" h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> cs_type = H225_ALERTING ;\n if ( contains_faststart == TRUE ) g_snprintf ( h225_pi -> frame_label , 50 , \"%s OLC (%s)\" , val_to_str ( h225_pi -> cs_type , T_h323_message_body_vals , \"<unknown>\" ) , h225_pi -> frame_label ) ;\n else g_snprintf ( h225_pi -> frame_label , 50 , \"%s\" , val_to_str ( h225_pi -> cs_type , T_h323_message_body_vals , \"<unknown>\" ) ) ;\n }\n return offset ;\n }"}
{"idx": 14436, "target": 0, "func": "static int test_streaming ( xd3_stream * in_stream , uint8_t * encbuf , uint8_t * decbuf , uint8_t * delbuf , usize_t megs ) {\n xd3_stream estream , dstream ;\n int ret ;\n usize_t i , delsize , decsize ;\n xd3_config cfg ;\n xd3_init_config ( & cfg , in_stream -> flags ) ;\n cfg . flags |= XD3_COMPLEVEL_6 ;\n if ( ( ret = xd3_config_stream ( & estream , & cfg ) ) || ( ret = xd3_config_stream ( & dstream , & cfg ) ) ) {\n goto fail ;\n }\n for ( i = 0 ;\n i < megs ;\n i += 1 ) {\n ( ( usize_t * ) encbuf ) [ 0 ] = i ;\n if ( ( i % 200 ) == 199 ) {\n DOT ( ) ;\n }\n if ( ( ret = xd3_process_stream ( 1 , & estream , xd3_encode_input , 0 , encbuf , 1 << 20 , delbuf , & delsize , 1 << 20 ) ) ) {\n in_stream -> msg = estream . msg ;\n goto fail ;\n }\n if ( ( ret = xd3_process_stream ( 0 , & dstream , xd3_decode_input , 0 , delbuf , delsize , decbuf , & decsize , 1 << 20 ) ) ) {\n in_stream -> msg = dstream . msg ;\n goto fail ;\n }\n if ( decsize != 1 << 20 || memcmp ( encbuf , decbuf , 1 << 20 ) != 0 ) {\n in_stream -> msg = \"wrong result\" ;\n ret = XD3_INTERNAL ;\n goto fail ;\n }\n }\n if ( ( ret = xd3_close_stream ( & estream ) ) || ( ret = xd3_close_stream ( & dstream ) ) ) {\n goto fail ;\n }\n fail : xd3_free_stream ( & estream ) ;\n xd3_free_stream ( & dstream ) ;\n return ret ;\n }"}
{"idx": 14437, "target": 0, "func": "static void vmsvga_register_types ( void ) {\n type_register_static ( & vmsvga_info ) ;\n }"}
{"idx": 14438, "target": 0, "func": "void read_embedded_server_arguments ( const char * name ) {\n char argument [ 1024 ] , buff [ FN_REFLEN ] , * str = 0 ;\n FILE * file ;\n if ( ! test_if_hard_path ( name ) ) {\n strxmov ( buff , opt_basedir , name , NullS ) ;\n name = buff ;\n }\n fn_format ( buff , name , \"\" , \"\" , MY_UNPACK_FILENAME ) ;\n if ( ! embedded_server_arg_count ) {\n embedded_server_arg_count = 1 ;\n embedded_server_args [ 0 ] = ( char * ) \"\" ;\n }\n if ( ! ( file = my_fopen ( buff , O_RDONLY | FILE_BINARY , MYF ( MY_WME ) ) ) ) die ( \"Failed to open file '%s'\" , buff ) ;\n while ( embedded_server_arg_count < MAX_EMBEDDED_SERVER_ARGS && ( str = fgets ( argument , sizeof ( argument ) , file ) ) ) {\n * ( strend ( str ) - 1 ) = 0 ;\n if ( ! ( embedded_server_args [ embedded_server_arg_count ] = ( char * ) my_strdup ( str , MYF ( MY_WME ) ) ) ) {\n my_fclose ( file , MYF ( 0 ) ) ;\n die ( \"Out of memory\" ) ;\n }\n embedded_server_arg_count ++ ;\n }\n my_fclose ( file , MYF ( 0 ) ) ;\n if ( str ) die ( \"Too many arguments in option file: %s\" , name ) ;\n return ;\n }"}
{"idx": 14439, "target": 0, "func": "TEST_F ( TemplateURLTest , URLRefTestEncoding ) {\n TemplateURLData data ;\n data . SetURL ( \"http://foo{\nsearchTerms}\nx{\ninputEncoding?}\ny{\noutputEncoding?}\na\" ) ;\n TemplateURL url ( data ) ;\n EXPECT_TRUE ( url . url_ref ( ) . IsValid ( search_terms_data_ ) ) ;\n ASSERT_TRUE ( url . url_ref ( ) . SupportsReplacement ( search_terms_data_ ) ) ;\n GURL result ( url . url_ref ( ) . ReplaceSearchTerms ( TemplateURLRef : : SearchTermsArgs ( ASCIIToUTF16 ( \"X\" ) ) , search_terms_data_ ) ) ;\n ASSERT_TRUE ( result . is_valid ( ) ) ;\n EXPECT_EQ ( \"http://fooxxutf-8ya/\" , result . spec ( ) ) ;\n }"}
{"idx": 14440, "target": 0, "func": "static gboolean gsm_a_bssmap_stat_packet ( void * tapdata , packet_info * pinfo _U_ , epan_dissect_t * edt _U_ , const void * gatr_ptr ) {\n return gsm_a_stat_packet ( tapdata , gatr_ptr , BSSAP_PDU_TYPE_BSSMAP , 0 ) ;\n }"}
{"idx": 14441, "target": 0, "func": "static void ready_callback_call ( NautilusDirectory * directory , const ReadyCallback * callback ) {\n GList * file_list ;\n if ( callback -> file != NULL ) {\n if ( callback -> callback . file ) {\n ( * callback -> callback . file ) ( callback -> file , callback -> callback_data ) ;\n }\n }\n else if ( callback -> callback . directory != NULL ) {\n if ( directory == NULL || ! REQUEST_WANTS_TYPE ( callback -> request , REQUEST_FILE_LIST ) ) {\n file_list = NULL ;\n }\n else {\n file_list = nautilus_directory_get_file_list ( directory ) ;\n }\n ( * callback -> callback . directory ) ( directory , file_list , callback -> callback_data ) ;\n nautilus_file_list_free ( file_list ) ;\n }\n }"}
{"idx": 14442, "target": 0, "func": "long jas_stream_tell ( jas_stream_t * stream ) {\n int adjust ;\n int offset ;\n if ( stream -> bufmode_ & JAS_STREAM_RDBUF ) {\n adjust = - stream -> cnt_ ;\n }\n else if ( stream -> bufmode_ & JAS_STREAM_WRBUF ) {\n adjust = stream -> ptr_ - stream -> bufstart_ ;\n }\n else {\n adjust = 0 ;\n }\n if ( ( offset = ( * stream -> ops_ -> seek_ ) ( stream -> obj_ , 0 , SEEK_CUR ) ) < 0 ) {\n return - 1 ;\n }\n return offset + adjust ;\n }"}
{"idx": 14443, "target": 0, "func": "xmlListPtr xmlListCreate ( xmlListDeallocator deallocator , xmlListDataCompare compare ) {\n xmlListPtr l ;\n if ( NULL == ( l = ( xmlListPtr ) xmlMalloc ( sizeof ( xmlList ) ) ) ) {\n xmlGenericError ( xmlGenericErrorContext , \"Cannot initialize memory for list\" ) ;\n return ( NULL ) ;\n }\n memset ( l , 0 , sizeof ( xmlList ) ) ;\n if ( NULL == ( l -> sentinel = ( xmlLinkPtr ) xmlMalloc ( sizeof ( xmlLink ) ) ) ) {\n xmlGenericError ( xmlGenericErrorContext , \"Cannot initialize memory for sentinel\" ) ;\n xmlFree ( l ) ;\n return ( NULL ) ;\n }\n l -> sentinel -> next = l -> sentinel ;\n l -> sentinel -> prev = l -> sentinel ;\n l -> sentinel -> data = NULL ;\n if ( deallocator != NULL ) l -> linkDeallocator = deallocator ;\n if ( compare != NULL ) l -> linkCompare = compare ;\n else l -> linkCompare = xmlLinkCompare ;\n return l ;\n }"}
{"idx": 14444, "target": 0, "func": "static int typhoon_pcihost_init ( SysBusDevice * dev ) {\n return 0 ;\n }"}
{"idx": 14445, "target": 0, "func": "void var_set_errno ( int sql_errno ) {\n var_set_int ( \"$mysql_errno\" , sql_errno ) ;\n var_set_string ( \"$mysql_errname\" , get_errname_from_code ( sql_errno ) ) ;\n }"}
{"idx": 14446, "target": 0, "func": "static int get_nfd ( uint32_t * cp1 , uint32_t * cp2 , uint32_t uc ) {\n int t , b ;\n if ( ( uc >= 0x2000 && uc <= 0x2FFF ) || ( uc >= 0xF900 && uc <= 0xFAFF ) || ( uc >= 0x2F800 && uc <= 0x2FAFF ) ) return ( 0 ) ;\n if ( uc == 0x1109A || uc == 0x1109C || uc == 0x110AB ) return ( 0 ) ;\n t = 0 ;\n b = sizeof ( u_decomposition_table ) / sizeof ( u_decomposition_table [ 0 ] ) - 1 ;\n while ( b >= t ) {\n int m = ( t + b ) / 2 ;\n if ( u_decomposition_table [ m ] . nfc < uc ) t = m + 1 ;\n else if ( u_decomposition_table [ m ] . nfc > uc ) b = m - 1 ;\n else {\n * cp1 = u_decomposition_table [ m ] . cp1 ;\n * cp2 = u_decomposition_table [ m ] . cp2 ;\n return ( 1 ) ;\n }\n }\n return ( 0 ) ;\n }"}
{"idx": 14447, "target": 0, "func": "static my_bool test_if_special_chars ( const char * str ) {\n # if MYSQL_VERSION_ID >= 32300 for ( ;\n * str ;\n str ++ ) if ( ! my_isvar ( charset_info , * str ) && * str != '$' ) return 1 ;\n # endif return 0 ;\n }"}
{"idx": 14448, "target": 1, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DIRECTORYSTRING ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DISPLAYTEXT )"}
{"idx": 14449, "target": 0, "func": "static void ehci_class_init ( ObjectClass * klass , void * data ) {\n DeviceClass * dc = DEVICE_CLASS ( klass ) ;\n PCIDeviceClass * k = PCI_DEVICE_CLASS ( klass ) ;\n k -> realize = usb_ehci_pci_realize ;\n k -> exit = usb_ehci_pci_exit ;\n k -> class_id = PCI_CLASS_SERIAL_USB ;\n k -> config_write = usb_ehci_pci_write_config ;\n dc -> vmsd = & vmstate_ehci_pci ;\n dc -> props = ehci_pci_properties ;\n dc -> reset = usb_ehci_pci_reset ;\n }"}
{"idx": 14450, "target": 0, "func": "int ztokenexec ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n stream * s ;\n scanner_state state ;\n check_read_file ( i_ctx_p , s , op ) ;\n check_estack ( 1 ) ;\n gs_scanner_init ( & state , op ) ;\n return tokenexec_continue ( i_ctx_p , & state , true ) ;\n }"}
{"idx": 14451, "target": 0, "func": "static PyObject * string_rstrip ( PyStringObject * self , PyObject * args ) {\n if ( PyTuple_GET_SIZE ( args ) == 0 ) return do_strip ( self , RIGHTSTRIP ) ;\n else return do_argstrip ( self , RIGHTSTRIP , args ) ;\n }"}
{"idx": 14452, "target": 0, "func": "static void dissect_zcl_appl_evtalt_event_notif ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_appl_evtalt_event_hdr , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_appl_evtalt_event_id , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n }"}
{"idx": 14453, "target": 0, "func": "static VALUE cState_init_copy ( VALUE obj , VALUE orig ) {\n JSON_Generator_State * objState , * origState ;\n if ( obj == orig ) return obj ;\n GET_STATE_TO ( obj , objState ) ;\n GET_STATE_TO ( orig , origState ) ;\n if ( ! objState ) rb_raise ( rb_eArgError , \"unallocated JSON::State\" ) ;\n MEMCPY ( objState , origState , JSON_Generator_State , 1 ) ;\n objState -> indent = fstrndup ( origState -> indent , origState -> indent_len ) ;\n objState -> space = fstrndup ( origState -> space , origState -> space_len ) ;\n objState -> space_before = fstrndup ( origState -> space_before , origState -> space_before_len ) ;\n objState -> object_nl = fstrndup ( origState -> object_nl , origState -> object_nl_len ) ;\n objState -> array_nl = fstrndup ( origState -> array_nl , origState -> array_nl_len ) ;\n if ( origState -> array_delim ) objState -> array_delim = fbuffer_dup ( origState -> array_delim ) ;\n if ( origState -> object_delim ) objState -> object_delim = fbuffer_dup ( origState -> object_delim ) ;\n if ( origState -> object_delim2 ) objState -> object_delim2 = fbuffer_dup ( origState -> object_delim2 ) ;\n return obj ;\n }"}
{"idx": 14454, "target": 0, "func": "static int kmvc_decode_intra_8x8 ( KmvcContext * ctx , int w , int h ) {\n BitBuf bb ;\n int res , val ;\n int i , j ;\n int bx , by ;\n int l0x , l1x , l0y , l1y ;\n int mx , my ;\n kmvc_init_getbits ( bb , & ctx -> g ) ;\n for ( by = 0 ;\n by < h ;\n by += 8 ) for ( bx = 0 ;\n bx < w ;\n bx += 8 ) {\n if ( ! bytestream2_get_bytes_left ( & ctx -> g ) ) {\n av_log ( ctx -> avctx , AV_LOG_ERROR , \"Data overrun\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n kmvc_getbit ( bb , & ctx -> g , res ) ;\n if ( ! res ) {\n val = bytestream2_get_byte ( & ctx -> g ) ;\n for ( i = 0 ;\n i < 64 ;\n i ++ ) BLK ( ctx -> cur , bx + ( i & 0x7 ) , by + ( i >> 3 ) ) = val ;\n }\n else {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n l0x = bx + ( i & 1 ) * 4 ;\n l0y = by + ( i & 2 ) * 2 ;\n kmvc_getbit ( bb , & ctx -> g , res ) ;\n if ( ! res ) {\n kmvc_getbit ( bb , & ctx -> g , res ) ;\n if ( ! res ) {\n val = bytestream2_get_byte ( & ctx -> g ) ;\n for ( j = 0 ;\n j < 16 ;\n j ++ ) BLK ( ctx -> cur , l0x + ( j & 3 ) , l0y + ( j >> 2 ) ) = val ;\n }\n else {\n val = bytestream2_get_byte ( & ctx -> g ) ;\n mx = val & 0xF ;\n my = val >> 4 ;\n for ( j = 0 ;\n j < 16 ;\n j ++ ) BLK ( ctx -> cur , l0x + ( j & 3 ) , l0y + ( j >> 2 ) ) = BLK ( ctx -> cur , l0x + ( j & 3 ) - mx , l0y + ( j >> 2 ) - my ) ;\n }\n }\n else {\n for ( j = 0 ;\n j < 4 ;\n j ++ ) {\n l1x = l0x + ( j & 1 ) * 2 ;\n l1y = l0y + ( j & 2 ) ;\n kmvc_getbit ( bb , & ctx -> g , res ) ;\n if ( ! res ) {\n kmvc_getbit ( bb , & ctx -> g , res ) ;\n if ( ! res ) {\n val = bytestream2_get_byte ( & ctx -> g ) ;\n BLK ( ctx -> cur , l1x , l1y ) = val ;\n BLK ( ctx -> cur , l1x + 1 , l1y ) = val ;\n BLK ( ctx -> cur , l1x , l1y + 1 ) = val ;\n BLK ( ctx -> cur , l1x + 1 , l1y + 1 ) = val ;\n }\n else {\n val = bytestream2_get_byte ( & ctx -> g ) ;\n mx = val & 0xF ;\n my = val >> 4 ;\n BLK ( ctx -> cur , l1x , l1y ) = BLK ( ctx -> cur , l1x - mx , l1y - my ) ;\n BLK ( ctx -> cur , l1x + 1 , l1y ) = BLK ( ctx -> cur , l1x + 1 - mx , l1y - my ) ;\n BLK ( ctx -> cur , l1x , l1y + 1 ) = BLK ( ctx -> cur , l1x - mx , l1y + 1 - my ) ;\n BLK ( ctx -> cur , l1x + 1 , l1y + 1 ) = BLK ( ctx -> cur , l1x + 1 - mx , l1y + 1 - my ) ;\n }\n }\n else {\n BLK ( ctx -> cur , l1x , l1y ) = bytestream2_get_byte ( & ctx -> g ) ;\n BLK ( ctx -> cur , l1x + 1 , l1y ) = bytestream2_get_byte ( & ctx -> g ) ;\n BLK ( ctx -> cur , l1x , l1y + 1 ) = bytestream2_get_byte ( & ctx -> g ) ;\n BLK ( ctx -> cur , l1x + 1 , l1y + 1 ) = bytestream2_get_byte ( & ctx -> g ) ;\n }\n }\n }\n }\n }\n }\n return 0 ;\n }"}
{"idx": 14455, "target": 0, "func": "static void do_hybrid_window ( RA288Context * ractx , int order , int n , int non_rec , float * out , float * hist , float * out2 , const float * window ) {\n int i ;\n float buffer1 [ MAX_BACKWARD_FILTER_ORDER + 1 ] ;\n float buffer2 [ MAX_BACKWARD_FILTER_ORDER + 1 ] ;\n LOCAL_ALIGNED ( 32 , float , work , [ FFALIGN ( MAX_BACKWARD_FILTER_ORDER + MAX_BACKWARD_FILTER_LEN + MAX_BACKWARD_FILTER_NONREC , 16 ) ] ) ;\n ractx -> fdsp . vector_fmul ( work , window , hist , FFALIGN ( order + n + non_rec , 16 ) ) ;\n convolve ( buffer1 , work + order , n , order ) ;\n convolve ( buffer2 , work + order + n , non_rec , order ) ;\n for ( i = 0 ;\n i <= order ;\n i ++ ) {\n out2 [ i ] = out2 [ i ] * 0.5625 + buffer1 [ i ] ;\n out [ i ] = out2 [ i ] + buffer2 [ i ] ;\n }\n * out *= 257. / 256. ;\n }"}
{"idx": 14456, "target": 0, "func": "void proto_register_usb_vid ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_usb_vid_request , {\n \"bRequest\" , \"usbvideo.setup.bRequest\" , FT_UINT8 , BASE_HEX , VALS ( setup_request_names_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_usb_vid_length , {\n \"wLength\" , \"usbvideo.setup.wLength\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_usb_vid_request_error , {\n \"bRequestErrorCode\" , \"usbvideo.reqerror.code\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & request_error_codes_ext , 0 , \"Request Error Code\" , HFILL }\n }\n , {\n & hf_usb_vid_control_selector , {\n \"Control Selector\" , \"usbvideo.control.selector\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , \"ID of the control within its entity\" , HFILL }\n }\n , {\n & hf_usb_vid_control_entity , {\n \"Entity\" , \"usbvideo.control.entity\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , \"Unit or terminal to which the control belongs\" , HFILL }\n }\n , {\n & hf_usb_vid_control_interface , {\n \"Interface\" , \"usbvideo.control.interface\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , \"Interface to which the control belongs\" , HFILL }\n }\n , {\n & hf_usb_vid_control_info , {\n \"Info (Capabilities/State)\" , \"usbvideo.control.info\" , FT_UINT8 , BASE_HEX , NULL , 0 , \"Control capabilities and current state\" , HFILL }\n }\n , {\n & hf_usb_vid_control_info_D [ 0 ] , {\n \"Supports GET\" , \"usbvideo.control.info.D0\" , FT_BOOLEAN , 8 , TFS ( & tfs_yes_no ) , ( 1 << 0 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_control_info_D [ 1 ] , {\n \"Supports SET\" , \"usbvideo.control.info.D1\" , FT_BOOLEAN , 8 , TFS ( & tfs_yes_no ) , ( 1 << 1 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_control_info_D [ 2 ] , {\n \"Disabled due to automatic mode\" , \"usbvideo.control.info.D2\" , FT_BOOLEAN , 8 , TFS ( & tfs_yes_no ) , ( 1 << 2 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_control_info_D [ 3 ] , {\n \"Autoupdate\" , \"usbvideo.control.info.D3\" , FT_BOOLEAN , 8 , TFS ( & tfs_yes_no ) , ( 1 << 3 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_control_info_D [ 4 ] , {\n \"Asynchronous\" , \"usbvideo.control.info.D4\" , FT_BOOLEAN , 8 , TFS ( & tfs_yes_no ) , ( 1 << 4 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_control_info_D [ 5 ] , {\n \"Disabled due to incompatibility with Commit state\" , \"usbvideo.control.info.D5\" , FT_BOOLEAN , 8 , TFS ( & tfs_yes_no ) , ( 1 << 5 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_control_info_D [ 6 ] , {\n \"Reserved\" , \"usbvideo.control.info.D6\" , FT_UINT8 , BASE_HEX , NULL , ( 3 << 6 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_control_length , {\n \"Control Length\" , \"usbvideo.control.len\" , FT_UINT16 , BASE_DEC , NULL , 0 , \"Control size in bytes\" , HFILL }\n }\n , {\n & hf_usb_vid_control_default , {\n \"Default value\" , \"usbvideo.control.value.default\" , FT_UINT32 , BASE_DEC_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_usb_vid_control_min , {\n \"Minimum value\" , \"usbvideo.control.value.min\" , FT_UINT32 , BASE_DEC_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_usb_vid_control_max , {\n \"Maximum value\" , \"usbvideo.control.value.max\" , FT_UINT32 , BASE_DEC_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_usb_vid_control_res , {\n \"Resolution\" , \"usbvideo.control.value.res\" , FT_UINT32 , BASE_DEC_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_usb_vid_control_cur , {\n \"Current value\" , \"usbvideo.control.value.cur\" , FT_UINT32 , BASE_DEC_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_usb_vid_control_ifdesc_iTerminal , {\n \"iTerminal\" , \"usbvideo.terminal.name\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , \"String Descriptor describing this terminal\" , HFILL }\n }\n , {\n & hf_usb_vid_control_ifdesc_terminal_id , {\n \"bTerminalID\" , \"usbvideo.terminal.id\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_usb_vid_control_ifdesc_terminal_type , {\n \"wTerminalType\" , \"usbvideo.terminal.type\" , FT_UINT16 , BASE_HEX | BASE_EXT_STRING , & vc_terminal_types_ext , 0 , NULL , HFILL }\n }\n , {\n & hf_usb_vid_control_ifdesc_assoc_terminal , {\n \"bAssocTerminal\" , \"usbvideo.terminal.assocTerminal\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , \"Associated Terminal\" , HFILL }\n }\n , {\n & hf_usb_vid_cam_objective_focal_len_min , {\n \"wObjectiveFocalLengthMin\" , \"usbvideo.camera.objectiveFocalLengthMin\" , FT_UINT16 , BASE_DEC , NULL , 0 , \"Minimum Focal Length for Optical Zoom\" , HFILL }\n }\n , {\n & hf_usb_vid_cam_objective_focal_len_max , {\n \"wObjectiveFocalLengthMax\" , \"usbvideo.camera.objectiveFocalLengthMax\" , FT_UINT16 , BASE_DEC , NULL , 0 , \"Minimum Focal Length for Optical Zoom\" , HFILL }\n }\n , {\n & hf_usb_vid_cam_ocular_focal_len , {\n \"wOcularFocalLength\" , \"usbvideo.camera.ocularFocalLength\" , FT_UINT16 , BASE_DEC , NULL , 0 , \"Ocular Focal Length for Optical Zoom\" , HFILL }\n }\n , {\n & hf_usb_vid_cam_control_D [ 0 ] , {\n \"Scanning Mode\" , \"usbvideo.camera.control.D0\" , FT_BOOLEAN , array_length ( hf_usb_vid_cam_control_D ) , TFS ( & tfs_yes_no ) , ( 1 << 0 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_cam_control_D [ 1 ] , {\n \"Auto Exposure Mode\" , \"usbvideo.camera.control.D1\" , FT_BOOLEAN , array_length ( hf_usb_vid_cam_control_D ) , TFS ( & tfs_yes_no ) , ( 1 << 1 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_cam_control_D [ 2 ] , {\n \"Auto Exposure Priority\" , \"usbvideo.camera.control.D2\" , FT_BOOLEAN , array_length ( hf_usb_vid_cam_control_D ) , TFS ( & tfs_yes_no ) , ( 1 << 2 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_cam_control_D [ 3 ] , {\n \"Exposure Time (Absolute)\" , \"usbvideo.camera.control.D3\" , FT_BOOLEAN , array_length ( hf_usb_vid_cam_control_D ) , TFS ( & tfs_yes_no ) , ( 1 << 3 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_cam_control_D [ 4 ] , {\n \"Exposure Time (Relative)\" , \"usbvideo.camera.control.D4\" , FT_BOOLEAN , array_length ( hf_usb_vid_cam_control_D ) , TFS ( & tfs_yes_no ) , ( 1 << 4 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_cam_control_D [ 5 ] , {\n \"Focus (Absolute)\" , \"usbvideo.camera.control.D5\" , FT_BOOLEAN , array_length ( hf_usb_vid_cam_control_D ) , TFS ( & tfs_yes_no ) , ( 1 << 5 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_cam_control_D [ 6 ] , {\n \"Focus (Relative)\" , \"usbvideo.camera.control.D6\" , FT_BOOLEAN , array_length ( hf_usb_vid_cam_control_D ) , TFS ( & tfs_yes_no ) , ( 1 << 6 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_cam_control_D [ 7 ] , {\n \"Iris (Absolute)\" , \"usbvideo.camera.control.D7\" , FT_BOOLEAN , array_length ( hf_usb_vid_cam_control_D ) , TFS ( & tfs_yes_no ) , ( 1 << 7 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_cam_control_D [ 8 ] , {\n \"Iris (Relative)\" , \"usbvideo.camera.control.D8\" , FT_BOOLEAN , array_length ( hf_usb_vid_cam_control_D ) , TFS ( & tfs_yes_no ) , ( 1 << 8 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_cam_control_D [ 9 ] , {\n \"Zoom (Absolute)\" , \"usbvideo.camera.control.D9\" , FT_BOOLEAN , array_length ( hf_usb_vid_cam_control_D ) , TFS ( & tfs_yes_no ) , ( 1 << 9 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_cam_control_D [ 10 ] , {\n \"Zoom (Relative)\" , \"usbvideo.camera.control.D10\" , FT_BOOLEAN , array_length ( hf_usb_vid_cam_control_D ) , TFS ( & tfs_yes_no ) , ( 1 << 10 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_cam_control_D [ 11 ] , {\n \"PanTilt (Absolute)\" , \"usbvideo.camera.control.D11\" , FT_BOOLEAN , array_length ( hf_usb_vid_cam_control_D ) , TFS ( & tfs_yes_no ) , ( 1 << 11 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_cam_control_D [ 12 ] , {\n \"PanTilt (Relative)\" , \"usbvideo.camera.control.D12\" , FT_BOOLEAN , array_length ( hf_usb_vid_cam_control_D ) , TFS ( & tfs_yes_no ) , ( 1 << 12 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_cam_control_D [ 13 ] , {\n \"Roll (Absolute)\" , \"usbvideo.camera.control.D13\" , FT_BOOLEAN , array_length ( hf_usb_vid_cam_control_D ) , TFS ( & tfs_yes_no ) , ( 1 << 13 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_cam_control_D [ 14 ] , {\n \"Roll (Relative)\" , \"usbvideo.camera.control.D14\" , FT_BOOLEAN , array_length ( hf_usb_vid_cam_control_D ) , TFS ( & tfs_yes_no ) , ( 1 << 14 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_cam_control_D [ 15 ] , {\n \"D15\" , \"usbvideo.camera.control.D15\" , FT_BOOLEAN , array_length ( hf_usb_vid_cam_control_D ) , TFS ( & tfs_yes_no ) , ( 1 << 15 ) , \"Reserved\" , HFILL }\n }\n , {\n & hf_usb_vid_cam_control_D [ 16 ] , {\n \"D16\" , \"usbvideo.camera.control.D16\" , FT_BOOLEAN , array_length ( hf_usb_vid_cam_control_D ) , TFS ( & tfs_yes_no ) , ( 1 << 16 ) , \"Reserved\" , HFILL }\n }\n , {\n & hf_usb_vid_cam_control_D [ 17 ] , {\n \"Auto Focus\" , \"usbvideo.camera.control.D17\" , FT_BOOLEAN , array_length ( hf_usb_vid_cam_control_D ) , TFS ( & tfs_yes_no ) , ( 1 << 17 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_cam_control_D [ 18 ] , {\n \"Privacy\" , \"usbvideo.camera.control.D18\" , FT_BOOLEAN , array_length ( hf_usb_vid_cam_control_D ) , TFS ( & tfs_yes_no ) , ( 1 << 18 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_cam_control_D [ 19 ] , {\n \"Focus (Simple)\" , \"usbvideo.camera.control.D19\" , FT_BOOLEAN , array_length ( hf_usb_vid_cam_control_D ) , TFS ( & tfs_yes_no ) , ( 1 << 19 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_cam_control_D [ 20 ] , {\n \"Window\" , \"usbvideo.camera.control.D20\" , FT_BOOLEAN , array_length ( hf_usb_vid_cam_control_D ) , TFS ( & tfs_yes_no ) , ( 1 << 20 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_cam_control_D [ 21 ] , {\n \"Region of Interest\" , \"usbvideo.camera.control.D21\" , FT_BOOLEAN , array_length ( hf_usb_vid_cam_control_D ) , TFS ( & tfs_yes_no ) , ( 1 << 21 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_control_ifdesc_unit_id , {\n \"bUnitID\" , \"usbvideo.unit.id\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_usb_vid_num_inputs , {\n \"bNrInPins\" , \"usbvideo.unit.numInputs\" , FT_UINT8 , BASE_DEC , NULL , 0 , \"Number of input pins\" , HFILL }\n }\n , {\n & hf_usb_vid_sources , {\n \"baSourceID\" , \"usbvideo.unit.sources\" , FT_BYTES , BASE_NONE , NULL , 0 , \"Input entity IDs\" , HFILL }\n }\n , {\n & hf_usb_vid_iProcessing , {\n \"iProcessing\" , \"usbvideo.processor.name\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , \"String Descriptor describing this terminal\" , HFILL }\n }\n , {\n & hf_usb_vid_proc_control_D [ 0 ] , {\n \"Brightness\" , \"usbvideo.processor.control.D0\" , FT_BOOLEAN , 24 , TFS ( & tfs_yes_no ) , ( 1 << 0 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_proc_control_D [ 1 ] , {\n \"Contrast\" , \"usbvideo.processor.control.D1\" , FT_BOOLEAN , 24 , TFS ( & tfs_yes_no ) , ( 1 << 1 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_proc_control_D [ 2 ] , {\n \"Hue\" , \"usbvideo.processor.control.D2\" , FT_BOOLEAN , 24 , TFS ( & tfs_yes_no ) , ( 1 << 2 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_proc_control_D [ 3 ] , {\n \"Saturation\" , \"usbvideo.processor.control.D3\" , FT_BOOLEAN , 24 , TFS ( & tfs_yes_no ) , ( 1 << 3 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_proc_control_D [ 4 ] , {\n \"Sharpness\" , \"usbvideo.processor.control.D4\" , FT_BOOLEAN , 24 , TFS ( & tfs_yes_no ) , ( 1 << 4 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_proc_control_D [ 5 ] , {\n \"Gamma\" , \"usbvideo.processor.control.D5\" , FT_BOOLEAN , 24 , TFS ( & tfs_yes_no ) , ( 1 << 5 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_proc_control_D [ 6 ] , {\n \"White Balance Temperature\" , \"usbvideo.processor.control.D6\" , FT_BOOLEAN , 24 , TFS ( & tfs_yes_no ) , ( 1 << 6 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_proc_control_D [ 7 ] , {\n \"White Balance Component\" , \"usbvideo.processor.control.D7\" , FT_BOOLEAN , 24 , TFS ( & tfs_yes_no ) , ( 1 << 7 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_proc_control_D [ 8 ] , {\n \"Backlight Compensation\" , \"usbvideo.processor.control.D8\" , FT_BOOLEAN , 24 , TFS ( & tfs_yes_no ) , ( 1 << 8 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_proc_control_D [ 9 ] , {\n \"Gain\" , \"usbvideo.processor.control.D9\" , FT_BOOLEAN , 24 , TFS ( & tfs_yes_no ) , ( 1 << 9 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_proc_control_D [ 10 ] , {\n \"Power Line Frequency\" , \"usbvideo.processor.control.D10\" , FT_BOOLEAN , 24 , TFS ( & tfs_yes_no ) , ( 1 << 10 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_proc_control_D [ 11 ] , {\n \"Hue, Auto\" , \"usbvideo.processor.control.D11\" , FT_BOOLEAN , 24 , TFS ( & tfs_yes_no ) , ( 1 << 11 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_proc_control_D [ 12 ] , {\n \"White Balance Temperature, Auto\" , \"usbvideo.processor.control.D12\" , FT_BOOLEAN , 24 , TFS ( & tfs_yes_no ) , ( 1 << 12 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_proc_control_D [ 13 ] , {\n \"White Balance Component, Auto\" , \"usbvideo.processor.control.D13\" , FT_BOOLEAN , 24 , TFS ( & tfs_yes_no ) , ( 1 << 13 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_proc_control_D [ 14 ] , {\n \"Digital Multiplier\" , \"usbvideo.processor.control.D14\" , FT_BOOLEAN , 24 , TFS ( & tfs_yes_no ) , ( 1 << 14 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_proc_control_D [ 15 ] , {\n \"Digital Multiplier Limit\" , \"usbvideo.processor.control.D15\" , FT_BOOLEAN , 24 , TFS ( & tfs_yes_no ) , ( 1 << 15 ) , \"Reserved\" , HFILL }\n }\n , {\n & hf_usb_vid_proc_control_D [ 16 ] , {\n \"Analog Video Standard\" , \"usbvideo.processor.control.D16\" , FT_BOOLEAN , 24 , TFS ( & tfs_yes_no ) , ( 1 << 16 ) , \"Reserved\" , HFILL }\n }\n , {\n & hf_usb_vid_proc_control_D [ 17 ] , {\n \"Analog Video Lock Status\" , \"usbvideo.processor.control.D17\" , FT_BOOLEAN , 24 , TFS ( & tfs_yes_no ) , ( 1 << 17 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_proc_control_D [ 18 ] , {\n \"Contrast, Auto\" , \"usbvideo.processor.control.D18\" , FT_BOOLEAN , 24 , TFS ( & tfs_yes_no ) , ( 1 << 18 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_proc_standards , {\n \"bmVideoStandards\" , \"usbvideo.processor.standards\" , FT_UINT8 , BASE_HEX , NULL , 0 , \"Supported analog video standards\" , HFILL }\n }\n , {\n & hf_usb_vid_proc_standards_D [ 0 ] , {\n \"None\" , \"usbvideo.processor.standards.D0\" , FT_BOOLEAN , 8 , TFS ( & tfs_yes_no ) , ( 1 << 0 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_proc_standards_D [ 1 ] , {\n \"NTSC - 525/60\" , \"usbvideo.processor.standards.D1\" , FT_BOOLEAN , 8 , TFS ( & tfs_yes_no ) , ( 1 << 1 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_proc_standards_D [ 2 ] , {\n \"PAL - 625/50\" , \"usbvideo.processor.standards.D2\" , FT_BOOLEAN , 8 , TFS ( & tfs_yes_no ) , ( 1 << 2 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_proc_standards_D [ 3 ] , {\n \"SECAM - 625/50\" , \"usbvideo.processor.standards.D3\" , FT_BOOLEAN , 8 , TFS ( & tfs_yes_no ) , ( 1 << 3 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_proc_standards_D [ 4 ] , {\n \"NTSC - 625/50\" , \"usbvideo.processor.standards.D4\" , FT_BOOLEAN , 8 , TFS ( & tfs_yes_no ) , ( 1 << 4 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_proc_standards_D [ 5 ] , {\n \"PAL - 525/60\" , \"usbvideo.processor.standards.D5\" , FT_BOOLEAN , 8 , TFS ( & tfs_yes_no ) , ( 1 << 5 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_max_multiplier , {\n \"wMaxMultiplier\" , \"usbvideo.processor.maxMultiplier\" , FT_UINT16 , BASE_DEC , NULL , 0 , \"100 x max digital multiplication\" , HFILL }\n }\n , {\n & hf_usb_vid_iSelector , {\n \"iSelector\" , \"usbvideo.selector.name\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , \"String Descriptor describing this terminal\" , HFILL }\n }\n , {\n & hf_usb_vid_iExtension , {\n \"iExtension\" , \"usbvideo.extension.name\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , \"String Descriptor describing this terminal\" , HFILL }\n }\n , {\n & hf_usb_vid_exten_guid , {\n \"guid\" , \"usbvideo.extension.guid\" , FT_GUID , BASE_NONE , NULL , 0 , \"Identifier\" , HFILL }\n }\n , {\n & hf_usb_vid_exten_num_controls , {\n \"bNumControls\" , \"usbvideo.extension.numControls\" , FT_UINT8 , BASE_DEC , NULL , 0 , \"Number of controls\" , HFILL }\n }\n , {\n & hf_usb_vid_probe_hint , {\n \"bmHint\" , \"usbvideo.probe.hint\" , FT_UINT16 , BASE_HEX , NULL , 0 , \"Fields to hold constant during negotiation\" , HFILL }\n }\n , {\n & hf_usb_vid_probe_hint_D [ 0 ] , {\n \"dwFrameInterval\" , \"usbvideo.probe.hint.D0\" , FT_BOOLEAN , 5 , TFS ( & probe_hint_meaning ) , ( 1 << 0 ) , \"Frame Rate\" , HFILL }\n }\n , {\n & hf_usb_vid_probe_hint_D [ 1 ] , {\n \"wKeyFrameRate\" , \"usbvideo.probe.hint.D1\" , FT_BOOLEAN , 5 , TFS ( & probe_hint_meaning ) , ( 1 << 1 ) , \"Key Frame Rate\" , HFILL }\n }\n , {\n & hf_usb_vid_probe_hint_D [ 2 ] , {\n \"wPFrameRate\" , \"usbvideo.probe.hint.D2\" , FT_BOOLEAN , 5 , TFS ( & probe_hint_meaning ) , ( 1 << 2 ) , \"P-Frame Rate\" , HFILL }\n }\n , {\n & hf_usb_vid_probe_hint_D [ 3 ] , {\n \"wCompQuality\" , \"usbvideo.probe.hint.D3\" , FT_BOOLEAN , 5 , TFS ( & probe_hint_meaning ) , ( 1 << 3 ) , \"Compression Quality\" , HFILL }\n }\n , {\n & hf_usb_vid_probe_hint_D [ 4 ] , {\n \"wCompWindowSize\" , \"usbvideo.probe.hint.D4\" , FT_BOOLEAN , 5 , TFS ( & probe_hint_meaning ) , ( 1 << 4 ) , \"Compression Window Size\" , HFILL }\n }\n , {\n & hf_usb_vid_probe_key_frame_rate , {\n \"wKeyFrameRate\" , \"usbvideo.probe.keyFrameRate\" , FT_UINT16 , BASE_DEC , NULL , 0 , \"Key frame rate\" , HFILL }\n }\n , {\n & hf_usb_vid_probe_p_frame_rate , {\n \"wPFrameRate\" , \"usbvideo.probe.pFrameRate\" , FT_UINT16 , BASE_DEC , NULL , 0 , \"P frame rate\" , HFILL }\n }\n , {\n & hf_usb_vid_probe_comp_quality , {\n \"wCompQuality\" , \"usbvideo.probe.compQuality\" , FT_UINT16 , BASE_DEC , NULL , 0 , \"Compression quality [0-10000]\" , HFILL }\n }\n , {\n & hf_usb_vid_probe_comp_window , {\n \"wCompWindow\" , \"usbvideo.probe.compWindow\" , FT_UINT16 , BASE_DEC , NULL , 0 , \"Window size for average bit rate control\" , HFILL }\n }\n , {\n & hf_usb_vid_probe_delay , {\n \"wDelay\" , \"usbvideo.probe.delay\" , FT_UINT16 , BASE_DEC , NULL , 0 , \"Latency in ms from capture to USB\" , HFILL }\n }\n , {\n & hf_usb_vid_probe_max_frame_sz , {\n \"dwMaxVideoFrameSize\" , \"usbvideo.probe.maxVideoFrameSize\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_usb_vid_probe_max_payload_sz , {\n \"dwMaxPayloadTransferSize\" , \"usbvideo.probe.maxPayloadTransferSize\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_usb_vid_probe_clock_freq , {\n \"dwClockFrequency\" , \"usbvideo.probe.clockFrequency\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Device clock frequency in Hz\" , HFILL }\n }\n , {\n & hf_usb_vid_probe_framing , {\n \"bmFramingInfo\" , \"usbvideo.probe.framing\" , FT_UINT16 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_usb_vid_probe_framing_D [ 0 ] , {\n \"Frame ID required\" , \"usbvideo.probe.framing.D0\" , FT_BOOLEAN , 2 , TFS ( & tfs_yes_no ) , ( 1 << 0 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_probe_framing_D [ 1 ] , {\n \"EOF utilized\" , \"usbvideo.probe.framing.D1\" , FT_BOOLEAN , 2 , TFS ( & tfs_yes_no ) , ( 1 << 1 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_probe_preferred_ver , {\n \"bPreferredVersion\" , \"usbvideo.probe.preferredVersion\" , FT_UINT8 , BASE_DEC , NULL , 0 , \"Preferred payload format version\" , HFILL }\n }\n , {\n & hf_usb_vid_probe_min_ver , {\n \"bMinVersion\" , \"usbvideo.probe.minVersion\" , FT_UINT8 , BASE_DEC , NULL , 0 , \"Min supported payload format version\" , HFILL }\n }\n , {\n & hf_usb_vid_probe_max_ver , {\n \"bPreferredVersion\" , \"usbvideo.probe.maxVer\" , FT_UINT8 , BASE_DEC , NULL , 0 , \"Max supported payload format version\" , HFILL }\n }\n , {\n & hf_usb_vid_control_ifdesc_dwClockFrequency , {\n \"dwClockFrequency\" , \"usbvideo.probe.clockFrequency\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Device clock frequency (Hz) for selected format\" , HFILL }\n }\n , {\n & hf_usb_vid_format_index , {\n \"bFormatIndex\" , \"usbvideo.format.index\" , FT_UINT8 , BASE_DEC , NULL , 0 , \"Index of this format descriptor\" , HFILL }\n }\n , {\n & hf_usb_vid_format_num_frame_descriptors , {\n \"bNumFrameDescriptors\" , \"usbvideo.format.numFrameDescriptors\" , FT_UINT8 , BASE_DEC , NULL , 0 , \"Number of frame descriptors for this format\" , HFILL }\n }\n , {\n & hf_usb_vid_format_guid , {\n \"guidFormat\" , \"usbvideo.format.guid\" , FT_GUID , BASE_NONE , NULL , 0 , \"Stream encoding format\" , HFILL }\n }\n , {\n & hf_usb_vid_format_bits_per_pixel , {\n \"bBitsPerPixel\" , \"usbvideo.format.bitsPerPixel\" , FT_UINT8 , BASE_DEC , NULL , 0 , \"Bits per pixel\" , HFILL }\n }\n , {\n & hf_usb_vid_default_frame_index , {\n \"bDefaultFrameIndex\" , \"usbvideo.format.defaultFrameIndex\" , FT_UINT8 , BASE_DEC , NULL , 0 , \"Optimum frame index for this stream\" , HFILL }\n }\n , {\n & hf_usb_vid_aspect_ratio_x , {\n \"bAspectRatioX\" , \"usbvideo.format.aspectRatioX\" , FT_UINT8 , BASE_DEC , NULL , 0 , \"X dimension of picture aspect ratio\" , HFILL }\n }\n , {\n & hf_usb_vid_aspect_ratio_y , {\n \"bAspectRatioY\" , \"usbvideo.format.aspectRatioY\" , FT_UINT8 , BASE_DEC , NULL , 0 , \"Y dimension of picture aspect ratio\" , HFILL }\n }\n , {\n & hf_usb_vid_interlace_flags , {\n \"bmInterlaceFlags\" , \"usbvideo.format.interlace\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_usb_vid_is_interlaced , {\n \"Interlaced stream\" , \"usbvideo.format.interlace.D0\" , FT_BOOLEAN , 8 , TFS ( & is_interlaced_meaning ) , ( 1 << 0 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_interlaced_fields , {\n \"Fields per frame\" , \"usbvideo.format.interlace.D1\" , FT_BOOLEAN , 8 , TFS ( & interlaced_fields_meaning ) , ( 1 << 1 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_field_1_first , {\n \"Field 1 first\" , \"usbvideo.format.interlace.D2\" , FT_BOOLEAN , 8 , TFS ( & tfs_yes_no ) , ( 1 << 2 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_field_pattern , {\n \"Field pattern\" , \"usbvideo.format.interlace.pattern\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & field_pattern_meaning_ext , ( 3 << 4 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_copy_protect , {\n \"bCopyProtect\" , \"usbvideo.format.copyProtect\" , FT_UINT8 , BASE_DEC , VALS ( copy_protect_meaning ) , 0 , NULL , HFILL }\n }\n , {\n & hf_usb_vid_variable_size , {\n \"Variable size\" , \"usbvideo.format.variableSize\" , FT_BOOLEAN , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_usb_vid_mjpeg_flags , {\n \"bmFlags\" , \"usbvideo.mjpeg.flags\" , FT_UINT8 , BASE_HEX , NULL , 0 , \"Characteristics\" , HFILL }\n }\n , {\n & hf_usb_vid_mjpeg_fixed_samples , {\n \"Fixed size samples\" , \"usbvideo.mjpeg.fixed_size\" , FT_BOOLEAN , 8 , TFS ( & tfs_yes_no ) , ( 1 << 0 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_frame_index , {\n \"bFrameIndex\" , \"usbvideo.frame.index\" , FT_UINT8 , BASE_DEC , NULL , 0 , \"Index of this frame descriptor\" , HFILL }\n }\n , {\n & hf_usb_vid_frame_capabilities , {\n \"bmCapabilities\" , \"usbvideo.frame.capabilities\" , FT_UINT8 , BASE_HEX , NULL , 0 , \"Capabilities\" , HFILL }\n }\n , {\n & hf_usb_vid_frame_stills_supported , {\n \"Still image\" , \"usbvideo.frame.stills\" , FT_BOOLEAN , 8 , TFS ( & tfs_supported_not_supported ) , ( 1 << 0 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_frame_interval , {\n \"dwFrameInterval\" , \"usbvideo.frame.interval\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Frame interval multiple of 100 ns\" , HFILL }\n }\n , {\n & hf_usb_vid_frame_fixed_frame_rate , {\n \"Fixed frame rate\" , \"usbvideo.frame.fixedRate\" , FT_BOOLEAN , 8 , TFS ( & tfs_yes_no ) , ( 1 << 1 ) , NULL , HFILL }\n }\n , {\n & hf_usb_vid_frame_width , {\n \"wWidth\" , \"usbvideo.frame.width\" , FT_UINT16 , BASE_DEC , NULL , 0 , \"Width of frame in pixels\" , HFILL }\n }\n , {\n & hf_usb_vid_frame_height , {\n \"wHeight\" , \"usbvideo.frame.height\" , FT_UINT16 , BASE_DEC , NULL , 0 , \"Height of frame in pixels\" , HFILL }\n }\n , {\n & hf_usb_vid_frame_min_bit_rate , {\n \"dwMinBitRate\" , \"usbvideo.frame.minBitRate\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Minimum bit rate in bps\" , HFILL }\n }\n , {\n & hf_usb_vid_frame_max_bit_rate , {\n \"dwMaxBitRate\" , \"usbvideo.frame.maxBitRate\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Maximum bit rate in bps\" , HFILL }\n }\n , {\n & hf_usb_vid_frame_max_frame_sz , {\n \"dwMaxVideoFrameBufferSize\" , \"usbvideo.frame.maxBuffer\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Maximum bytes per frame\" , HFILL }\n }\n , {\n & hf_usb_vid_frame_default_interval , {\n \"dwDefaultFrameInterval\" , \"usbvideo.frame.interval.default\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Suggested default\" , HFILL }\n }\n , {\n & hf_usb_vid_frame_interval_type , {\n \"bFrameIntervalType\" , \"usbvideo.frame.interval.type\" , FT_UINT8 , BASE_DEC , NULL , 0 , \"Frame rate control (continuous/discrete)\" , HFILL }\n }\n , {\n & hf_usb_vid_frame_min_interval , {\n \"dwMinFrameInterval\" , \"usbvideo.frame.interval.min\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Shortest frame interval (* 100 ns)\" , HFILL }\n }\n , {\n & hf_usb_vid_frame_max_interval , {\n \"dwMaxFrameInterval\" , \"usbvideo.frame.interval.max\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Longest frame interval (* 100 ns)\" , HFILL }\n }\n , {\n & hf_usb_vid_frame_step_interval , {\n \"dwMinFrameInterval\" , \"usbvideo.frame.interval.step\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Granularity of frame interval (* 100 ns)\" , HFILL }\n }\n , {\n & hf_usb_vid_frame_bytes_per_line , {\n \"dwBytesPerLine\" , \"usbvideo.frame.bytesPerLine\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Fixed number of bytes per video line\" , HFILL }\n }\n , {\n & hf_usb_vid_color_primaries , {\n \"bColorPrimaries\" , \"usbvideo.color.primaries\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & color_primaries_meaning_ext , 0 , NULL , HFILL }\n }\n , {\n & hf_usb_vid_transfer_characteristics , {\n \"bTransferCharacteristics\" , \"usbvideo.color.transferCharacteristics\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & color_transfer_characteristics_ext , 0 , NULL , HFILL }\n }\n , {\n & hf_usb_vid_matrix_coefficients , {\n \"bMatrixCoefficients\" , \"usbvideo.color.matrixCoefficients\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & matrix_coefficients_meaning_ext , 0 , NULL , HFILL }\n }\n , {\n & hf_usb_vid_control_ifdesc_bcdUVC , {\n \"bcdUVC\" , \"usbvideo.bcdUVC\" , FT_UINT16 , BASE_HEX , NULL , 0 , \"Video Device Class Specification release number\" , HFILL }\n }\n , {\n & hf_usb_vid_control_ifdesc_bInCollection , {\n \"bInCollection\" , \"usbvideo.numStreamingInterfaces\" , FT_UINT8 , BASE_DEC , NULL , 0 , \"Number of VideoStreaming interfaces\" , HFILL }\n }\n , {\n & hf_usb_vid_control_ifdesc_baInterfaceNr , {\n \"baInterfaceNr\" , \"usbvideo.streamingInterfaceNumbers\" , FT_BYTES , BASE_NONE , NULL , 0 , \"Interface numbers of VideoStreaming interfaces\" , HFILL }\n }\n , {\n & hf_usb_vid_streaming_ifdesc_bNumFormats , {\n \"bNumFormats\" , \"usbvideo.streaming.numFormats\" , FT_UINT8 , BASE_DEC , NULL , 0 , \"Number of video payload format descriptors\" , HFILL }\n }\n , {\n & hf_usb_vid_streaming_bmInfo , {\n \"bmInfo\" , \"usbvideo.streaming.info\" , FT_UINT8 , BASE_HEX , NULL , 0 , \"Capabilities\" , HFILL }\n }\n , {\n & hf_usb_vid_streaming_info_D [ 0 ] , {\n \"Dynamic Format Change\" , \"usbvideo.streaming.info.D0\" , FT_BOOLEAN , 8 , TFS ( & tfs_yes_no ) , ( 1 << 0 ) , \"Dynamic Format Change\" , HFILL }\n }\n , {\n & hf_usb_vid_streaming_control_D [ 0 ] , {\n \"wKeyFrameRate\" , \"usbvideo.streaming.control.D0\" , FT_BOOLEAN , 6 , TFS ( & tfs_yes_no ) , ( 1 << 0 ) , \"Probe and Commit support\" , HFILL }\n }\n , {\n & hf_usb_vid_streaming_control_D [ 1 ] , {\n \"wPFrameRate\" , \"usbvideo.streaming.control.D1\" , FT_BOOLEAN , 6 , TFS ( & tfs_yes_no ) , ( 1 << 1 ) , \"Probe and Commit support\" , HFILL }\n }\n , {\n & hf_usb_vid_streaming_control_D [ 2 ] , {\n \"wCompQuality\" , \"usbvideo.streaming.control.D2\" , FT_BOOLEAN , 6 , TFS ( & tfs_yes_no ) , ( 1 << 2 ) , \"Probe and Commit support\" , HFILL }\n }\n , {\n & hf_usb_vid_streaming_control_D [ 3 ] , {\n \"wCompWindowSize\" , \"usbvideo.streaming.control.D3\" , FT_BOOLEAN , 6 , TFS ( & tfs_yes_no ) , ( 1 << 3 ) , \"Probe and Commit support\" , HFILL }\n }\n , {\n & hf_usb_vid_streaming_control_D [ 4 ] , {\n \"Generate Key Frame\" , \"usbvideo.streaming.control.D4\" , FT_BOOLEAN , 6 , TFS ( & tfs_yes_no ) , ( 1 << 4 ) , \"Probe and Commit support\" , HFILL }\n }\n , {\n & hf_usb_vid_streaming_control_D [ 5 ] , {\n \"Update Frame Segment\" , \"usbvideo.streaming.control.D5\" , FT_BOOLEAN , 6 , TFS ( & tfs_yes_no ) , ( 1 << 5 ) , \"Probe and Commit support\" , HFILL }\n }\n , {\n & hf_usb_vid_streaming_terminal_link , {\n \"bTerminalLink\" , \"usbvideo.streaming.terminalLink\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , \"Output terminal ID\" , HFILL }\n }\n , {\n & hf_usb_vid_streaming_still_capture_method , {\n \"bStillCaptureMethod\" , \"usbvideo.streaming.stillCaptureMethod\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & vs_still_capture_methods_ext , 0 , \"Method of Still Image Capture\" , HFILL }\n }\n , {\n & hf_usb_vid_streaming_trigger_support , {\n \"HW Triggering\" , \"usbvideo.streaming.triggerSupport\" , FT_BOOLEAN , BASE_DEC , TFS ( & tfs_supported_not_supported ) , 0 , \"Is HW triggering supported\" , HFILL }\n }\n , {\n & hf_usb_vid_streaming_trigger_usage , {\n \"bTriggerUsage\" , \"usbvideo.streaming.triggerUsage\" , FT_UINT8 , BASE_DEC , VALS ( vs_trigger_usage ) , 0 , \"How host SW should respond to trigger\" , HFILL }\n }\n , {\n & hf_usb_vid_interrupt_bStatusType , {\n \"Status Type\" , \"usbvideo.interrupt.statusType\" , FT_UINT8 , BASE_HEX , VALS ( interrupt_status_types ) , 0xF , NULL , HFILL }\n }\n , {\n & hf_usb_vid_interrupt_bAttribute , {\n \"Change Type\" , \"usbvideo.interrupt.attribute\" , FT_UINT8 , BASE_HEX | BASE_EXT_STRING , & control_change_types_ext , 0 , \"Type of control change\" , HFILL }\n }\n , {\n & hf_usb_vid_interrupt_bOriginator , {\n \"Originator\" , \"usbvideo.interrupt.originator\" , FT_UINT8 , BASE_DEC , NULL , 0 , \"ID of the entity that reports this interrupt\" , HFILL }\n }\n , {\n & hf_usb_vid_control_interrupt_bEvent , {\n \"Event\" , \"usbvideo.interrupt.controlEvent\" , FT_UINT8 , BASE_HEX , VALS ( control_interrupt_events ) , 0 , \"Type of event\" , HFILL }\n }\n , {\n & hf_usb_vid_epdesc_subtype , {\n \"Subtype\" , \"usbvideo.ep.descriptorSubType\" , FT_UINT8 , BASE_DEC , VALS ( vc_ep_descriptor_subtypes ) , 0 , \"Descriptor Subtype\" , HFILL }\n }\n , {\n & hf_usb_vid_epdesc_max_transfer_sz , {\n \"wMaxTransferSize\" , \"usbvideo.ep.maxInterruptSize\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Max interrupt structure size\" , HFILL }\n }\n , {\n & hf_usb_vid_ifdesc_wTotalLength , {\n \"wTotalLength\" , \"usbvideo.totalLength\" , FT_UINT16 , BASE_DEC , NULL , 0 , \"Video interface descriptor size\" , HFILL }\n }\n , {\n & hf_usb_vid_bControlSize , {\n \"bControlSize\" , \"usbvideo.bmcontrolSize\" , FT_UINT8 , BASE_DEC , NULL , 0 , \"Size of bmControls field\" , HFILL }\n }\n , {\n & hf_usb_vid_bmControl , {\n \"bmControl\" , \"usbvideo.availableControls\" , FT_UINT32 , BASE_HEX , NULL , 0 , \"Available controls\" , HFILL }\n }\n , {\n & hf_usb_vid_bmControl_bytes , {\n \"bmControl\" , \"usbvideo.availableControls.bytes\" , FT_BYTES , BASE_NONE , NULL , 0 , \"Available controls\" , HFILL }\n }\n , {\n & hf_usb_vid_control_ifdesc_src_id , {\n \"bSourceID\" , \"usbvideo.sourceID\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , \"Entity to which this terminal/unit is connected\" , HFILL }\n }\n , {\n & hf_usb_vid_control_ifdesc_subtype , {\n \"Subtype\" , \"usbvideo.control.descriptorSubType\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & vc_if_descriptor_subtypes_ext , 0 , \"Descriptor Subtype\" , HFILL }\n }\n , {\n & hf_usb_vid_streaming_ifdesc_subtype , {\n \"Subtype\" , \"usbvideo.streaming.descriptorSubType\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & vs_if_descriptor_subtypes_ext , 0 , \"Descriptor Subtype\" , HFILL }\n }\n , {\n & hf_usb_vid_descriptor_data , {\n \"Descriptor data\" , \"usbvideo.descriptor_data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_usb_vid_control_data , {\n \"Control data\" , \"usbvideo.control_data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_usb_vid_control_value , {\n \"Control value\" , \"usbvideo.control_value\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_usb_vid_value_data , {\n \"Value data\" , \"usbvideo.value_data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , }\n ;\n static gint * usb_vid_subtrees [ ] = {\n & ett_usb_vid , & ett_descriptor_video_endpoint , & ett_descriptor_video_control , & ett_descriptor_video_streaming , & ett_camera_controls , & ett_processing_controls , & ett_streaming_controls , & ett_streaming_info , & ett_interlace_flags , & ett_frame_capability_flags , & ett_mjpeg_flags , & ett_video_probe , & ett_probe_hint , & ett_probe_framing , & ett_video_standards , & ett_control_capabilities }\n ;\n static ei_register_info ei [ ] = {\n {\n & ei_usb_vid_subtype_unknown , {\n \"usbvideo.subtype.unknown\" , PI_UNDECODED , PI_WARN , \"Unknown VC subtype\" , EXPFILL }\n }\n , {\n & ei_usb_vid_bitmask_len , {\n \"usbvideo.bitmask_len_error\" , PI_UNDECODED , PI_WARN , \"Only least-significant bytes decoded\" , EXPFILL }\n }\n , }\n ;\n expert_module_t * expert_usb_vid ;\n proto_usb_vid = proto_register_protocol ( \"USB Video\" , \"USBVIDEO\" , \"usbvideo\" ) ;\n proto_register_field_array ( proto_usb_vid , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( usb_vid_subtrees , array_length ( usb_vid_subtrees ) ) ;\n expert_usb_vid = expert_register_protocol ( proto_usb_vid ) ;\n expert_register_field_array ( expert_usb_vid , ei , array_length ( ei ) ) ;\n }"}
{"idx": 14457, "target": 0, "func": "static void DisconnectDatabase ( ParallelSlot * slot ) {\n char errbuf [ 256 ] ;\n if ( ! slot -> connection ) return ;\n if ( PQtransactionStatus ( slot -> connection ) == PQTRANS_ACTIVE ) {\n PGcancel * cancel ;\n if ( ( cancel = PQgetCancel ( slot -> connection ) ) ) {\n PQcancel ( cancel , errbuf , sizeof ( errbuf ) ) ;\n PQfreeCancel ( cancel ) ;\n }\n }\n PQfinish ( slot -> connection ) ;\n slot -> connection = NULL ;\n }"}
{"idx": 14458, "target": 0, "func": "static void ctl_puthex ( const char * tag , u_long uval ) {\n register char * cp ;\n register const char * cq ;\n char buffer [ 200 ] ;\n cp = buffer ;\n cq = tag ;\n while ( * cq != '\\0' ) * cp ++ = * cq ++ ;\n * cp ++ = '=' ;\n INSIST ( ( cp - buffer ) < ( int ) sizeof ( buffer ) ) ;\n snprintf ( cp , sizeof ( buffer ) - ( cp - buffer ) , \"0x%lx\" , uval ) ;\n cp += strlen ( cp ) ;\n ctl_putdata ( buffer , ( unsigned ) ( cp - buffer ) , 0 ) ;\n }"}
{"idx": 14459, "target": 0, "func": "static int dissect_h245_T_controlFieldOctets ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 323 \"../../asn1/h245/h245.cnf\" guint32 value ;\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 2U , & value , FALSE ) ;\n if ( h223_lc_params_temp && h223_lc_params_temp -> al_params ) ( ( h223_al3_params * ) h223_lc_params_temp -> al_params ) -> control_field_octets = value & 3 ;\n return offset ;\n }"}
{"idx": 14460, "target": 0, "func": "static int dissect_h225_T_h245Ip6Address ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_T_h245Ip6Address , T_h245Ip6Address_sequence ) ;\n return offset ;\n }"}
{"idx": 14461, "target": 1, "func": "unsigned long # define BN_LONG long # define BN_BITS 128 # define BN_BYTES 8 # define BN_BITS2 64 # define BN_BITS4 32 # define BN_MASK ( 0xffffffffffffffffffffffffffffffffLL ) # define BN_MASK2 ( 0xffffffffffffffffL ) # define BN_MASK2l ( 0xffffffffL ) # define BN_MASK2h ( 0xffffffff00000000L ) # define BN_MASK2h1 ( 0xffffffff80000000L ) # define BN_TBIT ( 0x8000000000000000L ) # define BN_DEC_CONV ( 10000000000000000000UL ) # define BN_DEC_FMT1 \"%lu\" # define BN_DEC_FMT2 \"%019lu\" # define BN_DEC_NUM 19 # define BN_HEX_FMT1 \"%lX\" # define BN_HEX_FMT2 \"%016lX\" # endif # ifdef SIXTY_FOUR_BIT # undef BN_LLONG # undef BN_ULLONG # define BN_ULONG unsigned long long # define BN_LONG long long # define BN_BITS 128 # define BN_BYTES 8 # define BN_BITS2 64 # define BN_BITS4 32 # define BN_MASK2 ( 0xffffffffffffffffLL ) # define BN_MASK2l ( 0xffffffffL ) # define BN_MASK2h ( 0xffffffff00000000LL ) # define BN_MASK2h1 ( 0xffffffff80000000LL ) # define BN_TBIT ( 0x8000000000000000LL ) # define BN_DEC_CONV ( 10000000000000000000ULL ) # define BN_DEC_FMT1 \"%llu\" # define BN_DEC_FMT2 \"%019llu\" # define BN_DEC_NUM 19 # define BN_HEX_FMT1 \"%llX\" # define BN_HEX_FMT2 \"%016llX\" # endif # ifdef THIRTY_TWO_BIT # ifdef BN_LLONG # if defined ( _WIN32 ) && ! defined ( __GNUC__ ) # define BN_ULLONG unsigned __int64 # define BN_MASK ( 0xffffffffffffffffI64 ) # else # define BN_ULLONG unsigned long long # define BN_MASK ( 0xffffffffffffffffLL ) # endif # endif # define BN_ULONG unsigned int # define BN_LONG int # define BN_BITS 64 # define BN_BYTES 4 # define BN_BITS2 32 # define BN_BITS4 16 # define BN_MASK2 ( 0xffffffffL ) # define BN_MASK2l ( 0xffff ) # define BN_MASK2h1 ( 0xffff8000L ) # define BN_MASK2h ( 0xffff0000L ) # define BN_TBIT ( 0x80000000L ) # define BN_DEC_CONV ( 1000000000L ) # define BN_DEC_FMT1 \"%u\" # define BN_DEC_FMT2 \"%09u\" # define BN_DEC_NUM 9 # define BN_HEX_FMT1 \"%X\" # define BN_HEX_FMT2 \"%08X\" # endif # define BN_DEFAULT_BITS 1280 # define BN_FLG_MALLOCED 0x01 # define BN_FLG_STATIC_DATA 0x02 # define BN_FLG_CONSTTIME 0x04 # ifndef OPENSSL_NO_DEPRECATED # define BN_FLG_EXP_CONSTTIME BN_FLG_CONSTTIME # endif # ifndef OPENSSL_NO_DEPRECATED # define BN_FLG_FREE 0x8000 # endif # define BN_set_flags ( b , n ) ( ( b ) -> flags |= ( n ) ) # define BN_get_flags ( b , n ) ( ( b ) -> flags & ( n ) ) # define BN_with_flags ( dest , b , n ) ( ( dest ) -> d = ( b ) -> d , \\ ( dest ) -> top = ( b ) -> top , \\ ( dest ) -> dmax = ( b ) -> dmax , \\ ( dest ) -> neg = ( b ) -> neg , \\ ( dest ) -> flags = ( ( ( dest ) -> flags & BN_FLG_MALLOCED ) \\ | ( ( b ) -> flags & ~ BN_FLG_MALLOCED ) \\ | BN_FLG_STATIC_DATA \\ | ( n ) ) ) # if 0 typedef struct bignum_st BIGNUM ;\n typedef struct bignum_ctx BN_CTX ;\n typedef struct bn_blinding_st BN_BLINDING ;\n typedef struct bn_mont_ctx_st BN_MONT_CTX ;\n typedef struct bn_recp_ctx_st BN_RECP_CTX ;\n typedef struct bn_gencb_st BN_GENCB ;\n # endif struct bignum_st {\n BN_ULONG * d ;\n int top ;\n int dmax ;\n int neg ;\n int flags ;\n }\n ;\n struct bn_mont_ctx_st {\n int ri ;\n BIGNUM RR ;\n BIGNUM N ;\n BIGNUM Ni ;\n BN_ULONG n0 [ 2 ] ;\n int flags ;\n }\n ;\n struct bn_recp_ctx_st {\n BIGNUM N ;\n BIGNUM Nr ;\n int num_bits ;\n int shift ;\n int flags ;\n }\n ;\n struct bn_gencb_st {\n unsigned int ver ;\n void * arg ;\n union {\n void ( * cb_1 ) ( int , int , void * ) ;\n int ( * cb_2 ) ( int , int , BN_GENCB * ) ;\n }\n cb ;\n }\n ;\n int BN_GENCB_call ( BN_GENCB * cb , int a , int b ) ;\n # define BN_GENCB_set_old ( gencb , callback , cb_arg ) {\n \\ BN_GENCB * tmp_gencb = ( gencb ) ;\n \\ tmp_gencb -> ver = 1 ;\n \\ tmp_gencb -> arg = ( cb_arg ) ;\n \\ tmp_gencb -> cb . cb_1 = ( callback ) ;\n }\n # define BN_GENCB_set ( gencb , callback , cb_arg ) {\n \\ BN_GENCB * tmp_gencb = ( gencb ) ;\n \\ tmp_gencb -> ver = 2 ;\n \\ tmp_gencb -> arg = ( cb_arg ) ;\n \\ tmp_gencb -> cb . cb_2 = ( callback ) ;\n }\n # define BN_prime_checks 0 # define BN_prime_checks_for_size ( b ) ( ( b ) >= 1300 ? 2 : \\ ( b ) >= 850 ? 3 : \\ ( b ) >= 650 ? 4 : \\ ( b ) >= 550 ? 5 : \\ ( b ) >= 450 ? 6 : \\ ( b ) >= 400 ? 7 : \\ ( b ) >= 350 ? 8 : \\ ( b ) >= 300 ? 9 : \\ ( b ) >= 250 ? 12 : \\ ( b ) >= 200 ? 15 : \\ ( b ) >= 150 ? 18 : \\ 27 ) # define BN_num_bytes ( a ) ( ( BN_num_bits ( a ) + 7 ) / 8 ) # define BN_abs_is_word ( a , w ) ( ( ( ( a ) -> top == 1 ) && ( ( a ) -> d [ 0 ] == ( BN_ULONG ) ( w ) ) ) || \\ ( ( ( w ) == 0 ) && ( ( a ) -> top == 0 ) ) ) # define BN_is_zero ( a ) ( ( a ) -> top == 0 ) # define BN_is_one ( a ) ( BN_abs_is_word ( ( a ) , 1 ) && ! ( a ) -> neg ) # define BN_is_word ( a , w ) ( BN_abs_is_word ( ( a ) , ( w ) ) && ( ! ( w ) || ! ( a ) -> neg ) ) # define BN_is_odd ( a ) ( ( ( a ) -> top > 0 ) && ( ( a ) -> d [ 0 ] & 1 ) ) # define BN_one ( a ) ( BN_set_word ( ( a ) , 1 ) ) # define BN_zero_ex ( a ) \\ do {\n \\ BIGNUM * _tmp_bn = ( a ) ;\n \\ _tmp_bn -> top = 0 ;\n \\ _tmp_bn -> neg = 0 ;\n \\ }\n while ( 0 ) # ifdef OPENSSL_NO_DEPRECATED # define BN_zero ( a ) BN_zero_ex ( a ) # else # define BN_zero ( a ) ( BN_set_word ( ( a ) , 0 ) ) # endif const BIGNUM * BN_value_one ( void ) ;\n char * BN_options ( void ) ;\n BN_CTX * BN_CTX_new ( void ) ;\n # ifndef OPENSSL_NO_DEPRECATED void BN_CTX_init ( BN_CTX * c ) ;\n # endif void BN_CTX_free ( BN_CTX * c ) ;\n void BN_CTX_start ( BN_CTX * ctx ) ;\n BIGNUM * BN_CTX_get ( BN_CTX * ctx ) ;\n void BN_CTX_end ( BN_CTX * ctx ) ;\n int BN_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_pseudo_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_pseudo_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_num_bits ( const BIGNUM * a ) ;\n int BN_num_bits_word ( BN_ULONG l ) ;\n BIGNUM * BN_new ( void ) ;\n void BN_init ( BIGNUM * ) ;\n void BN_clear_free ( BIGNUM * a ) ;\n BIGNUM * BN_copy ( BIGNUM * a , const BIGNUM * b ) ;\n void BN_swap ( BIGNUM * a , BIGNUM * b ) ;\n BIGNUM * BN_bin2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2bin ( const BIGNUM * a , unsigned char * to ) ;\n BIGNUM * BN_mpi2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2mpi ( const BIGNUM * a , unsigned char * to ) ;\n int BN_sub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_usub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_uadd ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n int BN_sqr ( BIGNUM * r , const BIGNUM * a , BN_CTX * ctx ) ;\n void BN_set_negative ( BIGNUM * b , int n ) ;\n # define BN_is_negative ( a ) ( ( a ) -> neg != 0 ) int BN_div ( BIGNUM * dv , BIGNUM * rem , const BIGNUM * m , const BIGNUM * d , BN_CTX * ctx ) ;\n # define BN_mod ( rem , m , d , ctx ) BN_div ( NULL , ( rem ) , ( m ) , ( d ) , ( ctx ) ) int BN_nnmod ( BIGNUM * r , const BIGNUM * m , const BIGNUM * d , BN_CTX * ctx ) ;\n int BN_mod_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_add_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m ) ;\n int BN_mod_sub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_sub_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m ) ;\n int BN_mod_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_sqr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift1 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift1_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m ) ;\n int BN_mod_lshift ( BIGNUM * r , const BIGNUM * a , int n , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift_quick ( BIGNUM * r , const BIGNUM * a , int n , const BIGNUM * m ) ;\n BN_ULONG BN_mod_word ( const BIGNUM * a , BN_ULONG w ) ;\n BN_ULONG BN_div_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_mul_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_add_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_sub_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_set_word ( BIGNUM * a , BN_ULONG w ) ;\n BN_ULONG BN_get_word ( const BIGNUM * a ) ;\n int BN_cmp ( const BIGNUM * a , const BIGNUM * b ) ;\n void BN_free ( BIGNUM * a ) ;\n int BN_is_bit_set ( const BIGNUM * a , int n ) ;\n int BN_lshift ( BIGNUM * r , const BIGNUM * a , int n ) ;\n int BN_lshift1 ( BIGNUM * r , const BIGNUM * a ) ;\n int BN_exp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_mod_exp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_exp_mont ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) ;\n int BN_mod_exp_mont_consttime ( BIGNUM * rr , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * in_mont ) ;\n int BN_mod_exp_mont_word ( BIGNUM * r , BN_ULONG a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) ;\n int BN_mod_exp2_mont ( BIGNUM * r , const BIGNUM * a1 , const BIGNUM * p1 , const BIGNUM * a2 , const BIGNUM * p2 , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) ;\n int BN_mod_exp_simple ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mask_bits ( BIGNUM * a , int n ) ;\n # ifndef OPENSSL_NO_FP_API int BN_print_fp ( FILE * fp , const BIGNUM * a ) ;\n # endif # ifdef HEADER_BIO_H int BN_print ( BIO * fp , const BIGNUM * a ) ;\n # else int BN_print ( void * fp , const BIGNUM * a ) ;\n # endif int BN_reciprocal ( BIGNUM * r , const BIGNUM * m , int len , BN_CTX * ctx ) ;\n int BN_rshift ( BIGNUM * r , const BIGNUM * a , int n ) ;\n int BN_rshift1 ( BIGNUM * r , const BIGNUM * a ) ;\n void BN_clear ( BIGNUM * a ) ;\n BIGNUM * BN_dup ( const BIGNUM * a ) ;\n int BN_ucmp ( const BIGNUM * a , const BIGNUM * b ) ;\n int BN_set_bit ( BIGNUM * a , int n ) ;\n int BN_clear_bit ( BIGNUM * a , int n ) ;\n char * BN_bn2hex ( const BIGNUM * a ) ;\n char * BN_bn2dec ( const BIGNUM * a ) ;\n int BN_hex2bn ( BIGNUM * * a , const char * str ) ;\n int BN_dec2bn ( BIGNUM * * a , const char * str ) ;\n int BN_asc2bn ( BIGNUM * * a , const char * str ) ;\n int BN_gcd ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n int BN_kronecker ( const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n BIGNUM * BN_mod_inverse ( BIGNUM * ret , const BIGNUM * a , const BIGNUM * n , BN_CTX * ctx ) ;\n BIGNUM * BN_mod_sqrt ( BIGNUM * ret , const BIGNUM * a , const BIGNUM * n , BN_CTX * ctx ) ;\n # ifndef OPENSSL_NO_DEPRECATED BIGNUM * BN_generate_prime ( BIGNUM * ret , int bits , int safe , const BIGNUM * add , const BIGNUM * rem , void ( * callback ) ( int , int , void * ) , void * cb_arg ) ;\n int BN_is_prime ( const BIGNUM * p , int nchecks , void ( * callback ) ( int , int , void * ) , BN_CTX * ctx , void * cb_arg ) ;\n int BN_is_prime_fasttest ( const BIGNUM * p , int nchecks , void ( * callback ) ( int , int , void * ) , BN_CTX * ctx , void * cb_arg , int do_trial_division ) ;\n # endif int BN_generate_prime_ex ( BIGNUM * ret , int bits , int safe , const BIGNUM * add , const BIGNUM * rem , BN_GENCB * cb ) ;\n int BN_is_prime_ex ( const BIGNUM * p , int nchecks , BN_CTX * ctx , BN_GENCB * cb ) ;\n int BN_is_prime_fasttest_ex ( const BIGNUM * p , int nchecks , BN_CTX * ctx , int do_trial_division , BN_GENCB * cb ) ;\n int BN_X931_generate_Xpq ( BIGNUM * Xp , BIGNUM * Xq , int nbits , BN_CTX * ctx ) ;\n int BN_X931_derive_prime_ex ( BIGNUM * p , BIGNUM * p1 , BIGNUM * p2 , const BIGNUM * Xp , const BIGNUM * Xp1 , const BIGNUM * Xp2 , const BIGNUM * e , BN_CTX * ctx , BN_GENCB * cb ) ;\n int BN_X931_generate_prime_ex ( BIGNUM * p , BIGNUM * p1 , BIGNUM * p2 , BIGNUM * Xp1 , BIGNUM * Xp2 , const BIGNUM * Xp , const BIGNUM * e , BN_CTX * ctx , BN_GENCB * cb ) ;\n BN_MONT_CTX * BN_MONT_CTX_new ( void ) ;\n void BN_MONT_CTX_init ( BN_MONT_CTX * ctx ) ;\n int BN_mod_mul_montgomery ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_MONT_CTX * mont , BN_CTX * ctx ) ;\n # define BN_to_montgomery ( r , a , mont , ctx ) BN_mod_mul_montgomery ( \\ ( r ) , ( a ) , & ( ( mont ) -> RR ) , ( mont ) , ( ctx ) ) int BN_from_montgomery ( BIGNUM * r , const BIGNUM * a , BN_MONT_CTX * mont , BN_CTX * ctx ) ;\n void BN_MONT_CTX_free ( BN_MONT_CTX * mont ) ;\n int BN_MONT_CTX_set ( BN_MONT_CTX * mont , const BIGNUM * mod , BN_CTX * ctx ) ;\n BN_MONT_CTX * BN_MONT_CTX_copy ( BN_MONT_CTX * to , BN_MONT_CTX * from ) ;\n BN_MONT_CTX * BN_MONT_CTX_set_locked ( BN_MONT_CTX * * pmont , int lock , const BIGNUM * mod , BN_CTX * ctx ) ;\n # define BN_BLINDING_NO_UPDATE 0x00000001 # define BN_BLINDING_NO_RECREATE 0x00000002 BN_BLINDING * BN_BLINDING_new ( const BIGNUM * A , const BIGNUM * Ai , BIGNUM * mod ) ;\n void BN_BLINDING_free ( BN_BLINDING * b ) ;\n int BN_BLINDING_update ( BN_BLINDING * b , BN_CTX * ctx ) ;\n int BN_BLINDING_convert ( BIGNUM * n , BN_BLINDING * b , BN_CTX * ctx ) ;\n int BN_BLINDING_invert ( BIGNUM * n , BN_BLINDING * b , BN_CTX * ctx ) ;\n int BN_BLINDING_convert_ex ( BIGNUM * n , BIGNUM * r , BN_BLINDING * b , BN_CTX * ) ;\n int BN_BLINDING_invert_ex ( BIGNUM * n , const BIGNUM * r , BN_BLINDING * b , BN_CTX * ) ;\n # ifndef OPENSSL_NO_DEPRECATED unsigned long BN_BLINDING_get_thread_id ( const BN_BLINDING * ) ;\n void BN_BLINDING_set_thread_id ( BN_BLINDING * , unsigned long ) ;\n # endif CRYPTO_THREADID * BN_BLINDING_thread_id ( BN_BLINDING * ) ;\n unsigned long BN_BLINDING_get_flags ( const BN_BLINDING * ) ;\n void BN_BLINDING_set_flags ( BN_BLINDING * , unsigned long ) ;\n BN_BLINDING * BN_BLINDING_create_param ( BN_BLINDING * b , const BIGNUM * e , BIGNUM * m , BN_CTX * ctx , int ( * bn_mod_exp ) ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) , BN_MONT_CTX * m_ctx ) ;\n # ifndef OPENSSL_NO_DEPRECATED void BN_set_params ( int mul , int high , int low , int mont ) ;\n int BN_get_params ( int which ) ;\n # endif void BN_RECP_CTX_init ( BN_RECP_CTX * recp ) ;\n BN_RECP_CTX * BN_RECP_CTX_new ( void ) ;\n void BN_RECP_CTX_free ( BN_RECP_CTX * recp ) ;\n int BN_RECP_CTX_set ( BN_RECP_CTX * recp , const BIGNUM * rdiv , BN_CTX * ctx ) ;\n int BN_mod_mul_reciprocal ( BIGNUM * r , const BIGNUM * x , const BIGNUM * y , BN_RECP_CTX * recp , BN_CTX * ctx ) ;\n int BN_mod_exp_recp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_div_recp ( BIGNUM * dv , BIGNUM * rem , const BIGNUM * m , BN_RECP_CTX * recp , BN_CTX * ctx ) ;\n # ifndef OPENSSL_NO_EC2M int BN_GF2m_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n # define BN_GF2m_sub ( r , a , b ) BN_GF2m_add ( r , a , b ) int BN_GF2m_mod ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p ) ;\n int BN_GF2m_mod_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_inv ( BIGNUM * r , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_div ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_exp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqrt ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_solve_quad ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n # define BN_GF2m_cmp ( a , b ) BN_ucmp ( ( a ) , ( b ) ) int BN_GF2m_mod_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] ) ;\n int BN_GF2m_mod_mul_arr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqr_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_inv_arr ( BIGNUM * r , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_div_arr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_exp_arr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqrt_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_solve_quad_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_poly2arr ( const BIGNUM * a , int p [ ] , int max ) ;\n int BN_GF2m_arr2poly ( const int p [ ] , BIGNUM * a ) ;\n # endif int BN_nist_mod_192 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_224 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_256 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_384 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_521 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n const BIGNUM * BN_get0_nist_prime_192 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_224 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_256 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_384 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_521 ( void ) ;\n int ( * BN_nist_mod_func ( const BIGNUM * p ) ) ( BIGNUM * r , const BIGNUM * a , const BIGNUM * field , BN_CTX * ctx ) ;\n int BN_generate_dsa_nonce ( BIGNUM * out , const BIGNUM * range , const BIGNUM * priv , const unsigned char * message , size_t message_len , BN_CTX * ctx ) ;\n # define bn_expand ( a , bits ) ( ( ( ( ( ( bits + BN_BITS2 - 1 ) ) / BN_BITS2 ) ) <= ( a ) -> dmax ) ? \\ ( a ) : bn_expand2 ( ( a ) , ( bits + BN_BITS2 - 1 ) / BN_BITS2 ) ) # define bn_wexpand ( a , words ) ( ( ( words ) <= ( a ) -> dmax ) ? ( a ) : bn_expand2 ( ( a ) , ( words ) ) ) BIGNUM * bn_expand2 ( BIGNUM * a , int words ) ;\n # ifndef OPENSSL_NO_DEPRECATED BIGNUM * bn_dup_expand ( const BIGNUM * a , int words ) ;\n # endif # ifdef BN_DEBUG # include < assert . h > # ifdef BN_DEBUG_RAND # ifndef RAND_pseudo_bytes int RAND_pseudo_bytes ( unsigned char * buf , int num ) ;\n # define BN_DEBUG_TRIX # endif # define bn_pollute ( a ) \\ do {\n \\ const BIGNUM * _bnum1 = ( a ) ;\n \\ if ( _bnum1 -> top < _bnum1 -> dmax ) {\n \\ unsigned char _tmp_char ;\n \\ \\ BN_ULONG * _not_const ;\n \\ memcpy ( & _not_const , & _bnum1 -> d , sizeof ( BN_ULONG * ) ) ;\n \\ RAND_pseudo_bytes ( & _tmp_char , 1 ) ;\n \\ memset ( ( unsigned char * ) ( _not_const + _bnum1 -> top ) , _tmp_char , \\ ( _bnum1 -> dmax - _bnum1 -> top ) * sizeof ( BN_ULONG ) ) ;\n \\ }\n \\ }\n while ( 0 ) # ifdef BN_DEBUG_TRIX # undef RAND_pseudo_bytes # endif # else # define bn_pollute ( a ) # endif # define bn_check_top ( a ) \\ do {\n \\ const BIGNUM * _bnum2 = ( a ) ;\n \\ if ( _bnum2 != NULL ) {\n \\ assert ( ( _bnum2 -> top == 0 ) || \\ ( _bnum2 -> d [ _bnum2 -> top - 1 ] != 0 ) ) ;\n \\ bn_pollute ( _bnum2 ) ;\n \\ }\n \\ }\n while ( 0 ) # define bn_fix_top ( a ) bn_check_top ( a ) # else # define bn_pollute ( a ) # define bn_check_top ( a ) # define bn_fix_top ( a ) bn_correct_top ( a ) # endif # define bn_correct_top ( a ) \\ {\n \\ BN_ULONG * ftl ;\n \\ int tmp_top = ( a ) -> top ;\n \\ if ( tmp_top > 0 ) \\ {\n \\ for ( ftl = & ( ( a ) -> d [ tmp_top - 1 ] ) ;\n tmp_top > 0 ;\n tmp_top -- ) \\ if ( * ( ftl -- ) ) break ;\n \\ ( a ) -> top = tmp_top ;\n \\ }\n \\ bn_pollute ( a ) ;\n \\ }\n BN_ULONG bn_mul_add_words ( BN_ULONG * rp , const BN_ULONG * ap , int num , BN_ULONG w ) ;\n BN_ULONG bn_mul_words ( BN_ULONG * rp , const BN_ULONG * ap , int num , BN_ULONG w ) ;\n void bn_sqr_words ( BN_ULONG * rp , const BN_ULONG * ap , int num ) ;\n BN_ULONG bn_div_words ( BN_ULONG h , BN_ULONG l , BN_ULONG d ) ;\n BN_ULONG bn_add_words ( BN_ULONG * rp , const BN_ULONG * ap , const BN_ULONG * bp , int num ) ;\n BN_ULONG bn_sub_words ( BN_ULONG * rp , const BN_ULONG * ap , const BN_ULONG * bp , int num )"}
{"idx": 14462, "target": 0, "func": "static double get_rate_correction_factor ( const VP9_COMP * cpi ) {\n const RATE_CONTROL * const rc = & cpi -> rc ;\n if ( cpi -> common . frame_type == KEY_FRAME ) {\n return rc -> rate_correction_factors [ KF_STD ] ;\n }\n else if ( cpi -> oxcf . pass == 2 ) {\n RATE_FACTOR_LEVEL rf_lvl = cpi -> twopass . gf_group . rf_level [ cpi -> twopass . gf_group . index ] ;\n return rc -> rate_correction_factors [ rf_lvl ] ;\n }\n else {\n if ( ( cpi -> refresh_alt_ref_frame || cpi -> refresh_golden_frame ) && ! rc -> is_src_frame_alt_ref && ! ( cpi -> use_svc && cpi -> oxcf . rc_mode == VPX_CBR ) ) return rc -> rate_correction_factors [ GF_ARF_STD ] ;\n else return rc -> rate_correction_factors [ INTER_NORMAL ] ;\n }\n }"}
{"idx": 14463, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ContentSettingBubbleDialogTest , InvokeDialog_automatic_downloads ) {\n RunDialog ( ) ;\n }"}
{"idx": 14464, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n WNV1Context * const l = avctx -> priv_data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n AVFrame * const p = data ;\n unsigned char * Y , * U , * V ;\n int i , j , ret ;\n int prev_y = 0 , prev_u = 0 , prev_v = 0 ;\n uint8_t * rbuf ;\n rbuf = av_malloc ( buf_size + FF_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( ! rbuf ) {\n av_log ( avctx , AV_LOG_ERROR , \"Cannot allocate temporary buffer\\n\" ) ;\n return AVERROR ( ENOMEM ) ;\n }\n if ( ( ret = ff_get_buffer ( avctx , p , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n av_free ( rbuf ) ;\n return ret ;\n }\n p -> key_frame = 1 ;\n for ( i = 8 ;\n i < buf_size ;\n i ++ ) rbuf [ i ] = ff_reverse [ buf [ i ] ] ;\n init_get_bits ( & l -> gb , rbuf + 8 , ( buf_size - 8 ) * 8 ) ;\n if ( buf [ 2 ] >> 4 == 6 ) l -> shift = 2 ;\n else {\n l -> shift = 8 - ( buf [ 2 ] >> 4 ) ;\n if ( l -> shift > 4 ) {\n av_log_ask_for_sample ( avctx , \"Unknown WNV1 frame header value %i\\n\" , buf [ 2 ] >> 4 ) ;\n l -> shift = 4 ;\n }\n if ( l -> shift < 1 ) {\n av_log_ask_for_sample ( avctx , \"Unknown WNV1 frame header value %i\\n\" , buf [ 2 ] >> 4 ) ;\n l -> shift = 1 ;\n }\n }\n Y = p -> data [ 0 ] ;\n U = p -> data [ 1 ] ;\n V = p -> data [ 2 ] ;\n for ( j = 0 ;\n j < avctx -> height ;\n j ++ ) {\n for ( i = 0 ;\n i < avctx -> width / 2 ;\n i ++ ) {\n Y [ i * 2 ] = wnv1_get_code ( l , prev_y ) ;\n prev_u = U [ i ] = wnv1_get_code ( l , prev_u ) ;\n prev_y = Y [ ( i * 2 ) + 1 ] = wnv1_get_code ( l , Y [ i * 2 ] ) ;\n prev_v = V [ i ] = wnv1_get_code ( l , prev_v ) ;\n }\n Y += p -> linesize [ 0 ] ;\n U += p -> linesize [ 1 ] ;\n V += p -> linesize [ 2 ] ;\n }\n * got_frame = 1 ;\n av_free ( rbuf ) ;\n return buf_size ;\n }"}
{"idx": 14465, "target": 1, "func": "rfbBool rfbSendTextChatMessage ( rfbClientPtr cl , uint32_t length , char * buffer ) {\n rfbTextChatMsg tc ;\n int bytesToSend = 0 ;\n memset ( ( char * ) & tc , 0 , sizeof ( tc ) ) ;\n tc . type = rfbTextChat ;\n tc . length = Swap32IfLE ( length ) ;\n switch ( length ) {\n case rfbTextChatOpen : case rfbTextChatClose : case rfbTextChatFinished : bytesToSend = 0 ;\n break ;\n default : bytesToSend = length ;\n if ( bytesToSend > rfbTextMaxSize ) bytesToSend = rfbTextMaxSize ;\n }\n if ( cl -> ublen + sz_rfbTextChatMsg + bytesToSend > UPDATE_BUF_SIZE ) {\n if ( ! rfbSendUpdateBuf ( cl ) ) return FALSE ;\n }\n memcpy ( & cl -> updateBuf [ cl -> ublen ] , ( char * ) & tc , sz_rfbTextChatMsg ) ;\n cl -> ublen += sz_rfbTextChatMsg ;\n if ( bytesToSend > 0 ) {\n memcpy ( & cl -> updateBuf [ cl -> ublen ] , buffer , bytesToSend ) ;\n cl -> ublen += bytesToSend ;\n }\n rfbStatRecordMessageSent ( cl , rfbTextChat , sz_rfbTextChatMsg + bytesToSend , sz_rfbTextChatMsg + bytesToSend ) ;\n if ( ! rfbSendUpdateBuf ( cl ) ) return FALSE ;\n return TRUE ;\n }"}
{"idx": 14466, "target": 0, "func": "static void alljoyn_typeid ( gchar * result , guint32 type ) {\n g_snprintf ( result , ITEM_LABEL_LENGTH , \"'%c' => \" , type ) ;\n }"}
{"idx": 14467, "target": 0, "func": "static int addbyter ( int output , FILE * data ) {\n struct nsprintf * infop = ( struct nsprintf * ) data ;\n unsigned char outc = ( unsigned char ) output ;\n if ( infop -> length < infop -> max ) {\n infop -> buffer [ 0 ] = outc ;\n infop -> buffer ++ ;\n infop -> length ++ ;\n return outc ;\n }\n return - 1 ;\n }"}
{"idx": 14468, "target": 0, "func": "static struct sock * udp6_lib_lookup2 ( struct net * net , const struct in6_addr * saddr , __be16 sport , const struct in6_addr * daddr , unsigned int hnum , int dif , struct udp_hslot * hslot2 , unsigned int slot2 ) {\n struct sock * sk , * result ;\n struct hlist_nulls_node * node ;\n int score , badness ;\n begin : result = NULL ;\n badness = - 1 ;\n udp_portaddr_for_each_entry_rcu ( sk , node , & hslot2 -> head ) {\n score = compute_score2 ( sk , net , saddr , sport , daddr , hnum , dif ) ;\n if ( score > badness ) {\n result = sk ;\n badness = score ;\n if ( score == SCORE2_MAX ) goto exact_match ;\n }\n }\n if ( get_nulls_value ( node ) != slot2 ) goto begin ;\n if ( result ) {\n exact_match : if ( unlikely ( ! atomic_inc_not_zero ( & result -> sk_refcnt ) ) ) result = NULL ;\n else if ( unlikely ( compute_score2 ( result , net , saddr , sport , daddr , hnum , dif ) < badness ) ) {\n sock_put ( result ) ;\n goto begin ;\n }\n }\n return result ;\n }"}
{"idx": 14469, "target": 0, "func": "static void initial_reordering_consonant_syllable ( hb_buffer_t * buffer , unsigned int start , unsigned int end ) {\n hb_glyph_info_t * info = buffer -> info ;\n unsigned int base = end ;\n bool has_reph = false ;\n {\n unsigned int limit = start ;\n if ( start + 3 <= end && info [ start ] . myanmar_category ( ) == OT_Ra && info [ start + 1 ] . myanmar_category ( ) == OT_As && info [ start + 2 ] . myanmar_category ( ) == OT_H ) {\n limit += 3 ;\n base = start ;\n has_reph = true ;\n }\n {\n if ( ! has_reph ) base = limit ;\n for ( unsigned int i = limit ;\n i < end ;\n i ++ ) if ( is_consonant ( info [ i ] ) ) {\n base = i ;\n break ;\n }\n }\n }\n {\n unsigned int i = start ;\n for ( ;\n i < start + ( has_reph ? 3 : 0 ) ;\n i ++ ) info [ i ] . myanmar_position ( ) = POS_AFTER_MAIN ;\n for ( ;\n i < base ;\n i ++ ) info [ i ] . myanmar_position ( ) = POS_PRE_C ;\n if ( i < end ) {\n info [ i ] . myanmar_position ( ) = POS_BASE_C ;\n i ++ ;\n }\n indic_position_t pos = POS_AFTER_MAIN ;\n for ( ;\n i < end ;\n i ++ ) {\n if ( info [ i ] . myanmar_category ( ) == OT_MR ) {\n info [ i ] . myanmar_position ( ) = POS_PRE_C ;\n continue ;\n }\n if ( info [ i ] . myanmar_position ( ) < POS_BASE_C ) {\n continue ;\n }\n if ( pos == POS_AFTER_MAIN && info [ i ] . myanmar_category ( ) == OT_VBlw ) {\n pos = POS_BELOW_C ;\n info [ i ] . myanmar_position ( ) = pos ;\n continue ;\n }\n if ( pos == POS_BELOW_C && info [ i ] . myanmar_category ( ) == OT_A ) {\n info [ i ] . myanmar_position ( ) = POS_BEFORE_SUB ;\n continue ;\n }\n if ( pos == POS_BELOW_C && info [ i ] . myanmar_category ( ) == OT_VBlw ) {\n info [ i ] . myanmar_position ( ) = pos ;\n continue ;\n }\n if ( pos == POS_BELOW_C && info [ i ] . myanmar_category ( ) != OT_A ) {\n pos = POS_AFTER_SUB ;\n info [ i ] . myanmar_position ( ) = pos ;\n continue ;\n }\n info [ i ] . myanmar_position ( ) = pos ;\n }\n }\n buffer -> merge_clusters ( start , end ) ;\n hb_bubble_sort ( info + start , end - start , compare_myanmar_order ) ;\n }"}
{"idx": 14470, "target": 0, "func": "static gpgme_error_t uiserver_sign ( void * engine , gpgme_data_t in , gpgme_data_t out , gpgme_sig_mode_t mode , int use_armor , int use_textmode , int include_certs , gpgme_ctx_t ctx ) {\n engine_uiserver_t uiserver = engine ;\n gpgme_error_t err = 0 ;\n const char * protocol ;\n char * cmd ;\n gpgme_key_t key ;\n if ( ! uiserver || ! in || ! out ) return gpg_error ( GPG_ERR_INV_VALUE ) ;\n if ( uiserver -> protocol == GPGME_PROTOCOL_DEFAULT ) protocol = \"\" ;\n else if ( uiserver -> protocol == GPGME_PROTOCOL_OpenPGP ) protocol = \" --protocol=OpenPGP\" ;\n else if ( uiserver -> protocol == GPGME_PROTOCOL_CMS ) protocol = \" --protocol=CMS\" ;\n else return gpgme_error ( GPG_ERR_UNSUPPORTED_PROTOCOL ) ;\n if ( asprintf ( & cmd , \"SIGN%s%s\" , protocol , ( mode == GPGME_SIG_MODE_DETACH ) ? \" --detached\" : \"\" ) < 0 ) return gpg_error_from_syserror ( ) ;\n key = gpgme_signers_enum ( ctx , 0 ) ;\n if ( key ) {\n const char * s = NULL ;\n if ( key && key -> uids ) s = key -> uids -> email ;\n if ( s && strlen ( s ) < 80 ) {\n char buf [ 100 ] ;\n strcpy ( stpcpy ( buf , \"SENDER --info \" ) , s ) ;\n err = uiserver_assuan_simple_command ( uiserver -> assuan_ctx , buf , uiserver -> status . fnc , uiserver -> status . fnc_value ) ;\n }\n else err = gpg_error ( GPG_ERR_INV_VALUE ) ;\n gpgme_key_unref ( key ) ;\n if ( err ) {\n free ( cmd ) ;\n return err ;\n }\n }\n uiserver -> input_cb . data = in ;\n err = uiserver_set_fd ( uiserver , INPUT_FD , map_data_enc ( uiserver -> input_cb . data ) ) ;\n if ( err ) {\n free ( cmd ) ;\n return err ;\n }\n uiserver -> output_cb . data = out ;\n err = uiserver_set_fd ( uiserver , OUTPUT_FD , use_armor ? \"--armor\" : map_data_enc ( uiserver -> output_cb . data ) ) ;\n if ( err ) {\n free ( cmd ) ;\n return err ;\n }\n uiserver -> inline_data = NULL ;\n err = start ( uiserver , cmd ) ;\n free ( cmd ) ;\n return err ;\n }"}
{"idx": 14471, "target": 0, "func": "TSReturnCode TSHttpTxnSecondUrlTryLock ( TSHttpTxn txnp ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n HttpTransact : : State * s = & ( sm -> t_state ) ;\n if ( ! s -> cache_info . original_url . valid ( ) ) {\n return TS_ERROR ;\n }\n sm -> add_cache_sm ( ) ;\n s -> api_lock_url = HttpTransact : : LOCK_URL_SECOND ;\n return TS_SUCCESS ;\n }"}
{"idx": 14472, "target": 0, "func": "static void pxa2xx_rtc_swupdate ( PXA2xxRTCState * s ) {\n int64_t rt = qemu_get_clock_ms ( rtc_clock ) ;\n if ( s -> rtsr & ( 1 << 12 ) ) s -> last_swcr += ( rt - s -> last_sw ) / 10 ;\n s -> last_sw = rt ;\n }"}
{"idx": 14473, "target": 0, "func": "METHOD ( x509_t , create_ocsp_uri_enumerator , enumerator_t * , private_x509_cert_t * this ) {\n return this -> ocsp_uris -> create_enumerator ( this -> ocsp_uris ) ;\n }"}
{"idx": 14474, "target": 0, "func": "static void proto_tree_set_ether ( field_info * fi , const guint8 * value ) {\n fvalue_set_bytes ( & fi -> value , value ) ;\n }"}
{"idx": 14475, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( BookmarkBubbleSignInDelegateTest , OnSignInLinkClicked ) {\n ReplaceBlank ( browser ( ) ) ;\n int starting_tab_count = browser ( ) -> tab_strip_model ( ) -> count ( ) ;\n scoped_ptr < BookmarkBubbleDelegate > delegate ;\n delegate . reset ( new BookmarkBubbleSignInDelegate ( browser ( ) ) ) ;\n delegate -> OnSignInLinkClicked ( ) ;\n EXPECT_EQ ( starting_tab_count + 1 , browser ( ) -> tab_strip_model ( ) -> count ( ) ) ;\n }"}
{"idx": 14476, "target": 0, "func": "static int yop_copy_previous_block ( YopDecContext * s , int linesize , int copy_tag ) {\n uint8_t * bufptr ;\n bufptr = s -> dstptr + motion_vector [ copy_tag ] [ 0 ] + linesize * motion_vector [ copy_tag ] [ 1 ] ;\n if ( bufptr < s -> dstbuf ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"YOP: cannot decode, file probably corrupt\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n s -> dstptr [ 0 ] = bufptr [ 0 ] ;\n s -> dstptr [ 1 ] = bufptr [ 1 ] ;\n s -> dstptr [ linesize ] = bufptr [ linesize ] ;\n s -> dstptr [ linesize + 1 ] = bufptr [ linesize + 1 ] ;\n return 0 ;\n }"}
{"idx": 14477, "target": 0, "func": "static int checkHttpTxnClientProtocolStackContains ( SocketTest * test , void * data ) {\n TSHttpTxn txnp = ( TSHttpTxn ) data ;\n const char * ret_tag = TSHttpTxnClientProtocolStackContains ( txnp , \"tcp\" ) ;\n test -> test_client_protocol_stack_contains = true ;\n if ( ret_tag ) {\n const char * normalized_tag = TSNormalizedProtocolTag ( \"tcp\" ) ;\n if ( normalized_tag != ret_tag ) {\n SDK_RPRINT ( test -> regtest , \"TSHttpTxnClientProtocolStackContains\" , \"TestCase1\" , TC_FAIL , \"contains tcp, but normalized tag is wrong\" ) ;\n }\n else {\n SDK_RPRINT ( test -> regtest , \"TSHttpTxnClientProtocolStackContains\" , \"TestCase1\" , TC_PASS , \"ok tcp\" ) ;\n }\n }\n else {\n SDK_RPRINT ( test -> regtest , \"TSHttpTxnClientProtocolStackContains\" , \"TestCase1\" , TC_FAIL , \"missing tcp\" ) ;\n test -> test_client_protocol_stack_contains = false ;\n }\n ret_tag = TSHttpTxnClientProtocolStackContains ( txnp , \"udp\" ) ;\n if ( ! ret_tag ) {\n SDK_RPRINT ( test -> regtest , \"TSHttpTxnClientProtocolStackContains\" , \"TestCase2\" , TC_PASS , \"ok no udp\" ) ;\n }\n else {\n SDK_RPRINT ( test -> regtest , \"TSHttpTxnClientProtocolStackContains\" , \"TestCase2\" , TC_FAIL , \"faulty udp report\" ) ;\n test -> test_client_protocol_stack_contains = false ;\n }\n return TS_EVENT_CONTINUE ;\n }"}
{"idx": 14478, "target": 0, "func": "static void test_bug14169 ( ) {\n MYSQL_STMT * stmt ;\n const char * stmt_text ;\n MYSQL_RES * res ;\n MYSQL_FIELD * field ;\n int rc ;\n myheader ( \"test_bug14169\" ) ;\n rc = mysql_query ( mysql , \"drop table if exists t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"set session group_concat_max_len=1024\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t1 (f1 int unsigned, f2 varchar(255))\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t1 values (1,repeat('a',255)),\" \"(2,repeat('b',255))\" ) ;\n myquery ( rc ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n stmt_text = \"select f2,group_concat(f1) from t1 group by f2\" ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n res = mysql_stmt_result_metadata ( stmt ) ;\n field = mysql_fetch_fields ( res ) ;\n if ( ! opt_silent ) printf ( \"GROUP_CONCAT() result type %i\" , field [ 1 ] . type ) ;\n DIE_UNLESS ( field [ 1 ] . type == MYSQL_TYPE_BLOB ) ;\n mysql_free_result ( res ) ;\n mysql_stmt_free_result ( stmt ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"drop table t1\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 14479, "target": 0, "func": "xmlChar * xsltEvalAVT ( xsltTransformContextPtr ctxt , void * avt , xmlNodePtr node ) {\n xmlChar * ret = NULL , * tmp ;\n xmlXPathCompExprPtr comp ;\n xsltAttrVTPtr cur = ( xsltAttrVTPtr ) avt ;\n int i ;\n int str ;\n if ( ( ctxt == NULL ) || ( avt == NULL ) || ( node == NULL ) ) return ( NULL ) ;\n str = cur -> strstart ;\n for ( i = 0 ;\n i < cur -> nb_seg ;\n i ++ ) {\n if ( str ) {\n ret = xmlStrcat ( ret , ( const xmlChar * ) cur -> segments [ i ] ) ;\n }\n else {\n comp = ( xmlXPathCompExprPtr ) cur -> segments [ i ] ;\n tmp = xsltEvalXPathStringNs ( ctxt , comp , cur -> nsNr , cur -> nsList ) ;\n if ( tmp != NULL ) {\n if ( ret != NULL ) {\n ret = xmlStrcat ( ret , tmp ) ;\n xmlFree ( tmp ) ;\n }\n else {\n ret = tmp ;\n }\n }\n }\n str = ! str ;\n }\n return ( ret ) ;\n }"}
{"idx": 14480, "target": 0, "func": "void TSMatcherLineDestroy ( TSMatcherLine ml ) {\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) ml ) == TS_SUCCESS ) ;\n ats_free ( ml ) ;\n }"}
{"idx": 14481, "target": 0, "func": "static void cmd_server_connect ( const char * data ) {\n GHashTable * optlist ;\n char * addr ;\n void * free_arg ;\n if ( ! cmd_get_params ( data , & free_arg , 1 | PARAM_FLAG_OPTIONS , \"connect\" , & optlist , & addr ) ) return ;\n if ( * addr == '\\0' || g_strcmp0 ( addr , \"+\" ) == 0 ) cmd_param_error ( CMDERR_NOT_ENOUGH_PARAMS ) ;\n if ( * addr == '+' ) window_create ( NULL , FALSE ) ;\n cmd_params_free ( free_arg ) ;\n }"}
{"idx": 14482, "target": 0, "func": "static void parse_command_line ( int argc , const char * * argv_ , AppInput * app_input , SvcContext * svc_ctx , vpx_codec_enc_cfg_t * enc_cfg ) {\n struct arg arg = {\n 0 }\n ;\n char * * argv = NULL ;\n char * * argi = NULL ;\n char * * argj = NULL ;\n vpx_codec_err_t res ;\n int passes = 0 ;\n int pass = 0 ;\n const char * fpf_file_name = NULL ;\n unsigned int min_bitrate = 0 ;\n unsigned int max_bitrate = 0 ;\n char string_options [ 1024 ] = {\n 0 }\n ;\n svc_ctx -> log_level = SVC_LOG_DEBUG ;\n svc_ctx -> spatial_layers = default_spatial_layers ;\n svc_ctx -> temporal_layers = default_temporal_layers ;\n res = vpx_codec_enc_config_default ( vpx_codec_vp9_cx ( ) , enc_cfg , 0 ) ;\n if ( res ) {\n die ( \"Failed to get config: %s\\n\" , vpx_codec_err_to_string ( res ) ) ;\n }\n enc_cfg -> g_w = default_width ;\n enc_cfg -> g_h = default_height ;\n enc_cfg -> g_timebase . num = default_timebase_num ;\n enc_cfg -> g_timebase . den = default_timebase_den ;\n enc_cfg -> rc_target_bitrate = default_bitrate ;\n enc_cfg -> kf_min_dist = default_kf_dist ;\n enc_cfg -> kf_max_dist = default_kf_dist ;\n enc_cfg -> rc_end_usage = VPX_CQ ;\n app_input -> frames_to_code = default_frames_to_code ;\n app_input -> frames_to_skip = default_frames_to_skip ;\n argv = argv_dup ( argc - 1 , argv_ + 1 ) ;\n for ( argi = argj = argv ;\n ( * argj = * argi ) ;\n argi += arg . argv_step ) {\n arg . argv_step = 1 ;\n if ( arg_match ( & arg , & frames_arg , argi ) ) {\n app_input -> frames_to_code = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & width_arg , argi ) ) {\n enc_cfg -> g_w = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & height_arg , argi ) ) {\n enc_cfg -> g_h = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & timebase_arg , argi ) ) {\n enc_cfg -> g_timebase = arg_parse_rational ( & arg ) ;\n }\n else if ( arg_match ( & arg , & bitrate_arg , argi ) ) {\n enc_cfg -> rc_target_bitrate = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & skip_frames_arg , argi ) ) {\n app_input -> frames_to_skip = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & spatial_layers_arg , argi ) ) {\n svc_ctx -> spatial_layers = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & temporal_layers_arg , argi ) ) {\n svc_ctx -> temporal_layers = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & kf_dist_arg , argi ) ) {\n enc_cfg -> kf_min_dist = arg_parse_uint ( & arg ) ;\n enc_cfg -> kf_max_dist = enc_cfg -> kf_min_dist ;\n }\n else if ( arg_match ( & arg , & scale_factors_arg , argi ) ) {\n snprintf ( string_options , 1024 , \"%s scale-factors=%s\" , string_options , arg . val ) ;\n }\n else if ( arg_match ( & arg , & passes_arg , argi ) ) {\n passes = arg_parse_uint ( & arg ) ;\n if ( passes < 1 || passes > 2 ) {\n die ( \"Error: Invalid number of passes (%d)\\n\" , passes ) ;\n }\n }\n else if ( arg_match ( & arg , & pass_arg , argi ) ) {\n pass = arg_parse_uint ( & arg ) ;\n if ( pass < 1 || pass > 2 ) {\n die ( \"Error: Invalid pass selected (%d)\\n\" , pass ) ;\n }\n }\n else if ( arg_match ( & arg , & fpf_name_arg , argi ) ) {\n fpf_file_name = arg . val ;\n }\n else if ( arg_match ( & arg , & min_q_arg , argi ) ) {\n snprintf ( string_options , 1024 , \"%s min-quantizers=%s\" , string_options , arg . val ) ;\n }\n else if ( arg_match ( & arg , & max_q_arg , argi ) ) {\n snprintf ( string_options , 1024 , \"%s max-quantizers=%s\" , string_options , arg . val ) ;\n }\n else if ( arg_match ( & arg , & min_bitrate_arg , argi ) ) {\n min_bitrate = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & max_bitrate_arg , argi ) ) {\n max_bitrate = arg_parse_uint ( & arg ) ;\n }\n else {\n ++ argj ;\n }\n }\n if ( strlen ( string_options ) > 0 ) vpx_svc_set_options ( svc_ctx , string_options + 1 ) ;\n if ( passes == 0 || passes == 1 ) {\n if ( pass ) {\n fprintf ( stderr , \"pass is ignored since there's only one pass\\n\" ) ;\n }\n enc_cfg -> g_pass = VPX_RC_ONE_PASS ;\n }\n else {\n if ( pass == 0 ) {\n die ( \"pass must be specified when passes is 2\\n\" ) ;\n }\n if ( fpf_file_name == NULL ) {\n die ( \"fpf must be specified when passes is 2\\n\" ) ;\n }\n if ( pass == 1 ) {\n enc_cfg -> g_pass = VPX_RC_FIRST_PASS ;\n if ( ! stats_open_file ( & app_input -> rc_stats , fpf_file_name , 0 ) ) {\n fatal ( \"Failed to open statistics store\" ) ;\n }\n }\n else {\n enc_cfg -> g_pass = VPX_RC_LAST_PASS ;\n if ( ! stats_open_file ( & app_input -> rc_stats , fpf_file_name , 1 ) ) {\n fatal ( \"Failed to open statistics store\" ) ;\n }\n enc_cfg -> rc_twopass_stats_in = stats_get ( & app_input -> rc_stats ) ;\n }\n app_input -> passes = passes ;\n app_input -> pass = pass ;\n }\n if ( enc_cfg -> rc_target_bitrate > 0 ) {\n if ( min_bitrate > 0 ) {\n enc_cfg -> rc_2pass_vbr_minsection_pct = min_bitrate * 100 / enc_cfg -> rc_target_bitrate ;\n }\n if ( max_bitrate > 0 ) {\n enc_cfg -> rc_2pass_vbr_maxsection_pct = max_bitrate * 100 / enc_cfg -> rc_target_bitrate ;\n }\n }\n for ( argi = argv ;\n * argi ;\n ++ argi ) if ( argi [ 0 ] [ 0 ] == '-' && strlen ( argi [ 0 ] ) > 1 ) die ( \"Error: Unrecognized option %s\\n\" , * argi ) ;\n if ( argv [ 0 ] == NULL || argv [ 1 ] == 0 ) {\n usage_exit ( ) ;\n }\n app_input -> input_filename = argv [ 0 ] ;\n app_input -> output_filename = argv [ 1 ] ;\n free ( argv ) ;\n if ( enc_cfg -> g_w < 16 || enc_cfg -> g_w % 2 || enc_cfg -> g_h < 16 || enc_cfg -> g_h % 2 ) die ( \"Invalid resolution: %d x %d\\n\" , enc_cfg -> g_w , enc_cfg -> g_h ) ;\n printf ( \"Codec %s\\nframes: %d, skip: %d\\n\" \"layers: %d\\n\" \"width %d, height: %d,\\n\" \"num: %d, den: %d, bitrate: %d,\\n\" \"gop size: %d\\n\" , vpx_codec_iface_name ( vpx_codec_vp9_cx ( ) ) , app_input -> frames_to_code , app_input -> frames_to_skip , svc_ctx -> spatial_layers , enc_cfg -> g_w , enc_cfg -> g_h , enc_cfg -> g_timebase . num , enc_cfg -> g_timebase . den , enc_cfg -> rc_target_bitrate , enc_cfg -> kf_max_dist ) ;\n }"}
{"idx": 14483, "target": 0, "func": "static void setup_segmentation ( struct segmentation * seg , struct vp9_read_bit_buffer * rb ) {\n int i , j ;\n seg -> update_map = 0 ;\n seg -> update_data = 0 ;\n seg -> enabled = vp9_rb_read_bit ( rb ) ;\n if ( ! seg -> enabled ) return ;\n seg -> update_map = vp9_rb_read_bit ( rb ) ;\n if ( seg -> update_map ) {\n for ( i = 0 ;\n i < SEG_TREE_PROBS ;\n i ++ ) seg -> tree_probs [ i ] = vp9_rb_read_bit ( rb ) ? vp9_rb_read_literal ( rb , 8 ) : MAX_PROB ;\n seg -> temporal_update = vp9_rb_read_bit ( rb ) ;\n if ( seg -> temporal_update ) {\n for ( i = 0 ;\n i < PREDICTION_PROBS ;\n i ++ ) seg -> pred_probs [ i ] = vp9_rb_read_bit ( rb ) ? vp9_rb_read_literal ( rb , 8 ) : MAX_PROB ;\n }\n else {\n for ( i = 0 ;\n i < PREDICTION_PROBS ;\n i ++ ) seg -> pred_probs [ i ] = MAX_PROB ;\n }\n }\n seg -> update_data = vp9_rb_read_bit ( rb ) ;\n if ( seg -> update_data ) {\n seg -> abs_delta = vp9_rb_read_bit ( rb ) ;\n vp9_clearall_segfeatures ( seg ) ;\n for ( i = 0 ;\n i < MAX_SEGMENTS ;\n i ++ ) {\n for ( j = 0 ;\n j < SEG_LVL_MAX ;\n j ++ ) {\n int data = 0 ;\n const int feature_enabled = vp9_rb_read_bit ( rb ) ;\n if ( feature_enabled ) {\n vp9_enable_segfeature ( seg , i , j ) ;\n data = decode_unsigned_max ( rb , vp9_seg_feature_data_max ( j ) ) ;\n if ( vp9_is_segfeature_signed ( j ) ) data = vp9_rb_read_bit ( rb ) ? - data : data ;\n }\n vp9_set_segdata ( seg , i , j , data ) ;\n }\n }\n }\n }"}
{"idx": 14484, "target": 0, "func": "static void check_data_home ( const char * path ) {\n }"}
{"idx": 14485, "target": 0, "func": "static int dissect_h225_LocationReject ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_LocationReject , LocationReject_sequence ) ;\n return offset ;\n }"}
{"idx": 14486, "target": 0, "func": "static void pdf_run_fstar ( fz_context * ctx , pdf_processor * proc ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_show_path ( ctx , pr , 0 , 1 , 0 , 1 ) ;\n }"}
{"idx": 14487, "target": 0, "func": "TEST_F ( FullscreenControllerStateUnitTest , CapturedFullscreenedTabTransferredBetweenBrowserWindows ) {\n content : : WebContentsDelegate * const wc_delegate = static_cast < content : : WebContentsDelegate * > ( browser ( ) ) ;\n ASSERT_TRUE ( wc_delegate -> EmbedsFullscreenWidget ( ) ) ;\n AddTab ( browser ( ) , GURL ( url : : kAboutBlankURL ) ) ;\n AddTab ( browser ( ) , GURL ( url : : kAboutBlankURL ) ) ;\n content : : WebContents * const tab = browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 0 ) ;\n browser ( ) -> tab_strip_model ( ) -> ActivateTabAt ( 0 , true ) ;\n const gfx : : Size kCaptureSize ( 1280 , 720 ) ;\n tab -> IncrementCapturerCount ( kCaptureSize ) ;\n ASSERT_FALSE ( browser ( ) -> window ( ) -> IsFullscreen ( ) ) ;\n ASSERT_FALSE ( wc_delegate -> IsFullscreenForTabOrPending ( tab ) ) ;\n ASSERT_FALSE ( GetFullscreenController ( ) -> IsWindowFullscreenForTabOrPending ( ) ) ;\n ASSERT_TRUE ( InvokeEvent ( TAB_FULLSCREEN_TRUE ) ) ;\n EXPECT_FALSE ( browser ( ) -> window ( ) -> IsFullscreen ( ) ) ;\n EXPECT_TRUE ( wc_delegate -> IsFullscreenForTabOrPending ( tab ) ) ;\n EXPECT_FALSE ( GetFullscreenController ( ) -> IsWindowFullscreenForTabOrPending ( ) ) ;\n const scoped_ptr < BrowserWindow > second_browser_window ( CreateBrowserWindow ( ) ) ;\n const scoped_ptr < Browser > second_browser ( CreateBrowser ( browser ( ) -> profile ( ) , browser ( ) -> type ( ) , false , browser ( ) -> host_desktop_type ( ) , second_browser_window . get ( ) ) ) ;\n AddTab ( second_browser . get ( ) , GURL ( url : : kAboutBlankURL ) ) ;\n content : : WebContentsDelegate * const second_wc_delegate = static_cast < content : : WebContentsDelegate * > ( second_browser . get ( ) ) ;\n browser ( ) -> tab_strip_model ( ) -> DetachWebContentsAt ( 0 ) ;\n second_browser -> tab_strip_model ( ) -> InsertWebContentsAt ( 0 , tab , TabStripModel : : ADD_ACTIVE ) ;\n EXPECT_FALSE ( browser ( ) -> window ( ) -> IsFullscreen ( ) ) ;\n EXPECT_FALSE ( second_browser -> window ( ) -> IsFullscreen ( ) ) ;\n EXPECT_TRUE ( wc_delegate -> IsFullscreenForTabOrPending ( tab ) ) ;\n EXPECT_TRUE ( second_wc_delegate -> IsFullscreenForTabOrPending ( tab ) ) ;\n EXPECT_FALSE ( GetFullscreenController ( ) -> IsWindowFullscreenForTabOrPending ( ) ) ;\n EXPECT_FALSE ( second_browser -> fullscreen_controller ( ) -> IsWindowFullscreenForTabOrPending ( ) ) ;\n second_browser -> tab_strip_model ( ) -> DetachWebContentsAt ( 0 ) ;\n browser ( ) -> tab_strip_model ( ) -> InsertWebContentsAt ( 0 , tab , TabStripModel : : ADD_ACTIVE ) ;\n EXPECT_FALSE ( browser ( ) -> window ( ) -> IsFullscreen ( ) ) ;\n EXPECT_FALSE ( second_browser -> window ( ) -> IsFullscreen ( ) ) ;\n EXPECT_TRUE ( wc_delegate -> IsFullscreenForTabOrPending ( tab ) ) ;\n EXPECT_TRUE ( second_wc_delegate -> IsFullscreenForTabOrPending ( tab ) ) ;\n EXPECT_FALSE ( GetFullscreenController ( ) -> IsWindowFullscreenForTabOrPending ( ) ) ;\n EXPECT_FALSE ( second_browser -> fullscreen_controller ( ) -> IsWindowFullscreenForTabOrPending ( ) ) ;\n ASSERT_TRUE ( InvokeEvent ( TAB_FULLSCREEN_FALSE ) ) ;\n EXPECT_FALSE ( browser ( ) -> window ( ) -> IsFullscreen ( ) ) ;\n EXPECT_FALSE ( wc_delegate -> IsFullscreenForTabOrPending ( tab ) ) ;\n EXPECT_FALSE ( second_wc_delegate -> IsFullscreenForTabOrPending ( tab ) ) ;\n EXPECT_FALSE ( GetFullscreenController ( ) -> IsWindowFullscreenForTabOrPending ( ) ) ;\n EXPECT_FALSE ( second_browser -> fullscreen_controller ( ) -> IsWindowFullscreenForTabOrPending ( ) ) ;\n second_browser -> tab_strip_model ( ) -> CloseAllTabs ( ) ;\n }"}
{"idx": 14488, "target": 0, "func": "static void dcc_send_resume ( GET_DCC_REC * dcc ) {\n off_t pos ;\n char * str ;\n g_return_if_fail ( dcc != NULL ) ;\n dcc -> file = dcc_get_download_path ( dcc -> arg ) ;\n dcc -> fhandle = open ( dcc -> file , O_WRONLY ) ;\n if ( dcc -> fhandle == - 1 ) {\n signal_emit ( \"dcc error file open\" , 3 , dcc -> nick , dcc -> file , GINT_TO_POINTER ( errno ) ) ;\n return ;\n }\n dcc -> get_type = DCC_GET_RESUME ;\n pos = lseek ( dcc -> fhandle , 0 , SEEK_END ) ;\n dcc -> transfd = pos < 0 ? 0 : ( uoff_t ) pos ;\n dcc -> skipped = dcc -> transfd ;\n if ( dcc -> skipped == dcc -> size ) {\n dcc -> starttime = time ( NULL ) ;\n dcc_reject ( DCC ( dcc ) , NULL ) ;\n }\n else {\n if ( ! dcc_is_passive ( dcc ) ) {\n str = g_strdup_printf ( dcc -> file_quoted ? \"DCC RESUME \\\"%s\\\" %d %\" PRIuUOFF_T : \"DCC RESUME %s %d %\" PRIuUOFF_T , dcc -> arg , dcc -> port , dcc -> transfd ) ;\n }\n else {\n str = g_strdup_printf ( dcc -> file_quoted ? \"DCC RESUME \\\"%s\\\" 0 %\" PRIuUOFF_T \" %d\" : \"DCC RESUME %s 0 %\" PRIuUOFF_T \" %d\" , dcc -> arg , dcc -> transfd , dcc -> pasv_id ) ;\n }\n dcc_ctcp_message ( dcc -> server , dcc -> nick , dcc -> chat , FALSE , str ) ;\n g_free ( str ) ;\n }\n }"}
{"idx": 14489, "target": 0, "func": "static inline void SetPixelAlpha ( const Image * restrict image , const Quantum alpha , Quantum * restrict pixel ) {\n if ( image -> channel_map [ AlphaPixelChannel ] . traits != UndefinedPixelTrait ) pixel [ image -> channel_map [ AlphaPixelChannel ] . offset ] = alpha ;\n }"}
{"idx": 14490, "target": 0, "func": "static int x_catch_alloc ( Display * dpy , XErrorEvent * err ) {\n if ( err -> error_code == BadAlloc ) x_error_handler . alloc_error = True ;\n if ( x_error_handler . alloc_error ) return 0 ;\n return x_error_handler . oldhandler ( dpy , err ) ;\n }"}
{"idx": 14491, "target": 0, "func": "static int dissect_h245_AudioMode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 509 \"../../asn1/h245/h245.cnf\" gint32 value ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_AudioMode , AudioMode_choice , & value ) ;\n codec_type = val_to_str ( value , h245_AudioMode_vals , \"<unknown>\" ) ;\n return offset ;\n }"}
{"idx": 14492, "target": 0, "func": "static const LIBSSH2_COMMON_METHOD * kex_get_method_by_name ( const char * name , size_t name_len , const LIBSSH2_COMMON_METHOD * * methodlist ) {\n while ( * methodlist ) {\n if ( ( strlen ( ( * methodlist ) -> name ) == name_len ) && ( strncmp ( ( * methodlist ) -> name , name , name_len ) == 0 ) ) {\n return * methodlist ;\n }\n methodlist ++ ;\n }\n return NULL ;\n }"}
{"idx": 14493, "target": 0, "func": "static void cdxl_decode_ham8 ( CDXLVideoContext * c , AVFrame * frame ) {\n AVCodecContext * avctx = c -> avctx ;\n uint32_t new_palette [ 64 ] , r , g , b ;\n uint8_t * ptr , * out , index , op ;\n int x , y ;\n ptr = c -> new_video ;\n out = frame -> data [ 0 ] ;\n import_palette ( c , new_palette ) ;\n import_format ( c , avctx -> width , c -> new_video ) ;\n for ( y = 0 ;\n y < avctx -> height ;\n y ++ ) {\n r = new_palette [ 0 ] & 0xFF0000 ;\n g = new_palette [ 0 ] & 0xFF00 ;\n b = new_palette [ 0 ] & 0xFF ;\n for ( x = 0 ;\n x < avctx -> width ;\n x ++ ) {\n index = * ptr ++ ;\n op = index >> 6 ;\n index &= 63 ;\n switch ( op ) {\n case 0 : r = new_palette [ index ] & 0xFF0000 ;\n g = new_palette [ index ] & 0xFF00 ;\n b = new_palette [ index ] & 0xFF ;\n break ;\n case 1 : b = ( index << 2 ) | ( b & 3 ) ;\n break ;\n case 2 : r = ( index << 18 ) | ( r & ( 3 << 16 ) ) ;\n break ;\n case 3 : g = ( index << 10 ) | ( g & ( 3 << 8 ) ) ;\n break ;\n }\n AV_WL24 ( out + x * 3 , r | g | b ) ;\n }\n out += frame -> linesize [ 0 ] ;\n }\n }"}
{"idx": 14494, "target": 0, "func": "static void repoint_table_dependencies ( ArchiveHandle * AH ) {\n TocEntry * te ;\n int i ;\n DumpId olddep ;\n for ( te = AH -> toc -> next ;\n te != AH -> toc ;\n te = te -> next ) {\n if ( te -> section != SECTION_POST_DATA ) continue ;\n for ( i = 0 ;\n i < te -> nDeps ;\n i ++ ) {\n olddep = te -> dependencies [ i ] ;\n if ( olddep <= AH -> maxDumpId && AH -> tableDataId [ olddep ] != 0 ) {\n te -> dependencies [ i ] = AH -> tableDataId [ olddep ] ;\n ahlog ( AH , 2 , \"transferring dependency %d -> %d to %d\\n\" , te -> dumpId , olddep , AH -> tableDataId [ olddep ] ) ;\n }\n }\n }\n }"}
{"idx": 14495, "target": 1, "func": "static void T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n const unsigned char * mySource = ( unsigned char * ) args -> source ;\n UChar * myTarget = args -> target ;\n int32_t * myOffsets = args -> offsets ;\n const unsigned char * sourceLimit = ( unsigned char * ) args -> sourceLimit ;\n const UChar * targetLimit = args -> targetLimit ;\n unsigned char * toUBytes = args -> converter -> toUBytes ;\n uint32_t ch , i ;\n int32_t offsetNum = 0 ;\n if ( args -> converter -> toUnicodeStatus && myTarget < targetLimit ) {\n i = args -> converter -> toULength ;\n args -> converter -> toULength = 0 ;\n ch = args -> converter -> toUnicodeStatus - 1 ;\n args -> converter -> toUnicodeStatus = 0 ;\n goto morebytes ;\n }\n while ( mySource < sourceLimit && myTarget < targetLimit ) {\n i = 0 ;\n ch = 0 ;\n morebytes : while ( i < sizeof ( uint32_t ) ) {\n if ( mySource < sourceLimit ) {\n ch = ( ch << 8 ) | ( uint8_t ) ( * mySource ) ;\n toUBytes [ i ++ ] = ( char ) * ( mySource ++ ) ;\n }\n else {\n args -> converter -> toUnicodeStatus = ch + 1 ;\n args -> converter -> toULength = ( int8_t ) i ;\n goto donefornow ;\n }\n }\n if ( ch <= MAXIMUM_UTF && ! U_IS_SURROGATE ( ch ) ) {\n if ( ch <= MAXIMUM_UCS2 ) {\n * ( myTarget ++ ) = ( UChar ) ch ;\n * ( myOffsets ++ ) = offsetNum ;\n }\n else {\n * ( myTarget ++ ) = U16_LEAD ( ch ) ;\n * myOffsets ++ = offsetNum ;\n ch = U16_TRAIL ( ch ) ;\n if ( myTarget < targetLimit ) {\n * ( myTarget ++ ) = ( UChar ) ch ;\n * ( myOffsets ++ ) = offsetNum ;\n }\n else {\n args -> converter -> UCharErrorBuffer [ 0 ] = ( UChar ) ch ;\n args -> converter -> UCharErrorBufferLength = 1 ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n }\n else {\n args -> converter -> toULength = ( int8_t ) i ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n offsetNum += i ;\n }\n donefornow : if ( mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS ( * err ) ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n args -> target = myTarget ;\n args -> source = ( const char * ) mySource ;\n args -> offsets = myOffsets ;\n }"}
{"idx": 14496, "target": 0, "func": "static int vbf_allocobj ( struct busyobj * bo , unsigned l ) {\n struct objcore * oc ;\n const struct stevedore * stv ;\n double lifetime ;\n CHECK_OBJ_NOTNULL ( bo , BUSYOBJ_MAGIC ) ;\n oc = bo -> fetch_objcore ;\n CHECK_OBJ_NOTNULL ( oc , OBJCORE_MAGIC ) ;\n lifetime = oc -> ttl + oc -> grace + oc -> keep ;\n if ( bo -> uncacheable || lifetime < cache_param -> shortlived ) stv = stv_transient ;\n else stv = bo -> storage ;\n bo -> storage = NULL ;\n bo -> storage_hint = NULL ;\n if ( stv == NULL ) return ( 0 ) ;\n if ( STV_NewObject ( bo -> wrk , bo -> fetch_objcore , stv , l ) ) return ( 1 ) ;\n if ( stv == stv_transient ) return ( 0 ) ;\n if ( oc -> ttl > cache_param -> shortlived ) oc -> ttl = cache_param -> shortlived ;\n oc -> grace = 0.0 ;\n oc -> keep = 0.0 ;\n return ( STV_NewObject ( bo -> wrk , bo -> fetch_objcore , stv_transient , l ) ) ;\n }"}
{"idx": 14497, "target": 0, "func": "mbfl_string * mbfl_buffer_converter_result ( mbfl_buffer_converter * convd , mbfl_string * result ) {\n if ( convd == NULL || result == NULL ) {\n return NULL ;\n }\n result -> no_encoding = convd -> to -> no_encoding ;\n return mbfl_memory_device_result ( & convd -> device , result ) ;\n }"}
{"idx": 14498, "target": 0, "func": "void _hb_graphite2_shaper_face_data_destroy ( hb_graphite2_shaper_face_data_t * data ) {\n hb_graphite2_tablelist_t * tlist = data -> tlist ;\n while ( tlist ) {\n hb_graphite2_tablelist_t * old = tlist ;\n hb_blob_destroy ( tlist -> blob ) ;\n tlist = tlist -> next ;\n free ( old ) ;\n }\n gr_face_destroy ( data -> grface ) ;\n free ( data ) ;\n }"}
{"idx": 14499, "target": 0, "func": "static void activation_mountable_started ( NautilusFile * file , GFile * gfile_of_file , GError * error , gpointer callback_data ) {\n ActivateParameters * parameters = callback_data ;\n LaunchLocation * location ;\n parameters -> start_mountables = g_list_remove ( parameters -> start_mountables , file ) ;\n nautilus_file_unref ( file ) ;\n if ( error == NULL ) {\n location = find_launch_location_for_file ( parameters -> locations , file ) ;\n if ( location != NULL ) {\n parameters -> locations = g_list_remove ( parameters -> locations , location ) ;\n launch_location_free ( location ) ;\n }\n }\n else {\n if ( error -> domain != G_IO_ERROR || ( error -> code != G_IO_ERROR_FAILED_HANDLED ) ) {\n location = find_launch_location_for_file ( parameters -> locations , file ) ;\n if ( location ) {\n parameters -> locations = g_list_remove ( parameters -> locations , location ) ;\n launch_location_free ( location ) ;\n }\n }\n if ( error -> domain != G_IO_ERROR || ( error -> code != G_IO_ERROR_CANCELLED && error -> code != G_IO_ERROR_FAILED_HANDLED ) ) {\n eel_show_error_dialog ( _ ( \"Unable to start location\" ) , error -> message , NULL ) ;\n }\n if ( error -> code == G_IO_ERROR_CANCELLED ) {\n activation_parameters_free ( parameters ) ;\n return ;\n }\n }\n activation_start_mountables ( parameters ) ;\n }"}
{"idx": 14500, "target": 0, "func": "TEST_F ( TemplateURLTest , ExtractSearchTermsFromURLPath ) {\n TemplateURLData data ;\n data . SetURL ( \"http://term-in-path.com/begin/{\nsearchTerms}\n/end\" ) ;\n TemplateURL url ( data ) ;\n base : : string16 result ;\n EXPECT_TRUE ( url . ExtractSearchTermsFromURL ( GURL ( \"http://term-in-path.com/begin/something/end\" ) , search_terms_data_ , & result ) ) ;\n EXPECT_EQ ( ASCIIToUTF16 ( \"something\" ) , result ) ;\n EXPECT_TRUE ( url . ExtractSearchTermsFromURL ( GURL ( \"http://term-in-path.com/begin/a%20b%20c/end\" ) , search_terms_data_ , & result ) ) ;\n EXPECT_EQ ( ASCIIToUTF16 ( \"a b c\" ) , result ) ;\n EXPECT_TRUE ( url . ExtractSearchTermsFromURL ( GURL ( \"http://term-in-path.com/begin/1+2+3/end\" ) , search_terms_data_ , & result ) ) ;\n EXPECT_EQ ( ASCIIToUTF16 ( \"1+2+3\" ) , result ) ;\n EXPECT_FALSE ( url . ExtractSearchTermsFromURL ( GURL ( \"http://term-in-path.com/about\" ) , search_terms_data_ , & result ) ) ;\n EXPECT_EQ ( base : : string16 ( ) , result ) ;\n EXPECT_FALSE ( url . ExtractSearchTermsFromURL ( GURL ( \"http://term-in-path.com/begin\" ) , search_terms_data_ , & result ) ) ;\n EXPECT_EQ ( base : : string16 ( ) , result ) ;\n EXPECT_FALSE ( url . ExtractSearchTermsFromURL ( GURL ( \"http://term-in-path.com/end\" ) , search_terms_data_ , & result ) ) ;\n EXPECT_EQ ( base : : string16 ( ) , result ) ;\n }"}
{"idx": 14501, "target": 0, "func": "static int opt_show_ ## section ( const char * opt , const char * arg ) {\n mark_section_show_entries ( SECTION_ID_ ## target_section_id , 1 , NULL ) ;\n return 0 ;\n }\n DEFINE_OPT_SHOW_SECTION ( chapters , CHAPTERS ) DEFINE_OPT_SHOW_SECTION ( error , ERROR ) DEFINE_OPT_SHOW_SECTION ( format , FORMAT )"}
{"idx": 14502, "target": 0, "func": "int SFHasInstructions ( SplineFont * sf ) {\n int i ;\n if ( sf -> mm != NULL && sf -> mm -> apple ) sf = sf -> mm -> normal ;\n if ( sf -> subfontcnt != 0 ) return ( false ) ;\n for ( i = 0 ;\n i < sf -> glyphcnt ;\n ++ i ) if ( sf -> glyphs [ i ] != NULL ) {\n if ( strcmp ( sf -> glyphs [ i ] -> name , \".notdef\" ) == 0 ) continue ;\n if ( sf -> glyphs [ i ] -> ttf_instrs != NULL ) return ( true ) ;\n }\n return ( false ) ;\n }"}
{"idx": 14503, "target": 1, "func": "static int dissect_h225_T_messageContent_item ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 758 \"./asn1/h225/h225.cnf\" tvbuff_t * next_tvb = NULL ;\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , NO_BOUND , NO_BOUND , FALSE , & next_tvb ) ;\n next_tvb_add_handle ( & tp_list , next_tvb , ( h225_tp_in_tree ) ? tree : NULL , tp_handle ) ;\n return offset ;\n }"}
{"idx": 14504, "target": 0, "func": "int main ( int argc , char * * argv ) {\n int error ;\n MY_INIT ( argv [ 0 ] ) ;\n my_progname_short = my_progname + dirname_length ( my_progname ) ;\n myisamchk_init ( & check_param ) ;\n check_param . opt_lock_memory = 1 ;\n check_param . using_global_keycache = 0 ;\n get_options ( & argc , ( char * * * ) & argv ) ;\n myisam_quick_table_bits = decode_bits ;\n error = 0 ;\n while ( -- argc >= 0 ) {\n int new_error = myisamchk ( & check_param , * ( argv ++ ) ) ;\n if ( ( check_param . testflag & T_REP_ANY ) != T_REP ) check_param . testflag &= ~ T_REP ;\n ( void ) fflush ( stdout ) ;\n ( void ) fflush ( stderr ) ;\n if ( ( check_param . error_printed | check_param . warning_printed ) && ( check_param . testflag & T_FORCE_CREATE ) && ( ! ( check_param . testflag & ( T_REP | T_REP_BY_SORT | T_SORT_RECORDS | T_SORT_INDEX ) ) ) ) {\n uint old_testflag = check_param . testflag ;\n if ( ! ( check_param . testflag & T_REP ) ) check_param . testflag |= T_REP_BY_SORT ;\n check_param . testflag &= ~ T_EXTEND ;\n error |= myisamchk ( & check_param , argv [ - 1 ] ) ;\n check_param . testflag = old_testflag ;\n ( void ) fflush ( stdout ) ;\n ( void ) fflush ( stderr ) ;\n }\n else error |= new_error ;\n if ( argc && ( ! ( check_param . testflag & T_SILENT ) || check_param . testflag & T_INFO ) ) {\n puts ( \"\\n---------\\n\" ) ;\n ( void ) fflush ( stdout ) ;\n }\n }\n if ( check_param . total_files > 1 ) {\n char buff [ 22 ] , buff2 [ 22 ] ;\n if ( ! ( check_param . testflag & T_SILENT ) || check_param . testflag & T_INFO ) puts ( \"\\n---------\\n\" ) ;\n printf ( \"\\nTotal of all %d MyISAM-files:\\nData records: %9s Deleted blocks: %9s\\n\" , check_param . total_files , llstr ( check_param . total_records , buff ) , llstr ( check_param . total_deleted , buff2 ) ) ;\n }\n free_defaults ( default_argv ) ;\n free_tmpdir ( & myisamchk_tmpdir ) ;\n ft_free_stopwords ( ) ;\n my_end ( check_param . testflag & T_INFO ? MY_CHECK_ERROR | MY_GIVE_INFO : MY_CHECK_ERROR ) ;\n exit ( error ) ;\n # ifndef _lint return 0 ;\n # endif }"}
{"idx": 14505, "target": 0, "func": "int mime_parse_year ( const char * & buf , const char * end , int * year ) {\n int val ;\n while ( ( buf != end ) && * buf && ! is_digit ( * buf ) ) {\n buf += 1 ;\n }\n if ( ( buf == end ) || ( * buf == '\\0' ) ) {\n return 0 ;\n }\n val = 0 ;\n while ( ( buf != end ) && * buf && is_digit ( * buf ) ) {\n val = ( val * 10 ) + ( * buf ++ - '0' ) ;\n }\n if ( val >= 1900 ) {\n val -= 1900 ;\n }\n else if ( val < 70 ) {\n val += 100 ;\n }\n * year = val ;\n return 1 ;\n }"}
{"idx": 14506, "target": 0, "func": "static int32_t U_CALLCONV compareMappingsBytesFirst ( const void * context , const void * left , const void * right ) {\n UCMTable * table = ( UCMTable * ) context ;\n int32_t l = * ( const int32_t * ) left , r = * ( const int32_t * ) right ;\n return compareMappings ( table , table -> mappings + l , table , table -> mappings + r , FALSE ) ;\n }"}
{"idx": 14507, "target": 0, "func": "const char * gcry_sexp_nth_data ( const gcry_sexp_t list , int number , size_t * datalen ) {\n return sexp_nth_data ( list , number , datalen ) ;\n }"}
{"idx": 14508, "target": 1, "func": "IN_PROC_BROWSER_TEST_P ( BrowserCloseManagerWithDownloadsBrowserTest , DISABLED_TestBeforeUnloadAndDownloads ) {\n SetDownloadPathForProfile ( browser ( ) -> profile ( ) ) ;\n ASSERT_NO_FATAL_FAILURE ( CreateStalledDownload ( browser ( ) ) ) ;\n ASSERT_NO_FATAL_FAILURE ( ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/beforeunload.html\" ) ) ) ;\n PrepareForDialog ( browser ( ) ) ;\n content : : WindowedNotificationObserver cancel_observer ( chrome : : NOTIFICATION_BROWSER_CLOSE_CANCELLED , content : : NotificationService : : AllSources ( ) ) ;\n TestBrowserCloseManager : : AttemptClose ( TestBrowserCloseManager : : USER_CHOICE_USER_CANCELS_CLOSE ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n cancel_observer . Wait ( ) ;\n EXPECT_FALSE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , 1 ) ;\n TestBrowserCloseManager : : AttemptClose ( TestBrowserCloseManager : : USER_CHOICE_USER_ALLOWS_CLOSE ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n close_observer . Wait ( ) ;\n EXPECT_TRUE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_TRUE ( BrowserList : : GetInstance ( ) -> empty ( ) ) ;\n }"}
{"idx": 14509, "target": 0, "func": "static inline int vmsvga_fifo_length ( struct vmsvga_state_s * s ) {\n int num ;\n if ( ! s -> config || ! s -> enable ) {\n return 0 ;\n }\n num = CMD ( next_cmd ) - CMD ( stop ) ;\n if ( num < 0 ) {\n num += CMD ( max ) - CMD ( min ) ;\n }\n return num >> 2 ;\n }"}
{"idx": 14510, "target": 0, "func": "static void zisofs_detect_magic ( struct archive_write * a , const void * buff , size_t s ) {\n struct iso9660 * iso9660 = a -> format_data ;\n struct isofile * file = iso9660 -> cur_file ;\n const unsigned char * p , * endp ;\n const unsigned char * magic_buff ;\n uint32_t uncompressed_size ;\n unsigned char header_size ;\n unsigned char log2_bs ;\n size_t _ceil , doff ;\n uint32_t bst , bed ;\n int magic_max ;\n int64_t entry_size ;\n entry_size = archive_entry_size ( file -> entry ) ;\n if ( ( int64_t ) sizeof ( iso9660 -> zisofs . magic_buffer ) > entry_size ) magic_max = ( int ) entry_size ;\n else magic_max = sizeof ( iso9660 -> zisofs . magic_buffer ) ;\n if ( iso9660 -> zisofs . magic_cnt == 0 && s >= ( size_t ) magic_max ) magic_buff = buff ;\n else {\n if ( iso9660 -> zisofs . magic_cnt < magic_max ) {\n size_t l ;\n l = sizeof ( iso9660 -> zisofs . magic_buffer ) - iso9660 -> zisofs . magic_cnt ;\n if ( l > s ) l = s ;\n memcpy ( iso9660 -> zisofs . magic_buffer + iso9660 -> zisofs . magic_cnt , buff , l ) ;\n iso9660 -> zisofs . magic_cnt += ( int ) l ;\n if ( iso9660 -> zisofs . magic_cnt < magic_max ) return ;\n }\n magic_buff = iso9660 -> zisofs . magic_buffer ;\n }\n iso9660 -> zisofs . detect_magic = 0 ;\n p = magic_buff ;\n if ( memcmp ( p , zisofs_magic , sizeof ( zisofs_magic ) ) != 0 ) return ;\n p += sizeof ( zisofs_magic ) ;\n uncompressed_size = archive_le32dec ( p ) ;\n header_size = p [ 4 ] ;\n log2_bs = p [ 5 ] ;\n if ( uncompressed_size < 24 || header_size != 4 || log2_bs > 30 || log2_bs < 7 ) return ;\n _ceil = ( uncompressed_size + ( ARCHIVE_LITERAL_LL ( 1 ) << log2_bs ) - 1 ) >> log2_bs ;\n doff = ( _ceil + 1 ) * 4 + 16 ;\n if ( entry_size < ( int64_t ) doff ) return ;\n p = magic_buff + 16 ;\n endp = magic_buff + magic_max ;\n while ( _ceil && p + 8 <= endp ) {\n bst = archive_le32dec ( p ) ;\n if ( bst != doff ) return ;\n p += 4 ;\n bed = archive_le32dec ( p ) ;\n if ( bed < bst || bed > entry_size ) return ;\n doff += bed - bst ;\n _ceil -- ;\n }\n file -> zisofs . uncompressed_size = uncompressed_size ;\n file -> zisofs . header_size = header_size ;\n file -> zisofs . log2_bs = log2_bs ;\n iso9660 -> zisofs . making = 0 ;\n }"}
{"idx": 14511, "target": 0, "func": "int X509_REQ_sign_ctx ( X509_REQ * x , EVP_MD_CTX * ctx ) {\n return ASN1_item_sign_ctx ( ASN1_ITEM_rptr ( X509_REQ_INFO ) , x -> sig_alg , NULL , x -> signature , x -> req_info , ctx ) ;\n }"}
{"idx": 14512, "target": 0, "func": "int zif ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n check_proc ( * op ) ;\n check_type ( op [ - 1 ] , t_boolean ) ;\n if ( op [ - 1 ] . value . boolval ) {\n check_estack ( 1 ) ;\n ++ esp ;\n ref_assign ( esp , op ) ;\n esfile_check_cache ( ) ;\n }\n pop ( 2 ) ;\n return o_push_estack ;\n }"}
{"idx": 14513, "target": 0, "func": "static int selinux_socket_shutdown ( struct socket * sock , int how ) {\n return sock_has_perm ( current , sock -> sk , SOCKET__SHUTDOWN ) ;\n }"}
{"idx": 14514, "target": 0, "func": "static void set_permissions_file ( SetPermissionsJob * job , GFile * file , GFileInfo * info ) {\n CommonJob * common ;\n GFileInfo * child_info ;\n gboolean free_info ;\n guint32 current ;\n guint32 value ;\n guint32 mask ;\n GFileEnumerator * enumerator ;\n GFile * child ;\n common = ( CommonJob * ) job ;\n nautilus_progress_info_pulse_progress ( common -> progress ) ;\n free_info = FALSE ;\n if ( info == NULL ) {\n free_info = TRUE ;\n info = g_file_query_info ( file , G_FILE_ATTRIBUTE_STANDARD_TYPE \",\" G_FILE_ATTRIBUTE_UNIX_MODE , G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS , common -> cancellable , NULL ) ;\n if ( info == NULL ) {\n return ;\n }\n }\n if ( g_file_info_get_file_type ( info ) == G_FILE_TYPE_DIRECTORY ) {\n value = job -> dir_permissions ;\n mask = job -> dir_mask ;\n }\n else {\n value = job -> file_permissions ;\n mask = job -> file_mask ;\n }\n if ( ! job_aborted ( common ) && g_file_info_has_attribute ( info , G_FILE_ATTRIBUTE_UNIX_MODE ) ) {\n current = g_file_info_get_attribute_uint32 ( info , G_FILE_ATTRIBUTE_UNIX_MODE ) ;\n if ( common -> undo_info != NULL ) {\n nautilus_file_undo_info_rec_permissions_add_file ( NAUTILUS_FILE_UNDO_INFO_REC_PERMISSIONS ( common -> undo_info ) , file , current ) ;\n }\n current = ( current & ~ mask ) | value ;\n g_file_set_attribute_uint32 ( file , G_FILE_ATTRIBUTE_UNIX_MODE , current , G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS , common -> cancellable , NULL ) ;\n }\n if ( ! job_aborted ( common ) && g_file_info_get_file_type ( info ) == G_FILE_TYPE_DIRECTORY ) {\n enumerator = g_file_enumerate_children ( file , G_FILE_ATTRIBUTE_STANDARD_NAME \",\" G_FILE_ATTRIBUTE_STANDARD_TYPE \",\" G_FILE_ATTRIBUTE_UNIX_MODE , G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS , common -> cancellable , NULL ) ;\n if ( enumerator ) {\n while ( ! job_aborted ( common ) && ( child_info = g_file_enumerator_next_file ( enumerator , common -> cancellable , NULL ) ) != NULL ) {\n child = g_file_get_child ( file , g_file_info_get_name ( child_info ) ) ;\n set_permissions_file ( job , child , child_info ) ;\n g_object_unref ( child ) ;\n g_object_unref ( child_info ) ;\n }\n g_file_enumerator_close ( enumerator , common -> cancellable , NULL ) ;\n g_object_unref ( enumerator ) ;\n }\n }\n if ( free_info ) {\n g_object_unref ( info ) ;\n }\n }"}
{"idx": 14515, "target": 0, "func": "TEST_F ( SSLErrorAssistantTest , MitMSoftwareMatching ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n auto config_proto = std : : make_unique < chrome_browser_ssl : : SSLErrorAssistantConfig > ( ) ;\n config_proto -> set_version_id ( kLargeVersionId ) ;\n chrome_browser_ssl : : MITMSoftware * filter = config_proto -> add_mitm_software ( ) ;\n filter -> set_name ( \"Basic Check\" ) ;\n filter -> set_issuer_common_name_regex ( \"Misconfig Software\" ) ;\n filter -> set_issuer_organization_regex ( \"Test Company\" ) ;\n filter = config_proto -> add_mitm_software ( ) ;\n filter -> set_name ( \"Regex Check\" ) ;\n filter -> set_issuer_common_name_regex ( \"ij[a-z]+n opqrs\" ) ;\n filter -> set_issuer_organization_regex ( \"abc de[a-z0-9]gh [a-z]+\" ) ;\n error_assistant ( ) -> SetErrorAssistantProto ( std : : move ( config_proto ) ) ;\n TestMITMSoftwareMatchFromString ( kMisconfigSoftwareCert , \"Basic Check\" ) ;\n TestMITMSoftwareMatchFromString ( kMisconfigSoftwareRegexCheckCert , \"Regex Check\" ) ;\n error_assistant ( ) -> ResetForTesting ( ) ;\n config_proto . reset ( new chrome_browser_ssl : : SSLErrorAssistantConfig ( ) ) ;\n config_proto -> set_version_id ( kLargeVersionId ) ;\n filter = config_proto -> add_mitm_software ( ) ;\n filter -> set_name ( \"Incorrect common name\" ) ;\n filter -> set_issuer_common_name_regex ( \"Misconfig Sotware\" ) ;\n filter -> set_issuer_organization_regex ( \"Test Company\" ) ;\n filter = config_proto -> add_mitm_software ( ) ;\n filter -> set_name ( \"Incorrect company name\" ) ;\n filter -> set_issuer_common_name_regex ( \"Misconfig Software\" ) ;\n filter -> set_issuer_organization_regex ( \"Tst Company\" ) ;\n error_assistant ( ) -> SetErrorAssistantProto ( std : : move ( config_proto ) ) ;\n TestMITMSoftwareMatchFromString ( kMisconfigSoftwareCert , \"\" ) ;\n }"}
{"idx": 14516, "target": 1, "func": "static int encode_thread ( AVCodecContext * c , void * arg ) {\n MpegEncContext * s = * ( void * * ) arg ;\n int mb_x , mb_y , pdif = 0 ;\n int chr_h = 16 >> s -> chroma_y_shift ;\n int i , j ;\n MpegEncContext best_s , backup_s ;\n uint8_t bit_buf [ 2 ] [ MAX_MB_BYTES ] ;\n uint8_t bit_buf2 [ 2 ] [ MAX_MB_BYTES ] ;\n uint8_t bit_buf_tex [ 2 ] [ MAX_MB_BYTES ] ;\n PutBitContext pb [ 2 ] , pb2 [ 2 ] , tex_pb [ 2 ] ;\n ff_check_alignment ( ) ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n init_put_bits ( & pb [ i ] , bit_buf [ i ] , MAX_MB_BYTES ) ;\n init_put_bits ( & pb2 [ i ] , bit_buf2 [ i ] , MAX_MB_BYTES ) ;\n init_put_bits ( & tex_pb [ i ] , bit_buf_tex [ i ] , MAX_MB_BYTES ) ;\n }\n s -> last_bits = put_bits_count ( & s -> pb ) ;\n s -> mv_bits = 0 ;\n s -> misc_bits = 0 ;\n s -> i_tex_bits = 0 ;\n s -> p_tex_bits = 0 ;\n s -> i_count = 0 ;\n s -> f_count = 0 ;\n s -> b_count = 0 ;\n s -> skip_count = 0 ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n s -> last_dc [ i ] = 128 << s -> intra_dc_precision ;\n s -> current_picture . f . error [ i ] = 0 ;\n }\n s -> mb_skip_run = 0 ;\n memset ( s -> last_mv , 0 , sizeof ( s -> last_mv ) ) ;\n s -> last_mv_dir = 0 ;\n switch ( s -> codec_id ) {\n case AV_CODEC_ID_H263 : case AV_CODEC_ID_H263P : case AV_CODEC_ID_FLV1 : if ( CONFIG_H263_ENCODER ) s -> gob_index = ff_h263_get_gob_height ( s ) ;\n break ;\n case AV_CODEC_ID_MPEG4 : if ( CONFIG_MPEG4_ENCODER && s -> partitioned_frame ) ff_mpeg4_init_partitions ( s ) ;\n break ;\n }\n s -> resync_mb_x = 0 ;\n s -> resync_mb_y = 0 ;\n s -> first_slice_line = 1 ;\n s -> ptr_lastgob = s -> pb . buf ;\n for ( mb_y = s -> start_mb_y ;\n mb_y < s -> end_mb_y ;\n mb_y ++ ) {\n s -> mb_x = 0 ;\n s -> mb_y = mb_y ;\n ff_set_qscale ( s , s -> qscale ) ;\n ff_init_block_index ( s ) ;\n for ( mb_x = 0 ;\n mb_x < s -> mb_width ;\n mb_x ++ ) {\n int xy = mb_y * s -> mb_stride + mb_x ;\n int mb_type = s -> mb_type [ xy ] ;\n int dmin = INT_MAX ;\n int dir ;\n if ( s -> pb . buf_end - s -> pb . buf - ( put_bits_count ( & s -> pb ) >> 3 ) < MAX_MB_BYTES ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"encoded frame too large\\n\" ) ;\n return - 1 ;\n }\n if ( s -> data_partitioning ) {\n if ( s -> pb2 . buf_end - s -> pb2 . buf - ( put_bits_count ( & s -> pb2 ) >> 3 ) < MAX_MB_BYTES || s -> tex_pb . buf_end - s -> tex_pb . buf - ( put_bits_count ( & s -> tex_pb ) >> 3 ) < MAX_MB_BYTES ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"encoded frame too large\\n\" ) ;\n return - 1 ;\n }\n }\n s -> mb_x = mb_x ;\n s -> mb_y = mb_y ;\n ff_update_block_index ( s ) ;\n if ( CONFIG_H261_ENCODER && s -> codec_id == AV_CODEC_ID_H261 ) {\n ff_h261_reorder_mb_index ( s ) ;\n xy = s -> mb_y * s -> mb_stride + s -> mb_x ;\n mb_type = s -> mb_type [ xy ] ;\n }\n if ( s -> rtp_mode ) {\n int current_packet_size , is_gob_start ;\n current_packet_size = ( ( put_bits_count ( & s -> pb ) + 7 ) >> 3 ) - ( s -> ptr_lastgob - s -> pb . buf ) ;\n is_gob_start = s -> avctx -> rtp_payload_size && current_packet_size >= s -> avctx -> rtp_payload_size && mb_y + mb_x > 0 ;\n if ( s -> start_mb_y == mb_y && mb_y > 0 && mb_x == 0 ) is_gob_start = 1 ;\n switch ( s -> codec_id ) {\n case AV_CODEC_ID_H263 : case AV_CODEC_ID_H263P : if ( ! s -> h263_slice_structured ) if ( s -> mb_x || s -> mb_y % s -> gob_index ) is_gob_start = 0 ;\n break ;\n case AV_CODEC_ID_MPEG2VIDEO : if ( s -> mb_x == 0 && s -> mb_y != 0 ) is_gob_start = 1 ;\n case AV_CODEC_ID_MPEG1VIDEO : if ( s -> mb_skip_run ) is_gob_start = 0 ;\n break ;\n }\n if ( is_gob_start ) {\n if ( s -> start_mb_y != mb_y || mb_x != 0 ) {\n write_slice_end ( s ) ;\n if ( CONFIG_MPEG4_ENCODER && s -> codec_id == AV_CODEC_ID_MPEG4 && s -> partitioned_frame ) {\n ff_mpeg4_init_partitions ( s ) ;\n }\n }\n assert ( ( put_bits_count ( & s -> pb ) & 7 ) == 0 ) ;\n current_packet_size = put_bits_ptr ( & s -> pb ) - s -> ptr_lastgob ;\n if ( s -> avctx -> error_rate && s -> resync_mb_x + s -> resync_mb_y > 0 ) {\n int r = put_bits_count ( & s -> pb ) / 8 + s -> picture_number + 16 + s -> mb_x + s -> mb_y ;\n int d = 100 / s -> avctx -> error_rate ;\n if ( r % d == 0 ) {\n current_packet_size = 0 ;\n s -> pb . buf_ptr = s -> ptr_lastgob ;\n assert ( put_bits_ptr ( & s -> pb ) == s -> ptr_lastgob ) ;\n }\n }\n if ( s -> avctx -> rtp_callback ) {\n int number_mb = ( mb_y - s -> resync_mb_y ) * s -> mb_width + mb_x - s -> resync_mb_x ;\n s -> avctx -> rtp_callback ( s -> avctx , s -> ptr_lastgob , current_packet_size , number_mb ) ;\n }\n update_mb_info ( s , 1 ) ;\n switch ( s -> codec_id ) {\n case AV_CODEC_ID_MPEG4 : if ( CONFIG_MPEG4_ENCODER ) {\n ff_mpeg4_encode_video_packet_header ( s ) ;\n ff_mpeg4_clean_buffers ( s ) ;\n }\n break ;\n case AV_CODEC_ID_MPEG1VIDEO : case AV_CODEC_ID_MPEG2VIDEO : if ( CONFIG_MPEG1VIDEO_ENCODER || CONFIG_MPEG2VIDEO_ENCODER ) {\n ff_mpeg1_encode_slice_header ( s ) ;\n ff_mpeg1_clean_buffers ( s ) ;\n }\n break ;\n case AV_CODEC_ID_H263 : case AV_CODEC_ID_H263P : if ( CONFIG_H263_ENCODER ) ff_h263_encode_gob_header ( s , mb_y ) ;\n break ;\n }\n if ( s -> flags & CODEC_FLAG_PASS1 ) {\n int bits = put_bits_count ( & s -> pb ) ;\n s -> misc_bits += bits - s -> last_bits ;\n s -> last_bits = bits ;\n }\n s -> ptr_lastgob += current_packet_size ;\n s -> first_slice_line = 1 ;\n s -> resync_mb_x = mb_x ;\n s -> resync_mb_y = mb_y ;\n }\n }\n if ( ( s -> resync_mb_x == s -> mb_x ) && s -> resync_mb_y + 1 == s -> mb_y ) {\n s -> first_slice_line = 0 ;\n }\n s -> mb_skipped = 0 ;\n s -> dquant = 0 ;\n update_mb_info ( s , 0 ) ;\n if ( mb_type & ( mb_type - 1 ) || ( s -> mpv_flags & FF_MPV_FLAG_QP_RD ) ) {\n int next_block = 0 ;\n int pb_bits_count , pb2_bits_count , tex_pb_bits_count ;\n copy_context_before_encode ( & backup_s , s , - 1 ) ;\n backup_s . pb = s -> pb ;\n best_s . data_partitioning = s -> data_partitioning ;\n best_s . partitioned_frame = s -> partitioned_frame ;\n if ( s -> data_partitioning ) {\n backup_s . pb2 = s -> pb2 ;\n backup_s . tex_pb = s -> tex_pb ;\n }\n if ( mb_type & CANDIDATE_MB_TYPE_INTER ) {\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n s -> mb_intra = 0 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = s -> p_mv_table [ xy ] [ 0 ] ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = s -> p_mv_table [ xy ] [ 1 ] ;\n encode_mb_hq ( s , & backup_s , & best_s , CANDIDATE_MB_TYPE_INTER , pb , pb2 , tex_pb , & dmin , & next_block , s -> mv [ 0 ] [ 0 ] [ 0 ] , s -> mv [ 0 ] [ 0 ] [ 1 ] ) ;\n }\n if ( mb_type & CANDIDATE_MB_TYPE_INTER_I ) {\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_FIELD ;\n s -> mb_intra = 0 ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n j = s -> field_select [ 0 ] [ i ] = s -> p_field_select_table [ i ] [ xy ] ;\n s -> mv [ 0 ] [ i ] [ 0 ] = s -> p_field_mv_table [ i ] [ j ] [ xy ] [ 0 ] ;\n s -> mv [ 0 ] [ i ] [ 1 ] = s -> p_field_mv_table [ i ] [ j ] [ xy ] [ 1 ] ;\n }\n encode_mb_hq ( s , & backup_s , & best_s , CANDIDATE_MB_TYPE_INTER_I , pb , pb2 , tex_pb , & dmin , & next_block , 0 , 0 ) ;\n }\n if ( mb_type & CANDIDATE_MB_TYPE_SKIPPED ) {\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n s -> mb_intra = 0 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = 0 ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = 0 ;\n encode_mb_hq ( s , & backup_s , & best_s , CANDIDATE_MB_TYPE_SKIPPED , pb , pb2 , tex_pb , & dmin , & next_block , s -> mv [ 0 ] [ 0 ] [ 0 ] , s -> mv [ 0 ] [ 0 ] [ 1 ] ) ;\n }\n if ( mb_type & CANDIDATE_MB_TYPE_INTER4V ) {\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_8X8 ;\n s -> mb_intra = 0 ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n s -> mv [ 0 ] [ i ] [ 0 ] = s -> current_picture . f . motion_val [ 0 ] [ s -> block_index [ i ] ] [ 0 ] ;\n s -> mv [ 0 ] [ i ] [ 1 ] = s -> current_picture . f . motion_val [ 0 ] [ s -> block_index [ i ] ] [ 1 ] ;\n }\n encode_mb_hq ( s , & backup_s , & best_s , CANDIDATE_MB_TYPE_INTER4V , pb , pb2 , tex_pb , & dmin , & next_block , 0 , 0 ) ;\n }\n if ( mb_type & CANDIDATE_MB_TYPE_FORWARD ) {\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n s -> mb_intra = 0 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = s -> b_forw_mv_table [ xy ] [ 0 ] ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = s -> b_forw_mv_table [ xy ] [ 1 ] ;\n encode_mb_hq ( s , & backup_s , & best_s , CANDIDATE_MB_TYPE_FORWARD , pb , pb2 , tex_pb , & dmin , & next_block , s -> mv [ 0 ] [ 0 ] [ 0 ] , s -> mv [ 0 ] [ 0 ] [ 1 ] ) ;\n }\n if ( mb_type & CANDIDATE_MB_TYPE_BACKWARD ) {\n s -> mv_dir = MV_DIR_BACKWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n s -> mb_intra = 0 ;\n s -> mv [ 1 ] [ 0 ] [ 0 ] = s -> b_back_mv_table [ xy ] [ 0 ] ;\n s -> mv [ 1 ] [ 0 ] [ 1 ] = s -> b_back_mv_table [ xy ] [ 1 ] ;\n encode_mb_hq ( s , & backup_s , & best_s , CANDIDATE_MB_TYPE_BACKWARD , pb , pb2 , tex_pb , & dmin , & next_block , s -> mv [ 1 ] [ 0 ] [ 0 ] , s -> mv [ 1 ] [ 0 ] [ 1 ] ) ;\n }\n if ( mb_type & CANDIDATE_MB_TYPE_BIDIR ) {\n s -> mv_dir = MV_DIR_FORWARD | MV_DIR_BACKWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n s -> mb_intra = 0 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = s -> b_bidir_forw_mv_table [ xy ] [ 0 ] ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = s -> b_bidir_forw_mv_table [ xy ] [ 1 ] ;\n s -> mv [ 1 ] [ 0 ] [ 0 ] = s -> b_bidir_back_mv_table [ xy ] [ 0 ] ;\n s -> mv [ 1 ] [ 0 ] [ 1 ] = s -> b_bidir_back_mv_table [ xy ] [ 1 ] ;\n encode_mb_hq ( s , & backup_s , & best_s , CANDIDATE_MB_TYPE_BIDIR , pb , pb2 , tex_pb , & dmin , & next_block , 0 , 0 ) ;\n }\n if ( mb_type & CANDIDATE_MB_TYPE_FORWARD_I ) {\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_FIELD ;\n s -> mb_intra = 0 ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n j = s -> field_select [ 0 ] [ i ] = s -> b_field_select_table [ 0 ] [ i ] [ xy ] ;\n s -> mv [ 0 ] [ i ] [ 0 ] = s -> b_field_mv_table [ 0 ] [ i ] [ j ] [ xy ] [ 0 ] ;\n s -> mv [ 0 ] [ i ] [ 1 ] = s -> b_field_mv_table [ 0 ] [ i ] [ j ] [ xy ] [ 1 ] ;\n }\n encode_mb_hq ( s , & backup_s , & best_s , CANDIDATE_MB_TYPE_FORWARD_I , pb , pb2 , tex_pb , & dmin , & next_block , 0 , 0 ) ;\n }\n if ( mb_type & CANDIDATE_MB_TYPE_BACKWARD_I ) {\n s -> mv_dir = MV_DIR_BACKWARD ;\n s -> mv_type = MV_TYPE_FIELD ;\n s -> mb_intra = 0 ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n j = s -> field_select [ 1 ] [ i ] = s -> b_field_select_table [ 1 ] [ i ] [ xy ] ;\n s -> mv [ 1 ] [ i ] [ 0 ] = s -> b_field_mv_table [ 1 ] [ i ] [ j ] [ xy ] [ 0 ] ;\n s -> mv [ 1 ] [ i ] [ 1 ] = s -> b_field_mv_table [ 1 ] [ i ] [ j ] [ xy ] [ 1 ] ;\n }\n encode_mb_hq ( s , & backup_s , & best_s , CANDIDATE_MB_TYPE_BACKWARD_I , pb , pb2 , tex_pb , & dmin , & next_block , 0 , 0 ) ;\n }\n if ( mb_type & CANDIDATE_MB_TYPE_BIDIR_I ) {\n s -> mv_dir = MV_DIR_FORWARD | MV_DIR_BACKWARD ;\n s -> mv_type = MV_TYPE_FIELD ;\n s -> mb_intra = 0 ;\n for ( dir = 0 ;\n dir < 2 ;\n dir ++ ) {\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n j = s -> field_select [ dir ] [ i ] = s -> b_field_select_table [ dir ] [ i ] [ xy ] ;\n s -> mv [ dir ] [ i ] [ 0 ] = s -> b_field_mv_table [ dir ] [ i ] [ j ] [ xy ] [ 0 ] ;\n s -> mv [ dir ] [ i ] [ 1 ] = s -> b_field_mv_table [ dir ] [ i ] [ j ] [ xy ] [ 1 ] ;\n }\n }\n encode_mb_hq ( s , & backup_s , & best_s , CANDIDATE_MB_TYPE_BIDIR_I , pb , pb2 , tex_pb , & dmin , & next_block , 0 , 0 ) ;\n }\n if ( mb_type & CANDIDATE_MB_TYPE_INTRA ) {\n s -> mv_dir = 0 ;\n s -> mv_type = MV_TYPE_16X16 ;\n s -> mb_intra = 1 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = 0 ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = 0 ;\n encode_mb_hq ( s , & backup_s , & best_s , CANDIDATE_MB_TYPE_INTRA , pb , pb2 , tex_pb , & dmin , & next_block , 0 , 0 ) ;\n if ( s -> h263_pred || s -> h263_aic ) {\n if ( best_s . mb_intra ) s -> mbintra_table [ mb_x + mb_y * s -> mb_stride ] = 1 ;\n else ff_clean_intra_table_entries ( s ) ;\n }\n }\n if ( ( s -> mpv_flags & FF_MPV_FLAG_QP_RD ) && dmin < INT_MAX ) {\n if ( best_s . mv_type == MV_TYPE_16X16 ) {\n const int last_qp = backup_s . qscale ;\n int qpi , qp , dc [ 6 ] ;\n int16_t ac [ 6 ] [ 16 ] ;\n const int mvdir = ( best_s . mv_dir & MV_DIR_BACKWARD ) ? 1 : 0 ;\n static const int dquant_tab [ 4 ] = {\n - 1 , 1 , - 2 , 2 }\n ;\n assert ( backup_s . dquant == 0 ) ;\n s -> mv_dir = best_s . mv_dir ;\n s -> mv_type = MV_TYPE_16X16 ;\n s -> mb_intra = best_s . mb_intra ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = best_s . mv [ 0 ] [ 0 ] [ 0 ] ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = best_s . mv [ 0 ] [ 0 ] [ 1 ] ;\n s -> mv [ 1 ] [ 0 ] [ 0 ] = best_s . mv [ 1 ] [ 0 ] [ 0 ] ;\n s -> mv [ 1 ] [ 0 ] [ 1 ] = best_s . mv [ 1 ] [ 0 ] [ 1 ] ;\n qpi = s -> pict_type == AV_PICTURE_TYPE_B ? 2 : 0 ;\n for ( ;\n qpi < 4 ;\n qpi ++ ) {\n int dquant = dquant_tab [ qpi ] ;\n qp = last_qp + dquant ;\n if ( qp < s -> avctx -> qmin || qp > s -> avctx -> qmax ) continue ;\n backup_s . dquant = dquant ;\n if ( s -> mb_intra && s -> dc_val [ 0 ] ) {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n dc [ i ] = s -> dc_val [ 0 ] [ s -> block_index [ i ] ] ;\n memcpy ( ac [ i ] , s -> ac_val [ 0 ] [ s -> block_index [ i ] ] , sizeof ( int16_t ) * 16 ) ;\n }\n }\n encode_mb_hq ( s , & backup_s , & best_s , CANDIDATE_MB_TYPE_INTER , pb , pb2 , tex_pb , & dmin , & next_block , s -> mv [ mvdir ] [ 0 ] [ 0 ] , s -> mv [ mvdir ] [ 0 ] [ 1 ] ) ;\n if ( best_s . qscale != qp ) {\n if ( s -> mb_intra && s -> dc_val [ 0 ] ) {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n s -> dc_val [ 0 ] [ s -> block_index [ i ] ] = dc [ i ] ;\n memcpy ( s -> ac_val [ 0 ] [ s -> block_index [ i ] ] , ac [ i ] , sizeof ( int16_t ) * 16 ) ;\n }\n }\n }\n }\n }\n }\n if ( CONFIG_MPEG4_ENCODER && mb_type & CANDIDATE_MB_TYPE_DIRECT ) {\n int mx = s -> b_direct_mv_table [ xy ] [ 0 ] ;\n int my = s -> b_direct_mv_table [ xy ] [ 1 ] ;\n backup_s . dquant = 0 ;\n s -> mv_dir = MV_DIR_FORWARD | MV_DIR_BACKWARD | MV_DIRECT ;\n s -> mb_intra = 0 ;\n ff_mpeg4_set_direct_mv ( s , mx , my ) ;\n encode_mb_hq ( s , & backup_s , & best_s , CANDIDATE_MB_TYPE_DIRECT , pb , pb2 , tex_pb , & dmin , & next_block , mx , my ) ;\n }\n if ( CONFIG_MPEG4_ENCODER && mb_type & CANDIDATE_MB_TYPE_DIRECT0 ) {\n backup_s . dquant = 0 ;\n s -> mv_dir = MV_DIR_FORWARD | MV_DIR_BACKWARD | MV_DIRECT ;\n s -> mb_intra = 0 ;\n ff_mpeg4_set_direct_mv ( s , 0 , 0 ) ;\n encode_mb_hq ( s , & backup_s , & best_s , CANDIDATE_MB_TYPE_DIRECT , pb , pb2 , tex_pb , & dmin , & next_block , 0 , 0 ) ;\n }\n if ( ! best_s . mb_intra && s -> mpv_flags & FF_MPV_FLAG_SKIP_RD ) {\n int coded = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) coded |= s -> block_last_index [ i ] ;\n if ( coded ) {\n int mx , my ;\n memcpy ( s -> mv , best_s . mv , sizeof ( s -> mv ) ) ;\n if ( CONFIG_MPEG4_ENCODER && best_s . mv_dir & MV_DIRECT ) {\n mx = my = 0 ;\n ff_mpeg4_set_direct_mv ( s , mx , my ) ;\n }\n else if ( best_s . mv_dir & MV_DIR_BACKWARD ) {\n mx = s -> mv [ 1 ] [ 0 ] [ 0 ] ;\n my = s -> mv [ 1 ] [ 0 ] [ 1 ] ;\n }\n else {\n mx = s -> mv [ 0 ] [ 0 ] [ 0 ] ;\n my = s -> mv [ 0 ] [ 0 ] [ 1 ] ;\n }\n s -> mv_dir = best_s . mv_dir ;\n s -> mv_type = best_s . mv_type ;\n s -> mb_intra = 0 ;\n backup_s . dquant = 0 ;\n s -> skipdct = 1 ;\n encode_mb_hq ( s , & backup_s , & best_s , CANDIDATE_MB_TYPE_INTER , pb , pb2 , tex_pb , & dmin , & next_block , mx , my ) ;\n s -> skipdct = 0 ;\n }\n }\n s -> current_picture . f . qscale_table [ xy ] = best_s . qscale ;\n copy_context_after_encode ( s , & best_s , - 1 ) ;\n pb_bits_count = put_bits_count ( & s -> pb ) ;\n flush_put_bits ( & s -> pb ) ;\n avpriv_copy_bits ( & backup_s . pb , bit_buf [ next_block ^ 1 ] , pb_bits_count ) ;\n s -> pb = backup_s . pb ;\n if ( s -> data_partitioning ) {\n pb2_bits_count = put_bits_count ( & s -> pb2 ) ;\n flush_put_bits ( & s -> pb2 ) ;\n avpriv_copy_bits ( & backup_s . pb2 , bit_buf2 [ next_block ^ 1 ] , pb2_bits_count ) ;\n s -> pb2 = backup_s . pb2 ;\n tex_pb_bits_count = put_bits_count ( & s -> tex_pb ) ;\n flush_put_bits ( & s -> tex_pb ) ;\n avpriv_copy_bits ( & backup_s . tex_pb , bit_buf_tex [ next_block ^ 1 ] , tex_pb_bits_count ) ;\n s -> tex_pb = backup_s . tex_pb ;\n }\n s -> last_bits = put_bits_count ( & s -> pb ) ;\n if ( CONFIG_H263_ENCODER && s -> out_format == FMT_H263 && s -> pict_type != AV_PICTURE_TYPE_B ) ff_h263_update_motion_val ( s ) ;\n if ( next_block == 0 ) {\n s -> dsp . put_pixels_tab [ 0 ] [ 0 ] ( s -> dest [ 0 ] , s -> rd_scratchpad , s -> linesize , 16 ) ;\n s -> dsp . put_pixels_tab [ 1 ] [ 0 ] ( s -> dest [ 1 ] , s -> rd_scratchpad + 16 * s -> linesize , s -> uvlinesize , 8 ) ;\n s -> dsp . put_pixels_tab [ 1 ] [ 0 ] ( s -> dest [ 2 ] , s -> rd_scratchpad + 16 * s -> linesize + 8 , s -> uvlinesize , 8 ) ;\n }\n if ( s -> avctx -> mb_decision == FF_MB_DECISION_BITS ) ff_MPV_decode_mb ( s , s -> block ) ;\n }\n else {\n int motion_x = 0 , motion_y = 0 ;\n s -> mv_type = MV_TYPE_16X16 ;\n switch ( mb_type ) {\n case CANDIDATE_MB_TYPE_INTRA : s -> mv_dir = 0 ;\n s -> mb_intra = 1 ;\n motion_x = s -> mv [ 0 ] [ 0 ] [ 0 ] = 0 ;\n motion_y = s -> mv [ 0 ] [ 0 ] [ 1 ] = 0 ;\n break ;\n case CANDIDATE_MB_TYPE_INTER : s -> mv_dir = MV_DIR_FORWARD ;\n s -> mb_intra = 0 ;\n motion_x = s -> mv [ 0 ] [ 0 ] [ 0 ] = s -> p_mv_table [ xy ] [ 0 ] ;\n motion_y = s -> mv [ 0 ] [ 0 ] [ 1 ] = s -> p_mv_table [ xy ] [ 1 ] ;\n break ;\n case CANDIDATE_MB_TYPE_INTER_I : s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_FIELD ;\n s -> mb_intra = 0 ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n j = s -> field_select [ 0 ] [ i ] = s -> p_field_select_table [ i ] [ xy ] ;\n s -> mv [ 0 ] [ i ] [ 0 ] = s -> p_field_mv_table [ i ] [ j ] [ xy ] [ 0 ] ;\n s -> mv [ 0 ] [ i ] [ 1 ] = s -> p_field_mv_table [ i ] [ j ] [ xy ] [ 1 ] ;\n }\n break ;\n case CANDIDATE_MB_TYPE_INTER4V : s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_8X8 ;\n s -> mb_intra = 0 ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n s -> mv [ 0 ] [ i ] [ 0 ] = s -> current_picture . f . motion_val [ 0 ] [ s -> block_index [ i ] ] [ 0 ] ;\n s -> mv [ 0 ] [ i ] [ 1 ] = s -> current_picture . f . motion_val [ 0 ] [ s -> block_index [ i ] ] [ 1 ] ;\n }\n break ;\n case CANDIDATE_MB_TYPE_DIRECT : if ( CONFIG_MPEG4_ENCODER ) {\n s -> mv_dir = MV_DIR_FORWARD | MV_DIR_BACKWARD | MV_DIRECT ;\n s -> mb_intra = 0 ;\n motion_x = s -> b_direct_mv_table [ xy ] [ 0 ] ;\n motion_y = s -> b_direct_mv_table [ xy ] [ 1 ] ;\n ff_mpeg4_set_direct_mv ( s , motion_x , motion_y ) ;\n }\n break ;\n case CANDIDATE_MB_TYPE_DIRECT0 : if ( CONFIG_MPEG4_ENCODER ) {\n s -> mv_dir = MV_DIR_FORWARD | MV_DIR_BACKWARD | MV_DIRECT ;\n s -> mb_intra = 0 ;\n ff_mpeg4_set_direct_mv ( s , 0 , 0 ) ;\n }\n break ;\n case CANDIDATE_MB_TYPE_BIDIR : s -> mv_dir = MV_DIR_FORWARD | MV_DIR_BACKWARD ;\n s -> mb_intra = 0 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = s -> b_bidir_forw_mv_table [ xy ] [ 0 ] ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = s -> b_bidir_forw_mv_table [ xy ] [ 1 ] ;\n s -> mv [ 1 ] [ 0 ] [ 0 ] = s -> b_bidir_back_mv_table [ xy ] [ 0 ] ;\n s -> mv [ 1 ] [ 0 ] [ 1 ] = s -> b_bidir_back_mv_table [ xy ] [ 1 ] ;\n break ;\n case CANDIDATE_MB_TYPE_BACKWARD : s -> mv_dir = MV_DIR_BACKWARD ;\n s -> mb_intra = 0 ;\n motion_x = s -> mv [ 1 ] [ 0 ] [ 0 ] = s -> b_back_mv_table [ xy ] [ 0 ] ;\n motion_y = s -> mv [ 1 ] [ 0 ] [ 1 ] = s -> b_back_mv_table [ xy ] [ 1 ] ;\n break ;\n case CANDIDATE_MB_TYPE_FORWARD : s -> mv_dir = MV_DIR_FORWARD ;\n s -> mb_intra = 0 ;\n motion_x = s -> mv [ 0 ] [ 0 ] [ 0 ] = s -> b_forw_mv_table [ xy ] [ 0 ] ;\n motion_y = s -> mv [ 0 ] [ 0 ] [ 1 ] = s -> b_forw_mv_table [ xy ] [ 1 ] ;\n break ;\n case CANDIDATE_MB_TYPE_FORWARD_I : s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_FIELD ;\n s -> mb_intra = 0 ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n j = s -> field_select [ 0 ] [ i ] = s -> b_field_select_table [ 0 ] [ i ] [ xy ] ;\n s -> mv [ 0 ] [ i ] [ 0 ] = s -> b_field_mv_table [ 0 ] [ i ] [ j ] [ xy ] [ 0 ] ;\n s -> mv [ 0 ] [ i ] [ 1 ] = s -> b_field_mv_table [ 0 ] [ i ] [ j ] [ xy ] [ 1 ] ;\n }\n break ;\n case CANDIDATE_MB_TYPE_BACKWARD_I : s -> mv_dir = MV_DIR_BACKWARD ;\n s -> mv_type = MV_TYPE_FIELD ;\n s -> mb_intra = 0 ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n j = s -> field_select [ 1 ] [ i ] = s -> b_field_select_table [ 1 ] [ i ] [ xy ] ;\n s -> mv [ 1 ] [ i ] [ 0 ] = s -> b_field_mv_table [ 1 ] [ i ] [ j ] [ xy ] [ 0 ] ;\n s -> mv [ 1 ] [ i ] [ 1 ] = s -> b_field_mv_table [ 1 ] [ i ] [ j ] [ xy ] [ 1 ] ;\n }\n break ;\n case CANDIDATE_MB_TYPE_BIDIR_I : s -> mv_dir = MV_DIR_FORWARD | MV_DIR_BACKWARD ;\n s -> mv_type = MV_TYPE_FIELD ;\n s -> mb_intra = 0 ;\n for ( dir = 0 ;\n dir < 2 ;\n dir ++ ) {\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n j = s -> field_select [ dir ] [ i ] = s -> b_field_select_table [ dir ] [ i ] [ xy ] ;\n s -> mv [ dir ] [ i ] [ 0 ] = s -> b_field_mv_table [ dir ] [ i ] [ j ] [ xy ] [ 0 ] ;\n s -> mv [ dir ] [ i ] [ 1 ] = s -> b_field_mv_table [ dir ] [ i ] [ j ] [ xy ] [ 1 ] ;\n }\n }\n break ;\n default : av_log ( s -> avctx , AV_LOG_ERROR , \"illegal MB type\\n\" ) ;\n }\n encode_mb ( s , motion_x , motion_y ) ;\n s -> last_mv_dir = s -> mv_dir ;\n if ( CONFIG_H263_ENCODER && s -> out_format == FMT_H263 && s -> pict_type != AV_PICTURE_TYPE_B ) ff_h263_update_motion_val ( s ) ;\n ff_MPV_decode_mb ( s , s -> block ) ;\n }\n if ( s -> mb_intra ) {\n s -> p_mv_table [ xy ] [ 0 ] = 0 ;\n s -> p_mv_table [ xy ] [ 1 ] = 0 ;\n }\n if ( s -> flags & CODEC_FLAG_PSNR ) {\n int w = 16 ;\n int h = 16 ;\n if ( s -> mb_x * 16 + 16 > s -> width ) w = s -> width - s -> mb_x * 16 ;\n if ( s -> mb_y * 16 + 16 > s -> height ) h = s -> height - s -> mb_y * 16 ;\n s -> current_picture . f . error [ 0 ] += sse ( s , s -> new_picture . f . data [ 0 ] + s -> mb_x * 16 + s -> mb_y * s -> linesize * 16 , s -> dest [ 0 ] , w , h , s -> linesize ) ;\n s -> current_picture . f . error [ 1 ] += sse ( s , s -> new_picture . f . data [ 1 ] + s -> mb_x * 8 + s -> mb_y * s -> uvlinesize * chr_h , s -> dest [ 1 ] , w >> 1 , h >> s -> chroma_y_shift , s -> uvlinesize ) ;\n s -> current_picture . f . error [ 2 ] += sse ( s , s -> new_picture . f . data [ 2 ] + s -> mb_x * 8 + s -> mb_y * s -> uvlinesize * chr_h , s -> dest [ 2 ] , w >> 1 , h >> s -> chroma_y_shift , s -> uvlinesize ) ;\n }\n if ( s -> loop_filter ) {\n if ( CONFIG_H263_ENCODER && s -> out_format == FMT_H263 ) ff_h263_loop_filter ( s ) ;\n }\n av_dlog ( s -> avctx , \"MB %d %d bits\\n\" , s -> mb_x + s -> mb_y * s -> mb_stride , put_bits_count ( & s -> pb ) ) ;\n }\n }\n / ot beautiful here but we must write it before flushing so it has to be here if ( CONFIG_MSMPEG4_ENCODER && s -> msmpeg4_version && s -> msmpeg4_version < 4 && s -> pict_type == AV_PICTURE_TYPE_I ) ff_msmpeg4_encode_ext_header ( s ) ;\n write_slice_end ( s ) ;\n if ( s -> avctx -> rtp_callback ) {\n int number_mb = ( mb_y - s -> resync_mb_y ) * s -> mb_width - s -> resync_mb_x ;\n pdif = put_bits_ptr ( & s -> pb ) - s -> ptr_lastgob ;\n emms_c ( ) ;\n s -> avctx -> rtp_callback ( s -> avctx , s -> ptr_lastgob , pdif , number_mb ) ;\n }\n return 0 ;\n }"}
{"idx": 14517, "target": 0, "func": "static Datum ExecEvalCoalesce ( CoalesceExprState * coalesceExpr , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n ListCell * arg ;\n if ( isDone ) * isDone = ExprSingleResult ;\n foreach ( arg , coalesceExpr -> args ) {\n ExprState * e = ( ExprState * ) lfirst ( arg ) ;\n Datum value ;\n value = ExecEvalExpr ( e , econtext , isNull , NULL ) ;\n if ( ! * isNull ) return value ;\n }\n * isNull = true ;\n return ( Datum ) 0 ;\n }"}
{"idx": 14518, "target": 0, "func": "static inline MagickBooleanType IsPixelMonochrome ( const Image * restrict image , const Quantum * restrict pixel ) {\n MagickRealType blue , green , red ;\n red = ( MagickRealType ) pixel [ image -> channel_map [ RedPixelChannel ] . offset ] ;\n if ( ( AbsolutePixelValue ( red ) >= MagickEpsilon ) || ( AbsolutePixelValue ( red - QuantumRange ) >= MagickEpsilon ) ) return ( MagickFalse ) ;\n green = ( MagickRealType ) pixel [ image -> channel_map [ GreenPixelChannel ] . offset ] ;\n blue = ( MagickRealType ) pixel [ image -> channel_map [ BluePixelChannel ] . offset ] ;\n if ( ( AbsolutePixelValue ( red - green ) < MagickEpsilon ) && ( AbsolutePixelValue ( green - blue ) < MagickEpsilon ) ) return ( MagickTrue ) ;\n return ( MagickFalse ) ;\n }"}
{"idx": 14519, "target": 0, "func": "int net_init_slirp ( const NetClientOptions * opts , const char * name , NetClientState * peer , Error * * errp ) {\n struct slirp_config_str * config ;\n char * vnet ;\n int ret ;\n const NetdevUserOptions * user ;\n const char * * dnssearch ;\n assert ( opts -> kind == NET_CLIENT_OPTIONS_KIND_USER ) ;\n user = opts -> user ;\n vnet = user -> has_net ? g_strdup ( user -> net ) : user -> has_ip ? g_strdup_printf ( \"%s/24\" , user -> ip ) : NULL ;\n dnssearch = slirp_dnssearch ( user -> dnssearch ) ;\n net_init_slirp_configs ( user -> hostfwd , SLIRP_CFG_HOSTFWD ) ;\n net_init_slirp_configs ( user -> guestfwd , 0 ) ;\n ret = net_slirp_init ( peer , \"user\" , name , user -> q_restrict , vnet , user -> host , user -> hostname , user -> tftp , user -> bootfile , user -> dhcpstart , user -> dns , user -> smb , user -> smbserver , dnssearch ) ;\n while ( slirp_configs ) {\n config = slirp_configs ;\n slirp_configs = config -> next ;\n g_free ( config ) ;\n }\n g_free ( vnet ) ;\n g_free ( dnssearch ) ;\n return ret ;\n }"}
{"idx": 14520, "target": 0, "func": "static void decode_gains ( const uint8_t vq_gain , const enum Mode mode , float * fixed_gain_factor , float * pitch_gain ) {\n const int16_t * gains = ( mode <= MODE_8k85 ? qua_gain_6b [ vq_gain ] : qua_gain_7b [ vq_gain ] ) ;\n * pitch_gain = gains [ 0 ] * ( 1.0f / ( 1 << 14 ) ) ;\n * fixed_gain_factor = gains [ 1 ] * ( 1.0f / ( 1 << 11 ) ) ;\n }"}
{"idx": 14521, "target": 0, "func": "static void purple_init ( account_t * acc ) {\n char * prpl_id = purple_get_account_prpl_id ( acc ) ;\n PurplePlugin * prpl = purple_plugins_find_with_id ( prpl_id ) ;\n PurplePluginProtocolInfo * pi = prpl -> info -> extra_info ;\n PurpleAccount * pa ;\n GList * i , * st ;\n set_t * s ;\n char help_title [ 64 ] ;\n GString * help ;\n static gboolean dir_fixed = FALSE ;\n if ( ! dir_fixed ) {\n PurpleCertificatePool * pool ;\n irc_t * irc = acc -> bee -> ui_data ;\n char * dir ;\n dir = g_strdup_printf ( \"%s/purple/%s\" , global . conf -> configdir , irc -> user -> nick ) ;\n purple_util_set_user_dir ( dir ) ;\n g_free ( dir ) ;\n purple_blist_load ( ) ;\n purple_prefs_load ( ) ;\n if ( proxytype == PROXY_SOCKS4A ) {\n purple_prefs_set_bool ( \"/purple/proxy/socks4_remotedns\" , TRUE ) ;\n }\n pool = purple_certificate_find_pool ( \"x509\" , \"tls_peers\" ) ;\n dir = purple_certificate_pool_mkpath ( pool , NULL ) ;\n purple_build_dir ( dir , 0700 ) ;\n g_free ( dir ) ;\n dir_fixed = TRUE ;\n }\n help = g_string_new ( \"\" ) ;\n g_string_printf ( help , \"BitlBee libpurple module %s (%s).\\n\\nSupported settings:\" , ( char * ) acc -> prpl -> name , prpl -> info -> name ) ;\n if ( pi -> user_splits ) {\n GList * l ;\n g_string_append_printf ( help , \"\\n* username: Username\" ) ;\n for ( l = pi -> user_splits ;\n l ;\n l = l -> next ) {\n g_string_append_printf ( help , \"%c%s\" , purple_account_user_split_get_separator ( l -> data ) , purple_account_user_split_get_text ( l -> data ) ) ;\n }\n }\n for ( i = pi -> protocol_options ;\n i ;\n i = i -> next ) {\n PurpleAccountOption * o = i -> data ;\n const char * name ;\n char * def = NULL ;\n set_eval eval = NULL ;\n void * eval_data = NULL ;\n GList * io = NULL ;\n GSList * opts = NULL ;\n name = purple_account_option_get_setting ( o ) ;\n switch ( purple_account_option_get_type ( o ) ) {\n case PURPLE_PREF_STRING : def = g_strdup ( purple_account_option_get_default_string ( o ) ) ;\n g_string_append_printf ( help , \"\\n* %s (%s), %s, default: %s\" , name , purple_account_option_get_text ( o ) , \"string\" , def ) ;\n break ;\n case PURPLE_PREF_INT : def = g_strdup_printf ( \"%d\" , purple_account_option_get_default_int ( o ) ) ;\n eval = set_eval_int ;\n g_string_append_printf ( help , \"\\n* %s (%s), %s, default: %s\" , name , purple_account_option_get_text ( o ) , \"integer\" , def ) ;\n break ;\n case PURPLE_PREF_BOOLEAN : if ( purple_account_option_get_default_bool ( o ) ) {\n def = g_strdup ( \"true\" ) ;\n }\n else {\n def = g_strdup ( \"false\" ) ;\n }\n eval = set_eval_bool ;\n g_string_append_printf ( help , \"\\n* %s (%s), %s, default: %s\" , name , purple_account_option_get_text ( o ) , \"boolean\" , def ) ;\n break ;\n case PURPLE_PREF_STRING_LIST : def = g_strdup ( purple_account_option_get_default_list_value ( o ) ) ;\n g_string_append_printf ( help , \"\\n* %s (%s), %s, default: %s\" , name , purple_account_option_get_text ( o ) , \"list\" , def ) ;\n g_string_append ( help , \"\\n Possible values: \" ) ;\n for ( io = purple_account_option_get_list ( o ) ;\n io ;\n io = io -> next ) {\n PurpleKeyValuePair * kv = io -> data ;\n opts = g_slist_append ( opts , kv -> value ) ;\n if ( strcmp ( kv -> value , kv -> key ) != 0 ) {\n g_string_append_printf ( help , \"%s (%s), \" , ( char * ) kv -> value , kv -> key ) ;\n }\n else {\n g_string_append_printf ( help , \"%s, \" , ( char * ) kv -> value ) ;\n }\n }\n g_string_truncate ( help , help -> len - 2 ) ;\n eval = set_eval_list ;\n eval_data = opts ;\n break ;\n default : g_string_append_printf ( help , \"\\n* [%s] UNSUPPORTED (type %d)\" , name , purple_account_option_get_type ( o ) ) ;\n name = NULL ;\n }\n if ( name != NULL ) {\n s = set_add ( & acc -> set , name , def , eval , acc ) ;\n s -> flags |= ACC_SET_OFFLINE_ONLY ;\n s -> eval_data = eval_data ;\n g_free ( def ) ;\n }\n }\n g_snprintf ( help_title , sizeof ( help_title ) , \"purple %s\" , ( char * ) acc -> prpl -> name ) ;\n help_add_mem ( & global . help , help_title , help -> str ) ;\n g_string_free ( help , TRUE ) ;\n s = set_add ( & acc -> set , \"display_name\" , NULL , set_eval_display_name , acc ) ;\n s -> flags |= ACC_SET_ONLINE_ONLY ;\n if ( pi -> options & OPT_PROTO_MAIL_CHECK ) {\n s = set_add ( & acc -> set , \"mail_notifications\" , \"false\" , set_eval_bool , acc ) ;\n s -> flags |= ACC_SET_OFFLINE_ONLY ;\n s = set_add ( & acc -> set , \"mail_notifications_handle\" , NULL , NULL , acc ) ;\n s -> flags |= ACC_SET_OFFLINE_ONLY | SET_NULL_OK ;\n }\n if ( strcmp ( prpl -> info -> name , \"Gadu-Gadu\" ) == 0 ) {\n s = set_add ( & acc -> set , \"gg_sync_contacts\" , \"true\" , set_eval_bool , acc ) ;\n }\n pa = purple_account_new ( acc -> user , prpl_id ) ;\n for ( st = purple_account_get_status_types ( pa ) ;\n st ;\n st = st -> next ) {\n PurpleStatusPrimitive prim = purple_status_type_get_primitive ( st -> data ) ;\n if ( prim == PURPLE_STATUS_AVAILABLE ) {\n if ( purple_status_type_get_attr ( st -> data , \"message\" ) ) {\n acc -> flags |= ACC_FLAG_STATUS_MESSAGE ;\n }\n }\n else if ( prim != PURPLE_STATUS_OFFLINE ) {\n if ( purple_status_type_get_attr ( st -> data , \"message\" ) ) {\n acc -> flags |= ACC_FLAG_AWAY_MESSAGE ;\n }\n }\n }\n purple_accounts_remove ( pa ) ;\n }"}
{"idx": 14522, "target": 0, "func": "static void _slurm_rpc_resv_delete ( slurm_msg_t * msg ) {\n int error_code = SLURM_SUCCESS ;\n DEF_TIMERS ;\n reservation_name_msg_t * resv_desc_ptr = ( reservation_name_msg_t * ) msg -> data ;\n slurmctld_lock_t node_write_lock = {\n NO_LOCK , READ_LOCK , WRITE_LOCK , NO_LOCK , NO_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n START_TIMER ;\n debug2 ( \"Processing RPC: REQUEST_DELETE_RESERVATION from uid=%d\" , uid ) ;\n if ( ! validate_operator ( uid ) ) {\n error_code = ESLURM_USER_ID_MISSING ;\n error ( \"Security violation, DELETE_RESERVATION RPC from uid=%d\" , uid ) ;\n }\n else if ( ! resv_desc_ptr -> name ) {\n error_code = ESLURM_INVALID_PARTITION_NAME ;\n error ( \"Invalid DELETE_RESERVATION RPC from uid=%d, name is null\" , uid ) ;\n }\n if ( error_code == SLURM_SUCCESS ) {\n lock_slurmctld ( node_write_lock ) ;\n error_code = delete_resv ( resv_desc_ptr ) ;\n unlock_slurmctld ( node_write_lock ) ;\n END_TIMER2 ( \"_slurm_rpc_resv_delete\" ) ;\n }\n if ( error_code ) {\n info ( \"_slurm_rpc_delete_reservation partition=%s: %s\" , resv_desc_ptr -> name , slurm_strerror ( error_code ) ) ;\n slurm_send_rc_msg ( msg , error_code ) ;\n }\n else {\n info ( \"_slurm_rpc_delete_reservation complete for %s %s\" , resv_desc_ptr -> name , TIME_STR ) ;\n slurm_send_rc_msg ( msg , SLURM_SUCCESS ) ;\n queue_job_scheduler ( ) ;\n }\n }"}
{"idx": 14523, "target": 0, "func": "static struct extcap_dumper extcap_dumper_open ( char * fifo , int encap ) {\n struct extcap_dumper extcap_dumper ;\n int encap_ext ;\n # ifdef ANDROIDDUMP_USE_LIBPCAP pcap_t * pcap ;\n if ( encap == EXTCAP_ENCAP_BLUETOOTH_H4_WITH_PHDR ) encap_ext = DLT_BLUETOOTH_H4_WITH_PHDR ;\n else if ( encap == EXTCAP_ENCAP_WIRESHARK_UPPER_PDU ) encap_ext = DLT_WIRESHARK_UPPER_PDU ;\n else if ( encap == EXTCAP_ENCAP_ETHERNET ) encap_ext = DLT_EN10MB ;\n else {\n errmsg_print ( \"ERROR: Unknown encapsulation\" ) ;\n exit ( EXIT_CODE_UNKNOWN_ENCAPSULATION_LIBPCAP ) ;\n }\n pcap = pcap_open_dead_with_tstamp_precision ( encap_ext , PACKET_LENGTH , PCAP_TSTAMP_PRECISION_NANO ) ;\n extcap_dumper . dumper . pcap = pcap_dump_open ( pcap , fifo ) ;\n if ( ! extcap_dumper . dumper . pcap ) {\n errmsg_print ( \"ERROR: Cannot save lipcap dump file\" ) ;\n exit ( EXIT_CODE_CANNOT_SAVE_LIBPCAP_DUMP ) ;\n }\n extcap_dumper . encap = encap ;\n pcap_dump_flush ( extcap_dumper . dumper . pcap ) ;\n # else int err = 0 ;\n wtap_init ( ) ;\n # ifdef HAVE_PLUGINS register_all_wiretap_modules ( ) ;\n # endif if ( encap == EXTCAP_ENCAP_BLUETOOTH_H4_WITH_PHDR ) encap_ext = WTAP_ENCAP_BLUETOOTH_H4_WITH_PHDR ;\n else if ( encap == EXTCAP_ENCAP_WIRESHARK_UPPER_PDU ) encap_ext = WTAP_ENCAP_WIRESHARK_UPPER_PDU ;\n else if ( encap == EXTCAP_ENCAP_ETHERNET ) encap_ext = WTAP_ENCAP_ETHERNET ;\n else {\n errmsg_print ( \"ERROR: Unknown Wiretap encapsulation\" ) ;\n exit ( EXIT_CODE_UNKNOWN_ENCAPSULATION_WIRETAP ) ;\n }\n extcap_dumper . dumper . wtap = wtap_dump_open ( fifo , WTAP_FILE_TYPE_SUBTYPE_PCAP_NSEC , encap_ext , PACKET_LENGTH , FALSE , & err ) ;\n if ( ! extcap_dumper . dumper . wtap ) {\n errmsg_print ( \"ERROR: Cannot save dump file\" ) ;\n exit ( EXIT_CODE_CANNOT_SAVE_WIRETAP_DUMP ) ;\n }\n extcap_dumper . encap = encap ;\n wtap_dump_flush ( extcap_dumper . dumper . wtap ) ;\n # endif return extcap_dumper ;\n }"}
{"idx": 14524, "target": 0, "func": "TEST_F ( ShortcutsBackendTest , DeleteShortcuts ) {\n InitBackend ( ) ;\n ShortcutsDatabase : : Shortcut shortcut1 ( \"BD85DBA2-8C29-49F9-84AE-48E1E90880DF\" , base : : ASCIIToUTF16 ( \"goog\" ) , MatchCoreForTesting ( \"http://www.google.com\" ) , base : : Time : : Now ( ) , 100 ) ;\n EXPECT_TRUE ( AddShortcut ( shortcut1 ) ) ;\n ShortcutsDatabase : : Shortcut shortcut2 ( \"BD85DBA2-8C29-49F9-84AE-48E1E90880E0\" , base : : ASCIIToUTF16 ( \"gle\" ) , MatchCoreForTesting ( \"http://www.google.com\" ) , base : : Time : : Now ( ) , 100 ) ;\n EXPECT_TRUE ( AddShortcut ( shortcut2 ) ) ;\n ShortcutsDatabase : : Shortcut shortcut3 ( \"BD85DBA2-8C29-49F9-84AE-48E1E90880E1\" , base : : ASCIIToUTF16 ( \"sp\" ) , MatchCoreForTesting ( \"http://www.sport.com\" ) , base : : Time : : Now ( ) , 10 ) ;\n EXPECT_TRUE ( AddShortcut ( shortcut3 ) ) ;\n ShortcutsDatabase : : Shortcut shortcut4 ( \"BD85DBA2-8C29-49F9-84AE-48E1E90880E2\" , base : : ASCIIToUTF16 ( \"mov\" ) , MatchCoreForTesting ( \"http://www.film.com\" ) , base : : Time : : Now ( ) , 10 ) ;\n EXPECT_TRUE ( AddShortcut ( shortcut4 ) ) ;\n ASSERT_EQ ( 4U , shortcuts_map ( ) . size ( ) ) ;\n EXPECT_EQ ( shortcut1 . id , shortcuts_map ( ) . find ( shortcut1 . text ) -> second . id ) ;\n EXPECT_EQ ( shortcut2 . id , shortcuts_map ( ) . find ( shortcut2 . text ) -> second . id ) ;\n EXPECT_EQ ( shortcut3 . id , shortcuts_map ( ) . find ( shortcut3 . text ) -> second . id ) ;\n EXPECT_EQ ( shortcut4 . id , shortcuts_map ( ) . find ( shortcut4 . text ) -> second . id ) ;\n EXPECT_TRUE ( DeleteShortcutsWithURL ( shortcut1 . match_core . destination_url ) ) ;\n ASSERT_EQ ( 2U , shortcuts_map ( ) . size ( ) ) ;\n EXPECT_EQ ( 0U , shortcuts_map ( ) . count ( shortcut1 . text ) ) ;\n EXPECT_EQ ( 0U , shortcuts_map ( ) . count ( shortcut2 . text ) ) ;\n const ShortcutsBackend : : ShortcutMap : : const_iterator shortcut3_iter ( shortcuts_map ( ) . find ( shortcut3 . text ) ) ;\n ASSERT_TRUE ( shortcut3_iter != shortcuts_map ( ) . end ( ) ) ;\n EXPECT_EQ ( shortcut3 . id , shortcut3_iter -> second . id ) ;\n const ShortcutsBackend : : ShortcutMap : : const_iterator shortcut4_iter ( shortcuts_map ( ) . find ( shortcut4 . text ) ) ;\n ASSERT_TRUE ( shortcut4_iter != shortcuts_map ( ) . end ( ) ) ;\n EXPECT_EQ ( shortcut4 . id , shortcut4_iter -> second . id ) ;\n ShortcutsDatabase : : ShortcutIDs deleted_ids ;\n deleted_ids . push_back ( shortcut3 . id ) ;\n deleted_ids . push_back ( shortcut4 . id ) ;\n EXPECT_TRUE ( DeleteShortcutsWithIDs ( deleted_ids ) ) ;\n ASSERT_EQ ( 0U , shortcuts_map ( ) . size ( ) ) ;\n }"}
{"idx": 14525, "target": 0, "func": "static int jbig2_decode_mmr_line ( Jbig2MmrCtx * mmr , const byte * ref , byte * dst ) {\n uint32_t a0 = MINUS1 ;\n uint32_t a1 , a2 , b1 , b2 ;\n int c = 0 ;\n while ( 1 ) {\n uint32_t word = mmr -> word ;\n if ( a0 != MINUS1 && a0 >= mmr -> width ) break ;\n if ( ( word >> ( 32 - 3 ) ) == 1 ) {\n int white_run , black_run ;\n jbig2_decode_mmr_consume ( mmr , 3 ) ;\n if ( a0 == MINUS1 ) a0 = 0 ;\n if ( c == 0 ) {\n white_run = jbig2_decode_get_run ( mmr , jbig2_mmr_white_decode , 8 ) ;\n black_run = jbig2_decode_get_run ( mmr , jbig2_mmr_black_decode , 7 ) ;\n a1 = a0 + white_run ;\n a2 = a1 + black_run ;\n if ( a1 > mmr -> width ) a1 = mmr -> width ;\n if ( a2 > mmr -> width ) a2 = mmr -> width ;\n if ( a1 == MINUS1 || a2 < a1 ) return - 1 ;\n jbig2_set_bits ( dst , a1 , a2 ) ;\n a0 = a2 ;\n }\n else {\n black_run = jbig2_decode_get_run ( mmr , jbig2_mmr_black_decode , 7 ) ;\n white_run = jbig2_decode_get_run ( mmr , jbig2_mmr_white_decode , 8 ) ;\n a1 = a0 + black_run ;\n a2 = a1 + white_run ;\n if ( a1 > mmr -> width ) a1 = mmr -> width ;\n if ( a2 > mmr -> width ) a2 = mmr -> width ;\n if ( a0 == MINUS1 || a1 < a0 ) return - 1 ;\n jbig2_set_bits ( dst , a0 , a1 ) ;\n a0 = a2 ;\n }\n }\n else if ( ( word >> ( 32 - 4 ) ) == 1 ) {\n jbig2_decode_mmr_consume ( mmr , 4 ) ;\n b1 = jbig2_find_changing_element_of_color ( ref , a0 , mmr -> width , ! c ) ;\n b2 = jbig2_find_changing_element ( ref , b1 , mmr -> width ) ;\n if ( c ) {\n if ( a0 == MINUS1 || b2 < a0 ) return - 1 ;\n jbig2_set_bits ( dst , a0 , b2 ) ;\n }\n a0 = b2 ;\n }\n else if ( ( word >> ( 32 - 1 ) ) == 1 ) {\n jbig2_decode_mmr_consume ( mmr , 1 ) ;\n b1 = jbig2_find_changing_element_of_color ( ref , a0 , mmr -> width , ! c ) ;\n if ( c ) {\n if ( a0 == MINUS1 || b1 < a0 ) return - 1 ;\n jbig2_set_bits ( dst , a0 , b1 ) ;\n }\n a0 = b1 ;\n c = ! c ;\n }\n else if ( ( word >> ( 32 - 3 ) ) == 3 ) {\n jbig2_decode_mmr_consume ( mmr , 3 ) ;\n b1 = jbig2_find_changing_element_of_color ( ref , a0 , mmr -> width , ! c ) ;\n if ( b1 + 1 > mmr -> width ) break ;\n if ( c ) {\n if ( a0 == MINUS1 || b1 + 1 < a0 ) return - 1 ;\n jbig2_set_bits ( dst , a0 , b1 + 1 ) ;\n }\n a0 = b1 + 1 ;\n c = ! c ;\n }\n else if ( ( word >> ( 32 - 6 ) ) == 3 ) {\n jbig2_decode_mmr_consume ( mmr , 6 ) ;\n b1 = jbig2_find_changing_element_of_color ( ref , a0 , mmr -> width , ! c ) ;\n if ( b1 + 2 > mmr -> width ) break ;\n if ( c ) {\n if ( a0 == MINUS1 || b1 + 2 < a0 ) return - 1 ;\n jbig2_set_bits ( dst , a0 , b1 + 2 ) ;\n }\n a0 = b1 + 2 ;\n c = ! c ;\n }\n else if ( ( word >> ( 32 - 7 ) ) == 3 ) {\n jbig2_decode_mmr_consume ( mmr , 7 ) ;\n b1 = jbig2_find_changing_element_of_color ( ref , a0 , mmr -> width , ! c ) ;\n if ( b1 + 3 > ( int ) mmr -> width ) break ;\n if ( c ) {\n if ( a0 == MINUS1 || b1 + 3 < a0 ) return - 1 ;\n jbig2_set_bits ( dst , a0 , b1 + 3 ) ;\n }\n a0 = b1 + 3 ;\n c = ! c ;\n }\n else if ( ( word >> ( 32 - 3 ) ) == 2 ) {\n jbig2_decode_mmr_consume ( mmr , 3 ) ;\n b1 = jbig2_find_changing_element_of_color ( ref , a0 , mmr -> width , ! c ) ;\n if ( b1 < 1 ) break ;\n if ( c ) {\n if ( a0 == MINUS1 || b1 - 1 < a0 ) return - 1 ;\n jbig2_set_bits ( dst , a0 , b1 - 1 ) ;\n }\n a0 = b1 - 1 ;\n c = ! c ;\n }\n else if ( ( word >> ( 32 - 6 ) ) == 2 ) {\n jbig2_decode_mmr_consume ( mmr , 6 ) ;\n b1 = jbig2_find_changing_element_of_color ( ref , a0 , mmr -> width , ! c ) ;\n if ( b1 < 2 ) break ;\n if ( c ) {\n if ( b1 - 2 < a0 || a0 < 0 ) return - 1 ;\n jbig2_set_bits ( dst , a0 , b1 - 2 ) ;\n }\n a0 = b1 - 2 ;\n c = ! c ;\n }\n else if ( ( word >> ( 32 - 7 ) ) == 2 ) {\n jbig2_decode_mmr_consume ( mmr , 7 ) ;\n b1 = jbig2_find_changing_element_of_color ( ref , a0 , mmr -> width , ! c ) ;\n if ( b1 < 3 ) break ;\n if ( c ) {\n if ( a0 == MINUS1 || b1 - 3 < a0 ) return - 1 ;\n jbig2_set_bits ( dst , a0 , b1 - 3 ) ;\n }\n a0 = b1 - 3 ;\n c = ! c ;\n }\n else break ;\n }\n return 0 ;\n }"}
{"idx": 14526, "target": 0, "func": "static void ff_init_short_region ( MPADecodeContext * s , GranuleDef * g ) {\n if ( g -> block_type == 2 ) {\n if ( s -> sample_rate_index != 8 ) g -> region_size [ 0 ] = ( 36 / 2 ) ;\n else g -> region_size [ 0 ] = ( 72 / 2 ) ;\n }\n else {\n if ( s -> sample_rate_index <= 2 ) g -> region_size [ 0 ] = ( 36 / 2 ) ;\n else if ( s -> sample_rate_index != 8 ) g -> region_size [ 0 ] = ( 54 / 2 ) ;\n else g -> region_size [ 0 ] = ( 108 / 2 ) ;\n }\n g -> region_size [ 1 ] = ( 576 / 2 ) ;\n }"}
{"idx": 14527, "target": 1, "func": "static void mb_lpf_horizontal_edge_w_sse2_16 ( unsigned char * s , int p , const unsigned char * _blimit , const unsigned char * _limit , const unsigned char * _thresh ) {\n DECLARE_ALIGNED_ARRAY ( 16 , unsigned char , flat2_op , 7 * 16 ) ;\n DECLARE_ALIGNED_ARRAY ( 16 , unsigned char , flat2_oq , 7 * 16 ) ;\n DECLARE_ALIGNED_ARRAY ( 16 , unsigned char , flat_op , 3 * 16 ) ;\n DECLARE_ALIGNED_ARRAY ( 16 , unsigned char , flat_oq , 3 * 16 ) ;\n DECLARE_ALIGNED_ARRAY ( 16 , unsigned char , ap , 8 * 16 ) ;\n DECLARE_ALIGNED_ARRAY ( 16 , unsigned char , aq , 8 * 16 ) ;\n const __m128i zero = _mm_set1_epi16 ( 0 ) ;\n const __m128i one = _mm_set1_epi8 ( 1 ) ;\n const __m128i blimit = _mm_load_si128 ( ( const __m128i * ) _blimit ) ;\n const __m128i limit = _mm_load_si128 ( ( const __m128i * ) _limit ) ;\n const __m128i thresh = _mm_load_si128 ( ( const __m128i * ) _thresh ) ;\n __m128i mask , hev , flat , flat2 ;\n __m128i p7 , p6 , p5 ;\n __m128i p4 , p3 , p2 , p1 , p0 , q0 , q1 , q2 , q3 , q4 ;\n __m128i q5 , q6 , q7 ;\n int i = 0 ;\n p4 = _mm_loadu_si128 ( ( __m128i * ) ( s - 5 * p ) ) ;\n p3 = _mm_loadu_si128 ( ( __m128i * ) ( s - 4 * p ) ) ;\n p2 = _mm_loadu_si128 ( ( __m128i * ) ( s - 3 * p ) ) ;\n p1 = _mm_loadu_si128 ( ( __m128i * ) ( s - 2 * p ) ) ;\n p0 = _mm_loadu_si128 ( ( __m128i * ) ( s - 1 * p ) ) ;\n q0 = _mm_loadu_si128 ( ( __m128i * ) ( s - 0 * p ) ) ;\n q1 = _mm_loadu_si128 ( ( __m128i * ) ( s + 1 * p ) ) ;\n q2 = _mm_loadu_si128 ( ( __m128i * ) ( s + 2 * p ) ) ;\n q3 = _mm_loadu_si128 ( ( __m128i * ) ( s + 3 * p ) ) ;\n q4 = _mm_loadu_si128 ( ( __m128i * ) ( s + 4 * p ) ) ;\n _mm_store_si128 ( ( __m128i * ) & ap [ 4 * 16 ] , p4 ) ;\n _mm_store_si128 ( ( __m128i * ) & ap [ 3 * 16 ] , p3 ) ;\n _mm_store_si128 ( ( __m128i * ) & ap [ 2 * 16 ] , p2 ) ;\n _mm_store_si128 ( ( __m128i * ) & ap [ 1 * 16 ] , p1 ) ;\n _mm_store_si128 ( ( __m128i * ) & ap [ 0 * 16 ] , p0 ) ;\n _mm_store_si128 ( ( __m128i * ) & aq [ 4 * 16 ] , q4 ) ;\n _mm_store_si128 ( ( __m128i * ) & aq [ 3 * 16 ] , q3 ) ;\n _mm_store_si128 ( ( __m128i * ) & aq [ 2 * 16 ] , q2 ) ;\n _mm_store_si128 ( ( __m128i * ) & aq [ 1 * 16 ] , q1 ) ;\n _mm_store_si128 ( ( __m128i * ) & aq [ 0 * 16 ] , q0 ) ;\n {\n const __m128i abs_p1p0 = _mm_or_si128 ( _mm_subs_epu8 ( p1 , p0 ) , _mm_subs_epu8 ( p0 , p1 ) ) ;\n const __m128i abs_q1q0 = _mm_or_si128 ( _mm_subs_epu8 ( q1 , q0 ) , _mm_subs_epu8 ( q0 , q1 ) ) ;\n const __m128i fe = _mm_set1_epi8 ( 0xfe ) ;\n const __m128i ff = _mm_cmpeq_epi8 ( abs_p1p0 , abs_p1p0 ) ;\n __m128i abs_p0q0 = _mm_or_si128 ( _mm_subs_epu8 ( p0 , q0 ) , _mm_subs_epu8 ( q0 , p0 ) ) ;\n __m128i abs_p1q1 = _mm_or_si128 ( _mm_subs_epu8 ( p1 , q1 ) , _mm_subs_epu8 ( q1 , p1 ) ) ;\n __m128i work ;\n flat = _mm_max_epu8 ( abs_p1p0 , abs_q1q0 ) ;\n hev = _mm_subs_epu8 ( flat , thresh ) ;\n hev = _mm_xor_si128 ( _mm_cmpeq_epi8 ( hev , zero ) , ff ) ;\n abs_p0q0 = _mm_adds_epu8 ( abs_p0q0 , abs_p0q0 ) ;\n abs_p1q1 = _mm_srli_epi16 ( _mm_and_si128 ( abs_p1q1 , fe ) , 1 ) ;\n mask = _mm_subs_epu8 ( _mm_adds_epu8 ( abs_p0q0 , abs_p1q1 ) , blimit ) ;\n mask = _mm_xor_si128 ( _mm_cmpeq_epi8 ( mask , zero ) , ff ) ;\n mask = _mm_max_epu8 ( flat , mask ) ;\n work = _mm_max_epu8 ( _mm_or_si128 ( _mm_subs_epu8 ( p2 , p1 ) , _mm_subs_epu8 ( p1 , p2 ) ) , _mm_or_si128 ( _mm_subs_epu8 ( p3 , p2 ) , _mm_subs_epu8 ( p2 , p3 ) ) ) ;\n mask = _mm_max_epu8 ( work , mask ) ;\n work = _mm_max_epu8 ( _mm_or_si128 ( _mm_subs_epu8 ( q2 , q1 ) , _mm_subs_epu8 ( q1 , q2 ) ) , _mm_or_si128 ( _mm_subs_epu8 ( q3 , q2 ) , _mm_subs_epu8 ( q2 , q3 ) ) ) ;\n mask = _mm_max_epu8 ( work , mask ) ;\n mask = _mm_subs_epu8 ( mask , limit ) ;\n mask = _mm_cmpeq_epi8 ( mask , zero ) ;\n }\n {\n const __m128i t4 = _mm_set1_epi8 ( 4 ) ;\n const __m128i t3 = _mm_set1_epi8 ( 3 ) ;\n const __m128i t80 = _mm_set1_epi8 ( 0x80 ) ;\n const __m128i te0 = _mm_set1_epi8 ( 0xe0 ) ;\n const __m128i t1f = _mm_set1_epi8 ( 0x1f ) ;\n const __m128i t1 = _mm_set1_epi8 ( 0x1 ) ;\n const __m128i t7f = _mm_set1_epi8 ( 0x7f ) ;\n __m128i ps1 = _mm_xor_si128 ( p1 , t80 ) ;\n __m128i ps0 = _mm_xor_si128 ( p0 , t80 ) ;\n __m128i qs0 = _mm_xor_si128 ( q0 , t80 ) ;\n __m128i qs1 = _mm_xor_si128 ( q1 , t80 ) ;\n __m128i filt ;\n __m128i work_a ;\n __m128i filter1 , filter2 ;\n filt = _mm_and_si128 ( _mm_subs_epi8 ( ps1 , qs1 ) , hev ) ;\n work_a = _mm_subs_epi8 ( qs0 , ps0 ) ;\n filt = _mm_adds_epi8 ( filt , work_a ) ;\n filt = _mm_adds_epi8 ( filt , work_a ) ;\n filt = _mm_adds_epi8 ( filt , work_a ) ;\n filt = _mm_and_si128 ( filt , mask ) ;\n filter1 = _mm_adds_epi8 ( filt , t4 ) ;\n filter2 = _mm_adds_epi8 ( filt , t3 ) ;\n work_a = _mm_cmpgt_epi8 ( zero , filter1 ) ;\n filter1 = _mm_srli_epi16 ( filter1 , 3 ) ;\n work_a = _mm_and_si128 ( work_a , te0 ) ;\n filter1 = _mm_and_si128 ( filter1 , t1f ) ;\n filter1 = _mm_or_si128 ( filter1 , work_a ) ;\n qs0 = _mm_xor_si128 ( _mm_subs_epi8 ( qs0 , filter1 ) , t80 ) ;\n work_a = _mm_cmpgt_epi8 ( zero , filter2 ) ;\n filter2 = _mm_srli_epi16 ( filter2 , 3 ) ;\n work_a = _mm_and_si128 ( work_a , te0 ) ;\n filter2 = _mm_and_si128 ( filter2 , t1f ) ;\n filter2 = _mm_or_si128 ( filter2 , work_a ) ;\n ps0 = _mm_xor_si128 ( _mm_adds_epi8 ( ps0 , filter2 ) , t80 ) ;\n filt = _mm_adds_epi8 ( filter1 , t1 ) ;\n work_a = _mm_cmpgt_epi8 ( zero , filt ) ;\n filt = _mm_srli_epi16 ( filt , 1 ) ;\n work_a = _mm_and_si128 ( work_a , t80 ) ;\n filt = _mm_and_si128 ( filt , t7f ) ;\n filt = _mm_or_si128 ( filt , work_a ) ;\n filt = _mm_andnot_si128 ( hev , filt ) ;\n ps1 = _mm_xor_si128 ( _mm_adds_epi8 ( ps1 , filt ) , t80 ) ;\n qs1 = _mm_xor_si128 ( _mm_subs_epi8 ( qs1 , filt ) , t80 ) ;\n {\n __m128i work ;\n work = _mm_max_epu8 ( _mm_or_si128 ( _mm_subs_epu8 ( p2 , p0 ) , _mm_subs_epu8 ( p0 , p2 ) ) , _mm_or_si128 ( _mm_subs_epu8 ( q2 , q0 ) , _mm_subs_epu8 ( q0 , q2 ) ) ) ;\n flat = _mm_max_epu8 ( work , flat ) ;\n work = _mm_max_epu8 ( _mm_or_si128 ( _mm_subs_epu8 ( p3 , p0 ) , _mm_subs_epu8 ( p0 , p3 ) ) , _mm_or_si128 ( _mm_subs_epu8 ( q3 , q0 ) , _mm_subs_epu8 ( q0 , q3 ) ) ) ;\n flat = _mm_max_epu8 ( work , flat ) ;\n work = _mm_max_epu8 ( _mm_or_si128 ( _mm_subs_epu8 ( p4 , p0 ) , _mm_subs_epu8 ( p0 , p4 ) ) , _mm_or_si128 ( _mm_subs_epu8 ( q4 , q0 ) , _mm_subs_epu8 ( q0 , q4 ) ) ) ;\n flat = _mm_subs_epu8 ( flat , one ) ;\n flat = _mm_cmpeq_epi8 ( flat , zero ) ;\n flat = _mm_and_si128 ( flat , mask ) ;\n p5 = _mm_loadu_si128 ( ( __m128i * ) ( s - 6 * p ) ) ;\n q5 = _mm_loadu_si128 ( ( __m128i * ) ( s + 5 * p ) ) ;\n flat2 = _mm_max_epu8 ( _mm_or_si128 ( _mm_subs_epu8 ( p5 , p0 ) , _mm_subs_epu8 ( p0 , p5 ) ) , _mm_or_si128 ( _mm_subs_epu8 ( q5 , q0 ) , _mm_subs_epu8 ( q0 , q5 ) ) ) ;\n _mm_store_si128 ( ( __m128i * ) & ap [ 5 * 16 ] , p5 ) ;\n _mm_store_si128 ( ( __m128i * ) & aq [ 5 * 16 ] , q5 ) ;\n flat2 = _mm_max_epu8 ( work , flat2 ) ;\n p6 = _mm_loadu_si128 ( ( __m128i * ) ( s - 7 * p ) ) ;\n q6 = _mm_loadu_si128 ( ( __m128i * ) ( s + 6 * p ) ) ;\n work = _mm_max_epu8 ( _mm_or_si128 ( _mm_subs_epu8 ( p6 , p0 ) , _mm_subs_epu8 ( p0 , p6 ) ) , _mm_or_si128 ( _mm_subs_epu8 ( q6 , q0 ) , _mm_subs_epu8 ( q0 , q6 ) ) ) ;\n _mm_store_si128 ( ( __m128i * ) & ap [ 6 * 16 ] , p6 ) ;\n _mm_store_si128 ( ( __m128i * ) & aq [ 6 * 16 ] , q6 ) ;\n flat2 = _mm_max_epu8 ( work , flat2 ) ;\n p7 = _mm_loadu_si128 ( ( __m128i * ) ( s - 8 * p ) ) ;\n q7 = _mm_loadu_si128 ( ( __m128i * ) ( s + 7 * p ) ) ;\n work = _mm_max_epu8 ( _mm_or_si128 ( _mm_subs_epu8 ( p7 , p0 ) , _mm_subs_epu8 ( p0 , p7 ) ) , _mm_or_si128 ( _mm_subs_epu8 ( q7 , q0 ) , _mm_subs_epu8 ( q0 , q7 ) ) ) ;\n _mm_store_si128 ( ( __m128i * ) & ap [ 7 * 16 ] , p7 ) ;\n _mm_store_si128 ( ( __m128i * ) & aq [ 7 * 16 ] , q7 ) ;\n flat2 = _mm_max_epu8 ( work , flat2 ) ;\n flat2 = _mm_subs_epu8 ( flat2 , one ) ;\n flat2 = _mm_cmpeq_epi8 ( flat2 , zero ) ;\n flat2 = _mm_and_si128 ( flat2 , flat ) ;\n }\n {\n const __m128i eight = _mm_set1_epi16 ( 8 ) ;\n const __m128i four = _mm_set1_epi16 ( 4 ) ;\n __m128i temp_flat2 = flat2 ;\n unsigned char * src = s ;\n int i = 0 ;\n do {\n __m128i workp_shft ;\n __m128i a , b , c ;\n unsigned int off = i * 8 ;\n p7 = _mm_unpacklo_epi8 ( _mm_loadl_epi64 ( ( __m128i * ) ( & ap [ 7 * 16 ] + off ) ) , zero ) ;\n p6 = _mm_unpacklo_epi8 ( _mm_loadl_epi64 ( ( __m128i * ) ( & ap [ 6 * 16 ] + off ) ) , zero ) ;\n p5 = _mm_unpacklo_epi8 ( _mm_loadl_epi64 ( ( __m128i * ) ( & ap [ 5 * 16 ] + off ) ) , zero ) ;\n p4 = _mm_unpacklo_epi8 ( _mm_loadl_epi64 ( ( __m128i * ) ( & ap [ 4 * 16 ] + off ) ) , zero ) ;\n p3 = _mm_unpacklo_epi8 ( _mm_loadl_epi64 ( ( __m128i * ) ( & ap [ 3 * 16 ] + off ) ) , zero ) ;\n p2 = _mm_unpacklo_epi8 ( _mm_loadl_epi64 ( ( __m128i * ) ( & ap [ 2 * 16 ] + off ) ) , zero ) ;\n p1 = _mm_unpacklo_epi8 ( _mm_loadl_epi64 ( ( __m128i * ) ( & ap [ 1 * 16 ] + off ) ) , zero ) ;\n p0 = _mm_unpacklo_epi8 ( _mm_loadl_epi64 ( ( __m128i * ) ( & ap [ 0 * 16 ] + off ) ) , zero ) ;\n q0 = _mm_unpacklo_epi8 ( _mm_loadl_epi64 ( ( __m128i * ) ( & aq [ 0 * 16 ] + off ) ) , zero ) ;\n q1 = _mm_unpacklo_epi8 ( _mm_loadl_epi64 ( ( __m128i * ) ( & aq [ 1 * 16 ] + off ) ) , zero ) ;\n q2 = _mm_unpacklo_epi8 ( _mm_loadl_epi64 ( ( __m128i * ) ( & aq [ 2 * 16 ] + off ) ) , zero ) ;\n q3 = _mm_unpacklo_epi8 ( _mm_loadl_epi64 ( ( __m128i * ) ( & aq [ 3 * 16 ] + off ) ) , zero ) ;\n q4 = _mm_unpacklo_epi8 ( _mm_loadl_epi64 ( ( __m128i * ) ( & aq [ 4 * 16 ] + off ) ) , zero ) ;\n q5 = _mm_unpacklo_epi8 ( _mm_loadl_epi64 ( ( __m128i * ) ( & aq [ 5 * 16 ] + off ) ) , zero ) ;\n q6 = _mm_unpacklo_epi8 ( _mm_loadl_epi64 ( ( __m128i * ) ( & aq [ 6 * 16 ] + off ) ) , zero ) ;\n q7 = _mm_unpacklo_epi8 ( _mm_loadl_epi64 ( ( __m128i * ) ( & aq [ 7 * 16 ] + off ) ) , zero ) ;\n c = _mm_sub_epi16 ( _mm_slli_epi16 ( p7 , 3 ) , p7 ) ;\n c = _mm_add_epi16 ( _mm_slli_epi16 ( p6 , 1 ) , _mm_add_epi16 ( p4 , c ) ) ;\n b = _mm_add_epi16 ( _mm_add_epi16 ( p3 , four ) , _mm_add_epi16 ( p3 , p2 ) ) ;\n a = _mm_add_epi16 ( p3 , _mm_add_epi16 ( p2 , p1 ) ) ;\n a = _mm_add_epi16 ( _mm_add_epi16 ( p0 , q0 ) , a ) ;\n _mm_storel_epi64 ( ( __m128i * ) & flat_op [ 2 * 16 + i * 8 ] , _mm_packus_epi16 ( _mm_srli_epi16 ( _mm_add_epi16 ( a , b ) , 3 ) , b ) ) ;\n c = _mm_add_epi16 ( _mm_add_epi16 ( p5 , eight ) , c ) ;\n workp_shft = _mm_srli_epi16 ( _mm_add_epi16 ( a , c ) , 4 ) ;\n _mm_storel_epi64 ( ( __m128i * ) & flat2_op [ 6 * 16 + i * 8 ] , _mm_packus_epi16 ( workp_shft , workp_shft ) ) ;\n a = _mm_add_epi16 ( q1 , a ) ;\n b = _mm_add_epi16 ( _mm_sub_epi16 ( b , _mm_add_epi16 ( p3 , p2 ) ) , p1 ) ;\n _mm_storel_epi64 ( ( __m128i * ) & flat_op [ 1 * 16 + i * 8 ] , _mm_packus_epi16 ( _mm_srli_epi16 ( _mm_add_epi16 ( a , b ) , 3 ) , b ) ) ;\n c = _mm_add_epi16 ( _mm_sub_epi16 ( c , _mm_add_epi16 ( p7 , p6 ) ) , p5 ) ;\n workp_shft = _mm_srli_epi16 ( _mm_add_epi16 ( a , c ) , 4 ) ;\n _mm_storel_epi64 ( ( __m128i * ) & flat2_op [ 5 * 16 + i * 8 ] , _mm_packus_epi16 ( workp_shft , workp_shft ) ) ;\n a = _mm_add_epi16 ( q2 , a ) ;\n b = _mm_add_epi16 ( _mm_sub_epi16 ( b , _mm_add_epi16 ( p3 , p1 ) ) , p0 ) ;\n _mm_storel_epi64 ( ( __m128i * ) & flat_op [ i * 8 ] , _mm_packus_epi16 ( _mm_srli_epi16 ( _mm_add_epi16 ( a , b ) , 3 ) , b ) ) ;\n c = _mm_add_epi16 ( _mm_sub_epi16 ( c , _mm_add_epi16 ( p7 , p5 ) ) , p4 ) ;\n workp_shft = _mm_srli_epi16 ( _mm_add_epi16 ( a , c ) , 4 ) ;\n _mm_storel_epi64 ( ( __m128i * ) & flat2_op [ 4 * 16 + i * 8 ] , _mm_packus_epi16 ( workp_shft , workp_shft ) ) ;\n a = _mm_add_epi16 ( q3 , a ) ;\n b = _mm_add_epi16 ( _mm_sub_epi16 ( b , _mm_add_epi16 ( p3 , p0 ) ) , q0 ) ;\n _mm_storel_epi64 ( ( __m128i * ) & flat_oq [ i * 8 ] , _mm_packus_epi16 ( _mm_srli_epi16 ( _mm_add_epi16 ( a , b ) , 3 ) , b ) ) ;\n c = _mm_add_epi16 ( _mm_sub_epi16 ( c , _mm_add_epi16 ( p7 , p4 ) ) , p3 ) ;\n workp_shft = _mm_srli_epi16 ( _mm_add_epi16 ( a , c ) , 4 ) ;\n _mm_storel_epi64 ( ( __m128i * ) & flat2_op [ 3 * 16 + i * 8 ] , _mm_packus_epi16 ( workp_shft , workp_shft ) ) ;\n b = _mm_add_epi16 ( q3 , b ) ;\n b = _mm_add_epi16 ( _mm_sub_epi16 ( b , _mm_add_epi16 ( p2 , q0 ) ) , q1 ) ;\n _mm_storel_epi64 ( ( __m128i * ) & flat_oq [ 16 + i * 8 ] , _mm_packus_epi16 ( _mm_srli_epi16 ( _mm_add_epi16 ( a , b ) , 3 ) , b ) ) ;\n c = _mm_add_epi16 ( q4 , c ) ;\n c = _mm_add_epi16 ( _mm_sub_epi16 ( c , _mm_add_epi16 ( p7 , p3 ) ) , p2 ) ;\n workp_shft = _mm_srli_epi16 ( _mm_add_epi16 ( a , c ) , 4 ) ;\n _mm_storel_epi64 ( ( __m128i * ) & flat2_op [ 2 * 16 + i * 8 ] , _mm_packus_epi16 ( workp_shft , workp_shft ) ) ;\n b = _mm_add_epi16 ( q3 , b ) ;\n b = _mm_add_epi16 ( _mm_sub_epi16 ( b , _mm_add_epi16 ( p1 , q1 ) ) , q2 ) ;\n _mm_storel_epi64 ( ( __m128i * ) & flat_oq [ 2 * 16 + i * 8 ] , _mm_packus_epi16 ( _mm_srli_epi16 ( _mm_add_epi16 ( a , b ) , 3 ) , b ) ) ;\n a = _mm_add_epi16 ( q5 , a ) ;\n c = _mm_add_epi16 ( _mm_sub_epi16 ( c , _mm_add_epi16 ( p7 , p2 ) ) , p1 ) ;\n workp_shft = _mm_srli_epi16 ( _mm_add_epi16 ( a , c ) , 4 ) ;\n _mm_storel_epi64 ( ( __m128i * ) & flat2_op [ 16 + i * 8 ] , _mm_packus_epi16 ( workp_shft , workp_shft ) ) ;\n a = _mm_add_epi16 ( q6 , a ) ;\n c = _mm_add_epi16 ( _mm_sub_epi16 ( c , _mm_add_epi16 ( p7 , p1 ) ) , p0 ) ;\n workp_shft = _mm_srli_epi16 ( _mm_add_epi16 ( a , c ) , 4 ) ;\n _mm_storel_epi64 ( ( __m128i * ) & flat2_op [ i * 8 ] , _mm_packus_epi16 ( workp_shft , workp_shft ) ) ;\n a = _mm_add_epi16 ( q7 , a ) ;\n c = _mm_add_epi16 ( _mm_sub_epi16 ( c , _mm_add_epi16 ( p7 , p0 ) ) , q0 ) ;\n workp_shft = _mm_srli_epi16 ( _mm_add_epi16 ( a , c ) , 4 ) ;\n _mm_storel_epi64 ( ( __m128i * ) & flat2_oq [ i * 8 ] , _mm_packus_epi16 ( workp_shft , workp_shft ) ) ;\n a = _mm_add_epi16 ( q7 , a ) ;\n c = _mm_add_epi16 ( _mm_sub_epi16 ( c , _mm_add_epi16 ( p6 , q0 ) ) , q1 ) ;\n workp_shft = _mm_srli_epi16 ( _mm_add_epi16 ( a , c ) , 4 ) ;\n _mm_storel_epi64 ( ( __m128i * ) & flat2_oq [ 16 + i * 8 ] , _mm_packus_epi16 ( workp_shft , workp_shft ) ) ;\n a = _mm_add_epi16 ( q7 , a ) ;\n c = _mm_add_epi16 ( _mm_sub_epi16 ( c , _mm_add_epi16 ( p5 , q1 ) ) , q2 ) ;\n workp_shft = _mm_srli_epi16 ( _mm_add_epi16 ( a , c ) , 4 ) ;\n _mm_storel_epi64 ( ( __m128i * ) & flat2_oq [ 2 * 16 + i * 8 ] , _mm_packus_epi16 ( workp_shft , workp_shft ) ) ;\n a = _mm_add_epi16 ( q7 , a ) ;\n c = _mm_add_epi16 ( _mm_sub_epi16 ( c , _mm_add_epi16 ( p4 , q2 ) ) , q3 ) ;\n workp_shft = _mm_srli_epi16 ( _mm_add_epi16 ( a , c ) , 4 ) ;\n _mm_storel_epi64 ( ( __m128i * ) & flat2_oq [ 3 * 16 + i * 8 ] , _mm_packus_epi16 ( workp_shft , workp_shft ) ) ;\n a = _mm_add_epi16 ( q7 , a ) ;\n c = _mm_add_epi16 ( _mm_sub_epi16 ( c , _mm_add_epi16 ( p3 , q3 ) ) , q4 ) ;\n workp_shft = _mm_srli_epi16 ( _mm_add_epi16 ( a , c ) , 4 ) ;\n _mm_storel_epi64 ( ( __m128i * ) & flat2_oq [ 4 * 16 + i * 8 ] , _mm_packus_epi16 ( workp_shft , workp_shft ) ) ;\n a = _mm_add_epi16 ( q7 , a ) ;\n c = _mm_add_epi16 ( _mm_sub_epi16 ( c , _mm_add_epi16 ( p2 , q4 ) ) , q5 ) ;\n workp_shft = _mm_srli_epi16 ( _mm_add_epi16 ( a , c ) , 4 ) ;\n _mm_storel_epi64 ( ( __m128i * ) & flat2_oq [ 5 * 16 + i * 8 ] , _mm_packus_epi16 ( workp_shft , workp_shft ) ) ;\n a = _mm_add_epi16 ( q7 , a ) ;\n c = _mm_add_epi16 ( _mm_sub_epi16 ( c , _mm_add_epi16 ( p1 , q5 ) ) , q6 ) ;\n workp_shft = _mm_srli_epi16 ( _mm_add_epi16 ( a , c ) , 4 ) ;\n _mm_storel_epi64 ( ( __m128i * ) & flat2_oq [ 6 * 16 + i * 8 ] , _mm_packus_epi16 ( workp_shft , workp_shft ) ) ;\n temp_flat2 = _mm_srli_si128 ( temp_flat2 , 8 ) ;\n src += 8 ;\n }\n while ( ++ i < 2 ) ;\n }\n work_a = _mm_load_si128 ( ( __m128i * ) & ap [ 2 * 16 ] ) ;\n p2 = _mm_load_si128 ( ( __m128i * ) & flat_op [ 2 * 16 ] ) ;\n work_a = _mm_andnot_si128 ( flat , work_a ) ;\n p2 = _mm_and_si128 ( flat , p2 ) ;\n p2 = _mm_or_si128 ( work_a , p2 ) ;\n _mm_store_si128 ( ( __m128i * ) & flat_op [ 2 * 16 ] , p2 ) ;\n p1 = _mm_load_si128 ( ( __m128i * ) & flat_op [ 1 * 16 ] ) ;\n work_a = _mm_andnot_si128 ( flat , ps1 ) ;\n p1 = _mm_and_si128 ( flat , p1 ) ;\n p1 = _mm_or_si128 ( work_a , p1 ) ;\n _mm_store_si128 ( ( __m128i * ) & flat_op [ 1 * 16 ] , p1 ) ;\n p0 = _mm_load_si128 ( ( __m128i * ) & flat_op [ 0 ] ) ;\n work_a = _mm_andnot_si128 ( flat , ps0 ) ;\n p0 = _mm_and_si128 ( flat , p0 ) ;\n p0 = _mm_or_si128 ( work_a , p0 ) ;\n _mm_store_si128 ( ( __m128i * ) & flat_op [ 0 ] , p0 ) ;\n q0 = _mm_load_si128 ( ( __m128i * ) & flat_oq [ 0 ] ) ;\n work_a = _mm_andnot_si128 ( flat , qs0 ) ;\n q0 = _mm_and_si128 ( flat , q0 ) ;\n q0 = _mm_or_si128 ( work_a , q0 ) ;\n _mm_store_si128 ( ( __m128i * ) & flat_oq [ 0 ] , q0 ) ;\n q1 = _mm_load_si128 ( ( __m128i * ) & flat_oq [ 1 * 16 ] ) ;\n work_a = _mm_andnot_si128 ( flat , qs1 ) ;\n q1 = _mm_and_si128 ( flat , q1 ) ;\n q1 = _mm_or_si128 ( work_a , q1 ) ;\n _mm_store_si128 ( ( __m128i * ) & flat_oq [ 1 * 16 ] , q1 ) ;\n work_a = _mm_load_si128 ( ( __m128i * ) & aq [ 2 * 16 ] ) ;\n q2 = _mm_load_si128 ( ( __m128i * ) & flat_oq [ 2 * 16 ] ) ;\n work_a = _mm_andnot_si128 ( flat , work_a ) ;\n q2 = _mm_and_si128 ( flat , q2 ) ;\n q2 = _mm_or_si128 ( work_a , q2 ) ;\n _mm_store_si128 ( ( __m128i * ) & flat_oq [ 2 * 16 ] , q2 ) ;\n {\n unsigned char * dst = ( s - 7 * p ) ;\n for ( i = 6 ;\n i > 2 ;\n i -- ) {\n __m128i flat2_output ;\n work_a = _mm_load_si128 ( ( __m128i * ) & ap [ i * 16 ] ) ;\n flat2_output = _mm_load_si128 ( ( __m128i * ) & flat2_op [ i * 16 ] ) ;\n work_a = _mm_andnot_si128 ( flat2 , work_a ) ;\n flat2_output = _mm_and_si128 ( flat2 , flat2_output ) ;\n work_a = _mm_or_si128 ( work_a , flat2_output ) ;\n _mm_storeu_si128 ( ( __m128i * ) dst , work_a ) ;\n dst += p ;\n }\n }\n work_a = _mm_load_si128 ( ( __m128i * ) & flat_op [ 2 * 16 ] ) ;\n p2 = _mm_load_si128 ( ( __m128i * ) & flat2_op [ 2 * 16 ] ) ;\n work_a = _mm_andnot_si128 ( flat2 , work_a ) ;\n p2 = _mm_and_si128 ( flat2 , p2 ) ;\n p2 = _mm_or_si128 ( work_a , p2 ) ;\n _mm_storeu_si128 ( ( __m128i * ) ( s - 3 * p ) , p2 ) ;\n work_a = _mm_load_si128 ( ( __m128i * ) & flat_op [ 1 * 16 ] ) ;\n p1 = _mm_load_si128 ( ( __m128i * ) & flat2_op [ 1 * 16 ] ) ;\n work_a = _mm_andnot_si128 ( flat2 , work_a ) ;\n p1 = _mm_and_si128 ( flat2 , p1 ) ;\n p1 = _mm_or_si128 ( work_a , p1 ) ;\n _mm_storeu_si128 ( ( __m128i * ) ( s - 2 * p ) , p1 ) ;\n work_a = _mm_load_si128 ( ( __m128i * ) & flat_op [ 0 ] ) ;\n p0 = _mm_load_si128 ( ( __m128i * ) & flat2_op [ 0 ] ) ;\n work_a = _mm_andnot_si128 ( flat2 , work_a ) ;\n p0 = _mm_and_si128 ( flat2 , p0 ) ;\n p0 = _mm_or_si128 ( work_a , p0 ) ;\n _mm_storeu_si128 ( ( __m128i * ) ( s - 1 * p ) , p0 ) ;\n work_a = _mm_load_si128 ( ( __m128i * ) & flat_oq [ 0 ] ) ;\n q0 = _mm_load_si128 ( ( __m128i * ) & flat2_oq [ 0 ] ) ;\n work_a = _mm_andnot_si128 ( flat2 , work_a ) ;\n q0 = _mm_and_si128 ( flat2 , q0 ) ;\n q0 = _mm_or_si128 ( work_a , q0 ) ;\n _mm_storeu_si128 ( ( __m128i * ) ( s - 0 * p ) , q0 ) ;\n work_a = _mm_load_si128 ( ( __m128i * ) & flat_oq [ 1 * 16 ] ) ;\n q1 = _mm_load_si128 ( ( __m128i * ) & flat2_oq [ 16 ] ) ;\n work_a = _mm_andnot_si128 ( flat2 , work_a ) ;\n q1 = _mm_and_si128 ( flat2 , q1 ) ;\n q1 = _mm_or_si128 ( work_a , q1 ) ;\n _mm_storeu_si128 ( ( __m128i * ) ( s + 1 * p ) , q1 ) ;\n work_a = _mm_load_si128 ( ( __m128i * ) & flat_oq [ 2 * 16 ] ) ;\n q2 = _mm_load_si128 ( ( __m128i * ) & flat2_oq [ 2 * 16 ] ) ;\n work_a = _mm_andnot_si128 ( flat2 , work_a ) ;\n q2 = _mm_and_si128 ( flat2 , q2 ) ;\n q2 = _mm_or_si128 ( work_a , q2 ) ;\n _mm_storeu_si128 ( ( __m128i * ) ( s + 2 * p ) , q2 ) ;\n {\n unsigned char * dst = ( s + 3 * p ) ;\n for ( i = 3 ;\n i < 7 ;\n i ++ ) {\n __m128i flat2_output ;\n work_a = _mm_load_si128 ( ( __m128i * ) & aq [ i * 16 ] ) ;\n flat2_output = _mm_load_si128 ( ( __m128i * ) & flat2_oq [ i * 16 ] ) ;\n work_a = _mm_andnot_si128 ( flat2 , work_a ) ;\n flat2_output = _mm_and_si128 ( flat2 , flat2_output ) ;\n work_a = _mm_or_si128 ( work_a , flat2_output ) ;\n _mm_storeu_si128 ( ( __m128i * ) dst , work_a ) ;\n dst += p ;\n }\n }\n }\n }"}
{"idx": 14528, "target": 0, "func": "static void make_key_128 ( u_char * string , u_char * key ) {\n MD5_CTX ctx ;\n u_char buf [ 64 ] ;\n u_char digest [ MD5_DIGEST_LENGTH ] ;\n int i , j = 0 ;\n for ( i = 0 ;\n i < 64 ;\n i ++ ) {\n if ( string [ j ] == 0 ) j = 0 ;\n buf [ i ] = string [ j ++ ] ;\n }\n MD5_Init ( & ctx ) ;\n MD5_Update ( & ctx , buf , sizeof buf ) ;\n MD5_Final ( digest , & ctx ) ;\n memset ( key , 0 , MAX_WKEY_LEN ) ;\n memcpy ( key , digest , 13 ) ;\n }"}
{"idx": 14529, "target": 0, "func": "static bool is_valid_cgroup ( const char * name ) {\n const char * p ;\n for ( p = name ;\n * p ;\n p ++ ) {\n if ( * p <= 32 || * p >= 127 || * p == '/' ) return false ;\n }\n return strcmp ( name , \".\" ) != 0 && strcmp ( name , \"..\" ) != 0 ;\n }"}
{"idx": 14530, "target": 0, "func": "BerElement * ber_dup ( BerElement * ber ) {\n BerElement * new ;\n assert ( ber != NULL ) ;\n assert ( LBER_VALID ( ber ) ) ;\n if ( ( new = ber_alloc_t ( ber -> ber_options ) ) == NULL ) {\n return NULL ;\n }\n * new = * ber ;\n assert ( LBER_VALID ( new ) ) ;\n return ( new ) ;\n }"}
{"idx": 14531, "target": 1, "func": "void tb_invalidate_phys_page_range ( tb_page_addr_t start , tb_page_addr_t end , int is_cpu_write_access ) {\n TranslationBlock * tb , * tb_next , * saved_tb ;\n CPUArchState * env = cpu_single_env ;\n CPUState * cpu = NULL ;\n tb_page_addr_t tb_start , tb_end ;\n PageDesc * p ;\n int n ;\n # ifdef TARGET_HAS_PRECISE_SMC int current_tb_not_found = is_cpu_write_access ;\n TranslationBlock * current_tb = NULL ;\n int current_tb_modified = 0 ;\n target_ulong current_pc = 0 ;\n target_ulong current_cs_base = 0 ;\n int current_flags = 0 ;\n # endif p = page_find ( start >> TARGET_PAGE_BITS ) ;\n if ( ! p ) {\n return ;\n }\n if ( ! p -> code_bitmap && ++ p -> code_write_count >= SMC_BITMAP_USE_THRESHOLD && is_cpu_write_access ) {\n build_page_bitmap ( p ) ;\n }\n if ( env != NULL ) {\n cpu = ENV_GET_CPU ( env ) ;\n }\n tb = p -> first_tb ;\n while ( tb != NULL ) {\n n = ( uintptr_t ) tb & 3 ;\n tb = ( TranslationBlock * ) ( ( uintptr_t ) tb & ~ 3 ) ;\n tb_next = tb -> page_next [ n ] ;\n if ( n == 0 ) {\n tb_start = tb -> page_addr [ 0 ] + ( tb -> pc & ~ TARGET_PAGE_MASK ) ;\n tb_end = tb_start + tb -> size ;\n }\n else {\n tb_start = tb -> page_addr [ 1 ] ;\n tb_end = tb_start + ( ( tb -> pc + tb -> size ) & ~ TARGET_PAGE_MASK ) ;\n }\n if ( ! ( tb_end <= start || tb_start >= end ) ) {\n # ifdef TARGET_HAS_PRECISE_SMC if ( current_tb_not_found ) {\n current_tb_not_found = 0 ;\n current_tb = NULL ;\n if ( env -> mem_io_pc ) {\n current_tb = tb_find_pc ( env -> mem_io_pc ) ;\n }\n }\n if ( current_tb == tb && ( current_tb -> cflags & CF_COUNT_MASK ) != 1 ) {\n current_tb_modified = 1 ;\n cpu_restore_state_from_tb ( current_tb , env , env -> mem_io_pc ) ;\n cpu_get_tb_cpu_state ( env , & current_pc , & current_cs_base , & current_flags ) ;\n }\n # endif saved_tb = NULL ;\n if ( cpu != NULL ) {\n saved_tb = cpu -> current_tb ;\n cpu -> current_tb = NULL ;\n }\n tb_phys_invalidate ( tb , - 1 ) ;\n if ( cpu != NULL ) {\n cpu -> current_tb = saved_tb ;\n if ( cpu -> interrupt_request && cpu -> current_tb ) {\n cpu_interrupt ( cpu , cpu -> interrupt_request ) ;\n }\n }\n }\n tb = tb_next ;\n }\n # if ! defined ( CONFIG_USER_ONLY ) if ( ! p -> first_tb ) {\n invalidate_page_bitmap ( p ) ;\n if ( is_cpu_write_access ) {\n tlb_unprotect_code_phys ( env , start , env -> mem_io_vaddr ) ;\n }\n }\n # endif # ifdef TARGET_HAS_PRECISE_SMC if ( current_tb_modified ) {\n cpu -> current_tb = NULL ;\n tb_gen_code ( env , current_pc , current_cs_base , current_flags , 1 ) ;\n cpu_resume_from_signal ( env , NULL ) ;\n }\n # endif }"}
{"idx": 14532, "target": 0, "func": "int jbig2_immediate_generic_region ( Jbig2Ctx * ctx , Jbig2Segment * segment , const byte * segment_data ) {\n Jbig2RegionSegmentInfo rsi ;\n byte seg_flags ;\n int8_t gbat [ 8 ] ;\n int offset ;\n uint32_t gbat_bytes = 0 ;\n Jbig2GenericRegionParams params ;\n int code = 0 ;\n Jbig2Image * image = NULL ;\n Jbig2WordStream * ws = NULL ;\n Jbig2ArithState * as = NULL ;\n Jbig2ArithCx * GB_stats = NULL ;\n if ( segment -> data_length < 18 ) return jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"Segment too short\" ) ;\n jbig2_get_region_segment_info ( & rsi , segment_data ) ;\n jbig2_error ( ctx , JBIG2_SEVERITY_INFO , segment -> number , \"generic region: %d x %d @ (%d, %d), flags = %02x\" , rsi . width , rsi . height , rsi . x , rsi . y , rsi . flags ) ;\n seg_flags = segment_data [ 17 ] ;\n jbig2_error ( ctx , JBIG2_SEVERITY_INFO , segment -> number , \"segment flags = %02x\" , seg_flags ) ;\n if ( ( seg_flags & 1 ) && ( seg_flags & 6 ) ) jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"MMR is 1, but GBTEMPLATE is not 0\" ) ;\n if ( ! ( seg_flags & 1 ) ) {\n gbat_bytes = ( seg_flags & 6 ) ? 2 : 8 ;\n if ( 18 + gbat_bytes > segment -> data_length ) return jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"Segment too short\" ) ;\n memcpy ( gbat , segment_data + 18 , gbat_bytes ) ;\n jbig2_error ( ctx , JBIG2_SEVERITY_INFO , segment -> number , \"gbat: %d, %d\" , gbat [ 0 ] , gbat [ 1 ] ) ;\n }\n offset = 18 + gbat_bytes ;\n params . MMR = seg_flags & 1 ;\n params . GBTEMPLATE = ( seg_flags & 6 ) >> 1 ;\n params . TPGDON = ( seg_flags & 8 ) >> 3 ;\n params . USESKIP = 0 ;\n memcpy ( params . gbat , gbat , gbat_bytes ) ;\n image = jbig2_image_new ( ctx , rsi . width , rsi . height ) ;\n if ( image == NULL ) return jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"unable to allocate generic image\" ) ;\n jbig2_error ( ctx , JBIG2_SEVERITY_DEBUG , segment -> number , \"allocated %d x %d image buffer for region decode results\" , rsi . width , rsi . height ) ;\n if ( params . MMR ) {\n code = jbig2_decode_generic_mmr ( ctx , segment , & params , segment_data + offset , segment -> data_length - offset , image ) ;\n }\n else {\n int stats_size = jbig2_generic_stats_size ( ctx , params . GBTEMPLATE ) ;\n GB_stats = jbig2_new ( ctx , Jbig2ArithCx , stats_size ) ;\n if ( GB_stats == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"unable to allocate GB_stats in jbig2_immediate_generic_region\" ) ;\n goto cleanup ;\n }\n memset ( GB_stats , 0 , stats_size ) ;\n ws = jbig2_word_stream_buf_new ( ctx , segment_data + offset , segment -> data_length - offset ) ;\n if ( ws == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"unable to allocate ws in jbig2_immediate_generic_region\" ) ;\n goto cleanup ;\n }\n as = jbig2_arith_new ( ctx , ws ) ;\n if ( as == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"unable to allocate as in jbig2_immediate_generic_region\" ) ;\n goto cleanup ;\n }\n code = jbig2_decode_generic_region ( ctx , segment , & params , as , image , GB_stats ) ;\n }\n if ( code >= 0 ) jbig2_page_add_result ( ctx , & ctx -> pages [ ctx -> current_page ] , image , rsi . x , rsi . y , rsi . op ) ;\n else jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"error while decoding immediate_generic_region\" ) ;\n cleanup : jbig2_free ( ctx -> allocator , as ) ;\n jbig2_word_stream_buf_free ( ctx , ws ) ;\n jbig2_free ( ctx -> allocator , GB_stats ) ;\n jbig2_image_release ( ctx , image ) ;\n return code ;\n }"}
{"idx": 14533, "target": 0, "func": "int main ( int argc , char * argv [ ] ) {\n static struct option long_options [ ] = {\n {\n \"host\" , required_argument , NULL , 'h' }\n , {\n \"port\" , required_argument , NULL , 'p' }\n , {\n \"username\" , required_argument , NULL , 'U' }\n , {\n \"no-password\" , no_argument , NULL , 'w' }\n , {\n \"password\" , no_argument , NULL , 'W' }\n , {\n \"echo\" , no_argument , NULL , 'e' }\n , {\n \"quiet\" , no_argument , NULL , 'q' }\n , {\n \"dbname\" , required_argument , NULL , 'd' }\n , {\n \"analyze\" , no_argument , NULL , 'z' }\n , {\n \"analyze-only\" , no_argument , NULL , 'Z' }\n , {\n \"freeze\" , no_argument , NULL , 'F' }\n , {\n \"all\" , no_argument , NULL , 'a' }\n , {\n \"table\" , required_argument , NULL , 't' }\n , {\n \"full\" , no_argument , NULL , 'f' }\n , {\n \"verbose\" , no_argument , NULL , 'v' }\n , {\n \"jobs\" , required_argument , NULL , 'j' }\n , {\n \"maintenance-db\" , required_argument , NULL , 2 }\n , {\n \"analyze-in-stages\" , no_argument , NULL , 3 }\n , {\n NULL , 0 , NULL , 0 }\n }\n ;\n const char * progname ;\n int optindex ;\n int c ;\n const char * dbname = NULL ;\n const char * maintenance_db = NULL ;\n char * host = NULL ;\n char * port = NULL ;\n char * username = NULL ;\n enum trivalue prompt_password = TRI_DEFAULT ;\n bool echo = false ;\n bool quiet = false ;\n vacuumingOptions vacopts ;\n bool analyze_in_stages = false ;\n bool alldb = false ;\n SimpleStringList tables = {\n NULL , NULL }\n ;\n int concurrentCons = 1 ;\n int tbl_count = 0 ;\n memset ( & vacopts , 0 , sizeof ( vacopts ) ) ;\n progname = get_progname ( argv [ 0 ] ) ;\n set_pglocale_pgservice ( argv [ 0 ] , PG_TEXTDOMAIN ( \"pgscripts\" ) ) ;\n handle_help_version_opts ( argc , argv , \"vacuumdb\" , help ) ;\n while ( ( c = getopt_long ( argc , argv , \"h:p:U:wWeqd:zZFat:fvj:\" , long_options , & optindex ) ) != - 1 ) {\n switch ( c ) {\n case 'h' : host = pg_strdup ( optarg ) ;\n break ;\n case 'p' : port = pg_strdup ( optarg ) ;\n break ;\n case 'U' : username = pg_strdup ( optarg ) ;\n break ;\n case 'w' : prompt_password = TRI_NO ;\n break ;\n case 'W' : prompt_password = TRI_YES ;\n break ;\n case 'e' : echo = true ;\n break ;\n case 'q' : quiet = true ;\n break ;\n case 'd' : dbname = pg_strdup ( optarg ) ;\n break ;\n case 'z' : vacopts . and_analyze = true ;\n break ;\n case 'Z' : vacopts . analyze_only = true ;\n break ;\n case 'F' : vacopts . freeze = true ;\n break ;\n case 'a' : alldb = true ;\n break ;\n case 't' : {\n simple_string_list_append ( & tables , optarg ) ;\n tbl_count ++ ;\n break ;\n }\n case 'f' : vacopts . full = true ;\n break ;\n case 'v' : vacopts . verbose = true ;\n break ;\n case 'j' : concurrentCons = atoi ( optarg ) ;\n if ( concurrentCons <= 0 ) {\n fprintf ( stderr , _ ( \"%s: number of parallel jobs must be at least 1\\n\" ) , progname ) ;\n exit ( 1 ) ;\n }\n if ( concurrentCons > FD_SETSIZE - 1 ) {\n fprintf ( stderr , _ ( \"%s: too many parallel jobs requested (maximum: %d)\\n\" ) , progname , FD_SETSIZE - 1 ) ;\n exit ( 1 ) ;\n }\n break ;\n case 2 : maintenance_db = pg_strdup ( optarg ) ;\n break ;\n case 3 : analyze_in_stages = vacopts . analyze_only = true ;\n break ;\n default : fprintf ( stderr , _ ( \"Try \\\"%s --help\\\" for more information.\\n\" ) , progname ) ;\n exit ( 1 ) ;\n }\n }\n if ( optind < argc && dbname == NULL ) {\n dbname = argv [ optind ] ;\n optind ++ ;\n }\n if ( optind < argc ) {\n fprintf ( stderr , _ ( \"%s: too many command-line arguments (first is \\\"%s\\\")\\n\" ) , progname , argv [ optind ] ) ;\n fprintf ( stderr , _ ( \"Try \\\"%s --help\\\" for more information.\\n\" ) , progname ) ;\n exit ( 1 ) ;\n }\n if ( vacopts . analyze_only ) {\n if ( vacopts . full ) {\n fprintf ( stderr , _ ( \"%s: cannot use the \\\"%s\\\" option when performing only analyze\\n\" ) , progname , \"full\" ) ;\n exit ( 1 ) ;\n }\n if ( vacopts . freeze ) {\n fprintf ( stderr , _ ( \"%s: cannot use the \\\"%s\\\" option when performing only analyze\\n\" ) , progname , \"freeze\" ) ;\n exit ( 1 ) ;\n }\n }\n setup_cancel_handler ( ) ;\n if ( tbl_count && ( concurrentCons > tbl_count ) ) concurrentCons = tbl_count ;\n if ( alldb ) {\n if ( dbname ) {\n fprintf ( stderr , _ ( \"%s: cannot vacuum all databases and a specific one at the same time\\n\" ) , progname ) ;\n exit ( 1 ) ;\n }\n if ( tables . head != NULL ) {\n fprintf ( stderr , _ ( \"%s: cannot vacuum specific table(s) in all databases\\n\" ) , progname ) ;\n exit ( 1 ) ;\n }\n vacuum_all_databases ( & vacopts , analyze_in_stages , maintenance_db , host , port , username , prompt_password , concurrentCons , progname , echo , quiet ) ;\n }\n else {\n if ( dbname == NULL ) {\n if ( getenv ( \"PGDATABASE\" ) ) dbname = getenv ( \"PGDATABASE\" ) ;\n else if ( getenv ( \"PGUSER\" ) ) dbname = getenv ( \"PGUSER\" ) ;\n else dbname = get_user_name_or_exit ( progname ) ;\n }\n if ( analyze_in_stages ) {\n int stage ;\n for ( stage = 0 ;\n stage < ANALYZE_NUM_STAGES ;\n stage ++ ) {\n vacuum_one_database ( dbname , & vacopts , stage , & tables , host , port , username , prompt_password , concurrentCons , progname , echo , quiet ) ;\n }\n }\n else vacuum_one_database ( dbname , & vacopts , ANALYZE_NO_STAGE , & tables , host , port , username , prompt_password , concurrentCons , progname , echo , quiet ) ;\n }\n exit ( 0 ) ;\n }"}
{"idx": 14534, "target": 0, "func": "static void print_quoted_xml ( FILE * xml_file , const char * str , size_t len , my_bool is_attribute_name ) {\n const char * end ;\n for ( end = str + len ;\n str != end ;\n str ++ ) {\n switch ( * str ) {\n case '<' : fputs ( \"&lt;\n\" , xml_file ) ;\n break ;\n case '>' : fputs ( \"&gt;\n\" , xml_file ) ;\n break ;\n case '&' : fputs ( \"&amp;\n\" , xml_file ) ;\n break ;\n case '\\\"' : fputs ( \"&quot;\n\" , xml_file ) ;\n break ;\n case ' ' : if ( is_attribute_name ) {\n fputs ( \"_\" , xml_file ) ;\n break ;\n }\n default : fputc ( * str , xml_file ) ;\n break ;\n }\n }\n check_io ( xml_file ) ;\n }"}
{"idx": 14535, "target": 0, "func": "void uwsgi_opt_php_ini ( char * opt , char * value , void * foobar ) {\n uwsgi_sapi_module . php_ini_path_override = uwsgi_str ( value ) ;\n uwsgi_sapi_module . php_ini_ignore = 1 ;\n }"}
{"idx": 14536, "target": 0, "func": "PHP_FUNCTION ( locale_get_display_language ) {\n get_icu_disp_value_src_php ( LOC_LANG_TAG , INTERNAL_FUNCTION_PARAM_PASSTHRU ) ;\n }"}
{"idx": 14537, "target": 0, "func": "int main ( int argc , char * argv [ ] ) {\n int ret_value = 0 ;\n libettercap_init ( ) ;\n ef_globals_alloc ( ) ;\n select_text_interface ( ) ;\n libettercap_ui_init ( ) ;\n fprintf ( stdout , \"\\n\" EC_COLOR_BOLD \"%s %s\" EC_COLOR_END \" copyright %s %s\\n\\n\" , PROGRAM , EC_VERSION , EC_COPYRIGHT , EC_AUTHORS ) ;\n EF_GBL -> lineno = 1 ;\n parse_options ( argc , argv ) ;\n if ( EF_GBL_OPTIONS -> source_file ) {\n yyin = fopen ( EF_GBL_OPTIONS -> source_file , \"r\" ) ;\n if ( yyin == NULL ) FATAL_ERROR ( \"Input file not found !\" ) ;\n }\n else {\n FATAL_ERROR ( \"No source file.\" ) ;\n }\n setbuf ( yyin , NULL ) ;\n setbuf ( stdout , NULL ) ;\n setbuf ( stderr , NULL ) ;\n load_tables ( ) ;\n load_constants ( ) ;\n fprintf ( stdout , \"\\n Parsing source file \\'%s\\' \" , EF_GBL_OPTIONS -> source_file ) ;\n fflush ( stdout ) ;\n ef_debug ( 1 , \"\\n\" ) ;\n if ( yyparse ( ) == 0 ) fprintf ( stdout , \" done.\\n\\n\" ) ;\n else fprintf ( stdout , \"\\n\\nThe script contains errors...\\n\\n\" ) ;\n ret_value = write_output ( ) ;\n if ( ret_value == - E_NOTHANDLED ) FATAL_ERROR ( \"Cannot write output file (%s): the filter is not correctly handled.\" , EF_GBL_OPTIONS -> output_file ) ;\n else if ( ret_value == - E_INVALID ) FATAL_ERROR ( \"Cannot write output file (%s): the filter format is not correct. \" , EF_GBL_OPTIONS -> output_file ) ;\n ef_globals_free ( ) ;\n return 0 ;\n }"}
{"idx": 14538, "target": 0, "func": "static void decode_energy ( gchar * s , guint16 value ) {\n g_snprintf ( s , ITEM_LABEL_LENGTH , \"%d Watt per hours\" , value ) ;\n }"}
{"idx": 14539, "target": 0, "func": "static void ppc_prep_reset ( void * opaque ) {\n PowerPCCPU * cpu = opaque ;\n cpu_reset ( CPU ( cpu ) ) ;\n cpu -> env . nip = 0xfffffffc ;\n }"}
{"idx": 14540, "target": 0, "func": "static inline void ipv6_addr_prefix ( struct in6_addr * pfx , const struct in6_addr * addr , int plen ) {\n int o = plen >> 3 , b = plen & 0x7 ;\n memset ( pfx -> s6_addr , 0 , sizeof ( pfx -> s6_addr ) ) ;\n memcpy ( pfx -> s6_addr , addr , o ) ;\n if ( b != 0 ) pfx -> s6_addr [ o ] = addr -> s6_addr [ o ] & ( 0xff00 >> b ) ;\n }"}
{"idx": 14541, "target": 0, "func": "int xsltCheckWrite ( xsltSecurityPrefsPtr sec , xsltTransformContextPtr ctxt , const xmlChar * URL ) {\n int ret ;\n xmlURIPtr uri ;\n xsltSecurityCheck check ;\n uri = xmlParseURI ( ( const char * ) URL ) ;\n if ( uri == NULL ) {\n uri = xmlCreateURI ( ) ;\n if ( uri == NULL ) {\n xsltTransformError ( ctxt , NULL , NULL , \"xsltCheckWrite: out of memory for %s\\n\" , URL ) ;\n return ( - 1 ) ;\n }\n uri -> path = ( char * ) xmlStrdup ( URL ) ;\n }\n if ( ( uri -> scheme == NULL ) || ( xmlStrEqual ( BAD_CAST uri -> scheme , BAD_CAST \"file\" ) ) ) {\n # if defined ( WIN32 ) && ! defined ( __CYGWIN__ ) if ( ( uri -> path ) && ( uri -> path [ 0 ] == '/' ) && ( uri -> path [ 1 ] != '\\0' ) && ( uri -> path [ 2 ] == ':' ) ) ret = xsltCheckWritePath ( sec , ctxt , uri -> path + 1 ) ;\n else # endif ret = xsltCheckWritePath ( sec , ctxt , uri -> path ) ;\n if ( ret <= 0 ) {\n xmlFreeURI ( uri ) ;\n return ( ret ) ;\n }\n }\n else {\n check = xsltGetSecurityPrefs ( sec , XSLT_SECPREF_WRITE_NETWORK ) ;\n if ( check != NULL ) {\n ret = check ( sec , ctxt , ( const char * ) URL ) ;\n if ( ret == 0 ) {\n xsltTransformError ( ctxt , NULL , NULL , \"File write for %s refused\\n\" , URL ) ;\n xmlFreeURI ( uri ) ;\n return ( 0 ) ;\n }\n }\n }\n xmlFreeURI ( uri ) ;\n return ( 1 ) ;\n }"}
{"idx": 14542, "target": 0, "func": "void mutt_rfc2047_decode ( char * * pd ) {\n if ( ! pd || ! * pd ) return ;\n struct Buffer buf = {\n 0 }\n ;\n char * s = * pd ;\n char * beg ;\n enum ContentEncoding enc ;\n char * charset ;\n size_t charsetlen ;\n char * text ;\n size_t textlen ;\n struct Buffer prev = {\n 0 }\n ;\n char * prev_charset = NULL ;\n size_t prev_charsetlen = 0 ;\n while ( * s ) {\n beg = parse_encoded_word ( s , & enc , & charset , & charsetlen , & text , & textlen ) ;\n if ( beg != s ) {\n size_t holelen = beg ? beg - s : mutt_str_strlen ( s ) ;\n if ( beg && mutt_str_lws_len ( s , holelen ) == holelen ) {\n s = beg ;\n continue ;\n }\n if ( prev . data ) {\n finalize_chunk ( & buf , & prev , prev_charset , prev_charsetlen ) ;\n }\n {\n if ( AssumedCharset && * AssumedCharset ) {\n char * conv = mutt_str_substr_dup ( s , s + holelen ) ;\n mutt_ch_convert_nonmime_string ( & conv ) ;\n mutt_buffer_addstr ( & buf , conv ) ;\n FREE ( & conv ) ;\n }\n else {\n mutt_buffer_add ( & buf , s , holelen ) ;\n }\n }\n s += holelen ;\n }\n if ( beg ) {\n text [ textlen ] = '\\0' ;\n char * decoded = rfc2047_decode_word ( text , textlen , enc ) ;\n if ( decoded == NULL ) {\n return ;\n }\n if ( prev . data && ( ( prev_charsetlen != charsetlen ) || ( strncmp ( prev_charset , charset , charsetlen ) != 0 ) ) ) {\n finalize_chunk ( & buf , & prev , prev_charset , prev_charsetlen ) ;\n }\n mutt_buffer_addstr ( & prev , decoded ) ;\n FREE ( & decoded ) ;\n prev_charset = charset ;\n prev_charsetlen = charsetlen ;\n s = text + textlen + 2 ;\n }\n }\n if ( prev . data ) {\n finalize_chunk ( & buf , & prev , prev_charset , prev_charsetlen ) ;\n }\n mutt_buffer_addch ( & buf , '\\0' ) ;\n * pd = buf . data ;\n }"}
{"idx": 14543, "target": 1, "func": "int16_t vp9_dc_quant ( int qindex , int delta ) {\n return dc_qlookup [ clamp ( qindex + delta , 0 , MAXQ ) ] ;\n }"}
{"idx": 14544, "target": 1, "func": "static int roq_encode_frame ( AVCodecContext * avctx , AVPacket * pkt , const AVFrame * frame , int * got_packet ) {\n RoqContext * enc = avctx -> priv_data ;\n int size , ret ;\n enc -> avctx = avctx ;\n enc -> frame_to_enc = frame ;\n if ( frame -> quality ) enc -> lambda = frame -> quality - 1 ;\n else enc -> lambda = 2 * ROQ_LAMBDA_SCALE ;\n size = ( ( enc -> width * enc -> height / 64 ) * 138 + 7 ) / 8 + 256 * ( 6 + 4 ) + 8 ;\n if ( ( ret = ff_alloc_packet ( pkt , size ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error getting output packet with size %d.\\n\" , size ) ;\n return ret ;\n }\n enc -> out_buf = pkt -> data ;\n if ( enc -> framesSinceKeyframe == avctx -> gop_size ) enc -> framesSinceKeyframe = 0 ;\n if ( enc -> first_frame ) {\n if ( ff_get_buffer ( avctx , enc -> current_frame ) || ff_get_buffer ( avctx , enc -> last_frame ) ) {\n av_log ( avctx , AV_LOG_ERROR , \" RoQ: get_buffer() failed\\n\" ) ;\n return - 1 ;\n }\n roq_write_video_info_chunk ( enc ) ;\n enc -> first_frame = 0 ;\n }\n roq_encode_video ( enc ) ;\n pkt -> size = enc -> out_buf - pkt -> data ;\n if ( enc -> framesSinceKeyframe == 1 ) pkt -> flags |= AV_PKT_FLAG_KEY ;\n * got_packet = 1 ;\n return 0 ;\n }"}
{"idx": 14545, "target": 1, "func": "static hb_feature_t * feature_reference ( hb_feature_t * g ) {\n hb_feature_t * c = ( hb_feature_t * ) calloc ( 1 , sizeof ( hb_feature_t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * g ;\n return c ;\n }"}
{"idx": 14546, "target": 0, "func": "static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 14547, "target": 0, "func": "static void vvalue_strbuf_append_i4 ( wmem_strbuf_t * strbuf , void * ptr ) {\n gint32 i4 = * ( gint32 * ) ptr ;\n wmem_strbuf_append_printf ( strbuf , \"%d\" , i4 ) ;\n }"}
{"idx": 14548, "target": 0, "func": "int i2d_PrivateKey_bio ( BIO * bp , EVP_PKEY * pkey ) {\n return ASN1_i2d_bio_of ( EVP_PKEY , i2d_PrivateKey , bp , pkey ) ;\n }"}
{"idx": 14549, "target": 0, "func": "static void dumpRoles ( PGconn * conn ) {\n PQExpBuffer buf = createPQExpBuffer ( ) ;\n PGresult * res ;\n int i_oid , i_rolname , i_rolsuper , i_rolinherit , i_rolcreaterole , i_rolcreatedb , i_rolcanlogin , i_rolconnlimit , i_rolpassword , i_rolvaliduntil , i_rolreplication , i_rolbypassrls , i_rolcomment , i_is_current_user ;\n int i ;\n if ( server_version >= 90600 ) printfPQExpBuffer ( buf , \"SELECT oid, rolname, rolsuper, rolinherit, \" \"rolcreaterole, rolcreatedb, \" \"rolcanlogin, rolconnlimit, rolpassword, \" \"rolvaliduntil, rolreplication, rolbypassrls, \" \"pg_catalog.shobj_description(oid, 'pg_authid') as rolcomment, \" \"rolname = current_user AS is_current_user \" \"FROM pg_authid \" \"WHERE rolname !~ '^pg_' \" \"ORDER BY 2\" ) ;\n else if ( server_version >= 90500 ) printfPQExpBuffer ( buf , \"SELECT oid, rolname, rolsuper, rolinherit, \" \"rolcreaterole, rolcreatedb, \" \"rolcanlogin, rolconnlimit, rolpassword, \" \"rolvaliduntil, rolreplication, rolbypassrls, \" \"pg_catalog.shobj_description(oid, 'pg_authid') as rolcomment, \" \"rolname = current_user AS is_current_user \" \"FROM pg_authid \" \"ORDER BY 2\" ) ;\n else if ( server_version >= 90100 ) printfPQExpBuffer ( buf , \"SELECT oid, rolname, rolsuper, rolinherit, \" \"rolcreaterole, rolcreatedb, \" \"rolcanlogin, rolconnlimit, rolpassword, \" \"rolvaliduntil, rolreplication, \" \"false as rolbypassrls, \" \"pg_catalog.shobj_description(oid, 'pg_authid') as rolcomment, \" \"rolname = current_user AS is_current_user \" \"FROM pg_authid \" \"ORDER BY 2\" ) ;\n else if ( server_version >= 80200 ) printfPQExpBuffer ( buf , \"SELECT oid, rolname, rolsuper, rolinherit, \" \"rolcreaterole, rolcreatedb, \" \"rolcanlogin, rolconnlimit, rolpassword, \" \"rolvaliduntil, false as rolreplication, \" \"false as rolbypassrls, \" \"pg_catalog.shobj_description(oid, 'pg_authid') as rolcomment, \" \"rolname = current_user AS is_current_user \" \"FROM pg_authid \" \"ORDER BY 2\" ) ;\n else if ( server_version >= 80100 ) printfPQExpBuffer ( buf , \"SELECT oid, rolname, rolsuper, rolinherit, \" \"rolcreaterole, rolcreatedb, \" \"rolcanlogin, rolconnlimit, rolpassword, \" \"rolvaliduntil, false as rolreplication, \" \"false as rolbypassrls, \" \"null as rolcomment, \" \"rolname = current_user AS is_current_user \" \"FROM pg_authid \" \"ORDER BY 2\" ) ;\n else printfPQExpBuffer ( buf , \"SELECT 0 as oid, usename as rolname, \" \"usesuper as rolsuper, \" \"true as rolinherit, \" \"usesuper as rolcreaterole, \" \"usecreatedb as rolcreatedb, \" \"true as rolcanlogin, \" \"-1 as rolconnlimit, \" \"passwd as rolpassword, \" \"valuntil as rolvaliduntil, \" \"false as rolreplication, \" \"false as rolbypassrls, \" \"null as rolcomment, \" \"usename = current_user AS is_current_user \" \"FROM pg_shadow \" \"UNION ALL \" \"SELECT 0 as oid, groname as rolname, \" \"false as rolsuper, \" \"true as rolinherit, \" \"false as rolcreaterole, \" \"false as rolcreatedb, \" \"false as rolcanlogin, \" \"-1 as rolconnlimit, \" \"null::text as rolpassword, \" \"null::abstime as rolvaliduntil, \" \"false as rolreplication, \" \"false as rolbypassrls, \" \"null as rolcomment, \" \"false AS is_current_user \" \"FROM pg_group \" \"WHERE NOT EXISTS (SELECT 1 FROM pg_shadow \" \" WHERE usename = groname) \" \"ORDER BY 2\" ) ;\n res = executeQuery ( conn , buf -> data ) ;\n i_oid = PQfnumber ( res , \"oid\" ) ;\n i_rolname = PQfnumber ( res , \"rolname\" ) ;\n i_rolsuper = PQfnumber ( res , \"rolsuper\" ) ;\n i_rolinherit = PQfnumber ( res , \"rolinherit\" ) ;\n i_rolcreaterole = PQfnumber ( res , \"rolcreaterole\" ) ;\n i_rolcreatedb = PQfnumber ( res , \"rolcreatedb\" ) ;\n i_rolcanlogin = PQfnumber ( res , \"rolcanlogin\" ) ;\n i_rolconnlimit = PQfnumber ( res , \"rolconnlimit\" ) ;\n i_rolpassword = PQfnumber ( res , \"rolpassword\" ) ;\n i_rolvaliduntil = PQfnumber ( res , \"rolvaliduntil\" ) ;\n i_rolreplication = PQfnumber ( res , \"rolreplication\" ) ;\n i_rolbypassrls = PQfnumber ( res , \"rolbypassrls\" ) ;\n i_rolcomment = PQfnumber ( res , \"rolcomment\" ) ;\n i_is_current_user = PQfnumber ( res , \"is_current_user\" ) ;\n if ( PQntuples ( res ) > 0 ) fprintf ( OPF , \"--\\n-- Roles\\n--\\n\\n\" ) ;\n for ( i = 0 ;\n i < PQntuples ( res ) ;\n i ++ ) {\n const char * rolename ;\n Oid auth_oid ;\n auth_oid = atooid ( PQgetvalue ( res , i , i_oid ) ) ;\n rolename = PQgetvalue ( res , i , i_rolname ) ;\n if ( strncmp ( rolename , \"pg_\" , 3 ) == 0 ) {\n fprintf ( stderr , _ ( \"%s: role name starting with \\\"pg_\\\" skipped (%s)\\n\" ) , progname , rolename ) ;\n continue ;\n }\n resetPQExpBuffer ( buf ) ;\n if ( binary_upgrade ) {\n appendPQExpBufferStr ( buf , \"\\n-- For binary upgrade, must preserve pg_authid.oid\\n\" ) ;\n appendPQExpBuffer ( buf , \"SELECT pg_catalog.binary_upgrade_set_next_pg_authid_oid('%u'::pg_catalog.oid);\n\\n\\n\" , auth_oid ) ;\n }\n if ( ! binary_upgrade || strcmp ( PQgetvalue ( res , i , i_is_current_user ) , \"f\" ) == 0 ) appendPQExpBuffer ( buf , \"CREATE ROLE %s;\n\\n\" , fmtId ( rolename ) ) ;\n appendPQExpBuffer ( buf , \"ALTER ROLE %s WITH\" , fmtId ( rolename ) ) ;\n if ( strcmp ( PQgetvalue ( res , i , i_rolsuper ) , \"t\" ) == 0 ) appendPQExpBufferStr ( buf , \" SUPERUSER\" ) ;\n else appendPQExpBufferStr ( buf , \" NOSUPERUSER\" ) ;\n if ( strcmp ( PQgetvalue ( res , i , i_rolinherit ) , \"t\" ) == 0 ) appendPQExpBufferStr ( buf , \" INHERIT\" ) ;\n else appendPQExpBufferStr ( buf , \" NOINHERIT\" ) ;\n if ( strcmp ( PQgetvalue ( res , i , i_rolcreaterole ) , \"t\" ) == 0 ) appendPQExpBufferStr ( buf , \" CREATEROLE\" ) ;\n else appendPQExpBufferStr ( buf , \" NOCREATEROLE\" ) ;\n if ( strcmp ( PQgetvalue ( res , i , i_rolcreatedb ) , \"t\" ) == 0 ) appendPQExpBufferStr ( buf , \" CREATEDB\" ) ;\n else appendPQExpBufferStr ( buf , \" NOCREATEDB\" ) ;\n if ( strcmp ( PQgetvalue ( res , i , i_rolcanlogin ) , \"t\" ) == 0 ) appendPQExpBufferStr ( buf , \" LOGIN\" ) ;\n else appendPQExpBufferStr ( buf , \" NOLOGIN\" ) ;\n if ( strcmp ( PQgetvalue ( res , i , i_rolreplication ) , \"t\" ) == 0 ) appendPQExpBufferStr ( buf , \" REPLICATION\" ) ;\n else appendPQExpBufferStr ( buf , \" NOREPLICATION\" ) ;\n if ( strcmp ( PQgetvalue ( res , i , i_rolbypassrls ) , \"t\" ) == 0 ) appendPQExpBufferStr ( buf , \" BYPASSRLS\" ) ;\n else appendPQExpBufferStr ( buf , \" NOBYPASSRLS\" ) ;\n if ( strcmp ( PQgetvalue ( res , i , i_rolconnlimit ) , \"-1\" ) != 0 ) appendPQExpBuffer ( buf , \" CONNECTION LIMIT %s\" , PQgetvalue ( res , i , i_rolconnlimit ) ) ;\n if ( ! PQgetisnull ( res , i , i_rolpassword ) ) {\n appendPQExpBufferStr ( buf , \" PASSWORD \" ) ;\n appendStringLiteralConn ( buf , PQgetvalue ( res , i , i_rolpassword ) , conn ) ;\n }\n if ( ! PQgetisnull ( res , i , i_rolvaliduntil ) ) appendPQExpBuffer ( buf , \" VALID UNTIL '%s'\" , PQgetvalue ( res , i , i_rolvaliduntil ) ) ;\n appendPQExpBufferStr ( buf , \";\n\\n\" ) ;\n if ( ! PQgetisnull ( res , i , i_rolcomment ) ) {\n appendPQExpBuffer ( buf , \"COMMENT ON ROLE %s IS \" , fmtId ( rolename ) ) ;\n appendStringLiteralConn ( buf , PQgetvalue ( res , i , i_rolcomment ) , conn ) ;\n appendPQExpBufferStr ( buf , \";\n\\n\" ) ;\n }\n if ( ! no_security_labels && server_version >= 90200 ) buildShSecLabels ( conn , \"pg_authid\" , auth_oid , buf , \"ROLE\" , rolename ) ;\n fprintf ( OPF , \"%s\" , buf -> data ) ;\n }\n if ( server_version >= 70300 ) for ( i = 0 ;\n i < PQntuples ( res ) ;\n i ++ ) dumpUserConfig ( conn , PQgetvalue ( res , i , i_rolname ) ) ;\n PQclear ( res ) ;\n fprintf ( OPF , \"\\n\\n\" ) ;\n destroyPQExpBuffer ( buf ) ;\n }"}
{"idx": 14550, "target": 0, "func": "static int header_afiol ( struct archive_read * a , struct cpio * cpio , struct archive_entry * entry , size_t * namelength , size_t * name_pad ) {\n const void * h ;\n const char * header ;\n a -> archive . archive_format = ARCHIVE_FORMAT_CPIO_AFIO_LARGE ;\n a -> archive . archive_format_name = \"afio large ASCII\" ;\n h = __archive_read_ahead ( a , afiol_header_size , NULL ) ;\n if ( h == NULL ) return ( ARCHIVE_FATAL ) ;\n header = ( const char * ) h ;\n archive_entry_set_dev ( entry , ( dev_t ) atol16 ( header + afiol_dev_offset , afiol_dev_size ) ) ;\n archive_entry_set_ino ( entry , atol16 ( header + afiol_ino_offset , afiol_ino_size ) ) ;\n archive_entry_set_mode ( entry , ( mode_t ) atol8 ( header + afiol_mode_offset , afiol_mode_size ) ) ;\n archive_entry_set_uid ( entry , atol16 ( header + afiol_uid_offset , afiol_uid_size ) ) ;\n archive_entry_set_gid ( entry , atol16 ( header + afiol_gid_offset , afiol_gid_size ) ) ;\n archive_entry_set_nlink ( entry , ( unsigned int ) atol16 ( header + afiol_nlink_offset , afiol_nlink_size ) ) ;\n archive_entry_set_rdev ( entry , ( dev_t ) atol16 ( header + afiol_rdev_offset , afiol_rdev_size ) ) ;\n archive_entry_set_mtime ( entry , atol16 ( header + afiol_mtime_offset , afiol_mtime_size ) , 0 ) ;\n * namelength = ( size_t ) atol16 ( header + afiol_namesize_offset , afiol_namesize_size ) ;\n * name_pad = 0 ;\n cpio -> entry_bytes_remaining = atol16 ( header + afiol_filesize_offset , afiol_filesize_size ) ;\n archive_entry_set_size ( entry , cpio -> entry_bytes_remaining ) ;\n cpio -> entry_padding = 0 ;\n __archive_read_consume ( a , afiol_header_size ) ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 14551, "target": 0, "func": "void input_DecoderFrameNext ( decoder_t * p_dec , mtime_t * pi_duration ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n * pi_duration = 0 ;\n vlc_mutex_lock ( & p_owner -> lock ) ;\n if ( p_dec -> fmt_out . i_cat == VIDEO_ES ) {\n if ( p_owner -> b_paused && p_owner -> p_vout ) {\n vout_NextPicture ( p_owner -> p_vout , pi_duration ) ;\n p_owner -> pause . i_ignore ++ ;\n vlc_cond_signal ( & p_owner -> wait_request ) ;\n }\n }\n else {\n DecoderFlush ( p_dec ) ;\n }\n vlc_mutex_unlock ( & p_owner -> lock ) ;\n }"}
{"idx": 14552, "target": 0, "func": "static int check_port ( struct manager_ctx * manager , struct server * server ) {\n bool both_tcp_udp = manager -> mode == TCP_AND_UDP ;\n int fd_count = manager -> host_num * ( both_tcp_udp ? 2 : 1 ) ;\n int bind_err = 0 ;\n int * sock_fds = ( int * ) ss_malloc ( fd_count * sizeof ( int ) ) ;\n memset ( sock_fds , 0 , fd_count * sizeof ( int ) ) ;\n for ( int i = 0 ;\n i < manager -> host_num ;\n i ++ ) {\n LOGI ( \"try to bind interface: %s, port: %s\" , manager -> hosts [ i ] , server -> port ) ;\n if ( manager -> mode == UDP_ONLY ) {\n sock_fds [ i ] = create_and_bind ( manager -> hosts [ i ] , server -> port , IPPROTO_UDP ) ;\n }\n else {\n sock_fds [ i ] = create_and_bind ( manager -> hosts [ i ] , server -> port , IPPROTO_TCP ) ;\n }\n if ( both_tcp_udp ) {\n sock_fds [ i + manager -> host_num ] = create_and_bind ( manager -> hosts [ i ] , server -> port , IPPROTO_UDP ) ;\n }\n if ( sock_fds [ i ] == - 1 || ( both_tcp_udp && sock_fds [ i + manager -> host_num ] == - 1 ) ) {\n bind_err = - 1 ;\n break ;\n }\n }\n for ( int i = 0 ;\n i < fd_count ;\n i ++ ) {\n if ( sock_fds [ i ] > 0 ) {\n close ( sock_fds [ i ] ) ;\n }\n }\n ss_free ( sock_fds ) ;\n return bind_err == - 1 ? - 1 : 0 ;\n }"}
{"idx": 14553, "target": 0, "func": "static struct object_list * * process_tree ( struct tree * tree , struct object_list * * p ) {\n struct object * obj = & tree -> object ;\n struct tree_desc desc ;\n struct name_entry entry ;\n obj -> flags |= LOCAL ;\n if ( obj -> flags & ( UNINTERESTING | SEEN ) ) return p ;\n if ( parse_tree ( tree ) < 0 ) die ( \"bad tree object %s\" , oid_to_hex ( & obj -> oid ) ) ;\n obj -> flags |= SEEN ;\n p = add_one_object ( obj , p ) ;\n init_tree_desc ( & desc , tree -> buffer , tree -> size ) ;\n while ( tree_entry ( & desc , & entry ) ) switch ( object_type ( entry . mode ) ) {\n case OBJ_TREE : p = process_tree ( lookup_tree ( entry . sha1 ) , p ) ;\n break ;\n case OBJ_BLOB : p = process_blob ( lookup_blob ( entry . sha1 ) , p ) ;\n break ;\n default : break ;\n }\n free_tree_buffer ( tree ) ;\n return p ;\n }"}
{"idx": 14554, "target": 0, "func": "static int qemuMonitorTextCommandNotFound ( const char * cmd , const char * reply ) {\n if ( STRPREFIX ( cmd , \"info \" ) ) {\n if ( strstr ( reply , \"info version\" ) ) return 1 ;\n }\n else {\n if ( strstr ( reply , \"unknown command:\" ) ) return 1 ;\n }\n return 0 ;\n }"}
{"idx": 14555, "target": 0, "func": "static int dissect_segment_unknown ( tvbuff_t * tvb , int offset , packet_info * pinfo _U_ , proto_tree * tree , int encoding ) {\n proto_item * subtree_item = NULL ;\n proto_tree * subtree = NULL ;\n int datalen = 0 ;\n int seglen = 0 ;\n seglen = lbmpdm_get_segment_length ( tvb , offset , encoding , & datalen ) ;\n subtree_item = proto_tree_add_none_format ( tree , hf_lbmpdm_segment , tvb , offset , seglen , \"Unknown Segment\" ) ;\n subtree = proto_item_add_subtree ( subtree_item , ett_lbmpdm_segment ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_segment_next_hdr , tvb , offset + O_LBMPDM_SEG_HDR_T_NEXT_HDR , L_LBMPDM_SEG_HDR_T_NEXT_HDR , encoding ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_segment_flags , tvb , offset + O_LBMPDM_SEG_HDR_T_FLAGS , L_LBMPDM_SEG_HDR_T_FLAGS , encoding ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_segment_res , tvb , offset + O_LBMPDM_SEG_HDR_T_RES , L_LBMPDM_SEG_HDR_T_RES , encoding ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_segment_len , tvb , offset + O_LBMPDM_SEG_HDR_T_LEN , L_LBMPDM_SEG_HDR_T_LEN , encoding ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_segment_data , tvb , offset + L_LBMPDM_SEG_HDR_T , datalen , ENC_NA ) ;\n return ( seglen ) ;\n }"}
{"idx": 14556, "target": 0, "func": "static int record_hardlink ( struct archive_read * a , struct cpio * cpio , struct archive_entry * entry ) {\n struct links_entry * le ;\n dev_t dev ;\n int64_t ino ;\n if ( archive_entry_nlink ( entry ) <= 1 ) return ( ARCHIVE_OK ) ;\n dev = archive_entry_dev ( entry ) ;\n ino = archive_entry_ino64 ( entry ) ;\n for ( le = cpio -> links_head ;\n le ;\n le = le -> next ) {\n if ( le -> dev == dev && le -> ino == ino ) {\n archive_entry_copy_hardlink ( entry , le -> name ) ;\n if ( -- le -> links <= 0 ) {\n if ( le -> previous != NULL ) le -> previous -> next = le -> next ;\n if ( le -> next != NULL ) le -> next -> previous = le -> previous ;\n if ( cpio -> links_head == le ) cpio -> links_head = le -> next ;\n free ( le -> name ) ;\n free ( le ) ;\n }\n return ( ARCHIVE_OK ) ;\n }\n }\n le = ( struct links_entry * ) malloc ( sizeof ( struct links_entry ) ) ;\n if ( le == NULL ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Out of memory adding file to list\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n if ( cpio -> links_head != NULL ) cpio -> links_head -> previous = le ;\n le -> next = cpio -> links_head ;\n le -> previous = NULL ;\n cpio -> links_head = le ;\n le -> dev = dev ;\n le -> ino = ino ;\n le -> links = archive_entry_nlink ( entry ) - 1 ;\n le -> name = strdup ( archive_entry_pathname ( entry ) ) ;\n if ( le -> name == NULL ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Out of memory adding file to list\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 14557, "target": 1, "func": "static void build_config ( char * prefix , struct server * server ) {\n char * path = NULL ;\n int path_size = strlen ( prefix ) + strlen ( server -> port ) + 20 ;\n path = ss_malloc ( path_size ) ;\n snprintf ( path , path_size , \"%s/.shadowsocks_%s.conf\" , prefix , server -> port ) ;\n FILE * f = fopen ( path , \"w+\" ) ;\n if ( f == NULL ) {\n if ( verbose ) {\n LOGE ( \"unable to open config file\" ) ;\n }\n ss_free ( path ) ;\n return ;\n }\n fprintf ( f , \"{\n\\n\" ) ;\n fprintf ( f , \"\\\"server_port\\\":%d,\\n\" , atoi ( server -> port ) ) ;\n fprintf ( f , \"\\\"password\\\":\\\"%s\\\"\" , server -> password ) ;\n if ( server -> fast_open [ 0 ] ) fprintf ( f , \",\\n\\\"fast_open\\\": %s\" , server -> fast_open ) ;\n if ( server -> mode ) fprintf ( f , \",\\n\\\"mode\\\":\\\"%s\\\"\" , server -> mode ) ;\n if ( server -> method ) fprintf ( f , \",\\n\\\"method\\\":\\\"%s\\\"\" , server -> method ) ;\n if ( server -> plugin ) fprintf ( f , \",\\n\\\"plugin\\\":\\\"%s\\\"\" , server -> plugin ) ;\n if ( server -> plugin_opts ) fprintf ( f , \",\\n\\\"plugin_opts\\\":\\\"%s\\\"\" , server -> plugin_opts ) ;\n fprintf ( f , \"\\n}\n\\n\" ) ;\n fclose ( f ) ;\n ss_free ( path ) ;\n }"}
{"idx": 14558, "target": 0, "func": "proto_item * parseInt16 ( proto_tree * tree , tvbuff_t * tvb , packet_info * pinfo _U_ , gint * pOffset , int hfIndex ) {\n proto_item * item = proto_tree_add_item ( tree , hfIndex , tvb , * pOffset , 2 , ENC_LITTLE_ENDIAN ) ;\n * pOffset += 2 ;\n return item ;\n }"}
{"idx": 14559, "target": 0, "func": "static int32_t _appendVariantsToLanguageTag ( const char * localeID , char * appendAt , int32_t capacity , UBool strict , UBool * hadPosix , UErrorCode * status ) {\n char buf [ ULOC_FULLNAME_CAPACITY ] ;\n UErrorCode tmpStatus = U_ZERO_ERROR ;\n int32_t len , i ;\n int32_t reslen = 0 ;\n if ( U_FAILURE ( * status ) ) {\n return 0 ;\n }\n len = uloc_getVariant ( localeID , buf , sizeof ( buf ) , & tmpStatus ) ;\n if ( U_FAILURE ( tmpStatus ) || tmpStatus == U_STRING_NOT_TERMINATED_WARNING ) {\n if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n }\n return 0 ;\n }\n if ( len > 0 ) {\n char * p , * pVar ;\n UBool bNext = TRUE ;\n VariantListEntry * var ;\n VariantListEntry * varFirst = NULL ;\n pVar = NULL ;\n p = buf ;\n while ( bNext ) {\n if ( * p == SEP || * p == LOCALE_SEP || * p == 0 ) {\n if ( * p == 0 ) {\n bNext = FALSE ;\n }\n else {\n * p = 0 ;\n }\n if ( pVar == NULL ) {\n if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n break ;\n }\n }\n else {\n for ( i = 0 ;\n * ( pVar + i ) != 0 ;\n i ++ ) {\n * ( pVar + i ) = uprv_tolower ( * ( pVar + i ) ) ;\n }\n if ( _isVariantSubtag ( pVar , - 1 ) ) {\n if ( uprv_strcmp ( pVar , POSIX_VALUE ) || len != ( int32_t ) uprv_strlen ( POSIX_VALUE ) ) {\n var = ( VariantListEntry * ) uprv_malloc ( sizeof ( VariantListEntry ) ) ;\n if ( var == NULL ) {\n * status = U_MEMORY_ALLOCATION_ERROR ;\n break ;\n }\n var -> variant = pVar ;\n if ( ! _addVariantToList ( & varFirst , var ) ) {\n uprv_free ( var ) ;\n if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n break ;\n }\n }\n }\n else {\n * hadPosix = TRUE ;\n }\n }\n else if ( strict ) {\n * status = U_ILLEGAL_ARGUMENT_ERROR ;\n break ;\n }\n else if ( _isPrivateuseValueSubtag ( pVar , - 1 ) ) {\n break ;\n }\n }\n pVar = NULL ;\n }\n else if ( pVar == NULL ) {\n pVar = p ;\n }\n p ++ ;\n }\n if ( U_SUCCESS ( * status ) ) {\n if ( varFirst != NULL ) {\n int32_t varLen ;\n var = varFirst ;\n while ( var != NULL ) {\n if ( reslen < capacity ) {\n * ( appendAt + reslen ) = SEP ;\n }\n reslen ++ ;\n varLen = ( int32_t ) uprv_strlen ( var -> variant ) ;\n if ( reslen < capacity ) {\n uprv_memcpy ( appendAt + reslen , var -> variant , uprv_min ( varLen , capacity - reslen ) ) ;\n }\n reslen += varLen ;\n var = var -> next ;\n }\n }\n }\n var = varFirst ;\n while ( var != NULL ) {\n VariantListEntry * tmpVar = var -> next ;\n uprv_free ( var ) ;\n var = tmpVar ;\n }\n if ( U_FAILURE ( * status ) ) {\n return 0 ;\n }\n }\n u_terminateChars ( appendAt , capacity , reslen , status ) ;\n return reslen ;\n }"}
{"idx": 14560, "target": 0, "func": "static PyObject * authGSSClientUnwrap ( PyObject * self , PyObject * args ) {\n gss_client_state * state ;\n PyObject * pystate ;\n char * challenge = NULL ;\n int result = 0 ;\n if ( ! PyArg_ParseTuple ( args , \"Os\" , & pystate , & challenge ) ) return NULL ;\n # if PY_MAJOR_VERSION >= 3 if ( ! PyCapsule_CheckExact ( pystate ) ) {\n # else if ( ! PyCObject_Check ( pystate ) ) {\n # endif PyErr_SetString ( PyExc_TypeError , \"Expected a context object\" ) ;\n return NULL ;\n }\n # if PY_MAJOR_VERSION >= 3 state = PyCapsule_GetPointer ( pystate , NULL ) ;\n # else state = ( gss_client_state * ) PyCObject_AsVoidPtr ( pystate ) ;\n # endif if ( state == NULL ) return NULL ;\n result = authenticate_gss_client_unwrap ( state , challenge ) ;\n if ( result == AUTH_GSS_ERROR ) return NULL ;\n return Py_BuildValue ( \"i\" , result ) ;\n }"}
{"idx": 14561, "target": 0, "func": "static bool contain_nonstrict_functions_walker ( Node * node , void * context ) {\n if ( node == NULL ) return false ;\n if ( IsA ( node , Aggref ) ) {\n return true ;\n }\n if ( IsA ( node , GroupingFunc ) ) {\n return true ;\n }\n if ( IsA ( node , WindowFunc ) ) {\n return true ;\n }\n if ( IsA ( node , ArrayRef ) ) {\n if ( ( ( ArrayRef * ) node ) -> refassgnexpr != NULL ) return true ;\n }\n if ( IsA ( node , DistinctExpr ) ) {\n return true ;\n }\n if ( IsA ( node , NullIfExpr ) ) {\n return true ;\n }\n if ( IsA ( node , BoolExpr ) ) {\n BoolExpr * expr = ( BoolExpr * ) node ;\n switch ( expr -> boolop ) {\n case AND_EXPR : case OR_EXPR : return true ;\n default : break ;\n }\n }\n if ( IsA ( node , SubLink ) ) {\n return true ;\n }\n if ( IsA ( node , SubPlan ) ) return true ;\n if ( IsA ( node , AlternativeSubPlan ) ) return true ;\n if ( IsA ( node , FieldStore ) ) return true ;\n if ( IsA ( node , CaseExpr ) ) return true ;\n if ( IsA ( node , ArrayExpr ) ) return true ;\n if ( IsA ( node , RowExpr ) ) return true ;\n if ( IsA ( node , RowCompareExpr ) ) return true ;\n if ( IsA ( node , CoalesceExpr ) ) return true ;\n if ( IsA ( node , MinMaxExpr ) ) return true ;\n if ( IsA ( node , XmlExpr ) ) return true ;\n if ( IsA ( node , NullTest ) ) return true ;\n if ( IsA ( node , BooleanTest ) ) return true ;\n if ( ! IsA ( node , ArrayCoerceExpr ) && check_functions_in_node ( node , contain_nonstrict_functions_checker , context ) ) return true ;\n return expression_tree_walker ( node , contain_nonstrict_functions_walker , context ) ;\n }"}
{"idx": 14562, "target": 0, "func": "static const char * unsigned64_avp ( diam_ctx_t * c , diam_avp_t * a , tvbuff_t * tvb , diam_sub_dis_t * diam_sub_dis_inf _U_ ) {\n char * label = NULL ;\n proto_item * pi ;\n gint length = tvb_reported_length ( tvb ) ;\n if ( length == 8 ) {\n if ( c -> tree ) {\n pi = proto_tree_add_item ( c -> tree , a -> hf_value , tvb , 0 , length , ENC_BIG_ENDIAN ) ;\n label = ( char * ) wmem_alloc ( wmem_packet_scope ( ) , ITEM_LABEL_LENGTH + 1 ) ;\n proto_item_fill_label ( PITEM_FINFO ( pi ) , label ) ;\n label = strstr ( label , \": \" ) + 2 ;\n }\n }\n else {\n pi = proto_tree_add_bytes_format ( c -> tree , hf_diameter_avp_data_wrong_length , tvb , 0 , length , NULL , \"Error! Bad Unsigned64 Length\" ) ;\n expert_add_info_format ( c -> pinfo , pi , & ei_diameter_avp_len , \"Bad Unsigned64 Length (%u)\" , length ) ;\n PROTO_ITEM_SET_GENERATED ( pi ) ;\n }\n return label ;\n }"}
{"idx": 14563, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FullscreenControllerInteractiveTest , DISABLED_TestTabExitsFullscreenOnGoBack ) {\n ASSERT_TRUE ( test_server ( ) -> Start ( ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , GURL ( \"about:blank\" ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , GURL ( \"chrome:/ewtab\" ) ) ;\n ASSERT_NO_FATAL_FAILURE ( ToggleTabFullscreen ( true ) ) ;\n GoBack ( ) ;\n ASSERT_FALSE ( browser ( ) -> window ( ) -> IsFullscreen ( ) ) ;\n }"}
{"idx": 14564, "target": 0, "func": "int jbig2_text_region ( Jbig2Ctx * ctx , Jbig2Segment * segment , const byte * segment_data ) {\n uint32_t offset = 0 ;\n Jbig2RegionSegmentInfo region_info ;\n Jbig2TextRegionParams params ;\n Jbig2Image * image = NULL ;\n Jbig2SymbolDict * * dicts = NULL ;\n uint32_t n_dicts = 0 ;\n uint16_t flags = 0 ;\n uint16_t huffman_flags = 0 ;\n Jbig2ArithCx * GR_stats = NULL ;\n int code = 0 ;\n Jbig2WordStream * ws = NULL ;\n Jbig2ArithState * as = NULL ;\n uint32_t table_index = 0 ;\n const Jbig2HuffmanParams * huffman_params = NULL ;\n if ( segment -> data_length < 17 ) goto too_short ;\n jbig2_get_region_segment_info ( & region_info , segment_data ) ;\n offset += 17 ;\n flags = jbig2_get_uint16 ( segment_data + offset ) ;\n offset += 2 ;\n jbig2_error ( ctx , JBIG2_SEVERITY_DEBUG , segment -> number , \"text region header flags 0x%04x\" , flags ) ;\n memset ( & params , 0 , sizeof ( Jbig2TextRegionParams ) ) ;\n params . SBHUFF = flags & 0x0001 ;\n params . SBREFINE = flags & 0x0002 ;\n params . LOGSBSTRIPS = ( flags & 0x000c ) >> 2 ;\n params . SBSTRIPS = 1 << params . LOGSBSTRIPS ;\n params . REFCORNER = ( Jbig2RefCorner ) ( ( flags & 0x0030 ) >> 4 ) ;\n params . TRANSPOSED = flags & 0x0040 ;\n params . SBCOMBOP = ( Jbig2ComposeOp ) ( ( flags & 0x0180 ) >> 7 ) ;\n params . SBDEFPIXEL = flags & 0x0200 ;\n params . SBDSOFFSET = ( flags & 0x7C00 ) >> 10 ;\n if ( params . SBDSOFFSET > 0x0f ) params . SBDSOFFSET -= 0x20 ;\n params . SBRTEMPLATE = flags & 0x8000 ;\n if ( params . SBDSOFFSET ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_DEBUG , segment -> number , \"text region has SBDSOFFSET %d\" , params . SBDSOFFSET ) ;\n }\n if ( params . SBHUFF ) {\n huffman_flags = jbig2_get_uint16 ( segment_data + offset ) ;\n offset += 2 ;\n if ( huffman_flags & 0x8000 ) jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"reserved bit 15 of text region huffman flags is not zero\" ) ;\n }\n else {\n if ( ( params . SBREFINE ) && ! ( params . SBRTEMPLATE ) ) {\n params . sbrat [ 0 ] = segment_data [ offset ] ;\n params . sbrat [ 1 ] = segment_data [ offset + 1 ] ;\n params . sbrat [ 2 ] = segment_data [ offset + 2 ] ;\n params . sbrat [ 3 ] = segment_data [ offset + 3 ] ;\n offset += 4 ;\n }\n }\n params . SBNUMINSTANCES = jbig2_get_uint32 ( segment_data + offset ) ;\n offset += 4 ;\n if ( params . SBHUFF ) {\n switch ( huffman_flags & 0x0003 ) {\n case 0 : params . SBHUFFFS = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_F ) ;\n break ;\n case 1 : params . SBHUFFFS = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_G ) ;\n break ;\n case 3 : huffman_params = jbig2_find_table ( ctx , segment , table_index ) ;\n if ( huffman_params == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"Custom FS huffman table not found (%d)\" , table_index ) ;\n goto cleanup1 ;\n }\n params . SBHUFFFS = jbig2_build_huffman_table ( ctx , huffman_params ) ;\n ++ table_index ;\n break ;\n case 2 : default : code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"text region specified invalid FS huffman table\" ) ;\n goto cleanup1 ;\n break ;\n }\n if ( params . SBHUFFFS == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"failed to allocate text region specified FS huffman table\" ) ;\n goto cleanup1 ;\n }\n switch ( ( huffman_flags & 0x000c ) >> 2 ) {\n case 0 : params . SBHUFFDS = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_H ) ;\n break ;\n case 1 : params . SBHUFFDS = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_I ) ;\n break ;\n case 2 : params . SBHUFFDS = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_J ) ;\n break ;\n case 3 : huffman_params = jbig2_find_table ( ctx , segment , table_index ) ;\n if ( huffman_params == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"Custom DS huffman table not found (%d)\" , table_index ) ;\n goto cleanup1 ;\n }\n params . SBHUFFDS = jbig2_build_huffman_table ( ctx , huffman_params ) ;\n ++ table_index ;\n break ;\n }\n if ( params . SBHUFFDS == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"failed to allocate text region specified DS huffman table\" ) ;\n goto cleanup1 ;\n }\n switch ( ( huffman_flags & 0x0030 ) >> 4 ) {\n case 0 : params . SBHUFFDT = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_K ) ;\n break ;\n case 1 : params . SBHUFFDT = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_L ) ;\n break ;\n case 2 : params . SBHUFFDT = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_M ) ;\n break ;\n case 3 : huffman_params = jbig2_find_table ( ctx , segment , table_index ) ;\n if ( huffman_params == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"Custom DT huffman table not found (%d)\" , table_index ) ;\n goto cleanup1 ;\n }\n params . SBHUFFDT = jbig2_build_huffman_table ( ctx , huffman_params ) ;\n ++ table_index ;\n break ;\n }\n if ( params . SBHUFFDT == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"failed to allocate text region specified DT huffman table\" ) ;\n goto cleanup1 ;\n }\n switch ( ( huffman_flags & 0x00c0 ) >> 6 ) {\n case 0 : params . SBHUFFRDW = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_N ) ;\n break ;\n case 1 : params . SBHUFFRDW = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_O ) ;\n break ;\n case 3 : huffman_params = jbig2_find_table ( ctx , segment , table_index ) ;\n if ( huffman_params == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"Custom RDW huffman table not found (%d)\" , table_index ) ;\n goto cleanup1 ;\n }\n params . SBHUFFRDW = jbig2_build_huffman_table ( ctx , huffman_params ) ;\n ++ table_index ;\n break ;\n case 2 : default : code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"text region specified invalid RDW huffman table\" ) ;\n goto cleanup1 ;\n break ;\n }\n if ( params . SBHUFFRDW == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"failed to allocate text region specified RDW huffman table\" ) ;\n goto cleanup1 ;\n }\n switch ( ( huffman_flags & 0x0300 ) >> 8 ) {\n case 0 : params . SBHUFFRDH = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_N ) ;\n break ;\n case 1 : params . SBHUFFRDH = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_O ) ;\n break ;\n case 3 : huffman_params = jbig2_find_table ( ctx , segment , table_index ) ;\n if ( huffman_params == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"Custom RDH huffman table not found (%d)\" , table_index ) ;\n goto cleanup1 ;\n }\n params . SBHUFFRDH = jbig2_build_huffman_table ( ctx , huffman_params ) ;\n ++ table_index ;\n break ;\n case 2 : default : code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"text region specified invalid RDH huffman table\" ) ;\n goto cleanup1 ;\n break ;\n }\n if ( params . SBHUFFRDH == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"failed to allocate text region specified RDH huffman table\" ) ;\n goto cleanup1 ;\n }\n switch ( ( huffman_flags & 0x0c00 ) >> 10 ) {\n case 0 : params . SBHUFFRDX = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_N ) ;\n break ;\n case 1 : params . SBHUFFRDX = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_O ) ;\n break ;\n case 3 : huffman_params = jbig2_find_table ( ctx , segment , table_index ) ;\n if ( huffman_params == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"Custom RDX huffman table not found (%d)\" , table_index ) ;\n goto cleanup1 ;\n }\n params . SBHUFFRDX = jbig2_build_huffman_table ( ctx , huffman_params ) ;\n ++ table_index ;\n break ;\n case 2 : default : code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"text region specified invalid RDX huffman table\" ) ;\n goto cleanup1 ;\n break ;\n }\n if ( params . SBHUFFRDX == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"failed to allocate text region specified RDX huffman table\" ) ;\n goto cleanup1 ;\n }\n switch ( ( huffman_flags & 0x3000 ) >> 12 ) {\n case 0 : params . SBHUFFRDY = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_N ) ;\n break ;\n case 1 : params . SBHUFFRDY = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_O ) ;\n break ;\n case 3 : huffman_params = jbig2_find_table ( ctx , segment , table_index ) ;\n if ( huffman_params == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"Custom RDY huffman table not found (%d)\" , table_index ) ;\n goto cleanup1 ;\n }\n params . SBHUFFRDY = jbig2_build_huffman_table ( ctx , huffman_params ) ;\n ++ table_index ;\n break ;\n case 2 : default : code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"text region specified invalid RDY huffman table\" ) ;\n goto cleanup1 ;\n break ;\n }\n if ( params . SBHUFFRDY == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"failed to allocate text region specified RDY huffman table\" ) ;\n goto cleanup1 ;\n }\n switch ( ( huffman_flags & 0x4000 ) >> 14 ) {\n case 0 : params . SBHUFFRSIZE = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_A ) ;\n break ;\n case 1 : huffman_params = jbig2_find_table ( ctx , segment , table_index ) ;\n if ( huffman_params == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"Custom RSIZE huffman table not found (%d)\" , table_index ) ;\n goto cleanup1 ;\n }\n params . SBHUFFRSIZE = jbig2_build_huffman_table ( ctx , huffman_params ) ;\n ++ table_index ;\n break ;\n }\n if ( params . SBHUFFRSIZE == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"failed to allocate text region specified RSIZE huffman table\" ) ;\n goto cleanup1 ;\n }\n if ( huffman_flags & 0x8000 ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"text region huffman flags bit 15 is set, contrary to spec\" ) ;\n }\n }\n jbig2_error ( ctx , JBIG2_SEVERITY_INFO , segment -> number , \"text region: %d x %d @ (%d,%d) %d symbols\" , region_info . width , region_info . height , region_info . x , region_info . y , params . SBNUMINSTANCES ) ;\n n_dicts = jbig2_sd_count_referred ( ctx , segment ) ;\n if ( n_dicts != 0 ) {\n dicts = jbig2_sd_list_referred ( ctx , segment ) ;\n }\n else {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"text region refers to no symbol dictionaries!\" ) ;\n goto cleanup1 ;\n }\n if ( dicts == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"unable to retrive symbol dictionaries! previous parsing error?\" ) ;\n goto cleanup1 ;\n }\n else {\n uint32_t index ;\n if ( dicts [ 0 ] == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"unable to find first referenced symbol dictionary!\" ) ;\n goto cleanup1 ;\n }\n for ( index = 1 ;\n index < n_dicts ;\n index ++ ) if ( dicts [ index ] == NULL ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"unable to find all referenced symbol dictionaries!\" ) ;\n n_dicts = index ;\n }\n }\n {\n int stats_size = params . SBRTEMPLATE ? 1 << 10 : 1 << 13 ;\n GR_stats = jbig2_new ( ctx , Jbig2ArithCx , stats_size ) ;\n if ( GR_stats == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"could not allocate GR_stats\" ) ;\n goto cleanup1 ;\n }\n memset ( GR_stats , 0 , stats_size ) ;\n }\n image = jbig2_image_new ( ctx , region_info . width , region_info . height ) ;\n if ( image == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"couldn't allocate text region image\" ) ;\n goto cleanup2 ;\n }\n ws = jbig2_word_stream_buf_new ( ctx , segment_data + offset , segment -> data_length - offset ) ;\n if ( ws == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"couldn't allocate ws in text region image\" ) ;\n goto cleanup2 ;\n }\n as = jbig2_arith_new ( ctx , ws ) ;\n if ( as == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"couldn't allocate as in text region image\" ) ;\n goto cleanup2 ;\n }\n if ( ! params . SBHUFF ) {\n uint32_t SBSYMCODELEN , index ;\n uint32_t SBNUMSYMS = 0 ;\n for ( index = 0 ;\n index < n_dicts ;\n index ++ ) {\n SBNUMSYMS += dicts [ index ] -> n_symbols ;\n }\n params . IADT = jbig2_arith_int_ctx_new ( ctx ) ;\n params . IAFS = jbig2_arith_int_ctx_new ( ctx ) ;\n params . IADS = jbig2_arith_int_ctx_new ( ctx ) ;\n params . IAIT = jbig2_arith_int_ctx_new ( ctx ) ;\n if ( ( params . IADT == NULL ) || ( params . IAFS == NULL ) || ( params . IADS == NULL ) || ( params . IAIT == NULL ) ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"couldn't allocate text region image data\" ) ;\n goto cleanup3 ;\n }\n for ( SBSYMCODELEN = 0 ;\n ( 1U << SBSYMCODELEN ) < SBNUMSYMS ;\n SBSYMCODELEN ++ ) {\n }\n params . IAID = jbig2_arith_iaid_ctx_new ( ctx , SBSYMCODELEN ) ;\n params . IARI = jbig2_arith_int_ctx_new ( ctx ) ;\n params . IARDW = jbig2_arith_int_ctx_new ( ctx ) ;\n params . IARDH = jbig2_arith_int_ctx_new ( ctx ) ;\n params . IARDX = jbig2_arith_int_ctx_new ( ctx ) ;\n params . IARDY = jbig2_arith_int_ctx_new ( ctx ) ;\n if ( ( params . IAID == NULL ) || ( params . IARI == NULL ) || ( params . IARDW == NULL ) || ( params . IARDH == NULL ) || ( params . IARDX == NULL ) || ( params . IARDY == NULL ) ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"couldn't allocate text region image data\" ) ;\n goto cleanup4 ;\n }\n }\n code = jbig2_decode_text_region ( ctx , segment , & params , ( const Jbig2SymbolDict * const * ) dicts , n_dicts , image , segment_data + offset , segment -> data_length - offset , GR_stats , as , ws ) ;\n if ( code < 0 ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"failed to decode text region image data\" ) ;\n goto cleanup4 ;\n }\n if ( ( segment -> flags & 63 ) == 4 ) {\n segment -> result = jbig2_image_clone ( ctx , image ) ;\n }\n else {\n jbig2_error ( ctx , JBIG2_SEVERITY_DEBUG , segment -> number , \"composing %dx%d decoded text region onto page at (%d, %d)\" , region_info . width , region_info . height , region_info . x , region_info . y ) ;\n jbig2_page_add_result ( ctx , & ctx -> pages [ ctx -> current_page ] , image , region_info . x , region_info . y , region_info . op ) ;\n }\n cleanup4 : if ( ! params . SBHUFF ) {\n jbig2_arith_iaid_ctx_free ( ctx , params . IAID ) ;\n jbig2_arith_int_ctx_free ( ctx , params . IARI ) ;\n jbig2_arith_int_ctx_free ( ctx , params . IARDW ) ;\n jbig2_arith_int_ctx_free ( ctx , params . IARDH ) ;\n jbig2_arith_int_ctx_free ( ctx , params . IARDX ) ;\n jbig2_arith_int_ctx_free ( ctx , params . IARDY ) ;\n }\n cleanup3 : if ( ! params . SBHUFF ) {\n jbig2_arith_int_ctx_free ( ctx , params . IADT ) ;\n jbig2_arith_int_ctx_free ( ctx , params . IAFS ) ;\n jbig2_arith_int_ctx_free ( ctx , params . IADS ) ;\n jbig2_arith_int_ctx_free ( ctx , params . IAIT ) ;\n }\n jbig2_free ( ctx -> allocator , as ) ;\n jbig2_word_stream_buf_free ( ctx , ws ) ;\n cleanup2 : jbig2_free ( ctx -> allocator , GR_stats ) ;\n jbig2_image_release ( ctx , image ) ;\n cleanup1 : if ( params . SBHUFF ) {\n jbig2_release_huffman_table ( ctx , params . SBHUFFFS ) ;\n jbig2_release_huffman_table ( ctx , params . SBHUFFDS ) ;\n jbig2_release_huffman_table ( ctx , params . SBHUFFDT ) ;\n jbig2_release_huffman_table ( ctx , params . SBHUFFRDX ) ;\n jbig2_release_huffman_table ( ctx , params . SBHUFFRDY ) ;\n jbig2_release_huffman_table ( ctx , params . SBHUFFRDW ) ;\n jbig2_release_huffman_table ( ctx , params . SBHUFFRDH ) ;\n jbig2_release_huffman_table ( ctx , params . SBHUFFRSIZE ) ;\n }\n jbig2_free ( ctx -> allocator , dicts ) ;\n return code ;\n too_short : return jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"Segment too short\" ) ;\n }"}
{"idx": 14565, "target": 0, "func": "static void wait_for_signal_thread_to_end ( ) {\n uint i ;\n for ( i = 0 ;\n i < 100 && signal_thread_in_use ;\n i ++ ) {\n if ( pthread_kill ( signal_thread , MYSQL_KILL_SIGNAL ) == ESRCH ) break ;\n my_sleep ( 100 ) ;\n }\n }"}
{"idx": 14566, "target": 0, "func": "static void recheck_cast_function_args ( List * args , Oid result_type , HeapTuple func_tuple ) {\n Form_pg_proc funcform = ( Form_pg_proc ) GETSTRUCT ( func_tuple ) ;\n int nargs ;\n Oid actual_arg_types [ FUNC_MAX_ARGS ] ;\n Oid declared_arg_types [ FUNC_MAX_ARGS ] ;\n Oid rettype ;\n ListCell * lc ;\n if ( list_length ( args ) > FUNC_MAX_ARGS ) elog ( ERROR , \"too many function arguments\" ) ;\n nargs = 0 ;\n foreach ( lc , args ) {\n actual_arg_types [ nargs ++ ] = exprType ( ( Node * ) lfirst ( lc ) ) ;\n }\n Assert ( nargs == funcform -> pronargs ) ;\n memcpy ( declared_arg_types , funcform -> proargtypes . values , funcform -> pronargs * sizeof ( Oid ) ) ;\n rettype = enforce_generic_type_consistency ( actual_arg_types , declared_arg_types , nargs , funcform -> prorettype , false ) ;\n if ( rettype != result_type ) elog ( ERROR , \"function's resolved result type changed during planning\" ) ;\n make_fn_arguments ( NULL , args , actual_arg_types , declared_arg_types ) ;\n }"}
{"idx": 14567, "target": 0, "func": "static int h264_handle_packet_fu_a ( AVFormatContext * ctx , PayloadContext * data , AVPacket * pkt , const uint8_t * buf , int len , int * nal_counters , int nal_mask ) {\n uint8_t fu_indicator , fu_header , start_bit , nal_type , nal ;\n if ( len < 3 ) {\n av_log ( ctx , AV_LOG_ERROR , \"Too short data for FU-A H.264 RTP packet\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n fu_indicator = buf [ 0 ] ;\n fu_header = buf [ 1 ] ;\n start_bit = fu_header >> 7 ;\n nal_type = fu_header & 0x1f ;\n nal = fu_indicator & 0xe0 | nal_type ;\n buf += 2 ;\n len -= 2 ;\n if ( start_bit && nal_counters ) nal_counters [ nal_type & nal_mask ] ++ ;\n return ff_h264_handle_frag_packet ( pkt , buf , len , start_bit , & nal , 1 ) ;\n }"}
{"idx": 14568, "target": 0, "func": "int dtls1_shutdown ( SSL * s ) {\n int ret ;\n # ifndef OPENSSL_NO_SCTP if ( BIO_dgram_is_sctp ( SSL_get_wbio ( s ) ) && ! ( s -> shutdown & SSL_SENT_SHUTDOWN ) ) {\n ret = BIO_dgram_sctp_wait_for_dry ( SSL_get_wbio ( s ) ) ;\n if ( ret < 0 ) return - 1 ;\n if ( ret == 0 ) BIO_ctrl ( SSL_get_wbio ( s ) , BIO_CTRL_DGRAM_SCTP_SAVE_SHUTDOWN , 1 , NULL ) ;\n }\n # endif ret = ssl3_shutdown ( s ) ;\n # ifndef OPENSSL_NO_SCTP BIO_ctrl ( SSL_get_wbio ( s ) , BIO_CTRL_DGRAM_SCTP_SAVE_SHUTDOWN , 0 , NULL ) ;\n # endif return ret ;\n }"}
{"idx": 14569, "target": 0, "func": "static void DOT ( void ) {\n XPR ( NTR \".\" ) ;\n }"}
{"idx": 14570, "target": 0, "func": "static void openpic_msi_write ( void * opaque , hwaddr addr , uint64_t val , unsigned size ) {\n OpenPICState * opp = opaque ;\n int idx = opp -> irq_msi ;\n int srs , ibs ;\n DPRINTF ( \"%s: addr %#\" HWADDR_PRIx \" <= 0x%08\" PRIx64 \"\\n\" , __func__ , addr , val ) ;\n if ( addr & 0xF ) {\n return ;\n }\n switch ( addr ) {\n case MSIIR_OFFSET : srs = val >> MSIIR_SRS_SHIFT ;\n idx += srs ;\n ibs = ( val & MSIIR_IBS_MASK ) >> MSIIR_IBS_SHIFT ;\n opp -> msi [ srs ] . msir |= 1 << ibs ;\n openpic_set_irq ( opp , idx , 1 ) ;\n break ;\n default : break ;\n }\n }"}
{"idx": 14571, "target": 0, "func": "static int calc_add_mv ( RV34DecContext * r , int dir , int val ) {\n int mul = dir ? - r -> mv_weight2 : r -> mv_weight1 ;\n return ( val * mul + 0x2000 ) >> 14 ;\n }"}
{"idx": 14572, "target": 0, "func": "TEST_F ( TemplateURLTest , ParseParameterKnown ) {\n std : : string parsed_url ( \"{\nsearchTerms}\n\" ) ;\n TemplateURLData data ;\n data . SetURL ( parsed_url ) ;\n TemplateURL url ( data ) ;\n TemplateURLRef : : Replacements replacements ;\n EXPECT_TRUE ( url . url_ref ( ) . ParseParameter ( 0 , 12 , & parsed_url , & replacements ) ) ;\n EXPECT_EQ ( std : : string ( ) , parsed_url ) ;\n ASSERT_EQ ( 1U , replacements . size ( ) ) ;\n EXPECT_EQ ( 0U , replacements [ 0 ] . index ) ;\n EXPECT_EQ ( TemplateURLRef : : SEARCH_TERMS , replacements [ 0 ] . type ) ;\n }"}
{"idx": 14573, "target": 0, "func": "bool cephx_build_service_ticket_blob ( CephContext * cct , CephXSessionAuthInfo & info , CephXTicketBlob & blob ) {\n CephXServiceTicketInfo ticket_info ;\n ticket_info . session_key = info . session_key ;\n ticket_info . ticket = info . ticket ;\n ticket_info . ticket . caps = info . ticket . caps ;\n ldout ( cct , 10 ) << \"build_service_ticket service \" << ceph_entity_type_name ( info . service_id ) << \" secret_id \" << info . secret_id << \" ticket_info.ticket.name=\" << ticket_info . ticket . name . to_str ( ) << dendl ;\n blob . secret_id = info . secret_id ;\n std : : string error ;\n if ( ! info . service_secret . get_secret ( ) . length ( ) ) error = \"invalid key\" ;\n else encode_encrypt_enc_bl ( cct , ticket_info , info . service_secret , blob . blob , error ) ;\n if ( ! error . empty ( ) ) {\n ldout ( cct , - 1 ) << \"cephx_build_service_ticket_blob failed with error \" << error << dendl ;\n return false ;\n }\n return true ;\n }"}
{"idx": 14574, "target": 0, "func": "static int h263p_decode_umotion ( MpegEncContext * s , int pred ) {\n int code = 0 , sign ;\n if ( get_bits1 ( & s -> gb ) ) return pred ;\n code = 2 + get_bits1 ( & s -> gb ) ;\n while ( get_bits1 ( & s -> gb ) ) {\n code <<= 1 ;\n code += get_bits1 ( & s -> gb ) ;\n }\n sign = code & 1 ;\n code >>= 1 ;\n code = ( sign ) ? ( pred - code ) : ( pred + code ) ;\n av_dlog ( s -> avctx , \"H.263+ UMV Motion = %d\\n\" , code ) ;\n return code ;\n }"}
{"idx": 14575, "target": 1, "func": "static int cook_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n COOKContext * q = avctx -> priv_data ;\n float * * samples = NULL ;\n int i , ret ;\n int offset = 0 ;\n int chidx = 0 ;\n if ( buf_size < avctx -> block_align ) return buf_size ;\n if ( q -> discarded_packets >= 2 ) {\n frame -> nb_samples = q -> samples_per_channel ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n samples = ( float * * ) frame -> extended_data ;\n }\n q -> subpacket [ 0 ] . size = avctx -> block_align ;\n for ( i = 1 ;\n i < q -> num_subpackets ;\n i ++ ) {\n q -> subpacket [ i ] . size = 2 * buf [ avctx -> block_align - q -> num_subpackets + i ] ;\n q -> subpacket [ 0 ] . size -= q -> subpacket [ i ] . size + 1 ;\n if ( q -> subpacket [ 0 ] . size < 0 ) {\n av_log ( avctx , AV_LOG_DEBUG , \"frame subpacket size total > avctx->block_align!\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n for ( i = 0 ;\n i < q -> num_subpackets ;\n i ++ ) {\n q -> subpacket [ i ] . bits_per_subpacket = ( q -> subpacket [ i ] . size * 8 ) >> q -> subpacket [ i ] . bits_per_subpdiv ;\n q -> subpacket [ i ] . ch_idx = chidx ;\n av_log ( avctx , AV_LOG_DEBUG , \"subpacket[%i] size %i js %i %i block_align %i\\n\" , i , q -> subpacket [ i ] . size , q -> subpacket [ i ] . joint_stereo , offset , avctx -> block_align ) ;\n if ( ( ret = decode_subpacket ( q , & q -> subpacket [ i ] , buf + offset , samples ) ) < 0 ) return ret ;\n offset += q -> subpacket [ i ] . size ;\n chidx += q -> subpacket [ i ] . num_channels ;\n av_log ( avctx , AV_LOG_DEBUG , \"subpacket[%i] %i %i\\n\" , i , q -> subpacket [ i ] . size * 8 , get_bits_count ( & q -> gb ) ) ;\n }\n if ( q -> discarded_packets < 2 ) {\n q -> discarded_packets ++ ;\n * got_frame_ptr = 0 ;\n return avctx -> block_align ;\n }\n * got_frame_ptr = 1 ;\n return avctx -> block_align ;\n }"}
{"idx": 14576, "target": 0, "func": "void mpi_set_secure ( MPI a ) {\n mpi_ptr_t ap , bp ;\n if ( ( a -> flags & 1 ) ) return ;\n a -> flags |= 1 ;\n ap = a -> d ;\n if ( ! a -> nlimbs ) {\n assert ( ! ap ) ;\n return ;\n }\n # ifdef M_DEBUG bp = mpi_debug_alloc_limb_space ( a -> nlimbs , 1 , \"set_secure\" ) ;\n # else bp = mpi_alloc_limb_space ( a -> nlimbs , 1 ) ;\n # endif MPN_COPY ( bp , ap , a -> nlimbs ) ;\n a -> d = bp ;\n # ifdef M_DEBUG mpi_debug_free_limb_space ( ap , \"set_secure\" ) ;\n # else mpi_free_limb_space ( ap ) ;\n # endif }"}
{"idx": 14577, "target": 0, "func": "static void InitXCFImage ( XCFLayerInfo * outLayer , ExceptionInfo * exception ) {\n outLayer -> image -> page . x = outLayer -> offset_x ;\n outLayer -> image -> page . y = outLayer -> offset_y ;\n outLayer -> image -> page . width = outLayer -> width ;\n outLayer -> image -> page . height = outLayer -> height ;\n ( void ) SetImageProperty ( outLayer -> image , \"label\" , ( char * ) outLayer -> name , exception ) ;\n }"}
{"idx": 14578, "target": 0, "func": "static void mysqld_exit ( int exit_code ) {\n wait_for_signal_thread_to_end ( ) ;\n mysql_audit_finalize ( ) ;\n clean_up_mutexes ( ) ;\n clean_up_error_log_mutex ( ) ;\n my_end ( ( opt_endinfo ? MY_CHECK_ERROR | MY_GIVE_INFO : 0 ) ) ;\n # ifdef WITH_PERFSCHEMA_STORAGE_ENGINE shutdown_performance_schema ( ) ;\n # endif exit ( exit_code ) ;\n }"}
{"idx": 14579, "target": 0, "func": "DEFINE_TEST ( test_read_format_mtree_filenames_only ) {\n static char archive [ ] = \"/set type=file mode=0644\\n\" \"./a\\n\" \"./b\\n\" \"./c\\n\" \"./d\\n\" \"./e\\n\" \"./f mode=0444\\n\" ;\n struct archive_entry * ae ;\n struct archive * a ;\n assertMakeFile ( \"file\" , 0644 , \"file contents\" ) ;\n assert ( ( a = archive_read_new ( ) ) != NULL ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_support_filter_all ( a ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_support_format_all ( a ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_set_options ( a , \"mtree:checkfs\" ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_open_memory ( a , archive , sizeof ( archive ) ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"./a\" ) ;\n assertEqualInt ( archive_entry_mode ( ae ) , AE_IFREG | 0644 ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"./b\" ) ;\n assertEqualInt ( archive_entry_mode ( ae ) , AE_IFREG | 0644 ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"./c\" ) ;\n assertEqualInt ( archive_entry_mode ( ae ) , AE_IFREG | 0644 ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"./d\" ) ;\n assertEqualInt ( archive_entry_mode ( ae ) , AE_IFREG | 0644 ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"./e\" ) ;\n assertEqualInt ( archive_entry_mode ( ae ) , AE_IFREG | 0644 ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"./f\" ) ;\n assertEqualInt ( archive_entry_mode ( ae ) , AE_IFREG | 0444 ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_EOF , archive_read_next_header ( a , & ae ) ) ;\n assertEqualInt ( 6 , archive_file_count ( a ) ) ;\n assertEqualInt ( ARCHIVE_OK , archive_read_close ( a ) ) ;\n assertEqualInt ( ARCHIVE_OK , archive_read_free ( a ) ) ;\n }"}
{"idx": 14580, "target": 0, "func": "void BrotliStateInitWithCustomAllocators ( BrotliState * s , brotli_alloc_func alloc_func , brotli_free_func free_func , void * opaque ) {\n if ( ! alloc_func ) {\n s -> alloc_func = DefaultAllocFunc ;\n s -> free_func = DefaultFreeFunc ;\n s -> memory_manager_opaque = 0 ;\n }\n else {\n s -> alloc_func = alloc_func ;\n s -> free_func = free_func ;\n s -> memory_manager_opaque = opaque ;\n }\n BrotliInitBitReader ( & s -> br ) ;\n s -> state = BROTLI_STATE_UNINITED ;\n s -> substate_metablock_header = BROTLI_STATE_METABLOCK_HEADER_NONE ;\n s -> substate_tree_group = BROTLI_STATE_TREE_GROUP_NONE ;\n s -> substate_context_map = BROTLI_STATE_CONTEXT_MAP_NONE ;\n s -> substate_uncompressed = BROTLI_STATE_UNCOMPRESSED_NONE ;\n s -> substate_huffman = BROTLI_STATE_HUFFMAN_NONE ;\n s -> substate_decode_uint8 = BROTLI_STATE_DECODE_UINT8_NONE ;\n s -> substate_read_block_length = BROTLI_STATE_READ_BLOCK_LENGTH_NONE ;\n s -> buffer_length = 0 ;\n s -> loop_counter = 0 ;\n s -> pos = 0 ;\n s -> rb_roundtrips = 0 ;\n s -> partial_pos_out = 0 ;\n s -> block_type_trees = NULL ;\n s -> block_len_trees = NULL ;\n s -> ringbuffer = NULL ;\n s -> context_map = NULL ;\n s -> context_modes = NULL ;\n s -> dist_context_map = NULL ;\n s -> context_map_slice = NULL ;\n s -> dist_context_map_slice = NULL ;\n s -> sub_loop_counter = 0 ;\n s -> literal_hgroup . codes = NULL ;\n s -> literal_hgroup . htrees = NULL ;\n s -> insert_copy_hgroup . codes = NULL ;\n s -> insert_copy_hgroup . htrees = NULL ;\n s -> distance_hgroup . codes = NULL ;\n s -> distance_hgroup . htrees = NULL ;\n s -> custom_dict = NULL ;\n s -> custom_dict_size = 0 ;\n s -> is_last_metablock = 0 ;\n s -> window_bits = 0 ;\n s -> max_distance = 0 ;\n s -> dist_rb [ 0 ] = 16 ;\n s -> dist_rb [ 1 ] = 15 ;\n s -> dist_rb [ 2 ] = 11 ;\n s -> dist_rb [ 3 ] = 4 ;\n s -> dist_rb_idx = 0 ;\n s -> block_type_trees = NULL ;\n s -> block_len_trees = NULL ;\n s -> symbol_lists = & s -> symbols_lists_array [ BROTLI_HUFFMAN_MAX_CODE_LENGTH + 1 ] ;\n s -> mtf_upper_bound = 255 ;\n }"}
{"idx": 14581, "target": 0, "func": "static int kadmin_parse_princ_args ( int argc , char * argv [ ] , kadm5_principal_ent_t oprinc , long * mask , char * * pass , krb5_boolean * randkey , krb5_key_salt_tuple * * ks_tuple , int * n_ks_tuple , char * caller ) {\n int i , attrib_set ;\n size_t j ;\n time_t date ;\n time_t now ;\n krb5_error_code retval ;\n * mask = 0 ;\n * pass = NULL ;\n * n_ks_tuple = 0 ;\n * ks_tuple = NULL ;\n time ( & now ) ;\n * randkey = FALSE ;\n for ( i = 1 ;\n i < argc - 1 ;\n i ++ ) {\n attrib_set = 0 ;\n if ( ! strcmp ( \"-x\" , argv [ i ] ) ) {\n if ( ++ i > argc - 2 ) return - 1 ;\n add_tl_data ( & oprinc -> n_tl_data , & oprinc -> tl_data , KRB5_TL_DB_ARGS , strlen ( argv [ i ] ) + 1 , ( krb5_octet * ) argv [ i ] ) ;\n * mask |= KADM5_TL_DATA ;\n continue ;\n }\n if ( ! strcmp ( \"-expire\" , argv [ i ] ) ) {\n if ( ++ i > argc - 2 ) return - 1 ;\n date = get_date ( argv [ i ] ) ;\n if ( date == ( time_t ) - 1 ) {\n fprintf ( stderr , _ ( \"Invalid date specification \\\"%s\\\".\\n\" ) , argv [ i ] ) ;\n return - 1 ;\n }\n oprinc -> princ_expire_time = date ;\n * mask |= KADM5_PRINC_EXPIRE_TIME ;\n continue ;\n }\n if ( ! strcmp ( \"-pwexpire\" , argv [ i ] ) ) {\n if ( ++ i > argc - 2 ) return - 1 ;\n date = get_date ( argv [ i ] ) ;\n if ( date == ( time_t ) - 1 ) {\n fprintf ( stderr , _ ( \"Invalid date specification \\\"%s\\\".\\n\" ) , argv [ i ] ) ;\n return - 1 ;\n }\n oprinc -> pw_expiration = date ;\n * mask |= KADM5_PW_EXPIRATION ;\n continue ;\n }\n if ( ! strcmp ( \"-maxlife\" , argv [ i ] ) ) {\n if ( ++ i > argc - 2 ) return - 1 ;\n date = get_date ( argv [ i ] ) ;\n if ( date == ( time_t ) - 1 ) {\n fprintf ( stderr , _ ( \"Invalid date specification \\\"%s\\\".\\n\" ) , argv [ i ] ) ;\n return - 1 ;\n }\n oprinc -> max_life = date - now ;\n * mask |= KADM5_MAX_LIFE ;\n continue ;\n }\n if ( ! strcmp ( \"-maxrenewlife\" , argv [ i ] ) ) {\n if ( ++ i > argc - 2 ) return - 1 ;\n date = get_date ( argv [ i ] ) ;\n if ( date == ( time_t ) - 1 ) {\n fprintf ( stderr , _ ( \"Invalid date specification \\\"%s\\\".\\n\" ) , argv [ i ] ) ;\n return - 1 ;\n }\n oprinc -> max_renewable_life = date - now ;\n * mask |= KADM5_MAX_RLIFE ;\n continue ;\n }\n if ( ! strcmp ( \"-kvno\" , argv [ i ] ) ) {\n if ( ++ i > argc - 2 ) return - 1 ;\n oprinc -> kvno = atoi ( argv [ i ] ) ;\n * mask |= KADM5_KVNO ;\n continue ;\n }\n if ( ! strcmp ( \"-policy\" , argv [ i ] ) ) {\n if ( ++ i > argc - 2 ) return - 1 ;\n oprinc -> policy = argv [ i ] ;\n * mask |= KADM5_POLICY ;\n continue ;\n }\n if ( ! strcmp ( \"-clearpolicy\" , argv [ i ] ) ) {\n oprinc -> policy = NULL ;\n * mask |= KADM5_POLICY_CLR ;\n continue ;\n }\n if ( ! strcmp ( \"-pw\" , argv [ i ] ) ) {\n if ( ++ i > argc - 2 ) return - 1 ;\n * pass = argv [ i ] ;\n continue ;\n }\n if ( ! strcmp ( \"-randkey\" , argv [ i ] ) ) {\n * randkey = TRUE ;\n continue ;\n }\n if ( ! strcmp ( \"-unlock\" , argv [ i ] ) ) {\n unlock_princ ( oprinc , mask , caller ) ;\n continue ;\n }\n if ( ! strcmp ( \"-e\" , argv [ i ] ) ) {\n if ( ++ i > argc - 2 ) return - 1 ;\n retval = krb5_string_to_keysalts ( argv [ i ] , \", \\t\" , \":.-\" , 0 , ks_tuple , n_ks_tuple ) ;\n if ( retval ) {\n com_err ( caller , retval , _ ( \"while parsing keysalts %s\" ) , argv [ i ] ) ;\n return - 1 ;\n }\n continue ;\n }\n for ( j = 0 ;\n j < sizeof ( flags ) / sizeof ( struct pflag ) ;\n j ++ ) {\n if ( strlen ( argv [ i ] ) == flags [ j ] . flaglen + 1 && ! strcmp ( flags [ j ] . flagname , & argv [ i ] [ 1 ] ) ) {\n if ( ( flags [ j ] . set && argv [ i ] [ 0 ] == '-' ) || ( ! flags [ j ] . set && argv [ i ] [ 0 ] == '+' ) ) {\n oprinc -> attributes |= flags [ j ] . theflag ;\n * mask |= KADM5_ATTRIBUTES ;\n attrib_set ++ ;\n break ;\n }\n else if ( ( flags [ j ] . set && argv [ i ] [ 0 ] == '+' ) || ( ! flags [ j ] . set && argv [ i ] [ 0 ] == '-' ) ) {\n oprinc -> attributes &= ~ flags [ j ] . theflag ;\n * mask |= KADM5_ATTRIBUTES ;\n attrib_set ++ ;\n break ;\n }\n else {\n return - 1 ;\n }\n }\n }\n if ( ! attrib_set ) return - 1 ;\n }\n if ( i != argc - 1 ) return - 1 ;\n retval = kadmin_parse_name ( argv [ i ] , & oprinc -> principal ) ;\n if ( retval ) {\n com_err ( caller , retval , _ ( \"while parsing principal\" ) ) ;\n return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 14582, "target": 1, "func": "SPL_METHOD ( DirectoryIterator , getFilename ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n RETURN_STRING ( intern -> u . dir . entry . d_name , 1 ) ;\n }"}
{"idx": 14583, "target": 0, "func": "static int dissect_nlm1_granted ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n return dissect_nlm_granted ( tvb , 0 , pinfo , tree , 1 , ( rpc_call_info_value * ) data ) ;\n }"}
{"idx": 14584, "target": 0, "func": "static int releaseintf ( struct usb_dev_state * ps , unsigned int ifnum ) {\n struct usb_device * dev ;\n struct usb_interface * intf ;\n int err ;\n err = - EINVAL ;\n if ( ifnum >= 8 * sizeof ( ps -> ifclaimed ) ) return err ;\n dev = ps -> dev ;\n intf = usb_ifnum_to_if ( dev , ifnum ) ;\n if ( ! intf ) err = - ENOENT ;\n else if ( test_and_clear_bit ( ifnum , & ps -> ifclaimed ) ) {\n usb_driver_release_interface ( & usbfs_driver , intf ) ;\n err = 0 ;\n }\n return err ;\n }"}
{"idx": 14585, "target": 0, "func": "static cmsBool Type_XYZ_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) {\n return _cmsWriteXYZNumber ( io , ( cmsCIEXYZ * ) Ptr ) ;\n cmsUNUSED_PARAMETER ( nItems ) ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 14586, "target": 0, "func": "int ff_mpeg_update_thread_context ( AVCodecContext * dst , const AVCodecContext * src ) {\n int i , ret ;\n MpegEncContext * s = dst -> priv_data , * s1 = src -> priv_data ;\n if ( dst == src || ! s1 -> context_initialized ) return 0 ;\n if ( ! s -> context_initialized ) {\n memcpy ( s , s1 , sizeof ( MpegEncContext ) ) ;\n s -> avctx = dst ;\n s -> bitstream_buffer = NULL ;\n s -> bitstream_buffer_size = s -> allocated_bitstream_buffer_size = 0 ;\n ff_MPV_common_init ( s ) ;\n }\n if ( s -> height != s1 -> height || s -> width != s1 -> width || s -> context_reinit ) {\n int err ;\n s -> context_reinit = 0 ;\n s -> height = s1 -> height ;\n s -> width = s1 -> width ;\n if ( ( err = ff_MPV_common_frame_size_change ( s ) ) < 0 ) return err ;\n }\n s -> avctx -> coded_height = s1 -> avctx -> coded_height ;\n s -> avctx -> coded_width = s1 -> avctx -> coded_width ;\n s -> avctx -> width = s1 -> avctx -> width ;\n s -> avctx -> height = s1 -> avctx -> height ;\n s -> coded_picture_number = s1 -> coded_picture_number ;\n s -> picture_number = s1 -> picture_number ;\n s -> input_picture_number = s1 -> input_picture_number ;\n for ( i = 0 ;\n i < MAX_PICTURE_COUNT ;\n i ++ ) {\n ff_mpeg_unref_picture ( s , & s -> picture [ i ] ) ;\n if ( s1 -> picture [ i ] . f . data [ 0 ] && ( ret = ff_mpeg_ref_picture ( s , & s -> picture [ i ] , & s1 -> picture [ i ] ) ) < 0 ) return ret ;\n }\n # define UPDATE_PICTURE ( pic ) do {\n ff_mpeg_unref_picture ( s , & s -> pic ) ;\n if ( s1 -> pic . f . data [ 0 ] ) ret = ff_mpeg_ref_picture ( s , & s -> pic , & s1 -> pic ) ;\n else ret = update_picture_tables ( & s -> pic , & s1 -> pic ) ;\n if ( ret < 0 ) return ret ;\n \\ }\n while ( 0 ) UPDATE_PICTURE ( current_picture ) ;\n UPDATE_PICTURE ( last_picture ) ;\n UPDATE_PICTURE ( next_picture ) ;\n s -> last_picture_ptr = REBASE_PICTURE ( s1 -> last_picture_ptr , s , s1 ) ;\n s -> current_picture_ptr = REBASE_PICTURE ( s1 -> current_picture_ptr , s , s1 ) ;\n s -> next_picture_ptr = REBASE_PICTURE ( s1 -> next_picture_ptr , s , s1 ) ;\n s -> next_p_frame_damaged = s1 -> next_p_frame_damaged ;\n s -> workaround_bugs = s1 -> workaround_bugs ;\n memcpy ( & s -> time_increment_bits , & s1 -> time_increment_bits , ( char * ) & s1 -> shape - ( char * ) & s1 -> time_increment_bits ) ;\n s -> max_b_frames = s1 -> max_b_frames ;\n s -> low_delay = s1 -> low_delay ;\n s -> droppable = s1 -> droppable ;\n s -> divx_packed = s1 -> divx_packed ;\n if ( s1 -> bitstream_buffer ) {\n if ( s1 -> bitstream_buffer_size + FF_INPUT_BUFFER_PADDING_SIZE > s -> allocated_bitstream_buffer_size ) av_fast_malloc ( & s -> bitstream_buffer , & s -> allocated_bitstream_buffer_size , s1 -> allocated_bitstream_buffer_size ) ;\n s -> bitstream_buffer_size = s1 -> bitstream_buffer_size ;\n memcpy ( s -> bitstream_buffer , s1 -> bitstream_buffer , s1 -> bitstream_buffer_size ) ;\n memset ( s -> bitstream_buffer + s -> bitstream_buffer_size , 0 , FF_INPUT_BUFFER_PADDING_SIZE ) ;\n }\n if ( ! s -> edge_emu_buffer ) if ( s1 -> linesize ) {\n if ( ff_mpv_frame_size_alloc ( s , s1 -> linesize ) < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Failed to allocate context \" \"scratch buffers.\\n\" ) ;\n return AVERROR ( ENOMEM ) ;\n }\n }\n else {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Context scratch buffers could not \" \"be allocated due to unknown size.\\n\" ) ;\n return AVERROR_BUG ;\n }\n memcpy ( & s -> progressive_sequence , & s1 -> progressive_sequence , ( char * ) & s1 -> rtp_mode - ( char * ) & s1 -> progressive_sequence ) ;\n if ( ! s1 -> first_field ) {\n s -> last_pict_type = s1 -> pict_type ;\n if ( s1 -> current_picture_ptr ) s -> last_lambda_for [ s1 -> pict_type ] = s1 -> current_picture_ptr -> f . quality ;\n if ( s1 -> pict_type != AV_PICTURE_TYPE_B ) {\n s -> last_non_b_pict_type = s1 -> pict_type ;\n }\n }\n return 0 ;\n }"}
{"idx": 14587, "target": 0, "func": "static int restore_toc_entry ( ArchiveHandle * AH , TocEntry * te , bool is_parallel ) {\n RestoreOptions * ropt = AH -> public . ropt ;\n int status = WORKER_OK ;\n teReqs reqs ;\n bool defnDumped ;\n AH -> currentTE = te ;\n if ( _tocEntryIsACL ( te ) ) reqs = 0 ;\n else reqs = te -> reqs ;\n if ( ! ropt -> createDB && strcmp ( te -> desc , \"DATABASE\" ) == 0 ) reqs = 0 ;\n if ( ! ropt -> suppressDumpWarnings && strcmp ( te -> desc , \"WARNING\" ) == 0 ) {\n if ( ! ropt -> dataOnly && te -> defn != NULL && strlen ( te -> defn ) != 0 ) write_msg ( modulename , \"warning from original dump file: %s\\n\" , te -> defn ) ;\n else if ( te -> copyStmt != NULL && strlen ( te -> copyStmt ) != 0 ) write_msg ( modulename , \"warning from original dump file: %s\\n\" , te -> copyStmt ) ;\n }\n defnDumped = false ;\n if ( ( reqs & REQ_SCHEMA ) != 0 ) {\n if ( te -> namespace ) ahlog ( AH , 1 , \"creating %s \\\"%s.%s\\\"\\n\" , te -> desc , te -> namespace , te -> tag ) ;\n else ahlog ( AH , 1 , \"creating %s \\\"%s\\\"\\n\" , te -> desc , te -> tag ) ;\n _printTocEntry ( AH , te , false , false ) ;\n defnDumped = true ;\n if ( strcmp ( te -> desc , \"TABLE\" ) == 0 ) {\n if ( AH -> lastErrorTE == te ) {\n if ( ropt -> noDataForFailedTables ) {\n if ( is_parallel ) status = WORKER_INHIBIT_DATA ;\n else inhibit_data_for_failed_table ( AH , te ) ;\n }\n }\n else {\n if ( is_parallel ) status = WORKER_CREATE_DONE ;\n else mark_create_done ( AH , te ) ;\n }\n }\n if ( strcmp ( te -> desc , \"DATABASE\" ) == 0 ) {\n PQExpBufferData connstr ;\n initPQExpBuffer ( & connstr ) ;\n appendPQExpBufferStr ( & connstr , \"dbname=\" ) ;\n appendConnStrVal ( & connstr , te -> tag ) ;\n ahlog ( AH , 1 , \"connecting to new database \\\"%s\\\"\\n\" , te -> tag ) ;\n _reconnectToDB ( AH , te -> tag ) ;\n ropt -> dbname = connstr . data ;\n }\n }\n if ( ( reqs & REQ_DATA ) != 0 ) {\n if ( te -> hadDumper ) {\n if ( AH -> PrintTocDataPtr != NULL ) {\n _printTocEntry ( AH , te , true , false ) ;\n if ( strcmp ( te -> desc , \"BLOBS\" ) == 0 || strcmp ( te -> desc , \"BLOB COMMENTS\" ) == 0 ) {\n ahlog ( AH , 1 , \"processing %s\\n\" , te -> desc ) ;\n _selectOutputSchema ( AH , \"pg_catalog\" ) ;\n if ( strcmp ( te -> desc , \"BLOB COMMENTS\" ) == 0 ) AH -> outputKind = OUTPUT_OTHERDATA ;\n ( * AH -> PrintTocDataPtr ) ( AH , te ) ;\n AH -> outputKind = OUTPUT_SQLCMDS ;\n }\n else {\n _disableTriggersIfNecessary ( AH , te ) ;\n _becomeOwner ( AH , te ) ;\n _selectOutputSchema ( AH , te -> namespace ) ;\n ahlog ( AH , 1 , \"processing data for table \\\"%s.%s\\\"\\n\" , te -> namespace , te -> tag ) ;\n if ( is_parallel && te -> created ) {\n StartTransaction ( & AH -> public ) ;\n ahprintf ( AH , \"TRUNCATE TABLE %s%s;\n\\n\\n\" , ( PQserverVersion ( AH -> connection ) >= 80400 ? \"ONLY \" : \"\" ) , fmtId ( te -> tag ) ) ;\n }\n if ( te -> copyStmt && strlen ( te -> copyStmt ) > 0 ) {\n ahprintf ( AH , \"%s\" , te -> copyStmt ) ;\n AH -> outputKind = OUTPUT_COPYDATA ;\n }\n else AH -> outputKind = OUTPUT_OTHERDATA ;\n ( * AH -> PrintTocDataPtr ) ( AH , te ) ;\n if ( AH -> outputKind == OUTPUT_COPYDATA && RestoringToDB ( AH ) ) EndDBCopyMode ( & AH -> public , te -> tag ) ;\n AH -> outputKind = OUTPUT_SQLCMDS ;\n if ( is_parallel && te -> created ) CommitTransaction ( & AH -> public ) ;\n _enableTriggersIfNecessary ( AH , te ) ;\n }\n }\n }\n else if ( ! defnDumped ) {\n ahlog ( AH , 1 , \"executing %s %s\\n\" , te -> desc , te -> tag ) ;\n _printTocEntry ( AH , te , false , false ) ;\n }\n }\n if ( AH -> public . n_errors > 0 && status == WORKER_OK ) status = WORKER_IGNORED_ERRORS ;\n return status ;\n }"}
{"idx": 14588, "target": 0, "func": "static afs_int32 idToName ( struct rx_call * call , idlist * aid , namelist * aname ) {\n afs_int32 code ;\n struct ubik_trans * tt ;\n afs_int32 i ;\n int size ;\n int count = 0 ;\n size = aid -> idlist_len ;\n if ( size == 0 ) return 0 ;\n if ( size < 0 || size > INT_MAX / PR_MAXNAMELEN ) return PRTOOMANY ;\n aname -> namelist_val = ( prname * ) malloc ( size * PR_MAXNAMELEN ) ;\n aname -> namelist_len = 0 ;\n if ( aname -> namelist_val == 0 ) return PRNOMEM ;\n if ( aid -> idlist_len == 0 ) return 0 ;\n if ( size == 0 ) return PRTOOMANY ;\n code = Initdb ( ) ;\n if ( code != PRSUCCESS ) return code ;\n code = ubik_BeginTransReadAny ( dbase , UBIK_READTRANS , & tt ) ;\n if ( code ) return code ;\n code = ubik_SetLock ( tt , 1 , 1 , LOCKREAD ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = read_DbHeader ( tt ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n for ( i = 0 ;\n i < aid -> idlist_len ;\n i ++ ) {\n code = IDToName ( tt , aid -> idlist_val [ i ] , aname -> namelist_val [ i ] ) ;\n if ( code != PRSUCCESS ) sprintf ( aname -> namelist_val [ i ] , \"%d\" , aid -> idlist_val [ i ] ) ;\n osi_audit ( PTS_IdToNmEvent , code , AUD_ID , aid -> idlist_val [ i ] , AUD_STR , aname -> namelist_val [ i ] , AUD_END ) ;\n ViceLog ( 125 , ( \"PTS_idToName: code %d aid %d aname %s\\n\" , code , aid -> idlist_val [ i ] , aname -> namelist_val [ i ] ) ) ;\n if ( count ++ > 50 ) {\n # ifndef AFS_PTHREAD_ENV IOMGR_Poll ( ) ;\n # endif count = 0 ;\n }\n }\n aname -> namelist_len = aid -> idlist_len ;\n code = ubik_EndTrans ( tt ) ;\n if ( code ) return code ;\n return PRSUCCESS ;\n }"}
{"idx": 14589, "target": 0, "func": "static int set_metadata_float ( AVDictionary * * dict , const char * key , float value , int allow_zero ) {\n if ( value != 0 || allow_zero ) {\n char tmp [ 64 ] ;\n snprintf ( tmp , sizeof ( tmp ) , \"%f\" , value ) ;\n return av_dict_set ( dict , key , tmp , 0 ) ;\n }\n return 0 ;\n }"}
{"idx": 14590, "target": 0, "func": "static HashTable * row_get_properties ( zval * object TSRMLS_DC ) {\n pdo_stmt_t * stmt = ( pdo_stmt_t * ) zend_object_store_get_object ( object TSRMLS_CC ) ;\n int i ;\n if ( stmt == NULL ) {\n return NULL ;\n }\n if ( ! stmt -> std . properties ) {\n rebuild_object_properties ( & stmt -> std ) ;\n }\n for ( i = 0 ;\n i < stmt -> column_count ;\n i ++ ) {\n zval * val ;\n MAKE_STD_ZVAL ( val ) ;\n fetch_value ( stmt , val , i , NULL TSRMLS_CC ) ;\n zend_hash_update ( stmt -> std . properties , stmt -> columns [ i ] . name , stmt -> columns [ i ] . namelen + 1 , ( void * ) & val , sizeof ( zval * ) , NULL ) ;\n }\n return stmt -> std . properties ;\n }"}
{"idx": 14591, "target": 0, "func": "int kvm_arch_put_registers ( CPUState * cpu , int level ) {\n X86CPU * x86_cpu = X86_CPU ( cpu ) ;\n int ret ;\n assert ( cpu_is_stopped ( cpu ) || qemu_cpu_is_self ( cpu ) ) ;\n if ( level >= KVM_PUT_RESET_STATE ) {\n ret = kvm_put_msr_feature_control ( x86_cpu ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n }\n if ( level == KVM_PUT_FULL_STATE ) {\n kvm_arch_set_tsc_khz ( cpu ) ;\n }\n ret = kvm_getput_regs ( x86_cpu , 1 ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n ret = kvm_put_xsave ( x86_cpu ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n ret = kvm_put_xcrs ( x86_cpu ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n ret = kvm_put_sregs ( x86_cpu ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n ret = kvm_inject_mce_oldstyle ( x86_cpu ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n ret = kvm_put_msrs ( x86_cpu , level ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n ret = kvm_put_vcpu_events ( x86_cpu , level ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n if ( level >= KVM_PUT_RESET_STATE ) {\n ret = kvm_put_mp_state ( x86_cpu ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n }\n ret = kvm_put_tscdeadline_msr ( x86_cpu ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n ret = kvm_put_debugregs ( x86_cpu ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n ret = kvm_guest_debug_workarounds ( x86_cpu ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n return 0 ;\n }"}
{"idx": 14592, "target": 0, "func": "void ff_h264_filter_mb_fast ( H264Context * h , int mb_x , int mb_y , uint8_t * img_y , uint8_t * img_cb , uint8_t * img_cr , unsigned int linesize , unsigned int uvlinesize ) {\n assert ( ! FRAME_MBAFF ) ;\n if ( ! h -> h264dsp . h264_loop_filter_strength || h -> pps . chroma_qp_diff ) {\n ff_h264_filter_mb ( h , mb_x , mb_y , img_y , img_cb , img_cr , linesize , uvlinesize ) ;\n return ;\n }\n # if CONFIG_SMALL h264_filter_mb_fast_internal ( h , mb_x , mb_y , img_y , img_cb , img_cr , linesize , uvlinesize , h -> pixel_shift ) ;\n # else if ( h -> pixel_shift ) {\n h264_filter_mb_fast_internal ( h , mb_x , mb_y , img_y , img_cb , img_cr , linesize , uvlinesize , 1 ) ;\n }\n else {\n h264_filter_mb_fast_internal ( h , mb_x , mb_y , img_y , img_cb , img_cr , linesize , uvlinesize , 0 ) ;\n }\n # endif }"}
{"idx": 14593, "target": 0, "func": "static void internal_endent ( void ) {\n if ( stream != NULL ) {\n fclose ( stream ) ;\n stream = NULL ;\n }\n }"}
{"idx": 14594, "target": 0, "func": "void _http_parser_init ( HTTPParser * parser ) {\n parser -> m_parsing_http = true ;\n }"}
{"idx": 14595, "target": 0, "func": "static int archive_read_format_ar_skip ( struct archive_read * a ) {\n int64_t bytes_skipped ;\n struct ar * ar ;\n ar = ( struct ar * ) ( a -> format -> data ) ;\n bytes_skipped = __archive_read_consume ( a , ar -> entry_bytes_remaining + ar -> entry_padding + ar -> entry_bytes_unconsumed ) ;\n if ( bytes_skipped < 0 ) return ( ARCHIVE_FATAL ) ;\n ar -> entry_bytes_remaining = 0 ;\n ar -> entry_bytes_unconsumed = 0 ;\n ar -> entry_padding = 0 ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 14596, "target": 0, "func": "static VALUE ossl_cipher_update ( int argc , VALUE * argv , VALUE self ) {\n EVP_CIPHER_CTX * ctx ;\n unsigned char * in ;\n long in_len , out_len ;\n VALUE data , str ;\n rb_scan_args ( argc , argv , \"11\" , & data , & str ) ;\n if ( ! RTEST ( rb_attr_get ( self , id_key_set ) ) ) ossl_raise ( eCipherError , \"key not set\" ) ;\n StringValue ( data ) ;\n in = ( unsigned char * ) RSTRING_PTR ( data ) ;\n if ( ( in_len = RSTRING_LEN ( data ) ) == 0 ) ossl_raise ( rb_eArgError , \"data must not be empty\" ) ;\n GetCipher ( self , ctx ) ;\n out_len = in_len + EVP_CIPHER_CTX_block_size ( ctx ) ;\n if ( out_len <= 0 ) {\n ossl_raise ( rb_eRangeError , \"data too big to make output buffer: %ld bytes\" , in_len ) ;\n }\n if ( NIL_P ( str ) ) {\n str = rb_str_new ( 0 , out_len ) ;\n }\n else {\n StringValue ( str ) ;\n rb_str_resize ( str , out_len ) ;\n }\n if ( ! ossl_cipher_update_long ( ctx , ( unsigned char * ) RSTRING_PTR ( str ) , & out_len , in , in_len ) ) ossl_raise ( eCipherError , NULL ) ;\n assert ( out_len < RSTRING_LEN ( str ) ) ;\n rb_str_set_len ( str , out_len ) ;\n return str ;\n }"}
{"idx": 14597, "target": 0, "func": "unsigned int vp9_sub_pixel_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp2 , W , dst , dst_stride , sse ) ;\n \\ }\n # define SUBPIX_AVG_VAR ( W , H ) unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 ) VAR ( 8 , 4 ) SUBPIX_VAR ( 8 , 4 ) SUBPIX_AVG_VAR ( 8 , 4 ) VAR ( 8 , 8 ) SUBPIX_VAR ( 8 , 8 ) SUBPIX_AVG_VAR ( 8 , 8 ) VAR ( 8 , 16 ) SUBPIX_VAR ( 8 , 16 ) SUBPIX_AVG_VAR ( 8 , 16 ) VAR ( 16 , 8 ) SUBPIX_VAR ( 16 , 8 ) SUBPIX_AVG_VAR ( 16 , 8 ) VAR ( 16 , 16 ) SUBPIX_VAR ( 16 , 16 ) SUBPIX_AVG_VAR ( 16 , 16 ) VAR ( 16 , 32 ) SUBPIX_VAR ( 16 , 32 ) SUBPIX_AVG_VAR ( 16 , 32 ) VAR ( 32 , 16 ) SUBPIX_VAR ( 32 , 16 ) SUBPIX_AVG_VAR ( 32 , 16 ) VAR ( 32 , 32 ) SUBPIX_VAR ( 32 , 32 ) SUBPIX_AVG_VAR ( 32 , 32 ) VAR ( 32 , 64 ) SUBPIX_VAR ( 32 , 64 ) SUBPIX_AVG_VAR ( 32 , 64 ) VAR ( 64 , 32 ) SUBPIX_VAR ( 64 , 32 ) SUBPIX_AVG_VAR ( 64 , 32 ) VAR ( 64 , 64 ) SUBPIX_VAR ( 64 , 64 )"}
{"idx": 14598, "target": 0, "func": "void xps_begin_opacity ( xps_document * doc , const fz_matrix * ctm , const fz_rect * area , char * base_uri , xps_resource * dict , char * opacity_att , fz_xml * opacity_mask_tag ) {\n float opacity ;\n if ( ! opacity_att && ! opacity_mask_tag ) return ;\n opacity = 1 ;\n if ( opacity_att ) opacity = fz_atof ( opacity_att ) ;\n if ( opacity_mask_tag && ! strcmp ( fz_xml_tag ( opacity_mask_tag ) , \"SolidColorBrush\" ) ) {\n char * scb_opacity_att = fz_xml_att ( opacity_mask_tag , \"Opacity\" ) ;\n char * scb_color_att = fz_xml_att ( opacity_mask_tag , \"Color\" ) ;\n if ( scb_opacity_att ) opacity = opacity * fz_atof ( scb_opacity_att ) ;\n if ( scb_color_att ) {\n fz_colorspace * colorspace ;\n float samples [ FZ_MAX_COLORS ] ;\n xps_parse_color ( doc , base_uri , scb_color_att , & colorspace , samples ) ;\n opacity = opacity * samples [ 0 ] ;\n }\n opacity_mask_tag = NULL ;\n }\n if ( doc -> opacity_top + 1 < nelem ( doc -> opacity ) ) {\n doc -> opacity [ doc -> opacity_top + 1 ] = doc -> opacity [ doc -> opacity_top ] * opacity ;\n doc -> opacity_top ++ ;\n }\n if ( opacity_mask_tag ) {\n fz_begin_mask ( doc -> dev , area , 0 , NULL , NULL ) ;\n xps_parse_brush ( doc , ctm , area , base_uri , dict , opacity_mask_tag ) ;\n fz_end_mask ( doc -> dev ) ;\n }\n }"}
{"idx": 14599, "target": 0, "func": "static void incomplete_class_write_property ( zval * object , zval * member , zval * value , const zend_literal * key TSRMLS_DC ) {\n incomplete_class_message ( object , E_NOTICE TSRMLS_CC ) ;\n }"}
{"idx": 14600, "target": 0, "func": "static float * calc_distr ( const float * p , int n , int m , float rest ) {\n float * row , * prev_row , * tmp ;\n int i , j ;\n row = ( float * ) palloc ( ( m + 1 ) * sizeof ( float ) ) ;\n prev_row = ( float * ) palloc ( ( m + 1 ) * sizeof ( float ) ) ;\n row [ 0 ] = 1.0f ;\n for ( i = 1 ;\n i <= n ;\n i ++ ) {\n float t = p [ i - 1 ] ;\n tmp = row ;\n row = prev_row ;\n prev_row = tmp ;\n for ( j = 0 ;\n j <= i && j <= m ;\n j ++ ) {\n float val = 0.0f ;\n if ( j < i ) val += prev_row [ j ] * ( 1.0f - t ) ;\n if ( j > 0 ) val += prev_row [ j - 1 ] * t ;\n row [ j ] = val ;\n }\n }\n if ( rest > DEFAULT_CONTAIN_SEL ) {\n float t ;\n tmp = row ;\n row = prev_row ;\n prev_row = tmp ;\n for ( i = 0 ;\n i <= m ;\n i ++ ) row [ i ] = 0.0f ;\n t = exp ( - rest ) ;\n for ( i = 0 ;\n i <= m ;\n i ++ ) {\n for ( j = 0 ;\n j <= m - i ;\n j ++ ) row [ j + i ] += prev_row [ j ] * t ;\n t *= rest / ( float ) ( i + 1 ) ;\n }\n }\n pfree ( prev_row ) ;\n return row ;\n }"}
{"idx": 14601, "target": 0, "func": "static void decode_gains ( AMRContext * p , const AMRNBSubframe * amr_subframe , const enum Mode mode , const int subframe , float * fixed_gain_factor ) {\n if ( mode == MODE_12k2 || mode == MODE_7k95 ) {\n p -> pitch_gain [ 4 ] = qua_gain_pit [ amr_subframe -> p_gain ] * ( 1.0 / 16384.0 ) ;\n * fixed_gain_factor = qua_gain_code [ amr_subframe -> fixed_gain ] * ( 1.0 / 2048.0 ) ;\n }\n else {\n const uint16_t * gains ;\n if ( mode >= MODE_6k7 ) {\n gains = gains_high [ amr_subframe -> p_gain ] ;\n }\n else if ( mode >= MODE_5k15 ) {\n gains = gains_low [ amr_subframe -> p_gain ] ;\n }\n else {\n gains = gains_MODE_4k75 [ ( p -> frame . subframe [ subframe & 2 ] . p_gain << 1 ) + ( subframe & 1 ) ] ;\n }\n p -> pitch_gain [ 4 ] = gains [ 0 ] * ( 1.0 / 16384.0 ) ;\n * fixed_gain_factor = gains [ 1 ] * ( 1.0 / 4096.0 ) ;\n }\n }"}
{"idx": 14602, "target": 0, "func": "void jbig2_hd_release ( Jbig2Ctx * ctx , Jbig2PatternDict * dict ) {\n int i ;\n if ( dict == NULL ) return ;\n for ( i = 0 ;\n i < dict -> n_patterns ;\n i ++ ) if ( dict -> patterns [ i ] ) jbig2_image_release ( ctx , dict -> patterns [ i ] ) ;\n jbig2_free ( ctx -> allocator , dict -> patterns ) ;\n jbig2_free ( ctx -> allocator , dict ) ;\n }"}
{"idx": 14603, "target": 0, "func": "static void * img_buf_memalign ( size_t align , size_t size ) {\n void * addr , * x = NULL ;\n addr = malloc ( size + align - 1 + ADDRESS_STORAGE_SIZE ) ;\n if ( addr ) {\n x = align_addr ( ( unsigned char * ) addr + ADDRESS_STORAGE_SIZE , ( int ) align ) ;\n ( ( size_t * ) x ) [ - 1 ] = ( size_t ) addr ;\n }\n return x ;\n }"}
{"idx": 14604, "target": 0, "func": "void vp8_regular_quantize_b_pair ( BLOCK * b1 , BLOCK * b2 , BLOCKD * d1 , BLOCKD * d2 ) {\n vp8_regular_quantize_b ( b1 , d1 ) ;\n vp8_regular_quantize_b ( b2 , d2 ) ;\n }"}
{"idx": 14605, "target": 0, "func": "static void cin_apply_delta_data ( const unsigned char * src , unsigned char * dst , int size ) {\n while ( size -- ) * dst ++ += * src ++ ;\n }"}
{"idx": 14606, "target": 0, "func": "static int tcg_cpu_exec ( CPUArchState * env ) {\n int ret ;\n # ifdef CONFIG_PROFILER int64_t ti ;\n # endif # ifdef CONFIG_PROFILER ti = profile_getclock ( ) ;\n # endif if ( use_icount ) {\n int64_t count ;\n int decr ;\n qemu_icount -= ( env -> icount_decr . u16 . low + env -> icount_extra ) ;\n env -> icount_decr . u16 . low = 0 ;\n env -> icount_extra = 0 ;\n count = qemu_icount_round ( qemu_clock_deadline ( vm_clock ) ) ;\n qemu_icount += count ;\n decr = ( count > 0xffff ) ? 0xffff : count ;\n count -= decr ;\n env -> icount_decr . u16 . low = decr ;\n env -> icount_extra = count ;\n }\n ret = cpu_exec ( env ) ;\n # ifdef CONFIG_PROFILER qemu_time += profile_getclock ( ) - ti ;\n # endif if ( use_icount ) {\n qemu_icount -= ( env -> icount_decr . u16 . low + env -> icount_extra ) ;\n env -> icount_decr . u32 = 0 ;\n env -> icount_extra = 0 ;\n }\n return ret ;\n }"}
{"idx": 14607, "target": 1, "func": "static int pnm_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n PNMContext * const s = avctx -> priv_data ;\n AVFrame * picture = data ;\n AVFrame * const p = & s -> picture ;\n int i , j , n , linesize , h , upgrade = 0 ;\n unsigned char * ptr ;\n int components , sample_len , ret ;\n s -> bytestream_start = s -> bytestream = buf ;\n s -> bytestream_end = buf + buf_size ;\n if ( ( ret = ff_pnm_decode_header ( avctx , s ) ) < 0 ) return ret ;\n if ( p -> data [ 0 ] ) avctx -> release_buffer ( avctx , p ) ;\n p -> reference = 0 ;\n if ( ( ret = ff_get_buffer ( avctx , p ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n p -> pict_type = AV_PICTURE_TYPE_I ;\n p -> key_frame = 1 ;\n switch ( avctx -> pix_fmt ) {\n default : return AVERROR ( EINVAL ) ;\n case AV_PIX_FMT_RGB48BE : n = avctx -> width * 6 ;\n components = 3 ;\n sample_len = 16 ;\n goto do_read ;\n case AV_PIX_FMT_RGB24 : n = avctx -> width * 3 ;\n components = 3 ;\n sample_len = 8 ;\n goto do_read ;\n case AV_PIX_FMT_GRAY8 : n = avctx -> width ;\n components = 1 ;\n sample_len = 8 ;\n if ( s -> maxval < 255 ) upgrade = 1 ;\n goto do_read ;\n case AV_PIX_FMT_GRAY16BE : case AV_PIX_FMT_GRAY16LE : n = avctx -> width * 2 ;\n components = 1 ;\n sample_len = 16 ;\n if ( s -> maxval < 65535 ) upgrade = 2 ;\n goto do_read ;\n case AV_PIX_FMT_MONOWHITE : case AV_PIX_FMT_MONOBLACK : n = ( avctx -> width + 7 ) >> 3 ;\n components = 1 ;\n sample_len = 1 ;\n do_read : ptr = p -> data [ 0 ] ;\n linesize = p -> linesize [ 0 ] ;\n if ( s -> bytestream + n * avctx -> height > s -> bytestream_end ) return AVERROR_INVALIDDATA ;\n if ( s -> type < 4 ) {\n for ( i = 0 ;\n i < avctx -> height ;\n i ++ ) {\n PutBitContext pb ;\n init_put_bits ( & pb , ptr , linesize ) ;\n for ( j = 0 ;\n j < avctx -> width * components ;\n j ++ ) {\n unsigned int c = 0 ;\n int v = 0 ;\n while ( s -> bytestream < s -> bytestream_end && ( * s -> bytestream < '0' || * s -> bytestream > '9' ) ) s -> bytestream ++ ;\n if ( s -> bytestream >= s -> bytestream_end ) return AVERROR_INVALIDDATA ;\n do {\n v = 10 * v + c ;\n c = ( * s -> bytestream ++ ) - '0' ;\n }\n while ( c <= 9 ) ;\n put_bits ( & pb , sample_len , ( ( ( 1 << sample_len ) - 1 ) * v + ( s -> maxval >> 1 ) ) / s -> maxval ) ;\n }\n flush_put_bits ( & pb ) ;\n ptr += linesize ;\n }\n }\n else {\n for ( i = 0 ;\n i < avctx -> height ;\n i ++ ) {\n if ( ! upgrade ) memcpy ( ptr , s -> bytestream , n ) ;\n else if ( upgrade == 1 ) {\n unsigned int j , f = ( 255 * 128 + s -> maxval / 2 ) / s -> maxval ;\n for ( j = 0 ;\n j < n ;\n j ++ ) ptr [ j ] = ( s -> bytestream [ j ] * f + 64 ) >> 7 ;\n }\n else if ( upgrade == 2 ) {\n unsigned int j , v , f = ( 65535 * 32768 + s -> maxval / 2 ) / s -> maxval ;\n for ( j = 0 ;\n j < n / 2 ;\n j ++ ) {\n v = av_be2ne16 ( ( ( uint16_t * ) s -> bytestream ) [ j ] ) ;\n ( ( uint16_t * ) ptr ) [ j ] = ( v * f + 16384 ) >> 15 ;\n }\n }\n s -> bytestream += n ;\n ptr += linesize ;\n }\n }\n break ;\n case AV_PIX_FMT_YUV420P : case AV_PIX_FMT_YUV420P9BE : case AV_PIX_FMT_YUV420P10BE : {\n unsigned char * ptr1 , * ptr2 ;\n n = avctx -> width ;\n ptr = p -> data [ 0 ] ;\n linesize = p -> linesize [ 0 ] ;\n if ( s -> maxval >= 256 ) n *= 2 ;\n if ( s -> bytestream + n * avctx -> height * 3 / 2 > s -> bytestream_end ) return AVERROR_INVALIDDATA ;\n for ( i = 0 ;\n i < avctx -> height ;\n i ++ ) {\n memcpy ( ptr , s -> bytestream , n ) ;\n s -> bytestream += n ;\n ptr += linesize ;\n }\n ptr1 = p -> data [ 1 ] ;\n ptr2 = p -> data [ 2 ] ;\n n >>= 1 ;\n h = avctx -> height >> 1 ;\n for ( i = 0 ;\n i < h ;\n i ++ ) {\n memcpy ( ptr1 , s -> bytestream , n ) ;\n s -> bytestream += n ;\n memcpy ( ptr2 , s -> bytestream , n ) ;\n s -> bytestream += n ;\n ptr1 += p -> linesize [ 1 ] ;\n ptr2 += p -> linesize [ 2 ] ;\n }\n }\n break ;\n case AV_PIX_FMT_YUV420P16 : {\n uint16_t * ptr1 , * ptr2 ;\n const int f = ( 65535 * 32768 + s -> maxval / 2 ) / s -> maxval ;\n unsigned int j , v ;\n n = avctx -> width * 2 ;\n ptr = p -> data [ 0 ] ;\n linesize = p -> linesize [ 0 ] ;\n if ( s -> bytestream + n * avctx -> height * 3 / 2 > s -> bytestream_end ) return AVERROR_INVALIDDATA ;\n for ( i = 0 ;\n i < avctx -> height ;\n i ++ ) {\n for ( j = 0 ;\n j < n / 2 ;\n j ++ ) {\n v = av_be2ne16 ( ( ( uint16_t * ) s -> bytestream ) [ j ] ) ;\n ( ( uint16_t * ) ptr ) [ j ] = ( v * f + 16384 ) >> 15 ;\n }\n s -> bytestream += n ;\n ptr += linesize ;\n }\n ptr1 = ( uint16_t * ) p -> data [ 1 ] ;\n ptr2 = ( uint16_t * ) p -> data [ 2 ] ;\n n >>= 1 ;\n h = avctx -> height >> 1 ;\n for ( i = 0 ;\n i < h ;\n i ++ ) {\n for ( j = 0 ;\n j < n / 2 ;\n j ++ ) {\n v = av_be2ne16 ( ( ( uint16_t * ) s -> bytestream ) [ j ] ) ;\n ptr1 [ j ] = ( v * f + 16384 ) >> 15 ;\n }\n s -> bytestream += n ;\n for ( j = 0 ;\n j < n / 2 ;\n j ++ ) {\n v = av_be2ne16 ( ( ( uint16_t * ) s -> bytestream ) [ j ] ) ;\n ptr2 [ j ] = ( v * f + 16384 ) >> 15 ;\n }\n s -> bytestream += n ;\n ptr1 += p -> linesize [ 1 ] / 2 ;\n ptr2 += p -> linesize [ 2 ] / 2 ;\n }\n }\n break ;\n case AV_PIX_FMT_RGB32 : ptr = p -> data [ 0 ] ;\n linesize = p -> linesize [ 0 ] ;\n if ( s -> bytestream + avctx -> width * avctx -> height * 4 > s -> bytestream_end ) return AVERROR_INVALIDDATA ;\n for ( i = 0 ;\n i < avctx -> height ;\n i ++ ) {\n int j , r , g , b , a ;\n for ( j = 0 ;\n j < avctx -> width ;\n j ++ ) {\n r = * s -> bytestream ++ ;\n g = * s -> bytestream ++ ;\n b = * s -> bytestream ++ ;\n a = * s -> bytestream ++ ;\n ( ( uint32_t * ) ptr ) [ j ] = ( a << 24 ) | ( r << 16 ) | ( g << 8 ) | b ;\n }\n ptr += linesize ;\n }\n break ;\n }\n * picture = s -> picture ;\n * got_frame = 1 ;\n return s -> bytestream - s -> bytestream_start ;\n }"}
{"idx": 14608, "target": 0, "func": "static void process_blob ( struct rev_info * revs , struct blob * blob , show_object_fn show , struct strbuf * path , const char * name , void * cb_data ) {\n struct object * obj = & blob -> object ;\n size_t pathlen ;\n if ( ! revs -> blob_objects ) return ;\n if ( ! obj ) die ( \"bad blob object\" ) ;\n if ( obj -> flags & ( UNINTERESTING | SEEN ) ) return ;\n obj -> flags |= SEEN ;\n pathlen = path -> len ;\n strbuf_addstr ( path , name ) ;\n show ( obj , path -> buf , cb_data ) ;\n strbuf_setlen ( path , pathlen ) ;\n }"}
{"idx": 14609, "target": 0, "func": "TSAction TSContSchedule ( TSCont contp , ink_hrtime timeout , TSThreadPool tp ) {\n sdk_assert ( sdk_sanity_check_iocore_structure ( contp ) == TS_SUCCESS ) ;\n FORCE_PLUGIN_SCOPED_MUTEX ( contp ) ;\n INKContInternal * i = ( INKContInternal * ) contp ;\n TSAction action ;\n if ( ink_atomic_increment ( ( int * ) & i -> m_event_count , 1 ) < 0 ) {\n ink_assert ( ! \"not reached\" ) ;\n }\n EventType etype ;\n switch ( tp ) {\n case TS_THREAD_POOL_NET : case TS_THREAD_POOL_DEFAULT : etype = ET_NET ;\n break ;\n case TS_THREAD_POOL_TASK : etype = ET_TASK ;\n break ;\n case TS_THREAD_POOL_SSL : etype = ET_TASK ;\n break ;\n case TS_THREAD_POOL_DNS : etype = ET_DNS ;\n break ;\n case TS_THREAD_POOL_REMAP : etype = ET_TASK ;\n break ;\n case TS_THREAD_POOL_CLUSTER : etype = ET_CLUSTER ;\n break ;\n case TS_THREAD_POOL_UDP : etype = ET_UDP ;\n break ;\n default : etype = ET_TASK ;\n break ;\n }\n if ( timeout == 0 ) {\n action = reinterpret_cast < TSAction > ( eventProcessor . schedule_imm ( i , etype ) ) ;\n }\n else {\n action = reinterpret_cast < TSAction > ( eventProcessor . schedule_in ( i , HRTIME_MSECONDS ( timeout ) , etype ) ) ;\n }\n action = ( TSAction ) ( ( uintptr_t ) action | 0x1 ) ;\n return action ;\n }"}
{"idx": 14610, "target": 0, "func": "static void qcms_transform_module_matrix_translate ( struct qcms_modular_transform * transform , float * src , float * dest , size_t length ) {\n size_t i ;\n struct matrix mat ;\n mat . m [ 0 ] [ 0 ] = transform -> matrix . m [ 0 ] [ 0 ] ;\n mat . m [ 1 ] [ 0 ] = transform -> matrix . m [ 0 ] [ 1 ] ;\n mat . m [ 2 ] [ 0 ] = transform -> matrix . m [ 0 ] [ 2 ] ;\n mat . m [ 0 ] [ 1 ] = transform -> matrix . m [ 1 ] [ 0 ] ;\n mat . m [ 1 ] [ 1 ] = transform -> matrix . m [ 1 ] [ 1 ] ;\n mat . m [ 2 ] [ 1 ] = transform -> matrix . m [ 1 ] [ 2 ] ;\n mat . m [ 0 ] [ 2 ] = transform -> matrix . m [ 2 ] [ 0 ] ;\n mat . m [ 1 ] [ 2 ] = transform -> matrix . m [ 2 ] [ 1 ] ;\n mat . m [ 2 ] [ 2 ] = transform -> matrix . m [ 2 ] [ 2 ] ;\n for ( i = 0 ;\n i < length ;\n i ++ ) {\n float in_r = * src ++ ;\n float in_g = * src ++ ;\n float in_b = * src ++ ;\n float out_r = mat . m [ 0 ] [ 0 ] * in_r + mat . m [ 1 ] [ 0 ] * in_g + mat . m [ 2 ] [ 0 ] * in_b + transform -> tx ;\n float out_g = mat . m [ 0 ] [ 1 ] * in_r + mat . m [ 1 ] [ 1 ] * in_g + mat . m [ 2 ] [ 1 ] * in_b + transform -> ty ;\n float out_b = mat . m [ 0 ] [ 2 ] * in_r + mat . m [ 1 ] [ 2 ] * in_g + mat . m [ 2 ] [ 2 ] * in_b + transform -> tz ;\n * dest ++ = clamp_float ( out_r ) ;\n * dest ++ = clamp_float ( out_g ) ;\n * dest ++ = clamp_float ( out_b ) ;\n }\n }"}
{"idx": 14611, "target": 0, "func": "static int dissect_h245_ServicePriorityValue ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_ServicePriorityValue , ServicePriorityValue_sequence ) ;\n return offset ;\n }"}
{"idx": 14612, "target": 0, "func": "static void rv34_mc_2mv ( RV34DecContext * r , const int block_type ) {\n int weighted = ! r -> rv30 && block_type != RV34_MB_B_BIDIR && r -> weight1 != 8192 ;\n rv34_mc ( r , block_type , 0 , 0 , 0 , 2 , 2 , 0 , r -> rv30 , weighted , r -> rdsp . put_pixels_tab , r -> rdsp . put_chroma_pixels_tab ) ;\n if ( ! weighted ) {\n rv34_mc ( r , block_type , 0 , 0 , 0 , 2 , 2 , 1 , r -> rv30 , 0 , r -> rdsp . avg_pixels_tab , r -> rdsp . avg_chroma_pixels_tab ) ;\n }\n else {\n rv34_mc ( r , block_type , 0 , 0 , 0 , 2 , 2 , 1 , r -> rv30 , 1 , r -> rdsp . put_pixels_tab , r -> rdsp . put_chroma_pixels_tab ) ;\n rv4_weight ( r ) ;\n }\n }"}
{"idx": 14613, "target": 0, "func": "Jbig2Ctx * jbig2_ctx_new ( Jbig2Allocator * allocator , Jbig2Options options , Jbig2GlobalCtx * global_ctx , Jbig2ErrorCallback error_callback , void * error_callback_data ) {\n Jbig2Ctx * result ;\n if ( allocator == NULL ) allocator = & jbig2_default_allocator ;\n if ( error_callback == NULL ) error_callback = & jbig2_default_error ;\n result = ( Jbig2Ctx * ) jbig2_alloc ( allocator , sizeof ( Jbig2Ctx ) , 1 ) ;\n if ( result == NULL ) {\n error_callback ( error_callback_data , \"initial context allocation failed!\" , JBIG2_SEVERITY_FATAL , - 1 ) ;\n return result ;\n }\n result -> allocator = allocator ;\n result -> options = options ;\n result -> global_ctx = ( const Jbig2Ctx * ) global_ctx ;\n result -> error_callback = error_callback ;\n result -> error_callback_data = error_callback_data ;\n result -> state = ( options & JBIG2_OPTIONS_EMBEDDED ) ? JBIG2_FILE_SEQUENTIAL_HEADER : JBIG2_FILE_HEADER ;\n result -> buf = NULL ;\n result -> n_segments = 0 ;\n result -> n_segments_max = 16 ;\n result -> segments = jbig2_new ( result , Jbig2Segment * , result -> n_segments_max ) ;\n if ( result -> segments == NULL ) {\n error_callback ( error_callback_data , \"initial segments allocation failed!\" , JBIG2_SEVERITY_FATAL , - 1 ) ;\n jbig2_free ( allocator , result ) ;\n return result ;\n }\n result -> segment_index = 0 ;\n result -> current_page = 0 ;\n result -> max_page_index = 4 ;\n result -> pages = jbig2_new ( result , Jbig2Page , result -> max_page_index ) ;\n if ( result -> pages == NULL ) {\n error_callback ( error_callback_data , \"initial pages allocation failed!\" , JBIG2_SEVERITY_FATAL , - 1 ) ;\n jbig2_free ( allocator , result -> segments ) ;\n jbig2_free ( allocator , result ) ;\n return result ;\n }\n {\n int index ;\n for ( index = 0 ;\n index < result -> max_page_index ;\n index ++ ) {\n result -> pages [ index ] . state = JBIG2_PAGE_FREE ;\n result -> pages [ index ] . number = 0 ;\n result -> pages [ index ] . image = NULL ;\n }\n }\n return result ;\n }"}
{"idx": 14614, "target": 0, "func": "static void truespeech_place_pulses ( TSContext * dec , int16_t * out , int quart ) {\n int16_t tmp [ 7 ] ;\n int i , j , t ;\n const int16_t * ptr1 ;\n int16_t * ptr2 ;\n int coef ;\n memset ( out , 0 , 60 * sizeof ( * out ) ) ;\n for ( i = 0 ;\n i < 7 ;\n i ++ ) {\n t = dec -> pulseval [ quart ] & 3 ;\n dec -> pulseval [ quart ] >>= 2 ;\n tmp [ 6 - i ] = ts_pulse_scales [ dec -> pulseoff [ quart ] * 4 + t ] ;\n }\n coef = dec -> pulsepos [ quart ] >> 15 ;\n ptr1 = ts_pulse_values + 30 ;\n ptr2 = tmp ;\n for ( i = 0 , j = 3 ;\n ( i < 30 ) && ( j > 0 ) ;\n i ++ ) {\n t = * ptr1 ++ ;\n if ( coef >= t ) coef -= t ;\n else {\n out [ i ] = * ptr2 ++ ;\n ptr1 += 30 ;\n j -- ;\n }\n }\n coef = dec -> pulsepos [ quart ] & 0x7FFF ;\n ptr1 = ts_pulse_values ;\n for ( i = 30 , j = 4 ;\n ( i < 60 ) && ( j > 0 ) ;\n i ++ ) {\n t = * ptr1 ++ ;\n if ( coef >= t ) coef -= t ;\n else {\n out [ i ] = * ptr2 ++ ;\n ptr1 += 30 ;\n j -- ;\n }\n }\n }"}
{"idx": 14615, "target": 0, "func": "static void scan_dir ( GFile * dir , SourceInfo * source_info , CommonJob * job , GQueue * dirs , GHashTable * scanned ) {\n GFileInfo * info ;\n GError * error ;\n GFile * subdir ;\n GFileEnumerator * enumerator ;\n char * primary , * secondary , * details ;\n int response ;\n SourceInfo saved_info ;\n saved_info = * source_info ;\n retry : error = NULL ;\n enumerator = g_file_enumerate_children ( dir , G_FILE_ATTRIBUTE_STANDARD_NAME \",\" G_FILE_ATTRIBUTE_STANDARD_TYPE \",\" G_FILE_ATTRIBUTE_STANDARD_SIZE , G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS , job -> cancellable , & error ) ;\n if ( enumerator ) {\n error = NULL ;\n while ( ( info = g_file_enumerator_next_file ( enumerator , job -> cancellable , & error ) ) != NULL ) {\n g_autoptr ( GFile ) file = NULL ;\n g_autofree char * file_uri = NULL ;\n file = g_file_enumerator_get_child ( enumerator , info ) ;\n file_uri = g_file_get_uri ( file ) ;\n if ( ! g_hash_table_contains ( scanned , file_uri ) ) {\n g_hash_table_add ( scanned , g_strdup ( file_uri ) ) ;\n count_file ( info , job , source_info ) ;\n if ( g_file_info_get_file_type ( info ) == G_FILE_TYPE_DIRECTORY ) {\n subdir = g_file_get_child ( dir , g_file_info_get_name ( info ) ) ;\n g_queue_push_head ( dirs , subdir ) ;\n }\n }\n g_object_unref ( info ) ;\n }\n g_file_enumerator_close ( enumerator , job -> cancellable , NULL ) ;\n g_object_unref ( enumerator ) ;\n if ( error && IS_IO_ERROR ( error , CANCELLED ) ) {\n g_error_free ( error ) ;\n }\n else if ( error ) {\n primary = get_scan_primary ( source_info -> op ) ;\n details = NULL ;\n if ( IS_IO_ERROR ( error , PERMISSION_DENIED ) ) {\n secondary = f ( _ ( \"Files in the folder \u201c%B\u201d cannot be handled because you do \" \"not have permissions to see them.\" ) , dir ) ;\n }\n else {\n secondary = f ( _ ( \"There was an error getting information about the files in the folder \u201c%B\u201d.\" ) , dir ) ;\n details = error -> message ;\n }\n response = run_warning ( job , primary , secondary , details , FALSE , CANCEL , RETRY , SKIP , NULL ) ;\n g_error_free ( error ) ;\n if ( response == 0 || response == GTK_RESPONSE_DELETE_EVENT ) {\n abort_job ( job ) ;\n }\n else if ( response == 1 ) {\n * source_info = saved_info ;\n goto retry ;\n }\n else if ( response == 2 ) {\n skip_readdir_error ( job , dir ) ;\n }\n else {\n g_assert_not_reached ( ) ;\n }\n }\n }\n else if ( job -> skip_all_error ) {\n g_error_free ( error ) ;\n skip_file ( job , dir ) ;\n }\n else if ( IS_IO_ERROR ( error , CANCELLED ) ) {\n g_error_free ( error ) ;\n }\n else {\n primary = get_scan_primary ( source_info -> op ) ;\n details = NULL ;\n if ( IS_IO_ERROR ( error , PERMISSION_DENIED ) ) {\n secondary = f ( _ ( \"The folder \u201c%B\u201d cannot be handled because you do not have \" \"permissions to read it.\" ) , dir ) ;\n }\n else {\n secondary = f ( _ ( \"There was an error reading the folder \u201c%B\u201d.\" ) , dir ) ;\n details = error -> message ;\n }\n response = run_warning ( job , primary , secondary , details , TRUE , CANCEL , SKIP_ALL , SKIP , RETRY , NULL ) ;\n g_error_free ( error ) ;\n if ( response == 0 || response == GTK_RESPONSE_DELETE_EVENT ) {\n abort_job ( job ) ;\n }\n else if ( response == 1 || response == 2 ) {\n if ( response == 1 ) {\n job -> skip_all_error = TRUE ;\n }\n skip_file ( job , dir ) ;\n }\n else if ( response == 3 ) {\n goto retry ;\n }\n else {\n g_assert_not_reached ( ) ;\n }\n }\n }"}
{"idx": 14616, "target": 0, "func": "static int parse_read_interval ( const char * interval_spec , ReadInterval * interval ) {\n int ret = 0 ;\n char * next , * p , * spec = av_strdup ( interval_spec ) ;\n if ( ! spec ) return AVERROR ( ENOMEM ) ;\n if ( ! * spec ) {\n av_log ( NULL , AV_LOG_ERROR , \"Invalid empty interval specification\\n\" ) ;\n ret = AVERROR ( EINVAL ) ;\n goto end ;\n }\n p = spec ;\n next = strchr ( spec , '%' ) ;\n if ( next ) * next ++ = 0 ;\n if ( * p ) {\n interval -> has_start = 1 ;\n if ( * p == '+' ) {\n interval -> start_is_offset = 1 ;\n p ++ ;\n }\n else {\n interval -> start_is_offset = 0 ;\n }\n ret = av_parse_time ( & interval -> start , p , 1 ) ;\n if ( ret < 0 ) {\n av_log ( NULL , AV_LOG_ERROR , \"Invalid interval start specification '%s'\\n\" , p ) ;\n goto end ;\n }\n }\n else {\n interval -> has_start = 0 ;\n }\n p = next ;\n if ( p && * p ) {\n int64_t us ;\n interval -> has_end = 1 ;\n if ( * p == '+' ) {\n interval -> end_is_offset = 1 ;\n p ++ ;\n }\n else {\n interval -> end_is_offset = 0 ;\n }\n if ( interval -> end_is_offset && * p == '#' ) {\n long long int lli ;\n char * tail ;\n interval -> duration_frames = 1 ;\n p ++ ;\n lli = strtoll ( p , & tail , 10 ) ;\n if ( * tail || lli < 0 ) {\n av_log ( NULL , AV_LOG_ERROR , \"Invalid or negative value '%s' for duration number of frames\\n\" , p ) ;\n goto end ;\n }\n interval -> end = lli ;\n }\n else {\n interval -> duration_frames = 0 ;\n ret = av_parse_time ( & us , p , 1 ) ;\n if ( ret < 0 ) {\n av_log ( NULL , AV_LOG_ERROR , \"Invalid interval end/duration specification '%s'\\n\" , p ) ;\n goto end ;\n }\n interval -> end = us ;\n }\n }\n else {\n interval -> has_end = 0 ;\n }\n end : av_free ( spec ) ;\n return ret ;\n }"}
{"idx": 14617, "target": 0, "func": "static int gs_heap_register_root ( gs_memory_t * mem , gs_gc_root_t * rp , gs_ptr_type_t ptype , void * * up , client_name_t cname ) {\n return 0 ;\n }"}
{"idx": 14618, "target": 0, "func": "static int loop_through_relocations ( Dwarf_Debug dbg , dwarf_elf_object_access_internals_t * obj , struct Dwarf_Section_s * relocatablesec , int * error ) {\n Dwarf_Small * target_section = 0 ;\n Dwarf_Small * symtab_section = obj -> symtab -> dss_data ;\n Dwarf_Unsigned symtab_section_entrysize = obj -> symtab -> dss_entrysize ;\n Dwarf_Unsigned symtab_section_size = obj -> symtab -> dss_size ;\n Dwarf_Small * relocation_section = relocatablesec -> dss_reloc_data ;\n Dwarf_Unsigned relocation_section_size = relocatablesec -> dss_reloc_size ;\n Dwarf_Unsigned relocation_section_entrysize = relocatablesec -> dss_reloc_entrysize ;\n int ret = DW_DLV_ERROR ;\n struct Dwarf_Elf_Rela * relas = 0 ;\n unsigned int nrelas = 0 ;\n Dwarf_Small * mspace = 0 ;\n ret = get_relocation_entries ( obj -> is_64bit , obj -> endianness , obj -> machine , relocation_section , relocation_section_size , relocation_section_entrysize , & relas , & nrelas , error ) ;\n if ( ret != DW_DLV_OK ) {\n free ( relas ) ;\n return ret ;\n }\n if ( ! relocatablesec -> dss_data_was_malloc ) {\n mspace = malloc ( relocatablesec -> dss_size ) ;\n if ( ! mspace ) {\n * error = DW_DLE_RELOC_SECTION_MALLOC_FAIL ;\n return DW_DLV_ERROR ;\n }\n memcpy ( mspace , relocatablesec -> dss_data , relocatablesec -> dss_size ) ;\n relocatablesec -> dss_data = mspace ;\n target_section = relocatablesec -> dss_data ;\n relocatablesec -> dss_data_was_malloc = 1 ;\n }\n target_section = relocatablesec -> dss_data ;\n ret = apply_rela_entries ( dbg , obj -> is_64bit , obj -> endianness , obj -> machine , target_section , symtab_section , symtab_section_size , symtab_section_entrysize , relas , nrelas , error ) ;\n free ( relas ) ;\n return ret ;\n }"}
{"idx": 14619, "target": 0, "func": "void vp9_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint8_t * dst , ptrdiff_t stride , const uint8_t * above , const uint8_t * left ) {\n type ## _predictor ( dst , stride , size , above , left ) ;\n }\n # if CONFIG_VP9_HIGHBITDEPTH # define intra_pred_high_sized ( type , size ) void vp9_high_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint16_t * dst , ptrdiff_t stride , const uint16_t * above , const uint16_t * left , int bd ) {\n high_ ## type ## _predictor ( dst , stride , size , above , left , bd ) ;\n }\n # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) intra_pred_high_sized ( type , 4 ) intra_pred_high_sized ( type , 8 ) intra_pred_high_sized ( type , 16 ) intra_pred_high_sized ( type , 32 ) # else # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) # endif # if CONFIG_VP9_HIGHBITDEPTH static INLINE void high_d207_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) above ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) {\n dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n }\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) {\n dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n }\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n }\n static INLINE void high_d63_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) {\n dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n }\n dst += stride ;\n }\n }\n static INLINE void high_d45_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) {\n dst [ c ] = r + c + 2 < bs * 2 ? ROUND_POWER_OF_TWO ( above [ r + c ] + above [ r + c + 1 ] * 2 + above [ r + c + 2 ] , 2 ) : above [ bs * 2 - 1 ] ;\n }\n dst += stride ;\n }\n }\n static INLINE void high_d117_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] , 1 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 3 ;\n r < bs ;\n ++ r ) dst [ ( r - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ r - 3 ] + left [ r - 2 ] * 2 + left [ r - 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - 2 * stride + c - 1 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_d135_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - stride + c - 1 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_d153_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] , 1 ) ;\n for ( r = 1 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 1 ] + left [ r ] , 1 ) ;\n dst ++ ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] * 2 + above [ c + 1 ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = dst [ - stride + c - 2 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_v_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memcpy ( dst , above , bs * sizeof ( uint16_t ) ) ;\n dst += stride ;\n }\n }\n static INLINE void high_h_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) above ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , left [ r ] , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_tm_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n int ytop_left = above [ - 1 ] ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = clip_pixel_high ( left [ r ] + above [ c ] - ytop_left , bd ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_128_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) above ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , 128 << ( bd - 8 ) , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_left_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) above ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += left [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_top_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) left ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += above [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n const int count = 2 * bs ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) {\n sum += above [ i ] ;\n sum += left [ i ] ;\n }\n expected_dc = ( sum + ( count >> 1 ) ) / count ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n # endif static INLINE void d207_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n intra_pred_allsizes ( d207 ) static INLINE void d63_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d63 ) static INLINE void d45_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r + c + 2 < bs * 2 ? ROUND_POWER_OF_TWO ( above [ r + c ] + above [ r + c + 1 ] * 2 + above [ r + c + 2 ] , 2 ) : above [ bs * 2 - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d45 ) static INLINE void d117_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] , 1 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 3 ;\n r < bs ;\n ++ r ) dst [ ( r - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ r - 3 ] + left [ r - 2 ] * 2 + left [ r - 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - 2 * stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d117 ) static INLINE void d135_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d135 ) static INLINE void d153_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] , 1 ) ;\n for ( r = 1 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 1 ] + left [ r ] , 1 ) ;\n dst ++ ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] * 2 + above [ c + 1 ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = dst [ - stride + c - 2 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d153 ) static INLINE void v_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memcpy ( dst , above , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( v ) static INLINE void h_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset ( dst , left [ r ] , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( h ) static INLINE void tm_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n int ytop_left = above [ - 1 ] ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = clip_pixel ( left [ r ] + above [ c ] - ytop_left ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( tm ) static INLINE void dc_128_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r ;\n ( void ) above ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset ( dst , 128 , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( dc_128 ) static INLINE void dc_left_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) above ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += left [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( dc_left ) static INLINE void dc_top_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) left ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += above [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( dc_top ) static INLINE void dc_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int i , r , expected_dc , sum = 0 ;\n const int count = 2 * bs ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) {\n sum += above [ i ] ;\n sum += left [ i ] ;\n }\n expected_dc = ( sum + ( count >> 1 ) ) / count ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( dc )"}
{"idx": 14620, "target": 0, "func": "int ssl_choose_server_version ( SSL * s ) {\n int server_version = s -> method -> version ;\n int client_version = s -> client_version ;\n const version_info * vent ;\n const version_info * table ;\n int disabled = 0 ;\n switch ( server_version ) {\n default : if ( version_cmp ( s , client_version , s -> version ) < 0 ) return SSL_R_WRONG_SSL_VERSION ;\n return 0 ;\n case TLS_ANY_VERSION : table = tls_version_table ;\n break ;\n case DTLS_ANY_VERSION : table = dtls_version_table ;\n break ;\n }\n for ( vent = table ;\n vent -> version != 0 ;\n ++ vent ) {\n const SSL_METHOD * method ;\n if ( vent -> smeth == NULL || version_cmp ( s , client_version , vent -> version ) < 0 ) continue ;\n method = vent -> smeth ( ) ;\n if ( ssl_method_error ( s , method ) == 0 ) {\n s -> version = vent -> version ;\n s -> method = method ;\n return 0 ;\n }\n disabled = 1 ;\n }\n return disabled ? SSL_R_UNSUPPORTED_PROTOCOL : SSL_R_VERSION_TOO_LOW ;\n }"}
{"idx": 14621, "target": 0, "func": "IN_PROC_BROWSER_TEST_P ( BrowserCloseManagerBrowserTest , TestWithOffTheRecordDownloads ) {\n Profile * otr_profile = browser ( ) -> profile ( ) -> GetOffTheRecordProfile ( ) ;\n Browser * otr_browser = CreateBrowser ( otr_profile ) ;\n {\n RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , 1 ) ;\n browser ( ) -> window ( ) -> Close ( ) ;\n close_observer . Wait ( ) ;\n }\n ASSERT_NO_FATAL_FAILURE ( CreateStalledDownload ( otr_browser ) ) ;\n content : : TestNavigationObserver navigation_observer ( otr_browser -> tab_strip_model ( ) -> GetActiveWebContents ( ) , 1 ) ;\n TestBrowserCloseManager : : AttemptClose ( TestBrowserCloseManager : : USER_CHOICE_USER_CANCELS_CLOSE ) ;\n EXPECT_FALSE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n navigation_observer . Wait ( ) ;\n EXPECT_EQ ( GURL ( chrome : : kChromeUIDownloadsURL ) , otr_browser -> tab_strip_model ( ) -> GetActiveWebContents ( ) -> GetURL ( ) ) ;\n RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , 1 ) ;\n TestBrowserCloseManager : : AttemptClose ( TestBrowserCloseManager : : USER_CHOICE_USER_ALLOWS_CLOSE ) ;\n close_observer . Wait ( ) ;\n EXPECT_TRUE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_TRUE ( BrowserList : : GetInstance ( ) -> empty ( ) ) ;\n EXPECT_EQ ( 0 , DownloadCoreService : : NonMaliciousDownloadCountAllProfiles ( ) ) ;\n }"}
{"idx": 14622, "target": 0, "func": "static int gettime ( struct event_base * base , struct timeval * tp ) {\n if ( base -> tv_cache . tv_sec ) {\n * tp = base -> tv_cache ;\n return ( 0 ) ;\n }\n # if defined ( HAVE_CLOCK_GETTIME ) && defined ( CLOCK_MONOTONIC ) struct timespec ts ;\n if ( use_monotonic && clock_gettime ( CLOCK_MONOTONIC , & ts ) == 0 ) {\n tp -> tv_sec = ts . tv_sec ;\n tp -> tv_usec = ts . tv_nsec / 1000 ;\n return ( 0 ) ;\n }\n # endif use_monotonic = 0 ;\n return ( evutil_gettimeofday ( tp , NULL ) ) ;\n }"}
{"idx": 14623, "target": 0, "func": "static int lxc_cgroupfs_set ( const char * filename , const char * value , const char * name , const char * lxcpath ) {\n char * subsystem = NULL , * p , * path ;\n int ret = - 1 ;\n subsystem = alloca ( strlen ( filename ) + 1 ) ;\n strcpy ( subsystem , filename ) ;\n if ( ( p = strchr ( subsystem , '.' ) ) != NULL ) * p = '\\0' ;\n path = lxc_cgroup_get_hierarchy_abs_path ( subsystem , name , lxcpath ) ;\n if ( path ) {\n ret = do_cgroup_set ( path , filename , value ) ;\n free ( path ) ;\n }\n return ret ;\n }"}
{"idx": 14624, "target": 0, "func": "void parseExtensionObject ( proto_tree * tree , tvbuff_t * tvb , packet_info * pinfo , gint * pOffset , const char * szFieldName ) {\n static const int * extobj_mask [ ] = {\n & hf_opcua_extobj_mask_binbodyflag , & hf_opcua_extobj_mask_xmlbodyflag , NULL }\n ;\n gint iOffset = * pOffset ;\n guint8 EncodingMask ;\n guint32 TypeId ;\n proto_tree * extobj_tree ;\n proto_item * ti ;\n guint opcua_nested_count ;\n extobj_tree = proto_tree_add_subtree_format ( tree , tvb , * pOffset , - 1 , ett_opcua_extensionobject , & ti , \"%s: ExtensionObject\" , szFieldName ) ;\n opcua_nested_count = GPOINTER_TO_UINT ( p_get_proto_data ( pinfo -> pool , pinfo , proto_opcua , 0 ) ) ;\n if ( ++ opcua_nested_count > MAX_NESTING_DEPTH ) {\n expert_add_info ( pinfo , ti , & ei_nesting_depth ) ;\n return ;\n }\n p_add_proto_data ( pinfo -> pool , pinfo , proto_opcua , 0 , GUINT_TO_POINTER ( opcua_nested_count ) ) ;\n TypeId = getExtensionObjectType ( tvb , & iOffset ) ;\n parseExpandedNodeId ( extobj_tree , tvb , pinfo , & iOffset , \"TypeId\" ) ;\n EncodingMask = tvb_get_guint8 ( tvb , iOffset ) ;\n proto_tree_add_bitmask ( extobj_tree , tvb , iOffset , hf_opcua_extobj_mask , ett_opcua_extensionobject_encodingmask , extobj_mask , ENC_LITTLE_ENDIAN ) ;\n iOffset ++ ;\n if ( EncodingMask & EXTOBJ_ENCODINGMASK_BINBODY_FLAG ) {\n dispatchExtensionObjectType ( extobj_tree , tvb , pinfo , & iOffset , TypeId ) ;\n }\n proto_item_set_end ( ti , tvb , iOffset ) ;\n * pOffset = iOffset ;\n }"}
{"idx": 14625, "target": 0, "func": "int qemuMonitorJSONAddPCIDisk ( qemuMonitorPtr mon ATTRIBUTE_UNUSED , const char * path ATTRIBUTE_UNUSED , const char * bus ATTRIBUTE_UNUSED , virDomainDevicePCIAddress * guestAddr ATTRIBUTE_UNUSED ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"pci_add not suppported in JSON mode\" ) ) ;\n return - 1 ;\n }"}
{"idx": 14626, "target": 0, "func": "static char * expand_escapes ( const char * line , SERVER_REC * server , WI_ITEM_REC * item ) {\n char * ptr , * ret ;\n const char * prev ;\n int chr ;\n prev = line ;\n ret = ptr = g_malloc ( strlen ( line ) + 1 ) ;\n for ( ;\n * line != '\\0' ;\n line ++ ) {\n if ( * line != '\\\\' ) {\n * ptr ++ = * line ;\n continue ;\n }\n line ++ ;\n if ( * line == '\\0' ) {\n * ptr ++ = '\\\\' ;\n break ;\n }\n chr = expand_escape ( & line ) ;\n if ( chr == '\\r' || chr == '\\n' ) {\n if ( prev != line ) {\n char * prev_line = g_strndup ( prev , ( line - prev ) - 1 ) ;\n event_text ( prev_line , server , item ) ;\n g_free ( prev_line ) ;\n prev = line + 1 ;\n ptr = ret ;\n }\n }\n else if ( chr != - 1 ) {\n * ptr ++ = chr ;\n }\n else {\n * ptr ++ = '\\\\' ;\n * ptr ++ = * line ;\n }\n }\n * ptr = '\\0' ;\n return ret ;\n }"}
{"idx": 14627, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , TestSilentlyRegisterHandler ) {\n ProtocolHandler ph1 = CreateProtocolHandler ( \"test\" , GURL ( \"http://test/1/%s\" ) ) ;\n ProtocolHandler ph2 = CreateProtocolHandler ( \"test\" , GURL ( \"http://test/2/%s\" ) ) ;\n ProtocolHandler ph3 = CreateProtocolHandler ( \"ignore\" , GURL ( \"http://test/%s\" ) ) ;\n ProtocolHandler ph4 = CreateProtocolHandler ( \"ignore\" , GURL ( \"http://test/%s\" ) ) ;\n ASSERT_FALSE ( registry ( ) -> SilentlyHandleRegisterHandlerRequest ( ph1 ) ) ;\n ASSERT_FALSE ( registry ( ) -> IsRegistered ( ph1 ) ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ;\n ASSERT_TRUE ( registry ( ) -> IsRegistered ( ph1 ) ) ;\n ASSERT_TRUE ( registry ( ) -> SilentlyHandleRegisterHandlerRequest ( ph2 ) ) ;\n ASSERT_FALSE ( registry ( ) -> IsRegistered ( ph1 ) ) ;\n ASSERT_TRUE ( registry ( ) -> IsRegistered ( ph2 ) ) ;\n ASSERT_FALSE ( registry ( ) -> SilentlyHandleRegisterHandlerRequest ( ph3 ) ) ;\n ASSERT_FALSE ( registry ( ) -> IsRegistered ( ph3 ) ) ;\n registry ( ) -> OnIgnoreRegisterProtocolHandler ( ph3 ) ;\n ASSERT_FALSE ( registry ( ) -> IsRegistered ( ph3 ) ) ;\n ASSERT_TRUE ( registry ( ) -> IsIgnored ( ph3 ) ) ;\n ASSERT_TRUE ( registry ( ) -> SilentlyHandleRegisterHandlerRequest ( ph4 ) ) ;\n ASSERT_FALSE ( registry ( ) -> IsRegistered ( ph4 ) ) ;\n ASSERT_TRUE ( registry ( ) -> HasIgnoredEquivalent ( ph4 ) ) ;\n }"}
{"idx": 14628, "target": 0, "func": "void ff_cavs_inter ( AVSContext * h , enum cavs_mb mb_type ) {\n if ( ff_cavs_partition_flags [ mb_type ] == 0 ) {\n mc_part_std ( h , 8 , 0 , h -> cy , h -> cu , h -> cv , 0 , 0 , h -> cdsp . put_cavs_qpel_pixels_tab [ 0 ] , h -> h264chroma . put_h264_chroma_pixels_tab [ 0 ] , h -> cdsp . avg_cavs_qpel_pixels_tab [ 0 ] , h -> h264chroma . avg_h264_chroma_pixels_tab [ 0 ] , & h -> mv [ MV_FWD_X0 ] ) ;\n }\n else {\n mc_part_std ( h , 4 , 0 , h -> cy , h -> cu , h -> cv , 0 , 0 , h -> cdsp . put_cavs_qpel_pixels_tab [ 1 ] , h -> h264chroma . put_h264_chroma_pixels_tab [ 1 ] , h -> cdsp . avg_cavs_qpel_pixels_tab [ 1 ] , h -> h264chroma . avg_h264_chroma_pixels_tab [ 1 ] , & h -> mv [ MV_FWD_X0 ] ) ;\n mc_part_std ( h , 4 , 0 , h -> cy , h -> cu , h -> cv , 4 , 0 , h -> cdsp . put_cavs_qpel_pixels_tab [ 1 ] , h -> h264chroma . put_h264_chroma_pixels_tab [ 1 ] , h -> cdsp . avg_cavs_qpel_pixels_tab [ 1 ] , h -> h264chroma . avg_h264_chroma_pixels_tab [ 1 ] , & h -> mv [ MV_FWD_X1 ] ) ;\n mc_part_std ( h , 4 , 0 , h -> cy , h -> cu , h -> cv , 0 , 4 , h -> cdsp . put_cavs_qpel_pixels_tab [ 1 ] , h -> h264chroma . put_h264_chroma_pixels_tab [ 1 ] , h -> cdsp . avg_cavs_qpel_pixels_tab [ 1 ] , h -> h264chroma . avg_h264_chroma_pixels_tab [ 1 ] , & h -> mv [ MV_FWD_X2 ] ) ;\n mc_part_std ( h , 4 , 0 , h -> cy , h -> cu , h -> cv , 4 , 4 , h -> cdsp . put_cavs_qpel_pixels_tab [ 1 ] , h -> h264chroma . put_h264_chroma_pixels_tab [ 1 ] , h -> cdsp . avg_cavs_qpel_pixels_tab [ 1 ] , h -> h264chroma . avg_h264_chroma_pixels_tab [ 1 ] , & h -> mv [ MV_FWD_X3 ] ) ;\n }\n }"}
{"idx": 14629, "target": 0, "func": "static void restore_cs_variables ( FILE * sql_file , const char * delimiter ) {\n fprintf ( sql_file , \"/*!50003 SET character_set_client = @saved_cs_client */ %s\\n\" \"/*!50003 SET character_set_results = @saved_cs_results */ %s\\n\" \"/*!50003 SET collation_connection = @saved_col_connection */ %s\\n\" , ( const char * ) delimiter , ( const char * ) delimiter , ( const char * ) delimiter ) ;\n }"}
{"idx": 14630, "target": 0, "func": "static void U_CALLCONV _LMBCSOpen ## n ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err ) \\ {\n _LMBCSOpenWorker ( _this , pArgs , err , n ) ;\n }\n static void _LMBCSOpenWorker ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err , ulmbcs_byte_t OptGroup ) {\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) uprv_malloc ( sizeof ( UConverterDataLMBCS ) ) ;\n _this -> extraInfo = extraInfo ;\n if ( extraInfo != NULL ) {\n UConverterNamePieces stackPieces ;\n UConverterLoadArgs stackArgs = UCNV_LOAD_ARGS_INITIALIZER ;\n ulmbcs_byte_t i ;\n uprv_memset ( extraInfo , 0 , sizeof ( UConverterDataLMBCS ) ) ;\n stackArgs . onlyTestIsLoadable = pArgs -> onlyTestIsLoadable ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST && U_SUCCESS ( * err ) ;\n i ++ ) {\n if ( OptGroupByteToCPName [ i ] != NULL ) {\n extraInfo -> OptGrpConverter [ i ] = ucnv_loadSharedData ( OptGroupByteToCPName [ i ] , & stackPieces , & stackArgs , err ) ;\n }\n }\n if ( U_FAILURE ( * err ) || pArgs -> onlyTestIsLoadable ) {\n _LMBCSClose ( _this ) ;\n return ;\n }\n extraInfo -> OptGroup = OptGroup ;\n extraInfo -> localeConverterIndex = FindLMBCSLocale ( pArgs -> locale ) ;\n }\n else {\n * err = U_MEMORY_ALLOCATION_ERROR ;\n }\n }\n U_CDECL_BEGIN static void U_CALLCONV _LMBCSClose ( UConverter * _this ) {\n if ( _this -> extraInfo != NULL ) {\n ulmbcs_byte_t Ix ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) _this -> extraInfo ;\n for ( Ix = 0 ;\n Ix <= ULMBCS_GRP_LAST ;\n Ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ Ix ] != NULL ) ucnv_unloadSharedDataIfReady ( extraInfo -> OptGrpConverter [ Ix ] ) ;\n }\n if ( ! _this -> isExtraLocal ) {\n uprv_free ( _this -> extraInfo ) ;\n _this -> extraInfo = NULL ;\n }\n }\n }\n typedef struct LMBCSClone {\n UConverter cnv ;\n UConverterDataLMBCS lmbcs ;\n }\n LMBCSClone ;\n static UConverter * U_CALLCONV _LMBCSSafeClone ( const UConverter * cnv , void * stackBuffer , int32_t * pBufferSize , UErrorCode * status ) {\n ( void ) status ;\n LMBCSClone * newLMBCS ;\n UConverterDataLMBCS * extraInfo ;\n int32_t i ;\n if ( * pBufferSize <= 0 ) {\n * pBufferSize = ( int32_t ) sizeof ( LMBCSClone ) ;\n return NULL ;\n }\n extraInfo = ( UConverterDataLMBCS * ) cnv -> extraInfo ;\n newLMBCS = ( LMBCSClone * ) stackBuffer ;\n uprv_memcpy ( & newLMBCS -> lmbcs , extraInfo , sizeof ( UConverterDataLMBCS ) ) ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST ;\n ++ i ) {\n if ( extraInfo -> OptGrpConverter [ i ] != NULL ) {\n ucnv_incrementRefCount ( extraInfo -> OptGrpConverter [ i ] ) ;\n }\n }\n newLMBCS -> cnv . extraInfo = & newLMBCS -> lmbcs ;\n newLMBCS -> cnv . isExtraLocal = TRUE ;\n return & newLMBCS -> cnv ;\n }\n static size_t LMBCSConversionWorker ( UConverterDataLMBCS * extraInfo , ulmbcs_byte_t group , ulmbcs_byte_t * pStartLMBCS , UChar * pUniChar , ulmbcs_byte_t * lastConverterIndex , UBool * groups_tried ) {\n ulmbcs_byte_t * pLMBCS = pStartLMBCS ;\n UConverterSharedData * xcnv = extraInfo -> OptGrpConverter [ group ] ;\n int bytesConverted ;\n uint32_t value ;\n ulmbcs_byte_t firstByte ;\n U_ASSERT ( xcnv ) ;\n U_ASSERT ( group < ULMBCS_GRP_UNICODE ) ;\n bytesConverted = ucnv_MBCSFromUChar32 ( xcnv , * pUniChar , & value , FALSE ) ;\n if ( bytesConverted > 0 ) {\n firstByte = ( ulmbcs_byte_t ) ( value >> ( ( bytesConverted - 1 ) * 8 ) ) ;\n }\n else {\n groups_tried [ group ] = TRUE ;\n return 0 ;\n }\n * lastConverterIndex = group ;\n U_ASSERT ( ( firstByte <= ULMBCS_C0END ) || ( firstByte >= ULMBCS_C1START ) || ( group == ULMBCS_GRP_EXCEPT ) ) ;\n if ( group != ULMBCS_GRP_EXCEPT && extraInfo -> OptGroup != group ) {\n * pLMBCS ++ = group ;\n if ( bytesConverted == 1 && group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n * pLMBCS ++ = group ;\n }\n }\n if ( bytesConverted == 1 && firstByte < 0x20 ) return 0 ;\n switch ( bytesConverted ) {\n case 4 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 24 ) ;\n U_FALLTHROUGH ;\n case 3 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 16 ) ;\n U_FALLTHROUGH ;\n case 2 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 8 ) ;\n U_FALLTHROUGH ;\n case 1 : * pLMBCS ++ = ( ulmbcs_byte_t ) value ;\n U_FALLTHROUGH ;\n default : break ;\n }\n return ( pLMBCS - pStartLMBCS ) ;\n }\n static size_t LMBCSConvertUni ( ulmbcs_byte_t * pLMBCS , UChar uniChar ) {\n uint8_t LowCh = ( uint8_t ) ( uniChar & 0x00FF ) ;\n uint8_t HighCh = ( uint8_t ) ( uniChar >> 8 ) ;\n * pLMBCS ++ = ULMBCS_GRP_UNICODE ;\n if ( LowCh == 0 ) {\n * pLMBCS ++ = ULMBCS_UNICOMPATZERO ;\n * pLMBCS ++ = HighCh ;\n }\n else {\n * pLMBCS ++ = HighCh ;\n * pLMBCS ++ = LowCh ;\n }\n return ULMBCS_UNICODE_SIZE ;\n }\n static void U_CALLCONV _LMBCSFromUnicode ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n ulmbcs_byte_t lastConverterIndex = 0 ;\n UChar uniChar ;\n ulmbcs_byte_t LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n ulmbcs_byte_t * pLMBCS ;\n int32_t bytes_written ;\n UBool groups_tried [ ULMBCS_GRP_LAST + 1 ] ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n int sourceIndex = 0 ;\n ulmbcs_byte_t OldConverterIndex = 0 ;\n while ( args -> source < args -> sourceLimit && ! U_FAILURE ( * err ) ) {\n OldConverterIndex = extraInfo -> localeConverterIndex ;\n if ( args -> target >= args -> targetLimit ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n uniChar = * ( args -> source ) ;\n bytes_written = 0 ;\n pLMBCS = LMBCS ;\n if ( ( uniChar >= 0x80 ) && ( uniChar <= 0xff ) && ( uniChar != 0xB1 ) && ( uniChar != 0xD7 ) && ( uniChar != 0xF7 ) && ( uniChar != 0xB0 ) && ( uniChar != 0xB4 ) && ( uniChar != 0xB6 ) && ( uniChar != 0xA7 ) && ( uniChar != 0xA8 ) ) {\n extraInfo -> localeConverterIndex = ULMBCS_GRP_L1 ;\n }\n if ( ( ( uniChar > ULMBCS_C0END ) && ( uniChar < ULMBCS_C1START ) ) || uniChar == 0 || uniChar == ULMBCS_HT || uniChar == ULMBCS_CR || uniChar == ULMBCS_LF || uniChar == ULMBCS_123SYSTEMRANGE ) {\n * pLMBCS ++ = ( ulmbcs_byte_t ) uniChar ;\n bytes_written = 1 ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t group = FindLMBCSUniRange ( uniChar ) ;\n if ( group == ULMBCS_GRP_UNICODE ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group == ULMBCS_GRP_CTRL ) {\n if ( uniChar <= ULMBCS_C0END ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( ULMBCS_CTRLOFFSET + uniChar ) ;\n }\n else if ( uniChar >= ULMBCS_C1START && uniChar <= ULMBCS_C1START + ULMBCS_CTRLOFFSET ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( uniChar & 0x00FF ) ;\n }\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group < ULMBCS_GRP_UNICODE ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , group , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n uprv_memset ( groups_tried , 0 , sizeof ( groups_tried ) ) ;\n if ( ( extraInfo -> OptGroup != 1 ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> OptGroup ) ) ) {\n if ( extraInfo -> localeConverterIndex < ULMBCS_DOUBLEOPTGROUP_START ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_L1 , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n else {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && ( extraInfo -> localeConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> localeConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written && ( lastConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , lastConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , lastConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t grp_start ;\n ulmbcs_byte_t grp_end ;\n ulmbcs_byte_t grp_ix ;\n grp_start = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_DOUBLEOPTGROUP_START : ULMBCS_GRP_L1 ) ;\n grp_end = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_GRP_LAST : ULMBCS_GRP_TH ) ;\n if ( group == ULMBCS_AMBIGUOUS_ALL ) {\n grp_start = ULMBCS_GRP_L1 ;\n grp_end = ULMBCS_GRP_LAST ;\n }\n for ( grp_ix = grp_start ;\n grp_ix <= grp_end && ! bytes_written ;\n grp_ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ grp_ix ] && ! groups_tried [ grp_ix ] ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , grp_ix , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && grp_start == ULMBCS_GRP_L1 ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n }\n }\n args -> source ++ ;\n pLMBCS = LMBCS ;\n while ( args -> target < args -> targetLimit && bytes_written -- ) {\n * ( args -> target ) ++ = * pLMBCS ++ ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = sourceIndex ;\n }\n }\n sourceIndex ++ ;\n if ( bytes_written > 0 ) {\n uint8_t * pErrorBuffer = args -> converter -> charErrorBuffer ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n args -> converter -> charErrorBufferLength = ( int8_t ) bytes_written ;\n while ( bytes_written -- ) {\n * pErrorBuffer ++ = * pLMBCS ++ ;\n }\n }\n extraInfo -> localeConverterIndex = OldConverterIndex ;\n }\n }\n static UChar GetUniFromLMBCSUni ( char const * * ppLMBCSin ) {\n uint8_t HighCh = * ( * ppLMBCSin ) ++ ;\n uint8_t LowCh = * ( * ppLMBCSin ) ++ ;\n if ( HighCh == ULMBCS_UNICOMPATZERO ) {\n HighCh = LowCh ;\n LowCh = 0 ;\n }\n return ( UChar ) ( ( HighCh << 8 ) | LowCh ) ;\n }\n # define CHECK_SOURCE_LIMIT ( index ) if ( args -> source + index > args -> sourceLimit ) {\n * err = U_TRUNCATED_CHAR_FOUND ;\n args -> source = args -> sourceLimit ;\n return 0xffff ;\n }\n static UChar32 U_CALLCONV _LMBCSGetNextUCharWorker ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n UChar32 uniChar = 0 ;\n ulmbcs_byte_t CurByte ;\n if ( args -> source >= args -> sourceLimit ) {\n * err = U_ILLEGAL_ARGUMENT_ERROR ;\n return 0xffff ;\n }\n CurByte = * ( ( ulmbcs_byte_t * ) ( args -> source ++ ) ) ;\n if ( ( ( CurByte > ULMBCS_C0END ) && ( CurByte < ULMBCS_C1START ) ) || ( CurByte == 0 ) || CurByte == ULMBCS_HT || CurByte == ULMBCS_CR || CurByte == ULMBCS_LF || CurByte == ULMBCS_123SYSTEMRANGE ) {\n uniChar = CurByte ;\n }\n else {\n UConverterDataLMBCS * extraInfo ;\n ulmbcs_byte_t group ;\n UConverterSharedData * cnv ;\n if ( CurByte == ULMBCS_GRP_CTRL ) {\n ulmbcs_byte_t C0C1byte ;\n CHECK_SOURCE_LIMIT ( 1 ) ;\n C0C1byte = * ( args -> source ) ++ ;\n uniChar = ( C0C1byte < ULMBCS_C1START ) ? C0C1byte - ULMBCS_CTRLOFFSET : C0C1byte ;\n }\n else if ( CurByte == ULMBCS_GRP_UNICODE ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n return GetUniFromLMBCSUni ( & ( args -> source ) ) ;\n }\n else if ( CurByte <= ULMBCS_CTRLOFFSET ) {\n group = CurByte ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n if ( group > ULMBCS_GRP_LAST || ( cnv = extraInfo -> OptGrpConverter [ group ] ) == NULL ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n if ( * args -> source == group ) {\n ++ args -> source ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 1 , FALSE ) ;\n ++ args -> source ;\n }\n else {\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 2 , FALSE ) ;\n args -> source += 2 ;\n }\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n CurByte = * ( args -> source ) ++ ;\n if ( CurByte >= ULMBCS_C1START ) {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n else {\n char bytes [ 2 ] ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n cnv = extraInfo -> OptGrpConverter [ ULMBCS_GRP_EXCEPT ] ;\n bytes [ 0 ] = group ;\n bytes [ 1 ] = CurByte ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , bytes , 2 , FALSE ) ;\n }\n }\n }\n else if ( CurByte >= ULMBCS_C1START ) {\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n group = extraInfo -> OptGroup ;\n cnv = extraInfo -> OptGrpConverter [ group ] ;\n if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n if ( ! ucnv_MBCSIsLeadByte ( cnv , CurByte ) ) {\n CHECK_SOURCE_LIMIT ( 0 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 1 , FALSE ) ;\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 2 , FALSE ) ;\n ++ args -> source ;\n }\n }\n else {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n }\n }\n return uniChar ;\n }\n static void U_CALLCONV _LMBCSToUnicodeWithOffsets ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n char LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n UChar uniChar ;\n const char * saveSource ;\n const char * pStartLMBCS = args -> source ;\n const char * errSource = NULL ;\n int8_t savebytes = 0 ;\n while ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit > args -> target ) {\n saveSource = args -> source ;\n if ( args -> converter -> toULength ) {\n const char * saveSourceLimit ;\n size_t size_old = args -> converter -> toULength ;\n size_t size_new_maybe_1 = sizeof ( LMBCS ) - size_old ;\n size_t size_new_maybe_2 = args -> sourceLimit - args -> source ;\n size_t size_new = ( size_new_maybe_1 < size_new_maybe_2 ) ? size_new_maybe_1 : size_new_maybe_2 ;\n uprv_memcpy ( LMBCS , args -> converter -> toUBytes , size_old ) ;\n uprv_memcpy ( LMBCS + size_old , args -> source , size_new ) ;\n saveSourceLimit = args -> sourceLimit ;\n args -> source = errSource = LMBCS ;\n args -> sourceLimit = LMBCS + size_old + size_new ;\n savebytes = ( int8_t ) ( size_old + size_new ) ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n args -> source = saveSource + ( ( args -> source - LMBCS ) - size_old ) ;\n args -> sourceLimit = saveSourceLimit ;\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n args -> converter -> toULength = savebytes ;\n uprv_memcpy ( args -> converter -> toUBytes , LMBCS , savebytes ) ;\n args -> source = args -> sourceLimit ;\n * err = U_ZERO_ERROR ;\n return ;\n }\n else {\n args -> converter -> toULength = 0 ;\n }\n }\n else {\n errSource = saveSource ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n savebytes = ( int8_t ) ( args -> source - saveSource ) ;\n }\n if ( U_SUCCESS ( * err ) ) {\n if ( uniChar < 0xfffe ) {\n * ( args -> target ) ++ = uniChar ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = ( int32_t ) ( saveSource - pStartLMBCS ) ;\n }\n }\n else if ( uniChar == 0xfffe ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n }\n if ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit <= args -> target ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n else if ( U_FAILURE ( * err ) ) {\n args -> converter -> toULength = savebytes ;\n if ( savebytes > 0 ) {\n uprv_memcpy ( args -> converter -> toUBytes , errSource , savebytes ) ;\n }\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n * err = U_ZERO_ERROR ;\n }\n }\n }\n DEFINE_LMBCS_OPEN ( 1 ) DEFINE_LMBCS_OPEN ( 2 ) DEFINE_LMBCS_OPEN ( 3 ) DEFINE_LMBCS_OPEN ( 4 ) DEFINE_LMBCS_OPEN ( 5 )"}
{"idx": 14631, "target": 0, "func": "static gboolean qio_channel_websock_source_check ( GSource * source ) {\n QIOChannelWebsockSource * wsource = ( QIOChannelWebsockSource * ) source ;\n GIOCondition cond = 0 ;\n if ( wsource -> wioc -> rawinput . offset || wsource -> wioc -> io_eof ) {\n cond |= G_IO_IN ;\n }\n if ( wsource -> wioc -> encoutput . offset < QIO_CHANNEL_WEBSOCK_MAX_BUFFER ) {\n cond |= G_IO_OUT ;\n }\n return cond & wsource -> condition ;\n }"}
{"idx": 14632, "target": 0, "func": "static inline int64_t pcnet_get_next_poll_time ( PCNetState * s , int64_t current_time ) {\n int64_t next_time = current_time + ( 65536 - ( CSR_SPND ( s ) ? 0 : CSR_POLL ( s ) ) ) * 30 ;\n if ( next_time <= current_time ) {\n next_time = current_time + 1 ;\n }\n return next_time ;\n }"}
{"idx": 14633, "target": 1, "func": "static void apply_frame_size ( VP9_COMMON * cm , int width , int height ) {\n if ( cm -> width != width || cm -> height != height ) {\n if ( width > cm -> width || height > cm -> height ) {\n if ( vp9_resize_frame_buffers ( cm , width , height ) ) vpx_internal_error ( & cm -> error , VPX_CODEC_MEM_ERROR , \"Failed to allocate frame buffers\" ) ;\n }\n cm -> width = width ;\n cm -> height = height ;\n vp9_update_frame_size ( cm ) ;\n }\n if ( vp9_realloc_frame_buffer ( get_frame_new_buffer ( cm ) , cm -> width , cm -> height , cm -> subsampling_x , cm -> subsampling_y , VP9_DEC_BORDER_IN_PIXELS , & cm -> frame_bufs [ cm -> new_fb_idx ] . raw_frame_buffer , cm -> get_fb_cb , cm -> cb_priv ) ) {\n vpx_internal_error ( & cm -> error , VPX_CODEC_MEM_ERROR , \"Failed to allocate frame buffer\" ) ;\n }\n }"}
{"idx": 14634, "target": 0, "func": "static int dissect_usb_vid_interrupt ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n usb_conv_info_t * usb_conv_info ;\n gint bytes_available ;\n int offset = 0 ;\n usb_conv_info = ( usb_conv_info_t * ) data ;\n bytes_available = tvb_reported_length_remaining ( tvb , offset ) ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"USBVIDEO\" ) ;\n if ( bytes_available > 0 ) {\n guint8 originating_interface ;\n guint8 originating_entity ;\n originating_interface = tvb_get_guint8 ( tvb , offset ) & INT_ORIGINATOR_MASK ;\n proto_tree_add_item ( tree , hf_usb_vid_interrupt_bStatusType , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset ++ ;\n originating_entity = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_usb_vid_interrupt_bOriginator , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset ++ ;\n if ( originating_interface == INT_VIDEOCONTROL ) {\n guint8 control_sel ;\n guint8 attribute ;\n const gchar * control_name ;\n proto_tree_add_item ( tree , hf_usb_vid_control_interrupt_bEvent , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset ++ ;\n control_sel = tvb_get_guint8 ( tvb , offset ) ;\n control_name = get_control_selector_name ( originating_entity , control_sel , usb_conv_info ) ;\n if ( ! control_name ) control_name = \"Unknown\" ;\n proto_tree_add_uint_format_value ( tree , hf_usb_vid_control_selector , tvb , offset , 1 , control_sel , \"%s (0x%02x)\" , control_name , control_sel ) ;\n offset ++ ;\n attribute = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_usb_vid_interrupt_bAttribute , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset ++ ;\n switch ( attribute ) {\n case CONTROL_CHANGE_FAILURE : proto_tree_add_item ( tree , hf_usb_vid_request_error , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset ++ ;\n break ;\n case CONTROL_CHANGE_INFO : offset = dissect_usb_vid_control_info ( tree , tvb , offset ) ;\n break ;\n case CONTROL_CHANGE_VALUE : case CONTROL_CHANGE_MIN : case CONTROL_CHANGE_MAX : dissect_usb_vid_control_value ( tree , tvb , offset , attribute ) ;\n offset += tvb_reported_length_remaining ( tvb , offset ) ;\n break ;\n default : proto_tree_add_item ( tree , hf_usb_vid_value_data , tvb , offset , - 1 , ENC_NA ) ;\n offset += tvb_reported_length_remaining ( tvb , offset ) ;\n break ;\n }\n }\n else if ( originating_interface == INT_VIDEOSTREAMING ) {\n }\n }\n else offset = - 2 ;\n return offset ;\n }"}
{"idx": 14635, "target": 0, "func": "void WriteToc ( ArchiveHandle * AH ) {\n TocEntry * te ;\n char workbuf [ 32 ] ;\n int tocCount ;\n int i ;\n tocCount = 0 ;\n for ( te = AH -> toc -> next ;\n te != AH -> toc ;\n te = te -> next ) {\n if ( ( te -> reqs & ( REQ_SCHEMA | REQ_DATA | REQ_SPECIAL ) ) != 0 ) tocCount ++ ;\n }\n WriteInt ( AH , tocCount ) ;\n for ( te = AH -> toc -> next ;\n te != AH -> toc ;\n te = te -> next ) {\n if ( ( te -> reqs & ( REQ_SCHEMA | REQ_DATA | REQ_SPECIAL ) ) == 0 ) continue ;\n WriteInt ( AH , te -> dumpId ) ;\n WriteInt ( AH , te -> dataDumper ? 1 : 0 ) ;\n sprintf ( workbuf , \"%u\" , te -> catalogId . tableoid ) ;\n WriteStr ( AH , workbuf ) ;\n sprintf ( workbuf , \"%u\" , te -> catalogId . oid ) ;\n WriteStr ( AH , workbuf ) ;\n WriteStr ( AH , te -> tag ) ;\n WriteStr ( AH , te -> desc ) ;\n WriteInt ( AH , te -> section ) ;\n WriteStr ( AH , te -> defn ) ;\n WriteStr ( AH , te -> dropStmt ) ;\n WriteStr ( AH , te -> copyStmt ) ;\n WriteStr ( AH , te -> namespace ) ;\n WriteStr ( AH , te -> tablespace ) ;\n WriteStr ( AH , te -> owner ) ;\n WriteStr ( AH , te -> withOids ? \"true\" : \"false\" ) ;\n for ( i = 0 ;\n i < te -> nDeps ;\n i ++ ) {\n sprintf ( workbuf , \"%d\" , te -> dependencies [ i ] ) ;\n WriteStr ( AH , workbuf ) ;\n }\n WriteStr ( AH , NULL ) ;\n if ( AH -> WriteExtraTocPtr ) ( * AH -> WriteExtraTocPtr ) ( AH , te ) ;\n }\n }"}
{"idx": 14636, "target": 0, "func": "static int dissect_h245_T_g7231 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_g7231 , T_g7231_sequence ) ;\n return offset ;\n }"}
{"idx": 14637, "target": 0, "func": "static void dtap_gcc_term_req ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_GCC_CALL_REF , NULL ) ;\n }"}
{"idx": 14638, "target": 0, "func": "uchar * get_table_key ( const char * entry , size_t * length , my_bool not_used __attribute__ ( ( unused ) ) ) {\n * length = strlen ( entry ) ;\n return ( uchar * ) entry ;\n }"}
{"idx": 14639, "target": 0, "func": "int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL ) DECLARE_PEM_rw ( PKCS7 , PKCS7 ) DECLARE_PEM_rw ( NETSCAPE_CERT_SEQUENCE , NETSCAPE_CERT_SEQUENCE ) DECLARE_PEM_rw ( PKCS8 , X509_SIG ) DECLARE_PEM_rw ( PKCS8_PRIV_KEY_INFO , PKCS8_PRIV_KEY_INFO ) # ifndef OPENSSL_NO_RSA DECLARE_PEM_rw_cb ( RSAPrivateKey , RSA ) DECLARE_PEM_rw_const ( RSAPublicKey , RSA ) DECLARE_PEM_rw ( RSA_PUBKEY , RSA ) # endif # ifndef OPENSSL_NO_DSA DECLARE_PEM_rw_cb ( DSAPrivateKey , DSA ) DECLARE_PEM_rw ( DSA_PUBKEY , DSA ) DECLARE_PEM_rw_const ( DSAparams , DSA ) # endif # ifndef OPENSSL_NO_EC DECLARE_PEM_rw_const ( ECPKParameters , EC_GROUP ) DECLARE_PEM_rw_cb ( ECPrivateKey , EC_KEY )"}
{"idx": 14640, "target": 0, "func": "static void accumulate_frame_motion_stats ( const FIRSTPASS_STATS * stats , double * mv_in_out , double * mv_in_out_accumulator , double * abs_mv_in_out_accumulator , double * mv_ratio_accumulator ) {\n const double pct = stats -> pcnt_motion ;\n * mv_in_out = stats -> mv_in_out_count * pct ;\n * mv_in_out_accumulator += * mv_in_out ;\n * abs_mv_in_out_accumulator += fabs ( * mv_in_out ) ;\n if ( pct > 0.05 ) {\n const double mvr_ratio = fabs ( stats -> mvr_abs ) / DOUBLE_DIVIDE_CHECK ( fabs ( stats -> MVr ) ) ;\n const double mvc_ratio = fabs ( stats -> mvc_abs ) / DOUBLE_DIVIDE_CHECK ( fabs ( stats -> MVc ) ) ;\n * mv_ratio_accumulator += pct * ( mvr_ratio < stats -> mvr_abs ? mvr_ratio : stats -> mvr_abs ) ;\n * mv_ratio_accumulator += pct * ( mvc_ratio < stats -> mvc_abs ? mvc_ratio : stats -> mvc_abs ) ;\n }\n }"}
{"idx": 14641, "target": 0, "func": "void free_replace_regex ( ) {\n if ( glob_replace_regex ) {\n delete_dynamic ( & glob_replace_regex -> regex_arr ) ;\n my_free ( glob_replace_regex -> even_buf ) ;\n my_free ( glob_replace_regex -> odd_buf ) ;\n my_free ( glob_replace_regex ) ;\n glob_replace_regex = 0 ;\n }\n }"}
{"idx": 14642, "target": 1, "func": "static void * data_create_arabic ( const hb_ot_shape_plan_t * plan ) {\n arabic_shape_plan_t * arabic_plan = ( arabic_shape_plan_t * ) calloc ( 1 , sizeof ( arabic_shape_plan_t ) ) ;\n if ( unlikely ( ! arabic_plan ) ) return NULL ;\n arabic_plan -> do_fallback = plan -> props . script == HB_SCRIPT_ARABIC ;\n for ( unsigned int i = 0 ;\n i < ARABIC_NUM_FEATURES ;\n i ++ ) {\n arabic_plan -> mask_array [ i ] = plan -> map . get_1_mask ( arabic_features [ i ] ) ;\n arabic_plan -> do_fallback = arabic_plan -> do_fallback && ( FEATURE_IS_SYRIAC ( arabic_features [ i ] ) || plan -> map . needs_fallback ( arabic_features [ i ] ) ) ;\n }\n return arabic_plan ;\n }"}
{"idx": 14643, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FullscreenControllerTest , MouseLockOnFileURL ) {\n static const base : : FilePath : : CharType * kEmptyFile = FILE_PATH_LITERAL ( \"empty.html\" ) ;\n GURL file_url ( ui_test_utils : : GetTestUrl ( base : : FilePath ( base : : FilePath : : kCurrentDirectory ) , base : : FilePath ( kEmptyFile ) ) ) ;\n AddTabAtIndex ( 0 , file_url , PAGE_TRANSITION_TYPED ) ;\n RequestToLockMouse ( true , false ) ;\n ASSERT_TRUE ( IsFullscreenBubbleDisplayed ( ) ) ;\n ASSERT_TRUE ( IsFullscreenBubbleDisplayingButtons ( ) ) ;\n }"}
{"idx": 14644, "target": 0, "func": "static void signal_channel_created ( CHANNEL_REC * channel , void * automatic ) {\n if ( window_item_window ( channel ) == NULL ) {\n window_item_create ( ( WI_ITEM_REC * ) channel , GPOINTER_TO_INT ( automatic ) ) ;\n }\n }"}
{"idx": 14645, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( NtpExtensionBubbleViewBrowserTest , TestControlledNewTabPageMessageBubbleLearnMore ) {\n TestControlledNewTabPageBubbleShown ( true ) ;\n }"}
{"idx": 14646, "target": 0, "func": "static void sig_complete_msg ( GList * * list , WINDOW_REC * window , const char * word , const char * line , int * want_space ) {\n SERVER_REC * server , * msgserver ;\n g_return_if_fail ( list != NULL ) ;\n g_return_if_fail ( word != NULL ) ;\n g_return_if_fail ( line != NULL ) ;\n server = window -> active_server ;\n if ( server == NULL || ! server -> connected ) return ;\n msgserver = line_get_server ( line ) ;\n * list = completion_msg ( server , msgserver , word , NULL ) ;\n if ( CHANNEL ( window -> active ) != NULL ) complete_window_nicks ( list , window , word , NULL ) ;\n if ( * list != NULL ) signal_stop ( ) ;\n }"}
{"idx": 14647, "target": 0, "func": "static int calc_arf_boost ( VP9_COMP * cpi , int offset , int f_frames , int b_frames , int * f_boost , int * b_boost ) {\n TWO_PASS * const twopass = & cpi -> twopass ;\n int i ;\n double boost_score = 0.0 ;\n double mv_ratio_accumulator = 0.0 ;\n double decay_accumulator = 1.0 ;\n double this_frame_mv_in_out = 0.0 ;\n double mv_in_out_accumulator = 0.0 ;\n double abs_mv_in_out_accumulator = 0.0 ;\n int arf_boost ;\n int flash_detected = 0 ;\n for ( i = 0 ;\n i < f_frames ;\n ++ i ) {\n const FIRSTPASS_STATS * this_frame = read_frame_stats ( twopass , i + offset ) ;\n if ( this_frame == NULL ) break ;\n accumulate_frame_motion_stats ( this_frame , & this_frame_mv_in_out , & mv_in_out_accumulator , & abs_mv_in_out_accumulator , & mv_ratio_accumulator ) ;\n flash_detected = detect_flash ( twopass , i + offset ) || detect_flash ( twopass , i + offset + 1 ) ;\n if ( ! flash_detected ) {\n decay_accumulator *= get_prediction_decay_rate ( & cpi -> common , this_frame ) ;\n decay_accumulator = decay_accumulator < MIN_DECAY_FACTOR ? MIN_DECAY_FACTOR : decay_accumulator ;\n }\n boost_score += decay_accumulator * calc_frame_boost ( cpi , this_frame , this_frame_mv_in_out , GF_MAX_BOOST ) ;\n }\n * f_boost = ( int ) boost_score ;\n boost_score = 0.0 ;\n mv_ratio_accumulator = 0.0 ;\n decay_accumulator = 1.0 ;\n this_frame_mv_in_out = 0.0 ;\n mv_in_out_accumulator = 0.0 ;\n abs_mv_in_out_accumulator = 0.0 ;\n for ( i = - 1 ;\n i >= - b_frames ;\n -- i ) {\n const FIRSTPASS_STATS * this_frame = read_frame_stats ( twopass , i + offset ) ;\n if ( this_frame == NULL ) break ;\n accumulate_frame_motion_stats ( this_frame , & this_frame_mv_in_out , & mv_in_out_accumulator , & abs_mv_in_out_accumulator , & mv_ratio_accumulator ) ;\n flash_detected = detect_flash ( twopass , i + offset ) || detect_flash ( twopass , i + offset + 1 ) ;\n if ( ! flash_detected ) {\n decay_accumulator *= get_prediction_decay_rate ( & cpi -> common , this_frame ) ;\n decay_accumulator = decay_accumulator < MIN_DECAY_FACTOR ? MIN_DECAY_FACTOR : decay_accumulator ;\n }\n boost_score += decay_accumulator * calc_frame_boost ( cpi , this_frame , this_frame_mv_in_out , GF_MAX_BOOST ) ;\n }\n * b_boost = ( int ) boost_score ;\n arf_boost = ( * f_boost + * b_boost ) ;\n if ( arf_boost < ( ( b_frames + f_frames ) * 20 ) ) arf_boost = ( ( b_frames + f_frames ) * 20 ) ;\n return arf_boost ;\n }"}
{"idx": 14648, "target": 0, "func": "static int dissect_h245_ConferenceIndication ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_ConferenceIndication , ConferenceIndication_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 14649, "target": 0, "func": "static int proc_do_submiturb ( struct usb_dev_state * ps , struct usbdevfs_urb * uurb , struct usbdevfs_iso_packet_desc __user * iso_frame_desc , void __user * arg ) {\n struct usbdevfs_iso_packet_desc * isopkt = NULL ;\n struct usb_host_endpoint * ep ;\n struct async * as = NULL ;\n struct usb_ctrlrequest * dr = NULL ;\n unsigned int u , totlen , isofrmlen ;\n int i , ret , is_in , num_sgs = 0 , ifnum = - 1 ;\n int number_of_packets = 0 ;\n unsigned int stream_id = 0 ;\n void * buf ;\n if ( uurb -> flags & ~ ( USBDEVFS_URB_ISO_ASAP | USBDEVFS_URB_SHORT_NOT_OK | USBDEVFS_URB_BULK_CONTINUATION | USBDEVFS_URB_NO_FSBR | USBDEVFS_URB_ZERO_PACKET | USBDEVFS_URB_NO_INTERRUPT ) ) return - EINVAL ;\n if ( uurb -> buffer_length > 0 && ! uurb -> buffer ) return - EINVAL ;\n if ( ! ( uurb -> type == USBDEVFS_URB_TYPE_CONTROL && ( uurb -> endpoint & ~ USB_ENDPOINT_DIR_MASK ) == 0 ) ) {\n ifnum = findintfep ( ps -> dev , uurb -> endpoint ) ;\n if ( ifnum < 0 ) return ifnum ;\n ret = checkintf ( ps , ifnum ) ;\n if ( ret ) return ret ;\n }\n ep = ep_to_host_endpoint ( ps -> dev , uurb -> endpoint ) ;\n if ( ! ep ) return - ENOENT ;\n is_in = ( uurb -> endpoint & USB_ENDPOINT_DIR_MASK ) != 0 ;\n u = 0 ;\n switch ( uurb -> type ) {\n case USBDEVFS_URB_TYPE_CONTROL : if ( ! usb_endpoint_xfer_control ( & ep -> desc ) ) return - EINVAL ;\n if ( uurb -> buffer_length < 8 ) return - EINVAL ;\n dr = kmalloc ( sizeof ( struct usb_ctrlrequest ) , GFP_KERNEL ) ;\n if ( ! dr ) return - ENOMEM ;\n if ( copy_from_user ( dr , uurb -> buffer , 8 ) ) {\n ret = - EFAULT ;\n goto error ;\n }\n if ( uurb -> buffer_length < ( le16_to_cpup ( & dr -> wLength ) + 8 ) ) {\n ret = - EINVAL ;\n goto error ;\n }\n ret = check_ctrlrecip ( ps , dr -> bRequestType , dr -> bRequest , le16_to_cpup ( & dr -> wIndex ) ) ;\n if ( ret ) goto error ;\n uurb -> buffer_length = le16_to_cpup ( & dr -> wLength ) ;\n uurb -> buffer += 8 ;\n if ( ( dr -> bRequestType & USB_DIR_IN ) && uurb -> buffer_length ) {\n is_in = 1 ;\n uurb -> endpoint |= USB_DIR_IN ;\n }\n else {\n is_in = 0 ;\n uurb -> endpoint &= ~ USB_DIR_IN ;\n }\n snoop ( & ps -> dev -> dev , \"control urb: bRequestType=%02x \" \"bRequest=%02x wValue=%04x \" \"wIndex=%04x wLength=%04x\\n\" , dr -> bRequestType , dr -> bRequest , __le16_to_cpup ( & dr -> wValue ) , __le16_to_cpup ( & dr -> wIndex ) , __le16_to_cpup ( & dr -> wLength ) ) ;\n u = sizeof ( struct usb_ctrlrequest ) ;\n break ;\n case USBDEVFS_URB_TYPE_BULK : switch ( usb_endpoint_type ( & ep -> desc ) ) {\n case USB_ENDPOINT_XFER_CONTROL : case USB_ENDPOINT_XFER_ISOC : return - EINVAL ;\n case USB_ENDPOINT_XFER_INT : uurb -> type = USBDEVFS_URB_TYPE_INTERRUPT ;\n goto interrupt_urb ;\n }\n num_sgs = DIV_ROUND_UP ( uurb -> buffer_length , USB_SG_SIZE ) ;\n if ( num_sgs == 1 || num_sgs > ps -> dev -> bus -> sg_tablesize ) num_sgs = 0 ;\n if ( ep -> streams ) stream_id = uurb -> stream_id ;\n break ;\n case USBDEVFS_URB_TYPE_INTERRUPT : if ( ! usb_endpoint_xfer_int ( & ep -> desc ) ) return - EINVAL ;\n interrupt_urb : break ;\n case USBDEVFS_URB_TYPE_ISO : if ( uurb -> number_of_packets < 1 || uurb -> number_of_packets > 128 ) return - EINVAL ;\n if ( ! usb_endpoint_xfer_isoc ( & ep -> desc ) ) return - EINVAL ;\n number_of_packets = uurb -> number_of_packets ;\n isofrmlen = sizeof ( struct usbdevfs_iso_packet_desc ) * number_of_packets ;\n isopkt = memdup_user ( iso_frame_desc , isofrmlen ) ;\n if ( IS_ERR ( isopkt ) ) {\n ret = PTR_ERR ( isopkt ) ;\n isopkt = NULL ;\n goto error ;\n }\n for ( totlen = u = 0 ;\n u < number_of_packets ;\n u ++ ) {\n if ( isopkt [ u ] . length > 49152 ) {\n ret = - EINVAL ;\n goto error ;\n }\n totlen += isopkt [ u ] . length ;\n }\n u *= sizeof ( struct usb_iso_packet_descriptor ) ;\n uurb -> buffer_length = totlen ;\n break ;\n default : return - EINVAL ;\n }\n if ( uurb -> buffer_length >= USBFS_XFER_MAX ) {\n ret = - EINVAL ;\n goto error ;\n }\n if ( uurb -> buffer_length > 0 && ! access_ok ( is_in ? VERIFY_WRITE : VERIFY_READ , uurb -> buffer , uurb -> buffer_length ) ) {\n ret = - EFAULT ;\n goto error ;\n }\n as = alloc_async ( number_of_packets ) ;\n if ( ! as ) {\n ret = - ENOMEM ;\n goto error ;\n }\n as -> usbm = find_memory_area ( ps , uurb ) ;\n if ( IS_ERR ( as -> usbm ) ) {\n ret = PTR_ERR ( as -> usbm ) ;\n as -> usbm = NULL ;\n goto error ;\n }\n if ( as -> usbm ) num_sgs = 0 ;\n u += sizeof ( struct async ) + sizeof ( struct urb ) + uurb -> buffer_length + num_sgs * sizeof ( struct scatterlist ) ;\n ret = usbfs_increase_memory_usage ( u ) ;\n if ( ret ) goto error ;\n as -> mem_usage = u ;\n if ( num_sgs ) {\n as -> urb -> sg = kmalloc ( num_sgs * sizeof ( struct scatterlist ) , GFP_KERNEL ) ;\n if ( ! as -> urb -> sg ) {\n ret = - ENOMEM ;\n goto error ;\n }\n as -> urb -> num_sgs = num_sgs ;\n sg_init_table ( as -> urb -> sg , as -> urb -> num_sgs ) ;\n totlen = uurb -> buffer_length ;\n for ( i = 0 ;\n i < as -> urb -> num_sgs ;\n i ++ ) {\n u = ( totlen > USB_SG_SIZE ) ? USB_SG_SIZE : totlen ;\n buf = kmalloc ( u , GFP_KERNEL ) ;\n if ( ! buf ) {\n ret = - ENOMEM ;\n goto error ;\n }\n sg_set_buf ( & as -> urb -> sg [ i ] , buf , u ) ;\n if ( ! is_in ) {\n if ( copy_from_user ( buf , uurb -> buffer , u ) ) {\n ret = - EFAULT ;\n goto error ;\n }\n uurb -> buffer += u ;\n }\n totlen -= u ;\n }\n }\n else if ( uurb -> buffer_length > 0 ) {\n if ( as -> usbm ) {\n unsigned long uurb_start = ( unsigned long ) uurb -> buffer ;\n as -> urb -> transfer_buffer = as -> usbm -> mem + ( uurb_start - as -> usbm -> vm_start ) ;\n }\n else {\n as -> urb -> transfer_buffer = kmalloc ( uurb -> buffer_length , GFP_KERNEL ) ;\n if ( ! as -> urb -> transfer_buffer ) {\n ret = - ENOMEM ;\n goto error ;\n }\n if ( ! is_in ) {\n if ( copy_from_user ( as -> urb -> transfer_buffer , uurb -> buffer , uurb -> buffer_length ) ) {\n ret = - EFAULT ;\n goto error ;\n }\n }\n else if ( uurb -> type == USBDEVFS_URB_TYPE_ISO ) {\n memset ( as -> urb -> transfer_buffer , 0 , uurb -> buffer_length ) ;\n }\n }\n }\n as -> urb -> dev = ps -> dev ;\n as -> urb -> pipe = ( uurb -> type << 30 ) | __create_pipe ( ps -> dev , uurb -> endpoint & 0xf ) | ( uurb -> endpoint & USB_DIR_IN ) ;\n u = ( is_in ? URB_DIR_IN : URB_DIR_OUT ) ;\n if ( uurb -> flags & USBDEVFS_URB_ISO_ASAP ) u |= URB_ISO_ASAP ;\n if ( uurb -> flags & USBDEVFS_URB_SHORT_NOT_OK && is_in ) u |= URB_SHORT_NOT_OK ;\n if ( uurb -> flags & USBDEVFS_URB_NO_FSBR ) u |= URB_NO_FSBR ;\n if ( uurb -> flags & USBDEVFS_URB_ZERO_PACKET ) u |= URB_ZERO_PACKET ;\n if ( uurb -> flags & USBDEVFS_URB_NO_INTERRUPT ) u |= URB_NO_INTERRUPT ;\n as -> urb -> transfer_flags = u ;\n as -> urb -> transfer_buffer_length = uurb -> buffer_length ;\n as -> urb -> setup_packet = ( unsigned char * ) dr ;\n dr = NULL ;\n as -> urb -> start_frame = uurb -> start_frame ;\n as -> urb -> number_of_packets = number_of_packets ;\n as -> urb -> stream_id = stream_id ;\n if ( uurb -> type == USBDEVFS_URB_TYPE_ISO || ps -> dev -> speed == USB_SPEED_HIGH ) as -> urb -> interval = 1 << min ( 15 , ep -> desc . bInterval - 1 ) ;\n else as -> urb -> interval = ep -> desc . bInterval ;\n as -> urb -> context = as ;\n as -> urb -> complete = async_completed ;\n for ( totlen = u = 0 ;\n u < number_of_packets ;\n u ++ ) {\n as -> urb -> iso_frame_desc [ u ] . offset = totlen ;\n as -> urb -> iso_frame_desc [ u ] . length = isopkt [ u ] . length ;\n totlen += isopkt [ u ] . length ;\n }\n kfree ( isopkt ) ;\n isopkt = NULL ;\n as -> ps = ps ;\n as -> userurb = arg ;\n if ( as -> usbm ) {\n unsigned long uurb_start = ( unsigned long ) uurb -> buffer ;\n as -> urb -> transfer_flags |= URB_NO_TRANSFER_DMA_MAP ;\n as -> urb -> transfer_dma = as -> usbm -> dma_handle + ( uurb_start - as -> usbm -> vm_start ) ;\n }\n else if ( is_in && uurb -> buffer_length > 0 ) as -> userbuffer = uurb -> buffer ;\n as -> signr = uurb -> signr ;\n as -> ifnum = ifnum ;\n as -> pid = get_pid ( task_pid ( current ) ) ;\n as -> cred = get_current_cred ( ) ;\n security_task_getsecid ( current , & as -> secid ) ;\n snoop_urb ( ps -> dev , as -> userurb , as -> urb -> pipe , as -> urb -> transfer_buffer_length , 0 , SUBMIT , NULL , 0 ) ;\n if ( ! is_in ) snoop_urb_data ( as -> urb , as -> urb -> transfer_buffer_length ) ;\n async_newpending ( as ) ;\n if ( usb_endpoint_xfer_bulk ( & ep -> desc ) ) {\n spin_lock_irq ( & ps -> lock ) ;\n as -> bulk_addr = usb_endpoint_num ( & ep -> desc ) | ( ( ep -> desc . bEndpointAddress & USB_ENDPOINT_DIR_MASK ) >> 3 ) ;\n if ( uurb -> flags & USBDEVFS_URB_BULK_CONTINUATION ) as -> bulk_status = AS_CONTINUATION ;\n else ps -> disabled_bulk_eps &= ~ ( 1 << as -> bulk_addr ) ;\n if ( ps -> disabled_bulk_eps & ( 1 << as -> bulk_addr ) ) ret = - EREMOTEIO ;\n else ret = usb_submit_urb ( as -> urb , GFP_ATOMIC ) ;\n spin_unlock_irq ( & ps -> lock ) ;\n }\n else {\n ret = usb_submit_urb ( as -> urb , GFP_KERNEL ) ;\n }\n if ( ret ) {\n dev_printk ( KERN_DEBUG , & ps -> dev -> dev , \"usbfs: usb_submit_urb returned %d\\n\" , ret ) ;\n snoop_urb ( ps -> dev , as -> userurb , as -> urb -> pipe , 0 , ret , COMPLETE , NULL , 0 ) ;\n async_removepending ( as ) ;\n goto error ;\n }\n return 0 ;\n error : if ( as && as -> usbm ) dec_usb_memory_use_count ( as -> usbm , & as -> usbm -> urb_use_count ) ;\n kfree ( isopkt ) ;\n kfree ( dr ) ;\n if ( as ) free_async ( as ) ;\n return ret ;\n }"}
{"idx": 14650, "target": 0, "func": "int kvm_device_intx_deassign ( KVMState * s , uint32_t dev_id , bool use_host_msi ) {\n return kvm_deassign_irq_internal ( s , dev_id , KVM_DEV_IRQ_GUEST_INTX | ( use_host_msi ? KVM_DEV_IRQ_HOST_MSI : KVM_DEV_IRQ_HOST_INTX ) ) ;\n }"}
{"idx": 14651, "target": 0, "func": "static int mv_probe ( AVProbeData * p ) {\n if ( AV_RB32 ( p -> buf ) == MKBETAG ( 'M' , 'O' , 'V' , 'I' ) && AV_RB16 ( p -> buf + 4 ) < 3 ) return AVPROBE_SCORE_MAX ;\n return 0 ;\n }"}
{"idx": 14652, "target": 1, "func": "static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING )"}
{"idx": 14653, "target": 0, "func": "static int dissect_rsl_ie_grp_call_ref ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_item * ti ;\n proto_tree * ie_tree ;\n guint length ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_GRP_CALL_REF ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_ie_grp_call_ref , & ti , \"Group call reference IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n length = tvb_get_guint8 ( tvb , offset ) ;\n proto_item_set_len ( ti , length + 2 ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_length , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_descriptive_group_or_broadcast_call_reference , tvb , offset , length , ENC_NA ) ;\n de_d_gb_call_ref ( tvb , ie_tree , pinfo , offset , length , NULL , 0 ) ;\n offset = offset + length ;\n return offset ;\n }"}
{"idx": 14654, "target": 0, "func": "static void _updateOffsets ( int32_t * offsets , int32_t length , int32_t sourceIndex , int32_t errorInputLength ) {\n int32_t * limit ;\n int32_t delta , offset ;\n if ( sourceIndex >= 0 ) {\n delta = sourceIndex - errorInputLength ;\n }\n else {\n delta = - 1 ;\n }\n limit = offsets + length ;\n if ( delta == 0 ) {\n }\n else if ( delta > 0 ) {\n while ( offsets < limit ) {\n offset = * offsets ;\n if ( offset >= 0 ) {\n * offsets = offset + delta ;\n }\n ++ offsets ;\n }\n }\n else {\n while ( offsets < limit ) {\n * offsets ++ = - 1 ;\n }\n }\n }"}
{"idx": 14655, "target": 0, "func": "static int selinux_binder_transfer_file ( struct task_struct * from , struct task_struct * to , struct file * file ) {\n u32 sid = task_sid ( to ) ;\n struct file_security_struct * fsec = file -> f_security ;\n struct dentry * dentry = file -> f_path . dentry ;\n struct inode_security_struct * isec ;\n struct common_audit_data ad ;\n int rc ;\n ad . type = LSM_AUDIT_DATA_PATH ;\n ad . u . path = file -> f_path ;\n if ( sid != fsec -> sid ) {\n rc = avc_has_perm ( sid , fsec -> sid , SECCLASS_FD , FD__USE , & ad ) ;\n if ( rc ) return rc ;\n }\n if ( unlikely ( IS_PRIVATE ( d_backing_inode ( dentry ) ) ) ) return 0 ;\n isec = backing_inode_security ( dentry ) ;\n return avc_has_perm ( sid , isec -> sid , isec -> sclass , file_to_av ( file ) , & ad ) ;\n }"}
{"idx": 14656, "target": 0, "func": "int TSHttpCurrentServerConnectionsGet ( void ) {\n int64_t S ;\n HTTP_READ_GLOBAL_DYN_SUM ( http_current_server_connections_stat , S ) ;\n return ( int ) S ;\n }"}
{"idx": 14657, "target": 0, "func": "static void getOutFilename ( const char * inFilename , const char * destdir , char * outFilename , char * entryName , const char * newSuffix , const char * optFilename ) {\n const char * basename = findBasename ( inFilename ) , * suffix = uprv_strrchr ( basename , '.' ) ;\n if ( destdir != NULL && * destdir != 0 ) {\n do {\n * outFilename ++ = * destdir ++ ;\n }\n while ( * destdir != 0 ) ;\n if ( * ( outFilename - 1 ) != U_FILE_SEP_CHAR ) {\n * outFilename ++ = U_FILE_SEP_CHAR ;\n }\n inFilename = basename ;\n }\n else {\n while ( inFilename < basename ) {\n * outFilename ++ = * inFilename ++ ;\n }\n }\n if ( suffix == NULL ) {\n uprv_strcpy ( entryName , inFilename ) ;\n if ( optFilename != NULL ) {\n uprv_strcpy ( outFilename , optFilename ) ;\n }\n else {\n uprv_strcpy ( outFilename , inFilename ) ;\n }\n uprv_strcat ( outFilename , newSuffix ) ;\n }\n else {\n char * saveOutFilename = outFilename ;\n while ( inFilename < suffix ) {\n if ( * inFilename == '-' ) {\n * outFilename ++ = * entryName ++ = '_' ;\n inFilename ++ ;\n }\n else {\n * outFilename ++ = * entryName ++ = * inFilename ++ ;\n }\n }\n * outFilename ++ = * entryName ++ = '_' ;\n ++ inFilename ;\n while ( * inFilename != 0 ) {\n * outFilename ++ = * entryName ++ = * inFilename ++ ;\n }\n * entryName = 0 ;\n if ( optFilename != NULL ) {\n uprv_strcpy ( saveOutFilename , optFilename ) ;\n uprv_strcat ( saveOutFilename , newSuffix ) ;\n }\n else {\n uprv_strcpy ( outFilename , newSuffix ) ;\n }\n }\n }"}
{"idx": 14658, "target": 0, "func": "static int pic_num_extract ( H264Context * h , int pic_num , int * structure ) {\n * structure = h -> picture_structure ;\n if ( FIELD_PICTURE ) {\n if ( ! ( pic_num & 1 ) ) * structure ^= PICT_FRAME ;\n pic_num >>= 1 ;\n }\n return pic_num ;\n }"}
{"idx": 14659, "target": 0, "func": "static const char * cmd_server_signature ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n if ( cmd -> server -> is_virtual ) {\n return \"ModSecurity: SecServerSignature not allowed in VirtualHost\" ;\n }\n new_server_signature = ( char * ) p1 ;\n return NULL ;\n }"}
{"idx": 14660, "target": 0, "func": "static void cinepak_decode_codebook ( cvid_codebook * codebook , int chunk_id , int size , const uint8_t * data ) {\n const uint8_t * eod = ( data + size ) ;\n uint32_t flag , mask ;\n int i , n ;\n n = ( chunk_id & 0x04 ) ? 4 : 6 ;\n flag = 0 ;\n mask = 0 ;\n for ( i = 0 ;\n i < 256 ;\n i ++ ) {\n if ( ( chunk_id & 0x01 ) && ! ( mask >>= 1 ) ) {\n if ( ( data + 4 ) > eod ) break ;\n flag = AV_RB32 ( data ) ;\n data += 4 ;\n mask = 0x80000000 ;\n }\n if ( ! ( chunk_id & 0x01 ) || ( flag & mask ) ) {\n if ( ( data + n ) > eod ) break ;\n if ( n == 6 ) {\n codebook [ i ] . y0 = * data ++ ;\n codebook [ i ] . y1 = * data ++ ;\n codebook [ i ] . y2 = * data ++ ;\n codebook [ i ] . y3 = * data ++ ;\n codebook [ i ] . u = 128 + * data ++ ;\n codebook [ i ] . v = 128 + * data ++ ;\n }\n else {\n codebook [ i ] . y0 = * data ++ ;\n codebook [ i ] . y1 = * data ++ ;\n codebook [ i ] . y2 = * data ++ ;\n codebook [ i ] . y3 = * data ++ ;\n codebook [ i ] . u = 128 ;\n codebook [ i ] . v = 128 ;\n }\n }\n }\n }"}
{"idx": 14661, "target": 0, "func": "static CURLcode http_output_basic ( struct connectdata * conn , bool proxy ) {\n size_t size = 0 ;\n char * authorization = NULL ;\n struct Curl_easy * data = conn -> data ;\n char * * userp ;\n const char * user ;\n const char * pwd ;\n CURLcode result ;\n if ( proxy ) {\n userp = & conn -> allocptr . proxyuserpwd ;\n user = conn -> proxyuser ;\n pwd = conn -> proxypasswd ;\n }\n else {\n userp = & conn -> allocptr . userpwd ;\n user = conn -> user ;\n pwd = conn -> passwd ;\n }\n snprintf ( data -> state . buffer , sizeof ( data -> state . buffer ) , \"%s:%s\" , user , pwd ) ;\n result = Curl_base64_encode ( data , data -> state . buffer , strlen ( data -> state . buffer ) , & authorization , & size ) ;\n if ( result ) return result ;\n if ( ! authorization ) return CURLE_REMOTE_ACCESS_DENIED ;\n free ( * userp ) ;\n * userp = aprintf ( \"%sAuthorization: Basic %s\\r\\n\" , proxy ? \"Proxy-\" : \"\" , authorization ) ;\n free ( authorization ) ;\n if ( ! * userp ) return CURLE_OUT_OF_MEMORY ;\n return CURLE_OK ;\n }"}
{"idx": 14662, "target": 0, "func": "int EVP_EncryptInit ( EVP_CIPHER_CTX * ctx , const EVP_CIPHER * cipher , const unsigned char * key , const unsigned char * iv ) {\n return EVP_CipherInit ( ctx , cipher , key , iv , 1 ) ;\n }"}
{"idx": 14663, "target": 1, "func": "void vp9_idct16x16_add ( const int16_t * input , uint8_t * dest , int stride , int eob ) {\n if ( eob == 1 ) vp9_idct16x16_1_add ( input , dest , stride ) ;\n else if ( eob <= 10 ) vp9_idct16x16_10_add ( input , dest , stride ) ;\n else vp9_idct16x16_256_add ( input , dest , stride ) ;\n }"}
{"idx": 14664, "target": 0, "func": "METHOD ( certificate_t , has_issuer , id_match_t , private_x509_cert_t * this , identification_t * issuer ) {\n return this -> issuer -> matches ( this -> issuer , issuer ) ;\n }"}
{"idx": 14665, "target": 0, "func": "static int decode_subframe ( TAKDecContext * s , int32_t * decoded , int subframe_size , int prev_subframe_size ) {\n LOCAL_ALIGNED_16 ( int16_t , filter , [ MAX_PREDICTORS ] ) ;\n GetBitContext * gb = & s -> gb ;\n int i , ret ;\n int dshift , size , filter_quant , filter_order ;\n memset ( filter , 0 , MAX_PREDICTORS * sizeof ( * filter ) ) ;\n if ( ! get_bits1 ( gb ) ) return decode_residues ( s , decoded , subframe_size ) ;\n filter_order = predictor_sizes [ get_bits ( gb , 4 ) ] ;\n if ( prev_subframe_size > 0 && get_bits1 ( gb ) ) {\n if ( filter_order > prev_subframe_size ) return AVERROR_INVALIDDATA ;\n decoded -= filter_order ;\n subframe_size += filter_order ;\n if ( filter_order > subframe_size ) return AVERROR_INVALIDDATA ;\n }\n else {\n int lpc_mode ;\n if ( filter_order > subframe_size ) return AVERROR_INVALIDDATA ;\n lpc_mode = get_bits ( gb , 2 ) ;\n if ( lpc_mode > 2 ) return AVERROR_INVALIDDATA ;\n if ( ( ret = decode_residues ( s , decoded , filter_order ) ) < 0 ) return ret ;\n if ( lpc_mode ) decode_lpc ( decoded , lpc_mode , filter_order ) ;\n }\n dshift = get_bits_esc4 ( gb ) ;\n size = get_bits1 ( gb ) + 6 ;\n filter_quant = 10 ;\n if ( get_bits1 ( gb ) ) {\n filter_quant -= get_bits ( gb , 3 ) + 1 ;\n if ( filter_quant < 3 ) return AVERROR_INVALIDDATA ;\n }\n decode_filter_coeffs ( s , filter_order , size , filter_quant , filter ) ;\n if ( ( ret = decode_residues ( s , & decoded [ filter_order ] , subframe_size - filter_order ) ) < 0 ) return ret ;\n av_fast_malloc ( & s -> residues , & s -> residues_buf_size , FFALIGN ( subframe_size + 16 , 16 ) * sizeof ( * s -> residues ) ) ;\n if ( ! s -> residues ) return AVERROR ( ENOMEM ) ;\n memset ( s -> residues , 0 , s -> residues_buf_size ) ;\n for ( i = 0 ;\n i < filter_order ;\n i ++ ) s -> residues [ i ] = * decoded ++ >> dshift ;\n for ( i = 0 ;\n i < subframe_size - filter_order ;\n i ++ ) {\n int v = 1 << ( filter_quant - 1 ) ;\n v += s -> dsp . scalarproduct_int16 ( & s -> residues [ i ] , filter , FFALIGN ( filter_order , 16 ) ) ;\n v = ( av_clip ( v >> filter_quant , - 8192 , 8191 ) << dshift ) - * decoded ;\n * decoded ++ = v ;\n s -> residues [ filter_order + i ] = v >> dshift ;\n }\n emms_c ( ) ;\n return 0 ;\n }"}
{"idx": 14666, "target": 0, "func": "const char * TSHttpHookNameLookup ( TSHttpHookID hook ) {\n return HttpDebugNames : : get_api_hook_name ( static_cast < TSHttpHookID > ( hook ) ) ;\n }"}
{"idx": 14667, "target": 0, "func": "int reuse_partial_packfile_from_bitmap ( struct packed_git * * packfile , uint32_t * entries , off_t * up_to ) {\n static const double REUSE_PERCENT = 0.9 ;\n struct bitmap * result = bitmap_git . result ;\n uint32_t reuse_threshold ;\n uint32_t i , reuse_objects = 0 ;\n assert ( result ) ;\n for ( i = 0 ;\n i < result -> word_alloc ;\n ++ i ) {\n if ( result -> words [ i ] != ( eword_t ) ~ 0 ) {\n reuse_objects += ewah_bit_ctz64 ( ~ result -> words [ i ] ) ;\n break ;\n }\n reuse_objects += BITS_IN_EWORD ;\n }\n # ifdef GIT_BITMAP_DEBUG {\n const unsigned char * sha1 ;\n struct revindex_entry * entry ;\n entry = & bitmap_git . reverse_index -> revindex [ reuse_objects ] ;\n sha1 = nth_packed_object_sha1 ( bitmap_git . pack , entry -> nr ) ;\n fprintf ( stderr , \"Failed to reuse at %d (%016llx)\\n\" , reuse_objects , result -> words [ i ] ) ;\n fprintf ( stderr , \" %s\\n\" , sha1_to_hex ( sha1 ) ) ;\n }\n # endif if ( ! reuse_objects ) return - 1 ;\n if ( reuse_objects >= bitmap_git . pack -> num_objects ) {\n bitmap_git . reuse_objects = * entries = bitmap_git . pack -> num_objects ;\n * up_to = - 1 ;\n * packfile = bitmap_git . pack ;\n return 0 ;\n }\n reuse_threshold = bitmap_popcount ( bitmap_git . result ) * REUSE_PERCENT ;\n if ( reuse_objects < reuse_threshold ) return - 1 ;\n bitmap_git . reuse_objects = * entries = reuse_objects ;\n * up_to = bitmap_git . pack -> revindex [ reuse_objects ] . offset ;\n * packfile = bitmap_git . pack ;\n return 0 ;\n }"}
{"idx": 14668, "target": 0, "func": "int64 feGetCurrentTimestamp ( void ) {\n int64 result ;\n struct timeval tp ;\n gettimeofday ( & tp , NULL ) ;\n result = ( int64 ) tp . tv_sec - ( ( POSTGRES_EPOCH_JDATE - UNIX_EPOCH_JDATE ) * SECS_PER_DAY ) ;\n result = ( result * USECS_PER_SEC ) + tp . tv_usec ;\n return result ;\n }"}
{"idx": 14669, "target": 0, "func": "static struct cgroup_process_info * lxc_cgroup_process_info_get_init ( struct cgroup_meta_data * meta ) {\n return lxc_cgroup_process_info_get ( 1 , meta ) ;\n }"}
{"idx": 14670, "target": 0, "func": "static void * Type_CrdInfo_Dup ( struct _cms_typehandler_struct * self , const void * Ptr , cmsUInt32Number n ) {\n return ( void * ) cmsMLUdup ( ( cmsMLU * ) Ptr ) ;\n cmsUNUSED_PARAMETER ( n ) ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 14671, "target": 0, "func": "proto_item * parseInt64 ( proto_tree * tree , tvbuff_t * tvb , packet_info * pinfo _U_ , gint * pOffset , int hfIndex ) {\n proto_item * item = proto_tree_add_item ( tree , hfIndex , tvb , * pOffset , 8 , ENC_LITTLE_ENDIAN ) ;\n * pOffset += 8 ;\n return item ;\n }"}
{"idx": 14672, "target": 1, "func": "static int read_intra_segment_id ( VP9_COMMON * const cm , MACROBLOCKD * const xd , int mi_row , int mi_col , vp9_reader * r ) {\n struct segmentation * const seg = & cm -> seg ;\n const BLOCK_SIZE bsize = xd -> mi [ 0 ] -> mbmi . sb_type ;\n int segment_id ;\n if ( ! seg -> enabled ) return 0 ;\n if ( ! seg -> update_map ) return 0 ;\n segment_id = read_segment_id ( r , seg ) ;\n set_segment_id ( cm , bsize , mi_row , mi_col , segment_id ) ;\n return segment_id ;\n }"}
{"idx": 14673, "target": 0, "func": "static int arith2_get_scaled_value ( int value , int n , int range ) {\n int split = ( n << 1 ) - range ;\n if ( value > split ) return split + ( value - split >> 1 ) ;\n else return value ;\n }"}
{"idx": 14674, "target": 0, "func": "int test_lshift1 ( BIO * bp ) {\n BIGNUM * a , * b , * c ;\n int i ;\n a = BN_new ( ) ;\n b = BN_new ( ) ;\n c = BN_new ( ) ;\n BN_bntest_rand ( a , 200 , 0 , 0 ) ;\n a -> neg = rand_neg ( ) ;\n for ( i = 0 ;\n i < num0 ;\n i ++ ) {\n BN_lshift1 ( b , a ) ;\n if ( bp != NULL ) {\n if ( ! results ) {\n BN_print ( bp , a ) ;\n BIO_puts ( bp , \" * 2\" ) ;\n BIO_puts ( bp , \" - \" ) ;\n }\n BN_print ( bp , b ) ;\n BIO_puts ( bp , \"\\n\" ) ;\n }\n BN_add ( c , a , a ) ;\n BN_sub ( a , b , c ) ;\n if ( ! BN_is_zero ( a ) ) {\n fprintf ( stderr , \"Left shift one test failed!\\n\" ) ;\n return 0 ;\n }\n BN_copy ( a , b ) ;\n }\n BN_free ( a ) ;\n BN_free ( b ) ;\n BN_free ( c ) ;\n return ( 1 ) ;\n }"}
{"idx": 14675, "target": 0, "func": "static void extra_tell_used_size ( struct ctl_extr_rec * ctl , int size ) {\n struct isoent * isoent ;\n struct extr_rec * rec ;\n if ( ctl -> use_extr ) {\n isoent = ctl -> isoent -> parent ;\n rec = isoent -> extr_rec_list . current ;\n if ( rec != NULL ) rec -> offset += size ;\n }\n ctl -> cur_len += size ;\n }"}
{"idx": 14676, "target": 0, "func": "static uchar * get_key_column ( GRANT_COLUMN * buff , size_t * length , my_bool not_used __attribute__ ( ( unused ) ) ) {\n * length = buff -> key_length ;\n return ( uchar * ) buff -> column ;\n }"}
{"idx": 14677, "target": 0, "func": "static void x8_init_block_index ( MpegEncContext * s ) {\n / ot s -> linesize as this would be wrong for field pics / ot that IntraX8 has interlacing support ;\n ) const int linesize = s -> current_picture . f . linesize [ 0 ] ;\n const int uvlinesize = s -> current_picture . f . linesize [ 1 ] ;\n s -> dest [ 0 ] = s -> current_picture . f . data [ 0 ] ;\n s -> dest [ 1 ] = s -> current_picture . f . data [ 1 ] ;\n s -> dest [ 2 ] = s -> current_picture . f . data [ 2 ] ;\n s -> dest [ 0 ] += s -> mb_y * linesize << 3 ;\n s -> dest [ 1 ] += ( s -> mb_y & ( ~ 1 ) ) * uvlinesize << 2 ;\n s -> dest [ 2 ] += ( s -> mb_y & ( ~ 1 ) ) * uvlinesize << 2 ;\n }"}
{"idx": 14678, "target": 0, "func": "static void test_bug53371 ( ) {\n int rc ;\n MYSQL_RES * result ;\n myheader ( \"test_bug53371\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP DATABASE IF EXISTS bug53371\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP USER 'testbug'@localhost\" ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE t1 (a INT)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE DATABASE bug53371\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"GRANT SELECT ON bug53371.* to 'testbug'@localhost\" ) ;\n myquery ( rc ) ;\n rc = mysql_change_user ( mysql , \"testbug\" , NULL , \"bug53371\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"SHOW COLUMNS FROM client_test_db.t1\" ) ;\n DIE_UNLESS ( rc ) ;\n DIE_UNLESS ( mysql_errno ( mysql ) == 1142 ) ;\n result = mysql_list_fields ( mysql , \"../client_test_db/t1\" , NULL ) ;\n DIE_IF ( result ) ;\n result = mysql_list_fields ( mysql , \"#mysql50#/../client_test_db/t1\" , NULL ) ;\n DIE_IF ( result ) ;\n rc = mysql_change_user ( mysql , opt_user , opt_password , current_db ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP TABLE t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP DATABASE bug53371\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP USER 'testbug'@localhost\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 14679, "target": 1, "func": "xsltDocumentPtr xsltLoadDocument ( xsltTransformContextPtr ctxt , const xmlChar * URI ) {\n xsltDocumentPtr ret ;\n xmlDocPtr doc ;\n if ( ( ctxt == NULL ) || ( URI == NULL ) ) return ( NULL ) ;\n if ( ctxt -> sec != NULL ) {\n int res ;\n res = xsltCheckRead ( ctxt -> sec , ctxt , URI ) ;\n if ( res == 0 ) {\n xsltTransformError ( ctxt , NULL , NULL , \"xsltLoadDocument: read rights for %s denied\\n\" , URI ) ;\n return ( NULL ) ;\n }\n }\n ret = ctxt -> docList ;\n while ( ret != NULL ) {\n if ( ( ret -> doc != NULL ) && ( ret -> doc -> URL != NULL ) && ( xmlStrEqual ( ret -> doc -> URL , URI ) ) ) return ( ret ) ;\n ret = ret -> next ;\n }\n doc = xsltDocDefaultLoader ( URI , ctxt -> dict , ctxt -> parserOptions , ( void * ) ctxt , XSLT_LOAD_DOCUMENT ) ;\n if ( doc == NULL ) return ( NULL ) ;\n if ( ctxt -> xinclude != 0 ) {\n # ifdef LIBXML_XINCLUDE_ENABLED # if LIBXML_VERSION >= 20603 xmlXIncludeProcessFlags ( doc , ctxt -> parserOptions ) ;\n # else xmlXIncludeProcess ( doc ) ;\n # endif # else xsltTransformError ( ctxt , NULL , NULL , \"xsltLoadDocument(%s) : XInclude processing not compiled in\\n\" , URI ) ;\n # endif }\n if ( xsltNeedElemSpaceHandling ( ctxt ) ) xsltApplyStripSpaces ( ctxt , xmlDocGetRootElement ( doc ) ) ;\n if ( ctxt -> debugStatus == XSLT_DEBUG_NONE ) xmlXPathOrderDocElems ( doc ) ;\n ret = xsltNewDocument ( ctxt , doc ) ;\n return ( ret ) ;\n }"}
{"idx": 14680, "target": 0, "func": "static void resize_context_buffers ( VP9_COMMON * cm , int width , int height ) {\n # if CONFIG_SIZE_LIMIT if ( width > DECODE_WIDTH_LIMIT || height > DECODE_HEIGHT_LIMIT ) vpx_internal_error ( & cm -> error , VPX_CODEC_CORRUPT_FRAME , \"Width and height beyond allowed size.\" ) ;\n # endif if ( cm -> width != width || cm -> height != height ) {\n const int new_mi_rows = ALIGN_POWER_OF_TWO ( height , MI_SIZE_LOG2 ) >> MI_SIZE_LOG2 ;\n const int new_mi_cols = ALIGN_POWER_OF_TWO ( width , MI_SIZE_LOG2 ) >> MI_SIZE_LOG2 ;\n if ( new_mi_cols > cm -> mi_cols || new_mi_rows > cm -> mi_rows ) {\n if ( vp9_alloc_context_buffers ( cm , width , height ) ) vpx_internal_error ( & cm -> error , VPX_CODEC_MEM_ERROR , \"Failed to allocate context buffers\" ) ;\n }\n else {\n vp9_set_mb_mi ( cm , width , height ) ;\n }\n vp9_init_context_buffers ( cm ) ;\n cm -> width = width ;\n cm -> height = height ;\n }\n }"}
{"idx": 14681, "target": 0, "func": "static void DecoderProcessSpu ( decoder_t * p_dec , block_t * p_block , bool b_flush ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n input_thread_t * p_input = p_owner -> p_input ;\n vout_thread_t * p_vout ;\n subpicture_t * p_spu ;\n while ( ( p_spu = p_dec -> pf_decode_sub ( p_dec , p_block ? & p_block : NULL ) ) ) {\n if ( p_input != NULL ) {\n vlc_mutex_lock ( & p_input -> p -> counters . counters_lock ) ;\n stats_Update ( p_input -> p -> counters . p_decoded_sub , 1 , NULL ) ;\n vlc_mutex_unlock ( & p_input -> p -> counters . counters_lock ) ;\n }\n p_vout = input_resource_HoldVout ( p_owner -> p_resource ) ;\n if ( p_vout && p_owner -> p_spu_vout == p_vout ) {\n if ( p_spu -> i_start > VLC_TS_INVALID && p_spu -> i_start < p_owner -> i_preroll_end && ( p_spu -> i_stop <= VLC_TS_INVALID || p_spu -> i_stop < p_owner -> i_preroll_end ) ) {\n subpicture_Delete ( p_spu ) ;\n }\n else {\n DecoderPlaySpu ( p_dec , p_spu ) ;\n }\n }\n else {\n subpicture_Delete ( p_spu ) ;\n }\n if ( p_vout ) vlc_object_release ( p_vout ) ;\n }\n if ( b_flush && p_owner -> p_spu_vout ) {\n p_vout = input_resource_HoldVout ( p_owner -> p_resource ) ;\n if ( p_vout && p_owner -> p_spu_vout == p_vout ) vout_FlushSubpictureChannel ( p_vout , p_owner -> i_spu_channel ) ;\n if ( p_vout ) vlc_object_release ( p_vout ) ;\n }\n }"}
{"idx": 14682, "target": 0, "func": "void reference_8x8_dct_2d ( const int16_t input [ kNumCoeffs ] , double output [ kNumCoeffs ] ) {\n for ( int i = 0 ;\n i < 8 ;\n ++ i ) {\n double temp_in [ 8 ] , temp_out [ 8 ] ;\n for ( int j = 0 ;\n j < 8 ;\n ++ j ) temp_in [ j ] = input [ j * 8 + i ] ;\n reference_8x8_dct_1d ( temp_in , temp_out , 1 ) ;\n for ( int j = 0 ;\n j < 8 ;\n ++ j ) output [ j * 8 + i ] = temp_out [ j ] ;\n }\n for ( int i = 0 ;\n i < 8 ;\n ++ i ) {\n double temp_in [ 8 ] , temp_out [ 8 ] ;\n for ( int j = 0 ;\n j < 8 ;\n ++ j ) temp_in [ j ] = output [ j + i * 8 ] ;\n reference_8x8_dct_1d ( temp_in , temp_out , 1 ) ;\n for ( int j = 0 ;\n j < 8 ;\n ++ j ) output [ j + i * 8 ] = temp_out [ j ] * 2 ;\n }\n }"}
{"idx": 14683, "target": 0, "func": "static void transform_mb ( MACROBLOCK * x ) {\n int i ;\n for ( i = 0 ;\n i < 16 ;\n i += 2 ) {\n x -> short_fdct8x4 ( & x -> block [ i ] . src_diff [ 0 ] , & x -> block [ i ] . coeff [ 0 ] , 32 ) ;\n }\n if ( x -> e_mbd . mode_info_context -> mbmi . mode != SPLITMV ) build_dcblock ( x ) ;\n for ( i = 16 ;\n i < 24 ;\n i += 2 ) {\n x -> short_fdct8x4 ( & x -> block [ i ] . src_diff [ 0 ] , & x -> block [ i ] . coeff [ 0 ] , 16 ) ;\n }\n if ( x -> e_mbd . mode_info_context -> mbmi . mode != SPLITMV ) x -> short_walsh4x4 ( & x -> block [ 24 ] . src_diff [ 0 ] , & x -> block [ 24 ] . coeff [ 0 ] , 8 ) ;\n }"}
{"idx": 14684, "target": 0, "func": "static int qemuMonitorJSONSaveMemory ( qemuMonitorPtr mon , const char * cmdtype , unsigned long long offset , size_t length , const char * path ) {\n int ret ;\n virJSONValuePtr cmd = qemuMonitorJSONMakeCommand ( cmdtype , \"U:val\" , offset , \"u:size\" , length , \"s:filename\" , path , NULL ) ;\n virJSONValuePtr reply = NULL ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 14685, "target": 0, "func": "static hb_bool_t hb_font_get_glyph_from_name_nil ( hb_font_t * font , void * font_data HB_UNUSED , const char * name , int len , hb_codepoint_t * glyph , void * user_data HB_UNUSED ) {\n if ( font -> parent ) return font -> parent -> get_glyph_from_name ( name , len , glyph ) ;\n * glyph = 0 ;\n return false ;\n }"}
{"idx": 14686, "target": 0, "func": "static void ctl_putarray ( const char * tag , double * arr , int start ) {\n register char * cp ;\n register const char * cq ;\n char buffer [ 200 ] ;\n int i ;\n cp = buffer ;\n cq = tag ;\n while ( * cq != '\\0' ) * cp ++ = * cq ++ ;\n * cp ++ = '=' ;\n i = start ;\n do {\n if ( i == 0 ) i = NTP_SHIFT ;\n i -- ;\n INSIST ( ( cp - buffer ) < ( int ) sizeof ( buffer ) ) ;\n snprintf ( cp , sizeof ( buffer ) - ( cp - buffer ) , \" %.2f\" , arr [ i ] * 1e3 ) ;\n cp += strlen ( cp ) ;\n }\n while ( i != start ) ;\n ctl_putdata ( buffer , ( unsigned ) ( cp - buffer ) , 0 ) ;\n }"}
{"idx": 14687, "target": 0, "func": "static int dissect_btgatt_microbit_scrolling_delay ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , void * data ) {\n btatt_data_t * att_data = ( btatt_data_t * ) data ;\n gint offset = 0 ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) return - 1 ;\n proto_tree_add_item ( tree , hf_gatt_microbit_scrolling_delay , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n return offset ;\n }"}
{"idx": 14688, "target": 1, "func": "static void TestHeapFunctions ( ) {\n UErrorCode status = U_ZERO_ERROR ;\n UResourceBundle * rb = NULL ;\n char * icuDataDir ;\n UVersionInfo unicodeVersion = {\n 0 , 0 , 0 , 0 }\n ;\n icuDataDir = safeGetICUDataDirectory ( ) ;\n ctest_resetICU ( ) ;\n u_setMemoryFunctions ( & gContext , myMemAlloc , myMemRealloc , myMemFree , & status ) ;\n TEST_STATUS ( status , U_INVALID_STATE_ERROR ) ;\n u_cleanup ( ) ;\n status = U_ZERO_ERROR ;\n u_setMemoryFunctions ( & gContext , NULL , myMemRealloc , myMemFree , & status ) ;\n TEST_STATUS ( status , U_ILLEGAL_ARGUMENT_ERROR ) ;\n status = U_ZERO_ERROR ;\n u_setMemoryFunctions ( & gContext , myMemAlloc , NULL , myMemFree , & status ) ;\n TEST_STATUS ( status , U_ILLEGAL_ARGUMENT_ERROR ) ;\n status = U_ZERO_ERROR ;\n u_setMemoryFunctions ( & gContext , myMemAlloc , myMemRealloc , NULL , & status ) ;\n TEST_STATUS ( status , U_ILLEGAL_ARGUMENT_ERROR ) ;\n status = U_ZERO_ERROR ;\n u_setMemoryFunctions ( NULL , myMemAlloc , myMemRealloc , myMemFree , & status ) ;\n TEST_STATUS ( status , U_ZERO_ERROR ) ;\n u_setMemoryFunctions ( & gContext , myMemAlloc , myMemRealloc , myMemFree , & status ) ;\n TEST_STATUS ( status , U_ZERO_ERROR ) ;\n status = U_ZERO_ERROR ;\n u_setDataDirectory ( icuDataDir ) ;\n u_init ( & status ) ;\n TEST_STATUS ( status , U_ZERO_ERROR ) ;\n u_setMemoryFunctions ( NULL , myMemAlloc , myMemRealloc , myMemFree , & status ) ;\n TEST_STATUS ( status , U_INVALID_STATE_ERROR ) ;\n gBlockCount = 0 ;\n status = U_ZERO_ERROR ;\n rb = ures_open ( NULL , \"es\" , & status ) ;\n TEST_STATUS ( status , U_ZERO_ERROR ) ;\n if ( gBlockCount == 0 ) {\n log_err ( \"Heap functions are not being called from ICU.\\n\" ) ;\n }\n ures_close ( rb ) ;\n ctest_resetICU ( ) ;\n u_getUnicodeVersion ( unicodeVersion ) ;\n if ( unicodeVersion [ 0 ] <= 0 ) {\n log_err ( \"Properties doesn't reinitialize without u_init.\\n\" ) ;\n }\n status = U_ZERO_ERROR ;\n u_init ( & status ) ;\n TEST_STATUS ( status , U_ZERO_ERROR ) ;\n gBlockCount = 0 ;\n status = U_ZERO_ERROR ;\n rb = ures_open ( NULL , \"fr\" , & status ) ;\n TEST_STATUS ( status , U_ZERO_ERROR ) ;\n if ( gBlockCount != 0 ) {\n log_err ( \"Heap functions did not reset after u_cleanup.\\n\" ) ;\n }\n ures_close ( rb ) ;\n free ( icuDataDir ) ;\n ctest_resetICU ( ) ;\n }"}
{"idx": 14689, "target": 0, "func": "static int selinux_inode_unlink ( struct inode * dir , struct dentry * dentry ) {\n return may_link ( dir , dentry , MAY_UNLINK ) ;\n }"}
{"idx": 14690, "target": 1, "func": "xmlAttrPtr xsltAttrListTemplateProcess ( xsltTransformContextPtr ctxt , xmlNodePtr target , xmlAttrPtr attrs ) {\n xmlAttrPtr attr , copy , last ;\n xmlNodePtr oldInsert , text ;\n xmlNsPtr origNs = NULL , copyNs = NULL ;\n const xmlChar * value ;\n xmlChar * valueAVT ;\n if ( ( ctxt == NULL ) || ( target == NULL ) || ( attrs == NULL ) ) return ( NULL ) ;\n oldInsert = ctxt -> insert ;\n ctxt -> insert = target ;\n if ( target -> properties ) {\n last = target -> properties ;\n while ( last -> next != NULL ) last = last -> next ;\n }\n else {\n last = NULL ;\n }\n attr = attrs ;\n do {\n # ifdef XSLT_REFACTORED if ( attr -> psvi == xsltXSLTAttrMarker ) {\n goto next_attribute ;\n }\n # else if ( ( attr -> ns != NULL ) && xmlStrEqual ( attr -> ns -> href , XSLT_NAMESPACE ) ) {\n goto next_attribute ;\n }\n # endif if ( attr -> children != NULL ) {\n if ( ( attr -> children -> type != XML_TEXT_NODE ) || ( attr -> children -> next != NULL ) ) {\n xsltTransformError ( ctxt , NULL , attr -> parent , \"Internal error: The children of an attribute node of a \" \"literal result element are not in the expected form.\\n\" ) ;\n goto error ;\n }\n value = attr -> children -> content ;\n if ( value == NULL ) value = xmlDictLookup ( ctxt -> dict , BAD_CAST \"\" , 0 ) ;\n }\n else value = xmlDictLookup ( ctxt -> dict , BAD_CAST \"\" , 0 ) ;\n copy = xmlNewDocProp ( target -> doc , attr -> name , NULL ) ;\n if ( copy == NULL ) {\n if ( attr -> ns ) {\n xsltTransformError ( ctxt , NULL , attr -> parent , \"Internal error: Failed to create attribute '{\n%s}\n%s'.\\n\" , attr -> ns -> href , attr -> name ) ;\n }\n else {\n xsltTransformError ( ctxt , NULL , attr -> parent , \"Internal error: Failed to create attribute '%s'.\\n\" , attr -> name ) ;\n }\n goto error ;\n }\n copy -> parent = target ;\n if ( last == NULL ) {\n target -> properties = copy ;\n last = copy ;\n }\n else {\n last -> next = copy ;\n copy -> prev = last ;\n last = copy ;\n }\n if ( attr -> ns != origNs ) {\n origNs = attr -> ns ;\n if ( attr -> ns != NULL ) {\n # ifdef XSLT_REFACTORED copyNs = xsltGetSpecialNamespace ( ctxt , attr -> parent , attr -> ns -> href , attr -> ns -> prefix , target ) ;\n # else copyNs = xsltGetNamespace ( ctxt , attr -> parent , attr -> ns , target ) ;\n # endif if ( copyNs == NULL ) goto error ;\n }\n else copyNs = NULL ;\n }\n copy -> ns = copyNs ;\n text = xmlNewText ( NULL ) ;\n if ( text != NULL ) {\n copy -> last = copy -> children = text ;\n text -> parent = ( xmlNodePtr ) copy ;\n text -> doc = copy -> doc ;\n if ( attr -> psvi != NULL ) {\n valueAVT = xsltEvalAVT ( ctxt , attr -> psvi , attr -> parent ) ;\n if ( valueAVT == NULL ) {\n if ( attr -> ns ) {\n xsltTransformError ( ctxt , NULL , attr -> parent , \"Internal error: Failed to evaluate the AVT \" \"of attribute '{\n%s}\n%s'.\\n\" , attr -> ns -> href , attr -> name ) ;\n }\n else {\n xsltTransformError ( ctxt , NULL , attr -> parent , \"Internal error: Failed to evaluate the AVT \" \"of attribute '%s'.\\n\" , attr -> name ) ;\n }\n text -> content = xmlStrdup ( BAD_CAST \"\" ) ;\n goto error ;\n }\n else {\n text -> content = valueAVT ;\n }\n }\n else if ( ( ctxt -> internalized ) && ( target -> doc != NULL ) && ( target -> doc -> dict == ctxt -> dict ) && xmlDictOwns ( ctxt -> dict , value ) ) {\n text -> content = ( xmlChar * ) value ;\n }\n else {\n text -> content = xmlStrdup ( value ) ;\n }\n if ( ( copy != NULL ) && ( text != NULL ) && ( xmlIsID ( copy -> doc , copy -> parent , copy ) ) ) xmlAddID ( NULL , copy -> doc , text -> content , copy ) ;\n }\n next_attribute : attr = attr -> next ;\n }\n while ( attr != NULL ) ;\n attr = attrs ;\n do {\n # ifdef XSLT_REFACTORED if ( ( attr -> psvi == xsltXSLTAttrMarker ) && xmlStrEqual ( attr -> name , ( const xmlChar * ) \"use-attribute-sets\" ) ) {\n xsltApplyAttributeSet ( ctxt , ctxt -> node , ( xmlNodePtr ) attr , NULL ) ;\n }\n # else if ( ( attr -> ns != NULL ) && xmlStrEqual ( attr -> name , ( const xmlChar * ) \"use-attribute-sets\" ) && xmlStrEqual ( attr -> ns -> href , XSLT_NAMESPACE ) ) {\n xsltApplyAttributeSet ( ctxt , ctxt -> node , ( xmlNodePtr ) attr , NULL ) ;\n }\n # endif attr = attr -> next ;\n }\n while ( attr != NULL ) ;\n ctxt -> insert = oldInsert ;\n return ( target -> properties ) ;\n error : ctxt -> insert = oldInsert ;\n return ( NULL ) ;\n }"}
{"idx": 14691, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( UsbChooserBrowserTest , InvokeDialog_WithDevicesBubble ) {\n device_count_ = 5 ;\n RunDialog ( ) ;\n }"}
{"idx": 14692, "target": 0, "func": "EC_KEY * d2i_ECPrivateKey ( EC_KEY * * a , const unsigned char * * in , long len ) {\n int ok = 0 ;\n EC_KEY * ret = NULL ;\n EC_PRIVATEKEY * priv_key = NULL ;\n if ( ( priv_key = EC_PRIVATEKEY_new ( ) ) == NULL ) {\n ECerr ( EC_F_D2I_ECPRIVATEKEY , ERR_R_MALLOC_FAILURE ) ;\n return NULL ;\n }\n if ( ( priv_key = d2i_EC_PRIVATEKEY ( & priv_key , in , len ) ) == NULL ) {\n ECerr ( EC_F_D2I_ECPRIVATEKEY , ERR_R_EC_LIB ) ;\n EC_PRIVATEKEY_free ( priv_key ) ;\n return NULL ;\n }\n if ( a == NULL || * a == NULL ) {\n if ( ( ret = EC_KEY_new ( ) ) == NULL ) {\n ECerr ( EC_F_D2I_ECPRIVATEKEY , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n }\n else ret = * a ;\n if ( priv_key -> parameters ) {\n if ( ret -> group ) EC_GROUP_clear_free ( ret -> group ) ;\n ret -> group = ec_asn1_pkparameters2group ( priv_key -> parameters ) ;\n }\n if ( ret -> group == NULL ) {\n ECerr ( EC_F_D2I_ECPRIVATEKEY , ERR_R_EC_LIB ) ;\n goto err ;\n }\n ret -> version = priv_key -> version ;\n if ( priv_key -> privateKey ) {\n ret -> priv_key = BN_bin2bn ( M_ASN1_STRING_data ( priv_key -> privateKey ) , M_ASN1_STRING_length ( priv_key -> privateKey ) , ret -> priv_key ) ;\n if ( ret -> priv_key == NULL ) {\n ECerr ( EC_F_D2I_ECPRIVATEKEY , ERR_R_BN_LIB ) ;\n goto err ;\n }\n }\n else {\n ECerr ( EC_F_D2I_ECPRIVATEKEY , EC_R_MISSING_PRIVATE_KEY ) ;\n goto err ;\n }\n if ( priv_key -> publicKey ) {\n const unsigned char * pub_oct ;\n size_t pub_oct_len ;\n if ( ret -> pub_key ) EC_POINT_clear_free ( ret -> pub_key ) ;\n ret -> pub_key = EC_POINT_new ( ret -> group ) ;\n if ( ret -> pub_key == NULL ) {\n ECerr ( EC_F_D2I_ECPRIVATEKEY , ERR_R_EC_LIB ) ;\n goto err ;\n }\n pub_oct = M_ASN1_STRING_data ( priv_key -> publicKey ) ;\n pub_oct_len = M_ASN1_STRING_length ( priv_key -> publicKey ) ;\n ret -> conv_form = ( point_conversion_form_t ) ( pub_oct [ 0 ] & ~ 0x01 ) ;\n if ( ! EC_POINT_oct2point ( ret -> group , ret -> pub_key , pub_oct , pub_oct_len , NULL ) ) {\n ECerr ( EC_F_D2I_ECPRIVATEKEY , ERR_R_EC_LIB ) ;\n goto err ;\n }\n }\n if ( a ) * a = ret ;\n ok = 1 ;\n err : if ( ! ok ) {\n if ( ret && ( a == NULL || * a != ret ) ) EC_KEY_free ( ret ) ;\n ret = NULL ;\n }\n if ( priv_key ) EC_PRIVATEKEY_free ( priv_key ) ;\n return ( ret ) ;\n }"}
{"idx": 14693, "target": 0, "func": "static void cal_mvsadcosts ( int * mvsadcost [ 2 ] ) {\n int i = 1 ;\n mvsadcost [ 0 ] [ 0 ] = 300 ;\n mvsadcost [ 1 ] [ 0 ] = 300 ;\n do {\n double z = 256 * ( 2 * ( log2f ( 8 * i ) + .6 ) ) ;\n mvsadcost [ 0 ] [ i ] = ( int ) z ;\n mvsadcost [ 1 ] [ i ] = ( int ) z ;\n mvsadcost [ 0 ] [ - i ] = ( int ) z ;\n mvsadcost [ 1 ] [ - i ] = ( int ) z ;\n }\n while ( ++ i <= mvfp_max ) ;\n }"}
{"idx": 14694, "target": 0, "func": "static const char * cmd_debug_log ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n apr_status_t rc ;\n dcfg -> debuglog_name = ap_server_root_relative ( cmd -> pool , p1 ) ;\n rc = apr_file_open ( & dcfg -> debuglog_fd , dcfg -> debuglog_name , APR_WRITE | APR_APPEND | APR_CREATE | APR_BINARY , CREATEMODE , cmd -> pool ) ;\n if ( rc != APR_SUCCESS ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Failed to open debug log file: %s\" , dcfg -> debuglog_name ) ;\n }\n return NULL ;\n }"}
{"idx": 14695, "target": 1, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DIRECTORYSTRING ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DISPLAYTEXT ) DECLARE_ASN1_FUNCTIONS ( ASN1_PRINTABLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_T61STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_IA5STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_GENERALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTCTIME )"}
{"idx": 14696, "target": 0, "func": "static void init_pager ( ) {\n # ifdef USE_POPEN if ( ! opt_nopager ) {\n if ( ! ( PAGER = popen ( pager , \"w\" ) ) ) {\n tee_fprintf ( stdout , \"popen() failed! defaulting PAGER to stdout!\\n\" ) ;\n PAGER = stdout ;\n }\n }\n else # endif PAGER = stdout ;\n }"}
{"idx": 14697, "target": 0, "func": "static int tunnel_tun ( int tun_fd , int dns_fd ) {\n unsigned long outlen ;\n struct ip * header ;\n char out [ 64 * 1024 ] ;\n char in [ 64 * 1024 ] ;\n int userid ;\n int read ;\n if ( ( read = read_tun ( tun_fd , in , sizeof ( in ) ) ) <= 0 ) return 0 ;\n header = ( struct ip * ) ( in + 4 ) ;\n userid = find_user_by_ip ( header -> ip_dst . s_addr ) ;\n if ( userid < 0 ) return 0 ;\n outlen = sizeof ( out ) ;\n compress2 ( ( uint8_t * ) out , & outlen , ( uint8_t * ) in , read , 9 ) ;\n if ( users [ userid ] . conn == CONN_DNS_NULL ) {\n # ifdef OUTPACKETQ_LEN if ( users [ userid ] . outpacket . len > 0 ) {\n save_to_outpacketq ( userid , out , outlen ) ;\n return 0 ;\n }\n # endif start_new_outpacket ( userid , out , outlen ) ;\n if ( users [ userid ] . q_sendrealsoon . id != 0 ) send_chunk_or_dataless ( dns_fd , userid , & users [ userid ] . q_sendrealsoon ) ;\n else if ( users [ userid ] . q . id != 0 ) send_chunk_or_dataless ( dns_fd , userid , & users [ userid ] . q ) ;\n return outlen ;\n }\n else {\n send_raw ( dns_fd , out , outlen , userid , RAW_HDR_CMD_DATA , & users [ userid ] . q ) ;\n return outlen ;\n }\n }"}
{"idx": 14698, "target": 0, "func": "SPL_METHOD ( SplFileObject , hasChildren ) {\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n RETURN_FALSE ;\n }"}
{"idx": 14699, "target": 0, "func": "static size_t make_flagged_int ( unsigned long value , char * buf , size_t buflen ) {\n int more = 0 ;\n int shift ;\n for ( more = 0 , shift = 28 ;\n shift > 0 ;\n shift -= 7 ) {\n if ( more || value >= ( 1 << shift ) ) {\n buf [ buflen ++ ] = 0x80 | ( value >> shift ) ;\n value -= ( value >> shift ) << shift ;\n more = 1 ;\n }\n }\n buf [ buflen ++ ] = value ;\n return buflen ;\n }"}
{"idx": 14700, "target": 0, "func": "static void selinux_release_secctx ( char * secdata , u32 seclen ) {\n kfree ( secdata ) ;\n }"}
{"idx": 14701, "target": 1, "func": "TEST_F ( AutocompleteResultTest , Swap ) {\n AutocompleteResult r1 ;\n AutocompleteResult r2 ;\n r1 . Swap ( & r2 ) ;\n EXPECT_EQ ( r1 . end ( ) , r1 . default_match ( ) ) ;\n EXPECT_EQ ( r2 . end ( ) , r2 . default_match ( ) ) ;\n ACMatches matches ;\n AutocompleteMatch match ;\n match . relevance = 1 ;\n match . allowed_to_be_default_match = true ;\n AutocompleteInput input ( base : : ASCIIToUTF16 ( \"a\" ) , base : : string16 : : npos , std : : string ( ) , GURL ( ) , OmniboxEventProto : : INVALID_SPEC , false , false , false , true , false , TestSchemeClassifier ( ) ) ;\n matches . push_back ( match ) ;\n r1 . AppendMatches ( input , matches ) ;\n r1 . SortAndCull ( input , std : : string ( ) , template_url_service_ . get ( ) ) ;\n EXPECT_EQ ( r1 . begin ( ) , r1 . default_match ( ) ) ;\n EXPECT_EQ ( \"http://a/\" , r1 . alternate_nav_url ( ) . spec ( ) ) ;\n r1 . Swap ( & r2 ) ;\n EXPECT_TRUE ( r1 . empty ( ) ) ;\n EXPECT_EQ ( r1 . end ( ) , r1 . default_match ( ) ) ;\n EXPECT_TRUE ( r1 . alternate_nav_url ( ) . is_empty ( ) ) ;\n ASSERT_FALSE ( r2 . empty ( ) ) ;\n EXPECT_EQ ( r2 . begin ( ) , r2 . default_match ( ) ) ;\n EXPECT_EQ ( \"http://a/\" , r2 . alternate_nav_url ( ) . spec ( ) ) ;\n }"}
{"idx": 14702, "target": 0, "func": "static int dissect_rsl_ie_ms_timing_offset ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_tree * ie_tree ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_FULL_MS_TIMING_OFFSET ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_ie_ms_timing_offset , NULL , \"MS Timing Offset IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_timing_offset , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n return offset ;\n }"}
{"idx": 14703, "target": 0, "func": "static void * Type_UcrBg_Dup ( struct _cms_typehandler_struct * self , const void * Ptr , cmsUInt32Number n ) {\n cmsUcrBg * Src = ( cmsUcrBg * ) Ptr ;\n cmsUcrBg * NewUcrBg = ( cmsUcrBg * ) _cmsMallocZero ( self -> ContextID , sizeof ( cmsUcrBg ) ) ;\n if ( NewUcrBg == NULL ) return NULL ;\n NewUcrBg -> Bg = cmsDupToneCurve ( Src -> Bg ) ;\n NewUcrBg -> Ucr = cmsDupToneCurve ( Src -> Ucr ) ;\n NewUcrBg -> Desc = cmsMLUdup ( Src -> Desc ) ;\n return ( void * ) NewUcrBg ;\n cmsUNUSED_PARAMETER ( n ) ;\n }"}
{"idx": 14704, "target": 0, "func": "static int nsv_probe ( AVProbeData * p ) {\n int i , score = 0 ;\n if ( p -> buf [ 0 ] == 'N' && p -> buf [ 1 ] == 'S' && p -> buf [ 2 ] == 'V' && ( p -> buf [ 3 ] == 'f' || p -> buf [ 3 ] == 's' ) ) return AVPROBE_SCORE_MAX ;\n for ( i = 1 ;\n i < p -> buf_size - 3 ;\n i ++ ) {\n if ( AV_RL32 ( p -> buf + i ) == AV_RL32 ( \"NSVs\" ) ) {\n int vsize = AV_RL24 ( p -> buf + i + 19 ) >> 4 ;\n int asize = AV_RL16 ( p -> buf + i + 22 ) ;\n int offset = i + 23 + asize + vsize + 1 ;\n if ( offset <= p -> buf_size - 2 && AV_RL16 ( p -> buf + offset ) == 0xBEEF ) return 4 * AVPROBE_SCORE_MAX / 5 ;\n score = AVPROBE_SCORE_MAX / 5 ;\n }\n }\n if ( av_match_ext ( p -> filename , \"nsv\" ) ) return AVPROBE_SCORE_EXTENSION ;\n return score ;\n }"}
{"idx": 14705, "target": 0, "func": "static void ExecPrepareTuplestoreResult ( FuncExprState * fcache , ExprContext * econtext , Tuplestorestate * resultStore , TupleDesc resultDesc ) {\n fcache -> funcResultStore = resultStore ;\n if ( fcache -> funcResultSlot == NULL ) {\n TupleDesc slotDesc ;\n MemoryContext oldcontext ;\n oldcontext = MemoryContextSwitchTo ( fcache -> func . fn_mcxt ) ;\n if ( fcache -> funcResultDesc ) slotDesc = fcache -> funcResultDesc ;\n else if ( resultDesc ) {\n slotDesc = CreateTupleDescCopy ( resultDesc ) ;\n }\n else {\n ereport ( ERROR , ( errcode ( ERRCODE_FEATURE_NOT_SUPPORTED ) , errmsg ( \"function returning setof record called in \" \"context that cannot accept type record\" ) ) ) ;\n slotDesc = NULL ;\n }\n fcache -> funcResultSlot = MakeSingleTupleTableSlot ( slotDesc ) ;\n MemoryContextSwitchTo ( oldcontext ) ;\n }\n if ( resultDesc ) {\n if ( fcache -> funcResultDesc ) tupledesc_match ( fcache -> funcResultDesc , resultDesc ) ;\n if ( resultDesc -> tdrefcount == - 1 ) FreeTupleDesc ( resultDesc ) ;\n }\n if ( ! fcache -> shutdown_reg ) {\n RegisterExprContextCallback ( econtext , ShutdownFuncExpr , PointerGetDatum ( fcache ) ) ;\n fcache -> shutdown_reg = true ;\n }\n }"}
{"idx": 14706, "target": 0, "func": "static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 14707, "target": 0, "func": "static inline void SetPixelReadMask ( const Image * restrict image , const Quantum mask , Quantum * restrict pixel ) {\n if ( image -> channel_map [ ReadMaskPixelChannel ] . traits != UndefinedPixelTrait ) pixel [ image -> channel_map [ ReadMaskPixelChannel ] . offset ] = mask ;\n }"}
{"idx": 14708, "target": 0, "func": "int mi_sort_index ( MI_CHECK * param , register MI_INFO * info , char * name , my_bool no_copy_stat ) {\n reg2 uint key ;\n reg1 MI_KEYDEF * keyinfo ;\n File new_file ;\n my_off_t index_pos [ HA_MAX_POSSIBLE_KEY ] ;\n uint r_locks , w_locks ;\n int old_lock ;\n MYISAM_SHARE * share = info -> s ;\n MI_STATE_INFO old_state ;\n DBUG_ENTER ( \"mi_sort_index\" ) ;\n for ( key = 0 , keyinfo = & share -> keyinfo [ 0 ] ;\n key < share -> base . keys ;\n key ++ , keyinfo ++ ) if ( keyinfo -> key_alg == HA_KEY_ALG_RTREE ) DBUG_RETURN ( 0 ) ;\n if ( ! ( param -> testflag & T_SILENT ) ) printf ( \"- Sorting index for MyISAM-table '%s'\\n\" , name ) ;\n fn_format ( param -> temp_filename , name , \"\" , MI_NAME_IEXT , 2 + 4 + 32 ) ;\n if ( ( new_file = mysql_file_create ( mi_key_file_datatmp , fn_format ( param -> temp_filename , param -> temp_filename , \"\" , INDEX_TMP_EXT , 2 + 4 ) , 0 , param -> tmpfile_createflag , MYF ( 0 ) ) ) <= 0 ) {\n mi_check_print_error ( param , \"Can't create new tempfile: '%s'\" , param -> temp_filename ) ;\n DBUG_RETURN ( - 1 ) ;\n }\n if ( filecopy ( param , new_file , share -> kfile , 0L , ( ulong ) share -> base . keystart , \"headerblock\" ) ) goto err ;\n param -> new_file_pos = share -> base . keystart ;\n for ( key = 0 , keyinfo = & share -> keyinfo [ 0 ] ;\n key < share -> base . keys ;\n key ++ , keyinfo ++ ) {\n if ( ! mi_is_key_active ( info -> s -> state . key_map , key ) ) continue ;\n if ( share -> state . key_root [ key ] != HA_OFFSET_ERROR ) {\n index_pos [ key ] = param -> new_file_pos ;\n if ( sort_one_index ( param , info , keyinfo , share -> state . key_root [ key ] , new_file ) ) goto err ;\n }\n else index_pos [ key ] = HA_OFFSET_ERROR ;\n }\n flush_key_blocks ( share -> key_cache , share -> kfile , FLUSH_IGNORE_CHANGED ) ;\n share -> state . version = ( ulong ) time ( ( time_t * ) 0 ) ;\n old_state = share -> state ;\n r_locks = share -> r_locks ;\n w_locks = share -> w_locks ;\n old_lock = info -> lock_type ;\n share -> r_locks = share -> w_locks = share -> tot_locks = 0 ;\n ( void ) _mi_writeinfo ( info , WRITEINFO_UPDATE_KEYFILE ) ;\n ( void ) mysql_file_close ( share -> kfile , MYF ( MY_WME ) ) ;\n share -> kfile = - 1 ;\n ( void ) mysql_file_close ( new_file , MYF ( MY_WME ) ) ;\n if ( change_to_newfile ( share -> index_file_name , MI_NAME_IEXT , INDEX_TMP_EXT , no_copy_stat ? MYF ( MY_REDEL_NO_COPY_STAT ) : MYF ( 0 ) ) || mi_open_keyfile ( share ) ) goto err2 ;\n info -> lock_type = F_UNLCK ;\n _mi_readinfo ( info , F_WRLCK , 0 ) ;\n info -> lock_type = old_lock ;\n share -> r_locks = r_locks ;\n share -> w_locks = w_locks ;\n share -> tot_locks = r_locks + w_locks ;\n share -> state = old_state ;\n info -> state -> key_file_length = param -> new_file_pos ;\n info -> update = ( short ) ( HA_STATE_CHANGED | HA_STATE_ROW_CHANGED ) ;\n for ( key = 0 ;\n key < info -> s -> base . keys ;\n key ++ ) info -> s -> state . key_root [ key ] = index_pos [ key ] ;\n for ( key = 0 ;\n key < info -> s -> state . header . max_block_size_index ;\n key ++ ) info -> s -> state . key_del [ key ] = HA_OFFSET_ERROR ;\n info -> s -> state . changed &= ~ STATE_NOT_SORTED_PAGES ;\n DBUG_RETURN ( 0 ) ;\n err : ( void ) mysql_file_close ( new_file , MYF ( MY_WME ) ) ;\n err2 : ( void ) mysql_file_delete ( mi_key_file_datatmp , param -> temp_filename , MYF ( MY_WME ) ) ;\n DBUG_RETURN ( - 1 ) ;\n }"}
{"idx": 14709, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FastUnloadTest , DISABLED_WindowCloseAfterUnloadCrash ) {\n NavigateToPage ( \"no_listeners\" ) ;\n NavigateToPageInNewTab ( \"unload_sets_cookie\" ) ;\n content : : WebContents * unload_contents = browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) ;\n EXPECT_EQ ( \"\" , GetCookies ( \"no_listeners\" ) ) ;\n {\n base : : RunLoop run_loop ;\n FastTabCloseTabStripModelObserver observer ( browser ( ) -> tab_strip_model ( ) , & run_loop ) ;\n chrome : : CloseTab ( browser ( ) ) ;\n run_loop . Run ( ) ;\n }\n CheckTitle ( \"no_listeners\" ) ;\n EXPECT_EQ ( 1 , browser ( ) -> tab_strip_model ( ) -> count ( ) ) ;\n CrashTab ( unload_contents ) ;\n CheckTitle ( \"no_listeners\" ) ;\n EXPECT_EQ ( 1 , browser ( ) -> tab_strip_model ( ) -> count ( ) ) ;\n content : : WindowedNotificationObserver window_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , content : : NotificationService : : AllSources ( ) ) ;\n chrome : : CloseWindow ( browser ( ) ) ;\n window_observer . Wait ( ) ;\n }"}
{"idx": 14710, "target": 0, "func": "static int kvm_get_xsave ( X86CPU * cpu ) {\n CPUX86State * env = & cpu -> env ;\n X86XSaveArea * xsave = env -> kvm_xsave_buf ;\n int ret ;\n if ( ! has_xsave ) {\n return kvm_get_fpu ( cpu ) ;\n }\n ret = kvm_vcpu_ioctl ( CPU ( cpu ) , KVM_GET_XSAVE , xsave ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n x86_cpu_xrstor_all_areas ( cpu , xsave ) ;\n return 0 ;\n }"}
{"idx": 14711, "target": 0, "func": "int ssl_check_version_downgrade ( SSL * s ) {\n const version_info * vent ;\n const version_info * table ;\n if ( s -> version == s -> ctx -> method -> version ) return 1 ;\n if ( s -> ctx -> method -> version == TLS_method ( ) -> version ) table = tls_version_table ;\n else if ( s -> ctx -> method -> version == DTLS_method ( ) -> version ) table = dtls_version_table ;\n else {\n return 0 ;\n }\n for ( vent = table ;\n vent -> version != 0 ;\n ++ vent ) {\n if ( vent -> smeth != NULL && ssl_method_error ( s , vent -> smeth ( ) ) == 0 ) return s -> version == vent -> version ;\n }\n return 0 ;\n }"}
{"idx": 14712, "target": 0, "func": "static inline int get_dir_rec_size ( struct iso9660 * iso9660 , struct isoent * isoent , enum dir_rec_type t , enum vdd_type vdd_type ) {\n return ( set_directory_record ( NULL , SIZE_MAX , isoent , iso9660 , t , vdd_type ) ) ;\n }"}
{"idx": 14713, "target": 0, "func": "static int astream_decode_base64 ( struct attachment_istream * astream ) {\n struct attachment_istream_part * part = & astream -> part ;\n buffer_t * extra_buf = NULL ;\n struct istream * input , * base64_input ;\n struct ostream * output ;\n const unsigned char * data ;\n size_t size ;\n ssize_t ret ;\n buffer_t * buf ;\n int outfd ;\n bool failed = FALSE ;\n if ( part -> base64_bytes < astream -> set . min_size || part -> temp_output -> offset > part -> base64_bytes + BASE64_ATTACHMENT_MAX_EXTRA_BYTES ) {\n return - 1 ;\n }\n if ( part -> base64_line_blocks == 0 ) {\n part -> base64_line_blocks = part -> cur_base64_blocks ;\n i_assert ( part -> base64_line_blocks > 0 ) ;\n }\n outfd = astream -> set . open_temp_fd ( astream -> context ) ;\n if ( outfd == - 1 ) return - 1 ;\n buf = buffer_create_dynamic ( default_pool , 1024 ) ;\n input = i_stream_create_fd ( part -> temp_fd , IO_BLOCK_SIZE , FALSE ) ;\n base64_input = i_stream_create_limit ( input , part -> base64_bytes ) ;\n output = o_stream_create_fd_file ( outfd , 0 , FALSE ) ;\n o_stream_cork ( output ) ;\n hash_format_reset ( astream -> set . hash_format ) ;\n size_t bytes_needed = 1 ;\n while ( ( ret = i_stream_read_bytes ( base64_input , & data , & size , bytes_needed ) ) > 0 ) {\n buffer_set_used_size ( buf , 0 ) ;\n if ( base64_decode ( data , size , & size , buf ) < 0 ) {\n i_error ( \"istream-attachment: BUG: \" \"Attachment base64 data unexpectedly broke\" ) ;\n failed = TRUE ;\n break ;\n }\n i_stream_skip ( base64_input , size ) ;\n o_stream_nsend ( output , buf -> data , buf -> used ) ;\n hash_format_loop ( astream -> set . hash_format , buf -> data , buf -> used ) ;\n bytes_needed = i_stream_get_data_size ( base64_input ) + 1 ;\n }\n if ( ret != - 1 ) {\n i_assert ( failed ) ;\n }\n else if ( base64_input -> stream_errno != 0 ) {\n i_error ( \"istream-attachment: read(%s) failed: %s\" , i_stream_get_name ( base64_input ) , i_stream_get_error ( base64_input ) ) ;\n failed = TRUE ;\n }\n if ( o_stream_nfinish ( output ) < 0 ) {\n i_error ( \"istream-attachment: write(%s) failed: %s\" , o_stream_get_name ( output ) , o_stream_get_error ( output ) ) ;\n failed = TRUE ;\n }\n buffer_free ( & buf ) ;\n i_stream_unref ( & base64_input ) ;\n o_stream_unref ( & output ) ;\n if ( input -> v_offset != part -> temp_output -> offset && ! failed ) {\n extra_buf = buffer_create_dynamic ( default_pool , 1024 ) ;\n while ( ( ret = i_stream_read_data ( input , & data , & size , 0 ) ) > 0 ) {\n buffer_append ( extra_buf , data , size ) ;\n i_stream_skip ( input , size ) ;\n }\n i_assert ( ret == - 1 ) ;\n if ( input -> stream_errno != 0 ) {\n i_error ( \"istream-attachment: read(%s) failed: %s\" , i_stream_get_name ( input ) , i_stream_get_error ( input ) ) ;\n failed = TRUE ;\n }\n }\n i_stream_unref ( & input ) ;\n if ( failed ) {\n i_close_fd ( & outfd ) ;\n return - 1 ;\n }\n o_stream_destroy ( & part -> temp_output ) ;\n i_close_fd ( & part -> temp_fd ) ;\n part -> temp_fd = outfd ;\n if ( extra_buf != NULL ) {\n stream_add_data ( astream , extra_buf -> data , extra_buf -> used ) ;\n buffer_free ( & extra_buf ) ;\n }\n return 0 ;\n }"}
{"idx": 14714, "target": 0, "func": "static const char * cmd_audit_log_filemode ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n if ( dcfg == NULL ) return NULL ;\n if ( strcasecmp ( p1 , \"default\" ) == 0 ) {\n dcfg -> auditlog_fileperms = NOT_SET ;\n }\n else {\n long int mode = strtol ( p1 , NULL , 8 ) ;\n if ( ( mode == LONG_MAX ) || ( mode == LONG_MIN ) || ( mode <= 0 ) || ( mode > 07777 ) ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid value for SecAuditLogFileMode: %s\" , p1 ) ;\n }\n dcfg -> auditlog_fileperms = mode2fileperms ( mode ) ;\n }\n return NULL ;\n }"}
{"idx": 14715, "target": 0, "func": "static int dissect_h225_IA5String_SIZE_0_512 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_IA5String ( tvb , offset , actx , tree , hf_index , 0 , 512 , FALSE ) ;\n return offset ;\n }"}
{"idx": 14716, "target": 0, "func": "int vp9_is_upper_layer_key_frame ( const VP9_COMP * const cpi ) {\n return is_two_pass_svc ( cpi ) && cpi -> svc . spatial_layer_id > 0 && cpi -> svc . layer_context [ cpi -> svc . spatial_layer_id ] . is_key_frame ;\n }"}
{"idx": 14717, "target": 0, "func": "static int tecmp0 ( const void * _a , const void * _b ) {\n struct tree_entry * a = * ( ( struct tree_entry * * ) _a ) ;\n struct tree_entry * b = * ( ( struct tree_entry * * ) _b ) ;\n return base_name_compare ( a -> name -> str_dat , a -> name -> str_len , a -> versions [ 0 ] . mode , b -> name -> str_dat , b -> name -> str_len , b -> versions [ 0 ] . mode ) ;\n }"}
{"idx": 14718, "target": 0, "func": "METHOD ( asn1_parser_t , success , bool , private_asn1_parser_t * this ) {\n return this -> success ;\n }"}
{"idx": 14719, "target": 1, "func": "static int dvvideo_close ( AVCodecContext * c ) {\n DVVideoContext * s = c -> priv_data ;\n if ( s -> picture . data [ 0 ] ) c -> release_buffer ( c , & s -> picture ) ;\n return 0 ;\n }"}
{"idx": 14720, "target": 0, "func": "static size_t utf16nbytes ( const void * _p , size_t n ) {\n size_t s ;\n const char * p , * pp ;\n if ( _p == NULL ) return ( 0 ) ;\n p = ( const char * ) _p ;\n s = 0 ;\n pp = p ;\n n >>= 1 ;\n while ( s < n && ( pp [ 0 ] || pp [ 1 ] ) ) {\n pp += 2 ;\n s ++ ;\n }\n return ( s << 1 ) ;\n }"}
{"idx": 14721, "target": 0, "func": "static void dissect_rsvp_lsp_tunnel_if_id_tlv ( proto_tree * rsvp_object_tree , packet_info * pinfo , tvbuff_t * tvb , int offset , int tlv_length , int subtree_type ) {\n int tlv_off ;\n guint16 tlv_type ;\n int tlv_len ;\n proto_tree * ti , * rsvp_lsp_tunnel_if_id_subtree ;\n for ( tlv_off = 0 ;\n tlv_off < tlv_length ;\n ) {\n tlv_type = tvb_get_ntohs ( tvb , offset + tlv_off ) ;\n tlv_len = tvb_get_ntohs ( tvb , offset + tlv_off + 2 ) ;\n if ( ( tlv_len == 0 ) || ( ( tlv_off + tlv_len ) > tlv_length ) ) {\n proto_tree_add_expert ( rsvp_object_tree , pinfo , & ei_rsvp_invalid_length , tvb , offset + tlv_off + 2 , 2 ) ;\n return ;\n }\n switch ( tlv_type ) {\n case 1 : rsvp_lsp_tunnel_if_id_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset + tlv_off , tlv_len , subtree_type , NULL , \"Unnumbered component link identifier: %u\" , tvb_get_ntohl ( tvb , offset + tlv_off + 4 ) ) ;\n proto_tree_add_uint_format_value ( rsvp_lsp_tunnel_if_id_subtree , hf_rsvp_type , tvb , offset + tlv_off , 2 , tlv_type , \"1 (Unnumbered component link identifier)\" ) ;\n proto_tree_add_item ( rsvp_lsp_tunnel_if_id_subtree , hf_rsvp_lsp_tunnel_if_id_length , tvb , offset + tlv_off + 2 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_lsp_tunnel_if_id_subtree , hf_rsvp_lsp_tunnel_if_id_component_link_identifier , tvb , offset + tlv_off + 4 , 4 , ENC_BIG_ENDIAN ) ;\n break ;\n case 2 : rsvp_lsp_tunnel_if_id_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset + tlv_off , tlv_len , subtree_type , NULL , \"IPv4 component link identifier: %s\" , tvb_ip_to_str ( tvb , offset + tlv_off + 4 ) ) ;\n proto_tree_add_uint_format_value ( rsvp_lsp_tunnel_if_id_subtree , hf_rsvp_type , tvb , offset + tlv_off , 2 , tlv_type , \"2 (IPv4 component link identifier)\" ) ;\n proto_tree_add_item ( rsvp_lsp_tunnel_if_id_subtree , hf_rsvp_lsp_tunnel_if_id_length , tvb , offset + tlv_off + 2 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_lsp_tunnel_if_id_subtree , hf_rsvp_lsp_tunnel_if_id_component_link_identifier_ipv4 , tvb , offset + tlv_off + 4 , 4 , ENC_BIG_ENDIAN ) ;\n break ;\n case 32769 : rsvp_lsp_tunnel_if_id_subtree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset + tlv_off , tlv_len , subtree_type , & ti , \"Targeted client layer: \" ) ;\n proto_tree_add_uint_format_value ( rsvp_lsp_tunnel_if_id_subtree , hf_rsvp_type , tvb , offset + tlv_off , 2 , tlv_type , \"32769 (Targeted client layer)\" ) ;\n proto_tree_add_item ( rsvp_lsp_tunnel_if_id_subtree , hf_rsvp_lsp_tunnel_if_id_length , tvb , offset + tlv_off + 2 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_lsp_tunnel_if_id_subtree , hf_rsvp_lsp_tunnel_if_id_lsp_encoding_type , tvb , offset + tlv_off + 4 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_lsp_tunnel_if_id_subtree , hf_rsvp_lsp_tunnel_if_id_switching_type , tvb , offset + tlv_off + 5 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_lsp_tunnel_if_id_subtree , hf_rsvp_lsp_tunnel_if_id_signal_type , tvb , offset + tlv_off + 6 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_lsp_tunnel_if_id_subtree , hf_rsvp_lsp_tunnel_if_id_connection_id , tvb , offset + tlv_off + 8 , 8 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_lsp_tunnel_if_id_subtree , hf_rsvp_lsp_tunnel_if_id_sc_pc_id , tvb , offset + tlv_off + 16 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_lsp_tunnel_if_id_subtree , hf_rsvp_lsp_tunnel_if_id_sc_pc_scn_address , tvb , offset + tlv_off + 20 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \"LSP Encoding=%s, Switching Type=%s, Signal Type=%s\" , rval_to_str ( tvb_get_guint8 ( tvb , offset + tlv_off + 4 ) , gmpls_lsp_enc_rvals , \"Unknown (%d)\" ) , rval_to_str ( tvb_get_guint8 ( tvb , offset + tlv_off + 5 ) , gmpls_switching_type_rvals , \"Unknown (%d)\" ) , val_to_str_ext ( tvb_get_guint8 ( tvb , offset + tlv_off + 6 ) , & gmpls_sonet_signal_type_str_ext , \"Unknown (%d)\" ) ) ;\n break ;\n default : proto_tree_add_uint_format ( rsvp_object_tree , hf_rsvp_type , tvb , offset + tlv_off , 2 , tlv_type , \"Unknown TLV: %u\" , tlv_type ) ;\n break ;\n }\n tlv_off += tlv_len ;\n }\n }"}
{"idx": 14722, "target": 0, "func": "static void vapic_enable_tpr_reporting ( bool enable ) {\n VAPICEnableTPRReporting info = {\n . enable = enable , }\n ;\n X86CPU * cpu ;\n CPUX86State * env ;\n for ( env = first_cpu ;\n env != NULL ;\n env = env -> next_cpu ) {\n cpu = x86_env_get_cpu ( env ) ;\n info . apic = env -> apic_state ;\n run_on_cpu ( CPU ( cpu ) , vapic_do_enable_tpr_reporting , & info ) ;\n }\n }"}
{"idx": 14723, "target": 0, "func": "TSReturnCode TSUrlPathSet ( TSMBuffer bufp , TSMLoc obj , const char * value , int length ) {\n return URLPartSet ( bufp , obj , value , length , & URL : : path_set ) ;\n }"}
{"idx": 14724, "target": 0, "func": "static bool vmxnet_tx_pkt_rebuild_payload ( struct VmxnetTxPkt * pkt ) {\n size_t payload_len = iov_size ( pkt -> raw , pkt -> raw_frags ) - pkt -> hdr_len ;\n pkt -> payload_frags = iov_copy ( & pkt -> vec [ VMXNET_TX_PKT_PL_START_FRAG ] , pkt -> max_payload_frags , pkt -> raw , pkt -> raw_frags , pkt -> hdr_len , payload_len ) ;\n if ( pkt -> payload_frags != ( uint32_t ) - 1 ) {\n pkt -> payload_len = payload_len ;\n return true ;\n }\n else {\n return false ;\n }\n }"}
{"idx": 14725, "target": 1, "func": "static int cyuv_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n CyuvDecodeContext * s = avctx -> priv_data ;\n unsigned char * y_plane ;\n unsigned char * u_plane ;\n unsigned char * v_plane ;\n int y_ptr ;\n int u_ptr ;\n int v_ptr ;\n const signed char * y_table = ( const signed char * ) buf + 0 ;\n const signed char * u_table = ( const signed char * ) buf + 16 ;\n const signed char * v_table = ( const signed char * ) buf + 32 ;\n unsigned char y_pred , u_pred , v_pred ;\n int stream_ptr ;\n unsigned char cur_byte ;\n int pixel_groups ;\n int ret ;\n if ( avctx -> codec_id == AV_CODEC_ID_AURA ) {\n y_table = u_table ;\n u_table = v_table ;\n }\n if ( buf_size != 48 + s -> height * ( s -> width * 3 / 4 ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"got a buffer with %d bytes when %d were expected\\n\" , buf_size , 48 + s -> height * ( s -> width * 3 / 4 ) ) ;\n return AVERROR_INVALIDDATA ;\n }\n stream_ptr = 48 ;\n if ( s -> frame . data [ 0 ] ) avctx -> release_buffer ( avctx , & s -> frame ) ;\n s -> frame . buffer_hints = FF_BUFFER_HINTS_VALID ;\n s -> frame . reference = 0 ;\n if ( ( ret = ff_get_buffer ( avctx , & s -> frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n y_plane = s -> frame . data [ 0 ] ;\n u_plane = s -> frame . data [ 1 ] ;\n v_plane = s -> frame . data [ 2 ] ;\n for ( y_ptr = 0 , u_ptr = 0 , v_ptr = 0 ;\n y_ptr < ( s -> height * s -> frame . linesize [ 0 ] ) ;\n y_ptr += s -> frame . linesize [ 0 ] - s -> width , u_ptr += s -> frame . linesize [ 1 ] - s -> width / 4 , v_ptr += s -> frame . linesize [ 2 ] - s -> width / 4 ) {\n cur_byte = buf [ stream_ptr ++ ] ;\n u_plane [ u_ptr ++ ] = u_pred = cur_byte & 0xF0 ;\n y_plane [ y_ptr ++ ] = y_pred = ( cur_byte & 0x0F ) << 4 ;\n cur_byte = buf [ stream_ptr ++ ] ;\n v_plane [ v_ptr ++ ] = v_pred = cur_byte & 0xF0 ;\n y_pred += y_table [ cur_byte & 0x0F ] ;\n y_plane [ y_ptr ++ ] = y_pred ;\n cur_byte = buf [ stream_ptr ++ ] ;\n y_pred += y_table [ cur_byte & 0x0F ] ;\n y_plane [ y_ptr ++ ] = y_pred ;\n y_pred += y_table [ ( cur_byte & 0xF0 ) >> 4 ] ;\n y_plane [ y_ptr ++ ] = y_pred ;\n pixel_groups = s -> width / 4 - 1 ;\n while ( pixel_groups -- ) {\n cur_byte = buf [ stream_ptr ++ ] ;\n u_pred += u_table [ ( cur_byte & 0xF0 ) >> 4 ] ;\n u_plane [ u_ptr ++ ] = u_pred ;\n y_pred += y_table [ cur_byte & 0x0F ] ;\n y_plane [ y_ptr ++ ] = y_pred ;\n cur_byte = buf [ stream_ptr ++ ] ;\n v_pred += v_table [ ( cur_byte & 0xF0 ) >> 4 ] ;\n v_plane [ v_ptr ++ ] = v_pred ;\n y_pred += y_table [ cur_byte & 0x0F ] ;\n y_plane [ y_ptr ++ ] = y_pred ;\n cur_byte = buf [ stream_ptr ++ ] ;\n y_pred += y_table [ cur_byte & 0x0F ] ;\n y_plane [ y_ptr ++ ] = y_pred ;\n y_pred += y_table [ ( cur_byte & 0xF0 ) >> 4 ] ;\n y_plane [ y_ptr ++ ] = y_pred ;\n }\n }\n * got_frame = 1 ;\n * ( AVFrame * ) data = s -> frame ;\n return buf_size ;\n }"}
{"idx": 14726, "target": 0, "func": "static void ohci_sysbus_class_init ( ObjectClass * klass , void * data ) {\n DeviceClass * dc = DEVICE_CLASS ( klass ) ;\n dc -> realize = ohci_realize_pxa ;\n set_bit ( DEVICE_CATEGORY_USB , dc -> categories ) ;\n dc -> desc = \"OHCI USB Controller\" ;\n dc -> props = ohci_sysbus_properties ;\n dc -> reset = usb_ohci_reset_sysbus ;\n }"}
{"idx": 14727, "target": 0, "func": "unsigned int vp9_sub_pixel_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp2 , W , dst , dst_stride , sse ) ;\n \\ }\n # define SUBPIX_AVG_VAR ( W , H ) unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 ) VAR ( 8 , 4 ) SUBPIX_VAR ( 8 , 4 ) SUBPIX_AVG_VAR ( 8 , 4 ) VAR ( 8 , 8 ) SUBPIX_VAR ( 8 , 8 ) SUBPIX_AVG_VAR ( 8 , 8 ) VAR ( 8 , 16 ) SUBPIX_VAR ( 8 , 16 ) SUBPIX_AVG_VAR ( 8 , 16 ) VAR ( 16 , 8 ) SUBPIX_VAR ( 16 , 8 )"}
{"idx": 14728, "target": 0, "func": "static bool has_parallel_hazard_checker ( Oid func_id , void * context ) {\n char proparallel = func_parallel ( func_id ) ;\n if ( ( ( has_parallel_hazard_arg * ) context ) -> allow_restricted ) return ( proparallel == PROPARALLEL_UNSAFE ) ;\n else return ( proparallel != PROPARALLEL_SAFE ) ;\n }"}
{"idx": 14729, "target": 0, "func": "static VALUE cState_from_state_s ( VALUE self , VALUE opts ) {\n if ( rb_obj_is_kind_of ( opts , self ) ) {\n return opts ;\n }\n else if ( rb_obj_is_kind_of ( opts , rb_cHash ) ) {\n return rb_funcall ( self , i_new , 1 , opts ) ;\n }\n else {\n if ( NIL_P ( CJSON_SAFE_STATE_PROTOTYPE ) ) {\n CJSON_SAFE_STATE_PROTOTYPE = rb_const_get ( mJSON , i_SAFE_STATE_PROTOTYPE ) ;\n }\n return rb_funcall ( CJSON_SAFE_STATE_PROTOTYPE , i_dup , 0 ) ;\n }\n }"}
{"idx": 14730, "target": 0, "func": "static int decode_slice ( MpegEncContext * s ) {\n const int part_mask = s -> partitioned_frame ? ( ER_AC_END | ER_AC_ERROR ) : 0x7F ;\n const int mb_size = 16 ;\n s -> last_resync_gb = s -> gb ;\n s -> first_slice_line = 1 ;\n s -> resync_mb_x = s -> mb_x ;\n s -> resync_mb_y = s -> mb_y ;\n ff_set_qscale ( s , s -> qscale ) ;\n if ( s -> avctx -> hwaccel ) {\n const uint8_t * start = s -> gb . buffer + get_bits_count ( & s -> gb ) / 8 ;\n const uint8_t * end = ff_h263_find_resync_marker ( start + 1 , s -> gb . buffer_end ) ;\n skip_bits_long ( & s -> gb , 8 * ( end - start ) ) ;\n return s -> avctx -> hwaccel -> decode_slice ( s -> avctx , start , end - start ) ;\n }\n if ( s -> partitioned_frame ) {\n const int qscale = s -> qscale ;\n if ( CONFIG_MPEG4_DECODER && s -> codec_id == AV_CODEC_ID_MPEG4 ) {\n if ( ff_mpeg4_decode_partitions ( s ) < 0 ) return - 1 ;\n }\n s -> first_slice_line = 1 ;\n s -> mb_x = s -> resync_mb_x ;\n s -> mb_y = s -> resync_mb_y ;\n ff_set_qscale ( s , qscale ) ;\n }\n for ( ;\n s -> mb_y < s -> mb_height ;\n s -> mb_y ++ ) {\n if ( s -> msmpeg4_version ) {\n if ( s -> resync_mb_y + s -> slice_height == s -> mb_y ) {\n ff_er_add_slice ( & s -> er , s -> resync_mb_x , s -> resync_mb_y , s -> mb_x - 1 , s -> mb_y , ER_MB_END ) ;\n return 0 ;\n }\n }\n if ( s -> msmpeg4_version == 1 ) {\n s -> last_dc [ 0 ] = s -> last_dc [ 1 ] = s -> last_dc [ 2 ] = 128 ;\n }\n ff_init_block_index ( s ) ;\n for ( ;\n s -> mb_x < s -> mb_width ;\n s -> mb_x ++ ) {\n int ret ;\n ff_update_block_index ( s ) ;\n if ( s -> resync_mb_x == s -> mb_x && s -> resync_mb_y + 1 == s -> mb_y ) {\n s -> first_slice_line = 0 ;\n }\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n av_dlog ( s , \"%d %d %06X\\n\" , ret , get_bits_count ( & s -> gb ) , show_bits ( & s -> gb , 24 ) ) ;\n ret = s -> decode_mb ( s , s -> block ) ;\n if ( s -> pict_type != AV_PICTURE_TYPE_B ) ff_h263_update_motion_val ( s ) ;\n if ( ret < 0 ) {\n const int xy = s -> mb_x + s -> mb_y * s -> mb_stride ;\n if ( ret == SLICE_END ) {\n ff_MPV_decode_mb ( s , s -> block ) ;\n if ( s -> loop_filter ) ff_h263_loop_filter ( s ) ;\n ff_er_add_slice ( & s -> er , s -> resync_mb_x , s -> resync_mb_y , s -> mb_x , s -> mb_y , ER_MB_END & part_mask ) ;\n s -> padding_bug_score -- ;\n if ( ++ s -> mb_x >= s -> mb_width ) {\n s -> mb_x = 0 ;\n ff_mpeg_draw_horiz_band ( s , s -> mb_y * mb_size , mb_size ) ;\n ff_MPV_report_decode_progress ( s ) ;\n s -> mb_y ++ ;\n }\n return 0 ;\n }\n else if ( ret == SLICE_NOEND ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Slice mismatch at MB: %d\\n\" , xy ) ;\n ff_er_add_slice ( & s -> er , s -> resync_mb_x , s -> resync_mb_y , s -> mb_x + 1 , s -> mb_y , ER_MB_END & part_mask ) ;\n return - 1 ;\n }\n av_log ( s -> avctx , AV_LOG_ERROR , \"Error at MB: %d\\n\" , xy ) ;\n ff_er_add_slice ( & s -> er , s -> resync_mb_x , s -> resync_mb_y , s -> mb_x , s -> mb_y , ER_MB_ERROR & part_mask ) ;\n return - 1 ;\n }\n ff_MPV_decode_mb ( s , s -> block ) ;\n if ( s -> loop_filter ) ff_h263_loop_filter ( s ) ;\n }\n ff_mpeg_draw_horiz_band ( s , s -> mb_y * mb_size , mb_size ) ;\n ff_MPV_report_decode_progress ( s ) ;\n s -> mb_x = 0 ;\n }\n assert ( s -> mb_x == 0 && s -> mb_y == s -> mb_height ) ;\n if ( s -> codec_id == AV_CODEC_ID_MPEG4 && ( s -> workaround_bugs & FF_BUG_AUTODETECT ) && get_bits_left ( & s -> gb ) >= 48 && show_bits ( & s -> gb , 24 ) == 0x4010 && ! s -> data_partitioning ) s -> padding_bug_score += 32 ;\n if ( s -> codec_id == AV_CODEC_ID_MPEG4 && ( s -> workaround_bugs & FF_BUG_AUTODETECT ) && get_bits_left ( & s -> gb ) >= 0 && get_bits_left ( & s -> gb ) < 48 && ! s -> data_partitioning ) {\n const int bits_count = get_bits_count ( & s -> gb ) ;\n const int bits_left = s -> gb . size_in_bits - bits_count ;\n if ( bits_left == 0 ) {\n s -> padding_bug_score += 16 ;\n }\n else if ( bits_left != 1 ) {\n int v = show_bits ( & s -> gb , 8 ) ;\n v |= 0x7F >> ( 7 - ( bits_count & 7 ) ) ;\n if ( v == 0x7F && bits_left <= 8 ) s -> padding_bug_score -- ;\n else if ( v == 0x7F && ( ( get_bits_count ( & s -> gb ) + 8 ) & 8 ) && bits_left <= 16 ) s -> padding_bug_score += 4 ;\n else s -> padding_bug_score ++ ;\n }\n }\n if ( s -> workaround_bugs & FF_BUG_AUTODETECT ) {\n if ( s -> padding_bug_score > - 2 && ! s -> data_partitioning ) s -> workaround_bugs |= FF_BUG_NO_PADDING ;\n else s -> workaround_bugs &= ~ FF_BUG_NO_PADDING ;\n }\n if ( s -> msmpeg4_version || ( s -> workaround_bugs & FF_BUG_NO_PADDING ) ) {\n int left = get_bits_left ( & s -> gb ) ;\n int max_extra = 7 ;\n if ( s -> msmpeg4_version && s -> pict_type == AV_PICTURE_TYPE_I ) max_extra += 17 ;\n if ( ( s -> workaround_bugs & FF_BUG_NO_PADDING ) && ( s -> err_recognition & AV_EF_BUFFER ) ) max_extra += 48 ;\n else if ( ( s -> workaround_bugs & FF_BUG_NO_PADDING ) ) max_extra += 256 * 256 * 256 * 64 ;\n if ( left > max_extra ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"discarding %d junk bits at end, next would be %X\\n\" , left , show_bits ( & s -> gb , 24 ) ) ;\n }\n else if ( left < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"overreading %d bits\\n\" , - left ) ;\n }\n else ff_er_add_slice ( & s -> er , s -> resync_mb_x , s -> resync_mb_y , s -> mb_x - 1 , s -> mb_y , ER_MB_END ) ;\n return 0 ;\n }\n av_log ( s -> avctx , AV_LOG_ERROR , \"slice end not reached but screenspace end (%d left %06X, score= %d)\\n\" , get_bits_left ( & s -> gb ) , show_bits ( & s -> gb , 24 ) , s -> padding_bug_score ) ;\n ff_er_add_slice ( & s -> er , s -> resync_mb_x , s -> resync_mb_y , s -> mb_x , s -> mb_y , ER_MB_END & part_mask ) ;\n return - 1 ;\n }"}
{"idx": 14731, "target": 0, "func": "static int pack_options_allow_reuse ( void ) {\n return allow_ofs_delta ;\n }"}
{"idx": 14732, "target": 0, "func": "void pdf_set_cmap_wmode ( fz_context * ctx , pdf_cmap * cmap , int wmode ) {\n cmap -> wmode = wmode ;\n }"}
{"idx": 14733, "target": 0, "func": "static int msvideo1_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n Msvideo1Context * s = avctx -> priv_data ;\n int ret ;\n s -> buf = buf ;\n s -> size = buf_size ;\n if ( ( ret = ff_reget_buffer ( avctx , & s -> frame ) ) < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( s -> mode_8bit ) {\n const uint8_t * pal = av_packet_get_side_data ( avpkt , AV_PKT_DATA_PALETTE , NULL ) ;\n if ( pal ) {\n memcpy ( s -> pal , pal , AVPALETTE_SIZE ) ;\n s -> frame . palette_has_changed = 1 ;\n }\n }\n if ( s -> mode_8bit ) msvideo1_decode_8bit ( s ) ;\n else msvideo1_decode_16bit ( s ) ;\n if ( ( ret = av_frame_ref ( data , & s -> frame ) ) < 0 ) return ret ;\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 14734, "target": 0, "func": "static void cirrus_mem_writeb_mode4and5_16bpp ( CirrusVGAState * s , unsigned mode , unsigned offset , uint32_t mem_value ) {\n int x ;\n unsigned val = mem_value ;\n uint8_t * dst ;\n for ( x = 0 ;\n x < 8 ;\n x ++ ) {\n dst = s -> vga . vram_ptr + ( ( offset + 2 * x ) & s -> cirrus_addr_mask & ~ 1 ) ;\n if ( val & 0x80 ) {\n * dst = s -> cirrus_shadow_gr1 ;\n * ( dst + 1 ) = s -> vga . gr [ 0x11 ] ;\n }\n else if ( mode == 5 ) {\n * dst = s -> cirrus_shadow_gr0 ;\n * ( dst + 1 ) = s -> vga . gr [ 0x10 ] ;\n }\n val <<= 1 ;\n }\n memory_region_set_dirty ( & s -> vga . vram , offset , 16 ) ;\n }"}
{"idx": 14735, "target": 1, "func": "TEST ( BuildTime , DateLooksValid ) {\n # if ! defined ( DONT_EMBED_BUILD_METADATA ) char build_date [ ] = __DATE__ ;\n # else char build_date [ ] = \"Sep 02 2008\" ;\n # endif EXPECT_EQ ( 11u , strlen ( build_date ) ) ;\n EXPECT_EQ ( ' ' , build_date [ 3 ] ) ;\n EXPECT_EQ ( ' ' , build_date [ 6 ] ) ;\n }"}
{"idx": 14736, "target": 0, "func": "static void ATFigureDefWidth ( SplineFont * sf , struct alltabs * at , int subfont ) {\n int nomwid , defwid ;\n defwid = SFFigureDefWidth ( sf , & nomwid ) ;\n if ( subfont == - 1 ) at -> defwid = defwid ;\n else at -> fds [ subfont ] . defwid = defwid ;\n if ( subfont == - 1 ) at -> nomwid = nomwid ;\n else at -> fds [ subfont ] . nomwid = nomwid ;\n }"}
{"idx": 14737, "target": 0, "func": "static void tee_print_sized_data ( const char * data , unsigned int data_length , unsigned int total_bytes_to_send , bool right_justified ) {\n unsigned int i ;\n const char * p ;\n if ( right_justified ) for ( i = data_length ;\n i < total_bytes_to_send ;\n i ++ ) tee_putc ( ( int ) ' ' , PAGER ) ;\n for ( i = 0 , p = data ;\n i < data_length ;\n i += 1 , p += 1 ) {\n if ( * p == '\\0' ) tee_putc ( ( int ) ' ' , PAGER ) ;\n else tee_putc ( ( int ) * p , PAGER ) ;\n }\n if ( ! right_justified ) for ( i = data_length ;\n i < total_bytes_to_send ;\n i ++ ) tee_putc ( ( int ) ' ' , PAGER ) ;\n }"}
{"idx": 14738, "target": 0, "func": "int get_netbios_name ( tvbuff_t * tvb , int offset , char * name_ret , int name_ret_len ) {\n return process_netbios_name ( tvb_get_ptr ( tvb , offset , NETBIOS_NAME_LEN ) , name_ret , name_ret_len ) ;\n }"}
{"idx": 14739, "target": 0, "func": "static guint16 de_facility ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint fac_len , gchar * add_string _U_ , int string_len _U_ ) {\n guint saved_offset ;\n gint8 appclass ;\n gboolean pc ;\n gboolean ind = FALSE ;\n guint32 component_len = 0 ;\n guint32 header_end_offset ;\n guint32 header_len ;\n asn1_ctx_t asn1_ctx ;\n tvbuff_t * SS_tvb = NULL ;\n static gint comp_type_tag ;\n asn1_ctx_init ( & asn1_ctx , ASN1_ENC_BER , TRUE , pinfo ) ;\n saved_offset = offset ;\n col_append_str ( pinfo -> cinfo , COL_PROTOCOL , \"/\" ) ;\n col_set_fence ( pinfo -> cinfo , COL_PROTOCOL ) ;\n while ( fac_len > ( offset - saved_offset ) ) {\n header_end_offset = get_ber_identifier ( tvb , offset , & appclass , & pc , & comp_type_tag ) ;\n header_end_offset = get_ber_length ( tvb , header_end_offset , & component_len , & ind ) ;\n header_len = header_end_offset - offset ;\n component_len = header_len + component_len ;\n SS_tvb = tvb_new_subset_length ( tvb , offset , component_len ) ;\n col_append_str ( pinfo -> cinfo , COL_INFO , \"(GSM MAP) \" ) ;\n col_set_fence ( pinfo -> cinfo , COL_INFO ) ;\n call_dissector ( gsm_map_handle , SS_tvb , pinfo , tree ) ;\n offset = offset + component_len ;\n }\n return ( fac_len ) ;\n }"}
{"idx": 14740, "target": 0, "func": "bool kvm_device_msix_supported ( KVMState * s ) {\n return kvm_vm_ioctl ( s , KVM_ASSIGN_SET_MSIX_NR , NULL ) == - EFAULT ;\n }"}
{"idx": 14741, "target": 0, "func": "void qtmd_free ( struct qtmd_stream * qtm ) {\n struct mspack_system * sys ;\n if ( qtm ) {\n sys = qtm -> sys ;\n sys -> free ( qtm -> window ) ;\n sys -> free ( qtm -> inbuf ) ;\n sys -> free ( qtm ) ;\n }\n }"}
{"idx": 14742, "target": 0, "func": "static int rtp_packetize_t140 ( sout_stream_id_sys_t * id , block_t * in ) {\n const size_t i_max = rtp_mtu ( id ) ;\n const uint8_t * p_data = in -> p_buffer ;\n size_t i_data = in -> i_buffer ;\n for ( unsigned i_packet = 0 ;\n i_data > 0 ;\n i_packet ++ ) {\n size_t i_payload = i_data ;\n if ( i_data > i_max ) {\n i_payload = i_max ;\n while ( ( p_data [ i_payload ] & 0xC0 ) == 0x80 ) {\n if ( i_payload == 0 ) {\n block_Release ( in ) ;\n return VLC_SUCCESS ;\n }\n i_payload -- ;\n }\n }\n block_t * out = block_Alloc ( 12 + i_payload ) ;\n if ( out == NULL ) {\n block_Release ( in ) ;\n return VLC_SUCCESS ;\n }\n rtp_packetize_common ( id , out , 0 , in -> i_pts + i_packet ) ;\n memcpy ( out -> p_buffer + 12 , p_data , i_payload ) ;\n out -> i_dts = in -> i_pts ;\n out -> i_length = 0 ;\n rtp_packetize_send ( id , out ) ;\n p_data += i_payload ;\n i_data -= i_payload ;\n }\n block_Release ( in ) ;\n return VLC_SUCCESS ;\n }"}
{"idx": 14743, "target": 0, "func": "bool qemu_cpu_is_self ( CPUState * cpu ) {\n return qemu_thread_is_self ( cpu -> thread ) ;\n }"}
{"idx": 14744, "target": 0, "func": "static byte * i_resize_string ( gs_memory_t * mem , byte * data , uint old_num , uint new_num , client_name_t cname ) {\n gs_ref_memory_t * const imem = ( gs_ref_memory_t * ) mem ;\n byte * ptr ;\n if ( old_num == new_num ) return data ;\n data -= HDR_ID_OFFSET ;\n old_num += HDR_ID_OFFSET ;\n new_num += HDR_ID_OFFSET ;\n if ( imem -> cc && data == imem -> cc -> ctop && ( new_num < old_num || imem -> cc -> ctop - imem -> cc -> cbot > new_num - old_num ) ) {\n ptr = data + old_num - new_num ;\n if_debug6m ( 'A' , mem , \"[a%d:%c> ]%s(%u->%u) 0x%lx\\n\" , alloc_trace_space ( imem ) , ( new_num > old_num ? '>' : '<' ) , client_name_string ( cname ) , old_num , new_num , ( ulong ) ptr ) ;\n imem -> cc -> ctop = ptr ;\n memmove ( ptr , data , min ( old_num , new_num ) ) ;\n # ifdef DEBUG if ( new_num > old_num ) gs_alloc_fill ( ptr + old_num , gs_alloc_fill_alloc , new_num - old_num ) ;\n else gs_alloc_fill ( data , gs_alloc_fill_free , old_num - new_num ) ;\n # endif ptr += HDR_ID_OFFSET ;\n ASSIGN_HDR_ID ( ptr ) ;\n }\n else if ( new_num < old_num ) {\n ptr = data ;\n imem -> lost . strings += old_num - new_num ;\n gs_alloc_fill ( data + new_num , gs_alloc_fill_free , old_num - new_num ) ;\n if_debug5m ( 'A' , mem , \"[a%d:<> ]%s(%u->%u) 0x%lx\\n\" , alloc_trace_space ( imem ) , client_name_string ( cname ) , old_num , new_num , ( ulong ) ptr ) ;\n ptr += HDR_ID_OFFSET ;\n ASSIGN_HDR_ID ( ptr ) ;\n }\n else {\n data += HDR_ID_OFFSET ;\n old_num -= HDR_ID_OFFSET ;\n new_num -= HDR_ID_OFFSET ;\n ptr = gs_alloc_string ( mem , new_num , cname ) ;\n if ( ptr == 0 ) return 0 ;\n memcpy ( ptr , data , min ( old_num , new_num ) ) ;\n gs_free_string ( mem , data , old_num , cname ) ;\n }\n return ptr ;\n }"}
{"idx": 14745, "target": 0, "func": "static void fill_scaling_lists ( struct dxva_context * ctx , const H264Context * h , DXVA_Qmatrix_H264 * qm ) {\n unsigned i , j ;\n memset ( qm , 0 , sizeof ( * qm ) ) ;\n if ( ctx -> workaround & FF_DXVA2_WORKAROUND_SCALING_LIST_ZIGZAG ) {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) for ( j = 0 ;\n j < 16 ;\n j ++ ) qm -> bScalingLists4x4 [ i ] [ j ] = h -> pps . scaling_matrix4 [ i ] [ j ] ;\n for ( i = 0 ;\n i < 64 ;\n i ++ ) {\n qm -> bScalingLists8x8 [ 0 ] [ i ] = h -> pps . scaling_matrix8 [ 0 ] [ i ] ;\n qm -> bScalingLists8x8 [ 1 ] [ i ] = h -> pps . scaling_matrix8 [ 3 ] [ i ] ;\n }\n }\n else {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) for ( j = 0 ;\n j < 16 ;\n j ++ ) qm -> bScalingLists4x4 [ i ] [ j ] = h -> pps . scaling_matrix4 [ i ] [ zigzag_scan [ j ] ] ;\n for ( i = 0 ;\n i < 64 ;\n i ++ ) {\n qm -> bScalingLists8x8 [ 0 ] [ i ] = h -> pps . scaling_matrix8 [ 0 ] [ ff_zigzag_direct [ i ] ] ;\n qm -> bScalingLists8x8 [ 1 ] [ i ] = h -> pps . scaling_matrix8 [ 3 ] [ ff_zigzag_direct [ i ] ] ;\n }\n }\n }"}
{"idx": 14746, "target": 0, "func": "static int ipvideo_decode_block_opcode_0x0 ( IpvideoContext * s , AVFrame * frame ) {\n return copy_from ( s , s -> last_frame , frame , 0 , 0 ) ;\n }"}
{"idx": 14747, "target": 0, "func": "static guint32 dissect_netb_datagram_bcast ( tvbuff_t * tvb , packet_info * pinfo _U_ , int offset , proto_tree * tree ) {\n if ( tvb_memeql ( tvb , offset + NB_SENDER_NAME , zeroes , 10 ) == 0 ) {\n proto_tree_add_item ( tree , hf_netb_datagram_bcast_mac , tvb , offset + NB_SENDER_NAME + 10 , 6 , ENC_NA ) ;\n }\n else {\n netbios_add_name ( \"Sender's Name\" , tvb , offset + NB_SENDER_NAME , tree ) ;\n }\n return 0 ;\n }"}
{"idx": 14748, "target": 0, "func": "static const gchar * get_message_name ( guint8 prot_discr , guint8 message_type ) {\n if ( prot_discr == NLPID_DMS ) return val_to_str ( message_type , dms_message_type_vals , \"Unknown (0x%02X)\" ) ;\n else return val_to_str_ext ( message_type , & q931_message_type_vals_ext , \"Unknown (0x%02X)\" ) ;\n }"}
{"idx": 14749, "target": 0, "func": "static void xhci_detach_slot ( XHCIState * xhci , USBPort * uport ) {\n int slot , ep ;\n for ( slot = 0 ;\n slot < xhci -> numslots ;\n slot ++ ) {\n if ( xhci -> slots [ slot ] . uport == uport ) {\n break ;\n }\n }\n if ( slot == xhci -> numslots ) {\n return ;\n }\n for ( ep = 0 ;\n ep < 31 ;\n ep ++ ) {\n if ( xhci -> slots [ slot ] . eps [ ep ] ) {\n xhci_ep_nuke_xfers ( xhci , slot + 1 , ep + 1 , 0 ) ;\n }\n }\n xhci -> slots [ slot ] . uport = NULL ;\n }"}
{"idx": 14750, "target": 0, "func": "static inline void tm2_motion_block ( TM2Context * ctx , AVFrame * pic , int bx , int by ) {\n int i , j ;\n int mx , my ;\n TM2_INIT_POINTERS_2 ( ) ;\n mx = GET_TOK ( ctx , TM2_MOT ) ;\n my = GET_TOK ( ctx , TM2_MOT ) ;\n mx = av_clip ( mx , - ( bx * 4 + 4 ) , ctx -> avctx -> width - bx * 4 ) ;\n my = av_clip ( my , - ( by * 4 + 4 ) , ctx -> avctx -> height - by * 4 ) ;\n Yo += my * oYstride + mx ;\n Uo += ( my >> 1 ) * oUstride + ( mx >> 1 ) ;\n Vo += ( my >> 1 ) * oVstride + ( mx >> 1 ) ;\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n U [ i ] = Uo [ i ] ;\n V [ i ] = Vo [ i ] ;\n }\n U += Ustride ;\n V += Vstride ;\n Uo += oUstride ;\n Vo += oVstride ;\n }\n U -= Ustride * 2 ;\n V -= Vstride * 2 ;\n TM2_RECALC_BLOCK ( U , Ustride , clast , ctx -> CD ) ;\n TM2_RECALC_BLOCK ( V , Vstride , ( clast + 2 ) , ( ctx -> CD + 2 ) ) ;\n for ( j = 0 ;\n j < 4 ;\n j ++ ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n Y [ i ] = Yo [ i ] ;\n }\n Y += Ystride ;\n Yo += oYstride ;\n }\n Y -= Ystride * 4 ;\n ctx -> D [ 0 ] = Y [ 3 ] - last [ 3 ] ;\n ctx -> D [ 1 ] = Y [ 3 + Ystride ] - Y [ 3 ] ;\n ctx -> D [ 2 ] = Y [ 3 + Ystride * 2 ] - Y [ 3 + Ystride ] ;\n ctx -> D [ 3 ] = Y [ 3 + Ystride * 3 ] - Y [ 3 + Ystride * 2 ] ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) last [ i ] = Y [ i + Ystride * 3 ] ;\n }"}
{"idx": 14751, "target": 0, "func": "static gchar * logcat_log ( const struct dumper_t * dumper , guint32 seconds , gint milliseconds , gint pid , gint tid , gchar priority , const gchar * tag , const gchar * log ) {\n gchar time_buffer [ 15 ] ;\n time_t datetime ;\n datetime = ( time_t ) seconds ;\n switch ( dumper -> type ) {\n case DUMP_BRIEF : return g_strdup_printf ( \"%c/%-8s(%5i): %s\\n\" , priority , tag , pid , log ) ;\n case DUMP_PROCESS : return g_strdup_printf ( \"%c(%5i) %s (%s)\\n\" , priority , pid , log , \"\" ) ;\n case DUMP_TAG : return g_strdup_printf ( \"%c/%-8s: %s\\n\" , priority , tag , log ) ;\n case DUMP_THREAD : return g_strdup_printf ( \"%c(%5i:0x%02x) %s\\n\" , priority , pid , tid , log ) ;\n case DUMP_TIME : strftime ( time_buffer , sizeof ( time_buffer ) , \"%m-%d %H:%M:%S\" , gmtime ( & datetime ) ) ;\n return g_strdup_printf ( \"%s.%03i %c/%-8s(%5i): %s\\n\" , time_buffer , milliseconds , priority , tag , pid , log ) ;\n case DUMP_THREADTIME : strftime ( time_buffer , sizeof ( time_buffer ) , \"%m-%d %H:%M:%S\" , gmtime ( & datetime ) ) ;\n return g_strdup_printf ( \"%s.%03i %5i %5i %c %-8s: %s\\n\" , time_buffer , milliseconds , pid , tid , priority , tag , log ) ;\n case DUMP_LONG : strftime ( time_buffer , sizeof ( time_buffer ) , \"%m-%d %H:%M:%S\" , gmtime ( & datetime ) ) ;\n return g_strdup_printf ( \"[ %s.%03i %5i:0x%02x %c/%s ]\\n%s\\n\\n\" , time_buffer , milliseconds , pid , tid , priority , tag , log ) ;\n default : return NULL ;\n }\n }"}
{"idx": 14752, "target": 0, "func": "guint16 de_bearer_cap ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len , gchar * add_string , int string_len ) {\n guint8 oct ;\n guint8 itc ;\n gboolean extended ;\n guint32 curr_offset ;\n guint32 saved_offset ;\n proto_tree * subtree ;\n proto_item * item ;\n const gchar * str ;\n # define DE_BC_ITC_SPEECH 0x00 # define DE_BC_ITC_UDI 0x01 # define DE_BC_ITC_EX_PLMN 0x02 # define DE_BC_ITC_FASC_G3 0x03 # define DE_BC_ITC_OTHER_ITC 0x05 # define DE_BC_ITC_RSVD_NET 0x07 curr_offset = offset ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n subtree = proto_tree_add_subtree ( tree , tvb , curr_offset , 1 , ett_bc_oct_3 , NULL , \"Octet 3\" ) ;\n extended = ( oct & 0x80 ) ? FALSE : TRUE ;\n itc = oct & 0x07 ;\n proto_tree_add_item ( subtree , hf_gsm_a_extension , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n switch ( is_uplink ) {\n case IS_UPLINK_FALSE : str = \"Spare\" ;\n break ;\n case IS_UPLINK_TRUE : switch ( itc ) {\n case DE_BC_ITC_SPEECH : if ( extended ) {\n switch ( ( oct & 0x60 ) >> 5 ) {\n case 1 : str = \"MS supports at least full rate speech version 1 but does not support half rate speech version 1\" ;\n break ;\n case 2 : str = \"MS supports at least full rate speech version 1 and half rate speech version 1. MS has a greater preference for half rate speech version 1 than for full rate speech version 1\" ;\n break ;\n case 3 : str = \"MS supports at least full rate speech version 1 and half rate speech version 1. MS has a greater preference for full rate speech version 1 than for half rate speech version 1\" ;\n break ;\n default : str = \"Reserved\" ;\n break ;\n }\n }\n else {\n switch ( ( oct & 0x60 ) >> 5 ) {\n case 1 : str = \"Full rate support only MS/fullrate speech version 1 supported\" ;\n break ;\n case 2 : str = \"Dual rate support MS/half rate speech version 1 preferred, full rate speech version 1 also supported\" ;\n break ;\n case 3 : str = \"Dual rate support MS/full rate speech version 1 preferred, half rate speech version 1 also supported\" ;\n break ;\n default : str = \"Reserved\" ;\n break ;\n }\n }\n break ;\n default : switch ( ( oct & 0x60 ) >> 5 ) {\n case 1 : str = \"Full rate support only MS\" ;\n break ;\n case 2 : str = \"Dual rate support MS/half rate preferred\" ;\n break ;\n case 3 : str = \"Dual rate support MS/full rate preferred\" ;\n break ;\n default : str = \"Reserved\" ;\n break ;\n }\n break ;\n }\n break ;\n default : str = \"(dissect problem)\" ;\n break ;\n }\n proto_tree_add_uint_format_value ( subtree , hf_gsm_a_dtap_radio_channel_requirement , tvb , curr_offset , 1 , oct , \"%s\" , str ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_bearer_cap_coding_standard , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_transfer_mode , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_itc , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n if ( add_string ) g_snprintf ( add_string , string_len , \" - (%s)\" , str ) ;\n curr_offset ++ ;\n NO_MORE_DATA_CHECK ( len ) ;\n switch ( itc ) {\n case DE_BC_ITC_SPEECH : subtree = proto_tree_add_subtree ( tree , tvb , curr_offset , - 1 , ett_bc_oct_3a , & item , \"Octets 3a - Speech Versions\" ) ;\n saved_offset = curr_offset ;\n do {\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n extended = ( oct & 0x80 ) ? FALSE : TRUE ;\n proto_tree_add_item ( subtree , hf_gsm_a_extension , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_coding , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_bits_item ( subtree , hf_gsm_a_spare_bits , tvb , ( curr_offset << 3 ) + 2 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_speech_vers_ind , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n }\n while ( extended && ( ( len - ( curr_offset - offset ) ) > 0 ) ) ;\n proto_item_set_len ( item , curr_offset - saved_offset ) ;\n break ;\n default : subtree = proto_tree_add_subtree ( tree , tvb , curr_offset , 1 , ett_bc_oct_4 , NULL , \"Octet 4\" ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_extension , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , is_uplink ? hf_gsm_a_dtap_compression_up : hf_gsm_a_dtap_compression , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_structure , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_duplex_mode , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_configuration , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_nirr , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_establishment , tvb , curr_offset , 1 , ENC_NA ) ;\n curr_offset ++ ;\n NO_MORE_DATA_CHECK ( len ) ;\n subtree = proto_tree_add_subtree ( tree , tvb , curr_offset , 1 , ett_bc_oct_5 , NULL , \"Octet 5\" ) ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n extended = ( oct & 0x80 ) ? FALSE : TRUE ;\n proto_tree_add_item ( subtree , hf_gsm_a_extension , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_access_identity , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_rate_adaption , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_signalling_access_protocol , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n NO_MORE_DATA_CHECK ( len ) ;\n if ( ! extended ) goto bc_octet_6 ;\n subtree = proto_tree_add_subtree ( tree , tvb , curr_offset , 1 , ett_bc_oct_5a , NULL , \"Octet 5a\" ) ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n extended = ( oct & 0x80 ) ? FALSE : TRUE ;\n proto_tree_add_item ( subtree , hf_gsm_a_extension , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_other_itc , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_other_rate_adaption , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( curr_offset << 3 ) + 5 , 3 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n NO_MORE_DATA_CHECK ( len ) ;\n if ( ! extended ) goto bc_octet_6 ;\n subtree = proto_tree_add_subtree ( tree , tvb , curr_offset , 1 , ett_bc_oct_5b , NULL , \"Octet 5b\" ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_extension , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_rate_adaption_header , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_multiple_frame_establishment_support , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_mode_of_operation , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_logical_link_identifier_negotiation , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_assignor_assignee , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_in_out_band , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( curr_offset << 3 ) + 7 , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n NO_MORE_DATA_CHECK ( len ) ;\n bc_octet_6 : subtree = proto_tree_add_subtree ( tree , tvb , curr_offset , 1 , ett_bc_oct_6 , NULL , \"Octet 6\" ) ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n extended = ( oct & 0x80 ) ? FALSE : TRUE ;\n proto_tree_add_item ( subtree , hf_gsm_a_extension , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_uint_format_value ( subtree , hf_gsm_a_dtap_layer_1_identity , tvb , curr_offset , 1 , oct , \"%s\" , ( ( oct & 0x60 ) == 0x20 ) ? \"Octet identifier\" : \"Reserved\" ) ;\n proto_tree_add_uint_format_value ( subtree , hf_gsm_a_dtap_user_information_layer_1_protocol , tvb , curr_offset , 1 , oct , \"%s\" , ( oct & 0x1e ) ? \"Reserved\" : \"Default layer 1 protocol\" ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_synchronous , tvb , curr_offset , 1 , ENC_NA ) ;\n curr_offset ++ ;\n NO_MORE_DATA_CHECK ( len ) ;\n if ( ! extended ) goto bc_octet_7 ;\n subtree = proto_tree_add_subtree ( tree , tvb , curr_offset , 1 , ett_bc_oct_6a , NULL , \"Octet 6a\" ) ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n extended = ( oct & 0x80 ) ? FALSE : TRUE ;\n proto_tree_add_item ( subtree , hf_gsm_a_extension , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_number_of_stop_bits , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_negotiation , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_number_of_data_bits , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_uint_format_value ( subtree , hf_gsm_a_dtap_user_rate , tvb , curr_offset , 1 , oct , \"%s\" , val_to_str_const ( oct & 0xF , gsm_a_dtap_user_rate_vals , \"Reserved\" ) ) ;\n curr_offset ++ ;\n NO_MORE_DATA_CHECK ( len ) ;\n if ( ! extended ) goto bc_octet_7 ;\n subtree = proto_tree_add_subtree ( tree , tvb , curr_offset , 1 , ett_bc_oct_6b , NULL , \"Octet 6b\" ) ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n extended = ( oct & 0x80 ) ? FALSE : TRUE ;\n proto_tree_add_item ( subtree , hf_gsm_a_extension , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_v110_x30_rate_adaptation , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_nic_on_tx , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_nic_on_rx , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_parity_information , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n NO_MORE_DATA_CHECK ( len ) ;\n if ( ! extended ) goto bc_octet_7 ;\n subtree = proto_tree_add_subtree ( tree , tvb , curr_offset , 1 , ett_bc_oct_6c , NULL , \"Octet 6c\" ) ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n extended = ( oct & 0x80 ) ? FALSE : TRUE ;\n proto_tree_add_item ( subtree , hf_gsm_a_extension , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_connection_element , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_uint_format_value ( subtree , hf_gsm_a_dtap_modem_type , tvb , curr_offset , 1 , oct , \"%s\" , val_to_str_const ( oct & 0x1f , gsm_a_dtap_modem_type_vals , \"Reserved\" ) ) ;\n curr_offset ++ ;\n NO_MORE_DATA_CHECK ( len ) ;\n if ( ! extended ) goto bc_octet_7 ;\n subtree = proto_tree_add_subtree ( tree , tvb , curr_offset , 1 , ett_bc_oct_6d , NULL , \"Octet 6d\" ) ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n extended = ( oct & 0x80 ) ? FALSE : TRUE ;\n proto_tree_add_item ( subtree , hf_gsm_a_extension , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_other_modem_type , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_uint_format_value ( subtree , hf_gsm_a_dtap_fixed_network_user_rate , tvb , curr_offset , 1 , oct , \"%s\" , val_to_str_const ( oct & 0x1f , gsm_a_dtap_fixed_network_user_rate_vals , \"Reserved\" ) ) ;\n curr_offset ++ ;\n NO_MORE_DATA_CHECK ( len ) ;\n if ( ! extended ) goto bc_octet_7 ;\n subtree = proto_tree_add_subtree ( tree , tvb , curr_offset , 1 , ett_bc_oct_6e , NULL , \"Octet 6e\" ) ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n extended = ( oct & 0x80 ) ? FALSE : TRUE ;\n proto_tree_add_item ( subtree , hf_gsm_a_extension , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n if ( is_uplink == IS_UPLINK_TRUE ) {\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_acceptable_channel_codings_TCH_F14_4 , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_acceptable_channel_codings_spare20 , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_acceptable_channel_codings_TCH_F9_6 , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_acceptable_channel_codings_TCH_F4_8 , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_uint_format_value ( subtree , hf_gsm_a_dtap_maximum_number_of_traffic_channels , tvb , curr_offset , 1 , ( oct & 0x07 ) + 1 , \"%u TCH\" , ( oct & 0x07 ) + 1 ) ;\n }\n else {\n proto_tree_add_uint_format_value ( subtree , hf_gsm_a_dtap_acceptable_channel_codings_spare78 , tvb , curr_offset , 1 , oct , \"Spare\" ) ;\n proto_tree_add_uint_format_value ( subtree , hf_gsm_a_dtap_maximum_number_of_traffic_channels , tvb , curr_offset , 1 , oct , \"Spare\" ) ;\n }\n curr_offset ++ ;\n NO_MORE_DATA_CHECK ( len ) ;\n if ( ! extended ) goto bc_octet_7 ;\n subtree = proto_tree_add_subtree ( tree , tvb , curr_offset , 1 , ett_bc_oct_6f , NULL , \"Octet 6f\" ) ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n extended = ( oct & 0x80 ) ? FALSE : TRUE ;\n proto_tree_add_item ( subtree , hf_gsm_a_extension , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_uimi , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n if ( is_uplink == IS_UPLINK_TRUE ) {\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_wanted_air_interface_user_rate , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n }\n else {\n proto_tree_add_uint_format_value ( subtree , hf_gsm_a_dtap_wanted_air_interface_user_rate , tvb , curr_offset , 1 , oct , \"Spare\" ) ;\n }\n curr_offset ++ ;\n NO_MORE_DATA_CHECK ( len ) ;\n if ( ! extended ) goto bc_octet_7 ;\n subtree = proto_tree_add_subtree ( tree , tvb , curr_offset , 1 , ett_bc_oct_6g , NULL , \"Octet 6g\" ) ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_extension , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n if ( is_uplink == IS_UPLINK_TRUE ) {\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_acceptable_channel_codings_ext_TCH_F28_8 , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_acceptable_channel_codings_ext_TCH_F32_0 , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_acceptable_channel_codings_ext_TCH_F43_2 , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_channel_coding_asymmetry_indication , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n }\n else {\n proto_tree_add_uint_format_value ( subtree , hf_gsm_a_dtap_edge_channel_codings , tvb , curr_offset , 1 , oct , \"Spare\" ) ;\n }\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( curr_offset << 3 ) + 6 , 2 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n NO_MORE_DATA_CHECK ( len ) ;\n bc_octet_7 : subtree = proto_tree_add_subtree ( tree , tvb , curr_offset , 1 , ett_bc_oct_7 , NULL , \"Octet 7\" ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_extension , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_uint_format_value ( subtree , hf_gsm_a_dtap_layer_2_identity , tvb , curr_offset , 1 , oct , \"%s\" , ( ( oct & 0x60 ) == 0x40 ) ? \"Octet identifier\" : \"Reserved\" ) ;\n proto_tree_add_uint_format_value ( subtree , hf_gsm_a_dtap_user_information_layer_2_protocol , tvb , curr_offset , 1 , oct , \"%s\" , val_to_str_const ( oct & 0x1F , gsm_a_dtap_user_info_layer2_vals , \"Reserved\" ) ) ;\n break ;\n }\n EXTRANEOUS_DATA_CHECK ( len , curr_offset - offset , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 14753, "target": 0, "func": "int xmlListRemoveAll ( xmlListPtr l , void * data ) {\n int count = 0 ;\n if ( l == NULL ) return ( 0 ) ;\n while ( xmlListRemoveFirst ( l , data ) ) count ++ ;\n return count ;\n }"}
{"idx": 14754, "target": 0, "func": "static int pfkey_acquire ( struct sock * sk , struct sk_buff * skb , const struct sadb_msg * hdr , void * const * ext_hdrs ) {\n struct net * net = sock_net ( sk ) ;\n struct xfrm_state * x ;\n if ( hdr -> sadb_msg_len != sizeof ( struct sadb_msg ) / 8 ) return - EOPNOTSUPP ;\n if ( hdr -> sadb_msg_seq == 0 || hdr -> sadb_msg_errno == 0 ) return 0 ;\n x = xfrm_find_acq_byseq ( net , DUMMY_MARK , hdr -> sadb_msg_seq ) ;\n if ( x == NULL ) return 0 ;\n spin_lock_bh ( & x -> lock ) ;\n if ( x -> km . state == XFRM_STATE_ACQ ) {\n x -> km . state = XFRM_STATE_ERROR ;\n wake_up ( & net -> xfrm . km_waitq ) ;\n }\n spin_unlock_bh ( & x -> lock ) ;\n xfrm_state_put ( x ) ;\n return 0 ;\n }"}
{"idx": 14755, "target": 0, "func": "static void test_selecttmp ( ) {\n MYSQL_STMT * stmt ;\n int rc , i ;\n const char * query = \"select a, (select count(distinct t1.b) as sum from t1, t2 where t1.a=t2.a and t2.b > 0 and t1.a <= t3.b group by t1.a order by sum limit 1) from t3\" ;\n myheader ( \"test_select_tmp\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS t1, t2, t3\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE t1 (a int , b int);\n\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t2 (a int, b int);\n\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t3 (a int, b int);\n\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t1 values (0, 100), (1, 2), (1, 3), (2, 2), (2, 7), \\ (2, -1), (3, 10);\n\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t2 values (0, 0), (1, 1), (2, 1), (3, 1), (4, 1);\n\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t3 values (3, 3), (2, 2), (1, 1);\n\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( rc == 3 ) ;\n }\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"DROP TABLE t1, t2, t3\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 14756, "target": 0, "func": "static void flip ( AVCodecContext * avctx , AVPicture * picture ) {\n picture -> data [ 0 ] += picture -> linesize [ 0 ] * ( avctx -> height - 1 ) ;\n picture -> linesize [ 0 ] *= - 1 ;\n }"}
{"idx": 14757, "target": 0, "func": "static int opt_show_format_entry ( void * optctx , const char * opt , const char * arg ) {\n char * buf = av_asprintf ( \"format=%s\" , arg ) ;\n int ret ;\n if ( ! buf ) return AVERROR ( ENOMEM ) ;\n av_log ( NULL , AV_LOG_WARNING , \"Option '%s' is deprecated, use '-show_entries format=%s' instead\\n\" , opt , arg ) ;\n ret = opt_show_entries ( optctx , opt , buf ) ;\n av_free ( buf ) ;\n return ret ;\n }"}
{"idx": 14758, "target": 0, "func": "static int get_result_width ( MYSQL_RES * result ) {\n unsigned int len = 0 ;\n MYSQL_FIELD * field ;\n MYSQL_FIELD_OFFSET offset ;\n # ifndef DBUG_OFF offset = mysql_field_tell ( result ) ;\n DBUG_ASSERT ( offset == 0 ) ;\n # else offset = 0 ;\n # endif while ( ( field = mysql_fetch_field ( result ) ) != NULL ) len += get_field_disp_length ( field ) + 3 ;\n ( void ) mysql_field_seek ( result , offset ) ;\n return len + 1 ;\n }"}
{"idx": 14759, "target": 0, "func": "static void pdf_run_Do_image ( fz_context * ctx , pdf_processor * proc , const char * name , fz_image * image ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_show_image ( ctx , pr , image ) ;\n }"}
{"idx": 14760, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PrintPreviewDialogControllerBrowserTest , PdfPluginDisabled ) {\n {\n base : : RunLoop run_loop ;\n content : : PluginService : : GetInstance ( ) -> GetPlugins ( base : : Bind ( & PluginsLoadedCallback , run_loop . QuitClosure ( ) ) ) ;\n run_loop . Run ( ) ;\n }\n content : : WebPluginInfo pdf_plugin_info ;\n ASSERT_TRUE ( GetPdfPluginInfo ( & pdf_plugin_info ) ) ;\n {\n base : : RunLoop run_loop ;\n PluginPrefs : : GetForProfile ( browser ( ) -> profile ( ) ) -> EnablePlugin ( false , base : : FilePath : : FromUTF8Unsafe ( ChromeContentClient : : kPDFPluginPath ) , base : : Bind ( & PluginEnabledCallback , run_loop . QuitClosure ( ) ) ) ;\n run_loop . Run ( ) ;\n }\n ChromePluginServiceFilter * filter = ChromePluginServiceFilter : : GetInstance ( ) ;\n content : : WebPluginInfo dummy_pdf_plugin_info = pdf_plugin_info ;\n EXPECT_FALSE ( filter -> IsPluginAvailable ( initiator ( ) -> GetRenderProcessHost ( ) -> GetID ( ) , initiator ( ) -> GetMainFrame ( ) -> GetRoutingID ( ) , browser ( ) -> profile ( ) -> GetResourceContext ( ) , GURL ( ) , url : : Origin ( GURL ( \"http://google.com\" ) ) , & dummy_pdf_plugin_info ) ) ;\n PrintPreview ( ) ;\n WebContents * preview_dialog = GetPrintPreviewDialog ( ) ;\n ASSERT_TRUE ( preview_dialog ) ;\n ASSERT_NE ( initiator ( ) , preview_dialog ) ;\n const int kExpectedFrameCount = 2 ;\n int frame_count ;\n do {\n base : : RunLoop run_loop ;\n base : : ThreadTaskRunnerHandle : : Get ( ) -> PostDelayedTask ( FROM_HERE , run_loop . QuitClosure ( ) , base : : TimeDelta : : FromSeconds ( 1 ) ) ;\n run_loop . Run ( ) ;\n frame_count = 0 ;\n preview_dialog -> ForEachFrame ( base : : Bind ( & CountFrames , base : : Unretained ( & frame_count ) ) ) ;\n }\n while ( frame_count < kExpectedFrameCount ) ;\n ASSERT_EQ ( kExpectedFrameCount , frame_count ) ;\n preview_dialog -> ForEachFrame ( base : : Bind ( & CheckPdfPluginForRenderFrame ) ) ;\n }"}
{"idx": 14761, "target": 0, "func": "void gs_memory_gc_status ( const gs_ref_memory_t * mem , gs_memory_gc_status_t * pstat ) {\n * pstat = mem -> gc_status ;\n }"}
{"idx": 14762, "target": 0, "func": "inline static void _slurm_rpc_accounting_first_reg ( slurm_msg_t * msg ) {\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n time_t event_time = time ( NULL ) ;\n DEF_TIMERS ;\n START_TIMER ;\n debug2 ( \"Processing RPC: ACCOUNTING_FIRST_REG from uid=%d\" , uid ) ;\n if ( ! validate_super_user ( uid ) ) {\n error ( \"First Registration request from non-super user uid=%d\" , uid ) ;\n return ;\n }\n send_all_to_accounting ( event_time , ACCOUNTING_FIRST_REG ) ;\n END_TIMER2 ( \"_slurm_rpc_accounting_first_reg\" ) ;\n }"}
{"idx": 14763, "target": 0, "func": "inline void mime_hdr_set_accelerators_and_presence_bits ( MIMEHdrImpl * mh , MIMEField * field ) {\n int slot_id ;\n ptrdiff_t slot_num ;\n if ( field -> m_wks_idx < 0 ) {\n return ;\n }\n mime_hdr_presence_set ( mh , field -> m_wks_idx ) ;\n slot_id = hdrtoken_index_to_slotid ( field -> m_wks_idx ) ;\n if ( slot_id != MIME_SLOTID_NONE ) {\n if ( mh -> m_first_fblock . contains ( field ) ) {\n slot_num = ( field - & ( mh -> m_first_fblock . m_field_slots [ 0 ] ) ) ;\n if ( slot_num >= MIME_FIELD_SLOTNUM_UNKNOWN ) {\n slot_num = MIME_FIELD_SLOTNUM_UNKNOWN ;\n }\n }\n else {\n slot_num = MIME_FIELD_SLOTNUM_UNKNOWN ;\n }\n mime_hdr_set_accelerator_slotnum ( mh , slot_id , slot_num ) ;\n }\n }"}
{"idx": 14764, "target": 0, "func": "char * TSMatcherTokLine ( char * buffer , char * * last ) {\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) buffer ) == TS_SUCCESS ) ;\n return tokLine ( buffer , last ) ;\n }"}
{"idx": 14765, "target": 0, "func": "static void default_print_str ( WriterContext * wctx , const char * key , const char * value ) {\n DefaultContext * def = wctx -> priv ;\n if ( ! def -> nokey ) printf ( \"%s%s=\" , wctx -> section_pbuf [ wctx -> level ] . str , key ) ;\n printf ( \"%s\\n\" , value ) ;\n }"}
{"idx": 14766, "target": 0, "func": "static int zisofs_init ( struct archive_write * a , struct isofile * file ) {\n struct iso9660 * iso9660 = a -> format_data ;\n # ifdef HAVE_ZLIB_H uint64_t tsize ;\n size_t _ceil , bpsize ;\n int r ;\n # endif iso9660 -> zisofs . detect_magic = 0 ;\n iso9660 -> zisofs . making = 0 ;\n if ( ! iso9660 -> opt . rr || ! iso9660 -> opt . zisofs ) return ( ARCHIVE_OK ) ;\n if ( archive_entry_size ( file -> entry ) >= 24 && archive_entry_size ( file -> entry ) < MULTI_EXTENT_SIZE ) {\n iso9660 -> zisofs . detect_magic = 1 ;\n iso9660 -> zisofs . magic_cnt = 0 ;\n }\n if ( ! iso9660 -> zisofs . detect_magic ) return ( ARCHIVE_OK ) ;\n # ifdef HAVE_ZLIB_H if ( archive_entry_size ( file -> entry ) <= LOGICAL_BLOCK_SIZE ) return ( ARCHIVE_OK ) ;\n r = zisofs_init_zstream ( a ) ;\n if ( r != ARCHIVE_OK ) return ( ARCHIVE_FATAL ) ;\n file -> zisofs . header_size = ZF_HEADER_SIZE >> 2 ;\n file -> zisofs . log2_bs = ZF_LOG2_BS ;\n file -> zisofs . uncompressed_size = ( uint32_t ) archive_entry_size ( file -> entry ) ;\n _ceil = ( file -> zisofs . uncompressed_size + ZF_BLOCK_SIZE - 1 ) >> file -> zisofs . log2_bs ;\n iso9660 -> zisofs . block_pointers_cnt = ( int ) _ceil + 1 ;\n iso9660 -> zisofs . block_pointers_idx = 0 ;\n bpsize = iso9660 -> zisofs . block_pointers_cnt * sizeof ( iso9660 -> zisofs . block_pointers [ 0 ] ) ;\n if ( iso9660 -> zisofs . block_pointers_allocated < bpsize ) {\n free ( iso9660 -> zisofs . block_pointers ) ;\n iso9660 -> zisofs . block_pointers = malloc ( bpsize ) ;\n if ( iso9660 -> zisofs . block_pointers == NULL ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate data\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n iso9660 -> zisofs . block_pointers_allocated = bpsize ;\n }\n tsize = ZF_HEADER_SIZE + bpsize ;\n if ( write_null ( a , ( size_t ) tsize ) != ARCHIVE_OK ) return ( ARCHIVE_FATAL ) ;\n archive_le32enc ( & ( iso9660 -> zisofs . block_pointers [ 0 ] ) , ( uint32_t ) tsize ) ;\n iso9660 -> zisofs . remaining = file -> zisofs . uncompressed_size ;\n iso9660 -> zisofs . making = 1 ;\n iso9660 -> zisofs . allzero = 1 ;\n iso9660 -> zisofs . block_offset = tsize ;\n iso9660 -> zisofs . total_size = tsize ;\n iso9660 -> cur_file -> cur_content -> size = tsize ;\n # endif return ( ARCHIVE_OK ) ;\n }"}
{"idx": 14767, "target": 0, "func": "static lbmpdm_definition_field_t * lbmpdm_definition_field_find ( lbmpdm_definition_t * definition , guint32 id ) {\n lbmpdm_definition_field_t * entry = NULL ;\n entry = ( lbmpdm_definition_field_t * ) wmem_tree_lookup32 ( definition -> field_list , id ) ;\n return ( entry ) ;\n }"}
{"idx": 14768, "target": 1, "func": "static void cirrus_mem_writeb_mode4and5_8bpp ( CirrusVGAState * s , unsigned mode , unsigned offset , uint32_t mem_value ) {\n int x ;\n unsigned val = mem_value ;\n uint8_t * dst ;\n dst = s -> vga . vram_ptr + ( offset &= s -> cirrus_addr_mask ) ;\n for ( x = 0 ;\n x < 8 ;\n x ++ ) {\n if ( val & 0x80 ) {\n * dst = s -> cirrus_shadow_gr1 ;\n }\n else if ( mode == 5 ) {\n * dst = s -> cirrus_shadow_gr0 ;\n }\n val <<= 1 ;\n dst ++ ;\n }\n memory_region_set_dirty ( & s -> vga . vram , offset , 8 ) ;\n }"}
{"idx": 14769, "target": 0, "func": "const char * msc_alert_message ( modsec_rec * msr , msre_actionset * actionset , const char * action_message , const char * rule_message ) {\n const char * message = NULL ;\n if ( rule_message == NULL ) rule_message = \"Unknown error.\" ;\n if ( action_message == NULL ) {\n message = apr_psprintf ( msr -> mp , \"%s%s\" , rule_message , msre_format_metadata ( msr , actionset ) ) ;\n }\n else {\n message = apr_psprintf ( msr -> mp , \"%s %s%s\" , action_message , rule_message , msre_format_metadata ( msr , actionset ) ) ;\n }\n return message ;\n }"}
{"idx": 14770, "target": 0, "func": "int mszipd_decompress ( struct mszipd_stream * zip , off_t out_bytes ) {\n register unsigned int bit_buffer ;\n register int bits_left ;\n unsigned char * i_ptr , * i_end ;\n int i , state , error ;\n if ( ! zip || ( out_bytes < 0 ) ) return MSPACK_ERR_ARGS ;\n if ( zip -> error ) return zip -> error ;\n i = zip -> o_end - zip -> o_ptr ;\n if ( ( off_t ) i > out_bytes ) i = ( int ) out_bytes ;\n if ( i ) {\n if ( zip -> sys -> write ( zip -> output , zip -> o_ptr , i ) != i ) {\n return zip -> error = MSPACK_ERR_WRITE ;\n }\n zip -> o_ptr += i ;\n out_bytes -= i ;\n }\n if ( out_bytes == 0 ) return MSPACK_ERR_OK ;\n while ( out_bytes > 0 ) {\n RESTORE_BITS ;\n i = bits_left & 7 ;\n REMOVE_BITS ( i ) ;\n state = 0 ;\n do {\n READ_BITS ( i , 8 ) ;\n if ( i == 'C' ) state = 1 ;\n else if ( ( state == 1 ) && ( i == 'K' ) ) state = 2 ;\n else state = 0 ;\n }\n while ( state != 2 ) ;\n zip -> window_posn = 0 ;\n zip -> bytes_output = 0 ;\n STORE_BITS ;\n if ( ( error = inflate ( zip ) ) ) {\n D ( ( \"inflate error %d\" , error ) ) if ( zip -> repair_mode ) {\n if ( zip -> bytes_output == 0 && zip -> window_posn > 0 ) {\n zip -> flush_window ( zip , zip -> window_posn ) ;\n }\n zip -> sys -> message ( NULL , \"MSZIP error, %u bytes of data lost.\" , MSZIP_FRAME_SIZE - zip -> bytes_output ) ;\n for ( i = zip -> bytes_output ;\n i < MSZIP_FRAME_SIZE ;\n i ++ ) {\n zip -> window [ i ] = '\\0' ;\n }\n zip -> bytes_output = MSZIP_FRAME_SIZE ;\n }\n else {\n return zip -> error = ( error > 0 ) ? error : MSPACK_ERR_DECRUNCH ;\n }\n }\n zip -> o_ptr = & zip -> window [ 0 ] ;\n zip -> o_end = & zip -> o_ptr [ zip -> bytes_output ] ;\n i = ( out_bytes < ( off_t ) zip -> bytes_output ) ? ( int ) out_bytes : zip -> bytes_output ;\n if ( zip -> sys -> write ( zip -> output , zip -> o_ptr , i ) != i ) {\n return zip -> error = MSPACK_ERR_WRITE ;\n }\n if ( ( error > 0 ) && zip -> repair_mode ) return error ;\n zip -> o_ptr += i ;\n out_bytes -= i ;\n }\n if ( out_bytes ) {\n D ( ( \"bytes left to output\" ) ) return zip -> error = MSPACK_ERR_DECRUNCH ;\n }\n return MSPACK_ERR_OK ;\n }"}
{"idx": 14771, "target": 0, "func": "static int decomp_dispatch_get_bits ( tvbuff_t * message_tvb , proto_tree * udvm_tree , guint8 bit_order , guint8 * buff , guint16 * old_input_bit_order , guint16 * remaining_bits , guint16 * input_bits , guint * input_address , guint16 length , guint16 * result_code , guint msg_end , gboolean print_level_1 ) {\n guint16 input_bit_order ;\n guint16 bits_still_required = length ;\n guint16 value = 0 ;\n guint8 octet ;\n gint extra_bytes_available = msg_end - * input_address ;\n gint p_bit ;\n gint prev_p_bit = * old_input_bit_order & 0x0001 ;\n gint bits_to_use = 0 ;\n input_bit_order = buff [ 68 ] << 8 ;\n input_bit_order = input_bit_order | buff [ 69 ] ;\n * result_code = 0 ;\n p_bit = ( input_bit_order & 0x0001 ) != 0 ;\n if ( prev_p_bit != p_bit ) {\n * remaining_bits = 0 ;\n * old_input_bit_order = input_bit_order ;\n }\n if ( * remaining_bits + extra_bytes_available * 8 < length ) {\n * result_code = 11 ;\n return 0xfbad ;\n }\n while ( bits_still_required > 0 ) {\n if ( * remaining_bits == 0 ) {\n octet = tvb_get_guint8 ( message_tvb , * input_address ) ;\n if ( print_level_1 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_sigcomp_getting_value , message_tvb , * input_address , 1 , octet , \" Getting value: %u (0x%x) From Addr: %u\" , octet , octet , * input_address ) ;\n }\n * input_address = * input_address + 1 ;\n if ( p_bit != 0 ) {\n octet = reverse [ octet ] ;\n }\n * input_bits = octet ;\n * remaining_bits = 8 ;\n }\n bits_to_use = bits_still_required < * remaining_bits ? bits_still_required : * remaining_bits ;\n bits_still_required -= bits_to_use ;\n * input_bits <<= bits_to_use ;\n value = ( value << bits_to_use ) | ( ( * input_bits >> 8 ) & 0xFF ) ;\n * remaining_bits -= bits_to_use ;\n * input_bits &= 0x00FF ;\n }\n if ( ( bit_order != 0 ) && ( length <= 16 ) ) {\n guint16 lsb = reverse [ ( value >> 8 ) & 0xFF ] ;\n guint16 msb = reverse [ value & 0xFF ] ;\n value = ( ( msb << 8 ) | lsb ) >> ( 16 - length ) ;\n }\n return value ;\n }"}
{"idx": 14772, "target": 0, "func": "static void * pthread_start_func ( void * ) {\n TSThread temp_thread = nullptr ;\n temp_thread = TSThreadInit ( ) ;\n if ( ! temp_thread ) {\n SDK_RPRINT ( SDK_ThreadInit_test , \"TSThreadInit\" , \"TestCase2\" , TC_FAIL , \"can't init thread\" ) ;\n thread_init_err_count ++ ;\n }\n else {\n SDK_RPRINT ( SDK_ThreadInit_test , \"TSThreadInit\" , \"TestCase2\" , TC_PASS , \"ok\" ) ;\n }\n if ( temp_thread ) {\n TSThreadDestroy ( temp_thread ) ;\n }\n if ( thread_init_err_count > 0 ) {\n * SDK_ThreadInit_pstatus = REGRESSION_TEST_FAILED ;\n }\n else {\n * SDK_ThreadInit_pstatus = REGRESSION_TEST_PASSED ;\n }\n return nullptr ;\n }"}
{"idx": 14773, "target": 0, "func": "static int dnslabel_table_add ( struct dnslabel_table * table , const char * label , off_t pos ) {\n char * v ;\n int p ;\n if ( table -> n_labels == MAX_LABELS ) return ( - 1 ) ;\n v = strdup ( label ) ;\n if ( v == NULL ) return ( - 1 ) ;\n p = table -> n_labels ++ ;\n table -> labels [ p ] . v = v ;\n table -> labels [ p ] . pos = pos ;\n return ( 0 ) ;\n }"}
{"idx": 14774, "target": 0, "func": "static int process_header_records ( wtap * wth , int * err , gchar * * err_info , gint16 maj_vers , guint8 network ) {\n char record_type [ 2 ] ;\n char record_length [ 4 ] ;\n guint16 type , length ;\n int bytes_to_read ;\n unsigned char buffer [ 256 ] ;\n for ( ;\n ;\n ) {\n if ( ! wtap_read_bytes_or_eof ( wth -> fh , record_type , 2 , err , err_info ) ) {\n if ( * err != 0 ) return - 1 ;\n return 0 ;\n }\n type = pletoh16 ( record_type ) ;\n if ( ( type != REC_HEADER1 ) && ( type != REC_HEADER2 ) && ( type != REC_HEADER3 ) && ( type != REC_HEADER4 ) && ( type != REC_HEADER5 ) && ( type != REC_HEADER6 ) && ( type != REC_HEADER7 ) && ( ( type != REC_V2DESC ) || ( maj_vers > 2 ) ) ) {\n if ( file_seek ( wth -> fh , - 2 , SEEK_CUR , err ) == - 1 ) return - 1 ;\n return 0 ;\n }\n if ( ! wtap_read_bytes ( wth -> fh , record_length , 4 , err , err_info ) ) return - 1 ;\n length = pletoh16 ( record_length ) ;\n if ( ( network == NETWORK_SYNCHRO || network == NETWORK_ASYNC ) && type == REC_HEADER2 ) {\n bytes_to_read = MIN ( length , ( int ) sizeof buffer ) ;\n if ( ! wtap_read_bytes ( wth -> fh , buffer , bytes_to_read , err , err_info ) ) return - 1 ;\n switch ( maj_vers ) {\n case 2 : if ( process_rec_header2_v2 ( wth , buffer , length , err , err_info ) < 0 ) return - 1 ;\n break ;\n case 1 : case 4 : case 5 : if ( process_rec_header2_v145 ( wth , buffer , length , maj_vers , err , err_info ) < 0 ) return - 1 ;\n break ;\n }\n if ( length > sizeof buffer ) {\n if ( file_seek ( wth -> fh , length - sizeof buffer , SEEK_CUR , err ) == - 1 ) return - 1 ;\n }\n }\n else {\n if ( file_seek ( wth -> fh , length , SEEK_CUR , err ) == - 1 ) return - 1 ;\n }\n }\n }"}
{"idx": 14775, "target": 0, "func": "static void VGA_printf ( uint8_t * s ) {\n uint16_t * arg_ptr ;\n unsigned int format_width , i ;\n int in_format ;\n uint16_t arg , digit , nibble ;\n uint8_t c ;\n arg_ptr = ( uint16_t * ) ( ( void * ) & s ) ;\n in_format = 0 ;\n format_width = 0 ;\n while ( ( c = * s ) != '\\0' ) {\n if ( c == '%' ) {\n in_format = 1 ;\n format_width = 0 ;\n }\n else if ( in_format ) {\n if ( ( c >= '0' ) && ( c <= '9' ) ) {\n format_width = ( format_width * 10 ) + ( c - '0' ) ;\n }\n else if ( c == 'x' ) {\n arg_ptr ++ ;\n arg = * arg_ptr ;\n if ( format_width == 0 ) format_width = 4 ;\n digit = format_width - 1 ;\n for ( i = 0 ;\n i < format_width ;\n i ++ ) {\n nibble = ( arg >> ( 4 * digit ) ) & 0x000f ;\n if ( nibble <= 9 ) PPC_io_writeb ( PPC_IO_BASE + 0x500 , nibble + '0' ) ;\n else PPC_io_writeb ( PPC_IO_BASE + 0x500 , nibble + 'A' ) ;\n digit -- ;\n }\n in_format = 0 ;\n }\n }\n else {\n PPC_io_writeb ( PPC_IO_BASE + 0x500 , c ) ;\n }\n s ++ ;\n }\n }"}
{"idx": 14776, "target": 1, "func": "static void T_UConverter_fromUnicode_UTF32_BE ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n const UChar * mySource = args -> source ;\n unsigned char * myTarget ;\n const UChar * sourceLimit = args -> sourceLimit ;\n const unsigned char * targetLimit = ( unsigned char * ) args -> targetLimit ;\n UChar32 ch , ch2 ;\n unsigned int indexToWrite ;\n unsigned char temp [ sizeof ( uint32_t ) ] ;\n if ( mySource >= sourceLimit ) {\n return ;\n }\n if ( args -> converter -> fromUnicodeStatus == UCNV_NEED_TO_WRITE_BOM ) {\n static const char bom [ ] = {\n 0 , 0 , ( char ) 0xfe , ( char ) 0xff }\n ;\n ucnv_fromUWriteBytes ( args -> converter , bom , 4 , & args -> target , args -> targetLimit , & args -> offsets , - 1 , err ) ;\n args -> converter -> fromUnicodeStatus = 0 ;\n }\n myTarget = ( unsigned char * ) args -> target ;\n temp [ 0 ] = 0 ;\n if ( args -> converter -> fromUChar32 ) {\n ch = args -> converter -> fromUChar32 ;\n args -> converter -> fromUChar32 = 0 ;\n goto lowsurogate ;\n }\n while ( mySource < sourceLimit && myTarget < targetLimit ) {\n ch = * ( mySource ++ ) ;\n if ( U_IS_SURROGATE ( ch ) ) {\n if ( U_IS_LEAD ( ch ) ) {\n lowsurogate : if ( mySource < sourceLimit ) {\n ch2 = * mySource ;\n if ( U_IS_TRAIL ( ch2 ) ) {\n ch = ( ( ch - SURROGATE_HIGH_START ) << HALF_SHIFT ) + ch2 + SURROGATE_LOW_BASE ;\n mySource ++ ;\n }\n else {\n args -> converter -> fromUChar32 = ch ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n }\n else {\n args -> converter -> fromUChar32 = ch ;\n if ( args -> flush ) {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n break ;\n }\n }\n else {\n args -> converter -> fromUChar32 = ch ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n }\n temp [ 1 ] = ( uint8_t ) ( ch >> 16 & 0x1F ) ;\n temp [ 2 ] = ( uint8_t ) ( ch >> 8 ) ;\n temp [ 3 ] = ( uint8_t ) ( ch ) ;\n for ( indexToWrite = 0 ;\n indexToWrite <= sizeof ( uint32_t ) - 1 ;\n indexToWrite ++ ) {\n if ( myTarget < targetLimit ) {\n * ( myTarget ++ ) = temp [ indexToWrite ] ;\n }\n else {\n args -> converter -> charErrorBuffer [ args -> converter -> charErrorBufferLength ++ ] = temp [ indexToWrite ] ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n }\n if ( mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS ( * err ) ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n args -> target = ( char * ) myTarget ;\n args -> source = mySource ;\n }"}
{"idx": 14777, "target": 1, "func": "static int register_interfaces ( extcap_parameters * extcap_conf , const char * adb_server_ip , unsigned short * adb_server_tcp_port ) {\n static char packet [ PACKET_LENGTH ] ;\n static char helpful_packet [ PACKET_LENGTH ] ;\n char * response ;\n char * device_list ;\n gssize data_length ;\n gssize device_length ;\n socket_handle_t sock ;\n const char * adb_transport_serial_templace = \"%04x\" \"host:transport:%s\" ;\n const char * adb_check_port_templace = \"%04x\" \"shell:cat /proc/%set/tcp\" ;\n const char * adb_devices = \"000E\" \"host:devices-l\" ;\n const char * adb_api_level = \"0022\" \"shell:getprop ro.build.version.sdk\" ;\n const char * adb_hcidump_version = \"0017\" \"shell:hcidump --version\" ;\n const char * adb_ps_droid_bluetooth = \"0018\" \"shell:ps droid.bluetooth\" ;\n const char * adb_ps_bluetooth_app = \"001E\" \"shell:ps com.android.bluetooth\" ;\n const char * adb_tcpdump_help = \"0010\" \"shell:tcpdump -h\" ;\n char serial_number [ SERIAL_NUMBER_LENGTH_MAX ] ;\n size_t serial_number_length ;\n char model_name [ MODEL_NAME_LENGTH_MAX ] ;\n int result ;\n char * pos ;\n char * i_pos ;\n char * model_pos ;\n char * device_pos ;\n char * prev_pos ;\n int api_level ;\n int disable_interface ;\n sock = adb_connect ( adb_server_ip , adb_server_tcp_port ) ;\n if ( sock == INVALID_SOCKET ) return EXIT_CODE_INVALID_SOCKET_INTERFACES_LIST ;\n device_list = adb_send_and_receive ( sock , adb_devices , packet , sizeof ( packet ) , & device_length ) ;\n closesocket ( sock ) ;\n if ( ! device_list ) {\n errmsg_print ( \"ERROR: Cannot get list of interfaces from devices\" ) ;\n return EXIT_CODE_CANNOT_GET_INTERFACES_LIST ;\n }\n device_list [ device_length ] = '\\0' ;\n pos = ( char * ) device_list ;\n while ( pos < ( char * ) ( device_list + device_length ) ) {\n prev_pos = pos ;\n pos = strchr ( pos , ' ' ) ;\n i_pos = pos ;\n result = ( int ) ( pos - prev_pos ) ;\n pos = strchr ( pos , '\\n' ) + 1 ;\n if ( result >= ( int ) sizeof ( serial_number ) ) {\n verbose_print ( \"WARNING: Serial number too long, ignore device\\n\" ) ;\n continue ;\n }\n memcpy ( serial_number , prev_pos , result ) ;\n serial_number [ result ] = '\\0' ;\n serial_number_length = strlen ( serial_number ) ;\n model_name [ 0 ] = '\\0' ;\n model_pos = g_strstr_len ( i_pos , pos - i_pos , \"model:\" ) ;\n if ( model_pos ) {\n device_pos = g_strstr_len ( i_pos , pos - i_pos , \"device:\" ) ;\n if ( device_pos && device_pos - model_pos - 6 - 1 < MODEL_NAME_LENGTH_MAX ) {\n memcpy ( model_name , model_pos + 6 , device_pos - model_pos - 6 - 1 ) ;\n model_name [ device_pos - model_pos - 6 - 1 ] = '\\0' ;\n }\n }\n if ( model_name [ 0 ] == '\\0' ) strcpy ( model_name , \"unknown\" ) ;\n verbose_print ( \"VERBOSE: Processing device: \\\"%s\\\" <%s>\\n\" , serial_number , model_name ) ;\n sock = adb_connect ( adb_server_ip , adb_server_tcp_port ) ;\n if ( sock == INVALID_SOCKET ) continue ;\n result = g_snprintf ( ( char * ) helpful_packet , PACKET_LENGTH , adb_transport_serial_templace , 15 + serial_number_length , serial_number ) ;\n if ( result <= 0 || result > PACKET_LENGTH ) {\n errmsg_print ( \"ERROR: Error while completing adb packet for transport\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_BAD_SIZE_OF_ASSEMBLED_ADB_PACKET_1 ;\n }\n result = adb_send ( sock , helpful_packet ) ;\n if ( result ) {\n verbose_print ( \"WARNING: Error while setting adb transport for <%s>\\n\" , helpful_packet ) ;\n closesocket ( sock ) ;\n }\n else {\n response = adb_send_and_read ( sock , adb_tcpdump_help , helpful_packet , sizeof ( helpful_packet ) , & data_length ) ;\n closesocket ( sock ) ;\n if ( response ) {\n response [ data_length ] = '\\0' ;\n if ( strstr ( response , \"tcpdump version\" ) ) {\n new_interface ( extcap_conf , INTERFACE_ANDROID_WIFI_TCPDUMP , model_name , serial_number , \"Android WiFi\" ) ;\n }\n }\n else {\n verbose_print ( \"WARNING: Error on socket: <%s>\\n\" , helpful_packet ) ;\n }\n }\n sock = adb_connect ( adb_server_ip , adb_server_tcp_port ) ;\n if ( sock == INVALID_SOCKET ) continue ;\n result = g_snprintf ( ( char * ) helpful_packet , PACKET_LENGTH , adb_transport_serial_templace , 15 + serial_number_length , serial_number ) ;\n if ( result <= 0 || result > PACKET_LENGTH ) {\n errmsg_print ( \"ERROR: Error while completing adb packet\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_BAD_SIZE_OF_ASSEMBLED_ADB_PACKET_2 ;\n }\n result = adb_send ( sock , helpful_packet ) ;\n if ( result ) {\n verbose_print ( \"WARNING: Error while setting adb transport for <%s>\\n\" , helpful_packet ) ;\n closesocket ( sock ) ;\n continue ;\n }\n response = adb_send_and_read ( sock , adb_api_level , helpful_packet , sizeof ( helpful_packet ) , & data_length ) ;\n closesocket ( sock ) ;\n if ( ! response ) {\n verbose_print ( \"WARNING: Error on socket: <%s>\\n\" , helpful_packet ) ;\n continue ;\n }\n response [ data_length ] = '\\0' ;\n api_level = ( int ) g_ascii_strtoll ( response , NULL , 10 ) ;\n verbose_print ( \"VERBOSE: Android API Level for %s is %i\\n\" , serial_number , api_level ) ;\n if ( api_level < 21 ) {\n new_interface ( extcap_conf , INTERFACE_ANDROID_LOGCAT_MAIN , model_name , serial_number , \"Android Logcat Main\" ) ;\n new_interface ( extcap_conf , INTERFACE_ANDROID_LOGCAT_SYSTEM , model_name , serial_number , \"Android Logcat System\" ) ;\n new_interface ( extcap_conf , INTERFACE_ANDROID_LOGCAT_RADIO , model_name , serial_number , \"Android Logcat Radio\" ) ;\n new_interface ( extcap_conf , INTERFACE_ANDROID_LOGCAT_EVENTS , model_name , serial_number , \"Android Logcat Events\" ) ;\n }\n else {\n new_interface ( extcap_conf , INTERFACE_ANDROID_LOGCAT_TEXT_MAIN , model_name , serial_number , \"Android Logcat Main\" ) ;\n new_interface ( extcap_conf , INTERFACE_ANDROID_LOGCAT_TEXT_SYSTEM , model_name , serial_number , \"Android Logcat System\" ) ;\n new_interface ( extcap_conf , INTERFACE_ANDROID_LOGCAT_TEXT_RADIO , model_name , serial_number , \"Android Logcat Radio\" ) ;\n new_interface ( extcap_conf , INTERFACE_ANDROID_LOGCAT_TEXT_EVENTS , model_name , serial_number , \"Android Logcat Events\" ) ;\n new_interface ( extcap_conf , INTERFACE_ANDROID_LOGCAT_TEXT_CRASH , model_name , serial_number , \"Android Logcat Crash\" ) ;\n }\n if ( api_level >= 5 && api_level < 17 ) {\n disable_interface = 0 ;\n sock = adb_connect ( adb_server_ip , adb_server_tcp_port ) ;\n if ( sock == INVALID_SOCKET ) continue ;\n result = g_snprintf ( ( char * ) helpful_packet , PACKET_LENGTH , adb_transport_serial_templace , 15 + serial_number_length , serial_number ) ;\n if ( result <= 0 || result > PACKET_LENGTH ) {\n errmsg_print ( \"ERROR: Error while completing adb packet\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_BAD_SIZE_OF_ASSEMBLED_ADB_PACKET_3 ;\n }\n result = adb_send ( sock , helpful_packet ) ;\n if ( result ) {\n errmsg_print ( \"ERROR: Error while setting adb transport for <%s>\" , helpful_packet ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n response = adb_send_and_read ( sock , adb_hcidump_version , helpful_packet , sizeof ( helpful_packet ) , & data_length ) ;\n closesocket ( sock ) ;\n if ( ! response || data_length < 1 ) {\n verbose_print ( \"WARNING: Error while getting hcidump version by <%s> (%p len=%\" G_GSSIZE_FORMAT \")\\n\" , adb_hcidump_version , ( void * ) response , data_length ) ;\n verbose_print ( \"VERBOSE: Android hcidump version for %s is unknown\\n\" , serial_number ) ;\n disable_interface = 1 ;\n }\n else {\n response [ data_length ] = '\\0' ;\n if ( g_ascii_strtoull ( response , NULL , 10 ) == 0 ) {\n verbose_print ( \"VERBOSE: Android hcidump version for %s is unknown\\n\" , serial_number ) ;\n disable_interface = 1 ;\n }\n else {\n verbose_print ( \"VERBOSE: Android hcidump version for %s is %s\\n\" , serial_number , response ) ;\n }\n }\n if ( ! disable_interface ) {\n new_interface ( extcap_conf , INTERFACE_ANDROID_BLUETOOTH_HCIDUMP , model_name , serial_number , \"Android Bluetooth Hcidump\" ) ;\n }\n }\n if ( api_level >= 17 && api_level < 21 ) {\n disable_interface = 0 ;\n sock = adb_connect ( adb_server_ip , adb_server_tcp_port ) ;\n if ( sock == INVALID_SOCKET ) continue ;\n result = g_snprintf ( ( char * ) helpful_packet , PACKET_LENGTH , adb_transport_serial_templace , 15 + serial_number_length , serial_number ) ;\n if ( result <= 0 || result > PACKET_LENGTH ) {\n errmsg_print ( \"ERROR: Error while completing adb packet\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_BAD_SIZE_OF_ASSEMBLED_ADB_PACKET_4 ;\n }\n result = adb_send ( sock , helpful_packet ) ;\n if ( result ) {\n errmsg_print ( \"ERROR: Error while setting adb transport for <%s>\" , helpful_packet ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n response = adb_send_and_read ( sock , adb_ps_droid_bluetooth , helpful_packet , sizeof ( helpful_packet ) , & data_length ) ;\n closesocket ( sock ) ;\n if ( ! response || data_length < 1 ) {\n verbose_print ( \"WARNING: Error while getting Bluetooth application process id by <%s> \" \"(%p len=%\" G_GSSIZE_FORMAT \")\\n\" , adb_hcidump_version , ( void * ) response , data_length ) ;\n verbose_print ( \"VERBOSE: Android Bluetooth application PID for %s is unknown\\n\" , serial_number ) ;\n disable_interface = 1 ;\n }\n else {\n char * data_str ;\n char pid [ 16 ] ;\n memset ( pid , 0 , sizeof ( pid ) ) ;\n response [ data_length ] = '\\0' ;\n data_str = strchr ( response , '\\n' ) ;\n if ( data_str && sscanf ( data_str , \"%*s %s\" , pid ) == 1 ) {\n verbose_print ( \"VERBOSE: Android Bluetooth application PID for %s is %s\\n\" , serial_number , pid ) ;\n sock = adb_connect ( adb_server_ip , adb_server_tcp_port ) ;\n if ( sock == INVALID_SOCKET ) return EXIT_CODE_INVALID_SOCKET_1 ;\n result = g_snprintf ( ( char * ) helpful_packet , PACKET_LENGTH , adb_transport_serial_templace , 15 + serial_number_length , serial_number ) ;\n if ( result <= 0 || result > PACKET_LENGTH ) {\n errmsg_print ( \"ERROR: Error while completing adb packet\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_BAD_SIZE_OF_ASSEMBLED_ADB_PACKET_5 ;\n }\n result = adb_send ( sock , helpful_packet ) ;\n if ( result ) {\n errmsg_print ( \"ERROR: Error while setting adb transport for <%s>\" , helpful_packet ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n result = g_snprintf ( ( char * ) helpful_packet , PACKET_LENGTH , adb_check_port_templace , strlen ( adb_check_port_templace ) - 6 + strlen ( pid ) , pid ) ;\n if ( result <= 0 || result > PACKET_LENGTH ) {\n errmsg_print ( \"ERROR: Error while completing adb packet\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_BAD_SIZE_OF_ASSEMBLED_ADB_PACKET_6 ;\n }\n response = adb_send_and_read ( sock , helpful_packet , helpful_packet , sizeof ( helpful_packet ) , & data_length ) ;\n closesocket ( sock ) ;\n if ( ! response ) {\n disable_interface = 1 ;\n }\n else {\n response [ data_length ] = '\\0' ;\n data_str = strchr ( response , '\\n' ) ;\n if ( data_str && sscanf ( data_str , \"%*s %s\" , pid ) == 1 && strcmp ( pid + 9 , \"10EA\" ) == 0 ) {\n verbose_print ( \"VERBOSE: Bluedroid External Parser Port for %s is %s\\n\" , serial_number , pid + 9 ) ;\n }\n else {\n disable_interface = 1 ;\n verbose_print ( \"VERBOSE: Bluedroid External Parser Port for %s is unknown\\n\" , serial_number ) ;\n }\n }\n }\n else {\n disable_interface = 1 ;\n verbose_print ( \"VERBOSE: Android Bluetooth application PID for %s is unknown\\n\" , serial_number ) ;\n }\n }\n if ( ! disable_interface ) {\n new_interface ( extcap_conf , INTERFACE_ANDROID_BLUETOOTH_EXTERNAL_PARSER , model_name , serial_number , \"Android Bluetooth External Parser\" ) ;\n }\n }\n if ( api_level >= 21 ) {\n disable_interface = 0 ;\n sock = adb_connect ( adb_server_ip , adb_server_tcp_port ) ;\n if ( sock == INVALID_SOCKET ) continue ;\n result = g_snprintf ( ( char * ) helpful_packet , PACKET_LENGTH , adb_transport_serial_templace , 15 + serial_number_length , serial_number ) ;\n if ( result <= 0 || result > PACKET_LENGTH ) {\n errmsg_print ( \"ERROR: Error while completing adb packet\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_BAD_SIZE_OF_ASSEMBLED_ADB_PACKET_7 ;\n }\n result = adb_send ( sock , helpful_packet ) ;\n if ( result ) {\n errmsg_print ( \"ERROR: Error while setting adb transport for <%s>\" , helpful_packet ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n if ( api_level >= 23 ) {\n response = adb_send_and_read ( sock , adb_ps_bluetooth_app , helpful_packet , sizeof ( helpful_packet ) , & data_length ) ;\n }\n else response = adb_send_and_read ( sock , adb_ps_droid_bluetooth , helpful_packet , sizeof ( helpful_packet ) , & data_length ) ;\n closesocket ( sock ) ;\n if ( ! response || data_length < 1 ) {\n verbose_print ( \"WARNING: Error while getting Bluetooth application process id by <%s> \" \"(%p len=%\" G_GSSIZE_FORMAT \")\\n\" , adb_hcidump_version , ( void * ) response , data_length ) ;\n verbose_print ( \"VERBOSE: Android Bluetooth application PID for %s is unknown\\n\" , serial_number ) ;\n disable_interface = 1 ;\n }\n else {\n char * data_str ;\n char pid [ 16 ] ;\n memset ( pid , 0 , sizeof ( pid ) ) ;\n response [ data_length ] = '\\0' ;\n data_str = strchr ( response , '\\n' ) ;\n if ( data_str && sscanf ( data_str , \"%*s %s\" , pid ) == 1 ) {\n verbose_print ( \"VERBOSE: Android Bluetooth application PID for %s is %s\\n\" , serial_number , pid ) ;\n sock = adb_connect ( adb_server_ip , adb_server_tcp_port ) ;\n if ( sock == INVALID_SOCKET ) return EXIT_CODE_INVALID_SOCKET_2 ;\n result = g_snprintf ( ( char * ) helpful_packet , PACKET_LENGTH , adb_transport_serial_templace , 15 + serial_number_length , serial_number ) ;\n if ( result <= 0 || result > PACKET_LENGTH ) {\n errmsg_print ( \"ERROR: Error while completing adb packet\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_BAD_SIZE_OF_ASSEMBLED_ADB_PACKET_8 ;\n }\n result = adb_send ( sock , helpful_packet ) ;\n if ( result ) {\n errmsg_print ( \"ERROR: Error while setting adb transport for <%s>\" , helpful_packet ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n result = g_snprintf ( ( char * ) helpful_packet , PACKET_LENGTH , adb_check_port_templace , strlen ( adb_check_port_templace ) - 6 + strlen ( pid ) , pid ) ;\n if ( result <= 0 || result > PACKET_LENGTH ) {\n errmsg_print ( \"ERROR: Error while completing adb packet\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_BAD_SIZE_OF_ASSEMBLED_ADB_PACKET_9 ;\n }\n response = adb_send_and_read ( sock , helpful_packet , helpful_packet , sizeof ( helpful_packet ) , & data_length ) ;\n closesocket ( sock ) ;\n if ( ! response ) {\n disable_interface = 1 ;\n }\n else {\n response [ data_length ] = '\\0' ;\n data_str = strchr ( response , '\\n' ) ;\n if ( data_str && sscanf ( data_str , \"%*s %s\" , pid ) == 1 && strcmp ( pid + 9 , \"22A8\" ) == 0 ) {\n verbose_print ( \"VERBOSE: Btsnoop Net Port for %s is %s\\n\" , serial_number , pid + 9 ) ;\n }\n else {\n disable_interface = 1 ;\n verbose_print ( \"VERBOSE: Btsnoop Net Port for %s is unknown\\n\" , serial_number ) ;\n }\n }\n }\n else {\n disable_interface = 1 ;\n verbose_print ( \"VERBOSE: Android Bluetooth application PID for %s is unknown\\n\" , serial_number ) ;\n }\n }\n if ( ! disable_interface ) {\n new_interface ( extcap_conf , INTERFACE_ANDROID_BLUETOOTH_BTSNOOP_NET , model_name , serial_number , \"Android Bluetooth Btsnoop Net\" ) ;\n }\n }\n }\n return EXIT_CODE_SUCCESS ;\n }"}
{"idx": 14778, "target": 0, "func": "size_t compile_tree ( struct filter_op * * fop ) {\n int i = 1 ;\n struct filter_op * array = NULL ;\n struct unfold_elm * ue ;\n if ( tree_root == NULL ) return 0 ;\n fprintf ( stdout , \" Unfolding the meta-tree \" ) ;\n fflush ( stdout ) ;\n unfold_blk ( & tree_root ) ;\n fprintf ( stdout , \" done.\\n\\n\" ) ;\n labels_to_offsets ( ) ;\n TAILQ_FOREACH ( ue , & unfolded_tree , next ) {\n if ( ue -> label == 0 ) {\n SAFE_REALLOC ( array , i * sizeof ( struct filter_op ) ) ;\n memcpy ( & array [ i - 1 ] , & ue -> fop , sizeof ( struct filter_op ) ) ;\n i ++ ;\n }\n }\n SAFE_REALLOC ( array , i * sizeof ( struct filter_op ) ) ;\n array [ i - 1 ] . opcode = FOP_EXIT ;\n * fop = array ;\n return ( i ) ;\n }"}
{"idx": 14779, "target": 0, "func": "void SFSplinesFromLayers ( SplineFont * sf , int tostroke ) {\n int i , layer ;\n int flags = - 1 ;\n Layer * new ;\n CharViewBase * cv ;\n for ( i = 0 ;\n i < sf -> glyphcnt ;\n ++ i ) if ( sf -> glyphs [ i ] != NULL ) {\n SplineChar * sc = sf -> glyphs [ i ] ;\n SplineSet * splines = SplinesFromLayers ( sc , & flags , tostroke ) ;\n RefChar * head = NULL , * last = NULL ;\n for ( layer = ly_fore ;\n layer < sc -> layer_cnt ;\n ++ layer ) {\n if ( head == NULL ) head = last = sc -> layers [ layer ] . refs ;\n else last -> next = sc -> layers [ layer ] . refs ;\n if ( last != NULL ) while ( last -> next != NULL ) last = last -> next ;\n sc -> layers [ layer ] . refs = NULL ;\n }\n new = calloc ( 2 , sizeof ( Layer ) ) ;\n new [ ly_back ] = sc -> layers [ ly_back ] ;\n memset ( & sc -> layers [ ly_back ] , 0 , sizeof ( Layer ) ) ;\n LayerDefault ( & new [ ly_fore ] ) ;\n new [ ly_fore ] . splines = splines ;\n new [ ly_fore ] . refs = head ;\n for ( layer = ly_fore ;\n layer < sc -> layer_cnt ;\n ++ layer ) {\n SplinePointListsMDFree ( sc , sc -> layers [ layer ] . splines ) ;\n RefCharsFree ( sc -> layers [ layer ] . refs ) ;\n ImageListsFree ( sc -> layers [ layer ] . images ) ;\n }\n free ( sc -> layers ) ;\n sc -> layers = new ;\n sc -> layer_cnt = 2 ;\n for ( cv = sc -> views ;\n cv != NULL ;\n cv = cv -> next ) {\n cv -> layerheads [ dm_back ] = & sc -> layers [ ly_back ] ;\n cv -> layerheads [ dm_fore ] = & sc -> layers [ ly_fore ] ;\n }\n }\n SFReinstanciateRefs ( sf ) ;\n }"}
{"idx": 14780, "target": 0, "func": "int xsltCheckRead ( xsltSecurityPrefsPtr sec , xsltTransformContextPtr ctxt , const xmlChar * URL ) {\n int ret ;\n xmlURIPtr uri ;\n xsltSecurityCheck check ;\n uri = xmlParseURI ( ( const char * ) URL ) ;\n if ( uri == NULL ) {\n xsltTransformError ( ctxt , NULL , NULL , \"xsltCheckRead: URL parsing failed for %s\\n\" , URL ) ;\n return ( - 1 ) ;\n }\n if ( ( uri -> scheme == NULL ) || ( xmlStrEqual ( BAD_CAST uri -> scheme , BAD_CAST \"file\" ) ) ) {\n check = xsltGetSecurityPrefs ( sec , XSLT_SECPREF_READ_FILE ) ;\n if ( check != NULL ) {\n ret = check ( sec , ctxt , uri -> path ) ;\n if ( ret == 0 ) {\n xsltTransformError ( ctxt , NULL , NULL , \"Local file read for %s refused\\n\" , URL ) ;\n xmlFreeURI ( uri ) ;\n return ( 0 ) ;\n }\n }\n }\n else {\n check = xsltGetSecurityPrefs ( sec , XSLT_SECPREF_READ_NETWORK ) ;\n if ( check != NULL ) {\n ret = check ( sec , ctxt , ( const char * ) URL ) ;\n if ( ret == 0 ) {\n xsltTransformError ( ctxt , NULL , NULL , \"Network file read for %s refused\\n\" , URL ) ;\n xmlFreeURI ( uri ) ;\n return ( 0 ) ;\n }\n }\n }\n xmlFreeURI ( uri ) ;\n return ( 1 ) ;\n }"}
{"idx": 14781, "target": 0, "func": "static void pxa2xx_fir_event ( void * opaque , int event ) {\n }"}
{"idx": 14782, "target": 0, "func": "static inline uint32_t NVRAM_get_lword ( m48t59_t * nvram , uint32_t addr ) {\n uint32_t tmp ;\n m48t59_set_addr ( nvram , addr ) ;\n tmp = m48t59_read ( nvram ) << 24 ;\n m48t59_set_addr ( nvram , addr + 1 ) ;\n tmp |= m48t59_read ( nvram ) << 16 ;\n m48t59_set_addr ( nvram , addr + 2 ) ;\n tmp |= m48t59_read ( nvram ) << 8 ;\n m48t59_set_addr ( nvram , addr + 3 ) ;\n tmp |= m48t59_read ( nvram ) ;\n return tmp ;\n }"}
{"idx": 14783, "target": 0, "func": "static void report_delete_progress ( CommonJob * job , SourceInfo * source_info , TransferInfo * transfer_info ) {\n int files_left ;\n double elapsed , transfer_rate ;\n int remaining_time ;\n gint64 now ;\n char * details ;\n char * status ;\n DeleteJob * delete_job ;\n delete_job = ( DeleteJob * ) job ;\n now = g_get_monotonic_time ( ) ;\n files_left = source_info -> num_files - transfer_info -> num_files ;\n if ( files_left < 0 ) {\n files_left = 0 ;\n }\n if ( transfer_info -> last_report_time != 0 && ABS ( ( gint64 ) ( transfer_info -> last_report_time - now ) ) < 100 * NSEC_PER_MICROSEC && files_left > 0 ) {\n return ;\n }\n transfer_info -> last_report_time = now ;\n if ( source_info -> num_files == 1 ) {\n if ( files_left == 0 ) {\n status = _ ( \"Deleted \u201c%B\u201d\" ) ;\n }\n else {\n status = _ ( \"Deleting \u201c%B\u201d\" ) ;\n }\n nautilus_progress_info_take_status ( job -> progress , f ( status , ( GFile * ) delete_job -> files -> data ) ) ;\n }\n else {\n if ( files_left == 0 ) {\n status = ngettext ( \"Deleted %'d file\" , \"Deleted %'d files\" , source_info -> num_files ) ;\n }\n else {\n status = ngettext ( \"Deleting %'d file\" , \"Deleting %'d files\" , source_info -> num_files ) ;\n }\n nautilus_progress_info_take_status ( job -> progress , f ( status , source_info -> num_files ) ) ;\n }\n elapsed = g_timer_elapsed ( job -> time , NULL ) ;\n transfer_rate = 0 ;\n remaining_time = INT_MAX ;\n if ( elapsed > 0 ) {\n transfer_rate = transfer_info -> num_files / elapsed ;\n if ( transfer_rate > 0 ) {\n remaining_time = ( source_info -> num_files - transfer_info -> num_files ) / transfer_rate ;\n }\n }\n if ( elapsed < SECONDS_NEEDED_FOR_RELIABLE_TRANSFER_RATE ) {\n if ( files_left > 0 ) {\n details = f ( _ ( \"%'d / %'d\" ) , transfer_info -> num_files + 1 , source_info -> num_files ) ;\n }\n else {\n details = f ( _ ( \"%'d / %'d\" ) , transfer_info -> num_files , source_info -> num_files ) ;\n }\n }\n else {\n if ( files_left > 0 ) {\n gchar * time_left_message ;\n gchar * files_per_second_message ;\n gchar * concat_detail ;\n time_left_message = ngettext ( \"%'d / %'d \\xE2\\x80\\x94 %T left\" , \"%'d / %'d \\xE2\\x80\\x94 %T left\" , seconds_count_format_time_units ( remaining_time ) ) ;\n transfer_rate += 0.5 ;\n files_per_second_message = ngettext ( \"(%d file/sec)\" , \"(%d files/sec)\" , ( int ) transfer_rate ) ;\n concat_detail = g_strconcat ( time_left_message , \" \" , files_per_second_message , NULL ) ;\n details = f ( concat_detail , transfer_info -> num_files + 1 , source_info -> num_files , remaining_time , ( int ) transfer_rate ) ;\n g_free ( concat_detail ) ;\n }\n else {\n details = f ( _ ( \"%'d / %'d\" ) , transfer_info -> num_files , source_info -> num_files ) ;\n }\n }\n nautilus_progress_info_take_details ( job -> progress , details ) ;\n if ( elapsed > SECONDS_NEEDED_FOR_APROXIMATE_TRANSFER_RATE ) {\n nautilus_progress_info_set_remaining_time ( job -> progress , remaining_time ) ;\n nautilus_progress_info_set_elapsed_time ( job -> progress , elapsed ) ;\n }\n if ( source_info -> num_files != 0 ) {\n nautilus_progress_info_set_progress ( job -> progress , transfer_info -> num_files , source_info -> num_files ) ;\n }\n }"}
{"idx": 14784, "target": 0, "func": "const gx_device * gs_getdefaultlibdevice ( gs_memory_t * mem ) {\n const gx_device * const * list ;\n int count = gs_lib_device_list ( & list , NULL ) ;\n const char * name , * end , * fin ;\n int i ;\n if ( mem && mem -> gs_lib_ctx && mem -> gs_lib_ctx -> default_device_list ) {\n name = mem -> gs_lib_ctx -> default_device_list ;\n fin = name + strlen ( name ) ;\n }\n else {\n name = gs_dev_defaults ;\n fin = name + strlen ( name ) ;\n }\n while ( name < fin ) {\n while ( ( name < fin ) && ( * name == ' ' || * name == '\\t' ) ) name ++ ;\n end = name ;\n while ( ( end < fin ) && ( * end != ' ' ) && ( * end != '\\t' ) ) end ++ ;\n for ( i = 0 ;\n i < count ;\n i ++ ) if ( ( end - name ) == strlen ( list [ i ] -> dname ) ) if ( ! memcmp ( name , list [ i ] -> dname , end - name ) ) return gs_getdevice ( i ) ;\n name = end ;\n }\n return gs_getdevice ( 0 ) ;\n }"}
{"idx": 14785, "target": 0, "func": "static int dissect_h245_DataType ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 1008 \"../../asn1/h245/h245.cnf\" gint choice_index ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_DataType , DataType_choice , & choice_index ) ;\n if ( upcoming_channel ) {\n if ( choice_index == 2 ) {\n upcoming_channel -> is_video = TRUE ;\n }\n else {\n upcoming_channel -> is_video = FALSE ;\n }\n }\n return offset ;\n }"}
{"idx": 14786, "target": 0, "func": "static void http_chunked_errorcb ( struct bufferevent * bev , short what , void * arg ) {\n if ( ! test_ok ) goto out ;\n test_ok = - 1 ;\n if ( ( what & EVBUFFER_EOF ) != 0 ) {\n struct evhttp_request * req = evhttp_request_new ( NULL , NULL ) ;\n const char * header ;\n enum message_read_status done ;\n req -> kind = EVHTTP_RESPONSE ;\n done = evhttp_parse_firstline ( req , EVBUFFER_INPUT ( bev ) ) ;\n if ( done != ALL_DATA_READ ) goto out ;\n done = evhttp_parse_headers ( req , EVBUFFER_INPUT ( bev ) ) ;\n if ( done != ALL_DATA_READ ) goto out ;\n header = evhttp_find_header ( req -> input_headers , \"Transfer-Encoding\" ) ;\n if ( header == NULL || strcmp ( header , \"chunked\" ) ) goto out ;\n header = evhttp_find_header ( req -> input_headers , \"Connection\" ) ;\n if ( header == NULL || strcmp ( header , \"close\" ) ) goto out ;\n header = evbuffer_readline ( EVBUFFER_INPUT ( bev ) ) ;\n if ( header == NULL ) goto out ;\n if ( strcmp ( header , \"d\" ) ) goto out ;\n free ( ( char * ) header ) ;\n if ( strncmp ( ( char * ) EVBUFFER_DATA ( EVBUFFER_INPUT ( bev ) ) , \"This is funny\" , 13 ) ) goto out ;\n evbuffer_drain ( EVBUFFER_INPUT ( bev ) , 13 + 2 ) ;\n header = evbuffer_readline ( EVBUFFER_INPUT ( bev ) ) ;\n if ( header == NULL ) goto out ;\n if ( strcmp ( header , \"12\" ) ) goto out ;\n free ( ( char * ) header ) ;\n if ( strncmp ( ( char * ) EVBUFFER_DATA ( EVBUFFER_INPUT ( bev ) ) , \"but not hilarious.\" , 18 ) ) goto out ;\n evbuffer_drain ( EVBUFFER_INPUT ( bev ) , 18 + 2 ) ;\n header = evbuffer_readline ( EVBUFFER_INPUT ( bev ) ) ;\n if ( header == NULL ) goto out ;\n if ( strcmp ( header , \"8\" ) ) goto out ;\n free ( ( char * ) header ) ;\n if ( strncmp ( ( char * ) EVBUFFER_DATA ( EVBUFFER_INPUT ( bev ) ) , \"bwv 1052.\" , 8 ) ) goto out ;\n evbuffer_drain ( EVBUFFER_INPUT ( bev ) , 8 + 2 ) ;\n header = evbuffer_readline ( EVBUFFER_INPUT ( bev ) ) ;\n if ( header == NULL ) goto out ;\n if ( strcmp ( header , \"0\" ) ) goto out ;\n free ( ( char * ) header ) ;\n test_ok = 2 ;\n }\n out : event_loopexit ( NULL ) ;\n }"}
{"idx": 14787, "target": 0, "func": "static void dumpcffcidset ( struct alltabs * at ) {\n int gid , start ;\n putc ( 2 , at -> charset ) ;\n start = - 1 ;\n for ( gid = 1 ;\n gid < at -> gi . gcnt ;\n ++ gid ) {\n if ( start == - 1 ) start = gid ;\n else if ( at -> gi . bygid [ gid ] - at -> gi . bygid [ start ] != gid - start ) {\n putshort ( at -> charset , at -> gi . bygid [ start ] ) ;\n putshort ( at -> charset , at -> gi . bygid [ gid - 1 ] - at -> gi . bygid [ start ] ) ;\n start = gid ;\n }\n }\n if ( start != - 1 ) {\n putshort ( at -> charset , at -> gi . bygid [ start ] ) ;\n putshort ( at -> charset , at -> gi . bygid [ gid - 1 ] - at -> gi . bygid [ start ] ) ;\n }\n }"}
{"idx": 14788, "target": 1, "func": "static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 14789, "target": 0, "func": "static int h261_decode_picture_header ( H261Context * h ) {\n MpegEncContext * const s = & h -> s ;\n int format , i ;\n uint32_t startcode = 0 ;\n for ( i = get_bits_left ( & s -> gb ) ;\n i > 24 ;\n i -= 1 ) {\n startcode = ( ( startcode << 1 ) | get_bits ( & s -> gb , 1 ) ) & 0x000FFFFF ;\n if ( startcode == 0x10 ) break ;\n }\n if ( startcode != 0x10 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Bad picture start code\\n\" ) ;\n return - 1 ;\n }\n i = get_bits ( & s -> gb , 5 ) ;\n if ( i < ( s -> picture_number & 31 ) ) i += 32 ;\n s -> picture_number = ( s -> picture_number & ~ 31 ) + i ;\n s -> avctx -> time_base = ( AVRational ) {\n 1001 , 30000 }\n ;\n s -> current_picture . f . pts = s -> picture_number ;\n skip_bits1 ( & s -> gb ) ;\n skip_bits1 ( & s -> gb ) ;\n skip_bits1 ( & s -> gb ) ;\n format = get_bits1 ( & s -> gb ) ;\n if ( format == 0 ) {\n s -> width = 176 ;\n s -> height = 144 ;\n s -> mb_width = 11 ;\n s -> mb_height = 9 ;\n }\n else {\n s -> width = 352 ;\n s -> height = 288 ;\n s -> mb_width = 22 ;\n s -> mb_height = 18 ;\n }\n s -> mb_num = s -> mb_width * s -> mb_height ;\n skip_bits1 ( & s -> gb ) ;\n skip_bits1 ( & s -> gb ) ;\n while ( get_bits1 ( & s -> gb ) != 0 ) {\n skip_bits ( & s -> gb , 8 ) ;\n }\n s -> pict_type = AV_PICTURE_TYPE_P ;\n h -> gob_number = 0 ;\n return 0 ;\n }"}
{"idx": 14790, "target": 0, "func": "static int selinux_sb_show_options ( struct seq_file * m , struct super_block * sb ) {\n struct security_mnt_opts opts ;\n int rc ;\n rc = selinux_get_mnt_opts ( sb , & opts ) ;\n if ( rc ) {\n if ( rc == - EINVAL ) rc = 0 ;\n return rc ;\n }\n selinux_write_opts ( m , & opts ) ;\n security_free_mnt_opts ( & opts ) ;\n return rc ;\n }"}
{"idx": 14791, "target": 0, "func": "static void run_request_queue ( void ) {\n # ifdef USE_CURL_MULTI is_running_queue = 1 ;\n fill_active_slots ( ) ;\n add_fill_function ( NULL , fill_active_slot ) ;\n # endif do {\n finish_all_active_slots ( ) ;\n # ifdef USE_CURL_MULTI fill_active_slots ( ) ;\n # endif }\n while ( request_queue_head && ! aborted ) ;\n # ifdef USE_CURL_MULTI is_running_queue = 0 ;\n # endif }"}
{"idx": 14792, "target": 0, "func": "static void xhci_alloc_streams ( XHCIEPContext * epctx , dma_addr_t base ) {\n assert ( epctx -> pstreams == NULL ) ;\n epctx -> nr_pstreams = 2 << epctx -> max_pstreams ;\n epctx -> pstreams = xhci_alloc_stream_contexts ( epctx -> nr_pstreams , base ) ;\n }"}
{"idx": 14793, "target": 0, "func": "static void test_long_data ( ) {\n MYSQL_STMT * stmt ;\n int rc , int_data ;\n char * data = NullS ;\n MYSQL_RES * result ;\n MYSQL_BIND my_bind [ 3 ] ;\n char query [ MAX_TEST_QUERY_LENGTH ] ;\n myheader ( \"test_long_data\" ) ;\n rc = mysql_autocommit ( mysql , TRUE ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_long_data\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_long_data(col1 int, \" \" col2 long varchar, col3 long varbinary)\" ) ;\n myquery ( rc ) ;\n strmov ( query , \"INSERT INTO test_long_data(col1, col2) VALUES(?)\" ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt_r ( stmt ) ;\n strmov ( query , \"INSERT INTO test_long_data(col1, col2, col3) VALUES(?, ?, ?)\" ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 3 ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer = ( void * ) & int_data ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 2 ] = my_bind [ 1 ] ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n int_data = 999 ;\n data = ( char * ) \"Michael\" ;\n rc = mysql_stmt_send_long_data ( stmt , 1 , data , strlen ( data ) ) ;\n data = ( char * ) \" 'Monty' Widenius\" ;\n rc = mysql_stmt_send_long_data ( stmt , 1 , data , strlen ( data ) ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_send_long_data ( stmt , 2 , \"Venu (venu@mysql.com)\" , 4 ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n if ( ! opt_silent ) fprintf ( stdout , \" mysql_stmt_execute() returned %d\\n\" , rc ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"SELECT * FROM test_long_data\" ) ;\n myquery ( rc ) ;\n result = mysql_store_result ( mysql ) ;\n mytest ( result ) ;\n rc = my_process_result_set ( result ) ;\n DIE_UNLESS ( rc == 1 ) ;\n mysql_free_result ( result ) ;\n verify_col_data ( \"test_long_data\" , \"col1\" , \"999\" ) ;\n verify_col_data ( \"test_long_data\" , \"col2\" , \"Michael 'Monty' Widenius\" ) ;\n verify_col_data ( \"test_long_data\" , \"col3\" , \"Venu\" ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 14794, "target": 0, "func": "TEST_F ( NativeBackendLibsecretTest , BasicRemoveLogin ) {\n NativeBackendLibsecret backend ( 42 ) ;\n VerifiedAdd ( & backend , form_google_ ) ;\n EXPECT_EQ ( 1u , global_mock_libsecret_items -> size ( ) ) ;\n if ( ! global_mock_libsecret_items -> empty ( ) ) CheckMockSecretItem ( ( * global_mock_libsecret_items ) [ 0 ] , form_google_ , \"chrome-42\" ) ;\n VerifiedRemove ( & backend , form_google_ ) ;\n EXPECT_TRUE ( global_mock_libsecret_items -> empty ( ) ) ;\n }"}
{"idx": 14795, "target": 0, "func": "static int SpoolssGetPrinterDriver2_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ;\n guint32 level = GPOINTER_TO_UINT ( dcv -> se_data ) ;\n BUFFER buffer ;\n offset = dissect_spoolss_buffer ( tvb , offset , pinfo , tree , di , drep , & buffer ) ;\n if ( buffer . tvb ) {\n switch ( level ) {\n case 1 : dissect_DRIVER_INFO_1 ( buffer . tvb , 0 , pinfo , buffer . tree , di , drep ) ;\n break ;\n case 2 : dissect_DRIVER_INFO_2 ( buffer . tvb , 0 , pinfo , buffer . tree , di , drep ) ;\n break ;\n case 3 : dissect_DRIVER_INFO_3 ( buffer . tvb , 0 , pinfo , buffer . tree , di , drep ) ;\n break ;\n case 6 : dissect_DRIVER_INFO_6 ( buffer . tvb , 0 , pinfo , buffer . tree , di , drep ) ;\n break ;\n case 101 : dissect_DRIVER_INFO_101 ( buffer . tvb , 0 , pinfo , buffer . tree , di , drep ) ;\n break ;\n default : proto_tree_add_expert_format ( buffer . tree , pinfo , & ei_driver_info_level , buffer . tvb , 0 , - 1 , \"Unknown driver info level %d\" , level ) ;\n break ;\n }\n }\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_needed , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_servermajorversion , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_serverminorversion , NULL ) ;\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 14796, "target": 0, "func": "int32_t mime_parse_int ( const char * buf , const char * end ) {\n int32_t num ;\n bool negative ;\n if ( ! buf || ( buf == end ) ) {\n return 0 ;\n }\n if ( is_digit ( * buf ) ) {\n num = * buf ++ - '0' ;\n while ( ( buf != end ) && is_digit ( * buf ) ) {\n num = ( num * 10 ) + ( * buf ++ - '0' ) ;\n }\n return num ;\n }\n else {\n num = 0 ;\n negative = false ;\n while ( ( buf != end ) && ParseRules : : is_space ( * buf ) ) {\n buf += 1 ;\n }\n if ( ( buf != end ) && ( * buf == '-' ) ) {\n negative = true ;\n buf += 1 ;\n }\n while ( ( buf != end ) && is_digit ( * buf ) ) {\n num = ( num * 10 ) - ( * buf ++ - '0' ) ;\n }\n if ( ! negative ) {\n num = - num ;\n }\n return num ;\n }\n }"}
{"idx": 14797, "target": 0, "func": "static void pdf_run_SC_color ( fz_context * ctx , pdf_processor * proc , int n , float * color ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pr -> dev -> flags &= ~ FZ_DEVFLAG_STROKECOLOR_UNDEFINED ;\n pdf_set_color ( ctx , pr , PDF_STROKE , color ) ;\n }"}
{"idx": 14798, "target": 0, "func": "static void virtio_net_handle_tx_bh ( VirtIODevice * vdev , VirtQueue * vq ) {\n VirtIONet * n = to_virtio_net ( vdev ) ;\n if ( unlikely ( n -> tx_waiting ) ) {\n return ;\n }\n n -> tx_waiting = 1 ;\n if ( ! n -> vdev . vm_running ) {\n return ;\n }\n virtio_queue_set_notification ( vq , 0 ) ;\n qemu_bh_schedule ( n -> tx_bh ) ;\n }"}
{"idx": 14799, "target": 0, "func": "static void alias_release ( struct xml_alias_t * alias ) {\n ithread_mutex_lock ( & gWebMutex ) ;\n if ( ! is_valid_alias ( alias ) ) {\n ithread_mutex_unlock ( & gWebMutex ) ;\n return ;\n }\n assert ( * alias -> ct > 0 ) ;\n * alias -> ct -= 1 ;\n if ( * alias -> ct <= 0 ) {\n membuffer_destroy ( & alias -> doc ) ;\n membuffer_destroy ( & alias -> name ) ;\n free ( alias -> ct ) ;\n }\n ithread_mutex_unlock ( & gWebMutex ) ;\n }"}
{"idx": 14800, "target": 1, "func": "static int virtio_console_init_pci ( PCIDevice * pci_dev ) {\n VirtIOPCIProxy * proxy = DO_UPCAST ( VirtIOPCIProxy , pci_dev , pci_dev ) ;\n VirtIODevice * vdev ;\n if ( proxy -> class_code != PCI_CLASS_COMMUNICATION_OTHER && proxy -> class_code != PCI_CLASS_DISPLAY_OTHER && proxy -> class_code != PCI_CLASS_OTHERS ) proxy -> class_code = PCI_CLASS_COMMUNICATION_OTHER ;\n vdev = virtio_console_init ( & pci_dev -> qdev ) ;\n if ( ! vdev ) {\n return - 1 ;\n }\n virtio_init_pci ( proxy , vdev , PCI_VENDOR_ID_REDHAT_QUMRANET , PCI_DEVICE_ID_VIRTIO_CONSOLE , proxy -> class_code , 0x00 ) ;\n return 0 ;\n }"}
{"idx": 14801, "target": 0, "func": "static void Type_ParametricCurve_Free ( struct _cms_typehandler_struct * self , void * Ptr ) {\n cmsToneCurve * gamma = ( cmsToneCurve * ) Ptr ;\n cmsFreeToneCurve ( gamma ) ;\n return ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 14802, "target": 0, "func": "void errno_to_str ( int err , char * buf , size_t bufsiz ) {\n # if defined ( STRERROR_R_CHAR_P ) || ! HAVE_DECL_STRERROR_R char * pstatic ;\n buf [ 0 ] = '\\0' ;\n # ifdef STRERROR_R_CHAR_P pstatic = strerror_r ( err , buf , bufsiz ) ;\n # else pstatic = strerror ( err ) ;\n # endif if ( NULL == pstatic && '\\0' == buf [ 0 ] ) snprintf ( buf , bufsiz , \"%s(%d): errno %d\" , # ifdef STRERROR_R_CHAR_P \"strerror_r\" , # else \"strerror\" , # endif err , errno ) ;\n else if ( pstatic != buf && pstatic > ( char * ) bufsiz ) strlcpy ( buf , pstatic , bufsiz ) ;\n # else int rc ;\n rc = strerror_r ( err , buf , bufsiz ) ;\n if ( rc < 0 ) snprintf ( buf , bufsiz , \"strerror_r(%d): errno %d\" , err , errno ) ;\n # endif }"}
{"idx": 14803, "target": 0, "func": "static int open_pack_bitmap ( void ) {\n struct packed_git * p ;\n int ret = - 1 ;\n assert ( ! bitmap_git . map && ! bitmap_git . loaded ) ;\n prepare_packed_git ( ) ;\n for ( p = packed_git ;\n p ;\n p = p -> next ) {\n if ( open_pack_bitmap_1 ( p ) == 0 ) ret = 0 ;\n }\n return ret ;\n }"}
{"idx": 14804, "target": 0, "func": "int event_reinit ( struct event_base * base ) {\n const struct eventop * evsel = base -> evsel ;\n void * evbase = base -> evbase ;\n int res = 0 ;\n struct event * ev ;\n # if 0 if ( ! evsel -> need_reinit ) return ( 0 ) ;\n # endif if ( base -> sig . ev_signal_added ) {\n event_queue_remove ( base , & base -> sig . ev_signal , EVLIST_INSERTED ) ;\n if ( base -> sig . ev_signal . ev_flags & EVLIST_ACTIVE ) event_queue_remove ( base , & base -> sig . ev_signal , EVLIST_ACTIVE ) ;\n base -> sig . ev_signal_added = 0 ;\n }\n if ( base -> evsel -> dealloc != NULL ) base -> evsel -> dealloc ( base , base -> evbase ) ;\n evbase = base -> evbase = evsel -> init ( base ) ;\n if ( base -> evbase == NULL ) event_errx ( 1 , \"%s: could not reinitialize event mechanism\" , __func__ ) ;\n TAILQ_FOREACH ( ev , & base -> eventqueue , ev_next ) {\n if ( evsel -> add ( evbase , ev ) == - 1 ) res = - 1 ;\n }\n return ( res ) ;\n }"}
{"idx": 14805, "target": 1, "func": "static void update_stats ( VP9_COMMON * cm , const MACROBLOCK * x ) {\n const MACROBLOCKD * const xd = & x -> e_mbd ;\n const MODE_INFO * const mi = xd -> mi [ 0 ] ;\n const MB_MODE_INFO * const mbmi = & mi -> mbmi ;\n if ( ! frame_is_intra_only ( cm ) ) {\n const int seg_ref_active = vp9_segfeature_active ( & cm -> seg , mbmi -> segment_id , SEG_LVL_REF_FRAME ) ;\n if ( ! seg_ref_active ) {\n FRAME_COUNTS * const counts = & cm -> counts ;\n const int inter_block = is_inter_block ( mbmi ) ;\n counts -> intra_inter [ vp9_get_intra_inter_context ( xd ) ] [ inter_block ] ++ ;\n if ( inter_block ) {\n const MV_REFERENCE_FRAME ref0 = mbmi -> ref_frame [ 0 ] ;\n if ( cm -> reference_mode == REFERENCE_MODE_SELECT ) counts -> comp_inter [ vp9_get_reference_mode_context ( cm , xd ) ] [ has_second_ref ( mbmi ) ] ++ ;\n if ( has_second_ref ( mbmi ) ) {\n counts -> comp_ref [ vp9_get_pred_context_comp_ref_p ( cm , xd ) ] [ ref0 == GOLDEN_FRAME ] ++ ;\n }\n else {\n counts -> single_ref [ vp9_get_pred_context_single_ref_p1 ( xd ) ] [ 0 ] [ ref0 != LAST_FRAME ] ++ ;\n if ( ref0 != LAST_FRAME ) counts -> single_ref [ vp9_get_pred_context_single_ref_p2 ( xd ) ] [ 1 ] [ ref0 != GOLDEN_FRAME ] ++ ;\n }\n }\n }\n }\n }"}
{"idx": 14806, "target": 0, "func": "kadm5_ret_t kadm5_purgekeys ( void * server_handle , krb5_principal principal , int keepkvno ) {\n kadm5_server_handle_t handle = server_handle ;\n kadm5_ret_t ret ;\n krb5_db_entry * kdb ;\n osa_princ_ent_rec adb ;\n krb5_key_data * old_keydata ;\n int n_old_keydata ;\n int i , j , k ;\n CHECK_HANDLE ( server_handle ) ;\n if ( principal == NULL ) return EINVAL ;\n ret = kdb_get_entry ( handle , principal , & kdb , & adb ) ;\n if ( ret ) return ( ret ) ;\n if ( keepkvno <= 0 ) {\n keepkvno = krb5_db_get_key_data_kvno ( handle -> context , kdb -> n_key_data , kdb -> key_data ) ;\n }\n old_keydata = kdb -> key_data ;\n n_old_keydata = kdb -> n_key_data ;\n kdb -> n_key_data = 0 ;\n kdb -> key_data = krb5_db_alloc ( handle -> context , NULL , ( n_old_keydata + 1 ) * sizeof ( krb5_key_data ) ) ;\n if ( kdb -> key_data == NULL ) {\n ret = ENOMEM ;\n goto done ;\n }\n memset ( kdb -> key_data , 0 , n_old_keydata * sizeof ( krb5_key_data ) ) ;\n for ( i = 0 , j = 0 ;\n i < n_old_keydata ;\n i ++ ) {\n if ( old_keydata [ i ] . key_data_kvno < keepkvno ) continue ;\n kdb -> key_data [ j ] = old_keydata [ i ] ;\n for ( k = 0 ;\n k < old_keydata [ i ] . key_data_ver ;\n k ++ ) {\n old_keydata [ i ] . key_data_contents [ k ] = NULL ;\n }\n j ++ ;\n }\n kdb -> n_key_data = j ;\n cleanup_key_data ( handle -> context , n_old_keydata , old_keydata ) ;\n kdb -> mask = KADM5_KEY_DATA ;\n ret = kdb_put_entry ( handle , kdb , & adb ) ;\n if ( ret ) goto done ;\n done : kdb_free_entry ( handle , kdb , & adb ) ;\n return ret ;\n }"}
{"idx": 14807, "target": 0, "func": "static void map_linear_vram_bank ( CirrusVGAState * s , unsigned bank ) {\n MemoryRegion * mr = & s -> cirrus_bank [ bank ] ;\n bool enabled = ! ( s -> cirrus_srcptr != s -> cirrus_srcptr_end ) && ! ( ( s -> vga . sr [ 0x07 ] & 0x01 ) == 0 ) && ! ( ( s -> vga . gr [ 0x0B ] & 0x14 ) == 0x14 ) && ! ( s -> vga . gr [ 0x0B ] & 0x02 ) ;\n memory_region_set_enabled ( mr , enabled ) ;\n memory_region_set_alias_offset ( mr , s -> cirrus_bank_base [ bank ] ) ;\n }"}
{"idx": 14808, "target": 0, "func": "static void dissect_u3v_register_bases ( guint64 addr , tvbuff_t * tvb , gint offset , u3v_conv_info_t * u3v_conv_info ) {\n if ( addr < 0x10000 ) {\n switch ( addr ) {\n case U3V_ABRM_SBRM_ADDRESS : u3v_conv_info -> sbrm_addr = tvb_get_letoh64 ( tvb , offset ) ;\n break ;\n case U3V_ABRM_MANIFEST_TABLE_ADDRESS : u3v_conv_info -> manifest_addr = tvb_get_letoh64 ( tvb , offset ) ;\n break ;\n }\n }\n if ( u3v_conv_info -> sbrm_addr != 0 && ( addr >= u3v_conv_info -> sbrm_addr ) ) {\n addr -= u3v_conv_info -> sbrm_addr ;\n switch ( addr ) {\n case U3V_SBRM_SIRM_ADDRESS : u3v_conv_info -> sirm_addr = tvb_get_letoh64 ( tvb , offset ) ;\n break ;\n case U3V_SBRM_EIRM_ADDRESS : u3v_conv_info -> eirm_addr = tvb_get_letoh64 ( tvb , offset ) ;\n break ;\n case U3V_SBRM_IIDC2_ADDRESS : u3v_conv_info -> iidc2_addr = tvb_get_letoh64 ( tvb , offset ) ;\n break ;\n }\n }\n }"}
{"idx": 14809, "target": 0, "func": "TSReturnCode sdk_sanity_check_url_handle ( TSMLoc field ) {\n if ( field == TS_NULL_MLOC ) {\n return TS_ERROR ;\n }\n MIMEFieldSDKHandle * field_handle = ( MIMEFieldSDKHandle * ) field ;\n if ( field_handle -> m_type != HDR_HEAP_OBJ_URL ) {\n return TS_ERROR ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 14810, "target": 0, "func": "void appendStringLiteralDQ ( PQExpBuffer buf , const char * str , const char * dqprefix ) {\n static const char suffixes [ ] = \"_XXXXXXX\" ;\n int nextchar = 0 ;\n PQExpBuffer delimBuf = createPQExpBuffer ( ) ;\n appendPQExpBufferChar ( delimBuf , '$' ) ;\n if ( dqprefix ) appendPQExpBufferStr ( delimBuf , dqprefix ) ;\n while ( strstr ( str , delimBuf -> data ) != NULL ) {\n appendPQExpBufferChar ( delimBuf , suffixes [ nextchar ++ ] ) ;\n nextchar %= sizeof ( suffixes ) - 1 ;\n }\n appendPQExpBufferChar ( delimBuf , '$' ) ;\n appendPQExpBufferStr ( buf , delimBuf -> data ) ;\n appendPQExpBufferStr ( buf , str ) ;\n appendPQExpBufferStr ( buf , delimBuf -> data ) ;\n destroyPQExpBuffer ( delimBuf ) ;\n }"}
{"idx": 14811, "target": 1, "func": "static __inline__ __u64 __fswab64 ( __u64 val ) {\n # if defined ( __arch_swab64 ) return __arch_swab64 ( val ) ;\n # elif defined ( __SWAB_64_THRU_32__ ) __u32 h = val >> 32 ;\n __u32 l = val & ( ( 1ULL << 32 ) - 1 ) ;\n return ( ( ( __u64 ) __fswab32 ( l ) ) << 32 ) | ( ( __u64 ) ( __fswab32 ( h ) ) ) ;\n # else return ___constant_swab64 ( val ) ;\n # endif }"}
{"idx": 14812, "target": 0, "func": "int vp8_set_roimap ( VP8_COMP * cpi , unsigned char * map , unsigned int rows , unsigned int cols , int delta_q [ 4 ] , int delta_lf [ 4 ] , unsigned int threshold [ 4 ] ) {\n signed char feature_data [ MB_LVL_MAX ] [ MAX_MB_SEGMENTS ] ;\n int internal_delta_q [ MAX_MB_SEGMENTS ] ;\n const int range = 63 ;\n int i ;\n if ( cpi -> cyclic_refresh_mode_enabled ) return - 1 ;\n if ( cpi -> common . mb_rows != rows || cpi -> common . mb_cols != cols ) return - 1 ;\n if ( ( abs ( delta_q [ 0 ] ) > range ) || ( abs ( delta_q [ 1 ] ) > range ) || ( abs ( delta_q [ 2 ] ) > range ) || ( abs ( delta_q [ 3 ] ) > range ) ) return - 1 ;\n if ( ( abs ( delta_lf [ 0 ] ) > range ) || ( abs ( delta_lf [ 1 ] ) > range ) || ( abs ( delta_lf [ 2 ] ) > range ) || ( abs ( delta_lf [ 3 ] ) > range ) ) return - 1 ;\n if ( ! map ) {\n disable_segmentation ( cpi ) ;\n return 0 ;\n }\n for ( i = 0 ;\n i < MAX_MB_SEGMENTS ;\n i ++ ) internal_delta_q [ i ] = ( delta_q [ i ] >= 0 ) ? q_trans [ delta_q [ i ] ] : - q_trans [ - delta_q [ i ] ] ;\n set_segmentation_map ( cpi , map ) ;\n enable_segmentation ( cpi ) ;\n feature_data [ MB_LVL_ALT_Q ] [ 0 ] = internal_delta_q [ 0 ] ;\n feature_data [ MB_LVL_ALT_Q ] [ 1 ] = internal_delta_q [ 1 ] ;\n feature_data [ MB_LVL_ALT_Q ] [ 2 ] = internal_delta_q [ 2 ] ;\n feature_data [ MB_LVL_ALT_Q ] [ 3 ] = internal_delta_q [ 3 ] ;\n feature_data [ MB_LVL_ALT_LF ] [ 0 ] = delta_lf [ 0 ] ;\n feature_data [ MB_LVL_ALT_LF ] [ 1 ] = delta_lf [ 1 ] ;\n feature_data [ MB_LVL_ALT_LF ] [ 2 ] = delta_lf [ 2 ] ;\n feature_data [ MB_LVL_ALT_LF ] [ 3 ] = delta_lf [ 3 ] ;\n cpi -> segment_encode_breakout [ 0 ] = threshold [ 0 ] ;\n cpi -> segment_encode_breakout [ 1 ] = threshold [ 1 ] ;\n cpi -> segment_encode_breakout [ 2 ] = threshold [ 2 ] ;\n cpi -> segment_encode_breakout [ 3 ] = threshold [ 3 ] ;\n set_segment_data ( cpi , & feature_data [ 0 ] [ 0 ] , SEGMENT_DELTADATA ) ;\n return 0 ;\n }"}
{"idx": 14813, "target": 1, "func": "void vp9_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint8_t * dst , ptrdiff_t stride , const uint8_t * above , const uint8_t * left ) {\n type ## _predictor ( dst , stride , size , above , left ) ;\n }\n # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) static INLINE void d207_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n intra_pred_allsizes ( d207 ) static INLINE void d63_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d63 ) static INLINE void d45_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r + c + 2 < bs * 2 ? ROUND_POWER_OF_TWO ( above [ r + c ] + above [ r + c + 1 ] * 2 + above [ r + c + 2 ] , 2 ) : above [ bs * 2 - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d45 ) static INLINE void d117_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] , 1 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 3 ;\n r < bs ;\n ++ r ) dst [ ( r - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ r - 3 ] + left [ r - 2 ] * 2 + left [ r - 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - 2 * stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d117 ) static INLINE void d135_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d135 ) static INLINE void d153_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] , 1 ) ;\n for ( r = 1 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 1 ] + left [ r ] , 1 ) ;\n dst ++ ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] * 2 + above [ c + 1 ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = dst [ - stride + c - 2 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d153 ) static INLINE void v_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memcpy ( dst , above , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( v ) static INLINE void h_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset ( dst , left [ r ] , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( h ) static INLINE void tm_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n int ytop_left = above [ - 1 ] ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = clip_pixel ( left [ r ] + above [ c ] - ytop_left ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( tm ) static INLINE void dc_128_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r ;\n ( void ) above ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset ( dst , 128 , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( dc_128 ) static INLINE void dc_left_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) above ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += left [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( dc_left ) static INLINE void dc_top_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) left ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += above [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( dc_top ) static INLINE void dc_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int i , r , expected_dc , sum = 0 ;\n const int count = 2 * bs ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) {\n sum += above [ i ] ;\n sum += left [ i ] ;\n }\n expected_dc = ( sum + ( count >> 1 ) ) / count ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( dc )"}
{"idx": 14814, "target": 0, "func": "static void test_create_drop ( ) {\n MYSQL_STMT * stmt_create , * stmt_drop , * stmt_select , * stmt_create_select ;\n char * query ;\n int rc , i ;\n myheader ( \"test_table_manipulation\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS t1, t2\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t2 (a int);\n\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t1 (a int);\n\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t2 values (3), (2), (1);\n\" ) ;\n myquery ( rc ) ;\n query = ( char * ) \"create table t1 (a int)\" ;\n stmt_create = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt_create ) ;\n query = ( char * ) \"drop table t1\" ;\n stmt_drop = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt_drop ) ;\n query = ( char * ) \"select a in (select a from t2) from t1\" ;\n stmt_select = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt_select ) ;\n rc = mysql_query ( mysql , \"DROP TABLE t1\" ) ;\n myquery ( rc ) ;\n query = ( char * ) \"create table t1 select a from t2\" ;\n stmt_create_select = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt_create_select ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n rc = mysql_stmt_execute ( stmt_create ) ;\n check_execute ( stmt_create , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"created %i\\n\" , i ) ;\n rc = mysql_stmt_execute ( stmt_select ) ;\n check_execute ( stmt_select , rc ) ;\n rc = my_process_stmt_result ( stmt_select ) ;\n DIE_UNLESS ( rc == 0 ) ;\n rc = mysql_stmt_execute ( stmt_drop ) ;\n check_execute ( stmt_drop , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"dropped %i\\n\" , i ) ;\n rc = mysql_stmt_execute ( stmt_create_select ) ;\n check_execute ( stmt_create , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"created select %i\\n\" , i ) ;\n rc = mysql_stmt_execute ( stmt_select ) ;\n check_execute ( stmt_select , rc ) ;\n rc = my_process_stmt_result ( stmt_select ) ;\n DIE_UNLESS ( rc == 3 ) ;\n rc = mysql_stmt_execute ( stmt_drop ) ;\n check_execute ( stmt_drop , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"dropped %i\\n\" , i ) ;\n }\n mysql_stmt_close ( stmt_create ) ;\n mysql_stmt_close ( stmt_drop ) ;\n mysql_stmt_close ( stmt_select ) ;\n mysql_stmt_close ( stmt_create_select ) ;\n rc = mysql_query ( mysql , \"DROP TABLE t2\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 14815, "target": 0, "func": "int test_sub ( BIO * bp ) {\n BIGNUM a , b , c ;\n int i ;\n BN_init ( & a ) ;\n BN_init ( & b ) ;\n BN_init ( & c ) ;\n for ( i = 0 ;\n i < num0 + num1 ;\n i ++ ) {\n if ( i < num1 ) {\n BN_bntest_rand ( & a , 512 , 0 , 0 ) ;\n BN_copy ( & b , & a ) ;\n if ( BN_set_bit ( & a , i ) == 0 ) return ( 0 ) ;\n BN_add_word ( & b , i ) ;\n }\n else {\n BN_bntest_rand ( & b , 400 + i - num1 , 0 , 0 ) ;\n a . neg = rand_neg ( ) ;\n b . neg = rand_neg ( ) ;\n }\n BN_sub ( & c , & a , & b ) ;\n if ( bp != NULL ) {\n if ( ! results ) {\n BN_print ( bp , & a ) ;\n BIO_puts ( bp , \" - \" ) ;\n BN_print ( bp , & b ) ;\n BIO_puts ( bp , \" - \" ) ;\n }\n BN_print ( bp , & c ) ;\n BIO_puts ( bp , \"\\n\" ) ;\n }\n BN_add ( & c , & c , & b ) ;\n BN_sub ( & c , & c , & a ) ;\n if ( ! BN_is_zero ( & c ) ) {\n fprintf ( stderr , \"Subtract test failed!\\n\" ) ;\n return 0 ;\n }\n }\n BN_free ( & a ) ;\n BN_free ( & b ) ;\n BN_free ( & c ) ;\n return ( 1 ) ;\n }"}
{"idx": 14816, "target": 0, "func": "void xmlListPopBack ( xmlListPtr l ) {\n if ( ! xmlListEmpty ( l ) ) xmlLinkDeallocator ( l , l -> sentinel -> prev ) ;\n }"}
{"idx": 14817, "target": 0, "func": "static void main_get_appheader_params ( main_file * file , char * * parsed , int output , const char * type , main_file * other ) {\n if ( file -> filename == NULL && ! ( output && option_stdout ) && strcmp ( parsed [ 0 ] , \"-\" ) != 0 ) {\n file -> filename = parsed [ 0 ] ;\n if ( other -> filename != NULL ) {\n const char * last_slash = strrchr ( other -> filename , '/' ) ;\n if ( last_slash != NULL ) {\n usize_t dlen = ( usize_t ) ( last_slash - other -> filename ) ;\n XD3_ASSERT ( file -> filename_copy == NULL ) ;\n file -> filename_copy = ( char * ) main_malloc ( dlen + 2 + ( usize_t ) strlen ( file -> filename ) ) ;\n strncpy ( file -> filename_copy , other -> filename , dlen ) ;\n file -> filename_copy [ dlen ] = '/' ;\n strcpy ( file -> filename_copy + dlen + 1 , parsed [ 0 ] ) ;\n file -> filename = file -> filename_copy ;\n }\n }\n if ( ! option_quiet ) {\n XPR ( NT \"using default %s filename: %s\\n\" , type , file -> filename ) ;\n }\n }\n if ( file -> compressor == NULL && * parsed [ 1 ] != 0 ) {\n file -> flags |= RD_DECOMPSET ;\n file -> compressor = main_get_compressor ( parsed [ 1 ] ) ;\n }\n }"}
{"idx": 14818, "target": 0, "func": "const EVP_CIPHER * EVP_aes_256_wrap_pad ( void ) {\n return & aes_256_wrap_pad ;\n }"}
{"idx": 14819, "target": 0, "func": "static VALUE cState_indent ( VALUE self ) {\n GET_STATE ( self ) ;\n return state -> indent ? rb_str_new ( state -> indent , state -> indent_len ) : rb_str_new2 ( \"\" ) ;\n }"}
{"idx": 14820, "target": 0, "func": "static int dissect_h245_V76ModeParameters ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_V76ModeParameters , V76ModeParameters_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 14821, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( AppApiTest , ClientRedirectToAppFromExtension ) {\n LoadExtension ( test_data_dir_ . AppendASCII ( \"app_process\" ) ) ;\n const Extension * launcher = LoadExtension ( test_data_dir_ . AppendASCII ( \"app_launcher\" ) ) ;\n content : : TestNavigationObserver test_navigation_observer ( browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) , 3 ) ;\n test_navigation_observer . StartWatchingNewWebContents ( ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , launcher -> GetResourceURL ( \"client_redirect.html\" ) ) ;\n test_navigation_observer . Wait ( ) ;\n bool is_installed = false ;\n ASSERT_TRUE ( content : : ExecuteScriptAndExtractBool ( browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) , \"window.domAutomationController.send(chrome.app.isInstalled)\" , & is_installed ) ) ;\n ASSERT_TRUE ( is_installed ) ;\n }"}
{"idx": 14822, "target": 0, "func": "static int joint_decode ( COOKContext * q , COOKSubpacket * p , float * mlt_buffer_left , float * mlt_buffer_right ) {\n int i , j , res ;\n int decouple_tab [ SUBBAND_SIZE ] = {\n 0 }\n ;\n float * decode_buffer = q -> decode_buffer_0 ;\n int idx , cpl_tmp ;\n float f1 , f2 ;\n const float * cplscale ;\n memset ( decode_buffer , 0 , sizeof ( q -> decode_buffer_0 ) ) ;\n memset ( mlt_buffer_left , 0 , 1024 * sizeof ( * mlt_buffer_left ) ) ;\n memset ( mlt_buffer_right , 0 , 1024 * sizeof ( * mlt_buffer_right ) ) ;\n decouple_info ( q , p , decouple_tab ) ;\n if ( ( res = mono_decode ( q , p , decode_buffer ) ) < 0 ) return res ;\n for ( i = 0 ;\n i < p -> js_subband_start ;\n i ++ ) {\n for ( j = 0 ;\n j < SUBBAND_SIZE ;\n j ++ ) {\n mlt_buffer_left [ i * 20 + j ] = decode_buffer [ i * 40 + j ] ;\n mlt_buffer_right [ i * 20 + j ] = decode_buffer [ i * 40 + 20 + j ] ;\n }\n }\n idx = ( 1 << p -> js_vlc_bits ) - 1 ;\n for ( i = p -> js_subband_start ;\n i < p -> subbands ;\n i ++ ) {\n cpl_tmp = cplband [ i ] ;\n idx -= decouple_tab [ cpl_tmp ] ;\n cplscale = q -> cplscales [ p -> js_vlc_bits - 2 ] ;\n f1 = cplscale [ decouple_tab [ cpl_tmp ] + 1 ] ;\n f2 = cplscale [ idx ] ;\n q -> decouple ( q , p , i , f1 , f2 , decode_buffer , mlt_buffer_left , mlt_buffer_right ) ;\n idx = ( 1 << p -> js_vlc_bits ) - 1 ;\n }\n return 0 ;\n }"}
{"idx": 14823, "target": 0, "func": "TSReturnCode TSMimeHdrFieldValueIntSet ( TSMBuffer bufp , TSMLoc hdr , TSMLoc field , int idx , int value ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( hdr ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( hdr ) == TS_SUCCESS ) ) ;\n sdk_assert ( sdk_sanity_check_field_handle ( field , hdr ) == TS_SUCCESS ) ;\n if ( ! isWriteable ( bufp ) ) {\n return TS_ERROR ;\n }\n char tmp [ 16 ] ;\n int len = mime_format_int ( tmp , value , sizeof ( tmp ) ) ;\n TSMimeFieldValueSet ( bufp , field , idx , tmp , len ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 14824, "target": 0, "func": "static int jpc_enc_encodemainhdr ( jpc_enc_t * enc ) {\n jpc_siz_t * siz ;\n jpc_cod_t * cod ;\n jpc_qcd_t * qcd ;\n int i ;\n long startoff ;\n long mainhdrlen ;\n jpc_enc_cp_t * cp ;\n jpc_qcc_t * qcc ;\n jpc_enc_tccp_t * tccp ;\n uint_fast16_t cmptno ;\n jpc_tsfb_band_t bandinfos [ JPC_MAXBANDS ] ;\n jpc_fix_t mctsynweight ;\n jpc_enc_tcp_t * tcp ;\n jpc_tsfb_t * tsfb ;\n jpc_tsfb_band_t * bandinfo ;\n uint_fast16_t numbands ;\n uint_fast16_t bandno ;\n uint_fast16_t rlvlno ;\n uint_fast16_t analgain ;\n jpc_fix_t absstepsize ;\n char buf [ 1024 ] ;\n jpc_com_t * com ;\n cp = enc -> cp ;\n startoff = jas_stream_getrwcount ( enc -> out ) ;\n if ( ! ( enc -> mrk = jpc_ms_create ( JPC_MS_SOC ) ) ) {\n return - 1 ;\n }\n if ( jpc_putms ( enc -> out , enc -> cstate , enc -> mrk ) ) {\n jas_eprintf ( \"cannot write SOC marker\\n\" ) ;\n return - 1 ;\n }\n jpc_ms_destroy ( enc -> mrk ) ;\n enc -> mrk = 0 ;\n if ( ! ( enc -> mrk = jpc_ms_create ( JPC_MS_SIZ ) ) ) {\n return - 1 ;\n }\n siz = & enc -> mrk -> parms . siz ;\n siz -> caps = 0 ;\n siz -> xoff = cp -> imgareatlx ;\n siz -> yoff = cp -> imgareatly ;\n siz -> width = cp -> refgrdwidth ;\n siz -> height = cp -> refgrdheight ;\n siz -> tilexoff = cp -> tilegrdoffx ;\n siz -> tileyoff = cp -> tilegrdoffy ;\n siz -> tilewidth = cp -> tilewidth ;\n siz -> tileheight = cp -> tileheight ;\n siz -> numcomps = cp -> numcmpts ;\n siz -> comps = jas_alloc2 ( siz -> numcomps , sizeof ( jpc_sizcomp_t ) ) ;\n assert ( siz -> comps ) ;\n for ( i = 0 ;\n i < JAS_CAST ( int , cp -> numcmpts ) ;\n ++ i ) {\n siz -> comps [ i ] . prec = cp -> ccps [ i ] . prec ;\n siz -> comps [ i ] . sgnd = cp -> ccps [ i ] . sgnd ;\n siz -> comps [ i ] . hsamp = cp -> ccps [ i ] . sampgrdstepx ;\n siz -> comps [ i ] . vsamp = cp -> ccps [ i ] . sampgrdstepy ;\n }\n if ( jpc_putms ( enc -> out , enc -> cstate , enc -> mrk ) ) {\n jas_eprintf ( \"cannot write SIZ marker\\n\" ) ;\n return - 1 ;\n }\n jpc_ms_destroy ( enc -> mrk ) ;\n enc -> mrk = 0 ;\n if ( ! ( enc -> mrk = jpc_ms_create ( JPC_MS_COM ) ) ) {\n return - 1 ;\n }\n sprintf ( buf , \"Creator: JasPer Version %s\" , jas_getversion ( ) ) ;\n com = & enc -> mrk -> parms . com ;\n com -> len = JAS_CAST ( uint_fast16_t , strlen ( buf ) ) ;\n com -> regid = JPC_COM_LATIN ;\n if ( ! ( com -> data = JAS_CAST ( jas_uchar * , jas_strdup ( buf ) ) ) ) {\n abort ( ) ;\n }\n if ( jpc_putms ( enc -> out , enc -> cstate , enc -> mrk ) ) {\n jas_eprintf ( \"cannot write COM marker\\n\" ) ;\n return - 1 ;\n }\n jpc_ms_destroy ( enc -> mrk ) ;\n enc -> mrk = 0 ;\n # if 0 if ( ! ( enc -> mrk = jpc_ms_create ( JPC_MS_CRG ) ) ) {\n return - 1 ;\n }\n crg = & enc -> mrk -> parms . crg ;\n crg -> comps = jas_alloc2 ( crg -> numcomps , sizeof ( jpc_crgcomp_t ) ) ;\n if ( jpc_putms ( enc -> out , enc -> cstate , enc -> mrk ) ) {\n jas_eprintf ( \"cannot write CRG marker\\n\" ) ;\n return - 1 ;\n }\n jpc_ms_destroy ( enc -> mrk ) ;\n enc -> mrk = 0 ;\n # endif tcp = & cp -> tcp ;\n tccp = & cp -> tccp ;\n for ( cmptno = 0 ;\n cmptno < cp -> numcmpts ;\n ++ cmptno ) {\n tsfb = jpc_cod_gettsfb ( tccp -> qmfbid , tccp -> maxrlvls - 1 ) ;\n jpc_tsfb_getbands ( tsfb , 0 , 0 , 1 << tccp -> maxrlvls , 1 << tccp -> maxrlvls , bandinfos ) ;\n jpc_tsfb_destroy ( tsfb ) ;\n mctsynweight = jpc_mct_getsynweight ( tcp -> mctid , cmptno ) ;\n numbands = 3 * tccp -> maxrlvls - 2 ;\n for ( bandno = 0 , bandinfo = bandinfos ;\n bandno < numbands ;\n ++ bandno , ++ bandinfo ) {\n rlvlno = ( bandno ) ? ( ( bandno - 1 ) / 3 + 1 ) : 0 ;\n analgain = JPC_NOMINALGAIN ( tccp -> qmfbid , tccp -> maxrlvls , rlvlno , bandinfo -> orient ) ;\n if ( ! tcp -> intmode ) {\n absstepsize = jpc_fix_div ( jpc_inttofix ( 1 << ( analgain + 1 ) ) , bandinfo -> synenergywt ) ;\n }\n else {\n absstepsize = jpc_inttofix ( 1 ) ;\n }\n cp -> ccps [ cmptno ] . stepsizes [ bandno ] = jpc_abstorelstepsize ( absstepsize , cp -> ccps [ cmptno ] . prec + analgain ) ;\n }\n cp -> ccps [ cmptno ] . numstepsizes = numbands ;\n }\n if ( ! ( enc -> mrk = jpc_ms_create ( JPC_MS_COD ) ) ) {\n return - 1 ;\n }\n cod = & enc -> mrk -> parms . cod ;\n cod -> csty = cp -> tccp . csty | cp -> tcp . csty ;\n cod -> compparms . csty = cp -> tccp . csty | cp -> tcp . csty ;\n cod -> compparms . numdlvls = cp -> tccp . maxrlvls - 1 ;\n cod -> compparms . numrlvls = cp -> tccp . maxrlvls ;\n cod -> prg = cp -> tcp . prg ;\n cod -> numlyrs = cp -> tcp . numlyrs ;\n cod -> compparms . cblkwidthval = JPC_COX_CBLKSIZEEXPN ( cp -> tccp . cblkwidthexpn ) ;\n cod -> compparms . cblkheightval = JPC_COX_CBLKSIZEEXPN ( cp -> tccp . cblkheightexpn ) ;\n cod -> compparms . cblksty = cp -> tccp . cblksty ;\n cod -> compparms . qmfbid = cp -> tccp . qmfbid ;\n cod -> mctrans = ( cp -> tcp . mctid != JPC_MCT_NONE ) ;\n if ( tccp -> csty & JPC_COX_PRT ) {\n for ( rlvlno = 0 ;\n rlvlno < tccp -> maxrlvls ;\n ++ rlvlno ) {\n cod -> compparms . rlvls [ rlvlno ] . parwidthval = tccp -> prcwidthexpns [ rlvlno ] ;\n cod -> compparms . rlvls [ rlvlno ] . parheightval = tccp -> prcheightexpns [ rlvlno ] ;\n }\n }\n if ( jpc_putms ( enc -> out , enc -> cstate , enc -> mrk ) ) {\n jas_eprintf ( \"cannot write COD marker\\n\" ) ;\n return - 1 ;\n }\n jpc_ms_destroy ( enc -> mrk ) ;\n enc -> mrk = 0 ;\n if ( ! ( enc -> mrk = jpc_ms_create ( JPC_MS_QCD ) ) ) {\n return - 1 ;\n }\n qcd = & enc -> mrk -> parms . qcd ;\n qcd -> compparms . qntsty = ( tccp -> qmfbid == JPC_COX_INS ) ? JPC_QCX_SEQNT : JPC_QCX_NOQNT ;\n qcd -> compparms . numstepsizes = cp -> ccps [ 0 ] . numstepsizes ;\n qcd -> compparms . numguard = cp -> tccp . numgbits ;\n qcd -> compparms . stepsizes = cp -> ccps [ 0 ] . stepsizes ;\n if ( jpc_putms ( enc -> out , enc -> cstate , enc -> mrk ) ) {\n return - 1 ;\n }\n qcd -> compparms . stepsizes = 0 ;\n jpc_ms_destroy ( enc -> mrk ) ;\n enc -> mrk = 0 ;\n tccp = & cp -> tccp ;\n for ( cmptno = 1 ;\n cmptno < cp -> numcmpts ;\n ++ cmptno ) {\n if ( ! ( enc -> mrk = jpc_ms_create ( JPC_MS_QCC ) ) ) {\n return - 1 ;\n }\n qcc = & enc -> mrk -> parms . qcc ;\n qcc -> compno = cmptno ;\n qcc -> compparms . qntsty = ( tccp -> qmfbid == JPC_COX_INS ) ? JPC_QCX_SEQNT : JPC_QCX_NOQNT ;\n qcc -> compparms . numstepsizes = cp -> ccps [ cmptno ] . numstepsizes ;\n qcc -> compparms . numguard = cp -> tccp . numgbits ;\n qcc -> compparms . stepsizes = cp -> ccps [ cmptno ] . stepsizes ;\n if ( jpc_putms ( enc -> out , enc -> cstate , enc -> mrk ) ) {\n return - 1 ;\n }\n qcc -> compparms . stepsizes = 0 ;\n jpc_ms_destroy ( enc -> mrk ) ;\n enc -> mrk = 0 ;\n }\n # define MAINTLRLEN 2 mainhdrlen = jas_stream_getrwcount ( enc -> out ) - startoff ;\n enc -> len += mainhdrlen ;\n if ( enc -> cp -> totalsize != UINT_FAST32_MAX ) {\n uint_fast32_t overhead ;\n overhead = mainhdrlen + MAINTLRLEN ;\n enc -> mainbodysize = ( enc -> cp -> totalsize >= overhead ) ? ( enc -> cp -> totalsize - overhead ) : 0 ;\n }\n else {\n enc -> mainbodysize = UINT_FAST32_MAX ;\n }\n return 0 ;\n }"}
{"idx": 14825, "target": 1, "func": "static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING ) ;\n # ifdef _MSC_VER # pragma warning ( push ) # pragma warning ( disable : 4090 ) # endif DEFINE_LHASH_OF ( OPENSSL_CSTRING )"}
{"idx": 14826, "target": 0, "func": "static void fts_build_parse_content_disposition ( struct fts_mail_build_context * ctx , const struct message_header_line * hdr ) {\n i_free ( ctx -> content_disposition ) ;\n ctx -> content_disposition = i_strndup ( hdr -> full_value , hdr -> full_value_len ) ;\n }"}
{"idx": 14827, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ExtensionPreferenceApiTest , Clear ) {\n PrefService * prefs = profile_ -> GetPrefs ( ) ;\n prefs -> SetBoolean ( prefs : : kBlockThirdPartyCookies , true ) ;\n EXPECT_TRUE ( RunExtensionTest ( \"preference/clear\" ) ) << message_ ;\n const PrefService : : Preference * pref = prefs -> FindPreference ( prefs : : kBlockThirdPartyCookies ) ;\n ASSERT_TRUE ( pref ) ;\n EXPECT_FALSE ( pref -> IsExtensionControlled ( ) ) ;\n EXPECT_EQ ( true , prefs -> GetBoolean ( prefs : : kBlockThirdPartyCookies ) ) ;\n }"}
{"idx": 14828, "target": 0, "func": "tvbuff_t * ptvcursor_tvbuff ( ptvcursor_t * ptvc ) {\n return ptvc -> tvb ;\n }"}
{"idx": 14829, "target": 0, "func": "static int aes_cfb1_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( EVP_CIPHER_CTX_test_flags ( ctx , EVP_CIPH_FLAG_LENGTH_BITS ) ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n while ( len >= MAXBITCHUNK ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , MAXBITCHUNK * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n len -= MAXBITCHUNK ;\n }\n if ( len ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n }\n return 1 ;\n }"}
{"idx": 14830, "target": 0, "func": "static inline int pfkey_sockaddr_len ( sa_family_t family ) {\n switch ( family ) {\n case AF_INET : return sizeof ( struct sockaddr_in ) ;\n # if IS_ENABLED ( CONFIG_IPV6 ) case AF_INET6 : return sizeof ( struct sockaddr_in6 ) ;\n # endif }\n return 0 ;\n }"}
{"idx": 14831, "target": 0, "func": "static int lookup_gname_helper ( struct cpio * cpio , const char * * name , id_t id ) {\n struct group * grent ;\n ( void ) cpio ;\n errno = 0 ;\n grent = getgrgid ( ( gid_t ) id ) ;\n if ( grent == NULL ) {\n * name = NULL ;\n if ( errno != 0 ) lafe_warnc ( errno , \"getgrgid(%s) failed\" , cpio_i64toa ( ( int64_t ) id ) ) ;\n return ( errno ) ;\n }\n * name = grent -> gr_name ;\n return ( 0 ) ;\n }"}
{"idx": 14832, "target": 0, "func": "static int main_pipe_write ( int outfd , uint8_t * exist_buf , usize_t remain ) {\n int ret ;\n if ( ( ret = xd3_posix_io ( outfd , exist_buf , remain , ( xd3_posix_func * ) & write , NULL ) ) ) {\n return ret ;\n }\n return 0 ;\n }"}
{"idx": 14833, "target": 0, "func": "fz_colorspace * fz_new_icc_colorspace_from_file ( fz_context * ctx , const char * name , const char * path ) {\n fz_colorspace * cs = NULL ;\n fz_buffer * buffer = fz_read_file ( ctx , path ) ;\n fz_try ( ctx ) cs = fz_new_icc_colorspace ( ctx , name , 0 , buffer ) ;\n fz_always ( ctx ) fz_drop_buffer ( ctx , buffer ) ;\n fz_catch ( ctx ) fz_rethrow ( ctx ) ;\n return cs ;\n }"}
{"idx": 14834, "target": 0, "func": "zend_object_iterator * spl_filesystem_dir_get_iterator ( zend_class_entry * ce , zval * object , int by_ref TSRMLS_DC ) {\n spl_filesystem_iterator * iterator ;\n spl_filesystem_object * dir_object ;\n if ( by_ref ) {\n zend_error ( E_ERROR , \"An iterator cannot be used with foreach by reference\" ) ;\n }\n dir_object = ( spl_filesystem_object * ) zend_object_store_get_object ( object TSRMLS_CC ) ;\n iterator = spl_filesystem_object_to_iterator ( dir_object ) ;\n if ( iterator -> intern . data == NULL ) {\n iterator -> intern . data = object ;\n iterator -> intern . funcs = & spl_filesystem_dir_it_funcs ;\n iterator -> current = object ;\n }\n zval_add_ref ( & object ) ;\n return ( zend_object_iterator * ) iterator ;\n }"}
{"idx": 14835, "target": 1, "func": "void DefaultTTFEnglishNames ( struct ttflangname * dummy , SplineFont * sf ) {\n time_t now ;\n struct tm * tm ;\n char buffer [ 200 ] ;\n if ( dummy -> names [ ttf_copyright ] == NULL || * dummy -> names [ ttf_copyright ] == '\\0' ) dummy -> names [ ttf_copyright ] = utf8_verify_copy ( sf -> copyright ) ;\n if ( dummy -> names [ ttf_family ] == NULL || * dummy -> names [ ttf_family ] == '\\0' ) dummy -> names [ ttf_family ] = utf8_verify_copy ( sf -> familyname ) ;\n if ( dummy -> names [ ttf_subfamily ] == NULL || * dummy -> names [ ttf_subfamily ] == '\\0' ) dummy -> names [ ttf_subfamily ] = utf8_verify_copy ( SFGetModifiers ( sf ) ) ;\n if ( dummy -> names [ ttf_uniqueid ] == NULL || * dummy -> names [ ttf_uniqueid ] == '\\0' ) {\n time ( & now ) ;\n tm = localtime ( & now ) ;\n sprintf ( buffer , \"%s : %s : %d-%d-%d\" , BDFFoundry ? BDFFoundry : TTFFoundry ? TTFFoundry : \"FontForge 2.0\" , sf -> fullname != NULL ? sf -> fullname : sf -> fontname , tm -> tm_mday , tm -> tm_mon + 1 , tm -> tm_year + 1900 ) ;\n dummy -> names [ ttf_uniqueid ] = copy ( buffer ) ;\n }\n if ( dummy -> names [ ttf_fullname ] == NULL || * dummy -> names [ ttf_fullname ] == '\\0' ) dummy -> names [ ttf_fullname ] = utf8_verify_copy ( sf -> fullname ) ;\n if ( dummy -> names [ ttf_version ] == NULL || * dummy -> names [ ttf_version ] == '\\0' ) {\n if ( sf -> subfontcnt != 0 ) sprintf ( buffer , \"Version %f \" , ( double ) sf -> cidversion ) ;\n else if ( sf -> version != NULL ) sprintf ( buffer , \"Version %.20s \" , sf -> version ) ;\n else strcpy ( buffer , \"Version 1.0\" ) ;\n dummy -> names [ ttf_version ] = copy ( buffer ) ;\n }\n if ( dummy -> names [ ttf_postscriptname ] == NULL || * dummy -> names [ ttf_postscriptname ] == '\\0' ) dummy -> names [ ttf_postscriptname ] = utf8_verify_copy ( sf -> fontname ) ;\n }"}
{"idx": 14836, "target": 0, "func": "void vp9_denoiser_reset_frame_stats ( PICK_MODE_CONTEXT * ctx ) {\n ctx -> zeromv_sse = UINT_MAX ;\n ctx -> newmv_sse = UINT_MAX ;\n }"}
{"idx": 14837, "target": 1, "func": "void vp9_idct16x16_10_add_c ( const int16_t * input , uint8_t * dest , int stride ) {\n int16_t out [ 16 * 16 ] = {\n 0 }\n ;\n int16_t * outptr = out ;\n int i , j ;\n int16_t temp_in [ 16 ] , temp_out [ 16 ] ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) {\n idct16 ( input , outptr ) ;\n input += 16 ;\n outptr += 16 ;\n }\n for ( i = 0 ;\n i < 16 ;\n ++ i ) {\n for ( j = 0 ;\n j < 16 ;\n ++ j ) temp_in [ j ] = out [ j * 16 + i ] ;\n idct16 ( temp_in , temp_out ) ;\n for ( j = 0 ;\n j < 16 ;\n ++ j ) dest [ j * stride + i ] = clip_pixel ( ROUND_POWER_OF_TWO ( temp_out [ j ] , 6 ) + dest [ j * stride + i ] ) ;\n }\n }"}
{"idx": 14838, "target": 0, "func": "TEST ( BuildTime , DateLooksValid ) {\n char build_date [ ] = BUILD_DATE ;\n EXPECT_EQ ( 11u , strlen ( build_date ) ) ;\n EXPECT_EQ ( ' ' , build_date [ 3 ] ) ;\n EXPECT_EQ ( ' ' , build_date [ 6 ] ) ;\n }"}
{"idx": 14839, "target": 0, "func": "void evhttp_send_reply_start ( struct evhttp_request * req , int code , const char * reason ) {\n evhttp_response_code ( req , code , reason ) ;\n if ( req -> major == 1 && req -> minor == 1 ) {\n evhttp_add_header ( req -> output_headers , \"Transfer-Encoding\" , \"chunked\" ) ;\n req -> chunked = 1 ;\n }\n evhttp_make_header ( req -> evcon , req ) ;\n evhttp_write_buffer ( req -> evcon , NULL , NULL ) ;\n }"}
{"idx": 14840, "target": 0, "func": "tm_task_id new_task ( char * jobid , tm_node_id node , tm_task_id task ) {\n task_info * tp , * * head ;\n TM_DBPRT ( ( \"%s: jobid=%s node=%d task=%lu\\n\" , __func__ , jobid , node , ( unsigned long ) task ) ) if ( jobid != tm_jobid && strcmp ( jobid , tm_jobid ) != 0 ) {\n TM_DBPRT ( ( \"%s: task job %s not my job %s\\n\" , __func__ , jobid , tm_jobid ) ) return TM_NULL_TASK ;\n }\n if ( node == TM_ERROR_NODE ) {\n TM_DBPRT ( ( \"%s: called with TM_ERROR_NODE\\n\" , __func__ ) ) return TM_NULL_TASK ;\n }\n if ( ( tp = find_task ( task ) ) != NULL ) {\n TM_DBPRT ( ( \"%s: task %lu found with node %d should be %d\\n\" , __func__ , ( unsigned long ) task , tp -> t_node , node ) ) return task ;\n }\n if ( ( tp = ( task_info * ) calloc ( 1 , sizeof ( task_info ) ) ) == NULL ) return TM_NULL_TASK ;\n head = & task_hash [ task % TASK_HASH ] ;\n tp -> t_jobid = tm_jobid ;\n tp -> t_task = task ;\n tp -> t_node = node ;\n tp -> t_next = * head ;\n * head = tp ;\n return task ;\n }"}
{"idx": 14841, "target": 0, "func": "static void decode_ber_add_to_list ( gpointer key , gpointer value , gpointer user_data ) {\n struct ber_decode_as_populate * populate = ( struct ber_decode_as_populate * ) user_data ;\n populate -> add_to_list ( \"ASN.1\" , ( gchar * ) key , value , populate -> ui_element ) ;\n }"}
{"idx": 14842, "target": 0, "func": "int evdns_nameserver_add ( unsigned long int address ) {\n return _evdns_nameserver_add_impl ( address , 53 ) ;\n }"}
{"idx": 14843, "target": 0, "func": "static void _slurm_rpc_job_step_get_info ( slurm_msg_t * msg ) {\n DEF_TIMERS ;\n void * resp_buffer = NULL ;\n int resp_buffer_size = 0 ;\n int error_code = SLURM_SUCCESS ;\n job_step_info_request_msg_t * request = ( job_step_info_request_msg_t * ) msg -> data ;\n slurmctld_lock_t job_read_lock = {\n READ_LOCK , READ_LOCK , NO_LOCK , READ_LOCK , NO_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n START_TIMER ;\n if ( slurmctld_conf . debug_flags & DEBUG_FLAG_STEPS ) debug ( \"Processing RPC: REQUEST_JOB_STEP_INFO from uid=%d\" , uid ) ;\n lock_slurmctld ( job_read_lock ) ;\n if ( ( request -> last_update - 1 ) >= last_job_update ) {\n unlock_slurmctld ( job_read_lock ) ;\n if ( slurmctld_conf . debug_flags & DEBUG_FLAG_STEPS ) debug ( \"%s, no change\" , __func__ ) ;\n error_code = SLURM_NO_CHANGE_IN_DATA ;\n }\n else {\n Buf buffer = init_buf ( BUF_SIZE ) ;\n error_code = pack_ctld_job_step_info_response_msg ( request -> job_id , request -> step_id , uid , request -> show_flags , buffer , msg -> protocol_version ) ;\n unlock_slurmctld ( job_read_lock ) ;\n END_TIMER2 ( \"_slurm_rpc_job_step_get_info\" ) ;\n if ( error_code ) {\n if ( slurmctld_conf . debug_flags & DEBUG_FLAG_STEPS ) debug ( \"%s: %s\" , __func__ , slurm_strerror ( error_code ) ) ;\n free_buf ( buffer ) ;\n }\n else {\n resp_buffer_size = get_buf_offset ( buffer ) ;\n resp_buffer = xfer_buf_data ( buffer ) ;\n if ( slurmctld_conf . debug_flags & DEBUG_FLAG_STEPS ) debug ( \"%s size=%d %s\" , __func__ , resp_buffer_size , TIME_STR ) ;\n }\n }\n if ( error_code ) slurm_send_rc_msg ( msg , error_code ) ;\n else {\n slurm_msg_t response_msg ;\n slurm_msg_t_init ( & response_msg ) ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . address = msg -> address ;\n response_msg . conn = msg -> conn ;\n response_msg . msg_type = RESPONSE_JOB_STEP_INFO ;\n response_msg . data = resp_buffer ;\n response_msg . data_size = resp_buffer_size ;\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n xfree ( resp_buffer ) ;\n }\n }"}
{"idx": 14844, "target": 0, "func": "static BusState * qbus_find_bus ( DeviceState * dev , char * elem ) {\n BusState * child ;\n QLIST_FOREACH ( child , & dev -> child_bus , sibling ) {\n if ( strcmp ( child -> name , elem ) == 0 ) {\n return child ;\n }\n }\n return NULL ;\n }"}
{"idx": 14845, "target": 0, "func": "static guint16 de_prog_ind ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint8 oct , coding_standard , progress_description ;\n guint32 curr_offset ;\n curr_offset = offset ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n coding_standard = ( oct & 0x60 ) >> 5 ;\n proto_tree_add_item ( tree , hf_gsm_a_extension , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_prog_coding_standard , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( curr_offset << 3 ) + 3 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_location , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n progress_description = oct & 0x7f ;\n proto_tree_add_item ( tree , hf_gsm_a_extension , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n switch ( coding_standard ) {\n case 0 : proto_tree_add_uint_format_value ( tree , hf_gsm_a_dtap_progress_description , tvb , curr_offset , 1 , progress_description , \"%s (%u)\" , val_to_str_ext_const ( progress_description , & q931_progress_description_vals_ext , \"Reserved\" ) , progress_description ) ;\n break ;\n case 1 : case 2 : proto_tree_add_item ( tree , hf_gsm_a_dtap_progress_description , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n break ;\n default : proto_tree_add_uint_format_value ( tree , hf_gsm_a_dtap_progress_description , tvb , curr_offset , 1 , progress_description , \"%s (%u)\" , val_to_str_const ( progress_description , gsm_a_dtap_progress_description_vals , \"Unspecific\" ) , progress_description ) ;\n break ;\n }\n curr_offset ++ ;\n EXTRANEOUS_DATA_CHECK ( len , curr_offset - offset , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 14846, "target": 0, "func": "static int myisam_init ( void * p ) {\n handlerton * myisam_hton ;\n # ifdef HAVE_PSI_INTERFACE init_myisam_psi_keys ( ) ;\n # endif if ( myisam_recover_options ) ha_open_options |= HA_OPEN_ABORT_IF_CRASHED ;\n else myisam_recover_options = HA_RECOVER_OFF ;\n myisam_block_size = ( uint ) 1 << my_bit_log2 ( opt_myisam_block_size ) ;\n myisam_hton = ( handlerton * ) p ;\n myisam_hton -> state = SHOW_OPTION_YES ;\n myisam_hton -> db_type = DB_TYPE_MYISAM ;\n myisam_hton -> create = myisam_create_handler ;\n myisam_hton -> panic = myisam_panic ;\n myisam_hton -> flags = HTON_CAN_RECREATE | HTON_SUPPORT_LOG_TABLES ;\n myisam_hton -> is_supported_system_table = myisam_is_supported_system_table ;\n return 0 ;\n }"}
{"idx": 14847, "target": 1, "func": "static UChar32 _UTF16LEGetNextUChar ( UConverterToUnicodeArgs * pArgs , UErrorCode * err ) {\n const uint8_t * s , * sourceLimit ;\n UChar32 c ;\n if ( pArgs -> converter -> mode < 8 ) {\n return UCNV_GET_NEXT_UCHAR_USE_TO_U ;\n }\n s = ( const uint8_t * ) pArgs -> source ;\n sourceLimit = ( const uint8_t * ) pArgs -> sourceLimit ;\n if ( s >= sourceLimit ) {\n * err = U_INDEX_OUTOFBOUNDS_ERROR ;\n return 0xffff ;\n }\n if ( s + 2 > sourceLimit ) {\n pArgs -> converter -> toUBytes [ 0 ] = * s ++ ;\n pArgs -> converter -> toULength = 1 ;\n pArgs -> source = ( const char * ) s ;\n * err = U_TRUNCATED_CHAR_FOUND ;\n return 0xffff ;\n }\n c = ( ( UChar32 ) s [ 1 ] << 8 ) | * s ;\n s += 2 ;\n if ( U_IS_SURROGATE ( c ) ) {\n if ( U16_IS_SURROGATE_LEAD ( c ) ) {\n if ( s + 2 <= sourceLimit ) {\n UChar trail ;\n trail = ( ( UChar ) s [ 1 ] << 8 ) | * s ;\n if ( U16_IS_TRAIL ( trail ) ) {\n c = U16_GET_SUPPLEMENTARY ( c , trail ) ;\n s += 2 ;\n }\n else {\n c = - 2 ;\n }\n }\n else {\n uint8_t * bytes = pArgs -> converter -> toUBytes ;\n s -= 2 ;\n pArgs -> converter -> toULength = ( int8_t ) ( sourceLimit - s ) ;\n do {\n * bytes ++ = * s ++ ;\n }\n while ( s < sourceLimit ) ;\n c = 0xffff ;\n * err = U_TRUNCATED_CHAR_FOUND ;\n }\n }\n else {\n c = - 2 ;\n }\n if ( c < 0 ) {\n uint8_t * bytes = pArgs -> converter -> toUBytes ;\n pArgs -> converter -> toULength = 2 ;\n * bytes = * ( s - 2 ) ;\n bytes [ 1 ] = * ( s - 1 ) ;\n c = 0xffff ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n pArgs -> source = ( const char * ) s ;\n return c ;\n }"}
{"idx": 14848, "target": 0, "func": "static rfbClientPtr rfbNewTCPOrUDPClient ( rfbScreenInfoPtr rfbScreen , int sock , rfbBool isUDP ) {\n rfbProtocolVersionMsg pv ;\n rfbClientIteratorPtr iterator ;\n rfbClientPtr cl , cl_ ;\n # ifdef LIBVNCSERVER_IPv6 struct sockaddr_storage addr ;\n # else struct sockaddr_in addr ;\n # endif socklen_t addrlen = sizeof ( addr ) ;\n rfbProtocolExtension * extension ;\n cl = ( rfbClientPtr ) calloc ( sizeof ( rfbClientRec ) , 1 ) ;\n cl -> screen = rfbScreen ;\n cl -> sock = sock ;\n cl -> viewOnly = FALSE ;\n cl -> scaledScreen = rfbScreen ;\n cl -> scaledScreen -> scaledScreenRefCount ++ ;\n rfbResetStats ( cl ) ;\n cl -> clientData = NULL ;\n cl -> clientGoneHook = rfbDoNothingWithClient ;\n if ( isUDP ) {\n rfbLog ( \" accepted UDP client\\n\" ) ;\n }\n else {\n # ifdef LIBVNCSERVER_IPv6 char host [ 1024 ] ;\n # endif int one = 1 ;\n getpeername ( sock , ( struct sockaddr * ) & addr , & addrlen ) ;\n # ifdef LIBVNCSERVER_IPv6 if ( getnameinfo ( ( struct sockaddr * ) & addr , addrlen , host , sizeof ( host ) , NULL , 0 , NI_NUMERICHOST ) != 0 ) {\n rfbLogPerror ( \"rfbNewClient: error in getnameinfo\" ) ;\n cl -> host = strdup ( \"\" ) ;\n }\n else cl -> host = strdup ( host ) ;\n # else cl -> host = strdup ( inet_ntoa ( addr . sin_addr ) ) ;\n # endif rfbLog ( \" other clients:\\n\" ) ;\n iterator = rfbGetClientIterator ( rfbScreen ) ;\n while ( ( cl_ = rfbClientIteratorNext ( iterator ) ) != NULL ) {\n rfbLog ( \" %s\\n\" , cl_ -> host ) ;\n }\n rfbReleaseClientIterator ( iterator ) ;\n if ( ! rfbSetNonBlocking ( sock ) ) {\n close ( sock ) ;\n return NULL ;\n }\n if ( setsockopt ( sock , IPPROTO_TCP , TCP_NODELAY , ( char * ) & one , sizeof ( one ) ) < 0 ) {\n rfbLogPerror ( \"setsockopt failed: can't set TCP_NODELAY flag, non TCP socket?\" ) ;\n }\n FD_SET ( sock , & ( rfbScreen -> allFds ) ) ;\n rfbScreen -> maxFd = rfbMax ( sock , rfbScreen -> maxFd ) ;\n INIT_MUTEX ( cl -> outputMutex ) ;\n INIT_MUTEX ( cl -> refCountMutex ) ;\n INIT_MUTEX ( cl -> sendMutex ) ;\n INIT_COND ( cl -> deleteCond ) ;\n cl -> state = RFB_PROTOCOL_VERSION ;\n cl -> reverseConnection = FALSE ;\n cl -> readyForSetColourMapEntries = FALSE ;\n cl -> useCopyRect = FALSE ;\n cl -> preferredEncoding = - 1 ;\n cl -> correMaxWidth = 48 ;\n cl -> correMaxHeight = 48 ;\n # ifdef LIBVNCSERVER_HAVE_LIBZ cl -> zrleData = NULL ;\n # endif cl -> copyRegion = sraRgnCreate ( ) ;\n cl -> copyDX = 0 ;\n cl -> copyDY = 0 ;\n cl -> modifiedRegion = sraRgnCreateRect ( 0 , 0 , rfbScreen -> width , rfbScreen -> height ) ;\n INIT_MUTEX ( cl -> updateMutex ) ;\n INIT_COND ( cl -> updateCond ) ;\n cl -> requestedRegion = sraRgnCreate ( ) ;\n cl -> format = cl -> screen -> serverFormat ;\n cl -> translateFn = rfbTranslateNone ;\n cl -> translateLookupTable = NULL ;\n LOCK ( rfbClientListMutex ) ;\n IF_PTHREADS ( cl -> refCount = 0 ) ;\n cl -> next = rfbScreen -> clientHead ;\n cl -> prev = NULL ;\n if ( rfbScreen -> clientHead ) rfbScreen -> clientHead -> prev = cl ;\n rfbScreen -> clientHead = cl ;\n UNLOCK ( rfbClientListMutex ) ;\n # if defined ( LIBVNCSERVER_HAVE_LIBZ ) || defined ( LIBVNCSERVER_HAVE_LIBPNG ) cl -> tightQualityLevel = - 1 ;\n # ifdef LIBVNCSERVER_HAVE_LIBJPEG cl -> tightCompressLevel = TIGHT_DEFAULT_COMPRESSION ;\n cl -> turboSubsampLevel = TURBO_DEFAULT_SUBSAMP ;\n {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) cl -> zsActive [ i ] = FALSE ;\n }\n # endif # endif cl -> fileTransfer . fd = - 1 ;\n cl -> enableCursorShapeUpdates = FALSE ;\n cl -> enableCursorPosUpdates = FALSE ;\n cl -> useRichCursorEncoding = FALSE ;\n cl -> enableLastRectEncoding = FALSE ;\n cl -> enableKeyboardLedState = FALSE ;\n cl -> enableSupportedMessages = FALSE ;\n cl -> enableSupportedEncodings = FALSE ;\n cl -> enableServerIdentity = FALSE ;\n cl -> lastKeyboardLedState = - 1 ;\n cl -> cursorX = rfbScreen -> cursorX ;\n cl -> cursorY = rfbScreen -> cursorY ;\n cl -> useNewFBSize = FALSE ;\n # ifdef LIBVNCSERVER_HAVE_LIBZ cl -> compStreamInited = FALSE ;\n cl -> compStream . total_in = 0 ;\n cl -> compStream . total_out = 0 ;\n cl -> compStream . zalloc = Z_NULL ;\n cl -> compStream . zfree = Z_NULL ;\n cl -> compStream . opaque = Z_NULL ;\n cl -> zlibCompressLevel = 5 ;\n # endif cl -> progressiveSliceY = 0 ;\n cl -> extensions = NULL ;\n cl -> lastPtrX = - 1 ;\n # ifdef LIBVNCSERVER_WITH_WEBSOCKETS if ( ! webSocketsCheck ( cl ) ) {\n rfbCloseClient ( cl ) ;\n rfbClientConnectionGone ( cl ) ;\n return NULL ;\n }\n # endif sprintf ( pv , rfbProtocolVersionFormat , rfbScreen -> protocolMajorVersion , rfbScreen -> protocolMinorVersion ) ;\n if ( rfbWriteExact ( cl , pv , sz_rfbProtocolVersionMsg ) < 0 ) {\n rfbLogPerror ( \"rfbNewClient: write\" ) ;\n rfbCloseClient ( cl ) ;\n rfbClientConnectionGone ( cl ) ;\n return NULL ;\n }\n }\n for ( extension = rfbGetExtensionIterator ( ) ;\n extension ;\n extension = extension -> next ) {\n void * data = NULL ;\n if ( extension -> newClient && extension -> newClient ( cl , & data ) ) rfbEnableExtension ( cl , extension , data ) ;\n }\n rfbReleaseExtensionIterator ( ) ;\n switch ( cl -> screen -> newClientHook ( cl ) ) {\n case RFB_CLIENT_ON_HOLD : cl -> onHold = TRUE ;\n break ;\n case RFB_CLIENT_ACCEPT : cl -> onHold = FALSE ;\n break ;\n case RFB_CLIENT_REFUSE : rfbCloseClient ( cl ) ;\n rfbClientConnectionGone ( cl ) ;\n cl = NULL ;\n break ;\n }\n return cl ;\n }"}
{"idx": 14849, "target": 0, "func": "static void full_to_model_counts ( vp9_coeff_count_model * model_count , vp9_coeff_count * full_count ) {\n int i , j , k , l ;\n for ( i = 0 ;\n i < PLANE_TYPES ;\n ++ i ) for ( j = 0 ;\n j < REF_TYPES ;\n ++ j ) for ( k = 0 ;\n k < COEF_BANDS ;\n ++ k ) for ( l = 0 ;\n l < BAND_COEFF_CONTEXTS ( k ) ;\n ++ l ) full_to_model_count ( model_count [ i ] [ j ] [ k ] [ l ] , full_count [ i ] [ j ] [ k ] [ l ] ) ;\n }"}
{"idx": 14850, "target": 0, "func": "static int dissect_FORM_1 ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n proto_tree * subtree ;\n guint32 flags ;\n subtree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_FORM_1 , NULL , \"Form level 1\" ) ;\n offset = dissect_ndr_str_pointer_item ( tvb , offset , pinfo , subtree , di , drep , NDR_POINTER_UNIQUE , \"Name\" , hf_form_name , 0 ) ;\n if ( tvb_reported_length_remaining ( tvb , offset ) <= 0 ) goto done ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_form_flags , & flags ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_form_unknown , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_form_width , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_form_height , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_form_left_margin , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_form_top_margin , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_form_horiz_len , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_form_vert_len , NULL ) ;\n done : return offset ;\n }"}
{"idx": 14851, "target": 0, "func": "static int patch_hypercalls ( VAPICROMState * s ) {\n hwaddr rom_paddr = s -> rom_state_paddr & ROM_BLOCK_MASK ;\n static const uint8_t vmcall_pattern [ ] = {\n 0xb8 , 0x1 , 0 , 0 , 0 , 0xf , 0x1 , 0xc1 }\n ;\n static const uint8_t outl_pattern [ ] = {\n 0xb8 , 0x1 , 0 , 0 , 0 , 0x90 , 0xe7 , 0x7e }\n ;\n uint8_t alternates [ 2 ] ;\n const uint8_t * pattern ;\n const uint8_t * patch ;\n int patches = 0 ;\n off_t pos ;\n uint8_t * rom ;\n rom = g_malloc ( s -> rom_size ) ;\n cpu_physical_memory_rw ( rom_paddr , rom , s -> rom_size , 0 ) ;\n for ( pos = 0 ;\n pos < s -> rom_size - sizeof ( vmcall_pattern ) ;\n pos ++ ) {\n if ( kvm_irqchip_in_kernel ( ) ) {\n pattern = outl_pattern ;\n alternates [ 0 ] = outl_pattern [ 7 ] ;\n alternates [ 1 ] = outl_pattern [ 7 ] ;\n patch = & vmcall_pattern [ 5 ] ;\n }\n else {\n pattern = vmcall_pattern ;\n alternates [ 0 ] = vmcall_pattern [ 7 ] ;\n alternates [ 1 ] = 0xd9 ;\n patch = & outl_pattern [ 5 ] ;\n }\n if ( memcmp ( rom + pos , pattern , 7 ) == 0 && ( rom [ pos + 7 ] == alternates [ 0 ] || rom [ pos + 7 ] == alternates [ 1 ] ) ) {\n cpu_physical_memory_rw ( rom_paddr + pos + 5 , ( uint8_t * ) patch , 3 , 1 ) ;\n }\n }\n g_free ( rom ) ;\n if ( patches != 0 && patches != 2 ) {\n return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 14852, "target": 0, "func": "static int dissect_dns_query ( tvbuff_t * tvb , int offset , int dns_data_offset , column_info * cinfo , proto_tree * dns_tree , gboolean is_mdns ) {\n int len ;\n const guchar * name ;\n gchar * name_out ;\n int name_len ;\n int type ;\n int dns_class ;\n int qu ;\n const char * type_name ;\n int data_start ;\n guint16 labels ;\n proto_tree * q_tree ;\n proto_item * tq ;\n data_start = offset ;\n len = get_dns_name_type_class ( tvb , offset , dns_data_offset , & name , & name_len , & type , & dns_class ) ;\n if ( is_mdns ) {\n qu = dns_class & C_QU ;\n dns_class &= ~ C_QU ;\n }\n else {\n qu = 0 ;\n }\n type_name = val_to_str_ext ( type , & dns_types_vals_ext , \"Unknown (%d)\" ) ;\n name_out = format_text ( name , strlen ( name ) ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \"%s %s\" , type_name , name_out ) ;\n if ( is_mdns ) {\n col_append_fstr ( cinfo , COL_INFO , \", \\\"%s\\\" question\" , qu ? \"QU\" : \"QM\" ) ;\n }\n }\n if ( dns_tree != NULL ) {\n q_tree = proto_tree_add_subtree_format ( dns_tree , tvb , offset , len , ett_dns_qd , & tq , \"%s: type %s, class %s\" , name_out , type_name , val_to_str_const ( dns_class , dns_classes , \"Unknown\" ) ) ;\n if ( is_mdns ) {\n proto_item_append_text ( tq , \", \\\"%s\\\" question\" , qu ? \"QU\" : \"QM\" ) ;\n }\n proto_tree_add_string ( q_tree , hf_dns_qry_name , tvb , offset , name_len , name ) ;\n tq = proto_tree_add_uint ( q_tree , hf_dns_qry_name_len , tvb , offset , name_len , name_len > 1 ? ( guint32 ) strlen ( name ) : 0 ) ;\n PROTO_ITEM_SET_GENERATED ( tq ) ;\n labels = qname_labels_count ( name , name_len ) ;\n tq = proto_tree_add_uint ( q_tree , hf_dns_count_labels , tvb , offset , name_len , labels ) ;\n PROTO_ITEM_SET_GENERATED ( tq ) ;\n offset += name_len ;\n proto_tree_add_item ( q_tree , hf_dns_qry_type , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n offset += 2 ;\n if ( is_mdns ) {\n proto_tree_add_uint ( q_tree , hf_dns_qry_class_mdns , tvb , offset , 2 , dns_class ) ;\n proto_tree_add_boolean ( q_tree , hf_dns_qry_qu , tvb , offset , 2 , qu ) ;\n }\n else {\n proto_tree_add_uint ( q_tree , hf_dns_qry_class , tvb , offset , 2 , dns_class ) ;\n }\n offset += 2 ;\n }\n if ( data_start + len != offset ) {\n }\n return len ;\n }"}
{"idx": 14853, "target": 0, "func": "ExprState * ExecPrepareExpr ( Expr * node , EState * estate ) {\n ExprState * result ;\n MemoryContext oldcontext ;\n oldcontext = MemoryContextSwitchTo ( estate -> es_query_cxt ) ;\n node = expression_planner ( node ) ;\n result = ExecInitExpr ( node , NULL ) ;\n MemoryContextSwitchTo ( oldcontext ) ;\n return result ;\n }"}
{"idx": 14854, "target": 0, "func": "static int dtls_get_reassembled_message ( SSL * s , long * len ) {\n unsigned char wire [ DTLS1_HM_HEADER_LENGTH ] ;\n unsigned long mlen , frag_off , frag_len ;\n int i , al , recvd_type ;\n struct hm_header_st msg_hdr ;\n int ok ;\n redo : if ( ( frag_len = dtls1_retrieve_buffered_fragment ( s , & ok ) ) || ok ) {\n if ( ok ) s -> init_num = frag_len ;\n * len = frag_len ;\n return ok ;\n }\n i = s -> method -> ssl_read_bytes ( s , SSL3_RT_HANDSHAKE , & recvd_type , wire , DTLS1_HM_HEADER_LENGTH , 0 ) ;\n if ( i <= 0 ) {\n s -> rwstate = SSL_READING ;\n * len = i ;\n return 0 ;\n }\n if ( recvd_type == SSL3_RT_CHANGE_CIPHER_SPEC ) {\n if ( wire [ 0 ] != SSL3_MT_CCS ) {\n al = SSL_AD_UNEXPECTED_MESSAGE ;\n SSLerr ( SSL_F_DTLS_GET_REASSEMBLED_MESSAGE , SSL_R_BAD_CHANGE_CIPHER_SPEC ) ;\n goto f_err ;\n }\n memcpy ( s -> init_buf -> data , wire , i ) ;\n s -> init_num = i - 1 ;\n s -> init_msg = s -> init_buf -> data + 1 ;\n s -> s3 -> tmp . message_type = SSL3_MT_CHANGE_CIPHER_SPEC ;\n s -> s3 -> tmp . message_size = i - 1 ;\n * len = i - 1 ;\n return 1 ;\n }\n if ( i != DTLS1_HM_HEADER_LENGTH ) {\n al = SSL_AD_UNEXPECTED_MESSAGE ;\n SSLerr ( SSL_F_DTLS_GET_REASSEMBLED_MESSAGE , SSL_R_UNEXPECTED_MESSAGE ) ;\n goto f_err ;\n }\n dtls1_get_message_header ( wire , & msg_hdr ) ;\n mlen = msg_hdr . msg_len ;\n frag_off = msg_hdr . frag_off ;\n frag_len = msg_hdr . frag_len ;\n if ( frag_len > RECORD_LAYER_get_rrec_length ( & s -> rlayer ) ) {\n al = SSL3_AD_ILLEGAL_PARAMETER ;\n SSLerr ( SSL_F_DTLS_GET_REASSEMBLED_MESSAGE , SSL_R_BAD_LENGTH ) ;\n goto f_err ;\n }\n if ( msg_hdr . seq != s -> d1 -> handshake_read_seq ) {\n * len = dtls1_process_out_of_seq_message ( s , & msg_hdr , & ok ) ;\n return ok ;\n }\n if ( frag_len && frag_len < mlen ) {\n * len = dtls1_reassemble_fragment ( s , & msg_hdr , & ok ) ;\n return ok ;\n }\n if ( ! s -> server && s -> d1 -> r_msg_hdr . frag_off == 0 && wire [ 0 ] == SSL3_MT_HELLO_REQUEST ) {\n if ( wire [ 1 ] == 0 && wire [ 2 ] == 0 && wire [ 3 ] == 0 ) {\n if ( s -> msg_callback ) s -> msg_callback ( 0 , s -> version , SSL3_RT_HANDSHAKE , wire , DTLS1_HM_HEADER_LENGTH , s , s -> msg_callback_arg ) ;\n s -> init_num = 0 ;\n goto redo ;\n }\n else {\n al = SSL_AD_UNEXPECTED_MESSAGE ;\n SSLerr ( SSL_F_DTLS_GET_REASSEMBLED_MESSAGE , SSL_R_UNEXPECTED_MESSAGE ) ;\n goto f_err ;\n }\n }\n if ( ( al = dtls1_preprocess_fragment ( s , & msg_hdr ) ) ) goto f_err ;\n if ( frag_len > 0 ) {\n unsigned char * p = ( unsigned char * ) s -> init_buf -> data + DTLS1_HM_HEADER_LENGTH ;\n i = s -> method -> ssl_read_bytes ( s , SSL3_RT_HANDSHAKE , NULL , & p [ frag_off ] , frag_len , 0 ) ;\n if ( i <= 0 ) {\n s -> rwstate = SSL_READING ;\n * len = i ;\n return 0 ;\n }\n }\n else i = 0 ;\n if ( i != ( int ) frag_len ) {\n al = SSL3_AD_ILLEGAL_PARAMETER ;\n SSLerr ( SSL_F_DTLS_GET_REASSEMBLED_MESSAGE , SSL3_AD_ILLEGAL_PARAMETER ) ;\n goto f_err ;\n }\n * len = s -> init_num = frag_len ;\n return 1 ;\n f_err : ssl3_send_alert ( s , SSL3_AL_FATAL , al ) ;\n s -> init_num = 0 ;\n * len = - 1 ;\n return 0 ;\n }"}
{"idx": 14855, "target": 0, "func": "const char * mgs_hook_http_scheme ( const request_rec * r ) {\n mgs_srvconf_rec * sc ;\n if ( r == NULL ) return NULL ;\n sc = ( mgs_srvconf_rec * ) ap_get_module_config ( r -> server -> module_config , & gnutls_module ) ;\n _gnutls_log ( debug_log_fp , \"%s: %d\\n\" , __func__ , __LINE__ ) ;\n if ( sc -> enabled == GNUTLS_ENABLED_FALSE ) {\n return NULL ;\n }\n return \"https\" ;\n }"}
{"idx": 14856, "target": 0, "func": "void vp9_tokenize_initialize ( ) {\n vp9_dct_value_tokens_ptr = dct_value_tokens + DCT_MAX_VALUE ;\n vp9_dct_value_cost_ptr = dct_value_cost + DCT_MAX_VALUE ;\n tokenize_init_one ( dct_value_tokens + DCT_MAX_VALUE , vp9_extra_bits , dct_value_cost + DCT_MAX_VALUE , DCT_MAX_VALUE ) ;\n # if CONFIG_VP9_HIGHBITDEPTH vp9_dct_value_tokens_high10_ptr = dct_value_tokens_high10 + DCT_MAX_VALUE_HIGH10 ;\n vp9_dct_value_cost_high10_ptr = dct_value_cost_high10 + DCT_MAX_VALUE_HIGH10 ;\n tokenize_init_one ( dct_value_tokens_high10 + DCT_MAX_VALUE_HIGH10 , vp9_extra_bits_high10 , dct_value_cost_high10 + DCT_MAX_VALUE_HIGH10 , DCT_MAX_VALUE_HIGH10 ) ;\n vp9_dct_value_tokens_high12_ptr = dct_value_tokens_high12 + DCT_MAX_VALUE_HIGH12 ;\n vp9_dct_value_cost_high12_ptr = dct_value_cost_high12 + DCT_MAX_VALUE_HIGH12 ;\n tokenize_init_one ( dct_value_tokens_high12 + DCT_MAX_VALUE_HIGH12 , vp9_extra_bits_high12 , dct_value_cost_high12 + DCT_MAX_VALUE_HIGH12 , DCT_MAX_VALUE_HIGH12 ) ;\n # endif }"}
{"idx": 14857, "target": 0, "func": "static int SpoolssEnumPrinterDataEx_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n guint32 size , num_values ;\n proto_item * hidden_item ;\n hidden_item = proto_tree_add_uint ( tree , hf_printerdata , tvb , offset , 0 , 1 ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_buffer_size , & size ) ;\n dissect_ndr_uint32 ( tvb , offset + size + 4 , pinfo , NULL , di , drep , hf_returned , & num_values ) ;\n if ( size ) {\n proto_tree * subtree ;\n int offset2 = offset ;\n guint32 i ;\n subtree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_PRINTER_DATA_CTR , NULL , \"Printer data\" ) ;\n for ( i = 0 ;\n i < num_values ;\n i ++ ) offset2 = dissect_spoolss_printer_enum_values ( tvb , offset2 , pinfo , subtree , di , drep ) ;\n }\n offset += size ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_needed , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_returned , NULL ) ;\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 14858, "target": 0, "func": "static void put_frame ( AVFormatContext * s , ASFStream * stream , AVStream * avst , int64_t timestamp , const uint8_t * buf , int m_obj_size , int flags ) {\n ASFContext * asf = s -> priv_data ;\n int m_obj_offset , payload_len , frag_len1 ;\n m_obj_offset = 0 ;\n while ( m_obj_offset < m_obj_size ) {\n payload_len = m_obj_size - m_obj_offset ;\n if ( asf -> packet_timestamp_start == - 1 ) {\n asf -> multi_payloads_present = ( payload_len < MULTI_PAYLOAD_CONSTANT ) ;\n asf -> packet_size_left = PACKET_SIZE ;\n if ( asf -> multi_payloads_present ) {\n frag_len1 = MULTI_PAYLOAD_CONSTANT - 1 ;\n }\n else {\n frag_len1 = SINGLE_PAYLOAD_DATA_LENGTH ;\n }\n asf -> packet_timestamp_start = timestamp ;\n }\n else {\n frag_len1 = asf -> packet_size_left - PAYLOAD_HEADER_SIZE_MULTIPLE_PAYLOADS - PACKET_HEADER_MIN_SIZE - 1 ;\n if ( frag_len1 < payload_len && avst -> codec -> codec_type == AVMEDIA_TYPE_AUDIO ) {\n flush_packet ( s ) ;\n continue ;\n }\n if ( asf -> packet_timestamp_start > INT64_MAX - UINT16_MAX || timestamp > asf -> packet_timestamp_start + UINT16_MAX ) {\n flush_packet ( s ) ;\n continue ;\n }\n }\n if ( frag_len1 > 0 ) {\n if ( payload_len > frag_len1 ) payload_len = frag_len1 ;\n else if ( payload_len == ( frag_len1 - 1 ) ) payload_len = frag_len1 - 2 ;\n put_payload_header ( s , stream , timestamp + PREROLL_TIME , m_obj_size , m_obj_offset , payload_len , flags ) ;\n avio_write ( & asf -> pb , buf , payload_len ) ;\n if ( asf -> multi_payloads_present ) asf -> packet_size_left -= ( payload_len + PAYLOAD_HEADER_SIZE_MULTIPLE_PAYLOADS ) ;\n else asf -> packet_size_left -= ( payload_len + PAYLOAD_HEADER_SIZE_SINGLE_PAYLOAD ) ;\n asf -> packet_timestamp_end = timestamp ;\n asf -> packet_nb_payloads ++ ;\n }\n else {\n payload_len = 0 ;\n }\n m_obj_offset += payload_len ;\n buf += payload_len ;\n if ( ! asf -> multi_payloads_present ) flush_packet ( s ) ;\n else if ( asf -> packet_size_left <= ( PAYLOAD_HEADER_SIZE_MULTIPLE_PAYLOADS + PACKET_HEADER_MIN_SIZE + 1 ) ) flush_packet ( s ) ;\n else if ( asf -> packet_nb_payloads == ASF_PAYLOADS_PER_PACKET ) flush_packet ( s ) ;\n }\n stream -> seq ++ ;\n }"}
{"idx": 14859, "target": 0, "func": "static void evhttp_maybe_add_date_header ( struct evkeyvalq * headers ) {\n if ( evhttp_find_header ( headers , \"Date\" ) == NULL ) {\n char date [ 50 ] ;\n # ifndef WIN32 struct tm cur ;\n # endif struct tm * cur_p ;\n time_t t = time ( NULL ) ;\n # ifdef WIN32 cur_p = gmtime ( & t ) ;\n # else gmtime_r ( & t , & cur ) ;\n cur_p = & cur ;\n # endif if ( strftime ( date , sizeof ( date ) , \"%a, %d %b %Y %H:%M:%S GMT\" , cur_p ) != 0 ) {\n evhttp_add_header ( headers , \"Date\" , date ) ;\n }\n }\n }"}
{"idx": 14860, "target": 1, "func": "static int execstack2_continue ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n return do_execstack ( i_ctx_p , op -> value . boolval , op - 1 ) ;\n }"}
{"idx": 14861, "target": 0, "func": "static int test_decode_integer_overflow ( xd3_stream * stream , int unused ) {\n return test_read_integer_error ( stream , 0 , \"overflow in read_intger\" ) ;\n }"}
{"idx": 14862, "target": 0, "func": "static int selinux_task_getscheduler ( struct task_struct * p ) {\n return current_has_perm ( p , PROCESS__GETSCHED ) ;\n }"}
{"idx": 14863, "target": 0, "func": "static void steamdiscover_dissect_body_proofrequest ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , gint offset , gint bytes_left ) {\n gint len ;\n gint64 value ;\n protobuf_desc_t pb = {\n tvb , offset , bytes_left }\n ;\n protobuf_tag_t tag = {\n 0 , 0 , 0 }\n ;\n while ( protobuf_iter_next ( & pb , & tag ) ) {\n switch ( tag . field_number ) {\n case STEAMDISCOVER_FN_PROOFREQUEST_CHALLENGE : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_LENGTHDELIMITED ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_item ( tree , hf_steam_ihs_discovery_body_proofrequest_challenge , pb . tvb , pb . offset + len , ( gint ) value , ENC_NA ) ;\n len += ( gint ) value ;\n break ;\n default : len = protobuf_dissect_unknown_field ( & pb , & tag , pinfo , tree , NULL ) ;\n break ;\n }\n protobuf_seek_forward ( & pb , len ) ;\n }\n }"}
{"idx": 14864, "target": 0, "func": "static int dissect_h245_T_v76wCompression ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_v76wCompression , T_v76wCompression_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 14865, "target": 0, "func": "static void gst_asf_demux_class_init ( GstASFDemuxClass * klass ) {\n GstElementClass * gstelement_class ;\n gstelement_class = ( GstElementClass * ) klass ;\n gst_element_class_set_static_metadata ( gstelement_class , \"ASF Demuxer\" , \"Codec/Demuxer\" , \"Demultiplexes ASF Streams\" , \"Owen Fraser-Green <owen@discobabe.net>\" ) ;\n gst_element_class_add_static_pad_template ( gstelement_class , & audio_src_template ) ;\n gst_element_class_add_static_pad_template ( gstelement_class , & video_src_template ) ;\n gst_element_class_add_static_pad_template ( gstelement_class , & gst_asf_demux_sink_template ) ;\n gstelement_class -> change_state = GST_DEBUG_FUNCPTR ( gst_asf_demux_change_state ) ;\n gstelement_class -> send_event = GST_DEBUG_FUNCPTR ( gst_asf_demux_element_send_event ) ;\n }"}
{"idx": 14866, "target": 0, "func": "static GFile * get_target_file_with_custom_name ( GFile * src , GFile * dest_dir , const char * dest_fs_type , gboolean same_fs , const gchar * custom_name ) {\n char * basename ;\n GFile * dest ;\n GFileInfo * info ;\n char * copyname ;\n dest = NULL ;\n if ( custom_name != NULL ) {\n copyname = g_strdup ( custom_name ) ;\n make_file_name_valid_for_dest_fs ( copyname , dest_fs_type ) ;\n dest = g_file_get_child_for_display_name ( dest_dir , copyname , NULL ) ;\n g_free ( copyname ) ;\n }\n if ( dest == NULL && ! same_fs ) {\n info = g_file_query_info ( src , G_FILE_ATTRIBUTE_STANDARD_COPY_NAME \",\" G_FILE_ATTRIBUTE_TRASH_ORIG_PATH , 0 , NULL , NULL ) ;\n if ( info ) {\n copyname = NULL ;\n if ( g_file_has_uri_scheme ( src , \"trash\" ) ) {\n copyname = g_path_get_basename ( g_file_info_get_attribute_byte_string ( info , G_FILE_ATTRIBUTE_TRASH_ORIG_PATH ) ) ;\n }\n if ( copyname == NULL ) {\n copyname = g_strdup ( g_file_info_get_attribute_string ( info , G_FILE_ATTRIBUTE_STANDARD_COPY_NAME ) ) ;\n }\n if ( copyname ) {\n make_file_name_valid_for_dest_fs ( copyname , dest_fs_type ) ;\n dest = g_file_get_child_for_display_name ( dest_dir , copyname , NULL ) ;\n g_free ( copyname ) ;\n }\n g_object_unref ( info ) ;\n }\n }\n if ( dest == NULL ) {\n basename = g_file_get_basename ( src ) ;\n make_file_name_valid_for_dest_fs ( basename , dest_fs_type ) ;\n dest = g_file_get_child ( dest_dir , basename ) ;\n g_free ( basename ) ;\n }\n return dest ;\n }"}
{"idx": 14867, "target": 0, "func": "static void * thread_create_handler ( void * ) {\n TSThread athread ;\n sleep ( 10 ) ;\n athread = TSThreadSelf ( ) ;\n if ( athread == nullptr ) {\n thread_err_count ++ ;\n SDK_RPRINT ( SDK_Thread_test , \"TSThreadCreate\" , \"TestCase2\" , TC_FAIL , \"can't get thread\" ) ;\n }\n else {\n SDK_RPRINT ( SDK_Thread_test , \"TSThreadCreate\" , \"TestCase2\" , TC_PASS , \"ok\" ) ;\n }\n if ( thread_err_count > 0 ) {\n * SDK_Thread_pstatus = REGRESSION_TEST_FAILED ;\n }\n else {\n * SDK_Thread_pstatus = REGRESSION_TEST_PASSED ;\n }\n return nullptr ;\n }"}
{"idx": 14868, "target": 0, "func": "bool get_ordering_op_properties ( Oid opno , Oid * opfamily , Oid * opcintype , int16 * strategy ) {\n bool result = false ;\n CatCList * catlist ;\n int i ;\n * opfamily = InvalidOid ;\n * opcintype = InvalidOid ;\n * strategy = 0 ;\n catlist = SearchSysCacheList1 ( AMOPOPID , ObjectIdGetDatum ( opno ) ) ;\n for ( i = 0 ;\n i < catlist -> n_members ;\n i ++ ) {\n HeapTuple tuple = & catlist -> members [ i ] -> tuple ;\n Form_pg_amop aform = ( Form_pg_amop ) GETSTRUCT ( tuple ) ;\n if ( aform -> amopmethod != BTREE_AM_OID ) continue ;\n if ( aform -> amopstrategy == BTLessStrategyNumber || aform -> amopstrategy == BTGreaterStrategyNumber ) {\n if ( aform -> amoplefttype == aform -> amoprighttype ) {\n * opfamily = aform -> amopfamily ;\n * opcintype = aform -> amoplefttype ;\n * strategy = aform -> amopstrategy ;\n result = true ;\n break ;\n }\n }\n }\n ReleaseSysCacheList ( catlist ) ;\n return result ;\n }"}
{"idx": 14869, "target": 0, "func": "static char * extract_string_until ( const char * original , const char * until_substring ) {\n char * result ;\n g_assert ( ( int ) strlen ( original ) >= until_substring - original ) ;\n g_assert ( until_substring - original >= 0 ) ;\n result = g_malloc ( until_substring - original + 1 ) ;\n strncpy ( result , original , until_substring - original ) ;\n result [ until_substring - original ] = '\\0' ;\n return result ;\n }"}
{"idx": 14870, "target": 0, "func": "static void test_rfc2231_parser ( void ) {\n const char * input = \";\n key4*=us-ascii''foo\" \";\n key*2=ba%\" \";\n key2*0=a\" \";\n key3*0*=us-ascii'en'xyz\" \";\n key*0=\\\"foo\\\"\" \";\n key2*1*=b%25\" \";\n key3*1=plop%\" \";\n key*1=baz\" ;\n const char * output [ ] = {\n \"key\" , \"foobazba%\" , \"key2*\" , \"''ab%25\" , \"key3*\" , \"us-ascii'en'xyzplop%25\" , \"key4*\" , \"us-ascii''foo\" , NULL }\n ;\n struct rfc822_parser_context parser ;\n const char * const * result ;\n unsigned int i ;\n test_begin ( \"rfc2231 parser\" ) ;\n rfc822_parser_init ( & parser , ( const void * ) input , strlen ( input ) , NULL ) ;\n test_assert ( rfc2231_parse ( & parser , & result ) == 0 ) ;\n for ( i = 0 ;\n output [ i ] != NULL && result [ i ] != NULL ;\n i ++ ) test_assert ( strcmp ( output [ i ] , result [ i ] ) == 0 ) ;\n rfc822_parser_deinit ( & parser ) ;\n test_assert ( output [ i ] == NULL && result [ i ] == NULL ) ;\n test_end ( ) ;\n }"}
{"idx": 14871, "target": 0, "func": "int mprintf_event ( int evcode , struct peer * p , const char * fmt , ... ) {\n va_list ap ;\n int rc ;\n char msg [ 512 ] ;\n va_start ( ap , fmt ) ;\n rc = mvsnprintf ( msg , sizeof ( msg ) , fmt , ap ) ;\n va_end ( ap ) ;\n report_event ( evcode , p , msg ) ;\n return rc ;\n }"}
{"idx": 14872, "target": 1, "func": "static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING )"}
{"idx": 14873, "target": 1, "func": "static void choose_intra_uv_mode ( VP9_COMP * cpi , PICK_MODE_CONTEXT * ctx , BLOCK_SIZE bsize , TX_SIZE max_tx_size , int * rate_uv , int * rate_uv_tokenonly , int64_t * dist_uv , int * skip_uv , PREDICTION_MODE * mode_uv ) {\n MACROBLOCK * const x = & cpi -> mb ;\n if ( cpi -> sf . use_uv_intra_rd_estimate ) {\n rd_sbuv_dcpred ( cpi , x , rate_uv , rate_uv_tokenonly , dist_uv , skip_uv , bsize < BLOCK_8X8 ? BLOCK_8X8 : bsize ) ;\n }\n else {\n rd_pick_intra_sbuv_mode ( cpi , x , ctx , rate_uv , rate_uv_tokenonly , dist_uv , skip_uv , bsize < BLOCK_8X8 ? BLOCK_8X8 : bsize , max_tx_size ) ;\n }\n * mode_uv = x -> e_mbd . mi [ 0 ] -> mbmi . uv_mode ;\n }"}
{"idx": 14874, "target": 0, "func": "static void evhttp_handle_request ( struct evhttp_request * req , void * arg ) {\n struct evhttp * http = arg ;\n struct evhttp_cb * cb = NULL ;\n event_debug ( ( \"%s: req->uri=%s\" , __func__ , req -> uri ) ) ;\n if ( req -> uri == NULL ) {\n event_debug ( ( \"%s: bad request\" , __func__ ) ) ;\n if ( req -> evcon -> state == EVCON_DISCONNECTED ) {\n evhttp_connection_fail ( req -> evcon , EVCON_HTTP_EOF ) ;\n }\n else {\n event_debug ( ( \"%s: sending error\" , __func__ ) ) ;\n evhttp_send_error ( req , HTTP_BADREQUEST , \"Bad Request\" ) ;\n }\n return ;\n }\n if ( ( cb = evhttp_dispatch_callback ( & http -> callbacks , req ) ) != NULL ) {\n ( * cb -> cb ) ( req , cb -> cbarg ) ;\n return ;\n }\n if ( http -> gencb ) {\n ( * http -> gencb ) ( req , http -> gencbarg ) ;\n return ;\n }\n else {\n # define ERR_FORMAT \"<html><head>\" \"<title>404 Not Found</title>\" \"</head><body>\" \"<h1>Not Found</h1>\" \"<p>The requested URL %s was not found on this server.</p>\" \"</body></html>\\n\" char * escaped_html = evhttp_htmlescape ( req -> uri ) ;\n struct evbuffer * buf = evbuffer_new ( ) ;\n evhttp_response_code ( req , HTTP_NOTFOUND , \"Not Found\" ) ;\n evbuffer_add_printf ( buf , ERR_FORMAT , escaped_html ) ;\n free ( escaped_html ) ;\n evhttp_send_page ( req , buf ) ;\n evbuffer_free ( buf ) ;\n # undef ERR_FORMAT }\n }"}
{"idx": 14875, "target": 0, "func": "ber_tag_t ber_get_next ( Sockbuf * sb , ber_len_t * len , BerElement * ber ) {\n assert ( sb != NULL ) ;\n assert ( len != NULL ) ;\n assert ( ber != NULL ) ;\n assert ( SOCKBUF_VALID ( sb ) ) ;\n assert ( LBER_VALID ( ber ) ) ;\n if ( ber -> ber_debug & LDAP_DEBUG_TRACE ) {\n ber_log_printf ( LDAP_DEBUG_TRACE , ber -> ber_debug , \"ber_get_next\\n\" ) ;\n }\n if ( ber -> ber_rwptr == NULL ) {\n assert ( ber -> ber_buf == NULL ) ;\n ber -> ber_rwptr = ( char * ) & ber -> ber_len - 1 ;\n ber -> ber_ptr = ber -> ber_rwptr ;\n ber -> ber_tag = 0 ;\n }\n while ( ber -> ber_rwptr > ( char * ) & ber -> ber_tag && ber -> ber_rwptr < ( char * ) & ber -> ber_len + LENSIZE * 2 ) {\n ber_slen_t sblen ;\n char buf [ sizeof ( ber -> ber_len ) - 1 ] ;\n ber_len_t tlen = 0 ;\n sock_errset ( 0 ) ;\n sblen = ( ( char * ) & ber -> ber_len + LENSIZE * 2 - 1 ) - ber -> ber_rwptr ;\n if ( sblen < 1 ) sblen = 1 ;\n sblen = ber_int_sb_read ( sb , ber -> ber_rwptr , sblen ) ;\n if ( sblen <= 0 ) return LBER_DEFAULT ;\n ber -> ber_rwptr += sblen ;\n if ( ber -> ber_ptr == ( char * ) & ber -> ber_len - 1 ) {\n ber_tag_t tag ;\n unsigned char * p = ( unsigned char * ) ber -> ber_ptr ;\n tag = * p ++ ;\n if ( ( tag & LBER_BIG_TAG_MASK ) == LBER_BIG_TAG_MASK ) {\n ber_len_t i ;\n for ( i = 1 ;\n ( char * ) p < ber -> ber_rwptr ;\n i ++ ) {\n tag <<= 8 ;\n tag |= * p ++ ;\n if ( ! ( tag & LBER_MORE_TAG_MASK ) ) break ;\n if ( i == sizeof ( ber_tag_t ) - 1 ) {\n sock_errset ( ERANGE ) ;\n return LBER_DEFAULT ;\n }\n }\n if ( ( char * ) p == ber -> ber_rwptr ) {\n sock_errset ( EWOULDBLOCK ) ;\n return LBER_DEFAULT ;\n }\n }\n ber -> ber_tag = tag ;\n ber -> ber_ptr = ( char * ) p ;\n }\n if ( ber -> ber_ptr == ber -> ber_rwptr ) {\n sock_errset ( EWOULDBLOCK ) ;\n return LBER_DEFAULT ;\n }\n if ( * ber -> ber_ptr & 0x80 ) {\n int i ;\n unsigned char * p = ( unsigned char * ) ber -> ber_ptr ;\n int llen = * p ++ & 0x7f ;\n if ( llen > LENSIZE ) {\n sock_errset ( ERANGE ) ;\n return LBER_DEFAULT ;\n }\n if ( ber -> ber_rwptr - ( char * ) p < llen ) {\n sock_errset ( EWOULDBLOCK ) ;\n return LBER_DEFAULT ;\n }\n for ( i = 0 ;\n i < llen ;\n i ++ ) {\n tlen <<= 8 ;\n tlen |= * p ++ ;\n }\n ber -> ber_ptr = ( char * ) p ;\n }\n else {\n tlen = * ( unsigned char * ) ber -> ber_ptr ++ ;\n }\n if ( ber -> ber_ptr < ( char * ) & ber -> ber_usertag ) {\n if ( ber -> ber_rwptr < ( char * ) & ber -> ber_usertag ) {\n sblen = ber -> ber_rwptr - ber -> ber_ptr ;\n }\n else {\n sblen = ( char * ) & ber -> ber_usertag - ber -> ber_ptr ;\n }\n AC_MEMCPY ( buf , ber -> ber_ptr , sblen ) ;\n ber -> ber_ptr += sblen ;\n }\n else {\n sblen = 0 ;\n }\n ber -> ber_len = tlen ;\n if ( ber -> ber_len == 0 ) {\n sock_errset ( ERANGE ) ;\n return LBER_DEFAULT ;\n }\n if ( sb -> sb_max_incoming && ber -> ber_len > sb -> sb_max_incoming ) {\n ber_log_printf ( LDAP_DEBUG_CONNS , ber -> ber_debug , \"ber_get_next: sockbuf_max_incoming exceeded \" \"(%ld > %ld)\\n\" , ber -> ber_len , sb -> sb_max_incoming ) ;\n sock_errset ( ERANGE ) ;\n return LBER_DEFAULT ;\n }\n if ( ber -> ber_buf == NULL ) {\n ber_len_t l = ber -> ber_rwptr - ber -> ber_ptr ;\n if ( ber -> ber_len < sblen + l ) {\n sock_errset ( ERANGE ) ;\n return LBER_DEFAULT ;\n }\n ber -> ber_buf = ( char * ) ber_memalloc_x ( ber -> ber_len + 1 , ber -> ber_memctx ) ;\n if ( ber -> ber_buf == NULL ) {\n return LBER_DEFAULT ;\n }\n ber -> ber_end = ber -> ber_buf + ber -> ber_len ;\n if ( sblen ) {\n AC_MEMCPY ( ber -> ber_buf , buf , sblen ) ;\n }\n if ( l > 0 ) {\n AC_MEMCPY ( ber -> ber_buf + sblen , ber -> ber_ptr , l ) ;\n sblen += l ;\n }\n * ber -> ber_end = '\\0' ;\n ber -> ber_ptr = ber -> ber_buf ;\n ber -> ber_usertag = 0 ;\n if ( ( ber_len_t ) sblen == ber -> ber_len ) {\n goto done ;\n }\n ber -> ber_rwptr = ber -> ber_buf + sblen ;\n }\n }\n if ( ( ber -> ber_rwptr >= ber -> ber_buf ) && ( ber -> ber_rwptr < ber -> ber_end ) ) {\n ber_slen_t res ;\n ber_slen_t to_go ;\n to_go = ber -> ber_end - ber -> ber_rwptr ;\n assert ( to_go > 0 ) ;\n sock_errset ( 0 ) ;\n res = ber_int_sb_read ( sb , ber -> ber_rwptr , to_go ) ;\n if ( res <= 0 ) return LBER_DEFAULT ;\n ber -> ber_rwptr += res ;\n if ( res < to_go ) {\n sock_errset ( EWOULDBLOCK ) ;\n return LBER_DEFAULT ;\n }\n done : ber -> ber_rwptr = NULL ;\n * len = ber -> ber_len ;\n if ( ber -> ber_debug ) {\n ber_log_printf ( LDAP_DEBUG_TRACE , ber -> ber_debug , \"ber_get_next: tag 0x%lx len %ld contents:\\n\" , ber -> ber_tag , ber -> ber_len ) ;\n ber_log_dump ( LDAP_DEBUG_BER , ber -> ber_debug , ber , 1 ) ;\n }\n return ( ber -> ber_tag ) ;\n }\n return LBER_DEFAULT ;\n }"}
{"idx": 14876, "target": 0, "func": "static int get_dc ( uint8_t * src , int stride , int scale ) {\n int y ;\n int sum = 0 ;\n for ( y = 0 ;\n y < 8 ;\n y ++ ) {\n int x ;\n for ( x = 0 ;\n x < 8 ;\n x ++ ) {\n sum += src [ x + y * stride ] ;\n }\n }\n return FASTDIV ( ( sum + ( scale >> 1 ) ) , scale ) ;\n }"}
{"idx": 14877, "target": 0, "func": "Oid get_func_signature ( Oid funcid , Oid * * argtypes , int * nargs ) {\n HeapTuple tp ;\n Form_pg_proc procstruct ;\n Oid result ;\n tp = SearchSysCache1 ( PROCOID , ObjectIdGetDatum ( funcid ) ) ;\n if ( ! HeapTupleIsValid ( tp ) ) elog ( ERROR , \"cache lookup failed for function %u\" , funcid ) ;\n procstruct = ( Form_pg_proc ) GETSTRUCT ( tp ) ;\n result = procstruct -> prorettype ;\n * nargs = ( int ) procstruct -> pronargs ;\n Assert ( * nargs == procstruct -> proargtypes . dim1 ) ;\n * argtypes = ( Oid * ) palloc ( * nargs * sizeof ( Oid ) ) ;\n memcpy ( * argtypes , procstruct -> proargtypes . values , * nargs * sizeof ( Oid ) ) ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }"}
{"idx": 14878, "target": 1, "func": "int jbig2_decode_halftone_region ( Jbig2Ctx * ctx , Jbig2Segment * segment , Jbig2HalftoneRegionParams * params , const byte * data , const size_t size , Jbig2Image * image , Jbig2ArithCx * GB_stats ) {\n uint32_t HBPP ;\n uint32_t HNUMPATS ;\n uint8_t * * GI ;\n Jbig2Image * HSKIP = NULL ;\n Jbig2PatternDict * HPATS ;\n int i ;\n uint32_t mg , ng ;\n int32_t x , y ;\n uint8_t gray_val ;\n memset ( image -> data , params -> HDEFPIXEL , image -> stride * image -> height ) ;\n if ( params -> HENABLESKIP == 1 ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"unhandled option HENABLESKIP\" ) ;\n }\n HPATS = jbig2_decode_ht_region_get_hpats ( ctx , segment ) ;\n if ( ! HPATS ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"no pattern dictionary found, skipping halftone image\" ) ;\n return - 1 ;\n }\n HNUMPATS = HPATS -> n_patterns ;\n HBPP = 0 ;\n while ( HNUMPATS > ( 1 << ++ HBPP ) ) ;\n GI = jbig2_decode_gray_scale_image ( ctx , segment , data , size , params -> HMMR , params -> HGW , params -> HGH , HBPP , params -> HENABLESKIP , HSKIP , params -> HTEMPLATE , GB_stats ) ;\n if ( ! GI ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"unable to acquire gray-scale image, skipping halftone image\" ) ;\n return - 1 ;\n }\n for ( mg = 0 ;\n mg < params -> HGH ;\n ++ mg ) {\n for ( ng = 0 ;\n ng < params -> HGW ;\n ++ ng ) {\n x = ( params -> HGX + mg * params -> HRY + ng * params -> HRX ) >> 8 ;\n y = ( params -> HGY + mg * params -> HRX - ng * params -> HRY ) >> 8 ;\n gray_val = GI [ ng ] [ mg ] ;\n if ( gray_val >= HNUMPATS ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"gray-scale image uses value %d which larger than pattern dictionary\" , gray_val ) ;\n gray_val = HNUMPATS - 1 ;\n }\n jbig2_image_compose ( ctx , image , HPATS -> patterns [ gray_val ] , x , y , params -> op ) ;\n }\n }\n for ( i = 0 ;\n i < params -> HGW ;\n ++ i ) {\n jbig2_free ( ctx -> allocator , GI [ i ] ) ;\n }\n jbig2_free ( ctx -> allocator , GI ) ;\n return 0 ;\n }"}
{"idx": 14879, "target": 0, "func": "static MacroBlock decode_macroblock ( Escape124Context * s , GetBitContext * gb , int * codebook_index , int superblock_index ) {\n unsigned block_index , depth ;\n if ( get_bits1 ( gb ) ) {\n static const char transitions [ 3 ] [ 2 ] = {\n {\n 2 , 1 }\n , {\n 0 , 2 }\n , {\n 1 , 0 }\n }\n ;\n * codebook_index = transitions [ * codebook_index ] [ get_bits1 ( gb ) ] ;\n }\n depth = s -> codebooks [ * codebook_index ] . depth ;\n block_index = depth ? get_bits ( gb , depth ) : 0 ;\n if ( * codebook_index == 1 ) {\n block_index += superblock_index << s -> codebooks [ 1 ] . depth ;\n }\n if ( block_index >= s -> codebooks [ * codebook_index ] . size ) return ( MacroBlock ) {\n {\n 0 }\n }\n ;\n return s -> codebooks [ * codebook_index ] . blocks [ block_index ] ;\n }"}
{"idx": 14880, "target": 0, "func": "static int dissect_DRIVER_INFO_1 ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n proto_tree * subtree ;\n int struct_start = offset ;\n subtree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_DRIVER_INFO_1 , NULL , \"Driver info level 1\" ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_drivername , struct_start , NULL ) ;\n return offset ;\n }"}
{"idx": 14881, "target": 0, "func": "static int mpeg4_decode_profile_level ( MpegEncContext * s , GetBitContext * gb ) {\n int profile_and_level_indication ;\n profile_and_level_indication = get_bits ( gb , 8 ) ;\n s -> avctx -> profile = ( profile_and_level_indication & 0xf0 ) >> 4 ;\n s -> avctx -> level = ( profile_and_level_indication & 0x0f ) ;\n if ( s -> avctx -> profile == 0 && s -> avctx -> level == 8 ) {\n s -> avctx -> level = 0 ;\n }\n return 0 ;\n }"}
{"idx": 14882, "target": 0, "func": "void populate_symb ( char * header_file ) {\n FILE * yh ;\n char line [ 2 * MAX_TOK_LEN ] ;\n char name [ 2 * MAX_TOK_LEN ] ;\n int token ;\n yh = fopen ( header_file , \"r\" ) ;\n if ( NULL == yh ) {\n perror ( \"unable to open yacc/bison header file\" ) ;\n exit ( 4 ) ;\n }\n while ( NULL != fgets ( line , sizeof ( line ) , yh ) ) if ( 2 == sscanf ( line , \"#define %s %d\" , name , & token ) && 'T' == name [ 0 ] && '_' == name [ 1 ] && token >= 0 && token < COUNTOF ( symb ) ) {\n symb [ token ] = estrdup ( name ) ;\n if ( strlen ( name ) > MAX_TOK_LEN ) {\n fprintf ( stderr , \"MAX_TOK_LEN %d too small for '%s'\\n\" \"Edit keyword-gen.c to raise.\\n\" , MAX_TOK_LEN , name ) ;\n exit ( 10 ) ;\n }\n }\n fclose ( yh ) ;\n }"}
{"idx": 14883, "target": 0, "func": "static void http_highport_test ( void ) {\n int i = - 1 ;\n struct evhttp * myhttp = NULL ;\n fprintf ( stdout , \"Testing HTTP Server with high port: \" ) ;\n for ( i = 0 ;\n i < 50 ;\n ++ i ) {\n myhttp = evhttp_start ( \"127.0.0.1\" , 65535 - i ) ;\n if ( myhttp != NULL ) {\n fprintf ( stdout , \"OK\\n\" ) ;\n evhttp_free ( myhttp ) ;\n return ;\n }\n }\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }"}
{"idx": 14884, "target": 0, "func": "static guint32 dissect_trunkpacket ( tvbuff_t * tvb , guint32 offset , guint16 scallno_param _U_ , packet_info * pinfo , proto_tree * iax2_tree , proto_tree * main_tree _U_ ) {\n guint8 cmddata , trunkts ;\n guint nframes = 0 , ncalls = 0 ;\n proto_item * cd , * nc = NULL ;\n proto_tree * field_tree = NULL ;\n call_list * calls = NULL ;\n cmddata = tvb_get_guint8 ( tvb , offset + 1 ) ;\n trunkts = cmddata & IAX2_TRUNK_TS ;\n if ( iax2_tree ) {\n proto_tree_add_item ( iax2_tree , hf_iax2_trunk_metacmd , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n cd = proto_tree_add_uint ( iax2_tree , hf_iax2_trunk_cmddata , tvb , offset + 1 , 1 , cmddata ) ;\n field_tree = proto_item_add_subtree ( cd , ett_iax2_trunk_cmddata ) ;\n if ( trunkts ) proto_item_append_text ( cd , \" (trunk timestamps)\" ) ;\n proto_tree_add_boolean ( field_tree , hf_iax2_trunk_cmddata_ts , tvb , offset + 1 , 1 , cmddata ) ;\n proto_tree_add_item ( iax2_tree , hf_iax2_trunk_ts , tvb , offset + 2 , 4 , ENC_BIG_ENDIAN ) ;\n }\n offset += 6 ;\n if ( trunkts ) {\n while ( tvb_captured_length_remaining ( tvb , offset ) >= 6 ) {\n guint16 scallno ;\n offset = dissect_trunkcall_ts ( tvb , offset , iax2_tree , & scallno ) ;\n if ( ! call_list_find ( calls , scallno ) ) {\n calls = call_list_append ( calls , scallno ) ;\n }\n nframes ++ ;\n }\n }\n else {\n while ( tvb_captured_length_remaining ( tvb , offset ) >= 4 ) {\n guint16 scallno ;\n offset = dissect_trunkcall_nots ( tvb , offset , iax2_tree , & scallno ) ;\n if ( ! call_list_find ( calls , scallno ) ) {\n calls = call_list_append ( calls , scallno ) ;\n }\n nframes ++ ;\n }\n }\n ncalls = call_list_length ( calls ) ;\n if ( iax2_tree ) {\n nc = proto_tree_add_uint ( iax2_tree , hf_iax2_trunk_ncalls , NULL , 0 , 0 , ncalls ) ;\n PROTO_ITEM_SET_GENERATED ( nc ) ;\n }\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"Trunk packet with %d media frame%s for %d call%s\" , nframes , plurality ( nframes , \"\" , \"s\" ) , ncalls , plurality ( ncalls , \"\" , \"s\" ) ) ;\n return offset ;\n }"}
{"idx": 14885, "target": 0, "func": "static void handle_remote_ls_ctx ( struct xml_ctx * ctx , int tag_closed ) {\n struct remote_ls_ctx * ls = ( struct remote_ls_ctx * ) ctx -> userData ;\n if ( tag_closed ) {\n if ( ! strcmp ( ctx -> name , DAV_PROPFIND_RESP ) && ls -> dentry_name ) {\n if ( ls -> dentry_flags & IS_DIR ) {\n str_end_url_with_slash ( ls -> dentry_name , & ls -> dentry_name ) ;\n if ( ls -> flags & PROCESS_DIRS ) {\n ls -> userFunc ( ls ) ;\n }\n if ( strcmp ( ls -> dentry_name , ls -> path ) && ls -> flags & RECURSIVE ) {\n remote_ls ( ls -> dentry_name , ls -> flags , ls -> userFunc , ls -> userData ) ;\n }\n }\n else if ( ls -> flags & PROCESS_FILES ) {\n ls -> userFunc ( ls ) ;\n }\n }\n else if ( ! strcmp ( ctx -> name , DAV_PROPFIND_NAME ) && ctx -> cdata ) {\n char * path = ctx -> cdata ;\n if ( * ctx -> cdata == 'h' ) {\n path = strstr ( path , \"//\" ) ;\n if ( path ) {\n path = strchr ( path + 2 , '/' ) ;\n }\n }\n if ( path ) {\n const char * url = repo -> url ;\n if ( repo -> path ) url = repo -> path ;\n if ( strncmp ( path , url , repo -> path_len ) ) error ( \"Parsed path '%s' does not match url: '%s'\" , path , url ) ;\n else {\n path += repo -> path_len ;\n ls -> dentry_name = xstrdup ( path ) ;\n }\n }\n }\n else if ( ! strcmp ( ctx -> name , DAV_PROPFIND_COLLECTION ) ) {\n ls -> dentry_flags |= IS_DIR ;\n }\n }\n else if ( ! strcmp ( ctx -> name , DAV_PROPFIND_RESP ) ) {\n free ( ls -> dentry_name ) ;\n ls -> dentry_name = NULL ;\n ls -> dentry_flags = 0 ;\n }\n }"}
{"idx": 14886, "target": 0, "func": "static void SetVideoFormat ( decoder_t * p_dec ) {\n decoder_sys_t * p_sys = p_dec -> p_sys ;\n p_sys -> p_format = schro_decoder_get_video_format ( p_sys -> p_schro ) ;\n if ( p_sys -> p_format == NULL ) return ;\n p_sys -> i_frame_pts_delta = CLOCK_FREQ * p_sys -> p_format -> frame_rate_denominator / p_sys -> p_format -> frame_rate_numerator ;\n switch ( p_sys -> p_format -> chroma_format ) {\n case SCHRO_CHROMA_420 : p_dec -> fmt_out . i_codec = VLC_CODEC_I420 ;\n break ;\n case SCHRO_CHROMA_422 : p_dec -> fmt_out . i_codec = VLC_CODEC_I422 ;\n break ;\n case SCHRO_CHROMA_444 : p_dec -> fmt_out . i_codec = VLC_CODEC_I444 ;\n break ;\n default : p_dec -> fmt_out . i_codec = 0 ;\n break ;\n }\n p_dec -> fmt_out . video . i_visible_width = p_sys -> p_format -> clean_width ;\n p_dec -> fmt_out . video . i_x_offset = p_sys -> p_format -> left_offset ;\n p_dec -> fmt_out . video . i_width = p_sys -> p_format -> width ;\n p_dec -> fmt_out . video . i_visible_height = p_sys -> p_format -> clean_height ;\n p_dec -> fmt_out . video . i_y_offset = p_sys -> p_format -> top_offset ;\n p_dec -> fmt_out . video . i_height = p_sys -> p_format -> height ;\n p_dec -> fmt_out . video . i_sar_num = p_sys -> p_format -> aspect_ratio_numerator ;\n p_dec -> fmt_out . video . i_sar_den = p_sys -> p_format -> aspect_ratio_denominator ;\n p_dec -> fmt_out . video . i_frame_rate = p_sys -> p_format -> frame_rate_numerator ;\n p_dec -> fmt_out . video . i_frame_rate_base = p_sys -> p_format -> frame_rate_denominator ;\n }"}
{"idx": 14887, "target": 0, "func": "static gboolean k12_dump_finish ( wtap_dumper * wdh , int * err ) {\n k12_dump_t * k12 = ( k12_dump_t * ) wdh -> priv ;\n union {\n guint8 b [ sizeof ( guint32 ) ] ;\n guint32 u ;\n }\n d ;\n if ( ! wtap_dump_file_write ( wdh , k12_eof , 2 , err ) ) return FALSE ;\n k12 -> file_len += 2 ;\n if ( wtap_dump_file_seek ( wdh , K12_FILE_HDR_FILE_SIZE , SEEK_SET , err ) == - 1 ) return FALSE ;\n d . u = g_htonl ( k12 -> file_len ) ;\n if ( ! wtap_dump_file_write ( wdh , d . b , 4 , err ) ) return FALSE ;\n if ( wtap_dump_file_seek ( wdh , K12_FILE_HDR_PAGE_SIZE , SEEK_SET , err ) == - 1 ) return FALSE ;\n d . u = g_htonl ( 8192 ) ;\n if ( ! wtap_dump_file_write ( wdh , d . b , 4 , err ) ) return FALSE ;\n if ( wtap_dump_file_seek ( wdh , K12_FILE_HDR_RECORD_COUNT_1 , SEEK_SET , err ) == - 1 ) return FALSE ;\n d . u = g_htonl ( k12 -> num_of_records ) ;\n if ( ! wtap_dump_file_write ( wdh , d . b , 4 , err ) ) return FALSE ;\n if ( wtap_dump_file_seek ( wdh , K12_FILE_HDR_RECORD_COUNT_2 , SEEK_SET , err ) == - 1 ) return FALSE ;\n d . u = g_htonl ( k12 -> num_of_records ) ;\n if ( ! wtap_dump_file_write ( wdh , d . b , 4 , err ) ) return FALSE ;\n return TRUE ;\n }"}
{"idx": 14888, "target": 0, "func": "static inline void ff_update_block_index ( MpegEncContext * s ) {\n const int block_size = 8 ;\n s -> block_index [ 0 ] += 2 ;\n s -> block_index [ 1 ] += 2 ;\n s -> block_index [ 2 ] += 2 ;\n s -> block_index [ 3 ] += 2 ;\n s -> block_index [ 4 ] ++ ;\n s -> block_index [ 5 ] ++ ;\n s -> dest [ 0 ] += 2 * block_size ;\n s -> dest [ 1 ] += block_size ;\n s -> dest [ 2 ] += block_size ;\n }"}
{"idx": 14889, "target": 0, "func": "TEST_F ( BudgetDatabaseTest , AddEngagementBudgetTest ) {\n base : : SimpleTestClock * clock = SetClockForTesting ( ) ;\n base : : Time expiration_time = clock -> Now ( ) + base : : TimeDelta : : FromDays ( kDefaultExpirationInDays ) ;\n SetSiteEngagementScore ( kEngagement ) ;\n double daily_budget = kMaxDailyBudget * ( kEngagement / SiteEngagementScore : : kMaxPoints ) ;\n GetBudgetDetails ( ) ;\n ASSERT_TRUE ( success_ ) ;\n ASSERT_EQ ( 2U , prediction_ . size ( ) ) ;\n ASSERT_DOUBLE_EQ ( daily_budget * kDefaultExpirationInDays , prediction_ [ 0 ] -> budget_at ) ;\n ASSERT_EQ ( 0 , prediction_ [ 1 ] -> budget_at ) ;\n ASSERT_EQ ( expiration_time . ToDoubleT ( ) , prediction_ [ 1 ] -> time ) ;\n clock -> Advance ( base : : TimeDelta : : FromDays ( 1 ) ) ;\n GetBudgetDetails ( ) ;\n ASSERT_TRUE ( success_ ) ;\n ASSERT_EQ ( 3U , prediction_ . size ( ) ) ;\n ASSERT_DOUBLE_EQ ( daily_budget * ( kDefaultExpirationInDays + 1 ) , prediction_ [ 0 ] -> budget_at ) ;\n ASSERT_DOUBLE_EQ ( daily_budget , prediction_ [ 1 ] -> budget_at ) ;\n ASSERT_EQ ( expiration_time . ToDoubleT ( ) , prediction_ [ 1 ] -> time ) ;\n ASSERT_DOUBLE_EQ ( 0 , prediction_ [ 2 ] -> budget_at ) ;\n ASSERT_EQ ( ( expiration_time + base : : TimeDelta : : FromDays ( 1 ) ) . ToDoubleT ( ) , prediction_ [ 2 ] -> time ) ;\n clock -> Advance ( base : : TimeDelta : : FromMinutes ( 59 ) ) ;\n GetBudgetDetails ( ) ;\n ASSERT_TRUE ( success_ ) ;\n ASSERT_EQ ( 3U , prediction_ . size ( ) ) ;\n ASSERT_DOUBLE_EQ ( daily_budget * ( kDefaultExpirationInDays + 1 ) , prediction_ [ 0 ] -> budget_at ) ;\n }"}
{"idx": 14890, "target": 0, "func": "inline void mime_hdr_unset_accelerators_and_presence_bits ( MIMEHdrImpl * mh , MIMEField * field ) {\n int slot_id ;\n if ( field -> m_wks_idx < 0 ) {\n return ;\n }\n mime_hdr_presence_unset ( mh , field -> m_wks_idx ) ;\n slot_id = hdrtoken_index_to_slotid ( field -> m_wks_idx ) ;\n if ( slot_id != MIME_SLOTID_NONE ) {\n mime_hdr_set_accelerator_slotnum ( mh , slot_id , MIME_FIELD_SLOTNUM_MAX ) ;\n }\n }"}
{"idx": 14891, "target": 0, "func": "void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 ) sadMxN ( 16 , 32 ) sadMxNx4D ( 16 , 32 ) sadMxN ( 16 , 16 ) sadMxNxK ( 16 , 16 , 3 ) sadMxNxK ( 16 , 16 , 8 ) sadMxNx4D ( 16 , 16 ) sadMxN ( 16 , 8 ) sadMxNxK ( 16 , 8 , 3 ) sadMxNxK ( 16 , 8 , 8 ) sadMxNx4D ( 16 , 8 ) sadMxN ( 8 , 16 ) sadMxNxK ( 8 , 16 , 3 ) sadMxNxK ( 8 , 16 , 8 ) sadMxNx4D ( 8 , 16 ) sadMxN ( 8 , 8 ) sadMxNxK ( 8 , 8 , 3 ) sadMxNxK ( 8 , 8 , 8 ) sadMxNx4D ( 8 , 8 ) sadMxN ( 8 , 4 ) sadMxNxK ( 8 , 4 , 8 )"}
{"idx": 14892, "target": 0, "func": "static struct server * get_server ( char * buf , int len ) {\n char * data = get_data ( buf , len ) ;\n char error_buf [ 512 ] ;\n if ( data == NULL ) {\n LOGE ( \"No data found\" ) ;\n return NULL ;\n }\n json_settings settings = {\n 0 }\n ;\n json_value * obj = json_parse_ex ( & settings , data , strlen ( data ) , error_buf ) ;\n if ( obj == NULL ) {\n LOGE ( \"%s\" , error_buf ) ;\n return NULL ;\n }\n struct server * server = ss_malloc ( sizeof ( struct server ) ) ;\n memset ( server , 0 , sizeof ( struct server ) ) ;\n if ( obj -> type == json_object ) {\n int i = 0 ;\n for ( i = 0 ;\n i < obj -> u . object . length ;\n i ++ ) {\n char * name = obj -> u . object . values [ i ] . name ;\n json_value * value = obj -> u . object . values [ i ] . value ;\n if ( strcmp ( name , \"server_port\" ) == 0 ) {\n if ( value -> type == json_string ) {\n strncpy ( server -> port , value -> u . string . ptr , 8 ) ;\n }\n else if ( value -> type == json_integer ) {\n snprintf ( server -> port , 8 , \"%\" PRIu64 \"\" , value -> u . integer ) ;\n }\n }\n else if ( strcmp ( name , \"password\" ) == 0 ) {\n if ( value -> type == json_string ) {\n strncpy ( server -> password , value -> u . string . ptr , 128 ) ;\n }\n }\n else if ( strcmp ( name , \"method\" ) == 0 ) {\n if ( value -> type == json_string ) {\n server -> method = strdup ( value -> u . string . ptr ) ;\n }\n }\n else if ( strcmp ( name , \"fast_open\" ) == 0 ) {\n if ( value -> type == json_boolean ) {\n strncpy ( server -> fast_open , ( value -> u . boolean ? \"true\" : \"false\" ) , 8 ) ;\n }\n }\n else if ( strcmp ( name , \"plugin\" ) == 0 ) {\n if ( value -> type == json_string ) {\n server -> plugin = strdup ( value -> u . string . ptr ) ;\n }\n }\n else if ( strcmp ( name , \"plugin_opts\" ) == 0 ) {\n if ( value -> type == json_string ) {\n server -> plugin_opts = strdup ( value -> u . string . ptr ) ;\n }\n }\n else if ( strcmp ( name , \"mode\" ) == 0 ) {\n if ( value -> type == json_string ) {\n server -> mode = strdup ( value -> u . string . ptr ) ;\n }\n }\n else {\n LOGE ( \"invalid data: %s\" , data ) ;\n break ;\n }\n }\n }\n json_value_free ( obj ) ;\n return server ;\n }"}
{"idx": 14893, "target": 0, "func": "void vp9_init_dequantizer ( VP9_COMMON * cm ) {\n int q ;\n for ( q = 0 ;\n q < QINDEX_RANGE ;\n q ++ ) {\n cm -> y_dequant [ q ] [ 0 ] = vp9_dc_quant ( q , cm -> y_dc_delta_q ) ;\n cm -> y_dequant [ q ] [ 1 ] = vp9_ac_quant ( q , 0 ) ;\n cm -> uv_dequant [ q ] [ 0 ] = vp9_dc_quant ( q , cm -> uv_dc_delta_q ) ;\n cm -> uv_dequant [ q ] [ 1 ] = vp9_ac_quant ( q , cm -> uv_ac_delta_q ) ;\n }\n }"}
{"idx": 14894, "target": 0, "func": "static void dumpcffcidtopdict ( SplineFont * sf , struct alltabs * at ) {\n char * pt , * end ;\n FILE * cfff = at -> cfff ;\n DBounds b ;\n int cidcnt = 0 , k ;\n for ( k = 0 ;\n k < sf -> subfontcnt ;\n ++ k ) if ( sf -> subfonts [ k ] -> glyphcnt > cidcnt ) cidcnt = sf -> subfonts [ k ] -> glyphcnt ;\n putshort ( cfff , 1 ) ;\n putc ( '\\2' , cfff ) ;\n putshort ( cfff , 1 ) ;\n at -> lenpos = ftell ( cfff ) ;\n putshort ( cfff , 0 ) ;\n dumpsid ( cfff , at , sf -> cidregistry , - 1 ) ;\n dumpsid ( cfff , at , sf -> ordering , - 1 ) ;\n dumpintoper ( cfff , sf -> supplement , ( 12 << 8 ) | 30 ) ;\n dumpdbloper ( cfff , sf -> cidversion , ( 12 << 8 ) | 31 ) ;\n dumpintoper ( cfff , cidcnt , ( 12 << 8 ) | 34 ) ;\n if ( sf -> use_uniqueid ) dumpintoper ( cfff , sf -> uniqueid ? sf -> uniqueid : 4000000 + ( rand ( ) & 0x3ffff ) , ( 12 << 8 ) | 35 ) ;\n dumpsid ( cfff , at , sf -> copyright , 1 ) ;\n dumpsid ( cfff , at , sf -> fullname ? sf -> fullname : sf -> fontname , 2 ) ;\n dumpsid ( cfff , at , sf -> familyname , 3 ) ;\n dumpsid ( cfff , at , sf -> weight , 4 ) ;\n CIDLayerFindBounds ( sf , at -> gi . layer , & b ) ;\n at -> gi . xmin = b . minx ;\n at -> gi . ymin = b . miny ;\n at -> gi . xmax = b . maxx ;\n at -> gi . ymax = b . maxy ;\n dumpdbl ( cfff , floor ( b . minx ) ) ;\n dumpdbl ( cfff , floor ( b . miny ) ) ;\n dumpdbl ( cfff , ceil ( b . maxx ) ) ;\n dumpdbloper ( cfff , ceil ( b . maxy ) , 5 ) ;\n if ( sf -> xuid != NULL && sf -> use_xuid ) {\n pt = sf -> xuid ;\n if ( * pt == '[' ) ++ pt ;\n while ( * pt && * pt != ']' ) {\n dumpint ( cfff , strtol ( pt , & end , 10 ) ) ;\n for ( pt = end ;\n * pt == ' ' ;\n ++ pt ) ;\n }\n putc ( 14 , cfff ) ;\n if ( sf -> changed_since_xuidchanged ) SFIncrementXUID ( sf ) ;\n }\n }"}
{"idx": 14895, "target": 0, "func": "int dissect_ber_octet_string_wcb ( gboolean implicit_tag , asn1_ctx_t * actx , proto_tree * tree , tvbuff_t * tvb , int offset , gint hf_id , ber_callback func ) {\n tvbuff_t * out_tvb = NULL ;\n offset = dissect_ber_octet_string ( implicit_tag , actx , tree , tvb , offset , hf_id , ( func ) ? & out_tvb : NULL ) ;\n if ( func && out_tvb && ( tvb_reported_length ( out_tvb ) > 0 ) ) {\n if ( hf_id >= 0 ) tree = proto_item_add_subtree ( actx -> created_item , ett_ber_octet_string ) ;\n func ( FALSE , out_tvb , 0 , actx , tree , - 1 ) ;\n }\n return offset ;\n }"}
{"idx": 14896, "target": 1, "func": "IN_PROC_BROWSER_TEST_P ( BrowserCloseManagerWithDownloadsBrowserTest , TestWithDownloads ) {\n SetDownloadPathForProfile ( browser ( ) -> profile ( ) ) ;\n ASSERT_NO_FATAL_FAILURE ( CreateStalledDownload ( browser ( ) ) ) ;\n content : : TestNavigationObserver navigation_observer ( browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) , 1 ) ;\n TestBrowserCloseManager : : AttemptClose ( TestBrowserCloseManager : : USER_CHOICE_USER_CANCELS_CLOSE ) ;\n EXPECT_FALSE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n navigation_observer . Wait ( ) ;\n EXPECT_EQ ( GURL ( chrome : : kChromeUIDownloadsURL ) , browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) -> GetURL ( ) ) ;\n RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , 1 ) ;\n TestBrowserCloseManager : : AttemptClose ( TestBrowserCloseManager : : USER_CHOICE_USER_ALLOWS_CLOSE ) ;\n close_observer . Wait ( ) ;\n EXPECT_TRUE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_TRUE ( BrowserList : : GetInstance ( ) -> empty ( ) ) ;\n if ( browser_defaults : : kBrowserAliveWithNoWindows ) EXPECT_EQ ( 1 , DownloadCoreService : : NonMaliciousDownloadCountAllProfiles ( ) ) ;\n else EXPECT_EQ ( 0 , DownloadCoreService : : NonMaliciousDownloadCountAllProfiles ( ) ) ;\n }"}
{"idx": 14897, "target": 0, "func": "static void ShutdownFuncExpr ( Datum arg ) {\n FuncExprState * fcache = ( FuncExprState * ) DatumGetPointer ( arg ) ;\n if ( fcache -> funcResultSlot ) ExecClearTuple ( fcache -> funcResultSlot ) ;\n if ( fcache -> funcResultStore ) tuplestore_end ( fcache -> funcResultStore ) ;\n fcache -> funcResultStore = NULL ;\n fcache -> setArgsValid = false ;\n fcache -> shutdown_reg = false ;\n }"}
{"idx": 14898, "target": 0, "func": "static uint dump_events_for_db ( char * db ) {\n char query_buff [ QUERY_LENGTH ] ;\n char db_name_buff [ NAME_LEN * 2 + 3 ] , name_buff [ NAME_LEN * 2 + 3 ] ;\n char * event_name ;\n char delimiter [ QUERY_LENGTH ] ;\n FILE * sql_file = md_result_file ;\n MYSQL_RES * event_res , * event_list_res ;\n MYSQL_ROW row , event_list_row ;\n char db_cl_name [ MY_CS_NAME_SIZE ] ;\n int db_cl_altered = FALSE ;\n DBUG_ENTER ( \"dump_events_for_db\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"db: '%s'\" , db ) ) ;\n mysql_real_escape_string ( mysql , db_name_buff , db , ( ulong ) strlen ( db ) ) ;\n print_comment ( sql_file , 0 , \"\\n--\\n-- Dumping events for database '%s'\\n--\\n\" , fix_for_comment ( db ) ) ;\n if ( lock_tables ) mysql_query ( mysql , \"LOCK TABLES mysql.event READ\" ) ;\n if ( mysql_query_with_error_report ( mysql , & event_list_res , \"show events\" ) ) DBUG_RETURN ( 0 ) ;\n strcpy ( delimiter , \";\n\" ) ;\n if ( mysql_num_rows ( event_list_res ) > 0 ) {\n if ( opt_xml ) fputs ( \"\\t<events>\\n\" , sql_file ) ;\n else {\n fprintf ( sql_file , \"/*!50106 SET @save_time_zone= @@TIME_ZONE */ ;\n\\n\" ) ;\n if ( fetch_db_collation ( db_name_buff , db_cl_name , sizeof ( db_cl_name ) ) ) DBUG_RETURN ( 1 ) ;\n }\n if ( switch_character_set_results ( mysql , \"binary\" ) ) DBUG_RETURN ( 1 ) ;\n while ( ( event_list_row = mysql_fetch_row ( event_list_res ) ) != NULL ) {\n event_name = quote_name ( event_list_row [ 1 ] , name_buff , 0 ) ;\n DBUG_PRINT ( \"info\" , ( \"retrieving CREATE EVENT for %s\" , name_buff ) ) ;\n my_snprintf ( query_buff , sizeof ( query_buff ) , \"SHOW CREATE EVENT %s\" , event_name ) ;\n if ( mysql_query_with_error_report ( mysql , & event_res , query_buff ) ) DBUG_RETURN ( 1 ) ;\n while ( ( row = mysql_fetch_row ( event_res ) ) != NULL ) {\n if ( opt_xml ) {\n print_xml_row ( sql_file , \"event\" , event_res , & row , \"Create Event\" ) ;\n continue ;\n }\n if ( strlen ( row [ 3 ] ) != 0 ) {\n char * query_str ;\n if ( opt_drop ) fprintf ( sql_file , \"/*!50106 DROP EVENT IF EXISTS %s */%s\\n\" , event_name , delimiter ) ;\n if ( create_delimiter ( row [ 3 ] , delimiter , sizeof ( delimiter ) ) == NULL ) {\n fprintf ( stderr , \"%s: Warning: Can't create delimiter for event '%s'\\n\" , my_progname_short , event_name ) ;\n DBUG_RETURN ( 1 ) ;\n }\n fprintf ( sql_file , \"DELIMITER %s\\n\" , delimiter ) ;\n if ( mysql_num_fields ( event_res ) >= 7 ) {\n if ( switch_db_collation ( sql_file , db_name_buff , delimiter , db_cl_name , row [ 6 ] , & db_cl_altered ) ) {\n DBUG_RETURN ( 1 ) ;\n }\n switch_cs_variables ( sql_file , delimiter , row [ 4 ] , row [ 4 ] , row [ 5 ] ) ;\n }\n else {\n fprintf ( sql_file , \"--\\n\" \"-- WARNING: old server version. \" \"The following dump may be incomplete.\\n\" \"--\\n\" ) ;\n }\n switch_sql_mode ( sql_file , delimiter , row [ 1 ] ) ;\n switch_time_zone ( sql_file , delimiter , row [ 2 ] ) ;\n query_str = cover_definer_clause ( row [ 3 ] , strlen ( row [ 3 ] ) , C_STRING_WITH_LEN ( \"50117\" ) , C_STRING_WITH_LEN ( \"50106\" ) , C_STRING_WITH_LEN ( \" EVENT\" ) ) ;\n fprintf ( sql_file , \"/*!50106 %s */ %s\\n\" , ( const char * ) ( query_str != NULL ? query_str : row [ 3 ] ) , ( const char * ) delimiter ) ;\n my_free ( query_str ) ;\n restore_time_zone ( sql_file , delimiter ) ;\n restore_sql_mode ( sql_file , delimiter ) ;\n if ( mysql_num_fields ( event_res ) >= 7 ) {\n restore_cs_variables ( sql_file , delimiter ) ;\n if ( db_cl_altered ) {\n if ( restore_db_collation ( sql_file , db_name_buff , delimiter , db_cl_name ) ) DBUG_RETURN ( 1 ) ;\n }\n }\n }\n }\n mysql_free_result ( event_res ) ;\n }\n if ( opt_xml ) {\n fputs ( \"\\t</events>\\n\" , sql_file ) ;\n check_io ( sql_file ) ;\n }\n else {\n fprintf ( sql_file , \"DELIMITER ;\n\\n\" ) ;\n fprintf ( sql_file , \"/*!50106 SET TIME_ZONE= @save_time_zone */ ;\n\\n\" ) ;\n }\n if ( switch_character_set_results ( mysql , default_charset ) ) DBUG_RETURN ( 1 ) ;\n }\n mysql_free_result ( event_list_res ) ;\n if ( lock_tables ) ( void ) mysql_query_with_error_report ( mysql , 0 , \"UNLOCK TABLES\" ) ;\n DBUG_RETURN ( 0 ) ;\n }"}
{"idx": 14899, "target": 0, "func": "void vpx_img_flip ( vpx_image_t * img ) {\n img -> planes [ VPX_PLANE_Y ] += ( signed ) ( img -> d_h - 1 ) * img -> stride [ VPX_PLANE_Y ] ;\n img -> stride [ VPX_PLANE_Y ] = - img -> stride [ VPX_PLANE_Y ] ;\n img -> planes [ VPX_PLANE_U ] += ( signed ) ( ( img -> d_h >> img -> y_chroma_shift ) - 1 ) * img -> stride [ VPX_PLANE_U ] ;\n img -> stride [ VPX_PLANE_U ] = - img -> stride [ VPX_PLANE_U ] ;\n img -> planes [ VPX_PLANE_V ] += ( signed ) ( ( img -> d_h >> img -> y_chroma_shift ) - 1 ) * img -> stride [ VPX_PLANE_V ] ;\n img -> stride [ VPX_PLANE_V ] = - img -> stride [ VPX_PLANE_V ] ;\n img -> planes [ VPX_PLANE_ALPHA ] += ( signed ) ( img -> d_h - 1 ) * img -> stride [ VPX_PLANE_ALPHA ] ;\n img -> stride [ VPX_PLANE_ALPHA ] = - img -> stride [ VPX_PLANE_ALPHA ] ;\n }"}
{"idx": 14900, "target": 0, "func": "static int _process_persist_conn ( void * arg , persist_msg_t * persist_msg , Buf * out_buffer , uint32_t * uid ) {\n slurm_msg_t msg ;\n slurm_persist_conn_t * persist_conn = arg ;\n if ( * uid == NO_VAL ) * uid = g_slurm_auth_get_uid ( persist_conn -> auth_cred , slurmctld_config . auth_info ) ;\n * out_buffer = NULL ;\n slurm_msg_t_init ( & msg ) ;\n msg . auth_cred = persist_conn -> auth_cred ;\n msg . conn = persist_conn ;\n msg . conn_fd = persist_conn -> fd ;\n msg . msg_type = persist_msg -> msg_type ;\n msg . data = persist_msg -> data ;\n slurmctld_req ( & msg , NULL ) ;\n return SLURM_SUCCESS ;\n }"}
{"idx": 14901, "target": 0, "func": "void ptvcursor_pop_subtree ( ptvcursor_t * ptvc ) {\n subtree_lvl * subtree ;\n if ( ptvc -> pushed_tree_index <= 0 ) return ;\n ptvc -> pushed_tree_index -- ;\n subtree = ptvc -> pushed_tree + ptvc -> pushed_tree_index ;\n if ( subtree -> it != NULL ) proto_item_set_len ( subtree -> it , ptvcursor_current_offset ( ptvc ) - subtree -> cursor_offset ) ;\n ptvc -> tree = subtree -> tree ;\n }"}
{"idx": 14902, "target": 0, "func": "void TSFetchLaunch ( TSFetchSM fetch_sm ) {\n sdk_assert ( sdk_sanity_check_fetch_sm ( fetch_sm ) == TS_SUCCESS ) ;\n ( ( FetchSM * ) fetch_sm ) -> ext_launch ( ) ;\n }"}
{"idx": 14903, "target": 0, "func": "static OFCondition makeUnderflowError ( const char * pdu , unsigned long minuend , unsigned long subtrahend ) {\n OFStringStream stream ;\n stream << \"DUL Illegal \" << pdu << \". Got \" << minuend << \" bytes of data and told to subtrat \" << subtrahend << \" bytes of data\" ;\n stream << \".\" << OFStringStream_ends ;\n OFCondition ret ;\n OFSTRINGSTREAM_GETSTR ( stream , tmpString ) ret = makeDcmnetCondition ( DULC_INCORRECTBUFFERLENGTH , OF_error , tmpString ) ;\n OFSTRINGSTREAM_FREESTR ( tmpString ) return ret ;\n }"}
{"idx": 14904, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n C93DecoderContext * const c93 = avctx -> priv_data ;\n AVFrame * const newpic = & c93 -> pictures [ c93 -> currentpic ] ;\n AVFrame * const oldpic = & c93 -> pictures [ c93 -> currentpic ^ 1 ] ;\n AVFrame * picture = data ;\n GetByteContext gb ;\n uint8_t * out ;\n int stride , ret , i , x , y , b , bt = 0 ;\n c93 -> currentpic ^= 1 ;\n newpic -> reference = 1 ;\n newpic -> buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE | FF_BUFFER_HINTS_READABLE ;\n if ( ( ret = avctx -> reget_buffer ( avctx , newpic ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n stride = newpic -> linesize [ 0 ] ;\n bytestream2_init ( & gb , buf , buf_size ) ;\n b = bytestream2_get_byte ( & gb ) ;\n if ( b & C93_FIRST_FRAME ) {\n newpic -> pict_type = AV_PICTURE_TYPE_I ;\n newpic -> key_frame = 1 ;\n }\n else {\n newpic -> pict_type = AV_PICTURE_TYPE_P ;\n newpic -> key_frame = 0 ;\n }\n for ( y = 0 ;\n y < HEIGHT ;\n y += 8 ) {\n out = newpic -> data [ 0 ] + y * stride ;\n for ( x = 0 ;\n x < WIDTH ;\n x += 8 ) {\n uint8_t * copy_from = oldpic -> data [ 0 ] ;\n unsigned int offset , j ;\n uint8_t cols [ 4 ] , grps [ 4 ] ;\n C93BlockType block_type ;\n if ( ! bt ) bt = bytestream2_get_byte ( & gb ) ;\n block_type = bt & 0x0F ;\n switch ( block_type ) {\n case C93_8X8_FROM_PREV : offset = bytestream2_get_le16 ( & gb ) ;\n if ( ( ret = copy_block ( avctx , out , copy_from , offset , 8 , stride ) ) < 0 ) return ret ;\n break ;\n case C93_4X4_FROM_CURR : copy_from = newpic -> data [ 0 ] ;\n case C93_4X4_FROM_PREV : for ( j = 0 ;\n j < 8 ;\n j += 4 ) {\n for ( i = 0 ;\n i < 8 ;\n i += 4 ) {\n offset = bytestream2_get_le16 ( & gb ) ;\n if ( ( ret = copy_block ( avctx , & out [ j * stride + i ] , copy_from , offset , 4 , stride ) ) < 0 ) return ret ;\n }\n }\n break ;\n case C93_8X8_2COLOR : bytestream2_get_buffer ( & gb , cols , 2 ) ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n draw_n_color ( out + i * stride , stride , 8 , 1 , 1 , cols , NULL , bytestream2_get_byte ( & gb ) ) ;\n }\n break ;\n case C93_4X4_2COLOR : case C93_4X4_4COLOR : case C93_4X4_4COLOR_GRP : for ( j = 0 ;\n j < 8 ;\n j += 4 ) {\n for ( i = 0 ;\n i < 8 ;\n i += 4 ) {\n if ( block_type == C93_4X4_2COLOR ) {\n bytestream2_get_buffer ( & gb , cols , 2 ) ;\n draw_n_color ( out + i + j * stride , stride , 4 , 4 , 1 , cols , NULL , bytestream2_get_le16 ( & gb ) ) ;\n }\n else if ( block_type == C93_4X4_4COLOR ) {\n bytestream2_get_buffer ( & gb , cols , 4 ) ;\n draw_n_color ( out + i + j * stride , stride , 4 , 4 , 2 , cols , NULL , bytestream2_get_le32 ( & gb ) ) ;\n }\n else {\n bytestream2_get_buffer ( & gb , grps , 4 ) ;\n draw_n_color ( out + i + j * stride , stride , 4 , 4 , 1 , cols , grps , bytestream2_get_le16 ( & gb ) ) ;\n }\n }\n }\n break ;\n case C93_NOOP : break ;\n case C93_8X8_INTRA : for ( j = 0 ;\n j < 8 ;\n j ++ ) bytestream2_get_buffer ( & gb , out + j * stride , 8 ) ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"unexpected type %x at %dx%d\\n\" , block_type , x , y ) ;\n return AVERROR_INVALIDDATA ;\n }\n bt >>= 4 ;\n out += 8 ;\n }\n }\n if ( b & C93_HAS_PALETTE ) {\n uint32_t * palette = ( uint32_t * ) newpic -> data [ 1 ] ;\n for ( i = 0 ;\n i < 256 ;\n i ++ ) {\n palette [ i ] = bytestream2_get_be24 ( & gb ) ;\n }\n newpic -> palette_has_changed = 1 ;\n }\n else {\n if ( oldpic -> data [ 1 ] ) memcpy ( newpic -> data [ 1 ] , oldpic -> data [ 1 ] , 256 * 4 ) ;\n }\n * picture = * newpic ;\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 14905, "target": 1, "func": "static void DangerousDownloadValidated ( JNIEnv * env , const JavaParamRef < jclass > & clazz , const JavaParamRef < jobject > & tab , jint download_id , jboolean accept ) {\n TabAndroid * tab_android = TabAndroid : : GetNativeTab ( env , tab ) ;\n content : : DownloadControllerAndroid : : Get ( ) -> DangerousDownloadValidated ( tab_android -> web_contents ( ) , download_id , accept ) ;\n }"}
{"idx": 14906, "target": 0, "func": "static guint16 de_tp_epc_ue_positioning_technology ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n curr_offset = offset ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_dtap_epc_ue_positioning_technology , tvb , curr_offset << 3 , 8 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 14907, "target": 0, "func": "static vpx_codec_err_t ctrl_get_quantizer64 ( vpx_codec_alg_priv_t * ctx , va_list args ) {\n int * const arg = va_arg ( args , int * ) ;\n if ( arg == NULL ) return VPX_CODEC_INVALID_PARAM ;\n * arg = vp9_qindex_to_quantizer ( vp9_get_quantizer ( ctx -> cpi ) ) ;\n return VPX_CODEC_OK ;\n }"}
{"idx": 14908, "target": 0, "func": "int i2d_ ## name ( type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;\n int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED )"}
{"idx": 14909, "target": 0, "func": "static int ioescapestopped ( IO * wrapper , struct psstack * stack , int sp , const size_t bsize ) {\n _IO * io = wrapper -> top , * iop ;\n int wasstopped ;\n while ( io -> prev != NULL ) {\n iop = io -> prev ;\n wasstopped = io -> isstopped ;\n if ( io -> start != NULL ) free ( io -> start ) ;\n io -> start = NULL ;\n free ( io ) ;\n if ( wasstopped ) {\n wrapper -> top = iop ;\n if ( sp < ( int ) bsize ) {\n stack [ sp ] . type = ps_bool ;\n stack [ sp ++ ] . u . tf = true ;\n }\n return ( sp ) ;\n }\n io = iop ;\n }\n LogError ( _ ( \"Use of \\\"stop\\\" when not in a stopped\\n\" ) ) ;\n wrapper -> top = io ;\n return ( sp ) ;\n }"}
{"idx": 14910, "target": 0, "func": "static void decrypt ( MPI output , MPI a , MPI b , ELG_secret_key * skey ) {\n MPI t1 , t2 , r ;\n unsigned int nbits = mpi_get_nbits ( skey -> p ) ;\n mpi_normalize ( a ) ;\n mpi_normalize ( b ) ;\n t1 = mpi_alloc_secure ( mpi_nlimb_hint_from_nbits ( nbits ) ) ;\n # ifdef USE_BLINDING t2 = mpi_alloc_secure ( mpi_nlimb_hint_from_nbits ( nbits ) ) ;\n r = mpi_alloc ( mpi_nlimb_hint_from_nbits ( nbits ) ) ;\n randomize_mpi ( r , nbits , 0 ) ;\n mpi_powm ( t1 , r , skey -> x , skey -> p ) ;\n mpi_mulm ( t2 , a , r , skey -> p ) ;\n mpi_powm ( t2 , t2 , skey -> x , skey -> p ) ;\n mpi_invm ( t2 , t2 , skey -> p ) ;\n mpi_mulm ( t1 , t1 , t2 , skey -> p ) ;\n mpi_free ( r ) ;\n mpi_free ( t2 ) ;\n # else mpi_powm ( t1 , a , skey -> x , skey -> p ) ;\n mpi_invm ( t1 , t1 , skey -> p ) ;\n # endif mpi_mulm ( output , b , t1 , skey -> p ) ;\n # if 0 if ( DBG_CIPHER ) {\n log_mpidump ( \"elg decrypted x= \" , skey -> x ) ;\n log_mpidump ( \"elg decrypted p= \" , skey -> p ) ;\n log_mpidump ( \"elg decrypted a= \" , a ) ;\n log_mpidump ( \"elg decrypted b= \" , b ) ;\n log_mpidump ( \"elg decrypted M= \" , output ) ;\n }\n # endif mpi_free ( t1 ) ;\n }"}
{"idx": 14911, "target": 0, "func": "static void _slurm_rpc_dump_batch_script ( slurm_msg_t * msg ) {\n DEF_TIMERS ;\n int rc = SLURM_SUCCESS ;\n slurm_msg_t response_msg ;\n struct job_record * job_ptr ;\n char * script ;\n job_id_msg_t * job_id_msg = ( job_id_msg_t * ) msg -> data ;\n slurmctld_lock_t job_read_lock = {\n READ_LOCK , READ_LOCK , NO_LOCK , NO_LOCK , READ_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n START_TIMER ;\n debug3 ( \"Processing RPC: REQUEST_BATCH_SCRIPT from uid=%d for job=%u\" , uid , job_id_msg -> job_id ) ;\n lock_slurmctld ( job_read_lock ) ;\n if ( ( job_ptr = find_job_record ( job_id_msg -> job_id ) ) ) {\n if ( ! validate_operator ( uid ) && job_ptr -> user_id != uid ) {\n rc = ESLURM_USER_ID_MISSING ;\n }\n else {\n script = get_job_script ( job_ptr ) ;\n if ( ! script ) rc = ESLURM_JOB_SCRIPT_MISSING ;\n }\n }\n else {\n rc = ESLURM_INVALID_JOB_ID ;\n }\n unlock_slurmctld ( job_read_lock ) ;\n END_TIMER2 ( \"_slurm_rpc_dump_batch_script\" ) ;\n if ( rc != SLURM_SUCCESS ) {\n slurm_send_rc_msg ( msg , rc ) ;\n }\n else {\n slurm_msg_t_init ( & response_msg ) ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . address = msg -> address ;\n response_msg . conn = msg -> conn ;\n response_msg . msg_type = RESPONSE_BATCH_SCRIPT ;\n response_msg . data = script ;\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n xfree ( script ) ;\n }\n }"}
{"idx": 14912, "target": 0, "func": "static void decode_pitch_lag_1_6 ( int * lag_int , int * lag_frac , int pitch_index , const int prev_lag_int , const int subframe ) {\n if ( subframe == 0 || subframe == 2 ) {\n if ( pitch_index < 463 ) {\n * lag_int = ( pitch_index + 107 ) * 10923 >> 16 ;\n * lag_frac = pitch_index - * lag_int * 6 + 105 ;\n }\n else {\n * lag_int = pitch_index - 368 ;\n * lag_frac = 0 ;\n }\n }\n else {\n * lag_int = ( ( pitch_index + 5 ) * 10923 >> 16 ) - 1 ;\n * lag_frac = pitch_index - * lag_int * 6 - 3 ;\n * lag_int += av_clip ( prev_lag_int - 5 , PITCH_LAG_MIN_MODE_12k2 , PITCH_DELAY_MAX - 9 ) ;\n }\n }"}
{"idx": 14913, "target": 1, "func": "static int dvvideo_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n DVVideoContext * s = avctx -> priv_data ;\n const uint8_t * vsc_pack ;\n int apt , is16_9 ;\n s -> sys = avpriv_dv_frame_profile ( s -> sys , buf , buf_size ) ;\n if ( ! s -> sys || buf_size < s -> sys -> frame_size || ff_dv_init_dynamic_tables ( s -> sys ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"could not find dv frame profile\\n\" ) ;\n return - 1 ;\n }\n if ( s -> picture . data [ 0 ] ) avctx -> release_buffer ( avctx , & s -> picture ) ;\n s -> picture . reference = 0 ;\n s -> picture . key_frame = 1 ;\n s -> picture . pict_type = AV_PICTURE_TYPE_I ;\n avctx -> pix_fmt = s -> sys -> pix_fmt ;\n avctx -> time_base = s -> sys -> time_base ;\n avcodec_set_dimensions ( avctx , s -> sys -> width , s -> sys -> height ) ;\n if ( ff_get_buffer ( avctx , & s -> picture ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return - 1 ;\n }\n s -> picture . interlaced_frame = 1 ;\n s -> picture . top_field_first = 0 ;\n s -> buf = buf ;\n avctx -> execute ( avctx , dv_decode_video_segment , s -> sys -> work_chunks , NULL , dv_work_pool_size ( s -> sys ) , sizeof ( DVwork_chunk ) ) ;\n emms_c ( ) ;\n * got_frame = 1 ;\n * ( AVFrame * ) data = s -> picture ;\n vsc_pack = buf + 80 * 5 + 48 + 5 ;\n if ( * vsc_pack == dv_video_control ) {\n apt = buf [ 4 ] & 0x07 ;\n is16_9 = ( vsc_pack && ( ( vsc_pack [ 2 ] & 0x07 ) == 0x02 || ( ! apt && ( vsc_pack [ 2 ] & 0x07 ) == 0x07 ) ) ) ;\n avctx -> sample_aspect_ratio = s -> sys -> sar [ is16_9 ] ;\n }\n return s -> sys -> frame_size ;\n }"}
{"idx": 14914, "target": 0, "func": "static int decode_cabac_b_mb_sub_type ( H264Context * h ) {\n int type ;\n if ( ! get_cabac ( & h -> cabac , & h -> cabac_state [ 36 ] ) ) return 0 ;\n if ( ! get_cabac ( & h -> cabac , & h -> cabac_state [ 37 ] ) ) return 1 + get_cabac ( & h -> cabac , & h -> cabac_state [ 39 ] ) ;\n type = 3 ;\n if ( get_cabac ( & h -> cabac , & h -> cabac_state [ 38 ] ) ) {\n if ( get_cabac ( & h -> cabac , & h -> cabac_state [ 39 ] ) ) return 11 + get_cabac ( & h -> cabac , & h -> cabac_state [ 39 ] ) ;\n type += 4 ;\n }\n type += 2 * get_cabac ( & h -> cabac , & h -> cabac_state [ 39 ] ) ;\n type += get_cabac ( & h -> cabac , & h -> cabac_state [ 39 ] ) ;\n return type ;\n }"}
{"idx": 14915, "target": 0, "func": "static int virLogFormatString ( char * * msg , int linenr , const char * funcname , virLogPriority priority , const char * str ) {\n int ret ;\n if ( ( funcname != NULL ) ) {\n ret = virAsprintfQuiet ( msg , \"%llu: %s : %s:%d : %s\\n\" , virThreadSelfID ( ) , virLogPriorityString ( priority ) , funcname , linenr , str ) ;\n }\n else {\n ret = virAsprintfQuiet ( msg , \"%llu: %s : %s\\n\" , virThreadSelfID ( ) , virLogPriorityString ( priority ) , str ) ;\n }\n return ret ;\n }"}
{"idx": 14916, "target": 0, "func": "static void ps2_mouse_send_packet ( PS2MouseState * s ) {\n unsigned int b ;\n int dx1 , dy1 , dz1 ;\n dx1 = s -> mouse_dx ;\n dy1 = s -> mouse_dy ;\n dz1 = s -> mouse_dz ;\n if ( dx1 > 127 ) dx1 = 127 ;\n else if ( dx1 < - 127 ) dx1 = - 127 ;\n if ( dy1 > 127 ) dy1 = 127 ;\n else if ( dy1 < - 127 ) dy1 = - 127 ;\n b = 0x08 | ( ( dx1 < 0 ) << 4 ) | ( ( dy1 < 0 ) << 5 ) | ( s -> mouse_buttons & 0x07 ) ;\n ps2_queue ( & s -> common , b ) ;\n ps2_queue ( & s -> common , dx1 & 0xff ) ;\n ps2_queue ( & s -> common , dy1 & 0xff ) ;\n switch ( s -> mouse_type ) {\n default : break ;\n case 3 : if ( dz1 > 127 ) dz1 = 127 ;\n else if ( dz1 < - 127 ) dz1 = - 127 ;\n ps2_queue ( & s -> common , dz1 & 0xff ) ;\n break ;\n case 4 : if ( dz1 > 7 ) dz1 = 7 ;\n else if ( dz1 < - 7 ) dz1 = - 7 ;\n b = ( dz1 & 0x0f ) | ( ( s -> mouse_buttons & 0x18 ) << 1 ) ;\n ps2_queue ( & s -> common , b ) ;\n break ;\n }\n trace_ps2_mouse_send_packet ( s , dx1 , dy1 , dz1 , b ) ;\n s -> mouse_dx -= dx1 ;\n s -> mouse_dy -= dy1 ;\n s -> mouse_dz -= dz1 ;\n }"}
{"idx": 14917, "target": 0, "func": "void tcg_exec_init ( unsigned long tb_size ) {\n cpu_gen_init ( ) ;\n code_gen_alloc ( tb_size ) ;\n tcg_ctx . code_gen_ptr = tcg_ctx . code_gen_buffer ;\n tcg_register_jit ( tcg_ctx . code_gen_buffer , tcg_ctx . code_gen_buffer_size ) ;\n page_init ( ) ;\n # if ! defined ( CONFIG_USER_ONLY ) || ! defined ( CONFIG_USE_GUEST_BASE ) tcg_prologue_init ( & tcg_ctx ) ;\n # endif }"}
{"idx": 14918, "target": 0, "func": "static void _pack_rpc_stats ( int resp , char * * buffer_ptr , int * buffer_size , uint16_t protocol_version ) {\n uint32_t i ;\n Buf buffer ;\n slurm_mutex_lock ( & rpc_mutex ) ;\n buffer = create_buf ( * buffer_ptr , * buffer_size ) ;\n set_buf_offset ( buffer , * buffer_size ) ;\n for ( i = 0 ;\n i < rpc_type_size ;\n i ++ ) {\n if ( rpc_type_id [ i ] == 0 ) break ;\n }\n pack32 ( i , buffer ) ;\n pack16_array ( rpc_type_id , i , buffer ) ;\n pack32_array ( rpc_type_cnt , i , buffer ) ;\n pack64_array ( rpc_type_time , i , buffer ) ;\n for ( i = 1 ;\n i < rpc_user_size ;\n i ++ ) {\n if ( rpc_user_id [ i ] == 0 ) break ;\n }\n pack32 ( i , buffer ) ;\n pack32_array ( rpc_user_id , i , buffer ) ;\n pack32_array ( rpc_user_cnt , i , buffer ) ;\n pack64_array ( rpc_user_time , i , buffer ) ;\n slurm_mutex_unlock ( & rpc_mutex ) ;\n * buffer_size = get_buf_offset ( buffer ) ;\n buffer_ptr [ 0 ] = xfer_buf_data ( buffer ) ;\n }"}
{"idx": 14919, "target": 0, "func": "static void simplestring_init_str ( simplestring * string ) {\n string -> str = ( char * ) malloc ( SIMPLESTRING_INCR ) ;\n if ( string -> str ) {\n string -> str [ 0 ] = 0 ;\n string -> len = 0 ;\n string -> size = SIMPLESTRING_INCR ;\n }\n else {\n string -> size = 0 ;\n }\n }"}
{"idx": 14920, "target": 0, "func": "static void TestValidOriginIdentifier ( bool expected_result , const std : : string & id ) {\n EXPECT_EQ ( expected_result , DatabaseUtil : : IsValidOriginIdentifier ( id ) ) ;\n }"}
{"idx": 14921, "target": 0, "func": "kadm5_ret_t kadm5_setkey_principal ( void * server_handle , krb5_principal principal , krb5_keyblock * keyblocks , int n_keys ) {\n return kadm5_setkey_principal_3 ( server_handle , principal , FALSE , 0 , NULL , keyblocks , n_keys ) ;\n }"}
{"idx": 14922, "target": 1, "func": "static void apply_loop_filter ( Vp3DecodeContext * s , int plane , int ystart , int yend ) {\n int x , y ;\n int * bounding_values = s -> bounding_values_array + 127 ;\n int width = s -> fragment_width [ ! ! plane ] ;\n int height = s -> fragment_height [ ! ! plane ] ;\n int fragment = s -> fragment_start [ plane ] + ystart * width ;\n int stride = s -> current_frame . linesize [ plane ] ;\n uint8_t * plane_data = s -> current_frame . data [ plane ] ;\n if ( ! s -> flipped_image ) stride = - stride ;\n plane_data += s -> data_offset [ plane ] + 8 * ystart * stride ;\n for ( y = ystart ;\n y < yend ;\n y ++ ) {\n for ( x = 0 ;\n x < width ;\n x ++ ) {\n if ( s -> all_fragments [ fragment ] . coding_method != MODE_COPY ) {\n if ( x > 0 ) {\n s -> vp3dsp . h_loop_filter ( plane_data + 8 * x , stride , bounding_values ) ;\n }\n if ( y > 0 ) {\n s -> vp3dsp . v_loop_filter ( plane_data + 8 * x , stride , bounding_values ) ;\n }\n if ( ( x < width - 1 ) && ( s -> all_fragments [ fragment + 1 ] . coding_method == MODE_COPY ) ) {\n s -> vp3dsp . h_loop_filter ( plane_data + 8 * x + 8 , stride , bounding_values ) ;\n }\n if ( ( y < height - 1 ) && ( s -> all_fragments [ fragment + width ] . coding_method == MODE_COPY ) ) {\n s -> vp3dsp . v_loop_filter ( plane_data + 8 * x + 8 * stride , stride , bounding_values ) ;\n }\n }\n fragment ++ ;\n }\n plane_data += 8 * stride ;\n }\n }"}
{"idx": 14923, "target": 0, "func": "static void test_select_show ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n char query [ MAX_TEST_QUERY_LENGTH ] ;\n myheader ( \"test_select_show\" ) ;\n mysql_autocommit ( mysql , TRUE ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_show\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_show(id int(4) NOT NULL primary \" \" key, name char(2))\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"show columns from test_show\" ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 0 ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n my_process_stmt_result ( stmt ) ;\n mysql_stmt_close ( stmt ) ;\n stmt = mysql_simple_prepare ( mysql , \"show tables from mysql like ?\" ) ;\n check_stmt_r ( stmt ) ;\n strxmov ( query , \"show tables from \" , current_db , \" like \\'test_show\\'\" , NullS ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n my_process_stmt_result ( stmt ) ;\n mysql_stmt_close ( stmt ) ;\n stmt = mysql_simple_prepare ( mysql , \"describe test_show\" ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n my_process_stmt_result ( stmt ) ;\n mysql_stmt_close ( stmt ) ;\n stmt = mysql_simple_prepare ( mysql , \"show keys from test_show\" ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( rc == 1 ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 14924, "target": 0, "func": "static VALUE cState_space_before ( VALUE self ) {\n GET_STATE ( self ) ;\n return state -> space_before ? rb_str_new ( state -> space_before , state -> space_before_len ) : rb_str_new2 ( \"\" ) ;\n }"}
{"idx": 14925, "target": 0, "func": "static inline void tm2_apply_deltas ( TM2Context * ctx , int * Y , int stride , int * deltas , int * last ) {\n int ct , d ;\n int i , j ;\n for ( j = 0 ;\n j < 4 ;\n j ++ ) {\n ct = ctx -> D [ j ] ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n d = deltas [ i + j * 4 ] ;\n ct += d ;\n last [ i ] += ct ;\n Y [ i ] = av_clip_uint8 ( last [ i ] ) ;\n }\n Y += stride ;\n ctx -> D [ j ] = ct ;\n }\n }"}
{"idx": 14926, "target": 0, "func": "static void qemu_kvm_init_cpu_signals ( CPUState * cpu ) {\n int r ;\n sigset_t set ;\n struct sigaction sigact ;\n memset ( & sigact , 0 , sizeof ( sigact ) ) ;\n sigact . sa_handler = dummy_signal ;\n sigaction ( SIG_IPI , & sigact , NULL ) ;\n pthread_sigmask ( SIG_BLOCK , NULL , & set ) ;\n sigdelset ( & set , SIG_IPI ) ;\n sigdelset ( & set , SIGBUS ) ;\n r = kvm_set_signal_mask ( cpu , & set ) ;\n if ( r ) {\n fprintf ( stderr , \"kvm_set_signal_mask: %s\\n\" , strerror ( - r ) ) ;\n exit ( 1 ) ;\n }\n }"}
{"idx": 14927, "target": 1, "func": "SPL_METHOD ( SplFileObject , current ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n if ( ! intern -> u . file . current_line && ! intern -> u . file . current_zval ) {\n spl_filesystem_file_read_line ( getThis ( ) , intern , 1 TSRMLS_CC ) ;\n }\n if ( intern -> u . file . current_line && ( ! SPL_HAS_FLAG ( intern -> flags , SPL_FILE_OBJECT_READ_CSV ) || ! intern -> u . file . current_zval ) ) {\n RETURN_STRINGL ( intern -> u . file . current_line , intern -> u . file . current_line_len , 1 ) ;\n }\n else if ( intern -> u . file . current_zval ) {\n RETURN_ZVAL ( intern -> u . file . current_zval , 1 , 0 ) ;\n }\n RETURN_FALSE ;\n }"}
{"idx": 14928, "target": 0, "func": "static int dissect_h225_RegistrationRejectReason ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 691 \"./asn1/h225/h225.cnf\" gint32 value ;\n h225_packet_info * h225_pi ;\n h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_RegistrationRejectReason , RegistrationRejectReason_choice , & value ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> reason = value ;\n }\n return offset ;\n }"}
{"idx": 14929, "target": 0, "func": "static VALUE cState_generate ( VALUE self , VALUE obj ) {\n VALUE result = cState_partial_generate ( self , obj ) ;\n GET_STATE ( self ) ;\n ( void ) state ;\n return result ;\n }"}
{"idx": 14930, "target": 0, "func": "static int dissect_h245_LogicalChannelRateAcknowledge ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_LogicalChannelRateAcknowledge , LogicalChannelRateAcknowledge_sequence ) ;\n return offset ;\n }"}
{"idx": 14931, "target": 0, "func": "static int dissect_h245_T_aal1 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_aal1 , T_aal1_sequence ) ;\n return offset ;\n }"}
{"idx": 14932, "target": 0, "func": "VIR_ONCE_GLOBAL_INIT ( qemuAgent ) # if DEBUG_RAW_IO # include < c - ctype . h > static char * qemuAgentEscapeNonPrintable ( const char * text ) {\n size_t i ;\n virBuffer buf = VIR_BUFFER_INITIALIZER ;\n for ( i = 0 ;\n text [ i ] != '\\0' ;\n i ++ ) {\n if ( text [ i ] == '\\\\' ) virBufferAddLit ( & buf , \"\\\\\\\\\" ) ;\n else if ( c_isprint ( text [ i ] ) || text [ i ] == '\\n' || ( text [ i ] == '\\r' && text [ i + 1 ] == '\\n' ) ) virBufferAddChar ( & buf , text [ i ] ) ;\n else virBufferAsprintf ( & buf , \"\\\\x%02x\" , text [ i ] ) ;\n }\n return virBufferContentAndReset ( & buf ) ;\n }\n # endif static void qemuAgentDispose ( void * obj ) {\n qemuAgentPtr mon = obj ;\n VIR_DEBUG ( \"mon=%p\" , mon ) ;\n if ( mon -> cb && mon -> cb -> destroy ) ( mon -> cb -> destroy ) ( mon , mon -> vm ) ;\n virCondDestroy ( & mon -> notify ) ;\n VIR_FREE ( mon -> buffer ) ;\n virResetError ( & mon -> lastError ) ;\n }"}
{"idx": 14933, "target": 0, "func": "METHOD ( certificate_t , get_validity , bool , private_x509_cert_t * this , time_t * when , time_t * not_before , time_t * not_after ) {\n time_t t = when ? * when : time ( NULL ) ;\n if ( not_before ) {\n * not_before = this -> notBefore ;\n }\n if ( not_after ) {\n * not_after = this -> notAfter ;\n }\n return ( t >= this -> notBefore && t <= this -> notAfter ) ;\n }"}
{"idx": 14934, "target": 0, "func": "static int dissect_h245_SEQUENCE_SIZE_1_256_OF_RTPH263VideoRedundancyFrameMapping ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h245_SEQUENCE_SIZE_1_256_OF_RTPH263VideoRedundancyFrameMapping , SEQUENCE_SIZE_1_256_OF_RTPH263VideoRedundancyFrameMapping_sequence_of , 1 , 256 , FALSE ) ;\n return offset ;\n }"}
{"idx": 14935, "target": 0, "func": "static int fill_vaapi_ReferenceFrames ( VAPictureParameterBufferH264 * pic_param , H264Context * h ) {\n DPB dpb ;\n int i ;\n dpb . size = 0 ;\n dpb . max_size = FF_ARRAY_ELEMS ( pic_param -> ReferenceFrames ) ;\n dpb . va_pics = pic_param -> ReferenceFrames ;\n for ( i = 0 ;\n i < dpb . max_size ;\n i ++ ) init_vaapi_pic ( & dpb . va_pics [ i ] ) ;\n for ( i = 0 ;\n i < h -> short_ref_count ;\n i ++ ) {\n Picture * const pic = h -> short_ref [ i ] ;\n if ( pic && pic -> reference && dpb_add ( & dpb , pic ) < 0 ) return - 1 ;\n }\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n Picture * const pic = h -> long_ref [ i ] ;\n if ( pic && pic -> reference && dpb_add ( & dpb , pic ) < 0 ) return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 14936, "target": 0, "func": "static void PPC_prep_io_writew ( void * opaque , hwaddr addr , uint32_t value ) {\n sysctrl_t * sysctrl = opaque ;\n addr = prep_IO_address ( sysctrl , addr ) ;\n PPC_IO_DPRINTF ( \"0x\" TARGET_FMT_plx \" => 0x%08\" PRIx32 \"\\n\" , addr , value ) ;\n cpu_outw ( addr , value ) ;\n }"}
{"idx": 14937, "target": 0, "func": "static int dissect_h245_ServicePriority ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_ServicePriority , ServicePriority_sequence ) ;\n return offset ;\n }"}
{"idx": 14938, "target": 0, "func": "static void kvm_unpoison_all ( void * param ) {\n HWPoisonPage * page , * next_page ;\n QLIST_FOREACH_SAFE ( page , & hwpoison_page_list , list , next_page ) {\n QLIST_REMOVE ( page , list ) ;\n qemu_ram_remap ( page -> ram_addr , TARGET_PAGE_SIZE ) ;\n g_free ( page ) ;\n }\n }"}
{"idx": 14939, "target": 0, "func": "int wpa_decrypt_broadcast_key ( struct eapol_key_header * eapol_key , struct rsn_ie_header * rsn_ie , struct wpa_sa * sa ) {\n u_int8 * encrypted_key ;\n u_int16 key_len = 0 ;\n char tmp [ 512 ] ;\n ( void ) rsn_ie ;\n if ( sa -> algo == WPA_KEY_TKIP ) {\n key_len = ntohs ( eapol_key -> key_len ) ;\n }\n else if ( sa -> algo == WPA_KEY_CCMP ) {\n key_len = ntohs ( eapol_key -> key_data_len ) ;\n }\n if ( key_len > sizeof ( struct rsn_ie_header ) || key_len == 0 ) return - E_NOTHANDLED ;\n SAFE_CALLOC ( encrypted_key , key_len , sizeof ( u_int8 ) ) ;\n DEBUG_MSG ( \"Encrypted Broadcast key: %s\\n\" , str_tohex ( encrypted_key , key_len , tmp , sizeof ( tmp ) ) ) ;\n DEBUG_MSG ( \"KeyIV: %s\\n\" , str_tohex ( eapol_key -> key_IV , 16 , tmp , sizeof ( tmp ) ) ) ;\n DEBUG_MSG ( \"decryption_key: %s\\n\" , str_tohex ( sa -> ptk + 16 , 16 , tmp , sizeof ( tmp ) ) ) ;\n # if 0 memcpy ( new_key , pEAPKey -> key_iv , 16 ) ;\n memcpy ( new_key + 16 , decryption_key , 16 ) ;\n DEBUG_DUMP ( \"FullDecrKey:\" , new_key , 32 ) ;\n if ( key_version == AIRPDCAP_WPA_KEY_VER_NOT_CCMP ) {\n guint8 dummy [ 256 ] ;\n rc4_state_struct rc4_state ;\n crypt_rc4_init ( & rc4_state , new_key , sizeof ( new_key ) ) ;\n crypt_rc4 ( & rc4_state , dummy , 256 ) ;\n crypt_rc4 ( & rc4_state , encrypted_key , key_len ) ;\n }\n else if ( key_version == AIRPDCAP_WPA_KEY_VER_AES_CCMP ) {\n guint8 key_found ;\n guint16 key_index ;\n guint8 * decrypted_data ;\n decrypted_data = ( guint8 * ) g_malloc ( key_len ) ;\n AES_unwrap ( decryption_key , 16 , encrypted_key , key_len , decrypted_data ) ;\n key_found = FALSE ;\n key_index = 0 ;\n while ( key_index < key_len && ! key_found ) {\n guint8 rsn_id ;\n rsn_id = decrypted_data [ key_index ] ;\n if ( rsn_id != 0xdd ) {\n key_index += decrypted_data [ key_index + 1 ] + 2 ;\n }\n else {\n key_found = TRUE ;\n }\n }\n if ( key_found ) {\n memcpy ( encrypted_key , decrypted_data + key_index + 8 , key_len - key_index - 8 ) ;\n }\n g_free ( decrypted_data ) ;\n }\n DEBUG_DUMP ( \"Broadcast key:\" , encrypted_key , key_len ) ;\n sa -> key = & dummy_key ;\n sa -> validKey = TRUE ;\n sa -> wpa . key_ver = key_version ;\n memset ( sa -> wpa . ptk , 0 , sizeof ( sa -> wpa . ptk ) ) ;\n memcpy ( sa -> wpa . ptk + 32 , szEncryptedKey , key_len ) ;\n g_free ( szEncryptedKey ) ;\n # endif SAFE_FREE ( encrypted_key ) ;\n return E_SUCCESS ;\n }"}
{"idx": 14940, "target": 0, "func": "struct VP8_COMP * vp8_create_compressor ( VP8_CONFIG * oxcf ) {\n int i ;\n VP8_COMP * cpi ;\n VP8_COMMON * cm ;\n cpi = vpx_memalign ( 32 , sizeof ( VP8_COMP ) ) ;\n if ( ! cpi ) return 0 ;\n cm = & cpi -> common ;\n vpx_memset ( cpi , 0 , sizeof ( VP8_COMP ) ) ;\n if ( setjmp ( cm -> error . jmp ) ) {\n cpi -> common . error . setjmp = 0 ;\n vp8_remove_compressor ( & cpi ) ;\n return 0 ;\n }\n cpi -> common . error . setjmp = 1 ;\n CHECK_MEM_ERROR ( cpi -> mb . ss , vpx_calloc ( sizeof ( search_site ) , ( MAX_MVSEARCH_STEPS * 8 ) + 1 ) ) ;\n vp8_create_common ( & cpi -> common ) ;\n init_config ( cpi , oxcf ) ;\n memcpy ( cpi -> base_skip_false_prob , vp8cx_base_skip_false_prob , sizeof ( vp8cx_base_skip_false_prob ) ) ;\n cpi -> common . current_video_frame = 0 ;\n cpi -> temporal_pattern_counter = 0 ;\n cpi -> kf_overspend_bits = 0 ;\n cpi -> kf_bitrate_adjustment = 0 ;\n cpi -> frames_till_gf_update_due = 0 ;\n cpi -> gf_overspend_bits = 0 ;\n cpi -> non_gf_bitrate_adjustment = 0 ;\n cpi -> prob_last_coded = 128 ;\n cpi -> prob_gf_coded = 128 ;\n cpi -> prob_intra_coded = 63 ;\n cpi -> recent_ref_frame_usage [ INTRA_FRAME ] = 1 ;\n cpi -> recent_ref_frame_usage [ LAST_FRAME ] = 1 ;\n cpi -> recent_ref_frame_usage [ GOLDEN_FRAME ] = 1 ;\n cpi -> recent_ref_frame_usage [ ALTREF_FRAME ] = 1 ;\n cpi -> common . ref_frame_sign_bias [ ALTREF_FRAME ] = 1 ;\n cpi -> twopass . gf_decay_rate = 0 ;\n cpi -> baseline_gf_interval = DEFAULT_GF_INTERVAL ;\n cpi -> gold_is_last = 0 ;\n cpi -> alt_is_last = 0 ;\n cpi -> gold_is_alt = 0 ;\n cpi -> active_map_enabled = 0 ;\n # if 0 if ( cpi -> pass == 0 ) {\n cpi -> one_pass_frame_index = 0 ;\n for ( i = 0 ;\n i < MAX_LAG_BUFFERS ;\n i ++ ) {\n cpi -> one_pass_frame_stats [ i ] . frames_so_far = 0 ;\n cpi -> one_pass_frame_stats [ i ] . frame_intra_error = 0.0 ;\n cpi -> one_pass_frame_stats [ i ] . frame_coded_error = 0.0 ;\n cpi -> one_pass_frame_stats [ i ] . frame_pcnt_inter = 0.0 ;\n cpi -> one_pass_frame_stats [ i ] . frame_pcnt_motion = 0.0 ;\n cpi -> one_pass_frame_stats [ i ] . frame_mvr = 0.0 ;\n cpi -> one_pass_frame_stats [ i ] . frame_mvr_abs = 0.0 ;\n cpi -> one_pass_frame_stats [ i ] . frame_mvc = 0.0 ;\n cpi -> one_pass_frame_stats [ i ] . frame_mvc_abs = 0.0 ;\n }\n }\n # endif cpi -> cyclic_refresh_mode_enabled = cpi -> oxcf . error_resilient_mode ;\n cpi -> cyclic_refresh_mode_max_mbs_perframe = ( cpi -> common . mb_rows * cpi -> common . mb_cols ) / 5 ;\n if ( cpi -> oxcf . number_of_layers == 1 ) {\n cpi -> cyclic_refresh_mode_max_mbs_perframe = ( cpi -> common . mb_rows * cpi -> common . mb_cols ) / 20 ;\n }\n else if ( cpi -> oxcf . number_of_layers == 2 ) {\n cpi -> cyclic_refresh_mode_max_mbs_perframe = ( cpi -> common . mb_rows * cpi -> common . mb_cols ) / 10 ;\n }\n cpi -> cyclic_refresh_mode_index = 0 ;\n cpi -> cyclic_refresh_q = 32 ;\n if ( cpi -> cyclic_refresh_mode_enabled ) {\n CHECK_MEM_ERROR ( cpi -> cyclic_refresh_map , vpx_calloc ( ( cpi -> common . mb_rows * cpi -> common . mb_cols ) , 1 ) ) ;\n }\n else cpi -> cyclic_refresh_map = ( signed char * ) NULL ;\n CHECK_MEM_ERROR ( cpi -> consec_zero_last , vpx_calloc ( cpi -> common . mb_rows * cpi -> common . mb_cols , 1 ) ) ;\n # ifdef VP8_ENTROPY_STATS init_context_counters ( ) ;\n # endif cpi -> activity_avg = 90 << 12 ;\n cpi -> frames_since_key = 8 ;\n cpi -> key_frame_frequency = cpi -> oxcf . key_freq ;\n cpi -> this_key_frame_forced = 0 ;\n cpi -> next_key_frame_forced = 0 ;\n cpi -> source_alt_ref_pending = 0 ;\n cpi -> source_alt_ref_active = 0 ;\n cpi -> common . refresh_alt_ref_frame = 0 ;\n cpi -> b_calculate_psnr = CONFIG_INTERNAL_STATS ;\n # if CONFIG_INTERNAL_STATS cpi -> b_calculate_ssimg = 0 ;\n cpi -> count = 0 ;\n cpi -> bytes = 0 ;\n if ( cpi -> b_calculate_psnr ) {\n cpi -> total_sq_error = 0.0 ;\n cpi -> total_sq_error2 = 0.0 ;\n cpi -> total_y = 0.0 ;\n cpi -> total_u = 0.0 ;\n cpi -> total_v = 0.0 ;\n cpi -> total = 0.0 ;\n cpi -> totalp_y = 0.0 ;\n cpi -> totalp_u = 0.0 ;\n cpi -> totalp_v = 0.0 ;\n cpi -> totalp = 0.0 ;\n cpi -> tot_recode_hits = 0 ;\n cpi -> summed_quality = 0 ;\n cpi -> summed_weights = 0 ;\n }\n if ( cpi -> b_calculate_ssimg ) {\n cpi -> total_ssimg_y = 0 ;\n cpi -> total_ssimg_u = 0 ;\n cpi -> total_ssimg_v = 0 ;\n cpi -> total_ssimg_all = 0 ;\n }\n # endif cpi -> first_time_stamp_ever = 0x7FFFFFFF ;\n cpi -> frames_till_gf_update_due = 0 ;\n cpi -> key_frame_count = 1 ;\n cpi -> ni_av_qi = cpi -> oxcf . worst_allowed_q ;\n cpi -> ni_tot_qi = 0 ;\n cpi -> ni_frames = 0 ;\n cpi -> total_byte_count = 0 ;\n cpi -> drop_frame = 0 ;\n cpi -> rate_correction_factor = 1.0 ;\n cpi -> key_frame_rate_correction_factor = 1.0 ;\n cpi -> gf_rate_correction_factor = 1.0 ;\n cpi -> twopass . est_max_qcorrection_factor = 1.0 ;\n for ( i = 0 ;\n i < KEY_FRAME_CONTEXT ;\n i ++ ) {\n cpi -> prior_key_frame_distance [ i ] = ( int ) cpi -> output_framerate ;\n }\n # ifdef OUTPUT_YUV_SRC yuv_file = fopen ( \"bd.yuv\" , \"ab\" ) ;\n # endif # ifdef OUTPUT_YUV_DENOISED yuv_denoised_file = fopen ( \"denoised.yuv\" , \"ab\" ) ;\n # endif # if 0 framepsnr = fopen ( \"framepsnr.stt\" , \"a\" ) ;\n kf_list = fopen ( \"kf_list.stt\" , \"w\" ) ;\n # endif cpi -> output_pkt_list = oxcf -> output_pkt_list ;\n # if ! ( CONFIG_REALTIME_ONLY ) if ( cpi -> pass == 1 ) {\n vp8_init_first_pass ( cpi ) ;\n }\n else if ( cpi -> pass == 2 ) {\n size_t packet_sz = sizeof ( FIRSTPASS_STATS ) ;\n int packets = ( int ) ( oxcf -> two_pass_stats_in . sz / packet_sz ) ;\n cpi -> twopass . stats_in_start = oxcf -> two_pass_stats_in . buf ;\n cpi -> twopass . stats_in = cpi -> twopass . stats_in_start ;\n cpi -> twopass . stats_in_end = ( void * ) ( ( char * ) cpi -> twopass . stats_in + ( packets - 1 ) * packet_sz ) ;\n vp8_init_second_pass ( cpi ) ;\n }\n # endif if ( cpi -> compressor_speed == 2 ) {\n cpi -> avg_encode_time = 0 ;\n cpi -> avg_pick_mode_time = 0 ;\n }\n vp8_set_speed_features ( cpi ) ;\n for ( i = 0 ;\n i < MAX_MODES ;\n i ++ ) {\n cpi -> mb . rd_thresh_mult [ i ] = 128 ;\n }\n # ifdef VP8_ENTROPY_STATS init_mv_ref_counts ( ) ;\n # endif # if CONFIG_MULTITHREAD if ( vp8cx_create_encoder_threads ( cpi ) ) {\n vp8_remove_compressor ( & cpi ) ;\n return 0 ;\n }\n # endif cpi -> fn_ptr [ BLOCK_16X16 ] . sdf = vp8_sad16x16 ;\n cpi -> fn_ptr [ BLOCK_16X16 ] . vf = vp8_variance16x16 ;\n cpi -> fn_ptr [ BLOCK_16X16 ] . svf = vp8_sub_pixel_variance16x16 ;\n cpi -> fn_ptr [ BLOCK_16X16 ] . svf_halfpix_h = vp8_variance_halfpixvar16x16_h ;\n cpi -> fn_ptr [ BLOCK_16X16 ] . svf_halfpix_v = vp8_variance_halfpixvar16x16_v ;\n cpi -> fn_ptr [ BLOCK_16X16 ] . svf_halfpix_hv = vp8_variance_halfpixvar16x16_hv ;\n cpi -> fn_ptr [ BLOCK_16X16 ] . sdx3f = vp8_sad16x16x3 ;\n cpi -> fn_ptr [ BLOCK_16X16 ] . sdx8f = vp8_sad16x16x8 ;\n cpi -> fn_ptr [ BLOCK_16X16 ] . sdx4df = vp8_sad16x16x4d ;\n cpi -> fn_ptr [ BLOCK_16X8 ] . sdf = vp8_sad16x8 ;\n cpi -> fn_ptr [ BLOCK_16X8 ] . vf = vp8_variance16x8 ;\n cpi -> fn_ptr [ BLOCK_16X8 ] . svf = vp8_sub_pixel_variance16x8 ;\n cpi -> fn_ptr [ BLOCK_16X8 ] . svf_halfpix_h = NULL ;\n cpi -> fn_ptr [ BLOCK_16X8 ] . svf_halfpix_v = NULL ;\n cpi -> fn_ptr [ BLOCK_16X8 ] . svf_halfpix_hv = NULL ;\n cpi -> fn_ptr [ BLOCK_16X8 ] . sdx3f = vp8_sad16x8x3 ;\n cpi -> fn_ptr [ BLOCK_16X8 ] . sdx8f = vp8_sad16x8x8 ;\n cpi -> fn_ptr [ BLOCK_16X8 ] . sdx4df = vp8_sad16x8x4d ;\n cpi -> fn_ptr [ BLOCK_8X16 ] . sdf = vp8_sad8x16 ;\n cpi -> fn_ptr [ BLOCK_8X16 ] . vf = vp8_variance8x16 ;\n cpi -> fn_ptr [ BLOCK_8X16 ] . svf = vp8_sub_pixel_variance8x16 ;\n cpi -> fn_ptr [ BLOCK_8X16 ] . svf_halfpix_h = NULL ;\n cpi -> fn_ptr [ BLOCK_8X16 ] . svf_halfpix_v = NULL ;\n cpi -> fn_ptr [ BLOCK_8X16 ] . svf_halfpix_hv = NULL ;\n cpi -> fn_ptr [ BLOCK_8X16 ] . sdx3f = vp8_sad8x16x3 ;\n cpi -> fn_ptr [ BLOCK_8X16 ] . sdx8f = vp8_sad8x16x8 ;\n cpi -> fn_ptr [ BLOCK_8X16 ] . sdx4df = vp8_sad8x16x4d ;\n cpi -> fn_ptr [ BLOCK_8X8 ] . sdf = vp8_sad8x8 ;\n cpi -> fn_ptr [ BLOCK_8X8 ] . vf = vp8_variance8x8 ;\n cpi -> fn_ptr [ BLOCK_8X8 ] . svf = vp8_sub_pixel_variance8x8 ;\n cpi -> fn_ptr [ BLOCK_8X8 ] . svf_halfpix_h = NULL ;\n cpi -> fn_ptr [ BLOCK_8X8 ] . svf_halfpix_v = NULL ;\n cpi -> fn_ptr [ BLOCK_8X8 ] . svf_halfpix_hv = NULL ;\n cpi -> fn_ptr [ BLOCK_8X8 ] . sdx3f = vp8_sad8x8x3 ;\n cpi -> fn_ptr [ BLOCK_8X8 ] . sdx8f = vp8_sad8x8x8 ;\n cpi -> fn_ptr [ BLOCK_8X8 ] . sdx4df = vp8_sad8x8x4d ;\n cpi -> fn_ptr [ BLOCK_4X4 ] . sdf = vp8_sad4x4 ;\n cpi -> fn_ptr [ BLOCK_4X4 ] . vf = vp8_variance4x4 ;\n cpi -> fn_ptr [ BLOCK_4X4 ] . svf = vp8_sub_pixel_variance4x4 ;\n cpi -> fn_ptr [ BLOCK_4X4 ] . svf_halfpix_h = NULL ;\n cpi -> fn_ptr [ BLOCK_4X4 ] . svf_halfpix_v = NULL ;\n cpi -> fn_ptr [ BLOCK_4X4 ] . svf_halfpix_hv = NULL ;\n cpi -> fn_ptr [ BLOCK_4X4 ] . sdx3f = vp8_sad4x4x3 ;\n cpi -> fn_ptr [ BLOCK_4X4 ] . sdx8f = vp8_sad4x4x8 ;\n cpi -> fn_ptr [ BLOCK_4X4 ] . sdx4df = vp8_sad4x4x4d ;\n # if ARCH_X86 || ARCH_X86_64 cpi -> fn_ptr [ BLOCK_16X16 ] . copymem = vp8_copy32xn ;\n cpi -> fn_ptr [ BLOCK_16X8 ] . copymem = vp8_copy32xn ;\n cpi -> fn_ptr [ BLOCK_8X16 ] . copymem = vp8_copy32xn ;\n cpi -> fn_ptr [ BLOCK_8X8 ] . copymem = vp8_copy32xn ;\n cpi -> fn_ptr [ BLOCK_4X4 ] . copymem = vp8_copy32xn ;\n # endif cpi -> full_search_sad = vp8_full_search_sad ;\n cpi -> diamond_search_sad = vp8_diamond_search_sad ;\n cpi -> refining_search_sad = vp8_refining_search_sad ;\n cpi -> mb . error_bins [ 0 ] = cpi -> common . MBs ;\n vp8cx_init_quantizer ( cpi ) ;\n vp8_loop_filter_init ( cm ) ;\n cpi -> common . error . setjmp = 0 ;\n # if CONFIG_MULTI_RES_ENCODING if ( cpi -> oxcf . mr_encoder_id > 0 ) vp8_cal_low_res_mb_cols ( cpi ) ;\n # endif cpi -> mb . mvcost [ 0 ] = & cpi -> rd_costs . mvcosts [ 0 ] [ mv_max + 1 ] ;\n cpi -> mb . mvcost [ 1 ] = & cpi -> rd_costs . mvcosts [ 1 ] [ mv_max + 1 ] ;\n cpi -> mb . mvsadcost [ 0 ] = & cpi -> rd_costs . mvsadcosts [ 0 ] [ mvfp_max + 1 ] ;\n cpi -> mb . mvsadcost [ 1 ] = & cpi -> rd_costs . mvsadcosts [ 1 ] [ mvfp_max + 1 ] ;\n cal_mvsadcosts ( cpi -> mb . mvsadcost ) ;\n cpi -> mb . mbmode_cost = cpi -> rd_costs . mbmode_cost ;\n cpi -> mb . intra_uv_mode_cost = cpi -> rd_costs . intra_uv_mode_cost ;\n cpi -> mb . bmode_costs = cpi -> rd_costs . bmode_costs ;\n cpi -> mb . inter_bmode_costs = cpi -> rd_costs . inter_bmode_costs ;\n cpi -> mb . token_costs = cpi -> rd_costs . token_costs ;\n vp8_setup_block_ptrs ( & cpi -> mb ) ;\n vp8_setup_block_dptrs ( & cpi -> mb . e_mbd ) ;\n return cpi ;\n }"}
{"idx": 14941, "target": 0, "func": "static __inline__ unsigned int tipc_node ( __u32 addr ) {\n return addr & TIPC_NODE_MASK ;\n }"}
{"idx": 14942, "target": 0, "func": "gint proto_registrar_get_length ( const int n ) {\n header_field_info * hfinfo ;\n PROTO_REGISTRAR_GET_NTH ( n , hfinfo ) ;\n return ftype_length ( hfinfo -> type ) ;\n }"}
{"idx": 14943, "target": 0, "func": "static void SetOutput ( ArchiveHandle * AH , const char * filename , int compression ) {\n int fn ;\n if ( filename ) fn = - 1 ;\n else if ( AH -> FH ) fn = fileno ( AH -> FH ) ;\n else if ( AH -> fSpec ) {\n fn = - 1 ;\n filename = AH -> fSpec ;\n }\n else fn = fileno ( stdout ) ;\n # ifdef HAVE_LIBZ if ( compression != 0 ) {\n char fmode [ 10 ] ;\n sprintf ( fmode , \"wb%d\" , compression ) ;\n if ( fn >= 0 ) AH -> OF = gzdopen ( dup ( fn ) , fmode ) ;\n else AH -> OF = gzopen ( filename , fmode ) ;\n AH -> gzOut = 1 ;\n }\n else # endif {\n if ( AH -> mode == archModeAppend ) {\n if ( fn >= 0 ) AH -> OF = fdopen ( dup ( fn ) , PG_BINARY_A ) ;\n else AH -> OF = fopen ( filename , PG_BINARY_A ) ;\n }\n else {\n if ( fn >= 0 ) AH -> OF = fdopen ( dup ( fn ) , PG_BINARY_W ) ;\n else AH -> OF = fopen ( filename , PG_BINARY_W ) ;\n }\n AH -> gzOut = 0 ;\n }\n if ( ! AH -> OF ) {\n if ( filename ) exit_horribly ( modulename , \"could not open output file \\\"%s\\\": %s\\n\" , filename , strerror ( errno ) ) ;\n else exit_horribly ( modulename , \"could not open output file: %s\\n\" , strerror ( errno ) ) ;\n }\n }"}
{"idx": 14944, "target": 0, "func": "static void ps2_kbd_reset ( void * opaque ) {\n PS2KbdState * s = ( PS2KbdState * ) opaque ;\n trace_ps2_kbd_reset ( opaque ) ;\n ps2_common_reset ( & s -> common ) ;\n s -> scan_enabled = 0 ;\n s -> translate = 0 ;\n s -> scancode_set = 2 ;\n s -> modifiers = 0 ;\n }"}
{"idx": 14945, "target": 1, "func": "static int synth_superframe ( AVCodecContext * ctx , AVFrame * frame , int * got_frame_ptr ) {\n WMAVoiceContext * s = ctx -> priv_data ;\n GetBitContext * gb = & s -> gb , s_gb ;\n int n , res , n_samples = 480 ;\n double lsps [ MAX_FRAMES ] [ MAX_LSPS ] ;\n const double * mean_lsf = s -> lsps == 16 ? wmavoice_mean_lsf16 [ s -> lsp_def_mode ] : wmavoice_mean_lsf10 [ s -> lsp_def_mode ] ;\n float excitation [ MAX_SIGNAL_HISTORY + MAX_SFRAMESIZE + 12 ] ;\n float synth [ MAX_LSPS + MAX_SFRAMESIZE ] ;\n float * samples ;\n memcpy ( synth , s -> synth_history , s -> lsps * sizeof ( * synth ) ) ;\n memcpy ( excitation , s -> excitation_history , s -> history_nsamples * sizeof ( * excitation ) ) ;\n if ( s -> sframe_cache_size > 0 ) {\n gb = & s_gb ;\n init_get_bits ( gb , s -> sframe_cache , s -> sframe_cache_size ) ;\n s -> sframe_cache_size = 0 ;\n }\n if ( ( res = check_bits_for_superframe ( gb , s ) ) == 1 ) {\n * got_frame_ptr = 0 ;\n return 1 ;\n }\n if ( ! get_bits1 ( gb ) ) {\n av_log_missing_feature ( ctx , \"WMAPro-in-WMAVoice\" , 1 ) ;\n return AVERROR_PATCHWELCOME ;\n }\n if ( get_bits1 ( gb ) ) {\n if ( ( n_samples = get_bits ( gb , 12 ) ) > 480 ) {\n av_log ( ctx , AV_LOG_ERROR , \"Superframe encodes >480 samples (%d), not allowed\\n\" , n_samples ) ;\n return - 1 ;\n }\n }\n if ( s -> has_residual_lsps ) {\n double prev_lsps [ MAX_LSPS ] , a1 [ MAX_LSPS * 2 ] , a2 [ MAX_LSPS * 2 ] ;\n for ( n = 0 ;\n n < s -> lsps ;\n n ++ ) prev_lsps [ n ] = s -> prev_lsps [ n ] - mean_lsf [ n ] ;\n if ( s -> lsps == 10 ) {\n dequant_lsp10r ( gb , lsps [ 2 ] , prev_lsps , a1 , a2 , s -> lsp_q_mode ) ;\n }\n else dequant_lsp16r ( gb , lsps [ 2 ] , prev_lsps , a1 , a2 , s -> lsp_q_mode ) ;\n for ( n = 0 ;\n n < s -> lsps ;\n n ++ ) {\n lsps [ 0 ] [ n ] = mean_lsf [ n ] + ( a1 [ n ] - a2 [ n * 2 ] ) ;\n lsps [ 1 ] [ n ] = mean_lsf [ n ] + ( a1 [ s -> lsps + n ] - a2 [ n * 2 + 1 ] ) ;\n lsps [ 2 ] [ n ] += mean_lsf [ n ] ;\n }\n for ( n = 0 ;\n n < 3 ;\n n ++ ) stabilize_lsps ( lsps [ n ] , s -> lsps ) ;\n }\n frame -> nb_samples = 480 ;\n if ( ( res = ff_get_buffer ( ctx , frame ) ) < 0 ) {\n av_log ( ctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return res ;\n }\n frame -> nb_samples = n_samples ;\n samples = ( float * ) frame -> data [ 0 ] ;\n for ( n = 0 ;\n n < 3 ;\n n ++ ) {\n if ( ! s -> has_residual_lsps ) {\n int m ;\n if ( s -> lsps == 10 ) {\n dequant_lsp10i ( gb , lsps [ n ] ) ;\n }\n else dequant_lsp16i ( gb , lsps [ n ] ) ;\n for ( m = 0 ;\n m < s -> lsps ;\n m ++ ) lsps [ n ] [ m ] += mean_lsf [ m ] ;\n stabilize_lsps ( lsps [ n ] , s -> lsps ) ;\n }\n if ( ( res = synth_frame ( ctx , gb , n , & samples [ n * MAX_FRAMESIZE ] , lsps [ n ] , n == 0 ? s -> prev_lsps : lsps [ n - 1 ] , & excitation [ s -> history_nsamples + n * MAX_FRAMESIZE ] , & synth [ s -> lsps + n * MAX_FRAMESIZE ] ) ) ) {\n * got_frame_ptr = 0 ;\n return res ;\n }\n }\n if ( get_bits1 ( gb ) ) {\n res = get_bits ( gb , 4 ) ;\n skip_bits ( gb , 10 * ( res + 1 ) ) ;\n }\n * got_frame_ptr = 1 ;\n memcpy ( s -> prev_lsps , lsps [ 2 ] , s -> lsps * sizeof ( * s -> prev_lsps ) ) ;\n memcpy ( s -> synth_history , & synth [ MAX_SFRAMESIZE ] , s -> lsps * sizeof ( * synth ) ) ;\n memcpy ( s -> excitation_history , & excitation [ MAX_SFRAMESIZE ] , s -> history_nsamples * sizeof ( * excitation ) ) ;\n if ( s -> do_apf ) memmove ( s -> zero_exc_pf , & s -> zero_exc_pf [ MAX_SFRAMESIZE ] , s -> history_nsamples * sizeof ( * s -> zero_exc_pf ) ) ;\n return 0 ;\n }"}
{"idx": 14946, "target": 0, "func": "int read_ndx_and_attrs ( int f_in , int f_out , int * iflag_ptr , uchar * type_ptr , char * buf , int * len_ptr ) {\n int len , iflags = 0 ;\n struct file_list * flist ;\n uchar fnamecmp_type = FNAMECMP_FNAME ;\n int ndx ;\n read_loop : while ( 1 ) {\n ndx = read_ndx ( f_in ) ;\n if ( ndx >= 0 ) break ;\n if ( ndx == NDX_DONE ) return ndx ;\n if ( ndx == NDX_DEL_STATS ) {\n read_del_stats ( f_in ) ;\n if ( am_sender && am_server ) write_del_stats ( f_out ) ;\n continue ;\n }\n if ( ! inc_recurse || am_sender ) {\n int last ;\n if ( first_flist ) last = first_flist -> prev -> ndx_start + first_flist -> prev -> used - 1 ;\n else last = - 1 ;\n rprintf ( FERROR , \"Invalid file index: %d (%d - %d) [%s]\\n\" , ndx , NDX_DONE , last , who_am_i ( ) ) ;\n exit_cleanup ( RERR_PROTOCOL ) ;\n }\n if ( ndx == NDX_FLIST_EOF ) {\n flist_eof = 1 ;\n if ( DEBUG_GTE ( FLIST , 3 ) ) rprintf ( FINFO , \"[%s] flist_eof=1\\n\" , who_am_i ( ) ) ;\n write_int ( f_out , NDX_FLIST_EOF ) ;\n continue ;\n }\n ndx = NDX_FLIST_OFFSET - ndx ;\n if ( ndx < 0 || ndx >= dir_flist -> used ) {\n ndx = NDX_FLIST_OFFSET - ndx ;\n rprintf ( FERROR , \"Invalid dir index: %d (%d - %d) [%s]\\n\" , ndx , NDX_FLIST_OFFSET , NDX_FLIST_OFFSET - dir_flist -> used + 1 , who_am_i ( ) ) ;\n exit_cleanup ( RERR_PROTOCOL ) ;\n }\n if ( DEBUG_GTE ( FLIST , 2 ) ) {\n rprintf ( FINFO , \"[%s] receiving flist for dir %d\\n\" , who_am_i ( ) , ndx ) ;\n }\n start_flist_forward ( ndx ) ;\n flist = recv_file_list ( f_in , ndx ) ;\n flist -> parent_ndx = ndx ;\n stop_flist_forward ( ) ;\n }\n iflags = protocol_version >= 29 ? read_shortint ( f_in ) : ITEM_TRANSFER | ITEM_MISSING_DATA ;\n if ( protocol_version < 30 && ndx == cur_flist -> used && iflags == ITEM_IS_NEW ) {\n if ( am_sender ) maybe_send_keepalive ( time ( NULL ) , MSK_ALLOW_FLUSH ) ;\n goto read_loop ;\n }\n flist = flist_for_ndx ( ndx , \"read_ndx_and_attrs\" ) ;\n if ( flist != cur_flist ) {\n cur_flist = flist ;\n if ( am_sender ) {\n file_old_total = cur_flist -> used ;\n for ( flist = first_flist ;\n flist != cur_flist ;\n flist = flist -> next ) file_old_total += flist -> used ;\n }\n }\n if ( iflags & ITEM_BASIS_TYPE_FOLLOWS ) fnamecmp_type = read_byte ( f_in ) ;\n * type_ptr = fnamecmp_type ;\n if ( iflags & ITEM_XNAME_FOLLOWS ) {\n if ( ( len = read_vstring ( f_in , buf , MAXPATHLEN ) ) < 0 ) exit_cleanup ( RERR_PROTOCOL ) ;\n if ( sanitize_paths ) {\n sanitize_path ( buf , buf , \"\" , 0 , SP_DEFAULT ) ;\n len = strlen ( buf ) ;\n }\n }\n else {\n * buf = '\\0' ;\n len = - 1 ;\n }\n * len_ptr = len ;\n if ( iflags & ITEM_TRANSFER ) {\n int i = ndx - cur_flist -> ndx_start ;\n if ( i < 0 || ! S_ISREG ( cur_flist -> files [ i ] -> mode ) ) {\n rprintf ( FERROR , \"received request to transfer non-regular file: %d [%s]\\n\" , ndx , who_am_i ( ) ) ;\n exit_cleanup ( RERR_PROTOCOL ) ;\n }\n }\n * iflag_ptr = iflags ;\n return ndx ;\n }"}
{"idx": 14947, "target": 0, "func": "static void rgb2g ( fz_context * ctx , fz_color_converter * cc , float * dv , const float * sv ) {\n dv [ 0 ] = sv [ 0 ] * 0.3f + sv [ 1 ] * 0.59f + sv [ 2 ] * 0.11f ;\n }"}
{"idx": 14948, "target": 0, "func": "TEST_F ( WebUsbDetectorTest , ThreeUsbDeviceAddedAndRemovedDifferentOrder ) {\n base : : string16 product_name_1 = base : : UTF8ToUTF16 ( kProductName_1 ) ;\n GURL landing_page_1 ( kLandingPage_1 ) ;\n scoped_refptr < device : : MockUsbDevice > device_1 ( new device : : MockUsbDevice ( 0 , 1 , \"Google\" , kProductName_1 , \"002\" , landing_page_1 ) ) ;\n std : : string guid_1 = device_1 -> guid ( ) ;\n base : : string16 product_name_2 = base : : UTF8ToUTF16 ( kProductName_2 ) ;\n GURL landing_page_2 ( kLandingPage_2 ) ;\n scoped_refptr < device : : MockUsbDevice > device_2 ( new device : : MockUsbDevice ( 3 , 4 , \"Google\" , kProductName_2 , \"005\" , landing_page_2 ) ) ;\n std : : string guid_2 = device_2 -> guid ( ) ;\n base : : string16 product_name_3 = base : : UTF8ToUTF16 ( kProductName_3 ) ;\n GURL landing_page_3 ( kLandingPage_3 ) ;\n scoped_refptr < device : : MockUsbDevice > device_3 ( new device : : MockUsbDevice ( 6 , 7 , \"Google\" , kProductName_3 , \"008\" , landing_page_3 ) ) ;\n std : : string guid_3 = device_3 -> guid ( ) ;\n Initialize ( ) ;\n device_client_ . usb_service ( ) -> AddDevice ( device_1 ) ;\n message_center : : Notification * notification_1 = message_center_ -> FindVisibleNotificationById ( guid_1 ) ;\n ASSERT_TRUE ( notification_1 != nullptr ) ;\n base : : string16 expected_title_1 = base : : ASCIIToUTF16 ( \"Google Product A detected\" ) ;\n EXPECT_EQ ( expected_title_1 , notification_1 -> title ( ) ) ;\n base : : string16 expected_message_1 = base : : ASCIIToUTF16 ( \"Go to www.google.com to connect.\" ) ;\n EXPECT_EQ ( expected_message_1 , notification_1 -> message ( ) ) ;\n EXPECT_TRUE ( notification_1 -> delegate ( ) != nullptr ) ;\n device_client_ . usb_service ( ) -> AddDevice ( device_2 ) ;\n message_center : : Notification * notification_2 = message_center_ -> FindVisibleNotificationById ( guid_2 ) ;\n ASSERT_TRUE ( notification_2 != nullptr ) ;\n base : : string16 expected_title_2 = base : : ASCIIToUTF16 ( \"Google Product B detected\" ) ;\n EXPECT_EQ ( expected_title_2 , notification_2 -> title ( ) ) ;\n base : : string16 expected_message_2 = base : : ASCIIToUTF16 ( \"Go to www.google.com to connect.\" ) ;\n EXPECT_EQ ( expected_message_2 , notification_2 -> message ( ) ) ;\n EXPECT_TRUE ( notification_2 -> delegate ( ) != nullptr ) ;\n device_client_ . usb_service ( ) -> RemoveDevice ( device_2 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_2 ) == nullptr ) ;\n device_client_ . usb_service ( ) -> AddDevice ( device_3 ) ;\n message_center : : Notification * notification_3 = message_center_ -> FindVisibleNotificationById ( guid_3 ) ;\n ASSERT_TRUE ( notification_3 != nullptr ) ;\n base : : string16 expected_title_3 = base : : ASCIIToUTF16 ( \"Google Product C detected\" ) ;\n EXPECT_EQ ( expected_title_3 , notification_3 -> title ( ) ) ;\n base : : string16 expected_message_3 = base : : ASCIIToUTF16 ( \"Go to www.google.com to connect.\" ) ;\n EXPECT_EQ ( expected_message_3 , notification_3 -> message ( ) ) ;\n EXPECT_TRUE ( notification_3 -> delegate ( ) != nullptr ) ;\n device_client_ . usb_service ( ) -> RemoveDevice ( device_1 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_1 ) == nullptr ) ;\n device_client_ . usb_service ( ) -> RemoveDevice ( device_3 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_3 ) == nullptr ) ;\n }"}
{"idx": 14949, "target": 0, "func": "static void rgb_to_cmyk ( fz_context * ctx , const fz_colorspace * cs , const float * rgb , float * cmyk ) {\n float c , m , y , k ;\n c = 1 - rgb [ 0 ] ;\n m = 1 - rgb [ 1 ] ;\n y = 1 - rgb [ 2 ] ;\n k = fz_min ( c , fz_min ( m , y ) ) ;\n cmyk [ 0 ] = c - k ;\n cmyk [ 1 ] = m - k ;\n cmyk [ 2 ] = y - k ;\n cmyk [ 3 ] = k ;\n }"}
{"idx": 14950, "target": 0, "func": "static int dissect_t38_T_error_recovery ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 258 \"../../asn1/t38/t38.cnf\" primary_part = FALSE ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_t38_T_error_recovery , T_error_recovery_choice , NULL ) ;\n # line 260 \"../../asn1/t38/t38.cnf\" primary_part = TRUE ;\n return offset ;\n }"}
{"idx": 14951, "target": 1, "func": "static VALUE cState_array_nl_set ( VALUE self , VALUE array_nl ) {\n unsigned long len ;\n GET_STATE ( self ) ;\n Check_Type ( array_nl , T_STRING ) ;\n len = RSTRING_LEN ( array_nl ) ;\n if ( len == 0 ) {\n if ( state -> array_nl ) {\n ruby_xfree ( state -> array_nl ) ;\n state -> array_nl = NULL ;\n }\n }\n else {\n if ( state -> array_nl ) ruby_xfree ( state -> array_nl ) ;\n state -> array_nl = strdup ( RSTRING_PTR ( array_nl ) ) ;\n state -> array_nl_len = len ;\n }\n return Qnil ;\n }"}
{"idx": 14952, "target": 0, "func": "TEST_F ( WebUsbDetectorTest , UsbDeviceAddedWhileActiveTabUrlIsLandingPage ) {\n GURL landing_page_1 ( kLandingPage_1 ) ;\n scoped_refptr < device : : MockUsbDevice > device_1 ( new device : : MockUsbDevice ( 0 , 1 , \"Google\" , kProductName_1 , \"002\" , landing_page_1 ) ) ;\n std : : string guid_1 = device_1 -> guid ( ) ;\n Initialize ( ) ;\n AddTab ( browser ( ) , landing_page_1 ) ;\n device_client_ . usb_service ( ) -> AddDevice ( device_1 ) ;\n ASSERT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_1 ) == nullptr ) ;\n }"}
{"idx": 14953, "target": 0, "func": "static byte * gs_heap_alloc_string ( gs_memory_t * mem , uint nbytes , client_name_t cname ) {\n return gs_heap_alloc_bytes ( mem , nbytes , cname ) ;\n }"}
{"idx": 14954, "target": 0, "func": "static bool cgroup_devices_has_allow_or_deny ( struct cgfs_data * d , char * v , bool for_allow ) {\n char * path ;\n FILE * devices_list ;\n char * line = NULL ;\n size_t sz = 0 ;\n bool ret = ! for_allow ;\n const char * parts [ 3 ] = {\n NULL , \"devices.list\" , NULL }\n ;\n if ( ! for_allow && strcmp ( v , \"a\" ) != 0 && strcmp ( v , \"a *:* rwm\" ) != 0 ) return false ;\n parts [ 0 ] = ( const char * ) lxc_cgroup_get_hierarchy_abs_path_data ( \"devices\" , d ) ;\n if ( ! parts [ 0 ] ) return false ;\n path = lxc_string_join ( \"/\" , parts , false ) ;\n if ( ! path ) {\n free ( ( void * ) parts [ 0 ] ) ;\n return false ;\n }\n devices_list = fopen_cloexec ( path , \"r\" ) ;\n if ( ! devices_list ) {\n free ( path ) ;\n return false ;\n }\n while ( getline ( & line , & sz , devices_list ) != - 1 ) {\n size_t len = strlen ( line ) ;\n if ( len > 0 && line [ len - 1 ] == '\\n' ) line [ len - 1 ] = '\\0' ;\n if ( strcmp ( line , \"a *:* rwm\" ) == 0 ) {\n ret = for_allow ;\n goto out ;\n }\n else if ( for_allow && strcmp ( line , v ) == 0 ) {\n ret = true ;\n goto out ;\n }\n }\n out : fclose ( devices_list ) ;\n free ( line ) ;\n free ( path ) ;\n return ret ;\n }"}
{"idx": 14955, "target": 0, "func": "static void dissect_zcl_appl_ctrl_attr_data ( proto_tree * tree , tvbuff_t * tvb , guint * offset , guint16 attr_id , guint data_type ) {\n static const int * flags [ ] = {\n & hf_zbee_zcl_appl_ctrl_time_mm , & hf_zbee_zcl_appl_ctrl_time_encoding_type , & hf_zbee_zcl_appl_ctrl_time_hh , NULL }\n ;\n switch ( attr_id ) {\n case ZBEE_ZCL_ATTR_ID_APPL_CTRL_START_TIME : case ZBEE_ZCL_ATTR_ID_APPL_CTRL_FINISH_TIME : case ZBEE_ZCL_ATTR_ID_APPL_CTRL_REMAINING_TIME : proto_tree_add_bitmask ( tree , tvb , * offset , hf_zbee_zcl_appl_ctrl_time , ett_zbee_zcl_appl_ctrl_time , flags , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n default : dissect_zcl_attr_data ( tvb , tree , offset , data_type ) ;\n break ;\n }\n }"}
{"idx": 14956, "target": 1, "func": "extern List as_mysql_modify_job ( mysql_conn_t * mysql_conn , uint32_t uid , slurmdb_job_modify_cond_t * job_cond , slurmdb_job_rec_t * job ) {\n List ret_list = NULL ;\n int rc = SLURM_SUCCESS ;\n char * object = NULL ;\n char * vals = NULL , * query = NULL , * cond_char = NULL ;\n time_t now = time ( NULL ) ;\n char * user_name = NULL ;\n MYSQL_RES * result = NULL ;\n MYSQL_ROW row ;\n if ( ! job_cond || ! job ) {\n error ( \"we need something to change\" ) ;\n return NULL ;\n }\n else if ( job_cond -> job_id == NO_VAL ) {\n errno = SLURM_NO_CHANGE_IN_DATA ;\n error ( \"Job ID was not specified for job modification\\n\" ) ;\n return NULL ;\n }\n else if ( ! job_cond -> cluster ) {\n errno = SLURM_NO_CHANGE_IN_DATA ;\n error ( \"Cluster was not specified for job modification\\n\" ) ;\n return NULL ;\n }\n else if ( check_connection ( mysql_conn ) != SLURM_SUCCESS ) return NULL ;\n if ( job -> derived_ec != NO_VAL ) xstrfmtcat ( vals , \", derived_ec=%u\" , job -> derived_ec ) ;\n if ( job -> derived_es ) {\n char * derived_es = slurm_add_slash_to_quotes ( job -> derived_es ) ;\n xstrfmtcat ( vals , \", derived_es='%s'\" , derived_es ) ;\n xfree ( derived_es ) ;\n }\n if ( ! vals ) {\n errno = SLURM_NO_CHANGE_IN_DATA ;\n error ( \"No change specified for job modification\" ) ;\n return NULL ;\n }\n query = xstrdup_printf ( \"select job_db_inx, id_job, time_submit, \" \"id_user \" \"from \\\"%s_%s\\\" where deleted=0 \" \"&& id_job=%u \" \"order by time_submit desc limit 1;\n\" , job_cond -> cluster , job_table , job_cond -> job_id ) ;\n if ( debug_flags & DEBUG_FLAG_DB_JOB ) DB_DEBUG ( mysql_conn -> conn , \"query\\n%s\" , query ) ;\n if ( ! ( result = mysql_db_query_ret ( mysql_conn , query , 0 ) ) ) {\n xfree ( vals ) ;\n xfree ( query ) ;\n return NULL ;\n }\n if ( ( row = mysql_fetch_row ( result ) ) ) {\n char tmp_char [ 25 ] ;\n time_t time_submit = atol ( row [ 2 ] ) ;\n if ( ( uid != atoi ( row [ 3 ] ) ) && ! is_user_min_admin_level ( mysql_conn , uid , SLURMDB_ADMIN_OPERATOR ) ) {\n errno = ESLURM_ACCESS_DENIED ;\n xfree ( vals ) ;\n xfree ( query ) ;\n mysql_free_result ( result ) ;\n return NULL ;\n }\n slurm_make_time_str ( & time_submit , tmp_char , sizeof ( tmp_char ) ) ;\n xstrfmtcat ( cond_char , \"job_db_inx=%s\" , row [ 0 ] ) ;\n object = xstrdup_printf ( \"%s submitted at %s\" , row [ 1 ] , tmp_char ) ;\n ret_list = list_create ( slurm_destroy_char ) ;\n list_append ( ret_list , object ) ;\n mysql_free_result ( result ) ;\n }\n else {\n errno = ESLURM_INVALID_JOB_ID ;\n if ( debug_flags & DEBUG_FLAG_DB_JOB ) DB_DEBUG ( mysql_conn -> conn , \"as_mysql_modify_job: Job not found\\n%s\" , query ) ;\n xfree ( vals ) ;\n xfree ( query ) ;\n mysql_free_result ( result ) ;\n return NULL ;\n }\n xfree ( query ) ;\n user_name = uid_to_string ( ( uid_t ) uid ) ;\n rc = modify_common ( mysql_conn , DBD_MODIFY_JOB , now , user_name , job_table , cond_char , vals , job_cond -> cluster ) ;\n xfree ( user_name ) ;\n xfree ( cond_char ) ;\n xfree ( vals ) ;\n if ( rc == SLURM_ERROR ) {\n error ( \"Couldn't modify job\" ) ;\n FREE_NULL_LIST ( ret_list ) ;\n ret_list = NULL ;\n }\n return ret_list ;\n }"}
{"idx": 14957, "target": 0, "func": "List * get_mergejoin_opfamilies ( Oid opno ) {\n List * result = NIL ;\n CatCList * catlist ;\n int i ;\n catlist = SearchSysCacheList1 ( AMOPOPID , ObjectIdGetDatum ( opno ) ) ;\n for ( i = 0 ;\n i < catlist -> n_members ;\n i ++ ) {\n HeapTuple tuple = & catlist -> members [ i ] -> tuple ;\n Form_pg_amop aform = ( Form_pg_amop ) GETSTRUCT ( tuple ) ;\n if ( aform -> amopmethod == BTREE_AM_OID && aform -> amopstrategy == BTEqualStrategyNumber ) result = lappend_oid ( result , aform -> amopfamily ) ;\n }\n ReleaseSysCacheList ( catlist ) ;\n return result ;\n }"}
{"idx": 14958, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PrefsFunctionalTest , TestDownloadDirPref ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n base : : FilePath new_download_dir = DownloadPrefs ( browser ( ) -> profile ( ) ) . DownloadPath ( ) . AppendASCII ( \"subdir\" ) ;\n base : : FilePath downloaded_pkg = new_download_dir . AppendASCII ( \"a_zip_file.zip\" ) ;\n browser ( ) -> profile ( ) -> GetPrefs ( ) -> SetFilePath ( prefs : : kDownloadDefaultDirectory , new_download_dir ) ;\n std : : unique_ptr < content : : DownloadTestObserver > downloads_observer ( CreateWaiter ( browser ( ) , 1 ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/downloads/a_zip_file.zip\" ) ) ;\n downloads_observer -> WaitForFinished ( ) ;\n base : : ScopedAllowBlockingForTesting allow_blocking ;\n EXPECT_TRUE ( base : : PathExists ( downloaded_pkg ) ) ;\n }"}
{"idx": 14959, "target": 0, "func": "static void scale_and_extend_frame ( const YV12_BUFFER_CONFIG * src , YV12_BUFFER_CONFIG * dst ) {\n const int src_w = src -> y_crop_width ;\n const int src_h = src -> y_crop_height ;\n const int dst_w = dst -> y_crop_width ;\n const int dst_h = dst -> y_crop_height ;\n const uint8_t * const srcs [ 3 ] = {\n src -> y_buffer , src -> u_buffer , src -> v_buffer }\n ;\n const int src_strides [ 3 ] = {\n src -> y_stride , src -> uv_stride , src -> uv_stride }\n ;\n uint8_t * const dsts [ 3 ] = {\n dst -> y_buffer , dst -> u_buffer , dst -> v_buffer }\n ;\n const int dst_strides [ 3 ] = {\n dst -> y_stride , dst -> uv_stride , dst -> uv_stride }\n ;\n const InterpKernel * const kernel = vp9_get_interp_kernel ( EIGHTTAP ) ;\n int x , y , i ;\n for ( y = 0 ;\n y < dst_h ;\n y += 16 ) {\n for ( x = 0 ;\n x < dst_w ;\n x += 16 ) {\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n ++ i ) {\n const int factor = ( i == 0 || i == 3 ? 1 : 2 ) ;\n const int x_q4 = x * ( 16 / factor ) * src_w / dst_w ;\n const int y_q4 = y * ( 16 / factor ) * src_h / dst_h ;\n const int src_stride = src_strides [ i ] ;\n const int dst_stride = dst_strides [ i ] ;\n const uint8_t * src_ptr = srcs [ i ] + ( y / factor ) * src_h / dst_h * src_stride + ( x / factor ) * src_w / dst_w ;\n uint8_t * dst_ptr = dsts [ i ] + ( y / factor ) * dst_stride + ( x / factor ) ;\n vp9_convolve8 ( src_ptr , src_stride , dst_ptr , dst_stride , kernel [ x_q4 & 0xf ] , 16 * src_w / dst_w , kernel [ y_q4 & 0xf ] , 16 * src_h / dst_h , / factor , 16 / factor ) ;\n }\n }\n }\n vp9_extend_frame_borders ( dst ) ;\n }"}
{"idx": 14960, "target": 0, "func": "static int dissect_h245_SET_SIZE_1_15_OF_MultiplexTableEntryNumber ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_set_of ( tvb , offset , actx , tree , hf_index , ett_h245_SET_SIZE_1_15_OF_MultiplexTableEntryNumber , SET_SIZE_1_15_OF_MultiplexTableEntryNumber_set_of , 1 , 15 , FALSE ) ;\n return offset ;\n }"}
{"idx": 14961, "target": 0, "func": "static void find_deltas ( struct object_entry * * list , unsigned * list_size , int window , int depth , unsigned * processed ) {\n uint32_t i , idx = 0 , count = 0 ;\n struct unpacked * array ;\n unsigned long mem_usage = 0 ;\n array = xcalloc ( window , sizeof ( struct unpacked ) ) ;\n for ( ;\n ;\n ) {\n struct object_entry * entry ;\n struct unpacked * n = array + idx ;\n int j , max_depth , best_base = - 1 ;\n progress_lock ( ) ;\n if ( ! * list_size ) {\n progress_unlock ( ) ;\n break ;\n }\n entry = * list ++ ;\n ( * list_size ) -- ;\n if ( ! entry -> preferred_base ) {\n ( * processed ) ++ ;\n display_progress ( progress_state , * processed ) ;\n }\n progress_unlock ( ) ;\n mem_usage -= free_unpacked ( n ) ;\n n -> entry = entry ;\n while ( window_memory_limit && mem_usage > window_memory_limit && count > 1 ) {\n uint32_t tail = ( idx + window - count ) % window ;\n mem_usage -= free_unpacked ( array + tail ) ;\n count -- ;\n }\n if ( entry -> preferred_base ) goto next ;\n max_depth = depth ;\n if ( entry -> delta_child ) {\n max_depth -= check_delta_limit ( entry , 0 ) ;\n if ( max_depth <= 0 ) goto next ;\n }\n j = window ;\n while ( -- j > 0 ) {\n int ret ;\n uint32_t other_idx = idx + j ;\n struct unpacked * m ;\n if ( other_idx >= window ) other_idx -= window ;\n m = array + other_idx ;\n if ( ! m -> entry ) break ;\n ret = try_delta ( n , m , max_depth , & mem_usage ) ;\n if ( ret < 0 ) break ;\n else if ( ret > 0 ) best_base = other_idx ;\n }\n if ( entry -> delta_data && ! pack_to_stdout ) {\n entry -> z_delta_size = do_compress ( & entry -> delta_data , entry -> delta_size ) ;\n cache_lock ( ) ;\n delta_cache_size -= entry -> delta_size ;\n delta_cache_size += entry -> z_delta_size ;\n cache_unlock ( ) ;\n }\n if ( entry -> delta && max_depth <= n -> depth ) continue ;\n if ( entry -> delta ) {\n struct unpacked swap = array [ best_base ] ;\n int dist = ( window + idx - best_base ) % window ;\n int dst = best_base ;\n while ( dist -- ) {\n int src = ( dst + 1 ) % window ;\n array [ dst ] = array [ src ] ;\n dst = src ;\n }\n array [ dst ] = swap ;\n }\n next : idx ++ ;\n if ( count + 1 < window ) count ++ ;\n if ( idx >= window ) idx = 0 ;\n }\n for ( i = 0 ;\n i < window ;\n ++ i ) {\n free_delta_index ( array [ i ] . index ) ;\n free ( array [ i ] . data ) ;\n }\n free ( array ) ;\n }"}
{"idx": 14962, "target": 0, "func": "static inline int rsvp_class_to_filter_num ( int classnum ) {\n switch ( classnum ) {\n case RSVP_CLASS_SESSION : case RSVP_CLASS_HOP : case RSVP_CLASS_INTEGRITY : case RSVP_CLASS_TIME_VALUES : case RSVP_CLASS_ERROR : case RSVP_CLASS_SCOPE : case RSVP_CLASS_STYLE : case RSVP_CLASS_FLOWSPEC : case RSVP_CLASS_FILTER_SPEC : case RSVP_CLASS_SENDER_TEMPLATE : case RSVP_CLASS_SENDER_TSPEC : case RSVP_CLASS_ADSPEC : case RSVP_CLASS_POLICY : case RSVP_CLASS_CONFIRM : case RSVP_CLASS_LABEL : case RSVP_CLASS_LABEL_REQUEST : case RSVP_CLASS_HELLO : case RSVP_CLASS_EXPLICIT_ROUTE : case RSVP_CLASS_RECORD_ROUTE : case RSVP_CLASS_MESSAGE_ID : case RSVP_CLASS_MESSAGE_ID_ACK : case RSVP_CLASS_MESSAGE_ID_LIST : return classnum + RSVPF_OBJECT ;\n break ;\n case RSVP_CLASS_RECOVERY_LABEL : case RSVP_CLASS_UPSTREAM_LABEL : case RSVP_CLASS_LABEL_SET : case RSVP_CLASS_PROTECTION : return RSVPF_RECOVERY_LABEL + ( classnum - RSVP_CLASS_RECOVERY_LABEL ) ;\n case RSVP_CLASS_SUGGESTED_LABEL : case RSVP_CLASS_ACCEPTABLE_LABEL_SET : case RSVP_CLASS_RESTART_CAP : return RSVPF_SUGGESTED_LABEL + ( classnum - RSVP_CLASS_SUGGESTED_LABEL ) ;\n case RSVP_CLASS_LINK_CAP : return RSVPF_LINK_CAP ;\n case RSVP_CLASS_DIFFSERV : return RSVPF_DIFFSERV ;\n case RSVP_CLASS_CLASSTYPE : return RSVPF_DSTE ;\n case RSVP_CLASS_NOTIFY_REQUEST : return RSVPF_NOTIFY_REQUEST ;\n case RSVP_CLASS_ADMIN_STATUS : return RSVPF_ADMIN_STATUS ;\n case RSVP_CLASS_LSP_ATTRIBUTES : return RSVPF_LSP_ATTRIBUTES ;\n case RSVP_CLASS_ASSOCIATION : return RSVPF_ASSOCIATION ;\n case RSVP_CLASS_CALL_ATTRIBUTES : return RSVPF_CALL_ATTRIBUTES ;\n case RSVP_CLASS_SESSION_ATTRIBUTE : return RSVPF_SESSION_ATTRIBUTE ;\n case RSVP_CLASS_GENERALIZED_UNI : return RSVPF_GENERALIZED_UNI ;\n case RSVP_CLASS_CALL_ID : return RSVPF_CALL_ID ;\n case RSVP_CLASS_3GPP2_OBJECT : return RSVPF_3GPP2_OBJECT ;\n case RSVP_CLASS_DCLASS : return RSVPF_DCLASS ;\n case RSVP_CLASS_LSP_TUNNEL_IF_ID : return RSVPF_LSP_TUNNEL_IF_ID ;\n case RSVP_CLASS_EXCLUDE_ROUTE : return RSVPF_EXCLUDE_ROUTE ;\n case RSVP_CLASS_JUNIPER_PROPERTIES : return RSVPF_JUNIPER ;\n case RSVP_CLASS_VENDOR_PRIVATE_1 : case RSVP_CLASS_VENDOR_PRIVATE_2 : case RSVP_CLASS_VENDOR_PRIVATE_3 : case RSVP_CLASS_VENDOR_PRIVATE_4 : case RSVP_CLASS_VENDOR_PRIVATE_5 : case RSVP_CLASS_VENDOR_PRIVATE_6 : case RSVP_CLASS_VENDOR_PRIVATE_7 : case RSVP_CLASS_VENDOR_PRIVATE_8 : case RSVP_CLASS_VENDOR_PRIVATE_9 : case RSVP_CLASS_VENDOR_PRIVATE_10 : case RSVP_CLASS_VENDOR_PRIVATE_11 : case RSVP_CLASS_VENDOR_PRIVATE_12 : return RSVPF_PRIVATE_OBJ ;\n default : return RSVPF_UNKNOWN_OBJ ;\n }\n }"}
{"idx": 14963, "target": 1, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING )"}
{"idx": 14964, "target": 0, "func": "size_t check_mul_overflow ( size_t a , size_t b , size_t * res ) {\n size_t tmp = a * b ;\n if ( a != 0 && tmp / a != b ) return 1 ;\n * res = tmp ;\n return 0 ;\n }"}
{"idx": 14965, "target": 0, "func": "static void sbr_chirp ( SpectralBandReplication * sbr , SBRData * ch_data ) {\n int i ;\n float new_bw ;\n static const float bw_tab [ ] = {\n 0.0f , 0.75f , 0.9f , 0.98f }\n ;\n for ( i = 0 ;\n i < sbr -> n_q ;\n i ++ ) {\n if ( ch_data -> bs_invf_mode [ 0 ] [ i ] + ch_data -> bs_invf_mode [ 1 ] [ i ] == 1 ) {\n new_bw = 0.6f ;\n }\n else new_bw = bw_tab [ ch_data -> bs_invf_mode [ 0 ] [ i ] ] ;\n if ( new_bw < ch_data -> bw_array [ i ] ) {\n new_bw = 0.75f * new_bw + 0.25f * ch_data -> bw_array [ i ] ;\n }\n else new_bw = 0.90625f * new_bw + 0.09375f * ch_data -> bw_array [ i ] ;\n ch_data -> bw_array [ i ] = new_bw < 0.015625f ? 0.0f : new_bw ;\n }\n }"}
{"idx": 14966, "target": 0, "func": "static void remove_monitor_link ( NautilusDirectory * directory , GList * link ) {\n Monitor * monitor ;\n if ( link != NULL ) {\n monitor = link -> data ;\n request_counter_remove_request ( directory -> details -> monitor_counters , monitor -> request ) ;\n directory -> details -> monitor_list = g_list_remove_link ( directory -> details -> monitor_list , link ) ;\n g_free ( monitor ) ;\n g_list_free_1 ( link ) ;\n }\n }"}
{"idx": 14967, "target": 0, "func": "bool message_decoder_decode_next_block ( struct message_decoder_context * ctx , struct message_block * input , struct message_block * output ) {\n if ( input -> part != ctx -> prev_part ) {\n message_decoder_decode_reset ( ctx ) ;\n }\n output -> part = input -> part ;\n ctx -> prev_part = input -> part ;\n if ( input -> hdr != NULL ) {\n output -> size = 0 ;\n return message_decode_header ( ctx , input -> hdr , output ) ;\n }\n else if ( input -> size != 0 ) return message_decode_body ( ctx , input , output ) ;\n else {\n output -> hdr = NULL ;\n output -> size = 0 ;\n message_decode_body_init_charset ( ctx , input -> part ) ;\n return TRUE ;\n }\n }"}
{"idx": 14968, "target": 0, "func": "static int64_t qemu_icount_round ( int64_t count ) {\n return ( count + ( 1 << icount_time_shift ) - 1 ) >> icount_time_shift ;\n }"}
{"idx": 14969, "target": 0, "func": "static long get_gmoffset ( struct tm * tm ) {\n long offset ;\n # if defined ( HAVE__GET_TIMEZONE ) _get_timezone ( & offset ) ;\n # elif defined ( __CYGWIN__ ) || defined ( __MINGW32__ ) || defined ( __BORLANDC__ ) offset = _timezone ;\n # else offset = timezone ;\n # endif offset *= - 1 ;\n if ( tm -> tm_isdst ) offset += 3600 ;\n return ( offset ) ;\n }"}
{"idx": 14970, "target": 1, "func": "void vp9_idct32x32_1_add_c ( const int16_t * input , uint8_t * dest , int stride ) {\n int i , j ;\n int a1 ;\n int16_t out = dct_const_round_shift ( input [ 0 ] * cospi_16_64 ) ;\n out = dct_const_round_shift ( out * cospi_16_64 ) ;\n a1 = ROUND_POWER_OF_TWO ( out , 6 ) ;\n for ( j = 0 ;\n j < 32 ;\n ++ j ) {\n for ( i = 0 ;\n i < 32 ;\n ++ i ) dest [ i ] = clip_pixel ( dest [ i ] + a1 ) ;\n dest += stride ;\n }\n }"}
{"idx": 14971, "target": 0, "func": "void proto_get_frame_protocols ( const wmem_list_t * layers , gboolean * is_ip , gboolean * is_tcp , gboolean * is_udp , gboolean * is_sctp , gboolean * is_ssl , gboolean * is_rtp , gboolean * is_lte_rlc ) {\n wmem_list_frame_t * protos = wmem_list_head ( layers ) ;\n int proto_id ;\n const char * proto_name ;\n while ( protos != NULL ) {\n proto_id = GPOINTER_TO_INT ( wmem_list_frame_data ( protos ) ) ;\n proto_name = proto_get_protocol_filter_name ( proto_id ) ;\n if ( is_ip && ( ( ! strcmp ( proto_name , \"ip\" ) ) || ( ! strcmp ( proto_name , \"ipv6\" ) ) ) ) {\n * is_ip = TRUE ;\n }\n else if ( is_tcp && ! strcmp ( proto_name , \"tcp\" ) ) {\n * is_tcp = TRUE ;\n }\n else if ( is_udp && ! strcmp ( proto_name , \"udp\" ) ) {\n * is_udp = TRUE ;\n }\n else if ( is_sctp && ! strcmp ( proto_name , \"sctp\" ) ) {\n * is_sctp = TRUE ;\n }\n else if ( is_ssl && ! strcmp ( proto_name , \"ssl\" ) ) {\n * is_ssl = TRUE ;\n }\n else if ( is_rtp && ! strcmp ( proto_name , \"rtp\" ) ) {\n * is_rtp = TRUE ;\n }\n else if ( is_lte_rlc && ! strcmp ( proto_name , \"rlc-lte\" ) ) {\n * is_lte_rlc = TRUE ;\n }\n protos = wmem_list_frame_next ( protos ) ;\n }\n }"}
{"idx": 14972, "target": 0, "func": "static PyObject * _cbson_bson_to_dict ( PyObject * self , PyObject * args ) {\n unsigned int size ;\n Py_ssize_t total_size ;\n const char * string ;\n PyObject * bson ;\n PyObject * as_class ;\n unsigned char tz_aware ;\n unsigned char uuid_subtype ;\n PyObject * dict ;\n PyObject * remainder ;\n PyObject * result ;\n if ( ! PyArg_ParseTuple ( args , \"OObb\" , & bson , & as_class , & tz_aware , & uuid_subtype ) ) {\n return NULL ;\n }\n # if PY_MAJOR_VERSION >= 3 if ( ! PyBytes_Check ( bson ) ) {\n PyErr_SetString ( PyExc_TypeError , \"argument to _bson_to_dict must be a bytes object\" ) ;\n # else if ( ! PyString_Check ( bson ) ) {\n PyErr_SetString ( PyExc_TypeError , \"argument to _bson_to_dict must be a string\" ) ;\n # endif return NULL ;\n }\n # if PY_MAJOR_VERSION >= 3 total_size = PyBytes_Size ( bson ) ;\n # else total_size = PyString_Size ( bson ) ;\n # endif if ( total_size < 5 ) {\n PyObject * InvalidBSON = _error ( \"InvalidBSON\" ) ;\n PyErr_SetString ( InvalidBSON , \"not enough data for a BSON document\" ) ;\n Py_DECREF ( InvalidBSON ) ;\n return NULL ;\n }\n # if PY_MAJOR_VERSION >= 3 string = PyBytes_AsString ( bson ) ;\n # else string = PyString_AsString ( bson ) ;\n # endif if ( ! string ) {\n return NULL ;\n }\n memcpy ( & size , string , 4 ) ;\n if ( total_size < size ) {\n PyObject * InvalidBSON = _error ( \"InvalidBSON\" ) ;\n PyErr_SetString ( InvalidBSON , \"objsize too large\" ) ;\n Py_DECREF ( InvalidBSON ) ;\n return NULL ;\n }\n if ( size != total_size || string [ size - 1 ] ) {\n PyObject * InvalidBSON = _error ( \"InvalidBSON\" ) ;\n PyErr_SetString ( InvalidBSON , \"bad eoo\" ) ;\n Py_DECREF ( InvalidBSON ) ;\n return NULL ;\n }\n dict = elements_to_dict ( self , string + 4 , size - 5 , as_class , tz_aware , uuid_subtype ) ;\n if ( ! dict ) {\n return NULL ;\n }\n # if PY_MAJOR_VERSION >= 3 remainder = PyBytes_FromStringAndSize ( string + size , total_size - size ) ;\n # else remainder = PyString_FromStringAndSize ( string + size , total_size - size ) ;\n # endif if ( ! remainder ) {\n Py_DECREF ( dict ) ;\n return NULL ;\n }\n result = Py_BuildValue ( \"OO\" , dict , remainder ) ;\n Py_DECREF ( dict ) ;\n Py_DECREF ( remainder ) ;\n return result ;\n }"}
{"idx": 14973, "target": 0, "func": "void iax2_calls_init_tap ( void ) {\n GString * error_string ;\n if ( have_iax2_tap_listener == FALSE ) {\n error_string = register_tap_listener ( \"IAX2\" , & ( the_tapinfo_struct . iax2_dummy ) , NULL , TL_REQUIRES_PROTO_TREE , voip_calls_dlg_reset , iax2_calls_packet , voip_calls_dlg_draw ) ;\n if ( error_string != NULL ) {\n simple_dialog ( ESD_TYPE_ERROR , ESD_BTN_OK , \"%s\" , error_string -> str ) ;\n g_string_free ( error_string , TRUE ) ;\n exit ( 1 ) ;\n }\n have_iax2_tap_listener = TRUE ;\n }\n }"}
{"idx": 14974, "target": 0, "func": "static int qemuMonitorTextSaveMemory ( qemuMonitorPtr mon , const char * cmdtype , unsigned long long offset , size_t length , const char * path ) {\n char * cmd = NULL ;\n char * reply = NULL ;\n char * safepath = NULL ;\n int ret = - 1 ;\n if ( ! ( safepath = qemuMonitorEscapeArg ( path ) ) ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n if ( virAsprintf ( & cmd , \"%s %llu %zi \\\"%s\\\"\" , cmdtype , offset , length , safepath ) < 0 ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"could not save memory region to '%s'\" ) , path ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( cmd ) ;\n VIR_FREE ( reply ) ;\n VIR_FREE ( safepath ) ;\n return ret ;\n }"}
{"idx": 14975, "target": 0, "func": "static int dissect_ber_T_encoding ( gboolean implicit_tag _U_ , tvbuff_t * tvb , int offset , asn1_ctx_t * actx , proto_tree * tree , int hf_index ) {\n offset = dissect_ber_choice ( actx , tree , tvb , offset , T_encoding_choice , hf_index , ett_ber_T_encoding , & actx -> external . encoding ) ;\n return offset ;\n }"}
{"idx": 14976, "target": 0, "func": "static void Type_Dictionary_Free ( struct _cms_typehandler_struct * self , void * Ptr ) {\n cmsDictFree ( ( cmsHANDLE ) Ptr ) ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 14977, "target": 0, "func": "TEST_F ( TemplateURLTest , URLRefTestIndices ) {\n TemplateURLData data ;\n data . SetURL ( \"http://foo{\nsearchTerms}\nx{\nstartIndex?}\ny{\nstartPage?}\n\" ) ;\n TemplateURL url ( data ) ;\n EXPECT_TRUE ( url . url_ref ( ) . IsValid ( search_terms_data_ ) ) ;\n ASSERT_TRUE ( url . url_ref ( ) . SupportsReplacement ( search_terms_data_ ) ) ;\n GURL result ( url . url_ref ( ) . ReplaceSearchTerms ( TemplateURLRef : : SearchTermsArgs ( ASCIIToUTF16 ( \"X\" ) ) , search_terms_data_ ) ) ;\n ASSERT_TRUE ( result . is_valid ( ) ) ;\n EXPECT_EQ ( \"http://fooxxy/\" , result . spec ( ) ) ;\n }"}
{"idx": 14978, "target": 0, "func": "static void xhci_doorbell_write ( void * ptr , hwaddr reg , uint64_t val , unsigned size ) {\n XHCIState * xhci = ptr ;\n unsigned int epid , streamid ;\n trace_usb_xhci_doorbell_write ( reg , val ) ;\n if ( ! xhci_running ( xhci ) ) {\n DPRINTF ( \"xhci: wrote doorbell while xHC stopped or paused\\n\" ) ;\n return ;\n }\n reg >>= 2 ;\n if ( reg == 0 ) {\n if ( val == 0 ) {\n xhci_process_commands ( xhci ) ;\n }\n else {\n DPRINTF ( \"xhci: bad doorbell 0 write: 0x%x\\n\" , ( uint32_t ) val ) ;\n }\n }\n else {\n epid = val & 0xff ;\n streamid = ( val >> 16 ) & 0xffff ;\n if ( reg > xhci -> numslots ) {\n DPRINTF ( \"xhci: bad doorbell %d\\n\" , ( int ) reg ) ;\n }\n else if ( epid > 31 ) {\n DPRINTF ( \"xhci: bad doorbell %d write: 0x%x\\n\" , ( int ) reg , ( uint32_t ) val ) ;\n }\n else {\n xhci_kick_ep ( xhci , reg , epid , streamid ) ;\n }\n }\n }"}
{"idx": 14979, "target": 0, "func": "void * hb_set_get_user_data ( hb_set_t * set , hb_user_data_key_t * key ) {\n return hb_object_get_user_data ( set , key ) ;\n }"}
{"idx": 14980, "target": 0, "func": "static krb5_error_code create_princ ( kadm5_principal_ent_rec * princ , long mask , int n_ks , krb5_key_salt_tuple * ks , char * pass ) {\n if ( ks ) return kadm5_create_principal_3 ( handle , princ , mask , n_ks , ks , pass ) ;\n else return kadm5_create_principal ( handle , princ , mask , pass ) ;\n }"}
{"idx": 14981, "target": 0, "func": "CharList * pkg_appendUniqueDirToList ( CharList * l , CharList * * end , const char * strAlias ) {\n char aBuf [ 1024 ] ;\n char * rPtr ;\n rPtr = uprv_strrchr ( strAlias , U_FILE_SEP_CHAR ) ;\n # if ( U_FILE_SEP_CHAR != U_FILE_ALT_SEP_CHAR ) {\n char * aPtr = uprv_strrchr ( strAlias , U_FILE_ALT_SEP_CHAR ) ;\n if ( ! rPtr || ( aPtr && ( aPtr > rPtr ) ) ) {\n rPtr = aPtr ;\n }\n }\n # endif if ( ! rPtr ) {\n return l ;\n }\n if ( ( rPtr - strAlias ) >= UPRV_LENGTHOF ( aBuf ) ) {\n fprintf ( stderr , \"## ERR: Path too long [%d chars]: %s\\n\" , ( int ) sizeof ( aBuf ) , strAlias ) ;\n return l ;\n }\n strncpy ( aBuf , strAlias , ( rPtr - strAlias ) ) ;\n aBuf [ rPtr - strAlias ] = 0 ;\n convertToNativePathSeparators ( aBuf ) ;\n if ( ! pkg_listContains ( l , aBuf ) ) {\n return pkg_appendToList ( l , end , uprv_strdup ( aBuf ) ) ;\n }\n else {\n return l ;\n }\n }"}
{"idx": 14982, "target": 0, "func": "void check_result ( ) {\n const char * mess = 0 ;\n DBUG_ENTER ( \"check_result\" ) ;\n DBUG_ASSERT ( result_file_name ) ;\n DBUG_PRINT ( \"enter\" , ( \"result_file_name: %s\" , result_file_name ) ) ;\n switch ( compare_files ( log_file . file_name ( ) , result_file_name ) ) {\n case RESULT_OK : if ( ! error_count ) break ;\n mess = \"Got errors while running test\" ;\n case RESULT_LENGTH_MISMATCH : if ( ! mess ) mess = \"Result length mismatch\\n\" ;\n case RESULT_CONTENT_MISMATCH : {\n char reject_file [ FN_REFLEN ] ;\n size_t reject_length ;\n if ( ! mess ) mess = \"Result content mismatch\\n\" ;\n dirname_part ( reject_file , result_file_name , & reject_length ) ;\n if ( access ( reject_file , W_OK ) == 0 ) {\n fn_format ( reject_file , result_file_name , \"\" , \".reject\" , MY_REPLACE_EXT ) ;\n }\n else {\n fn_format ( reject_file , result_file_name , opt_logdir , \".reject\" , MY_REPLACE_DIR | MY_REPLACE_EXT ) ;\n }\n if ( my_copy ( log_file . file_name ( ) , reject_file , MYF ( 0 ) ) != 0 ) die ( \"Failed to copy '%s' to '%s', errno: %d\" , log_file . file_name ( ) , reject_file , errno ) ;\n show_diff ( NULL , result_file_name , reject_file ) ;\n die ( \"%s\" , mess ) ;\n break ;\n }\n default : die ( \"Unknown error code from dyn_string_cmp()\" ) ;\n }\n DBUG_VOID_RETURN ;\n }"}
{"idx": 14983, "target": 0, "func": "static int rv20_decode_picture_header ( RVDecContext * rv ) {\n MpegEncContext * s = & rv -> m ;\n int seq , mb_pos , i ;\n int rpr_bits ;\n i = get_bits ( & s -> gb , 2 ) ;\n switch ( i ) {\n case 0 : s -> pict_type = AV_PICTURE_TYPE_I ;\n break ;\n case 1 : s -> pict_type = AV_PICTURE_TYPE_I ;\n break ;\n case 2 : s -> pict_type = AV_PICTURE_TYPE_P ;\n break ;\n case 3 : s -> pict_type = AV_PICTURE_TYPE_B ;\n break ;\n default : av_log ( s -> avctx , AV_LOG_ERROR , \"unknown frame type\\n\" ) ;\n return - 1 ;\n }\n if ( s -> last_picture_ptr == NULL && s -> pict_type == AV_PICTURE_TYPE_B ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"early B pix\\n\" ) ;\n return - 1 ;\n }\n if ( get_bits1 ( & s -> gb ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"reserved bit set\\n\" ) ;\n return - 1 ;\n }\n s -> qscale = get_bits ( & s -> gb , 5 ) ;\n if ( s -> qscale == 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"error, qscale:0\\n\" ) ;\n return - 1 ;\n }\n if ( RV_GET_MINOR_VER ( rv -> sub_id ) >= 2 ) s -> loop_filter = get_bits1 ( & s -> gb ) ;\n if ( RV_GET_MINOR_VER ( rv -> sub_id ) <= 1 ) seq = get_bits ( & s -> gb , 8 ) << 7 ;\n else seq = get_bits ( & s -> gb , 13 ) << 2 ;\n rpr_bits = s -> avctx -> extradata [ 1 ] & 7 ;\n if ( rpr_bits ) {\n int f , new_w , new_h ;\n rpr_bits = FFMIN ( ( rpr_bits >> 1 ) + 1 , 3 ) ;\n f = get_bits ( & s -> gb , rpr_bits ) ;\n if ( f ) {\n new_w = 4 * ( ( uint8_t * ) s -> avctx -> extradata ) [ 6 + 2 * f ] ;\n new_h = 4 * ( ( uint8_t * ) s -> avctx -> extradata ) [ 7 + 2 * f ] ;\n }\n else {\n new_w = s -> orig_width ;\n new_h = s -> orig_height ;\n }\n if ( new_w != s -> width || new_h != s -> height ) {\n av_log ( s -> avctx , AV_LOG_DEBUG , \"attempting to change resolution to %dx%d\\n\" , new_w , new_h ) ;\n if ( av_image_check_size ( new_w , new_h , 0 , s -> avctx ) < 0 ) return - 1 ;\n ff_MPV_common_end ( s ) ;\n avcodec_set_dimensions ( s -> avctx , new_w , new_h ) ;\n s -> width = new_w ;\n s -> height = new_h ;\n if ( ff_MPV_common_init ( s ) < 0 ) return - 1 ;\n }\n if ( s -> avctx -> debug & FF_DEBUG_PICT_INFO ) {\n av_log ( s -> avctx , AV_LOG_DEBUG , \"F %d/%d\\n\" , f , rpr_bits ) ;\n }\n }\n else if ( av_image_check_size ( s -> width , s -> height , 0 , s -> avctx ) < 0 ) return AVERROR_INVALIDDATA ;\n mb_pos = ff_h263_decode_mba ( s ) ;\n seq |= s -> time & ~ 0x7FFF ;\n if ( seq - s -> time > 0x4000 ) seq -= 0x8000 ;\n if ( seq - s -> time < - 0x4000 ) seq += 0x8000 ;\n if ( seq != s -> time ) {\n if ( s -> pict_type != AV_PICTURE_TYPE_B ) {\n s -> time = seq ;\n s -> pp_time = s -> time - s -> last_non_b_time ;\n s -> last_non_b_time = s -> time ;\n }\n else {\n s -> time = seq ;\n s -> pb_time = s -> pp_time - ( s -> last_non_b_time - s -> time ) ;\n if ( s -> pp_time <= s -> pb_time || s -> pp_time <= s -> pp_time - s -> pb_time || s -> pp_time <= 0 ) {\n av_log ( s -> avctx , AV_LOG_DEBUG , \"messed up order, possible from seeking? skipping current b frame\\n\" ) ;\n return FRAME_SKIPPED ;\n }\n ff_mpeg4_init_direct_mv ( s ) ;\n }\n }\n s -> no_rounding = get_bits1 ( & s -> gb ) ;\n if ( RV_GET_MINOR_VER ( rv -> sub_id ) <= 1 && s -> pict_type == AV_PICTURE_TYPE_B ) skip_bits ( & s -> gb , 5 ) ;\n s -> f_code = 1 ;\n s -> unrestricted_mv = 1 ;\n s -> h263_aic = s -> pict_type == AV_PICTURE_TYPE_I ;\n s -> modified_quant = 1 ;\n s -> loop_filter = 1 ;\n if ( s -> avctx -> debug & FF_DEBUG_PICT_INFO ) {\n av_log ( s -> avctx , AV_LOG_INFO , \"num:%5d x:%2d y:%2d type:%d qscale:%2d rnd:%d\\n\" , seq , s -> mb_x , s -> mb_y , s -> pict_type , s -> qscale , s -> no_rounding ) ;\n }\n assert ( s -> pict_type != AV_PICTURE_TYPE_B || ! s -> low_delay ) ;\n return s -> mb_width * s -> mb_height - mb_pos ;\n }"}
{"idx": 14984, "target": 0, "func": "static int dca_subframe_footer ( DCAContext * s , int base_channel ) {\n int aux_data_count = 0 , i ;\n if ( ! base_channel ) {\n if ( s -> timestamp ) skip_bits_long ( & s -> gb , 32 ) ;\n if ( s -> aux_data ) aux_data_count = get_bits ( & s -> gb , 6 ) ;\n for ( i = 0 ;\n i < aux_data_count ;\n i ++ ) get_bits ( & s -> gb , 8 ) ;\n if ( s -> crc_present && ( s -> downmix || s -> dynrange ) ) get_bits ( & s -> gb , 16 ) ;\n }\n return 0 ;\n }"}
{"idx": 14985, "target": 0, "func": "static void got_mount ( MountState * state , GMount * mount ) {\n NautilusDirectory * directory ;\n NautilusFile * file ;\n directory = nautilus_directory_ref ( state -> directory ) ;\n state -> directory -> details -> mount_state = NULL ;\n async_job_end ( state -> directory , \"mount\" ) ;\n file = nautilus_file_ref ( state -> file ) ;\n file -> details -> mount_is_up_to_date = TRUE ;\n nautilus_file_set_mount ( file , mount ) ;\n nautilus_directory_async_state_changed ( directory ) ;\n nautilus_file_changed ( file ) ;\n nautilus_file_unref ( file ) ;\n nautilus_directory_unref ( directory ) ;\n mount_state_free ( state ) ;\n }"}
{"idx": 14986, "target": 0, "func": "void # ifdef M_DEBUG mpi_debug_resize ( MPI a , unsigned nlimbs , const char * info ) # else mpi_resize ( MPI a , unsigned nlimbs ) # endif {\n if ( nlimbs <= a -> alloced ) return ;\n # ifdef M_DEBUG if ( a -> d ) a -> d = m_debug_realloc ( a -> d , nlimbs * sizeof ( mpi_limb_t ) , info ) ;\n else a -> d = m_debug_alloc_clear ( nlimbs * sizeof ( mpi_limb_t ) , info ) ;\n # else if ( a -> d ) a -> d = xrealloc ( a -> d , nlimbs * sizeof ( mpi_limb_t ) ) ;\n else a -> d = xmalloc_clear ( nlimbs * sizeof ( mpi_limb_t ) ) ;\n # endif a -> alloced = nlimbs ;\n }"}
{"idx": 14987, "target": 0, "func": "static void dumpTablespaces ( PGconn * conn ) {\n PGresult * res ;\n int i ;\n if ( server_version >= 90600 ) res = executeQuery ( conn , \"SELECT oid, spcname, \" \"pg_catalog.pg_get_userbyid(spcowner) AS spcowner, \" \"pg_catalog.pg_tablespace_location(oid), \" \"(SELECT pg_catalog.array_agg(acl) FROM (SELECT pg_catalog.unnest(coalesce(spcacl,pg_catalog.acldefault('t',spcowner))) AS acl \" \"EXCEPT SELECT pg_catalog.unnest(pg_catalog.acldefault('t',spcowner))) as foo)\" \"AS spcacl,\" \"(SELECT pg_catalog.array_agg(acl) FROM (SELECT pg_catalog.unnest(pg_catalog.acldefault('t',spcowner)) AS acl \" \"EXCEPT SELECT pg_catalog.unnest(coalesce(spcacl,pg_catalog.acldefault('t',spcowner)))) as foo)\" \"AS rspcacl,\" \"array_to_string(spcoptions, ', '),\" \"pg_catalog.shobj_description(oid, 'pg_tablespace') \" \"FROM pg_catalog.pg_tablespace \" \"WHERE spcname !~ '^pg_' \" \"ORDER BY 1\" ) ;\n else if ( server_version >= 90200 ) res = executeQuery ( conn , \"SELECT oid, spcname, \" \"pg_catalog.pg_get_userbyid(spcowner) AS spcowner, \" \"pg_catalog.pg_tablespace_location(oid), spcacl, '' as rspcacl, \" \"array_to_string(spcoptions, ', '),\" \"pg_catalog.shobj_description(oid, 'pg_tablespace') \" \"FROM pg_catalog.pg_tablespace \" \"WHERE spcname !~ '^pg_' \" \"ORDER BY 1\" ) ;\n else if ( server_version >= 90000 ) res = executeQuery ( conn , \"SELECT oid, spcname, \" \"pg_catalog.pg_get_userbyid(spcowner) AS spcowner, \" \"spclocation, spcacl, '' as rspcacl, \" \"array_to_string(spcoptions, ', '),\" \"pg_catalog.shobj_description(oid, 'pg_tablespace') \" \"FROM pg_catalog.pg_tablespace \" \"WHERE spcname !~ '^pg_' \" \"ORDER BY 1\" ) ;\n else if ( server_version >= 80200 ) res = executeQuery ( conn , \"SELECT oid, spcname, \" \"pg_catalog.pg_get_userbyid(spcowner) AS spcowner, \" \"spclocation, spcacl, '' as rspcacl, null, \" \"pg_catalog.shobj_description(oid, 'pg_tablespace') \" \"FROM pg_catalog.pg_tablespace \" \"WHERE spcname !~ '^pg_' \" \"ORDER BY 1\" ) ;\n else res = executeQuery ( conn , \"SELECT oid, spcname, \" \"pg_catalog.pg_get_userbyid(spcowner) AS spcowner, \" \"spclocation, spcacl, '' as rspcacl, \" \"null, null \" \"FROM pg_catalog.pg_tablespace \" \"WHERE spcname !~ '^pg_' \" \"ORDER BY 1\" ) ;\n if ( PQntuples ( res ) > 0 ) fprintf ( OPF , \"--\\n-- Tablespaces\\n--\\n\\n\" ) ;\n for ( i = 0 ;\n i < PQntuples ( res ) ;\n i ++ ) {\n PQExpBuffer buf = createPQExpBuffer ( ) ;\n uint32 spcoid = atooid ( PQgetvalue ( res , i , 0 ) ) ;\n char * spcname = PQgetvalue ( res , i , 1 ) ;\n char * spcowner = PQgetvalue ( res , i , 2 ) ;\n char * spclocation = PQgetvalue ( res , i , 3 ) ;\n char * spcacl = PQgetvalue ( res , i , 4 ) ;\n char * rspcacl = PQgetvalue ( res , i , 5 ) ;\n char * spcoptions = PQgetvalue ( res , i , 6 ) ;\n char * spccomment = PQgetvalue ( res , i , 7 ) ;\n char * fspcname ;\n fspcname = pg_strdup ( fmtId ( spcname ) ) ;\n appendPQExpBuffer ( buf , \"CREATE TABLESPACE %s\" , fspcname ) ;\n appendPQExpBuffer ( buf , \" OWNER %s\" , fmtId ( spcowner ) ) ;\n appendPQExpBufferStr ( buf , \" LOCATION \" ) ;\n appendStringLiteralConn ( buf , spclocation , conn ) ;\n appendPQExpBufferStr ( buf , \";\n\\n\" ) ;\n if ( spcoptions && spcoptions [ 0 ] != '\\0' ) appendPQExpBuffer ( buf , \"ALTER TABLESPACE %s SET (%s);\n\\n\" , fspcname , spcoptions ) ;\n if ( ! skip_acls && ! buildACLCommands ( fspcname , NULL , \"TABLESPACE\" , spcacl , rspcacl , spcowner , \"\" , server_version , buf ) ) {\n fprintf ( stderr , _ ( \"%s: could not parse ACL list (%s) for tablespace \\\"%s\\\"\\n\" ) , progname , spcacl , fspcname ) ;\n PQfinish ( conn ) ;\n exit_nicely ( 1 ) ;\n }\n if ( spccomment && strlen ( spccomment ) ) {\n appendPQExpBuffer ( buf , \"COMMENT ON TABLESPACE %s IS \" , fspcname ) ;\n appendStringLiteralConn ( buf , spccomment , conn ) ;\n appendPQExpBufferStr ( buf , \";\n\\n\" ) ;\n }\n if ( ! no_security_labels && server_version >= 90200 ) buildShSecLabels ( conn , \"pg_tablespace\" , spcoid , buf , \"TABLESPACE\" , fspcname ) ;\n fprintf ( OPF , \"%s\" , buf -> data ) ;\n free ( fspcname ) ;\n destroyPQExpBuffer ( buf ) ;\n }\n PQclear ( res ) ;\n fprintf ( OPF , \"\\n\\n\" ) ;\n }"}
{"idx": 14988, "target": 0, "func": "int ff_h264_check_intra_pred_mode ( H264Context * h , int mode , int is_chroma ) {\n static const int8_t top [ 4 ] = {\n LEFT_DC_PRED8x8 , 1 , - 1 , - 1 }\n ;\n static const int8_t left [ 5 ] = {\n TOP_DC_PRED8x8 , - 1 , 2 , - 1 , DC_128_PRED8x8 }\n ;\n if ( mode > 3U ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"out of range intra chroma pred mode at %d %d\\n\" , h -> mb_x , h -> mb_y ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ! ( h -> top_samples_available & 0x8000 ) ) {\n mode = top [ mode ] ;\n if ( mode < 0 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"top block unavailable for requested intra mode at %d %d\\n\" , h -> mb_x , h -> mb_y ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n if ( ( h -> left_samples_available & 0x8080 ) != 0x8080 ) {\n mode = left [ mode ] ;\n if ( is_chroma && ( h -> left_samples_available & 0x8080 ) ) {\n mode = ALZHEIMER_DC_L0T_PRED8x8 + ( ! ( h -> left_samples_available & 0x8000 ) ) + * ( mode == DC_128_PRED8x8 ) ;\n }\n if ( mode < 0 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"left block unavailable for requested intra mode at %d %d\\n\" , h -> mb_x , h -> mb_y ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n return mode ;\n }"}
{"idx": 14989, "target": 0, "func": "TEST_F ( WebUsbDetectorTest , UsbDeviceAddedBeforeActiveTabUrlIsLandingPage ) {\n GURL landing_page_1 ( kLandingPage_1 ) ;\n scoped_refptr < device : : MockUsbDevice > device_1 ( new device : : MockUsbDevice ( 0 , 1 , \"Google\" , kProductName_1 , \"002\" , landing_page_1 ) ) ;\n std : : string guid_1 = device_1 -> guid ( ) ;\n base : : HistogramTester histogram_tester ;\n Initialize ( ) ;\n device_client_ . usb_service ( ) -> AddDevice ( device_1 ) ;\n ASSERT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_1 ) != nullptr ) ;\n AddTab ( browser ( ) , landing_page_1 ) ;\n ASSERT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_1 ) == nullptr ) ;\n histogram_tester . ExpectUniqueSample ( \"WebUsb.NotificationClosed\" , 3 , 1 ) ;\n }"}
{"idx": 14990, "target": 0, "func": "static int mpeg4_decode_partition_b ( MpegEncContext * s , int mb_count ) {\n int mb_num = 0 ;\n static const int8_t quant_tab [ 4 ] = {\n - 1 , - 2 , 1 , 2 }\n ;\n s -> mb_x = s -> resync_mb_x ;\n s -> first_slice_line = 1 ;\n for ( s -> mb_y = s -> resync_mb_y ;\n mb_num < mb_count ;\n s -> mb_y ++ ) {\n ff_init_block_index ( s ) ;\n for ( ;\n mb_num < mb_count && s -> mb_x < s -> mb_width ;\n s -> mb_x ++ ) {\n const int xy = s -> mb_x + s -> mb_y * s -> mb_stride ;\n mb_num ++ ;\n ff_update_block_index ( s ) ;\n if ( s -> mb_x == s -> resync_mb_x && s -> mb_y == s -> resync_mb_y + 1 ) s -> first_slice_line = 0 ;\n if ( s -> pict_type == AV_PICTURE_TYPE_I ) {\n int ac_pred = get_bits1 ( & s -> gb ) ;\n int cbpy = get_vlc2 ( & s -> gb , ff_h263_cbpy_vlc . table , CBPY_VLC_BITS , 1 ) ;\n if ( cbpy < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"cbpy corrupted at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n s -> cbp_table [ xy ] |= cbpy << 2 ;\n s -> current_picture . mb_type [ xy ] |= ac_pred * MB_TYPE_ACPRED ;\n }\n else {\n if ( IS_INTRA ( s -> current_picture . mb_type [ xy ] ) ) {\n int dir = 0 , i ;\n int ac_pred = get_bits1 ( & s -> gb ) ;\n int cbpy = get_vlc2 ( & s -> gb , ff_h263_cbpy_vlc . table , CBPY_VLC_BITS , 1 ) ;\n if ( cbpy < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"I cbpy corrupted at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n if ( s -> cbp_table [ xy ] & 8 ) {\n ff_set_qscale ( s , s -> qscale + quant_tab [ get_bits ( & s -> gb , 2 ) ] ) ;\n }\n s -> current_picture . qscale_table [ xy ] = s -> qscale ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n int dc_pred_dir ;\n int dc = mpeg4_decode_dc ( s , i , & dc_pred_dir ) ;\n if ( dc < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"DC corrupted at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n dir <<= 1 ;\n if ( dc_pred_dir ) dir |= 1 ;\n }\n s -> cbp_table [ xy ] &= 3 ;\n s -> cbp_table [ xy ] |= cbpy << 2 ;\n s -> current_picture . mb_type [ xy ] |= ac_pred * MB_TYPE_ACPRED ;\n s -> pred_dir_table [ xy ] = dir ;\n }\n else if ( IS_SKIP ( s -> current_picture . mb_type [ xy ] ) ) {\n s -> current_picture . qscale_table [ xy ] = s -> qscale ;\n s -> cbp_table [ xy ] = 0 ;\n }\n else {\n int cbpy = get_vlc2 ( & s -> gb , ff_h263_cbpy_vlc . table , CBPY_VLC_BITS , 1 ) ;\n if ( cbpy < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"P cbpy corrupted at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n if ( s -> cbp_table [ xy ] & 8 ) {\n ff_set_qscale ( s , s -> qscale + quant_tab [ get_bits ( & s -> gb , 2 ) ] ) ;\n }\n s -> current_picture . qscale_table [ xy ] = s -> qscale ;\n s -> cbp_table [ xy ] &= 3 ;\n s -> cbp_table [ xy ] |= ( cbpy ^ 0xf ) << 2 ;\n }\n }\n }\n if ( mb_num >= mb_count ) return 0 ;\n s -> mb_x = 0 ;\n }\n return 0 ;\n }"}
{"idx": 14991, "target": 0, "func": "static int dissect_pvfs_server_param ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n guint32 server_param ;\n proto_item * ti ;\n server_param = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_pvfs_server_param , tvb , offset , 4 , server_param ) ;\n offset += 4 ;\n switch ( server_param ) {\n case PVFS_SERV_PARAM_MODE : ti = proto_tree_add_item ( tree , hf_pvfs_server_mode , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n proto_item_set_len ( ti , 8 ) ;\n break ;\n case PVFS_SERV_PARAM_FSID_CHECK : proto_tree_add_item ( tree , hf_pvfs_fs_id , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_pvfs_unused , tvb , offset + 4 , 4 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case PVFS_SERV_PARAM_ROOT_CHECK : offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"handle\" , NULL ) ;\n break ;\n }\n offset += 8 ;\n return offset ;\n }"}
{"idx": 14992, "target": 0, "func": "static int32_t u_printf_integer_handler ( const u_printf_stream_handler * handler , void * context , ULocaleBundle * formatBundle , const u_printf_spec_info * info , const ufmt_args * args ) {\n int64_t num = args [ 0 ] . int64Value ;\n UNumberFormat * format ;\n UChar result [ UPRINTF_BUFFER_SIZE ] ;\n UChar prefixBuffer [ UPRINTF_BUFFER_SIZE ] ;\n int32_t prefixBufferLen = sizeof ( prefixBuffer ) ;\n int32_t minDigits = - 1 ;\n int32_t resultLen ;\n UErrorCode status = U_ZERO_ERROR ;\n prefixBuffer [ 0 ] = 0 ;\n if ( info -> fIsShort ) num = ( int16_t ) num ;\n else if ( ! info -> fIsLongLong ) num = ( int32_t ) num ;\n format = u_locbund_getNumberFormat ( formatBundle , UNUM_DECIMAL ) ;\n if ( format == 0 ) return 0 ;\n if ( info -> fPrecision != - 1 ) {\n minDigits = unum_getAttribute ( format , UNUM_MIN_INTEGER_DIGITS ) ;\n unum_setAttribute ( format , UNUM_MIN_INTEGER_DIGITS , info -> fPrecision ) ;\n }\n if ( info -> fShowSign ) {\n u_printf_set_sign ( format , info , prefixBuffer , & prefixBufferLen , & status ) ;\n }\n resultLen = unum_formatInt64 ( format , num , result , UPRINTF_BUFFER_SIZE , 0 , & status ) ;\n if ( U_FAILURE ( status ) ) {\n resultLen = 0 ;\n }\n if ( minDigits != - 1 ) {\n unum_setAttribute ( format , UNUM_MIN_INTEGER_DIGITS , minDigits ) ;\n }\n if ( info -> fShowSign ) {\n UErrorCode localStatus = U_ZERO_ERROR ;\n u_printf_reset_sign ( format , info , prefixBuffer , & prefixBufferLen , & localStatus ) ;\n }\n return handler -> pad_and_justify ( context , info , result , resultLen ) ;\n }"}
{"idx": 14993, "target": 1, "func": "static void adjust_arnr_filter ( VP9_COMP * cpi , int distance , int group_boost , int * arnr_frames , int * arnr_strength ) {\n const VP9EncoderConfig * const oxcf = & cpi -> oxcf ;\n const int frames_after_arf = vp9_lookahead_depth ( cpi -> lookahead ) - distance - 1 ;\n int frames_fwd = ( cpi -> oxcf . arnr_max_frames - 1 ) >> 1 ;\n int frames_bwd ;\n int q , frames , strength ;\n if ( frames_fwd > frames_after_arf ) frames_fwd = frames_after_arf ;\n if ( frames_fwd > distance ) frames_fwd = distance ;\n frames_bwd = frames_fwd ;\n if ( frames_bwd < distance ) frames_bwd += ( oxcf -> arnr_max_frames + 1 ) & 0x1 ;\n frames = frames_bwd + 1 + frames_fwd ;\n if ( cpi -> common . current_video_frame > 1 ) q = ( ( int ) vp9_convert_qindex_to_q ( cpi -> rc . avg_frame_qindex [ INTER_FRAME ] ) ) ;\n else q = ( ( int ) vp9_convert_qindex_to_q ( cpi -> rc . avg_frame_qindex [ KEY_FRAME ] ) ) ;\n if ( q > 16 ) {\n strength = oxcf -> arnr_strength ;\n }\n else {\n strength = oxcf -> arnr_strength - ( ( 16 - q ) / 2 ) ;\n if ( strength < 0 ) strength = 0 ;\n }\n if ( frames > group_boost / 150 ) {\n frames = group_boost / 150 ;\n frames += ! ( frames & 1 ) ;\n }\n if ( strength > group_boost / 300 ) {\n strength = group_boost / 300 ;\n }\n if ( cpi -> oxcf . pass == 2 && cpi -> multi_arf_allowed ) {\n const GF_GROUP * const gf_group = & cpi -> twopass . gf_group ;\n if ( gf_group -> rf_level [ gf_group -> index ] != GF_ARF_STD ) {\n strength >>= 1 ;\n }\n }\n * arnr_frames = frames ;\n * arnr_strength = strength ;\n }"}
{"idx": 14994, "target": 0, "func": "static void launch_location_update_from_file ( LaunchLocation * location , NautilusFile * file ) {\n nautilus_file_unref ( location -> file ) ;\n g_free ( location -> uri ) ;\n location -> file = nautilus_file_ref ( file ) ;\n location -> uri = nautilus_file_get_uri ( file ) ;\n }"}
{"idx": 14995, "target": 1, "func": "static void idct32 ( const int16_t * input , int16_t * output ) {\n int16_t step1 [ 32 ] , step2 [ 32 ] ;\n int temp1 , temp2 ;\n step1 [ 0 ] = input [ 0 ] ;\n step1 [ 1 ] = input [ 16 ] ;\n step1 [ 2 ] = input [ 8 ] ;\n step1 [ 3 ] = input [ 24 ] ;\n step1 [ 4 ] = input [ 4 ] ;\n step1 [ 5 ] = input [ 20 ] ;\n step1 [ 6 ] = input [ 12 ] ;\n step1 [ 7 ] = input [ 28 ] ;\n step1 [ 8 ] = input [ 2 ] ;\n step1 [ 9 ] = input [ 18 ] ;\n step1 [ 10 ] = input [ 10 ] ;\n step1 [ 11 ] = input [ 26 ] ;\n step1 [ 12 ] = input [ 6 ] ;\n step1 [ 13 ] = input [ 22 ] ;\n step1 [ 14 ] = input [ 14 ] ;\n step1 [ 15 ] = input [ 30 ] ;\n temp1 = input [ 1 ] * cospi_31_64 - input [ 31 ] * cospi_1_64 ;\n temp2 = input [ 1 ] * cospi_1_64 + input [ 31 ] * cospi_31_64 ;\n step1 [ 16 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 31 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = input [ 17 ] * cospi_15_64 - input [ 15 ] * cospi_17_64 ;\n temp2 = input [ 17 ] * cospi_17_64 + input [ 15 ] * cospi_15_64 ;\n step1 [ 17 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 30 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = input [ 9 ] * cospi_23_64 - input [ 23 ] * cospi_9_64 ;\n temp2 = input [ 9 ] * cospi_9_64 + input [ 23 ] * cospi_23_64 ;\n step1 [ 18 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 29 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = input [ 25 ] * cospi_7_64 - input [ 7 ] * cospi_25_64 ;\n temp2 = input [ 25 ] * cospi_25_64 + input [ 7 ] * cospi_7_64 ;\n step1 [ 19 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 28 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = input [ 5 ] * cospi_27_64 - input [ 27 ] * cospi_5_64 ;\n temp2 = input [ 5 ] * cospi_5_64 + input [ 27 ] * cospi_27_64 ;\n step1 [ 20 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 27 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = input [ 21 ] * cospi_11_64 - input [ 11 ] * cospi_21_64 ;\n temp2 = input [ 21 ] * cospi_21_64 + input [ 11 ] * cospi_11_64 ;\n step1 [ 21 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 26 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = input [ 13 ] * cospi_19_64 - input [ 19 ] * cospi_13_64 ;\n temp2 = input [ 13 ] * cospi_13_64 + input [ 19 ] * cospi_19_64 ;\n step1 [ 22 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 25 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = input [ 29 ] * cospi_3_64 - input [ 3 ] * cospi_29_64 ;\n temp2 = input [ 29 ] * cospi_29_64 + input [ 3 ] * cospi_3_64 ;\n step1 [ 23 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 24 ] = dct_const_round_shift ( temp2 ) ;\n step2 [ 0 ] = step1 [ 0 ] ;\n step2 [ 1 ] = step1 [ 1 ] ;\n step2 [ 2 ] = step1 [ 2 ] ;\n step2 [ 3 ] = step1 [ 3 ] ;\n step2 [ 4 ] = step1 [ 4 ] ;\n step2 [ 5 ] = step1 [ 5 ] ;\n step2 [ 6 ] = step1 [ 6 ] ;\n step2 [ 7 ] = step1 [ 7 ] ;\n temp1 = step1 [ 8 ] * cospi_30_64 - step1 [ 15 ] * cospi_2_64 ;\n temp2 = step1 [ 8 ] * cospi_2_64 + step1 [ 15 ] * cospi_30_64 ;\n step2 [ 8 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 15 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = step1 [ 9 ] * cospi_14_64 - step1 [ 14 ] * cospi_18_64 ;\n temp2 = step1 [ 9 ] * cospi_18_64 + step1 [ 14 ] * cospi_14_64 ;\n step2 [ 9 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 14 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = step1 [ 10 ] * cospi_22_64 - step1 [ 13 ] * cospi_10_64 ;\n temp2 = step1 [ 10 ] * cospi_10_64 + step1 [ 13 ] * cospi_22_64 ;\n step2 [ 10 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 13 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = step1 [ 11 ] * cospi_6_64 - step1 [ 12 ] * cospi_26_64 ;\n temp2 = step1 [ 11 ] * cospi_26_64 + step1 [ 12 ] * cospi_6_64 ;\n step2 [ 11 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 12 ] = dct_const_round_shift ( temp2 ) ;\n step2 [ 16 ] = step1 [ 16 ] + step1 [ 17 ] ;\n step2 [ 17 ] = step1 [ 16 ] - step1 [ 17 ] ;\n step2 [ 18 ] = - step1 [ 18 ] + step1 [ 19 ] ;\n step2 [ 19 ] = step1 [ 18 ] + step1 [ 19 ] ;\n step2 [ 20 ] = step1 [ 20 ] + step1 [ 21 ] ;\n step2 [ 21 ] = step1 [ 20 ] - step1 [ 21 ] ;\n step2 [ 22 ] = - step1 [ 22 ] + step1 [ 23 ] ;\n step2 [ 23 ] = step1 [ 22 ] + step1 [ 23 ] ;\n step2 [ 24 ] = step1 [ 24 ] + step1 [ 25 ] ;\n step2 [ 25 ] = step1 [ 24 ] - step1 [ 25 ] ;\n step2 [ 26 ] = - step1 [ 26 ] + step1 [ 27 ] ;\n step2 [ 27 ] = step1 [ 26 ] + step1 [ 27 ] ;\n step2 [ 28 ] = step1 [ 28 ] + step1 [ 29 ] ;\n step2 [ 29 ] = step1 [ 28 ] - step1 [ 29 ] ;\n step2 [ 30 ] = - step1 [ 30 ] + step1 [ 31 ] ;\n step2 [ 31 ] = step1 [ 30 ] + step1 [ 31 ] ;\n step1 [ 0 ] = step2 [ 0 ] ;\n step1 [ 1 ] = step2 [ 1 ] ;\n step1 [ 2 ] = step2 [ 2 ] ;\n step1 [ 3 ] = step2 [ 3 ] ;\n temp1 = step2 [ 4 ] * cospi_28_64 - step2 [ 7 ] * cospi_4_64 ;\n temp2 = step2 [ 4 ] * cospi_4_64 + step2 [ 7 ] * cospi_28_64 ;\n step1 [ 4 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 7 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = step2 [ 5 ] * cospi_12_64 - step2 [ 6 ] * cospi_20_64 ;\n temp2 = step2 [ 5 ] * cospi_20_64 + step2 [ 6 ] * cospi_12_64 ;\n step1 [ 5 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 6 ] = dct_const_round_shift ( temp2 ) ;\n step1 [ 8 ] = step2 [ 8 ] + step2 [ 9 ] ;\n step1 [ 9 ] = step2 [ 8 ] - step2 [ 9 ] ;\n step1 [ 10 ] = - step2 [ 10 ] + step2 [ 11 ] ;\n step1 [ 11 ] = step2 [ 10 ] + step2 [ 11 ] ;\n step1 [ 12 ] = step2 [ 12 ] + step2 [ 13 ] ;\n step1 [ 13 ] = step2 [ 12 ] - step2 [ 13 ] ;\n step1 [ 14 ] = - step2 [ 14 ] + step2 [ 15 ] ;\n step1 [ 15 ] = step2 [ 14 ] + step2 [ 15 ] ;\n step1 [ 16 ] = step2 [ 16 ] ;\n step1 [ 31 ] = step2 [ 31 ] ;\n temp1 = - step2 [ 17 ] * cospi_4_64 + step2 [ 30 ] * cospi_28_64 ;\n temp2 = step2 [ 17 ] * cospi_28_64 + step2 [ 30 ] * cospi_4_64 ;\n step1 [ 17 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 30 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = - step2 [ 18 ] * cospi_28_64 - step2 [ 29 ] * cospi_4_64 ;\n temp2 = - step2 [ 18 ] * cospi_4_64 + step2 [ 29 ] * cospi_28_64 ;\n step1 [ 18 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 29 ] = dct_const_round_shift ( temp2 ) ;\n step1 [ 19 ] = step2 [ 19 ] ;\n step1 [ 20 ] = step2 [ 20 ] ;\n temp1 = - step2 [ 21 ] * cospi_20_64 + step2 [ 26 ] * cospi_12_64 ;\n temp2 = step2 [ 21 ] * cospi_12_64 + step2 [ 26 ] * cospi_20_64 ;\n step1 [ 21 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 26 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = - step2 [ 22 ] * cospi_12_64 - step2 [ 25 ] * cospi_20_64 ;\n temp2 = - step2 [ 22 ] * cospi_20_64 + step2 [ 25 ] * cospi_12_64 ;\n step1 [ 22 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 25 ] = dct_const_round_shift ( temp2 ) ;\n step1 [ 23 ] = step2 [ 23 ] ;\n step1 [ 24 ] = step2 [ 24 ] ;\n step1 [ 27 ] = step2 [ 27 ] ;\n step1 [ 28 ] = step2 [ 28 ] ;\n temp1 = ( step1 [ 0 ] + step1 [ 1 ] ) * cospi_16_64 ;\n temp2 = ( step1 [ 0 ] - step1 [ 1 ] ) * cospi_16_64 ;\n step2 [ 0 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 1 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = step1 [ 2 ] * cospi_24_64 - step1 [ 3 ] * cospi_8_64 ;\n temp2 = step1 [ 2 ] * cospi_8_64 + step1 [ 3 ] * cospi_24_64 ;\n step2 [ 2 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 3 ] = dct_const_round_shift ( temp2 ) ;\n step2 [ 4 ] = step1 [ 4 ] + step1 [ 5 ] ;\n step2 [ 5 ] = step1 [ 4 ] - step1 [ 5 ] ;\n step2 [ 6 ] = - step1 [ 6 ] + step1 [ 7 ] ;\n step2 [ 7 ] = step1 [ 6 ] + step1 [ 7 ] ;\n step2 [ 8 ] = step1 [ 8 ] ;\n step2 [ 15 ] = step1 [ 15 ] ;\n temp1 = - step1 [ 9 ] * cospi_8_64 + step1 [ 14 ] * cospi_24_64 ;\n temp2 = step1 [ 9 ] * cospi_24_64 + step1 [ 14 ] * cospi_8_64 ;\n step2 [ 9 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 14 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = - step1 [ 10 ] * cospi_24_64 - step1 [ 13 ] * cospi_8_64 ;\n temp2 = - step1 [ 10 ] * cospi_8_64 + step1 [ 13 ] * cospi_24_64 ;\n step2 [ 10 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 13 ] = dct_const_round_shift ( temp2 ) ;\n step2 [ 11 ] = step1 [ 11 ] ;\n step2 [ 12 ] = step1 [ 12 ] ;\n step2 [ 16 ] = step1 [ 16 ] + step1 [ 19 ] ;\n step2 [ 17 ] = step1 [ 17 ] + step1 [ 18 ] ;\n step2 [ 18 ] = step1 [ 17 ] - step1 [ 18 ] ;\n step2 [ 19 ] = step1 [ 16 ] - step1 [ 19 ] ;\n step2 [ 20 ] = - step1 [ 20 ] + step1 [ 23 ] ;\n step2 [ 21 ] = - step1 [ 21 ] + step1 [ 22 ] ;\n step2 [ 22 ] = step1 [ 21 ] + step1 [ 22 ] ;\n step2 [ 23 ] = step1 [ 20 ] + step1 [ 23 ] ;\n step2 [ 24 ] = step1 [ 24 ] + step1 [ 27 ] ;\n step2 [ 25 ] = step1 [ 25 ] + step1 [ 26 ] ;\n step2 [ 26 ] = step1 [ 25 ] - step1 [ 26 ] ;\n step2 [ 27 ] = step1 [ 24 ] - step1 [ 27 ] ;\n step2 [ 28 ] = - step1 [ 28 ] + step1 [ 31 ] ;\n step2 [ 29 ] = - step1 [ 29 ] + step1 [ 30 ] ;\n step2 [ 30 ] = step1 [ 29 ] + step1 [ 30 ] ;\n step2 [ 31 ] = step1 [ 28 ] + step1 [ 31 ] ;\n step1 [ 0 ] = step2 [ 0 ] + step2 [ 3 ] ;\n step1 [ 1 ] = step2 [ 1 ] + step2 [ 2 ] ;\n step1 [ 2 ] = step2 [ 1 ] - step2 [ 2 ] ;\n step1 [ 3 ] = step2 [ 0 ] - step2 [ 3 ] ;\n step1 [ 4 ] = step2 [ 4 ] ;\n temp1 = ( step2 [ 6 ] - step2 [ 5 ] ) * cospi_16_64 ;\n temp2 = ( step2 [ 5 ] + step2 [ 6 ] ) * cospi_16_64 ;\n step1 [ 5 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 6 ] = dct_const_round_shift ( temp2 ) ;\n step1 [ 7 ] = step2 [ 7 ] ;\n step1 [ 8 ] = step2 [ 8 ] + step2 [ 11 ] ;\n step1 [ 9 ] = step2 [ 9 ] + step2 [ 10 ] ;\n step1 [ 10 ] = step2 [ 9 ] - step2 [ 10 ] ;\n step1 [ 11 ] = step2 [ 8 ] - step2 [ 11 ] ;\n step1 [ 12 ] = - step2 [ 12 ] + step2 [ 15 ] ;\n step1 [ 13 ] = - step2 [ 13 ] + step2 [ 14 ] ;\n step1 [ 14 ] = step2 [ 13 ] + step2 [ 14 ] ;\n step1 [ 15 ] = step2 [ 12 ] + step2 [ 15 ] ;\n step1 [ 16 ] = step2 [ 16 ] ;\n step1 [ 17 ] = step2 [ 17 ] ;\n temp1 = - step2 [ 18 ] * cospi_8_64 + step2 [ 29 ] * cospi_24_64 ;\n temp2 = step2 [ 18 ] * cospi_24_64 + step2 [ 29 ] * cospi_8_64 ;\n step1 [ 18 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 29 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = - step2 [ 19 ] * cospi_8_64 + step2 [ 28 ] * cospi_24_64 ;\n temp2 = step2 [ 19 ] * cospi_24_64 + step2 [ 28 ] * cospi_8_64 ;\n step1 [ 19 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 28 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = - step2 [ 20 ] * cospi_24_64 - step2 [ 27 ] * cospi_8_64 ;\n temp2 = - step2 [ 20 ] * cospi_8_64 + step2 [ 27 ] * cospi_24_64 ;\n step1 [ 20 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 27 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = - step2 [ 21 ] * cospi_24_64 - step2 [ 26 ] * cospi_8_64 ;\n temp2 = - step2 [ 21 ] * cospi_8_64 + step2 [ 26 ] * cospi_24_64 ;\n step1 [ 21 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 26 ] = dct_const_round_shift ( temp2 ) ;\n step1 [ 22 ] = step2 [ 22 ] ;\n step1 [ 23 ] = step2 [ 23 ] ;\n step1 [ 24 ] = step2 [ 24 ] ;\n step1 [ 25 ] = step2 [ 25 ] ;\n step1 [ 30 ] = step2 [ 30 ] ;\n step1 [ 31 ] = step2 [ 31 ] ;\n step2 [ 0 ] = step1 [ 0 ] + step1 [ 7 ] ;\n step2 [ 1 ] = step1 [ 1 ] + step1 [ 6 ] ;\n step2 [ 2 ] = step1 [ 2 ] + step1 [ 5 ] ;\n step2 [ 3 ] = step1 [ 3 ] + step1 [ 4 ] ;\n step2 [ 4 ] = step1 [ 3 ] - step1 [ 4 ] ;\n step2 [ 5 ] = step1 [ 2 ] - step1 [ 5 ] ;\n step2 [ 6 ] = step1 [ 1 ] - step1 [ 6 ] ;\n step2 [ 7 ] = step1 [ 0 ] - step1 [ 7 ] ;\n step2 [ 8 ] = step1 [ 8 ] ;\n step2 [ 9 ] = step1 [ 9 ] ;\n temp1 = ( - step1 [ 10 ] + step1 [ 13 ] ) * cospi_16_64 ;\n temp2 = ( step1 [ 10 ] + step1 [ 13 ] ) * cospi_16_64 ;\n step2 [ 10 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 13 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = ( - step1 [ 11 ] + step1 [ 12 ] ) * cospi_16_64 ;\n temp2 = ( step1 [ 11 ] + step1 [ 12 ] ) * cospi_16_64 ;\n step2 [ 11 ] = dct_const_round_shift ( temp1 ) ;\n step2 [ 12 ] = dct_const_round_shift ( temp2 ) ;\n step2 [ 14 ] = step1 [ 14 ] ;\n step2 [ 15 ] = step1 [ 15 ] ;\n step2 [ 16 ] = step1 [ 16 ] + step1 [ 23 ] ;\n step2 [ 17 ] = step1 [ 17 ] + step1 [ 22 ] ;\n step2 [ 18 ] = step1 [ 18 ] + step1 [ 21 ] ;\n step2 [ 19 ] = step1 [ 19 ] + step1 [ 20 ] ;\n step2 [ 20 ] = step1 [ 19 ] - step1 [ 20 ] ;\n step2 [ 21 ] = step1 [ 18 ] - step1 [ 21 ] ;\n step2 [ 22 ] = step1 [ 17 ] - step1 [ 22 ] ;\n step2 [ 23 ] = step1 [ 16 ] - step1 [ 23 ] ;\n step2 [ 24 ] = - step1 [ 24 ] + step1 [ 31 ] ;\n step2 [ 25 ] = - step1 [ 25 ] + step1 [ 30 ] ;\n step2 [ 26 ] = - step1 [ 26 ] + step1 [ 29 ] ;\n step2 [ 27 ] = - step1 [ 27 ] + step1 [ 28 ] ;\n step2 [ 28 ] = step1 [ 27 ] + step1 [ 28 ] ;\n step2 [ 29 ] = step1 [ 26 ] + step1 [ 29 ] ;\n step2 [ 30 ] = step1 [ 25 ] + step1 [ 30 ] ;\n step2 [ 31 ] = step1 [ 24 ] + step1 [ 31 ] ;\n step1 [ 0 ] = step2 [ 0 ] + step2 [ 15 ] ;\n step1 [ 1 ] = step2 [ 1 ] + step2 [ 14 ] ;\n step1 [ 2 ] = step2 [ 2 ] + step2 [ 13 ] ;\n step1 [ 3 ] = step2 [ 3 ] + step2 [ 12 ] ;\n step1 [ 4 ] = step2 [ 4 ] + step2 [ 11 ] ;\n step1 [ 5 ] = step2 [ 5 ] + step2 [ 10 ] ;\n step1 [ 6 ] = step2 [ 6 ] + step2 [ 9 ] ;\n step1 [ 7 ] = step2 [ 7 ] + step2 [ 8 ] ;\n step1 [ 8 ] = step2 [ 7 ] - step2 [ 8 ] ;\n step1 [ 9 ] = step2 [ 6 ] - step2 [ 9 ] ;\n step1 [ 10 ] = step2 [ 5 ] - step2 [ 10 ] ;\n step1 [ 11 ] = step2 [ 4 ] - step2 [ 11 ] ;\n step1 [ 12 ] = step2 [ 3 ] - step2 [ 12 ] ;\n step1 [ 13 ] = step2 [ 2 ] - step2 [ 13 ] ;\n step1 [ 14 ] = step2 [ 1 ] - step2 [ 14 ] ;\n step1 [ 15 ] = step2 [ 0 ] - step2 [ 15 ] ;\n step1 [ 16 ] = step2 [ 16 ] ;\n step1 [ 17 ] = step2 [ 17 ] ;\n step1 [ 18 ] = step2 [ 18 ] ;\n step1 [ 19 ] = step2 [ 19 ] ;\n temp1 = ( - step2 [ 20 ] + step2 [ 27 ] ) * cospi_16_64 ;\n temp2 = ( step2 [ 20 ] + step2 [ 27 ] ) * cospi_16_64 ;\n step1 [ 20 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 27 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = ( - step2 [ 21 ] + step2 [ 26 ] ) * cospi_16_64 ;\n temp2 = ( step2 [ 21 ] + step2 [ 26 ] ) * cospi_16_64 ;\n step1 [ 21 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 26 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = ( - step2 [ 22 ] + step2 [ 25 ] ) * cospi_16_64 ;\n temp2 = ( step2 [ 22 ] + step2 [ 25 ] ) * cospi_16_64 ;\n step1 [ 22 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 25 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = ( - step2 [ 23 ] + step2 [ 24 ] ) * cospi_16_64 ;\n temp2 = ( step2 [ 23 ] + step2 [ 24 ] ) * cospi_16_64 ;\n step1 [ 23 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 24 ] = dct_const_round_shift ( temp2 ) ;\n step1 [ 28 ] = step2 [ 28 ] ;\n step1 [ 29 ] = step2 [ 29 ] ;\n step1 [ 30 ] = step2 [ 30 ] ;\n step1 [ 31 ] = step2 [ 31 ] ;\n output [ 0 ] = step1 [ 0 ] + step1 [ 31 ] ;\n output [ 1 ] = step1 [ 1 ] + step1 [ 30 ] ;\n output [ 2 ] = step1 [ 2 ] + step1 [ 29 ] ;\n output [ 3 ] = step1 [ 3 ] + step1 [ 28 ] ;\n output [ 4 ] = step1 [ 4 ] + step1 [ 27 ] ;\n output [ 5 ] = step1 [ 5 ] + step1 [ 26 ] ;\n output [ 6 ] = step1 [ 6 ] + step1 [ 25 ] ;\n output [ 7 ] = step1 [ 7 ] + step1 [ 24 ] ;\n output [ 8 ] = step1 [ 8 ] + step1 [ 23 ] ;\n output [ 9 ] = step1 [ 9 ] + step1 [ 22 ] ;\n output [ 10 ] = step1 [ 10 ] + step1 [ 21 ] ;\n output [ 11 ] = step1 [ 11 ] + step1 [ 20 ] ;\n output [ 12 ] = step1 [ 12 ] + step1 [ 19 ] ;\n output [ 13 ] = step1 [ 13 ] + step1 [ 18 ] ;\n output [ 14 ] = step1 [ 14 ] + step1 [ 17 ] ;\n output [ 15 ] = step1 [ 15 ] + step1 [ 16 ] ;\n output [ 16 ] = step1 [ 15 ] - step1 [ 16 ] ;\n output [ 17 ] = step1 [ 14 ] - step1 [ 17 ] ;\n output [ 18 ] = step1 [ 13 ] - step1 [ 18 ] ;\n output [ 19 ] = step1 [ 12 ] - step1 [ 19 ] ;\n output [ 20 ] = step1 [ 11 ] - step1 [ 20 ] ;\n output [ 21 ] = step1 [ 10 ] - step1 [ 21 ] ;\n output [ 22 ] = step1 [ 9 ] - step1 [ 22 ] ;\n output [ 23 ] = step1 [ 8 ] - step1 [ 23 ] ;\n output [ 24 ] = step1 [ 7 ] - step1 [ 24 ] ;\n output [ 25 ] = step1 [ 6 ] - step1 [ 25 ] ;\n output [ 26 ] = step1 [ 5 ] - step1 [ 26 ] ;\n output [ 27 ] = step1 [ 4 ] - step1 [ 27 ] ;\n output [ 28 ] = step1 [ 3 ] - step1 [ 28 ] ;\n output [ 29 ] = step1 [ 2 ] - step1 [ 29 ] ;\n output [ 30 ] = step1 [ 1 ] - step1 [ 30 ] ;\n output [ 31 ] = step1 [ 0 ] - step1 [ 31 ] ;\n }"}
{"idx": 14996, "target": 0, "func": "void jas_image_delcmpt ( jas_image_t * image , int cmptno ) {\n if ( cmptno >= image -> numcmpts_ ) {\n return ;\n }\n jas_image_cmpt_destroy ( image -> cmpts_ [ cmptno ] ) ;\n if ( cmptno < image -> numcmpts_ ) {\n memmove ( & image -> cmpts_ [ cmptno ] , & image -> cmpts_ [ cmptno + 1 ] , ( image -> numcmpts_ - 1 - cmptno ) * sizeof ( jas_image_cmpt_t * ) ) ;\n }\n -- image -> numcmpts_ ;\n jas_image_setbbox ( image ) ;\n }"}
{"idx": 14997, "target": 0, "func": "static int32_t setOneCode ( UScriptCode script , UScriptCode * scripts , int32_t capacity , UErrorCode * err ) {\n if ( U_FAILURE ( * err ) ) {\n return 0 ;\n }\n if ( 1 > capacity ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n return 1 ;\n }\n scripts [ 0 ] = script ;\n return 1 ;\n }"}
{"idx": 14998, "target": 0, "func": "static int decode_subpacket ( COOKContext * q , COOKSubpacket * p , const uint8_t * inbuffer , float * * outbuffer ) {\n int sub_packet_size = p -> size ;\n int res ;\n memset ( q -> decode_buffer_1 , 0 , sizeof ( q -> decode_buffer_1 ) ) ;\n decode_bytes_and_gain ( q , p , inbuffer , & p -> gains1 ) ;\n if ( p -> joint_stereo ) {\n if ( ( res = joint_decode ( q , p , q -> decode_buffer_1 , q -> decode_buffer_2 ) ) < 0 ) return res ;\n }\n else {\n if ( ( res = mono_decode ( q , p , q -> decode_buffer_1 ) ) < 0 ) return res ;\n if ( p -> num_channels == 2 ) {\n decode_bytes_and_gain ( q , p , inbuffer + sub_packet_size / 2 , & p -> gains2 ) ;\n if ( ( res = mono_decode ( q , p , q -> decode_buffer_2 ) ) < 0 ) return res ;\n }\n }\n mlt_compensate_output ( q , q -> decode_buffer_1 , & p -> gains1 , p -> mono_previous_buffer1 , outbuffer ? outbuffer [ p -> ch_idx ] : NULL ) ;\n if ( p -> num_channels == 2 ) if ( p -> joint_stereo ) mlt_compensate_output ( q , q -> decode_buffer_2 , & p -> gains1 , p -> mono_previous_buffer2 , outbuffer ? outbuffer [ p -> ch_idx + 1 ] : NULL ) ;\n else mlt_compensate_output ( q , q -> decode_buffer_2 , & p -> gains2 , p -> mono_previous_buffer2 , outbuffer ? outbuffer [ p -> ch_idx + 1 ] : NULL ) ;\n return 0 ;\n }"}
{"idx": 14999, "target": 0, "func": "static inline int read_huff_channels ( MLPDecodeContext * m , GetBitContext * gbp , unsigned int substr , unsigned int pos ) {\n SubStream * s = & m -> substream [ substr ] ;\n unsigned int mat , channel ;\n for ( mat = 0 ;\n mat < s -> num_primitive_matrices ;\n mat ++ ) if ( s -> lsb_bypass [ mat ] ) m -> bypassed_lsbs [ pos + s -> blockpos ] [ mat ] = get_bits1 ( gbp ) ;\n for ( channel = s -> min_channel ;\n channel <= s -> max_channel ;\n channel ++ ) {\n ChannelParams * cp = & s -> channel_params [ channel ] ;\n int codebook = cp -> codebook ;\n int quant_step_size = s -> quant_step_size [ channel ] ;\n int lsb_bits = cp -> huff_lsbs - quant_step_size ;\n int result = 0 ;\n if ( codebook > 0 ) result = get_vlc2 ( gbp , huff_vlc [ codebook - 1 ] . table , VLC_BITS , ( 9 + VLC_BITS - 1 ) / VLC_BITS ) ;\n if ( result < 0 ) return AVERROR_INVALIDDATA ;\n if ( lsb_bits > 0 ) result = ( result << lsb_bits ) + get_bits ( gbp , lsb_bits ) ;\n result += cp -> sign_huff_offset ;\n result <<= quant_step_size ;\n m -> sample_buffer [ pos + s -> blockpos ] [ channel ] = result ;\n }\n return 0 ;\n }"}
{"idx": 15000, "target": 0, "func": "krb5_error_code krb5_read_tkt_policy ( krb5_context context , krb5_ldap_context * ldap_context , krb5_db_entry * entries , char * policy ) {\n krb5_error_code st = 0 ;\n int mask = 0 , omask = 0 ;\n int tkt_mask = ( KDB_MAX_LIFE_ATTR | KDB_MAX_RLIFE_ATTR | KDB_TKT_FLAGS_ATTR ) ;\n krb5_ldap_policy_params * tktpoldnparam = NULL ;\n if ( ( st = krb5_get_attributes_mask ( context , entries , & mask ) ) != 0 ) goto cleanup ;\n if ( ( mask & tkt_mask ) == tkt_mask ) goto cleanup ;\n if ( policy != NULL ) {\n st = krb5_ldap_read_policy ( context , policy , & tktpoldnparam , & omask ) ;\n if ( st && st != KRB5_KDB_NOENTRY ) {\n prepend_err_str ( context , _ ( \"Error reading ticket policy. \" ) , st , st ) ;\n goto cleanup ;\n }\n st = 0 ;\n }\n if ( ( mask & KDB_MAX_LIFE_ATTR ) == 0 ) {\n if ( ( omask & KDB_MAX_LIFE_ATTR ) == KDB_MAX_LIFE_ATTR ) entries -> max_life = tktpoldnparam -> maxtktlife ;\n else if ( ldap_context -> lrparams -> max_life ) entries -> max_life = ldap_context -> lrparams -> max_life ;\n }\n if ( ( mask & KDB_MAX_RLIFE_ATTR ) == 0 ) {\n if ( ( omask & KDB_MAX_RLIFE_ATTR ) == KDB_MAX_RLIFE_ATTR ) entries -> max_renewable_life = tktpoldnparam -> maxrenewlife ;\n else if ( ldap_context -> lrparams -> max_renewable_life ) entries -> max_renewable_life = ldap_context -> lrparams -> max_renewable_life ;\n }\n if ( ( mask & KDB_TKT_FLAGS_ATTR ) == 0 ) {\n if ( ( omask & KDB_TKT_FLAGS_ATTR ) == KDB_TKT_FLAGS_ATTR ) entries -> attributes = tktpoldnparam -> tktflags ;\n else if ( ldap_context -> lrparams -> tktflags ) entries -> attributes |= ldap_context -> lrparams -> tktflags ;\n }\n krb5_ldap_free_policy ( context , tktpoldnparam ) ;\n cleanup : return st ;\n }"}
{"idx": 15001, "target": 0, "func": "static void srec_print_symbol ( bfd * abfd , void * afile , asymbol * symbol , bfd_print_symbol_type how ) {\n FILE * file = ( FILE * ) afile ;\n switch ( how ) {\n case bfd_print_symbol_name : fprintf ( file , \"%s\" , symbol -> name ) ;\n break ;\n default : bfd_print_symbol_vandf ( abfd , ( void * ) file , symbol ) ;\n fprintf ( file , \" %-5s %s\" , symbol -> section -> name , symbol -> name ) ;\n }\n }"}
{"idx": 15002, "target": 0, "func": "static void unkeep_all_packs ( void ) {\n static char name [ PATH_MAX ] ;\n int k ;\n for ( k = 0 ;\n k < pack_id ;\n k ++ ) {\n struct packed_git * p = all_packs [ k ] ;\n snprintf ( name , sizeof ( name ) , \"%s/pack/pack-%s.keep\" , get_object_directory ( ) , sha1_to_hex ( p -> sha1 ) ) ;\n unlink_or_warn ( name ) ;\n }\n }"}
{"idx": 15003, "target": 0, "func": "unsigned int vp9_variance ## W ## x ## H ## _c ( const uint8_t * a , int a_stride , const uint8_t * b , int b_stride , unsigned int * sse ) {\n int sum ;\n variance ( a , a_stride , b , b_stride , W , H , sse , & sum ) ;\n return * sse - ( ( ( int64_t ) sum * sum ) / ( W * H ) ) ;\n \\ }\n # define SUBPIX_VAR ( W , H ) unsigned int vp9_sub_pixel_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp2 , W , dst , dst_stride , sse ) ;\n \\ }\n # define SUBPIX_AVG_VAR ( W , H ) unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 ) VAR ( 8 , 4 ) SUBPIX_VAR ( 8 , 4 ) SUBPIX_AVG_VAR ( 8 , 4 ) VAR ( 8 , 8 ) SUBPIX_VAR ( 8 , 8 ) SUBPIX_AVG_VAR ( 8 , 8 ) VAR ( 8 , 16 )"}
{"idx": 15004, "target": 0, "func": "static void init_frag ( tvbuff_t * tvb , body_parts * bp , guint length , guint offset , guint32 frame_num , guint16 tsn , guint8 type ) {\n mac_is_fragment * frag = wmem_new ( wmem_file_scope ( ) , mac_is_fragment ) ;\n frag -> type = type ;\n frag -> length = length ;\n frag -> data = ( guint8 * ) g_malloc ( length ) ;\n frag -> frame_num = frame_num ;\n frag -> tsn = tsn ;\n frag -> next = NULL ;\n switch ( type ) {\n case MAC_IS_HEAD : DISSECTOR_ASSERT ( bp -> head == NULL ) ;\n bp -> head = frag ;\n break ;\n case MAC_IS_MIDDLE : DISSECTOR_ASSERT ( bp -> middle == NULL ) ;\n bp -> middle = frag ;\n break ;\n case MAC_IS_TAIL : DISSECTOR_ASSERT ( bp -> tail == NULL ) ;\n bp -> tail = frag ;\n break ;\n }\n tvb_memcpy ( tvb , frag -> data , offset , length ) ;\n }"}
{"idx": 15005, "target": 1, "func": "void vp9_fdct32x32_c ( const int16_t * input , int16_t * out , int stride ) {\n int i , j ;\n int output [ 32 * 32 ] ;\n for ( i = 0 ;\n i < 32 ;\n ++ i ) {\n int temp_in [ 32 ] , temp_out [ 32 ] ;\n for ( j = 0 ;\n j < 32 ;\n ++ j ) temp_in [ j ] = input [ j * stride + i ] * 4 ;\n fdct32 ( temp_in , temp_out , 0 ) ;\n for ( j = 0 ;\n j < 32 ;\n ++ j ) output [ j * 32 + i ] = ( temp_out [ j ] + 1 + ( temp_out [ j ] > 0 ) ) >> 2 ;\n }\n for ( i = 0 ;\n i < 32 ;\n ++ i ) {\n int temp_in [ 32 ] , temp_out [ 32 ] ;\n for ( j = 0 ;\n j < 32 ;\n ++ j ) temp_in [ j ] = output [ j + i * 32 ] ;\n fdct32 ( temp_in , temp_out , 0 ) ;\n for ( j = 0 ;\n j < 32 ;\n ++ j ) out [ j + i * 32 ] = ( temp_out [ j ] + 1 + ( temp_out [ j ] < 0 ) ) >> 2 ;\n }\n }"}
{"idx": 15006, "target": 0, "func": "static int pfkey_delete ( struct sock * sk , struct sk_buff * skb , const struct sadb_msg * hdr , void * const * ext_hdrs ) {\n struct net * net = sock_net ( sk ) ;\n struct xfrm_state * x ;\n struct km_event c ;\n int err ;\n if ( ! ext_hdrs [ SADB_EXT_SA - 1 ] || ! present_and_same_family ( ext_hdrs [ SADB_EXT_ADDRESS_SRC - 1 ] , ext_hdrs [ SADB_EXT_ADDRESS_DST - 1 ] ) ) return - EINVAL ;\n x = pfkey_xfrm_state_lookup ( net , hdr , ext_hdrs ) ;\n if ( x == NULL ) return - ESRCH ;\n if ( ( err = security_xfrm_state_delete ( x ) ) ) goto out ;\n if ( xfrm_state_kern ( x ) ) {\n err = - EPERM ;\n goto out ;\n }\n err = xfrm_state_delete ( x ) ;\n if ( err < 0 ) goto out ;\n c . seq = hdr -> sadb_msg_seq ;\n c . portid = hdr -> sadb_msg_pid ;\n c . event = XFRM_MSG_DELSA ;\n km_state_notify ( x , & c ) ;\n out : xfrm_audit_state_delete ( x , err ? 0 : 1 , audit_get_loginuid ( current ) , audit_get_sessionid ( current ) , 0 ) ;\n xfrm_state_put ( x ) ;\n return err ;\n }"}
{"idx": 15007, "target": 0, "func": "static int dict_threshold2_params ( const ref * pdict , gs_threshold2_halftone * ptp , ref * ptproc , gs_memory_t * mem ) {\n ref * tstring ;\n int code = dict_threshold_common_params ( pdict , ( gs_threshold_halftone_common * ) ptp , & tstring , ptproc ) ;\n int bps ;\n uint size ;\n int cw2 , ch2 ;\n if ( code < 0 || ( code = cw2 = dict_int_param ( pdict , \"Width2\" , 0 , 0x7fff , 0 , & ptp -> width2 ) ) < 0 || ( code = ch2 = dict_int_param ( pdict , \"Height2\" , 0 , 0x7fff , 0 , & ptp -> height2 ) ) < 0 || ( code = dict_int_param ( pdict , \"BitsPerSample\" , 8 , 16 , - 1 , & bps ) ) < 0 ) return code ;\n if ( ( bps != 8 && bps != 16 ) || cw2 != ch2 || ( ! cw2 && ( ptp -> width2 == 0 || ptp -> height2 == 0 ) ) ) return_error ( gs_error_rangecheck ) ;\n ptp -> bytes_per_sample = bps / 8 ;\n switch ( r_type ( tstring ) ) {\n case t_string : size = r_size ( tstring ) ;\n gs_bytestring_from_string ( & ptp -> thresholds , tstring -> value . const_bytes , size ) ;\n break ;\n case t_astruct : if ( gs_object_type ( mem , tstring -> value . pstruct ) != & st_bytes ) return_error ( gs_error_typecheck ) ;\n size = gs_object_size ( mem , tstring -> value . pstruct ) ;\n gs_bytestring_from_bytes ( & ptp -> thresholds , r_ptr ( tstring , byte ) , 0 , size ) ;\n break ;\n default : return_error ( gs_error_typecheck ) ;\n }\n check_read ( * tstring ) ;\n if ( size != ( ptp -> width * ptp -> height + ptp -> width2 * ptp -> height2 ) * ptp -> bytes_per_sample ) return_error ( gs_error_rangecheck ) ;\n return 0 ;\n }"}
{"idx": 15008, "target": 0, "func": "static void test_multiple_events_for_same_fd ( void ) {\n struct event e1 , e2 ;\n setup_test ( \"Multiple events for same fd: \" ) ;\n event_set ( & e1 , pair [ 0 ] , EV_READ , test_multiple_cb , NULL ) ;\n event_add ( & e1 , NULL ) ;\n event_set ( & e2 , pair [ 0 ] , EV_WRITE , test_multiple_cb , NULL ) ;\n event_add ( & e2 , NULL ) ;\n event_loop ( EVLOOP_ONCE ) ;\n event_del ( & e2 ) ;\n write ( pair [ 1 ] , TEST1 , strlen ( TEST1 ) + 1 ) ;\n event_loop ( EVLOOP_ONCE ) ;\n event_del ( & e1 ) ;\n if ( test_ok != 3 ) test_ok = 0 ;\n cleanup_test ( ) ;\n }"}
{"idx": 15009, "target": 0, "func": "static void gic_set_running_irq ( GICState * s , int cpu , int irq ) {\n s -> running_irq [ cpu ] = irq ;\n if ( irq == 1023 ) {\n s -> running_priority [ cpu ] = 0x100 ;\n }\n else {\n s -> running_priority [ cpu ] = GIC_GET_PRIORITY ( irq , cpu ) ;\n }\n gic_update ( s ) ;\n }"}
{"idx": 15010, "target": 1, "func": "static void MCFUNC ( hl_motion ) ( H264Context * h , uint8_t * dest_y , uint8_t * dest_cb , uint8_t * dest_cr , qpel_mc_func ( * qpix_put ) [ 16 ] , h264_chroma_mc_func ( * chroma_put ) , qpel_mc_func ( * qpix_avg ) [ 16 ] , h264_chroma_mc_func ( * chroma_avg ) , h264_weight_func * weight_op , h264_biweight_func * weight_avg ) {\n const int mb_xy = h -> mb_xy ;\n const int mb_type = h -> cur_pic . f . mb_type [ mb_xy ] ;\n assert ( IS_INTER ( mb_type ) ) ;\n if ( HAVE_THREADS && ( h -> avctx -> active_thread_type & FF_THREAD_FRAME ) ) await_references ( h ) ;\n prefetch_motion ( h , 0 , PIXEL_SHIFT , CHROMA_IDC ) ;\n if ( IS_16X16 ( mb_type ) ) {\n mc_part ( h , 0 , 1 , 16 , 0 , dest_y , dest_cb , dest_cr , 0 , 0 , qpix_put [ 0 ] , chroma_put [ 0 ] , qpix_avg [ 0 ] , chroma_avg [ 0 ] , weight_op , weight_avg , IS_DIR ( mb_type , 0 , 0 ) , IS_DIR ( mb_type , 0 , 1 ) ) ;\n }\n else if ( IS_16X8 ( mb_type ) ) {\n mc_part ( h , 0 , 0 , 8 , 8 << PIXEL_SHIFT , dest_y , dest_cb , dest_cr , 0 , 0 , qpix_put [ 1 ] , chroma_put [ 0 ] , qpix_avg [ 1 ] , chroma_avg [ 0 ] , weight_op , weight_avg , IS_DIR ( mb_type , 0 , 0 ) , IS_DIR ( mb_type , 0 , 1 ) ) ;\n mc_part ( h , 8 , 0 , 8 , 8 << PIXEL_SHIFT , dest_y , dest_cb , dest_cr , 0 , 4 , qpix_put [ 1 ] , chroma_put [ 0 ] , qpix_avg [ 1 ] , chroma_avg [ 0 ] , weight_op , weight_avg , IS_DIR ( mb_type , 1 , 0 ) , IS_DIR ( mb_type , 1 , 1 ) ) ;\n }\n else if ( IS_8X16 ( mb_type ) ) {\n mc_part ( h , 0 , 0 , 16 , 8 * h -> mb_linesize , dest_y , dest_cb , dest_cr , 0 , 0 , qpix_put [ 1 ] , chroma_put [ 1 ] , qpix_avg [ 1 ] , chroma_avg [ 1 ] , & weight_op [ 1 ] , & weight_avg [ 1 ] , IS_DIR ( mb_type , 0 , 0 ) , IS_DIR ( mb_type , 0 , 1 ) ) ;\n mc_part ( h , 4 , 0 , 16 , 8 * h -> mb_linesize , dest_y , dest_cb , dest_cr , 4 , 0 , qpix_put [ 1 ] , chroma_put [ 1 ] , qpix_avg [ 1 ] , chroma_avg [ 1 ] , & weight_op [ 1 ] , & weight_avg [ 1 ] , IS_DIR ( mb_type , 1 , 0 ) , IS_DIR ( mb_type , 1 , 1 ) ) ;\n }\n else {\n int i ;\n assert ( IS_8X8 ( mb_type ) ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n const int sub_mb_type = h -> sub_mb_type [ i ] ;\n const int n = 4 * i ;\n int x_offset = ( i & 1 ) << 2 ;\n int y_offset = ( i & 2 ) << 1 ;\n if ( IS_SUB_8X8 ( sub_mb_type ) ) {\n mc_part ( h , n , 1 , 8 , 0 , dest_y , dest_cb , dest_cr , x_offset , y_offset , qpix_put [ 1 ] , chroma_put [ 1 ] , qpix_avg [ 1 ] , chroma_avg [ 1 ] , & weight_op [ 1 ] , & weight_avg [ 1 ] , IS_DIR ( sub_mb_type , 0 , 0 ) , IS_DIR ( sub_mb_type , 0 , 1 ) ) ;\n }\n else if ( IS_SUB_8X4 ( sub_mb_type ) ) {\n mc_part ( h , n , 0 , 4 , 4 << PIXEL_SHIFT , dest_y , dest_cb , dest_cr , x_offset , y_offset , qpix_put [ 2 ] , chroma_put [ 1 ] , qpix_avg [ 2 ] , chroma_avg [ 1 ] , & weight_op [ 1 ] , & weight_avg [ 1 ] , IS_DIR ( sub_mb_type , 0 , 0 ) , IS_DIR ( sub_mb_type , 0 , 1 ) ) ;\n mc_part ( h , n + 2 , 0 , 4 , 4 << PIXEL_SHIFT , dest_y , dest_cb , dest_cr , x_offset , y_offset + 2 , qpix_put [ 2 ] , chroma_put [ 1 ] , qpix_avg [ 2 ] , chroma_avg [ 1 ] , & weight_op [ 1 ] , & weight_avg [ 1 ] , IS_DIR ( sub_mb_type , 0 , 0 ) , IS_DIR ( sub_mb_type , 0 , 1 ) ) ;\n }\n else if ( IS_SUB_4X8 ( sub_mb_type ) ) {\n mc_part ( h , n , 0 , 8 , 4 * h -> mb_linesize , dest_y , dest_cb , dest_cr , x_offset , y_offset , qpix_put [ 2 ] , chroma_put [ 2 ] , qpix_avg [ 2 ] , chroma_avg [ 2 ] , & weight_op [ 2 ] , & weight_avg [ 2 ] , IS_DIR ( sub_mb_type , 0 , 0 ) , IS_DIR ( sub_mb_type , 0 , 1 ) ) ;\n mc_part ( h , n + 1 , 0 , 8 , 4 * h -> mb_linesize , dest_y , dest_cb , dest_cr , x_offset + 2 , y_offset , qpix_put [ 2 ] , chroma_put [ 2 ] , qpix_avg [ 2 ] , chroma_avg [ 2 ] , & weight_op [ 2 ] , & weight_avg [ 2 ] , IS_DIR ( sub_mb_type , 0 , 0 ) , IS_DIR ( sub_mb_type , 0 , 1 ) ) ;\n }\n else {\n int j ;\n assert ( IS_SUB_4X4 ( sub_mb_type ) ) ;\n for ( j = 0 ;\n j < 4 ;\n j ++ ) {\n int sub_x_offset = x_offset + 2 * ( j & 1 ) ;\n int sub_y_offset = y_offset + ( j & 2 ) ;\n mc_part ( h , n + j , 1 , 4 , 0 , dest_y , dest_cb , dest_cr , sub_x_offset , sub_y_offset , qpix_put [ 2 ] , chroma_put [ 2 ] , qpix_avg [ 2 ] , chroma_avg [ 2 ] , & weight_op [ 2 ] , & weight_avg [ 2 ] , IS_DIR ( sub_mb_type , 0 , 0 ) , IS_DIR ( sub_mb_type , 0 , 1 ) ) ;\n }\n }\n }\n }\n prefetch_motion ( h , 1 , PIXEL_SHIFT , CHROMA_IDC ) ;\n }"}
{"idx": 15011, "target": 0, "func": "static PyObject * authGSSServerStep ( PyObject * self , PyObject * args ) {\n gss_server_state * state ;\n PyObject * pystate ;\n char * challenge = NULL ;\n int result = 0 ;\n if ( ! PyArg_ParseTuple ( args , \"Os\" , & pystate , & challenge ) ) return NULL ;\n # if PY_MAJOR_VERSION >= 3 if ( ! PyCapsule_CheckExact ( pystate ) ) {\n # else if ( ! PyCObject_Check ( pystate ) ) {\n # endif PyErr_SetString ( PyExc_TypeError , \"Expected a context object\" ) ;\n return NULL ;\n }\n # if PY_MAJOR_VERSION >= 3 state = PyCapsule_GetPointer ( pystate , NULL ) ;\n # else state = ( gss_client_state * ) PyCObject_AsVoidPtr ( pystate ) ;\n # endif if ( state == NULL ) return NULL ;\n result = authenticate_gss_server_step ( state , challenge ) ;\n if ( result == AUTH_GSS_ERROR ) return NULL ;\n return Py_BuildValue ( \"i\" , result ) ;\n }"}
{"idx": 15012, "target": 0, "func": "static gint dissect_aptx ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n proto_item * aptx_item ;\n proto_tree * aptx_tree ;\n proto_item * pitem ;\n bta2dp_codec_info_t * info ;\n gdouble cumulative_frame_duration = 0 ;\n info = ( bta2dp_codec_info_t * ) data ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"APT-X\" ) ;\n switch ( pinfo -> p2p_dir ) {\n case P2P_DIR_SENT : col_set_str ( pinfo -> cinfo , COL_INFO , \"Sent \" ) ;\n break ;\n case P2P_DIR_RECV : col_set_str ( pinfo -> cinfo , COL_INFO , \"Rcvd \" ) ;\n break ;\n case P2P_DIR_UNKNOWN : col_clear ( pinfo -> cinfo , COL_INFO ) ;\n break ;\n default : col_add_fstr ( pinfo -> cinfo , COL_INFO , \"Unknown direction %d \" , pinfo -> p2p_dir ) ;\n break ;\n }\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"APT-X\" ) ;\n aptx_item = proto_tree_add_item ( tree , proto_aptx , tvb , 0 , - 1 , ENC_NA ) ;\n aptx_tree = proto_item_add_subtree ( aptx_item , ett_aptx ) ;\n proto_tree_add_item ( aptx_tree , hf_aptx_data , tvb , 0 , - 1 , ENC_NA ) ;\n if ( info && info -> configuration && info -> configuration_length >= 9 ) {\n gboolean fail = FALSE ;\n gdouble expected_speed_data ;\n gdouble frame_duration ;\n gdouble frame_length = 2 * 2 * 4 ;\n gint number_of_channels ;\n gint frequency ;\n gint sample_bits ;\n switch ( info -> configuration [ 8 ] >> 4 ) {\n case 0x01 : frequency = 48000 ;\n break ;\n case 0x02 : frequency = 44100 ;\n break ;\n case 0x04 : frequency = 32000 ;\n break ;\n case 0x08 : frequency = 16000 ;\n break ;\n default : fail = TRUE ;\n }\n if ( fail ) return tvb_reported_length ( tvb ) ;\n switch ( info -> configuration [ 8 ] & 0x0F ) {\n case 0x01 : case 0x02 : case 0x04 : number_of_channels = 2 ;\n break ;\n case 0x08 : number_of_channels = 1 ;\n break ;\n default : fail = TRUE ;\n }\n if ( fail ) return tvb_reported_length ( tvb ) ;\n sample_bits = 16 ;\n expected_speed_data = frequency * ( sample_bits / 8.0 ) * number_of_channels ;\n frame_duration = ( ( ( double ) frame_length / ( double ) expected_speed_data ) * 1000.0 ) ;\n cumulative_frame_duration = ( tvb_reported_length ( tvb ) / 4.0 ) * frame_duration ;\n pitem = proto_tree_add_double ( aptx_tree , hf_aptx_cumulative_frame_duration , tvb , 0 , 0 , cumulative_frame_duration ) ;\n PROTO_ITEM_SET_GENERATED ( pitem ) ;\n if ( info && info -> previous_media_packet_info && info -> current_media_packet_info ) {\n nstime_t delta ;\n nstime_delta ( & delta , & pinfo -> abs_ts , & info -> previous_media_packet_info -> abs_ts ) ;\n pitem = proto_tree_add_double ( aptx_tree , hf_aptx_delta_time , tvb , 0 , 0 , nstime_to_msec ( & delta ) ) ;\n PROTO_ITEM_SET_GENERATED ( pitem ) ;\n pitem = proto_tree_add_double ( aptx_tree , hf_aptx_avrcp_song_position , tvb , 0 , 0 , info -> previous_media_packet_info -> avrcp_song_position ) ;\n PROTO_ITEM_SET_GENERATED ( pitem ) ;\n nstime_delta ( & delta , & pinfo -> abs_ts , & info -> previous_media_packet_info -> first_abs_ts ) ;\n pitem = proto_tree_add_double ( aptx_tree , hf_aptx_delta_time_from_the_beginning , tvb , 0 , 0 , nstime_to_msec ( & delta ) ) ;\n PROTO_ITEM_SET_GENERATED ( pitem ) ;\n if ( ! pinfo -> fd -> flags . visited ) info -> current_media_packet_info -> cumulative_frame_duration += cumulative_frame_duration ;\n pitem = proto_tree_add_double ( aptx_tree , hf_aptx_cumulative_duration , tvb , 0 , 0 , info -> previous_media_packet_info -> cumulative_frame_duration ) ;\n PROTO_ITEM_SET_GENERATED ( pitem ) ;\n pitem = proto_tree_add_double ( aptx_tree , hf_aptx_diff , tvb , 0 , 0 , info -> previous_media_packet_info -> cumulative_frame_duration - nstime_to_msec ( & delta ) ) ;\n PROTO_ITEM_SET_GENERATED ( pitem ) ;\n }\n }\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 15013, "target": 0, "func": "Oid get_func_rettype ( Oid funcid ) {\n HeapTuple tp ;\n Oid result ;\n tp = SearchSysCache1 ( PROCOID , ObjectIdGetDatum ( funcid ) ) ;\n if ( ! HeapTupleIsValid ( tp ) ) elog ( ERROR , \"cache lookup failed for function %u\" , funcid ) ;\n result = ( ( Form_pg_proc ) GETSTRUCT ( tp ) ) -> prorettype ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }"}
{"idx": 15014, "target": 0, "func": "TSReturnCode sdk_sanity_check_http_parser ( TSHttpParser parser ) {\n if ( parser == nullptr ) {\n return TS_ERROR ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 15015, "target": 0, "func": "static int32_t U_CALLCONV lenient8IteratorMove ( UCharIterator * iter , int32_t delta , UCharIteratorOrigin origin ) {\n const uint8_t * s ;\n UChar32 c ;\n int32_t pos ;\n int32_t i ;\n UBool havePos ;\n switch ( origin ) {\n case UITER_ZERO : case UITER_START : pos = delta ;\n havePos = TRUE ;\n break ;\n case UITER_CURRENT : if ( iter -> index >= 0 ) {\n pos = iter -> index + delta ;\n havePos = TRUE ;\n }\n else {\n pos = 0 ;\n havePos = FALSE ;\n }\n break ;\n case UITER_LIMIT : case UITER_LENGTH : if ( iter -> length >= 0 ) {\n pos = iter -> length + delta ;\n havePos = TRUE ;\n }\n else {\n iter -> index = - 1 ;\n iter -> start = iter -> limit ;\n iter -> reservedField = 0 ;\n if ( delta >= 0 ) {\n return UITER_UNKNOWN_INDEX ;\n }\n else {\n pos = 0 ;\n havePos = FALSE ;\n }\n }\n break ;\n default : return - 1 ;\n }\n if ( havePos ) {\n if ( pos <= 0 ) {\n iter -> index = iter -> start = iter -> reservedField = 0 ;\n return 0 ;\n }\n else if ( iter -> length >= 0 && pos >= iter -> length ) {\n iter -> index = iter -> length ;\n iter -> start = iter -> limit ;\n iter -> reservedField = 0 ;\n return iter -> index ;\n }\n if ( iter -> index < 0 || pos < iter -> index / 2 ) {\n iter -> index = iter -> start = iter -> reservedField = 0 ;\n }\n else if ( iter -> length >= 0 && ( iter -> length - pos ) < ( pos - iter -> index ) ) {\n iter -> index = iter -> length ;\n iter -> start = iter -> limit ;\n iter -> reservedField = 0 ;\n }\n delta = pos - iter -> index ;\n if ( delta == 0 ) {\n return iter -> index ;\n }\n }\n else {\n if ( delta == 0 ) {\n return UITER_UNKNOWN_INDEX ;\n }\n else if ( - delta >= iter -> start ) {\n iter -> index = iter -> start = iter -> reservedField = 0 ;\n return 0 ;\n }\n else if ( delta >= ( iter -> limit - iter -> start ) ) {\n iter -> index = iter -> length ;\n iter -> start = iter -> limit ;\n iter -> reservedField = 0 ;\n return iter -> index >= 0 ? iter -> index : UITER_UNKNOWN_INDEX ;\n }\n }\n s = ( const uint8_t * ) iter -> context ;\n pos = iter -> index ;\n i = iter -> start ;\n if ( delta > 0 ) {\n int32_t limit = iter -> limit ;\n if ( iter -> reservedField != 0 ) {\n iter -> reservedField = 0 ;\n ++ pos ;\n -- delta ;\n }\n while ( delta > 0 && i < limit ) {\n L8_NEXT ( s , i , limit , c ) ;\n if ( c < 0xffff ) {\n ++ pos ;\n -- delta ;\n }\n else if ( delta >= 2 ) {\n pos += 2 ;\n delta -= 2 ;\n }\n else {\n iter -> reservedField = c ;\n ++ pos ;\n break ;\n }\n }\n if ( i == limit ) {\n if ( iter -> length < 0 && iter -> index >= 0 ) {\n iter -> length = iter -> reservedField == 0 ? pos : pos + 1 ;\n }\n else if ( iter -> index < 0 && iter -> length >= 0 ) {\n iter -> index = iter -> reservedField == 0 ? iter -> length : iter -> length - 1 ;\n }\n }\n }\n else {\n if ( iter -> reservedField != 0 ) {\n iter -> reservedField = 0 ;\n i -= 4 ;\n -- pos ;\n ++ delta ;\n }\n while ( delta < 0 && i > 0 ) {\n L8_PREV ( s , 0 , i , c ) ;\n if ( c < 0xffff ) {\n -- pos ;\n ++ delta ;\n }\n else if ( delta <= - 2 ) {\n pos -= 2 ;\n delta += 2 ;\n }\n else {\n i += 4 ;\n iter -> reservedField = c ;\n -- pos ;\n break ;\n }\n }\n }\n iter -> start = i ;\n if ( iter -> index >= 0 ) {\n return iter -> index = pos ;\n }\n else {\n if ( i <= 1 ) {\n return iter -> index = i ;\n }\n else {\n return UITER_UNKNOWN_INDEX ;\n }\n }\n }"}
{"idx": 15016, "target": 0, "func": "static OffsetHashTable new_offset_hash_table ( void ) {\n struct off_item * * tbl ;\n tbl = xmalloc_clear ( 2048 * sizeof * tbl ) ;\n return tbl ;\n }"}
{"idx": 15017, "target": 0, "func": "static void fill_decode_caches ( H264Context * h , int mb_type ) {\n int topleft_xy , top_xy , topright_xy , left_xy [ LEFT_MBS ] ;\n int topleft_type , top_type , topright_type , left_type [ LEFT_MBS ] ;\n const uint8_t * left_block = h -> left_block ;\n int i ;\n uint8_t * nnz ;\n uint8_t * nnz_cache ;\n topleft_xy = h -> topleft_mb_xy ;\n top_xy = h -> top_mb_xy ;\n topright_xy = h -> topright_mb_xy ;\n left_xy [ LTOP ] = h -> left_mb_xy [ LTOP ] ;\n left_xy [ LBOT ] = h -> left_mb_xy [ LBOT ] ;\n topleft_type = h -> topleft_type ;\n top_type = h -> top_type ;\n topright_type = h -> topright_type ;\n left_type [ LTOP ] = h -> left_type [ LTOP ] ;\n left_type [ LBOT ] = h -> left_type [ LBOT ] ;\n if ( ! IS_SKIP ( mb_type ) ) {\n if ( IS_INTRA ( mb_type ) ) {\n int type_mask = h -> pps . constrained_intra_pred ? IS_INTRA ( - 1 ) : - 1 ;\n h -> topleft_samples_available = h -> top_samples_available = h -> left_samples_available = 0xFFFF ;\n h -> topright_samples_available = 0xEEEA ;\n if ( ! ( top_type & type_mask ) ) {\n h -> topleft_samples_available = 0xB3FF ;\n h -> top_samples_available = 0x33FF ;\n h -> topright_samples_available = 0x26EA ;\n }\n if ( IS_INTERLACED ( mb_type ) != IS_INTERLACED ( left_type [ LTOP ] ) ) {\n if ( IS_INTERLACED ( mb_type ) ) {\n if ( ! ( left_type [ LTOP ] & type_mask ) ) {\n h -> topleft_samples_available &= 0xDFFF ;\n h -> left_samples_available &= 0x5FFF ;\n }\n if ( ! ( left_type [ LBOT ] & type_mask ) ) {\n h -> topleft_samples_available &= 0xFF5F ;\n h -> left_samples_available &= 0xFF5F ;\n }\n }\n else {\n int left_typei = h -> cur_pic . mb_type [ left_xy [ LTOP ] + h -> mb_stride ] ;\n assert ( left_xy [ LTOP ] == left_xy [ LBOT ] ) ;\n if ( ! ( ( left_typei & type_mask ) && ( left_type [ LTOP ] & type_mask ) ) ) {\n h -> topleft_samples_available &= 0xDF5F ;\n h -> left_samples_available &= 0x5F5F ;\n }\n }\n }\n else {\n if ( ! ( left_type [ LTOP ] & type_mask ) ) {\n h -> topleft_samples_available &= 0xDF5F ;\n h -> left_samples_available &= 0x5F5F ;\n }\n }\n if ( ! ( topleft_type & type_mask ) ) h -> topleft_samples_available &= 0x7FFF ;\n if ( ! ( topright_type & type_mask ) ) h -> topright_samples_available &= 0xFBFF ;\n if ( IS_INTRA4x4 ( mb_type ) ) {\n if ( IS_INTRA4x4 ( top_type ) ) {\n AV_COPY32 ( h -> intra4x4_pred_mode_cache + 4 + 8 * 0 , h -> intra4x4_pred_mode + h -> mb2br_xy [ top_xy ] ) ;\n }\n else {\n h -> intra4x4_pred_mode_cache [ 4 + 8 * 0 ] = h -> intra4x4_pred_mode_cache [ 5 + 8 * 0 ] = h -> intra4x4_pred_mode_cache [ 6 + 8 * 0 ] = h -> intra4x4_pred_mode_cache [ 7 + 8 * 0 ] = 2 - 3 * ! ( top_type & type_mask ) ;\n }\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n if ( IS_INTRA4x4 ( left_type [ LEFT ( i ) ] ) ) {\n int8_t * mode = h -> intra4x4_pred_mode + h -> mb2br_xy [ left_xy [ LEFT ( i ) ] ] ;\n h -> intra4x4_pred_mode_cache [ 3 + 8 * 1 + 2 * 8 * i ] = mode [ 6 - left_block [ 0 + 2 * i ] ] ;\n h -> intra4x4_pred_mode_cache [ 3 + 8 * 2 + 2 * 8 * i ] = mode [ 6 - left_block [ 1 + 2 * i ] ] ;\n }\n else {\n h -> intra4x4_pred_mode_cache [ 3 + 8 * 1 + 2 * 8 * i ] = h -> intra4x4_pred_mode_cache [ 3 + 8 * 2 + 2 * 8 * i ] = 2 - 3 * ! ( left_type [ LEFT ( i ) ] & type_mask ) ;\n }\n }\n }\n }\n nnz_cache = h -> non_zero_count_cache ;\n if ( top_type ) {\n nnz = h -> non_zero_count [ top_xy ] ;\n AV_COPY32 ( & nnz_cache [ 4 + 8 * 0 ] , & nnz [ 4 * 3 ] ) ;\n if ( ! h -> chroma_y_shift ) {\n AV_COPY32 ( & nnz_cache [ 4 + 8 * 5 ] , & nnz [ 4 * 7 ] ) ;\n AV_COPY32 ( & nnz_cache [ 4 + 8 * 10 ] , & nnz [ 4 * 11 ] ) ;\n }\n else {\n AV_COPY32 ( & nnz_cache [ 4 + 8 * 5 ] , & nnz [ 4 * 5 ] ) ;\n AV_COPY32 ( & nnz_cache [ 4 + 8 * 10 ] , & nnz [ 4 * 9 ] ) ;\n }\n }\n else {\n uint32_t top_empty = CABAC && ! IS_INTRA ( mb_type ) ? 0 : 0x40404040 ;\n AV_WN32A ( & nnz_cache [ 4 + 8 * 0 ] , top_empty ) ;\n AV_WN32A ( & nnz_cache [ 4 + 8 * 5 ] , top_empty ) ;\n AV_WN32A ( & nnz_cache [ 4 + 8 * 10 ] , top_empty ) ;\n }\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n if ( left_type [ LEFT ( i ) ] ) {\n nnz = h -> non_zero_count [ left_xy [ LEFT ( i ) ] ] ;\n nnz_cache [ 3 + 8 * 1 + 2 * 8 * i ] = nnz [ left_block [ 8 + 0 + 2 * i ] ] ;\n nnz_cache [ 3 + 8 * 2 + 2 * 8 * i ] = nnz [ left_block [ 8 + 1 + 2 * i ] ] ;\n if ( CHROMA444 ) {\n nnz_cache [ 3 + 8 * 6 + 2 * 8 * i ] = nnz [ left_block [ 8 + 0 + 2 * i ] + 4 * 4 ] ;\n nnz_cache [ 3 + 8 * 7 + 2 * 8 * i ] = nnz [ left_block [ 8 + 1 + 2 * i ] + 4 * 4 ] ;\n nnz_cache [ 3 + 8 * 11 + 2 * 8 * i ] = nnz [ left_block [ 8 + 0 + 2 * i ] + 8 * 4 ] ;\n nnz_cache [ 3 + 8 * 12 + 2 * 8 * i ] = nnz [ left_block [ 8 + 1 + 2 * i ] + 8 * 4 ] ;\n }\n else if ( CHROMA422 ) {\n nnz_cache [ 3 + 8 * 6 + 2 * 8 * i ] = nnz [ left_block [ 8 + 0 + 2 * i ] - 2 + 4 * 4 ] ;\n nnz_cache [ 3 + 8 * 7 + 2 * 8 * i ] = nnz [ left_block [ 8 + 1 + 2 * i ] - 2 + 4 * 4 ] ;\n nnz_cache [ 3 + 8 * 11 + 2 * 8 * i ] = nnz [ left_block [ 8 + 0 + 2 * i ] - 2 + 8 * 4 ] ;\n nnz_cache [ 3 + 8 * 12 + 2 * 8 * i ] = nnz [ left_block [ 8 + 1 + 2 * i ] - 2 + 8 * 4 ] ;\n }\n else {\n nnz_cache [ 3 + 8 * 6 + 8 * i ] = nnz [ left_block [ 8 + 4 + 2 * i ] ] ;\n nnz_cache [ 3 + 8 * 11 + 8 * i ] = nnz [ left_block [ 8 + 5 + 2 * i ] ] ;\n }\n }\n else {\n nnz_cache [ 3 + 8 * 1 + 2 * 8 * i ] = nnz_cache [ 3 + 8 * 2 + 2 * 8 * i ] = nnz_cache [ 3 + 8 * 6 + 2 * 8 * i ] = nnz_cache [ 3 + 8 * 7 + 2 * 8 * i ] = nnz_cache [ 3 + 8 * 11 + 2 * 8 * i ] = nnz_cache [ 3 + 8 * 12 + 2 * 8 * i ] = CABAC && ! IS_INTRA ( mb_type ) ? 0 : 64 ;\n }\n }\n if ( CABAC ) {\n if ( top_type ) h -> top_cbp = h -> cbp_table [ top_xy ] ;\n else h -> top_cbp = IS_INTRA ( mb_type ) ? 0x7CF : 0x00F ;\n if ( left_type [ LTOP ] ) {\n h -> left_cbp = ( h -> cbp_table [ left_xy [ LTOP ] ] & 0x7F0 ) | ( ( h -> cbp_table [ left_xy [ LTOP ] ] >> ( left_block [ 0 ] & ( ~ 1 ) ) ) & 2 ) | ( ( ( h -> cbp_table [ left_xy [ LBOT ] ] >> ( left_block [ 2 ] & ( ~ 1 ) ) ) & 2 ) << 2 ) ;\n }\n else {\n h -> left_cbp = IS_INTRA ( mb_type ) ? 0x7CF : 0x00F ;\n }\n }\n }\n if ( IS_INTER ( mb_type ) || ( IS_DIRECT ( mb_type ) && h -> direct_spatial_mv_pred ) ) {\n int list ;\n int b_stride = h -> b_stride ;\n for ( list = 0 ;\n list < h -> list_count ;\n list ++ ) {\n int8_t * ref_cache = & h -> ref_cache [ list ] [ scan8 [ 0 ] ] ;\n int8_t * ref = h -> cur_pic . ref_index [ list ] ;\n int16_t ( * mv_cache ) [ 2 ] = & h -> mv_cache [ list ] [ scan8 [ 0 ] ] ;\n int16_t ( * mv ) [ 2 ] = h -> cur_pic . motion_val [ list ] ;\n if ( ! USES_LIST ( mb_type , list ) ) continue ;\n assert ( ! ( IS_DIRECT ( mb_type ) && ! h -> direct_spatial_mv_pred ) ) ;\n if ( USES_LIST ( top_type , list ) ) {\n const int b_xy = h -> mb2b_xy [ top_xy ] + 3 * b_stride ;\n AV_COPY128 ( mv_cache [ 0 - 1 * 8 ] , mv [ b_xy + 0 ] ) ;\n ref_cache [ 0 - 1 * 8 ] = ref_cache [ 1 - 1 * 8 ] = ref [ 4 * top_xy + 2 ] ;\n ref_cache [ 2 - 1 * 8 ] = ref_cache [ 3 - 1 * 8 ] = ref [ 4 * top_xy + 3 ] ;\n }\n else {\n AV_ZERO128 ( mv_cache [ 0 - 1 * 8 ] ) ;\n AV_WN32A ( & ref_cache [ 0 - 1 * 8 ] , ( ( top_type ? LIST_NOT_USED : PART_NOT_AVAILABLE ) & 0xFF ) * 0x01010101u ) ;\n }\n if ( mb_type & ( MB_TYPE_16x8 | MB_TYPE_8x8 ) ) {\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n int cache_idx = - 1 + i * 2 * 8 ;\n if ( USES_LIST ( left_type [ LEFT ( i ) ] , list ) ) {\n const int b_xy = h -> mb2b_xy [ left_xy [ LEFT ( i ) ] ] + 3 ;\n const int b8_xy = 4 * left_xy [ LEFT ( i ) ] + 1 ;\n AV_COPY32 ( mv_cache [ cache_idx ] , mv [ b_xy + b_stride * left_block [ 0 + i * 2 ] ] ) ;\n AV_COPY32 ( mv_cache [ cache_idx + 8 ] , mv [ b_xy + b_stride * left_block [ 1 + i * 2 ] ] ) ;\n ref_cache [ cache_idx ] = ref [ b8_xy + ( left_block [ 0 + i * 2 ] & ~ 1 ) ] ;\n ref_cache [ cache_idx + 8 ] = ref [ b8_xy + ( left_block [ 1 + i * 2 ] & ~ 1 ) ] ;\n }\n else {\n AV_ZERO32 ( mv_cache [ cache_idx ] ) ;\n AV_ZERO32 ( mv_cache [ cache_idx + 8 ] ) ;\n ref_cache [ cache_idx ] = ref_cache [ cache_idx + 8 ] = ( left_type [ LEFT ( i ) ] ) ? LIST_NOT_USED : PART_NOT_AVAILABLE ;\n }\n }\n }\n else {\n if ( USES_LIST ( left_type [ LTOP ] , list ) ) {\n const int b_xy = h -> mb2b_xy [ left_xy [ LTOP ] ] + 3 ;\n const int b8_xy = 4 * left_xy [ LTOP ] + 1 ;\n AV_COPY32 ( mv_cache [ - 1 ] , mv [ b_xy + b_stride * left_block [ 0 ] ] ) ;\n ref_cache [ - 1 ] = ref [ b8_xy + ( left_block [ 0 ] & ~ 1 ) ] ;\n }\n else {\n AV_ZERO32 ( mv_cache [ - 1 ] ) ;\n ref_cache [ - 1 ] = left_type [ LTOP ] ? LIST_NOT_USED : PART_NOT_AVAILABLE ;\n }\n }\n if ( USES_LIST ( topright_type , list ) ) {\n const int b_xy = h -> mb2b_xy [ topright_xy ] + 3 * b_stride ;\n AV_COPY32 ( mv_cache [ 4 - 1 * 8 ] , mv [ b_xy ] ) ;\n ref_cache [ 4 - 1 * 8 ] = ref [ 4 * topright_xy + 2 ] ;\n }\n else {\n AV_ZERO32 ( mv_cache [ 4 - 1 * 8 ] ) ;\n ref_cache [ 4 - 1 * 8 ] = topright_type ? LIST_NOT_USED : PART_NOT_AVAILABLE ;\n }\n if ( ref_cache [ 4 - 1 * 8 ] < 0 ) {\n if ( USES_LIST ( topleft_type , list ) ) {\n const int b_xy = h -> mb2b_xy [ topleft_xy ] + 3 + b_stride + ( h -> topleft_partition & 2 * b_stride ) ;\n const int b8_xy = 4 * topleft_xy + 1 + ( h -> topleft_partition & 2 ) ;\n AV_COPY32 ( mv_cache [ - 1 - 1 * 8 ] , mv [ b_xy ] ) ;\n ref_cache [ - 1 - 1 * 8 ] = ref [ b8_xy ] ;\n }\n else {\n AV_ZERO32 ( mv_cache [ - 1 - 1 * 8 ] ) ;\n ref_cache [ - 1 - 1 * 8 ] = topleft_type ? LIST_NOT_USED : PART_NOT_AVAILABLE ;\n }\n }\n if ( ( mb_type & ( MB_TYPE_SKIP | MB_TYPE_DIRECT2 ) ) && ! FRAME_MBAFF ) continue ;\n if ( ! ( mb_type & ( MB_TYPE_SKIP | MB_TYPE_DIRECT2 ) ) ) {\n uint8_t ( * mvd_cache ) [ 2 ] = & h -> mvd_cache [ list ] [ scan8 [ 0 ] ] ;\n uint8_t ( * mvd ) [ 2 ] = h -> mvd_table [ list ] ;\n ref_cache [ 2 + 8 * 0 ] = ref_cache [ 2 + 8 * 2 ] = PART_NOT_AVAILABLE ;\n AV_ZERO32 ( mv_cache [ 2 + 8 * 0 ] ) ;\n AV_ZERO32 ( mv_cache [ 2 + 8 * 2 ] ) ;\n if ( CABAC ) {\n if ( USES_LIST ( top_type , list ) ) {\n const int b_xy = h -> mb2br_xy [ top_xy ] ;\n AV_COPY64 ( mvd_cache [ 0 - 1 * 8 ] , mvd [ b_xy + 0 ] ) ;\n }\n else {\n AV_ZERO64 ( mvd_cache [ 0 - 1 * 8 ] ) ;\n }\n if ( USES_LIST ( left_type [ LTOP ] , list ) ) {\n const int b_xy = h -> mb2br_xy [ left_xy [ LTOP ] ] + 6 ;\n AV_COPY16 ( mvd_cache [ - 1 + 0 * 8 ] , mvd [ b_xy - left_block [ 0 ] ] ) ;\n AV_COPY16 ( mvd_cache [ - 1 + 1 * 8 ] , mvd [ b_xy - left_block [ 1 ] ] ) ;\n }\n else {\n AV_ZERO16 ( mvd_cache [ - 1 + 0 * 8 ] ) ;\n AV_ZERO16 ( mvd_cache [ - 1 + 1 * 8 ] ) ;\n }\n if ( USES_LIST ( left_type [ LBOT ] , list ) ) {\n const int b_xy = h -> mb2br_xy [ left_xy [ LBOT ] ] + 6 ;\n AV_COPY16 ( mvd_cache [ - 1 + 2 * 8 ] , mvd [ b_xy - left_block [ 2 ] ] ) ;\n AV_COPY16 ( mvd_cache [ - 1 + 3 * 8 ] , mvd [ b_xy - left_block [ 3 ] ] ) ;\n }\n else {\n AV_ZERO16 ( mvd_cache [ - 1 + 2 * 8 ] ) ;\n AV_ZERO16 ( mvd_cache [ - 1 + 3 * 8 ] ) ;\n }\n AV_ZERO16 ( mvd_cache [ 2 + 8 * 0 ] ) ;\n AV_ZERO16 ( mvd_cache [ 2 + 8 * 2 ] ) ;\n if ( h -> slice_type_nos == AV_PICTURE_TYPE_B ) {\n uint8_t * direct_cache = & h -> direct_cache [ scan8 [ 0 ] ] ;\n uint8_t * direct_table = h -> direct_table ;\n fill_rectangle ( direct_cache , 4 , 4 , 8 , MB_TYPE_16x16 >> 1 , 1 ) ;\n if ( IS_DIRECT ( top_type ) ) {\n AV_WN32A ( & direct_cache [ - 1 * 8 ] , 0x01010101u * ( MB_TYPE_DIRECT2 >> 1 ) ) ;\n }\n else if ( IS_8X8 ( top_type ) ) {\n int b8_xy = 4 * top_xy ;\n direct_cache [ 0 - 1 * 8 ] = direct_table [ b8_xy + 2 ] ;\n direct_cache [ 2 - 1 * 8 ] = direct_table [ b8_xy + 3 ] ;\n }\n else {\n AV_WN32A ( & direct_cache [ - 1 * 8 ] , 0x01010101 * ( MB_TYPE_16x16 >> 1 ) ) ;\n }\n if ( IS_DIRECT ( left_type [ LTOP ] ) ) direct_cache [ - 1 + 0 * 8 ] = MB_TYPE_DIRECT2 >> 1 ;\n else if ( IS_8X8 ( left_type [ LTOP ] ) ) direct_cache [ - 1 + 0 * 8 ] = direct_table [ 4 * left_xy [ LTOP ] + 1 + ( left_block [ 0 ] & ~ 1 ) ] ;\n else direct_cache [ - 1 + 0 * 8 ] = MB_TYPE_16x16 >> 1 ;\n if ( IS_DIRECT ( left_type [ LBOT ] ) ) direct_cache [ - 1 + 2 * 8 ] = MB_TYPE_DIRECT2 >> 1 ;\n else if ( IS_8X8 ( left_type [ LBOT ] ) ) direct_cache [ - 1 + 2 * 8 ] = direct_table [ 4 * left_xy [ LBOT ] + 1 + ( left_block [ 2 ] & ~ 1 ) ] ;\n else direct_cache [ - 1 + 2 * 8 ] = MB_TYPE_16x16 >> 1 ;\n }\n }\n }\n # define MAP_MVS MAP_F2F ( scan8 [ 0 ] - 1 - 1 * 8 , topleft_type ) MAP_F2F ( scan8 [ 0 ] + 0 - 1 * 8 , top_type ) MAP_F2F ( scan8 [ 0 ] + 1 - 1 * 8 , top_type ) MAP_F2F ( scan8 [ 0 ] + 2 - 1 * 8 , top_type ) MAP_F2F ( scan8 [ 0 ] + 3 - 1 * 8 , top_type ) MAP_F2F ( scan8 [ 0 ] + 4 - 1 * 8 , topright_type ) MAP_F2F ( scan8 [ 0 ] - 1 + 0 * 8 , left_type [ LTOP ] ) MAP_F2F ( scan8 [ 0 ] - 1 + 1 * 8 , left_type [ LTOP ] ) MAP_F2F ( scan8 [ 0 ] - 1 + 2 * 8 , left_type [ LBOT ] ) MAP_F2F ( scan8 [ 0 ] - 1 + 3 * 8 , left_type [ LBOT ] ) if ( FRAME_MBAFF ) {\n if ( MB_FIELD ) {\n # define MAP_F2F ( idx , mb_type ) if ( ! IS_INTERLACED ( mb_type ) && h -> ref_cache [ list ] [ idx ] >= 0 ) {\n h -> ref_cache [ list ] [ idx ] <<= 1 ;\n h -> mv_cache [ list ] [ idx ] [ 1 ] /= 2 ;\n h -> mvd_cache [ list ] [ idx ] [ 1 ] >>= 1 ;\n }\n MAP_MVS }\n else {\n # undef MAP_F2F # define MAP_F2F ( idx , mb_type ) if ( IS_INTERLACED ( mb_type ) && h -> ref_cache [ list ] [ idx ] >= 0 ) {\n h -> ref_cache [ list ] [ idx ] >>= 1 ;\n h -> mv_cache [ list ] [ idx ] [ 1 ] <<= 1 ;\n h -> mvd_cache [ list ] [ idx ] [ 1 ] <<= 1 ;\n }\n MAP_MVS # undef MAP_F2F }\n }\n }\n }\n h -> neighbor_transform_size = ! ! IS_8x8DCT ( top_type ) + ! ! IS_8x8DCT ( left_type [ LTOP ] ) ;\n }"}
{"idx": 15018, "target": 0, "func": "static inline int bidir_refine ( MpegEncContext * s , int mb_x , int mb_y ) {\n MotionEstContext * const c = & s -> me ;\n const int mot_stride = s -> mb_stride ;\n const int xy = mb_y * mot_stride + mb_x ;\n int fbmin ;\n int pred_fx = s -> b_bidir_forw_mv_table [ xy - 1 ] [ 0 ] ;\n int pred_fy = s -> b_bidir_forw_mv_table [ xy - 1 ] [ 1 ] ;\n int pred_bx = s -> b_bidir_back_mv_table [ xy - 1 ] [ 0 ] ;\n int pred_by = s -> b_bidir_back_mv_table [ xy - 1 ] [ 1 ] ;\n int motion_fx = s -> b_bidir_forw_mv_table [ xy ] [ 0 ] = s -> b_forw_mv_table [ xy ] [ 0 ] ;\n int motion_fy = s -> b_bidir_forw_mv_table [ xy ] [ 1 ] = s -> b_forw_mv_table [ xy ] [ 1 ] ;\n int motion_bx = s -> b_bidir_back_mv_table [ xy ] [ 0 ] = s -> b_back_mv_table [ xy ] [ 0 ] ;\n int motion_by = s -> b_bidir_back_mv_table [ xy ] [ 1 ] = s -> b_back_mv_table [ xy ] [ 1 ] ;\n const int flags = c -> sub_flags ;\n const int qpel = flags & FLAG_QPEL ;\n const int shift = 1 + qpel ;\n const int xmin = c -> xmin << shift ;\n const int ymin = c -> ymin << shift ;\n const int xmax = c -> xmax << shift ;\n const int ymax = c -> ymax << shift ;\n # define HASH ( fx , fy , bx , by ) ( ( fx ) + 17 * ( fy ) + 63 * ( bx ) + 117 * ( by ) ) # define HASH8 ( fx , fy , bx , by ) ( ( uint8_t ) HASH ( fx , fy , bx , by ) ) int hashidx = HASH ( motion_fx , motion_fy , motion_bx , motion_by ) ;\n uint8_t map [ 256 ] = {\n 0 }\n ;\n map [ hashidx & 255 ] = 1 ;\n fbmin = check_bidir_mv ( s , motion_fx , motion_fy , motion_bx , motion_by , pred_fx , pred_fy , pred_bx , pred_by , 0 , 16 ) ;\n if ( s -> avctx -> bidir_refine ) {\n int end ;\n static const uint8_t limittab [ 5 ] = {\n 0 , 8 , 32 , 64 , 80 }\n ;\n const int limit = limittab [ s -> avctx -> bidir_refine ] ;\n static const int8_t vect [ ] [ 4 ] = {\n {\n 0 , 0 , 0 , 1 }\n , {\n 0 , 0 , 0 , - 1 }\n , {\n 0 , 0 , 1 , 0 }\n , {\n 0 , 0 , - 1 , 0 }\n , {\n 0 , 1 , 0 , 0 }\n , {\n 0 , - 1 , 0 , 0 }\n , {\n 1 , 0 , 0 , 0 }\n , {\n - 1 , 0 , 0 , 0 }\n , {\n 0 , 0 , 1 , 1 }\n , {\n 0 , 0 , - 1 , - 1 }\n , {\n 0 , 1 , 1 , 0 }\n , {\n 0 , - 1 , - 1 , 0 }\n , {\n 1 , 1 , 0 , 0 }\n , {\n - 1 , - 1 , 0 , 0 }\n , {\n 1 , 0 , 0 , 1 }\n , {\n - 1 , 0 , 0 , - 1 }\n , {\n 0 , 1 , 0 , 1 }\n , {\n 0 , - 1 , 0 , - 1 }\n , {\n 1 , 0 , 1 , 0 }\n , {\n - 1 , 0 , - 1 , 0 }\n , {\n 0 , 0 , - 1 , 1 }\n , {\n 0 , 0 , 1 , - 1 }\n , {\n 0 , - 1 , 1 , 0 }\n , {\n 0 , 1 , - 1 , 0 }\n , {\n - 1 , 1 , 0 , 0 }\n , {\n 1 , - 1 , 0 , 0 }\n , {\n 1 , 0 , 0 , - 1 }\n , {\n - 1 , 0 , 0 , 1 }\n , {\n 0 , - 1 , 0 , 1 }\n , {\n 0 , 1 , 0 , - 1 }\n , {\n - 1 , 0 , 1 , 0 }\n , {\n 1 , 0 , - 1 , 0 }\n , {\n 0 , 1 , 1 , 1 }\n , {\n 0 , - 1 , - 1 , - 1 }\n , {\n 1 , 1 , 1 , 0 }\n , {\n - 1 , - 1 , - 1 , 0 }\n , {\n 1 , 1 , 0 , 1 }\n , {\n - 1 , - 1 , 0 , - 1 }\n , {\n 1 , 0 , 1 , 1 }\n , {\n - 1 , 0 , - 1 , - 1 }\n , {\n 0 , - 1 , 1 , 1 }\n , {\n 0 , 1 , - 1 , - 1 }\n , {\n - 1 , 1 , 1 , 0 }\n , {\n 1 , - 1 , - 1 , 0 }\n , {\n 1 , 1 , 0 , - 1 }\n , {\n - 1 , - 1 , 0 , 1 }\n , {\n 1 , 0 , - 1 , 1 }\n , {\n - 1 , 0 , 1 , - 1 }\n , {\n 0 , 1 , - 1 , 1 }\n , {\n 0 , - 1 , 1 , - 1 }\n , {\n 1 , - 1 , 1 , 0 }\n , {\n - 1 , 1 , - 1 , 0 }\n , {\n - 1 , 1 , 0 , 1 }\n , {\n 1 , - 1 , 0 , - 1 }\n , {\n 1 , 0 , 1 , - 1 }\n , {\n - 1 , 0 , - 1 , 1 }\n , {\n 0 , 1 , 1 , - 1 }\n , {\n 0 , - 1 , - 1 , 1 }\n , {\n 1 , 1 , - 1 , 0 }\n , {\n - 1 , - 1 , 1 , 0 }\n , {\n 1 , - 1 , 0 , 1 }\n , {\n - 1 , 1 , 0 , - 1 }\n , {\n - 1 , 0 , 1 , 1 }\n , {\n 1 , 0 , - 1 , - 1 }\n , {\n 1 , 1 , 1 , 1 }\n , {\n - 1 , - 1 , - 1 , - 1 }\n , {\n 1 , 1 , 1 , - 1 }\n , {\n - 1 , - 1 , - 1 , 1 }\n , {\n 1 , 1 , - 1 , 1 }\n , {\n - 1 , - 1 , 1 , - 1 }\n , {\n 1 , - 1 , 1 , 1 }\n , {\n - 1 , 1 , - 1 , - 1 }\n , {\n - 1 , 1 , 1 , 1 }\n , {\n 1 , - 1 , - 1 , - 1 }\n , {\n 1 , 1 , - 1 , - 1 }\n , {\n - 1 , - 1 , 1 , 1 }\n , {\n 1 , - 1 , - 1 , 1 }\n , {\n - 1 , 1 , 1 , - 1 }\n , {\n 1 , - 1 , 1 , - 1 }\n , {\n - 1 , 1 , - 1 , 1 }\n , }\n ;\n static const uint8_t hash [ ] = {\n HASH8 ( 0 , 0 , 0 , 1 ) , HASH8 ( 0 , 0 , 0 , - 1 ) , HASH8 ( 0 , 0 , 1 , 0 ) , HASH8 ( 0 , 0 , - 1 , 0 ) , HASH8 ( 0 , 1 , 0 , 0 ) , HASH8 ( 0 , - 1 , 0 , 0 ) , HASH8 ( 1 , 0 , 0 , 0 ) , HASH8 ( - 1 , 0 , 0 , 0 ) , HASH8 ( 0 , 0 , 1 , 1 ) , HASH8 ( 0 , 0 , - 1 , - 1 ) , HASH8 ( 0 , 1 , 1 , 0 ) , HASH8 ( 0 , - 1 , - 1 , 0 ) , HASH8 ( 1 , 1 , 0 , 0 ) , HASH8 ( - 1 , - 1 , 0 , 0 ) , HASH8 ( 1 , 0 , 0 , 1 ) , HASH8 ( - 1 , 0 , 0 , - 1 ) , HASH8 ( 0 , 1 , 0 , 1 ) , HASH8 ( 0 , - 1 , 0 , - 1 ) , HASH8 ( 1 , 0 , 1 , 0 ) , HASH8 ( - 1 , 0 , - 1 , 0 ) , HASH8 ( 0 , 0 , - 1 , 1 ) , HASH8 ( 0 , 0 , 1 , - 1 ) , HASH8 ( 0 , - 1 , 1 , 0 ) , HASH8 ( 0 , 1 , - 1 , 0 ) , HASH8 ( - 1 , 1 , 0 , 0 ) , HASH8 ( 1 , - 1 , 0 , 0 ) , HASH8 ( 1 , 0 , 0 , - 1 ) , HASH8 ( - 1 , 0 , 0 , 1 ) , HASH8 ( 0 , - 1 , 0 , 1 ) , HASH8 ( 0 , 1 , 0 , - 1 ) , HASH8 ( - 1 , 0 , 1 , 0 ) , HASH8 ( 1 , 0 , - 1 , 0 ) , HASH8 ( 0 , 1 , 1 , 1 ) , HASH8 ( 0 , - 1 , - 1 , - 1 ) , HASH8 ( 1 , 1 , 1 , 0 ) , HASH8 ( - 1 , - 1 , - 1 , 0 ) , HASH8 ( 1 , 1 , 0 , 1 ) , HASH8 ( - 1 , - 1 , 0 , - 1 ) , HASH8 ( 1 , 0 , 1 , 1 ) , HASH8 ( - 1 , 0 , - 1 , - 1 ) , HASH8 ( 0 , - 1 , 1 , 1 ) , HASH8 ( 0 , 1 , - 1 , - 1 ) , HASH8 ( - 1 , 1 , 1 , 0 ) , HASH8 ( 1 , - 1 , - 1 , 0 ) , HASH8 ( 1 , 1 , 0 , - 1 ) , HASH8 ( - 1 , - 1 , 0 , 1 ) , HASH8 ( 1 , 0 , - 1 , 1 ) , HASH8 ( - 1 , 0 , 1 , - 1 ) , HASH8 ( 0 , 1 , - 1 , 1 ) , HASH8 ( 0 , - 1 , 1 , - 1 ) , HASH8 ( 1 , - 1 , 1 , 0 ) , HASH8 ( - 1 , 1 , - 1 , 0 ) , HASH8 ( - 1 , 1 , 0 , 1 ) , HASH8 ( 1 , - 1 , 0 , - 1 ) , HASH8 ( 1 , 0 , 1 , - 1 ) , HASH8 ( - 1 , 0 , - 1 , 1 ) , HASH8 ( 0 , 1 , 1 , - 1 ) , HASH8 ( 0 , - 1 , - 1 , 1 ) , HASH8 ( 1 , 1 , - 1 , 0 ) , HASH8 ( - 1 , - 1 , 1 , 0 ) , HASH8 ( 1 , - 1 , 0 , 1 ) , HASH8 ( - 1 , 1 , 0 , - 1 ) , HASH8 ( - 1 , 0 , 1 , 1 ) , HASH8 ( 1 , 0 , - 1 , - 1 ) , HASH8 ( 1 , 1 , 1 , 1 ) , HASH8 ( - 1 , - 1 , - 1 , - 1 ) , HASH8 ( 1 , 1 , 1 , - 1 ) , HASH8 ( - 1 , - 1 , - 1 , 1 ) , HASH8 ( 1 , 1 , - 1 , 1 ) , HASH8 ( - 1 , - 1 , 1 , - 1 ) , HASH8 ( 1 , - 1 , 1 , 1 ) , HASH8 ( - 1 , 1 , - 1 , - 1 ) , HASH8 ( - 1 , 1 , 1 , 1 ) , HASH8 ( 1 , - 1 , - 1 , - 1 ) , HASH8 ( 1 , 1 , - 1 , - 1 ) , HASH8 ( - 1 , - 1 , 1 , 1 ) , HASH8 ( 1 , - 1 , - 1 , 1 ) , HASH8 ( - 1 , 1 , 1 , - 1 ) , HASH8 ( 1 , - 1 , 1 , - 1 ) , HASH8 ( - 1 , 1 , - 1 , 1 ) , }\n ;\n # define CHECK_BIDIR ( fx , fy , bx , by ) if ( ! map [ ( hashidx + HASH ( fx , fy , bx , by ) ) & 255 ] && ( fx <= 0 || motion_fx + fx <= xmax ) && ( fy <= 0 || motion_fy + fy <= ymax ) && ( bx <= 0 || motion_bx + bx <= xmax ) && ( by <= 0 || motion_by + by <= ymax ) && ( fx >= 0 || motion_fx + fx >= xmin ) && ( fy >= 0 || motion_fy + fy >= ymin ) && ( bx >= 0 || motion_bx + bx >= xmin ) && ( by >= 0 || motion_by + by >= ymin ) ) {\n int score ;\n map [ ( hashidx + HASH ( fx , fy , bx , by ) ) & 255 ] = 1 ;\n score = check_bidir_mv ( s , motion_fx + fx , motion_fy + fy , motion_bx + bx , motion_by + by , pred_fx , pred_fy , pred_bx , pred_by , 0 , 16 ) ;\n if ( score < fbmin ) {\n hashidx += HASH ( fx , fy , bx , by ) ;\n fbmin = score ;\n motion_fx += fx ;\n motion_fy += fy ;\n motion_bx += bx ;\n motion_by += by ;\n end = 0 ;\n }\n }\n # define CHECK_BIDIR2 ( a , b , c , d ) CHECK_BIDIR ( a , b , c , d ) CHECK_BIDIR ( - ( a ) , - ( b ) , - ( c ) , - ( d ) ) do {\n int i ;\n int borderdist = 0 ;\n end = 1 ;\n CHECK_BIDIR2 ( 0 , 0 , 0 , 1 ) CHECK_BIDIR2 ( 0 , 0 , 1 , 0 ) CHECK_BIDIR2 ( 0 , 1 , 0 , 0 ) CHECK_BIDIR2 ( 1 , 0 , 0 , 0 ) for ( i = 8 ;\n i < limit ;\n i ++ ) {\n int fx = motion_fx + vect [ i ] [ 0 ] ;\n int fy = motion_fy + vect [ i ] [ 1 ] ;\n int bx = motion_bx + vect [ i ] [ 2 ] ;\n int by = motion_by + vect [ i ] [ 3 ] ;\n if ( borderdist <= 0 ) {\n int a = ( xmax - FFMAX ( fx , bx ) ) | ( FFMIN ( fx , bx ) - xmin ) ;\n int b = ( ymax - FFMAX ( fy , by ) ) | ( FFMIN ( fy , by ) - ymin ) ;\n if ( ( a | b ) < 0 ) map [ ( hashidx + hash [ i ] ) & 255 ] = 1 ;\n }\n if ( ! map [ ( hashidx + hash [ i ] ) & 255 ] ) {\n int score ;\n map [ ( hashidx + hash [ i ] ) & 255 ] = 1 ;\n score = check_bidir_mv ( s , fx , fy , bx , by , pred_fx , pred_fy , pred_bx , pred_by , 0 , 16 ) ;\n if ( score < fbmin ) {\n hashidx += hash [ i ] ;\n fbmin = score ;\n motion_fx = fx ;\n motion_fy = fy ;\n motion_bx = bx ;\n motion_by = by ;\n end = 0 ;\n borderdist -- ;\n if ( borderdist <= 0 ) {\n int a = FFMIN ( xmax - FFMAX ( fx , bx ) , FFMIN ( fx , bx ) - xmin ) ;\n int b = FFMIN ( ymax - FFMAX ( fy , by ) , FFMIN ( fy , by ) - ymin ) ;\n borderdist = FFMIN ( a , b ) ;\n }\n }\n }\n }\n }\n while ( ! end ) ;\n }\n s -> b_bidir_forw_mv_table [ xy ] [ 0 ] = motion_fx ;\n s -> b_bidir_forw_mv_table [ xy ] [ 1 ] = motion_fy ;\n s -> b_bidir_back_mv_table [ xy ] [ 0 ] = motion_bx ;\n s -> b_bidir_back_mv_table [ xy ] [ 1 ] = motion_by ;\n return fbmin ;\n }"}
{"idx": 15019, "target": 0, "func": "static int dissect_h245_MiscellaneousIndication ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MiscellaneousIndication , MiscellaneousIndication_sequence ) ;\n return offset ;\n }"}
{"idx": 15020, "target": 0, "func": "static void option_cat_blob_fd ( const char * fd ) {\n unsigned long n = ulong_arg ( \"--cat-blob-fd\" , fd ) ;\n if ( n > ( unsigned long ) INT_MAX ) die ( \"--cat-blob-fd cannot exceed %d\" , INT_MAX ) ;\n cat_blob_fd = ( int ) n ;\n }"}
{"idx": 15021, "target": 0, "func": "static bool lxc_cgroupfs_attach ( const char * name , const char * lxcpath , pid_t pid ) {\n struct cgroup_meta_data * meta_data ;\n struct cgroup_process_info * container_info ;\n int ret ;\n meta_data = lxc_cgroup_load_meta ( ) ;\n if ( ! meta_data ) {\n ERROR ( \"could not move attached process %d to cgroup of container\" , pid ) ;\n return false ;\n }\n container_info = lxc_cgroup_get_container_info ( name , lxcpath , meta_data ) ;\n lxc_cgroup_put_meta ( meta_data ) ;\n if ( ! container_info ) {\n ERROR ( \"could not move attached process %d to cgroup of container\" , pid ) ;\n return false ;\n }\n ret = lxc_cgroupfs_enter ( container_info , pid , false ) ;\n lxc_cgroup_process_info_free ( container_info ) ;\n if ( ret < 0 ) {\n ERROR ( \"could not move attached process %d to cgroup of container\" , pid ) ;\n return false ;\n }\n return true ;\n }"}
{"idx": 15022, "target": 1, "func": "CharDriverState * qdev_init_chardev ( DeviceState * dev ) {\n static int next_serial ;\n static int next_virtconsole ;\n if ( strncmp ( dev -> info -> name , \"virtio\" , 6 ) == 0 ) {\n return virtcon_hds [ next_virtconsole ++ ] ;\n }\n else {\n return serial_hds [ next_serial ++ ] ;\n }\n }"}
{"idx": 15023, "target": 0, "func": "static guint32 parse_wbxml_tag ( proto_tree * tree , tvbuff_t * tvb , guint32 offset , guint32 str_tbl , guint8 * level , guint8 * codepage_stag , guint8 * codepage_attr ) {\n guint32 tvb_len = tvb_reported_length ( tvb ) ;\n guint32 off = offset , last_off ;\n guint32 len ;\n guint str_len ;\n guint32 ent ;\n guint32 idx ;\n guint8 peek ;\n guint32 tag_len ;\n guint8 tag_save_known = 0 ;\n guint8 tag_new_known = 0 ;\n const char * tag_save_literal ;\n const char * tag_new_literal ;\n char * tag_save_buf = NULL ;\n char * tag_new_buf = NULL ;\n guint8 parsing_tag_content = FALSE ;\n tag_save_literal = NULL ;\n DebugLog ( ( \"parse_wbxml_tag (level = %u, offset = %u)\\n\" , * level , offset ) ) ;\n last_off = off ;\n while ( off < tvb_len ) {\n peek = tvb_get_guint8 ( tvb , off ) ;\n DebugLog ( ( \"STAG: (top of while) level = %3u, peek = 0x%02X, off = %u, tvb_len = %u\\n\" , * level , peek , off , tvb_len ) ) ;\n if ( ( peek & 0x3F ) < 4 ) switch ( peek ) {\n case 0x00 : * codepage_stag = tvb_get_guint8 ( tvb , off + 1 ) ;\n proto_tree_add_text ( tree , tvb , off , 2 , \" | Tag | T -->%3d \" \"| SWITCH_PAGE (Tag code page) \" \"|\" , * codepage_stag ) ;\n off += 2 ;\n break ;\n case 0x01 : if ( tag_save_known ) {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| END (Known Tag 0x%02X) \" \"| %s</%s>\" , * level , * codepage_stag , tag_save_known , Indent ( * level ) , tag_save_literal ) ;\n }\n else {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| END (Literal Tag) \" \"| %s</%s>\" , * level , * codepage_stag , Indent ( * level ) , tag_save_literal ? tag_save_literal : \"\" ) ;\n }\n ( * level ) -- ;\n off ++ ;\n DebugLog ( ( \"STAG: level = %u, Return: len = %u\\n\" , * level , off - offset ) ) ;\n return ( off - offset ) ;\n case 0x02 : ent = tvb_get_guintvar ( tvb , off + 1 , & len ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Tag | T %3d \" \"| ENTITY \" \"| %s'&#%u;\n'\" , * level , * codepage_stag , Indent ( * level ) , ent ) ;\n off += 1 + len ;\n break ;\n case 0x03 : len = tvb_strsize ( tvb , off + 1 ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Tag | T %3d \" \"| STR_I (Inline string) \" \"| %s\\'%s\\'\" , * level , * codepage_stag , Indent ( * level ) , tvb_format_text ( tvb , off + 1 , len - 1 ) ) ;\n off += 1 + len ;\n break ;\n case 0x40 : case 0x41 : case 0x42 : len = tvb_strsize ( tvb , off + 1 ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Tag | T %3d \" \"| EXT_I_%1x (Extension Token) \" \"| %s(Inline string extension: \\'%s\\')\" , * level , * codepage_stag , peek & 0x0f , Indent ( * level ) , tvb_format_text ( tvb , off + 1 , len - 1 ) ) ;\n off += 1 + len ;\n break ;\n case 0x43 : proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| PI (XML Processing Instruction) \" \"| %s<?xml\" , * level , * codepage_stag , Indent ( * level ) ) ;\n len = parse_wbxml_attribute_list ( tree , tvb , off , str_tbl , * level , codepage_attr ) ;\n off += len ;\n if ( off >= tvb_len ) {\n DebugLog ( ( \"STAG: level = %u, ThrowException: len = %u (short frame)\\n\" , * level , off - offset ) ) ;\n THROW ( ReportedBoundsError ) ;\n }\n proto_tree_add_text ( tree , tvb , off - 1 , 1 , \" %3d | Tag | T %3d \" \"| END (PI) \" \"| %s?>\" , * level , * codepage_stag , Indent ( * level ) ) ;\n break ;\n case 0x80 : case 0x81 : case 0x82 : idx = tvb_get_guintvar ( tvb , off + 1 , & len ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Tag | T %3d \" \"| EXT_T_%1x (Extension Token) \" \"| %s(Extension Token, integer value: %u)\" , * level , * codepage_stag , peek & 0x0f , Indent ( * level ) , idx ) ;\n off += 1 + len ;\n break ;\n case 0x83 : idx = tvb_get_guintvar ( tvb , off + 1 , & len ) ;\n str_len = tvb_strsize ( tvb , str_tbl + idx ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len , \" %3d | Tag | T %3d \" \"| STR_T (Tableref string) \" \"| %s\\'%s\\'\" , * level , * codepage_stag , Indent ( * level ) , tvb_format_text ( tvb , str_tbl + idx , str_len - 1 ) ) ;\n off += 1 + len ;\n break ;\n case 0xC0 : case 0xC1 : case 0xC2 : proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| EXT_%1x (Extension Token) \" \"| %s(Single-byte extension)\" , * level , * codepage_stag , peek & 0x0f , Indent ( * level ) ) ;\n off ++ ;\n break ;\n case 0xC3 : if ( tvb_get_guint8 ( tvb , 0 ) ) {\n idx = tvb_get_guintvar ( tvb , off + 1 , & len ) ;\n proto_tree_add_text ( tree , tvb , off , 1 + len + idx , \" %3d | Tag | T %3d \" \"| OPAQUE (Opaque data) \" \"| %s(%d bytes of opaque data)\" , * level , * codepage_stag , Indent ( * level ) , idx ) ;\n off += 1 + len + idx ;\n }\n else {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| RESERVED_2 (Invalid Token!) \" \"| WBXML 1.0 parsing stops here.\" , * level , * codepage_stag ) ;\n off = tvb_len ;\n DebugLog ( ( \"STAG: level = %u, Return: len = %u\\n\" , * level , off - offset ) ) ;\n return ( off - offset ) ;\n }\n break ;\n }\n else {\n tag_len = 0 ;\n if ( ( peek & 0x3F ) == 4 ) {\n DebugLog ( ( \"STAG: LITERAL tag (peek = 0x%02X, off = %u)\" \" - TableRef follows!\\n\" , peek , off ) ) ;\n idx = tvb_get_guintvar ( tvb , off + 1 , & tag_len ) ;\n str_len = tvb_strsize ( tvb , str_tbl + idx ) ;\n tag_new_literal = ( const gchar * ) tvb_get_ptr ( tvb , str_tbl + idx , str_len ) ;\n tag_new_known = 0 ;\n }\n else {\n tag_new_known = peek & 0x3F ;\n tag_new_buf = wmem_strdup_printf ( wmem_packet_scope ( ) , \"Tag_0x%02X\" , tag_new_known ) ;\n tag_new_literal = tag_new_buf ;\n }\n if ( peek & 0x40 ) {\n if ( parsing_tag_content ) {\n DebugLog ( ( \"STAG: Tag in Tag - RECURSE! (off = %u)\\n\" , off ) ) ;\n ( * level ) ++ ;\n len = parse_wbxml_tag ( tree , tvb , off , str_tbl , level , codepage_stag , codepage_attr ) ;\n off += len ;\n }\n else {\n if ( ( peek & 0x3F ) == 4 ) {\n tag_save_literal = tag_new_literal ;\n tag_save_known = 0 ;\n }\n else {\n tag_save_known = tag_new_known ;\n tag_save_buf = wmem_strdup_printf ( wmem_packet_scope ( ) , \"Tag_0x%02X\" , tag_new_known ) ;\n tag_save_literal = tag_save_buf ;\n }\n if ( peek & 0x80 ) {\n if ( tag_new_known ) {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| Known Tag 0x%02X (AC) \" \"| %s<%s\" , * level , * codepage_stag , tag_new_known , Indent ( * level ) , tag_new_literal ) ;\n off ++ ;\n }\n else {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| LITERAL_AC (Literal tag) (AC) \" \"| %s<%s\" , * level , * codepage_stag , Indent ( * level ) , tag_new_literal ) ;\n off += 1 + tag_len ;\n }\n len = parse_wbxml_attribute_list ( tree , tvb , off , str_tbl , * level , codepage_attr ) ;\n off += len ;\n if ( off >= tvb_len ) {\n DebugLog ( ( \"STAG: level = %u, ThrowException: \" \"len = %u (short frame)\\n\" , * level , off - offset ) ) ;\n THROW ( ReportedBoundsError ) ;\n }\n proto_tree_add_text ( tree , tvb , off - 1 , 1 , \" %3d | Tag | T %3d \" \"| END (attribute list) \" \"| %s>\" , * level , * codepage_stag , Indent ( * level ) ) ;\n }\n else {\n if ( tag_new_known ) {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| Known Tag 0x%02X (.C) \" \"| %s<%s>\" , * level , * codepage_stag , tag_new_known , Indent ( * level ) , tag_new_literal ) ;\n off ++ ;\n }\n else {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| LITERAL_C (Literal Tag) (.C) \" \"| %s<%s>\" , * level , * codepage_stag , Indent ( * level ) , tag_new_literal ) ;\n off += 1 + tag_len ;\n }\n }\n parsing_tag_content = TRUE ;\n DebugLog ( ( \"Tag in Tag - No recursion this time! \" \"(off = %u)\\n\" , off ) ) ;\n }\n }\n else {\n DebugLog ( ( \"<Tag/> in Tag - No recursion! (off = %u)\\n\" , off ) ) ;\n ( * level ) ++ ;\n if ( peek & 0x80 ) {\n if ( tag_new_known ) {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| Known Tag 0x%02X (A.) \" \"| %s<%s\" , * level , * codepage_stag , tag_new_known , Indent ( * level ) , tag_new_literal ) ;\n off ++ ;\n len = parse_wbxml_attribute_list ( tree , tvb , off , str_tbl , * level , codepage_attr ) ;\n off += len ;\n if ( off >= tvb_len ) {\n DebugLog ( ( \"STAG: level = %u, ThrowException: \" \"len = %u (short frame)\\n\" , * level , off - offset ) ) ;\n THROW ( ReportedBoundsError ) ;\n }\n proto_tree_add_text ( tree , tvb , off - 1 , 1 , \" %3d | Tag | T %3d \" \"| END (Known Tag) \" \"| %s/>\" , * level , * codepage_stag , Indent ( * level ) ) ;\n }\n else {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| LITERAL_A (Literal Tag) (A.) \" \"| %s<%s\" , * level , * codepage_stag , Indent ( * level ) , tag_new_literal ) ;\n off += 1 + tag_len ;\n len = parse_wbxml_attribute_list ( tree , tvb , off , str_tbl , * level , codepage_attr ) ;\n off += len ;\n if ( off >= tvb_len ) {\n DebugLog ( ( \"STAG: level = %u, ThrowException: \" \"len = %u (short frame)\\n\" , * level , off - offset ) ) ;\n THROW ( ReportedBoundsError ) ;\n }\n proto_tree_add_text ( tree , tvb , off - 1 , 1 , \" %3d | Tag | T %3d \" \"| END (Literal Tag) \" \"| %s/>\" , * level , * codepage_stag , Indent ( * level ) ) ;\n }\n }\n else {\n if ( tag_new_known ) {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| Known Tag 0x%02x (..) \" \"| %s<%s />\" , * level , * codepage_stag , tag_new_known , Indent ( * level ) , tag_new_literal ) ;\n off ++ ;\n }\n else {\n proto_tree_add_text ( tree , tvb , off , 1 , \" %3d | Tag | T %3d \" \"| LITERAL (Literal Tag) (..) \" \"| %s<%s />\" , * level , * codepage_stag , Indent ( * level ) , tag_new_literal ) ;\n off += 1 + tag_len ;\n }\n }\n ( * level ) -- ;\n }\n }\n if ( off < last_off ) {\n THROW ( ReportedBoundsError ) ;\n }\n last_off = off ;\n }\n DebugLog ( ( \"STAG: level = %u, Return: len = %u (end of function body)\\n\" , * level , off - offset ) ) ;\n return ( off - offset ) ;\n }"}
{"idx": 15024, "target": 0, "func": "ssize_t pcnet_receive ( NetClientState * nc , const uint8_t * buf , size_t size_ ) {\n PCNetState * s = qemu_get_nic_opaque ( nc ) ;\n int is_padr = 0 , is_bcast = 0 , is_ladr = 0 ;\n uint8_t buf1 [ 60 ] ;\n int remaining ;\n int crc_err = 0 ;\n size_t size = size_ ;\n if ( CSR_DRX ( s ) || CSR_STOP ( s ) || CSR_SPND ( s ) || ! size || ( CSR_LOOP ( s ) && ! s -> looptest ) ) {\n return - 1 ;\n }\n # ifdef PCNET_DEBUG printf ( \"pcnet_receive size=%zu\\n\" , size ) ;\n # endif if ( size < MIN_BUF_SIZE ) {\n memcpy ( buf1 , buf , size ) ;\n memset ( buf1 + size , 0 , MIN_BUF_SIZE - size ) ;\n buf = buf1 ;\n size = MIN_BUF_SIZE ;\n }\n if ( CSR_PROM ( s ) || ( is_padr = padr_match ( s , buf , size ) ) || ( is_bcast = padr_bcast ( s , buf , size ) ) || ( is_ladr = ladr_match ( s , buf , size ) ) ) {\n pcnet_rdte_poll ( s ) ;\n if ( ! ( CSR_CRST ( s ) & 0x8000 ) && s -> rdra ) {\n struct pcnet_RMD rmd ;\n int rcvrc = CSR_RCVRC ( s ) - 1 , i ;\n hwaddr nrda ;\n for ( i = CSR_RCVRL ( s ) - 1 ;\n i > 0 ;\n i -- , rcvrc -- ) {\n if ( rcvrc <= 1 ) rcvrc = CSR_RCVRL ( s ) ;\n nrda = s -> rdra + ( CSR_RCVRL ( s ) - rcvrc ) * ( BCR_SWSTYLE ( s ) ? 16 : 8 ) ;\n RMDLOAD ( & rmd , nrda ) ;\n if ( GET_FIELD ( rmd . status , RMDS , OWN ) ) {\n # ifdef PCNET_DEBUG_RMD printf ( \"pcnet - scan buffer: RCVRC=%d PREV_RCVRC=%d\\n\" , rcvrc , CSR_RCVRC ( s ) ) ;\n # endif CSR_RCVRC ( s ) = rcvrc ;\n pcnet_rdte_poll ( s ) ;\n break ;\n }\n }\n }\n if ( ! ( CSR_CRST ( s ) & 0x8000 ) ) {\n # ifdef PCNET_DEBUG_RMD printf ( \"pcnet - no buffer: RCVRC=%d\\n\" , CSR_RCVRC ( s ) ) ;\n # endif s -> csr [ 0 ] |= 0x1000 ;\n CSR_MISSC ( s ) ++ ;\n }\n else {\n uint8_t * src = s -> buffer ;\n hwaddr crda = CSR_CRDA ( s ) ;\n struct pcnet_RMD rmd ;\n int pktcount = 0 ;\n if ( ! s -> looptest ) {\n if ( size > 4092 ) {\n # ifdef PCNET_DEBUG_RMD fprintf ( stderr , \"pcnet: truncates rx packet.\\n\" ) ;\n # endif size = 4092 ;\n }\n memcpy ( src , buf , size ) ;\n src [ size ] = 0 ;\n src [ size + 1 ] = 0 ;\n src [ size + 2 ] = 0 ;\n src [ size + 3 ] = 0 ;\n size += 4 ;\n }\n else if ( s -> looptest == PCNET_LOOPTEST_CRC || ! CSR_DXMTFCS ( s ) || size < MIN_BUF_SIZE + 4 ) {\n uint32_t fcs = ~ 0 ;\n uint8_t * p = src ;\n while ( p != & src [ size ] ) CRC ( fcs , * p ++ ) ;\n * ( uint32_t * ) p = htonl ( fcs ) ;\n size += 4 ;\n }\n else {\n uint32_t fcs = ~ 0 ;\n uint8_t * p = src ;\n while ( p != & src [ size ] ) CRC ( fcs , * p ++ ) ;\n crc_err = ( * ( uint32_t * ) p != htonl ( fcs ) ) ;\n }\n # ifdef PCNET_DEBUG_MATCH PRINT_PKTHDR ( buf ) ;\n # endif RMDLOAD ( & rmd , PHYSADDR ( s , crda ) ) ;\n SET_FIELD ( & rmd . status , RMDS , STP , 1 ) ;\n # define PCNET_RECV_STORE ( ) do {\n int count = MIN ( 4096 - GET_FIELD ( rmd . buf_length , RMDL , BCNT ) , remaining ) ;\n hwaddr rbadr = PHYSADDR ( s , rmd . rbadr ) ;\n s -> phys_mem_write ( s -> dma_opaque , rbadr , src , count , CSR_BSWP ( s ) ) ;\n src += count ;\n remaining -= count ;\n SET_FIELD ( & rmd . status , RMDS , OWN , 0 ) ;\n RMDSTORE ( & rmd , PHYSADDR ( s , crda ) ) ;\n pktcount ++ ;\n \\ }\n while ( 0 ) remaining = size ;\n PCNET_RECV_STORE ( ) ;\n if ( ( remaining > 0 ) && CSR_NRDA ( s ) ) {\n hwaddr nrda = CSR_NRDA ( s ) ;\n # ifdef PCNET_DEBUG_RMD PRINT_RMD ( & rmd ) ;\n # endif RMDLOAD ( & rmd , PHYSADDR ( s , nrda ) ) ;\n if ( GET_FIELD ( rmd . status , RMDS , OWN ) ) {\n crda = nrda ;\n PCNET_RECV_STORE ( ) ;\n # ifdef PCNET_DEBUG_RMD PRINT_RMD ( & rmd ) ;\n # endif if ( ( remaining > 0 ) && ( nrda = CSR_NNRD ( s ) ) ) {\n RMDLOAD ( & rmd , PHYSADDR ( s , nrda ) ) ;\n if ( GET_FIELD ( rmd . status , RMDS , OWN ) ) {\n crda = nrda ;\n PCNET_RECV_STORE ( ) ;\n }\n }\n }\n }\n # undef PCNET_RECV_STORE RMDLOAD ( & rmd , PHYSADDR ( s , crda ) ) ;\n if ( remaining == 0 ) {\n SET_FIELD ( & rmd . msg_length , RMDM , MCNT , size ) ;\n SET_FIELD ( & rmd . status , RMDS , ENP , 1 ) ;\n SET_FIELD ( & rmd . status , RMDS , PAM , ! CSR_PROM ( s ) && is_padr ) ;\n SET_FIELD ( & rmd . status , RMDS , LFAM , ! CSR_PROM ( s ) && is_ladr ) ;\n SET_FIELD ( & rmd . status , RMDS , BAM , ! CSR_PROM ( s ) && is_bcast ) ;\n if ( crc_err ) {\n SET_FIELD ( & rmd . status , RMDS , CRC , 1 ) ;\n SET_FIELD ( & rmd . status , RMDS , ERR , 1 ) ;\n }\n }\n else {\n SET_FIELD ( & rmd . status , RMDS , OFLO , 1 ) ;\n SET_FIELD ( & rmd . status , RMDS , BUFF , 1 ) ;\n SET_FIELD ( & rmd . status , RMDS , ERR , 1 ) ;\n }\n RMDSTORE ( & rmd , PHYSADDR ( s , crda ) ) ;\n s -> csr [ 0 ] |= 0x0400 ;\n # ifdef PCNET_DEBUG printf ( \"RCVRC=%d CRDA=0x%08x BLKS=%d\\n\" , CSR_RCVRC ( s ) , PHYSADDR ( s , CSR_CRDA ( s ) ) , pktcount ) ;\n # endif # ifdef PCNET_DEBUG_RMD PRINT_RMD ( & rmd ) ;\n # endif while ( pktcount -- ) {\n if ( CSR_RCVRC ( s ) <= 1 ) {\n CSR_RCVRC ( s ) = CSR_RCVRL ( s ) ;\n }\n else {\n CSR_RCVRC ( s ) -- ;\n }\n }\n pcnet_rdte_poll ( s ) ;\n }\n }\n pcnet_poll ( s ) ;\n pcnet_update_irq ( s ) ;\n return size_ ;\n }"}
{"idx": 15025, "target": 0, "func": "static unsigned int block_variance ( VP9_COMP * cpi , MACROBLOCK * x , BLOCK_SIZE bs ) {\n MACROBLOCKD * xd = & x -> e_mbd ;\n unsigned int var , sse ;\n int right_overflow = ( xd -> mb_to_right_edge < 0 ) ? ( ( - xd -> mb_to_right_edge ) >> 3 ) : 0 ;\n int bottom_overflow = ( xd -> mb_to_bottom_edge < 0 ) ? ( ( - xd -> mb_to_bottom_edge ) >> 3 ) : 0 ;\n if ( right_overflow || bottom_overflow ) {\n const int bw = 8 * num_8x8_blocks_wide_lookup [ bs ] - right_overflow ;\n const int bh = 8 * num_8x8_blocks_high_lookup [ bs ] - bottom_overflow ;\n int avg ;\n variance ( x -> plane [ 0 ] . src . buf , x -> plane [ 0 ] . src . stride , vp9_64_zeros , 0 , bw , bh , & sse , & avg ) ;\n var = sse - ( ( ( int64_t ) avg * avg ) / ( bw * bh ) ) ;\n return ( 256 * var ) / ( bw * bh ) ;\n }\n else {\n var = cpi -> fn_ptr [ bs ] . vf ( x -> plane [ 0 ] . src . buf , x -> plane [ 0 ] . src . stride , vp9_64_zeros , 0 , & sse ) ;\n return ( 256 * var ) >> num_pels_log2_lookup [ bs ] ;\n }\n }"}
{"idx": 15026, "target": 0, "func": "static void override_features_myanmar ( hb_ot_shape_planner_t * plan ) {\n plan -> map . add_feature ( HB_TAG ( 'l' , 'i' , 'g' , 'a' ) , 0 , F_GLOBAL ) ;\n }"}
{"idx": 15027, "target": 0, "func": "void http_hdr_version_set ( HTTPHdrImpl * hh , int32_t ver ) {\n hh -> m_version = ver ;\n }"}
{"idx": 15028, "target": 1, "func": "static int dissct_rsl_ipaccess_msg ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , int offset ) {\n guint8 msg_type ;\n guint32 local_addr = 0 ;\n guint16 local_port = 0 ;\n address src_addr ;\n msg_type = tvb_get_guint8 ( tvb , offset ) & 0x7f ;\n offset ++ ;\n while ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n guint8 tag ;\n unsigned int len , hlen ;\n const struct tlv_def * tdef ;\n proto_item * ti ;\n proto_tree * ie_tree ;\n tag = tvb_get_guint8 ( tvb , offset ) ;\n tdef = & rsl_att_tlvdef . def [ tag ] ;\n switch ( tdef -> type ) {\n case TLV_TYPE_FIXED : hlen = 1 ;\n len = tdef -> fixed_len ;\n break ;\n case TLV_TYPE_T : hlen = 1 ;\n len = 0 ;\n break ;\n case TLV_TYPE_TV : hlen = 1 ;\n len = 1 ;\n break ;\n case TLV_TYPE_TLV : hlen = 2 ;\n len = tvb_get_guint8 ( tvb , offset + 1 ) ;\n break ;\n case TLV_TYPE_TL16V : hlen = 3 ;\n len = tvb_get_guint8 ( tvb , offset + 1 ) << 8 | tvb_get_guint8 ( tvb , offset + 2 ) ;\n break ;\n case TLV_TYPE_UNKNOWN : default : DISSECTOR_ASSERT_NOT_REACHED ( ) ;\n break ;\n }\n ti = proto_tree_add_item ( tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n ie_tree = proto_item_add_subtree ( ti , ett_ie_local_port ) ;\n offset += hlen ;\n switch ( tag ) {\n case RSL_IE_CH_NO : dissect_rsl_ie_ch_no ( tvb , pinfo , ie_tree , offset , FALSE ) ;\n break ;\n case RSL_IE_FRAME_NO : dissect_rsl_ie_frame_no ( tvb , pinfo , ie_tree , offset , FALSE ) ;\n break ;\n case RSL_IE_MS_POW : dissect_rsl_ie_ms_pow ( tvb , pinfo , ie_tree , offset , FALSE ) ;\n break ;\n case RSL_IE_IPAC_REMOTE_IP : proto_tree_add_item ( ie_tree , hf_rsl_remote_ip , tvb , offset , len , ENC_BIG_ENDIAN ) ;\n break ;\n case RSL_IE_IPAC_REMOTE_PORT : proto_tree_add_item ( ie_tree , hf_rsl_remote_port , tvb , offset , len , ENC_BIG_ENDIAN ) ;\n break ;\n case RSL_IE_IPAC_LOCAL_IP : proto_tree_add_item ( ie_tree , hf_rsl_local_ip , tvb , offset , len , ENC_BIG_ENDIAN ) ;\n local_addr = tvb_get_ipv4 ( tvb , offset ) ;\n break ;\n case RSL_IE_IPAC_LOCAL_PORT : proto_tree_add_item ( ie_tree , hf_rsl_local_port , tvb , offset , len , ENC_BIG_ENDIAN ) ;\n local_port = tvb_get_ntohs ( tvb , offset ) ;\n break ;\n case RSL_IE_IPAC_SPEECH_MODE : proto_tree_add_item ( ie_tree , hf_rsl_speech_mode_s , tvb , offset , len , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_speech_mode_m , tvb , offset , len , ENC_BIG_ENDIAN ) ;\n break ;\n case RSL_IE_IPAC_RTP_PAYLOAD : case RSL_IE_IPAC_RTP_PAYLOAD2 : proto_tree_add_item ( ie_tree , hf_rsl_rtp_payload , tvb , offset , len , ENC_BIG_ENDIAN ) ;\n break ;\n case RSL_IE_IPAC_RTP_CSD_FMT : proto_tree_add_item ( ie_tree , hf_rsl_rtp_csd_fmt_d , tvb , offset , len , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_rtp_csd_fmt_ir , tvb , offset , len , ENC_BIG_ENDIAN ) ;\n break ;\n case RSL_IE_IPAC_CONN_ID : proto_tree_add_item ( ie_tree , hf_rsl_conn_id , tvb , offset , len , ENC_BIG_ENDIAN ) ;\n break ;\n case RSL_IE_IPAC_CONN_STAT : proto_tree_add_item ( ie_tree , hf_rsl_cstat_tx_pkts , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_cstat_tx_octs , tvb , offset + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_cstat_rx_pkts , tvb , offset + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_cstat_rx_octs , tvb , offset + 12 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_cstat_lost_pkts , tvb , offset + 16 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_cstat_ia_jitter , tvb , offset + 20 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_cstat_avg_tx_dly , tvb , offset + 24 , 4 , ENC_BIG_ENDIAN ) ;\n break ;\n }\n offset += len ;\n }\n switch ( msg_type ) {\n case RSL_MSG_TYPE_IPAC_CRCX_ACK : src_addr . type = AT_IPv4 ;\n src_addr . len = 4 ;\n src_addr . data = ( guint8 * ) & local_addr ;\n rtp_add_address ( pinfo , & src_addr , local_port , 0 , \"GSM A-bis/IP\" , pinfo -> fd -> num , 0 , NULL ) ;\n rtcp_add_address ( pinfo , & src_addr , local_port + 1 , 0 , \"GSM A-bis/IP\" , pinfo -> fd -> num ) ;\n break ;\n }\n return offset ;\n }"}
{"idx": 15029, "target": 0, "func": "static int dissect_h245_DepFECMode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_DepFECMode , DepFECMode_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 15030, "target": 1, "func": "extern int name ( int , locale_t ) __THROW __exctype_l ( isalnum_l ) ;\n __exctype_l ( isalpha_l ) ;\n __exctype_l ( iscntrl_l ) ;\n __exctype_l ( isdigit_l ) ;\n __exctype_l ( islower_l ) ;\n __exctype_l ( isgraph_l )"}
{"idx": 15031, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ExternalProtocolDialogBrowserTest , TestCancelWithChecked ) {\n ShowDialog ( ) ;\n SetChecked ( true ) ;\n EXPECT_TRUE ( dialog_ -> Cancel ( ) ) ;\n EXPECT_FALSE ( called_ ) ;\n EXPECT_FALSE ( accept_ ) ;\n EXPECT_FALSE ( remember_ ) ;\n histogram_tester_ . ExpectBucketCount ( ExternalProtocolHandler : : kHandleStateMetric , ExternalProtocolHandler : : DONT_LAUNCH , 1 ) ;\n }"}
{"idx": 15032, "target": 0, "func": "IN_PROC_BROWSER_TEST_P ( BrowserCloseManagerBrowserTest , MAYBE_TestUnloadMultipleSlowTabs ) {\n const int kTabCount = 5 ;\n const int kResposiveTabIndex = 2 ;\n for ( int i = 0 ;\n i < kTabCount ;\n i ++ ) {\n if ( i ) AddBlankTabAndShow ( browsers_ [ 0 ] ) ;\n ASSERT_NO_FATAL_FAILURE ( ui_test_utils : : NavigateToURL ( browsers_ [ 0 ] , embedded_test_server ( ) -> GetURL ( ( i == kResposiveTabIndex ) ? \"/beforeunload.html\" : \"/beforeunload_slow.html\" ) ) ) ;\n }\n PrepareForDialog ( browsers_ [ 0 ] -> tab_strip_model ( ) -> GetWebContentsAt ( kResposiveTabIndex ) ) ;\n RepeatedNotificationObserver cancel_observer ( chrome : : NOTIFICATION_BROWSER_CLOSE_CANCELLED , 1 ) ;\n chrome : : CloseAllBrowsersAndQuit ( ) ;\n ASSERT_NO_FATAL_FAILURE ( CancelClose ( ) ) ;\n cancel_observer . Wait ( ) ;\n EXPECT_FALSE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_EQ ( kTabCount , browsers_ [ 0 ] -> tab_strip_model ( ) -> count ( ) ) ;\n RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , 1 ) ;\n chrome : : CloseAllBrowsersAndQuit ( ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n close_observer . Wait ( ) ;\n EXPECT_TRUE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_TRUE ( BrowserList : : GetInstance ( ) -> empty ( ) ) ;\n }"}
{"idx": 15033, "target": 0, "func": "int ff_cavs_next_mb ( AVSContext * h ) {\n int i ;\n h -> flags |= A_AVAIL ;\n h -> cy += 16 ;\n h -> cu += 8 ;\n h -> cv += 8 ;\n for ( i = 0 ;\n i <= 20 ;\n i += 4 ) h -> mv [ i ] = h -> mv [ i + 2 ] ;\n h -> top_mv [ 0 ] [ h -> mbx * 2 + 0 ] = h -> mv [ MV_FWD_X2 ] ;\n h -> top_mv [ 0 ] [ h -> mbx * 2 + 1 ] = h -> mv [ MV_FWD_X3 ] ;\n h -> top_mv [ 1 ] [ h -> mbx * 2 + 0 ] = h -> mv [ MV_BWD_X2 ] ;\n h -> top_mv [ 1 ] [ h -> mbx * 2 + 1 ] = h -> mv [ MV_BWD_X3 ] ;\n h -> mbidx ++ ;\n h -> mbx ++ ;\n if ( h -> mbx == h -> mb_width ) {\n / ew mb line h -> flags = B_AVAIL | C_AVAIL ;\n h -> pred_mode_Y [ 3 ] = h -> pred_mode_Y [ 6 ] = NOT_AVAIL ;\n for ( i = 0 ;\n i <= 20 ;\n i += 4 ) h -> mv [ i ] = un_mv ;\n h -> mbx = 0 ;\n h -> mby ++ ;\n h -> cy = h -> cur . f -> data [ 0 ] + h -> mby * 16 * h -> l_stride ;\n h -> cu = h -> cur . f -> data [ 1 ] + h -> mby * 8 * h -> c_stride ;\n h -> cv = h -> cur . f -> data [ 2 ] + h -> mby * 8 * h -> c_stride ;\n if ( h -> mby == h -> mb_height ) {\n return 0 ;\n }\n }\n return 1 ;\n }"}
{"idx": 15034, "target": 0, "func": "TSReturnCode TSHttpTxnCachedReqGet ( TSHttpTxn txnp , TSMBuffer * bufp , TSMLoc * obj ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) obj ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n HTTPInfo * cached_obj = sm -> t_state . cache_info . object_read ;\n if ( ( ! cached_obj ) || ( ! cached_obj -> valid ( ) ) ) {\n return TS_ERROR ;\n }\n HTTPHdr * cached_hdr = sm -> t_state . cache_info . object_read -> request_get ( ) ;\n if ( ! cached_hdr -> valid ( ) ) {\n return TS_ERROR ;\n }\n HdrHeapSDKHandle * * handle = & ( sm -> t_state . cache_req_hdr_heap_handle ) ;\n if ( * handle == nullptr ) {\n * handle = ( HdrHeapSDKHandle * ) sm -> t_state . arena . alloc ( sizeof ( HdrHeapSDKHandle ) ) ;\n ( * handle ) -> m_heap = cached_hdr -> m_heap ;\n }\n * ( reinterpret_cast < HdrHeapSDKHandle * * > ( bufp ) ) = * handle ;\n * obj = reinterpret_cast < TSMLoc > ( cached_hdr -> m_http ) ;\n sdk_assert ( sdk_sanity_check_mbuffer ( * bufp ) == TS_SUCCESS ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 15035, "target": 0, "func": "static inline void e1000e_write_lgcy_rx_descr ( E1000ECore * core , uint8_t * desc , struct NetRxPkt * pkt , const E1000E_RSSInfo * rss_info , uint16_t length ) {\n uint32_t status_flags , rss , mrq ;\n uint16_t ip_id ;\n struct e1000_rx_desc * d = ( struct e1000_rx_desc * ) desc ;\n assert ( ! rss_info -> enabled ) ;\n d -> length = cpu_to_le16 ( length ) ;\n d -> csum = 0 ;\n e1000e_build_rx_metadata ( core , pkt , pkt != NULL , rss_info , & rss , & mrq , & status_flags , & ip_id , & d -> special ) ;\n d -> errors = ( uint8_t ) ( le32_to_cpu ( status_flags ) >> 24 ) ;\n d -> status = ( uint8_t ) le32_to_cpu ( status_flags ) ;\n d -> special = 0 ;\n }"}
{"idx": 15036, "target": 0, "func": "static void extend_to_full_distribution ( vp9_prob * probs , vp9_prob p ) {\n vpx_memcpy ( probs , vp9_pareto8_full [ p = 0 ? 0 : p - 1 ] , MODEL_NODES * sizeof ( vp9_prob ) ) ;\n }"}
{"idx": 15037, "target": 1, "func": "int dissect_h225_GenericData ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 816 \"./asn1/h225/h225.cnf\" void * priv_data = actx -> private_data ;\n gef_ctx_t * gefx ;\n gefx = gef_ctx_get ( actx -> private_data ) ;\n if ( ! gefx ) {\n gefx = gef_ctx_alloc ( NULL , \"GenericData\" ) ;\n actx -> private_data = gefx ;\n }\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_GenericData , GenericData_sequence ) ;\n # line 826 \"./asn1/h225/h225.cnf\" actx -> private_data = priv_data ;\n return offset ;\n }"}
{"idx": 15038, "target": 0, "func": "void ber_init2 ( BerElement * ber , struct berval * bv , int options ) {\n assert ( ber != NULL ) ;\n ( void ) memset ( ( char * ) ber , '\\0' , sizeof ( BerElement ) ) ;\n ber -> ber_valid = LBER_VALID_BERELEMENT ;\n ber -> ber_tag = LBER_DEFAULT ;\n ber -> ber_options = ( char ) options ;\n ber -> ber_debug = ber_int_debug ;\n if ( bv != NULL ) {\n ber -> ber_buf = bv -> bv_val ;\n ber -> ber_ptr = ber -> ber_buf ;\n ber -> ber_end = ber -> ber_buf + bv -> bv_len ;\n }\n assert ( LBER_VALID ( ber ) ) ;\n }"}
{"idx": 15039, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize ) ;\n DECL_PIOCTL ( PGetCacheSize ) ;\n DECL_PIOCTL ( PRemoveCallBack ) ;\n DECL_PIOCTL ( PNewCell ) ;\n DECL_PIOCTL ( PNewAlias ) ;\n DECL_PIOCTL ( PListCells ) ;\n DECL_PIOCTL ( PListAliases ) ;\n DECL_PIOCTL ( PRemoveMount ) ;\n DECL_PIOCTL ( PGetCellStatus ) ;\n DECL_PIOCTL ( PSetCellStatus ) ;\n DECL_PIOCTL ( PFlushVolumeData ) ;\n DECL_PIOCTL ( PFlushAllVolumeData ) ;\n DECL_PIOCTL ( PGetVnodeXStatus ) ;\n DECL_PIOCTL ( PGetVnodeXStatus2 ) ;\n DECL_PIOCTL ( PSetSysName ) ;\n DECL_PIOCTL ( PSetSPrefs ) ;\n DECL_PIOCTL ( PSetSPrefs33 ) ;\n DECL_PIOCTL ( PGetSPrefs ) ;\n DECL_PIOCTL ( PExportAfs ) ;\n DECL_PIOCTL ( PGag ) ;\n DECL_PIOCTL ( PTwiddleRx ) ;\n DECL_PIOCTL ( PGetInitParams ) ;\n DECL_PIOCTL ( PGetRxkcrypt )"}
{"idx": 15040, "target": 0, "func": "int ff_msmpeg4_decode_picture_header ( MpegEncContext * s ) {\n int code ;\n if ( s -> msmpeg4_version == 1 ) {\n int start_code = get_bits_long ( & s -> gb , 32 ) ;\n if ( start_code != 0x00000100 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"invalid startcode\\n\" ) ;\n return - 1 ;\n }\n skip_bits ( & s -> gb , 5 ) ;\n }\n s -> pict_type = get_bits ( & s -> gb , 2 ) + 1 ;\n if ( s -> pict_type != AV_PICTURE_TYPE_I && s -> pict_type != AV_PICTURE_TYPE_P ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"invalid picture type\\n\" ) ;\n return - 1 ;\n }\n # if 0 {\n static int had_i = 0 ;\n if ( s -> pict_type == AV_PICTURE_TYPE_I ) had_i = 1 ;\n if ( ! had_i ) return - 1 ;\n }\n # endif s -> chroma_qscale = s -> qscale = get_bits ( & s -> gb , 5 ) ;\n if ( s -> qscale == 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"invalid qscale\\n\" ) ;\n return - 1 ;\n }\n if ( s -> pict_type == AV_PICTURE_TYPE_I ) {\n code = get_bits ( & s -> gb , 5 ) ;\n if ( s -> msmpeg4_version == 1 ) {\n if ( code == 0 || code > s -> mb_height ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"invalid slice height %d\\n\" , code ) ;\n return - 1 ;\n }\n s -> slice_height = code ;\n }\n else {\n if ( code < 0x17 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"error, slice code was %X\\n\" , code ) ;\n return - 1 ;\n }\n s -> slice_height = s -> mb_height / ( code - 0x16 ) ;\n }\n switch ( s -> msmpeg4_version ) {\n case 1 : case 2 : s -> rl_chroma_table_index = 2 ;\n s -> rl_table_index = 2 ;\n s -> dc_table_index = 0 ;\n / ot used break ;\n case 3 : s -> rl_chroma_table_index = decode012 ( & s -> gb ) ;\n s -> rl_table_index = decode012 ( & s -> gb ) ;\n s -> dc_table_index = get_bits1 ( & s -> gb ) ;\n break ;\n case 4 : ff_msmpeg4_decode_ext_header ( s , ( 2 + 5 + 5 + 17 + 7 ) / 8 ) ;\n if ( s -> bit_rate > MBAC_BITRATE ) s -> per_mb_rl_table = get_bits1 ( & s -> gb ) ;\n else s -> per_mb_rl_table = 0 ;\n if ( ! s -> per_mb_rl_table ) {\n s -> rl_chroma_table_index = decode012 ( & s -> gb ) ;\n s -> rl_table_index = decode012 ( & s -> gb ) ;\n }\n s -> dc_table_index = get_bits1 ( & s -> gb ) ;\n s -> inter_intra_pred = 0 ;\n break ;\n }\n s -> no_rounding = 1 ;\n if ( s -> avctx -> debug & FF_DEBUG_PICT_INFO ) av_log ( s -> avctx , AV_LOG_DEBUG , \"qscale:%d rlc:%d rl:%d dc:%d mbrl:%d slice:%d \\n\" , s -> qscale , s -> rl_chroma_table_index , s -> rl_table_index , s -> dc_table_index , s -> per_mb_rl_table , s -> slice_height ) ;\n }\n else {\n switch ( s -> msmpeg4_version ) {\n case 1 : case 2 : if ( s -> msmpeg4_version == 1 ) s -> use_skip_mb_code = 1 ;\n else s -> use_skip_mb_code = get_bits1 ( & s -> gb ) ;\n s -> rl_table_index = 2 ;\n s -> rl_chroma_table_index = s -> rl_table_index ;\n s -> dc_table_index = 0 ;\n / ot used s -> mv_table_index = 0 ;\n break ;\n case 3 : s -> use_skip_mb_code = get_bits1 ( & s -> gb ) ;\n s -> rl_table_index = decode012 ( & s -> gb ) ;\n s -> rl_chroma_table_index = s -> rl_table_index ;\n s -> dc_table_index = get_bits1 ( & s -> gb ) ;\n s -> mv_table_index = get_bits1 ( & s -> gb ) ;\n break ;\n case 4 : s -> use_skip_mb_code = get_bits1 ( & s -> gb ) ;\n if ( s -> bit_rate > MBAC_BITRATE ) s -> per_mb_rl_table = get_bits1 ( & s -> gb ) ;\n else s -> per_mb_rl_table = 0 ;\n if ( ! s -> per_mb_rl_table ) {\n s -> rl_table_index = decode012 ( & s -> gb ) ;\n s -> rl_chroma_table_index = s -> rl_table_index ;\n }\n s -> dc_table_index = get_bits1 ( & s -> gb ) ;\n s -> mv_table_index = get_bits1 ( & s -> gb ) ;\n s -> inter_intra_pred = ( s -> width * s -> height < 320 * 240 && s -> bit_rate <= II_BITRATE ) ;\n break ;\n }\n if ( s -> avctx -> debug & FF_DEBUG_PICT_INFO ) av_log ( s -> avctx , AV_LOG_DEBUG , \"skip:%d rl:%d rlc:%d dc:%d mv:%d mbrl:%d qp:%d \\n\" , s -> use_skip_mb_code , s -> rl_table_index , s -> rl_chroma_table_index , s -> dc_table_index , s -> mv_table_index , s -> per_mb_rl_table , s -> qscale ) ;\n if ( s -> flipflop_rounding ) {\n s -> no_rounding ^= 1 ;\n }\n else {\n s -> no_rounding = 0 ;\n }\n }\n av_dlog ( s -> avctx , \"%d %d %d %d %d\\n\" , s -> pict_type , s -> bit_rate , s -> inter_intra_pred , s -> width , s -> height ) ;\n s -> esc3_level_length = 0 ;\n s -> esc3_run_length = 0 ;\n return 0 ;\n }"}
{"idx": 15041, "target": 0, "func": "void cpu_disable_ticks ( void ) {\n if ( timers_state . cpu_ticks_enabled ) {\n timers_state . cpu_ticks_offset = cpu_get_ticks ( ) ;\n timers_state . cpu_clock_offset = cpu_get_clock ( ) ;\n timers_state . cpu_ticks_enabled = 0 ;\n }\n }"}
{"idx": 15042, "target": 1, "func": "static UChar32 _UTF16BEGetNextUChar ( UConverterToUnicodeArgs * pArgs , UErrorCode * err ) {\n const uint8_t * s , * sourceLimit ;\n UChar32 c ;\n if ( pArgs -> converter -> mode < 8 ) {\n return UCNV_GET_NEXT_UCHAR_USE_TO_U ;\n }\n s = ( const uint8_t * ) pArgs -> source ;\n sourceLimit = ( const uint8_t * ) pArgs -> sourceLimit ;\n if ( s >= sourceLimit ) {\n * err = U_INDEX_OUTOFBOUNDS_ERROR ;\n return 0xffff ;\n }\n if ( s + 2 > sourceLimit ) {\n pArgs -> converter -> toUBytes [ 0 ] = * s ++ ;\n pArgs -> converter -> toULength = 1 ;\n pArgs -> source = ( const char * ) s ;\n * err = U_TRUNCATED_CHAR_FOUND ;\n return 0xffff ;\n }\n c = ( ( UChar32 ) * s << 8 ) | s [ 1 ] ;\n s += 2 ;\n if ( U_IS_SURROGATE ( c ) ) {\n if ( U16_IS_SURROGATE_LEAD ( c ) ) {\n if ( s + 2 <= sourceLimit ) {\n UChar trail ;\n trail = ( ( UChar ) * s << 8 ) | s [ 1 ] ;\n if ( U16_IS_TRAIL ( trail ) ) {\n c = U16_GET_SUPPLEMENTARY ( c , trail ) ;\n s += 2 ;\n }\n else {\n c = - 2 ;\n }\n }\n else {\n uint8_t * bytes = pArgs -> converter -> toUBytes ;\n s -= 2 ;\n pArgs -> converter -> toULength = ( int8_t ) ( sourceLimit - s ) ;\n do {\n * bytes ++ = * s ++ ;\n }\n while ( s < sourceLimit ) ;\n c = 0xffff ;\n * err = U_TRUNCATED_CHAR_FOUND ;\n }\n }\n else {\n c = - 2 ;\n }\n if ( c < 0 ) {\n uint8_t * bytes = pArgs -> converter -> toUBytes ;\n pArgs -> converter -> toULength = 2 ;\n * bytes = * ( s - 2 ) ;\n bytes [ 1 ] = * ( s - 1 ) ;\n c = 0xffff ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n pArgs -> source = ( const char * ) s ;\n return c ;\n }"}
{"idx": 15043, "target": 0, "func": "static guint32 get_uint32 ( tvbuff_t * tvb , gint32 offset , gint encoding ) {\n return ( ENC_BIG_ENDIAN == encoding ) ? tvb_get_ntohl ( tvb , offset ) : tvb_get_letohl ( tvb , offset ) ;\n }"}
{"idx": 15044, "target": 0, "func": "static int show_default_keycache ( THD * thd , SHOW_VAR * var , char * buff ) {\n struct st_data {\n KEY_CACHE_STATISTICS stats ;\n SHOW_VAR var [ 8 ] ;\n }\n * data ;\n SHOW_VAR * v ;\n data = ( st_data * ) buff ;\n v = data -> var ;\n var -> type = SHOW_ARRAY ;\n var -> value = ( char * ) v ;\n get_key_cache_statistics ( dflt_key_cache , 0 , & data -> stats ) ;\n # define set_one_keycache_var ( X , Y ) v -> name = X ;\n v -> type = SHOW_LONGLONG ;\n v -> value = ( char * ) & data -> stats . Y ;\n v ++ ;\n set_one_keycache_var ( \"blocks_not_flushed\" , blocks_changed ) ;\n set_one_keycache_var ( \"blocks_unused\" , blocks_unused ) ;\n set_one_keycache_var ( \"blocks_used\" , blocks_used ) ;\n set_one_keycache_var ( \"blocks_warm\" , blocks_warm ) ;\n set_one_keycache_var ( \"read_requests\" , read_requests ) ;\n set_one_keycache_var ( \"reads\" , reads ) ;\n set_one_keycache_var ( \"write_requests\" , write_requests ) ;\n set_one_keycache_var ( \"writes\" , writes ) ;\n v -> name = 0 ;\n DBUG_ASSERT ( ( char * ) ( v + 1 ) <= buff + SHOW_VAR_FUNC_BUFF_SIZE ) ;\n # undef set_one_keycache_var return 0 ;\n }"}
{"idx": 15045, "target": 0, "func": "int i2d_DSAPrivateKey_fp ( FILE * fp , DSA * dsa ) {\n return ASN1_i2d_fp_of_const ( DSA , i2d_DSAPrivateKey , fp , dsa ) ;\n }"}
{"idx": 15046, "target": 0, "func": "void report_or_die ( const char * fmt , ... ) {\n va_list args ;\n DBUG_ENTER ( \"report_or_die\" ) ;\n char buff [ DIE_BUFF_SIZE ] ;\n va_start ( args , fmt ) ;\n make_error_message ( buff , sizeof ( buff ) , fmt , args ) ;\n va_end ( args ) ;\n if ( opt_continue_on_error ) {\n replace_dynstr_append ( & ds_res , buff ) ;\n error_count ++ ;\n DBUG_VOID_RETURN ;\n }\n really_die ( buff ) ;\n }"}
{"idx": 15047, "target": 1, "func": "int i2d_ ## name ( type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;\n int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DIRECTORYSTRING ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DISPLAYTEXT ) DECLARE_ASN1_FUNCTIONS ( ASN1_PRINTABLESTRING )"}
{"idx": 15048, "target": 0, "func": "static int dissect_s_validator_app_data_path ( packet_info * pinfo , proto_tree * tree , proto_item * item _U_ , tvbuff_t * tvb , int offset , int total_len ) {\n proto_item * pi ;\n proto_tree * epath_tree = proto_tree_add_subtree ( tree , NULL , 0 , 0 , ett_path , & pi , \"Application Data Path: \" ) ;\n dissect_epath ( tvb , pinfo , epath_tree , pi , offset , total_len , FALSE , FALSE , NULL , NULL , NO_DISPLAY , NULL , FALSE ) ;\n return total_len ;\n }"}
{"idx": 15049, "target": 0, "func": "static int dissect_pvfs2_geteattr_response ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo _U_ ) {\n offset += 4 ;\n offset = dissect_ds_keyval_array ( tvb , tree , offset ) ;\n return offset ;\n }"}
{"idx": 15050, "target": 0, "func": "static apr_status_t modsecurity_process_phase_logging ( modsec_rec * msr ) {\n apr_time_t time_before , time_after ;\n if ( msr -> txcfg -> debuglog_level >= 4 ) {\n msr_log ( msr , 4 , \"Starting phase LOGGING.\" ) ;\n }\n time_before = apr_time_now ( ) ;\n if ( msr -> txcfg -> ruleset != NULL ) {\n msre_ruleset_process_phase ( msr -> txcfg -> ruleset , msr ) ;\n }\n modsecurity_persist_data ( msr ) ;\n time_after = apr_time_now ( ) ;\n msr -> time_phase5 = time_after - time_before ;\n if ( msr -> is_relevant == 0 ) {\n msr -> is_relevant += is_response_status_relevant ( msr , msr -> r -> status ) ;\n if ( msr -> r_early -> status != msr -> r -> status ) {\n msr -> is_relevant += is_response_status_relevant ( msr , msr -> r_early -> status ) ;\n }\n }\n if ( ( msr -> txcfg -> upload_keep_files == KEEP_FILES_ON ) || ( ( msr -> txcfg -> upload_keep_files == KEEP_FILES_RELEVANT_ONLY ) && ( msr -> is_relevant ) ) ) {\n msr -> upload_remove_files = 0 ;\n }\n else {\n msr -> upload_remove_files = 1 ;\n }\n switch ( msr -> txcfg -> auditlog_flag ) {\n case AUDITLOG_OFF : if ( msr -> txcfg -> debuglog_level >= 4 ) {\n msr_log ( msr , 4 , \"Audit log: Not configured to run for this request.\" ) ;\n }\n return DECLINED ;\n break ;\n case AUDITLOG_RELEVANT : if ( msr -> is_relevant == 0 ) {\n if ( msr -> txcfg -> debuglog_level >= 4 ) {\n msr_log ( msr , 4 , \"Audit log: Ignoring a non-relevant request.\" ) ;\n }\n return DECLINED ;\n }\n break ;\n case AUDITLOG_ON : break ;\n default : msr_log ( msr , 1 , \"Internal error: Could not determine if auditing is needed, so forcing auditing.\" ) ;\n break ;\n }\n if ( msr -> txcfg -> debuglog_level >= 4 ) {\n msr_log ( msr , 4 , \"Audit log: Logging this transaction.\" ) ;\n }\n sec_audit_logger ( msr ) ;\n msr -> time_logging = apr_time_now ( ) - time_after ;\n return 0 ;\n }"}
{"idx": 15051, "target": 0, "func": "static int evhttp_parse_response_line ( struct evhttp_request * req , char * line ) {\n char * protocol ;\n char * number ;\n const char * readable = \"\" ;\n protocol = strsep ( & line , \" \" ) ;\n if ( line == NULL ) return ( - 1 ) ;\n number = strsep ( & line , \" \" ) ;\n if ( line != NULL ) readable = line ;\n if ( strcmp ( protocol , \"HTTP/1.0\" ) == 0 ) {\n req -> major = 1 ;\n req -> minor = 0 ;\n }\n else if ( strcmp ( protocol , \"HTTP/1.1\" ) == 0 ) {\n req -> major = 1 ;\n req -> minor = 1 ;\n }\n else {\n event_debug ( ( \"%s: bad protocol \\\"%s\\\"\" , __func__ , protocol ) ) ;\n return ( - 1 ) ;\n }\n req -> response_code = atoi ( number ) ;\n if ( ! evhttp_valid_response_code ( req -> response_code ) ) {\n event_debug ( ( \"%s: bad response code \\\"%s\\\"\" , __func__ , number ) ) ;\n return ( - 1 ) ;\n }\n if ( ( req -> response_code_line = strdup ( readable ) ) == NULL ) event_err ( 1 , \"%s: strdup\" , __func__ ) ;\n return ( 0 ) ;\n }"}
{"idx": 15052, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n int field , ret ;\n AVFrame * pic = avctx -> coded_frame ;\n const uint8_t * buf = avpkt -> data ;\n const uint8_t * buf_end = buf + avpkt -> size ;\n if ( pic -> data [ 0 ] ) avctx -> release_buffer ( avctx , pic ) ;\n if ( avpkt -> size < avctx -> width * 2 * avctx -> height + 4 + 2 * 8 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Packet is too small.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( bytestream_get_le32 ( & buf ) != MKTAG ( 'F' , 'R' , 'W' , '1' ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"incorrect marker\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n pic -> reference = 0 ;\n if ( ( ret = ff_get_buffer ( avctx , pic ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n pic -> pict_type = AV_PICTURE_TYPE_I ;\n pic -> key_frame = 1 ;\n pic -> interlaced_frame = 1 ;\n pic -> top_field_first = 1 ;\n for ( field = 0 ;\n field < 2 ;\n field ++ ) {\n int i ;\n int field_h = ( avctx -> height + ! field ) >> 1 ;\n int field_size , min_field_size = avctx -> width * 2 * field_h ;\n uint8_t * dst = pic -> data [ 0 ] ;\n if ( buf_end - buf < 8 ) return AVERROR_INVALIDDATA ;\n buf += 4 ;\n field_size = bytestream_get_le32 ( & buf ) ;\n if ( field_size < min_field_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"Field size %i is too small (required %i)\\n\" , field_size , min_field_size ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( buf_end - buf < field_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"Packet is too small, need %i, have %i\\n\" , field_size , ( int ) ( buf_end - buf ) ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( field ) dst += pic -> linesize [ 0 ] ;\n for ( i = 0 ;\n i < field_h ;\n i ++ ) {\n memcpy ( dst , buf , avctx -> width * 2 ) ;\n buf += avctx -> width * 2 ;\n dst += pic -> linesize [ 0 ] << 1 ;\n }\n buf += field_size - min_field_size ;\n }\n * got_frame = 1 ;\n * ( AVFrame * ) data = * pic ;\n return avpkt -> size ;\n }"}
{"idx": 15053, "target": 0, "func": "struct evhttp_connection * evhttp_connection_new ( const char * address , unsigned short port ) {\n struct evhttp_connection * evcon = NULL ;\n event_debug ( ( \"Attempting connection to %s:%d\\n\" , address , port ) ) ;\n if ( ( evcon = calloc ( 1 , sizeof ( struct evhttp_connection ) ) ) == NULL ) {\n event_warn ( \"%s: calloc failed\" , __func__ ) ;\n goto error ;\n }\n evcon -> fd = - 1 ;\n evcon -> port = port ;\n evcon -> timeout = - 1 ;\n evcon -> retry_cnt = evcon -> retry_max = 0 ;\n if ( ( evcon -> address = strdup ( address ) ) == NULL ) {\n event_warn ( \"%s: strdup failed\" , __func__ ) ;\n goto error ;\n }\n if ( ( evcon -> input_buffer = evbuffer_new ( ) ) == NULL ) {\n event_warn ( \"%s: evbuffer_new failed\" , __func__ ) ;\n goto error ;\n }\n if ( ( evcon -> output_buffer = evbuffer_new ( ) ) == NULL ) {\n event_warn ( \"%s: evbuffer_new failed\" , __func__ ) ;\n goto error ;\n }\n evcon -> state = EVCON_DISCONNECTED ;\n TAILQ_INIT ( & evcon -> requests ) ;\n return ( evcon ) ;\n error : if ( evcon != NULL ) evhttp_connection_free ( evcon ) ;\n return ( NULL ) ;\n }"}
{"idx": 15054, "target": 0, "func": "static void pdf_unset_pattern ( fz_context * ctx , pdf_run_processor * pr , int what ) {\n pdf_gstate * gs = pr -> gstate + pr -> gtop ;\n pdf_material * mat ;\n mat = what == PDF_FILL ? & gs -> fill : & gs -> stroke ;\n if ( mat -> kind == PDF_MAT_PATTERN ) {\n pdf_drop_pattern ( ctx , mat -> pattern ) ;\n mat -> pattern = NULL ;\n mat -> kind = PDF_MAT_COLOR ;\n }\n }"}
{"idx": 15055, "target": 0, "func": "static inline void U_EXPORT2 utimer_getTime ( UTimer * timer ) {\n uprv_initFrequency ( timer ) ;\n uprv_start ( timer ) ;\n }"}
{"idx": 15056, "target": 0, "func": "static void decode_422_bitstream ( HYuvContext * s , int count ) {\n int i ;\n count /= 2 ;\n if ( count >= ( get_bits_left ( & s -> gb ) ) / ( 31 * 4 ) ) {\n for ( i = 0 ;\n i < count && get_bits_left ( & s -> gb ) > 0 ;\n i ++ ) {\n READ_2PIX ( s -> temp [ 0 ] [ 2 * i ] , s -> temp [ 1 ] [ i ] , 1 ) ;\n READ_2PIX ( s -> temp [ 0 ] [ 2 * i + 1 ] , s -> temp [ 2 ] [ i ] , 2 ) ;\n }\n }\n else {\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n READ_2PIX ( s -> temp [ 0 ] [ 2 * i ] , s -> temp [ 1 ] [ i ] , 1 ) ;\n READ_2PIX ( s -> temp [ 0 ] [ 2 * i + 1 ] , s -> temp [ 2 ] [ i ] , 2 ) ;\n }\n }\n }"}
{"idx": 15057, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( MediaStreamPermissionTest , TestDenyingUserMediaIncognito ) {\n content : : WebContents * tab_contents = LoadTestPageInIncognitoTab ( ) ;\n GetUserMediaAndDeny ( tab_contents ) ;\n }"}
{"idx": 15058, "target": 0, "func": "static void release_tree_entry ( struct tree_entry * e ) {\n if ( e -> tree ) release_tree_content_recursive ( e -> tree ) ;\n * ( ( void * * ) e ) = avail_tree_entry ;\n avail_tree_entry = e ;\n }"}
{"idx": 15059, "target": 0, "func": "static void evhttp_connection_stop_detectclose ( struct evhttp_connection * evcon ) {\n evcon -> flags &= ~ EVHTTP_CON_CLOSEDETECT ;\n event_del ( & evcon -> close_ev ) ;\n }"}
{"idx": 15060, "target": 0, "func": "SPL_METHOD ( SplFileInfo , func_name ) \\ {\n \\ spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n \\ zend_error_handling error_handling ;\n \\ if ( zend_parse_parameters_none ( ) == FAILURE ) {\n \\ return ;\n \\ }\n \\ \\ zend_replace_error_handling ( EH_THROW , spl_ce_RuntimeException , & error_handling TSRMLS_CC ) ;\n \\ spl_filesystem_object_get_file_name ( intern TSRMLS_CC ) ;\n \\ php_stat ( intern -> file_name , intern -> file_name_len , func_num , return_value TSRMLS_CC ) ;\n \\ zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n \\ }\n FileInfoFunction ( getPerms , FS_PERMS ) FileInfoFunction ( getInode , FS_INODE ) FileInfoFunction ( getSize , FS_SIZE ) FileInfoFunction ( getOwner , FS_OWNER ) FileInfoFunction ( getGroup , FS_GROUP ) FileInfoFunction ( getATime , FS_ATIME ) FileInfoFunction ( getMTime , FS_MTIME ) FileInfoFunction ( getCTime , FS_CTIME )"}
{"idx": 15061, "target": 0, "func": "static void print_xml_cdata ( FILE * xml_file , const char * str , ulong len ) {\n const char * end ;\n fputs ( \"<![CDATA[\\n\" , xml_file ) ;\n for ( end = str + len ;\n str != end ;\n str ++ ) {\n switch ( * str ) {\n case ']' : if ( ( * ( str + 1 ) == ']' ) && ( * ( str + 2 ) == '>' ) ) {\n fputs ( \"]]]]><![CDATA[>\" , xml_file ) ;\n str += 2 ;\n continue ;\n }\n default : fputc ( * str , xml_file ) ;\n break ;\n }\n }\n fputs ( \"\\n]]>\\n\" , xml_file ) ;\n check_io ( xml_file ) ;\n }"}
{"idx": 15062, "target": 0, "func": "u_int fn_printztn ( netdissect_options * ndo , register const u_char * s , register u_int n , register const u_char * ep ) {\n register u_int bytes ;\n register u_char c ;\n bytes = 0 ;\n for ( ;\n ;\n ) {\n if ( n == 0 || ( ep != NULL && s >= ep ) ) {\n bytes = 0 ;\n break ;\n }\n c = * s ++ ;\n bytes ++ ;\n n -- ;\n if ( c == '\\0' ) {\n break ;\n }\n if ( ! ND_ISASCII ( c ) ) {\n c = ND_TOASCII ( c ) ;\n ND_PRINT ( ( ndo , \"M-\" ) ) ;\n }\n if ( ! ND_ISPRINT ( c ) ) {\n c ^= 0x40 ;\n ND_PRINT ( ( ndo , \"^\" ) ) ;\n }\n ND_PRINT ( ( ndo , \"%c\" , c ) ) ;\n }\n return ( bytes ) ;\n }"}
{"idx": 15063, "target": 0, "func": "static gboolean is_readable_request ( guint8 opcode ) {\n return ( opcode == ATT_OPCODE_READ_REQUEST || opcode == ATT_OPCODE_READ_BLOB_REQUEST || opcode == ATT_OPCODE_READ_BY_TYPE_REQUEST || opcode == ATT_OPCODE_READ_MULTIPLE_REQUEST ) ;\n }"}
{"idx": 15064, "target": 0, "func": "unsigned long # define BN_LONG long # define BN_BITS 128 # define BN_BYTES 8 # define BN_BITS2 64 # define BN_BITS4 32 # define BN_MASK ( 0xffffffffffffffffffffffffffffffffLL ) # define BN_MASK2 ( 0xffffffffffffffffL ) # define BN_MASK2l ( 0xffffffffL ) # define BN_MASK2h ( 0xffffffff00000000L ) # define BN_MASK2h1 ( 0xffffffff80000000L ) # define BN_TBIT ( 0x8000000000000000L ) # define BN_DEC_CONV ( 10000000000000000000UL ) # define BN_DEC_FMT1 \"%lu\" # define BN_DEC_FMT2 \"%019lu\" # define BN_DEC_NUM 19 # define BN_HEX_FMT1 \"%lX\" # define BN_HEX_FMT2 \"%016lX\" # endif # ifdef SIXTY_FOUR_BIT # undef BN_LLONG # undef BN_ULLONG # define BN_ULONG unsigned long long # define BN_LONG long long # define BN_BITS 128 # define BN_BYTES 8 # define BN_BITS2 64 # define BN_BITS4 32 # define BN_MASK2 ( 0xffffffffffffffffLL ) # define BN_MASK2l ( 0xffffffffL ) # define BN_MASK2h ( 0xffffffff00000000LL ) # define BN_MASK2h1 ( 0xffffffff80000000LL ) # define BN_TBIT ( 0x8000000000000000LL ) # define BN_DEC_CONV ( 10000000000000000000ULL ) # define BN_DEC_FMT1 \"%llu\" # define BN_DEC_FMT2 \"%019llu\" # define BN_DEC_NUM 19 # define BN_HEX_FMT1 \"%llX\" # define BN_HEX_FMT2 \"%016llX\" # endif # ifdef THIRTY_TWO_BIT # ifdef BN_LLONG # if defined ( _WIN32 ) && ! defined ( __GNUC__ ) # define BN_ULLONG unsigned __int64 # define BN_MASK ( 0xffffffffffffffffI64 ) # else # define BN_ULLONG unsigned long long # define BN_MASK ( 0xffffffffffffffffLL ) # endif # endif # define BN_ULONG unsigned int # define BN_LONG int # define BN_BITS 64 # define BN_BYTES 4 # define BN_BITS2 32 # define BN_BITS4 16 # define BN_MASK2 ( 0xffffffffL ) # define BN_MASK2l ( 0xffff ) # define BN_MASK2h1 ( 0xffff8000L ) # define BN_MASK2h ( 0xffff0000L ) # define BN_TBIT ( 0x80000000L ) # define BN_DEC_CONV ( 1000000000L ) # define BN_DEC_FMT1 \"%u\" # define BN_DEC_FMT2 \"%09u\" # define BN_DEC_NUM 9 # define BN_HEX_FMT1 \"%X\" # define BN_HEX_FMT2 \"%08X\" # endif # define BN_DEFAULT_BITS 1280 # define BN_FLG_MALLOCED 0x01 # define BN_FLG_STATIC_DATA 0x02 # define BN_FLG_CONSTTIME 0x04 # ifndef OPENSSL_NO_DEPRECATED # define BN_FLG_EXP_CONSTTIME BN_FLG_CONSTTIME # endif # ifndef OPENSSL_NO_DEPRECATED # define BN_FLG_FREE 0x8000 # endif # define BN_set_flags ( b , n ) ( ( b ) -> flags |= ( n ) ) # define BN_get_flags ( b , n ) ( ( b ) -> flags & ( n ) ) # define BN_with_flags ( dest , b , n ) ( ( dest ) -> d = ( b ) -> d , \\ ( dest ) -> top = ( b ) -> top , \\ ( dest ) -> dmax = ( b ) -> dmax , \\ ( dest ) -> neg = ( b ) -> neg , \\ ( dest ) -> flags = ( ( ( dest ) -> flags & BN_FLG_MALLOCED ) \\ | ( ( b ) -> flags & ~ BN_FLG_MALLOCED ) \\ | BN_FLG_STATIC_DATA \\ | ( n ) ) ) # if 0 typedef struct bignum_st BIGNUM ;\n typedef struct bignum_ctx BN_CTX ;\n typedef struct bn_blinding_st BN_BLINDING ;\n typedef struct bn_mont_ctx_st BN_MONT_CTX ;\n typedef struct bn_recp_ctx_st BN_RECP_CTX ;\n typedef struct bn_gencb_st BN_GENCB ;\n # endif struct bignum_st {\n BN_ULONG * d ;\n int top ;\n int dmax ;\n int neg ;\n int flags ;\n }\n ;\n struct bn_mont_ctx_st {\n int ri ;\n BIGNUM RR ;\n BIGNUM N ;\n BIGNUM Ni ;\n BN_ULONG n0 [ 2 ] ;\n int flags ;\n }\n ;\n struct bn_recp_ctx_st {\n BIGNUM N ;\n BIGNUM Nr ;\n int num_bits ;\n int shift ;\n int flags ;\n }\n ;\n struct bn_gencb_st {\n unsigned int ver ;\n void * arg ;\n union {\n void ( * cb_1 ) ( int , int , void * ) ;\n int ( * cb_2 ) ( int , int , BN_GENCB * ) ;\n }\n cb ;\n }\n ;\n int BN_GENCB_call ( BN_GENCB * cb , int a , int b ) ;\n # define BN_GENCB_set_old ( gencb , callback , cb_arg ) {\n \\ BN_GENCB * tmp_gencb = ( gencb ) ;\n \\ tmp_gencb -> ver = 1 ;\n \\ tmp_gencb -> arg = ( cb_arg ) ;\n \\ tmp_gencb -> cb . cb_1 = ( callback ) ;\n }\n # define BN_GENCB_set ( gencb , callback , cb_arg ) {\n \\ BN_GENCB * tmp_gencb = ( gencb ) ;\n \\ tmp_gencb -> ver = 2 ;\n \\ tmp_gencb -> arg = ( cb_arg ) ;\n \\ tmp_gencb -> cb . cb_2 = ( callback ) ;\n }\n # define BN_prime_checks 0 # define BN_prime_checks_for_size ( b ) ( ( b ) >= 1300 ? 2 : \\ ( b ) >= 850 ? 3 : \\ ( b ) >= 650 ? 4 : \\ ( b ) >= 550 ? 5 : \\ ( b ) >= 450 ? 6 : \\ ( b ) >= 400 ? 7 : \\ ( b ) >= 350 ? 8 : \\ ( b ) >= 300 ? 9 : \\ ( b ) >= 250 ? 12 : \\ ( b ) >= 200 ? 15 : \\ ( b ) >= 150 ? 18 : \\ 27 ) # define BN_num_bytes ( a ) ( ( BN_num_bits ( a ) + 7 ) / 8 ) # define BN_abs_is_word ( a , w ) ( ( ( ( a ) -> top == 1 ) && ( ( a ) -> d [ 0 ] == ( BN_ULONG ) ( w ) ) ) || \\ ( ( ( w ) == 0 ) && ( ( a ) -> top == 0 ) ) ) # define BN_is_zero ( a ) ( ( a ) -> top == 0 ) # define BN_is_one ( a ) ( BN_abs_is_word ( ( a ) , 1 ) && ! ( a ) -> neg ) # define BN_is_word ( a , w ) ( BN_abs_is_word ( ( a ) , ( w ) ) && ( ! ( w ) || ! ( a ) -> neg ) ) # define BN_is_odd ( a ) ( ( ( a ) -> top > 0 ) && ( ( a ) -> d [ 0 ] & 1 ) ) # define BN_one ( a ) ( BN_set_word ( ( a ) , 1 ) ) # define BN_zero_ex ( a ) \\ do {\n \\ BIGNUM * _tmp_bn = ( a ) ;\n \\ _tmp_bn -> top = 0 ;\n \\ _tmp_bn -> neg = 0 ;\n \\ }\n while ( 0 ) # ifdef OPENSSL_NO_DEPRECATED # define BN_zero ( a ) BN_zero_ex ( a ) # else # define BN_zero ( a ) ( BN_set_word ( ( a ) , 0 ) ) # endif const BIGNUM * BN_value_one ( void ) ;\n char * BN_options ( void ) ;\n BN_CTX * BN_CTX_new ( void ) ;\n # ifndef OPENSSL_NO_DEPRECATED void BN_CTX_init ( BN_CTX * c ) ;\n # endif void BN_CTX_free ( BN_CTX * c ) ;\n void BN_CTX_start ( BN_CTX * ctx ) ;\n BIGNUM * BN_CTX_get ( BN_CTX * ctx ) ;\n void BN_CTX_end ( BN_CTX * ctx ) ;\n int BN_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_pseudo_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_pseudo_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_num_bits ( const BIGNUM * a ) ;\n int BN_num_bits_word ( BN_ULONG l ) ;\n BIGNUM * BN_new ( void ) ;\n void BN_init ( BIGNUM * ) ;\n void BN_clear_free ( BIGNUM * a ) ;\n BIGNUM * BN_copy ( BIGNUM * a , const BIGNUM * b ) ;\n void BN_swap ( BIGNUM * a , BIGNUM * b ) ;\n BIGNUM * BN_bin2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2bin ( const BIGNUM * a , unsigned char * to ) ;\n BIGNUM * BN_mpi2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2mpi ( const BIGNUM * a , unsigned char * to ) ;\n int BN_sub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_usub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_uadd ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n int BN_sqr ( BIGNUM * r , const BIGNUM * a , BN_CTX * ctx ) ;\n void BN_set_negative ( BIGNUM * b , int n ) ;\n # define BN_is_negative ( a ) ( ( a ) -> neg != 0 ) int BN_div ( BIGNUM * dv , BIGNUM * rem , const BIGNUM * m , const BIGNUM * d , BN_CTX * ctx ) ;\n # define BN_mod ( rem , m , d , ctx ) BN_div ( NULL , ( rem ) , ( m ) , ( d ) , ( ctx ) ) int BN_nnmod ( BIGNUM * r , const BIGNUM * m , const BIGNUM * d , BN_CTX * ctx ) ;\n int BN_mod_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_add_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m ) ;\n int BN_mod_sub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_sub_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m ) ;\n int BN_mod_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_sqr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift1 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift1_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m ) ;\n int BN_mod_lshift ( BIGNUM * r , const BIGNUM * a , int n , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift_quick ( BIGNUM * r , const BIGNUM * a , int n , const BIGNUM * m ) ;\n BN_ULONG BN_mod_word ( const BIGNUM * a , BN_ULONG w ) ;\n BN_ULONG BN_div_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_mul_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_add_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_sub_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_set_word ( BIGNUM * a , BN_ULONG w ) ;\n BN_ULONG BN_get_word ( const BIGNUM * a ) ;\n int BN_cmp ( const BIGNUM * a , const BIGNUM * b ) ;\n void BN_free ( BIGNUM * a ) ;\n int BN_is_bit_set ( const BIGNUM * a , int n ) ;\n int BN_lshift ( BIGNUM * r , const BIGNUM * a , int n ) ;\n int BN_lshift1 ( BIGNUM * r , const BIGNUM * a ) ;\n int BN_exp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_mod_exp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_exp_mont ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) ;\n int BN_mod_exp_mont_consttime ( BIGNUM * rr , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * in_mont ) ;\n int BN_mod_exp_mont_word ( BIGNUM * r , BN_ULONG a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) ;\n int BN_mod_exp2_mont ( BIGNUM * r , const BIGNUM * a1 , const BIGNUM * p1 , const BIGNUM * a2 , const BIGNUM * p2 , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) ;\n int BN_mod_exp_simple ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mask_bits ( BIGNUM * a , int n ) ;\n # ifndef OPENSSL_NO_FP_API int BN_print_fp ( FILE * fp , const BIGNUM * a ) ;\n # endif # ifdef HEADER_BIO_H int BN_print ( BIO * fp , const BIGNUM * a ) ;\n # else int BN_print ( void * fp , const BIGNUM * a ) ;\n # endif int BN_reciprocal ( BIGNUM * r , const BIGNUM * m , int len , BN_CTX * ctx ) ;\n int BN_rshift ( BIGNUM * r , const BIGNUM * a , int n ) ;\n int BN_rshift1 ( BIGNUM * r , const BIGNUM * a ) ;\n void BN_clear ( BIGNUM * a ) ;\n BIGNUM * BN_dup ( const BIGNUM * a ) ;\n int BN_ucmp ( const BIGNUM * a , const BIGNUM * b ) ;\n int BN_set_bit ( BIGNUM * a , int n ) ;\n int BN_clear_bit ( BIGNUM * a , int n ) ;\n char * BN_bn2hex ( const BIGNUM * a ) ;\n char * BN_bn2dec ( const BIGNUM * a ) ;\n int BN_hex2bn ( BIGNUM * * a , const char * str ) ;\n int BN_dec2bn ( BIGNUM * * a , const char * str ) ;\n int BN_asc2bn ( BIGNUM * * a , const char * str ) ;\n int BN_gcd ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n int BN_kronecker ( const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n BIGNUM * BN_mod_inverse ( BIGNUM * ret , const BIGNUM * a , const BIGNUM * n , BN_CTX * ctx ) ;\n BIGNUM * BN_mod_sqrt ( BIGNUM * ret , const BIGNUM * a , const BIGNUM * n , BN_CTX * ctx ) ;\n void BN_consttime_swap ( BN_ULONG swap , BIGNUM * a , BIGNUM * b , int nwords ) ;\n # ifndef OPENSSL_NO_DEPRECATED BIGNUM * BN_generate_prime ( BIGNUM * ret , int bits , int safe , const BIGNUM * add , const BIGNUM * rem , void ( * callback ) ( int , int , void * ) , void * cb_arg ) ;\n int BN_is_prime ( const BIGNUM * p , int nchecks , void ( * callback ) ( int , int , void * ) , BN_CTX * ctx , void * cb_arg ) ;\n int BN_is_prime_fasttest ( const BIGNUM * p , int nchecks , void ( * callback ) ( int , int , void * ) , BN_CTX * ctx , void * cb_arg , int do_trial_division ) ;\n # endif int BN_generate_prime_ex ( BIGNUM * ret , int bits , int safe , const BIGNUM * add , const BIGNUM * rem , BN_GENCB * cb ) ;\n int BN_is_prime_ex ( const BIGNUM * p , int nchecks , BN_CTX * ctx , BN_GENCB * cb ) ;\n int BN_is_prime_fasttest_ex ( const BIGNUM * p , int nchecks , BN_CTX * ctx , int do_trial_division , BN_GENCB * cb ) ;\n int BN_X931_generate_Xpq ( BIGNUM * Xp , BIGNUM * Xq , int nbits , BN_CTX * ctx ) ;\n int BN_X931_derive_prime_ex ( BIGNUM * p , BIGNUM * p1 , BIGNUM * p2 , const BIGNUM * Xp , const BIGNUM * Xp1 , const BIGNUM * Xp2 , const BIGNUM * e , BN_CTX * ctx , BN_GENCB * cb ) ;\n int BN_X931_generate_prime_ex ( BIGNUM * p , BIGNUM * p1 , BIGNUM * p2 , BIGNUM * Xp1 , BIGNUM * Xp2 , const BIGNUM * Xp , const BIGNUM * e , BN_CTX * ctx , BN_GENCB * cb ) ;\n BN_MONT_CTX * BN_MONT_CTX_new ( void ) ;\n void BN_MONT_CTX_init ( BN_MONT_CTX * ctx ) ;\n int BN_mod_mul_montgomery ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_MONT_CTX * mont , BN_CTX * ctx ) ;\n # define BN_to_montgomery ( r , a , mont , ctx ) BN_mod_mul_montgomery ( \\ ( r ) , ( a ) , & ( ( mont ) -> RR ) , ( mont ) , ( ctx ) ) int BN_from_montgomery ( BIGNUM * r , const BIGNUM * a , BN_MONT_CTX * mont , BN_CTX * ctx ) ;\n void BN_MONT_CTX_free ( BN_MONT_CTX * mont ) ;\n int BN_MONT_CTX_set ( BN_MONT_CTX * mont , const BIGNUM * mod , BN_CTX * ctx ) ;\n BN_MONT_CTX * BN_MONT_CTX_copy ( BN_MONT_CTX * to , BN_MONT_CTX * from ) ;\n BN_MONT_CTX * BN_MONT_CTX_set_locked ( BN_MONT_CTX * * pmont , int lock , const BIGNUM * mod , BN_CTX * ctx ) ;\n # define BN_BLINDING_NO_UPDATE 0x00000001 # define BN_BLINDING_NO_RECREATE 0x00000002 BN_BLINDING * BN_BLINDING_new ( const BIGNUM * A , const BIGNUM * Ai , BIGNUM * mod ) ;\n void BN_BLINDING_free ( BN_BLINDING * b ) ;\n int BN_BLINDING_update ( BN_BLINDING * b , BN_CTX * ctx ) ;\n int BN_BLINDING_convert ( BIGNUM * n , BN_BLINDING * b , BN_CTX * ctx ) ;\n int BN_BLINDING_invert ( BIGNUM * n , BN_BLINDING * b , BN_CTX * ctx ) ;\n int BN_BLINDING_convert_ex ( BIGNUM * n , BIGNUM * r , BN_BLINDING * b , BN_CTX * ) ;\n int BN_BLINDING_invert_ex ( BIGNUM * n , const BIGNUM * r , BN_BLINDING * b , BN_CTX * ) ;\n # ifndef OPENSSL_NO_DEPRECATED unsigned long BN_BLINDING_get_thread_id ( const BN_BLINDING * ) ;\n void BN_BLINDING_set_thread_id ( BN_BLINDING * , unsigned long ) ;\n # endif CRYPTO_THREADID * BN_BLINDING_thread_id ( BN_BLINDING * ) ;\n unsigned long BN_BLINDING_get_flags ( const BN_BLINDING * ) ;\n void BN_BLINDING_set_flags ( BN_BLINDING * , unsigned long ) ;\n BN_BLINDING * BN_BLINDING_create_param ( BN_BLINDING * b , const BIGNUM * e , BIGNUM * m , BN_CTX * ctx , int ( * bn_mod_exp ) ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx , BN_MONT_CTX * m_ctx ) , BN_MONT_CTX * m_ctx ) ;\n # ifndef OPENSSL_NO_DEPRECATED void BN_set_params ( int mul , int high , int low , int mont ) ;\n int BN_get_params ( int which ) ;\n # endif void BN_RECP_CTX_init ( BN_RECP_CTX * recp ) ;\n BN_RECP_CTX * BN_RECP_CTX_new ( void ) ;\n void BN_RECP_CTX_free ( BN_RECP_CTX * recp ) ;\n int BN_RECP_CTX_set ( BN_RECP_CTX * recp , const BIGNUM * rdiv , BN_CTX * ctx ) ;\n int BN_mod_mul_reciprocal ( BIGNUM * r , const BIGNUM * x , const BIGNUM * y , BN_RECP_CTX * recp , BN_CTX * ctx ) ;\n int BN_mod_exp_recp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_div_recp ( BIGNUM * dv , BIGNUM * rem , const BIGNUM * m , BN_RECP_CTX * recp , BN_CTX * ctx ) ;\n # ifndef OPENSSL_NO_EC2M int BN_GF2m_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n # define BN_GF2m_sub ( r , a , b ) BN_GF2m_add ( r , a , b ) int BN_GF2m_mod ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p ) ;\n int BN_GF2m_mod_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_inv ( BIGNUM * r , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_div ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_exp ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqrt ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_GF2m_mod_solve_quad ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n # define BN_GF2m_cmp ( a , b ) BN_ucmp ( ( a ) , ( b ) ) int BN_GF2m_mod_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] ) ;\n int BN_GF2m_mod_mul_arr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqr_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_inv_arr ( BIGNUM * r , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_div_arr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_exp_arr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_sqrt_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_mod_solve_quad_arr ( BIGNUM * r , const BIGNUM * a , const int p [ ] , BN_CTX * ctx ) ;\n int BN_GF2m_poly2arr ( const BIGNUM * a , int p [ ] , int max ) ;\n int BN_GF2m_arr2poly ( const int p [ ] , BIGNUM * a ) ;\n # endif int BN_nist_mod_192 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_224 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_256 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_384 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n int BN_nist_mod_521 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * p , BN_CTX * ctx ) ;\n const BIGNUM * BN_get0_nist_prime_192 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_224 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_256 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_384 ( void ) ;\n const BIGNUM * BN_get0_nist_prime_521 ( void ) ;\n int ( * BN_nist_mod_func ( const BIGNUM * p ) ) ( BIGNUM * r , const BIGNUM * a , const BIGNUM * field , BN_CTX * ctx ) ;\n int BN_generate_dsa_nonce ( BIGNUM * out , const BIGNUM * range , const BIGNUM * priv , const unsigned char * message , size_t message_len , BN_CTX * ctx ) ;\n # define bn_expand ( a , bits ) ( ( ( ( ( ( bits + BN_BITS2 - 1 ) ) / BN_BITS2 ) ) <= ( a ) -> dmax ) ? \\ ( a ) : bn_expand2 ( ( a ) , ( bits + BN_BITS2 - 1 ) / BN_BITS2 ) ) # define bn_wexpand ( a , words ) ( ( ( words ) <= ( a ) -> dmax ) ? ( a ) : bn_expand2 ( ( a ) , ( words ) ) ) BIGNUM * bn_expand2 ( BIGNUM * a , int words ) ;\n # ifndef OPENSSL_NO_DEPRECATED BIGNUM * bn_dup_expand ( const BIGNUM * a , int words ) ;\n # endif # ifdef BN_DEBUG # include < assert . h > # ifdef BN_DEBUG_RAND # ifndef RAND_pseudo_bytes int RAND_pseudo_bytes ( unsigned char * buf , int num ) ;\n # define BN_DEBUG_TRIX # endif # define bn_pollute ( a ) \\ do {\n \\ const BIGNUM * _bnum1 = ( a ) ;\n \\ if ( _bnum1 -> top < _bnum1 -> dmax ) {\n \\ unsigned char _tmp_char ;\n \\ \\ BN_ULONG * _not_const ;\n \\ memcpy ( & _not_const , & _bnum1 -> d , sizeof ( BN_ULONG * ) ) ;\n \\ RAND_pseudo_bytes ( & _tmp_char , 1 ) ;\n \\ memset ( ( unsigned char * ) ( _not_const + _bnum1 -> top ) , _tmp_char , \\ ( _bnum1 -> dmax - _bnum1 -> top ) * sizeof ( BN_ULONG ) ) ;\n \\ }\n \\ }\n while ( 0 ) # ifdef BN_DEBUG_TRIX # undef RAND_pseudo_bytes # endif # else # define bn_pollute ( a ) # endif # define bn_check_top ( a ) \\ do {\n \\ const BIGNUM * _bnum2 = ( a ) ;\n \\ if ( _bnum2 != NULL ) {\n \\ assert ( ( _bnum2 -> top == 0 ) || \\ ( _bnum2 -> d [ _bnum2 -> top - 1 ] != 0 ) ) ;\n \\ bn_pollute ( _bnum2 ) ;\n \\ }\n \\ }\n while ( 0 ) # define bn_fix_top ( a ) bn_check_top ( a ) # define bn_check_size ( bn , bits ) bn_wcheck_size ( bn , ( ( bits + BN_BITS2 - 1 ) ) / BN_BITS2 ) # define bn_wcheck_size ( bn , words ) \\ do {\n \\ const BIGNUM * _bnum2 = ( bn ) ;\n \\ assert ( words <= ( _bnum2 ) -> dmax && words >= ( _bnum2 ) -> top ) ;\n \\ }\n while ( 0 ) # else # define bn_pollute ( a ) # define bn_check_top ( a ) # define bn_fix_top ( a ) bn_correct_top ( a ) # define bn_check_size ( bn , bits ) # define bn_wcheck_size ( bn , words ) # endif # define bn_correct_top ( a ) \\ {\n \\ BN_ULONG * ftl ;\n \\ int tmp_top = ( a ) -> top ;\n \\ if ( tmp_top > 0 ) \\ {\n \\ for ( ftl = & ( ( a ) -> d [ tmp_top - 1 ] ) ;\n tmp_top > 0 ;\n tmp_top -- ) \\ if ( * ( ftl -- ) ) break ;\n \\ ( a ) -> top = tmp_top ;\n \\ }\n \\ bn_pollute ( a ) ;\n \\ }\n BN_ULONG bn_mul_add_words ( BN_ULONG * rp , const BN_ULONG * ap , int num , BN_ULONG w ) ;\n BN_ULONG bn_mul_words ( BN_ULONG * rp , const BN_ULONG * ap , int num , BN_ULONG w ) ;\n void bn_sqr_words ( BN_ULONG * rp , const BN_ULONG * ap , int num ) ;\n BN_ULONG bn_div_words ( BN_ULONG h , BN_ULONG l , BN_ULONG d ) ;\n BN_ULONG bn_add_words ( BN_ULONG * rp , const BN_ULONG * ap , const BN_ULONG * bp , int num )"}
{"idx": 15065, "target": 0, "func": "static void free_cache ( struct name_cache * cache ) {\n size_t i ;\n if ( cache != NULL ) {\n for ( i = 0 ;\n i < cache -> size ;\n i ++ ) free ( cache -> cache [ i ] . name ) ;\n free ( cache ) ;\n }\n }"}
{"idx": 15066, "target": 0, "func": "static int dissect_NOTIFY_INFO ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n guint32 count ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_notify_info_version , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_notify_info_flags , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_notify_info_count , & count ) ;\n if ( ! di -> conformant_run ) col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %d %s\" , count , notify_plural ( count ) ) ;\n offset = dissect_ndr_ucarray ( tvb , offset , pinfo , tree , di , drep , dissect_NOTIFY_INFO_DATA ) ;\n return offset ;\n }"}
{"idx": 15067, "target": 1, "func": "static int rv34_decode_intra_macroblock ( RV34DecContext * r , int8_t * intra_types ) {\n MpegEncContext * s = & r -> s ;\n int cbp , dist ;\n int mb_pos = s -> mb_x + s -> mb_y * s -> mb_stride ;\n memset ( r -> avail_cache , 0 , sizeof ( r -> avail_cache ) ) ;\n fill_rectangle ( r -> avail_cache + 6 , 2 , 2 , 4 , 1 , 4 ) ;\n dist = ( s -> mb_x - s -> resync_mb_x ) + ( s -> mb_y - s -> resync_mb_y ) * s -> mb_width ;\n if ( s -> mb_x && dist ) r -> avail_cache [ 5 ] = r -> avail_cache [ 9 ] = s -> current_picture_ptr -> f . mb_type [ mb_pos - 1 ] ;\n if ( dist >= s -> mb_width ) r -> avail_cache [ 2 ] = r -> avail_cache [ 3 ] = s -> current_picture_ptr -> f . mb_type [ mb_pos - s -> mb_stride ] ;\n if ( ( ( s -> mb_x + 1 ) < s -> mb_width ) && dist >= s -> mb_width - 1 ) r -> avail_cache [ 4 ] = s -> current_picture_ptr -> f . mb_type [ mb_pos - s -> mb_stride + 1 ] ;\n if ( s -> mb_x && dist > s -> mb_width ) r -> avail_cache [ 1 ] = s -> current_picture_ptr -> f . mb_type [ mb_pos - s -> mb_stride - 1 ] ;\n s -> qscale = r -> si . quant ;\n cbp = rv34_decode_intra_mb_header ( r , intra_types ) ;\n r -> cbp_luma [ mb_pos ] = cbp ;\n r -> cbp_chroma [ mb_pos ] = cbp >> 16 ;\n r -> deblock_coefs [ mb_pos ] = 0xFFFF ;\n s -> current_picture_ptr -> f . qscale_table [ mb_pos ] = s -> qscale ;\n if ( cbp == - 1 ) return - 1 ;\n if ( r -> is16 ) {\n rv34_output_i16x16 ( r , intra_types , cbp ) ;\n return 0 ;\n }\n rv34_output_intra ( r , intra_types , cbp ) ;\n return 0 ;\n }"}
{"idx": 15068, "target": 0, "func": "static const uint8_t * decode_tiles ( VP9Decoder * pbi , const uint8_t * data , const uint8_t * data_end ) {\n VP9_COMMON * const cm = & pbi -> common ;\n const VP9WorkerInterface * const winterface = vp9_get_worker_interface ( ) ;\n const int aligned_cols = mi_cols_aligned_to_sb ( cm -> mi_cols ) ;\n const int tile_cols = 1 << cm -> log2_tile_cols ;\n const int tile_rows = 1 << cm -> log2_tile_rows ;\n TileBuffer tile_buffers [ 4 ] [ 1 << 6 ] ;\n int tile_row , tile_col ;\n int mi_row , mi_col ;\n TileData * tile_data = NULL ;\n if ( cm -> lf . filter_level && pbi -> lf_worker . data1 == NULL ) {\n CHECK_MEM_ERROR ( cm , pbi -> lf_worker . data1 , vpx_memalign ( 32 , sizeof ( LFWorkerData ) ) ) ;\n pbi -> lf_worker . hook = ( VP9WorkerHook ) vp9_loop_filter_worker ;\n if ( pbi -> max_threads > 1 && ! winterface -> reset ( & pbi -> lf_worker ) ) {\n vpx_internal_error ( & cm -> error , VPX_CODEC_ERROR , \"Loop filter thread creation failed\" ) ;\n }\n }\n if ( cm -> lf . filter_level ) {\n LFWorkerData * const lf_data = ( LFWorkerData * ) pbi -> lf_worker . data1 ;\n winterface -> sync ( & pbi -> lf_worker ) ;\n lf_data -> frame_buffer = get_frame_new_buffer ( cm ) ;\n lf_data -> cm = cm ;\n vp9_copy ( lf_data -> planes , pbi -> mb . plane ) ;\n lf_data -> stop = 0 ;\n lf_data -> y_only = 0 ;\n vp9_loop_filter_frame_init ( cm , cm -> lf . filter_level ) ;\n }\n assert ( tile_rows <= 4 ) ;\n assert ( tile_cols <= ( 1 << 6 ) ) ;\n vpx_memset ( cm -> above_context , 0 , sizeof ( * cm -> above_context ) * MAX_MB_PLANE * 2 * aligned_cols ) ;\n vpx_memset ( cm -> above_seg_context , 0 , sizeof ( * cm -> above_seg_context ) * aligned_cols ) ;\n get_tile_buffers ( pbi , data , data_end , tile_cols , tile_rows , tile_buffers ) ;\n if ( pbi -> tile_data == NULL || ( tile_cols * tile_rows ) != pbi -> total_tiles ) {\n vpx_free ( pbi -> tile_data ) ;\n CHECK_MEM_ERROR ( cm , pbi -> tile_data , vpx_memalign ( 32 , tile_cols * tile_rows * ( sizeof ( * pbi -> tile_data ) ) ) ) ;\n pbi -> total_tiles = tile_rows * tile_cols ;\n }\n for ( tile_row = 0 ;\n tile_row < tile_rows ;\n ++ tile_row ) {\n for ( tile_col = 0 ;\n tile_col < tile_cols ;\n ++ tile_col ) {\n TileInfo tile ;\n const TileBuffer * const buf = & tile_buffers [ tile_row ] [ tile_col ] ;\n tile_data = pbi -> tile_data + tile_cols * tile_row + tile_col ;\n tile_data -> cm = cm ;\n tile_data -> xd = pbi -> mb ;\n tile_data -> xd . corrupted = 0 ;\n vp9_tile_init ( & tile , tile_data -> cm , tile_row , tile_col ) ;\n setup_token_decoder ( buf -> data , data_end , buf -> size , & cm -> error , & tile_data -> bit_reader , pbi -> decrypt_cb , pbi -> decrypt_state ) ;\n init_macroblockd ( cm , & tile_data -> xd ) ;\n vp9_zero ( tile_data -> xd . dqcoeff ) ;\n }\n }\n for ( tile_row = 0 ;\n tile_row < tile_rows ;\n ++ tile_row ) {\n TileInfo tile ;\n vp9_tile_set_row ( & tile , cm , tile_row ) ;\n for ( mi_row = tile . mi_row_start ;\n mi_row < tile . mi_row_end ;\n mi_row += MI_BLOCK_SIZE ) {\n for ( tile_col = 0 ;\n tile_col < tile_cols ;\n ++ tile_col ) {\n const int col = pbi -> inv_tile_order ? tile_cols - tile_col - 1 : tile_col ;\n tile_data = pbi -> tile_data + tile_cols * tile_row + col ;\n vp9_tile_set_col ( & tile , tile_data -> cm , col ) ;\n vp9_zero ( tile_data -> xd . left_context ) ;\n vp9_zero ( tile_data -> xd . left_seg_context ) ;\n for ( mi_col = tile . mi_col_start ;\n mi_col < tile . mi_col_end ;\n mi_col += MI_BLOCK_SIZE ) {\n decode_partition ( tile_data -> cm , & tile_data -> xd , & tile , mi_row , mi_col , & tile_data -> bit_reader , BLOCK_64X64 ) ;\n }\n pbi -> mb . corrupted |= tile_data -> xd . corrupted ;\n }\n if ( cm -> lf . filter_level && ! pbi -> mb . corrupted ) {\n const int lf_start = mi_row - MI_BLOCK_SIZE ;\n LFWorkerData * const lf_data = ( LFWorkerData * ) pbi -> lf_worker . data1 ;\n if ( lf_start < 0 ) continue ;\n if ( mi_row + MI_BLOCK_SIZE >= cm -> mi_rows ) continue ;\n winterface -> sync ( & pbi -> lf_worker ) ;\n lf_data -> start = lf_start ;\n lf_data -> stop = mi_row ;\n if ( pbi -> max_threads > 1 ) {\n winterface -> launch ( & pbi -> lf_worker ) ;\n }\n else {\n winterface -> execute ( & pbi -> lf_worker ) ;\n }\n }\n }\n }\n if ( cm -> lf . filter_level && ! pbi -> mb . corrupted ) {\n LFWorkerData * const lf_data = ( LFWorkerData * ) pbi -> lf_worker . data1 ;\n winterface -> sync ( & pbi -> lf_worker ) ;\n lf_data -> start = lf_data -> stop ;\n lf_data -> stop = cm -> mi_rows ;\n winterface -> execute ( & pbi -> lf_worker ) ;\n }\n tile_data = pbi -> tile_data + tile_cols * tile_rows - 1 ;\n return vp9_reader_find_end ( & tile_data -> bit_reader ) ;\n }"}
{"idx": 15069, "target": 0, "func": "static int proc_resetdevice ( struct usb_dev_state * ps ) {\n struct usb_host_config * actconfig = ps -> dev -> actconfig ;\n struct usb_interface * interface ;\n int i , number ;\n if ( ps -> privileges_dropped && actconfig ) {\n for ( i = 0 ;\n i < actconfig -> desc . bNumInterfaces ;\n ++ i ) {\n interface = actconfig -> interface [ i ] ;\n number = interface -> cur_altsetting -> desc . bInterfaceNumber ;\n if ( usb_interface_claimed ( interface ) && ! test_bit ( number , & ps -> ifclaimed ) ) {\n dev_warn ( & ps -> dev -> dev , \"usbfs: interface %d claimed by %s while '%s' resets device\\n\" , number , interface -> dev . driver -> name , current -> comm ) ;\n return - EACCES ;\n }\n }\n }\n return usb_reset_device ( ps -> dev ) ;\n }"}
{"idx": 15070, "target": 0, "func": "static uint64_t pxa2xx_rtc_read ( void * opaque , hwaddr addr , unsigned size ) {\n PXA2xxRTCState * s = ( PXA2xxRTCState * ) opaque ;\n switch ( addr ) {\n case RTTR : return s -> rttr ;\n case RTSR : return s -> rtsr ;\n case RTAR : return s -> rtar ;\n case RDAR1 : return s -> rdar1 ;\n case RDAR2 : return s -> rdar2 ;\n case RYAR1 : return s -> ryar1 ;\n case RYAR2 : return s -> ryar2 ;\n case SWAR1 : return s -> swar1 ;\n case SWAR2 : return s -> swar2 ;\n case PIAR : return s -> piar ;\n case RCNR : return s -> last_rcnr + ( ( qemu_get_clock_ms ( rtc_clock ) - s -> last_hz ) << 15 ) / ( 1000 * ( ( s -> rttr & 0xffff ) + 1 ) ) ;\n case RDCR : return s -> last_rdcr + ( ( qemu_get_clock_ms ( rtc_clock ) - s -> last_hz ) << 15 ) / ( 1000 * ( ( s -> rttr & 0xffff ) + 1 ) ) ;\n case RYCR : return s -> last_rycr ;\n case SWCR : if ( s -> rtsr & ( 1 << 12 ) ) return s -> last_swcr + ( qemu_get_clock_ms ( rtc_clock ) - s -> last_sw ) / 10 ;\n else return s -> last_swcr ;\n default : printf ( \"%s: Bad register \" REG_FMT \"\\n\" , __FUNCTION__ , addr ) ;\n break ;\n }\n return 0 ;\n }"}
{"idx": 15071, "target": 0, "func": "static void load_branch ( struct branch * b ) {\n load_tree ( & b -> branch_tree ) ;\n if ( ! b -> active ) {\n b -> active = 1 ;\n b -> active_next_branch = active_branches ;\n active_branches = b ;\n cur_active_branches ++ ;\n branch_load_count ++ ;\n }\n }"}
{"idx": 15072, "target": 0, "func": "static inline void e1000e_read_ps_rx_descr ( E1000ECore * core , uint8_t * desc , hwaddr ( * buff_addr ) [ MAX_PS_BUFFERS ] ) {\n int i ;\n union e1000_rx_desc_packet_split * d = ( union e1000_rx_desc_packet_split * ) desc ;\n for ( i = 0 ;\n i < MAX_PS_BUFFERS ;\n i ++ ) {\n ( * buff_addr ) [ i ] = le64_to_cpu ( d -> read . buffer_addr [ i ] ) ;\n }\n trace_e1000e_rx_desc_ps_read ( ( * buff_addr ) [ 0 ] , ( * buff_addr ) [ 1 ] , ( * buff_addr ) [ 2 ] , ( * buff_addr ) [ 3 ] ) ;\n }"}
{"idx": 15073, "target": 0, "func": "static void _slurm_rpc_step_complete ( slurm_msg_t * msg , bool running_composite ) {\n static int active_rpc_cnt = 0 ;\n int error_code = SLURM_SUCCESS , rc , rem ;\n uint32_t step_rc ;\n DEF_TIMERS ;\n step_complete_msg_t * req = ( step_complete_msg_t * ) msg -> data ;\n slurmctld_lock_t job_write_lock = {\n NO_LOCK , WRITE_LOCK , WRITE_LOCK , NO_LOCK , READ_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n bool dump_job = false ;\n START_TIMER ;\n if ( slurmctld_conf . debug_flags & DEBUG_FLAG_STEPS ) info ( \"Processing RPC: REQUEST_STEP_COMPLETE for %u.%u \" \"nodes %u-%u rc=%u uid=%d\" , req -> job_id , req -> job_step_id , req -> range_first , req -> range_last , req -> step_rc , uid ) ;\n if ( ! running_composite ) {\n _throttle_start ( & active_rpc_cnt ) ;\n lock_slurmctld ( job_write_lock ) ;\n }\n rc = step_partial_comp ( req , uid , & rem , & step_rc ) ;\n if ( rc || rem ) {\n if ( ! running_composite ) {\n unlock_slurmctld ( job_write_lock ) ;\n _throttle_fini ( & active_rpc_cnt ) ;\n }\n slurm_send_rc_msg ( msg , rc ) ;\n if ( ! rc ) schedule_job_save ( ) ;\n return ;\n }\n if ( req -> job_step_id == SLURM_BATCH_SCRIPT ) {\n error_code = job_complete ( req -> job_id , uid , false , false , step_rc ) ;\n if ( ! running_composite ) {\n unlock_slurmctld ( job_write_lock ) ;\n _throttle_fini ( & active_rpc_cnt ) ;\n }\n END_TIMER2 ( \"_slurm_rpc_step_complete\" ) ;\n if ( error_code ) {\n if ( slurmctld_conf . debug_flags & DEBUG_FLAG_STEPS ) info ( \"%s JobId=%u: %s\" , __func__ , req -> job_id , slurm_strerror ( error_code ) ) ;\n slurm_send_rc_msg ( msg , error_code ) ;\n }\n else {\n if ( slurmctld_conf . debug_flags & DEBUG_FLAG_STEPS ) info ( \"sched: %s JobId=%u: %s\" , __func__ , req -> job_id , TIME_STR ) ;\n slurm_send_rc_msg ( msg , SLURM_SUCCESS ) ;\n dump_job = true ;\n }\n }\n else {\n error_code = job_step_complete ( req -> job_id , req -> job_step_id , uid , false , step_rc ) ;\n if ( ! running_composite ) {\n unlock_slurmctld ( job_write_lock ) ;\n _throttle_fini ( & active_rpc_cnt ) ;\n }\n END_TIMER2 ( \"_slurm_rpc_step_complete\" ) ;\n if ( error_code ) {\n if ( slurmctld_conf . debug_flags & DEBUG_FLAG_STEPS ) info ( \"%s 1 StepId=%u.%u %s\" , __func__ , req -> job_id , req -> job_step_id , slurm_strerror ( error_code ) ) ;\n slurm_send_rc_msg ( msg , error_code ) ;\n }\n else {\n if ( slurmctld_conf . debug_flags & DEBUG_FLAG_STEPS ) info ( \"sched: %s StepId=%u.%u %s\" , __func__ , req -> job_id , req -> job_step_id , TIME_STR ) ;\n slurm_send_rc_msg ( msg , SLURM_SUCCESS ) ;\n dump_job = true ;\n }\n }\n if ( dump_job ) ( void ) schedule_job_save ( ) ;\n }"}
{"idx": 15074, "target": 0, "func": "int vp8_get_compressed_data ( VP8_COMP * cpi , unsigned int * frame_flags , unsigned long * size , unsigned char * dest , unsigned char * dest_end , int64_t * time_stamp , int64_t * time_end , int flush ) {\n VP8_COMMON * cm ;\n struct vpx_usec_timer tsctimer ;\n struct vpx_usec_timer ticktimer ;\n struct vpx_usec_timer cmptimer ;\n YV12_BUFFER_CONFIG * force_src_buffer = NULL ;\n if ( ! cpi ) return - 1 ;\n cm = & cpi -> common ;\n if ( setjmp ( cpi -> common . error . jmp ) ) {\n cpi -> common . error . setjmp = 0 ;\n vp8_clear_system_state ( ) ;\n return VPX_CODEC_CORRUPT_FRAME ;\n }\n cpi -> common . error . setjmp = 1 ;\n vpx_usec_timer_start ( & cmptimer ) ;\n cpi -> source = NULL ;\n # if ! ( CONFIG_REALTIME_ONLY ) if ( cpi -> oxcf . error_resilient_mode == 0 && cpi -> oxcf . play_alternate && cpi -> source_alt_ref_pending ) {\n if ( ( cpi -> source = vp8_lookahead_peek ( cpi -> lookahead , cpi -> frames_till_gf_update_due , PEEK_FORWARD ) ) ) {\n cpi -> alt_ref_source = cpi -> source ;\n if ( cpi -> oxcf . arnr_max_frames > 0 ) {\n vp8_temporal_filter_prepare_c ( cpi , cpi -> frames_till_gf_update_due ) ;\n force_src_buffer = & cpi -> alt_ref_buffer ;\n }\n cpi -> frames_till_alt_ref_frame = cpi -> frames_till_gf_update_due ;\n cm -> refresh_alt_ref_frame = 1 ;\n cm -> refresh_golden_frame = 0 ;\n cm -> refresh_last_frame = 0 ;\n cm -> show_frame = 0 ;\n cpi -> source_alt_ref_pending = 0 ;\n cpi -> is_src_frame_alt_ref = 0 ;\n }\n }\n # endif if ( ! cpi -> source ) {\n if ( cpi -> pass == 1 && cm -> current_video_frame > 0 ) {\n if ( ( cpi -> last_source = vp8_lookahead_peek ( cpi -> lookahead , 1 , PEEK_BACKWARD ) ) == NULL ) return - 1 ;\n }\n if ( ( cpi -> source = vp8_lookahead_pop ( cpi -> lookahead , flush ) ) ) {\n cm -> show_frame = 1 ;\n cpi -> is_src_frame_alt_ref = cpi -> alt_ref_source && ( cpi -> source == cpi -> alt_ref_source ) ;\n if ( cpi -> is_src_frame_alt_ref ) cpi -> alt_ref_source = NULL ;\n }\n }\n if ( cpi -> source ) {\n cpi -> Source = force_src_buffer ? force_src_buffer : & cpi -> source -> img ;\n cpi -> un_scaled_source = cpi -> Source ;\n * time_stamp = cpi -> source -> ts_start ;\n * time_end = cpi -> source -> ts_end ;\n * frame_flags = cpi -> source -> flags ;\n if ( cpi -> pass == 1 && cm -> current_video_frame > 0 ) {\n cpi -> last_frame_unscaled_source = & cpi -> last_source -> img ;\n }\n }\n else {\n * size = 0 ;\n # if ! ( CONFIG_REALTIME_ONLY ) if ( flush && cpi -> pass == 1 && ! cpi -> twopass . first_pass_done ) {\n vp8_end_first_pass ( cpi ) ;\n cpi -> twopass . first_pass_done = 1 ;\n }\n # endif return - 1 ;\n }\n if ( cpi -> source -> ts_start < cpi -> first_time_stamp_ever ) {\n cpi -> first_time_stamp_ever = cpi -> source -> ts_start ;\n cpi -> last_end_time_stamp_seen = cpi -> source -> ts_start ;\n }\n if ( cm -> show_frame ) {\n int64_t this_duration ;\n int step = 0 ;\n if ( cpi -> source -> ts_start == cpi -> first_time_stamp_ever ) {\n this_duration = cpi -> source -> ts_end - cpi -> source -> ts_start ;\n step = 1 ;\n }\n else {\n int64_t last_duration ;\n this_duration = cpi -> source -> ts_end - cpi -> last_end_time_stamp_seen ;\n last_duration = cpi -> last_end_time_stamp_seen - cpi -> last_time_stamp_seen ;\n if ( last_duration ) step = ( int ) ( ( ( this_duration - last_duration ) * / last_duration ) ) ;\n }\n if ( this_duration ) {\n if ( step ) cpi -> ref_framerate = 10000000.0 / this_duration ;\n else {\n double avg_duration , interval ;\n interval = ( double ) ( cpi -> source -> ts_end - cpi -> first_time_stamp_ever ) ;\n if ( interval > 10000000.0 ) interval = 10000000 ;\n avg_duration = 10000000.0 / cpi -> ref_framerate ;\n avg_duration *= ( interval - avg_duration + this_duration ) ;\n avg_duration /= interval ;\n cpi -> ref_framerate = 10000000.0 / avg_duration ;\n }\n if ( cpi -> oxcf . number_of_layers > 1 ) {\n unsigned int i ;\n assert ( cpi -> oxcf . number_of_layers <= VPX_TS_MAX_LAYERS ) ;\n for ( i = 0 ;\n i < cpi -> oxcf . number_of_layers && i < VPX_TS_MAX_LAYERS ;\n ++ i ) {\n LAYER_CONTEXT * lc = & cpi -> layer_context [ i ] ;\n lc -> framerate = cpi -> ref_framerate / cpi -> oxcf . rate_decimator [ i ] ;\n }\n }\n else vp8_new_framerate ( cpi , cpi -> ref_framerate ) ;\n }\n cpi -> last_time_stamp_seen = cpi -> source -> ts_start ;\n cpi -> last_end_time_stamp_seen = cpi -> source -> ts_end ;\n }\n if ( cpi -> oxcf . number_of_layers > 1 ) {\n int layer ;\n update_layer_contexts ( cpi ) ;\n layer = cpi -> oxcf . layer_id [ cpi -> temporal_pattern_counter % cpi -> oxcf . periodicity ] ;\n restore_layer_context ( cpi , layer ) ;\n vp8_new_framerate ( cpi , cpi -> layer_context [ layer ] . framerate ) ;\n }\n if ( cpi -> compressor_speed == 2 ) {\n vpx_usec_timer_start ( & tsctimer ) ;\n vpx_usec_timer_start ( & ticktimer ) ;\n }\n cpi -> lf_zeromv_pct = ( cpi -> zeromv_count * 100 ) / cm -> MBs ;\n # if CONFIG_REALTIME_ONLY & CONFIG_ONTHEFLY_BITPACKING {\n int i ;\n const int num_part = ( 1 << cm -> multi_token_partition ) ;\n const unsigned long dest_size = dest_end - dest ;\n const int tok_part_buff_size = ( dest_size * 9 ) / ( 10 * num_part ) ;\n unsigned char * dp = dest ;\n cpi -> partition_d [ 0 ] = dp ;\n dp += dest_size / 10 ;\n cpi -> partition_d_end [ 0 ] = dp ;\n for ( i = 0 ;\n i < num_part ;\n i ++ ) {\n cpi -> partition_d [ i + 1 ] = dp ;\n dp += tok_part_buff_size ;\n cpi -> partition_d_end [ i + 1 ] = dp ;\n }\n }\n # endif * size = 0 ;\n vp8_clear_system_state ( ) ;\n cm -> frame_type = INTER_FRAME ;\n cm -> frame_flags = * frame_flags ;\n # if 0 if ( cm -> refresh_alt_ref_frame ) {\n cm -> refresh_golden_frame = 0 ;\n cm -> refresh_last_frame = 0 ;\n }\n else {\n cm -> refresh_golden_frame = 0 ;\n cm -> refresh_last_frame = 1 ;\n }\n # endif {\n int i = 0 ;\n for ( ;\n i < NUM_YV12_BUFFERS ;\n i ++ ) {\n if ( ! cm -> yv12_fb [ i ] . flags ) {\n cm -> new_fb_idx = i ;\n break ;\n }\n }\n assert ( i < NUM_YV12_BUFFERS ) ;\n }\n # if ! ( CONFIG_REALTIME_ONLY ) if ( cpi -> pass == 1 ) {\n Pass1Encode ( cpi , size , dest , frame_flags ) ;\n }\n else if ( cpi -> pass == 2 ) {\n Pass2Encode ( cpi , size , dest , dest_end , frame_flags ) ;\n }\n else # endif encode_frame_to_data_rate ( cpi , size , dest , dest_end , frame_flags ) ;\n if ( cpi -> compressor_speed == 2 ) {\n unsigned int duration , duration2 ;\n vpx_usec_timer_mark ( & tsctimer ) ;\n vpx_usec_timer_mark ( & ticktimer ) ;\n duration = ( int ) ( vpx_usec_timer_elapsed ( & ticktimer ) ) ;\n duration2 = ( unsigned int ) ( ( double ) duration / 2 ) ;\n if ( cm -> frame_type != KEY_FRAME ) {\n if ( cpi -> avg_encode_time == 0 ) cpi -> avg_encode_time = duration ;\n else cpi -> avg_encode_time = ( 7 * cpi -> avg_encode_time + duration ) >> 3 ;\n }\n if ( duration2 ) {\n {\n if ( cpi -> avg_pick_mode_time == 0 ) cpi -> avg_pick_mode_time = duration2 ;\n else cpi -> avg_pick_mode_time = ( 7 * cpi -> avg_pick_mode_time + duration2 ) >> 3 ;\n }\n }\n }\n if ( cm -> refresh_entropy_probs == 0 ) {\n vpx_memcpy ( & cm -> fc , & cm -> lfc , sizeof ( cm -> fc ) ) ;\n }\n if ( cm -> refresh_alt_ref_frame ) vpx_memcpy ( & cpi -> lfc_a , & cm -> fc , sizeof ( cm -> fc ) ) ;\n if ( cm -> refresh_golden_frame ) vpx_memcpy ( & cpi -> lfc_g , & cm -> fc , sizeof ( cm -> fc ) ) ;\n if ( cm -> refresh_last_frame ) vpx_memcpy ( & cpi -> lfc_n , & cm -> fc , sizeof ( cm -> fc ) ) ;\n if ( * size > 0 ) {\n cpi -> droppable = ! frame_is_reference ( cpi ) ;\n cm -> refresh_entropy_probs = 1 ;\n cm -> refresh_alt_ref_frame = 0 ;\n cm -> refresh_golden_frame = 0 ;\n cm -> refresh_last_frame = 1 ;\n cm -> frame_type = INTER_FRAME ;\n }\n if ( cpi -> oxcf . number_of_layers > 1 ) save_layer_context ( cpi ) ;\n vpx_usec_timer_mark ( & cmptimer ) ;\n cpi -> time_compress_data += vpx_usec_timer_elapsed ( & cmptimer ) ;\n if ( cpi -> b_calculate_psnr && cpi -> pass != 1 && cm -> show_frame ) {\n generate_psnr_packet ( cpi ) ;\n }\n # if CONFIG_INTERNAL_STATS if ( cpi -> pass != 1 ) {\n cpi -> bytes += * size ;\n if ( cm -> show_frame ) {\n cpi -> common . show_frame_mi = cpi -> common . mi ;\n cpi -> count ++ ;\n if ( cpi -> b_calculate_psnr ) {\n uint64_t ye , ue , ve ;\n double frame_psnr ;\n YV12_BUFFER_CONFIG * orig = cpi -> Source ;\n YV12_BUFFER_CONFIG * recon = cpi -> common . frame_to_show ;\n int y_samples = orig -> y_height * orig -> y_width ;\n int uv_samples = orig -> uv_height * orig -> uv_width ;\n int t_samples = y_samples + 2 * uv_samples ;\n double sq_error ;\n ye = calc_plane_error ( orig -> y_buffer , orig -> y_stride , recon -> y_buffer , recon -> y_stride , orig -> y_width , orig -> y_height ) ;\n ue = calc_plane_error ( orig -> u_buffer , orig -> uv_stride , recon -> u_buffer , recon -> uv_stride , orig -> uv_width , orig -> uv_height ) ;\n ve = calc_plane_error ( orig -> v_buffer , orig -> uv_stride , recon -> v_buffer , recon -> uv_stride , orig -> uv_width , orig -> uv_height ) ;\n sq_error = ( double ) ( ye + ue + ve ) ;\n frame_psnr = vpx_sse_to_psnr ( t_samples , 255.0 , sq_error ) ;\n cpi -> total_y += vpx_sse_to_psnr ( y_samples , 255.0 , ( double ) ye ) ;\n cpi -> total_u += vpx_sse_to_psnr ( uv_samples , 255.0 , ( double ) ue ) ;\n cpi -> total_v += vpx_sse_to_psnr ( uv_samples , 255.0 , ( double ) ve ) ;\n cpi -> total_sq_error += sq_error ;\n cpi -> total += frame_psnr ;\n # if CONFIG_POSTPROC {\n YV12_BUFFER_CONFIG * pp = & cm -> post_proc_buffer ;\n double sq_error2 ;\n double frame_psnr2 , frame_ssim2 = 0 ;\n double weight = 0 ;\n vp8_deblock ( cm , cm -> frame_to_show , & cm -> post_proc_buffer , cm -> filter_level * 10 / 6 , 1 , 0 ) ;\n vp8_clear_system_state ( ) ;\n ye = calc_plane_error ( orig -> y_buffer , orig -> y_stride , pp -> y_buffer , pp -> y_stride , orig -> y_width , orig -> y_height ) ;\n ue = calc_plane_error ( orig -> u_buffer , orig -> uv_stride , pp -> u_buffer , pp -> uv_stride , orig -> uv_width , orig -> uv_height ) ;\n ve = calc_plane_error ( orig -> v_buffer , orig -> uv_stride , pp -> v_buffer , pp -> uv_stride , orig -> uv_width , orig -> uv_height ) ;\n sq_error2 = ( double ) ( ye + ue + ve ) ;\n frame_psnr2 = vpx_sse_to_psnr ( t_samples , 255.0 , sq_error2 ) ;\n cpi -> totalp_y += vpx_sse_to_psnr ( y_samples , 255.0 , ( double ) ye ) ;\n cpi -> totalp_u += vpx_sse_to_psnr ( uv_samples , 255.0 , ( double ) ue ) ;\n cpi -> totalp_v += vpx_sse_to_psnr ( uv_samples , 255.0 , ( double ) ve ) ;\n cpi -> total_sq_error2 += sq_error2 ;\n cpi -> totalp += frame_psnr2 ;\n frame_ssim2 = vp8_calc_ssim ( cpi -> Source , & cm -> post_proc_buffer , 1 , & weight ) ;\n cpi -> summed_quality += frame_ssim2 * weight ;\n cpi -> summed_weights += weight ;\n if ( cpi -> oxcf . number_of_layers > 1 ) {\n unsigned int i ;\n for ( i = cpi -> current_layer ;\n i < cpi -> oxcf . number_of_layers ;\n i ++ ) {\n cpi -> frames_in_layer [ i ] ++ ;\n cpi -> bytes_in_layer [ i ] += * size ;\n cpi -> sum_psnr [ i ] += frame_psnr ;\n cpi -> sum_psnr_p [ i ] += frame_psnr2 ;\n cpi -> total_error2 [ i ] += sq_error ;\n cpi -> total_error2_p [ i ] += sq_error2 ;\n cpi -> sum_ssim [ i ] += frame_ssim2 * weight ;\n cpi -> sum_weights [ i ] += weight ;\n }\n }\n }\n # endif }\n if ( cpi -> b_calculate_ssimg ) {\n double y , u , v , frame_all ;\n frame_all = vp8_calc_ssimg ( cpi -> Source , cm -> frame_to_show , & y , & u , & v ) ;\n if ( cpi -> oxcf . number_of_layers > 1 ) {\n unsigned int i ;\n for ( i = cpi -> current_layer ;\n i < cpi -> oxcf . number_of_layers ;\n i ++ ) {\n if ( ! cpi -> b_calculate_psnr ) cpi -> frames_in_layer [ i ] ++ ;\n cpi -> total_ssimg_y_in_layer [ i ] += y ;\n cpi -> total_ssimg_u_in_layer [ i ] += u ;\n cpi -> total_ssimg_v_in_layer [ i ] += v ;\n cpi -> total_ssimg_all_in_layer [ i ] += frame_all ;\n }\n }\n else {\n cpi -> total_ssimg_y += y ;\n cpi -> total_ssimg_u += u ;\n cpi -> total_ssimg_v += v ;\n cpi -> total_ssimg_all += frame_all ;\n }\n }\n }\n }\n # if 0 if ( cpi -> common . frame_type != 0 && cpi -> common . base_qindex == cpi -> oxcf . worst_allowed_q ) {\n skiptruecount += cpi -> skip_true_count ;\n skipfalsecount += cpi -> skip_false_count ;\n }\n # endif # if 0 if ( cpi -> pass != 1 ) {\n FILE * f = fopen ( \"skip.stt\" , \"a\" ) ;\n fprintf ( f , \"frame:%4d flags:%4x Q:%4d P:%4d Size:%5d\\n\" , cpi -> common . current_video_frame , * frame_flags , cpi -> common . base_qindex , cpi -> prob_skip_false , * size ) ;\n if ( cpi -> is_src_frame_alt_ref == 1 ) fprintf ( f , \"skipcount: %4d framesize: %d\\n\" , cpi -> skip_true_count , * size ) ;\n fclose ( f ) ;\n }\n # endif # endif cpi -> common . error . setjmp = 0 ;\n return 0 ;\n }"}
{"idx": 15075, "target": 0, "func": "static void rpc_test ( void ) {\n struct msg * msg , * msg2 ;\n struct kill * attack ;\n struct run * run ;\n struct evbuffer * tmp = evbuffer_new ( ) ;\n struct timeval tv_start , tv_end ;\n uint32_t tag ;\n int i ;\n fprintf ( stdout , \"Testing RPC: \" ) ;\n msg = msg_new ( ) ;\n EVTAG_ASSIGN ( msg , from_name , \"niels\" ) ;\n EVTAG_ASSIGN ( msg , to_name , \"phoenix\" ) ;\n if ( EVTAG_GET ( msg , attack , & attack ) == - 1 ) {\n fprintf ( stderr , \"Failed to set kill message.\\n\" ) ;\n exit ( 1 ) ;\n }\n EVTAG_ASSIGN ( attack , weapon , \"feather\" ) ;\n EVTAG_ASSIGN ( attack , action , \"tickle\" ) ;\n evutil_gettimeofday ( & tv_start , NULL ) ;\n for ( i = 0 ;\n i < 1000 ;\n ++ i ) {\n run = EVTAG_ADD ( msg , run ) ;\n if ( run == NULL ) {\n fprintf ( stderr , \"Failed to add run message.\\n\" ) ;\n exit ( 1 ) ;\n }\n EVTAG_ASSIGN ( run , how , \"very fast but with some data in it\" ) ;\n EVTAG_ASSIGN ( run , fixed_bytes , ( unsigned char * ) \"012345678901234567890123\" ) ;\n }\n if ( msg_complete ( msg ) == - 1 ) {\n fprintf ( stderr , \"Failed to make complete message.\\n\" ) ;\n exit ( 1 ) ;\n }\n evtag_marshal_msg ( tmp , 0xdeaf , msg ) ;\n if ( evtag_peek ( tmp , & tag ) == - 1 ) {\n fprintf ( stderr , \"Failed to peak tag.\\n\" ) ;\n exit ( 1 ) ;\n }\n if ( tag != 0xdeaf ) {\n fprintf ( stderr , \"Got incorrect tag: %0x.\\n\" , tag ) ;\n exit ( 1 ) ;\n }\n msg2 = msg_new ( ) ;\n if ( evtag_unmarshal_msg ( tmp , 0xdeaf , msg2 ) == - 1 ) {\n fprintf ( stderr , \"Failed to unmarshal message.\\n\" ) ;\n exit ( 1 ) ;\n }\n evutil_gettimeofday ( & tv_end , NULL ) ;\n evutil_timersub ( & tv_end , & tv_start , & tv_end ) ;\n fprintf ( stderr , \"(%.1f us/add) \" , ( float ) tv_end . tv_sec / ( float ) i * 1000000.0 + tv_end . tv_usec / ( float ) i ) ;\n if ( ! EVTAG_HAS ( msg2 , from_name ) || ! EVTAG_HAS ( msg2 , to_name ) || ! EVTAG_HAS ( msg2 , attack ) ) {\n fprintf ( stderr , \"Missing data structures.\\n\" ) ;\n exit ( 1 ) ;\n }\n if ( EVTAG_LEN ( msg2 , run ) != i ) {\n fprintf ( stderr , \"Wrong number of run messages.\\n\" ) ;\n exit ( 1 ) ;\n }\n msg_free ( msg ) ;\n msg_free ( msg2 ) ;\n evbuffer_free ( tmp ) ;\n fprintf ( stdout , \"OK\\n\" ) ;\n }"}
{"idx": 15076, "target": 0, "func": "int ShellBrowserMain ( const content : : MainFunctionParams & parameters , const scoped_ptr < content : : BrowserMainRunner > & main_runner ) {\n int exit_code = main_runner -> Initialize ( parameters ) ;\n DCHECK_LT ( exit_code , 0 ) << \"BrowserMainRunner::Initialize failed in ShellBrowserMain\" ;\n if ( exit_code >= 0 ) return exit_code ;\n # if ! defined ( OS_ANDROID ) exit_code = main_runner -> Run ( ) ;\n main_runner -> Shutdown ( ) ;\n # endif return exit_code ;\n }"}
{"idx": 15077, "target": 0, "func": "ASSERT_TRUE ( WaitFor ( downloads : : OnDeterminingFilename : : kEventName , base : : StringPrintf ( R \"([{\n\" id \": %d, \" filename \": \" slow . txt \"}\n])\" , result_id ) ) )"}
{"idx": 15078, "target": 0, "func": "static gboolean memiszero ( const void * ptr , size_t count ) {\n const guint8 * p = ( const guint8 * ) ptr ;\n while ( count != 0 ) {\n if ( * p != 0 ) return FALSE ;\n p ++ ;\n count -- ;\n }\n return TRUE ;\n }"}
{"idx": 15079, "target": 0, "func": "void mime_hdr_describe ( HdrHeapObjImpl * raw , bool recurse ) {\n MIMEFieldBlockImpl * fblock ;\n MIMEHdrImpl * obj = ( MIMEHdrImpl * ) raw ;\n Debug ( \"http\" , \"\\n\\t[PBITS: 0x%08X%08X, SLACC: 0x%04X%04X%04X%04X, HEADBLK: %p, TAILBLK: %p]\" , ( uint32_t ) ( ( obj -> m_presence_bits >> 32 ) & ( TOK_64_CONST ( 0xFFFFFFFF ) ) ) , ( uint32_t ) ( ( obj -> m_presence_bits >> 0 ) & ( TOK_64_CONST ( 0xFFFFFFFF ) ) ) , obj -> m_slot_accelerators [ 0 ] , obj -> m_slot_accelerators [ 1 ] , obj -> m_slot_accelerators [ 2 ] , obj -> m_slot_accelerators [ 3 ] , & ( obj -> m_first_fblock ) , obj -> m_fblock_list_tail ) ;\n Debug ( \"http\" , \"\\t[CBITS: 0x%08X, T_MAXAGE: %d, T_SMAXAGE: %d, T_MAXSTALE: %d, T_MINFRESH: %d, PNO$: %d]\" , obj -> m_cooked_stuff . m_cache_control . m_mask , obj -> m_cooked_stuff . m_cache_control . m_secs_max_age , obj -> m_cooked_stuff . m_cache_control . m_secs_s_maxage , obj -> m_cooked_stuff . m_cache_control . m_secs_max_stale , obj -> m_cooked_stuff . m_cache_control . m_secs_min_fresh , obj -> m_cooked_stuff . m_pragma . m_no_cache ) ;\n for ( fblock = & ( obj -> m_first_fblock ) ;\n fblock != nullptr ;\n fblock = fblock -> m_next ) {\n if ( recurse || ( fblock == & ( obj -> m_first_fblock ) ) ) {\n obj_describe ( ( HdrHeapObjImpl * ) fblock , recurse ) ;\n }\n }\n }"}
{"idx": 15080, "target": 0, "func": "static int dissect_h245_MultiplexEntrySend ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MultiplexEntrySend , MultiplexEntrySend_sequence ) ;\n return offset ;\n }"}
{"idx": 15081, "target": 0, "func": "static void fill_picture_entry ( DXVA_PicEntry_H264 * pic , unsigned index , unsigned flag ) {\n assert ( ( index & 0x7f ) == index && ( flag & 0x01 ) == flag ) ;\n pic -> bPicEntry = index | ( flag << 7 ) ;\n }"}
{"idx": 15082, "target": 0, "func": "static void deep_count_got_info ( GObject * source_object , GAsyncResult * res , gpointer user_data ) {\n GFileInfo * info ;\n const char * id ;\n GFile * file = ( GFile * ) source_object ;\n DeepCountState * state = ( DeepCountState * ) user_data ;\n info = g_file_query_info_finish ( file , res , NULL ) ;\n if ( info != NULL ) {\n id = g_file_info_get_attribute_string ( info , G_FILE_ATTRIBUTE_ID_FILESYSTEM ) ;\n state -> fs_id = g_strdup ( id ) ;\n g_object_unref ( info ) ;\n }\n deep_count_load ( state , file ) ;\n }"}
{"idx": 15083, "target": 0, "func": "static int dissect_udvm_reference_operand_memory ( guint8 * buff , guint operand_address , guint16 * value , guint * result_dest ) {\n guint bytecode ;\n guint16 operand ;\n guint offset = operand_address ;\n guint test_bits ;\n guint8 temp_data ;\n guint16 temp_data16 ;\n if ( operand_address >= UDVM_MEMORY_SIZE ) return - 1 ;\n bytecode = buff [ operand_address ] ;\n test_bits = bytecode >> 7 ;\n if ( test_bits == 1 ) {\n test_bits = bytecode >> 6 ;\n if ( test_bits == 2 ) {\n temp_data = buff [ operand_address ] & 0x3f ;\n operand = temp_data << 8 ;\n temp_data = buff [ ( operand_address + 1 ) & 0xffff ] ;\n operand = operand | temp_data ;\n operand = ( operand * 2 ) ;\n * result_dest = operand ;\n temp_data16 = buff [ operand ] << 8 ;\n temp_data16 = temp_data16 | buff [ ( operand + 1 ) & 0xffff ] ;\n * value = temp_data16 ;\n offset = offset + 2 ;\n }\n else {\n operand_address ++ ;\n operand = buff [ operand_address ] << 8 ;\n operand = operand | buff [ ( operand_address + 1 ) & 0xffff ] ;\n * result_dest = operand ;\n temp_data16 = buff [ operand ] << 8 ;\n temp_data16 = temp_data16 | buff [ ( operand + 1 ) & 0xffff ] ;\n * value = temp_data16 ;\n offset = offset + 3 ;\n }\n }\n else {\n operand = ( bytecode & 0x7f ) ;\n operand = ( operand * 2 ) ;\n * result_dest = operand ;\n temp_data16 = buff [ operand ] << 8 ;\n temp_data16 = temp_data16 | buff [ ( operand + 1 ) & 0xffff ] ;\n * value = temp_data16 ;\n offset ++ ;\n }\n if ( offset >= UDVM_MEMORY_SIZE || * result_dest >= UDVM_MEMORY_SIZE - 1 ) return - 1 ;\n return offset ;\n }"}
{"idx": 15084, "target": 0, "func": "static void nameserver_probe_failed ( struct nameserver * const ns ) {\n const struct timeval * timeout ;\n ( void ) evtimer_del ( & ns -> timeout_event ) ;\n if ( ns -> state == 1 ) {\n return ;\n }\n timeout = & global_nameserver_timeouts [ MIN ( ns -> failed_times , global_nameserver_timeouts_length - 1 ) ] ;\n ns -> failed_times ++ ;\n if ( evtimer_add ( & ns -> timeout_event , ( struct timeval * ) timeout ) < 0 ) {\n log ( EVDNS_LOG_WARN , \"Error from libevent when adding timer event for %s\" , debug_ntoa ( ns -> address ) ) ;\n }\n }"}
{"idx": 15085, "target": 0, "func": "static int dump_triggers_for_table ( char * table_name , char * db_name ) {\n char name_buff [ NAME_LEN * 4 + 3 ] ;\n char query_buff [ QUERY_LENGTH ] ;\n uint old_opt_compatible_mode = opt_compatible_mode ;\n MYSQL_RES * show_triggers_rs ;\n MYSQL_ROW row ;\n FILE * sql_file = md_result_file ;\n char db_cl_name [ MY_CS_NAME_SIZE ] ;\n int ret = TRUE ;\n DBUG_ENTER ( \"dump_triggers_for_table\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"db: %s, table_name: %s\" , db_name , table_name ) ) ;\n if ( path && ! ( sql_file = open_sql_file_for_table ( table_name , O_WRONLY | O_APPEND ) ) ) DBUG_RETURN ( 1 ) ;\n opt_compatible_mode &= ~ MASK_ANSI_QUOTES ;\n if ( switch_character_set_results ( mysql , \"binary\" ) ) goto done ;\n if ( fetch_db_collation ( db_name , db_cl_name , sizeof ( db_cl_name ) ) ) goto done ;\n my_snprintf ( query_buff , sizeof ( query_buff ) , \"SHOW TRIGGERS LIKE %s\" , quote_for_like ( table_name , name_buff ) ) ;\n if ( mysql_query_with_error_report ( mysql , & show_triggers_rs , query_buff ) ) goto done ;\n if ( ! mysql_num_rows ( show_triggers_rs ) ) goto skip ;\n if ( opt_xml ) print_xml_tag ( sql_file , \"\\t\" , \"\\n\" , \"triggers\" , \"name=\" , table_name , NullS ) ;\n while ( ( row = mysql_fetch_row ( show_triggers_rs ) ) ) {\n my_snprintf ( query_buff , sizeof ( query_buff ) , \"SHOW CREATE TRIGGER %s\" , quote_name ( row [ 0 ] , name_buff , TRUE ) ) ;\n if ( mysql_query ( mysql , query_buff ) ) {\n dump_trigger_old ( sql_file , show_triggers_rs , & row , table_name ) ;\n }\n else {\n MYSQL_RES * show_create_trigger_rs = mysql_store_result ( mysql ) ;\n if ( ! show_create_trigger_rs || dump_trigger ( sql_file , show_create_trigger_rs , db_name , db_cl_name ) ) goto done ;\n mysql_free_result ( show_create_trigger_rs ) ;\n }\n }\n if ( opt_xml ) {\n fputs ( \"\\t</triggers>\\n\" , sql_file ) ;\n check_io ( sql_file ) ;\n }\n skip : mysql_free_result ( show_triggers_rs ) ;\n if ( switch_character_set_results ( mysql , default_charset ) ) goto done ;\n opt_compatible_mode = old_opt_compatible_mode ;\n ret = FALSE ;\n done : if ( path ) my_fclose ( sql_file , MYF ( 0 ) ) ;\n DBUG_RETURN ( ret ) ;\n }"}
{"idx": 15086, "target": 0, "func": "static int dissect_h225_ServiceControlDescriptor ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_ServiceControlDescriptor , ServiceControlDescriptor_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 15087, "target": 1, "func": "SPL_METHOD ( SplFileObject , fputcsv ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char delimiter = intern -> u . file . delimiter , enclosure = intern -> u . file . enclosure , escape = intern -> u . file . escape ;\n char * delim = NULL , * enclo = NULL , * esc = NULL ;\n int d_len = 0 , e_len = 0 , esc_len = 0 , ret ;\n zval * fields = NULL ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"a|sss\" , & fields , & delim , & d_len , & enclo , & e_len , & esc , & esc_len ) == SUCCESS ) {\n switch ( ZEND_NUM_ARGS ( ) ) {\n case 4 : if ( esc_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"escape must be a character\" ) ;\n RETURN_FALSE ;\n }\n escape = esc [ 0 ] ;\n case 3 : if ( e_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"enclosure must be a character\" ) ;\n RETURN_FALSE ;\n }\n enclosure = enclo [ 0 ] ;\n case 2 : if ( d_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"delimiter must be a character\" ) ;\n RETURN_FALSE ;\n }\n delimiter = delim [ 0 ] ;\n case 1 : case 0 : break ;\n }\n ret = php_fputcsv ( intern -> u . file . stream , fields , delimiter , enclosure , escape TSRMLS_CC ) ;\n RETURN_LONG ( ret ) ;\n }\n }"}
{"idx": 15088, "target": 0, "func": "int archive_read_support_format_warc ( struct archive * _a ) {\n struct archive_read * a = ( struct archive_read * ) _a ;\n struct warc_s * w ;\n int r ;\n archive_check_magic ( _a , ARCHIVE_READ_MAGIC , ARCHIVE_STATE_NEW , \"archive_read_support_format_warc\" ) ;\n if ( ( w = calloc ( 1 , sizeof ( * w ) ) ) == NULL ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate warc data\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n r = __archive_read_register_format ( a , w , \"warc\" , _warc_bid , NULL , _warc_rdhdr , _warc_read , _warc_skip , NULL , _warc_cleanup , NULL , NULL ) ;\n if ( r != ARCHIVE_OK ) {\n free ( w ) ;\n return ( r ) ;\n }\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 15089, "target": 0, "func": "static int SpoolssStartPagePrinter_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n e_ctx_hnd policy_hnd ;\n char * pol_name ;\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , & policy_hnd , NULL , FALSE , FALSE ) ;\n dcerpc_fetch_polhnd_data ( & policy_hnd , & pol_name , NULL , NULL , NULL , pinfo -> num ) ;\n if ( pol_name ) col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , pol_name ) ;\n return offset ;\n }"}
{"idx": 15090, "target": 0, "func": "static int s302m_parse_frame_header ( AVCodecContext * avctx , const uint8_t * buf , int buf_size ) {\n uint32_t h ;\n int frame_size , channels , bits ;\n if ( buf_size <= AES3_HEADER_LEN ) {\n av_log ( avctx , AV_LOG_ERROR , \"frame is too short\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n h = AV_RB32 ( buf ) ;\n frame_size = ( h >> 16 ) & 0xffff ;\n channels = ( ( h >> 14 ) & 0x0003 ) * 2 + 2 ;\n bits = ( ( h >> 4 ) & 0x0003 ) * 4 + 16 ;\n if ( AES3_HEADER_LEN + frame_size != buf_size || bits > 24 ) {\n av_log ( avctx , AV_LOG_ERROR , \"frame has invalid header\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n avctx -> bits_per_coded_sample = bits ;\n if ( bits > 16 ) avctx -> sample_fmt = AV_SAMPLE_FMT_S32 ;\n else avctx -> sample_fmt = AV_SAMPLE_FMT_S16 ;\n avctx -> channels = channels ;\n avctx -> sample_rate = 48000 ;\n avctx -> bit_rate = 48000 * avctx -> channels * ( avctx -> bits_per_coded_sample + 4 ) + 32 * ( 48000 / ( buf_size * 8 / ( avctx -> channels * ( avctx -> bits_per_coded_sample + 4 ) ) ) ) ;\n return frame_size ;\n }"}
{"idx": 15091, "target": 0, "func": "static int dissect_h225_T_preGrantedARQ ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_T_preGrantedARQ , T_preGrantedARQ_sequence ) ;\n return offset ;\n }"}
{"idx": 15092, "target": 0, "func": "static int rm_read_header ( AVFormatContext * s ) {\n RMDemuxContext * rm = s -> priv_data ;\n AVStream * st ;\n AVIOContext * pb = s -> pb ;\n unsigned int tag ;\n int tag_size ;\n unsigned int start_time , duration ;\n unsigned int data_off = 0 , indx_off = 0 ;\n char buf [ 128 ] , mime [ 128 ] ;\n int flags = 0 ;\n int ret = - 1 ;\n unsigned size , v ;\n int64_t codec_pos ;\n tag = avio_rl32 ( pb ) ;\n if ( tag == MKTAG ( '.' , 'r' , 'a' , 0xfd ) ) {\n return rm_read_header_old ( s ) ;\n }\n else if ( tag != MKTAG ( '.' , 'R' , 'M' , 'F' ) ) {\n return AVERROR ( EIO ) ;\n }\n tag_size = avio_rb32 ( pb ) ;\n avio_skip ( pb , tag_size - 8 ) ;\n for ( ;\n ;\n ) {\n if ( avio_feof ( pb ) ) goto fail ;\n tag = avio_rl32 ( pb ) ;\n tag_size = avio_rb32 ( pb ) ;\n avio_rb16 ( pb ) ;\n av_log ( s , AV_LOG_TRACE , \"tag=%s size=%d\\n\" , av_fourcc2str ( tag ) , tag_size ) ;\n if ( tag_size < 10 && tag != MKTAG ( 'D' , 'A' , 'T' , 'A' ) ) goto fail ;\n switch ( tag ) {\n case MKTAG ( 'P' , 'R' , 'O' , 'P' ) : avio_rb32 ( pb ) ;\n avio_rb32 ( pb ) ;\n avio_rb32 ( pb ) ;\n avio_rb32 ( pb ) ;\n avio_rb32 ( pb ) ;\n duration = avio_rb32 ( pb ) ;\n s -> duration = av_rescale ( duration , AV_TIME_BASE , 1000 ) ;\n avio_rb32 ( pb ) ;\n indx_off = avio_rb32 ( pb ) ;\n data_off = avio_rb32 ( pb ) ;\n avio_rb16 ( pb ) ;\n flags = avio_rb16 ( pb ) ;\n break ;\n case MKTAG ( 'C' , 'O' , 'N' , 'T' ) : rm_read_metadata ( s , pb , 1 ) ;\n break ;\n case MKTAG ( 'M' , 'D' , 'P' , 'R' ) : st = avformat_new_stream ( s , NULL ) ;\n if ( ! st ) {\n ret = AVERROR ( ENOMEM ) ;\n goto fail ;\n }\n st -> id = avio_rb16 ( pb ) ;\n avio_rb32 ( pb ) ;\n st -> codecpar -> bit_rate = avio_rb32 ( pb ) ;\n avio_rb32 ( pb ) ;\n avio_rb32 ( pb ) ;\n start_time = avio_rb32 ( pb ) ;\n avio_rb32 ( pb ) ;\n duration = avio_rb32 ( pb ) ;\n st -> start_time = start_time ;\n st -> duration = duration ;\n if ( duration > 0 ) s -> duration = AV_NOPTS_VALUE ;\n get_str8 ( pb , buf , sizeof ( buf ) ) ;\n get_str8 ( pb , mime , sizeof ( mime ) ) ;\n st -> codecpar -> codec_type = AVMEDIA_TYPE_DATA ;\n st -> priv_data = ff_rm_alloc_rmstream ( ) ;\n if ( ! st -> priv_data ) return AVERROR ( ENOMEM ) ;\n size = avio_rb32 ( pb ) ;\n codec_pos = avio_tell ( pb ) ;\n ffio_ensure_seekback ( pb , 4 ) ;\n v = avio_rb32 ( pb ) ;\n if ( v == MKBETAG ( 'M' , 'L' , 'T' , 'I' ) ) {\n ret = rm_read_multi ( s , s -> pb , st , mime ) ;\n if ( ret < 0 ) goto fail ;\n avio_seek ( pb , codec_pos + size , SEEK_SET ) ;\n }\n else {\n avio_skip ( pb , - 4 ) ;\n if ( ff_rm_read_mdpr_codecdata ( s , s -> pb , st , st -> priv_data , size , mime ) < 0 ) goto fail ;\n }\n break ;\n case MKTAG ( 'D' , 'A' , 'T' , 'A' ) : goto header_end ;\n default : avio_skip ( pb , tag_size - 10 ) ;\n break ;\n }\n }\n header_end : rm -> nb_packets = avio_rb32 ( pb ) ;\n if ( ! rm -> nb_packets && ( flags & 4 ) ) rm -> nb_packets = 3600 * 25 ;\n avio_rb32 ( pb ) ;\n if ( ! data_off ) data_off = avio_tell ( pb ) - 18 ;\n if ( indx_off && ( pb -> seekable & AVIO_SEEKABLE_NORMAL ) && ! ( s -> flags & AVFMT_FLAG_IGNIDX ) && avio_seek ( pb , indx_off , SEEK_SET ) >= 0 ) {\n rm_read_index ( s ) ;\n avio_seek ( pb , data_off + 18 , SEEK_SET ) ;\n }\n return 0 ;\n fail : rm_read_close ( s ) ;\n return ret ;\n }"}
{"idx": 15093, "target": 0, "func": "void xsltDebug ( xsltTransformContextPtr ctxt , xmlNodePtr node ATTRIBUTE_UNUSED , xmlNodePtr inst ATTRIBUTE_UNUSED , xsltStylePreCompPtr comp ATTRIBUTE_UNUSED ) {\n int i , j ;\n xsltGenericError ( xsltGenericErrorContext , \"Templates:\\n\" ) ;\n for ( i = 0 , j = ctxt -> templNr - 1 ;\n ( ( i < 15 ) && ( j >= 0 ) ) ;\n i ++ , j -- ) {\n xsltGenericError ( xsltGenericErrorContext , \"#%d \" , i ) ;\n if ( ctxt -> templTab [ j ] -> name != NULL ) xsltGenericError ( xsltGenericErrorContext , \"name %s \" , ctxt -> templTab [ j ] -> name ) ;\n if ( ctxt -> templTab [ j ] -> match != NULL ) xsltGenericError ( xsltGenericErrorContext , \"name %s \" , ctxt -> templTab [ j ] -> match ) ;\n if ( ctxt -> templTab [ j ] -> mode != NULL ) xsltGenericError ( xsltGenericErrorContext , \"name %s \" , ctxt -> templTab [ j ] -> mode ) ;\n xsltGenericError ( xsltGenericErrorContext , \"\\n\" ) ;\n }\n xsltGenericError ( xsltGenericErrorContext , \"Variables:\\n\" ) ;\n for ( i = 0 , j = ctxt -> varsNr - 1 ;\n ( ( i < 15 ) && ( j >= 0 ) ) ;\n i ++ , j -- ) {\n xsltStackElemPtr cur ;\n if ( ctxt -> varsTab [ j ] == NULL ) continue ;\n xsltGenericError ( xsltGenericErrorContext , \"#%d\\n\" , i ) ;\n cur = ctxt -> varsTab [ j ] ;\n while ( cur != NULL ) {\n if ( cur -> comp == NULL ) {\n xsltGenericError ( xsltGenericErrorContext , \"corrupted !!!\\n\" ) ;\n }\n else if ( cur -> comp -> type == XSLT_FUNC_PARAM ) {\n xsltGenericError ( xsltGenericErrorContext , \"param \" ) ;\n }\n else if ( cur -> comp -> type == XSLT_FUNC_VARIABLE ) {\n xsltGenericError ( xsltGenericErrorContext , \"var \" ) ;\n }\n if ( cur -> name != NULL ) xsltGenericError ( xsltGenericErrorContext , \"%s \" , cur -> name ) ;\n else xsltGenericError ( xsltGenericErrorContext , \"noname !!!!\" ) ;\n # ifdef LIBXML_DEBUG_ENABLED if ( cur -> value != NULL ) {\n xmlXPathDebugDumpObject ( stdout , cur -> value , 1 ) ;\n }\n else {\n xsltGenericError ( xsltGenericErrorContext , \"NULL !!!!\" ) ;\n }\n # endif xsltGenericError ( xsltGenericErrorContext , \"\\n\" ) ;\n cur = cur -> next ;\n }\n }\n }"}
{"idx": 15094, "target": 0, "func": "static UBool makeFromUTable ( CnvExtData * extData , UCMTable * table ) {\n uint16_t * stage1 ;\n int32_t i , stage1Top , fromUCount ;\n fromUCount = prepareFromUMappings ( table ) ;\n extData -> fromUTableUChars = utm_open ( \"cnv extension fromUTableUChars\" , 0x10000 , UCNV_EXT_FROM_U_DATA_MASK + 1 , 2 ) ;\n extData -> fromUTableValues = utm_open ( \"cnv extension fromUTableValues\" , 0x10000 , UCNV_EXT_FROM_U_DATA_MASK + 1 , 4 ) ;\n extData -> fromUBytes = utm_open ( \"cnv extension fromUBytes\" , 0x10000 , UCNV_EXT_FROM_U_DATA_MASK + 1 , 1 ) ;\n extData -> stage2Top = MBCS_STAGE_2_FIRST_ASSIGNED ;\n extData -> stage3Top = MBCS_STAGE_3_FIRST_ASSIGNED ;\n extData -> stage3b [ 1 ] = UCNV_EXT_FROM_U_SUBCHAR1 ;\n extData -> stage3bTop = 2 ;\n utm_alloc ( extData -> fromUTableUChars ) ;\n utm_alloc ( extData -> fromUTableValues ) ;\n if ( ! generateFromUTrie ( extData , table , fromUCount ) ) {\n return FALSE ;\n }\n stage1 = extData -> stage1 ;\n stage1Top = extData -> stage1Top ;\n for ( i = 0 ;\n i < stage1Top ;\n ++ i ) {\n stage1 [ i ] = ( uint16_t ) ( stage1 [ i ] + stage1Top ) ;\n }\n return TRUE ;\n }"}
{"idx": 15095, "target": 0, "func": "static void decode_p_block ( FourXContext * f , uint16_t * dst , uint16_t * src , int log2w , int log2h , int stride ) {\n const int index = size2index [ log2h ] [ log2w ] ;\n const int h = 1 << log2h ;\n int code = get_vlc2 ( & f -> gb , block_type_vlc [ 1 - ( f -> version > 1 ) ] [ index ] . table , BLOCK_TYPE_VLC_BITS , 1 ) ;\n uint16_t * start = ( uint16_t * ) f -> last_picture -> data [ 0 ] ;\n uint16_t * end = start + stride * ( f -> avctx -> height - h + 1 ) - ( 1 << log2w ) ;\n assert ( code >= 0 && code <= 6 ) ;\n if ( code == 0 ) {\n src += f -> mv [ bytestream2_get_byte ( & f -> g ) ] ;\n if ( start > src || src > end ) {\n av_log ( f -> avctx , AV_LOG_ERROR , \"mv out of pic\\n\" ) ;\n return ;\n }\n mcdc ( dst , src , log2w , h , stride , 1 , 0 ) ;\n }\n else if ( code == 1 ) {\n log2h -- ;\n decode_p_block ( f , dst , src , log2w , log2h , stride ) ;\n decode_p_block ( f , dst + ( stride << log2h ) , src + ( stride << log2h ) , log2w , log2h , stride ) ;\n }\n else if ( code == 2 ) {\n log2w -- ;\n decode_p_block ( f , dst , src , log2w , log2h , stride ) ;\n decode_p_block ( f , dst + ( 1 << log2w ) , src + ( 1 << log2w ) , log2w , log2h , stride ) ;\n }\n else if ( code == 3 && f -> version < 2 ) {\n mcdc ( dst , src , log2w , h , stride , 1 , 0 ) ;\n }\n else if ( code == 4 ) {\n src += f -> mv [ bytestream2_get_byte ( & f -> g ) ] ;\n if ( start > src || src > end ) {\n av_log ( f -> avctx , AV_LOG_ERROR , \"mv out of pic\\n\" ) ;\n return ;\n }\n mcdc ( dst , src , log2w , h , stride , 1 , bytestream2_get_le16 ( & f -> g2 ) ) ;\n }\n else if ( code == 5 ) {\n mcdc ( dst , src , log2w , h , stride , 0 , bytestream2_get_le16 ( & f -> g2 ) ) ;\n }\n else if ( code == 6 ) {\n if ( log2w ) {\n dst [ 0 ] = bytestream2_get_le16 ( & f -> g2 ) ;\n dst [ 1 ] = bytestream2_get_le16 ( & f -> g2 ) ;\n }\n else {\n dst [ 0 ] = bytestream2_get_le16 ( & f -> g2 ) ;\n dst [ stride ] = bytestream2_get_le16 ( & f -> g2 ) ;\n }\n }\n }"}
{"idx": 15096, "target": 0, "func": "void proto_register_pvfs ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_pvfs_magic_nr , {\n \"Magic Number\" , \"pvfs.magic_nr\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_uid , {\n \"UID\" , \"pvfs.uid\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_gid , {\n \"GID\" , \"pvfs.gid\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_mode , {\n \"Mode\" , \"pvfs.mode\" , FT_UINT32 , BASE_DEC , VALS ( names_pvfs_mode ) , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_tag , {\n \"Tag\" , \"pvfs.tag\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_size , {\n \"Size\" , \"pvfs.size\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_release_number , {\n \"Release Number\" , \"pvfs.release_number\" , FT_UINT32 , BASE_CUSTOM , CF_FUNC ( pvfc_fmt_release_num ) , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_encoding , {\n \"Encoding\" , \"pvfs.encoding\" , FT_UINT32 , BASE_DEC , VALS ( names_pvfs_encoding ) , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_server_op , {\n \"Server Operation\" , \"pvfs.server_op\" , FT_UINT32 , BASE_DEC , VALS ( names_pvfs_server_op ) , 0 , NULL , HFILL }\n }\n , # if 0 {\n & hf_pvfs_handle , {\n \"Handle\" , \"pvfs.handle\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , # endif {\n & hf_pvfs_fs_id , {\n \"fs_id\" , \"pvfs.fs_id\" , FT_UINT32 , BASE_HEX , NULL , 0 , \"File System ID\" , HFILL }\n }\n , {\n & hf_pvfs_attrmask , {\n \"Attribute Mask\" , \"pvfs.attrmask\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_attr , {\n \"attr\" , \"pvfs.attribute\" , FT_UINT32 , BASE_HEX , VALS ( names_pvfs_attr ) , 0 , \"Attribute\" , HFILL }\n }\n , {\n & hf_pvfs_ds_type , {\n \"ds_type\" , \"pvfs.ds_type\" , FT_UINT32 , BASE_HEX , VALS ( names_pvfs_ds_type ) , 0 , \"Type\" , HFILL }\n }\n , {\n & hf_pvfs_error , {\n \"Result\" , \"pvfs.error\" , FT_UINT32 , BASE_HEX , VALS ( names_pvfs_error ) , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_atime , {\n \"atime\" , \"pvfs.atime\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_LOCAL , NULL , 0 , \"Access Time\" , HFILL }\n }\n , {\n & hf_pvfs_atime_sec , {\n \"seconds\" , \"pvfs.atime.sec\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Access Time (seconds)\" , HFILL }\n }\n , {\n & hf_pvfs_atime_nsec , {\n \"microseconds\" , \"pvfs.atime.usec\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Access Time (microseconds)\" , HFILL }\n }\n , {\n & hf_pvfs_mtime , {\n \"mtime\" , \"pvfs.mtime\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_LOCAL , NULL , 0 , \"Modify Time\" , HFILL }\n }\n , {\n & hf_pvfs_mtime_sec , {\n \"seconds\" , \"pvfs.mtime.sec\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Modify Time (seconds)\" , HFILL }\n }\n , {\n & hf_pvfs_mtime_nsec , {\n \"microseconds\" , \"pvfs.mtime.usec\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Modify Time (microseconds)\" , HFILL }\n }\n , {\n & hf_pvfs_ctime , {\n \"ctime\" , \"pvfs.ctime\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_LOCAL , NULL , 0 , \"Creation Time\" , HFILL }\n }\n , {\n & hf_pvfs_ctime_sec , {\n \"seconds\" , \"pvfs.ctime.sec\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Creation Time (seconds)\" , HFILL }\n }\n , {\n & hf_pvfs_ctime_nsec , {\n \"microseconds\" , \"pvfs.ctime.usec\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Creation Time (microseconds)\" , HFILL }\n }\n , {\n & hf_pvfs_parent_atime , {\n \"Parent atime\" , \"pvfs.parent_atime\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_LOCAL , NULL , 0 , \"Access Time\" , HFILL }\n }\n , {\n & hf_pvfs_parent_atime_sec , {\n \"seconds\" , \"pvfs.parent_atime.sec\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Access Time (seconds)\" , HFILL }\n }\n , {\n & hf_pvfs_parent_atime_nsec , {\n \"microseconds\" , \"pvfs.parent_atime.usec\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Access Time (microseconds)\" , HFILL }\n }\n , {\n & hf_pvfs_parent_mtime , {\n \"Parent mtime\" , \"pvfs.parent_mtime\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_LOCAL , NULL , 0 , \"Modify Time\" , HFILL }\n }\n , {\n & hf_pvfs_parent_mtime_sec , {\n \"seconds\" , \"pvfs.parent_mtime.sec\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Modify Time (seconds)\" , HFILL }\n }\n , {\n & hf_pvfs_parent_mtime_nsec , {\n \"microseconds\" , \"pvfs.parent_mtime.usec\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Modify Time (microseconds)\" , HFILL }\n }\n , {\n & hf_pvfs_parent_ctime , {\n \"Parent ctime\" , \"pvfs.parent_ctime\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_LOCAL , NULL , 0 , \"Creation Time\" , HFILL }\n }\n , {\n & hf_pvfs_parent_ctime_sec , {\n \"seconds\" , \"pvfs.parent_ctime.sec\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Creation Time (seconds)\" , HFILL }\n }\n , {\n & hf_pvfs_parent_ctime_nsec , {\n \"microseconds\" , \"pvfs.parent_ctime.usec\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Creation Time (microseconds)\" , HFILL }\n }\n , {\n & hf_pvfs_dfile_count , {\n \"dfile_count\" , \"pvfs.dfile_count\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_distribution , {\n \"Distribution\" , \"pvfs.distribution\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_dirent_count , {\n \"Dir Entry Count\" , \"pvfs.dirent_count\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"Directory Entry Count\" , HFILL }\n }\n , {\n & hf_pvfs_directory_version , {\n \"Directory Version\" , \"pvfs.directory_version\" , FT_UINT64 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_path , {\n \"Path\" , \"pvfs.path\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_total_completed , {\n \"Bytes Completed\" , \"pvfs.bytes_completed\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_io_dist , {\n \"Name\" , \"pvfs.distribution.name\" , FT_STRING , BASE_NONE , NULL , 0 , \"Distribution Name\" , HFILL }\n }\n , {\n & hf_pvfs_aggregate_size , {\n \"Aggregate Size\" , \"pvfs.aggregate_size\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_io_type , {\n \"I/O Type\" , \"pvfs.io_type\" , FT_UINT32 , BASE_DEC , VALS ( names_pvfs_io_type ) , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_flowproto_type , {\n \"Flow Protocol Type\" , \"pvfs.flowproto_type\" , FT_UINT32 , BASE_DEC , VALS ( names_pvfs_flowproto_type ) , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_server_param , {\n \"Server Parameter\" , \"pvfs.server_param\" , FT_UINT32 , BASE_DEC , VALS ( names_pvfs_server_param ) , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_prev_value , {\n \"Previous Value\" , \"pvfs.prev_value\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , # if 0 {\n & hf_pvfs_ram_free_bytes , {\n \"RAM Free Bytes\" , \"pvfs.ram.free_bytes\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , # endif {\n & hf_pvfs_bytes_available , {\n \"Bytes Available\" , \"pvfs.bytes_available\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_bytes_total , {\n \"Bytes Total\" , \"pvfs.bytes_total\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_ram_bytes_total , {\n \"RAM Bytes Total\" , \"pvfs.ram_bytes_total\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_ram_bytes_free , {\n \"RAM Bytes Free\" , \"pvfs.ram_bytes_free\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_load_average_1s , {\n \"Load Average (1s)\" , \"pvfs.load_average.1s\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_load_average_5s , {\n \"Load Average (5s)\" , \"pvfs.load_average.5s\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_load_average_15s , {\n \"Load Average (15s)\" , \"pvfs.load_average.15s\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_uptime_seconds , {\n \"Uptime (seconds)\" , \"pvfs.uptime\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_handles_available , {\n \"Handles Available\" , \"pvfs.handles_available\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_handles_total , {\n \"Total Handles\" , \"pvfs.total_handles\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_unused , {\n \"Unused\" , \"pvfs.unused\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_context_id , {\n \"Context ID\" , \"pvfs.context_id\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_offset , {\n \"Offset\" , \"pvfs.offset\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_stride , {\n \"Stride\" , \"pvfs.stride\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_ub , {\n \"ub\" , \"pvfs.ub\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_lb , {\n \"lb\" , \"pvfs.lb\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_end_time_ms , {\n \"end_time_ms\" , \"pvfs.end_time_ms\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_cur_time_ms , {\n \"cur_time_ms\" , \"pvfs.cur_time_ms\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_start_time_ms , {\n \"start_time_ms\" , \"pvfs.start_time_ms\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_bytes_written , {\n \"bytes_written\" , \"pvfs.bytes_written\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_bytes_read , {\n \"bytes_read\" , \"pvfs.bytes_read\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_metadata_write , {\n \"metadata_write\" , \"pvfs.metadata_write\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_metadata_read , {\n \"metadata_read\" , \"pvfs.metadata_read\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_b_size , {\n \"Size of bstream (if applicable)\" , \"pvfs.b_size\" , FT_UINT64 , BASE_DEC , NULL , 0 , \"Size of bstream\" , HFILL }\n }\n , {\n & hf_pvfs_k_size , {\n \"Number of keyvals (if applicable)\" , \"pvfs.k_size\" , FT_UINT64 , BASE_DEC , NULL , 0 , \"Number of keyvals\" , HFILL }\n }\n , {\n & hf_pvfs_id_gen_t , {\n \"id_gen_t\" , \"pvfs.id_gen_t\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_attribute_key , {\n \"Attribute key\" , \"pvfs.attribute.key\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_attribute_value , {\n \"Attribute value\" , \"pvfs.attribute.value\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_strip_size , {\n \"Strip size\" , \"pvfs.strip_size\" , FT_UINT64 , BASE_DEC , NULL , 0 , \"Strip size (bytes)\" , HFILL }\n }\n , {\n & hf_pvfs_ereg , {\n \"ereg\" , \"pvfs.ereg\" , FT_INT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_sreg , {\n \"sreg\" , \"pvfs.sreg\" , FT_INT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_num_eregs , {\n \"Number of eregs\" , \"pvfs.num_eregs\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_num_blocks , {\n \"Number of blocks\" , \"pvfs.num_blocks\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_num_contig_chunks , {\n \"Number of contig_chunks\" , \"pvfs.num_contig_chunks\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_server_nr , {\n \"Server #\" , \"pvfs.server_nr\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_server_count , {\n \"Number of servers\" , \"pvfs.server_count\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_fh_length , {\n \"length\" , \"pvfs.fh.length\" , FT_UINT32 , BASE_DEC , NULL , 0 , \"file handle length\" , HFILL }\n }\n , {\n & hf_pvfs_fh_hash , {\n \"hash\" , \"pvfs.fh.hash\" , FT_UINT32 , BASE_HEX , NULL , 0 , \"file handle hash\" , HFILL }\n }\n , {\n & hf_pvfs_permissions , {\n \"Permissions\" , \"pvfs.permissions\" , FT_UINT32 , BASE_OCT , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_server_mode , {\n \"Server Mode\" , \"pvfs.server_mode\" , FT_UINT32 , BASE_DEC , VALS ( names_pvfs_server_mode ) , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_depth , {\n \"depth\" , \"pvfs.depth\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_num_nested_req , {\n \"num_nested_req\" , \"pvfs.num_nested_req\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_committed , {\n \"committed\" , \"pvfs.committed\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_refcount , {\n \"refcount\" , \"pvfs.refcount\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_numreq , {\n \"numreq\" , \"pvfs.numreq\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_truncate_request_flags , {\n \"flags\" , \"pvfs.truncate_request_flags\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_ds_position , {\n \"ds_position\" , \"pvfs.ds_position\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_dirent_limit , {\n \"dirent_limit\" , \"pvfs.dirent_limit\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_flush_request_flags , {\n \"flags\" , \"pvfs.flush_request_flags\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_next_id , {\n \"next_id\" , \"pvfs.next_id\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_mgmt_perf_mon_request_count , {\n \"count\" , \"pvfs.mgmt_perf_mon_request.count\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_mgmt_perf_mon_request_event_count , {\n \"Event count\" , \"pvfs.mgmt_perf_mon_request.event_count\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_lookup_path_response_handle_count , {\n \"Handle Count\" , \"pvfs.lookup_path_response.handle_count\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_getconfig_response_total_bytes , {\n \"Total Bytes\" , \"pvfs.getconfig_response.total_bytes\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_getconfig_response_lines , {\n \"Lines\" , \"pvfs.getconfig_response.lines\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_getconfig_response_config_bytes , {\n \"Config Bytes\" , \"pvfs.getconfig_response.config_bytes\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_mgmt_perf_stat_valid_flag , {\n \"valid_flag\" , \"pvfs.mgmt_perf_stat.valid_flag\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_mgmt_perf_stat_id , {\n \"id\" , \"pvfs.mgmt_perf_stat.id\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_mgmt_perf_mon_response_suggested_next_id , {\n \"suggested_next_id\" , \"pvfs.mgmt_perf_mon_response.suggested_next_id\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_mgmt_perf_mon_response_perf_array_count , {\n \"perf_array_count\" , \"pvfs.mgmt_perf_mon_response.perf_array_count\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_mgmt_iterate_handles_response_ds_position , {\n \"ds_position\" , \"pvfs.mgmt_iterate_handles_response.ds_position\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_mgmt_iterate_handles_response_handle_count , {\n \"handle_count\" , \"pvfs.mgmt_iterate_handles_response.handle_count\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_mgmt_dspace_info_list_response_dspace_info_count , {\n \"dspace_info_count\" , \"pvfs.mgmt_dspace_info_list_response.dspace_info_count\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_mgmt_event_mon_response_api , {\n \"api\" , \"pvfs.mgmt_event_mon_response.api\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_mgmt_event_mon_response_operation , {\n \"operation\" , \"pvfs.mgmt_event_mon_response.operation\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_mgmt_event_mon_response_value , {\n \"value\" , \"pvfs.mgmt_event_mon_response.value\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_mgmt_event_mon_response_flags , {\n \"flags\" , \"pvfs.mgmt_event_mon_response.flags\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_mgmt_event_mon_response_tv_sec , {\n \"tv_sec\" , \"pvfs.mgmt_event_mon_response.tv_sec\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_mgmt_event_mon_response_tv_usec , {\n \"tv_usec\" , \"pvfs.mgmt_event_mon_response.tv_usec\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_fill_bytes , {\n \"fill_bytes\" , \"pvfs.fill_bytes\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_target_path_len , {\n \"target_path_len\" , \"pvfs.target_path_len\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_version2 , {\n \"Version 2\" , \"pvfs.version2\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_flow_data , {\n \"PVFC Flow Data\" , \"pvfs.flow_data\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_getconfig_response_entry , {\n \"GETCONFIG Response entry\" , \"pvfs.getconfig_response_entry\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_fhandle_data , {\n \"data\" , \"pvfs.fhandle_data\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_pvfs_opaque_length , {\n \"length\" , \"pvfs.opaque_length\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , }\n ;\n static gint * ett [ ] = {\n & ett_pvfs , & ett_pvfs_hdr , & ett_pvfs_credentials , & ett_pvfs_server_config , & ett_pvfs_server_config_branch , & ett_pvfs_attrmask , & ett_pvfs_time , & ett_pvfs_extent_array_tree , & ett_pvfs_extent_item , & ett_pvfs_string , & ett_pvfs_attr_tree , & ett_pvfs_distribution , & ett_pvfs_mgmt_perf_stat , & ett_pvfs_mgmt_dspace_info , & ett_pvfs_attr , & ett_pvfs_fh }\n ;\n static ei_register_info ei [ ] = {\n {\n & ei_pvfs_malformed , {\n \"pvfs.malformed\" , PI_MALFORMED , PI_ERROR , \"MALFORMED OR TRUNCATED DATA\" , EXPFILL }\n }\n , }\n ;\n module_t * pvfs_module ;\n expert_module_t * expert_pvfs ;\n proto_pvfs = proto_register_protocol ( \"Parallel Virtual File System\" , \"PVFS\" , \"pvfs\" ) ;\n proto_register_field_array ( proto_pvfs , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n expert_pvfs = expert_register_protocol ( proto_pvfs ) ;\n expert_register_field_array ( expert_pvfs , ei , array_length ( ei ) ) ;\n pvfs2_io_tracking_value_table = wmem_map_new_autoreset ( wmem_epan_scope ( ) , wmem_file_scope ( ) , pvfs2_io_tracking_hash , pvfs2_io_tracking_equal ) ;\n pvfs_module = prefs_register_protocol ( proto_pvfs , NULL ) ;\n prefs_register_bool_preference ( pvfs_module , \"desegment\" , \"Reassemble PVFS messages spanning multiple TCP segments\" , \"Whether the PVFS dissector should reassemble messages spanning multiple TCP segments. \" \"To use this option, you must also enable \\\"Allow subdissectors to reassemble TCP streams\\\" in the TCP protocol settings.\" , & pvfs_desegment ) ;\n }"}
{"idx": 15097, "target": 0, "func": "static void TestFramePrinting ( WebLocalFrameImpl * frame ) {\n WebPrintParams print_params ;\n WebSize page_size ( 500 , 500 ) ;\n print_params . print_content_area . width = page_size . width ;\n print_params . print_content_area . height = page_size . height ;\n EXPECT_EQ ( 1 , frame -> PrintBegin ( print_params , WebNode ( ) ) ) ;\n PaintRecorder recorder ;\n frame -> PrintPagesForTesting ( recorder . beginRecording ( IntRect ( ) ) , page_size ) ;\n frame -> PrintEnd ( ) ;\n }"}
{"idx": 15098, "target": 1, "func": "PHP_FUNCTION ( locale_accept_from_http ) {\n UEnumeration * available ;\n char * http_accept = NULL ;\n int http_accept_len ;\n UErrorCode status = 0 ;\n int len ;\n char resultLocale [ INTL_MAX_LOCALE_LEN + 1 ] ;\n UAcceptResult outResult ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"s\" , & http_accept , & http_accept_len ) == FAILURE ) {\n intl_error_set ( NULL , U_ILLEGAL_ARGUMENT_ERROR , \"locale_accept_from_http: unable to parse input parameters\" , 0 TSRMLS_CC ) ;\n RETURN_FALSE ;\n }\n available = ures_openAvailableLocales ( NULL , & status ) ;\n INTL_CHECK_STATUS ( status , \"locale_accept_from_http: failed to retrieve locale list\" ) ;\n len = uloc_acceptLanguageFromHTTP ( resultLocale , INTL_MAX_LOCALE_LEN , & outResult , http_accept , available , & status ) ;\n uenum_close ( available ) ;\n INTL_CHECK_STATUS ( status , \"locale_accept_from_http: failed to find acceptable locale\" ) ;\n if ( len < 0 || outResult == ULOC_ACCEPT_FAILED ) {\n RETURN_FALSE ;\n }\n RETURN_STRINGL ( resultLocale , len , 1 ) ;\n }"}
{"idx": 15099, "target": 0, "func": "relpRetVal relpTcpSetGnuTLSPriString ( relpTcp_t * pThis , char * pristr ) {\n ENTER_RELPFUNC ;\n RELPOBJ_assert ( pThis , Tcp ) ;\n free ( pThis -> pristring ) ;\n if ( pristr == NULL ) {\n pThis -> pristring = NULL ;\n }\n else {\n if ( ( pThis -> pristring = strdup ( pristr ) ) == NULL ) ABORT_FINALIZE ( RELP_RET_OUT_OF_MEMORY ) ;\n }\n finalize_it : LEAVE_RELPFUNC ;\n }"}
{"idx": 15100, "target": 0, "func": "void vmxnet_tx_pkt_uninit ( struct VmxnetTxPkt * pkt ) {\n if ( pkt ) {\n g_free ( pkt -> vec ) ;\n g_free ( pkt -> raw ) ;\n g_free ( pkt ) ;\n }\n }"}
{"idx": 15101, "target": 0, "func": "static VALUE cState_space_set ( VALUE self , VALUE space ) {\n unsigned long len ;\n GET_STATE ( self ) ;\n Check_Type ( space , T_STRING ) ;\n len = RSTRING_LEN ( space ) ;\n if ( len == 0 ) {\n if ( state -> space ) {\n ruby_xfree ( state -> space ) ;\n state -> space = NULL ;\n state -> space_len = 0 ;\n }\n }\n else {\n if ( state -> space ) ruby_xfree ( state -> space ) ;\n state -> space = fstrndup ( RSTRING_PTR ( space ) , len ) ;\n state -> space_len = len ;\n }\n return Qnil ;\n }"}
{"idx": 15102, "target": 0, "func": "static const char * xml_escape_str ( AVBPrint * dst , const char * src , void * log_ctx ) {\n const char * p ;\n for ( p = src ;\n * p ;\n p ++ ) {\n switch ( * p ) {\n case '&' : av_bprintf ( dst , \"%s\" , \"&amp;\n\" ) ;\n break ;\n case '<' : av_bprintf ( dst , \"%s\" , \"&lt;\n\" ) ;\n break ;\n case '>' : av_bprintf ( dst , \"%s\" , \"&gt;\n\" ) ;\n break ;\n case '\"' : av_bprintf ( dst , \"%s\" , \"&quot;\n\" ) ;\n break ;\n case '\\'' : av_bprintf ( dst , \"%s\" , \"&apos;\n\" ) ;\n break ;\n default : av_bprint_chars ( dst , * p , 1 ) ;\n }\n }\n return dst -> str ;\n }"}
{"idx": 15103, "target": 0, "func": "char * irc_ctcp_replace_variables ( struct t_irc_server * server , const char * format ) {\n char * res , * temp , * username , * realname ;\n const char * info ;\n time_t now ;\n struct tm * local_time ;\n char buf [ 1024 ] ;\n struct utsname * buf_uname ;\n temp = weechat_string_replace ( format , \"$clientinfo\" , \"ACTION DCC CLIENTINFO FINGER PING SOURCE TIME USERINFO VERSION\" ) ;\n if ( ! temp ) return NULL ;\n res = temp ;\n info = weechat_info_get ( \"version_git\" , \"\" ) ;\n temp = weechat_string_replace ( res , \"$git\" , info ) ;\n free ( res ) ;\n if ( ! temp ) return NULL ;\n res = temp ;\n info = weechat_info_get ( \"version_git\" , \"\" ) ;\n snprintf ( buf , sizeof ( buf ) , \"%s%s%s%s\" , weechat_info_get ( \"version\" , \"\" ) , ( info && info [ 0 ] ) ? \" (git: \" : \"\" , ( info && info [ 0 ] ) ? info : \"\" , ( info && info [ 0 ] ) ? \")\" : \"\" ) ;\n temp = weechat_string_replace ( res , \"$versiongit\" , buf ) ;\n free ( res ) ;\n if ( ! temp ) return NULL ;\n res = temp ;\n info = weechat_info_get ( \"version\" , \"\" ) ;\n temp = weechat_string_replace ( res , \"$version\" , info ) ;\n free ( res ) ;\n if ( ! temp ) return NULL ;\n res = temp ;\n info = weechat_info_get ( \"date\" , \"\" ) ;\n temp = weechat_string_replace ( res , \"$compilation\" , info ) ;\n free ( res ) ;\n if ( ! temp ) return NULL ;\n res = temp ;\n buf_uname = ( struct utsname * ) malloc ( sizeof ( struct utsname ) ) ;\n if ( buf_uname ) {\n if ( uname ( buf_uname ) >= 0 ) {\n snprintf ( buf , sizeof ( buf ) , \"%s %s / %s\" , buf_uname -> sysname , buf_uname -> release , buf_uname -> machine ) ;\n temp = weechat_string_replace ( res , \"$osinfo\" , buf ) ;\n free ( res ) ;\n if ( ! temp ) {\n free ( buf_uname ) ;\n return NULL ;\n }\n res = temp ;\n }\n free ( buf_uname ) ;\n }\n info = weechat_info_get ( \"weechat_site\" , \"\" ) ;\n temp = weechat_string_replace ( res , \"$site\" , info ) ;\n free ( res ) ;\n if ( ! temp ) return NULL ;\n res = temp ;\n info = weechat_info_get ( \"weechat_site_download\" , \"\" ) ;\n temp = weechat_string_replace ( res , \"$download\" , info ) ;\n free ( res ) ;\n if ( ! temp ) return NULL ;\n res = temp ;\n now = time ( NULL ) ;\n local_time = localtime ( & now ) ;\n setlocale ( LC_ALL , \"C\" ) ;\n strftime ( buf , sizeof ( buf ) , weechat_config_string ( irc_config_look_ctcp_time_format ) , local_time ) ;\n setlocale ( LC_ALL , \"\" ) ;\n temp = weechat_string_replace ( res , \"$time\" , buf ) ;\n free ( res ) ;\n if ( ! temp ) return NULL ;\n res = temp ;\n username = weechat_string_eval_expression ( IRC_SERVER_OPTION_STRING ( server , IRC_SERVER_OPTION_USERNAME ) , NULL , NULL , NULL ) ;\n if ( username ) {\n temp = weechat_string_replace ( res , \"$username\" , username ) ;\n free ( res ) ;\n if ( ! temp ) return NULL ;\n res = temp ;\n free ( username ) ;\n }\n realname = weechat_string_eval_expression ( IRC_SERVER_OPTION_STRING ( server , IRC_SERVER_OPTION_REALNAME ) , NULL , NULL , NULL ) ;\n if ( realname ) {\n temp = weechat_string_replace ( res , \"$realname\" , realname ) ;\n free ( res ) ;\n if ( ! temp ) return NULL ;\n res = temp ;\n free ( realname ) ;\n }\n return res ;\n }"}
{"idx": 15104, "target": 0, "func": "static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 15105, "target": 0, "func": "static void gst_asf_demux_descramble_buffer ( GstASFDemux * demux , AsfStream * stream , GstBuffer * * p_buffer ) {\n GstBuffer * descrambled_buffer ;\n GstBuffer * scrambled_buffer ;\n GstBuffer * sub_buffer ;\n guint offset ;\n guint off ;\n guint row ;\n guint col ;\n guint idx ;\n descrambled_buffer = NULL ;\n scrambled_buffer = * p_buffer ;\n if ( gst_buffer_get_size ( scrambled_buffer ) < stream -> ds_packet_size * stream -> span ) return ;\n for ( offset = 0 ;\n offset < gst_buffer_get_size ( scrambled_buffer ) ;\n offset += stream -> ds_chunk_size ) {\n off = offset / stream -> ds_chunk_size ;\n row = off / stream -> span ;\n col = off % stream -> span ;\n idx = row + col * stream -> ds_packet_size / stream -> ds_chunk_size ;\n GST_DEBUG ( \"idx=%u, row=%u, col=%u, off=%u, ds_chunk_size=%u\" , idx , row , col , off , stream -> ds_chunk_size ) ;\n GST_DEBUG ( \"scrambled buffer size=%\" G_GSIZE_FORMAT \", span=%u, packet_size=%u\" , gst_buffer_get_size ( scrambled_buffer ) , stream -> span , stream -> ds_packet_size ) ;\n GST_DEBUG ( \"gst_buffer_get_size (scrambled_buffer) = %\" G_GSIZE_FORMAT , gst_buffer_get_size ( scrambled_buffer ) ) ;\n sub_buffer = gst_buffer_copy_region ( scrambled_buffer , GST_BUFFER_COPY_MEMORY , idx * stream -> ds_chunk_size , stream -> ds_chunk_size ) ;\n if ( ! offset ) {\n descrambled_buffer = sub_buffer ;\n }\n else {\n descrambled_buffer = gst_buffer_append ( descrambled_buffer , sub_buffer ) ;\n }\n }\n GST_BUFFER_TIMESTAMP ( descrambled_buffer ) = GST_BUFFER_TIMESTAMP ( scrambled_buffer ) ;\n GST_BUFFER_DURATION ( descrambled_buffer ) = GST_BUFFER_DURATION ( scrambled_buffer ) ;\n GST_BUFFER_OFFSET ( descrambled_buffer ) = GST_BUFFER_OFFSET ( scrambled_buffer ) ;\n GST_BUFFER_OFFSET_END ( descrambled_buffer ) = GST_BUFFER_OFFSET_END ( scrambled_buffer ) ;\n gst_buffer_unref ( scrambled_buffer ) ;\n * p_buffer = descrambled_buffer ;\n }"}
{"idx": 15106, "target": 0, "func": "static int dissect_steam_ihs_discovery ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n proto_item * ti ;\n proto_tree * steam_ihs_discovery_tree ;\n gint offset = 0 ;\n gint header_length = 0 ;\n gint body_length = 0 ;\n gint total_length = 0 ;\n gint64 msg_type ;\n if ( tvb_reported_length ( tvb ) < STEAM_IHS_DISCOVERY_MIN_LENGTH ) return 0 ;\n if ( tvb_captured_length ( tvb ) < STEAM_IHS_DISCOVERY_MIN_LENGTH ) return 0 ;\n if ( tvb_get_ntoh64 ( tvb , 0 ) != STEAM_IHS_DISCOVERY_SIGNATURE_VALUE ) return 0 ;\n header_length = tvb_get_letohl ( tvb , STEAM_IHS_DISCOVERY_SIGNATURE_LENGTH ) ;\n body_length = tvb_get_letohl ( tvb , STEAM_IHS_DISCOVERY_SIGNATURE_LENGTH + 4 + header_length ) ;\n total_length = STEAM_IHS_DISCOVERY_SIGNATURE_LENGTH + 4 + header_length + 4 + body_length ;\n if ( tvb_reported_length ( tvb ) != ( guint ) total_length ) return 0 ;\n if ( tvb_captured_length ( tvb ) != ( guint ) total_length ) return 0 ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"STEAMDISCOVER\" ) ;\n col_clear ( pinfo -> cinfo , COL_INFO ) ;\n ti = proto_tree_add_item ( tree , proto_steam_ihs_discovery , tvb , 0 , - 1 , ENC_NA ) ;\n steam_ihs_discovery_tree = proto_item_add_subtree ( ti , ett_steam_ihs_discovery ) ;\n proto_tree_add_item ( steam_ihs_discovery_tree , hf_steam_ihs_discovery_signature , tvb , offset , STEAM_IHS_DISCOVERY_SIGNATURE_LENGTH , ENC_LITTLE_ENDIAN ) ;\n offset += STEAM_IHS_DISCOVERY_SIGNATURE_LENGTH ;\n proto_tree_add_item ( steam_ihs_discovery_tree , hf_steam_ihs_discovery_header_length , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n msg_type = steamdiscover_dissect_header ( tvb , pinfo , steam_ihs_discovery_tree , offset , header_length ) ;\n if ( ( 0 <= msg_type ) && ( msg_type <= STEAMDISCOVER_MSGTYPES_MAX ) ) {\n col_set_str ( pinfo -> cinfo , COL_INFO , hf_steam_ihs_discovery_header_msgtype_strings [ msg_type ] . strptr ) ;\n }\n else {\n col_set_str ( pinfo -> cinfo , COL_INFO , \"Unknown Message\" ) ;\n }\n offset += header_length ;\n proto_tree_add_item ( steam_ihs_discovery_tree , hf_steam_ihs_discovery_body_length , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n switch ( msg_type ) {\n case STEAMDISCOVER_MSGTYPE_CLIENTBROADCASTMSGDISCOVERY : steamdiscover_dissect_body_discovery ( tvb , pinfo , steam_ihs_discovery_tree , offset , body_length ) ;\n break ;\n case STEAMDISCOVER_MSGTYPE_CLIENTBROADCASTMSGSTATUS : steamdiscover_dissect_body_status ( tvb , pinfo , steam_ihs_discovery_tree , offset , body_length ) ;\n break ;\n case STEAMDISCOVER_MSGTYPE_CLIENTBROADCASTMSGOFFLINE : break ;\n case STEAMDISCOVER_MSGTYPE_DEVICEAUTHORIZATIONREQUEST : steamdiscover_dissect_body_authrequest ( tvb , pinfo , steam_ihs_discovery_tree , offset , body_length ) ;\n break ;\n case STEAMDISCOVER_MSGTYPE_DEVICEAUTHORIZATIONCANCELREQUEST : break ;\n case STEAMDISCOVER_MSGTYPE_DEVICEAUTHORIZATIONRESPONSE : steamdiscover_dissect_body_authresponse ( tvb , pinfo , steam_ihs_discovery_tree , offset , body_length ) ;\n break ;\n case STEAMDISCOVER_MSGTYPE_DEVICESTREAMINGREQUEST : steamdiscover_dissect_body_streamingrequest ( tvb , pinfo , steam_ihs_discovery_tree , offset , body_length ) ;\n break ;\n case STEAMDISCOVER_MSGTYPE_DEVICESTREAMINGCANCELREQUEST : steamdiscover_dissect_body_streamingcancelrequest ( tvb , pinfo , steam_ihs_discovery_tree , offset , body_length ) ;\n break ;\n case STEAMDISCOVER_MSGTYPE_DEVICESTREAMINGRESPONSE : steamdiscover_dissect_body_streamingresponse ( tvb , pinfo , steam_ihs_discovery_tree , offset , body_length ) ;\n break ;\n case STEAMDISCOVER_MSGTYPE_DEVICEPROOFREQUEST : steamdiscover_dissect_body_proofrequest ( tvb , pinfo , steam_ihs_discovery_tree , offset , body_length ) ;\n break ;\n case STEAMDISCOVER_MSGTYPE_DEVICEPROOFRESPONSE : steamdiscover_dissect_body_proofresponse ( tvb , pinfo , steam_ihs_discovery_tree , offset , body_length ) ;\n break ;\n default : steamdiscover_dissect_body_unknown ( tvb , pinfo , steam_ihs_discovery_tree , offset , body_length ) ;\n break ;\n }\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 15107, "target": 0, "func": "static inline void insert_dotted_circles ( const hb_ot_shape_plan_t * plan HB_UNUSED , hb_font_t * font , hb_buffer_t * buffer ) {\n bool has_broken_syllables = false ;\n unsigned int count = buffer -> len ;\n hb_glyph_info_t * info = buffer -> info ;\n for ( unsigned int i = 0 ;\n i < count ;\n i ++ ) if ( ( info [ i ] . syllable ( ) & 0x0F ) == broken_cluster ) {\n has_broken_syllables = true ;\n break ;\n }\n if ( likely ( ! has_broken_syllables ) ) return ;\n hb_codepoint_t dottedcircle_glyph ;\n if ( ! font -> get_glyph ( 0x25CCu , 0 , & dottedcircle_glyph ) ) return ;\n hb_glyph_info_t dottedcircle = {\n 0 }\n ;\n dottedcircle . codepoint = 0x25CCu ;\n set_myanmar_properties ( dottedcircle ) ;\n dottedcircle . codepoint = dottedcircle_glyph ;\n buffer -> clear_output ( ) ;\n buffer -> idx = 0 ;\n unsigned int last_syllable = 0 ;\n while ( buffer -> idx < buffer -> len ) {\n unsigned int syllable = buffer -> cur ( ) . syllable ( ) ;\n syllable_type_t syllable_type = ( syllable_type_t ) ( syllable & 0x0F ) ;\n if ( unlikely ( last_syllable != syllable && syllable_type == broken_cluster ) ) {\n last_syllable = syllable ;\n hb_glyph_info_t info = dottedcircle ;\n info . cluster = buffer -> cur ( ) . cluster ;\n info . mask = buffer -> cur ( ) . mask ;\n info . syllable ( ) = buffer -> cur ( ) . syllable ( ) ;\n buffer -> output_info ( info ) ;\n }\n else buffer -> next_glyph ( ) ;\n }\n buffer -> swap_buffers ( ) ;\n }"}
{"idx": 15108, "target": 0, "func": "void cpu_stop_current ( void ) {\n if ( current_cpu ) {\n current_cpu -> stop = false ;\n current_cpu -> stopped = true ;\n cpu_exit ( current_cpu ) ;\n qemu_cond_signal ( & qemu_pause_cond ) ;\n }\n }"}
{"idx": 15109, "target": 0, "func": "static void mark_object ( struct object * obj , const char * name , void * data ) {\n update_progress ( data ) ;\n }"}
{"idx": 15110, "target": 0, "func": "static int dissect_h245_SET_SIZE_1_15_OF_MultiplexEntryDescriptor ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_set_of ( tvb , offset , actx , tree , hf_index , ett_h245_SET_SIZE_1_15_OF_MultiplexEntryDescriptor , SET_SIZE_1_15_OF_MultiplexEntryDescriptor_set_of , 1 , 15 , FALSE ) ;\n return offset ;\n }"}
{"idx": 15111, "target": 0, "func": "inline static void _slurm_rpc_set_schedlog_level ( slurm_msg_t * msg ) {\n int schedlog_level ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n slurmctld_lock_t config_read_lock = {\n READ_LOCK , NO_LOCK , NO_LOCK , NO_LOCK , NO_LOCK }\n ;\n set_debug_level_msg_t * request_msg = ( set_debug_level_msg_t * ) msg -> data ;\n log_options_t log_opts = SCHEDLOG_OPTS_INITIALIZER ;\n debug2 ( \"Processing RPC: REQUEST_SET_SCHEDLOG_LEVEL from uid=%d\" , uid ) ;\n if ( ! validate_super_user ( uid ) ) {\n error ( \"set scheduler log level request from non-super user \" \"uid=%d\" , uid ) ;\n slurm_send_rc_msg ( msg , EACCES ) ;\n return ;\n }\n if ( slurmctld_conf . sched_logfile == NULL ) {\n error ( \"set scheduler log level failed: no log file!\" ) ;\n slurm_send_rc_msg ( msg , ESLURM_DISABLED ) ;\n return ;\n }\n schedlog_level = MIN ( request_msg -> debug_level , ( LOG_LEVEL_QUIET + 1 ) ) ;\n schedlog_level = MAX ( schedlog_level , LOG_LEVEL_QUIET ) ;\n lock_slurmctld ( config_read_lock ) ;\n log_opts . logfile_level = schedlog_level ;\n sched_log_alter ( log_opts , LOG_DAEMON , slurmctld_conf . sched_logfile ) ;\n unlock_slurmctld ( config_read_lock ) ;\n if ( schedlog_level != slurmctld_conf . sched_log_level ) info ( \"sched: Set scheduler log level to %d\" , schedlog_level ) ;\n slurmctld_conf . sched_log_level = schedlog_level ;\n slurmctld_conf . last_update = time ( NULL ) ;\n slurm_send_rc_msg ( msg , SLURM_SUCCESS ) ;\n }"}
{"idx": 15112, "target": 0, "func": "static void pk_transaction_install_signature ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) {\n gboolean ret ;\n const gchar * key_id ;\n const gchar * package_id ;\n PkSigTypeEnum sig_type ;\n g_autoptr ( GError ) error = NULL ;\n g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;\n g_return_if_fail ( transaction -> priv -> tid != NULL ) ;\n g_variant_get ( params , \"(u&s&s)\" , & sig_type , & key_id , & package_id ) ;\n g_debug ( \"InstallSignature method called: %s, %s, %s\" , pk_sig_type_enum_to_string ( sig_type ) , key_id , package_id ) ;\n if ( ! pk_backend_is_implemented ( transaction -> priv -> backend , PK_ROLE_ENUM_INSTALL_SIGNATURE ) ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NOT_SUPPORTED , \"InstallSignature not supported by backend\" ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n ret = pk_transaction_strvalidate ( key_id , & error ) ;\n if ( ! ret ) {\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n ret = pk_package_id_check ( package_id ) ;\n if ( ! ret && ! g_str_has_prefix ( package_id , \";\n;\n;\n\" ) ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_PACKAGE_ID_INVALID , \"The package id '%s' is not valid\" , package_id ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n transaction -> priv -> cached_package_id = g_strdup ( package_id ) ;\n transaction -> priv -> cached_key_id = g_strdup ( key_id ) ;\n pk_transaction_set_role ( transaction , PK_ROLE_ENUM_INSTALL_SIGNATURE ) ;\n ret = pk_transaction_obtain_authorization ( transaction , PK_ROLE_ENUM_INSTALL_SIGNATURE , & error ) ;\n if ( ! ret ) {\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n out : pk_transaction_dbus_return ( context , error ) ;\n }"}
{"idx": 15113, "target": 0, "func": "static int rate_control ( AVCodecContext * avctx , void * arg ) {\n SliceArgs * slice_dat = arg ;\n VC2EncContext * s = slice_dat -> ctx ;\n const int top = slice_dat -> bits_ceil ;\n const int bottom = slice_dat -> bits_floor ;\n int quant_buf [ 2 ] = {\n - 1 , - 1 }\n ;\n int quant = slice_dat -> quant_idx , step = 1 ;\n int bits_last , bits = count_hq_slice ( slice_dat , quant ) ;\n while ( ( bits > top ) || ( bits < bottom ) ) {\n const int signed_step = bits > top ? + step : - step ;\n quant = av_clip ( quant + signed_step , 0 , s -> q_ceil - 1 ) ;\n bits = count_hq_slice ( slice_dat , quant ) ;\n if ( quant_buf [ 1 ] == quant ) {\n quant = FFMAX ( quant_buf [ 0 ] , quant ) ;\n bits = quant == quant_buf [ 0 ] ? bits_last : bits ;\n break ;\n }\n step = av_clip ( step / 2 , 1 , ( s -> q_ceil - 1 ) / 2 ) ;\n quant_buf [ 1 ] = quant_buf [ 0 ] ;\n quant_buf [ 0 ] = quant ;\n bits_last = bits ;\n }\n slice_dat -> quant_idx = av_clip ( quant , 0 , s -> q_ceil - 1 ) ;\n slice_dat -> bytes = SSIZE_ROUND ( bits >> 3 ) ;\n return 0 ;\n }"}
{"idx": 15114, "target": 1, "func": "static int pcm_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n const uint8_t * src = avpkt -> data ;\n int buf_size = avpkt -> size ;\n PCMDecode * s = avctx -> priv_data ;\n AVFrame * frame = data ;\n int sample_size , c , n , ret , samples_per_block ;\n uint8_t * samples ;\n int32_t * dst_int32_t ;\n sample_size = av_get_bits_per_sample ( avctx -> codec_id ) / 8 ;\n samples_per_block = 1 ;\n if ( AV_CODEC_ID_PCM_DVD == avctx -> codec_id ) {\n if ( avctx -> bits_per_coded_sample != 20 && avctx -> bits_per_coded_sample != 24 ) {\n av_log ( avctx , AV_LOG_ERROR , \"PCM DVD unsupported sample depth\\n\" ) ;\n return AVERROR ( EINVAL ) ;\n }\n samples_per_block = 2 ;\n sample_size = avctx -> bits_per_coded_sample * 2 / 8 ;\n }\n else if ( avctx -> codec_id == AV_CODEC_ID_PCM_LXF ) {\n samples_per_block = 2 ;\n sample_size = 5 ;\n }\n if ( sample_size == 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid sample_size\\n\" ) ;\n return AVERROR ( EINVAL ) ;\n }\n n = avctx -> channels * sample_size ;\n if ( n && buf_size % n ) {\n if ( buf_size < n ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid PCM packet\\n\" ) ;\n return - 1 ;\n }\n else buf_size -= buf_size % n ;\n }\n n = buf_size / sample_size ;\n frame -> nb_samples = n * samples_per_block / avctx -> channels ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n samples = frame -> data [ 0 ] ;\n switch ( avctx -> codec -> id ) {\n case AV_CODEC_ID_PCM_U32LE : DECODE ( 32 , le32 , src , samples , n , 0 , 0x80000000 ) break ;\n case AV_CODEC_ID_PCM_U32BE : DECODE ( 32 , be32 , src , samples , n , 0 , 0x80000000 ) break ;\n case AV_CODEC_ID_PCM_S24LE : DECODE ( 32 , le24 , src , samples , n , 8 , 0 ) break ;\n case AV_CODEC_ID_PCM_S24BE : DECODE ( 32 , be24 , src , samples , n , 8 , 0 ) break ;\n case AV_CODEC_ID_PCM_U24LE : DECODE ( 32 , le24 , src , samples , n , 8 , 0x800000 ) break ;\n case AV_CODEC_ID_PCM_U24BE : DECODE ( 32 , be24 , src , samples , n , 8 , 0x800000 ) break ;\n case AV_CODEC_ID_PCM_S24DAUD : for ( ;\n n > 0 ;\n n -- ) {\n uint32_t v = bytestream_get_be24 ( & src ) ;\n v >>= 4 ;\n AV_WN16A ( samples , ff_reverse [ ( v >> 8 ) & 0xff ] + ( ff_reverse [ v & 0xff ] << 8 ) ) ;\n samples += 2 ;\n }\n break ;\n case AV_CODEC_ID_PCM_S16LE_PLANAR : {\n int av_unused n2 ;\n n /= avctx -> channels ;\n for ( c = 0 ;\n c < avctx -> channels ;\n c ++ ) {\n samples = frame -> extended_data [ c ] ;\n # if HAVE_BIGENDIAN n2 = n ;\n DECODE ( 16 , le16 , src , samples , n2 , 0 , 0 ) # else memcpy ( samples , src , n * 2 ) ;\n src += n * 2 ;\n # endif }\n break ;\n }\n case AV_CODEC_ID_PCM_U16LE : DECODE ( 16 , le16 , src , samples , n , 0 , 0x8000 ) break ;\n case AV_CODEC_ID_PCM_U16BE : DECODE ( 16 , be16 , src , samples , n , 0 , 0x8000 ) break ;\n case AV_CODEC_ID_PCM_S8 : for ( ;\n n > 0 ;\n n -- ) * samples ++ = * src ++ + 128 ;\n break ;\n # if HAVE_BIGENDIAN case AV_CODEC_ID_PCM_F64LE : DECODE ( 64 , le64 , src , samples , n , 0 , 0 ) break ;\n case AV_CODEC_ID_PCM_S32LE : case AV_CODEC_ID_PCM_F32LE : DECODE ( 32 , le32 , src , samples , n , 0 , 0 ) break ;\n case AV_CODEC_ID_PCM_S16LE : DECODE ( 16 , le16 , src , samples , n , 0 , 0 ) break ;\n case AV_CODEC_ID_PCM_F64BE : case AV_CODEC_ID_PCM_F32BE : case AV_CODEC_ID_PCM_S32BE : case AV_CODEC_ID_PCM_S16BE : # else case AV_CODEC_ID_PCM_F64BE : DECODE ( 64 , be64 , src , samples , n , 0 , 0 ) break ;\n case AV_CODEC_ID_PCM_F32BE : case AV_CODEC_ID_PCM_S32BE : DECODE ( 32 , be32 , src , samples , n , 0 , 0 ) break ;\n case AV_CODEC_ID_PCM_S16BE : DECODE ( 16 , be16 , src , samples , n , 0 , 0 ) break ;\n case AV_CODEC_ID_PCM_F64LE : case AV_CODEC_ID_PCM_F32LE : case AV_CODEC_ID_PCM_S32LE : case AV_CODEC_ID_PCM_S16LE : # endif case AV_CODEC_ID_PCM_U8 : memcpy ( samples , src , n * sample_size ) ;\n break ;\n case AV_CODEC_ID_PCM_ZORK : for ( ;\n n > 0 ;\n n -- ) {\n int v = * src ++ ;\n if ( v < 128 ) v = 128 - v ;\n * samples ++ = v ;\n }\n break ;\n case AV_CODEC_ID_PCM_ALAW : case AV_CODEC_ID_PCM_MULAW : for ( ;\n n > 0 ;\n n -- ) {\n AV_WN16A ( samples , s -> table [ * src ++ ] ) ;\n samples += 2 ;\n }\n break ;\n case AV_CODEC_ID_PCM_DVD : {\n const uint8_t * src8 ;\n dst_int32_t = ( int32_t * ) frame -> data [ 0 ] ;\n n /= avctx -> channels ;\n switch ( avctx -> bits_per_coded_sample ) {\n case 20 : while ( n -- ) {\n c = avctx -> channels ;\n src8 = src + 4 * c ;\n while ( c -- ) {\n * dst_int32_t ++ = ( bytestream_get_be16 ( & src ) << 16 ) + ( ( * src8 & 0xf0 ) << 8 ) ;\n * dst_int32_t ++ = ( bytestream_get_be16 ( & src ) << 16 ) + ( ( * src8 ++ & 0x0f ) << 12 ) ;\n }\n src = src8 ;\n }\n break ;\n case 24 : while ( n -- ) {\n c = avctx -> channels ;\n src8 = src + 4 * c ;\n while ( c -- ) {\n * dst_int32_t ++ = ( bytestream_get_be16 ( & src ) << 16 ) + ( ( * src8 ++ ) << 8 ) ;\n * dst_int32_t ++ = ( bytestream_get_be16 ( & src ) << 16 ) + ( ( * src8 ++ ) << 8 ) ;\n }\n src = src8 ;\n }\n break ;\n }\n break ;\n }\n case AV_CODEC_ID_PCM_LXF : {\n int i ;\n n /= avctx -> channels ;\n for ( c = 0 ;\n c < avctx -> channels ;\n c ++ ) {\n dst_int32_t = ( int32_t * ) frame -> extended_data [ c ] ;\n for ( i = 0 ;\n i < n ;\n i ++ ) {\n * dst_int32_t ++ = ( src [ 2 ] << 28 ) | ( src [ 1 ] << 20 ) | ( src [ 0 ] << 12 ) | ( ( src [ 2 ] & 0x0F ) << 8 ) | src [ 1 ] ;\n * dst_int32_t ++ = ( src [ 4 ] << 24 ) | ( src [ 3 ] << 16 ) | ( ( src [ 2 ] & 0xF0 ) << 8 ) | ( src [ 4 ] << 4 ) | ( src [ 3 ] >> 4 ) ;\n src += 5 ;\n }\n }\n break ;\n }\n default : return - 1 ;\n }\n * got_frame_ptr = 1 ;\n return buf_size ;\n }"}
{"idx": 15115, "target": 0, "func": "void vp9_convolve_avg_c ( const uint8_t * src , ptrdiff_t src_stride , uint8_t * dst , ptrdiff_t dst_stride , const int16_t * filter_x , int filter_x_stride , const int16_t * filter_y , int filter_y_stride , int w , int h ) {\n int x , y ;\n ( void ) filter_x ;\n ( void ) filter_x_stride ;\n ( void ) filter_y ;\n ( void ) filter_y_stride ;\n for ( y = 0 ;\n y < h ;\n ++ y ) {\n for ( x = 0 ;\n x < w ;\n ++ x ) dst [ x ] = ROUND_POWER_OF_TWO ( dst [ x ] + src [ x ] , 1 ) ;\n src += src_stride ;\n dst += dst_stride ;\n }\n }"}
{"idx": 15116, "target": 0, "func": "static void ImportCMYKAQuantum ( const Image * image , QuantumInfo * quantum_info , const MagickSizeType number_pixels , const unsigned char * magick_restrict p , Quantum * magick_restrict q , ExceptionInfo * exception ) {\n QuantumAny range ;\n register ssize_t x ;\n unsigned int pixel ;\n if ( image -> colorspace != CMYKColorspace ) {\n ( void ) ThrowMagickException ( exception , GetMagickModule ( ) , ImageError , \"ColorSeparatedImageRequired\" , \"`%s'\" , image -> filename ) ;\n return ;\n }\n switch ( quantum_info -> depth ) {\n case 8 : {\n unsigned char pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelRed ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelGreen ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelBlue ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelBlack ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelAlpha ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 16 : {\n unsigned short pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelRed ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGreen ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlue ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlack ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelAlpha ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelRed ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGreen ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlue ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlack ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelAlpha ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 32 : {\n unsigned int pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n float pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlack ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelAlpha ( image , ClampToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelRed ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGreen ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlue ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlack ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelAlpha ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 64 : {\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n double pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelBlack ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelAlpha ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n default : {\n range = GetQuantumRange ( quantum_info -> depth ) ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlack ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelAlpha ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n }"}
{"idx": 15117, "target": 0, "func": "static struct usb_memory * find_memory_area ( struct usb_dev_state * ps , const struct usbdevfs_urb * uurb ) {\n struct usb_memory * usbm = NULL , * iter ;\n unsigned long flags ;\n unsigned long uurb_start = ( unsigned long ) uurb -> buffer ;\n spin_lock_irqsave ( & ps -> lock , flags ) ;\n list_for_each_entry ( iter , & ps -> memory_list , memlist ) {\n if ( uurb_start >= iter -> vm_start && uurb_start < iter -> vm_start + iter -> size ) {\n if ( uurb -> buffer_length > iter -> vm_start + iter -> size - uurb_start ) {\n usbm = ERR_PTR ( - EINVAL ) ;\n }\n else {\n usbm = iter ;\n usbm -> urb_use_count ++ ;\n }\n break ;\n }\n }\n spin_unlock_irqrestore ( & ps -> lock , flags ) ;\n return usbm ;\n }"}
{"idx": 15118, "target": 0, "func": "static int qemuAgentIOWrite ( qemuAgentPtr mon ) {\n int done ;\n if ( ! mon -> msg || mon -> msg -> txOffset == mon -> msg -> txLength ) return 0 ;\n done = safewrite ( mon -> fd , mon -> msg -> txBuffer + mon -> msg -> txOffset , mon -> msg -> txLength - mon -> msg -> txOffset ) ;\n if ( done < 0 ) {\n if ( errno == EAGAIN ) return 0 ;\n virReportSystemError ( errno , \"%s\" , _ ( \"Unable to write to monitor\" ) ) ;\n return - 1 ;\n }\n mon -> msg -> txOffset += done ;\n return done ;\n }"}
{"idx": 15119, "target": 0, "func": "static void h263_encode_block ( MpegEncContext * s , int16_t * block , int n ) {\n int level , run , last , i , j , last_index , last_non_zero , sign , slevel , code ;\n RLTable * rl ;\n rl = & ff_h263_rl_inter ;\n if ( s -> mb_intra && ! s -> h263_aic ) {\n level = block [ 0 ] ;\n if ( level > 254 ) {\n level = 254 ;\n block [ 0 ] = 254 ;\n }\n else if ( level < 1 ) {\n level = 1 ;\n block [ 0 ] = 1 ;\n }\n if ( level == 128 ) put_bits ( & s -> pb , 8 , 0xff ) ;\n else put_bits ( & s -> pb , 8 , level ) ;\n i = 1 ;\n }\n else {\n i = 0 ;\n if ( s -> h263_aic && s -> mb_intra ) rl = & ff_rl_intra_aic ;\n if ( s -> alt_inter_vlc && ! s -> mb_intra ) {\n int aic_vlc_bits = 0 ;\n int inter_vlc_bits = 0 ;\n int wrong_pos = - 1 ;\n int aic_code ;\n last_index = s -> block_last_index [ n ] ;\n last_non_zero = i - 1 ;\n for ( ;\n i <= last_index ;\n i ++ ) {\n j = s -> intra_scantable . permutated [ i ] ;\n level = block [ j ] ;\n if ( level ) {\n run = i - last_non_zero - 1 ;\n last = ( i == last_index ) ;\n if ( level < 0 ) level = - level ;\n code = get_rl_index ( rl , last , run , level ) ;\n aic_code = get_rl_index ( & ff_rl_intra_aic , last , run , level ) ;\n inter_vlc_bits += rl -> table_vlc [ code ] [ 1 ] + 1 ;\n aic_vlc_bits += ff_rl_intra_aic . table_vlc [ aic_code ] [ 1 ] + 1 ;\n if ( code == rl -> n ) {\n inter_vlc_bits += 1 + 6 + 8 - 1 ;\n }\n if ( aic_code == ff_rl_intra_aic . n ) {\n aic_vlc_bits += 1 + 6 + 8 - 1 ;\n wrong_pos += run + 1 ;\n }\n else wrong_pos += wrong_run [ aic_code ] ;\n last_non_zero = i ;\n }\n }\n i = 0 ;\n if ( aic_vlc_bits < inter_vlc_bits && wrong_pos > 63 ) rl = & ff_rl_intra_aic ;\n }\n }\n last_index = s -> block_last_index [ n ] ;\n last_non_zero = i - 1 ;\n for ( ;\n i <= last_index ;\n i ++ ) {\n j = s -> intra_scantable . permutated [ i ] ;\n level = block [ j ] ;\n if ( level ) {\n run = i - last_non_zero - 1 ;\n last = ( i == last_index ) ;\n sign = 0 ;\n slevel = level ;\n if ( level < 0 ) {\n sign = 1 ;\n level = - level ;\n }\n code = get_rl_index ( rl , last , run , level ) ;\n put_bits ( & s -> pb , rl -> table_vlc [ code ] [ 1 ] , rl -> table_vlc [ code ] [ 0 ] ) ;\n if ( code == rl -> n ) {\n if ( ! CONFIG_FLV_ENCODER || s -> h263_flv <= 1 ) {\n put_bits ( & s -> pb , 1 , last ) ;\n put_bits ( & s -> pb , 6 , run ) ;\n assert ( slevel != 0 ) ;\n if ( level < 128 ) put_sbits ( & s -> pb , 8 , slevel ) ;\n else {\n put_bits ( & s -> pb , 8 , 128 ) ;\n put_sbits ( & s -> pb , 5 , slevel ) ;\n put_sbits ( & s -> pb , 6 , slevel >> 5 ) ;\n }\n }\n else {\n ff_flv2_encode_ac_esc ( & s -> pb , slevel , level , run , last ) ;\n }\n }\n else {\n put_bits ( & s -> pb , 1 , sign ) ;\n }\n last_non_zero = i ;\n }\n }\n }"}
{"idx": 15120, "target": 0, "func": "static err_status_t srtp_protect_rtcp_aead ( srtp_t ctx , srtp_stream_ctx_t * stream , void * rtcp_hdr , unsigned int * pkt_octet_len ) {\n srtcp_hdr_t * hdr = ( srtcp_hdr_t * ) rtcp_hdr ;\n uint32_t * enc_start ;\n uint32_t * trailer ;\n unsigned int enc_octet_len = 0 ;\n uint8_t * auth_tag = NULL ;\n err_status_t status ;\n int tag_len ;\n uint32_t seq_num ;\n v128_t iv ;\n uint32_t tseq ;\n tag_len = auth_get_tag_length ( stream -> rtcp_auth ) ;\n enc_start = ( uint32_t * ) hdr + uint32s_in_rtcp_header ;\n enc_octet_len = * pkt_octet_len - octets_in_rtcp_header ;\n trailer = ( uint32_t * ) ( ( char * ) enc_start + enc_octet_len + tag_len ) ;\n if ( stream -> rtcp_services & sec_serv_conf ) {\n * trailer = htonl ( SRTCP_E_BIT ) ;\n }\n else {\n enc_start = NULL ;\n enc_octet_len = 0 ;\n * trailer = 0x00000000 ;\n }\n auth_tag = ( uint8_t * ) hdr + * pkt_octet_len ;\n status = rdb_increment ( & stream -> rtcp_rdb ) ;\n if ( status ) {\n return status ;\n }\n seq_num = rdb_get_value ( & stream -> rtcp_rdb ) ;\n * trailer |= htonl ( seq_num ) ;\n debug_print ( mod_srtp , \"srtcp index: %x\" , seq_num ) ;\n srtp_calc_aead_iv_srtcp ( stream , & iv , seq_num , hdr ) ;\n status = cipher_set_iv ( stream -> rtcp_cipher , & iv , direction_encrypt ) ;\n if ( status ) {\n return err_status_cipher_fail ;\n }\n if ( enc_start ) {\n status = cipher_set_aad ( stream -> rtcp_cipher , ( uint8_t * ) hdr , octets_in_rtcp_header ) ;\n if ( status ) {\n return ( err_status_cipher_fail ) ;\n }\n }\n else {\n status = cipher_set_aad ( stream -> rtcp_cipher , ( uint8_t * ) hdr , * pkt_octet_len ) ;\n if ( status ) {\n return ( err_status_cipher_fail ) ;\n }\n }\n tseq = htonl ( * trailer ) ;\n status = cipher_set_aad ( stream -> rtcp_cipher , ( uint8_t * ) & tseq , sizeof ( srtcp_trailer_t ) ) ;\n if ( status ) {\n return ( err_status_cipher_fail ) ;\n }\n if ( enc_start ) {\n status = cipher_encrypt ( stream -> rtcp_cipher , ( uint8_t * ) enc_start , & enc_octet_len ) ;\n if ( status ) {\n return err_status_cipher_fail ;\n }\n status = cipher_get_tag ( stream -> rtcp_cipher , ( uint8_t * ) auth_tag , & tag_len ) ;\n if ( status ) {\n return ( err_status_cipher_fail ) ;\n }\n enc_octet_len += tag_len ;\n }\n else {\n unsigned int nolen = 0 ;\n status = cipher_encrypt ( stream -> rtcp_cipher , NULL , & nolen ) ;\n if ( status ) {\n return err_status_cipher_fail ;\n }\n status = cipher_get_tag ( stream -> rtcp_cipher , ( uint8_t * ) auth_tag , & tag_len ) ;\n if ( status ) {\n return ( err_status_cipher_fail ) ;\n }\n enc_octet_len += tag_len ;\n }\n * pkt_octet_len += ( tag_len + sizeof ( srtcp_trailer_t ) ) ;\n return err_status_ok ;\n }"}
{"idx": 15121, "target": 1, "func": "SPL_METHOD ( SplTempFileObject , __construct ) {\n long max_memory = PHP_STREAM_MAX_MEM ;\n char tmp_fname [ 48 ] ;\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n zend_error_handling error_handling ;\n zend_replace_error_handling ( EH_THROW , spl_ce_RuntimeException , & error_handling TSRMLS_CC ) ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"|l\" , & max_memory ) == FAILURE ) {\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n return ;\n }\n if ( max_memory < 0 ) {\n intern -> file_name = \"php://memory\" ;\n intern -> file_name_len = 12 ;\n }\n else if ( ZEND_NUM_ARGS ( ) ) {\n intern -> file_name_len = slprintf ( tmp_fname , sizeof ( tmp_fname ) , \"php://temp/maxmemory:%ld\" , max_memory ) ;\n intern -> file_name = tmp_fname ;\n }\n else {\n intern -> file_name = \"php://temp\" ;\n intern -> file_name_len = 10 ;\n }\n intern -> u . file . open_mode = \"wb\" ;\n intern -> u . file . open_mode_len = 1 ;\n intern -> u . file . zcontext = NULL ;\n if ( spl_filesystem_file_open ( intern , 0 , 0 TSRMLS_CC ) == SUCCESS ) {\n intern -> _path_len = 0 ;\n intern -> _path = estrndup ( \"\" , 0 ) ;\n }\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n }"}
{"idx": 15122, "target": 0, "func": "static gpgme_error_t gpgsm_import ( void * engine , gpgme_data_t keydata , gpgme_key_t * keyarray ) {\n engine_gpgsm_t gpgsm = engine ;\n gpgme_error_t err ;\n gpgme_data_encoding_t dataenc ;\n int idx ;\n if ( ! gpgsm ) return gpg_error ( GPG_ERR_INV_VALUE ) ;\n if ( keydata && keyarray ) return gpg_error ( GPG_ERR_INV_VALUE ) ;\n dataenc = gpgme_data_get_encoding ( keydata ) ;\n if ( keyarray ) {\n size_t buflen ;\n char * buffer , * p ;\n err = gpgsm_assuan_simple_command ( gpgsm -> assuan_ctx , \"GETINFO cmd_has_option IMPORT re-import\" , NULL , NULL ) ;\n if ( err ) return gpg_error ( GPG_ERR_NOT_SUPPORTED ) ;\n for ( idx = 0 , buflen = 0 ;\n keyarray [ idx ] ;\n idx ++ ) {\n if ( keyarray [ idx ] -> protocol == GPGME_PROTOCOL_CMS && keyarray [ idx ] -> subkeys && keyarray [ idx ] -> subkeys -> fpr && * keyarray [ idx ] -> subkeys -> fpr ) buflen += strlen ( keyarray [ idx ] -> subkeys -> fpr ) + 1 ;\n }\n buffer = malloc ( buflen + 1 ) ;\n if ( ! buffer ) return gpg_error_from_syserror ( ) ;\n for ( idx = 0 , p = buffer ;\n keyarray [ idx ] ;\n idx ++ ) {\n if ( keyarray [ idx ] -> protocol == GPGME_PROTOCOL_CMS && keyarray [ idx ] -> subkeys && keyarray [ idx ] -> subkeys -> fpr && * keyarray [ idx ] -> subkeys -> fpr ) p = stpcpy ( stpcpy ( p , keyarray [ idx ] -> subkeys -> fpr ) , \"\\n\" ) ;\n }\n err = gpgme_data_new_from_mem ( & gpgsm -> input_helper_data , buffer , buflen , 0 ) ;\n if ( err ) {\n free ( buffer ) ;\n return err ;\n }\n gpgsm -> input_helper_memory = buffer ;\n gpgsm -> input_cb . data = gpgsm -> input_helper_data ;\n err = gpgsm_set_fd ( gpgsm , INPUT_FD , map_data_enc ( gpgsm -> input_cb . data ) ) ;\n if ( err ) {\n gpgme_data_release ( gpgsm -> input_helper_data ) ;\n gpgsm -> input_helper_data = NULL ;\n free ( gpgsm -> input_helper_memory ) ;\n gpgsm -> input_helper_memory = NULL ;\n return err ;\n }\n gpgsm_clear_fd ( gpgsm , OUTPUT_FD ) ;\n gpgsm_clear_fd ( gpgsm , MESSAGE_FD ) ;\n gpgsm -> inline_data = NULL ;\n return start ( gpgsm , \"IMPORT --re-import\" ) ;\n }\n else if ( dataenc == GPGME_DATA_ENCODING_URL || dataenc == GPGME_DATA_ENCODING_URL0 || dataenc == GPGME_DATA_ENCODING_URLESC ) {\n return gpg_error ( GPG_ERR_NOT_IMPLEMENTED ) ;\n }\n else {\n gpgsm -> input_cb . data = keydata ;\n err = gpgsm_set_fd ( gpgsm , INPUT_FD , map_data_enc ( gpgsm -> input_cb . data ) ) ;\n if ( err ) return err ;\n gpgsm_clear_fd ( gpgsm , OUTPUT_FD ) ;\n gpgsm_clear_fd ( gpgsm , MESSAGE_FD ) ;\n gpgsm -> inline_data = NULL ;\n return start ( gpgsm , \"IMPORT\" ) ;\n }\n }"}
{"idx": 15123, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell )"}
{"idx": 15124, "target": 0, "func": "static int dsa_bits ( const EVP_PKEY * pkey ) {\n return BN_num_bits ( pkey -> pkey . dsa -> p ) ;\n }"}
{"idx": 15125, "target": 0, "func": "static int aes_ccm_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_CCM_CTX * cctx = EVP_C_DATA ( EVP_AES_CCM_CTX , ctx ) ;\n CCM128_CONTEXT * ccm = & cctx -> ccm ;\n if ( ! cctx -> key_set ) return - 1 ;\n if ( cctx -> tls_aad_len >= 0 ) return aes_ccm_tls_cipher ( ctx , out , in , len ) ;\n if ( ! cctx -> iv_set ) return - 1 ;\n if ( ! EVP_CIPHER_CTX_encrypting ( ctx ) && ! cctx -> tag_set ) return - 1 ;\n if ( ! out ) {\n if ( ! in ) {\n if ( CRYPTO_ccm128_setiv ( ccm , EVP_CIPHER_CTX_iv_noconst ( ctx ) , 15 - cctx -> L , len ) ) return - 1 ;\n cctx -> len_set = 1 ;\n return len ;\n }\n if ( ! cctx -> len_set && len ) return - 1 ;\n CRYPTO_ccm128_aad ( ccm , in , len ) ;\n return len ;\n }\n if ( ! in ) return 0 ;\n if ( ! cctx -> len_set ) {\n if ( CRYPTO_ccm128_setiv ( ccm , EVP_CIPHER_CTX_iv_noconst ( ctx ) , 15 - cctx -> L , len ) ) return - 1 ;\n cctx -> len_set = 1 ;\n }\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( cctx -> str ? CRYPTO_ccm128_encrypt_ccm64 ( ccm , in , out , len , cctx -> str ) : CRYPTO_ccm128_encrypt ( ccm , in , out , len ) ) return - 1 ;\n cctx -> tag_set = 1 ;\n return len ;\n }\n else {\n int rv = - 1 ;\n if ( cctx -> str ? ! CRYPTO_ccm128_decrypt_ccm64 ( ccm , in , out , len , cctx -> str ) : ! CRYPTO_ccm128_decrypt ( ccm , in , out , len ) ) {\n unsigned char tag [ 16 ] ;\n if ( CRYPTO_ccm128_tag ( ccm , tag , cctx -> M ) ) {\n if ( ! CRYPTO_memcmp ( tag , EVP_CIPHER_CTX_buf_noconst ( ctx ) , cctx -> M ) ) rv = len ;\n }\n }\n if ( rv == - 1 ) OPENSSL_cleanse ( out , len ) ;\n cctx -> iv_set = 0 ;\n cctx -> tag_set = 0 ;\n cctx -> len_set = 0 ;\n return rv ;\n }\n }"}
{"idx": 15126, "target": 0, "func": "int vp9_qindex_to_quantizer ( int qindex ) {\n int quantizer ;\n for ( quantizer = 0 ;\n quantizer < 64 ;\n ++ quantizer ) if ( quantizer_to_qindex [ quantizer ] >= qindex ) return quantizer ;\n return 63 ;\n }"}
{"idx": 15127, "target": 1, "func": "static int test_compressed_stream_overflow ( xd3_stream * stream , int ignore ) {\n int ret ;\n int i ;\n uint8_t * buf ;\n if ( ( buf = ( uint8_t * ) malloc ( TWO_MEGS_AND_DELTA ) ) == NULL ) {\n return ENOMEM ;\n }\n memset ( buf , 0 , TWO_MEGS_AND_DELTA ) ;\n for ( i = 0 ;\n i < ( 2 << 20 ) ;\n i += 256 ) {\n int j ;\n int off = mt_random ( & static_mtrand ) % 10 ;\n for ( j = 0 ;\n j < 256 ;\n j ++ ) {\n buf [ i + j ] = j + off ;\n }\n }\n if ( SIZEOF_XOFF_T == 4 ) {\n ret = test_streaming ( stream , buf , buf + ( 1 << 20 ) , buf + ( 2 << 20 ) , ( 1 << 12 ) + 1 ) ;\n if ( ret == XD3_INVALID_INPUT && MSG_IS ( \"decoder file offset overflow\" ) ) {\n ret = 0 ;\n }\n else {\n XPR ( NT XD3_LIB_ERRMSG ( stream , ret ) ) ;\n stream -> msg = \"expected overflow condition\" ;\n ret = XD3_INTERNAL ;\n goto fail ;\n }\n }\n if ( ( ret = test_streaming ( stream , buf , buf + ( 1 << 20 ) , buf + ( 2 << 20 ) , << 12 ) ) ) {\n goto fail ;\n }\n fail : free ( buf ) ;\n return ret ;\n }"}
{"idx": 15128, "target": 0, "func": "static void test_bug11183 ( ) {\n int rc ;\n MYSQL_STMT * stmt ;\n char bug_statement [ ] = \"insert into t1 values (1)\" ;\n myheader ( \"test_bug11183\" ) ;\n mysql_query ( mysql , \"drop table t1 if exists\" ) ;\n mysql_query ( mysql , \"create table t1 (a int)\" ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n DIE_UNLESS ( stmt != 0 ) ;\n rc = mysql_stmt_prepare ( stmt , bug_statement , strlen ( bug_statement ) ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_query ( mysql , \"drop table t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n DIE_UNLESS ( rc ) ;\n mysql_stmt_reset ( stmt ) ;\n DIE_UNLESS ( mysql_stmt_errno ( stmt ) == 0 ) ;\n mysql_query ( mysql , \"create table t1 (a int)\" ) ;\n if ( mysql_stmt_execute ( stmt ) ) {\n mysql_stmt_reset ( stmt ) ;\n DIE_UNLESS ( mysql_stmt_errno ( stmt ) == 0 ) ;\n }\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"drop table t1\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 15129, "target": 0, "func": "static int remoteStreamHandleFinish ( struct qemud_client * client , struct qemud_client_stream * stream , struct qemud_client_message * msg ) {\n remote_error rerr ;\n int ret ;\n VIR_DEBUG ( \"stream=%p proc=%d serial=%d\" , stream , msg -> hdr . proc , msg -> hdr . serial ) ;\n memset ( & rerr , 0 , sizeof rerr ) ;\n stream -> closed = 1 ;\n virStreamEventRemoveCallback ( stream -> st ) ;\n ret = virStreamFinish ( stream -> st ) ;\n if ( ret < 0 ) {\n remoteDispatchError ( & rerr ) ;\n return remoteSerializeReplyError ( client , & rerr , & msg -> hdr ) ;\n }\n else {\n if ( remoteSendStreamData ( client , stream , NULL , 0 ) < 0 ) return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 15130, "target": 0, "func": "void proto_reg_handoff_iax2 ( void ) {\n dissector_handle_t v110_handle ;\n dissector_add_uint ( \"udp.port\" , IAX2_PORT , find_dissector ( \"iax2\" ) ) ;\n v110_handle = find_dissector ( \"v110\" ) ;\n if ( v110_handle ) dissector_add_uint ( \"iax2.dataformat\" , AST_DATAFORMAT_V110 , v110_handle ) ;\n data_handle = find_dissector ( \"data\" ) ;\n }"}
{"idx": 15131, "target": 0, "func": "static int selinux_capable ( const struct cred * cred , struct user_namespace * ns , int cap , int audit ) {\n return cred_has_capability ( cred , cap , audit , ns == & init_user_ns ) ;\n }"}
{"idx": 15132, "target": 0, "func": "static void break_cb ( int fd , short events , void * arg ) {\n test_ok = 1 ;\n event_loopbreak ( ) ;\n }"}
{"idx": 15133, "target": 0, "func": "static void test_bug56976 ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND bind [ 1 ] ;\n int rc ;\n const char * query = \"SELECT LENGTH(?)\" ;\n char * long_buffer ;\n unsigned long i , packet_len = 256 * 1024L ;\n unsigned long dos_len = 8 * 1024 * 1024L ;\n DBUG_ENTER ( \"test_bug56976\" ) ;\n myheader ( \"test_bug56976\" ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_prepare ( stmt , query , strlen ( query ) ) ;\n check_execute ( stmt , rc ) ;\n memset ( bind , 0 , sizeof ( bind ) ) ;\n bind [ 0 ] . buffer_type = MYSQL_TYPE_TINY_BLOB ;\n rc = mysql_stmt_bind_param ( stmt , bind ) ;\n check_execute ( stmt , rc ) ;\n long_buffer = ( char * ) my_malloc ( packet_len , MYF ( 0 ) ) ;\n DIE_UNLESS ( long_buffer ) ;\n memset ( long_buffer , 'a' , packet_len ) ;\n for ( i = 0 ;\n i < dos_len / packet_len ;\n i ++ ) {\n rc = mysql_stmt_send_long_data ( stmt , 0 , long_buffer , packet_len ) ;\n check_execute ( stmt , rc ) ;\n }\n my_free ( long_buffer ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n DIE_UNLESS ( rc && mysql_stmt_errno ( stmt ) == ER_UNKNOWN_ERROR ) ;\n mysql_stmt_close ( stmt ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 15134, "target": 1, "func": "static void mark_trusted_task_done ( GObject * source_object , GAsyncResult * res , gpointer user_data ) {\n MarkTrustedJob * job = user_data ;\n g_object_unref ( job -> file ) ;\n if ( job -> done_callback ) {\n job -> done_callback ( ! job_aborted ( ( CommonJob * ) job ) , job -> done_callback_data ) ;\n }\n finalize_common ( ( CommonJob * ) job ) ;\n }"}
{"idx": 15135, "target": 0, "func": "TEST_F ( UsbBlocklistTest , BasicExclusions ) {\n SetDynamicBlocklist ( \"18D1:58F0:0100\" ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x18D1 , 0x58F0 , 0x0100 }\n ) ) ;\n EXPECT_TRUE ( list ( ) . IsExcluded ( {\n 0x18D1 , 0x58F0 , 0x0090 }\n ) ) ;\n EXPECT_FALSE ( list ( ) . IsExcluded ( {\n 0x18D1 , 0x58F0 , 0x0200 }\n ) ) ;\n EXPECT_FALSE ( list ( ) . IsExcluded ( {\n 0x18D1 , 0x58F1 , 0x0100 }\n ) ) ;\n EXPECT_FALSE ( list ( ) . IsExcluded ( {\n 0x18D1 , 0x58EF , 0x0100 }\n ) ) ;\n EXPECT_FALSE ( list ( ) . IsExcluded ( {\n 0x18D0 , 0x58F0 , 0x0100 }\n ) ) ;\n EXPECT_FALSE ( list ( ) . IsExcluded ( {\n 0x18D2 , 0x58F0 , 0x0100 }\n ) ) ;\n }"}
{"idx": 15136, "target": 0, "func": "TEST_F ( TemplateURLTest , ReplaceSearchTermsInNonUTF8URL ) {\n TemplateURLData data ;\n data . SetURL ( \"http://windows-1251.ru/?q={\nsearchTerms}\n\" ) ;\n data . alternate_urls . push_back ( \"http://windows-1251.ru/#q={\nsearchTerms}\n\" ) ;\n data . alternate_urls . push_back ( \"http://windows-1251.ru/path/{\nsearchTerms}\n\" ) ;\n data . input_encodings . push_back ( \"windows-1251\" ) ;\n TemplateURL url ( data ) ;\n TemplateURLRef : : SearchTermsArgs search_terms ( base : : WideToUTF16 ( L\"\\x0442\\x0435\\x043A\\x0441\\x0442\" ) ) ;\n GURL result ;\n EXPECT_TRUE ( url . ReplaceSearchTermsInURL ( GURL ( \"http://windows-1251.ru/?q=a+b\" ) , search_terms , search_terms_data_ , & result ) ) ;\n EXPECT_EQ ( GURL ( \"http://windows-1251.ru/?q=%F2%E5%EA%F1%F2\" ) , result ) ;\n EXPECT_TRUE ( url . ReplaceSearchTermsInURL ( GURL ( \"http://windows-1251.ru/#q=a+b\" ) , search_terms , search_terms_data_ , & result ) ) ;\n EXPECT_EQ ( GURL ( \"http://windows-1251.ru/#q=%F2%E5%EA%F1%F2\" ) , result ) ;\n EXPECT_TRUE ( url . ReplaceSearchTermsInURL ( GURL ( \"http://windows-1251.ru/path/a%20b\" ) , search_terms , search_terms_data_ , & result ) ) ;\n EXPECT_EQ ( GURL ( \"http://windows-1251.ru/path/%F2%E5%EA%F1%F2\" ) , result ) ;\n }"}
{"idx": 15137, "target": 0, "func": "static GVariant * pk_transaction_get_property ( GDBusConnection * connection_ , const gchar * sender , const gchar * object_path , const gchar * interface_name , const gchar * property_name , GError * * error , gpointer user_data ) {\n PkTransaction * transaction = PK_TRANSACTION ( user_data ) ;\n PkTransactionPrivate * priv = transaction -> priv ;\n if ( g_strcmp0 ( property_name , \"Role\" ) == 0 ) return g_variant_new_uint32 ( priv -> role ) ;\n if ( g_strcmp0 ( property_name , \"Status\" ) == 0 ) return g_variant_new_uint32 ( priv -> status ) ;\n if ( g_strcmp0 ( property_name , \"LastPackage\" ) == 0 ) return _g_variant_new_maybe_string ( priv -> last_package_id ) ;\n if ( g_strcmp0 ( property_name , \"Uid\" ) == 0 ) return g_variant_new_uint32 ( priv -> uid ) ;\n if ( g_strcmp0 ( property_name , \"Percentage\" ) == 0 ) return g_variant_new_uint32 ( transaction -> priv -> percentage ) ;\n if ( g_strcmp0 ( property_name , \"AllowCancel\" ) == 0 ) return g_variant_new_boolean ( priv -> allow_cancel ) ;\n if ( g_strcmp0 ( property_name , \"CallerActive\" ) == 0 ) return g_variant_new_boolean ( priv -> caller_active ) ;\n if ( g_strcmp0 ( property_name , \"ElapsedTime\" ) == 0 ) return g_variant_new_uint32 ( priv -> elapsed_time ) ;\n if ( g_strcmp0 ( property_name , \"Speed\" ) == 0 ) return g_variant_new_uint32 ( priv -> speed ) ;\n if ( g_strcmp0 ( property_name , \"DownloadSizeRemaining\" ) == 0 ) return g_variant_new_uint64 ( priv -> download_size_remaining ) ;\n if ( g_strcmp0 ( property_name , \"TransactionFlags\" ) == 0 ) return g_variant_new_uint64 ( priv -> cached_transaction_flags ) ;\n return NULL ;\n }"}
{"idx": 15138, "target": 0, "func": "xmlLinkPtr xmlListFront ( xmlListPtr l ) {\n if ( l == NULL ) return ( NULL ) ;\n return ( l -> sentinel -> next ) ;\n }"}
{"idx": 15139, "target": 0, "func": "static inline void decode_1p_track ( int * out , int code , int m , int off ) {\n int pos = BIT_STR ( code , 0 , m ) + off ;\n out [ 0 ] = BIT_POS ( code , m ) ? - pos : pos ;\n }"}
{"idx": 15140, "target": 0, "func": "static void y4m_convert_mono_420jpeg ( y4m_input * _y4m , unsigned char * _dst , unsigned char * _aux ) {\n int c_sz ;\n ( void ) _aux ;\n _dst += _y4m -> pic_w * _y4m -> pic_h ;\n c_sz = ( ( _y4m -> pic_w + _y4m -> dst_c_dec_h - 1 ) / _y4m -> dst_c_dec_h ) * ( ( _y4m -> pic_h + _y4m -> dst_c_dec_v - 1 ) / _y4m -> dst_c_dec_v ) ;\n memset ( _dst , 128 , c_sz * 2 ) ;\n }"}
{"idx": 15141, "target": 1, "func": "TEST_F ( ScoredHistoryMatchTest , CullSearchResults ) {\n scoped_ptr < TemplateURLService > template_url_service = make_scoped_ptr ( new TemplateURLService ( nullptr , make_scoped_ptr ( new SearchTermsData ) , nullptr , scoped_ptr < TemplateURLServiceClient > ( ) , nullptr , nullptr , base : : Closure ( ) ) ) ;\n base : : Time now = base : : Time : : NowFromSystemTime ( ) ;\n history : : URLRow row ( MakeURLRow ( \"http://testsearch.com/thequery\" , \"Test Search Engine\" , 3 , 30 , 1 ) ) ;\n RowWordStarts word_starts ;\n PopulateWordStarts ( row , & word_starts ) ;\n WordStarts one_word_no_offset ( 1 , 0u ) ;\n VisitInfoVector visits = CreateVisitInfoVector ( 3 , 30 , now ) ;\n visits [ 0 ] . second = ui : : PAGE_TRANSITION_TYPED ;\n ScoredHistoryMatch scored_a ( row , visits , std : : string ( ) , ASCIIToUTF16 ( \"thequery\" ) , Make1Term ( \"thequery\" ) , one_word_no_offset , word_starts , false , template_url_service . get ( ) , now ) ;\n EXPECT_GT ( scored_a . raw_score , 0 ) ;\n ScoredHistoryMatch scored_b ( row , visits , std : : string ( ) , ASCIIToUTF16 ( \"testsearch\" ) , Make1Term ( \"testsearch\" ) , one_word_no_offset , word_starts , false , template_url_service . get ( ) , now ) ;\n EXPECT_GT ( scored_b . raw_score , 0 ) ;\n TemplateURLData data ;\n data . SetShortName ( ASCIIToUTF16 ( \"TestEngine\" ) ) ;\n data . SetKeyword ( ASCIIToUTF16 ( \"TestEngine\" ) ) ;\n data . SetURL ( \"http://testsearch.com/{\nsearchTerms}\n\" ) ;\n TemplateURL * template_url = new TemplateURL ( data ) ;\n template_url_service -> Add ( template_url ) ;\n template_url_service -> SetUserSelectedDefaultSearchProvider ( template_url ) ;\n template_url_service -> Load ( ) ;\n ScoredHistoryMatch scored_c ( row , visits , std : : string ( ) , ASCIIToUTF16 ( \"thequery\" ) , Make1Term ( \"thequery\" ) , one_word_no_offset , word_starts , false , template_url_service . get ( ) , now ) ;\n EXPECT_EQ ( 0 , scored_c . raw_score ) ;\n ScoredHistoryMatch scored_d ( row , visits , std : : string ( ) , ASCIIToUTF16 ( \"testsearch\" ) , Make1Term ( \"testsearch\" ) , one_word_no_offset , word_starts , false , template_url_service . get ( ) , now ) ;\n EXPECT_EQ ( 0 , scored_d . raw_score ) ;\n }"}
{"idx": 15142, "target": 1, "func": "xsltDocumentPtr xsltNewStyleDocument ( xsltStylesheetPtr style , xmlDocPtr doc ) {\n xsltDocumentPtr cur ;\n cur = ( xsltDocumentPtr ) xmlMalloc ( sizeof ( xsltDocument ) ) ;\n if ( cur == NULL ) {\n xsltTransformError ( NULL , style , ( xmlNodePtr ) doc , \"xsltNewStyleDocument : malloc failed\\n\" ) ;\n return ( NULL ) ;\n }\n memset ( cur , 0 , sizeof ( xsltDocument ) ) ;\n cur -> doc = doc ;\n if ( style != NULL ) {\n cur -> next = style -> docList ;\n style -> docList = cur ;\n }\n return ( cur ) ;\n }"}
{"idx": 15143, "target": 0, "func": "static void data_destroy_indic ( void * data ) {\n free ( data ) ;\n }"}
{"idx": 15144, "target": 0, "func": "static gboolean dequeue_pending_idle_callback ( gpointer callback_data ) {\n NautilusDirectory * directory ;\n GList * pending_file_info ;\n GList * node , * next ;\n NautilusFile * file ;\n GList * changed_files , * added_files ;\n GFileInfo * file_info ;\n const char * mimetype , * name ;\n DirectoryLoadState * dir_load_state ;\n directory = NAUTILUS_DIRECTORY ( callback_data ) ;\n nautilus_directory_ref ( directory ) ;\n nautilus_profile_start ( \"nitems %d\" , g_list_length ( directory -> details -> pending_file_info ) ) ;\n directory -> details -> dequeue_pending_idle_id = 0 ;\n pending_file_info = g_list_reverse ( directory -> details -> pending_file_info ) ;\n directory -> details -> pending_file_info = NULL ;\n if ( ! nautilus_directory_is_file_list_monitored ( directory ) ) {\n nautilus_directory_async_state_changed ( directory ) ;\n goto drain ;\n }\n added_files = NULL ;\n changed_files = NULL ;\n dir_load_state = directory -> details -> directory_load_in_progress ;\n for ( node = pending_file_info ;\n node != NULL ;\n node = node -> next ) {\n file_info = node -> data ;\n name = g_file_info_get_name ( file_info ) ;\n if ( dir_load_state && ! should_skip_file ( directory , file_info ) ) {\n dir_load_state -> load_file_count += 1 ;\n mimetype = g_file_info_get_content_type ( file_info ) ;\n if ( mimetype != NULL ) {\n istr_set_insert ( dir_load_state -> load_mime_list_hash , mimetype ) ;\n }\n }\n file = nautilus_directory_find_file_by_name ( directory , name ) ;\n if ( file != NULL ) {\n set_file_unconfirmed ( file , FALSE ) ;\n if ( ! file -> details -> is_added ) {\n nautilus_file_ref ( file ) ;\n file -> details -> is_added = TRUE ;\n added_files = g_list_prepend ( added_files , file ) ;\n }\n else if ( nautilus_file_update_info ( file , file_info ) ) {\n nautilus_file_ref ( file ) ;\n changed_files = g_list_prepend ( changed_files , file ) ;\n }\n }\n else {\n file = nautilus_file_new_from_info ( directory , file_info ) ;\n nautilus_directory_add_file ( directory , file ) ;\n file -> details -> is_added = TRUE ;\n added_files = g_list_prepend ( added_files , file ) ;\n }\n }\n if ( directory -> details -> directory_loaded ) {\n for ( node = directory -> details -> file_list ;\n node != NULL ;\n node = next ) {\n file = NAUTILUS_FILE ( node -> data ) ;\n next = node -> next ;\n if ( file -> details -> unconfirmed ) {\n nautilus_file_ref ( file ) ;\n changed_files = g_list_prepend ( changed_files , file ) ;\n nautilus_file_mark_gone ( file ) ;\n }\n }\n }\n nautilus_directory_emit_change_signals ( directory , changed_files ) ;\n nautilus_file_list_free ( changed_files ) ;\n nautilus_directory_emit_files_added ( directory , added_files ) ;\n nautilus_file_list_free ( added_files ) ;\n if ( directory -> details -> directory_loaded && ! directory -> details -> directory_loaded_sent_notification ) {\n nautilus_directory_emit_done_loading ( directory ) ;\n if ( dir_load_state ) {\n file = dir_load_state -> load_directory_file ;\n file -> details -> directory_count = dir_load_state -> load_file_count ;\n file -> details -> directory_count_is_up_to_date = TRUE ;\n file -> details -> got_directory_count = TRUE ;\n file -> details -> got_mime_list = TRUE ;\n file -> details -> mime_list_is_up_to_date = TRUE ;\n g_list_free_full ( file -> details -> mime_list , g_free ) ;\n file -> details -> mime_list = istr_set_get_as_list ( dir_load_state -> load_mime_list_hash ) ;\n nautilus_file_changed ( file ) ;\n }\n nautilus_directory_async_state_changed ( directory ) ;\n directory -> details -> directory_loaded_sent_notification = TRUE ;\n }\n drain : g_list_free_full ( pending_file_info , g_object_unref ) ;\n nautilus_directory_async_state_changed ( directory ) ;\n nautilus_profile_end ( NULL ) ;\n nautilus_directory_unref ( directory ) ;\n return FALSE ;\n }"}
{"idx": 15145, "target": 0, "func": "proto_item * parseXmlElement ( proto_tree * tree , tvbuff_t * tvb , packet_info * pinfo , gint * pOffset , int hfIndex ) {\n return parseByteString ( tree , tvb , pinfo , pOffset , hfIndex ) ;\n }"}
{"idx": 15146, "target": 0, "func": "unsigned char * fz_indexed_colorspace_palette ( fz_context * ctx , fz_colorspace * cs , int * high ) {\n struct indexed * idx = cs -> data ;\n if ( ! fz_colorspace_is_indexed ( ctx , cs ) ) fz_throw ( ctx , FZ_ERROR_GENERIC , \"colorspace not indexed\" ) ;\n * high = idx -> high ;\n return idx -> lookup ;\n }"}
{"idx": 15147, "target": 0, "func": "static int cgroup_rmdir ( char * dirname ) {\n struct dirent dirent , * direntp ;\n int saved_errno = 0 ;\n DIR * dir ;\n int ret , failed = 0 ;\n char pathname [ MAXPATHLEN ] ;\n dir = opendir ( dirname ) ;\n if ( ! dir ) {\n ERROR ( \"%s: failed to open %s\" , __func__ , dirname ) ;\n return - 1 ;\n }\n while ( ! readdir_r ( dir , & dirent , & direntp ) ) {\n struct stat mystat ;\n int rc ;\n if ( ! direntp ) break ;\n if ( ! strcmp ( direntp -> d_name , \".\" ) || ! strcmp ( direntp -> d_name , \"..\" ) ) continue ;\n rc = snprintf ( pathname , MAXPATHLEN , \"%s/%s\" , dirname , direntp -> d_name ) ;\n if ( rc < 0 || rc >= MAXPATHLEN ) {\n ERROR ( \"pathname too long\" ) ;\n failed = 1 ;\n if ( ! saved_errno ) saved_errno = - ENOMEM ;\n continue ;\n }\n ret = lstat ( pathname , & mystat ) ;\n if ( ret ) {\n SYSERROR ( \"%s: failed to stat %s\" , __func__ , pathname ) ;\n failed = 1 ;\n if ( ! saved_errno ) saved_errno = errno ;\n continue ;\n }\n if ( S_ISDIR ( mystat . st_mode ) ) {\n if ( cgroup_rmdir ( pathname ) < 0 ) {\n if ( ! saved_errno ) saved_errno = errno ;\n failed = 1 ;\n }\n }\n }\n if ( rmdir ( dirname ) < 0 ) {\n SYSERROR ( \"%s: failed to delete %s\" , __func__ , dirname ) ;\n if ( ! saved_errno ) saved_errno = errno ;\n failed = 1 ;\n }\n ret = closedir ( dir ) ;\n if ( ret ) {\n SYSERROR ( \"%s: failed to close directory %s\" , __func__ , dirname ) ;\n if ( ! saved_errno ) saved_errno = errno ;\n failed = 1 ;\n }\n errno = saved_errno ;\n return failed ? - 1 : 0 ;\n }"}
{"idx": 15148, "target": 0, "func": "static void dissect_zcl_ota_imagenotify ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n guint8 payload_type ;\n payload_type = tvb_get_guint8 ( tvb , * offset ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_payload_type , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_query_jitter , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n if ( payload_type >= ZBEE_ZCL_OTA_PAYLOAD_TYPE_QJ_MC ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_manufacturer_code , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n }\n if ( payload_type >= ZBEE_ZCL_OTA_PAYLOAD_TYPE_QJ_MC_IT ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_image_type , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n }\n if ( payload_type >= ZBEE_ZCL_OTA_PAYLOAD_TYPE_QJ_MC_IT_FV ) {\n dissect_zcl_ota_file_version_field ( tvb , tree , offset ) ;\n }\n }"}
{"idx": 15149, "target": 0, "func": "static char * list_digest_names ( void ) {\n char * list = NULL ;\n # ifdef OPENSSL # ifdef HAVE_EVP_MD_DO_ALL_SORTED struct hstate hstate = {\n NULL , NULL , K_PER_LINE + 1 }\n ;\n hstate . seen = ( const char * * ) emalloc_zero ( 1 * sizeof ( const char * ) ) ;\n INIT_SSL ( ) ;\n EVP_MD_do_all_sorted ( list_md_fn , & hstate ) ;\n list = hstate . list ;\n free ( hstate . seen ) ;\n # else list = ( char * ) emalloc ( sizeof ( \"md5, others (upgrade to OpenSSL-1.0 for full list)\" ) ) ;\n strcpy ( list , \"md5, others (upgrade to OpenSSL-1.0 for full list)\" ) ;\n # endif # else list = ( char * ) emalloc ( sizeof ( \"md5\" ) ) ;\n strcpy ( list , \"md5\" ) ;\n # endif return list ;\n }"}
{"idx": 15150, "target": 0, "func": "proto_item * parseInt32 ( proto_tree * tree , tvbuff_t * tvb , packet_info * pinfo _U_ , gint * pOffset , int hfIndex ) {\n proto_item * item = proto_tree_add_item ( tree , hfIndex , tvb , * pOffset , 4 , ENC_LITTLE_ENDIAN ) ;\n * pOffset += 4 ;\n return item ;\n }"}
{"idx": 15151, "target": 0, "func": "static int get_consumed_bytes ( int pos , int buf_size ) {\n if ( pos == 0 ) pos = 1 ;\n if ( pos + 10 > buf_size ) pos = buf_size ;\n return pos ;\n }"}
{"idx": 15152, "target": 0, "func": "static void directory_count_stop ( NautilusDirectory * directory ) {\n NautilusFile * file ;\n if ( directory -> details -> count_in_progress != NULL ) {\n file = directory -> details -> count_in_progress -> count_file ;\n if ( file != NULL ) {\n g_assert ( NAUTILUS_IS_FILE ( file ) ) ;\n g_assert ( file -> details -> directory == directory ) ;\n if ( is_needy ( file , should_get_directory_count_now , REQUEST_DIRECTORY_COUNT ) ) {\n return ;\n }\n }\n directory_count_cancel ( directory ) ;\n }\n }"}
{"idx": 15153, "target": 1, "func": "int i2d_ ## name ( type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;\n int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DIRECTORYSTRING ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DISPLAYTEXT )"}
{"idx": 15154, "target": 0, "func": "static size_t unicode_to_utf16le ( char * p , size_t remaining , uint32_t uc ) {\n char * utf16 = p ;\n if ( uc > 0xffff ) {\n if ( remaining < 4 ) return ( 0 ) ;\n uc -= 0x10000 ;\n archive_le16enc ( utf16 , ( ( uc >> 10 ) & 0x3ff ) + 0xD800 ) ;\n archive_le16enc ( utf16 + 2 , ( uc & 0x3ff ) + 0xDC00 ) ;\n return ( 4 ) ;\n }\n else {\n if ( remaining < 2 ) return ( 0 ) ;\n archive_le16enc ( utf16 , uc ) ;\n return ( 2 ) ;\n }\n }"}
{"idx": 15155, "target": 0, "func": "int virLogDefineOutputs ( virLogOutputPtr * outputs , size_t noutputs ) {\n # if HAVE_SYSLOG_H int id ;\n char * tmp = NULL ;\n # endif if ( virLogInitialize ( ) < 0 ) return - 1 ;\n virLogLock ( ) ;\n virLogResetOutputs ( ) ;\n # if HAVE_SYSLOG_H if ( ( id = virLogFindOutput ( outputs , noutputs , VIR_LOG_TO_SYSLOG , current_ident ) ) != - 1 ) {\n if ( VIR_STRDUP_QUIET ( tmp , outputs [ id ] -> name ) < 0 ) {\n virLogUnlock ( ) ;\n return - 1 ;\n }\n VIR_FREE ( current_ident ) ;\n current_ident = tmp ;\n openlog ( current_ident , 0 , 0 ) ;\n }\n # endif virLogOutputs = outputs ;\n virLogNbOutputs = noutputs ;\n virLogUnlock ( ) ;\n return 0 ;\n }"}
{"idx": 15156, "target": 0, "func": "hb_face_t * hb_face_get_empty ( void ) {\n return const_cast < hb_face_t * > ( & _hb_face_nil ) ;\n }"}
{"idx": 15157, "target": 1, "func": "static int dissect_h225_T_h245Ip6 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 348 \"./asn1/h225/h225.cnf\" tvbuff_t * value_tvb ;\n ipv6_address = ipv6_address_zeros ;\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 16 , 16 , FALSE , & value_tvb ) ;\n if ( value_tvb ) tvb_get_ipv6 ( value_tvb , 0 , & ipv6_address ) ;\n return offset ;\n }"}
{"idx": 15158, "target": 0, "func": "ATF_TC_HEAD ( pretty_print_option , tc ) {\n atf_tc_set_md_var ( tc , \"descr\" , \"Verify pretty_print_option does not overrun its buffer.\" ) ;\n }"}
{"idx": 15159, "target": 0, "func": "static void test_view ( ) {\n MYSQL_STMT * stmt ;\n int rc , i ;\n MYSQL_BIND my_bind [ 1 ] ;\n char str_data [ 50 ] ;\n ulong length = 0L ;\n long is_null = 0L ;\n const char * query = \"SELECT COUNT(*) FROM v1 WHERE SERVERNAME=?\" ;\n myheader ( \"test_view\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS t1,t2,t3,v1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP VIEW IF EXISTS v1,t1,t2,t3\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE t1 (\" \" SERVERGRP varchar(20) NOT NULL default '', \" \" DBINSTANCE varchar(20) NOT NULL default '', \" \" PRIMARY KEY (SERVERGRP)) \" \" CHARSET=latin1 collate=latin1_bin\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE t2 (\" \" SERVERNAME varchar(20) NOT NULL, \" \" SERVERGRP varchar(20) NOT NULL, \" \" PRIMARY KEY (SERVERNAME)) \" \" CHARSET=latin1 COLLATE latin1_bin\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE t3 (\" \" SERVERGRP varchar(20) BINARY NOT NULL, \" \" TABNAME varchar(30) NOT NULL, MAPSTATE char(1) NOT NULL, \" \" ACTSTATE char(1) NOT NULL , \" \" LOCAL_NAME varchar(30) NOT NULL, \" \" CHG_DATE varchar(8) NOT NULL default '00000000', \" \" CHG_TIME varchar(6) NOT NULL default '000000', \" \" MXUSER varchar(12) NOT NULL default '', \" \" PRIMARY KEY (SERVERGRP, TABNAME, MAPSTATE, ACTSTATE, \" \" LOCAL_NAME)) CHARSET=latin1 COLLATE latin1_bin\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE VIEW v1 AS select sql_no_cache\" \" T0001.SERVERNAME AS SERVERNAME, T0003.TABNAME AS\" \" TABNAME,T0003.LOCAL_NAME AS LOCAL_NAME,T0002.DBINSTANCE AS\" \" DBINSTANCE from t2 T0001 join t1 T0002 join t3 T0003 where\" \" ((T0002.SERVERGRP = T0001.SERVERGRP) and\" \" (T0002.SERVERGRP = T0003.SERVERGRP)\" \" and (T0003.MAPSTATE = _latin1'A') and\" \" (T0003.ACTSTATE = _latin1' '))\" ) ;\n myquery ( rc ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n rc = mysql_stmt_prepare ( stmt , query , strlen ( query ) ) ;\n check_execute ( stmt , rc ) ;\n strmov ( str_data , \"TEST\" ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 0 ] . buffer = ( char * ) & str_data ;\n my_bind [ 0 ] . buffer_length = 50 ;\n my_bind [ 0 ] . length = & length ;\n length = 4 ;\n my_bind [ 0 ] . is_null = ( char * ) & is_null ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( 1 == rc ) ;\n }\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"DROP TABLE t1,t2,t3\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP VIEW v1\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 15160, "target": 0, "func": "static zend_object_value dbstmt_clone_obj ( zval * zobject TSRMLS_DC ) {\n zend_object_value retval ;\n pdo_stmt_t * stmt ;\n pdo_stmt_t * old_stmt ;\n zend_object_handle handle = Z_OBJ_HANDLE_P ( zobject ) ;\n stmt = ecalloc ( 1 , sizeof ( * stmt ) ) ;\n zend_object_std_init ( & stmt -> std , Z_OBJCE_P ( zobject ) TSRMLS_CC ) ;\n object_properties_init ( & stmt -> std , Z_OBJCE_P ( zobject ) ) ;\n stmt -> refcount = 1 ;\n old_stmt = ( pdo_stmt_t * ) zend_object_store_get_object ( zobject TSRMLS_CC ) ;\n retval . handle = zend_objects_store_put ( stmt , ( zend_objects_store_dtor_t ) zend_objects_destroy_object , ( zend_objects_free_object_storage_t ) pdo_dbstmt_free_storage , ( zend_objects_store_clone_t ) dbstmt_clone_obj TSRMLS_CC ) ;\n retval . handlers = Z_OBJ_HT_P ( zobject ) ;\n zend_objects_clone_members ( ( zend_object * ) stmt , retval , ( zend_object * ) old_stmt , handle TSRMLS_CC ) ;\n zend_objects_store_add_ref ( & old_stmt -> database_object_handle TSRMLS_CC ) ;\n stmt -> database_object_handle = old_stmt -> database_object_handle ;\n return retval ;\n }"}
{"idx": 15161, "target": 0, "func": "static int mv_read_header ( AVFormatContext * avctx ) {\n MvContext * mv = avctx -> priv_data ;\n AVIOContext * pb = avctx -> pb ;\n AVStream * ast = NULL , * vst = NULL ;\n int version , i ;\n int ret ;\n avio_skip ( pb , 4 ) ;\n version = avio_rb16 ( pb ) ;\n if ( version == 2 ) {\n uint64_t timestamp ;\n int v ;\n avio_skip ( pb , 22 ) ;\n ast = avformat_new_stream ( avctx , NULL ) ;\n if ( ! ast ) return AVERROR ( ENOMEM ) ;\n vst = avformat_new_stream ( avctx , NULL ) ;\n if ( ! vst ) return AVERROR ( ENOMEM ) ;\n avpriv_set_pts_info ( vst , 64 , 1 , 15 ) ;\n vst -> codecpar -> codec_type = AVMEDIA_TYPE_VIDEO ;\n vst -> avg_frame_rate = av_inv_q ( vst -> time_base ) ;\n vst -> nb_frames = avio_rb32 ( pb ) ;\n v = avio_rb32 ( pb ) ;\n switch ( v ) {\n case 1 : vst -> codecpar -> codec_id = AV_CODEC_ID_MVC1 ;\n break ;\n case 2 : vst -> codecpar -> format = AV_PIX_FMT_ARGB ;\n vst -> codecpar -> codec_id = AV_CODEC_ID_RAWVIDEO ;\n break ;\n default : avpriv_request_sample ( avctx , \"Video compression %i\" , v ) ;\n break ;\n }\n vst -> codecpar -> codec_tag = 0 ;\n vst -> codecpar -> width = avio_rb32 ( pb ) ;\n vst -> codecpar -> height = avio_rb32 ( pb ) ;\n avio_skip ( pb , 12 ) ;\n ast -> codecpar -> codec_type = AVMEDIA_TYPE_AUDIO ;\n ast -> nb_frames = vst -> nb_frames ;\n ast -> codecpar -> sample_rate = avio_rb32 ( pb ) ;\n if ( ast -> codecpar -> sample_rate <= 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid sample rate %d\\n\" , ast -> codecpar -> sample_rate ) ;\n return AVERROR_INVALIDDATA ;\n }\n avpriv_set_pts_info ( ast , 33 , 1 , ast -> codecpar -> sample_rate ) ;\n if ( set_channels ( avctx , ast , avio_rb32 ( pb ) ) < 0 ) return AVERROR_INVALIDDATA ;\n v = avio_rb32 ( pb ) ;\n if ( v == AUDIO_FORMAT_SIGNED ) {\n ast -> codecpar -> codec_id = AV_CODEC_ID_PCM_S16BE ;\n }\n else {\n avpriv_request_sample ( avctx , \"Audio compression (format %i)\" , v ) ;\n }\n avio_skip ( pb , 12 ) ;\n var_read_metadata ( avctx , \"title\" , 0x80 ) ;\n var_read_metadata ( avctx , \"comment\" , 0x100 ) ;\n avio_skip ( pb , 0x80 ) ;\n timestamp = 0 ;\n for ( i = 0 ;\n i < vst -> nb_frames ;\n i ++ ) {\n uint32_t pos = avio_rb32 ( pb ) ;\n uint32_t asize = avio_rb32 ( pb ) ;\n uint32_t vsize = avio_rb32 ( pb ) ;\n if ( avio_feof ( pb ) ) return AVERROR_INVALIDDATA ;\n avio_skip ( pb , 8 ) ;\n av_add_index_entry ( ast , pos , timestamp , asize , 0 , AVINDEX_KEYFRAME ) ;\n av_add_index_entry ( vst , pos + asize , i , vsize , 0 , AVINDEX_KEYFRAME ) ;\n timestamp += asize / ( ast -> codecpar -> channels * 2 ) ;\n }\n }\n else if ( ! version && avio_rb16 ( pb ) == 3 ) {\n avio_skip ( pb , 4 ) ;\n if ( ( ret = read_table ( avctx , NULL , parse_global_var ) ) < 0 ) return ret ;\n if ( mv -> nb_audio_tracks > 1 ) {\n avpriv_request_sample ( avctx , \"Multiple audio streams support\" ) ;\n return AVERROR_PATCHWELCOME ;\n }\n else if ( mv -> nb_audio_tracks ) {\n ast = avformat_new_stream ( avctx , NULL ) ;\n if ( ! ast ) return AVERROR ( ENOMEM ) ;\n ast -> codecpar -> codec_type = AVMEDIA_TYPE_AUDIO ;\n if ( ( read_table ( avctx , ast , parse_audio_var ) ) < 0 ) return ret ;\n if ( mv -> acompression == 100 && mv -> aformat == AUDIO_FORMAT_SIGNED && ast -> codecpar -> bits_per_coded_sample == 16 ) {\n ast -> codecpar -> codec_id = AV_CODEC_ID_PCM_S16BE ;\n }\n else {\n avpriv_request_sample ( avctx , \"Audio compression %i (format %i, sr %i)\" , mv -> acompression , mv -> aformat , ast -> codecpar -> bits_per_coded_sample ) ;\n ast -> codecpar -> codec_id = AV_CODEC_ID_NONE ;\n }\n if ( ast -> codecpar -> channels <= 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"No valid channel count found.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n if ( mv -> nb_video_tracks > 1 ) {\n avpriv_request_sample ( avctx , \"Multiple video streams support\" ) ;\n return AVERROR_PATCHWELCOME ;\n }\n else if ( mv -> nb_video_tracks ) {\n vst = avformat_new_stream ( avctx , NULL ) ;\n if ( ! vst ) return AVERROR ( ENOMEM ) ;\n vst -> codecpar -> codec_type = AVMEDIA_TYPE_VIDEO ;\n if ( ( ret = read_table ( avctx , vst , parse_video_var ) ) < 0 ) return ret ;\n }\n if ( mv -> nb_audio_tracks ) read_index ( pb , ast ) ;\n if ( mv -> nb_video_tracks ) read_index ( pb , vst ) ;\n }\n else {\n avpriv_request_sample ( avctx , \"Version %i\" , version ) ;\n return AVERROR_PATCHWELCOME ;\n }\n return 0 ;\n }"}
{"idx": 15162, "target": 0, "func": "static void U_CALLCONV normalizationCorrectionsLineFn ( void * context , char * fields [ ] [ 2 ] , int32_t fieldCount , UErrorCode * pErrorCode ) {\n uint32_t mapping [ 40 ] ;\n char * end , * s ;\n uint32_t code ;\n int32_t length ;\n UVersionInfo version ;\n UVersionInfo thisVersion ;\n code = ( uint32_t ) uprv_strtoul ( fields [ 0 ] [ 0 ] , & end , 16 ) ;\n if ( U_FAILURE ( * pErrorCode ) ) {\n fprintf ( stderr , \"gensprep: error parsing NormalizationCorrections.txt mapping at %s\\n\" , fields [ 0 ] [ 0 ] ) ;\n exit ( * pErrorCode ) ;\n }\n s = fields [ 1 ] [ 0 ] ;\n length = u_parseCodePoints ( s , mapping , sizeof ( mapping ) / 4 , pErrorCode ) ;\n u_versionFromString ( version , fields [ 3 ] [ 0 ] ) ;\n u_versionFromString ( thisVersion , \"3.2.0\" ) ;\n if ( U_FAILURE ( * pErrorCode ) ) {\n fprintf ( stderr , \"gensprep error parsing NormalizationCorrections.txt of U+%04lx - %s\\n\" , ( long ) code , u_errorName ( * pErrorCode ) ) ;\n exit ( * pErrorCode ) ;\n }\n if ( version [ 0 ] > thisVersion [ 0 ] || ( ( version [ 0 ] == thisVersion [ 0 ] ) && ( version [ 1 ] > thisVersion [ 1 ] ) ) ) {\n storeMapping ( code , mapping , length , USPREP_MAP , pErrorCode ) ;\n }\n setUnicodeVersionNC ( version ) ;\n }"}
{"idx": 15163, "target": 0, "func": "static int jbig2_decode_generic_template2_TPGDON ( Jbig2Ctx * ctx , Jbig2Segment * segment , const Jbig2GenericRegionParams * params , Jbig2ArithState * as , Jbig2Image * image , Jbig2ArithCx * GB_stats ) {\n const int GBW = image -> width ;\n const int GBH = image -> height ;\n uint32_t CONTEXT ;\n int x , y ;\n bool bit ;\n int LTP = 0 ;\n for ( y = 0 ;\n y < GBH ;\n y ++ ) {\n bit = jbig2_arith_decode ( as , & GB_stats [ 0xE5 ] ) ;\n if ( bit < 0 ) return - 1 ;\n LTP ^= bit ;\n if ( ! LTP ) {\n for ( x = 0 ;\n x < GBW ;\n x ++ ) {\n CONTEXT = jbig2_image_get_pixel ( image , x - 1 , y ) ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 2 , y ) << 1 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x + params -> gbat [ 0 ] , y + params -> gbat [ 1 ] ) << 2 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x + 1 , y - 1 ) << 3 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x , y - 1 ) << 4 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 1 , y - 1 ) << 5 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 2 , y - 1 ) << 6 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x + 1 , y - 2 ) << 7 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x , y - 2 ) << 8 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 1 , y - 2 ) << 9 ;\n bit = jbig2_arith_decode ( as , & GB_stats [ CONTEXT ] ) ;\n if ( bit < 0 ) return - 1 ;\n jbig2_image_set_pixel ( image , x , y , bit ) ;\n }\n }\n else {\n copy_prev_row ( image , y ) ;\n }\n }\n return 0 ;\n }"}
{"idx": 15164, "target": 0, "func": "char * add_var ( struct ctl_var * * kv , u_long size , u_short def ) {\n u_short c ;\n struct ctl_var * k ;\n char * buf ;\n c = count_var ( * kv ) ;\n * kv = erealloc ( * kv , ( c + 2 ) * sizeof ( * * kv ) ) ;\n k = * kv ;\n buf = emalloc ( size ) ;\n k [ c ] . code = c ;\n k [ c ] . text = buf ;\n k [ c ] . flags = def ;\n k [ c + 1 ] . code = 0 ;\n k [ c + 1 ] . text = NULL ;\n k [ c + 1 ] . flags = EOV ;\n return buf ;\n }"}
{"idx": 15165, "target": 1, "func": "static gboolean qio_channel_websock_source_check ( GSource * source ) {\n QIOChannelWebsockSource * wsource = ( QIOChannelWebsockSource * ) source ;\n GIOCondition cond = 0 ;\n if ( wsource -> wioc -> rawinput . offset || wsource -> wioc -> io_eof ) {\n cond |= G_IO_IN ;\n }\n if ( wsource -> wioc -> rawoutput . offset < QIO_CHANNEL_WEBSOCK_MAX_BUFFER ) {\n cond |= G_IO_OUT ;\n }\n return cond & wsource -> condition ;\n }"}
{"idx": 15166, "target": 0, "func": "static guint iax_circuit_lookup ( const address * address_p , port_type ptype , guint32 port , guint32 callno ) {\n iax_circuit_key key ;\n guint32 * circuit_id_p ;\n key . addr = * address_p ;\n key . ptype = ptype ;\n key . port = port ;\n key . callno = callno ;\n circuit_id_p = ( guint32 * ) g_hash_table_lookup ( iax_circuit_hashtab , & key ) ;\n if ( ! circuit_id_p ) {\n iax_circuit_key * new_key ;\n new_key = wmem_new ( wmem_file_scope ( ) , iax_circuit_key ) ;\n new_key -> addr . type = address_p -> type ;\n new_key -> addr . len = MIN ( address_p -> len , MAX_ADDRESS ) ;\n new_key -> addr . data = new_key -> address_data ;\n memcpy ( new_key -> address_data , address_p -> data , new_key -> addr . len ) ;\n new_key -> ptype = ptype ;\n new_key -> port = port ;\n new_key -> callno = callno ;\n circuit_id_p = ( guint32 * ) wmem_new ( wmem_file_scope ( ) , iax_circuit_key ) ;\n * circuit_id_p = ++ circuitcount ;\n g_hash_table_insert ( iax_circuit_hashtab , new_key , circuit_id_p ) ;\n # ifdef DEBUG_HASHING g_debug ( \"Created new circuit id %u for node %s\" , * circuit_id_p , key_to_str ( new_key ) ) ;\n # endif }\n return * circuit_id_p ;\n }"}
{"idx": 15167, "target": 0, "func": "static int vb_decode_framedata ( VBDecContext * c , int offset ) {\n GetByteContext g ;\n uint8_t * prev , * cur ;\n int blk , blocks , t , blk2 ;\n int blocktypes = 0 ;\n int x , y , a , b ;\n int pattype , pattern ;\n const int width = c -> avctx -> width ;\n uint8_t * pstart = c -> prev_frame ;\n uint8_t * pend = c -> prev_frame + width * c -> avctx -> height ;\n g = c -> stream ;\n prev = c -> prev_frame + offset ;\n cur = c -> frame ;\n blocks = ( c -> avctx -> width >> 2 ) * ( c -> avctx -> height >> 2 ) ;\n blk2 = 0 ;\n for ( blk = 0 ;\n blk < blocks ;\n blk ++ ) {\n if ( ! ( blk & 3 ) ) {\n blocktypes = bytestream2_get_byte ( & g ) ;\n }\n switch ( blocktypes & 0xC0 ) {\n case 0x00 : for ( y = 0 ;\n y < 4 ;\n y ++ ) if ( check_line ( prev + y * width , pstart , pend ) ) memcpy ( cur + y * width , prev + y * width , 4 ) ;\n else memset ( cur + y * width , 0 , 4 ) ;\n break ;\n case 0x40 : t = bytestream2_get_byte ( & g ) ;\n if ( ! t ) {\n if ( bytestream2_get_bytes_left ( & g ) < 16 ) {\n av_log ( c -> avctx , AV_LOG_ERROR , \"Insufficient data\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( y = 0 ;\n y < 4 ;\n y ++ ) bytestream2_get_buffer ( & g , cur + y * width , 4 ) ;\n }\n else {\n x = ( ( t & 0xF ) ^ 8 ) - 8 ;\n y = ( ( t >> 4 ) ^ 8 ) - 8 ;\n t = x + y * width ;\n for ( y = 0 ;\n y < 4 ;\n y ++ ) if ( check_line ( prev + t + y * width , pstart , pend ) ) memcpy ( cur + y * width , prev + t + y * width , 4 ) ;\n else memset ( cur + y * width , 0 , 4 ) ;\n }\n break ;\n case 0x80 : t = bytestream2_get_byte ( & g ) ;\n for ( y = 0 ;\n y < 4 ;\n y ++ ) memset ( cur + y * width , t , 4 ) ;\n break ;\n case 0xC0 : t = bytestream2_get_byte ( & g ) ;\n pattype = t >> 6 ;\n pattern = vb_patterns [ t & 0x3F ] ;\n switch ( pattype ) {\n case 0 : a = bytestream2_get_byte ( & g ) ;\n b = bytestream2_get_byte ( & g ) ;\n for ( y = 0 ;\n y < 4 ;\n y ++ ) for ( x = 0 ;\n x < 4 ;\n x ++ , pattern >>= 1 ) cur [ x + y * width ] = ( pattern & 1 ) ? b : a ;\n break ;\n case 1 : pattern = ~ pattern ;\n case 2 : a = bytestream2_get_byte ( & g ) ;\n for ( y = 0 ;\n y < 4 ;\n y ++ ) for ( x = 0 ;\n x < 4 ;\n x ++ , pattern >>= 1 ) if ( pattern & 1 && check_pixel ( prev + x + y * width , pstart , pend ) ) cur [ x + y * width ] = prev [ x + y * width ] ;\n else cur [ x + y * width ] = a ;\n break ;\n case 3 : av_log ( c -> avctx , AV_LOG_ERROR , \"Invalid opcode seen @%d\\n\" , blk ) ;\n return AVERROR_INVALIDDATA ;\n }\n break ;\n }\n blocktypes <<= 2 ;\n cur += 4 ;\n prev += 4 ;\n blk2 ++ ;\n if ( blk2 == ( width >> 2 ) ) {\n blk2 = 0 ;\n cur += width * 3 ;\n prev += width * 3 ;\n }\n }\n return 0 ;\n }"}
{"idx": 15168, "target": 0, "func": "static void test_registerfds ( void ) {\n int i , j ;\n int pair [ 2 ] ;\n struct event read_evs [ 512 ] ;\n struct event write_evs [ 512 ] ;\n struct event_base * base = event_base_new ( ) ;\n fprintf ( stdout , \"Testing register fds: \" ) ;\n for ( i = 0 ;\n i < 512 ;\n ++ i ) {\n if ( evutil_socketpair ( AF_UNIX , SOCK_STREAM , 0 , pair ) == - 1 ) {\n break ;\n }\n event_set ( & read_evs [ i ] , pair [ 0 ] , EV_READ | EV_PERSIST , simple_read_cb , NULL ) ;\n event_base_set ( base , & read_evs [ i ] ) ;\n event_add ( & read_evs [ i ] , NULL ) ;\n event_set ( & write_evs [ i ] , pair [ 1 ] , EV_WRITE | EV_PERSIST , simple_write_cb , NULL ) ;\n event_base_set ( base , & write_evs [ i ] ) ;\n event_add ( & write_evs [ i ] , NULL ) ;\n event_base_loop ( base , EVLOOP_ONCE ) ;\n }\n for ( j = 0 ;\n j < i ;\n ++ j ) {\n event_del ( & read_evs [ j ] ) ;\n event_del ( & write_evs [ j ] ) ;\n # ifndef WIN32 close ( read_evs [ j ] . ev_fd ) ;\n close ( write_evs [ j ] . ev_fd ) ;\n # else CloseHandle ( ( HANDLE ) read_evs [ j ] . ev_fd ) ;\n CloseHandle ( ( HANDLE ) write_evs [ j ] . ev_fd ) ;\n # endif event_base_loop ( base , EVLOOP_ONCE ) ;\n }\n event_base_free ( base ) ;\n fprintf ( stdout , \"OK\\n\" ) ;\n }"}
{"idx": 15169, "target": 0, "func": "static void reconstruct_inter_block ( int plane , int block , BLOCK_SIZE plane_bsize , TX_SIZE tx_size , void * arg ) {\n struct inter_args * args = ( struct inter_args * ) arg ;\n VP9_COMMON * const cm = args -> cm ;\n MACROBLOCKD * const xd = args -> xd ;\n struct macroblockd_plane * const pd = & xd -> plane [ plane ] ;\n int x , y , eob ;\n txfrm_block_to_raster_xy ( plane_bsize , tx_size , block , & x , & y ) ;\n eob = vp9_decode_block_tokens ( cm , xd , plane , block , plane_bsize , x , y , tx_size , args -> r ) ;\n inverse_transform_block ( xd , plane , block , tx_size , & pd -> dst . buf [ 4 * y * pd -> dst . stride + 4 * x ] , pd -> dst . stride , eob ) ;\n * args -> eobtotal += eob ;\n }"}
{"idx": 15170, "target": 0, "func": "static int spl_filesystem_is_invalid_or_dot ( const char * d_name ) {\n return d_name [ 0 ] == '\\0' || spl_filesystem_is_dot ( d_name ) ;\n }"}
{"idx": 15171, "target": 0, "func": "static enum write_one_status write_one ( struct sha1file * f , struct object_entry * e , off_t * offset ) {\n unsigned long size ;\n int recursing ;\n recursing = ( e -> idx . offset == 1 ) ;\n if ( recursing ) {\n warning ( \"recursive delta detected for object %s\" , sha1_to_hex ( e -> idx . sha1 ) ) ;\n return WRITE_ONE_RECURSIVE ;\n }\n else if ( e -> idx . offset || e -> preferred_base ) {\n return WRITE_ONE_SKIP ;\n }\n if ( e -> delta ) {\n e -> idx . offset = 1 ;\n switch ( write_one ( f , e -> delta , offset ) ) {\n case WRITE_ONE_RECURSIVE : e -> delta = NULL ;\n break ;\n default : break ;\n case WRITE_ONE_BREAK : e -> idx . offset = recursing ;\n return WRITE_ONE_BREAK ;\n }\n }\n e -> idx . offset = * offset ;\n size = write_object ( f , e , * offset ) ;\n if ( ! size ) {\n e -> idx . offset = recursing ;\n return WRITE_ONE_BREAK ;\n }\n written_list [ nr_written ++ ] = & e -> idx ;\n if ( signed_add_overflows ( * offset , size ) ) die ( \"pack too large for current definition of off_t\" ) ;\n * offset += size ;\n return WRITE_ONE_WRITTEN ;\n }"}
{"idx": 15172, "target": 0, "func": "char * xmlrpc_array ( int argc , ... ) {\n va_list va ;\n char * a ;\n int idx = 0 ;\n char * s = NULL ;\n int len ;\n char buf [ XMLRPC_BUFSIZE ] ;\n va_start ( va , argc ) ;\n for ( idx = 0 ;\n idx < argc ;\n idx ++ ) {\n a = va_arg ( va , char * ) ;\n if ( ! s ) {\n snprintf ( buf , XMLRPC_BUFSIZE , \" <value>%s</value>\" , a ) ;\n s = sstrdup ( buf ) ;\n }\n else {\n snprintf ( buf , XMLRPC_BUFSIZE , \"%s\\r\\n <value>%s</value>\" , s , a ) ;\n free ( s ) ;\n s = sstrdup ( buf ) ;\n }\n }\n va_end ( va ) ;\n snprintf ( buf , XMLRPC_BUFSIZE , \"<array>\\r\\n <data>\\r\\n %s\\r\\n </data>\\r\\n </array>\" , s ) ;\n len = strlen ( buf ) ;\n free ( s ) ;\n return sstrdup ( buf ) ;\n }"}
{"idx": 15173, "target": 0, "func": "static void free_tables ( H264Context * h , int free_rbsp ) {\n int i ;\n H264Context * hx ;\n av_freep ( & h -> intra4x4_pred_mode ) ;\n av_freep ( & h -> chroma_pred_mode_table ) ;\n av_freep ( & h -> cbp_table ) ;\n av_freep ( & h -> mvd_table [ 0 ] ) ;\n av_freep ( & h -> mvd_table [ 1 ] ) ;\n av_freep ( & h -> direct_table ) ;\n av_freep ( & h -> non_zero_count ) ;\n av_freep ( & h -> slice_table_base ) ;\n h -> slice_table = NULL ;\n av_freep ( & h -> list_counts ) ;\n av_freep ( & h -> mb2b_xy ) ;\n av_freep ( & h -> mb2br_xy ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) av_freep ( & h -> visualization_buffer [ i ] ) ;\n av_buffer_pool_uninit ( & h -> qscale_table_pool ) ;\n av_buffer_pool_uninit ( & h -> mb_type_pool ) ;\n av_buffer_pool_uninit ( & h -> motion_val_pool ) ;\n av_buffer_pool_uninit ( & h -> ref_index_pool ) ;\n if ( free_rbsp && h -> DPB ) {\n for ( i = 0 ;\n i < MAX_PICTURE_COUNT ;\n i ++ ) unref_picture ( h , & h -> DPB [ i ] ) ;\n av_freep ( & h -> DPB ) ;\n }\n else if ( h -> DPB ) {\n for ( i = 0 ;\n i < MAX_PICTURE_COUNT ;\n i ++ ) h -> DPB [ i ] . needs_realloc = 1 ;\n }\n h -> cur_pic_ptr = NULL ;\n for ( i = 0 ;\n i < MAX_THREADS ;\n i ++ ) {\n hx = h -> thread_context [ i ] ;\n if ( ! hx ) continue ;\n av_freep ( & hx -> top_borders [ 1 ] ) ;\n av_freep ( & hx -> top_borders [ 0 ] ) ;\n av_freep ( & hx -> bipred_scratchpad ) ;\n av_freep ( & hx -> edge_emu_buffer ) ;\n av_freep ( & hx -> dc_val_base ) ;\n av_freep ( & hx -> me . scratchpad ) ;\n av_freep ( & hx -> er . mb_index2xy ) ;\n av_freep ( & hx -> er . error_status_table ) ;\n av_freep ( & hx -> er . er_temp_buffer ) ;\n av_freep ( & hx -> er . mbintra_table ) ;\n av_freep ( & hx -> er . mbskip_table ) ;\n if ( free_rbsp ) {\n av_freep ( & hx -> rbsp_buffer [ 1 ] ) ;\n av_freep ( & hx -> rbsp_buffer [ 0 ] ) ;\n hx -> rbsp_buffer_size [ 0 ] = 0 ;\n hx -> rbsp_buffer_size [ 1 ] = 0 ;\n }\n if ( i ) av_freep ( & h -> thread_context [ i ] ) ;\n }\n }"}
{"idx": 15174, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus )"}
{"idx": 15175, "target": 0, "func": "proto_item * proto_tree_add_boolean_format_value ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , guint32 value , const char * format , ... ) {\n proto_item * pi ;\n va_list ap ;\n pi = proto_tree_add_boolean ( tree , hfindex , tvb , start , length , value ) ;\n if ( pi != tree ) {\n va_start ( ap , format ) ;\n proto_tree_set_representation_value ( pi , format , ap ) ;\n va_end ( ap ) ;\n }\n return pi ;\n }"}
{"idx": 15176, "target": 0, "func": "static void qemu_kvm_wait_io_event ( CPUState * cpu ) {\n while ( cpu_thread_is_idle ( cpu ) ) {\n qemu_cond_wait ( cpu -> halt_cond , & qemu_global_mutex ) ;\n }\n qemu_kvm_eat_signals ( cpu ) ;\n qemu_wait_io_event_common ( cpu ) ;\n }"}
{"idx": 15177, "target": 0, "func": "static int dissect_btgatt_microbit_magnetometer_bearing ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , void * data ) {\n btatt_data_t * att_data = ( btatt_data_t * ) data ;\n gint offset = 0 ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) return - 1 ;\n proto_tree_add_item ( tree , hf_gatt_microbit_magnetometer_bearing , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n return offset ;\n }"}
{"idx": 15178, "target": 0, "func": "void register_stat_callbacks ( ) {\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.background_fill_current_count\" , RECD_INT , RECP_NON_PERSISTENT , ( int ) http_background_fill_current_count_stat , RecRawStatSyncSum ) ;\n HTTP_CLEAR_DYN_STAT ( http_background_fill_current_count_stat ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.current_client_connections\" , RECD_INT , RECP_NON_PERSISTENT , ( int ) http_current_client_connections_stat , RecRawStatSyncSum ) ;\n HTTP_CLEAR_DYN_STAT ( http_current_client_connections_stat ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.current_active_client_connections\" , RECD_INT , RECP_NON_PERSISTENT , ( int ) http_current_active_client_connections_stat , RecRawStatSyncSum ) ;\n HTTP_CLEAR_DYN_STAT ( http_current_active_client_connections_stat ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.websocket.current_active_client_connections\" , RECD_INT , RECP_NON_PERSISTENT , ( int ) http_websocket_current_active_client_connections_stat , RecRawStatSyncSum ) ;\n HTTP_CLEAR_DYN_STAT ( http_websocket_current_active_client_connections_stat ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.current_client_transactions\" , RECD_INT , RECP_NON_PERSISTENT , ( int ) http_current_client_transactions_stat , RecRawStatSyncSum ) ;\n HTTP_CLEAR_DYN_STAT ( http_current_client_transactions_stat ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.current_server_transactions\" , RECD_INT , RECP_NON_PERSISTENT , ( int ) http_current_server_transactions_stat , RecRawStatSyncSum ) ;\n HTTP_CLEAR_DYN_STAT ( http_current_server_transactions_stat ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.completed_requests\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_completed_requests_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.total_incoming_connections\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_total_incoming_connections_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.total_client_connections\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_total_client_connections_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.total_client_connections_ipv4\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_total_client_connections_ipv4_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.total_client_connections_ipv6\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_total_client_connections_ipv6_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.total_server_connections\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_total_server_connections_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.total_parent_proxy_connections\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_total_parent_proxy_connections_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.total_parent_retries\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_total_parent_retries_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.total_parent_switches\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_total_parent_switches_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.total_parent_retries_exhausted\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_total_parent_retries_exhausted_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.total_parent_marked_down_count\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_total_parent_marked_down_count , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.current_parent_proxy_connections\" , RECD_INT , RECP_NON_PERSISTENT , ( int ) http_current_parent_proxy_connections_stat , RecRawStatSyncSum ) ;\n HTTP_CLEAR_DYN_STAT ( http_current_parent_proxy_connections_stat ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.current_server_connections\" , RECD_INT , RECP_NON_PERSISTENT , ( int ) http_current_server_connections_stat , RecRawStatSyncSum ) ;\n HTTP_CLEAR_DYN_STAT ( http_current_server_connections_stat ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.current_cache_connections\" , RECD_INT , RECP_NON_PERSISTENT , ( int ) http_current_cache_connections_stat , RecRawStatSyncSum ) ;\n HTTP_CLEAR_DYN_STAT ( http_current_cache_connections_stat ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.avg_transactions_per_client_connection\" , RECD_FLOAT , RECP_PERSISTENT , ( int ) http_transactions_per_client_con , RecRawStatSyncAvg ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.avg_transactions_per_server_connection\" , RECD_FLOAT , RECP_PERSISTENT , ( int ) http_transactions_per_server_con , RecRawStatSyncAvg ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.transaction_counts.errors.pre_accept_hangups\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_ua_msecs_counts_errors_pre_accept_hangups_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.transaction_totaltime.errors.pre_accept_hangups\" , RECD_FLOAT , RECP_PERSISTENT , ( int ) http_ua_msecs_counts_errors_pre_accept_hangups_stat , RecRawStatSyncIntMsecsToFloatSeconds ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.incoming_requests\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_incoming_requests_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.outgoing_requests\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_outgoing_requests_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.incoming_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_incoming_responses_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.invalid_client_requests\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_invalid_client_requests_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.missing_host_hdr\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_missing_host_hdr_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.get_requests\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_get_requests_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.head_requests\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_head_requests_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.trace_requests\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_trace_requests_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.options_requests\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_options_requests_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.post_requests\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_post_requests_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.put_requests\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_put_requests_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.push_requests\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_push_requests_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.delete_requests\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_delete_requests_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.purge_requests\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_purge_requests_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.connect_requests\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_connect_requests_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.extension_method_requests\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_extension_method_requests_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.broken_server_connections\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_broken_server_connections_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.cache_lookups\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_cache_lookups_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.cache_writes\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_cache_writes_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.cache_updates\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_cache_updates_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.cache_deletes\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_cache_deletes_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.tunnels\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_tunnels_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.throttled_proxy_only\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_throttled_proxy_only_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.parent_proxy_transaction_time\" , RECD_INT , RECP_PERSISTENT , ( int ) http_parent_proxy_transaction_time_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.user_agent_request_header_total_size\" , RECD_INT , RECP_PERSISTENT , ( int ) http_user_agent_request_header_total_size_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.user_agent_response_header_total_size\" , RECD_INT , RECP_PERSISTENT , ( int ) http_user_agent_response_header_total_size_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.user_agent_request_document_total_size\" , RECD_INT , RECP_PERSISTENT , ( int ) http_user_agent_request_document_total_size_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.user_agent_response_document_total_size\" , RECD_INT , RECP_PERSISTENT , ( int ) http_user_agent_response_document_total_size_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.origin_server_request_header_total_size\" , RECD_INT , RECP_PERSISTENT , ( int ) http_origin_server_request_header_total_size_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.origin_server_response_header_total_size\" , RECD_INT , RECP_PERSISTENT , ( int ) http_origin_server_response_header_total_size_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.origin_server_request_document_total_size\" , RECD_INT , RECP_PERSISTENT , ( int ) http_origin_server_request_document_total_size_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.origin_server_response_document_total_size\" , RECD_INT , RECP_PERSISTENT , ( int ) http_origin_server_response_document_total_size_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.parent_proxy_request_total_bytes\" , RECD_INT , RECP_PERSISTENT , ( int ) http_parent_proxy_request_total_bytes_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.parent_proxy_response_total_bytes\" , RECD_INT , RECP_PERSISTENT , ( int ) http_parent_proxy_response_total_bytes_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.pushed_response_header_total_size\" , RECD_INT , RECP_PERSISTENT , ( int ) http_pushed_response_header_total_size_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.pushed_document_total_size\" , RECD_INT , RECP_PERSISTENT , ( int ) http_pushed_document_total_size_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.response_document_size_100\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_document_size_100_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.response_document_size_1K\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_document_size_1K_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.response_document_size_3K\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_document_size_3K_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.response_document_size_5K\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_document_size_5K_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.response_document_size_10K\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_document_size_10K_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.response_document_size_1M\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_document_size_1M_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.response_document_size_inf\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_document_size_inf_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.request_document_size_100\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_request_document_size_100_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.request_document_size_1K\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_request_document_size_1K_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.request_document_size_3K\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_request_document_size_3K_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.request_document_size_5K\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_request_document_size_5K_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.request_document_size_10K\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_request_document_size_10K_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.request_document_size_1M\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_request_document_size_1M_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.request_document_size_inf\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_request_document_size_inf_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.user_agent_speed_bytes_per_sec_100\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_user_agent_speed_bytes_per_sec_100_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.user_agent_speed_bytes_per_sec_1K\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_user_agent_speed_bytes_per_sec_1K_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.user_agent_speed_bytes_per_sec_10K\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_user_agent_speed_bytes_per_sec_10K_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.user_agent_speed_bytes_per_sec_100K\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_user_agent_speed_bytes_per_sec_100K_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.user_agent_speed_bytes_per_sec_1M\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_user_agent_speed_bytes_per_sec_1M_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.user_agent_speed_bytes_per_sec_10M\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_user_agent_speed_bytes_per_sec_10M_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.user_agent_speed_bytes_per_sec_100M\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_user_agent_speed_bytes_per_sec_100M_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.origin_server_speed_bytes_per_sec_100\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_origin_server_speed_bytes_per_sec_100_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.origin_server_speed_bytes_per_sec_1K\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_origin_server_speed_bytes_per_sec_1K_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.origin_server_speed_bytes_per_sec_10K\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_origin_server_speed_bytes_per_sec_10K_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.origin_server_speed_bytes_per_sec_100K\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_origin_server_speed_bytes_per_sec_100K_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.origin_server_speed_bytes_per_sec_1M\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_origin_server_speed_bytes_per_sec_1M_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.origin_server_speed_bytes_per_sec_10M\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_origin_server_speed_bytes_per_sec_10M_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.origin_server_speed_bytes_per_sec_100M\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_origin_server_speed_bytes_per_sec_100M_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.total_transactions_time\" , RECD_INT , RECP_PERSISTENT , ( int ) http_total_transactions_time_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.cache_hit_fresh\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_cache_hit_fresh_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.cache_hit_mem_fresh\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_cache_hit_mem_fresh_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.cache_hit_revalidated\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_cache_hit_reval_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.cache_hit_ims\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_cache_hit_ims_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.cache_hit_stale_served\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_cache_hit_stale_served_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.cache_miss_cold\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_cache_miss_cold_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.cache_miss_changed\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_cache_miss_changed_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.cache_miss_client_no_cache\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_cache_miss_client_no_cache_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.cache_miss_client_not_cacheable\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_cache_miss_uncacheable_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.cache_miss_ims\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_cache_miss_ims_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.cache_read_error\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_cache_read_error_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.tcp_hit_count_stat\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_tcp_hit_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.tcp_hit_user_agent_bytes_stat\" , RECD_INT , RECP_PERSISTENT , ( int ) http_tcp_hit_user_agent_bytes_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.tcp_hit_origin_server_bytes_stat\" , RECD_INT , RECP_PERSISTENT , ( int ) http_tcp_hit_origin_server_bytes_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.tcp_miss_count_stat\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_tcp_miss_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.tcp_miss_user_agent_bytes_stat\" , RECD_INT , RECP_PERSISTENT , ( int ) http_tcp_miss_user_agent_bytes_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.tcp_miss_origin_server_bytes_stat\" , RECD_INT , RECP_PERSISTENT , ( int ) http_tcp_miss_origin_server_bytes_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.tcp_expired_miss_count_stat\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_tcp_expired_miss_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.tcp_expired_miss_user_agent_bytes_stat\" , RECD_INT , RECP_PERSISTENT , ( int ) http_tcp_expired_miss_user_agent_bytes_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.tcp_expired_miss_origin_server_bytes_stat\" , RECD_INT , RECP_PERSISTENT , ( int ) http_tcp_expired_miss_origin_server_bytes_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.tcp_refresh_hit_count_stat\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_tcp_refresh_hit_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.tcp_refresh_hit_user_agent_bytes_stat\" , RECD_INT , RECP_PERSISTENT , ( int ) http_tcp_refresh_hit_user_agent_bytes_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.tcp_refresh_hit_origin_server_bytes_stat\" , RECD_INT , RECP_PERSISTENT , ( int ) http_tcp_refresh_hit_origin_server_bytes_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.tcp_refresh_miss_count_stat\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_tcp_refresh_miss_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.tcp_refresh_miss_user_agent_bytes_stat\" , RECD_INT , RECP_PERSISTENT , ( int ) http_tcp_refresh_miss_user_agent_bytes_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.tcp_refresh_miss_origin_server_bytes_stat\" , RECD_INT , RECP_PERSISTENT , ( int ) http_tcp_refresh_miss_origin_server_bytes_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.tcp_client_refresh_count_stat\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_tcp_client_refresh_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.tcp_client_refresh_user_agent_bytes_stat\" , RECD_INT , RECP_PERSISTENT , ( int ) http_tcp_client_refresh_user_agent_bytes_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.tcp_client_refresh_origin_server_bytes_stat\" , RECD_INT , RECP_PERSISTENT , ( int ) http_tcp_client_refresh_origin_server_bytes_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.tcp_ims_hit_count_stat\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_tcp_ims_hit_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.tcp_ims_hit_user_agent_bytes_stat\" , RECD_INT , RECP_PERSISTENT , ( int ) http_tcp_ims_hit_user_agent_bytes_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.tcp_ims_hit_origin_server_bytes_stat\" , RECD_INT , RECP_PERSISTENT , ( int ) http_tcp_ims_hit_origin_server_bytes_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.tcp_ims_miss_count_stat\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_tcp_ims_miss_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.tcp_ims_miss_user_agent_bytes_stat\" , RECD_INT , RECP_PERSISTENT , ( int ) http_tcp_ims_miss_user_agent_bytes_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.tcp_ims_miss_origin_server_bytes_stat\" , RECD_INT , RECP_PERSISTENT , ( int ) http_tcp_ims_miss_origin_server_bytes_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.err_client_abort_count_stat\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_err_client_abort_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.err_client_abort_user_agent_bytes_stat\" , RECD_INT , RECP_PERSISTENT , ( int ) http_err_client_abort_user_agent_bytes_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.err_client_abort_origin_server_bytes_stat\" , RECD_INT , RECP_PERSISTENT , ( int ) http_err_client_abort_origin_server_bytes_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.err_connect_fail_count_stat\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_err_connect_fail_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.err_connect_fail_user_agent_bytes_stat\" , RECD_INT , RECP_PERSISTENT , ( int ) http_err_connect_fail_user_agent_bytes_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.err_connect_fail_origin_server_bytes_stat\" , RECD_INT , RECP_PERSISTENT , ( int ) http_err_connect_fail_origin_server_bytes_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.misc_count_stat\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_misc_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.misc_user_agent_bytes_stat\" , RECD_INT , RECP_PERSISTENT , ( int ) http_misc_user_agent_bytes_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.http_misc_origin_server_bytes_stat\" , RECD_INT , RECP_PERSISTENT , ( int ) http_misc_origin_server_bytes_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.background_fill_bytes_aborted_stat\" , RECD_INT , RECP_PERSISTENT , ( int ) http_background_fill_bytes_aborted_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.background_fill_bytes_completed_stat\" , RECD_INT , RECP_PERSISTENT , ( int ) http_background_fill_bytes_completed_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.cache_write_errors\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_cache_write_errors , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.cache_read_errors\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_cache_read_errors , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.100_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_100_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.101_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_101_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.1xx_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_1xx_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.200_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_200_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.201_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_201_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.202_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_202_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.203_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_203_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.204_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_204_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.205_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_205_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.206_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_206_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.2xx_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_2xx_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.300_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_300_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.301_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_301_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.302_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_302_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.303_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_303_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.304_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_304_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.305_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_305_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.307_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_307_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.3xx_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_3xx_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.400_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_400_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.401_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_401_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.402_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_402_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.403_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_403_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.404_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_404_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.405_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_405_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.406_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_406_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.407_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_407_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.408_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_408_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.409_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_409_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.410_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_410_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.411_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_411_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.412_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_412_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.413_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_413_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.414_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_414_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.415_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_415_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.416_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_416_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.4xx_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_4xx_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.500_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_500_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.501_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_501_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.502_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_502_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.503_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_503_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.504_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_504_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.505_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_505_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.5xx_responses\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_response_status_5xx_count_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.transaction_counts.hit_fresh\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_ua_msecs_counts_hit_fresh_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.transaction_totaltime.hit_fresh\" , RECD_FLOAT , RECP_PERSISTENT , ( int ) http_ua_msecs_counts_hit_fresh_stat , RecRawStatSyncIntMsecsToFloatSeconds ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.transaction_counts.hit_fresh.process\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_ua_msecs_counts_hit_fresh_process_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.transaction_totaltime.hit_fresh.process\" , RECD_FLOAT , RECP_PERSISTENT , ( int ) http_ua_msecs_counts_hit_fresh_process_stat , RecRawStatSyncIntMsecsToFloatSeconds ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.transaction_counts.hit_revalidated\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_ua_msecs_counts_hit_reval_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.transaction_totaltime.hit_revalidated\" , RECD_FLOAT , RECP_PERSISTENT , ( int ) http_ua_msecs_counts_hit_reval_stat , RecRawStatSyncIntMsecsToFloatSeconds ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.transaction_counts.miss_cold\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_ua_msecs_counts_miss_cold_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.transaction_totaltime.miss_cold\" , RECD_FLOAT , RECP_PERSISTENT , ( int ) http_ua_msecs_counts_miss_cold_stat , RecRawStatSyncIntMsecsToFloatSeconds ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.transaction_counts.miss_not_cacheable\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_ua_msecs_counts_miss_uncacheable_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.transaction_totaltime.miss_not_cacheable\" , RECD_FLOAT , RECP_PERSISTENT , ( int ) http_ua_msecs_counts_miss_uncacheable_stat , RecRawStatSyncIntMsecsToFloatSeconds ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.transaction_counts.miss_changed\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_ua_msecs_counts_miss_changed_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.transaction_totaltime.miss_changed\" , RECD_FLOAT , RECP_PERSISTENT , ( int ) http_ua_msecs_counts_miss_changed_stat , RecRawStatSyncIntMsecsToFloatSeconds ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.transaction_counts.miss_client_no_cache\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_ua_msecs_counts_miss_client_no_cache_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.transaction_totaltime.miss_client_no_cache\" , RECD_FLOAT , RECP_PERSISTENT , ( int ) http_ua_msecs_counts_miss_client_no_cache_stat , RecRawStatSyncIntMsecsToFloatSeconds ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.transaction_counts.errors.aborts\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_ua_msecs_counts_errors_aborts_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.transaction_totaltime.errors.aborts\" , RECD_FLOAT , RECP_PERSISTENT , ( int ) http_ua_msecs_counts_errors_aborts_stat , RecRawStatSyncIntMsecsToFloatSeconds ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.transaction_counts.errors.possible_aborts\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_ua_msecs_counts_errors_possible_aborts_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.transaction_totaltime.errors.possible_aborts\" , RECD_FLOAT , RECP_PERSISTENT , ( int ) http_ua_msecs_counts_errors_possible_aborts_stat , RecRawStatSyncIntMsecsToFloatSeconds ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.transaction_counts.errors.connect_failed\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_ua_msecs_counts_errors_connect_failed_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.transaction_totaltime.errors.connect_failed\" , RECD_FLOAT , RECP_PERSISTENT , ( int ) http_ua_msecs_counts_errors_connect_failed_stat , RecRawStatSyncIntMsecsToFloatSeconds ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.transaction_counts.errors.other\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_ua_msecs_counts_errors_other_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.transaction_totaltime.errors.other\" , RECD_FLOAT , RECP_PERSISTENT , ( int ) http_ua_msecs_counts_errors_other_stat , RecRawStatSyncIntMsecsToFloatSeconds ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.transaction_counts.other.unclassified\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_ua_msecs_counts_other_unclassified_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.transaction_totaltime.other.unclassified\" , RECD_FLOAT , RECP_PERSISTENT , ( int ) http_ua_msecs_counts_other_unclassified_stat , RecRawStatSyncIntMsecsToFloatSeconds ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.disallowed_post_100_continue\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) disallowed_post_100_continue , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.total_x_redirect_count\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_total_x_redirect_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.https.incoming_requests\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) https_incoming_requests_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.https.total_client_connections\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) https_total_client_connections_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.origin_connections_throttled_out\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_origin_connections_throttled_stat , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.post_body_too_large\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_post_body_too_large , RecRawStatSyncCount ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.milestone.ua_begin\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_ua_begin_time_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.milestone.ua_first_read\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_ua_first_read_time_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.milestone.ua_read_header_done\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_ua_read_header_done_time_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.milestone.ua_begin_write\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_ua_begin_write_time_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.milestone.ua_close\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_ua_close_time_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.milestone.server_first_connect\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_server_first_connect_time_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.milestone.server_connect\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_server_connect_time_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.milestone.server_connect_end\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_server_connect_end_time_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.milestone.server_begin_write\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_server_begin_write_time_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.milestone.server_first_read\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_server_first_read_time_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.milestone.server_read_header_done\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_server_read_header_done_time_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.milestone.server_close\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_server_close_time_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.milestone.cache_open_read_begin\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_cache_open_read_begin_time_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.milestone.cache_open_read_end\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_cache_open_read_end_time_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.milestone.cache_open_write_begin\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_cache_open_write_begin_time_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.milestone.cache_open_write_end\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_cache_open_write_end_time_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.milestone.dns_lookup_begin\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_dns_lookup_begin_time_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.milestone.dns_lookup_end\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_dns_lookup_end_time_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.milestone.sm_start\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_sm_start_time_stat , RecRawStatSyncSum ) ;\n RecRegisterRawStat ( http_rsb , RECT_PROCESS , \"proxy.process.http.milestone.sm_finish\" , RECD_COUNTER , RECP_PERSISTENT , ( int ) http_sm_finish_time_stat , RecRawStatSyncSum ) ;\n }"}
{"idx": 15179, "target": 0, "func": "void * xmlHashQLookup ( xmlHashTablePtr table , const xmlChar * prefix , const xmlChar * name ) {\n return ( xmlHashQLookup3 ( table , prefix , name , NULL , NULL , NULL , NULL ) ) ;\n }"}
{"idx": 15180, "target": 0, "func": "void proto_register_zbee_zcl_ota ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_zbee_zcl_ota_attr_id , {\n \"Attribute\" , \"zbee_zcl_general.ota.attr_id\" , FT_UINT16 , BASE_HEX , VALS ( zbee_zcl_ota_attr_names ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ota_srv_tx_cmd_id , {\n \"Command\" , \"zbee_zcl_general.ota.cmd.srv_tx.id\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_ota_srv_tx_cmd_names ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ota_srv_rx_cmd_id , {\n \"Command\" , \"zbee_zcl_general.ota.cmd.srv_rx.id\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_ota_srv_rx_cmd_names ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ota_image_upgrade_status , {\n \"Image Upgrade Status\" , \"zbee_zcl_general.ota.status_attr\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_ota_image_upgrade_attr_status_names ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ota_zb_stack_ver , {\n \"ZigBee Stack Version\" , \"zbee_zcl_general.ota.zb_stack.ver\" , FT_UINT16 , BASE_HEX | BASE_RANGE_STRING , RVALS ( zbee_zcl_ota_zb_stack_ver_names ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ota_payload_type , {\n \"Payload Type\" , \"zbee_zcl_general.ota.payload.type\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_ota_paylaod_type_names ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ota_query_jitter , {\n \"Query Jitter\" , \"zbee_zcl_general.ota.query_jitter\" , FT_UINT8 , BASE_CUSTOM , CF_FUNC ( decode_zcl_time_in_seconds ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ota_manufacturer_code , {\n \"Manufacturer Code\" , \"zbee_zcl_general.ota.manufacturer_code\" , FT_UINT16 , BASE_HEX , VALS ( zbee_mfr_code_names ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ota_image_type , {\n \"Image Type\" , \"zbee_zcl_general.ota.image.type\" , FT_UINT16 , BASE_HEX | BASE_RANGE_STRING , RVALS ( zbee_zcl_ota_image_type_names ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ota_file_version , {\n \"File Version\" , \"zbee_zcl_general.ota.file.version\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ota_file_version_appl_release , {\n \"Application Release\" , \"zbee_zcl_general.ota.file.version.appl.release\" , FT_UINT32 , BASE_DEC , NULL , ZBEE_ZCL_OTA_FILE_VERS_APPL_RELEASE , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ota_file_version_appl_build , {\n \"Application Build\" , \"zbee_zcl_general.ota.file.version.appl.build\" , FT_UINT32 , BASE_DEC , NULL , ZBEE_ZCL_OTA_FILE_VERS_APPL_BUILD , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ota_file_version_stack_release , {\n \"Stack Release\" , \"zbee_zcl_general.ota.file.version.stack.release\" , FT_UINT32 , BASE_DEC , NULL , ZBEE_ZCL_OTA_FILE_VERS_STACK_RELEASE , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ota_file_version_stack_build , {\n \"Stack Build\" , \"zbee_zcl_general.ota.file.version.stack.build\" , FT_UINT32 , BASE_DEC , NULL , ZBEE_ZCL_OTA_FILE_VERS_STACK_BUILD , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ota_field_ctrl , {\n \"Field Control\" , \"zbee_zcl_general.ota.field_ctrl\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ota_field_ctrl_hw_ver_present , {\n \"Hardware Version\" , \"zbee_zcl_general.ota.field_ctrl_hw_ver_present\" , FT_BOOLEAN , 8 , TFS ( & tfs_present_not_present ) , ZBEE_ZCL_OTA_FIELD_CTRL_HW_VER_PRESENT , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ota_field_ctrl_reserved , {\n \"Reserved\" , \"zbee_zcl_general.ota.field_ctrl_reserved\" , FT_UINT8 , BASE_HEX , NULL , ZBEE_ZCL_OTA_FIELD_CTRL_RESERVED , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ota_hw_version , {\n \"Hardware Version\" , \"zbee_zcl_general.ota.hw_ver\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ota_status , {\n \"Status\" , \"zbee_zcl_general.ota.status\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_status_names ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ota_image_size , {\n \"Image Size\" , \"zbee_zcl_general.ota.image.size\" , FT_UINT32 , BASE_CUSTOM , CF_FUNC ( decode_zcl_ota_size_in_bytes ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ota_file_offset , {\n \"File Offset\" , \"zbee_zcl_general.ota.file.offset\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ota_max_data_size , {\n \"Max Data Size\" , \"zbee_zcl_general.ota.max_data_size\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ota_req_node_addr , {\n \"Ieee Address\" , \"zbee_zcl_general.ota.ieee_addr\" , FT_UINT64 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ota_page_size , {\n \"Page Size\" , \"zbee_zcl_general.ota.page.size\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_zcl_ota_size_in_bytes ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ota_rsp_spacing , {\n \"Response Spacing\" , \"zbee_zcl_general.ota.rsp_spacing\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ota_current_time , {\n \"Current Time\" , \"zbee_zcl_general.ota.current_time\" , FT_UINT32 , BASE_CUSTOM , CF_FUNC ( decode_zcl_ota_curr_time ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ota_request_time , {\n \"Request Time\" , \"zbee_zcl_general.ota.request_time\" , FT_UINT32 , BASE_CUSTOM , CF_FUNC ( decode_zcl_ota_req_time ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ota_upgrade_time , {\n \"Upgrade Time\" , \"zbee_zcl_general.ota.upgrade_time\" , FT_UINT32 , BASE_CUSTOM , CF_FUNC ( decode_zcl_ota_upgr_time ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ota_data_size , {\n \"Data Size\" , \"zbee_zcl_general.ota.data_size\" , FT_UINT8 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_ota_image_data , {\n \"Image Data\" , \"zbee_zcl_general.ota.image.data\" , FT_BYTES , SEP_COLON , NULL , 0x00 , NULL , HFILL }\n }\n }\n ;\n gint * ett [ ZBEE_ZCL_OTA_NUM_ETT ] ;\n ett [ 0 ] = & ett_zbee_zcl_ota ;\n ett [ 1 ] = & ett_zbee_zcl_ota_field_ctrl ;\n ett [ 2 ] = & ett_zbee_zcl_ota_file_version ;\n proto_zbee_zcl_ota = proto_register_protocol ( \"ZigBee ZCL OTA\" , \"ZCL OTA\" , ZBEE_PROTOABBREV_ZCL_OTA ) ;\n proto_register_field_array ( proto_zbee_zcl_ota , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n register_dissector ( ZBEE_PROTOABBREV_ZCL_OTA , dissect_zbee_zcl_ota , proto_zbee_zcl_ota ) ;\n }"}
{"idx": 15181, "target": 0, "func": "static slurm_addr_t * _build_node_addr ( char * node_list , uint32_t node_cnt , uint32_t pack_job_id ) {\n hostlist_t host_list = NULL ;\n struct node_record * node_ptr ;\n slurm_addr_t * node_addr ;\n char * this_node_name ;\n int error_code = SLURM_SUCCESS , node_inx = 0 ;\n if ( ( host_list = hostlist_create ( node_list ) ) == NULL ) {\n error ( \"%s hostlist_create error for pack job %u (%s): %m\" , __func__ , pack_job_id , node_list ) ;\n return NULL ;\n }\n node_addr = xmalloc ( sizeof ( slurm_addr_t ) * node_cnt ) ;\n while ( ( this_node_name = hostlist_shift ( host_list ) ) ) {\n if ( ( node_ptr = find_node_record ( this_node_name ) ) ) {\n memcpy ( node_addr + node_inx , & node_ptr -> slurm_addr , sizeof ( slurm_addr_t ) ) ;\n node_inx ++ ;\n }\n else {\n error ( \"%s: Invalid node %s in pack job %u\" , __func__ , this_node_name , pack_job_id ) ;\n error_code = SLURM_ERROR ;\n }\n free ( this_node_name ) ;\n if ( error_code != SLURM_SUCCESS ) break ;\n }\n hostlist_destroy ( host_list ) ;\n if ( error_code != SLURM_SUCCESS ) xfree ( node_addr ) ;\n return node_addr ;\n }"}
{"idx": 15182, "target": 0, "func": "void * pdf_new_processor ( fz_context * ctx , int size ) {\n return Memento_label ( fz_calloc ( ctx , 1 , size ) , \"pdf_processor\" ) ;\n }"}
{"idx": 15183, "target": 0, "func": "static void model_rd_for_sb ( VP9_COMP * cpi , BLOCK_SIZE bsize , MACROBLOCK * x , MACROBLOCKD * xd , int * out_rate_sum , int64_t * out_dist_sum ) {\n int i ;\n int64_t rate_sum = 0 ;\n int64_t dist_sum = 0 ;\n const int ref = xd -> mi [ 0 ] . src_mi -> mbmi . ref_frame [ 0 ] ;\n unsigned int sse ;\n unsigned int var = 0 ;\n unsigned int sum_sse = 0 ;\n const int shift = 8 ;\n int rate ;\n int64_t dist ;\n x -> pred_sse [ ref ] = 0 ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n ++ i ) {\n struct macroblock_plane * const p = & x -> plane [ i ] ;\n struct macroblockd_plane * const pd = & xd -> plane [ i ] ;\n const BLOCK_SIZE bs = get_plane_block_size ( bsize , pd ) ;\n const TX_SIZE max_tx_size = max_txsize_lookup [ bs ] ;\n const BLOCK_SIZE unit_size = txsize_to_bsize [ max_tx_size ] ;\n int bw = 1 << ( b_width_log2_lookup [ bs ] - b_width_log2_lookup [ unit_size ] ) ;\n int bh = 1 << ( b_height_log2_lookup [ bs ] - b_width_log2_lookup [ unit_size ] ) ;\n int idx , idy ;\n int lw = b_width_log2_lookup [ unit_size ] + 2 ;\n int lh = b_height_log2_lookup [ unit_size ] + 2 ;\n sum_sse = 0 ;\n for ( idy = 0 ;\n idy < bh ;\n ++ idy ) {\n for ( idx = 0 ;\n idx < bw ;\n ++ idx ) {\n uint8_t * src = p -> src . buf + ( idy * p -> src . stride << lh ) + ( idx << lw ) ;\n uint8_t * dst = pd -> dst . buf + ( idy * pd -> dst . stride << lh ) + ( idx << lh ) ;\n int block_idx = ( idy << 1 ) + idx ;\n var = cpi -> fn_ptr [ unit_size ] . vf ( src , p -> src . stride , dst , pd -> dst . stride , & sse ) ;\n x -> bsse [ ( i << 2 ) + block_idx ] = sse ;\n sum_sse += sse ;\n if ( ! x -> select_tx_size ) {\n if ( x -> bsse [ ( i << 2 ) + block_idx ] < p -> quant_thred [ 0 ] >> shift ) x -> skip_txfm [ ( i << 2 ) + block_idx ] = 1 ;\n else if ( var < p -> quant_thred [ 1 ] >> shift ) x -> skip_txfm [ ( i << 2 ) + block_idx ] = 2 ;\n else x -> skip_txfm [ ( i << 2 ) + block_idx ] = 0 ;\n }\n if ( i == 0 ) x -> pred_sse [ ref ] += sse ;\n }\n }\n if ( cpi -> oxcf . speed > 4 ) {\n int64_t rate ;\n int64_t dist ;\n int64_t square_error = sse ;\n int quantizer = ( pd -> dequant [ 1 ] >> 3 ) ;\n if ( quantizer < 120 ) rate = ( square_error * ( 280 - quantizer ) ) >> 8 ;\n else rate = 0 ;\n dist = ( square_error * quantizer ) >> 8 ;\n rate_sum += rate ;\n dist_sum += dist ;\n }\n else {\n vp9_model_rd_from_var_lapndz ( sum_sse , 1 << num_pels_log2_lookup [ bs ] , pd -> dequant [ 1 ] >> 3 , & rate , & dist ) ;\n rate_sum += rate ;\n dist_sum += dist ;\n }\n }\n * out_rate_sum = ( int ) rate_sum ;\n * out_dist_sum = dist_sum << 4 ;\n }"}
{"idx": 15184, "target": 0, "func": "static void DecoderProcessOnFlush ( decoder_t * p_dec ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n vlc_mutex_lock ( & p_owner -> lock ) ;\n if ( p_owner -> b_flushing ) {\n p_owner -> b_flushing = false ;\n vlc_cond_signal ( & p_owner -> wait_acknowledge ) ;\n }\n vlc_mutex_unlock ( & p_owner -> lock ) ;\n }"}
{"idx": 15185, "target": 0, "func": "static int dissect_h245_H2250ModeParameters ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_H2250ModeParameters , H2250ModeParameters_sequence ) ;\n return offset ;\n }"}
{"idx": 15186, "target": 0, "func": "TSReturnCode TSUrlUserSet ( TSMBuffer bufp , TSMLoc obj , const char * value , int length ) {\n return URLPartSet ( bufp , obj , value , length , & URL : : user_set ) ;\n }"}
{"idx": 15187, "target": 0, "func": "static vpx_codec_err_t validate_config ( vpx_codec_alg_priv_t * ctx , const vpx_codec_enc_cfg_t * cfg , const struct vp9_extracfg * extra_cfg ) {\n RANGE_CHECK ( cfg , g_w , 1 , 65535 ) ;\n RANGE_CHECK ( cfg , g_h , 1 , 65535 ) ;\n RANGE_CHECK ( cfg , g_timebase . den , 1 , 1000000000 ) ;\n RANGE_CHECK ( cfg , g_timebase . num , 1 , cfg -> g_timebase . den ) ;\n RANGE_CHECK_HI ( cfg , g_profile , 3 ) ;\n RANGE_CHECK_HI ( cfg , rc_max_quantizer , 63 ) ;\n RANGE_CHECK_HI ( cfg , rc_min_quantizer , cfg -> rc_max_quantizer ) ;\n RANGE_CHECK_BOOL ( extra_cfg , lossless ) ;\n RANGE_CHECK ( extra_cfg , aq_mode , 0 , AQ_MODE_COUNT - 1 ) ;\n RANGE_CHECK ( extra_cfg , frame_periodic_boost , 0 , 1 ) ;\n RANGE_CHECK_HI ( cfg , g_threads , 64 ) ;\n RANGE_CHECK_HI ( cfg , g_lag_in_frames , MAX_LAG_BUFFERS ) ;\n RANGE_CHECK ( cfg , rc_end_usage , VPX_VBR , VPX_Q ) ;\n RANGE_CHECK_HI ( cfg , rc_undershoot_pct , 1000 ) ;\n RANGE_CHECK_HI ( cfg , rc_overshoot_pct , 1000 ) ;\n RANGE_CHECK_HI ( cfg , rc_2pass_vbr_bias_pct , 100 ) ;\n RANGE_CHECK ( cfg , kf_mode , VPX_KF_DISABLED , VPX_KF_AUTO ) ;\n RANGE_CHECK_BOOL ( cfg , rc_resize_allowed ) ;\n RANGE_CHECK_HI ( cfg , rc_dropframe_thresh , 100 ) ;\n RANGE_CHECK_HI ( cfg , rc_resize_up_thresh , 100 ) ;\n RANGE_CHECK_HI ( cfg , rc_resize_down_thresh , 100 ) ;\n RANGE_CHECK ( cfg , g_pass , VPX_RC_ONE_PASS , VPX_RC_LAST_PASS ) ;\n if ( cfg -> rc_resize_allowed == 1 ) {\n RANGE_CHECK ( cfg , rc_scaled_width , 1 , cfg -> g_w ) ;\n RANGE_CHECK ( cfg , rc_scaled_height , 1 , cfg -> g_h ) ;\n }\n RANGE_CHECK ( cfg , ss_number_layers , 1 , VPX_SS_MAX_LAYERS ) ;\n RANGE_CHECK ( cfg , ts_number_layers , 1 , VPX_TS_MAX_LAYERS ) ;\n if ( cfg -> ts_number_layers > 1 ) {\n unsigned int i ;\n for ( i = 1 ;\n i < cfg -> ts_number_layers ;\n ++ i ) if ( cfg -> ts_target_bitrate [ i ] < cfg -> ts_target_bitrate [ i - 1 ] ) ERROR ( \"ts_target_bitrate entries are not increasing\" ) ;\n RANGE_CHECK ( cfg , ts_rate_decimator [ cfg -> ts_number_layers - 1 ] , 1 , 1 ) ;\n for ( i = cfg -> ts_number_layers - 2 ;\n i > 0 ;\n -- i ) if ( cfg -> ts_rate_decimator [ i - 1 ] != 2 * cfg -> ts_rate_decimator [ i ] ) ERROR ( \"ts_rate_decimator factors are not powers of 2\" ) ;\n }\n # if CONFIG_SPATIAL_SVC if ( ( cfg -> ss_number_layers > 1 || cfg -> ts_number_layers > 1 ) && cfg -> g_pass == VPX_RC_LAST_PASS ) {\n unsigned int i , alt_ref_sum = 0 ;\n for ( i = 0 ;\n i < cfg -> ss_number_layers ;\n ++ i ) {\n if ( cfg -> ss_enable_auto_alt_ref [ i ] ) ++ alt_ref_sum ;\n }\n if ( alt_ref_sum > REF_FRAMES - cfg -> ss_number_layers ) ERROR ( \"Not enough ref buffers for svc alt ref frames\" ) ;\n if ( ( cfg -> ss_number_layers > 3 || cfg -> ss_number_layers * cfg -> ts_number_layers > 4 ) && cfg -> g_error_resilient == 0 ) ERROR ( \"Multiple frame context are not supported for more than 3 spatial \" \"layers or more than 4 spatial x temporal layers\" ) ;\n }\n # endif if ( cfg -> kf_mode != VPX_KF_DISABLED && cfg -> kf_min_dist != cfg -> kf_max_dist && cfg -> kf_min_dist > 0 ) ERROR ( \"kf_min_dist not supported in auto mode, use 0 \" \"or kf_max_dist instead.\" ) ;\n RANGE_CHECK_BOOL ( extra_cfg , enable_auto_alt_ref ) ;\n RANGE_CHECK ( extra_cfg , cpu_used , - 16 , 16 ) ;\n RANGE_CHECK_HI ( extra_cfg , noise_sensitivity , 6 ) ;\n RANGE_CHECK ( extra_cfg , tile_columns , 0 , 6 ) ;\n RANGE_CHECK ( extra_cfg , tile_rows , 0 , 2 ) ;\n RANGE_CHECK_HI ( extra_cfg , sharpness , 7 ) ;\n RANGE_CHECK ( extra_cfg , arnr_max_frames , 0 , 15 ) ;\n RANGE_CHECK_HI ( extra_cfg , arnr_strength , 6 ) ;\n RANGE_CHECK ( extra_cfg , cq_level , 0 , 63 ) ;\n RANGE_CHECK ( cfg , g_bit_depth , VPX_BITS_8 , VPX_BITS_12 ) ;\n RANGE_CHECK ( cfg , g_input_bit_depth , 8 , 12 ) ;\n RANGE_CHECK ( extra_cfg , content , VP9E_CONTENT_DEFAULT , VP9E_CONTENT_INVALID - 1 ) ;\n if ( extra_cfg -> tuning == VP8_TUNE_SSIM ) ERROR ( \"Option --tune=ssim is not currently supported in VP9.\" ) ;\n if ( cfg -> g_pass == VPX_RC_LAST_PASS ) {\n const size_t packet_sz = sizeof ( FIRSTPASS_STATS ) ;\n const int n_packets = ( int ) ( cfg -> rc_twopass_stats_in . sz / packet_sz ) ;\n const FIRSTPASS_STATS * stats ;\n if ( cfg -> rc_twopass_stats_in . buf == NULL ) ERROR ( \"rc_twopass_stats_in.buf not set.\" ) ;\n if ( cfg -> rc_twopass_stats_in . sz % packet_sz ) ERROR ( \"rc_twopass_stats_in.sz indicates truncated packet.\" ) ;\n if ( cfg -> ss_number_layers > 1 || cfg -> ts_number_layers > 1 ) {\n int i ;\n unsigned int n_packets_per_layer [ VPX_SS_MAX_LAYERS ] = {\n 0 }\n ;\n stats = cfg -> rc_twopass_stats_in . buf ;\n for ( i = 0 ;\n i < n_packets ;\n ++ i ) {\n const int layer_id = ( int ) stats [ i ] . spatial_layer_id ;\n if ( layer_id >= 0 && layer_id < ( int ) cfg -> ss_number_layers ) {\n ++ n_packets_per_layer [ layer_id ] ;\n }\n }\n for ( i = 0 ;\n i < ( int ) cfg -> ss_number_layers ;\n ++ i ) {\n unsigned int layer_id ;\n if ( n_packets_per_layer [ i ] < 2 ) {\n ERROR ( \"rc_twopass_stats_in requires at least two packets for each \" \"layer.\" ) ;\n }\n stats = ( const FIRSTPASS_STATS * ) cfg -> rc_twopass_stats_in . buf + n_packets - cfg -> ss_number_layers + i ;\n layer_id = ( int ) stats -> spatial_layer_id ;\n if ( layer_id >= cfg -> ss_number_layers || ( unsigned int ) ( stats -> count + 0.5 ) != n_packets_per_layer [ layer_id ] - 1 ) ERROR ( \"rc_twopass_stats_in missing EOS stats packet\" ) ;\n }\n }\n else {\n if ( cfg -> rc_twopass_stats_in . sz < 2 * packet_sz ) ERROR ( \"rc_twopass_stats_in requires at least two packets.\" ) ;\n stats = ( const FIRSTPASS_STATS * ) cfg -> rc_twopass_stats_in . buf + n_packets - 1 ;\n if ( ( int ) ( stats -> count + 0.5 ) != n_packets - 1 ) ERROR ( \"rc_twopass_stats_in missing EOS stats packet\" ) ;\n }\n }\n # if ! CONFIG_VP9_HIGHBITDEPTH if ( cfg -> g_profile > ( unsigned int ) PROFILE_1 ) ERROR ( \"Profile > 1 not supported in this build configuration\" ) ;\n # endif if ( cfg -> g_profile <= ( unsigned int ) PROFILE_1 && extra_cfg -> bit_depth > VPX_BITS_8 ) ERROR ( \"Codec high bit-depth not supported in profile < 2\" ) ;\n if ( cfg -> g_profile > ( unsigned int ) PROFILE_1 && extra_cfg -> bit_depth == VPX_BITS_8 ) ERROR ( \"Codec bit-depth 8 not supported in profile > 1\" ) ;\n return VPX_CODEC_OK ;\n }"}
{"idx": 15188, "target": 0, "func": "static void http_badreq_errorcb ( struct bufferevent * bev , short what , void * arg ) {\n event_debug ( ( \"%s: called (what=%04x, arg=%p)\" , __func__ , what , arg ) ) ;\n }"}
{"idx": 15189, "target": 0, "func": "static int zexecstack ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n return push_execstack ( i_ctx_p , op , false , execstack_continue ) ;\n }"}
{"idx": 15190, "target": 0, "func": "static int get_max_filter_level ( const VP9_COMP * cpi ) {\n if ( cpi -> oxcf . pass == 2 ) {\n return cpi -> twopass . section_intra_rating > 8 ? MAX_LOOP_FILTER * 3 / 4 : MAX_LOOP_FILTER ;\n }\n else {\n return MAX_LOOP_FILTER ;\n }\n }"}
{"idx": 15191, "target": 0, "func": "static void mpeg_decode_sequence_display_extension ( Mpeg1Context * s1 ) {\n MpegEncContext * s = & s1 -> mpeg_enc_ctx ;\n int color_description , w , h ;\n skip_bits ( & s -> gb , 3 ) ;\n color_description = get_bits1 ( & s -> gb ) ;\n if ( color_description ) {\n s -> avctx -> color_primaries = get_bits ( & s -> gb , 8 ) ;\n s -> avctx -> color_trc = get_bits ( & s -> gb , 8 ) ;\n s -> avctx -> colorspace = get_bits ( & s -> gb , 8 ) ;\n }\n w = get_bits ( & s -> gb , 14 ) ;\n skip_bits ( & s -> gb , 1 ) ;\n h = get_bits ( & s -> gb , 14 ) ;\n s1 -> pan_scan . width = 16 * w ;\n s1 -> pan_scan . height = 16 * h ;\n if ( s -> avctx -> debug & FF_DEBUG_PICT_INFO ) av_log ( s -> avctx , AV_LOG_DEBUG , \"sde w:%d, h:%d\\n\" , w , h ) ;\n }"}
{"idx": 15192, "target": 0, "func": "void proto_reg_handoff_zbee_zcl_power_config ( void ) {\n dissector_handle_t handle ;\n handle = find_dissector ( ZBEE_PROTOABBREV_ZCL_POWER_CONFIG ) ;\n dissector_add_uint ( \"zbee.zcl.cluster\" , ZBEE_ZCL_CID_POWER_CONFIG , handle ) ;\n zbee_zcl_init_cluster ( proto_zbee_zcl_power_config , ett_zbee_zcl_power_config , ZBEE_ZCL_CID_POWER_CONFIG , hf_zbee_zcl_power_config_attr_id , - 1 , - 1 , ( zbee_zcl_fn_attr_data ) dissect_zcl_power_config_attr_data ) ;\n }"}
{"idx": 15193, "target": 0, "func": "static gboolean is_all_button_text ( const char * button_text ) {\n g_assert ( button_text != NULL ) ;\n return ! strcmp ( button_text , SKIP_ALL ) || ! strcmp ( button_text , REPLACE_ALL ) || ! strcmp ( button_text , DELETE_ALL ) || ! strcmp ( button_text , MERGE_ALL ) ;\n }"}
{"idx": 15194, "target": 0, "func": "static void tmp_fld_check_assert ( header_field_info * hfinfo ) {\n gchar * tmp_str ;\n if ( ! hfinfo -> name || ! hfinfo -> name [ 0 ] ) {\n if ( hfinfo -> abbrev ) g_error ( \"Field (abbrev='%s') does not have a name\\n\" , hfinfo -> abbrev ) ;\n else g_error ( \"Field does not have a name (nor an abbreviation)\\n\" ) ;\n }\n if ( ! hfinfo -> abbrev || ! hfinfo -> abbrev [ 0 ] ) g_error ( \"Field '%s' does not have an abbreviation\\n\" , hfinfo -> name ) ;\n if ( hfinfo -> strings != NULL && ! ( ( hfinfo -> type == FT_UINT8 ) || ( hfinfo -> type == FT_UINT16 ) || ( hfinfo -> type == FT_UINT24 ) || ( hfinfo -> type == FT_UINT32 ) || ( hfinfo -> type == FT_UINT40 ) || ( hfinfo -> type == FT_UINT48 ) || ( hfinfo -> type == FT_UINT56 ) || ( hfinfo -> type == FT_UINT64 ) || ( hfinfo -> type == FT_INT8 ) || ( hfinfo -> type == FT_INT16 ) || ( hfinfo -> type == FT_INT24 ) || ( hfinfo -> type == FT_INT32 ) || ( hfinfo -> type == FT_INT40 ) || ( hfinfo -> type == FT_INT48 ) || ( hfinfo -> type == FT_INT56 ) || ( hfinfo -> type == FT_INT64 ) || ( hfinfo -> type == FT_BOOLEAN ) || ( hfinfo -> type == FT_PROTOCOL ) || ( hfinfo -> type == FT_FRAMENUM ) ) ) g_error ( \"Field '%s' (%s) has a 'strings' value but is of type %s\" \" (which is not allowed to have strings)\\n\" , hfinfo -> name , hfinfo -> abbrev , ftype_name ( hfinfo -> type ) ) ;\n # if 0 if ( ( hfinfo -> strings != NULL ) && ! ( hfinfo -> display & BASE_RANGE_STRING ) && ! ( ( hfinfo -> display & FIELD_DISPLAY_E_MASK ) == BASE_CUSTOM ) && ( ( hfinfo -> type == FT_UINT8 ) || ( hfinfo -> type == FT_UINT16 ) || ( hfinfo -> type == FT_UINT24 ) || ( hfinfo -> type == FT_UINT32 ) || ( hfinfo -> type == FT_INT8 ) || ( hfinfo -> type == FT_INT16 ) || ( hfinfo -> type == FT_INT24 ) || ( hfinfo -> type == FT_INT32 ) || ( hfinfo -> type == FT_FRAMENUM ) ) ) {\n int n , m ;\n const value_string * start_values ;\n const value_string * current ;\n if ( hfinfo -> display & BASE_EXT_STRING ) start_values = VALUE_STRING_EXT_VS_P ( ( ( const value_string_ext * ) hfinfo -> strings ) ) ;\n else start_values = ( const value_string * ) hfinfo -> strings ;\n current = start_values ;\n for ( n = 0 ;\n current ;\n n ++ , current ++ ) {\n if ( ( current -> value == 0 ) && ( current -> strptr == NULL ) ) {\n break ;\n }\n for ( m = 0 ;\n m < n ;\n m ++ ) {\n if ( ( start_values [ m ] . value == current -> value ) && ( strcmp ( start_values [ m ] . strptr , current -> strptr ) != 0 ) ) {\n g_warning ( \"Field '%s' (%s) has a conflicting entry in its\" \" value_string: %u is at indices %u (%s) and %u (%s))\\n\" , hfinfo -> name , hfinfo -> abbrev , current -> value , m , start_values [ m ] . strptr , n , current -> strptr ) ;\n }\n }\n }\n }\n # endif switch ( hfinfo -> type ) {\n case FT_INT8 : case FT_INT16 : case FT_INT24 : case FT_INT32 : case FT_INT40 : case FT_INT48 : case FT_INT56 : case FT_INT64 : switch ( hfinfo -> display & FIELD_DISPLAY_E_MASK ) {\n case BASE_HEX : case BASE_OCT : case BASE_DEC_HEX : case BASE_HEX_DEC : tmp_str = val_to_str_wmem ( NULL , hfinfo -> display , hf_display , \"(Bit count: %d)\" ) ;\n g_error ( \"Field '%s' (%s) is signed (%s) but is being displayed unsigned (%s)\\n\" , hfinfo -> name , hfinfo -> abbrev , ftype_name ( hfinfo -> type ) , tmp_str ) ;\n wmem_free ( NULL , tmp_str ) ;\n }\n case FT_UINT8 : case FT_UINT16 : case FT_UINT24 : case FT_UINT32 : case FT_UINT40 : case FT_UINT48 : case FT_UINT56 : case FT_UINT64 : if ( IS_BASE_PORT ( hfinfo -> display ) ) {\n tmp_str = val_to_str_wmem ( NULL , hfinfo -> display , hf_display , \"(Unknown: 0x%x)\" ) ;\n if ( hfinfo -> type != FT_UINT16 ) {\n g_error ( \"Field '%s' (%s) has 'display' value %s but it can only be used with FT_UINT16, not %s\\n\" , hfinfo -> name , hfinfo -> abbrev , tmp_str , ftype_name ( hfinfo -> type ) ) ;\n }\n if ( hfinfo -> strings != NULL ) {\n g_error ( \"Field '%s' (%s) is an %s (%s) but has a strings value\\n\" , hfinfo -> name , hfinfo -> abbrev , ftype_name ( hfinfo -> type ) , tmp_str ) ;\n }\n if ( hfinfo -> bitmask != 0 ) {\n g_error ( \"Field '%s' (%s) is an %s (%s) but has a bitmask\\n\" , hfinfo -> name , hfinfo -> abbrev , ftype_name ( hfinfo -> type ) , tmp_str ) ;\n }\n wmem_free ( NULL , tmp_str ) ;\n break ;\n }\n switch ( hfinfo -> display & FIELD_DISPLAY_E_MASK ) {\n case BASE_DEC : case BASE_HEX : case BASE_OCT : case BASE_DEC_HEX : case BASE_HEX_DEC : case BASE_CUSTOM : break ;\n case BASE_NONE : if ( hfinfo -> strings == NULL ) g_error ( \"Field '%s' (%s) is an integral value (%s)\" \" but is being displayed as BASE_NONE but\" \" without a strings conversion\" , hfinfo -> name , hfinfo -> abbrev , ftype_name ( hfinfo -> type ) ) ;\n break ;\n default : tmp_str = val_to_str_wmem ( NULL , hfinfo -> display , hf_display , \"(Unknown: 0x%x)\" ) ;\n g_error ( \"Field '%s' (%s) is an integral value (%s)\" \" but is being displayed as %s\\n\" , hfinfo -> name , hfinfo -> abbrev , ftype_name ( hfinfo -> type ) , tmp_str ) ;\n wmem_free ( NULL , tmp_str ) ;\n }\n break ;\n case FT_BYTES : switch ( hfinfo -> display & FIELD_DISPLAY_E_MASK ) {\n case BASE_NONE : case SEP_DOT : case SEP_DASH : case SEP_COLON : case SEP_SPACE : break ;\n default : tmp_str = val_to_str_wmem ( NULL , hfinfo -> display , hf_display , \"(Bit count: %d)\" ) ;\n g_error ( \"Field '%s' (%s) is an byte array but is being displayed as %s instead of BASE_NONE, SEP_DOT, SEP_DASH, SEP_COLON, or SEP_SPACE\\n\" , hfinfo -> name , hfinfo -> abbrev , tmp_str ) ;\n wmem_free ( NULL , tmp_str ) ;\n }\n if ( hfinfo -> bitmask != 0 ) g_error ( \"Field '%s' (%s) is an %s but has a bitmask\\n\" , hfinfo -> name , hfinfo -> abbrev , ftype_name ( hfinfo -> type ) ) ;\n if ( hfinfo -> strings != NULL ) g_error ( \"Field '%s' (%s) is an %s but has a strings value\\n\" , hfinfo -> name , hfinfo -> abbrev , ftype_name ( hfinfo -> type ) ) ;\n break ;\n case FT_PROTOCOL : case FT_FRAMENUM : if ( hfinfo -> display != BASE_NONE ) {\n tmp_str = val_to_str_wmem ( NULL , hfinfo -> display , hf_display , \"(Bit count: %d)\" ) ;\n g_error ( \"Field '%s' (%s) is an %s but is being displayed as %s instead of BASE_NONE\\n\" , hfinfo -> name , hfinfo -> abbrev , ftype_name ( hfinfo -> type ) , tmp_str ) ;\n wmem_free ( NULL , tmp_str ) ;\n }\n if ( hfinfo -> bitmask != 0 ) g_error ( \"Field '%s' (%s) is an %s but has a bitmask\\n\" , hfinfo -> name , hfinfo -> abbrev , ftype_name ( hfinfo -> type ) ) ;\n break ;\n case FT_BOOLEAN : break ;\n case FT_ABSOLUTE_TIME : if ( ! ( hfinfo -> display == ABSOLUTE_TIME_LOCAL || hfinfo -> display == ABSOLUTE_TIME_UTC || hfinfo -> display == ABSOLUTE_TIME_DOY_UTC ) ) {\n tmp_str = val_to_str_wmem ( NULL , hfinfo -> display , hf_display , \"(Bit count: %d)\" ) ;\n g_error ( \"Field '%s' (%s) is a %s but is being displayed as %s instead of as a time\\n\" , hfinfo -> name , hfinfo -> abbrev , ftype_name ( hfinfo -> type ) , tmp_str ) ;\n wmem_free ( NULL , tmp_str ) ;\n }\n if ( hfinfo -> bitmask != 0 ) g_error ( \"Field '%s' (%s) is an %s but has a bitmask\\n\" , hfinfo -> name , hfinfo -> abbrev , ftype_name ( hfinfo -> type ) ) ;\n break ;\n case FT_STRING : case FT_STRINGZ : case FT_UINT_STRING : case FT_STRINGZPAD : switch ( hfinfo -> display ) {\n case STR_ASCII : case STR_UNICODE : break ;\n default : tmp_str = val_to_str_wmem ( NULL , hfinfo -> display , hf_display , \"(Unknown: 0x%x)\" ) ;\n g_error ( \"Field '%s' (%s) is an string value (%s)\" \" but is being displayed as %s\\n\" , hfinfo -> name , hfinfo -> abbrev , ftype_name ( hfinfo -> type ) , tmp_str ) ;\n wmem_free ( NULL , tmp_str ) ;\n }\n if ( hfinfo -> bitmask != 0 ) g_error ( \"Field '%s' (%s) is an %s but has a bitmask\\n\" , hfinfo -> name , hfinfo -> abbrev , ftype_name ( hfinfo -> type ) ) ;\n if ( hfinfo -> strings != NULL ) g_error ( \"Field '%s' (%s) is an %s but has a strings value\\n\" , hfinfo -> name , hfinfo -> abbrev , ftype_name ( hfinfo -> type ) ) ;\n break ;\n case FT_IPv4 : switch ( hfinfo -> display ) {\n case BASE_NONE : case BASE_NETMASK : break ;\n default : tmp_str = val_to_str_wmem ( NULL , hfinfo -> display , hf_display , \"(Unknown: 0x%x)\" ) ;\n g_error ( \"Field '%s' (%s) is an IPv4 value (%s)\" \" but is being displayed as %s\\n\" , hfinfo -> name , hfinfo -> abbrev , ftype_name ( hfinfo -> type ) , tmp_str ) ;\n wmem_free ( NULL , tmp_str ) ;\n break ;\n }\n break ;\n default : if ( hfinfo -> display != BASE_NONE ) {\n tmp_str = val_to_str_wmem ( NULL , hfinfo -> display , hf_display , \"(Bit count: %d)\" ) ;\n g_error ( \"Field '%s' (%s) is an %s but is being displayed as %s instead of BASE_NONE\\n\" , hfinfo -> name , hfinfo -> abbrev , ftype_name ( hfinfo -> type ) , tmp_str ) ;\n wmem_free ( NULL , tmp_str ) ;\n }\n if ( hfinfo -> bitmask != 0 ) g_error ( \"Field '%s' (%s) is an %s but has a bitmask\\n\" , hfinfo -> name , hfinfo -> abbrev , ftype_name ( hfinfo -> type ) ) ;\n if ( hfinfo -> strings != NULL ) g_error ( \"Field '%s' (%s) is an %s but has a strings value\\n\" , hfinfo -> name , hfinfo -> abbrev , ftype_name ( hfinfo -> type ) ) ;\n break ;\n }\n }"}
{"idx": 15195, "target": 0, "func": "static void process_rtp_payload ( tvbuff_t * newtvb , packet_info * pinfo , proto_tree * tree , proto_tree * rtp_tree , unsigned int payload_type ) {\n struct _rtp_conversation_info * p_conv_data = NULL ;\n gboolean found_match = FALSE ;\n int payload_len ;\n struct srtp_info * srtp_info ;\n int offset = 0 ;\n payload_len = tvb_length_remaining ( newtvb , offset ) ;\n p_conv_data = ( struct _rtp_conversation_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_rtp , 0 ) ;\n if ( p_conv_data && p_conv_data -> srtp_info ) {\n srtp_info = p_conv_data -> srtp_info ;\n payload_len -= srtp_info -> mki_len + srtp_info -> auth_tag_len ;\n # if 0 # error Currently the srtp_info structure contains no cipher data , see packet - sdp . c adding dummy_srtp_info structure if ( p_conv_data -> srtp_info -> encryption_algorithm == SRTP_ENC_ALG_NULL ) {\n if ( rtp_tree ) proto_tree_add_text ( rtp_tree , newtvb , offset , payload_len , \"SRTP Payload with NULL encryption\" ) ;\n }\n else # endif {\n if ( rtp_tree ) proto_tree_add_item ( rtp_tree , hf_srtp_encrypted_payload , newtvb , offset , payload_len , ENC_NA ) ;\n found_match = TRUE ;\n }\n offset += payload_len ;\n if ( srtp_info -> mki_len ) {\n proto_tree_add_item ( rtp_tree , hf_srtp_mki , newtvb , offset , srtp_info -> mki_len , ENC_NA ) ;\n offset += srtp_info -> mki_len ;\n }\n if ( srtp_info -> auth_tag_len ) {\n proto_tree_add_item ( rtp_tree , hf_srtp_auth_tag , newtvb , offset , srtp_info -> auth_tag_len , ENC_NA ) ;\n }\n }\n else if ( p_conv_data && ! p_conv_data -> bta2dp_info && ! p_conv_data -> btvdp_info && payload_type >= PT_UNDF_96 && payload_type <= PT_UNDF_127 ) {\n if ( p_conv_data && p_conv_data -> rtp_dyn_payload ) {\n const gchar * payload_type_str = rtp_dyn_payload_get_name ( p_conv_data -> rtp_dyn_payload , payload_type ) ;\n if ( payload_type_str ) {\n found_match = dissector_try_string ( rtp_dyn_pt_dissector_table , payload_type_str , newtvb , pinfo , tree , NULL ) ;\n if ( found_match == FALSE ) proto_tree_add_item ( rtp_tree , hf_rtp_data , newtvb , 0 , - 1 , ENC_NA ) ;\n return ;\n }\n }\n }\n else if ( p_conv_data && p_conv_data -> bta2dp_info ) {\n tvbuff_t * nexttvb ;\n gint suboffset = 0 ;\n found_match = TRUE ;\n if ( p_conv_data -> bta2dp_info -> content_protection_type == BTAVDTP_CONTENT_PROTECTION_TYPE_SCMS_T ) {\n nexttvb = tvb_new_subset ( newtvb , 0 , 1 , 1 ) ;\n call_dissector ( bta2dp_content_protection_header_scms_t , nexttvb , pinfo , tree ) ;\n suboffset = 1 ;\n }\n nexttvb = tvb_new_subset_remaining ( newtvb , suboffset ) ;\n if ( p_conv_data -> bta2dp_info -> codec_dissector ) call_dissector ( p_conv_data -> bta2dp_info -> codec_dissector , nexttvb , pinfo , tree ) ;\n else call_dissector ( data_handle , nexttvb , pinfo , tree ) ;\n }\n else if ( p_conv_data && p_conv_data -> btvdp_info ) {\n tvbuff_t * nexttvb ;\n gint suboffset = 0 ;\n found_match = TRUE ;\n if ( p_conv_data -> btvdp_info -> content_protection_type == BTAVDTP_CONTENT_PROTECTION_TYPE_SCMS_T ) {\n nexttvb = tvb_new_subset ( newtvb , 0 , 1 , 1 ) ;\n call_dissector ( bta2dp_content_protection_header_scms_t , nexttvb , pinfo , tree ) ;\n suboffset = 1 ;\n }\n nexttvb = tvb_new_subset_remaining ( newtvb , suboffset ) ;\n if ( p_conv_data -> btvdp_info -> codec_dissector ) call_dissector ( p_conv_data -> btvdp_info -> codec_dissector , nexttvb , pinfo , tree ) ;\n else call_dissector ( data_handle , nexttvb , pinfo , tree ) ;\n }\n if ( ! found_match && ! dissector_try_uint ( rtp_pt_dissector_table , payload_type , newtvb , pinfo , tree ) ) proto_tree_add_item ( rtp_tree , hf_rtp_data , newtvb , 0 , - 1 , ENC_NA ) ;\n }"}
{"idx": 15196, "target": 1, "func": "void vp9_idct32x32_34_add_c ( const int16_t * input , uint8_t * dest , int stride ) {\n int16_t out [ 32 * 32 ] = {\n 0 }\n ;\n int16_t * outptr = out ;\n int i , j ;\n int16_t temp_in [ 32 ] , temp_out [ 32 ] ;\n for ( i = 0 ;\n i < 8 ;\n ++ i ) {\n idct32 ( input , outptr ) ;\n input += 32 ;\n outptr += 32 ;\n }\n for ( i = 0 ;\n i < 32 ;\n ++ i ) {\n for ( j = 0 ;\n j < 32 ;\n ++ j ) temp_in [ j ] = out [ j * 32 + i ] ;\n idct32 ( temp_in , temp_out ) ;\n for ( j = 0 ;\n j < 32 ;\n ++ j ) dest [ j * stride + i ] = clip_pixel ( ROUND_POWER_OF_TWO ( temp_out [ j ] , 6 ) + dest [ j * stride + i ] ) ;\n }\n }"}
{"idx": 15197, "target": 0, "func": "const EVP_CIPHER * EVP_aes_ ## keylen ## _ ## mode ( void ) \\ {\n return & aes_ ## keylen ## _ ## mode ;\n }\n # 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_CAPABLE ( OPENSSL_armcap_P & ARMV7_NEON ) # endif # if defined ( VPAES_ASM ) # define VPAES_CAPABLE ( OPENSSL_armcap_P & ARMV7_NEON ) # endif # define HWAES_CAPABLE ( OPENSSL_armcap_P & ARMV8_AES ) # define HWAES_set_encrypt_key aes_v8_set_encrypt_key # define HWAES_set_decrypt_key aes_v8_set_decrypt_key # define HWAES_encrypt aes_v8_encrypt # define HWAES_decrypt aes_v8_decrypt # define HWAES_cbc_encrypt aes_v8_cbc_encrypt # define HWAES_ctr32_encrypt_blocks aes_v8_ctr32_encrypt_blocks # endif # endif # if defined ( HWAES_CAPABLE ) int HWAES_set_encrypt_key ( const unsigned char * userKey , const int bits , AES_KEY * key ) ;\n int HWAES_set_decrypt_key ( const unsigned char * userKey , const int bits , AES_KEY * key ) ;\n void HWAES_encrypt ( const unsigned char * in , unsigned char * out , const AES_KEY * key ) ;\n void HWAES_decrypt ( const unsigned char * in , unsigned char * out , const AES_KEY * key ) ;\n void HWAES_cbc_encrypt ( const unsigned char * in , unsigned char * out , size_t length , const AES_KEY * key , unsigned char * ivec , const int enc ) ;\n void HWAES_ctr32_encrypt_blocks ( const unsigned char * in , unsigned char * out , size_t len , const AES_KEY * key , const unsigned char ivec [ 16 ] ) ;\n void HWAES_xts_encrypt ( const unsigned char * inp , unsigned char * out , size_t len , const AES_KEY * key1 , const AES_KEY * key2 , const unsigned char iv [ 16 ] ) ;\n void HWAES_xts_decrypt ( const unsigned char * inp , unsigned char * out , size_t len , const AES_KEY * key1 , const AES_KEY * key2 , const unsigned char iv [ 16 ] ) ;\n # endif # define BLOCK_CIPHER_generic_pack ( nid , keylen , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 16 , 16 , cbc , cbc , CBC , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 16 , 0 , ecb , ecb , ECB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , ofb128 , ofb , OFB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb128 , cfb , CFB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb1 , cfb1 , CFB , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb8 , cfb8 , CFB , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , ctr , ctr , CTR , flags ) static int aes_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n int ret , mode ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n mode = EVP_CIPHER_CTX_mode ( ctx ) ;\n if ( ( mode == EVP_CIPH_ECB_MODE || mode == EVP_CIPH_CBC_MODE ) && ! enc ) {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_decrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n # endif }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CBC_MODE ) {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = ( cbc128_f ) bsaes_cbc_encrypt ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n }\n }\n else # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_encrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n else # endif # ifdef HWAES_ctr32_encrypt_blocks if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) HWAES_ctr32_encrypt_blocks ;\n else # endif ( void ) 0 ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CTR_MODE ) {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . ctr = ( ctr128_f ) bsaes_ctr32_encrypt_blocks ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n # ifdef AES_CTR_ASM if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) AES_ctr32_encrypt ;\n # endif }\n if ( ret < 0 ) {\n EVPerr ( EVP_F_AES_INIT_KEY , EVP_R_AES_KEY_SETUP_FAILED ) ;\n return 0 ;\n }\n return 1 ;\n }\n static int aes_cbc_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( dat -> stream . cbc ) ( * dat -> stream . cbc ) ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_encrypting ( ctx ) ) ;\n else if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) CRYPTO_cbc128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , dat -> block ) ;\n else CRYPTO_cbc128_decrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , dat -> block ) ;\n return 1 ;\n }\n static int aes_ecb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n size_t bl = EVP_CIPHER_CTX_block_size ( ctx ) ;\n size_t i ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( len < bl ) return 1 ;\n for ( i = 0 , len -= bl ;\n i <= len ;\n i += bl ) ( * dat -> block ) ( in + i , out + i , & dat -> ks ) ;\n return 1 ;\n }\n static int aes_ofb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_ofb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb8_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_8_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb1_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( EVP_CIPHER_CTX_test_flags ( ctx , EVP_CIPH_FLAG_LENGTH_BITS ) ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n while ( len >= MAXBITCHUNK ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , MAXBITCHUNK * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n len -= MAXBITCHUNK ;\n }\n if ( len ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n }\n return 1 ;\n }\n static int aes_ctr_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n unsigned int num = EVP_CIPHER_CTX_num ( ctx ) ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( dat -> stream . ctr ) CRYPTO_ctr128_encrypt_ctr32 ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> stream . ctr ) ;\n else CRYPTO_ctr128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n BLOCK_CIPHER_generic_pack ( NID_aes , 128 , 0 ) BLOCK_CIPHER_generic_pack ( NID_aes , 192 , 0 ) BLOCK_CIPHER_generic_pack ( NID_aes , 256 , 0 ) static int aes_gcm_cleanup ( EVP_CIPHER_CTX * c ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , c ) ;\n OPENSSL_cleanse ( & gctx -> gcm , sizeof ( gctx -> gcm ) ) ;\n if ( gctx -> iv != EVP_CIPHER_CTX_iv_noconst ( c ) ) OPENSSL_free ( gctx -> iv ) ;\n return 1 ;\n }\n static void ctr64_inc ( unsigned char * counter ) {\n int n = 8 ;\n unsigned char c ;\n do {\n -- n ;\n c = counter [ n ] ;\n ++ c ;\n counter [ n ] = c ;\n if ( c ) return ;\n }\n while ( n ) ;\n }\n static int aes_gcm_ctrl ( EVP_CIPHER_CTX * c , int type , int arg , void * ptr ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , c ) ;\n switch ( type ) {\n case EVP_CTRL_INIT : gctx -> key_set = 0 ;\n gctx -> iv_set = 0 ;\n gctx -> ivlen = EVP_CIPHER_CTX_iv_length ( c ) ;\n gctx -> iv = EVP_CIPHER_CTX_iv_noconst ( c ) ;\n gctx -> taglen = - 1 ;\n gctx -> iv_gen = 0 ;\n gctx -> tls_aad_len = - 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_IVLEN : if ( arg <= 0 ) return 0 ;\n if ( ( arg > EVP_MAX_IV_LENGTH ) && ( arg > gctx -> ivlen ) ) {\n if ( gctx -> iv != EVP_CIPHER_CTX_iv_noconst ( c ) ) OPENSSL_free ( gctx -> iv ) ;\n gctx -> iv = OPENSSL_malloc ( arg ) ;\n if ( gctx -> iv == NULL ) return 0 ;\n }\n gctx -> ivlen = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_TAG : if ( arg <= 0 || arg > 16 || EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n gctx -> taglen = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_GET_TAG : if ( arg <= 0 || arg > 16 || ! EVP_CIPHER_CTX_encrypting ( c ) || gctx -> taglen < 0 ) return 0 ;\n memcpy ( ptr , EVP_CIPHER_CTX_buf_noconst ( c ) , arg ) ;\n return 1 ;\n case EVP_CTRL_GCM_SET_IV_FIXED : if ( arg == - 1 ) {\n memcpy ( gctx -> iv , ptr , gctx -> ivlen ) ;\n gctx -> iv_gen = 1 ;\n return 1 ;\n }\n if ( ( arg < 4 ) || ( gctx -> ivlen - arg ) < 8 ) return 0 ;\n if ( arg ) memcpy ( gctx -> iv , ptr , arg ) ;\n if ( EVP_CIPHER_CTX_encrypting ( c ) && RAND_bytes ( gctx -> iv + arg , gctx -> ivlen - arg ) <= 0 ) return 0 ;\n gctx -> iv_gen = 1 ;\n return 1 ;\n case EVP_CTRL_GCM_IV_GEN : if ( gctx -> iv_gen == 0 || gctx -> key_set == 0 ) return 0 ;\n CRYPTO_gcm128_setiv ( & gctx -> gcm , gctx -> iv , gctx -> ivlen ) ;\n if ( arg <= 0 || arg > gctx -> ivlen ) arg = gctx -> ivlen ;\n memcpy ( ptr , gctx -> iv + gctx -> ivlen - arg , arg ) ;\n ctr64_inc ( gctx -> iv + gctx -> ivlen - 8 ) ;\n gctx -> iv_set = 1 ;\n return 1 ;\n case EVP_CTRL_GCM_SET_IV_INV : if ( gctx -> iv_gen == 0 || gctx -> key_set == 0 || EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( gctx -> iv + gctx -> ivlen - arg , ptr , arg ) ;\n CRYPTO_gcm128_setiv ( & gctx -> gcm , gctx -> iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_TLS1_AAD : if ( arg != EVP_AEAD_TLS1_AAD_LEN ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n gctx -> tls_aad_len = arg ;\n {\n unsigned int len = EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] << 8 | EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] ;\n if ( len < EVP_GCM_TLS_EXPLICIT_IV_LEN ) return 0 ;\n len -= EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n if ( ! EVP_CIPHER_CTX_encrypting ( c ) ) {\n if ( len < EVP_GCM_TLS_TAG_LEN ) return 0 ;\n len -= EVP_GCM_TLS_TAG_LEN ;\n }\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] = len >> 8 ;\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] = len & 0xff ;\n }\n return EVP_GCM_TLS_TAG_LEN ;\n case EVP_CTRL_COPY : {\n EVP_CIPHER_CTX * out = ptr ;\n EVP_AES_GCM_CTX * gctx_out = EVP_C_DATA ( EVP_AES_GCM_CTX , out ) ;\n if ( gctx -> gcm . key ) {\n if ( gctx -> gcm . key != & gctx -> ks ) return 0 ;\n gctx_out -> gcm . key = & gctx_out -> ks ;\n }\n if ( gctx -> iv == EVP_CIPHER_CTX_iv_noconst ( c ) ) gctx_out -> iv = EVP_CIPHER_CTX_iv_noconst ( out ) ;\n else {\n gctx_out -> iv = OPENSSL_malloc ( gctx -> ivlen ) ;\n if ( gctx_out -> iv == NULL ) return 0 ;\n memcpy ( gctx_out -> iv , gctx -> iv , gctx -> ivlen ) ;\n }\n return 1 ;\n }\n default : return - 1 ;\n }\n }\n static int aes_gcm_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n if ( ! iv && ! key ) return 1 ;\n if ( key ) {\n do {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) HWAES_encrypt ) ;\n # ifdef HWAES_ctr32_encrypt_blocks gctx -> ctr = ( ctr128_f ) HWAES_ctr32_encrypt_blocks ;\n # else gctx -> ctr = NULL ;\n # endif break ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE ) {\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) AES_encrypt ) ;\n gctx -> ctr = ( ctr128_f ) bsaes_ctr32_encrypt_blocks ;\n break ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) vpaes_encrypt ) ;\n gctx -> ctr = NULL ;\n break ;\n }\n else # endif ( void ) 0 ;\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) AES_encrypt ) ;\n # ifdef AES_CTR_ASM gctx -> ctr = ( ctr128_f ) AES_ctr32_encrypt ;\n # else gctx -> ctr = NULL ;\n # endif }\n while ( 0 ) ;\n if ( iv == NULL && gctx -> iv_set ) iv = gctx -> iv ;\n if ( iv ) {\n CRYPTO_gcm128_setiv ( & gctx -> gcm , iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n }\n gctx -> key_set = 1 ;\n }\n else {\n if ( gctx -> key_set ) CRYPTO_gcm128_setiv ( & gctx -> gcm , iv , gctx -> ivlen ) ;\n else memcpy ( gctx -> iv , iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n gctx -> iv_gen = 0 ;\n }\n return 1 ;\n }\n static int aes_gcm_tls_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n int rv = - 1 ;\n if ( out != in || len < ( EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ) ) return - 1 ;\n if ( EVP_CIPHER_CTX_ctrl ( ctx , EVP_CIPHER_CTX_encrypting ( ctx ) ? EVP_CTRL_GCM_IV_GEN : EVP_CTRL_GCM_SET_IV_INV , EVP_GCM_TLS_EXPLICIT_IV_LEN , out ) <= 0 ) goto err ;\n if ( CRYPTO_gcm128_aad ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , gctx -> tls_aad_len ) ) goto err ;\n in += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n out += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n len -= EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ;\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 32 && AES_GCM_ASM ( gctx ) ) {\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_encrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) goto err ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 32 && AES_GCM_ASM2 ( gctx ) ) {\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) goto err ;\n }\n out += len ;\n CRYPTO_gcm128_tag ( & gctx -> gcm , out , EVP_GCM_TLS_TAG_LEN ) ;\n rv = len + EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ;\n }\n else {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 16 && AES_GCM_ASM ( gctx ) ) {\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_decrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) goto err ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 16 && AES_GCM_ASM2 ( gctx ) ) {\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) goto err ;\n }\n CRYPTO_gcm128_tag ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , EVP_GCM_TLS_TAG_LEN ) ;\n if ( CRYPTO_memcmp ( EVP_CIPHER_CTX_buf_noconst ( ctx ) , in + len , EVP_GCM_TLS_TAG_LEN ) ) {\n OPENSSL_cleanse ( out , len ) ;\n goto err ;\n }\n rv = len ;\n }\n err : gctx -> iv_set = 0 ;\n gctx -> tls_aad_len = - 1 ;\n return rv ;\n }\n static int aes_gcm_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n if ( ! gctx -> key_set ) return - 1 ;\n if ( gctx -> tls_aad_len >= 0 ) return aes_gcm_tls_cipher ( ctx , out , in , len ) ;\n if ( ! gctx -> iv_set ) return - 1 ;\n if ( in ) {\n if ( out == NULL ) {\n if ( CRYPTO_gcm128_aad ( & gctx -> gcm , in , len ) ) return - 1 ;\n }\n else if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 32 && AES_GCM_ASM ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_encrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) return - 1 ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 32 && AES_GCM_ASM2 ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) return - 1 ;\n }\n }\n else {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 16 && AES_GCM_ASM ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_decrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) return - 1 ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 16 && AES_GCM_ASM2 ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) return - 1 ;\n }\n }\n return len ;\n }\n else {\n if ( ! EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> taglen < 0 ) return - 1 ;\n if ( CRYPTO_gcm128_finish ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , gctx -> taglen ) != 0 ) return - 1 ;\n gctx -> iv_set = 0 ;\n return 0 ;\n }\n CRYPTO_gcm128_tag ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , 16 ) ;\n gctx -> taglen = 16 ;\n gctx -> iv_set = 0 ;\n return 0 ;\n }\n }\n # define CUSTOM_FLAGS ( EVP_CIPH_FLAG_DEFAULT_ASN1 \\ | EVP_CIPH_CUSTOM_IV | EVP_CIPH_FLAG_CUSTOM_CIPHER \\ | EVP_CIPH_ALWAYS_CALL_INIT | EVP_CIPH_CTRL_INIT \\ | EVP_CIPH_CUSTOM_COPY ) BLOCK_CIPHER_custom ( NID_aes , 128 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 192 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS )"}
{"idx": 15198, "target": 0, "func": "static int path_to_hinter ( t1_hinter * h , gx_path * path ) {\n int code ;\n gs_path_enum penum ;\n gs_fixed_point pts [ 3 ] ;\n gs_fixed_point p = {\n 0 , 0 }\n ;\n bool first = true ;\n int op ;\n code = gx_path_enum_init ( & penum , path ) ;\n if ( code < 0 ) return code ;\n while ( ( op = gx_path_enum_next ( & penum , pts ) ) != 0 ) {\n switch ( op ) {\n case gs_pe_moveto : if ( first ) {\n first = false ;\n p = pts [ 0 ] ;\n code = t1_hinter__rmoveto ( h , p . x , p . y ) ;\n }\n else code = t1_hinter__rmoveto ( h , pts [ 0 ] . x - p . x , pts [ 0 ] . y - p . y ) ;\n break ;\n case gs_pe_lineto : case gs_pe_gapto : code = t1_hinter__rlineto ( h , pts [ 0 ] . x - p . x , pts [ 0 ] . y - p . y ) ;\n break ;\n case gs_pe_curveto : code = t1_hinter__rcurveto ( h , pts [ 0 ] . x - p . x , pts [ 0 ] . y - p . y , pts [ 1 ] . x - pts [ 0 ] . x , pts [ 1 ] . y - pts [ 0 ] . y , pts [ 2 ] . x - pts [ 1 ] . x , pts [ 2 ] . y - pts [ 1 ] . y ) ;\n pts [ 0 ] = pts [ 2 ] ;\n break ;\n case gs_pe_closepath : code = t1_hinter__closepath ( h ) ;\n break ;\n default : return_error ( gs_error_unregistered ) ;\n }\n if ( code < 0 ) return code ;\n p = pts [ 0 ] ;\n }\n return 0 ;\n }"}
{"idx": 15199, "target": 0, "func": "void run_query ( struct st_connection * cn , struct st_command * command , int flags ) {\n MYSQL * mysql = cn -> mysql ;\n DYNAMIC_STRING * ds ;\n DYNAMIC_STRING * save_ds = NULL ;\n DYNAMIC_STRING ds_result ;\n DYNAMIC_STRING ds_sorted ;\n DYNAMIC_STRING ds_warnings ;\n char * query ;\n int query_len ;\n my_bool view_created = 0 , sp_created = 0 ;\n my_bool complete_query = ( ( flags & QUERY_SEND_FLAG ) && ( flags & QUERY_REAP_FLAG ) ) ;\n DBUG_ENTER ( \"run_query\" ) ;\n if ( cn -> pending && ( flags & QUERY_SEND_FLAG ) ) die ( \"Cannot run query on connection between send and reap\" ) ;\n if ( ! ( flags & QUERY_SEND_FLAG ) && ! cn -> pending ) die ( \"Cannot reap on a connection without pending send\" ) ;\n init_dynamic_string ( & ds_warnings , NULL , 0 , 256 ) ;\n ds_warn = & ds_warnings ;\n if ( command -> type == Q_EVAL || command -> type == Q_SEND_EVAL ) {\n if ( ! command -> eval_query . str ) init_dynamic_string ( & command -> eval_query , \"\" , command -> query_len + 256 , 1024 ) ;\n else dynstr_set ( & command -> eval_query , 0 ) ;\n do_eval ( & command -> eval_query , command -> query , command -> end , FALSE ) ;\n query = command -> eval_query . str ;\n query_len = command -> eval_query . length ;\n }\n else {\n query = command -> query ;\n query_len = strlen ( query ) ;\n }\n if ( command -> require_file ) {\n init_dynamic_string ( & ds_result , \"\" , 1024 , 1024 ) ;\n ds = & ds_result ;\n }\n else ds = & ds_res ;\n if ( ! disable_query_log && ( flags & QUERY_SEND_FLAG ) ) {\n replace_dynstr_append_mem ( ds , query , query_len ) ;\n dynstr_append_mem ( ds , delimiter , delimiter_length ) ;\n dynstr_append_mem ( ds , \"\\n\" , 1 ) ;\n }\n log_file . write ( & ds_res ) ;\n log_file . flush ( ) ;\n dynstr_set ( & ds_res , 0 ) ;\n if ( view_protocol_enabled && complete_query && match_re ( & view_re , query ) ) {\n DYNAMIC_STRING query_str ;\n init_dynamic_string ( & query_str , \"CREATE OR REPLACE VIEW mysqltest_tmp_v AS \" , query_len + 64 , 256 ) ;\n dynstr_append_mem ( & query_str , query , query_len ) ;\n if ( util_query ( mysql , query_str . str ) ) {\n DBUG_PRINT ( \"view_create_error\" , ( \"Failed to create view '%s': %d: %s\" , query_str . str , mysql_errno ( mysql ) , mysql_error ( mysql ) ) ) ;\n verbose_msg ( \"Failed to create view '%s' %d: %s\" , query_str . str , mysql_errno ( mysql ) , mysql_error ( mysql ) ) ;\n }\n else {\n view_created = 1 ;\n query = ( char * ) \"SELECT * FROM mysqltest_tmp_v\" ;\n query_len = strlen ( query ) ;\n append_warnings ( & ds_warnings , cur_con -> util_mysql ) ;\n }\n dynstr_free ( & query_str ) ;\n }\n if ( sp_protocol_enabled && complete_query && match_re ( & sp_re , query ) ) {\n DYNAMIC_STRING query_str ;\n init_dynamic_string ( & query_str , \"DROP PROCEDURE IF EXISTS mysqltest_tmp_sp;\n\" , query_len + 64 , 256 ) ;\n util_query ( mysql , query_str . str ) ;\n dynstr_set ( & query_str , \"CREATE PROCEDURE mysqltest_tmp_sp()\\n\" ) ;\n dynstr_append_mem ( & query_str , query , query_len ) ;\n if ( util_query ( mysql , query_str . str ) ) {\n DBUG_PRINT ( \"sp_create_error\" , ( \"Failed to create sp '%s': %d: %s\" , query_str . str , mysql_errno ( mysql ) , mysql_error ( mysql ) ) ) ;\n verbose_msg ( \"Failed to create sp '%s' %d: %s\" , query_str . str , mysql_errno ( mysql ) , mysql_error ( mysql ) ) ;\n }\n else {\n sp_created = 1 ;\n query = ( char * ) \"CALL mysqltest_tmp_sp()\" ;\n query_len = strlen ( query ) ;\n }\n dynstr_free ( & query_str ) ;\n }\n if ( display_result_sorted ) {\n init_dynamic_string ( & ds_sorted , \"\" , 1024 , 1024 ) ;\n save_ds = ds ;\n ds = & ds_sorted ;\n }\n if ( ps_protocol_enabled && complete_query && match_re ( & ps_re , query ) ) run_query_stmt ( cn , command , query , query_len , ds , & ds_warnings ) ;\n else run_query_normal ( cn , command , flags , query , query_len , ds , & ds_warnings ) ;\n dynstr_free ( & ds_warnings ) ;\n ds_warn = 0 ;\n if ( display_result_sorted ) {\n dynstr_append_sorted ( save_ds , & ds_sorted , 1 ) ;\n ds = save_ds ;\n dynstr_free ( & ds_sorted ) ;\n }\n if ( sp_created ) {\n if ( util_query ( mysql , \"DROP PROCEDURE mysqltest_tmp_sp \" ) ) report_or_die ( \"Failed to drop sp: %d: %s\" , mysql_errno ( mysql ) , mysql_error ( mysql ) ) ;\n }\n if ( view_created ) {\n if ( util_query ( mysql , \"DROP VIEW mysqltest_tmp_v \" ) ) report_or_die ( \"Failed to drop view: %d: %s\" , mysql_errno ( mysql ) , mysql_error ( mysql ) ) ;\n }\n if ( command -> require_file ) {\n check_require ( ds , command -> require_file ) ;\n }\n if ( ds == & ds_result ) dynstr_free ( & ds_result ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 15200, "target": 0, "func": "cmsBool _cmsRegisterMultiProcessElementPlugin ( cmsContext id , cmsPluginBase * Data ) {\n return RegisterTypesPlugin ( id , Data , MPEPlugin ) ;\n }"}
{"idx": 15201, "target": 0, "func": "static int dtls1_process_out_of_seq_message ( SSL * s , const struct hm_header_st * msg_hdr , int * ok ) {\n int i = - 1 ;\n hm_fragment * frag = NULL ;\n pitem * item = NULL ;\n unsigned char seq64be [ 8 ] ;\n unsigned long frag_len = msg_hdr -> frag_len ;\n if ( ( msg_hdr -> frag_off + frag_len ) > msg_hdr -> msg_len ) goto err ;\n memset ( seq64be , 0 , sizeof ( seq64be ) ) ;\n seq64be [ 6 ] = ( unsigned char ) ( msg_hdr -> seq >> 8 ) ;\n seq64be [ 7 ] = ( unsigned char ) msg_hdr -> seq ;\n item = pqueue_find ( s -> d1 -> buffered_messages , seq64be ) ;\n if ( item != NULL && frag_len != msg_hdr -> msg_len ) item = NULL ;\n if ( msg_hdr -> seq <= s -> d1 -> handshake_read_seq || msg_hdr -> seq > s -> d1 -> handshake_read_seq + 10 || item != NULL || ( s -> d1 -> handshake_read_seq == 0 && msg_hdr -> type == SSL3_MT_FINISHED ) ) {\n unsigned char devnull [ 256 ] ;\n while ( frag_len ) {\n i = s -> method -> ssl_read_bytes ( s , SSL3_RT_HANDSHAKE , NULL , devnull , frag_len > sizeof ( devnull ) ? sizeof ( devnull ) : frag_len , 0 ) ;\n if ( i <= 0 ) goto err ;\n frag_len -= i ;\n }\n }\n else {\n if ( frag_len != msg_hdr -> msg_len ) return dtls1_reassemble_fragment ( s , msg_hdr , ok ) ;\n if ( frag_len > dtls1_max_handshake_message_len ( s ) ) goto err ;\n frag = dtls1_hm_fragment_new ( frag_len , 0 ) ;\n if ( frag == NULL ) goto err ;\n memcpy ( & ( frag -> msg_header ) , msg_hdr , sizeof ( * msg_hdr ) ) ;\n if ( frag_len ) {\n i = s -> method -> ssl_read_bytes ( s , SSL3_RT_HANDSHAKE , NULL , frag -> fragment , frag_len , 0 ) ;\n if ( ( unsigned long ) i != frag_len ) i = - 1 ;\n if ( i <= 0 ) goto err ;\n }\n item = pitem_new ( seq64be , frag ) ;\n if ( item == NULL ) goto err ;\n item = pqueue_insert ( s -> d1 -> buffered_messages , item ) ;\n OPENSSL_assert ( item != NULL ) ;\n }\n return DTLS1_HM_FRAGMENT_RETRY ;\n err : if ( item == NULL ) dtls1_hm_fragment_free ( frag ) ;\n * ok = 0 ;\n return i ;\n }"}
{"idx": 15202, "target": 0, "func": "static inline void uprv_arrayCopy ( const UChar * src , int32_t srcStart , UChar * dst , int32_t dstStart , int32_t count ) {\n uprv_memcpy ( dst + dstStart , src + srcStart , ( size_t ) count * sizeof ( * src ) ) ;\n }"}
{"idx": 15203, "target": 0, "func": "static int reassociate ( struct evport_data * epdp , struct fd_info * fdip , int fd ) {\n int sysevents = FDI_TO_SYSEVENTS ( fdip ) ;\n if ( sysevents != 0 ) {\n if ( port_associate ( epdp -> ed_port , PORT_SOURCE_FD , fd , sysevents , NULL ) == - 1 ) {\n event_warn ( \"port_associate\" ) ;\n return ( - 1 ) ;\n }\n }\n check_evportop ( epdp ) ;\n return ( 0 ) ;\n }"}
{"idx": 15204, "target": 0, "func": "Relids find_nonnullable_rels ( Node * clause ) {\n return find_nonnullable_rels_walker ( clause , true ) ;\n }"}
{"idx": 15205, "target": 0, "func": "static int dissect_h225_T_pdu ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_T_pdu , T_pdu_sequence_of ) ;\n return offset ;\n }"}
{"idx": 15206, "target": 0, "func": "static void die_on_query_failure ( ArchiveHandle * AH , const char * modulename , const char * query ) {\n write_msg ( modulename , \"query failed: %s\" , PQerrorMessage ( AH -> connection ) ) ;\n exit_horribly ( modulename , \"query was: %s\\n\" , query ) ;\n }"}
{"idx": 15207, "target": 0, "func": "static int64_t ogg_calc_pts ( AVFormatContext * s , int idx , int64_t * dts ) {\n struct ogg * ogg = s -> priv_data ;\n struct ogg_stream * os = ogg -> streams + idx ;\n int64_t pts = AV_NOPTS_VALUE ;\n if ( dts ) * dts = AV_NOPTS_VALUE ;\n if ( os -> lastpts != AV_NOPTS_VALUE ) {\n pts = os -> lastpts ;\n os -> lastpts = AV_NOPTS_VALUE ;\n }\n if ( os -> lastdts != AV_NOPTS_VALUE ) {\n if ( dts ) * dts = os -> lastdts ;\n os -> lastdts = AV_NOPTS_VALUE ;\n }\n if ( os -> page_end ) {\n if ( os -> granule != - 1LL ) {\n if ( os -> codec && os -> codec -> granule_is_start ) pts = ogg_gptopts ( s , idx , os -> granule , dts ) ;\n else os -> lastpts = ogg_gptopts ( s , idx , os -> granule , & os -> lastdts ) ;\n os -> granule = - 1LL ;\n }\n }\n return pts ;\n }"}
{"idx": 15208, "target": 0, "func": "bool x509_parse_generalNames ( chunk_t blob , int level0 , bool implicit , linked_list_t * list ) {\n asn1_parser_t * parser ;\n chunk_t object ;\n identification_t * gn ;\n int objectID ;\n bool success = FALSE ;\n parser = asn1_parser_create ( generalNamesObjects , blob ) ;\n parser -> set_top_level ( parser , level0 ) ;\n parser -> set_flags ( parser , implicit , FALSE ) ;\n while ( parser -> iterate ( parser , & objectID , & object ) ) {\n if ( objectID == GENERAL_NAMES_GN ) {\n gn = parse_generalName ( object , parser -> get_level ( parser ) + 1 ) ;\n if ( ! gn ) {\n goto end ;\n }\n list -> insert_last ( list , ( void * ) gn ) ;\n }\n }\n success = parser -> success ( parser ) ;\n end : parser -> destroy ( parser ) ;\n return success ;\n }"}
{"idx": 15209, "target": 0, "func": "bool kvm_has_adjust_clock_stable ( void ) {\n int ret = kvm_check_extension ( kvm_state , KVM_CAP_ADJUST_CLOCK ) ;\n return ( ret == KVM_CLOCK_TSC_STABLE ) ;\n }"}
{"idx": 15210, "target": 1, "func": "static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new ( sk_ ## t1 ## _compfunc compare ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new ( ( OPENSSL_sk_compfunc ) compare ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_null ( void ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_null ( ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_reserve ( sk_ ## t1 ## _compfunc compare , int n ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_reserve ( ( OPENSSL_sk_compfunc ) compare , n ) ;\n }\n static ossl_inline int sk_ ## t1 ## _reserve ( STACK_OF ( t1 ) * sk , int n ) {\n return OPENSSL_sk_reserve ( ( OPENSSL_STACK * ) sk , n ) ;\n }\n static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 15211, "target": 0, "func": "static void cirrus_vga_write_gr ( CirrusVGAState * s , unsigned reg_index , int reg_value ) {\n # if defined ( DEBUG_BITBLT ) && 0 printf ( \"gr%02x: %02x\\n\" , reg_index , reg_value ) ;\n # endif switch ( reg_index ) {\n case 0x00 : s -> vga . gr [ reg_index ] = reg_value & gr_mask [ reg_index ] ;\n s -> cirrus_shadow_gr0 = reg_value ;\n break ;\n case 0x01 : s -> vga . gr [ reg_index ] = reg_value & gr_mask [ reg_index ] ;\n s -> cirrus_shadow_gr1 = reg_value ;\n break ;\n case 0x02 : case 0x03 : case 0x04 : case 0x06 : case 0x07 : case 0x08 : s -> vga . gr [ reg_index ] = reg_value & gr_mask [ reg_index ] ;\n break ;\n case 0x05 : s -> vga . gr [ reg_index ] = reg_value & 0x7f ;\n cirrus_update_memory_access ( s ) ;\n break ;\n case 0x09 : case 0x0A : s -> vga . gr [ reg_index ] = reg_value ;\n cirrus_update_bank_ptr ( s , 0 ) ;\n cirrus_update_bank_ptr ( s , 1 ) ;\n cirrus_update_memory_access ( s ) ;\n break ;\n case 0x0B : s -> vga . gr [ reg_index ] = reg_value ;\n cirrus_update_bank_ptr ( s , 0 ) ;\n cirrus_update_bank_ptr ( s , 1 ) ;\n cirrus_update_memory_access ( s ) ;\n break ;\n case 0x10 : case 0x11 : case 0x12 : case 0x13 : case 0x14 : case 0x15 : case 0x20 : case 0x22 : case 0x24 : case 0x26 : case 0x28 : case 0x29 : case 0x2c : case 0x2d : case 0x2f : case 0x30 : case 0x32 : case 0x33 : case 0x34 : case 0x35 : case 0x38 : case 0x39 : s -> vga . gr [ reg_index ] = reg_value ;\n break ;\n case 0x21 : case 0x23 : case 0x25 : case 0x27 : s -> vga . gr [ reg_index ] = reg_value & 0x1f ;\n break ;\n case 0x2a : s -> vga . gr [ reg_index ] = reg_value & 0x3f ;\n if ( s -> vga . gr [ 0x31 ] & CIRRUS_BLT_AUTOSTART ) {\n cirrus_bitblt_start ( s ) ;\n }\n break ;\n case 0x2e : s -> vga . gr [ reg_index ] = reg_value & 0x3f ;\n break ;\n case 0x31 : cirrus_write_bitblt ( s , reg_value ) ;\n break ;\n default : # ifdef DEBUG_CIRRUS printf ( \"cirrus: outport gr_index %02x, gr_value %02x\\n\" , reg_index , reg_value ) ;\n # endif break ;\n }\n }"}
{"idx": 15212, "target": 0, "func": "static guint32 dissect_fullpacket ( tvbuff_t * tvb , guint32 offset , guint16 scallno , packet_info * pinfo , proto_tree * iax2_tree , proto_tree * main_tree ) {\n guint16 dcallno ;\n guint32 ts ;\n guint8 type ;\n guint8 csub ;\n guint32 codec ;\n proto_tree * packet_type_tree = NULL ;\n iax_call_data * iax_call ;\n iax_packet_data * iax_packet ;\n gboolean reversed ;\n gboolean rtp_marker ;\n dcallno = tvb_get_ntohs ( tvb , offset ) & 0x7FFF ;\n ts = tvb_get_ntohl ( tvb , offset + 2 ) ;\n type = tvb_get_guint8 ( tvb , offset + 8 ) ;\n csub = tvb_get_guint8 ( tvb , offset + 9 ) ;\n iax2_info -> ftype = type ;\n iax2_info -> csub = csub ;\n iax2_info -> scallno = scallno ;\n iax2_info -> dcallno = dcallno ;\n iax_packet = ( iax_packet_data * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_iax2 , 0 ) ;\n if ( ! iax_packet ) {\n if ( type == AST_FRAME_IAX && csub == IAX_COMMAND_NEW ) {\n iax_call = iax_new_call ( pinfo , scallno ) ;\n reversed = FALSE ;\n }\n else {\n iax_call = iax_lookup_call ( pinfo , scallno , dcallno , & reversed ) ;\n }\n iax_packet = iax_new_packet_data ( iax_call , reversed ) ;\n p_add_proto_data ( wmem_file_scope ( ) , pinfo , proto_iax2 , 0 , iax_packet ) ;\n }\n else {\n iax_call = iax_packet -> call_data ;\n reversed = iax_packet -> reversed ;\n }\n iax2_populate_pinfo_from_packet_data ( pinfo , iax_packet ) ;\n if ( iax2_tree ) {\n proto_item * packet_type_base ;\n proto_tree_add_item ( iax2_tree , hf_iax2_dcallno , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( iax2_tree , hf_iax2_retransmission , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n if ( iax_call ) {\n proto_item * item = proto_tree_add_uint ( iax2_tree , hf_iax2_callno , tvb , 0 , 4 , iax_call -> forward_circuit_ids [ 0 ] ) ;\n PROTO_ITEM_SET_GENERATED ( item ) ;\n }\n proto_tree_add_uint ( iax2_tree , hf_iax2_ts , tvb , offset + 2 , 4 , ts ) ;\n iax2_add_ts_fields ( pinfo , iax2_tree , tvb , iax_packet , ( guint16 ) ts ) ;\n proto_tree_add_item ( iax2_tree , hf_iax2_oseqno , tvb , offset + 6 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( iax2_tree , hf_iax2_iseqno , tvb , offset + 7 , 1 , ENC_BIG_ENDIAN ) ;\n packet_type_base = proto_tree_add_uint ( iax2_tree , hf_iax2_type , tvb , offset + 8 , 1 , type ) ;\n packet_type_tree = proto_item_add_subtree ( packet_type_base , ett_iax2_type ) ;\n }\n else {\n iax2_add_ts_fields ( pinfo , iax2_tree , tvb , iax_packet , ( guint16 ) ts ) ;\n }\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"%s, source call# %d, timestamp %ums\" , val_to_str_ext ( type , & iax_frame_types_ext , \"Unknown (0x%02x)\" ) , scallno , ts ) ;\n iax2_info -> messageName = val_to_str_ext ( type , & iax_frame_types_ext , \"Unknown (0x%02x)\" ) ;\n switch ( type ) {\n case AST_FRAME_IAX : offset = dissect_iax2_command ( tvb , offset + 9 , pinfo , packet_type_tree , iax_packet ) ;\n iax2_info -> messageName = val_to_str_ext ( csub , & iax_iax_subclasses_ext , \"unknown (0x%02x)\" ) ;\n if ( csub < NUM_TAP_IAX_VOIP_STATES ) iax2_info -> callState = tap_iax_voip_state [ csub ] ;\n break ;\n case AST_FRAME_DTMF_BEGIN : case AST_FRAME_DTMF_END : proto_tree_add_item ( packet_type_tree , hf_iax2_dtmf_csub , tvb , offset + 9 , 1 , ENC_ASCII | ENC_NA ) ;\n offset += 10 ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" digit %c\" , csub ) ;\n break ;\n case AST_FRAME_CONTROL : proto_tree_add_uint ( packet_type_tree , hf_iax2_cmd_csub , tvb , offset + 9 , 1 , csub ) ;\n offset += 10 ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" %s\" , val_to_str_ext ( csub , & iax_cmd_subclasses_ext , \"unknown (0x%02x)\" ) ) ;\n iax2_info -> messageName = val_to_str_ext ( csub , & iax_cmd_subclasses_ext , \"unknown (0x%02x)\" ) ;\n if ( csub < NUM_TAP_CMD_VOIP_STATES ) iax2_info -> callState = tap_cmd_voip_state [ csub ] ;\n break ;\n case AST_FRAME_VOICE : iax_packet -> codec = codec = uncompress_subclass ( csub ) ;\n if ( packet_type_tree ) {\n proto_item * item ;\n proto_tree_add_item ( packet_type_tree , hf_iax2_voice_csub , tvb , offset + 9 , 1 , ENC_BIG_ENDIAN ) ;\n item = proto_tree_add_uint ( packet_type_tree , hf_iax2_voice_codec , tvb , offset + 9 , 1 , codec ) ;\n PROTO_ITEM_SET_GENERATED ( item ) ;\n }\n offset += 10 ;\n if ( iax_call ) {\n if ( reversed ) {\n iax_call -> dst_codec = codec ;\n }\n else {\n iax_call -> src_codec = codec ;\n }\n }\n dissect_payload ( tvb , offset , pinfo , iax2_tree , main_tree , ts , FALSE , iax_packet ) ;\n break ;\n case AST_FRAME_VIDEO : rtp_marker = csub & 0x40 ? TRUE : FALSE ;\n iax_packet -> codec = codec = uncompress_subclass ( ( guint8 ) ( csub & ~ 40 ) ) ;\n if ( packet_type_tree ) {\n proto_item * item ;\n proto_tree_add_item ( packet_type_tree , hf_iax2_video_csub , tvb , offset + 9 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( packet_type_tree , hf_iax2_marker , tvb , offset + 9 , 1 , ENC_BIG_ENDIAN ) ;\n item = proto_tree_add_uint ( packet_type_tree , hf_iax2_video_codec , tvb , offset + 9 , 1 , codec ) ;\n PROTO_ITEM_SET_GENERATED ( item ) ;\n }\n offset += 10 ;\n if ( iax_call && iax_packet -> first_time ) {\n if ( reversed ) {\n iax_call -> dst_vformat = codec ;\n }\n else {\n iax_call -> src_vformat = codec ;\n }\n }\n if ( rtp_marker ) col_append_str ( pinfo -> cinfo , COL_INFO , \", Mark\" ) ;\n dissect_payload ( tvb , offset , pinfo , iax2_tree , main_tree , ts , TRUE , iax_packet ) ;\n break ;\n case AST_FRAME_MODEM : proto_tree_add_item ( packet_type_tree , hf_iax2_modem_csub , tvb , offset + 9 , 1 , ENC_BIG_ENDIAN ) ;\n offset += 10 ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" %s\" , val_to_str ( csub , iax_modem_subclasses , \"unknown (0x%02x)\" ) ) ;\n break ;\n case AST_FRAME_TEXT : proto_tree_add_item ( packet_type_tree , hf_iax2_text_csub , tvb , offset + 9 , 1 , ENC_BIG_ENDIAN ) ;\n offset += 10 ;\n {\n int textlen = tvb_captured_length_remaining ( tvb , offset ) ;\n if ( textlen > 0 ) {\n proto_tree_add_item ( packet_type_tree , hf_iax2_text_text , tvb , offset , textlen , ENC_UTF_8 | ENC_NA ) ;\n offset += textlen ;\n }\n }\n break ;\n case AST_FRAME_HTML : proto_tree_add_item ( packet_type_tree , hf_iax2_html_csub , tvb , offset + 9 , 1 , ENC_BIG_ENDIAN ) ;\n offset += 10 ;\n if ( csub == 0x01 ) {\n int urllen = tvb_captured_length_remaining ( tvb , offset ) ;\n if ( urllen > 0 ) {\n proto_item * pi = proto_tree_add_item ( packet_type_tree , hf_iax2_html_url , tvb , offset , urllen , ENC_UTF_8 | ENC_NA ) ;\n PROTO_ITEM_SET_URL ( pi ) ;\n offset += urllen ;\n }\n }\n break ;\n case AST_FRAME_CNG : default : proto_tree_add_uint ( packet_type_tree , hf_iax2_csub , tvb , offset + 9 , 1 , csub ) ;\n offset += 10 ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" subclass %d\" , csub ) ;\n break ;\n }\n iax_packet -> first_time = FALSE ;\n return offset ;\n }"}
{"idx": 15213, "target": 0, "func": "static char * construct_command_line ( struct manager_ctx * manager , struct server * server ) {\n static char cmd [ BUF_SIZE ] ;\n int i ;\n int port ;\n port = atoi ( server -> port ) ;\n build_config ( working_dir , manager , server ) ;\n memset ( cmd , 0 , BUF_SIZE ) ;\n snprintf ( cmd , BUF_SIZE , \"%s --manager-address %s -f %s/.shadowsocks_%d.pid -c %s/.shadowsocks_%d.conf\" , executable , manager -> manager_address , working_dir , port , working_dir , port ) ;\n if ( manager -> acl != NULL ) {\n int len = strlen ( cmd ) ;\n snprintf ( cmd + len , BUF_SIZE - len , \" --acl %s\" , manager -> acl ) ;\n }\n if ( manager -> timeout != NULL ) {\n int len = strlen ( cmd ) ;\n snprintf ( cmd + len , BUF_SIZE - len , \" -t %s\" , manager -> timeout ) ;\n }\n # ifdef HAVE_SETRLIMIT if ( manager -> nofile ) {\n int len = strlen ( cmd ) ;\n snprintf ( cmd + len , BUF_SIZE - len , \" -n %d\" , manager -> nofile ) ;\n }\n # endif if ( manager -> user != NULL ) {\n int len = strlen ( cmd ) ;\n snprintf ( cmd + len , BUF_SIZE - len , \" -a %s\" , manager -> user ) ;\n }\n if ( manager -> verbose ) {\n int len = strlen ( cmd ) ;\n snprintf ( cmd + len , BUF_SIZE - len , \" -v\" ) ;\n }\n if ( server -> mode == NULL && manager -> mode == UDP_ONLY ) {\n int len = strlen ( cmd ) ;\n snprintf ( cmd + len , BUF_SIZE - len , \" -U\" ) ;\n }\n if ( server -> mode == NULL && manager -> mode == TCP_AND_UDP ) {\n int len = strlen ( cmd ) ;\n snprintf ( cmd + len , BUF_SIZE - len , \" -u\" ) ;\n }\n if ( server -> fast_open [ 0 ] == 0 && manager -> fast_open ) {\n int len = strlen ( cmd ) ;\n snprintf ( cmd + len , BUF_SIZE - len , \" --fast-open\" ) ;\n }\n if ( manager -> ipv6first ) {\n int len = strlen ( cmd ) ;\n snprintf ( cmd + len , BUF_SIZE - len , \" -6\" ) ;\n }\n if ( manager -> mtu ) {\n int len = strlen ( cmd ) ;\n snprintf ( cmd + len , BUF_SIZE - len , \" --mtu %d\" , manager -> mtu ) ;\n }\n if ( server -> plugin == NULL && manager -> plugin ) {\n int len = strlen ( cmd ) ;\n snprintf ( cmd + len , BUF_SIZE - len , \" --plugin \\\"%s\\\"\" , manager -> plugin ) ;\n }\n if ( server -> plugin_opts == NULL && manager -> plugin_opts ) {\n int len = strlen ( cmd ) ;\n snprintf ( cmd + len , BUF_SIZE - len , \" --plugin-opts \\\"%s\\\"\" , manager -> plugin_opts ) ;\n }\n for ( i = 0 ;\n i < manager -> nameserver_num ;\n i ++ ) {\n int len = strlen ( cmd ) ;\n snprintf ( cmd + len , BUF_SIZE - len , \" -d %s\" , manager -> nameservers [ i ] ) ;\n }\n for ( i = 0 ;\n i < manager -> host_num ;\n i ++ ) {\n int len = strlen ( cmd ) ;\n snprintf ( cmd + len , BUF_SIZE - len , \" -s %s\" , manager -> hosts [ i ] ) ;\n }\n {\n int len = strlen ( cmd ) ;\n snprintf ( cmd + len , BUF_SIZE - len , \" --reuse-port\" ) ;\n }\n if ( verbose ) {\n LOGI ( \"cmd: %s\" , cmd ) ;\n }\n return cmd ;\n }"}
{"idx": 15214, "target": 0, "func": "static void exsltSaxonLineNumberFunction ( xmlXPathParserContextPtr ctxt , int nargs ) {\n xmlNodePtr cur = NULL ;\n if ( nargs == 0 ) {\n cur = ctxt -> context -> node ;\n }\n else if ( nargs == 1 ) {\n xmlXPathObjectPtr obj ;\n xmlNodeSetPtr nodelist ;\n int i ;\n if ( ( ctxt -> value == NULL ) || ( ctxt -> value -> type != XPATH_NODESET ) ) {\n xsltTransformError ( xsltXPathGetTransformContext ( ctxt ) , NULL , NULL , \"saxon:line-number() : invalid arg expecting a node-set\\n\" ) ;\n ctxt -> error = XPATH_INVALID_TYPE ;\n return ;\n }\n obj = valuePop ( ctxt ) ;\n nodelist = obj -> nodesetval ;\n if ( ( nodelist == NULL ) || ( nodelist -> nodeNr <= 0 ) ) {\n xmlXPathFreeObject ( obj ) ;\n valuePush ( ctxt , xmlXPathNewFloat ( - 1 ) ) ;\n return ;\n }\n cur = nodelist -> nodeTab [ 0 ] ;\n for ( i = 1 ;\n i < nodelist -> nodeNr ;\n i ++ ) {\n int ret = xmlXPathCmpNodes ( cur , nodelist -> nodeTab [ i ] ) ;\n if ( ret == - 1 ) cur = nodelist -> nodeTab [ i ] ;\n }\n xmlXPathFreeObject ( obj ) ;\n }\n else {\n xsltTransformError ( xsltXPathGetTransformContext ( ctxt ) , NULL , NULL , \"saxon:line-number() : invalid number of args %d\\n\" , nargs ) ;\n ctxt -> error = XPATH_INVALID_ARITY ;\n return ;\n }\n valuePush ( ctxt , xmlXPathNewFloat ( xmlGetLineNo ( cur ) ) ) ;\n return ;\n }"}
{"idx": 15215, "target": 0, "func": "static int qcow2_reopen_prepare ( BDRVReopenState * state , BlockReopenQueue * queue , Error * * errp ) {\n return 0 ;\n }"}
{"idx": 15216, "target": 0, "func": "static void diameterstat_init ( struct register_srt * srt _U_ , GArray * srt_array , srt_gui_init_cb gui_callback , void * gui_data ) {\n srt_stat_table * diameter_srt_table ;\n int * idx ;\n if ( diameterstat_cmd_str_hash != NULL ) {\n g_hash_table_destroy ( diameterstat_cmd_str_hash ) ;\n }\n idx = ( int * ) g_malloc ( sizeof ( int ) ) ;\n * idx = 0 ;\n diameterstat_cmd_str_hash = g_hash_table_new ( g_str_hash , g_str_equal ) ;\n g_hash_table_insert ( diameterstat_cmd_str_hash , ( gchar * ) \"Unknown\" , idx ) ;\n diameter_srt_table = init_srt_table ( \"Diameter Requests\" , NULL , srt_array , DIAMETER_NUM_PROCEDURES , NULL , NULL , gui_callback , gui_data , NULL ) ;\n init_srt_table_row ( diameter_srt_table , 0 , \"Unknown\" ) ;\n }"}
{"idx": 15217, "target": 0, "func": "static void dissect_rsvp_message_id_ack ( proto_tree * ti , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int type ) {\n int offset2 = offset + 4 ;\n switch ( type ) {\n case 1 : proto_tree_add_uint ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_message_id_ack_flags , tvb , offset + 4 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_message_id_ack_epoch , tvb , offset + 5 , 3 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_message_id_ack_message_id , tvb , offset + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_set_text ( ti , \"MESSAGE-ID ACK: %d\" , tvb_get_ntohl ( tvb , offset + 8 ) ) ;\n break ;\n case 2 : proto_tree_add_uint ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_message_id_ack_flags , tvb , offset + 4 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_message_id_ack_epoch , tvb , offset + 5 , 3 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_message_id_ack_message_id , tvb , offset + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_set_text ( ti , \"MESSAGE-ID NACK: %d\" , tvb_get_ntohl ( tvb , offset + 8 ) ) ;\n break ;\n default : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"Unknown (%u)\" , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_message_id_ack_data , tvb , offset2 , obj_length - 4 , ENC_NA ) ;\n break ;\n }\n }"}
{"idx": 15218, "target": 0, "func": "int qemuMonitorJSONBlockResize ( qemuMonitorPtr mon , const char * device , unsigned long long size ) {\n int ret ;\n virJSONValuePtr cmd ;\n virJSONValuePtr reply = NULL ;\n cmd = qemuMonitorJSONMakeCommand ( \"block_resize\" , \"s:device\" , device , \"U:size\" , size * 1024 , NULL ) ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) {\n if ( qemuMonitorJSONHasError ( reply , \"CommandNotFound\" ) ) {\n ret = - 2 ;\n goto cleanup ;\n }\n ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n }\n cleanup : virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 15219, "target": 0, "func": "static char * CreateHtmlSubtitle ( int * pi_align , char * psz_subtitle ) {\n char * psz_tag = malloc ( 1 ) ;\n if ( psz_tag == NULL ) return NULL ;\n char * psz_html = malloc ( 1 ) ;\n if ( psz_html == NULL ) {\n free ( psz_tag ) ;\n return NULL ;\n }\n psz_tag [ 0 ] = '\\0' ;\n psz_html [ 0 ] = '\\0' ;\n bool b_has_align = false ;\n HtmlPut ( & psz_html , \"<text>\" ) ;\n while ( * psz_subtitle ) {\n if ( * psz_subtitle == '\\n' ) {\n HtmlPut ( & psz_html , \"<br/>\" ) ;\n psz_subtitle ++ ;\n }\n else if ( * psz_subtitle == '<' ) {\n if ( ! strncasecmp ( psz_subtitle , \"<br/>\" , 5 ) ) {\n HtmlCopy ( & psz_html , & psz_subtitle , \"<br/>\" ) ;\n }\n else if ( ! strncasecmp ( psz_subtitle , \"<b>\" , 3 ) ) {\n HtmlCopy ( & psz_html , & psz_subtitle , \"<b>\" ) ;\n HtmlPut ( & psz_tag , \"b\" ) ;\n }\n else if ( ! strncasecmp ( psz_subtitle , \"<i>\" , 3 ) ) {\n HtmlCopy ( & psz_html , & psz_subtitle , \"<i>\" ) ;\n HtmlPut ( & psz_tag , \"i\" ) ;\n }\n else if ( ! strncasecmp ( psz_subtitle , \"<u>\" , 3 ) ) {\n HtmlCopy ( & psz_html , & psz_subtitle , \"<u>\" ) ;\n HtmlPut ( & psz_tag , \"u\" ) ;\n }\n else if ( ! strncasecmp ( psz_subtitle , \"<s>\" , 3 ) ) {\n HtmlCopy ( & psz_html , & psz_subtitle , \"<s>\" ) ;\n HtmlPut ( & psz_tag , \"s\" ) ;\n }\n else if ( ! strncasecmp ( psz_subtitle , \"<font \" , 6 ) ) {\n const char * psz_attribs [ ] = {\n \"face=\" , \"family=\" , \"size=\" , \"color=\" , \"outline-color=\" , \"shadow-color=\" , \"outline-level=\" , \"shadow-level=\" , \"back-color=\" , \"alpha=\" , NULL }\n ;\n HtmlCopy ( & psz_html , & psz_subtitle , \"<font \" ) ;\n HtmlPut ( & psz_tag , \"f\" ) ;\n while ( * psz_subtitle != '>' && * psz_subtitle ) {\n int k ;\n while ( * psz_subtitle == ' ' ) psz_subtitle ++ ;\n for ( k = 0 ;\n psz_attribs [ k ] ;\n k ++ ) {\n int i_len = strlen ( psz_attribs [ k ] ) ;\n if ( ! strncasecmp ( psz_subtitle , psz_attribs [ k ] , i_len ) ) {\n HtmlPut ( & psz_html , psz_attribs [ k ] ) ;\n psz_subtitle += i_len ;\n while ( * psz_subtitle == ' ' ) psz_subtitle ++ ;\n if ( * psz_subtitle == '\"' ) {\n psz_subtitle ++ ;\n i_len = strcspn ( psz_subtitle , \"\\\"\" ) ;\n }\n else if ( * psz_subtitle == '\\'' ) {\n psz_subtitle ++ ;\n i_len = strcspn ( psz_subtitle , \"'\" ) ;\n }\n else {\n i_len = strcspn ( psz_subtitle , \" \\t>\" ) ;\n }\n HtmlPut ( & psz_html , \"\\\"\" ) ;\n HtmlNPut ( & psz_html , psz_subtitle , i_len ) ;\n HtmlPut ( & psz_html , \"\\\"\" ) ;\n psz_subtitle += i_len ;\n if ( * psz_subtitle == '\\\"' || * psz_subtitle == '\\'' ) psz_subtitle ++ ;\n break ;\n }\n }\n if ( psz_attribs [ k ] == NULL ) {\n int i_len = strcspn ( psz_subtitle , \"\\\"\" ) ;\n if ( psz_subtitle [ i_len ] == '\\\"' ) {\n i_len += 1 + strcspn ( & psz_subtitle [ i_len + 1 ] , \"\\\"\" ) ;\n if ( psz_subtitle [ i_len ] == '\\\"' ) i_len ++ ;\n }\n if ( i_len == 0 && * psz_subtitle != '\\0' ) psz_subtitle ++ ;\n psz_subtitle += i_len ;\n }\n HtmlNPut ( & psz_html , psz_subtitle , strspn ( psz_subtitle , \" \" ) ) ;\n }\n HtmlPut ( & psz_html , \">\" ) ;\n if ( * psz_subtitle == '\\0' ) break ;\n psz_subtitle ++ ;\n }\n else if ( ! strncmp ( psz_subtitle , \"</\" , 2 ) ) {\n bool b_match = false ;\n bool b_ignore = false ;\n int i_len = ( psz_tag ? strlen ( psz_tag ) : 0 ) - 1 ;\n char * psz_lastTag = NULL ;\n if ( i_len >= 0 ) {\n psz_lastTag = psz_tag + i_len ;\n i_len = 0 ;\n switch ( * psz_lastTag ) {\n case 'b' : b_match = ! strncasecmp ( psz_subtitle , \"</b>\" , 4 ) ;\n i_len = 4 ;\n break ;\n case 'i' : b_match = ! strncasecmp ( psz_subtitle , \"</i>\" , 4 ) ;\n i_len = 4 ;\n break ;\n case 'u' : b_match = ! strncasecmp ( psz_subtitle , \"</u>\" , 4 ) ;\n i_len = 4 ;\n break ;\n case 's' : b_match = ! strncasecmp ( psz_subtitle , \"</s>\" , 4 ) ;\n i_len = 4 ;\n break ;\n case 'f' : b_match = ! strncasecmp ( psz_subtitle , \"</font>\" , 7 ) ;\n i_len = 7 ;\n break ;\n case 'I' : i_len = strcspn ( psz_subtitle , \">\" ) ;\n b_match = psz_subtitle [ i_len ] == '>' ;\n b_ignore = true ;\n if ( b_match ) i_len ++ ;\n break ;\n }\n }\n if ( ! b_match ) {\n free ( psz_html ) ;\n psz_html = NULL ;\n break ;\n }\n * psz_lastTag = '\\0' ;\n if ( ! b_ignore ) HtmlNPut ( & psz_html , psz_subtitle , i_len ) ;\n psz_subtitle += i_len ;\n }\n else if ( ( psz_subtitle [ 1 ] < 'a' || psz_subtitle [ 1 ] > 'z' ) && ( psz_subtitle [ 1 ] < 'A' || psz_subtitle [ 1 ] > 'Z' ) ) {\n HtmlPut ( & psz_html , \"&lt;\n\" ) ;\n psz_subtitle ++ ;\n }\n else {\n char * psz_stop = psz_subtitle + 1 + strcspn ( & psz_subtitle [ 1 ] , \"<>\" ) ;\n char * psz_closing = strstr ( psz_subtitle , \"/>\" ) ;\n if ( psz_closing && psz_closing < psz_stop ) {\n psz_subtitle = & psz_closing [ 2 ] ;\n }\n else if ( * psz_stop == '>' ) {\n char psz_match [ 256 ] ;\n snprintf ( psz_match , sizeof ( psz_match ) , \"</%s\" , & psz_subtitle [ 1 ] ) ;\n psz_match [ strcspn ( psz_match , \" \\t>\" ) ] = '\\0' ;\n if ( strstr ( psz_subtitle , psz_match ) ) {\n psz_subtitle = & psz_stop [ 1 ] ;\n HtmlPut ( & psz_tag , \"I\" ) ;\n }\n else {\n int i_len = psz_stop + 1 - psz_subtitle ;\n for ( ;\n i_len > 0 ;\n i_len -- , psz_subtitle ++ ) {\n if ( * psz_subtitle == '<' ) HtmlPut ( & psz_html , \"&lt;\n\" ) ;\n else if ( * psz_subtitle == '>' ) HtmlPut ( & psz_html , \"&gt;\n\" ) ;\n else HtmlNPut ( & psz_html , psz_subtitle , 1 ) ;\n }\n }\n }\n else {\n HtmlPut ( & psz_html , \"&lt;\n\" ) ;\n psz_subtitle ++ ;\n }\n }\n }\n else if ( * psz_subtitle == '&' ) {\n if ( ! strncasecmp ( psz_subtitle , \"&lt;\n\" , 4 ) ) {\n HtmlCopy ( & psz_html , & psz_subtitle , \"&lt;\n\" ) ;\n }\n else if ( ! strncasecmp ( psz_subtitle , \"&gt;\n\" , 4 ) ) {\n HtmlCopy ( & psz_html , & psz_subtitle , \"&gt;\n\" ) ;\n }\n else if ( ! strncasecmp ( psz_subtitle , \"&amp;\n\" , 5 ) ) {\n HtmlCopy ( & psz_html , & psz_subtitle , \"&amp;\n\" ) ;\n }\n else {\n HtmlPut ( & psz_html , \"&amp;\n\" ) ;\n psz_subtitle ++ ;\n }\n }\n else if ( * psz_subtitle == '>' ) {\n HtmlPut ( & psz_html , \"&gt;\n\" ) ;\n psz_subtitle ++ ;\n }\n else if ( psz_subtitle [ 0 ] == '{\n' && psz_subtitle [ 1 ] == '\\\\' && strchr ( psz_subtitle , '}\n' ) ) {\n if ( ! b_has_align && ! strncmp ( psz_subtitle , \"{\n\\\\an\" , 4 ) && psz_subtitle [ 4 ] >= '1' && psz_subtitle [ 4 ] <= '9' && psz_subtitle [ 5 ] == '}\n' ) {\n static const int pi_vertical [ 3 ] = {\n SUBPICTURE_ALIGN_BOTTOM , 0 , SUBPICTURE_ALIGN_TOP }\n ;\n static const int pi_horizontal [ 3 ] = {\n SUBPICTURE_ALIGN_LEFT , 0 , SUBPICTURE_ALIGN_RIGHT }\n ;\n const int i_id = psz_subtitle [ 4 ] - '1' ;\n b_has_align = true ;\n * pi_align = pi_vertical [ i_id / 3 ] | pi_horizontal [ i_id % 3 ] ;\n }\n psz_subtitle = strchr ( psz_subtitle , '}\n' ) + 1 ;\n }\n else if ( psz_subtitle [ 0 ] == '{\n' && ( psz_subtitle [ 1 ] == 'Y' || psz_subtitle [ 1 ] == 'y' ) && psz_subtitle [ 2 ] == ':' && strchr ( psz_subtitle , '}\n' ) ) {\n if ( psz_subtitle [ 3 ] == 'i' ) {\n HtmlPut ( & psz_html , \"<i>\" ) ;\n HtmlPut ( & psz_tag , \"i\" ) ;\n }\n if ( psz_subtitle [ 3 ] == 'b' ) {\n HtmlPut ( & psz_html , \"<b>\" ) ;\n HtmlPut ( & psz_tag , \"b\" ) ;\n }\n if ( psz_subtitle [ 3 ] == 'u' ) {\n HtmlPut ( & psz_html , \"<u>\" ) ;\n HtmlPut ( & psz_tag , \"u\" ) ;\n }\n psz_subtitle = strchr ( psz_subtitle , '}\n' ) + 1 ;\n }\n else if ( psz_subtitle [ 0 ] == '{\n' && psz_subtitle [ 1 ] != '\\0' && psz_subtitle [ 2 ] == ':' && strchr ( psz_subtitle , '}\n' ) ) {\n psz_subtitle = strchr ( psz_subtitle , '}\n' ) + 1 ;\n }\n else if ( psz_subtitle [ 0 ] == '\\\\' && psz_subtitle [ 1 ] ) {\n if ( psz_subtitle [ 1 ] == 'N' || psz_subtitle [ 1 ] == 'n' ) {\n HtmlPut ( & psz_html , \"<br/>\" ) ;\n psz_subtitle += 2 ;\n }\n else if ( psz_subtitle [ 1 ] == 'h' ) {\n HtmlPut ( & psz_html , NO_BREAKING_SPACE ) ;\n psz_subtitle += 2 ;\n }\n else {\n HtmlPut ( & psz_html , \"\\\\\" ) ;\n psz_subtitle ++ ;\n }\n }\n else {\n HtmlNPut ( & psz_html , psz_subtitle , 1 ) ;\n # if 0 if ( * psz_html ) {\n # error This test does not make sense . if ( ( * psz_html == ' ' || * psz_html == '\\t' ) && ( * ( psz_html - 1 ) == ' ' || * ( psz_html - 1 ) == '\\t' ) ) {\n HtmlPut ( & psz_html , NO_BREAKING_SPACE ) ;\n psz_html -- ;\n }\n }\n # endif psz_subtitle ++ ;\n }\n }\n while ( psz_tag && * psz_tag ) {\n char * psz_last = & psz_tag [ strlen ( psz_tag ) - 1 ] ;\n switch ( * psz_last ) {\n case 'b' : HtmlPut ( & psz_html , \"</b>\" ) ;\n break ;\n case 'i' : HtmlPut ( & psz_html , \"</i>\" ) ;\n break ;\n case 'u' : HtmlPut ( & psz_html , \"</u>\" ) ;\n break ;\n case 's' : HtmlPut ( & psz_html , \"</s>\" ) ;\n break ;\n case 'f' : HtmlPut ( & psz_html , \"</font>\" ) ;\n break ;\n case 'I' : break ;\n }\n * psz_last = '\\0' ;\n }\n HtmlPut ( & psz_html , \"</text>\" ) ;\n free ( psz_tag ) ;\n return psz_html ;\n }"}
{"idx": 15220, "target": 0, "func": "void do_cat_file ( struct st_command * command ) {\n int error ;\n static DYNAMIC_STRING ds_filename ;\n const struct command_arg cat_file_args [ ] = {\n {\n \"filename\" , ARG_STRING , TRUE , & ds_filename , \"File to read from\" }\n }\n ;\n DBUG_ENTER ( \"do_cat_file\" ) ;\n check_command_args ( command , command -> first_argument , cat_file_args , sizeof ( cat_file_args ) / sizeof ( struct command_arg ) , ' ' ) ;\n DBUG_PRINT ( \"info\" , ( \"Reading from, file: %s\" , ds_filename . str ) ) ;\n error = cat_file ( & ds_res , ds_filename . str ) ;\n handle_command_error ( command , error , my_errno ) ;\n dynstr_free ( & ds_filename ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 15221, "target": 0, "func": "int rebuild_existing_bitmaps ( struct packing_data * mapping , khash_sha1 * reused_bitmaps , int show_progress ) {\n uint32_t i , num_objects ;\n uint32_t * reposition ;\n struct bitmap * rebuild ;\n struct stored_bitmap * stored ;\n struct progress * progress = NULL ;\n khiter_t hash_pos ;\n int hash_ret ;\n if ( prepare_bitmap_git ( ) < 0 ) return - 1 ;\n num_objects = bitmap_git . pack -> num_objects ;\n reposition = xcalloc ( num_objects , sizeof ( uint32_t ) ) ;\n for ( i = 0 ;\n i < num_objects ;\n ++ i ) {\n const unsigned char * sha1 ;\n struct revindex_entry * entry ;\n struct object_entry * oe ;\n entry = & bitmap_git . pack -> revindex [ i ] ;\n sha1 = nth_packed_object_sha1 ( bitmap_git . pack , entry -> nr ) ;\n oe = packlist_find ( mapping , sha1 , NULL ) ;\n if ( oe ) reposition [ i ] = oe -> in_pack_pos + 1 ;\n }\n rebuild = bitmap_new ( ) ;\n i = 0 ;\n if ( show_progress ) progress = start_progress ( \"Reusing bitmaps\" , 0 ) ;\n kh_foreach_value ( bitmap_git . bitmaps , stored , {\n if ( stored -> flags & BITMAP_FLAG_REUSE ) {\n if ( ! rebuild_bitmap ( reposition , lookup_stored_bitmap ( stored ) , rebuild ) ) {\n hash_pos = kh_put_sha1 ( reused_bitmaps , stored -> sha1 , & hash_ret ) ;\n kh_value ( reused_bitmaps , hash_pos ) = bitmap_to_ewah ( rebuild ) ;\n }\n bitmap_reset ( rebuild ) ;\n display_progress ( progress , ++ i ) ;\n }\n }\n ) ;\n stop_progress ( & progress ) ;\n free ( reposition ) ;\n bitmap_free ( rebuild ) ;\n return 0 ;\n }"}
{"idx": 15222, "target": 0, "func": "int dtls1_send_server_done ( SSL * s ) {\n unsigned char * p ;\n if ( s -> state == SSL3_ST_SW_SRVR_DONE_A ) {\n p = ( unsigned char * ) s -> init_buf -> data ;\n p = dtls1_set_message_header ( s , p , SSL3_MT_SERVER_DONE , 0 , 0 , 0 ) ;\n s -> state = SSL3_ST_SW_SRVR_DONE_B ;\n s -> init_num = DTLS1_HM_HEADER_LENGTH ;\n s -> init_off = 0 ;\n dtls1_buffer_message ( s , 0 ) ;\n }\n return ( dtls1_do_write ( s , SSL3_RT_HANDSHAKE ) ) ;\n }"}
{"idx": 15223, "target": 0, "func": "static int matroska_read_header ( AVFormatContext * s ) {\n MatroskaDemuxContext * matroska = s -> priv_data ;\n EbmlList * attachments_list = & matroska -> attachments ;\n EbmlList * chapters_list = & matroska -> chapters ;\n MatroskaAttachment * attachments ;\n MatroskaChapter * chapters ;\n uint64_t max_start = 0 ;\n int64_t pos ;\n Ebml ebml = {\n 0 }\n ;\n int i , j , res ;\n matroska -> ctx = s ;\n if ( ebml_parse ( matroska , ebml_syntax , & ebml ) || ebml . version > EBML_VERSION || ebml . max_size > sizeof ( uint64_t ) || ebml . id_length > sizeof ( uint32_t ) || ebml . doctype_version > 3 ) {\n av_log ( matroska -> ctx , AV_LOG_ERROR , \"EBML header using unsupported features\\n\" \"(EBML version %\" PRIu64 \", doctype %s, doc version %\" PRIu64 \")\\n\" , ebml . version , ebml . doctype , ebml . doctype_version ) ;\n ebml_free ( ebml_syntax , & ebml ) ;\n return AVERROR_PATCHWELCOME ;\n }\n for ( i = 0 ;\n i < FF_ARRAY_ELEMS ( matroska_doctypes ) ;\n i ++ ) if ( ! strcmp ( ebml . doctype , matroska_doctypes [ i ] ) ) break ;\n if ( i >= FF_ARRAY_ELEMS ( matroska_doctypes ) ) {\n av_log ( s , AV_LOG_WARNING , \"Unknown EBML doctype '%s'\\n\" , ebml . doctype ) ;\n if ( matroska -> ctx -> error_recognition & AV_EF_EXPLODE ) {\n ebml_free ( ebml_syntax , & ebml ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n ebml_free ( ebml_syntax , & ebml ) ;\n pos = avio_tell ( matroska -> ctx -> pb ) ;\n res = ebml_parse ( matroska , matroska_segments , matroska ) ;\n while ( res != 1 ) {\n res = matroska_resync ( matroska , pos ) ;\n if ( res < 0 ) return res ;\n pos = avio_tell ( matroska -> ctx -> pb ) ;\n res = ebml_parse ( matroska , matroska_segment , matroska ) ;\n }\n matroska_execute_seekhead ( matroska ) ;\n if ( ! matroska -> time_scale ) matroska -> time_scale = 1000000 ;\n if ( matroska -> duration ) matroska -> ctx -> duration = matroska -> duration * matroska -> time_scale * 1000 / AV_TIME_BASE ;\n av_dict_set ( & s -> metadata , \"title\" , matroska -> title , 0 ) ;\n res = matroska_parse_tracks ( s ) ;\n if ( res < 0 ) return res ;\n attachments = attachments_list -> elem ;\n for ( j = 0 ;\n j < attachments_list -> nb_elem ;\n j ++ ) {\n if ( ! ( attachments [ j ] . filename && attachments [ j ] . mime && attachments [ j ] . bin . data && attachments [ j ] . bin . size > 0 ) ) {\n av_log ( matroska -> ctx , AV_LOG_ERROR , \"incomplete attachment\\n\" ) ;\n }\n else {\n AVStream * st = avformat_new_stream ( s , NULL ) ;\n if ( ! st ) break ;\n av_dict_set ( & st -> metadata , \"filename\" , attachments [ j ] . filename , 0 ) ;\n av_dict_set ( & st -> metadata , \"mimetype\" , attachments [ j ] . mime , 0 ) ;\n st -> codec -> codec_id = AV_CODEC_ID_NONE ;\n st -> codec -> codec_type = AVMEDIA_TYPE_ATTACHMENT ;\n st -> codec -> extradata = av_malloc ( attachments [ j ] . bin . size ) ;\n if ( ! st -> codec -> extradata ) break ;\n st -> codec -> extradata_size = attachments [ j ] . bin . size ;\n memcpy ( st -> codec -> extradata , attachments [ j ] . bin . data , attachments [ j ] . bin . size ) ;\n for ( i = 0 ;\n ff_mkv_mime_tags [ i ] . id != AV_CODEC_ID_NONE ;\n i ++ ) {\n if ( ! strncmp ( ff_mkv_mime_tags [ i ] . str , attachments [ j ] . mime , strlen ( ff_mkv_mime_tags [ i ] . str ) ) ) {\n st -> codec -> codec_id = ff_mkv_mime_tags [ i ] . id ;\n break ;\n }\n }\n attachments [ j ] . stream = st ;\n }\n }\n chapters = chapters_list -> elem ;\n for ( i = 0 ;\n i < chapters_list -> nb_elem ;\n i ++ ) if ( chapters [ i ] . start != AV_NOPTS_VALUE && chapters [ i ] . uid && ( max_start == 0 || chapters [ i ] . start > max_start ) ) {\n chapters [ i ] . chapter = avpriv_new_chapter ( s , chapters [ i ] . uid , ( AVRational ) {\n 1 , 1000000000 }\n , chapters [ i ] . start , chapters [ i ] . end , chapters [ i ] . title ) ;\n av_dict_set ( & chapters [ i ] . chapter -> metadata , \"title\" , chapters [ i ] . title , 0 ) ;\n max_start = chapters [ i ] . start ;\n }\n matroska_convert_tags ( s ) ;\n return 0 ;\n }"}
{"idx": 15224, "target": 0, "func": "static int mainwindow_rshrink ( MAIN_WINDOW_REC * window , int count ) {\n if ( MAIN_WINDOW_TEXT_WIDTH ( window ) - count < NEW_WINDOW_WIDTH ) return FALSE ;\n if ( ! try_rgrow_right ( window , count ) ) {\n if ( ! try_rgrow_left ( window , count ) ) return FALSE ;\n }\n return TRUE ;\n }"}
{"idx": 15225, "target": 0, "func": "void vp9_update_zbin_extra ( VP9_COMP * cpi , MACROBLOCK * x ) {\n const int qindex = x -> q_index ;\n const int y_zbin_extra = ( cpi -> common . y_dequant [ qindex ] [ 1 ] * cpi -> zbin_mode_boost ) >> 7 ;\n const int uv_zbin_extra = ( cpi -> common . uv_dequant [ qindex ] [ 1 ] * cpi -> zbin_mode_boost ) >> 7 ;\n x -> plane [ 0 ] . zbin_extra = ( int16_t ) y_zbin_extra ;\n x -> plane [ 1 ] . zbin_extra = ( int16_t ) uv_zbin_extra ;\n x -> plane [ 2 ] . zbin_extra = ( int16_t ) uv_zbin_extra ;\n }"}
{"idx": 15226, "target": 0, "func": "static void jpc_picomp_destroy ( jpc_picomp_t * picomp ) {\n int rlvlno ;\n jpc_pirlvl_t * pirlvl ;\n if ( picomp -> pirlvls ) {\n for ( rlvlno = 0 , pirlvl = picomp -> pirlvls ;\n rlvlno < picomp -> numrlvls ;\n ++ rlvlno , ++ pirlvl ) {\n pirlvl_destroy ( pirlvl ) ;\n }\n jas_free ( picomp -> pirlvls ) ;\n }\n }"}
{"idx": 15227, "target": 0, "func": "bool cephx_verify_authorizer ( CephContext * cct , KeyStore * keys , bufferlist : : iterator & indata , CephXServiceTicketInfo & ticket_info , std : : unique_ptr < AuthAuthorizerChallenge > * challenge , bufferlist & reply_bl ) {\n __u8 authorizer_v ;\n uint32_t service_id ;\n uint64_t global_id ;\n CryptoKey service_secret ;\n CephXTicketBlob ticket ;\n try {\n : : decode ( authorizer_v , indata ) ;\n : : decode ( global_id , indata ) ;\n : : decode ( service_id , indata ) ;\n : : decode ( ticket , indata ) ;\n }\n catch ( buffer : : end_of_buffer & e ) {\n return false ;\n }\n ldout ( cct , 10 ) << \"verify_authorizer decrypted service \" << ceph_entity_type_name ( service_id ) << \" secret_id=\" << ticket . secret_id << dendl ;\n if ( ticket . secret_id == ( uint64_t ) - 1 ) {\n EntityName name ;\n name . set_type ( service_id ) ;\n if ( ! keys -> get_secret ( name , service_secret ) ) {\n ldout ( cct , 0 ) << \"verify_authorizer could not get general service secret for service \" << ceph_entity_type_name ( service_id ) << \" secret_id=\" << ticket . secret_id << dendl ;\n return false ;\n }\n }\n else {\n if ( ! keys -> get_service_secret ( service_id , ticket . secret_id , service_secret ) ) {\n ldout ( cct , 0 ) << \"verify_authorizer could not get service secret for service \" << ceph_entity_type_name ( service_id ) << \" secret_id=\" << ticket . secret_id << dendl ;\n if ( cct -> _conf -> auth_debug && ticket . secret_id == 0 ) assert ( 0 == \"got secret_id=0\" ) ;\n return false ;\n }\n }\n std : : string error ;\n if ( ! service_secret . get_secret ( ) . length ( ) ) error = \"invalid key\" ;\n else decode_decrypt_enc_bl ( cct , ticket_info , service_secret , ticket . blob , error ) ;\n if ( ! error . empty ( ) ) {\n ldout ( cct , 0 ) << \"verify_authorizer could not decrypt ticket info: error: \" << error << dendl ;\n return false ;\n }\n if ( ticket_info . ticket . global_id != global_id ) {\n ldout ( cct , 0 ) << \"verify_authorizer global_id mismatch: declared id=\" << global_id << \" ticket_id=\" << ticket_info . ticket . global_id << dendl ;\n return false ;\n }\n ldout ( cct , 10 ) << \"verify_authorizer global_id=\" << global_id << dendl ;\n CephXAuthorize auth_msg ;\n if ( decode_decrypt ( cct , auth_msg , ticket_info . session_key , indata , error ) ) {\n ldout ( cct , 0 ) << \"verify_authorizercould not decrypt authorize request with error: \" << error << dendl ;\n return false ;\n }\n if ( challenge ) {\n auto * c = static_cast < CephXAuthorizeChallenge * > ( challenge -> get ( ) ) ;\n if ( ! auth_msg . have_challenge || ! c ) {\n c = new CephXAuthorizeChallenge ;\n challenge -> reset ( c ) ;\n get_random_bytes ( ( char * ) & c -> server_challenge , sizeof ( c -> server_challenge ) ) ;\n ldout ( cct , 10 ) << __func__ << \" adding server_challenge \" << c -> server_challenge << dendl ;\n encode_encrypt_enc_bl ( cct , * c , ticket_info . session_key , reply_bl , error ) ;\n if ( ! error . empty ( ) ) {\n ldout ( cct , 10 ) << \"verify_authorizer: encode_encrypt error: \" << error << dendl ;\n return false ;\n }\n return false ;\n }\n ldout ( cct , 10 ) << __func__ << \" got server_challenge+1 \" << auth_msg . server_challenge_plus_one << \" expecting \" << c -> server_challenge + 1 << dendl ;\n if ( c -> server_challenge + 1 != auth_msg . server_challenge_plus_one ) {\n return false ;\n }\n }\n CephXAuthorizeReply reply ;\n reply . nonce_plus_one = auth_msg . nonce + 1 ;\n if ( encode_encrypt ( cct , reply , ticket_info . session_key , reply_bl , error ) ) {\n ldout ( cct , 10 ) << \"verify_authorizer: encode_encrypt error: \" << error << dendl ;\n return false ;\n }\n ldout ( cct , 10 ) << \"verify_authorizer ok nonce \" << hex << auth_msg . nonce << dec << \" reply_bl.length()=\" << reply_bl . length ( ) << dendl ;\n return true ;\n }"}
{"idx": 15228, "target": 0, "func": "int nntp_check_new_groups ( struct NntpServer * nserv ) {\n struct NntpData nntp_data ;\n time_t now ;\n struct tm * tm = NULL ;\n char buf [ LONG_STRING ] ;\n char * msg = _ ( \"Checking for new newsgroups...\" ) ;\n unsigned int i ;\n int rc , update_active = false ;\n if ( ! nserv || ! nserv -> newgroups_time ) return - 1 ;\n if ( ShowNewNews ) {\n mutt_message ( _ ( \"Checking for new messages...\" ) ) ;\n for ( i = 0 ;\n i < nserv -> groups_num ;\n i ++ ) {\n struct NntpData * data = nserv -> groups_list [ i ] ;\n if ( data && data -> subscribed ) {\n rc = nntp_group_poll ( data , 1 ) ;\n if ( rc < 0 ) return - 1 ;\n if ( rc > 0 ) update_active = true ;\n }\n }\n if ( Context && Context -> magic == MUTT_NNTP ) {\n buf [ 0 ] = '\\0' ;\n if ( nntp_query ( ( struct NntpData * ) Context -> data , buf , sizeof ( buf ) ) < 0 ) return - 1 ;\n }\n }\n else if ( nserv -> newgroups_time ) return 0 ;\n mutt_message ( msg ) ;\n if ( nntp_date ( nserv , & now ) < 0 ) return - 1 ;\n nntp_data . nserv = nserv ;\n if ( Context && Context -> magic == MUTT_NNTP ) nntp_data . group = ( ( struct NntpData * ) Context -> data ) -> group ;\n else nntp_data . group = NULL ;\n i = nserv -> groups_num ;\n tm = gmtime ( & nserv -> newgroups_time ) ;\n snprintf ( buf , sizeof ( buf ) , \"NEWGROUPS %02d%02d%02d %02d%02d%02d GMT\\r\\n\" , tm -> tm_year % 100 , tm -> tm_mon + 1 , tm -> tm_mday , tm -> tm_hour , tm -> tm_min , tm -> tm_sec ) ;\n rc = nntp_fetch_lines ( & nntp_data , buf , sizeof ( buf ) , msg , nntp_add_group , nserv ) ;\n if ( rc ) {\n if ( rc > 0 ) {\n mutt_error ( \"NEWGROUPS: %s\" , buf ) ;\n }\n return - 1 ;\n }\n rc = 0 ;\n if ( nserv -> groups_num != i ) {\n int groups_num = i ;\n nserv -> newgroups_time = now ;\n for ( ;\n i < nserv -> groups_num ;\n i ++ ) {\n struct NntpData * data = nserv -> groups_list [ i ] ;\n data -> new = true ;\n }\n if ( NntpLoadDescription ) {\n unsigned int count = 0 ;\n struct Progress progress ;\n mutt_progress_init ( & progress , _ ( \"Loading descriptions...\" ) , MUTT_PROGRESS_MSG , ReadInc , nserv -> groups_num - i ) ;\n for ( i = groups_num ;\n i < nserv -> groups_num ;\n i ++ ) {\n struct NntpData * data = nserv -> groups_list [ i ] ;\n if ( get_description ( data , NULL , NULL ) < 0 ) return - 1 ;\n mutt_progress_update ( & progress , ++ count , - 1 ) ;\n }\n }\n update_active = true ;\n rc = 1 ;\n }\n if ( update_active ) nntp_active_save_cache ( nserv ) ;\n mutt_clear_error ( ) ;\n return rc ;\n }"}
{"idx": 15229, "target": 0, "func": "void kadmin_getprincs ( int argc , char * argv [ ] ) {\n krb5_error_code retval ;\n char * expr , * * names ;\n int i , count ;\n expr = NULL ;\n if ( ! ( argc == 1 || ( argc == 2 && ( expr = argv [ 1 ] ) ) ) ) {\n fprintf ( stderr , _ ( \"usage: get_principals [expression]\\n\" ) ) ;\n return ;\n }\n retval = kadm5_get_principals ( handle , expr , & names , & count ) ;\n if ( retval ) {\n com_err ( \"get_principals\" , retval , _ ( \"while retrieving list.\" ) ) ;\n return ;\n }\n for ( i = 0 ;\n i < count ;\n i ++ ) printf ( \"%s\\n\" , names [ i ] ) ;\n kadm5_free_name_list ( handle , names , count ) ;\n }"}
{"idx": 15230, "target": 0, "func": "int mime_field_print ( MIMEField * field , char * buf_start , int buf_length , int * buf_index_inout , int * buf_chars_to_skip_inout ) {\n # define TRY ( x ) if ( ! x ) return 0 int total_len ;\n if ( field -> m_ptr_name [ 0 ] == '@' ) {\n return 1 ;\n }\n if ( field -> m_n_v_raw_printable ) {\n total_len = field -> m_len_name + field -> m_len_value + field -> m_n_v_raw_printable_pad ;\n if ( ( buf_start != nullptr ) && ( * buf_chars_to_skip_inout == 0 ) && ( total_len <= ( buf_length - * buf_index_inout ) ) ) {\n buf_start += * buf_index_inout ;\n memcpy ( buf_start , field -> m_ptr_name , total_len ) ;\n * buf_index_inout += total_len ;\n }\n else {\n TRY ( mime_mem_print ( field -> m_ptr_name , total_len , buf_start , buf_length , buf_index_inout , buf_chars_to_skip_inout ) ) ;\n }\n }\n else {\n total_len = field -> m_len_name + field -> m_len_value + 2 + 2 ;\n if ( ( buf_start != nullptr ) && ( * buf_chars_to_skip_inout == 0 ) && ( total_len <= ( buf_length - * buf_index_inout ) ) ) {\n buf_start += * buf_index_inout ;\n memcpy ( buf_start , field -> m_ptr_name , field -> m_len_name ) ;\n buf_start += field -> m_len_name ;\n buf_start [ 0 ] = ':' ;\n buf_start [ 1 ] = ' ' ;\n buf_start += 2 ;\n memcpy ( buf_start , field -> m_ptr_value , field -> m_len_value ) ;\n buf_start += field -> m_len_value ;\n buf_start [ 0 ] = '\\r' ;\n buf_start [ 1 ] = '\\n' ;\n * buf_index_inout += total_len ;\n }\n else {\n TRY ( mime_mem_print ( field -> m_ptr_name , field -> m_len_name , buf_start , buf_length , buf_index_inout , buf_chars_to_skip_inout ) ) ;\n TRY ( mime_mem_print ( \": \" , 2 , buf_start , buf_length , buf_index_inout , buf_chars_to_skip_inout ) ) ;\n TRY ( mime_mem_print ( field -> m_ptr_value , field -> m_len_value , buf_start , buf_length , buf_index_inout , buf_chars_to_skip_inout ) ) ;\n TRY ( mime_mem_print ( \"\\r\\n\" , 2 , buf_start , buf_length , buf_index_inout , buf_chars_to_skip_inout ) ) ;\n }\n }\n return 1 ;\n # undef TRY }"}
{"idx": 15231, "target": 0, "func": "static void query_filesystem_info_callback ( GObject * source_object , GAsyncResult * res , gpointer user_data ) {\n GFileInfo * info ;\n FilesystemInfoState * state ;\n state = user_data ;\n if ( state -> directory == NULL ) {\n filesystem_info_state_free ( state ) ;\n return ;\n }\n info = g_file_query_filesystem_info_finish ( G_FILE ( source_object ) , res , NULL ) ;\n got_filesystem_info ( state , info ) ;\n if ( info != NULL ) {\n g_object_unref ( info ) ;\n }\n }"}
{"idx": 15232, "target": 0, "func": "static int hfinfo_type_bitwidth ( enum ftenum type ) {\n int bitwidth = 0 ;\n switch ( type ) {\n case FT_UINT8 : case FT_INT8 : bitwidth = 8 ;\n break ;\n case FT_UINT16 : case FT_INT16 : bitwidth = 16 ;\n break ;\n case FT_UINT24 : case FT_INT24 : bitwidth = 24 ;\n break ;\n case FT_UINT32 : case FT_INT32 : bitwidth = 32 ;\n break ;\n case FT_UINT40 : case FT_INT40 : bitwidth = 40 ;\n break ;\n case FT_UINT48 : case FT_INT48 : bitwidth = 48 ;\n break ;\n case FT_UINT56 : case FT_INT56 : bitwidth = 56 ;\n break ;\n case FT_UINT64 : case FT_INT64 : bitwidth = 64 ;\n break ;\n default : DISSECTOR_ASSERT_NOT_REACHED ( ) ;\n ;\n }\n return bitwidth ;\n }"}
{"idx": 15233, "target": 0, "func": "static void warn_insufficient_frame_quality ( AVCodecContext * avctx , const char * message ) {\n av_log ( avctx , AV_LOG_WARNING , \"Frame #%d, IFQ: %s\\n\" , avctx -> frame_number , message ) ;\n }"}
{"idx": 15234, "target": 0, "func": "static void dissect_glabel_lambda ( proto_tree * ti _U_ , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset ) {\n float freq = 0.0f ;\n guint32 wavelength = 0 ;\n float cs_thz = 0.0f ;\n proto_tree * wavelength_tree ;\n guint8 grid , cs ;\n gint16 n ;\n static const value_string grid1_cs_vals [ ] = {\n {\n 1 , \"100GHz\" }\n , {\n 2 , \"50GHz\" }\n , {\n 3 , \"25GHz\" }\n , {\n 4 , \"12.5GHz\" }\n , {\n 0 , NULL }\n }\n ;\n static const value_string grid2_cs_vals [ ] = {\n {\n 1 , \"20nm\" }\n , {\n 0 , NULL }\n }\n ;\n wavelength_tree = proto_tree_add_subtree ( rsvp_object_tree , tvb , offset , 4 , TREE ( TT_WAVELENGTH ) , NULL , \"Wavelength Label\" ) ;\n proto_tree_add_item ( wavelength_tree , hf_rsvp_wavelength_grid , tvb , offset , 1 , ENC_NA ) ;\n grid = ( ( tvb_get_guint8 ( tvb , offset ) & 0xE0 ) >> 5 ) ;\n cs = ( ( tvb_get_guint8 ( tvb , offset ) & 0x1E ) >> 1 ) ;\n n = tvb_get_ntohs ( tvb , offset + 2 ) ;\n switch ( grid ) {\n case 1 : cs_thz = cs == 1 ? 0.1f : cs == 2 ? 0.05f : cs == 3 ? 0.025f : cs == 4 ? 0.0125f : 0.0f ;\n freq = 193.1f + ( n * cs_thz ) ;\n proto_tree_add_uint_format_value ( wavelength_tree , hf_rsvp_wavelength_channel_spacing , tvb , offset , 1 , tvb_get_guint8 ( tvb , offset ) , \"%s\" , val_to_str_const ( cs , grid1_cs_vals , \"Unknown\" ) ) ;\n proto_tree_add_item ( wavelength_tree , hf_rsvp_wavelength_n , tvb , offset + 2 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_float_format_value ( wavelength_tree , hf_rsvp_wavelength_freq , tvb , offset , 4 , freq , \"%.2fTHz\" , freq ) ;\n proto_item_append_text ( ti , \": Wavelength: grid=DWDM, channel spacing=%s, n=%d, freq=%.2fTHz\" , val_to_str_const ( cs , grid1_cs_vals , \"Unknown\" ) , n , freq ) ;\n break ;\n case 2 : wavelength = 1471 + ( n * 20 ) ;\n proto_tree_add_uint_format_value ( wavelength_tree , hf_rsvp_wavelength_channel_spacing , tvb , offset , 1 , tvb_get_guint8 ( tvb , offset ) , \"%s\" , val_to_str_const ( cs , grid2_cs_vals , \"Unknown\" ) ) ;\n proto_tree_add_item ( wavelength_tree , hf_rsvp_wavelength_n , tvb , offset + 2 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_uint_format_value ( wavelength_tree , hf_rsvp_wavelength_wavelength , tvb , offset , 4 , wavelength , \"%unm\" , wavelength ) ;\n proto_item_append_text ( ti , \": Wavelength: grid=CWDM, channel spacing=%s, n=%d, wavelength=%unm\" , val_to_str_const ( cs , grid2_cs_vals , \"Unknown\" ) , n , wavelength ) ;\n break ;\n default : proto_tree_add_item ( wavelength_tree , hf_rsvp_wavelength_channel_spacing , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( wavelength_tree , hf_rsvp_wavelength_n , tvb , offset + 2 , 2 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \": Wavelength: grid=%u, channel spacing=%u, n=%d\" , grid , cs , n ) ;\n break ;\n }\n }"}
{"idx": 15235, "target": 0, "func": "static void truespeech_save_prevvec ( TSContext * c ) {\n int i ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) c -> prevfilt [ i ] = c -> cvector [ i ] ;\n }"}
{"idx": 15236, "target": 0, "func": "static int libopenjpeg_matches_pix_fmt ( const opj_image_t * img , enum AVPixelFormat pix_fmt ) {\n const AVPixFmtDescriptor * desc = av_pix_fmt_desc_get ( pix_fmt ) ;\n int match = 1 ;\n if ( desc -> nb_components != img -> numcomps ) {\n return 0 ;\n }\n switch ( desc -> nb_components ) {\n case 4 : match = match && desc -> comp [ 3 ] . depth_minus1 + 1 >= img -> comps [ 3 ] . prec && 1 == img -> comps [ 3 ] . dx && 1 == img -> comps [ 3 ] . dy ;\n case 3 : match = match && desc -> comp [ 2 ] . depth_minus1 + 1 >= img -> comps [ 2 ] . prec && 1 << desc -> log2_chroma_w == img -> comps [ 2 ] . dx && 1 << desc -> log2_chroma_h == img -> comps [ 2 ] . dy ;\n case 2 : match = match && desc -> comp [ 1 ] . depth_minus1 + 1 >= img -> comps [ 1 ] . prec && 1 << desc -> log2_chroma_w == img -> comps [ 1 ] . dx && 1 << desc -> log2_chroma_h == img -> comps [ 1 ] . dy ;\n case 1 : match = match && desc -> comp [ 0 ] . depth_minus1 + 1 >= img -> comps [ 0 ] . prec && 1 == img -> comps [ 0 ] . dx && 1 == img -> comps [ 0 ] . dy ;\n default : break ;\n }\n return match ;\n }"}
{"idx": 15237, "target": 0, "func": "void vp9_init_first_pass ( VP9_COMP * cpi ) {\n zero_stats ( & cpi -> twopass . total_stats ) ;\n }"}
{"idx": 15238, "target": 0, "func": "static void pdf_run_ET ( fz_context * ctx , pdf_processor * proc ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_flush_text ( ctx , pr ) ;\n }"}
{"idx": 15239, "target": 0, "func": "static void writer_print_integers ( WriterContext * wctx , const char * name , uint8_t * data , int size , const char * format , int columns , int bytes , int offset_add ) {\n AVBPrint bp ;\n int offset = 0 , l , i ;\n av_bprint_init ( & bp , 0 , AV_BPRINT_SIZE_UNLIMITED ) ;\n av_bprintf ( & bp , \"\\n\" ) ;\n while ( size ) {\n av_bprintf ( & bp , \"%08x: \" , offset ) ;\n l = FFMIN ( size , columns ) ;\n for ( i = 0 ;\n i < l ;\n i ++ ) {\n if ( bytes == 1 ) av_bprintf ( & bp , format , * data ) ;\n else if ( bytes == 2 ) av_bprintf ( & bp , format , AV_RN16 ( data ) ) ;\n else if ( bytes == 4 ) av_bprintf ( & bp , format , AV_RN32 ( data ) ) ;\n data += bytes ;\n size -- ;\n }\n av_bprintf ( & bp , \"\\n\" ) ;\n offset += offset_add ;\n }\n writer_print_string ( wctx , name , bp . str , 0 ) ;\n av_bprint_finalize ( & bp , NULL ) ;\n }"}
{"idx": 15240, "target": 0, "func": "static int dissect_h245_T38FaxRateManagement ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T38FaxRateManagement , T38FaxRateManagement_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 15241, "target": 0, "func": "hidden_proto ( _nss_dns_gethostbyaddr2_r ) enum nss_status _nss_dns_gethostbyaddr2_r ( const void * addr , socklen_t len , int af , struct hostent * result , char * buffer , size_t buflen , int * errnop , int * h_errnop , int32_t * ttlp ) {\n static const u_char mapped [ ] = {\n 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0xff , 0xff }\n ;\n static const u_char tunnelled [ ] = {\n 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }\n ;\n static const u_char v6local [ ] = {\n 0 , 0 , 0 , 1 }\n ;\n const u_char * uaddr = ( const u_char * ) addr ;\n struct host_data {\n char * aliases [ MAX_NR_ALIASES ] ;\n unsigned char host_addr [ 16 ] ;\n char * h_addr_ptrs [ MAX_NR_ADDRS + 1 ] ;\n char linebuffer [ 0 ] ;\n }\n * host_data = ( struct host_data * ) buffer ;\n union {\n querybuf * buf ;\n u_char * ptr ;\n }\n host_buffer ;\n querybuf * orig_host_buffer ;\n char qbuf [ MAXDNAME + 1 ] , * qp = NULL ;\n size_t size ;\n int n , status ;\n int olderr = errno ;\n uintptr_t pad = - ( uintptr_t ) buffer % __alignof__ ( struct host_data ) ;\n buffer += pad ;\n buflen = buflen > pad ? buflen - pad : 0 ;\n if ( __glibc_unlikely ( buflen < sizeof ( struct host_data ) ) ) {\n * errnop = ERANGE ;\n * h_errnop = NETDB_INTERNAL ;\n return NSS_STATUS_TRYAGAIN ;\n }\n host_data = ( struct host_data * ) buffer ;\n if ( __res_maybe_init ( & _res , 0 ) == - 1 ) return NSS_STATUS_UNAVAIL ;\n if ( af == AF_INET6 && len == IN6ADDRSZ && ( memcmp ( uaddr , mapped , sizeof mapped ) == 0 || ( memcmp ( uaddr , tunnelled , sizeof tunnelled ) == 0 && memcmp ( & uaddr [ sizeof tunnelled ] , v6local , sizeof v6local ) ) ) ) {\n addr += sizeof mapped ;\n uaddr += sizeof mapped ;\n af = AF_INET ;\n len = INADDRSZ ;\n }\n switch ( af ) {\n case AF_INET : size = INADDRSZ ;\n break ;\n case AF_INET6 : size = IN6ADDRSZ ;\n break ;\n default : * errnop = EAFNOSUPPORT ;\n * h_errnop = NETDB_INTERNAL ;\n return NSS_STATUS_UNAVAIL ;\n }\n if ( size > len ) {\n * errnop = EAFNOSUPPORT ;\n * h_errnop = NETDB_INTERNAL ;\n return NSS_STATUS_UNAVAIL ;\n }\n host_buffer . buf = orig_host_buffer = ( querybuf * ) alloca ( 1024 ) ;\n switch ( af ) {\n case AF_INET : sprintf ( qbuf , \"%u.%u.%u.%u.in-addr.arpa\" , ( uaddr [ 3 ] & 0xff ) , ( uaddr [ 2 ] & 0xff ) , ( uaddr [ 1 ] & 0xff ) , ( uaddr [ 0 ] & 0xff ) ) ;\n break ;\n case AF_INET6 : if ( __glibc_unlikely ( _res . options & RES_USEBSTRING ) ) {\n qp = stpcpy ( qbuf , \"\\\\[x\" ) ;\n for ( n = 0 ;\n n < IN6ADDRSZ ;\n ++ n ) qp += sprintf ( qp , \"%02hhx\" , uaddr [ n ] ) ;\n strcpy ( qp , \"].ip6.arpa\" ) ;\n n = __libc_res_nquery ( & _res , qbuf , C_IN , T_PTR , host_buffer . buf -> buf , 1024 , & host_buffer . ptr , NULL , NULL , NULL , NULL ) ;\n if ( n >= 0 ) goto got_it_already ;\n }\n qp = qbuf ;\n for ( n = IN6ADDRSZ - 1 ;\n n >= 0 ;\n n -- ) {\n static const char nibblechar [ 16 ] = \"0123456789abcdef\" ;\n * qp ++ = nibblechar [ uaddr [ n ] & 0xf ] ;\n * qp ++ = '.' ;\n * qp ++ = nibblechar [ ( uaddr [ n ] >> 4 ) & 0xf ] ;\n * qp ++ = '.' ;\n }\n strcpy ( qp , \"ip6.arpa\" ) ;\n break ;\n default : break ;\n }\n n = __libc_res_nquery ( & _res , qbuf , C_IN , T_PTR , host_buffer . buf -> buf , 1024 , & host_buffer . ptr , NULL , NULL , NULL , NULL ) ;\n if ( n < 0 && af == AF_INET6 && ( _res . options & RES_NOIP6DOTINT ) == 0 ) {\n strcpy ( qp , \"ip6.int\" ) ;\n n = __libc_res_nquery ( & _res , qbuf , C_IN , T_PTR , host_buffer . buf -> buf , host_buffer . buf != orig_host_buffer ? MAXPACKET : 1024 , & host_buffer . ptr , NULL , NULL , NULL , NULL ) ;\n }\n if ( n < 0 ) {\n * h_errnop = h_errno ;\n __set_errno ( olderr ) ;\n if ( host_buffer . buf != orig_host_buffer ) free ( host_buffer . buf ) ;\n return errno == ECONNREFUSED ? NSS_STATUS_UNAVAIL : NSS_STATUS_NOTFOUND ;\n }\n got_it_already : status = getanswer_r ( host_buffer . buf , n , qbuf , T_PTR , result , buffer , buflen , errnop , h_errnop , 0 , ttlp , NULL ) ;\n if ( host_buffer . buf != orig_host_buffer ) free ( host_buffer . buf ) ;\n if ( status != NSS_STATUS_SUCCESS ) return status ;\n # ifdef SUNSECURITY This is not implemented because it is not possible to use the current source from bind in a multi - threaded program . # endif result -> h_addrtype = af ;\n result -> h_length = len ;\n memcpy ( host_data -> host_addr , addr , len ) ;\n host_data -> h_addr_ptrs [ 0 ] = ( char * ) host_data -> host_addr ;\n host_data -> h_addr_ptrs [ 1 ] = NULL ;\n # if 0 if ( af == AF_INET && ( _res . options & RES_USE_INET6 ) ) {\n map_v4v6_address ( ( char * ) host_data -> host_addr , ( char * ) host_data -> host_addr ) ;\n result -> h_addrtype = AF_INET6 ;\n result -> h_length = IN6ADDRSZ ;\n }\n # endif * h_errnop = NETDB_SUCCESS ;\n return NSS_STATUS_SUCCESS ;\n }"}
{"idx": 15242, "target": 0, "func": "int qemuMonitorJSONEjectMedia ( qemuMonitorPtr mon , const char * dev_name , bool force ) {\n int ret ;\n virJSONValuePtr cmd = qemuMonitorJSONMakeCommand ( \"eject\" , \"s:device\" , dev_name , \"b:force\" , force ? 1 : 0 , NULL ) ;\n virJSONValuePtr reply = NULL ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 15243, "target": 0, "func": "static void flush ( AVCodecContext * avctx ) {\n mp_flush ( avctx -> priv_data ) ;\n }"}
{"idx": 15244, "target": 1, "func": "static void fill_mode_info_sb ( VP9_COMMON * cm , MACROBLOCK * x , int mi_row , int mi_col , BLOCK_SIZE bsize , BLOCK_SIZE subsize , PC_TREE * pc_tree ) {\n MACROBLOCKD * xd = & x -> e_mbd ;\n int bsl = b_width_log2 ( bsize ) , hbs = ( 1 << bsl ) / 4 ;\n PARTITION_TYPE partition = pc_tree -> partitioning ;\n assert ( bsize >= BLOCK_8X8 ) ;\n if ( mi_row >= cm -> mi_rows || mi_col >= cm -> mi_cols ) return ;\n switch ( partition ) {\n case PARTITION_NONE : set_modeinfo_offsets ( cm , xd , mi_row , mi_col ) ;\n * ( xd -> mi [ 0 ] ) = pc_tree -> none . mic ;\n duplicate_mode_info_in_sb ( cm , xd , mi_row , mi_col , bsize ) ;\n break ;\n case PARTITION_VERT : set_modeinfo_offsets ( cm , xd , mi_row , mi_col ) ;\n * ( xd -> mi [ 0 ] ) = pc_tree -> vertical [ 0 ] . mic ;\n duplicate_mode_info_in_sb ( cm , xd , mi_row , mi_col , bsize ) ;\n if ( mi_col + hbs < cm -> mi_cols ) {\n set_modeinfo_offsets ( cm , xd , mi_row , mi_col + hbs ) ;\n * ( xd -> mi [ 0 ] ) = pc_tree -> vertical [ 1 ] . mic ;\n duplicate_mode_info_in_sb ( cm , xd , mi_row , mi_col + hbs , bsize ) ;\n }\n break ;\n case PARTITION_HORZ : set_modeinfo_offsets ( cm , xd , mi_row , mi_col ) ;\n * ( xd -> mi [ 0 ] ) = pc_tree -> horizontal [ 0 ] . mic ;\n duplicate_mode_info_in_sb ( cm , xd , mi_row , mi_col , bsize ) ;\n if ( mi_row + hbs < cm -> mi_rows ) {\n set_modeinfo_offsets ( cm , xd , mi_row + hbs , mi_col ) ;\n * ( xd -> mi [ 0 ] ) = pc_tree -> horizontal [ 1 ] . mic ;\n duplicate_mode_info_in_sb ( cm , xd , mi_row + hbs , mi_col , bsize ) ;\n }\n break ;\n case PARTITION_SPLIT : {\n BLOCK_SIZE subsubsize = get_subsize ( subsize , PARTITION_SPLIT ) ;\n fill_mode_info_sb ( cm , x , mi_row , mi_col , subsize , subsubsize , pc_tree -> split [ 0 ] ) ;\n fill_mode_info_sb ( cm , x , mi_row , mi_col + hbs , subsize , subsubsize , pc_tree -> split [ 1 ] ) ;\n fill_mode_info_sb ( cm , x , mi_row + hbs , mi_col , subsize , subsubsize , pc_tree -> split [ 2 ] ) ;\n fill_mode_info_sb ( cm , x , mi_row + hbs , mi_col + hbs , subsize , subsubsize , pc_tree -> split [ 3 ] ) ;\n break ;\n }\n default : break ;\n }\n }"}
{"idx": 15245, "target": 0, "func": "static PHP_NAMED_FUNCTION ( zif_zip_entry_open ) {\n zval * zip ;\n zval * zip_entry ;\n char * mode = NULL ;\n int mode_len = 0 ;\n zip_read_rsrc * zr_rsrc ;\n zip_rsrc * z_rsrc ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"rr|s\" , & zip , & zip_entry , & mode , & mode_len ) == FAILURE ) {\n return ;\n }\n ZEND_FETCH_RESOURCE ( zr_rsrc , zip_read_rsrc * , & zip_entry , - 1 , le_zip_entry_name , le_zip_entry ) ;\n ZEND_FETCH_RESOURCE ( z_rsrc , zip_rsrc * , & zip , - 1 , le_zip_dir_name , le_zip_dir ) ;\n if ( zr_rsrc -> zf != NULL ) {\n RETURN_TRUE ;\n }\n else {\n RETURN_FALSE ;\n }\n }"}
{"idx": 15246, "target": 0, "func": "void aes_setkey_enc ( aes_context * ctx , const unsigned char * key , int keysize ) {\n int i ;\n unsigned long * RK ;\n # if ! defined ( XYSSL_AES_ROM_TABLES ) if ( aes_init_done == 0 ) {\n aes_gen_tables ( ) ;\n aes_init_done = 1 ;\n }\n # endif switch ( keysize ) {\n case 128 : ctx -> nr = 10 ;\n break ;\n case 192 : ctx -> nr = 12 ;\n break ;\n case 256 : ctx -> nr = 14 ;\n break ;\n default : return ;\n }\n # if defined ( PADLOCK_ALIGN16 ) ctx -> rk = RK = PADLOCK_ALIGN16 ( ctx -> buf ) ;\n # else ctx -> rk = RK = ctx -> buf ;\n # endif for ( i = 0 ;\n i < ( keysize >> 5 ) ;\n i ++ ) {\n GET_ULONG_LE ( RK [ i ] , key , i << 2 ) ;\n }\n switch ( ctx -> nr ) {\n case 10 : for ( i = 0 ;\n i < 10 ;\n i ++ , RK += 4 ) {\n RK [ 4 ] = RK [ 0 ] ^ RCON [ i ] ^ ( FSb [ ( RK [ 3 ] >> 8 ) & 0xFF ] ) ^ ( FSb [ ( RK [ 3 ] >> 16 ) & 0xFF ] << 8 ) ^ ( FSb [ ( RK [ 3 ] >> 24 ) & 0xFF ] << 16 ) ^ ( ( ( unsigned int ) FSb [ ( RK [ 3 ] ) & 0xFF ] ) << 24 ) ;\n RK [ 5 ] = RK [ 1 ] ^ RK [ 4 ] ;\n RK [ 6 ] = RK [ 2 ] ^ RK [ 5 ] ;\n RK [ 7 ] = RK [ 3 ] ^ RK [ 6 ] ;\n }\n break ;\n case 12 : for ( i = 0 ;\n i < 8 ;\n i ++ , RK += 6 ) {\n RK [ 6 ] = RK [ 0 ] ^ RCON [ i ] ^ ( FSb [ ( RK [ 5 ] >> 8 ) & 0xFF ] ) ^ ( FSb [ ( RK [ 5 ] >> 16 ) & 0xFF ] << 8 ) ^ ( FSb [ ( RK [ 5 ] >> 24 ) & 0xFF ] << 16 ) ^ ( ( ( unsigned int ) FSb [ ( RK [ 5 ] ) & 0xFF ] ) << 24 ) ;\n RK [ 7 ] = RK [ 1 ] ^ RK [ 6 ] ;\n RK [ 8 ] = RK [ 2 ] ^ RK [ 7 ] ;\n RK [ 9 ] = RK [ 3 ] ^ RK [ 8 ] ;\n RK [ 10 ] = RK [ 4 ] ^ RK [ 9 ] ;\n RK [ 11 ] = RK [ 5 ] ^ RK [ 10 ] ;\n }\n break ;\n case 14 : for ( i = 0 ;\n i < 7 ;\n i ++ , RK += 8 ) {\n RK [ 8 ] = RK [ 0 ] ^ RCON [ i ] ^ ( FSb [ ( RK [ 7 ] >> 8 ) & 0xFF ] ) ^ ( FSb [ ( RK [ 7 ] >> 16 ) & 0xFF ] << 8 ) ^ ( FSb [ ( RK [ 7 ] >> 24 ) & 0xFF ] << 16 ) ^ ( ( ( unsigned int ) FSb [ ( RK [ 7 ] ) & 0xFF ] ) << 24 ) ;\n RK [ 9 ] = RK [ 1 ] ^ RK [ 8 ] ;\n RK [ 10 ] = RK [ 2 ] ^ RK [ 9 ] ;\n RK [ 11 ] = RK [ 3 ] ^ RK [ 10 ] ;\n RK [ 12 ] = RK [ 4 ] ^ ( FSb [ ( RK [ 11 ] ) & 0xFF ] ) ^ ( FSb [ ( RK [ 11 ] >> 8 ) & 0xFF ] << 8 ) ^ ( FSb [ ( RK [ 11 ] >> 16 ) & 0xFF ] << 16 ) ^ ( ( ( unsigned int ) FSb [ ( RK [ 11 ] >> 24 ) & 0xFF ] ) << 24 ) ;\n RK [ 13 ] = RK [ 5 ] ^ RK [ 12 ] ;\n RK [ 14 ] = RK [ 6 ] ^ RK [ 13 ] ;\n RK [ 15 ] = RK [ 7 ] ^ RK [ 14 ] ;\n }\n break ;\n default : break ;\n }\n }"}
{"idx": 15247, "target": 0, "func": "static void decode_image_block ( RangeCoder * c , ImageBlockCoder * ic , uint8_t * dst , int stride , int block_size ) {\n int i , j ;\n int vec_size ;\n int vec [ 4 ] ;\n int prev_line [ 16 ] ;\n int A , B , C ;\n vec_size = rac_get_model_sym ( c , & ic -> vec_size_model ) + 2 ;\n for ( i = 0 ;\n i < vec_size ;\n i ++ ) vec [ i ] = rac_get_model256_sym ( c , & ic -> vec_entry_model ) ;\n for ( ;\n i < 4 ;\n i ++ ) vec [ i ] = 0 ;\n memset ( prev_line , 0 , sizeof ( prev_line ) ) ;\n for ( j = 0 ;\n j < block_size ;\n j ++ ) {\n A = 0 ;\n B = 0 ;\n for ( i = 0 ;\n i < block_size ;\n i ++ ) {\n C = B ;\n B = prev_line [ i ] ;\n A = rac_get_model_sym ( c , & ic -> vq_model [ A + B * 5 + C * 25 ] ) ;\n prev_line [ i ] = A ;\n if ( A < 4 ) dst [ i ] = vec [ A ] ;\n else dst [ i ] = rac_get_model256_sym ( c , & ic -> esc_model ) ;\n }\n dst += stride ;\n }\n }"}
{"idx": 15248, "target": 0, "func": "SPL_METHOD ( SplFileInfo , func_name ) \\ {\n \\ spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n \\ zend_error_handling error_handling ;\n \\ if ( zend_parse_parameters_none ( ) == FAILURE ) {\n \\ return ;\n \\ }\n \\ \\ zend_replace_error_handling ( EH_THROW , spl_ce_RuntimeException , & error_handling TSRMLS_CC ) ;\n \\ spl_filesystem_object_get_file_name ( intern TSRMLS_CC ) ;\n \\ php_stat ( intern -> file_name , intern -> file_name_len , func_num , return_value TSRMLS_CC ) ;\n \\ zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n \\ }\n FileInfoFunction ( getPerms , FS_PERMS ) FileInfoFunction ( getInode , FS_INODE ) FileInfoFunction ( getSize , FS_SIZE ) FileInfoFunction ( getOwner , FS_OWNER ) FileInfoFunction ( getGroup , FS_GROUP ) FileInfoFunction ( getATime , FS_ATIME ) FileInfoFunction ( getMTime , FS_MTIME ) FileInfoFunction ( getCTime , FS_CTIME ) FileInfoFunction ( getType , FS_TYPE ) FileInfoFunction ( isWritable , FS_IS_W ) FileInfoFunction ( isReadable , FS_IS_R )"}
{"idx": 15249, "target": 0, "func": "static int build_def_list ( Picture * def , Picture * * in , int len , int is_long , int sel ) {\n int i [ 2 ] = {\n 0 }\n ;\n int index = 0 ;\n while ( i [ 0 ] < len || i [ 1 ] < len ) {\n while ( i [ 0 ] < len && ! ( in [ i [ 0 ] ] && ( in [ i [ 0 ] ] -> reference & sel ) ) ) i [ 0 ] ++ ;\n while ( i [ 1 ] < len && ! ( in [ i [ 1 ] ] && ( in [ i [ 1 ] ] -> reference & ( sel ^ 3 ) ) ) ) i [ 1 ] ++ ;\n if ( i [ 0 ] < len ) {\n in [ i [ 0 ] ] -> pic_id = is_long ? i [ 0 ] : in [ i [ 0 ] ] -> frame_num ;\n split_field_copy ( & def [ index ++ ] , in [ i [ 0 ] ++ ] , sel , 1 ) ;\n }\n if ( i [ 1 ] < len ) {\n in [ i [ 1 ] ] -> pic_id = is_long ? i [ 1 ] : in [ i [ 1 ] ] -> frame_num ;\n split_field_copy ( & def [ index ++ ] , in [ i [ 1 ] ++ ] , sel ^ 3 , 0 ) ;\n }\n }\n return index ;\n }"}
{"idx": 15250, "target": 1, "func": "void vp9_lpf_horizontal_16_sse2 ( unsigned char * s , int p , const unsigned char * _blimit , const unsigned char * _limit , const unsigned char * _thresh , int count ) {\n if ( count == 1 ) mb_lpf_horizontal_edge_w_sse2_8 ( s , p , _blimit , _limit , _thresh ) ;\n else mb_lpf_horizontal_edge_w_sse2_16 ( s , p , _blimit , _limit , _thresh ) ;\n }"}
{"idx": 15251, "target": 0, "func": "static void init_bit_trees ( ) {\n init_bit_tree ( cat1 , 1 ) ;\n init_bit_tree ( cat2 , 2 ) ;\n init_bit_tree ( cat3 , 3 ) ;\n init_bit_tree ( cat4 , 4 ) ;\n init_bit_tree ( cat5 , 5 ) ;\n init_bit_tree ( cat6 , 14 ) ;\n # if CONFIG_VP9_HIGHBITDEPTH init_bit_tree ( cat1_high10 , 1 ) ;\n init_bit_tree ( cat2_high10 , 2 ) ;\n init_bit_tree ( cat3_high10 , 3 ) ;\n init_bit_tree ( cat4_high10 , 4 ) ;\n init_bit_tree ( cat5_high10 , 5 ) ;\n init_bit_tree ( cat6_high10 , 16 ) ;\n init_bit_tree ( cat1_high12 , 1 ) ;\n init_bit_tree ( cat2_high12 , 2 ) ;\n init_bit_tree ( cat3_high12 , 3 ) ;\n init_bit_tree ( cat4_high12 , 4 ) ;\n init_bit_tree ( cat5_high12 , 5 ) ;\n init_bit_tree ( cat6_high12 , 18 ) ;\n # endif }"}
{"idx": 15252, "target": 0, "func": "static MB_MODE_INFO * set_offsets ( VP9_COMMON * const cm , MACROBLOCKD * const xd , const TileInfo * const tile , BLOCK_SIZE bsize , int mi_row , int mi_col ) {\n const int bw = num_8x8_blocks_wide_lookup [ bsize ] ;\n const int bh = num_8x8_blocks_high_lookup [ bsize ] ;\n const int x_mis = MIN ( bw , cm -> mi_cols - mi_col ) ;\n const int y_mis = MIN ( bh , cm -> mi_rows - mi_row ) ;\n const int offset = mi_row * cm -> mi_stride + mi_col ;\n int x , y ;\n xd -> mi = cm -> mi + offset ;\n xd -> mi [ 0 ] . src_mi = & xd -> mi [ 0 ] ;\n xd -> mi [ 0 ] . mbmi . sb_type = bsize ;\n for ( y = 0 ;\n y < y_mis ;\n ++ y ) for ( x = ! y ;\n x < x_mis ;\n ++ x ) {\n xd -> mi [ y * cm -> mi_stride + x ] . src_mi = & xd -> mi [ 0 ] ;\n }\n set_skip_context ( xd , mi_row , mi_col ) ;\n set_mi_row_col ( xd , tile , mi_row , bh , mi_col , bw , cm -> mi_rows , cm -> mi_cols ) ;\n vp9_setup_dst_planes ( xd -> plane , get_frame_new_buffer ( cm ) , mi_row , mi_col ) ;\n return & xd -> mi [ 0 ] . mbmi ;\n }"}
{"idx": 15253, "target": 0, "func": "static int pfkey_broadcast_one ( struct sk_buff * skb , struct sk_buff * * skb2 , gfp_t allocation , struct sock * sk ) {\n int err = - ENOBUFS ;\n sock_hold ( sk ) ;\n if ( * skb2 == NULL ) {\n if ( atomic_read ( & skb -> users ) != 1 ) {\n * skb2 = skb_clone ( skb , allocation ) ;\n }\n else {\n * skb2 = skb ;\n atomic_inc ( & skb -> users ) ;\n }\n }\n if ( * skb2 != NULL ) {\n if ( atomic_read ( & sk -> sk_rmem_alloc ) <= sk -> sk_rcvbuf ) {\n skb_set_owner_r ( * skb2 , sk ) ;\n skb_queue_tail ( & sk -> sk_receive_queue , * skb2 ) ;\n sk -> sk_data_ready ( sk , ( * skb2 ) -> len ) ;\n * skb2 = NULL ;\n err = 0 ;\n }\n }\n sock_put ( sk ) ;\n return err ;\n }"}
{"idx": 15254, "target": 0, "func": "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_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_NonStandardMessage , NonStandardMessage_sequence ) ;\n return offset ;\n }"}
{"idx": 15255, "target": 0, "func": "static void set_ping_group_range ( struct ctl_table * table , gid_t range [ 2 ] ) {\n gid_t * data = table -> data ;\n write_seqlock ( & sysctl_local_ports . lock ) ;\n data [ 0 ] = range [ 0 ] ;\n data [ 1 ] = range [ 1 ] ;\n write_sequnlock ( & sysctl_local_ports . lock ) ;\n }"}
{"idx": 15256, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n FrapsContext * const s = avctx -> priv_data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n AVFrame * frame = data ;\n AVFrame * const f = & s -> frame ;\n uint32_t header ;\n unsigned int version , header_size ;\n unsigned int x , y ;\n const uint32_t * buf32 ;\n uint32_t * luma1 , * luma2 , * cb , * cr ;\n uint32_t offs [ 4 ] ;\n int i , j , ret , is_chroma , planes ;\n enum AVPixelFormat pix_fmt ;\n header = AV_RL32 ( buf ) ;\n version = header & 0xff ;\n header_size = ( header & ( 1 << 30 ) ) ? 8 : 4 ;\n if ( version > 5 ) {\n av_log ( avctx , AV_LOG_ERROR , \"This file is encoded with Fraps version %d. \" \\ \"This codec can only decode versions <= 5.\\n\" , version ) ;\n return AVERROR_PATCHWELCOME ;\n }\n buf += 4 ;\n if ( header_size == 8 ) buf += 4 ;\n pix_fmt = version & 1 ? AV_PIX_FMT_BGR24 : AV_PIX_FMT_YUVJ420P ;\n if ( avctx -> pix_fmt != pix_fmt && f -> data [ 0 ] ) {\n avctx -> release_buffer ( avctx , f ) ;\n }\n avctx -> pix_fmt = pix_fmt ;\n switch ( version ) {\n case 0 : default : if ( ( buf_size != avctx -> width * avctx -> height * 3 / 2 + header_size ) && ( buf_size != header_size ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid frame length %d (should be %d)\\n\" , buf_size , avctx -> width * avctx -> height * 3 / 2 + header_size ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ( ( avctx -> width % 8 ) != 0 ) || ( ( avctx -> height % 2 ) != 0 ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid frame size %dx%d\\n\" , avctx -> width , avctx -> height ) ;\n return AVERROR_INVALIDDATA ;\n }\n f -> reference = 1 ;\n f -> buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE ;\n if ( ( ret = avctx -> reget_buffer ( avctx , f ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n f -> pict_type = ( header & ( 1U << 31 ) ) ? AV_PICTURE_TYPE_P : AV_PICTURE_TYPE_I ;\n f -> key_frame = f -> pict_type == AV_PICTURE_TYPE_I ;\n if ( f -> pict_type == AV_PICTURE_TYPE_I ) {\n buf32 = ( const uint32_t * ) buf ;\n for ( y = 0 ;\n y < avctx -> height / 2 ;\n y ++ ) {\n luma1 = ( uint32_t * ) & f -> data [ 0 ] [ y * 2 * f -> linesize [ 0 ] ] ;\n luma2 = ( uint32_t * ) & f -> data [ 0 ] [ ( y * 2 + 1 ) * f -> linesize [ 0 ] ] ;\n cr = ( uint32_t * ) & f -> data [ 1 ] [ y * f -> linesize [ 1 ] ] ;\n cb = ( uint32_t * ) & f -> data [ 2 ] [ y * f -> linesize [ 2 ] ] ;\n for ( x = 0 ;\n x < avctx -> width ;\n x += 8 ) {\n * ( luma1 ++ ) = * ( buf32 ++ ) ;\n * ( luma1 ++ ) = * ( buf32 ++ ) ;\n * ( luma2 ++ ) = * ( buf32 ++ ) ;\n * ( luma2 ++ ) = * ( buf32 ++ ) ;\n * ( cr ++ ) = * ( buf32 ++ ) ;\n * ( cb ++ ) = * ( buf32 ++ ) ;\n }\n }\n }\n break ;\n case 1 : if ( ( buf_size != avctx -> width * avctx -> height * 3 + header_size ) && ( buf_size != header_size ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid frame length %d (should be %d)\\n\" , buf_size , avctx -> width * avctx -> height * 3 + header_size ) ;\n return AVERROR_INVALIDDATA ;\n }\n f -> reference = 1 ;\n f -> buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE ;\n if ( ( ret = avctx -> reget_buffer ( avctx , f ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n f -> pict_type = ( header & ( 1U << 31 ) ) ? AV_PICTURE_TYPE_P : AV_PICTURE_TYPE_I ;\n f -> key_frame = f -> pict_type == AV_PICTURE_TYPE_I ;\n if ( f -> pict_type == AV_PICTURE_TYPE_I ) {\n for ( y = 0 ;\n y < avctx -> height ;\n y ++ ) memcpy ( & f -> data [ 0 ] [ ( avctx -> height - y - 1 ) * f -> linesize [ 0 ] ] , & buf [ y * avctx -> width * 3 ] , 3 * avctx -> width ) ;\n }\n break ;\n case 2 : case 4 : planes = 3 ;\n f -> reference = 1 ;\n f -> buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE ;\n if ( ( ret = avctx -> reget_buffer ( avctx , f ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( buf_size == 8 ) {\n f -> pict_type = AV_PICTURE_TYPE_P ;\n f -> key_frame = 0 ;\n break ;\n }\n f -> pict_type = AV_PICTURE_TYPE_I ;\n f -> key_frame = 1 ;\n if ( ( AV_RL32 ( buf ) != FPS_TAG ) || ( buf_size < ( planes * 1024 + 24 ) ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Fraps: error in data stream\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( i = 0 ;\n i < planes ;\n i ++ ) {\n offs [ i ] = AV_RL32 ( buf + 4 + i * 4 ) ;\n if ( offs [ i ] >= buf_size || ( i && offs [ i ] <= offs [ i - 1 ] + 1024 ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Fraps: plane %i offset is out of bounds\\n\" , i ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n offs [ planes ] = buf_size ;\n for ( i = 0 ;\n i < planes ;\n i ++ ) {\n is_chroma = ! ! i ;\n av_fast_padded_malloc ( & s -> tmpbuf , & s -> tmpbuf_size , offs [ i + 1 ] - offs [ i ] - 1024 ) ;\n if ( ! s -> tmpbuf ) return AVERROR ( ENOMEM ) ;\n if ( ( ret = fraps2_decode_plane ( s , f -> data [ i ] , f -> linesize [ i ] , avctx -> width >> is_chroma , avctx -> height >> is_chroma , buf + offs [ i ] , offs [ i + 1 ] - offs [ i ] , is_chroma , 1 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error decoding plane %i\\n\" , i ) ;\n return ret ;\n }\n }\n break ;\n case 3 : case 5 : planes = 3 ;\n f -> reference = 1 ;\n f -> buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE ;\n if ( ( ret = avctx -> reget_buffer ( avctx , f ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( buf_size == 8 ) {\n f -> pict_type = AV_PICTURE_TYPE_P ;\n f -> key_frame = 0 ;\n break ;\n }\n f -> pict_type = AV_PICTURE_TYPE_I ;\n f -> key_frame = 1 ;\n if ( ( AV_RL32 ( buf ) != FPS_TAG ) || ( buf_size < ( planes * 1024 + 24 ) ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Fraps: error in data stream\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( i = 0 ;\n i < planes ;\n i ++ ) {\n offs [ i ] = AV_RL32 ( buf + 4 + i * 4 ) ;\n if ( offs [ i ] >= buf_size || ( i && offs [ i ] <= offs [ i - 1 ] + 1024 ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Fraps: plane %i offset is out of bounds\\n\" , i ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n offs [ planes ] = buf_size ;\n for ( i = 0 ;\n i < planes ;\n i ++ ) {\n av_fast_padded_malloc ( & s -> tmpbuf , & s -> tmpbuf_size , offs [ i + 1 ] - offs [ i ] - 1024 ) ;\n if ( ! s -> tmpbuf ) return AVERROR ( ENOMEM ) ;\n if ( ( ret = fraps2_decode_plane ( s , f -> data [ 0 ] + i + ( f -> linesize [ 0 ] * ( avctx -> height - 1 ) ) , - f -> linesize [ 0 ] , avctx -> width , avctx -> height , buf + offs [ i ] , offs [ i + 1 ] - offs [ i ] , 0 , 3 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error decoding plane %i\\n\" , i ) ;\n return ret ;\n }\n }\n for ( j = 0 ;\n j < avctx -> height ;\n j ++ ) {\n for ( i = 0 ;\n i < avctx -> width ;\n i ++ ) {\n f -> data [ 0 ] [ 0 + i * 3 + j * f -> linesize [ 0 ] ] += f -> data [ 0 ] [ 1 + i * 3 + j * f -> linesize [ 0 ] ] ;\n f -> data [ 0 ] [ 2 + i * 3 + j * f -> linesize [ 0 ] ] += f -> data [ 0 ] [ 1 + i * 3 + j * f -> linesize [ 0 ] ] ;\n }\n }\n break ;\n }\n * frame = * f ;\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 15257, "target": 0, "func": "gboolean proto_field_is_referenced ( proto_tree * tree , int proto_id ) {\n register header_field_info * hfinfo ;\n if ( ! tree ) return FALSE ;\n if ( PTREE_DATA ( tree ) -> visible ) return TRUE ;\n PROTO_REGISTRAR_GET_NTH ( proto_id , hfinfo ) ;\n if ( hfinfo -> ref_type != HF_REF_TYPE_NONE ) return TRUE ;\n if ( hfinfo -> type == FT_PROTOCOL && ! PTREE_DATA ( tree ) -> fake_protocols ) return TRUE ;\n return FALSE ;\n }"}
{"idx": 15258, "target": 0, "func": "xsltLocale xsltNewLocale ( const xmlChar * languageTag ) {\n # ifdef XSLT_LOCALE_XLOCALE xsltLocale locale ;\n char localeName [ XSLTMAX_LANGTAGLEN + 6 ] ;\n const xmlChar * p = languageTag ;\n const char * region = NULL ;\n char * q = localeName ;\n int i , llen ;\n if ( languageTag == NULL ) return ( NULL ) ;\n for ( i = 0 ;\n i < XSLTMAX_ISO639LANGLEN && ISALPHA ( * p ) ;\n ++ i ) * q ++ = TOLOWER ( * p ++ ) ;\n if ( i == 0 ) return ( NULL ) ;\n llen = i ;\n if ( * p ) {\n if ( * p ++ != '-' ) return ( NULL ) ;\n * q ++ = '_' ;\n for ( i = 0 ;\n i < XSLTMAX_ISO3166CNTRYLEN && ISALPHA ( * p ) ;\n ++ i ) * q ++ = TOUPPER ( * p ++ ) ;\n if ( i == 0 || * p ) return ( NULL ) ;\n memcpy ( q , \".utf8\" , 6 ) ;\n locale = newlocale ( LC_COLLATE_MASK , localeName , NULL ) ;\n if ( locale != NULL ) return ( locale ) ;\n q = localeName + llen ;\n }\n memcpy ( q , \".utf8\" , 6 ) ;\n locale = newlocale ( LC_COLLATE_MASK , localeName , NULL ) ;\n if ( locale != NULL ) return ( locale ) ;\n if ( llen != 2 ) return ( NULL ) ;\n region = ( char * ) xsltDefaultRegion ( ( xmlChar * ) localeName ) ;\n if ( region == NULL ) return ( NULL ) ;\n q = localeName + llen ;\n * q ++ = '_' ;\n * q ++ = region [ 0 ] ;\n * q ++ = region [ 1 ] ;\n memcpy ( q , \".utf8\" , 6 ) ;\n locale = newlocale ( LC_COLLATE_MASK , localeName , NULL ) ;\n return ( locale ) ;\n # endif # ifdef XSLT_LOCALE_WINAPI {\n xsltLocale locale = ( xsltLocale ) 0 ;\n xmlChar localeName [ XSLTMAX_LANGTAGLEN + 1 ] ;\n xmlChar * q = localeName ;\n const xmlChar * p = languageTag ;\n int i , llen ;\n const xmlChar * region = NULL ;\n if ( languageTag == NULL ) goto end ;\n xsltEnumSupportedLocales ( ) ;\n for ( i = 0 ;\n i < XSLTMAX_ISO639LANGLEN && ISALPHA ( * p ) ;\n ++ i ) * q ++ = TOLOWER ( * p ++ ) ;\n if ( i == 0 ) goto end ;\n llen = i ;\n * q ++ = '-' ;\n if ( * p ) {\n if ( * p ++ != '-' ) goto end ;\n for ( i = 0 ;\n i < XSLTMAX_ISO3166CNTRYLEN && ISALPHA ( * p ) ;\n ++ i ) * q ++ = TOUPPER ( * p ++ ) ;\n if ( i == 0 || * p ) goto end ;\n * q = '\\0' ;\n locale = xslt_locale_WINAPI ( localeName ) ;\n if ( locale != ( xsltLocale ) 0 ) goto end ;\n }\n region = xsltDefaultRegion ( localeName ) ;\n if ( region == NULL ) goto end ;\n strcpy ( localeName + llen + 1 , region ) ;\n locale = xslt_locale_WINAPI ( localeName ) ;\n end : return ( locale ) ;\n }\n # endif # ifdef XSLT_LOCALE_NONE return ( NULL ) ;\n # endif }"}
{"idx": 15259, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( HttpsEngagementPageLoadMetricsBrowserTest , BackgroundThenForeground_Https ) {\n StartHttpsServer ( false ) ;\n base : : TimeDelta upper_bound = NavigateInBackgroundAndCloseInForegroundWithTiming ( https_test_server_ -> GetURL ( \"/simple.html\" ) ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpEngagementHistogram , 0 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementHistogram , 1 ) ;\n int32_t bucket_min = histogram_tester_ . GetAllSamples ( internal : : kHttpsEngagementHistogram ) [ 0 ] . min ;\n EXPECT_GE ( upper_bound . InMilliseconds ( ) , bucket_min ) ;\n EXPECT_LT ( 0 , bucket_min ) ;\n FakeUserMetricsUpload ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementSessionPercentage , 1 ) ;\n int32_t ratio_bucket = histogram_tester_ . GetAllSamples ( internal : : kHttpsEngagementSessionPercentage ) [ 0 ] . min ;\n EXPECT_EQ ( 100 , ratio_bucket ) ;\n }"}
{"idx": 15260, "target": 0, "func": "static int dissect_h245_H235SecurityCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_H235SecurityCapability , H235SecurityCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 15261, "target": 0, "func": "afs_int32 SPR_ListOwned ( struct rx_call * call , afs_int32 aid , prlist * alist , afs_int32 * lastP ) {\n afs_int32 code ;\n afs_int32 cid = ANONYMOUSID ;\n code = listOwned ( call , aid , alist , lastP , & cid ) ;\n osi_auditU ( call , PTS_LstOwnEvent , code , AUD_ID , aid , AUD_END ) ;\n ViceLog ( 125 , ( \"PTS_ListOwned: code %d cid %d aid %d\\n\" , code , cid , aid ) ) ;\n return code ;\n }"}
{"idx": 15262, "target": 0, "func": "void vp9_iht8x8_add ( TX_TYPE tx_type , const tran_low_t * input , uint8_t * dest , int stride , int eob ) {\n if ( tx_type == DCT_DCT ) {\n vp9_idct8x8_add ( input , dest , stride , eob ) ;\n }\n else {\n vp9_iht8x8_64_add ( input , dest , stride , tx_type ) ;\n }\n }"}
{"idx": 15263, "target": 0, "func": "static int pfkey_spddump ( struct sock * sk , struct sk_buff * skb , const struct sadb_msg * hdr , void * const * ext_hdrs ) {\n struct pfkey_sock * pfk = pfkey_sk ( sk ) ;\n if ( pfk -> dump . dump != NULL ) return - EBUSY ;\n pfk -> dump . msg_version = hdr -> sadb_msg_version ;\n pfk -> dump . msg_portid = hdr -> sadb_msg_pid ;\n pfk -> dump . dump = pfkey_dump_sp ;\n pfk -> dump . done = pfkey_dump_sp_done ;\n xfrm_policy_walk_init ( & pfk -> dump . u . policy , XFRM_POLICY_TYPE_MAIN ) ;\n return pfkey_do_dump ( pfk ) ;\n }"}
{"idx": 15264, "target": 0, "func": "static int dissect_pvfs_heur ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n guint32 magic_nr , mode ;\n guint64 size ;\n if ( tvb_reported_length ( tvb ) < 24 ) {\n return 0 ;\n }\n magic_nr = tvb_get_letohl ( tvb , 0 ) ;\n if ( magic_nr != BMI_MAGIC_NR ) {\n return 0 ;\n }\n mode = tvb_get_letohl ( tvb , 4 ) ;\n switch ( mode ) {\n case TCP_MODE_IMMED : case TCP_MODE_UNEXP : case TCP_MODE_EAGER : case TCP_MODE_REND : break ;\n default : return 0 ;\n }\n size = tvb_get_letohl ( tvb , 20 ) ;\n size <<= 32 ;\n size |= tvb_get_letohl ( tvb , 16 ) ;\n if ( ( size > 1000000 ) || ( size == 0 ) ) {\n return 0 ;\n }\n tcp_dissect_pdus ( tvb , pinfo , tree , pvfs_desegment , 24 , get_pvfs_pdu_len , dissect_pvfs_pdu , data ) ;\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 15265, "target": 0, "func": "static void dump_headers ( AVCodecContext * avctx , FLACStreaminfo * s ) {\n av_log ( avctx , AV_LOG_DEBUG , \" Max Blocksize: %d\\n\" , s -> max_blocksize ) ;\n av_log ( avctx , AV_LOG_DEBUG , \" Max Framesize: %d\\n\" , s -> max_framesize ) ;\n av_log ( avctx , AV_LOG_DEBUG , \" Samplerate: %d\\n\" , s -> samplerate ) ;\n av_log ( avctx , AV_LOG_DEBUG , \" Channels: %d\\n\" , s -> channels ) ;\n av_log ( avctx , AV_LOG_DEBUG , \" Bits: %d\\n\" , s -> bps ) ;\n }"}
{"idx": 15266, "target": 0, "func": "static int rm_read_index ( AVFormatContext * s ) {\n AVIOContext * pb = s -> pb ;\n unsigned int size , n_pkts , str_id , next_off , n , pos , pts ;\n AVStream * st ;\n do {\n if ( avio_rl32 ( pb ) != MKTAG ( 'I' , 'N' , 'D' , 'X' ) ) return - 1 ;\n size = avio_rb32 ( pb ) ;\n if ( size < 20 ) return - 1 ;\n avio_skip ( pb , 2 ) ;\n n_pkts = avio_rb32 ( pb ) ;\n str_id = avio_rb16 ( pb ) ;\n next_off = avio_rb32 ( pb ) ;\n for ( n = 0 ;\n n < s -> nb_streams ;\n n ++ ) if ( s -> streams [ n ] -> id == str_id ) {\n st = s -> streams [ n ] ;\n break ;\n }\n if ( n == s -> nb_streams ) {\n av_log ( s , AV_LOG_ERROR , \"Invalid stream index %d for index at pos %\" PRId64 \"\\n\" , str_id , avio_tell ( pb ) ) ;\n goto skip ;\n }\n else if ( ( avio_size ( pb ) - avio_tell ( pb ) ) / 14 < n_pkts ) {\n av_log ( s , AV_LOG_ERROR , \"Nr. of packets in packet index for stream index %d \" \"exceeds filesize (%\" PRId64 \" at %\" PRId64 \" = %\" PRId64 \")\\n\" , str_id , avio_size ( pb ) , avio_tell ( pb ) , ( avio_size ( pb ) - avio_tell ( pb ) ) / 14 ) ;\n goto skip ;\n }\n for ( n = 0 ;\n n < n_pkts ;\n n ++ ) {\n avio_skip ( pb , 2 ) ;\n pts = avio_rb32 ( pb ) ;\n pos = avio_rb32 ( pb ) ;\n avio_skip ( pb , 4 ) ;\n av_add_index_entry ( st , pos , pts , 0 , 0 , AVINDEX_KEYFRAME ) ;\n }\n skip : if ( next_off && avio_tell ( pb ) < next_off && avio_seek ( pb , next_off , SEEK_SET ) < 0 ) {\n av_log ( s , AV_LOG_ERROR , \"Non-linear index detected, not supported\\n\" ) ;\n return - 1 ;\n }\n }\n while ( next_off ) ;\n return 0 ;\n }"}
{"idx": 15267, "target": 0, "func": "static void config_destroy_func ( void * data ) {\n ConfigData * config = ( ConfigData * ) data ;\n TSfree ( config ) ;\n return ;\n }"}
{"idx": 15268, "target": 0, "func": "static const char * cmd_rule_script ( cmd_parms * cmd , void * _dcfg , const char * p1 , const char * p2 ) {\n # if defined ( WITH_LUA ) const char * filename = resolve_relative_path ( cmd -> pool , cmd -> directive -> filename , p1 ) ;\n return add_rule ( cmd , ( directory_config * ) _dcfg , RULE_TYPE_LUA , filename , p2 , NULL ) ;\n # else ap_log_perror ( APLOG_MARK , APLOG_STARTUP | APLOG_NOERRNO , 0 , cmd -> pool , \"Ignoring SecRuleScript \\\"%s\\\" directive (%s:%d): No Lua scripting support.\" , p1 , cmd -> directive -> filename , cmd -> directive -> line_num ) ;\n return NULL ;\n # endif }"}
{"idx": 15269, "target": 0, "func": "static void ns_parse_answers_v1 ( tvbuff_t * tvb , gint * offset , proto_tree * alljoyn_tree , guint8 answers ) {\n while ( answers -- ) {\n proto_item * alljoyn_answers_ti ;\n proto_tree * alljoyn_answers_tree ;\n gint flags ;\n gint count ;\n alljoyn_answers_ti = proto_tree_add_item ( alljoyn_tree , hf_alljoyn_answer , tvb , * offset , 2 , ENC_NA ) ;\n alljoyn_answers_tree = proto_item_add_subtree ( alljoyn_answers_ti , ett_alljoyn_ns_answers ) ;\n proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_g_flag , tvb , * offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_c_flag , tvb , * offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_r4_flag , tvb , * offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_u4_flag , tvb , * offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_r6_flag , tvb , * offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_u6_flag , tvb , * offset , 1 , ENC_NA ) ;\n flags = tvb_get_guint8 ( tvb , * offset ) ;\n ( * offset ) += 1 ;\n proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_count , tvb , * offset , 1 , ENC_NA ) ;\n count = tvb_get_guint8 ( tvb , * offset ) ;\n ( * offset ) += 1 ;\n proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_transport_mask , tvb , * offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_transport_mask_wfd , tvb , * offset , 2 , ENC_NA ) ;\n proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_transport_mask_ice , tvb , * offset , 2 , ENC_NA ) ;\n proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_transport_mask_lan , tvb , * offset , 2 , ENC_NA ) ;\n proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_transport_mask_wwan , tvb , * offset , 2 , ENC_NA ) ;\n proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_transport_mask_tcp , tvb , * offset , 2 , ENC_NA ) ;\n proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_transport_mask_bluetooth , tvb , * offset , 2 , ENC_NA ) ;\n proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_transport_mask_local , tvb , * offset , 2 , ENC_NA ) ;\n ( * offset ) += 2 ;\n if ( flags & ISAT_R4 ) {\n proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_ipv4 , tvb , * offset , 4 , ENC_BIG_ENDIAN ) ;\n ( * offset ) += 4 ;\n proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_port , tvb , * offset , 2 , ENC_BIG_ENDIAN ) ;\n ( * offset ) += 2 ;\n }\n if ( flags & ISAT_U4 ) {\n proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_ipv4 , tvb , * offset , 4 , ENC_BIG_ENDIAN ) ;\n ( * offset ) += 4 ;\n proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_port , tvb , * offset , 2 , ENC_BIG_ENDIAN ) ;\n ( * offset ) += 2 ;\n }\n if ( flags & ISAT_R6 ) {\n proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_ipv6 , tvb , * offset , 16 , ENC_NA ) ;\n ( * offset ) += 16 ;\n proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_port , tvb , * offset , 2 , ENC_BIG_ENDIAN ) ;\n ( * offset ) += 2 ;\n }\n if ( flags & ISAT_U6 ) {\n proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_ipv6 , tvb , * offset , 16 , ENC_NA ) ;\n ( * offset ) += 16 ;\n proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_port , tvb , * offset , 2 , ENC_BIG_ENDIAN ) ;\n ( * offset ) += 2 ;\n }\n if ( flags & ISAT_G ) {\n proto_item * alljoyn_string_ti ;\n proto_tree * alljoyn_string_tree ;\n gint guid_size ;\n guid_size = tvb_get_guint8 ( tvb , * offset ) ;\n alljoyn_string_ti = proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_isat_guid_string , tvb , * offset , 1 + guid_size , ENC_NA ) ;\n alljoyn_string_tree = proto_item_add_subtree ( alljoyn_string_ti , ett_alljoyn_ns_guid_string ) ;\n proto_tree_add_item ( alljoyn_string_tree , hf_alljoyn_string_size_8bit , tvb , * offset , 1 , ENC_NA ) ;\n ( * offset ) += 1 ;\n proto_tree_add_item ( alljoyn_string_tree , hf_alljoyn_string_data , tvb , * offset , guid_size , ENC_ASCII | ENC_NA ) ;\n ( * offset ) += guid_size ;\n }\n while ( count -- ) {\n proto_item * alljoyn_entry_ti ;\n proto_tree * alljoyn_entry_tree ;\n proto_tree * alljoyn_bus_name_ti ;\n proto_tree * alljoyn_bus_name_tree ;\n gint bus_name_size = tvb_get_guint8 ( tvb , * offset ) ;\n alljoyn_entry_ti = proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_isat_entry , tvb , * offset , 1 + bus_name_size , ENC_NA ) ;\n alljoyn_entry_tree = proto_item_add_subtree ( alljoyn_entry_ti , ett_alljoyn_isat_entry ) ;\n alljoyn_bus_name_ti = proto_tree_add_item ( alljoyn_entry_tree , hf_alljoyn_string , tvb , * offset , 1 + bus_name_size , ENC_NA ) ;\n alljoyn_bus_name_tree = proto_item_add_subtree ( alljoyn_bus_name_ti , ett_alljoyn_string ) ;\n proto_tree_add_item ( alljoyn_bus_name_tree , hf_alljoyn_string_size_8bit , tvb , * offset , 1 , ENC_NA ) ;\n ( * offset ) += 1 ;\n proto_tree_add_item ( alljoyn_bus_name_tree , hf_alljoyn_string_data , tvb , * offset , bus_name_size , ENC_ASCII | ENC_NA ) ;\n ( * offset ) += bus_name_size ;\n }\n }\n }"}
{"idx": 15270, "target": 0, "func": "void min_heap_shift_down_ ( min_heap_t * s , unsigned hole_index , struct event * e ) {\n unsigned min_child = 2 * ( hole_index + 1 ) ;\n while ( min_child <= s -> n ) {\n min_child -= min_child == s -> n || min_heap_elem_greater ( s -> p [ min_child ] , s -> p [ min_child - 1 ] ) ;\n if ( ! ( min_heap_elem_greater ( e , s -> p [ min_child ] ) ) ) break ;\n ( s -> p [ hole_index ] = s -> p [ min_child ] ) -> min_heap_idx = hole_index ;\n hole_index = min_child ;\n min_child = 2 * ( hole_index + 1 ) ;\n }\n min_heap_shift_up_ ( s , hole_index , e ) ;\n }"}
{"idx": 15271, "target": 0, "func": "static int dissect_CPMFetchValue ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * parent_tree , gboolean in , void * data _U_ ) {\n gint offset = 16 ;\n proto_item * item ;\n proto_tree * tree , * pad_tree ;\n col_append_str ( pinfo -> cinfo , COL_INFO , \"FetchValue\" ) ;\n item = proto_tree_add_item ( parent_tree , hf_mswsp_msg , tvb , offset , - 1 , ENC_NA ) ;\n tree = proto_tree_add_subtree_format ( parent_tree , tvb , offset , 0 , ett_mswsp_msg , & item , \"FetchValue%s\" , in ? \"In\" : \"Out\" ) ;\n pad_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_mswsp_pad , NULL , \"Padding\" ) ;\n if ( in ) {\n struct CFullPropSpec prop ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmfetchvalue_wid , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmfetchvalue_cbsofar , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmfetchvalue_cbpropspec , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmfetchvalue_cbchunk , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n offset = parse_CFullPropSpec ( tvb , offset , tree , pad_tree , & prop , \"PropSpec\" ) ;\n parse_padding ( tvb , offset , 4 , pad_tree , \"_padding\" ) ;\n }\n else {\n guint32 cbValue = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmfetchvalue_cbvalue , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmfetchvalue_fmoreexists , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmfetchvalue_fvalueexists , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmfetchvalue_vvalue , tvb , offset , cbValue , ENC_NA ) ;\n }\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 15272, "target": 0, "func": "static void build_nmv_component_cost_table ( int * mvcost , const nmv_component * const mvcomp , int usehp ) {\n int i , v ;\n int sign_cost [ 2 ] , class_cost [ MV_CLASSES ] , class0_cost [ CLASS0_SIZE ] ;\n int bits_cost [ MV_OFFSET_BITS ] [ 2 ] ;\n int class0_fp_cost [ CLASS0_SIZE ] [ MV_FP_SIZE ] , fp_cost [ MV_FP_SIZE ] ;\n int class0_hp_cost [ 2 ] , hp_cost [ 2 ] ;\n sign_cost [ 0 ] = vp9_cost_zero ( mvcomp -> sign ) ;\n sign_cost [ 1 ] = vp9_cost_one ( mvcomp -> sign ) ;\n vp9_cost_tokens ( class_cost , mvcomp -> classes , vp9_mv_class_tree ) ;\n vp9_cost_tokens ( class0_cost , mvcomp -> class0 , vp9_mv_class0_tree ) ;\n for ( i = 0 ;\n i < MV_OFFSET_BITS ;\n ++ i ) {\n bits_cost [ i ] [ 0 ] = vp9_cost_zero ( mvcomp -> bits [ i ] ) ;\n bits_cost [ i ] [ 1 ] = vp9_cost_one ( mvcomp -> bits [ i ] ) ;\n }\n for ( i = 0 ;\n i < CLASS0_SIZE ;\n ++ i ) vp9_cost_tokens ( class0_fp_cost [ i ] , mvcomp -> class0_fp [ i ] , vp9_mv_fp_tree ) ;\n vp9_cost_tokens ( fp_cost , mvcomp -> fp , vp9_mv_fp_tree ) ;\n if ( usehp ) {\n class0_hp_cost [ 0 ] = vp9_cost_zero ( mvcomp -> class0_hp ) ;\n class0_hp_cost [ 1 ] = vp9_cost_one ( mvcomp -> class0_hp ) ;\n hp_cost [ 0 ] = vp9_cost_zero ( mvcomp -> hp ) ;\n hp_cost [ 1 ] = vp9_cost_one ( mvcomp -> hp ) ;\n }\n mvcost [ 0 ] = 0 ;\n for ( v = 1 ;\n v <= MV_MAX ;\n ++ v ) {\n int z , c , o , d , e , f , cost = 0 ;\n z = v - 1 ;\n c = vp9_get_mv_class ( z , & o ) ;\n cost += class_cost [ c ] ;\n d = ( o >> 3 ) ;\n f = ( o >> 1 ) & 3 ;\n e = ( o & 1 ) ;\n if ( c == MV_CLASS_0 ) {\n cost += class0_cost [ d ] ;\n }\n else {\n int i , b ;\n b = c + CLASS0_BITS - 1 ;\n for ( i = 0 ;\n i < b ;\n ++ i ) cost += bits_cost [ i ] [ ( ( d >> i ) & 1 ) ] ;\n }\n if ( c == MV_CLASS_0 ) {\n cost += class0_fp_cost [ d ] [ f ] ;\n }\n else {\n cost += fp_cost [ f ] ;\n }\n if ( usehp ) {\n if ( c == MV_CLASS_0 ) {\n cost += class0_hp_cost [ e ] ;\n }\n else {\n cost += hp_cost [ e ] ;\n }\n }\n mvcost [ v ] = cost + sign_cost [ 0 ] ;\n mvcost [ - v ] = cost + sign_cost [ 1 ] ;\n }\n }"}
{"idx": 15273, "target": 0, "func": "static void cid_init_loader ( CID_Loader * loader , CID_Face face ) {\n FT_UNUSED ( face ) ;\n FT_MEM_ZERO ( loader , sizeof ( * loader ) ) ;\n }"}
{"idx": 15274, "target": 1, "func": "static void sig_message_join ( SERVER_REC * server , const char * channel , const char * nick , const char * address ) {\n CHANNEL_REC * chanrec ;\n chanrec = channel_find ( server , channel ) ;\n if ( chanrec != NULL ) CHANNEL_LAST_MSG_ADD ( chanrec , nick , FALSE ) ;\n }"}
{"idx": 15275, "target": 0, "func": "int upx_inflate2e ( const char * src , uint32_t ssize , char * dst , uint32_t * dsize , uint32_t upx0 , uint32_t upx1 , uint32_t ep ) {\n int32_t backbytes , unp_offset = - 1 ;\n uint32_t backsize , myebx = 0 , scur = 0 , dcur = 0 , i , magic [ ] = {\n 0x128 , 0x130 , 0 }\n ;\n int oob ;\n for ( ;\n ;\n ) {\n while ( ( oob = doubleebx ( src , & myebx , & scur , ssize ) ) ) {\n if ( oob == - 1 ) return - 1 ;\n if ( scur >= ssize || dcur >= * dsize ) return - 1 ;\n dst [ dcur ++ ] = src [ scur ++ ] ;\n }\n backbytes = 1 ;\n for ( ;\n ;\n ) {\n if ( ( oob = doubleebx ( src , & myebx , & scur , ssize ) ) == - 1 ) return - 1 ;\n backbytes = backbytes * 2 + oob ;\n if ( ( oob = doubleebx ( src , & myebx , & scur , ssize ) ) == - 1 ) return - 1 ;\n if ( oob ) break ;\n backbytes -- ;\n if ( ( oob = doubleebx ( src , & myebx , & scur , ssize ) ) == - 1 ) return - 1 ;\n backbytes = backbytes * 2 + oob ;\n }\n backbytes -= 3 ;\n if ( backbytes >= 0 ) {\n if ( scur >= ssize ) return - 1 ;\n backbytes <<= 8 ;\n backbytes += ( unsigned char ) ( src [ scur ++ ] ) ;\n backbytes ^= 0xffffffff ;\n if ( ! backbytes ) break ;\n backsize = backbytes & 1 ;\n CLI_SAR ( backbytes , 1 ) ;\n unp_offset = backbytes ;\n }\n else {\n if ( ( backsize = ( uint32_t ) doubleebx ( src , & myebx , & scur , ssize ) ) == 0xffffffff ) return - 1 ;\n }\n if ( backsize ) {\n if ( ( backsize = ( uint32_t ) doubleebx ( src , & myebx , & scur , ssize ) ) == 0xffffffff ) return - 1 ;\n }\n else {\n backsize = 1 ;\n if ( ( oob = doubleebx ( src , & myebx , & scur , ssize ) ) == - 1 ) return - 1 ;\n if ( oob ) {\n if ( ( oob = doubleebx ( src , & myebx , & scur , ssize ) ) == - 1 ) return - 1 ;\n backsize = 2 + oob ;\n }\n else {\n do {\n if ( ( oob = doubleebx ( src , & myebx , & scur , ssize ) ) == - 1 ) return - 1 ;\n backsize = backsize * 2 + oob ;\n }\n while ( ( oob = doubleebx ( src , & myebx , & scur , ssize ) ) == 0 ) ;\n if ( oob == - 1 ) return - 1 ;\n backsize += 2 ;\n }\n }\n if ( ( uint32_t ) unp_offset < 0xfffffb00 ) backsize ++ ;\n backsize += 2 ;\n if ( ! CLI_ISCONTAINED ( dst , * dsize , dst + dcur + unp_offset , backsize ) || ! CLI_ISCONTAINED ( dst , * dsize , dst + dcur , backsize ) || unp_offset >= 0 ) return - 1 ;\n for ( i = 0 ;\n i < backsize ;\n i ++ ) dst [ dcur + i ] = dst [ dcur + unp_offset + i ] ;\n dcur += backsize ;\n }\n return pefromupx ( src , ssize , dst , dsize , ep , upx0 , upx1 , magic , dcur ) ;\n }"}
{"idx": 15276, "target": 0, "func": "SPL_METHOD ( SplFileInfo , func_name ) \\ {\n \\ spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n \\ zend_error_handling error_handling ;\n \\ if ( zend_parse_parameters_none ( ) == FAILURE ) {\n \\ return ;\n \\ }\n \\ \\ zend_replace_error_handling ( EH_THROW , spl_ce_RuntimeException , & error_handling TSRMLS_CC ) ;\n \\ spl_filesystem_object_get_file_name ( intern TSRMLS_CC ) ;\n \\ php_stat ( intern -> file_name , intern -> file_name_len , func_num , return_value TSRMLS_CC ) ;\n \\ zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n \\ }\n FileInfoFunction ( getPerms , FS_PERMS ) FileInfoFunction ( getInode , FS_INODE ) FileInfoFunction ( getSize , FS_SIZE ) FileInfoFunction ( getOwner , FS_OWNER ) FileInfoFunction ( getGroup , FS_GROUP ) FileInfoFunction ( getATime , FS_ATIME ) FileInfoFunction ( getMTime , FS_MTIME ) FileInfoFunction ( getCTime , FS_CTIME ) FileInfoFunction ( getType , FS_TYPE )"}
{"idx": 15277, "target": 0, "func": "int proto_item_get_len ( const proto_item * pi ) {\n field_info * fi = PITEM_FINFO ( pi ) ;\n return fi ? fi -> length : - 1 ;\n }"}
{"idx": 15278, "target": 1, "func": "static int sbr_make_f_derived ( AACContext * ac , SpectralBandReplication * sbr ) {\n int k , temp ;\n sbr -> n [ 1 ] = sbr -> n_master - sbr -> spectrum_params . bs_xover_band ;\n sbr -> n [ 0 ] = ( sbr -> n [ 1 ] + 1 ) >> 1 ;\n memcpy ( sbr -> f_tablehigh , & sbr -> f_master [ sbr -> spectrum_params . bs_xover_band ] , ( sbr -> n [ 1 ] + 1 ) * sizeof ( sbr -> f_master [ 0 ] ) ) ;\n sbr -> m [ 1 ] = sbr -> f_tablehigh [ sbr -> n [ 1 ] ] - sbr -> f_tablehigh [ 0 ] ;\n sbr -> kx [ 1 ] = sbr -> f_tablehigh [ 0 ] ;\n if ( sbr -> kx [ 1 ] + sbr -> m [ 1 ] > 64 ) {\n av_log ( ac -> avctx , AV_LOG_ERROR , \"Stop frequency border too high: %d\\n\" , sbr -> kx [ 1 ] + sbr -> m [ 1 ] ) ;\n return - 1 ;\n }\n if ( sbr -> kx [ 1 ] > 32 ) {\n av_log ( ac -> avctx , AV_LOG_ERROR , \"Start frequency border too high: %d\\n\" , sbr -> kx [ 1 ] ) ;\n return - 1 ;\n }\n sbr -> f_tablelow [ 0 ] = sbr -> f_tablehigh [ 0 ] ;\n temp = sbr -> n [ 1 ] & 1 ;\n for ( k = 1 ;\n k <= sbr -> n [ 0 ] ;\n k ++ ) sbr -> f_tablelow [ k ] = sbr -> f_tablehigh [ 2 * k - temp ] ;\n sbr -> n_q = FFMAX ( 1 , lrintf ( sbr -> spectrum_params . bs_noise_bands * log2f ( sbr -> k [ 2 ] / ( float ) sbr -> kx [ 1 ] ) ) ) ;\n if ( sbr -> n_q > 5 ) {\n av_log ( ac -> avctx , AV_LOG_ERROR , \"Too many noise floor scale factors: %d\\n\" , sbr -> n_q ) ;\n return - 1 ;\n }\n sbr -> f_tablenoise [ 0 ] = sbr -> f_tablelow [ 0 ] ;\n temp = 0 ;\n for ( k = 1 ;\n k <= sbr -> n_q ;\n k ++ ) {\n temp += ( sbr -> n [ 0 ] - temp ) / ( sbr -> n_q + 1 - k ) ;\n sbr -> f_tablenoise [ k ] = sbr -> f_tablelow [ temp ] ;\n }\n if ( sbr_hf_calc_npatches ( ac , sbr ) < 0 ) return - 1 ;\n sbr_make_f_tablelim ( sbr ) ;\n sbr -> data [ 0 ] . f_indexnoise = 0 ;\n sbr -> data [ 1 ] . f_indexnoise = 0 ;\n return 0 ;\n }"}
{"idx": 15279, "target": 0, "func": "static CURLcode http_perhapsrewind ( struct connectdata * conn ) {\n struct Curl_easy * data = conn -> data ;\n struct HTTP * http = data -> req . protop ;\n curl_off_t bytessent ;\n curl_off_t expectsend = - 1 ;\n if ( ! http ) return CURLE_OK ;\n switch ( data -> set . httpreq ) {\n case HTTPREQ_GET : case HTTPREQ_HEAD : return CURLE_OK ;\n default : break ;\n }\n bytessent = http -> writebytecount ;\n if ( conn -> bits . authneg ) {\n expectsend = 0 ;\n }\n else if ( ! conn -> bits . protoconnstart ) {\n expectsend = 0 ;\n }\n else {\n switch ( data -> set . httpreq ) {\n case HTTPREQ_POST : if ( data -> state . infilesize != - 1 ) expectsend = data -> state . infilesize ;\n else if ( data -> set . postfields ) expectsend = ( curl_off_t ) strlen ( data -> set . postfields ) ;\n break ;\n case HTTPREQ_PUT : if ( data -> state . infilesize != - 1 ) expectsend = data -> state . infilesize ;\n break ;\n case HTTPREQ_POST_FORM : expectsend = http -> postsize ;\n break ;\n default : break ;\n }\n }\n conn -> bits . rewindaftersend = FALSE ;\n if ( ( expectsend == - 1 ) || ( expectsend > bytessent ) ) {\n # if defined ( USE_NTLM ) if ( ( data -> state . authproxy . picked == CURLAUTH_NTLM ) || ( data -> state . authhost . picked == CURLAUTH_NTLM ) || ( data -> state . authproxy . picked == CURLAUTH_NTLM_WB ) || ( data -> state . authhost . picked == CURLAUTH_NTLM_WB ) ) {\n if ( ( ( expectsend - bytessent ) < 2000 ) || ( conn -> ntlm . state != NTLMSTATE_NONE ) || ( conn -> proxyntlm . state != NTLMSTATE_NONE ) ) {\n if ( ! conn -> bits . authneg ) {\n conn -> bits . rewindaftersend = TRUE ;\n infof ( data , \"Rewind stream after send\\n\" ) ;\n }\n return CURLE_OK ;\n }\n if ( conn -> bits . close ) return CURLE_OK ;\n infof ( data , \"NTLM send, close instead of sending %\" CURL_FORMAT_CURL_OFF_T \" bytes\\n\" , ( curl_off_t ) ( expectsend - bytessent ) ) ;\n }\n # endif streamclose ( conn , \"Mid-auth HTTP and much data left to send\" ) ;\n data -> req . size = 0 ;\n }\n if ( bytessent ) return Curl_readrewind ( conn ) ;\n return CURLE_OK ;\n }"}
{"idx": 15280, "target": 0, "func": "TIFF * TIFFOpen ( const char * name , const char * mode ) {\n static const char module [ ] = \"TIFFOpen\" ;\n int m , fd ;\n m = _TIFFgetMode ( mode , module ) ;\n if ( m == - 1 ) return ( ( TIFF * ) 0 ) ;\n if ( m & O_TRUNC ) {\n fd = creat ( ( char * ) name , 0666 , \"alq = 128\" , \"deq = 64\" , \"mbc = 32\" , \"fop = tef\" ) ;\n }\n else if ( m & O_RDWR ) {\n fd = open ( name , m , 0666 , \"deq = 64\" , \"mbc = 32\" , \"fop = tef\" , \"ctx = stm\" ) ;\n }\n else fd = open ( name , m , 0666 , \"mbc = 32\" , \"ctx = stm\" ) ;\n if ( fd < 0 ) {\n TIFFErrorExt ( 0 , module , \"%s: Cannot open\" , name ) ;\n return ( ( TIFF * ) 0 ) ;\n }\n return ( TIFFFdOpen ( fd , name , mode ) ) ;\n }"}
{"idx": 15281, "target": 0, "func": "guint16 dissect_description_of_velocity ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n proto_item * velocity_item ;\n guint32 curr_offset ;\n guint8 velocity_type , uncertainty_speed = 0 ;\n curr_offset = offset ;\n velocity_type = tvb_get_guint8 ( tvb , curr_offset ) ;\n proto_tree_add_item ( tree , hf_gsm_a_velocity_type , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n switch ( velocity_type ) {\n case 0 : proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( curr_offset << 3 ) + 4 , 3 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_bearing , tvb , ( curr_offset << 3 ) + 7 , 9 , ENC_BIG_ENDIAN ) ;\n curr_offset += 2 ;\n velocity_item = proto_tree_add_item ( tree , hf_gsm_a_horizontal_speed , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( velocity_item , \" km/h\" ) ;\n curr_offset += 2 ;\n break ;\n case 1 : proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( curr_offset << 3 ) + 4 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_d , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_bearing , tvb , ( curr_offset << 3 ) + 7 , 9 , ENC_BIG_ENDIAN ) ;\n curr_offset += 2 ;\n velocity_item = proto_tree_add_item ( tree , hf_gsm_a_horizontal_speed , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( velocity_item , \" km/h\" ) ;\n curr_offset += 2 ;\n velocity_item = proto_tree_add_item ( tree , hf_gsm_a_vertical_speed , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( velocity_item , \" km/h\" ) ;\n curr_offset ++ ;\n break ;\n case 2 : proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( curr_offset << 3 ) + 4 , 3 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_bearing , tvb , ( curr_offset << 3 ) + 7 , 9 , ENC_BIG_ENDIAN ) ;\n curr_offset += 2 ;\n velocity_item = proto_tree_add_item ( tree , hf_gsm_a_horizontal_speed , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( velocity_item , \" km/h\" ) ;\n curr_offset += 2 ;\n uncertainty_speed = tvb_get_guint8 ( tvb , curr_offset ) ;\n velocity_item = proto_tree_add_item ( tree , hf_gsm_a_uncertainty_speed , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n if ( uncertainty_speed == 255 ) {\n proto_item_append_text ( velocity_item , \" not specified\" ) ;\n }\n else {\n proto_item_append_text ( velocity_item , \" km/h\" ) ;\n }\n offset ++ ;\n break ;\n case 3 : proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( curr_offset << 3 ) + 4 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_d , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_bearing , tvb , ( curr_offset << 3 ) + 7 , 9 , ENC_BIG_ENDIAN ) ;\n curr_offset += 2 ;\n velocity_item = proto_tree_add_item ( tree , hf_gsm_a_horizontal_speed , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( velocity_item , \" km/h\" ) ;\n curr_offset += 2 ;\n velocity_item = proto_tree_add_item ( tree , hf_gsm_a_vertical_speed , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( velocity_item , \" km/h\" ) ;\n curr_offset ++ ;\n uncertainty_speed = tvb_get_guint8 ( tvb , curr_offset ) ;\n velocity_item = proto_tree_add_item ( tree , hf_gsm_a_h_uncertainty_speed , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n if ( uncertainty_speed == 255 ) {\n proto_item_append_text ( velocity_item , \" not specified\" ) ;\n }\n else {\n proto_item_append_text ( velocity_item , \" km/h\" ) ;\n }\n offset ++ ;\n uncertainty_speed = tvb_get_guint8 ( tvb , curr_offset ) ;\n velocity_item = proto_tree_add_item ( tree , hf_gsm_a_v_uncertainty_speed , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n if ( uncertainty_speed == 255 ) {\n proto_item_append_text ( velocity_item , \" not specified\" ) ;\n }\n else {\n proto_item_append_text ( velocity_item , \" km/h\" ) ;\n }\n offset ++ ;\n break ;\n default : break ;\n }\n return ( curr_offset - offset ) ;\n }"}
{"idx": 15282, "target": 0, "func": "extern int name ( int ) __THROW __exctype ( isalnum ) ;\n __exctype ( isalpha ) ;\n __exctype ( iscntrl ) ;\n __exctype ( isdigit ) ;\n __exctype ( islower ) ;\n __exctype ( isgraph ) ;\n __exctype ( isprint ) ;\n __exctype ( ispunct ) ;\n __exctype ( isspace )"}
{"idx": 15283, "target": 0, "func": "TEST ( BuildTime , InThePast ) {\n EXPECT_TRUE ( base : : GetBuildTime ( ) < base : : Time : : Now ( ) ) ;\n EXPECT_TRUE ( base : : GetBuildTime ( ) < base : : Time : : NowFromSystemTime ( ) ) ;\n }"}
{"idx": 15284, "target": 0, "func": "void srtp_set_user_data ( srtp_t ctx , void * data ) {\n ctx -> user_data = data ;\n }"}
{"idx": 15285, "target": 0, "func": "static inline gboolean validate_proto_tree_add_bytes_ftype ( const enum ftenum type ) {\n return ( type == FT_BYTES || type == FT_UINT_BYTES || type == FT_OID || type == FT_REL_OID || type == FT_SYSTEM_ID ) ;\n }"}
{"idx": 15286, "target": 0, "func": "static inline void SetPixelMetacontentExtent ( Image * image , const size_t extent ) {\n image -> metacontent_extent = extent ;\n }"}
{"idx": 15287, "target": 0, "func": "static inline my_bool general_log_or_slow_log_tables ( const char * db , const char * table ) {\n return ( ! my_strcasecmp ( charset_info , db , \"mysql\" ) ) && ( ! my_strcasecmp ( charset_info , table , \"general_log\" ) || ! my_strcasecmp ( charset_info , table , \"slow_log\" ) ) ;\n }"}
{"idx": 15288, "target": 0, "func": "static int dissect_h245_T_rfc_number ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 32768U , & rfc_number , TRUE ) ;\n return offset ;\n }"}
{"idx": 15289, "target": 0, "func": "int fz_colorspace_is_bgr ( fz_context * ctx , const fz_colorspace * cs ) {\n return cs && cs -> type == FZ_COLORSPACE_BGR ;\n }"}
{"idx": 15290, "target": 0, "func": "static inline int pfkey_sec_ctx_len ( const struct sadb_x_sec_ctx * sec_ctx ) {\n return DIV_ROUND_UP ( sizeof ( struct sadb_x_sec_ctx ) + sec_ctx -> sadb_x_ctx_len , sizeof ( uint64_t ) ) ;\n }"}
{"idx": 15291, "target": 0, "func": "static unsigned decode_skip_count ( GetBitContext * gb ) {\n unsigned value ;\n if ( ! can_safely_read ( gb , 1 ) ) return - 1 ;\n value = get_bits1 ( gb ) ;\n if ( ! value ) return value ;\n value += get_bits ( gb , 3 ) ;\n if ( value != ( 1 + ( ( 1 << 3 ) - 1 ) ) ) return value ;\n value += get_bits ( gb , 7 ) ;\n if ( value != ( 1 + ( ( 1 << 3 ) - 1 ) ) + ( ( 1 << 7 ) - 1 ) ) return value ;\n return value + get_bits ( gb , 12 ) ;\n }"}
{"idx": 15292, "target": 0, "func": "static void virtio_s390_notify ( void * opaque , uint16_t vector ) {\n VirtIOS390Device * dev = ( VirtIOS390Device * ) opaque ;\n uint64_t token = s390_virtio_device_vq_token ( dev , vector ) ;\n kvm_s390_virtio_irq ( s390_cpu_addr2state ( 0 ) , 0 , token ) ;\n }"}
{"idx": 15293, "target": 0, "func": "void vp8_encode_inter16x16 ( MACROBLOCK * x ) {\n vp8_build_inter_predictors_mb ( & x -> e_mbd ) ;\n vp8_subtract_mb ( x ) ;\n transform_mb ( x ) ;\n vp8_quantize_mb ( x ) ;\n if ( x -> optimize ) optimize_mb ( x ) ;\n }"}
{"idx": 15294, "target": 0, "func": "IN_PROC_BROWSER_TEST_P ( BrowserCloseManagerBrowserTest , MAYBE_TestSessionRestore ) {\n EXPECT_EQ ( 2 , browser ( ) -> tab_strip_model ( ) -> count ( ) ) ;\n EXPECT_EQ ( GURL ( chrome : : kChromeUIVersionURL ) , browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 0 ) -> GetURL ( ) ) ;\n EXPECT_EQ ( GURL ( \"about:blank\" ) , browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 1 ) -> GetURL ( ) ) ;\n }"}
{"idx": 15295, "target": 0, "func": "static guint8 dissect_zcl_ota_field_ctrl_field ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n guint8 field ;\n static const int * field_ctrl [ ] = {\n & hf_zbee_zcl_ota_field_ctrl_hw_ver_present , & hf_zbee_zcl_ota_field_ctrl_reserved , NULL }\n ;\n field = tvb_get_guint8 ( tvb , * offset ) ;\n proto_tree_add_bitmask ( tree , tvb , * offset , hf_zbee_zcl_ota_field_ctrl , ett_zbee_zcl_ota_field_ctrl , field_ctrl , ENC_BIG_ENDIAN ) ;\n * offset += 1 ;\n return field ;\n }"}
{"idx": 15296, "target": 1, "func": "static int search_filter_level ( const YV12_BUFFER_CONFIG * sd , VP9_COMP * cpi , int partial_frame ) {\n const VP9_COMMON * const cm = & cpi -> common ;\n const struct loopfilter * const lf = & cm -> lf ;\n const int min_filter_level = 0 ;\n const int max_filter_level = get_max_filter_level ( cpi ) ;\n int filt_direction = 0 ;\n int best_err , filt_best ;\n int filt_mid = clamp ( lf -> filter_level , min_filter_level , max_filter_level ) ;\n int filter_step = filt_mid < 16 ? 4 : filt_mid / 4 ;\n int ss_err [ MAX_LOOP_FILTER + 1 ] ;\n vpx_memset ( ss_err , 0xFF , sizeof ( ss_err ) ) ;\n vpx_yv12_copy_y ( cm -> frame_to_show , & cpi -> last_frame_uf ) ;\n best_err = try_filter_frame ( sd , cpi , filt_mid , partial_frame ) ;\n filt_best = filt_mid ;\n ss_err [ filt_mid ] = best_err ;\n while ( filter_step > 0 ) {\n const int filt_high = MIN ( filt_mid + filter_step , max_filter_level ) ;\n const int filt_low = MAX ( filt_mid - filter_step , min_filter_level ) ;\n int filt_err ;\n int bias = ( best_err >> ( 15 - ( filt_mid / 8 ) ) ) * filter_step ;\n if ( ( cpi -> oxcf . pass == 2 ) && ( cpi -> twopass . section_intra_rating < 20 ) ) bias = ( bias * cpi -> twopass . section_intra_rating ) / 20 ;\n if ( cm -> tx_mode != ONLY_4X4 ) bias >>= 1 ;\n if ( filt_direction <= 0 && filt_low != filt_mid ) {\n if ( ss_err [ filt_low ] < 0 ) {\n filt_err = try_filter_frame ( sd , cpi , filt_low , partial_frame ) ;\n ss_err [ filt_low ] = filt_err ;\n }\n else {\n filt_err = ss_err [ filt_low ] ;\n }\n if ( ( filt_err - bias ) < best_err ) {\n if ( filt_err < best_err ) best_err = filt_err ;\n filt_best = filt_low ;\n }\n }\n if ( filt_direction >= 0 && filt_high != filt_mid ) {\n if ( ss_err [ filt_high ] < 0 ) {\n filt_err = try_filter_frame ( sd , cpi , filt_high , partial_frame ) ;\n ss_err [ filt_high ] = filt_err ;\n }\n else {\n filt_err = ss_err [ filt_high ] ;\n }\n if ( filt_err < ( best_err - bias ) ) {\n best_err = filt_err ;\n filt_best = filt_high ;\n }\n }\n if ( filt_best == filt_mid ) {\n filter_step /= 2 ;\n filt_direction = 0 ;\n }\n else {\n filt_direction = ( filt_best < filt_mid ) ? - 1 : 1 ;\n filt_mid = filt_best ;\n }\n }\n return filt_best ;\n }"}
{"idx": 15297, "target": 0, "func": "int vp9_receive_compressed_data ( VP9Decoder * pbi , size_t size , const uint8_t * * psource ) {\n VP9_COMMON * const cm = & pbi -> common ;\n const uint8_t * source = * psource ;\n int retcode = 0 ;\n cm -> error . error_code = VPX_CODEC_OK ;\n if ( size == 0 ) {\n if ( cm -> frame_refs [ 0 ] . idx != INT_MAX ) cm -> frame_refs [ 0 ] . buf -> corrupted = 1 ;\n }\n if ( cm -> new_fb_idx >= 0 && cm -> frame_bufs [ cm -> new_fb_idx ] . ref_count == 0 ) cm -> release_fb_cb ( cm -> cb_priv , & cm -> frame_bufs [ cm -> new_fb_idx ] . raw_frame_buffer ) ;\n cm -> new_fb_idx = get_free_fb ( cm ) ;\n if ( setjmp ( cm -> error . jmp ) ) {\n pbi -> need_resync = 1 ;\n cm -> error . setjmp = 0 ;\n vp9_clear_system_state ( ) ;\n if ( cm -> frame_refs [ 0 ] . idx != INT_MAX && cm -> frame_refs [ 0 ] . buf != NULL ) cm -> frame_refs [ 0 ] . buf -> corrupted = 1 ;\n if ( cm -> new_fb_idx > 0 && cm -> frame_bufs [ cm -> new_fb_idx ] . ref_count > 0 ) cm -> frame_bufs [ cm -> new_fb_idx ] . ref_count -- ;\n return - 1 ;\n }\n cm -> error . setjmp = 1 ;\n vp9_decode_frame ( pbi , source , source + size , psource ) ;\n swap_frame_buffers ( pbi ) ;\n vp9_clear_system_state ( ) ;\n cm -> last_width = cm -> width ;\n cm -> last_height = cm -> height ;\n if ( ! cm -> show_existing_frame ) cm -> last_show_frame = cm -> show_frame ;\n if ( cm -> show_frame ) {\n if ( ! cm -> show_existing_frame ) vp9_swap_mi_and_prev_mi ( cm ) ;\n cm -> current_video_frame ++ ;\n }\n pbi -> ready_for_new_data = 0 ;\n cm -> error . setjmp = 0 ;\n return retcode ;\n }"}
{"idx": 15298, "target": 0, "func": "void dtls1_get_message_header ( unsigned char * data , struct hm_header_st * msg_hdr ) {\n memset ( msg_hdr , 0 , sizeof ( * msg_hdr ) ) ;\n msg_hdr -> type = * ( data ++ ) ;\n n2l3 ( data , msg_hdr -> msg_len ) ;\n n2s ( data , msg_hdr -> seq ) ;\n n2l3 ( data , msg_hdr -> frag_off ) ;\n n2l3 ( data , msg_hdr -> frag_len ) ;\n }"}
{"idx": 15299, "target": 0, "func": "static int config_module_parser_apply_changes ( struct config_module_parser * dest , const struct config_filter_parser * src , pool_t pool , const char * * error_r ) {\n const char * conflict_key ;\n unsigned int i ;\n for ( i = 0 ;\n dest [ i ] . root != NULL ;\n i ++ ) {\n if ( settings_parser_apply_changes ( dest [ i ] . parser , src -> parsers [ i ] . parser , pool , error_r == NULL ? NULL : & conflict_key ) < 0 ) {\n i_assert ( error_r != NULL ) ;\n * error_r = t_strdup_printf ( \"Conflict in setting %s \" \"found from filter at %s\" , conflict_key , src -> file_and_line ) ;\n return - 1 ;\n }\n }\n return 0 ;\n }"}
{"idx": 15300, "target": 1, "func": "void vp9_fht4x4_c ( const int16_t * input , int16_t * output , int stride , int tx_type ) {\n if ( tx_type == DCT_DCT ) {\n vp9_fdct4x4_c ( input , output , stride ) ;\n }\n else {\n int16_t out [ 4 * 4 ] ;\n int16_t * outptr = & out [ 0 ] ;\n int i , j ;\n int16_t temp_in [ 4 ] , temp_out [ 4 ] ;\n const transform_2d ht = FHT_4 [ tx_type ] ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) {\n for ( j = 0 ;\n j < 4 ;\n ++ j ) temp_in [ j ] = input [ j * stride + i ] * 16 ;\n if ( i == 0 && temp_in [ 0 ] ) temp_in [ 0 ] += 1 ;\n ht . cols ( temp_in , temp_out ) ;\n for ( j = 0 ;\n j < 4 ;\n ++ j ) outptr [ j * 4 + i ] = temp_out [ j ] ;\n }\n for ( i = 0 ;\n i < 4 ;\n ++ i ) {\n for ( j = 0 ;\n j < 4 ;\n ++ j ) temp_in [ j ] = out [ j + i * 4 ] ;\n ht . rows ( temp_in , temp_out ) ;\n for ( j = 0 ;\n j < 4 ;\n ++ j ) output [ j + i * 4 ] = ( temp_out [ j ] + 1 ) >> 2 ;\n }\n }\n }"}
{"idx": 15301, "target": 0, "func": "void xsltFreeDocuments ( xsltTransformContextPtr ctxt ) {\n xsltDocumentPtr doc , cur ;\n cur = ctxt -> docList ;\n while ( cur != NULL ) {\n doc = cur ;\n cur = cur -> next ;\n xsltFreeDocumentKeys ( doc ) ;\n if ( ! doc -> main ) xmlFreeDoc ( doc -> doc ) ;\n xmlFree ( doc ) ;\n }\n cur = ctxt -> styleList ;\n while ( cur != NULL ) {\n doc = cur ;\n cur = cur -> next ;\n xsltFreeDocumentKeys ( doc ) ;\n if ( ! doc -> main ) xmlFreeDoc ( doc -> doc ) ;\n xmlFree ( doc ) ;\n }\n }"}
{"idx": 15302, "target": 0, "func": "static int selinux_ismaclabel ( const char * name ) {\n return ( strcmp ( name , XATTR_SELINUX_SUFFIX ) == 0 ) ;\n }"}
{"idx": 15303, "target": 0, "func": "static __inline__ __u64 __fswab64 ( __u64 val ) {\n # if defined ( __arch_swab64 ) return __arch_swab64 ( val ) ;\n # elif defined ( __SWAB_64_THRU_32__ ) __u32 h = val >> 32 ;\n __u32 l = val & ( ( 1ULL << 32 ) - 1 ) ;\n return ( ( ( __u64 ) __fswab32 ( l ) ) << 32 ) | ( ( __u64 ) ( __fswab32 ( h ) ) ) ;\n # else return ___constant_swab64 ( val ) ;\n # endif }"}
{"idx": 15304, "target": 0, "func": "int main ( int argc , char * * argv ) {\n int frame_cnt = 0 ;\n FILE * outfile = NULL ;\n vpx_codec_ctx_t codec ;\n VpxVideoReader * reader = NULL ;\n const VpxVideoInfo * info = NULL ;\n const VpxInterface * decoder = NULL ;\n exec_name = argv [ 0 ] ;\n if ( argc != 3 ) die ( \"Invalid number of arguments.\" ) ;\n reader = vpx_video_reader_open ( argv [ 1 ] ) ;\n if ( ! reader ) die ( \"Failed to open %s for reading.\" , argv [ 1 ] ) ;\n if ( ! ( outfile = fopen ( argv [ 2 ] , \"wb\" ) ) ) die ( \"Failed to open %s for writing.\" , argv [ 2 ] ) ;\n info = vpx_video_reader_get_info ( reader ) ;\n decoder = get_vpx_decoder_by_fourcc ( info -> codec_fourcc ) ;\n if ( ! decoder ) die ( \"Unknown input codec.\" ) ;\n printf ( \"Using %s\\n\" , vpx_codec_iface_name ( decoder -> codec_interface ( ) ) ) ;\n if ( vpx_codec_dec_init ( & codec , decoder -> codec_interface ( ) , NULL , 0 ) ) die_codec ( & codec , \"Failed to initialize decoder\" ) ;\n while ( vpx_video_reader_read_frame ( reader ) ) {\n vpx_codec_iter_t iter = NULL ;\n vpx_image_t * img = NULL ;\n size_t frame_size = 0 ;\n const unsigned char * frame = vpx_video_reader_get_frame ( reader , & frame_size ) ;\n if ( vpx_codec_decode ( & codec , frame , ( unsigned int ) frame_size , NULL , 0 ) ) die_codec ( & codec , \"Failed to decode frame\" ) ;\n while ( ( img = vpx_codec_get_frame ( & codec , & iter ) ) != NULL ) {\n unsigned char digest [ 16 ] ;\n get_image_md5 ( img , digest ) ;\n print_md5 ( outfile , digest ) ;\n fprintf ( outfile , \" img-%dx%d-%04d.i420\\n\" , img -> d_w , img -> d_h , ++ frame_cnt ) ;\n }\n }\n printf ( \"Processed %d frames.\\n\" , frame_cnt ) ;\n if ( vpx_codec_destroy ( & codec ) ) die_codec ( & codec , \"Failed to destroy codec.\" ) ;\n vpx_video_reader_close ( reader ) ;\n fclose ( outfile ) ;\n return EXIT_SUCCESS ;\n }"}
{"idx": 15305, "target": 0, "func": "static void dv_decode_ac ( GetBitContext * gb , BlockInfo * mb , int16_t * block ) {\n int last_index = gb -> size_in_bits ;\n const uint8_t * scan_table = mb -> scan_table ;\n const uint32_t * factor_table = mb -> factor_table ;\n int pos = mb -> pos ;\n int partial_bit_count = mb -> partial_bit_count ;\n int level , run , vlc_len , index ;\n OPEN_READER ( re , gb ) ;\n UPDATE_CACHE ( re , gb ) ;\n if ( partial_bit_count > 0 ) {\n re_cache = re_cache >> partial_bit_count | mb -> partial_bit_buffer ;\n re_index -= partial_bit_count ;\n mb -> partial_bit_count = 0 ;\n }\n for ( ;\n ;\n ) {\n av_dlog ( NULL , \"%2d: bits=%04x index=%d\\n\" , pos , SHOW_UBITS ( re , gb , 16 ) , re_index ) ;\n index = NEG_USR32 ( re_cache , TEX_VLC_BITS ) ;\n vlc_len = ff_dv_rl_vlc [ index ] . len ;\n if ( vlc_len < 0 ) {\n index = NEG_USR32 ( ( unsigned ) re_cache << TEX_VLC_BITS , - vlc_len ) + ff_dv_rl_vlc [ index ] . level ;\n vlc_len = TEX_VLC_BITS - vlc_len ;\n }\n level = ff_dv_rl_vlc [ index ] . level ;\n run = ff_dv_rl_vlc [ index ] . run ;\n if ( re_index + vlc_len > last_index ) {\n mb -> partial_bit_count = last_index - re_index ;\n mb -> partial_bit_buffer = re_cache & ~ ( - 1u >> mb -> partial_bit_count ) ;\n re_index = last_index ;\n break ;\n }\n re_index += vlc_len ;\n av_dlog ( NULL , \"run=%d level=%d\\n\" , run , level ) ;\n pos += run ;\n if ( pos >= 64 ) break ;\n level = ( level * factor_table [ pos ] + ( 1 << ( dv_iweight_bits - 1 ) ) ) >> dv_iweight_bits ;\n block [ scan_table [ pos ] ] = level ;\n UPDATE_CACHE ( re , gb ) ;\n }\n CLOSE_READER ( re , gb ) ;\n mb -> pos = pos ;\n }"}
{"idx": 15306, "target": 0, "func": "void vp9_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint8_t * dst , ptrdiff_t stride , const uint8_t * above , const uint8_t * left ) {\n type ## _predictor ( dst , stride , size , above , left ) ;\n }\n # if CONFIG_VP9_HIGHBITDEPTH # define intra_pred_high_sized ( type , size ) void vp9_high_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint16_t * dst , ptrdiff_t stride , const uint16_t * above , const uint16_t * left , int bd ) {\n high_ ## type ## _predictor ( dst , stride , size , above , left , bd ) ;\n }\n # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) intra_pred_high_sized ( type , 4 ) intra_pred_high_sized ( type , 8 ) intra_pred_high_sized ( type , 16 ) intra_pred_high_sized ( type , 32 ) # else # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) # endif # if CONFIG_VP9_HIGHBITDEPTH static INLINE void high_d207_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) above ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) {\n dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n }\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) {\n dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n }\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n }\n static INLINE void high_d63_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) {\n dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n }\n dst += stride ;\n }\n }\n static INLINE void high_d45_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) {\n dst [ c ] = r + c + 2 < bs * 2 ? ROUND_POWER_OF_TWO ( above [ r + c ] + above [ r + c + 1 ] * 2 + above [ r + c + 2 ] , 2 ) : above [ bs * 2 - 1 ] ;\n }\n dst += stride ;\n }\n }\n static INLINE void high_d117_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] , 1 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 3 ;\n r < bs ;\n ++ r ) dst [ ( r - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ r - 3 ] + left [ r - 2 ] * 2 + left [ r - 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - 2 * stride + c - 1 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_d135_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - stride + c - 1 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_d153_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] , 1 ) ;\n for ( r = 1 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 1 ] + left [ r ] , 1 ) ;\n dst ++ ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] * 2 + above [ c + 1 ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = dst [ - stride + c - 2 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_v_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memcpy ( dst , above , bs * sizeof ( uint16_t ) ) ;\n dst += stride ;\n }\n }\n static INLINE void high_h_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) above ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , left [ r ] , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_tm_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n int ytop_left = above [ - 1 ] ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = clip_pixel_high ( left [ r ] + above [ c ] - ytop_left , bd ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_128_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) above ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , 128 << ( bd - 8 ) , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_left_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) above ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += left [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_top_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) left ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += above [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n const int count = 2 * bs ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) {\n sum += above [ i ] ;\n sum += left [ i ] ;\n }\n expected_dc = ( sum + ( count >> 1 ) ) / count ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n # endif static INLINE void d207_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n intra_pred_allsizes ( d207 ) static INLINE void d63_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d63 ) static INLINE void d45_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r + c + 2 < bs * 2 ? ROUND_POWER_OF_TWO ( above [ r + c ] + above [ r + c + 1 ] * 2 + above [ r + c + 2 ] , 2 ) : above [ bs * 2 - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d45 ) static INLINE void d117_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] , 1 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 3 ;\n r < bs ;\n ++ r ) dst [ ( r - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ r - 3 ] + left [ r - 2 ] * 2 + left [ r - 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - 2 * stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d117 ) static INLINE void d135_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d135 ) static INLINE void d153_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] , 1 ) ;\n for ( r = 1 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 1 ] + left [ r ] , 1 ) ;\n dst ++ ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] * 2 + above [ c + 1 ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = dst [ - stride + c - 2 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d153 )"}
{"idx": 15307, "target": 0, "func": "void mbfl_encoding_detector_delete ( mbfl_encoding_detector * identd ) {\n int i ;\n if ( identd != NULL ) {\n if ( identd -> filter_list != NULL ) {\n i = identd -> filter_list_size ;\n while ( i > 0 ) {\n i -- ;\n mbfl_identify_filter_delete ( identd -> filter_list [ i ] ) ;\n }\n mbfl_free ( ( void * ) identd -> filter_list ) ;\n }\n mbfl_free ( ( void * ) identd ) ;\n }\n }"}
{"idx": 15308, "target": 0, "func": "void setup_logfile ( const char * name ) {\n if ( NULL == syslog_fname && NULL != name ) {\n if ( - 1 == change_logfile ( name , TRUE ) ) msyslog ( LOG_ERR , \"Cannot open log file %s, %m\" , name ) ;\n return ;\n }\n if ( NULL == syslog_fname ) return ;\n if ( - 1 == change_logfile ( syslog_fname , FALSE ) ) msyslog ( LOG_ERR , \"Cannot reopen log file %s, %m\" , syslog_fname ) ;\n }"}
{"idx": 15309, "target": 0, "func": "const char * proto_get_protocol_long_name ( const protocol_t * protocol ) {\n if ( protocol == NULL ) return \"(none)\" ;\n return protocol -> name ;\n }"}
{"idx": 15310, "target": 0, "func": "static void prplcb_roomlist_set_fields ( PurpleRoomlist * list , GList * fields ) {\n gint topic = - 1 ;\n GList * l ;\n guint i ;\n PurpleRoomlistField * field ;\n struct purple_roomlist_data * rld = list -> ui_data ;\n for ( i = 0 , l = fields ;\n l ;\n i ++ , l = l -> next ) {\n field = l -> data ;\n if ( i != 0 && topic < 0 && ! field -> hidden && field -> type == PURPLE_ROOMLIST_FIELD_STRING ) {\n topic = i ;\n }\n if ( ( g_strcasecmp ( field -> name , \"description\" ) == 0 ) || ( g_strcasecmp ( field -> name , \"topic\" ) == 0 ) ) {\n if ( field -> type == PURPLE_ROOMLIST_FIELD_STRING ) {\n rld -> topic = i ;\n }\n }\n }\n if ( rld -> topic < 0 ) {\n rld -> topic = topic ;\n }\n }"}
{"idx": 15311, "target": 0, "func": "static guint16 de_tp_loop_ack ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset = offset ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_channel_coding30 , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_loop_mechanism0E , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_multislot_tch , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset += 1 ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 15312, "target": 0, "func": "int RECORD_LAYER_write_pending ( const RECORD_LAYER * rl ) {\n return ( rl -> numwpipes > 0 ) && SSL3_BUFFER_get_left ( & rl -> wbuf [ rl -> numwpipes - 1 ] ) != 0 ;\n }"}
{"idx": 15313, "target": 1, "func": "void vp9_rc_update_rate_correction_factors ( VP9_COMP * cpi , int damp_var ) {\n const VP9_COMMON * const cm = & cpi -> common ;\n int correction_factor = 100 ;\n double rate_correction_factor = get_rate_correction_factor ( cpi ) ;\n double adjustment_limit ;\n int projected_size_based_on_q = 0 ;\n if ( cpi -> rc . is_src_frame_alt_ref ) return ;\n vp9_clear_system_state ( ) ;\n projected_size_based_on_q = estimate_bits_at_q ( cm -> frame_type , cm -> base_qindex , cm -> MBs , rate_correction_factor ) ;\n if ( projected_size_based_on_q > 0 ) correction_factor = ( 100 * cpi -> rc . projected_frame_size ) / projected_size_based_on_q ;\n switch ( damp_var ) {\n case 0 : adjustment_limit = 0.75 ;\n break ;\n case 1 : adjustment_limit = 0.375 ;\n break ;\n case 2 : default : adjustment_limit = 0.25 ;\n break ;\n }\n if ( correction_factor > 102 ) {\n correction_factor = ( int ) ( 100 + ( ( correction_factor - 100 ) * adjustment_limit ) ) ;\n rate_correction_factor = ( rate_correction_factor * correction_factor ) / 100 ;\n if ( rate_correction_factor > MAX_BPB_FACTOR ) rate_correction_factor = MAX_BPB_FACTOR ;\n }\n else if ( correction_factor < 99 ) {\n correction_factor = ( int ) ( 100 - ( ( 100 - correction_factor ) * adjustment_limit ) ) ;\n rate_correction_factor = ( rate_correction_factor * correction_factor ) / 100 ;\n if ( rate_correction_factor < MIN_BPB_FACTOR ) rate_correction_factor = MIN_BPB_FACTOR ;\n }\n set_rate_correction_factor ( cpi , rate_correction_factor ) ;\n }"}
{"idx": 15314, "target": 0, "func": "static Expr * simplify_function ( Oid funcid , Oid result_type , int32 result_typmod , Oid result_collid , Oid input_collid , List * * args_p , bool funcvariadic , bool process_args , bool allow_non_const , eval_const_expressions_context * context ) {\n List * args = * args_p ;\n HeapTuple func_tuple ;\n Form_pg_proc func_form ;\n Expr * newexpr ;\n func_tuple = SearchSysCache1 ( PROCOID , ObjectIdGetDatum ( funcid ) ) ;\n if ( ! HeapTupleIsValid ( func_tuple ) ) elog ( ERROR , \"cache lookup failed for function %u\" , funcid ) ;\n func_form = ( Form_pg_proc ) GETSTRUCT ( func_tuple ) ;\n if ( process_args ) {\n args = expand_function_arguments ( args , result_type , func_tuple ) ;\n args = ( List * ) expression_tree_mutator ( ( Node * ) args , eval_const_expressions_mutator , ( void * ) context ) ;\n * args_p = args ;\n }\n newexpr = evaluate_function ( funcid , result_type , result_typmod , result_collid , input_collid , args , funcvariadic , func_tuple , context ) ;\n if ( ! newexpr && allow_non_const && OidIsValid ( func_form -> protransform ) ) {\n FuncExpr fexpr ;\n fexpr . xpr . type = T_FuncExpr ;\n fexpr . funcid = funcid ;\n fexpr . funcresulttype = result_type ;\n fexpr . funcretset = func_form -> proretset ;\n fexpr . funcvariadic = funcvariadic ;\n fexpr . funcformat = COERCE_EXPLICIT_CALL ;\n fexpr . funccollid = result_collid ;\n fexpr . inputcollid = input_collid ;\n fexpr . args = args ;\n fexpr . location = - 1 ;\n newexpr = ( Expr * ) DatumGetPointer ( OidFunctionCall1 ( func_form -> protransform , PointerGetDatum ( & fexpr ) ) ) ;\n }\n if ( ! newexpr && allow_non_const ) newexpr = inline_function ( funcid , result_type , result_collid , input_collid , args , funcvariadic , func_tuple , context ) ;\n ReleaseSysCache ( func_tuple ) ;\n return newexpr ;\n }"}
{"idx": 15315, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( UnloadTest , CrossSiteInfiniteUnloadSync ) {\n if ( base : : CommandLine : : ForCurrentProcess ( ) -> HasSwitch ( switches : : kSingleProcess ) ) return ;\n NavigateToDataURL ( INFINITE_UNLOAD_HTML , \"infiniteunload\" ) ;\n NavigateToNolistenersFileTwice ( ) ;\n }"}
{"idx": 15316, "target": 0, "func": "static gboolean gst_asf_demux_get_buffer ( GstBuffer * * p_buf , guint num_bytes_to_read , guint8 * * p_data , guint64 * p_size ) {\n * p_buf = NULL ;\n if ( * p_size < num_bytes_to_read ) return FALSE ;\n * p_buf = gst_buffer_new_and_alloc ( num_bytes_to_read ) ;\n gst_buffer_fill ( * p_buf , 0 , * p_data , num_bytes_to_read ) ;\n * p_data += num_bytes_to_read ;\n * p_size -= num_bytes_to_read ;\n return TRUE ;\n }"}
{"idx": 15317, "target": 0, "func": "static int proc_drop_privileges ( struct usb_dev_state * ps , void __user * arg ) {\n u32 data ;\n if ( copy_from_user ( & data , arg , sizeof ( data ) ) ) return - EFAULT ;\n ps -> interface_allowed_mask &= data ;\n ps -> privileges_dropped = true ;\n return 0 ;\n }"}
{"idx": 15318, "target": 0, "func": "EVP_ENCODE_CTX * EVP_ENCODE_CTX_new ( void ) {\n return OPENSSL_zalloc ( sizeof ( EVP_ENCODE_CTX ) ) ;\n }"}
{"idx": 15319, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( CrossOriginXHR , FileAccessNoHosts ) {\n ASSERT_TRUE ( RunExtensionTest ( \"cross_origin_xhr/file_access_no_hosts\" ) ) << message_ ;\n }"}
{"idx": 15320, "target": 0, "func": "my_bool acl_reload ( THD * thd ) {\n TABLE_LIST tables [ 3 ] ;\n DYNAMIC_ARRAY old_acl_hosts , old_acl_users , old_acl_dbs ;\n MEM_ROOT old_mem ;\n bool old_initialized ;\n my_bool return_val = TRUE ;\n DBUG_ENTER ( \"acl_reload\" ) ;\n if ( thd -> locked_tables ) {\n thd -> lock = thd -> locked_tables ;\n thd -> locked_tables = 0 ;\n close_thread_tables ( thd ) ;\n }\n bzero ( ( char * ) tables , sizeof ( tables ) ) ;\n tables [ 0 ] . alias = tables [ 0 ] . table_name = ( char * ) \"host\" ;\n tables [ 1 ] . alias = tables [ 1 ] . table_name = ( char * ) \"user\" ;\n tables [ 2 ] . alias = tables [ 2 ] . table_name = ( char * ) \"db\" ;\n tables [ 0 ] . db = tables [ 1 ] . db = tables [ 2 ] . db = ( char * ) \"mysql\" ;\n tables [ 0 ] . next_local = tables [ 0 ] . next_global = tables + 1 ;\n tables [ 1 ] . next_local = tables [ 1 ] . next_global = tables + 2 ;\n tables [ 0 ] . lock_type = tables [ 1 ] . lock_type = tables [ 2 ] . lock_type = TL_READ ;\n tables [ 0 ] . skip_temporary = tables [ 1 ] . skip_temporary = tables [ 2 ] . skip_temporary = TRUE ;\n if ( simple_open_n_lock_tables ( thd , tables ) ) {\n if ( thd -> main_da . is_error ( ) ) sql_print_error ( \"Fatal error: Can't open and lock privilege tables: %s\" , thd -> main_da . message ( ) ) ;\n goto end ;\n }\n if ( ( old_initialized = initialized ) ) VOID ( pthread_mutex_lock ( & acl_cache -> lock ) ) ;\n old_acl_hosts = acl_hosts ;\n old_acl_users = acl_users ;\n old_acl_dbs = acl_dbs ;\n old_mem = mem ;\n delete_dynamic ( & acl_wild_hosts ) ;\n hash_free ( & acl_check_hosts ) ;\n if ( ( return_val = acl_load ( thd , tables ) ) ) {\n DBUG_PRINT ( \"error\" , ( \"Reverting to old privileges\" ) ) ;\n acl_free ( ) ;\n acl_hosts = old_acl_hosts ;\n acl_users = old_acl_users ;\n acl_dbs = old_acl_dbs ;\n mem = old_mem ;\n init_check_host ( ) ;\n }\n else {\n free_root ( & old_mem , MYF ( 0 ) ) ;\n delete_dynamic ( & old_acl_hosts ) ;\n delete_dynamic ( & old_acl_users ) ;\n delete_dynamic ( & old_acl_dbs ) ;\n }\n if ( old_initialized ) VOID ( pthread_mutex_unlock ( & acl_cache -> lock ) ) ;\n end : close_thread_tables ( thd ) ;\n DBUG_RETURN ( return_val ) ;\n }"}
{"idx": 15321, "target": 0, "func": "void op_input_types ( Oid opno , Oid * lefttype , Oid * righttype ) {\n HeapTuple tp ;\n Form_pg_operator optup ;\n tp = SearchSysCache1 ( OPEROID , ObjectIdGetDatum ( opno ) ) ;\n if ( ! HeapTupleIsValid ( tp ) ) elog ( ERROR , \"cache lookup failed for operator %u\" , opno ) ;\n optup = ( Form_pg_operator ) GETSTRUCT ( tp ) ;\n * lefttype = optup -> oprleft ;\n * righttype = optup -> oprright ;\n ReleaseSysCache ( tp ) ;\n }"}
{"idx": 15322, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( ClientHintsBrowserTest , ClientHintsLifetimeNotPersistedCookiesBlocked ) {\n scoped_refptr < content_settings : : CookieSettings > cookie_settings_ = CookieSettingsFactory : : GetForProfile ( browser ( ) -> profile ( ) ) ;\n base : : HistogramTester histogram_tester ;\n ContentSettingsForOneType host_settings ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> SetContentSettingDefaultScope ( accept_ch_without_lifetime_url ( ) , GURL ( ) , CONTENT_SETTINGS_TYPE_COOKIES , std : : string ( ) , CONTENT_SETTING_BLOCK ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , accept_ch_with_lifetime_url ( ) ) ;\n histogram_tester . ExpectTotalCount ( \"ClientHints.UpdateEventCount\" , 0 ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> GetSettingsForOneType ( CONTENT_SETTINGS_TYPE_CLIENT_HINTS , std : : string ( ) , & host_settings ) ;\n EXPECT_EQ ( 0u , host_settings . size ( ) ) ;\n cookie_settings_ -> SetCookieSetting ( accept_ch_without_lifetime_url ( ) , CONTENT_SETTING_ALLOW ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , accept_ch_with_lifetime_url ( ) ) ;\n histogram_tester . ExpectTotalCount ( \"ClientHints.UpdateEventCount\" , 1 ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> GetSettingsForOneType ( CONTENT_SETTINGS_TYPE_CLIENT_HINTS , std : : string ( ) , & host_settings ) ;\n EXPECT_EQ ( 1u , host_settings . size ( ) ) ;\n }"}
{"idx": 15323, "target": 0, "func": "static void test_bug54041_impl ( ) {\n int rc ;\n MYSQL_STMT * stmt ;\n MYSQL_BIND bind ;\n DBUG_ENTER ( \"test_bug54041\" ) ;\n myheader ( \"test_bug54041\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE t1 (a INT)\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT a FROM t1 WHERE a > ?\" ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 1 ) ;\n memset ( & bind , 0 , sizeof ( bind ) ) ;\n bind . buffer_type = MYSQL_TYPE_LONG ;\n rc = mysql_stmt_bind_param ( stmt , & bind ) ;\n check_execute ( stmt , rc ) ;\n stmt -> params [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n rc = mysql_stmt_send_long_data ( stmt , 0 , \"data\" , 5 ) ;\n check_execute ( stmt , rc ) ;\n stmt -> params [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute_r ( stmt , rc ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS t1\" ) ;\n myquery ( rc ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 15324, "target": 0, "func": "int xmlCharInRange ( unsigned int val , const xmlChRangeGroup * rptr ) {\n int low , high , mid ;\n const xmlChSRange * sptr ;\n const xmlChLRange * lptr ;\n if ( rptr == NULL ) return ( 0 ) ;\n if ( val < 0x10000 ) {\n if ( rptr -> nbShortRange == 0 ) return 0 ;\n low = 0 ;\n high = rptr -> nbShortRange - 1 ;\n sptr = rptr -> shortRange ;\n while ( low <= high ) {\n mid = ( low + high ) / 2 ;\n if ( ( unsigned short ) val < sptr [ mid ] . low ) {\n high = mid - 1 ;\n }\n else {\n if ( ( unsigned short ) val > sptr [ mid ] . high ) {\n low = mid + 1 ;\n }\n else {\n return 1 ;\n }\n }\n }\n }\n else {\n if ( rptr -> nbLongRange == 0 ) {\n return 0 ;\n }\n low = 0 ;\n high = rptr -> nbLongRange - 1 ;\n lptr = rptr -> longRange ;\n while ( low <= high ) {\n mid = ( low + high ) / 2 ;\n if ( val < lptr [ mid ] . low ) {\n high = mid - 1 ;\n }\n else {\n if ( val > lptr [ mid ] . high ) {\n low = mid + 1 ;\n }\n else {\n return 1 ;\n }\n }\n }\n }\n return 0 ;\n }"}
{"idx": 15325, "target": 0, "func": "static int decode_subframe_length ( WmallDecodeCtx * s , int offset ) {\n int frame_len_ratio , subframe_len , len ;\n if ( offset == s -> samples_per_frame - s -> min_samples_per_subframe ) return s -> min_samples_per_subframe ;\n len = av_log2 ( s -> max_num_subframes - 1 ) + 1 ;\n frame_len_ratio = get_bits ( & s -> gb , len ) ;\n subframe_len = s -> min_samples_per_subframe * ( frame_len_ratio + 1 ) ;\n if ( subframe_len < s -> min_samples_per_subframe || subframe_len > s -> samples_per_frame ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"broken frame: subframe_len %i\\n\" , subframe_len ) ;\n return AVERROR_INVALIDDATA ;\n }\n return subframe_len ;\n }"}
{"idx": 15326, "target": 0, "func": "static char * wv_integer_from_opaque ( tvbuff_t * tvb , guint32 offset , guint32 data_len ) {\n char * str ;\n switch ( data_len ) {\n case 1 : str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"WV-CSP Integer: %d\" , tvb_get_guint8 ( tvb , offset ) ) ;\n break ;\n case 2 : str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"WV-CSP Integer: %d\" , tvb_get_ntohs ( tvb , offset ) ) ;\n break ;\n case 3 : str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"WV-CSP Integer: %d\" , tvb_get_ntoh24 ( tvb , offset ) ) ;\n break ;\n case 4 : str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"WV-CSP Integer: %d\" , tvb_get_ntohl ( tvb , offset ) ) ;\n break ;\n default : str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"<Error: invalid binary WV-CSP Integer value \" \"(%d bytes of opaque data)>\" , data_len ) ;\n break ;\n }\n return str ;\n }"}
{"idx": 15327, "target": 0, "func": "xmlAttrPtr xsltAttrTemplateProcess ( xsltTransformContextPtr ctxt , xmlNodePtr target , xmlAttrPtr attr ) {\n const xmlChar * value ;\n xmlAttrPtr ret ;\n if ( ( ctxt == NULL ) || ( attr == NULL ) || ( target == NULL ) || ( target -> type != XML_ELEMENT_NODE ) ) return ( NULL ) ;\n if ( attr -> type != XML_ATTRIBUTE_NODE ) return ( NULL ) ;\n # ifdef XSLT_REFACTORED if ( attr -> psvi == xsltXSLTAttrMarker ) return ( NULL ) ;\n # else if ( ( attr -> ns != NULL ) && xmlStrEqual ( attr -> ns -> href , XSLT_NAMESPACE ) ) return ( NULL ) ;\n # endif if ( attr -> children != NULL ) {\n if ( ( attr -> children -> type != XML_TEXT_NODE ) || ( attr -> children -> next != NULL ) ) {\n xsltTransformError ( ctxt , NULL , attr -> parent , \"Internal error: The children of an attribute node of a \" \"literal result element are not in the expected form.\\n\" ) ;\n return ( NULL ) ;\n }\n value = attr -> children -> content ;\n if ( value == NULL ) value = xmlDictLookup ( ctxt -> dict , BAD_CAST \"\" , 0 ) ;\n }\n else value = xmlDictLookup ( ctxt -> dict , BAD_CAST \"\" , 0 ) ;\n ret = target -> properties ;\n while ( ret != NULL ) {\n if ( ( ( attr -> ns != NULL ) == ( ret -> ns != NULL ) ) && xmlStrEqual ( ret -> name , attr -> name ) && ( ( attr -> ns == NULL ) || xmlStrEqual ( ret -> ns -> href , attr -> ns -> href ) ) ) {\n break ;\n }\n ret = ret -> next ;\n }\n if ( ret != NULL ) {\n xmlFreeNodeList ( ret -> children ) ;\n ret -> children = ret -> last = NULL ;\n if ( ( ret -> ns != NULL ) && ( ! xmlStrEqual ( ret -> ns -> prefix , attr -> ns -> prefix ) ) ) {\n ret -> ns = xsltGetNamespace ( ctxt , attr -> parent , attr -> ns , target ) ;\n }\n }\n else {\n if ( attr -> ns != NULL ) ret = xmlNewNsProp ( target , xsltGetNamespace ( ctxt , attr -> parent , attr -> ns , target ) , attr -> name , NULL ) ;\n else ret = xmlNewNsProp ( target , NULL , attr -> name , NULL ) ;\n }\n if ( ret != NULL ) {\n xmlNodePtr text ;\n text = xmlNewText ( NULL ) ;\n if ( text != NULL ) {\n ret -> last = ret -> children = text ;\n text -> parent = ( xmlNodePtr ) ret ;\n text -> doc = ret -> doc ;\n if ( attr -> psvi != NULL ) {\n xmlChar * val ;\n val = xsltEvalAVT ( ctxt , attr -> psvi , attr -> parent ) ;\n if ( val == NULL ) {\n if ( attr -> ns ) {\n xsltTransformError ( ctxt , NULL , attr -> parent , \"Internal error: Failed to evaluate the AVT \" \"of attribute '{\n%s}\n%s'.\\n\" , attr -> ns -> href , attr -> name ) ;\n }\n else {\n xsltTransformError ( ctxt , NULL , attr -> parent , \"Internal error: Failed to evaluate the AVT \" \"of attribute '%s'.\\n\" , attr -> name ) ;\n }\n text -> content = xmlStrdup ( BAD_CAST \"\" ) ;\n }\n else {\n text -> content = val ;\n }\n }\n else if ( ( ctxt -> internalized ) && ( target != NULL ) && ( target -> doc != NULL ) && ( target -> doc -> dict == ctxt -> dict ) && xmlDictOwns ( ctxt -> dict , value ) ) {\n text -> content = ( xmlChar * ) value ;\n }\n else {\n text -> content = xmlStrdup ( value ) ;\n }\n }\n }\n else {\n if ( attr -> ns ) {\n xsltTransformError ( ctxt , NULL , attr -> parent , \"Internal error: Failed to create attribute '{\n%s}\n%s'.\\n\" , attr -> ns -> href , attr -> name ) ;\n }\n else {\n xsltTransformError ( ctxt , NULL , attr -> parent , \"Internal error: Failed to create attribute '%s'.\\n\" , attr -> name ) ;\n }\n }\n return ( ret ) ;\n }"}
{"idx": 15328, "target": 0, "func": "static int netstat_seq_show ( struct seq_file * seq , void * v ) {\n int i ;\n struct net * net = seq -> private ;\n seq_puts ( seq , \"TcpExt:\" ) ;\n for ( i = 0 ;\n snmp4_net_list [ i ] . name != NULL ;\n i ++ ) seq_printf ( seq , \" %s\" , snmp4_net_list [ i ] . name ) ;\n seq_puts ( seq , \"\\nTcpExt:\" ) ;\n for ( i = 0 ;\n snmp4_net_list [ i ] . name != NULL ;\n i ++ ) seq_printf ( seq , \" %lu\" , snmp_fold_field ( ( void __percpu * * ) net -> mib . net_statistics , snmp4_net_list [ i ] . entry ) ) ;\n seq_puts ( seq , \"\\nIpExt:\" ) ;\n for ( i = 0 ;\n snmp4_ipextstats_list [ i ] . name != NULL ;\n i ++ ) seq_printf ( seq , \" %s\" , snmp4_ipextstats_list [ i ] . name ) ;\n seq_puts ( seq , \"\\nIpExt:\" ) ;\n for ( i = 0 ;\n snmp4_ipextstats_list [ i ] . name != NULL ;\n i ++ ) seq_printf ( seq , \" %llu\" , snmp_fold_field64 ( ( void __percpu * * ) net -> mib . ip_statistics , snmp4_ipextstats_list [ i ] . entry , offsetof ( struct ipstats_mib , syncp ) ) ) ;\n seq_putc ( seq , '\\n' ) ;\n return 0 ;\n }"}
{"idx": 15329, "target": 0, "func": "static void test_bug4030 ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND my_bind [ 3 ] ;\n MYSQL_TIME time_canonical , time_out ;\n MYSQL_TIME date_canonical , date_out ;\n MYSQL_TIME datetime_canonical , datetime_out ;\n const char * stmt_text ;\n int rc ;\n myheader ( \"test_bug4030\" ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n stmt_text = \"SELECT '23:59:59.123456', '2003-12-31', \" \"'2003-12-31 23:59:59.123456'\" ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n memset ( & time_canonical , 0 , sizeof ( time_canonical ) ) ;\n memset ( & time_out , 0 , sizeof ( time_out ) ) ;\n memset ( & date_canonical , 0 , sizeof ( date_canonical ) ) ;\n memset ( & date_out , 0 , sizeof ( date_out ) ) ;\n memset ( & datetime_canonical , 0 , sizeof ( datetime_canonical ) ) ;\n memset ( & datetime_out , 0 , sizeof ( datetime_out ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_TIME ;\n my_bind [ 0 ] . buffer = ( void * ) & time_out ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_DATE ;\n my_bind [ 1 ] . buffer = ( void * ) & date_out ;\n my_bind [ 2 ] . buffer_type = MYSQL_TYPE_DATETIME ;\n my_bind [ 2 ] . buffer = ( void * ) & datetime_out ;\n time_canonical . hour = 23 ;\n time_canonical . minute = 59 ;\n time_canonical . second = 59 ;\n time_canonical . second_part = 123456 ;\n time_canonical . time_type = MYSQL_TIMESTAMP_TIME ;\n date_canonical . year = 2003 ;\n date_canonical . month = 12 ;\n date_canonical . day = 31 ;\n date_canonical . time_type = MYSQL_TIMESTAMP_DATE ;\n datetime_canonical = time_canonical ;\n datetime_canonical . year = 2003 ;\n datetime_canonical . month = 12 ;\n datetime_canonical . day = 31 ;\n datetime_canonical . time_type = MYSQL_TIMESTAMP_DATETIME ;\n mysql_stmt_bind_result ( stmt , my_bind ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == 0 ) ;\n if ( ! opt_silent ) {\n printf ( \"%d:%d:%d.%lu\\n\" , time_out . hour , time_out . minute , time_out . second , time_out . second_part ) ;\n printf ( \"%d-%d-%d\\n\" , date_out . year , date_out . month , date_out . day ) ;\n printf ( \"%d-%d-%d %d:%d:%d.%lu\\n\" , datetime_out . year , datetime_out . month , datetime_out . day , datetime_out . hour , datetime_out . minute , datetime_out . second , datetime_out . second_part ) ;\n }\n DIE_UNLESS ( memcmp ( & time_canonical , & time_out , sizeof ( time_out ) ) == 0 ) ;\n DIE_UNLESS ( memcmp ( & date_canonical , & date_out , sizeof ( date_out ) ) == 0 ) ;\n DIE_UNLESS ( memcmp ( & datetime_canonical , & datetime_out , sizeof ( datetime_out ) ) == 0 ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 15330, "target": 0, "func": "gpg_error_t keydb_search_kid ( KEYDB_HANDLE hd , u32 * kid ) {\n KEYDB_SEARCH_DESC desc ;\n memset ( & desc , 0 , sizeof desc ) ;\n desc . mode = KEYDB_SEARCH_MODE_LONG_KID ;\n desc . u . kid [ 0 ] = kid [ 0 ] ;\n desc . u . kid [ 1 ] = kid [ 1 ] ;\n return keydb_search ( hd , & desc , 1 , NULL ) ;\n }"}
{"idx": 15331, "target": 0, "func": "TSReturnCode TSPluginRegister ( const TSPluginRegistrationInfo * plugin_info ) {\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) plugin_info ) == TS_SUCCESS ) ;\n if ( ! plugin_reg_current ) {\n return TS_ERROR ;\n }\n plugin_reg_current -> plugin_registered = true ;\n if ( plugin_info -> plugin_name ) {\n plugin_reg_current -> plugin_name = ats_strdup ( plugin_info -> plugin_name ) ;\n }\n if ( plugin_info -> vendor_name ) {\n plugin_reg_current -> vendor_name = ats_strdup ( plugin_info -> vendor_name ) ;\n }\n if ( plugin_info -> support_email ) {\n plugin_reg_current -> support_email = ats_strdup ( plugin_info -> support_email ) ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 15332, "target": 0, "func": "static int dissect_h225_IsupPublicPartyNumber ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_IsupPublicPartyNumber , IsupPublicPartyNumber_sequence ) ;\n return offset ;\n }"}
{"idx": 15333, "target": 0, "func": "static vpx_codec_err_t ctrl_set_scale_mode ( vpx_codec_alg_priv_t * ctx , va_list args ) {\n vpx_scaling_mode_t * const mode = va_arg ( args , vpx_scaling_mode_t * ) ;\n if ( mode ) {\n const int res = vp9_set_internal_size ( ctx -> cpi , ( VPX_SCALING ) mode -> h_scaling_mode , ( VPX_SCALING ) mode -> v_scaling_mode ) ;\n return ( res == 0 ) ? VPX_CODEC_OK : VPX_CODEC_INVALID_PARAM ;\n }\n else {\n return VPX_CODEC_INVALID_PARAM ;\n }\n }"}
{"idx": 15334, "target": 0, "func": "void Init_ossl_cipher ( void ) {\n # if 0 mOSSL = rb_define_module ( \"OpenSSL\" ) ;\n eOSSLError = rb_define_class_under ( mOSSL , \"OpenSSLError\" , rb_eStandardError ) ;\n # endif cCipher = rb_define_class_under ( mOSSL , \"Cipher\" , rb_cObject ) ;\n eCipherError = rb_define_class_under ( cCipher , \"CipherError\" , eOSSLError ) ;\n rb_define_alloc_func ( cCipher , ossl_cipher_alloc ) ;\n rb_define_copy_func ( cCipher , ossl_cipher_copy ) ;\n rb_define_module_function ( cCipher , \"ciphers\" , ossl_s_ciphers , 0 ) ;\n rb_define_method ( cCipher , \"initialize\" , ossl_cipher_initialize , 1 ) ;\n rb_define_method ( cCipher , \"reset\" , ossl_cipher_reset , 0 ) ;\n rb_define_method ( cCipher , \"encrypt\" , ossl_cipher_encrypt , - 1 ) ;\n rb_define_method ( cCipher , \"decrypt\" , ossl_cipher_decrypt , - 1 ) ;\n rb_define_method ( cCipher , \"pkcs5_keyivgen\" , ossl_cipher_pkcs5_keyivgen , - 1 ) ;\n rb_define_method ( cCipher , \"update\" , ossl_cipher_update , - 1 ) ;\n rb_define_method ( cCipher , \"final\" , ossl_cipher_final , 0 ) ;\n rb_define_method ( cCipher , \"name\" , ossl_cipher_name , 0 ) ;\n rb_define_method ( cCipher , \"key=\" , ossl_cipher_set_key , 1 ) ;\n rb_define_method ( cCipher , \"auth_data=\" , ossl_cipher_set_auth_data , 1 ) ;\n rb_define_method ( cCipher , \"auth_tag=\" , ossl_cipher_set_auth_tag , 1 ) ;\n rb_define_method ( cCipher , \"auth_tag\" , ossl_cipher_get_auth_tag , - 1 ) ;\n rb_define_method ( cCipher , \"auth_tag_len=\" , ossl_cipher_set_auth_tag_len , 1 ) ;\n rb_define_method ( cCipher , \"authenticated?\" , ossl_cipher_is_authenticated , 0 ) ;\n rb_define_method ( cCipher , \"key_len=\" , ossl_cipher_set_key_length , 1 ) ;\n rb_define_method ( cCipher , \"key_len\" , ossl_cipher_key_length , 0 ) ;\n rb_define_method ( cCipher , \"iv=\" , ossl_cipher_set_iv , 1 ) ;\n rb_define_method ( cCipher , \"iv_len=\" , ossl_cipher_set_iv_length , 1 ) ;\n rb_define_method ( cCipher , \"iv_len\" , ossl_cipher_iv_length , 0 ) ;\n rb_define_method ( cCipher , \"block_size\" , ossl_cipher_block_size , 0 ) ;\n rb_define_method ( cCipher , \"padding=\" , ossl_cipher_set_padding , 1 ) ;\n id_auth_tag_len = rb_intern_const ( \"auth_tag_len\" ) ;\n id_key_set = rb_intern_const ( \"key_set\" ) ;\n }"}
{"idx": 15335, "target": 0, "func": "static void * threaded_find_deltas ( void * arg ) {\n struct thread_params * me = arg ;\n while ( me -> remaining ) {\n find_deltas ( me -> list , & me -> remaining , me -> window , me -> depth , me -> processed ) ;\n progress_lock ( ) ;\n me -> working = 0 ;\n pthread_cond_signal ( & progress_cond ) ;\n progress_unlock ( ) ;\n pthread_mutex_lock ( & me -> mutex ) ;\n while ( ! me -> data_ready ) pthread_cond_wait ( & me -> cond , & me -> mutex ) ;\n me -> data_ready = 0 ;\n pthread_mutex_unlock ( & me -> mutex ) ;\n }\n return NULL ;\n }"}
{"idx": 15336, "target": 0, "func": "static void prplcb_conv_msg ( PurpleConversation * conv , const char * who , const char * message , PurpleMessageFlags flags , time_t mtime ) {\n if ( ! ( flags & PURPLE_MESSAGE_SEND ) ) {\n handle_conv_msg ( conv , who , message , 0 , mtime ) ;\n }\n }"}
{"idx": 15337, "target": 0, "func": "int main_file_isopen ( main_file * xfile ) {\n # if XD3_STDIO return xfile -> file != NULL ;\n # elif XD3_POSIX return xfile -> file != - 1 ;\n # elif XD3_WIN32 return xfile -> file != INVALID_HANDLE_VALUE ;\n # endif }"}
{"idx": 15338, "target": 1, "func": "static void idct8 ( const int16_t * input , int16_t * output ) {\n int16_t step1 [ 8 ] , step2 [ 8 ] ;\n int temp1 , temp2 ;\n step1 [ 0 ] = input [ 0 ] ;\n step1 [ 2 ] = input [ 4 ] ;\n step1 [ 1 ] = input [ 2 ] ;\n step1 [ 3 ] = input [ 6 ] ;\n temp1 = input [ 1 ] * cospi_28_64 - input [ 7 ] * cospi_4_64 ;\n temp2 = input [ 1 ] * cospi_4_64 + input [ 7 ] * cospi_28_64 ;\n step1 [ 4 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 7 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = input [ 5 ] * cospi_12_64 - input [ 3 ] * cospi_20_64 ;\n temp2 = input [ 5 ] * cospi_20_64 + input [ 3 ] * cospi_12_64 ;\n step1 [ 5 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 6 ] = dct_const_round_shift ( temp2 ) ;\n idct4 ( step1 , step1 ) ;\n step2 [ 4 ] = step1 [ 4 ] + step1 [ 5 ] ;\n step2 [ 5 ] = step1 [ 4 ] - step1 [ 5 ] ;\n step2 [ 6 ] = - step1 [ 6 ] + step1 [ 7 ] ;\n step2 [ 7 ] = step1 [ 6 ] + step1 [ 7 ] ;\n step1 [ 4 ] = step2 [ 4 ] ;\n temp1 = ( step2 [ 6 ] - step2 [ 5 ] ) * cospi_16_64 ;\n temp2 = ( step2 [ 5 ] + step2 [ 6 ] ) * cospi_16_64 ;\n step1 [ 5 ] = dct_const_round_shift ( temp1 ) ;\n step1 [ 6 ] = dct_const_round_shift ( temp2 ) ;\n step1 [ 7 ] = step2 [ 7 ] ;\n output [ 0 ] = step1 [ 0 ] + step1 [ 7 ] ;\n output [ 1 ] = step1 [ 1 ] + step1 [ 6 ] ;\n output [ 2 ] = step1 [ 2 ] + step1 [ 5 ] ;\n output [ 3 ] = step1 [ 3 ] + step1 [ 4 ] ;\n output [ 4 ] = step1 [ 3 ] - step1 [ 4 ] ;\n output [ 5 ] = step1 [ 2 ] - step1 [ 5 ] ;\n output [ 6 ] = step1 [ 1 ] - step1 [ 6 ] ;\n output [ 7 ] = step1 [ 0 ] - step1 [ 7 ] ;\n }"}
{"idx": 15339, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FullscreenControllerInteractiveTest , MAYBE_TestTabExitsMouseLockOnGoBack ) {\n ASSERT_TRUE ( test_server ( ) -> Start ( ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , GURL ( \"about:blank\" ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , test_server ( ) -> GetURL ( kFullscreenMouseLockHTML ) ) ;\n ASSERT_TRUE ( ui_test_utils : : SendKeyPressAndWait ( browser ( ) , ui : : VKEY_1 , false , false , false , false , chrome : : NOTIFICATION_MOUSE_LOCK_CHANGED , content : : NotificationService : : AllSources ( ) ) ) ;\n ASSERT_TRUE ( IsFullscreenBubbleDisplayed ( ) ) ;\n ASSERT_TRUE ( IsMouseLockPermissionRequested ( ) ) ;\n ASSERT_FALSE ( IsMouseLocked ( ) ) ;\n AcceptCurrentFullscreenOrMouseLockRequest ( ) ;\n ASSERT_TRUE ( IsMouseLocked ( ) ) ;\n GoBack ( ) ;\n ASSERT_FALSE ( IsMouseLocked ( ) ) ;\n }"}
{"idx": 15340, "target": 0, "func": "static void img_buf_free ( void * memblk ) {\n if ( memblk ) {\n void * addr = ( void * ) ( ( ( size_t * ) memblk ) [ - 1 ] ) ;\n free ( addr ) ;\n }\n }"}
{"idx": 15341, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ProfileBrowserTest , CreateNewProfileSynchronous ) {\n base : : ScopedTempDir temp_dir ;\n ASSERT_TRUE ( temp_dir . CreateUniqueTempDir ( ) ) ;\n MockProfileDelegate delegate ;\n EXPECT_CALL ( delegate , OnProfileCreated ( testing : : NotNull ( ) , true , true ) ) ;\n {\n std : : unique_ptr < Profile > profile ( CreateProfile ( temp_dir . path ( ) , & delegate , Profile : : CREATE_MODE_SYNCHRONOUS ) ) ;\n CheckChromeVersion ( profile . get ( ) , true ) ;\n }\n FlushIoTaskRunnerAndSpinThreads ( ) ;\n }"}
{"idx": 15342, "target": 0, "func": "static const char * qio_channel_websock_find_header ( QIOChannelWebsockHTTPHeader * hdrs , size_t nhdrs , const char * name ) {\n size_t i ;\n for ( i = 0 ;\n i < nhdrs ;\n i ++ ) {\n if ( g_str_equal ( hdrs [ i ] . name , name ) ) {\n return hdrs [ i ] . value ;\n }\n }\n return NULL ;\n }"}
{"idx": 15343, "target": 0, "func": "int TSMimeHdrFieldValuesCount ( TSMBuffer bufp , TSMLoc hdr , TSMLoc field ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( hdr ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( hdr ) == TS_SUCCESS ) ) ;\n sdk_assert ( sdk_sanity_check_field_handle ( field , hdr ) == TS_SUCCESS ) ;\n MIMEFieldSDKHandle * handle = ( MIMEFieldSDKHandle * ) field ;\n return mime_field_value_get_comma_val_count ( handle -> field_ptr ) ;\n }"}
{"idx": 15344, "target": 0, "func": "void EVP_ENCODE_CTX_free ( EVP_ENCODE_CTX * ctx ) {\n OPENSSL_free ( ctx ) ;\n }"}
{"idx": 15345, "target": 0, "func": "TEST ( URLFixerTest , FixupRelativeFile ) {\n base : : FilePath full_path ;\n base : : FilePath file_part ( FILE_PATH_LITERAL ( \"url_fixer_upper_existing_file.txt\" ) ) ;\n base : : ScopedTempDir temp_dir_ ;\n ASSERT_TRUE ( temp_dir_ . CreateUniqueTempDir ( ) ) ;\n ASSERT_TRUE ( MakeTempFile ( temp_dir_ . GetPath ( ) , file_part , & full_path ) ) ;\n full_path = base : : MakeAbsoluteFilePath ( full_path ) ;\n ASSERT_FALSE ( full_path . empty ( ) ) ;\n for ( size_t i = 0 ;\n i < arraysize ( fixup_cases ) ;\n ++ i ) {\n FixupCase value = fixup_cases [ i ] ;\n base : : FilePath input = base : : FilePath : : FromUTF8Unsafe ( value . input ) ;\n EXPECT_EQ ( value . output , url_formatter : : FixupRelativeFile ( temp_dir_ . GetPath ( ) , input ) . possibly_invalid_spec ( ) ) ;\n }\n EXPECT_TRUE ( IsMatchingFileURL ( url_formatter : : FixupRelativeFile ( temp_dir_ . GetPath ( ) , file_part ) . possibly_invalid_spec ( ) , full_path ) ) ;\n EXPECT_TRUE ( base : : DeleteFile ( full_path , false ) ) ;\n base : : FilePath nonexistent_file ( FILE_PATH_LITERAL ( \"url_fixer_upper_nonexistent_file.txt\" ) ) ;\n std : : string fixedup ( url_formatter : : FixupRelativeFile ( temp_dir_ . GetPath ( ) , nonexistent_file ) . possibly_invalid_spec ( ) ) ;\n EXPECT_NE ( std : : string ( \"file:///\" ) , fixedup . substr ( 0 , 8 ) ) ;\n EXPECT_FALSE ( IsMatchingFileURL ( fixedup , nonexistent_file ) ) ;\n base : : FilePath sub_dir ( FILE_PATH_LITERAL ( \"url fixer-upper dir\" ) ) ;\n base : : FilePath sub_file ( FILE_PATH_LITERAL ( \"url fixer-upper existing file.txt\" ) ) ;\n base : : FilePath new_dir = temp_dir_ . GetPath ( ) . Append ( sub_dir ) ;\n base : : CreateDirectory ( new_dir ) ;\n ASSERT_TRUE ( MakeTempFile ( new_dir , sub_file , & full_path ) ) ;\n full_path = base : : MakeAbsoluteFilePath ( full_path ) ;\n ASSERT_FALSE ( full_path . empty ( ) ) ;\n base : : FilePath relative_file = sub_dir . Append ( sub_file ) ;\n EXPECT_TRUE ( IsMatchingFileURL ( url_formatter : : FixupRelativeFile ( temp_dir_ . GetPath ( ) , relative_file ) . possibly_invalid_spec ( ) , full_path ) ) ;\n base : : FilePath : : StringType relative_file_str = sub_dir . value ( ) + FILE_PATH_LITERAL ( \"/\" ) + sub_file . value ( ) ;\n base : : ReplaceSubstringsAfterOffset ( & relative_file_str , 0 , FILE_PATH_LITERAL ( \" \" ) , FILE_PATH_LITERAL ( \"%20\" ) ) ;\n EXPECT_TRUE ( IsMatchingFileURL ( url_formatter : : FixupRelativeFile ( temp_dir_ . GetPath ( ) , base : : FilePath ( relative_file_str ) ) . possibly_invalid_spec ( ) , full_path ) ) ;\n relative_file_str = sub_dir . value ( ) + FILE_PATH_LITERAL ( \"/../\" ) + sub_dir . value ( ) + FILE_PATH_LITERAL ( \"///./\" ) + sub_file . value ( ) ;\n EXPECT_TRUE ( IsMatchingFileURL ( url_formatter : : FixupRelativeFile ( temp_dir_ . GetPath ( ) , base : : FilePath ( relative_file_str ) ) . possibly_invalid_spec ( ) , full_path ) ) ;\n EXPECT_TRUE ( base : : DeleteFile ( full_path , false ) ) ;\n EXPECT_TRUE ( base : : DeleteFile ( new_dir , true ) ) ;\n base : : FilePath empty_path ;\n base : : FilePath http_url_path ( FILE_PATH_LITERAL ( \"http://../\" ) ) ;\n EXPECT_TRUE ( url_formatter : : FixupRelativeFile ( empty_path , http_url_path ) . SchemeIs ( \"http\" ) ) ;\n }"}
{"idx": 15346, "target": 0, "func": "int wpa_generate_PTK ( u_char * bssid , u_char * sta , u_char * pmk , u_char * snonce , u_char * anonce , u_int16 bits , u_char * kck ) {\n u_int8 i ;\n u_int len ;\n u_char buff [ 100 ] ;\n size_t offset = sizeof ( \"Pairwise key expansion\" ) ;\n memset ( buff , 0 , 100 ) ;\n memcpy ( buff , \"Pairwise key expansion\" , offset ) ;\n if ( memcmp ( sta , bssid , ETH_ADDR_LEN ) < 0 ) {\n memcpy ( buff + offset , sta , ETH_ADDR_LEN ) ;\n memcpy ( buff + offset + ETH_ADDR_LEN , bssid , ETH_ADDR_LEN ) ;\n }\n else {\n memcpy ( buff + offset , bssid , ETH_ADDR_LEN ) ;\n memcpy ( buff + offset + ETH_ADDR_LEN , sta , ETH_ADDR_LEN ) ;\n }\n offset += ETH_ADDR_LEN * 2 ;\n if ( memcmp ( snonce , anonce , WPA_NONCE_LEN ) < 0 ) {\n memcpy ( buff + offset , snonce , WPA_NONCE_LEN ) ;\n memcpy ( buff + offset + WPA_NONCE_LEN , anonce , WPA_NONCE_LEN ) ;\n }\n else {\n memcpy ( buff + offset , anonce , WPA_NONCE_LEN ) ;\n memcpy ( buff + offset + WPA_NONCE_LEN , snonce , WPA_NONCE_LEN ) ;\n }\n offset += WPA_NONCE_LEN * 2 ;\n memset ( kck , 0 , WPA_PTK_LEN ) ;\n for ( i = 0 ;\n i < ( bits + 159 ) / 160 ;\n i ++ ) {\n buff [ offset ] = i ;\n HMAC ( EVP_sha1 ( ) , pmk , WPA_KEY_LEN , buff , 100 , kck + i * 20 , & len ) ;\n }\n return E_SUCCESS ;\n }"}
{"idx": 15347, "target": 0, "func": "static uintmax_t parse_mark_ref_eol ( const char * p ) {\n char * end ;\n uintmax_t mark ;\n mark = parse_mark_ref ( p , & end ) ;\n if ( * end != '\\0' ) die ( \"Garbage after mark: %s\" , command_buf . buf ) ;\n return mark ;\n }"}
{"idx": 15348, "target": 0, "func": "static VALUE ossl_cipher_set_iv ( VALUE self , VALUE iv ) {\n EVP_CIPHER_CTX * ctx ;\n int iv_len = 0 ;\n StringValue ( iv ) ;\n GetCipher ( self , ctx ) ;\n # if defined ( HAVE_AUTHENTICATED_ENCRYPTION ) if ( EVP_CIPHER_CTX_flags ( ctx ) & EVP_CIPH_FLAG_AEAD_CIPHER ) iv_len = ( int ) ( VALUE ) EVP_CIPHER_CTX_get_app_data ( ctx ) ;\n # endif if ( ! iv_len ) iv_len = EVP_CIPHER_CTX_iv_length ( ctx ) ;\n if ( RSTRING_LEN ( iv ) != iv_len ) ossl_raise ( rb_eArgError , \"iv must be %d bytes\" , iv_len ) ;\n if ( EVP_CipherInit_ex ( ctx , NULL , NULL , NULL , ( unsigned char * ) RSTRING_PTR ( iv ) , - 1 ) != 1 ) ossl_raise ( eCipherError , NULL ) ;\n return iv ;\n }"}
{"idx": 15349, "target": 0, "func": "int vp9_full_search_sadx3 ( const MACROBLOCK * x , const MV * ref_mv , int sad_per_bit , int distance , const vp9_variance_fn_ptr_t * fn_ptr , const MV * center_mv , MV * best_mv ) {\n int r ;\n const MACROBLOCKD * const xd = & x -> e_mbd ;\n const struct buf_2d * const what = & x -> plane [ 0 ] . src ;\n const struct buf_2d * const in_what = & xd -> plane [ 0 ] . pre [ 0 ] ;\n const int row_min = MAX ( ref_mv -> row - distance , x -> mv_row_min ) ;\n const int row_max = MIN ( ref_mv -> row + distance , x -> mv_row_max ) ;\n const int col_min = MAX ( ref_mv -> col - distance , x -> mv_col_min ) ;\n const int col_max = MIN ( ref_mv -> col + distance , x -> mv_col_max ) ;\n const MV fcenter_mv = {\n center_mv -> row >> 3 , center_mv -> col >> 3 }\n ;\n unsigned int best_sad = fn_ptr -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , ref_mv ) , in_what -> stride ) + mvsad_err_cost ( x , ref_mv , & fcenter_mv , sad_per_bit ) ;\n * best_mv = * ref_mv ;\n for ( r = row_min ;\n r < row_max ;\n ++ r ) {\n int c = col_min ;\n const uint8_t * check_here = & in_what -> buf [ r * in_what -> stride + c ] ;\n if ( fn_ptr -> sdx3f != NULL ) {\n while ( ( c + 2 ) < col_max ) {\n int i ;\n unsigned int sads [ 3 ] ;\n fn_ptr -> sdx3f ( what -> buf , what -> stride , check_here , in_what -> stride , sads ) ;\n for ( i = 0 ;\n i < 3 ;\n ++ i ) {\n unsigned int sad = sads [ i ] ;\n if ( sad < best_sad ) {\n const MV mv = {\n r , c }\n ;\n sad += mvsad_err_cost ( x , & mv , & fcenter_mv , sad_per_bit ) ;\n if ( sad < best_sad ) {\n best_sad = sad ;\n * best_mv = mv ;\n }\n }\n ++ check_here ;\n ++ c ;\n }\n }\n }\n while ( c < col_max ) {\n unsigned int sad = fn_ptr -> sdf ( what -> buf , what -> stride , check_here , in_what -> stride ) ;\n if ( sad < best_sad ) {\n const MV mv = {\n r , c }\n ;\n sad += mvsad_err_cost ( x , & mv , & fcenter_mv , sad_per_bit ) ;\n if ( sad < best_sad ) {\n best_sad = sad ;\n * best_mv = mv ;\n }\n }\n ++ check_here ;\n ++ c ;\n }\n }\n return best_sad ;\n }"}
{"idx": 15350, "target": 0, "func": "static void nlm_register_unmatched_res ( packet_info * pinfo , tvbuff_t * tvb , int offset ) {\n nlm_msg_res_unmatched_data umd ;\n nlm_msg_res_unmatched_data * old_umd ;\n umd . cookie_len = tvb_get_ntohl ( tvb , offset ) ;\n umd . cookie = tvb_get_ptr ( tvb , offset + 4 , - 1 ) ;\n old_umd = ( nlm_msg_res_unmatched_data * ) g_hash_table_lookup ( nlm_msg_res_unmatched , ( gconstpointer ) & umd ) ;\n if ( old_umd ) {\n nlm_msg_res_matched_data * md_req , * md_rep ;\n md_req = ( nlm_msg_res_matched_data * ) g_malloc ( sizeof ( nlm_msg_res_matched_data ) ) ;\n md_req -> req_frame = old_umd -> req_frame ;\n md_req -> rep_frame = pinfo -> fd -> num ;\n md_req -> ns = old_umd -> ns ;\n md_rep = ( nlm_msg_res_matched_data * ) g_memdup ( md_req , sizeof ( nlm_msg_res_matched_data ) ) ;\n g_hash_table_insert ( nlm_msg_res_matched , GINT_TO_POINTER ( md_req -> req_frame ) , ( gpointer ) md_req ) ;\n g_hash_table_insert ( nlm_msg_res_matched , GINT_TO_POINTER ( md_rep -> rep_frame ) , ( gpointer ) md_rep ) ;\n g_hash_table_remove ( nlm_msg_res_unmatched , ( gconstpointer ) old_umd ) ;\n }\n }"}
{"idx": 15351, "target": 0, "func": "static int read_dcs ( AVCodecContext * avctx , GetBitContext * gb , Bundle * b , int start_bits , int has_sign ) {\n int i , j , len , len2 , bsize , sign , v , v2 ;\n int16_t * dst = ( int16_t * ) b -> cur_dec ;\n int16_t * dst_end = ( int16_t * ) b -> data_end ;\n CHECK_READ_VAL ( gb , b , len ) ;\n v = get_bits ( gb , start_bits - has_sign ) ;\n if ( v && has_sign ) {\n sign = - get_bits1 ( gb ) ;\n v = ( v ^ sign ) - sign ;\n }\n if ( dst_end - dst < 1 ) return AVERROR_INVALIDDATA ;\n * dst ++ = v ;\n len -- ;\n for ( i = 0 ;\n i < len ;\n i += 8 ) {\n len2 = FFMIN ( len - i , 8 ) ;\n if ( dst_end - dst < len2 ) return AVERROR_INVALIDDATA ;\n bsize = get_bits ( gb , 4 ) ;\n if ( bsize ) {\n for ( j = 0 ;\n j < len2 ;\n j ++ ) {\n v2 = get_bits ( gb , bsize ) ;\n if ( v2 ) {\n sign = - get_bits1 ( gb ) ;\n v2 = ( v2 ^ sign ) - sign ;\n }\n v += v2 ;\n * dst ++ = v ;\n if ( v < - 32768 || v > 32767 ) {\n av_log ( avctx , AV_LOG_ERROR , \"DC value went out of bounds: %d\\n\" , v ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n }\n else {\n for ( j = 0 ;\n j < len2 ;\n j ++ ) * dst ++ = v ;\n }\n }\n b -> cur_dec = ( uint8_t * ) dst ;\n return 0 ;\n }"}
{"idx": 15352, "target": 0, "func": "static void vc1_mc_4mv_chroma ( VC1Context * v , int dir ) {\n MpegEncContext * s = & v -> s ;\n H264ChromaContext * h264chroma = & v -> h264chroma ;\n uint8_t * srcU , * srcV ;\n int uvmx , uvmy , uvsrc_x , uvsrc_y ;\n int k , tx = 0 , ty = 0 ;\n int mvx [ 4 ] , mvy [ 4 ] , intra [ 4 ] , mv_f [ 4 ] ;\n int valid_count ;\n int chroma_ref_type = v -> cur_field_type , off = 0 ;\n int v_edge_pos = s -> v_edge_pos >> v -> field_mode ;\n if ( ! v -> field_mode && ! v -> s . last_picture . f . data [ 0 ] ) return ;\n if ( s -> flags & CODEC_FLAG_GRAY ) return ;\n for ( k = 0 ;\n k < 4 ;\n k ++ ) {\n mvx [ k ] = s -> mv [ dir ] [ k ] [ 0 ] ;\n mvy [ k ] = s -> mv [ dir ] [ k ] [ 1 ] ;\n intra [ k ] = v -> mb_type [ 0 ] [ s -> block_index [ k ] ] ;\n if ( v -> field_mode ) mv_f [ k ] = v -> mv_f [ dir ] [ s -> block_index [ k ] + v -> blocks_off ] ;\n }\n if ( ! v -> field_mode || ( v -> field_mode && ! v -> numref ) ) {\n valid_count = get_chroma_mv ( mvx , mvy , intra , 0 , & tx , & ty ) ;\n chroma_ref_type = v -> reffield ;\n if ( ! valid_count ) {\n s -> current_picture . motion_val [ 1 ] [ s -> block_index [ 0 ] + v -> blocks_off ] [ 0 ] = 0 ;\n s -> current_picture . motion_val [ 1 ] [ s -> block_index [ 0 ] + v -> blocks_off ] [ 1 ] = 0 ;\n v -> luma_mv [ s -> mb_x ] [ 0 ] = v -> luma_mv [ s -> mb_x ] [ 1 ] = 0 ;\n return ;\n / o need to do MC for intra blocks }\n }\n else {\n int dominant = 0 ;\n if ( mv_f [ 0 ] + mv_f [ 1 ] + mv_f [ 2 ] + mv_f [ 3 ] > 2 ) dominant = 1 ;\n valid_count = get_chroma_mv ( mvx , mvy , mv_f , dominant , & tx , & ty ) ;\n if ( dominant ) chroma_ref_type = ! v -> cur_field_type ;\n }\n if ( v -> field_mode && chroma_ref_type == 1 && v -> cur_field_type == 1 && ! v -> s . last_picture . f . data [ 0 ] ) return ;\n s -> current_picture . motion_val [ 1 ] [ s -> block_index [ 0 ] + v -> blocks_off ] [ 0 ] = tx ;\n s -> current_picture . motion_val [ 1 ] [ s -> block_index [ 0 ] + v -> blocks_off ] [ 1 ] = ty ;\n uvmx = ( tx + ( ( tx & 3 ) == 3 ) ) >> 1 ;\n uvmy = ( ty + ( ( ty & 3 ) == 3 ) ) >> 1 ;\n v -> luma_mv [ s -> mb_x ] [ 0 ] = uvmx ;\n v -> luma_mv [ s -> mb_x ] [ 1 ] = uvmy ;\n if ( v -> fastuvmc ) {\n uvmx = uvmx + ( ( uvmx < 0 ) ? ( uvmx & 1 ) : - ( uvmx & 1 ) ) ;\n uvmy = uvmy + ( ( uvmy < 0 ) ? ( uvmy & 1 ) : - ( uvmy & 1 ) ) ;\n }\n if ( v -> cur_field_type != chroma_ref_type ) uvmy += 2 - 4 * chroma_ref_type ;\n uvsrc_x = s -> mb_x * 8 + ( uvmx >> 2 ) ;\n uvsrc_y = s -> mb_y * 8 + ( uvmy >> 2 ) ;\n if ( v -> profile != PROFILE_ADVANCED ) {\n uvsrc_x = av_clip ( uvsrc_x , - 8 , s -> mb_width * 8 ) ;\n uvsrc_y = av_clip ( uvsrc_y , - 8 , s -> mb_height * 8 ) ;\n }\n else {\n uvsrc_x = av_clip ( uvsrc_x , - 8 , s -> avctx -> coded_width >> 1 ) ;\n uvsrc_y = av_clip ( uvsrc_y , - 8 , s -> avctx -> coded_height >> 1 ) ;\n }\n if ( ! dir ) {\n if ( v -> field_mode ) {\n if ( ( v -> cur_field_type != chroma_ref_type ) && v -> cur_field_type ) {\n srcU = s -> current_picture . f . data [ 1 ] + uvsrc_y * s -> uvlinesize + uvsrc_x ;\n srcV = s -> current_picture . f . data [ 2 ] + uvsrc_y * s -> uvlinesize + uvsrc_x ;\n }\n else {\n srcU = s -> last_picture . f . data [ 1 ] + uvsrc_y * s -> uvlinesize + uvsrc_x ;\n srcV = s -> last_picture . f . data [ 2 ] + uvsrc_y * s -> uvlinesize + uvsrc_x ;\n }\n }\n else {\n srcU = s -> last_picture . f . data [ 1 ] + uvsrc_y * s -> uvlinesize + uvsrc_x ;\n srcV = s -> last_picture . f . data [ 2 ] + uvsrc_y * s -> uvlinesize + uvsrc_x ;\n }\n }\n else {\n srcU = s -> next_picture . f . data [ 1 ] + uvsrc_y * s -> uvlinesize + uvsrc_x ;\n srcV = s -> next_picture . f . data [ 2 ] + uvsrc_y * s -> uvlinesize + uvsrc_x ;\n }\n if ( v -> field_mode ) {\n if ( chroma_ref_type ) {\n srcU += s -> current_picture_ptr -> f . linesize [ 1 ] ;\n srcV += s -> current_picture_ptr -> f . linesize [ 2 ] ;\n }\n off = v -> cur_field_type ? s -> current_picture_ptr -> f . linesize [ 1 ] : 0 ;\n }\n if ( v -> rangeredfrm || ( v -> mv_mode == MV_PMODE_INTENSITY_COMP ) || s -> h_edge_pos < 18 || v_edge_pos < 18 || ( unsigned ) uvsrc_x > ( s -> h_edge_pos >> 1 ) - 9 || ( unsigned ) uvsrc_y > ( v_edge_pos >> 1 ) - 9 ) {\n s -> vdsp . emulated_edge_mc ( s -> edge_emu_buffer , srcU , s -> uvlinesize , 8 + 1 , 8 + 1 , uvsrc_x , uvsrc_y , s -> h_edge_pos >> 1 , v_edge_pos >> 1 ) ;\n s -> vdsp . emulated_edge_mc ( s -> edge_emu_buffer + 16 , srcV , s -> uvlinesize , 8 + 1 , 8 + 1 , uvsrc_x , uvsrc_y , s -> h_edge_pos >> 1 , v_edge_pos >> 1 ) ;\n srcU = s -> edge_emu_buffer ;\n srcV = s -> edge_emu_buffer + 16 ;\n if ( v -> rangeredfrm ) {\n int i , j ;\n uint8_t * src , * src2 ;\n src = srcU ;\n src2 = srcV ;\n for ( j = 0 ;\n j < 9 ;\n j ++ ) {\n for ( i = 0 ;\n i < 9 ;\n i ++ ) {\n src [ i ] = ( ( src [ i ] - 128 ) >> 1 ) + 128 ;\n src2 [ i ] = ( ( src2 [ i ] - 128 ) >> 1 ) + 128 ;\n }\n src += s -> uvlinesize ;\n src2 += s -> uvlinesize ;\n }\n }\n if ( v -> mv_mode == MV_PMODE_INTENSITY_COMP ) {\n int i , j ;\n uint8_t * src , * src2 ;\n src = srcU ;\n src2 = srcV ;\n for ( j = 0 ;\n j < 9 ;\n j ++ ) {\n for ( i = 0 ;\n i < 9 ;\n i ++ ) {\n src [ i ] = v -> lutuv [ src [ i ] ] ;\n src2 [ i ] = v -> lutuv [ src2 [ i ] ] ;\n }\n src += s -> uvlinesize ;\n src2 += s -> uvlinesize ;\n }\n }\n }\n uvmx = ( uvmx & 3 ) << 1 ;\n uvmy = ( uvmy & 3 ) << 1 ;\n if ( ! v -> rnd ) {\n h264chroma -> put_h264_chroma_pixels_tab [ 0 ] ( s -> dest [ 1 ] + off , srcU , s -> uvlinesize , 8 , uvmx , uvmy ) ;\n h264chroma -> put_h264_chroma_pixels_tab [ 0 ] ( s -> dest [ 2 ] + off , srcV , s -> uvlinesize , 8 , uvmx , uvmy ) ;\n }\n else {\n v -> vc1dsp . put_no_rnd_vc1_chroma_pixels_tab [ 0 ] ( s -> dest [ 1 ] + off , srcU , s -> uvlinesize , 8 , uvmx , uvmy ) ;\n v -> vc1dsp . put_no_rnd_vc1_chroma_pixels_tab [ 0 ] ( s -> dest [ 2 ] + off , srcV , s -> uvlinesize , 8 , uvmx , uvmy ) ;\n }\n }"}
{"idx": 15353, "target": 1, "func": "static void nlm_msg_res_unmatched_value_destroy ( gpointer value ) {\n nlm_msg_res_unmatched_data * umd = ( nlm_msg_res_unmatched_data * ) value ;\n g_free ( ( gpointer ) umd -> cookie ) ;\n g_free ( umd ) ;\n }"}
{"idx": 15354, "target": 0, "func": "static int dissect_rsl_ie_access_delay ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_tree * ie_tree ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_ACCESS_DELAY ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 2 , ett_ie_access_delay , NULL , \"Access Delay IE \" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_acc_delay , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n return offset ;\n }"}
{"idx": 15355, "target": 0, "func": "static int sse ( MpegEncContext * s , uint8_t * src1 , uint8_t * src2 , int w , int h , int stride ) {\n uint32_t * sq = ff_squareTbl + 256 ;\n int acc = 0 ;\n int x , y ;\n if ( w == 16 && h == 16 ) return s -> dsp . sse [ 0 ] ( NULL , src1 , src2 , stride , 16 ) ;\n else if ( w == 8 && h == 8 ) return s -> dsp . sse [ 1 ] ( NULL , src1 , src2 , stride , 8 ) ;\n for ( y = 0 ;\n y < h ;\n y ++ ) {\n for ( x = 0 ;\n x < w ;\n x ++ ) {\n acc += sq [ src1 [ x + y * stride ] - src2 [ x + y * stride ] ] ;\n }\n }\n assert ( acc >= 0 ) ;\n return acc ;\n }"}
{"idx": 15356, "target": 0, "func": "static int do_unlock_tables ( MYSQL * mysql_con ) {\n return mysql_query_with_error_report ( mysql_con , 0 , \"UNLOCK TABLES\" ) ;\n }"}
{"idx": 15357, "target": 0, "func": "static inline int get_penalty_factor ( int lambda , int lambda2 , int type ) {\n switch ( type & 0xFF ) {\n default : case FF_CMP_SAD : return lambda >> FF_LAMBDA_SHIFT ;\n case FF_CMP_DCT : return ( 3 * lambda ) >> ( FF_LAMBDA_SHIFT + 1 ) ;\n case FF_CMP_SATD : case FF_CMP_DCT264 : return ( 2 * lambda ) >> FF_LAMBDA_SHIFT ;\n case FF_CMP_RD : case FF_CMP_PSNR : case FF_CMP_SSE : case FF_CMP_NSSE : return lambda2 >> FF_LAMBDA_SHIFT ;\n case FF_CMP_BIT : return 1 ;\n }\n }"}
{"idx": 15358, "target": 0, "func": "static void update_state_rt ( VP9_COMP * cpi , PICK_MODE_CONTEXT * ctx , int mi_row , int mi_col , int bsize ) {\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCK * const x = & cpi -> mb ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n MB_MODE_INFO * const mbmi = & xd -> mi [ 0 ] . src_mi -> mbmi ;\n const struct segmentation * const seg = & cm -> seg ;\n * ( xd -> mi [ 0 ] . src_mi ) = ctx -> mic ;\n xd -> mi [ 0 ] . src_mi = & xd -> mi [ 0 ] ;\n if ( ( cpi -> oxcf . aq_mode == CYCLIC_REFRESH_AQ ) && seg -> enabled ) {\n vp9_cyclic_refresh_update_segment ( cpi , & xd -> mi [ 0 ] . src_mi -> mbmi , mi_row , mi_col , bsize , 1 ) ;\n vp9_init_plane_quantizers ( cpi , x ) ;\n }\n if ( is_inter_block ( mbmi ) ) {\n vp9_update_mv_count ( cm , xd ) ;\n if ( cm -> interp_filter == SWITCHABLE ) {\n const int pred_ctx = vp9_get_pred_context_switchable_interp ( xd ) ;\n ++ cm -> counts . switchable_interp [ pred_ctx ] [ mbmi -> interp_filter ] ;\n }\n }\n x -> skip = ctx -> skip ;\n x -> skip_txfm [ 0 ] = mbmi -> segment_id ? 0 : ctx -> skip_txfm [ 0 ] ;\n }"}
{"idx": 15359, "target": 0, "func": "static __inline__ __u32 ethtool_cmd_speed ( const struct ethtool_cmd * ep ) {\n return ( ep -> speed_hi << 16 ) | ep -> speed ;\n }"}
{"idx": 15360, "target": 0, "func": "extern int name ( int , locale_t ) __THROW __exctype_l ( isalnum_l ) ;\n __exctype_l ( isalpha_l ) ;\n __exctype_l ( iscntrl_l ) ;\n __exctype_l ( isdigit_l ) ;\n __exctype_l ( islower_l ) ;\n __exctype_l ( isgraph_l )"}
{"idx": 15361, "target": 0, "func": "static void test_bug43560 ( void ) {\n MYSQL * conn ;\n uint rc ;\n MYSQL_STMT * stmt = 0 ;\n MYSQL_BIND bind ;\n my_bool is_null = 0 ;\n char buffer [ 256 ] ;\n const uint BUFSIZE = sizeof ( buffer ) ;\n const char * values [ ] = {\n \"eins\" , \"zwei\" , \"drei\" , \"viele\" , NULL }\n ;\n const char insert_str [ ] = \"INSERT INTO t1 (c2) VALUES (?)\" ;\n unsigned long length ;\n const unsigned int drop_db = opt_drop_db ;\n DBUG_ENTER ( \"test_bug43560\" ) ;\n myheader ( \"test_bug43560\" ) ;\n if ( ! strstr ( mysql -> server_version , \"debug\" ) ) {\n fprintf ( stdout , \"Skipping test_bug43560: server not DEBUG version\\n\" ) ;\n DBUG_VOID_RETURN ;\n }\n conn = client_connect ( 0 , MYSQL_PROTOCOL_TCP , 0 ) ;\n rc = mysql_query ( conn , \"DROP TABLE IF EXISTS t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( conn , \"CREATE TABLE t1 (c1 INT PRIMARY KEY AUTO_INCREMENT, c2 CHAR(10))\" ) ;\n myquery ( rc ) ;\n stmt = mysql_stmt_init ( conn ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_prepare ( stmt , insert_str , strlen ( insert_str ) ) ;\n check_execute ( stmt , rc ) ;\n memset ( & bind , 0 , sizeof ( bind ) ) ;\n bind . buffer_type = MYSQL_TYPE_STRING ;\n bind . buffer_length = BUFSIZE ;\n bind . buffer = buffer ;\n bind . is_null = & is_null ;\n bind . length = & length ;\n rc = mysql_stmt_bind_param ( stmt , & bind ) ;\n check_execute ( stmt , rc ) ;\n strncpy ( buffer , values [ 0 ] , BUFSIZE ) ;\n length = strlen ( buffer ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_query ( conn , \"SET SESSION debug='+d,close_conn_after_stmt_execute'\" ) ;\n myquery ( rc ) ;\n strncpy ( buffer , values [ 1 ] , BUFSIZE ) ;\n length = strlen ( buffer ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n DIE_UNLESS ( rc && mysql_stmt_errno ( stmt ) == CR_SERVER_LOST ) ;\n strncpy ( buffer , values [ 2 ] , BUFSIZE ) ;\n length = strlen ( buffer ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n DIE_UNLESS ( rc && mysql_stmt_errno ( stmt ) == CR_SERVER_LOST ) ;\n mysql_stmt_close ( stmt ) ;\n opt_drop_db = 0 ;\n client_disconnect ( conn ) ;\n rc = mysql_query ( mysql , \"DROP TABLE t1\" ) ;\n myquery ( rc ) ;\n opt_drop_db = drop_db ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 15362, "target": 0, "func": "static int decode_i_frame ( FourXContext * f , AVFrame * frame , const uint8_t * buf , int length ) {\n int x , y , ret ;\n const int width = f -> avctx -> width ;\n const int height = f -> avctx -> height ;\n const unsigned int bitstream_size = AV_RL32 ( buf ) ;\n int token_count av_unused ;\n unsigned int prestream_size ;\n const uint8_t * prestream ;\n if ( length < bitstream_size + 12 ) {\n av_log ( f -> avctx , AV_LOG_ERROR , \"packet size too small\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n token_count = AV_RL32 ( buf + bitstream_size + 8 ) ;\n prestream_size = 4 * AV_RL32 ( buf + bitstream_size + 4 ) ;\n prestream = buf + bitstream_size + 12 ;\n if ( prestream_size + bitstream_size + 12 != length || bitstream_size > ( 1 << 26 ) || prestream_size > ( 1 << 26 ) ) {\n av_log ( f -> avctx , AV_LOG_ERROR , \"size mismatch %d %d %d\\n\" , prestream_size , bitstream_size , length ) ;\n return AVERROR_INVALIDDATA ;\n }\n prestream = read_huffman_tables ( f , prestream ) ;\n if ( ! prestream ) {\n av_log ( f -> avctx , AV_LOG_ERROR , \"Error reading Huffman tables.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n init_get_bits ( & f -> gb , buf + 4 , 8 * bitstream_size ) ;\n prestream_size = length + buf - prestream ;\n av_fast_malloc ( & f -> bitstream_buffer , & f -> bitstream_buffer_size , prestream_size + FF_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( ! f -> bitstream_buffer ) return AVERROR ( ENOMEM ) ;\n f -> dsp . bswap_buf ( f -> bitstream_buffer , ( const uint32_t * ) prestream , prestream_size / 4 ) ;\n memset ( ( uint8_t * ) f -> bitstream_buffer + prestream_size , 0 , FF_INPUT_BUFFER_PADDING_SIZE ) ;\n init_get_bits ( & f -> pre_gb , f -> bitstream_buffer , 8 * prestream_size ) ;\n f -> last_dc = 0 * 128 * 8 * 8 ;\n for ( y = 0 ;\n y < height ;\n y += 16 ) {\n for ( x = 0 ;\n x < width ;\n x += 16 ) {\n if ( ( ret = decode_i_mb ( f ) ) < 0 ) return ret ;\n idct_put ( f , frame , x , y ) ;\n }\n }\n if ( get_vlc2 ( & f -> pre_gb , f -> pre_vlc . table , ACDC_VLC_BITS , 3 ) != 256 ) av_log ( f -> avctx , AV_LOG_ERROR , \"end mismatch\\n\" ) ;\n return 0 ;\n }"}
{"idx": 15363, "target": 0, "func": "static void AddTok ( GrowBuf * gb , char * buf , int islit ) {\n if ( islit ) GrowBufferAdd ( gb , '/' ) ;\n GrowBufferAddStr ( gb , buf ) ;\n GrowBufferAdd ( gb , ' ' ) ;\n }"}
{"idx": 15364, "target": 0, "func": "static int get_scale_idx ( GetBitContext * gb , int ref ) {\n int t = get_vlc2 ( gb , dscf_vlc . table , MPC7_DSCF_BITS , 1 ) - 7 ;\n if ( t == 8 ) return get_bits ( gb , 6 ) ;\n return av_clip_uintp2 ( ref + t , 7 ) ;\n }"}
{"idx": 15365, "target": 0, "func": "static int dissect_h245_T_enhancedReferencePicSelect ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_enhancedReferencePicSelect , T_enhancedReferencePicSelect_sequence ) ;\n return offset ;\n }"}
{"idx": 15366, "target": 0, "func": "static int dissect_pvfs_time ( tvbuff_t * tvb , proto_tree * tree , int offset , int hf_time , int hf_time_sec , int hf_time_nsec ) {\n guint32 seconds ;\n guint32 nseconds ;\n nstime_t ts ;\n proto_item * time_item ;\n proto_tree * time_tree ;\n ts . secs = seconds = tvb_get_letohl ( tvb , offset ) ;\n ts . nsecs = nseconds = tvb_get_letohl ( tvb , offset + 4 ) ;\n time_item = proto_tree_add_time ( tree , hf_time , tvb , offset , 8 , & ts ) ;\n time_tree = proto_item_add_subtree ( time_item , ett_pvfs_time ) ;\n proto_tree_add_uint ( time_tree , hf_time_sec , tvb , offset , 4 , seconds ) ;\n proto_tree_add_uint ( time_tree , hf_time_nsec , tvb , offset + 4 , 4 , nseconds ) ;\n offset += 8 ;\n return offset ;\n }"}
{"idx": 15367, "target": 0, "func": "static void pdf_set_color ( fz_context * ctx , pdf_run_processor * pr , int what , float * v ) {\n pdf_gstate * gstate = pr -> gstate + pr -> gtop ;\n pdf_material * mat ;\n gstate = pdf_flush_text ( ctx , pr ) ;\n mat = what == PDF_FILL ? & gstate -> fill : & gstate -> stroke ;\n switch ( mat -> kind ) {\n case PDF_MAT_PATTERN : case PDF_MAT_COLOR : fz_clamp_color ( ctx , mat -> colorspace , v , mat -> v ) ;\n break ;\n default : fz_warn ( ctx , \"color incompatible with material\" ) ;\n }\n mat -> gstate_num = pr -> gparent ;\n }"}
{"idx": 15368, "target": 0, "func": "static int dissect_btgatt_microbit_led_matrix ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , void * data ) {\n btatt_data_t * att_data = ( btatt_data_t * ) data ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) return - 1 ;\n proto_tree_add_item ( tree , hf_gatt_microbit_led_matrix , tvb , 0 , tvb_captured_length ( tvb ) , ENC_NA ) ;\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 15369, "target": 0, "func": "int TSTrafficServerVersionGetPatch ( ) {\n return ts_patch_version ;\n }"}
{"idx": 15370, "target": 1, "func": "void vp9_init_dequantizer ( VP9_COMMON * cm ) {\n int q ;\n for ( q = 0 ;\n q < QINDEX_RANGE ;\n q ++ ) {\n cm -> y_dequant [ q ] [ 0 ] = vp9_dc_quant ( q , cm -> y_dc_delta_q ) ;\n cm -> y_dequant [ q ] [ 1 ] = vp9_ac_quant ( q , 0 ) ;\n cm -> uv_dequant [ q ] [ 0 ] = vp9_dc_quant ( q , cm -> uv_dc_delta_q ) ;\n cm -> uv_dequant [ q ] [ 1 ] = vp9_ac_quant ( q , cm -> uv_ac_delta_q ) ;\n }\n }"}
{"idx": 15371, "target": 0, "func": "static int mpeg4_decode_gop_header ( MpegEncContext * s , GetBitContext * gb ) {\n int hours , minutes , seconds ;\n unsigned time_code = show_bits ( gb , 18 ) ;\n if ( time_code & 0x40 ) {\n hours = time_code >> 13 ;\n minutes = time_code >> 7 & 0x3f ;\n seconds = time_code & 0x3f ;\n s -> time_base = seconds + 60 * ( minutes + 60 * hours ) ;\n skip_bits ( gb , 20 ) ;\n }\n else {\n av_log ( s -> avctx , AV_LOG_WARNING , \"GOP header missing marker_bit\\n\" ) ;\n }\n return 0 ;\n }"}
{"idx": 15372, "target": 0, "func": "int ff_rv34_get_start_offset ( GetBitContext * gb , int mb_size ) {\n int i ;\n for ( i = 0 ;\n i < 5 ;\n i ++ ) if ( rv34_mb_max_sizes [ i ] >= mb_size - 1 ) break ;\n return rv34_mb_bits_sizes [ i ] ;\n }"}
{"idx": 15373, "target": 0, "func": "unsigned int vp8_sub_pixel_variance8x8_neon ( const unsigned char * src , int src_stride , int xoffset , int yoffset , const unsigned char * dst , int dst_stride , unsigned int * sse ) {\n DECLARE_ALIGNED_ARRAY ( kAlign16 , uint8_t , temp2 , kHeight8 * kWidth8 ) ;\n DECLARE_ALIGNED_ARRAY ( kAlign16 , uint8_t , fdata3 , kHeight8PlusOne * kWidth8 ) ;\n if ( xoffset == 0 ) {\n var_filter_block2d_bil_w8 ( src , temp2 , src_stride , kWidth8 , kHeight8 , kWidth8 , bilinear_taps_coeff [ yoffset ] ) ;\n }\n else if ( yoffset == 0 ) {\n var_filter_block2d_bil_w8 ( src , temp2 , src_stride , kPixelStepOne , kHeight8PlusOne , kWidth8 , bilinear_taps_coeff [ xoffset ] ) ;\n }\n else {\n var_filter_block2d_bil_w8 ( src , fdata3 , src_stride , kPixelStepOne , kHeight8PlusOne , kWidth8 , bilinear_taps_coeff [ xoffset ] ) ;\n var_filter_block2d_bil_w8 ( fdata3 , temp2 , kWidth8 , kWidth8 , kHeight8 , kWidth8 , bilinear_taps_coeff [ yoffset ] ) ;\n }\n return variance8x8_neon ( temp2 , kWidth8 , dst , dst_stride , sse ) ;\n }"}
{"idx": 15374, "target": 0, "func": "static void cmd_window_left ( const char * data , SERVER_REC * server , void * item ) {\n int refnum ;\n refnum = window_refnum_left ( active_win -> refnum , TRUE ) ;\n if ( refnum != - 1 ) window_set_active ( window_find_refnum ( refnum ) ) ;\n }"}
{"idx": 15375, "target": 0, "func": "static time_t time_from_tm ( struct tm * t ) {\n # if HAVE_TIMEGM return ( timegm ( t ) ) ;\n # elif HAVE__MKGMTIME64 return ( _mkgmtime64 ( t ) ) ;\n # else if ( mktime ( t ) == ( time_t ) - 1 ) return ( ( time_t ) - 1 ) ;\n return ( t -> tm_sec + t -> tm_min * 60 + t -> tm_hour * 3600 + t -> tm_yday * 86400 + ( t -> tm_year - 70 ) * 31536000 + ( ( t -> tm_year - 69 ) / 4 ) * 86400 - ( ( t -> tm_year - 1 ) / 100 ) * 86400 + ( ( t -> tm_year + 299 ) / 400 ) * 86400 ) ;\n # endif }"}
{"idx": 15376, "target": 0, "func": "static void init_frame_bufs ( VP9_COMMON * cm ) {\n int i ;\n cm -> new_fb_idx = FRAME_BUFFERS - 1 ;\n cm -> frame_bufs [ cm -> new_fb_idx ] . ref_count = 1 ;\n for ( i = 0 ;\n i < REF_FRAMES ;\n ++ i ) {\n cm -> ref_frame_map [ i ] = i ;\n cm -> frame_bufs [ i ] . ref_count = 1 ;\n }\n }"}
{"idx": 15377, "target": 1, "func": "static UChar32 _UTF32GetNextUChar ( UConverterToUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n switch ( pArgs -> converter -> mode ) {\n case 8 : return T_UConverter_getNextUChar_UTF32_BE ( pArgs , pErrorCode ) ;\n case 9 : return T_UConverter_getNextUChar_UTF32_LE ( pArgs , pErrorCode ) ;\n default : return UCNV_GET_NEXT_UCHAR_USE_TO_U ;\n }\n }"}
{"idx": 15378, "target": 0, "func": "void isup_calls_init_tap ( void ) {\n GString * error_string ;\n if ( have_isup_tap_listener == FALSE ) {\n error_string = register_tap_listener ( \"isup\" , & ( the_tapinfo_struct . isup_dummy ) , NULL , 0 , voip_calls_dlg_reset , isup_calls_packet , voip_calls_dlg_draw ) ;\n if ( error_string != NULL ) {\n simple_dialog ( ESD_TYPE_ERROR , ESD_BTN_OK , \"%s\" , error_string -> str ) ;\n g_string_free ( error_string , TRUE ) ;\n exit ( 1 ) ;\n }\n have_isup_tap_listener = TRUE ;\n }\n }"}
{"idx": 15379, "target": 0, "func": "static vpx_codec_err_t ctrl_set_cpuused ( vpx_codec_alg_priv_t * ctx , va_list args ) {\n struct vp9_extracfg extra_cfg = ctx -> extra_cfg ;\n extra_cfg . cpu_used = CAST ( VP8E_SET_CPUUSED , args ) ;\n return update_extra_cfg ( ctx , & extra_cfg ) ;\n }"}
{"idx": 15380, "target": 0, "func": "static void pdf_set_pattern ( fz_context * ctx , pdf_run_processor * pr , int what , pdf_pattern * pat , float * v ) {\n pdf_gstate * gs ;\n pdf_material * mat ;\n gs = pdf_flush_text ( ctx , pr ) ;\n mat = what == PDF_FILL ? & gs -> fill : & gs -> stroke ;\n pdf_drop_pattern ( ctx , mat -> pattern ) ;\n mat -> pattern = NULL ;\n mat -> kind = PDF_MAT_PATTERN ;\n if ( pat ) mat -> pattern = pdf_keep_pattern ( ctx , pat ) ;\n if ( v ) pdf_set_color ( ctx , pr , what , v ) ;\n mat -> gstate_num = pr -> gparent ;\n }"}
{"idx": 15381, "target": 0, "func": "int TSHttpSsnDebugGet ( TSHttpSsn ssnp ) {\n sdk_assert ( sdk_sanity_check_http_ssn ( ssnp ) == TS_SUCCESS ) ;\n return ( reinterpret_cast < ProxyClientSession * > ( ssnp ) ) -> debug ( ) ;\n }"}
{"idx": 15382, "target": 0, "func": "int qemuMonitorTextGetBlockStatsParamsNumber ( qemuMonitorPtr mon , int * nparams ) {\n char * info = NULL ;\n int ret = - 1 ;\n int num = 0 ;\n const char * p , * eol ;\n if ( qemuMonitorHMPCommand ( mon , \"info blockstats\" , & info ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , _ ( \"'info blockstats' command failed\" ) ) ;\n goto cleanup ;\n }\n if ( strstr ( info , \"\\ninfo \" ) ) {\n qemuReportError ( VIR_ERR_OPERATION_INVALID , \"%s\" , _ ( \"'info blockstats' not supported by this qemu\" ) ) ;\n goto cleanup ;\n }\n p = info ;\n eol = strchr ( p , '\\n' ) ;\n if ( ! eol ) eol = p + strlen ( p ) ;\n p = strchr ( p , ' ' ) ;\n while ( p && p < eol ) {\n if ( STRPREFIX ( p , \" rd_bytes=\" ) || STRPREFIX ( p , \" wr_bytes=\" ) || STRPREFIX ( p , \" rd_operations=\" ) || STRPREFIX ( p , \" wr_operations=\" ) || STRPREFIX ( p , \" rd_total_times_ns=\" ) || STRPREFIX ( p , \" wr_total_times_ns=\" ) || STRPREFIX ( p , \" flush_operations=\" ) || STRPREFIX ( p , \" flush_total_times_ns=\" ) ) {\n num ++ ;\n }\n else {\n VIR_DEBUG ( \"unknown block stat near %s\" , p ) ;\n }\n p = strchr ( p + 1 , ' ' ) ;\n }\n * nparams = num ;\n ret = 0 ;\n cleanup : VIR_FREE ( info ) ;\n return ret ;\n }"}
{"idx": 15383, "target": 0, "func": "static void http_badreq_readcb ( struct bufferevent * bev , void * arg ) {\n const char * what = \"Hello, 127.0.0.1\" ;\n const char * bad_request = \"400 Bad Request\" ;\n event_debug ( ( \"%s: %s\\n\" , __func__ , EVBUFFER_DATA ( bev -> input ) ) ) ;\n if ( evbuffer_find ( bev -> input , ( const unsigned char * ) bad_request , strlen ( bad_request ) ) != NULL ) {\n event_debug ( ( \"%s: bad request detected\" , __func__ ) ) ;\n test_ok = - 10 ;\n bufferevent_disable ( bev , EV_READ ) ;\n event_loopexit ( NULL ) ;\n return ;\n }\n if ( evbuffer_find ( bev -> input , ( const unsigned char * ) what , strlen ( what ) ) != NULL ) {\n struct evhttp_request * req = evhttp_request_new ( NULL , NULL ) ;\n enum message_read_status done ;\n req -> kind = EVHTTP_RESPONSE ;\n done = evhttp_parse_firstline ( req , bev -> input ) ;\n if ( done != ALL_DATA_READ ) goto out ;\n done = evhttp_parse_headers ( req , bev -> input ) ;\n if ( done != ALL_DATA_READ ) goto out ;\n if ( done == 1 && evhttp_find_header ( req -> input_headers , \"Content-Type\" ) != NULL ) test_ok ++ ;\n out : evhttp_request_free ( req ) ;\n evbuffer_drain ( bev -> input , EVBUFFER_LENGTH ( bev -> input ) ) ;\n }\n shutdown ( bev -> ev_read . ev_fd , SHUT_WR ) ;\n }"}
{"idx": 15384, "target": 0, "func": "static bool contain_subplans_walker ( Node * node , void * context ) {\n if ( node == NULL ) return false ;\n if ( IsA ( node , SubPlan ) || IsA ( node , AlternativeSubPlan ) || IsA ( node , SubLink ) ) return true ;\n return expression_tree_walker ( node , contain_subplans_walker , context ) ;\n }"}
{"idx": 15385, "target": 0, "func": "void vp9_init_intra_predictors ( ) {\n # define INIT_ALL_SIZES ( p , type ) p [ TX_4X4 ] = vp9_ ## type ## _predictor_4x4 ;\n p [ TX_8X8 ] = vp9_ ## type ## _predictor_8x8 ;\n p [ TX_16X16 ] = vp9_ ## type ## _predictor_16x16 ;\n p [ TX_32X32 ] = vp9_ ## type ## _predictor_32x32 INIT_ALL_SIZES ( pred [ V_PRED ] , v ) ;\n INIT_ALL_SIZES ( pred [ H_PRED ] , h ) ;\n INIT_ALL_SIZES ( pred [ D207_PRED ] , d207 ) ;\n INIT_ALL_SIZES ( pred [ D45_PRED ] , d45 ) ;\n INIT_ALL_SIZES ( pred [ D63_PRED ] , d63 ) ;\n INIT_ALL_SIZES ( pred [ D117_PRED ] , d117 ) ;\n INIT_ALL_SIZES ( pred [ D135_PRED ] , d135 ) ;\n INIT_ALL_SIZES ( pred [ D153_PRED ] , d153 ) ;\n INIT_ALL_SIZES ( pred [ TM_PRED ] , tm ) ;\n INIT_ALL_SIZES ( dc_pred [ 0 ] [ 0 ] , dc_128 ) ;\n INIT_ALL_SIZES ( dc_pred [ 0 ] [ 1 ] , dc_top ) ;\n INIT_ALL_SIZES ( dc_pred [ 1 ] [ 0 ] , dc_left ) ;\n INIT_ALL_SIZES ( dc_pred [ 1 ] [ 1 ] , dc ) ;\n # if CONFIG_VP9_HIGHBITDEPTH INIT_ALL_SIZES ( pred_high [ V_PRED ] , high_v ) ;\n INIT_ALL_SIZES ( pred_high [ H_PRED ] , high_h ) ;\n INIT_ALL_SIZES ( pred_high [ D207_PRED ] , high_d207 ) ;\n INIT_ALL_SIZES ( pred_high [ D45_PRED ] , high_d45 ) ;\n INIT_ALL_SIZES ( pred_high [ D63_PRED ] , high_d63 ) ;\n INIT_ALL_SIZES ( pred_high [ D117_PRED ] , high_d117 ) ;\n INIT_ALL_SIZES ( pred_high [ D135_PRED ] , high_d135 ) ;\n INIT_ALL_SIZES ( pred_high [ D153_PRED ] , high_d153 ) ;\n INIT_ALL_SIZES ( pred_high [ TM_PRED ] , high_tm ) ;\n INIT_ALL_SIZES ( dc_pred_high [ 0 ] [ 0 ] , high_dc_128 ) ;\n INIT_ALL_SIZES ( dc_pred_high [ 0 ] [ 1 ] , high_dc_top ) ;\n INIT_ALL_SIZES ( dc_pred_high [ 1 ] [ 0 ] , high_dc_left ) ;\n INIT_ALL_SIZES ( dc_pred_high [ 1 ] [ 1 ] , high_dc ) ;\n # endif # undef intra_pred_allsizes }"}
{"idx": 15386, "target": 0, "func": "void vp8_denoiser_denoise_mb ( VP8_DENOISER * denoiser , MACROBLOCK * x , unsigned int best_sse , unsigned int zero_mv_sse , int recon_yoffset , int recon_uvoffset , loop_filter_info_n * lfi_n , int mb_row , int mb_col , int block_index ) {\n int mv_row ;\n int mv_col ;\n unsigned int motion_threshold ;\n unsigned int motion_magnitude2 ;\n unsigned int sse_thresh ;\n int sse_diff_thresh = 0 ;\n int apply_spatial_loop_filter = 1 ;\n MV_REFERENCE_FRAME frame = x -> best_reference_frame ;\n MV_REFERENCE_FRAME zero_frame = x -> best_zeromv_reference_frame ;\n enum vp8_denoiser_decision decision = FILTER_BLOCK ;\n enum vp8_denoiser_decision decision_u = COPY_BLOCK ;\n enum vp8_denoiser_decision decision_v = COPY_BLOCK ;\n if ( zero_frame ) {\n YV12_BUFFER_CONFIG * src = & denoiser -> yv12_running_avg [ frame ] ;\n YV12_BUFFER_CONFIG * dst = & denoiser -> yv12_mc_running_avg ;\n YV12_BUFFER_CONFIG saved_pre , saved_dst ;\n MB_MODE_INFO saved_mbmi ;\n MACROBLOCKD * filter_xd = & x -> e_mbd ;\n MB_MODE_INFO * mbmi = & filter_xd -> mode_info_context -> mbmi ;\n int sse_diff = 0 ;\n const int zero_bias = denoiser -> denoise_pars . denoise_mv_bias ;\n zero_mv_sse = ( unsigned int ) ( ( int64_t ) zero_mv_sse * zero_bias / 100 ) ;\n sse_diff = zero_mv_sse - best_sse ;\n saved_mbmi = * mbmi ;\n mbmi -> ref_frame = x -> best_reference_frame ;\n mbmi -> mode = x -> best_sse_inter_mode ;\n mbmi -> mv = x -> best_sse_mv ;\n mbmi -> need_to_clamp_mvs = x -> need_to_clamp_best_mvs ;\n mv_col = x -> best_sse_mv . as_mv . col ;\n mv_row = x -> best_sse_mv . as_mv . row ;\n if ( ( unsigned int ) ( mv_row * mv_row + mv_col * mv_col ) <= NOISE_MOTION_THRESHOLD ) sse_diff_thresh = ( int ) SSE_DIFF_THRESHOLD ;\n if ( frame == INTRA_FRAME || sse_diff <= sse_diff_thresh ) {\n mbmi -> ref_frame = x -> best_zeromv_reference_frame ;\n src = & denoiser -> yv12_running_avg [ zero_frame ] ;\n mbmi -> mode = ZEROMV ;\n mbmi -> mv . as_int = 0 ;\n x -> best_sse_inter_mode = ZEROMV ;\n x -> best_sse_mv . as_int = 0 ;\n best_sse = zero_mv_sse ;\n }\n saved_pre = filter_xd -> pre ;\n saved_dst = filter_xd -> dst ;\n filter_xd -> pre . y_buffer = src -> y_buffer + recon_yoffset ;\n filter_xd -> pre . u_buffer = src -> u_buffer + recon_uvoffset ;\n filter_xd -> pre . v_buffer = src -> v_buffer + recon_uvoffset ;\n filter_xd -> dst . y_buffer = dst -> y_buffer + recon_yoffset ;\n filter_xd -> dst . u_buffer = dst -> u_buffer + recon_uvoffset ;\n filter_xd -> dst . v_buffer = dst -> v_buffer + recon_uvoffset ;\n if ( ! x -> skip ) {\n vp8_build_inter_predictors_mb ( filter_xd ) ;\n }\n else {\n vp8_build_inter16x16_predictors_mb ( filter_xd , filter_xd -> dst . y_buffer , filter_xd -> dst . u_buffer , filter_xd -> dst . v_buffer , filter_xd -> dst . y_stride , filter_xd -> dst . uv_stride ) ;\n }\n filter_xd -> pre = saved_pre ;\n filter_xd -> dst = saved_dst ;\n * mbmi = saved_mbmi ;\n }\n mv_row = x -> best_sse_mv . as_mv . row ;\n mv_col = x -> best_sse_mv . as_mv . col ;\n motion_magnitude2 = mv_row * mv_row + mv_col * mv_col ;\n motion_threshold = denoiser -> denoise_pars . scale_motion_thresh * NOISE_MOTION_THRESHOLD ;\n if ( motion_magnitude2 < denoiser -> denoise_pars . scale_increase_filter * NOISE_MOTION_THRESHOLD ) x -> increase_denoising = 1 ;\n sse_thresh = denoiser -> denoise_pars . scale_sse_thresh * SSE_THRESHOLD ;\n if ( x -> increase_denoising ) sse_thresh = denoiser -> denoise_pars . scale_sse_thresh * SSE_THRESHOLD_HIGH ;\n if ( best_sse > sse_thresh || motion_magnitude2 > motion_threshold ) decision = COPY_BLOCK ;\n if ( decision == FILTER_BLOCK ) {\n unsigned char * mc_running_avg_y = denoiser -> yv12_mc_running_avg . y_buffer + recon_yoffset ;\n int mc_avg_y_stride = denoiser -> yv12_mc_running_avg . y_stride ;\n unsigned char * running_avg_y = denoiser -> yv12_running_avg [ INTRA_FRAME ] . y_buffer + recon_yoffset ;\n int avg_y_stride = denoiser -> yv12_running_avg [ INTRA_FRAME ] . y_stride ;\n decision = vp8_denoiser_filter ( mc_running_avg_y , mc_avg_y_stride , running_avg_y , avg_y_stride , x -> thismb , 16 , motion_magnitude2 , x -> increase_denoising ) ;\n denoiser -> denoise_state [ block_index ] = motion_magnitude2 > 0 ? kFilterNonZeroMV : kFilterZeroMV ;\n if ( denoiser -> denoiser_mode != kDenoiserOnYOnly && motion_magnitude2 == 0 && decision == FILTER_BLOCK ) {\n unsigned char * mc_running_avg_u = denoiser -> yv12_mc_running_avg . u_buffer + recon_uvoffset ;\n unsigned char * running_avg_u = denoiser -> yv12_running_avg [ INTRA_FRAME ] . u_buffer + recon_uvoffset ;\n unsigned char * mc_running_avg_v = denoiser -> yv12_mc_running_avg . v_buffer + recon_uvoffset ;\n unsigned char * running_avg_v = denoiser -> yv12_running_avg [ INTRA_FRAME ] . v_buffer + recon_uvoffset ;\n int mc_avg_uv_stride = denoiser -> yv12_mc_running_avg . uv_stride ;\n int avg_uv_stride = denoiser -> yv12_running_avg [ INTRA_FRAME ] . uv_stride ;\n int signal_stride = x -> block [ 16 ] . src_stride ;\n decision_u = vp8_denoiser_filter_uv ( mc_running_avg_u , mc_avg_uv_stride , running_avg_u , avg_uv_stride , x -> block [ 16 ] . src + * x -> block [ 16 ] . base_src , signal_stride , motion_magnitude2 , 0 ) ;\n decision_v = vp8_denoiser_filter_uv ( mc_running_avg_v , mc_avg_uv_stride , running_avg_v , avg_uv_stride , x -> block [ 20 ] . src + * x -> block [ 20 ] . base_src , signal_stride , motion_magnitude2 , 0 ) ;\n }\n }\n if ( decision == COPY_BLOCK ) {\n vp8_copy_mem16x16 ( x -> thismb , 16 , denoiser -> yv12_running_avg [ INTRA_FRAME ] . y_buffer + recon_yoffset , denoiser -> yv12_running_avg [ INTRA_FRAME ] . y_stride ) ;\n denoiser -> denoise_state [ block_index ] = kNoFilter ;\n }\n if ( denoiser -> denoiser_mode != kDenoiserOnYOnly ) {\n if ( decision_u == COPY_BLOCK ) {\n vp8_copy_mem8x8 ( x -> block [ 16 ] . src + * x -> block [ 16 ] . base_src , x -> block [ 16 ] . src_stride , denoiser -> yv12_running_avg [ INTRA_FRAME ] . u_buffer + recon_uvoffset , denoiser -> yv12_running_avg [ INTRA_FRAME ] . uv_stride ) ;\n }\n if ( decision_v == COPY_BLOCK ) {\n vp8_copy_mem8x8 ( x -> block [ 20 ] . src + * x -> block [ 20 ] . base_src , x -> block [ 16 ] . src_stride , denoiser -> yv12_running_avg [ INTRA_FRAME ] . v_buffer + recon_uvoffset , denoiser -> yv12_running_avg [ INTRA_FRAME ] . uv_stride ) ;\n }\n }\n if ( apply_spatial_loop_filter ) {\n loop_filter_info lfi ;\n int apply_filter_col = 0 ;\n int apply_filter_row = 0 ;\n int apply_filter = 0 ;\n int y_stride = denoiser -> yv12_running_avg [ INTRA_FRAME ] . y_stride ;\n int uv_stride = denoiser -> yv12_running_avg [ INTRA_FRAME ] . uv_stride ;\n int filter_level = 32 ;\n int hev_index = lfi_n -> hev_thr_lut [ INTER_FRAME ] [ filter_level ] ;\n lfi . mblim = lfi_n -> mblim [ filter_level ] ;\n lfi . blim = lfi_n -> blim [ filter_level ] ;\n lfi . lim = lfi_n -> lim [ filter_level ] ;\n lfi . hev_thr = lfi_n -> hev_thr [ hev_index ] ;\n if ( mb_col > 0 ) {\n apply_filter_col = ! ( ( denoiser -> denoise_state [ block_index ] == denoiser -> denoise_state [ block_index - 1 ] ) && denoiser -> denoise_state [ block_index ] != kFilterNonZeroMV ) ;\n if ( apply_filter_col ) {\n apply_filter = 1 ;\n vp8_loop_filter_mbv ( denoiser -> yv12_running_avg [ INTRA_FRAME ] . y_buffer + recon_yoffset , NULL , NULL , y_stride , uv_stride , & lfi ) ;\n }\n }\n if ( mb_row > 0 ) {\n apply_filter_row = ! ( ( denoiser -> denoise_state [ block_index ] == denoiser -> denoise_state [ block_index - denoiser -> num_mb_cols ] ) && denoiser -> denoise_state [ block_index ] != kFilterNonZeroMV ) ;\n if ( apply_filter_row ) {\n apply_filter = 1 ;\n vp8_loop_filter_mbh ( denoiser -> yv12_running_avg [ INTRA_FRAME ] . y_buffer + recon_yoffset , NULL , NULL , y_stride , uv_stride , & lfi ) ;\n }\n }\n if ( apply_filter ) {\n vp8_copy_mem16x16 ( denoiser -> yv12_running_avg [ INTRA_FRAME ] . y_buffer + recon_yoffset , y_stride , x -> thismb , 16 ) ;\n }\n }\n }"}
{"idx": 15387, "target": 1, "func": "static hb_language_t * language_reference ( hb_language_t * l ) {\n hb_language_t * c = ( hb_language_t * ) calloc ( 1 , sizeof ( hb_language_t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * l ;\n return c ;\n }"}
{"idx": 15388, "target": 0, "func": "static void dissect_coap_opt_uint ( tvbuff_t * tvb , proto_item * head_item , proto_tree * subtree , gint offset , gint opt_length , int hf ) {\n guint i = 0 ;\n if ( opt_length != 0 ) {\n i = coap_get_opt_uint ( tvb , offset , opt_length ) ;\n }\n proto_tree_add_uint ( subtree , hf , tvb , offset , opt_length , i ) ;\n proto_item_append_text ( head_item , \": %u\" , i ) ;\n }"}
{"idx": 15389, "target": 0, "func": "static inline void uprv_arrayCopy ( const int16_t * src , int32_t srcStart , int16_t * dst , int32_t dstStart , int32_t count ) {\n uprv_memcpy ( dst + dstStart , src + srcStart , ( size_t ) count * sizeof ( * src ) ) ;\n }"}
{"idx": 15390, "target": 0, "func": "static int v410_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n AVFrame * pic = data ;\n uint8_t * src = avpkt -> data ;\n uint16_t * y , * u , * v ;\n uint32_t val ;\n int i , j ;\n if ( avpkt -> size < 4 * avctx -> height * avctx -> width ) {\n av_log ( avctx , AV_LOG_ERROR , \"Insufficient input data.\\n\" ) ;\n return AVERROR ( EINVAL ) ;\n }\n if ( ff_get_buffer ( avctx , pic , 0 ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Could not allocate buffer.\\n\" ) ;\n return AVERROR ( ENOMEM ) ;\n }\n pic -> key_frame = 1 ;\n pic -> pict_type = AV_PICTURE_TYPE_I ;\n y = ( uint16_t * ) pic -> data [ 0 ] ;\n u = ( uint16_t * ) pic -> data [ 1 ] ;\n v = ( uint16_t * ) pic -> data [ 2 ] ;\n for ( i = 0 ;\n i < avctx -> height ;\n i ++ ) {\n for ( j = 0 ;\n j < avctx -> width ;\n j ++ ) {\n val = AV_RL32 ( src ) ;\n u [ j ] = ( val >> 2 ) & 0x3FF ;\n y [ j ] = ( val >> 12 ) & 0x3FF ;\n v [ j ] = ( val >> 22 ) ;\n src += 4 ;\n }\n y += pic -> linesize [ 0 ] >> 1 ;\n u += pic -> linesize [ 1 ] >> 1 ;\n v += pic -> linesize [ 2 ] >> 1 ;\n }\n * got_frame = 1 ;\n return avpkt -> size ;\n }"}
{"idx": 15391, "target": 0, "func": "static int vvalue_tvb_get0 ( tvbuff_t * tvb _U_ , int offset _U_ , void * val _U_ ) {\n return 0 ;\n }"}
{"idx": 15392, "target": 0, "func": "static enum fetch_step vbf_stp_retry ( struct worker * wrk , struct busyobj * bo ) {\n struct vfp_ctx * vfc ;\n CHECK_OBJ_NOTNULL ( wrk , WORKER_MAGIC ) ;\n CHECK_OBJ_NOTNULL ( bo , BUSYOBJ_MAGIC ) ;\n vfc = bo -> vfc ;\n CHECK_OBJ_NOTNULL ( vfc , VFP_CTX_MAGIC ) ;\n assert ( bo -> fetch_objcore -> boc -> state <= BOS_REQ_DONE ) ;\n VSLb_ts_busyobj ( bo , \"Retry\" , W_TIM_real ( wrk ) ) ;\n assert ( bo -> director_state == DIR_S_NULL ) ;\n bo -> storage = NULL ;\n bo -> storage_hint = NULL ;\n bo -> do_esi = 0 ;\n bo -> do_stream = 1 ;\n VFP_Setup ( vfc ) ;\n VSL_ChgId ( bo -> vsl , \"bereq\" , \"retry\" , VXID_Get ( wrk , VSL_BACKENDMARKER ) ) ;\n VSLb_ts_busyobj ( bo , \"Start\" , bo -> t_prev ) ;\n http_VSL_log ( bo -> bereq ) ;\n return ( F_STP_STARTFETCH ) ;\n }"}
{"idx": 15393, "target": 0, "func": "int tm_nodeinfo ( tm_node_id * * list , int * nnodes ) {\n tm_node_id * np ;\n int i ;\n int n = 0 ;\n if ( ! init_done ) {\n return ( TM_BADINIT ) ;\n }\n if ( node_table == NULL ) {\n return ( TM_ESYSTEM ) ;\n }\n for ( np = node_table ;\n * np != TM_ERROR_NODE ;\n np ++ ) n ++ ;\n if ( ( np = ( tm_node_id * ) calloc ( n , sizeof ( tm_node_id ) ) ) == NULL ) {\n return ( TM_ERROR ) ;\n }\n for ( i = 0 ;\n i < n ;\n i ++ ) np [ i ] = node_table [ i ] ;\n * list = np ;\n * nnodes = i ;\n return ( TM_SUCCESS ) ;\n }"}
{"idx": 15394, "target": 0, "func": "static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 15395, "target": 0, "func": "static int tscc2_decode_slice ( TSCC2Context * c , int mb_y , const uint8_t * buf , int buf_size ) {\n int i , mb_x , q , ret ;\n int off ;\n init_get_bits ( & c -> gb , buf , buf_size * 8 ) ;\n for ( mb_x = 0 ;\n mb_x < c -> mb_width ;\n mb_x ++ ) {\n q = c -> slice_quants [ mb_x + c -> mb_width * mb_y ] ;\n if ( q == 0 || q == 3 ) continue ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n off = mb_x * 16 + mb_y * 8 * c -> pic . linesize [ i ] ;\n ret = tscc2_decode_mb ( c , c -> q [ q - 1 ] , c -> quant [ q - 1 ] - 2 , c -> pic . data [ i ] + off , c -> pic . linesize [ i ] , i ) ;\n if ( ret ) return ret ;\n }\n }\n return 0 ;\n }"}
{"idx": 15396, "target": 0, "func": "proto_item * proto_tree_add_float_format_value ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , float value , const char * format , ... ) {\n proto_item * pi ;\n va_list ap ;\n pi = proto_tree_add_float ( tree , hfindex , tvb , start , length , value ) ;\n if ( pi != tree ) {\n va_start ( ap , format ) ;\n proto_tree_set_representation_value ( pi , format , ap ) ;\n va_end ( ap ) ;\n }\n return pi ;\n }"}
{"idx": 15397, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( MimeHandlerViewTest , SingleRequest ) {\n GURL url ( embedded_test_server ( ) -> GetURL ( \"/testBasic.csv\" ) ) ;\n URLRequestCounter request_counter ( url ) ;\n RunTest ( \"testBasic.csv\" ) ;\n EXPECT_EQ ( 1 , request_counter . GetCount ( ) ) ;\n }"}
{"idx": 15398, "target": 0, "func": "static void deep_count_cancel ( NautilusDirectory * directory ) {\n if ( directory -> details -> deep_count_in_progress != NULL ) {\n g_assert ( NAUTILUS_IS_FILE ( directory -> details -> deep_count_file ) ) ;\n g_cancellable_cancel ( directory -> details -> deep_count_in_progress -> cancellable ) ;\n directory -> details -> deep_count_file -> details -> deep_counts_status = NAUTILUS_REQUEST_NOT_STARTED ;\n directory -> details -> deep_count_in_progress -> directory = NULL ;\n directory -> details -> deep_count_in_progress = NULL ;\n directory -> details -> deep_count_file = NULL ;\n async_job_end ( directory , \"deep count\" ) ;\n }\n }"}
{"idx": 15399, "target": 0, "func": "static int myisamchk ( MI_CHECK * param , char * filename ) {\n int error , lock_type , recreate ;\n int rep_quick = param -> testflag & ( T_QUICK | T_FORCE_UNIQUENESS ) ;\n MI_INFO * info ;\n File datafile ;\n char llbuff [ 22 ] , llbuff2 [ 22 ] ;\n my_bool state_updated = 0 ;\n MYISAM_SHARE * share ;\n DBUG_ENTER ( \"myisamchk\" ) ;\n param -> out_flag = error = param -> warning_printed = param -> error_printed = recreate = 0 ;\n datafile = 0 ;\n param -> isam_file_name = filename ;\n if ( ! ( info = mi_open ( filename , ( param -> testflag & ( T_DESCRIPT | T_READONLY ) ) ? O_RDONLY : O_RDWR , HA_OPEN_FOR_REPAIR | ( ( param -> testflag & T_WAIT_FOREVER ) ? HA_OPEN_WAIT_IF_LOCKED : ( param -> testflag & T_DESCRIPT ) ? HA_OPEN_IGNORE_IF_LOCKED : HA_OPEN_ABORT_IF_LOCKED ) ) ) ) {\n param -> error_printed = 1 ;\n switch ( my_errno ) {\n case HA_ERR_CRASHED : mi_check_print_error ( param , \"'%s' doesn't have a correct index definition. You need to recreate it before you can do a repair\" , filename ) ;\n break ;\n case HA_ERR_NOT_A_TABLE : mi_check_print_error ( param , \"'%s' is not a MyISAM-table\" , filename ) ;\n break ;\n case HA_ERR_CRASHED_ON_USAGE : mi_check_print_error ( param , \"'%s' is marked as crashed\" , filename ) ;\n break ;\n case HA_ERR_CRASHED_ON_REPAIR : mi_check_print_error ( param , \"'%s' is marked as crashed after last repair\" , filename ) ;\n break ;\n case HA_ERR_OLD_FILE : mi_check_print_error ( param , \"'%s' is an old type of MyISAM-table\" , filename ) ;\n break ;\n case HA_ERR_END_OF_FILE : mi_check_print_error ( param , \"Couldn't read complete header from '%s'\" , filename ) ;\n break ;\n case EAGAIN : mi_check_print_error ( param , \"'%s' is locked. Use -w to wait until unlocked\" , filename ) ;\n break ;\n case ENOENT : mi_check_print_error ( param , \"File '%s' doesn't exist\" , filename ) ;\n break ;\n case EACCES : mi_check_print_error ( param , \"You don't have permission to use '%s'\" , filename ) ;\n break ;\n default : mi_check_print_error ( param , \"%d when opening MyISAM-table '%s'\" , my_errno , filename ) ;\n break ;\n }\n DBUG_RETURN ( 1 ) ;\n }\n share = info -> s ;\n share -> options &= ~ HA_OPTION_READ_ONLY_DATA ;\n share -> tot_locks -= share -> r_locks ;\n share -> r_locks = 0 ;\n if ( param -> testflag & ( T_FAST | T_CHECK_ONLY_CHANGED ) ) {\n my_bool need_to_check = mi_is_crashed ( info ) || share -> state . open_count != 0 ;\n if ( ( param -> testflag & ( T_REP_ANY | T_SORT_RECORDS ) ) && ( ( share -> state . changed & ( STATE_CHANGED | STATE_CRASHED | STATE_CRASHED_ON_REPAIR ) || ! ( param -> testflag & T_CHECK_ONLY_CHANGED ) ) ) ) need_to_check = 1 ;\n if ( info -> s -> base . keys && info -> state -> records ) {\n if ( ( param -> testflag & T_STATISTICS ) && ( share -> state . changed & STATE_NOT_ANALYZED ) ) need_to_check = 1 ;\n if ( ( param -> testflag & T_SORT_INDEX ) && ( share -> state . changed & STATE_NOT_SORTED_PAGES ) ) need_to_check = 1 ;\n if ( ( param -> testflag & T_REP_BY_SORT ) && ( share -> state . changed & STATE_NOT_OPTIMIZED_KEYS ) ) need_to_check = 1 ;\n }\n if ( ( param -> testflag & T_CHECK_ONLY_CHANGED ) && ( share -> state . changed & ( STATE_CHANGED | STATE_CRASHED | STATE_CRASHED_ON_REPAIR ) ) ) need_to_check = 1 ;\n if ( ! need_to_check ) {\n if ( ! ( param -> testflag & T_SILENT ) || param -> testflag & T_INFO ) printf ( \"MyISAM file: %s is already checked\\n\" , filename ) ;\n if ( mi_close ( info ) ) {\n mi_check_print_error ( param , \"%d when closing MyISAM-table '%s'\" , my_errno , filename ) ;\n DBUG_RETURN ( 1 ) ;\n }\n DBUG_RETURN ( 0 ) ;\n }\n }\n if ( ( param -> testflag & ( T_REP_ANY | T_STATISTICS | T_SORT_RECORDS | T_SORT_INDEX ) ) && ( ( ( param -> testflag & T_UNPACK ) && share -> data_file_type == COMPRESSED_RECORD ) || mi_uint2korr ( share -> state . header . state_info_length ) != MI_STATE_INFO_SIZE || mi_uint2korr ( share -> state . header . base_info_length ) != MI_BASE_INFO_SIZE || mi_is_any_intersect_keys_active ( param -> keys_in_use , share -> base . keys , ~ share -> state . key_map ) || test_if_almost_full ( info ) || info -> s -> state . header . file_version [ 3 ] != myisam_file_magic [ 3 ] || ( set_collation && set_collation -> number != share -> state . header . language ) || myisam_block_size != MI_KEY_BLOCK_LENGTH ) ) {\n if ( set_collation ) param -> language = set_collation -> number ;\n if ( recreate_table ( param , & info , filename ) ) {\n ( void ) fprintf ( stderr , \"MyISAM-table '%s' is not fixed because of errors\\n\" , filename ) ;\n return ( - 1 ) ;\n }\n recreate = 1 ;\n if ( ! ( param -> testflag & T_REP_ANY ) ) {\n param -> testflag |= T_REP_BY_SORT ;\n if ( ! ( param -> testflag & T_SILENT ) ) printf ( \"- '%s' has old table-format. Recreating index\\n\" , filename ) ;\n rep_quick |= T_QUICK ;\n }\n share = info -> s ;\n share -> tot_locks -= share -> r_locks ;\n share -> r_locks = 0 ;\n }\n if ( param -> testflag & T_DESCRIPT ) {\n param -> total_files ++ ;\n param -> total_records += info -> state -> records ;\n param -> total_deleted += info -> state -> del ;\n descript ( param , info , filename ) ;\n }\n else {\n if ( ! stopwords_inited ++ ) ft_init_stopwords ( ) ;\n if ( ! ( param -> testflag & T_READONLY ) ) lock_type = F_WRLCK ;\n else lock_type = F_RDLCK ;\n if ( info -> lock_type == F_RDLCK ) info -> lock_type = F_UNLCK ;\n if ( _mi_readinfo ( info , lock_type , 0 ) ) {\n mi_check_print_error ( param , \"Can't lock indexfile of '%s', error: %d\" , filename , my_errno ) ;\n param -> error_printed = 0 ;\n goto end2 ;\n }\n mi_lock_database ( info , F_EXTRA_LCK ) ;\n datafile = info -> dfile ;\n if ( param -> testflag & ( T_REP_ANY | T_SORT_RECORDS | T_SORT_INDEX ) ) {\n if ( param -> testflag & T_REP_ANY ) {\n ulonglong tmp = share -> state . key_map ;\n mi_copy_keys_active ( share -> state . key_map , share -> base . keys , param -> keys_in_use ) ;\n if ( tmp != share -> state . key_map ) info -> update |= HA_STATE_CHANGED ;\n }\n if ( rep_quick && chk_del ( param , info , param -> testflag & ~ T_VERBOSE ) ) {\n if ( param -> testflag & T_FORCE_CREATE ) {\n rep_quick = 0 ;\n mi_check_print_info ( param , \"Creating new data file\\n\" ) ;\n }\n else {\n error = 1 ;\n mi_check_print_error ( param , \"Quick-recover aborted;\n Run recovery without switch 'q'\" ) ;\n }\n }\n if ( ! error ) {\n if ( ( param -> testflag & ( T_REP_BY_SORT | T_REP_PARALLEL ) ) && ( mi_is_any_key_active ( share -> state . key_map ) || ( rep_quick && ! param -> keys_in_use && ! recreate ) ) && mi_test_if_sort_rep ( info , info -> state -> records , info -> s -> state . key_map , param -> force_sort ) ) {\n if ( param -> testflag & T_REP_BY_SORT ) error = mi_repair_by_sort ( param , info , filename , rep_quick , FALSE ) ;\n else error = mi_repair_parallel ( param , info , filename , rep_quick , FALSE ) ;\n state_updated = 1 ;\n }\n else if ( param -> testflag & T_REP_ANY ) error = mi_repair ( param , info , filename , rep_quick , FALSE ) ;\n }\n if ( ! error && param -> testflag & T_SORT_RECORDS ) {\n # ifndef TO_BE_REMOVED if ( param -> out_flag & O_NEW_DATA ) {\n ( void ) my_close ( info -> dfile , MYF ( MY_WME ) ) ;\n error |= change_to_newfile ( filename , MI_NAME_DEXT , DATA_TMP_EXT , MYF ( 0 ) ) ;\n if ( mi_open_datafile ( info , info -> s , NULL , - 1 ) ) error = 1 ;\n param -> out_flag &= ~ O_NEW_DATA ;\n param -> read_cache . file = info -> dfile ;\n }\n # endif if ( ! error ) {\n uint key ;\n my_bool update_index = 1 ;\n for ( key = 0 ;\n key < share -> base . keys ;\n key ++ ) if ( share -> keyinfo [ key ] . flag & ( HA_BINARY_PACK_KEY | HA_FULLTEXT ) ) update_index = 0 ;\n error = mi_sort_records ( param , info , filename , param -> opt_sort_key , ( my_bool ) ! ( param -> testflag & T_REP ) , update_index ) ;\n datafile = info -> dfile ;\n if ( ! error && ! update_index ) {\n if ( param -> verbose ) puts ( \"Table had a compressed index;\n We must now recreate the index\" ) ;\n error = mi_repair_by_sort ( param , info , filename , 1 , FALSE ) ;\n }\n }\n }\n if ( ! error && param -> testflag & T_SORT_INDEX ) error = mi_sort_index ( param , info , filename , FALSE ) ;\n if ( ! error ) share -> state . changed &= ~ ( STATE_CHANGED | STATE_CRASHED | STATE_CRASHED_ON_REPAIR ) ;\n else mi_mark_crashed ( info ) ;\n }\n else if ( ( param -> testflag & T_CHECK ) || ! ( param -> testflag & T_AUTO_INC ) ) {\n if ( ! ( param -> testflag & T_SILENT ) || param -> testflag & T_INFO ) printf ( \"Checking MyISAM file: %s\\n\" , filename ) ;\n if ( ! ( param -> testflag & T_SILENT ) ) printf ( \"Data records: %7s Deleted blocks: %7s\\n\" , llstr ( info -> state -> records , llbuff ) , llstr ( info -> state -> del , llbuff2 ) ) ;\n error = chk_status ( param , info ) ;\n mi_intersect_keys_active ( share -> state . key_map , param -> keys_in_use ) ;\n error = chk_size ( param , info ) ;\n if ( ! error || ! ( param -> testflag & ( T_FAST | T_FORCE_CREATE ) ) ) error |= chk_del ( param , info , param -> testflag ) ;\n if ( ( ! error || ( ! ( param -> testflag & ( T_FAST | T_FORCE_CREATE ) ) && ! param -> start_check_pos ) ) ) {\n error |= chk_key ( param , info ) ;\n if ( ! error && ( param -> testflag & ( T_STATISTICS | T_AUTO_INC ) ) ) error = update_state_info ( param , info , ( ( param -> testflag & T_STATISTICS ) ? UPDATE_STAT : 0 ) | ( ( param -> testflag & T_AUTO_INC ) ? UPDATE_AUTO_INC : 0 ) ) ;\n }\n if ( ( ! rep_quick && ! error ) || ! ( param -> testflag & ( T_FAST | T_FORCE_CREATE ) ) ) {\n if ( param -> testflag & ( T_EXTEND | T_MEDIUM ) ) ( void ) init_key_cache ( dflt_key_cache , opt_key_cache_block_size , param -> use_buffers , 0 , 0 ) ;\n ( void ) init_io_cache ( & param -> read_cache , datafile , ( uint ) param -> read_buffer_length , READ_CACHE , ( param -> start_check_pos ? param -> start_check_pos : share -> pack . header_length ) , 1 , MYF ( MY_WME ) ) ;\n lock_memory ( param ) ;\n if ( ( info -> s -> options & ( HA_OPTION_PACK_RECORD | HA_OPTION_COMPRESS_RECORD ) ) || ( param -> testflag & ( T_EXTEND | T_MEDIUM ) ) ) error |= chk_data_link ( param , info , param -> testflag & T_EXTEND ) ;\n error |= flush_blocks ( param , share -> key_cache , share -> kfile ) ;\n ( void ) end_io_cache ( & param -> read_cache ) ;\n }\n if ( ! error ) {\n if ( ( share -> state . changed & STATE_CHANGED ) && ( param -> testflag & T_UPDATE_STATE ) ) info -> update |= HA_STATE_CHANGED | HA_STATE_ROW_CHANGED ;\n share -> state . changed &= ~ ( STATE_CHANGED | STATE_CRASHED | STATE_CRASHED_ON_REPAIR ) ;\n }\n else if ( ! mi_is_crashed ( info ) && ( param -> testflag & T_UPDATE_STATE ) ) {\n mi_mark_crashed ( info ) ;\n info -> update |= HA_STATE_CHANGED | HA_STATE_ROW_CHANGED ;\n }\n }\n }\n if ( ( param -> testflag & T_AUTO_INC ) || ( ( param -> testflag & T_REP_ANY ) && info -> s -> base . auto_key ) ) update_auto_increment_key ( param , info , ( my_bool ) ! test ( param -> testflag & T_AUTO_INC ) ) ;\n if ( ! ( param -> testflag & T_DESCRIPT ) ) {\n if ( info -> update & HA_STATE_CHANGED && ! ( param -> testflag & T_READONLY ) ) error |= update_state_info ( param , info , UPDATE_OPEN_COUNT | ( ( ( param -> testflag & T_REP_ANY ) ? UPDATE_TIME : 0 ) | ( state_updated ? UPDATE_STAT : 0 ) | ( ( param -> testflag & T_SORT_RECORDS ) ? UPDATE_SORT : 0 ) ) ) ;\n ( void ) lock_file ( param , share -> kfile , 0L , F_UNLCK , \"indexfile\" , filename ) ;\n info -> update &= ~ HA_STATE_CHANGED ;\n }\n mi_lock_database ( info , F_UNLCK ) ;\n end2 : if ( mi_close ( info ) ) {\n mi_check_print_error ( param , \"%d when closing MyISAM-table '%s'\" , my_errno , filename ) ;\n DBUG_RETURN ( 1 ) ;\n }\n if ( error == 0 ) {\n if ( param -> out_flag & O_NEW_DATA ) error |= change_to_newfile ( filename , MI_NAME_DEXT , DATA_TMP_EXT , ( ( param -> testflag & T_BACKUP_DATA ) ? MYF ( MY_REDEL_MAKE_BACKUP ) : MYF ( 0 ) ) ) ;\n if ( param -> out_flag & O_NEW_INDEX ) error |= change_to_newfile ( filename , MI_NAME_IEXT , INDEX_TMP_EXT , MYF ( 0 ) ) ;\n }\n ( void ) fflush ( stdout ) ;\n ( void ) fflush ( stderr ) ;\n if ( param -> error_printed ) {\n if ( param -> testflag & ( T_REP_ANY | T_SORT_RECORDS | T_SORT_INDEX ) ) {\n ( void ) fprintf ( stderr , \"MyISAM-table '%s' is not fixed because of errors\\n\" , filename ) ;\n if ( param -> testflag & T_REP_ANY ) ( void ) fprintf ( stderr , \"Try fixing it by using the --safe-recover (-o), the --force (-f) option or by not using the --quick (-q) flag\\n\" ) ;\n }\n else if ( ! ( param -> error_printed & 2 ) && ! ( param -> testflag & T_FORCE_CREATE ) ) ( void ) fprintf ( stderr , \"MyISAM-table '%s' is corrupted\\nFix it using switch \\\"-r\\\" or \\\"-o\\\"\\n\" , filename ) ;\n }\n else if ( param -> warning_printed && ! ( param -> testflag & ( T_REP_ANY | T_SORT_RECORDS | T_SORT_INDEX | T_FORCE_CREATE ) ) ) ( void ) fprintf ( stderr , \"MyISAM-table '%s' is usable but should be fixed\\n\" , filename ) ;\n ( void ) fflush ( stderr ) ;\n DBUG_RETURN ( error ) ;\n }"}
{"idx": 15400, "target": 0, "func": "PXA2xxState * pxa255_init ( MemoryRegion * address_space , unsigned int sdram_size ) {\n PXA2xxState * s ;\n int i ;\n DriveInfo * dinfo ;\n s = ( PXA2xxState * ) g_malloc0 ( sizeof ( PXA2xxState ) ) ;\n s -> cpu = cpu_arm_init ( \"pxa255\" ) ;\n if ( s -> cpu == NULL ) {\n fprintf ( stderr , \"Unable to find CPU definition\\n\" ) ;\n exit ( 1 ) ;\n }\n s -> reset = qemu_allocate_irqs ( pxa2xx_reset , s , 1 ) [ 0 ] ;\n memory_region_init_ram ( & s -> sdram , NULL , \"pxa255.sdram\" , sdram_size ) ;\n vmstate_register_ram_global ( & s -> sdram ) ;\n memory_region_add_subregion ( address_space , PXA2XX_SDRAM_BASE , & s -> sdram ) ;\n memory_region_init_ram ( & s -> internal , NULL , \"pxa255.internal\" , PXA2XX_INTERNAL_SIZE ) ;\n vmstate_register_ram_global ( & s -> internal ) ;\n memory_region_add_subregion ( address_space , PXA2XX_INTERNAL_BASE , & s -> internal ) ;\n s -> pic = pxa2xx_pic_init ( 0x40d00000 , s -> cpu ) ;\n s -> dma = pxa255_dma_init ( 0x40000000 , qdev_get_gpio_in ( s -> pic , PXA2XX_PIC_DMA ) ) ;\n sysbus_create_varargs ( \"pxa25x-timer\" , 0x40a00000 , qdev_get_gpio_in ( s -> pic , PXA2XX_PIC_OST_0 + 0 ) , qdev_get_gpio_in ( s -> pic , PXA2XX_PIC_OST_0 + 1 ) , qdev_get_gpio_in ( s -> pic , PXA2XX_PIC_OST_0 + 2 ) , qdev_get_gpio_in ( s -> pic , PXA2XX_PIC_OST_0 + 3 ) , NULL ) ;\n s -> gpio = pxa2xx_gpio_init ( 0x40e00000 , s -> cpu , s -> pic , 85 ) ;\n dinfo = drive_get ( IF_SD , 0 , 0 ) ;\n if ( ! dinfo ) {\n fprintf ( stderr , \"qemu: missing SecureDigital device\\n\" ) ;\n exit ( 1 ) ;\n }\n s -> mmc = pxa2xx_mmci_init ( address_space , 0x41100000 , dinfo -> bdrv , qdev_get_gpio_in ( s -> pic , PXA2XX_PIC_MMC ) , qdev_get_gpio_in ( s -> dma , PXA2XX_RX_RQ_MMCI ) , qdev_get_gpio_in ( s -> dma , PXA2XX_TX_RQ_MMCI ) ) ;\n for ( i = 0 ;\n pxa255_serial [ i ] . io_base ;\n i ++ ) {\n if ( serial_hds [ i ] ) {\n serial_mm_init ( address_space , pxa255_serial [ i ] . io_base , 2 , qdev_get_gpio_in ( s -> pic , pxa255_serial [ i ] . irqn ) , 14745600 / 16 , serial_hds [ i ] , DEVICE_NATIVE_ENDIAN ) ;\n }\n else {\n break ;\n }\n }\n if ( serial_hds [ i ] ) s -> fir = pxa2xx_fir_init ( address_space , 0x40800000 , qdev_get_gpio_in ( s -> pic , PXA2XX_PIC_ICP ) , qdev_get_gpio_in ( s -> dma , PXA2XX_RX_RQ_ICP ) , qdev_get_gpio_in ( s -> dma , PXA2XX_TX_RQ_ICP ) , serial_hds [ i ] ) ;\n s -> lcd = pxa2xx_lcdc_init ( address_space , 0x44000000 , qdev_get_gpio_in ( s -> pic , PXA2XX_PIC_LCD ) ) ;\n s -> cm_base = 0x41300000 ;\n s -> cm_regs [ CCCR >> 2 ] = 0x02000210 ;\n s -> clkcfg = 0x00000009 ;\n memory_region_init_io ( & s -> cm_iomem , NULL , & pxa2xx_cm_ops , s , \"pxa2xx-cm\" , 0x1000 ) ;\n memory_region_add_subregion ( address_space , s -> cm_base , & s -> cm_iomem ) ;\n vmstate_register ( NULL , 0 , & vmstate_pxa2xx_cm , s ) ;\n pxa2xx_setup_cp14 ( s ) ;\n s -> mm_base = 0x48000000 ;\n s -> mm_regs [ MDMRS >> 2 ] = 0x00020002 ;\n s -> mm_regs [ MDREFR >> 2 ] = 0x03ca4000 ;\n s -> mm_regs [ MECR >> 2 ] = 0x00000001 ;\n memory_region_init_io ( & s -> mm_iomem , NULL , & pxa2xx_mm_ops , s , \"pxa2xx-mm\" , 0x1000 ) ;\n memory_region_add_subregion ( address_space , s -> mm_base , & s -> mm_iomem ) ;\n vmstate_register ( NULL , 0 , & vmstate_pxa2xx_mm , s ) ;\n s -> pm_base = 0x40f00000 ;\n memory_region_init_io ( & s -> pm_iomem , NULL , & pxa2xx_pm_ops , s , \"pxa2xx-pm\" , 0x100 ) ;\n memory_region_add_subregion ( address_space , s -> pm_base , & s -> pm_iomem ) ;\n vmstate_register ( NULL , 0 , & vmstate_pxa2xx_pm , s ) ;\n for ( i = 0 ;\n pxa255_ssp [ i ] . io_base ;\n i ++ ) ;\n s -> ssp = ( SSIBus * * ) g_malloc0 ( sizeof ( SSIBus * ) * i ) ;\n for ( i = 0 ;\n pxa255_ssp [ i ] . io_base ;\n i ++ ) {\n DeviceState * dev ;\n dev = sysbus_create_simple ( \"pxa2xx-ssp\" , pxa255_ssp [ i ] . io_base , qdev_get_gpio_in ( s -> pic , pxa255_ssp [ i ] . irqn ) ) ;\n s -> ssp [ i ] = ( SSIBus * ) qdev_get_child_bus ( dev , \"ssi\" ) ;\n }\n if ( usb_enabled ( false ) ) {\n sysbus_create_simple ( \"sysbus-ohci\" , 0x4c000000 , qdev_get_gpio_in ( s -> pic , PXA2XX_PIC_USBH1 ) ) ;\n }\n s -> pcmcia [ 0 ] = pxa2xx_pcmcia_init ( address_space , 0x20000000 ) ;\n s -> pcmcia [ 1 ] = pxa2xx_pcmcia_init ( address_space , 0x30000000 ) ;\n sysbus_create_simple ( \"pxa2xx_rtc\" , 0x40900000 , qdev_get_gpio_in ( s -> pic , PXA2XX_PIC_RTCALARM ) ) ;\n s -> i2c [ 0 ] = pxa2xx_i2c_init ( 0x40301600 , qdev_get_gpio_in ( s -> pic , PXA2XX_PIC_I2C ) , 0xffff ) ;\n s -> i2c [ 1 ] = pxa2xx_i2c_init ( 0x40f00100 , qdev_get_gpio_in ( s -> pic , PXA2XX_PIC_PWRI2C ) , 0xff ) ;\n s -> i2s = pxa2xx_i2s_init ( address_space , 0x40400000 , qdev_get_gpio_in ( s -> pic , PXA2XX_PIC_I2S ) , qdev_get_gpio_in ( s -> dma , PXA2XX_RX_RQ_I2S ) , qdev_get_gpio_in ( s -> dma , PXA2XX_TX_RQ_I2S ) ) ;\n qdev_connect_gpio_out ( s -> gpio , 1 , s -> reset ) ;\n return s ;\n }"}
{"idx": 15401, "target": 0, "func": "xmlLinkPtr xmlListEnd ( xmlListPtr l ) {\n if ( l == NULL ) return ( NULL ) ;\n return ( l -> sentinel -> prev ) ;\n }"}
{"idx": 15402, "target": 0, "func": "REGRESSION_TEST ( SDK_API_TSIOBufferCreate ) ( RegressionTest * test , int , int * pstatus ) {\n bool test_passed = false ;\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n int64_t watermark = 1000 ;\n TSIOBuffer bufp = TSIOBufferCreate ( ) ;\n TSIOBufferWaterMarkSet ( bufp , watermark ) ;\n watermark = TSIOBufferWaterMarkGet ( bufp ) ;\n if ( watermark == 1000 ) {\n SDK_RPRINT ( test , \"TSIOBufferCreate\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( test , \"TSIOBufferWaterMarkGet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( test , \"TSIOBufferWaterMarkSet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n test_passed = true ;\n }\n else {\n SDK_RPRINT ( test , \"TSIOBufferCreate\" , \"TestCase1\" , TC_FAIL , \"watermark failed\" ) ;\n SDK_RPRINT ( test , \"TSIOBufferWaterMarkGet\" , \"TestCase1\" , TC_FAIL , \"watermark failed\" ) ;\n SDK_RPRINT ( test , \"TSIOBufferWaterMarkSet\" , \"TestCase1\" , TC_FAIL , \"watermark failed\" ) ;\n }\n TSIOBufferDestroy ( bufp ) ;\n * pstatus = ( ( test_passed == true ) ? REGRESSION_TEST_PASSED : REGRESSION_TEST_FAILED ) ;\n return ;\n }"}
{"idx": 15403, "target": 0, "func": "static void dtap_cc_alerting ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_TRUE ;\n ELEM_OPT_TLV ( 0x1c , GSM_A_PDU_TYPE_DTAP , DE_FACILITY , NULL ) ;\n ELEM_OPT_TLV ( 0x1e , GSM_A_PDU_TYPE_DTAP , DE_PROG_IND , NULL ) ;\n ELEM_OPT_TLV ( 0x7e , GSM_A_PDU_TYPE_DTAP , DE_USER_USER , NULL ) ;\n ELEM_OPT_TLV ( 0x7f , GSM_A_PDU_TYPE_DTAP , DE_SS_VER_IND , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 15404, "target": 0, "func": "SPL_METHOD ( SplDoublyLinkedList , offsetUnset ) {\n zval * zindex ;\n long index ;\n spl_dllist_object * intern ;\n spl_ptr_llist_element * element ;\n spl_ptr_llist * llist ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"z\" , & zindex ) == FAILURE ) {\n return ;\n }\n intern = ( spl_dllist_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n index = spl_offset_convert_to_long ( zindex TSRMLS_CC ) ;\n llist = intern -> llist ;\n if ( index < 0 || index >= intern -> llist -> count ) {\n zend_throw_exception ( spl_ce_OutOfRangeException , \"Offset out of range\" , 0 TSRMLS_CC ) ;\n return ;\n }\n element = spl_ptr_llist_offset ( intern -> llist , index , intern -> flags & SPL_DLLIST_IT_LIFO ) ;\n if ( element != NULL ) {\n if ( element -> prev ) {\n element -> prev -> next = element -> next ;\n }\n if ( element -> next ) {\n element -> next -> prev = element -> prev ;\n }\n if ( element == llist -> head ) {\n llist -> head = element -> next ;\n }\n if ( element == llist -> tail ) {\n llist -> tail = element -> prev ;\n }\n llist -> count -- ;\n if ( llist -> dtor ) {\n llist -> dtor ( element TSRMLS_CC ) ;\n }\n if ( intern -> traverse_pointer == element ) {\n SPL_LLIST_DELREF ( element ) ;\n intern -> traverse_pointer = NULL ;\n }\n zval_ptr_dtor ( ( zval * * ) & element -> data ) ;\n element -> data = NULL ;\n SPL_LLIST_DELREF ( element ) ;\n }\n else {\n zend_throw_exception ( spl_ce_OutOfRangeException , \"Offset invalid\" , 0 TSRMLS_CC ) ;\n return ;\n }\n }"}
{"idx": 15405, "target": 0, "func": "void verbose_msg ( const char * fmt , ... ) {\n va_list args ;\n DBUG_ENTER ( \"verbose_msg\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"format: %s\" , fmt ) ) ;\n if ( ! verbose ) DBUG_VOID_RETURN ;\n fflush ( stdout ) ;\n va_start ( args , fmt ) ;\n fprintf ( stderr , \"mysqltest: \" ) ;\n if ( cur_file && cur_file != file_stack ) fprintf ( stderr , \"In included file \\\"%s\\\": \" , cur_file -> file_name ) ;\n if ( start_lineno != 0 ) fprintf ( stderr , \"At line %u: \" , start_lineno ) ;\n vfprintf ( stderr , fmt , args ) ;\n fprintf ( stderr , \"\\n\" ) ;\n va_end ( args ) ;\n fflush ( stderr ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 15406, "target": 0, "func": "static SRP_gN_cache * SRP_gN_new_init ( const char * ch ) {\n unsigned char tmp [ MAX_LEN ] ;\n int len ;\n SRP_gN_cache * newgN = ( SRP_gN_cache * ) OPENSSL_malloc ( sizeof ( SRP_gN_cache ) ) ;\n if ( newgN == NULL ) return NULL ;\n if ( ( newgN -> b64_bn = BUF_strdup ( ch ) ) == NULL ) goto err ;\n len = t_fromb64 ( tmp , ch ) ;\n if ( ( newgN -> bn = BN_bin2bn ( tmp , len , NULL ) ) ) return newgN ;\n OPENSSL_free ( newgN -> b64_bn ) ;\n err : OPENSSL_free ( newgN ) ;\n return NULL ;\n }"}
{"idx": 15407, "target": 0, "func": "int event_dispatch ( void ) {\n return ( event_loop ( 0 ) ) ;\n }"}
{"idx": 15408, "target": 1, "func": "static int ipvideo_decode_block_opcode_0xB ( IpvideoContext * s ) {\n int y ;\n for ( y = 0 ;\n y < 8 ;\n y ++ ) {\n bytestream2_get_buffer ( & s -> stream_ptr , s -> pixel_ptr , 8 ) ;\n s -> pixel_ptr += s -> stride ;\n }\n return 0 ;\n }"}
{"idx": 15409, "target": 0, "func": "static gboolean call_ready_callbacks_at_idle ( gpointer callback_data ) {\n NautilusDirectory * directory ;\n GList * node , * next ;\n ReadyCallback * callback ;\n directory = NAUTILUS_DIRECTORY ( callback_data ) ;\n directory -> details -> call_ready_idle_id = 0 ;\n nautilus_directory_ref ( directory ) ;\n callback = NULL ;\n while ( 1 ) {\n for ( node = directory -> details -> call_when_ready_list ;\n node != NULL ;\n node = next ) {\n next = node -> next ;\n callback = node -> data ;\n if ( ! callback -> active ) {\n break ;\n }\n }\n if ( node == NULL ) {\n break ;\n }\n remove_callback_link_keep_data ( directory , node ) ;\n ready_callback_call ( directory , callback ) ;\n g_free ( callback ) ;\n }\n nautilus_directory_async_state_changed ( directory ) ;\n nautilus_directory_unref ( directory ) ;\n return FALSE ;\n }"}
{"idx": 15410, "target": 0, "func": "void nautilus_mime_activate_files ( GtkWindow * parent_window , NautilusWindowSlot * slot , GList * files , const char * launch_directory , NautilusWindowOpenFlags flags , gboolean user_confirmation ) {\n ActivateParameters * parameters ;\n char * file_name ;\n int file_count ;\n GList * l , * next ;\n NautilusFile * file ;\n LaunchLocation * location ;\n if ( files == NULL ) {\n return ;\n }\n DEBUG_FILES ( files , \"Calling activate_files() with files:\" ) ;\n parameters = g_new0 ( ActivateParameters , 1 ) ;\n parameters -> slot = slot ;\n g_object_add_weak_pointer ( G_OBJECT ( parameters -> slot ) , ( gpointer * ) & parameters -> slot ) ;\n if ( parent_window ) {\n parameters -> parent_window = parent_window ;\n g_object_add_weak_pointer ( G_OBJECT ( parameters -> parent_window ) , ( gpointer * ) & parameters -> parent_window ) ;\n }\n parameters -> cancellable = g_cancellable_new ( ) ;\n parameters -> activation_directory = g_strdup ( launch_directory ) ;\n parameters -> locations = launch_locations_from_file_list ( files ) ;\n parameters -> flags = flags ;\n parameters -> user_confirmation = user_confirmation ;\n file_count = g_list_length ( files ) ;\n if ( file_count == 1 ) {\n file_name = nautilus_file_get_display_name ( files -> data ) ;\n parameters -> timed_wait_prompt = g_strdup_printf ( _ ( \"Opening \u201c%s\u201d.\" ) , file_name ) ;\n g_free ( file_name ) ;\n }\n else {\n parameters -> timed_wait_prompt = g_strdup_printf ( ngettext ( \"Opening %d item.\" , \"Opening %d items.\" , file_count ) , file_count ) ;\n }\n for ( l = parameters -> locations ;\n l != NULL ;\n l = next ) {\n location = l -> data ;\n file = location -> file ;\n next = l -> next ;\n if ( nautilus_file_can_mount ( file ) ) {\n parameters -> mountables = g_list_prepend ( parameters -> mountables , nautilus_file_ref ( file ) ) ;\n }\n if ( nautilus_file_can_start ( file ) ) {\n parameters -> start_mountables = g_list_prepend ( parameters -> start_mountables , nautilus_file_ref ( file ) ) ;\n }\n }\n activation_start_timed_cancel ( parameters ) ;\n if ( parameters -> mountables != NULL ) {\n activation_mount_mountables ( parameters ) ;\n }\n if ( parameters -> start_mountables != NULL ) {\n activation_start_mountables ( parameters ) ;\n }\n if ( parameters -> mountables == NULL && parameters -> start_mountables == NULL ) {\n activation_get_activation_uris ( parameters ) ;\n }\n }"}
{"idx": 15411, "target": 0, "func": "static void show_hidden_files_changed_callback ( gpointer callback_data ) {\n show_hidden_files = g_settings_get_boolean ( gtk_filechooser_preferences , NAUTILUS_PREFERENCES_SHOW_HIDDEN_FILES ) ;\n }"}
{"idx": 15412, "target": 0, "func": "static void set_data_file_type ( SORT_INFO * sort_info , MYISAM_SHARE * share ) {\n if ( ( sort_info -> new_data_file_type = share -> data_file_type ) == COMPRESSED_RECORD && sort_info -> param -> testflag & T_UNPACK ) {\n MYISAM_SHARE tmp ;\n if ( share -> options & HA_OPTION_PACK_RECORD ) sort_info -> new_data_file_type = DYNAMIC_RECORD ;\n else sort_info -> new_data_file_type = STATIC_RECORD ;\n memcpy ( ( char * ) & tmp , share , sizeof ( * share ) ) ;\n tmp . options = ~ HA_OPTION_COMPRESS_RECORD ;\n mi_setup_functions ( & tmp ) ;\n share -> delete_record = tmp . delete_record ;\n }\n }"}
{"idx": 15413, "target": 0, "func": "static int dissect_h245_NonStandardParameter ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 979 \"../../asn1/h245/h245.cnf\" nsp_handle = NULL ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_NonStandardParameter , NonStandardParameter_sequence ) ;\n return offset ;\n }"}
{"idx": 15414, "target": 1, "func": "gcry_mpi_t gcry_sexp_nth_mpi ( gcry_sexp_t list , int number , int mpifmt ) {\n const char * s ;\n size_t n ;\n gcry_mpi_t a ;\n if ( ! mpifmt ) mpifmt = GCRYMPI_FMT_STD ;\n s = sexp_nth_data ( list , number , & n ) ;\n if ( ! s ) return NULL ;\n if ( gcry_mpi_scan ( & a , mpifmt , s , n , NULL ) ) return NULL ;\n return a ;\n }"}
{"idx": 15415, "target": 0, "func": "static int get_metadata_size ( const uint8_t * buf , int buf_size ) {\n int metadata_last , metadata_size ;\n const uint8_t * buf_end = buf + buf_size ;\n buf += 4 ;\n do {\n if ( buf_end - buf < 4 ) return 0 ;\n avpriv_flac_parse_block_header ( buf , & metadata_last , NULL , & metadata_size ) ;\n buf += 4 ;\n if ( buf_end - buf < metadata_size ) {\n return 0 ;\n }\n buf += metadata_size ;\n }\n while ( ! metadata_last ) ;\n return buf_size - ( buf_end - buf ) ;\n }"}
{"idx": 15416, "target": 0, "func": "hb_unicode_funcs_t * hb_icu_get_unicode_funcs ( void ) {\n static const hb_unicode_funcs_t _hb_icu_unicode_funcs = {\n HB_OBJECT_HEADER_STATIC , NULL , true , {\n # define HB_UNICODE_FUNC_IMPLEMENT ( name ) hb_icu_unicode_ ## name , HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS # undef HB_UNICODE_FUNC_IMPLEMENT }\n }\n ;\n # if U_ICU_VERSION_MAJOR_NUM >= 49 if ( ! hb_atomic_ptr_get ( & normalizer ) ) {\n UErrorCode icu_err = U_ZERO_ERROR ;\n ( void ) hb_atomic_ptr_cmpexch ( & normalizer , NULL , unorm2_getNFCInstance ( & icu_err ) ) ;\n }\n # endif return const_cast < hb_unicode_funcs_t * > ( & _hb_icu_unicode_funcs ) ;\n }"}
{"idx": 15417, "target": 0, "func": "static int send_chunk_or_dataless ( int dns_fd , int userid , struct query * q ) {\n char pkt [ 4096 ] ;\n int datalen = 0 ;\n int last = 0 ;\n if ( users [ userid ] . outpacket . len > 0 && users [ userid ] . outfragresent > 5 ) {\n users [ userid ] . outpacket . len = 0 ;\n users [ userid ] . outpacket . offset = 0 ;\n users [ userid ] . outpacket . sentlen = 0 ;\n users [ userid ] . outfragresent = 0 ;\n # ifdef OUTPACKETQ_LEN get_from_outpacketq ( userid ) ;\n # endif }\n if ( users [ userid ] . outpacket . len > 0 ) {\n datalen = MIN ( users [ userid ] . fragsize , users [ userid ] . outpacket . len - users [ userid ] . outpacket . offset ) ;\n datalen = MIN ( datalen , sizeof ( pkt ) - 2 ) ;\n memcpy ( & pkt [ 2 ] , users [ userid ] . outpacket . data + users [ userid ] . outpacket . offset , datalen ) ;\n users [ userid ] . outpacket . sentlen = datalen ;\n last = ( users [ userid ] . outpacket . len == users [ userid ] . outpacket . offset + datalen ) ;\n users [ userid ] . outfragresent ++ ;\n }\n pkt [ 0 ] = ( 1 << 7 ) | ( ( users [ userid ] . inpacket . seqno & 7 ) << 4 ) | ( users [ userid ] . inpacket . fragment & 15 ) ;\n pkt [ 1 ] = ( ( users [ userid ] . outpacket . seqno & 7 ) << 5 ) | ( ( users [ userid ] . outpacket . fragment & 15 ) << 1 ) | ( last & 1 ) ;\n if ( debug >= 1 ) {\n fprintf ( stderr , \"OUT pkt seq# %d, frag %d (last=%d), offset %d, fragsize %d, total %d, to user %d\\n\" , users [ userid ] . outpacket . seqno & 7 , users [ userid ] . outpacket . fragment & 15 , last , users [ userid ] . outpacket . offset , datalen , users [ userid ] . outpacket . len , userid ) ;\n }\n write_dns ( dns_fd , q , pkt , datalen + 2 , users [ userid ] . downenc ) ;\n if ( q -> id2 != 0 ) {\n q -> id = q -> id2 ;\n q -> fromlen = q -> fromlen2 ;\n memcpy ( & ( q -> from ) , & ( q -> from2 ) , q -> fromlen2 ) ;\n if ( debug >= 1 ) fprintf ( stderr , \"OUT again to last duplicate\\n\" ) ;\n write_dns ( dns_fd , q , pkt , datalen + 2 , users [ userid ] . downenc ) ;\n }\n save_to_qmem_pingordata ( userid , q ) ;\n # ifdef DNSCACHE_LEN save_to_dnscache ( userid , q , pkt , datalen + 2 ) ;\n # endif q -> id = 0 ;\n if ( datalen > 0 && datalen == users [ userid ] . outpacket . len ) {\n users [ userid ] . outpacket . len = 0 ;\n users [ userid ] . outpacket . offset = 0 ;\n users [ userid ] . outpacket . sentlen = 0 ;\n users [ userid ] . outfragresent = 0 ;\n # ifdef OUTPACKETQ_LEN if ( get_from_outpacketq ( userid ) == 1 ) {\n if ( debug >= 3 ) fprintf ( stderr , \" Chunk & fromqueue: callagain\\n\" ) ;\n return 1 ;\n }\n # endif }\n return 0 ;\n }"}
{"idx": 15418, "target": 0, "func": "void vp9_remove_compressor ( VP9_COMP * cpi ) {\n unsigned int i ;\n if ( ! cpi ) return ;\n if ( cpi && ( cpi -> common . current_video_frame > 0 ) ) {\n # if CONFIG_INTERNAL_STATS vp9_clear_system_state ( ) ;\n if ( cpi -> oxcf . pass != 1 ) {\n FILE * f = fopen ( \"opsnr.stt\" , \"a\" ) ;\n double time_encoded = ( cpi -> last_end_time_stamp_seen - cpi -> first_time_stamp_ever ) / 10000000.000 ;\n double total_encode_time = ( cpi -> time_receive_data + cpi -> time_compress_data ) / 1000.000 ;\n double dr = ( double ) cpi -> bytes * ( double ) 8 / ( double ) 1000 / time_encoded ;\n if ( cpi -> b_calculate_psnr ) {\n const double total_psnr = vpx_sse_to_psnr ( ( double ) cpi -> total_samples , 255.0 , ( double ) cpi -> total_sq_error ) ;\n const double totalp_psnr = vpx_sse_to_psnr ( ( double ) cpi -> totalp_samples , 255.0 , ( double ) cpi -> totalp_sq_error ) ;\n const double total_ssim = 100 * pow ( cpi -> summed_quality / cpi -> summed_weights , 8.0 ) ;\n const double totalp_ssim = 100 * pow ( cpi -> summedp_quality / cpi -> summedp_weights , 8.0 ) ;\n fprintf ( f , \"Bitrate\\tAVGPsnr\\tGLBPsnr\\tAVPsnrP\\tGLPsnrP\\t\" \"VPXSSIM\\tVPSSIMP\\t Time(ms)\\n\" ) ;\n fprintf ( f , \"%7.2f\\t%7.3f\\t%7.3f\\t%7.3f\\t%7.3f\\t%7.3f\\t%7.3f\\t%8.0f\\n\" , dr , cpi -> total / cpi -> count , total_psnr , cpi -> totalp / cpi -> count , totalp_psnr , total_ssim , totalp_ssim , total_encode_time ) ;\n }\n if ( cpi -> b_calculate_ssimg ) {\n fprintf ( f , \"BitRate\\tSSIM_Y\\tSSIM_U\\tSSIM_V\\tSSIM_A\\t Time(ms)\\n\" ) ;\n fprintf ( f , \"%7.2f\\t%6.4f\\t%6.4f\\t%6.4f\\t%6.4f\\t%8.0f\\n\" , dr , cpi -> total_ssimg_y / cpi -> count , cpi -> total_ssimg_u / cpi -> count , cpi -> total_ssimg_v / cpi -> count , cpi -> total_ssimg_all / cpi -> count , total_encode_time ) ;\n }\n fclose ( f ) ;\n }\n # endif # if 0 {\n printf ( \"\\n_pick_loop_filter_level:%d\\n\" , cpi -> time_pick_lpf / 1000 ) ;\n printf ( \"\\n_frames recive_data encod_mb_row compress_frame Total\\n\" ) ;\n printf ( \"%6d %10ld %10ld %10ld %10ld\\n\" , cpi -> common . current_video_frame , cpi -> time_receive_data / 1000 , cpi -> time_encode_sb_row / 1000 , cpi -> time_compress_data / 1000 , ( cpi -> time_receive_data + cpi -> time_compress_data ) / 1000 ) ;\n }\n # endif }\n # if CONFIG_VP9_TEMPORAL_DENOISING if ( cpi -> oxcf . noise_sensitivity > 0 ) {\n vp9_denoiser_free ( & ( cpi -> denoiser ) ) ;\n }\n # endif dealloc_compressor_data ( cpi ) ;\n vpx_free ( cpi -> tok ) ;\n for ( i = 0 ;\n i < sizeof ( cpi -> mbgraph_stats ) / sizeof ( cpi -> mbgraph_stats [ 0 ] ) ;\n ++ i ) {\n vpx_free ( cpi -> mbgraph_stats [ i ] . mb_stats ) ;\n }\n # if CONFIG_FP_MB_STATS if ( cpi -> use_fp_mb_stats ) {\n vpx_free ( cpi -> twopass . frame_mb_stats_buf ) ;\n cpi -> twopass . frame_mb_stats_buf = NULL ;\n }\n # endif vp9_remove_common ( & cpi -> common ) ;\n vpx_free ( cpi ) ;\n # if CONFIG_VP9_TEMPORAL_DENOISING # ifdef OUTPUT_YUV_DENOISED fclose ( yuv_denoised_file ) ;\n # endif # endif # ifdef OUTPUT_YUV_REC fclose ( yuv_rec_file ) ;\n # endif # if 0 if ( keyfile ) fclose ( keyfile ) ;\n if ( framepsnr ) fclose ( framepsnr ) ;\n if ( kf_list ) fclose ( kf_list ) ;\n # endif }"}
{"idx": 15419, "target": 0, "func": "static void update_switchable_interp_probs ( VP9_COMMON * cm , vp9_writer * w ) {\n int j ;\n for ( j = 0 ;\n j < SWITCHABLE_FILTER_CONTEXTS ;\n ++ j ) prob_diff_update ( vp9_switchable_interp_tree , cm -> fc . switchable_interp_prob [ j ] , cm -> counts . switchable_interp [ j ] , SWITCHABLE_FILTERS , w ) ;\n }"}
{"idx": 15420, "target": 0, "func": "static void mark_desktop_file_executable_task_done ( GObject * source_object , GAsyncResult * res , gpointer user_data ) {\n MarkTrustedJob * job = user_data ;\n g_object_unref ( job -> file ) ;\n if ( job -> done_callback ) {\n job -> done_callback ( ! job_aborted ( ( CommonJob * ) job ) , job -> done_callback_data ) ;\n }\n finalize_common ( ( CommonJob * ) job ) ;\n }"}
{"idx": 15421, "target": 0, "func": "void PNGAPI png_set_gAMA_fixed ( png_structp png_ptr , png_infop info_ptr , png_fixed_point int_gamma ) {\n png_fixed_point png_gamma ;\n png_debug1 ( 1 , \"in %s storage function\" , \"gAMA\" ) ;\n if ( png_ptr == NULL || info_ptr == NULL ) return ;\n if ( int_gamma > ( png_fixed_point ) PNG_UINT_31_MAX ) {\n png_warning ( png_ptr , \"Limiting gamma to 21474.83\" ) ;\n png_gamma = PNG_UINT_31_MAX ;\n }\n else {\n if ( int_gamma < 0 ) {\n png_warning ( png_ptr , \"Setting negative gamma to zero\" ) ;\n png_gamma = 0 ;\n }\n else png_gamma = int_gamma ;\n }\n # ifdef PNG_FLOATING_POINT_SUPPORTED info_ptr -> gamma = ( float ) ( png_gamma / 100000. ) ;\n # endif # ifdef PNG_FIXED_POINT_SUPPORTED info_ptr -> int_gamma = png_gamma ;\n # endif info_ptr -> valid |= PNG_INFO_gAMA ;\n if ( png_gamma == 0 ) png_warning ( png_ptr , \"Setting gamma=0\" ) ;\n }"}
{"idx": 15422, "target": 0, "func": "rfbClientPtr rfbNewClient ( rfbScreenInfoPtr rfbScreen , int sock ) {\n return ( rfbNewTCPOrUDPClient ( rfbScreen , sock , FALSE ) ) ;\n }"}
{"idx": 15423, "target": 0, "func": "char get_typtype ( Oid typid ) {\n HeapTuple tp ;\n tp = SearchSysCache1 ( TYPEOID , ObjectIdGetDatum ( typid ) ) ;\n if ( HeapTupleIsValid ( tp ) ) {\n Form_pg_type typtup = ( Form_pg_type ) GETSTRUCT ( tp ) ;\n char result ;\n result = typtup -> typtype ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }\n else return '\\0' ;\n }"}
{"idx": 15424, "target": 0, "func": "static int arm_cpu_env_flags ( int * flags ) {\n char * env ;\n env = getenv ( \"VPX_SIMD_CAPS\" ) ;\n if ( env && * env ) {\n * flags = ( int ) strtol ( env , NULL , 0 ) ;\n return 0 ;\n }\n * flags = 0 ;\n return - 1 ;\n }"}
{"idx": 15425, "target": 0, "func": "struct cgroup_ops * cgfs_ops_init ( void ) {\n return & cgfs_ops ;\n }"}
{"idx": 15426, "target": 0, "func": "static void generate_json_float ( FBuffer * buffer , VALUE Vstate , JSON_Generator_State * state , VALUE obj ) {\n double value = RFLOAT_VALUE ( obj ) ;\n char allow_nan = state -> allow_nan ;\n VALUE tmp = rb_funcall ( obj , i_to_s , 0 ) ;\n if ( ! allow_nan ) {\n if ( isinf ( value ) ) {\n fbuffer_free ( buffer ) ;\n rb_raise ( eGeneratorError , \"%u: %\" PRIsVALUE \" not allowed in JSON\" , __LINE__ , RB_OBJ_STRING ( tmp ) ) ;\n }\n else if ( isnan ( value ) ) {\n fbuffer_free ( buffer ) ;\n rb_raise ( eGeneratorError , \"%u: %\" PRIsVALUE \" not allowed in JSON\" , __LINE__ , RB_OBJ_STRING ( tmp ) ) ;\n }\n }\n fbuffer_append_str ( buffer , tmp ) ;\n }"}
{"idx": 15427, "target": 0, "func": "static int usbdev_release ( struct inode * inode , struct file * file ) {\n struct usb_dev_state * ps = file -> private_data ;\n struct usb_device * dev = ps -> dev ;\n unsigned int ifnum ;\n struct async * as ;\n usb_lock_device ( dev ) ;\n usb_hub_release_all_ports ( dev , ps ) ;\n list_del_init ( & ps -> list ) ;\n for ( ifnum = 0 ;\n ps -> ifclaimed && ifnum < 8 * sizeof ( ps -> ifclaimed ) ;\n ifnum ++ ) {\n if ( test_bit ( ifnum , & ps -> ifclaimed ) ) releaseintf ( ps , ifnum ) ;\n }\n destroy_all_async ( ps ) ;\n usb_autosuspend_device ( dev ) ;\n usb_unlock_device ( dev ) ;\n usb_put_dev ( dev ) ;\n put_pid ( ps -> disc_pid ) ;\n put_cred ( ps -> cred ) ;\n as = async_getcompleted ( ps ) ;\n while ( as ) {\n free_async ( as ) ;\n as = async_getcompleted ( ps ) ;\n }\n kfree ( ps ) ;\n return 0 ;\n }"}
{"idx": 15428, "target": 0, "func": "TEST_F ( NativeBackendLibsecretTest , PSLUpdatingStrictAddLogin ) {\n CheckPSLUpdate ( UPDATE_BY_ADDLOGIN ) ;\n }"}
{"idx": 15429, "target": 0, "func": "static int s_aos_available ( stream * s , gs_offset_t * pl ) {\n * pl = ( ( aos_state_t * ) s -> state ) -> file_sz - stell ( s ) ;\n return 0 ;\n }"}
{"idx": 15430, "target": 0, "func": "fz_colorspace * fz_device_rgb ( fz_context * ctx ) {\n return ctx -> colorspace -> rgb ;\n }"}
{"idx": 15431, "target": 0, "func": "static int dissect_h225_VoiceCaps ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_VoiceCaps , VoiceCaps_sequence ) ;\n return offset ;\n }"}
{"idx": 15432, "target": 1, "func": "SPL_METHOD ( FilesystemIterator , key ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n if ( SPL_FILE_DIR_KEY ( intern , SPL_FILE_DIR_KEY_AS_FILENAME ) ) {\n RETURN_STRING ( intern -> u . dir . entry . d_name , 1 ) ;\n }\n else {\n spl_filesystem_object_get_file_name ( intern TSRMLS_CC ) ;\n RETURN_STRINGL ( intern -> file_name , intern -> file_name_len , 1 ) ;\n }\n }"}
{"idx": 15433, "target": 0, "func": "static inline void xhci_dma_read_u32s ( XHCIState * xhci , dma_addr_t addr , uint32_t * buf , size_t len ) {\n int i ;\n assert ( ( len % sizeof ( uint32_t ) ) == 0 ) ;\n pci_dma_read ( PCI_DEVICE ( xhci ) , addr , buf , len ) ;\n for ( i = 0 ;\n i < ( len / sizeof ( uint32_t ) ) ;\n i ++ ) {\n buf [ i ] = le32_to_cpu ( buf [ i ] ) ;\n }\n }"}
{"idx": 15434, "target": 0, "func": "static void dissect_rsvp_link_cap ( proto_item * ti , packet_info * pinfo , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class , int type ) {\n proto_item_set_text ( ti , \"LINK CAPABILITY: \" ) ;\n switch ( type ) {\n case 1 : proto_tree_add_uint ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type ) ;\n dissect_rsvp_ero_rro_subobjects ( ti , pinfo , rsvp_object_tree , tvb , offset + 4 , obj_length , rsvp_class ) ;\n break ;\n default : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"Unknown (%u)\" , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_record_route_data , tvb , offset + 4 , obj_length - 4 , ENC_NA ) ;\n break ;\n }\n }"}
{"idx": 15435, "target": 0, "func": "static kadm5_ret_t check_pw_reuse ( krb5_context context , krb5_keyblock * hist_keyblocks , int n_new_key_data , krb5_key_data * new_key_data , unsigned int n_pw_hist_data , osa_pw_hist_ent * pw_hist_data ) {\n unsigned int x , y , z ;\n krb5_keyblock newkey , histkey , * kb ;\n krb5_key_data * key_data ;\n krb5_error_code ret ;\n assert ( n_new_key_data >= 0 ) ;\n for ( x = 0 ;\n x < ( unsigned ) n_new_key_data ;\n x ++ ) {\n if ( new_key_data [ x ] . key_data_kvno != new_key_data [ 0 ] . key_data_kvno ) break ;\n ret = krb5_dbe_decrypt_key_data ( context , NULL , & ( new_key_data [ x ] ) , & newkey , NULL ) ;\n if ( ret ) return ( ret ) ;\n for ( y = 0 ;\n y < n_pw_hist_data ;\n y ++ ) {\n for ( z = 0 ;\n z < ( unsigned int ) pw_hist_data [ y ] . n_key_data ;\n z ++ ) {\n for ( kb = hist_keyblocks ;\n kb -> enctype != 0 ;\n kb ++ ) {\n key_data = & pw_hist_data [ y ] . key_data [ z ] ;\n ret = krb5_dbe_decrypt_key_data ( context , kb , key_data , & histkey , NULL ) ;\n if ( ret ) continue ;\n if ( newkey . length == histkey . length && newkey . enctype == histkey . enctype && memcmp ( newkey . contents , histkey . contents , histkey . length ) == 0 ) {\n krb5_free_keyblock_contents ( context , & histkey ) ;\n krb5_free_keyblock_contents ( context , & newkey ) ;\n return KADM5_PASS_REUSE ;\n }\n krb5_free_keyblock_contents ( context , & histkey ) ;\n }\n }\n }\n krb5_free_keyblock_contents ( context , & newkey ) ;\n }\n return ( 0 ) ;\n }"}
{"idx": 15436, "target": 0, "func": "static void test_bug29687 ( ) {\n const int NUM_ITERATIONS = 40 ;\n int i ;\n int rc ;\n MYSQL_STMT * stmt = NULL ;\n DBUG_ENTER ( \"test_bug29687\" ) ;\n myheader ( \"test_bug29687\" ) ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT 1 FROM dual WHERE 0=2\" ) ;\n DIE_UNLESS ( stmt ) ;\n for ( i = 0 ;\n i < NUM_ITERATIONS ;\n i ++ ) {\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n mysql_stmt_store_result ( stmt ) ;\n while ( mysql_stmt_fetch ( stmt ) == 0 ) ;\n mysql_stmt_free_result ( stmt ) ;\n }\n mysql_stmt_close ( stmt ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 15437, "target": 0, "func": "int rds_recvmsg ( struct socket * sock , struct msghdr * msg , size_t size , int msg_flags ) {\n struct sock * sk = sock -> sk ;\n struct rds_sock * rs = rds_sk_to_rs ( sk ) ;\n long timeo ;\n int ret = 0 , nonblock = msg_flags & MSG_DONTWAIT ;\n DECLARE_SOCKADDR ( struct sockaddr_in * , sin , msg -> msg_name ) ;\n struct rds_incoming * inc = NULL ;\n timeo = sock_rcvtimeo ( sk , nonblock ) ;\n rdsdebug ( \"size %zu flags 0x%x timeo %ld\\n\" , size , msg_flags , timeo ) ;\n if ( msg_flags & MSG_OOB ) goto out ;\n while ( 1 ) {\n struct iov_iter save ;\n if ( ! list_empty ( & rs -> rs_notify_queue ) ) {\n ret = rds_notify_queue_get ( rs , msg ) ;\n break ;\n }\n if ( rs -> rs_cong_notify ) {\n ret = rds_notify_cong ( rs , msg ) ;\n break ;\n }\n if ( ! rds_next_incoming ( rs , & inc ) ) {\n if ( nonblock ) {\n ret = - EAGAIN ;\n break ;\n }\n timeo = wait_event_interruptible_timeout ( * sk_sleep ( sk ) , ( ! list_empty ( & rs -> rs_notify_queue ) || rs -> rs_cong_notify || rds_next_incoming ( rs , & inc ) ) , timeo ) ;\n rdsdebug ( \"recvmsg woke inc %p timeo %ld\\n\" , inc , timeo ) ;\n if ( timeo > 0 || timeo == MAX_SCHEDULE_TIMEOUT ) continue ;\n ret = timeo ;\n if ( ret == 0 ) ret = - ETIMEDOUT ;\n break ;\n }\n rdsdebug ( \"copying inc %p from %pI4:%u to user\\n\" , inc , & inc -> i_conn -> c_faddr , ntohs ( inc -> i_hdr . h_sport ) ) ;\n save = msg -> msg_iter ;\n ret = inc -> i_conn -> c_trans -> inc_copy_to_user ( inc , & msg -> msg_iter ) ;\n if ( ret < 0 ) break ;\n if ( ! rds_still_queued ( rs , inc , ! ( msg_flags & MSG_PEEK ) ) ) {\n rds_inc_put ( inc ) ;\n inc = NULL ;\n rds_stats_inc ( s_recv_deliver_raced ) ;\n msg -> msg_iter = save ;\n continue ;\n }\n if ( ret < be32_to_cpu ( inc -> i_hdr . h_len ) ) {\n if ( msg_flags & MSG_TRUNC ) ret = be32_to_cpu ( inc -> i_hdr . h_len ) ;\n msg -> msg_flags |= MSG_TRUNC ;\n }\n if ( rds_cmsg_recv ( inc , msg , rs ) ) {\n ret = - EFAULT ;\n goto out ;\n }\n rds_stats_inc ( s_recv_delivered ) ;\n if ( sin ) {\n sin -> sin_family = AF_INET ;\n sin -> sin_port = inc -> i_hdr . h_sport ;\n sin -> sin_addr . s_addr = inc -> i_saddr ;\n memset ( sin -> sin_zero , 0 , sizeof ( sin -> sin_zero ) ) ;\n msg -> msg_namelen = sizeof ( * sin ) ;\n }\n break ;\n }\n if ( inc ) rds_inc_put ( inc ) ;\n out : return ret ;\n }"}
{"idx": 15438, "target": 0, "func": "static void prplcb_privacy_deny_removed ( PurpleAccount * account , const char * name ) {\n struct im_connection * ic = purple_ic_by_pa ( account ) ;\n void * n ;\n n = g_slist_find_custom ( ic -> deny , name , ( GCompareFunc ) ic -> acc -> prpl -> handle_cmp ) ;\n ic -> deny = g_slist_remove ( ic -> deny , n ) ;\n }"}
{"idx": 15439, "target": 1, "func": "static int dissect_h225_DestinationInfo_item ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 310 \"./asn1/h225/h225.cnf\" h225_packet_info * h225_pi ;\n h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> is_destinationInfo = TRUE ;\n }\n offset = dissect_h225_AliasAddress ( tvb , offset , actx , tree , hf_index ) ;\n return offset ;\n }"}
{"idx": 15440, "target": 0, "func": "xmlChar * xsltAttrTemplateValueProcessNode ( xsltTransformContextPtr ctxt , const xmlChar * str , xmlNodePtr inst ) {\n xmlChar * ret = NULL ;\n const xmlChar * cur ;\n xmlChar * expr , * val ;\n xmlNsPtr * nsList = NULL ;\n int nsNr = 0 ;\n if ( str == NULL ) return ( NULL ) ;\n if ( * str == 0 ) return ( xmlStrndup ( ( xmlChar * ) \"\" , 0 ) ) ;\n cur = str ;\n while ( * cur != 0 ) {\n if ( * cur == '{\n' ) {\n if ( * ( cur + 1 ) == '{\n' ) {\n cur ++ ;\n ret = xmlStrncat ( ret , str , cur - str ) ;\n cur ++ ;\n str = cur ;\n continue ;\n }\n ret = xmlStrncat ( ret , str , cur - str ) ;\n str = cur ;\n cur ++ ;\n while ( ( * cur != 0 ) && ( * cur != '}\n' ) ) {\n if ( ( * cur == '\\'' ) || ( * cur == '\"' ) ) {\n char delim = * ( cur ++ ) ;\n while ( ( * cur != 0 ) && ( * cur != delim ) ) cur ++ ;\n if ( * cur != 0 ) cur ++ ;\n }\n else cur ++ ;\n }\n if ( * cur == 0 ) {\n xsltTransformError ( ctxt , NULL , inst , \"xsltAttrTemplateValueProcessNode: unmatched '{\n'\\n\" ) ;\n ret = xmlStrncat ( ret , str , cur - str ) ;\n return ( ret ) ;\n }\n str ++ ;\n expr = xmlStrndup ( str , cur - str ) ;\n if ( expr == NULL ) return ( ret ) ;\n else if ( * expr == '{\n' ) {\n ret = xmlStrcat ( ret , expr ) ;\n xmlFree ( expr ) ;\n }\n else {\n xmlXPathCompExprPtr comp ;\n if ( ( nsList == NULL ) && ( inst != NULL ) ) {\n int i = 0 ;\n nsList = xmlGetNsList ( inst -> doc , inst ) ;\n if ( nsList != NULL ) {\n while ( nsList [ i ] != NULL ) i ++ ;\n nsNr = i ;\n }\n }\n comp = xmlXPathCompile ( expr ) ;\n val = xsltEvalXPathStringNs ( ctxt , comp , nsNr , nsList ) ;\n xmlXPathFreeCompExpr ( comp ) ;\n xmlFree ( expr ) ;\n if ( val != NULL ) {\n ret = xmlStrcat ( ret , val ) ;\n xmlFree ( val ) ;\n }\n }\n cur ++ ;\n str = cur ;\n }\n else if ( * cur == '}\n' ) {\n cur ++ ;\n if ( * cur == '}\n' ) {\n ret = xmlStrncat ( ret , str , cur - str ) ;\n cur ++ ;\n str = cur ;\n continue ;\n }\n else {\n xsltTransformError ( ctxt , NULL , inst , \"xsltAttrTemplateValueProcessNode: unmatched '}\n'\\n\" ) ;\n }\n }\n else cur ++ ;\n }\n if ( cur != str ) {\n ret = xmlStrncat ( ret , str , cur - str ) ;\n }\n if ( nsList != NULL ) xmlFree ( nsList ) ;\n return ( ret ) ;\n }"}
{"idx": 15441, "target": 0, "func": "void SetArchiveOptions ( Archive * AH , DumpOptions * dopt , RestoreOptions * ropt ) {\n if ( dopt == NULL && ropt != NULL ) dopt = dumpOptionsFromRestoreOptions ( ropt ) ;\n AH -> dopt = dopt ;\n AH -> ropt = ropt ;\n }"}
{"idx": 15442, "target": 1, "func": "static gint dissect_adb ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n proto_item * main_item ;\n proto_tree * main_tree ;\n proto_item * arg0_item ;\n proto_tree * arg0_tree ;\n proto_item * arg1_item ;\n proto_tree * arg1_tree ;\n proto_item * magic_item ;\n proto_item * crc_item ;\n proto_tree * crc_tree = NULL ;\n proto_item * sub_item ;\n gint offset = 0 ;\n guint32 command ;\n guint32 arg0 ;\n guint32 arg1 ;\n guint32 data_length = 0 ;\n guint32 crc32 = 0 ;\n usb_conv_info_t * usb_conv_info = NULL ;\n wmem_tree_key_t key [ 5 ] ;\n guint32 interface_id ;\n guint32 bus_id ;\n guint32 device_address ;\n guint32 side_id ;\n guint32 frame_number ;\n gboolean is_command = TRUE ;\n gboolean is_next_fragment = FALSE ;\n gboolean is_service = FALSE ;\n gint proto ;\n gint direction = P2P_DIR_UNKNOWN ;\n wmem_tree_t * wmem_tree ;\n command_data_t * command_data = NULL ;\n service_data_t * service_data = NULL ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"ADB\" ) ;\n col_clear ( pinfo -> cinfo , COL_INFO ) ;\n main_item = proto_tree_add_item ( tree , proto_adb , tvb , offset , - 1 , ENC_NA ) ;\n main_tree = proto_item_add_subtree ( main_item , ett_adb ) ;\n frame_number = pinfo -> num ;\n proto = ( gint ) GPOINTER_TO_INT ( wmem_list_frame_data ( ( wmem_list_tail ( pinfo -> layers ) ) ) ) ;\n if ( proto != proto_usb ) {\n proto = ( gint ) GPOINTER_TO_INT ( wmem_list_frame_data ( wmem_list_frame_prev ( wmem_list_tail ( pinfo -> layers ) ) ) ) ;\n }\n if ( proto == proto_usb ) {\n usb_conv_info = ( usb_conv_info_t * ) data ;\n DISSECTOR_ASSERT ( usb_conv_info ) ;\n direction = usb_conv_info -> direction ;\n }\n else if ( proto == proto_tcp ) {\n if ( pinfo -> destport == ADB_TCP_PORT ) direction = P2P_DIR_SENT ;\n else direction = P2P_DIR_RECV ;\n }\n else {\n return offset ;\n }\n if ( pinfo -> phdr -> presence_flags & WTAP_HAS_INTERFACE_ID ) interface_id = pinfo -> phdr -> interface_id ;\n else interface_id = 0 ;\n if ( proto == proto_usb ) {\n bus_id = usb_conv_info -> bus_id ;\n device_address = usb_conv_info -> device_address ;\n key [ 0 ] . length = 1 ;\n key [ 0 ] . key = & interface_id ;\n key [ 1 ] . length = 1 ;\n key [ 1 ] . key = & bus_id ;\n key [ 2 ] . length = 1 ;\n key [ 2 ] . key = & device_address ;\n key [ 3 ] . length = 0 ;\n key [ 3 ] . key = NULL ;\n }\n else {\n key [ 0 ] . length = 1 ;\n key [ 0 ] . key = & interface_id ;\n key [ 1 ] . length = 1 ;\n key [ 2 ] . length = 1 ;\n if ( direction == P2P_DIR_SENT ) {\n key [ 1 ] . key = & pinfo -> srcport ;\n key [ 2 ] . key = & pinfo -> destport ;\n }\n else {\n key [ 1 ] . key = & pinfo -> destport ;\n key [ 2 ] . key = & pinfo -> srcport ;\n }\n key [ 3 ] . length = 0 ;\n key [ 3 ] . key = NULL ;\n }\n wmem_tree = ( wmem_tree_t * ) wmem_tree_lookup32_array ( command_info , key ) ;\n if ( wmem_tree ) {\n command_data = ( command_data_t * ) wmem_tree_lookup32_le ( wmem_tree , frame_number ) ;\n if ( command_data && command_data -> completed_in_frame >= frame_number && command_data -> command_in_frame <= frame_number ) {\n if ( command_data -> command_in_frame != frame_number ) {\n is_command = FALSE ;\n is_next_fragment = TRUE ;\n }\n data_length = command_data -> data_length ;\n crc32 = command_data -> crc32 ;\n if ( direction == P2P_DIR_SENT ) if ( command_data -> command == A_CLSE ) side_id = command_data -> arg1 ;\n else side_id = command_data -> arg0 ;\n else if ( command_data -> command == A_OKAY ) {\n side_id = command_data -> arg1 ;\n }\n else side_id = command_data -> arg1 ;\n key [ 3 ] . length = 1 ;\n key [ 3 ] . key = & side_id ;\n key [ 4 ] . length = 0 ;\n key [ 4 ] . key = NULL ;\n wmem_tree = ( wmem_tree_t * ) wmem_tree_lookup32_array ( service_info , key ) ;\n if ( wmem_tree ) {\n service_data = ( service_data_t * ) wmem_tree_lookup32_le ( wmem_tree , frame_number ) ;\n if ( service_data && command_data -> command == A_OPEN ) {\n is_service = TRUE ;\n }\n }\n }\n }\n if ( ( command_data && command_data -> completed_in_frame <= frame_number ) || ! command_data ) {\n if ( tvb_reported_length ( tvb ) < 24 ) {\n is_command = FALSE ;\n }\n else if ( tvb_reported_length ( tvb ) >= 24 ) {\n command = tvb_get_letohl ( tvb , offset ) ;\n if ( command != A_SYNC && command != A_CLSE && command != A_WRTE && command != A_AUTH && command != A_CNXN && command != A_OPEN && command != A_OKAY ) is_command = FALSE ;\n else if ( command != ( 0xFFFFFFFF ^ tvb_get_letohl ( tvb , offset + 20 ) ) ) is_command = FALSE ;\n if ( is_command ) {\n data_length = tvb_get_letohl ( tvb , offset + 12 ) ;\n crc32 = tvb_get_letohl ( tvb , offset + 16 ) ;\n }\n if ( command == A_OPEN ) is_service = TRUE ;\n }\n }\n if ( service_data && ! ( command_data -> command == A_OPEN && is_next_fragment ) ) {\n sub_item = proto_tree_add_string ( main_tree , hf_service , tvb , offset , 0 , service_data -> service ) ;\n PROTO_ITEM_SET_GENERATED ( sub_item ) ;\n }\n if ( service_data ) {\n sub_item = proto_tree_add_uint ( main_tree , hf_service_start_in_frame , tvb , offset , 0 , service_data -> start_in_frame ) ;\n PROTO_ITEM_SET_GENERATED ( sub_item ) ;\n if ( service_data -> close_local_in_frame < max_in_frame ) {\n sub_item = proto_tree_add_uint ( main_tree , hf_close_local_in_frame , tvb , offset , 0 , service_data -> close_local_in_frame ) ;\n PROTO_ITEM_SET_GENERATED ( sub_item ) ;\n }\n if ( service_data -> close_remote_in_frame < max_in_frame ) {\n sub_item = proto_tree_add_uint ( main_tree , hf_close_remote_in_frame , tvb , offset , 0 , service_data -> close_remote_in_frame ) ;\n PROTO_ITEM_SET_GENERATED ( sub_item ) ;\n }\n }\n if ( is_command ) {\n proto_tree_add_item ( main_tree , hf_command , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n command = tvb_get_letohl ( tvb , offset ) ;\n offset += 4 ;\n col_append_str ( pinfo -> cinfo , COL_INFO , val_to_str_const ( command , command_vals , \"Unknown command\" ) ) ;\n arg0_item = proto_tree_add_item ( main_tree , hf_argument_0 , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n arg0_tree = proto_item_add_subtree ( arg0_item , ett_adb_arg0 ) ;\n arg0 = tvb_get_letohl ( tvb , offset ) ;\n offset += 4 ;\n arg1_item = proto_tree_add_item ( main_tree , hf_argument_1 , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n arg1_tree = proto_item_add_subtree ( arg1_item , ett_adb_arg1 ) ;\n arg1 = tvb_get_letohl ( tvb , offset ) ;\n offset += 4 ;\n switch ( command ) {\n case A_CNXN : proto_tree_add_item ( arg0_tree , hf_version , tvb , offset - 8 , 4 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( arg1_tree , hf_max_data , tvb , offset - 4 , 4 , ENC_LITTLE_ENDIAN ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"(version=%u.%u.%u, max_data=%u)\" , tvb_get_guint8 ( tvb , offset - 5 ) , tvb_get_guint8 ( tvb , offset - 6 ) , tvb_get_letohs ( tvb , offset - 7 ) , tvb_get_letohl ( tvb , offset - 4 ) ) ;\n break ;\n case A_AUTH : proto_tree_add_item ( arg0_tree , hf_auth_type , tvb , offset - 8 , 4 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( arg1_tree , hf_zero , tvb , offset - 4 , 4 , ENC_LITTLE_ENDIAN ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"(type=%s, 0)\" , val_to_str_const ( tvb_get_letohl ( tvb , offset - 8 ) , auth_type_vals , \"Unknown\" ) ) ;\n break ;\n case A_OPEN : proto_tree_add_item ( arg0_tree , hf_local_id , tvb , offset - 8 , 4 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( arg1_tree , hf_zero , tvb , offset - 4 , 4 , ENC_LITTLE_ENDIAN ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"(local=%u, 0)\" , tvb_get_letohl ( tvb , offset - 8 ) ) ;\n break ;\n case A_WRTE : proto_tree_add_item ( arg0_tree , hf_zero , tvb , offset - 8 , 4 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( arg1_tree , hf_remote_id , tvb , offset - 4 , 4 , ENC_LITTLE_ENDIAN ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"(0, remote=%u)\" , tvb_get_letohl ( tvb , offset - 4 ) ) ;\n break ;\n case A_CLSE : case A_OKAY : proto_tree_add_item ( arg0_tree , hf_local_id , tvb , offset - 8 , 4 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( arg1_tree , hf_remote_id , tvb , offset - 4 , 4 , ENC_LITTLE_ENDIAN ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"(local=%u, remote=%u)\" , tvb_get_letohl ( tvb , offset - 8 ) , tvb_get_letohl ( tvb , offset - 4 ) ) ;\n break ;\n case A_SYNC : proto_tree_add_item ( arg0_tree , hf_online , tvb , offset - 8 , 4 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( arg1_tree , hf_sequence , tvb , offset - 4 , 4 , ENC_LITTLE_ENDIAN ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"(online=%s, sequence=%u)\" , tvb_get_letohl ( tvb , offset - 8 ) ? \"Yes\" : \"No\" , tvb_get_letohl ( tvb , offset - 4 ) ) ;\n break ;\n }\n proto_tree_add_item ( main_tree , hf_data_length , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n if ( data_length > 0 ) col_append_fstr ( pinfo -> cinfo , COL_INFO , \" length=%u \" , data_length ) ;\n crc_item = proto_tree_add_item ( main_tree , hf_data_crc32 , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n crc_tree = proto_item_add_subtree ( crc_item , ett_adb_crc ) ;\n crc32 = tvb_get_letohl ( tvb , offset ) ;\n offset += 4 ;\n magic_item = proto_tree_add_item ( main_tree , hf_magic , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n if ( ( tvb_get_letohl ( tvb , offset ) ^ 0xFFFFFFFF ) != command ) {\n proto_tree * expert_tree ;\n expert_tree = proto_item_add_subtree ( magic_item , ett_adb_magic ) ;\n proto_tree_add_expert ( expert_tree , pinfo , & ei_invalid_magic , tvb , offset , 4 ) ;\n }\n if ( ! pinfo -> fd -> flags . visited ) save_command ( command , arg0 , arg1 , data_length , crc32 , service_data , proto , data , pinfo , & service_data , & command_data ) ;\n offset += 4 ;\n }\n if ( ! pinfo -> fd -> flags . visited && command_data ) {\n if ( command_data -> command_in_frame != frame_number ) {\n is_command = FALSE ;\n is_next_fragment = TRUE ;\n }\n data_length = command_data -> data_length ;\n crc32 = command_data -> crc32 ;\n if ( ( command_data -> command_in_frame != frame_number && tvb_captured_length ( tvb ) == data_length ) || ( command_data -> command_in_frame == frame_number && tvb_captured_length ( tvb ) == data_length + 24 ) ) {\n command_data -> reassemble_data_length = command_data -> data_length ;\n command_data -> completed_in_frame = frame_number ;\n }\n }\n if ( is_next_fragment && command_data ) {\n sub_item = proto_tree_add_uint ( main_tree , hf_command_in_frame , tvb , offset , 0 , command_data -> command_in_frame ) ;\n PROTO_ITEM_SET_GENERATED ( sub_item ) ;\n sub_item = proto_tree_add_uint ( main_tree , hf_command , tvb , offset , 0 , command_data -> command ) ;\n PROTO_ITEM_SET_GENERATED ( sub_item ) ;\n sub_item = proto_tree_add_uint ( main_tree , hf_data_length , tvb , offset , 0 , command_data -> data_length ) ;\n PROTO_ITEM_SET_GENERATED ( sub_item ) ;\n crc_item = proto_tree_add_uint ( main_tree , hf_data_crc32 , tvb , offset , 0 , command_data -> crc32 ) ;\n crc_tree = proto_item_add_subtree ( crc_item , ett_adb_crc ) ;\n PROTO_ITEM_SET_GENERATED ( crc_item ) ;\n }\n if ( command_data && command_data -> completed_in_frame != frame_number ) {\n sub_item = proto_tree_add_uint ( main_tree , hf_completed_in_frame , tvb , offset , 0 , command_data -> completed_in_frame ) ;\n PROTO_ITEM_SET_GENERATED ( sub_item ) ;\n }\n if ( tvb_captured_length_remaining ( tvb , offset ) > 0 && ( ! is_command || data_length > 0 ) ) {\n guint32 crc = 0 ;\n guint32 i_offset ;\n if ( ( ! pinfo -> fd -> flags . visited && command_data && command_data -> reassemble_data_length < command_data -> data_length ) || data_length > ( guint32 ) tvb_captured_length_remaining ( tvb , offset ) ) {\n if ( ! pinfo -> fd -> flags . visited && command_data && command_data -> reassemble_data_length < command_data -> data_length ) {\n tvb_memcpy ( tvb , command_data -> reassemble_data + command_data -> reassemble_data_length , offset , tvb_captured_length_remaining ( tvb , offset ) ) ;\n command_data -> reassemble_data_length += tvb_captured_length_remaining ( tvb , offset ) ;\n if ( command_data -> reassemble_data_length >= command_data -> data_length ) command_data -> completed_in_frame = frame_number ;\n }\n proto_tree_add_item ( main_tree , hf_data_fragment , tvb , offset , - 1 , ENC_NA ) ;\n col_append_str ( pinfo -> cinfo , COL_INFO , \"Data Fragment\" ) ;\n offset = tvb_captured_length ( tvb ) ;\n if ( service_data && command_data && command_data -> reassemble_data_length >= command_data -> data_length && frame_number == command_data -> completed_in_frame ) {\n tvbuff_t * next_tvb ;\n adb_service_data_t adb_service_data ;\n next_tvb = tvb_new_child_real_data ( tvb , command_data -> reassemble_data , command_data -> reassemble_data_length , command_data -> reassemble_data_length ) ;\n add_new_data_source ( pinfo , next_tvb , \"ADB Reassembled Data\" ) ;\n adb_service_data . service = service_data -> service ;\n adb_service_data . direction = direction ;\n adb_service_data . session_key_length = 3 ;\n adb_service_data . session_key = ( guint32 * ) wmem_alloc ( wmem_packet_scope ( ) , adb_service_data . session_key_length * sizeof ( guint32 ) ) ;\n adb_service_data . session_key [ 0 ] = interface_id ;\n if ( proto == proto_usb ) {\n adb_service_data . session_key [ 1 ] = usb_conv_info -> bus_id ;\n adb_service_data . session_key [ 2 ] = usb_conv_info -> device_address ;\n }\n else {\n if ( direction == P2P_DIR_SENT ) {\n adb_service_data . session_key [ 1 ] = pinfo -> srcport ;\n adb_service_data . session_key [ 2 ] = pinfo -> destport ;\n }\n else {\n adb_service_data . session_key [ 1 ] = pinfo -> destport ;\n adb_service_data . session_key [ 2 ] = pinfo -> srcport ;\n }\n }\n call_dissector_with_data ( adb_service_handle , next_tvb , pinfo , tree , & adb_service_data ) ;\n }\n }\n else {\n for ( i_offset = 0 ;\n i_offset < data_length ;\n ++ i_offset ) crc += tvb_get_guint8 ( tvb , offset + i_offset ) ;\n if ( crc32 > 0 && crc32 != crc ) proto_tree_add_expert ( crc_tree , pinfo , & ei_invalid_crc , tvb , offset , - 1 ) ;\n if ( is_service ) {\n proto_tree_add_item ( main_tree , hf_service , tvb , offset , - 1 , ENC_ASCII | ENC_NA ) ;\n if ( ! pinfo -> fd -> flags . visited && service_data ) {\n service_data -> service = tvb_get_stringz_enc ( wmem_file_scope ( ) , tvb , offset , NULL , ENC_ASCII ) ;\n }\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"Service: %s\" , tvb_get_stringz_enc ( wmem_packet_scope ( ) , tvb , offset , NULL , ENC_ASCII ) ) ;\n offset = tvb_captured_length ( tvb ) ;\n }\n else if ( command_data && command_data -> command == A_CNXN ) {\n gchar * info ;\n gint len ;\n info = tvb_get_stringz_enc ( wmem_packet_scope ( ) , tvb , offset , & len , ENC_ASCII ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"Connection Info: %s\" , info ) ;\n proto_tree_add_item ( main_tree , hf_connection_info , tvb , offset , len , ENC_ASCII | ENC_NA ) ;\n offset += len ;\n }\n else {\n col_append_str ( pinfo -> cinfo , COL_INFO , \"Data\" ) ;\n if ( service_data ) {\n tvbuff_t * next_tvb ;\n adb_service_data_t adb_service_data ;\n adb_service_data . service = service_data -> service ;\n adb_service_data . direction = direction ;\n adb_service_data . session_key_length = 3 ;\n adb_service_data . session_key = ( guint32 * ) wmem_alloc ( wmem_packet_scope ( ) , adb_service_data . session_key_length * sizeof ( guint32 ) ) ;\n adb_service_data . session_key [ 0 ] = interface_id ;\n if ( proto == proto_usb ) {\n adb_service_data . session_key [ 1 ] = usb_conv_info -> bus_id ;\n adb_service_data . session_key [ 2 ] = usb_conv_info -> device_address ;\n }\n else {\n if ( direction == P2P_DIR_SENT ) {\n adb_service_data . session_key [ 1 ] = pinfo -> srcport ;\n adb_service_data . session_key [ 2 ] = pinfo -> destport ;\n }\n else {\n adb_service_data . session_key [ 1 ] = pinfo -> destport ;\n adb_service_data . session_key [ 2 ] = pinfo -> srcport ;\n }\n }\n next_tvb = tvb_new_subset ( tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , tvb_captured_length_remaining ( tvb , offset ) ) ;\n call_dissector_with_data ( adb_service_handle , next_tvb , pinfo , tree , & adb_service_data ) ;\n }\n else {\n proto_item * data_item ;\n gchar * data_str ;\n data_item = proto_tree_add_item ( main_tree , hf_data , tvb , offset , data_length , ENC_NA ) ;\n data_str = tvb_format_text ( tvb , offset , data_length ) ;\n proto_item_append_text ( data_item , \": %s\" , data_str ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" Raw: %s\" , data_str ) ;\n }\n offset = tvb_captured_length ( tvb ) ;\n }\n }\n }\n return offset ;\n }"}
{"idx": 15443, "target": 1, "func": "TEST_F ( MultiBufferTest , RandomTest_RangeSupported ) {\n size_t file_size = 1000000 ;\n multibuffer_ . SetFileSize ( file_size ) ;\n multibuffer_ . SetMaxBlocksAfterDefer ( 10 ) ;\n std : : vector < ReadHelper * > read_helpers ;\n multibuffer_ . SetRangeSupported ( true ) ;\n for ( size_t i = 0 ;\n i < 20 ;\n i ++ ) {\n read_helpers . push_back ( new ReadHelper ( file_size , 1000 , & multibuffer_ , & rnd_ ) ) ;\n }\n for ( int i = 0 ;\n i < 100 ;\n i ++ ) {\n for ( int j = 0 ;\n j < 100 ;\n j ++ ) {\n if ( rnd_ . Rand ( ) & 1 ) {\n if ( ! media : : writers . empty ( ) ) Advance ( ) ;\n }\n else {\n size_t j = rnd_ . Rand ( ) % read_helpers . size ( ) ;\n if ( rnd_ . Rand ( ) % 100 < 3 ) read_helpers [ j ] -> Seek ( ) ;\n read_helpers [ j ] -> StartRead ( ) ;\n }\n }\n multibuffer_ . CheckLRUState ( ) ;\n }\n multibuffer_ . CheckPresentState ( ) ;\n while ( ! read_helpers . empty ( ) ) {\n delete read_helpers . back ( ) ;\n read_helpers . pop_back ( ) ;\n }\n }"}
{"idx": 15444, "target": 0, "func": "bool handle_new_meta_connection ( int sock ) {\n static const int max_accept_burst = 10 ;\n static int last_accept_burst ;\n static int last_accept_time ;\n connection_t * c ;\n sockaddr_t sa ;\n int fd ;\n socklen_t len = sizeof ( sa ) ;\n fd = accept ( sock , & sa . sa , & len ) ;\n if ( fd < 0 ) {\n logger ( LOG_ERR , \"Accepting a new connection failed: %s\" , sockstrerror ( sockerrno ) ) ;\n return false ;\n }\n if ( last_accept_time == now ) {\n last_accept_burst ++ ;\n if ( last_accept_burst >= max_accept_burst ) {\n if ( last_accept_burst == max_accept_burst ) {\n ifdebug ( CONNECTIONS ) logger ( LOG_WARNING , \"Throttling incoming connections\" ) ;\n }\n tarpit ( fd ) ;\n return false ;\n }\n }\n else {\n last_accept_burst = 0 ;\n last_accept_time = now ;\n }\n sockaddrunmap ( & sa ) ;\n c = new_connection ( ) ;\n c -> name = xstrdup ( \"<unknown>\" ) ;\n c -> outcipher = myself -> connection -> outcipher ;\n c -> outdigest = myself -> connection -> outdigest ;\n c -> outmaclength = myself -> connection -> outmaclength ;\n c -> outcompression = myself -> connection -> outcompression ;\n c -> address = sa ;\n c -> hostname = sockaddr2hostname ( & sa ) ;\n c -> socket = fd ;\n c -> last_ping_time = now ;\n ifdebug ( CONNECTIONS ) logger ( LOG_NOTICE , \"Connection from %s\" , c -> hostname ) ;\n configure_tcp ( c ) ;\n connection_add ( c ) ;\n c -> allow_request = ID ;\n return true ;\n }"}
{"idx": 15445, "target": 0, "func": "static void test_field_names ( ) {\n int rc ;\n MYSQL_RES * result ;\n myheader ( \"test_field_names\" ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n %d, %d, %d\" , MYSQL_TYPE_DECIMAL , MYSQL_TYPE_NEWDATE , MYSQL_TYPE_ENUM ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_field_names1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_field_names2\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_field_names1(id int, name varchar(50))\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_field_names2(id int, name varchar(50))\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"SELECT id as 'id-alias' FROM test_field_names1\" ) ;\n myquery ( rc ) ;\n result = mysql_use_result ( mysql ) ;\n mytest ( result ) ;\n rc = my_process_result_set ( result ) ;\n DIE_UNLESS ( rc == 0 ) ;\n mysql_free_result ( result ) ;\n rc = mysql_query ( mysql , \"SELECT t1.id as 'id-alias', test_field_names2.name FROM test_field_names1 t1, test_field_names2\" ) ;\n myquery ( rc ) ;\n result = mysql_use_result ( mysql ) ;\n mytest ( result ) ;\n rc = my_process_result_set ( result ) ;\n DIE_UNLESS ( rc == 0 ) ;\n mysql_free_result ( result ) ;\n }"}
{"idx": 15446, "target": 0, "func": "static inline gboolean seen_inode ( DeepCountState * state , GFileInfo * info ) {\n guint64 inode , inode2 ;\n guint i ;\n inode = g_file_info_get_attribute_uint64 ( info , G_FILE_ATTRIBUTE_UNIX_INODE ) ;\n if ( inode != 0 ) {\n for ( i = 0 ;\n i < state -> seen_deep_count_inodes -> len ;\n i ++ ) {\n inode2 = g_array_index ( state -> seen_deep_count_inodes , guint64 , i ) ;\n if ( inode == inode2 ) {\n return TRUE ;\n }\n }\n }\n return FALSE ;\n }"}
{"idx": 15447, "target": 0, "func": "static void virtio_net_cleanup ( VLANClientState * nc ) {\n VirtIONet * n = DO_UPCAST ( NICState , nc , nc ) -> opaque ;\n n -> nic = NULL ;\n }"}
{"idx": 15448, "target": 0, "func": "static int SpoolssGeneric_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n int len = tvb_reported_length ( tvb ) ;\n proto_tree_add_expert ( tree , pinfo , & ei_unimplemented_dissector , tvb , offset , 0 ) ;\n offset = dissect_doserror ( tvb , len - 4 , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 15449, "target": 0, "func": "unsigned int hb_face_get_glyph_count ( hb_face_t * face ) {\n return face -> get_num_glyphs ( ) ;\n }"}
{"idx": 15450, "target": 0, "func": "static int test_candidate_kf ( TWO_PASS * twopass , const FIRSTPASS_STATS * last_frame , const FIRSTPASS_STATS * this_frame , const FIRSTPASS_STATS * next_frame ) {\n int is_viable_kf = 0 ;\n if ( ( this_frame -> pcnt_second_ref < 0.10 ) && ( next_frame -> pcnt_second_ref < 0.10 ) && ( ( this_frame -> pcnt_inter < 0.05 ) || ( ( ( this_frame -> pcnt_inter - this_frame -> pcnt_neutral ) < 0.35 ) && ( ( this_frame -> intra_error / DOUBLE_DIVIDE_CHECK ( this_frame -> coded_error ) ) < 2.5 ) && ( ( fabs ( last_frame -> coded_error - this_frame -> coded_error ) / DOUBLE_DIVIDE_CHECK ( this_frame -> coded_error ) > 0.40 ) || ( fabs ( last_frame -> intra_error - this_frame -> intra_error ) / DOUBLE_DIVIDE_CHECK ( this_frame -> intra_error ) > 0.40 ) || ( ( next_frame -> intra_error / DOUBLE_DIVIDE_CHECK ( next_frame -> coded_error ) ) > 3.5 ) ) ) ) ) {\n int i ;\n const FIRSTPASS_STATS * start_pos = twopass -> stats_in ;\n FIRSTPASS_STATS local_next_frame = * next_frame ;\n double boost_score = 0.0 ;\n double old_boost_score = 0.0 ;\n double decay_accumulator = 1.0 ;\n for ( i = 0 ;\n i < 16 ;\n ++ i ) {\n double next_iiratio = ( BOOST_FACTOR * local_next_frame . intra_error / DOUBLE_DIVIDE_CHECK ( local_next_frame . coded_error ) ) ;\n if ( next_iiratio > KF_II_MAX ) next_iiratio = KF_II_MAX ;\n if ( local_next_frame . pcnt_inter > 0.85 ) decay_accumulator *= local_next_frame . pcnt_inter ;\n else decay_accumulator *= ( 0.85 + local_next_frame . pcnt_inter ) / 2.0 ;\n boost_score += ( decay_accumulator * next_iiratio ) ;\n if ( ( local_next_frame . pcnt_inter < 0.05 ) || ( next_iiratio < 1.5 ) || ( ( ( local_next_frame . pcnt_inter - local_next_frame . pcnt_neutral ) < 0.20 ) && ( next_iiratio < 3.0 ) ) || ( ( boost_score - old_boost_score ) < 3.0 ) || ( local_next_frame . intra_error < 200 ) ) {\n break ;\n }\n old_boost_score = boost_score ;\n if ( EOF == input_stats ( twopass , & local_next_frame ) ) break ;\n }\n if ( boost_score > 30.0 && ( i > 3 ) ) {\n is_viable_kf = 1 ;\n }\n else {\n reset_fpf_position ( twopass , start_pos ) ;\n is_viable_kf = 0 ;\n }\n }\n return is_viable_kf ;\n }"}
{"idx": 15451, "target": 0, "func": "static void ss_interpretation ( tvbuff_t * tvb , proto_tree * tree , guint8 ss , guint number_of_mac_is_sdus , guint offset ) {\n switch ( ss ) {\n case 0 : if ( number_of_mac_is_sdus > 1 ) {\n proto_tree_add_uint_format_value ( tree , hf_mac_edch_type2_ss_interpretation , tvb , offset , 1 , ss , \"The first MAC-is SDU of the MAC-is PDU is a complete MAC-d PDU or MAC-c PDU. The last MAC-is SDU of the MAC-is PDU is a complete MAC-d PDU or MAC-c PDU.\" ) ;\n }\n else {\n proto_tree_add_uint_format_value ( tree , hf_mac_edch_type2_ss_interpretation , tvb , offset , 1 , ss , \"The MAC-is SDU of the MAC-is PDU is a complete MAC-d PDU or MAC-c PDU.\" ) ;\n }\n break ;\n case 1 : if ( number_of_mac_is_sdus > 1 ) {\n proto_tree_add_uint_format_value ( tree , hf_mac_edch_type2_ss_interpretation , tvb , offset , 1 , ss , \"The last MAC-is SDU of the MAC-is PDU is a complete MAC-d PDU or MAC-c PDU. The first MAC-is SDU of the MAC-is PDU is the last segment of a MAC-d PDU or MAC-c PDU.\" ) ;\n }\n else {\n proto_tree_add_uint_format_value ( tree , hf_mac_edch_type2_ss_interpretation , tvb , offset , 1 , ss , \"The MAC-is SDU of the MAC-is PDU is the last segment of a MAC-d PDU or MAC-c PDU.\" ) ;\n }\n break ;\n case 2 : if ( number_of_mac_is_sdus > 1 ) {\n proto_tree_add_uint_format_value ( tree , hf_mac_edch_type2_ss_interpretation , tvb , offset , 1 , ss , \"The first MAC-is SDU of the MAC-is PDU is a complete MAC-d PDU or MAC-c PDU. The last MAC-is SDU of the MAC-is PDU is the first segment of a MAC-d PDU or MAC-c PDU.\" ) ;\n }\n else {\n proto_tree_add_uint_format_value ( tree , hf_mac_edch_type2_ss_interpretation , tvb , offset , 1 , ss , \"The MAC-is SDU of the MAC-is PDU is the first segment of a MAC-d PDU or MAC-c PDU.\" ) ;\n }\n break ;\n case 3 : if ( number_of_mac_is_sdus > 1 ) {\n proto_tree_add_uint_format_value ( tree , hf_mac_edch_type2_ss_interpretation , tvb , offset , 1 , ss , \"The first MAC-is SDU of the MAC-is PDU is the last segment of a MAC-d PDU or MAC-c PDU and the last MAC-is SDU of MAC-is PDU is the first segment of a MAC-d PDU or MAC-c PDU.\" ) ;\n }\n else {\n proto_tree_add_uint_format_value ( tree , hf_mac_edch_type2_ss_interpretation , tvb , offset , 1 , ss , \"The MAC-is SDU is a middle segment of a MAC-d PDU or MAC-c PDU.\" ) ;\n }\n break ;\n }\n }"}
{"idx": 15452, "target": 0, "func": "Oid getTypeIOParam ( HeapTuple typeTuple ) {\n Form_pg_type typeStruct = ( Form_pg_type ) GETSTRUCT ( typeTuple ) ;\n if ( OidIsValid ( typeStruct -> typelem ) ) return typeStruct -> typelem ;\n else return HeapTupleGetOid ( typeTuple ) ;\n }"}
{"idx": 15453, "target": 0, "func": "static int dissect_h245_SET_SIZE_1_256_OF_CapabilityDescriptor ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_set_of ( tvb , offset , actx , tree , hf_index , ett_h245_SET_SIZE_1_256_OF_CapabilityDescriptor , SET_SIZE_1_256_OF_CapabilityDescriptor_set_of , 1 , 256 , FALSE ) ;\n return offset ;\n }"}
{"idx": 15454, "target": 0, "func": "static void config_vars ( config_tree * ptree ) {\n attr_val * curr_var ;\n int len ;\n curr_var = HEAD_PFIFO ( ptree -> vars ) ;\n for ( ;\n curr_var != NULL ;\n curr_var = curr_var -> link ) {\n switch ( curr_var -> attr ) {\n case T_Broadcastdelay : proto_config ( PROTO_BROADDELAY , 0 , curr_var -> value . d , NULL ) ;\n break ;\n case T_Tick : proto_config ( PROTO_ADJ , 0 , curr_var -> value . d , NULL ) ;\n break ;\n case T_Driftfile : if ( '\\0' == curr_var -> value . s [ 0 ] ) {\n stats_drift_file = 0 ;\n msyslog ( LOG_INFO , \"config: driftfile disabled\\n\" ) ;\n }\n else stats_config ( STATS_FREQ_FILE , curr_var -> value . s ) ;\n break ;\n case T_Ident : sys_ident = curr_var -> value . s ;\n break ;\n case T_WanderThreshold : case T_Nonvolatile : wander_threshold = curr_var -> value . d ;\n break ;\n case T_Leapfile : stats_config ( STATS_LEAP_FILE , curr_var -> value . s ) ;\n break ;\n case T_Pidfile : stats_config ( STATS_PID_FILE , curr_var -> value . s ) ;\n break ;\n case T_Logfile : if ( - 1 == change_logfile ( curr_var -> value . s , 0 ) ) msyslog ( LOG_ERR , \"Cannot open logfile %s: %m\" , curr_var -> value . s ) ;\n break ;\n case T_Saveconfigdir : if ( saveconfigdir != NULL ) free ( saveconfigdir ) ;\n len = strlen ( curr_var -> value . s ) ;\n if ( 0 == len ) {\n saveconfigdir = NULL ;\n }\n else if ( DIR_SEP != curr_var -> value . s [ len - 1 ] # ifdef SYS_WINNT && '/' != curr_var -> value . s [ len - 1 ] # endif ) {\n len ++ ;\n saveconfigdir = emalloc ( len + 1 ) ;\n snprintf ( saveconfigdir , len + 1 , \"%s%c\" , curr_var -> value . s , DIR_SEP ) ;\n }\n else {\n saveconfigdir = estrdup ( curr_var -> value . s ) ;\n }\n break ;\n case T_Automax : # ifdef AUTOKEY sys_automax = curr_var -> value . i ;\n # endif break ;\n default : msyslog ( LOG_ERR , \"config_vars(): unexpected token %d\" , curr_var -> attr ) ;\n }\n }\n }"}
{"idx": 15455, "target": 0, "func": "static GstFlowReturn gst_asf_demux_process_bitrate_props_object ( GstASFDemux * demux , guint8 * data , guint64 size ) {\n guint16 num_streams , i ;\n AsfStream * stream ;\n if ( size < 2 ) goto not_enough_data ;\n num_streams = gst_asf_demux_get_uint16 ( & data , & size ) ;\n GST_INFO ( \"object is a bitrate properties object with %u streams\" , num_streams ) ;\n if ( size < ( num_streams * ( 2 + 4 ) ) ) goto not_enough_data ;\n for ( i = 0 ;\n i < num_streams ;\n ++ i ) {\n guint32 bitrate ;\n guint16 stream_id ;\n stream_id = gst_asf_demux_get_uint16 ( & data , & size ) ;\n bitrate = gst_asf_demux_get_uint32 ( & data , & size ) ;\n if ( stream_id < GST_ASF_DEMUX_NUM_STREAM_IDS ) {\n GST_DEBUG_OBJECT ( demux , \"bitrate of stream %u = %u\" , stream_id , bitrate ) ;\n stream = gst_asf_demux_get_stream ( demux , stream_id ) ;\n if ( stream ) {\n if ( stream -> pending_tags == NULL ) stream -> pending_tags = gst_tag_list_new_empty ( ) ;\n gst_tag_list_add ( stream -> pending_tags , GST_TAG_MERGE_REPLACE , GST_TAG_BITRATE , bitrate , NULL ) ;\n }\n else {\n GST_WARNING_OBJECT ( demux , \"Stream id %u wasn't found\" , stream_id ) ;\n }\n }\n else {\n GST_WARNING ( \"stream id %u is too large\" , stream_id ) ;\n }\n }\n return GST_FLOW_OK ;\n not_enough_data : {\n GST_WARNING_OBJECT ( demux , \"short read parsing bitrate props object!\" ) ;\n return GST_FLOW_OK ;\n }\n }"}
{"idx": 15456, "target": 0, "func": "static int com_delimiter ( String * buffer __attribute__ ( ( unused ) ) , char * line ) {\n char buff [ 256 ] , * tmp ;\n strmake_buf ( buff , line ) ;\n tmp = get_arg ( buff , GET ) ;\n if ( ! tmp || ! * tmp ) {\n put_info ( \"DELIMITER must be followed by a 'delimiter' character or string\" , INFO_ERROR ) ;\n return 0 ;\n }\n else {\n if ( strstr ( tmp , \"\\\\\" ) ) {\n put_info ( \"DELIMITER cannot contain a backslash character\" , INFO_ERROR ) ;\n return 0 ;\n }\n }\n strmake_buf ( delimiter , tmp ) ;\n delimiter_length = ( int ) strlen ( delimiter ) ;\n delimiter_str = delimiter ;\n return 0 ;\n }"}
{"idx": 15457, "target": 0, "func": "static const char * getPosixID ( const ILcidPosixMap * this_0 , uint32_t hostID ) {\n uint32_t i ;\n for ( i = 0 ;\n i <= this_0 -> numRegions ;\n i ++ ) {\n if ( this_0 -> regionMaps [ i ] . hostID == hostID ) {\n return this_0 -> regionMaps [ i ] . posixID ;\n }\n }\n return this_0 -> regionMaps [ 0 ] . posixID ;\n }"}
{"idx": 15458, "target": 0, "func": "int vp9_cyclic_refresh_get_rdmult ( const CYCLIC_REFRESH * cr ) {\n return cr -> rdmult ;\n }"}
{"idx": 15459, "target": 0, "func": "static void configure ( struct recvbuf * rbufp , int restrict_mask ) {\n size_t data_count ;\n int retval ;\n if ( res_associd != 0 ) {\n ctl_error ( CERR_BADVALUE ) ;\n return ;\n }\n if ( RES_NOMODIFY & restrict_mask ) {\n snprintf ( remote_config . err_msg , sizeof ( remote_config . err_msg ) , \"runtime configuration prohibited by restrict ... nomodify\" ) ;\n ctl_putdata ( remote_config . err_msg , strlen ( remote_config . err_msg ) , 0 ) ;\n ctl_flushpkt ( 0 ) ;\n NLOG ( NLOG_SYSINFO ) msyslog ( LOG_NOTICE , \"runtime config from %s rejected due to nomodify restriction\" , stoa ( & rbufp -> recv_srcadr ) ) ;\n sys_restricted ++ ;\n return ;\n }\n data_count = remoteconfig_cmdlength ( reqpt , reqend ) ;\n if ( data_count > sizeof ( remote_config . buffer ) - 2 ) {\n snprintf ( remote_config . err_msg , sizeof ( remote_config . err_msg ) , \"runtime configuration failed: request too long\" ) ;\n ctl_putdata ( remote_config . err_msg , strlen ( remote_config . err_msg ) , 0 ) ;\n ctl_flushpkt ( 0 ) ;\n msyslog ( LOG_NOTICE , \"runtime config from %s rejected: request too long\" , stoa ( & rbufp -> recv_srcadr ) ) ;\n return ;\n }\n if ( data_count != ( size_t ) ( reqend - reqpt ) ) {\n snprintf ( remote_config . err_msg , sizeof ( remote_config . err_msg ) , \"runtime configuration failed: request contains an unprintable character\" ) ;\n ctl_putdata ( remote_config . err_msg , strlen ( remote_config . err_msg ) , 0 ) ;\n ctl_flushpkt ( 0 ) ;\n msyslog ( LOG_NOTICE , \"runtime config from %s rejected: request contains an unprintable character: %0x\" , stoa ( & rbufp -> recv_srcadr ) , reqpt [ data_count ] ) ;\n return ;\n }\n memcpy ( remote_config . buffer , reqpt , data_count ) ;\n remote_config . buffer [ data_count ] = '\\0' ;\n DPRINTF ( 1 , ( \"Got Remote Configuration Command: %s\\n\" , remote_config . buffer ) ) ;\n msyslog ( LOG_NOTICE , \"%s config: %s\" , stoa ( & rbufp -> recv_srcadr ) , remote_config . buffer ) ;\n remote_config . buffer [ data_count ++ ] = '\\n' ;\n remote_config . buffer [ data_count ] = '\\0' ;\n remote_config . pos = 0 ;\n remote_config . err_pos = 0 ;\n remote_config . no_errors = 0 ;\n config_remotely ( & rbufp -> recv_srcadr ) ;\n if ( 0 == remote_config . no_errors ) {\n retval = snprintf ( remote_config . err_msg , sizeof ( remote_config . err_msg ) , \"Config Succeeded\" ) ;\n if ( retval > 0 ) remote_config . err_pos += retval ;\n }\n ctl_putdata ( remote_config . err_msg , remote_config . err_pos , 0 ) ;\n ctl_flushpkt ( 0 ) ;\n DPRINTF ( 1 , ( \"Reply: %s\\n\" , remote_config . err_msg ) ) ;\n if ( remote_config . no_errors > 0 ) msyslog ( LOG_NOTICE , \"%d error in %s config\" , remote_config . no_errors , stoa ( & rbufp -> recv_srcadr ) ) ;\n }"}
{"idx": 15460, "target": 0, "func": "int dissect_ber_bitstring32 ( gboolean implicit_tag , asn1_ctx_t * actx , proto_tree * parent_tree , tvbuff_t * tvb , int offset , int * * bit_fields , gint hf_id , gint ett_id , tvbuff_t * * out_tvb ) {\n tvbuff_t * tmp_tvb = NULL ;\n proto_tree * tree ;\n guint32 val ;\n int * * bf ;\n header_field_info * hfi ;\n const char * sep ;\n gboolean term ;\n unsigned int i , tvb_len ;\n offset = dissect_ber_bitstring ( implicit_tag , actx , parent_tree , tvb , offset , NULL , hf_id , ett_id , & tmp_tvb ) ;\n tree = proto_item_get_subtree ( actx -> created_item ) ;\n if ( bit_fields && tree && tmp_tvb ) {\n val = 0 ;\n tvb_len = tvb_reported_length ( tmp_tvb ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n val <<= 8 ;\n if ( i < tvb_len ) {\n val |= tvb_get_guint8 ( tmp_tvb , i ) ;\n }\n }\n bf = bit_fields ;\n sep = \" (\" ;\n term = FALSE ;\n while ( * bf ) {\n if ( * * bf >= 0 ) {\n proto_tree_add_boolean ( tree , * * bf , tmp_tvb , 0 , tvb_len , val ) ;\n hfi = proto_registrar_get_nth ( * * bf ) ;\n if ( val & hfi -> bitmask ) {\n proto_item_append_text ( actx -> created_item , \"%s%s\" , sep , hfi -> name ) ;\n sep = \", \" ;\n term = TRUE ;\n }\n }\n bf ++ ;\n }\n if ( term ) proto_item_append_text ( actx -> created_item , \")\" ) ;\n }\n if ( out_tvb ) * out_tvb = tmp_tvb ;\n return offset ;\n }"}
{"idx": 15461, "target": 0, "func": "static int tree_content_remove ( struct tree_entry * root , const char * p , struct tree_entry * backup_leaf , int allow_root ) {\n struct tree_content * t ;\n const char * slash1 ;\n unsigned int i , n ;\n struct tree_entry * e ;\n slash1 = strchrnul ( p , '/' ) ;\n n = slash1 - p ;\n if ( ! root -> tree ) load_tree ( root ) ;\n if ( ! * p && allow_root ) {\n e = root ;\n goto del_entry ;\n }\n t = root -> tree ;\n for ( i = 0 ;\n i < t -> entry_count ;\n i ++ ) {\n e = t -> entries [ i ] ;\n if ( e -> name -> str_len == n && ! strncmp_icase ( p , e -> name -> str_dat , n ) ) {\n if ( * slash1 && ! S_ISDIR ( e -> versions [ 1 ] . mode ) ) return 1 ;\n if ( ! * slash1 || ! S_ISDIR ( e -> versions [ 1 ] . mode ) ) goto del_entry ;\n if ( ! e -> tree ) load_tree ( e ) ;\n if ( tree_content_remove ( e , slash1 + 1 , backup_leaf , 0 ) ) {\n for ( n = 0 ;\n n < e -> tree -> entry_count ;\n n ++ ) {\n if ( e -> tree -> entries [ n ] -> versions [ 1 ] . mode ) {\n hashclr ( root -> versions [ 1 ] . sha1 ) ;\n return 1 ;\n }\n }\n backup_leaf = NULL ;\n goto del_entry ;\n }\n return 0 ;\n }\n }\n return 0 ;\n del_entry : if ( backup_leaf ) memcpy ( backup_leaf , e , sizeof ( * backup_leaf ) ) ;\n else if ( e -> tree ) release_tree_content_recursive ( e -> tree ) ;\n e -> tree = NULL ;\n e -> versions [ 1 ] . mode = 0 ;\n hashclr ( e -> versions [ 1 ] . sha1 ) ;\n hashclr ( root -> versions [ 1 ] . sha1 ) ;\n return 1 ;\n }"}
{"idx": 15462, "target": 0, "func": "static int dissect_pvfs2_create_response ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n return dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"handle\" , NULL ) ;\n }"}
{"idx": 15463, "target": 0, "func": "static int dissect_h245_MaxRedundancy ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , NO_BOUND , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 15464, "target": 0, "func": "static int dissect_h225_TBCD_STRING_SIZE_1_4 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_size_constrained_type ( tvb , offset , actx , tree , hf_index , dissect_h225_TBCD_STRING , \"TBCD_STRING\" , 1 , 4 , FALSE ) ;\n return offset ;\n }"}
{"idx": 15465, "target": 1, "func": "extern int name ( int ) __THROW __exctype ( isalnum ) ;\n __exctype ( isalpha ) ;\n __exctype ( iscntrl ) ;\n __exctype ( isdigit ) ;\n __exctype ( islower ) ;\n __exctype ( isgraph ) ;\n __exctype ( isprint ) ;\n __exctype ( ispunct ) ;\n __exctype ( isspace ) ;\n __exctype ( isupper ) ;\n __exctype ( isxdigit ) ;\n extern int tolower ( int __c ) __THROW ;\n extern int toupper ( int __c ) __THROW ;\n # ifdef __USE_ISOC99 __exctype ( isblank )"}
{"idx": 15466, "target": 0, "func": "void fz_drop_colorspace_imp ( fz_context * ctx , fz_storable * cs_ ) {\n fz_colorspace * cs = ( fz_colorspace * ) cs_ ;\n int i ;\n if ( cs -> free_data && cs -> data ) cs -> free_data ( ctx , cs ) ;\n for ( i = 0 ;\n i < FZ_MAX_COLORS ;\n i ++ ) fz_free ( ctx , cs -> colorant [ i ] ) ;\n fz_free ( ctx , cs ) ;\n }"}
{"idx": 15467, "target": 0, "func": "static int dissect_h245_RequestMultiplexEntryRejectionDescriptionsCause ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_RequestMultiplexEntryRejectionDescriptionsCause , RequestMultiplexEntryRejectionDescriptionsCause_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 15468, "target": 0, "func": "static void init_check_host ( void ) {\n DBUG_ENTER ( \"init_check_host\" ) ;\n VOID ( my_init_dynamic_array ( & acl_wild_hosts , sizeof ( struct acl_host_and_ip ) , acl_users . elements , 1 ) ) ;\n VOID ( hash_init ( & acl_check_hosts , system_charset_info , acl_users . elements , 0 , 0 , ( hash_get_key ) check_get_key , 0 , 0 ) ) ;\n if ( ! allow_all_hosts ) {\n for ( uint i = 0 ;\n i < acl_users . elements ;\n i ++ ) {\n ACL_USER * acl_user = dynamic_element ( & acl_users , i , ACL_USER * ) ;\n if ( strchr ( acl_user -> host . hostname , wild_many ) || strchr ( acl_user -> host . hostname , wild_one ) || acl_user -> host . ip_mask ) {\n uint j ;\n for ( j = 0 ;\n j < acl_wild_hosts . elements ;\n j ++ ) {\n acl_host_and_ip * acl = dynamic_element ( & acl_wild_hosts , j , acl_host_and_ip * ) ;\n if ( ! my_strcasecmp ( system_charset_info , acl_user -> host . hostname , acl -> hostname ) ) break ;\n }\n if ( j == acl_wild_hosts . elements ) ( void ) push_dynamic ( & acl_wild_hosts , ( uchar * ) & acl_user -> host ) ;\n }\n else if ( ! hash_search ( & acl_check_hosts , ( uchar * ) acl_user -> host . hostname , strlen ( acl_user -> host . hostname ) ) ) {\n if ( my_hash_insert ( & acl_check_hosts , ( uchar * ) acl_user ) ) {\n allow_all_hosts = 1 ;\n DBUG_VOID_RETURN ;\n }\n }\n }\n }\n freeze_size ( & acl_wild_hosts ) ;\n freeze_size ( & acl_check_hosts . array ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 15469, "target": 0, "func": "int ctlsettrap ( sockaddr_u * raddr , struct interface * linter , int traptype , int version ) {\n size_t n ;\n struct ctl_trap * tp ;\n struct ctl_trap * tptouse ;\n if ( ( tp = ctlfindtrap ( raddr , linter ) ) != NULL ) {\n switch ( traptype ) {\n case TRAP_TYPE_CONFIG : tp -> tr_flags = TRAP_INUSE | TRAP_CONFIGURED ;\n break ;\n case TRAP_TYPE_PRIO : if ( tp -> tr_flags & TRAP_CONFIGURED ) return ( 1 ) ;\n tp -> tr_flags = TRAP_INUSE ;\n break ;\n case TRAP_TYPE_NONPRIO : if ( tp -> tr_flags & TRAP_CONFIGURED ) return ( 1 ) ;\n tp -> tr_flags = TRAP_INUSE | TRAP_NONPRIO ;\n break ;\n }\n tp -> tr_settime = current_time ;\n tp -> tr_resets ++ ;\n return ( 1 ) ;\n }\n tptouse = NULL ;\n for ( n = 0 ;\n n < COUNTOF ( ctl_traps ) ;\n n ++ ) {\n tp = & ctl_traps [ n ] ;\n if ( ( TRAP_INUSE & tp -> tr_flags ) && ! ( TRAP_CONFIGURED & tp -> tr_flags ) && ( ( tp -> tr_settime + CTL_TRAPTIME ) > current_time ) ) {\n tp -> tr_flags = 0 ;\n num_ctl_traps -- ;\n }\n if ( ! ( TRAP_INUSE & tp -> tr_flags ) ) {\n tptouse = tp ;\n }\n else if ( ! ( TRAP_CONFIGURED & tp -> tr_flags ) ) {\n switch ( traptype ) {\n case TRAP_TYPE_CONFIG : if ( tptouse == NULL ) {\n tptouse = tp ;\n break ;\n }\n if ( ( TRAP_NONPRIO & tptouse -> tr_flags ) && ! ( TRAP_NONPRIO & tp -> tr_flags ) ) break ;\n if ( ! ( TRAP_NONPRIO & tptouse -> tr_flags ) && ( TRAP_NONPRIO & tp -> tr_flags ) ) {\n tptouse = tp ;\n break ;\n }\n if ( tptouse -> tr_origtime < tp -> tr_origtime ) tptouse = tp ;\n break ;\n case TRAP_TYPE_PRIO : if ( TRAP_NONPRIO & tp -> tr_flags ) {\n if ( tptouse == NULL || ( ( TRAP_INUSE & tptouse -> tr_flags ) && tptouse -> tr_origtime < tp -> tr_origtime ) ) tptouse = tp ;\n }\n break ;\n case TRAP_TYPE_NONPRIO : break ;\n }\n }\n }\n if ( tptouse == NULL ) return ( 0 ) ;\n tptouse -> tr_settime = tptouse -> tr_origtime = current_time ;\n tptouse -> tr_count = tptouse -> tr_resets = 0 ;\n tptouse -> tr_sequence = 1 ;\n tptouse -> tr_addr = * raddr ;\n tptouse -> tr_localaddr = linter ;\n tptouse -> tr_version = ( u_char ) version ;\n tptouse -> tr_flags = TRAP_INUSE ;\n if ( traptype == TRAP_TYPE_CONFIG ) tptouse -> tr_flags |= TRAP_CONFIGURED ;\n else if ( traptype == TRAP_TYPE_NONPRIO ) tptouse -> tr_flags |= TRAP_NONPRIO ;\n num_ctl_traps ++ ;\n return ( 1 ) ;\n }"}
{"idx": 15470, "target": 0, "func": "OM_uint32 kg_sync_ccache_name ( krb5_context context , OM_uint32 * minor_status ) {\n OM_uint32 err = 0 ;\n if ( ! err ) {\n err = krb5_cc_set_default_name ( context , ( char * ) k5_getspecific ( K5_KEY_GSS_KRB5_CCACHE_NAME ) ) ;\n }\n * minor_status = err ;\n return ( * minor_status == 0 ) ? GSS_S_COMPLETE : GSS_S_FAILURE ;\n }"}
{"idx": 15471, "target": 0, "func": "static void create_cel_evals ( RoqContext * enc , RoqTempdata * tempData ) {\n int n = 0 , x , y , i ;\n tempData -> cel_evals = av_malloc ( enc -> width * enc -> height / 64 * sizeof ( CelEvaluation ) ) ;\n for ( y = 0 ;\n y < enc -> height ;\n y += 16 ) for ( x = 0 ;\n x < enc -> width ;\n x += 16 ) for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n tempData -> cel_evals [ n ] . sourceX = x + ( i & 1 ) * 8 ;\n tempData -> cel_evals [ n ++ ] . sourceY = y + ( i & 2 ) * 4 ;\n }\n }"}
{"idx": 15472, "target": 0, "func": "static int dissect_rtmpt_http ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n conversation_t * conv ;\n rtmpt_conv_t * rconv ;\n int cdir ;\n guint32 seq ;\n guint32 lastackseq ;\n guint32 offset ;\n gint remain ;\n offset = 0 ;\n remain = tvb_reported_length_remaining ( tvb , 0 ) ;\n cdir = pinfo -> srcport == pinfo -> match_uint ;\n if ( cdir ) {\n conv = find_conversation ( pinfo -> num , & pinfo -> dst , & pinfo -> src , pinfo -> ptype , 0 , pinfo -> srcport , 0 ) ;\n if ( ! conv ) {\n RTMPT_DEBUG ( \"RTMPT new conversation\\n\" ) ;\n conv = conversation_new ( pinfo -> num , & pinfo -> dst , & pinfo -> src , pinfo -> ptype , 0 , pinfo -> srcport , 0 ) ;\n }\n }\n else {\n conv = find_conversation ( pinfo -> num , & pinfo -> src , & pinfo -> dst , pinfo -> ptype , 0 , pinfo -> destport , 0 ) ;\n if ( ! conv ) {\n RTMPT_DEBUG ( \"RTMPT new conversation\\n\" ) ;\n conv = conversation_new ( pinfo -> num , & pinfo -> src , & pinfo -> dst , pinfo -> ptype , 0 , pinfo -> destport , 0 ) ;\n }\n }\n rconv = ( rtmpt_conv_t * ) conversation_get_proto_data ( conv , proto_rtmpt ) ;\n if ( ! rconv ) {\n rconv = rtmpt_init_rconv ( conv ) ;\n }\n lastackseq = GPOINTER_TO_INT ( wmem_tree_lookup32_le ( rconv -> seqs [ cdir ^ 1 ] , pinfo -> num ) ) + 1 ;\n if ( cdir == 1 && lastackseq < 2 && remain == 17 ) {\n offset += 17 ;\n remain -= 17 ;\n }\n else if ( cdir || remain == 1 ) {\n offset ++ ;\n remain -- ;\n }\n seq = GPOINTER_TO_INT ( wmem_tree_lookup32 ( rconv -> seqs [ cdir ] , pinfo -> num ) ) ;\n if ( seq == 0 ) {\n seq = GPOINTER_TO_INT ( wmem_tree_lookup32_le ( rconv -> seqs [ cdir ] , pinfo -> num ) ) ;\n seq += remain ;\n wmem_tree_insert32 ( rconv -> seqs [ cdir ] , pinfo -> num , GINT_TO_POINTER ( seq ) ) ;\n }\n seq -= remain - 1 ;\n RTMPT_DEBUG ( \"RTMPT f=%d cdir=%d seq=%d lastackseq=%d len=%d\\n\" , pinfo -> num , cdir , seq , lastackseq , remain ) ;\n if ( remain < 1 ) return offset ;\n if ( offset > 0 ) {\n tvbuff_t * tvbrtmp = tvb_new_subset_length ( tvb , offset , remain ) ;\n dissect_rtmpt_common ( tvbrtmp , pinfo , tree , rconv , cdir , seq , lastackseq ) ;\n }\n else {\n dissect_rtmpt_common ( tvb , pinfo , tree , rconv , cdir , seq , lastackseq ) ;\n }\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 15473, "target": 0, "func": "static void cmd_window_right ( void ) {\n int refnum ;\n refnum = window_refnum_right ( active_win -> refnum , TRUE ) ;\n if ( refnum != - 1 ) window_set_active ( window_find_refnum ( refnum ) ) ;\n }"}
{"idx": 15474, "target": 0, "func": "static void U_CALLCONV myMemFree ( const void * context , void * mem ) {\n char * freePtr = ( char * ) mem ;\n if ( freePtr != NULL ) {\n freePtr -= sizeof ( ctest_AlignedMemory ) ;\n }\n free ( freePtr ) ;\n }"}
{"idx": 15475, "target": 0, "func": "static int do_uncompress ( compress_filter_context_t * zfx , z_stream * zs , IOBUF a , size_t * ret_len ) {\n int zrc ;\n int rc = 0 ;\n int leave = 0 ;\n size_t n ;\n int nread , count ;\n int refill = ! zs -> avail_in ;\n if ( DBG_FILTER ) log_debug ( \"begin inflate: avail_in=%u, avail_out=%u, inbuf=%u\\n\" , ( unsigned ) zs -> avail_in , ( unsigned ) zs -> avail_out , ( unsigned ) zfx -> inbufsize ) ;\n do {\n if ( zs -> avail_in < zfx -> inbufsize && refill ) {\n n = zs -> avail_in ;\n if ( ! n ) # ifndef __riscos__ zs -> next_in = zfx -> inbuf ;\n # else zs -> next_in = ( Bytef * ) zfx -> inbuf ;\n # endif count = zfx -> inbufsize - n ;\n nread = iobuf_read ( a , zfx -> inbuf + n , count ) ;\n if ( nread == - 1 ) nread = 0 ;\n n += nread ;\n if ( nread < count && zfx -> algo == 1 && zfx -> algo1hack < 4 ) {\n * ( zfx -> inbuf + n ) = 0xFF ;\n zfx -> algo1hack ++ ;\n n ++ ;\n leave = 1 ;\n }\n zs -> avail_in = n ;\n }\n refill = 1 ;\n if ( DBG_FILTER ) log_debug ( \"enter inflate: avail_in=%u, avail_out=%u\\n\" , ( unsigned ) zs -> avail_in , ( unsigned ) zs -> avail_out ) ;\n # ifdef Z_SYNC_FLUSH zrc = inflate ( zs , Z_SYNC_FLUSH ) ;\n # else zrc = inflate ( zs , Z_PARTIAL_FLUSH ) ;\n # endif if ( DBG_FILTER ) log_debug ( \"leave inflate: avail_in=%u, avail_out=%u, zrc=%d\\n\" , ( unsigned ) zs -> avail_in , ( unsigned ) zs -> avail_out , zrc ) ;\n if ( zrc == Z_STREAM_END ) rc = - 1 ;\n else if ( zrc != Z_OK && zrc != Z_BUF_ERROR ) {\n if ( zs -> msg ) log_fatal ( \"zlib inflate problem: %s\\n\" , zs -> msg ) ;\n else log_fatal ( \"zlib inflate problem: rc=%d\\n\" , zrc ) ;\n }\n }\n while ( zs -> avail_out && zrc != Z_STREAM_END && zrc != Z_BUF_ERROR && ! leave ) ;\n * ret_len = zfx -> outbufsize - zs -> avail_out ;\n if ( DBG_FILTER ) log_debug ( \"do_uncompress: returning %u bytes\\n\" , ( unsigned ) * ret_len ) ;\n return rc ;\n }"}
{"idx": 15476, "target": 0, "func": "static vpx_codec_err_t ctrl_set_active_map ( vpx_codec_alg_priv_t * ctx , va_list args ) {\n vpx_active_map_t * const map = va_arg ( args , vpx_active_map_t * ) ;\n if ( map ) {\n if ( ! vp9_set_active_map ( ctx -> cpi , map -> active_map , ( int ) map -> rows , ( int ) map -> cols ) ) return VPX_CODEC_OK ;\n else return VPX_CODEC_INVALID_PARAM ;\n }\n else {\n return VPX_CODEC_INVALID_PARAM ;\n }\n }"}
{"idx": 15477, "target": 1, "func": "static void count_segs ( const VP9_COMMON * cm , MACROBLOCKD * xd , const TileInfo * tile , MODE_INFO * * mi , int * no_pred_segcounts , int ( * temporal_predictor_count ) [ 2 ] , int * t_unpred_seg_counts , int bw , int bh , int mi_row , int mi_col ) {\n int segment_id ;\n if ( mi_row >= cm -> mi_rows || mi_col >= cm -> mi_cols ) return ;\n xd -> mi = mi ;\n segment_id = xd -> mi [ 0 ] -> mbmi . segment_id ;\n set_mi_row_col ( xd , tile , mi_row , bh , mi_col , bw , cm -> mi_rows , cm -> mi_cols ) ;\n no_pred_segcounts [ segment_id ] ++ ;\n if ( cm -> frame_type != KEY_FRAME ) {\n const BLOCK_SIZE bsize = xd -> mi [ 0 ] -> mbmi . sb_type ;\n const int pred_segment_id = vp9_get_segment_id ( cm , cm -> last_frame_seg_map , bsize , mi_row , mi_col ) ;\n const int pred_flag = pred_segment_id == segment_id ;\n const int pred_context = vp9_get_pred_context_seg_id ( xd ) ;\n xd -> mi [ 0 ] -> mbmi . seg_id_predicted = pred_flag ;\n temporal_predictor_count [ pred_context ] [ pred_flag ] ++ ;\n if ( ! pred_flag ) t_unpred_seg_counts [ segment_id ] ++ ;\n }\n }"}
{"idx": 15478, "target": 0, "func": "TEST ( AutocompleteMatchTest , MoreRelevant ) {\n struct RelevantCases {\n int r1 ;\n int r2 ;\n bool expected_result ;\n }\n cases [ ] = {\n {\n 10 , 0 , true }\n , {\n 10 , - 5 , true }\n , {\n - 5 , 10 , false }\n , {\n 0 , 10 , false }\n , {\n - 10 , - 5 , false }\n , {\n - 5 , - 10 , true }\n , }\n ;\n AutocompleteMatch m1 ( NULL , 0 , false , AutocompleteMatchType : : URL_WHAT_YOU_TYPED ) ;\n AutocompleteMatch m2 ( NULL , 0 , false , AutocompleteMatchType : : URL_WHAT_YOU_TYPED ) ;\n for ( size_t i = 0 ;\n i < arraysize ( cases ) ;\n ++ i ) {\n m1 . relevance = cases [ i ] . r1 ;\n m2 . relevance = cases [ i ] . r2 ;\n EXPECT_EQ ( cases [ i ] . expected_result , AutocompleteMatch : : MoreRelevant ( m1 , m2 ) ) ;\n }\n }"}
{"idx": 15479, "target": 0, "func": "int dissect_h225_IntegrityMechanism ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_IntegrityMechanism , IntegrityMechanism_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 15480, "target": 0, "func": "bool acl_check_host ( const char * host , const char * ip ) {\n if ( allow_all_hosts ) return 0 ;\n VOID ( pthread_mutex_lock ( & acl_cache -> lock ) ) ;\n if ( ( host && hash_search ( & acl_check_hosts , ( uchar * ) host , strlen ( host ) ) ) || ( ip && hash_search ( & acl_check_hosts , ( uchar * ) ip , strlen ( ip ) ) ) ) {\n VOID ( pthread_mutex_unlock ( & acl_cache -> lock ) ) ;\n return 0 ;\n }\n for ( uint i = 0 ;\n i < acl_wild_hosts . elements ;\n i ++ ) {\n acl_host_and_ip * acl = dynamic_element ( & acl_wild_hosts , i , acl_host_and_ip * ) ;\n if ( compare_hostname ( acl , host , ip ) ) {\n VOID ( pthread_mutex_unlock ( & acl_cache -> lock ) ) ;\n return 0 ;\n }\n }\n VOID ( pthread_mutex_unlock ( & acl_cache -> lock ) ) ;\n return 1 ;\n }"}
{"idx": 15481, "target": 0, "func": "static int check_mv ( H264Context * h , long b_idx , long bn_idx , int mvy_limit ) {\n int v ;\n v = h -> ref_cache [ 0 ] [ b_idx ] != h -> ref_cache [ 0 ] [ bn_idx ] ;\n if ( ! v && h -> ref_cache [ 0 ] [ b_idx ] != - 1 ) v = h -> mv_cache [ 0 ] [ b_idx ] [ 0 ] - h -> mv_cache [ 0 ] [ bn_idx ] [ 0 ] + 3 >= 7U | FFABS ( h -> mv_cache [ 0 ] [ b_idx ] [ 1 ] - h -> mv_cache [ 0 ] [ bn_idx ] [ 1 ] ) >= mvy_limit ;\n if ( h -> list_count == 2 ) {\n if ( ! v ) v = h -> ref_cache [ 1 ] [ b_idx ] != h -> ref_cache [ 1 ] [ bn_idx ] | h -> mv_cache [ 1 ] [ b_idx ] [ 0 ] - h -> mv_cache [ 1 ] [ bn_idx ] [ 0 ] + 3 >= 7U | FFABS ( h -> mv_cache [ 1 ] [ b_idx ] [ 1 ] - h -> mv_cache [ 1 ] [ bn_idx ] [ 1 ] ) >= mvy_limit ;\n if ( v ) {\n if ( h -> ref_cache [ 0 ] [ b_idx ] != h -> ref_cache [ 1 ] [ bn_idx ] | h -> ref_cache [ 1 ] [ b_idx ] != h -> ref_cache [ 0 ] [ bn_idx ] ) return 1 ;\n return h -> mv_cache [ 0 ] [ b_idx ] [ 0 ] - h -> mv_cache [ 1 ] [ bn_idx ] [ 0 ] + 3 >= 7U | FFABS ( h -> mv_cache [ 0 ] [ b_idx ] [ 1 ] - h -> mv_cache [ 1 ] [ bn_idx ] [ 1 ] ) >= mvy_limit | h -> mv_cache [ 1 ] [ b_idx ] [ 0 ] - h -> mv_cache [ 0 ] [ bn_idx ] [ 0 ] + 3 >= 7U | FFABS ( h -> mv_cache [ 1 ] [ b_idx ] [ 1 ] - h -> mv_cache [ 0 ] [ bn_idx ] [ 1 ] ) >= mvy_limit ;\n }\n }\n return v ;\n }"}
{"idx": 15482, "target": 0, "func": "static void prplcb_roomlist_destroy ( PurpleRoomlist * list ) {\n g_free ( list -> ui_data ) ;\n list -> ui_data = NULL ;\n }"}
{"idx": 15483, "target": 0, "func": "static PyObject * _cbson_dict_to_bson ( PyObject * self , PyObject * args ) {\n PyObject * dict ;\n PyObject * result ;\n unsigned char check_keys ;\n unsigned char uuid_subtype ;\n unsigned char top_level = 1 ;\n buffer_t buffer ;\n if ( ! PyArg_ParseTuple ( args , \"Obb|b\" , & dict , & check_keys , & uuid_subtype , & top_level ) ) {\n return NULL ;\n }\n buffer = buffer_new ( ) ;\n if ( ! buffer ) {\n PyErr_NoMemory ( ) ;\n return NULL ;\n }\n if ( ! write_dict ( self , buffer , dict , check_keys , uuid_subtype , top_level ) ) {\n buffer_free ( buffer ) ;\n return NULL ;\n }\n # if PY_MAJOR_VERSION >= 3 result = Py_BuildValue ( \"y#\" , buffer_get_buffer ( buffer ) , buffer_get_position ( buffer ) ) ;\n # else result = Py_BuildValue ( \"s#\" , buffer_get_buffer ( buffer ) , buffer_get_position ( buffer ) ) ;\n # endif buffer_free ( buffer ) ;\n return result ;\n }"}
{"idx": 15484, "target": 0, "func": "int ber_flush2 ( Sockbuf * sb , BerElement * ber , int freeit ) {\n ber_len_t towrite ;\n ber_slen_t rc ;\n assert ( sb != NULL ) ;\n assert ( ber != NULL ) ;\n assert ( SOCKBUF_VALID ( sb ) ) ;\n assert ( LBER_VALID ( ber ) ) ;\n if ( ber -> ber_rwptr == NULL ) {\n ber -> ber_rwptr = ber -> ber_buf ;\n }\n towrite = ber -> ber_ptr - ber -> ber_rwptr ;\n if ( sb -> sb_debug ) {\n ber_log_printf ( LDAP_DEBUG_TRACE , sb -> sb_debug , \"ber_flush2: %ld bytes to sd %ld%s\\n\" , towrite , ( long ) sb -> sb_fd , ber -> ber_rwptr != ber -> ber_buf ? \" (re-flush)\" : \"\" ) ;\n ber_log_bprint ( LDAP_DEBUG_BER , sb -> sb_debug , ber -> ber_rwptr , towrite ) ;\n }\n while ( towrite > 0 ) {\n # ifdef LBER_TRICKLE sleep ( 1 ) ;\n rc = ber_int_sb_write ( sb , ber -> ber_rwptr , 1 ) ;\n # else rc = ber_int_sb_write ( sb , ber -> ber_rwptr , towrite ) ;\n # endif if ( rc <= 0 ) {\n if ( freeit & LBER_FLUSH_FREE_ON_ERROR ) ber_free ( ber , 1 ) ;\n return - 1 ;\n }\n towrite -= rc ;\n ber -> ber_rwptr += rc ;\n }\n if ( freeit & LBER_FLUSH_FREE_ON_SUCCESS ) ber_free ( ber , 1 ) ;\n return 0 ;\n }"}
{"idx": 15485, "target": 0, "func": "static void ps2_mouse_reset ( void * opaque ) {\n PS2MouseState * s = ( PS2MouseState * ) opaque ;\n trace_ps2_mouse_reset ( opaque ) ;\n ps2_common_reset ( & s -> common ) ;\n s -> mouse_status = 0 ;\n s -> mouse_resolution = 0 ;\n s -> mouse_sample_rate = 0 ;\n s -> mouse_wrap = 0 ;\n s -> mouse_type = 0 ;\n s -> mouse_detect_state = 0 ;\n s -> mouse_dx = 0 ;\n s -> mouse_dy = 0 ;\n s -> mouse_dz = 0 ;\n s -> mouse_buttons = 0 ;\n }"}
{"idx": 15486, "target": 1, "func": "void vp9_idct8x8_64_add_c ( const int16_t * input , uint8_t * dest , int stride ) {\n int16_t out [ 8 * 8 ] ;\n int16_t * outptr = out ;\n int i , j ;\n int16_t temp_in [ 8 ] , temp_out [ 8 ] ;\n for ( i = 0 ;\n i < 8 ;\n ++ i ) {\n idct8 ( input , outptr ) ;\n input += 8 ;\n outptr += 8 ;\n }\n for ( i = 0 ;\n i < 8 ;\n ++ i ) {\n for ( j = 0 ;\n j < 8 ;\n ++ j ) temp_in [ j ] = out [ j * 8 + i ] ;\n idct8 ( temp_in , temp_out ) ;\n for ( j = 0 ;\n j < 8 ;\n ++ j ) dest [ j * stride + i ] = clip_pixel ( ROUND_POWER_OF_TWO ( temp_out [ j ] , 5 ) + dest [ j * stride + i ] ) ;\n }\n }"}
{"idx": 15487, "target": 0, "func": "static int dissect_h245_RSVPParameters ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_RSVPParameters , RSVPParameters_sequence ) ;\n return offset ;\n }"}
{"idx": 15488, "target": 0, "func": "hb_bool_t hb_blob_set_user_data ( hb_blob_t * blob , hb_user_data_key_t * key , void * data , hb_destroy_func_t destroy , hb_bool_t replace ) {\n return hb_object_set_user_data ( blob , key , data , destroy , replace ) ;\n }"}
{"idx": 15489, "target": 0, "func": "static FILE * dumpsavedtable ( struct ttf_table * tab ) {\n FILE * out ;\n if ( tab == NULL ) return ( NULL ) ;\n out = tmpfile ( ) ;\n fwrite ( tab -> data , 1 , tab -> len , out ) ;\n if ( ( tab -> len & 1 ) ) putc ( '\\0' , out ) ;\n if ( ( tab -> len + 1 ) & 2 ) putshort ( out , 0 ) ;\n return ( out ) ;\n }"}
{"idx": 15490, "target": 0, "func": "static void test_cleanup ( void ) {\n # if 1 test_unlink ( TEST_TARGET_FILE ) ;\n test_unlink ( TEST_SOURCE_FILE ) ;\n test_unlink ( TEST_DELTA_FILE ) ;\n test_unlink ( TEST_RECON_FILE ) ;\n test_unlink ( TEST_RECON2_FILE ) ;\n test_unlink ( TEST_COPY_FILE ) ;\n test_unlink ( TEST_NOPERM_FILE ) ;\n # endif }"}
{"idx": 15491, "target": 1, "func": "static ossl_inline void lh_ ## type ## _free ( LHASH_OF ( type ) * lh ) {\n OPENSSL_LH_free ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline type * lh_ ## type ## _insert ( LHASH_OF ( type ) * lh , type * d ) {\n return ( type * ) OPENSSL_LH_insert ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline type * lh_ ## type ## _delete ( LHASH_OF ( type ) * lh , const type * d ) {\n return ( type * ) OPENSSL_LH_delete ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline type * lh_ ## type ## _retrieve ( LHASH_OF ( type ) * lh , const type * d ) {\n return ( type * ) OPENSSL_LH_retrieve ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline int lh_ ## type ## _error ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_error ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _num_items ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_num_items ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _node_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _node_usage_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_usage_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING )"}
{"idx": 15492, "target": 0, "func": "void xmlHashScanFull ( xmlHashTablePtr table , xmlHashScannerFull f , void * data ) {\n int i , nb ;\n xmlHashEntryPtr iter ;\n xmlHashEntryPtr next ;\n if ( table == NULL ) return ;\n if ( f == NULL ) return ;\n if ( table -> table ) {\n for ( i = 0 ;\n i < table -> size ;\n i ++ ) {\n if ( table -> table [ i ] . valid == 0 ) continue ;\n iter = & ( table -> table [ i ] ) ;\n while ( iter ) {\n next = iter -> next ;\n nb = table -> nbElems ;\n if ( ( f != NULL ) && ( iter -> payload != NULL ) ) f ( iter -> payload , data , iter -> name , iter -> name2 , iter -> name3 ) ;\n if ( nb != table -> nbElems ) {\n if ( iter == & ( table -> table [ i ] ) ) {\n if ( table -> table [ i ] . valid == 0 ) iter = NULL ;\n if ( table -> table [ i ] . next != next ) iter = & ( table -> table [ i ] ) ;\n }\n else iter = next ;\n }\n else iter = next ;\n }\n }\n }\n }"}
{"idx": 15493, "target": 0, "func": "static char * ext_t_1_wml_10 ( tvbuff_t * tvb , guint32 value , guint32 str_tbl ) {\n char * str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"Variable substitution - unescaped: '%s'\" , tvb_get_const_stringz ( tvb , str_tbl + value , NULL ) ) ;\n return str ;\n }"}
{"idx": 15494, "target": 0, "func": "static inline void set_glyph ( hb_glyph_info_t & info , hb_font_t * font ) {\n font -> get_glyph ( info . codepoint , 0 , & info . glyph_index ( ) ) ;\n }"}
{"idx": 15495, "target": 0, "func": "static void xml_print_section_header ( WriterContext * wctx ) {\n XMLContext * xml = wctx -> priv ;\n const struct section * section = wctx -> section [ wctx -> level ] ;\n const struct section * parent_section = wctx -> level ? wctx -> section [ wctx -> level - 1 ] : NULL ;\n if ( wctx -> level == 0 ) {\n const char * qual = \" xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' \" \"xmlns:ffprobe='http://www.ffmpeg.org/schema/ffprobe' \" \"xsi:schemaLocation='http://www.ffmpeg.org/schema/ffprobe ffprobe.xsd'\" ;\n printf ( \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\" ) ;\n printf ( \"<%sffprobe%s>\\n\" , xml -> fully_qualified ? \"ffprobe:\" : \"\" , xml -> fully_qualified ? qual : \"\" ) ;\n return ;\n }\n if ( xml -> within_tag ) {\n xml -> within_tag = 0 ;\n printf ( \">\\n\" ) ;\n }\n if ( section -> flags & SECTION_FLAG_HAS_VARIABLE_FIELDS ) {\n xml -> indent_level ++ ;\n }\n else {\n if ( parent_section && ( parent_section -> flags & SECTION_FLAG_IS_WRAPPER ) && wctx -> level && wctx -> nb_item [ wctx -> level - 1 ] ) printf ( \"\\n\" ) ;\n xml -> indent_level ++ ;\n if ( section -> flags & SECTION_FLAG_IS_ARRAY ) {\n XML_INDENT ( ) ;\n printf ( \"<%s>\\n\" , section -> name ) ;\n }\n else {\n XML_INDENT ( ) ;\n printf ( \"<%s \" , section -> name ) ;\n xml -> within_tag = 1 ;\n }\n }\n }"}
{"idx": 15496, "target": 0, "func": "void proto_reg_handoff_steam_ihs_discovery ( void ) {\n static gboolean initialized = FALSE ;\n static dissector_handle_t steam_ihs_discovery_handle ;\n static int current_port ;\n if ( ! initialized ) {\n steam_ihs_discovery_handle = create_dissector_handle ( dissect_steam_ihs_discovery , proto_steam_ihs_discovery ) ;\n initialized = TRUE ;\n }\n else {\n dissector_delete_uint ( \"udp.port\" , current_port , steam_ihs_discovery_handle ) ;\n }\n current_port = udp_port_pref ;\n dissector_add_uint ( \"udp.port\" , current_port , steam_ihs_discovery_handle ) ;\n }"}
{"idx": 15497, "target": 0, "func": "static void mark_edge_parents_uninteresting ( struct commit * commit , struct rev_info * revs , show_edge_fn show_edge ) {\n struct commit_list * parents ;\n for ( parents = commit -> parents ;\n parents ;\n parents = parents -> next ) {\n struct commit * parent = parents -> item ;\n if ( ! ( parent -> object . flags & UNINTERESTING ) ) continue ;\n mark_tree_uninteresting ( parent -> tree ) ;\n if ( revs -> edge_hint && ! ( parent -> object . flags & SHOWN ) ) {\n parent -> object . flags |= SHOWN ;\n show_edge ( parent ) ;\n }\n }\n }"}
{"idx": 15498, "target": 0, "func": "static void auth_delay ( struct parse * pcmd , FILE * fp ) {\n int isneg ;\n u_long val ;\n if ( pcmd -> nargs == 0 ) {\n val = delay_time . l_ui * 1000 + delay_time . l_uf / 4294967 ;\n ( void ) fprintf ( fp , \"delay %lu ms\\n\" , val ) ;\n }\n else {\n if ( pcmd -> argval [ 0 ] . ival < 0 ) {\n isneg = 1 ;\n val = ( u_long ) ( - pcmd -> argval [ 0 ] . ival ) ;\n }\n else {\n isneg = 0 ;\n val = ( u_long ) pcmd -> argval [ 0 ] . ival ;\n }\n delay_time . l_ui = val / 1000 ;\n val %= 1000 ;\n delay_time . l_uf = val * 4294967 ;\n if ( isneg ) L_NEG ( & delay_time ) ;\n }\n }"}
{"idx": 15499, "target": 0, "func": "void gx_set_device_only ( gs_gstate * pgs , gx_device * dev ) {\n rc_assign ( pgs -> device , dev , \"gx_set_device_only\" ) ;\n }"}
{"idx": 15500, "target": 0, "func": "static int test_read_integer_error ( xd3_stream * stream , usize_t trunto , const char * msg ) {\n uint64_t eval = 1ULL << 34 ;\n uint32_t rval ;\n xd3_output * buf = NULL ;\n const uint8_t * max ;\n const uint8_t * inp ;\n int ret ;\n buf = xd3_alloc_output ( stream , buf ) ;\n if ( ( ret = xd3_emit_uint64_t ( stream , & buf , eval ) ) ) {\n goto fail ;\n }\n again : inp = buf -> base ;\n max = buf -> base + buf -> next - trunto ;\n if ( ( ret = xd3_read_uint32_t ( stream , & inp , max , & rval ) ) != XD3_INVALID_INPUT || ! MSG_IS ( msg ) ) {\n ret = XD3_INTERNAL ;\n }\n else if ( trunto && trunto < buf -> next ) {\n trunto += 1 ;\n goto again ;\n }\n else {\n ret = 0 ;\n }\n fail : xd3_free_output ( stream , buf ) ;\n return ret ;\n }"}
{"idx": 15501, "target": 0, "func": "static VALUE mString_to_json_raw ( int argc , VALUE * argv , VALUE self ) {\n VALUE obj = mString_to_json_raw_object ( self ) ;\n Check_Type ( obj , T_HASH ) ;\n return mHash_to_json ( argc , argv , obj ) ;\n }"}
{"idx": 15502, "target": 0, "func": "static uint count_to_stopped ( i_ctx_t * i_ctx_p , long mask ) {\n ref_stack_enum_t rsenum ;\n uint scanned = 0 ;\n ref_stack_enum_begin ( & rsenum , & e_stack ) ;\n do {\n uint used = rsenum . size ;\n es_ptr ep = rsenum . ptr + used - 1 ;\n uint count = used ;\n for ( ;\n count ;\n count -- , ep -- ) {\n if ( r_is_estack_mark ( ep ) ) {\n if ( estack_mark_index ( ep ) == es_stopped && ( ep [ 2 ] . value . intval & mask ) != 0 ) return scanned + ( used - count + 1 ) ;\n }\n }\n scanned += used ;\n }\n while ( ref_stack_enum_next ( & rsenum ) ) ;\n return 0 ;\n }"}
{"idx": 15503, "target": 0, "func": "static int get_logical_cpus ( AVCodecContext * avctx ) {\n int ret , nb_cpus = 1 ;\n # if HAVE_SCHED_GETAFFINITY && defined ( CPU_COUNT ) cpu_set_t cpuset ;\n CPU_ZERO ( & cpuset ) ;\n ret = sched_getaffinity ( 0 , sizeof ( cpuset ) , & cpuset ) ;\n if ( ! ret ) {\n nb_cpus = CPU_COUNT ( & cpuset ) ;\n }\n # elif HAVE_GETPROCESSAFFINITYMASK DWORD_PTR proc_aff , sys_aff ;\n ret = GetProcessAffinityMask ( GetCurrentProcess ( ) , & proc_aff , & sys_aff ) ;\n if ( ret ) nb_cpus = av_popcount64 ( proc_aff ) ;\n # elif HAVE_SYSCTL && defined ( HW_NCPU ) int mib [ 2 ] = {\n CTL_HW , HW_NCPU }\n ;\n size_t len = sizeof ( nb_cpus ) ;\n ret = sysctl ( mib , 2 , & nb_cpus , & len , NULL , 0 ) ;\n if ( ret == - 1 ) nb_cpus = 0 ;\n # elif HAVE_SYSCONF && defined ( _SC_NPROC_ONLN ) nb_cpus = sysconf ( _SC_NPROC_ONLN ) ;\n # elif HAVE_SYSCONF && defined ( _SC_NPROCESSORS_ONLN ) nb_cpus = sysconf ( _SC_NPROCESSORS_ONLN ) ;\n # endif av_log ( avctx , AV_LOG_DEBUG , \"detected %d logical cores\\n\" , nb_cpus ) ;\n return nb_cpus ;\n }"}
{"idx": 15504, "target": 0, "func": "static void gtkui_connection_detail ( void ) {\n GtkWidget * dwindow , * vbox , * hbox , * table , * label , * button ;\n GtkTreeIter iter ;\n GtkTreeModel * model ;\n struct conn_tail * c = NULL ;\n char tmp [ MAX_ASCII_ADDR_LEN ] ;\n char name [ MAX_HOSTNAME_LEN ] ;\n gchar * str , * markup ;\n guint nrows = 14 , ncols = 3 , row = 0 , col = 0 ;\n DEBUG_MSG ( \"gtk_connection_detail\" ) ;\n model = GTK_TREE_MODEL ( ls_conns ) ;\n if ( gtk_tree_selection_get_selected ( GTK_TREE_SELECTION ( selection ) , & model , & iter ) ) {\n gtk_tree_model_get ( model , & iter , 11 , & c , - 1 ) ;\n }\n else return ;\n if ( ! c || ! c -> co ) return ;\n dwindow = gtk_window_new ( GTK_WINDOW_TOPLEVEL ) ;\n gtk_window_set_title ( GTK_WINDOW ( dwindow ) , \"Connection Details\" ) ;\n gtk_window_set_modal ( GTK_WINDOW ( dwindow ) , TRUE ) ;\n gtk_window_set_transient_for ( GTK_WINDOW ( dwindow ) , GTK_WINDOW ( window ) ) ;\n gtk_window_set_position ( GTK_WINDOW ( dwindow ) , GTK_WIN_POS_CENTER_ON_PARENT ) ;\n gtk_container_set_border_width ( GTK_CONTAINER ( dwindow ) , 5 ) ;\n g_signal_connect ( G_OBJECT ( dwindow ) , \"delete-event\" , G_CALLBACK ( gtkui_connection_detail_destroy ) , NULL ) ;\n vbox = gtkui_box_new ( GTK_ORIENTATION_VERTICAL , 5 , FALSE ) ;\n gtk_container_add ( GTK_CONTAINER ( dwindow ) , vbox ) ;\n table = gtk_table_new ( nrows , ncols , FALSE ) ;\n gtk_table_set_row_spacings ( GTK_TABLE ( table ) , 5 ) ;\n gtk_table_set_col_spacings ( GTK_TABLE ( table ) , 5 ) ;\n gtk_container_set_border_width ( GTK_CONTAINER ( table ) , 8 ) ;\n gtk_box_pack_start ( GTK_BOX ( vbox ) , table , FALSE , FALSE , 0 ) ;\n label = gtk_label_new ( \"Layer 2 Information:\" ) ;\n markup = g_markup_printf_escaped ( \"<span weight=\\\"bold\\\">%s</span>\" , gtk_label_get_text ( GTK_LABEL ( label ) ) ) ;\n gtk_label_set_markup ( GTK_LABEL ( label ) , markup ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach ( GTK_TABLE ( table ) , label , col , col + 3 , row , row + 1 , GTK_FILL , GTK_FILL , 0 , 0 ) ;\n g_free ( markup ) ;\n row ++ ;\n label = gtk_label_new ( \"Source MAC address:\" ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach ( GTK_TABLE ( table ) , label , col , col + 1 , row , row + 1 , GTK_FILL , GTK_FILL , 0 , 0 ) ;\n label = gtk_label_new ( mac_addr_ntoa ( c -> co -> L2_addr1 , tmp ) ) ;\n gtk_label_set_selectable ( GTK_LABEL ( label ) , TRUE ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach_defaults ( GTK_TABLE ( table ) , label , col + 1 , col + 3 , row , row + 1 ) ;\n row ++ ;\n label = gtk_label_new ( \"Destination MAC address:\" ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach ( GTK_TABLE ( table ) , label , col , col + 1 , row , row + 1 , GTK_FILL , GTK_FILL , 0 , 0 ) ;\n label = gtk_label_new ( mac_addr_ntoa ( c -> co -> L2_addr2 , tmp ) ) ;\n gtk_label_set_selectable ( GTK_LABEL ( label ) , TRUE ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach_defaults ( GTK_TABLE ( table ) , label , col + 1 , col + 3 , row , row + 1 ) ;\n row ++ ;\n label = gtk_label_new ( \"Layer 3 Information:\" ) ;\n markup = g_markup_printf_escaped ( \"<span weight=\\\"bold\\\">%s</span>\" , gtk_label_get_text ( GTK_LABEL ( label ) ) ) ;\n gtk_label_set_markup ( GTK_LABEL ( label ) , markup ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach ( GTK_TABLE ( table ) , label , col , col + 3 , row , row + 1 , GTK_FILL , GTK_FILL , 0 , 0 ) ;\n gtk_table_set_row_spacing ( GTK_TABLE ( table ) , row - 1 , 10 ) ;\n g_free ( markup ) ;\n row ++ ;\n label = gtk_label_new ( \"Source IP address:\" ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach ( GTK_TABLE ( table ) , label , col , col + 1 , row , row + 1 , GTK_FILL , GTK_FILL , 0 , 0 ) ;\n label = gtk_label_new ( ip_addr_ntoa ( & c -> co -> L3_addr1 , tmp ) ) ;\n gtk_label_set_selectable ( GTK_LABEL ( label ) , TRUE ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach_defaults ( GTK_TABLE ( table ) , label , col + 1 , col + 3 , row , row + 1 ) ;\n if ( GBL_OPTIONS -> resolve ) {\n row ++ ;\n label = gtk_label_new ( \"Source hostname:\" ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach ( GTK_TABLE ( table ) , label , col , col + 1 , row , row + 1 , GTK_FILL , GTK_FILL , 0 , 0 ) ;\n label = gtk_label_new ( \"resolving...\" ) ;\n if ( host_iptoa ( & c -> co -> L3_addr1 , name ) == - E_NOMATCH ) {\n struct resolv_object * ro ;\n SAFE_CALLOC ( ro , 1 , sizeof ( struct resolv_object ) ) ;\n ro -> type = GTK_TYPE_LABEL ;\n ro -> widget = label ;\n ro -> ip = & c -> co -> L3_addr1 ;\n detail_timer1 = g_timeout_add ( 1000 , gtkui_iptoa_deferred , ro ) ;\n }\n else {\n gtk_label_set_text ( GTK_LABEL ( label ) , name ) ;\n }\n gtk_label_set_selectable ( GTK_LABEL ( label ) , TRUE ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach_defaults ( GTK_TABLE ( table ) , label , col + 1 , col + 3 , row , row + 1 ) ;\n }\n # ifdef WITH_GEOIP if ( GBL_CONF -> geoip_support_enable ) {\n row ++ ;\n label = gtk_label_new ( \"Source location:\" ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach ( GTK_TABLE ( table ) , label , col , col + 1 , row , row + 1 , GTK_FILL , GTK_FILL , 0 , 0 ) ;\n label = gtk_label_new ( geoip_country_by_ip ( & c -> co -> L3_addr1 ) ) ;\n gtk_label_set_selectable ( GTK_LABEL ( label ) , TRUE ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach_defaults ( GTK_TABLE ( table ) , label , col + 1 , col + 3 , row , row + 1 ) ;\n }\n # endif row ++ ;\n label = gtk_label_new ( \"Destination IP address:\" ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach ( GTK_TABLE ( table ) , label , col , col + 1 , row , row + 1 , GTK_FILL , GTK_FILL , 0 , 0 ) ;\n label = gtk_label_new ( ip_addr_ntoa ( & c -> co -> L3_addr2 , tmp ) ) ;\n gtk_label_set_selectable ( GTK_LABEL ( label ) , TRUE ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach_defaults ( GTK_TABLE ( table ) , label , col + 1 , col + 3 , row , row + 1 ) ;\n if ( GBL_OPTIONS -> resolve ) {\n row ++ ;\n label = gtk_label_new ( \"Destination hostname:\" ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach ( GTK_TABLE ( table ) , label , col , col + 1 , row , row + 1 , GTK_FILL , GTK_FILL , 0 , 0 ) ;\n label = gtk_label_new ( \"resolving...\" ) ;\n if ( host_iptoa ( & c -> co -> L3_addr2 , name ) == - E_NOMATCH ) {\n struct resolv_object * ro ;\n SAFE_CALLOC ( ro , 1 , sizeof ( struct resolv_object ) ) ;\n ro -> type = GTK_TYPE_LABEL ;\n ro -> widget = label ;\n ro -> ip = & c -> co -> L3_addr2 ;\n detail_timer2 = g_timeout_add ( 1000 , gtkui_iptoa_deferred , ro ) ;\n }\n else {\n gtk_label_set_text ( GTK_LABEL ( label ) , name ) ;\n }\n gtk_label_set_selectable ( GTK_LABEL ( label ) , TRUE ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach_defaults ( GTK_TABLE ( table ) , label , col + 1 , col + 3 , row , row + 1 ) ;\n }\n # ifdef WITH_GEOIP if ( GBL_CONF -> geoip_support_enable ) {\n row ++ ;\n label = gtk_label_new ( \"Destination location:\" ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach ( GTK_TABLE ( table ) , label , col , col + 1 , row , row + 1 , GTK_FILL , GTK_FILL , 0 , 0 ) ;\n label = gtk_label_new ( geoip_country_by_ip ( & c -> co -> L3_addr2 ) ) ;\n gtk_label_set_selectable ( GTK_LABEL ( label ) , TRUE ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach_defaults ( GTK_TABLE ( table ) , label , col + 1 , col + 3 , row , row + 1 ) ;\n }\n # endif row ++ ;\n label = gtk_label_new ( \"Layer 4 Information:\" ) ;\n markup = g_markup_printf_escaped ( \"<span weight=\\\"bold\\\">%s</span>\" , gtk_label_get_text ( GTK_LABEL ( label ) ) ) ;\n gtk_label_set_markup ( GTK_LABEL ( label ) , markup ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach ( GTK_TABLE ( table ) , label , col , col + 3 , row , row + 1 , GTK_FILL , GTK_FILL , 0 , 0 ) ;\n gtk_table_set_row_spacing ( GTK_TABLE ( table ) , row - 1 , 10 ) ;\n g_free ( markup ) ;\n row ++ ;\n label = gtk_label_new ( \"Protocol:\" ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach ( GTK_TABLE ( table ) , label , col , col + 1 , row , row + 1 , GTK_FILL , GTK_FILL , 0 , 0 ) ;\n switch ( c -> co -> L4_proto ) {\n case NL_TYPE_UDP : label = gtk_label_new ( \"UDP\" ) ;\n break ;\n case NL_TYPE_TCP : label = gtk_label_new ( \"TCP\" ) ;\n break ;\n default : label = gtk_label_new ( \"\" ) ;\n break ;\n }\n gtk_label_set_selectable ( GTK_LABEL ( label ) , TRUE ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach_defaults ( GTK_TABLE ( table ) , label , col + 1 , col + 3 , row , row + 1 ) ;\n row ++ ;\n label = gtk_label_new ( \"Source port:\" ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach ( GTK_TABLE ( table ) , label , col , col + 1 , row , row + 1 , GTK_FILL , GTK_FILL , 0 , 0 ) ;\n label = gtk_label_new ( ( str = g_strdup_printf ( \"%d\" , ntohs ( c -> co -> L4_addr1 ) ) ) ) ;\n gtk_label_set_selectable ( GTK_LABEL ( label ) , TRUE ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach_defaults ( GTK_TABLE ( table ) , label , col + 1 , col + 2 , row , row + 1 ) ;\n g_free ( str ) ;\n label = gtk_label_new ( service_search ( c -> co -> L4_addr1 , c -> co -> L4_proto ) ) ;\n gtk_label_set_selectable ( GTK_LABEL ( label ) , TRUE ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach_defaults ( GTK_TABLE ( table ) , label , col + 2 , col + 3 , row , row + 1 ) ;\n row ++ ;\n label = gtk_label_new ( \"Destination port:\" ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach ( GTK_TABLE ( table ) , label , col , col + 1 , row , row + 1 , GTK_FILL , GTK_FILL , 0 , 0 ) ;\n label = gtk_label_new ( ( str = g_strdup_printf ( \"%d\" , ntohs ( c -> co -> L4_addr2 ) ) ) ) ;\n gtk_label_set_selectable ( GTK_LABEL ( label ) , TRUE ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach_defaults ( GTK_TABLE ( table ) , label , col + 1 , col + 2 , row , row + 1 ) ;\n g_free ( str ) ;\n label = gtk_label_new ( service_search ( c -> co -> L4_addr2 , c -> co -> L4_proto ) ) ;\n gtk_label_set_selectable ( GTK_LABEL ( label ) , TRUE ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach_defaults ( GTK_TABLE ( table ) , label , col + 2 , col + 3 , row , row + 1 ) ;\n row ++ ;\n label = gtk_label_new ( \"Transferred bytes:\" ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach ( GTK_TABLE ( table ) , label , col , col + 1 , row , row + 1 , GTK_FILL , GTK_FILL , 0 , 0 ) ;\n label = gtk_label_new ( ( str = g_strdup_printf ( \"%d\" , c -> co -> xferred ) ) ) ;\n gtk_label_set_selectable ( GTK_LABEL ( label ) , TRUE ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach_defaults ( GTK_TABLE ( table ) , label , col + 1 , col + 3 , row , row + 1 ) ;\n g_free ( str ) ;\n if ( c -> co -> DISSECTOR . user ) {\n row ++ ;\n label = gtk_label_new ( \"Additional Information:\" ) ;\n markup = g_markup_printf_escaped ( \"<span weight=\\\"bold\\\">%s</span>\" , gtk_label_get_text ( GTK_LABEL ( label ) ) ) ;\n gtk_label_set_markup ( GTK_LABEL ( label ) , markup ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach ( GTK_TABLE ( table ) , label , col , col + 3 , row , row + 1 , GTK_FILL , GTK_FILL , 0 , 0 ) ;\n gtk_table_set_row_spacing ( GTK_TABLE ( table ) , row - 1 , 10 ) ;\n g_free ( markup ) ;\n row ++ ;\n label = gtk_label_new ( \"Account:\" ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach ( GTK_TABLE ( table ) , label , col , col + 1 , row , row + 1 , GTK_FILL , GTK_FILL , 0 , 0 ) ;\n label = gtk_label_new ( c -> co -> DISSECTOR . user ) ;\n gtk_label_set_selectable ( GTK_LABEL ( label ) , TRUE ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach_defaults ( GTK_TABLE ( table ) , label , col + 1 , col + 2 , row , row + 1 ) ;\n label = gtk_label_new ( c -> co -> DISSECTOR . pass ) ;\n gtk_label_set_selectable ( GTK_LABEL ( label ) , TRUE ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach_defaults ( GTK_TABLE ( table ) , label , col + 2 , col + 3 , row , row + 1 ) ;\n if ( c -> co -> DISSECTOR . info ) {\n label = gtk_label_new ( \"Additional info:\" ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach ( GTK_TABLE ( table ) , label , col , col + 1 , row , row + 1 , GTK_FILL , GTK_FILL , 0 , 0 ) ;\n label = gtk_label_new ( c -> co -> DISSECTOR . info ) ;\n gtk_label_set_selectable ( GTK_LABEL ( label ) , TRUE ) ;\n gtk_misc_set_alignment ( GTK_MISC ( label ) , 0 , 0.5 ) ;\n gtk_table_attach_defaults ( GTK_TABLE ( table ) , label , col + 1 , col + 3 , row , row + 1 ) ;\n }\n }\n gtk_table_resize ( GTK_TABLE ( table ) , row , ncols ) ;\n hbox = gtkui_box_new ( GTK_ORIENTATION_HORIZONTAL , 0 , FALSE ) ;\n gtk_box_pack_start ( GTK_BOX ( vbox ) , hbox , FALSE , FALSE , 0 ) ;\n button = gtk_button_new_from_stock ( GTK_STOCK_CLOSE ) ;\n g_signal_connect_swapped ( G_OBJECT ( button ) , \"clicked\" , G_CALLBACK ( gtkui_connection_detail_destroy ) , dwindow ) ;\n gtk_box_pack_end ( GTK_BOX ( hbox ) , button , FALSE , FALSE , 0 ) ;\n gtk_widget_grab_focus ( button ) ;\n gtk_widget_show_all ( dwindow ) ;\n }"}
{"idx": 15505, "target": 0, "func": "void jbig2_global_ctx_free ( Jbig2GlobalCtx * global_ctx ) {\n jbig2_ctx_free ( ( Jbig2Ctx * ) global_ctx ) ;\n }"}
{"idx": 15506, "target": 0, "func": "void jas_image_writecmptsample ( jas_image_t * image , int cmptno , int x , int y , int_fast32_t v ) {\n jas_image_cmpt_t * cmpt ;\n uint_fast32_t t ;\n int k ;\n int c ;\n cmpt = image -> cmpts_ [ cmptno ] ;\n if ( jas_stream_seek ( cmpt -> stream_ , ( cmpt -> width_ * y + x ) * cmpt -> cps_ , SEEK_SET ) < 0 ) {\n return ;\n }\n t = inttobits ( v , cmpt -> prec_ , cmpt -> sgnd_ ) ;\n for ( k = cmpt -> cps_ ;\n k > 0 ;\n -- k ) {\n c = ( t >> ( 8 * ( cmpt -> cps_ - 1 ) ) ) & 0xff ;\n if ( jas_stream_putc ( cmpt -> stream_ , ( unsigned char ) c ) == EOF ) {\n return ;\n }\n t <<= 8 ;\n }\n }"}
{"idx": 15507, "target": 0, "func": "static int kvm_handle_halt ( X86CPU * cpu ) {\n CPUState * cs = CPU ( cpu ) ;\n CPUX86State * env = & cpu -> env ;\n if ( ! ( ( cs -> interrupt_request & CPU_INTERRUPT_HARD ) && ( env -> eflags & IF_MASK ) ) && ! ( cs -> interrupt_request & CPU_INTERRUPT_NMI ) ) {\n cs -> halted = 1 ;\n return EXCP_HLT ;\n }\n return 0 ;\n }"}
{"idx": 15508, "target": 0, "func": "static int tipc_tlv_sprintf ( struct sk_buff * skb , const char * fmt , ... ) {\n int n ;\n u16 len ;\n u32 rem ;\n char * buf ;\n struct tlv_desc * tlv ;\n va_list args ;\n rem = tipc_skb_tailroom ( skb ) ;\n tlv = ( struct tlv_desc * ) skb -> data ;\n len = TLV_GET_LEN ( tlv ) ;\n buf = TLV_DATA ( tlv ) + len ;\n va_start ( args , fmt ) ;\n n = vscnprintf ( buf , rem , fmt , args ) ;\n va_end ( args ) ;\n TLV_SET_LEN ( tlv , n + len ) ;\n skb_put ( skb , n ) ;\n return n ;\n }"}
{"idx": 15509, "target": 0, "func": "void vp9_setup_dst_planes ( struct macroblockd_plane planes [ MAX_MB_PLANE ] , const YV12_BUFFER_CONFIG * src , int mi_row , int mi_col ) {\n uint8_t * const buffers [ 4 ] = {\n src -> y_buffer , src -> u_buffer , src -> v_buffer , src -> alpha_buffer }\n ;\n const int strides [ 4 ] = {\n src -> y_stride , src -> uv_stride , src -> uv_stride , src -> alpha_stride }\n ;\n int i ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n ++ i ) {\n struct macroblockd_plane * const pd = & planes [ i ] ;\n setup_pred_plane ( & pd -> dst , buffers [ i ] , strides [ i ] , mi_row , mi_col , NULL , pd -> subsampling_x , pd -> subsampling_y ) ;\n }\n }"}
{"idx": 15510, "target": 0, "func": "VirtIODevice * virtio_net_init ( DeviceState * dev , NICConf * conf , virtio_net_conf * net ) {\n VirtIONet * n ;\n n = ( VirtIONet * ) virtio_common_init ( \"virtio-net\" , VIRTIO_ID_NET , sizeof ( struct virtio_net_config ) , sizeof ( VirtIONet ) ) ;\n n -> vdev . get_config = virtio_net_get_config ;\n n -> vdev . set_config = virtio_net_set_config ;\n n -> vdev . get_features = virtio_net_get_features ;\n n -> vdev . set_features = virtio_net_set_features ;\n n -> vdev . bad_features = virtio_net_bad_features ;\n n -> vdev . reset = virtio_net_reset ;\n n -> vdev . set_status = virtio_net_set_status ;\n n -> rx_vq = virtio_add_queue ( & n -> vdev , 256 , virtio_net_handle_rx ) ;\n if ( net -> tx && strcmp ( net -> tx , \"timer\" ) && strcmp ( net -> tx , \"bh\" ) ) {\n error_report ( \"virtio-net: \" \"Unknown option tx=%s, valid options: \\\"timer\\\" \\\"bh\\\"\" , net -> tx ) ;\n error_report ( \"Defaulting to \\\"bh\\\"\" ) ;\n }\n if ( net -> tx && ! strcmp ( net -> tx , \"timer\" ) ) {\n n -> tx_vq = virtio_add_queue ( & n -> vdev , 256 , virtio_net_handle_tx_timer ) ;\n n -> tx_timer = qemu_new_timer_ns ( vm_clock , virtio_net_tx_timer , n ) ;\n n -> tx_timeout = net -> txtimer ;\n }\n else {\n n -> tx_vq = virtio_add_queue ( & n -> vdev , 256 , virtio_net_handle_tx_bh ) ;\n n -> tx_bh = qemu_bh_new ( virtio_net_tx_bh , n ) ;\n }\n n -> ctrl_vq = virtio_add_queue ( & n -> vdev , 64 , virtio_net_handle_ctrl ) ;\n qemu_macaddr_default_if_unset ( & conf -> macaddr ) ;\n memcpy ( & n -> mac [ 0 ] , & conf -> macaddr , sizeof ( n -> mac ) ) ;\n n -> status = VIRTIO_NET_S_LINK_UP ;\n n -> nic = qemu_new_nic ( & net_virtio_info , conf , object_get_typename ( OBJECT ( dev ) ) , dev -> id , n ) ;\n qemu_format_nic_info_str ( & n -> nic -> nc , conf -> macaddr . a ) ;\n n -> tx_waiting = 0 ;\n n -> tx_burst = net -> txburst ;\n n -> mergeable_rx_bufs = 0 ;\n n -> promisc = 1 ;\n n -> mac_table . macs = g_malloc0 ( MAC_TABLE_ENTRIES * ETH_ALEN ) ;\n n -> vlans = g_malloc0 ( MAX_VLAN >> 3 ) ;\n n -> qdev = dev ;\n register_savevm ( dev , \"virtio-net\" , - 1 , VIRTIO_NET_VM_VERSION , virtio_net_save , virtio_net_load , n ) ;\n add_boot_device_path ( conf -> bootindex , dev , \"/ethernet-phy@0\" ) ;\n return & n -> vdev ;\n }"}
{"idx": 15511, "target": 0, "func": "static void dumpspace ( SplineChar * sc , struct glyphinfo * gi ) {\n DBounds b ;\n gi -> pointcounts [ gi -> next_glyph ] = 0 ;\n gi -> loca [ gi -> next_glyph ++ ] = ftell ( gi -> glyphs ) ;\n memset ( & b , 0 , sizeof ( b ) ) ;\n ttfdumpmetrics ( sc , gi , & b ) ;\n }"}
{"idx": 15512, "target": 0, "func": "int i2d_ECPrivateKey ( EC_KEY * a , unsigned char * * out ) {\n int ret = 0 , ok = 0 ;\n unsigned char * buffer = NULL ;\n size_t buf_len = 0 , tmp_len ;\n EC_PRIVATEKEY * priv_key = NULL ;\n if ( a == NULL || a -> group == NULL || a -> priv_key == NULL ) {\n ECerr ( EC_F_I2D_ECPRIVATEKEY , ERR_R_PASSED_NULL_PARAMETER ) ;\n goto err ;\n }\n if ( ( priv_key = EC_PRIVATEKEY_new ( ) ) == NULL ) {\n ECerr ( EC_F_I2D_ECPRIVATEKEY , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n priv_key -> version = a -> version ;\n buf_len = ( size_t ) BN_num_bytes ( a -> priv_key ) ;\n buffer = OPENSSL_malloc ( buf_len ) ;\n if ( buffer == NULL ) {\n ECerr ( EC_F_I2D_ECPRIVATEKEY , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n if ( ! BN_bn2bin ( a -> priv_key , buffer ) ) {\n ECerr ( EC_F_I2D_ECPRIVATEKEY , ERR_R_BN_LIB ) ;\n goto err ;\n }\n if ( ! M_ASN1_OCTET_STRING_set ( priv_key -> privateKey , buffer , buf_len ) ) {\n ECerr ( EC_F_I2D_ECPRIVATEKEY , ERR_R_ASN1_LIB ) ;\n goto err ;\n }\n if ( ! ( a -> enc_flag & EC_PKEY_NO_PARAMETERS ) ) {\n if ( ( priv_key -> parameters = ec_asn1_group2pkparameters ( a -> group , priv_key -> parameters ) ) == NULL ) {\n ECerr ( EC_F_I2D_ECPRIVATEKEY , ERR_R_EC_LIB ) ;\n goto err ;\n }\n }\n if ( ! ( a -> enc_flag & EC_PKEY_NO_PUBKEY ) ) {\n priv_key -> publicKey = M_ASN1_BIT_STRING_new ( ) ;\n if ( priv_key -> publicKey == NULL ) {\n ECerr ( EC_F_I2D_ECPRIVATEKEY , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n tmp_len = EC_POINT_point2oct ( a -> group , a -> pub_key , a -> conv_form , NULL , 0 , NULL ) ;\n if ( tmp_len > buf_len ) {\n unsigned char * tmp_buffer = OPENSSL_realloc ( buffer , tmp_len ) ;\n if ( ! tmp_buffer ) {\n ECerr ( EC_F_I2D_ECPRIVATEKEY , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n buffer = tmp_buffer ;\n buf_len = tmp_len ;\n }\n if ( ! EC_POINT_point2oct ( a -> group , a -> pub_key , a -> conv_form , buffer , buf_len , NULL ) ) {\n ECerr ( EC_F_I2D_ECPRIVATEKEY , ERR_R_EC_LIB ) ;\n goto err ;\n }\n priv_key -> publicKey -> flags &= ~ ( ASN1_STRING_FLAG_BITS_LEFT | 0x07 ) ;\n priv_key -> publicKey -> flags |= ASN1_STRING_FLAG_BITS_LEFT ;\n if ( ! M_ASN1_BIT_STRING_set ( priv_key -> publicKey , buffer , buf_len ) ) {\n ECerr ( EC_F_I2D_ECPRIVATEKEY , ERR_R_ASN1_LIB ) ;\n goto err ;\n }\n }\n if ( ( ret = i2d_EC_PRIVATEKEY ( priv_key , out ) ) == 0 ) {\n ECerr ( EC_F_I2D_ECPRIVATEKEY , ERR_R_EC_LIB ) ;\n goto err ;\n }\n ok = 1 ;\n err : if ( buffer ) OPENSSL_free ( buffer ) ;\n if ( priv_key ) EC_PRIVATEKEY_free ( priv_key ) ;\n return ( ok ? ret : 0 ) ;\n }"}
{"idx": 15513, "target": 0, "func": "int dtls1_buffer_message ( SSL * s , int is_ccs ) {\n pitem * item ;\n hm_fragment * frag ;\n unsigned char seq64be [ 8 ] ;\n OPENSSL_assert ( s -> init_off == 0 ) ;\n frag = dtls1_hm_fragment_new ( s -> init_num , 0 ) ;\n memcpy ( frag -> fragment , s -> init_buf -> data , s -> init_num ) ;\n if ( is_ccs ) {\n OPENSSL_assert ( s -> d1 -> w_msg_hdr . msg_len + ( ( s -> version == DTLS1_VERSION ) ? DTLS1_CCS_HEADER_LENGTH : 3 ) == ( unsigned int ) s -> init_num ) ;\n }\n else {\n OPENSSL_assert ( s -> d1 -> w_msg_hdr . msg_len + DTLS1_HM_HEADER_LENGTH == ( unsigned int ) s -> init_num ) ;\n }\n frag -> msg_header . msg_len = s -> d1 -> w_msg_hdr . msg_len ;\n frag -> msg_header . seq = s -> d1 -> w_msg_hdr . seq ;\n frag -> msg_header . type = s -> d1 -> w_msg_hdr . type ;\n frag -> msg_header . frag_off = 0 ;\n frag -> msg_header . frag_len = s -> d1 -> w_msg_hdr . msg_len ;\n frag -> msg_header . is_ccs = is_ccs ;\n frag -> msg_header . saved_retransmit_state . enc_write_ctx = s -> enc_write_ctx ;\n frag -> msg_header . saved_retransmit_state . write_hash = s -> write_hash ;\n frag -> msg_header . saved_retransmit_state . compress = s -> compress ;\n frag -> msg_header . saved_retransmit_state . session = s -> session ;\n frag -> msg_header . saved_retransmit_state . epoch = s -> d1 -> w_epoch ;\n memset ( seq64be , 0 , sizeof ( seq64be ) ) ;\n seq64be [ 6 ] = ( unsigned char ) ( dtls1_get_queue_priority ( frag -> msg_header . seq , frag -> msg_header . is_ccs ) >> 8 ) ;\n seq64be [ 7 ] = ( unsigned char ) ( dtls1_get_queue_priority ( frag -> msg_header . seq , frag -> msg_header . is_ccs ) ) ;\n item = pitem_new ( seq64be , frag ) ;\n if ( item == NULL ) {\n dtls1_hm_fragment_free ( frag ) ;\n return 0 ;\n }\n # if 0 fprintf ( stderr , \"buffered messge: \\ttype = %xx\\n\" , msg_buf -> type ) ;\n fprintf ( stderr , \"\\t\\t\\t\\t\\tlen = %d\\n\" , msg_buf -> len ) ;\n fprintf ( stderr , \"\\t\\t\\t\\t\\tseq_num = %d\\n\" , msg_buf -> seq_num ) ;\n # endif pqueue_insert ( s -> d1 -> sent_messages , item ) ;\n return 1 ;\n }"}
{"idx": 15514, "target": 0, "func": "int get_ber_length ( tvbuff_t * tvb , int offset , guint32 * length , gboolean * ind ) {\n return try_get_ber_length ( tvb , offset , length , ind , 1 ) ;\n }"}
{"idx": 15515, "target": 1, "func": "static ossl_inline int lh_ ## type ## _error ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_error ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _num_items ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_num_items ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _node_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _node_usage_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_usage_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING )"}
{"idx": 15516, "target": 0, "func": "void tb_invalidate_phys_range ( tb_page_addr_t start , tb_page_addr_t end , int is_cpu_write_access ) {\n while ( start < end ) {\n tb_invalidate_phys_page_range ( start , end , is_cpu_write_access ) ;\n start &= TARGET_PAGE_MASK ;\n start += TARGET_PAGE_SIZE ;\n }\n }"}
{"idx": 15517, "target": 0, "func": "void purple_request_input_callback ( guint id , struct im_connection * ic , const char * message , const char * who ) {\n struct purple_data * pd = ic -> proto_data ;\n struct request_input_data * ri ;\n if ( ! ( ri = g_hash_table_lookup ( pd -> input_requests , GUINT_TO_POINTER ( id ) ) ) ) {\n return ;\n }\n ri -> data_callback ( ri -> user_data , message ) ;\n purple_request_close ( PURPLE_REQUEST_INPUT , ri ) ;\n }"}
{"idx": 15518, "target": 0, "func": "static void mpc8544_guts_write ( void * opaque , hwaddr addr , uint64_t value , unsigned size ) {\n addr &= MPC8544_GUTS_MMIO_SIZE - 1 ;\n switch ( addr ) {\n case MPC8544_GUTS_ADDR_RSTCR : if ( value & MPC8544_GUTS_RSTCR_RESET ) {\n qemu_system_reset_request ( ) ;\n }\n break ;\n default : fprintf ( stderr , \"guts: Unknown register write: %x = %x\\n\" , ( int ) addr , ( unsigned ) value ) ;\n break ;\n }\n }"}
{"idx": 15519, "target": 0, "func": "static void virtio_net_handle_ctrl ( VirtIODevice * vdev , VirtQueue * vq ) {\n VirtIONet * n = to_virtio_net ( vdev ) ;\n struct virtio_net_ctrl_hdr ctrl ;\n virtio_net_ctrl_ack status = VIRTIO_NET_ERR ;\n VirtQueueElement elem ;\n while ( virtqueue_pop ( vq , & elem ) ) {\n if ( ( elem . in_num < 1 ) || ( elem . out_num < 1 ) ) {\n error_report ( \"virtio-net ctrl missing headers\" ) ;\n exit ( 1 ) ;\n }\n if ( elem . out_sg [ 0 ] . iov_len < sizeof ( ctrl ) || elem . in_sg [ elem . in_num - 1 ] . iov_len < sizeof ( status ) ) {\n error_report ( \"virtio-net ctrl header not in correct element\" ) ;\n exit ( 1 ) ;\n }\n ctrl . class = ldub_p ( elem . out_sg [ 0 ] . iov_base ) ;\n ctrl . cmd = ldub_p ( elem . out_sg [ 0 ] . iov_base + sizeof ( ctrl . class ) ) ;\n if ( ctrl . class == VIRTIO_NET_CTRL_RX_MODE ) status = virtio_net_handle_rx_mode ( n , ctrl . cmd , & elem ) ;\n else if ( ctrl . class == VIRTIO_NET_CTRL_MAC ) status = virtio_net_handle_mac ( n , ctrl . cmd , & elem ) ;\n else if ( ctrl . class == VIRTIO_NET_CTRL_VLAN ) status = virtio_net_handle_vlan_table ( n , ctrl . cmd , & elem ) ;\n stb_p ( elem . in_sg [ elem . in_num - 1 ] . iov_base , status ) ;\n virtqueue_push ( vq , & elem , sizeof ( status ) ) ;\n virtio_notify ( vdev , vq ) ;\n }\n }"}
{"idx": 15520, "target": 0, "func": "static int avi_load_index ( AVFormatContext * s ) {\n AVIContext * avi = s -> priv_data ;\n AVIOContext * pb = s -> pb ;\n uint32_t tag , size ;\n int64_t pos = avio_tell ( pb ) ;\n int64_t next ;\n int ret = - 1 ;\n if ( avio_seek ( pb , avi -> movi_end , SEEK_SET ) < 0 ) goto the_end ;\n av_log ( s , AV_LOG_TRACE , \"movi_end=0x%\" PRIx64 \"\\n\" , avi -> movi_end ) ;\n for ( ;\n ;\n ) {\n tag = avio_rl32 ( pb ) ;\n size = avio_rl32 ( pb ) ;\n if ( avio_feof ( pb ) ) break ;\n next = avio_tell ( pb ) + size + ( size & 1 ) ;\n if ( tag == MKTAG ( 'i' , 'd' , 'x' , '1' ) && avi_read_idx1 ( s , size ) >= 0 ) {\n avi -> index_loaded = 2 ;\n ret = 0 ;\n }\n else if ( tag == MKTAG ( 'L' , 'I' , 'S' , 'T' ) ) {\n uint32_t tag1 = avio_rl32 ( pb ) ;\n if ( tag1 == MKTAG ( 'I' , 'N' , 'F' , 'O' ) ) ff_read_riff_info ( s , size - 4 ) ;\n }\n else if ( ! ret ) break ;\n if ( avio_seek ( pb , next , SEEK_SET ) < 0 ) break ;\n }\n the_end : avio_seek ( pb , pos , SEEK_SET ) ;\n return ret ;\n }"}
{"idx": 15521, "target": 0, "func": "int xsltSetSecurityPrefs ( xsltSecurityPrefsPtr sec , xsltSecurityOption option , xsltSecurityCheck func ) {\n xsltInitGlobals ( ) ;\n if ( sec == NULL ) return ( - 1 ) ;\n switch ( option ) {\n case XSLT_SECPREF_READ_FILE : sec -> readFile = func ;\n return ( 0 ) ;\n case XSLT_SECPREF_WRITE_FILE : sec -> createFile = func ;\n return ( 0 ) ;\n case XSLT_SECPREF_CREATE_DIRECTORY : sec -> createDir = func ;\n return ( 0 ) ;\n case XSLT_SECPREF_READ_NETWORK : sec -> readNet = func ;\n return ( 0 ) ;\n case XSLT_SECPREF_WRITE_NETWORK : sec -> writeNet = func ;\n return ( 0 ) ;\n }\n return ( - 1 ) ;\n }"}
{"idx": 15522, "target": 1, "func": "static int ipvideo_decode_block_opcode_0x8_16 ( IpvideoContext * s ) {\n int x , y ;\n uint16_t P [ 4 ] ;\n unsigned int flags = 0 ;\n uint16_t * pixel_ptr = ( uint16_t * ) s -> pixel_ptr ;\n P [ 0 ] = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n P [ 1 ] = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n if ( ! ( P [ 0 ] & 0x8000 ) ) {\n for ( y = 0 ;\n y < 16 ;\n y ++ ) {\n if ( ! ( y & 3 ) ) {\n if ( y ) {\n P [ 0 ] = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n P [ 1 ] = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n }\n flags = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n }\n for ( x = 0 ;\n x < 4 ;\n x ++ , flags >>= 1 ) * pixel_ptr ++ = P [ flags & 1 ] ;\n pixel_ptr += s -> stride - 4 ;\n if ( y == 7 ) pixel_ptr -= 8 * s -> stride - 4 ;\n }\n }\n else {\n flags = bytestream2_get_le32 ( & s -> stream_ptr ) ;\n P [ 2 ] = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n P [ 3 ] = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n if ( ! ( P [ 2 ] & 0x8000 ) ) {\n for ( y = 0 ;\n y < 16 ;\n y ++ ) {\n for ( x = 0 ;\n x < 4 ;\n x ++ , flags >>= 1 ) * pixel_ptr ++ = P [ flags & 1 ] ;\n pixel_ptr += s -> stride - 4 ;\n if ( y == 7 ) {\n pixel_ptr -= 8 * s -> stride - 4 ;\n P [ 0 ] = P [ 2 ] ;\n P [ 1 ] = P [ 3 ] ;\n flags = bytestream2_get_le32 ( & s -> stream_ptr ) ;\n }\n }\n }\n else {\n for ( y = 0 ;\n y < 8 ;\n y ++ ) {\n if ( y == 4 ) {\n P [ 0 ] = P [ 2 ] ;\n P [ 1 ] = P [ 3 ] ;\n flags = bytestream2_get_le32 ( & s -> stream_ptr ) ;\n }\n for ( x = 0 ;\n x < 8 ;\n x ++ , flags >>= 1 ) * pixel_ptr ++ = P [ flags & 1 ] ;\n pixel_ptr += s -> line_inc ;\n }\n }\n }\n return 0 ;\n }"}
{"idx": 15523, "target": 0, "func": "static void dec_lpc_spectrum_inv ( TwinContext * tctx , float * lsp , enum FrameType ftype , float * lpc ) {\n int i ;\n int size = tctx -> mtab -> size / tctx -> mtab -> fmode [ ftype ] . sub ;\n for ( i = 0 ;\n i < tctx -> mtab -> n_lsp ;\n i ++ ) lsp [ i ] = 2 * cos ( lsp [ i ] ) ;\n switch ( ftype ) {\n case FT_LONG : eval_lpcenv_2parts ( tctx , ftype , lsp , lpc , size , 8 ) ;\n break ;\n case FT_MEDIUM : eval_lpcenv_2parts ( tctx , ftype , lsp , lpc , size , 2 ) ;\n break ;\n case FT_SHORT : eval_lpcenv ( tctx , lsp , lpc ) ;\n break ;\n }\n }"}
{"idx": 15524, "target": 0, "func": "static int gdev_pdf_put_params_impl ( gx_device * dev , const gx_device_pdf * save_dev , gs_param_list * plist ) {\n int ecode , code ;\n gx_device_pdf * pdev = ( gx_device_pdf * ) dev ;\n float cl = ( float ) pdev -> CompatibilityLevel ;\n bool locked = pdev -> params . LockDistillerParams , ForOPDFRead ;\n gs_param_name param_name ;\n pdev -> pdf_memory = gs_memory_stable ( pdev -> memory ) ;\n {\n gs_param_string_array ppa ;\n gs_param_string pps ;\n code = param_read_string_array ( plist , ( param_name = \"pdfmark\" ) , & ppa ) ;\n switch ( code ) {\n case 0 : code = pdfwrite_pdf_open_document ( pdev ) ;\n if ( code < 0 ) return code ;\n code = pdfmark_process ( pdev , & ppa ) ;\n if ( code >= 0 ) return code ;\n default : param_signal_error ( plist , param_name , code ) ;\n return code ;\n case 1 : break ;\n }\n code = param_read_string_array ( plist , ( param_name = \"DSC\" ) , & ppa ) ;\n switch ( code ) {\n case 0 : code = pdfwrite_pdf_open_document ( pdev ) ;\n if ( code < 0 ) return code ;\n code = pdf_dsc_process ( pdev , & ppa ) ;\n if ( code >= 0 ) return code ;\n default : param_signal_error ( plist , param_name , code ) ;\n return code ;\n case 1 : break ;\n }\n code = param_read_string ( plist , ( param_name = \"pdfpagelabels\" ) , & pps ) ;\n switch ( code ) {\n case 0 : {\n if ( ! pdev -> ForOPDFRead ) {\n cos_dict_t * const pcd = pdev -> Catalog ;\n code = pdfwrite_pdf_open_document ( pdev ) ;\n if ( code < 0 ) return code ;\n code = cos_dict_put_string ( pcd , ( const byte * ) \"/PageLabels\" , 11 , pps . data , pps . size ) ;\n if ( code >= 0 ) return code ;\n }\n else return 0 ;\n }\n default : param_signal_error ( plist , param_name , code ) ;\n return code ;\n case 1 : break ;\n }\n }\n ecode = param_read_bool ( plist , ( param_name = \"LockDistillerParams\" ) , & locked ) ;\n if ( ecode < 0 ) param_signal_error ( plist , param_name , ecode ) ;\n {\n int efo = 1 ;\n ecode = param_put_int ( plist , ( param_name = \".EmbedFontObjects\" ) , & efo , ecode ) ;\n if ( ecode < 0 ) param_signal_error ( plist , param_name , ecode ) ;\n if ( efo != 1 ) param_signal_error ( plist , param_name , ecode = gs_error_rangecheck ) ;\n }\n {\n int cdv = CoreDistVersion ;\n ecode = param_put_int ( plist , ( param_name = \"CoreDistVersion\" ) , & cdv , ecode ) ;\n if ( ecode < 0 ) return gs_note_error ( ecode ) ;\n if ( cdv != CoreDistVersion ) param_signal_error ( plist , param_name , ecode = gs_error_rangecheck ) ;\n }\n switch ( code = param_read_float ( plist , ( param_name = \"CompatibilityLevel\" ) , & cl ) ) {\n default : ecode = code ;\n param_signal_error ( plist , param_name , ecode ) ;\n break ;\n case 0 : if ( ! ( locked && pdev -> params . LockDistillerParams ) ) {\n if ( cl < ( float ) 1.15 ) cl = ( float ) 1.1 ;\n else if ( cl < ( float ) 1.25 ) cl = ( float ) 1.2 ;\n else if ( cl < ( float ) 1.35 ) cl = ( float ) 1.3 ;\n else if ( cl < ( float ) 1.45 ) cl = ( float ) 1.4 ;\n else if ( cl < ( float ) 1.55 ) cl = ( float ) 1.5 ;\n else if ( cl < ( float ) 1.65 ) cl = ( float ) 1.6 ;\n else if ( cl < ( float ) 1.75 ) cl = ( float ) 1.7 ;\n else {\n cl = ( float ) 2.0 ;\n if ( pdev -> params . TransferFunctionInfo == tfi_Preserve ) pdev -> params . TransferFunctionInfo = tfi_Apply ;\n }\n }\n case 1 : break ;\n }\n {\n gs_memory_t * mem = plist -> memory ;\n plist -> memory = pdev -> pdf_memory ;\n code = gs_param_read_items ( plist , pdev , pdf_param_items ) ;\n if ( code < 0 || ( code = param_read_bool ( plist , \"ForOPDFRead\" , & ForOPDFRead ) ) < 0 ) {\n }\n if ( code == 0 && ! pdev -> is_ps2write && ! ( locked && pdev -> params . LockDistillerParams ) ) pdev -> ForOPDFRead = ForOPDFRead ;\n plist -> memory = mem ;\n }\n if ( code < 0 ) ecode = code ;\n {\n long fon = pdev -> FirstObjectNumber ;\n if ( fon != save_dev -> FirstObjectNumber ) {\n if ( fon <= 0 || fon > 0x7fff0000 || ( pdev -> next_id != 0 && pdev -> next_id != save_dev -> FirstObjectNumber + pdf_num_initial_ids ) ) {\n ecode = gs_error_rangecheck ;\n param_signal_error ( plist , \"FirstObjectNumber\" , ecode ) ;\n }\n }\n }\n {\n static const char * const pcm_names [ ] = {\n \"DeviceGray\" , \"DeviceRGB\" , \"DeviceCMYK\" , \"DeviceN\" , 0 }\n ;\n int pcm = - 1 ;\n ecode = param_put_enum ( plist , \"ProcessColorModel\" , & pcm , pcm_names , ecode ) ;\n if ( pcm >= 0 ) {\n pdf_set_process_color_model ( pdev , pcm ) ;\n rc_decrement ( pdev -> icc_struct , \"gdev_pdf_put_params_impl, ProcessColorModel changed\" ) ;\n pdev -> icc_struct = 0 ;\n }\n }\n if ( ecode < 0 ) goto fail ;\n if ( pdev -> is_ps2write && ( code = param_read_bool ( plist , \"ProduceDSC\" , & pdev -> ProduceDSC ) ) < 0 ) {\n param_signal_error ( plist , param_name , code ) ;\n }\n if ( pdev -> PDFA < 0 || pdev -> PDFA > 3 ) {\n ecode = gs_note_error ( gs_error_rangecheck ) ;\n param_signal_error ( plist , \"PDFA\" , ecode ) ;\n goto fail ;\n }\n if ( pdev -> PDFA != 0 && pdev -> AbortPDFAX ) pdev -> PDFA = 0 ;\n if ( pdev -> PDFX && pdev -> AbortPDFAX ) pdev -> PDFX = 0 ;\n if ( pdev -> PDFX && pdev -> PDFA != 0 ) {\n ecode = gs_note_error ( gs_error_rangecheck ) ;\n param_signal_error ( plist , \"PDFA\" , ecode ) ;\n goto fail ;\n }\n if ( pdev -> PDFX && pdev -> ForOPDFRead ) {\n ecode = gs_note_error ( gs_error_rangecheck ) ;\n param_signal_error ( plist , \"PDFX\" , ecode ) ;\n goto fail ;\n }\n if ( pdev -> PDFA != 0 && pdev -> ForOPDFRead ) {\n ecode = gs_note_error ( gs_error_rangecheck ) ;\n param_signal_error ( plist , \"PDFA\" , ecode ) ;\n goto fail ;\n }\n if ( pdev -> PDFA == 1 || pdev -> PDFX || pdev -> CompatibilityLevel < 1.4 ) {\n pdev -> HaveTransparency = false ;\n pdev -> PreserveSMask = false ;\n }\n if ( pdev -> PDFX ) cl = ( float ) 1.3 ;\n if ( pdev -> PDFA != 0 && cl < 1.4 ) cl = ( float ) 1.4 ;\n pdev -> version = ( cl < 1.2 ? psdf_version_level2 : psdf_version_ll3 ) ;\n if ( pdev -> ForOPDFRead ) {\n pdev -> ResourcesBeforeUsage = true ;\n pdev -> HaveCFF = false ;\n pdev -> HavePDFWidths = false ;\n pdev -> HaveStrokeColor = false ;\n cl = ( float ) 1.2 ;\n pdev -> MaxInlineImageSize = max_long ;\n pdev -> version = psdf_version_level2 ;\n }\n else {\n pdev -> ResourcesBeforeUsage = false ;\n pdev -> HaveCFF = true ;\n pdev -> HavePDFWidths = true ;\n pdev -> HaveStrokeColor = true ;\n }\n pdev -> ParamCompatibilityLevel = cl ;\n if ( cl < 1.2 ) {\n pdev -> HaveCFF = false ;\n }\n ecode = gdev_psdf_put_params ( dev , plist ) ;\n if ( ecode < 0 ) goto fail ;\n if ( pdev -> CompatibilityLevel > 1.7 && pdev -> params . TransferFunctionInfo == tfi_Preserve ) {\n pdev -> params . TransferFunctionInfo = tfi_Apply ;\n emprintf ( pdev -> memory , \"\\nIt is not possible to preserve transfer functions in PDF 2.0\\ntransfer functions will be applied instead\\n\" ) ;\n }\n if ( pdev -> params . ConvertCMYKImagesToRGB ) {\n if ( pdev -> params . ColorConversionStrategy == ccs_CMYK ) {\n emprintf ( pdev -> memory , \"ConvertCMYKImagesToRGB is not compatible with ColorConversionStrategy of CMYK\\n\" ) ;\n }\n else {\n if ( pdev -> params . ColorConversionStrategy == ccs_Gray ) {\n emprintf ( pdev -> memory , \"ConvertCMYKImagesToRGB is not compatible with ColorConversionStrategy of Gray\\n\" ) ;\n }\n else {\n if ( pdev -> icc_struct ) rc_decrement ( pdev -> icc_struct , \"reset default profile\\n\" ) ;\n pdf_set_process_color_model ( pdev , 1 ) ;\n ecode = gsicc_init_device_profile_struct ( ( gx_device * ) pdev , NULL , 0 ) ;\n if ( ecode < 0 ) goto fail ;\n }\n }\n }\n switch ( pdev -> params . ColorConversionStrategy ) {\n case ccs_ByObjectType : case ccs_LeaveColorUnchanged : break ;\n case ccs_UseDeviceDependentColor : case ccs_UseDeviceIndependentColor : case ccs_UseDeviceIndependentColorForImages : pdev -> params . TransferFunctionInfo = tfi_Apply ;\n break ;\n case ccs_CMYK : pdev -> params . TransferFunctionInfo = tfi_Apply ;\n if ( pdev -> icc_struct ) rc_decrement ( pdev -> icc_struct , \"reset default profile\\n\" ) ;\n pdf_set_process_color_model ( pdev , 2 ) ;\n ecode = gsicc_init_device_profile_struct ( ( gx_device * ) pdev , NULL , 0 ) ;\n if ( ecode < 0 ) goto fail ;\n break ;\n case ccs_Gray : pdev -> params . TransferFunctionInfo = tfi_Apply ;\n if ( pdev -> icc_struct ) rc_decrement ( pdev -> icc_struct , \"reset default profile\\n\" ) ;\n pdf_set_process_color_model ( pdev , 0 ) ;\n ecode = gsicc_init_device_profile_struct ( ( gx_device * ) pdev , NULL , 0 ) ;\n if ( ecode < 0 ) goto fail ;\n break ;\n case ccs_sRGB : case ccs_RGB : pdev -> params . TransferFunctionInfo = tfi_Apply ;\n if ( ! pdev -> params . ConvertCMYKImagesToRGB ) {\n if ( pdev -> icc_struct ) rc_decrement ( pdev -> icc_struct , \"reset default profile\\n\" ) ;\n pdf_set_process_color_model ( pdev , 1 ) ;\n ecode = gsicc_init_device_profile_struct ( ( gx_device * ) pdev , NULL , 0 ) ;\n if ( ecode < 0 ) goto fail ;\n }\n break ;\n default : break ;\n }\n if ( cl < 1.5f && pdev -> params . ColorImage . Filter != NULL && ! strcmp ( pdev -> params . ColorImage . Filter , \"JPXEncode\" ) ) {\n emprintf ( pdev -> memory , \"JPXEncode requires CompatibilityLevel >= 1.5 .\\n\" ) ;\n ecode = gs_note_error ( gs_error_rangecheck ) ;\n }\n if ( cl < 1.5f && pdev -> params . GrayImage . Filter != NULL && ! strcmp ( pdev -> params . GrayImage . Filter , \"JPXEncode\" ) ) {\n emprintf ( pdev -> memory , \"JPXEncode requires CompatibilityLevel >= 1.5 .\\n\" ) ;\n ecode = gs_note_error ( gs_error_rangecheck ) ;\n }\n if ( cl < 1.4f && pdev -> params . MonoImage . Filter != NULL && ! strcmp ( pdev -> params . MonoImage . Filter , \"JBIG2Encode\" ) ) {\n emprintf ( pdev -> memory , \"JBIG2Encode requires CompatibilityLevel >= 1.4 .\\n\" ) ;\n ecode = gs_note_error ( gs_error_rangecheck ) ;\n }\n if ( pdev -> HaveTrueTypes && pdev -> version == psdf_version_level2 ) {\n pdev -> version = psdf_version_level2_with_TT ;\n }\n if ( ecode < 0 ) goto fail ;\n if ( pdev -> FirstObjectNumber != save_dev -> FirstObjectNumber ) {\n if ( pdev -> xref . file != 0 ) {\n if ( gp_fseek_64 ( pdev -> xref . file , 0L , SEEK_SET ) != 0 ) {\n ecode = gs_error_ioerror ;\n goto fail ;\n }\n pdf_initialize_ids ( pdev ) ;\n }\n }\n pdev -> CompatibilityLevel = ( int ) ( cl * 10 + 0.5 ) / 10.0 ;\n if ( pdev -> OwnerPassword . size != save_dev -> OwnerPassword . size || ( pdev -> OwnerPassword . size != 0 && memcmp ( pdev -> OwnerPassword . data , save_dev -> OwnerPassword . data , pdev -> OwnerPassword . size ) != 0 ) ) {\n if ( pdev -> is_open ) {\n if ( pdev -> PageCount == 0 ) {\n gs_closedevice ( ( gx_device * ) save_dev ) ;\n return 0 ;\n }\n else emprintf ( pdev -> memory , \"Owner Password changed mid-job, ignoring.\\n\" ) ;\n }\n }\n if ( pdev -> Linearise && pdev -> is_ps2write ) {\n emprintf ( pdev -> memory , \"Can't linearise PostScript output, ignoring\\n\" ) ;\n pdev -> Linearise = false ;\n }\n if ( pdev -> Linearise && pdev -> OwnerPassword . size != 0 ) {\n emprintf ( pdev -> memory , \"Can't linearise encrypted PDF, ignoring\\n\" ) ;\n pdev -> Linearise = false ;\n }\n if ( pdev -> FlattenFonts ) pdev -> PreserveTrMode = false ;\n return 0 ;\n fail : pdev -> version = save_dev -> version ;\n pdf_set_process_color_model ( pdev , save_dev -> pcm_color_info_index ) ;\n pdev -> saved_fill_color = save_dev -> saved_fill_color ;\n pdev -> saved_stroke_color = save_dev -> saved_fill_color ;\n {\n const gs_param_item_t * ppi = pdf_param_items ;\n for ( ;\n ppi -> key ;\n ++ ppi ) memcpy ( ( char * ) pdev + ppi -> offset , ( char * ) save_dev + ppi -> offset , gs_param_type_sizes [ ppi -> type ] ) ;\n pdev -> ForOPDFRead = save_dev -> ForOPDFRead ;\n }\n return ecode ;\n }"}
{"idx": 15525, "target": 0, "func": "static lbmpdm_definition_t * lbmpdm_definition_find ( guint64 channel , guint32 ID , guint8 version_major , guint8 version_minor ) {\n lbmpdm_definition_t * entry = NULL ;\n guint32 keyval [ LBMPDM_DEFINITION_KEY_ELEMENT_COUNT ] ;\n wmem_tree_key_t tkey [ 2 ] ;\n lbmpdm_definition_build_key ( keyval , tkey , channel , ID , version_major , version_minor ) ;\n entry = ( lbmpdm_definition_t * ) wmem_tree_lookup32_array ( lbmpdm_definition_table , tkey ) ;\n return ( entry ) ;\n }"}
{"idx": 15526, "target": 0, "func": "void ef_debug ( u_char level , const char * message , ... ) {\n va_list ap ;\n if ( EF_GBL_OPTIONS -> debug < level ) return ;\n va_start ( ap , message ) ;\n vfprintf ( stderr , message , ap ) ;\n fflush ( stderr ) ;\n va_end ( ap ) ;\n }"}
{"idx": 15527, "target": 0, "func": "static int stp_print_config_bpdu ( netdissect_options * ndo , const struct stp_bpdu_ * stp_bpdu , u_int length ) {\n ND_TCHECK ( stp_bpdu -> flags ) ;\n ND_PRINT ( ( ndo , \", Flags [%s]\" , bittok2str ( stp_bpdu_flag_values , \"none\" , stp_bpdu -> flags ) ) ) ;\n ND_TCHECK ( stp_bpdu -> port_id ) ;\n ND_PRINT ( ( ndo , \", bridge-id %s.%04x, length %u\" , stp_print_bridge_id ( ( const u_char * ) & stp_bpdu -> bridge_id ) , EXTRACT_16BITS ( & stp_bpdu -> port_id ) , length ) ) ;\n if ( ! ndo -> ndo_vflag ) {\n return 1 ;\n }\n ND_TCHECK ( stp_bpdu -> forward_delay ) ;\n ND_PRINT ( ( ndo , \"\\n\\tmessage-age %.2fs, max-age %.2fs\" \", hello-time %.2fs, forwarding-delay %.2fs\" , ( float ) EXTRACT_16BITS ( & stp_bpdu -> message_age ) / STP_TIME_BASE , ( float ) EXTRACT_16BITS ( & stp_bpdu -> max_age ) / STP_TIME_BASE , ( float ) EXTRACT_16BITS ( & stp_bpdu -> hello_time ) / STP_TIME_BASE , ( float ) EXTRACT_16BITS ( & stp_bpdu -> forward_delay ) / STP_TIME_BASE ) ) ;\n ND_PRINT ( ( ndo , \"\\n\\troot-id %s, root-pathcost %u\" , stp_print_bridge_id ( ( const u_char * ) & stp_bpdu -> root_id ) , EXTRACT_32BITS ( & stp_bpdu -> root_path_cost ) ) ) ;\n if ( stp_bpdu -> protocol_version == STP_PROTO_RAPID ) {\n ND_PRINT ( ( ndo , \", port-role %s\" , tok2str ( rstp_obj_port_role_values , \"Unknown\" , RSTP_EXTRACT_PORT_ROLE ( stp_bpdu -> flags ) ) ) ) ;\n }\n return 1 ;\n trunc : return 0 ;\n }"}
{"idx": 15528, "target": 0, "func": "static const char * cmd_cache_transformations ( cmd_parms * cmd , void * _dcfg , const char * p1 , const char * p2 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n if ( dcfg == NULL ) return NULL ;\n if ( strcasecmp ( p1 , \"on\" ) == 0 ) dcfg -> cache_trans = MODSEC_CACHE_ENABLED ;\n else if ( strcasecmp ( p1 , \"off\" ) == 0 ) dcfg -> cache_trans = MODSEC_CACHE_DISABLED ;\n else return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid value for SecCacheTransformations: %s\" , p1 ) ;\n if ( p2 != NULL ) {\n apr_table_t * vartable = apr_table_make ( cmd -> pool , 4 ) ;\n apr_status_t rc ;\n char * error_msg = NULL ;\n const char * charval = NULL ;\n apr_int64_t intval = 0 ;\n if ( vartable == NULL ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Unable to process options for SecCacheTransformations\" ) ;\n }\n rc = msre_parse_generic ( cmd -> pool , p2 , vartable , & error_msg ) ;\n if ( rc < 0 ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Unable to parse options for SecCacheTransformations: %s\" , error_msg ) ;\n }\n charval = apr_table_get ( vartable , \"incremental\" ) ;\n if ( charval != NULL ) {\n if ( strcasecmp ( charval , \"on\" ) == 0 ) dcfg -> cache_trans_incremental = 1 ;\n else if ( strcasecmp ( charval , \"off\" ) == 0 ) dcfg -> cache_trans_incremental = 0 ;\n else return apr_psprintf ( cmd -> pool , \"ModSecurity: SecCacheTransformations invalid incremental value: %s\" , charval ) ;\n }\n charval = apr_table_get ( vartable , \"minlen\" ) ;\n if ( charval != NULL ) {\n intval = apr_atoi64 ( charval ) ;\n if ( errno == ERANGE ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: SecCacheTransformations minlen out of range: %s\" , charval ) ;\n }\n if ( intval < 0 ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: SecCacheTransformations minlen must be positive: %s\" , charval ) ;\n }\n if ( ( unsigned long ) intval >= ( unsigned long ) NOT_SET ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: SecCacheTransformations minlen must be less than: %lu\" , ( unsigned long ) NOT_SET ) ;\n }\n dcfg -> cache_trans_min = ( apr_size_t ) intval ;\n }\n charval = apr_table_get ( vartable , \"maxlen\" ) ;\n if ( charval != NULL ) {\n intval = apr_atoi64 ( charval ) ;\n if ( errno == ERANGE ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: SecCacheTransformations maxlen out of range: %s\" , charval ) ;\n }\n if ( intval < 0 ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: SecCacheTransformations maxlen must be positive: %s\" , charval ) ;\n }\n if ( ( unsigned long ) intval >= ( unsigned long ) NOT_SET ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: SecCacheTransformations maxlen must be less than: %lu\" , ( unsigned long ) NOT_SET ) ;\n }\n if ( ( intval != 0 ) && ( ( apr_size_t ) intval < dcfg -> cache_trans_min ) ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: SecCacheTransformations maxlen must not be less than minlen: %lu < %\" APR_SIZE_T_FMT , ( unsigned long ) intval , dcfg -> cache_trans_min ) ;\n }\n dcfg -> cache_trans_max = ( apr_size_t ) intval ;\n }\n charval = apr_table_get ( vartable , \"maxitems\" ) ;\n if ( charval != NULL ) {\n intval = apr_atoi64 ( charval ) ;\n if ( errno == ERANGE ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: SecCacheTransformations maxitems out of range: %s\" , charval ) ;\n }\n if ( intval < 0 ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: SecCacheTransformations maxitems must be positive: %s\" , charval ) ;\n }\n dcfg -> cache_trans_maxitems = ( apr_size_t ) intval ;\n }\n }\n return NULL ;\n }"}
{"idx": 15529, "target": 0, "func": "unsigned int vp8_variance8x8_neon ( const unsigned char * src_ptr , int source_stride , const unsigned char * ref_ptr , int recon_stride , unsigned int * sse ) {\n int i ;\n uint8x8_t d0u8 , d1u8 , d2u8 , d3u8 , d4u8 , d5u8 , d6u8 , d7u8 ;\n int16x4_t d22s16 , d23s16 , d24s16 , d25s16 , d26s16 , d27s16 , d28s16 , d29s16 ;\n uint32x2_t d0u32 , d10u32 ;\n int64x1_t d0s64 , d1s64 ;\n uint16x8_t q11u16 , q12u16 , q13u16 , q14u16 ;\n int32x4_t q8s32 , q9s32 , q10s32 ;\n int64x2_t q0s64 , q1s64 , q5s64 ;\n q8s32 = vdupq_n_s32 ( 0 ) ;\n q9s32 = vdupq_n_s32 ( 0 ) ;\n q10s32 = vdupq_n_s32 ( 0 ) ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n d0u8 = vld1_u8 ( src_ptr ) ;\n src_ptr += source_stride ;\n d1u8 = vld1_u8 ( src_ptr ) ;\n src_ptr += source_stride ;\n d2u8 = vld1_u8 ( src_ptr ) ;\n src_ptr += source_stride ;\n d3u8 = vld1_u8 ( src_ptr ) ;\n src_ptr += source_stride ;\n d4u8 = vld1_u8 ( ref_ptr ) ;\n ref_ptr += recon_stride ;\n d5u8 = vld1_u8 ( ref_ptr ) ;\n ref_ptr += recon_stride ;\n d6u8 = vld1_u8 ( ref_ptr ) ;\n ref_ptr += recon_stride ;\n d7u8 = vld1_u8 ( ref_ptr ) ;\n ref_ptr += recon_stride ;\n q11u16 = vsubl_u8 ( d0u8 , d4u8 ) ;\n q12u16 = vsubl_u8 ( d1u8 , d5u8 ) ;\n q13u16 = vsubl_u8 ( d2u8 , d6u8 ) ;\n q14u16 = vsubl_u8 ( d3u8 , d7u8 ) ;\n d22s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q11u16 ) ) ;\n d23s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q11u16 ) ) ;\n q8s32 = vpadalq_s16 ( q8s32 , vreinterpretq_s16_u16 ( q11u16 ) ) ;\n q9s32 = vmlal_s16 ( q9s32 , d22s16 , d22s16 ) ;\n q10s32 = vmlal_s16 ( q10s32 , d23s16 , d23s16 ) ;\n d24s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q12u16 ) ) ;\n d25s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q12u16 ) ) ;\n q8s32 = vpadalq_s16 ( q8s32 , vreinterpretq_s16_u16 ( q12u16 ) ) ;\n q9s32 = vmlal_s16 ( q9s32 , d24s16 , d24s16 ) ;\n q10s32 = vmlal_s16 ( q10s32 , d25s16 , d25s16 ) ;\n d26s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q13u16 ) ) ;\n d27s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q13u16 ) ) ;\n q8s32 = vpadalq_s16 ( q8s32 , vreinterpretq_s16_u16 ( q13u16 ) ) ;\n q9s32 = vmlal_s16 ( q9s32 , d26s16 , d26s16 ) ;\n q10s32 = vmlal_s16 ( q10s32 , d27s16 , d27s16 ) ;\n d28s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q14u16 ) ) ;\n d29s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q14u16 ) ) ;\n q8s32 = vpadalq_s16 ( q8s32 , vreinterpretq_s16_u16 ( q14u16 ) ) ;\n q9s32 = vmlal_s16 ( q9s32 , d28s16 , d28s16 ) ;\n q10s32 = vmlal_s16 ( q10s32 , d29s16 , d29s16 ) ;\n }\n q10s32 = vaddq_s32 ( q10s32 , q9s32 ) ;\n q0s64 = vpaddlq_s32 ( q8s32 ) ;\n q1s64 = vpaddlq_s32 ( q10s32 ) ;\n d0s64 = vadd_s64 ( vget_low_s64 ( q0s64 ) , vget_high_s64 ( q0s64 ) ) ;\n d1s64 = vadd_s64 ( vget_low_s64 ( q1s64 ) , vget_high_s64 ( q1s64 ) ) ;\n q5s64 = vmull_s32 ( vreinterpret_s32_s64 ( d0s64 ) , vreinterpret_s32_s64 ( d0s64 ) ) ;\n vst1_lane_u32 ( ( uint32_t * ) sse , vreinterpret_u32_s64 ( d1s64 ) , 0 ) ;\n d10u32 = vshr_n_u32 ( vreinterpret_u32_s64 ( vget_low_s64 ( q5s64 ) ) , 6 ) ;\n d0u32 = vsub_u32 ( vreinterpret_u32_s64 ( d1s64 ) , d10u32 ) ;\n return vget_lane_u32 ( d0u32 , 0 ) ;\n }"}
{"idx": 15530, "target": 0, "func": "void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 ) sadMxN ( 16 , 32 ) sadMxNx4D ( 16 , 32 ) sadMxN ( 16 , 16 ) sadMxNxK ( 16 , 16 , 3 ) sadMxNxK ( 16 , 16 , 8 ) sadMxNx4D ( 16 , 16 ) sadMxN ( 16 , 8 ) sadMxNxK ( 16 , 8 , 3 ) sadMxNxK ( 16 , 8 , 8 ) sadMxNx4D ( 16 , 8 )"}
{"idx": 15531, "target": 0, "func": "SPL_METHOD ( FilesystemIterator , current ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n if ( SPL_FILE_DIR_CURRENT ( intern , SPL_FILE_DIR_CURRENT_AS_PATHNAME ) ) {\n spl_filesystem_object_get_file_name ( intern TSRMLS_CC ) ;\n RETURN_STRINGL ( intern -> file_name , intern -> file_name_len , 1 ) ;\n }\n else if ( SPL_FILE_DIR_CURRENT ( intern , SPL_FILE_DIR_CURRENT_AS_FILEINFO ) ) {\n spl_filesystem_object_get_file_name ( intern TSRMLS_CC ) ;\n spl_filesystem_object_create_type ( 0 , intern , SPL_FS_INFO , NULL , return_value TSRMLS_CC ) ;\n }\n else {\n RETURN_ZVAL ( getThis ( ) , 1 , 0 ) ;\n }\n }"}
{"idx": 15532, "target": 0, "func": "static void CountCompositeMaxPts ( SplineChar * sc , struct glyphinfo * gi ) {\n RefChar * ref ;\n int ptcnt = 0 , index ;\n for ( ref = sc -> layers [ gi -> layer ] . refs ;\n ref != NULL ;\n ref = ref -> next ) {\n if ( ref -> sc -> ttf_glyph == - 1 ) continue ;\n index = ref -> sc -> ttf_glyph ;\n if ( gi -> pointcounts [ index ] == - 1 ) CountCompositeMaxPts ( ref -> sc , gi ) ;\n ptcnt += gi -> pointcounts [ index ] ;\n }\n gi -> pointcounts [ sc -> ttf_glyph ] = ptcnt ;\n if ( gi -> maxp -> maxCompositPts < ptcnt ) gi -> maxp -> maxCompositPts = ptcnt ;\n }"}
{"idx": 15533, "target": 0, "func": "static int zwcheck ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n int code = access_check ( i_ctx_p , a_write , false ) ;\n if ( code >= 0 ) make_bool ( op , code ) , code = 0 ;\n return code ;\n }"}
{"idx": 15534, "target": 0, "func": "static int cine_read_header ( AVFormatContext * avctx ) {\n AVIOContext * pb = avctx -> pb ;\n AVStream * st ;\n unsigned int version , compression , offImageHeader , offSetup , offImageOffsets , biBitCount , length , CFA ;\n int vflip ;\n char * description ;\n uint64_t i ;\n st = avformat_new_stream ( avctx , NULL ) ;\n if ( ! st ) return AVERROR ( ENOMEM ) ;\n st -> codecpar -> codec_type = AVMEDIA_TYPE_VIDEO ;\n st -> codecpar -> codec_id = AV_CODEC_ID_RAWVIDEO ;\n st -> codecpar -> codec_tag = 0 ;\n avio_skip ( pb , 4 ) ;\n compression = avio_rl16 ( pb ) ;\n version = avio_rl16 ( pb ) ;\n if ( version != 1 ) {\n avpriv_request_sample ( avctx , \"unknown version %i\" , version ) ;\n return AVERROR_INVALIDDATA ;\n }\n avio_skip ( pb , 12 ) ;\n st -> duration = avio_rl32 ( pb ) ;\n offImageHeader = avio_rl32 ( pb ) ;\n offSetup = avio_rl32 ( pb ) ;\n offImageOffsets = avio_rl32 ( pb ) ;\n avio_skip ( pb , 8 ) ;\n avio_seek ( pb , offImageHeader , SEEK_SET ) ;\n avio_skip ( pb , 4 ) ;\n st -> codecpar -> width = avio_rl32 ( pb ) ;\n st -> codecpar -> height = avio_rl32 ( pb ) ;\n if ( avio_rl16 ( pb ) != 1 ) return AVERROR_INVALIDDATA ;\n biBitCount = avio_rl16 ( pb ) ;\n if ( biBitCount != 8 && biBitCount != 16 && biBitCount != 24 && biBitCount != 48 ) {\n avpriv_request_sample ( avctx , \"unsupported biBitCount %i\" , biBitCount ) ;\n return AVERROR_INVALIDDATA ;\n }\n switch ( avio_rl32 ( pb ) ) {\n case BMP_RGB : vflip = 0 ;\n break ;\n case 0x100 : st -> codecpar -> codec_tag = MKTAG ( 'B' , 'I' , 'T' , 0 ) ;\n vflip = 1 ;\n break ;\n default : avpriv_request_sample ( avctx , \"unknown bitmap compression\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n avio_skip ( pb , 4 ) ;\n avio_seek ( pb , offSetup , SEEK_SET ) ;\n avio_skip ( pb , 140 ) ;\n if ( avio_rl16 ( pb ) != 0x5453 ) return AVERROR_INVALIDDATA ;\n length = avio_rl16 ( pb ) ;\n if ( length < 0x163C ) {\n avpriv_request_sample ( avctx , \"short SETUP header\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n avio_skip ( pb , 616 ) ;\n if ( ! avio_rl32 ( pb ) ^ vflip ) {\n st -> codecpar -> extradata = av_strdup ( \"BottomUp\" ) ;\n st -> codecpar -> extradata_size = 9 ;\n }\n avio_skip ( pb , 4 ) ;\n avpriv_set_pts_info ( st , 64 , 1 , avio_rl32 ( pb ) ) ;\n avio_skip ( pb , 20 ) ;\n set_metadata_int ( & st -> metadata , \"camera_version\" , avio_rl32 ( pb ) , 0 ) ;\n set_metadata_int ( & st -> metadata , \"firmware_version\" , avio_rl32 ( pb ) , 0 ) ;\n set_metadata_int ( & st -> metadata , \"software_version\" , avio_rl32 ( pb ) , 0 ) ;\n set_metadata_int ( & st -> metadata , \"recording_timezone\" , avio_rl32 ( pb ) , 0 ) ;\n CFA = avio_rl32 ( pb ) ;\n set_metadata_int ( & st -> metadata , \"brightness\" , avio_rl32 ( pb ) , 1 ) ;\n set_metadata_int ( & st -> metadata , \"contrast\" , avio_rl32 ( pb ) , 1 ) ;\n set_metadata_int ( & st -> metadata , \"gamma\" , avio_rl32 ( pb ) , 1 ) ;\n avio_skip ( pb , 12 + 16 ) ;\n set_metadata_float ( & st -> metadata , \"wbgain[0].r\" , av_int2float ( avio_rl32 ( pb ) ) , 1 ) ;\n set_metadata_float ( & st -> metadata , \"wbgain[0].b\" , av_int2float ( avio_rl32 ( pb ) ) , 1 ) ;\n avio_skip ( pb , 36 ) ;\n st -> codecpar -> bits_per_coded_sample = avio_rl32 ( pb ) ;\n if ( compression == CC_RGB ) {\n if ( biBitCount == 8 ) {\n st -> codecpar -> format = AV_PIX_FMT_GRAY8 ;\n }\n else if ( biBitCount == 16 ) {\n st -> codecpar -> format = AV_PIX_FMT_GRAY16LE ;\n }\n else if ( biBitCount == 24 ) {\n st -> codecpar -> format = AV_PIX_FMT_BGR24 ;\n }\n else if ( biBitCount == 48 ) {\n st -> codecpar -> format = AV_PIX_FMT_BGR48LE ;\n }\n else {\n avpriv_request_sample ( avctx , \"unsupported biBitCount %i\" , biBitCount ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n else if ( compression == CC_UNINT ) {\n switch ( CFA & 0xFFFFFF ) {\n case CFA_BAYER : if ( biBitCount == 8 ) {\n st -> codecpar -> format = AV_PIX_FMT_BAYER_GBRG8 ;\n }\n else if ( biBitCount == 16 ) {\n st -> codecpar -> format = AV_PIX_FMT_BAYER_GBRG16LE ;\n }\n else {\n avpriv_request_sample ( avctx , \"unsupported biBitCount %i\" , biBitCount ) ;\n return AVERROR_INVALIDDATA ;\n }\n break ;\n case CFA_BAYERFLIP : if ( biBitCount == 8 ) {\n st -> codecpar -> format = AV_PIX_FMT_BAYER_RGGB8 ;\n }\n else if ( biBitCount == 16 ) {\n st -> codecpar -> format = AV_PIX_FMT_BAYER_RGGB16LE ;\n }\n else {\n avpriv_request_sample ( avctx , \"unsupported biBitCount %i\" , biBitCount ) ;\n return AVERROR_INVALIDDATA ;\n }\n break ;\n default : avpriv_request_sample ( avctx , \"unsupported Color Field Array (CFA) %i\" , CFA & 0xFFFFFF ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n else {\n avpriv_request_sample ( avctx , \"unsupported compression %i\" , compression ) ;\n return AVERROR_INVALIDDATA ;\n }\n avio_skip ( pb , 668 ) ;\n set_metadata_int ( & st -> metadata , \"shutter_ns\" , avio_rl32 ( pb ) , 0 ) ;\n avio_skip ( pb , 24 ) ;\n # define DESCRIPTION_SIZE 4096 description = av_malloc ( DESCRIPTION_SIZE + 1 ) ;\n if ( ! description ) return AVERROR ( ENOMEM ) ;\n i = avio_get_str ( pb , DESCRIPTION_SIZE , description , DESCRIPTION_SIZE + 1 ) ;\n if ( i < DESCRIPTION_SIZE ) avio_skip ( pb , DESCRIPTION_SIZE - i ) ;\n if ( description [ 0 ] ) av_dict_set ( & st -> metadata , \"description\" , description , AV_DICT_DONT_STRDUP_VAL ) ;\n else av_free ( description ) ;\n avio_skip ( pb , 1176 ) ;\n set_metadata_int ( & st -> metadata , \"enable_crop\" , avio_rl32 ( pb ) , 1 ) ;\n set_metadata_int ( & st -> metadata , \"crop_left\" , avio_rl32 ( pb ) , 1 ) ;\n set_metadata_int ( & st -> metadata , \"crop_top\" , avio_rl32 ( pb ) , 1 ) ;\n set_metadata_int ( & st -> metadata , \"crop_right\" , avio_rl32 ( pb ) , 1 ) ;\n set_metadata_int ( & st -> metadata , \"crop_bottom\" , avio_rl32 ( pb ) , 1 ) ;\n avio_seek ( pb , offImageOffsets , SEEK_SET ) ;\n for ( i = 0 ;\n i < st -> duration ;\n i ++ ) {\n if ( avio_feof ( pb ) ) return AVERROR_INVALIDDATA ;\n av_add_index_entry ( st , avio_rl64 ( pb ) , i , 0 , 0 , AVINDEX_KEYFRAME ) ;\n }\n return 0 ;\n }"}
{"idx": 15535, "target": 0, "func": "qcms_bool compute_precache ( struct curveType * trc , uint8_t * output ) {\n if ( trc -> type == PARAMETRIC_CURVE_TYPE ) {\n float gamma_table [ 256 ] ;\n uint16_t gamma_table_uint [ 256 ] ;\n uint16_t i ;\n uint16_t * inverted ;\n int inverted_size = 256 ;\n compute_curve_gamma_table_type_parametric ( gamma_table , trc -> parameter , trc -> count ) ;\n for ( i = 0 ;\n i < 256 ;\n i ++ ) {\n gamma_table_uint [ i ] = ( uint16_t ) ( gamma_table [ i ] * 65535 ) ;\n }\n if ( inverted_size < 256 ) inverted_size = 256 ;\n inverted = invert_lut ( gamma_table_uint , 256 , inverted_size ) ;\n if ( ! inverted ) return false ;\n compute_precache_lut ( output , inverted , inverted_size ) ;\n free ( inverted ) ;\n }\n else {\n if ( trc -> count == 0 ) {\n compute_precache_linear ( output ) ;\n }\n else if ( trc -> count == 1 ) {\n compute_precache_pow ( output , 1. / u8Fixed8Number_to_float ( trc -> data [ 0 ] ) ) ;\n }\n else {\n uint16_t * inverted ;\n int inverted_size = trc -> count ;\n if ( inverted_size < 256 ) inverted_size = 256 ;\n inverted = invert_lut ( trc -> data , trc -> count , inverted_size ) ;\n if ( ! inverted ) return false ;\n compute_precache_lut ( output , inverted , inverted_size ) ;\n free ( inverted ) ;\n }\n }\n return true ;\n }"}
{"idx": 15536, "target": 0, "func": "static void dtap_cc_recall ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_FALSE ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_RECALL_TYPE , NULL ) ;\n ELEM_MAND_LV ( GSM_A_PDU_TYPE_DTAP , DE_FACILITY , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 15537, "target": 0, "func": "static uint64_t translate_kernel_address ( void * opaque , uint64_t addr ) {\n return addr - 0xf0000000ULL ;\n }"}
{"idx": 15538, "target": 0, "func": "ACTION ( STLDeleteElements0 ) {\n STLDeleteContainerPointers ( arg0 . begin ( ) , arg0 . end ( ) ) ;\n }"}
{"idx": 15539, "target": 0, "func": "static vpx_codec_err_t ctrl_set_reference ( vpx_codec_alg_priv_t * ctx , va_list args ) {\n vpx_ref_frame_t * const frame = va_arg ( args , vpx_ref_frame_t * ) ;\n if ( frame != NULL ) {\n YV12_BUFFER_CONFIG sd ;\n image2yuvconfig ( & frame -> img , & sd ) ;\n vp9_set_reference_enc ( ctx -> cpi , ref_frame_to_vp9_reframe ( frame -> frame_type ) , & sd ) ;\n return VPX_CODEC_OK ;\n }\n else {\n return VPX_CODEC_INVALID_PARAM ;\n }\n }"}
{"idx": 15540, "target": 0, "func": "static void pk_transaction_get_categories ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) {\n g_autoptr ( GError ) error = NULL ;\n g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;\n g_return_if_fail ( transaction -> priv -> tid != NULL ) ;\n g_debug ( \"GetCategories method called\" ) ;\n if ( ! pk_backend_is_implemented ( transaction -> priv -> backend , PK_ROLE_ENUM_GET_CATEGORIES ) ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NOT_SUPPORTED , \"GetCategories not supported by backend\" ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n pk_transaction_set_role ( transaction , PK_ROLE_ENUM_GET_CATEGORIES ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_READY ) ;\n out : pk_transaction_dbus_return ( context , error ) ;\n }"}
{"idx": 15541, "target": 1, "func": "static UConverter * _SCSUSafeClone ( const UConverter * cnv , void * stackBuffer , int32_t * pBufferSize , UErrorCode * status ) {\n struct cloneSCSUStruct * localClone ;\n int32_t bufferSizeNeeded = sizeof ( struct cloneSCSUStruct ) ;\n if ( U_FAILURE ( * status ) ) {\n return 0 ;\n }\n if ( * pBufferSize == 0 ) {\n * pBufferSize = bufferSizeNeeded ;\n return 0 ;\n }\n localClone = ( struct cloneSCSUStruct * ) stackBuffer ;\n uprv_memcpy ( & localClone -> mydata , cnv -> extraInfo , sizeof ( SCSUData ) ) ;\n localClone -> cnv . extraInfo = & localClone -> mydata ;\n localClone -> cnv . isExtraLocal = TRUE ;\n return & localClone -> cnv ;\n }"}
{"idx": 15542, "target": 0, "func": "static int ipvideo_decode_block_opcode_0xB_16 ( IpvideoContext * s , AVFrame * frame ) {\n int x , y ;\n uint16_t * pixel_ptr = ( uint16_t * ) s -> pixel_ptr ;\n for ( y = 0 ;\n y < 8 ;\n y ++ ) {\n for ( x = 0 ;\n x < 8 ;\n x ++ ) pixel_ptr [ x ] = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n pixel_ptr += s -> stride ;\n }\n return 0 ;\n }"}
{"idx": 15543, "target": 0, "func": "static int dissect_h245_IS11172VideoMode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_IS11172VideoMode , IS11172VideoMode_sequence ) ;\n return offset ;\n }"}
{"idx": 15544, "target": 0, "func": "ASN1_INTEGER * num_to_asn1integer ( VALUE obj , ASN1_INTEGER * ai ) {\n BIGNUM * bn ;\n if ( NIL_P ( obj ) ) ossl_raise ( rb_eTypeError , \"Can't convert nil into Integer\" ) ;\n bn = GetBNPtr ( obj ) ;\n if ( ! ( ai = BN_to_ASN1_INTEGER ( bn , ai ) ) ) ossl_raise ( eOSSLError , NULL ) ;\n return ai ;\n }"}
{"idx": 15545, "target": 0, "func": "void set_numa_modes ( void ) {\n CPUArchState * env ;\n CPUState * cpu ;\n int i ;\n for ( env = first_cpu ;\n env != NULL ;\n env = env -> next_cpu ) {\n cpu = ENV_GET_CPU ( env ) ;\n for ( i = 0 ;\n i < nb_numa_nodes ;\n i ++ ) {\n if ( test_bit ( cpu -> cpu_index , node_cpumask [ i ] ) ) {\n cpu -> numa_node = i ;\n }\n }\n }\n }"}
{"idx": 15546, "target": 0, "func": "static void decSetSubnormal ( decNumber * dn , decContext * set , Int * residue , uInt * status ) {\n decContext workset ;\n Int etiny , adjust ;\n # if DECSUBSET if ( ! set -> extended ) {\n uprv_decNumberZero ( dn ) ;\n * status |= DEC_Underflow | DEC_Subnormal | DEC_Inexact | DEC_Rounded ;\n return ;\n }\n # endif etiny = set -> emin - ( set -> digits - 1 ) ;\n if ISZERO ( dn ) {\n # if DECCHECK if ( * residue != 0 ) {\n printf ( \"++ Subnormal 0 residue %ld\\n\" , ( LI ) * residue ) ;\n * status |= DEC_Invalid_operation ;\n }\n # endif if ( dn -> exponent < etiny ) {\n dn -> exponent = etiny ;\n * status |= DEC_Clamped ;\n }\n return ;\n }\n * status |= DEC_Subnormal ;\n adjust = etiny - dn -> exponent ;\n if ( adjust <= 0 ) {\n if ( * status & DEC_Inexact ) * status |= DEC_Underflow ;\n return ;\n }\n workset = * set ;\n workset . digits = dn -> digits - adjust ;\n workset . emin -= adjust ;\n decSetCoeff ( dn , & workset , dn -> lsu , dn -> digits , residue , status ) ;\n decApplyRound ( dn , & workset , * residue , status ) ;\n if ( * status & DEC_Inexact ) * status |= DEC_Underflow ;\n if ( dn -> exponent > etiny ) {\n dn -> digits = decShiftToMost ( dn -> lsu , dn -> digits , 1 ) ;\n dn -> exponent -- ;\n }\n if ( ISZERO ( dn ) ) * status |= DEC_Clamped ;\n }"}
{"idx": 15547, "target": 0, "func": "ATF_TC_BODY ( option_refcnt , tc ) {\n struct option_state * options ;\n struct option * option ;\n unsigned code ;\n int refcnt ;\n unsigned char buffer [ 3 ] = {\n 15 , 255 , 0 }\n ;\n initialize_common_option_spaces ( ) ;\n options = NULL ;\n if ( ! option_state_allocate ( & options , MDL ) ) {\n atf_tc_fail ( \"can't allocate option state\" ) ;\n }\n option = NULL ;\n code = 15 ;\n if ( ! option_code_hash_lookup ( & option , dhcp_universe . code_hash , & code , 0 , MDL ) ) {\n atf_tc_fail ( \"can't find option 15\" ) ;\n }\n if ( option == NULL ) {\n atf_tc_fail ( \"option is NULL\" ) ;\n }\n refcnt = option -> refcnt ;\n buffer [ 0 ] = 15 ;\n buffer [ 1 ] = 255 ;\n buffer [ 2 ] = 0 ;\n if ( parse_option_buffer ( options , buffer , 3 , & dhcp_universe ) ) {\n atf_tc_fail ( \"parse_option_buffer is expected to fail\" ) ;\n }\n if ( refcnt != option -> refcnt ) {\n atf_tc_fail ( \"refcnt changed from %d to %d\" , refcnt , option -> refcnt ) ;\n }\n }"}
{"idx": 15548, "target": 0, "func": "static inline int event2poltype ( int event ) {\n switch ( event ) {\n case XFRM_MSG_DELPOLICY : return SADB_X_SPDDELETE ;\n case XFRM_MSG_NEWPOLICY : return SADB_X_SPDADD ;\n case XFRM_MSG_UPDPOLICY : return SADB_X_SPDUPDATE ;\n case XFRM_MSG_POLEXPIRE : default : pr_err ( \"pfkey: Unknown policy event %d\\n\" , event ) ;\n break ;\n }\n return 0 ;\n }"}
{"idx": 15549, "target": 0, "func": "static void handle_lockprop_ctx ( struct xml_ctx * ctx , int tag_closed ) {\n int * lock_flags = ( int * ) ctx -> userData ;\n if ( tag_closed ) {\n if ( ! strcmp ( ctx -> name , DAV_CTX_LOCKENTRY ) ) {\n if ( ( * lock_flags & DAV_PROP_LOCKEX ) && ( * lock_flags & DAV_PROP_LOCKWR ) ) {\n * lock_flags |= DAV_LOCK_OK ;\n }\n * lock_flags &= DAV_LOCK_OK ;\n }\n else if ( ! strcmp ( ctx -> name , DAV_CTX_LOCKTYPE_WRITE ) ) {\n * lock_flags |= DAV_PROP_LOCKWR ;\n }\n else if ( ! strcmp ( ctx -> name , DAV_CTX_LOCKTYPE_EXCLUSIVE ) ) {\n * lock_flags |= DAV_PROP_LOCKEX ;\n }\n }\n }"}
{"idx": 15550, "target": 1, "func": "TEST ( BuildTime , DoesntCrash ) {\n base : : GetBuildTime ( ) ;\n }"}
{"idx": 15551, "target": 0, "func": "static int request_parse ( u8 * packet , int length , struct evdns_server_port * port , struct sockaddr * addr , socklen_t addrlen ) {\n int j = 0 ;\n u16 _t ;\n char tmp_name [ 256 ] ;\n int i ;\n u16 trans_id , flags , questions , answers , authority , additional ;\n struct server_request * server_req = NULL ;\n GET16 ( trans_id ) ;\n GET16 ( flags ) ;\n GET16 ( questions ) ;\n GET16 ( answers ) ;\n GET16 ( authority ) ;\n GET16 ( additional ) ;\n if ( flags & 0x8000 ) return - 1 ;\n flags &= 0x0110 ;\n server_req = malloc ( sizeof ( struct server_request ) ) ;\n if ( server_req == NULL ) return - 1 ;\n memset ( server_req , 0 , sizeof ( struct server_request ) ) ;\n server_req -> trans_id = trans_id ;\n memcpy ( & server_req -> addr , addr , addrlen ) ;\n server_req -> addrlen = addrlen ;\n server_req -> base . flags = flags ;\n server_req -> base . nquestions = 0 ;\n server_req -> base . questions = malloc ( sizeof ( struct evdns_server_question * ) * questions ) ;\n if ( server_req -> base . questions == NULL ) goto err ;\n for ( i = 0 ;\n i < questions ;\n ++ i ) {\n u16 type , class ;\n struct evdns_server_question * q ;\n int namelen ;\n if ( name_parse ( packet , length , & j , tmp_name , sizeof ( tmp_name ) ) < 0 ) goto err ;\n GET16 ( type ) ;\n GET16 ( class ) ;\n namelen = strlen ( tmp_name ) ;\n q = malloc ( sizeof ( struct evdns_server_question ) + namelen ) ;\n if ( ! q ) goto err ;\n q -> type = type ;\n q -> dns_question_class = class ;\n memcpy ( q -> name , tmp_name , namelen + 1 ) ;\n server_req -> base . questions [ server_req -> base . nquestions ++ ] = q ;\n }\n server_req -> port = port ;\n port -> refcnt ++ ;\n if ( flags & 0x7800 ) {\n evdns_server_request_respond ( & ( server_req -> base ) , DNS_ERR_NOTIMPL ) ;\n return - 1 ;\n }\n port -> user_callback ( & ( server_req -> base ) , port -> user_data ) ;\n return 0 ;\n err : if ( server_req ) {\n if ( server_req -> base . questions ) {\n for ( i = 0 ;\n i < server_req -> base . nquestions ;\n ++ i ) free ( server_req -> base . questions [ i ] ) ;\n free ( server_req -> base . questions ) ;\n }\n free ( server_req ) ;\n }\n return - 1 ;\n # undef SKIP_NAME # undef GET32 # undef GET16 # undef GET8 }"}
{"idx": 15552, "target": 1, "func": "static void temporal_filter_predictors_mb_c ( MACROBLOCKD * xd , uint8_t * y_mb_ptr , uint8_t * u_mb_ptr , uint8_t * v_mb_ptr , int stride , int uv_block_width , int uv_block_height , int mv_row , int mv_col , uint8_t * pred , struct scale_factors * scale , int x , int y ) {\n const int which_mv = 0 ;\n const MV mv = {\n mv_row , mv_col }\n ;\n const InterpKernel * const kernel = vp9_get_interp_kernel ( xd -> mi [ 0 ] -> mbmi . interp_filter ) ;\n enum mv_precision mv_precision_uv ;\n int uv_stride ;\n if ( uv_block_width == 8 ) {\n uv_stride = ( stride + 1 ) >> 1 ;\n mv_precision_uv = MV_PRECISION_Q4 ;\n }\n else {\n uv_stride = stride ;\n mv_precision_uv = MV_PRECISION_Q3 ;\n }\n vp9_build_inter_predictor ( y_mb_ptr , stride , & pred [ 0 ] , 16 , & mv , scale , 16 , 16 , which_mv , kernel , MV_PRECISION_Q3 , x , y ) ;\n vp9_build_inter_predictor ( u_mb_ptr , uv_stride , & pred [ 256 ] , uv_block_width , & mv , scale , uv_block_width , uv_block_height , which_mv , kernel , mv_precision_uv , x , y ) ;\n vp9_build_inter_predictor ( v_mb_ptr , uv_stride , & pred [ 512 ] , uv_block_width , & mv , scale , uv_block_width , uv_block_height , which_mv , kernel , mv_precision_uv , x , y ) ;\n }"}
{"idx": 15553, "target": 0, "func": "TEST_F ( ImmersiveModeControllerAshTestHostedApp , Layout ) {\n AddTab ( browser ( ) , GURL ( \"about:blank\" ) ) ;\n TabStrip * tabstrip = browser_view ( ) -> tabstrip ( ) ;\n ToolbarView * toolbar = browser_view ( ) -> toolbar ( ) ;\n views : : WebView * contents_web_view = browser_view ( ) -> GetContentsWebViewForTest ( ) ;\n views : : View * top_container = browser_view ( ) -> top_container ( ) ;\n ASSERT_FALSE ( browser_view ( ) -> GetWidget ( ) -> IsFullscreen ( ) ) ;\n ASSERT_FALSE ( controller ( ) -> IsEnabled ( ) ) ;\n EXPECT_FALSE ( tabstrip -> visible ( ) ) ;\n EXPECT_FALSE ( toolbar -> visible ( ) ) ;\n int header_height = GetBoundsInWidget ( contents_web_view ) . y ( ) ;\n ToggleFullscreen ( ) ;\n EXPECT_TRUE ( browser_view ( ) -> GetWidget ( ) -> IsFullscreen ( ) ) ;\n EXPECT_TRUE ( controller ( ) -> IsEnabled ( ) ) ;\n EXPECT_FALSE ( controller ( ) -> IsRevealed ( ) ) ;\n EXPECT_FALSE ( tabstrip -> visible ( ) ) ;\n EXPECT_FALSE ( toolbar -> visible ( ) ) ;\n EXPECT_TRUE ( top_container -> GetVisibleBounds ( ) . IsEmpty ( ) ) ;\n EXPECT_EQ ( 0 , GetBoundsInWidget ( contents_web_view ) . y ( ) ) ;\n AttemptReveal ( ) ;\n EXPECT_FALSE ( tabstrip -> visible ( ) ) ;\n EXPECT_FALSE ( toolbar -> visible ( ) ) ;\n EXPECT_EQ ( 0 , GetBoundsInWidget ( contents_web_view ) . y ( ) ) ;\n gfx : : Rect top_container_bounds_in_widget ( GetBoundsInWidget ( top_container ) ) ;\n EXPECT_EQ ( 0 , top_container_bounds_in_widget . y ( ) ) ;\n EXPECT_EQ ( header_height , top_container_bounds_in_widget . height ( ) ) ;\n ToggleFullscreen ( ) ;\n EXPECT_FALSE ( browser_view ( ) -> GetWidget ( ) -> IsFullscreen ( ) ) ;\n EXPECT_FALSE ( controller ( ) -> IsEnabled ( ) ) ;\n EXPECT_FALSE ( tabstrip -> visible ( ) ) ;\n EXPECT_FALSE ( toolbar -> visible ( ) ) ;\n EXPECT_EQ ( header_height , GetBoundsInWidget ( contents_web_view ) . y ( ) ) ;\n }"}
{"idx": 15554, "target": 1, "func": "bool metakey_h ( connection_t * c ) {\n char buffer [ MAX_STRING_SIZE ] ;\n int cipher , digest , maclength , compression ;\n int len ;\n if ( sscanf ( c -> buffer , \"%*d %d %d %d %d \" MAX_STRING , & cipher , & digest , & maclength , & compression , buffer ) != 5 ) {\n logger ( LOG_ERR , \"Got bad %s from %s (%s)\" , \"METAKEY\" , c -> name , c -> hostname ) ;\n return false ;\n }\n len = RSA_size ( myself -> connection -> rsa_key ) ;\n if ( strlen ( buffer ) != ( size_t ) len * 2 ) {\n logger ( LOG_ERR , \"Possible intruder %s (%s): %s\" , c -> name , c -> hostname , \"wrong keylength\" ) ;\n return false ;\n }\n c -> inkey = xrealloc ( c -> inkey , len ) ;\n if ( ! c -> inctx ) {\n c -> inctx = EVP_CIPHER_CTX_new ( ) ;\n if ( ! c -> inctx ) {\n abort ( ) ;\n }\n }\n if ( ! hex2bin ( buffer , buffer , len ) ) {\n logger ( LOG_ERR , \"Got bad %s from %s(%s): %s\" , \"METAKEY\" , c -> name , c -> hostname , \"invalid key\" ) ;\n return false ;\n }\n if ( RSA_private_decrypt ( len , ( unsigned char * ) buffer , ( unsigned char * ) c -> inkey , myself -> connection -> rsa_key , RSA_NO_PADDING ) != len ) {\n logger ( LOG_ERR , \"Error during decryption of meta key for %s (%s): %s\" , c -> name , c -> hostname , ERR_error_string ( ERR_get_error ( ) , NULL ) ) ;\n return false ;\n }\n ifdebug ( SCARY_THINGS ) {\n bin2hex ( c -> inkey , buffer , len ) ;\n buffer [ len * 2 ] = '\\0' ;\n logger ( LOG_DEBUG , \"Received random meta key (unencrypted): %s\" , buffer ) ;\n }\n if ( cipher ) {\n c -> incipher = EVP_get_cipherbynid ( cipher ) ;\n if ( ! c -> incipher ) {\n logger ( LOG_ERR , \"%s (%s) uses unknown cipher!\" , c -> name , c -> hostname ) ;\n return false ;\n }\n if ( ! EVP_DecryptInit ( c -> inctx , c -> incipher , ( unsigned char * ) c -> inkey + len - EVP_CIPHER_key_length ( c -> incipher ) , ( unsigned char * ) c -> inkey + len - EVP_CIPHER_key_length ( c -> incipher ) - EVP_CIPHER_iv_length ( c -> incipher ) ) ) {\n logger ( LOG_ERR , \"Error during initialisation of cipher from %s (%s): %s\" , c -> name , c -> hostname , ERR_error_string ( ERR_get_error ( ) , NULL ) ) ;\n return false ;\n }\n c -> inbudget = byte_budget ( c -> incipher ) ;\n c -> status . decryptin = true ;\n }\n else {\n c -> incipher = NULL ;\n }\n c -> inmaclength = maclength ;\n if ( digest ) {\n c -> indigest = EVP_get_digestbynid ( digest ) ;\n if ( ! c -> indigest ) {\n logger ( LOG_ERR , \"Node %s (%s) uses unknown digest!\" , c -> name , c -> hostname ) ;\n return false ;\n }\n if ( c -> inmaclength > EVP_MD_size ( c -> indigest ) || c -> inmaclength < 0 ) {\n logger ( LOG_ERR , \"%s (%s) uses bogus MAC length!\" , c -> name , c -> hostname ) ;\n return false ;\n }\n }\n else {\n c -> indigest = NULL ;\n }\n c -> incompression = compression ;\n c -> allow_request = CHALLENGE ;\n return send_challenge ( c ) ;\n }"}
{"idx": 15555, "target": 0, "func": "void parseLocalizedText ( proto_tree * tree , tvbuff_t * tvb , packet_info * pinfo , gint * pOffset , const char * szFieldName ) {\n static const int * loctext_mask [ ] = {\n & hf_opcua_loctext_mask_localeflag , & hf_opcua_loctext_mask_textflag , NULL }\n ;\n gint iOffset = * pOffset ;\n guint8 EncodingMask ;\n proto_tree * subtree ;\n proto_item * ti ;\n subtree = proto_tree_add_subtree_format ( tree , tvb , * pOffset , - 1 , ett_opcua_localizedtext , & ti , \"%s: LocalizedText\" , szFieldName ) ;\n EncodingMask = tvb_get_guint8 ( tvb , iOffset ) ;\n proto_tree_add_bitmask ( subtree , tvb , iOffset , hf_opcua_loctext_mask , ett_opcua_localizedtext_encodingmask , loctext_mask , ENC_LITTLE_ENDIAN ) ;\n iOffset ++ ;\n if ( EncodingMask & LOCALIZEDTEXT_ENCODINGBYTE_LOCALE ) {\n parseString ( subtree , tvb , pinfo , & iOffset , hf_opcua_localizedtext_locale ) ;\n }\n if ( EncodingMask & LOCALIZEDTEXT_ENCODINGBYTE_TEXT ) {\n parseString ( subtree , tvb , pinfo , & iOffset , hf_opcua_localizedtext_text ) ;\n }\n proto_item_set_end ( ti , tvb , iOffset ) ;\n * pOffset = iOffset ;\n }"}
{"idx": 15556, "target": 0, "func": "void ff_mpeg4_pred_ac ( MpegEncContext * s , int16_t * block , int n , int dir ) {\n int i ;\n int16_t * ac_val , * ac_val1 ;\n int8_t * const qscale_table = s -> current_picture . qscale_table ;\n ac_val = s -> ac_val [ 0 ] [ 0 ] + s -> block_index [ n ] * 16 ;\n ac_val1 = ac_val ;\n if ( s -> ac_pred ) {\n if ( dir == 0 ) {\n const int xy = s -> mb_x - 1 + s -> mb_y * s -> mb_stride ;\n ac_val -= 16 ;\n if ( s -> mb_x == 0 || s -> qscale == qscale_table [ xy ] || n == 1 || n == 3 ) {\n for ( i = 1 ;\n i < 8 ;\n i ++ ) {\n block [ s -> dsp . idct_permutation [ i << 3 ] ] += ac_val [ i ] ;\n }\n }\n else {\n for ( i = 1 ;\n i < 8 ;\n i ++ ) {\n block [ s -> dsp . idct_permutation [ i << 3 ] ] += ROUNDED_DIV ( ac_val [ i ] * qscale_table [ xy ] , s -> qscale ) ;\n }\n }\n }\n else {\n const int xy = s -> mb_x + s -> mb_y * s -> mb_stride - s -> mb_stride ;\n ac_val -= 16 * s -> block_wrap [ n ] ;\n if ( s -> mb_y == 0 || s -> qscale == qscale_table [ xy ] || n == 2 || n == 3 ) {\n for ( i = 1 ;\n i < 8 ;\n i ++ ) {\n block [ s -> dsp . idct_permutation [ i ] ] += ac_val [ i + 8 ] ;\n }\n }\n else {\n for ( i = 1 ;\n i < 8 ;\n i ++ ) {\n block [ s -> dsp . idct_permutation [ i ] ] += ROUNDED_DIV ( ac_val [ i + 8 ] * qscale_table [ xy ] , s -> qscale ) ;\n }\n }\n }\n }\n for ( i = 1 ;\n i < 8 ;\n i ++ ) ac_val1 [ i ] = block [ s -> dsp . idct_permutation [ i << 3 ] ] ;\n for ( i = 1 ;\n i < 8 ;\n i ++ ) ac_val1 [ 8 + i ] = block [ s -> dsp . idct_permutation [ i ] ] ;\n }"}
{"idx": 15557, "target": 0, "func": "METHOD ( asn1_parser_t , iterate , bool , private_asn1_parser_t * this , int * objectID , chunk_t * object ) {\n chunk_t * blob , * blob1 , blob_ori ;\n u_char * start_ptr ;\n u_int level ;\n asn1Object_t obj ;\n * object = chunk_empty ;\n obj = this -> objects [ ++ ( this -> line ) ] ;\n if ( obj . flags & ASN1_EXIT ) {\n return FALSE ;\n }\n if ( obj . flags & ASN1_END ) {\n if ( this -> loopAddr [ obj . level ] && this -> blobs [ obj . level + 1 ] . len > 0 ) {\n this -> line = this -> loopAddr [ obj . level ] ;\n obj = this -> objects [ this -> line ] ;\n }\n else {\n this -> loopAddr [ obj . level ] = 0 ;\n if ( obj . flags & ASN1_CHOICE ) {\n if ( this -> choice [ obj . level + 1 ] ) {\n DBG1 ( DBG_ASN , \"L%d - %s: incorrect choice encoding\" , this -> level0 + obj . level , obj . name ) ;\n this -> success = FALSE ;\n goto end ;\n }\n }\n if ( obj . flags & ASN1_CH ) {\n this -> choice [ obj . level ] = FALSE ;\n do {\n this -> line ++ ;\n }\n while ( ! ( ( this -> objects [ this -> line ] . flags & ASN1_END ) && ( this -> objects [ this -> line ] . flags & ASN1_CHOICE ) && ( this -> objects [ this -> line ] . level == obj . level - 1 ) ) ) ;\n this -> line -- ;\n }\n goto end ;\n }\n }\n level = this -> level0 + obj . level ;\n blob = this -> blobs + obj . level ;\n blob_ori = * blob ;\n blob1 = blob + 1 ;\n start_ptr = blob -> ptr ;\n if ( ( obj . flags & ASN1_DEF ) && ( blob -> len == 0 || * start_ptr != obj . type ) ) {\n DBG2 ( DBG_ASN , \"L%d - %s:\" , level , obj . name ) ;\n if ( obj . type & ASN1_CONSTRUCTED ) {\n this -> line ++ ;\n }\n goto end ;\n }\n if ( ( obj . flags & ASN1_OPT ) && ( blob -> len == 0 || * start_ptr != obj . type ) ) {\n do {\n this -> line ++ ;\n }\n while ( ! ( ( this -> objects [ this -> line ] . flags & ASN1_END ) && ( this -> objects [ this -> line ] . level == obj . level ) ) ) ;\n goto end ;\n }\n if ( blob -> len < 2 ) {\n DBG1 ( DBG_ASN , \"L%d - %s: ASN.1 object smaller than 2 octets\" , level , obj . name ) ;\n this -> success = FALSE ;\n goto end ;\n }\n blob1 -> len = asn1_length ( blob ) ;\n if ( blob1 -> len == ASN1_INVALID_LENGTH ) {\n DBG1 ( DBG_ASN , \"L%d - %s: length of ASN.1 object invalid or too large\" , level , obj . name ) ;\n this -> success = FALSE ;\n goto end ;\n }\n blob1 -> ptr = blob -> ptr ;\n blob -> ptr += blob1 -> len ;\n blob -> len -= blob1 -> len ;\n if ( ( obj . flags & ASN1_CHOICE ) && obj . type == ASN1_EOC ) {\n DBG2 ( DBG_ASN , \"L%d - %s:\" , level , obj . name ) ;\n this -> choice [ obj . level + 1 ] = TRUE ;\n * blob1 = blob_ori ;\n goto end ;\n }\n if ( obj . flags & ASN1_RAW ) {\n DBG2 ( DBG_ASN , \"L%d - %s:\" , level , obj . name ) ;\n object -> ptr = start_ptr ;\n object -> len = ( size_t ) ( blob -> ptr - start_ptr ) ;\n goto end ;\n }\n if ( * start_ptr != obj . type && ! ( this -> implicit && this -> line == 0 ) ) {\n DBG2 ( DBG_ASN , \"L%d - %s: ASN1 tag 0x%02x expected, but is 0x%02x\" , level , obj . name , obj . type , * start_ptr ) ;\n DBG3 ( DBG_ASN , \"%b\" , start_ptr , ( u_int ) ( blob -> ptr - start_ptr ) ) ;\n this -> success = FALSE ;\n goto end ;\n }\n DBG2 ( DBG_ASN , \"L%d - %s:\" , level , obj . name ) ;\n if ( obj . flags & ASN1_LOOP ) {\n if ( blob1 -> len > 0 ) {\n this -> loopAddr [ obj . level ] = this -> line + 1 ;\n }\n else {\n do {\n this -> line ++ ;\n }\n while ( ! ( ( this -> objects [ this -> line ] . flags & ASN1_END ) && ( this -> objects [ this -> line ] . level == obj . level ) ) ) ;\n goto end ;\n }\n }\n if ( obj . flags & ASN1_CHOICE ) {\n if ( blob1 -> len == 0 ) {\n DBG1 ( DBG_ASN , \"L%d - %s: contains no choice\" , level , obj . name ) ;\n this -> success = FALSE ;\n goto end ;\n }\n this -> choice [ obj . level + 1 ] = TRUE ;\n }\n if ( obj . flags & ASN1_OBJ ) {\n object -> ptr = start_ptr ;\n object -> len = ( size_t ) ( blob -> ptr - start_ptr ) ;\n if ( this -> private ) {\n DBG4 ( DBG_ASN , \"%B\" , object ) ;\n }\n else {\n DBG3 ( DBG_ASN , \"%B\" , object ) ;\n }\n }\n else if ( obj . flags & ASN1_BODY ) {\n * object = * blob1 ;\n asn1_debug_simple_object ( * object , obj . type , this -> private ) ;\n }\n end : * objectID = this -> line ;\n return this -> success ;\n }"}
{"idx": 15558, "target": 0, "func": "TSReturnCode TSHttpTxnCachedRespModifiableGet ( TSHttpTxn txnp , TSMBuffer * bufp , TSMLoc * obj ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) obj ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n HttpTransact : : State * s = & ( sm -> t_state ) ;\n HTTPHdr * c_resp = nullptr ;\n HTTPInfo * cached_obj = sm -> t_state . cache_info . object_read ;\n HTTPInfo * cached_obj_store = & ( sm -> t_state . cache_info . object_store ) ;\n if ( ( ! cached_obj ) || ( ! cached_obj -> valid ( ) ) ) {\n return TS_ERROR ;\n }\n if ( ! cached_obj_store -> valid ( ) ) {\n cached_obj_store -> create ( ) ;\n }\n c_resp = cached_obj_store -> response_get ( ) ;\n if ( c_resp == nullptr || ! c_resp -> valid ( ) ) {\n cached_obj_store -> response_set ( cached_obj -> response_get ( ) ) ;\n }\n c_resp = cached_obj_store -> response_get ( ) ;\n s -> api_modifiable_cached_resp = true ;\n ink_assert ( c_resp != nullptr && c_resp -> valid ( ) ) ;\n * ( reinterpret_cast < HTTPHdr * * > ( bufp ) ) = c_resp ;\n * obj = reinterpret_cast < TSMLoc > ( c_resp -> m_http ) ;\n sdk_assert ( sdk_sanity_check_mbuffer ( * bufp ) == TS_SUCCESS ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 15559, "target": 0, "func": "static cmsBool Type_LUTB2A_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) {\n cmsPipeline * Lut = ( cmsPipeline * ) Ptr ;\n int inputChan , outputChan ;\n cmsStage * A = NULL , * B = NULL , * M = NULL ;\n cmsStage * Matrix = NULL ;\n cmsStage * CLUT = NULL ;\n cmsUInt32Number offsetB = 0 , offsetMat = 0 , offsetM = 0 , offsetC = 0 , offsetA = 0 ;\n cmsUInt32Number BaseOffset , DirectoryPos , CurrentPos ;\n BaseOffset = io -> Tell ( io ) - sizeof ( _cmsTagBase ) ;\n if ( ! cmsPipelineCheckAndRetreiveStages ( Lut , 1 , cmsSigCurveSetElemType , & B ) ) if ( ! cmsPipelineCheckAndRetreiveStages ( Lut , 3 , cmsSigCurveSetElemType , cmsSigMatrixElemType , cmsSigCurveSetElemType , & B , & Matrix , & M ) ) if ( ! cmsPipelineCheckAndRetreiveStages ( Lut , 3 , cmsSigCurveSetElemType , cmsSigCLutElemType , cmsSigCurveSetElemType , & B , & CLUT , & A ) ) if ( ! cmsPipelineCheckAndRetreiveStages ( Lut , 5 , cmsSigCurveSetElemType , cmsSigMatrixElemType , cmsSigCurveSetElemType , cmsSigCLutElemType , cmsSigCurveSetElemType , & B , & Matrix , & M , & CLUT , & A ) ) {\n cmsSignalError ( self -> ContextID , cmsERROR_NOT_SUITABLE , \"LUT is not suitable to be saved as LutBToA\" ) ;\n return FALSE ;\n }\n inputChan = cmsPipelineInputChannels ( Lut ) ;\n outputChan = cmsPipelineOutputChannels ( Lut ) ;\n if ( ! _cmsWriteUInt8Number ( io , ( cmsUInt8Number ) inputChan ) ) return FALSE ;\n if ( ! _cmsWriteUInt8Number ( io , ( cmsUInt8Number ) outputChan ) ) return FALSE ;\n if ( ! _cmsWriteUInt16Number ( io , 0 ) ) return FALSE ;\n DirectoryPos = io -> Tell ( io ) ;\n if ( ! _cmsWriteUInt32Number ( io , 0 ) ) return FALSE ;\n if ( ! _cmsWriteUInt32Number ( io , 0 ) ) return FALSE ;\n if ( ! _cmsWriteUInt32Number ( io , 0 ) ) return FALSE ;\n if ( ! _cmsWriteUInt32Number ( io , 0 ) ) return FALSE ;\n if ( ! _cmsWriteUInt32Number ( io , 0 ) ) return FALSE ;\n if ( A != NULL ) {\n offsetA = io -> Tell ( io ) - BaseOffset ;\n if ( ! WriteSetOfCurves ( self , io , cmsSigParametricCurveType , A ) ) return FALSE ;\n }\n if ( CLUT != NULL ) {\n offsetC = io -> Tell ( io ) - BaseOffset ;\n if ( ! WriteCLUT ( self , io , Lut -> SaveAs8Bits ? 1 : 2 , CLUT ) ) return FALSE ;\n }\n if ( M != NULL ) {\n offsetM = io -> Tell ( io ) - BaseOffset ;\n if ( ! WriteSetOfCurves ( self , io , cmsSigParametricCurveType , M ) ) return FALSE ;\n }\n if ( Matrix != NULL ) {\n offsetMat = io -> Tell ( io ) - BaseOffset ;\n if ( ! WriteMatrix ( self , io , Matrix ) ) return FALSE ;\n }\n if ( B != NULL ) {\n offsetB = io -> Tell ( io ) - BaseOffset ;\n if ( ! WriteSetOfCurves ( self , io , cmsSigParametricCurveType , B ) ) return FALSE ;\n }\n CurrentPos = io -> Tell ( io ) ;\n if ( ! io -> Seek ( io , DirectoryPos ) ) return FALSE ;\n if ( ! _cmsWriteUInt32Number ( io , offsetB ) ) return FALSE ;\n if ( ! _cmsWriteUInt32Number ( io , offsetMat ) ) return FALSE ;\n if ( ! _cmsWriteUInt32Number ( io , offsetM ) ) return FALSE ;\n if ( ! _cmsWriteUInt32Number ( io , offsetC ) ) return FALSE ;\n if ( ! _cmsWriteUInt32Number ( io , offsetA ) ) return FALSE ;\n if ( ! io -> Seek ( io , CurrentPos ) ) return FALSE ;\n return TRUE ;\n cmsUNUSED_PARAMETER ( nItems ) ;\n }"}
{"idx": 15560, "target": 1, "func": "int handle__publish ( struct mosquitto_db * db , struct mosquitto * context ) {\n char * topic ;\n mosquitto__payload_uhpa payload ;\n uint32_t payloadlen ;\n uint8_t dup , qos , retain ;\n uint16_t mid = 0 ;\n int rc = 0 ;\n uint8_t header = context -> in_packet . command ;\n int res = 0 ;\n struct mosquitto_msg_store * stored = NULL ;\n int len ;\n int slen ;\n char * topic_mount ;\n # ifdef WITH_BRIDGE char * topic_temp ;\n int i ;\n struct mosquitto__bridge_topic * cur_topic ;\n bool match ;\n # endif payload . ptr = NULL ;\n dup = ( header & 0x08 ) >> 3 ;\n qos = ( header & 0x06 ) >> 1 ;\n if ( qos == 3 ) {\n log__printf ( NULL , MOSQ_LOG_INFO , \"Invalid QoS in PUBLISH from %s, disconnecting.\" , context -> id ) ;\n return 1 ;\n }\n retain = ( header & 0x01 ) ;\n if ( packet__read_string ( & context -> in_packet , & topic , & slen ) ) return 1 ;\n if ( ! slen ) {\n mosquitto__free ( topic ) ;\n return 1 ;\n }\n # ifdef WITH_BRIDGE if ( context -> bridge && context -> bridge -> topics && context -> bridge -> topic_remapping ) {\n for ( i = 0 ;\n i < context -> bridge -> topic_count ;\n i ++ ) {\n cur_topic = & context -> bridge -> topics [ i ] ;\n if ( ( cur_topic -> direction == bd_both || cur_topic -> direction == bd_in ) && ( cur_topic -> remote_prefix || cur_topic -> local_prefix ) ) {\n rc = mosquitto_topic_matches_sub ( cur_topic -> remote_topic , topic , & match ) ;\n if ( rc ) {\n mosquitto__free ( topic ) ;\n return rc ;\n }\n if ( match ) {\n if ( cur_topic -> remote_prefix ) {\n if ( ! strncmp ( cur_topic -> remote_prefix , topic , strlen ( cur_topic -> remote_prefix ) ) ) {\n topic_temp = mosquitto__strdup ( topic + strlen ( cur_topic -> remote_prefix ) ) ;\n if ( ! topic_temp ) {\n mosquitto__free ( topic ) ;\n return MOSQ_ERR_NOMEM ;\n }\n mosquitto__free ( topic ) ;\n topic = topic_temp ;\n }\n }\n if ( cur_topic -> local_prefix ) {\n len = strlen ( topic ) + strlen ( cur_topic -> local_prefix ) + 1 ;\n topic_temp = mosquitto__malloc ( len + 1 ) ;\n if ( ! topic_temp ) {\n mosquitto__free ( topic ) ;\n return MOSQ_ERR_NOMEM ;\n }\n snprintf ( topic_temp , len , \"%s%s\" , cur_topic -> local_prefix , topic ) ;\n topic_temp [ len ] = '\\0' ;\n mosquitto__free ( topic ) ;\n topic = topic_temp ;\n }\n break ;\n }\n }\n }\n }\n # endif if ( mosquitto_pub_topic_check ( topic ) != MOSQ_ERR_SUCCESS ) {\n mosquitto__free ( topic ) ;\n return 1 ;\n }\n if ( mosquitto_validate_utf8 ( topic , strlen ( topic ) ) != MOSQ_ERR_SUCCESS ) {\n mosquitto__free ( topic ) ;\n return 1 ;\n }\n if ( qos > 0 ) {\n if ( packet__read_uint16 ( & context -> in_packet , & mid ) ) {\n mosquitto__free ( topic ) ;\n return 1 ;\n }\n }\n payloadlen = context -> in_packet . remaining_length - context -> in_packet . pos ;\n G_PUB_BYTES_RECEIVED_INC ( payloadlen ) ;\n if ( context -> listener && context -> listener -> mount_point ) {\n len = strlen ( context -> listener -> mount_point ) + strlen ( topic ) + 1 ;\n topic_mount = mosquitto__malloc ( len + 1 ) ;\n if ( ! topic_mount ) {\n mosquitto__free ( topic ) ;\n return MOSQ_ERR_NOMEM ;\n }\n snprintf ( topic_mount , len , \"%s%s\" , context -> listener -> mount_point , topic ) ;\n topic_mount [ len ] = '\\0' ;\n mosquitto__free ( topic ) ;\n topic = topic_mount ;\n }\n if ( payloadlen ) {\n if ( db -> config -> message_size_limit && payloadlen > db -> config -> message_size_limit ) {\n log__printf ( NULL , MOSQ_LOG_DEBUG , \"Dropped too large PUBLISH from %s (d%d, q%d, r%d, m%d, '%s', ... (%ld bytes))\" , context -> id , dup , qos , retain , mid , topic , ( long ) payloadlen ) ;\n goto process_bad_message ;\n }\n if ( UHPA_ALLOC ( payload , payloadlen + 1 ) == 0 ) {\n mosquitto__free ( topic ) ;\n return MOSQ_ERR_NOMEM ;\n }\n if ( packet__read_bytes ( & context -> in_packet , UHPA_ACCESS ( payload , payloadlen ) , payloadlen ) ) {\n mosquitto__free ( topic ) ;\n UHPA_FREE ( payload , payloadlen ) ;\n return 1 ;\n }\n }\n rc = mosquitto_acl_check ( db , context , topic , MOSQ_ACL_WRITE ) ;\n if ( rc == MOSQ_ERR_ACL_DENIED ) {\n log__printf ( NULL , MOSQ_LOG_DEBUG , \"Denied PUBLISH from %s (d%d, q%d, r%d, m%d, '%s', ... (%ld bytes))\" , context -> id , dup , qos , retain , mid , topic , ( long ) payloadlen ) ;\n goto process_bad_message ;\n }\n else if ( rc != MOSQ_ERR_SUCCESS ) {\n mosquitto__free ( topic ) ;\n UHPA_FREE ( payload , payloadlen ) ;\n return rc ;\n }\n log__printf ( NULL , MOSQ_LOG_DEBUG , \"Received PUBLISH from %s (d%d, q%d, r%d, m%d, '%s', ... (%ld bytes))\" , context -> id , dup , qos , retain , mid , topic , ( long ) payloadlen ) ;\n if ( qos > 0 ) {\n db__message_store_find ( context , mid , & stored ) ;\n }\n if ( ! stored ) {\n dup = 0 ;\n if ( db__message_store ( db , context -> id , mid , topic , qos , payloadlen , & payload , retain , & stored , 0 ) ) {\n return 1 ;\n }\n }\n else {\n mosquitto__free ( topic ) ;\n topic = stored -> topic ;\n dup = 1 ;\n }\n switch ( qos ) {\n case 0 : if ( sub__messages_queue ( db , context -> id , topic , qos , retain , & stored ) ) rc = 1 ;\n break ;\n case 1 : if ( sub__messages_queue ( db , context -> id , topic , qos , retain , & stored ) ) rc = 1 ;\n if ( send__puback ( context , mid ) ) rc = 1 ;\n break ;\n case 2 : if ( ! dup ) {\n res = db__message_insert ( db , context , mid , mosq_md_in , qos , retain , stored ) ;\n }\n else {\n res = 0 ;\n }\n if ( ! res ) {\n if ( send__pubrec ( context , mid ) ) rc = 1 ;\n }\n else if ( res == 1 ) {\n rc = 1 ;\n }\n break ;\n }\n return rc ;\n process_bad_message : mosquitto__free ( topic ) ;\n UHPA_FREE ( payload , payloadlen ) ;\n switch ( qos ) {\n case 0 : return MOSQ_ERR_SUCCESS ;\n case 1 : return send__puback ( context , mid ) ;\n case 2 : db__message_store_find ( context , mid , & stored ) ;\n if ( ! stored ) {\n if ( db__message_store ( db , context -> id , mid , NULL , qos , 0 , NULL , false , & stored , 0 ) ) {\n return 1 ;\n }\n res = db__message_insert ( db , context , mid , mosq_md_in , qos , false , stored ) ;\n }\n else {\n res = 0 ;\n }\n if ( ! res ) {\n res = send__pubrec ( context , mid ) ;\n }\n return res ;\n }\n return 1 ;\n }"}
{"idx": 15561, "target": 0, "func": "static int printer_notify_hf_index ( int field ) {\n int result = - 1 ;\n switch ( field ) {\n case PRINTER_NOTIFY_SERVER_NAME : result = hf_servername ;\n break ;\n case PRINTER_NOTIFY_PRINTER_NAME : result = hf_printername ;\n break ;\n case PRINTER_NOTIFY_SHARE_NAME : result = hf_sharename ;\n break ;\n case PRINTER_NOTIFY_PORT_NAME : result = hf_portname ;\n break ;\n case PRINTER_NOTIFY_DRIVER_NAME : result = hf_drivername ;\n break ;\n case PRINTER_NOTIFY_COMMENT : result = hf_printercomment ;\n break ;\n case PRINTER_NOTIFY_LOCATION : result = hf_printerlocation ;\n break ;\n case PRINTER_NOTIFY_SEPFILE : result = hf_sepfile ;\n break ;\n case PRINTER_NOTIFY_PRINT_PROCESSOR : result = hf_printprocessor ;\n break ;\n case PRINTER_NOTIFY_PARAMETERS : result = hf_parameters ;\n break ;\n case PRINTER_NOTIFY_DATATYPE : result = hf_parameters ;\n break ;\n }\n return result ;\n }"}
{"idx": 15562, "target": 0, "func": "void free_all_replace ( ) {\n free_replace ( ) ;\n free_replace_regex ( ) ;\n free_replace_column ( ) ;\n }"}
{"idx": 15563, "target": 0, "func": "static int capture_android_bluetooth_hcidump ( char * interface , char * fifo , const char * adb_server_ip , unsigned short * adb_server_tcp_port ) {\n struct extcap_dumper extcap_dumper ;\n static char data [ PACKET_LENGTH ] ;\n static char packet [ PACKET_LENGTH ] ;\n static char helpful_packet [ PACKET_LENGTH ] ;\n gssize length ;\n gssize used_buffer_length = 0 ;\n socket_handle_t sock ;\n const char * adb_transport = \"0012\" \"host:transport-any\" ;\n const char * adb_transport_serial_templace = \"%04x\" \"host:transport:%s\" ;\n const char * adb_shell_hcidump = \"0013\" \"shell:hcidump -R -t\" ;\n const char * adb_shell_su_hcidump = \"0019\" \"shell:su -c hcidump -R -t\" ;\n int result ;\n char * serial_number = NULL ;\n size_t serial_number_length = 0 ;\n time_t ts = 0 ;\n unsigned int captured_length ;\n gint64 hex ;\n char * hex_data ;\n char * new_hex_data ;\n own_pcap_bluetooth_h4_header * h4_header ;\n gint64 raw_length = 0 ;\n gint64 frame_length ;\n int ms = 0 ;\n struct tm date ;\n char direction_character ;\n int try_next = 0 ;\n SET_DATA ( h4_header , value_own_pcap_bluetooth_h4_header , packet ) ;\n extcap_dumper = extcap_dumper_open ( fifo , EXTCAP_ENCAP_BLUETOOTH_H4_WITH_PHDR ) ;\n sock = adb_connect ( adb_server_ip , adb_server_tcp_port ) ;\n if ( sock == INVALID_SOCKET ) return EXIT_CODE_INVALID_SOCKET_3 ;\n if ( is_specified_interface ( interface , INTERFACE_ANDROID_BLUETOOTH_HCIDUMP ) && strlen ( interface ) > strlen ( INTERFACE_ANDROID_BLUETOOTH_HCIDUMP ) + 1 ) {\n serial_number = interface + strlen ( INTERFACE_ANDROID_BLUETOOTH_HCIDUMP ) + 1 ;\n serial_number_length = strlen ( serial_number ) ;\n }\n if ( ! serial_number ) {\n result = adb_send ( sock , adb_transport ) ;\n if ( result ) {\n errmsg_print ( \"ERROR: Error while setting adb transport for <%s>\" , adb_transport ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n }\n else {\n result = g_snprintf ( ( char * ) helpful_packet , PACKET_LENGTH , adb_transport_serial_templace , 15 + serial_number_length , serial_number ) ;\n if ( result <= 0 || result > PACKET_LENGTH ) {\n errmsg_print ( \"ERROR: Error while completing adb packet\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_BAD_SIZE_OF_ASSEMBLED_ADB_PACKET_10 ;\n }\n result = adb_send ( sock , helpful_packet ) ;\n if ( result ) {\n errmsg_print ( \"ERROR: Error while setting adb transport for <%s>\" , helpful_packet ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n }\n result = adb_send ( sock , adb_shell_hcidump ) ;\n if ( result ) {\n errmsg_print ( \"ERROR: Error while starting capture by sending command: %s\" , adb_shell_hcidump ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n while ( endless_loop ) {\n char * i_position ;\n errno = 0 ;\n length = recv ( sock , data + used_buffer_length , ( int ) ( PACKET_LENGTH - used_buffer_length ) , 0 ) ;\n if ( errno == EAGAIN # if EWOULDBLOCK != EAGAIN || errno == EWOULDBLOCK # endif ) {\n continue ;\n }\n else if ( errno != 0 ) {\n errmsg_print ( \"ERROR capture: %s\" , strerror ( errno ) ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n if ( length <= 0 ) {\n errmsg_print ( \"ERROR: Broken socket connection.\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n used_buffer_length += length ;\n i_position = ( char * ) memchr ( data , '\\n' , used_buffer_length ) ;\n if ( i_position && i_position < data + used_buffer_length ) {\n char * state_line_position = i_position + 1 ;\n if ( ! strncmp ( data , \"/system/bin/sh: hcidump: not found\" , 34 ) ) {\n errmsg_print ( \"ERROR: Command not found for <%s>\" , adb_shell_hcidump ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n i_position = ( char * ) memchr ( i_position + 1 , '\\n' , used_buffer_length ) ;\n if ( i_position ) {\n i_position += 1 ;\n if ( ! strncmp ( state_line_position , \"Can't access device: Permission denied\" , 38 ) ) {\n verbose_print ( \"WARNING: No permission for command <%s>\\n\" , adb_shell_hcidump ) ;\n used_buffer_length = 0 ;\n try_next += 1 ;\n break ;\n }\n memmove ( data , i_position , used_buffer_length - ( i_position - data ) ) ;\n used_buffer_length = used_buffer_length - ( gssize ) ( i_position - data ) ;\n break ;\n }\n }\n }\n if ( try_next == 1 ) {\n sock = adb_connect ( adb_server_ip , adb_server_tcp_port ) ;\n if ( sock == INVALID_SOCKET ) return EXIT_CODE_INVALID_SOCKET_4 ;\n result = g_snprintf ( ( char * ) helpful_packet , PACKET_LENGTH , adb_transport_serial_templace , 15 + serial_number_length , serial_number ) ;\n if ( result <= 0 || result > PACKET_LENGTH ) {\n errmsg_print ( \"ERROR: Error while completing adb packet\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_BAD_SIZE_OF_ASSEMBLED_ADB_PACKET_11 ;\n }\n result = adb_send ( sock , helpful_packet ) ;\n if ( result ) {\n errmsg_print ( \"ERROR: Error while setting adb transport for <%s>\" , helpful_packet ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n result = adb_send ( sock , adb_shell_su_hcidump ) ;\n if ( result ) {\n errmsg_print ( \"ERROR: Error while starting capture by sending command: <%s>\" , adb_shell_su_hcidump ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n used_buffer_length = 0 ;\n while ( endless_loop ) {\n char * i_position ;\n errno = 0 ;\n length = recv ( sock , data + used_buffer_length , ( int ) ( PACKET_LENGTH - used_buffer_length ) , 0 ) ;\n if ( errno == EAGAIN # if EWOULDBLOCK != EAGAIN || errno == EWOULDBLOCK # endif ) {\n continue ;\n }\n else if ( errno != 0 ) {\n errmsg_print ( \"ERROR capture: %s\" , strerror ( errno ) ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n if ( length <= 0 ) {\n errmsg_print ( \"ERROR: Broken socket connection.\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n used_buffer_length += length ;\n i_position = ( char * ) memchr ( data , '\\n' , used_buffer_length ) ;\n if ( i_position && i_position < data + used_buffer_length ) {\n if ( ! strncmp ( data , \"/system/bin/sh: su: not found\" , 29 ) ) {\n errmsg_print ( \"ERROR: Command 'su' not found for <%s>\" , adb_shell_su_hcidump ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n i_position = ( char * ) memchr ( i_position + 1 , '\\n' , used_buffer_length ) ;\n if ( i_position ) {\n i_position += 1 ;\n memmove ( data , i_position , used_buffer_length - ( i_position - data ) ) ;\n used_buffer_length = used_buffer_length - ( gssize ) ( i_position - data ) ;\n break ;\n }\n }\n }\n }\n while ( endless_loop ) {\n errno = 0 ;\n length = recv ( sock , data + used_buffer_length , ( int ) ( PACKET_LENGTH - used_buffer_length ) , 0 ) ;\n if ( errno == EAGAIN # if EWOULDBLOCK != EAGAIN || errno == EWOULDBLOCK # endif ) {\n continue ;\n }\n else if ( errno != 0 ) {\n errmsg_print ( \"ERROR capture: %s\" , strerror ( errno ) ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n if ( length <= 0 ) {\n errmsg_print ( \"ERROR: Broken socket connection.\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n while ( endless_loop ) {\n if ( used_buffer_length + length >= 1 ) {\n hex_data = data + 29 ;\n hex = g_ascii_strtoll ( hex_data , & new_hex_data , 16 ) ;\n if ( ( hex == 0x01 && used_buffer_length + length >= 4 ) || ( hex == 0x02 && used_buffer_length + length >= 5 ) || ( hex == 0x04 && used_buffer_length + length >= 3 ) ) {\n if ( hex == 0x01 ) {\n hex_data = new_hex_data ;\n hex = g_ascii_strtoll ( hex_data , & new_hex_data , 16 ) ;\n if ( hex < 0 || hex >= 256 || hex_data == new_hex_data ) {\n errmsg_print ( \"ERROR: data format error: %s\" , strerror ( errno ) ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n hex_data = new_hex_data ;\n hex = g_ascii_strtoll ( hex_data , & new_hex_data , 16 ) ;\n if ( hex < 0 || hex >= 256 || hex_data == new_hex_data ) {\n errmsg_print ( \"ERROR: data format error: %s\" , strerror ( errno ) ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n hex_data = new_hex_data ;\n hex = g_ascii_strtoll ( hex_data , & new_hex_data , 16 ) ;\n raw_length = hex + 4 ;\n }\n else if ( hex == 0x04 ) {\n hex_data = new_hex_data ;\n hex = g_ascii_strtoll ( hex_data , & new_hex_data , 16 ) ;\n if ( hex < 0 || hex >= 256 || hex_data == new_hex_data ) {\n errmsg_print ( \"ERROR: data format error: %s\" , strerror ( errno ) ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n hex_data = new_hex_data ;\n hex = g_ascii_strtoll ( hex_data , & new_hex_data , 16 ) ;\n raw_length = hex + 3 ;\n }\n else if ( hex == 0x02 ) {\n hex_data = new_hex_data ;\n hex = g_ascii_strtoll ( hex_data , & new_hex_data , 16 ) ;\n if ( hex < 0 || hex >= 256 || hex_data == new_hex_data ) {\n errmsg_print ( \"ERROR: data format error: %s\" , strerror ( errno ) ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n hex_data = new_hex_data ;\n hex = g_ascii_strtoll ( hex_data , & new_hex_data , 16 ) ;\n if ( hex < 0 || hex >= 256 || hex_data == new_hex_data ) {\n errmsg_print ( \"ERROR: data format error: %s\" , strerror ( errno ) ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n hex_data = new_hex_data ;\n hex = g_ascii_strtoll ( hex_data , & new_hex_data , 16 ) ;\n raw_length = hex + 5 ;\n hex_data = new_hex_data ;\n hex = g_ascii_strtoll ( hex_data , & new_hex_data , 16 ) ;\n raw_length += hex << 8 ;\n }\n }\n else {\n errmsg_print ( \"ERROR: bad raw stream\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n }\n else {\n used_buffer_length += length ;\n break ;\n }\n frame_length = raw_length * 3 + ( raw_length / 20 ) * 4 + ( ( raw_length % 20 ) ? 2 : - 2 ) + 29 ;\n if ( used_buffer_length + length < frame_length ) {\n used_buffer_length += length ;\n break ;\n }\n if ( 8 == sscanf ( data , \"%04d-%02d-%02d %02d:%02d:%02d.%06d %c\" , & date . tm_year , & date . tm_mon , & date . tm_mday , & date . tm_hour , & date . tm_min , & date . tm_sec , & ms , & direction_character ) ) {\n verbose_print ( \"time %04d-%02d-%02d %02d:%02d:%02d.%06d %c\\n\" , date . tm_year , date . tm_mon , date . tm_mday , date . tm_hour , date . tm_min , date . tm_sec , ms , direction_character ) ;\n date . tm_mon -= 1 ;\n date . tm_year -= 1900 ;\n ts = mktime ( & date ) ;\n new_hex_data = data + 29 ;\n }\n captured_length = 0 ;\n while ( ( long ) ( new_hex_data - data + sizeof ( own_pcap_bluetooth_h4_header ) ) < frame_length ) {\n hex_data = new_hex_data ;\n hex = g_ascii_strtoll ( hex_data , & new_hex_data , 16 ) ;\n packet [ sizeof ( own_pcap_bluetooth_h4_header ) + captured_length ] = ( char ) hex ;\n captured_length += 1 ;\n }\n h4_header -> direction = GINT32_TO_BE ( direction_character == '>' ) ;\n endless_loop = extcap_dumper_dump ( extcap_dumper , packet , captured_length + sizeof ( own_pcap_bluetooth_h4_header ) , captured_length + sizeof ( own_pcap_bluetooth_h4_header ) , ts , ms * 1000 ) ;\n if ( used_buffer_length + length >= frame_length ) {\n memmove ( data , data + frame_length , ( size_t ) ( used_buffer_length + length - frame_length ) ) ;\n used_buffer_length = ( gssize ) ( used_buffer_length + length - frame_length ) ;\n length = 0 ;\n continue ;\n }\n length = 0 ;\n }\n }\n closesocket ( sock ) ;\n return EXIT_CODE_SUCCESS ;\n }"}
{"idx": 15564, "target": 1, "func": "static void process_gitlink ( struct rev_info * revs , const unsigned char * sha1 , show_object_fn show , struct name_path * path , const char * name , void * cb_data ) {\n }"}
{"idx": 15565, "target": 0, "func": "void vp9_rc_update_rate_correction_factors ( VP9_COMP * cpi , int damp_var ) {\n const VP9_COMMON * const cm = & cpi -> common ;\n int correction_factor = 100 ;\n double rate_correction_factor = get_rate_correction_factor ( cpi ) ;\n double adjustment_limit ;\n int projected_size_based_on_q = 0 ;\n if ( cpi -> rc . is_src_frame_alt_ref ) return ;\n vp9_clear_system_state ( ) ;\n projected_size_based_on_q = estimate_bits_at_q ( cm -> frame_type , cm -> base_qindex , cm -> MBs , rate_correction_factor , cm -> bit_depth ) ;\n if ( projected_size_based_on_q > 0 ) correction_factor = ( 100 * cpi -> rc . projected_frame_size ) / projected_size_based_on_q ;\n switch ( damp_var ) {\n case 0 : adjustment_limit = 0.75 ;\n break ;\n case 1 : adjustment_limit = 0.375 ;\n break ;\n case 2 : default : adjustment_limit = 0.25 ;\n break ;\n }\n if ( correction_factor > 102 ) {\n correction_factor = ( int ) ( 100 + ( ( correction_factor - 100 ) * adjustment_limit ) ) ;\n rate_correction_factor = ( rate_correction_factor * correction_factor ) / 100 ;\n if ( rate_correction_factor > MAX_BPB_FACTOR ) rate_correction_factor = MAX_BPB_FACTOR ;\n }\n else if ( correction_factor < 99 ) {\n correction_factor = ( int ) ( 100 - ( ( 100 - correction_factor ) * adjustment_limit ) ) ;\n rate_correction_factor = ( rate_correction_factor * correction_factor ) / 100 ;\n if ( rate_correction_factor < MIN_BPB_FACTOR ) rate_correction_factor = MIN_BPB_FACTOR ;\n }\n set_rate_correction_factor ( cpi , rate_correction_factor ) ;\n }"}
{"idx": 15566, "target": 0, "func": "static int dissect_h225_H320Caps ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_H320Caps , H320Caps_sequence ) ;\n return offset ;\n }"}
{"idx": 15567, "target": 1, "func": "static void initial_reordering_punctuation_cluster ( const hb_ot_shape_plan_t * plan HB_UNUSED , hb_face_t * face HB_UNUSED , hb_buffer_t * buffer HB_UNUSED , unsigned int start HB_UNUSED , unsigned int end HB_UNUSED ) {\n }"}
{"idx": 15568, "target": 0, "func": "static bool fpop_ip_dp_needed ( void * opaque ) {\n X86CPU * cpu = opaque ;\n CPUX86State * env = & cpu -> env ;\n return env -> fpop != 0 || env -> fpip != 0 || env -> fpdp != 0 ;\n }"}
{"idx": 15569, "target": 0, "func": "static void deep_count_next_dir ( DeepCountState * state ) {\n GFile * location ;\n NautilusFile * file ;\n NautilusDirectory * directory ;\n gboolean done ;\n directory = state -> directory ;\n g_object_unref ( state -> deep_count_location ) ;\n state -> deep_count_location = NULL ;\n done = FALSE ;\n file = directory -> details -> deep_count_file ;\n if ( state -> deep_count_subdirectories != NULL ) {\n location = state -> deep_count_subdirectories -> data ;\n state -> deep_count_subdirectories = g_list_remove ( state -> deep_count_subdirectories , location ) ;\n deep_count_load ( state , location ) ;\n g_object_unref ( location ) ;\n }\n else {\n file -> details -> deep_counts_status = NAUTILUS_REQUEST_DONE ;\n directory -> details -> deep_count_file = NULL ;\n directory -> details -> deep_count_in_progress = NULL ;\n deep_count_state_free ( state ) ;\n done = TRUE ;\n }\n nautilus_file_updated_deep_count_in_progress ( file ) ;\n if ( done ) {\n nautilus_file_changed ( file ) ;\n async_job_end ( directory , \"deep count\" ) ;\n nautilus_directory_async_state_changed ( directory ) ;\n }\n }"}
{"idx": 15570, "target": 1, "func": "static inline void ff_mpeg4_set_one_direct_mv ( MpegEncContext * s , int mx , int my , int i ) {\n int xy = s -> block_index [ i ] ;\n uint16_t time_pp = s -> pp_time ;\n uint16_t time_pb = s -> pb_time ;\n int p_mx , p_my ;\n p_mx = s -> next_picture . f . motion_val [ 0 ] [ xy ] [ 0 ] ;\n if ( ( unsigned ) ( p_mx + tab_bias ) < tab_size ) {\n s -> mv [ 0 ] [ i ] [ 0 ] = s -> direct_scale_mv [ 0 ] [ p_mx + tab_bias ] + mx ;\n s -> mv [ 1 ] [ i ] [ 0 ] = mx ? s -> mv [ 0 ] [ i ] [ 0 ] - p_mx : s -> direct_scale_mv [ 1 ] [ p_mx + tab_bias ] ;\n }\n else {\n s -> mv [ 0 ] [ i ] [ 0 ] = p_mx * time_pb / time_pp + mx ;\n s -> mv [ 1 ] [ i ] [ 0 ] = mx ? s -> mv [ 0 ] [ i ] [ 0 ] - p_mx : p_mx * ( time_pb - time_pp ) / time_pp ;\n }\n p_my = s -> next_picture . f . motion_val [ 0 ] [ xy ] [ 1 ] ;\n if ( ( unsigned ) ( p_my + tab_bias ) < tab_size ) {\n s -> mv [ 0 ] [ i ] [ 1 ] = s -> direct_scale_mv [ 0 ] [ p_my + tab_bias ] + my ;\n s -> mv [ 1 ] [ i ] [ 1 ] = my ? s -> mv [ 0 ] [ i ] [ 1 ] - p_my : s -> direct_scale_mv [ 1 ] [ p_my + tab_bias ] ;\n }\n else {\n s -> mv [ 0 ] [ i ] [ 1 ] = p_my * time_pb / time_pp + my ;\n s -> mv [ 1 ] [ i ] [ 1 ] = my ? s -> mv [ 0 ] [ i ] [ 1 ] - p_my : p_my * ( time_pb - time_pp ) / time_pp ;\n }\n }"}
{"idx": 15571, "target": 1, "func": "int mem_get_bits_rectangle ( gx_device * dev , const gs_int_rect * prect , gs_get_bits_params_t * params , gs_int_rect * * unread ) {\n gx_device_memory * const mdev = ( gx_device_memory * ) dev ;\n gs_get_bits_options_t options = params -> options ;\n int x = prect -> p . x , w = prect -> q . x - x , y = prect -> p . y , h = prect -> q . y - y ;\n if ( options == 0 ) {\n params -> options = ( GB_ALIGN_STANDARD | GB_ALIGN_ANY ) | ( GB_RETURN_COPY | GB_RETURN_POINTER ) | ( GB_OFFSET_0 | GB_OFFSET_SPECIFIED | GB_OFFSET_ANY ) | ( GB_RASTER_STANDARD | GB_RASTER_SPECIFIED | GB_RASTER_ANY ) | GB_PACKING_CHUNKY | GB_COLORS_NATIVE | GB_ALPHA_NONE ;\n return_error ( gs_error_rangecheck ) ;\n }\n if ( ( w <= 0 ) | ( h <= 0 ) ) {\n if ( ( w | h ) < 0 ) return_error ( gs_error_rangecheck ) ;\n return 0 ;\n }\n if ( x < 0 || w > dev -> width - x || y < 0 || h > dev -> height - y ) return_error ( gs_error_rangecheck ) ;\n {\n gs_get_bits_params_t copy_params ;\n byte * * base = & scan_line_base ( mdev , y ) ;\n int code ;\n copy_params . options = GB_COLORS_NATIVE | GB_PACKING_CHUNKY | GB_ALPHA_NONE | ( mdev -> raster == bitmap_raster ( mdev -> width * mdev -> color_info . depth ) ? GB_RASTER_STANDARD : GB_RASTER_SPECIFIED ) ;\n copy_params . raster = mdev -> raster ;\n code = gx_get_bits_return_pointer ( dev , x , h , params , & copy_params , base ) ;\n if ( code >= 0 ) return code ;\n return gx_get_bits_copy ( dev , x , w , h , params , & copy_params , * base , gx_device_raster ( dev , true ) ) ;\n }\n }"}
{"idx": 15572, "target": 0, "func": "const vpx_image_t * vpx_codec_get_preview_frame ( vpx_codec_ctx_t * ctx ) {\n vpx_image_t * img = NULL ;\n if ( ctx ) {\n if ( ! ctx -> iface || ! ctx -> priv ) ctx -> err = VPX_CODEC_ERROR ;\n else if ( ! ( ctx -> iface -> caps & VPX_CODEC_CAP_ENCODER ) ) ctx -> err = VPX_CODEC_INCAPABLE ;\n else if ( ! ctx -> iface -> enc . get_preview ) ctx -> err = VPX_CODEC_INCAPABLE ;\n else img = ctx -> iface -> enc . get_preview ( get_alg_priv ( ctx ) ) ;\n }\n return img ;\n }"}
{"idx": 15573, "target": 0, "func": "static int __tipc_nl_compat_link_set ( struct sk_buff * skb , struct tipc_nl_compat_msg * msg ) {\n struct nlattr * prop ;\n struct nlattr * link ;\n struct tipc_link_config * lc ;\n lc = ( struct tipc_link_config * ) TLV_DATA ( msg -> req ) ;\n link = nla_nest_start ( skb , TIPC_NLA_LINK ) ;\n if ( ! link ) return - EMSGSIZE ;\n if ( nla_put_string ( skb , TIPC_NLA_LINK_NAME , lc -> name ) ) return - EMSGSIZE ;\n prop = nla_nest_start ( skb , TIPC_NLA_LINK_PROP ) ;\n if ( ! prop ) return - EMSGSIZE ;\n __tipc_add_link_prop ( skb , msg , lc ) ;\n nla_nest_end ( skb , prop ) ;\n nla_nest_end ( skb , link ) ;\n return 0 ;\n }"}
{"idx": 15574, "target": 0, "func": "void mark_reachable_objects ( struct rev_info * revs , int mark_reflog , unsigned long mark_recent , struct progress * progress ) {\n struct connectivity_progress cp ;\n revs -> tag_objects = 1 ;\n revs -> blob_objects = 1 ;\n revs -> tree_objects = 1 ;\n add_index_objects_to_pending ( revs , 0 ) ;\n for_each_ref ( add_one_ref , revs ) ;\n head_ref ( add_one_ref , revs ) ;\n if ( mark_reflog ) add_reflogs_to_pending ( revs , 0 ) ;\n cp . progress = progress ;\n cp . count = 0 ;\n if ( prepare_revision_walk ( revs ) ) die ( \"revision walk setup failed\" ) ;\n traverse_commit_list ( revs , mark_commit , mark_object , & cp ) ;\n if ( mark_recent ) {\n revs -> ignore_missing_links = 1 ;\n if ( add_unseen_recent_objects_to_traversal ( revs , mark_recent ) ) die ( \"unable to mark recent objects\" ) ;\n if ( prepare_revision_walk ( revs ) ) die ( \"revision walk setup failed\" ) ;\n traverse_commit_list ( revs , mark_commit , mark_object , & cp ) ;\n }\n display_progress ( cp . progress , cp . count ) ;\n }"}
{"idx": 15575, "target": 0, "func": "static gcry_mpi_t mpi_read_from_buffer ( const unsigned char * buffer , unsigned * ret_nread , int secure ) {\n int i , j ;\n unsigned int nbits , nbytes , nlimbs , nread = 0 ;\n mpi_limb_t a ;\n gcry_mpi_t val = MPI_NULL ;\n if ( * ret_nread < 2 ) goto leave ;\n nbits = buffer [ 0 ] << 8 | buffer [ 1 ] ;\n if ( nbits > MAX_EXTERN_MPI_BITS ) {\n goto leave ;\n }\n buffer += 2 ;\n nread = 2 ;\n nbytes = ( nbits + 7 ) / 8 ;\n nlimbs = ( nbytes + BYTES_PER_MPI_LIMB - 1 ) / BYTES_PER_MPI_LIMB ;\n val = secure ? mpi_alloc_secure ( nlimbs ) : mpi_alloc ( nlimbs ) ;\n i = BYTES_PER_MPI_LIMB - nbytes % BYTES_PER_MPI_LIMB ;\n i %= BYTES_PER_MPI_LIMB ;\n j = val -> nlimbs = nlimbs ;\n val -> sign = 0 ;\n for ( ;\n j > 0 ;\n j -- ) {\n a = 0 ;\n for ( ;\n i < BYTES_PER_MPI_LIMB ;\n i ++ ) {\n if ( ++ nread > * ret_nread ) {\n mpi_free ( val ) ;\n val = NULL ;\n goto leave ;\n }\n a <<= 8 ;\n a |= * buffer ++ ;\n }\n i = 0 ;\n val -> d [ j - 1 ] = a ;\n }\n leave : * ret_nread = nread ;\n return val ;\n }"}
{"idx": 15576, "target": 0, "func": "static vpx_image_t * encoder_get_preview ( vpx_codec_alg_priv_t * ctx ) {\n YV12_BUFFER_CONFIG sd ;\n vp9_ppflags_t flags ;\n vp9_zero ( flags ) ;\n if ( ctx -> preview_ppcfg . post_proc_flag ) {\n flags . post_proc_flag = ctx -> preview_ppcfg . post_proc_flag ;\n flags . deblocking_level = ctx -> preview_ppcfg . deblocking_level ;\n flags . noise_level = ctx -> preview_ppcfg . noise_level ;\n }\n if ( vp9_get_preview_raw_frame ( ctx -> cpi , & sd , & flags ) == 0 ) {\n yuvconfig2image ( & ctx -> preview_img , & sd , NULL ) ;\n return & ctx -> preview_img ;\n }\n else {\n return NULL ;\n }\n }"}
{"idx": 15577, "target": 0, "func": "static inline krb5_error_code data_to_gss ( krb5_data * input_k5data , gss_buffer_t output_buffer ) {\n krb5_error_code code = 0 ;\n output_buffer -> length = input_k5data -> length ;\n # if defined ( _WIN32 ) || defined ( DEBUG_GSSALLOC ) if ( output_buffer -> length > 0 ) {\n output_buffer -> value = gssalloc_malloc ( output_buffer -> length ) ;\n if ( output_buffer -> value ) memcpy ( output_buffer -> value , input_k5data -> data , output_buffer -> length ) ;\n else code = ENOMEM ;\n }\n else {\n output_buffer -> value = NULL ;\n }\n free ( input_k5data -> data ) ;\n # else output_buffer -> value = input_k5data -> data ;\n # endif * input_k5data = empty_data ( ) ;\n return code ;\n }"}
{"idx": 15578, "target": 1, "func": "static int parse_CTableColumn ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree , struct CTableColumn * col , const char * fmt , ... ) {\n static const value_string DBAGGTTYPE [ ] = {\n {\n 0x0 , \"DBAGGTTYPE_BYNONE\" }\n , {\n 0x1 , \"DBAGGTTYPE_SUM\" }\n , {\n 0x2 , \"DBAGGTTYPE_MAX\" }\n , {\n 0x3 , \"DBAGGTTYPE_MIN\" }\n , {\n 0x4 , \"DBAGGTTYPE_AVG\" }\n , {\n 0x5 , \"DBAGGTTYPE_COUNT\" }\n , {\n 0x6 , \"DBAGGTTYPE_CHILDCOUNT\" }\n , {\n 0x7 , \"DBAGGTTYPE_BYFREQ\" }\n , {\n 0x8 , \"DBAGGTTYPE_FIRST\" }\n , {\n 0x9 , \"DBAGGTTYPE_DATERANGE\" }\n , {\n 0xA , \"DBAGGTTYPE_REPRESENTATIVEOF\" }\n , {\n 0xB , \"DBAGGTTYPE_EDITDISTANCE\" }\n , {\n 0 , NULL }\n }\n ;\n proto_item * item ;\n proto_tree * tree ;\n va_list ap ;\n struct vtype_data * type ;\n enum vType vtype_val = VT_EMPTY ;\n enum vType vtype_valhi = VT_EMPTY ;\n struct CFullPropSpec v ;\n const char * txt ;\n guint8 used ;\n const char * modifier = \"\" ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CTableColumn , & item , txt ) ;\n offset = parse_CFullPropSpec ( tvb , offset , tree , pad_tree , & v , \"PropSpec\" ) ;\n get_name_from_fullpropspec ( & v , col -> name , PROP_LENGTH ) ;\n col -> vtype = tvb_get_letohl ( tvb , offset ) ;\n vtype_val = ( enum vType ) col -> vtype ;\n vtype_valhi = ( enum vType ) ( col -> vtype & 0xFF00 ) ;\n if ( vtype_valhi ) {\n if ( vtype_valhi == VT_VECTOR ) {\n modifier = \"|VT_VECTOR\" ;\n }\n else if ( vtype_valhi == VT_ARRAY ) {\n modifier = \"|VT_ARRAY\" ;\n }\n else {\n modifier = \"|(Unknown, possibly error)\" ;\n }\n }\n type = vType_get_type ( vtype_val ) ;\n DISSECTOR_ASSERT ( type != NULL ) ;\n proto_tree_add_string_format_value ( tree , hf_mswsp_ctablecolumn_vtype , tvb , offset , 4 , type -> str , \"%s%s\" , type -> str , modifier ) ;\n offset += 4 ;\n used = tvb_get_guint8 ( tvb , offset ) ;\n col -> aggregateused = used ;\n proto_tree_add_uint ( tree , hf_mswsp_ctablecolumn_aggused , tvb , offset , 1 , used ) ;\n offset += 1 ;\n if ( used ) {\n col -> aggregatetype = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_string ( tree , hf_mswsp_ctablecolumn_aggtype , tvb , offset , 1 , val_to_str ( col -> aggregatetype , DBAGGTTYPE , \"(Unknown: 0x%x)\" ) ) ;\n offset += 1 ;\n }\n col -> valueused = tvb_get_guint8 ( tvb , offset ) ;\n used = col -> valueused ;\n proto_tree_add_uint ( tree , hf_mswsp_ctablecolumn_valused , tvb , offset , 1 , used ) ;\n offset += 1 ;\n if ( used ) {\n offset = parse_padding ( tvb , offset , 2 , pad_tree , \"padding_Value\" ) ;\n col -> valueoffset = tvb_get_letohs ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_ctablecolumn_valoffset , tvb , offset , 2 , col -> valueoffset ) ;\n offset += 2 ;\n col -> valuesize = tvb_get_letohs ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_ctablecolumn_valsize , tvb , offset , 2 , col -> valuesize ) ;\n offset += 2 ;\n }\n used = tvb_get_guint8 ( tvb , offset ) ;\n col -> statusused = used ;\n proto_tree_add_uint ( tree , hf_mswsp_ctablecolumn_statused , tvb , offset , 1 , used ) ;\n offset += 1 ;\n if ( used ) {\n offset = parse_padding ( tvb , offset , 2 , pad_tree , \"padding_Status\" ) ;\n col -> statusoffset = tvb_get_letohs ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_ctablecolumn_statoffset , tvb , offset , 2 , col -> statusoffset ) ;\n offset += 2 ;\n }\n used = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_ctablecolumn_lenused , tvb , offset , 1 , used ) ;\n col -> lengthused = used ;\n offset += 1 ;\n if ( used ) {\n offset = parse_padding ( tvb , offset , 2 , pad_tree , \"padding_Length\" ) ;\n col -> lengthoffset = tvb_get_letohs ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_ctablecolumn_lenoffset , tvb , offset , 2 , col -> lengthoffset ) ;\n offset += 2 ;\n }\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 15579, "target": 0, "func": "static int dissect_h225_SEQUENCE_OF_TransportAddress ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_SEQUENCE_OF_TransportAddress , SEQUENCE_OF_TransportAddress_sequence_of ) ;\n return offset ;\n }"}
{"idx": 15580, "target": 0, "func": "static int dissect_h245_INTEGER_1_65025 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 65025U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 15581, "target": 0, "func": "static void usbfs_decrease_memory_usage ( unsigned amount ) {\n atomic_sub ( amount , & usbfs_memory_usage ) ;\n }"}
{"idx": 15582, "target": 0, "func": "char get_rel_relkind ( Oid relid ) {\n HeapTuple tp ;\n tp = SearchSysCache1 ( RELOID , ObjectIdGetDatum ( relid ) ) ;\n if ( HeapTupleIsValid ( tp ) ) {\n Form_pg_class reltup = ( Form_pg_class ) GETSTRUCT ( tp ) ;\n char result ;\n result = reltup -> relkind ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }\n else return '\\0' ;\n }"}
{"idx": 15583, "target": 0, "func": "static void patch_call ( VAPICROMState * s , CPUX86State * env , target_ulong ip , uint32_t target ) {\n uint32_t offset ;\n offset = cpu_to_le32 ( target - ip - 5 ) ;\n patch_byte ( env , ip , 0xe8 ) ;\n cpu_memory_rw_debug ( env , ip + 1 , ( void * ) & offset , sizeof ( offset ) , 1 ) ;\n }"}
{"idx": 15584, "target": 0, "func": "TEST_F ( FullscreenControllerStateUnitTest , TransitionsForEachState ) {\n AddTab ( browser ( ) , GURL ( url : : kAboutBlankURL ) ) ;\n TestTransitionsForEachState ( ) ;\n }"}
{"idx": 15585, "target": 0, "func": "uint get_errcode_from_name ( const char * error_name , const char * error_end , st_error * e ) {\n DBUG_ENTER ( \"get_errcode_from_name\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"error_name: %s\" , error_name ) ) ;\n for ( ;\n e -> name ;\n e ++ ) {\n if ( ! strncmp ( error_name , e -> name , ( int ) ( error_end - error_name ) ) && ( uint ) strlen ( e -> name ) == ( uint ) ( error_end - error_name ) ) {\n DBUG_RETURN ( e -> code ) ;\n }\n }\n DBUG_RETURN ( 0 ) ;\n }"}
{"idx": 15586, "target": 0, "func": "static guint16 de_tp_rlc_sdu_counter_value ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset = offset ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_ue_received_rlc_sdu_counter_value , tvb , curr_offset , 4 , ENC_BIG_ENDIAN ) ;\n curr_offset += 4 ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 15587, "target": 0, "func": "static int tipc_nl_compat_dumpit ( struct tipc_nl_compat_cmd_dump * cmd , struct tipc_nl_compat_msg * msg ) {\n int err ;\n struct sk_buff * arg ;\n if ( msg -> req_type && ! TLV_CHECK_TYPE ( msg -> req , msg -> req_type ) ) return - EINVAL ;\n msg -> rep = tipc_tlv_alloc ( msg -> rep_size ) ;\n if ( ! msg -> rep ) return - ENOMEM ;\n if ( msg -> rep_type ) tipc_tlv_init ( msg -> rep , msg -> rep_type ) ;\n if ( cmd -> header ) ( * cmd -> header ) ( msg ) ;\n arg = nlmsg_new ( 0 , GFP_KERNEL ) ;\n if ( ! arg ) {\n kfree_skb ( msg -> rep ) ;\n return - ENOMEM ;\n }\n err = __tipc_nl_compat_dumpit ( cmd , msg , arg ) ;\n if ( err ) kfree_skb ( msg -> rep ) ;\n kfree_skb ( arg ) ;\n return err ;\n }"}
{"idx": 15588, "target": 0, "func": "static void ber_prompt ( packet_info * pinfo _U_ , gchar * result ) {\n g_snprintf ( result , MAX_DECODE_AS_PROMPT_LEN , \"Decode ASN.1 file as\" ) ;\n }"}
{"idx": 15589, "target": 0, "func": "static int dissect_h245_Restriction ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_Restriction , Restriction_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 15590, "target": 1, "func": "gcry_error_t gcry_mpi_print ( enum gcry_mpi_format format , unsigned char * buffer , size_t buflen , size_t * nwritten , struct gcry_mpi * a ) {\n unsigned int nbits = mpi_get_nbits ( a ) ;\n size_t len ;\n size_t dummy_nwritten ;\n int negative ;\n if ( ! nwritten ) nwritten = & dummy_nwritten ;\n if ( a -> sign && _gcry_mpi_cmp_ui ( a , 0 ) ) negative = 1 ;\n else negative = 0 ;\n len = buflen ;\n * nwritten = 0 ;\n if ( format == GCRYMPI_FMT_STD ) {\n unsigned char * tmp ;\n int extra = 0 ;\n unsigned int n ;\n if ( negative ) return gcry_error ( GPG_ERR_INTERNAL ) ;\n tmp = _gcry_mpi_get_buffer ( a , & n , NULL ) ;\n if ( ! tmp ) return gpg_error_from_syserror ( ) ;\n if ( n && ( * tmp & 0x80 ) ) {\n n ++ ;\n extra = 1 ;\n }\n if ( buffer && n > len ) {\n gcry_free ( tmp ) ;\n return gcry_error ( GPG_ERR_TOO_SHORT ) ;\n }\n if ( buffer ) {\n unsigned char * s = buffer ;\n if ( extra ) * s ++ = 0 ;\n memcpy ( s , tmp , n - extra ) ;\n }\n gcry_free ( tmp ) ;\n * nwritten = n ;\n return 0 ;\n }\n else if ( format == GCRYMPI_FMT_USG ) {\n unsigned int n = ( nbits + 7 ) / 8 ;\n if ( buffer && n > len ) return gcry_error ( GPG_ERR_TOO_SHORT ) ;\n if ( buffer ) {\n unsigned char * tmp ;\n tmp = _gcry_mpi_get_buffer ( a , & n , NULL ) ;\n if ( ! tmp ) return gpg_error_from_syserror ( ) ;\n memcpy ( buffer , tmp , n ) ;\n gcry_free ( tmp ) ;\n }\n * nwritten = n ;\n return 0 ;\n }\n else if ( format == GCRYMPI_FMT_PGP ) {\n unsigned int n = ( nbits + 7 ) / 8 ;\n if ( negative ) return gcry_error ( GPG_ERR_INV_ARG ) ;\n if ( buffer && n + 2 > len ) return gcry_error ( GPG_ERR_TOO_SHORT ) ;\n if ( buffer ) {\n unsigned char * tmp ;\n unsigned char * s = buffer ;\n s [ 0 ] = nbits >> 8 ;\n s [ 1 ] = nbits ;\n tmp = _gcry_mpi_get_buffer ( a , & n , NULL ) ;\n if ( ! tmp ) return gpg_error_from_syserror ( ) ;\n memcpy ( s + 2 , tmp , n ) ;\n gcry_free ( tmp ) ;\n }\n * nwritten = n + 2 ;\n return 0 ;\n }\n else if ( format == GCRYMPI_FMT_SSH ) {\n unsigned char * tmp ;\n int extra = 0 ;\n unsigned int n ;\n if ( negative ) return gcry_error ( GPG_ERR_INTERNAL ) ;\n tmp = _gcry_mpi_get_buffer ( a , & n , NULL ) ;\n if ( ! tmp ) return gpg_error_from_syserror ( ) ;\n if ( n && ( * tmp & 0x80 ) ) {\n n ++ ;\n extra = 1 ;\n }\n if ( buffer && n + 4 > len ) {\n gcry_free ( tmp ) ;\n return gcry_error ( GPG_ERR_TOO_SHORT ) ;\n }\n if ( buffer ) {\n unsigned char * s = buffer ;\n * s ++ = n >> 24 ;\n * s ++ = n >> 16 ;\n * s ++ = n >> 8 ;\n * s ++ = n ;\n if ( extra ) * s ++ = 0 ;\n memcpy ( s , tmp , n - extra ) ;\n }\n gcry_free ( tmp ) ;\n * nwritten = 4 + n ;\n return 0 ;\n }\n else if ( format == GCRYMPI_FMT_HEX ) {\n unsigned char * tmp ;\n int i ;\n int extra = 0 ;\n unsigned int n = 0 ;\n tmp = _gcry_mpi_get_buffer ( a , & n , NULL ) ;\n if ( ! tmp ) return gpg_error_from_syserror ( ) ;\n if ( ! n || ( * tmp & 0x80 ) ) extra = 2 ;\n if ( buffer && 2 * n + extra + negative + 1 > len ) {\n gcry_free ( tmp ) ;\n return gcry_error ( GPG_ERR_TOO_SHORT ) ;\n }\n if ( buffer ) {\n unsigned char * s = buffer ;\n if ( negative ) * s ++ = '-' ;\n if ( extra ) {\n * s ++ = '0' ;\n * s ++ = '0' ;\n }\n for ( i = 0 ;\n i < n ;\n i ++ ) {\n unsigned int c = tmp [ i ] ;\n * s ++ = ( c >> 4 ) < 10 ? '0' + ( c >> 4 ) : 'A' + ( c >> 4 ) - 10 ;\n c &= 15 ;\n * s ++ = c < 10 ? '0' + c : 'A' + c - 10 ;\n }\n * s ++ = 0 ;\n * nwritten = s - buffer ;\n }\n else {\n * nwritten = 2 * n + extra + negative + 1 ;\n }\n gcry_free ( tmp ) ;\n return 0 ;\n }\n else return gcry_error ( GPG_ERR_INV_ARG ) ;\n }"}
{"idx": 15591, "target": 0, "func": "static int SpoolssEndPagePrinter_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 15592, "target": 0, "func": "int ssl_set_client_hello_version ( SSL * s ) {\n int ver_min , ver_max , ret ;\n ret = ssl_get_client_min_max_version ( s , & ver_min , & ver_max ) ;\n if ( ret != 0 ) return ret ;\n s -> client_version = s -> version = ver_max ;\n return 0 ;\n }"}
{"idx": 15593, "target": 0, "func": "static void split_print ( u_char * text , size_t len , struct ip_addr * L3_src ) {\n int ret ;\n if ( GBL_OPTIONS -> regex && regexec ( GBL_OPTIONS -> regex , ( const char * ) text , 0 , NULL , 0 ) != 0 ) {\n return ;\n }\n SAFE_REALLOC ( dispbuf , hex_len ( len ) * sizeof ( u_char ) + 1 ) ;\n ret = GBL_FORMAT ( text , len , dispbuf ) ;\n dispbuf [ ret ] = 0 ;\n if ( ! ip_addr_cmp ( L3_src , & curr_conn -> L3_addr1 ) ) wdg_scroll_print ( wdg_c1 , EC_COLOR , \"%s\" , dispbuf ) ;\n else wdg_scroll_print ( wdg_c2 , EC_COLOR , \"%s\" , dispbuf ) ;\n }"}
{"idx": 15594, "target": 0, "func": "int mime_hdr_fields_count ( MIMEHdrImpl * mh ) {\n unsigned int index ;\n MIMEFieldBlockImpl * fblock ;\n MIMEField * field ;\n int count ;\n count = 0 ;\n for ( fblock = & ( mh -> m_first_fblock ) ;\n fblock != nullptr ;\n fblock = fblock -> m_next ) {\n for ( index = 0 ;\n index < fblock -> m_freetop ;\n index ++ ) {\n field = & ( fblock -> m_field_slots [ index ] ) ;\n if ( field -> is_live ( ) ) {\n ++ count ;\n }\n }\n }\n return count ;\n }"}
{"idx": 15595, "target": 1, "func": "static int decode_chunks ( AVCodecContext * avctx , AVFrame * picture , int * got_output , const uint8_t * buf , int buf_size ) {\n Mpeg1Context * s = avctx -> priv_data ;\n MpegEncContext * s2 = & s -> mpeg_enc_ctx ;\n const uint8_t * buf_ptr = buf ;\n const uint8_t * buf_end = buf + buf_size ;\n int ret , input_size ;\n int last_code = 0 ;\n for ( ;\n ;\n ) {\n uint32_t start_code = - 1 ;\n buf_ptr = avpriv_mpv_find_start_code ( buf_ptr , buf_end , & start_code ) ;\n if ( start_code > 0x1ff ) {\n if ( s2 -> pict_type != AV_PICTURE_TYPE_B || avctx -> skip_frame <= AVDISCARD_DEFAULT ) {\n if ( HAVE_THREADS && ( avctx -> active_thread_type & FF_THREAD_SLICE ) ) {\n int i ;\n avctx -> execute ( avctx , slice_decode_thread , & s2 -> thread_context [ 0 ] , NULL , s -> slice_count , sizeof ( void * ) ) ;\n for ( i = 0 ;\n i < s -> slice_count ;\n i ++ ) s2 -> er . error_count += s2 -> thread_context [ i ] -> er . error_count ;\n }\n if ( CONFIG_MPEG_VDPAU_DECODER && avctx -> codec -> capabilities & CODEC_CAP_HWACCEL_VDPAU ) ff_vdpau_mpeg_picture_complete ( s2 , buf , buf_size , s -> slice_count ) ;\n if ( slice_end ( avctx , picture ) ) {\n if ( s2 -> last_picture_ptr || s2 -> low_delay ) * got_output = 1 ;\n }\n }\n s2 -> pict_type = 0 ;\n return FFMAX ( 0 , buf_ptr - buf - s2 -> parse_context . last_index ) ;\n }\n input_size = buf_end - buf_ptr ;\n if ( avctx -> debug & FF_DEBUG_STARTCODE ) {\n av_log ( avctx , AV_LOG_DEBUG , \"%3X at %td left %d\\n\" , start_code , buf_ptr - buf , input_size ) ;\n }\n switch ( start_code ) {\n case SEQ_START_CODE : if ( last_code == 0 ) {\n mpeg1_decode_sequence ( avctx , buf_ptr , input_size ) ;\n s -> sync = 1 ;\n }\n else {\n av_log ( avctx , AV_LOG_ERROR , \"ignoring SEQ_START_CODE after %X\\n\" , last_code ) ;\n if ( avctx -> err_recognition & AV_EF_EXPLODE ) return AVERROR_INVALIDDATA ;\n }\n break ;\n case PICTURE_START_CODE : if ( HAVE_THREADS && ( avctx -> active_thread_type & FF_THREAD_SLICE ) && s -> slice_count ) {\n int i ;\n avctx -> execute ( avctx , slice_decode_thread , s2 -> thread_context , NULL , s -> slice_count , sizeof ( void * ) ) ;\n for ( i = 0 ;\n i < s -> slice_count ;\n i ++ ) s2 -> er . error_count += s2 -> thread_context [ i ] -> er . error_count ;\n s -> slice_count = 0 ;\n }\n if ( last_code == 0 || last_code == SLICE_MIN_START_CODE ) {\n ret = mpeg_decode_postinit ( avctx ) ;\n if ( ret < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"mpeg_decode_postinit() failure\\n\" ) ;\n return ret ;\n }\n if ( mpeg1_decode_picture ( avctx , buf_ptr , input_size ) < 0 ) s2 -> pict_type = 0 ;\n s2 -> first_slice = 1 ;\n last_code = PICTURE_START_CODE ;\n }\n else {\n av_log ( avctx , AV_LOG_ERROR , \"ignoring pic after %X\\n\" , last_code ) ;\n if ( avctx -> err_recognition & AV_EF_EXPLODE ) return AVERROR_INVALIDDATA ;\n }\n break ;\n case EXT_START_CODE : init_get_bits ( & s2 -> gb , buf_ptr , input_size * 8 ) ;\n switch ( get_bits ( & s2 -> gb , 4 ) ) {\n case 0x1 : if ( last_code == 0 ) {\n mpeg_decode_sequence_extension ( s ) ;\n }\n else {\n av_log ( avctx , AV_LOG_ERROR , \"ignoring seq ext after %X\\n\" , last_code ) ;\n if ( avctx -> err_recognition & AV_EF_EXPLODE ) return AVERROR_INVALIDDATA ;\n }\n break ;\n case 0x2 : mpeg_decode_sequence_display_extension ( s ) ;\n break ;\n case 0x3 : mpeg_decode_quant_matrix_extension ( s2 ) ;\n break ;\n case 0x7 : mpeg_decode_picture_display_extension ( s ) ;\n break ;\n case 0x8 : if ( last_code == PICTURE_START_CODE ) {\n mpeg_decode_picture_coding_extension ( s ) ;\n }\n else {\n av_log ( avctx , AV_LOG_ERROR , \"ignoring pic cod ext after %X\\n\" , last_code ) ;\n if ( avctx -> err_recognition & AV_EF_EXPLODE ) return AVERROR_INVALIDDATA ;\n }\n break ;\n }\n break ;\n case USER_START_CODE : mpeg_decode_user_data ( avctx , buf_ptr , input_size ) ;\n break ;\n case GOP_START_CODE : if ( last_code == 0 ) {\n s2 -> first_field = 0 ;\n mpeg_decode_gop ( avctx , buf_ptr , input_size ) ;\n s -> sync = 1 ;\n }\n else {\n av_log ( avctx , AV_LOG_ERROR , \"ignoring GOP_START_CODE after %X\\n\" , last_code ) ;\n if ( avctx -> err_recognition & AV_EF_EXPLODE ) return AVERROR_INVALIDDATA ;\n }\n break ;\n default : if ( start_code >= SLICE_MIN_START_CODE && start_code <= SLICE_MAX_START_CODE && last_code != 0 ) {\n const int field_pic = s2 -> picture_structure != PICT_FRAME ;\n int mb_y = ( start_code - SLICE_MIN_START_CODE ) << field_pic ;\n last_code = SLICE_MIN_START_CODE ;\n if ( s2 -> picture_structure == PICT_BOTTOM_FIELD ) mb_y ++ ;\n if ( mb_y >= s2 -> mb_height ) {\n av_log ( s2 -> avctx , AV_LOG_ERROR , \"slice below image (%d >= %d)\\n\" , mb_y , s2 -> mb_height ) ;\n return - 1 ;\n }\n if ( s2 -> last_picture_ptr == NULL ) {\n if ( s2 -> pict_type == AV_PICTURE_TYPE_B ) {\n if ( ! s -> closed_gop ) break ;\n }\n }\n if ( s2 -> pict_type == AV_PICTURE_TYPE_I ) s -> sync = 1 ;\n if ( s2 -> next_picture_ptr == NULL ) {\n if ( s2 -> pict_type == AV_PICTURE_TYPE_P && ! s -> sync ) break ;\n }\n if ( ( avctx -> skip_frame >= AVDISCARD_NONREF && s2 -> pict_type == AV_PICTURE_TYPE_B ) || ( avctx -> skip_frame >= AVDISCARD_NONKEY && s2 -> pict_type != AV_PICTURE_TYPE_I ) || avctx -> skip_frame >= AVDISCARD_ALL ) break ;\n if ( ! s -> mpeg_enc_ctx_allocated ) break ;\n if ( s2 -> codec_id == AV_CODEC_ID_MPEG2VIDEO ) {\n if ( mb_y < avctx -> skip_top || mb_y >= s2 -> mb_height - avctx -> skip_bottom ) break ;\n }\n if ( ! s2 -> pict_type ) {\n av_log ( avctx , AV_LOG_ERROR , \"Missing picture start code\\n\" ) ;\n if ( avctx -> err_recognition & AV_EF_EXPLODE ) return AVERROR_INVALIDDATA ;\n break ;\n }\n if ( s2 -> first_slice ) {\n s2 -> first_slice = 0 ;\n if ( mpeg_field_start ( s2 , buf , buf_size ) < 0 ) return - 1 ;\n }\n if ( ! s2 -> current_picture_ptr ) {\n av_log ( avctx , AV_LOG_ERROR , \"current_picture not initialized\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( avctx -> codec -> capabilities & CODEC_CAP_HWACCEL_VDPAU ) {\n s -> slice_count ++ ;\n break ;\n }\n if ( HAVE_THREADS && ( avctx -> active_thread_type & FF_THREAD_SLICE ) ) {\n int threshold = ( s2 -> mb_height * s -> slice_count + s2 -> slice_context_count / 2 ) / s2 -> slice_context_count ;\n if ( threshold <= mb_y ) {\n MpegEncContext * thread_context = s2 -> thread_context [ s -> slice_count ] ;\n thread_context -> start_mb_y = mb_y ;\n thread_context -> end_mb_y = s2 -> mb_height ;\n if ( s -> slice_count ) {\n s2 -> thread_context [ s -> slice_count - 1 ] -> end_mb_y = mb_y ;\n ret = ff_update_duplicate_context ( thread_context , s2 ) ;\n if ( ret < 0 ) return ret ;\n }\n init_get_bits ( & thread_context -> gb , buf_ptr , input_size * 8 ) ;\n s -> slice_count ++ ;\n }\n buf_ptr += 2 ;\n }\n else {\n ret = mpeg_decode_slice ( s2 , mb_y , & buf_ptr , input_size ) ;\n emms_c ( ) ;\n if ( ret < 0 ) {\n if ( avctx -> err_recognition & AV_EF_EXPLODE ) return ret ;\n if ( s2 -> resync_mb_x >= 0 && s2 -> resync_mb_y >= 0 ) ff_er_add_slice ( & s2 -> er , s2 -> resync_mb_x , s2 -> resync_mb_y , s2 -> mb_x , s2 -> mb_y , ER_AC_ERROR | ER_DC_ERROR | ER_MV_ERROR ) ;\n }\n else {\n ff_er_add_slice ( & s2 -> er , s2 -> resync_mb_x , s2 -> resync_mb_y , s2 -> mb_x - 1 , s2 -> mb_y , ER_AC_END | ER_DC_END | ER_MV_END ) ;\n }\n }\n }\n break ;\n }\n }\n }"}
{"idx": 15596, "target": 0, "func": "static guint16 de_bcc_call_ref ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n guint32 value ;\n curr_offset = offset ;\n value = tvb_get_ntohl ( tvb , curr_offset ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_bcc_call_ref , tvb , curr_offset , 4 , ENC_BIG_ENDIAN ) ;\n if ( value & 0x10 ) {\n proto_tree_add_item ( tree , hf_gsm_a_dtap_bcc_call_ref_has_priority , tvb , curr_offset , 4 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_bcc_call_priority , tvb , curr_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_bcc_spare_1 , tvb , curr_offset , 4 , ENC_NA ) ;\n }\n else {\n proto_tree_add_item ( tree , hf_gsm_a_dtap_bcc_call_ref_has_priority , tvb , curr_offset , 4 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_bcc_spare_4 , tvb , curr_offset , 4 , ENC_NA ) ;\n }\n curr_offset += 4 ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 15597, "target": 0, "func": "static xmlLinkPtr xmlListHigherSearch ( xmlListPtr l , void * data ) {\n xmlLinkPtr lk ;\n if ( l == NULL ) return ( NULL ) ;\n for ( lk = l -> sentinel -> prev ;\n lk != l -> sentinel && l -> linkCompare ( lk -> data , data ) > 0 ;\n lk = lk -> prev ) ;\n return lk ;\n }"}
{"idx": 15598, "target": 0, "func": "static void xhci_free_streams ( XHCIEPContext * epctx ) {\n assert ( epctx -> pstreams != NULL ) ;\n g_free ( epctx -> pstreams ) ;\n epctx -> pstreams = NULL ;\n epctx -> nr_pstreams = 0 ;\n }"}
{"idx": 15599, "target": 0, "func": "static int dissect_h245_T_h233EncryptionReceiveCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_h233EncryptionReceiveCapability , T_h233EncryptionReceiveCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 15600, "target": 0, "func": "void vp8_optimize_mby ( MACROBLOCK * x ) {\n int b ;\n int type ;\n int has_2nd_order ;\n ENTROPY_CONTEXT_PLANES t_above , t_left ;\n ENTROPY_CONTEXT * ta ;\n ENTROPY_CONTEXT * tl ;\n if ( ! x -> e_mbd . above_context ) return ;\n if ( ! x -> e_mbd . left_context ) return ;\n vpx_memcpy ( & t_above , x -> e_mbd . above_context , sizeof ( ENTROPY_CONTEXT_PLANES ) ) ;\n vpx_memcpy ( & t_left , x -> e_mbd . left_context , sizeof ( ENTROPY_CONTEXT_PLANES ) ) ;\n ta = ( ENTROPY_CONTEXT * ) & t_above ;\n tl = ( ENTROPY_CONTEXT * ) & t_left ;\n has_2nd_order = ( x -> e_mbd . mode_info_context -> mbmi . mode != B_PRED && x -> e_mbd . mode_info_context -> mbmi . mode != SPLITMV ) ;\n type = has_2nd_order ? PLANE_TYPE_Y_NO_DC : PLANE_TYPE_Y_WITH_DC ;\n for ( b = 0 ;\n b < 16 ;\n b ++ ) {\n optimize_b ( x , b , type , ta + vp8_block2above [ b ] , tl + vp8_block2left [ b ] ) ;\n }\n if ( has_2nd_order ) {\n b = 24 ;\n optimize_b ( x , b , PLANE_TYPE_Y2 , ta + vp8_block2above [ b ] , tl + vp8_block2left [ b ] ) ;\n check_reset_2nd_coeffs ( & x -> e_mbd , PLANE_TYPE_Y2 , ta + vp8_block2above [ b ] , tl + vp8_block2left [ b ] ) ;\n }\n }"}
{"idx": 15601, "target": 0, "func": "static int32_t u_printf_octal_handler ( const u_printf_stream_handler * handler , void * context , ULocaleBundle * formatBundle , const u_printf_spec_info * info , const ufmt_args * args ) {\n ( void ) formatBundle ;\n int64_t num = args [ 0 ] . int64Value ;\n UChar result [ UPRINTF_BUFFER_SIZE ] ;\n int32_t len = UPRINTF_BUFFER_SIZE ;\n if ( info -> fIsShort ) num &= UINT16_MAX ;\n else if ( ! info -> fIsLongLong ) num &= UINT32_MAX ;\n ufmt_64tou ( result , & len , num , 8 , FALSE , info -> fPrecision == - 1 && info -> fZero ? info -> fWidth : info -> fPrecision ) ;\n if ( info -> fAlt && result [ 0 ] != 0x0030 && len < UPRINTF_BUFFER_SIZE - 1 ) {\n memmove ( result + 1 , result , len * sizeof ( UChar ) ) ;\n result [ 0 ] = 0x0030 ;\n len += 1 ;\n }\n return handler -> pad_and_justify ( context , info , result , len ) ;\n }"}
{"idx": 15602, "target": 0, "func": "static void pitch_sharpening ( AMRContext * p , int subframe , enum Mode mode , AMRFixed * fixed_sparse ) {\n if ( mode == MODE_12k2 ) p -> beta = FFMIN ( p -> pitch_gain [ 4 ] , 1.0 ) ;\n fixed_sparse -> pitch_lag = p -> pitch_lag_int ;\n fixed_sparse -> pitch_fac = p -> beta ;\n if ( mode != MODE_4k75 || subframe & 1 ) p -> beta = av_clipf ( p -> pitch_gain [ 4 ] , 0.0 , SHARP_MAX ) ;\n }"}
{"idx": 15603, "target": 0, "func": "static int asf_write_header1 ( AVFormatContext * s , int64_t file_size , int64_t data_chunk_size ) {\n ASFContext * asf = s -> priv_data ;\n AVIOContext * pb = s -> pb ;\n AVDictionaryEntry * tags [ 5 ] ;\n int header_size , n , extra_size , extra_size2 , wav_extra_size , file_time ;\n int has_title , has_aspect_ratio = 0 ;\n int metadata_count ;\n AVCodecContext * enc ;\n int64_t header_offset , cur_pos , hpos ;\n int bit_rate ;\n int64_t duration ;\n ff_metadata_conv ( & s -> metadata , ff_asf_metadata_conv , NULL ) ;\n tags [ 0 ] = av_dict_get ( s -> metadata , \"title\" , NULL , 0 ) ;\n tags [ 1 ] = av_dict_get ( s -> metadata , \"author\" , NULL , 0 ) ;\n tags [ 2 ] = av_dict_get ( s -> metadata , \"copyright\" , NULL , 0 ) ;\n tags [ 3 ] = av_dict_get ( s -> metadata , \"comment\" , NULL , 0 ) ;\n tags [ 4 ] = av_dict_get ( s -> metadata , \"rating\" , NULL , 0 ) ;\n duration = asf -> duration + PREROLL_TIME * 10000 ;\n has_title = tags [ 0 ] || tags [ 1 ] || tags [ 2 ] || tags [ 3 ] || tags [ 4 ] ;\n metadata_count = av_dict_count ( s -> metadata ) ;\n bit_rate = 0 ;\n for ( n = 0 ;\n n < s -> nb_streams ;\n n ++ ) {\n enc = s -> streams [ n ] -> codec ;\n avpriv_set_pts_info ( s -> streams [ n ] , 32 , 1 , 1000 ) ;\n bit_rate += enc -> bit_rate ;\n if ( enc -> codec_type == AVMEDIA_TYPE_VIDEO && enc -> sample_aspect_ratio . num > 0 && enc -> sample_aspect_ratio . den > 0 ) has_aspect_ratio ++ ;\n }\n if ( asf -> is_streamed ) {\n put_chunk ( s , 0x4824 , 0 , 0xc00 ) ;\n }\n ff_put_guid ( pb , & ff_asf_header ) ;\n avio_wl64 ( pb , - 1 ) ;\n avio_wl32 ( pb , 3 + has_title + ! ! metadata_count + s -> nb_streams ) ;\n avio_w8 ( pb , 1 ) ;\n avio_w8 ( pb , 2 ) ;\n header_offset = avio_tell ( pb ) ;\n hpos = put_header ( pb , & ff_asf_file_header ) ;\n ff_put_guid ( pb , & ff_asf_my_guid ) ;\n avio_wl64 ( pb , file_size ) ;\n file_time = 0 ;\n avio_wl64 ( pb , unix_to_file_time ( file_time ) ) ;\n avio_wl64 ( pb , asf -> nb_packets ) ;\n avio_wl64 ( pb , duration ) ;\n avio_wl64 ( pb , asf -> duration ) ;\n avio_wl64 ( pb , PREROLL_TIME ) ;\n avio_wl32 ( pb , ( asf -> is_streamed || ! pb -> seekable ) ? 3 : 2 ) ;\n avio_wl32 ( pb , s -> packet_size ) ;\n avio_wl32 ( pb , s -> packet_size ) ;\n avio_wl32 ( pb , bit_rate ? bit_rate : - 1 ) ;\n end_header ( pb , hpos ) ;\n hpos = put_header ( pb , & ff_asf_head1_guid ) ;\n ff_put_guid ( pb , & ff_asf_head2_guid ) ;\n avio_wl16 ( pb , 6 ) ;\n if ( has_aspect_ratio ) {\n int64_t hpos2 ;\n avio_wl32 ( pb , 26 + has_aspect_ratio * 84 ) ;\n hpos2 = put_header ( pb , & ff_asf_metadata_header ) ;\n avio_wl16 ( pb , 2 * has_aspect_ratio ) ;\n for ( n = 0 ;\n n < s -> nb_streams ;\n n ++ ) {\n enc = s -> streams [ n ] -> codec ;\n if ( enc -> codec_type == AVMEDIA_TYPE_VIDEO && enc -> sample_aspect_ratio . num > 0 && enc -> sample_aspect_ratio . den > 0 ) {\n AVRational sar = enc -> sample_aspect_ratio ;\n avio_wl16 ( pb , 0 ) ;\n avio_wl16 ( pb , n + 1 ) ;\n avio_wl16 ( pb , 26 ) ;\n avio_wl16 ( pb , 3 ) ;\n avio_wl32 ( pb , 4 ) ;\n avio_put_str16le ( pb , \"AspectRatioX\" ) ;\n avio_wl32 ( pb , sar . num ) ;\n avio_wl16 ( pb , 0 ) ;\n avio_wl16 ( pb , n + 1 ) ;\n avio_wl16 ( pb , 26 ) ;\n avio_wl16 ( pb , 3 ) ;\n avio_wl32 ( pb , 4 ) ;\n avio_put_str16le ( pb , \"AspectRatioY\" ) ;\n avio_wl32 ( pb , sar . den ) ;\n }\n }\n end_header ( pb , hpos2 ) ;\n }\n else {\n avio_wl32 ( pb , 0 ) ;\n }\n end_header ( pb , hpos ) ;\n if ( has_title ) {\n int len ;\n uint8_t * buf ;\n AVIOContext * dyn_buf ;\n if ( avio_open_dyn_buf ( & dyn_buf ) < 0 ) return AVERROR ( ENOMEM ) ;\n hpos = put_header ( pb , & ff_asf_comment_header ) ;\n for ( n = 0 ;\n n < FF_ARRAY_ELEMS ( tags ) ;\n n ++ ) {\n len = tags [ n ] ? avio_put_str16le ( dyn_buf , tags [ n ] -> value ) : 0 ;\n avio_wl16 ( pb , len ) ;\n }\n len = avio_close_dyn_buf ( dyn_buf , & buf ) ;\n avio_write ( pb , buf , len ) ;\n av_freep ( & buf ) ;\n end_header ( pb , hpos ) ;\n }\n if ( metadata_count ) {\n AVDictionaryEntry * tag = NULL ;\n hpos = put_header ( pb , & ff_asf_extended_content_header ) ;\n avio_wl16 ( pb , metadata_count ) ;\n while ( ( tag = av_dict_get ( s -> metadata , \"\" , tag , AV_DICT_IGNORE_SUFFIX ) ) ) {\n put_str16 ( pb , tag -> key ) ;\n avio_wl16 ( pb , 0 ) ;\n put_str16 ( pb , tag -> value ) ;\n }\n end_header ( pb , hpos ) ;\n }\n if ( ! asf -> is_streamed && s -> nb_chapters ) {\n int ret ;\n if ( ( ret = asf_write_markers ( s ) ) < 0 ) return ret ;\n }\n for ( n = 0 ;\n n < s -> nb_streams ;\n n ++ ) {\n int64_t es_pos ;\n enc = s -> streams [ n ] -> codec ;\n asf -> streams [ n ] . num = n + 1 ;\n asf -> streams [ n ] . seq = 1 ;\n switch ( enc -> codec_type ) {\n case AVMEDIA_TYPE_AUDIO : wav_extra_size = 0 ;\n extra_size = 18 + wav_extra_size ;\n extra_size2 = 8 ;\n break ;\n default : case AVMEDIA_TYPE_VIDEO : wav_extra_size = enc -> extradata_size ;\n extra_size = 0x33 + wav_extra_size ;\n extra_size2 = 0 ;\n break ;\n }\n hpos = put_header ( pb , & ff_asf_stream_header ) ;\n if ( enc -> codec_type == AVMEDIA_TYPE_AUDIO ) {\n ff_put_guid ( pb , & ff_asf_audio_stream ) ;\n ff_put_guid ( pb , & ff_asf_audio_conceal_spread ) ;\n }\n else {\n ff_put_guid ( pb , & ff_asf_video_stream ) ;\n ff_put_guid ( pb , & ff_asf_video_conceal_none ) ;\n }\n avio_wl64 ( pb , 0 ) ;\n es_pos = avio_tell ( pb ) ;\n avio_wl32 ( pb , extra_size ) ;\n avio_wl32 ( pb , extra_size2 ) ;\n avio_wl16 ( pb , n + 1 ) ;\n avio_wl32 ( pb , 0 ) ;\n if ( enc -> codec_type == AVMEDIA_TYPE_AUDIO ) {\n int wavsize = ff_put_wav_header ( pb , enc , FF_PUT_WAV_HEADER_FORCE_WAVEFORMATEX ) ;\n if ( wavsize < 0 ) return - 1 ;\n if ( wavsize != extra_size ) {\n cur_pos = avio_tell ( pb ) ;\n avio_seek ( pb , es_pos , SEEK_SET ) ;\n avio_wl32 ( pb , wavsize ) ;\n avio_seek ( pb , cur_pos , SEEK_SET ) ;\n }\n avio_w8 ( pb , 0x01 ) ;\n if ( enc -> codec_id == AV_CODEC_ID_ADPCM_G726 || ! enc -> block_align ) {\n avio_wl16 ( pb , 0x0190 ) ;\n avio_wl16 ( pb , 0x0190 ) ;\n }\n else {\n avio_wl16 ( pb , enc -> block_align ) ;\n avio_wl16 ( pb , enc -> block_align ) ;\n }\n avio_wl16 ( pb , 0x01 ) ;\n avio_w8 ( pb , 0x00 ) ;\n }\n else {\n avio_wl32 ( pb , enc -> width ) ;\n avio_wl32 ( pb , enc -> height ) ;\n avio_w8 ( pb , 2 ) ;\n avio_wl16 ( pb , 40 + enc -> extradata_size ) ;\n ff_put_bmp_header ( pb , enc , ff_codec_bmp_tags , 1 , 0 ) ;\n }\n end_header ( pb , hpos ) ;\n }\n hpos = put_header ( pb , & ff_asf_codec_comment_header ) ;\n ff_put_guid ( pb , & ff_asf_codec_comment1_header ) ;\n avio_wl32 ( pb , s -> nb_streams ) ;\n for ( n = 0 ;\n n < s -> nb_streams ;\n n ++ ) {\n const AVCodecDescriptor * codec_desc ;\n const char * desc ;\n enc = s -> streams [ n ] -> codec ;\n codec_desc = avcodec_descriptor_get ( enc -> codec_id ) ;\n if ( enc -> codec_type == AVMEDIA_TYPE_AUDIO ) avio_wl16 ( pb , 2 ) ;\n else if ( enc -> codec_type == AVMEDIA_TYPE_VIDEO ) avio_wl16 ( pb , 1 ) ;\n else avio_wl16 ( pb , - 1 ) ;\n if ( enc -> codec_id == AV_CODEC_ID_WMAV2 ) desc = \"Windows Media Audio V8\" ;\n else desc = codec_desc ? codec_desc -> name : NULL ;\n if ( desc ) {\n AVIOContext * dyn_buf ;\n uint8_t * buf ;\n int len ;\n if ( avio_open_dyn_buf ( & dyn_buf ) < 0 ) return AVERROR ( ENOMEM ) ;\n avio_put_str16le ( dyn_buf , desc ) ;\n len = avio_close_dyn_buf ( dyn_buf , & buf ) ;\n avio_wl16 ( pb , len / 2 ) ;\n avio_write ( pb , buf , len ) ;\n av_freep ( & buf ) ;\n }\n else avio_wl16 ( pb , 0 ) ;\n avio_wl16 ( pb , 0 ) ;\n if ( enc -> codec_type == AVMEDIA_TYPE_AUDIO ) {\n avio_wl16 ( pb , 2 ) ;\n avio_wl16 ( pb , enc -> codec_tag ) ;\n }\n else {\n avio_wl16 ( pb , 4 ) ;\n avio_wl32 ( pb , enc -> codec_tag ) ;\n }\n if ( ! enc -> codec_tag ) return - 1 ;\n }\n end_header ( pb , hpos ) ;\n cur_pos = avio_tell ( pb ) ;\n header_size = cur_pos - header_offset ;\n if ( asf -> is_streamed ) {\n header_size += 8 + 30 + DATA_HEADER_SIZE ;\n avio_seek ( pb , header_offset - 10 - 30 , SEEK_SET ) ;\n avio_wl16 ( pb , header_size ) ;\n avio_seek ( pb , header_offset - 2 - 30 , SEEK_SET ) ;\n avio_wl16 ( pb , header_size ) ;\n header_size -= 8 + 30 + DATA_HEADER_SIZE ;\n }\n header_size += 24 + 6 ;\n avio_seek ( pb , header_offset - 14 , SEEK_SET ) ;\n avio_wl64 ( pb , header_size ) ;\n avio_seek ( pb , cur_pos , SEEK_SET ) ;\n asf -> data_offset = cur_pos ;\n ff_put_guid ( pb , & ff_asf_data_header ) ;\n avio_wl64 ( pb , data_chunk_size ) ;\n ff_put_guid ( pb , & ff_asf_my_guid ) ;\n avio_wl64 ( pb , asf -> nb_packets ) ;\n avio_w8 ( pb , 1 ) ;\n avio_w8 ( pb , 1 ) ;\n return 0 ;\n }"}
{"idx": 15604, "target": 0, "func": "void traverse_bitmap_commit_list ( show_reachable_fn show_reachable ) {\n assert ( bitmap_git . result ) ;\n show_objects_for_type ( bitmap_git . result , bitmap_git . commits , OBJ_COMMIT , show_reachable ) ;\n show_objects_for_type ( bitmap_git . result , bitmap_git . trees , OBJ_TREE , show_reachable ) ;\n show_objects_for_type ( bitmap_git . result , bitmap_git . blobs , OBJ_BLOB , show_reachable ) ;\n show_objects_for_type ( bitmap_git . result , bitmap_git . tags , OBJ_TAG , show_reachable ) ;\n show_extended_objects ( bitmap_git . result , show_reachable ) ;\n bitmap_free ( bitmap_git . result ) ;\n bitmap_git . result = NULL ;\n }"}
{"idx": 15605, "target": 0, "func": "static void spl_filesystem_object_free_storage ( void * object TSRMLS_DC ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) object ;\n if ( intern -> oth_handler && intern -> oth_handler -> dtor ) {\n intern -> oth_handler -> dtor ( intern TSRMLS_CC ) ;\n }\n zend_object_std_dtor ( & intern -> std TSRMLS_CC ) ;\n if ( intern -> _path ) {\n efree ( intern -> _path ) ;\n }\n if ( intern -> file_name ) {\n efree ( intern -> file_name ) ;\n }\n switch ( intern -> type ) {\n case SPL_FS_INFO : break ;\n case SPL_FS_DIR : if ( intern -> u . dir . dirp ) {\n php_stream_close ( intern -> u . dir . dirp ) ;\n intern -> u . dir . dirp = NULL ;\n }\n if ( intern -> u . dir . sub_path ) {\n efree ( intern -> u . dir . sub_path ) ;\n }\n break ;\n case SPL_FS_FILE : if ( intern -> u . file . stream ) {\n if ( intern -> u . file . zcontext ) {\n }\n if ( ! intern -> u . file . stream -> is_persistent ) {\n php_stream_free ( intern -> u . file . stream , PHP_STREAM_FREE_CLOSE ) ;\n }\n else {\n php_stream_free ( intern -> u . file . stream , PHP_STREAM_FREE_CLOSE_PERSISTENT ) ;\n }\n if ( intern -> u . file . open_mode ) {\n efree ( intern -> u . file . open_mode ) ;\n }\n if ( intern -> orig_path ) {\n efree ( intern -> orig_path ) ;\n }\n }\n spl_filesystem_file_free_line ( intern TSRMLS_CC ) ;\n break ;\n }\n {\n zend_object_iterator * iterator ;\n iterator = ( zend_object_iterator * ) spl_filesystem_object_to_iterator ( intern ) ;\n if ( iterator -> data != NULL ) {\n iterator -> data = NULL ;\n iterator -> funcs -> dtor ( iterator TSRMLS_CC ) ;\n }\n }\n efree ( object ) ;\n }"}
{"idx": 15606, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( HttpsEngagementPageLoadMetricsBrowserTest , ClosedWhileHidden_Https ) {\n StartHttpsServer ( false ) ;\n base : : TimeDelta upper_bound = NavigateInForegroundAndCloseInBackgroundWithTiming ( https_test_server_ -> GetURL ( \"/simple.html\" ) ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpEngagementHistogram , 0 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementHistogram , 1 ) ;\n int32_t bucket_min = histogram_tester_ . GetAllSamples ( internal : : kHttpsEngagementHistogram ) [ 0 ] . min ;\n EXPECT_GE ( upper_bound . InMilliseconds ( ) , bucket_min ) ;\n EXPECT_LT ( 0 , bucket_min ) ;\n }"}
{"idx": 15607, "target": 0, "func": "static int dissect_CPMDisconnect ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree _U_ , gboolean in _U_ , void * data _U_ ) {\n col_append_str ( pinfo -> cinfo , COL_INFO , \"Disconnect\" ) ;\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 15608, "target": 0, "func": "static int dissect_h225_T_messageContent ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_T_messageContent , T_messageContent_sequence_of ) ;\n return offset ;\n }"}
{"idx": 15609, "target": 0, "func": "static void mime_list_callback ( GObject * source_object , GAsyncResult * res , gpointer user_data ) {\n MimeListState * state ;\n NautilusDirectory * directory ;\n GError * error ;\n GList * files , * l ;\n GFileInfo * info ;\n state = user_data ;\n directory = state -> directory ;\n if ( g_cancellable_is_cancelled ( state -> cancellable ) ) {\n directory -> details -> mime_list_in_progress = NULL ;\n async_job_end ( directory , \"MIME list\" ) ;\n nautilus_directory_async_state_changed ( directory ) ;\n mime_list_state_free ( state ) ;\n return ;\n }\n g_assert ( directory -> details -> mime_list_in_progress != NULL ) ;\n g_assert ( directory -> details -> mime_list_in_progress == state ) ;\n error = NULL ;\n files = g_file_enumerator_next_files_finish ( state -> enumerator , res , & error ) ;\n for ( l = files ;\n l != NULL ;\n l = l -> next ) {\n info = l -> data ;\n mime_list_one ( state , info ) ;\n g_object_unref ( info ) ;\n }\n if ( files == NULL ) {\n mime_list_done ( state , error != NULL ) ;\n mime_list_state_free ( state ) ;\n }\n else {\n g_file_enumerator_next_files_async ( state -> enumerator , DIRECTORY_LOAD_ITEMS_PER_CALLBACK , G_PRIORITY_DEFAULT , state -> cancellable , mime_list_callback , state ) ;\n }\n g_list_free ( files ) ;\n if ( error ) {\n g_error_free ( error ) ;\n }\n }"}
{"idx": 15610, "target": 0, "func": "void qemu_mutex_lock_iothread ( void ) {\n if ( ! tcg_enabled ( ) ) {\n qemu_mutex_lock ( & qemu_global_mutex ) ;\n }\n else {\n iothread_requesting_mutex = true ;\n if ( qemu_mutex_trylock ( & qemu_global_mutex ) ) {\n qemu_cpu_kick_thread ( ENV_GET_CPU ( first_cpu ) ) ;\n qemu_mutex_lock ( & qemu_global_mutex ) ;\n }\n iothread_requesting_mutex = false ;\n qemu_cond_broadcast ( & qemu_io_proceeded_cond ) ;\n }\n }"}
{"idx": 15611, "target": 0, "func": "void do_sync_with_master2 ( struct st_command * command , long offset ) {\n MYSQL_RES * res ;\n MYSQL_ROW row ;\n MYSQL * mysql = cur_con -> mysql ;\n char query_buf [ FN_REFLEN + 128 ] ;\n int timeout = 300 ;\n if ( ! master_pos . file [ 0 ] ) die ( \"Calling 'sync_with_master' without calling 'save_master_pos'\" ) ;\n sprintf ( query_buf , \"select master_pos_wait('%s', %ld, %d)\" , master_pos . file , master_pos . pos + offset , timeout ) ;\n if ( mysql_query ( mysql , query_buf ) ) die ( \"failed in '%s': %d: %s\" , query_buf , mysql_errno ( mysql ) , mysql_error ( mysql ) ) ;\n if ( ! ( res = mysql_store_result ( mysql ) ) ) die ( \"mysql_store_result() returned NULL for '%s'\" , query_buf ) ;\n if ( ! ( row = mysql_fetch_row ( res ) ) ) {\n mysql_free_result ( res ) ;\n die ( \"empty result in %s\" , query_buf ) ;\n }\n int result = - 99 ;\n const char * result_str = row [ 0 ] ;\n if ( result_str ) result = atoi ( result_str ) ;\n mysql_free_result ( res ) ;\n if ( ! result_str || result < 0 ) {\n show_query ( mysql , \"SHOW MASTER STATUS\" ) ;\n show_query ( mysql , \"SHOW SLAVE STATUS\" ) ;\n show_query ( mysql , \"SHOW PROCESSLIST\" ) ;\n fprintf ( stderr , \"analyze: sync_with_master\\n\" ) ;\n if ( ! result_str ) {\n die ( \"%.*s failed: '%s' returned NULL \" \"indicating slave SQL thread failure\" , command -> first_word_len , command -> query , query_buf ) ;\n }\n if ( result == - 1 ) die ( \"%.*s failed: '%s' returned -1 \" \"indicating timeout after %d seconds\" , command -> first_word_len , command -> query , query_buf , timeout ) ;\n else die ( \"%.*s failed: '%s' returned unknown result :%d\" , command -> first_word_len , command -> query , query_buf , result ) ;\n }\n return ;\n }"}
{"idx": 15612, "target": 0, "func": "int xmlThrDefParserDebugEntities ( int v ) {\n int ret ;\n xmlMutexLock ( xmlThrDefMutex ) ;\n ret = xmlParserDebugEntitiesThrDef ;\n xmlParserDebugEntitiesThrDef = v ;\n xmlMutexUnlock ( xmlThrDefMutex ) ;\n return ret ;\n }"}
{"idx": 15613, "target": 0, "func": "int xmlrpc_set_options ( int type , const char * value ) {\n if ( type == XMLRPC_HTTP_HEADER ) {\n if ( ! stricmp ( value , XMLRPC_ON ) ) {\n xmlrpc . httpheader = 1 ;\n }\n if ( ! stricmp ( value , XMLRPC_OFF ) ) {\n xmlrpc . httpheader = 0 ;\n }\n }\n if ( type == XMLRPC_ENCODE ) {\n if ( value ) {\n xmlrpc . encode = sstrdup ( value ) ;\n }\n }\n if ( type == XMLRPC_INTTAG ) {\n if ( ! stricmp ( value , XMLRPC_I4 ) ) {\n xmlrpc . inttagstart = sstrdup ( \"<i4>\" ) ;\n xmlrpc . inttagend = sstrdup ( \"</i4>\" ) ;\n }\n if ( ! stricmp ( value , XMLRPC_INT ) ) {\n xmlrpc . inttagstart = sstrdup ( \"<int>\" ) ;\n xmlrpc . inttagend = sstrdup ( \"</int>\" ) ;\n }\n }\n return 1 ;\n }"}
{"idx": 15614, "target": 0, "func": "static inline ssize_t GetPixelChannelOffset ( const Image * restrict image , const PixelChannel channel ) {\n return ( image -> channel_map [ channel ] . offset ) ;\n }"}
{"idx": 15615, "target": 0, "func": "static void dissect_zcl_groups_add_remove_group_response ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_groups_status , tvb , * offset , 1 , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_groups_group_id , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n }"}
{"idx": 15616, "target": 0, "func": "void revert_properties ( ) {\n if ( ! once_property ) return ;\n for ( int i = 0 ;\n i < ( int ) P_MAX ;\n i ++ ) {\n property & pr = prop_list [ i ] ;\n if ( pr . set ) {\n * pr . var = pr . old ;\n pr . set = 0 ;\n var_set_int ( pr . env_name , ( pr . old != pr . reverse ) ) ;\n }\n }\n once_property = FALSE ;\n }"}
{"idx": 15617, "target": 0, "func": "static void update_rd_thresh_fact ( VP9_COMP * cpi , int bsize , int best_mode_index ) {\n if ( cpi -> sf . adaptive_rd_thresh > 0 ) {\n const int top_mode = bsize < BLOCK_8X8 ? MAX_REFS : MAX_MODES ;\n int mode ;\n for ( mode = 0 ;\n mode < top_mode ;\n ++ mode ) {\n int * const fact = & cpi -> rd . thresh_freq_fact [ bsize ] [ mode ] ;\n if ( mode == best_mode_index ) {\n * fact -= ( * fact >> 3 ) ;\n }\n else {\n * fact = MIN ( * fact + RD_THRESH_INC , cpi -> sf . adaptive_rd_thresh * RD_THRESH_MAX_FACT ) ;\n }\n }\n }\n }"}
{"idx": 15618, "target": 0, "func": "void TSCacheHttpInfoSizeSet ( TSCacheHttpInfo infop , int64_t size ) {\n CacheHTTPInfo * info = ( CacheHTTPInfo * ) infop ;\n info -> object_size_set ( size ) ;\n }"}
{"idx": 15619, "target": 0, "func": "static int dissect_nlm3_freeall ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n return dissect_nlm_freeall ( tvb , 0 , pinfo , tree , 3 ) ;\n }"}
{"idx": 15620, "target": 0, "func": "hb_shape_plan_t * hb_shape_plan_create ( hb_face_t * face , const hb_segment_properties_t * props , const hb_feature_t * user_features , unsigned int num_user_features , const char * const * shaper_list ) {\n DEBUG_MSG_FUNC ( SHAPE_PLAN , NULL , \"face=%p num_features=%d shaper_list=%p\" , face , num_user_features , shaper_list ) ;\n hb_shape_plan_t * shape_plan ;\n hb_feature_t * features = NULL ;\n if ( unlikely ( ! face ) ) face = hb_face_get_empty ( ) ;\n if ( unlikely ( ! props ) ) return hb_shape_plan_get_empty ( ) ;\n if ( num_user_features && ! ( features = ( hb_feature_t * ) malloc ( num_user_features * sizeof ( hb_feature_t ) ) ) ) return hb_shape_plan_get_empty ( ) ;\n if ( ! ( shape_plan = hb_object_create < hb_shape_plan_t > ( ) ) ) {\n free ( features ) ;\n return hb_shape_plan_get_empty ( ) ;\n }\n assert ( props -> direction != HB_DIRECTION_INVALID ) ;\n hb_face_make_immutable ( face ) ;\n shape_plan -> default_shaper_list = shaper_list == NULL ;\n shape_plan -> face_unsafe = face ;\n shape_plan -> props = * props ;\n shape_plan -> num_user_features = num_user_features ;\n shape_plan -> user_features = features ;\n if ( num_user_features ) memcpy ( features , user_features , num_user_features * sizeof ( hb_feature_t ) ) ;\n hb_shape_plan_plan ( shape_plan , user_features , num_user_features , shaper_list ) ;\n return shape_plan ;\n }"}
{"idx": 15621, "target": 0, "func": "static UHashtable * _uhash_create ( UHashFunction * keyHash , UKeyComparator * keyComp , UValueComparator * valueComp , int32_t primeIndex , UErrorCode * status ) {\n UHashtable * result ;\n if ( U_FAILURE ( * status ) ) return NULL ;\n result = ( UHashtable * ) uprv_malloc ( sizeof ( UHashtable ) ) ;\n if ( result == NULL ) {\n * status = U_MEMORY_ALLOCATION_ERROR ;\n return NULL ;\n }\n _uhash_init ( result , keyHash , keyComp , valueComp , primeIndex , status ) ;\n result -> allocated = TRUE ;\n if ( U_FAILURE ( * status ) ) {\n uprv_free ( result ) ;\n return NULL ;\n }\n return result ;\n }"}
{"idx": 15622, "target": 0, "func": "static const char * const * config_connection_next_line ( struct config_connection * conn ) {\n const char * line ;\n line = i_stream_next_line ( conn -> input ) ;\n if ( line == NULL ) return NULL ;\n return t_strsplit_tabescaped ( line ) ;\n }"}
{"idx": 15623, "target": 0, "func": "static int try_delta ( struct unpacked * trg , struct unpacked * src , unsigned max_depth , unsigned long * mem_usage ) {\n struct object_entry * trg_entry = trg -> entry ;\n struct object_entry * src_entry = src -> entry ;\n unsigned long trg_size , src_size , delta_size , sizediff , max_size , sz ;\n unsigned ref_depth ;\n enum object_type type ;\n void * delta_buf ;\n if ( trg_entry -> type != src_entry -> type ) return - 1 ;\n if ( reuse_delta && trg_entry -> in_pack && trg_entry -> in_pack == src_entry -> in_pack && ! src_entry -> preferred_base && trg_entry -> in_pack_type != OBJ_REF_DELTA && trg_entry -> in_pack_type != OBJ_OFS_DELTA ) return 0 ;\n if ( src -> depth >= max_depth ) return 0 ;\n trg_size = trg_entry -> size ;\n if ( ! trg_entry -> delta ) {\n max_size = trg_size / 2 - 20 ;\n ref_depth = 1 ;\n }\n else {\n max_size = trg_entry -> delta_size ;\n ref_depth = trg -> depth ;\n }\n max_size = ( uint64_t ) max_size * ( max_depth - src -> depth ) / ( max_depth - ref_depth + 1 ) ;\n if ( max_size == 0 ) return 0 ;\n src_size = src_entry -> size ;\n sizediff = src_size < trg_size ? trg_size - src_size : 0 ;\n if ( sizediff >= max_size ) return 0 ;\n if ( trg_size < src_size / 32 ) return 0 ;\n if ( ! trg -> data ) {\n read_lock ( ) ;\n trg -> data = read_sha1_file ( trg_entry -> idx . sha1 , & type , & sz ) ;\n read_unlock ( ) ;\n if ( ! trg -> data ) die ( \"object %s cannot be read\" , sha1_to_hex ( trg_entry -> idx . sha1 ) ) ;\n if ( sz != trg_size ) die ( \"object %s inconsistent object length (%lu vs %lu)\" , sha1_to_hex ( trg_entry -> idx . sha1 ) , sz , trg_size ) ;\n * mem_usage += sz ;\n }\n if ( ! src -> data ) {\n read_lock ( ) ;\n src -> data = read_sha1_file ( src_entry -> idx . sha1 , & type , & sz ) ;\n read_unlock ( ) ;\n if ( ! src -> data ) {\n if ( src_entry -> preferred_base ) {\n static int warned = 0 ;\n if ( ! warned ++ ) warning ( \"object %s cannot be read\" , sha1_to_hex ( src_entry -> idx . sha1 ) ) ;\n return 0 ;\n }\n die ( \"object %s cannot be read\" , sha1_to_hex ( src_entry -> idx . sha1 ) ) ;\n }\n if ( sz != src_size ) die ( \"object %s inconsistent object length (%lu vs %lu)\" , sha1_to_hex ( src_entry -> idx . sha1 ) , sz , src_size ) ;\n * mem_usage += sz ;\n }\n if ( ! src -> index ) {\n src -> index = create_delta_index ( src -> data , src_size ) ;\n if ( ! src -> index ) {\n static int warned = 0 ;\n if ( ! warned ++ ) warning ( \"suboptimal pack - out of memory\" ) ;\n return 0 ;\n }\n * mem_usage += sizeof_delta_index ( src -> index ) ;\n }\n delta_buf = create_delta ( src -> index , trg -> data , trg_size , & delta_size , max_size ) ;\n if ( ! delta_buf ) return 0 ;\n if ( trg_entry -> delta ) {\n if ( delta_size == trg_entry -> delta_size && src -> depth + 1 >= trg -> depth ) {\n free ( delta_buf ) ;\n return 0 ;\n }\n }\n free ( trg_entry -> delta_data ) ;\n cache_lock ( ) ;\n if ( trg_entry -> delta_data ) {\n delta_cache_size -= trg_entry -> delta_size ;\n trg_entry -> delta_data = NULL ;\n }\n if ( delta_cacheable ( src_size , trg_size , delta_size ) ) {\n delta_cache_size += delta_size ;\n cache_unlock ( ) ;\n trg_entry -> delta_data = xrealloc ( delta_buf , delta_size ) ;\n }\n else {\n cache_unlock ( ) ;\n free ( delta_buf ) ;\n }\n trg_entry -> delta = src_entry ;\n trg_entry -> delta_size = delta_size ;\n trg -> depth = src -> depth + 1 ;\n return 1 ;\n }"}
{"idx": 15624, "target": 1, "func": "static int xd3_selftest ( void ) {\n # define DO_TEST ( fn , flags , arg ) do {\n xd3_stream stream ;\n xd3_config config ;\n xd3_init_config ( & config , flags ) ;\n XPR ( NT \"testing \" # fn \"%s...\" , flags ? ( \" (\" # flags \")\" ) : \"\" ) ;\n if ( ( ret = xd3_config_stream ( & stream , & config ) == 0 ) && ( ret = test_ ## fn ( & stream , arg ) ) == 0 ) {\n XPR ( NTR \" success\\n\" ) ;\n }\n else {\n XPR ( NTR \" failed: %s: %s\\n\" , xd3_errstring ( & stream ) , xd3_mainerror ( ret ) ) ;\n }\n xd3_free_stream ( & stream ) ;\n if ( ret != 0 ) {\n goto failure ;\n }\n }\n while ( 0 ) int ret ;\n DO_TEST ( random_numbers , 0 , 0 ) ;\n DO_TEST ( decode_integer_end_of_input , 0 , 0 ) ;\n DO_TEST ( decode_integer_overflow , 0 , 0 ) ;\n DO_TEST ( encode_decode_uint32_t , 0 , 0 ) ;\n DO_TEST ( encode_decode_uint64_t , 0 , 0 ) ;\n DO_TEST ( usize_t_overflow , 0 , 0 ) ;\n DO_TEST ( forward_match , 0 , 0 ) ;\n DO_TEST ( address_cache , 0 , 0 ) ;\n IF_GENCODETBL ( DO_TEST ( address_cache , XD3_ALT_CODE_TABLE , 0 ) ) ;\n DO_TEST ( string_matching , 0 , 0 ) ;\n DO_TEST ( choose_instruction , 0 , 0 ) ;\n DO_TEST ( identical_behavior , 0 , 0 ) ;\n DO_TEST ( in_memory , 0 , 0 ) ;\n IF_GENCODETBL ( DO_TEST ( choose_instruction , XD3_ALT_CODE_TABLE , 0 ) ) ;\n IF_GENCODETBL ( DO_TEST ( encode_code_table , 0 , 0 ) ) ;\n DO_TEST ( iopt_flush_instructions , 0 , 0 ) ;\n DO_TEST ( source_cksum_offset , 0 , 0 ) ;\n DO_TEST ( decompress_single_bit_error , 0 , 3 ) ;\n DO_TEST ( decompress_single_bit_error , XD3_ADLER32 , 3 ) ;\n IF_LZMA ( DO_TEST ( decompress_single_bit_error , XD3_SEC_LZMA , 54 ) ) ;\n IF_FGK ( DO_TEST ( decompress_single_bit_error , XD3_SEC_FGK , 3 ) ) ;\n IF_DJW ( DO_TEST ( decompress_single_bit_error , XD3_SEC_DJW , 8 ) ) ;\n IF_GENCODETBL ( DO_TEST ( decompress_single_bit_error , XD3_ALT_CODE_TABLE , 224 ) ) ;\n # if SHELL_TESTS DO_TEST ( force_behavior , 0 , 0 ) ;\n DO_TEST ( stdout_behavior , 0 , 0 ) ;\n DO_TEST ( no_output , 0 , 0 ) ;\n DO_TEST ( command_line_arguments , 0 , 0 ) ;\n # if EXTERNAL_COMPRESSION DO_TEST ( source_decompression , 0 , 0 ) ;\n DO_TEST ( externally_compressed_io , 0 , 0 ) ;\n # endif DO_TEST ( recode_command , 0 , 0 ) ;\n # endif IF_LZMA ( DO_TEST ( secondary_lzma , 0 , 1 ) ) ;\n IF_DJW ( DO_TEST ( secondary_huff , 0 , DJW_MAX_GROUPS ) ) ;\n IF_FGK ( DO_TEST ( secondary_fgk , 0 , 1 ) ) ;\n DO_TEST ( compressed_stream_overflow , 0 , 0 ) ;\n IF_LZMA ( DO_TEST ( compressed_stream_overflow , XD3_SEC_LZMA , 0 ) ) ;\n failure : test_cleanup ( ) ;\n return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE ;\n # undef DO_TEST }"}
{"idx": 15625, "target": 0, "func": "static void print_sexp ( const char * prefix , gcry_sexp_t a ) {\n char * buf ;\n size_t size ;\n if ( prefix ) fputs ( prefix , stderr ) ;\n size = gcry_sexp_sprint ( a , GCRYSEXP_FMT_ADVANCED , NULL , 0 ) ;\n buf = gcry_xmalloc ( size ) ;\n gcry_sexp_sprint ( a , GCRYSEXP_FMT_ADVANCED , buf , size ) ;\n fprintf ( stderr , \"%.*s\" , ( int ) size , buf ) ;\n gcry_free ( buf ) ;\n }"}
{"idx": 15626, "target": 0, "func": "int event_loopexit ( const struct timeval * tv ) {\n return ( event_once ( - 1 , EV_TIMEOUT , event_loopexit_cb , current_base , tv ) ) ;\n }"}
{"idx": 15627, "target": 0, "func": "static void _reconnectToDB ( ArchiveHandle * AH , const char * dbname ) {\n if ( RestoringToDB ( AH ) ) ReconnectToServer ( AH , dbname , NULL ) ;\n else {\n if ( dbname ) {\n PQExpBufferData connectbuf ;\n initPQExpBuffer ( & connectbuf ) ;\n appendPsqlMetaConnect ( & connectbuf , dbname ) ;\n ahprintf ( AH , \"%s\\n\" , connectbuf . data ) ;\n termPQExpBuffer ( & connectbuf ) ;\n }\n else ahprintf ( AH , \"%s\\n\" , \"\\\\connect -\\n\" ) ;\n }\n if ( AH -> currUser ) free ( AH -> currUser ) ;\n AH -> currUser = NULL ;\n if ( AH -> currSchema ) free ( AH -> currSchema ) ;\n AH -> currSchema = NULL ;\n if ( AH -> currTablespace ) free ( AH -> currTablespace ) ;\n AH -> currTablespace = NULL ;\n AH -> currWithOids = - 1 ;\n _doSetFixedOutputState ( AH ) ;\n }"}
{"idx": 15628, "target": 0, "func": "static proto_item * proto_tree_add_node ( proto_tree * tree , field_info * fi ) {\n proto_node * pnode , * tnode , * sibling ;\n field_info * tfi ;\n int depth = 1 ;\n if ( tree -> first_child == NULL ) {\n for ( tnode = tree ;\n tnode != NULL ;\n tnode = tnode -> parent ) {\n depth ++ ;\n if ( G_UNLIKELY ( depth > MAX_TREE_LEVELS ) ) {\n THROW_MESSAGE ( DissectorError , wmem_strdup_printf ( wmem_packet_scope ( ) , \"Maximum tree depth %d exceeded for \\\"%s\\\" - \\\"%s\\\" (%s:%u)\" , MAX_TREE_LEVELS , fi -> hfinfo -> name , fi -> hfinfo -> abbrev , G_STRFUNC , __LINE__ ) ) ;\n }\n }\n }\n tnode = tree ;\n tfi = PNODE_FINFO ( tnode ) ;\n if ( tfi != NULL && ( tfi -> tree_type < 0 || tfi -> tree_type >= num_tree_types ) ) {\n REPORT_DISSECTOR_BUG ( wmem_strdup_printf ( wmem_packet_scope ( ) , \"\\\"%s\\\" - \\\"%s\\\" tfi->tree_type: %u invalid (%s:%u)\" , fi -> hfinfo -> name , fi -> hfinfo -> abbrev , tfi -> tree_type , __FILE__ , __LINE__ ) ) ;\n }\n pnode = wmem_new ( PNODE_POOL ( tree ) , proto_node ) ;\n PROTO_NODE_INIT ( pnode ) ;\n pnode -> parent = tnode ;\n PNODE_FINFO ( pnode ) = fi ;\n pnode -> tree_data = PTREE_DATA ( tree ) ;\n if ( tnode -> last_child != NULL ) {\n sibling = tnode -> last_child ;\n DISSECTOR_ASSERT ( sibling -> next == NULL ) ;\n sibling -> next = pnode ;\n }\n else tnode -> first_child = pnode ;\n tnode -> last_child = pnode ;\n tree_data_add_maybe_interesting_field ( pnode -> tree_data , fi ) ;\n return ( proto_item * ) pnode ;\n }"}
{"idx": 15629, "target": 0, "func": "static int dissect_h245_EncryptionMode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_EncryptionMode , EncryptionMode_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 15630, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , DISABLED_BadXhtml ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/page_load_metrics/badxml.xhtml\" ) ) ;\n NavigateToUntrackedUrl ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramFirstLayout , 0 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramFirstPaint , 0 ) ;\n histogram_tester_ . ExpectBucketCount ( page_load_metrics : : internal : : kErrorEvents , page_load_metrics : : ERR_BAD_TIMING_IPC_INVALID_TIMING , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( page_load_metrics : : internal : : kPageLoadTimingStatus , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( page_load_metrics : : internal : : kPageLoadTimingStatus , page_load_metrics : : internal : : INVALID_ORDER_FIRST_LAYOUT_FIRST_PAINT , 1 ) ;\n }"}
{"idx": 15631, "target": 0, "func": "static int dissect_CPMRatioFinished ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * parent_tree , gboolean in , void * data _U_ ) {\n gint offset = 16 ;\n proto_item * item ;\n proto_tree * tree ;\n col_append_str ( pinfo -> cinfo , COL_INFO , \"RatioFinished\" ) ;\n item = proto_tree_add_item ( parent_tree , hf_mswsp_msg , tvb , offset , - 1 , ENC_NA ) ;\n tree = proto_item_add_subtree ( item , ett_mswsp_msg ) ;\n proto_item_set_text ( item , \"RationFinised%s\" , in ? \"In\" : \"Out\" ) ;\n if ( in ) {\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmratiofinished_hcursor , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmratiofinished_fquick , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n }\n else {\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmratiofinished_ulnumerator , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmratiofinished_uldenominator , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmratiofinished_crows , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmratiofinished_fnewrows , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n }\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 15632, "target": 0, "func": "static void gx_device_set_hwsize_from_media ( gx_device * dev ) {\n int rot = ( dev -> LeadingEdge & 1 ) ;\n double rot_media_x = rot ? dev -> MediaSize [ 1 ] : dev -> MediaSize [ 0 ] ;\n double rot_media_y = rot ? dev -> MediaSize [ 0 ] : dev -> MediaSize [ 1 ] ;\n dev -> width = ( int ) ( rot_media_x * dev -> HWResolution [ 0 ] / 72.0 + 0.5 ) ;\n dev -> height = ( int ) ( rot_media_y * dev -> HWResolution [ 1 ] / 72.0 + 0.5 ) ;\n }"}
{"idx": 15633, "target": 0, "func": "static const void * hb_graphite2_get_table ( const void * data , unsigned int tag , size_t * len ) {\n hb_graphite2_shaper_face_data_t * face_data = ( hb_graphite2_shaper_face_data_t * ) data ;\n hb_graphite2_tablelist_t * tlist = face_data -> tlist ;\n hb_blob_t * blob = NULL ;\n for ( hb_graphite2_tablelist_t * p = tlist ;\n p ;\n p = p -> next ) if ( p -> tag == tag ) {\n blob = p -> blob ;\n break ;\n }\n if ( unlikely ( ! blob ) ) {\n blob = face_data -> face -> reference_table ( tag ) ;\n hb_graphite2_tablelist_t * p = ( hb_graphite2_tablelist_t * ) calloc ( 1 , sizeof ( hb_graphite2_tablelist_t ) ) ;\n if ( unlikely ( ! p ) ) {\n hb_blob_destroy ( blob ) ;\n return NULL ;\n }\n p -> blob = blob ;\n p -> tag = tag ;\n p -> next = face_data -> tlist ;\n face_data -> tlist = p ;\n }\n unsigned int tlen ;\n const char * d = hb_blob_get_data ( blob , & tlen ) ;\n * len = tlen ;\n return d ;\n }"}
{"idx": 15634, "target": 1, "func": "err_status_t srtp_unprotect ( srtp_ctx_t * ctx , void * srtp_hdr , int * pkt_octet_len ) {\n srtp_hdr_t * hdr = ( srtp_hdr_t * ) srtp_hdr ;\n uint32_t * enc_start ;\n uint32_t * auth_start ;\n unsigned int enc_octet_len = 0 ;\n uint8_t * auth_tag = NULL ;\n xtd_seq_num_t est ;\n int delta ;\n v128_t iv ;\n err_status_t status ;\n srtp_stream_ctx_t * stream ;\n uint8_t tmp_tag [ SRTP_MAX_TAG_LEN ] ;\n int tag_len , prefix_len ;\n debug_print ( mod_srtp , \"function srtp_unprotect\" , NULL ) ;\n status = srtp_validate_rtp_header ( srtp_hdr , pkt_octet_len ) ;\n if ( status ) return status ;\n if ( * pkt_octet_len < octets_in_rtp_header ) return err_status_bad_param ;\n stream = srtp_get_stream ( ctx , hdr -> ssrc ) ;\n if ( stream == NULL ) {\n if ( ctx -> stream_template != NULL ) {\n stream = ctx -> stream_template ;\n debug_print ( mod_srtp , \"using provisional stream (SSRC: 0x%08x)\" , hdr -> ssrc ) ;\n # ifdef NO_64BIT_MATH est = ( xtd_seq_num_t ) make64 ( 0 , ntohs ( hdr -> seq ) ) ;\n delta = low32 ( est ) ;\n # else est = ( xtd_seq_num_t ) ntohs ( hdr -> seq ) ;\n delta = ( int ) est ;\n # endif }\n else {\n return err_status_no_ctx ;\n }\n }\n else {\n delta = rdbx_estimate_index ( & stream -> rtp_rdbx , & est , ntohs ( hdr -> seq ) ) ;\n status = rdbx_check ( & stream -> rtp_rdbx , delta ) ;\n if ( status ) return status ;\n }\n # ifdef NO_64BIT_MATH debug_print2 ( mod_srtp , \"estimated u_packet index: %08x%08x\" , high32 ( est ) , low32 ( est ) ) ;\n # else debug_print ( mod_srtp , \"estimated u_packet index: %016llx\" , est ) ;\n # endif if ( stream -> rtp_cipher -> algorithm == AES_128_GCM || stream -> rtp_cipher -> algorithm == AES_256_GCM ) {\n return srtp_unprotect_aead ( ctx , stream , delta , est , srtp_hdr , ( unsigned int * ) pkt_octet_len ) ;\n }\n tag_len = auth_get_tag_length ( stream -> rtp_auth ) ;\n if ( stream -> rtp_cipher -> type -> id == AES_ICM || stream -> rtp_cipher -> type -> id == AES_256_ICM ) {\n iv . v32 [ 0 ] = 0 ;\n iv . v32 [ 1 ] = hdr -> ssrc ;\n # ifdef NO_64BIT_MATH iv . v64 [ 1 ] = be64_to_cpu ( make64 ( ( high32 ( est ) << 16 ) | ( low32 ( est ) >> 16 ) , low32 ( est ) << 16 ) ) ;\n # else iv . v64 [ 1 ] = be64_to_cpu ( est << 16 ) ;\n # endif status = cipher_set_iv ( stream -> rtp_cipher , & iv , direction_decrypt ) ;\n }\n else {\n # ifdef NO_64BIT_MATH iv . v32 [ 0 ] = 0 ;\n iv . v32 [ 1 ] = 0 ;\n # else iv . v64 [ 0 ] = 0 ;\n # endif iv . v64 [ 1 ] = be64_to_cpu ( est ) ;\n status = cipher_set_iv ( stream -> rtp_cipher , & iv , direction_decrypt ) ;\n }\n if ( status ) return err_status_cipher_fail ;\n # ifdef NO_64BIT_MATH est = be64_to_cpu ( make64 ( ( high32 ( est ) << 16 ) | ( low32 ( est ) >> 16 ) , low32 ( est ) << 16 ) ) ;\n # else est = be64_to_cpu ( est << 16 ) ;\n # endif if ( stream -> rtp_services & sec_serv_conf ) {\n enc_start = ( uint32_t * ) hdr + uint32s_in_rtp_header + hdr -> cc ;\n if ( hdr -> x == 1 ) {\n srtp_hdr_xtnd_t * xtn_hdr = ( srtp_hdr_xtnd_t * ) enc_start ;\n enc_start += ( ntohs ( xtn_hdr -> length ) + 1 ) ;\n }\n if ( ! ( ( uint8_t * ) enc_start < ( uint8_t * ) hdr + * pkt_octet_len ) ) return err_status_parse_err ;\n enc_octet_len = ( uint32_t ) ( * pkt_octet_len - tag_len - ( ( uint8_t * ) enc_start - ( uint8_t * ) hdr ) ) ;\n }\n else {\n enc_start = NULL ;\n }\n if ( stream -> rtp_services & sec_serv_auth ) {\n auth_start = ( uint32_t * ) hdr ;\n auth_tag = ( uint8_t * ) hdr + * pkt_octet_len - tag_len ;\n }\n else {\n auth_start = NULL ;\n auth_tag = NULL ;\n }\n if ( auth_start ) {\n if ( stream -> rtp_auth -> prefix_len != 0 ) {\n prefix_len = auth_get_prefix_length ( stream -> rtp_auth ) ;\n status = cipher_output ( stream -> rtp_cipher , tmp_tag , prefix_len ) ;\n debug_print ( mod_srtp , \"keystream prefix: %s\" , octet_string_hex_string ( tmp_tag , prefix_len ) ) ;\n if ( status ) return err_status_cipher_fail ;\n }\n status = auth_start ( stream -> rtp_auth ) ;\n if ( status ) return status ;\n status = auth_update ( stream -> rtp_auth , ( uint8_t * ) auth_start , * pkt_octet_len - tag_len ) ;\n status = auth_compute ( stream -> rtp_auth , ( uint8_t * ) & est , 4 , tmp_tag ) ;\n debug_print ( mod_srtp , \"computed auth tag: %s\" , octet_string_hex_string ( tmp_tag , tag_len ) ) ;\n debug_print ( mod_srtp , \"packet auth tag: %s\" , octet_string_hex_string ( auth_tag , tag_len ) ) ;\n if ( status ) return err_status_auth_fail ;\n if ( octet_string_is_eq ( tmp_tag , auth_tag , tag_len ) ) return err_status_auth_fail ;\n }\n switch ( key_limit_update ( stream -> limit ) ) {\n case key_event_normal : break ;\n case key_event_soft_limit : srtp_handle_event ( ctx , stream , event_key_soft_limit ) ;\n break ;\n case key_event_hard_limit : srtp_handle_event ( ctx , stream , event_key_hard_limit ) ;\n return err_status_key_expired ;\n default : break ;\n }\n if ( enc_start ) {\n status = cipher_decrypt ( stream -> rtp_cipher , ( uint8_t * ) enc_start , & enc_octet_len ) ;\n if ( status ) return err_status_cipher_fail ;\n }\n if ( stream -> direction != dir_srtp_receiver ) {\n if ( stream -> direction == dir_unknown ) {\n stream -> direction = dir_srtp_receiver ;\n }\n else {\n srtp_handle_event ( ctx , stream , event_ssrc_collision ) ;\n }\n }\n if ( stream == ctx -> stream_template ) {\n srtp_stream_ctx_t * new_stream ;\n status = srtp_stream_clone ( ctx -> stream_template , hdr -> ssrc , & new_stream ) ;\n if ( status ) return status ;\n new_stream -> next = ctx -> stream_list ;\n ctx -> stream_list = new_stream ;\n stream = new_stream ;\n }\n rdbx_add_index ( & stream -> rtp_rdbx , delta ) ;\n * pkt_octet_len -= tag_len ;\n return err_status_ok ;\n }"}
{"idx": 15635, "target": 0, "func": "static int zstopped ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n check_op ( 1 ) ;\n check_estack ( 5 ) ;\n push_mark_estack ( es_stopped , no_cleanup ) ;\n ++ esp ;\n make_false ( esp ) ;\n ++ esp ;\n make_int ( esp , 1 ) ;\n push_op_estack ( stopped_push ) ;\n push_op_estack ( zexec ) ;\n return o_push_estack ;\n }"}
{"idx": 15636, "target": 1, "func": "hb_bool_t hb_shape_plan_execute ( hb_shape_plan_t * shape_plan , hb_font_t * font , hb_buffer_t * buffer , const hb_feature_t * features , unsigned int num_features ) {\n DEBUG_MSG_FUNC ( SHAPE_PLAN , shape_plan , \"num_features=%d shaper_func=%p\" , num_features , shape_plan -> shaper_func ) ;\n if ( unlikely ( hb_object_is_inert ( shape_plan ) || hb_object_is_inert ( font ) || hb_object_is_inert ( buffer ) ) ) return false ;\n assert ( shape_plan -> face_unsafe == font -> face ) ;\n assert ( hb_segment_properties_equal ( & shape_plan -> props , & buffer -> props ) ) ;\n # define HB_SHAPER_EXECUTE ( shaper ) HB_STMT_START {\n return HB_SHAPER_DATA ( shaper , shape_plan ) && hb_ ## shaper ## _shaper_font_data_ensure ( font ) && _hb_ ## shaper ## _shape ( shape_plan , font , buffer , features , num_features ) ;\n }\n HB_STMT_END if ( 0 ) ;\n # define HB_SHAPER_IMPLEMENT ( shaper ) else if ( shape_plan -> shaper_func == _hb_ ## shaper ## _shape ) HB_SHAPER_EXECUTE ( shaper ) ;\n # include \"hb-shaper-list.hh\" # undef HB_SHAPER_IMPLEMENT # undef HB_SHAPER_EXECUTE return false ;\n }"}
{"idx": 15637, "target": 0, "func": "static void test_select_prepare ( ) {\n int rc ;\n MYSQL_STMT * stmt ;\n myheader ( \"test_select_prepare\" ) ;\n rc = mysql_autocommit ( mysql , TRUE ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_select\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_select(id int, name varchar(50))\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_select VALUES(10, 'venu')\" ) ;\n myquery ( rc ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT * FROM test_select\" ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( rc == 1 ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"DROP TABLE test_select\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_select(id tinyint, id1 int, \" \" id2 float, id3 float, \" \" name varchar(50))\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_select(id, id1, id2, name) VALUES(10, 5, 2.3, 'venu')\" ) ;\n myquery ( rc ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT * FROM test_select\" ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( rc == 1 ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 15638, "target": 0, "func": "static List * reorder_function_arguments ( List * args , HeapTuple func_tuple ) {\n Form_pg_proc funcform = ( Form_pg_proc ) GETSTRUCT ( func_tuple ) ;\n int pronargs = funcform -> pronargs ;\n int nargsprovided = list_length ( args ) ;\n Node * argarray [ FUNC_MAX_ARGS ] ;\n ListCell * lc ;\n int i ;\n Assert ( nargsprovided <= pronargs ) ;\n if ( pronargs > FUNC_MAX_ARGS ) elog ( ERROR , \"too many function arguments\" ) ;\n MemSet ( argarray , 0 , pronargs * sizeof ( Node * ) ) ;\n i = 0 ;\n foreach ( lc , args ) {\n Node * arg = ( Node * ) lfirst ( lc ) ;\n if ( ! IsA ( arg , NamedArgExpr ) ) {\n Assert ( argarray [ i ] == NULL ) ;\n argarray [ i ++ ] = arg ;\n }\n else {\n NamedArgExpr * na = ( NamedArgExpr * ) arg ;\n Assert ( argarray [ na -> argnumber ] == NULL ) ;\n argarray [ na -> argnumber ] = ( Node * ) na -> arg ;\n }\n }\n if ( nargsprovided < pronargs ) {\n List * defaults = fetch_function_defaults ( func_tuple ) ;\n i = pronargs - funcform -> pronargdefaults ;\n foreach ( lc , defaults ) {\n if ( argarray [ i ] == NULL ) argarray [ i ] = ( Node * ) lfirst ( lc ) ;\n i ++ ;\n }\n }\n args = NIL ;\n for ( i = 0 ;\n i < pronargs ;\n i ++ ) {\n Assert ( argarray [ i ] != NULL ) ;\n args = lappend ( args , argarray [ i ] ) ;\n }\n return args ;\n }"}
{"idx": 15639, "target": 0, "func": "static void Type_MPE_Free ( struct _cms_typehandler_struct * self , void * Ptr ) {\n cmsPipelineFree ( ( cmsPipeline * ) Ptr ) ;\n return ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 15640, "target": 1, "func": "static void test_evbuffer_find ( void ) {\n u_char * p ;\n const char * test1 = \"1234567890\\r\\n\" ;\n const char * test2 = \"1234567890\\r\" ;\n # define EVBUFFER_INITIAL_LENGTH 256 char test3 [ EVBUFFER_INITIAL_LENGTH ] ;\n unsigned int i ;\n struct evbuffer * buf = evbuffer_new ( ) ;\n fprintf ( stdout , \"Testing evbuffer_find 1: \" ) ;\n evbuffer_add ( buf , ( u_char * ) test1 , strlen ( test1 ) ) ;\n evbuffer_drain ( buf , strlen ( test1 ) ) ;\n evbuffer_add ( buf , ( u_char * ) test2 , strlen ( test2 ) ) ;\n p = evbuffer_find ( buf , ( u_char * ) \"\\r\\n\" , 2 ) ;\n if ( p == NULL ) {\n fprintf ( stdout , \"OK\\n\" ) ;\n }\n else {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n fprintf ( stdout , \"Testing evbuffer_find 2: \" ) ;\n evbuffer_drain ( buf , strlen ( test2 ) ) ;\n for ( i = 0 ;\n i < EVBUFFER_INITIAL_LENGTH ;\n ++ i ) test3 [ i ] = 'a' ;\n test3 [ EVBUFFER_INITIAL_LENGTH - 1 ] = 'x' ;\n evbuffer_add ( buf , ( u_char * ) test3 , EVBUFFER_INITIAL_LENGTH ) ;\n p = evbuffer_find ( buf , ( u_char * ) \"xy\" , 2 ) ;\n if ( p == NULL ) {\n printf ( \"OK\\n\" ) ;\n }\n else {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n fprintf ( stdout , \"Testing evbuffer_find 3: \" ) ;\n p = evbuffer_find ( buf , ( u_char * ) \"ax\" , 2 ) ;\n if ( p != NULL && strncmp ( ( char * ) p , \"ax\" , 2 ) == 0 ) {\n printf ( \"OK\\n\" ) ;\n }\n else {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n evbuffer_free ( buf ) ;\n }"}
{"idx": 15641, "target": 0, "func": "int net_slirp_parse_legacy ( QemuOptsList * opts_list , const char * optarg , int * ret ) {\n if ( strcmp ( opts_list -> name , \"net\" ) != 0 || strncmp ( optarg , \"channel,\" , strlen ( \"channel,\" ) ) != 0 ) {\n return 0 ;\n }\n optarg += strlen ( \"channel,\" ) ;\n if ( QTAILQ_EMPTY ( & slirp_stacks ) ) {\n struct slirp_config_str * config ;\n config = g_malloc ( sizeof ( * config ) ) ;\n pstrcpy ( config -> str , sizeof ( config -> str ) , optarg ) ;\n config -> flags = SLIRP_CFG_LEGACY ;\n config -> next = slirp_configs ;\n slirp_configs = config ;\n * ret = 0 ;\n }\n else {\n * ret = slirp_guestfwd ( QTAILQ_FIRST ( & slirp_stacks ) , optarg , 1 ) ;\n }\n return 1 ;\n }"}
{"idx": 15642, "target": 0, "func": "static void gx_ttfExport__LineTo ( ttfExport * self , FloatPoint * p ) {\n gx_ttfExport * e = ( gx_ttfExport * ) self ;\n if ( ! e -> error ) e -> error = gx_path_add_line_notes ( e -> path , float2fixed ( p -> x ) , float2fixed ( p -> y ) , sn_none ) ;\n }"}
{"idx": 15643, "target": 0, "func": "int main ( int argc , char * * argv ) {\n int ArgIndex ;\n int NumErrs = 0 ;\n char * Args [ MAXARGS ] ;\n int aindex = 0 ;\n int rc ;\n int pid ;\n char tmpJobID [ PBS_MAXCLTJOBID ] ;\n char JobID [ PBS_MAXCLTJOBID ] ;\n char ServerName [ MAXSERVERNAME ] ;\n int DoBackground = 0 ;\n tmpJobID [ 0 ] = '\\0' ;\n # define GETOPT_ARGS \"bj:\" while ( ( ArgIndex = getopt ( argc , argv , GETOPT_ARGS ) ) != EOF ) {\n switch ( ArgIndex ) {\n case 'b' : DoBackground = 1 ;\n break ;\n case 'j' : strncpy ( tmpJobID , optarg , sizeof ( tmpJobID ) ) ;\n if ( tmpJobID [ PBS_MAXCLTJOBID - 1 ] != '\\0' ) {\n fprintf ( stderr , \"pbs_track: given job ID too large (> %d)\\n\" , PBS_MAXCLTJOBID ) ;\n exit ( - 1 ) ;\n }\n break ;\n default : NumErrs ++ ;\n break ;\n }\n }\n if ( ( NumErrs > 0 ) || ( optind >= argc ) || ( tmpJobID [ 0 ] == '\\0' ) ) {\n static char Usage [ ] = \"USAGE: pbs_track [-j <JOBID>] [-b] -- a.out arg1 arg2 ... argN\\n\" ;\n fprintf ( stderr , \"%s\" , Usage ) ;\n exit ( 2 ) ;\n }\n if ( getenv ( NO_SERVER_SUFFIX ) != NULL ) {\n snprintf ( JobID , sizeof ( JobID ) , \"%s\" , tmpJobID ) ;\n }\n else {\n if ( get_server ( tmpJobID , JobID , sizeof ( JobID ) , ServerName , sizeof ( ServerName ) ) ) {\n fprintf ( stderr , \"pbs_track: illegally formed job identifier: '%s'\\n\" , JobID ) ;\n exit ( 1 ) ;\n }\n }\n aindex = 0 ;\n for ( ;\n optind < argc ;\n optind ++ ) {\n Args [ aindex ++ ] = strdup ( argv [ optind ] ) ;\n printf ( \"Got arg: %s\\n\" , Args [ aindex - 1 ] ) ;\n }\n Args [ aindex ] = NULL ;\n pid = 1 ;\n if ( DoBackground == 1 ) {\n printf ( \"FORKING!\\n\" ) ;\n pid = fork ( ) ;\n }\n if ( ( DoBackground == 0 ) || ( pid == 0 ) ) {\n rc = tm_adopt ( JobID , TM_ADOPT_JOBID , getpid ( ) ) ;\n switch ( rc ) {\n case TM_SUCCESS : break ;\n case TM_ENOTFOUND : fprintf ( stderr , \"pbs_track: MOM could not find job %s\\n\" , JobID ) ;\n break ;\n case TM_ESYSTEM : case TM_ENOTCONNECTED : fprintf ( stderr , \"pbs_track: error occurred while trying to communication with pbs_mom: %s (%d)\\n\" , pbse_to_txt ( rc ) , rc ) ;\n break ;\n case TM_EPERM : fprintf ( stderr , \"pbs_track: permission denied: %s (%d)\\n\" , pbse_to_txt ( rc ) , rc ) ;\n default : fprintf ( stderr , \"pbs_track: unexpected error %s (%d) occurred\\n\" , pbse_to_txt ( rc ) , rc ) ;\n break ;\n }\n if ( rc != TM_SUCCESS ) {\n exit ( - 1 ) ;\n }\n if ( execvp ( Args [ 0 ] , Args ) == - 1 ) {\n fprintf ( stderr , \"execvp failed with error %d, message:\\n%s\\n\" , errno , strerror ( errno ) ) ;\n }\n }\n else if ( pid > 0 ) {\n fclose ( stdin ) ;\n fclose ( stdout ) ;\n fclose ( stderr ) ;\n }\n else if ( pid < 0 ) {\n fprintf ( stderr , \"pbs_track: could not fork (%d:%s)\\n\" , errno , strerror ( errno ) ) ;\n }\n exit ( 0 ) ;\n }"}
{"idx": 15644, "target": 0, "func": "static void qbus_list_dev ( BusState * bus , char * dest , int len ) {\n DeviceState * dev ;\n const char * sep = \" \" ;\n int pos = 0 ;\n pos += snprintf ( dest + pos , len - pos , \"devices at \\\"%s\\\":\" , bus -> name ) ;\n QLIST_FOREACH ( dev , & bus -> children , sibling ) {\n pos += snprintf ( dest + pos , len - pos , \"%s\\\"%s\\\"\" , sep , dev -> info -> name ) ;\n if ( dev -> id ) pos += snprintf ( dest + pos , len - pos , \"/\\\"%s\\\"\" , dev -> id ) ;\n sep = \", \" ;\n }\n }"}
{"idx": 15645, "target": 1, "func": "static void nonrd_use_partition ( VP9_COMP * cpi , const TileInfo * const tile , MODE_INFO * * mi , TOKENEXTRA * * tp , int mi_row , int mi_col , BLOCK_SIZE bsize , int output_enabled , int * totrate , int64_t * totdist , PC_TREE * pc_tree ) {\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCK * const x = & cpi -> mb ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n const int bsl = b_width_log2 ( bsize ) , hbs = ( 1 << bsl ) / 4 ;\n const int mis = cm -> mi_stride ;\n PARTITION_TYPE partition ;\n BLOCK_SIZE subsize ;\n int rate = INT_MAX ;\n int64_t dist = INT64_MAX ;\n if ( mi_row >= cm -> mi_rows || mi_col >= cm -> mi_cols ) return ;\n subsize = ( bsize >= BLOCK_8X8 ) ? mi [ 0 ] -> mbmi . sb_type : BLOCK_4X4 ;\n partition = partition_lookup [ bsl ] [ subsize ] ;\n switch ( partition ) {\n case PARTITION_NONE : nonrd_pick_sb_modes ( cpi , tile , mi_row , mi_col , totrate , totdist , subsize , & pc_tree -> none ) ;\n pc_tree -> none . mic . mbmi = xd -> mi [ 0 ] -> mbmi ;\n pc_tree -> none . skip_txfm [ 0 ] = x -> skip_txfm [ 0 ] ;\n pc_tree -> none . skip = x -> skip ;\n break ;\n case PARTITION_VERT : nonrd_pick_sb_modes ( cpi , tile , mi_row , mi_col , totrate , totdist , subsize , & pc_tree -> vertical [ 0 ] ) ;\n pc_tree -> vertical [ 0 ] . mic . mbmi = xd -> mi [ 0 ] -> mbmi ;\n pc_tree -> vertical [ 0 ] . skip_txfm [ 0 ] = x -> skip_txfm [ 0 ] ;\n pc_tree -> vertical [ 0 ] . skip = x -> skip ;\n if ( mi_col + hbs < cm -> mi_cols ) {\n nonrd_pick_sb_modes ( cpi , tile , mi_row , mi_col + hbs , & rate , & dist , subsize , & pc_tree -> vertical [ 1 ] ) ;\n pc_tree -> vertical [ 1 ] . mic . mbmi = xd -> mi [ 0 ] -> mbmi ;\n pc_tree -> vertical [ 1 ] . skip_txfm [ 0 ] = x -> skip_txfm [ 0 ] ;\n pc_tree -> vertical [ 1 ] . skip = x -> skip ;\n if ( rate != INT_MAX && dist != INT64_MAX && * totrate != INT_MAX && * totdist != INT64_MAX ) {\n * totrate += rate ;\n * totdist += dist ;\n }\n }\n break ;\n case PARTITION_HORZ : nonrd_pick_sb_modes ( cpi , tile , mi_row , mi_col , totrate , totdist , subsize , & pc_tree -> horizontal [ 0 ] ) ;\n pc_tree -> horizontal [ 0 ] . mic . mbmi = xd -> mi [ 0 ] -> mbmi ;\n pc_tree -> horizontal [ 0 ] . skip_txfm [ 0 ] = x -> skip_txfm [ 0 ] ;\n pc_tree -> horizontal [ 0 ] . skip = x -> skip ;\n if ( mi_row + hbs < cm -> mi_rows ) {\n nonrd_pick_sb_modes ( cpi , tile , mi_row + hbs , mi_col , & rate , & dist , subsize , & pc_tree -> horizontal [ 0 ] ) ;\n pc_tree -> horizontal [ 1 ] . mic . mbmi = xd -> mi [ 0 ] -> mbmi ;\n pc_tree -> horizontal [ 1 ] . skip_txfm [ 0 ] = x -> skip_txfm [ 0 ] ;\n pc_tree -> horizontal [ 1 ] . skip = x -> skip ;\n if ( rate != INT_MAX && dist != INT64_MAX && * totrate != INT_MAX && * totdist != INT64_MAX ) {\n * totrate += rate ;\n * totdist += dist ;\n }\n }\n break ;\n case PARTITION_SPLIT : subsize = get_subsize ( bsize , PARTITION_SPLIT ) ;\n nonrd_use_partition ( cpi , tile , mi , tp , mi_row , mi_col , subsize , output_enabled , totrate , totdist , pc_tree -> split [ 0 ] ) ;\n nonrd_use_partition ( cpi , tile , mi + hbs , tp , mi_row , mi_col + hbs , subsize , output_enabled , & rate , & dist , pc_tree -> split [ 1 ] ) ;\n if ( rate != INT_MAX && dist != INT64_MAX && * totrate != INT_MAX && * totdist != INT64_MAX ) {\n * totrate += rate ;\n * totdist += dist ;\n }\n nonrd_use_partition ( cpi , tile , mi + hbs * mis , tp , mi_row + hbs , mi_col , subsize , output_enabled , & rate , & dist , pc_tree -> split [ 2 ] ) ;\n if ( rate != INT_MAX && dist != INT64_MAX && * totrate != INT_MAX && * totdist != INT64_MAX ) {\n * totrate += rate ;\n * totdist += dist ;\n }\n nonrd_use_partition ( cpi , tile , mi + hbs * mis + hbs , tp , mi_row + hbs , mi_col + hbs , subsize , output_enabled , & rate , & dist , pc_tree -> split [ 3 ] ) ;\n if ( rate != INT_MAX && dist != INT64_MAX && * totrate != INT_MAX && * totdist != INT64_MAX ) {\n * totrate += rate ;\n * totdist += dist ;\n }\n break ;\n default : assert ( \"Invalid partition type.\" ) ;\n break ;\n }\n if ( bsize == BLOCK_64X64 && output_enabled ) {\n if ( cpi -> oxcf . aq_mode == CYCLIC_REFRESH_AQ ) vp9_cyclic_refresh_set_rate_and_dist_sb ( cpi -> cyclic_refresh , * totrate , * totdist ) ;\n encode_sb_rt ( cpi , tile , tp , mi_row , mi_col , 1 , bsize , pc_tree ) ;\n }\n }"}
{"idx": 15646, "target": 0, "func": "int getulong ( const char * numstr , unsigned long int * result ) {\n unsigned long int val ;\n char * endptr ;\n errno = 0 ;\n val = strtoul ( numstr , & endptr , 0 ) ;\n if ( ( '\\0' == * numstr ) || ( '\\0' != * endptr ) || ( ERANGE == errno ) ) {\n return 0 ;\n }\n * result = val ;\n return 1 ;\n }"}
{"idx": 15647, "target": 0, "func": "static int h261_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n H261Context * h = avctx -> priv_data ;\n MpegEncContext * s = & h -> s ;\n int ret ;\n AVFrame * pict = data ;\n av_dlog ( avctx , \"*****frame %d size=%d\\n\" , avctx -> frame_number , buf_size ) ;\n av_dlog ( avctx , \"bytes=%x %x %x %x\\n\" , buf [ 0 ] , buf [ 1 ] , buf [ 2 ] , buf [ 3 ] ) ;\n s -> flags = avctx -> flags ;\n s -> flags2 = avctx -> flags2 ;\n h -> gob_start_code_skipped = 0 ;\n retry : init_get_bits ( & s -> gb , buf , buf_size * 8 ) ;\n if ( ! s -> context_initialized ) {\n if ( ff_MPV_common_init ( s ) < 0 ) return - 1 ;\n }\n if ( s -> current_picture_ptr == NULL || s -> current_picture_ptr -> f . data [ 0 ] ) {\n int i = ff_find_unused_picture ( s , 0 ) ;\n if ( i < 0 ) return i ;\n s -> current_picture_ptr = & s -> picture [ i ] ;\n }\n ret = h261_decode_picture_header ( h ) ;\n if ( ret < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"header damaged\\n\" ) ;\n return - 1 ;\n }\n if ( s -> width != avctx -> coded_width || s -> height != avctx -> coded_height ) {\n ParseContext pc = s -> parse_context ;\n s -> parse_context . buffer = 0 ;\n ff_MPV_common_end ( s ) ;\n s -> parse_context = pc ;\n }\n if ( ! s -> context_initialized ) {\n avcodec_set_dimensions ( avctx , s -> width , s -> height ) ;\n goto retry ;\n }\n s -> current_picture . f . pict_type = s -> pict_type ;\n s -> current_picture . f . key_frame = s -> pict_type == AV_PICTURE_TYPE_I ;\n if ( ( avctx -> skip_frame >= AVDISCARD_NONREF && s -> pict_type == AV_PICTURE_TYPE_B ) || ( avctx -> skip_frame >= AVDISCARD_NONKEY && s -> pict_type != AV_PICTURE_TYPE_I ) || avctx -> skip_frame >= AVDISCARD_ALL ) return get_consumed_bytes ( s , buf_size ) ;\n if ( ff_MPV_frame_start ( s , avctx ) < 0 ) return - 1 ;\n ff_mpeg_er_frame_start ( s ) ;\n s -> mb_x = 0 ;\n s -> mb_y = 0 ;\n while ( h -> gob_number < ( s -> mb_height == 18 ? 12 : 5 ) ) {\n if ( ff_h261_resync ( h ) < 0 ) break ;\n h261_decode_gob ( h ) ;\n }\n ff_MPV_frame_end ( s ) ;\n assert ( s -> current_picture . f . pict_type == s -> current_picture_ptr -> f . pict_type ) ;\n assert ( s -> current_picture . f . pict_type == s -> pict_type ) ;\n if ( ( ret = av_frame_ref ( pict , & s -> current_picture_ptr -> f ) ) < 0 ) return ret ;\n ff_print_debug_info ( s , s -> current_picture_ptr ) ;\n * got_frame = 1 ;\n return get_consumed_bytes ( s , buf_size ) ;\n }"}
{"idx": 15648, "target": 0, "func": "static int aes_gcm_cleanup ( EVP_CIPHER_CTX * c ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , c ) ;\n OPENSSL_cleanse ( & gctx -> gcm , sizeof ( gctx -> gcm ) ) ;\n if ( gctx -> iv != EVP_CIPHER_CTX_iv_noconst ( c ) ) OPENSSL_free ( gctx -> iv ) ;\n return 1 ;\n }"}
{"idx": 15649, "target": 0, "func": "static void test_insert_select ( ) {\n MYSQL_STMT * stmt_insert , * stmt_select ;\n char * query ;\n int rc ;\n uint i ;\n myheader ( \"test_insert_select\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS t1, t2\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t1 (a int)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t2 (a int)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t2 values (1)\" ) ;\n myquery ( rc ) ;\n query = ( char * ) \"insert into t1 select a from t2\" ;\n stmt_insert = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt_insert ) ;\n query = ( char * ) \"select * from t1\" ;\n stmt_select = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt_select ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n rc = mysql_stmt_execute ( stmt_insert ) ;\n check_execute ( stmt_insert , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"insert %u\\n\" , i ) ;\n rc = mysql_stmt_execute ( stmt_select ) ;\n check_execute ( stmt_select , rc ) ;\n rc = my_process_stmt_result ( stmt_select ) ;\n DIE_UNLESS ( rc == ( int ) ( i + 1 ) ) ;\n }\n mysql_stmt_close ( stmt_insert ) ;\n mysql_stmt_close ( stmt_select ) ;\n rc = mysql_query ( mysql , \"drop table t1, t2\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 15650, "target": 0, "func": "static void choose_program ( GtkDialog * message_dialog , int response , gpointer callback_data ) {\n GtkWidget * dialog ;\n NautilusFile * file ;\n GFile * location ;\n ActivateParametersInstall * parameters = callback_data ;\n if ( response != GTK_RESPONSE_ACCEPT ) {\n gtk_widget_destroy ( GTK_WIDGET ( message_dialog ) ) ;\n activate_parameters_install_free ( parameters ) ;\n return ;\n }\n file = g_object_get_data ( G_OBJECT ( message_dialog ) , \"mime-action:file\" ) ;\n g_assert ( NAUTILUS_IS_FILE ( file ) ) ;\n location = nautilus_file_get_location ( file ) ;\n nautilus_file_ref ( file ) ;\n gtk_widget_destroy ( GTK_WIDGET ( message_dialog ) ) ;\n dialog = gtk_app_chooser_dialog_new ( parameters -> parent_window , GTK_DIALOG_MODAL , location ) ;\n g_object_set_data_full ( G_OBJECT ( dialog ) , \"mime-action:file\" , nautilus_file_ref ( file ) , ( GDestroyNotify ) nautilus_file_unref ) ;\n gtk_widget_show ( dialog ) ;\n g_signal_connect ( dialog , \"response\" , G_CALLBACK ( open_with_response_cb ) , parameters ) ;\n g_object_unref ( location ) ;\n nautilus_file_unref ( file ) ;\n }"}
{"idx": 15651, "target": 0, "func": "static char * wv_csp11_opaque_binary_tag ( tvbuff_t * tvb , guint32 offset , guint8 token , guint8 codepage , guint32 * length ) {\n guint32 data_len = tvb_get_guintvar ( tvb , offset , length ) ;\n char * str = NULL ;\n switch ( codepage ) {\n case 0 : switch ( token ) {\n case 0x0B : case 0x0F : case 0x1A : case 0x3C : str = wv_integer_from_opaque ( tvb , offset + * length , data_len ) ;\n break ;\n case 0x11 : str = wv_datetime_from_opaque ( tvb , offset + * length , data_len ) ;\n break ;\n default : break ;\n }\n break ;\n case 1 : switch ( token ) {\n case 0x1C : case 0x32 : str = wv_integer_from_opaque ( tvb , offset + * length , data_len ) ;\n break ;\n default : break ;\n }\n break ;\n case 3 : switch ( token ) {\n case 0x06 : case 0x0C : case 0x0D : case 0x0E : case 0x12 : case 0x13 : str = wv_integer_from_opaque ( tvb , offset + * length , data_len ) ;\n break ;\n default : break ;\n }\n break ;\n case 6 : switch ( token ) {\n case 0x1A : str = wv_datetime_from_opaque ( tvb , offset + * length , data_len ) ;\n break ;\n default : break ;\n }\n break ;\n default : break ;\n }\n if ( str == NULL ) {\n str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"(%d bytes of unparsed opaque data)\" , data_len ) ;\n }\n * length += data_len ;\n return str ;\n }"}
{"idx": 15652, "target": 0, "func": "static hb_bool_t hb_font_get_glyph_nil ( hb_font_t * font , void * font_data HB_UNUSED , hb_codepoint_t unicode , hb_codepoint_t variation_selector , hb_codepoint_t * glyph , void * user_data HB_UNUSED ) {\n if ( font -> parent ) return font -> parent -> get_glyph ( unicode , variation_selector , glyph ) ;\n * glyph = 0 ;\n return false ;\n }"}
{"idx": 15653, "target": 0, "func": "static inline void pcnet_tmd_load ( PCNetState * s , struct pcnet_TMD * tmd , hwaddr addr ) {\n if ( ! BCR_SSIZE32 ( s ) ) {\n struct {\n uint32_t tbadr ;\n int16_t length ;\n int16_t status ;\n }\n xda ;\n s -> phys_mem_read ( s -> dma_opaque , addr , ( void * ) & xda , sizeof ( xda ) , 0 ) ;\n tmd -> tbadr = le32_to_cpu ( xda . tbadr ) & 0xffffff ;\n tmd -> length = le16_to_cpu ( xda . length ) ;\n tmd -> status = ( le32_to_cpu ( xda . tbadr ) >> 16 ) & 0xff00 ;\n tmd -> misc = le16_to_cpu ( xda . status ) << 16 ;\n tmd -> res = 0 ;\n }\n else {\n s -> phys_mem_read ( s -> dma_opaque , addr , ( void * ) tmd , sizeof ( * tmd ) , 0 ) ;\n le32_to_cpus ( & tmd -> tbadr ) ;\n le16_to_cpus ( ( uint16_t * ) & tmd -> length ) ;\n le16_to_cpus ( ( uint16_t * ) & tmd -> status ) ;\n le32_to_cpus ( & tmd -> misc ) ;\n le32_to_cpus ( & tmd -> res ) ;\n if ( BCR_SWSTYLE ( s ) == 3 ) {\n uint32_t tmp = tmd -> tbadr ;\n tmd -> tbadr = tmd -> misc ;\n tmd -> misc = tmp ;\n }\n }\n }"}
{"idx": 15654, "target": 0, "func": "proto_item * proto_tree_add_eui64 ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , const guint64 value ) {\n proto_item * pi ;\n header_field_info * hfinfo ;\n CHECK_FOR_NULL_TREE ( tree ) ;\n TRY_TO_FAKE_THIS_ITEM ( tree , hfindex , hfinfo ) ;\n DISSECTOR_ASSERT_FIELD_TYPE ( hfinfo , FT_EUI64 ) ;\n pi = proto_tree_add_pi ( tree , hfinfo , tvb , start , & length ) ;\n proto_tree_set_eui64 ( PNODE_FINFO ( pi ) , value ) ;\n return pi ;\n }"}
{"idx": 15655, "target": 0, "func": "static void usb_ehci_pci_init ( Object * obj ) {\n DeviceClass * dc = OBJECT_GET_CLASS ( DeviceClass , obj , TYPE_DEVICE ) ;\n EHCIPCIState * i = PCI_EHCI ( obj ) ;\n EHCIState * s = & i -> ehci ;\n s -> caps [ 0x09 ] = 0x68 ;\n s -> capsbase = 0x00 ;\n s -> opregbase = 0x20 ;\n s -> portscbase = 0x44 ;\n s -> portnr = NB_PORTS ;\n if ( ! dc -> hotpluggable ) {\n s -> companion_enable = true ;\n }\n usb_ehci_init ( s , DEVICE ( obj ) ) ;\n }"}
{"idx": 15656, "target": 0, "func": "Selectivity scalararraysel_containment ( PlannerInfo * root , Node * leftop , Node * rightop , Oid elemtype , bool isEquality , bool useOr , int varRelid ) {\n Selectivity selec ;\n VariableStatData vardata ;\n Datum constval ;\n TypeCacheEntry * typentry ;\n FmgrInfo * cmpfunc ;\n examine_variable ( root , rightop , varRelid , & vardata ) ;\n if ( ! vardata . rel ) {\n ReleaseVariableStats ( vardata ) ;\n return - 1.0 ;\n }\n if ( ! IsA ( leftop , Const ) ) {\n ReleaseVariableStats ( vardata ) ;\n return - 1.0 ;\n }\n if ( ( ( Const * ) leftop ) -> constisnull ) {\n ReleaseVariableStats ( vardata ) ;\n return ( Selectivity ) 0.0 ;\n }\n constval = ( ( Const * ) leftop ) -> constvalue ;\n typentry = lookup_type_cache ( elemtype , TYPECACHE_CMP_PROC_FINFO ) ;\n if ( ! OidIsValid ( typentry -> cmp_proc_finfo . fn_oid ) ) {\n ReleaseVariableStats ( vardata ) ;\n return - 1.0 ;\n }\n cmpfunc = & typentry -> cmp_proc_finfo ;\n if ( ! isEquality ) useOr = ! useOr ;\n if ( HeapTupleIsValid ( vardata . statsTuple ) && statistic_proc_security_check ( & vardata , cmpfunc -> fn_oid ) ) {\n Form_pg_statistic stats ;\n Datum * values ;\n int nvalues ;\n float4 * numbers ;\n int nnumbers ;\n float4 * hist ;\n int nhist ;\n stats = ( Form_pg_statistic ) GETSTRUCT ( vardata . statsTuple ) ;\n if ( get_attstatsslot ( vardata . statsTuple , elemtype , vardata . atttypmod , STATISTIC_KIND_MCELEM , InvalidOid , NULL , & values , & nvalues , & numbers , & nnumbers ) ) {\n if ( useOr || ! get_attstatsslot ( vardata . statsTuple , elemtype , vardata . atttypmod , STATISTIC_KIND_DECHIST , InvalidOid , NULL , NULL , NULL , & hist , & nhist ) ) {\n hist = NULL ;\n nhist = 0 ;\n }\n if ( useOr ) selec = mcelem_array_contain_overlap_selec ( values , nvalues , numbers , nnumbers , & constval , 1 , OID_ARRAY_CONTAINS_OP , cmpfunc ) ;\n else selec = mcelem_array_contained_selec ( values , nvalues , numbers , nnumbers , & constval , 1 , hist , nhist , OID_ARRAY_CONTAINED_OP , cmpfunc ) ;\n if ( hist ) free_attstatsslot ( elemtype , NULL , 0 , hist , nhist ) ;\n free_attstatsslot ( elemtype , values , nvalues , numbers , nnumbers ) ;\n }\n else {\n if ( useOr ) selec = mcelem_array_contain_overlap_selec ( NULL , 0 , NULL , 0 , & constval , 1 , OID_ARRAY_CONTAINS_OP , cmpfunc ) ;\n else selec = mcelem_array_contained_selec ( NULL , 0 , NULL , 0 , & constval , 1 , NULL , 0 , OID_ARRAY_CONTAINED_OP , cmpfunc ) ;\n }\n selec *= ( 1.0 - stats -> stanullfrac ) ;\n }\n else {\n if ( useOr ) selec = mcelem_array_contain_overlap_selec ( NULL , 0 , NULL , 0 , & constval , 1 , OID_ARRAY_CONTAINS_OP , cmpfunc ) ;\n else selec = mcelem_array_contained_selec ( NULL , 0 , NULL , 0 , & constval , 1 , NULL , 0 , OID_ARRAY_CONTAINED_OP , cmpfunc ) ;\n }\n ReleaseVariableStats ( vardata ) ;\n if ( ! isEquality ) selec = 1.0 - selec ;\n CLAMP_PROBABILITY ( selec ) ;\n return selec ;\n }"}
{"idx": 15657, "target": 0, "func": "static cmsBool ReadOneWChar ( cmsIOHANDLER * io , _cmsDICelem * e , cmsUInt32Number i , wchar_t * * wcstr ) {\n cmsUInt32Number nChars ;\n if ( e -> Offsets [ i ] == 0 ) {\n * wcstr = NULL ;\n return TRUE ;\n }\n if ( ! io -> Seek ( io , e -> Offsets [ i ] ) ) return FALSE ;\n nChars = e -> Sizes [ i ] / sizeof ( cmsUInt16Number ) ;\n * wcstr = ( wchar_t * ) _cmsMallocZero ( e -> ContextID , ( nChars + 1 ) * sizeof ( wchar_t ) ) ;\n if ( * wcstr == NULL ) return FALSE ;\n if ( ! _cmsReadWCharArray ( io , nChars , * wcstr ) ) {\n _cmsFree ( e -> ContextID , * wcstr ) ;\n return FALSE ;\n }\n ( * wcstr ) [ nChars ] = 0 ;\n return TRUE ;\n }"}
{"idx": 15658, "target": 0, "func": "static int dissect_pcp_partial_when ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset ) {\n proto_item * pcp_when_item ;\n proto_tree * pcp_when_tree ;\n pcp_when_item = proto_tree_add_item ( tree , hf_pcp_when , tvb , offset , 8 , ENC_NA ) ;\n pcp_when_tree = proto_item_add_subtree ( pcp_when_item , ett_pcp ) ;\n proto_tree_add_item ( pcp_when_tree , hf_pcp_when_sec , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( pcp_when_tree , hf_pcp_when_usec , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n return offset ;\n }"}
{"idx": 15659, "target": 0, "func": "static void qio_channel_websock_write_close ( QIOChannelWebsock * ioc , uint16_t code , const char * reason ) {\n buffer_reserve ( & ioc -> rawoutput , 2 + ( reason ? strlen ( reason ) : 0 ) ) ;\n * ( uint16_t * ) ( ioc -> rawoutput . buffer + ioc -> rawoutput . offset ) = cpu_to_be16 ( code ) ;\n ioc -> rawoutput . offset += 2 ;\n if ( reason ) {\n buffer_append ( & ioc -> rawoutput , reason , strlen ( reason ) ) ;\n }\n qio_channel_websock_encode_buffer ( ioc , & ioc -> encoutput , QIO_CHANNEL_WEBSOCK_OPCODE_CLOSE , & ioc -> rawoutput ) ;\n buffer_reset ( & ioc -> rawoutput ) ;\n qio_channel_websock_write_wire ( ioc , NULL ) ;\n qio_channel_shutdown ( ioc -> master , QIO_CHANNEL_SHUTDOWN_BOTH , NULL ) ;\n }"}
{"idx": 15660, "target": 0, "func": "static int parse_CSortSet ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree , const char * fmt , ... ) {\n guint32 count , i ;\n proto_item * item ;\n proto_tree * tree ;\n const char * txt ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CSortSet , & item , txt ) ;\n count = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_cscortset_count , tvb , offset , 4 , count ) ;\n offset += 4 ;\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n offset = parse_padding ( tvb , offset , 4 , tree , \"padding_sortArray[%u]\" , i ) ;\n offset = parse_CSort ( tvb , offset , tree , pad_tree , \"sortArray[%u]\" , i ) ;\n }\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 15661, "target": 0, "func": "int dtls1_read_failed ( SSL * s , int code ) {\n if ( code > 0 ) {\n SSLerr ( SSL_F_DTLS1_READ_FAILED , ERR_R_INTERNAL_ERROR ) ;\n return 1 ;\n }\n if ( ! dtls1_is_timer_expired ( s ) ) {\n return code ;\n }\n # ifndef OPENSSL_NO_HEARTBEATS if ( ! SSL_in_init ( s ) && ! s -> tlsext_hb_pending ) # else if ( ! SSL_in_init ( s ) ) # endif {\n BIO_set_flags ( SSL_get_rbio ( s ) , BIO_FLAGS_READ ) ;\n return code ;\n }\n return dtls1_handle_timeout ( s ) ;\n }"}
{"idx": 15662, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , PayloadSizeChildFrame ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : LOAD_EVENT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/page_load_metrics/large_iframe.html\" ) ) ;\n waiter -> Wait ( ) ;\n NavigateToUntrackedUrl ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramPageLoadTotalBytes , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kHistogramPageLoadTotalBytes , 10 , 1 ) ;\n }"}
{"idx": 15663, "target": 0, "func": "static void Type_XYZ_Free ( struct _cms_typehandler_struct * self , void * Ptr ) {\n _cmsFree ( self -> ContextID , Ptr ) ;\n }"}
{"idx": 15664, "target": 0, "func": "void main_buffree ( void * ptr ) {\n # if XD3_WIN32 VirtualFree ( ptr , 0 , MEM_RELEASE ) ;\n # else main_free1 ( NULL , ptr ) ;\n # endif }"}
{"idx": 15665, "target": 0, "func": "void proto_registrar_dump_protocols ( void ) {\n protocol_t * protocol ;\n int i ;\n void * cookie = NULL ;\n i = proto_get_first_protocol ( & cookie ) ;\n while ( i != - 1 ) {\n protocol = find_protocol_by_id ( i ) ;\n ws_debug_printf ( \"%s\\t%s\\t%s\\n\" , protocol -> name , protocol -> short_name , protocol -> filter_name ) ;\n i = proto_get_next_protocol ( & cookie ) ;\n }\n }"}
{"idx": 15666, "target": 0, "func": "static void init_motion_estimation ( VP9_COMP * cpi ) {\n int y_stride = cpi -> scaled_source . y_stride ;\n if ( cpi -> sf . mv . search_method == NSTEP ) {\n vp9_init3smotion_compensation ( & cpi -> ss_cfg , y_stride ) ;\n }\n else if ( cpi -> sf . mv . search_method == DIAMOND ) {\n vp9_init_dsmotion_compensation ( & cpi -> ss_cfg , y_stride ) ;\n }\n }"}
{"idx": 15667, "target": 0, "func": "static bool contain_mutable_functions_checker ( Oid func_id , void * context ) {\n return ( func_volatile ( func_id ) != PROVOLATILE_IMMUTABLE ) ;\n }"}
{"idx": 15668, "target": 0, "func": "static int dissect_h225_T_port ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 65535U , & ip_port , FALSE ) ;\n return offset ;\n }"}
{"idx": 15669, "target": 0, "func": "int ossl_statem_server_construct_message ( SSL * s ) {\n OSSL_STATEM * st = & s -> statem ;\n switch ( st -> hand_state ) {\n case DTLS_ST_SW_HELLO_VERIFY_REQUEST : return dtls_construct_hello_verify_request ( s ) ;\n case TLS_ST_SW_HELLO_REQ : return tls_construct_hello_request ( s ) ;\n case TLS_ST_SW_SRVR_HELLO : return tls_construct_server_hello ( s ) ;\n case TLS_ST_SW_CERT : return tls_construct_server_certificate ( s ) ;\n case TLS_ST_SW_KEY_EXCH : return tls_construct_server_key_exchange ( s ) ;\n case TLS_ST_SW_CERT_REQ : return tls_construct_certificate_request ( s ) ;\n case TLS_ST_SW_SRVR_DONE : return tls_construct_server_done ( s ) ;\n case TLS_ST_SW_SESSION_TICKET : return tls_construct_new_session_ticket ( s ) ;\n case TLS_ST_SW_CERT_STATUS : return tls_construct_cert_status ( s ) ;\n case TLS_ST_SW_CHANGE : if ( SSL_IS_DTLS ( s ) ) return dtls_construct_change_cipher_spec ( s ) ;\n else return tls_construct_change_cipher_spec ( s ) ;\n case TLS_ST_SW_FINISHED : return tls_construct_finished ( s , s -> method -> ssl3_enc -> server_finished_label , s -> method -> ssl3_enc -> server_finished_label_len ) ;\n default : break ;\n }\n return 0 ;\n }"}
{"idx": 15670, "target": 0, "func": "static afs_int32 whereIsIt ( struct rx_call * call , afs_int32 aid , afs_int32 * apos , afs_int32 * cid ) {\n afs_int32 code ;\n struct ubik_trans * tt ;\n afs_int32 temp ;\n code = Initdb ( ) ;\n if ( code != PRSUCCESS ) return code ;\n code = ubik_BeginTransReadAny ( dbase , UBIK_READTRANS , & tt ) ;\n if ( code ) return code ;\n code = ubik_SetLock ( tt , 1 , 1 , LOCKREAD ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = read_DbHeader ( tt ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = WhoIsThis ( call , tt , cid ) ;\n if ( code ) ABORT_WITH ( tt , PRPERM ) ;\n temp = FindByID ( tt , aid ) ;\n if ( ! temp ) ABORT_WITH ( tt , PRNOENT ) ;\n * apos = temp ;\n code = ubik_EndTrans ( tt ) ;\n if ( code ) return code ;\n return PRSUCCESS ;\n }"}
{"idx": 15671, "target": 0, "func": "void vp9_alloc_compressor_data ( VP9_COMP * cpi ) {\n VP9_COMMON * cm = & cpi -> common ;\n vp9_alloc_context_buffers ( cm , cm -> width , cm -> height ) ;\n vpx_free ( cpi -> tok ) ;\n {\n unsigned int tokens = get_token_alloc ( cm -> mb_rows , cm -> mb_cols ) ;\n CHECK_MEM_ERROR ( cm , cpi -> tok , vpx_calloc ( tokens , sizeof ( * cpi -> tok ) ) ) ;\n }\n vp9_setup_pc_tree ( & cpi -> common , cpi ) ;\n }"}
{"idx": 15672, "target": 0, "func": "static int dissect_h225_SEQUENCE_OF_ConferenceList ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_SEQUENCE_OF_ConferenceList , SEQUENCE_OF_ConferenceList_sequence_of ) ;\n return offset ;\n }"}
{"idx": 15673, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( BookmarkBubbleSignInDelegateTest , OnSignInLinkClickedIncognito ) {\n ReplaceBlank ( browser ( ) ) ;\n Browser * incognito_browser = CreateIncognitoBrowser ( ) ;\n int starting_tab_count_normal = browser ( ) -> tab_strip_model ( ) -> count ( ) ;\n int starting_tab_count_incognito = incognito_browser -> tab_strip_model ( ) -> count ( ) ;\n scoped_ptr < BookmarkBubbleDelegate > delegate ;\n delegate . reset ( new BookmarkBubbleSignInDelegate ( incognito_browser ) ) ;\n delegate -> OnSignInLinkClicked ( ) ;\n int tab_count_normal = browser ( ) -> tab_strip_model ( ) -> count ( ) ;\n EXPECT_EQ ( starting_tab_count_normal + 1 , tab_count_normal ) ;\n int tab_count_incognito = incognito_browser -> tab_strip_model ( ) -> count ( ) ;\n EXPECT_EQ ( starting_tab_count_incognito , tab_count_incognito ) ;\n }"}
{"idx": 15674, "target": 0, "func": "static inline int decode_residual_inter ( AVSContext * h ) {\n int block ;\n int cbp = get_ue_golomb ( & h -> gb ) ;\n if ( cbp > 63 ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"illegal inter cbp\\n\" ) ;\n return - 1 ;\n }\n h -> cbp = cbp_tab [ cbp ] [ 1 ] ;\n if ( h -> cbp && ! h -> qp_fixed ) h -> qp = ( h -> qp + get_se_golomb ( & h -> gb ) ) & 63 ;\n for ( block = 0 ;\n block < 4 ;\n block ++ ) if ( h -> cbp & ( 1 << block ) ) decode_residual_block ( h , & h -> gb , inter_dec , 0 , h -> qp , h -> cy + h -> luma_scan [ block ] , h -> l_stride ) ;\n decode_residual_chroma ( h ) ;\n return 0 ;\n }"}
{"idx": 15675, "target": 0, "func": "static void intra_pred_lp_left ( uint8_t * d , uint8_t * top , uint8_t * left , int stride ) {\n int x , y ;\n for ( y = 0 ;\n y < 8 ;\n y ++ ) for ( x = 0 ;\n x < 8 ;\n x ++ ) d [ y * stride + x ] = LOWPASS ( left , y + 1 ) ;\n }"}
{"idx": 15676, "target": 0, "func": "static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 15677, "target": 0, "func": "void output_completion_banner ( char * analyze_script_file_name , char * deletion_script_file_name ) {\n if ( GET_MAJOR_VERSION ( old_cluster . major_version ) >= 804 ) pg_log ( PG_REPORT , \"Optimizer statistics are not transferred by pg_upgrade so,\\n\" \"once you start the new server, consider running:\\n\" \" %s\\n\\n\" , analyze_script_file_name ) ;\n else pg_log ( PG_REPORT , \"Optimizer statistics and free space information are not transferred\\n\" \"by pg_upgrade so, once you start the new server, consider running:\\n\" \" %s\\n\\n\" , analyze_script_file_name ) ;\n if ( deletion_script_file_name ) pg_log ( PG_REPORT , \"Running this script will delete the old cluster's data files:\\n\" \" %s\\n\" , deletion_script_file_name ) ;\n else pg_log ( PG_REPORT , \"Could not create a script to delete the old cluster's data files\\n\" \"because user-defined tablespaces or the new cluster's data directory\\n\" \"exist in the old cluster directory. The old cluster's contents must\\n\" \"be deleted manually.\\n\" ) ;\n }"}
{"idx": 15678, "target": 0, "func": "static void pop ( UScriptRun * scriptRun ) {\n if ( STACK_IS_EMPTY ( scriptRun ) ) {\n return ;\n }\n if ( scriptRun -> fixupCount > 0 ) {\n scriptRun -> fixupCount -= 1 ;\n }\n scriptRun -> pushCount -= 1 ;\n scriptRun -> parenSP = DEC1 ( scriptRun -> parenSP ) ;\n if ( STACK_IS_EMPTY ( scriptRun ) ) {\n scriptRun -> parenSP = - 1 ;\n }\n }"}
{"idx": 15679, "target": 0, "func": "int main ( int argc , char * * argv ) # endif {\n static const char * flags = \"0123456789cdefhnqvDFJNORTVs:m:B:C:E:I:L:O:M:P:W:A::S::\" ;\n xd3_cmd cmd ;\n main_file ifile ;\n main_file ofile ;\n main_file sfile ;\n main_merge_list merge_order ;\n main_merge * merge ;\n int my_optind ;\n const char * my_optarg ;\n const char * my_optstr ;\n const char * sfilename ;\n int env_argc ;\n char * * env_argv ;\n char * * free_argv ;\n char * free_value ;\n int ret ;\n # ifdef _WIN32 GetStartupInfo ( & winStartupInfo ) ;\n setvbuf ( stderr , NULL , _IONBF , 0 ) ;\n # endif main_file_init ( & ifile ) ;\n main_file_init ( & ofile ) ;\n main_file_init ( & sfile ) ;\n main_merge_list_init ( & merge_order ) ;\n reset_defaults ( ) ;\n free_argv = NULL ;\n free_value = NULL ;\n setup_environment ( argc , argv , & env_argc , & env_argv , & free_argv , & free_value ) ;\n cmd = CMD_NONE ;\n sfilename = NULL ;\n my_optind = 1 ;\n argv = env_argv ;\n argc = env_argc ;\n program_name = env_argv [ 0 ] ;\n takearg : my_optarg = NULL ;\n my_optstr = argv [ my_optind ] ;\n if ( my_optstr ) {\n if ( * my_optstr == '-' ) {\n my_optstr += 1 ;\n }\n else if ( cmd == CMD_NONE ) {\n goto nonflag ;\n }\n else {\n my_optstr = NULL ;\n }\n }\n while ( my_optstr ) {\n const char * s ;\n my_optarg = NULL ;\n if ( ( ret = * my_optstr ++ ) == 0 ) {\n my_optind += 1 ;\n goto takearg ;\n }\n s = strchr ( flags , ret ) ;\n if ( s && s [ 1 ] && s [ 1 ] == ':' ) {\n int option = s [ 2 ] && s [ 2 ] == ':' ;\n my_optarg = my_optstr ;\n my_optstr = \"\" ;\n if ( * my_optarg == 0 ) {\n int have_arg = ( my_optind < ( argc - 1 ) && * argv [ my_optind + 1 ] != '-' ) ;\n if ( ! have_arg ) {\n if ( ! option ) {\n XPR ( NT \"-%c: requires an argument\\n\" , ret ) ;\n ret = EXIT_FAILURE ;\n goto cleanup ;\n }\n my_optarg = NULL ;\n }\n else {\n my_optarg = argv [ ++ my_optind ] ;\n }\n }\n else if ( * my_optarg == '=' ) {\n my_optarg += 1 ;\n if ( option && * my_optarg == 0 ) {\n my_optarg = NULL ;\n }\n }\n }\n switch ( ret ) {\n nonflag : if ( strcmp ( my_optstr , \"decode\" ) == 0 ) {\n cmd = CMD_DECODE ;\n }\n else if ( strcmp ( my_optstr , \"encode\" ) == 0 ) {\n # if XD3_ENCODER cmd = CMD_ENCODE ;\n # else XPR ( NT \"encoder support not compiled\\n\" ) ;\n return EXIT_FAILURE ;\n # endif }\n else if ( strcmp ( my_optstr , \"config\" ) == 0 ) {\n cmd = CMD_CONFIG ;\n }\n # if REGRESSION_TEST else if ( strcmp ( my_optstr , \"test\" ) == 0 ) {\n cmd = CMD_TEST ;\n }\n # endif # if VCDIFF_TOOLS else if ( strcmp ( my_optstr , \"printhdr\" ) == 0 ) {\n cmd = CMD_PRINTHDR ;\n }\n else if ( strcmp ( my_optstr , \"printhdrs\" ) == 0 ) {\n cmd = CMD_PRINTHDRS ;\n }\n else if ( strcmp ( my_optstr , \"printdelta\" ) == 0 ) {\n cmd = CMD_PRINTDELTA ;\n }\n else if ( strcmp ( my_optstr , \"recode\" ) == 0 ) {\n cmd = CMD_RECODE ;\n }\n else if ( strcmp ( my_optstr , \"merge\" ) == 0 ) {\n cmd = CMD_MERGE ;\n }\n # endif if ( cmd == CMD_NONE ) {\n cmd = CMD_DEFAULT ;\n my_optstr = NULL ;\n break ;\n }\n else {\n my_optind += 1 ;\n goto takearg ;\n }\n case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : option_level = ret - '0' ;\n break ;\n case 'f' : option_force = 1 ;\n break ;\n case 'F' : # if EXTERNAL_COMPRESSION option_force2 = 1 ;\n # else XPR ( NT \"warning: -F option ignored, \" \"external compression support was not compiled\\n\" ) ;\n break ;\n # endif case 'v' : option_verbose += 1 ;\n option_quiet = 0 ;\n break ;\n case 'q' : option_quiet = 1 ;\n option_verbose = 0 ;\n break ;\n case 'c' : option_stdout = 1 ;\n break ;\n case 'd' : if ( cmd == CMD_NONE ) {\n cmd = CMD_DECODE ;\n }\n else {\n ret = main_help ( ) ;\n goto exit ;\n }\n break ;\n case 'e' : # if XD3_ENCODER if ( cmd == CMD_NONE ) {\n cmd = CMD_ENCODE ;\n }\n else {\n ret = main_help ( ) ;\n goto exit ;\n }\n break ;\n # else XPR ( NT \"encoder support not compiled\\n\" ) ;\n return EXIT_FAILURE ;\n # endif case 'n' : option_use_checksum = 0 ;\n break ;\n case 'N' : option_no_compress = 1 ;\n break ;\n case 'T' : option_use_altcodetable = 1 ;\n break ;\n case 'C' : option_smatch_config = my_optarg ;\n break ;\n case 'J' : option_no_output = 1 ;\n break ;\n case 'S' : if ( my_optarg == NULL ) {\n option_use_secondary = 1 ;\n option_secondary = \"none\" ;\n }\n else {\n option_use_secondary = 1 ;\n option_secondary = my_optarg ;\n }\n break ;\n case 'A' : if ( my_optarg == NULL ) {\n option_use_appheader = 0 ;\n }\n else {\n option_appheader = ( uint8_t * ) my_optarg ;\n }\n break ;\n case 'B' : {\n xoff_t bsize ;\n if ( ( ret = main_atoux ( my_optarg , & bsize , XD3_MINSRCWINSZ , XD3_MAXSRCWINSZ , 'B' ) ) ) {\n goto exit ;\n }\n option_srcwinsz = bsize ;\n break ;\n }\n case 'I' : if ( ( ret = main_atou ( my_optarg , & option_iopt_size , 0 , 0 , 'I' ) ) ) {\n goto exit ;\n }\n break ;\n case 'P' : if ( ( ret = main_atou ( my_optarg , & option_sprevsz , 0 , 0 , 'P' ) ) ) {\n goto exit ;\n }\n break ;\n case 'W' : if ( ( ret = main_atou ( my_optarg , & option_winsize , XD3_ALLOCSIZE , XD3_HARDMAXWINSIZE , 'W' ) ) ) {\n goto exit ;\n }\n break ;\n case 'D' : # if EXTERNAL_COMPRESSION == 0 if ( option_verbose > 0 ) {\n XPR ( NT \"warning: -D option ignored, \" \"external compression support was not compiled\\n\" ) ;\n }\n # else option_decompress_inputs = 0 ;\n # endif break ;\n case 'R' : # if EXTERNAL_COMPRESSION == 0 if ( option_verbose > 0 ) {\n XPR ( NT \"warning: -R option ignored, \" \"external compression support was not compiled\\n\" ) ;\n }\n # else option_recompress_outputs = 0 ;\n # endif break ;\n case 's' : if ( sfilename != NULL ) {\n XPR ( NT \"specify only one source file\\n\" ) ;\n goto cleanup ;\n }\n sfilename = my_optarg ;\n break ;\n case 'm' : if ( ( merge = ( main_merge * ) main_malloc ( sizeof ( main_merge ) ) ) == NULL ) {\n goto cleanup ;\n }\n main_merge_list_push_back ( & merge_order , merge ) ;\n merge -> filename = my_optarg ;\n break ;\n case 'V' : ret = main_version ( ) ;\n goto exit ;\n default : ret = main_help ( ) ;\n goto exit ;\n }\n }\n option_source_filename = sfilename ;\n if ( cmd == CMD_NONE ) {\n cmd = CMD_DEFAULT ;\n }\n argc -= my_optind ;\n argv += my_optind ;\n if ( argc > 2 ) {\n XPR ( NT \"too many filenames: %s ...\\n\" , argv [ 2 ] ) ;\n goto cleanup ;\n }\n ifile . flags = RD_FIRST | RD_MAININPUT ;\n sfile . flags = RD_FIRST ;\n sfile . filename = option_source_filename ;\n if ( argc > 0 ) {\n ifile . filename = argv [ 0 ] ;\n if ( ( ret = main_file_open ( & ifile , ifile . filename , XO_READ ) ) ) {\n goto cleanup ;\n }\n }\n else {\n XSTDIN_XF ( & ifile ) ;\n }\n if ( argc > 1 ) {\n if ( option_stdout && ! option_quiet ) {\n XPR ( NT \"warning: -c option overrides output filename: %s\\n\" , argv [ 1 ] ) ;\n }\n if ( ! option_stdout ) {\n ofile . filename = argv [ 1 ] ;\n }\n }\n # if VCDIFF_TOOLS if ( cmd == CMD_MERGE && ( ret = main_merge_arguments ( & merge_order ) ) ) {\n goto cleanup ;\n }\n # endif switch ( cmd ) {\n case CMD_PRINTHDR : case CMD_PRINTHDRS : case CMD_PRINTDELTA : # if XD3_ENCODER case CMD_ENCODE : case CMD_RECODE : case CMD_MERGE : # endif case CMD_DECODE : ret = main_input ( cmd , & ifile , & ofile , & sfile ) ;\n break ;\n # if REGRESSION_TEST case CMD_TEST : main_config ( ) ;\n ret = xd3_selftest ( ) ;\n break ;\n # endif case CMD_CONFIG : ret = main_config ( ) ;\n break ;\n default : ret = main_help ( ) ;\n break ;\n }\n if ( 0 ) {\n cleanup : ret = EXIT_FAILURE ;\n exit : ( void ) 0 ;\n }\n # if EXTERNAL_COMPRESSION main_external_compression_cleanup ( ) ;\n # endif main_file_cleanup ( & ifile ) ;\n main_file_cleanup ( & ofile ) ;\n main_file_cleanup ( & sfile ) ;\n while ( ! main_merge_list_empty ( & merge_order ) ) {\n merge = main_merge_list_pop_front ( & merge_order ) ;\n main_free ( merge ) ;\n }\n main_free ( free_argv ) ;\n main_free ( free_value ) ;\n main_cleanup ( ) ;\n fflush ( stdout ) ;\n fflush ( stderr ) ;\n return ret ;\n }"}
{"idx": 15680, "target": 0, "func": "static void handle_no_active_connection ( struct st_command * command , struct st_connection * cn , DYNAMIC_STRING * ds ) {\n handle_error ( command , 2006 , \"MySQL server has gone away\" , \"000000\" , ds ) ;\n cn -> pending = FALSE ;\n var_set_errno ( 2006 ) ;\n }"}
{"idx": 15681, "target": 0, "func": "static void dissect_rsvp_protection_info ( proto_tree * ti , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int type ) {\n guint8 flags1 , lsp_flags , link_flags , seg_flags ;\n proto_tree * ti2 , * rsvp_pi_link_flags_tree , * rsvp_pi_lsp_flags_tree , * rsvp_pi_seg_flags_tree ;\n int offset2 = offset + 4 ;\n proto_item_set_text ( ti , \"PROTECTION_INFO: \" ) ;\n switch ( type ) {\n case 1 : proto_tree_add_uint ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type ) ;\n flags1 = tvb_get_guint8 ( tvb , offset2 ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_protection_info_flags_secondary_lsp , tvb , offset2 , 1 , ENC_BIG_ENDIAN ) ;\n link_flags = tvb_get_guint8 ( tvb , offset2 + 3 ) ;\n ti2 = proto_tree_add_item ( rsvp_object_tree , hf_rsvp_protection_info_link_flags , tvb , offset2 + 3 , 1 , ENC_BIG_ENDIAN ) ;\n rsvp_pi_link_flags_tree = proto_item_add_subtree ( ti2 , TREE ( TT_PROTECTION_INFO_LINK ) ) ;\n proto_tree_add_item ( rsvp_pi_link_flags_tree , hf_rsvp_pi_link_flags_extra_traffic , tvb , offset2 + 3 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_pi_link_flags_tree , hf_rsvp_pi_link_flags_unprotected , tvb , offset2 + 3 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_pi_link_flags_tree , hf_rsvp_pi_link_flags_shared , tvb , offset2 + 3 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_pi_link_flags_tree , hf_rsvp_pi_link_flags_dedicated1_1 , tvb , offset2 + 3 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_pi_link_flags_tree , hf_rsvp_pi_link_flags_dedicated1plus1 , tvb , offset2 + 3 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_pi_link_flags_tree , hf_rsvp_pi_link_flags_enhanced , tvb , offset2 + 3 , 1 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \"%s%s%s%s%s%s%s.\" , flags1 & 0x80 ? \"SecondaryLSP \" : \"\" , link_flags & 0x01 ? \"ExtraTraffic \" : \"\" , link_flags & 0x02 ? \"Unprotected \" : \"\" , link_flags & 0x04 ? \"Shared \" : \"\" , link_flags & 0x08 ? \"Dedicated1:1 \" : \"\" , link_flags & 0x10 ? \"Dedicated1+1 \" : \"\" , link_flags & 0x20 ? \"Enhanced \" : \"\" ) ;\n break ;\n case 2 : proto_tree_add_uint ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type ) ;\n flags1 = tvb_get_guint8 ( tvb , offset2 ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_rfc4872_secondary , tvb , offset2 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_rfc4872_protecting , tvb , offset2 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_rfc4872_notification_msg , tvb , offset2 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_rfc4872_operational , tvb , offset2 , 1 , ENC_BIG_ENDIAN ) ;\n lsp_flags = tvb_get_guint8 ( tvb , offset2 + 1 ) ;\n rsvp_pi_lsp_flags_tree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset2 + 1 , 1 , TREE ( TT_PROTECTION_INFO_LSP ) , NULL , \"LSP Flags: 0x%02x -%s%s%s%s%s%s\" , lsp_flags , lsp_flags == 0 ? \" Unprotected\" : \"\" , lsp_flags & 0x01 ? \" Rerouting\" : \"\" , lsp_flags & 0x02 ? \" Rerouting with extra-traffic\" : \"\" , lsp_flags & 0x04 ? \" 1:N Protection with extra-traffic\" : \"\" , lsp_flags & 0x08 ? \" 1+1 Unidirectional protection\" : \"\" , lsp_flags & 0x10 ? \" 1+1 Bidirectional protection\" : \"\" ) ;\n proto_tree_add_item ( rsvp_pi_lsp_flags_tree , hf_rsvp_pi_lsp_flags_full_rerouting , tvb , offset2 + 1 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_pi_lsp_flags_tree , hf_rsvp_pi_lsp_flags_rerouting_extra , tvb , offset2 + 1 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_pi_lsp_flags_tree , hf_rsvp_pi_lsp_flags_1_n_protection , tvb , offset2 + 1 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_pi_lsp_flags_tree , hf_rsvp_pi_lsp_flags_1plus1_unidirectional , tvb , offset2 + 1 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_pi_lsp_flags_tree , hf_rsvp_pi_lsp_flags_1plus1_bidirectional , tvb , offset2 + 1 , 1 , ENC_BIG_ENDIAN ) ;\n link_flags = tvb_get_guint8 ( tvb , offset2 + 3 ) ;\n rsvp_pi_link_flags_tree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset2 + 3 , 1 , TREE ( TT_PROTECTION_INFO_LINK ) , NULL , \"Link Flags: 0x%02x -%s%s%s%s%s%s\" , link_flags , link_flags & 0x01 ? \" ExtraTraffic\" : \"\" , link_flags & 0x02 ? \" Unprotected\" : \"\" , link_flags & 0x04 ? \" Shared\" : \"\" , link_flags & 0x08 ? \" Dedicated1:1\" : \"\" , link_flags & 0x10 ? \" Dedicated1+1\" : \"\" , link_flags & 0x20 ? \" Enhanced\" : \"\" ) ;\n proto_tree_add_item ( rsvp_pi_link_flags_tree , hf_rsvp_pi_link_flags_extra , tvb , offset2 + 3 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_pi_link_flags_tree , hf_rsvp_pi_link_flags_unprotected , tvb , offset2 + 3 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_pi_link_flags_tree , hf_rsvp_pi_link_flags_shared , tvb , offset2 + 3 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_pi_link_flags_tree , hf_rsvp_pi_link_flags_dedicated_1_1 , tvb , offset2 + 3 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_pi_link_flags_tree , hf_rsvp_pi_link_flags_dedicated_1plus1 , tvb , offset2 + 3 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_pi_link_flags_tree , hf_rsvp_pi_link_flags_enhanced , tvb , offset2 + 3 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_protection_info_in_place , tvb , offset2 + 4 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_protection_info_required , tvb , offset2 + 4 , 1 , ENC_BIG_ENDIAN ) ;\n seg_flags = tvb_get_guint8 ( tvb , offset2 + 5 ) ;\n rsvp_pi_seg_flags_tree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset2 + 5 , 1 , TREE ( TT_PROTECTION_INFO_SEG ) , NULL , \"Segment recovery Flags: 0x%02x - %s%s%s%s%s%s\" , seg_flags , seg_flags == 0 ? \" Unprotected\" : \"\" , seg_flags & 0x01 ? \" Rerouting\" : \"\" , seg_flags & 0x02 ? \" Rerouting with extra-traffic\" : \"\" , seg_flags & 0x04 ? \" 1:N Protection with extra-traffic\" : \"\" , seg_flags & 0x08 ? \" 1+1 Unidirectional protection\" : \"\" , seg_flags & 0x10 ? \" 1+1 Bidirectional protection\" : \"\" ) ;\n proto_tree_add_item ( rsvp_pi_seg_flags_tree , hf_rsvp_pi_seg_flags_full_rerouting , tvb , offset2 + 1 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_pi_seg_flags_tree , hf_rsvp_pi_seg_flags_rerouting_extra , tvb , offset2 + 1 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_pi_seg_flags_tree , hf_rsvp_pi_seg_flags_1_n_protection , tvb , offset2 + 1 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_pi_seg_flags_tree , hf_rsvp_pi_seg_flags_1plus1_unidirectional , tvb , offset2 + 1 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_pi_seg_flags_tree , hf_rsvp_pi_seg_flags_1plus1_bidirectional , tvb , offset2 + 1 , 1 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \"%s%s%s%s Link:%s%s%s%s%s%s, LSP:%s%s%s%s%s%s.\" , flags1 & 0x80 ? \"SecondaryLSP \" : \"\" , flags1 & 0x40 ? \"ProtectingLSP \" : \"\" , flags1 & 0x20 ? \"Notification \" : \"\" , flags1 & 0x10 ? \"OperationalLSP \" : \"\" , link_flags & 0x01 ? \" ExtraTraffic\" : \"\" , link_flags & 0x02 ? \" Unprotected\" : \"\" , link_flags & 0x04 ? \" Shared\" : \"\" , link_flags & 0x08 ? \" Dedicated1:1\" : \"\" , link_flags & 0x10 ? \" Dedicated1+1\" : \"\" , link_flags & 0x20 ? \" Enhanced\" : \"\" , lsp_flags == 0 ? \" Unprotected\" : \"\" , lsp_flags & 0x01 ? \" Rerouting\" : \"\" , lsp_flags & 0x02 ? \" Rerouting with extra-traffic\" : \"\" , lsp_flags & 0x04 ? \" 1:N Protection with extra-traffic\" : \"\" , lsp_flags & 0x08 ? \" 1+1 Unidirectional protection\" : \"\" , lsp_flags & 0x10 ? \" 1+1 Bidirectional protection\" : \"\" ) ;\n break ;\n default : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"Unknown (%u)\" , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_protection_info_data , tvb , offset2 , obj_length - 4 , ENC_NA ) ;\n break ;\n }\n }"}
{"idx": 15682, "target": 0, "func": "void * xmlLinkGetData ( xmlLinkPtr lk ) {\n if ( lk == NULL ) return ( NULL ) ;\n return lk -> data ;\n }"}
{"idx": 15683, "target": 0, "func": "static void _slurm_rpc_dump_front_end ( slurm_msg_t * msg ) {\n DEF_TIMERS ;\n char * dump = NULL ;\n int dump_size = 0 ;\n slurm_msg_t response_msg ;\n front_end_info_request_msg_t * front_end_req_msg = ( front_end_info_request_msg_t * ) msg -> data ;\n slurmctld_lock_t node_read_lock = {\n READ_LOCK , NO_LOCK , NO_LOCK , READ_LOCK , NO_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n START_TIMER ;\n debug3 ( \"Processing RPC: REQUEST_FRONT_END_INFO from uid=%d\" , uid ) ;\n lock_slurmctld ( node_read_lock ) ;\n if ( ( front_end_req_msg -> last_update - 1 ) >= last_front_end_update ) {\n unlock_slurmctld ( node_read_lock ) ;\n debug3 ( \"_slurm_rpc_dump_front_end, no change\" ) ;\n slurm_send_rc_msg ( msg , SLURM_NO_CHANGE_IN_DATA ) ;\n }\n else {\n pack_all_front_end ( & dump , & dump_size , uid , msg -> protocol_version ) ;\n unlock_slurmctld ( node_read_lock ) ;\n END_TIMER2 ( \"_slurm_rpc_dump_front_end\" ) ;\n debug2 ( \"_slurm_rpc_dump_front_end, size=%d %s\" , dump_size , TIME_STR ) ;\n slurm_msg_t_init ( & response_msg ) ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . address = msg -> address ;\n response_msg . conn = msg -> conn ;\n response_msg . msg_type = RESPONSE_FRONT_END_INFO ;\n response_msg . data = dump ;\n response_msg . data_size = dump_size ;\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n xfree ( dump ) ;\n }\n }"}
{"idx": 15684, "target": 0, "func": "void # ifdef M_DEBUG mpi_debug_free ( MPI a , const char * info ) # else mpi_free ( MPI a ) # endif {\n if ( ! a ) return ;\n if ( DBG_MEMORY ) log_debug ( \"mpi_free\\n\" ) ;\n if ( a -> flags & 4 ) xfree ( a -> d ) ;\n else {\n # ifdef M_DEBUG mpi_debug_free_limb_space ( a -> d , info ) ;\n # else mpi_free_limb_space ( a -> d ) ;\n # endif }\n if ( a -> flags & ~ 7 ) log_bug ( \"invalid flag value in mpi\\n\" ) ;\n xfree ( a ) ;\n }"}
{"idx": 15685, "target": 0, "func": "void TSHttpTxnDNSTimeoutSet ( TSHttpTxn txnp , int timeout ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpTransact : : State * s = & ( ( ( HttpSM * ) txnp ) -> t_state ) ;\n s -> api_txn_dns_timeout_value = timeout ;\n }"}
{"idx": 15686, "target": 0, "func": "static const char * remove_leading_slash ( const char * p ) {\n const char * rp ;\n if ( ( p [ 0 ] == '/' || p [ 0 ] == '\\\\' ) && ( p [ 1 ] == '/' || p [ 1 ] == '\\\\' ) && ( p [ 2 ] == '.' || p [ 2 ] == '?' ) && ( p [ 3 ] == '/' || p [ 3 ] == '\\\\' ) ) {\n if ( p [ 2 ] == '?' && ( p [ 4 ] == 'U' || p [ 4 ] == 'u' ) && ( p [ 5 ] == 'N' || p [ 5 ] == 'n' ) && ( p [ 6 ] == 'C' || p [ 6 ] == 'c' ) && ( p [ 7 ] == '/' || p [ 7 ] == '\\\\' ) ) p += 8 ;\n else p += 4 ;\n }\n do {\n rp = p ;\n if ( ( ( p [ 0 ] >= 'a' && p [ 0 ] <= 'z' ) || ( p [ 0 ] >= 'A' && p [ 0 ] <= 'Z' ) ) && p [ 1 ] == ':' ) {\n p += 2 ;\n }\n while ( p [ 0 ] == '/' || p [ 0 ] == '\\\\' ) {\n if ( p [ 1 ] == '.' && p [ 2 ] == '.' && ( p [ 3 ] == '/' || p [ 3 ] == '\\\\' ) ) {\n p += 3 ;\n }\n else p += 1 ;\n }\n }\n while ( rp != p ) ;\n return ( p ) ;\n }"}
{"idx": 15687, "target": 0, "func": "static void isofile_connect_hardlink_files ( struct iso9660 * iso9660 ) {\n struct archive_rb_node * n ;\n struct hardlink * hl ;\n struct isofile * target , * nf ;\n ARCHIVE_RB_TREE_FOREACH ( n , & ( iso9660 -> hardlink_rbtree ) ) {\n hl = ( struct hardlink * ) n ;\n target = hl -> file_list . first ;\n archive_entry_set_nlink ( target -> entry , hl -> nlink ) ;\n for ( nf = target -> hlnext ;\n nf != NULL ;\n nf = nf -> hlnext ) {\n nf -> hardlink_target = target ;\n archive_entry_set_nlink ( nf -> entry , hl -> nlink ) ;\n }\n }\n }"}
{"idx": 15688, "target": 0, "func": "void ber_free ( BerElement * ber , int freebuf ) {\n if ( ber == NULL ) {\n LDAP_MEMORY_DEBUG_ASSERT ( ber != NULL ) ;\n return ;\n }\n if ( freebuf ) ber_free_buf ( ber ) ;\n ber_memfree_x ( ( char * ) ber , ber -> ber_memctx ) ;\n }"}
{"idx": 15689, "target": 0, "func": "hb_script_t hb_icu_script_to_script ( UScriptCode script ) {\n if ( unlikely ( script == USCRIPT_INVALID_CODE ) ) return HB_SCRIPT_INVALID ;\n return hb_script_from_string ( uscript_getShortName ( script ) , - 1 ) ;\n }"}
{"idx": 15690, "target": 0, "func": "static uint32_t pmac_ide_readw ( void * opaque , hwaddr addr ) {\n uint16_t retval ;\n MACIOIDEState * d = opaque ;\n addr = ( addr & 0xFFF ) >> 4 ;\n if ( addr == 0 ) {\n retval = ide_data_readw ( & d -> bus , 0 ) ;\n }\n else {\n retval = 0xFFFF ;\n }\n retval = bswap16 ( retval ) ;\n return retval ;\n }"}
{"idx": 15691, "target": 0, "func": "static ossl_inline int sk_ ## t1 ## _reserve ( STACK_OF ( t1 ) * sk , int n ) {\n return OPENSSL_sk_reserve ( ( OPENSSL_STACK * ) sk , n ) ;\n }\n static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 15692, "target": 0, "func": "pthread_handler_t signal_hand ( void * arg __attribute__ ( ( unused ) ) ) {\n sigset_t set ;\n int sig ;\n my_thread_init ( ) ;\n DBUG_ENTER ( \"signal_hand\" ) ;\n signal_thread_in_use = 1 ;\n init_thr_alarm ( thread_scheduler -> max_threads + extra_max_connections + global_system_variables . max_insert_delayed_threads + 10 ) ;\n if ( test_flags & TEST_SIGINT ) {\n ( void ) sigemptyset ( & set ) ;\n ( void ) sigaddset ( & set , SIGINT ) ;\n ( void ) pthread_sigmask ( SIG_UNBLOCK , & set , NULL ) ;\n }\n ( void ) sigemptyset ( & set ) ;\n # ifdef USE_ONE_SIGNAL_HAND ( void ) sigaddset ( & set , THR_SERVER_ALARM ) ;\n # endif # ifndef IGNORE_SIGHUP_SIGQUIT ( void ) sigaddset ( & set , SIGQUIT ) ;\n ( void ) sigaddset ( & set , SIGHUP ) ;\n # endif ( void ) sigaddset ( & set , SIGTERM ) ;\n ( void ) sigaddset ( & set , SIGTSTP ) ;\n if ( ! opt_bootstrap ) create_pid_file ( ) ;\n mysql_mutex_lock ( & LOCK_thread_count ) ;\n mysql_mutex_unlock ( & LOCK_thread_count ) ;\n mysql_cond_broadcast ( & COND_thread_count ) ;\n ( void ) pthread_sigmask ( SIG_BLOCK , & set , NULL ) ;\n for ( ;\n ;\n ) {\n int error ;\n if ( shutdown_in_progress && ! abort_loop ) {\n sig = SIGTERM ;\n error = 0 ;\n }\n else while ( ( error = my_sigwait ( & set , & sig ) ) == EINTR ) ;\n if ( cleanup_done ) {\n DBUG_PRINT ( \"quit\" , ( \"signal_handler: calling my_thread_end()\" ) ) ;\n my_thread_end ( ) ;\n DBUG_LEAVE ;\n signal_thread_in_use = 0 ;\n pthread_exit ( 0 ) ;\n return 0 ;\n }\n switch ( sig ) {\n case SIGTERM : case SIGQUIT : case SIGKILL : # ifdef EXTRA_DEBUG sql_print_information ( \"Got signal %d to shutdown mysqld\" , sig ) ;\n # endif logger . set_handlers ( LOG_FILE , opt_slow_log ? LOG_FILE : LOG_NONE , opt_log ? LOG_FILE : LOG_NONE ) ;\n DBUG_PRINT ( \"info\" , ( \"Got signal: %d abort_loop: %d\" , sig , abort_loop ) ) ;\n if ( ! abort_loop ) {\n abort_loop = 1 ;\n # ifdef HAVE_PSI_INTERFACE if ( likely ( PSI_server != NULL ) ) PSI_server -> delete_current_thread ( ) ;\n # endif # ifdef USE_ONE_SIGNAL_HAND pthread_t tmp ;\n if ( ( error = mysql_thread_create ( 0 , & tmp , & connection_attrib , kill_server_thread , ( void * ) & sig ) ) ) sql_print_error ( \"Can't create thread to kill server (errno= %d)\" , error ) ;\n # else kill_server ( ( void * ) sig ) ;\n # endif }\n break ;\n case SIGHUP : if ( ! abort_loop ) {\n int not_used ;\n mysql_print_status ( ) ;\n reload_acl_and_cache ( ( THD * ) 0 , ( REFRESH_LOG | REFRESH_TABLES | REFRESH_FAST | REFRESH_GRANT | REFRESH_THREADS | REFRESH_HOSTS ) , ( TABLE_LIST * ) 0 , & not_used ) ;\n }\n if ( log_output_options & LOG_NONE ) {\n logger . set_handlers ( LOG_FILE , opt_slow_log ? LOG_TABLE : LOG_NONE , opt_log ? LOG_TABLE : LOG_NONE ) ;\n }\n else {\n logger . set_handlers ( LOG_FILE , opt_slow_log ? log_output_options : LOG_NONE , opt_log ? log_output_options : LOG_NONE ) ;\n }\n break ;\n # ifdef USE_ONE_SIGNAL_HAND case THR_SERVER_ALARM : process_alarm ( sig ) ;\n break ;\n # endif default : # ifdef EXTRA_DEBUG sql_print_warning ( \"Got signal: %d error: %d\" , sig , error ) ;\n # endif break ;\n }\n }\n return ( 0 ) ;\n }"}
{"idx": 15693, "target": 0, "func": "static UBool generateFromUTable ( CnvExtData * extData , UCMTable * table , int32_t start , int32_t limit , int32_t unitIndex , uint32_t defaultValue ) {\n UCMapping * mappings , * m ;\n int32_t * map ;\n int32_t i , j , uniqueCount , count , subStart , subLimit ;\n UChar * uchars ;\n UChar32 low , high , prev ;\n UChar * sectionUChars ;\n uint32_t * sectionValues ;\n mappings = table -> mappings ;\n map = table -> reverseMap ;\n m = mappings + map [ start ] ;\n uchars = ( UChar * ) UCM_GET_CODE_POINTS ( table , m ) ;\n low = uchars [ unitIndex ] ;\n uniqueCount = 1 ;\n prev = high = low ;\n for ( i = start + 1 ;\n i < limit ;\n ++ i ) {\n m = mappings + map [ i ] ;\n uchars = ( UChar * ) UCM_GET_CODE_POINTS ( table , m ) ;\n high = uchars [ unitIndex ] ;\n if ( high != prev ) {\n prev = high ;\n ++ uniqueCount ;\n }\n }\n count = uniqueCount ;\n sectionUChars = ( UChar * ) utm_allocN ( extData -> fromUTableUChars , 1 + count ) ;\n sectionValues = ( uint32_t * ) utm_allocN ( extData -> fromUTableValues , 1 + count ) ;\n * sectionUChars ++ = ( UChar ) count ;\n * sectionValues ++ = defaultValue ;\n prev = low - 1 ;\n j = 0 ;\n for ( i = start ;\n i < limit ;\n ++ i ) {\n m = mappings + map [ i ] ;\n uchars = ( UChar * ) UCM_GET_CODE_POINTS ( table , m ) ;\n high = uchars [ unitIndex ] ;\n if ( high != prev ) {\n prev = high ;\n sectionUChars [ j ] = ( UChar ) high ;\n sectionValues [ j ] = ( uint32_t ) i ;\n ++ j ;\n }\n }\n subLimit = ( int32_t ) ( sectionValues [ 0 ] ) ;\n for ( j = 0 ;\n j < count ;\n ++ j ) {\n subStart = subLimit ;\n subLimit = ( j + 1 ) < count ? ( int32_t ) ( sectionValues [ j + 1 ] ) : limit ;\n defaultValue = 0 ;\n m = mappings + map [ subStart ] ;\n if ( m -> uLen == unitIndex + 1 ) {\n ++ subStart ;\n if ( subStart < subLimit && mappings [ map [ subStart ] ] . uLen == unitIndex + 1 ) {\n fprintf ( stderr , \"error: multiple mappings from same Unicode code points\\n\" ) ;\n ucm_printMapping ( table , m , stderr ) ;\n ucm_printMapping ( table , mappings + map [ subStart ] , stderr ) ;\n return FALSE ;\n }\n defaultValue = getFromUBytesValue ( extData , table , m ) ;\n }\n if ( subStart == subLimit ) {\n sectionValues [ j ] = defaultValue ;\n }\n else {\n sectionValues [ j ] = ( uint32_t ) utm_countItems ( extData -> fromUTableValues ) ;\n if ( ! generateFromUTable ( extData , table , subStart , subLimit , unitIndex + 1 , defaultValue ) ) {\n return FALSE ;\n }\n }\n }\n return TRUE ;\n }"}
{"idx": 15694, "target": 0, "func": "SPL_METHOD ( SplFileInfo , _bad_state_ex ) {\n zend_throw_exception_ex ( spl_ce_LogicException , 0 TSRMLS_CC , \"The parent constructor was not called: the object is in an \" \"invalid state \" ) ;\n }"}
{"idx": 15695, "target": 0, "func": "PHP_MINIT_FUNCTION ( spl_dllist ) {\n REGISTER_SPL_STD_CLASS_EX ( SplDoublyLinkedList , spl_dllist_object_new , spl_funcs_SplDoublyLinkedList ) ;\n memcpy ( & spl_handler_SplDoublyLinkedList , zend_get_std_object_handlers ( ) , sizeof ( zend_object_handlers ) ) ;\n spl_handler_SplDoublyLinkedList . clone_obj = spl_dllist_object_clone ;\n spl_handler_SplDoublyLinkedList . count_elements = spl_dllist_object_count_elements ;\n spl_handler_SplDoublyLinkedList . get_debug_info = spl_dllist_object_get_debug_info ;\n REGISTER_SPL_CLASS_CONST_LONG ( SplDoublyLinkedList , \"IT_MODE_LIFO\" , SPL_DLLIST_IT_LIFO ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( SplDoublyLinkedList , \"IT_MODE_FIFO\" , 0 ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( SplDoublyLinkedList , \"IT_MODE_DELETE\" , SPL_DLLIST_IT_DELETE ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( SplDoublyLinkedList , \"IT_MODE_KEEP\" , 0 ) ;\n REGISTER_SPL_IMPLEMENTS ( SplDoublyLinkedList , Iterator ) ;\n REGISTER_SPL_IMPLEMENTS ( SplDoublyLinkedList , Countable ) ;\n REGISTER_SPL_IMPLEMENTS ( SplDoublyLinkedList , ArrayAccess ) ;\n REGISTER_SPL_IMPLEMENTS ( SplDoublyLinkedList , Serializable ) ;\n spl_ce_SplDoublyLinkedList -> get_iterator = spl_dllist_get_iterator ;\n REGISTER_SPL_SUB_CLASS_EX ( SplQueue , SplDoublyLinkedList , spl_dllist_object_new , spl_funcs_SplQueue ) ;\n REGISTER_SPL_SUB_CLASS_EX ( SplStack , SplDoublyLinkedList , spl_dllist_object_new , NULL ) ;\n spl_ce_SplQueue -> get_iterator = spl_dllist_get_iterator ;\n spl_ce_SplStack -> get_iterator = spl_dllist_get_iterator ;\n return SUCCESS ;\n }"}
{"idx": 15696, "target": 0, "func": "TEST_F ( ExtensionServiceSyncTest , GetSyncAppDataUserSettings ) {\n InitializeEmptyExtensionService ( ) ;\n const Extension * app = PackAndInstallCRX ( data_dir ( ) . AppendASCII ( \"app\" ) , INSTALL_NEW ) ;\n ASSERT_TRUE ( app ) ;\n ASSERT_TRUE ( app -> is_app ( ) ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : APPS , syncer : : SyncDataList ( ) , base : : MakeUnique < syncer : : FakeSyncChangeProcessor > ( ) , base : : MakeUnique < syncer : : SyncErrorFactoryMock > ( ) ) ;\n syncer : : StringOrdinal initial_ordinal = syncer : : StringOrdinal : : CreateInitialOrdinal ( ) ;\n {\n syncer : : SyncDataList list = extension_sync_service ( ) -> GetAllSyncData ( syncer : : APPS ) ;\n ASSERT_EQ ( list . size ( ) , 1U ) ;\n std : : unique_ptr < ExtensionSyncData > app_sync_data = ExtensionSyncData : : CreateFromSyncData ( list [ 0 ] ) ;\n EXPECT_TRUE ( initial_ordinal . Equals ( app_sync_data -> app_launch_ordinal ( ) ) ) ;\n EXPECT_TRUE ( initial_ordinal . Equals ( app_sync_data -> page_ordinal ( ) ) ) ;\n }\n AppSorting * sorting = ExtensionSystem : : Get ( profile ( ) ) -> app_sorting ( ) ;\n sorting -> SetAppLaunchOrdinal ( app -> id ( ) , initial_ordinal . CreateAfter ( ) ) ;\n {\n syncer : : SyncDataList list = extension_sync_service ( ) -> GetAllSyncData ( syncer : : APPS ) ;\n ASSERT_EQ ( list . size ( ) , 1U ) ;\n std : : unique_ptr < ExtensionSyncData > app_sync_data = ExtensionSyncData : : CreateFromSyncData ( list [ 0 ] ) ;\n ASSERT_TRUE ( app_sync_data . get ( ) ) ;\n EXPECT_TRUE ( initial_ordinal . LessThan ( app_sync_data -> app_launch_ordinal ( ) ) ) ;\n EXPECT_TRUE ( initial_ordinal . Equals ( app_sync_data -> page_ordinal ( ) ) ) ;\n }\n sorting -> SetPageOrdinal ( app -> id ( ) , initial_ordinal . CreateAfter ( ) ) ;\n {\n syncer : : SyncDataList list = extension_sync_service ( ) -> GetAllSyncData ( syncer : : APPS ) ;\n ASSERT_EQ ( list . size ( ) , 1U ) ;\n std : : unique_ptr < ExtensionSyncData > app_sync_data = ExtensionSyncData : : CreateFromSyncData ( list [ 0 ] ) ;\n ASSERT_TRUE ( app_sync_data . get ( ) ) ;\n EXPECT_TRUE ( initial_ordinal . LessThan ( app_sync_data -> app_launch_ordinal ( ) ) ) ;\n EXPECT_TRUE ( initial_ordinal . LessThan ( app_sync_data -> page_ordinal ( ) ) ) ;\n }\n }"}
{"idx": 15697, "target": 0, "func": "RestoreOptions * NewRestoreOptions ( void ) {\n RestoreOptions * opts ;\n opts = ( RestoreOptions * ) pg_malloc0 ( sizeof ( RestoreOptions ) ) ;\n opts -> format = archUnknown ;\n opts -> promptPassword = TRI_DEFAULT ;\n opts -> dumpSections = DUMP_UNSECTIONED ;\n return opts ;\n }"}
{"idx": 15698, "target": 0, "func": "static void sum_usage ( FILE * out , int count , size_t bytes , int whitelisted ) {\n fprintf ( out , \"Total memory usage: %zu\\n\" , bytes ) ;\n }"}
{"idx": 15699, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell )"}
{"idx": 15700, "target": 1, "func": "void evhttp_connection_free ( struct evhttp_connection * evcon ) {\n struct evhttp_request * req ;\n if ( evcon -> fd != - 1 ) {\n if ( evhttp_connected ( evcon ) && evcon -> closecb != NULL ) ( * evcon -> closecb ) ( evcon , evcon -> closecb_arg ) ;\n }\n while ( ( req = TAILQ_FIRST ( & evcon -> requests ) ) != NULL ) {\n TAILQ_REMOVE ( & evcon -> requests , req , next ) ;\n evhttp_request_free ( req ) ;\n }\n if ( evcon -> http_server != NULL ) {\n struct evhttp * http = evcon -> http_server ;\n TAILQ_REMOVE ( & http -> connections , evcon , next ) ;\n }\n if ( event_initialized ( & evcon -> close_ev ) ) event_del ( & evcon -> close_ev ) ;\n if ( event_initialized ( & evcon -> ev ) ) event_del ( & evcon -> ev ) ;\n if ( evcon -> fd != - 1 ) EVUTIL_CLOSESOCKET ( evcon -> fd ) ;\n if ( evcon -> bind_address != NULL ) free ( evcon -> bind_address ) ;\n if ( evcon -> address != NULL ) free ( evcon -> address ) ;\n if ( evcon -> input_buffer != NULL ) evbuffer_free ( evcon -> input_buffer ) ;\n if ( evcon -> output_buffer != NULL ) evbuffer_free ( evcon -> output_buffer ) ;\n free ( evcon ) ;\n }"}
{"idx": 15701, "target": 0, "func": "void request_command_data ( int cmd ) {\n char start_time [ MAX_DATETIME_LENGTH ] ;\n contact * temp_contact ;\n scheduled_downtime * temp_downtime ;\n host * temp_host = NULL ;\n char action [ MAX_INPUT_BUFFER ] ;\n int found_trigger_objects = FALSE ;\n temp_contact = find_contact ( current_authdata . username ) ;\n if ( temp_contact != NULL && temp_contact -> alias != NULL ) comment_author = temp_contact -> alias ;\n else comment_author = current_authdata . username ;\n printf ( \"<BR>\" ) ;\n switch ( cmd ) {\n case CMD_ADD_HOST_COMMENT : case CMD_ADD_SVC_COMMENT : snprintf ( action , sizeof ( action ) , \"Add %s comments\" , ( cmd == CMD_ADD_HOST_COMMENT ) ? \"host\" : \"service\" ) ;\n break ;\n case CMD_DEL_HOST_COMMENT : case CMD_DEL_SVC_COMMENT : snprintf ( action , sizeof ( action ) , \"Delete %s comments\" , ( cmd == CMD_DEL_HOST_COMMENT ) ? \"host\" : \"service\" ) ;\n break ;\n case CMD_DELAY_HOST_NOTIFICATION : case CMD_DELAY_SVC_NOTIFICATION : snprintf ( help_text , sizeof ( help_text ) , \"This command is used to delay the next problem notification that is sent out for specified %s. The notification delay will be disregarded if \" \"the %s changes state before the next notification is scheduled to be sent out. This command has no effect if the %s are currently %s.\" , ( cmd == CMD_DELAY_HOST_NOTIFICATION ) ? \"hosts\" : \"services\" , ( cmd == CMD_DELAY_HOST_NOTIFICATION ) ? \"hosts\" : \"services\" , ( cmd == CMD_DELAY_HOST_NOTIFICATION ) ? \"hosts\" : \"services\" , ( cmd == CMD_DELAY_HOST_NOTIFICATION ) ? \"UP\" : \"in an OK state\" ) ;\n snprintf ( action , sizeof ( action ) , \"Delay a %s notification\" , ( cmd == CMD_DELAY_HOST_NOTIFICATION ) ? \"host\" : \"service\" ) ;\n break ;\n case CMD_SCHEDULE_HOST_CHECK : case CMD_SCHEDULE_SVC_CHECK : snprintf ( help_text , sizeof ( help_text ) , \"This command is used to schedule the next check of these %s. %s will re-queue the %s to be checked at the time you specify.\" , ( cmd == CMD_SCHEDULE_HOST_CHECK ) ? \"hosts\" : \"services\" , PROGRAM_NAME , ( cmd == CMD_SCHEDULE_HOST_CHECK ) ? \"host\" : \"service\" ) ;\n snprintf ( action , sizeof ( action ) , \"Schedule %s checks\" , ( cmd == CMD_SCHEDULE_HOST_CHECK ) ? \"host\" : \"service\" ) ;\n break ;\n case CMD_ENABLE_SVC_CHECK : case CMD_DISABLE_SVC_CHECK : snprintf ( action , sizeof ( action ) , \"%s active service checks on a program-wide basis\" , ( cmd == CMD_ENABLE_SVC_CHECK ) ? \"Enable\" : \"Disable\" ) ;\n break ;\n case CMD_ENABLE_NOTIFICATIONS : case CMD_DISABLE_NOTIFICATIONS : snprintf ( help_text , sizeof ( help_text ) , \"This command is used to %s host and service notifications on a program-wide basis\" , ( cmd == CMD_ENABLE_NOTIFICATIONS ) ? \"enable\" : \"disable\" ) ;\n snprintf ( action , sizeof ( action ) , \"%s notifications on a program-wide basis\" , ( cmd == CMD_ENABLE_NOTIFICATIONS ) ? \"Enable\" : \"Disable\" ) ;\n break ;\n case CMD_DISABLE_NOTIFICATIONS_EXPIRE_TIME : snprintf ( help_text , sizeof ( help_text ) , \"This command is used to disable host and service notifications on a program-wide basis, with a given expire time\" ) ;\n snprintf ( action , sizeof ( action ) , \"Disable notifications on a program-wide basis, with expire time\" ) ;\n break ;\n case CMD_SHUTDOWN_PROCESS : case CMD_RESTART_PROCESS : snprintf ( action , sizeof ( action ) , \"%s the %s process\" , ( cmd == CMD_SHUTDOWN_PROCESS ) ? \"Shutdown\" : \"Restart\" , PROGRAM_NAME ) ;\n break ;\n case CMD_ENABLE_HOST_SVC_CHECKS : case CMD_DISABLE_HOST_SVC_CHECKS : if ( cmd == CMD_ENABLE_HOST_SVC_CHECKS ) snprintf ( help_text , sizeof ( help_text ) , \"This command is used to enable active checks of all services associated with the specified host\" ) ;\n else {\n snprintf ( help_text , sizeof ( help_text ) , \"This command is used to disable active checks of all services associated with the specified host. \" \"When a service is disabled %s will not monitor the service. Doing this will prevent any notifications being sent out for \" \"the specified service while it is disabled. In order to have %s check the service in the future you will have to re-enable the service. \" \"Note that disabling service checks may not necessarily prevent notifications from being sent out about the host which those services are associated with.\" , PROGRAM_NAME , PROGRAM_NAME ) ;\n }\n snprintf ( action , sizeof ( action ) , \"%s active checks of all services on these hosts\" , ( cmd == CMD_ENABLE_HOST_SVC_CHECKS ) ? \"Enable\" : \"Disable\" ) ;\n break ;\n case CMD_SCHEDULE_HOST_SVC_CHECKS : snprintf ( action , sizeof ( action ) , \"Schedule a check of all services for these hosts\" ) ;\n break ;\n case CMD_DEL_ALL_HOST_COMMENTS : case CMD_DEL_ALL_SVC_COMMENTS : snprintf ( action , sizeof ( action ) , \"Delete all comments for these %s\" , ( cmd == CMD_DEL_ALL_HOST_COMMENTS ) ? \"hosts\" : \"services\" ) ;\n break ;\n case CMD_ENABLE_SVC_NOTIFICATIONS : case CMD_DISABLE_SVC_NOTIFICATIONS : snprintf ( action , sizeof ( action ) , \"%s notifications for these services\" , ( cmd == CMD_ENABLE_SVC_NOTIFICATIONS ) ? \"Enable\" : \"Disable\" ) ;\n break ;\n case CMD_ENABLE_HOST_NOTIFICATIONS : case CMD_DISABLE_HOST_NOTIFICATIONS : snprintf ( action , sizeof ( action ) , \"%s notifications for these hosts\" , ( cmd == CMD_ENABLE_HOST_NOTIFICATIONS ) ? \"Enable\" : \"Disable\" ) ;\n break ;\n case CMD_ENABLE_ALL_NOTIFICATIONS_BEYOND_HOST : case CMD_DISABLE_ALL_NOTIFICATIONS_BEYOND_HOST : snprintf ( help_text , sizeof ( help_text ) , \"This command is used to %s notifications for all hosts and services that lie <i>beyond</i> the specified host (from the view of %s).\" , ( cmd == CMD_ENABLE_ALL_NOTIFICATIONS_BEYOND_HOST ) ? \"enable\" : \"disable\" , PROGRAM_NAME ) ;\n snprintf ( action , sizeof ( action ) , \"%s notifications for all hosts and services beyond these hosts\" , ( cmd == CMD_ENABLE_ALL_NOTIFICATIONS_BEYOND_HOST ) ? \"Enable\" : \"Disable\" ) ;\n break ;\n case CMD_ENABLE_HOST_SVC_NOTIFICATIONS : case CMD_DISABLE_HOST_SVC_NOTIFICATIONS : snprintf ( action , sizeof ( action ) , \"%s notifications for all services on these hosts\" , ( cmd == CMD_ENABLE_HOST_SVC_NOTIFICATIONS ) ? \"Enable\" : \"Disable\" ) ;\n break ;\n case CMD_ACKNOWLEDGE_HOST_PROBLEM : case CMD_ACKNOWLEDGE_SVC_PROBLEM : snprintf ( action , sizeof ( action ) , \"Acknowledge %s problems\" , ( cmd == CMD_ACKNOWLEDGE_HOST_PROBLEM ) ? \"host\" : \"service\" ) ;\n break ;\n case CMD_START_EXECUTING_HOST_CHECKS : case CMD_STOP_EXECUTING_HOST_CHECKS : snprintf ( action , sizeof ( action ) , \"%s executing host checks on a program-wide basis\" , ( cmd == CMD_START_EXECUTING_HOST_CHECKS ) ? \"Start\" : \"Stop\" ) ;\n break ;\n case CMD_START_EXECUTING_SVC_CHECKS : case CMD_STOP_EXECUTING_SVC_CHECKS : if ( cmd == CMD_START_EXECUTING_SVC_CHECKS ) snprintf ( help_text , sizeof ( help_text ) , \"This command is used to resume execution of active service checks on a program-wide basis. Individual services which are disabled will still not be checked.\" ) ;\n else snprintf ( help_text , sizeof ( help_text ) , \"This command is used to temporarily stop %s from actively executing any service checks. This will have the side effect of preventing any notifications from being sent out (for any and all services and hosts). \" \"Service checks will not be executed again until you issue a command to resume service check execution.\" , PROGRAM_NAME ) ;\n snprintf ( action , sizeof ( action ) , \"%s executing active service checks\" , ( cmd == CMD_START_EXECUTING_SVC_CHECKS ) ? \"Start\" : \"Stop\" ) ;\n break ;\n case CMD_START_ACCEPTING_PASSIVE_SVC_CHECKS : case CMD_STOP_ACCEPTING_PASSIVE_SVC_CHECKS : snprintf ( help_text , sizeof ( help_text ) , \"This command is used to make %s %s accepting passive service check results that it finds in the external command file.\" , PROGRAM_NAME , ( cmd == CMD_START_ACCEPTING_PASSIVE_SVC_CHECKS ) ? \"start\" : \"stop\" ) ;\n snprintf ( action , sizeof ( action ) , \"%s accepting passive service checks on a program-wide basis\" , ( cmd == CMD_START_ACCEPTING_PASSIVE_SVC_CHECKS ) ? \"Start\" : \"Stop\" ) ;\n break ;\n case CMD_ENABLE_PASSIVE_SVC_CHECKS : case CMD_DISABLE_PASSIVE_SVC_CHECKS : if ( cmd == CMD_ENABLE_PASSIVE_SVC_CHECKS ) snprintf ( help_text , sizeof ( help_text ) , \"This command is used to allow %s to accept passive service check results that it finds in the external command file for this particular service.\" , PROGRAM_NAME ) ;\n else snprintf ( help_text , sizeof ( help_text ) , \"This command is used to stop %s accepting passive service check results that it finds in the external command file for this particular service. All passive check results that are found for this service will be ignored.\" , PROGRAM_NAME ) ;\n snprintf ( action , sizeof ( action ) , \"%s accepting passive service checks for these services\" , ( cmd == CMD_ENABLE_PASSIVE_SVC_CHECKS ) ? \"Start\" : \"Stop\" ) ;\n break ;\n case CMD_ENABLE_EVENT_HANDLERS : case CMD_DISABLE_EVENT_HANDLERS : if ( cmd == CMD_ENABLE_EVENT_HANDLERS ) snprintf ( help_text , sizeof ( help_text ) , \"This command is used to allow %s to run host and service event handlers.\" , PROGRAM_NAME ) ;\n else snprintf ( help_text , sizeof ( help_text ) , \"This command is used to temporarily prevent %s from running any host or service event handlers.\" , PROGRAM_NAME ) ;\n snprintf ( action , sizeof ( action ) , \"%s event handlers on a program-wide basis\" , ( cmd == CMD_ENABLE_EVENT_HANDLERS ) ? \"Enable\" : \"Disable\" ) ;\n break ;\n case CMD_ENABLE_HOST_EVENT_HANDLER : case CMD_DISABLE_HOST_EVENT_HANDLER : snprintf ( help_text , sizeof ( help_text ) , \"This command is used to %s the event handler for the selected hosts\" , ( cmd == CMD_ENABLE_HOST_EVENT_HANDLER ) ? \"enable\" : \"disable\" ) ;\n snprintf ( action , sizeof ( action ) , \"%s the event handler for these hosts\" , ( cmd == CMD_ENABLE_HOST_EVENT_HANDLER ) ? \"Enable\" : \"Disable\" ) ;\n break ;\n case CMD_ENABLE_SVC_EVENT_HANDLER : case CMD_DISABLE_SVC_EVENT_HANDLER : snprintf ( help_text , sizeof ( help_text ) , \"This command is used to %s the event handler for the selected services\" , ( cmd == CMD_ENABLE_SVC_EVENT_HANDLER ) ? \"enable\" : \"disable\" ) ;\n snprintf ( action , sizeof ( action ) , \"%s the event handler for these services\" , ( cmd == CMD_ENABLE_SVC_EVENT_HANDLER ) ? \"Enable\" : \"Disable\" ) ;\n break ;\n case CMD_ENABLE_HOST_CHECK : case CMD_DISABLE_HOST_CHECK : if ( cmd == CMD_DISABLE_HOST_CHECK ) snprintf ( help_text , sizeof ( help_text ) , \"This command is used to temporarily prevent %s from actively checking the status of a particular host. If %s needs to check the status of this host, it will assume that it is in the same state that it was in before checks were disabled.\" , PROGRAM_NAME , PROGRAM_NAME ) ;\n snprintf ( action , sizeof ( action ) , \"%s active host checks\" , ( cmd == CMD_ENABLE_HOST_CHECK ) ? \"Enable\" : \"Disable\" ) ;\n break ;\n case CMD_STOP_OBSESSING_OVER_SVC_CHECKS : case CMD_START_OBSESSING_OVER_SVC_CHECKS : if ( cmd == CMD_START_OBSESSING_OVER_SVC_CHECKS ) snprintf ( help_text , sizeof ( help_text ) , \"This command is used to have %s start obsessing over service checks. Read the documentation on distributed monitoring for more information on this.\" , PROGRAM_NAME ) ;\n snprintf ( action , sizeof ( action ) , \"%s obsessing over service checks on a program-wide basis\" , ( cmd == CMD_STOP_OBSESSING_OVER_SVC_CHECKS ) ? \"Stop\" : \"Start\" ) ;\n break ;\n case CMD_REMOVE_HOST_ACKNOWLEDGEMENT : case CMD_REMOVE_SVC_ACKNOWLEDGEMENT : snprintf ( help_text , sizeof ( help_text ) , \"This command is used to remove an acknowledgement for %s problems. Once the acknowledgement is removed, notifications may start being \" \"sent out about the %s problem.\" , ( cmd == CMD_REMOVE_HOST_ACKNOWLEDGEMENT ) ? \"host\" : \"service\" , ( cmd == CMD_REMOVE_HOST_ACKNOWLEDGEMENT ) ? \"host\" : \"service\" ) ;\n snprintf ( action , sizeof ( action ) , \"Remove %s acknowledgements\" , ( cmd == CMD_REMOVE_HOST_ACKNOWLEDGEMENT ) ? \"host\" : \"service\" ) ;\n break ;\n case CMD_SCHEDULE_HOST_DOWNTIME : case CMD_SCHEDULE_SVC_DOWNTIME : snprintf ( help_text , sizeof ( help_text ) , \"This command is used to schedule downtime for these %s. During the specified downtime, %s will not send notifications out about the %s. \" \"When the scheduled downtime expires, %s will send out notifications for this %s as it normally would. Scheduled downtimes are preserved \" \"across program shutdowns and restarts.\" , ( cmd == CMD_SCHEDULE_HOST_DOWNTIME ) ? \"hosts\" : \"services\" , PROGRAM_NAME , ( cmd == CMD_SCHEDULE_HOST_DOWNTIME ) ? \"hosts\" : \"services\" , PROGRAM_NAME , ( cmd == CMD_SCHEDULE_HOST_DOWNTIME ) ? \"hosts\" : \"services\" ) ;\n snprintf ( action , sizeof ( action ) , \"Schedule downtime for these %s\" , ( cmd == CMD_SCHEDULE_HOST_DOWNTIME ) ? \"hosts\" : \"services\" ) ;\n break ;\n case CMD_DEL_DOWNTIME_BY_HOST_NAME : snprintf ( help_text , sizeof ( help_text ) , \"This command is used to delete all downtimes for a host and all its services specified by the host name already supplied.\" ) ;\n snprintf ( action , sizeof ( action ) , \"Remove downtimes for all services for these hosts and the hosts themself\" ) ;\n break ;\n case CMD_SCHEDULE_HOST_SVC_DOWNTIME : snprintf ( help_text , sizeof ( help_text ) , \"This command is used to schedule downtime for a particular host and all of its services. During the specified downtime, %s will not send notifications out about the host. \" \"Normally, a host in downtime will not send alerts about any services in a failed state. This option will explicitly set downtime for all services for this host. \" \"When the scheduled downtime expires, %s will send out notifications for this host as it normally would. Scheduled downtimes are preserved \" \"across program shutdowns and restarts.\" , PROGRAM_NAME , PROGRAM_NAME ) ;\n snprintf ( action , sizeof ( action ) , \"Schedule downtime for all services for these hosts and the hosts themself\" ) ;\n break ;\n case CMD_PROCESS_HOST_CHECK_RESULT : case CMD_PROCESS_SERVICE_CHECK_RESULT : snprintf ( help_text , sizeof ( help_text ) , \"This command is used to submit a passive check result for these %s. \" \"It is particularly useful for resetting security-related %s to %s states once they have been dealt with.\" , ( cmd == CMD_PROCESS_HOST_CHECK_RESULT ) ? \"hosts\" : \"services\" , ( cmd == CMD_PROCESS_HOST_CHECK_RESULT ) ? \"hosts\" : \"services\" , ( cmd == CMD_PROCESS_HOST_CHECK_RESULT ) ? \"UP\" : \"OK\" ) ;\n snprintf ( action , sizeof ( action ) , \"Submit a passive check result for these %s\" , ( cmd == CMD_PROCESS_HOST_CHECK_RESULT ) ? \"hosts\" : \"services\" ) ;\n break ;\n case CMD_ENABLE_HOST_FLAP_DETECTION : case CMD_DISABLE_HOST_FLAP_DETECTION : snprintf ( action , sizeof ( action ) , \"%s flap detection for these hosts\" , ( cmd == CMD_ENABLE_HOST_FLAP_DETECTION ) ? \"Enable\" : \"Disable\" ) ;\n break ;\n case CMD_ENABLE_SVC_FLAP_DETECTION : case CMD_DISABLE_SVC_FLAP_DETECTION : snprintf ( action , sizeof ( action ) , \"%s flap detection for these services\" , ( cmd == CMD_ENABLE_SVC_FLAP_DETECTION ) ? \"Enable\" : \"Disable\" ) ;\n break ;\n case CMD_ENABLE_FLAP_DETECTION : case CMD_DISABLE_FLAP_DETECTION : snprintf ( action , sizeof ( action ) , \"%s flap detection for hosts and services on a program-wide basis\" , ( cmd == CMD_ENABLE_FLAP_DETECTION ) ? \"Enable\" : \"Disable\" ) ;\n break ;\n case CMD_ENABLE_HOSTGROUP_SVC_NOTIFICATIONS : case CMD_DISABLE_HOSTGROUP_SVC_NOTIFICATIONS : snprintf ( action , sizeof ( action ) , \"%s notifications for all services in a particular hostgroup\" , ( cmd == CMD_ENABLE_HOSTGROUP_SVC_NOTIFICATIONS ) ? \"Enable\" : \"Disable\" ) ;\n break ;\n case CMD_ENABLE_HOSTGROUP_HOST_NOTIFICATIONS : case CMD_DISABLE_HOSTGROUP_HOST_NOTIFICATIONS : snprintf ( action , sizeof ( action ) , \"%s notifications for all hosts in a particular hostgroup\" , ( cmd == CMD_ENABLE_HOSTGROUP_HOST_NOTIFICATIONS ) ? \"Enable\" : \"Disable\" ) ;\n break ;\n case CMD_ENABLE_HOSTGROUP_SVC_CHECKS : case CMD_DISABLE_HOSTGROUP_SVC_CHECKS : snprintf ( action , sizeof ( action ) , \"%s active checks of all services in a particular hostgroup\" , ( cmd == CMD_ENABLE_HOSTGROUP_SVC_CHECKS ) ? \"Enable\" : \"Disable\" ) ;\n break ;\n case CMD_DEL_HOST_DOWNTIME : case CMD_DEL_SVC_DOWNTIME : snprintf ( action , sizeof ( action ) , \"Cancel scheduled downtime for these %s\" , ( cmd == CMD_DEL_HOST_DOWNTIME ) ? \"hosts\" : \"services\" ) ;\n break ;\n case CMD_ENABLE_FAILURE_PREDICTION : case CMD_DISABLE_FAILURE_PREDICTION : snprintf ( action , sizeof ( action ) , \"%s failure prediction for hosts and service on a program-wide basis\" , ( cmd == CMD_ENABLE_FAILURE_PREDICTION ) ? \"Enable\" : \"Disable\" ) ;\n break ;\n case CMD_ENABLE_PERFORMANCE_DATA : case CMD_DISABLE_PERFORMANCE_DATA : snprintf ( action , sizeof ( action ) , \"%s performance data processing for hosts and services on a program-wide basis\" , ( cmd == CMD_ENABLE_PERFORMANCE_DATA ) ? \"Enable\" : \"Disable\" ) ;\n break ;\n case CMD_SCHEDULE_HOSTGROUP_HOST_DOWNTIME : case CMD_SCHEDULE_HOSTGROUP_SVC_DOWNTIME : snprintf ( action , sizeof ( action ) , \"Schedule downtime for all %s in a particular hostgroup\" , ( cmd == CMD_SCHEDULE_HOSTGROUP_HOST_DOWNTIME ) ? \"hosts\" : \"services\" ) ;\n break ;\n case CMD_START_ACCEPTING_PASSIVE_HOST_CHECKS : case CMD_STOP_ACCEPTING_PASSIVE_HOST_CHECKS : snprintf ( action , sizeof ( action ) , \"%s accepting passive host checks on a program-wide basis\" , ( cmd == CMD_START_ACCEPTING_PASSIVE_HOST_CHECKS ) ? \"Start\" : \"Stop\" ) ;\n break ;\n case CMD_ENABLE_PASSIVE_HOST_CHECKS : case CMD_DISABLE_PASSIVE_HOST_CHECKS : snprintf ( action , sizeof ( action ) , \"%s accepting passive checks for these hosts\" , ( cmd == CMD_ENABLE_PASSIVE_HOST_CHECKS ) ? \"Start\" : \"Stop\" ) ;\n break ;\n case CMD_START_OBSESSING_OVER_HOST_CHECKS : case CMD_STOP_OBSESSING_OVER_HOST_CHECKS : snprintf ( action , sizeof ( action ) , \"%s obsessing over host checks on a program-wide basis\" , ( cmd == CMD_START_OBSESSING_OVER_HOST_CHECKS ) ? \"Start\" : \"Stop\" ) ;\n break ;\n case CMD_START_OBSESSING_OVER_SVC : case CMD_STOP_OBSESSING_OVER_SVC : snprintf ( action , sizeof ( action ) , \"%s obsessing over these services\" , ( cmd == CMD_START_OBSESSING_OVER_SVC ) ? \"Start\" : \"Stop\" ) ;\n break ;\n case CMD_START_OBSESSING_OVER_HOST : case CMD_STOP_OBSESSING_OVER_HOST : snprintf ( action , sizeof ( action ) , \"%s obsessing over these hosts\" , ( cmd == CMD_START_OBSESSING_OVER_HOST ) ? \"Start\" : \"Stop\" ) ;\n break ;\n case CMD_ENABLE_SERVICEGROUP_SVC_NOTIFICATIONS : case CMD_DISABLE_SERVICEGROUP_SVC_NOTIFICATIONS : snprintf ( action , sizeof ( action ) , \"%s notifications for all services in a particular servicegroup\" , ( cmd == CMD_ENABLE_SERVICEGROUP_SVC_NOTIFICATIONS ) ? \"Enable\" : \"Disable\" ) ;\n break ;\n case CMD_ENABLE_SERVICEGROUP_HOST_NOTIFICATIONS : case CMD_DISABLE_SERVICEGROUP_HOST_NOTIFICATIONS : snprintf ( action , sizeof ( action ) , \"%s notifications for all hosts in a particular servicegroup\" , ( cmd == CMD_ENABLE_SERVICEGROUP_HOST_NOTIFICATIONS ) ? \"Enable\" : \"Disable\" ) ;\n break ;\n case CMD_ENABLE_SERVICEGROUP_SVC_CHECKS : case CMD_DISABLE_SERVICEGROUP_SVC_CHECKS : snprintf ( action , sizeof ( action ) , \"%s active checks of all services in a particular servicegroup\" , ( cmd == CMD_ENABLE_SERVICEGROUP_SVC_CHECKS ) ? \"Enable\" : \"Disable\" ) ;\n break ;\n case CMD_SCHEDULE_SERVICEGROUP_HOST_DOWNTIME : snprintf ( action , sizeof ( action ) , \"Schedule downtime for all hosts in a particular servicegroup\" ) ;\n break ;\n case CMD_SCHEDULE_SERVICEGROUP_SVC_DOWNTIME : snprintf ( action , sizeof ( action ) , \"Schedule downtime for all services in a particular servicegroup\" ) ;\n break ;\n case CMD_SEND_CUSTOM_HOST_NOTIFICATION : case CMD_SEND_CUSTOM_SVC_NOTIFICATION : snprintf ( help_text , sizeof ( help_text ) , \"This command is used to send a custom notification about the specified %s. Useful in emergencies when you need to notify admins of an issue regarding a monitored system or service.\" , ( cmd == CMD_SEND_CUSTOM_HOST_NOTIFICATION ) ? \"host\" : \"service\" ) ;\n snprintf ( action , sizeof ( action ) , \"Send a custom %s notification\" , ( cmd == CMD_SEND_CUSTOM_HOST_NOTIFICATION ) ? \"host\" : \"service\" ) ;\n break ;\n case CMD_CHANGE_HOST_MODATTR : snprintf ( action , sizeof ( action ) , \"Reset modified attributes for Host(s).\" ) ;\n break ;\n case CMD_CHANGE_SVC_MODATTR : snprintf ( action , sizeof ( action ) , \"Reset modified attributes for Service(s).\" ) ;\n break ;\n default : print_generic_error_message ( \"Sorry Dave, I can't let you do that...\" , \"Executing an unknown command? Shame on you!\" , 2 ) ;\n return ;\n }\n help_text [ sizeof ( help_text ) - 1 ] = '\\x0' ;\n action [ sizeof ( action ) - 1 ] = '\\x0' ;\n printf ( \"<script language=\\\"JavaScript\\\">\\n\" ) ;\n printf ( \"function check_input(){\n\\n\" \" if (document.getElementById('com_data')) {\n\\n\" \" if (document.getElementById('com_data').value == '') {\n\\n\" \" document.getElementById('com_data_error').style.display = '';\n\\n\" \" return false;\n\\n\" \" }\n else {\n\\n\" \" document.getElementById('com_data_error').style.display = 'none';\n\\n\" \" }\n\\n\" \" }\n\\n\" \" if (document.getElementById('plugin_output')) {\n\\n\" \" if (document.getElementById('plugin_output').value == '') {\n\\n\" \" document.getElementById('plugin_output_error').style.display = '';\n\\n\" \" return false;\n\\n\" \" }\n else {\n\\n\" \" document.getElementById('plugin_output_error').style.display = 'none';\n\\n\" \" }\n\\n\" \" }\n\\n\" \" if (document.getElementById('not_dly')) {\n\\n\" \" if (parseInt(document.getElementById('not_dly').value) == 0 ) {\n\\n\" \" document.getElementById('not_dly_error').style.display = '';\n\\n\" \" return false;\n\\n\" \" }\n\\n\" \" }\n\\n\" \" return true;\n\\n\" \"}\n\\n\" \"</script>\\n\" ) ;\n printf ( \"<div align='center'>\\n\" ) ;\n printf ( \"<form method='post' action='%s' onSubmit=\\\"return check_input();\n\\\">\\n\" , CMD_CGI ) ;\n printf ( \"<INPUT TYPE='HIDDEN' NAME='cmd_typ' VALUE='%d'><INPUT TYPE='HIDDEN' NAME='cmd_mod' VALUE='%d'>\\n\" , cmd , CMDMODE_COMMIT ) ;\n printf ( \"<TABLE CELLSPACING='0' CELLPADDING='0'><TR><TD CLASS='boxFrame BoxWidth'>\\n\" ) ;\n printf ( \"<TABLE CELLSPACING='2' CELLPADDING='0' class='contentTable'>\\n\" ) ;\n printf ( \"<tr CLASS='sectionHeader'><td COLSPAN='2'>Action</td></tr>\\n\" ) ;\n printf ( \"<tr><td COLSPAN='2'>%s \" , action ) ;\n if ( strlen ( help_text ) > 2 ) print_help_box ( help_text ) ;\n printf ( \"</td></tr>\\n\" ) ;\n switch ( cmd ) {\n case CMD_ADD_SVC_COMMENT : case CMD_ACKNOWLEDGE_SVC_PROBLEM : case CMD_ADD_HOST_COMMENT : case CMD_ACKNOWLEDGE_HOST_PROBLEM : if ( cmd == CMD_ACKNOWLEDGE_SVC_PROBLEM || cmd == CMD_ADD_SVC_COMMENT ) print_object_list ( PRINT_SERVICE_LIST ) ;\n else print_object_list ( PRINT_HOST_LIST ) ;\n print_form_element ( PRINT_COMMON_HEADER , cmd ) ;\n print_form_element ( PRINT_AUTHOR , cmd ) ;\n print_form_element ( PRINT_COMMENT_BOX , cmd ) ;\n print_form_element ( PRINT_PERSISTENT , cmd ) ;\n if ( cmd == CMD_ACKNOWLEDGE_HOST_PROBLEM || cmd == CMD_ACKNOWLEDGE_SVC_PROBLEM ) {\n print_form_element ( PRINT_EXPIRE_ACKNOWLEDGEMENT , cmd ) ;\n print_form_element ( PRINT_STICKY_ACK , cmd ) ;\n print_form_element ( PRINT_SEND_NOTFICATION , cmd ) ;\n }\n break ;\n case CMD_DEL_HOST_DOWNTIME : case CMD_DEL_SVC_DOWNTIME : case CMD_DEL_HOST_COMMENT : case CMD_DEL_SVC_COMMENT : if ( cmd == CMD_DEL_HOST_COMMENT || cmd == CMD_DEL_SVC_COMMENT ) print_object_list ( PRINT_COMMENT_LIST ) ;\n else print_object_list ( PRINT_DOWNTIME_LIST ) ;\n if ( enforce_comments_on_actions == TRUE ) {\n print_form_element ( PRINT_COMMON_HEADER , cmd ) ;\n print_form_element ( PRINT_AUTHOR , cmd ) ;\n print_form_element ( PRINT_COMMENT_BOX , cmd ) ;\n }\n break ;\n case CMD_DEL_DOWNTIME_BY_HOST_NAME : print_object_list ( PRINT_HOST_LIST ) ;\n print_form_element ( PRINT_COMMON_HEADER , cmd ) ;\n if ( enforce_comments_on_actions == TRUE ) {\n print_form_element ( PRINT_AUTHOR , cmd ) ;\n print_form_element ( PRINT_COMMENT_BOX , cmd ) ;\n }\n break ;\n case CMD_DELAY_SVC_NOTIFICATION : case CMD_DELAY_HOST_NOTIFICATION : if ( cmd == CMD_DELAY_SVC_NOTIFICATION ) print_object_list ( PRINT_SERVICE_LIST ) ;\n else print_object_list ( PRINT_HOST_LIST ) ;\n print_form_element ( PRINT_COMMON_HEADER , cmd ) ;\n if ( enforce_comments_on_actions == TRUE ) {\n print_form_element ( PRINT_AUTHOR , cmd ) ;\n print_form_element ( PRINT_COMMENT_BOX , cmd ) ;\n }\n print_form_element ( PRINT_NOTIFICATION_DELAY , cmd ) ;\n break ;\n case CMD_SCHEDULE_SVC_CHECK : case CMD_SCHEDULE_HOST_CHECK : case CMD_SCHEDULE_HOST_SVC_CHECKS : if ( cmd == CMD_SCHEDULE_SVC_CHECK ) print_object_list ( PRINT_SERVICE_LIST ) ;\n else print_object_list ( PRINT_HOST_LIST ) ;\n print_form_element ( PRINT_COMMON_HEADER , cmd ) ;\n if ( enforce_comments_on_actions == TRUE ) {\n print_form_element ( PRINT_AUTHOR , cmd ) ;\n print_form_element ( PRINT_COMMENT_BOX , cmd ) ;\n }\n print_form_element ( PRINT_CHECK_TIME , cmd ) ;\n print_form_element ( PRINT_FORCE_CHECK , cmd ) ;\n break ;\n case CMD_ENABLE_SVC_CHECK : case CMD_DISABLE_SVC_CHECK : case CMD_DEL_ALL_SVC_COMMENTS : case CMD_ENABLE_SVC_NOTIFICATIONS : case CMD_DISABLE_SVC_NOTIFICATIONS : case CMD_ENABLE_PASSIVE_SVC_CHECKS : case CMD_DISABLE_PASSIVE_SVC_CHECKS : case CMD_ENABLE_SVC_EVENT_HANDLER : case CMD_DISABLE_SVC_EVENT_HANDLER : case CMD_REMOVE_SVC_ACKNOWLEDGEMENT : case CMD_ENABLE_SVC_FLAP_DETECTION : case CMD_DISABLE_SVC_FLAP_DETECTION : case CMD_START_OBSESSING_OVER_SVC : case CMD_STOP_OBSESSING_OVER_SVC : print_object_list ( PRINT_SERVICE_LIST ) ;\n if ( enforce_comments_on_actions == TRUE ) {\n print_form_element ( PRINT_COMMON_HEADER , cmd ) ;\n print_form_element ( PRINT_AUTHOR , cmd ) ;\n print_form_element ( PRINT_COMMENT_BOX , cmd ) ;\n }\n break ;\n case CMD_ENABLE_HOST_SVC_CHECKS : case CMD_DISABLE_HOST_SVC_CHECKS : case CMD_ENABLE_HOST_SVC_NOTIFICATIONS : case CMD_DISABLE_HOST_SVC_NOTIFICATIONS : case CMD_ENABLE_HOST_NOTIFICATIONS : case CMD_DISABLE_HOST_NOTIFICATIONS : case CMD_DEL_ALL_HOST_COMMENTS : case CMD_ENABLE_ALL_NOTIFICATIONS_BEYOND_HOST : case CMD_DISABLE_ALL_NOTIFICATIONS_BEYOND_HOST : case CMD_ENABLE_HOST_EVENT_HANDLER : case CMD_DISABLE_HOST_EVENT_HANDLER : case CMD_ENABLE_HOST_CHECK : case CMD_DISABLE_HOST_CHECK : case CMD_REMOVE_HOST_ACKNOWLEDGEMENT : case CMD_ENABLE_HOST_FLAP_DETECTION : case CMD_DISABLE_HOST_FLAP_DETECTION : case CMD_ENABLE_PASSIVE_HOST_CHECKS : case CMD_DISABLE_PASSIVE_HOST_CHECKS : case CMD_START_OBSESSING_OVER_HOST : case CMD_STOP_OBSESSING_OVER_HOST : print_object_list ( PRINT_HOST_LIST ) ;\n if ( enforce_comments_on_actions == TRUE ) {\n print_form_element ( PRINT_COMMON_HEADER , cmd ) ;\n print_form_element ( PRINT_AUTHOR , cmd ) ;\n print_form_element ( PRINT_COMMENT_BOX , cmd ) ;\n }\n if ( cmd == CMD_ENABLE_HOST_SVC_CHECKS || cmd == CMD_DISABLE_HOST_SVC_CHECKS || cmd == CMD_ENABLE_HOST_SVC_NOTIFICATIONS || cmd == CMD_DISABLE_HOST_SVC_NOTIFICATIONS || cmd == CMD_ENABLE_HOST_NOTIFICATIONS || cmd == CMD_DISABLE_HOST_NOTIFICATIONS ) {\n if ( enforce_comments_on_actions != TRUE ) print_form_element ( PRINT_COMMON_HEADER , cmd ) ;\n }\n if ( cmd == CMD_ENABLE_HOST_SVC_CHECKS || cmd == CMD_DISABLE_HOST_SVC_CHECKS || cmd == CMD_ENABLE_HOST_SVC_NOTIFICATIONS || cmd == CMD_DISABLE_HOST_SVC_NOTIFICATIONS ) {\n snprintf ( help_text , sizeof ( help_text ) , \"This %s %s of the host too.\" , ( cmd == CMD_ENABLE_HOST_SVC_CHECKS || cmd == CMD_ENABLE_HOST_SVC_NOTIFICATIONS ) ? \"enables\" : \"disables\" , ( cmd == CMD_ENABLE_HOST_SVC_CHECKS || cmd == CMD_DISABLE_HOST_SVC_CHECKS ) ? \"checks\" : \"notifications\" ) ;\n help_text [ sizeof ( help_text ) - 1 ] = '\\x0' ;\n printf ( \"<tr><td class=\\\"objectDescription descriptionleft\\\">%s For Host Too:\" , ( cmd == CMD_ENABLE_HOST_SVC_CHECKS || cmd == CMD_ENABLE_HOST_SVC_NOTIFICATIONS ) ? \"Enable\" : \"Disable\" ) ;\n print_help_box ( help_text ) ;\n printf ( \"</td><td align=\\\"left\\\"><INPUT TYPE='checkbox' NAME='ahas'></td></tr>\\n\" ) ;\n }\n if ( cmd == CMD_ENABLE_HOST_NOTIFICATIONS || cmd == CMD_DISABLE_HOST_NOTIFICATIONS ) {\n snprintf ( help_text , sizeof ( help_text ) , \"%s notifications te be sent out to child hosts.\" , ( cmd == CMD_ENABLE_HOST_NOTIFICATIONS ) ? \"Enable\" : \"Disable\" ) ;\n help_text [ sizeof ( help_text ) - 1 ] = '\\x0' ;\n printf ( \"<tr><td class=\\\"objectDescription descriptionleft\\\">%s Notifications For Child Hosts Too:\" , ( cmd == CMD_ENABLE_HOST_NOTIFICATIONS ) ? \"Enable\" : \"Disable\" ) ;\n print_help_box ( help_text ) ;\n printf ( \"</td><td align=\\\"left\\\"><INPUT TYPE='checkbox' NAME='ptc'></td></tr>\\n\" ) ;\n }\n break ;\n case CMD_ENABLE_NOTIFICATIONS : case CMD_DISABLE_NOTIFICATIONS : case CMD_SHUTDOWN_PROCESS : case CMD_RESTART_PROCESS : case CMD_START_EXECUTING_SVC_CHECKS : case CMD_STOP_EXECUTING_SVC_CHECKS : case CMD_START_ACCEPTING_PASSIVE_SVC_CHECKS : case CMD_STOP_ACCEPTING_PASSIVE_SVC_CHECKS : case CMD_ENABLE_EVENT_HANDLERS : case CMD_DISABLE_EVENT_HANDLERS : case CMD_START_OBSESSING_OVER_SVC_CHECKS : case CMD_STOP_OBSESSING_OVER_SVC_CHECKS : case CMD_ENABLE_FLAP_DETECTION : case CMD_DISABLE_FLAP_DETECTION : case CMD_ENABLE_FAILURE_PREDICTION : case CMD_DISABLE_FAILURE_PREDICTION : case CMD_ENABLE_PERFORMANCE_DATA : case CMD_DISABLE_PERFORMANCE_DATA : case CMD_START_EXECUTING_HOST_CHECKS : case CMD_STOP_EXECUTING_HOST_CHECKS : case CMD_START_ACCEPTING_PASSIVE_HOST_CHECKS : case CMD_STOP_ACCEPTING_PASSIVE_HOST_CHECKS : case CMD_START_OBSESSING_OVER_HOST_CHECKS : case CMD_STOP_OBSESSING_OVER_HOST_CHECKS : if ( cmd == CMD_DISABLE_NOTIFICATIONS ) {\n print_form_element ( PRINT_EXPIRE_DISABLE_NOTIFICATIONS , cmd ) ;\n }\n if ( enforce_comments_on_actions == TRUE ) {\n print_form_element ( PRINT_COMMON_HEADER , cmd ) ;\n print_form_element ( PRINT_AUTHOR , cmd ) ;\n print_form_element ( PRINT_COMMENT_BOX , cmd ) ;\n }\n else {\n if ( cmd != CMD_DISABLE_NOTIFICATIONS ) {\n printf ( \"<tr><td COLSPAN=\\\"2\\\">&nbsp;\n</td></tr>\\n\" ) ;\n printf ( \"<tr><td CLASS='objectDescription' colspan=2>There are no options for this command.<br>Click the 'Commit' button to submit the command.</td></tr>\\n\" ) ;\n }\n }\n break ;\n case CMD_PROCESS_HOST_CHECK_RESULT : case CMD_PROCESS_SERVICE_CHECK_RESULT : if ( cmd == CMD_PROCESS_SERVICE_CHECK_RESULT ) print_object_list ( PRINT_SERVICE_LIST ) ;\n else print_object_list ( PRINT_HOST_LIST ) ;\n print_form_element ( PRINT_COMMON_HEADER , cmd ) ;\n if ( enforce_comments_on_actions == TRUE ) {\n print_form_element ( PRINT_AUTHOR , cmd ) ;\n print_form_element ( PRINT_COMMENT_BOX , cmd ) ;\n }\n snprintf ( help_text , sizeof ( help_text ) , \"Set the state which should be send to %s for this %s.\" , PROGRAM_NAME , ( cmd == CMD_PROCESS_HOST_CHECK_RESULT ) ? \"hosts\" : \"services\" ) ;\n help_text [ sizeof ( help_text ) - 1 ] = '\\x0' ;\n printf ( \"<tr><td class=\\\"objectDescription descriptionleft\\\">Check Result:\" ) ;\n print_help_box ( help_text ) ;\n printf ( \"</td><td align=\\\"left\\\">\\n\" ) ;\n printf ( \"\\t<SELECT NAME='plugin_state'>\\n\" ) ;\n if ( cmd == CMD_PROCESS_SERVICE_CHECK_RESULT ) {\n printf ( \"\\t\\t<OPTION VALUE=%d SELECTED>OK</OPTION>\\n\" , STATE_OK ) ;\n printf ( \"\\t\\t<OPTION VALUE=%d>WARNING</OPTION>\\n\" , STATE_WARNING ) ;\n printf ( \"\\t\\t<OPTION VALUE=%d>UNKNOWN</OPTION>\\n\" , STATE_UNKNOWN ) ;\n printf ( \"\\t\\t<OPTION VALUE=%d>CRITICAL</OPTION>\\n\" , STATE_CRITICAL ) ;\n }\n else {\n printf ( \"\\t\\t<OPTION VALUE=0 SELECTED>UP</OPTION>\\n\" ) ;\n printf ( \"\\t\\t<OPTION VALUE=1>DOWN</OPTION>\\n\" ) ;\n printf ( \"\\t\\t<OPTION VALUE=2>UNREACHABLE</OPTION>\\n\" ) ;\n }\n printf ( \"\\t</SELECT>\\n\" ) ;\n printf ( \"</td></tr>\\n\" ) ;\n print_form_element ( PRINT_CHECK_OUTPUT_BOX , cmd ) ;\n print_form_element ( PRINT_PERFORMANCE_DATA_BOX , cmd ) ;\n break ;\n case CMD_SCHEDULE_HOST_DOWNTIME : case CMD_SCHEDULE_HOST_SVC_DOWNTIME : case CMD_SCHEDULE_SVC_DOWNTIME : if ( cmd == CMD_SCHEDULE_SVC_DOWNTIME ) print_object_list ( PRINT_SERVICE_LIST ) ;\n else print_object_list ( PRINT_HOST_LIST ) ;\n print_form_element ( PRINT_COMMON_HEADER , cmd ) ;\n print_form_element ( PRINT_AUTHOR , cmd ) ;\n print_form_element ( PRINT_COMMENT_BOX , cmd ) ;\n snprintf ( help_text , sizeof ( help_text ) , \"Define here if this downtime should get triggerd by another downtime of a particular %s.\" , ( cmd == CMD_PROCESS_HOST_CHECK_RESULT ) ? \"host\" : \"service\" ) ;\n help_text [ sizeof ( help_text ) - 1 ] = '\\x0' ;\n printf ( \"<tr id=\\\"trigger_select\\\"><td class=\\\"objectDescription descriptionleft\\\">Triggered By:\" ) ;\n print_help_box ( help_text ) ;\n printf ( \"</td><td align=\\\"left\\\">\\n\" ) ;\n printf ( \"\\t<SELECT name='trigger'>\\n\" ) ;\n printf ( \"\\t\\t<OPTION VALUE='0'>N/A</OPTION>\\n\" ) ;\n for ( temp_downtime = scheduled_downtime_list ;\n temp_downtime != NULL ;\n temp_downtime = temp_downtime -> next ) {\n if ( temp_downtime -> type != HOST_DOWNTIME ) continue ;\n temp_host = find_host ( temp_downtime -> host_name ) ;\n if ( is_authorized_for_host ( temp_host , & current_authdata ) == FALSE ) continue ;\n printf ( \"\\t\\t<OPTION VALUE='%lu'>\" , temp_downtime -> downtime_id ) ;\n get_time_string ( & temp_downtime -> start_time , start_time , sizeof ( start_time ) , SHORT_DATE_TIME ) ;\n printf ( \"ID: %lu, Host '%s' starting @ %s</OPTION>\\n\" , temp_downtime -> downtime_id , temp_downtime -> host_name , start_time ) ;\n found_trigger_objects = TRUE ;\n }\n for ( temp_downtime = scheduled_downtime_list ;\n temp_downtime != NULL ;\n temp_downtime = temp_downtime -> next ) {\n if ( temp_downtime -> type != SERVICE_DOWNTIME ) continue ;\n printf ( \"\\t\\t<OPTION VALUE='%lu'>\" , temp_downtime -> downtime_id ) ;\n get_time_string ( & temp_downtime -> start_time , start_time , sizeof ( start_time ) , SHORT_DATE_TIME ) ;\n printf ( \"ID: %lu, Service '%s' on host '%s' starting @ %s</OPTION>\\n\" , temp_downtime -> downtime_id , temp_downtime -> service_description , temp_downtime -> host_name , start_time ) ;\n found_trigger_objects = TRUE ;\n }\n printf ( \"\\t</SELECT>\\n\" ) ;\n printf ( \"</td></tr>\\n\" ) ;\n if ( ! found_trigger_objects ) printf ( \"<tr style=\\\"display:none;\n\\\"><td colspan=2><script language=\\\"JavaScript\\\">document.getElementById('trigger_select').style.display = 'none';\n</script></td></tr>\\n\" ) ;\n print_form_element ( PRINT_START_TIME , cmd ) ;\n print_form_element ( PRINT_END_TIME , cmd ) ;\n print_form_element ( PRINT_FIXED_FLEXIBLE_TYPE , cmd ) ;\n if ( cmd == CMD_SCHEDULE_HOST_DOWNTIME ) {\n snprintf ( help_text , sizeof ( help_text ) , \"Define here what should be done with the child hosts of these hosts.\" ) ;\n help_text [ sizeof ( help_text ) - 1 ] = '\\x0' ;\n printf ( \"<tr><td class=\\\"objectDescription descriptionleft\\\">Child Hosts:\" ) ;\n print_help_box ( help_text ) ;\n printf ( \"</td><td align=\\\"left\\\">\\n\" ) ;\n printf ( \"\\t<SELECT name='childoptions'>\\n\" ) ;\n printf ( \"\\t\\t<OPTION VALUE='0'>Do nothing with child hosts</OPTION>\\n\" ) ;\n printf ( \"\\t\\t<OPTION VALUE='1'>Schedule triggered downtime for all child hosts</OPTION>\\n\" ) ;\n printf ( \"\\t\\t<OPTION VALUE='2'>Schedule non-triggered downtime for all child hosts</OPTION>\\n\" ) ;\n printf ( \"\\t</SELECT>\\n\" ) ;\n printf ( \"</td></tr>\\n\" ) ;\n }\n break ;\n case CMD_ENABLE_HOSTGROUP_SVC_NOTIFICATIONS : case CMD_DISABLE_HOSTGROUP_SVC_NOTIFICATIONS : case CMD_ENABLE_HOSTGROUP_HOST_NOTIFICATIONS : case CMD_DISABLE_HOSTGROUP_HOST_NOTIFICATIONS : case CMD_ENABLE_HOSTGROUP_SVC_CHECKS : case CMD_DISABLE_HOSTGROUP_SVC_CHECKS : printf ( \"<tr><td COLSPAN=\\\"2\\\">&nbsp;\n</td></tr>\\n\" ) ;\n printf ( \"<tr class=\\\"statusEven\\\" ><td width=\\\"50%%\\\" style=\\\"font-weight:bold;\n\\\">Hostgroup Name:</td>\" ) ;\n printf ( \"<td><INPUT TYPE='HIDDEN' NAME='hostgroup' VALUE='%s'>%s</td></tr>\\n\" , escape_string ( hostgroup_name ) , escape_string ( hostgroup_name ) ) ;\n if ( enforce_comments_on_actions == TRUE ) {\n print_form_element ( PRINT_COMMON_HEADER , cmd ) ;\n print_form_element ( PRINT_AUTHOR , cmd ) ;\n print_form_element ( PRINT_COMMENT_BOX , cmd ) ;\n }\n if ( cmd == CMD_ENABLE_HOSTGROUP_SVC_CHECKS || cmd == CMD_DISABLE_HOSTGROUP_SVC_CHECKS || cmd == CMD_ENABLE_HOSTGROUP_SVC_NOTIFICATIONS || cmd == CMD_DISABLE_HOSTGROUP_SVC_NOTIFICATIONS ) {\n if ( enforce_comments_on_actions != TRUE ) print_form_element ( PRINT_COMMON_HEADER , cmd ) ;\n printf ( \"<tr><td class=\\\"objectDescription descriptionleft\\\">%s For Hosts Too:</td><td align=\\\"left\\\">\\n\" , ( cmd == CMD_ENABLE_HOSTGROUP_SVC_CHECKS || cmd == CMD_ENABLE_HOSTGROUP_SVC_NOTIFICATIONS ) ? \"Enable\" : \"Disable\" ) ;\n printf ( \"<INPUT TYPE='checkbox' NAME='ahas'></td></tr>\\n\" ) ;\n }\n break ;\n case CMD_ENABLE_SERVICEGROUP_SVC_NOTIFICATIONS : case CMD_DISABLE_SERVICEGROUP_SVC_NOTIFICATIONS : case CMD_ENABLE_SERVICEGROUP_HOST_NOTIFICATIONS : case CMD_DISABLE_SERVICEGROUP_HOST_NOTIFICATIONS : case CMD_ENABLE_SERVICEGROUP_SVC_CHECKS : case CMD_DISABLE_SERVICEGROUP_SVC_CHECKS : printf ( \"<tr><td COLSPAN=\\\"2\\\">&nbsp;\n</td></tr>\\n\" ) ;\n printf ( \"<tr class=\\\"statusEven\\\"><td width=\\\"50%%\\\" style=\\\"font-weight:bold;\n\\\">Servicegroup Name:</td>\" ) ;\n printf ( \"<td><INPUT TYPE='HIDDEN' NAME='servicegroup' VALUE='%s'>%s</td></tr>\\n\" , escape_string ( servicegroup_name ) , escape_string ( servicegroup_name ) ) ;\n if ( enforce_comments_on_actions == TRUE ) {\n print_form_element ( PRINT_COMMON_HEADER , cmd ) ;\n print_form_element ( PRINT_AUTHOR , cmd ) ;\n print_form_element ( PRINT_COMMENT_BOX , cmd ) ;\n }\n if ( cmd == CMD_ENABLE_SERVICEGROUP_SVC_CHECKS || cmd == CMD_DISABLE_SERVICEGROUP_SVC_CHECKS || cmd == CMD_ENABLE_SERVICEGROUP_SVC_NOTIFICATIONS || cmd == CMD_DISABLE_SERVICEGROUP_SVC_NOTIFICATIONS ) {\n if ( enforce_comments_on_actions != TRUE ) print_form_element ( PRINT_COMMON_HEADER , cmd ) ;\n printf ( \"<tr><td class=\\\"objectDescription descriptionleft\\\">%s For Hosts Too:</td><td align=\\\"left\\\">\\n\" , ( cmd == CMD_ENABLE_SERVICEGROUP_SVC_CHECKS || cmd == CMD_ENABLE_SERVICEGROUP_SVC_NOTIFICATIONS ) ? \"Enable\" : \"Disable\" ) ;\n printf ( \"<INPUT TYPE='checkbox' NAME='ahas'></td></tr>\\n\" ) ;\n }\n break ;\n case CMD_SCHEDULE_HOSTGROUP_HOST_DOWNTIME : case CMD_SCHEDULE_HOSTGROUP_SVC_DOWNTIME : case CMD_SCHEDULE_SERVICEGROUP_HOST_DOWNTIME : case CMD_SCHEDULE_SERVICEGROUP_SVC_DOWNTIME : printf ( \"<tr><td COLSPAN=\\\"2\\\">&nbsp;\n</td></tr>\\n\" ) ;\n printf ( \"<tr class=\\\"statusEven\\\"><td width=\\\"50%%\\\" style=\\\"font-weight:bold;\n\\\">\" ) ;\n if ( cmd == CMD_SCHEDULE_HOSTGROUP_HOST_DOWNTIME || cmd == CMD_SCHEDULE_HOSTGROUP_SVC_DOWNTIME ) printf ( \"Hostgroup Name:</td><td><INPUT TYPE='HIDDEN' NAME='hostgroup' VALUE='%s'>%s</td></tr>\\n\" , escape_string ( hostgroup_name ) , escape_string ( hostgroup_name ) ) ;\n else printf ( \"Servicegroup Name:</td><td><INPUT TYPE='HIDDEN' NAME='servicegroup' VALUE='%s'>%s</td></tr>\\n\" , escape_string ( servicegroup_name ) , escape_string ( servicegroup_name ) ) ;\n print_form_element ( PRINT_COMMON_HEADER , cmd ) ;\n print_form_element ( PRINT_AUTHOR , cmd ) ;\n print_form_element ( PRINT_COMMENT_BOX , cmd ) ;\n print_form_element ( PRINT_START_TIME , cmd ) ;\n print_form_element ( PRINT_END_TIME , cmd ) ;\n print_form_element ( PRINT_FIXED_FLEXIBLE_TYPE , cmd ) ;\n if ( cmd == CMD_SCHEDULE_HOSTGROUP_SVC_DOWNTIME || cmd == CMD_SCHEDULE_SERVICEGROUP_SVC_DOWNTIME ) {\n printf ( \"<tr><td class=\\\"objectDescription descriptionleft\\\">Schedule Downtime For Hosts Too:</td><td align=\\\"left\\\">\\n\" ) ;\n printf ( \"<INPUT TYPE='checkbox' NAME='ahas'></td></tr>\\n\" ) ;\n }\n break ;\n case CMD_SEND_CUSTOM_HOST_NOTIFICATION : case CMD_SEND_CUSTOM_SVC_NOTIFICATION : if ( cmd == CMD_SEND_CUSTOM_SVC_NOTIFICATION ) print_object_list ( PRINT_SERVICE_LIST ) ;\n else print_object_list ( PRINT_HOST_LIST ) ;\n print_form_element ( PRINT_COMMON_HEADER , cmd ) ;\n print_form_element ( PRINT_AUTHOR , cmd ) ;\n print_form_element ( PRINT_COMMENT_BOX , cmd ) ;\n print_form_element ( PRINT_FORCE_NOTIFICATION , cmd ) ;\n print_form_element ( PRINT_BROADCAST_NOTIFICATION , cmd ) ;\n break ;\n case CMD_CHANGE_HOST_MODATTR : print_object_list ( PRINT_HOST_LIST ) ;\n print_form_element ( PRINT_COMMON_HEADER , cmd ) ;\n printf ( \"<tr class=\\\"statusEven\\\"><td width=\\\"50%%\\\" style=\\\"font-weight:bold;\n\\\">Modified Attributes:</td>\" ) ;\n printf ( \"<td><INPUT TYPE='HIDDEN' NAME='attr' VALUE='%lu'>\" , attr ) ;\n print_modified_attributes ( HTML_CONTENT , CMD_CGI , attr ) ;\n printf ( \"</td></tr>\\n\" ) ;\n break ;\n case CMD_CHANGE_SVC_MODATTR : print_object_list ( PRINT_SERVICE_LIST ) ;\n print_form_element ( PRINT_COMMON_HEADER , cmd ) ;\n printf ( \"<tr class=\\\"statusEven\\\"><td width=\\\"50%%\\\" style=\\\"font-weight:bold;\n\\\">Modified Attributes:</td>\" ) ;\n printf ( \"<td><INPUT TYPE='HIDDEN' NAME='attr' VALUE='%lu'>\" , attr ) ;\n print_modified_attributes ( HTML_CONTENT , CMD_CGI , attr ) ;\n printf ( \"</td></tr>\\n\" ) ;\n break ;\n default : printf ( \"<tr><td CLASS='objectDescription' COLSPAN=\\\"2\\\">This should not be happening... :-(</td></tr>\\n\" ) ;\n }\n printf ( \"<tr><td COLSPAN=\\\"2\\\">&nbsp;\n</td></tr>\\n\" ) ;\n printf ( \"<tr CLASS='sectionHeader'><td COLSPAN=\\\"2\\\" class=\\\"commitButton\\\"><INPUT TYPE=\\\"submit\\\" NAME=\\\"btnSubmit\\\" VALUE=\\\"Commit\\\" class=\\\"submitButton\\\">&nbsp;\n&nbsp;\n|&nbsp;\n&nbsp;\n<a HREF=\\\"javascript:window.history.go(-1)\\\">Cancel</a></td></tr>\\n\" ) ;\n printf ( \"</table>\\n\" ) ;\n printf ( \"</td></tr></table>\\n\" ) ;\n printf ( \"</form>\\n\" ) ;\n printf ( \"</div>\\n\" ) ;\n return ;\n }"}
{"idx": 15702, "target": 0, "func": "int connect_n_handle_errors ( struct st_command * command , MYSQL * con , const char * host , const char * user , const char * pass , const char * db , int port , const char * sock ) {\n DYNAMIC_STRING * ds ;\n int failed_attempts = 0 ;\n ds = & ds_res ;\n if ( command -> expected_errors . count > 0 && ! disable_query_log ) {\n dynstr_append_mem ( ds , \"connect(\" , 8 ) ;\n replace_dynstr_append ( ds , host ) ;\n dynstr_append_mem ( ds , \",\" , 1 ) ;\n replace_dynstr_append ( ds , user ) ;\n dynstr_append_mem ( ds , \",\" , 1 ) ;\n replace_dynstr_append ( ds , pass ) ;\n dynstr_append_mem ( ds , \",\" , 1 ) ;\n if ( db ) replace_dynstr_append ( ds , db ) ;\n dynstr_append_mem ( ds , \",\" , 1 ) ;\n replace_dynstr_append_uint ( ds , port ) ;\n dynstr_append_mem ( ds , \",\" , 1 ) ;\n if ( sock ) replace_dynstr_append ( ds , sock ) ;\n dynstr_append_mem ( ds , \")\" , 1 ) ;\n dynstr_append_mem ( ds , delimiter , delimiter_length ) ;\n dynstr_append_mem ( ds , \"\\n\" , 1 ) ;\n }\n if ( ! disable_connect_log && ! disable_query_log ) {\n replace_dynstr_append ( ds , command -> query ) ;\n dynstr_append_mem ( ds , \";\n\\n\" , 2 ) ;\n }\n while ( ! mysql_real_connect ( con , host , user , pass , db , port , sock ? sock : 0 , CLIENT_MULTI_STATEMENTS ) ) {\n if ( ( ( mysql_errno ( con ) == ER_TOO_MANY_USER_CONNECTIONS ) || ( mysql_errno ( con ) == ER_USER_LIMIT_REACHED ) ) && ( failed_attempts ++ < opt_max_connect_retries ) ) {\n int i ;\n i = match_expected_error ( command , mysql_errno ( con ) , mysql_sqlstate ( con ) ) ;\n if ( i >= 0 ) goto do_handle_error ;\n my_sleep ( connection_retry_sleep ) ;\n continue ;\n }\n do_handle_error : var_set_errno ( mysql_errno ( con ) ) ;\n handle_error ( command , mysql_errno ( con ) , mysql_error ( con ) , mysql_sqlstate ( con ) , ds ) ;\n return 0 ;\n }\n var_set_errno ( 0 ) ;\n handle_no_error ( command ) ;\n revert_properties ( ) ;\n return 1 ;\n }"}
{"idx": 15703, "target": 0, "func": "static bool misc_enable_needed ( void * opaque ) {\n X86CPU * cpu = opaque ;\n CPUX86State * env = & cpu -> env ;\n return env -> msr_ia32_misc_enable != MSR_IA32_MISC_ENABLE_DEFAULT ;\n }"}
{"idx": 15704, "target": 0, "func": "static uint64_t pxa2xx_ssp_read ( void * opaque , hwaddr addr , unsigned size ) {\n PXA2xxSSPState * s = ( PXA2xxSSPState * ) opaque ;\n uint32_t retval ;\n switch ( addr ) {\n case SSCR0 : return s -> sscr [ 0 ] ;\n case SSCR1 : return s -> sscr [ 1 ] ;\n case SSPSP : return s -> sspsp ;\n case SSTO : return s -> ssto ;\n case SSITR : return s -> ssitr ;\n case SSSR : return s -> sssr | s -> ssitr ;\n case SSDR : if ( ! s -> enable ) return 0xffffffff ;\n if ( s -> rx_level < 1 ) {\n printf ( \"%s: SSP Rx Underrun\\n\" , __FUNCTION__ ) ;\n return 0xffffffff ;\n }\n s -> rx_level -- ;\n retval = s -> rx_fifo [ s -> rx_start ++ ] ;\n s -> rx_start &= 0xf ;\n pxa2xx_ssp_fifo_update ( s ) ;\n return retval ;\n case SSTSA : return s -> sstsa ;\n case SSRSA : return s -> ssrsa ;\n case SSTSS : return 0 ;\n case SSACD : return s -> ssacd ;\n default : printf ( \"%s: Bad register \" REG_FMT \"\\n\" , __FUNCTION__ , addr ) ;\n break ;\n }\n return 0 ;\n }"}
{"idx": 15705, "target": 0, "func": "proto_item * proto_tree_add_ether_format_value ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , const guint8 * value , const char * format , ... ) {\n proto_item * pi ;\n va_list ap ;\n pi = proto_tree_add_ether ( tree , hfindex , tvb , start , length , value ) ;\n if ( pi != tree ) {\n va_start ( ap , format ) ;\n proto_tree_set_representation_value ( pi , format , ap ) ;\n va_end ( ap ) ;\n }\n return pi ;\n }"}
{"idx": 15706, "target": 0, "func": "static int xan_unpack ( XanContext * s , uint8_t * dest , const int dest_len ) {\n uint8_t opcode ;\n int size ;\n uint8_t * orig_dest = dest ;\n const uint8_t * dest_end = dest + dest_len ;\n while ( dest < dest_end ) {\n if ( bytestream2_get_bytes_left ( & s -> gb ) <= 0 ) return AVERROR_INVALIDDATA ;\n opcode = bytestream2_get_byteu ( & s -> gb ) ;\n if ( opcode < 0xe0 ) {\n int size2 , back ;\n if ( ( opcode & 0x80 ) == 0 ) {\n size = opcode & 3 ;\n back = ( ( opcode & 0x60 ) << 3 ) + bytestream2_get_byte ( & s -> gb ) + 1 ;\n size2 = ( ( opcode & 0x1c ) >> 2 ) + 3 ;\n }\n else if ( ( opcode & 0x40 ) == 0 ) {\n size = bytestream2_peek_byte ( & s -> gb ) >> 6 ;\n back = ( bytestream2_get_be16 ( & s -> gb ) & 0x3fff ) + 1 ;\n size2 = ( opcode & 0x3f ) + 4 ;\n }\n else {\n size = opcode & 3 ;\n back = ( ( opcode & 0x10 ) << 12 ) + bytestream2_get_be16 ( & s -> gb ) + 1 ;\n size2 = ( ( opcode & 0x0c ) << 6 ) + bytestream2_get_byte ( & s -> gb ) + 5 ;\n if ( size + size2 > dest_end - dest ) break ;\n }\n if ( dest + size + size2 > dest_end || dest - orig_dest + size < back ) return AVERROR_INVALIDDATA ;\n bytestream2_get_buffer ( & s -> gb , dest , size ) ;\n dest += size ;\n av_memcpy_backptr ( dest , back , size2 ) ;\n dest += size2 ;\n }\n else {\n int finish = opcode >= 0xfc ;\n size = finish ? opcode & 3 : ( ( opcode & 0x1f ) << 2 ) + 4 ;\n if ( dest_end - dest < size ) return AVERROR_INVALIDDATA ;\n bytestream2_get_buffer ( & s -> gb , dest , size ) ;\n dest += size ;\n if ( finish ) break ;\n }\n }\n return dest - orig_dest ;\n }"}
{"idx": 15707, "target": 1, "func": "static int vorbis_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n vorbis_context * vc = avctx -> priv_data ;\n AVFrame * frame = data ;\n GetBitContext * gb = & vc -> gb ;\n float * channel_ptrs [ 255 ] ;\n int i , len , ret ;\n av_dlog ( NULL , \"packet length %d \\n\" , buf_size ) ;\n frame -> nb_samples = vc -> blocksize [ 1 ] / 2 ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( vc -> audio_channels > 8 ) {\n for ( i = 0 ;\n i < vc -> audio_channels ;\n i ++ ) channel_ptrs [ i ] = ( float * ) frame -> extended_data [ i ] ;\n }\n else {\n for ( i = 0 ;\n i < vc -> audio_channels ;\n i ++ ) {\n int ch = ff_vorbis_channel_layout_offsets [ vc -> audio_channels - 1 ] [ i ] ;\n channel_ptrs [ ch ] = ( float * ) frame -> extended_data [ i ] ;\n }\n }\n init_get_bits ( gb , buf , buf_size * 8 ) ;\n if ( ( len = vorbis_parse_audio_packet ( vc , channel_ptrs ) ) <= 0 ) return len ;\n if ( ! vc -> first_frame ) {\n vc -> first_frame = 1 ;\n * got_frame_ptr = 0 ;\n return buf_size ;\n }\n av_dlog ( NULL , \"parsed %d bytes %d bits, returned %d samples (*ch*bits) \\n\" , get_bits_count ( gb ) / 8 , get_bits_count ( gb ) % 8 , len ) ;\n frame -> nb_samples = len ;\n * got_frame_ptr = 1 ;\n return buf_size ;\n }"}
{"idx": 15708, "target": 0, "func": "static gboolean async_job_start ( NautilusDirectory * directory , const char * job ) {\n # ifdef DEBUG_ASYNC_JOBS char * key ;\n # endif # ifdef DEBUG_START_STOP g_message ( \"starting %s in %p\" , job , directory -> details -> location ) ;\n # endif g_assert ( async_job_count >= 0 ) ;\n g_assert ( async_job_count <= MAX_ASYNC_JOBS ) ;\n if ( async_job_count >= MAX_ASYNC_JOBS ) {\n if ( waiting_directories == NULL ) {\n waiting_directories = g_hash_table_new ( NULL , NULL ) ;\n }\n g_hash_table_insert ( waiting_directories , directory , directory ) ;\n return FALSE ;\n }\n # ifdef DEBUG_ASYNC_JOBS {\n char * uri ;\n if ( async_jobs == NULL ) {\n async_jobs = g_hash_table_new ( g_str_hash , g_str_equal ) ;\n }\n uri = nautilus_directory_get_uri ( directory ) ;\n key = g_strconcat ( uri , \": \" , job , NULL ) ;\n if ( g_hash_table_lookup ( async_jobs , key ) != NULL ) {\n g_warning ( \"same job twice: %s in %s\" , job , uri ) ;\n }\n g_free ( uri ) ;\n g_hash_table_insert ( async_jobs , key , directory ) ;\n }\n # endif async_job_count += 1 ;\n return TRUE ;\n }"}
{"idx": 15709, "target": 0, "func": "int qemuMonitorJSONSystemReset ( qemuMonitorPtr mon ) {\n int ret ;\n virJSONValuePtr cmd = qemuMonitorJSONMakeCommand ( \"system_reset\" , NULL ) ;\n virJSONValuePtr reply = NULL ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 15710, "target": 0, "func": "void * data_create_arabic ( const hb_ot_shape_plan_t * plan ) {\n arabic_shape_plan_t * arabic_plan = ( arabic_shape_plan_t * ) calloc ( 1 , sizeof ( arabic_shape_plan_t ) ) ;\n if ( unlikely ( ! arabic_plan ) ) return NULL ;\n arabic_plan -> do_fallback = plan -> props . script == HB_SCRIPT_ARABIC ;\n for ( unsigned int i = 0 ;\n i < ARABIC_NUM_FEATURES ;\n i ++ ) {\n arabic_plan -> mask_array [ i ] = plan -> map . get_1_mask ( arabic_features [ i ] ) ;\n arabic_plan -> do_fallback = arabic_plan -> do_fallback && ( FEATURE_IS_SYRIAC ( arabic_features [ i ] ) || plan -> map . needs_fallback ( arabic_features [ i ] ) ) ;\n }\n return arabic_plan ;\n }"}
{"idx": 15711, "target": 0, "func": "TSReturnCode TSStringPercentDecode ( const char * str , size_t str_len , char * dst , size_t dst_size , size_t * length ) {\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) str ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) dst ) == TS_SUCCESS ) ;\n if ( 0 == str_len ) {\n str_len = strlen ( str ) ;\n }\n char * buffer = dst ;\n const char * src = str ;\n int s = 0 ;\n unescape_str ( buffer , buffer + dst_size , src , src + str_len , s ) ;\n size_t data_written = std : : min < size_t > ( buffer - dst , dst_size - 1 ) ;\n * ( dst + data_written ) = '\\0' ;\n if ( length ) {\n * length = ( data_written ) ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 15712, "target": 0, "func": "static PHP_NAMED_FUNCTION ( zif_zip_entry_name ) {\n php_zip_entry_get_info ( INTERNAL_FUNCTION_PARAM_PASSTHRU , 0 ) ;\n }"}
{"idx": 15713, "target": 0, "func": "void http_dispatcher_cb ( struct evhttp_request * req , void * arg ) {\n struct evbuffer * evb = evbuffer_new ( ) ;\n event_debug ( ( \"%s: called\\n\" , __func__ ) ) ;\n evbuffer_add_printf ( evb , \"DISPATCHER_TEST\" ) ;\n evhttp_send_reply ( req , HTTP_OK , \"Everything is fine\" , evb ) ;\n evbuffer_free ( evb ) ;\n }"}
{"idx": 15714, "target": 0, "func": "static inline unsigned update_map_generation ( MotionEstContext * c ) {\n c -> map_generation += 1 << ( ME_MAP_MV_BITS * 2 ) ;\n if ( c -> map_generation == 0 ) {\n c -> map_generation = 1 << ( ME_MAP_MV_BITS * 2 ) ;\n memset ( c -> map , 0 , sizeof ( uint32_t ) * ME_MAP_SIZE ) ;\n }\n return c -> map_generation ;\n }"}
{"idx": 15715, "target": 0, "func": "void cpu_synchronize_all_states ( void ) {\n CPUArchState * env ;\n for ( env = first_cpu ;\n env ;\n env = env -> next_cpu ) {\n cpu_synchronize_state ( ENV_GET_CPU ( env ) ) ;\n }\n }"}
{"idx": 15716, "target": 0, "func": "static int decode_mime_header ( AMRWBContext * ctx , const uint8_t * buf ) {\n ctx -> fr_cur_mode = buf [ 0 ] >> 3 & 0x0F ;\n ctx -> fr_quality = ( buf [ 0 ] & 0x4 ) == 0x4 ;\n return 1 ;\n }"}
{"idx": 15717, "target": 0, "func": "static void pdf_set_colorspace ( fz_context * ctx , pdf_run_processor * pr , int what , fz_colorspace * colorspace ) {\n pdf_gstate * gstate = pr -> gstate + pr -> gtop ;\n pdf_material * mat ;\n int n = fz_colorspace_n ( ctx , colorspace ) ;\n gstate = pdf_flush_text ( ctx , pr ) ;\n mat = what == PDF_FILL ? & gstate -> fill : & gstate -> stroke ;\n fz_drop_colorspace ( ctx , mat -> colorspace ) ;\n mat -> kind = PDF_MAT_COLOR ;\n mat -> colorspace = fz_keep_colorspace ( ctx , colorspace ) ;\n mat -> v [ 0 ] = 0 ;\n mat -> v [ 1 ] = 0 ;\n mat -> v [ 2 ] = 0 ;\n mat -> v [ 3 ] = 1 ;\n if ( pdf_is_tint_colorspace ( ctx , colorspace ) ) {\n int i ;\n for ( i = 0 ;\n i < n ;\n i ++ ) mat -> v [ i ] = 1.0f ;\n }\n }"}
{"idx": 15718, "target": 1, "func": "static void cmd_server_add_modify ( const char * data , gboolean add ) {\n GHashTable * optlist ;\n SERVER_SETUP_REC * rec ;\n char * addr , * portstr , * password , * value , * chatnet ;\n void * free_arg ;\n int port ;\n if ( ! cmd_get_params ( data , & free_arg , 3 | PARAM_FLAG_OPTIONS , \"server add\" , & optlist , & addr , & portstr , & password ) ) return ;\n if ( * addr == '\\0' ) cmd_param_error ( CMDERR_NOT_ENOUGH_PARAMS ) ;\n value = g_hash_table_lookup ( optlist , \"port\" ) ;\n if ( * portstr != '\\0' ) port = atoi ( portstr ) ;\n else if ( value != NULL && * value != '\\0' ) port = atoi ( value ) ;\n else if ( g_hash_table_lookup ( optlist , \"tls\" ) || g_hash_table_lookup ( optlist , \"ssl\" ) ) port = DEFAULT_SERVER_ADD_TLS_PORT ;\n else port = DEFAULT_SERVER_ADD_PORT ;\n chatnet = g_hash_table_lookup ( optlist , \"network\" ) ;\n rec = server_setup_find ( addr , port , chatnet ) ;\n if ( rec == NULL ) {\n if ( add == FALSE ) {\n cmd_params_free ( free_arg ) ;\n printformat ( NULL , NULL , MSGLEVEL_CLIENTNOTICE , TXT_SETUPSERVER_NOT_FOUND , addr , port ) ;\n return ;\n }\n rec = create_server_setup ( optlist ) ;\n if ( rec == NULL ) {\n cmd_params_free ( free_arg ) ;\n return ;\n }\n rec -> address = g_strdup ( addr ) ;\n rec -> port = port ;\n }\n else {\n if ( * portstr != '\\0' || g_hash_table_lookup ( optlist , \"port\" ) ) rec -> port = port ;\n if ( * password != '\\0' ) g_free_and_null ( rec -> password ) ;\n if ( g_hash_table_lookup ( optlist , \"host\" ) ) {\n g_free_and_null ( rec -> own_host ) ;\n rec -> own_ip4 = rec -> own_ip6 = NULL ;\n }\n }\n if ( g_hash_table_lookup ( optlist , \"6\" ) ) rec -> family = AF_INET6 ;\n else if ( g_hash_table_lookup ( optlist , \"4\" ) ) rec -> family = AF_INET ;\n if ( g_hash_table_lookup ( optlist , \"tls\" ) || g_hash_table_lookup ( optlist , \"ssl\" ) ) {\n rec -> use_tls = TRUE ;\n }\n else if ( g_hash_table_lookup ( optlist , \"notls\" ) || g_hash_table_lookup ( optlist , \"nossl\" ) ) {\n rec -> use_tls = FALSE ;\n rec -> tls_verify = FALSE ;\n }\n value = g_hash_table_lookup ( optlist , \"tls_cert\" ) ;\n if ( value == NULL ) value = g_hash_table_lookup ( optlist , \"ssl_cert\" ) ;\n if ( value != NULL && * value != '\\0' ) rec -> tls_cert = g_strdup ( value ) ;\n value = g_hash_table_lookup ( optlist , \"tls_pkey\" ) ;\n if ( value == NULL ) value = g_hash_table_lookup ( optlist , \"ssl_pkey\" ) ;\n if ( value != NULL && * value != '\\0' ) rec -> tls_pkey = g_strdup ( value ) ;\n value = g_hash_table_lookup ( optlist , \"tls_pass\" ) ;\n if ( value == NULL ) value = g_hash_table_lookup ( optlist , \"ssl_pass\" ) ;\n if ( value != NULL && * value != '\\0' ) rec -> tls_pass = g_strdup ( value ) ;\n if ( g_hash_table_lookup ( optlist , \"tls_verify\" ) || g_hash_table_lookup ( optlist , \"ssl_verify\" ) ) rec -> tls_verify = TRUE ;\n else if ( g_hash_table_lookup ( optlist , \"notls_verify\" ) || g_hash_table_lookup ( optlist , \"nossl_verify\" ) ) rec -> tls_verify = FALSE ;\n value = g_hash_table_lookup ( optlist , \"tls_cafile\" ) ;\n if ( value == NULL ) value = g_hash_table_lookup ( optlist , \"ssl_cafile\" ) ;\n if ( value != NULL && * value != '\\0' ) rec -> tls_cafile = g_strdup ( value ) ;\n value = g_hash_table_lookup ( optlist , \"tls_capath\" ) ;\n if ( value == NULL ) value = g_hash_table_lookup ( optlist , \"ssl_capath\" ) ;\n if ( value != NULL && * value != '\\0' ) rec -> tls_capath = g_strdup ( value ) ;\n value = g_hash_table_lookup ( optlist , \"tls_ciphers\" ) ;\n if ( value == NULL ) value = g_hash_table_lookup ( optlist , \"ssl_ciphers\" ) ;\n if ( value != NULL && * value != '\\0' ) rec -> tls_ciphers = g_strdup ( value ) ;\n value = g_hash_table_lookup ( optlist , \"tls_pinned_cert\" ) ;\n if ( value == NULL ) value = g_hash_table_lookup ( optlist , \"ssl_pinned_cert\" ) ;\n if ( value != NULL && * value != '\\0' ) rec -> tls_pinned_cert = g_strdup ( value ) ;\n value = g_hash_table_lookup ( optlist , \"tls_pinned_pubkey\" ) ;\n if ( value == NULL ) value = g_hash_table_lookup ( optlist , \"ssl_pinned_pubkey\" ) ;\n if ( value != NULL && * value != '\\0' ) rec -> tls_pinned_pubkey = g_strdup ( value ) ;\n if ( ( rec -> tls_cafile != NULL && rec -> tls_cafile [ 0 ] != '\\0' ) || ( rec -> tls_capath != NULL && rec -> tls_capath [ 0 ] != '\\0' ) ) rec -> tls_verify = TRUE ;\n if ( ( rec -> tls_cert != NULL && rec -> tls_cert [ 0 ] != '\\0' ) || rec -> tls_verify == TRUE ) rec -> use_tls = TRUE ;\n if ( g_hash_table_lookup ( optlist , \"auto\" ) ) rec -> autoconnect = TRUE ;\n if ( g_hash_table_lookup ( optlist , \"noauto\" ) ) rec -> autoconnect = FALSE ;\n if ( g_hash_table_lookup ( optlist , \"proxy\" ) ) rec -> no_proxy = FALSE ;\n if ( g_hash_table_lookup ( optlist , \"noproxy\" ) ) rec -> no_proxy = TRUE ;\n if ( * password != '\\0' && g_strcmp0 ( password , \"-\" ) != 0 ) rec -> password = g_strdup ( password ) ;\n value = g_hash_table_lookup ( optlist , \"host\" ) ;\n if ( value != NULL && * value != '\\0' ) {\n rec -> own_host = g_strdup ( value ) ;\n rec -> own_ip4 = rec -> own_ip6 = NULL ;\n }\n signal_emit ( \"server add fill\" , 2 , rec , optlist ) ;\n server_setup_add ( rec ) ;\n printformat ( NULL , NULL , MSGLEVEL_CLIENTNOTICE , TXT_SETUPSERVER_ADDED , addr , port ) ;\n cmd_params_free ( free_arg ) ;\n }"}
{"idx": 15719, "target": 0, "func": "static int float_compare_desc ( const void * key1 , const void * key2 ) {\n float d1 = * ( ( const float * ) key1 ) ;\n float d2 = * ( ( const float * ) key2 ) ;\n if ( d1 > d2 ) return - 1 ;\n else if ( d1 < d2 ) return 1 ;\n else return 0 ;\n }"}
{"idx": 15720, "target": 0, "func": "static void var_filter_block2d_bil_first_pass ( const uint8_t * src_ptr , uint16_t * output_ptr , unsigned int src_pixels_per_line , int pixel_step , unsigned int output_height , unsigned int output_width , const int16_t * vp9_filter ) {\n unsigned int i , j ;\n for ( i = 0 ;\n i < output_height ;\n i ++ ) {\n for ( j = 0 ;\n j < output_width ;\n j ++ ) {\n output_ptr [ j ] = ROUND_POWER_OF_TWO ( ( int ) src_ptr [ 0 ] * vp9_filter [ 0 ] + ( int ) src_ptr [ pixel_step ] * vp9_filter [ 1 ] , FILTER_BITS ) ;\n src_ptr ++ ;\n }\n src_ptr += src_pixels_per_line - output_width ;\n output_ptr += output_width ;\n }\n }"}
{"idx": 15721, "target": 0, "func": "static void activation_get_activation_uris ( ActivateParameters * parameters ) {\n GList * l , * files ;\n NautilusFile * file ;\n LaunchLocation * location ;\n for ( l = parameters -> locations ;\n l != NULL ;\n l = l -> next ) {\n location = l -> data ;\n file = location -> file ;\n if ( file_was_cancelled ( file ) ) {\n launch_location_free ( location ) ;\n parameters -> locations = g_list_delete_link ( parameters -> locations , l ) ;\n continue ;\n }\n }\n if ( parameters -> locations == NULL ) {\n activation_parameters_free ( parameters ) ;\n return ;\n }\n files = get_file_list_for_launch_locations ( parameters -> locations ) ;\n nautilus_file_list_call_when_ready ( files , nautilus_mime_actions_get_required_file_attributes ( ) , & parameters -> files_handle , activate_activation_uris_ready_callback , parameters ) ;\n nautilus_file_list_free ( files ) ;\n }"}
{"idx": 15722, "target": 0, "func": "void simplestring_free ( simplestring * string ) {\n if ( string && string -> str ) {\n my_free ( string -> str ) ;\n string -> len = 0 ;\n }\n }"}
{"idx": 15723, "target": 0, "func": "void ff_cavs_init_pic ( AVSContext * h ) {\n int i ;\n for ( i = 0 ;\n i <= 20 ;\n i += 4 ) h -> mv [ i ] = un_mv ;\n h -> mv [ MV_BWD_X0 ] = ff_cavs_dir_mv ;\n set_mvs ( & h -> mv [ MV_BWD_X0 ] , BLK_16X16 ) ;\n h -> mv [ MV_FWD_X0 ] = ff_cavs_dir_mv ;\n set_mvs ( & h -> mv [ MV_FWD_X0 ] , BLK_16X16 ) ;\n h -> pred_mode_Y [ 3 ] = h -> pred_mode_Y [ 6 ] = NOT_AVAIL ;\n h -> cy = h -> cur . f -> data [ 0 ] ;\n h -> cu = h -> cur . f -> data [ 1 ] ;\n h -> cv = h -> cur . f -> data [ 2 ] ;\n h -> l_stride = h -> cur . f -> linesize [ 0 ] ;\n h -> c_stride = h -> cur . f -> linesize [ 1 ] ;\n h -> luma_scan [ 2 ] = 8 * h -> l_stride ;\n h -> luma_scan [ 3 ] = 8 * h -> l_stride + 8 ;\n h -> mbx = h -> mby = h -> mbidx = 0 ;\n h -> flags = 0 ;\n }"}
{"idx": 15724, "target": 0, "func": "static int zerocodec_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n ZeroCodecContext * zc = avctx -> priv_data ;\n AVFrame * pic = data ;\n AVFrame * prev_pic = & zc -> previous_frame ;\n z_stream * zstream = & zc -> zstream ;\n uint8_t * prev = prev_pic -> data [ 0 ] ;\n uint8_t * dst ;\n int i , j , zret , ret ;\n if ( avpkt -> flags & AV_PKT_FLAG_KEY ) {\n pic -> key_frame = 1 ;\n pic -> pict_type = AV_PICTURE_TYPE_I ;\n }\n else {\n if ( ! prev ) {\n av_log ( avctx , AV_LOG_ERROR , \"Missing reference frame.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n prev += ( avctx -> height - 1 ) * prev_pic -> linesize [ 0 ] ;\n pic -> key_frame = 0 ;\n pic -> pict_type = AV_PICTURE_TYPE_P ;\n }\n zret = inflateReset ( zstream ) ;\n if ( zret != Z_OK ) {\n av_log ( avctx , AV_LOG_ERROR , \"Could not reset inflate: %d.\\n\" , zret ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ff_get_buffer ( avctx , pic , AV_GET_BUFFER_FLAG_REF ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Could not allocate buffer.\\n\" ) ;\n return AVERROR ( ENOMEM ) ;\n }\n zstream -> next_in = avpkt -> data ;\n zstream -> avail_in = avpkt -> size ;\n dst = pic -> data [ 0 ] + ( avctx -> height - 1 ) * pic -> linesize [ 0 ] ;\n for ( i = 0 ;\n i < avctx -> height ;\n i ++ ) {\n zstream -> next_out = dst ;\n zstream -> avail_out = avctx -> width << 1 ;\n zret = inflate ( zstream , Z_SYNC_FLUSH ) ;\n if ( zret != Z_OK && zret != Z_STREAM_END ) {\n av_log ( avctx , AV_LOG_ERROR , \"Inflate failed with return code: %d.\\n\" , zret ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ! ( avpkt -> flags & AV_PKT_FLAG_KEY ) ) for ( j = 0 ;\n j < avctx -> width << 1 ;\n j ++ ) dst [ j ] += prev [ j ] & - ! dst [ j ] ;\n prev -= prev_pic -> linesize [ 0 ] ;\n dst -= pic -> linesize [ 0 ] ;\n }\n av_frame_unref ( & zc -> previous_frame ) ;\n if ( ( ret = av_frame_ref ( & zc -> previous_frame , pic ) ) < 0 ) return ret ;\n * got_frame = 1 ;\n return avpkt -> size ;\n }"}
{"idx": 15725, "target": 0, "func": "static int dissect_h245_FunctionNotSupported ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_FunctionNotSupported , FunctionNotSupported_sequence ) ;\n return offset ;\n }"}
{"idx": 15726, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( AppApiTest , OpenWebPopupFromWebIframe ) {\n extensions : : ProcessMap * process_map = extensions : : ProcessMap : : Get ( browser ( ) -> profile ( ) ) ;\n GURL base_url = GetTestBaseURL ( \"app_process\" ) ;\n const Extension * app = LoadExtension ( test_data_dir_ . AppendASCII ( \"app_process\" ) ) ;\n ASSERT_TRUE ( app ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , base_url . Resolve ( \"path1/container.html\" ) ) ;\n content : : RenderProcessHost * process = browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 0 ) -> GetRenderProcessHost ( ) ;\n EXPECT_TRUE ( process_map -> Contains ( process -> GetID ( ) ) ) ;\n const BrowserList * active_browser_list = BrowserList : : GetInstance ( ) ;\n EXPECT_EQ ( 2U , active_browser_list -> size ( ) ) ;\n content : : WebContents * popup_contents = active_browser_list -> get ( 1 ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) ;\n content : : WaitForLoadStop ( popup_contents ) ;\n bool should_be_in_same_process = ! content : : AreAllSitesIsolatedForTesting ( ) ;\n content : : RenderProcessHost * popup_process = popup_contents -> GetRenderProcessHost ( ) ;\n EXPECT_EQ ( should_be_in_same_process , process == popup_process ) ;\n EXPECT_EQ ( should_be_in_same_process , process_map -> Contains ( popup_process -> GetID ( ) ) ) ;\n }"}
{"idx": 15727, "target": 0, "func": "static void ps2_common_reset ( PS2State * s ) {\n s -> write_cmd = - 1 ;\n ps2_reset_queue ( s ) ;\n s -> update_irq ( s -> update_arg , 0 ) ;\n }"}
{"idx": 15728, "target": 0, "func": "bool metakey_h ( connection_t * c ) {\n char buffer [ MAX_STRING_SIZE ] ;\n int cipher , digest , maclength , compression ;\n int len ;\n if ( sscanf ( c -> buffer , \"%*d %d %d %d %d \" MAX_STRING , & cipher , & digest , & maclength , & compression , buffer ) != 5 ) {\n logger ( LOG_ERR , \"Got bad %s from %s (%s)\" , \"METAKEY\" , c -> name , c -> hostname ) ;\n return false ;\n }\n len = RSA_size ( myself -> connection -> rsa_key ) ;\n if ( strlen ( buffer ) != ( size_t ) len * 2 ) {\n logger ( LOG_ERR , \"Possible intruder %s (%s): %s\" , c -> name , c -> hostname , \"wrong keylength\" ) ;\n return false ;\n }\n c -> inkey = xrealloc ( c -> inkey , len ) ;\n if ( ! c -> inctx ) {\n c -> inctx = EVP_CIPHER_CTX_new ( ) ;\n if ( ! c -> inctx ) {\n abort ( ) ;\n }\n }\n if ( ! hex2bin ( buffer , buffer , len ) ) {\n logger ( LOG_ERR , \"Got bad %s from %s(%s): %s\" , \"METAKEY\" , c -> name , c -> hostname , \"invalid key\" ) ;\n return false ;\n }\n if ( RSA_private_decrypt ( len , ( unsigned char * ) buffer , ( unsigned char * ) c -> inkey , myself -> connection -> rsa_key , RSA_NO_PADDING ) != len ) {\n logger ( LOG_ERR , \"Error during decryption of meta key for %s (%s): %s\" , c -> name , c -> hostname , ERR_error_string ( ERR_get_error ( ) , NULL ) ) ;\n return false ;\n }\n ifdebug ( SCARY_THINGS ) {\n bin2hex ( c -> inkey , buffer , len ) ;\n buffer [ len * 2 ] = '\\0' ;\n logger ( LOG_DEBUG , \"Received random meta key (unencrypted): %s\" , buffer ) ;\n }\n if ( cipher ) {\n c -> incipher = EVP_get_cipherbynid ( cipher ) ;\n if ( ! c -> incipher ) {\n logger ( LOG_ERR , \"%s (%s) uses unknown cipher!\" , c -> name , c -> hostname ) ;\n return false ;\n }\n if ( ! EVP_DecryptInit ( c -> inctx , c -> incipher , ( unsigned char * ) c -> inkey + len - EVP_CIPHER_key_length ( c -> incipher ) , ( unsigned char * ) c -> inkey + len - EVP_CIPHER_key_length ( c -> incipher ) - EVP_CIPHER_iv_length ( c -> incipher ) ) ) {\n logger ( LOG_ERR , \"Error during initialisation of cipher from %s (%s): %s\" , c -> name , c -> hostname , ERR_error_string ( ERR_get_error ( ) , NULL ) ) ;\n return false ;\n }\n c -> inbudget = byte_budget ( c -> incipher ) ;\n c -> status . decryptin = true ;\n }\n else {\n logger ( LOG_ERR , \"%s (%s) uses null cipher!\" , c -> name , c -> hostname ) ;\n return false ;\n }\n c -> inmaclength = maclength ;\n if ( digest ) {\n c -> indigest = EVP_get_digestbynid ( digest ) ;\n if ( ! c -> indigest ) {\n logger ( LOG_ERR , \"Node %s (%s) uses unknown digest!\" , c -> name , c -> hostname ) ;\n return false ;\n }\n if ( c -> inmaclength > EVP_MD_size ( c -> indigest ) || c -> inmaclength < 0 ) {\n logger ( LOG_ERR , \"%s (%s) uses bogus MAC length!\" , c -> name , c -> hostname ) ;\n return false ;\n }\n }\n else {\n logger ( LOG_ERR , \"%s (%s) uses null digest!\" , c -> name , c -> hostname ) ;\n return false ;\n }\n c -> incompression = compression ;\n c -> allow_request = CHALLENGE ;\n return send_challenge ( c ) ;\n }"}
{"idx": 15729, "target": 0, "func": "static int dissect_h225_H323_UserInformation ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_H323_UserInformation , H323_UserInformation_sequence ) ;\n return offset ;\n }"}
{"idx": 15730, "target": 0, "func": "static void show_object ( struct object * obj , const char * name , void * cb_data ) {\n struct rev_list_info * info = cb_data ;\n finish_object ( obj , name , cb_data ) ;\n if ( info -> flags & REV_LIST_QUIET ) return ;\n show_object_with_name ( stdout , obj , name ) ;\n }"}
{"idx": 15731, "target": 0, "func": "static void decode_5p_track ( int * out , int code , int m , int off ) {\n int half_3p = BIT_POS ( code , 5 * m - 1 ) << ( m - 1 ) ;\n decode_3p_track ( out , BIT_STR ( code , 2 * m + 1 , 3 * m - 2 ) , m - 1 , off + half_3p ) ;\n decode_2p_track ( out + 3 , BIT_STR ( code , 0 , 2 * m + 1 ) , m , off ) ;\n }"}
{"idx": 15732, "target": 0, "func": "static int dissect_h245_T_untilClosingFlag ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_null ( tvb , offset , actx , tree , hf_index ) ;\n # line 110 \"../../asn1/h245/h245.cnf\" h223_me -> repeat_count = 0 ;\n return offset ;\n }"}
{"idx": 15733, "target": 0, "func": "void http_hdr_url_set ( HdrHeap * heap , HTTPHdrImpl * hh , URLImpl * url ) {\n ink_assert ( hh -> m_polarity == HTTP_TYPE_REQUEST ) ;\n if ( hh -> u . req . m_url_impl != url ) {\n if ( hh -> u . req . m_url_impl != nullptr ) {\n heap -> deallocate_obj ( hh -> u . req . m_url_impl ) ;\n }\n hh -> u . req . m_url_impl = url ;\n }\n }"}
{"idx": 15734, "target": 0, "func": "static int add_one_ref ( const char * path , const struct object_id * oid , int flag , void * cb_data ) {\n struct rev_info * revs = ( struct rev_info * ) cb_data ;\n struct object * object ;\n if ( ( flag & REF_ISSYMREF ) && ( flag & REF_ISBROKEN ) ) {\n warning ( \"symbolic ref is dangling: %s\" , path ) ;\n return 0 ;\n }\n object = parse_object_or_die ( oid -> hash , path ) ;\n add_pending_object ( revs , object , \"\" ) ;\n return 0 ;\n }"}
{"idx": 15735, "target": 0, "func": "static MagickBooleanType CompositeOverImage ( Image * image , const Image * composite_image , const MagickBooleanType clip_to_self , const ssize_t x_offset , const ssize_t y_offset , ExceptionInfo * exception ) {\n # define CompositeImageTag \"Composite/Image\" CacheView * composite_view , * image_view ;\n MagickBooleanType status ;\n MagickOffsetType progress ;\n ssize_t y ;\n status = MagickTrue ;\n progress = 0 ;\n composite_view = AcquireVirtualCacheView ( composite_image , exception ) ;\n image_view = AcquireAuthenticCacheView ( image , exception ) ;\n # if defined ( MAGICKCORE_OPENMP_SUPPORT ) # pragma omp parallel for schedule ( static , 4 ) shared ( progress , status ) magick_threads ( composite_image , image , image -> rows , 1 ) # endif for ( y = 0 ;\n y < ( ssize_t ) image -> rows ;\n y ++ ) {\n const Quantum * pixels ;\n register const Quantum * restrict p ;\n register Quantum * restrict q ;\n register ssize_t x ;\n size_t channels ;\n if ( status == MagickFalse ) continue ;\n if ( clip_to_self != MagickFalse ) {\n if ( y < y_offset ) continue ;\n if ( ( y - y_offset ) >= ( ssize_t ) composite_image -> rows ) continue ;\n }\n pixels = ( Quantum * ) NULL ;\n p = ( Quantum * ) NULL ;\n if ( ( y >= y_offset ) && ( ( y - y_offset ) < ( ssize_t ) composite_image -> rows ) ) {\n p = GetCacheViewVirtualPixels ( composite_view , 0 , y - y_offset , composite_image -> columns , 1 , exception ) ;\n if ( p == ( const Quantum * ) NULL ) {\n status = MagickFalse ;\n continue ;\n }\n pixels = p ;\n if ( x_offset < 0 ) p -= x_offset * GetPixelChannels ( composite_image ) ;\n }\n q = GetCacheViewAuthenticPixels ( image_view , 0 , y , image -> columns , 1 , exception ) ;\n if ( q == ( Quantum * ) NULL ) {\n status = MagickFalse ;\n continue ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) image -> columns ;\n x ++ ) {\n MagickRealType Da , Dc , Dca , Sa , Sc , Sca ;\n register ssize_t i ;\n if ( clip_to_self != MagickFalse ) {\n if ( x < x_offset ) {\n q += GetPixelChannels ( image ) ;\n continue ;\n }\n if ( ( x - x_offset ) >= ( ssize_t ) composite_image -> columns ) break ;\n }\n if ( ( pixels == ( Quantum * ) NULL ) || ( x < x_offset ) || ( ( x - x_offset ) >= ( ssize_t ) composite_image -> columns ) ) {\n Quantum source [ MaxPixelChannels ] ;\n if ( GetPixelReadMask ( image , q ) == 0 ) {\n q += GetPixelChannels ( image ) ;\n continue ;\n }\n ( void ) GetOneVirtualPixel ( composite_image , x - x_offset , y - y_offset , source , exception ) ;\n for ( i = 0 ;\n i < ( ssize_t ) GetPixelChannels ( image ) ;\n i ++ ) {\n PixelChannel channel = GetPixelChannelChannel ( image , i ) ;\n PixelTrait traits = GetPixelChannelTraits ( image , channel ) ;\n PixelTrait composite_traits = GetPixelChannelTraits ( composite_image , channel ) ;\n if ( ( traits == UndefinedPixelTrait ) || ( composite_traits == UndefinedPixelTrait ) ) continue ;\n q [ i ] = source [ channel ] ;\n }\n q += GetPixelChannels ( image ) ;\n continue ;\n }\n if ( GetPixelReadMask ( composite_image , p ) == 0 ) {\n p += GetPixelChannels ( composite_image ) ;\n channels = GetPixelChannels ( composite_image ) ;\n if ( p >= ( pixels + channels * composite_image -> columns ) ) p = pixels ;\n q += GetPixelChannels ( image ) ;\n continue ;\n }\n Sa = QuantumScale * GetPixelAlpha ( composite_image , p ) ;\n Da = QuantumScale * GetPixelAlpha ( image , q ) ;\n for ( i = 0 ;\n i < ( ssize_t ) GetPixelChannels ( image ) ;\n i ++ ) {\n PixelChannel channel = GetPixelChannelChannel ( image , i ) ;\n PixelTrait traits = GetPixelChannelTraits ( image , channel ) ;\n PixelTrait composite_traits = GetPixelChannelTraits ( composite_image , channel ) ;\n if ( ( traits == UndefinedPixelTrait ) || ( composite_traits == UndefinedPixelTrait ) ) continue ;\n if ( ( traits & CopyPixelTrait ) != 0 ) {\n q [ i ] = GetPixelChannel ( composite_image , channel , p ) ;\n continue ;\n }\n if ( channel == AlphaPixelChannel ) {\n q [ i ] = ClampToQuantum ( QuantumRange * ( Sa + Da - Sa * Da ) ) ;\n continue ;\n }\n Sc = ( MagickRealType ) GetPixelChannel ( composite_image , channel , p ) ;\n Dc = ( MagickRealType ) q [ i ] ;\n Sca = QuantumScale * Sa * Sc ;\n Dca = QuantumScale * Da * Dc ;\n q [ i ] = ClampToQuantum ( QuantumRange * ( Sca + Dca * ( 1.0 - Sa ) ) ) ;\n }\n p += GetPixelChannels ( composite_image ) ;\n channels = GetPixelChannels ( composite_image ) ;\n if ( p >= ( pixels + channels * composite_image -> columns ) ) p = pixels ;\n q += GetPixelChannels ( image ) ;\n }\n if ( SyncCacheViewAuthenticPixels ( image_view , exception ) == MagickFalse ) status = MagickFalse ;\n if ( image -> progress_monitor != ( MagickProgressMonitor ) NULL ) {\n MagickBooleanType proceed ;\n # if defined ( MAGICKCORE_OPENMP_SUPPORT ) # pragma omp critical ( MagickCore_CompositeImage ) # endif proceed = SetImageProgress ( image , CompositeImageTag , progress ++ , image -> rows ) ;\n if ( proceed == MagickFalse ) status = MagickFalse ;\n }\n }\n composite_view = DestroyCacheView ( composite_view ) ;\n image_view = DestroyCacheView ( image_view ) ;\n return ( status ) ;\n }"}
{"idx": 15736, "target": 0, "func": "static int storesid ( struct alltabs * at , const char * str ) {\n int i ;\n FILE * news ;\n const char * pt ;\n long pos ;\n if ( str != NULL ) {\n for ( i = 0 ;\n cffnames [ i ] != NULL ;\n ++ i ) {\n if ( strcmp ( cffnames [ i ] , str ) == 0 ) return ( i ) ;\n }\n }\n pos = ftell ( at -> sidf ) + 1 ;\n if ( pos >= 65536 && ! at -> sidlongoffset ) {\n at -> sidlongoffset = true ;\n news = tmpfile ( ) ;\n rewind ( at -> sidh ) ;\n for ( i = 0 ;\n i < at -> sidcnt ;\n ++ i ) putlong ( news , getushort ( at -> sidh ) ) ;\n fclose ( at -> sidh ) ;\n at -> sidh = news ;\n }\n if ( at -> sidlongoffset ) putlong ( at -> sidh , pos ) ;\n else putshort ( at -> sidh , pos ) ;\n if ( str != NULL ) {\n for ( pt = str ;\n * pt ;\n ++ pt ) putc ( * pt , at -> sidf ) ;\n }\n return ( at -> sidcnt ++ + nStdStrings ) ;\n }"}
{"idx": 15737, "target": 0, "func": "tm_event_t new_event ( void ) {\n static tm_event_t next_event = TM_NULL_EVENT + 1 ;\n event_info * ep ;\n tm_event_t ret ;\n if ( next_event == INT_MAX ) next_event = TM_NULL_EVENT + 1 ;\n for ( ;\n ;\n ) {\n ret = next_event ++ ;\n for ( ep = event_hash [ ret % EVENT_HASH ] ;\n ep ;\n ep = ep -> e_next ) {\n if ( ep -> e_event == ret ) break ;\n }\n if ( ep == NULL ) break ;\n }\n return ret ;\n }"}
{"idx": 15738, "target": 0, "func": "static void one_remote_object ( const unsigned char * sha1 ) {\n struct object * obj ;\n obj = lookup_object ( sha1 ) ;\n if ( ! obj ) obj = parse_object ( sha1 ) ;\n if ( ! obj ) return ;\n obj -> flags |= REMOTE ;\n if ( ! object_list_contains ( objects , obj ) ) object_list_insert ( obj , & objects ) ;\n }"}
{"idx": 15739, "target": 0, "func": "static void print_md5 ( unsigned char digest [ 16 ] , const char * filename ) {\n int i ;\n for ( i = 0 ;\n i < 16 ;\n ++ i ) printf ( \"%02x\" , digest [ i ] ) ;\n printf ( \" %s\\n\" , filename ) ;\n }"}
{"idx": 15740, "target": 0, "func": "static int iso9660_free ( struct archive_write * a ) {\n struct iso9660 * iso9660 ;\n int i , ret ;\n iso9660 = a -> format_data ;\n if ( iso9660 -> temp_fd >= 0 ) close ( iso9660 -> temp_fd ) ;\n ret = zisofs_free ( a ) ;\n isoent_free_all ( iso9660 -> primary . rootent ) ;\n for ( i = 0 ;\n i < iso9660 -> primary . max_depth ;\n i ++ ) free ( iso9660 -> primary . pathtbl [ i ] . sorted ) ;\n free ( iso9660 -> primary . pathtbl ) ;\n if ( iso9660 -> opt . joliet ) {\n isoent_free_all ( iso9660 -> joliet . rootent ) ;\n for ( i = 0 ;\n i < iso9660 -> joliet . max_depth ;\n i ++ ) free ( iso9660 -> joliet . pathtbl [ i ] . sorted ) ;\n free ( iso9660 -> joliet . pathtbl ) ;\n }\n isofile_free_all_entries ( iso9660 ) ;\n isofile_free_hardlinks ( iso9660 ) ;\n archive_string_free ( & ( iso9660 -> cur_dirstr ) ) ;\n archive_string_free ( & ( iso9660 -> volume_identifier ) ) ;\n archive_string_free ( & ( iso9660 -> publisher_identifier ) ) ;\n archive_string_free ( & ( iso9660 -> data_preparer_identifier ) ) ;\n archive_string_free ( & ( iso9660 -> application_identifier ) ) ;\n archive_string_free ( & ( iso9660 -> copyright_file_identifier ) ) ;\n archive_string_free ( & ( iso9660 -> abstract_file_identifier ) ) ;\n archive_string_free ( & ( iso9660 -> bibliographic_file_identifier ) ) ;\n archive_string_free ( & ( iso9660 -> el_torito . catalog_filename ) ) ;\n archive_string_free ( & ( iso9660 -> el_torito . boot_filename ) ) ;\n archive_string_free ( & ( iso9660 -> el_torito . id ) ) ;\n archive_string_free ( & ( iso9660 -> utf16be ) ) ;\n archive_string_free ( & ( iso9660 -> mbs ) ) ;\n free ( iso9660 ) ;\n a -> format_data = NULL ;\n return ( ret ) ;\n }"}
{"idx": 15741, "target": 0, "func": "static int dissect_h245_SEQUENCE_OF_VideoCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h245_SEQUENCE_OF_VideoCapability , SEQUENCE_OF_VideoCapability_sequence_of ) ;\n return offset ;\n }"}
{"idx": 15742, "target": 0, "func": "proto_item * parseString ( proto_tree * tree , tvbuff_t * tvb , packet_info * pinfo _U_ , gint * pOffset , int hfIndex ) {\n proto_item * item = NULL ;\n char * szValue ;\n gint iOffset = * pOffset ;\n gint32 iLen = tvb_get_letohl ( tvb , * pOffset ) ;\n iOffset += 4 ;\n if ( iLen == - 1 ) {\n item = proto_tree_add_item ( tree , hfIndex , tvb , * pOffset , 0 , ENC_NA ) ;\n proto_item_append_text ( item , \"[OpcUa Null String]\" ) ;\n proto_item_set_end ( item , tvb , * pOffset + 4 ) ;\n }\n else if ( iLen == 0 ) {\n item = proto_tree_add_item ( tree , hfIndex , tvb , * pOffset , 0 , ENC_NA ) ;\n proto_item_append_text ( item , \"[OpcUa Empty String]\" ) ;\n proto_item_set_end ( item , tvb , * pOffset + 4 ) ;\n }\n else if ( iLen > 0 ) {\n item = proto_tree_add_item ( tree , hfIndex , tvb , iOffset , iLen , ENC_UTF_8 | ENC_NA ) ;\n iOffset += iLen ;\n }\n else {\n item = proto_tree_add_item ( tree , hfIndex , tvb , * pOffset , 0 , ENC_NA ) ;\n szValue = wmem_strdup_printf ( wmem_packet_scope ( ) , \"[Invalid String] Invalid length: %d\" , iLen ) ;\n proto_item_append_text ( item , \"%s\" , szValue ) ;\n proto_item_set_end ( item , tvb , * pOffset + 4 ) ;\n }\n * pOffset = iOffset ;\n return item ;\n }"}
{"idx": 15743, "target": 0, "func": "static guint8 * get_name_from_pmid ( guint32 pmid , packet_info * pinfo ) {\n guint8 * name ;\n wmem_map_t * pmid_to_name ;\n pmid_to_name = get_pcp_conversation_info ( pinfo ) -> pmid_to_name ;\n name = ( guint8 * ) wmem_map_lookup ( pmid_to_name , GINT_TO_POINTER ( pmid ) ) ;\n if ( ! name ) {\n name = ( guint8 * ) wmem_strdup ( wmem_packet_scope ( ) , \"Metric name unknown\" ) ;\n }\n return name ;\n }"}
{"idx": 15744, "target": 0, "func": "static void pdf_run_END ( fz_context * ctx , pdf_processor * proc ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_flush_text ( ctx , pr ) ;\n }"}
{"idx": 15745, "target": 0, "func": "uint end_of_word ( char * pos ) {\n char * end = strend ( pos ) ;\n return ( ( end > pos + 2 && ! memcmp ( end - 2 , \"\\\\b\" , 2 ) ) || ( end >= pos + 2 && ! memcmp ( end - 2 , \"\\\\$\" , 2 ) ) ) ? 1 : 0 ;\n }"}
{"idx": 15746, "target": 0, "func": "static void unlock_princ ( kadm5_principal_ent_t princ , long * mask , const char * caller ) {\n krb5_error_code retval ;\n krb5_timestamp now ;\n krb5_octet timebuf [ 4 ] ;\n princ -> fail_auth_count = 0 ;\n * mask |= KADM5_FAIL_AUTH_COUNT ;\n retval = krb5_timeofday ( context , & now ) ;\n if ( retval ) {\n com_err ( caller , retval , _ ( \"while getting time\" ) ) ;\n exit ( 1 ) ;\n }\n store_32_le ( ( krb5_int32 ) now , timebuf ) ;\n add_tl_data ( & princ -> n_tl_data , & princ -> tl_data , KRB5_TL_LAST_ADMIN_UNLOCK , 4 , timebuf ) ;\n * mask |= KADM5_TL_DATA ;\n }"}
{"idx": 15747, "target": 0, "func": "TSReturnCode TSBase64Decode ( const char * str , size_t str_len , unsigned char * dst , size_t dst_size , size_t * length ) {\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) str ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) dst ) == TS_SUCCESS ) ;\n return ats_base64_decode ( str , str_len , dst , dst_size , length ) ? TS_SUCCESS : TS_ERROR ;\n }"}
{"idx": 15748, "target": 1, "func": "static void fill_vaapi_RefPicList ( VAPictureH264 RefPicList [ 32 ] , Picture * ref_list , unsigned int ref_count ) {\n unsigned int i , n = 0 ;\n for ( i = 0 ;\n i < ref_count ;\n i ++ ) if ( ref_list [ i ] . f . reference ) fill_vaapi_pic ( & RefPicList [ n ++ ] , & ref_list [ i ] , 0 ) ;\n for ( ;\n n < 32 ;\n n ++ ) init_vaapi_pic ( & RefPicList [ n ] ) ;\n }"}
{"idx": 15749, "target": 0, "func": "void crypto_policy_set_aes_cm_128_null_auth ( crypto_policy_t * p ) {\n p -> cipher_type = AES_ICM ;\n p -> cipher_key_len = 30 ;\n p -> auth_type = NULL_AUTH ;\n p -> auth_key_len = 0 ;\n p -> auth_tag_len = 0 ;\n p -> sec_serv = sec_serv_conf ;\n }"}
{"idx": 15750, "target": 0, "func": "Oid get_transform_fromsql ( Oid typid , Oid langid , List * trftypes ) {\n HeapTuple tup ;\n if ( ! list_member_oid ( trftypes , typid ) ) return InvalidOid ;\n tup = SearchSysCache2 ( TRFTYPELANG , typid , langid ) ;\n if ( HeapTupleIsValid ( tup ) ) {\n Oid funcid ;\n funcid = ( ( Form_pg_transform ) GETSTRUCT ( tup ) ) -> trffromsql ;\n ReleaseSysCache ( tup ) ;\n return funcid ;\n }\n else return InvalidOid ;\n }"}
{"idx": 15751, "target": 0, "func": "Archive * CreateArchive ( const char * FileSpec , const ArchiveFormat fmt , const int compression , ArchiveMode mode , SetupWorkerPtr setupDumpWorker ) {\n ArchiveHandle * AH = _allocAH ( FileSpec , fmt , compression , mode , setupDumpWorker ) ;\n return ( Archive * ) AH ;\n }"}
{"idx": 15752, "target": 0, "func": "static void pk_transaction_refresh_cache ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) {\n gboolean ret ;\n gboolean force ;\n g_autoptr ( GError ) error = NULL ;\n g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;\n g_return_if_fail ( transaction -> priv -> tid != NULL ) ;\n g_variant_get ( params , \"(b)\" , & force ) ;\n g_debug ( \"RefreshCache method called: %i\" , force ) ;\n if ( ! pk_backend_is_implemented ( transaction -> priv -> backend , PK_ROLE_ENUM_REFRESH_CACHE ) ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NOT_SUPPORTED , \"RefreshCache not supported by backend\" ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n transaction -> priv -> cached_force = force ;\n pk_transaction_set_role ( transaction , PK_ROLE_ENUM_REFRESH_CACHE ) ;\n ret = pk_transaction_obtain_authorization ( transaction , PK_ROLE_ENUM_REFRESH_CACHE , & error ) ;\n if ( ! ret ) {\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n out : pk_transaction_dbus_return ( context , error ) ;\n }"}
{"idx": 15753, "target": 1, "func": "static int kvm_get_msrs ( X86CPU * cpu ) {\n CPUX86State * env = & cpu -> env ;\n struct kvm_msr_entry * msrs = cpu -> kvm_msr_buf -> entries ;\n int ret , i ;\n uint64_t mtrr_top_bits ;\n kvm_msr_buf_reset ( cpu ) ;\n kvm_msr_entry_add ( cpu , MSR_IA32_SYSENTER_CS , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_IA32_SYSENTER_ESP , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_IA32_SYSENTER_EIP , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_PAT , 0 ) ;\n if ( has_msr_star ) {\n kvm_msr_entry_add ( cpu , MSR_STAR , 0 ) ;\n }\n if ( has_msr_hsave_pa ) {\n kvm_msr_entry_add ( cpu , MSR_VM_HSAVE_PA , 0 ) ;\n }\n if ( has_msr_tsc_aux ) {\n kvm_msr_entry_add ( cpu , MSR_TSC_AUX , 0 ) ;\n }\n if ( has_msr_tsc_adjust ) {\n kvm_msr_entry_add ( cpu , MSR_TSC_ADJUST , 0 ) ;\n }\n if ( has_msr_tsc_deadline ) {\n kvm_msr_entry_add ( cpu , MSR_IA32_TSCDEADLINE , 0 ) ;\n }\n if ( has_msr_misc_enable ) {\n kvm_msr_entry_add ( cpu , MSR_IA32_MISC_ENABLE , 0 ) ;\n }\n if ( has_msr_smbase ) {\n kvm_msr_entry_add ( cpu , MSR_IA32_SMBASE , 0 ) ;\n }\n if ( has_msr_smi_count ) {\n kvm_msr_entry_add ( cpu , MSR_SMI_COUNT , 0 ) ;\n }\n if ( has_msr_feature_control ) {\n kvm_msr_entry_add ( cpu , MSR_IA32_FEATURE_CONTROL , 0 ) ;\n }\n if ( has_msr_bndcfgs ) {\n kvm_msr_entry_add ( cpu , MSR_IA32_BNDCFGS , 0 ) ;\n }\n if ( has_msr_xss ) {\n kvm_msr_entry_add ( cpu , MSR_IA32_XSS , 0 ) ;\n }\n if ( has_msr_spec_ctrl ) {\n kvm_msr_entry_add ( cpu , MSR_IA32_SPEC_CTRL , 0 ) ;\n }\n if ( ! env -> tsc_valid ) {\n kvm_msr_entry_add ( cpu , MSR_IA32_TSC , 0 ) ;\n env -> tsc_valid = ! runstate_is_running ( ) ;\n }\n # ifdef TARGET_X86_64 if ( lm_capable_kernel ) {\n kvm_msr_entry_add ( cpu , MSR_CSTAR , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_KERNELGSBASE , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_FMASK , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_LSTAR , 0 ) ;\n }\n # endif kvm_msr_entry_add ( cpu , MSR_KVM_SYSTEM_TIME , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_KVM_WALL_CLOCK , 0 ) ;\n if ( env -> features [ FEAT_KVM ] & ( 1 << KVM_FEATURE_ASYNC_PF ) ) {\n kvm_msr_entry_add ( cpu , MSR_KVM_ASYNC_PF_EN , 0 ) ;\n }\n if ( env -> features [ FEAT_KVM ] & ( 1 << KVM_FEATURE_PV_EOI ) ) {\n kvm_msr_entry_add ( cpu , MSR_KVM_PV_EOI_EN , 0 ) ;\n }\n if ( env -> features [ FEAT_KVM ] & ( 1 << KVM_FEATURE_STEAL_TIME ) ) {\n kvm_msr_entry_add ( cpu , MSR_KVM_STEAL_TIME , 0 ) ;\n }\n if ( has_architectural_pmu_version > 0 ) {\n if ( has_architectural_pmu_version > 1 ) {\n kvm_msr_entry_add ( cpu , MSR_CORE_PERF_FIXED_CTR_CTRL , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_CORE_PERF_GLOBAL_CTRL , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_CORE_PERF_GLOBAL_STATUS , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_CORE_PERF_GLOBAL_OVF_CTRL , 0 ) ;\n }\n for ( i = 0 ;\n i < num_architectural_pmu_fixed_counters ;\n i ++ ) {\n kvm_msr_entry_add ( cpu , MSR_CORE_PERF_FIXED_CTR0 + i , 0 ) ;\n }\n for ( i = 0 ;\n i < num_architectural_pmu_gp_counters ;\n i ++ ) {\n kvm_msr_entry_add ( cpu , MSR_P6_PERFCTR0 + i , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_P6_EVNTSEL0 + i , 0 ) ;\n }\n }\n if ( env -> mcg_cap ) {\n kvm_msr_entry_add ( cpu , MSR_MCG_STATUS , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_MCG_CTL , 0 ) ;\n if ( has_msr_mcg_ext_ctl ) {\n kvm_msr_entry_add ( cpu , MSR_MCG_EXT_CTL , 0 ) ;\n }\n for ( i = 0 ;\n i < ( env -> mcg_cap & 0xff ) * 4 ;\n i ++ ) {\n kvm_msr_entry_add ( cpu , MSR_MC0_CTL + i , 0 ) ;\n }\n }\n if ( has_msr_hv_hypercall ) {\n kvm_msr_entry_add ( cpu , HV_X64_MSR_HYPERCALL , 0 ) ;\n kvm_msr_entry_add ( cpu , HV_X64_MSR_GUEST_OS_ID , 0 ) ;\n }\n if ( cpu -> hyperv_vapic ) {\n kvm_msr_entry_add ( cpu , HV_X64_MSR_APIC_ASSIST_PAGE , 0 ) ;\n }\n if ( cpu -> hyperv_time ) {\n kvm_msr_entry_add ( cpu , HV_X64_MSR_REFERENCE_TSC , 0 ) ;\n }\n if ( cpu -> hyperv_reenlightenment ) {\n kvm_msr_entry_add ( cpu , HV_X64_MSR_REENLIGHTENMENT_CONTROL , 0 ) ;\n kvm_msr_entry_add ( cpu , HV_X64_MSR_TSC_EMULATION_CONTROL , 0 ) ;\n kvm_msr_entry_add ( cpu , HV_X64_MSR_TSC_EMULATION_STATUS , 0 ) ;\n }\n if ( has_msr_hv_crash ) {\n int j ;\n for ( j = 0 ;\n j < HV_CRASH_PARAMS ;\n j ++ ) {\n kvm_msr_entry_add ( cpu , HV_X64_MSR_CRASH_P0 + j , 0 ) ;\n }\n }\n if ( has_msr_hv_runtime ) {\n kvm_msr_entry_add ( cpu , HV_X64_MSR_VP_RUNTIME , 0 ) ;\n }\n if ( cpu -> hyperv_synic ) {\n uint32_t msr ;\n kvm_msr_entry_add ( cpu , HV_X64_MSR_SCONTROL , 0 ) ;\n kvm_msr_entry_add ( cpu , HV_X64_MSR_SIEFP , 0 ) ;\n kvm_msr_entry_add ( cpu , HV_X64_MSR_SIMP , 0 ) ;\n for ( msr = HV_X64_MSR_SINT0 ;\n msr <= HV_X64_MSR_SINT15 ;\n msr ++ ) {\n kvm_msr_entry_add ( cpu , msr , 0 ) ;\n }\n }\n if ( has_msr_hv_stimer ) {\n uint32_t msr ;\n for ( msr = HV_X64_MSR_STIMER0_CONFIG ;\n msr <= HV_X64_MSR_STIMER3_COUNT ;\n msr ++ ) {\n kvm_msr_entry_add ( cpu , msr , 0 ) ;\n }\n }\n if ( env -> features [ FEAT_1_EDX ] & CPUID_MTRR ) {\n kvm_msr_entry_add ( cpu , MSR_MTRRdefType , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRfix64K_00000 , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRfix16K_80000 , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRfix16K_A0000 , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRfix4K_C0000 , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRfix4K_C8000 , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRfix4K_D0000 , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRfix4K_D8000 , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRfix4K_E0000 , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRfix4K_E8000 , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRfix4K_F0000 , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRfix4K_F8000 , 0 ) ;\n for ( i = 0 ;\n i < MSR_MTRRcap_VCNT ;\n i ++ ) {\n kvm_msr_entry_add ( cpu , MSR_MTRRphysBase ( i ) , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_MTRRphysMask ( i ) , 0 ) ;\n }\n }\n if ( env -> features [ FEAT_7_0_EBX ] & CPUID_7_0_EBX_INTEL_PT ) {\n int addr_num = kvm_arch_get_supported_cpuid ( kvm_state , 0x14 , 1 , R_EAX ) & 0x7 ;\n kvm_msr_entry_add ( cpu , MSR_IA32_RTIT_CTL , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_IA32_RTIT_STATUS , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_IA32_RTIT_OUTPUT_BASE , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_IA32_RTIT_OUTPUT_MASK , 0 ) ;\n kvm_msr_entry_add ( cpu , MSR_IA32_RTIT_CR3_MATCH , 0 ) ;\n for ( i = 0 ;\n i < addr_num ;\n i ++ ) {\n kvm_msr_entry_add ( cpu , MSR_IA32_RTIT_ADDR0_A + i , 0 ) ;\n }\n }\n ret = kvm_vcpu_ioctl ( CPU ( cpu ) , KVM_GET_MSRS , cpu -> kvm_msr_buf ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n if ( ret < cpu -> kvm_msr_buf -> nmsrs ) {\n struct kvm_msr_entry * e = & cpu -> kvm_msr_buf -> entries [ ret ] ;\n error_report ( \"error: failed to get MSR 0x%\" PRIx32 , ( uint32_t ) e -> index ) ;\n }\n assert ( ret == cpu -> kvm_msr_buf -> nmsrs ) ;\n if ( cpu -> fill_mtrr_mask ) {\n QEMU_BUILD_BUG_ON ( TARGET_PHYS_ADDR_SPACE_BITS > 52 ) ;\n assert ( cpu -> phys_bits <= TARGET_PHYS_ADDR_SPACE_BITS ) ;\n mtrr_top_bits = MAKE_64BIT_MASK ( cpu -> phys_bits , 52 - cpu -> phys_bits ) ;\n }\n else {\n mtrr_top_bits = 0 ;\n }\n for ( i = 0 ;\n i < ret ;\n i ++ ) {\n uint32_t index = msrs [ i ] . index ;\n switch ( index ) {\n case MSR_IA32_SYSENTER_CS : env -> sysenter_cs = msrs [ i ] . data ;\n break ;\n case MSR_IA32_SYSENTER_ESP : env -> sysenter_esp = msrs [ i ] . data ;\n break ;\n case MSR_IA32_SYSENTER_EIP : env -> sysenter_eip = msrs [ i ] . data ;\n break ;\n case MSR_PAT : env -> pat = msrs [ i ] . data ;\n break ;\n case MSR_STAR : env -> star = msrs [ i ] . data ;\n break ;\n # ifdef TARGET_X86_64 case MSR_CSTAR : env -> cstar = msrs [ i ] . data ;\n break ;\n case MSR_KERNELGSBASE : env -> kernelgsbase = msrs [ i ] . data ;\n break ;\n case MSR_FMASK : env -> fmask = msrs [ i ] . data ;\n break ;\n case MSR_LSTAR : env -> lstar = msrs [ i ] . data ;\n break ;\n # endif case MSR_IA32_TSC : env -> tsc = msrs [ i ] . data ;\n break ;\n case MSR_TSC_AUX : env -> tsc_aux = msrs [ i ] . data ;\n break ;\n case MSR_TSC_ADJUST : env -> tsc_adjust = msrs [ i ] . data ;\n break ;\n case MSR_IA32_TSCDEADLINE : env -> tsc_deadline = msrs [ i ] . data ;\n break ;\n case MSR_VM_HSAVE_PA : env -> vm_hsave = msrs [ i ] . data ;\n break ;\n case MSR_KVM_SYSTEM_TIME : env -> system_time_msr = msrs [ i ] . data ;\n break ;\n case MSR_KVM_WALL_CLOCK : env -> wall_clock_msr = msrs [ i ] . data ;\n break ;\n case MSR_MCG_STATUS : env -> mcg_status = msrs [ i ] . data ;\n break ;\n case MSR_MCG_CTL : env -> mcg_ctl = msrs [ i ] . data ;\n break ;\n case MSR_MCG_EXT_CTL : env -> mcg_ext_ctl = msrs [ i ] . data ;\n break ;\n case MSR_IA32_MISC_ENABLE : env -> msr_ia32_misc_enable = msrs [ i ] . data ;\n break ;\n case MSR_IA32_SMBASE : env -> smbase = msrs [ i ] . data ;\n break ;\n case MSR_SMI_COUNT : env -> msr_smi_count = msrs [ i ] . data ;\n break ;\n case MSR_IA32_FEATURE_CONTROL : env -> msr_ia32_feature_control = msrs [ i ] . data ;\n break ;\n case MSR_IA32_BNDCFGS : env -> msr_bndcfgs = msrs [ i ] . data ;\n break ;\n case MSR_IA32_XSS : env -> xss = msrs [ i ] . data ;\n break ;\n default : if ( msrs [ i ] . index >= MSR_MC0_CTL && msrs [ i ] . index < MSR_MC0_CTL + ( env -> mcg_cap & 0xff ) * 4 ) {\n env -> mce_banks [ msrs [ i ] . index - MSR_MC0_CTL ] = msrs [ i ] . data ;\n }\n break ;\n case MSR_KVM_ASYNC_PF_EN : env -> async_pf_en_msr = msrs [ i ] . data ;\n break ;\n case MSR_KVM_PV_EOI_EN : env -> pv_eoi_en_msr = msrs [ i ] . data ;\n break ;\n case MSR_KVM_STEAL_TIME : env -> steal_time_msr = msrs [ i ] . data ;\n break ;\n case MSR_CORE_PERF_FIXED_CTR_CTRL : env -> msr_fixed_ctr_ctrl = msrs [ i ] . data ;\n break ;\n case MSR_CORE_PERF_GLOBAL_CTRL : env -> msr_global_ctrl = msrs [ i ] . data ;\n break ;\n case MSR_CORE_PERF_GLOBAL_STATUS : env -> msr_global_status = msrs [ i ] . data ;\n break ;\n case MSR_CORE_PERF_GLOBAL_OVF_CTRL : env -> msr_global_ovf_ctrl = msrs [ i ] . data ;\n break ;\n case MSR_CORE_PERF_FIXED_CTR0 ... MSR_CORE_PERF_FIXED_CTR0 + MAX_FIXED_COUNTERS - 1 : env -> msr_fixed_counters [ index - MSR_CORE_PERF_FIXED_CTR0 ] = msrs [ i ] . data ;\n break ;\n case MSR_P6_PERFCTR0 ... MSR_P6_PERFCTR0 + MAX_GP_COUNTERS - 1 : env -> msr_gp_counters [ index - MSR_P6_PERFCTR0 ] = msrs [ i ] . data ;\n break ;\n case MSR_P6_EVNTSEL0 ... MSR_P6_EVNTSEL0 + MAX_GP_COUNTERS - 1 : env -> msr_gp_evtsel [ index - MSR_P6_EVNTSEL0 ] = msrs [ i ] . data ;\n break ;\n case HV_X64_MSR_HYPERCALL : env -> msr_hv_hypercall = msrs [ i ] . data ;\n break ;\n case HV_X64_MSR_GUEST_OS_ID : env -> msr_hv_guest_os_id = msrs [ i ] . data ;\n break ;\n case HV_X64_MSR_APIC_ASSIST_PAGE : env -> msr_hv_vapic = msrs [ i ] . data ;\n break ;\n case HV_X64_MSR_REFERENCE_TSC : env -> msr_hv_tsc = msrs [ i ] . data ;\n break ;\n case HV_X64_MSR_CRASH_P0 ... HV_X64_MSR_CRASH_P4 : env -> msr_hv_crash_params [ index - HV_X64_MSR_CRASH_P0 ] = msrs [ i ] . data ;\n break ;\n case HV_X64_MSR_VP_RUNTIME : env -> msr_hv_runtime = msrs [ i ] . data ;\n break ;\n case HV_X64_MSR_SCONTROL : env -> msr_hv_synic_control = msrs [ i ] . data ;\n break ;\n case HV_X64_MSR_SIEFP : env -> msr_hv_synic_evt_page = msrs [ i ] . data ;\n break ;\n case HV_X64_MSR_SIMP : env -> msr_hv_synic_msg_page = msrs [ i ] . data ;\n break ;\n case HV_X64_MSR_SINT0 ... HV_X64_MSR_SINT15 : env -> msr_hv_synic_sint [ index - HV_X64_MSR_SINT0 ] = msrs [ i ] . data ;\n break ;\n case HV_X64_MSR_STIMER0_CONFIG : case HV_X64_MSR_STIMER1_CONFIG : case HV_X64_MSR_STIMER2_CONFIG : case HV_X64_MSR_STIMER3_CONFIG : env -> msr_hv_stimer_config [ ( index - HV_X64_MSR_STIMER0_CONFIG ) / 2 ] = msrs [ i ] . data ;\n break ;\n case HV_X64_MSR_STIMER0_COUNT : case HV_X64_MSR_STIMER1_COUNT : case HV_X64_MSR_STIMER2_COUNT : case HV_X64_MSR_STIMER3_COUNT : env -> msr_hv_stimer_count [ ( index - HV_X64_MSR_STIMER0_COUNT ) / 2 ] = msrs [ i ] . data ;\n break ;\n case HV_X64_MSR_REENLIGHTENMENT_CONTROL : env -> msr_hv_reenlightenment_control = msrs [ i ] . data ;\n break ;\n case HV_X64_MSR_TSC_EMULATION_CONTROL : env -> msr_hv_tsc_emulation_control = msrs [ i ] . data ;\n break ;\n case HV_X64_MSR_TSC_EMULATION_STATUS : env -> msr_hv_tsc_emulation_status = msrs [ i ] . data ;\n break ;\n case MSR_MTRRdefType : env -> mtrr_deftype = msrs [ i ] . data ;\n break ;\n case MSR_MTRRfix64K_00000 : env -> mtrr_fixed [ 0 ] = msrs [ i ] . data ;\n break ;\n case MSR_MTRRfix16K_80000 : env -> mtrr_fixed [ 1 ] = msrs [ i ] . data ;\n break ;\n case MSR_MTRRfix16K_A0000 : env -> mtrr_fixed [ 2 ] = msrs [ i ] . data ;\n break ;\n case MSR_MTRRfix4K_C0000 : env -> mtrr_fixed [ 3 ] = msrs [ i ] . data ;\n break ;\n case MSR_MTRRfix4K_C8000 : env -> mtrr_fixed [ 4 ] = msrs [ i ] . data ;\n break ;\n case MSR_MTRRfix4K_D0000 : env -> mtrr_fixed [ 5 ] = msrs [ i ] . data ;\n break ;\n case MSR_MTRRfix4K_D8000 : env -> mtrr_fixed [ 6 ] = msrs [ i ] . data ;\n break ;\n case MSR_MTRRfix4K_E0000 : env -> mtrr_fixed [ 7 ] = msrs [ i ] . data ;\n break ;\n case MSR_MTRRfix4K_E8000 : env -> mtrr_fixed [ 8 ] = msrs [ i ] . data ;\n break ;\n case MSR_MTRRfix4K_F0000 : env -> mtrr_fixed [ 9 ] = msrs [ i ] . data ;\n break ;\n case MSR_MTRRfix4K_F8000 : env -> mtrr_fixed [ 10 ] = msrs [ i ] . data ;\n break ;\n case MSR_MTRRphysBase ( 0 ) ... MSR_MTRRphysMask ( MSR_MTRRcap_VCNT - 1 ) : if ( index & 1 ) {\n env -> mtrr_var [ MSR_MTRRphysIndex ( index ) ] . mask = msrs [ i ] . data | mtrr_top_bits ;\n }\n else {\n env -> mtrr_var [ MSR_MTRRphysIndex ( index ) ] . base = msrs [ i ] . data ;\n }\n break ;\n case MSR_IA32_SPEC_CTRL : env -> spec_ctrl = msrs [ i ] . data ;\n break ;\n case MSR_IA32_RTIT_CTL : env -> msr_rtit_ctrl = msrs [ i ] . data ;\n break ;\n case MSR_IA32_RTIT_STATUS : env -> msr_rtit_status = msrs [ i ] . data ;\n break ;\n case MSR_IA32_RTIT_OUTPUT_BASE : env -> msr_rtit_output_base = msrs [ i ] . data ;\n break ;\n case MSR_IA32_RTIT_OUTPUT_MASK : env -> msr_rtit_output_mask = msrs [ i ] . data ;\n break ;\n case MSR_IA32_RTIT_CR3_MATCH : env -> msr_rtit_cr3_match = msrs [ i ] . data ;\n break ;\n case MSR_IA32_RTIT_ADDR0_A ... MSR_IA32_RTIT_ADDR3_B : env -> msr_rtit_addrs [ index - MSR_IA32_RTIT_ADDR0_A ] = msrs [ i ] . data ;\n break ;\n }\n }\n return 0 ;\n }"}
{"idx": 15754, "target": 1, "func": "SPL_METHOD ( SplFileObject , __construct ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n zend_bool use_include_path = 0 ;\n char * p1 , * p2 ;\n char * tmp_path ;\n int tmp_path_len ;\n zend_error_handling error_handling ;\n zend_replace_error_handling ( EH_THROW , spl_ce_RuntimeException , & error_handling TSRMLS_CC ) ;\n intern -> u . file . open_mode = NULL ;\n intern -> u . file . open_mode_len = 0 ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"p|sbr!\" , & intern -> file_name , & intern -> file_name_len , & intern -> u . file . open_mode , & intern -> u . file . open_mode_len , & use_include_path , & intern -> u . file . zcontext ) == FAILURE ) {\n intern -> u . file . open_mode = NULL ;\n intern -> file_name = NULL ;\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n return ;\n }\n if ( intern -> u . file . open_mode == NULL ) {\n intern -> u . file . open_mode = \"r\" ;\n intern -> u . file . open_mode_len = 1 ;\n }\n if ( spl_filesystem_file_open ( intern , use_include_path , 0 TSRMLS_CC ) == SUCCESS ) {\n tmp_path_len = strlen ( intern -> u . file . stream -> orig_path ) ;\n if ( tmp_path_len > 1 && IS_SLASH_AT ( intern -> u . file . stream -> orig_path , tmp_path_len - 1 ) ) {\n tmp_path_len -- ;\n }\n tmp_path = estrndup ( intern -> u . file . stream -> orig_path , tmp_path_len ) ;\n p1 = strrchr ( tmp_path , '/' ) ;\n # if defined ( PHP_WIN32 ) || defined ( NETWARE ) p2 = strrchr ( tmp_path , '\\\\' ) ;\n # else p2 = 0 ;\n # endif if ( p1 || p2 ) {\n intern -> _path_len = ( p1 > p2 ? p1 : p2 ) - tmp_path ;\n }\n else {\n intern -> _path_len = 0 ;\n }\n efree ( tmp_path ) ;\n intern -> _path = estrndup ( intern -> u . file . stream -> orig_path , intern -> _path_len ) ;\n }\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n }"}
{"idx": 15755, "target": 0, "func": "int ber_realloc ( BerElement * ber , ber_len_t len ) {\n ber_len_t total , offset , sos_offset ;\n char * buf ;\n assert ( ber != NULL ) ;\n assert ( LBER_VALID ( ber ) ) ;\n if ( ++ len == 0 ) {\n return ( - 1 ) ;\n }\n total = ber_pvt_ber_total ( ber ) ;\n # define LBER_EXBUFSIZ 4060 # if defined ( LBER_EXBUFSIZ ) && LBER_EXBUFSIZ > 0 # ifndef notdef total += len < LBER_EXBUFSIZ ? LBER_EXBUFSIZ : len ;\n # else {\n ber_len_t have = ( total + ( LBER_EXBUFSIZE - 1 ) ) / LBER_EXBUFSIZ ;\n ber_len_t need = ( len + ( LBER_EXBUFSIZ - 1 ) ) / LBER_EXBUFSIZ ;\n total = ( have + need ) * LBER_EXBUFSIZ ;\n }\n # endif # else total += len ;\n # endif if ( total < len || total > ( ber_len_t ) - 1 / 2 ) {\n return ( - 1 ) ;\n }\n buf = ber -> ber_buf ;\n offset = ber -> ber_ptr - buf ;\n sos_offset = ber -> ber_sos_ptr ? ber -> ber_sos_ptr - buf : 0 ;\n buf = ( char * ) ber_memrealloc_x ( buf , total , ber -> ber_memctx ) ;\n if ( buf == NULL ) {\n return ( - 1 ) ;\n }\n ber -> ber_buf = buf ;\n ber -> ber_end = buf + total ;\n ber -> ber_ptr = buf + offset ;\n if ( sos_offset ) ber -> ber_sos_ptr = buf + sos_offset ;\n return ( 0 ) ;\n }"}
{"idx": 15756, "target": 0, "func": "MV clamp_mv_to_umv_border_sb ( const MACROBLOCKD * xd , const MV * src_mv , int bw , int bh , int ss_x , int ss_y ) {\n const int spel_left = ( VP9_INTERP_EXTEND + bw ) << SUBPEL_BITS ;\n const int spel_right = spel_left - SUBPEL_SHIFTS ;\n const int spel_top = ( VP9_INTERP_EXTEND + bh ) << SUBPEL_BITS ;\n const int spel_bottom = spel_top - SUBPEL_SHIFTS ;\n MV clamped_mv = {\n src_mv -> row * ( 1 << ( 1 - ss_y ) ) , src_mv -> col * ( 1 << ( 1 - ss_x ) ) }\n ;\n assert ( ss_x <= 1 ) ;\n assert ( ss_y <= 1 ) ;\n clamp_mv ( & clamped_mv , xd -> mb_to_left_edge * ( 1 << ( 1 - ss_x ) ) - spel_left , xd -> mb_to_right_edge * ( 1 << ( 1 - ss_x ) ) + spel_right , xd -> mb_to_top_edge * ( 1 << ( 1 - ss_y ) ) - spel_top , xd -> mb_to_bottom_edge * ( 1 << ( 1 - ss_y ) ) + spel_bottom ) ;\n return clamped_mv ;\n }"}
{"idx": 15757, "target": 0, "func": "int dissect_h225_ExtendedAliasAddress_PDU ( tvbuff_t * tvb _U_ , packet_info * pinfo _U_ , proto_tree * tree _U_ , void * data _U_ ) {\n int offset = 0 ;\n asn1_ctx_t asn1_ctx ;\n asn1_ctx_init ( & asn1_ctx , ASN1_ENC_PER , TRUE , pinfo ) ;\n offset = dissect_h225_ExtendedAliasAddress ( tvb , offset , & asn1_ctx , tree , hf_h225_h225_ExtendedAliasAddress_PDU ) ;\n offset += 7 ;\n offset >>= 3 ;\n return offset ;\n }"}
{"idx": 15758, "target": 0, "func": "static void prplcb_privacy_permit_removed ( PurpleAccount * account , const char * name ) {\n struct im_connection * ic = purple_ic_by_pa ( account ) ;\n void * n ;\n n = g_slist_find_custom ( ic -> permit , name , ( GCompareFunc ) ic -> acc -> prpl -> handle_cmp ) ;\n ic -> permit = g_slist_remove ( ic -> permit , n ) ;\n }"}
{"idx": 15759, "target": 0, "func": "static int kvm_get_mce_cap_supported ( KVMState * s , uint64_t * mce_cap , int * max_banks ) {\n int r ;\n r = kvm_check_extension ( s , KVM_CAP_MCE ) ;\n if ( r > 0 ) {\n * max_banks = r ;\n return kvm_ioctl ( s , KVM_X86_GET_MCE_CAP_SUPPORTED , mce_cap ) ;\n }\n return - ENOSYS ;\n }"}
{"idx": 15760, "target": 0, "func": "void DropBlobIfExists ( ArchiveHandle * AH , Oid oid ) {\n if ( AH -> connection == NULL || PQserverVersion ( AH -> connection ) >= 90000 ) {\n ahprintf ( AH , \"SELECT pg_catalog.lo_unlink(oid) \" \"FROM pg_catalog.pg_largeobject_metadata \" \"WHERE oid = '%u';\n\\n\" , oid ) ;\n }\n else {\n ahprintf ( AH , \"SELECT CASE WHEN EXISTS(\" \"SELECT 1 FROM pg_catalog.pg_largeobject WHERE loid = '%u'\" \") THEN pg_catalog.lo_unlink('%u') END;\n\\n\" , oid , oid ) ;\n }\n }"}
{"idx": 15761, "target": 1, "func": "extern int name ( int ) __THROW __exctype ( isalnum ) ;\n __exctype ( isalpha ) ;\n __exctype ( iscntrl ) ;\n __exctype ( isdigit ) ;\n __exctype ( islower ) ;\n __exctype ( isgraph ) ;\n __exctype ( isprint )"}
{"idx": 15762, "target": 0, "func": "static inline uint16_t tswap16 ( uint16_t s ) {\n return s ;\n }"}
{"idx": 15763, "target": 0, "func": "const char * SSL_state_string_long ( const SSL * s ) {\n const char * str ;\n switch ( s -> state ) {\n case SSL_ST_BEFORE : str = \"before SSL initialization\" ;\n break ;\n case SSL_ST_ACCEPT : str = \"before accept initialization\" ;\n break ;\n case SSL_ST_CONNECT : str = \"before connect initialization\" ;\n break ;\n case SSL_ST_OK : str = \"SSL negotiation finished successfully\" ;\n break ;\n case SSL_ST_RENEGOTIATE : str = \"SSL renegotiate ciphers\" ;\n break ;\n case SSL_ST_BEFORE | SSL_ST_CONNECT : str = \"before/connect initialization\" ;\n break ;\n case SSL_ST_OK | SSL_ST_CONNECT : str = \"ok/connect SSL initialization\" ;\n break ;\n case SSL_ST_BEFORE | SSL_ST_ACCEPT : str = \"before/accept initialization\" ;\n break ;\n case SSL_ST_OK | SSL_ST_ACCEPT : str = \"ok/accept SSL initialization\" ;\n break ;\n case SSL_ST_ERR : str = \"error\" ;\n break ;\n # ifndef OPENSSL_NO_SSL2 case SSL2_ST_CLIENT_START_ENCRYPTION : str = \"SSLv2 client start encryption\" ;\n break ;\n case SSL2_ST_SERVER_START_ENCRYPTION : str = \"SSLv2 server start encryption\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_HELLO_A : str = \"SSLv2 write client hello A\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_HELLO_B : str = \"SSLv2 write client hello B\" ;\n break ;\n case SSL2_ST_GET_SERVER_HELLO_A : str = \"SSLv2 read server hello A\" ;\n break ;\n case SSL2_ST_GET_SERVER_HELLO_B : str = \"SSLv2 read server hello B\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_MASTER_KEY_A : str = \"SSLv2 write client master key A\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_MASTER_KEY_B : str = \"SSLv2 write client master key B\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_FINISHED_A : str = \"SSLv2 write client finished A\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_FINISHED_B : str = \"SSLv2 write client finished B\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_CERTIFICATE_A : str = \"SSLv2 write client certificate A\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_CERTIFICATE_B : str = \"SSLv2 write client certificate B\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_CERTIFICATE_C : str = \"SSLv2 write client certificate C\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_CERTIFICATE_D : str = \"SSLv2 write client certificate D\" ;\n break ;\n case SSL2_ST_GET_SERVER_VERIFY_A : str = \"SSLv2 read server verify A\" ;\n break ;\n case SSL2_ST_GET_SERVER_VERIFY_B : str = \"SSLv2 read server verify B\" ;\n break ;\n case SSL2_ST_GET_SERVER_FINISHED_A : str = \"SSLv2 read server finished A\" ;\n break ;\n case SSL2_ST_GET_SERVER_FINISHED_B : str = \"SSLv2 read server finished B\" ;\n break ;\n case SSL2_ST_GET_CLIENT_HELLO_A : str = \"SSLv2 read client hello A\" ;\n break ;\n case SSL2_ST_GET_CLIENT_HELLO_B : str = \"SSLv2 read client hello B\" ;\n break ;\n case SSL2_ST_GET_CLIENT_HELLO_C : str = \"SSLv2 read client hello C\" ;\n break ;\n case SSL2_ST_SEND_SERVER_HELLO_A : str = \"SSLv2 write server hello A\" ;\n break ;\n case SSL2_ST_SEND_SERVER_HELLO_B : str = \"SSLv2 write server hello B\" ;\n break ;\n case SSL2_ST_GET_CLIENT_MASTER_KEY_A : str = \"SSLv2 read client master key A\" ;\n break ;\n case SSL2_ST_GET_CLIENT_MASTER_KEY_B : str = \"SSLv2 read client master key B\" ;\n break ;\n case SSL2_ST_SEND_SERVER_VERIFY_A : str = \"SSLv2 write server verify A\" ;\n break ;\n case SSL2_ST_SEND_SERVER_VERIFY_B : str = \"SSLv2 write server verify B\" ;\n break ;\n case SSL2_ST_SEND_SERVER_VERIFY_C : str = \"SSLv2 write server verify C\" ;\n break ;\n case SSL2_ST_GET_CLIENT_FINISHED_A : str = \"SSLv2 read client finished A\" ;\n break ;\n case SSL2_ST_GET_CLIENT_FINISHED_B : str = \"SSLv2 read client finished B\" ;\n break ;\n case SSL2_ST_SEND_SERVER_FINISHED_A : str = \"SSLv2 write server finished A\" ;\n break ;\n case SSL2_ST_SEND_SERVER_FINISHED_B : str = \"SSLv2 write server finished B\" ;\n break ;\n case SSL2_ST_SEND_REQUEST_CERTIFICATE_A : str = \"SSLv2 write request certificate A\" ;\n break ;\n case SSL2_ST_SEND_REQUEST_CERTIFICATE_B : str = \"SSLv2 write request certificate B\" ;\n break ;\n case SSL2_ST_SEND_REQUEST_CERTIFICATE_C : str = \"SSLv2 write request certificate C\" ;\n break ;\n case SSL2_ST_SEND_REQUEST_CERTIFICATE_D : str = \"SSLv2 write request certificate D\" ;\n break ;\n case SSL2_ST_X509_GET_SERVER_CERTIFICATE : str = \"SSLv2 X509 read server certificate\" ;\n break ;\n case SSL2_ST_X509_GET_CLIENT_CERTIFICATE : str = \"SSLv2 X509 read client certificate\" ;\n break ;\n # endif # ifndef OPENSSL_NO_SSL3 case SSL3_ST_CW_CLNT_HELLO_A : str = \"SSLv3 write client hello A\" ;\n break ;\n case SSL3_ST_CW_CLNT_HELLO_B : str = \"SSLv3 write client hello B\" ;\n break ;\n case SSL3_ST_CR_SRVR_HELLO_A : str = \"SSLv3 read server hello A\" ;\n break ;\n case SSL3_ST_CR_SRVR_HELLO_B : str = \"SSLv3 read server hello B\" ;\n break ;\n case SSL3_ST_CR_CERT_A : str = \"SSLv3 read server certificate A\" ;\n break ;\n case SSL3_ST_CR_CERT_B : str = \"SSLv3 read server certificate B\" ;\n break ;\n case SSL3_ST_CR_KEY_EXCH_A : str = \"SSLv3 read server key exchange A\" ;\n break ;\n case SSL3_ST_CR_KEY_EXCH_B : str = \"SSLv3 read server key exchange B\" ;\n break ;\n case SSL3_ST_CR_CERT_REQ_A : str = \"SSLv3 read server certificate request A\" ;\n break ;\n case SSL3_ST_CR_CERT_REQ_B : str = \"SSLv3 read server certificate request B\" ;\n break ;\n case SSL3_ST_CR_SESSION_TICKET_A : str = \"SSLv3 read server session ticket A\" ;\n break ;\n case SSL3_ST_CR_SESSION_TICKET_B : str = \"SSLv3 read server session ticket B\" ;\n break ;\n case SSL3_ST_CR_SRVR_DONE_A : str = \"SSLv3 read server done A\" ;\n break ;\n case SSL3_ST_CR_SRVR_DONE_B : str = \"SSLv3 read server done B\" ;\n break ;\n case SSL3_ST_CW_CERT_A : str = \"SSLv3 write client certificate A\" ;\n break ;\n case SSL3_ST_CW_CERT_B : str = \"SSLv3 write client certificate B\" ;\n break ;\n case SSL3_ST_CW_CERT_C : str = \"SSLv3 write client certificate C\" ;\n break ;\n case SSL3_ST_CW_CERT_D : str = \"SSLv3 write client certificate D\" ;\n break ;\n case SSL3_ST_CW_KEY_EXCH_A : str = \"SSLv3 write client key exchange A\" ;\n break ;\n case SSL3_ST_CW_KEY_EXCH_B : str = \"SSLv3 write client key exchange B\" ;\n break ;\n case SSL3_ST_CW_CERT_VRFY_A : str = \"SSLv3 write certificate verify A\" ;\n break ;\n case SSL3_ST_CW_CERT_VRFY_B : str = \"SSLv3 write certificate verify B\" ;\n break ;\n case SSL3_ST_CW_CHANGE_A : case SSL3_ST_SW_CHANGE_A : str = \"SSLv3 write change cipher spec A\" ;\n break ;\n case SSL3_ST_CW_CHANGE_B : case SSL3_ST_SW_CHANGE_B : str = \"SSLv3 write change cipher spec B\" ;\n break ;\n case SSL3_ST_CW_FINISHED_A : case SSL3_ST_SW_FINISHED_A : str = \"SSLv3 write finished A\" ;\n break ;\n case SSL3_ST_CW_FINISHED_B : case SSL3_ST_SW_FINISHED_B : str = \"SSLv3 write finished B\" ;\n break ;\n case SSL3_ST_CR_CHANGE_A : case SSL3_ST_SR_CHANGE_A : str = \"SSLv3 read change cipher spec A\" ;\n break ;\n case SSL3_ST_CR_CHANGE_B : case SSL3_ST_SR_CHANGE_B : str = \"SSLv3 read change cipher spec B\" ;\n break ;\n case SSL3_ST_CR_FINISHED_A : case SSL3_ST_SR_FINISHED_A : str = \"SSLv3 read finished A\" ;\n break ;\n case SSL3_ST_CR_FINISHED_B : case SSL3_ST_SR_FINISHED_B : str = \"SSLv3 read finished B\" ;\n break ;\n case SSL3_ST_CW_FLUSH : case SSL3_ST_SW_FLUSH : str = \"SSLv3 flush data\" ;\n break ;\n case SSL3_ST_SR_CLNT_HELLO_A : str = \"SSLv3 read client hello A\" ;\n break ;\n case SSL3_ST_SR_CLNT_HELLO_B : str = \"SSLv3 read client hello B\" ;\n break ;\n case SSL3_ST_SR_CLNT_HELLO_C : str = \"SSLv3 read client hello C\" ;\n break ;\n case SSL3_ST_SW_HELLO_REQ_A : str = \"SSLv3 write hello request A\" ;\n break ;\n case SSL3_ST_SW_HELLO_REQ_B : str = \"SSLv3 write hello request B\" ;\n break ;\n case SSL3_ST_SW_HELLO_REQ_C : str = \"SSLv3 write hello request C\" ;\n break ;\n case SSL3_ST_SW_SRVR_HELLO_A : str = \"SSLv3 write server hello A\" ;\n break ;\n case SSL3_ST_SW_SRVR_HELLO_B : str = \"SSLv3 write server hello B\" ;\n break ;\n case SSL3_ST_SW_CERT_A : str = \"SSLv3 write certificate A\" ;\n break ;\n case SSL3_ST_SW_CERT_B : str = \"SSLv3 write certificate B\" ;\n break ;\n case SSL3_ST_SW_KEY_EXCH_A : str = \"SSLv3 write key exchange A\" ;\n break ;\n case SSL3_ST_SW_KEY_EXCH_B : str = \"SSLv3 write key exchange B\" ;\n break ;\n case SSL3_ST_SW_CERT_REQ_A : str = \"SSLv3 write certificate request A\" ;\n break ;\n case SSL3_ST_SW_CERT_REQ_B : str = \"SSLv3 write certificate request B\" ;\n break ;\n case SSL3_ST_SW_SESSION_TICKET_A : str = \"SSLv3 write session ticket A\" ;\n break ;\n case SSL3_ST_SW_SESSION_TICKET_B : str = \"SSLv3 write session ticket B\" ;\n break ;\n case SSL3_ST_SW_SRVR_DONE_A : str = \"SSLv3 write server done A\" ;\n break ;\n case SSL3_ST_SW_SRVR_DONE_B : str = \"SSLv3 write server done B\" ;\n break ;\n case SSL3_ST_SR_CERT_A : str = \"SSLv3 read client certificate A\" ;\n break ;\n case SSL3_ST_SR_CERT_B : str = \"SSLv3 read client certificate B\" ;\n break ;\n case SSL3_ST_SR_KEY_EXCH_A : str = \"SSLv3 read client key exchange A\" ;\n break ;\n case SSL3_ST_SR_KEY_EXCH_B : str = \"SSLv3 read client key exchange B\" ;\n break ;\n case SSL3_ST_SR_CERT_VRFY_A : str = \"SSLv3 read certificate verify A\" ;\n break ;\n case SSL3_ST_SR_CERT_VRFY_B : str = \"SSLv3 read certificate verify B\" ;\n break ;\n # endif case SSL23_ST_CW_CLNT_HELLO_A : str = \"SSLv2/v3 write client hello A\" ;\n break ;\n case SSL23_ST_CW_CLNT_HELLO_B : str = \"SSLv2/v3 write client hello B\" ;\n break ;\n case SSL23_ST_CR_SRVR_HELLO_A : str = \"SSLv2/v3 read server hello A\" ;\n break ;\n case SSL23_ST_CR_SRVR_HELLO_B : str = \"SSLv2/v3 read server hello B\" ;\n break ;\n case SSL23_ST_SR_CLNT_HELLO_A : str = \"SSLv2/v3 read client hello A\" ;\n break ;\n case SSL23_ST_SR_CLNT_HELLO_B : str = \"SSLv2/v3 read client hello B\" ;\n break ;\n case DTLS1_ST_CR_HELLO_VERIFY_REQUEST_A : str = \"DTLS1 read hello verify request A\" ;\n break ;\n case DTLS1_ST_CR_HELLO_VERIFY_REQUEST_B : str = \"DTLS1 read hello verify request B\" ;\n break ;\n case DTLS1_ST_SW_HELLO_VERIFY_REQUEST_A : str = \"DTLS1 write hello verify request A\" ;\n break ;\n case DTLS1_ST_SW_HELLO_VERIFY_REQUEST_B : str = \"DTLS1 write hello verify request B\" ;\n break ;\n default : str = \"unknown state\" ;\n break ;\n }\n return ( str ) ;\n }"}
{"idx": 15764, "target": 0, "func": "static int getarg ( const char * str , int code , arg_v * argp ) {\n u_long ul ;\n switch ( code & ~ OPT ) {\n case NTP_STR : argp -> string = str ;\n break ;\n case NTP_ADD : if ( ! getnetnum ( str , & argp -> netnum , NULL , 0 ) ) return 0 ;\n break ;\n case NTP_UINT : if ( '&' == str [ 0 ] ) {\n if ( ! atouint ( & str [ 1 ] , & ul ) ) {\n fprintf ( stderr , \"***Association index `%s' invalid/undecodable\\n\" , str ) ;\n return 0 ;\n }\n if ( 0 == numassoc ) {\n dogetassoc ( stdout ) ;\n if ( 0 == numassoc ) {\n fprintf ( stderr , \"***No associations found, `%s' unknown\\n\" , str ) ;\n return 0 ;\n }\n }\n ul = min ( ul , numassoc ) ;\n argp -> uval = assoc_cache [ ul - 1 ] . assid ;\n break ;\n }\n if ( ! atouint ( str , & argp -> uval ) ) {\n fprintf ( stderr , \"***Illegal unsigned value %s\\n\" , str ) ;\n return 0 ;\n }\n break ;\n case NTP_INT : if ( ! atoint ( str , & argp -> ival ) ) {\n fprintf ( stderr , \"***Illegal integer value %s\\n\" , str ) ;\n return 0 ;\n }\n break ;\n case IP_VERSION : if ( ! strcmp ( \"-6\" , str ) ) {\n argp -> ival = 6 ;\n }\n else if ( ! strcmp ( \"-4\" , str ) ) {\n argp -> ival = 4 ;\n }\n else {\n fprintf ( stderr , \"***Version must be either 4 or 6\\n\" ) ;\n return 0 ;\n }\n break ;\n }\n return 1 ;\n }"}
{"idx": 15765, "target": 0, "func": "static int dissect_h225_CapacityReportingSpecification ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_CapacityReportingSpecification , CapacityReportingSpecification_sequence ) ;\n return offset ;\n }"}
{"idx": 15766, "target": 0, "func": "int mime_parse_time ( const char * & buf , const char * end , int * hour , int * min , int * sec ) {\n if ( ! mime_parse_integer ( buf , end , hour ) ) {\n return 0 ;\n }\n if ( ! mime_parse_integer ( buf , end , min ) ) {\n return 0 ;\n }\n if ( ! mime_parse_integer ( buf , end , sec ) ) {\n return 0 ;\n }\n return 1 ;\n }"}
{"idx": 15767, "target": 0, "func": "static VP9_DENOISER_DECISION denoiser_filter ( const uint8_t * sig , int sig_stride , const uint8_t * mc_avg , int mc_avg_stride , uint8_t * avg , int avg_stride , int increase_denoising , BLOCK_SIZE bs , int motion_magnitude ) {\n int r , c ;\n const uint8_t * sig_start = sig ;\n const uint8_t * mc_avg_start = mc_avg ;\n uint8_t * avg_start = avg ;\n int diff , adj , absdiff , delta ;\n int adj_val [ ] = {\n 3 , 4 , 6 }\n ;\n int total_adj = 0 ;\n int shift_inc = 1 ;\n if ( motion_magnitude <= MOTION_MAGNITUDE_THRESHOLD ) {\n if ( increase_denoising ) {\n shift_inc = 2 ;\n }\n adj_val [ 0 ] += shift_inc ;\n adj_val [ 1 ] += shift_inc ;\n adj_val [ 2 ] += shift_inc ;\n }\n for ( r = 0 ;\n r < heights [ bs ] ;\n ++ r ) {\n for ( c = 0 ;\n c < widths [ bs ] ;\n ++ c ) {\n diff = mc_avg [ c ] - sig [ c ] ;\n absdiff = abs ( diff ) ;\n if ( absdiff <= absdiff_thresh ( bs , increase_denoising ) ) {\n avg [ c ] = mc_avg [ c ] ;\n total_adj += diff ;\n }\n else {\n switch ( absdiff ) {\n case 4 : case 5 : case 6 : case 7 : adj = adj_val [ 0 ] ;\n break ;\n case 8 : case 9 : case 10 : case 11 : case 12 : case 13 : case 14 : case 15 : adj = adj_val [ 1 ] ;\n break ;\n default : adj = adj_val [ 2 ] ;\n }\n if ( diff > 0 ) {\n avg [ c ] = MIN ( UINT8_MAX , sig [ c ] + adj ) ;\n total_adj += adj ;\n }\n else {\n avg [ c ] = MAX ( 0 , sig [ c ] - adj ) ;\n total_adj -= adj ;\n }\n }\n }\n sig += sig_stride ;\n avg += avg_stride ;\n mc_avg += mc_avg_stride ;\n }\n if ( abs ( total_adj ) <= total_adj_strong_thresh ( bs , increase_denoising ) ) {\n return FILTER_BLOCK ;\n }\n delta = ( ( abs ( total_adj ) - total_adj_strong_thresh ( bs , increase_denoising ) ) >> 8 ) + 1 ;\n if ( delta >= delta_thresh ( bs , increase_denoising ) ) {\n return COPY_BLOCK ;\n }\n mc_avg = mc_avg_start ;\n avg = avg_start ;\n sig = sig_start ;\n for ( r = 0 ;\n r < heights [ bs ] ;\n ++ r ) {\n for ( c = 0 ;\n c < widths [ bs ] ;\n ++ c ) {\n diff = mc_avg [ c ] - sig [ c ] ;\n adj = abs ( diff ) ;\n if ( adj > delta ) {\n adj = delta ;\n }\n if ( diff > 0 ) {\n avg [ c ] = MAX ( 0 , avg [ c ] - adj ) ;\n total_adj -= adj ;\n }\n else {\n avg [ c ] = MIN ( UINT8_MAX , avg [ c ] + adj ) ;\n total_adj += adj ;\n }\n }\n sig += sig_stride ;\n avg += avg_stride ;\n mc_avg += mc_avg_stride ;\n }\n if ( abs ( total_adj ) <= total_adj_weak_thresh ( bs , increase_denoising ) ) {\n return FILTER_BLOCK ;\n }\n return COPY_BLOCK ;\n }"}
{"idx": 15768, "target": 0, "func": "static int qemudParseDriveAddReply ( const char * reply , virDomainDeviceDriveAddressPtr addr ) {\n char * s , * e ;\n if ( ! ( s = strstr ( reply , \"OK \" ) ) ) return - 1 ;\n s += 3 ;\n if ( STRPREFIX ( s , \"bus \" ) ) {\n s += strlen ( \"bus \" ) ;\n if ( virStrToLong_ui ( s , & e , 10 , & addr -> bus ) == - 1 ) {\n VIR_WARN ( \"Unable to parse bus '%s'\" , s ) ;\n return - 1 ;\n }\n if ( ! STRPREFIX ( e , \", \" ) ) {\n VIR_WARN ( \"Expected ', ' parsing drive_add reply '%s'\" , s ) ;\n return - 1 ;\n }\n s = e + 2 ;\n }\n if ( ! STRPREFIX ( s , \"unit \" ) ) {\n VIR_WARN ( \"Expected 'unit ' parsing drive_add reply '%s'\" , s ) ;\n return - 1 ;\n }\n s += strlen ( \"bus \" ) ;\n if ( virStrToLong_ui ( s , & e , 10 , & addr -> unit ) == - 1 ) {\n VIR_WARN ( \"Unable to parse unit number '%s'\" , s ) ;\n return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 15769, "target": 0, "func": "static ssize_t qio_channel_websock_writev ( QIOChannel * ioc , const struct iovec * iov , size_t niov , int * fds , size_t nfds , Error * * errp ) {\n QIOChannelWebsock * wioc = QIO_CHANNEL_WEBSOCK ( ioc ) ;\n size_t i ;\n ssize_t done = 0 ;\n ssize_t ret ;\n if ( wioc -> io_err ) {\n error_propagate ( errp , error_copy ( wioc -> io_err ) ) ;\n return - 1 ;\n }\n if ( wioc -> io_eof ) {\n error_setg ( errp , \"%s\" , \"Broken pipe\" ) ;\n return - 1 ;\n }\n for ( i = 0 ;\n i < niov ;\n i ++ ) {\n size_t want = iov [ i ] . iov_len ;\n if ( ( want + wioc -> rawoutput . offset ) > QIO_CHANNEL_WEBSOCK_MAX_BUFFER ) {\n want = ( QIO_CHANNEL_WEBSOCK_MAX_BUFFER - wioc -> rawoutput . offset ) ;\n }\n if ( want == 0 ) {\n goto done ;\n }\n buffer_reserve ( & wioc -> rawoutput , want ) ;\n buffer_append ( & wioc -> rawoutput , iov [ i ] . iov_base , want ) ;\n done += want ;\n if ( want < iov [ i ] . iov_len ) {\n break ;\n }\n }\n done : ret = qio_channel_websock_write_wire ( wioc , errp ) ;\n if ( ret < 0 && ret != QIO_CHANNEL_ERR_BLOCK ) {\n qio_channel_websock_unset_watch ( wioc ) ;\n return - 1 ;\n }\n qio_channel_websock_set_watch ( wioc ) ;\n if ( done == 0 ) {\n return QIO_CHANNEL_ERR_BLOCK ;\n }\n return done ;\n }"}
{"idx": 15770, "target": 0, "func": "unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 )"}
{"idx": 15771, "target": 0, "func": "static inline guint16 gst_asf_demux_get_uint16 ( guint8 * * p_data , guint64 * p_size ) {\n guint16 ret ;\n g_assert ( * p_size >= 2 ) ;\n ret = GST_READ_UINT16_LE ( * p_data ) ;\n * p_data += sizeof ( guint16 ) ;\n * p_size -= sizeof ( guint16 ) ;\n return ret ;\n }"}
{"idx": 15772, "target": 0, "func": "TEST_F ( ExtensionServiceSyncTest , ProcessSyncDataWrongType ) {\n InitializeEmptyExtensionService ( ) ;\n StartSyncing ( syncer : : EXTENSIONS ) ;\n StartSyncing ( syncer : : APPS ) ;\n base : : FilePath extension_path = data_dir ( ) . AppendASCII ( \"good.crx\" ) ;\n InstallCRX ( extension_path , INSTALL_NEW ) ;\n EXPECT_TRUE ( service ( ) -> GetExtensionById ( good_crx , true ) ) ;\n sync_pb : : EntitySpecifics specifics ;\n sync_pb : : AppSpecifics * app_specifics = specifics . mutable_app ( ) ;\n sync_pb : : ExtensionSpecifics * extension_specifics = app_specifics -> mutable_extension ( ) ;\n extension_specifics -> set_id ( good_crx ) ;\n extension_specifics -> set_version ( service ( ) -> GetInstalledExtension ( good_crx ) -> version ( ) -> GetString ( ) ) ;\n {\n extension_specifics -> set_enabled ( true ) ;\n SyncChangeList list = MakeSyncChangeList ( good_crx , specifics , SyncChange : : ACTION_DELETE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_TRUE ( service ( ) -> GetExtensionById ( good_crx , true ) ) ;\n }\n {\n extension_specifics -> set_enabled ( false ) ;\n SyncChangeList list = MakeSyncChangeList ( good_crx , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_TRUE ( service ( ) -> GetExtensionById ( good_crx , false ) ) ;\n }\n }"}
{"idx": 15773, "target": 0, "func": "static void usb_ohci_realize_pci ( PCIDevice * dev , Error * * errp ) {\n Error * err = NULL ;\n OHCIPCIState * ohci = PCI_OHCI ( dev ) ;\n dev -> config [ PCI_CLASS_PROG ] = 0x10 ;\n dev -> config [ PCI_INTERRUPT_PIN ] = 0x01 ;\n usb_ohci_init ( & ohci -> state , DEVICE ( dev ) , ohci -> num_ports , 0 , ohci -> masterbus , ohci -> firstport , pci_get_address_space ( dev ) , & err ) ;\n if ( err ) {\n error_propagate ( errp , err ) ;\n return ;\n }\n ohci -> state . irq = pci_allocate_irq ( dev ) ;\n pci_register_bar ( dev , 0 , 0 , & ohci -> state . mem ) ;\n }"}
{"idx": 15774, "target": 0, "func": "void TSSkipRemappingSet ( TSHttpTxn txnp , int flag ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n sm -> t_state . api_skip_all_remapping = ( flag != 0 ) ;\n }"}
{"idx": 15775, "target": 0, "func": "static int utf8_to_unicode ( uint32_t * pwc , const char * s , size_t n ) {\n int cnt ;\n cnt = _utf8_to_unicode ( pwc , s , n ) ;\n if ( cnt == 3 && IS_SURROGATE_PAIR_LA ( * pwc ) ) return ( - 3 ) ;\n return ( cnt ) ;\n }"}
{"idx": 15776, "target": 0, "func": "static CURLcode dict_do ( struct connectdata * conn , bool * done ) {\n char * word ;\n char * eword ;\n char * ppath ;\n char * database = NULL ;\n char * strategy = NULL ;\n char * nthdef = NULL ;\n CURLcode result = CURLE_OK ;\n struct Curl_easy * data = conn -> data ;\n curl_socket_t sockfd = conn -> sock [ FIRSTSOCKET ] ;\n char * path = data -> state . path ;\n curl_off_t * bytecount = & data -> req . bytecount ;\n * done = TRUE ;\n if ( conn -> bits . user_passwd ) {\n }\n if ( Curl_raw_nequal ( path , DICT_MATCH , sizeof ( DICT_MATCH ) - 1 ) || Curl_raw_nequal ( path , DICT_MATCH2 , sizeof ( DICT_MATCH2 ) - 1 ) || Curl_raw_nequal ( path , DICT_MATCH3 , sizeof ( DICT_MATCH3 ) - 1 ) ) {\n word = strchr ( path , ':' ) ;\n if ( word ) {\n word ++ ;\n database = strchr ( word , ':' ) ;\n if ( database ) {\n * database ++ = ( char ) 0 ;\n strategy = strchr ( database , ':' ) ;\n if ( strategy ) {\n * strategy ++ = ( char ) 0 ;\n nthdef = strchr ( strategy , ':' ) ;\n if ( nthdef ) {\n * nthdef = ( char ) 0 ;\n }\n }\n }\n }\n if ( ( word == NULL ) || ( * word == ( char ) 0 ) ) {\n infof ( data , \"lookup word is missing\\n\" ) ;\n word = ( char * ) \"default\" ;\n }\n if ( ( database == NULL ) || ( * database == ( char ) 0 ) ) {\n database = ( char * ) \"!\" ;\n }\n if ( ( strategy == NULL ) || ( * strategy == ( char ) 0 ) ) {\n strategy = ( char * ) \".\" ;\n }\n eword = unescape_word ( data , word ) ;\n if ( ! eword ) return CURLE_OUT_OF_MEMORY ;\n result = Curl_sendf ( sockfd , conn , \"CLIENT \" LIBCURL_NAME \" \" LIBCURL_VERSION \"\\r\\n\" \"MATCH \" \"%s \" \"%s \" \"%s\\r\\n\" \"QUIT\\r\\n\" , database , strategy , eword ) ;\n free ( eword ) ;\n if ( result ) {\n failf ( data , \"Failed sending DICT request\" ) ;\n return result ;\n }\n Curl_setup_transfer ( conn , FIRSTSOCKET , - 1 , FALSE , bytecount , - 1 , NULL ) ;\n }\n else if ( Curl_raw_nequal ( path , DICT_DEFINE , sizeof ( DICT_DEFINE ) - 1 ) || Curl_raw_nequal ( path , DICT_DEFINE2 , sizeof ( DICT_DEFINE2 ) - 1 ) || Curl_raw_nequal ( path , DICT_DEFINE3 , sizeof ( DICT_DEFINE3 ) - 1 ) ) {\n word = strchr ( path , ':' ) ;\n if ( word ) {\n word ++ ;\n database = strchr ( word , ':' ) ;\n if ( database ) {\n * database ++ = ( char ) 0 ;\n nthdef = strchr ( database , ':' ) ;\n if ( nthdef ) {\n * nthdef = ( char ) 0 ;\n }\n }\n }\n if ( ( word == NULL ) || ( * word == ( char ) 0 ) ) {\n infof ( data , \"lookup word is missing\\n\" ) ;\n word = ( char * ) \"default\" ;\n }\n if ( ( database == NULL ) || ( * database == ( char ) 0 ) ) {\n database = ( char * ) \"!\" ;\n }\n eword = unescape_word ( data , word ) ;\n if ( ! eword ) return CURLE_OUT_OF_MEMORY ;\n result = Curl_sendf ( sockfd , conn , \"CLIENT \" LIBCURL_NAME \" \" LIBCURL_VERSION \"\\r\\n\" \"DEFINE \" \"%s \" \"%s\\r\\n\" \"QUIT\\r\\n\" , database , eword ) ;\n free ( eword ) ;\n if ( result ) {\n failf ( data , \"Failed sending DICT request\" ) ;\n return result ;\n }\n Curl_setup_transfer ( conn , FIRSTSOCKET , - 1 , FALSE , bytecount , - 1 , NULL ) ;\n }\n else {\n ppath = strchr ( path , '/' ) ;\n if ( ppath ) {\n int i ;\n ppath ++ ;\n for ( i = 0 ;\n ppath [ i ] ;\n i ++ ) {\n if ( ppath [ i ] == ':' ) ppath [ i ] = ' ' ;\n }\n result = Curl_sendf ( sockfd , conn , \"CLIENT \" LIBCURL_NAME \" \" LIBCURL_VERSION \"\\r\\n\" \"%s\\r\\n\" \"QUIT\\r\\n\" , ppath ) ;\n if ( result ) {\n failf ( data , \"Failed sending DICT request\" ) ;\n return result ;\n }\n Curl_setup_transfer ( conn , FIRSTSOCKET , - 1 , FALSE , bytecount , - 1 , NULL ) ;\n }\n }\n return CURLE_OK ;\n }"}
{"idx": 15777, "target": 0, "func": "TEST_F ( WebFrameSimTest , RtlInitialScrollOffsetWithViewport ) {\n UseAndroidSettings ( ) ;\n WebView ( ) . Resize ( WebSize ( 400 , 400 ) ) ;\n WebView ( ) . SetDefaultPageScaleLimits ( 0.25f , 2 ) ;\n SimRequest main_resource ( \"https://example.com/test.html\" , \"text/html\" ) ;\n LoadURL ( \"https://example.com/test.html\" ) ;\n main_resource . Complete ( R \"HTML( < meta name = 'viewport' content = 'width=device-width, minimum-scale=1' > < body dir = 'rtl' > < div style = 'width: 3000px;\n height: 20px' > < / div > ) HTML \");\n Compositor ( ) . BeginFrame ( ) ;\n ScrollableArea * area = GetDocument ( ) . View ( ) -> LayoutViewport ( ) ;\n ASSERT_EQ ( ScrollOffset ( 0 , 0 ) , area -> GetScrollOffset ( ) ) ;\n }"}
{"idx": 15778, "target": 0, "func": "static void volume_mount_cb ( GObject * source_object , GAsyncResult * res , gpointer user_data ) {\n NautilusMountCallback mount_callback ;\n GObject * mount_callback_data_object ;\n GMountOperation * mount_op = user_data ;\n GError * error ;\n char * primary ;\n char * name ;\n gboolean success ;\n success = TRUE ;\n error = NULL ;\n if ( ! g_volume_mount_finish ( G_VOLUME ( source_object ) , res , & error ) ) {\n if ( error -> code != G_IO_ERROR_FAILED_HANDLED && error -> code != G_IO_ERROR_ALREADY_MOUNTED ) {\n GtkWindow * parent ;\n parent = gtk_mount_operation_get_parent ( GTK_MOUNT_OPERATION ( mount_op ) ) ;\n name = g_volume_get_name ( G_VOLUME ( source_object ) ) ;\n primary = g_strdup_printf ( _ ( \"Unable to access \u201c%s\u201d\" ) , name ) ;\n g_free ( name ) ;\n success = FALSE ;\n eel_show_error_dialog ( primary , error -> message , parent ) ;\n g_free ( primary ) ;\n }\n g_error_free ( error ) ;\n }\n mount_callback = ( NautilusMountCallback ) g_object_get_data ( G_OBJECT ( mount_op ) , \"mount-callback\" ) ;\n mount_callback_data_object = g_object_get_data ( G_OBJECT ( mount_op ) , \"mount-callback-data\" ) ;\n if ( mount_callback != NULL ) {\n ( * mount_callback ) ( G_VOLUME ( source_object ) , success , mount_callback_data_object ) ;\n if ( mount_callback_data_object != NULL ) {\n g_object_weak_unref ( mount_callback_data_object , mount_callback_data_notify , mount_op ) ;\n }\n }\n g_object_unref ( mount_op ) ;\n }"}
{"idx": 15779, "target": 0, "func": "static void cblk_destroy ( jpc_enc_cblk_t * cblk ) {\n uint_fast16_t passno ;\n jpc_enc_pass_t * pass ;\n if ( cblk -> passes ) {\n for ( passno = 0 , pass = cblk -> passes ;\n passno < cblk -> numpasses ;\n ++ passno , ++ pass ) {\n pass_destroy ( pass ) ;\n }\n jas_free ( cblk -> passes ) ;\n cblk -> passes = NULL ;\n }\n if ( cblk -> stream ) {\n jas_stream_close ( cblk -> stream ) ;\n cblk -> stream = NULL ;\n }\n if ( cblk -> mqenc ) {\n jpc_mqenc_destroy ( cblk -> mqenc ) ;\n cblk -> mqenc = NULL ;\n }\n if ( cblk -> data ) {\n jas_seq2d_destroy ( cblk -> data ) ;\n cblk -> data = NULL ;\n }\n if ( cblk -> flags ) {\n jas_seq2d_destroy ( cblk -> flags ) ;\n cblk -> flags = NULL ;\n }\n }"}
{"idx": 15780, "target": 0, "func": "void make_sets_invisible ( REP_SETS * sets ) {\n sets -> invisible = sets -> count ;\n sets -> set += sets -> count ;\n sets -> count = 0 ;\n }"}
{"idx": 15781, "target": 0, "func": "static void dequant_lsp10r ( GetBitContext * gb , double * i_lsps , const double * old , double * a1 , double * a2 , int q_mode ) {\n static const uint16_t vec_sizes [ 3 ] = {\n 128 , 64 , 64 }\n ;\n static const double mul_lsf [ 3 ] = {\n 2.5807601174e-3 , 1.2354460219e-3 , 1.1763821673e-3 }\n ;\n static const double base_lsf [ 3 ] = {\n M_PI * - 1.07448e-1 , M_PI * - 5.2706e-2 , M_PI * - 5.1634e-2 }\n ;\n const float ( * ipol_tab ) [ 2 ] [ 10 ] = q_mode ? wmavoice_lsp10_intercoeff_b : wmavoice_lsp10_intercoeff_a ;\n uint16_t interpol , v [ 3 ] ;\n int n ;\n dequant_lsp10i ( gb , i_lsps ) ;\n interpol = get_bits ( gb , 5 ) ;\n v [ 0 ] = get_bits ( gb , 7 ) ;\n v [ 1 ] = get_bits ( gb , 6 ) ;\n v [ 2 ] = get_bits ( gb , 6 ) ;\n for ( n = 0 ;\n n < 10 ;\n n ++ ) {\n double delta = old [ n ] - i_lsps [ n ] ;\n a1 [ n ] = ipol_tab [ interpol ] [ 0 ] [ n ] * delta + i_lsps [ n ] ;\n a1 [ 10 + n ] = ipol_tab [ interpol ] [ 1 ] [ n ] * delta + i_lsps [ n ] ;\n }\n dequant_lsps ( a2 , 20 , v , vec_sizes , 3 , wmavoice_dq_lsp10r , mul_lsf , base_lsf ) ;\n }"}
{"idx": 15782, "target": 0, "func": "static int read_logical_screen_descriptor ( Gif_Stream * gfs , Gif_Reader * grr ) {\n uint8_t packed ;\n gfs -> screen_width = gifgetunsigned ( grr ) ;\n gfs -> screen_height = gifgetunsigned ( grr ) ;\n packed = gifgetbyte ( grr ) ;\n gfs -> background = gifgetbyte ( grr ) ;\n gifgetbyte ( grr ) ;\n if ( packed & 0x80 ) {\n int ncol = 1 << ( ( packed & 0x07 ) + 1 ) ;\n gfs -> global = read_color_table ( ncol , grr ) ;\n if ( ! gfs -> global ) return 0 ;\n gfs -> global -> refcount = 1 ;\n }\n else gfs -> background = 256 ;\n return 1 ;\n }"}
{"idx": 15783, "target": 0, "func": "int dtls1_send_certificate_request ( SSL * s ) {\n unsigned char * p , * d ;\n int i , j , nl , off , n ;\n STACK_OF ( X509_NAME ) * sk = NULL ;\n X509_NAME * name ;\n BUF_MEM * buf ;\n unsigned int msg_len ;\n if ( s -> state == SSL3_ST_SW_CERT_REQ_A ) {\n buf = s -> init_buf ;\n d = p = ( unsigned char * ) & ( buf -> data [ DTLS1_HM_HEADER_LENGTH ] ) ;\n p ++ ;\n n = ssl3_get_req_cert_type ( s , p ) ;\n d [ 0 ] = n ;\n p += n ;\n n ++ ;\n off = n ;\n p += 2 ;\n n += 2 ;\n sk = SSL_get_client_CA_list ( s ) ;\n nl = 0 ;\n if ( sk != NULL ) {\n for ( i = 0 ;\n i < sk_X509_NAME_num ( sk ) ;\n i ++ ) {\n name = sk_X509_NAME_value ( sk , i ) ;\n j = i2d_X509_NAME ( name , NULL ) ;\n if ( ! BUF_MEM_grow_clean ( buf , DTLS1_HM_HEADER_LENGTH + n + j + 2 ) ) {\n SSLerr ( SSL_F_DTLS1_SEND_CERTIFICATE_REQUEST , ERR_R_BUF_LIB ) ;\n goto err ;\n }\n p = ( unsigned char * ) & ( buf -> data [ DTLS1_HM_HEADER_LENGTH + n ] ) ;\n if ( ! ( s -> options & SSL_OP_NETSCAPE_CA_DN_BUG ) ) {\n s2n ( j , p ) ;\n i2d_X509_NAME ( name , & p ) ;\n n += 2 + j ;\n nl += 2 + j ;\n }\n else {\n d = p ;\n i2d_X509_NAME ( name , & p ) ;\n j -= 2 ;\n s2n ( j , d ) ;\n j += 2 ;\n n += j ;\n nl += j ;\n }\n }\n }\n p = ( unsigned char * ) & ( buf -> data [ DTLS1_HM_HEADER_LENGTH + off ] ) ;\n s2n ( nl , p ) ;\n d = ( unsigned char * ) buf -> data ;\n * ( d ++ ) = SSL3_MT_CERTIFICATE_REQUEST ;\n l2n3 ( n , d ) ;\n s2n ( s -> d1 -> handshake_write_seq , d ) ;\n s -> d1 -> handshake_write_seq ++ ;\n s -> init_num = n + DTLS1_HM_HEADER_LENGTH ;\n s -> init_off = 0 ;\n # ifdef NETSCAPE_HANG_BUG p = ( unsigned char * ) s -> init_buf -> data + s -> init_num ;\n * ( p ++ ) = SSL3_MT_SERVER_DONE ;\n * ( p ++ ) = 0 ;\n * ( p ++ ) = 0 ;\n * ( p ++ ) = 0 ;\n s -> init_num += 4 ;\n # endif msg_len = s -> init_num - DTLS1_HM_HEADER_LENGTH ;\n dtls1_set_message_header ( s , ( void * ) s -> init_buf -> data , SSL3_MT_CERTIFICATE_REQUEST , msg_len , 0 , msg_len ) ;\n dtls1_buffer_message ( s , 0 ) ;\n s -> state = SSL3_ST_SW_CERT_REQ_B ;\n }\n return ( dtls1_do_write ( s , SSL3_RT_HANDSHAKE ) ) ;\n err : return ( - 1 ) ;\n }"}
{"idx": 15784, "target": 0, "func": "int ssl3_do_compress ( SSL * ssl , SSL3_RECORD * wr ) {\n # ifndef OPENSSL_NO_COMP int i ;\n i = COMP_compress_block ( ssl -> compress , wr -> data , SSL3_RT_MAX_COMPRESSED_LENGTH , wr -> input , ( int ) wr -> length ) ;\n if ( i < 0 ) return ( 0 ) ;\n else wr -> length = i ;\n wr -> input = wr -> data ;\n # endif return ( 1 ) ;\n }"}
{"idx": 15785, "target": 0, "func": "void configure_icount ( const char * option ) {\n vmstate_register ( NULL , 0 , & vmstate_timers , & timers_state ) ;\n if ( ! option ) {\n return ;\n }\n icount_warp_timer = qemu_new_timer_ns ( rt_clock , icount_warp_rt , NULL ) ;\n if ( strcmp ( option , \"auto\" ) != 0 ) {\n icount_time_shift = strtol ( option , NULL , 0 ) ;\n use_icount = 1 ;\n return ;\n }\n use_icount = 2 ;\n icount_time_shift = 3 ;\n icount_rt_timer = qemu_new_timer_ms ( rt_clock , icount_adjust_rt , NULL ) ;\n qemu_mod_timer ( icount_rt_timer , qemu_get_clock_ms ( rt_clock ) + 1000 ) ;\n icount_vm_timer = qemu_new_timer_ns ( vm_clock , icount_adjust_vm , NULL ) ;\n qemu_mod_timer ( icount_vm_timer , qemu_get_clock_ns ( vm_clock ) + get_ticks_per_sec ( ) / 10 ) ;\n }"}
{"idx": 15786, "target": 0, "func": "static int dissect_NOTIFY_INFO_DATA_printer ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , proto_item * item , dcerpc_info * di , guint8 * drep , guint16 field ) {\n guint32 value1 ;\n switch ( field ) {\n case PRINTER_NOTIFY_SERVER_NAME : case PRINTER_NOTIFY_PRINTER_NAME : case PRINTER_NOTIFY_SHARE_NAME : case PRINTER_NOTIFY_DRIVER_NAME : case PRINTER_NOTIFY_COMMENT : case PRINTER_NOTIFY_LOCATION : case PRINTER_NOTIFY_SEPFILE : case PRINTER_NOTIFY_PRINT_PROCESSOR : case PRINTER_NOTIFY_PARAMETERS : case PRINTER_NOTIFY_DATATYPE : case PRINTER_NOTIFY_PORT_NAME : offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_notify_info_data_bufsize , & value1 ) ;\n offset = dissect_ndr_pointer_cb ( tvb , offset , pinfo , tree , di , drep , dissect_notify_info_data_buffer , NDR_POINTER_UNIQUE , \"String\" , hf_notify_info_data_buffer , cb_notify_str_postprocess , GINT_TO_POINTER ( printer_notify_hf_index ( field ) ) ) ;\n break ;\n case PRINTER_NOTIFY_ATTRIBUTES : offset = dissect_printer_attributes ( tvb , offset , pinfo , tree , di , drep ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , NULL , di , drep , hf_notify_info_data_value2 , NULL ) ;\n break ;\n case PRINTER_NOTIFY_STATUS : {\n guint32 status ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_printer_status , & status ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , NULL , di , drep , hf_notify_info_data_value2 , NULL ) ;\n proto_item_append_text ( item , \": %s\" , val_to_str_ext_const ( status , & printer_status_vals_ext , \"Unknown\" ) ) ;\n break ;\n }\n case PRINTER_NOTIFY_SECURITY_DESCRIPTOR : case PRINTER_NOTIFY_DEVMODE : offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_notify_info_data_bufsize , & value1 ) ;\n offset = dissect_ndr_pointer ( tvb , offset , pinfo , tree , di , drep , dissect_notify_info_data_buffer , NDR_POINTER_UNIQUE , \"Buffer\" , hf_notify_info_data_buffer ) ;\n break ;\n default : offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_notify_info_data_value1 , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_notify_info_data_value2 , NULL ) ;\n break ;\n }\n return offset ;\n }"}
{"idx": 15787, "target": 0, "func": "static int ivr_read_header ( AVFormatContext * s ) {\n unsigned tag , type , len , tlen , value ;\n int i , j , n , count , nb_streams = 0 , ret ;\n uint8_t key [ 256 ] , val [ 256 ] ;\n AVIOContext * pb = s -> pb ;\n AVStream * st ;\n int64_t pos , offset , temp ;\n pos = avio_tell ( pb ) ;\n tag = avio_rl32 ( pb ) ;\n if ( tag == MKTAG ( '.' , 'R' , '1' , 'M' ) ) {\n if ( avio_rb16 ( pb ) != 1 ) return AVERROR_INVALIDDATA ;\n if ( avio_r8 ( pb ) != 1 ) return AVERROR_INVALIDDATA ;\n len = avio_rb32 ( pb ) ;\n avio_skip ( pb , len ) ;\n avio_skip ( pb , 5 ) ;\n temp = avio_rb64 ( pb ) ;\n while ( ! avio_feof ( pb ) && temp ) {\n offset = temp ;\n temp = avio_rb64 ( pb ) ;\n }\n avio_skip ( pb , offset - avio_tell ( pb ) ) ;\n if ( avio_r8 ( pb ) != 1 ) return AVERROR_INVALIDDATA ;\n len = avio_rb32 ( pb ) ;\n avio_skip ( pb , len ) ;\n if ( avio_r8 ( pb ) != 2 ) return AVERROR_INVALIDDATA ;\n avio_skip ( pb , 16 ) ;\n pos = avio_tell ( pb ) ;\n tag = avio_rl32 ( pb ) ;\n }\n if ( tag != MKTAG ( '.' , 'R' , 'E' , 'C' ) ) return AVERROR_INVALIDDATA ;\n if ( avio_r8 ( pb ) != 0 ) return AVERROR_INVALIDDATA ;\n count = avio_rb32 ( pb ) ;\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n if ( avio_feof ( pb ) ) return AVERROR_INVALIDDATA ;\n type = avio_r8 ( pb ) ;\n tlen = avio_rb32 ( pb ) ;\n avio_get_str ( pb , tlen , key , sizeof ( key ) ) ;\n len = avio_rb32 ( pb ) ;\n if ( type == 5 ) {\n avio_get_str ( pb , len , val , sizeof ( val ) ) ;\n av_log ( s , AV_LOG_DEBUG , \"%s = '%s'\\n\" , key , val ) ;\n }\n else if ( type == 4 ) {\n av_log ( s , AV_LOG_DEBUG , \"%s = '0x\" , key ) ;\n for ( j = 0 ;\n j < len ;\n j ++ ) {\n if ( avio_feof ( pb ) ) return AVERROR_INVALIDDATA ;\n av_log ( s , AV_LOG_DEBUG , \"%X\" , avio_r8 ( pb ) ) ;\n }\n av_log ( s , AV_LOG_DEBUG , \"'\\n\" ) ;\n }\n else if ( len == 4 && type == 3 && ! strncmp ( key , \"StreamCount\" , tlen ) ) {\n nb_streams = value = avio_rb32 ( pb ) ;\n }\n else if ( len == 4 && type == 3 ) {\n value = avio_rb32 ( pb ) ;\n av_log ( s , AV_LOG_DEBUG , \"%s = %d\\n\" , key , value ) ;\n }\n else {\n av_log ( s , AV_LOG_DEBUG , \"Skipping unsupported key: %s\\n\" , key ) ;\n avio_skip ( pb , len ) ;\n }\n }\n for ( n = 0 ;\n n < nb_streams ;\n n ++ ) {\n st = avformat_new_stream ( s , NULL ) ;\n if ( ! st ) return AVERROR ( ENOMEM ) ;\n st -> priv_data = ff_rm_alloc_rmstream ( ) ;\n if ( ! st -> priv_data ) return AVERROR ( ENOMEM ) ;\n if ( avio_r8 ( pb ) != 1 ) return AVERROR_INVALIDDATA ;\n count = avio_rb32 ( pb ) ;\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n if ( avio_feof ( pb ) ) return AVERROR_INVALIDDATA ;\n type = avio_r8 ( pb ) ;\n tlen = avio_rb32 ( pb ) ;\n avio_get_str ( pb , tlen , key , sizeof ( key ) ) ;\n len = avio_rb32 ( pb ) ;\n if ( type == 5 ) {\n avio_get_str ( pb , len , val , sizeof ( val ) ) ;\n av_log ( s , AV_LOG_DEBUG , \"%s = '%s'\\n\" , key , val ) ;\n }\n else if ( type == 4 && ! strncmp ( key , \"OpaqueData\" , tlen ) ) {\n ret = ffio_ensure_seekback ( pb , 4 ) ;\n if ( ret < 0 ) return ret ;\n if ( avio_rb32 ( pb ) == MKBETAG ( 'M' , 'L' , 'T' , 'I' ) ) {\n ret = rm_read_multi ( s , pb , st , NULL ) ;\n }\n else {\n avio_seek ( pb , - 4 , SEEK_CUR ) ;\n ret = ff_rm_read_mdpr_codecdata ( s , pb , st , st -> priv_data , len , NULL ) ;\n }\n if ( ret < 0 ) return ret ;\n }\n else if ( type == 4 ) {\n int j ;\n av_log ( s , AV_LOG_DEBUG , \"%s = '0x\" , key ) ;\n for ( j = 0 ;\n j < len ;\n j ++ ) av_log ( s , AV_LOG_DEBUG , \"%X\" , avio_r8 ( pb ) ) ;\n av_log ( s , AV_LOG_DEBUG , \"'\\n\" ) ;\n }\n else if ( len == 4 && type == 3 && ! strncmp ( key , \"Duration\" , tlen ) ) {\n st -> duration = avio_rb32 ( pb ) ;\n }\n else if ( len == 4 && type == 3 ) {\n value = avio_rb32 ( pb ) ;\n av_log ( s , AV_LOG_DEBUG , \"%s = %d\\n\" , key , value ) ;\n }\n else {\n av_log ( s , AV_LOG_DEBUG , \"Skipping unsupported key: %s\\n\" , key ) ;\n avio_skip ( pb , len ) ;\n }\n }\n }\n if ( avio_r8 ( pb ) != 6 ) return AVERROR_INVALIDDATA ;\n avio_skip ( pb , 12 ) ;\n avio_skip ( pb , avio_rb64 ( pb ) + pos - avio_tell ( s -> pb ) ) ;\n if ( avio_r8 ( pb ) != 8 ) return AVERROR_INVALIDDATA ;\n avio_skip ( pb , 8 ) ;\n return 0 ;\n }"}
{"idx": 15788, "target": 0, "func": "void ff_cavs_filter ( AVSContext * h , enum cavs_mb mb_type ) {\n uint8_t bs [ 8 ] ;\n int qp_avg , alpha , beta , tc ;\n int i ;\n h -> topleft_border_y = h -> top_border_y [ h -> mbx * 16 + 15 ] ;\n h -> topleft_border_u = h -> top_border_u [ h -> mbx * 10 + 8 ] ;\n h -> topleft_border_v = h -> top_border_v [ h -> mbx * 10 + 8 ] ;\n memcpy ( & h -> top_border_y [ h -> mbx * 16 ] , h -> cy + 15 * h -> l_stride , 16 ) ;\n memcpy ( & h -> top_border_u [ h -> mbx * 10 + 1 ] , h -> cu + 7 * h -> c_stride , 8 ) ;\n memcpy ( & h -> top_border_v [ h -> mbx * 10 + 1 ] , h -> cv + 7 * h -> c_stride , 8 ) ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n h -> left_border_y [ i * 2 + 1 ] = * ( h -> cy + 15 + ( i * 2 + 0 ) * h -> l_stride ) ;\n h -> left_border_y [ i * 2 + 2 ] = * ( h -> cy + 15 + ( i * 2 + 1 ) * h -> l_stride ) ;\n h -> left_border_u [ i + 1 ] = * ( h -> cu + 7 + i * h -> c_stride ) ;\n h -> left_border_v [ i + 1 ] = * ( h -> cv + 7 + i * h -> c_stride ) ;\n }\n if ( ! h -> loop_filter_disable ) {\n if ( mb_type == I_8X8 ) memset ( bs , 2 , 8 ) ;\n else {\n memset ( bs , 0 , 8 ) ;\n if ( ff_cavs_partition_flags [ mb_type ] & SPLITV ) {\n bs [ 2 ] = get_bs ( & h -> mv [ MV_FWD_X0 ] , & h -> mv [ MV_FWD_X1 ] , mb_type > P_8X8 ) ;\n bs [ 3 ] = get_bs ( & h -> mv [ MV_FWD_X2 ] , & h -> mv [ MV_FWD_X3 ] , mb_type > P_8X8 ) ;\n }\n if ( ff_cavs_partition_flags [ mb_type ] & SPLITH ) {\n bs [ 6 ] = get_bs ( & h -> mv [ MV_FWD_X0 ] , & h -> mv [ MV_FWD_X2 ] , mb_type > P_8X8 ) ;\n bs [ 7 ] = get_bs ( & h -> mv [ MV_FWD_X1 ] , & h -> mv [ MV_FWD_X3 ] , mb_type > P_8X8 ) ;\n }\n bs [ 0 ] = get_bs ( & h -> mv [ MV_FWD_A1 ] , & h -> mv [ MV_FWD_X0 ] , mb_type > P_8X8 ) ;\n bs [ 1 ] = get_bs ( & h -> mv [ MV_FWD_A3 ] , & h -> mv [ MV_FWD_X2 ] , mb_type > P_8X8 ) ;\n bs [ 4 ] = get_bs ( & h -> mv [ MV_FWD_B2 ] , & h -> mv [ MV_FWD_X0 ] , mb_type > P_8X8 ) ;\n bs [ 5 ] = get_bs ( & h -> mv [ MV_FWD_B3 ] , & h -> mv [ MV_FWD_X1 ] , mb_type > P_8X8 ) ;\n }\n if ( AV_RN64 ( bs ) ) {\n if ( h -> flags & A_AVAIL ) {\n qp_avg = ( h -> qp + h -> left_qp + 1 ) >> 1 ;\n SET_PARAMS ;\n h -> cdsp . cavs_filter_lv ( h -> cy , h -> l_stride , alpha , beta , tc , bs [ 0 ] , bs [ 1 ] ) ;\n h -> cdsp . cavs_filter_cv ( h -> cu , h -> c_stride , alpha , beta , tc , bs [ 0 ] , bs [ 1 ] ) ;\n h -> cdsp . cavs_filter_cv ( h -> cv , h -> c_stride , alpha , beta , tc , bs [ 0 ] , bs [ 1 ] ) ;\n }\n qp_avg = h -> qp ;\n SET_PARAMS ;\n h -> cdsp . cavs_filter_lv ( h -> cy + 8 , h -> l_stride , alpha , beta , tc , bs [ 2 ] , bs [ 3 ] ) ;\n h -> cdsp . cavs_filter_lh ( h -> cy + 8 * h -> l_stride , h -> l_stride , alpha , beta , tc , bs [ 6 ] , bs [ 7 ] ) ;\n if ( h -> flags & B_AVAIL ) {\n qp_avg = ( h -> qp + h -> top_qp [ h -> mbx ] + 1 ) >> 1 ;\n SET_PARAMS ;\n h -> cdsp . cavs_filter_lh ( h -> cy , h -> l_stride , alpha , beta , tc , bs [ 4 ] , bs [ 5 ] ) ;\n h -> cdsp . cavs_filter_ch ( h -> cu , h -> c_stride , alpha , beta , tc , bs [ 4 ] , bs [ 5 ] ) ;\n h -> cdsp . cavs_filter_ch ( h -> cv , h -> c_stride , alpha , beta , tc , bs [ 4 ] , bs [ 5 ] ) ;\n }\n }\n }\n h -> left_qp = h -> qp ;\n h -> top_qp [ h -> mbx ] = h -> qp ;\n }"}
{"idx": 15789, "target": 1, "func": "static int h261_decode_mb ( H261Context * h ) {\n MpegEncContext * const s = & h -> s ;\n int i , cbp , xy ;\n cbp = 63 ;\n do {\n h -> mba_diff = get_vlc2 ( & s -> gb , h261_mba_vlc . table , H261_MBA_VLC_BITS , 2 ) ;\n if ( h -> mba_diff == MBA_STARTCODE ) {\n h -> gob_start_code_skipped = 1 ;\n return SLICE_END ;\n }\n }\n while ( h -> mba_diff == MBA_STUFFING ) ;\n if ( h -> mba_diff < 0 ) {\n if ( get_bits_left ( & s -> gb ) <= 7 ) return SLICE_END ;\n av_log ( s -> avctx , AV_LOG_ERROR , \"illegal mba at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return SLICE_ERROR ;\n }\n h -> mba_diff += 1 ;\n h -> current_mba += h -> mba_diff ;\n if ( h -> current_mba > MBA_STUFFING ) return SLICE_ERROR ;\n s -> mb_x = ( ( h -> gob_number - 1 ) % 2 ) * 11 + ( ( h -> current_mba - 1 ) % 11 ) ;\n s -> mb_y = ( ( h -> gob_number - 1 ) / 2 ) * 3 + ( ( h -> current_mba - 1 ) / 11 ) ;\n xy = s -> mb_x + s -> mb_y * s -> mb_stride ;\n ff_init_block_index ( s ) ;\n ff_update_block_index ( s ) ;\n h -> mtype = get_vlc2 ( & s -> gb , h261_mtype_vlc . table , H261_MTYPE_VLC_BITS , 2 ) ;\n h -> mtype = h261_mtype_map [ h -> mtype ] ;\n if ( IS_QUANT ( h -> mtype ) ) {\n ff_set_qscale ( s , get_bits ( & s -> gb , 5 ) ) ;\n }\n s -> mb_intra = IS_INTRA4x4 ( h -> mtype ) ;\n if ( IS_16X16 ( h -> mtype ) ) {\n if ( ( h -> current_mba == 1 ) || ( h -> current_mba == 12 ) || ( h -> current_mba == 23 ) || ( h -> mba_diff != 1 ) ) {\n h -> current_mv_x = 0 ;\n h -> current_mv_y = 0 ;\n }\n h -> current_mv_x = decode_mv_component ( & s -> gb , h -> current_mv_x ) ;\n h -> current_mv_y = decode_mv_component ( & s -> gb , h -> current_mv_y ) ;\n }\n else {\n h -> current_mv_x = 0 ;\n h -> current_mv_y = 0 ;\n }\n if ( HAS_CBP ( h -> mtype ) ) {\n cbp = get_vlc2 ( & s -> gb , h261_cbp_vlc . table , H261_CBP_VLC_BITS , 2 ) + 1 ;\n }\n if ( s -> mb_intra ) {\n s -> current_picture . f . mb_type [ xy ] = MB_TYPE_INTRA ;\n goto intra ;\n }\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n s -> current_picture . f . mb_type [ xy ] = MB_TYPE_16x16 | MB_TYPE_L0 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = h -> current_mv_x * 2 ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = h -> current_mv_y * 2 ;\n intra : if ( s -> mb_intra || HAS_CBP ( h -> mtype ) ) {\n s -> dsp . clear_blocks ( s -> block [ 0 ] ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( h261_decode_block ( h , s -> block [ i ] , i , cbp & 32 ) < 0 ) {\n return SLICE_ERROR ;\n }\n cbp += cbp ;\n }\n }\n else {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) s -> block_last_index [ i ] = - 1 ;\n }\n ff_MPV_decode_mb ( s , s -> block ) ;\n return SLICE_OK ;\n }"}
{"idx": 15790, "target": 0, "func": "static void usage ( void ) {\n char buf [ BUFSIZ ] ;\n int i ;\n setbuf ( stderr , buf ) ;\n fprintf ( stderr , \"%s\\n\\n\" , TIFFGetVersion ( ) ) ;\n for ( i = 0 ;\n stuff [ i ] != NULL ;\n i ++ ) fprintf ( stderr , \"%s\\n\" , stuff [ i ] ) ;\n exit ( - 1 ) ;\n }"}
{"idx": 15791, "target": 1, "func": "static int dissect_h225_RegistrationRejectReason ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 679 \"./asn1/h225/h225.cnf\" gint32 value ;\n h225_packet_info * h225_pi ;\n h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_RegistrationRejectReason , RegistrationRejectReason_choice , & value ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> reason = value ;\n }\n return offset ;\n }"}
{"idx": 15792, "target": 0, "func": "static ha_checksum calc_checksum ( ha_rows count ) {\n ulonglong sum , a , b ;\n DBUG_ENTER ( \"calc_checksum\" ) ;\n sum = 0 ;\n a = count ;\n b = count + 1 ;\n if ( a & 1 ) b >>= 1 ;\n else a >>= 1 ;\n while ( b ) {\n if ( b & 1 ) sum += a ;\n a <<= 1 ;\n b >>= 1 ;\n }\n DBUG_PRINT ( \"exit\" , ( \"sum: %lx\" , ( ulong ) sum ) ) ;\n DBUG_RETURN ( ( ha_checksum ) sum ) ;\n }"}
{"idx": 15793, "target": 0, "func": "static void update_stats ( VP9_COMMON * cm , const MACROBLOCK * x ) {\n const MACROBLOCKD * const xd = & x -> e_mbd ;\n const MODE_INFO * const mi = xd -> mi [ 0 ] . src_mi ;\n const MB_MODE_INFO * const mbmi = & mi -> mbmi ;\n if ( ! frame_is_intra_only ( cm ) ) {\n const int seg_ref_active = vp9_segfeature_active ( & cm -> seg , mbmi -> segment_id , SEG_LVL_REF_FRAME ) ;\n if ( ! seg_ref_active ) {\n FRAME_COUNTS * const counts = & cm -> counts ;\n const int inter_block = is_inter_block ( mbmi ) ;\n counts -> intra_inter [ vp9_get_intra_inter_context ( xd ) ] [ inter_block ] ++ ;\n if ( inter_block ) {\n const MV_REFERENCE_FRAME ref0 = mbmi -> ref_frame [ 0 ] ;\n if ( cm -> reference_mode == REFERENCE_MODE_SELECT ) counts -> comp_inter [ vp9_get_reference_mode_context ( cm , xd ) ] [ has_second_ref ( mbmi ) ] ++ ;\n if ( has_second_ref ( mbmi ) ) {\n counts -> comp_ref [ vp9_get_pred_context_comp_ref_p ( cm , xd ) ] [ ref0 == GOLDEN_FRAME ] ++ ;\n }\n else {\n counts -> single_ref [ vp9_get_pred_context_single_ref_p1 ( xd ) ] [ 0 ] [ ref0 != LAST_FRAME ] ++ ;\n if ( ref0 != LAST_FRAME ) counts -> single_ref [ vp9_get_pred_context_single_ref_p2 ( xd ) ] [ 1 ] [ ref0 != GOLDEN_FRAME ] ++ ;\n }\n }\n }\n }\n }"}
{"idx": 15794, "target": 0, "func": "static int dissect_h225_T_ip6Address ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_T_ip6Address , T_ip6Address_sequence ) ;\n return offset ;\n }"}
{"idx": 15795, "target": 0, "func": "int unupack399 ( char * bs , uint32_t bl , uint32_t init_eax , char * init_ebx , uint32_t init_ecx , char * init_edi , char * end_edi , uint32_t shlsize , char * paddr ) {\n struct lzmastate p ;\n uint32_t loc_eax , ret , loc_al , loc_ecx = init_ecx , loc_ebp , eax_copy = init_eax , temp , i , jakas_kopia ;\n uint32_t state [ 6 ] , temp_ebp ;\n char * loc_edx , * loc_ebx = init_ebx , * loc_edi = init_edi , * loc_ebp8 , * edi_copy ;\n p . p0 = paddr ;\n p . p1 = cli_readint32 ( init_ebx ) ;\n p . p2 = cli_readint32 ( init_ebx + 4 ) ;\n cli_dbgmsg ( \"\\n\\tp0: %p\\n\\tp1: %08x\\n\\tp2: %08x\\n\" , p . p0 , p . p1 , p . p2 ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n state [ i ] = cli_readint32 ( loc_ebx + ( i << 2 ) ) ;\n cli_dbgmsg ( \"state[%d] = %08x\\n\" , i , state [ i ] ) ;\n }\n do {\n loc_eax = eax_copy ;\n loc_edx = loc_ebx + ( loc_eax << 2 ) + 0x58 ;\n if ( ( ret = lzma_upack_esi_00 ( & p , loc_edx , bs , bl ) ) ) {\n loc_al = loc_eax & 0xff ;\n loc_al = ( ( loc_al + 0xf9 ) > 0xff ) ? ( 3 + 8 ) : 8 ;\n loc_eax = ( loc_eax & 0xffffff00 ) | ( loc_al & 0xff ) ;\n loc_ebp = state [ 2 ] ;\n loc_ecx = ( loc_ecx & 0xffffff00 ) | 0x30 ;\n loc_edx += loc_ecx ;\n if ( ! ( ret = lzma_upack_esi_00 ( & p , loc_edx , bs , bl ) ) ) {\n loc_eax -- ;\n temp_ebp = loc_ebp ;\n loc_ebp = state [ 4 ] ;\n state [ 4 ] = state [ 3 ] ;\n state [ 3 ] = temp_ebp ;\n eax_copy = loc_eax ;\n loc_edx = loc_ebx + 0xbc0 ;\n state [ 5 ] = loc_ebp ;\n if ( lzma_upack_esi_54 ( & p , loc_eax , & loc_ecx , & loc_edx , & temp , bs , bl ) == 0xffffffff ) return - 1 ;\n loc_ecx = 3 ;\n jakas_kopia = temp ;\n loc_eax = temp - 1 ;\n if ( loc_eax >= loc_ecx ) loc_eax = loc_ecx ;\n loc_ecx = 0x40 ;\n loc_eax <<= 6 ;\n loc_ebp8 = loc_ebx + ( ( loc_eax << 2 ) + 0x378 ) ;\n if ( lzma_upack_esi_50 ( & p , 1 , loc_ecx , & loc_edx , loc_ebp8 , & loc_eax , bs , bl ) == 0xffffffff ) return - 1 ;\n loc_ebp = loc_eax ;\n if ( ( loc_eax & 0xff ) >= 4 ) {\n loc_ebp = 2 + ( loc_eax & 1 ) ;\n loc_eax >>= 1 ;\n loc_eax -- ;\n temp_ebp = loc_eax ;\n loc_eax = loc_ecx ;\n loc_ecx = temp_ebp ;\n loc_ebp <<= ( loc_ecx & 0xff ) ;\n loc_edx = loc_ebx + ( loc_ebp << 2 ) + 0x178 ;\n if ( ( loc_ecx & 0xff ) > 5 ) {\n loc_ecx = ( loc_ecx & 0xffffff00 ) | ( ( ( loc_ecx & 0xff ) - 4 ) & 0xff ) ;\n loc_eax = 0 ;\n do {\n uint32_t temp_edx ;\n if ( ! CLI_ISCONTAINED ( bs , bl , p . p0 , 4 ) ) return - 1 ;\n temp_edx = cli_readint32 ( ( char * ) p . p0 ) ;\n temp_edx = EC32 ( CE32 ( temp_edx ) ) ;\n p . p1 >>= 1 ;\n temp_edx -= p . p2 ;\n loc_eax <<= 1 ;\n if ( temp_edx >= p . p1 ) {\n temp_edx = p . p1 ;\n loc_eax ++ ;\n p . p2 += temp_edx ;\n }\n if ( ( ( p . p1 ) & 0xff000000 ) == 0 ) {\n p . p2 <<= 8 ;\n p . p1 <<= 8 ;\n p . p0 ++ ;\n }\n }\n while ( -- loc_ecx ) ;\n loc_ecx = ( loc_ecx & 0xffffff00 ) | 4 ;\n loc_eax <<= 4 ;\n loc_ebp += loc_eax ;\n loc_edx = loc_ebx + 0x18 ;\n }\n loc_eax = 1 ;\n loc_eax <<= ( loc_ecx & 0xff ) ;\n loc_ebp8 = loc_edx ;\n temp_ebp = loc_ecx ;\n loc_ecx = loc_eax ;\n loc_eax = temp_ebp ;\n if ( lzma_upack_esi_50 ( & p , 1 , loc_ecx , & loc_edx , loc_ebp8 , & loc_eax , bs , bl ) == 0xffffffff ) return - 1 ;\n loc_ecx = temp_ebp ;\n temp_ebp = CLI_SRS ( ( int32_t ) loc_eax , 31 ) ;\n do {\n temp_ebp += temp_ebp ;\n temp_ebp += ( loc_eax & 1 ) ;\n loc_eax >>= 1 ;\n }\n while ( -- loc_ecx ) ;\n loc_ebp += temp_ebp ;\n }\n loc_ebp ++ ;\n loc_ecx = jakas_kopia ;\n }\n else {\n loc_edx += loc_ecx ;\n if ( ( ret = lzma_upack_esi_00 ( & p , loc_edx , bs , bl ) ) ) {\n loc_edx += 0x60 ;\n if ( ( ret = lzma_upack_esi_00 ( & p , loc_edx , bs , bl ) ) ) {\n loc_edx += loc_ecx ;\n ret = lzma_upack_esi_00 ( & p , loc_edx , bs , bl ) ;\n temp_ebp = loc_ebp ;\n loc_ebp = state [ 4 ] ;\n state [ 4 ] = state [ 3 ] ;\n state [ 3 ] = temp_ebp ;\n if ( ret ) {\n temp_ebp = loc_ebp ;\n loc_ebp = state [ 5 ] ;\n state [ 5 ] = temp_ebp ;\n }\n }\n else {\n temp_ebp = loc_ebp ;\n loc_ebp = state [ 3 ] ;\n state [ 3 ] = temp_ebp ;\n }\n }\n else {\n loc_edx += loc_ecx ;\n if ( ( ret = lzma_upack_esi_00 ( & p , loc_edx , bs , bl ) ) ) {\n }\n else {\n loc_eax |= 1 ;\n eax_copy = loc_eax ;\n edi_copy = loc_edi ;\n edi_copy -= state [ 2 ] ;\n loc_ecx = ( loc_ecx & 0xffffff00 ) | 0x80 ;\n if ( ! CLI_ISCONTAINED ( bs , bl , edi_copy , 1 ) || ! CLI_ISCONTAINED ( bs , bl , loc_edi , 1 ) ) return - 1 ;\n loc_al = ( * ( uint8_t * ) edi_copy ) & 0xff ;\n * loc_edi ++ = loc_al ;\n continue ;\n }\n }\n eax_copy = loc_eax ;\n loc_edx = loc_ebx + 0x778 ;\n if ( lzma_upack_esi_54 ( & p , loc_eax , & loc_ecx , & loc_edx , & temp , bs , bl ) == 0xffffffff ) return - 1 ;\n loc_eax = loc_ecx ;\n loc_ecx = temp ;\n }\n if ( ! CLI_ISCONTAINED ( bs , bl , loc_edi , loc_ecx ) || ! CLI_ISCONTAINED ( bs , bl , loc_edi - loc_ebp , loc_ecx + 1 ) ) return - 1 ;\n state [ 2 ] = loc_ebp ;\n for ( i = 0 ;\n i < loc_ecx ;\n i ++ , loc_edi ++ ) * loc_edi = * ( loc_edi - loc_ebp ) ;\n loc_eax = ( loc_eax & 0xffffff00 ) | * ( uint8_t * ) ( loc_edi - loc_ebp ) ;\n loc_ecx = 0x80 ;\n }\n else {\n do {\n if ( ( loc_al = ( loc_eax & 0xff ) ) + 0xfd > 0xff ) loc_al -= 3 ;\n else loc_al = 0 ;\n loc_eax = ( loc_eax & 0xffffff00 ) | loc_al ;\n }\n while ( loc_al >= 7 ) ;\n eax_copy = loc_eax ;\n if ( loc_edi > init_edi && loc_edi < bl + bs ) {\n loc_ebp = ( * ( uint8_t * ) ( loc_edi - 1 ) ) >> shlsize ;\n }\n else {\n loc_ebp = 0 ;\n }\n loc_ebp *= ( int ) 0x300 ;\n loc_ebp8 = loc_ebx + ( ( loc_ebp << 2 ) + 0x1008 ) ;\n edi_copy = loc_edi ;\n loc_eax = ( loc_eax & 0xffffff00 ) | 1 ;\n if ( loc_ecx ) {\n uint8_t loc_cl = loc_ecx & 0xff ;\n loc_edi -= state [ 2 ] ;\n if ( ! CLI_ISCONTAINED ( bs , bl , loc_edi , 1 ) ) return - 1 ;\n do {\n loc_eax = ( loc_eax & 0xffff00ff ) | ( ( * loc_edi & loc_cl ) ? 0x200 : 0x100 ) ;\n loc_edx = loc_ebp8 + ( loc_eax << 2 ) ;\n ret = lzma_upack_esi_00 ( & p , loc_edx , bs , bl ) ;\n loc_al = loc_eax & 0xff ;\n loc_al += loc_al ;\n loc_al += ret ;\n loc_al &= 0xff ;\n loc_eax = ( loc_eax & 0xffffff00 ) | loc_al ;\n loc_cl >>= 1 ;\n if ( loc_cl ) {\n uint8_t loc_ah = ( loc_eax >> 8 ) & 0xff ;\n loc_ah -= loc_al ;\n loc_ah &= 1 ;\n if ( ! loc_ah ) {\n loc_eax = ( loc_eax & 0xffff0000 ) | ( loc_ah << 8 ) | loc_al ;\n if ( lzma_upack_esi_50 ( & p , loc_eax , 0x100 , & loc_edx , loc_ebp8 , & loc_eax , bs , bl ) == 0xffffffff ) return - 1 ;\n break ;\n }\n }\n else break ;\n }\n while ( 1 ) ;\n }\n else {\n loc_ecx = ( loc_ecx & 0xffff00ff ) | 0x100 ;\n if ( lzma_upack_esi_50 ( & p , loc_eax , loc_ecx , & loc_edx , loc_ebp8 , & loc_eax , bs , bl ) == 0xffffffff ) return - 1 ;\n }\n loc_ecx = 0 ;\n loc_edi = edi_copy ;\n }\n if ( ! CLI_ISCONTAINED ( bs , bl , loc_edi , 1 ) ) return - 1 ;\n * loc_edi ++ = ( loc_eax & 0xff ) ;\n }\n while ( loc_edi < end_edi ) ;\n return 1 ;\n }"}
{"idx": 15796, "target": 0, "func": "void nautilus_directory_cancel ( NautilusDirectory * directory ) {\n deep_count_cancel ( directory ) ;\n directory_count_cancel ( directory ) ;\n file_info_cancel ( directory ) ;\n file_list_cancel ( directory ) ;\n link_info_cancel ( directory ) ;\n mime_list_cancel ( directory ) ;\n new_files_cancel ( directory ) ;\n extension_info_cancel ( directory ) ;\n thumbnail_cancel ( directory ) ;\n mount_cancel ( directory ) ;\n filesystem_info_cancel ( directory ) ;\n if ( waiting_directories != NULL ) {\n g_hash_table_remove ( waiting_directories , directory ) ;\n }\n async_job_wake_up ( ) ;\n }"}
{"idx": 15797, "target": 0, "func": "struct instruction * compiler_create_instruction ( struct filter_op * fop ) {\n struct instruction * ins ;\n SAFE_CALLOC ( ins , 1 , sizeof ( struct instruction ) ) ;\n memcpy ( & ins -> fop , fop , sizeof ( struct filter_op ) ) ;\n return ins ;\n }"}
{"idx": 15798, "target": 0, "func": "static void joint_motion_search ( VP9_COMP * cpi , MACROBLOCK * x , BLOCK_SIZE bsize , int_mv * frame_mv , int mi_row , int mi_col , int_mv single_newmv [ MAX_REF_FRAMES ] , int * rate_mv ) {\n const int pw = 4 * num_4x4_blocks_wide_lookup [ bsize ] ;\n const int ph = 4 * num_4x4_blocks_high_lookup [ bsize ] ;\n MACROBLOCKD * xd = & x -> e_mbd ;\n MB_MODE_INFO * mbmi = & xd -> mi [ 0 ] . src_mi -> mbmi ;\n const int refs [ 2 ] = {\n mbmi -> ref_frame [ 0 ] , mbmi -> ref_frame [ 1 ] < 0 ? 0 : mbmi -> ref_frame [ 1 ] }\n ;\n int_mv ref_mv [ 2 ] ;\n int ite , ref ;\n uint8_t * second_pred = vpx_memalign ( 16 , pw * ph * sizeof ( uint8_t ) ) ;\n const InterpKernel * kernel = vp9_get_interp_kernel ( mbmi -> interp_filter ) ;\n struct buf_2d backup_yv12 [ 2 ] [ MAX_MB_PLANE ] ;\n struct buf_2d scaled_first_yv12 = xd -> plane [ 0 ] . pre [ 0 ] ;\n int last_besterr [ 2 ] = {\n INT_MAX , INT_MAX }\n ;\n const YV12_BUFFER_CONFIG * const scaled_ref_frame [ 2 ] = {\n vp9_get_scaled_ref_frame ( cpi , mbmi -> ref_frame [ 0 ] ) , vp9_get_scaled_ref_frame ( cpi , mbmi -> ref_frame [ 1 ] ) }\n ;\n for ( ref = 0 ;\n ref < 2 ;\n ++ ref ) {\n ref_mv [ ref ] = mbmi -> ref_mvs [ refs [ ref ] ] [ 0 ] ;\n if ( scaled_ref_frame [ ref ] ) {\n int i ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n i ++ ) backup_yv12 [ ref ] [ i ] = xd -> plane [ i ] . pre [ ref ] ;\n vp9_setup_pre_planes ( xd , ref , scaled_ref_frame [ ref ] , mi_row , mi_col , NULL ) ;\n }\n frame_mv [ refs [ ref ] ] . as_int = single_newmv [ refs [ ref ] ] . as_int ;\n }\n for ( ite = 0 ;\n ite < 4 ;\n ite ++ ) {\n struct buf_2d ref_yv12 [ 2 ] ;\n int bestsme = INT_MAX ;\n int sadpb = x -> sadperbit16 ;\n MV tmp_mv ;\n int search_range = 3 ;\n int tmp_col_min = x -> mv_col_min ;\n int tmp_col_max = x -> mv_col_max ;\n int tmp_row_min = x -> mv_row_min ;\n int tmp_row_max = x -> mv_row_max ;\n int id = ite % 2 ;\n ref_yv12 [ 0 ] = xd -> plane [ 0 ] . pre [ 0 ] ;\n ref_yv12 [ 1 ] = xd -> plane [ 0 ] . pre [ 1 ] ;\n vp9_build_inter_predictor ( ref_yv12 [ ! id ] . buf , ref_yv12 [ ! id ] . stride , second_pred , pw , & frame_mv [ refs [ ! id ] ] . as_mv , & xd -> block_refs [ ! id ] -> sf , pw , ph , 0 , kernel , MV_PRECISION_Q3 , mi_col * MI_SIZE , mi_row * MI_SIZE ) ;\n if ( id ) xd -> plane [ 0 ] . pre [ 0 ] = ref_yv12 [ id ] ;\n vp9_set_mv_search_range ( x , & ref_mv [ id ] . as_mv ) ;\n tmp_mv = frame_mv [ refs [ id ] ] . as_mv ;\n tmp_mv . col >>= 3 ;\n tmp_mv . row >>= 3 ;\n bestsme = vp9_refining_search_8p_c ( x , & tmp_mv , sadpb , search_range , & cpi -> fn_ptr [ bsize ] , & ref_mv [ id ] . as_mv , second_pred ) ;\n if ( bestsme < INT_MAX ) bestsme = vp9_get_mvpred_av_var ( x , & tmp_mv , & ref_mv [ id ] . as_mv , second_pred , & cpi -> fn_ptr [ bsize ] , 1 ) ;\n x -> mv_col_min = tmp_col_min ;\n x -> mv_col_max = tmp_col_max ;\n x -> mv_row_min = tmp_row_min ;\n x -> mv_row_max = tmp_row_max ;\n if ( bestsme < INT_MAX ) {\n int dis ;\n unsigned int sse ;\n bestsme = cpi -> find_fractional_mv_step ( x , & tmp_mv , & ref_mv [ id ] . as_mv , cpi -> common . allow_high_precision_mv , x -> errorperbit , & cpi -> fn_ptr [ bsize ] , 0 , cpi -> sf . mv . subpel_iters_per_step , NULL , x -> nmvjointcost , x -> mvcost , & dis , & sse , second_pred , pw , ph ) ;\n }\n if ( id ) xd -> plane [ 0 ] . pre [ 0 ] = scaled_first_yv12 ;\n if ( bestsme < last_besterr [ id ] ) {\n frame_mv [ refs [ id ] ] . as_mv = tmp_mv ;\n last_besterr [ id ] = bestsme ;\n }\n else {\n break ;\n }\n }\n * rate_mv = 0 ;\n for ( ref = 0 ;\n ref < 2 ;\n ++ ref ) {\n if ( scaled_ref_frame [ ref ] ) {\n int i ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n i ++ ) xd -> plane [ i ] . pre [ ref ] = backup_yv12 [ ref ] [ i ] ;\n }\n * rate_mv += vp9_mv_bit_cost ( & frame_mv [ refs [ ref ] ] . as_mv , & mbmi -> ref_mvs [ refs [ ref ] ] [ 0 ] . as_mv , x -> nmvjointcost , x -> mvcost , MV_COST_WEIGHT ) ;\n }\n vpx_free ( second_pred ) ;\n }"}
{"idx": 15799, "target": 0, "func": "static void xhci_port_reset ( XHCIPort * port , bool warm_reset ) {\n trace_usb_xhci_port_reset ( port -> portnr , warm_reset ) ;\n if ( ! xhci_port_have_device ( port ) ) {\n return ;\n }\n usb_device_reset ( port -> uport -> dev ) ;\n switch ( port -> uport -> dev -> speed ) {\n case USB_SPEED_SUPER : if ( warm_reset ) {\n port -> portsc |= PORTSC_WRC ;\n }\n case USB_SPEED_LOW : case USB_SPEED_FULL : case USB_SPEED_HIGH : set_field ( & port -> portsc , PLS_U0 , PORTSC_PLS ) ;\n trace_usb_xhci_port_link ( port -> portnr , PLS_U0 ) ;\n port -> portsc |= PORTSC_PED ;\n break ;\n }\n port -> portsc &= ~ PORTSC_PR ;\n xhci_port_notify ( port , PORTSC_PRC ) ;\n }"}
{"idx": 15800, "target": 0, "func": "static uint64_t softfloat_reciprocal ( uint32_t denom ) {\n int shift = av_log2 ( denom - 1 ) + 1 ;\n uint64_t ret = ( 1ULL << 52 ) / denom ;\n uint64_t err = ( 1ULL << 52 ) - ret * denom ;\n ret <<= shift ;\n err <<= shift ;\n err += denom / 2 ;\n return ret + err / denom ;\n }"}
{"idx": 15801, "target": 0, "func": "static int nextpstoken ( IO * wrapper , real * val , char * tokbuf , int tbsize ) {\n int ch , r , i ;\n char * pt , * end ;\n float mf2pt_advance_width ;\n pt = tokbuf ;\n end = pt + tbsize - 1 ;\n while ( 1 ) {\n while ( isspace ( ch = nextch ( wrapper ) ) ) ;\n if ( ch != '%' ) break ;\n while ( ( ch = nextch ( wrapper ) ) != EOF && ch != '\\r' && ch != '\\n' && ch != '\\f' ) if ( pt < end ) * pt ++ = ch ;\n * pt = '\\0' ;\n if ( sscanf ( tokbuf , \" MF2PT1: bbox %*g %*g %g %*g\" , & mf2pt_advance_width ) == 1 ) wrapper -> advance_width = mf2pt_advance_width ;\n else if ( sscanf ( tokbuf , \" MF2PT1: glyph_dimensions %*g %*g %g %*g\" , & mf2pt_advance_width ) == 1 ) wrapper -> advance_width = mf2pt_advance_width ;\n pt = tokbuf ;\n }\n if ( ch == EOF ) return ( pt_eof ) ;\n pt = tokbuf ;\n end = pt + tbsize - 1 ;\n * pt ++ = ch ;\n * pt = '\\0' ;\n if ( ch == '(' ) {\n int nest = 1 , quote = 0 ;\n while ( ( ch = nextch ( wrapper ) ) != EOF ) {\n if ( pt < end ) * pt ++ = ch ;\n if ( quote ) quote = 0 ;\n else if ( ch == '(' ) ++ nest ;\n else if ( ch == ')' ) {\n if ( -- nest == 0 ) break ;\n }\n else if ( ch == '\\\\' ) quote = 1 ;\n }\n * pt = '\\0' ;\n return ( pt_string ) ;\n }\n else if ( ch == '<' ) {\n ch = nextch ( wrapper ) ;\n if ( pt < end ) * pt ++ = ch ;\n if ( ch == '>' ) ;\n else if ( ch != '~' ) {\n while ( ( ch = nextch ( wrapper ) ) != EOF && ch != '>' ) if ( pt < end ) * pt ++ = ch ;\n }\n else {\n int twiddle = 0 ;\n while ( ( ch = nextch ( wrapper ) ) != EOF ) {\n if ( pt < end ) * pt ++ = ch ;\n if ( ch == '~' ) twiddle = 1 ;\n else if ( twiddle && ch == '>' ) break ;\n else twiddle = 0 ;\n }\n }\n * pt = '\\0' ;\n return ( pt_string ) ;\n }\n else if ( ch == ')' || ch == '>' || ch == '[' || ch == ']' || ch == '{\n' || ch == '}\n' ) {\n if ( ch == '{\n' ) return ( pt_opencurly ) ;\n else if ( ch == '}\n' ) return ( pt_closecurly ) ;\n if ( ch == '[' ) return ( pt_openarray ) ;\n else if ( ch == ']' ) return ( pt_closearray ) ;\n return ( pt_unknown ) ;\n }\n else if ( ch == '/' ) {\n pt = tokbuf ;\n while ( ( ch = nextch ( wrapper ) ) != EOF && ! isspace ( ch ) && ch != '%' && ch != '(' && ch != ')' && ch != '<' && ch != '>' && ch != '[' && ch != ']' && ch != '{\n' && ch != '}\n' && ch != '/' ) if ( pt < tokbuf + tbsize - 2 ) * pt ++ = ch ;\n * pt = '\\0' ;\n unnextch ( ch , wrapper ) ;\n return ( pt_namelit ) ;\n }\n else {\n while ( ( ch = nextch ( wrapper ) ) != EOF && ! isspace ( ch ) && ch != '%' && ch != '(' && ch != ')' && ch != '<' && ch != '>' && ch != '[' && ch != ']' && ch != '{\n' && ch != '}\n' && ch != '/' ) {\n if ( pt < tokbuf + tbsize - 2 ) * pt ++ = ch ;\n }\n * pt = '\\0' ;\n unnextch ( ch , wrapper ) ;\n r = strtol ( tokbuf , & end , 10 ) ;\n pt = end ;\n if ( * pt == '\\0' ) {\n * val = r ;\n return ( pt_number ) ;\n }\n else if ( * pt == '#' ) {\n r = strtol ( pt + 1 , & end , r ) ;\n if ( * end == '\\0' ) {\n * val = r ;\n return ( pt_number ) ;\n }\n }\n else {\n * val = strtod ( tokbuf , & end ) ;\n if ( ! isfinite ( * val ) ) {\n LogError ( _ ( \"Bad number, infinity or nan: %s\\n\" ) , tokbuf ) ;\n * val = 0 ;\n }\n if ( * end == '\\0' ) return ( pt_number ) ;\n }\n for ( i = 0 ;\n toknames [ i ] != NULL ;\n ++ i ) if ( strcmp ( tokbuf , toknames [ i ] ) == 0 ) return ( i ) ;\n return ( pt_unknown ) ;\n }\n }"}
{"idx": 15802, "target": 0, "func": "void clean_up ( bool print_message ) {\n DBUG_PRINT ( \"exit\" , ( \"clean_up\" ) ) ;\n if ( cleanup_done ++ ) return ;\n close_active_mi ( ) ;\n stop_handle_manager ( ) ;\n release_ddl_log ( ) ;\n ha_binlog_end ( current_thd ) ;\n logger . cleanup_base ( ) ;\n injector : : free_instance ( ) ;\n mysql_bin_log . cleanup ( ) ;\n # ifdef HAVE_REPLICATION if ( use_slave_mask ) bitmap_free ( & slave_error_mask ) ;\n # endif my_tz_free ( ) ;\n my_dboptions_cache_free ( ) ;\n ignore_db_dirs_free ( ) ;\n # ifndef NO_EMBEDDED_ACCESS_CHECKS servers_free ( 1 ) ;\n acl_free ( 1 ) ;\n grant_free ( ) ;\n # endif query_cache_destroy ( ) ;\n hostname_cache_free ( ) ;\n item_user_lock_free ( ) ;\n lex_free ( ) ;\n item_create_cleanup ( ) ;\n table_def_start_shutdown ( ) ;\n plugin_shutdown ( ) ;\n udf_free ( ) ;\n ha_end ( ) ;\n if ( tc_log ) tc_log -> close ( ) ;\n delegates_destroy ( ) ;\n xid_cache_free ( ) ;\n table_def_free ( ) ;\n mdl_destroy ( ) ;\n key_caches . delete_elements ( ( void ( * ) ( const char * , uchar * ) ) free_key_cache ) ;\n wt_end ( ) ;\n multi_keycache_free ( ) ;\n sp_cache_end ( ) ;\n free_status_vars ( ) ;\n end_thr_alarm ( 1 ) ;\n my_free_open_file_info ( ) ;\n if ( defaults_argv ) free_defaults ( defaults_argv ) ;\n free_tmpdir ( & mysql_tmpdir_list ) ;\n bitmap_free ( & temp_pool ) ;\n free_max_user_conn ( ) ;\n free_global_user_stats ( ) ;\n free_global_client_stats ( ) ;\n free_global_table_stats ( ) ;\n free_global_index_stats ( ) ;\n delete_dynamic ( & all_options ) ;\n # ifdef HAVE_REPLICATION end_slave_list ( ) ;\n # endif my_uuid_end ( ) ;\n delete binlog_filter ;\n delete rpl_filter ;\n end_ssl ( ) ;\n # ifndef EMBEDDED_LIBRARY vio_end ( ) ;\n # endif my_regex_end ( ) ;\n # if defined ( ENABLED_DEBUG_SYNC ) debug_sync_end ( ) ;\n # endif delete_pid_file ( MYF ( 0 ) ) ;\n if ( print_message && my_default_lc_messages && server_start_time ) sql_print_information ( ER_DEFAULT ( ER_SHUTDOWN_COMPLETE ) , my_progname ) ;\n cleanup_errmsgs ( ) ;\n MYSQL_CALLBACK ( thread_scheduler , end , ( ) ) ;\n mysql_library_end ( ) ;\n finish_client_errs ( ) ;\n ( void ) my_error_unregister ( ER_ERROR_FIRST , ER_ERROR_LAST ) ;\n DBUG_PRINT ( \"quit\" , ( \"Error messages freed\" ) ) ;\n logger . cleanup_end ( ) ;\n sys_var_end ( ) ;\n my_atomic_rwlock_destroy ( & global_query_id_lock ) ;\n my_atomic_rwlock_destroy ( & thread_running_lock ) ;\n free_charsets ( ) ;\n mysql_mutex_lock ( & LOCK_thread_count ) ;\n DBUG_PRINT ( \"quit\" , ( \"got thread count lock\" ) ) ;\n ready_to_exit = 1 ;\n mysql_cond_broadcast ( & COND_thread_count ) ;\n mysql_mutex_unlock ( & LOCK_thread_count ) ;\n DBUG_PRINT ( \"quit\" , ( \"done with cleanup\" ) ) ;\n }"}
{"idx": 15803, "target": 0, "func": "static int ra144_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n static const uint8_t sizes [ LPC_ORDER ] = {\n 6 , 5 , 5 , 4 , 4 , 3 , 3 , 3 , 3 , 2 }\n ;\n unsigned int refl_rms [ NBLOCKS ] ;\n uint16_t block_coefs [ NBLOCKS ] [ LPC_ORDER ] ;\n unsigned int lpc_refl [ LPC_ORDER ] ;\n int i , j ;\n int ret ;\n int16_t * samples ;\n unsigned int energy ;\n RA144Context * ractx = avctx -> priv_data ;\n GetBitContext gb ;\n frame -> nb_samples = NBLOCKS * BLOCKSIZE ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n samples = ( int16_t * ) frame -> data [ 0 ] ;\n if ( buf_size < FRAMESIZE ) {\n av_log ( avctx , AV_LOG_ERROR , \"Frame too small (%d bytes). Truncated file?\\n\" , buf_size ) ;\n * got_frame_ptr = 0 ;\n return buf_size ;\n }\n init_get_bits ( & gb , buf , FRAMESIZE * 8 ) ;\n for ( i = 0 ;\n i < LPC_ORDER ;\n i ++ ) lpc_refl [ i ] = ff_lpc_refl_cb [ i ] [ get_bits ( & gb , sizes [ i ] ) ] ;\n ff_eval_coefs ( ractx -> lpc_coef [ 0 ] , lpc_refl ) ;\n ractx -> lpc_refl_rms [ 0 ] = ff_rms ( lpc_refl ) ;\n energy = ff_energy_tab [ get_bits ( & gb , 5 ) ] ;\n refl_rms [ 0 ] = ff_interp ( ractx , block_coefs [ 0 ] , 1 , 1 , ractx -> old_energy ) ;\n refl_rms [ 1 ] = ff_interp ( ractx , block_coefs [ 1 ] , 2 , energy <= ractx -> old_energy , ff_t_sqrt ( energy * ractx -> old_energy ) >> 12 ) ;\n refl_rms [ 2 ] = ff_interp ( ractx , block_coefs [ 2 ] , 3 , 0 , energy ) ;\n refl_rms [ 3 ] = ff_rescale_rms ( ractx -> lpc_refl_rms [ 0 ] , energy ) ;\n ff_int_to_int16 ( block_coefs [ 3 ] , ractx -> lpc_coef [ 0 ] ) ;\n for ( i = 0 ;\n i < NBLOCKS ;\n i ++ ) {\n do_output_subblock ( ractx , block_coefs [ i ] , refl_rms [ i ] , & gb ) ;\n for ( j = 0 ;\n j < BLOCKSIZE ;\n j ++ ) * samples ++ = av_clip_int16 ( ractx -> curr_sblock [ j + 10 ] << 2 ) ;\n }\n ractx -> old_energy = energy ;\n ractx -> lpc_refl_rms [ 1 ] = ractx -> lpc_refl_rms [ 0 ] ;\n FFSWAP ( unsigned int * , ractx -> lpc_coef [ 0 ] , ractx -> lpc_coef [ 1 ] ) ;\n * got_frame_ptr = 1 ;\n return FRAMESIZE ;\n }"}
{"idx": 15804, "target": 0, "func": "void simplestring_add ( simplestring * target , const char * source ) {\n if ( target && source ) {\n simplestring_addn ( target , source , strlen ( source ) ) ;\n }\n }"}
{"idx": 15805, "target": 0, "func": "static void dct_unquantize_mpeg1_inter_c ( MpegEncContext * s , int16_t * block , int n , int qscale ) {\n int i , level , nCoeffs ;\n const uint16_t * quant_matrix ;\n nCoeffs = s -> block_last_index [ n ] ;\n quant_matrix = s -> inter_matrix ;\n for ( i = 0 ;\n i <= nCoeffs ;\n i ++ ) {\n int j = s -> intra_scantable . permutated [ i ] ;\n level = block [ j ] ;\n if ( level ) {\n if ( level < 0 ) {\n level = - level ;\n level = ( ( ( level << 1 ) + 1 ) * qscale * ( ( int ) ( quant_matrix [ j ] ) ) ) >> 4 ;\n level = ( level - 1 ) | 1 ;\n level = - level ;\n }\n else {\n level = ( ( ( level << 1 ) + 1 ) * qscale * ( ( int ) ( quant_matrix [ j ] ) ) ) >> 4 ;\n level = ( level - 1 ) | 1 ;\n }\n block [ j ] = level ;\n }\n }\n }"}
{"idx": 15806, "target": 0, "func": "static inline void set_indic_properties ( hb_glyph_info_t & info ) {\n hb_codepoint_t u = info . codepoint ;\n unsigned int type = hb_indic_get_categories ( u ) ;\n indic_category_t cat = ( indic_category_t ) ( type & 0x7Fu ) ;\n indic_position_t pos = ( indic_position_t ) ( type >> 8 ) ;\n if ( unlikely ( hb_in_ranges ( u , 0x0951u , 0x0952u , 0x1CD0u , 0x1CD2u , 0x1CD4u , 0x1CE1u ) || u == 0x1CF4u ) ) cat = OT_A ;\n else if ( unlikely ( hb_in_range ( u , 0x0953u , 0x0954u ) ) ) cat = OT_SM ;\n else if ( unlikely ( hb_in_ranges ( u , 0x0A72u , 0x0A73u , 0x1CF5u , 0x1CF6u ) ) ) cat = OT_C ;\n else if ( unlikely ( hb_in_range ( u , 0x1CE2u , 0x1CE8u ) ) ) cat = OT_A ;\n else if ( unlikely ( u == 0x1CEDu ) ) cat = OT_A ;\n else if ( unlikely ( hb_in_ranges ( u , 0xA8F2u , 0xA8F7u , 0x1CE9u , 0x1CECu , 0x1CEEu , 0x1CF1u ) ) ) {\n cat = OT_Symbol ;\n ASSERT_STATIC ( ( int ) INDIC_SYLLABIC_CATEGORY_AVAGRAHA == OT_Symbol ) ;\n }\n else if ( unlikely ( hb_in_range ( u , 0x17CDu , 0x17D1u ) || u == 0x17CBu || u == 0x17D3u || u == 0x17DDu ) ) {\n cat = OT_M ;\n pos = POS_ABOVE_C ;\n }\n else if ( unlikely ( u == 0x17C6u ) ) cat = OT_N ;\n else if ( unlikely ( u == 0x17D2u ) ) cat = OT_Coeng ;\n else if ( unlikely ( hb_in_range ( u , 0x2010u , 0x2011u ) ) ) cat = OT_PLACEHOLDER ;\n else if ( unlikely ( u == 0x25CCu ) ) cat = OT_DOTTEDCIRCLE ;\n else if ( unlikely ( u == 0xA982u ) ) cat = OT_SM ;\n else if ( unlikely ( u == 0xA9BEu ) ) cat = OT_CM2 ;\n else if ( unlikely ( u == 0xA9BDu ) ) {\n cat = OT_M ;\n pos = POS_POST_C ;\n }\n if ( ( FLAG_SAFE ( cat ) & CONSONANT_FLAGS ) ) {\n pos = POS_BASE_C ;\n if ( is_ra ( u ) ) cat = OT_Ra ;\n }\n else if ( cat == OT_M ) {\n pos = matra_position ( u , pos ) ;\n }\n else if ( ( FLAG_SAFE ( cat ) & ( FLAG ( OT_SM ) | FLAG ( OT_VD ) | FLAG ( OT_A ) | FLAG ( OT_Symbol ) ) ) ) {\n pos = POS_SMVD ;\n }\n if ( unlikely ( u == 0x0B01u ) ) pos = POS_BEFORE_SUB ;\n info . indic_category ( ) = cat ;\n info . indic_position ( ) = pos ;\n }"}
{"idx": 15807, "target": 0, "func": "static void dissect_zcl_color_control_color_loop_set ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n static const int * color_loop_update_fields [ ] = {\n & hf_zbee_zcl_color_control_color_loop_update_action , & hf_zbee_zcl_color_control_color_loop_update_direction , & hf_zbee_zcl_color_control_color_loop_update_time , & hf_zbee_zcl_color_control_color_loop_update_start_hue , NULL }\n ;\n proto_tree_add_bitmask ( tree , tvb , * offset , hf_zbee_zcl_color_control_color_loop_update_flags , ett_zbee_zcl_color_control_color_loop_settings , color_loop_update_fields , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_color_loop_action , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_color_loop_direction , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_color_loop_time , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_color_loop_start_hue , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n }"}
{"idx": 15808, "target": 0, "func": "static void test_bug6059 ( ) {\n MYSQL_STMT * stmt ;\n const char * stmt_text ;\n myheader ( \"test_bug6059\" ) ;\n stmt_text = \"SELECT 'foo' INTO OUTFILE 'x.3'\" ;\n stmt = mysql_stmt_init ( mysql ) ;\n ( void ) mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n DIE_UNLESS ( mysql_stmt_field_count ( stmt ) == 0 ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 15809, "target": 0, "func": "static void compute_imdct ( MPADecodeContext * s , GranuleDef * g , INTFLOAT * sb_samples , INTFLOAT * mdct_buf ) {\n INTFLOAT * win , * out_ptr , * ptr , * buf , * ptr1 ;\n INTFLOAT out2 [ 12 ] ;\n int i , j , mdct_long_end , sblimit ;\n ptr = g -> sb_hybrid + 576 ;\n ptr1 = g -> sb_hybrid + 2 * 18 ;\n while ( ptr >= ptr1 ) {\n int32_t * p ;\n ptr -= 6 ;\n p = ( int32_t * ) ptr ;\n if ( p [ 0 ] | p [ 1 ] | p [ 2 ] | p [ 3 ] | p [ 4 ] | p [ 5 ] ) break ;\n }\n sblimit = ( ( ptr - g -> sb_hybrid ) / 18 ) + 1 ;\n if ( g -> block_type == 2 ) {\n if ( g -> switch_point ) mdct_long_end = 2 ;\n else mdct_long_end = 0 ;\n }\n else {\n mdct_long_end = sblimit ;\n }\n s -> mpadsp . RENAME ( imdct36_blocks ) ( sb_samples , mdct_buf , g -> sb_hybrid , mdct_long_end , g -> switch_point , g -> block_type ) ;\n buf = mdct_buf + 4 * 18 * ( mdct_long_end >> 2 ) + ( mdct_long_end & 3 ) ;\n ptr = g -> sb_hybrid + 18 * mdct_long_end ;\n for ( j = mdct_long_end ;\n j < sblimit ;\n j ++ ) {\n win = RENAME ( ff_mdct_win ) [ 2 + ( 4 & - ( j & 1 ) ) ] ;\n out_ptr = sb_samples + j ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n * out_ptr = buf [ 4 * i ] ;\n out_ptr += SBLIMIT ;\n }\n imdct12 ( out2 , ptr + 0 ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n * out_ptr = MULH3 ( out2 [ i ] , win [ i ] , 1 ) + buf [ 4 * ( i + 6 * 1 ) ] ;\n buf [ 4 * ( i + 6 * 2 ) ] = MULH3 ( out2 [ i + 6 ] , win [ i + 6 ] , 1 ) ;\n out_ptr += SBLIMIT ;\n }\n imdct12 ( out2 , ptr + 1 ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n * out_ptr = MULH3 ( out2 [ i ] , win [ i ] , 1 ) + buf [ 4 * ( i + 6 * 2 ) ] ;\n buf [ 4 * ( i + 6 * 0 ) ] = MULH3 ( out2 [ i + 6 ] , win [ i + 6 ] , 1 ) ;\n out_ptr += SBLIMIT ;\n }\n imdct12 ( out2 , ptr + 2 ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n buf [ 4 * ( i + 6 * 0 ) ] = MULH3 ( out2 [ i ] , win [ i ] , 1 ) + buf [ 4 * ( i + 6 * 0 ) ] ;\n buf [ 4 * ( i + 6 * 1 ) ] = MULH3 ( out2 [ i + 6 ] , win [ i + 6 ] , 1 ) ;\n buf [ 4 * ( i + 6 * 2 ) ] = 0 ;\n }\n ptr += 18 ;\n buf += ( j & 3 ) != 3 ? 1 : ( 4 * 18 - 3 ) ;\n }\n for ( j = sblimit ;\n j < SBLIMIT ;\n j ++ ) {\n out_ptr = sb_samples + j ;\n for ( i = 0 ;\n i < 18 ;\n i ++ ) {\n * out_ptr = buf [ 4 * i ] ;\n buf [ 4 * i ] = 0 ;\n out_ptr += SBLIMIT ;\n }\n buf += ( j & 3 ) != 3 ? 1 : ( 4 * 18 - 3 ) ;\n }\n }"}
{"idx": 15810, "target": 0, "func": "static int replace_routine_table ( THD * thd , GRANT_NAME * grant_name , TABLE * table , const LEX_USER & combo , const char * db , const char * routine_name , bool is_proc , ulong rights , bool revoke_grant ) {\n char grantor [ USER_HOST_BUFF_SIZE ] ;\n int old_row_exists = 1 ;\n int error = 0 ;\n ulong store_proc_rights ;\n DBUG_ENTER ( \"replace_routine_table\" ) ;\n if ( ! initialized ) {\n my_error ( ER_OPTION_PREVENTS_STATEMENT , MYF ( 0 ) , \"--skip-grant-tables\" ) ;\n DBUG_RETURN ( - 1 ) ;\n }\n get_grantor ( thd , grantor ) ;\n table -> use_all_columns ( ) ;\n restore_record ( table , s -> default_values ) ;\n table -> field [ 0 ] -> store ( combo . host . str , combo . host . length , & my_charset_latin1 ) ;\n table -> field [ 1 ] -> store ( db , ( uint ) strlen ( db ) , & my_charset_latin1 ) ;\n table -> field [ 2 ] -> store ( combo . user . str , combo . user . length , & my_charset_latin1 ) ;\n table -> field [ 3 ] -> store ( routine_name , ( uint ) strlen ( routine_name ) , & my_charset_latin1 ) ;\n table -> field [ 4 ] -> store ( ( longlong ) ( is_proc ? TYPE_ENUM_PROCEDURE : TYPE_ENUM_FUNCTION ) , TRUE ) ;\n store_record ( table , record [ 1 ] ) ;\n if ( table -> file -> index_read_idx_map ( table -> record [ 0 ] , 0 , ( uchar * ) table -> field [ 0 ] -> ptr , HA_WHOLE_KEY , HA_READ_KEY_EXACT ) ) {\n if ( revoke_grant ) {\n my_error ( ER_NONEXISTING_PROC_GRANT , MYF ( 0 ) , combo . user . str , combo . host . str , routine_name ) ;\n DBUG_RETURN ( - 1 ) ;\n }\n old_row_exists = 0 ;\n restore_record ( table , record [ 1 ] ) ;\n }\n store_proc_rights = get_rights_for_procedure ( rights ) ;\n if ( old_row_exists ) {\n ulong j ;\n store_record ( table , record [ 1 ] ) ;\n j = ( ulong ) table -> field [ 6 ] -> val_int ( ) ;\n if ( revoke_grant ) {\n store_proc_rights = j & ~ store_proc_rights ;\n }\n else {\n store_proc_rights |= j ;\n }\n }\n table -> field [ 5 ] -> store ( grantor , ( uint ) strlen ( grantor ) , & my_charset_latin1 ) ;\n table -> field [ 6 ] -> store ( ( longlong ) store_proc_rights , TRUE ) ;\n rights = fix_rights_for_procedure ( store_proc_rights ) ;\n if ( old_row_exists ) {\n if ( store_proc_rights ) {\n if ( ( error = table -> file -> ha_update_row ( table -> record [ 1 ] , table -> record [ 0 ] ) ) && error != HA_ERR_RECORD_IS_THE_SAME ) goto table_error ;\n }\n else if ( ( error = table -> file -> ha_delete_row ( table -> record [ 1 ] ) ) ) goto table_error ;\n }\n else {\n error = table -> file -> ha_write_row ( table -> record [ 0 ] ) ;\n if ( table -> file -> is_fatal_error ( error , HA_CHECK_DUP_KEY ) ) goto table_error ;\n }\n if ( rights ) {\n grant_name -> privs = rights ;\n }\n else {\n hash_delete ( is_proc ? & proc_priv_hash : & func_priv_hash , ( uchar * ) grant_name ) ;\n }\n DBUG_RETURN ( 0 ) ;\n table_error : table -> file -> print_error ( error , MYF ( 0 ) ) ;\n DBUG_RETURN ( - 1 ) ;\n }"}
{"idx": 15811, "target": 0, "func": "static int gf2m_Mdouble ( const EC_GROUP * group , BIGNUM * x , BIGNUM * z , BN_CTX * ctx ) {\n BIGNUM * t1 ;\n int ret = 0 ;\n BN_CTX_start ( ctx ) ;\n t1 = BN_CTX_get ( ctx ) ;\n if ( t1 == NULL ) goto err ;\n if ( ! group -> meth -> field_sqr ( group , x , x , ctx ) ) goto err ;\n if ( ! group -> meth -> field_sqr ( group , t1 , z , ctx ) ) goto err ;\n if ( ! group -> meth -> field_mul ( group , z , x , t1 , ctx ) ) goto err ;\n if ( ! group -> meth -> field_sqr ( group , x , x , ctx ) ) goto err ;\n if ( ! group -> meth -> field_sqr ( group , t1 , t1 , ctx ) ) goto err ;\n if ( ! group -> meth -> field_mul ( group , t1 , & group -> b , t1 , ctx ) ) goto err ;\n if ( ! BN_GF2m_add ( x , x , t1 ) ) goto err ;\n ret = 1 ;\n err : BN_CTX_end ( ctx ) ;\n return ret ;\n }"}
{"idx": 15812, "target": 0, "func": "static void pdf_show_image ( fz_context * ctx , pdf_run_processor * pr , fz_image * image ) {\n pdf_gstate * gstate = pr -> gstate + pr -> gtop ;\n fz_matrix image_ctm ;\n fz_rect bbox ;\n if ( pr -> super . hidden ) return ;\n image_ctm = gstate -> ctm ;\n fz_pre_scale ( fz_pre_translate ( & image_ctm , 0 , 1 ) , 1 , - 1 ) ;\n bbox = fz_unit_rect ;\n fz_transform_rect ( & bbox , & image_ctm ) ;\n if ( image -> mask && gstate -> blendmode ) {\n fz_begin_group ( ctx , pr -> dev , & bbox , NULL , 0 , 0 , gstate -> blendmode , 1 ) ;\n fz_try ( ctx ) fz_clip_image_mask ( ctx , pr -> dev , image -> mask , & image_ctm , & bbox ) ;\n fz_catch ( ctx ) {\n fz_end_group ( ctx , pr -> dev ) ;\n fz_rethrow ( ctx ) ;\n }\n fz_try ( ctx ) pdf_show_image_imp ( ctx , pr , image , & image_ctm , & bbox ) ;\n fz_always ( ctx ) {\n fz_pop_clip ( ctx , pr -> dev ) ;\n fz_end_group ( ctx , pr -> dev ) ;\n }\n fz_catch ( ctx ) fz_rethrow ( ctx ) ;\n }\n else if ( image -> mask ) {\n fz_clip_image_mask ( ctx , pr -> dev , image -> mask , & image_ctm , & bbox ) ;\n fz_try ( ctx ) pdf_show_image_imp ( ctx , pr , image , & image_ctm , & bbox ) ;\n fz_always ( ctx ) fz_pop_clip ( ctx , pr -> dev ) ;\n fz_catch ( ctx ) fz_rethrow ( ctx ) ;\n }\n else {\n softmask_save softmask = {\n NULL }\n ;\n gstate = pdf_begin_group ( ctx , pr , & bbox , & softmask ) ;\n fz_try ( ctx ) pdf_show_image_imp ( ctx , pr , image , & image_ctm , & bbox ) ;\n fz_always ( ctx ) pdf_end_group ( ctx , pr , & softmask ) ;\n fz_catch ( ctx ) fz_rethrow ( ctx ) ;\n }\n }"}
{"idx": 15813, "target": 0, "func": "TSReturnCode TSUrlHostSet ( TSMBuffer bufp , TSMLoc obj , const char * value , int length ) {\n return URLPartSet ( bufp , obj , value , length , & URL : : host_set ) ;\n }"}
{"idx": 15814, "target": 1, "func": "static void build_inter_predictors_for_planes ( MACROBLOCKD * xd , BLOCK_SIZE bsize , int mi_row , int mi_col , int plane_from , int plane_to ) {\n int plane ;\n const int mi_x = mi_col * MI_SIZE ;\n const int mi_y = mi_row * MI_SIZE ;\n for ( plane = plane_from ;\n plane <= plane_to ;\n ++ plane ) {\n const BLOCK_SIZE plane_bsize = get_plane_block_size ( bsize , & xd -> plane [ plane ] ) ;\n const int num_4x4_w = num_4x4_blocks_wide_lookup [ plane_bsize ] ;\n const int num_4x4_h = num_4x4_blocks_high_lookup [ plane_bsize ] ;\n const int bw = 4 * num_4x4_w ;\n const int bh = 4 * num_4x4_h ;\n if ( xd -> mi [ 0 ] -> mbmi . sb_type < BLOCK_8X8 ) {\n int i = 0 , x , y ;\n assert ( bsize == BLOCK_8X8 ) ;\n for ( y = 0 ;\n y < num_4x4_h ;\n ++ y ) for ( x = 0 ;\n x < num_4x4_w ;\n ++ x ) build_inter_predictors ( xd , plane , i ++ , bw , bh , * x , 4 * y , 4 , 4 , mi_x , mi_y ) ;\n }\n else {\n build_inter_predictors ( xd , plane , 0 , bw , bh , 0 , 0 , bw , bh , mi_x , mi_y ) ;\n }\n }\n }"}
{"idx": 15815, "target": 0, "func": "TSReturnCode TSMimeHdrFieldCopy ( TSMBuffer dest_bufp , TSMLoc dest_hdr , TSMLoc dest_field , TSMBuffer src_bufp , TSMLoc src_hdr , TSMLoc src_field ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( src_bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_mbuffer ( dest_bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( src_hdr ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( src_hdr ) == TS_SUCCESS ) ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( dest_hdr ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( dest_hdr ) == TS_SUCCESS ) ) ;\n sdk_assert ( sdk_sanity_check_field_handle ( src_field , src_hdr ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_field_handle ( dest_field , dest_hdr ) == TS_SUCCESS ) ;\n if ( ! isWriteable ( dest_bufp ) ) {\n return TS_ERROR ;\n }\n bool dest_attached ;\n MIMEFieldSDKHandle * s_handle = ( MIMEFieldSDKHandle * ) src_field ;\n MIMEFieldSDKHandle * d_handle = ( MIMEFieldSDKHandle * ) dest_field ;\n HdrHeap * d_heap = ( ( HdrHeapSDKHandle * ) dest_bufp ) -> m_heap ;\n dest_attached = ( d_handle -> mh && d_handle -> field_ptr -> is_live ( ) ) ;\n if ( dest_attached ) {\n mime_hdr_field_detach ( d_handle -> mh , d_handle -> field_ptr , false ) ;\n }\n mime_field_name_value_set ( d_heap , d_handle -> mh , d_handle -> field_ptr , s_handle -> field_ptr -> m_wks_idx , s_handle -> field_ptr -> m_ptr_name , s_handle -> field_ptr -> m_len_name , s_handle -> field_ptr -> m_ptr_value , s_handle -> field_ptr -> m_len_value , 0 , 0 , true ) ;\n if ( dest_attached ) {\n mime_hdr_field_attach ( d_handle -> mh , d_handle -> field_ptr , 1 , nullptr ) ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 15816, "target": 0, "func": "void vp9_iht4x4_16_add_c ( const tran_low_t * input , uint8_t * dest , int stride , int tx_type ) {\n const transform_2d IHT_4 [ ] = {\n {\n idct4 , idct4 }\n , {\n iadst4 , idct4 }\n , {\n idct4 , iadst4 }\n , {\n iadst4 , iadst4 }\n }\n ;\n int i , j ;\n tran_low_t out [ 4 * 4 ] ;\n tran_low_t * outptr = out ;\n tran_low_t temp_in [ 4 ] , temp_out [ 4 ] ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) {\n IHT_4 [ tx_type ] . rows ( input , outptr ) ;\n input += 4 ;\n outptr += 4 ;\n }\n for ( i = 0 ;\n i < 4 ;\n ++ i ) {\n for ( j = 0 ;\n j < 4 ;\n ++ j ) temp_in [ j ] = out [ j * 4 + i ] ;\n IHT_4 [ tx_type ] . cols ( temp_in , temp_out ) ;\n for ( j = 0 ;\n j < 4 ;\n ++ j ) dest [ j * stride + i ] = clip_pixel ( ROUND_POWER_OF_TWO ( temp_out [ j ] , 4 ) + dest [ j * stride + i ] ) ;\n }\n }"}
{"idx": 15817, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , TestRemoveHandler ) {\n ProtocolHandler ph1 = CreateProtocolHandler ( \"test\" , \"test1\" ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ;\n registry ( ) -> RemoveHandler ( ph1 ) ;\n ASSERT_FALSE ( registry ( ) -> IsRegistered ( ph1 ) ) ;\n ASSERT_FALSE ( registry ( ) -> IsHandledProtocol ( \"test\" ) ) ;\n }"}
{"idx": 15818, "target": 1, "func": "static void cdxl_decode_rgb ( CDXLVideoContext * c ) {\n uint32_t * new_palette = ( uint32_t * ) c -> frame . data [ 1 ] ;\n import_palette ( c , new_palette ) ;\n import_format ( c , c -> frame . linesize [ 0 ] , c -> frame . data [ 0 ] ) ;\n }"}
{"idx": 15819, "target": 0, "func": "void list_cpus ( FILE * f , fprintf_function cpu_fprintf , const char * optarg ) {\n # if defined ( cpu_list ) cpu_list ( f , cpu_fprintf ) ;\n # endif }"}
{"idx": 15820, "target": 0, "func": "static void search_request_finished ( struct request * const req ) {\n if ( req -> search_state ) {\n search_state_decref ( req -> search_state ) ;\n req -> search_state = NULL ;\n }\n if ( req -> search_origname ) {\n free ( req -> search_origname ) ;\n req -> search_origname = NULL ;\n }\n }"}
{"idx": 15821, "target": 1, "func": "static struct FrameData * fd_create ( void * buf , size_t size , vpx_codec_frame_flags_t flags ) {\n struct FrameData * const frame_data = ( struct FrameData * ) vpx_malloc ( sizeof ( * frame_data ) ) ;\n if ( frame_data == NULL ) {\n return NULL ;\n }\n frame_data -> buf = vpx_malloc ( size ) ;\n if ( frame_data -> buf == NULL ) {\n vpx_free ( frame_data ) ;\n return NULL ;\n }\n vpx_memcpy ( frame_data -> buf , buf , size ) ;\n frame_data -> size = size ;\n frame_data -> flags = flags ;\n return frame_data ;\n }"}
{"idx": 15822, "target": 0, "func": "static void filesystem_info_stop ( NautilusDirectory * directory ) {\n NautilusFile * file ;\n if ( directory -> details -> filesystem_info_state != NULL ) {\n file = directory -> details -> filesystem_info_state -> file ;\n if ( file != NULL ) {\n g_assert ( NAUTILUS_IS_FILE ( file ) ) ;\n g_assert ( file -> details -> directory == directory ) ;\n if ( is_needy ( file , lacks_filesystem_info , REQUEST_FILESYSTEM_INFO ) ) {\n return ;\n }\n }\n filesystem_info_cancel ( directory ) ;\n }\n }"}
{"idx": 15823, "target": 0, "func": "static void isoent_remove_child ( struct isoent * parent , struct isoent * child ) {\n struct isoent * ent ;\n ent = parent -> children . first ;\n while ( ent -> chnext != child ) ent = ent -> chnext ;\n if ( ( ent -> chnext = ent -> chnext -> chnext ) == NULL ) parent -> children . last = & ( ent -> chnext ) ;\n parent -> children . cnt -- ;\n if ( child -> dir ) {\n ent = parent -> subdirs . first ;\n while ( ent -> drnext != child ) ent = ent -> drnext ;\n if ( ( ent -> drnext = ent -> drnext -> drnext ) == NULL ) parent -> subdirs . last = & ( ent -> drnext ) ;\n parent -> subdirs . cnt -- ;\n }\n __archive_rb_tree_remove_node ( & ( parent -> rbtree ) , ( struct archive_rb_node * ) child ) ;\n }"}
{"idx": 15824, "target": 1, "func": "void pimv1_print ( netdissect_options * ndo , register const u_char * bp , register u_int len ) {\n register const u_char * ep ;\n register u_char type ;\n ep = ( const u_char * ) ndo -> ndo_snapend ;\n if ( bp >= ep ) return ;\n ND_TCHECK ( bp [ 1 ] ) ;\n type = bp [ 1 ] ;\n ND_PRINT ( ( ndo , \" %s\" , tok2str ( pimv1_type_str , \"[type %u]\" , type ) ) ) ;\n switch ( type ) {\n case PIMV1_TYPE_QUERY : if ( ND_TTEST ( bp [ 8 ] ) ) {\n switch ( bp [ 8 ] >> 4 ) {\n case 0 : ND_PRINT ( ( ndo , \" Dense-mode\" ) ) ;\n break ;\n case 1 : ND_PRINT ( ( ndo , \" Sparse-mode\" ) ) ;\n break ;\n case 2 : ND_PRINT ( ( ndo , \" Sparse-Dense-mode\" ) ) ;\n break ;\n default : ND_PRINT ( ( ndo , \" mode-%d\" , bp [ 8 ] >> 4 ) ) ;\n break ;\n }\n }\n if ( ndo -> ndo_vflag ) {\n ND_TCHECK2 ( bp [ 10 ] , 2 ) ;\n ND_PRINT ( ( ndo , \" (Hold-time \" ) ) ;\n unsigned_relts_print ( ndo , EXTRACT_16BITS ( & bp [ 10 ] ) ) ;\n ND_PRINT ( ( ndo , \")\" ) ) ;\n }\n break ;\n case PIMV1_TYPE_REGISTER : ND_TCHECK2 ( bp [ 8 ] , 20 ) ;\n ND_PRINT ( ( ndo , \" for %s > %s\" , ipaddr_string ( ndo , & bp [ 20 ] ) , ipaddr_string ( ndo , & bp [ 24 ] ) ) ) ;\n break ;\n case PIMV1_TYPE_REGISTER_STOP : ND_TCHECK2 ( bp [ 12 ] , sizeof ( struct in_addr ) ) ;\n ND_PRINT ( ( ndo , \" for %s > %s\" , ipaddr_string ( ndo , & bp [ 8 ] ) , ipaddr_string ( ndo , & bp [ 12 ] ) ) ) ;\n break ;\n case PIMV1_TYPE_RP_REACHABILITY : if ( ndo -> ndo_vflag ) {\n ND_TCHECK2 ( bp [ 22 ] , 2 ) ;\n ND_PRINT ( ( ndo , \" group %s\" , ipaddr_string ( ndo , & bp [ 8 ] ) ) ) ;\n if ( EXTRACT_32BITS ( & bp [ 12 ] ) != 0xffffffff ) ND_PRINT ( ( ndo , \"/%s\" , ipaddr_string ( ndo , & bp [ 12 ] ) ) ) ;\n ND_PRINT ( ( ndo , \" RP %s hold \" , ipaddr_string ( ndo , & bp [ 16 ] ) ) ) ;\n unsigned_relts_print ( ndo , EXTRACT_16BITS ( & bp [ 22 ] ) ) ;\n }\n break ;\n case PIMV1_TYPE_ASSERT : ND_TCHECK2 ( bp [ 16 ] , sizeof ( struct in_addr ) ) ;\n ND_PRINT ( ( ndo , \" for %s > %s\" , ipaddr_string ( ndo , & bp [ 16 ] ) , ipaddr_string ( ndo , & bp [ 8 ] ) ) ) ;\n if ( EXTRACT_32BITS ( & bp [ 12 ] ) != 0xffffffff ) ND_PRINT ( ( ndo , \"/%s\" , ipaddr_string ( ndo , & bp [ 12 ] ) ) ) ;\n ND_TCHECK2 ( bp [ 24 ] , 4 ) ;\n ND_PRINT ( ( ndo , \" %s pref %d metric %d\" , ( bp [ 20 ] & 0x80 ) ? \"RP-tree\" : \"SPT\" , EXTRACT_32BITS ( & bp [ 20 ] ) & 0x7fffffff , EXTRACT_32BITS ( & bp [ 24 ] ) ) ) ;\n break ;\n case PIMV1_TYPE_JOIN_PRUNE : case PIMV1_TYPE_GRAFT : case PIMV1_TYPE_GRAFT_ACK : if ( ndo -> ndo_vflag ) pimv1_join_prune_print ( ndo , & bp [ 8 ] , len - 8 ) ;\n break ;\n }\n if ( ( bp [ 4 ] >> 4 ) != 1 ) ND_PRINT ( ( ndo , \" [v%d]\" , bp [ 4 ] >> 4 ) ) ;\n return ;\n trunc : ND_PRINT ( ( ndo , \"[|pim]\" ) ) ;\n return ;\n }"}
{"idx": 15825, "target": 0, "func": "static void add_descendants_to_write_order ( struct object_entry * * wo , unsigned int * endp , struct object_entry * e ) {\n int add_to_order = 1 ;\n while ( e ) {\n if ( add_to_order ) {\n struct object_entry * s ;\n add_to_write_order ( wo , endp , e ) ;\n for ( s = e -> delta_sibling ;\n s ;\n s = s -> delta_sibling ) {\n add_to_write_order ( wo , endp , s ) ;\n }\n }\n if ( e -> delta_child ) {\n add_to_order = 1 ;\n e = e -> delta_child ;\n }\n else {\n add_to_order = 0 ;\n if ( e -> delta_sibling ) {\n e = e -> delta_sibling ;\n continue ;\n }\n e = e -> delta ;\n while ( e && ! e -> delta_sibling ) {\n e = e -> delta ;\n }\n if ( ! e ) {\n return ;\n }\n e = e -> delta_sibling ;\n }\n }\n ;\n }"}
{"idx": 15826, "target": 0, "func": "static void sethhead ( struct hhead * hhead , struct hhead * vhead , struct alltabs * at , SplineFont * sf ) {\n int i , width , rbearing , height , bbearing ;\n int ymax , ymin , xmax , xmin , off ;\n DBounds bb ;\n width = 0x80000000 ;\n rbearing = 0x7fffffff ;\n height = 0x80000000 ;\n bbearing = 0x7fffffff ;\n xmax = ymax = 0x80000000 ;\n xmin = ymin = 0x7fffffff ;\n for ( i = 0 ;\n i < at -> gi . gcnt ;\n ++ i ) if ( at -> gi . bygid [ i ] != - 1 ) {\n SplineChar * sc = sf -> glyphs [ at -> gi . bygid [ i ] ] ;\n SplineCharLayerFindBounds ( sc , at -> gi . layer , & bb ) ;\n if ( sc -> width > width ) width = sc -> width ;\n if ( sc -> vwidth > height ) height = sc -> vwidth ;\n if ( sc -> width - bb . maxx < rbearing ) rbearing = sc -> width - bb . maxx ;\n if ( sc -> vwidth - bb . maxy < bbearing ) bbearing = sc -> vwidth - bb . maxy ;\n if ( bb . maxy > ymax ) ymax = bb . maxy ;\n if ( bb . miny < ymin ) ymin = bb . miny ;\n if ( bb . maxx > xmax ) xmax = bb . maxx ;\n if ( bb . minx < xmin ) xmin = bb . minx ;\n }\n if ( at -> head . ymax > ymax ) ymax = at -> head . ymax ;\n if ( at -> head . ymin < ymin ) ymin = at -> head . ymin ;\n if ( ymax == 0 && ymin == 0 ) {\n ymax = sf -> ascent ;\n ymin = - sf -> descent ;\n }\n hhead -> version = 0x00010000 ;\n if ( sf -> pfminfo . hheadascent_add ) hhead -> ascender = ymax + sf -> pfminfo . hhead_ascent ;\n else hhead -> ascender = sf -> pfminfo . hhead_ascent ;\n if ( sf -> pfminfo . hheaddescent_add ) hhead -> descender = ymin + sf -> pfminfo . hhead_descent ;\n else hhead -> descender = sf -> pfminfo . hhead_descent ;\n hhead -> linegap = sf -> pfminfo . linegap ;\n vhead -> version = 0x00011000 ;\n off = ( sf -> ascent + sf -> descent ) / 2 ;\n vhead -> ascender = xmax - off ;\n vhead -> descender = xmin - off ;\n vhead -> linegap = sf -> pfminfo . linegap ;\n at -> isfixed = at -> gi . fixed_width > 0 ;\n hhead -> maxwidth = width ;\n hhead -> minlsb = at -> head . xmin ;\n hhead -> minrsb = rbearing ;\n if ( hhead -> minlsb > 0 ) hhead -> minlsb = 0 ;\n if ( hhead -> minrsb > 0 ) hhead -> minrsb = 0 ;\n hhead -> maxextent = at -> head . xmax ;\n if ( sf -> italicangle == 0 ) hhead -> caretSlopeRise = 1 ;\n else {\n hhead -> caretSlopeRise = 100 ;\n hhead -> caretSlopeRun = ( int ) rint ( 100 * tan ( - sf -> italicangle * 3.1415926535897 / 180. ) ) ;\n }\n vhead -> maxwidth = height ;\n vhead -> minlsb = at -> head . ymin ;\n vhead -> minrsb = bbearing ;\n vhead -> maxextent = at -> head . ymax ;\n vhead -> caretSlopeRise = 0 ;\n vhead -> caretSlopeRun = 1 ;\n hhead -> numMetrics = at -> gi . hfullcnt ;\n vhead -> numMetrics = at -> gi . vfullcnt ;\n }"}
{"idx": 15827, "target": 0, "func": "void hb_set_clear ( hb_set_t * set ) {\n set -> clear ( ) ;\n }"}
{"idx": 15828, "target": 1, "func": "zend_object_iterator * spl_filesystem_dir_get_iterator ( zend_class_entry * ce , zval * object , int by_ref TSRMLS_DC ) {\n spl_filesystem_iterator * iterator ;\n spl_filesystem_object * dir_object ;\n if ( by_ref ) {\n zend_error ( E_ERROR , \"An iterator cannot be used with foreach by reference\" ) ;\n }\n dir_object = ( spl_filesystem_object * ) zend_object_store_get_object ( object TSRMLS_CC ) ;\n iterator = spl_filesystem_object_to_iterator ( dir_object ) ;\n if ( iterator -> intern . data == NULL ) {\n iterator -> intern . data = object ;\n iterator -> intern . funcs = & spl_filesystem_dir_it_funcs ;\n iterator -> current = object ;\n }\n zval_add_ref ( & object ) ;\n return ( zend_object_iterator * ) iterator ;\n }"}
{"idx": 15829, "target": 0, "func": "static int tm2_read_tree ( TM2Context * ctx , uint32_t prefix , int length , TM2Huff * huff ) {\n int ret ;\n if ( length > huff -> max_bits ) {\n av_log ( ctx -> avctx , AV_LOG_ERROR , \"Tree exceeded its given depth (%i)\\n\" , huff -> max_bits ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ! get_bits1 ( & ctx -> gb ) ) {\n if ( length == 0 ) {\n length = 1 ;\n }\n if ( huff -> num >= huff -> max_num ) {\n av_log ( ctx -> avctx , AV_LOG_DEBUG , \"Too many literals\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n huff -> nums [ huff -> num ] = get_bits_long ( & ctx -> gb , huff -> val_bits ) ;\n huff -> bits [ huff -> num ] = prefix ;\n huff -> lens [ huff -> num ] = length ;\n huff -> num ++ ;\n return 0 ;\n }\n else {\n if ( ( ret = tm2_read_tree ( ctx , prefix << 1 , length + 1 , huff ) ) < 0 ) return ret ;\n if ( ( ret = tm2_read_tree ( ctx , ( prefix << 1 ) | 1 , length + 1 , huff ) ) < 0 ) return ret ;\n }\n return 0 ;\n }"}
{"idx": 15830, "target": 0, "func": "static void dissect_zcl_appl_stats_log_rsp ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n guint32 log_len ;\n proto_tree_add_item ( tree , hf_zbee_zcl_appl_stats_utc_time , tvb , * offset , 4 , ENC_LITTLE_ENDIAN ) ;\n * offset += 4 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_appl_stats_log_id , tvb , * offset , 4 , ENC_LITTLE_ENDIAN ) ;\n * offset += 4 ;\n log_len = tvb_get_letohl ( tvb , * offset ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_appl_stats_log_length , tvb , * offset , 4 , ENC_LITTLE_ENDIAN ) ;\n * offset += 4 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_appl_stats_log_payload , tvb , * offset , log_len , ENC_NA ) ;\n * offset += log_len ;\n }"}
{"idx": 15831, "target": 0, "func": "TSReturnCode TSUrlPasswordSet ( TSMBuffer bufp , TSMLoc obj , const char * value , int length ) {\n return URLPartSet ( bufp , obj , value , length , & URL : : password_set ) ;\n }"}
{"idx": 15832, "target": 0, "func": "TEST_F ( ProfileInfoCacheTest , MutateProfile ) {\n GetCache ( ) -> AddProfileToCache ( GetProfilePath ( \"path_1\" ) , ASCIIToUTF16 ( \"name_1\" ) , base : : string16 ( ) , 0 , std : : string ( ) ) ;\n GetCache ( ) -> AddProfileToCache ( GetProfilePath ( \"path_2\" ) , ASCIIToUTF16 ( \"name_2\" ) , base : : string16 ( ) , 0 , std : : string ( ) ) ;\n base : : string16 new_name = ASCIIToUTF16 ( \"new_name\" ) ;\n GetCache ( ) -> SetNameOfProfileAtIndex ( 1 , new_name ) ;\n EXPECT_EQ ( new_name , GetCache ( ) -> GetNameOfProfileAtIndex ( 1 ) ) ;\n EXPECT_NE ( new_name , GetCache ( ) -> GetNameOfProfileAtIndex ( 0 ) ) ;\n base : : string16 new_user_name = ASCIIToUTF16 ( \"user_name\" ) ;\n GetCache ( ) -> SetUserNameOfProfileAtIndex ( 1 , new_user_name ) ;\n EXPECT_EQ ( new_user_name , GetCache ( ) -> GetUserNameOfProfileAtIndex ( 1 ) ) ;\n EXPECT_NE ( new_user_name , GetCache ( ) -> GetUserNameOfProfileAtIndex ( 0 ) ) ;\n size_t new_icon_index = 3 ;\n GetCache ( ) -> SetAvatarIconOfProfileAtIndex ( 1 , new_icon_index ) ;\n GetCache ( ) -> GetAvatarIconOfProfileAtIndex ( 1 ) ;\n }"}
{"idx": 15833, "target": 0, "func": "static void test_bug45010 ( ) {\n int rc ;\n const char query1 [ ] = \"select a.\\x80\" , query2 [ ] = \"describe `table\\xef\" ;\n DBUG_ENTER ( \"test_bug45010\" ) ;\n myheader ( \"test_bug45010\" ) ;\n rc = mysql_query ( mysql , \"set names utf8\" ) ;\n myquery ( rc ) ;\n rc = mysql_real_query ( mysql , query1 , sizeof ( query1 ) - 1 ) ;\n DIE_UNLESS ( rc ) ;\n rc = mysql_real_query ( mysql , query2 , sizeof ( query2 ) - 1 ) ;\n DIE_UNLESS ( rc ) ;\n rc = mysql_query ( mysql , \"set names default\" ) ;\n myquery ( rc ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 15834, "target": 0, "func": "static void _slurm_rpc_delete_partition ( slurm_msg_t * msg ) {\n int error_code = SLURM_SUCCESS ;\n DEF_TIMERS ;\n delete_part_msg_t * part_desc_ptr = ( delete_part_msg_t * ) msg -> data ;\n slurmctld_lock_t part_write_lock = {\n NO_LOCK , WRITE_LOCK , READ_LOCK , WRITE_LOCK , NO_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n START_TIMER ;\n debug2 ( \"Processing RPC: REQUEST_DELETE_PARTITION from uid=%d\" , uid ) ;\n if ( ! validate_super_user ( uid ) ) {\n error_code = ESLURM_USER_ID_MISSING ;\n error ( \"Security violation, DELETE_PARTITION RPC from uid=%d\" , uid ) ;\n }\n if ( error_code == SLURM_SUCCESS ) {\n lock_slurmctld ( part_write_lock ) ;\n error_code = delete_partition ( part_desc_ptr ) ;\n unlock_slurmctld ( part_write_lock ) ;\n END_TIMER2 ( \"_slurm_rpc_delete_partition\" ) ;\n }\n if ( error_code ) {\n info ( \"_slurm_rpc_delete_partition partition=%s: %s\" , part_desc_ptr -> name , slurm_strerror ( error_code ) ) ;\n slurm_send_rc_msg ( msg , error_code ) ;\n }\n else {\n info ( \"_slurm_rpc_delete_partition complete for %s %s\" , part_desc_ptr -> name , TIME_STR ) ;\n slurm_send_rc_msg ( msg , SLURM_SUCCESS ) ;\n save_all_state ( ) ;\n queue_job_scheduler ( ) ;\n }\n }"}
{"idx": 15835, "target": 0, "func": "void tmx_pretran_unlink_safe ( int slotid ) {\n if ( _tmx_proc_ptran == NULL ) return ;\n if ( _tmx_proc_ptran -> linked == 0 ) return ;\n if ( _tmx_ptran_table [ slotid ] . plist == NULL ) {\n _tmx_proc_ptran -> prev = _tmx_proc_ptran -> next = NULL ;\n _tmx_proc_ptran -> linked = 0 ;\n return ;\n }\n if ( _tmx_proc_ptran -> prev == NULL ) {\n _tmx_ptran_table [ slotid ] . plist = _tmx_proc_ptran -> next ;\n if ( _tmx_ptran_table [ slotid ] . plist != NULL ) _tmx_ptran_table [ slotid ] . plist -> prev = NULL ;\n }\n else {\n _tmx_proc_ptran -> prev -> next = _tmx_proc_ptran -> next ;\n if ( _tmx_proc_ptran -> next ) _tmx_proc_ptran -> next -> prev = _tmx_proc_ptran -> prev ;\n }\n _tmx_proc_ptran -> prev = _tmx_proc_ptran -> next = NULL ;\n _tmx_proc_ptran -> linked = 0 ;\n return ;\n }"}
{"idx": 15836, "target": 0, "func": "static guint16 de_tp_ue_test_loop_mode ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n guchar oct ;\n guint8 lb_setup_length , i , j ;\n guint16 value ;\n proto_tree * subtree ;\n curr_offset = offset ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_ue_test_loop_mode , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset += 1 ;\n switch ( oct & 0x03 ) {\n case 0 : {\n lb_setup_length = tvb_get_guint8 ( tvb , curr_offset ) ;\n curr_offset += 1 ;\n for ( i = 0 , j = 0 ;\n ( i < lb_setup_length ) && ( j < 4 ) ;\n i += 3 , j ++ ) {\n subtree = proto_tree_add_subtree_format ( tree , tvb , curr_offset , 3 , ett_ue_test_loop_mode , NULL , \"LB setup RB IE: %d\" , j + 1 ) ;\n value = tvb_get_ntohs ( tvb , curr_offset ) ;\n proto_tree_add_uint_format_value ( subtree , hf_gsm_a_dtap_uplink_rlc_sdu_size , tvb , curr_offset , 2 , value , \"%d bits\" , value ) ;\n curr_offset += 2 ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_radio_bearer , tvb , curr_offset , 1 , ENC_NA ) ;\n curr_offset += 1 ;\n }\n break ;\n }\n case 2 : oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n curr_offset += 1 ;\n proto_tree_add_uint ( tree , hf_gsm_a_dtap_mbms_short_transmission_identity , tvb , curr_offset , 1 , ( oct & 0x1f ) + 1 ) ;\n break ;\n }\n return ( curr_offset - offset ) ;\n }"}
{"idx": 15837, "target": 0, "func": "proto_item * proto_tree_add_guid_format ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , const e_guid_t * value_ptr , const char * format , ... ) {\n proto_item * pi ;\n va_list ap ;\n pi = proto_tree_add_guid ( tree , hfindex , tvb , start , length , value_ptr ) ;\n if ( pi != tree ) {\n TRY_TO_FAKE_THIS_REPR ( pi ) ;\n va_start ( ap , format ) ;\n proto_tree_set_representation ( pi , format , ap ) ;\n va_end ( ap ) ;\n }\n return pi ;\n }"}
{"idx": 15838, "target": 0, "func": "static int write_file_descriptors ( struct archive_write * a ) {\n struct iso9660 * iso9660 = a -> format_data ;\n struct isofile * file ;\n int64_t blocks , offset ;\n int r ;\n blocks = 0 ;\n offset = 0 ;\n if ( iso9660 -> el_torito . catalog != NULL ) {\n r = make_boot_catalog ( a ) ;\n if ( r < 0 ) return ( r ) ;\n }\n if ( iso9660 -> el_torito . boot != NULL ) {\n file = iso9660 -> el_torito . boot -> file ;\n blocks = file -> content . blocks ;\n offset = file -> content . offset_of_temp ;\n if ( offset != 0 ) {\n r = write_file_contents ( a , offset , blocks << LOGICAL_BLOCK_BITS ) ;\n if ( r < 0 ) return ( r ) ;\n blocks = 0 ;\n offset = 0 ;\n }\n }\n for ( file = iso9660 -> data_file_list . first ;\n file != NULL ;\n file = file -> datanext ) {\n if ( ! file -> write_content ) continue ;\n if ( ( offset + ( blocks << LOGICAL_BLOCK_BITS ) ) < file -> content . offset_of_temp ) {\n if ( blocks > 0 ) {\n r = write_file_contents ( a , offset , blocks << LOGICAL_BLOCK_BITS ) ;\n if ( r < 0 ) return ( r ) ;\n }\n blocks = 0 ;\n offset = file -> content . offset_of_temp ;\n }\n file -> cur_content = & ( file -> content ) ;\n do {\n blocks += file -> cur_content -> blocks ;\n file -> cur_content = file -> cur_content -> next ;\n }\n while ( file -> cur_content != NULL ) ;\n }\n if ( blocks > 0 ) {\n r = write_file_contents ( a , offset , blocks << LOGICAL_BLOCK_BITS ) ;\n if ( r < 0 ) return ( r ) ;\n }\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 15839, "target": 0, "func": "static void e1000e_autoneg_resume ( E1000ECore * core ) {\n if ( e1000e_have_autoneg ( core ) && ! ( core -> phy [ 0 ] [ PHY_STATUS ] & MII_SR_AUTONEG_COMPLETE ) ) {\n qemu_get_queue ( core -> owner_nic ) -> link_down = false ;\n timer_mod ( core -> autoneg_timer , qemu_clock_get_ms ( QEMU_CLOCK_VIRTUAL ) + 500 ) ;\n }\n }"}
{"idx": 15840, "target": 0, "func": "static int xsltCheckFilename ( const char * path ) {\n # ifdef HAVE_STAT struct stat stat_buffer ;\n # if defined ( WIN32 ) && ! defined ( __CYGWIN__ ) DWORD dwAttrs ;\n dwAttrs = GetFileAttributesA ( path ) ;\n if ( dwAttrs != INVALID_FILE_ATTRIBUTES ) {\n if ( dwAttrs & FILE_ATTRIBUTE_DIRECTORY ) {\n return 2 ;\n }\n }\n # endif if ( stat ( path , & stat_buffer ) == - 1 ) return 0 ;\n # ifdef S_ISDIR if ( S_ISDIR ( stat_buffer . st_mode ) ) {\n return 2 ;\n }\n # endif # endif return 1 ;\n }"}
{"idx": 15841, "target": 0, "func": "SPL_METHOD ( SplFileInfo , getLinkTarget ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n int ret ;\n char buff [ MAXPATHLEN ] ;\n zend_error_handling error_handling ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n zend_replace_error_handling ( EH_THROW , spl_ce_RuntimeException , & error_handling TSRMLS_CC ) ;\n # if defined ( PHP_WIN32 ) || HAVE_SYMLINK if ( intern -> file_name == NULL ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"Empty filename\" ) ;\n RETURN_FALSE ;\n }\n else if ( ! IS_ABSOLUTE_PATH ( intern -> file_name , intern -> file_name_len ) ) {\n char expanded_path [ MAXPATHLEN ] ;\n if ( ! expand_filepath_with_mode ( intern -> file_name , expanded_path , NULL , 0 , CWD_EXPAND TSRMLS_CC ) ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"No such file or directory\" ) ;\n RETURN_FALSE ;\n }\n ret = php_sys_readlink ( expanded_path , buff , MAXPATHLEN - 1 ) ;\n }\n else {\n ret = php_sys_readlink ( intern -> file_name , buff , MAXPATHLEN - 1 ) ;\n }\n # else ret = - 1 ;\n # endif if ( ret == - 1 ) {\n zend_throw_exception_ex ( spl_ce_RuntimeException , 0 TSRMLS_CC , \"Unable to read link %s, error: %s\" , intern -> file_name , strerror ( errno ) ) ;\n RETVAL_FALSE ;\n }\n else {\n buff [ ret ] = '\\0' ;\n RETVAL_STRINGL ( buff , ret , 1 ) ;\n }\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n }"}
{"idx": 15842, "target": 0, "func": "unsigned int mpi_nlimb_hint_from_nbytes ( unsigned int nbytes ) {\n return ( nbytes + BYTES_PER_MPI_LIMB - 1 ) / BYTES_PER_MPI_LIMB ;\n }"}
{"idx": 15843, "target": 0, "func": "REGRESSION_TEST ( SDK_API_TSfopen ) ( RegressionTest * test , int , int * pstatus ) {\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n char write_file_name [ PATH_NAME_MAX ] ;\n TSFile source_read_file ;\n TSFile write_file ;\n TSFile cmp_read_file ;\n char input_buffer [ BUFSIZ ] ;\n char cmp_buffer [ BUFSIZ ] ;\n struct stat stat_buffer_pre , stat_buffer_post , stat_buffer_input ;\n char * ret_val ;\n int read = 0 , wrote = 0 ;\n int64_t read_amount = 0 ;\n char INPUT_TEXT_FILE [ ] = \"plugin.config\" ;\n char input_file_full_path [ BUFSIZ ] ;\n if ( TSInstallDirGet ( ) == nullptr ) {\n * pstatus = REGRESSION_TEST_FAILED ;\n return ;\n }\n ink_filepath_make ( input_file_full_path , sizeof ( input_file_full_path ) , TSConfigDirGet ( ) , INPUT_TEXT_FILE ) ;\n if ( ! ( source_read_file = TSfopen ( input_file_full_path , \"r\" ) ) ) {\n SDK_RPRINT ( test , \"TSfopen\" , \"TestCase1\" , TC_FAIL , \"can't open file for reading\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n return ;\n }\n else {\n SDK_RPRINT ( test , \"TSfopen\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n snprintf ( write_file_name , PATH_NAME_MAX , \"/tmp/%sXXXXXX\" , PFX ) ;\n int write_file_fd ;\n if ( ( write_file_fd = mkstemp ( write_file_name ) ) <= 0 ) {\n SDK_RPRINT ( test , \"mkstemp\" , \"std func\" , TC_FAIL , \"can't create file for writing\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n if ( source_read_file != nullptr ) {\n TSfclose ( source_read_file ) ;\n }\n return ;\n }\n close ( write_file_fd ) ;\n if ( ! ( write_file = TSfopen ( write_file_name , \"w\" ) ) ) {\n SDK_RPRINT ( test , \"TSfopen\" , \"TestCase2\" , TC_FAIL , \"can't open file for writing\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n if ( source_read_file != nullptr ) {\n TSfclose ( source_read_file ) ;\n }\n return ;\n }\n SDK_RPRINT ( test , \"TSfopen\" , \"TestCase2\" , TC_PASS , \"ok\" ) ;\n memset ( input_buffer , '\\0' , BUFSIZ ) ;\n if ( stat ( input_file_full_path , & stat_buffer_input ) != 0 ) {\n SDK_RPRINT ( test , \"stat\" , \"std func\" , TC_FAIL , \"source file and input file messed up\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n if ( source_read_file != nullptr ) {\n TSfclose ( source_read_file ) ;\n }\n if ( write_file != nullptr ) {\n TSfclose ( write_file ) ;\n }\n return ;\n }\n read_amount = ( stat_buffer_input . st_size <= ( off_t ) sizeof ( input_buffer ) ) ? ( stat_buffer_input . st_size ) : ( sizeof ( input_buffer ) ) ;\n if ( ( ret_val = TSfgets ( source_read_file , input_buffer , read_amount ) ) == nullptr ) {\n SDK_RPRINT ( test , \"TSfgets\" , \"TestCase1\" , TC_FAIL , \"can't read from file\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n if ( source_read_file != nullptr ) {\n TSfclose ( source_read_file ) ;\n }\n if ( write_file != nullptr ) {\n TSfclose ( write_file ) ;\n }\n return ;\n }\n else {\n if ( ret_val != input_buffer ) {\n SDK_RPRINT ( test , \"TSfgets\" , \"TestCase2\" , TC_FAIL , \"reading error\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n if ( source_read_file != nullptr ) {\n TSfclose ( source_read_file ) ;\n }\n if ( write_file != nullptr ) {\n TSfclose ( write_file ) ;\n }\n return ;\n }\n else {\n SDK_RPRINT ( test , \"TSfgets\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n }\n wrote = TSfwrite ( write_file , input_buffer , read_amount ) ;\n if ( wrote != read_amount ) {\n SDK_RPRINT ( test , \"TSfwrite\" , \"TestCase1\" , TC_FAIL , \"writing error\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n if ( source_read_file != nullptr ) {\n TSfclose ( source_read_file ) ;\n }\n if ( write_file != nullptr ) {\n TSfclose ( write_file ) ;\n }\n return ;\n }\n SDK_RPRINT ( test , \"TSfwrite\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n if ( stat ( write_file_name , & stat_buffer_pre ) != 0 ) {\n SDK_RPRINT ( test , \"stat\" , \"std func\" , TC_FAIL , \"TSfwrite error\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n if ( source_read_file != nullptr ) {\n TSfclose ( source_read_file ) ;\n }\n if ( write_file != nullptr ) {\n TSfclose ( write_file ) ;\n }\n return ;\n }\n TSfflush ( write_file ) ;\n if ( stat ( write_file_name , & stat_buffer_post ) != 0 ) {\n SDK_RPRINT ( test , \"stat\" , \"std func\" , TC_FAIL , \"TSfflush error\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n if ( source_read_file != nullptr ) {\n TSfclose ( source_read_file ) ;\n }\n if ( write_file != nullptr ) {\n TSfclose ( write_file ) ;\n }\n return ;\n }\n if ( ( stat_buffer_pre . st_size == 0 ) && ( stat_buffer_post . st_size == read_amount ) ) {\n SDK_RPRINT ( test , \"TSfflush\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n else {\n SDK_RPRINT ( test , \"TSfflush\" , \"TestCase1\" , TC_FAIL , \"TSfflush error\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n if ( source_read_file != nullptr ) {\n TSfclose ( source_read_file ) ;\n }\n if ( write_file != nullptr ) {\n TSfclose ( write_file ) ;\n }\n return ;\n }\n cmp_read_file = TSfopen ( write_file_name , \"r\" ) ;\n if ( cmp_read_file == nullptr ) {\n SDK_RPRINT ( test , \"TSfopen\" , \"TestCase3\" , TC_FAIL , \"can't open file for reading\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n if ( source_read_file != nullptr ) {\n TSfclose ( source_read_file ) ;\n }\n if ( write_file != nullptr ) {\n TSfclose ( write_file ) ;\n }\n return ;\n }\n read_amount = ( stat_buffer_input . st_size <= ( off_t ) sizeof ( cmp_buffer ) ) ? ( stat_buffer_input . st_size ) : ( sizeof ( cmp_buffer ) ) ;\n read = TSfread ( cmp_read_file , cmp_buffer , read_amount ) ;\n if ( read != read_amount ) {\n SDK_RPRINT ( test , \"TSfread\" , \"TestCase1\" , TC_FAIL , \"can't reading\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n if ( source_read_file != nullptr ) {\n TSfclose ( source_read_file ) ;\n }\n if ( write_file != nullptr ) {\n TSfclose ( write_file ) ;\n }\n if ( cmp_read_file != nullptr ) {\n TSfclose ( cmp_read_file ) ;\n }\n return ;\n }\n else {\n SDK_RPRINT ( test , \"TSfread\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n if ( memcmp ( input_buffer , cmp_buffer , read_amount ) != 0 ) {\n SDK_RPRINT ( test , \"TSfread\" , \"TestCase2\" , TC_FAIL , \"reading error\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n if ( source_read_file != nullptr ) {\n TSfclose ( source_read_file ) ;\n }\n if ( write_file != nullptr ) {\n TSfclose ( write_file ) ;\n }\n if ( cmp_read_file != nullptr ) {\n TSfclose ( cmp_read_file ) ;\n }\n return ;\n }\n else {\n SDK_RPRINT ( test , \"TSfread\" , \"TestCase2\" , TC_PASS , \"ok\" ) ;\n }\n if ( unlink ( write_file_name ) != 0 ) {\n SDK_RPRINT ( test , \"unlink\" , \"std func\" , TC_FAIL , \"can't remove temp file\" ) ;\n }\n TSfclose ( source_read_file ) ;\n SDK_RPRINT ( test , \"TSfclose\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n TSfclose ( write_file ) ;\n SDK_RPRINT ( test , \"TSfclose\" , \"TestCase2\" , TC_PASS , \"ok\" ) ;\n * pstatus = REGRESSION_TEST_PASSED ;\n if ( cmp_read_file != nullptr ) {\n TSfclose ( cmp_read_file ) ;\n }\n }"}
{"idx": 15844, "target": 1, "func": "VALUE rb_dlhandle_sym ( VALUE self , VALUE sym ) {\n void ( * func ) ( ) ;\n struct dl_handle * dlhandle ;\n void * handle ;\n const char * name ;\n const char * err ;\n int i ;\n # if defined ( HAVE_DLERROR ) # define CHECK_DLERROR if ( err = dlerror ( ) ) {\n func = 0 ;\n }\n # else # define CHECK_DLERROR # endif rb_secure ( 2 ) ;\n name = StringValuePtr ( sym ) ;\n Data_Get_Struct ( self , struct dl_handle , dlhandle ) ;\n if ( ! dlhandle -> open ) {\n rb_raise ( rb_eDLError , \"closed handle\" ) ;\n }\n handle = dlhandle -> ptr ;\n func = dlsym ( handle , name ) ;\n CHECK_DLERROR ;\n # if defined ( FUNC_STDCALL ) if ( ! func ) {\n int len = strlen ( name ) ;\n char * name_n ;\n # if defined ( __CYGWIN__ ) || defined ( _WIN32 ) || defined ( __MINGW32__ ) {\n char * name_a = ( char * ) xmalloc ( len + 2 ) ;\n strcpy ( name_a , name ) ;\n name_n = name_a ;\n name_a [ len ] = 'A' ;\n name_a [ len + 1 ] = '\\0' ;\n func = dlsym ( handle , name_a ) ;\n CHECK_DLERROR ;\n if ( func ) goto found ;\n name_n = xrealloc ( name_a , len + 6 ) ;\n }\n # else name_n = ( char * ) xmalloc ( len + 6 ) ;\n # endif memcpy ( name_n , name , len ) ;\n name_n [ len ++ ] = '@' ;\n for ( i = 0 ;\n i < 256 ;\n i += 4 ) {\n sprintf ( name_n + len , \"%d\" , i ) ;\n func = dlsym ( handle , name_n ) ;\n CHECK_DLERROR ;\n if ( func ) break ;\n }\n if ( func ) goto found ;\n name_n [ len - 1 ] = 'A' ;\n name_n [ len ++ ] = '@' ;\n for ( i = 0 ;\n i < 256 ;\n i += 4 ) {\n sprintf ( name_n + len , \"%d\" , i ) ;\n func = dlsym ( handle , name_n ) ;\n CHECK_DLERROR ;\n if ( func ) break ;\n }\n found : xfree ( name_n ) ;\n }\n # endif if ( ! func ) {\n rb_raise ( rb_eDLError , \"unknown symbol \\\"%s\\\"\" , name ) ;\n }\n return PTR2NUM ( func ) ;\n }"}
{"idx": 15845, "target": 0, "func": "static void spl_dllist_it_helper_move_forward ( spl_ptr_llist_element * * traverse_pointer_ptr , int * traverse_position_ptr , spl_ptr_llist * llist , int flags TSRMLS_DC ) {\n if ( * traverse_pointer_ptr ) {\n spl_ptr_llist_element * old = * traverse_pointer_ptr ;\n if ( flags & SPL_DLLIST_IT_LIFO ) {\n * traverse_pointer_ptr = old -> prev ;\n ( * traverse_position_ptr ) -- ;\n if ( flags & SPL_DLLIST_IT_DELETE ) {\n zval * prev = ( zval * ) spl_ptr_llist_pop ( llist TSRMLS_CC ) ;\n if ( prev ) {\n zval_ptr_dtor ( ( zval * * ) & prev ) ;\n }\n }\n }\n else {\n * traverse_pointer_ptr = old -> next ;\n if ( flags & SPL_DLLIST_IT_DELETE ) {\n zval * prev = ( zval * ) spl_ptr_llist_shift ( llist TSRMLS_CC ) ;\n if ( prev ) {\n zval_ptr_dtor ( ( zval * * ) & prev ) ;\n }\n }\n else {\n ( * traverse_position_ptr ) ++ ;\n }\n }\n SPL_LLIST_DELREF ( old ) ;\n SPL_LLIST_CHECK_ADDREF ( * traverse_pointer_ptr ) ;\n }\n }"}
{"idx": 15846, "target": 0, "func": "static void revert_mclms ( WmallDecodeCtx * s , int tile_size ) {\n int icoef , pred [ WMALL_MAX_CHANNELS ] = {\n 0 }\n ;\n for ( icoef = 0 ;\n icoef < tile_size ;\n icoef ++ ) {\n mclms_predict ( s , icoef , pred ) ;\n mclms_update ( s , icoef , pred ) ;\n }\n }"}
{"idx": 15847, "target": 0, "func": "SPL_METHOD ( FilesystemIterator , rewind ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n int skip_dots = SPL_HAS_FLAG ( intern -> flags , SPL_FILE_DIR_SKIPDOTS ) ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n intern -> u . dir . index = 0 ;\n if ( intern -> u . dir . dirp ) {\n php_stream_rewinddir ( intern -> u . dir . dirp ) ;\n }\n do {\n spl_filesystem_dir_read ( intern TSRMLS_CC ) ;\n }\n while ( skip_dots && spl_filesystem_is_dot ( intern -> u . dir . entry . d_name ) ) ;\n }"}
{"idx": 15848, "target": 0, "func": "static void ss10_init ( QEMUMachineInitArgs * args ) {\n ram_addr_t RAM_size = args -> ram_size ;\n const char * cpu_model = args -> cpu_model ;\n const char * kernel_filename = args -> kernel_filename ;\n const char * kernel_cmdline = args -> kernel_cmdline ;\n const char * initrd_filename = args -> initrd_filename ;\n const char * boot_device = args -> boot_device ;\n sun4m_hw_init ( & sun4m_hwdefs [ 1 ] , RAM_size , boot_device , kernel_filename , kernel_cmdline , initrd_filename , cpu_model ) ;\n }"}
{"idx": 15849, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( HttpsEngagementPageLoadMetricsBrowserTest , AlwaysInBackground ) {\n StartHttpsServer ( false ) ;\n StartHttpServer ( ) ;\n NavigateInBackgroundAndClose ( https_test_server_ -> GetURL ( \"/simple.html\" ) ) ;\n NavigateInBackgroundAndClose ( http_test_server_ -> GetURL ( \"/simple.html\" ) ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpEngagementHistogram , 0 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementHistogram , 0 ) ;\n FakeUserMetricsUpload ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementSessionPercentage , 0 ) ;\n }"}
{"idx": 15850, "target": 0, "func": "int32_t rleStringToByteArray ( uint16_t * src , int32_t srcLen , uint8_t * target , int32_t tgtLen , UErrorCode * status ) {\n int32_t length = 0 ;\n UBool nextChar = TRUE ;\n uint16_t c = 0 ;\n int32_t node = 0 ;\n int32_t runLength = 0 ;\n int32_t i = 2 ;\n int32_t ai = 0 ;\n if ( ! status || U_FAILURE ( * status ) ) {\n return 0 ;\n }\n if ( srcLen == - 1 ) {\n srcLen = u_strlen ( src ) ;\n }\n if ( srcLen <= 2 ) {\n return 2 ;\n }\n length = ( ( ( int32_t ) src [ 0 ] ) << 16 ) | ( ( int32_t ) src [ 1 ] ) ;\n if ( target == NULL ) {\n return length ;\n }\n if ( tgtLen < length ) {\n * status = U_BUFFER_OVERFLOW_ERROR ;\n return length ;\n }\n for ( ;\n ai < tgtLen ;\n ) {\n uint8_t b ;\n if ( nextChar ) {\n c = src [ i ++ ] ;\n b = ( uint8_t ) ( c >> 8 ) ;\n nextChar = FALSE ;\n }\n else {\n b = ( uint8_t ) ( c & 0xFF ) ;\n nextChar = TRUE ;\n }\n switch ( node ) {\n case 0 : if ( b == ESCAPE_BYTE ) {\n node = 1 ;\n }\n else {\n target [ ai ++ ] = b ;\n }\n break ;\n case 1 : if ( b == ESCAPE_BYTE ) {\n target [ ai ++ ] = ESCAPE_BYTE ;\n node = 0 ;\n }\n else {\n runLength = b ;\n node = 2 ;\n }\n break ;\n case 2 : {\n int j = 0 ;\n for ( ;\n j < runLength ;\n ++ j ) {\n if ( ai < tgtLen ) {\n target [ ai ++ ] = b ;\n }\n else {\n * status = U_BUFFER_OVERFLOW_ERROR ;\n return ai ;\n }\n }\n node = 0 ;\n break ;\n }\n }\n }\n if ( node != 0 ) {\n * status = U_INTERNAL_PROGRAM_ERROR ;\n return 0 ;\n }\n if ( i != srcLen ) {\n * status = U_INTERNAL_PROGRAM_ERROR ;\n return ai ;\n }\n return ai ;\n }"}
{"idx": 15851, "target": 0, "func": "static inline bool is_one_of ( const hb_glyph_info_t & info , unsigned int flags ) {\n if ( _hb_glyph_info_ligated ( & info ) ) return false ;\n return ! ! ( FLAG_SAFE ( info . myanmar_category ( ) ) & flags ) ;\n }"}
{"idx": 15852, "target": 0, "func": "static int dissect_h245_T_mPI ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_mPI , T_mPI_sequence ) ;\n return offset ;\n }"}
{"idx": 15853, "target": 0, "func": "static void test_bug10760 ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND my_bind [ 1 ] ;\n int rc ;\n const char * stmt_text ;\n char id_buf [ 20 ] ;\n ulong id_len ;\n int i = 0 ;\n ulong type ;\n myheader ( \"test_bug10760\" ) ;\n mysql_query ( mysql , \"drop table if exists t1, t2\" ) ;\n rc = mysql_query ( mysql , \"create table t1 (id integer not null primary key)\" \" engine=MyISAM\" ) ;\n myquery ( rc ) ;\n for ( ;\n i < 42 ;\n ++ i ) {\n char buf [ 100 ] ;\n sprintf ( buf , \"insert into t1 (id) values (%d)\" , i + 1 ) ;\n rc = mysql_query ( mysql , buf ) ;\n myquery ( rc ) ;\n }\n mysql_autocommit ( mysql , FALSE ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n type = ( ulong ) CURSOR_TYPE_READ_ONLY ;\n mysql_stmt_attr_set ( stmt , STMT_ATTR_CURSOR_TYPE , ( const void * ) & type ) ;\n stmt_text = \"select id from t1 order by 1\" ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_query ( mysql , \"update t1 set id=id+100\" ) ;\n if ( rc && ! opt_silent ) printf ( \"Got error (as expected): %s\\n\" , mysql_error ( mysql ) ) ;\n rc = mysql_rollback ( mysql ) ;\n myquery ( rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! have_innodb ) {\n if ( ! opt_silent ) printf ( \"Testing that cursors are closed at COMMIT/ROLLBACK requires \" \"InnoDB.\\n\" ) ;\n }\n else {\n stmt_text = \"select id from t1 order by 1\" ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_query ( mysql , \"alter table t1 engine=InnoDB\" ) ;\n myquery ( rc ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 0 ] . buffer = ( void * ) id_buf ;\n my_bind [ 0 ] . buffer_length = sizeof ( id_buf ) ;\n my_bind [ 0 ] . length = & id_len ;\n check_execute ( stmt , rc ) ;\n mysql_stmt_bind_result ( stmt , my_bind ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == 0 ) ;\n if ( ! opt_silent ) printf ( \"Fetched row %s\\n\" , id_buf ) ;\n rc = mysql_rollback ( mysql ) ;\n myquery ( rc ) ;\n # if 0 rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc ) ;\n if ( ! opt_silent ) printf ( \"Got error (as expected): %s\\n\" , mysql_error ( mysql ) ) ;\n # endif }\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"drop table t1\" ) ;\n myquery ( rc ) ;\n mysql_autocommit ( mysql , TRUE ) ;\n }"}
{"idx": 15854, "target": 0, "func": "static const char * ultag_getPrivateUse ( const ULanguageTag * langtag ) {\n return langtag -> privateuse ;\n }"}
{"idx": 15855, "target": 0, "func": "static int com_quit ( String * buffer __attribute__ ( ( unused ) ) , char * line __attribute__ ( ( unused ) ) ) {\n status . exit_status = 0 ;\n return 1 ;\n }"}
{"idx": 15856, "target": 0, "func": "static void security_init ( void ) {\n uintptr_t stack_chk_guard = _dl_setup_stack_chk_guard ( _dl_random ) ;\n # ifdef THREAD_SET_STACK_GUARD THREAD_SET_STACK_GUARD ( stack_chk_guard ) ;\n # else __stack_chk_guard = stack_chk_guard ;\n # endif uintptr_t pointer_chk_guard = _dl_setup_pointer_guard ( _dl_random , stack_chk_guard ) ;\n # ifdef THREAD_SET_POINTER_GUARD THREAD_SET_POINTER_GUARD ( pointer_chk_guard ) ;\n # endif __pointer_chk_guard_local = pointer_chk_guard ;\n _dl_random = NULL ;\n }"}
{"idx": 15857, "target": 0, "func": "const unsigned char * fz_lookup_icc ( fz_context * ctx , const char * name , size_t * size ) {\n # ifndef NO_ICC if ( fz_get_cmm_engine ( ctx ) == NULL ) return * size = 0 , NULL ;\n if ( ! strcmp ( name , FZ_ICC_PROFILE_GRAY ) ) {\n extern const int fz_resources_icc_gray_icc_size ;\n extern const unsigned char fz_resources_icc_gray_icc [ ] ;\n * size = fz_resources_icc_gray_icc_size ;\n return fz_resources_icc_gray_icc ;\n }\n if ( ! strcmp ( name , FZ_ICC_PROFILE_RGB ) || ! strcmp ( name , FZ_ICC_PROFILE_BGR ) ) {\n extern const int fz_resources_icc_rgb_icc_size ;\n extern const unsigned char fz_resources_icc_rgb_icc [ ] ;\n * size = fz_resources_icc_rgb_icc_size ;\n return fz_resources_icc_rgb_icc ;\n }\n if ( ! strcmp ( name , FZ_ICC_PROFILE_CMYK ) ) {\n extern const int fz_resources_icc_cmyk_icc_size ;\n extern const unsigned char fz_resources_icc_cmyk_icc [ ] ;\n * size = fz_resources_icc_cmyk_icc_size ;\n return fz_resources_icc_cmyk_icc ;\n }\n if ( ! strcmp ( name , FZ_ICC_PROFILE_LAB ) ) {\n extern const int fz_resources_icc_lab_icc_size ;\n extern const unsigned char fz_resources_icc_lab_icc [ ] ;\n * size = fz_resources_icc_lab_icc_size ;\n return fz_resources_icc_lab_icc ;\n }\n # endif return * size = 0 , NULL ;\n }"}
{"idx": 15858, "target": 0, "func": "static int read_crt_cn ( server_rec * s , apr_pool_t * p , gnutls_x509_crt_t cert , char * * cert_cn ) {\n int rv = 0 , i ;\n size_t data_len ;\n _gnutls_log ( debug_log_fp , \"%s: %d\\n\" , __func__ , __LINE__ ) ;\n * cert_cn = NULL ;\n data_len = 0 ;\n rv = gnutls_x509_crt_get_dn_by_oid ( cert , GNUTLS_OID_X520_COMMON_NAME , 0 , 0 , NULL , & data_len ) ;\n if ( rv == GNUTLS_E_SHORT_MEMORY_BUFFER && data_len > 1 ) {\n * cert_cn = apr_palloc ( p , data_len ) ;\n rv = gnutls_x509_crt_get_dn_by_oid ( cert , GNUTLS_OID_X520_COMMON_NAME , 0 , 0 , * cert_cn , & data_len ) ;\n }\n else {\n ap_log_error ( APLOG_MARK , APLOG_DEBUG , 0 , s , \"No common name found in certificate for '%s:%d'. Looking for subject alternative name...\" , s -> server_hostname , s -> port ) ;\n rv = 0 ;\n for ( i = 0 ;\n ! ( rv < 0 ) ;\n i ++ ) {\n data_len = 0 ;\n rv = gnutls_x509_crt_get_subject_alt_name ( cert , i , NULL , & data_len , NULL ) ;\n if ( rv == GNUTLS_E_SHORT_MEMORY_BUFFER && data_len > 1 ) {\n * cert_cn = apr_palloc ( p , data_len + 1 ) ;\n rv = gnutls_x509_crt_get_subject_alt_name ( cert , i , * cert_cn , & data_len , NULL ) ;\n ( * cert_cn ) [ data_len ] = 0 ;\n if ( rv == GNUTLS_SAN_DNSNAME ) break ;\n }\n }\n }\n return rv ;\n }"}
{"idx": 15859, "target": 0, "func": "static int proc_free_streams ( struct usb_dev_state * ps , void __user * arg ) {\n unsigned num_eps ;\n struct usb_host_endpoint * * eps ;\n struct usb_interface * intf ;\n int r ;\n r = parse_usbdevfs_streams ( ps , arg , NULL , & num_eps , & eps , & intf ) ;\n if ( r ) return r ;\n destroy_async_on_interface ( ps , intf -> altsetting [ 0 ] . desc . bInterfaceNumber ) ;\n r = usb_free_streams ( intf , eps , num_eps , GFP_KERNEL ) ;\n kfree ( eps ) ;\n return r ;\n }"}
{"idx": 15860, "target": 0, "func": "void free_grant_table ( GRANT_TABLE * grant_table ) {\n hash_free ( & grant_table -> hash_columns ) ;\n }"}
{"idx": 15861, "target": 0, "func": "TEST_F ( BrowsingDataRemoverImplTest , RemoveQuotaManagedDataForeverBoth ) {\n BlockUntilBrowsingDataRemoved ( base : : Time ( ) , base : : Time : : Max ( ) , BrowsingDataRemover : : REMOVE_FILE_SYSTEMS | BrowsingDataRemover : : REMOVE_WEBSQL | BrowsingDataRemover : : REMOVE_APPCACHE | BrowsingDataRemover : : REMOVE_SERVICE_WORKERS | BrowsingDataRemover : : REMOVE_CACHE_STORAGE | BrowsingDataRemover : : REMOVE_INDEXEDDB , false ) ;\n EXPECT_EQ ( BrowsingDataRemover : : REMOVE_FILE_SYSTEMS | BrowsingDataRemover : : REMOVE_WEBSQL | BrowsingDataRemover : : REMOVE_APPCACHE | BrowsingDataRemover : : REMOVE_SERVICE_WORKERS | BrowsingDataRemover : : REMOVE_CACHE_STORAGE | BrowsingDataRemover : : REMOVE_INDEXEDDB , GetRemovalMask ( ) ) ;\n EXPECT_EQ ( BrowsingDataHelper : : UNPROTECTED_WEB , GetOriginTypeMask ( ) ) ;\n StoragePartitionRemovalData removal_data = GetStoragePartitionRemovalData ( ) ;\n EXPECT_EQ ( removal_data . remove_mask , StoragePartition : : REMOVE_DATA_MASK_FILE_SYSTEMS | StoragePartition : : REMOVE_DATA_MASK_WEBSQL | StoragePartition : : REMOVE_DATA_MASK_APPCACHE | StoragePartition : : REMOVE_DATA_MASK_SERVICE_WORKERS | StoragePartition : : REMOVE_DATA_MASK_CACHE_STORAGE | StoragePartition : : REMOVE_DATA_MASK_INDEXEDDB ) ;\n EXPECT_EQ ( removal_data . quota_storage_remove_mask , StoragePartition : : QUOTA_MANAGED_STORAGE_MASK_ALL ) ;\n }"}
{"idx": 15862, "target": 1, "func": "static xmlLinkPtr xmlListLowerSearch ( xmlListPtr l , void * data ) {\n xmlLinkPtr lk ;\n if ( l == NULL ) return ( NULL ) ;\n for ( lk = l -> sentinel -> next ;\n lk != l -> sentinel && l -> linkCompare ( lk -> data , data ) < 0 ;\n lk = lk -> next ) ;\n return lk ;\n }"}
{"idx": 15863, "target": 0, "func": "void jpc_ns_fwdlift_colres ( jpc_fix_t * a , int numrows , int numcols , int stride , int parity ) {\n jpc_fix_t * lptr ;\n jpc_fix_t * hptr ;\n register jpc_fix_t * lptr2 ;\n register jpc_fix_t * hptr2 ;\n register int n ;\n register int i ;\n int llen ;\n llen = ( numrows + 1 - parity ) >> 1 ;\n if ( numrows > 1 ) {\n lptr = & a [ 0 ] ;\n hptr = & a [ llen * stride ] ;\n if ( parity ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n jpc_fix_pluseq ( hptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * ALPHA ) , lptr2 [ 0 ] ) ) ;\n ++ hptr2 ;\n ++ lptr2 ;\n }\n hptr += stride ;\n }\n n = numrows - llen - parity - ( parity == ( numrows & 1 ) ) ;\n while ( n -- > 0 ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n jpc_fix_pluseq ( hptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( ALPHA ) , jpc_fix_add ( lptr2 [ 0 ] , lptr2 [ stride ] ) ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n hptr += stride ;\n lptr += stride ;\n }\n if ( parity == ( numrows & 1 ) ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n jpc_fix_pluseq ( hptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * ALPHA ) , lptr2 [ 0 ] ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n }\n lptr = & a [ 0 ] ;\n hptr = & a [ llen * stride ] ;\n if ( ! parity ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n jpc_fix_pluseq ( lptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * BETA ) , hptr2 [ 0 ] ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n lptr += stride ;\n }\n n = llen - ( ! parity ) - ( parity != ( numrows & 1 ) ) ;\n while ( n -- > 0 ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n jpc_fix_pluseq ( lptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( BETA ) , jpc_fix_add ( hptr2 [ 0 ] , hptr2 [ stride ] ) ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n lptr += stride ;\n hptr += stride ;\n }\n if ( parity != ( numrows & 1 ) ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n jpc_fix_pluseq ( lptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * BETA ) , hptr2 [ 0 ] ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n }\n lptr = & a [ 0 ] ;\n hptr = & a [ llen * stride ] ;\n if ( parity ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n jpc_fix_pluseq ( hptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * GAMMA ) , lptr2 [ 0 ] ) ) ;\n ++ hptr2 ;\n ++ lptr2 ;\n }\n hptr += stride ;\n }\n n = numrows - llen - parity - ( parity == ( numrows & 1 ) ) ;\n while ( n -- > 0 ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n jpc_fix_pluseq ( hptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( GAMMA ) , jpc_fix_add ( lptr2 [ 0 ] , lptr2 [ stride ] ) ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n hptr += stride ;\n lptr += stride ;\n }\n if ( parity == ( numrows & 1 ) ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n jpc_fix_pluseq ( hptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * GAMMA ) , lptr2 [ 0 ] ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n }\n lptr = & a [ 0 ] ;\n hptr = & a [ llen * stride ] ;\n if ( ! parity ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n jpc_fix_pluseq ( lptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * DELTA ) , hptr2 [ 0 ] ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n lptr += stride ;\n }\n n = llen - ( ! parity ) - ( parity != ( numrows & 1 ) ) ;\n while ( n -- > 0 ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n jpc_fix_pluseq ( lptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( DELTA ) , jpc_fix_add ( hptr2 [ 0 ] , hptr2 [ stride ] ) ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n lptr += stride ;\n hptr += stride ;\n }\n if ( parity != ( numrows & 1 ) ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n jpc_fix_pluseq ( lptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * DELTA ) , hptr2 [ 0 ] ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n }\n # if defined ( WT_DOSCALE ) lptr = & a [ 0 ] ;\n n = llen ;\n while ( n -- > 0 ) {\n lptr2 = lptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n lptr2 [ 0 ] = jpc_fix_mul ( lptr2 [ 0 ] , jpc_dbltofix ( LGAIN ) ) ;\n ++ lptr2 ;\n }\n lptr += stride ;\n }\n hptr = & a [ llen * stride ] ;\n n = numrows - llen ;\n while ( n -- > 0 ) {\n hptr2 = hptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n hptr2 [ 0 ] = jpc_fix_mul ( hptr2 [ 0 ] , jpc_dbltofix ( HGAIN ) ) ;\n ++ hptr2 ;\n }\n hptr += stride ;\n }\n # endif }\n else {\n # if defined ( WT_LENONE ) if ( parity ) {\n lptr2 = & a [ 0 ] ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n lptr2 [ 0 ] = jpc_fix_asl ( lptr2 [ 0 ] , 1 ) ;\n ++ lptr2 ;\n }\n }\n # endif }\n }"}
{"idx": 15864, "target": 0, "func": "afs_int32 SPR_NameToID ( struct rx_call * call , namelist * aname , idlist * aid ) {\n afs_int32 code ;\n code = nameToID ( call , aname , aid ) ;\n osi_auditU ( call , PTS_NmToIdEvent , code , AUD_END ) ;\n ViceLog ( 125 , ( \"PTS_NameToID: code %d\\n\" , code ) ) ;\n return code ;\n }"}
{"idx": 15865, "target": 0, "func": "static gpgme_error_t set_recipients ( engine_gpgsm_t gpgsm , gpgme_key_t recp [ ] ) {\n gpgme_error_t err = 0 ;\n assuan_context_t ctx = gpgsm -> assuan_ctx ;\n char * line ;\n int linelen ;\n int invalid_recipients = 0 ;\n int i ;\n linelen = 10 + 40 + 1 ;\n line = malloc ( 10 + 40 + 1 ) ;\n if ( ! line ) return gpg_error_from_syserror ( ) ;\n strcpy ( line , \"RECIPIENT \" ) ;\n for ( i = 0 ;\n ! err && recp [ i ] ;\n i ++ ) {\n char * fpr ;\n int newlen ;\n if ( ! recp [ i ] -> subkeys || ! recp [ i ] -> subkeys -> fpr ) {\n invalid_recipients ++ ;\n continue ;\n }\n fpr = recp [ i ] -> subkeys -> fpr ;\n newlen = 11 + strlen ( fpr ) ;\n if ( linelen < newlen ) {\n char * newline = realloc ( line , newlen ) ;\n if ( ! newline ) {\n int saved_err = gpg_error_from_syserror ( ) ;\n free ( line ) ;\n return saved_err ;\n }\n line = newline ;\n linelen = newlen ;\n }\n strcpy ( & line [ 10 ] , fpr ) ;\n err = gpgsm_assuan_simple_command ( ctx , line , gpgsm -> status . fnc , gpgsm -> status . fnc_value ) ;\n if ( gpg_err_code ( err ) == GPG_ERR_NO_PUBKEY ) invalid_recipients ++ ;\n else if ( err ) {\n free ( line ) ;\n return err ;\n }\n }\n free ( line ) ;\n return gpg_error ( invalid_recipients ? GPG_ERR_UNUSABLE_PUBKEY : GPG_ERR_NO_ERROR ) ;\n }"}
{"idx": 15866, "target": 0, "func": "int gs_copyscanlines ( gx_device * dev , int start_y , byte * data , uint size , int * plines_copied , uint * pbytes_copied ) {\n uint line_size = gx_device_raster ( dev , 0 ) ;\n uint count = size / line_size ;\n uint i ;\n byte * dest = data ;\n for ( i = 0 ;\n i < count ;\n i ++ , dest += line_size ) {\n int code = ( * dev_proc ( dev , get_bits ) ) ( dev , start_y + i , dest , NULL ) ;\n if ( code < 0 ) {\n if ( start_y + i == dev -> height ) break ;\n return_error ( code ) ;\n }\n }\n if ( plines_copied != NULL ) * plines_copied = i ;\n if ( pbytes_copied != NULL ) * pbytes_copied = i * line_size ;\n return 0 ;\n }"}
{"idx": 15867, "target": 0, "func": "static int com_ego ( String * buffer , char * line ) {\n int result ;\n bool oldvertical = vertical ;\n vertical = 1 ;\n result = com_go ( buffer , line ) ;\n vertical = oldvertical ;\n return result ;\n }"}
{"idx": 15868, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( CrossOriginXHR , ContentScript ) {\n ASSERT_TRUE ( StartFTPServer ( base : : FilePath ( kFtpDocRoot ) ) ) ;\n ASSERT_TRUE ( RunExtensionTest ( \"cross_origin_xhr/content_script\" ) ) << message_ ;\n }"}
{"idx": 15869, "target": 0, "func": "static int evdns_transmit ( void ) {\n char did_try_to_transmit = 0 ;\n if ( req_head ) {\n struct request * const started_at = req_head , * req = req_head ;\n do {\n if ( req -> transmit_me ) {\n did_try_to_transmit = 1 ;\n evdns_request_transmit ( req ) ;\n }\n req = req -> next ;\n }\n while ( req != started_at ) ;\n }\n return did_try_to_transmit ;\n }"}
{"idx": 15870, "target": 0, "func": "static void dtap_mm_tmsi_realloc_cmd ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_FALSE ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_COMMON , DE_LAI , NULL ) ;\n ELEM_MAND_LV ( GSM_A_PDU_TYPE_COMMON , DE_MID , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 15871, "target": 0, "func": "static int dissect_h225_BOOLEAN ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_boolean ( tvb , offset , actx , tree , hf_index , NULL ) ;\n return offset ;\n }"}
{"idx": 15872, "target": 0, "func": "static int qemuMonitorTextParsePciAddReply ( qemuMonitorPtr mon ATTRIBUTE_UNUSED , const char * reply , virDomainDevicePCIAddress * addr ) {\n char * s , * e ;\n if ( ! ( s = strstr ( reply , \"OK \" ) ) ) return - 1 ;\n s += 3 ;\n if ( STRPREFIX ( s , \"domain \" ) ) {\n s += strlen ( \"domain \" ) ;\n if ( virStrToLong_ui ( s , & e , 10 , & addr -> domain ) == - 1 ) {\n VIR_WARN ( \"Unable to parse domain number '%s'\" , s ) ;\n return - 1 ;\n }\n if ( ! STRPREFIX ( e , \", \" ) ) {\n VIR_WARN ( \"Expected ', ' parsing pci_add reply '%s'\" , s ) ;\n return - 1 ;\n }\n s = e + 2 ;\n }\n if ( ! STRPREFIX ( s , \"bus \" ) ) {\n VIR_WARN ( \"Expected 'bus ' parsing pci_add reply '%s'\" , s ) ;\n return - 1 ;\n }\n s += strlen ( \"bus \" ) ;\n if ( virStrToLong_ui ( s , & e , 10 , & addr -> bus ) == - 1 ) {\n VIR_WARN ( \"Unable to parse bus number '%s'\" , s ) ;\n return - 1 ;\n }\n if ( ! STRPREFIX ( e , \", \" ) ) {\n VIR_WARN ( \"Expected ', ' parsing pci_add reply '%s'\" , s ) ;\n return - 1 ;\n }\n s = e + 2 ;\n if ( ! STRPREFIX ( s , \"slot \" ) ) {\n VIR_WARN ( \"Expected 'slot ' parsing pci_add reply '%s'\" , s ) ;\n return - 1 ;\n }\n s += strlen ( \"slot \" ) ;\n if ( virStrToLong_ui ( s , & e , 10 , & addr -> slot ) == - 1 ) {\n VIR_WARN ( \"Unable to parse slot number '%s'\" , s ) ;\n return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 15873, "target": 1, "func": "static void * size_checked_malloc ( size_t size ) {\n if ( size > MAX_LIBXML_MALLOC ) {\n * ( volatile char * ) 0 = '\\0' ;\n return NULL ;\n }\n return malloc ( size ) ;\n }"}
{"idx": 15874, "target": 0, "func": "static void check_for_jsonb_9_4_usage ( ClusterInfo * cluster ) {\n int dbnum ;\n FILE * script = NULL ;\n bool found = false ;\n char output_path [ MAXPGPATH ] ;\n prep_status ( \"Checking for JSONB user data types\" ) ;\n snprintf ( output_path , sizeof ( output_path ) , \"tables_using_jsonb.txt\" ) ;\n for ( dbnum = 0 ;\n dbnum < cluster -> dbarr . ndbs ;\n dbnum ++ ) {\n PGresult * res ;\n bool db_used = false ;\n int ntups ;\n int rowno ;\n int i_nspname , i_relname , i_attname ;\n DbInfo * active_db = & cluster -> dbarr . dbs [ dbnum ] ;\n PGconn * conn = connectToServer ( cluster , active_db -> db_name ) ;\n res = executeQueryOrDie ( conn , \"SELECT n.nspname, c.relname, a.attname \" \"FROM pg_catalog.pg_class c, \" \" pg_catalog.pg_namespace n, \" \" pg_catalog.pg_attribute a \" \"WHERE c.oid = a.attrelid AND \" \" NOT a.attisdropped AND \" \" a.atttypid = 'pg_catalog.jsonb'::pg_catalog.regtype AND \" \" c.relnamespace = n.oid AND \" \" n.nspname !~ '^pg_temp_' AND \" \" n.nspname NOT IN ('pg_catalog', 'information_schema')\" ) ;\n ntups = PQntuples ( res ) ;\n i_nspname = PQfnumber ( res , \"nspname\" ) ;\n i_relname = PQfnumber ( res , \"relname\" ) ;\n i_attname = PQfnumber ( res , \"attname\" ) ;\n for ( rowno = 0 ;\n rowno < ntups ;\n rowno ++ ) {\n found = true ;\n if ( script == NULL && ( script = fopen_priv ( output_path , \"w\" ) ) == NULL ) pg_fatal ( \"Could not open file \\\"%s\\\": %s\\n\" , output_path , getErrorText ( ) ) ;\n if ( ! db_used ) {\n fprintf ( script , \"Database: %s\\n\" , active_db -> db_name ) ;\n db_used = true ;\n }\n fprintf ( script , \" %s.%s.%s\\n\" , PQgetvalue ( res , rowno , i_nspname ) , PQgetvalue ( res , rowno , i_relname ) , PQgetvalue ( res , rowno , i_attname ) ) ;\n }\n PQclear ( res ) ;\n PQfinish ( conn ) ;\n }\n if ( script ) fclose ( script ) ;\n if ( found ) {\n pg_log ( PG_REPORT , \"fatal\\n\" ) ;\n pg_fatal ( \"Your installation contains one of the JSONB data types in user tables.\\n\" \"The internal format of JSONB changed during 9.4 beta so this cluster cannot currently\\n\" \"be upgraded. You can remove the problem tables and restart the upgrade. A list\\n\" \"of the problem columns is in the file:\\n\" \" %s\\n\\n\" , output_path ) ;\n }\n else check_ok ( ) ;\n }"}
{"idx": 15875, "target": 0, "func": "static void dissect_zcl_pwr_prof_getpwrprofpricersp ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_pwr_prof_id , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_currency , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_price , tvb , * offset , 4 , ENC_LITTLE_ENDIAN ) ;\n * offset += 4 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_price_trailing_digit , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n }"}
{"idx": 15876, "target": 0, "func": "static int test_in_memory ( xd3_stream * stream , int ignore ) {\n uint8_t ibuf [ sizeof ( test_text ) ] ;\n uint8_t dbuf [ sizeof ( test_text ) ] ;\n uint8_t obuf [ sizeof ( test_text ) ] ;\n usize_t size = sizeof ( test_text ) ;\n usize_t dsize , osize ;\n int r1 , r2 ;\n int eflags = SECONDARY_DJW ? XD3_SEC_DJW : 0 ;\n memcpy ( ibuf , test_text , size ) ;\n memset ( ibuf + 128 , 0 , 16 ) ;\n r1 = xd3_encode_memory ( ibuf , size , test_text , size , dbuf , & dsize , size , eflags ) ;\n r2 = xd3_decode_memory ( dbuf , dsize , test_text , size , obuf , & osize , size , 0 ) ;\n if ( r1 != 0 || r2 != 0 || dsize >= ( size / 2 ) || dsize < 1 || osize != size ) {\n stream -> msg = \"encode/decode size error\" ;\n return XD3_INTERNAL ;\n }\n if ( memcmp ( obuf , ibuf , size ) != 0 ) {\n stream -> msg = \"encode/decode data error\" ;\n return XD3_INTERNAL ;\n }\n return 0 ;\n }"}
{"idx": 15877, "target": 0, "func": "static int dissect_pvfs2_mgmt_perf_mon_request ( tvbuff_t * tvb _U_ , proto_tree * tree _U_ , int offset , packet_info * pinfo _U_ ) {\n proto_tree_add_item ( tree , hf_pvfs_next_id , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_pvfs_mgmt_perf_mon_request_count , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n return offset ;\n }"}
{"idx": 15878, "target": 0, "func": "float4 get_func_cost ( Oid funcid ) {\n HeapTuple tp ;\n float4 result ;\n tp = SearchSysCache1 ( PROCOID , ObjectIdGetDatum ( funcid ) ) ;\n if ( ! HeapTupleIsValid ( tp ) ) elog ( ERROR , \"cache lookup failed for function %u\" , funcid ) ;\n result = ( ( Form_pg_proc ) GETSTRUCT ( tp ) ) -> procost ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }"}
{"idx": 15879, "target": 1, "func": "static void sbr_sum64x5_c ( float * z ) {\n int k ;\n for ( k = 0 ;\n k < 64 ;\n k ++ ) {\n float f = z [ k ] + z [ k + 64 ] + z [ k + 128 ] + z [ k + 192 ] + z [ k + 256 ] ;\n z [ k ] = f ;\n }\n }"}
{"idx": 15880, "target": 0, "func": "static int dissect_query_records ( tvbuff_t * tvb , int cur_off , int dns_data_offset , int count , column_info * cinfo , proto_tree * dns_tree , gboolean isupdate , gboolean is_mdns ) {\n int start_off , add_off ;\n proto_tree * qatree ;\n proto_item * ti ;\n const char * s = ( isupdate ? \"Zone\" : \"Queries\" ) ;\n start_off = cur_off ;\n qatree = proto_tree_add_subtree ( dns_tree , tvb , start_off , - 1 , ett_dns_qry , & ti , s ) ;\n while ( count -- > 0 ) {\n add_off = dissect_dns_query ( tvb , cur_off , dns_data_offset , cinfo , qatree , is_mdns ) ;\n cur_off += add_off ;\n }\n if ( ti ) {\n proto_item_set_len ( ti , cur_off - start_off ) ;\n }\n return cur_off - start_off ;\n }"}
{"idx": 15881, "target": 0, "func": "void * _TSrealloc ( void * ptr , size_t size , const char * ) {\n return ats_realloc ( ptr , size ) ;\n }"}
{"idx": 15882, "target": 0, "func": "static uInt decCheckMath ( const decNumber * rhs , decContext * set , uInt * status ) {\n uInt save = * status ;\n if ( set -> digits > DEC_MAX_MATH || set -> emax > DEC_MAX_MATH || - set -> emin > DEC_MAX_MATH ) * status |= DEC_Invalid_context ;\n else if ( ( rhs -> digits > DEC_MAX_MATH || rhs -> exponent + rhs -> digits > DEC_MAX_MATH + 1 || rhs -> exponent + rhs -> digits < 2 * ( 1 - DEC_MAX_MATH ) ) && ! ISZERO ( rhs ) ) * status |= DEC_Invalid_operation ;\n return ( * status != save ) ;\n }"}
{"idx": 15883, "target": 0, "func": "err_status_t srtp_protect_rtcp ( srtp_t ctx , void * rtcp_hdr , int * pkt_octet_len ) {\n srtcp_hdr_t * hdr = ( srtcp_hdr_t * ) rtcp_hdr ;\n uint32_t * enc_start ;\n uint32_t * auth_start ;\n uint32_t * trailer ;\n unsigned int enc_octet_len = 0 ;\n uint8_t * auth_tag = NULL ;\n err_status_t status ;\n int tag_len ;\n srtp_stream_ctx_t * stream ;\n int prefix_len ;\n uint32_t seq_num ;\n if ( * pkt_octet_len < octets_in_rtcp_header ) return err_status_bad_param ;\n stream = srtp_get_stream ( ctx , hdr -> ssrc ) ;\n if ( stream == NULL ) {\n if ( ctx -> stream_template != NULL ) {\n srtp_stream_ctx_t * new_stream ;\n status = srtp_stream_clone ( ctx -> stream_template , hdr -> ssrc , & new_stream ) ;\n if ( status ) return status ;\n new_stream -> next = ctx -> stream_list ;\n ctx -> stream_list = new_stream ;\n stream = new_stream ;\n }\n else {\n return err_status_no_ctx ;\n }\n }\n if ( stream -> direction != dir_srtp_sender ) {\n if ( stream -> direction == dir_unknown ) {\n stream -> direction = dir_srtp_sender ;\n }\n else {\n srtp_handle_event ( ctx , stream , event_ssrc_collision ) ;\n }\n }\n if ( stream -> rtp_cipher -> algorithm == AES_128_GCM || stream -> rtp_cipher -> algorithm == AES_256_GCM ) {\n return srtp_protect_rtcp_aead ( ctx , stream , rtcp_hdr , ( unsigned int * ) pkt_octet_len ) ;\n }\n tag_len = auth_get_tag_length ( stream -> rtcp_auth ) ;\n enc_start = ( uint32_t * ) hdr + uint32s_in_rtcp_header ;\n enc_octet_len = * pkt_octet_len - octets_in_rtcp_header ;\n trailer = ( uint32_t * ) ( ( char * ) enc_start + enc_octet_len ) ;\n if ( stream -> rtcp_services & sec_serv_conf ) {\n * trailer = htonl ( SRTCP_E_BIT ) ;\n }\n else {\n enc_start = NULL ;\n enc_octet_len = 0 ;\n * trailer = 0x00000000 ;\n }\n auth_start = ( uint32_t * ) hdr ;\n auth_tag = ( uint8_t * ) hdr + * pkt_octet_len + sizeof ( srtcp_trailer_t ) ;\n ekt_write_data ( stream -> ekt , auth_tag , tag_len , pkt_octet_len , rdbx_get_packet_index ( & stream -> rtp_rdbx ) ) ;\n status = rdb_increment ( & stream -> rtcp_rdb ) ;\n if ( status ) return status ;\n seq_num = rdb_get_value ( & stream -> rtcp_rdb ) ;\n * trailer |= htonl ( seq_num ) ;\n debug_print ( mod_srtp , \"srtcp index: %x\" , seq_num ) ;\n if ( stream -> rtcp_cipher -> type -> id == AES_ICM ) {\n v128_t iv ;\n iv . v32 [ 0 ] = 0 ;\n iv . v32 [ 1 ] = hdr -> ssrc ;\n iv . v32 [ 2 ] = htonl ( seq_num >> 16 ) ;\n iv . v32 [ 3 ] = htonl ( seq_num << 16 ) ;\n status = cipher_set_iv ( stream -> rtcp_cipher , & iv , direction_encrypt ) ;\n }\n else {\n v128_t iv ;\n iv . v32 [ 0 ] = 0 ;\n iv . v32 [ 1 ] = 0 ;\n iv . v32 [ 2 ] = 0 ;\n iv . v32 [ 3 ] = htonl ( seq_num ) ;\n status = cipher_set_iv ( stream -> rtcp_cipher , & iv , direction_encrypt ) ;\n }\n if ( status ) return err_status_cipher_fail ;\n if ( auth_start ) {\n prefix_len = auth_get_prefix_length ( stream -> rtcp_auth ) ;\n status = cipher_output ( stream -> rtcp_cipher , auth_tag , prefix_len ) ;\n debug_print ( mod_srtp , \"keystream prefix: %s\" , octet_string_hex_string ( auth_tag , prefix_len ) ) ;\n if ( status ) return err_status_cipher_fail ;\n }\n if ( enc_start ) {\n status = cipher_encrypt ( stream -> rtcp_cipher , ( uint8_t * ) enc_start , & enc_octet_len ) ;\n if ( status ) return err_status_cipher_fail ;\n }\n auth_start ( stream -> rtcp_auth ) ;\n status = auth_compute ( stream -> rtcp_auth , ( uint8_t * ) auth_start , ( * pkt_octet_len ) + sizeof ( srtcp_trailer_t ) , auth_tag ) ;\n debug_print ( mod_srtp , \"srtcp auth tag: %s\" , octet_string_hex_string ( auth_tag , tag_len ) ) ;\n if ( status ) return err_status_auth_fail ;\n * pkt_octet_len += ( tag_len + sizeof ( srtcp_trailer_t ) ) ;\n return err_status_ok ;\n }"}
{"idx": 15884, "target": 0, "func": "void qdev_connect_gpio_out ( DeviceState * dev , int n , qemu_irq pin ) {\n assert ( n >= 0 && n < dev -> num_gpio_out ) ;\n dev -> gpio_out [ n ] = pin ;\n }"}
{"idx": 15885, "target": 0, "func": "void nautilus_directory_call_when_ready_internal ( NautilusDirectory * directory , NautilusFile * file , NautilusFileAttributes file_attributes , gboolean wait_for_file_list , NautilusDirectoryCallback directory_callback , NautilusFileCallback file_callback , gpointer callback_data ) {\n ReadyCallback callback ;\n g_assert ( directory == NULL || NAUTILUS_IS_DIRECTORY ( directory ) ) ;\n g_assert ( file == NULL || NAUTILUS_IS_FILE ( file ) ) ;\n g_assert ( file != NULL || directory_callback != NULL ) ;\n callback . active = TRUE ;\n callback . file = file ;\n if ( file == NULL ) {\n callback . callback . directory = directory_callback ;\n }\n else {\n callback . callback . file = file_callback ;\n }\n callback . callback_data = callback_data ;\n callback . request = nautilus_directory_set_up_request ( file_attributes ) ;\n if ( wait_for_file_list ) {\n REQUEST_SET_TYPE ( callback . request , REQUEST_FILE_LIST ) ;\n }\n if ( directory == NULL ) {\n ready_callback_call ( NULL , & callback ) ;\n return ;\n }\n if ( g_list_find_custom ( directory -> details -> call_when_ready_list , & callback , ready_callback_key_compare_only_active ) != NULL ) {\n if ( file_callback != NULL && directory_callback != NULL ) {\n g_warning ( \"tried to add a new callback while an old one was pending\" ) ;\n }\n return ;\n }\n directory -> details -> call_when_ready_list = g_list_prepend ( directory -> details -> call_when_ready_list , g_memdup ( & callback , sizeof ( callback ) ) ) ;\n request_counter_add_request ( directory -> details -> call_when_ready_counters , callback . request ) ;\n if ( file != NULL ) {\n nautilus_directory_add_file_to_work_queue ( directory , file ) ;\n }\n else {\n add_all_files_to_work_queue ( directory ) ;\n }\n nautilus_directory_async_state_changed ( directory ) ;\n }"}
{"idx": 15886, "target": 1, "func": "TEST_F ( TransportSecurityPersisterTest , SerializeData2 ) {\n TransportSecurityState : : DomainState domain_state ;\n const base : : Time current_time ( base : : Time : : Now ( ) ) ;\n const base : : Time expiry = current_time + base : : TimeDelta : : FromSeconds ( 1000 ) ;\n static const char kYahooDomain [ ] = \"yahoo.com\" ;\n EXPECT_FALSE ( state_ . GetDomainState ( kYahooDomain , true , & domain_state ) ) ;\n bool include_subdomains = true ;\n state_ . AddHSTS ( kYahooDomain , expiry , include_subdomains ) ;\n std : : string output ;\n bool dirty ;\n EXPECT_TRUE ( persister_ -> SerializeData ( & output ) ) ;\n EXPECT_TRUE ( persister_ -> LoadEntries ( output , & dirty ) ) ;\n EXPECT_TRUE ( state_ . GetDomainState ( kYahooDomain , true , & domain_state ) ) ;\n EXPECT_EQ ( domain_state . upgrade_mode , TransportSecurityState : : DomainState : : MODE_FORCE_HTTPS ) ;\n EXPECT_TRUE ( state_ . GetDomainState ( \"foo.yahoo.com\" , true , & domain_state ) ) ;\n EXPECT_EQ ( domain_state . upgrade_mode , TransportSecurityState : : DomainState : : MODE_FORCE_HTTPS ) ;\n EXPECT_TRUE ( state_ . GetDomainState ( \"foo.bar.yahoo.com\" , true , & domain_state ) ) ;\n EXPECT_EQ ( domain_state . upgrade_mode , TransportSecurityState : : DomainState : : MODE_FORCE_HTTPS ) ;\n EXPECT_TRUE ( state_ . GetDomainState ( \"foo.bar.baz.yahoo.com\" , true , & domain_state ) ) ;\n EXPECT_EQ ( domain_state . upgrade_mode , TransportSecurityState : : DomainState : : MODE_FORCE_HTTPS ) ;\n EXPECT_FALSE ( state_ . GetDomainState ( \"com\" , true , & domain_state ) ) ;\n }"}
{"idx": 15887, "target": 1, "func": "int BIO_vsnprintf ( char * buf , size_t n , const char * format , va_list args ) {\n size_t retlen ;\n int truncated ;\n _dopr ( & buf , NULL , & n , & retlen , & truncated , format , args ) ;\n if ( truncated ) return - 1 ;\n else return ( retlen <= INT_MAX ) ? ( int ) retlen : - 1 ;\n }"}
{"idx": 15888, "target": 0, "func": "void genericcostestimate ( PlannerInfo * root , IndexPath * path , double loop_count , List * qinfos , GenericCosts * costs ) {\n IndexOptInfo * index = path -> indexinfo ;\n List * indexQuals = path -> indexquals ;\n List * indexOrderBys = path -> indexorderbys ;\n Cost indexStartupCost ;\n Cost indexTotalCost ;\n Selectivity indexSelectivity ;\n double indexCorrelation ;\n double numIndexPages ;\n double numIndexTuples ;\n double spc_random_page_cost ;\n double num_sa_scans ;\n double num_outer_scans ;\n double num_scans ;\n double qual_op_cost ;\n double qual_arg_cost ;\n List * selectivityQuals ;\n ListCell * l ;\n selectivityQuals = add_predicate_to_quals ( index , indexQuals ) ;\n num_sa_scans = 1 ;\n foreach ( l , indexQuals ) {\n RestrictInfo * rinfo = ( RestrictInfo * ) lfirst ( l ) ;\n if ( IsA ( rinfo -> clause , ScalarArrayOpExpr ) ) {\n ScalarArrayOpExpr * saop = ( ScalarArrayOpExpr * ) rinfo -> clause ;\n int alength = estimate_array_length ( lsecond ( saop -> args ) ) ;\n if ( alength > 1 ) num_sa_scans *= alength ;\n }\n }\n indexSelectivity = clauselist_selectivity ( root , selectivityQuals , index -> rel -> relid , JOIN_INNER , NULL ) ;\n numIndexTuples = costs -> numIndexTuples ;\n if ( numIndexTuples <= 0.0 ) {\n numIndexTuples = indexSelectivity * index -> rel -> tuples ;\n numIndexTuples = rint ( numIndexTuples / num_sa_scans ) ;\n }\n if ( numIndexTuples > index -> tuples ) numIndexTuples = index -> tuples ;\n if ( numIndexTuples < 1.0 ) numIndexTuples = 1.0 ;\n if ( index -> pages > 1 && index -> tuples > 1 ) numIndexPages = ceil ( numIndexTuples * index -> pages / index -> tuples ) ;\n else numIndexPages = 1.0 ;\n get_tablespace_page_costs ( index -> reltablespace , & spc_random_page_cost , NULL ) ;\n num_outer_scans = loop_count ;\n num_scans = num_sa_scans * num_outer_scans ;\n if ( num_scans > 1 ) {\n double pages_fetched ;\n pages_fetched = numIndexPages * num_scans ;\n pages_fetched = index_pages_fetched ( pages_fetched , index -> pages , ( double ) index -> pages , root ) ;\n indexTotalCost = ( pages_fetched * spc_random_page_cost ) / num_outer_scans ;\n }\n else {\n indexTotalCost = numIndexPages * spc_random_page_cost ;\n }\n qual_arg_cost = other_operands_eval_cost ( root , qinfos ) + orderby_operands_eval_cost ( root , path ) ;\n qual_op_cost = cpu_operator_cost * ( list_length ( indexQuals ) + list_length ( indexOrderBys ) ) ;\n indexStartupCost = qual_arg_cost ;\n indexTotalCost += qual_arg_cost ;\n indexTotalCost += numIndexTuples * num_sa_scans * ( cpu_index_tuple_cost + qual_op_cost ) ;\n indexCorrelation = 0.0 ;\n costs -> indexStartupCost = indexStartupCost ;\n costs -> indexTotalCost = indexTotalCost ;\n costs -> indexSelectivity = indexSelectivity ;\n costs -> indexCorrelation = indexCorrelation ;\n costs -> numIndexPages = numIndexPages ;\n costs -> numIndexTuples = numIndexTuples ;\n costs -> spc_random_page_cost = spc_random_page_cost ;\n costs -> num_sa_scans = num_sa_scans ;\n }"}
{"idx": 15889, "target": 0, "func": "int TSHttpTxnIsWebsocket ( TSHttpTxn txnp ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n return sm -> t_state . is_websocket ;\n }"}
{"idx": 15890, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , UseCounterFeaturesInIframes ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : LOAD_EVENT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/page_load_metrics/use_counter_features_in_iframes.html\" ) ) ;\n waiter -> Wait ( ) ;\n NavigateToUntrackedUrl ( ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kFeaturesHistogramName , static_cast < int32_t > ( WebFeature : : kTextWholeText ) , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kFeaturesHistogramName , static_cast < int32_t > ( WebFeature : : kV8Element_Animate_Method ) , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kFeaturesHistogramName , static_cast < int32_t > ( WebFeature : : kNavigatorVibrate ) , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kFeaturesHistogramName , static_cast < int32_t > ( WebFeature : : kPageVisits ) , 1 ) ;\n }"}
{"idx": 15891, "target": 0, "func": "static void log_callback ( void * ptr , int level , const char * fmt , va_list vl ) {\n AVClass * avc = ptr ? * ( AVClass * * ) ptr : NULL ;\n va_list vl2 ;\n char line [ 1024 ] ;\n static int print_prefix = 1 ;\n void * new_log_buffer ;\n va_copy ( vl2 , vl ) ;\n av_log_default_callback ( ptr , level , fmt , vl ) ;\n av_log_format_line ( ptr , level , fmt , vl2 , line , sizeof ( line ) , & print_prefix ) ;\n va_end ( vl2 ) ;\n # if HAVE_THREADS pthread_mutex_lock ( & log_mutex ) ;\n new_log_buffer = av_realloc_array ( log_buffer , log_buffer_size + 1 , sizeof ( * log_buffer ) ) ;\n if ( new_log_buffer ) {\n char * msg ;\n int i ;\n log_buffer = new_log_buffer ;\n memset ( & log_buffer [ log_buffer_size ] , 0 , sizeof ( log_buffer [ log_buffer_size ] ) ) ;\n log_buffer [ log_buffer_size ] . context_name = avc ? av_strdup ( avc -> item_name ( ptr ) ) : NULL ;\n if ( avc ) {\n if ( avc -> get_category ) log_buffer [ log_buffer_size ] . category = avc -> get_category ( ptr ) ;\n else log_buffer [ log_buffer_size ] . category = avc -> category ;\n }\n log_buffer [ log_buffer_size ] . log_level = level ;\n msg = log_buffer [ log_buffer_size ] . log_message = av_strdup ( line ) ;\n for ( i = strlen ( msg ) - 1 ;\n i >= 0 && msg [ i ] == '\\n' ;\n i -- ) {\n msg [ i ] = 0 ;\n }\n if ( avc && avc -> parent_log_context_offset ) {\n AVClass * * parent = * ( AVClass * * * ) ( ( ( uint8_t * ) ptr ) + avc -> parent_log_context_offset ) ;\n if ( parent && * parent ) {\n log_buffer [ log_buffer_size ] . parent_name = av_strdup ( ( * parent ) -> item_name ( parent ) ) ;\n log_buffer [ log_buffer_size ] . parent_category = ( * parent ) -> get_category ? ( * parent ) -> get_category ( parent ) : ( * parent ) -> category ;\n }\n }\n log_buffer_size ++ ;\n }\n pthread_mutex_unlock ( & log_mutex ) ;\n # endif }"}
{"idx": 15892, "target": 0, "func": "SPL_METHOD ( DirectoryIterator , getBasename ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char * suffix = 0 , * fname ;\n int slen = 0 ;\n size_t flen ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"|s\" , & suffix , & slen ) == FAILURE ) {\n return ;\n }\n php_basename ( intern -> u . dir . entry . d_name , strlen ( intern -> u . dir . entry . d_name ) , suffix , slen , & fname , & flen TSRMLS_CC ) ;\n RETURN_STRINGL ( fname , flen , 0 ) ;\n }"}
{"idx": 15893, "target": 0, "func": "static void alloc_raw_frame_buffers ( VP8_COMP * cpi ) {\n # if VP8_TEMPORAL_ALT_REF int width = ( cpi -> oxcf . Width + 15 ) & ~ 15 ;\n int height = ( cpi -> oxcf . Height + 15 ) & ~ 15 ;\n # endif cpi -> lookahead = vp8_lookahead_init ( cpi -> oxcf . Width , cpi -> oxcf . Height , cpi -> oxcf . lag_in_frames ) ;\n if ( ! cpi -> lookahead ) vpx_internal_error ( & cpi -> common . error , VPX_CODEC_MEM_ERROR , \"Failed to allocate lag buffers\" ) ;\n # if VP8_TEMPORAL_ALT_REF if ( vp8_yv12_alloc_frame_buffer ( & cpi -> alt_ref_buffer , width , height , VP8BORDERINPIXELS ) ) vpx_internal_error ( & cpi -> common . error , VPX_CODEC_MEM_ERROR , \"Failed to allocate altref buffer\" ) ;\n # endif }"}
{"idx": 15894, "target": 0, "func": "fz_colorspace * fz_default_cmyk ( fz_context * ctx , const fz_default_colorspaces * default_cs ) {\n if ( default_cs ) return default_cs -> cmyk ;\n else return fz_device_cmyk ( ctx ) ;\n }"}
{"idx": 15895, "target": 0, "func": "void vp9_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint8_t * dst , ptrdiff_t stride , const uint8_t * above , const uint8_t * left ) {\n type ## _predictor ( dst , stride , size , above , left ) ;\n }\n # if CONFIG_VP9_HIGHBITDEPTH # define intra_pred_high_sized ( type , size ) void vp9_high_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint16_t * dst , ptrdiff_t stride , const uint16_t * above , const uint16_t * left , int bd ) {\n high_ ## type ## _predictor ( dst , stride , size , above , left , bd ) ;\n }\n # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) intra_pred_high_sized ( type , 4 ) intra_pred_high_sized ( type , 8 ) intra_pred_high_sized ( type , 16 ) intra_pred_high_sized ( type , 32 ) # else # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) # endif # if CONFIG_VP9_HIGHBITDEPTH static INLINE void high_d207_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) above ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) {\n dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n }\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) {\n dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n }\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n }\n static INLINE void high_d63_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) {\n dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n }\n dst += stride ;\n }\n }\n static INLINE void high_d45_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) {\n dst [ c ] = r + c + 2 < bs * 2 ? ROUND_POWER_OF_TWO ( above [ r + c ] + above [ r + c + 1 ] * 2 + above [ r + c + 2 ] , 2 ) : above [ bs * 2 - 1 ] ;\n }\n dst += stride ;\n }\n }\n static INLINE void high_d117_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] , 1 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 3 ;\n r < bs ;\n ++ r ) dst [ ( r - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ r - 3 ] + left [ r - 2 ] * 2 + left [ r - 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - 2 * stride + c - 1 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_d135_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - stride + c - 1 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_d153_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] , 1 ) ;\n for ( r = 1 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 1 ] + left [ r ] , 1 ) ;\n dst ++ ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] * 2 + above [ c + 1 ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = dst [ - stride + c - 2 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_v_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memcpy ( dst , above , bs * sizeof ( uint16_t ) ) ;\n dst += stride ;\n }\n }\n static INLINE void high_h_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) above ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , left [ r ] , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_tm_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n int ytop_left = above [ - 1 ] ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = clip_pixel_high ( left [ r ] + above [ c ] - ytop_left , bd ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_128_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) above ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , 128 << ( bd - 8 ) , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_left_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) above ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += left [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_top_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) left ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += above [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n const int count = 2 * bs ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) {\n sum += above [ i ] ;\n sum += left [ i ] ;\n }\n expected_dc = ( sum + ( count >> 1 ) ) / count ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n # endif static INLINE void d207_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n intra_pred_allsizes ( d207 ) static INLINE void d63_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d63 ) static INLINE void d45_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r + c + 2 < bs * 2 ? ROUND_POWER_OF_TWO ( above [ r + c ] + above [ r + c + 1 ] * 2 + above [ r + c + 2 ] , 2 ) : above [ bs * 2 - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d45 ) static INLINE void d117_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] , 1 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 3 ;\n r < bs ;\n ++ r ) dst [ ( r - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ r - 3 ] + left [ r - 2 ] * 2 + left [ r - 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - 2 * stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d117 )"}
{"idx": 15896, "target": 0, "func": "static YYSIZE_T yystrlen ( const char * yystr ) # else static YYSIZE_T yystrlen ( yystr ) const char * yystr ;\n # endif {\n YYSIZE_T yylen ;\n for ( yylen = 0 ;\n yystr [ yylen ] ;\n yylen ++ ) continue ;\n return yylen ;\n }"}
{"idx": 15897, "target": 0, "func": "int vp9_get_switchable_rate ( const VP9_COMP * cpi ) {\n const MACROBLOCKD * const xd = & cpi -> mb . e_mbd ;\n const MB_MODE_INFO * const mbmi = & xd -> mi [ 0 ] . src_mi -> mbmi ;\n const int ctx = vp9_get_pred_context_switchable_interp ( xd ) ;\n return SWITCHABLE_INTERP_RATE_FACTOR * cpi -> switchable_interp_costs [ ctx ] [ mbmi -> interp_filter ] ;\n }"}
{"idx": 15898, "target": 0, "func": "static char * default_opaque_binary_tag ( tvbuff_t * tvb , guint32 offset , guint8 token _U_ , guint8 codepage _U_ , guint32 * length ) {\n guint32 data_len = tvb_get_guintvar ( tvb , offset , length ) ;\n char * str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"(%d bytes of opaque data)\" , data_len ) ;\n * length += data_len ;\n return str ;\n }"}
{"idx": 15899, "target": 0, "func": "static guint prefix_hash ( gconstpointer key ) {\n gchar * copy = g_strdup ( ( const gchar * ) key ) ;\n gchar * c = copy ;\n guint tmp ;\n for ( ;\n * c ;\n c ++ ) {\n if ( * c == '.' ) {\n * c = 0 ;\n break ;\n }\n }\n tmp = g_str_hash ( copy ) ;\n g_free ( copy ) ;\n return tmp ;\n }"}
{"idx": 15900, "target": 0, "func": "int test_rshift ( BIO * bp , BN_CTX * ctx ) {\n BIGNUM * a , * b , * c , * d , * e ;\n int i ;\n a = BN_new ( ) ;\n b = BN_new ( ) ;\n c = BN_new ( ) ;\n d = BN_new ( ) ;\n e = BN_new ( ) ;\n BN_one ( c ) ;\n BN_bntest_rand ( a , 200 , 0 , 0 ) ;\n a -> neg = rand_neg ( ) ;\n for ( i = 0 ;\n i < num0 ;\n i ++ ) {\n BN_rshift ( b , a , i + 1 ) ;\n BN_add ( c , c , c ) ;\n if ( bp != NULL ) {\n if ( ! results ) {\n BN_print ( bp , a ) ;\n BIO_puts ( bp , \" / \" ) ;\n BN_print ( bp , c ) ;\n BIO_puts ( bp , \" - \" ) ;\n }\n BN_print ( bp , b ) ;\n BIO_puts ( bp , \"\\n\" ) ;\n }\n BN_div ( d , e , a , c , ctx ) ;\n BN_sub ( d , d , b ) ;\n if ( ! BN_is_zero ( d ) ) {\n fprintf ( stderr , \"Right shift test failed!\\n\" ) ;\n return 0 ;\n }\n }\n BN_free ( a ) ;\n BN_free ( b ) ;\n BN_free ( c ) ;\n BN_free ( d ) ;\n BN_free ( e ) ;\n return ( 1 ) ;\n }"}
{"idx": 15901, "target": 0, "func": "static void test_bug4026 ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND my_bind [ 2 ] ;\n MYSQL_TIME time_in , time_out ;\n MYSQL_TIME datetime_in , datetime_out ;\n const char * stmt_text ;\n int rc ;\n myheader ( \"test_bug4026\" ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n stmt_text = \"SELECT ?, ?\" ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt , rc ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n memset ( & time_in , 0 , sizeof ( time_in ) ) ;\n memset ( & time_out , 0 , sizeof ( time_out ) ) ;\n memset ( & datetime_in , 0 , sizeof ( datetime_in ) ) ;\n memset ( & datetime_out , 0 , sizeof ( datetime_out ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_TIME ;\n my_bind [ 0 ] . buffer = ( void * ) & time_in ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_DATETIME ;\n my_bind [ 1 ] . buffer = ( void * ) & datetime_in ;\n time_in . hour = 23 ;\n time_in . minute = 59 ;\n time_in . second = 59 ;\n time_in . second_part = 123456 ;\n time_in . time_type = MYSQL_TIMESTAMP_TIME ;\n datetime_in = time_in ;\n datetime_in . year = 2003 ;\n datetime_in . month = 12 ;\n datetime_in . day = 31 ;\n datetime_in . time_type = MYSQL_TIMESTAMP_DATETIME ;\n mysql_stmt_bind_param ( stmt , my_bind ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n my_bind [ 0 ] . buffer = ( void * ) & time_out ;\n my_bind [ 1 ] . buffer = ( void * ) & datetime_out ;\n mysql_stmt_bind_result ( stmt , my_bind ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == 0 ) ;\n if ( ! opt_silent ) {\n printf ( \"%d:%d:%d.%lu\\n\" , time_out . hour , time_out . minute , time_out . second , time_out . second_part ) ;\n printf ( \"%d-%d-%d %d:%d:%d.%lu\\n\" , datetime_out . year , datetime_out . month , datetime_out . day , datetime_out . hour , datetime_out . minute , datetime_out . second , datetime_out . second_part ) ;\n }\n DIE_UNLESS ( memcmp ( & time_in , & time_out , sizeof ( time_in ) ) == 0 ) ;\n DIE_UNLESS ( memcmp ( & datetime_in , & datetime_out , sizeof ( datetime_in ) ) == 0 ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 15902, "target": 0, "func": "void vmxnet_tx_pkt_build_vheader ( struct VmxnetTxPkt * pkt , bool tso_enable , bool csum_enable , uint32_t gso_size ) {\n struct tcp_hdr l4hdr ;\n assert ( pkt ) ;\n assert ( csum_enable || ! tso_enable ) ;\n pkt -> virt_hdr . gso_type = vmxnet_tx_pkt_get_gso_type ( pkt , tso_enable ) ;\n switch ( pkt -> virt_hdr . gso_type & ~ VIRTIO_NET_HDR_GSO_ECN ) {\n case VIRTIO_NET_HDR_GSO_NONE : pkt -> virt_hdr . hdr_len = 0 ;\n pkt -> virt_hdr . gso_size = 0 ;\n break ;\n case VIRTIO_NET_HDR_GSO_UDP : pkt -> virt_hdr . gso_size = IP_FRAG_ALIGN_SIZE ( gso_size ) ;\n pkt -> virt_hdr . hdr_len = pkt -> hdr_len + sizeof ( struct udp_header ) ;\n break ;\n case VIRTIO_NET_HDR_GSO_TCPV4 : case VIRTIO_NET_HDR_GSO_TCPV6 : iov_to_buf ( & pkt -> vec [ VMXNET_TX_PKT_PL_START_FRAG ] , pkt -> payload_frags , 0 , & l4hdr , sizeof ( l4hdr ) ) ;\n pkt -> virt_hdr . hdr_len = pkt -> hdr_len + l4hdr . th_off * sizeof ( uint32_t ) ;\n pkt -> virt_hdr . gso_size = IP_FRAG_ALIGN_SIZE ( gso_size ) ;\n break ;\n default : g_assert_not_reached ( ) ;\n }\n if ( csum_enable ) {\n switch ( pkt -> l4proto ) {\n case IP_PROTO_TCP : pkt -> virt_hdr . flags = VIRTIO_NET_HDR_F_NEEDS_CSUM ;\n pkt -> virt_hdr . csum_start = pkt -> hdr_len ;\n pkt -> virt_hdr . csum_offset = offsetof ( struct tcp_hdr , th_sum ) ;\n break ;\n case IP_PROTO_UDP : pkt -> virt_hdr . flags = VIRTIO_NET_HDR_F_NEEDS_CSUM ;\n pkt -> virt_hdr . csum_start = pkt -> hdr_len ;\n pkt -> virt_hdr . csum_offset = offsetof ( struct udp_hdr , uh_sum ) ;\n break ;\n default : break ;\n }\n }\n }"}
{"idx": 15903, "target": 0, "func": "static void print_reconnects ( void ) {\n GSList * tmp ;\n char * tag , * next_connect ;\n int left ;\n for ( tmp = reconnects ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n RECONNECT_REC * rec = tmp -> data ;\n SERVER_CONNECT_REC * conn = rec -> conn ;\n tag = g_strdup_printf ( \"RECON-%d\" , rec -> tag ) ;\n left = rec -> next_connect - time ( NULL ) ;\n next_connect = g_strdup_printf ( \"%02d:%02d\" , left / 60 , left % 60 ) ;\n printformat ( NULL , NULL , MSGLEVEL_CRAP , TXT_SERVER_RECONNECT_LIST , tag , conn -> address , conn -> port , conn -> chatnet == NULL ? \"\" : conn -> chatnet , conn -> nick , next_connect ) ;\n g_free ( next_connect ) ;\n g_free ( tag ) ;\n }\n }"}
{"idx": 15904, "target": 0, "func": "MIMEField * _mime_hdr_field_list_search_by_slotnum ( MIMEHdrImpl * mh , int slotnum ) {\n unsigned int block_num , block_index ;\n MIMEFieldBlockImpl * fblock ;\n if ( slotnum < MIME_FIELD_BLOCK_SLOTS ) {\n fblock = & ( mh -> m_first_fblock ) ;\n block_index = slotnum ;\n if ( block_index >= fblock -> m_freetop ) {\n return nullptr ;\n }\n else {\n return & ( fblock -> m_field_slots [ block_index ] ) ;\n }\n }\n else {\n block_num = slotnum / MIME_FIELD_BLOCK_SLOTS ;\n block_index = slotnum % MIME_FIELD_BLOCK_SLOTS ;\n fblock = & ( mh -> m_first_fblock ) ;\n while ( block_num -- && fblock ) {\n fblock = fblock -> m_next ;\n }\n if ( ( fblock == nullptr ) || ( block_index >= fblock -> m_freetop ) ) {\n return nullptr ;\n }\n else {\n return & ( fblock -> m_field_slots [ block_index ] ) ;\n }\n }\n }"}
{"idx": 15905, "target": 0, "func": "static guint16 de_tp_pdu_description ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n guint16 value ;\n curr_offset = offset ;\n value = tvb_get_ntohs ( tvb , curr_offset ) ;\n curr_offset += 2 ;\n if ( value & 0x8000 ) {\n if ( ( value & 0xfff ) == 0 ) proto_tree_add_uint_format_value ( tree , hf_gsm_a_dtap_tp_pdu_description , tvb , curr_offset , 2 , value , \"Infinite number of PDUs to be transmitted in the TBF\" ) ;\n else proto_tree_add_uint_format_value ( tree , hf_gsm_a_dtap_tp_pdu_description , tvb , curr_offset , 2 , value & 0xfff , \"%d PDUs to be transmitted in the TBF\" , value & 0xfff ) ;\n }\n else proto_tree_add_uint_format_value ( tree , hf_gsm_a_dtap_tp_pdu_description , tvb , curr_offset , 2 , value , \"reserved\" ) ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 15906, "target": 0, "func": "void ff_vdpau_add_data_chunk ( uint8_t * data , const uint8_t * buf , int buf_size ) {\n struct vdpau_render_state * render = ( struct vdpau_render_state * ) data ;\n assert ( render ) ;\n render -> bitstream_buffers = av_fast_realloc ( render -> bitstream_buffers , & render -> bitstream_buffers_allocated , sizeof ( * render -> bitstream_buffers ) * ( render -> bitstream_buffers_used + 1 ) ) ;\n render -> bitstream_buffers [ render -> bitstream_buffers_used ] . struct_version = VDP_BITSTREAM_BUFFER_VERSION ;\n render -> bitstream_buffers [ render -> bitstream_buffers_used ] . bitstream = buf ;\n render -> bitstream_buffers [ render -> bitstream_buffers_used ] . bitstream_bytes = buf_size ;\n render -> bitstream_buffers_used ++ ;\n }"}
{"idx": 15907, "target": 1, "func": "static VALUE ossl_x509name_cmp ( VALUE self , VALUE other ) {\n int result ;\n result = ossl_x509name_cmp0 ( self , other ) ;\n if ( result < 0 ) return INT2FIX ( - 1 ) ;\n if ( result > 1 ) return INT2FIX ( 1 ) ;\n return INT2FIX ( 0 ) ;\n }"}
{"idx": 15908, "target": 1, "func": "GType hb_gobject_ ## name ## _get_type ( void ) \\ {\n static gsize type_id = 0 ;\n if ( g_once_init_enter ( & type_id ) ) {\n GType id = g_boxed_type_register_static ( g_intern_static_string ( \"hb_\" # name \"_t\" ) , ( GBoxedCopyFunc ) copy_func , ( GBoxedFreeFunc ) free_func ) ;\n g_once_init_leave ( & type_id , id ) ;\n }\n return type_id ;\n \\ }\n # define HB_DEFINE_OBJECT_TYPE ( name ) HB_DEFINE_BOXED_TYPE ( name , hb_ ## name ## _reference , hb_ ## name ## _destroy ) ;\n HB_DEFINE_OBJECT_TYPE ( buffer ) HB_DEFINE_OBJECT_TYPE ( blob ) HB_DEFINE_OBJECT_TYPE ( face ) HB_DEFINE_OBJECT_TYPE ( font ) HB_DEFINE_OBJECT_TYPE ( font_funcs ) HB_DEFINE_OBJECT_TYPE ( set ) HB_DEFINE_OBJECT_TYPE ( shape_plan ) HB_DEFINE_OBJECT_TYPE ( unicode_funcs ) static hb_feature_t * feature_reference ( hb_feature_t * g ) {\n hb_feature_t * c = ( hb_feature_t * ) calloc ( 1 , sizeof ( hb_feature_t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * g ;\n return c ;\n }\n static void feature_destroy ( hb_feature_t * g ) {\n free ( g ) ;\n }\n HB_DEFINE_BOXED_TYPE ( feature , feature_reference , feature_destroy ) static hb_glyph_info_t * glyph_info_reference ( hb_glyph_info_t * g ) {\n hb_glyph_info_t * c = ( hb_glyph_info_t * ) calloc ( 1 , sizeof ( hb_glyph_info_t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * g ;\n return c ;\n }\n static void glyph_info_destroy ( hb_glyph_info_t * g ) {\n free ( g ) ;\n }\n HB_DEFINE_BOXED_TYPE ( glyph_info , glyph_info_reference , glyph_info_destroy )"}
{"idx": 15909, "target": 0, "func": "static void pdf_run_cm ( fz_context * ctx , pdf_processor * proc , float a , float b , float c , float d , float e , float f ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_gstate * gstate = pdf_flush_text ( ctx , pr ) ;\n fz_matrix m ;\n m . a = a ;\n m . b = b ;\n m . c = c ;\n m . d = d ;\n m . e = e ;\n m . f = f ;\n fz_concat ( & gstate -> ctm , & m , & gstate -> ctm ) ;\n }"}
{"idx": 15910, "target": 0, "func": "static int for_pos_int_continue ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n register es_ptr ep = esp ;\n int var = ep [ - 3 ] . value . intval ;\n if ( var > ep [ - 1 ] . value . intval ) {\n esp -= 5 ;\n return o_pop_estack ;\n }\n push ( 1 ) ;\n make_int ( op , var ) ;\n ep [ - 3 ] . value . intval = var + ep [ - 2 ] . value . intval ;\n ref_assign_inline ( ep + 2 , ep ) ;\n esp = ep + 2 ;\n return o_push_estack ;\n }"}
{"idx": 15911, "target": 0, "func": "void * hb_shape_plan_get_user_data ( hb_shape_plan_t * shape_plan , hb_user_data_key_t * key ) {\n return hb_object_get_user_data ( shape_plan , key ) ;\n }"}
{"idx": 15912, "target": 0, "func": "static inline uint32_t timerblock_scale ( TimerBlock * tb ) {\n return ( ( ( tb -> control >> 8 ) & 0xff ) + 1 ) * 10 ;\n }"}
{"idx": 15913, "target": 0, "func": "static gboolean gtkui_connections_scroll ( gpointer data ) {\n gint * type = data ;\n if ( type == NULL ) return FALSE ;\n if ( * type == 1 && textview1 && endmark1 && textview2 && endmark2 ) {\n gtk_text_view_scroll_to_mark ( GTK_TEXT_VIEW ( textview1 ) , endmark1 , 0 , FALSE , 0 , 0 ) ;\n gtk_text_view_scroll_to_mark ( GTK_TEXT_VIEW ( textview2 ) , endmark2 , 0 , FALSE , 0 , 0 ) ;\n }\n else if ( textview3 && endmark3 ) {\n gtk_text_view_scroll_to_mark ( GTK_TEXT_VIEW ( textview3 ) , endmark3 , 0 , FALSE , 0 , 0 ) ;\n }\n return ( FALSE ) ;\n }"}
{"idx": 15914, "target": 1, "func": "const char * SSL_state_string ( const SSL * s ) {\n const char * str ;\n switch ( s -> state ) {\n case SSL_ST_BEFORE : str = \"PINIT \" ;\n break ;\n case SSL_ST_ACCEPT : str = \"AINIT \" ;\n break ;\n case SSL_ST_CONNECT : str = \"CINIT \" ;\n break ;\n case SSL_ST_OK : str = \"SSLOK \" ;\n break ;\n # ifndef OPENSSL_NO_SSL2 case SSL2_ST_CLIENT_START_ENCRYPTION : str = \"2CSENC\" ;\n break ;\n case SSL2_ST_SERVER_START_ENCRYPTION : str = \"2SSENC\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_HELLO_A : str = \"2SCH_A\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_HELLO_B : str = \"2SCH_B\" ;\n break ;\n case SSL2_ST_GET_SERVER_HELLO_A : str = \"2GSH_A\" ;\n break ;\n case SSL2_ST_GET_SERVER_HELLO_B : str = \"2GSH_B\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_MASTER_KEY_A : str = \"2SCMKA\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_MASTER_KEY_B : str = \"2SCMKB\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_FINISHED_A : str = \"2SCF_A\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_FINISHED_B : str = \"2SCF_B\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_CERTIFICATE_A : str = \"2SCC_A\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_CERTIFICATE_B : str = \"2SCC_B\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_CERTIFICATE_C : str = \"2SCC_C\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_CERTIFICATE_D : str = \"2SCC_D\" ;\n break ;\n case SSL2_ST_GET_SERVER_VERIFY_A : str = \"2GSV_A\" ;\n break ;\n case SSL2_ST_GET_SERVER_VERIFY_B : str = \"2GSV_B\" ;\n break ;\n case SSL2_ST_GET_SERVER_FINISHED_A : str = \"2GSF_A\" ;\n break ;\n case SSL2_ST_GET_SERVER_FINISHED_B : str = \"2GSF_B\" ;\n break ;\n case SSL2_ST_GET_CLIENT_HELLO_A : str = \"2GCH_A\" ;\n break ;\n case SSL2_ST_GET_CLIENT_HELLO_B : str = \"2GCH_B\" ;\n break ;\n case SSL2_ST_GET_CLIENT_HELLO_C : str = \"2GCH_C\" ;\n break ;\n case SSL2_ST_SEND_SERVER_HELLO_A : str = \"2SSH_A\" ;\n break ;\n case SSL2_ST_SEND_SERVER_HELLO_B : str = \"2SSH_B\" ;\n break ;\n case SSL2_ST_GET_CLIENT_MASTER_KEY_A : str = \"2GCMKA\" ;\n break ;\n case SSL2_ST_GET_CLIENT_MASTER_KEY_B : str = \"2GCMKA\" ;\n break ;\n case SSL2_ST_SEND_SERVER_VERIFY_A : str = \"2SSV_A\" ;\n break ;\n case SSL2_ST_SEND_SERVER_VERIFY_B : str = \"2SSV_B\" ;\n break ;\n case SSL2_ST_SEND_SERVER_VERIFY_C : str = \"2SSV_C\" ;\n break ;\n case SSL2_ST_GET_CLIENT_FINISHED_A : str = \"2GCF_A\" ;\n break ;\n case SSL2_ST_GET_CLIENT_FINISHED_B : str = \"2GCF_B\" ;\n break ;\n case SSL2_ST_SEND_SERVER_FINISHED_A : str = \"2SSF_A\" ;\n break ;\n case SSL2_ST_SEND_SERVER_FINISHED_B : str = \"2SSF_B\" ;\n break ;\n case SSL2_ST_SEND_REQUEST_CERTIFICATE_A : str = \"2SRC_A\" ;\n break ;\n case SSL2_ST_SEND_REQUEST_CERTIFICATE_B : str = \"2SRC_B\" ;\n break ;\n case SSL2_ST_SEND_REQUEST_CERTIFICATE_C : str = \"2SRC_C\" ;\n break ;\n case SSL2_ST_SEND_REQUEST_CERTIFICATE_D : str = \"2SRC_D\" ;\n break ;\n case SSL2_ST_X509_GET_SERVER_CERTIFICATE : str = \"2X9GSC\" ;\n break ;\n case SSL2_ST_X509_GET_CLIENT_CERTIFICATE : str = \"2X9GCC\" ;\n break ;\n # endif # ifndef OPENSSL_NO_SSL3 case SSL3_ST_SW_FLUSH : case SSL3_ST_CW_FLUSH : str = \"3FLUSH\" ;\n break ;\n case SSL3_ST_CW_CLNT_HELLO_A : str = \"3WCH_A\" ;\n break ;\n case SSL3_ST_CW_CLNT_HELLO_B : str = \"3WCH_B\" ;\n break ;\n case SSL3_ST_CR_SRVR_HELLO_A : str = \"3RSH_A\" ;\n break ;\n case SSL3_ST_CR_SRVR_HELLO_B : str = \"3RSH_B\" ;\n break ;\n case SSL3_ST_CR_CERT_A : str = \"3RSC_A\" ;\n break ;\n case SSL3_ST_CR_CERT_B : str = \"3RSC_B\" ;\n break ;\n case SSL3_ST_CR_KEY_EXCH_A : str = \"3RSKEA\" ;\n break ;\n case SSL3_ST_CR_KEY_EXCH_B : str = \"3RSKEB\" ;\n break ;\n case SSL3_ST_CR_CERT_REQ_A : str = \"3RCR_A\" ;\n break ;\n case SSL3_ST_CR_CERT_REQ_B : str = \"3RCR_B\" ;\n break ;\n case SSL3_ST_CR_SRVR_DONE_A : str = \"3RSD_A\" ;\n break ;\n case SSL3_ST_CR_SRVR_DONE_B : str = \"3RSD_B\" ;\n break ;\n case SSL3_ST_CW_CERT_A : str = \"3WCC_A\" ;\n break ;\n case SSL3_ST_CW_CERT_B : str = \"3WCC_B\" ;\n break ;\n case SSL3_ST_CW_CERT_C : str = \"3WCC_C\" ;\n break ;\n case SSL3_ST_CW_CERT_D : str = \"3WCC_D\" ;\n break ;\n case SSL3_ST_CW_KEY_EXCH_A : str = \"3WCKEA\" ;\n break ;\n case SSL3_ST_CW_KEY_EXCH_B : str = \"3WCKEB\" ;\n break ;\n case SSL3_ST_CW_CERT_VRFY_A : str = \"3WCV_A\" ;\n break ;\n case SSL3_ST_CW_CERT_VRFY_B : str = \"3WCV_B\" ;\n break ;\n case SSL3_ST_SW_CHANGE_A : case SSL3_ST_CW_CHANGE_A : str = \"3WCCSA\" ;\n break ;\n case SSL3_ST_SW_CHANGE_B : case SSL3_ST_CW_CHANGE_B : str = \"3WCCSB\" ;\n break ;\n case SSL3_ST_SW_FINISHED_A : case SSL3_ST_CW_FINISHED_A : str = \"3WFINA\" ;\n break ;\n case SSL3_ST_SW_FINISHED_B : case SSL3_ST_CW_FINISHED_B : str = \"3WFINB\" ;\n break ;\n case SSL3_ST_SR_CHANGE_A : case SSL3_ST_CR_CHANGE_A : str = \"3RCCSA\" ;\n break ;\n case SSL3_ST_SR_CHANGE_B : case SSL3_ST_CR_CHANGE_B : str = \"3RCCSB\" ;\n break ;\n case SSL3_ST_SR_FINISHED_A : case SSL3_ST_CR_FINISHED_A : str = \"3RFINA\" ;\n break ;\n case SSL3_ST_SR_FINISHED_B : case SSL3_ST_CR_FINISHED_B : str = \"3RFINB\" ;\n break ;\n case SSL3_ST_SW_HELLO_REQ_A : str = \"3WHR_A\" ;\n break ;\n case SSL3_ST_SW_HELLO_REQ_B : str = \"3WHR_B\" ;\n break ;\n case SSL3_ST_SW_HELLO_REQ_C : str = \"3WHR_C\" ;\n break ;\n case SSL3_ST_SR_CLNT_HELLO_A : str = \"3RCH_A\" ;\n break ;\n case SSL3_ST_SR_CLNT_HELLO_B : str = \"3RCH_B\" ;\n break ;\n case SSL3_ST_SR_CLNT_HELLO_C : str = \"3RCH_C\" ;\n break ;\n case SSL3_ST_SW_SRVR_HELLO_A : str = \"3WSH_A\" ;\n break ;\n case SSL3_ST_SW_SRVR_HELLO_B : str = \"3WSH_B\" ;\n break ;\n case SSL3_ST_SW_CERT_A : str = \"3WSC_A\" ;\n break ;\n case SSL3_ST_SW_CERT_B : str = \"3WSC_B\" ;\n break ;\n case SSL3_ST_SW_KEY_EXCH_A : str = \"3WSKEA\" ;\n break ;\n case SSL3_ST_SW_KEY_EXCH_B : str = \"3WSKEB\" ;\n break ;\n case SSL3_ST_SW_CERT_REQ_A : str = \"3WCR_A\" ;\n break ;\n case SSL3_ST_SW_CERT_REQ_B : str = \"3WCR_B\" ;\n break ;\n case SSL3_ST_SW_SRVR_DONE_A : str = \"3WSD_A\" ;\n break ;\n case SSL3_ST_SW_SRVR_DONE_B : str = \"3WSD_B\" ;\n break ;\n case SSL3_ST_SR_CERT_A : str = \"3RCC_A\" ;\n break ;\n case SSL3_ST_SR_CERT_B : str = \"3RCC_B\" ;\n break ;\n case SSL3_ST_SR_KEY_EXCH_A : str = \"3RCKEA\" ;\n break ;\n case SSL3_ST_SR_KEY_EXCH_B : str = \"3RCKEB\" ;\n break ;\n case SSL3_ST_SR_CERT_VRFY_A : str = \"3RCV_A\" ;\n break ;\n case SSL3_ST_SR_CERT_VRFY_B : str = \"3RCV_B\" ;\n break ;\n # endif case SSL23_ST_CW_CLNT_HELLO_A : str = \"23WCHA\" ;\n break ;\n case SSL23_ST_CW_CLNT_HELLO_B : str = \"23WCHB\" ;\n break ;\n case SSL23_ST_CR_SRVR_HELLO_A : str = \"23RSHA\" ;\n break ;\n case SSL23_ST_CR_SRVR_HELLO_B : str = \"23RSHA\" ;\n break ;\n case SSL23_ST_SR_CLNT_HELLO_A : str = \"23RCHA\" ;\n break ;\n case SSL23_ST_SR_CLNT_HELLO_B : str = \"23RCHB\" ;\n break ;\n case DTLS1_ST_CR_HELLO_VERIFY_REQUEST_A : str = \"DRCHVA\" ;\n break ;\n case DTLS1_ST_CR_HELLO_VERIFY_REQUEST_B : str = \"DRCHVB\" ;\n break ;\n case DTLS1_ST_SW_HELLO_VERIFY_REQUEST_A : str = \"DWCHVA\" ;\n break ;\n case DTLS1_ST_SW_HELLO_VERIFY_REQUEST_B : str = \"DWCHVB\" ;\n break ;\n default : str = \"UNKWN \" ;\n break ;\n }\n return ( str ) ;\n }"}
{"idx": 15915, "target": 1, "func": "TEST_F ( ScoredHistoryMatchTest , ScoringScheme ) {\n base : : Time now = base : : Time : : NowFromSystemTime ( ) ;\n std : : string url_string ( \"http://fedcba/\" ) ;\n const GURL url ( url_string ) ;\n history : : URLRow row ( MakeURLRow ( url_string . c_str ( ) , \"\" , 8 , 3 , 1 ) ) ;\n RowWordStarts word_starts ;\n PopulateWordStarts ( row , & word_starts ) ;\n WordStarts two_words_no_offsets ( 2 , 0u ) ;\n VisitInfoVector visits = CreateVisitInfoVector ( 8 , 3 , now ) ;\n ScoredHistoryMatch scored ( row , visits , std : : string ( ) , ASCIIToUTF16 ( \"fed http\" ) , Make2Terms ( \"fed\" , \"http\" ) , two_words_no_offsets , word_starts , false , nullptr , now ) ;\n EXPECT_EQ ( 0 , scored . raw_score ) ;\n base : : AutoReset < bool > reset ( & ScoredHistoryMatch : : allow_scheme_matches_ , true ) ;\n ScoredHistoryMatch scored_with_scheme ( row , visits , std : : string ( ) , ASCIIToUTF16 ( \"fed http\" ) , Make2Terms ( \"fed\" , \"http\" ) , two_words_no_offsets , word_starts , false , nullptr , now ) ;\n EXPECT_GT ( scored_with_scheme . raw_score , 0 ) ;\n }"}
{"idx": 15916, "target": 0, "func": "static void redoloca ( struct alltabs * at ) {\n int i ;\n at -> loca = tmpfile ( ) ;\n if ( at -> head . locais32 ) {\n for ( i = 0 ;\n i <= at -> maxp . numGlyphs ;\n ++ i ) putlong ( at -> loca , at -> gi . loca [ i ] ) ;\n at -> localen = sizeof ( int32 ) * ( at -> maxp . numGlyphs + 1 ) ;\n }\n else {\n for ( i = 0 ;\n i <= at -> maxp . numGlyphs ;\n ++ i ) putshort ( at -> loca , at -> gi . loca [ i ] / 2 ) ;\n at -> localen = sizeof ( int16 ) * ( at -> maxp . numGlyphs + 1 ) ;\n if ( ftell ( at -> loca ) & 2 ) putshort ( at -> loca , 0 ) ;\n }\n if ( at -> format != ff_type42 && at -> format != ff_type42cid ) {\n free ( at -> gi . loca ) ;\n at -> gi . loca = NULL ;\n }\n }"}
{"idx": 15917, "target": 1, "func": "static void show_object ( struct object * obj , const struct name_path * path , const char * component , void * cb_data ) {\n struct rev_list_info * info = cb_data ;\n finish_object ( obj , path , component , cb_data ) ;\n if ( info -> flags & REV_LIST_QUIET ) return ;\n show_object_with_name ( stdout , obj , path , component ) ;\n }"}
{"idx": 15918, "target": 0, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL )"}
{"idx": 15919, "target": 0, "func": "static void test_bug38486 ( void ) {\n MYSQL_STMT * stmt ;\n const char * stmt_text ;\n unsigned long type = CURSOR_TYPE_READ_ONLY ;\n DBUG_ENTER ( \"test_bug38486\" ) ;\n myheader ( \"test_bug38486\" ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n mysql_stmt_attr_set ( stmt , STMT_ATTR_CURSOR_TYPE , ( void * ) & type ) ;\n stmt_text = \"CREATE TABLE t1 (a INT)\" ;\n mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n mysql_stmt_execute ( stmt ) ;\n mysql_stmt_close ( stmt ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n mysql_stmt_attr_set ( stmt , STMT_ATTR_CURSOR_TYPE , ( void * ) & type ) ;\n stmt_text = \"INSERT INTO t1 VALUES (1)\" ;\n mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n mysql_stmt_execute ( stmt ) ;\n mysql_stmt_close ( stmt ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 15920, "target": 0, "func": "static inline guint32 gst_asf_demux_identify_guid ( const ASFGuidHash * guids , ASFGuid * guid ) {\n guint32 ret ;\n ret = gst_asf_identify_guid ( guids , guid ) ;\n GST_LOG ( \"%s 0x%08x-0x%08x-0x%08x-0x%08x\" , gst_asf_get_guid_nick ( guids , ret ) , guid -> v1 , guid -> v2 , guid -> v3 , guid -> v4 ) ;\n return ret ;\n }"}
{"idx": 15921, "target": 0, "func": "static unsigned int dtls1_link_min_mtu ( void ) {\n return ( g_probable_mtu [ ( sizeof ( g_probable_mtu ) / sizeof ( g_probable_mtu [ 0 ] ) ) - 1 ] ) ;\n }"}
{"idx": 15922, "target": 0, "func": "static void _slurm_rpc_get_fed ( slurm_msg_t * msg ) {\n DEF_TIMERS ;\n slurm_msg_t response_msg ;\n slurmctld_lock_t fed_read_lock = {\n NO_LOCK , NO_LOCK , NO_LOCK , NO_LOCK , READ_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n START_TIMER ;\n debug2 ( \"Processing RPC: REQUEST_FED_INFO from uid=%d\" , uid ) ;\n lock_slurmctld ( fed_read_lock ) ;\n slurm_msg_t_init ( & response_msg ) ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . address = msg -> address ;\n response_msg . conn = msg -> conn ;\n response_msg . msg_type = RESPONSE_FED_INFO ;\n response_msg . data = fed_mgr_fed_rec ;\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n unlock_slurmctld ( fed_read_lock ) ;\n END_TIMER2 ( \"_slurm_rpc_get_fed\" ) ;\n debug2 ( \"%s %s\" , __func__ , TIME_STR ) ;\n }"}
{"idx": 15923, "target": 0, "func": "static void _tiffDummyUnmapProc ( thandle_t fd , void * base , toff_t size ) {\n ( void ) fd ;\n ( void ) base ;\n ( void ) size ;\n }"}
{"idx": 15924, "target": 0, "func": "static void pk_transaction_get_details ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) {\n gboolean ret ;\n guint length ;\n g_autofree gchar * * package_ids = NULL ;\n g_autoptr ( GError ) error = NULL ;\n g_autofree gchar * package_ids_temp = NULL ;\n g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;\n g_return_if_fail ( transaction -> priv -> tid != NULL ) ;\n g_variant_get ( params , \"(^a&s)\" , & package_ids ) ;\n package_ids_temp = pk_package_ids_to_string ( package_ids ) ;\n g_debug ( \"GetDetails method called: %s\" , package_ids_temp ) ;\n if ( ! pk_backend_is_implemented ( transaction -> priv -> backend , PK_ROLE_ENUM_GET_DETAILS ) ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NOT_SUPPORTED , \"GetDetails not supported by backend\" ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n length = g_strv_length ( package_ids ) ;\n if ( length > PK_TRANSACTION_MAX_PACKAGES_TO_PROCESS ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NUMBER_OF_PACKAGES_INVALID , \"Too many packages to process (%i/%i)\" , length , PK_TRANSACTION_MAX_PACKAGES_TO_PROCESS ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n ret = pk_package_ids_check ( package_ids ) ;\n if ( ! ret ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_PACKAGE_ID_INVALID , \"The package id's '%s' are not valid\" , package_ids_temp ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n transaction -> priv -> cached_package_ids = g_strdupv ( package_ids ) ;\n pk_transaction_set_role ( transaction , PK_ROLE_ENUM_GET_DETAILS ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_READY ) ;\n out : pk_transaction_dbus_return ( context , error ) ;\n }"}
{"idx": 15925, "target": 0, "func": "static struct sock * __udp6_lib_lookup_skb ( struct sk_buff * skb , __be16 sport , __be16 dport , struct udp_table * udptable ) {\n struct sock * sk ;\n struct ipv6hdr * iph = ipv6_hdr ( skb ) ;\n if ( unlikely ( sk = skb_steal_sock ( skb ) ) ) return sk ;\n return __udp6_lib_lookup ( dev_net ( skb_dst ( skb ) -> dev ) , & iph -> saddr , sport , & iph -> daddr , dport , inet6_iif ( skb ) , udptable ) ;\n }"}
{"idx": 15926, "target": 0, "func": "static void rtc_write ( void * opaque , hwaddr addr , uint64_t val , unsigned size ) {\n cpu_outw ( 0x71 , val & 0xff ) ;\n }"}
{"idx": 15927, "target": 0, "func": "static int get_bin_log_name ( MYSQL * mysql_con , char * buff_log_name , uint buff_len ) {\n MYSQL_RES * res ;\n MYSQL_ROW row ;\n if ( mysql_query ( mysql_con , \"SHOW MASTER STATUS\" ) || ! ( res = mysql_store_result ( mysql ) ) ) return 1 ;\n if ( ! ( row = mysql_fetch_row ( res ) ) ) {\n mysql_free_result ( res ) ;\n return 1 ;\n }\n strmake ( buff_log_name , row [ 0 ] , buff_len - 1 ) ;\n mysql_free_result ( res ) ;\n return 0 ;\n }"}
{"idx": 15928, "target": 0, "func": "static void decode_mb_b ( AVSContext * h , enum cavs_mb mb_type ) {\n int block ;\n enum cavs_sub_mb sub_type [ 4 ] ;\n int flags ;\n ff_cavs_init_mb ( h ) ;\n h -> mv [ MV_FWD_X0 ] = ff_cavs_dir_mv ;\n set_mvs ( & h -> mv [ MV_FWD_X0 ] , BLK_16X16 ) ;\n h -> mv [ MV_BWD_X0 ] = ff_cavs_dir_mv ;\n set_mvs ( & h -> mv [ MV_BWD_X0 ] , BLK_16X16 ) ;\n switch ( mb_type ) {\n case B_SKIP : case B_DIRECT : if ( ! h -> col_type_base [ h -> mbidx ] ) {\n ff_cavs_mv ( h , MV_FWD_X0 , MV_FWD_C2 , MV_PRED_BSKIP , BLK_16X16 , 1 ) ;\n ff_cavs_mv ( h , MV_BWD_X0 , MV_BWD_C2 , MV_PRED_BSKIP , BLK_16X16 , 0 ) ;\n }\n else for ( block = 0 ;\n block < 4 ;\n block ++ ) mv_pred_direct ( h , & h -> mv [ mv_scan [ block ] ] , & h -> col_mv [ h -> mbidx * 4 + block ] ) ;\n break ;\n case B_FWD_16X16 : ff_cavs_mv ( h , MV_FWD_X0 , MV_FWD_C2 , MV_PRED_MEDIAN , BLK_16X16 , 1 ) ;\n break ;\n case B_SYM_16X16 : ff_cavs_mv ( h , MV_FWD_X0 , MV_FWD_C2 , MV_PRED_MEDIAN , BLK_16X16 , 1 ) ;\n mv_pred_sym ( h , & h -> mv [ MV_FWD_X0 ] , BLK_16X16 ) ;\n break ;\n case B_BWD_16X16 : ff_cavs_mv ( h , MV_BWD_X0 , MV_BWD_C2 , MV_PRED_MEDIAN , BLK_16X16 , 0 ) ;\n break ;\n case B_8X8 : for ( block = 0 ;\n block < 4 ;\n block ++ ) sub_type [ block ] = get_bits ( & h -> gb , 2 ) ;\n for ( block = 0 ;\n block < 4 ;\n block ++ ) {\n switch ( sub_type [ block ] ) {\n case B_SUB_DIRECT : if ( ! h -> col_type_base [ h -> mbidx ] ) {\n ff_cavs_mv ( h , mv_scan [ block ] , mv_scan [ block ] - 3 , MV_PRED_BSKIP , BLK_8X8 , 1 ) ;\n ff_cavs_mv ( h , mv_scan [ block ] + MV_BWD_OFFS , mv_scan [ block ] - 3 + MV_BWD_OFFS , MV_PRED_BSKIP , BLK_8X8 , 0 ) ;\n }\n else mv_pred_direct ( h , & h -> mv [ mv_scan [ block ] ] , & h -> col_mv [ h -> mbidx * 4 + block ] ) ;\n break ;\n case B_SUB_FWD : ff_cavs_mv ( h , mv_scan [ block ] , mv_scan [ block ] - 3 , MV_PRED_MEDIAN , BLK_8X8 , 1 ) ;\n break ;\n case B_SUB_SYM : ff_cavs_mv ( h , mv_scan [ block ] , mv_scan [ block ] - 3 , MV_PRED_MEDIAN , BLK_8X8 , 1 ) ;\n mv_pred_sym ( h , & h -> mv [ mv_scan [ block ] ] , BLK_8X8 ) ;\n break ;\n }\n }\n for ( block = 0 ;\n block < 4 ;\n block ++ ) {\n if ( sub_type [ block ] == B_SUB_BWD ) ff_cavs_mv ( h , mv_scan [ block ] + MV_BWD_OFFS , mv_scan [ block ] + MV_BWD_OFFS - 3 , MV_PRED_MEDIAN , BLK_8X8 , 0 ) ;\n }\n break ;\n default : assert ( ( mb_type > B_SYM_16X16 ) && ( mb_type < B_8X8 ) ) ;\n flags = ff_cavs_partition_flags [ mb_type ] ;\n if ( mb_type & 1 ) {\n if ( flags & FWD0 ) ff_cavs_mv ( h , MV_FWD_X0 , MV_FWD_C2 , MV_PRED_TOP , BLK_16X8 , 1 ) ;\n if ( flags & SYM0 ) mv_pred_sym ( h , & h -> mv [ MV_FWD_X0 ] , BLK_16X8 ) ;\n if ( flags & FWD1 ) ff_cavs_mv ( h , MV_FWD_X2 , MV_FWD_A1 , MV_PRED_LEFT , BLK_16X8 , 1 ) ;\n if ( flags & SYM1 ) mv_pred_sym ( h , & h -> mv [ MV_FWD_X2 ] , BLK_16X8 ) ;\n if ( flags & BWD0 ) ff_cavs_mv ( h , MV_BWD_X0 , MV_BWD_C2 , MV_PRED_TOP , BLK_16X8 , 0 ) ;\n if ( flags & BWD1 ) ff_cavs_mv ( h , MV_BWD_X2 , MV_BWD_A1 , MV_PRED_LEFT , BLK_16X8 , 0 ) ;\n }\n else {\n if ( flags & FWD0 ) ff_cavs_mv ( h , MV_FWD_X0 , MV_FWD_B3 , MV_PRED_LEFT , BLK_8X16 , 1 ) ;\n if ( flags & SYM0 ) mv_pred_sym ( h , & h -> mv [ MV_FWD_X0 ] , BLK_8X16 ) ;\n if ( flags & FWD1 ) ff_cavs_mv ( h , MV_FWD_X1 , MV_FWD_C2 , MV_PRED_TOPRIGHT , BLK_8X16 , 1 ) ;\n if ( flags & SYM1 ) mv_pred_sym ( h , & h -> mv [ MV_FWD_X1 ] , BLK_8X16 ) ;\n if ( flags & BWD0 ) ff_cavs_mv ( h , MV_BWD_X0 , MV_BWD_B3 , MV_PRED_LEFT , BLK_8X16 , 0 ) ;\n if ( flags & BWD1 ) ff_cavs_mv ( h , MV_BWD_X1 , MV_BWD_C2 , MV_PRED_TOPRIGHT , BLK_8X16 , 0 ) ;\n }\n }\n ff_cavs_inter ( h , mb_type ) ;\n set_intra_mode_default ( h ) ;\n if ( mb_type != B_SKIP ) decode_residual_inter ( h ) ;\n ff_cavs_filter ( h , mb_type ) ;\n }"}
{"idx": 15929, "target": 0, "func": "unsigned int dtls_raw_hello_verify_request ( unsigned char * buf , unsigned char * cookie , unsigned char cookie_len ) {\n unsigned int msg_len ;\n unsigned char * p ;\n p = buf ;\n * ( p ++ ) = DTLS1_VERSION >> 8 ;\n * ( p ++ ) = DTLS1_VERSION & 0xFF ;\n * ( p ++ ) = ( unsigned char ) cookie_len ;\n memcpy ( p , cookie , cookie_len ) ;\n p += cookie_len ;\n msg_len = p - buf ;\n return msg_len ;\n }"}
{"idx": 15930, "target": 0, "func": "SPL_METHOD ( SplFileObject , setFlags ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"l\" , & intern -> flags ) == FAILURE ) {\n return ;\n }\n }"}
{"idx": 15931, "target": 0, "func": "static void terminate_chunked_client ( int fd , short event , void * arg ) {\n struct terminate_state * state = arg ;\n bufferevent_free ( state -> bev ) ;\n EVUTIL_CLOSESOCKET ( state -> fd ) ;\n }"}
{"idx": 15932, "target": 0, "func": "static void ossl_x509name_free ( void * ptr ) {\n X509_NAME_free ( ptr ) ;\n }"}
{"idx": 15933, "target": 0, "func": "static zval * incomplete_class_get_property ( zval * object , zval * member , int type , const zend_literal * key TSRMLS_DC ) {\n incomplete_class_message ( object , E_NOTICE TSRMLS_CC ) ;\n if ( type == BP_VAR_W || type == BP_VAR_RW ) {\n return EG ( error_zval_ptr ) ;\n }\n else {\n return EG ( uninitialized_zval_ptr ) ;\n }\n }"}
{"idx": 15934, "target": 0, "func": "static void reindex_all_databases ( const char * maintenance_db , const char * host , const char * port , const char * username , enum trivalue prompt_password , const char * progname , bool echo , bool quiet , bool verbose ) {\n PGconn * conn ;\n PGresult * result ;\n PQExpBufferData connstr ;\n int i ;\n conn = connectMaintenanceDatabase ( maintenance_db , host , port , username , prompt_password , progname ) ;\n result = executeQuery ( conn , \"SELECT datname FROM pg_database WHERE datallowconn ORDER BY 1;\n\" , progname , echo ) ;\n PQfinish ( conn ) ;\n initPQExpBuffer ( & connstr ) ;\n for ( i = 0 ;\n i < PQntuples ( result ) ;\n i ++ ) {\n char * dbname = PQgetvalue ( result , i , 0 ) ;\n if ( ! quiet ) {\n printf ( _ ( \"%s: reindexing database \\\"%s\\\"\\n\" ) , progname , dbname ) ;\n fflush ( stdout ) ;\n }\n resetPQExpBuffer ( & connstr ) ;\n appendPQExpBuffer ( & connstr , \"dbname=\" ) ;\n appendConnStrVal ( & connstr , dbname ) ;\n reindex_one_database ( NULL , connstr . data , \"DATABASE\" , host , port , username , prompt_password , progname , echo , verbose ) ;\n }\n termPQExpBuffer ( & connstr ) ;\n PQclear ( result ) ;\n }"}
{"idx": 15935, "target": 0, "func": "static FT_Error cid_parse_dict ( CID_Face face , CID_Loader * loader , FT_Byte * base , FT_Long size ) {\n CID_Parser * parser = & loader -> parser ;\n parser -> root . cursor = base ;\n parser -> root . limit = base + size ;\n parser -> root . error = FT_Err_Ok ;\n {\n FT_Byte * cur = base ;\n FT_Byte * limit = cur + size ;\n for ( ;\n ;\n ) {\n FT_Byte * newlimit ;\n parser -> root . cursor = cur ;\n cid_parser_skip_spaces ( parser ) ;\n if ( parser -> root . cursor >= limit ) newlimit = limit - 1 - 17 ;\n else newlimit = parser -> root . cursor - 17 ;\n for ( ;\n cur < newlimit ;\n cur ++ ) {\n if ( * cur == '%' && ft_strncmp ( ( char * ) cur , \"%ADOBeginFontDict\" , 17 ) == 0 ) {\n if ( face -> cid . num_dicts > 0 ) parser -> num_dict ++ ;\n }\n }\n cur = parser -> root . cursor ;\n if ( cur >= limit ) break ;\n cid_parser_skip_PS_token ( parser ) ;\n if ( parser -> root . cursor >= limit || parser -> root . error ) break ;\n if ( * cur == '/' && cur + 2 < limit ) {\n FT_PtrDist len ;\n cur ++ ;\n len = parser -> root . cursor - cur ;\n if ( len > 0 && len < 22 ) {\n T1_Field keyword = ( T1_Field ) cid_field_records ;\n for ( ;\n ;\n ) {\n FT_Byte * name ;\n name = ( FT_Byte * ) keyword -> ident ;\n if ( ! name ) break ;\n if ( cur [ 0 ] == name [ 0 ] && len == ( FT_PtrDist ) ft_strlen ( ( const char * ) name ) ) {\n FT_PtrDist n ;\n for ( n = 1 ;\n n < len ;\n n ++ ) if ( cur [ n ] != name [ n ] ) break ;\n if ( n >= len ) {\n parser -> root . error = cid_load_keyword ( face , loader , keyword ) ;\n if ( parser -> root . error ) return parser -> root . error ;\n break ;\n }\n }\n keyword ++ ;\n }\n }\n }\n cur = parser -> root . cursor ;\n }\n }\n return parser -> root . error ;\n }"}
{"idx": 15936, "target": 0, "func": "unsigned int vp9_sub_pixel_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp2 , W , dst , dst_stride , sse ) ;\n \\ }\n # define SUBPIX_AVG_VAR ( W , H ) unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 ) VAR ( 8 , 4 ) SUBPIX_VAR ( 8 , 4 ) SUBPIX_AVG_VAR ( 8 , 4 ) VAR ( 8 , 8 ) SUBPIX_VAR ( 8 , 8 ) SUBPIX_AVG_VAR ( 8 , 8 ) VAR ( 8 , 16 ) SUBPIX_VAR ( 8 , 16 ) SUBPIX_AVG_VAR ( 8 , 16 ) VAR ( 16 , 8 ) SUBPIX_VAR ( 16 , 8 ) SUBPIX_AVG_VAR ( 16 , 8 ) VAR ( 16 , 16 ) SUBPIX_VAR ( 16 , 16 ) SUBPIX_AVG_VAR ( 16 , 16 ) VAR ( 16 , 32 ) SUBPIX_VAR ( 16 , 32 ) SUBPIX_AVG_VAR ( 16 , 32 ) VAR ( 32 , 16 ) SUBPIX_VAR ( 32 , 16 ) SUBPIX_AVG_VAR ( 32 , 16 ) VAR ( 32 , 32 ) SUBPIX_VAR ( 32 , 32 )"}
{"idx": 15937, "target": 0, "func": "static inline bool e1000e_rss_enabled ( E1000ECore * core ) {\n return E1000_MRQC_ENABLED ( core -> mac [ MRQC ] ) && ! e1000e_rx_csum_enabled ( core ) && ! e1000e_rx_use_legacy_descriptor ( core ) ;\n }"}
{"idx": 15938, "target": 0, "func": "static void U_CALLCONV T_UConverter_fromUnicode_UTF32_BE ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n const UChar * mySource = args -> source ;\n unsigned char * myTarget ;\n const UChar * sourceLimit = args -> sourceLimit ;\n const unsigned char * targetLimit = ( unsigned char * ) args -> targetLimit ;\n UChar32 ch , ch2 ;\n unsigned int indexToWrite ;\n unsigned char temp [ sizeof ( uint32_t ) ] ;\n if ( mySource >= sourceLimit ) {\n return ;\n }\n if ( args -> converter -> fromUnicodeStatus == UCNV_NEED_TO_WRITE_BOM ) {\n static const char bom [ ] = {\n 0 , 0 , ( char ) 0xfe , ( char ) 0xff }\n ;\n ucnv_fromUWriteBytes ( args -> converter , bom , 4 , & args -> target , args -> targetLimit , & args -> offsets , - 1 , err ) ;\n args -> converter -> fromUnicodeStatus = 0 ;\n }\n myTarget = ( unsigned char * ) args -> target ;\n temp [ 0 ] = 0 ;\n if ( args -> converter -> fromUChar32 ) {\n ch = args -> converter -> fromUChar32 ;\n args -> converter -> fromUChar32 = 0 ;\n goto lowsurogate ;\n }\n while ( mySource < sourceLimit && myTarget < targetLimit ) {\n ch = * ( mySource ++ ) ;\n if ( U_IS_SURROGATE ( ch ) ) {\n if ( U_IS_LEAD ( ch ) ) {\n lowsurogate : if ( mySource < sourceLimit ) {\n ch2 = * mySource ;\n if ( U_IS_TRAIL ( ch2 ) ) {\n ch = ( ( ch - SURROGATE_HIGH_START ) << HALF_SHIFT ) + ch2 + SURROGATE_LOW_BASE ;\n mySource ++ ;\n }\n else {\n args -> converter -> fromUChar32 = ch ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n }\n else {\n args -> converter -> fromUChar32 = ch ;\n if ( args -> flush ) {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n break ;\n }\n }\n else {\n args -> converter -> fromUChar32 = ch ;\n * err = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n }\n temp [ 1 ] = ( uint8_t ) ( ch >> 16 & 0x1F ) ;\n temp [ 2 ] = ( uint8_t ) ( ch >> 8 ) ;\n temp [ 3 ] = ( uint8_t ) ( ch ) ;\n for ( indexToWrite = 0 ;\n indexToWrite <= sizeof ( uint32_t ) - 1 ;\n indexToWrite ++ ) {\n if ( myTarget < targetLimit ) {\n * ( myTarget ++ ) = temp [ indexToWrite ] ;\n }\n else {\n args -> converter -> charErrorBuffer [ args -> converter -> charErrorBufferLength ++ ] = temp [ indexToWrite ] ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n }\n if ( mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS ( * err ) ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n args -> target = ( char * ) myTarget ;\n args -> source = mySource ;\n }"}
{"idx": 15939, "target": 0, "func": "MIMEHdrImpl * mime_hdr_clone ( MIMEHdrImpl * s_mh , HdrHeap * s_heap , HdrHeap * d_heap , bool inherit_strs ) {\n MIMEHdrImpl * d_mh ;\n d_mh = mime_hdr_create ( d_heap ) ;\n mime_hdr_copy_onto ( s_mh , s_heap , d_mh , d_heap , inherit_strs ) ;\n return d_mh ;\n }"}
{"idx": 15940, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( DownloadNotificationTest , DownloadMultipleFiles ) {\n GURL url1 ( net : : URLRequestSlowDownloadJob : : kUnknownSizeUrl ) ;\n GURL url2 ( net : : URLRequestSlowDownloadJob : : kKnownSizeUrl ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , url1 ) ;\n WaitForDownloadNotification ( ) ;\n auto notifications = GetDownloadNotifications ( ) ;\n ASSERT_EQ ( 1u , notifications . size ( ) ) ;\n std : : string notification_id1 = notifications [ 0 ] . id ( ) ;\n EXPECT_FALSE ( notification_id1 . empty ( ) ) ;\n std : : vector < download : : DownloadItem * > downloads ;\n GetDownloadManager ( browser ( ) ) -> GetAllDownloads ( & downloads ) ;\n ASSERT_EQ ( 1u , downloads . size ( ) ) ;\n download : : DownloadItem * download1 = downloads [ 0 ] ;\n ui_test_utils : : NavigateToURL ( browser ( ) , url2 ) ;\n WaitForDownloadNotification ( ) ;\n downloads . clear ( ) ;\n GetDownloadManager ( browser ( ) ) -> GetAllDownloads ( & downloads ) ;\n ASSERT_EQ ( 2u , downloads . size ( ) ) ;\n download : : DownloadItem * download2 ;\n if ( download1 == downloads [ 0 ] ) download2 = downloads [ 1 ] ;\n else if ( download1 == downloads [ 1 ] ) download2 = downloads [ 0 ] ;\n else NOTREACHED ( ) ;\n EXPECT_NE ( download1 , download2 ) ;\n notifications = GetDownloadNotifications ( ) ;\n EXPECT_EQ ( 2u , notifications . size ( ) ) ;\n std : : string notification_id2 ;\n for ( const auto & notification : notifications ) {\n if ( notification . id ( ) == notification_id1 ) continue ;\n notification_id2 = notification . id ( ) ;\n }\n EXPECT_FALSE ( notification_id2 . empty ( ) ) ;\n const int in_progress_priority1 = GetNotification ( notification_id1 ) -> priority ( ) ;\n const int in_progress_priority2 = GetNotification ( notification_id2 ) -> priority ( ) ;\n EXPECT_EQ ( message_center : : LOW_PRIORITY , in_progress_priority1 ) ;\n EXPECT_EQ ( message_center : : DEFAULT_PRIORITY , in_progress_priority2 ) ;\n VerifyUpdatePropagatesToNotification ( download1 ) ;\n VerifyUpdatePropagatesToNotification ( download2 ) ;\n EXPECT_EQ ( message_center : : NOTIFICATION_TYPE_PROGRESS , GetNotification ( notification_id1 ) -> type ( ) ) ;\n EXPECT_EQ ( message_center : : NOTIFICATION_TYPE_PROGRESS , GetNotification ( notification_id2 ) -> type ( ) ) ;\n CompleteTheDownload ( 2 ) ;\n notifications = GetDownloadNotifications ( ) ;\n EXPECT_EQ ( 2u , notifications . size ( ) ) ;\n ASSERT_TRUE ( GetNotification ( notification_id1 ) ) ;\n ASSERT_TRUE ( GetNotification ( notification_id2 ) ) ;\n EXPECT_GT ( GetNotification ( notification_id1 ) -> priority ( ) , in_progress_priority1 ) ;\n EXPECT_GT ( GetNotification ( notification_id2 ) -> priority ( ) , in_progress_priority2 ) ;\n EXPECT_EQ ( message_center : : NOTIFICATION_TYPE_BASE_FORMAT , GetNotification ( notification_id1 ) -> type ( ) ) ;\n EXPECT_EQ ( message_center : : NOTIFICATION_TYPE_BASE_FORMAT , GetNotification ( notification_id2 ) -> type ( ) ) ;\n }"}
{"idx": 15941, "target": 0, "func": "static int read_len_table ( uint8_t * dst , GetBitContext * gb ) {\n int i , val , repeat ;\n for ( i = 0 ;\n i < 256 ;\n ) {\n repeat = get_bits ( gb , 3 ) ;\n val = get_bits ( gb , 5 ) ;\n if ( repeat == 0 ) repeat = get_bits ( gb , 8 ) ;\n if ( i + repeat > 256 || get_bits_left ( gb ) < 0 ) {\n av_log ( NULL , AV_LOG_ERROR , \"Error reading huffman table\\n\" ) ;\n return - 1 ;\n }\n while ( repeat -- ) dst [ i ++ ] = val ;\n }\n return 0 ;\n }"}
{"idx": 15942, "target": 0, "func": "static HashTable * spl_dllist_object_get_debug_info ( zval * obj , int * is_temp TSRMLS_DC ) {\n spl_dllist_object * intern = ( spl_dllist_object * ) zend_object_store_get_object ( obj TSRMLS_CC ) ;\n spl_ptr_llist_element * current = intern -> llist -> head , * next ;\n zval * tmp , zrv , * dllist_array ;\n char * pnstr ;\n int pnlen ;\n int i = 0 ;\n * is_temp = 0 ;\n if ( intern -> debug_info == NULL ) {\n ALLOC_HASHTABLE ( intern -> debug_info ) ;\n zend_hash_init ( intern -> debug_info , 1 , NULL , ZVAL_PTR_DTOR , 0 ) ;\n }\n if ( intern -> debug_info -> nApplyCount == 0 ) {\n INIT_PZVAL ( & zrv ) ;\n Z_ARRVAL ( zrv ) = intern -> debug_info ;\n if ( ! intern -> std . properties ) {\n rebuild_object_properties ( & intern -> std ) ;\n }\n zend_hash_copy ( intern -> debug_info , intern -> std . properties , ( copy_ctor_func_t ) zval_add_ref , ( void * ) & tmp , sizeof ( zval * ) ) ;\n pnstr = spl_gen_private_prop_name ( spl_ce_SplDoublyLinkedList , \"flags\" , sizeof ( \"flags\" ) - 1 , & pnlen TSRMLS_CC ) ;\n add_assoc_long_ex ( & zrv , pnstr , pnlen + 1 , intern -> flags ) ;\n efree ( pnstr ) ;\n ALLOC_INIT_ZVAL ( dllist_array ) ;\n array_init ( dllist_array ) ;\n while ( current ) {\n next = current -> next ;\n add_index_zval ( dllist_array , i , ( zval * ) current -> data ) ;\n Z_ADDREF_P ( current -> data ) ;\n i ++ ;\n current = next ;\n }\n pnstr = spl_gen_private_prop_name ( spl_ce_SplDoublyLinkedList , \"dllist\" , sizeof ( \"dllist\" ) - 1 , & pnlen TSRMLS_CC ) ;\n add_assoc_zval_ex ( & zrv , pnstr , pnlen + 1 , dllist_array ) ;\n efree ( pnstr ) ;\n }\n return intern -> debug_info ;\n }"}
{"idx": 15943, "target": 0, "func": "END_TEST START_TEST ( test_all_users_waiting_to_send ) {\n in_addr_t ip ;\n ip = inet_addr ( \"127.0.0.1\" ) ;\n init_users ( ip , 27 ) ;\n fail_unless ( all_users_waiting_to_send ( ) == 1 ) ;\n users [ 0 ] . conn = CONN_DNS_NULL ;\n users [ 0 ] . active = 1 ;\n fail_unless ( all_users_waiting_to_send ( ) == 1 ) ;\n users [ 0 ] . last_pkt = time ( NULL ) ;\n users [ 0 ] . outpacket . len = 0 ;\n fail_unless ( all_users_waiting_to_send ( ) == 0 ) ;\n # ifdef OUTPACKETQ_LEN users [ 0 ] . outpacketq_filled = 1 ;\n # else users [ 0 ] . outpacket . len = 44 ;\n # endif fail_unless ( all_users_waiting_to_send ( ) == 1 ) ;\n }"}
{"idx": 15944, "target": 0, "func": "void ber_set_filename ( gchar * filename ) {\n gchar * ptr ;\n if ( ber_filename ) {\n g_free ( ber_filename ) ;\n ber_filename = NULL ;\n }\n if ( filename ) {\n ber_filename = g_strdup ( filename ) ;\n if ( ( ptr = strrchr ( ber_filename , '.' ) ) != NULL ) {\n ber_decode_as ( get_ber_oid_syntax ( ptr ) ) ;\n }\n }\n }"}
{"idx": 15945, "target": 0, "func": "static void parse_option ( const char * option ) {\n if ( seen_data_command ) die ( \"Got option command '%s' after data command\" , option ) ;\n if ( parse_one_option ( option ) ) return ;\n die ( \"This version of fast-import does not support option: %s\" , option ) ;\n }"}
{"idx": 15946, "target": 0, "func": "static void s390_init ( ram_addr_t ram_size , const char * boot_device , const char * kernel_filename , const char * kernel_cmdline , const char * initrd_filename , const char * cpu_model ) {\n CPUState * env = NULL ;\n ram_addr_t ram_addr ;\n ram_addr_t kernel_size = 0 ;\n ram_addr_t initrd_offset ;\n ram_addr_t initrd_size = 0 ;\n int i ;\n if ( ! kvm_enabled ( ) ) {\n fprintf ( stderr , \"The S390 target only works with KVM enabled\\n\" ) ;\n exit ( 1 ) ;\n }\n s390_bus = s390_virtio_bus_init ( & ram_size ) ;\n ram_addr = qemu_ram_alloc ( ram_size ) ;\n cpu_register_physical_memory ( 0 , ram_size , ram_addr ) ;\n if ( cpu_model == NULL ) {\n cpu_model = \"host\" ;\n }\n ipi_states = qemu_malloc ( sizeof ( CPUState * ) * smp_cpus ) ;\n for ( i = 0 ;\n i < smp_cpus ;\n i ++ ) {\n CPUState * tmp_env ;\n tmp_env = cpu_init ( cpu_model ) ;\n if ( ! env ) {\n env = tmp_env ;\n }\n ipi_states [ i ] = tmp_env ;\n tmp_env -> halted = 1 ;\n tmp_env -> exception_index = EXCP_HLT ;\n }\n env -> halted = 0 ;\n env -> exception_index = 0 ;\n if ( kernel_filename ) {\n kernel_size = load_image ( kernel_filename , qemu_get_ram_ptr ( 0 ) ) ;\n if ( lduw_phys ( KERN_IMAGE_START ) != 0x0dd0 ) {\n fprintf ( stderr , \"Specified image is not an s390 boot image\\n\" ) ;\n exit ( 1 ) ;\n }\n cpu_synchronize_state ( env ) ;\n env -> psw . addr = KERN_IMAGE_START ;\n env -> psw . mask = 0x0000000180000000ULL ;\n }\n if ( initrd_filename ) {\n initrd_offset = INITRD_START ;\n while ( kernel_size + 0x100000 > initrd_offset ) {\n initrd_offset += 0x100000 ;\n }\n initrd_size = load_image ( initrd_filename , qemu_get_ram_ptr ( initrd_offset ) ) ;\n stq_phys ( INITRD_PARM_START , initrd_offset ) ;\n stq_phys ( INITRD_PARM_SIZE , initrd_size ) ;\n }\n if ( kernel_cmdline ) {\n cpu_physical_memory_rw ( KERN_PARM_AREA , ( uint8_t * ) kernel_cmdline , strlen ( kernel_cmdline ) , 1 ) ;\n }\n for ( i = 0 ;\n i < nb_nics ;\n i ++ ) {\n NICInfo * nd = & nd_table [ i ] ;\n DeviceState * dev ;\n if ( ! nd -> model ) {\n nd -> model = qemu_strdup ( \"virtio\" ) ;\n }\n if ( strcmp ( nd -> model , \"virtio\" ) ) {\n fprintf ( stderr , \"S390 only supports VirtIO nics\\n\" ) ;\n exit ( 1 ) ;\n }\n dev = qdev_create ( ( BusState * ) s390_bus , \"virtio-net-s390\" ) ;\n qdev_set_nic_properties ( dev , nd ) ;\n qdev_init_nofail ( dev ) ;\n }\n for ( i = 0 ;\n i < MAX_BLK_DEVS ;\n i ++ ) {\n DriveInfo * dinfo ;\n DeviceState * dev ;\n dinfo = drive_get ( IF_IDE , 0 , i ) ;\n if ( ! dinfo ) {\n continue ;\n }\n dev = qdev_create ( ( BusState * ) s390_bus , \"virtio-blk-s390\" ) ;\n qdev_prop_set_drive ( dev , \"drive\" , dinfo ) ;\n qdev_init_nofail ( dev ) ;\n }\n }"}
{"idx": 15947, "target": 0, "func": "static int com_print ( String * buffer , char * line __attribute__ ( ( unused ) ) ) {\n tee_puts ( \"--------------\" , stdout ) ;\n ( void ) tee_fputs ( buffer -> c_ptr ( ) , stdout ) ;\n if ( ! buffer -> length ( ) || ( * buffer ) [ buffer -> length ( ) - 1 ] != '\\n' ) tee_putc ( '\\n' , stdout ) ;\n tee_puts ( \"--------------\\n\" , stdout ) ;\n return 0 ;\n }"}
{"idx": 15948, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( DownloadExtensionTest , DownloadExtensionTest_OnDeterminingFilename_Overwrite ) {\n GoOnTheRecord ( ) ;\n LoadExtension ( \"downloads_split\" ) ;\n AddFilenameDeterminer ( ) ;\n ASSERT_TRUE ( StartEmbeddedTestServer ( ) ) ;\n std : : string download_url = embedded_test_server ( ) -> GetURL ( \"/slow?0\" ) . spec ( ) ;\n std : : unique_ptr < base : : Value > result ( RunFunctionAndReturnResult ( new DownloadsDownloadFunction ( ) , base : : StringPrintf ( \"[{\n\\\"url\\\": \\\"%s\\\"}\n]\" , download_url . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( result . get ( ) ) ;\n int result_id = - 1 ;\n ASSERT_TRUE ( result -> GetAsInteger ( & result_id ) ) ;\n DownloadItem * item = GetCurrentManager ( ) -> GetDownload ( result_id ) ;\n ASSERT_TRUE ( item ) ;\n ScopedCancellingItem canceller ( item ) ;\n ASSERT_EQ ( download_url , item -> GetOriginalUrl ( ) . spec ( ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnCreated : : kEventName , base : : StringPrintf ( \"[{\n\\\"danger\\\": \\\"safe\\\",\" \" \\\"incognito\\\": false,\" \" \\\"id\\\": %d,\" \" \\\"mime\\\": \\\"text/plain\\\",\" \" \\\"paused\\\": false,\" \" \\\"url\\\": \\\"%s\\\"}\n]\" , result_id , download_url . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnDeterminingFilename : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"filename\\\":\\\"slow.txt\\\"}\n]\" , result_id ) ) ) ;\n ASSERT_TRUE ( item -> GetTargetFilePath ( ) . empty ( ) ) ;\n ASSERT_EQ ( DownloadItem : : IN_PROGRESS , item -> GetState ( ) ) ;\n std : : string error ;\n ASSERT_TRUE ( ExtensionDownloadsEventRouter : : DetermineFilename ( browser ( ) -> profile ( ) , false , GetExtensionId ( ) , result_id , base : : FilePath ( ) , downloads : : FILENAME_CONFLICT_ACTION_UNIQUIFY , & error ) ) ;\n EXPECT_EQ ( \"\" , error ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnChanged : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"filename\\\": {\n\" \" \\\"previous\\\": \\\"\\\",\" \" \\\"current\\\": \\\"%s\\\"}\n}\n]\" , result_id , GetFilename ( \"slow.txt\" ) . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnChanged : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"state\\\": {\n\" \" \\\"previous\\\": \\\"in_progress\\\",\" \" \\\"current\\\": \\\"complete\\\"}\n}\n]\" , result_id ) ) ) ;\n result . reset ( RunFunctionAndReturnResult ( new DownloadsDownloadFunction ( ) , base : : StringPrintf ( \"[{\n\\\"url\\\": \\\"%s\\\"}\n]\" , download_url . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( result . get ( ) ) ;\n result_id = - 1 ;\n ASSERT_TRUE ( result -> GetAsInteger ( & result_id ) ) ;\n item = GetCurrentManager ( ) -> GetDownload ( result_id ) ;\n ASSERT_TRUE ( item ) ;\n ScopedCancellingItem canceller2 ( item ) ;\n ASSERT_EQ ( download_url , item -> GetOriginalUrl ( ) . spec ( ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnCreated : : kEventName , base : : StringPrintf ( \"[{\n\\\"danger\\\": \\\"safe\\\",\" \" \\\"incognito\\\": false,\" \" \\\"id\\\": %d,\" \" \\\"mime\\\": \\\"text/plain\\\",\" \" \\\"paused\\\": false,\" \" \\\"url\\\": \\\"%s\\\"}\n]\" , result_id , download_url . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnDeterminingFilename : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"filename\\\":\\\"slow.txt\\\"}\n]\" , result_id ) ) ) ;\n ASSERT_TRUE ( item -> GetTargetFilePath ( ) . empty ( ) ) ;\n ASSERT_EQ ( DownloadItem : : IN_PROGRESS , item -> GetState ( ) ) ;\n error = \"\" ;\n ASSERT_TRUE ( ExtensionDownloadsEventRouter : : DetermineFilename ( browser ( ) -> profile ( ) , false , GetExtensionId ( ) , result_id , base : : FilePath ( ) , downloads : : FILENAME_CONFLICT_ACTION_OVERWRITE , & error ) ) ;\n EXPECT_EQ ( \"\" , error ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnChanged : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"filename\\\": {\n\" \" \\\"previous\\\": \\\"\\\",\" \" \\\"current\\\": \\\"%s\\\"}\n}\n]\" , result_id , GetFilename ( \"slow.txt\" ) . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnChanged : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"state\\\": {\n\" \" \\\"previous\\\": \\\"in_progress\\\",\" \" \\\"current\\\": \\\"complete\\\"}\n}\n]\" , result_id ) ) ) ;\n }"}
{"idx": 15949, "target": 0, "func": "static int dissect_pvfs2_mgmt_iterate_handles_response ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n guint32 handle_count , i ;\n proto_tree_add_item ( tree , hf_pvfs_mgmt_iterate_handles_response_ds_position , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n handle_count = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_pvfs_mgmt_iterate_handles_response_handle_count , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n for ( i = 0 ;\n i < handle_count ;\n i ++ ) offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"handle\" , NULL ) ;\n return offset ;\n }"}
{"idx": 15950, "target": 0, "func": "static void cmyk_to_rgb ( fz_context * ctx , const fz_colorspace * cs , const float * cmyk , float * rgb ) {\n # ifdef SLOWCMYK float c = cmyk [ 0 ] , m = cmyk [ 1 ] , y = cmyk [ 2 ] , k = cmyk [ 3 ] ;\n float r , g , b , x ;\n float cm = c * m ;\n float c1m = m - cm ;\n float cm1 = c - cm ;\n float c1m1 = 1 - m - cm1 ;\n float c1m1y = c1m1 * y ;\n float c1m1y1 = c1m1 - c1m1y ;\n float c1my = c1m * y ;\n float c1my1 = c1m - c1my ;\n float cm1y = cm1 * y ;\n float cm1y1 = cm1 - cm1y ;\n float cmy = cm * y ;\n float cmy1 = cm - cmy ;\n x = c1m1y1 * k ;\n r = g = b = c1m1y1 - x ;\n r += 0.1373f * x ;\n g += 0.1216f * x ;\n b += 0.1255f * x ;\n x = c1m1y * k ;\n r += 0.1098f * x ;\n g += 0.1020f * x ;\n x = c1m1y - x ;\n r += x ;\n g += 0.9490f * x ;\n x = c1my1 * k ;\n r += 0.1412f * x ;\n x = c1my1 - x ;\n r += 0.9255f * x ;\n b += 0.5490f * x ;\n x = c1my * k ;\n r += 0.1333f * x ;\n x = c1my - x ;\n r += 0.9294f * x ;\n g += 0.1098f * x ;\n b += 0.1412f * x ;\n x = cm1y1 * k ;\n g += 0.0588f * x ;\n b += 0.1412f * x ;\n x = cm1y1 - x ;\n g += 0.6784f * x ;\n b += 0.9373f * x ;\n x = cm1y * k ;\n g += 0.0745f * x ;\n x = cm1y - x ;\n g += 0.6510f * x ;\n b += 0.3137f * x ;\n x = cmy1 * k ;\n b += 0.0078f * x ;\n x = cmy1 - x ;\n r += 0.1804f * x ;\n g += 0.1922f * x ;\n b += 0.5725f * x ;\n x = cmy * ( 1 - k ) ;\n r += 0.2118f * x ;\n g += 0.2119f * x ;\n b += 0.2235f * x ;\n rgb [ 0 ] = fz_clamp ( r , 0 , 1 ) ;\n rgb [ 1 ] = fz_clamp ( g , 0 , 1 ) ;\n rgb [ 2 ] = fz_clamp ( b , 0 , 1 ) ;\n # else rgb [ 0 ] = 1 - fz_min ( 1 , cmyk [ 0 ] + cmyk [ 3 ] ) ;\n rgb [ 1 ] = 1 - fz_min ( 1 , cmyk [ 1 ] + cmyk [ 3 ] ) ;\n rgb [ 2 ] = 1 - fz_min ( 1 , cmyk [ 2 ] + cmyk [ 3 ] ) ;\n # endif }"}
{"idx": 15951, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ExternalProtocolDialogBrowserTest , TestCancel ) {\n ShowDialog ( ) ;\n EXPECT_TRUE ( dialog_ -> Cancel ( ) ) ;\n EXPECT_FALSE ( called_ ) ;\n EXPECT_FALSE ( accept_ ) ;\n EXPECT_FALSE ( remember_ ) ;\n histogram_tester_ . ExpectBucketCount ( ExternalProtocolHandler : : kHandleStateMetric , ExternalProtocolHandler : : DONT_LAUNCH , 1 ) ;\n }"}
{"idx": 15952, "target": 0, "func": "static void spl_dllist_it_get_current_key ( zend_object_iterator * iter , zval * key TSRMLS_DC ) {\n spl_dllist_it * iterator = ( spl_dllist_it * ) iter ;\n ZVAL_LONG ( key , iterator -> traverse_position ) ;\n }"}
{"idx": 15953, "target": 0, "func": "static void vc1_mc_4mv_luma ( VC1Context * v , int n , int dir ) {\n MpegEncContext * s = & v -> s ;\n DSPContext * dsp = & v -> s . dsp ;\n uint8_t * srcY ;\n int dxy , mx , my , src_x , src_y ;\n int off ;\n int fieldmv = ( v -> fcm == ILACE_FRAME ) ? v -> blk_mv_type [ s -> block_index [ n ] ] : 0 ;\n int v_edge_pos = s -> v_edge_pos >> v -> field_mode ;\n if ( ( ! v -> field_mode || ( v -> ref_field_type [ dir ] == 1 && v -> cur_field_type == 1 ) ) && ! v -> s . last_picture . f . data [ 0 ] ) return ;\n mx = s -> mv [ dir ] [ n ] [ 0 ] ;\n my = s -> mv [ dir ] [ n ] [ 1 ] ;\n if ( ! dir ) {\n if ( v -> field_mode ) {\n if ( ( v -> cur_field_type != v -> ref_field_type [ dir ] ) && v -> cur_field_type ) srcY = s -> current_picture . f . data [ 0 ] ;\n else srcY = s -> last_picture . f . data [ 0 ] ;\n }\n else srcY = s -> last_picture . f . data [ 0 ] ;\n }\n else srcY = s -> next_picture . f . data [ 0 ] ;\n if ( v -> field_mode ) {\n if ( v -> cur_field_type != v -> ref_field_type [ dir ] ) my = my - 2 + 4 * v -> cur_field_type ;\n }\n if ( s -> pict_type == AV_PICTURE_TYPE_P && n == 3 && v -> field_mode ) {\n int same_count = 0 , opp_count = 0 , k ;\n int chosen_mv [ 2 ] [ 4 ] [ 2 ] , f ;\n int tx , ty ;\n for ( k = 0 ;\n k < 4 ;\n k ++ ) {\n f = v -> mv_f [ 0 ] [ s -> block_index [ k ] + v -> blocks_off ] ;\n chosen_mv [ f ] [ f ? opp_count : same_count ] [ 0 ] = s -> mv [ 0 ] [ k ] [ 0 ] ;\n chosen_mv [ f ] [ f ? opp_count : same_count ] [ 1 ] = s -> mv [ 0 ] [ k ] [ 1 ] ;\n opp_count += f ;\n same_count += 1 - f ;\n }\n f = opp_count > same_count ;\n switch ( f ? opp_count : same_count ) {\n case 4 : tx = median4 ( chosen_mv [ f ] [ 0 ] [ 0 ] , chosen_mv [ f ] [ 1 ] [ 0 ] , chosen_mv [ f ] [ 2 ] [ 0 ] , chosen_mv [ f ] [ 3 ] [ 0 ] ) ;\n ty = median4 ( chosen_mv [ f ] [ 0 ] [ 1 ] , chosen_mv [ f ] [ 1 ] [ 1 ] , chosen_mv [ f ] [ 2 ] [ 1 ] , chosen_mv [ f ] [ 3 ] [ 1 ] ) ;\n break ;\n case 3 : tx = mid_pred ( chosen_mv [ f ] [ 0 ] [ 0 ] , chosen_mv [ f ] [ 1 ] [ 0 ] , chosen_mv [ f ] [ 2 ] [ 0 ] ) ;\n ty = mid_pred ( chosen_mv [ f ] [ 0 ] [ 1 ] , chosen_mv [ f ] [ 1 ] [ 1 ] , chosen_mv [ f ] [ 2 ] [ 1 ] ) ;\n break ;\n case 2 : tx = ( chosen_mv [ f ] [ 0 ] [ 0 ] + chosen_mv [ f ] [ 1 ] [ 0 ] ) / 2 ;\n ty = ( chosen_mv [ f ] [ 0 ] [ 1 ] + chosen_mv [ f ] [ 1 ] [ 1 ] ) / 2 ;\n break ;\n }\n s -> current_picture . motion_val [ 1 ] [ s -> block_index [ 0 ] + v -> blocks_off ] [ 0 ] = tx ;\n s -> current_picture . motion_val [ 1 ] [ s -> block_index [ 0 ] + v -> blocks_off ] [ 1 ] = ty ;\n for ( k = 0 ;\n k < 4 ;\n k ++ ) v -> mv_f [ 1 ] [ s -> block_index [ k ] + v -> blocks_off ] = f ;\n }\n if ( v -> fcm == ILACE_FRAME ) {\n int qx , qy ;\n int width = s -> avctx -> coded_width ;\n int height = s -> avctx -> coded_height >> 1 ;\n qx = ( s -> mb_x * 16 ) + ( mx >> 2 ) ;\n qy = ( s -> mb_y * 8 ) + ( my >> 3 ) ;\n if ( qx < - 17 ) mx -= 4 * ( qx + 17 ) ;\n else if ( qx > width ) mx -= 4 * ( qx - width ) ;\n if ( qy < - 18 ) my -= 8 * ( qy + 18 ) ;\n else if ( qy > height + 1 ) my -= 8 * ( qy - height - 1 ) ;\n }\n if ( ( v -> fcm == ILACE_FRAME ) && fieldmv ) off = ( ( n > 1 ) ? s -> linesize : 0 ) + ( n & 1 ) * 8 ;\n else off = s -> linesize * 4 * ( n & 2 ) + ( n & 1 ) * 8 ;\n if ( v -> field_mode && v -> cur_field_type ) off += s -> current_picture_ptr -> f . linesize [ 0 ] ;\n src_x = s -> mb_x * 16 + ( n & 1 ) * 8 + ( mx >> 2 ) ;\n if ( ! fieldmv ) src_y = s -> mb_y * 16 + ( n & 2 ) * 4 + ( my >> 2 ) ;\n else src_y = s -> mb_y * 16 + ( ( n > 1 ) ? 1 : 0 ) + ( my >> 2 ) ;\n if ( v -> profile != PROFILE_ADVANCED ) {\n src_x = av_clip ( src_x , - 16 , s -> mb_width * 16 ) ;\n src_y = av_clip ( src_y , - 16 , s -> mb_height * 16 ) ;\n }\n else {\n src_x = av_clip ( src_x , - 17 , s -> avctx -> coded_width ) ;\n if ( v -> fcm == ILACE_FRAME ) {\n if ( src_y & 1 ) src_y = av_clip ( src_y , - 17 , s -> avctx -> coded_height + 1 ) ;\n else src_y = av_clip ( src_y , - 18 , s -> avctx -> coded_height ) ;\n }\n else {\n src_y = av_clip ( src_y , - 18 , s -> avctx -> coded_height + 1 ) ;\n }\n }\n srcY += src_y * s -> linesize + src_x ;\n if ( v -> field_mode && v -> ref_field_type [ dir ] ) srcY += s -> current_picture_ptr -> f . linesize [ 0 ] ;\n if ( fieldmv && ! ( src_y & 1 ) ) v_edge_pos -- ;\n if ( fieldmv && ( src_y & 1 ) && src_y < 4 ) src_y -- ;\n if ( v -> rangeredfrm || ( v -> mv_mode == MV_PMODE_INTENSITY_COMP ) || s -> h_edge_pos < 13 || v_edge_pos < 23 || ( unsigned ) ( src_x - s -> mspel ) > s -> h_edge_pos - ( mx & 3 ) - 8 - s -> mspel * 2 || ( unsigned ) ( src_y - ( s -> mspel << fieldmv ) ) > v_edge_pos - ( my & 3 ) - ( ( 8 + s -> mspel * 2 ) << fieldmv ) ) {\n srcY -= s -> mspel * ( 1 + ( s -> linesize << fieldmv ) ) ;\n s -> vdsp . emulated_edge_mc ( s -> edge_emu_buffer , srcY , s -> linesize , 9 + s -> mspel * 2 , ( 9 + s -> mspel * 2 ) << fieldmv , src_x - s -> mspel , src_y - ( s -> mspel << fieldmv ) , s -> h_edge_pos , v_edge_pos ) ;\n srcY = s -> edge_emu_buffer ;\n if ( v -> rangeredfrm ) {\n int i , j ;\n uint8_t * src ;\n src = srcY ;\n for ( j = 0 ;\n j < 9 + s -> mspel * 2 ;\n j ++ ) {\n for ( i = 0 ;\n i < 9 + s -> mspel * 2 ;\n i ++ ) src [ i ] = ( ( src [ i ] - 128 ) >> 1 ) + 128 ;\n src += s -> linesize << fieldmv ;\n }\n }\n if ( v -> mv_mode == MV_PMODE_INTENSITY_COMP ) {\n int i , j ;\n uint8_t * src ;\n src = srcY ;\n for ( j = 0 ;\n j < 9 + s -> mspel * 2 ;\n j ++ ) {\n for ( i = 0 ;\n i < 9 + s -> mspel * 2 ;\n i ++ ) src [ i ] = v -> luty [ src [ i ] ] ;\n src += s -> linesize << fieldmv ;\n }\n }\n srcY += s -> mspel * ( 1 + ( s -> linesize << fieldmv ) ) ;\n }\n if ( s -> mspel ) {\n dxy = ( ( my & 3 ) << 2 ) | ( mx & 3 ) ;\n v -> vc1dsp . put_vc1_mspel_pixels_tab [ dxy ] ( s -> dest [ 0 ] + off , srcY , s -> linesize << fieldmv , v -> rnd ) ;\n }\n else {\n dxy = ( my & 2 ) | ( ( mx & 2 ) >> 1 ) ;\n if ( ! v -> rnd ) dsp -> put_pixels_tab [ 1 ] [ dxy ] ( s -> dest [ 0 ] + off , srcY , s -> linesize , 8 ) ;\n else dsp -> put_no_rnd_pixels_tab [ 1 ] [ dxy ] ( s -> dest [ 0 ] + off , srcY , s -> linesize , 8 ) ;\n }\n }"}
{"idx": 15954, "target": 1, "func": "static int ipvideo_decode_block_opcode_0x3 ( IpvideoContext * s ) {\n unsigned char B ;\n int x , y ;\n if ( ! s -> is_16bpp ) {\n B = bytestream2_get_byte ( & s -> stream_ptr ) ;\n }\n else {\n B = bytestream2_get_byte ( & s -> mv_ptr ) ;\n }\n if ( B < 56 ) {\n x = - ( 8 + ( B % 7 ) ) ;\n y = - ( B / 7 ) ;\n }\n else {\n x = - ( - 14 + ( ( B - 56 ) % 29 ) ) ;\n y = - ( 8 + ( ( B - 56 ) / 29 ) ) ;\n }\n av_dlog ( NULL , \" motion byte = %d, (x, y) = (%d, %d)\\n\" , B , x , y ) ;\n return copy_from ( s , & s -> current_frame , x , y ) ;\n }"}
{"idx": 15955, "target": 0, "func": "static int transformtest_transform ( TSCont contp , TSEvent event , void * ) {\n auto * data = static_cast < AppendTransformTestData * > ( TSContDataGet ( contp ) ) ;\n if ( data -> test_data -> test_passed_transform_create == false ) {\n data -> test_data -> test_passed_transform_create = true ;\n SDK_RPRINT ( data -> test_data -> test , \"TSTransformCreate\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n if ( TSVConnClosedGet ( contp ) ) {\n delete data ;\n TSContDestroy ( contp ) ;\n return 0 ;\n }\n else {\n switch ( event ) {\n case TS_EVENT_ERROR : {\n TSVIO write_vio ;\n write_vio = TSVConnWriteVIOGet ( contp ) ;\n TSContCall ( TSVIOContGet ( write_vio ) , TS_EVENT_ERROR , write_vio ) ;\n }\n break ;\n case TS_EVENT_VCONN_WRITE_COMPLETE : TSVConnShutdown ( TSTransformOutputVConnGet ( contp ) , 0 , 1 ) ;\n break ;\n case TS_EVENT_VCONN_WRITE_READY : default : handle_transform ( contp ) ;\n break ;\n }\n }\n return 0 ;\n }"}
{"idx": 15956, "target": 0, "func": "php_stream * php_stream_url_wrap_http_ex ( php_stream_wrapper * wrapper , const char * path , const char * mode , int options , char * * opened_path , php_stream_context * context , int redirect_max , int flags STREAMS_DC TSRMLS_DC ) {\n php_stream * stream = NULL ;\n php_url * resource = NULL ;\n int use_ssl ;\n int use_proxy = 0 ;\n char * scratch = NULL ;\n char * tmp = NULL ;\n char * ua_str = NULL ;\n zval * * ua_zval = NULL , * * tmpzval = NULL , * ssl_proxy_peer_name = NULL ;\n int scratch_len = 0 ;\n int body = 0 ;\n char location [ HTTP_HEADER_BLOCK_SIZE ] ;\n zval * response_header = NULL ;\n int reqok = 0 ;\n char * http_header_line = NULL ;\n char tmp_line [ 128 ] ;\n size_t chunk_size = 0 , file_size = 0 ;\n int eol_detect = 0 ;\n char * transport_string , * errstr = NULL ;\n int transport_len , have_header = 0 , request_fulluri = 0 , ignore_errors = 0 ;\n char * protocol_version = NULL ;\n int protocol_version_len = 3 ;\n struct timeval timeout ;\n char * user_headers = NULL ;\n int header_init = ( ( flags & HTTP_WRAPPER_HEADER_INIT ) != 0 ) ;\n int redirected = ( ( flags & HTTP_WRAPPER_REDIRECTED ) != 0 ) ;\n int follow_location = 1 ;\n php_stream_filter * transfer_encoding = NULL ;\n int response_code ;\n tmp_line [ 0 ] = '\\0' ;\n if ( redirect_max < 1 ) {\n php_stream_wrapper_log_error ( wrapper , options TSRMLS_CC , \"Redirection limit reached, aborting\" ) ;\n return NULL ;\n }\n resource = php_url_parse ( path ) ;\n if ( resource == NULL ) {\n return NULL ;\n }\n if ( strncasecmp ( resource -> scheme , \"http\" , sizeof ( \"http\" ) ) && strncasecmp ( resource -> scheme , \"https\" , sizeof ( \"https\" ) ) ) {\n if ( ! context || php_stream_context_get_option ( context , wrapper -> wops -> label , \"proxy\" , & tmpzval ) == FAILURE || Z_TYPE_PP ( tmpzval ) != IS_STRING || Z_STRLEN_PP ( tmpzval ) <= 0 ) {\n php_url_free ( resource ) ;\n return php_stream_open_wrapper_ex ( path , mode , REPORT_ERRORS , NULL , context ) ;\n }\n request_fulluri = 1 ;\n use_ssl = 0 ;\n use_proxy = 1 ;\n transport_len = Z_STRLEN_PP ( tmpzval ) ;\n transport_string = estrndup ( Z_STRVAL_PP ( tmpzval ) , Z_STRLEN_PP ( tmpzval ) ) ;\n }\n else {\n if ( strpbrk ( mode , \"awx+\" ) ) {\n php_stream_wrapper_log_error ( wrapper , options TSRMLS_CC , \"HTTP wrapper does not support writeable connections\" ) ;\n php_url_free ( resource ) ;\n return NULL ;\n }\n use_ssl = resource -> scheme && ( strlen ( resource -> scheme ) > 4 ) && resource -> scheme [ 4 ] == 's' ;\n if ( use_ssl && resource -> port == 0 ) resource -> port = 443 ;\n else if ( resource -> port == 0 ) resource -> port = 80 ;\n if ( context && php_stream_context_get_option ( context , wrapper -> wops -> label , \"proxy\" , & tmpzval ) == SUCCESS && Z_TYPE_PP ( tmpzval ) == IS_STRING && Z_STRLEN_PP ( tmpzval ) > 0 ) {\n use_proxy = 1 ;\n transport_len = Z_STRLEN_PP ( tmpzval ) ;\n transport_string = estrndup ( Z_STRVAL_PP ( tmpzval ) , Z_STRLEN_PP ( tmpzval ) ) ;\n }\n else {\n transport_len = spprintf ( & transport_string , 0 , \"%s://%s:%d\" , use_ssl ? \"ssl\" : \"tcp\" , resource -> host , resource -> port ) ;\n }\n }\n if ( context && php_stream_context_get_option ( context , wrapper -> wops -> label , \"timeout\" , & tmpzval ) == SUCCESS ) {\n SEPARATE_ZVAL ( tmpzval ) ;\n convert_to_double_ex ( tmpzval ) ;\n timeout . tv_sec = ( time_t ) Z_DVAL_PP ( tmpzval ) ;\n timeout . tv_usec = ( size_t ) ( ( Z_DVAL_PP ( tmpzval ) - timeout . tv_sec ) * 1000000 ) ;\n }\n else {\n timeout . tv_sec = FG ( default_socket_timeout ) ;\n timeout . tv_usec = 0 ;\n }\n stream = php_stream_xport_create ( transport_string , transport_len , options , STREAM_XPORT_CLIENT | STREAM_XPORT_CONNECT , NULL , & timeout , context , & errstr , NULL ) ;\n if ( stream ) {\n php_stream_set_option ( stream , PHP_STREAM_OPTION_READ_TIMEOUT , 0 , & timeout ) ;\n }\n if ( errstr ) {\n php_stream_wrapper_log_error ( wrapper , options TSRMLS_CC , \"%s\" , errstr ) ;\n efree ( errstr ) ;\n errstr = NULL ;\n }\n efree ( transport_string ) ;\n if ( stream && use_proxy && use_ssl ) {\n smart_str header = {\n 0 }\n ;\n if ( ! context || php_stream_context_get_option ( context , \"ssl\" , \"peer_name\" , & tmpzval ) == FAILURE ) {\n MAKE_STD_ZVAL ( ssl_proxy_peer_name ) ;\n ZVAL_STRING ( ssl_proxy_peer_name , resource -> host , 1 ) ;\n php_stream_context_set_option ( stream -> context , \"ssl\" , \"peer_name\" , ssl_proxy_peer_name ) ;\n }\n smart_str_appendl ( & header , \"CONNECT \" , sizeof ( \"CONNECT \" ) - 1 ) ;\n smart_str_appends ( & header , resource -> host ) ;\n smart_str_appendc ( & header , ':' ) ;\n smart_str_append_unsigned ( & header , resource -> port ) ;\n smart_str_appendl ( & header , \" HTTP/1.0\\r\\n\" , sizeof ( \" HTTP/1.0\\r\\n\" ) - 1 ) ;\n if ( context && php_stream_context_get_option ( context , \"http\" , \"header\" , & tmpzval ) == SUCCESS ) {\n char * s , * p ;\n if ( Z_TYPE_PP ( tmpzval ) == IS_ARRAY ) {\n HashPosition pos ;\n zval * * tmpheader = NULL ;\n for ( zend_hash_internal_pointer_reset_ex ( Z_ARRVAL_PP ( tmpzval ) , & pos ) ;\n SUCCESS == zend_hash_get_current_data_ex ( Z_ARRVAL_PP ( tmpzval ) , ( void * ) & tmpheader , & pos ) ;\n zend_hash_move_forward_ex ( Z_ARRVAL_PP ( tmpzval ) , & pos ) ) {\n if ( Z_TYPE_PP ( tmpheader ) == IS_STRING ) {\n s = Z_STRVAL_PP ( tmpheader ) ;\n do {\n while ( * s == ' ' || * s == '\\t' ) s ++ ;\n p = s ;\n while ( * p != 0 && * p != ':' && * p != '\\r' && * p != '\\n' ) p ++ ;\n if ( * p == ':' ) {\n p ++ ;\n if ( p - s == sizeof ( \"Proxy-Authorization:\" ) - 1 && zend_binary_strcasecmp ( s , sizeof ( \"Proxy-Authorization:\" ) - 1 , \"Proxy-Authorization:\" , sizeof ( \"Proxy-Authorization:\" ) - 1 ) == 0 ) {\n while ( * p != 0 && * p != '\\r' && * p != '\\n' ) p ++ ;\n smart_str_appendl ( & header , s , p - s ) ;\n smart_str_appendl ( & header , \"\\r\\n\" , sizeof ( \"\\r\\n\" ) - 1 ) ;\n goto finish ;\n }\n else {\n while ( * p != 0 && * p != '\\r' && * p != '\\n' ) p ++ ;\n }\n }\n s = p ;\n while ( * s == '\\r' || * s == '\\n' ) s ++ ;\n }\n while ( * s != 0 ) ;\n }\n }\n }\n else if ( Z_TYPE_PP ( tmpzval ) == IS_STRING && Z_STRLEN_PP ( tmpzval ) ) {\n s = Z_STRVAL_PP ( tmpzval ) ;\n do {\n while ( * s == ' ' || * s == '\\t' ) s ++ ;\n p = s ;\n while ( * p != 0 && * p != ':' && * p != '\\r' && * p != '\\n' ) p ++ ;\n if ( * p == ':' ) {\n p ++ ;\n if ( p - s == sizeof ( \"Proxy-Authorization:\" ) - 1 && zend_binary_strcasecmp ( s , sizeof ( \"Proxy-Authorization:\" ) - 1 , \"Proxy-Authorization:\" , sizeof ( \"Proxy-Authorization:\" ) - 1 ) == 0 ) {\n while ( * p != 0 && * p != '\\r' && * p != '\\n' ) p ++ ;\n smart_str_appendl ( & header , s , p - s ) ;\n smart_str_appendl ( & header , \"\\r\\n\" , sizeof ( \"\\r\\n\" ) - 1 ) ;\n goto finish ;\n }\n else {\n while ( * p != 0 && * p != '\\r' && * p != '\\n' ) p ++ ;\n }\n }\n s = p ;\n while ( * s == '\\r' || * s == '\\n' ) s ++ ;\n }\n while ( * s != 0 ) ;\n }\n }\n finish : smart_str_appendl ( & header , \"\\r\\n\" , sizeof ( \"\\r\\n\" ) - 1 ) ;\n if ( php_stream_write ( stream , header . c , header . len ) != header . len ) {\n php_stream_wrapper_log_error ( wrapper , options TSRMLS_CC , \"Cannot connect to HTTPS server through proxy\" ) ;\n php_stream_close ( stream ) ;\n stream = NULL ;\n }\n smart_str_free ( & header ) ;\n if ( stream ) {\n char header_line [ HTTP_HEADER_BLOCK_SIZE ] ;\n while ( php_stream_gets ( stream , header_line , HTTP_HEADER_BLOCK_SIZE - 1 ) != NULL ) {\n if ( header_line [ 0 ] == '\\n' || header_line [ 0 ] == '\\r' || header_line [ 0 ] == '\\0' ) {\n break ;\n }\n }\n }\n if ( stream ) {\n if ( php_stream_xport_crypto_setup ( stream , STREAM_CRYPTO_METHOD_SSLv23_CLIENT , NULL TSRMLS_CC ) < 0 || php_stream_xport_crypto_enable ( stream , 1 TSRMLS_CC ) < 0 ) {\n php_stream_wrapper_log_error ( wrapper , options TSRMLS_CC , \"Cannot connect to HTTPS server through proxy\" ) ;\n php_stream_close ( stream ) ;\n stream = NULL ;\n }\n }\n }\n if ( stream == NULL ) goto out ;\n if ( options & STREAM_WILL_CAST ) chunk_size = php_stream_set_chunk_size ( stream , 1 ) ;\n eol_detect = stream -> flags & ( PHP_STREAM_FLAG_DETECT_EOL | PHP_STREAM_FLAG_EOL_MAC ) ;\n stream -> flags &= ~ ( PHP_STREAM_FLAG_DETECT_EOL | PHP_STREAM_FLAG_EOL_MAC ) ;\n php_stream_context_set ( stream , context ) ;\n php_stream_notify_info ( context , PHP_STREAM_NOTIFY_CONNECT , NULL , 0 ) ;\n if ( header_init && context && php_stream_context_get_option ( context , \"http\" , \"max_redirects\" , & tmpzval ) == SUCCESS ) {\n SEPARATE_ZVAL ( tmpzval ) ;\n convert_to_long_ex ( tmpzval ) ;\n redirect_max = Z_LVAL_PP ( tmpzval ) ;\n }\n if ( context && php_stream_context_get_option ( context , \"http\" , \"method\" , & tmpzval ) == SUCCESS ) {\n if ( Z_TYPE_PP ( tmpzval ) == IS_STRING && Z_STRLEN_PP ( tmpzval ) > 0 ) {\n if ( ! redirected || ( Z_STRLEN_PP ( tmpzval ) == 3 && memcmp ( \"GET\" , Z_STRVAL_PP ( tmpzval ) , 3 ) == 0 ) || ( Z_STRLEN_PP ( tmpzval ) == 4 && memcmp ( \"HEAD\" , Z_STRVAL_PP ( tmpzval ) , 4 ) == 0 ) ) {\n scratch_len = strlen ( path ) + 29 + Z_STRLEN_PP ( tmpzval ) ;\n scratch = emalloc ( scratch_len ) ;\n strlcpy ( scratch , Z_STRVAL_PP ( tmpzval ) , Z_STRLEN_PP ( tmpzval ) + 1 ) ;\n strncat ( scratch , \" \" , 1 ) ;\n }\n }\n }\n if ( context && php_stream_context_get_option ( context , \"http\" , \"protocol_version\" , & tmpzval ) == SUCCESS ) {\n SEPARATE_ZVAL ( tmpzval ) ;\n convert_to_double_ex ( tmpzval ) ;\n protocol_version_len = spprintf ( & protocol_version , 0 , \"%.1F\" , Z_DVAL_PP ( tmpzval ) ) ;\n }\n if ( ! scratch ) {\n scratch_len = strlen ( path ) + 29 + protocol_version_len ;\n scratch = emalloc ( scratch_len ) ;\n strncpy ( scratch , \"GET \" , scratch_len ) ;\n }\n if ( ! request_fulluri && context && php_stream_context_get_option ( context , \"http\" , \"request_fulluri\" , & tmpzval ) == SUCCESS ) {\n zval ztmp = * * tmpzval ;\n zval_copy_ctor ( & ztmp ) ;\n convert_to_boolean ( & ztmp ) ;\n request_fulluri = Z_BVAL ( ztmp ) ? 1 : 0 ;\n zval_dtor ( & ztmp ) ;\n }\n if ( request_fulluri ) {\n strcat ( scratch , path ) ;\n }\n else {\n if ( resource -> path && * resource -> path ) {\n strlcat ( scratch , resource -> path , scratch_len ) ;\n }\n else {\n strlcat ( scratch , \"/\" , scratch_len ) ;\n }\n if ( resource -> query ) {\n strlcat ( scratch , \"?\" , scratch_len ) ;\n strlcat ( scratch , resource -> query , scratch_len ) ;\n }\n }\n if ( protocol_version ) {\n strlcat ( scratch , \" HTTP/\" , scratch_len ) ;\n strlcat ( scratch , protocol_version , scratch_len ) ;\n strlcat ( scratch , \"\\r\\n\" , scratch_len ) ;\n }\n else {\n strlcat ( scratch , \" HTTP/1.0\\r\\n\" , scratch_len ) ;\n }\n php_stream_write ( stream , scratch , strlen ( scratch ) ) ;\n if ( context && php_stream_context_get_option ( context , \"http\" , \"header\" , & tmpzval ) == SUCCESS ) {\n tmp = NULL ;\n if ( Z_TYPE_PP ( tmpzval ) == IS_ARRAY ) {\n HashPosition pos ;\n zval * * tmpheader = NULL ;\n smart_str tmpstr = {\n 0 }\n ;\n for ( zend_hash_internal_pointer_reset_ex ( Z_ARRVAL_PP ( tmpzval ) , & pos ) ;\n SUCCESS == zend_hash_get_current_data_ex ( Z_ARRVAL_PP ( tmpzval ) , ( void * ) & tmpheader , & pos ) ;\n zend_hash_move_forward_ex ( Z_ARRVAL_PP ( tmpzval ) , & pos ) ) {\n if ( Z_TYPE_PP ( tmpheader ) == IS_STRING ) {\n smart_str_appendl ( & tmpstr , Z_STRVAL_PP ( tmpheader ) , Z_STRLEN_PP ( tmpheader ) ) ;\n smart_str_appendl ( & tmpstr , \"\\r\\n\" , sizeof ( \"\\r\\n\" ) - 1 ) ;\n }\n }\n smart_str_0 ( & tmpstr ) ;\n if ( tmpstr . c ) {\n tmp = php_trim ( tmpstr . c , strlen ( tmpstr . c ) , NULL , 0 , NULL , 3 TSRMLS_CC ) ;\n smart_str_free ( & tmpstr ) ;\n }\n }\n if ( Z_TYPE_PP ( tmpzval ) == IS_STRING && Z_STRLEN_PP ( tmpzval ) ) {\n tmp = php_trim ( Z_STRVAL_PP ( tmpzval ) , Z_STRLEN_PP ( tmpzval ) , NULL , 0 , NULL , 3 TSRMLS_CC ) ;\n }\n if ( tmp && strlen ( tmp ) > 0 ) {\n char * s ;\n user_headers = estrdup ( tmp ) ;\n php_strtolower ( tmp , strlen ( tmp ) ) ;\n if ( ! header_init ) {\n strip_header ( user_headers , tmp , \"content-length:\" ) ;\n strip_header ( user_headers , tmp , \"content-type:\" ) ;\n }\n if ( ( s = strstr ( tmp , \"user-agent:\" ) ) && ( s == tmp || * ( s - 1 ) == '\\r' || * ( s - 1 ) == '\\n' || * ( s - 1 ) == '\\t' || * ( s - 1 ) == ' ' ) ) {\n have_header |= HTTP_HEADER_USER_AGENT ;\n }\n if ( ( s = strstr ( tmp , \"host:\" ) ) && ( s == tmp || * ( s - 1 ) == '\\r' || * ( s - 1 ) == '\\n' || * ( s - 1 ) == '\\t' || * ( s - 1 ) == ' ' ) ) {\n have_header |= HTTP_HEADER_HOST ;\n }\n if ( ( s = strstr ( tmp , \"from:\" ) ) && ( s == tmp || * ( s - 1 ) == '\\r' || * ( s - 1 ) == '\\n' || * ( s - 1 ) == '\\t' || * ( s - 1 ) == ' ' ) ) {\n have_header |= HTTP_HEADER_FROM ;\n }\n if ( ( s = strstr ( tmp , \"authorization:\" ) ) && ( s == tmp || * ( s - 1 ) == '\\r' || * ( s - 1 ) == '\\n' || * ( s - 1 ) == '\\t' || * ( s - 1 ) == ' ' ) ) {\n have_header |= HTTP_HEADER_AUTH ;\n }\n if ( ( s = strstr ( tmp , \"content-length:\" ) ) && ( s == tmp || * ( s - 1 ) == '\\r' || * ( s - 1 ) == '\\n' || * ( s - 1 ) == '\\t' || * ( s - 1 ) == ' ' ) ) {\n have_header |= HTTP_HEADER_CONTENT_LENGTH ;\n }\n if ( ( s = strstr ( tmp , \"content-type:\" ) ) && ( s == tmp || * ( s - 1 ) == '\\r' || * ( s - 1 ) == '\\n' || * ( s - 1 ) == '\\t' || * ( s - 1 ) == ' ' ) ) {\n have_header |= HTTP_HEADER_TYPE ;\n }\n if ( ( s = strstr ( tmp , \"connection:\" ) ) && ( s == tmp || * ( s - 1 ) == '\\r' || * ( s - 1 ) == '\\n' || * ( s - 1 ) == '\\t' || * ( s - 1 ) == ' ' ) ) {\n have_header |= HTTP_HEADER_CONNECTION ;\n }\n if ( use_proxy && use_ssl && ( s = strstr ( tmp , \"proxy-authorization:\" ) ) && ( s == tmp || * ( s - 1 ) == '\\r' || * ( s - 1 ) == '\\n' || * ( s - 1 ) == '\\t' || * ( s - 1 ) == ' ' ) ) {\n char * p = s + sizeof ( \"proxy-authorization:\" ) - 1 ;\n while ( s > tmp && ( * ( s - 1 ) == ' ' || * ( s - 1 ) == '\\t' ) ) s -- ;\n while ( * p != 0 && * p != '\\r' && * p != '\\n' ) p ++ ;\n while ( * p == '\\r' || * p == '\\n' ) p ++ ;\n if ( * p == 0 ) {\n if ( s == tmp ) {\n efree ( user_headers ) ;\n user_headers = NULL ;\n }\n else {\n while ( s > tmp && ( * ( s - 1 ) == '\\r' || * ( s - 1 ) == '\\n' ) ) s -- ;\n user_headers [ s - tmp ] = 0 ;\n }\n }\n else {\n memmove ( user_headers + ( s - tmp ) , user_headers + ( p - tmp ) , strlen ( p ) + 1 ) ;\n }\n }\n }\n if ( tmp ) {\n efree ( tmp ) ;\n }\n }\n if ( ( ( have_header & HTTP_HEADER_AUTH ) == 0 ) && resource -> user ) {\n php_url_decode ( resource -> user , strlen ( resource -> user ) ) ;\n strcpy ( scratch , resource -> user ) ;\n strcat ( scratch , \":\" ) ;\n if ( resource -> pass ) {\n php_url_decode ( resource -> pass , strlen ( resource -> pass ) ) ;\n strcat ( scratch , resource -> pass ) ;\n }\n tmp = ( char * ) php_base64_encode ( ( unsigned char * ) scratch , strlen ( scratch ) , NULL ) ;\n if ( snprintf ( scratch , scratch_len , \"Authorization: Basic %s\\r\\n\" , tmp ) > 0 ) {\n php_stream_write ( stream , scratch , strlen ( scratch ) ) ;\n php_stream_notify_info ( context , PHP_STREAM_NOTIFY_AUTH_REQUIRED , NULL , 0 ) ;\n }\n efree ( tmp ) ;\n tmp = NULL ;\n }\n if ( ( ( have_header & HTTP_HEADER_FROM ) == 0 ) && FG ( from_address ) ) {\n if ( snprintf ( scratch , scratch_len , \"From: %s\\r\\n\" , FG ( from_address ) ) > 0 ) php_stream_write ( stream , scratch , strlen ( scratch ) ) ;\n }\n if ( ( have_header & HTTP_HEADER_HOST ) == 0 ) {\n if ( ( use_ssl && resource -> port != 443 && resource -> port != 0 ) || ( ! use_ssl && resource -> port != 80 && resource -> port != 0 ) ) {\n if ( snprintf ( scratch , scratch_len , \"Host: %s:%i\\r\\n\" , resource -> host , resource -> port ) > 0 ) php_stream_write ( stream , scratch , strlen ( scratch ) ) ;\n }\n else {\n if ( snprintf ( scratch , scratch_len , \"Host: %s\\r\\n\" , resource -> host ) > 0 ) {\n php_stream_write ( stream , scratch , strlen ( scratch ) ) ;\n }\n }\n }\n if ( ( have_header & HTTP_HEADER_CONNECTION ) == 0 ) {\n php_stream_write_string ( stream , \"Connection: close\\r\\n\" ) ;\n }\n if ( context && php_stream_context_get_option ( context , \"http\" , \"user_agent\" , & ua_zval ) == SUCCESS && Z_TYPE_PP ( ua_zval ) == IS_STRING ) {\n ua_str = Z_STRVAL_PP ( ua_zval ) ;\n }\n else if ( FG ( user_agent ) ) {\n ua_str = FG ( user_agent ) ;\n }\n if ( ( ( have_header & HTTP_HEADER_USER_AGENT ) == 0 ) && ua_str ) {\n # define _UA_HEADER \"User-Agent: %s\\r\\n\" char * ua ;\n size_t ua_len ;\n ua_len = sizeof ( _UA_HEADER ) + strlen ( ua_str ) ;\n if ( ua_len > sizeof ( _UA_HEADER ) ) {\n ua = emalloc ( ua_len + 1 ) ;\n if ( ( ua_len = slprintf ( ua , ua_len , _UA_HEADER , ua_str ) ) > 0 ) {\n ua [ ua_len ] = 0 ;\n php_stream_write ( stream , ua , ua_len ) ;\n }\n else {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"Cannot construct User-agent header\" ) ;\n }\n if ( ua ) {\n efree ( ua ) ;\n }\n }\n }\n if ( user_headers ) {\n if ( header_init && context && ! ( have_header & HTTP_HEADER_CONTENT_LENGTH ) && php_stream_context_get_option ( context , \"http\" , \"content\" , & tmpzval ) == SUCCESS && Z_TYPE_PP ( tmpzval ) == IS_STRING && Z_STRLEN_PP ( tmpzval ) > 0 ) {\n scratch_len = slprintf ( scratch , scratch_len , \"Content-Length: %d\\r\\n\" , Z_STRLEN_PP ( tmpzval ) ) ;\n php_stream_write ( stream , scratch , scratch_len ) ;\n have_header |= HTTP_HEADER_CONTENT_LENGTH ;\n }\n php_stream_write ( stream , user_headers , strlen ( user_headers ) ) ;\n php_stream_write ( stream , \"\\r\\n\" , sizeof ( \"\\r\\n\" ) - 1 ) ;\n efree ( user_headers ) ;\n }\n if ( header_init && context && php_stream_context_get_option ( context , \"http\" , \"content\" , & tmpzval ) == SUCCESS && Z_TYPE_PP ( tmpzval ) == IS_STRING && Z_STRLEN_PP ( tmpzval ) > 0 ) {\n if ( ! ( have_header & HTTP_HEADER_CONTENT_LENGTH ) ) {\n scratch_len = slprintf ( scratch , scratch_len , \"Content-Length: %d\\r\\n\" , Z_STRLEN_PP ( tmpzval ) ) ;\n php_stream_write ( stream , scratch , scratch_len ) ;\n }\n if ( ! ( have_header & HTTP_HEADER_TYPE ) ) {\n php_stream_write ( stream , \"Content-Type: application/x-www-form-urlencoded\\r\\n\" , sizeof ( \"Content-Type: application/x-www-form-urlencoded\\r\\n\" ) - 1 ) ;\n php_error_docref ( NULL TSRMLS_CC , E_NOTICE , \"Content-type not specified assuming application/x-www-form-urlencoded\" ) ;\n }\n php_stream_write ( stream , \"\\r\\n\" , sizeof ( \"\\r\\n\" ) - 1 ) ;\n php_stream_write ( stream , Z_STRVAL_PP ( tmpzval ) , Z_STRLEN_PP ( tmpzval ) ) ;\n }\n else {\n php_stream_write ( stream , \"\\r\\n\" , sizeof ( \"\\r\\n\" ) - 1 ) ;\n }\n location [ 0 ] = '\\0' ;\n if ( ! EG ( active_symbol_table ) ) {\n zend_rebuild_symbol_table ( TSRMLS_C ) ;\n }\n if ( header_init ) {\n zval * ztmp ;\n MAKE_STD_ZVAL ( ztmp ) ;\n array_init ( ztmp ) ;\n ZEND_SET_SYMBOL ( EG ( active_symbol_table ) , \"http_response_header\" , ztmp ) ;\n }\n {\n zval * * rh ;\n if ( zend_hash_find ( EG ( active_symbol_table ) , \"http_response_header\" , sizeof ( \"http_response_header\" ) , ( void * * ) & rh ) != SUCCESS || Z_TYPE_PP ( rh ) != IS_ARRAY ) {\n php_stream_wrapper_log_error ( wrapper , options TSRMLS_CC , \"HTTP request failed, http_response_header overwritten\" ) ;\n goto out ;\n }\n response_header = * rh ;\n Z_ADDREF_P ( response_header ) ;\n }\n if ( ! php_stream_eof ( stream ) ) {\n size_t tmp_line_len ;\n if ( php_stream_get_line ( stream , tmp_line , sizeof ( tmp_line ) - 1 , & tmp_line_len ) != NULL ) {\n zval * http_response ;\n if ( tmp_line_len > 9 ) {\n response_code = atoi ( tmp_line + 9 ) ;\n }\n else {\n response_code = 0 ;\n }\n if ( context && SUCCESS == php_stream_context_get_option ( context , \"http\" , \"ignore_errors\" , & tmpzval ) ) {\n ignore_errors = zend_is_true ( * tmpzval ) ;\n }\n if ( ( options & STREAM_ONLY_GET_HEADERS ) || ignore_errors ) {\n reqok = 1 ;\n }\n if ( response_code >= 100 && response_code < 200 ) {\n while ( ! php_stream_eof ( stream ) && php_stream_get_line ( stream , tmp_line , sizeof ( tmp_line ) - 1 , & tmp_line_len ) != NULL && ( tmp_line_len < sizeof ( \"HTTP/1\" ) - 1 || strncasecmp ( tmp_line , \"HTTP/1\" , sizeof ( \"HTTP/1\" ) - 1 ) ) ) ;\n if ( tmp_line_len > 9 ) {\n response_code = atoi ( tmp_line + 9 ) ;\n }\n else {\n response_code = 0 ;\n }\n }\n if ( response_code >= 200 && response_code < 400 ) {\n reqok = 1 ;\n }\n else {\n switch ( response_code ) {\n case 403 : php_stream_notify_error ( context , PHP_STREAM_NOTIFY_AUTH_RESULT , tmp_line , response_code ) ;\n break ;\n default : if ( ! tmp_line_len ) {\n tmp_line [ 0 ] = '\\0' ;\n }\n php_stream_notify_error ( context , PHP_STREAM_NOTIFY_FAILURE , tmp_line , response_code ) ;\n }\n }\n if ( tmp_line_len >= 1 && tmp_line [ tmp_line_len - 1 ] == '\\n' ) {\n -- tmp_line_len ;\n if ( tmp_line_len >= 1 && tmp_line [ tmp_line_len - 1 ] == '\\r' ) {\n -- tmp_line_len ;\n }\n }\n MAKE_STD_ZVAL ( http_response ) ;\n ZVAL_STRINGL ( http_response , tmp_line , tmp_line_len , 1 ) ;\n zend_hash_next_index_insert ( Z_ARRVAL_P ( response_header ) , & http_response , sizeof ( zval * ) , NULL ) ;\n }\n }\n else {\n php_stream_wrapper_log_error ( wrapper , options TSRMLS_CC , \"HTTP request failed, unexpected end of socket!\" ) ;\n goto out ;\n }\n http_header_line = emalloc ( HTTP_HEADER_BLOCK_SIZE ) ;\n while ( ! body && ! php_stream_eof ( stream ) ) {\n size_t http_header_line_length ;\n if ( php_stream_get_line ( stream , http_header_line , HTTP_HEADER_BLOCK_SIZE , & http_header_line_length ) && * http_header_line != '\\n' && * http_header_line != '\\r' ) {\n char * e = http_header_line + http_header_line_length - 1 ;\n if ( * e != '\\n' ) {\n do {\n if ( php_stream_get_line ( stream , http_header_line , HTTP_HEADER_BLOCK_SIZE , & http_header_line_length ) == NULL ) {\n php_stream_wrapper_log_error ( wrapper , options TSRMLS_CC , \"Failed to read HTTP headers\" ) ;\n goto out ;\n }\n e = http_header_line + http_header_line_length - 1 ;\n }\n while ( * e != '\\n' ) ;\n continue ;\n }\n while ( * e == '\\n' || * e == '\\r' ) {\n e -- ;\n }\n http_header_line_length = e - http_header_line + 1 ;\n http_header_line [ http_header_line_length ] = '\\0' ;\n if ( ! strncasecmp ( http_header_line , \"Location: \" , 10 ) ) {\n if ( context && php_stream_context_get_option ( context , \"http\" , \"follow_location\" , & tmpzval ) == SUCCESS ) {\n SEPARATE_ZVAL ( tmpzval ) ;\n convert_to_long_ex ( tmpzval ) ;\n follow_location = Z_LVAL_PP ( tmpzval ) ;\n }\n else if ( ! ( response_code >= 300 && response_code < 304 || 307 == response_code || 308 == response_code ) ) {\n follow_location = 0 ;\n }\n strlcpy ( location , http_header_line + 10 , sizeof ( location ) ) ;\n }\n else if ( ! strncasecmp ( http_header_line , \"Content-Type: \" , 14 ) ) {\n php_stream_notify_info ( context , PHP_STREAM_NOTIFY_MIME_TYPE_IS , http_header_line + 14 , 0 ) ;\n }\n else if ( ! strncasecmp ( http_header_line , \"Content-Length: \" , 16 ) ) {\n file_size = atoi ( http_header_line + 16 ) ;\n php_stream_notify_file_size ( context , file_size , http_header_line , 0 ) ;\n }\n else if ( ! strncasecmp ( http_header_line , \"Transfer-Encoding: chunked\" , sizeof ( \"Transfer-Encoding: chunked\" ) ) ) {\n if ( ! ( options & STREAM_ONLY_GET_HEADERS ) ) {\n long decode = 1 ;\n if ( context && php_stream_context_get_option ( context , \"http\" , \"auto_decode\" , & tmpzval ) == SUCCESS ) {\n SEPARATE_ZVAL ( tmpzval ) ;\n convert_to_boolean ( * tmpzval ) ;\n decode = Z_LVAL_PP ( tmpzval ) ;\n }\n if ( decode ) {\n transfer_encoding = php_stream_filter_create ( \"dechunk\" , NULL , php_stream_is_persistent ( stream ) TSRMLS_CC ) ;\n if ( transfer_encoding ) {\n continue ;\n }\n }\n }\n }\n if ( http_header_line [ 0 ] == '\\0' ) {\n body = 1 ;\n }\n else {\n zval * http_header ;\n MAKE_STD_ZVAL ( http_header ) ;\n ZVAL_STRINGL ( http_header , http_header_line , http_header_line_length , 1 ) ;\n zend_hash_next_index_insert ( Z_ARRVAL_P ( response_header ) , & http_header , sizeof ( zval * ) , NULL ) ;\n }\n }\n else {\n break ;\n }\n }\n if ( ! reqok || ( location [ 0 ] != '\\0' && follow_location ) ) {\n if ( ! follow_location || ( ( ( options & STREAM_ONLY_GET_HEADERS ) || ignore_errors ) && redirect_max <= 1 ) ) {\n goto out ;\n }\n if ( location [ 0 ] != '\\0' ) php_stream_notify_info ( context , PHP_STREAM_NOTIFY_REDIRECTED , location , 0 ) ;\n php_stream_close ( stream ) ;\n stream = NULL ;\n if ( location [ 0 ] != '\\0' ) {\n char new_path [ HTTP_HEADER_BLOCK_SIZE ] ;\n char loc_path [ HTTP_HEADER_BLOCK_SIZE ] ;\n * new_path = '\\0' ;\n if ( strlen ( location ) < 8 || ( strncasecmp ( location , \"http://\" , sizeof ( \"http://\" ) - 1 ) && strncasecmp ( location , \"https://\" , sizeof ( \"https://\" ) - 1 ) && strncasecmp ( location , \"ftp://\" , sizeof ( \"ftp://\" ) - 1 ) && strncasecmp ( location , \"ftps://\" , sizeof ( \"ftps://\" ) - 1 ) ) ) {\n if ( * location != '/' ) {\n if ( * ( location + 1 ) != '\\0' && resource -> path ) {\n char * s = strrchr ( resource -> path , '/' ) ;\n if ( ! s ) {\n s = resource -> path ;\n if ( ! s [ 0 ] ) {\n efree ( s ) ;\n s = resource -> path = estrdup ( \"/\" ) ;\n }\n else {\n * s = '/' ;\n }\n }\n s [ 1 ] = '\\0' ;\n if ( resource -> path && * ( resource -> path ) == '/' && * ( resource -> path + 1 ) == '\\0' ) {\n snprintf ( loc_path , sizeof ( loc_path ) - 1 , \"%s%s\" , resource -> path , location ) ;\n }\n else {\n snprintf ( loc_path , sizeof ( loc_path ) - 1 , \"%s/%s\" , resource -> path , location ) ;\n }\n }\n else {\n snprintf ( loc_path , sizeof ( loc_path ) - 1 , \"/%s\" , location ) ;\n }\n }\n else {\n strlcpy ( loc_path , location , sizeof ( loc_path ) ) ;\n }\n if ( ( use_ssl && resource -> port != 443 ) || ( ! use_ssl && resource -> port != 80 ) ) {\n snprintf ( new_path , sizeof ( new_path ) - 1 , \"%s://%s:%d%s\" , resource -> scheme , resource -> host , resource -> port , loc_path ) ;\n }\n else {\n snprintf ( new_path , sizeof ( new_path ) - 1 , \"%s://%s%s\" , resource -> scheme , resource -> host , loc_path ) ;\n }\n }\n else {\n strlcpy ( new_path , location , sizeof ( new_path ) ) ;\n }\n php_url_free ( resource ) ;\n if ( ( resource = php_url_parse ( new_path ) ) == NULL ) {\n php_stream_wrapper_log_error ( wrapper , options TSRMLS_CC , \"Invalid redirect URL! %s\" , new_path ) ;\n goto out ;\n }\n # define CHECK_FOR_CNTRL_CHARS ( val ) {\n if ( val ) {\n unsigned char * s , * e ;\n int l ;\n l = php_url_decode ( val , strlen ( val ) ) ;\n s = ( unsigned char * ) val ;\n e = s + l ;\n while ( s < e ) {\n if ( iscntrl ( * s ) ) {\n php_stream_wrapper_log_error ( wrapper , options TSRMLS_CC , \"Invalid redirect URL! %s\" , new_path ) ;\n goto out ;\n }\n s ++ ;\n }\n }\n \\ }\n if ( strncasecmp ( new_path , \"http://\" , sizeof ( \"http://\" ) - 1 ) || strncasecmp ( new_path , \"https://\" , sizeof ( \"https://\" ) - 1 ) ) {\n CHECK_FOR_CNTRL_CHARS ( resource -> user ) CHECK_FOR_CNTRL_CHARS ( resource -> pass ) CHECK_FOR_CNTRL_CHARS ( resource -> path ) }\n stream = php_stream_url_wrap_http_ex ( wrapper , new_path , mode , options , opened_path , context , -- redirect_max , HTTP_WRAPPER_REDIRECTED STREAMS_CC TSRMLS_CC ) ;\n }\n else {\n php_stream_wrapper_log_error ( wrapper , options TSRMLS_CC , \"HTTP request failed! %s\" , tmp_line ) ;\n }\n }\n out : if ( protocol_version ) {\n efree ( protocol_version ) ;\n }\n if ( http_header_line ) {\n efree ( http_header_line ) ;\n }\n if ( scratch ) {\n efree ( scratch ) ;\n }\n if ( resource ) {\n php_url_free ( resource ) ;\n }\n if ( stream ) {\n if ( header_init ) {\n stream -> wrapperdata = response_header ;\n }\n else {\n if ( response_header ) {\n Z_DELREF_P ( response_header ) ;\n }\n }\n php_stream_notify_progress_init ( context , 0 , file_size ) ;\n if ( options & STREAM_WILL_CAST ) php_stream_set_chunk_size ( stream , chunk_size ) ;\n stream -> flags |= eol_detect ;\n stream -> position = 0 ;\n strlcpy ( stream -> mode , mode , sizeof ( stream -> mode ) ) ;\n if ( transfer_encoding ) {\n php_stream_filter_append ( & stream -> readfilters , transfer_encoding ) ;\n }\n }\n else {\n if ( response_header ) {\n Z_DELREF_P ( response_header ) ;\n }\n if ( transfer_encoding ) {\n php_stream_filter_free ( transfer_encoding TSRMLS_CC ) ;\n }\n }\n return stream ;\n }"}
{"idx": 15957, "target": 0, "func": "static void su_catch_sig ( int sig ) {\n caught_signal = sig ;\n }"}
{"idx": 15958, "target": 0, "func": "int GetCertificateFailure ( JNIEnv * env , const JavaParamRef < jclass > & obj , const JavaParamRef < jobject > & java_web_contents ) {\n enum CertificateFailure {\n NONE = 0 , CERTIFICATE_FAIL_UNSPECIFIED = 1 , CERTIFICATE_FAIL_UNTRUSTED = 2 , CERTIFICATE_FAIL_REVOKED = 3 , CERTIFICATE_FAIL_NOT_YET_VALID = 4 , CERTIFICATE_FAIL_EXPIRED = 5 , CERTIFICATE_FAIL_UNABLE_TO_CHECK_REVOCATION_STATUS = 6 , }\n ;\n content : : WebContents * web_contents = content : : WebContents : : FromJavaWebContents ( java_web_contents ) ;\n content : : NavigationEntry * entry = web_contents -> GetController ( ) . GetVisibleEntry ( ) ;\n if ( ! entry ) return NONE ;\n const content : : SSLStatus & ssl = entry -> GetSSL ( ) ;\n if ( ssl . certificate && entry -> GetURL ( ) . SchemeIsCryptographic ( ) ) {\n if ( net : : IsCertStatusError ( ssl . cert_status ) ) {\n if ( ssl . cert_status & net : : CERT_STATUS_AUTHORITY_INVALID ) {\n return CERTIFICATE_FAIL_UNTRUSTED ;\n }\n if ( ssl . cert_status & net : : CERT_STATUS_REVOKED ) {\n return CERTIFICATE_FAIL_REVOKED ;\n }\n if ( ssl . cert_status & net : : CERT_STATUS_DATE_INVALID ) {\n return CERTIFICATE_FAIL_EXPIRED ;\n }\n if ( ssl . cert_status & net : : CERT_STATUS_UNABLE_TO_CHECK_REVOCATION ) {\n return CERTIFICATE_FAIL_UNABLE_TO_CHECK_REVOCATION_STATUS ;\n }\n return CERTIFICATE_FAIL_UNSPECIFIED ;\n }\n if ( ssl . content_status & content : : SSLStatus : : DISPLAYED_INSECURE_CONTENT || ssl . content_status & content : : SSLStatus : : DISPLAYED_CONTENT_WITH_CERT_ERRORS ) {\n return CERTIFICATE_FAIL_UNSPECIFIED ;\n }\n }\n return NONE ;\n }"}
{"idx": 15959, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FastUnloadTest , DISABLED_ClosingLastTabFinishesUnload ) {\n # if defined ( OS_WIN ) if ( base : : win : : GetVersion ( ) >= base : : win : : VERSION_WIN7 ) return ;\n # endif NavigateToPage ( \"no_listeners\" ) ;\n EXPECT_EQ ( \"unloaded=ohyeah\" , GetCookies ( \"no_listeners\" ) ) ;\n }"}
{"idx": 15960, "target": 0, "func": "static int dissect_rsl_ie_multirate_conf ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_item * ti ;\n proto_tree * ie_tree ;\n guint length ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_MULTIRATE_CONF ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_ie_multirate_conf , & ti , \"MultiRate configuration IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n length = tvb_get_guint8 ( tvb , offset ) ;\n proto_item_set_len ( ti , length + 2 ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_length , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n de_rr_multirate_conf ( tvb , ie_tree , pinfo , offset , length , NULL , 0 ) ;\n offset = offset + length ;\n return offset ;\n }"}
{"idx": 15961, "target": 0, "func": "TSReturnCode TSPluginDescriptorAccept ( TSCont contp ) {\n Action * action = nullptr ;\n HttpProxyPort : : Group & proxy_ports = HttpProxyPort : : global ( ) ;\n for ( int i = 0 , n = proxy_ports . length ( ) ;\n i < n ;\n ++ i ) {\n HttpProxyPort & port = proxy_ports [ i ] ;\n if ( port . isPlugin ( ) ) {\n NetProcessor : : AcceptOptions net ( make_net_accept_options ( & port , - 1 ) ) ;\n action = netProcessor . main_accept ( ( INKContInternal * ) contp , port . m_fd , net ) ;\n }\n }\n return action ? TS_SUCCESS : TS_ERROR ;\n }"}
{"idx": 15962, "target": 0, "func": "int main ( int argc , char * * argv ) {\n using std : : string ;\n if ( argc != 2 ) {\n fprintf ( stderr , \"One argument, the input filename, must be provided.\\n\" ) ;\n return 1 ;\n }\n string filename ( argv [ 1 ] ) ;\n string outfilename = filename . substr ( 0 , filename . find_last_of ( \".\" ) ) + \".ttf\" ;\n string input = woff2 : : GetFileContent ( filename ) ;\n const uint8_t * raw_input = reinterpret_cast < const uint8_t * > ( input . data ( ) ) ;\n string output ( std : : min ( woff2 : : ComputeWOFF2FinalSize ( raw_input , input . size ( ) ) , woff2 : : kDefaultMaxSize ) , 0 ) ;\n woff2 : : WOFF2StringOut out ( & output ) ;\n const bool ok = woff2 : : ConvertWOFF2ToTTF ( raw_input , input . size ( ) , & out ) ;\n if ( ok ) {\n woff2 : : SetFileContents ( outfilename , output . begin ( ) , output . begin ( ) + out . Size ( ) ) ;\n }\n return ok ? 0 : 1 ;\n }"}
{"idx": 15963, "target": 1, "func": "void vp9_quantize_b_32x32_c ( const int16_t * coeff_ptr , intptr_t n_coeffs , int skip_block , const int16_t * zbin_ptr , const int16_t * round_ptr , const int16_t * quant_ptr , const int16_t * quant_shift_ptr , int16_t * qcoeff_ptr , int16_t * dqcoeff_ptr , const int16_t * dequant_ptr , int zbin_oq_value , uint16_t * eob_ptr , const int16_t * scan , const int16_t * iscan ) {\n const int zbins [ 2 ] = {\n ROUND_POWER_OF_TWO ( zbin_ptr [ 0 ] + zbin_oq_value , 1 ) , ROUND_POWER_OF_TWO ( zbin_ptr [ 1 ] + zbin_oq_value , 1 ) }\n ;\n const int nzbins [ 2 ] = {\n zbins [ 0 ] * - 1 , zbins [ 1 ] * - 1 }\n ;\n int idx = 0 ;\n int idx_arr [ 1024 ] ;\n int i , eob = - 1 ;\n ( void ) iscan ;\n vpx_memset ( qcoeff_ptr , 0 , n_coeffs * sizeof ( int16_t ) ) ;\n vpx_memset ( dqcoeff_ptr , 0 , n_coeffs * sizeof ( int16_t ) ) ;\n if ( ! skip_block ) {\n for ( i = 0 ;\n i < n_coeffs ;\n i ++ ) {\n const int rc = scan [ i ] ;\n const int coeff = coeff_ptr [ rc ] ;\n if ( coeff >= zbins [ rc != 0 ] || coeff <= nzbins [ rc != 0 ] ) idx_arr [ idx ++ ] = i ;\n }\n for ( i = 0 ;\n i < idx ;\n i ++ ) {\n const int rc = scan [ idx_arr [ i ] ] ;\n const int coeff = coeff_ptr [ rc ] ;\n const int coeff_sign = ( coeff >> 31 ) ;\n int tmp ;\n int abs_coeff = ( coeff ^ coeff_sign ) - coeff_sign ;\n abs_coeff += ROUND_POWER_OF_TWO ( round_ptr [ rc != 0 ] , 1 ) ;\n abs_coeff = clamp ( abs_coeff , INT16_MIN , INT16_MAX ) ;\n tmp = ( ( ( ( abs_coeff * quant_ptr [ rc != 0 ] ) >> 16 ) + abs_coeff ) * quant_shift_ptr [ rc != 0 ] ) >> 15 ;\n qcoeff_ptr [ rc ] = ( tmp ^ coeff_sign ) - coeff_sign ;\n dqcoeff_ptr [ rc ] = qcoeff_ptr [ rc ] * dequant_ptr [ rc != 0 ] / 2 ;\n if ( tmp ) eob = idx_arr [ i ] ;\n }\n }\n * eob_ptr = eob + 1 ;\n }"}
{"idx": 15964, "target": 1, "func": "static void _LMBCSClose ( UConverter * _this ) {\n if ( _this -> extraInfo != NULL ) {\n ulmbcs_byte_t Ix ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) _this -> extraInfo ;\n for ( Ix = 0 ;\n Ix <= ULMBCS_GRP_LAST ;\n Ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ Ix ] != NULL ) ucnv_unloadSharedDataIfReady ( extraInfo -> OptGrpConverter [ Ix ] ) ;\n }\n if ( ! _this -> isExtraLocal ) {\n uprv_free ( _this -> extraInfo ) ;\n _this -> extraInfo = NULL ;\n }\n }\n }"}
{"idx": 15965, "target": 0, "func": "static SplineChar * hashglyphfound ( SplineChar * sc , UHash * uhash , NHash * nhash , int layer ) {\n int hash ;\n struct splinecharlist * test ;\n struct altuni * alt ;\n if ( sc -> unicodeenc == - 1 && sc -> altuni == NULL ) {\n hash = hashname ( sc -> name ) ;\n for ( test = ( * nhash ) [ hash ] ;\n test != NULL ;\n test = test -> next ) if ( strcmp ( test -> sc -> name , sc -> name ) == 0 && glyphmatches ( sc , test -> sc , layer ) ) return ( test -> sc ) ;\n }\n else if ( sc -> unicodeenc != - 1 ) {\n hash = sc -> unicodeenc & 0xffff ;\n for ( test = ( * uhash ) [ hash ] ;\n test != NULL ;\n test = test -> next ) if ( glyphmatches ( sc , test -> sc , layer ) ) return ( test -> sc ) ;\n }\n for ( alt = sc -> altuni ;\n alt != NULL ;\n alt = alt -> next ) {\n hash = alt -> unienc & 0xffff ;\n for ( test = ( * uhash ) [ hash ] ;\n test != NULL ;\n test = test -> next ) if ( glyphmatches ( sc , test -> sc , layer ) ) return ( test -> sc ) ;\n }\n return ( NULL ) ;\n }"}
{"idx": 15966, "target": 0, "func": "static int dissect_h245_SendTerminalCapabilitySet ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_SendTerminalCapabilitySet , SendTerminalCapabilitySet_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 15967, "target": 1, "func": "static int ilbc_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n ILBCDecContext * s = avctx -> priv_data ;\n AVFrame * frame = data ;\n int ret ;\n if ( s -> decoder . no_of_bytes > buf_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"iLBC frame too short (%u, should be %u)\\n\" , buf_size , s -> decoder . no_of_bytes ) ;\n return AVERROR_INVALIDDATA ;\n }\n frame -> nb_samples = s -> decoder . blockl ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n WebRtcIlbcfix_DecodeImpl ( ( WebRtc_Word16 * ) frame -> data [ 0 ] , ( const WebRtc_UWord16 * ) buf , & s -> decoder , 1 ) ;\n * got_frame_ptr = 1 ;\n return s -> decoder . no_of_bytes ;\n }"}
{"idx": 15968, "target": 0, "func": "static inline void xan_wc3_output_pixel_run ( XanContext * s , AVFrame * frame , const unsigned char * pixel_buffer , int x , int y , int pixel_count ) {\n int stride ;\n int line_inc ;\n int index ;\n int current_x ;\n int width = s -> avctx -> width ;\n unsigned char * palette_plane ;\n palette_plane = frame -> data [ 0 ] ;\n stride = frame -> linesize [ 0 ] ;\n line_inc = stride - width ;\n index = y * stride + x ;\n current_x = x ;\n while ( pixel_count && index < s -> frame_size ) {\n int count = FFMIN ( pixel_count , width - current_x ) ;\n memcpy ( palette_plane + index , pixel_buffer , count ) ;\n pixel_count -= count ;\n index += count ;\n pixel_buffer += count ;\n current_x += count ;\n if ( current_x >= width ) {\n index += line_inc ;\n current_x = 0 ;\n }\n }\n }"}
{"idx": 15969, "target": 0, "func": "static void _slurm_rpc_sib_job_unlock ( uint32_t uid , slurm_msg_t * msg ) {\n int rc ;\n sib_msg_t * sib_msg = msg -> data ;\n if ( ! msg -> conn ) {\n error ( \"Security violation, SIB_JOB_UNLOCK RPC from uid=%d\" , uid ) ;\n slurm_send_rc_msg ( msg , ESLURM_ACCESS_DENIED ) ;\n return ;\n }\n rc = fed_mgr_job_lock_unset ( sib_msg -> job_id , sib_msg -> cluster_id ) ;\n slurm_send_rc_msg ( msg , rc ) ;\n }"}
{"idx": 15970, "target": 0, "func": "void item_init ( void ) {\n item_user_lock_init ( ) ;\n uuid_short_init ( ) ;\n }"}
{"idx": 15971, "target": 0, "func": "static int reply_parse ( u8 * packet , int length ) {\n int j = 0 , k = 0 ;\n u16 _t ;\n u32 _t32 ;\n char tmp_name [ 256 ] , cmp_name [ 256 ] ;\n u16 trans_id , questions , answers , authority , additional , datalength ;\n u16 flags = 0 ;\n u32 ttl , ttl_r = 0xffffffff ;\n struct reply reply ;\n struct request * req = NULL ;\n unsigned int i ;\n GET16 ( trans_id ) ;\n GET16 ( flags ) ;\n GET16 ( questions ) ;\n GET16 ( answers ) ;\n GET16 ( authority ) ;\n GET16 ( additional ) ;\n ( void ) authority ;\n ( void ) additional ;\n req = request_find_from_trans_id ( trans_id ) ;\n if ( ! req ) return - 1 ;\n memset ( & reply , 0 , sizeof ( reply ) ) ;\n if ( ! ( flags & 0x8000 ) ) return - 1 ;\n if ( flags & 0x020f ) {\n goto err ;\n }\n # define SKIP_NAME do {\n tmp_name [ 0 ] = '\\0' ;\n if ( name_parse ( packet , length , & j , tmp_name , sizeof ( tmp_name ) ) < 0 ) goto err ;\n }\n while ( 0 ) # define TEST_NAME do {\n tmp_name [ 0 ] = '\\0' ;\n cmp_name [ 0 ] = '\\0' ;\n k = j ;\n if ( name_parse ( packet , length , & j , tmp_name , sizeof ( tmp_name ) ) < 0 ) goto err ;\n if ( name_parse ( req -> request , req -> request_len , & k , cmp_name , sizeof ( cmp_name ) ) < 0 ) goto err ;\n if ( memcmp ( tmp_name , cmp_name , strlen ( tmp_name ) ) != 0 ) return ( - 1 ) ;\n }\n while ( 0 ) reply . type = req -> request_type ;\n for ( i = 0 ;\n i < questions ;\n ++ i ) {\n TEST_NAME ;\n j += 4 ;\n if ( j > length ) goto err ;\n }\n for ( i = 0 ;\n i < answers ;\n ++ i ) {\n u16 type , class ;\n SKIP_NAME ;\n GET16 ( type ) ;\n GET16 ( class ) ;\n GET32 ( ttl ) ;\n GET16 ( datalength ) ;\n if ( type == TYPE_A && class == CLASS_INET ) {\n int addrcount , addrtocopy ;\n if ( req -> request_type != TYPE_A ) {\n j += datalength ;\n continue ;\n }\n if ( ( datalength & 3 ) != 0 ) goto err ;\n addrcount = datalength >> 2 ;\n addrtocopy = MIN ( MAX_ADDRS - reply . data . a . addrcount , ( unsigned ) addrcount ) ;\n ttl_r = MIN ( ttl_r , ttl ) ;\n if ( j + 4 * addrtocopy > length ) goto err ;\n memcpy ( & reply . data . a . addresses [ reply . data . a . addrcount ] , packet + j , 4 * addrtocopy ) ;\n j += 4 * addrtocopy ;\n reply . data . a . addrcount += addrtocopy ;\n reply . have_answer = 1 ;\n if ( reply . data . a . addrcount == MAX_ADDRS ) break ;\n }\n else if ( type == TYPE_PTR && class == CLASS_INET ) {\n if ( req -> request_type != TYPE_PTR ) {\n j += datalength ;\n continue ;\n }\n if ( name_parse ( packet , length , & j , reply . data . ptr . name , sizeof ( reply . data . ptr . name ) ) < 0 ) goto err ;\n ttl_r = MIN ( ttl_r , ttl ) ;\n reply . have_answer = 1 ;\n break ;\n }\n else if ( type == TYPE_AAAA && class == CLASS_INET ) {\n int addrcount , addrtocopy ;\n if ( req -> request_type != TYPE_AAAA ) {\n j += datalength ;\n continue ;\n }\n if ( ( datalength & 15 ) != 0 ) goto err ;\n addrcount = datalength >> 4 ;\n addrtocopy = MIN ( MAX_ADDRS - reply . data . aaaa . addrcount , ( unsigned ) addrcount ) ;\n ttl_r = MIN ( ttl_r , ttl ) ;\n if ( j + 16 * addrtocopy > length ) goto err ;\n memcpy ( & reply . data . aaaa . addresses [ reply . data . aaaa . addrcount ] , packet + j , 16 * addrtocopy ) ;\n reply . data . aaaa . addrcount += addrtocopy ;\n j += 16 * addrtocopy ;\n reply . have_answer = 1 ;\n if ( reply . data . aaaa . addrcount == MAX_ADDRS ) break ;\n }\n else {\n j += datalength ;\n }\n }\n reply_handle ( req , flags , ttl_r , & reply ) ;\n return 0 ;\n err : if ( req ) reply_handle ( req , flags , 0 , NULL ) ;\n return - 1 ;\n }"}
{"idx": 15972, "target": 0, "func": "PHP_FUNCTION ( uwsgi_cache_update ) {\n char * key = NULL ;\n int keylen ;\n char * value = NULL ;\n int vallen ;\n uint64_t expires = 0 ;\n char * cache = NULL ;\n int cachelen = 0 ;\n if ( ! uwsgi . caches ) RETURN_NULL ( ) ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"ss|ls\" , & key , & keylen , & value , & vallen , & expires , & cache , & cachelen ) == FAILURE ) {\n RETURN_NULL ( ) ;\n }\n if ( ! uwsgi_cache_magic_set ( key , keylen , value , vallen , expires , UWSGI_CACHE_FLAG_UPDATE , cache ) ) {\n RETURN_TRUE ;\n }\n RETURN_NULL ( ) ;\n }"}
{"idx": 15973, "target": 0, "func": "IN_PROC_BROWSER_TEST_P ( BrowserCloseManagerBrowserTest , TestHangInBeforeUnloadMultipleTabs ) {\n ASSERT_NO_FATAL_FAILURE ( ui_test_utils : : NavigateToURL ( browsers_ [ 0 ] , embedded_test_server ( ) -> GetURL ( \"/beforeunload_hang.html\" ) ) ) ;\n AddBlankTabAndShow ( browsers_ [ 0 ] ) ;\n ASSERT_NO_FATAL_FAILURE ( ui_test_utils : : NavigateToURL ( browsers_ [ 0 ] , embedded_test_server ( ) -> GetURL ( \"/beforeunload.html\" ) ) ) ;\n AddBlankTabAndShow ( browsers_ [ 0 ] ) ;\n ASSERT_NO_FATAL_FAILURE ( ui_test_utils : : NavigateToURL ( browsers_ [ 0 ] , embedded_test_server ( ) -> GetURL ( \"/beforeunload_hang.html\" ) ) ) ;\n PrepareForDialog ( browsers_ [ 0 ] -> tab_strip_model ( ) -> GetWebContentsAt ( 1 ) ) ;\n RepeatedNotificationObserver cancel_observer ( chrome : : NOTIFICATION_BROWSER_CLOSE_CANCELLED , 1 ) ;\n chrome : : CloseAllBrowsersAndQuit ( ) ;\n ASSERT_NO_FATAL_FAILURE ( CancelClose ( ) ) ;\n cancel_observer . Wait ( ) ;\n EXPECT_FALSE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_EQ ( 3 , browsers_ [ 0 ] -> tab_strip_model ( ) -> count ( ) ) ;\n RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , 1 ) ;\n chrome : : CloseAllBrowsersAndQuit ( ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n close_observer . Wait ( ) ;\n EXPECT_TRUE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_TRUE ( BrowserList : : GetInstance ( ) -> empty ( ) ) ;\n }"}
{"idx": 15974, "target": 0, "func": "xmlRegisterNodeFunc xmlRegisterNodeDefault ( xmlRegisterNodeFunc func ) {\n xmlRegisterNodeFunc old = xmlRegisterNodeDefaultValue ;\n __xmlRegisterCallbacks = 1 ;\n xmlRegisterNodeDefaultValue = func ;\n return ( old ) ;\n }"}
{"idx": 15975, "target": 0, "func": "static int dissect_t38_T_primary_ifp_packet ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 246 \"../../asn1/t38/t38.cnf\" primary_part = TRUE ;\n offset = dissect_per_open_type ( tvb , offset , actx , tree , hf_index , dissect_t38_IFPPacket ) ;\n # line 248 \"../../asn1/t38/t38.cnf\" if ( p_t38_packet_conv && ( ! actx -> pinfo -> flags . in_error_pkt ) && ( ( gint32 ) seq_number != p_t38_packet_conv_info -> last_seqnum ) && ! ( t38_info -> type_msg == 1 && t38_info -> Data_Field_field_type_value == 7 && t38_info -> frame_num_first_t4_data == 0 ) ) tap_queue_packet ( t38_tap , actx -> pinfo , t38_info ) ;\n if ( p_t38_conv ) p_t38_conv_info -> last_seqnum = ( gint32 ) seq_number ;\n return offset ;\n }"}
{"idx": 15976, "target": 0, "func": "static int main_help ( void ) {\n main_version ( ) ;\n XPR ( NTR \"usage: xdelta3 [command/options] [input [output]]\\n\" ) ;\n XPR ( NTR \"make patch:\\n\" ) ;\n XPR ( NTR \"\\n\" ) ;\n XPR ( NTR \" xdelta3.exe -e -s old_file new_file delta_file\\n\" ) ;\n XPR ( NTR \"\\n\" ) ;\n XPR ( NTR \"apply patch:\\n\" ) ;\n XPR ( NTR \"\\n\" ) ;\n XPR ( NTR \" xdelta3.exe -d -s old_file delta_file decoded_new_file\\n\" ) ;\n XPR ( NTR \"\\n\" ) ;\n XPR ( NTR \"special command names:\\n\" ) ;\n XPR ( NTR \" config prints xdelta3 configuration\\n\" ) ;\n XPR ( NTR \" decode decompress the input\\n\" ) ;\n XPR ( NTR \" encode compress the input%s\\n\" , XD3_ENCODER ? \"\" : \" [Not compiled]\" ) ;\n # if REGRESSION_TEST XPR ( NTR \" test run the builtin tests\\n\" ) ;\n # endif # if VCDIFF_TOOLS XPR ( NTR \"special commands for VCDIFF inputs:\\n\" ) ;\n XPR ( NTR \" printdelta print information about the entire delta\\n\" ) ;\n XPR ( NTR \" printhdr print information about the first window\\n\" ) ;\n XPR ( NTR \" printhdrs print information about all windows\\n\" ) ;\n XPR ( NTR \" recode encode with new application/secondary settings\\n\" ) ;\n XPR ( NTR \" merge merge VCDIFF inputs (see below)\\n\" ) ;\n # endif XPR ( NTR \"merge patches:\\n\" ) ;\n XPR ( NTR \"\\n\" ) ;\n XPR ( NTR \" xdelta3 merge -m 1.vcdiff -m 2.vcdiff 3.vcdiff merged.vcdiff\\n\" ) ;\n XPR ( NTR \"\\n\" ) ;\n XPR ( NTR \"standard options:\\n\" ) ;\n XPR ( NTR \" -0 .. -9 compression level\\n\" ) ;\n XPR ( NTR \" -c use stdout\\n\" ) ;\n XPR ( NTR \" -d decompress\\n\" ) ;\n XPR ( NTR \" -e compress%s\\n\" , XD3_ENCODER ? \"\" : \" [Not compiled]\" ) ;\n XPR ( NTR \" -f force (overwrite, ignore trailing garbage)\\n\" ) ;\n # if EXTERNAL_COMPRESSION XPR ( NTR \" -F force the external-compression subprocess\\n\" ) ;\n # endif XPR ( NTR \" -h show help\\n\" ) ;\n XPR ( NTR \" -q be quiet\\n\" ) ;\n XPR ( NTR \" -v be verbose (max 2)\\n\" ) ;\n XPR ( NTR \" -V show version\\n\" ) ;\n XPR ( NTR \"memory options:\\n\" ) ;\n XPR ( NTR \" -B bytes source window size\\n\" ) ;\n XPR ( NTR \" -W bytes input window size\\n\" ) ;\n XPR ( NTR \" -P size compression duplicates window\\n\" ) ;\n XPR ( NTR \" -I size instruction buffer size (0 = unlimited)\\n\" ) ;\n XPR ( NTR \"compression options:\\n\" ) ;\n XPR ( NTR \" -s source source file to copy from (if any)\\n\" ) ;\n XPR ( NTR \" -S [djw|fgk] enable/disable secondary compression\\n\" ) ;\n XPR ( NTR \" -N disable small string-matching compression\\n\" ) ;\n XPR ( NTR \" -D disable external decompression (encode/decode)\\n\" ) ;\n XPR ( NTR \" -R disable external recompression (decode)\\n\" ) ;\n XPR ( NTR \" -n disable checksum (encode/decode)\\n\" ) ;\n XPR ( NTR \" -C soft config (encode, undocumented)\\n\" ) ;\n XPR ( NTR \" -A [apphead] disable/provide application header (encode)\\n\" ) ;\n XPR ( NTR \" -J disable output (check/compute only)\\n\" ) ;\n XPR ( NTR \" -T use alternate code table (test)\\n\" ) ;\n XPR ( NTR \" -m arguments for \\\"merge\\\"\\n\" ) ;\n XPR ( NTR \"the XDELTA environment variable may contain extra args:\\n\" ) ;\n XPR ( NTR \" XDELTA=\\\"-s source-x.y.tar.gz\\\" \\\\\\n\" ) ;\n XPR ( NTR \" tar --use-compress-program=xdelta3 \\\\\\n\" ) ;\n XPR ( NTR \" -cf target-x.z.tar.gz.vcdiff target-x.y\\n\" ) ;\n return EXIT_FAILURE ;\n }"}
{"idx": 15977, "target": 0, "func": "int __glob_pattern_p ( pattern , quote ) const char * pattern ;\n int quote ;\n {\n return __glob_pattern_type ( pattern , quote ) == 1 ;\n }"}
{"idx": 15978, "target": 1, "func": "void kadmin_getprinc ( int argc , char * argv [ ] ) {\n kadm5_principal_ent_rec dprinc ;\n krb5_principal princ = NULL ;\n krb5_error_code retval ;\n char * canon = NULL , * princstr = NULL , * modprincstr = NULL ;\n int i ;\n size_t j ;\n if ( ! ( argc == 2 || ( argc == 3 && ! strcmp ( \"-terse\" , argv [ 1 ] ) ) ) ) {\n fprintf ( stderr , _ ( \"usage: get_principal [-terse] principal\\n\" ) ) ;\n return ;\n }\n memset ( & dprinc , 0 , sizeof ( dprinc ) ) ;\n retval = kadmin_parse_name ( argv [ argc - 1 ] , & princ ) ;\n if ( retval ) {\n com_err ( \"get_principal\" , retval , _ ( \"while parsing principal\" ) ) ;\n return ;\n }\n retval = krb5_unparse_name ( context , princ , & canon ) ;\n if ( retval ) {\n com_err ( \"get_principal\" , retval , _ ( \"while canonicalizing principal\" ) ) ;\n goto cleanup ;\n }\n retval = kadm5_get_principal ( handle , princ , & dprinc , KADM5_PRINCIPAL_NORMAL_MASK | KADM5_KEY_DATA ) ;\n if ( retval ) {\n com_err ( \"get_principal\" , retval , _ ( \"while retrieving \\\"%s\\\".\" ) , canon ) ;\n goto cleanup ;\n }\n retval = krb5_unparse_name ( context , dprinc . principal , & princstr ) ;\n if ( retval ) {\n com_err ( \"get_principal\" , retval , _ ( \"while unparsing principal\" ) ) ;\n goto cleanup ;\n }\n retval = krb5_unparse_name ( context , dprinc . mod_name , & modprincstr ) ;\n if ( retval ) {\n com_err ( \"get_principal\" , retval , _ ( \"while unparsing principal\" ) ) ;\n goto cleanup ;\n }\n if ( argc == 2 ) {\n printf ( _ ( \"Principal: %s\\n\" ) , princstr ) ;\n printf ( _ ( \"Expiration date: %s\\n\" ) , dprinc . princ_expire_time ? strdate ( dprinc . princ_expire_time ) : _ ( \"[never]\" ) ) ;\n printf ( _ ( \"Last password change: %s\\n\" ) , dprinc . last_pwd_change ? strdate ( dprinc . last_pwd_change ) : _ ( \"[never]\" ) ) ;\n printf ( _ ( \"Password expiration date: %s\\n\" ) , dprinc . pw_expiration ? strdate ( dprinc . pw_expiration ) : _ ( \"[none]\" ) ) ;\n printf ( _ ( \"Maximum ticket life: %s\\n\" ) , strdur ( dprinc . max_life ) ) ;\n printf ( _ ( \"Maximum renewable life: %s\\n\" ) , strdur ( dprinc . max_renewable_life ) ) ;\n printf ( _ ( \"Last modified: %s (%s)\\n\" ) , strdate ( dprinc . mod_date ) , modprincstr ) ;\n printf ( _ ( \"Last successful authentication: %s\\n\" ) , dprinc . last_success ? strdate ( dprinc . last_success ) : _ ( \"[never]\" ) ) ;\n printf ( \"Last failed authentication: %s\\n\" , dprinc . last_failed ? strdate ( dprinc . last_failed ) : \"[never]\" ) ;\n printf ( _ ( \"Failed password attempts: %d\\n\" ) , dprinc . fail_auth_count ) ;\n printf ( _ ( \"Number of keys: %d\\n\" ) , dprinc . n_key_data ) ;\n for ( i = 0 ;\n i < dprinc . n_key_data ;\n i ++ ) {\n krb5_key_data * key_data = & dprinc . key_data [ i ] ;\n char enctype [ BUFSIZ ] , salttype [ BUFSIZ ] ;\n if ( krb5_enctype_to_name ( key_data -> key_data_type [ 0 ] , FALSE , enctype , sizeof ( enctype ) ) ) snprintf ( enctype , sizeof ( enctype ) , _ ( \"<Encryption type 0x%x>\" ) , key_data -> key_data_type [ 0 ] ) ;\n printf ( \"Key: vno %d, %s, \" , key_data -> key_data_kvno , enctype ) ;\n if ( key_data -> key_data_ver > 1 ) {\n if ( krb5_salttype_to_string ( key_data -> key_data_type [ 1 ] , salttype , sizeof ( salttype ) ) ) snprintf ( salttype , sizeof ( salttype ) , _ ( \"<Salt type 0x%x>\" ) , key_data -> key_data_type [ 1 ] ) ;\n printf ( \"%s\\n\" , salttype ) ;\n }\n else printf ( _ ( \"no salt\\n\" ) ) ;\n }\n printf ( _ ( \"MKey: vno %d\\n\" ) , dprinc . mkvno ) ;\n printf ( _ ( \"Attributes:\" ) ) ;\n for ( j = 0 ;\n j < sizeof ( prflags ) / sizeof ( char * ) ;\n j ++ ) {\n if ( dprinc . attributes & ( krb5_flags ) 1 << j ) printf ( \" %s\" , prflags [ j ] ) ;\n }\n printf ( \"\\n\" ) ;\n printf ( _ ( \"Policy: %s\\n\" ) , dprinc . policy ? dprinc . policy : _ ( \"[none]\" ) ) ;\n }\n else {\n printf ( \"\\\"%s\\\"\\t%d\\t%d\\t%d\\t%d\\t\\\"%s\\\"\\t%d\\t%d\\t%d\\t%d\\t\\\"%s\\\"\" \"\\t%d\\t%d\\t%d\\t%d\\t%d\" , princstr , dprinc . princ_expire_time , dprinc . last_pwd_change , dprinc . pw_expiration , dprinc . max_life , modprincstr , dprinc . mod_date , dprinc . attributes , dprinc . kvno , dprinc . mkvno , dprinc . policy ? dprinc . policy : \"[none]\" , dprinc . max_renewable_life , dprinc . last_success , dprinc . last_failed , dprinc . fail_auth_count , dprinc . n_key_data ) ;\n for ( i = 0 ;\n i < dprinc . n_key_data ;\n i ++ ) printf ( \"\\t%d\\t%d\\t%d\\t%d\" , dprinc . key_data [ i ] . key_data_ver , dprinc . key_data [ i ] . key_data_kvno , dprinc . key_data [ i ] . key_data_type [ 0 ] , dprinc . key_data [ i ] . key_data_type [ 1 ] ) ;\n printf ( \"\\n\" ) ;\n }\n cleanup : krb5_free_principal ( context , princ ) ;\n kadm5_free_principal_ent ( handle , & dprinc ) ;\n free ( canon ) ;\n free ( princstr ) ;\n free ( modprincstr ) ;\n }"}
{"idx": 15979, "target": 0, "func": "static char * get_application_no_mime_type_handler_message ( NautilusFile * file , char * uri ) {\n char * uri_for_display ;\n char * name ;\n char * error_message ;\n name = nautilus_file_get_display_name ( file ) ;\n uri_for_display = eel_str_middle_truncate ( name , MAX_URI_IN_DIALOG_LENGTH ) ;\n error_message = g_strdup_printf ( _ ( \"Could not display \u201c%s\u201d.\" ) , uri_for_display ) ;\n g_free ( uri_for_display ) ;\n g_free ( name ) ;\n return error_message ;\n }"}
{"idx": 15980, "target": 0, "func": "static void split_print ( u_char * text , size_t len , struct ip_addr * L3_src ) {\n int ret ;\n if ( GBL_OPTIONS -> regex && regexec ( GBL_OPTIONS -> regex , text , 0 , NULL , 0 ) != 0 ) {\n return ;\n }\n SAFE_REALLOC ( dispbuf , hex_len ( len ) * sizeof ( u_char ) + 1 ) ;\n ret = GBL_FORMAT ( text , len , dispbuf ) ;\n dispbuf [ ret ] = 0 ;\n if ( ! ip_addr_cmp ( L3_src , & curr_conn -> L3_addr1 ) ) gtkui_data_print ( 1 , dispbuf , 0 ) ;\n else gtkui_data_print ( 2 , dispbuf , 0 ) ;\n }"}
{"idx": 15981, "target": 0, "func": "hidden_def ( _nss_dns_gethostbyaddr2_r ) enum nss_status _nss_dns_gethostbyaddr_r ( const void * addr , socklen_t len , int af , struct hostent * result , char * buffer , size_t buflen , int * errnop , int * h_errnop ) {\n return _nss_dns_gethostbyaddr2_r ( addr , len , af , result , buffer , buflen , errnop , h_errnop , NULL ) ;\n }"}
{"idx": 15982, "target": 0, "func": "SPL_METHOD ( SplFileObject , next ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n spl_filesystem_file_free_line ( intern TSRMLS_CC ) ;\n if ( SPL_HAS_FLAG ( intern -> flags , SPL_FILE_OBJECT_READ_AHEAD ) ) {\n spl_filesystem_file_read_line ( getThis ( ) , intern , 1 TSRMLS_CC ) ;\n }\n intern -> u . file . current_line_num ++ ;\n }"}
{"idx": 15983, "target": 0, "func": "static void pxa2xx_cm_write ( void * opaque , hwaddr addr , uint64_t value , unsigned size ) {\n PXA2xxState * s = ( PXA2xxState * ) opaque ;\n switch ( addr ) {\n case CCCR : case CKEN : s -> cm_regs [ addr >> 2 ] = value ;\n break ;\n case OSCC : s -> cm_regs [ addr >> 2 ] &= ~ 0x6c ;\n s -> cm_regs [ addr >> 2 ] |= value & 0x6e ;\n if ( ( value >> 1 ) & 1 ) s -> cm_regs [ addr >> 2 ] |= 1 << 0 ;\n break ;\n default : printf ( \"%s: Bad register \" REG_FMT \"\\n\" , __FUNCTION__ , addr ) ;\n break ;\n }\n }"}
{"idx": 15984, "target": 0, "func": "static gboolean k12_dump_record ( wtap_dumper * wdh , guint32 len , guint8 * buffer , int * err_p ) {\n k12_dump_t * k12 = ( k12_dump_t * ) wdh -> priv ;\n guint32 junky_offset = ( 8192 - ( ( k12 -> file_offset - K12_FILE_HDR_LEN ) % 8192 ) ) % 8192 ;\n if ( len > junky_offset ) {\n if ( junky_offset ) {\n if ( ! wtap_dump_file_write ( wdh , buffer , junky_offset , err_p ) ) return FALSE ;\n }\n if ( ! wtap_dump_file_write ( wdh , dumpy_junk , K12_FILE_BLOB_LEN , err_p ) ) return FALSE ;\n if ( ! wtap_dump_file_write ( wdh , buffer + junky_offset , len - junky_offset , err_p ) ) return FALSE ;\n k12 -> file_offset += len + K12_FILE_BLOB_LEN ;\n k12 -> file_len += len + K12_FILE_BLOB_LEN ;\n }\n else {\n if ( ! wtap_dump_file_write ( wdh , buffer , len , err_p ) ) return FALSE ;\n k12 -> file_offset += len ;\n k12 -> file_len += len ;\n }\n k12 -> num_of_records ++ ;\n return TRUE ;\n }"}
{"idx": 15985, "target": 0, "func": "static YYSIZE_T yysyntax_error ( char * yyresult , int yystate , int yychar ) {\n int yyn = yypact [ yystate ] ;\n if ( ! ( YYPACT_NINF < yyn && yyn <= YYLAST ) ) return 0 ;\n else {\n int yytype = YYTRANSLATE ( yychar ) ;\n YYSIZE_T yysize0 = yytnamerr ( 0 , yytname [ yytype ] ) ;\n YYSIZE_T yysize = yysize0 ;\n YYSIZE_T yysize1 ;\n int yysize_overflow = 0 ;\n enum {\n YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }\n ;\n char const * yyarg [ YYERROR_VERBOSE_ARGS_MAXIMUM ] ;\n int yyx ;\n # if 0 YY_ ( \"syntax error, unexpected %s\" ) ;\n YY_ ( \"syntax error, unexpected %s, expecting %s\" ) ;\n YY_ ( \"syntax error, unexpected %s, expecting %s or %s\" ) ;\n YY_ ( \"syntax error, unexpected %s, expecting %s or %s or %s\" ) ;\n YY_ ( \"syntax error, unexpected %s, expecting %s or %s or %s or %s\" ) ;\n # endif char * yyfmt ;\n char const * yyf ;\n static char const yyunexpected [ ] = \"syntax error, unexpected %s\" ;\n static char const yyexpecting [ ] = \", expecting %s\" ;\n static char const yyor [ ] = \" or %s\" ;\n char yyformat [ sizeof yyunexpected + sizeof yyexpecting - 1 + ( ( YYERROR_VERBOSE_ARGS_MAXIMUM - 2 ) * ( sizeof yyor - 1 ) ) ] ;\n char const * yyprefix = yyexpecting ;\n int yyxbegin = yyn < 0 ? - yyn : 0 ;\n int yychecklim = YYLAST - yyn + 1 ;\n int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS ;\n int yycount = 1 ;\n yyarg [ 0 ] = yytname [ yytype ] ;\n yyfmt = yystpcpy ( yyformat , yyunexpected ) ;\n for ( yyx = yyxbegin ;\n yyx < yyxend ;\n ++ yyx ) if ( yycheck [ yyx + yyn ] == yyx && yyx != YYTERROR ) {\n if ( yycount == YYERROR_VERBOSE_ARGS_MAXIMUM ) {\n yycount = 1 ;\n yysize = yysize0 ;\n yyformat [ sizeof yyunexpected - 1 ] = '\\0' ;\n break ;\n }\n yyarg [ yycount ++ ] = yytname [ yyx ] ;\n yysize1 = yysize + yytnamerr ( 0 , yytname [ yyx ] ) ;\n yysize_overflow |= ( yysize1 < yysize ) ;\n yysize = yysize1 ;\n yyfmt = yystpcpy ( yyfmt , yyprefix ) ;\n yyprefix = yyor ;\n }\n yyf = YY_ ( yyformat ) ;\n yysize1 = yysize + yystrlen ( yyf ) ;\n yysize_overflow |= ( yysize1 < yysize ) ;\n yysize = yysize1 ;\n if ( yysize_overflow ) return YYSIZE_MAXIMUM ;\n if ( yyresult ) {\n char * yyp = yyresult ;\n int yyi = 0 ;\n while ( ( * yyp = * yyf ) != '\\0' ) {\n if ( * yyp == '%' && yyf [ 1 ] == 's' && yyi < yycount ) {\n yyp += yytnamerr ( yyp , yyarg [ yyi ++ ] ) ;\n yyf += 2 ;\n }\n else {\n yyp ++ ;\n yyf ++ ;\n }\n }\n }\n return yysize ;\n }\n }"}
{"idx": 15986, "target": 0, "func": "WRITE_CLASS_ENCODER ( CephXServiceTicketRequest ) struct CephXAuthorizeReply {\n uint64_t nonce_plus_one ;\n void encode ( bufferlist & bl ) const {\n __u8 struct_v = 1 ;\n : : encode ( struct_v , bl ) ;\n : : encode ( nonce_plus_one , bl ) ;\n }\n void decode ( bufferlist : : iterator & bl ) {\n __u8 struct_v ;\n : : decode ( struct_v , bl ) ;\n : : decode ( nonce_plus_one , bl ) ;\n }\n }\n ;\n WRITE_CLASS_ENCODER ( CephXAuthorizeReply ) struct CephXAuthorizer : public AuthAuthorizer {\n private : CephContext * cct ;\n public : uint64_t nonce ;\n bufferlist base_bl ;\n explicit CephXAuthorizer ( CephContext * cct_ ) : AuthAuthorizer ( CEPH_AUTH_CEPHX ) , cct ( cct_ ) , nonce ( 0 ) {\n }\n bool build_authorizer ( ) ;\n bool verify_reply ( bufferlist : : iterator & reply ) override ;\n bool add_challenge ( CephContext * cct , bufferlist & challenge ) override ;\n }"}
{"idx": 15987, "target": 0, "func": "uint64_t TSHttpTxnIdGet ( TSHttpTxn txnp ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n return ( uint64_t ) sm -> sm_id ;\n }"}
{"idx": 15988, "target": 0, "func": "xmlChar * xsltEvalXPathString ( xsltTransformContextPtr ctxt , xmlXPathCompExprPtr comp ) {\n return ( xsltEvalXPathStringNs ( ctxt , comp , 0 , NULL ) ) ;\n }"}
{"idx": 15989, "target": 0, "func": "TSReturnCode TSHttpTxnConfigStringSet ( TSHttpTxn txnp , TSOverridableConfigKey conf , const char * value , int length ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n if ( length == - 1 ) {\n length = strlen ( value ) ;\n }\n HttpSM * s = ( HttpSM * ) txnp ;\n s -> t_state . setup_per_txn_configs ( ) ;\n switch ( conf ) {\n case TS_CONFIG_HTTP_RESPONSE_SERVER_STR : if ( value && length > 0 ) {\n s -> t_state . txn_conf -> proxy_response_server_string = const_cast < char * > ( value ) ;\n s -> t_state . txn_conf -> proxy_response_server_string_len = length ;\n }\n else {\n s -> t_state . txn_conf -> proxy_response_server_string = nullptr ;\n s -> t_state . txn_conf -> proxy_response_server_string_len = 0 ;\n }\n break ;\n case TS_CONFIG_HTTP_GLOBAL_USER_AGENT_HEADER : if ( value && length > 0 ) {\n s -> t_state . txn_conf -> global_user_agent_header = const_cast < char * > ( value ) ;\n s -> t_state . txn_conf -> global_user_agent_header_size = length ;\n }\n else {\n s -> t_state . txn_conf -> global_user_agent_header = nullptr ;\n s -> t_state . txn_conf -> global_user_agent_header_size = 0 ;\n }\n break ;\n case TS_CONFIG_BODY_FACTORY_TEMPLATE_BASE : if ( value && length > 0 ) {\n s -> t_state . txn_conf -> body_factory_template_base = const_cast < char * > ( value ) ;\n s -> t_state . txn_conf -> body_factory_template_base_len = length ;\n }\n else {\n s -> t_state . txn_conf -> body_factory_template_base = nullptr ;\n s -> t_state . txn_conf -> body_factory_template_base_len = 0 ;\n }\n break ;\n case TS_CONFIG_SSL_CERT_FILENAME : if ( value && length > 0 ) {\n s -> t_state . txn_conf -> client_cert_filename = const_cast < char * > ( value ) ;\n }\n break ;\n case TS_CONFIG_SSL_CERT_FILEPATH : if ( value && length > 0 ) {\n s -> t_state . txn_conf -> client_cert_filepath = const_cast < char * > ( value ) ;\n }\n default : return TS_ERROR ;\n break ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 15990, "target": 0, "func": "static void set_ports ( ) {\n char * env ;\n if ( ! mysqld_port && ! opt_disable_networking ) {\n mysqld_port = MYSQL_PORT ;\n # if MYSQL_PORT_DEFAULT == 0 struct servent * serv_ptr ;\n if ( ( serv_ptr = getservbyname ( \"mysql\" , \"tcp\" ) ) ) mysqld_port = ntohs ( ( u_short ) serv_ptr -> s_port ) ;\n # endif if ( ( env = getenv ( \"MYSQL_TCP_PORT\" ) ) ) mysqld_port = ( uint ) atoi ( env ) ;\n }\n if ( ! mysqld_unix_port ) {\n # ifdef __WIN__ mysqld_unix_port = ( char * ) MYSQL_NAMEDPIPE ;\n # else mysqld_unix_port = ( char * ) MYSQL_UNIX_ADDR ;\n # endif if ( ( env = getenv ( \"MYSQL_UNIX_PORT\" ) ) ) mysqld_unix_port = env ;\n }\n }"}
{"idx": 15991, "target": 0, "func": "static void wordchrs ( struct vars * v ) {\n struct state * left ;\n struct state * right ;\n if ( v -> wordchrs != NULL ) {\n NEXT ( ) ;\n return ;\n }\n left = newstate ( v -> nfa ) ;\n right = newstate ( v -> nfa ) ;\n NOERR ( ) ;\n lexword ( v ) ;\n NEXT ( ) ;\n assert ( v -> savenow != NULL && SEE ( '[' ) ) ;\n bracket ( v , left , right ) ;\n assert ( ( v -> savenow != NULL && SEE ( ']' ) ) || ISERR ( ) ) ;\n NEXT ( ) ;\n NOERR ( ) ;\n v -> wordchrs = left ;\n }"}
{"idx": 15992, "target": 0, "func": "static int dissect_spoolss_JOB_INFO_2 ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n proto_item * item ;\n proto_tree * subtree ;\n int struct_start = offset ;\n char * document_name ;\n guint32 devmode_offset , secdesc_offset ;\n subtree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_JOB_INFO_2 , & item , \"Job info level 2\" ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_job_id , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_printername , struct_start , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_machinename , struct_start , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_username , struct_start , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_documentname , struct_start , & document_name ) ;\n proto_item_append_text ( item , \": %s\" , document_name ) ;\n g_free ( document_name ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_notifyname , struct_start , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_datatype , struct_start , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_printprocessor , struct_start , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_parameters , struct_start , NULL ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_drivername , struct_start , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , NULL , di , drep , hf_offset , & devmode_offset ) ;\n dissect_DEVMODE ( tvb , devmode_offset - 4 + struct_start , pinfo , subtree , di , drep ) ;\n offset = dissect_spoolss_relstr ( tvb , offset , pinfo , subtree , di , drep , hf_textstatus , struct_start , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , NULL , di , drep , hf_offset , & secdesc_offset ) ;\n dissect_nt_sec_desc ( tvb , secdesc_offset , pinfo , subtree , drep , FALSE , - 1 , & spoolss_job_access_mask_info ) ;\n offset = dissect_job_status ( tvb , offset , pinfo , subtree , di , drep ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_job_priority , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_job_position , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , NULL , di , drep , hf_start_time , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , NULL , di , drep , hf_end_time , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_job_totalpages , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_job_size , NULL ) ;\n offset = dissect_SYSTEM_TIME ( tvb , offset , pinfo , subtree , di , drep , \"Job Submission Time\" , TRUE , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , NULL , di , drep , hf_elapsed_time , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_job_pagesprinted , NULL ) ;\n proto_item_set_len ( item , offset - struct_start ) ;\n return offset ;\n }"}
{"idx": 15993, "target": 0, "func": "mysql_declare_plugin ( myisam ) {\n MYSQL_STORAGE_ENGINE_PLUGIN , & myisam_storage_engine , \"MyISAM\" , \"MySQL AB\" , \"MyISAM storage engine\" , PLUGIN_LICENSE_GPL , myisam_init , NULL , 0x0100 , NULL , myisam_sysvars , NULL , 0 , }"}
{"idx": 15994, "target": 0, "func": "static int dxva2_h264_start_frame ( AVCodecContext * avctx , av_unused const uint8_t * buffer , av_unused uint32_t size ) {\n const H264Context * h = avctx -> priv_data ;\n struct dxva_context * ctx = avctx -> hwaccel_context ;\n struct dxva2_picture_context * ctx_pic = h -> cur_pic_ptr -> hwaccel_picture_private ;\n if ( ! ctx -> decoder || ! ctx -> cfg || ctx -> surface_count <= 0 ) return - 1 ;\n assert ( ctx_pic ) ;\n fill_picture_parameters ( ctx , h , & ctx_pic -> pp ) ;\n fill_scaling_lists ( ctx , h , & ctx_pic -> qm ) ;\n ctx_pic -> slice_count = 0 ;\n ctx_pic -> bitstream_size = 0 ;\n ctx_pic -> bitstream = NULL ;\n return 0 ;\n }"}
{"idx": 15995, "target": 0, "func": "void dissect_h245_FastStart_OLC ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , char * codec_str ) {\n fast_start = TRUE ;\n upcoming_olc = NULL ;\n upcoming_channel = NULL ;\n codec_type = NULL ;\n dissect_OpenLogicalChannel_PDU ( tvb , pinfo , tree ) ;\n if ( h245_pi != NULL ) h245_pi -> msg_type = H245_OpenLogChn ;\n if ( codec_str && codec_type ) {\n g_strlcpy ( codec_str , codec_type , 50 ) ;\n }\n }"}
{"idx": 15996, "target": 0, "func": "static inline void add_dct ( MpegEncContext * s , int16_t * block , int i , uint8_t * dest , int line_size ) {\n if ( s -> block_last_index [ i ] >= 0 ) {\n s -> dsp . idct_add ( dest , line_size , block ) ;\n }\n }"}
{"idx": 15997, "target": 0, "func": "static int xmlHashGrow ( xmlHashTablePtr table , int size ) {\n unsigned long key ;\n int oldsize , i ;\n xmlHashEntryPtr iter , next ;\n struct _xmlHashEntry * oldtable ;\n # ifdef DEBUG_GROW unsigned long nbElem = 0 ;\n # endif if ( table == NULL ) return ( - 1 ) ;\n if ( size < 8 ) return ( - 1 ) ;\n if ( size > 8 * 2048 ) return ( - 1 ) ;\n oldsize = table -> size ;\n oldtable = table -> table ;\n if ( oldtable == NULL ) return ( - 1 ) ;\n table -> table = xmlMalloc ( size * sizeof ( xmlHashEntry ) ) ;\n if ( table -> table == NULL ) {\n table -> table = oldtable ;\n return ( - 1 ) ;\n }\n memset ( table -> table , 0 , size * sizeof ( xmlHashEntry ) ) ;\n table -> size = size ;\n for ( i = 0 ;\n i < oldsize ;\n i ++ ) {\n if ( oldtable [ i ] . valid == 0 ) continue ;\n key = xmlHashComputeKey ( table , oldtable [ i ] . name , oldtable [ i ] . name2 , oldtable [ i ] . name3 ) ;\n memcpy ( & ( table -> table [ key ] ) , & ( oldtable [ i ] ) , sizeof ( xmlHashEntry ) ) ;\n table -> table [ key ] . next = NULL ;\n }\n for ( i = 0 ;\n i < oldsize ;\n i ++ ) {\n iter = oldtable [ i ] . next ;\n while ( iter ) {\n next = iter -> next ;\n key = xmlHashComputeKey ( table , iter -> name , iter -> name2 , iter -> name3 ) ;\n if ( table -> table [ key ] . valid == 0 ) {\n memcpy ( & ( table -> table [ key ] ) , iter , sizeof ( xmlHashEntry ) ) ;\n table -> table [ key ] . next = NULL ;\n xmlFree ( iter ) ;\n }\n else {\n iter -> next = table -> table [ key ] . next ;\n table -> table [ key ] . next = iter ;\n }\n # ifdef DEBUG_GROW nbElem ++ ;\n # endif iter = next ;\n }\n }\n xmlFree ( oldtable ) ;\n # ifdef DEBUG_GROW xmlGenericError ( xmlGenericErrorContext , \"xmlHashGrow : from %d to %d, %d elems\\n\" , oldsize , size , nbElem ) ;\n # endif return ( 0 ) ;\n }"}
{"idx": 15998, "target": 0, "func": "TEST_F ( SSLErrorAssistantTest , DynamicInterstitialListCertErrorMismatch ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n EXPECT_EQ ( 1u , ssl_info ( ) . public_key_hashes . size ( ) ) ;\n auto config_proto = std : : make_unique < chrome_browser_ssl : : SSLErrorAssistantConfig > ( ) ;\n config_proto -> set_version_id ( kLargeVersionId ) ;\n chrome_browser_ssl : : DynamicInterstitial * filter = config_proto -> add_dynamic_interstitial ( ) ;\n filter -> set_interstitial_type ( chrome_browser_ssl : : DynamicInterstitial : : INTERSTITIAL_PAGE_SSL ) ;\n filter -> set_cert_error ( chrome_browser_ssl : : DynamicInterstitial : : ERR_CERT_DATE_INVALID ) ;\n filter -> add_sha256_hash ( \"sha256uthatch\" ) ;\n filter -> add_sha256_hash ( ssl_info ( ) . public_key_hashes [ 0 ] . ToString ( ) ) ;\n filter -> add_sha256_hash ( \"sha256/treecreeper\" ) ;\n filter -> set_issuer_common_name_regex ( issuer_common_name ( ) ) ;\n filter -> set_issuer_organization_regex ( issuer_organization_name ( ) ) ;\n filter -> set_mitm_software_name ( \"UwS\" ) ;\n error_assistant ( ) -> SetErrorAssistantProto ( std : : move ( config_proto ) ) ;\n EXPECT_FALSE ( error_assistant ( ) -> MatchDynamicInterstitial ( ssl_info ( ) ) ) ;\n }"}
{"idx": 15999, "target": 0, "func": "TSReturnCode TSAIOThreadNumSet ( int thread_num ) {\n # if AIO_MODE == AIO_MODE_NATIVE ( void ) thread_num ;\n return TS_SUCCESS ;\n # else if ( ink_aio_thread_num_set ( thread_num ) ) {\n return TS_SUCCESS ;\n }\n return TS_ERROR ;\n # endif }"}
{"idx": 16000, "target": 0, "func": "static uint64_t byte_budget ( const EVP_CIPHER * cipher ) {\n int ivlen = EVP_CIPHER_iv_length ( cipher ) ;\n int blklen = EVP_CIPHER_block_size ( cipher ) ;\n int len = blklen > 1 ? blklen : ivlen > 1 ? ivlen : 8 ;\n int bits = len * 4 - 1 ;\n return bits < 64 ? UINT64_C ( 1 ) << bits : UINT64_MAX ;\n }"}
{"idx": 16001, "target": 0, "func": "static void SkipEOLN ( cmsIT8 * it8 ) {\n while ( it8 -> sy == SEOLN ) {\n InSymbol ( it8 ) ;\n }\n }"}
{"idx": 16002, "target": 0, "func": "static struct atom_str * to_atom ( const char * s , unsigned short len ) {\n unsigned int hc = hc_str ( s , len ) % atom_table_sz ;\n struct atom_str * c ;\n for ( c = atom_table [ hc ] ;\n c ;\n c = c -> next_atom ) if ( c -> str_len == len && ! strncmp ( s , c -> str_dat , len ) ) return c ;\n c = pool_alloc ( sizeof ( struct atom_str ) + len + 1 ) ;\n c -> str_len = len ;\n strncpy ( c -> str_dat , s , len ) ;\n c -> str_dat [ len ] = 0 ;\n c -> next_atom = atom_table [ hc ] ;\n atom_table [ hc ] = c ;\n atom_cnt ++ ;\n return c ;\n }"}
{"idx": 16003, "target": 0, "func": "gboolean imcb_file_recv_start ( struct im_connection * ic , file_transfer_t * ft ) {\n bee_t * bee = ic -> bee ;\n if ( bee -> ui -> ft_out_start ) {\n return bee -> ui -> ft_out_start ( ic , ft ) ;\n }\n else {\n return FALSE ;\n }\n }"}
{"idx": 16004, "target": 0, "func": "static int32_t getCodesFromLocale ( const char * locale , UScriptCode * scripts , int32_t capacity , UErrorCode * err ) {\n UErrorCode internalErrorCode = U_ZERO_ERROR ;\n char lang [ 8 ] ;\n char script [ 8 ] ;\n int32_t scriptLength ;\n if ( U_FAILURE ( * err ) ) {\n return 0 ;\n }\n uloc_getLanguage ( locale , lang , UPRV_LENGTHOF ( lang ) , & internalErrorCode ) ;\n if ( U_FAILURE ( internalErrorCode ) || internalErrorCode == U_STRING_NOT_TERMINATED_WARNING ) {\n return 0 ;\n }\n if ( 0 == uprv_strcmp ( lang , \"ja\" ) ) {\n return setCodes ( JAPANESE , UPRV_LENGTHOF ( JAPANESE ) , scripts , capacity , err ) ;\n }\n if ( 0 == uprv_strcmp ( lang , \"ko\" ) ) {\n return setCodes ( KOREAN , UPRV_LENGTHOF ( KOREAN ) , scripts , capacity , err ) ;\n }\n scriptLength = uloc_getScript ( locale , script , UPRV_LENGTHOF ( script ) , & internalErrorCode ) ;\n if ( U_FAILURE ( internalErrorCode ) || internalErrorCode == U_STRING_NOT_TERMINATED_WARNING ) {\n return 0 ;\n }\n if ( 0 == uprv_strcmp ( lang , \"zh\" ) && 0 == uprv_strcmp ( script , \"Hant\" ) ) {\n return setCodes ( HAN_BOPO , UPRV_LENGTHOF ( HAN_BOPO ) , scripts , capacity , err ) ;\n }\n if ( scriptLength != 0 ) {\n UScriptCode scriptCode = ( UScriptCode ) u_getPropertyValueEnum ( UCHAR_SCRIPT , script ) ;\n if ( scriptCode != USCRIPT_INVALID_CODE ) {\n if ( scriptCode == USCRIPT_SIMPLIFIED_HAN || scriptCode == USCRIPT_TRADITIONAL_HAN ) {\n scriptCode = USCRIPT_HAN ;\n }\n return setOneCode ( scriptCode , scripts , capacity , err ) ;\n }\n }\n return 0 ;\n }"}
{"idx": 16005, "target": 0, "func": "static int dissect_h245_T_mediaMode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_mediaMode , T_mediaMode_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 16006, "target": 0, "func": "static uint64_t s390_virtio_device_vq_token ( VirtIOS390Device * dev , int vq ) {\n ram_addr_t token_off ;\n token_off = ( dev -> dev_offs + VIRTIO_DEV_OFFS_CONFIG ) + ( vq * VIRTIO_VQCONFIG_LEN ) + VIRTIO_VQCONFIG_OFFS_TOKEN ;\n return ldq_phys ( token_off ) ;\n }"}
{"idx": 16007, "target": 0, "func": "static int parse_lcid ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , const char * text ) {\n proto_item * item ;\n proto_tree * tree ;\n guint32 lcid ;\n lcid = tvb_get_letohl ( tvb , offset ) ;\n item = proto_tree_add_uint_format ( parent_tree , hf_mswsp_lcid , tvb , offset , 4 , lcid , \"%s: 0x%x\" , text , lcid ) ;\n tree = proto_item_add_subtree ( item , ett_LCID ) ;\n proto_tree_add_uint ( tree , hf_mswsp_lcid_langid , tvb , offset + 2 , 2 , lcid ) ;\n proto_tree_add_uint ( tree , hf_mswsp_lcid_sortid , tvb , offset + 1 , 1 , ( lcid >> 16 ) & 0xF ) ;\n offset += 4 ;\n return offset ;\n }"}
{"idx": 16008, "target": 0, "func": "static gsize label_fill_descr ( char * label_str , gsize pos , const header_field_info * hfinfo , const char * text , const char * descr ) {\n gsize name_pos ;\n name_pos = pos = label_concat ( label_str , pos , hfinfo -> name ) ;\n pos = label_concat ( label_str , pos , \": \" ) ;\n pos = label_concat ( label_str , pos , text ? text : \"(null)\" ) ;\n pos = label_concat ( label_str , pos , \" (\" ) ;\n pos = label_concat ( label_str , pos , descr ? descr : \"(null)\" ) ;\n pos = label_concat ( label_str , pos , \")\" ) ;\n if ( pos >= ITEM_LABEL_LENGTH ) {\n label_mark_truncated ( label_str , name_pos ) ;\n }\n return pos ;\n }"}
{"idx": 16009, "target": 1, "func": "static tvbuff_t * decompress_sigcomp_message ( tvbuff_t * bytecode_tvb , tvbuff_t * message_tvb , packet_info * pinfo , proto_tree * udvm_tree , gint udvm_mem_dest , gint print_flags , gint hf_id , gint header_len , gint byte_code_state_len , gint byte_code_id_len , gint udvm_start_ip ) {\n tvbuff_t * decomp_tvb ;\n guint8 * buff = ( guint8 * ) wmem_alloc0 ( wmem_packet_scope ( ) , UDVM_MEMORY_SIZE ) ;\n char string [ 2 ] ;\n guint8 * out_buff ;\n guint32 i = 0 ;\n guint16 n = 0 ;\n guint16 m = 0 ;\n guint16 x ;\n guint k = 0 ;\n guint16 H ;\n guint16 oldH ;\n guint offset = 0 ;\n guint start_offset ;\n guint result_dest ;\n guint code_length = 0 ;\n guint8 current_instruction ;\n guint current_address ;\n guint operand_address ;\n guint input_address ;\n guint16 output_address = 0 ;\n guint next_operand_address ;\n guint8 octet ;\n guint8 msb ;\n guint8 lsb ;\n guint16 byte_copy_right ;\n guint16 byte_copy_left ;\n guint16 input_bit_order ;\n guint16 stack_location ;\n guint16 stack_fill ;\n guint16 result ;\n guint msg_end = tvb_reported_length_remaining ( message_tvb , 0 ) ;\n guint16 result_code = 0 ;\n guint16 old_input_bit_order = 0 ;\n guint16 remaining_bits = 0 ;\n guint16 input_bits = 0 ;\n guint8 bit_order = 0 ;\n gboolean outside_huffman_boundaries = TRUE ;\n gboolean print_in_loop = FALSE ;\n guint16 instruction_address ;\n guint8 no_of_state_create = 0 ;\n guint16 state_length_buff [ 5 ] ;\n guint16 state_address_buff [ 5 ] ;\n guint16 state_instruction_buff [ 5 ] ;\n guint16 state_minimum_access_length_buff [ 5 ] ;\n guint32 used_udvm_cycles = 0 ;\n guint cycles_per_bit ;\n guint maximum_UDVM_cycles ;\n guint8 * sha1buff ;\n unsigned char sha1_digest_buf [ STATE_BUFFER_SIZE ] ;\n sha1_context ctx ;\n proto_item * addr_item = NULL , * ti = NULL ;\n guint16 length ;\n guint16 at_address ;\n guint16 destination ;\n guint16 addr ;\n guint16 value ;\n guint16 p_id_start ;\n guint16 p_id_length ;\n guint16 state_begin ;\n guint16 state_length ;\n guint16 state_address ;\n guint16 state_instruction ;\n guint16 operand_1 ;\n guint16 operand_2 ;\n guint16 value_1 ;\n guint16 value_2 ;\n guint16 at_address_1 ;\n guint16 at_address_2 ;\n guint16 at_address_3 ;\n guint16 j ;\n guint16 bits_n ;\n guint16 lower_bound_n ;\n guint16 upper_bound_n ;\n guint16 uncompressed_n ;\n guint16 position ;\n guint16 ref_destination ;\n guint16 multy_offset ;\n guint16 output_start ;\n guint16 output_length ;\n guint16 minimum_access_length ;\n guint16 state_retention_priority ;\n guint16 requested_feedback_location ;\n guint16 returned_parameters_location ;\n guint16 start_value ;\n gboolean print_level_1 = FALSE ;\n gboolean print_level_2 = FALSE ;\n gboolean print_level_3 = FALSE ;\n gint show_instr_detail_level = 0 ;\n switch ( print_flags ) {\n case 0 : break ;\n case 1 : print_level_1 = TRUE ;\n show_instr_detail_level = 1 ;\n break ;\n case 2 : print_level_1 = TRUE ;\n print_level_2 = TRUE ;\n show_instr_detail_level = 1 ;\n break ;\n case 3 : print_level_1 = TRUE ;\n print_level_2 = TRUE ;\n print_level_3 = TRUE ;\n show_instr_detail_level = 2 ;\n break ;\n default : print_level_1 = TRUE ;\n show_instr_detail_level = 1 ;\n break ;\n }\n buff [ 0 ] = ( UDVM_MEMORY_SIZE >> 8 ) & 0x00FF ;\n buff [ 1 ] = UDVM_MEMORY_SIZE & 0x00FF ;\n buff [ 2 ] = 0 ;\n buff [ 3 ] = 16 ;\n buff [ 4 ] = 0 ;\n buff [ 5 ] = 1 ;\n buff [ 6 ] = ( byte_code_id_len >> 8 ) & 0x00FF ;\n buff [ 7 ] = byte_code_id_len & 0x00FF ;\n buff [ 8 ] = ( byte_code_state_len >> 8 ) & 0x00FF ;\n buff [ 9 ] = byte_code_state_len & 0x00FF ;\n code_length = tvb_reported_length_remaining ( bytecode_tvb , 0 ) ;\n cycles_per_bit = buff [ 2 ] << 8 ;\n cycles_per_bit = cycles_per_bit | buff [ 3 ] ;\n maximum_UDVM_cycles = ( ( 8 * ( header_len + msg_end ) ) + 1000 ) * cycles_per_bit ;\n proto_tree_add_uint ( udvm_tree , hf_sigcomp_message_length , bytecode_tvb , offset , 1 , msg_end ) ;\n proto_tree_add_uint ( udvm_tree , hf_sigcomp_byte_code_length , bytecode_tvb , offset , 1 , code_length ) ;\n proto_tree_add_uint ( udvm_tree , hf_sigcomp_max_udvm_cycles , bytecode_tvb , offset , 1 , maximum_UDVM_cycles ) ;\n i = udvm_mem_dest ;\n if ( print_level_3 ) proto_tree_add_uint ( udvm_tree , hf_sigcomp_load_bytecode_into_udvm_start , bytecode_tvb , offset , 1 , i ) ;\n while ( code_length > offset && i < UDVM_MEMORY_SIZE ) {\n buff [ i ] = tvb_get_guint8 ( bytecode_tvb , offset ) ;\n if ( print_level_3 ) proto_tree_add_uint_format ( udvm_tree , hf_sigcomp_instruction_code , bytecode_tvb , offset , 1 , buff [ i ] , \" Addr: %u Instruction code(0x%02x) \" , i , buff [ i ] ) ;\n i ++ ;\n offset ++ ;\n }\n current_address = udvm_start_ip ;\n input_address = 0 ;\n proto_tree_add_uint_format ( udvm_tree , hf_sigcomp_udvm_execution_stated , bytecode_tvb , offset , 1 , current_address , \"UDVM EXECUTION STARTED at Address: %u Message size %u\" , current_address , msg_end ) ;\n out_buff = ( guint8 * ) g_malloc ( UDVM_MEMORY_SIZE ) ;\n offset = 0 ;\n execute_next_instruction : if ( used_udvm_cycles > maximum_UDVM_cycles ) {\n result_code = 15 ;\n goto decompression_failure ;\n }\n used_udvm_cycles ++ ;\n current_instruction = buff [ current_address & 0xffff ] ;\n if ( show_instr_detail_level == 2 ) {\n addr_item = proto_tree_add_uint_format ( udvm_tree , hf_sigcomp_current_instruction , bytecode_tvb , offset , 1 , current_instruction , \"Addr: %u ## %s(%d)\" , current_address , val_to_str_ext_const ( current_instruction , & udvm_instruction_code_vals_ext , \"INVALID INSTRUCTION\" ) , current_instruction ) ;\n }\n offset ++ ;\n switch ( current_instruction ) {\n case SIGCOMP_INSTR_DECOMPRESSION_FAILURE : if ( result_code == 0 ) result_code = 9 ;\n proto_tree_add_uint_format ( udvm_tree , hf_sigcomp_decompression_failure , NULL , 0 , 0 , current_address , \"Addr: %u ## DECOMPRESSION-FAILURE(0)\" , current_address ) ;\n proto_tree_add_uint ( udvm_tree , hf_sigcomp_wireshark_udvm_diagnostic , NULL , 0 , 0 , result_code ) ;\n if ( output_address > 0 ) {\n decomp_tvb = tvb_new_child_real_data ( message_tvb , out_buff , output_address , output_address ) ;\n tvb_set_free_cb ( decomp_tvb , g_free ) ;\n add_new_data_source ( pinfo , decomp_tvb , \"Decompressed SigComp message(Incomplete)\" ) ;\n proto_tree_add_expert ( udvm_tree , pinfo , & ei_sigcomp_sigcomp_message_decompression_failure , decomp_tvb , 0 , - 1 ) ;\n return decomp_tvb ;\n }\n g_free ( out_buff ) ;\n return NULL ;\n break ;\n case SIGCOMP_INSTR_AND : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (operand_1, operand_2)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = dissect_udvm_reference_operand_memory ( buff , operand_address , & operand_1 , & result_dest ) ;\n if ( next_operand_address < operand_address ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_1 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_1 , \"Addr: %u operand_1 %u\" , operand_address , operand_1 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & operand_2 ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_2 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_2 , \"Addr: %u operand_2 %u\" , operand_address , operand_2 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## AND (operand_1=%u, operand_2=%u)\" , current_address , operand_1 , operand_2 ) ;\n }\n result = operand_1 & operand_2 ;\n lsb = result & 0xff ;\n msb = result >> 8 ;\n buff [ result_dest ] = msb ;\n buff [ ( result_dest + 1 ) & 0xffff ] = lsb ;\n if ( print_level_1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_loading_result , bytecode_tvb , 0 , - 1 , \" Loading result %u at %u\" , result , result_dest ) ;\n }\n current_address = next_operand_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_OR : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (operand_1, operand_2)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = dissect_udvm_reference_operand_memory ( buff , operand_address , & operand_1 , & result_dest ) ;\n if ( next_operand_address < operand_address ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_1 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_1 , \"Addr: %u operand_1 %u\" , operand_address , operand_1 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & operand_2 ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_2 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_2 , \"Addr: %u operand_2 %u\" , operand_address , operand_2 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## OR (operand_1=%u, operand_2=%u)\" , current_address , operand_1 , operand_2 ) ;\n }\n result = operand_1 | operand_2 ;\n lsb = result & 0xff ;\n msb = result >> 8 ;\n buff [ result_dest ] = msb ;\n buff [ ( result_dest + 1 ) & 0xffff ] = lsb ;\n if ( print_level_1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_loading_result , bytecode_tvb , 0 , - 1 , \" Loading result %u at %u\" , result , result_dest ) ;\n }\n current_address = next_operand_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_NOT : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" ($operand_1)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = dissect_udvm_reference_operand_memory ( buff , operand_address , & operand_1 , & result_dest ) ;\n if ( next_operand_address < operand_address ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_1 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_1 , \"Addr: %u operand_1 %u\" , operand_address , operand_1 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## NOT (operand_1=%u)\" , current_address , operand_1 ) ;\n }\n result = operand_1 ^ 0xffff ;\n lsb = result & 0xff ;\n msb = result >> 8 ;\n buff [ result_dest ] = msb ;\n buff [ ( result_dest + 1 ) & 0xffff ] = lsb ;\n if ( print_level_1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_loading_result , bytecode_tvb , 0 , - 1 , \" Loading result %u at %u\" , result , result_dest ) ;\n }\n current_address = next_operand_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_LSHIFT : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" ($operand_1, operand_2)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = dissect_udvm_reference_operand_memory ( buff , operand_address , & operand_1 , & result_dest ) ;\n if ( next_operand_address < operand_address ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_1 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_1 , \"Addr: %u operand_1 %u\" , operand_address , operand_1 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & operand_2 ) ;\n if ( show_instr_detail_level == 2 ) {\n ti = proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_2 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_2 , \"Addr: %u operand_2 %u\" , operand_address , operand_2 ) ;\n }\n if ( operand_2 > 15 ) {\n expert_add_info ( pinfo , ti , & ei_sigcomp_invalid_shift_value ) ;\n break ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## LSHIFT (operand_1=%u, operand_2=%u)\" , current_address , operand_1 , operand_2 ) ;\n }\n result = operand_1 << operand_2 ;\n lsb = result & 0xff ;\n msb = result >> 8 ;\n buff [ result_dest ] = msb ;\n buff [ ( result_dest + 1 ) & 0xffff ] = lsb ;\n if ( print_level_1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_loading_result , bytecode_tvb , 0 , - 1 , \" Loading result %u at %u\" , result , result_dest ) ;\n }\n current_address = next_operand_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_RSHIFT : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (operand_1, operand_2)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = dissect_udvm_reference_operand_memory ( buff , operand_address , & operand_1 , & result_dest ) ;\n if ( next_operand_address < operand_address ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_1 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_1 , \"Addr: %u operand_1 %u\" , operand_address , operand_1 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & operand_2 ) ;\n if ( show_instr_detail_level == 2 ) {\n ti = proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_2 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_2 , \"Addr: %u operand_2 %u\" , operand_address , operand_2 ) ;\n }\n if ( operand_2 > 15 ) {\n expert_add_info ( pinfo , ti , & ei_sigcomp_invalid_shift_value ) ;\n break ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## RSHIFT (operand_1=%u, operand_2=%u)\" , current_address , operand_1 , operand_2 ) ;\n }\n result = operand_1 >> operand_2 ;\n lsb = result & 0xff ;\n msb = result >> 8 ;\n buff [ result_dest ] = msb ;\n buff [ ( result_dest + 1 ) & 0xffff ] = lsb ;\n if ( print_level_1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_loading_result , bytecode_tvb , 0 , - 1 , \" Loading result %u at %u\" , result , result_dest ) ;\n }\n current_address = next_operand_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_ADD : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (operand_1, operand_2)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = dissect_udvm_reference_operand_memory ( buff , operand_address , & operand_1 , & result_dest ) ;\n if ( next_operand_address < operand_address ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_1 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_1 , \"Addr: %u operand_1 %u\" , operand_address , operand_1 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & operand_2 ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_2 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_2 , \"Addr: %u operand_2 %u\" , operand_address , operand_2 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## ADD (operand_1=%u, operand_2=%u)\" , current_address , operand_1 , operand_2 ) ;\n }\n result = operand_1 + operand_2 ;\n lsb = result & 0xff ;\n msb = result >> 8 ;\n buff [ result_dest ] = msb ;\n buff [ ( result_dest + 1 ) & 0xffff ] = lsb ;\n if ( print_level_1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_loading_result , bytecode_tvb , 0 , - 1 , \" Loading result %u at %u\" , result , result_dest ) ;\n }\n current_address = next_operand_address ;\n goto execute_next_instruction ;\n case SIGCOMP_INSTR_SUBTRACT : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (operand_1, operand_2)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = dissect_udvm_reference_operand_memory ( buff , operand_address , & operand_1 , & result_dest ) ;\n if ( next_operand_address < operand_address ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_1 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_1 , \"Addr: %u operand_1 %u\" , operand_address , operand_1 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & operand_2 ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_2 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_2 , \"Addr: %u operand_2 %u\" , operand_address , operand_2 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## SUBTRACT (operand_1=%u, operand_2=%u)\" , current_address , operand_1 , operand_2 ) ;\n }\n result = operand_1 - operand_2 ;\n lsb = result & 0xff ;\n msb = result >> 8 ;\n buff [ result_dest ] = msb ;\n buff [ ( result_dest + 1 ) & 0xffff ] = lsb ;\n if ( print_level_1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_loading_result , bytecode_tvb , 0 , - 1 , \" Loading result %u at %u\" , result , result_dest ) ;\n }\n current_address = next_operand_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_MULTIPLY : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (operand_1, operand_2)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = dissect_udvm_reference_operand_memory ( buff , operand_address , & operand_1 , & result_dest ) ;\n if ( next_operand_address < operand_address ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_1 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_1 , \"Addr: %u operand_1 %u\" , operand_address , operand_1 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & operand_2 ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_2 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_2 , \"Addr: %u operand_2 %u\" , operand_address , operand_2 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## MULTIPLY (operand_1=%u, operand_2=%u)\" , current_address , operand_1 , operand_2 ) ;\n }\n if ( operand_2 == 0 ) {\n result_code = 4 ;\n goto decompression_failure ;\n }\n result = operand_1 * operand_2 ;\n lsb = result & 0xff ;\n msb = result >> 8 ;\n buff [ result_dest ] = msb ;\n buff [ ( result_dest + 1 ) & 0xffff ] = lsb ;\n if ( print_level_1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_loading_result , bytecode_tvb , 0 , - 1 , \" Loading result %u at %u\" , result , result_dest ) ;\n }\n current_address = next_operand_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_DIVIDE : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (operand_1, operand_2)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = dissect_udvm_reference_operand_memory ( buff , operand_address , & operand_1 , & result_dest ) ;\n if ( next_operand_address < operand_address ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_1 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_1 , \"Addr: %u operand_1 %u\" , operand_address , operand_1 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & operand_2 ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_2 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_2 , \"Addr: %u operand_2 %u\" , operand_address , operand_2 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## DIVIDE (operand_1=%u, operand_2=%u)\" , current_address , operand_1 , operand_2 ) ;\n }\n if ( operand_2 == 0 ) {\n result_code = 4 ;\n goto decompression_failure ;\n }\n result = operand_1 / operand_2 ;\n lsb = result & 0xff ;\n msb = result >> 8 ;\n buff [ result_dest ] = msb ;\n buff [ ( result_dest + 1 ) & 0xffff ] = lsb ;\n if ( print_level_1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_loading_result , bytecode_tvb , 0 , - 1 , \" Loading result %u at %u\" , result , result_dest ) ;\n }\n current_address = next_operand_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_REMAINDER : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (operand_1, operand_2)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = dissect_udvm_reference_operand_memory ( buff , operand_address , & operand_1 , & result_dest ) ;\n if ( next_operand_address < operand_address ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_1 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_1 , \"Addr: %u operand_1 %u\" , operand_address , operand_1 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & operand_2 ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_operand_2 , bytecode_tvb , offset , ( next_operand_address - operand_address ) , operand_2 , \"Addr: %u operand_2 %u\" , operand_address , operand_2 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## REMAINDER (operand_1=%u, operand_2=%u)\" , current_address , operand_1 , operand_2 ) ;\n }\n if ( operand_2 == 0 ) {\n result_code = 4 ;\n goto decompression_failure ;\n }\n result = operand_1 - operand_2 * ( operand_1 / operand_2 ) ;\n lsb = result & 0xff ;\n msb = result >> 8 ;\n buff [ result_dest ] = msb ;\n buff [ ( result_dest + 1 ) & 0xffff ] = lsb ;\n if ( print_level_1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_loading_result , bytecode_tvb , 0 , - 1 , \" Loading result %u at %u\" , result , result_dest ) ;\n }\n current_address = next_operand_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_SORT_ASCENDING : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (start, n, k))\" ) ;\n }\n proto_tree_add_expert ( udvm_tree , pinfo , & ei_sigcomp_execution_of_this_instruction_is_not_implemented , bytecode_tvb , 0 , - 1 ) ;\n break ;\n case SIGCOMP_INSTR_SORT_DESCENDING : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (start, n, k))\" ) ;\n }\n proto_tree_add_expert ( udvm_tree , pinfo , & ei_sigcomp_execution_of_this_instruction_is_not_implemented , bytecode_tvb , 0 , - 1 ) ;\n break ;\n case SIGCOMP_INSTR_SHA_1 : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (position, length, destination)\" ) ;\n }\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & position ) ;\n if ( print_level_1 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_position , bytecode_tvb , offset , ( next_operand_address - operand_address ) , position , \"Addr: %u position %u\" , operand_address , position ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & length ) ;\n if ( print_level_1 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_length , bytecode_tvb , offset , ( next_operand_address - operand_address ) , length , \"Addr: %u Length %u\" , operand_address , length ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = dissect_udvm_reference_operand_memory ( buff , operand_address , & ref_destination , & result_dest ) ;\n if ( next_operand_address < operand_address ) goto decompression_failure ;\n if ( print_level_1 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_ref_dest , bytecode_tvb , offset , ( next_operand_address - operand_address ) , ref_destination , \"Addr: %u $destination %u\" , operand_address , ref_destination ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n used_udvm_cycles = used_udvm_cycles + length ;\n n = 0 ;\n k = position ;\n byte_copy_right = buff [ 66 ] << 8 ;\n byte_copy_right = byte_copy_right | buff [ 67 ] ;\n byte_copy_left = buff [ 64 ] << 8 ;\n byte_copy_left = byte_copy_left | buff [ 65 ] ;\n if ( print_level_2 ) {\n proto_tree_add_bytes_format ( udvm_tree , hf_sigcomp_byte_copy , message_tvb , 0 , - 1 , NULL , \"byte_copy_right = %u\" , byte_copy_right ) ;\n }\n sha1_starts ( & ctx ) ;\n while ( n < length ) {\n guint16 handle_now = length ;\n if ( k < byte_copy_right && byte_copy_right <= k + ( length - n ) ) {\n handle_now = byte_copy_right - position ;\n }\n if ( ( k + handle_now >= UDVM_MEMORY_SIZE ) || ( n + handle_now >= UDVM_MEMORY_SIZE ) ) {\n goto decompression_failure ;\n }\n sha1_update ( & ctx , & buff [ k ] , handle_now ) ;\n k = ( k + handle_now ) & 0xffff ;\n n = ( n + handle_now ) & 0xffff ;\n if ( k >= byte_copy_right ) {\n k = byte_copy_left ;\n }\n }\n sha1_finish ( & ctx , sha1_digest_buf ) ;\n k = ref_destination ;\n for ( n = 0 ;\n n < STATE_BUFFER_SIZE ;\n n ++ ) {\n buff [ k ] = sha1_digest_buf [ n ] ;\n k = ( k + 1 ) & 0xffff ;\n n ++ ;\n if ( k == byte_copy_right ) {\n k = byte_copy_left ;\n }\n }\n if ( print_level_2 ) {\n proto_tree_add_bytes_with_length ( udvm_tree , hf_sigcomp_calculated_sha_1 , message_tvb , 0 , - 1 , sha1_digest_buf , STATE_BUFFER_SIZE ) ;\n }\n current_address = next_operand_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_LOAD : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (%%address, %%value)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & addr ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , addr , \"Addr: %u Address %u\" , operand_address , addr ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & value ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_value , bytecode_tvb , offset , ( next_operand_address - operand_address ) , value , \"Addr: %u Value %u\" , operand_address , value ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n lsb = value & 0xff ;\n msb = value >> 8 ;\n buff [ addr ] = msb ;\n buff [ ( addr + 1 ) & 0xffff ] = lsb ;\n if ( print_level_1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## LOAD (%%address=%u, %%value=%u)\" , current_address , addr , value ) ;\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_loading_result , bytecode_tvb , 0 , - 1 , \" Loading bytes at %u Value %u 0x%x\" , addr , value , value ) ;\n }\n current_address = next_operand_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_MULTILOAD : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (%%address, #n, value_0, ..., value_n-1)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & addr ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , addr , \"Addr: %u Address %u\" , operand_address , addr ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_literal_operand ( buff , operand_address , & n ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_literal_num , bytecode_tvb , offset , ( next_operand_address - operand_address ) , n , \"Addr: %u n %u\" , operand_address , n ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## MULTILOAD (%%address=%u, #n=%u, value_0, ..., value_%d)\" , current_address , addr , n , n - 1 ) ;\n }\n operand_address = next_operand_address ;\n used_udvm_cycles = used_udvm_cycles + n ;\n while ( n > 0 ) {\n n = n - 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & value ) ;\n lsb = value & 0xff ;\n msb = value >> 8 ;\n if ( addr >= UDVM_MEMORY_SIZE - 1 ) goto decompression_failure ;\n buff [ addr ] = msb ;\n buff [ ( addr + 1 ) & 0xffff ] = lsb ;\n length = next_operand_address - operand_address ;\n if ( print_level_1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_loading_result , bytecode_tvb , 0 , - 1 , \"Addr: %u Value %5u - Loading bytes at %5u Value %5u 0x%x\" , operand_address , value , addr , value , value ) ;\n }\n addr = addr + 2 ;\n operand_address = next_operand_address ;\n }\n current_address = next_operand_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_PUSH : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (value)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & value ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_value , bytecode_tvb , offset , ( next_operand_address - operand_address ) , value , \"Addr: %u Value %u\" , operand_address , value ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## PUSH (value=%u)\" , current_address , value ) ;\n }\n current_address = next_operand_address ;\n stack_location = ( buff [ 70 ] << 8 ) | buff [ 71 ] ;\n stack_fill = ( buff [ stack_location ] << 8 ) | buff [ ( stack_location + 1 ) & 0xFFFF ] ;\n addr = ( stack_location + stack_fill * 2 + 2 ) & 0xFFFF ;\n if ( addr >= UDVM_MEMORY_SIZE - 1 ) goto decompression_failure ;\n buff [ addr ] = ( value >> 8 ) & 0x00FF ;\n buff [ ( addr + 1 ) & 0xFFFF ] = value & 0x00FF ;\n if ( stack_location >= UDVM_MEMORY_SIZE - 1 ) goto decompression_failure ;\n stack_fill = ( stack_fill + 1 ) & 0xFFFF ;\n buff [ stack_location ] = ( stack_fill >> 8 ) & 0x00FF ;\n buff [ ( stack_location + 1 ) & 0xFFFF ] = stack_fill & 0x00FF ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_POP : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (value)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & destination ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , destination , \"Addr: %u Value %u\" , operand_address , destination ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## POP (address=%u)\" , current_address , destination ) ;\n }\n current_address = next_operand_address ;\n stack_location = ( buff [ 70 ] << 8 ) | buff [ 71 ] ;\n stack_fill = ( buff [ stack_location ] << 8 ) | buff [ ( stack_location + 1 ) & 0xFFFF ] ;\n if ( stack_fill == 0 ) {\n result_code = 16 ;\n goto decompression_failure ;\n }\n if ( stack_location >= UDVM_MEMORY_SIZE - 1 ) goto decompression_failure ;\n stack_fill = ( stack_fill - 1 ) & 0xFFFF ;\n buff [ stack_location ] = ( stack_fill >> 8 ) & 0x00FF ;\n buff [ ( stack_location + 1 ) & 0xFFFF ] = stack_fill & 0x00FF ;\n addr = ( stack_location + stack_fill * 2 + 2 ) & 0xFFFF ;\n if ( addr >= UDVM_MEMORY_SIZE - 1 ) goto decompression_failure ;\n value = ( buff [ addr ] << 8 ) | buff [ ( addr + 1 ) & 0xFFFF ] ;\n if ( destination >= UDVM_MEMORY_SIZE - 1 ) goto decompression_failure ;\n buff [ destination ] = ( value >> 8 ) & 0x00FF ;\n buff [ ( destination + 1 ) & 0xFFFF ] = value & 0x00FF ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_COPY : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (position, length, destination)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & position ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_position , bytecode_tvb , offset , ( next_operand_address - operand_address ) , position , \"Addr: %u position %u\" , operand_address , position ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & length ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_length , bytecode_tvb , offset , ( next_operand_address - operand_address ) , length , \"Addr: %u Length %u\" , operand_address , length ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & destination ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_ref_dest , bytecode_tvb , offset , ( next_operand_address - operand_address ) , destination , \"Addr: %u Destination %u\" , operand_address , destination ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## COPY (position=%u, length=%u, destination=%u)\" , current_address , position , length , destination ) ;\n }\n current_address = next_operand_address ;\n n = 0 ;\n k = destination ;\n byte_copy_right = buff [ 66 ] << 8 ;\n byte_copy_right = byte_copy_right | buff [ 67 ] ;\n byte_copy_left = buff [ 64 ] << 8 ;\n byte_copy_left = byte_copy_left | buff [ 65 ] ;\n if ( print_level_2 ) {\n proto_tree_add_bytes_format ( udvm_tree , hf_sigcomp_byte_copy , message_tvb , input_address , 1 , NULL , \" byte_copy_right = %u\" , byte_copy_right ) ;\n }\n while ( n < length ) {\n buff [ k ] = buff [ position ] ;\n if ( print_level_2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_sigcomp_copying_value , message_tvb , input_address , 1 , buff [ position ] , \" Copying value: %u (0x%x) to Addr: %u\" , buff [ position ] , buff [ position ] , k ) ;\n }\n position = ( position + 1 ) & 0xffff ;\n k = ( k + 1 ) & 0xffff ;\n n ++ ;\n if ( k == byte_copy_right ) {\n k = byte_copy_left ;\n }\n if ( position == byte_copy_right ) {\n position = byte_copy_left ;\n }\n }\n used_udvm_cycles = used_udvm_cycles + length ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_COPY_LITERAL : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (position, length, $destination)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & position ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_position , bytecode_tvb , offset , ( next_operand_address - operand_address ) , position , \"Addr: %u position %u\" , operand_address , position ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & length ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_length , bytecode_tvb , offset , ( next_operand_address - operand_address ) , length , \"Addr: %u Length %u\" , operand_address , length ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = dissect_udvm_reference_operand_memory ( buff , operand_address , & ref_destination , & result_dest ) ;\n if ( next_operand_address < operand_address ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_ref_dest , bytecode_tvb , offset , ( next_operand_address - operand_address ) , ref_destination , \"Addr: %u destination %u\" , operand_address , ref_destination ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## COPY-LITERAL (position=%u, length=%u, $destination=%u)\" , current_address , position , length , ref_destination ) ;\n }\n current_address = next_operand_address ;\n n = 0 ;\n k = ref_destination ;\n byte_copy_right = buff [ 66 ] << 8 ;\n byte_copy_right = byte_copy_right | buff [ 67 ] ;\n byte_copy_left = buff [ 64 ] << 8 ;\n byte_copy_left = byte_copy_left | buff [ 65 ] ;\n if ( print_level_2 ) {\n proto_tree_add_bytes_format ( udvm_tree , hf_sigcomp_byte_copy , message_tvb , input_address , 1 , NULL , \" byte_copy_right = %u\" , byte_copy_right ) ;\n }\n while ( n < length ) {\n buff [ k ] = buff [ position ] ;\n if ( print_level_2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_sigcomp_copying_value , message_tvb , input_address , 1 , buff [ position ] , \" Copying value: %u (0x%x) to Addr: %u\" , buff [ position ] , buff [ position ] , k ) ;\n }\n position = ( position + 1 ) & 0xffff ;\n k = ( k + 1 ) & 0xffff ;\n n ++ ;\n if ( k == byte_copy_right ) {\n k = byte_copy_left ;\n }\n if ( position == byte_copy_right ) {\n position = byte_copy_left ;\n }\n }\n buff [ result_dest ] = k >> 8 ;\n buff [ ( result_dest + 1 ) & 0xffff ] = k & 0x00ff ;\n used_udvm_cycles = used_udvm_cycles + length ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_COPY_OFFSET : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (offset, length, $destination)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & multy_offset ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_offset , bytecode_tvb , offset , ( next_operand_address - operand_address ) , multy_offset , \"Addr: %u offset %u\" , operand_address , multy_offset ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & length ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_length , bytecode_tvb , offset , ( next_operand_address - operand_address ) , length , \"Addr: %u Length %u\" , operand_address , length ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = dissect_udvm_reference_operand_memory ( buff , operand_address , & ref_destination , & result_dest ) ;\n if ( next_operand_address < operand_address ) goto decompression_failure ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_ref_dest , bytecode_tvb , offset , ( next_operand_address - operand_address ) , ref_destination , \"Addr: %u $destination %u\" , operand_address , ref_destination ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## COPY-OFFSET (offset=%u, length=%u, $destination=%u)\" , current_address , multy_offset , length , result_dest ) ;\n }\n current_address = next_operand_address ;\n byte_copy_left = buff [ 64 ] << 8 ;\n byte_copy_left = byte_copy_left | buff [ 65 ] ;\n byte_copy_right = buff [ 66 ] << 8 ;\n byte_copy_right = byte_copy_right | buff [ 67 ] ;\n for ( position = ref_destination , i = 0 ;\n i < multy_offset ;\n i ++ ) {\n if ( position == byte_copy_left ) {\n position = ( byte_copy_right - 1 ) & 0xffff ;\n }\n else {\n position = ( position - 1 ) & 0xffff ;\n }\n }\n if ( print_level_2 ) {\n proto_tree_add_bytes_format ( udvm_tree , hf_sigcomp_byte_copy , message_tvb , input_address , 1 , NULL , \" byte_copy_left = %u byte_copy_right = %u position= %u\" , byte_copy_left , byte_copy_right , position ) ;\n }\n n = 0 ;\n k = ref_destination ;\n if ( print_level_2 ) {\n proto_tree_add_bytes_format ( udvm_tree , hf_sigcomp_byte_copy , message_tvb , input_address , 1 , NULL , \" byte_copy_left = %u byte_copy_right = %u\" , byte_copy_left , byte_copy_right ) ;\n }\n while ( n < length ) {\n buff [ k ] = buff [ position ] ;\n if ( print_level_2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_sigcomp_copying_value , message_tvb , input_address , 1 , buff [ position ] , \" Copying value: %5u (0x%x) from Addr: %u to Addr: %u\" , buff [ position ] , buff [ position ] , ( position ) , k ) ;\n }\n n ++ ;\n k = ( k + 1 ) & 0xffff ;\n position = ( position + 1 ) & 0xffff ;\n if ( k == byte_copy_right ) {\n k = byte_copy_left ;\n }\n if ( position == byte_copy_right ) {\n position = byte_copy_left ;\n }\n }\n buff [ result_dest ] = k >> 8 ;\n buff [ result_dest + 1 ] = k & 0x00ff ;\n used_udvm_cycles = used_udvm_cycles + length ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_MEMSET : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (address, length, start_value, offset)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & addr ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , addr , \"Addr: %u Address %u\" , operand_address , addr ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & length ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_length , bytecode_tvb , offset , ( next_operand_address - operand_address ) , length , \"Addr: %u Length %u\" , operand_address , length ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & start_value ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_start_value , bytecode_tvb , offset , ( next_operand_address - operand_address ) , start_value , \"Addr: %u start_value %u\" , operand_address , start_value ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & multy_offset ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_offset , bytecode_tvb , offset , ( next_operand_address - operand_address ) , multy_offset , \"Addr: %u offset %u\" , operand_address , multy_offset ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## MEMSET (address=%u, length=%u, start_value=%u, offset=%u)\" , current_address , addr , length , start_value , multy_offset ) ;\n }\n current_address = next_operand_address ;\n n = 0 ;\n k = addr ;\n byte_copy_right = buff [ 66 ] << 8 ;\n byte_copy_right = byte_copy_right | buff [ 67 ] ;\n byte_copy_left = buff [ 64 ] << 8 ;\n byte_copy_left = byte_copy_left | buff [ 65 ] ;\n if ( print_level_2 ) {\n proto_tree_add_bytes_format ( udvm_tree , hf_sigcomp_byte_copy , message_tvb , input_address , 1 , NULL , \" byte_copy_left = %u byte_copy_right = %u\" , byte_copy_left , byte_copy_right ) ;\n }\n while ( n < length ) {\n if ( k == byte_copy_right ) {\n k = byte_copy_left ;\n }\n buff [ k ] = ( start_value + ( n * multy_offset ) ) & 0xff ;\n if ( print_level_2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_sigcomp_storing_value , message_tvb , input_address , 1 , buff [ k ] , \" Storing value: %u (0x%x) at Addr: %u\" , buff [ k ] , buff [ k ] , k ) ;\n }\n k = ( k + 1 ) & 0xffff ;\n n ++ ;\n }\n used_udvm_cycles = used_udvm_cycles + length ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_JUMP : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (@address)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_address_operand ( buff , operand_address , & at_address , current_address ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_at_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , at_address , \"Addr: %u @Address %u\" , operand_address , at_address ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## JUMP (@address=%u)\" , current_address , at_address ) ;\n }\n current_address = at_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_COMPARE : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (value_1, value_2, @address_1, @address_2, @address_3)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & value_1 ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_value , bytecode_tvb , offset , ( next_operand_address - operand_address ) , value_1 , \"Addr: %u Value %u\" , operand_address , value_1 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & value_2 ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_value , bytecode_tvb , offset , ( next_operand_address - operand_address ) , value_2 , \"Addr: %u Value %u\" , operand_address , value_2 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & at_address_1 ) ;\n at_address_1 = ( current_address + at_address_1 ) & 0xffff ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_at_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , at_address_1 , \"Addr: %u @Address %u\" , operand_address , at_address_1 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & at_address_2 ) ;\n at_address_2 = ( current_address + at_address_2 ) & 0xffff ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_at_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , at_address_2 , \"Addr: %u @Address %u\" , operand_address , at_address_2 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & at_address_3 ) ;\n at_address_3 = ( current_address + at_address_3 ) & 0xffff ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_at_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , at_address_3 , \"Addr: %u @Address %u\" , operand_address , at_address_3 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## COMPARE (value_1=%u, value_2=%u, @address_1=%u, @address_2=%u, @address_3=%u)\" , current_address , value_1 , value_2 , at_address_1 , at_address_2 , at_address_3 ) ;\n }\n if ( value_1 < value_2 ) current_address = at_address_1 ;\n if ( value_1 == value_2 ) current_address = at_address_2 ;\n if ( value_1 > value_2 ) current_address = at_address_3 ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_CALL : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (@address) (PUSH addr )\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_address_operand ( buff , operand_address , & at_address , current_address ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_at_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , at_address , \"Addr: %u @Address %u\" , operand_address , at_address ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## CALL (@address=%u)\" , current_address , at_address ) ;\n }\n current_address = next_operand_address ;\n stack_location = ( buff [ 70 ] << 8 ) | buff [ 71 ] ;\n stack_fill = ( buff [ stack_location ] << 8 ) | buff [ ( stack_location + 1 ) & 0xFFFF ] ;\n addr = ( stack_location + stack_fill * 2 + 2 ) & 0xFFFF ;\n if ( addr >= UDVM_MEMORY_SIZE - 1 ) goto decompression_failure ;\n buff [ addr ] = ( current_address >> 8 ) & 0x00FF ;\n buff [ ( addr + 1 ) & 0xFFFF ] = current_address & 0x00FF ;\n stack_fill = ( stack_fill + 1 ) & 0xFFFF ;\n if ( stack_location >= UDVM_MEMORY_SIZE - 1 ) goto decompression_failure ;\n buff [ stack_location ] = ( stack_fill >> 8 ) & 0x00FF ;\n buff [ ( stack_location + 1 ) & 0xFFFF ] = stack_fill & 0x00FF ;\n current_address = at_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_RETURN : stack_location = ( buff [ 70 ] << 8 ) | buff [ 71 ] ;\n stack_fill = ( buff [ stack_location ] << 8 ) | buff [ ( stack_location + 1 ) & 0xFFFF ] ;\n if ( stack_fill == 0 ) {\n result_code = 16 ;\n goto decompression_failure ;\n }\n stack_fill = ( stack_fill - 1 ) & 0xFFFF ;\n if ( stack_location >= UDVM_MEMORY_SIZE - 1 ) goto decompression_failure ;\n buff [ stack_location ] = ( stack_fill >> 8 ) & 0x00FF ;\n buff [ ( stack_location + 1 ) & 0xFFFF ] = stack_fill & 0x00FF ;\n addr = ( stack_location + stack_fill * 2 + 2 ) & 0xFFFF ;\n at_address = ( buff [ addr ] << 8 ) | buff [ ( addr + 1 ) & 0xFFFF ] ;\n current_address = at_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_SWITCH : instruction_address = current_address ;\n if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (#n, j, @address_0, @address_1, ... , @address_n-1))\" ) ;\n }\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_literal_operand ( buff , operand_address , & n ) ;\n if ( print_level_2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_literal_num , bytecode_tvb , offset , ( next_operand_address - operand_address ) , n , \"Addr: %u n %u\" , operand_address , n ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & j ) ;\n if ( print_level_2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_j , bytecode_tvb , offset , ( next_operand_address - operand_address ) , j , \"Addr: %u j %u\" , operand_address , j ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n m = 0 ;\n while ( m < n ) {\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & at_address_1 ) ;\n at_address_1 = ( instruction_address + at_address_1 ) & 0xffff ;\n if ( print_level_2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_at_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , at_address_1 , \"Addr: %u @Address %u\" , operand_address , at_address_1 ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( j == m ) {\n current_address = at_address_1 ;\n }\n operand_address = next_operand_address ;\n m ++ ;\n }\n if ( ( j == n ) || ( j > n ) ) {\n result_code = 5 ;\n goto decompression_failure ;\n }\n if ( current_address > UDVM_MEMORY_SIZE ) {\n result_code = 6 ;\n goto decompression_failure ;\n }\n used_udvm_cycles = used_udvm_cycles + n ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_CRC : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (value, position, length, @address)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & value ) ;\n if ( print_level_2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_value , bytecode_tvb , offset , ( next_operand_address - operand_address ) , value , \"Addr: %u Value %u\" , operand_address , value ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & position ) ;\n if ( print_level_2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_position , bytecode_tvb , offset , ( next_operand_address - operand_address ) , position , \"Addr: %u position %u\" , operand_address , position ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & length ) ;\n if ( print_level_2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_length , bytecode_tvb , offset , ( next_operand_address - operand_address ) , length , \"Addr: %u Length %u\" , operand_address , length ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & at_address ) ;\n at_address = ( current_address + at_address ) & 0xffff ;\n if ( print_level_2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_at_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , at_address , \"Addr: %u @Address %u\" , operand_address , at_address ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n used_udvm_cycles = used_udvm_cycles + length ;\n n = 0 ;\n k = position ;\n byte_copy_right = buff [ 66 ] << 8 ;\n byte_copy_right = byte_copy_right | buff [ 67 ] ;\n byte_copy_left = buff [ 64 ] << 8 ;\n byte_copy_left = byte_copy_left | buff [ 65 ] ;\n result = 0 ;\n if ( print_level_2 ) {\n proto_tree_add_bytes_format ( udvm_tree , hf_sigcomp_byte_copy , message_tvb , 0 , - 1 , NULL , \"byte_copy_right = %u\" , byte_copy_right ) ;\n }\n while ( n < length ) {\n guint16 handle_now = length - n ;\n if ( k < byte_copy_right && byte_copy_right <= k + ( length - n ) ) {\n handle_now = byte_copy_right - k ;\n }\n if ( k + handle_now >= UDVM_MEMORY_SIZE ) goto decompression_failure ;\n result = crc16_ccitt_seed ( & buff [ k ] , handle_now , ( guint16 ) ( result ^ 0xffff ) ) ;\n k = ( k + handle_now ) & 0xffff ;\n n = ( n + handle_now ) & 0xffff ;\n if ( k >= byte_copy_right ) {\n k = byte_copy_left ;\n }\n }\n result = result ^ 0xffff ;\n if ( print_level_1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Calculated CRC %u\" , result ) ;\n }\n if ( result != value ) {\n current_address = at_address ;\n }\n else {\n current_address = next_operand_address ;\n }\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_INPUT_BYTES : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" length, destination, @address)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & length ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_length , bytecode_tvb , offset , ( next_operand_address - operand_address ) , length , \"Addr: %u Length %u\" , operand_address , length ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & destination ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_destination , bytecode_tvb , offset , ( next_operand_address - operand_address ) , destination , \"Addr: %u Destination %u\" , operand_address , destination ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & at_address ) ;\n at_address = ( current_address + at_address ) & 0xffff ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_at_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , at_address , \"Addr: %u @Address %u\" , operand_address , at_address ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## INPUT-BYTES length=%u, destination=%u, @address=%u)\" , current_address , length , destination , at_address ) ;\n }\n n = 0 ;\n k = destination ;\n byte_copy_right = buff [ 66 ] << 8 ;\n byte_copy_right = byte_copy_right | buff [ 67 ] ;\n byte_copy_left = buff [ 64 ] << 8 ;\n byte_copy_left = byte_copy_left | buff [ 65 ] ;\n if ( print_level_1 ) {\n proto_tree_add_bytes_format ( udvm_tree , hf_sigcomp_byte_copy , message_tvb , input_address , 1 , NULL , \" byte_copy_right = %u\" , byte_copy_right ) ;\n }\n remaining_bits = 0 ;\n input_bits = 0 ;\n while ( n < length ) {\n if ( input_address > ( msg_end - 1 ) ) {\n current_address = at_address ;\n result_code = 14 ;\n goto execute_next_instruction ;\n }\n if ( k == byte_copy_right ) {\n k = byte_copy_left ;\n }\n octet = tvb_get_guint8 ( message_tvb , input_address ) ;\n buff [ k ] = octet ;\n if ( print_level_1 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_sigcomp_loading_value , message_tvb , input_address , 1 , octet , \" Loading value: %u (0x%x) at Addr: %u\" , octet , octet , k ) ;\n }\n input_address ++ ;\n k = ( k + 1 ) & 0xffff ;\n n ++ ;\n }\n used_udvm_cycles = used_udvm_cycles + length ;\n current_address = next_operand_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_INPUT_BITS : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (length, destination, @address)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & length ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_length , bytecode_tvb , offset , ( next_operand_address - operand_address ) , length , \"Addr: %u length %u\" , operand_address , length ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & destination ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_destination , bytecode_tvb , offset , ( next_operand_address - operand_address ) , destination , \"Addr: %u Destination %u\" , operand_address , destination ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_address_operand ( buff , operand_address , & at_address , current_address ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_at_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , at_address , \"Addr: %u @Address %u\" , operand_address , at_address ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## INPUT-BITS length=%u, destination=%u, @address=%u)\" , current_address , length , destination , at_address ) ;\n }\n current_address = next_operand_address ;\n input_bit_order = buff [ 68 ] << 8 ;\n input_bit_order = input_bit_order | buff [ 69 ] ;\n if ( length > 16 ) {\n result_code = 7 ;\n goto decompression_failure ;\n }\n if ( input_bit_order > 7 ) {\n result_code = 8 ;\n goto decompression_failure ;\n }\n bit_order = ( input_bit_order & 0x0004 ) >> 2 ;\n value = decomp_dispatch_get_bits ( message_tvb , udvm_tree , bit_order , buff , & old_input_bit_order , & remaining_bits , & input_bits , & input_address , length , & result_code , msg_end , print_level_1 ) ;\n if ( result_code == 11 ) {\n current_address = at_address ;\n goto execute_next_instruction ;\n }\n msb = value >> 8 ;\n lsb = value & 0x00ff ;\n if ( destination >= UDVM_MEMORY_SIZE - 1 ) goto decompression_failure ;\n buff [ destination ] = msb ;\n buff [ ( destination + 1 ) & 0xffff ] = lsb ;\n if ( print_level_1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_loading_result , message_tvb , input_address , 1 , \" Loading value: %u (0x%x) at Addr: %u, remaining_bits: %u\" , value , value , destination , remaining_bits ) ;\n }\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_INPUT_HUFFMAN : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (destination, @address, #n, bits_1, lower_bound_1,upper_bound_1, uncompressed_1, ... , bits_n, lower_bound_n,upper_bound_n, uncompressed_n)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & destination ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_destination , bytecode_tvb , offset , ( next_operand_address - operand_address ) , destination , \"Addr: %u Destination %u\" , operand_address , destination ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_address_operand ( buff , operand_address , & at_address , current_address ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_at_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , at_address , \"Addr: %u @Address %u\" , operand_address , at_address ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_literal_operand ( buff , operand_address , & n ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_literal_num , bytecode_tvb , offset , ( next_operand_address - operand_address ) , n , \"Addr: %u n %u\" , operand_address , n ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## INPUT-HUFFMAN (destination=%u, @address=%u, #n=%u, bits_1, lower_1,upper_1, unc_1, ... , bits_%d, lower_%d,upper_%d, unc_%d)\" , current_address , destination , at_address , n , n , n , n , n ) ;\n }\n used_udvm_cycles = used_udvm_cycles + n ;\n input_bit_order = buff [ 68 ] << 8 ;\n input_bit_order = input_bit_order | buff [ 69 ] ;\n bit_order = ( input_bit_order & 0x0002 ) >> 1 ;\n j = 1 ;\n H = 0 ;\n m = n ;\n outside_huffman_boundaries = TRUE ;\n print_in_loop = print_level_3 ;\n while ( m > 0 ) {\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & bits_n ) ;\n if ( print_in_loop ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_bits , bytecode_tvb , offset , ( next_operand_address - operand_address ) , bits_n , \"Addr: %u bits_n %u\" , operand_address , bits_n ) ;\n }\n if ( bits_n > 31 ) break ;\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & lower_bound_n ) ;\n if ( print_in_loop ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_lower_bound , bytecode_tvb , offset , ( next_operand_address - operand_address ) , lower_bound_n , \"Addr: %u lower_bound_n %u\" , operand_address , lower_bound_n ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & upper_bound_n ) ;\n if ( print_in_loop ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_upper_bound , bytecode_tvb , offset , ( next_operand_address - operand_address ) , upper_bound_n , \"Addr: %u upper_bound_n %u\" , operand_address , upper_bound_n ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & uncompressed_n ) ;\n if ( print_in_loop ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_uncompressed , bytecode_tvb , offset , ( next_operand_address - operand_address ) , uncompressed_n , \"Addr: %u uncompressed_n %u\" , operand_address , uncompressed_n ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n if ( outside_huffman_boundaries ) {\n k = decomp_dispatch_get_bits ( message_tvb , udvm_tree , bit_order , buff , & old_input_bit_order , & remaining_bits , & input_bits , & input_address , bits_n , & result_code , msg_end , print_level_1 ) ;\n if ( result_code == 11 ) {\n current_address = at_address ;\n goto execute_next_instruction ;\n }\n oldH = H ;\n H = ( H << bits_n ) | k ;\n if ( print_level_3 ) {\n proto_tree_add_bytes_format ( udvm_tree , hf_sigcomp_set_hu , bytecode_tvb , 0 , - 1 , NULL , \" Set H(%u) := H(%u) * 2^bits_j(%u) + k(%u)\" , H , oldH , 1 << bits_n , k ) ;\n }\n if ( ( H < lower_bound_n ) || ( H > upper_bound_n ) ) {\n outside_huffman_boundaries = TRUE ;\n }\n else {\n outside_huffman_boundaries = FALSE ;\n print_in_loop = FALSE ;\n if ( print_level_2 ) {\n proto_tree_add_bytes_format ( udvm_tree , hf_sigcomp_set_hu , bytecode_tvb , 0 , - 1 , NULL , \" H(%u) = H(%u) + uncompressed_n(%u) - lower_bound_n(%u)\" , ( H + uncompressed_n - lower_bound_n ) , H , uncompressed_n , lower_bound_n ) ;\n }\n H = H + uncompressed_n - lower_bound_n ;\n msb = H >> 8 ;\n lsb = H & 0x00ff ;\n if ( destination >= UDVM_MEMORY_SIZE - 1 ) goto decompression_failure ;\n buff [ destination ] = msb ;\n buff [ ( destination + 1 ) & 0xffff ] = lsb ;\n if ( print_level_1 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_sigcomp_loading_h , message_tvb , input_address , 1 , H , \" Loading H: %u (0x%x) at Addr: %u,j = %u remaining_bits: %u\" , H , H , destination , ( n - m + 1 ) , remaining_bits ) ;\n }\n }\n }\n m = m - 1 ;\n }\n if ( outside_huffman_boundaries ) {\n result_code = 10 ;\n goto decompression_failure ;\n }\n current_address = next_operand_address ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_STATE_ACCESS : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (partial_identifier_start, partial_identifier_length,state_begin, state_length, state_address, state_instruction)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & p_id_start ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_partial_identifier_start , bytecode_tvb , offset , ( next_operand_address - operand_address ) , p_id_start , \"Addr: %u partial_identifier_start %u\" , operand_address , p_id_start ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & p_id_length ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_partial_identifier_length , bytecode_tvb , offset , ( next_operand_address - operand_address ) , p_id_length , \"Addr: %u partial_identifier_length %u\" , operand_address , p_id_length ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & state_begin ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_state_begin , bytecode_tvb , offset , ( next_operand_address - operand_address ) , state_begin , \"Addr: %u state_begin %u\" , operand_address , state_begin ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & state_length ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_state_length , bytecode_tvb , offset , ( next_operand_address - operand_address ) , state_length , \"Addr: %u state_length %u\" , operand_address , state_length ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & state_address ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_state_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , state_address , \"Addr: %u state_address %u\" , operand_address , state_address ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & state_instruction ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_state_instr , bytecode_tvb , offset , ( next_operand_address - operand_address ) , state_instruction , \"Addr: %u state_instruction %u\" , operand_address , state_instruction ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## STATE-ACCESS(31) (partial_identifier_start=%u, partial_identifier_length=%u,state_begin=%u, state_length=%u, state_address=%u, state_instruction=%u)\" , current_address , p_id_start , p_id_length , state_begin , state_length , state_address , state_instruction ) ;\n }\n current_address = next_operand_address ;\n byte_copy_right = buff [ 66 ] << 8 ;\n byte_copy_right = byte_copy_right | buff [ 67 ] ;\n byte_copy_left = buff [ 64 ] << 8 ;\n byte_copy_left = byte_copy_left | buff [ 65 ] ;\n if ( print_level_2 ) {\n proto_tree_add_bytes_format ( udvm_tree , hf_sigcomp_byte_copy , message_tvb , input_address , 1 , NULL , \" byte_copy_right = %u, byte_copy_left = %u\" , byte_copy_right , byte_copy_left ) ;\n }\n result_code = udvm_state_access ( message_tvb , udvm_tree , buff , p_id_start , p_id_length , state_begin , & state_length , & state_address , & state_instruction , hf_id ) ;\n if ( result_code != 0 ) {\n goto decompression_failure ;\n }\n used_udvm_cycles = used_udvm_cycles + state_length ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_STATE_CREATE : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (state_length, state_address, state_instruction,minimum_access_length, state_retention_priority)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & state_length ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_state_length , bytecode_tvb , offset , ( next_operand_address - operand_address ) , state_length , \"Addr: %u state_length %u\" , operand_address , state_length ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & state_address ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_state_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , state_address , \"Addr: %u state_address %u\" , operand_address , state_address ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & state_instruction ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_state_instr , bytecode_tvb , offset , ( next_operand_address - operand_address ) , state_instruction , \"Addr: %u state_instruction %u\" , operand_address , state_instruction ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & minimum_access_length ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_min_acc_len , bytecode_tvb , offset , ( next_operand_address - operand_address ) , minimum_access_length , \"Addr: %u minimum_access_length %u\" , operand_address , minimum_access_length ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & state_retention_priority ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_state_ret_pri , bytecode_tvb , offset , ( next_operand_address - operand_address ) , state_retention_priority , \"Addr: %u state_retention_priority %u\" , operand_address , state_retention_priority ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## STATE-CREATE(32) (state_length=%u, state_address=%u, state_instruction=%u,minimum_access_length=%u, state_retention_priority=%u)\" , current_address , state_length , state_address , state_instruction , minimum_access_length , state_retention_priority ) ;\n }\n current_address = next_operand_address ;\n no_of_state_create ++ ;\n if ( no_of_state_create > 4 ) {\n result_code = 12 ;\n goto decompression_failure ;\n }\n if ( ( minimum_access_length < 6 ) || ( minimum_access_length > STATE_BUFFER_SIZE ) ) {\n result_code = 1 ;\n goto decompression_failure ;\n }\n if ( state_retention_priority == 65535 ) {\n result_code = 13 ;\n goto decompression_failure ;\n }\n state_length_buff [ no_of_state_create ] = state_length ;\n state_address_buff [ no_of_state_create ] = state_address ;\n state_instruction_buff [ no_of_state_create ] = state_instruction ;\n state_minimum_access_length_buff [ no_of_state_create ] = minimum_access_length ;\n used_udvm_cycles = used_udvm_cycles + state_length ;\n byte_copy_right = buff [ 66 ] << 8 ;\n byte_copy_right = byte_copy_right | buff [ 67 ] ;\n byte_copy_left = buff [ 64 ] << 8 ;\n byte_copy_left = byte_copy_left | buff [ 65 ] ;\n n = 0 ;\n k = state_address ;\n while ( n < state_length ) {\n if ( k == byte_copy_right ) {\n k = byte_copy_left ;\n }\n string [ 0 ] = buff [ k ] ;\n string [ 1 ] = '\\0' ;\n if ( print_level_3 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_sigcomp_state_value , bytecode_tvb , 0 , 0 , buff [ k ] , \" Addr: %5u State value: %u (0x%x) ASCII(%s)\" , k , buff [ k ] , buff [ k ] , format_text ( string , 1 ) ) ;\n }\n k = ( k + 1 ) & 0xffff ;\n n ++ ;\n }\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_STATE_FREE : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (partial_identifier_start, partial_identifier_length)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & p_id_start ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_partial_identifier_start , bytecode_tvb , offset , ( next_operand_address - operand_address ) , p_id_start , \"Addr: %u partial_identifier_start %u\" , operand_address , p_id_start ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & p_id_length ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_partial_identifier_length , bytecode_tvb , offset , ( next_operand_address - operand_address ) , p_id_length , \"Addr: %u partial_identifier_length %u\" , operand_address , p_id_length ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## STATE-FREE (partial_identifier_start=%u, partial_identifier_length=%u)\" , current_address , p_id_start , p_id_length ) ;\n }\n current_address = next_operand_address ;\n udvm_state_free ( buff , p_id_start , p_id_length ) ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_OUTPUT : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (output_start, output_length)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & output_start ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_output_start , bytecode_tvb , offset , ( next_operand_address - operand_address ) , output_start , \"Addr: %u output_start %u\" , operand_address , output_start ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & output_length ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_output_length , bytecode_tvb , offset , ( next_operand_address - operand_address ) , output_length , \"Addr: %u output_length %u\" , operand_address , output_length ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## OUTPUT (output_start=%u, output_length=%u)\" , current_address , output_start , output_length ) ;\n }\n current_address = next_operand_address ;\n n = 0 ;\n k = output_start ;\n byte_copy_right = buff [ 66 ] << 8 ;\n byte_copy_right = byte_copy_right | buff [ 67 ] ;\n byte_copy_left = buff [ 64 ] << 8 ;\n byte_copy_left = byte_copy_left | buff [ 65 ] ;\n if ( print_level_3 ) {\n proto_tree_add_bytes_format ( udvm_tree , hf_sigcomp_byte_copy , bytecode_tvb , 0 , - 1 , NULL , \" byte_copy_right = %u\" , byte_copy_right ) ;\n }\n while ( n < output_length ) {\n if ( k == byte_copy_right ) {\n k = byte_copy_left ;\n }\n out_buff [ output_address ] = buff [ k ] ;\n string [ 0 ] = buff [ k ] ;\n string [ 1 ] = '\\0' ;\n if ( print_level_3 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_sigcomp_output_value , bytecode_tvb , 0 , - 1 , buff [ k ] , \" Output value: %u (0x%x) ASCII(%s) from Addr: %u ,output to dispatcher position %u\" , buff [ k ] , buff [ k ] , format_text ( string , 1 ) , k , output_address ) ;\n }\n k = ( k + 1 ) & 0xffff ;\n output_address ++ ;\n n ++ ;\n }\n used_udvm_cycles = used_udvm_cycles + output_length ;\n goto execute_next_instruction ;\n break ;\n case SIGCOMP_INSTR_END_MESSAGE : if ( show_instr_detail_level == 2 ) {\n proto_item_append_text ( addr_item , \" (requested_feedback_location,state_instruction, minimum_access_length,state_retention_priority)\" ) ;\n }\n start_offset = offset ;\n operand_address = current_address + 1 ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & requested_feedback_location ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_req_feedback_loc , bytecode_tvb , offset , ( next_operand_address - operand_address ) , requested_feedback_location , \"Addr: %u requested_feedback_location %u\" , operand_address , requested_feedback_location ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & returned_parameters_location ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_ret_param_loc , bytecode_tvb , offset , ( next_operand_address - operand_address ) , returned_parameters_location , \"Addr: %u returned_parameters_location %u\" , operand_address , returned_parameters_location ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & state_length ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_state_length , bytecode_tvb , offset , ( next_operand_address - operand_address ) , state_length , \"Addr: %u state_length %u\" , operand_address , state_length ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & state_address ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_state_address , bytecode_tvb , offset , ( next_operand_address - operand_address ) , state_address , \"Addr: %u state_address %u\" , operand_address , state_address ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & state_instruction ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_state_instr , bytecode_tvb , offset , ( next_operand_address - operand_address ) , state_instruction , \"Addr: %u state_instruction %u\" , operand_address , state_instruction ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & minimum_access_length ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_min_acc_len , bytecode_tvb , offset , ( next_operand_address - operand_address ) , minimum_access_length , \"Addr: %u minimum_access_length %u\" , operand_address , minimum_access_length ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n operand_address = next_operand_address ;\n next_operand_address = decode_udvm_multitype_operand ( buff , operand_address , & state_retention_priority ) ;\n if ( show_instr_detail_level == 2 ) {\n proto_tree_add_uint_format ( udvm_tree , hf_udvm_state_ret_pri , bytecode_tvb , offset , ( next_operand_address - operand_address ) , state_retention_priority , \"Addr: %u state_retention_priority %u\" , operand_address , state_retention_priority ) ;\n }\n offset += ( next_operand_address - operand_address ) ;\n if ( show_instr_detail_level == 1 ) {\n proto_tree_add_none_format ( udvm_tree , hf_sigcomp_decompress_instruction , bytecode_tvb , start_offset , offset - start_offset , \"Addr: %u ## END-MESSAGE (requested_feedback_location=%u, returned_parameters_location=%u, state_length=%u, state_address=%u, state_instruction=%u, minimum_access_length=%u, state_retention_priority=%u)\" , current_address , requested_feedback_location , returned_parameters_location , state_length , state_address , state_instruction , minimum_access_length , state_retention_priority ) ;\n }\n no_of_state_create ++ ;\n if ( no_of_state_create > 4 ) {\n result_code = 12 ;\n goto decompression_failure ;\n }\n state_length_buff [ no_of_state_create ] = state_length ;\n state_address_buff [ no_of_state_create ] = state_address ;\n state_instruction_buff [ no_of_state_create ] = state_instruction ;\n state_minimum_access_length_buff [ no_of_state_create ] = minimum_access_length ;\n proto_tree_add_uint ( udvm_tree , hf_sigcomp_num_state_create , bytecode_tvb , 0 , 0 , no_of_state_create ) ;\n if ( no_of_state_create != 0 ) {\n memset ( sha1_digest_buf , 0 , STATE_BUFFER_SIZE ) ;\n n = 1 ;\n byte_copy_right = buff [ 66 ] << 8 ;\n byte_copy_right = byte_copy_right | buff [ 67 ] ;\n byte_copy_left = buff [ 64 ] << 8 ;\n byte_copy_left = byte_copy_left | buff [ 65 ] ;\n while ( n < no_of_state_create + 1 ) {\n sha1buff = ( guint8 * ) g_malloc ( state_length_buff [ n ] + 8 ) ;\n sha1buff [ 0 ] = state_length_buff [ n ] >> 8 ;\n sha1buff [ 1 ] = state_length_buff [ n ] & 0xff ;\n sha1buff [ 2 ] = state_address_buff [ n ] >> 8 ;\n sha1buff [ 3 ] = state_address_buff [ n ] & 0xff ;\n sha1buff [ 4 ] = state_instruction_buff [ n ] >> 8 ;\n sha1buff [ 5 ] = state_instruction_buff [ n ] & 0xff ;\n sha1buff [ 6 ] = state_minimum_access_length_buff [ n ] >> 8 ;\n sha1buff [ 7 ] = state_minimum_access_length_buff [ n ] & 0xff ;\n if ( print_level_3 ) {\n proto_tree_add_bytes_with_length ( udvm_tree , hf_sigcomp_sha1buff , bytecode_tvb , 0 , - 1 , sha1buff , 8 ) ;\n }\n k = state_address_buff [ n ] ;\n for ( x = 0 ;\n x < state_length_buff [ n ] ;\n x ++ ) {\n if ( k == byte_copy_right ) {\n k = byte_copy_left ;\n }\n sha1buff [ 8 + x ] = buff [ k ] ;\n k = ( k + 1 ) & 0xffff ;\n }\n sha1_starts ( & ctx ) ;\n sha1_update ( & ctx , ( guint8 * ) sha1buff , state_length_buff [ n ] + 8 ) ;\n sha1_finish ( & ctx , sha1_digest_buf ) ;\n if ( print_level_3 ) {\n proto_tree_add_bytes_with_length ( udvm_tree , hf_sigcomp_sha1_digest , bytecode_tvb , 0 , - 1 , sha1_digest_buf , STATE_BUFFER_SIZE ) ;\n }\n # if 0 udvm_state_create ( sha1buff , sha1_digest_buf , state_minimum_access_length_buff [ n ] ) ;\n # endif udvm_state_create ( sha1buff , sha1_digest_buf , STATE_MIN_ACCESS_LEN ) ;\n proto_tree_add_item ( udvm_tree , hf_sigcomp_creating_state , bytecode_tvb , 0 , - 1 , ENC_NA ) ;\n proto_tree_add_string ( udvm_tree , hf_id , bytecode_tvb , 0 , 0 , bytes_to_str ( wmem_packet_scope ( ) , sha1_digest_buf , STATE_MIN_ACCESS_LEN ) ) ;\n n ++ ;\n }\n }\n decomp_tvb = tvb_new_child_real_data ( message_tvb , out_buff , output_address , output_address ) ;\n tvb_set_free_cb ( decomp_tvb , g_free ) ;\n add_new_data_source ( pinfo , decomp_tvb , \"Decompressed SigComp message\" ) ;\n proto_tree_add_item ( udvm_tree , hf_sigcomp_sigcomp_message_decompressed , decomp_tvb , 0 , - 1 , ENC_NA ) ;\n used_udvm_cycles += state_length ;\n proto_tree_add_uint ( udvm_tree , hf_sigcomp_max_udvm_cycles , bytecode_tvb , 0 , 0 , maximum_UDVM_cycles ) ;\n proto_tree_add_uint ( udvm_tree , hf_sigcomp_used_udvm_cycles , bytecode_tvb , 0 , 0 , used_udvm_cycles ) ;\n return decomp_tvb ;\n break ;\n default : expert_add_info_format ( pinfo , addr_item , & ei_sigcomp_invalid_instruction , \"Addr %u Invalid instruction: %u (0x%x)\" , current_address , current_instruction , current_instruction ) ;\n break ;\n }\n g_free ( out_buff ) ;\n return NULL ;\n decompression_failure : proto_tree_add_expert_format ( udvm_tree , pinfo , & ei_sigcomp_decompression_failure , bytecode_tvb , 0 , - 1 , \"DECOMPRESSION FAILURE: %s\" , val_to_str ( result_code , result_code_vals , \"Unknown (%u)\" ) ) ;\n g_free ( out_buff ) ;\n return NULL ;\n }"}
{"idx": 16010, "target": 0, "func": "static ngx_int_t process_status_line ( ngx_http_request_t * r ) {\n ngx_int_t rc ;\n ngx_http_upstream_t * u ;\n passenger_context_t * context ;\n context = ngx_http_get_module_ctx ( r , ngx_http_passenger_module ) ;\n if ( context == NULL ) {\n return NGX_ERROR ;\n }\n rc = parse_status_line ( r , context ) ;\n if ( rc == NGX_AGAIN ) {\n return rc ;\n }\n u = r -> upstream ;\n if ( rc == NGX_HTTP_SCGI_PARSE_NO_HEADER ) {\n ngx_log_error ( NGX_LOG_ERR , r -> connection -> log , 0 , \"upstream sent no valid HTTP/1.0 header\" ) ;\n # if 0 if ( u -> accel ) {\n return NGX_HTTP_UPSTREAM_INVALID_HEADER ;\n }\n # endif u -> headers_in . status_n = NGX_HTTP_OK ;\n u -> state -> status = NGX_HTTP_OK ;\n return NGX_OK ;\n }\n u -> headers_in . status_n = context -> status ;\n u -> state -> status = context -> status ;\n u -> headers_in . status_line . len = context -> status_end - context -> status_start ;\n u -> headers_in . status_line . data = ngx_palloc ( r -> pool , u -> headers_in . status_line . len ) ;\n if ( u -> headers_in . status_line . data == NULL ) {\n return NGX_ERROR ;\n }\n ngx_memcpy ( u -> headers_in . status_line . data , context -> status_start , u -> headers_in . status_line . len ) ;\n ngx_log_debug2 ( NGX_LOG_DEBUG_HTTP , r -> connection -> log , 0 , \"http scgi status %ui \\\"%V\\\"\" , u -> headers_in . status_n , & u -> headers_in . status_line ) ;\n u -> process_header = process_header ;\n return process_header ( r ) ;\n }"}
{"idx": 16011, "target": 0, "func": "int evbuffer_add_buffer ( struct evbuffer * outbuf , struct evbuffer * inbuf ) {\n int res ;\n if ( outbuf -> off == 0 ) {\n struct evbuffer tmp ;\n size_t oldoff = inbuf -> off ;\n SWAP ( & tmp , outbuf ) ;\n SWAP ( outbuf , inbuf ) ;\n SWAP ( inbuf , & tmp ) ;\n if ( inbuf -> off != oldoff && inbuf -> cb != NULL ) ( * inbuf -> cb ) ( inbuf , oldoff , inbuf -> off , inbuf -> cbarg ) ;\n if ( oldoff && outbuf -> cb != NULL ) ( * outbuf -> cb ) ( outbuf , 0 , oldoff , outbuf -> cbarg ) ;\n return ( 0 ) ;\n }\n res = evbuffer_add ( outbuf , inbuf -> buffer , inbuf -> off ) ;\n if ( res == 0 ) {\n evbuffer_drain ( inbuf , inbuf -> off ) ;\n }\n return ( res ) ;\n }"}
{"idx": 16012, "target": 0, "func": "static void dtap_tp_reset_ms_positioning_stored_information ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_len = len ;\n curr_offset = offset ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_TP_MS_POSITIONING_TECHNOLOGY , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 16013, "target": 1, "func": "static PGconn * _connectDB ( ArchiveHandle * AH , const char * reqdb , const char * requser ) {\n PGconn * newConn ;\n const char * newdb ;\n const char * newuser ;\n char * password ;\n bool new_pass ;\n if ( ! reqdb ) newdb = PQdb ( AH -> connection ) ;\n else newdb = reqdb ;\n if ( ! requser || strlen ( requser ) == 0 ) newuser = PQuser ( AH -> connection ) ;\n else newuser = requser ;\n ahlog ( AH , 1 , \"connecting to database \\\"%s\\\" as user \\\"%s\\\"\\n\" , newdb , newuser ) ;\n password = AH -> savedPassword ? pg_strdup ( AH -> savedPassword ) : NULL ;\n if ( AH -> promptPassword == TRI_YES && password == NULL ) {\n password = simple_prompt ( \"Password: \" , 100 , false ) ;\n if ( password == NULL ) exit_horribly ( modulename , \"out of memory\\n\" ) ;\n }\n do {\n const char * keywords [ 7 ] ;\n const char * values [ 7 ] ;\n keywords [ 0 ] = \"host\" ;\n values [ 0 ] = PQhost ( AH -> connection ) ;\n keywords [ 1 ] = \"port\" ;\n values [ 1 ] = PQport ( AH -> connection ) ;\n keywords [ 2 ] = \"user\" ;\n values [ 2 ] = newuser ;\n keywords [ 3 ] = \"password\" ;\n values [ 3 ] = password ;\n keywords [ 4 ] = \"dbname\" ;\n values [ 4 ] = newdb ;\n keywords [ 5 ] = \"fallback_application_name\" ;\n values [ 5 ] = progname ;\n keywords [ 6 ] = NULL ;\n values [ 6 ] = NULL ;\n new_pass = false ;\n newConn = PQconnectdbParams ( keywords , values , true ) ;\n if ( ! newConn ) exit_horribly ( modulename , \"failed to reconnect to database\\n\" ) ;\n if ( PQstatus ( newConn ) == CONNECTION_BAD ) {\n if ( ! PQconnectionNeedsPassword ( newConn ) ) exit_horribly ( modulename , \"could not reconnect to database: %s\" , PQerrorMessage ( newConn ) ) ;\n PQfinish ( newConn ) ;\n if ( password ) fprintf ( stderr , \"Password incorrect\\n\" ) ;\n fprintf ( stderr , \"Connecting to %s as %s\\n\" , newdb , newuser ) ;\n if ( password ) free ( password ) ;\n if ( AH -> promptPassword != TRI_NO ) password = simple_prompt ( \"Password: \" , 100 , false ) ;\n else exit_horribly ( modulename , \"connection needs password\\n\" ) ;\n if ( password == NULL ) exit_horribly ( modulename , \"out of memory\\n\" ) ;\n new_pass = true ;\n }\n }\n while ( new_pass ) ;\n if ( PQconnectionUsedPassword ( newConn ) ) {\n if ( AH -> savedPassword ) free ( AH -> savedPassword ) ;\n AH -> savedPassword = pg_strdup ( PQpass ( newConn ) ) ;\n }\n if ( password ) free ( password ) ;\n _check_database_version ( AH ) ;\n PQsetNoticeProcessor ( newConn , notice_processor , NULL ) ;\n return newConn ;\n }"}
{"idx": 16014, "target": 0, "func": "proto_item * proto_tree_add_bitmask_with_flags_ret_uint64 ( proto_tree * parent_tree , tvbuff_t * tvb , const guint offset , const int hf_hdr , const gint ett , const int * * fields , const guint encoding , const int flags , guint64 * retval ) {\n proto_item * item = NULL ;\n header_field_info * hf ;\n int len ;\n guint64 value ;\n PROTO_REGISTRAR_GET_NTH ( hf_hdr , hf ) ;\n DISSECTOR_ASSERT_FIELD_TYPE_IS_INTEGRAL ( hf ) ;\n len = ftype_length ( hf -> type ) ;\n value = get_uint64_value ( parent_tree , tvb , offset , len , encoding ) ;\n if ( parent_tree ) {\n item = proto_tree_add_item ( parent_tree , hf_hdr , tvb , offset , len , encoding ) ;\n proto_item_add_bitmask_tree ( item , tvb , offset , len , ett , fields , flags , FALSE , FALSE , NULL , value ) ;\n }\n * retval = value ;\n return item ;\n }"}
{"idx": 16015, "target": 0, "func": "static int dissect_h245_T_logicalChannelNum ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 92 \"../../asn1/h245/h245.cnf\" guint32 value ;\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 65535U , & value , FALSE ) ;\n h223_me -> sublist = NULL ;\n h223_me -> vc = value & 0xffff ;\n return offset ;\n }"}
{"idx": 16016, "target": 0, "func": "static int SRP_user_pwd_set_sv_BN ( SRP_user_pwd * vinfo , BIGNUM * s , BIGNUM * v ) {\n vinfo -> v = v ;\n vinfo -> s = s ;\n return ( vinfo -> s != NULL && vinfo -> v != NULL ) ;\n }"}
{"idx": 16017, "target": 0, "func": "static int match_expected_error ( struct st_command * command , unsigned int err_errno , const char * err_sqlstate ) {\n uint i ;\n for ( i = 0 ;\n ( uint ) i < command -> expected_errors . count ;\n i ++ ) {\n if ( ( command -> expected_errors . err [ i ] . type == ERR_ERRNO ) && ( command -> expected_errors . err [ i ] . code . errnum == err_errno ) ) return i ;\n if ( command -> expected_errors . err [ i ] . type == ERR_SQLSTATE ) {\n if ( unlikely ( err_sqlstate == NULL ) ) die ( \"expecting a SQL-state (%s) from query '%s' which cannot \" \"produce one...\" , command -> expected_errors . err [ i ] . code . sqlstate , command -> query ) ;\n if ( strncmp ( command -> expected_errors . err [ i ] . code . sqlstate , err_sqlstate , SQLSTATE_LENGTH ) == 0 ) return i ;\n }\n }\n return - 1 ;\n }"}
{"idx": 16018, "target": 1, "func": "static int tqi_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n const uint8_t * buf_end = buf + buf_size ;\n TqiContext * t = avctx -> priv_data ;\n MpegEncContext * s = & t -> s ;\n s -> width = AV_RL16 ( & buf [ 0 ] ) ;\n s -> height = AV_RL16 ( & buf [ 2 ] ) ;\n tqi_calculate_qtable ( s , buf [ 4 ] ) ;\n buf += 8 ;\n if ( t -> frame . data [ 0 ] ) avctx -> release_buffer ( avctx , & t -> frame ) ;\n if ( s -> avctx -> width != s -> width || s -> avctx -> height != s -> height ) avcodec_set_dimensions ( s -> avctx , s -> width , s -> height ) ;\n if ( ff_get_buffer ( avctx , & t -> frame ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return - 1 ;\n }\n av_fast_padded_malloc ( & t -> bitstream_buf , & t -> bitstream_buf_size , buf_end - buf ) ;\n if ( ! t -> bitstream_buf ) return AVERROR ( ENOMEM ) ;\n s -> dsp . bswap_buf ( t -> bitstream_buf , ( const uint32_t * ) buf , ( buf_end - buf ) / 4 ) ;\n init_get_bits ( & s -> gb , t -> bitstream_buf , 8 * ( buf_end - buf ) ) ;\n s -> last_dc [ 0 ] = s -> last_dc [ 1 ] = s -> last_dc [ 2 ] = 0 ;\n for ( s -> mb_y = 0 ;\n s -> mb_y < ( avctx -> height + 15 ) / 16 ;\n s -> mb_y ++ ) for ( s -> mb_x = 0 ;\n s -> mb_x < ( avctx -> width + 15 ) / 16 ;\n s -> mb_x ++ ) {\n if ( tqi_decode_mb ( s , t -> block ) < 0 ) break ;\n tqi_idct_put ( t , t -> block ) ;\n }\n * got_frame = 1 ;\n * ( AVFrame * ) data = t -> frame ;\n return buf_size ;\n }"}
{"idx": 16019, "target": 0, "func": "void vp9_pack_bitstream ( VP9_COMP * cpi , uint8_t * dest , size_t * size ) {\n uint8_t * data = dest ;\n size_t first_part_size , uncompressed_hdr_size ;\n struct vp9_write_bit_buffer wb = {\n data , 0 }\n ;\n struct vp9_write_bit_buffer saved_wb ;\n write_uncompressed_header ( cpi , & wb ) ;\n saved_wb = wb ;\n vp9_wb_write_literal ( & wb , 0 , 16 ) ;\n uncompressed_hdr_size = vp9_wb_bytes_written ( & wb ) ;\n data += uncompressed_hdr_size ;\n vp9_clear_system_state ( ) ;\n first_part_size = write_compressed_header ( cpi , data ) ;\n data += first_part_size ;\n vp9_wb_write_literal ( & saved_wb , ( int ) first_part_size , 16 ) ;\n data += encode_tiles ( cpi , data ) ;\n * size = data - dest ;\n }"}
{"idx": 16020, "target": 0, "func": "libc_hidden_proto ( __printf_fp ) extern unsigned int __guess_grouping ( unsigned int intdig_max , const char * grouping , wchar_t sepchar ) ;\n ssize_t __vstrfmon_l ( char * s , size_t maxsize , __locale_t loc , const char * format , va_list ap ) {\n struct locale_data * current = loc -> __locales [ LC_MONETARY ] ;\n _IO_strfile f ;\n # ifdef _IO_MTSAFE_IO _IO_lock_t lock ;\n # endif struct printf_info info ;\n char * dest ;\n const char * fmt ;\n dest = s ;\n fmt = format ;\n while ( * fmt != '\\0' ) {\n union {\n double dbl ;\n __long_double_t ldbl ;\n }\n fpnum ;\n int int_format ;\n int print_curr_symbol ;\n int left_prec ;\n int left_pad ;\n int right_prec ;\n int group ;\n char pad ;\n int is_long_double ;\n int p_sign_posn ;\n int n_sign_posn ;\n int sign_posn ;\n int other_sign_posn ;\n int left ;\n int is_negative ;\n int sep_by_space ;\n int other_sep_by_space ;\n int cs_precedes ;\n int other_cs_precedes ;\n const char * sign_string ;\n const char * other_sign_string ;\n int done ;\n const char * currency_symbol ;\n size_t currency_symbol_len ;\n long int width ;\n char * startp ;\n const void * ptr ;\n char space_char ;\n if ( * fmt != '%' ) {\n out_char ( * fmt ++ ) ;\n continue ;\n }\n if ( fmt [ 1 ] == '%' ) {\n out_char ( * ++ fmt ) ;\n ++ fmt ;\n continue ;\n }\n int_format = 0 ;\n print_curr_symbol = 1 ;\n left_prec = - 1 ;\n right_prec = - 1 ;\n group = 1 ;\n pad = ' ' ;\n is_long_double = 0 ;\n p_sign_posn = - 1 ;\n n_sign_posn = - 1 ;\n width = - 1 ;\n left = 0 ;\n while ( 1 ) {\n switch ( * ++ fmt ) {\n case '=' : pad = * ++ fmt ;\n if ( pad == '\\0' ) {\n __set_errno ( EINVAL ) ;\n return - 1 ;\n }\n continue ;\n case '^' : group = 0 ;\n continue ;\n case '+' : if ( n_sign_posn != - 1 ) {\n __set_errno ( EINVAL ) ;\n return - 1 ;\n }\n p_sign_posn = * _NL_CURRENT ( LC_MONETARY , P_SIGN_POSN ) ;\n n_sign_posn = * _NL_CURRENT ( LC_MONETARY , N_SIGN_POSN ) ;\n continue ;\n case '(' : if ( n_sign_posn != - 1 ) {\n __set_errno ( EINVAL ) ;\n return - 1 ;\n }\n p_sign_posn = 0 ;\n n_sign_posn = 0 ;\n continue ;\n case '!' : print_curr_symbol = 0 ;\n continue ;\n case '-' : left = 1 ;\n continue ;\n default : ;\n }\n break ;\n }\n if ( isdigit ( * fmt ) ) {\n width = to_digit ( * fmt ) ;\n while ( isdigit ( * ++ fmt ) ) {\n int val = to_digit ( * fmt ) ;\n if ( width > LONG_MAX / 10 || ( width == LONG_MAX && val > LONG_MAX % 10 ) ) {\n __set_errno ( E2BIG ) ;\n return - 1 ;\n }\n width = width * 10 + val ;\n }\n if ( width >= maxsize - ( dest - s ) ) {\n __set_errno ( E2BIG ) ;\n return - 1 ;\n }\n }\n if ( * fmt == '#' ) {\n if ( ! isdigit ( * ++ fmt ) ) {\n __set_errno ( EINVAL ) ;\n return - 1 ;\n }\n left_prec = to_digit ( * fmt ) ;\n while ( isdigit ( * ++ fmt ) ) {\n left_prec *= 10 ;\n left_prec += to_digit ( * fmt ) ;\n }\n }\n if ( * fmt == '.' ) {\n if ( ! isdigit ( * ++ fmt ) ) {\n __set_errno ( EINVAL ) ;\n return - 1 ;\n }\n right_prec = to_digit ( * fmt ) ;\n while ( isdigit ( * ++ fmt ) ) {\n right_prec *= 10 ;\n right_prec += to_digit ( * fmt ) ;\n }\n }\n if ( * fmt == 'L' ) {\n ++ fmt ;\n if ( ! __ldbl_is_dbl ) is_long_double = 1 ;\n }\n char int_symbol [ 4 ] ;\n switch ( * fmt ++ ) {\n case 'i' : {\n const char * int_curr_symbol ;\n int_curr_symbol = _NL_CURRENT ( LC_MONETARY , INT_CURR_SYMBOL ) ;\n strncpy ( int_symbol , int_curr_symbol , 3 ) ;\n int_symbol [ 3 ] = '\\0' ;\n currency_symbol_len = 3 ;\n currency_symbol = & int_symbol [ 0 ] ;\n space_char = int_curr_symbol [ 3 ] ;\n int_format = 1 ;\n break ;\n }\n case 'n' : currency_symbol = _NL_CURRENT ( LC_MONETARY , CURRENCY_SYMBOL ) ;\n currency_symbol_len = strlen ( currency_symbol ) ;\n space_char = ' ' ;\n int_format = 0 ;\n break ;\n default : __set_errno ( EINVAL ) ;\n return - 1 ;\n }\n if ( p_sign_posn == - 1 ) p_sign_posn = * _NL_CURRENT ( LC_MONETARY , int_format ? INT_P_SIGN_POSN : P_SIGN_POSN ) ;\n if ( n_sign_posn == - 1 ) n_sign_posn = * _NL_CURRENT ( LC_MONETARY , int_format ? INT_N_SIGN_POSN : N_SIGN_POSN ) ;\n if ( right_prec == - 1 ) {\n right_prec = * _NL_CURRENT ( LC_MONETARY , int_format ? INT_FRAC_DIGITS : FRAC_DIGITS ) ;\n if ( right_prec == CHAR_MAX ) right_prec = 2 ;\n }\n if ( group && left_prec != - 1 ) left_prec += __guess_grouping ( left_prec , _NL_CURRENT ( LC_MONETARY , MON_GROUPING ) , * _NL_CURRENT ( LC_MONETARY , MON_THOUSANDS_SEP ) ) ;\n if ( is_long_double == 1 ) {\n fpnum . ldbl = va_arg ( ap , long double ) ;\n is_negative = fpnum . ldbl < 0 ;\n if ( is_negative ) fpnum . ldbl = - fpnum . ldbl ;\n }\n else {\n fpnum . dbl = va_arg ( ap , double ) ;\n is_negative = fpnum . dbl < 0 ;\n if ( is_negative ) fpnum . dbl = - fpnum . dbl ;\n }\n if ( is_negative ) {\n sign_string = _NL_CURRENT ( LC_MONETARY , NEGATIVE_SIGN ) ;\n if ( * sign_string == '\\0' ) sign_string = ( const char * ) \"-\" ;\n cs_precedes = * _NL_CURRENT ( LC_MONETARY , int_format ? INT_N_CS_PRECEDES : N_CS_PRECEDES ) ;\n sep_by_space = * _NL_CURRENT ( LC_MONETARY , int_format ? INT_N_SEP_BY_SPACE : N_SEP_BY_SPACE ) ;\n sign_posn = n_sign_posn ;\n other_sign_string = _NL_CURRENT ( LC_MONETARY , POSITIVE_SIGN ) ;\n other_cs_precedes = * _NL_CURRENT ( LC_MONETARY , int_format ? INT_P_CS_PRECEDES : P_CS_PRECEDES ) ;\n other_sep_by_space = * _NL_CURRENT ( LC_MONETARY , int_format ? INT_P_SEP_BY_SPACE : P_SEP_BY_SPACE ) ;\n other_sign_posn = p_sign_posn ;\n }\n else {\n sign_string = _NL_CURRENT ( LC_MONETARY , POSITIVE_SIGN ) ;\n cs_precedes = * _NL_CURRENT ( LC_MONETARY , int_format ? INT_P_CS_PRECEDES : P_CS_PRECEDES ) ;\n sep_by_space = * _NL_CURRENT ( LC_MONETARY , int_format ? INT_P_SEP_BY_SPACE : P_SEP_BY_SPACE ) ;\n sign_posn = p_sign_posn ;\n other_sign_string = _NL_CURRENT ( LC_MONETARY , NEGATIVE_SIGN ) ;\n if ( * other_sign_string == '\\0' ) other_sign_string = ( const char * ) \"-\" ;\n other_cs_precedes = * _NL_CURRENT ( LC_MONETARY , int_format ? INT_N_CS_PRECEDES : N_CS_PRECEDES ) ;\n other_sep_by_space = * _NL_CURRENT ( LC_MONETARY , int_format ? INT_N_SEP_BY_SPACE : N_SEP_BY_SPACE ) ;\n other_sign_posn = n_sign_posn ;\n }\n if ( cs_precedes != 0 ) cs_precedes = 1 ;\n if ( other_cs_precedes != 0 ) other_cs_precedes = 1 ;\n if ( sep_by_space == CHAR_MAX ) sep_by_space = 0 ;\n if ( other_sep_by_space == CHAR_MAX ) other_sep_by_space = 0 ;\n if ( sign_posn == CHAR_MAX ) sign_posn = 1 ;\n if ( other_sign_posn == CHAR_MAX ) other_sign_posn = 1 ;\n if ( sep_by_space == 2 ) {\n if ( sign_posn == 0 || ( sign_posn == 1 && ! cs_precedes ) || ( sign_posn == 2 && cs_precedes ) ) sep_by_space = 0 ;\n }\n if ( other_sep_by_space == 2 ) {\n if ( other_sign_posn == 0 || ( other_sign_posn == 1 && ! other_cs_precedes ) || ( other_sign_posn == 2 && other_cs_precedes ) ) other_sep_by_space = 0 ;\n }\n if ( left_prec == - 1 ) {\n left_prec = 0 ;\n left_pad = 0 ;\n }\n else {\n int left_bytes = 0 ;\n int other_left_bytes = 0 ;\n if ( cs_precedes ) {\n left_bytes += currency_symbol_len ;\n if ( sep_by_space != 0 ) ++ left_bytes ;\n }\n if ( other_cs_precedes ) {\n other_left_bytes += currency_symbol_len ;\n if ( other_sep_by_space != 0 ) ++ other_left_bytes ;\n }\n if ( sign_posn == 0 && is_negative ) ++ left_bytes ;\n else if ( sign_posn == 1 ) left_bytes += strlen ( sign_string ) ;\n else if ( cs_precedes && ( sign_posn == 3 || sign_posn == 4 ) ) left_bytes += strlen ( sign_string ) ;\n if ( other_sign_posn == 0 && ! is_negative ) ++ other_left_bytes ;\n else if ( other_sign_posn == 1 ) other_left_bytes += strlen ( other_sign_string ) ;\n else if ( other_cs_precedes && ( other_sign_posn == 3 || other_sign_posn == 4 ) ) other_left_bytes += strlen ( other_sign_string ) ;\n if ( other_left_bytes > left_bytes ) left_pad = other_left_bytes - left_bytes ;\n else left_pad = 0 ;\n }\n # define left_paren '(' # define right_paren ')' startp = dest ;\n while ( left_pad -- > 0 ) out_char ( ' ' ) ;\n if ( sign_posn == 0 && is_negative ) out_char ( left_paren ) ;\n if ( cs_precedes ) {\n if ( sign_posn != 0 && sign_posn != 2 && sign_posn != 4 && sign_posn != 5 ) {\n out_string ( sign_string ) ;\n if ( sep_by_space == 2 ) out_char ( ' ' ) ;\n }\n if ( print_curr_symbol ) out_string ( currency_symbol ) ;\n if ( sign_posn == 4 ) {\n if ( print_curr_symbol && sep_by_space == 2 ) out_char ( space_char ) ;\n out_string ( sign_string ) ;\n if ( sep_by_space == 1 ) out_char ( ' ' ) ;\n }\n else if ( print_curr_symbol && sep_by_space == 1 ) out_char ( space_char ) ;\n }\n else if ( sign_posn != 0 && sign_posn != 2 && sign_posn != 3 && sign_posn != 4 && sign_posn != 5 ) out_string ( sign_string ) ;\n # ifdef _IO_MTSAFE_IO f . _sbf . _f . _lock = & lock ;\n # endif INTUSE ( _IO_init ) ( ( _IO_FILE * ) & f , 0 ) ;\n _IO_JUMPS ( ( struct _IO_FILE_plus * ) & f ) = & _IO_str_jumps ;\n INTUSE ( _IO_str_init_static ) ( ( _IO_strfile * ) & f , dest , ( s + maxsize ) - dest , dest ) ;\n s [ maxsize - 1 ] = '\\0' ;\n memset ( & info , '\\0' , sizeof ( info ) ) ;\n info . prec = right_prec ;\n info . width = left_prec + ( right_prec ? ( right_prec + 1 ) : 0 ) ;\n info . spec = 'f' ;\n info . is_long_double = is_long_double ;\n info . group = group ;\n info . pad = pad ;\n info . extra = 1 ;\n ptr = & fpnum ;\n done = __printf_fp ( ( FILE * ) & f , & info , & ptr ) ;\n if ( done < 0 ) return - 1 ;\n if ( s [ maxsize - 1 ] != '\\0' ) {\n __set_errno ( E2BIG ) ;\n return - 1 ;\n }\n dest += done ;\n if ( ! cs_precedes ) {\n if ( sign_posn == 3 ) {\n if ( sep_by_space == 1 ) out_char ( ' ' ) ;\n out_string ( sign_string ) ;\n }\n if ( print_curr_symbol ) {\n if ( ( sign_posn == 3 && sep_by_space == 2 ) || ( sign_posn == 4 && sep_by_space == 1 ) || ( sign_posn == 2 && sep_by_space == 1 ) || ( sign_posn == 1 && sep_by_space == 1 ) || ( sign_posn == 0 && sep_by_space == 1 ) ) out_char ( space_char ) ;\n out_nstring ( currency_symbol , currency_symbol_len ) ;\n }\n if ( sign_posn == 4 ) {\n if ( sep_by_space == 2 ) out_char ( ' ' ) ;\n out_string ( sign_string ) ;\n }\n }\n if ( sign_posn == 2 ) {\n if ( sep_by_space == 2 ) out_char ( ' ' ) ;\n out_string ( sign_string ) ;\n }\n if ( sign_posn == 0 && is_negative ) out_char ( right_paren ) ;\n if ( dest - startp < width ) {\n if ( left ) do out_char ( ' ' ) ;\n while ( dest - startp < width ) ;\n else {\n long int dist = width - ( dest - startp ) ;\n for ( char * cp = dest - 1 ;\n cp >= startp ;\n -- cp ) cp [ dist ] = cp [ 0 ] ;\n dest += dist ;\n do startp [ -- dist ] = ' ' ;\n while ( dist > 0 ) ;\n }\n }\n }\n * dest = '\\0' ;\n return dest - s ;\n }"}
{"idx": 16021, "target": 0, "func": "static void rawv6_err ( struct sock * sk , struct sk_buff * skb , struct inet6_skb_parm * opt , u8 type , u8 code , int offset , __be32 info ) {\n struct inet_sock * inet = inet_sk ( sk ) ;\n struct ipv6_pinfo * np = inet6_sk ( sk ) ;\n int err ;\n int harderr ;\n if ( ! np -> recverr && sk -> sk_state != TCP_ESTABLISHED ) return ;\n harderr = icmpv6_err_convert ( type , code , & err ) ;\n if ( type == ICMPV6_PKT_TOOBIG ) harderr = ( np -> pmtudisc == IPV6_PMTUDISC_DO ) ;\n if ( np -> recverr ) {\n u8 * payload = skb -> data ;\n if ( ! inet -> hdrincl ) payload += offset ;\n ipv6_icmp_error ( sk , skb , err , 0 , ntohl ( info ) , payload ) ;\n }\n if ( np -> recverr || harderr ) {\n sk -> sk_err = err ;\n sk -> sk_error_report ( sk ) ;\n }\n }"}
{"idx": 16022, "target": 0, "func": "gpg_error_t keydb_delete_keyblock ( KEYDB_HANDLE hd ) {\n gpg_error_t rc ;\n if ( ! hd ) return gpg_error ( GPG_ERR_INV_ARG ) ;\n keyblock_cache_clear ( ) ;\n if ( hd -> found < 0 || hd -> found >= hd -> used ) return gpg_error ( GPG_ERR_VALUE_NOT_FOUND ) ;\n if ( opt . dry_run ) return 0 ;\n rc = lock_all ( hd ) ;\n if ( rc ) return rc ;\n switch ( hd -> active [ hd -> found ] . type ) {\n case KEYDB_RESOURCE_TYPE_NONE : rc = gpg_error ( GPG_ERR_GENERAL ) ;\n break ;\n case KEYDB_RESOURCE_TYPE_KEYRING : rc = keyring_delete_keyblock ( hd -> active [ hd -> found ] . u . kr ) ;\n break ;\n case KEYDB_RESOURCE_TYPE_KEYBOX : rc = keybox_delete ( hd -> active [ hd -> found ] . u . kb ) ;\n break ;\n }\n unlock_all ( hd ) ;\n return rc ;\n }"}
{"idx": 16023, "target": 0, "func": "int jas_stream_puts ( jas_stream_t * stream , const char * s ) {\n while ( * s != '\\0' ) {\n if ( jas_stream_putc_macro ( stream , * s ) == EOF ) {\n return - 1 ;\n }\n ++ s ;\n }\n return 0 ;\n }"}
{"idx": 16024, "target": 0, "func": "static int dissect_sigcomp_common ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * sigcomp_tree ) {\n tvbuff_t * udvm_tvb , * msg_tvb , * udvm2_tvb ;\n tvbuff_t * decomp_tvb = NULL ;\n proto_item * udvm_bytecode_item , * udvm_exe_item ;\n proto_tree * sigcomp_udvm_tree , * sigcomp_udvm_exe_tree ;\n gint offset = 0 ;\n gint bytecode_offset ;\n guint16 partial_state_len ;\n guint octet ;\n guint8 returned_feedback_field [ 128 ] ;\n guint8 partial_state [ 12 ] ;\n guint tbit ;\n guint16 len = 0 ;\n guint16 bytecode_len = 0 ;\n guint destination ;\n gint msg_len = 0 ;\n guint8 * buff ;\n guint16 p_id_start ;\n guint8 i ;\n guint16 state_begin ;\n guint16 state_length ;\n guint16 state_address ;\n guint16 state_instruction ;\n guint16 result_code ;\n gchar * partial_state_str ;\n guint8 nack_version ;\n octet = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( sigcomp_tree , hf_sigcomp_t_bit , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( sigcomp_tree , hf_sigcomp_len , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n tbit = ( octet & 0x04 ) >> 2 ;\n partial_state_len = octet & 0x03 ;\n offset ++ ;\n if ( partial_state_len != 0 ) {\n partial_state_len = partial_state_len * 3 + 3 ;\n col_set_str ( pinfo -> cinfo , COL_INFO , \"Msg format 1\" ) ;\n if ( tbit == 1 ) {\n len = 1 ;\n octet = tvb_get_guint8 ( tvb , offset ) ;\n if ( ( octet & 0x80 ) != 0 ) {\n len = octet & 0x7f ;\n proto_tree_add_item ( sigcomp_tree , hf_sigcomp_returned_feedback_item_len , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n tvb_memcpy ( tvb , returned_feedback_field , offset , len ) ;\n }\n else {\n returned_feedback_field [ 0 ] = tvb_get_guint8 ( tvb , offset ) & 0x7f ;\n }\n proto_tree_add_bytes ( sigcomp_tree , hf_sigcomp_returned_feedback_item , tvb , offset , len , returned_feedback_field ) ;\n offset = offset + len ;\n }\n tvb_memcpy ( tvb , partial_state , offset , partial_state_len ) ;\n partial_state_str = bytes_to_str ( wmem_packet_scope ( ) , partial_state , partial_state_len ) ;\n proto_tree_add_string ( sigcomp_tree , hf_sigcomp_partial_state , tvb , offset , partial_state_len , partial_state_str ) ;\n offset = offset + partial_state_len ;\n msg_len = tvb_reported_length_remaining ( tvb , offset ) ;\n if ( msg_len > 0 ) {\n proto_item * ti ;\n ti = proto_tree_add_uint ( sigcomp_tree , hf_sigcomp_remaining_message_bytes , tvb , offset , 0 , msg_len ) ;\n PROTO_ITEM_SET_GENERATED ( ti ) ;\n }\n if ( decompress ) {\n msg_tvb = tvb_new_subset_length ( tvb , offset , msg_len ) ;\n buff = ( guint8 * ) wmem_alloc0 ( pinfo -> pool , UDVM_MEMORY_SIZE ) ;\n p_id_start = 0 ;\n state_begin = 0 ;\n state_length = 0 ;\n state_address = 0 ;\n state_instruction = 0 ;\n i = 0 ;\n while ( i < partial_state_len ) {\n buff [ i ] = partial_state [ i ] ;\n i ++ ;\n }\n # if 0 result_code = udvm_state_access ( tvb , sigcomp_tree , buff , p_id_start , partial_state_len , state_begin , & state_length , & state_address , & state_instruction , hf_sigcomp_partial_state ) ;\n # endif result_code = udvm_state_access ( tvb , sigcomp_tree , buff , p_id_start , STATE_MIN_ACCESS_LEN , state_begin , & state_length , & state_address , & state_instruction , hf_sigcomp_partial_state ) ;\n if ( result_code != 0 ) {\n proto_tree_add_expert_format ( sigcomp_tree , pinfo , & ei_sigcomp_failed_to_access_state_wireshark_udvm_diagnostic , tvb , 0 , - 1 , \"Failed to Access state Wireshark UDVM diagnostic: %s\" , val_to_str ( result_code , result_code_vals , \"Unknown (%u)\" ) ) ;\n return tvb_captured_length ( tvb ) ;\n }\n udvm_tvb = tvb_new_child_real_data ( tvb , buff , state_length + state_address , state_length + state_address ) ;\n add_new_data_source ( pinfo , udvm_tvb , \"State/ExecutionTrace\" ) ;\n udvm2_tvb = tvb_new_subset_length ( udvm_tvb , state_address , state_length ) ;\n udvm_exe_item = proto_tree_add_item ( sigcomp_tree , hf_udvm_execution_trace , udvm2_tvb , 0 , state_length , ENC_NA ) ;\n sigcomp_udvm_exe_tree = proto_item_add_subtree ( udvm_exe_item , ett_sigcomp_udvm_exe ) ;\n decomp_tvb = decompress_sigcomp_message ( udvm2_tvb , msg_tvb , pinfo , sigcomp_udvm_exe_tree , state_address , udvm_print_detail_level , hf_sigcomp_partial_state , offset , state_length , partial_state_len , state_instruction ) ;\n if ( decomp_tvb ) {\n proto_item * ti ;\n guint32 compression_ratio = ( guint32 ) ( ( ( float ) tvb_reported_length ( decomp_tvb ) / ( float ) tvb_reported_length ( tvb ) ) * 100 ) ;\n ti = proto_tree_add_uint ( sigcomp_tree , hf_sigcomp_compression_ratio , decomp_tvb , 0 , 0 , compression_ratio ) ;\n PROTO_ITEM_SET_GENERATED ( ti ) ;\n if ( display_raw_txt ) tvb_raw_text_add ( decomp_tvb , top_tree ) ;\n col_append_str ( pinfo -> cinfo , COL_PROTOCOL , \"/\" ) ;\n col_set_fence ( pinfo -> cinfo , COL_PROTOCOL ) ;\n call_dissector ( sip_handle , decomp_tvb , pinfo , top_tree ) ;\n }\n }\n }\n else {\n col_set_str ( pinfo -> cinfo , COL_INFO , \"Msg format 2\" ) ;\n if ( tbit == 1 ) {\n len = 1 ;\n octet = tvb_get_guint8 ( tvb , offset ) ;\n if ( ( octet & 0x80 ) != 0 ) {\n len = octet & 0x7f ;\n proto_tree_add_item ( sigcomp_tree , hf_sigcomp_returned_feedback_item_len , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n }\n tvb_memcpy ( tvb , returned_feedback_field , offset , len ) ;\n proto_tree_add_bytes ( sigcomp_tree , hf_sigcomp_returned_feedback_item , tvb , offset , len , returned_feedback_field ) ;\n offset = offset + len ;\n }\n len = tvb_get_ntohs ( tvb , offset ) >> 4 ;\n nack_version = tvb_get_guint8 ( tvb , offset + 1 ) & 0x0f ;\n if ( ( len == 0 ) && ( nack_version == 1 ) ) {\n proto_item * reason_ti ;\n guint8 opcode ;\n offset ++ ;\n proto_tree_add_item ( sigcomp_tree , hf_sigcomp_nack_ver , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n octet = tvb_get_guint8 ( tvb , offset ) ;\n reason_ti = proto_tree_add_item ( sigcomp_tree , hf_sigcomp_nack_reason_code , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n opcode = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( sigcomp_tree , hf_sigcomp_nack_failed_op_code , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n expert_add_info_format ( pinfo , reason_ti , & ei_sigcomp_nack_failed_op_code , \"SigComp NACK (reason=%s, opcode=%s)\" , val_to_str_ext_const ( octet , & sigcomp_nack_reason_code_vals_ext , \"Unknown\" ) , val_to_str_ext_const ( opcode , & udvm_instruction_code_vals_ext , \"Unknown\" ) ) ;\n proto_tree_add_item ( sigcomp_tree , hf_sigcomp_nack_pc , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n offset = offset + 2 ;\n proto_tree_add_item ( sigcomp_tree , hf_sigcomp_nack_sha1 , tvb , offset , SHA1_DIGEST_LEN , ENC_NA ) ;\n offset = offset + SHA1_DIGEST_LEN ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" NACK reason=%s, opcode=%s\" , val_to_str_ext_const ( octet , & sigcomp_nack_reason_code_vals_ext , \"Unknown\" ) , val_to_str_ext_const ( opcode , & udvm_instruction_code_vals_ext , \"Unknown\" ) ) ;\n switch ( octet ) {\n case SIGCOMP_NACK_STATE_NOT_FOUND : case SIGCOMP_NACK_ID_NOT_UNIQUE : case SIGCOMP_NACK_STATE_TOO_SHORT : proto_tree_add_item ( sigcomp_tree , hf_sigcomp_nack_state_id , tvb , offset , - 1 , ENC_NA ) ;\n break ;\n case SIGCOMP_NACK_CYCLES_EXHAUSTED : proto_tree_add_item ( sigcomp_tree , hf_sigcomp_nack_cycles_per_bit , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n break ;\n case SIGCOMP_NACK_BYTECODES_TOO_LARGE : proto_tree_add_item ( sigcomp_tree , hf_sigcomp_nack_memory_size , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n break ;\n default : break ;\n }\n }\n else {\n octet = tvb_get_guint8 ( tvb , ( offset + 1 ) ) ;\n destination = ( octet & 0x0f ) ;\n if ( destination != 0 ) destination = 64 + ( destination * 64 ) ;\n proto_tree_add_item ( sigcomp_tree , hf_sigcomp_code_len , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( sigcomp_tree , hf_sigcomp_destination , tvb , ( offset + 1 ) , 1 , ENC_BIG_ENDIAN ) ;\n offset = offset + 2 ;\n bytecode_len = len ;\n bytecode_offset = offset ;\n udvm_bytecode_item = proto_tree_add_item ( sigcomp_tree , hf_sigcomp_udvm_bytecode , tvb , bytecode_offset , bytecode_len , ENC_NA ) ;\n proto_item_append_text ( udvm_bytecode_item , \" %u (0x%x) bytes\" , bytecode_len , bytecode_len ) ;\n sigcomp_udvm_tree = proto_item_add_subtree ( udvm_bytecode_item , ett_sigcomp_udvm ) ;\n udvm_tvb = tvb_new_subset_length ( tvb , offset , len ) ;\n if ( dissect_udvm_code ) dissect_udvm_bytecode ( udvm_tvb , pinfo , sigcomp_udvm_tree , destination ) ;\n offset = offset + len ;\n msg_len = tvb_reported_length_remaining ( tvb , offset ) ;\n if ( msg_len > 0 ) {\n proto_item * ti = proto_tree_add_item ( sigcomp_tree , hf_sigcomp_remaining_sigcomp_message , tvb , offset , - 1 , ENC_NA ) ;\n PROTO_ITEM_SET_GENERATED ( ti ) ;\n }\n if ( decompress ) {\n msg_tvb = tvb_new_subset_length ( tvb , offset , msg_len ) ;\n udvm_exe_item = proto_tree_add_item ( sigcomp_tree , hf_udvm_execution_trace , tvb , bytecode_offset , bytecode_len , ENC_NA ) ;\n sigcomp_udvm_exe_tree = proto_item_add_subtree ( udvm_exe_item , ett_sigcomp_udvm_exe ) ;\n decomp_tvb = decompress_sigcomp_message ( udvm_tvb , msg_tvb , pinfo , sigcomp_udvm_exe_tree , destination , udvm_print_detail_level , hf_sigcomp_partial_state , offset , 0 , 0 , destination ) ;\n if ( decomp_tvb ) {\n proto_item * ti ;\n guint32 compression_ratio = ( guint32 ) ( ( ( float ) tvb_reported_length ( decomp_tvb ) / ( float ) tvb_reported_length ( tvb ) ) * 100 ) ;\n ti = proto_tree_add_uint ( sigcomp_tree , hf_sigcomp_compression_ratio , decomp_tvb , 0 , 0 , compression_ratio ) ;\n PROTO_ITEM_SET_GENERATED ( ti ) ;\n if ( display_raw_txt ) tvb_raw_text_add ( decomp_tvb , top_tree ) ;\n col_append_str ( pinfo -> cinfo , COL_PROTOCOL , \"/\" ) ;\n col_set_fence ( pinfo -> cinfo , COL_PROTOCOL ) ;\n call_dissector ( sip_handle , decomp_tvb , pinfo , top_tree ) ;\n }\n }\n }\n }\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 16025, "target": 1, "func": "void vp9_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint8_t * dst , ptrdiff_t stride , const uint8_t * above , const uint8_t * left ) {\n type ## _predictor ( dst , stride , size , above , left ) ;\n }\n # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) static INLINE void d207_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n intra_pred_allsizes ( d207 ) static INLINE void d63_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d63 ) static INLINE void d45_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r + c + 2 < bs * 2 ? ROUND_POWER_OF_TWO ( above [ r + c ] + above [ r + c + 1 ] * 2 + above [ r + c + 2 ] , 2 ) : above [ bs * 2 - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d45 ) static INLINE void d117_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] , 1 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 3 ;\n r < bs ;\n ++ r ) dst [ ( r - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ r - 3 ] + left [ r - 2 ] * 2 + left [ r - 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - 2 * stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d117 ) static INLINE void d135_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d135 ) static INLINE void d153_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] , 1 ) ;\n for ( r = 1 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 1 ] + left [ r ] , 1 ) ;\n dst ++ ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] * 2 + above [ c + 1 ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = dst [ - stride + c - 2 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d153 ) static INLINE void v_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memcpy ( dst , above , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( v ) static INLINE void h_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset ( dst , left [ r ] , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( h ) static INLINE void tm_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n int ytop_left = above [ - 1 ] ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = clip_pixel ( left [ r ] + above [ c ] - ytop_left ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( tm )"}
{"idx": 16026, "target": 0, "func": "void TSHttpSsnReenable ( TSHttpSsn ssnp , TSEvent event ) {\n sdk_assert ( sdk_sanity_check_http_ssn ( ssnp ) == TS_SUCCESS ) ;\n ProxyClientSession * cs = reinterpret_cast < ProxyClientSession * > ( ssnp ) ;\n EThread * eth = this_ethread ( ) ;\n if ( eth -> tt != REGULAR ) {\n eventProcessor . schedule_imm ( new TSHttpSsnCallback ( cs , event ) , ET_NET ) ;\n }\n else {\n MUTEX_TRY_LOCK ( trylock , cs -> mutex , eth ) ;\n if ( ! trylock . is_locked ( ) ) {\n eventProcessor . schedule_imm ( new TSHttpSsnCallback ( cs , event ) , ET_NET ) ;\n }\n else {\n cs -> handleEvent ( ( int ) event , nullptr ) ;\n }\n }\n }"}
{"idx": 16027, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( DownloadsApiTest , DownloadsApiTest ) {\n ASSERT_TRUE ( RunExtensionTest ( \"downloads\" ) ) << message_ ;\n }"}
{"idx": 16028, "target": 0, "func": "static int dissect_h225_Setup_UUIE ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 470 \"./asn1/h225/h225.cnf\" h225_packet_info * h225_pi ;\n contains_faststart = FALSE ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_Setup_UUIE , Setup_UUIE_sequence ) ;\n # line 475 \"./asn1/h225/h225.cnf\" h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> cs_type = H225_SETUP ;\n if ( contains_faststart ) {\n char temp [ 50 ] ;\n g_snprintf ( temp , 50 , \"%s OLC (%s)\" , val_to_str ( h225_pi -> cs_type , T_h323_message_body_vals , \"<unknown>\" ) , h225_pi -> frame_label ) ;\n g_strlcpy ( h225_pi -> frame_label , temp , 50 ) ;\n }\n else g_snprintf ( h225_pi -> frame_label , 50 , \"%s\" , val_to_str ( h225_pi -> cs_type , T_h323_message_body_vals , \"<unknown>\" ) ) ;\n }\n return offset ;\n }"}
{"idx": 16029, "target": 0, "func": "static void postfilter ( WMAVoiceContext * s , const float * synth , float * samples , int size , const float * lpcs , float * zero_exc_pf , int fcb_type , int pitch ) {\n float synth_filter_in_buf [ MAX_FRAMESIZE / 2 ] , * synth_pf = & s -> synth_filter_out_buf [ MAX_LSPS_ALIGN16 ] , * synth_filter_in = zero_exc_pf ;\n assert ( size <= MAX_FRAMESIZE / 2 ) ;\n ff_celp_lp_zero_synthesis_filterf ( zero_exc_pf , lpcs , synth , size , s -> lsps ) ;\n if ( fcb_type >= FCB_TYPE_AW_PULSES && ! kalman_smoothen ( s , pitch , zero_exc_pf , synth_filter_in_buf , size ) ) synth_filter_in = synth_filter_in_buf ;\n ff_celp_lp_synthesis_filterf ( synth_pf , lpcs , synth_filter_in , size , s -> lsps ) ;\n memcpy ( & synth_pf [ - s -> lsps ] , & synth_pf [ size - s -> lsps ] , sizeof ( synth_pf [ 0 ] ) * s -> lsps ) ;\n wiener_denoise ( s , fcb_type , synth_pf , size , lpcs ) ;\n adaptive_gain_control ( samples , synth_pf , synth , size , 0.99 , & s -> postfilter_agc ) ;\n if ( s -> dc_level > 8 ) {\n ff_acelp_apply_order_2_transfer_function ( samples , samples , ( const float [ 2 ] ) {\n - 1.99997 , 1.0 }\n , ( const float [ 2 ] ) {\n - 1.9330735188 , 0.93589198496 }\n , 0.93980580475 , s -> dcf_mem , size ) ;\n }\n }"}
{"idx": 16030, "target": 1, "func": "static int ac3_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n AC3DecodeContext * s = avctx -> priv_data ;\n int blk , ch , err , ret ;\n const uint8_t * channel_map ;\n const float * output [ AC3_MAX_CHANNELS ] ;\n if ( buf_size >= 2 && AV_RB16 ( buf ) == 0x770B ) {\n int cnt = FFMIN ( buf_size , AC3_FRAME_BUFFER_SIZE ) >> 1 ;\n s -> dsp . bswap16_buf ( ( uint16_t * ) s -> input_buffer , ( const uint16_t * ) buf , cnt ) ;\n }\n else memcpy ( s -> input_buffer , buf , FFMIN ( buf_size , AC3_FRAME_BUFFER_SIZE ) ) ;\n buf = s -> input_buffer ;\n init_get_bits ( & s -> gbc , buf , buf_size * 8 ) ;\n err = parse_frame_header ( s ) ;\n if ( err ) {\n switch ( err ) {\n case AAC_AC3_PARSE_ERROR_SYNC : av_log ( avctx , AV_LOG_ERROR , \"frame sync error\\n\" ) ;\n return - 1 ;\n case AAC_AC3_PARSE_ERROR_BSID : av_log ( avctx , AV_LOG_ERROR , \"invalid bitstream id\\n\" ) ;\n break ;\n case AAC_AC3_PARSE_ERROR_SAMPLE_RATE : av_log ( avctx , AV_LOG_ERROR , \"invalid sample rate\\n\" ) ;\n break ;\n case AAC_AC3_PARSE_ERROR_FRAME_SIZE : av_log ( avctx , AV_LOG_ERROR , \"invalid frame size\\n\" ) ;\n break ;\n case AAC_AC3_PARSE_ERROR_FRAME_TYPE : if ( s -> frame_type == EAC3_FRAME_TYPE_DEPENDENT || s -> substreamid ) {\n av_log ( avctx , AV_LOG_ERROR , \"unsupported frame type : \" \"skipping frame\\n\" ) ;\n * got_frame_ptr = 0 ;\n return s -> frame_size ;\n }\n else {\n av_log ( avctx , AV_LOG_ERROR , \"invalid frame type\\n\" ) ;\n }\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"invalid header\\n\" ) ;\n break ;\n }\n }\n else {\n if ( s -> frame_size > buf_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"incomplete frame\\n\" ) ;\n err = AAC_AC3_PARSE_ERROR_FRAME_SIZE ;\n }\n else if ( avctx -> err_recognition & AV_EF_CRCCHECK ) {\n if ( av_crc ( av_crc_get_table ( AV_CRC_16_ANSI ) , 0 , & buf [ 2 ] , s -> frame_size - 2 ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"frame CRC mismatch\\n\" ) ;\n err = AAC_AC3_PARSE_ERROR_CRC ;\n }\n }\n }\n if ( ! err ) {\n avctx -> sample_rate = s -> sample_rate ;\n avctx -> bit_rate = s -> bit_rate ;\n }\n if ( ! err || ( s -> channels && s -> out_channels != s -> channels ) ) {\n s -> out_channels = s -> channels ;\n s -> output_mode = s -> channel_mode ;\n if ( s -> lfe_on ) s -> output_mode |= AC3_OUTPUT_LFEON ;\n if ( avctx -> request_channels > 0 && avctx -> request_channels <= 2 && avctx -> request_channels < s -> channels ) {\n s -> out_channels = avctx -> request_channels ;\n s -> output_mode = avctx -> request_channels == 1 ? AC3_CHMODE_MONO : AC3_CHMODE_STEREO ;\n s -> channel_layout = avpriv_ac3_channel_layout_tab [ s -> output_mode ] ;\n }\n avctx -> channels = s -> out_channels ;\n avctx -> channel_layout = s -> channel_layout ;\n if ( s -> channels != s -> out_channels && ! ( ( s -> output_mode & AC3_OUTPUT_LFEON ) && s -> fbw_channels == s -> out_channels ) ) {\n set_downmix_coeffs ( s ) ;\n }\n }\n else if ( ! s -> channels ) {\n av_log ( avctx , AV_LOG_ERROR , \"unable to determine channel mode\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n avctx -> channels = s -> out_channels ;\n avctx -> audio_service_type = s -> bitstream_mode ;\n if ( s -> bitstream_mode == 0x7 && s -> channels > 1 ) avctx -> audio_service_type = AV_AUDIO_SERVICE_TYPE_KARAOKE ;\n frame -> nb_samples = s -> num_blocks * 256 ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n channel_map = ff_ac3_dec_channel_map [ s -> output_mode & ~ AC3_OUTPUT_LFEON ] [ s -> lfe_on ] ;\n for ( ch = 0 ;\n ch < s -> channels ;\n ch ++ ) {\n if ( ch < s -> out_channels ) s -> outptr [ channel_map [ ch ] ] = ( float * ) frame -> data [ ch ] ;\n else s -> outptr [ ch ] = s -> output [ ch ] ;\n output [ ch ] = s -> output [ ch ] ;\n }\n for ( blk = 0 ;\n blk < s -> num_blocks ;\n blk ++ ) {\n if ( ! err && decode_audio_block ( s , blk ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"error decoding the audio block\\n\" ) ;\n err = 1 ;\n }\n if ( err ) for ( ch = 0 ;\n ch < s -> out_channels ;\n ch ++ ) memcpy ( s -> outptr [ channel_map [ ch ] ] , output [ ch ] , 1024 ) ;\n for ( ch = 0 ;\n ch < s -> out_channels ;\n ch ++ ) {\n output [ ch ] = s -> outptr [ channel_map [ ch ] ] ;\n s -> outptr [ channel_map [ ch ] ] += AC3_BLOCK_SIZE ;\n }\n }\n for ( ch = 0 ;\n ch < s -> out_channels ;\n ch ++ ) memcpy ( s -> output [ ch ] , output [ ch ] , 1024 ) ;\n * got_frame_ptr = 1 ;\n return FFMIN ( buf_size , s -> frame_size ) ;\n }"}
{"idx": 16031, "target": 0, "func": "TEST_F ( ExtensionServiceSyncTest , GetSyncDataFilter ) {\n InitializeEmptyExtensionService ( ) ;\n InstallCRX ( data_dir ( ) . AppendASCII ( \"good.crx\" ) , INSTALL_NEW ) ;\n const Extension * extension = service ( ) -> GetInstalledExtension ( good_crx ) ;\n ASSERT_TRUE ( extension ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : APPS , syncer : : SyncDataList ( ) , base : : MakeUnique < syncer : : FakeSyncChangeProcessor > ( ) , base : : MakeUnique < syncer : : SyncErrorFactoryMock > ( ) ) ;\n syncer : : SyncDataList list = extension_sync_service ( ) -> GetAllSyncData ( syncer : : EXTENSIONS ) ;\n ASSERT_EQ ( list . size ( ) , 0U ) ;\n }"}
{"idx": 16032, "target": 0, "func": "void ialloc_set_limit ( register gs_ref_memory_t * mem ) {\n ulong max_allocated = ( mem -> gc_status . max_vm > mem -> previous_status . allocated ? mem -> gc_status . max_vm - mem -> previous_status . allocated : 0 ) ;\n if ( mem -> gc_status . enabled ) {\n ulong limit = mem -> gc_allocated + mem -> gc_status . vm_threshold ;\n if ( limit < mem -> previous_status . allocated ) mem -> limit = 0 ;\n else {\n limit -= mem -> previous_status . allocated ;\n mem -> limit = min ( limit , max_allocated ) ;\n }\n }\n else mem -> limit = min ( max_allocated , mem -> gc_allocated + FORCE_GC_LIMIT ) ;\n if_debug7m ( '0' , ( const gs_memory_t * ) mem , \"[0]space=%d, max_vm=%ld, prev.alloc=%ld, enabled=%d, \" \"gc_alloc=%ld, threshold=%ld => limit=%ld\\n\" , mem -> space , ( long ) mem -> gc_status . max_vm , ( long ) mem -> previous_status . allocated , mem -> gc_status . enabled , ( long ) mem -> gc_allocated , ( long ) mem -> gc_status . vm_threshold , ( long ) mem -> limit ) ;\n }"}
{"idx": 16033, "target": 0, "func": "static const uint8_t * read_huffman_tables ( FourXContext * f , const uint8_t * const buf ) {\n int frequency [ 512 ] = {\n 0 }\n ;\n uint8_t flag [ 512 ] ;\n int up [ 512 ] ;\n uint8_t len_tab [ 257 ] ;\n int bits_tab [ 257 ] ;\n int start , end ;\n const uint8_t * ptr = buf ;\n int j ;\n memset ( up , - 1 , sizeof ( up ) ) ;\n start = * ptr ++ ;\n end = * ptr ++ ;\n for ( ;\n ;\n ) {\n int i ;\n for ( i = start ;\n i <= end ;\n i ++ ) frequency [ i ] = * ptr ++ ;\n start = * ptr ++ ;\n if ( start == 0 ) break ;\n end = * ptr ++ ;\n }\n frequency [ 256 ] = 1 ;\n while ( ( ptr - buf ) & 3 ) ptr ++ ;\n for ( j = 257 ;\n j < 512 ;\n j ++ ) {\n int min_freq [ 2 ] = {\n 256 * 256 , 256 * 256 }\n ;\n int smallest [ 2 ] = {\n 0 , 0 }\n ;\n int i ;\n for ( i = 0 ;\n i < j ;\n i ++ ) {\n if ( frequency [ i ] == 0 ) continue ;\n if ( frequency [ i ] < min_freq [ 1 ] ) {\n if ( frequency [ i ] < min_freq [ 0 ] ) {\n min_freq [ 1 ] = min_freq [ 0 ] ;\n smallest [ 1 ] = smallest [ 0 ] ;\n min_freq [ 0 ] = frequency [ i ] ;\n smallest [ 0 ] = i ;\n }\n else {\n min_freq [ 1 ] = frequency [ i ] ;\n smallest [ 1 ] = i ;\n }\n }\n }\n if ( min_freq [ 1 ] == 256 * 256 ) break ;\n frequency [ j ] = min_freq [ 0 ] + min_freq [ 1 ] ;\n flag [ smallest [ 0 ] ] = 0 ;\n flag [ smallest [ 1 ] ] = 1 ;\n up [ smallest [ 0 ] ] = up [ smallest [ 1 ] ] = j ;\n frequency [ smallest [ 0 ] ] = frequency [ smallest [ 1 ] ] = 0 ;\n }\n for ( j = 0 ;\n j < 257 ;\n j ++ ) {\n int node , len = 0 , bits = 0 ;\n for ( node = j ;\n up [ node ] != - 1 ;\n node = up [ node ] ) {\n bits += flag [ node ] << len ;\n len ++ ;\n if ( len > 31 ) av_log ( f -> avctx , AV_LOG_ERROR , \"vlc length overflow\\n\" ) ;\n }\n bits_tab [ j ] = bits ;\n len_tab [ j ] = len ;\n }\n if ( init_vlc ( & f -> pre_vlc , ACDC_VLC_BITS , 257 , len_tab , 1 , 1 , bits_tab , 4 , 4 , 0 ) ) return NULL ;\n return ptr ;\n }"}
{"idx": 16034, "target": 0, "func": "int parse_CCategSpec ( tvbuff_t * tvb , packet_info * pinfo , int offset , proto_tree * parent_tree , proto_tree * pad_tree , const char * fmt , ... ) {\n proto_item * item ;\n proto_tree * tree ;\n va_list ap ;\n guint32 type ;\n const char * txt ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CCategSpec , & item , txt ) ;\n type = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_ccategspec_type , tvb , offset , 4 , type ) ;\n proto_item_append_text ( item , \" Type %u\" , type ) ;\n offset += 4 ;\n offset = parse_CSort ( tvb , offset , tree , pad_tree , \"CSort\" ) ;\n offset = parse_CRangeCategSpec ( tvb , pinfo , offset , tree , pad_tree , \"CRangeCategSpec\" ) ;\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 16035, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ContentSettingBubbleDialogTest , InvokeDialog_popups ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n RunDialog ( ) ;\n }"}
{"idx": 16036, "target": 0, "func": "void init_re ( void ) {\n const char * ps_re_str = \"^(\" \"[[:space:]]*REPLACE[[:space:]]|\" \"[[:space:]]*INSERT[[:space:]]|\" \"[[:space:]]*UPDATE[[:space:]]|\" \"[[:space:]]*DELETE[[:space:]]|\" \"[[:space:]]*SELECT[[:space:]]|\" \"[[:space:]]*CREATE[[:space:]]+TABLE[[:space:]]|\" \"[[:space:]]*DO[[:space:]]|\" \"[[:space:]]*SET[[:space:]]+OPTION[[:space:]]|\" \"[[:space:]]*DELETE[[:space:]]+MULTI[[:space:]]|\" \"[[:space:]]*UPDATE[[:space:]]+MULTI[[:space:]]|\" \"[[:space:]]*INSERT[[:space:]]+SELECT[[:space:]])\" ;\n const char * sp_re_str = ps_re_str ;\n const char * view_re_str = \"^(\" \"[[:space:]]*SELECT[[:space:]])\" ;\n init_re_comp ( & ps_re , ps_re_str ) ;\n init_re_comp ( & sp_re , sp_re_str ) ;\n init_re_comp ( & view_re , view_re_str ) ;\n }"}
{"idx": 16037, "target": 0, "func": "TSReturnCode TSHttpTxnServerAddrSet ( TSHttpTxn txnp , struct sockaddr const * addr ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = reinterpret_cast < HttpSM * > ( txnp ) ;\n if ( ats_ip_copy ( & sm -> t_state . server_info . dst_addr . sa , addr ) ) {\n sm -> t_state . api_server_addr_set = true ;\n return TS_SUCCESS ;\n }\n else {\n return TS_ERROR ;\n }\n }"}
{"idx": 16038, "target": 0, "func": "static int dissect_h245_VideoIndicateCompose ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_VideoIndicateCompose , VideoIndicateCompose_sequence ) ;\n return offset ;\n }"}
{"idx": 16039, "target": 0, "func": "void TSHttpTxnActiveTimeoutSet ( TSHttpTxn txnp , int timeout ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpTransact : : State * s = & ( ( ( HttpSM * ) txnp ) -> t_state ) ;\n s -> api_txn_active_timeout_value = timeout ;\n }"}
{"idx": 16040, "target": 1, "func": "static vpx_fixed_buf_t pass0 ( vpx_image_t * raw , FILE * infile , const VpxInterface * encoder , const vpx_codec_enc_cfg_t * cfg ) {\n vpx_codec_ctx_t codec ;\n int frame_count = 0 ;\n vpx_fixed_buf_t stats = {\n NULL , 0 }\n ;\n if ( vpx_codec_enc_init ( & codec , encoder -> codec_interface ( ) , cfg , 0 ) ) die_codec ( & codec , \"Failed to initialize encoder\" ) ;\n while ( vpx_img_read ( raw , infile ) ) {\n ++ frame_count ;\n get_frame_stats ( & codec , raw , frame_count , 1 , 0 , VPX_DL_BEST_QUALITY , & stats ) ;\n }\n while ( get_frame_stats ( & codec , NULL , frame_count , 1 , 0 , VPX_DL_BEST_QUALITY , & stats ) ) {\n }\n printf ( \"Pass 0 complete. Processed %d frames.\\n\" , frame_count ) ;\n if ( vpx_codec_destroy ( & codec ) ) die_codec ( & codec , \"Failed to destroy codec.\" ) ;\n return stats ;\n }"}
{"idx": 16041, "target": 0, "func": "static int evdns_request_len ( const int name_len ) {\n return 96 + name_len + 2 + 4 ;\n }"}
{"idx": 16042, "target": 0, "func": "int ssl3_setup_buffers ( SSL * s ) {\n if ( ! ssl3_setup_read_buffer ( s ) ) return 0 ;\n if ( ! ssl3_setup_write_buffer ( s ) ) return 0 ;\n return 1 ;\n }"}
{"idx": 16043, "target": 0, "func": "static bool is_version_2 ( void * opaque , int version_id ) {\n return version_id == 2 ;\n }"}
{"idx": 16044, "target": 0, "func": "void armv7m_nvic_complete_irq ( void * opaque , int irq ) {\n nvic_state * s = ( nvic_state * ) opaque ;\n if ( irq >= 16 ) irq += 16 ;\n gic_complete_irq ( & s -> gic , 0 , irq ) ;\n }"}
{"idx": 16045, "target": 0, "func": "const char * event_base_get_method ( struct event_base * base ) {\n assert ( base ) ;\n return ( base -> evsel -> name ) ;\n }"}
{"idx": 16046, "target": 0, "func": "int event_add ( struct event * ev , const struct timeval * tv ) {\n struct event_base * base = ev -> ev_base ;\n const struct eventop * evsel = base -> evsel ;\n void * evbase = base -> evbase ;\n int res = 0 ;\n event_debug ( ( \"event_add: event: %p, %s%s%scall %p\" , ev , ev -> ev_events & EV_READ ? \"EV_READ \" : \" \" , ev -> ev_events & EV_WRITE ? \"EV_WRITE \" : \" \" , tv ? \"EV_TIMEOUT \" : \" \" , ev -> ev_callback ) ) ;\n assert ( ! ( ev -> ev_flags & ~ EVLIST_ALL ) ) ;\n if ( tv != NULL && ! ( ev -> ev_flags & EVLIST_TIMEOUT ) ) {\n if ( min_heap_reserve ( & base -> timeheap , + min_heap_size ( & base -> timeheap ) ) == - 1 ) return ( - 1 ) ;\n }\n if ( ( ev -> ev_events & ( EV_READ | EV_WRITE | EV_SIGNAL ) ) && ! ( ev -> ev_flags & ( EVLIST_INSERTED | EVLIST_ACTIVE ) ) ) {\n res = evsel -> add ( evbase , ev ) ;\n if ( res != - 1 ) event_queue_insert ( base , ev , EVLIST_INSERTED ) ;\n }\n if ( res != - 1 && tv != NULL ) {\n struct timeval now ;\n if ( ev -> ev_flags & EVLIST_TIMEOUT ) event_queue_remove ( base , ev , EVLIST_TIMEOUT ) ;\n if ( ( ev -> ev_flags & EVLIST_ACTIVE ) && ( ev -> ev_res & EV_TIMEOUT ) ) {\n if ( ev -> ev_ncalls && ev -> ev_pncalls ) {\n * ev -> ev_pncalls = 0 ;\n }\n event_queue_remove ( base , ev , EVLIST_ACTIVE ) ;\n }\n gettime ( base , & now ) ;\n evutil_timeradd ( & now , tv , & ev -> ev_timeout ) ;\n event_debug ( ( \"event_add: timeout in %ld seconds, call %p\" , tv -> tv_sec , ev -> ev_callback ) ) ;\n event_queue_insert ( base , ev , EVLIST_TIMEOUT ) ;\n }\n return ( res ) ;\n }"}
{"idx": 16047, "target": 1, "func": "static int libschroedinger_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n int64_t pts = avpkt -> pts ;\n SchroTag * tag ;\n SchroDecoderParams * p_schro_params = avctx -> priv_data ;\n SchroDecoder * decoder = p_schro_params -> decoder ;\n SchroBuffer * enc_buf ;\n SchroFrame * frame ;\n int state ;\n int go = 1 ;\n int outer = 1 ;\n SchroParseUnitContext parse_ctx ;\n LibSchroFrameContext * framewithpts = NULL ;\n * got_frame = 0 ;\n parse_context_init ( & parse_ctx , buf , buf_size ) ;\n if ( ! buf_size ) {\n if ( ! p_schro_params -> eos_signalled ) {\n state = schro_decoder_push_end_of_stream ( decoder ) ;\n p_schro_params -> eos_signalled = 1 ;\n }\n }\n do {\n if ( ( enc_buf = find_next_parse_unit ( & parse_ctx ) ) ) {\n enc_buf -> tag = schro_tag_new ( av_malloc ( sizeof ( int64_t ) ) , av_free ) ;\n if ( ! enc_buf -> tag -> value ) {\n av_log ( avctx , AV_LOG_ERROR , \"Unable to allocate SchroTag\\n\" ) ;\n return AVERROR ( ENOMEM ) ;\n }\n AV_WN ( 64 , enc_buf -> tag -> value , pts ) ;\n if ( SCHRO_PARSE_CODE_IS_PICTURE ( enc_buf -> data [ 4 ] ) && SCHRO_PARSE_CODE_NUM_REFS ( enc_buf -> data [ 4 ] ) > 0 ) avctx -> has_b_frames = 1 ;\n state = schro_decoder_push ( decoder , enc_buf ) ;\n if ( state == SCHRO_DECODER_FIRST_ACCESS_UNIT ) libschroedinger_handle_first_access_unit ( avctx ) ;\n go = 1 ;\n }\n else outer = 0 ;\n while ( go ) {\n state = schro_decoder_wait ( decoder ) ;\n switch ( state ) {\n case SCHRO_DECODER_FIRST_ACCESS_UNIT : libschroedinger_handle_first_access_unit ( avctx ) ;\n break ;\n case SCHRO_DECODER_NEED_BITS : go = 0 ;\n break ;\n case SCHRO_DECODER_NEED_FRAME : frame = ff_create_schro_frame ( avctx , p_schro_params -> frame_format ) ;\n schro_decoder_add_output_picture ( decoder , frame ) ;\n break ;\n case SCHRO_DECODER_OK : tag = schro_decoder_get_picture_tag ( decoder ) ;\n frame = schro_decoder_pull ( decoder ) ;\n if ( frame ) {\n framewithpts = av_malloc ( sizeof ( LibSchroFrameContext ) ) ;\n if ( ! framewithpts ) {\n av_log ( avctx , AV_LOG_ERROR , \"Unable to allocate FrameWithPts\\n\" ) ;\n return AVERROR ( ENOMEM ) ;\n }\n framewithpts -> frame = frame ;\n framewithpts -> pts = AV_RN64 ( tag -> value ) ;\n ff_schro_queue_push_back ( & p_schro_params -> dec_frame_queue , framewithpts ) ;\n }\n break ;\n case SCHRO_DECODER_EOS : go = 0 ;\n p_schro_params -> eos_pulled = 1 ;\n schro_decoder_reset ( decoder ) ;\n outer = 0 ;\n break ;\n case SCHRO_DECODER_ERROR : return - 1 ;\n break ;\n }\n }\n }\n while ( outer ) ;\n framewithpts = ff_schro_queue_pop ( & p_schro_params -> dec_frame_queue ) ;\n if ( framewithpts && framewithpts -> frame ) {\n if ( p_schro_params -> dec_frame . data [ 0 ] ) avctx -> release_buffer ( avctx , & p_schro_params -> dec_frame ) ;\n if ( ff_get_buffer ( avctx , & p_schro_params -> dec_frame ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Unable to allocate buffer\\n\" ) ;\n return AVERROR ( ENOMEM ) ;\n }\n memcpy ( p_schro_params -> dec_frame . data [ 0 ] , framewithpts -> frame -> components [ 0 ] . data , framewithpts -> frame -> components [ 0 ] . length ) ;\n memcpy ( p_schro_params -> dec_frame . data [ 1 ] , framewithpts -> frame -> components [ 1 ] . data , framewithpts -> frame -> components [ 1 ] . length ) ;\n memcpy ( p_schro_params -> dec_frame . data [ 2 ] , framewithpts -> frame -> components [ 2 ] . data , framewithpts -> frame -> components [ 2 ] . length ) ;\n p_schro_params -> dec_frame . format = - 1 ;\n p_schro_params -> dec_frame . width = framewithpts -> frame -> width ;\n p_schro_params -> dec_frame . height = framewithpts -> frame -> height ;\n p_schro_params -> dec_frame . pkt_pts = framewithpts -> pts ;\n p_schro_params -> dec_frame . linesize [ 0 ] = framewithpts -> frame -> components [ 0 ] . stride ;\n p_schro_params -> dec_frame . linesize [ 1 ] = framewithpts -> frame -> components [ 1 ] . stride ;\n p_schro_params -> dec_frame . linesize [ 2 ] = framewithpts -> frame -> components [ 2 ] . stride ;\n * ( AVFrame * ) data = p_schro_params -> dec_frame ;\n * got_frame = 1 ;\n libschroedinger_decode_frame_free ( framewithpts -> frame ) ;\n av_free ( framewithpts ) ;\n }\n else {\n data = NULL ;\n * got_frame = 0 ;\n }\n return buf_size ;\n }"}
{"idx": 16048, "target": 0, "func": "TSReturnCode TSUrlPortSet ( TSMBuffer bufp , TSMLoc obj , int port ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_url_handle ( obj ) == TS_SUCCESS ) ;\n if ( ! isWriteable ( bufp ) || ( port < 0 ) ) {\n return TS_ERROR ;\n }\n URL u ;\n u . m_heap = ( ( HdrHeapSDKHandle * ) bufp ) -> m_heap ;\n u . m_url_impl = ( URLImpl * ) obj ;\n u . port_set ( port ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 16049, "target": 0, "func": "static XHCIEPContext * xhci_alloc_epctx ( XHCIState * xhci , unsigned int slotid , unsigned int epid ) {\n XHCIEPContext * epctx ;\n epctx = g_new0 ( XHCIEPContext , 1 ) ;\n epctx -> xhci = xhci ;\n epctx -> slotid = slotid ;\n epctx -> epid = epid ;\n QTAILQ_INIT ( & epctx -> transfers ) ;\n epctx -> kick_timer = timer_new_ns ( QEMU_CLOCK_VIRTUAL , xhci_ep_kick_timer , epctx ) ;\n return epctx ;\n }"}
{"idx": 16050, "target": 0, "func": "static int dissect_h225_UnregRequestReason ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 615 \"./asn1/h225/h225.cnf\" gint32 value ;\n h225_packet_info * h225_pi ;\n h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_UnregRequestReason , UnregRequestReason_choice , & value ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> reason = value ;\n }\n return offset ;\n }"}
{"idx": 16051, "target": 0, "func": "static void vga_draw_line4d2 ( VGACommonState * vga , uint8_t * d , uint32_t addr , int width ) {\n uint32_t plane_mask , data , v , * palette ;\n int x ;\n palette = vga -> last_palette ;\n plane_mask = mask16 [ vga -> ar [ VGA_ATC_PLANE_ENABLE ] & 0xf ] ;\n width >>= 3 ;\n for ( x = 0 ;\n x < width ;\n x ++ ) {\n data = vga_read_dword_le ( vga , addr ) ;\n data &= plane_mask ;\n v = expand4 [ GET_PLANE ( data , 0 ) ] ;\n v |= expand4 [ GET_PLANE ( data , 1 ) ] << 1 ;\n v |= expand4 [ GET_PLANE ( data , 2 ) ] << 2 ;\n v |= expand4 [ GET_PLANE ( data , 3 ) ] << 3 ;\n PUT_PIXEL2 ( d , 0 , palette [ v >> 28 ] ) ;\n PUT_PIXEL2 ( d , 1 , palette [ ( v >> 24 ) & 0xf ] ) ;\n PUT_PIXEL2 ( d , 2 , palette [ ( v >> 20 ) & 0xf ] ) ;\n PUT_PIXEL2 ( d , 3 , palette [ ( v >> 16 ) & 0xf ] ) ;\n PUT_PIXEL2 ( d , 4 , palette [ ( v >> 12 ) & 0xf ] ) ;\n PUT_PIXEL2 ( d , 5 , palette [ ( v >> 8 ) & 0xf ] ) ;\n PUT_PIXEL2 ( d , 6 , palette [ ( v >> 4 ) & 0xf ] ) ;\n PUT_PIXEL2 ( d , 7 , palette [ ( v >> 0 ) & 0xf ] ) ;\n d += 64 ;\n addr += 4 ;\n }\n }"}
{"idx": 16052, "target": 0, "func": "int parse_CColumnGroupArray ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree , const char * fmt , ... ) {\n proto_tree * tree ;\n proto_item * item ;\n va_list ap ;\n const char * txt ;\n guint32 count , i ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CColumnGroupArray , & item , txt ) ;\n count = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_ccolumngrouparray_count , tvb , offset , 4 , count ) ;\n offset += 4 ;\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n offset = parse_padding ( tvb , offset , 4 , pad_tree , \"aGroupArray[%u]\" , i ) ;\n offset = parse_CColumnGroup ( tvb , offset , tree , pad_tree , \"aGroupArray[%u]\" , i ) ;\n }\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 16053, "target": 0, "func": "static int selinux_shm_alloc_security ( struct shmid_kernel * shp ) {\n struct ipc_security_struct * isec ;\n struct common_audit_data ad ;\n u32 sid = current_sid ( ) ;\n int rc ;\n rc = ipc_alloc_security ( current , & shp -> shm_perm , SECCLASS_SHM ) ;\n if ( rc ) return rc ;\n isec = shp -> shm_perm . security ;\n ad . type = LSM_AUDIT_DATA_IPC ;\n ad . u . ipc_id = shp -> shm_perm . key ;\n rc = avc_has_perm ( sid , isec -> sid , SECCLASS_SHM , SHM__CREATE , & ad ) ;\n if ( rc ) {\n ipc_free_security ( & shp -> shm_perm ) ;\n return rc ;\n }\n return 0 ;\n }"}
{"idx": 16054, "target": 0, "func": "static int dissect_h245_H235Media ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_H235Media , H235Media_sequence ) ;\n return offset ;\n }"}
{"idx": 16055, "target": 0, "func": "IN_PROC_BROWSER_TEST_P ( BrowserCloseManagerBrowserTest , MAYBE_AddBeforeUnloadDuringClosing ) {\n if ( GetParam ( ) ) return ;\n ASSERT_NO_FATAL_FAILURE ( ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/title1.html\" ) ) ) ;\n ui_test_utils : : NavigateToURLWithDisposition ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/beforeunload.html\" ) , WindowOpenDisposition : : NEW_WINDOW , ui_test_utils : : BROWSER_TEST_WAIT_FOR_BROWSER ) ;\n EXPECT_EQ ( 2u , BrowserList : : GetInstance ( ) -> size ( ) ) ;\n auto * browser2 = BrowserList : : GetInstance ( ) -> get ( 0 ) != browser ( ) ? BrowserList : : GetInstance ( ) -> get ( 0 ) : BrowserList : : GetInstance ( ) -> get ( 1 ) ;\n content : : WaitForLoadStop ( browser2 -> tab_strip_model ( ) -> GetWebContentsAt ( 0 ) ) ;\n EXPECT_TRUE ( browser2 -> tab_strip_model ( ) -> GetWebContentsAt ( 0 ) -> NeedToFireBeforeUnload ( ) ) ;\n ui_test_utils : : NavigateToURLWithDisposition ( browser2 , embedded_test_server ( ) -> GetURL ( \"/title2.html\" ) , WindowOpenDisposition : : NEW_FOREGROUND_TAB , ui_test_utils : : BROWSER_TEST_WAIT_FOR_NAVIGATION ) ;\n content : : WaitForLoadStop ( browser2 -> tab_strip_model ( ) -> GetWebContentsAt ( 1 ) ) ;\n EXPECT_FALSE ( browser2 -> tab_strip_model ( ) -> GetWebContentsAt ( 1 ) -> NeedToFireBeforeUnload ( ) ) ;\n EXPECT_EQ ( 2 , browser2 -> tab_strip_model ( ) -> count ( ) ) ;\n PrepareForDialog ( browser2 ) ;\n TabRestoreServiceChangesObserver restore_observer ( browser2 -> profile ( ) ) ;\n content : : WindowedNotificationObserver observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , content : : NotificationService : : AllSources ( ) ) ;\n chrome : : CloseWindow ( browser2 ) ;\n content : : RunAllPendingInMessageLoop ( ) ;\n EXPECT_EQ ( 2u , BrowserList : : GetInstance ( ) -> size ( ) ) ;\n ASSERT_TRUE ( content : : ExecuteScript ( browser2 -> tab_strip_model ( ) -> GetWebContentsAt ( 1 ) -> GetRenderViewHost ( ) , \"window.addEventListener('beforeunload', \" \"function(event) {\n event.returnValue = 'Foo';\n }\n);\n\" ) ) ;\n EXPECT_TRUE ( browser2 -> tab_strip_model ( ) -> GetWebContentsAt ( 1 ) -> NeedToFireBeforeUnload ( ) ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n content : : RunAllPendingInMessageLoop ( ) ;\n EXPECT_EQ ( 2u , BrowserList : : GetInstance ( ) -> size ( ) ) ;\n EXPECT_EQ ( 2 , browser2 -> tab_strip_model ( ) -> count ( ) ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n observer . Wait ( ) ;\n EXPECT_EQ ( 1u , BrowserList : : GetInstance ( ) -> size ( ) ) ;\n EXPECT_EQ ( browser ( ) , BrowserList : : GetInstance ( ) -> get ( 0 ) ) ;\n EXPECT_EQ ( 1u , restore_observer . changes_count ( ) ) ;\n content : : WindowedNotificationObserver open_window_observer ( chrome : : NOTIFICATION_BROWSER_OPENED , content : : NotificationService : : AllSources ( ) ) ;\n chrome : : OpenWindowWithRestoredTabs ( browser ( ) -> profile ( ) ) ;\n open_window_observer . Wait ( ) ;\n EXPECT_EQ ( 2u , BrowserList : : GetInstance ( ) -> size ( ) ) ;\n browser2 = BrowserList : : GetInstance ( ) -> get ( 0 ) != browser ( ) ? BrowserList : : GetInstance ( ) -> get ( 0 ) : BrowserList : : GetInstance ( ) -> get ( 1 ) ;\n EXPECT_EQ ( 2 , browser2 -> tab_strip_model ( ) -> count ( ) ) ;\n EXPECT_EQ ( embedded_test_server ( ) -> GetURL ( \"/beforeunload.html\" ) , browser2 -> tab_strip_model ( ) -> GetWebContentsAt ( 0 ) -> GetURL ( ) ) ;\n EXPECT_EQ ( embedded_test_server ( ) -> GetURL ( \"/title2.html\" ) , browser2 -> tab_strip_model ( ) -> GetWebContentsAt ( 1 ) -> GetURL ( ) ) ;\n }"}
{"idx": 16056, "target": 0, "func": "static int update_index ( AVFormatContext * s , int start_sec , uint32_t packet_number , uint16_t packet_count , uint64_t packet_offset ) {\n ASFContext * asf = s -> priv_data ;\n if ( start_sec > asf -> next_start_sec ) {\n int i ;\n if ( ! asf -> next_start_sec ) {\n asf -> next_packet_number = packet_number ;\n asf -> next_packet_count = packet_count ;\n asf -> next_packet_offset = packet_offset ;\n }\n if ( start_sec > asf -> nb_index_memory_alloc ) {\n int err ;\n asf -> nb_index_memory_alloc = ( start_sec + ASF_INDEX_BLOCK ) & ~ ( ASF_INDEX_BLOCK - 1 ) ;\n if ( ( err = av_reallocp_array ( & asf -> index_ptr , asf -> nb_index_memory_alloc , sizeof ( * asf -> index_ptr ) ) ) < 0 ) {\n asf -> nb_index_memory_alloc = 0 ;\n return err ;\n }\n }\n for ( i = asf -> next_start_sec ;\n i < start_sec ;\n i ++ ) {\n asf -> index_ptr [ i ] . packet_number = asf -> next_packet_number ;\n asf -> index_ptr [ i ] . packet_count = asf -> next_packet_count ;\n asf -> index_ptr [ i ] . send_time = asf -> next_start_sec * INT64_C ( 10000000 ) ;\n asf -> index_ptr [ i ] . offset = asf -> next_packet_offset ;\n }\n }\n asf -> maximum_packet = FFMAX ( asf -> maximum_packet , packet_count ) ;\n asf -> next_packet_number = packet_number ;\n asf -> next_packet_count = packet_count ;\n asf -> next_packet_offset = packet_offset ;\n asf -> next_start_sec = start_sec ;\n return 0 ;\n }"}
{"idx": 16057, "target": 0, "func": "static void test_simple_update ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n char szData [ 25 ] ;\n int nData = 1 ;\n MYSQL_RES * result ;\n MYSQL_BIND my_bind [ 2 ] ;\n ulong length [ 2 ] ;\n char query [ MAX_TEST_QUERY_LENGTH ] ;\n myheader ( \"test_simple_update\" ) ;\n rc = mysql_autocommit ( mysql , TRUE ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_update\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_update(col1 int, \" \" col2 varchar(50), col3 int )\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_update VALUES(1, 'MySQL', 100)\" ) ;\n myquery ( rc ) ;\n verify_affected_rows ( 1 ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n strmov ( query , \"UPDATE test_update SET col2= ? WHERE col1= ?\" ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 2 ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n nData = 1 ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 0 ] . buffer = szData ;\n my_bind [ 0 ] . buffer_length = sizeof ( szData ) ;\n my_bind [ 0 ] . length = & length [ 0 ] ;\n length [ 0 ] = sprintf ( szData , \"updated-data\" ) ;\n my_bind [ 1 ] . buffer = ( void * ) & nData ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_LONG ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n verify_affected_rows ( 1 ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"SELECT * FROM test_update\" ) ;\n myquery ( rc ) ;\n result = mysql_store_result ( mysql ) ;\n mytest ( result ) ;\n rc = my_process_result_set ( result ) ;\n DIE_UNLESS ( rc == 1 ) ;\n mysql_free_result ( result ) ;\n }"}
{"idx": 16058, "target": 0, "func": "static int dsa_pub_cmp ( const EVP_PKEY * a , const EVP_PKEY * b ) {\n if ( BN_cmp ( b -> pkey . dsa -> pub_key , a -> pkey . dsa -> pub_key ) != 0 ) return 0 ;\n else return 1 ;\n }"}
{"idx": 16059, "target": 0, "func": "static krb5_error_code build_principal_va ( krb5_context context , krb5_principal princ , unsigned int rlen , const char * realm , va_list ap ) {\n krb5_error_code retval = 0 ;\n char * r = NULL ;\n krb5_data * data = NULL ;\n krb5_int32 count = 0 ;\n krb5_int32 size = 2 ;\n char * component = NULL ;\n data = malloc ( size * sizeof ( krb5_data ) ) ;\n if ( ! data ) {\n retval = ENOMEM ;\n }\n if ( ! retval ) r = k5memdup0 ( realm , rlen , & retval ) ;\n while ( ! retval && ( component = va_arg ( ap , char * ) ) ) {\n if ( count == size ) {\n krb5_data * new_data = NULL ;\n size *= 2 ;\n new_data = realloc ( data , size * sizeof ( krb5_data ) ) ;\n if ( new_data ) {\n data = new_data ;\n }\n else {\n retval = ENOMEM ;\n }\n }\n if ( ! retval ) {\n data [ count ] . length = strlen ( component ) ;\n data [ count ] . data = strdup ( component ) ;\n if ( ! data [ count ] . data ) {\n retval = ENOMEM ;\n }\n count ++ ;\n }\n }\n if ( ! retval ) {\n princ -> type = KRB5_NT_UNKNOWN ;\n princ -> magic = KV5M_PRINCIPAL ;\n princ -> realm = make_data ( r , rlen ) ;\n princ -> data = data ;\n princ -> length = count ;\n r = NULL ;\n data = NULL ;\n }\n if ( data ) {\n while ( -- count >= 0 ) {\n free ( data [ count ] . data ) ;\n }\n free ( data ) ;\n }\n free ( r ) ;\n return retval ;\n }"}
{"idx": 16060, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , PayloadSize ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : LOAD_EVENT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/page_load_metrics/large.html\" ) ) ;\n waiter -> Wait ( ) ;\n NavigateToUntrackedUrl ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramPageLoadTotalBytes , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kHistogramPageLoadTotalBytes , 10 , 1 ) ;\n }"}
{"idx": 16061, "target": 0, "func": "static void test_opt_reconnect ( ) {\n MYSQL * lmysql ;\n my_bool my_true = TRUE ;\n myheader ( \"test_opt_reconnect\" ) ;\n if ( ! ( lmysql = mysql_client_init ( NULL ) ) ) {\n myerror ( \"mysql_client_init() failed\" ) ;\n exit ( 1 ) ;\n }\n if ( ! opt_silent ) fprintf ( stdout , \"reconnect before mysql_options: %d\\n\" , lmysql -> reconnect ) ;\n DIE_UNLESS ( lmysql -> reconnect == 0 ) ;\n if ( mysql_options ( lmysql , MYSQL_OPT_RECONNECT , & my_true ) ) {\n myerror ( \"mysql_options failed: unknown option MYSQL_OPT_RECONNECT\\n\" ) ;\n DIE_UNLESS ( 0 ) ;\n }\n if ( ! opt_silent ) fprintf ( stdout , \"reconnect after mysql_options: %d\\n\" , lmysql -> reconnect ) ;\n DIE_UNLESS ( lmysql -> reconnect == 1 ) ;\n if ( ! ( mysql_real_connect ( lmysql , opt_host , opt_user , opt_password , current_db , opt_port , opt_unix_socket , 0 ) ) ) {\n myerror ( \"connection failed\" ) ;\n DIE_UNLESS ( 0 ) ;\n }\n if ( ! opt_silent ) fprintf ( stdout , \"reconnect after mysql_real_connect: %d\\n\" , lmysql -> reconnect ) ;\n DIE_UNLESS ( lmysql -> reconnect == 1 ) ;\n mysql_close ( lmysql ) ;\n if ( ! ( lmysql = mysql_client_init ( NULL ) ) ) {\n myerror ( \"mysql_client_init() failed\" ) ;\n DIE_UNLESS ( 0 ) ;\n }\n if ( ! opt_silent ) fprintf ( stdout , \"reconnect before mysql_real_connect: %d\\n\" , lmysql -> reconnect ) ;\n DIE_UNLESS ( lmysql -> reconnect == 0 ) ;\n if ( ! ( mysql_real_connect ( lmysql , opt_host , opt_user , opt_password , current_db , opt_port , opt_unix_socket , 0 ) ) ) {\n myerror ( \"connection failed\" ) ;\n DIE_UNLESS ( 0 ) ;\n }\n if ( ! opt_silent ) fprintf ( stdout , \"reconnect after mysql_real_connect: %d\\n\" , lmysql -> reconnect ) ;\n DIE_UNLESS ( lmysql -> reconnect == 0 ) ;\n mysql_close ( lmysql ) ;\n }"}
{"idx": 16062, "target": 0, "func": "static void xhci_ring_init ( XHCIState * xhci , XHCIRing * ring , dma_addr_t base ) {\n ring -> dequeue = base ;\n ring -> ccs = 1 ;\n }"}
{"idx": 16063, "target": 0, "func": "static int rawv6_ioctl ( struct sock * sk , int cmd , unsigned long arg ) {\n switch ( cmd ) {\n case SIOCOUTQ : {\n int amount = sk_wmem_alloc_get ( sk ) ;\n return put_user ( amount , ( int __user * ) arg ) ;\n }\n case SIOCINQ : {\n struct sk_buff * skb ;\n int amount = 0 ;\n spin_lock_bh ( & sk -> sk_receive_queue . lock ) ;\n skb = skb_peek ( & sk -> sk_receive_queue ) ;\n if ( skb != NULL ) amount = skb -> tail - skb -> transport_header ;\n spin_unlock_bh ( & sk -> sk_receive_queue . lock ) ;\n return put_user ( amount , ( int __user * ) arg ) ;\n }\n default : # ifdef CONFIG_IPV6_MROUTE return ip6mr_ioctl ( sk , cmd , ( void __user * ) arg ) ;\n # else return - ENOIOCTLCMD ;\n # endif }\n }"}
{"idx": 16064, "target": 0, "func": "static int dissect_h225_T_range ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_T_range , T_range_sequence ) ;\n return offset ;\n }"}
{"idx": 16065, "target": 0, "func": "static const char * cmd_stream_inbody_inspection ( cmd_parms * cmd , void * _dcfg , int flag ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n if ( dcfg == NULL ) return NULL ;\n dcfg -> stream_inbody_inspection = flag ;\n return NULL ;\n }"}
{"idx": 16066, "target": 0, "func": "static int isoent_cmp_iso9660_identifier ( const struct isoent * p1 , const struct isoent * p2 ) {\n const char * s1 , * s2 ;\n int cmp ;\n int l ;\n s1 = p1 -> identifier ;\n s2 = p2 -> identifier ;\n l = p1 -> ext_off ;\n if ( l > p2 -> ext_off ) l = p2 -> ext_off ;\n cmp = memcmp ( s1 , s2 , l ) ;\n if ( cmp != 0 ) return ( cmp ) ;\n if ( p1 -> ext_off < p2 -> ext_off ) {\n s2 += l ;\n l = p2 -> ext_off - p1 -> ext_off ;\n while ( l -- ) if ( 0x20 != * s2 ++ ) return ( 0x20 - * ( const unsigned char * ) ( s2 - 1 ) ) ;\n }\n else if ( p1 -> ext_off > p2 -> ext_off ) {\n s1 += l ;\n l = p1 -> ext_off - p2 -> ext_off ;\n while ( l -- ) if ( 0x20 != * s1 ++ ) return ( * ( const unsigned char * ) ( s1 - 1 ) - 0x20 ) ;\n }\n if ( p1 -> ext_len == 0 && p2 -> ext_len == 0 ) return ( 0 ) ;\n if ( p1 -> ext_len == 1 && p2 -> ext_len == 1 ) return ( 0 ) ;\n if ( p1 -> ext_len <= 1 ) return ( - 1 ) ;\n if ( p2 -> ext_len <= 1 ) return ( 1 ) ;\n l = p1 -> ext_len ;\n if ( l > p2 -> ext_len ) l = p2 -> ext_len ;\n s1 = p1 -> identifier + p1 -> ext_off ;\n s2 = p2 -> identifier + p2 -> ext_off ;\n if ( l > 1 ) {\n cmp = memcmp ( s1 , s2 , l ) ;\n if ( cmp != 0 ) return ( cmp ) ;\n }\n if ( p1 -> ext_len < p2 -> ext_len ) {\n s2 += l ;\n l = p2 -> ext_len - p1 -> ext_len ;\n while ( l -- ) if ( 0x20 != * s2 ++ ) return ( 0x20 - * ( const unsigned char * ) ( s2 - 1 ) ) ;\n }\n else if ( p1 -> ext_len > p2 -> ext_len ) {\n s1 += l ;\n l = p1 -> ext_len - p2 -> ext_len ;\n while ( l -- ) if ( 0x20 != * s1 ++ ) return ( * ( const unsigned char * ) ( s1 - 1 ) - 0x20 ) ;\n }\n return ( cmp ) ;\n }"}
{"idx": 16067, "target": 1, "func": "static int h261_decode_mb_skipped ( H261Context * h , int mba1 , int mba2 ) {\n MpegEncContext * const s = & h -> s ;\n int i ;\n s -> mb_intra = 0 ;\n for ( i = mba1 ;\n i < mba2 ;\n i ++ ) {\n int j , xy ;\n s -> mb_x = ( ( h -> gob_number - 1 ) % 2 ) * 11 + i % 11 ;\n s -> mb_y = ( ( h -> gob_number - 1 ) / 2 ) * 3 + i / 11 ;\n xy = s -> mb_x + s -> mb_y * s -> mb_stride ;\n ff_init_block_index ( s ) ;\n ff_update_block_index ( s ) ;\n for ( j = 0 ;\n j < 6 ;\n j ++ ) s -> block_last_index [ j ] = - 1 ;\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n s -> current_picture . f . mb_type [ xy ] = MB_TYPE_SKIP | MB_TYPE_16x16 | MB_TYPE_L0 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = 0 ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = 0 ;\n s -> mb_skipped = 1 ;\n h -> mtype &= ~ MB_TYPE_H261_FIL ;\n ff_MPV_decode_mb ( s , s -> block ) ;\n }\n return 0 ;\n }"}
{"idx": 16068, "target": 0, "func": "static void dtap_tp_close_tch_loop_cmd ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_len = len ;\n curr_offset = offset ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_TP_SUB_CHANNEL , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 16069, "target": 0, "func": "static void proto_tree_set_ipxnet ( field_info * fi , guint32 value ) {\n fvalue_set_uinteger ( & fi -> value , value ) ;\n }"}
{"idx": 16070, "target": 0, "func": "static Const * string_to_const ( const char * str , Oid datatype ) {\n Datum conval = string_to_datum ( str , datatype ) ;\n Oid collation ;\n int constlen ;\n switch ( datatype ) {\n case TEXTOID : case VARCHAROID : case BPCHAROID : collation = DEFAULT_COLLATION_OID ;\n constlen = - 1 ;\n break ;\n case NAMEOID : collation = InvalidOid ;\n constlen = NAMEDATALEN ;\n break ;\n case BYTEAOID : collation = InvalidOid ;\n constlen = - 1 ;\n break ;\n default : elog ( ERROR , \"unexpected datatype in string_to_const: %u\" , datatype ) ;\n return NULL ;\n }\n return makeConst ( datatype , - 1 , collation , constlen , conval , false , false ) ;\n }"}
{"idx": 16071, "target": 0, "func": "static int proc_alloc_streams ( struct usb_dev_state * ps , void __user * arg ) {\n unsigned num_streams , num_eps ;\n struct usb_host_endpoint * * eps ;\n struct usb_interface * intf ;\n int r ;\n r = parse_usbdevfs_streams ( ps , arg , & num_streams , & num_eps , & eps , & intf ) ;\n if ( r ) return r ;\n destroy_async_on_interface ( ps , intf -> altsetting [ 0 ] . desc . bInterfaceNumber ) ;\n r = usb_alloc_streams ( intf , eps , num_eps , num_streams , GFP_KERNEL ) ;\n kfree ( eps ) ;\n return r ;\n }"}
{"idx": 16072, "target": 0, "func": "static void freestuff ( struct psstack * stack , int sp , struct pskeydict * dict , GrowBuf * gb , struct garbage * tofrees ) {\n int i ;\n free ( gb -> base ) ;\n for ( i = 0 ;\n i < dict -> cnt ;\n ++ i ) {\n if ( dict -> entries [ i ] . type == ps_string || dict -> entries [ i ] . type == ps_instr || dict -> entries [ i ] . type == ps_lit ) free ( dict -> entries [ i ] . u . str ) ;\n free ( dict -> entries [ i ] . key ) ;\n }\n free ( dict -> entries ) ;\n for ( i = 0 ;\n i < sp ;\n ++ i ) {\n if ( stack [ i ] . type == ps_string || stack [ i ] . type == ps_instr || stack [ i ] . type == ps_lit ) free ( stack [ i ] . u . str ) ;\n }\n garbagefree ( tofrees ) ;\n }"}
{"idx": 16073, "target": 0, "func": "static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 16074, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n PNGDecContext * const s = avctx -> priv_data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n AVFrame * p = data ;\n uint8_t * crow_buf_base = NULL ;\n uint32_t tag , length ;\n int ret ;\n if ( buf_size < 8 || memcmp ( buf , ff_pngsig , 8 ) != 0 && memcmp ( buf , ff_mngsig , 8 ) != 0 ) return - 1 ;\n bytestream2_init ( & s -> gb , buf + 8 , buf_size - 8 ) ;\n s -> y = s -> state = 0 ;\n s -> zstream . zalloc = ff_png_zalloc ;\n s -> zstream . zfree = ff_png_zfree ;\n s -> zstream . opaque = NULL ;\n ret = inflateInit ( & s -> zstream ) ;\n if ( ret != Z_OK ) return - 1 ;\n for ( ;\n ;\n ) {\n if ( bytestream2_get_bytes_left ( & s -> gb ) <= 0 ) goto fail ;\n length = bytestream2_get_be32 ( & s -> gb ) ;\n if ( length > 0x7fffffff ) goto fail ;\n tag = bytestream2_get_le32 ( & s -> gb ) ;\n av_dlog ( avctx , \"png: tag=%c%c%c%c length=%u\\n\" , ( tag & 0xff ) , ( ( tag >> 8 ) & 0xff ) , ( ( tag >> 16 ) & 0xff ) , ( ( tag >> 24 ) & 0xff ) , length ) ;\n switch ( tag ) {\n case MKTAG ( 'I' , 'H' , 'D' , 'R' ) : if ( length != 13 ) goto fail ;\n s -> width = bytestream2_get_be32 ( & s -> gb ) ;\n s -> height = bytestream2_get_be32 ( & s -> gb ) ;\n if ( av_image_check_size ( s -> width , s -> height , 0 , avctx ) ) {\n s -> width = s -> height = 0 ;\n goto fail ;\n }\n s -> bit_depth = bytestream2_get_byte ( & s -> gb ) ;\n s -> color_type = bytestream2_get_byte ( & s -> gb ) ;\n s -> compression_type = bytestream2_get_byte ( & s -> gb ) ;\n s -> filter_type = bytestream2_get_byte ( & s -> gb ) ;\n s -> interlace_type = bytestream2_get_byte ( & s -> gb ) ;\n bytestream2_skip ( & s -> gb , 4 ) ;\n s -> state |= PNG_IHDR ;\n av_dlog ( avctx , \"width=%d height=%d depth=%d color_type=%d \" \"compression_type=%d filter_type=%d interlace_type=%d\\n\" , s -> width , s -> height , s -> bit_depth , s -> color_type , s -> compression_type , s -> filter_type , s -> interlace_type ) ;\n break ;\n case MKTAG ( 'I' , 'D' , 'A' , 'T' ) : if ( ! ( s -> state & PNG_IHDR ) ) goto fail ;\n if ( ! ( s -> state & PNG_IDAT ) ) {\n avctx -> width = s -> width ;\n avctx -> height = s -> height ;\n s -> channels = ff_png_get_nb_channels ( s -> color_type ) ;\n s -> bits_per_pixel = s -> bit_depth * s -> channels ;\n s -> bpp = ( s -> bits_per_pixel + 7 ) >> 3 ;\n s -> row_size = ( avctx -> width * s -> bits_per_pixel + 7 ) >> 3 ;\n if ( s -> bit_depth == 8 && s -> color_type == PNG_COLOR_TYPE_RGB ) {\n avctx -> pix_fmt = AV_PIX_FMT_RGB24 ;\n }\n else if ( s -> bit_depth == 8 && s -> color_type == PNG_COLOR_TYPE_RGB_ALPHA ) {\n avctx -> pix_fmt = AV_PIX_FMT_RGB32 ;\n }\n else if ( s -> bit_depth == 8 && s -> color_type == PNG_COLOR_TYPE_GRAY ) {\n avctx -> pix_fmt = AV_PIX_FMT_GRAY8 ;\n }\n else if ( s -> bit_depth == 16 && s -> color_type == PNG_COLOR_TYPE_GRAY ) {\n avctx -> pix_fmt = AV_PIX_FMT_GRAY16BE ;\n }\n else if ( s -> bit_depth == 16 && s -> color_type == PNG_COLOR_TYPE_RGB ) {\n avctx -> pix_fmt = AV_PIX_FMT_RGB48BE ;\n }\n else if ( s -> bit_depth == 1 && s -> color_type == PNG_COLOR_TYPE_GRAY ) {\n avctx -> pix_fmt = AV_PIX_FMT_MONOBLACK ;\n }\n else if ( s -> bit_depth == 8 && s -> color_type == PNG_COLOR_TYPE_PALETTE ) {\n avctx -> pix_fmt = AV_PIX_FMT_PAL8 ;\n }\n else if ( s -> bit_depth == 8 && s -> color_type == PNG_COLOR_TYPE_GRAY_ALPHA ) {\n avctx -> pix_fmt = AV_PIX_FMT_Y400A ;\n }\n else {\n goto fail ;\n }\n if ( ff_get_buffer ( avctx , p , AV_GET_BUFFER_FLAG_REF ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n goto fail ;\n }\n p -> pict_type = AV_PICTURE_TYPE_I ;\n p -> key_frame = 1 ;\n p -> interlaced_frame = ! ! s -> interlace_type ;\n if ( ! s -> interlace_type ) {\n s -> crow_size = s -> row_size + 1 ;\n }\n else {\n s -> pass = 0 ;\n s -> pass_row_size = ff_png_pass_row_size ( s -> pass , s -> bits_per_pixel , s -> width ) ;\n s -> crow_size = s -> pass_row_size + 1 ;\n }\n av_dlog ( avctx , \"row_size=%d crow_size =%d\\n\" , s -> row_size , s -> crow_size ) ;\n s -> image_buf = p -> data [ 0 ] ;\n s -> image_linesize = p -> linesize [ 0 ] ;\n if ( s -> color_type == PNG_COLOR_TYPE_PALETTE ) memcpy ( p -> data [ 1 ] , s -> palette , 256 * sizeof ( uint32_t ) ) ;\n s -> last_row = av_mallocz ( s -> row_size ) ;\n if ( ! s -> last_row ) goto fail ;\n if ( s -> interlace_type || s -> color_type == PNG_COLOR_TYPE_RGB_ALPHA ) {\n s -> tmp_row = av_malloc ( s -> row_size ) ;\n if ( ! s -> tmp_row ) goto fail ;\n }\n crow_buf_base = av_malloc ( s -> row_size + 16 ) ;\n if ( ! crow_buf_base ) goto fail ;\n s -> crow_buf = crow_buf_base + 15 ;\n s -> zstream . avail_out = s -> crow_size ;\n s -> zstream . next_out = s -> crow_buf ;\n }\n s -> state |= PNG_IDAT ;\n if ( png_decode_idat ( s , length ) < 0 ) goto fail ;\n bytestream2_skip ( & s -> gb , 4 ) ;\n break ;\n case MKTAG ( 'P' , 'L' , 'T' , 'E' ) : {\n int n , i , r , g , b ;\n if ( ( length % 3 ) != 0 || length > 256 * 3 ) goto skip_tag ;\n n = length / 3 ;\n for ( i = 0 ;\n i < n ;\n i ++ ) {\n r = bytestream2_get_byte ( & s -> gb ) ;\n g = bytestream2_get_byte ( & s -> gb ) ;\n b = bytestream2_get_byte ( & s -> gb ) ;\n s -> palette [ i ] = ( 0xff << 24 ) | ( r << 16 ) | ( g << 8 ) | b ;\n }\n for ( ;\n i < 256 ;\n i ++ ) {\n s -> palette [ i ] = ( 0xff << 24 ) ;\n }\n s -> state |= PNG_PLTE ;\n bytestream2_skip ( & s -> gb , 4 ) ;\n }\n break ;\n case MKTAG ( 't' , 'R' , 'N' , 'S' ) : {\n int v , i ;\n if ( s -> color_type != PNG_COLOR_TYPE_PALETTE || length > 256 || ! ( s -> state & PNG_PLTE ) ) goto skip_tag ;\n for ( i = 0 ;\n i < length ;\n i ++ ) {\n v = bytestream2_get_byte ( & s -> gb ) ;\n s -> palette [ i ] = ( s -> palette [ i ] & 0x00ffffff ) | ( v << 24 ) ;\n }\n bytestream2_skip ( & s -> gb , 4 ) ;\n }\n break ;\n case MKTAG ( 'I' , 'E' , 'N' , 'D' ) : if ( ! ( s -> state & PNG_ALLIMAGE ) ) goto fail ;\n bytestream2_skip ( & s -> gb , 4 ) ;\n goto exit_loop ;\n default : skip_tag : bytestream2_skip ( & s -> gb , length + 4 ) ;\n break ;\n }\n }\n exit_loop : if ( s -> prev -> data [ 0 ] ) {\n if ( ! ( avpkt -> flags & AV_PKT_FLAG_KEY ) ) {\n int i , j ;\n uint8_t * pd = p -> data [ 0 ] ;\n uint8_t * pd_last = s -> prev -> data [ 0 ] ;\n for ( j = 0 ;\n j < s -> height ;\n j ++ ) {\n for ( i = 0 ;\n i < s -> width * s -> bpp ;\n i ++ ) {\n pd [ i ] += pd_last [ i ] ;\n }\n pd += s -> image_linesize ;\n pd_last += s -> image_linesize ;\n }\n }\n }\n av_frame_unref ( s -> prev ) ;\n if ( ( ret = av_frame_ref ( s -> prev , p ) ) < 0 ) goto fail ;\n * got_frame = 1 ;\n ret = bytestream2_tell ( & s -> gb ) ;\n the_end : inflateEnd ( & s -> zstream ) ;\n av_free ( crow_buf_base ) ;\n s -> crow_buf = NULL ;\n av_freep ( & s -> last_row ) ;\n av_freep ( & s -> tmp_row ) ;\n return ret ;\n fail : ret = - 1 ;\n goto the_end ;\n }"}
{"idx": 16075, "target": 0, "func": "static int rm_read_close ( AVFormatContext * s ) {\n int i ;\n for ( i = 0 ;\n i < s -> nb_streams ;\n i ++ ) ff_rm_free_rmstream ( s -> streams [ i ] -> priv_data ) ;\n return 0 ;\n }"}
{"idx": 16076, "target": 0, "func": "int encode_function ( char * string , struct filter_op * fop ) {\n char * str = strdup ( string ) ;\n int ret = - E_NOTFOUND ;\n char * name , * args ;\n int nargs = 0 , i ;\n char * * dec_args = NULL ;\n char * tok ;\n memset ( fop , 0 , sizeof ( struct filter_op ) ) ;\n name = ec_strtok ( string , \"(\" , & tok ) ;\n args = name + strlen ( name ) + 1 ;\n dec_args = decode_args ( args , & nargs ) ;\n fop -> opcode = FOP_FUNC ;\n if ( ! strcmp ( name , \"search\" ) ) {\n if ( nargs == 2 ) {\n if ( encode_offset ( dec_args [ 0 ] , fop ) == E_SUCCESS ) {\n fop -> opcode = FOP_FUNC ;\n fop -> op . func . op = FFUNC_SEARCH ;\n fop -> op . func . string = ( u_char * ) strdup ( dec_args [ 1 ] ) ;\n fop -> op . func . slen = strescape ( ( char * ) fop -> op . func . string , ( char * ) fop -> op . func . string , strlen ( fop -> op . func . string ) + 1 ) ;\n ret = E_SUCCESS ;\n }\n else SCRIPT_ERROR ( \"Unknown offset %s \" , dec_args [ 0 ] ) ;\n }\n else SCRIPT_ERROR ( \"Wrong number of arguments for function \\\"%s\\\" \" , name ) ;\n }\n else if ( ! strcmp ( name , \"regex\" ) ) {\n if ( nargs == 2 ) {\n int err ;\n regex_t regex ;\n char errbuf [ 100 ] ;\n if ( encode_offset ( dec_args [ 0 ] , fop ) == E_SUCCESS ) {\n fop -> opcode = FOP_FUNC ;\n fop -> op . func . op = FFUNC_REGEX ;\n fop -> op . func . string = ( u_char * ) strdup ( dec_args [ 1 ] ) ;\n fop -> op . func . slen = strescape ( ( char * ) fop -> op . func . string , ( char * ) fop -> op . func . string , strlen ( fop -> op . func . string ) + 1 ) ;\n ret = E_SUCCESS ;\n }\n else SCRIPT_ERROR ( \"Unknown offset %s \" , dec_args [ 0 ] ) ;\n err = regcomp ( & regex , ( const char * ) fop -> op . func . string , REG_EXTENDED | REG_NOSUB | REG_ICASE ) ;\n if ( err ) {\n regerror ( err , & regex , errbuf , sizeof ( errbuf ) ) ;\n SCRIPT_ERROR ( \"%s\" , errbuf ) ;\n }\n regfree ( & regex ) ;\n }\n else SCRIPT_ERROR ( \"Wrong number of arguments for function \\\"%s\\\" \" , name ) ;\n }\n else if ( ! strcmp ( name , \"pcre_regex\" ) ) {\n # ifndef HAVE_PCRE WARNING ( \"The script contains pcre_regex, but you don't have support for it.\" ) ;\n # else pcre * pregex ;\n const char * errbuf = NULL ;\n int erroff ;\n if ( nargs == 2 ) {\n if ( encode_offset ( dec_args [ 0 ] , fop ) == E_SUCCESS ) {\n fop -> opcode = FOP_FUNC ;\n fop -> op . func . op = FFUNC_PCRE ;\n fop -> op . func . string = strdup ( dec_args [ 1 ] ) ;\n fop -> op . func . slen = strlen ( fop -> op . func . string ) ;\n ret = E_SUCCESS ;\n }\n else SCRIPT_ERROR ( \"Unknown offset %s \" , dec_args [ 0 ] ) ;\n pregex = pcre_compile ( fop -> op . func . string , 0 , & errbuf , & erroff , NULL ) ;\n if ( pregex == NULL ) SCRIPT_ERROR ( \"%s\\n\" , errbuf ) ;\n pcre_free ( pregex ) ;\n }\n else if ( nargs == 3 ) {\n fop -> opcode = FOP_FUNC ;\n fop -> op . func . op = FFUNC_PCRE ;\n fop -> op . func . level = 5 ;\n fop -> op . func . string = strdup ( dec_args [ 1 ] ) ;\n fop -> op . func . slen = strlen ( fop -> op . func . string ) ;\n fop -> op . func . replace = strdup ( dec_args [ 2 ] ) ;\n fop -> op . func . rlen = strlen ( fop -> op . func . replace ) ;\n ret = E_SUCCESS ;\n pregex = pcre_compile ( fop -> op . func . string , 0 , & errbuf , & erroff , NULL ) ;\n if ( pregex == NULL ) SCRIPT_ERROR ( \"%s\\n\" , errbuf ) ;\n pcre_free ( pregex ) ;\n }\n else SCRIPT_ERROR ( \"Wrong number of arguments for function \\\"%s\\\" \" , name ) ;\n # endif }\n else if ( ! strcmp ( name , \"replace\" ) ) {\n if ( nargs == 2 ) {\n fop -> op . func . op = FFUNC_REPLACE ;\n fop -> op . func . level = 5 ;\n fop -> op . func . string = ( u_char * ) strdup ( dec_args [ 0 ] ) ;\n fop -> op . func . slen = strescape ( ( char * ) fop -> op . func . string , ( char * ) fop -> op . func . string , strlen ( fop -> op . func . string ) + 1 ) ;\n fop -> op . func . replace = ( u_char * ) strdup ( dec_args [ 1 ] ) ;\n fop -> op . func . rlen = strescape ( ( char * ) fop -> op . func . replace , ( char * ) fop -> op . func . replace , strlen ( fop -> op . func . replace ) + 1 ) ;\n ret = E_SUCCESS ;\n }\n else SCRIPT_ERROR ( \"Wrong number of arguments for function \\\"%s\\\" \" , name ) ;\n }\n else if ( ! strcmp ( name , \"inject\" ) ) {\n if ( nargs == 1 ) {\n fop -> op . func . op = FFUNC_INJECT ;\n fop -> op . func . level = 5 ;\n fop -> op . func . string = ( u_char * ) strdup ( dec_args [ 0 ] ) ;\n fop -> op . func . slen = strlen ( ( const char * ) fop -> op . func . string ) ;\n ret = E_SUCCESS ;\n }\n else SCRIPT_ERROR ( \"Wrong number of arguments for function \\\"%s\\\" \" , name ) ;\n }\n else if ( ! strcmp ( name , \"execinject\" ) ) {\n if ( nargs == 1 ) {\n fop -> op . func . op = FFUNC_EXECINJECT ;\n fop -> op . func . level = 5 ;\n fop -> op . func . string = ( u_char * ) strdup ( dec_args [ 0 ] ) ;\n fop -> op . func . slen = strlen ( ( const char * ) fop -> op . func . string ) ;\n ret = E_SUCCESS ;\n }\n else SCRIPT_ERROR ( \"Wrong number of arguments for function \\\"%s\\\" \" , name ) ;\n }\n else if ( ! strcmp ( name , \"log\" ) ) {\n if ( nargs == 2 ) {\n if ( encode_offset ( dec_args [ 0 ] , fop ) == E_SUCCESS ) {\n fop -> opcode = FOP_FUNC ;\n fop -> op . func . op = FFUNC_LOG ;\n fop -> op . func . string = ( u_char * ) strdup ( dec_args [ 1 ] ) ;\n fop -> op . func . slen = strlen ( ( const char * ) fop -> op . func . string ) ;\n ret = E_SUCCESS ;\n }\n else SCRIPT_ERROR ( \"Unknown offset %s \" , dec_args [ 0 ] ) ;\n }\n else SCRIPT_ERROR ( \"Wrong number of arguments for function \\\"%s\\\" \" , name ) ;\n }\n else if ( ! strcmp ( name , \"drop\" ) ) {\n if ( nargs == 0 ) {\n fop -> op . func . op = FFUNC_DROP ;\n ret = E_SUCCESS ;\n }\n else SCRIPT_ERROR ( \"Wrong number of arguments for function \\\"%s\\\" \" , name ) ;\n }\n else if ( ! strcmp ( name , \"kill\" ) ) {\n if ( nargs == 0 ) {\n fop -> op . func . op = FFUNC_KILL ;\n ret = E_SUCCESS ;\n }\n else SCRIPT_ERROR ( \"Wrong number of arguments for function \\\"%s\\\" \" , name ) ;\n }\n else if ( ! strcmp ( name , \"msg\" ) ) {\n if ( nargs == 1 ) {\n fop -> op . func . op = FFUNC_MSG ;\n fop -> op . func . string = ( u_char * ) strdup ( dec_args [ 0 ] ) ;\n fop -> op . func . slen = strescape ( ( char * ) fop -> op . func . string , ( char * ) fop -> op . func . string , strlen ( fop -> op . func . string ) + 1 ) ;\n ret = E_SUCCESS ;\n }\n else SCRIPT_ERROR ( \"Wrong number of arguments for function \\\"%s\\\" \" , name ) ;\n }\n else if ( ! strcmp ( name , \"exec\" ) ) {\n if ( nargs == 1 ) {\n fop -> op . func . op = FFUNC_EXEC ;\n fop -> op . func . string = ( u_char * ) strdup ( dec_args [ 0 ] ) ;\n fop -> op . func . slen = strlen ( ( const char * ) fop -> op . func . string ) ;\n ret = E_SUCCESS ;\n }\n else SCRIPT_ERROR ( \"Wrong number of arguments for function \\\"%s\\\" \" , name ) ;\n }\n else if ( ! strcmp ( name , \"exit\" ) ) {\n if ( nargs == 0 ) {\n fop -> opcode = FOP_EXIT ;\n ret = E_SUCCESS ;\n }\n else SCRIPT_ERROR ( \"Wrong number of arguments for function \\\"%s\\\" \" , name ) ;\n }\n for ( i = 0 ;\n i < nargs ;\n i ++ ) SAFE_FREE ( dec_args [ i ] ) ;\n SAFE_FREE ( dec_args ) ;\n SAFE_FREE ( str ) ;\n return ret ;\n }"}
{"idx": 16077, "target": 0, "func": "static int com_source ( String * buffer __attribute__ ( ( unused ) ) , char * line ) {\n char source_name [ FN_REFLEN ] , * end , * param ;\n LINE_BUFFER * line_buff ;\n int error ;\n STATUS old_status ;\n FILE * sql_file ;\n my_bool save_ignore_errors ;\n while ( my_isspace ( charset_info , * line ) ) line ++ ;\n if ( ! ( param = strchr ( line , ' ' ) ) ) return put_info ( \"Usage: \\\\. <filename> | source <filename>\" , INFO_ERROR , 0 ) ;\n while ( my_isspace ( charset_info , * param ) ) param ++ ;\n end = strmake_buf ( source_name , param ) ;\n while ( end > source_name && ( my_isspace ( charset_info , end [ - 1 ] ) || my_iscntrl ( charset_info , end [ - 1 ] ) ) ) end -- ;\n end [ 0 ] = 0 ;\n unpack_filename ( source_name , source_name ) ;\n if ( ! ( sql_file = my_fopen ( source_name , O_RDONLY | O_BINARY , MYF ( 0 ) ) ) ) {\n char buff [ FN_REFLEN + 60 ] ;\n sprintf ( buff , \"Failed to open file '%s', error: %d\" , source_name , errno ) ;\n return put_info ( buff , INFO_ERROR , 0 ) ;\n }\n if ( ! ( line_buff = batch_readline_init ( MAX_BATCH_BUFFER_SIZE , sql_file ) ) ) {\n my_fclose ( sql_file , MYF ( 0 ) ) ;\n return put_info ( \"Can't initialize batch_readline\" , INFO_ERROR , 0 ) ;\n }\n old_status = status ;\n save_ignore_errors = ignore_errors ;\n bfill ( ( char * ) & status , sizeof ( status ) , ( char ) 0 ) ;\n status . batch = old_status . batch ;\n status . line_buff = line_buff ;\n status . file_name = source_name ;\n glob_buffer . length ( 0 ) ;\n ignore_errors = ! batch_abort_on_error ;\n in_com_source = 1 ;\n error = read_and_execute ( false ) ;\n ignore_errors = save_ignore_errors ;\n status = old_status ;\n in_com_source = aborted = 0 ;\n my_fclose ( sql_file , MYF ( 0 ) ) ;\n batch_readline_end ( line_buff ) ;\n if ( error && ignore_errors ) error = - 1 ;\n return error ;\n }"}
{"idx": 16078, "target": 1, "func": "void vp9_init_second_pass ( VP9_COMP * cpi ) {\n SVC * const svc = & cpi -> svc ;\n const VP9EncoderConfig * const oxcf = & cpi -> oxcf ;\n const int is_two_pass_svc = ( svc -> number_spatial_layers > 1 ) || ( svc -> number_temporal_layers > 1 ) ;\n TWO_PASS * const twopass = is_two_pass_svc ? & svc -> layer_context [ svc -> spatial_layer_id ] . twopass : & cpi -> twopass ;\n double frame_rate ;\n FIRSTPASS_STATS * stats ;\n zero_stats ( & twopass -> total_stats ) ;\n zero_stats ( & twopass -> total_left_stats ) ;\n if ( ! twopass -> stats_in_end ) return ;\n stats = & twopass -> total_stats ;\n * stats = * twopass -> stats_in_end ;\n twopass -> total_left_stats = * stats ;\n frame_rate = 10000000.0 * stats -> count / stats -> duration ;\n if ( is_two_pass_svc ) {\n vp9_update_spatial_layer_framerate ( cpi , frame_rate ) ;\n twopass -> bits_left = ( int64_t ) ( stats -> duration * svc -> layer_context [ svc -> spatial_layer_id ] . target_bandwidth / 10000000.0 ) ;\n }\n else {\n vp9_new_framerate ( cpi , frame_rate ) ;\n twopass -> bits_left = ( int64_t ) ( stats -> duration * oxcf -> target_bandwidth / 10000000.0 ) ;\n }\n if ( ! is_two_pass_svc ) {\n twopass -> kf_intra_err_min = KF_MB_INTRA_MIN * cpi -> common . MBs ;\n twopass -> gf_intra_err_min = GF_MB_INTRA_MIN * cpi -> common . MBs ;\n }\n twopass -> sr_update_lag = 1 ;\n {\n const double avg_error = stats -> coded_error / DOUBLE_DIVIDE_CHECK ( stats -> count ) ;\n const FIRSTPASS_STATS * s = twopass -> stats_in ;\n double modified_error_total = 0.0 ;\n twopass -> modified_error_min = ( avg_error * oxcf -> two_pass_vbrmin_section ) / 100 ;\n twopass -> modified_error_max = ( avg_error * oxcf -> two_pass_vbrmax_section ) / 100 ;\n while ( s < twopass -> stats_in_end ) {\n modified_error_total += calculate_modified_err ( twopass , oxcf , s ) ;\n ++ s ;\n }\n twopass -> modified_error_left = modified_error_total ;\n }\n cpi -> rc . vbr_bits_off_target = 0 ;\n }"}
{"idx": 16079, "target": 0, "func": "static void encode_loopfilter ( struct loopfilter * lf , struct vp9_write_bit_buffer * wb ) {\n int i ;\n vp9_wb_write_literal ( wb , lf -> filter_level , 6 ) ;\n vp9_wb_write_literal ( wb , lf -> sharpness_level , 3 ) ;\n vp9_wb_write_bit ( wb , lf -> mode_ref_delta_enabled ) ;\n if ( lf -> mode_ref_delta_enabled ) {\n vp9_wb_write_bit ( wb , lf -> mode_ref_delta_update ) ;\n if ( lf -> mode_ref_delta_update ) {\n for ( i = 0 ;\n i < MAX_REF_LF_DELTAS ;\n i ++ ) {\n const int delta = lf -> ref_deltas [ i ] ;\n const int changed = delta != lf -> last_ref_deltas [ i ] ;\n vp9_wb_write_bit ( wb , changed ) ;\n if ( changed ) {\n lf -> last_ref_deltas [ i ] = delta ;\n vp9_wb_write_literal ( wb , abs ( delta ) & 0x3F , 6 ) ;\n vp9_wb_write_bit ( wb , delta < 0 ) ;\n }\n }\n for ( i = 0 ;\n i < MAX_MODE_LF_DELTAS ;\n i ++ ) {\n const int delta = lf -> mode_deltas [ i ] ;\n const int changed = delta != lf -> last_mode_deltas [ i ] ;\n vp9_wb_write_bit ( wb , changed ) ;\n if ( changed ) {\n lf -> last_mode_deltas [ i ] = delta ;\n vp9_wb_write_literal ( wb , abs ( delta ) & 0x3F , 6 ) ;\n vp9_wb_write_bit ( wb , delta < 0 ) ;\n }\n }\n }\n }\n }"}
{"idx": 16080, "target": 0, "func": "unsigned int srtp_get_version ( ) {\n unsigned int major = 0 , minor = 0 , micro = 0 ;\n unsigned int rv = 0 ;\n int parse_rv ;\n parse_rv = sscanf ( SRTP_VERSION , \"%u.%u.%u\" , & major , & minor , & micro ) ;\n if ( parse_rv != 3 ) {\n return ( 0 ) ;\n }\n rv |= ( major & 0xFF ) << 24 ;\n rv |= ( minor & 0xFF ) << 16 ;\n rv |= micro & 0xFF ;\n return rv ;\n }"}
{"idx": 16081, "target": 0, "func": "static void _slurm_rpc_shutdown_controller_immediate ( slurm_msg_t * msg ) {\n int error_code = SLURM_SUCCESS ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n if ( ! validate_super_user ( uid ) ) {\n error ( \"Security violation, SHUTDOWN_IMMEDIATE RPC from uid=%d\" , uid ) ;\n error_code = ESLURM_USER_ID_MISSING ;\n }\n if ( error_code == SLURM_SUCCESS ) debug ( \"Performing RPC: REQUEST_SHUTDOWN_IMMEDIATE\" ) ;\n }"}
{"idx": 16082, "target": 0, "func": "void input_DecoderDelete ( decoder_t * p_dec ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n vlc_cancel ( p_owner -> thread ) ;\n vlc_mutex_lock ( & p_owner -> lock ) ;\n const bool b_was_paused = p_owner -> b_paused ;\n p_owner -> b_paused = false ;\n p_owner -> b_waiting = false ;\n p_owner -> b_flushing = true ;\n p_owner -> b_exit = true ;\n vlc_cond_signal ( & p_owner -> wait_request ) ;\n vlc_mutex_unlock ( & p_owner -> lock ) ;\n vlc_join ( p_owner -> thread , NULL ) ;\n p_owner -> b_paused = b_was_paused ;\n module_unneed ( p_dec , p_dec -> p_module ) ;\n if ( p_dec -> p_owner -> cc . b_supported ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) input_DecoderSetCcState ( p_dec , false , i ) ;\n }\n DeleteDecoder ( p_dec ) ;\n }"}
{"idx": 16083, "target": 0, "func": "static int jpc_pi_nextrlcp ( register jpc_pi_t * pi ) {\n jpc_pchg_t * pchg ;\n int * prclyrno ;\n pchg = pi -> pchg ;\n if ( ! pi -> prgvolfirst ) {\n assert ( pi -> prcno < pi -> pirlvl -> numprcs ) ;\n prclyrno = & pi -> pirlvl -> prclyrnos [ pi -> prcno ] ;\n goto skip ;\n }\n else {\n pi -> prgvolfirst = 0 ;\n }\n for ( pi -> rlvlno = pchg -> rlvlnostart ;\n pi -> rlvlno < pi -> maxrlvls && pi -> rlvlno < pchg -> rlvlnoend ;\n ++ pi -> rlvlno ) {\n for ( pi -> lyrno = 0 ;\n pi -> lyrno < pi -> numlyrs && pi -> lyrno < JAS_CAST ( int , pchg -> lyrnoend ) ;\n ++ pi -> lyrno ) {\n for ( pi -> compno = pchg -> compnostart , pi -> picomp = & pi -> picomps [ pi -> compno ] ;\n pi -> compno < pi -> numcomps && pi -> compno < JAS_CAST ( int , pchg -> compnoend ) ;\n ++ pi -> compno , ++ pi -> picomp ) {\n if ( pi -> rlvlno >= pi -> picomp -> numrlvls ) {\n continue ;\n }\n pi -> pirlvl = & pi -> picomp -> pirlvls [ pi -> rlvlno ] ;\n for ( pi -> prcno = 0 , prclyrno = pi -> pirlvl -> prclyrnos ;\n pi -> prcno < pi -> pirlvl -> numprcs ;\n ++ pi -> prcno , ++ prclyrno ) {\n if ( pi -> lyrno >= * prclyrno ) {\n * prclyrno = pi -> lyrno ;\n ++ ( * prclyrno ) ;\n return 0 ;\n }\n skip : ;\n }\n }\n }\n }\n return 1 ;\n }"}
{"idx": 16084, "target": 0, "func": "TEST_F ( NativeBackendLibsecretTest , AndroidCredentials ) {\n NativeBackendLibsecret backend ( 42 ) ;\n backend . Init ( ) ;\n PasswordForm observed_android_form ;\n observed_android_form . scheme = PasswordForm : : SCHEME_HTML ;\n observed_android_form . signon_realm = \"android://7x7IDboo8u9YKraUsbmVkuf1-@net.rateflix.app/\" ;\n PasswordForm saved_android_form = observed_android_form ;\n saved_android_form . username_value = base : : UTF8ToUTF16 ( \"randomusername\" ) ;\n saved_android_form . password_value = base : : UTF8ToUTF16 ( \"password\" ) ;\n saved_android_form . date_created = base : : Time : : Now ( ) ;\n VerifiedAdd ( & backend , saved_android_form ) ;\n ScopedVector < autofill : : PasswordForm > form_list ;\n EXPECT_TRUE ( backend . GetAutofillableLogins ( & form_list ) ) ;\n EXPECT_EQ ( 1u , form_list . size ( ) ) ;\n EXPECT_EQ ( saved_android_form , * form_list [ 0 ] ) ;\n }"}
{"idx": 16085, "target": 1, "func": "int ieee80211_radiotap_iterator_init ( struct ieee80211_radiotap_iterator * iterator , struct ieee80211_radiotap_header * radiotap_header , int max_length , const struct ieee80211_radiotap_vendor_namespaces * vns ) {\n if ( max_length < ( int ) sizeof ( struct ieee80211_radiotap_header ) ) return - EINVAL ;\n if ( radiotap_header -> it_version ) return - EINVAL ;\n if ( max_length < get_unaligned_le16 ( & radiotap_header -> it_len ) ) return - EINVAL ;\n iterator -> _rtheader = radiotap_header ;\n iterator -> _max_length = get_unaligned_le16 ( & radiotap_header -> it_len ) ;\n iterator -> _arg_index = 0 ;\n iterator -> _bitmap_shifter = get_unaligned_le32 ( & radiotap_header -> it_present ) ;\n iterator -> _arg = ( guint8 * ) radiotap_header + sizeof ( * radiotap_header ) ;\n iterator -> _reset_on_ext = 0 ;\n iterator -> _next_bitmap = & radiotap_header -> it_present ;\n iterator -> _next_bitmap ++ ;\n iterator -> _vns = vns ;\n iterator -> current_namespace = & radiotap_ns ;\n iterator -> is_radiotap_ns = 1 ;\n # ifdef RADIOTAP_SUPPORT_OVERRIDES iterator -> n_overrides = 0 ;\n iterator -> overrides = NULL ;\n # endif if ( iterator -> _bitmap_shifter & ( 1U << IEEE80211_RADIOTAP_EXT ) ) {\n if ( ! ITERATOR_VALID ( iterator , sizeof ( guint32 ) ) ) return - EINVAL ;\n while ( get_unaligned_le32 ( iterator -> _arg ) & ( 1U << IEEE80211_RADIOTAP_EXT ) ) {\n iterator -> _arg += sizeof ( guint32 ) ;\n if ( ! ITERATOR_VALID ( iterator , sizeof ( guint32 ) ) ) return - EINVAL ;\n }\n iterator -> _arg += sizeof ( guint32 ) ;\n }\n iterator -> this_arg = iterator -> _arg ;\n return 0 ;\n }"}
{"idx": 16086, "target": 0, "func": "static void CloseDecoder ( vlc_object_t * p_this ) {\n decoder_t * p_dec = ( decoder_t * ) p_this ;\n decoder_sys_t * p_sys = p_dec -> p_sys ;\n schro_decoder_free ( p_sys -> p_schro ) ;\n free ( p_sys ) ;\n }"}
{"idx": 16087, "target": 0, "func": "static int dissect_nlm_granted ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , int version , rpc_call_info_value * rpc_call ) {\n if ( nlm_match_msgres ) {\n if ( rpc_call -> proc == 10 ) {\n if ( ( ! pinfo -> fd -> flags . visited ) ) {\n nlm_register_unmatched_msg ( pinfo , tvb , offset ) ;\n }\n else {\n nlm_print_msgres_request ( pinfo , tree , tvb ) ;\n }\n if ( nfs_fhandle_reqrep_matching ) {\n nlm_match_fhandle_request ( pinfo , tree ) ;\n }\n }\n }\n offset = dissect_rpc_data ( tvb , tree , hf_nlm_cookie , offset ) ;\n offset = dissect_rpc_bool ( tvb , tree , hf_nlm_exclusive , offset ) ;\n offset = dissect_lock ( tvb , pinfo , tree , version , offset , rpc_call ) ;\n return offset ;\n }"}
{"idx": 16088, "target": 0, "func": "void vp9_idct8x8_64_add_sse2 ( const int16_t * input , uint8_t * dest , int stride ) {\n const __m128i zero = _mm_setzero_si128 ( ) ;\n const __m128i rounding = _mm_set1_epi32 ( DCT_CONST_ROUNDING ) ;\n const __m128i final_rounding = _mm_set1_epi16 ( 1 << 4 ) ;\n const __m128i stg1_0 = pair_set_epi16 ( cospi_28_64 , - cospi_4_64 ) ;\n const __m128i stg1_1 = pair_set_epi16 ( cospi_4_64 , cospi_28_64 ) ;\n const __m128i stg1_2 = pair_set_epi16 ( - cospi_20_64 , cospi_12_64 ) ;\n const __m128i stg1_3 = pair_set_epi16 ( cospi_12_64 , cospi_20_64 ) ;\n const __m128i stg2_0 = pair_set_epi16 ( cospi_16_64 , cospi_16_64 ) ;\n const __m128i stg2_1 = pair_set_epi16 ( cospi_16_64 , - cospi_16_64 ) ;\n const __m128i stg2_2 = pair_set_epi16 ( cospi_24_64 , - cospi_8_64 ) ;\n const __m128i stg2_3 = pair_set_epi16 ( cospi_8_64 , cospi_24_64 ) ;\n __m128i in0 , in1 , in2 , in3 , in4 , in5 , in6 , in7 ;\n __m128i stp1_0 , stp1_1 , stp1_2 , stp1_3 , stp1_4 , stp1_5 , stp1_6 , stp1_7 ;\n __m128i stp2_0 , stp2_1 , stp2_2 , stp2_3 , stp2_4 , stp2_5 , stp2_6 , stp2_7 ;\n __m128i tmp0 , tmp1 , tmp2 , tmp3 , tmp4 , tmp5 , tmp6 , tmp7 ;\n int i ;\n in0 = _mm_load_si128 ( ( const __m128i * ) input ) ;\n in1 = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 1 ) ) ;\n in2 = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 2 ) ) ;\n in3 = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 3 ) ) ;\n in4 = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 4 ) ) ;\n in5 = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 5 ) ) ;\n in6 = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 6 ) ) ;\n in7 = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 7 ) ) ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n TRANSPOSE_8X8 ( in0 , in1 , in2 , in3 , in4 , in5 , in6 , in7 , in0 , in1 , in2 , in3 , in4 , in5 , in6 , in7 ) ;\n IDCT8 ( in0 , in1 , in2 , in3 , in4 , in5 , in6 , in7 , in0 , in1 , in2 , in3 , in4 , in5 , in6 , in7 ) ;\n }\n in0 = _mm_adds_epi16 ( in0 , final_rounding ) ;\n in1 = _mm_adds_epi16 ( in1 , final_rounding ) ;\n in2 = _mm_adds_epi16 ( in2 , final_rounding ) ;\n in3 = _mm_adds_epi16 ( in3 , final_rounding ) ;\n in4 = _mm_adds_epi16 ( in4 , final_rounding ) ;\n in5 = _mm_adds_epi16 ( in5 , final_rounding ) ;\n in6 = _mm_adds_epi16 ( in6 , final_rounding ) ;\n in7 = _mm_adds_epi16 ( in7 , final_rounding ) ;\n in0 = _mm_srai_epi16 ( in0 , 5 ) ;\n in1 = _mm_srai_epi16 ( in1 , 5 ) ;\n in2 = _mm_srai_epi16 ( in2 , 5 ) ;\n in3 = _mm_srai_epi16 ( in3 , 5 ) ;\n in4 = _mm_srai_epi16 ( in4 , 5 ) ;\n in5 = _mm_srai_epi16 ( in5 , 5 ) ;\n in6 = _mm_srai_epi16 ( in6 , 5 ) ;\n in7 = _mm_srai_epi16 ( in7 , 5 ) ;\n RECON_AND_STORE ( dest , in0 ) ;\n RECON_AND_STORE ( dest , in1 ) ;\n RECON_AND_STORE ( dest , in2 ) ;\n RECON_AND_STORE ( dest , in3 ) ;\n RECON_AND_STORE ( dest , in4 ) ;\n RECON_AND_STORE ( dest , in5 ) ;\n RECON_AND_STORE ( dest , in6 ) ;\n RECON_AND_STORE ( dest , in7 ) ;\n }"}
{"idx": 16089, "target": 0, "func": "static int selinux_socket_accept ( struct socket * sock , struct socket * newsock ) {\n int err ;\n struct inode_security_struct * isec ;\n struct inode_security_struct * newisec ;\n u16 sclass ;\n u32 sid ;\n err = sock_has_perm ( current , sock -> sk , SOCKET__ACCEPT ) ;\n if ( err ) return err ;\n isec = inode_security_novalidate ( SOCK_INODE ( sock ) ) ;\n spin_lock ( & isec -> lock ) ;\n sclass = isec -> sclass ;\n sid = isec -> sid ;\n spin_unlock ( & isec -> lock ) ;\n newisec = inode_security_novalidate ( SOCK_INODE ( newsock ) ) ;\n newisec -> sclass = sclass ;\n newisec -> sid = sid ;\n newisec -> initialized = LABEL_INITIALIZED ;\n return 0 ;\n }"}
{"idx": 16090, "target": 0, "func": "static inline void write_IRQreg_idr ( OpenPICState * opp , int n_IRQ , uint32_t val ) {\n IRQSource * src = & opp -> src [ n_IRQ ] ;\n uint32_t normal_mask = ( 1UL << opp -> nb_cpus ) - 1 ;\n uint32_t crit_mask = 0 ;\n uint32_t mask = normal_mask ;\n int crit_shift = IDR_EP_SHIFT - opp -> nb_cpus ;\n int i ;\n if ( opp -> flags & OPENPIC_FLAG_IDR_CRIT ) {\n crit_mask = mask << crit_shift ;\n mask |= crit_mask | IDR_EP ;\n }\n src -> idr = val & mask ;\n DPRINTF ( \"Set IDR %d to 0x%08x\\n\" , n_IRQ , src -> idr ) ;\n if ( opp -> flags & OPENPIC_FLAG_IDR_CRIT ) {\n if ( src -> idr & crit_mask ) {\n if ( src -> idr & normal_mask ) {\n DPRINTF ( \"%s: IRQ configured for multiple output types, using \" \"critical\\n\" , __func__ ) ;\n }\n src -> output = OPENPIC_OUTPUT_CINT ;\n src -> nomask = true ;\n src -> destmask = 0 ;\n for ( i = 0 ;\n i < opp -> nb_cpus ;\n i ++ ) {\n int n_ci = IDR_CI0_SHIFT - i ;\n if ( src -> idr & ( 1UL << n_ci ) ) {\n src -> destmask |= 1UL << i ;\n }\n }\n }\n else {\n src -> output = OPENPIC_OUTPUT_INT ;\n src -> nomask = false ;\n src -> destmask = src -> idr & normal_mask ;\n }\n }\n else {\n src -> destmask = src -> idr ;\n }\n }"}
{"idx": 16091, "target": 0, "func": "static int dissect_h225_OCTET_STRING_SIZE_4 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 4 , 4 , FALSE , NULL ) ;\n return offset ;\n }"}
{"idx": 16092, "target": 0, "func": "static ssize_t i_stream_attachment_extractor_read ( struct istream_private * stream ) {\n struct attachment_istream * astream = ( struct attachment_istream * ) stream ;\n bool retry ;\n ssize_t ret ;\n do {\n ret = astream_read_next ( astream , & retry ) ;\n }\n while ( retry && astream -> set . drain_parent_input ) ;\n astream -> retry_read = retry ;\n return ret ;\n }"}
{"idx": 16093, "target": 0, "func": "static uint32_t virtio_ioport_read ( VirtIOPCIProxy * proxy , uint32_t addr ) {\n VirtIODevice * vdev = proxy -> vdev ;\n uint32_t ret = 0xFFFFFFFF ;\n switch ( addr ) {\n case VIRTIO_PCI_HOST_FEATURES : ret = proxy -> host_features ;\n break ;\n case VIRTIO_PCI_GUEST_FEATURES : ret = vdev -> guest_features ;\n break ;\n case VIRTIO_PCI_QUEUE_PFN : ret = virtio_queue_get_addr ( vdev , vdev -> queue_sel ) >> VIRTIO_PCI_QUEUE_ADDR_SHIFT ;\n break ;\n case VIRTIO_PCI_QUEUE_NUM : ret = virtio_queue_get_num ( vdev , vdev -> queue_sel ) ;\n break ;\n case VIRTIO_PCI_QUEUE_SEL : ret = vdev -> queue_sel ;\n break ;\n case VIRTIO_PCI_STATUS : ret = vdev -> status ;\n break ;\n case VIRTIO_PCI_ISR : ret = vdev -> isr ;\n vdev -> isr = 0 ;\n qemu_set_irq ( proxy -> pci_dev . irq [ 0 ] , 0 ) ;\n break ;\n case VIRTIO_MSI_CONFIG_VECTOR : ret = vdev -> config_vector ;\n break ;\n case VIRTIO_MSI_QUEUE_VECTOR : ret = virtio_queue_vector ( vdev , vdev -> queue_sel ) ;\n break ;\n default : break ;\n }\n return ret ;\n }"}
{"idx": 16094, "target": 0, "func": "static bool msr_smi_count_needed ( void * opaque ) {\n X86CPU * cpu = opaque ;\n CPUX86State * env = & cpu -> env ;\n return env -> msr_smi_count != 0 ;\n }"}
{"idx": 16095, "target": 0, "func": "void nautilus_file_operations_link ( GList * files , GArray * relative_item_points , GFile * target_dir , GtkWindow * parent_window , NautilusCopyCallback done_callback , gpointer done_callback_data ) {\n GTask * task ;\n CopyMoveJob * job ;\n job = op_job_new ( CopyMoveJob , parent_window ) ;\n job -> done_callback = done_callback ;\n job -> done_callback_data = done_callback_data ;\n job -> files = g_list_copy_deep ( files , ( GCopyFunc ) g_object_ref , NULL ) ;\n job -> destination = g_object_ref ( target_dir ) ;\n nautilus_progress_info_set_destination ( ( ( CommonJob * ) job ) -> progress , target_dir ) ;\n if ( relative_item_points != NULL && relative_item_points -> len > 0 ) {\n job -> icon_positions = g_memdup ( relative_item_points -> data , sizeof ( GdkPoint ) * relative_item_points -> len ) ;\n job -> n_icon_positions = relative_item_points -> len ;\n }\n job -> debuting_files = g_hash_table_new_full ( g_file_hash , ( GEqualFunc ) g_file_equal , g_object_unref , NULL ) ;\n if ( ! nautilus_file_undo_manager_is_operating ( ) ) {\n GFile * src_dir ;\n src_dir = g_file_get_parent ( files -> data ) ;\n job -> common . undo_info = nautilus_file_undo_info_ext_new ( NAUTILUS_FILE_UNDO_OP_CREATE_LINK , g_list_length ( files ) , src_dir , target_dir ) ;\n g_object_unref ( src_dir ) ;\n }\n task = g_task_new ( NULL , job -> common . cancellable , link_task_done , job ) ;\n g_task_set_task_data ( task , job , NULL ) ;\n g_task_run_in_thread ( task , link_task_thread_func ) ;\n g_object_unref ( task ) ;\n }"}
{"idx": 16096, "target": 0, "func": "static void iadst16 ( const tran_low_t * input , tran_low_t * output ) {\n tran_high_t s0 , s1 , s2 , s3 , s4 , s5 , s6 , s7 , s8 ;\n tran_high_t s9 , s10 , s11 , s12 , s13 , s14 , s15 ;\n tran_high_t x0 = input [ 15 ] ;\n tran_high_t x1 = input [ 0 ] ;\n tran_high_t x2 = input [ 13 ] ;\n tran_high_t x3 = input [ 2 ] ;\n tran_high_t x4 = input [ 11 ] ;\n tran_high_t x5 = input [ 4 ] ;\n tran_high_t x6 = input [ 9 ] ;\n tran_high_t x7 = input [ 6 ] ;\n tran_high_t x8 = input [ 7 ] ;\n tran_high_t x9 = input [ 8 ] ;\n tran_high_t x10 = input [ 5 ] ;\n tran_high_t x11 = input [ 10 ] ;\n tran_high_t x12 = input [ 3 ] ;\n tran_high_t x13 = input [ 12 ] ;\n tran_high_t x14 = input [ 1 ] ;\n tran_high_t x15 = input [ 14 ] ;\n if ( ! ( x0 | x1 | x2 | x3 | x4 | x5 | x6 | x7 | x8 | x9 | x10 | x11 | x12 | x13 | x14 | x15 ) ) {\n output [ 0 ] = output [ 1 ] = output [ 2 ] = output [ 3 ] = output [ 4 ] = output [ 5 ] = output [ 6 ] = output [ 7 ] = output [ 8 ] = output [ 9 ] = output [ 10 ] = output [ 11 ] = output [ 12 ] = output [ 13 ] = output [ 14 ] = output [ 15 ] = 0 ;\n return ;\n }\n s0 = x0 * cospi_1_64 + x1 * cospi_31_64 ;\n s1 = x0 * cospi_31_64 - x1 * cospi_1_64 ;\n s2 = x2 * cospi_5_64 + x3 * cospi_27_64 ;\n s3 = x2 * cospi_27_64 - x3 * cospi_5_64 ;\n s4 = x4 * cospi_9_64 + x5 * cospi_23_64 ;\n s5 = x4 * cospi_23_64 - x5 * cospi_9_64 ;\n s6 = x6 * cospi_13_64 + x7 * cospi_19_64 ;\n s7 = x6 * cospi_19_64 - x7 * cospi_13_64 ;\n s8 = x8 * cospi_17_64 + x9 * cospi_15_64 ;\n s9 = x8 * cospi_15_64 - x9 * cospi_17_64 ;\n s10 = x10 * cospi_21_64 + x11 * cospi_11_64 ;\n s11 = x10 * cospi_11_64 - x11 * cospi_21_64 ;\n s12 = x12 * cospi_25_64 + x13 * cospi_7_64 ;\n s13 = x12 * cospi_7_64 - x13 * cospi_25_64 ;\n s14 = x14 * cospi_29_64 + x15 * cospi_3_64 ;\n s15 = x14 * cospi_3_64 - x15 * cospi_29_64 ;\n x0 = dct_const_round_shift ( s0 + s8 ) ;\n x1 = dct_const_round_shift ( s1 + s9 ) ;\n x2 = dct_const_round_shift ( s2 + s10 ) ;\n x3 = dct_const_round_shift ( s3 + s11 ) ;\n x4 = dct_const_round_shift ( s4 + s12 ) ;\n x5 = dct_const_round_shift ( s5 + s13 ) ;\n x6 = dct_const_round_shift ( s6 + s14 ) ;\n x7 = dct_const_round_shift ( s7 + s15 ) ;\n x8 = dct_const_round_shift ( s0 - s8 ) ;\n x9 = dct_const_round_shift ( s1 - s9 ) ;\n x10 = dct_const_round_shift ( s2 - s10 ) ;\n x11 = dct_const_round_shift ( s3 - s11 ) ;\n x12 = dct_const_round_shift ( s4 - s12 ) ;\n x13 = dct_const_round_shift ( s5 - s13 ) ;\n x14 = dct_const_round_shift ( s6 - s14 ) ;\n x15 = dct_const_round_shift ( s7 - s15 ) ;\n s0 = x0 ;\n s1 = x1 ;\n s2 = x2 ;\n s3 = x3 ;\n s4 = x4 ;\n s5 = x5 ;\n s6 = x6 ;\n s7 = x7 ;\n s8 = x8 * cospi_4_64 + x9 * cospi_28_64 ;\n s9 = x8 * cospi_28_64 - x9 * cospi_4_64 ;\n s10 = x10 * cospi_20_64 + x11 * cospi_12_64 ;\n s11 = x10 * cospi_12_64 - x11 * cospi_20_64 ;\n s12 = - x12 * cospi_28_64 + x13 * cospi_4_64 ;\n s13 = x12 * cospi_4_64 + x13 * cospi_28_64 ;\n s14 = - x14 * cospi_12_64 + x15 * cospi_20_64 ;\n s15 = x14 * cospi_20_64 + x15 * cospi_12_64 ;\n x0 = s0 + s4 ;\n x1 = s1 + s5 ;\n x2 = s2 + s6 ;\n x3 = s3 + s7 ;\n x4 = s0 - s4 ;\n x5 = s1 - s5 ;\n x6 = s2 - s6 ;\n x7 = s3 - s7 ;\n x8 = dct_const_round_shift ( s8 + s12 ) ;\n x9 = dct_const_round_shift ( s9 + s13 ) ;\n x10 = dct_const_round_shift ( s10 + s14 ) ;\n x11 = dct_const_round_shift ( s11 + s15 ) ;\n x12 = dct_const_round_shift ( s8 - s12 ) ;\n x13 = dct_const_round_shift ( s9 - s13 ) ;\n x14 = dct_const_round_shift ( s10 - s14 ) ;\n x15 = dct_const_round_shift ( s11 - s15 ) ;\n s0 = x0 ;\n s1 = x1 ;\n s2 = x2 ;\n s3 = x3 ;\n s4 = x4 * cospi_8_64 + x5 * cospi_24_64 ;\n s5 = x4 * cospi_24_64 - x5 * cospi_8_64 ;\n s6 = - x6 * cospi_24_64 + x7 * cospi_8_64 ;\n s7 = x6 * cospi_8_64 + x7 * cospi_24_64 ;\n s8 = x8 ;\n s9 = x9 ;\n s10 = x10 ;\n s11 = x11 ;\n s12 = x12 * cospi_8_64 + x13 * cospi_24_64 ;\n s13 = x12 * cospi_24_64 - x13 * cospi_8_64 ;\n s14 = - x14 * cospi_24_64 + x15 * cospi_8_64 ;\n s15 = x14 * cospi_8_64 + x15 * cospi_24_64 ;\n x0 = s0 + s2 ;\n x1 = s1 + s3 ;\n x2 = s0 - s2 ;\n x3 = s1 - s3 ;\n x4 = dct_const_round_shift ( s4 + s6 ) ;\n x5 = dct_const_round_shift ( s5 + s7 ) ;\n x6 = dct_const_round_shift ( s4 - s6 ) ;\n x7 = dct_const_round_shift ( s5 - s7 ) ;\n x8 = s8 + s10 ;\n x9 = s9 + s11 ;\n x10 = s8 - s10 ;\n x11 = s9 - s11 ;\n x12 = dct_const_round_shift ( s12 + s14 ) ;\n x13 = dct_const_round_shift ( s13 + s15 ) ;\n x14 = dct_const_round_shift ( s12 - s14 ) ;\n x15 = dct_const_round_shift ( s13 - s15 ) ;\n s2 = ( - cospi_16_64 ) * ( x2 + x3 ) ;\n s3 = cospi_16_64 * ( x2 - x3 ) ;\n s6 = cospi_16_64 * ( x6 + x7 ) ;\n s7 = cospi_16_64 * ( - x6 + x7 ) ;\n s10 = cospi_16_64 * ( x10 + x11 ) ;\n s11 = cospi_16_64 * ( - x10 + x11 ) ;\n s14 = ( - cospi_16_64 ) * ( x14 + x15 ) ;\n s15 = cospi_16_64 * ( x14 - x15 ) ;\n x2 = dct_const_round_shift ( s2 ) ;\n x3 = dct_const_round_shift ( s3 ) ;\n x6 = dct_const_round_shift ( s6 ) ;\n x7 = dct_const_round_shift ( s7 ) ;\n x10 = dct_const_round_shift ( s10 ) ;\n x11 = dct_const_round_shift ( s11 ) ;\n x14 = dct_const_round_shift ( s14 ) ;\n x15 = dct_const_round_shift ( s15 ) ;\n output [ 0 ] = x0 ;\n output [ 1 ] = - x8 ;\n output [ 2 ] = x12 ;\n output [ 3 ] = - x4 ;\n output [ 4 ] = x6 ;\n output [ 5 ] = x14 ;\n output [ 6 ] = x10 ;\n output [ 7 ] = x2 ;\n output [ 8 ] = x3 ;\n output [ 9 ] = x11 ;\n output [ 10 ] = x15 ;\n output [ 11 ] = x7 ;\n output [ 12 ] = x5 ;\n output [ 13 ] = - x13 ;\n output [ 14 ] = x9 ;\n output [ 15 ] = - x1 ;\n }"}
{"idx": 16097, "target": 0, "func": "Expr * make_notclause ( Expr * notclause ) {\n BoolExpr * expr = makeNode ( BoolExpr ) ;\n expr -> boolop = NOT_EXPR ;\n expr -> args = list_make1 ( notclause ) ;\n expr -> location = - 1 ;\n return ( Expr * ) expr ;\n }"}
{"idx": 16098, "target": 0, "func": "static void purple_rem_permit ( struct im_connection * ic , char * who ) {\n struct purple_data * pd = ic -> proto_data ;\n purple_privacy_permit_remove ( pd -> account , who , FALSE ) ;\n }"}
{"idx": 16099, "target": 0, "func": "void fz_drop_default_colorspaces ( fz_context * ctx , fz_default_colorspaces * default_cs ) {\n if ( fz_drop_imp ( ctx , default_cs , & default_cs -> refs ) ) {\n fz_drop_colorspace ( ctx , default_cs -> gray ) ;\n fz_drop_colorspace ( ctx , default_cs -> rgb ) ;\n fz_drop_colorspace ( ctx , default_cs -> cmyk ) ;\n fz_drop_colorspace ( ctx , default_cs -> oi ) ;\n fz_free ( ctx , default_cs ) ;\n }\n }"}
{"idx": 16100, "target": 0, "func": "static int ipvideo_decode_block_opcode_0x3 ( IpvideoContext * s , AVFrame * frame ) {\n unsigned char B ;\n int x , y ;\n if ( ! s -> is_16bpp ) {\n B = bytestream2_get_byte ( & s -> stream_ptr ) ;\n }\n else {\n B = bytestream2_get_byte ( & s -> mv_ptr ) ;\n }\n if ( B < 56 ) {\n x = - ( 8 + ( B % 7 ) ) ;\n y = - ( B / 7 ) ;\n }\n else {\n x = - ( - 14 + ( ( B - 56 ) % 29 ) ) ;\n y = - ( 8 + ( ( B - 56 ) / 29 ) ) ;\n }\n av_dlog ( NULL , \" motion byte = %d, (x, y) = (%d, %d)\\n\" , B , x , y ) ;\n return copy_from ( s , frame , frame , x , y ) ;\n }"}
{"idx": 16101, "target": 0, "func": "static bool parse_nameConstraints ( chunk_t blob , int level0 , private_x509_cert_t * this ) {\n asn1_parser_t * parser ;\n identification_t * id ;\n chunk_t object ;\n int objectID ;\n bool success = FALSE ;\n parser = asn1_parser_create ( nameConstraintsObjects , blob ) ;\n parser -> set_top_level ( parser , level0 ) ;\n while ( parser -> iterate ( parser , & objectID , & object ) ) {\n switch ( objectID ) {\n case NAME_CONSTRAINT_PERMITTED : id = parse_generalName ( object , parser -> get_level ( parser ) + 1 ) ;\n if ( ! id ) {\n goto end ;\n }\n this -> permitted_names -> insert_last ( this -> permitted_names , id ) ;\n break ;\n case NAME_CONSTRAINT_EXCLUDED : id = parse_generalName ( object , parser -> get_level ( parser ) + 1 ) ;\n if ( ! id ) {\n goto end ;\n }\n this -> excluded_names -> insert_last ( this -> excluded_names , id ) ;\n break ;\n default : break ;\n }\n }\n success = parser -> success ( parser ) ;\n end : parser -> destroy ( parser ) ;\n return success ;\n }"}
{"idx": 16102, "target": 0, "func": "static gpgme_error_t uiserver_new ( void * * engine , const char * file_name , const char * home_dir ) {\n gpgme_error_t err = 0 ;\n engine_uiserver_t uiserver ;\n char * dft_display = NULL ;\n char dft_ttyname [ 64 ] ;\n char * dft_ttytype = NULL ;\n char * optstr ;\n uiserver = calloc ( 1 , sizeof * uiserver ) ;\n if ( ! uiserver ) return gpg_error_from_syserror ( ) ;\n uiserver -> protocol = GPGME_PROTOCOL_DEFAULT ;\n uiserver -> status_cb . fd = - 1 ;\n uiserver -> status_cb . dir = 1 ;\n uiserver -> status_cb . tag = 0 ;\n uiserver -> status_cb . data = uiserver ;\n uiserver -> input_cb . fd = - 1 ;\n uiserver -> input_cb . dir = 0 ;\n uiserver -> input_cb . tag = 0 ;\n uiserver -> input_cb . server_fd = - 1 ;\n * uiserver -> input_cb . server_fd_str = 0 ;\n uiserver -> output_cb . fd = - 1 ;\n uiserver -> output_cb . dir = 1 ;\n uiserver -> output_cb . tag = 0 ;\n uiserver -> output_cb . server_fd = - 1 ;\n * uiserver -> output_cb . server_fd_str = 0 ;\n uiserver -> message_cb . fd = - 1 ;\n uiserver -> message_cb . dir = 0 ;\n uiserver -> message_cb . tag = 0 ;\n uiserver -> message_cb . server_fd = - 1 ;\n * uiserver -> message_cb . server_fd_str = 0 ;\n uiserver -> status . fnc = 0 ;\n uiserver -> colon . fnc = 0 ;\n uiserver -> colon . attic . line = 0 ;\n uiserver -> colon . attic . linesize = 0 ;\n uiserver -> colon . attic . linelen = 0 ;\n uiserver -> colon . any = 0 ;\n uiserver -> inline_data = NULL ;\n uiserver -> io_cbs . add = NULL ;\n uiserver -> io_cbs . add_priv = NULL ;\n uiserver -> io_cbs . remove = NULL ;\n uiserver -> io_cbs . event = NULL ;\n uiserver -> io_cbs . event_priv = NULL ;\n err = assuan_new_ext ( & uiserver -> assuan_ctx , GPG_ERR_SOURCE_GPGME , & _gpgme_assuan_malloc_hooks , _gpgme_assuan_log_cb , NULL ) ;\n if ( err ) goto leave ;\n assuan_ctx_set_system_hooks ( uiserver -> assuan_ctx , & _gpgme_assuan_system_hooks ) ;\n err = assuan_socket_connect ( uiserver -> assuan_ctx , file_name ? file_name : _gpgme_get_default_uisrv_socket ( ) , 0 , ASSUAN_SOCKET_SERVER_FDPASSING ) ;\n if ( err ) goto leave ;\n err = _gpgme_getenv ( \"DISPLAY\" , & dft_display ) ;\n if ( err ) goto leave ;\n if ( dft_display ) {\n if ( asprintf ( & optstr , \"OPTION display=%s\" , dft_display ) < 0 ) {\n err = gpg_error_from_syserror ( ) ;\n free ( dft_display ) ;\n goto leave ;\n }\n free ( dft_display ) ;\n err = assuan_transact ( uiserver -> assuan_ctx , optstr , NULL , NULL , NULL , NULL , NULL , NULL ) ;\n free ( optstr ) ;\n if ( err ) goto leave ;\n }\n if ( isatty ( 1 ) ) {\n int rc ;\n rc = ttyname_r ( 1 , dft_ttyname , sizeof ( dft_ttyname ) ) ;\n if ( rc ) {\n err = gpg_error_from_errno ( rc ) ;\n goto leave ;\n }\n else {\n if ( asprintf ( & optstr , \"OPTION ttyname=%s\" , dft_ttyname ) < 0 ) {\n err = gpg_error_from_syserror ( ) ;\n goto leave ;\n }\n err = assuan_transact ( uiserver -> assuan_ctx , optstr , NULL , NULL , NULL , NULL , NULL , NULL ) ;\n free ( optstr ) ;\n if ( err ) goto leave ;\n err = _gpgme_getenv ( \"TERM\" , & dft_ttytype ) ;\n if ( err ) goto leave ;\n if ( dft_ttytype ) {\n if ( asprintf ( & optstr , \"OPTION ttytype=%s\" , dft_ttytype ) < 0 ) {\n err = gpg_error_from_syserror ( ) ;\n free ( dft_ttytype ) ;\n goto leave ;\n }\n free ( dft_ttytype ) ;\n err = assuan_transact ( uiserver -> assuan_ctx , optstr , NULL , NULL , NULL , NULL , NULL , NULL ) ;\n free ( optstr ) ;\n if ( err ) goto leave ;\n }\n }\n }\n # ifdef HAVE_W32_SYSTEM if ( ! err ) {\n err = assuan_transact ( uiserver -> assuan_ctx , \"OPTION allow-pinentry-notify\" , NULL , NULL , NULL , NULL , NULL , NULL ) ;\n if ( gpg_err_code ( err ) == GPG_ERR_UNKNOWN_OPTION ) err = 0 ;\n }\n # endif leave : if ( err ) uiserver_release ( uiserver ) ;\n else * engine = uiserver ;\n return err ;\n }"}
{"idx": 16103, "target": 0, "func": "int qemuMonitorTextInjectNMI ( qemuMonitorPtr mon ) {\n const char * cmd = \"inject-nmi\" ;\n char * reply = NULL ;\n if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) < 0 ) goto fail ;\n if ( strstr ( reply , \"unknown command\" ) != NULL ) {\n VIR_FREE ( reply ) ;\n cmd = \"nmi 0\" ;\n reply = NULL ;\n if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) < 0 ) goto fail ;\n }\n VIR_FREE ( reply ) ;\n return 0 ;\n fail : qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"failed to inject NMI using command '%s'\" ) , cmd ) ;\n return - 1 ;\n }"}
{"idx": 16104, "target": 0, "func": "static void parse_content_type ( struct message_search_context * ctx , struct message_header_line * hdr ) {\n struct rfc822_parser_context parser ;\n string_t * content_type ;\n rfc822_parser_init ( & parser , hdr -> full_value , hdr -> full_value_len , NULL ) ;\n rfc822_skip_lwsp ( & parser ) ;\n content_type = t_str_new ( 64 ) ;\n ( void ) rfc822_parse_content_type ( & parser , content_type ) ;\n ctx -> content_type_text = strncasecmp ( str_c ( content_type ) , \"text/\" , 5 ) == 0 || strncasecmp ( str_c ( content_type ) , \"message/\" , 8 ) == 0 ;\n rfc822_parser_deinit ( & parser ) ;\n }"}
{"idx": 16105, "target": 0, "func": "void proto_item_append_text ( proto_item * pi , const char * format , ... ) {\n field_info * fi = NULL ;\n size_t curlen ;\n va_list ap ;\n TRY_TO_FAKE_THIS_REPR_VOID ( pi ) ;\n fi = PITEM_FINFO ( pi ) ;\n if ( fi == NULL ) {\n return ;\n }\n if ( ! PROTO_ITEM_IS_HIDDEN ( pi ) ) {\n if ( fi -> rep == NULL ) {\n ITEM_LABEL_NEW ( PNODE_POOL ( pi ) , fi -> rep ) ;\n proto_item_fill_label ( fi , fi -> rep -> representation ) ;\n }\n curlen = strlen ( fi -> rep -> representation ) ;\n if ( ITEM_LABEL_LENGTH > curlen ) {\n va_start ( ap , format ) ;\n g_vsnprintf ( fi -> rep -> representation + curlen , ITEM_LABEL_LENGTH - ( gulong ) curlen , format , ap ) ;\n va_end ( ap ) ;\n }\n }\n }"}
{"idx": 16106, "target": 0, "func": "static int mpeg_decode_mb ( MpegEncContext * s , int16_t block [ 12 ] [ 64 ] ) {\n int i , j , k , cbp , val , mb_type , motion_type ;\n const int mb_block_count = 4 + ( 1 << s -> chroma_format ) ;\n av_dlog ( s -> avctx , \"decode_mb: x=%d y=%d\\n\" , s -> mb_x , s -> mb_y ) ;\n assert ( s -> mb_skipped == 0 ) ;\n if ( s -> mb_skip_run -- != 0 ) {\n if ( s -> pict_type == AV_PICTURE_TYPE_P ) {\n s -> mb_skipped = 1 ;\n s -> current_picture . mb_type [ s -> mb_x + s -> mb_y * s -> mb_stride ] = MB_TYPE_SKIP | MB_TYPE_L0 | MB_TYPE_16x16 ;\n }\n else {\n int mb_type ;\n if ( s -> mb_x ) mb_type = s -> current_picture . mb_type [ s -> mb_x + s -> mb_y * s -> mb_stride - 1 ] ;\n else mb_type = s -> current_picture . mb_type [ s -> mb_width + ( s -> mb_y - 1 ) * s -> mb_stride - 1 ] ;\n if ( IS_INTRA ( mb_type ) ) return - 1 ;\n s -> current_picture . mb_type [ s -> mb_x + s -> mb_y * s -> mb_stride ] = mb_type | MB_TYPE_SKIP ;\n if ( ( s -> mv [ 0 ] [ 0 ] [ 0 ] | s -> mv [ 0 ] [ 0 ] [ 1 ] | s -> mv [ 1 ] [ 0 ] [ 0 ] | s -> mv [ 1 ] [ 0 ] [ 1 ] ) == 0 ) s -> mb_skipped = 1 ;\n }\n return 0 ;\n }\n switch ( s -> pict_type ) {\n default : case AV_PICTURE_TYPE_I : if ( get_bits1 ( & s -> gb ) == 0 ) {\n if ( get_bits1 ( & s -> gb ) == 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"invalid mb type in I Frame at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n mb_type = MB_TYPE_QUANT | MB_TYPE_INTRA ;\n }\n else {\n mb_type = MB_TYPE_INTRA ;\n }\n break ;\n case AV_PICTURE_TYPE_P : mb_type = get_vlc2 ( & s -> gb , mb_ptype_vlc . table , MB_PTYPE_VLC_BITS , 1 ) ;\n if ( mb_type < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"invalid mb type in P Frame at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n mb_type = ptype2mb_type [ mb_type ] ;\n break ;\n case AV_PICTURE_TYPE_B : mb_type = get_vlc2 ( & s -> gb , mb_btype_vlc . table , MB_BTYPE_VLC_BITS , 1 ) ;\n if ( mb_type < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"invalid mb type in B Frame at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n mb_type = btype2mb_type [ mb_type ] ;\n break ;\n }\n av_dlog ( s -> avctx , \"mb_type=%x\\n\" , mb_type ) ;\n if ( IS_INTRA ( mb_type ) ) {\n s -> dsp . clear_blocks ( s -> block [ 0 ] ) ;\n if ( ! s -> chroma_y_shift ) {\n s -> dsp . clear_blocks ( s -> block [ 6 ] ) ;\n }\n if ( s -> picture_structure == PICT_FRAME && ! s -> frame_pred_frame_dct ) {\n s -> interlaced_dct = get_bits1 ( & s -> gb ) ;\n }\n if ( IS_QUANT ( mb_type ) ) s -> qscale = get_qscale ( s ) ;\n if ( s -> concealment_motion_vectors ) {\n if ( s -> picture_structure != PICT_FRAME ) skip_bits1 ( & s -> gb ) ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = s -> last_mv [ 0 ] [ 0 ] [ 0 ] = s -> last_mv [ 0 ] [ 1 ] [ 0 ] = mpeg_decode_motion ( s , s -> mpeg_f_code [ 0 ] [ 0 ] , s -> last_mv [ 0 ] [ 0 ] [ 0 ] ) ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = s -> last_mv [ 0 ] [ 0 ] [ 1 ] = s -> last_mv [ 0 ] [ 1 ] [ 1 ] = mpeg_decode_motion ( s , s -> mpeg_f_code [ 0 ] [ 1 ] , s -> last_mv [ 0 ] [ 0 ] [ 1 ] ) ;\n skip_bits1 ( & s -> gb ) ;\n }\n else memset ( s -> last_mv , 0 , sizeof ( s -> last_mv ) ) ;\n s -> mb_intra = 1 ;\n if ( CONFIG_MPEG_XVMC_DECODER && s -> avctx -> xvmc_acceleration > 1 ) {\n ff_xvmc_pack_pblocks ( s , - 1 ) ;\n if ( s -> swap_uv ) {\n exchange_uv ( s ) ;\n }\n }\n if ( s -> codec_id == AV_CODEC_ID_MPEG2VIDEO ) {\n if ( s -> flags2 & CODEC_FLAG2_FAST ) {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n mpeg2_fast_decode_block_intra ( s , * s -> pblocks [ i ] , i ) ;\n }\n }\n else {\n for ( i = 0 ;\n i < mb_block_count ;\n i ++ ) {\n if ( mpeg2_decode_block_intra ( s , * s -> pblocks [ i ] , i ) < 0 ) return - 1 ;\n }\n }\n }\n else {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( mpeg1_decode_block_intra ( s , * s -> pblocks [ i ] , i ) < 0 ) return - 1 ;\n }\n }\n }\n else {\n if ( mb_type & MB_TYPE_ZERO_MV ) {\n assert ( mb_type & MB_TYPE_CBP ) ;\n s -> mv_dir = MV_DIR_FORWARD ;\n if ( s -> picture_structure == PICT_FRAME ) {\n if ( ! s -> frame_pred_frame_dct ) s -> interlaced_dct = get_bits1 ( & s -> gb ) ;\n s -> mv_type = MV_TYPE_16X16 ;\n }\n else {\n s -> mv_type = MV_TYPE_FIELD ;\n mb_type |= MB_TYPE_INTERLACED ;\n s -> field_select [ 0 ] [ 0 ] = s -> picture_structure - 1 ;\n }\n if ( IS_QUANT ( mb_type ) ) s -> qscale = get_qscale ( s ) ;\n s -> last_mv [ 0 ] [ 0 ] [ 0 ] = 0 ;\n s -> last_mv [ 0 ] [ 0 ] [ 1 ] = 0 ;\n s -> last_mv [ 0 ] [ 1 ] [ 0 ] = 0 ;\n s -> last_mv [ 0 ] [ 1 ] [ 1 ] = 0 ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = 0 ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = 0 ;\n }\n else {\n assert ( mb_type & MB_TYPE_L0L1 ) ;\n if ( s -> frame_pred_frame_dct ) motion_type = MT_FRAME ;\n else {\n motion_type = get_bits ( & s -> gb , 2 ) ;\n if ( s -> picture_structure == PICT_FRAME && HAS_CBP ( mb_type ) ) s -> interlaced_dct = get_bits1 ( & s -> gb ) ;\n }\n if ( IS_QUANT ( mb_type ) ) s -> qscale = get_qscale ( s ) ;\n s -> mv_dir = ( mb_type >> 13 ) & 3 ;\n av_dlog ( s -> avctx , \"motion_type=%d\\n\" , motion_type ) ;\n switch ( motion_type ) {\n case MT_FRAME : if ( s -> picture_structure == PICT_FRAME ) {\n mb_type |= MB_TYPE_16x16 ;\n s -> mv_type = MV_TYPE_16X16 ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n if ( USES_LIST ( mb_type , i ) ) {\n s -> mv [ i ] [ 0 ] [ 0 ] = s -> last_mv [ i ] [ 0 ] [ 0 ] = s -> last_mv [ i ] [ 1 ] [ 0 ] = mpeg_decode_motion ( s , s -> mpeg_f_code [ i ] [ 0 ] , s -> last_mv [ i ] [ 0 ] [ 0 ] ) ;\n s -> mv [ i ] [ 0 ] [ 1 ] = s -> last_mv [ i ] [ 0 ] [ 1 ] = s -> last_mv [ i ] [ 1 ] [ 1 ] = mpeg_decode_motion ( s , s -> mpeg_f_code [ i ] [ 1 ] , s -> last_mv [ i ] [ 0 ] [ 1 ] ) ;\n if ( s -> full_pel [ i ] ) {\n s -> mv [ i ] [ 0 ] [ 0 ] <<= 1 ;\n s -> mv [ i ] [ 0 ] [ 1 ] <<= 1 ;\n }\n }\n }\n }\n else {\n mb_type |= MB_TYPE_16x8 | MB_TYPE_INTERLACED ;\n s -> mv_type = MV_TYPE_16X8 ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n if ( USES_LIST ( mb_type , i ) ) {\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n s -> field_select [ i ] [ j ] = get_bits1 ( & s -> gb ) ;\n for ( k = 0 ;\n k < 2 ;\n k ++ ) {\n val = mpeg_decode_motion ( s , s -> mpeg_f_code [ i ] [ k ] , s -> last_mv [ i ] [ j ] [ k ] ) ;\n s -> last_mv [ i ] [ j ] [ k ] = val ;\n s -> mv [ i ] [ j ] [ k ] = val ;\n }\n }\n }\n }\n }\n break ;\n case MT_FIELD : s -> mv_type = MV_TYPE_FIELD ;\n if ( s -> picture_structure == PICT_FRAME ) {\n mb_type |= MB_TYPE_16x8 | MB_TYPE_INTERLACED ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n if ( USES_LIST ( mb_type , i ) ) {\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n s -> field_select [ i ] [ j ] = get_bits1 ( & s -> gb ) ;\n val = mpeg_decode_motion ( s , s -> mpeg_f_code [ i ] [ 0 ] , s -> last_mv [ i ] [ j ] [ 0 ] ) ;\n s -> last_mv [ i ] [ j ] [ 0 ] = val ;\n s -> mv [ i ] [ j ] [ 0 ] = val ;\n av_dlog ( s -> avctx , \"fmx=%d\\n\" , val ) ;\n val = mpeg_decode_motion ( s , s -> mpeg_f_code [ i ] [ 1 ] , s -> last_mv [ i ] [ j ] [ 1 ] >> 1 ) ;\n s -> last_mv [ i ] [ j ] [ 1 ] = val << 1 ;\n s -> mv [ i ] [ j ] [ 1 ] = val ;\n av_dlog ( s -> avctx , \"fmy=%d\\n\" , val ) ;\n }\n }\n }\n }\n else {\n mb_type |= MB_TYPE_16x16 | MB_TYPE_INTERLACED ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n if ( USES_LIST ( mb_type , i ) ) {\n s -> field_select [ i ] [ 0 ] = get_bits1 ( & s -> gb ) ;\n for ( k = 0 ;\n k < 2 ;\n k ++ ) {\n val = mpeg_decode_motion ( s , s -> mpeg_f_code [ i ] [ k ] , s -> last_mv [ i ] [ 0 ] [ k ] ) ;\n s -> last_mv [ i ] [ 0 ] [ k ] = val ;\n s -> last_mv [ i ] [ 1 ] [ k ] = val ;\n s -> mv [ i ] [ 0 ] [ k ] = val ;\n }\n }\n }\n }\n break ;\n case MT_DMV : s -> mv_type = MV_TYPE_DMV ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n if ( USES_LIST ( mb_type , i ) ) {\n int dmx , dmy , mx , my , m ;\n const int my_shift = s -> picture_structure == PICT_FRAME ;\n mx = mpeg_decode_motion ( s , s -> mpeg_f_code [ i ] [ 0 ] , s -> last_mv [ i ] [ 0 ] [ 0 ] ) ;\n s -> last_mv [ i ] [ 0 ] [ 0 ] = mx ;\n s -> last_mv [ i ] [ 1 ] [ 0 ] = mx ;\n dmx = get_dmv ( s ) ;\n my = mpeg_decode_motion ( s , s -> mpeg_f_code [ i ] [ 1 ] , s -> last_mv [ i ] [ 0 ] [ 1 ] >> my_shift ) ;\n dmy = get_dmv ( s ) ;\n s -> last_mv [ i ] [ 0 ] [ 1 ] = my << my_shift ;\n s -> last_mv [ i ] [ 1 ] [ 1 ] = my << my_shift ;\n s -> mv [ i ] [ 0 ] [ 0 ] = mx ;\n s -> mv [ i ] [ 0 ] [ 1 ] = my ;\n s -> mv [ i ] [ 1 ] [ 0 ] = mx ;\n s -> mv [ i ] [ 1 ] [ 1 ] = my ;\n if ( s -> picture_structure == PICT_FRAME ) {\n mb_type |= MB_TYPE_16x16 | MB_TYPE_INTERLACED ;\n m = s -> top_field_first ? 1 : 3 ;\n s -> mv [ i ] [ 2 ] [ 0 ] = ( ( mx * m + ( mx > 0 ) ) >> 1 ) + dmx ;\n s -> mv [ i ] [ 2 ] [ 1 ] = ( ( my * m + ( my > 0 ) ) >> 1 ) + dmy - 1 ;\n m = 4 - m ;\n s -> mv [ i ] [ 3 ] [ 0 ] = ( ( mx * m + ( mx > 0 ) ) >> 1 ) + dmx ;\n s -> mv [ i ] [ 3 ] [ 1 ] = ( ( my * m + ( my > 0 ) ) >> 1 ) + dmy + 1 ;\n }\n else {\n mb_type |= MB_TYPE_16x16 ;\n s -> mv [ i ] [ 2 ] [ 0 ] = ( ( mx + ( mx > 0 ) ) >> 1 ) + dmx ;\n s -> mv [ i ] [ 2 ] [ 1 ] = ( ( my + ( my > 0 ) ) >> 1 ) + dmy ;\n if ( s -> picture_structure == PICT_TOP_FIELD ) s -> mv [ i ] [ 2 ] [ 1 ] -- ;\n else s -> mv [ i ] [ 2 ] [ 1 ] ++ ;\n }\n }\n }\n break ;\n default : av_log ( s -> avctx , AV_LOG_ERROR , \"00 motion_type at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n }\n s -> mb_intra = 0 ;\n if ( HAS_CBP ( mb_type ) ) {\n s -> dsp . clear_blocks ( s -> block [ 0 ] ) ;\n cbp = get_vlc2 ( & s -> gb , mb_pat_vlc . table , MB_PAT_VLC_BITS , 1 ) ;\n if ( mb_block_count > 6 ) {\n cbp <<= mb_block_count - 6 ;\n cbp |= get_bits ( & s -> gb , mb_block_count - 6 ) ;\n s -> dsp . clear_blocks ( s -> block [ 6 ] ) ;\n }\n if ( cbp <= 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"invalid cbp at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n if ( CONFIG_MPEG_XVMC_DECODER && s -> avctx -> xvmc_acceleration > 1 ) {\n ff_xvmc_pack_pblocks ( s , cbp ) ;\n if ( s -> swap_uv ) {\n exchange_uv ( s ) ;\n }\n }\n if ( s -> codec_id == AV_CODEC_ID_MPEG2VIDEO ) {\n if ( s -> flags2 & CODEC_FLAG2_FAST ) {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( cbp & 32 ) {\n mpeg2_fast_decode_block_non_intra ( s , * s -> pblocks [ i ] , i ) ;\n }\n else {\n s -> block_last_index [ i ] = - 1 ;\n }\n cbp += cbp ;\n }\n }\n else {\n cbp <<= 12 - mb_block_count ;\n for ( i = 0 ;\n i < mb_block_count ;\n i ++ ) {\n if ( cbp & ( 1 << 11 ) ) {\n if ( mpeg2_decode_block_non_intra ( s , * s -> pblocks [ i ] , i ) < 0 ) return - 1 ;\n }\n else {\n s -> block_last_index [ i ] = - 1 ;\n }\n cbp += cbp ;\n }\n }\n }\n else {\n if ( s -> flags2 & CODEC_FLAG2_FAST ) {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( cbp & 32 ) {\n mpeg1_fast_decode_block_inter ( s , * s -> pblocks [ i ] , i ) ;\n }\n else {\n s -> block_last_index [ i ] = - 1 ;\n }\n cbp += cbp ;\n }\n }\n else {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( cbp & 32 ) {\n if ( mpeg1_decode_block_inter ( s , * s -> pblocks [ i ] , i ) < 0 ) return - 1 ;\n }\n else {\n s -> block_last_index [ i ] = - 1 ;\n }\n cbp += cbp ;\n }\n }\n }\n }\n else {\n for ( i = 0 ;\n i < 12 ;\n i ++ ) s -> block_last_index [ i ] = - 1 ;\n }\n }\n s -> current_picture . mb_type [ s -> mb_x + s -> mb_y * s -> mb_stride ] = mb_type ;\n return 0 ;\n }"}
{"idx": 16107, "target": 0, "func": "static void qio_channel_websock_register_types ( void ) {\n type_register_static ( & qio_channel_websock_info ) ;\n }"}
{"idx": 16108, "target": 0, "func": "static int strncat_from_utf8_libarchive2 ( struct archive_string * as , const void * _p , size_t len , struct archive_string_conv * sc ) {\n const char * s ;\n int n ;\n char * p ;\n char * end ;\n uint32_t unicode ;\n # if HAVE_WCRTOMB mbstate_t shift_state ;\n memset ( & shift_state , 0 , sizeof ( shift_state ) ) ;\n # else wctomb ( NULL , L'\\0' ) ;\n # endif ( void ) sc ;\n if ( archive_string_ensure ( as , as -> length + len + 1 ) == NULL ) return ( - 1 ) ;\n s = ( const char * ) _p ;\n p = as -> s + as -> length ;\n end = as -> s + as -> buffer_length - MB_CUR_MAX - 1 ;\n while ( ( n = _utf8_to_unicode ( & unicode , s , len ) ) != 0 ) {\n wchar_t wc ;\n if ( p >= end ) {\n as -> length = p - as -> s ;\n if ( archive_string_ensure ( as , as -> length + len * 2 + 1 ) == NULL ) return ( - 1 ) ;\n p = as -> s + as -> length ;\n end = as -> s + as -> buffer_length - MB_CUR_MAX - 1 ;\n }\n if ( n < 0 ) {\n n *= - 1 ;\n wc = L'?' ;\n }\n else wc = ( wchar_t ) unicode ;\n s += n ;\n len -= n ;\n # if HAVE_WCRTOMB n = ( int ) wcrtomb ( p , wc , & shift_state ) ;\n # else n = ( int ) wctomb ( p , wc ) ;\n # endif if ( n == - 1 ) return ( - 1 ) ;\n p += n ;\n }\n as -> length = p - as -> s ;\n as -> s [ as -> length ] = '\\0' ;\n return ( 0 ) ;\n }"}
{"idx": 16109, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FramebustBlockBrowserTest , SimpleFramebust_Blocked ) {\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/iframe.html\" ) ) ;\n GURL child_url = embedded_test_server ( ) -> GetURL ( \"a.com\" , \"/title1.html\" ) ;\n NavigateIframeToUrlWithoutGesture ( GetWebContents ( ) , \"test\" , child_url ) ;\n content : : RenderFrameHost * child = content : : ChildFrameAt ( GetWebContents ( ) -> GetMainFrame ( ) , 0 ) ;\n EXPECT_EQ ( child_url , child -> GetLastCommittedURL ( ) ) ;\n GURL redirect_url = embedded_test_server ( ) -> GetURL ( \"b.com\" , \"/title1.html\" ) ;\n base : : RunLoop block_waiter ;\n blocked_url_added_closure_ = block_waiter . QuitClosure ( ) ;\n child -> ExecuteJavaScriptForTests ( base : : ASCIIToUTF16 ( base : : StringPrintf ( \"window.top.location = '%s';\n\" , redirect_url . spec ( ) . c_str ( ) ) ) ) ;\n block_waiter . Run ( ) ;\n EXPECT_TRUE ( base : : ContainsValue ( GetFramebustTabHelper ( ) -> blocked_urls ( ) , redirect_url ) ) ;\n }"}
{"idx": 16110, "target": 0, "func": "static void cirrus_mmio_write ( void * opaque , hwaddr addr , uint64_t val , unsigned size ) {\n CirrusVGAState * s = opaque ;\n if ( addr >= 0x100 ) {\n cirrus_mmio_blt_write ( s , addr - 0x100 , val ) ;\n }\n else {\n cirrus_vga_ioport_write ( s , addr + 0x10 , val , size ) ;\n }\n }"}
{"idx": 16111, "target": 0, "func": "static int pxa2xx_cppmnc_write ( CPUARMState * env , const ARMCPRegInfo * ri , uint64_t value ) {\n PXA2xxState * s = ( PXA2xxState * ) ri -> opaque ;\n s -> pmnc = value ;\n return 0 ;\n }"}
{"idx": 16112, "target": 0, "func": "void xps_parse_color ( xps_document * doc , char * base_uri , char * string , fz_colorspace * * csp , float * samples ) {\n fz_context * ctx = doc -> ctx ;\n char * p ;\n int i , n ;\n char buf [ 1024 ] ;\n char * profile ;\n * csp = fz_device_rgb ( ctx ) ;\n samples [ 0 ] = 1 ;\n samples [ 1 ] = 0 ;\n samples [ 2 ] = 0 ;\n samples [ 3 ] = 0 ;\n if ( string [ 0 ] == '#' ) {\n if ( strlen ( string ) == 9 ) {\n samples [ 0 ] = unhex ( string [ 1 ] ) * 16 + unhex ( string [ 2 ] ) ;\n samples [ 1 ] = unhex ( string [ 3 ] ) * 16 + unhex ( string [ 4 ] ) ;\n samples [ 2 ] = unhex ( string [ 5 ] ) * 16 + unhex ( string [ 6 ] ) ;\n samples [ 3 ] = unhex ( string [ 7 ] ) * 16 + unhex ( string [ 8 ] ) ;\n }\n else {\n samples [ 0 ] = 255 ;\n samples [ 1 ] = unhex ( string [ 1 ] ) * 16 + unhex ( string [ 2 ] ) ;\n samples [ 2 ] = unhex ( string [ 3 ] ) * 16 + unhex ( string [ 4 ] ) ;\n samples [ 3 ] = unhex ( string [ 5 ] ) * 16 + unhex ( string [ 6 ] ) ;\n }\n samples [ 0 ] /= 255 ;\n samples [ 1 ] /= 255 ;\n samples [ 2 ] /= 255 ;\n samples [ 3 ] /= 255 ;\n }\n else if ( string [ 0 ] == 's' && string [ 1 ] == 'c' && string [ 2 ] == '#' ) {\n if ( count_commas ( string ) == 2 ) sscanf ( string , \"sc#%g,%g,%g\" , samples + 1 , samples + 2 , samples + 3 ) ;\n if ( count_commas ( string ) == 3 ) sscanf ( string , \"sc#%g,%g,%g,%g\" , samples , samples + 1 , samples + 2 , samples + 3 ) ;\n }\n else if ( strstr ( string , \"ContextColor \" ) == string ) {\n fz_strlcpy ( buf , string , sizeof buf ) ;\n profile = strchr ( buf , ' ' ) ;\n if ( ! profile ) {\n fz_warn ( ctx , \"cannot find icc profile uri in '%s'\" , string ) ;\n return ;\n }\n * profile ++ = 0 ;\n p = strchr ( profile , ' ' ) ;\n if ( ! p ) {\n fz_warn ( ctx , \"cannot find component values in '%s'\" , profile ) ;\n return ;\n }\n * p ++ = 0 ;\n n = count_commas ( p ) + 1 ;\n if ( n > FZ_MAX_COLORS ) {\n fz_warn ( ctx , \"ignoring %d color components (max %d allowed)\" , n - FZ_MAX_COLORS , FZ_MAX_COLORS ) ;\n n = FZ_MAX_COLORS ;\n }\n i = 0 ;\n while ( i < n ) {\n samples [ i ++ ] = fz_atof ( p ) ;\n p = strchr ( p , ',' ) ;\n if ( ! p ) break ;\n p ++ ;\n if ( * p == ' ' ) p ++ ;\n }\n while ( i < n ) {\n samples [ i ++ ] = 0 ;\n }\n switch ( n ) {\n case 2 : * csp = fz_device_gray ( ctx ) ;\n break ;\n case 4 : * csp = fz_device_rgb ( ctx ) ;\n break ;\n case 5 : * csp = fz_device_cmyk ( ctx ) ;\n break ;\n default : * csp = fz_device_gray ( ctx ) ;\n break ;\n }\n }\n }"}
{"idx": 16113, "target": 0, "func": "static void FreeElem ( _cmsDICelem * e ) {\n if ( e -> Offsets != NULL ) _cmsFree ( e -> ContextID , e -> Offsets ) ;\n if ( e -> Sizes != NULL ) _cmsFree ( e -> ContextID , e -> Sizes ) ;\n e -> Offsets = e -> Sizes = NULL ;\n }"}
{"idx": 16114, "target": 0, "func": "static void update_buflen ( const BIGNUM * b , size_t * pbuflen ) {\n size_t i ;\n if ( ! b ) return ;\n if ( * pbuflen < ( i = ( size_t ) BN_num_bytes ( b ) ) ) * pbuflen = i ;\n }"}
{"idx": 16115, "target": 0, "func": "static void exsltMathMaxFunction ( xmlXPathParserContextPtr ctxt , int nargs ) {\n xmlNodeSetPtr ns ;\n double ret ;\n void * user = NULL ;\n if ( nargs != 1 ) {\n xmlXPathSetArityError ( ctxt ) ;\n return ;\n }\n if ( ( ctxt -> value != NULL ) && ( ctxt -> value -> boolval != 0 ) ) {\n user = ctxt -> value -> user ;\n ctxt -> value -> boolval = 0 ;\n ctxt -> value -> user = 0 ;\n }\n ns = xmlXPathPopNodeSet ( ctxt ) ;\n if ( xmlXPathCheckError ( ctxt ) ) return ;\n ret = exsltMathMax ( ns ) ;\n xmlXPathFreeNodeSet ( ns ) ;\n if ( user != NULL ) xmlFreeNodeList ( ( xmlNodePtr ) user ) ;\n xmlXPathReturnNumber ( ctxt , ret ) ;\n }"}
{"idx": 16116, "target": 0, "func": "static void scan_file ( GFile * file , SourceInfo * source_info , CommonJob * job , GHashTable * scanned ) {\n GFileInfo * info ;\n GError * error ;\n GQueue * dirs ;\n GFile * dir ;\n char * primary ;\n char * secondary ;\n char * details ;\n int response ;\n dirs = g_queue_new ( ) ;\n retry : error = NULL ;\n info = g_file_query_info ( file , G_FILE_ATTRIBUTE_STANDARD_TYPE \",\" G_FILE_ATTRIBUTE_STANDARD_SIZE , G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS , job -> cancellable , & error ) ;\n if ( info ) {\n g_autofree char * file_uri = NULL ;\n file_uri = g_file_get_uri ( file ) ;\n if ( ! g_hash_table_contains ( scanned , file_uri ) ) {\n g_hash_table_add ( scanned , g_strdup ( file_uri ) ) ;\n count_file ( info , job , source_info ) ;\n if ( g_file_info_get_file_type ( info ) == G_FILE_TYPE_DIRECTORY && source_info -> op != OP_KIND_TRASH ) {\n g_queue_push_head ( dirs , g_object_ref ( file ) ) ;\n }\n }\n g_object_unref ( info ) ;\n }\n else if ( job -> skip_all_error ) {\n g_error_free ( error ) ;\n skip_file ( job , file ) ;\n }\n else if ( IS_IO_ERROR ( error , CANCELLED ) ) {\n g_error_free ( error ) ;\n }\n else {\n primary = get_scan_primary ( source_info -> op ) ;\n details = NULL ;\n if ( IS_IO_ERROR ( error , PERMISSION_DENIED ) ) {\n secondary = f ( _ ( \"The file \u201c%B\u201d cannot be handled because you do not have \" \"permissions to read it.\" ) , file ) ;\n }\n else {\n secondary = f ( _ ( \"There was an error getting information about \u201c%B\u201d.\" ) , file ) ;\n details = error -> message ;\n }\n response = run_warning ( job , primary , secondary , details , TRUE , CANCEL , SKIP_ALL , SKIP , RETRY , NULL ) ;\n g_error_free ( error ) ;\n if ( response == 0 || response == GTK_RESPONSE_DELETE_EVENT ) {\n abort_job ( job ) ;\n }\n else if ( response == 1 || response == 2 ) {\n if ( response == 1 ) {\n job -> skip_all_error = TRUE ;\n }\n skip_file ( job , file ) ;\n }\n else if ( response == 3 ) {\n goto retry ;\n }\n else {\n g_assert_not_reached ( ) ;\n }\n }\n while ( ! job_aborted ( job ) && ( dir = g_queue_pop_head ( dirs ) ) != NULL ) {\n scan_dir ( dir , source_info , job , dirs , scanned ) ;\n g_object_unref ( dir ) ;\n }\n g_queue_foreach ( dirs , ( GFunc ) g_object_unref , NULL ) ;\n g_queue_free ( dirs ) ;\n }"}
{"idx": 16117, "target": 0, "func": "static int dissect_h245_T_address ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_address , T_address_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 16118, "target": 0, "func": "static int dissect_h245_ConferenceRequest ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_ConferenceRequest , ConferenceRequest_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 16119, "target": 0, "func": "int vp8_denoiser_filter_uv_c ( unsigned char * mc_running_avg_uv , int mc_avg_uv_stride , unsigned char * running_avg_uv , int avg_uv_stride , unsigned char * sig , int sig_stride , unsigned int motion_magnitude , int increase_denoising ) {\n unsigned char * running_avg_uv_start = running_avg_uv ;\n unsigned char * sig_start = sig ;\n int sum_diff_thresh ;\n int r , c ;\n int sum_diff = 0 ;\n int sum_block = 0 ;\n int adj_val [ 3 ] = {\n 3 , 4 , 6 }\n ;\n int shift_inc1 = 0 ;\n int shift_inc2 = 1 ;\n if ( motion_magnitude <= MOTION_MAGNITUDE_THRESHOLD_UV ) {\n if ( increase_denoising ) {\n shift_inc1 = 1 ;\n shift_inc2 = 2 ;\n }\n adj_val [ 0 ] += shift_inc2 ;\n adj_val [ 1 ] += shift_inc2 ;\n adj_val [ 2 ] += shift_inc2 ;\n }\n for ( r = 0 ;\n r < 8 ;\n ++ r ) {\n for ( c = 0 ;\n c < 8 ;\n ++ c ) {\n sum_block += sig [ c ] ;\n }\n sig += sig_stride ;\n }\n if ( abs ( sum_block - ( 128 * 8 * 8 ) ) < SUM_DIFF_FROM_AVG_THRESH_UV ) {\n return COPY_BLOCK ;\n }\n sig -= sig_stride * 8 ;\n for ( r = 0 ;\n r < 8 ;\n ++ r ) {\n for ( c = 0 ;\n c < 8 ;\n ++ c ) {\n int diff = 0 ;\n int adjustment = 0 ;\n int absdiff = 0 ;\n diff = mc_running_avg_uv [ c ] - sig [ c ] ;\n absdiff = abs ( diff ) ;\n if ( absdiff <= 3 + shift_inc1 ) {\n running_avg_uv [ c ] = mc_running_avg_uv [ c ] ;\n sum_diff += diff ;\n }\n else {\n if ( absdiff >= 4 && absdiff <= 7 ) adjustment = adj_val [ 0 ] ;\n else if ( absdiff >= 8 && absdiff <= 15 ) adjustment = adj_val [ 1 ] ;\n else adjustment = adj_val [ 2 ] ;\n if ( diff > 0 ) {\n if ( ( sig [ c ] + adjustment ) > 255 ) running_avg_uv [ c ] = 255 ;\n else running_avg_uv [ c ] = sig [ c ] + adjustment ;\n sum_diff += adjustment ;\n }\n else {\n if ( ( sig [ c ] - adjustment ) < 0 ) running_avg_uv [ c ] = 0 ;\n else running_avg_uv [ c ] = sig [ c ] - adjustment ;\n sum_diff -= adjustment ;\n }\n }\n }\n sig += sig_stride ;\n mc_running_avg_uv += mc_avg_uv_stride ;\n running_avg_uv += avg_uv_stride ;\n }\n sum_diff_thresh = SUM_DIFF_THRESHOLD_UV ;\n if ( increase_denoising ) sum_diff_thresh = SUM_DIFF_THRESHOLD_HIGH_UV ;\n if ( abs ( sum_diff ) > sum_diff_thresh ) {\n int delta = ( ( abs ( sum_diff ) - sum_diff_thresh ) >> 8 ) + 1 ;\n if ( delta < 4 ) {\n sig -= sig_stride * 8 ;\n mc_running_avg_uv -= mc_avg_uv_stride * 8 ;\n running_avg_uv -= avg_uv_stride * 8 ;\n for ( r = 0 ;\n r < 8 ;\n ++ r ) {\n for ( c = 0 ;\n c < 8 ;\n ++ c ) {\n int diff = mc_running_avg_uv [ c ] - sig [ c ] ;\n int adjustment = abs ( diff ) ;\n if ( adjustment > delta ) adjustment = delta ;\n if ( diff > 0 ) {\n if ( running_avg_uv [ c ] - adjustment < 0 ) running_avg_uv [ c ] = 0 ;\n else running_avg_uv [ c ] = running_avg_uv [ c ] - adjustment ;\n sum_diff -= adjustment ;\n }\n else if ( diff < 0 ) {\n if ( running_avg_uv [ c ] + adjustment > 255 ) running_avg_uv [ c ] = 255 ;\n else running_avg_uv [ c ] = running_avg_uv [ c ] + adjustment ;\n sum_diff += adjustment ;\n }\n }\n sig += sig_stride ;\n mc_running_avg_uv += mc_avg_uv_stride ;\n running_avg_uv += avg_uv_stride ;\n }\n if ( abs ( sum_diff ) > sum_diff_thresh ) return COPY_BLOCK ;\n }\n else {\n return COPY_BLOCK ;\n }\n }\n vp8_copy_mem8x8 ( running_avg_uv_start , avg_uv_stride , sig_start , sig_stride ) ;\n return FILTER_BLOCK ;\n }"}
{"idx": 16120, "target": 1, "func": "static int vcr1_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n VCR1Context * const a = avctx -> priv_data ;\n AVFrame * picture = data ;\n AVFrame * const p = & a -> picture ;\n const uint8_t * bytestream = buf ;\n int i , x , y , ret ;\n if ( p -> data [ 0 ] ) avctx -> release_buffer ( avctx , p ) ;\n p -> reference = 0 ;\n if ( ( ret = ff_get_buffer ( avctx , p ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n p -> pict_type = AV_PICTURE_TYPE_I ;\n p -> key_frame = 1 ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n a -> delta [ i ] = * bytestream ++ ;\n bytestream ++ ;\n }\n for ( y = 0 ;\n y < avctx -> height ;\n y ++ ) {\n int offset ;\n uint8_t * luma = & a -> picture . data [ 0 ] [ y * a -> picture . linesize [ 0 ] ] ;\n if ( ( y & 3 ) == 0 ) {\n uint8_t * cb = & a -> picture . data [ 1 ] [ ( y >> 2 ) * a -> picture . linesize [ 1 ] ] ;\n uint8_t * cr = & a -> picture . data [ 2 ] [ ( y >> 2 ) * a -> picture . linesize [ 2 ] ] ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) a -> offset [ i ] = * bytestream ++ ;\n offset = a -> offset [ 0 ] - a -> delta [ bytestream [ 2 ] & 0xF ] ;\n for ( x = 0 ;\n x < avctx -> width ;\n x += 4 ) {\n luma [ 0 ] = offset += a -> delta [ bytestream [ 2 ] & 0xF ] ;\n luma [ 1 ] = offset += a -> delta [ bytestream [ 2 ] >> 4 ] ;\n luma [ 2 ] = offset += a -> delta [ bytestream [ 0 ] & 0xF ] ;\n luma [ 3 ] = offset += a -> delta [ bytestream [ 0 ] >> 4 ] ;\n luma += 4 ;\n * cb ++ = bytestream [ 3 ] ;\n * cr ++ = bytestream [ 1 ] ;\n bytestream += 4 ;\n }\n }\n else {\n offset = a -> offset [ y & 3 ] - a -> delta [ bytestream [ 2 ] & 0xF ] ;\n for ( x = 0 ;\n x < avctx -> width ;\n x += 8 ) {\n luma [ 0 ] = offset += a -> delta [ bytestream [ 2 ] & 0xF ] ;\n luma [ 1 ] = offset += a -> delta [ bytestream [ 2 ] >> 4 ] ;\n luma [ 2 ] = offset += a -> delta [ bytestream [ 3 ] & 0xF ] ;\n luma [ 3 ] = offset += a -> delta [ bytestream [ 3 ] >> 4 ] ;\n luma [ 4 ] = offset += a -> delta [ bytestream [ 0 ] & 0xF ] ;\n luma [ 5 ] = offset += a -> delta [ bytestream [ 0 ] >> 4 ] ;\n luma [ 6 ] = offset += a -> delta [ bytestream [ 1 ] & 0xF ] ;\n luma [ 7 ] = offset += a -> delta [ bytestream [ 1 ] >> 4 ] ;\n luma += 8 ;\n bytestream += 4 ;\n }\n }\n }\n * picture = a -> picture ;\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 16121, "target": 0, "func": "void modsecurity_child_init ( msc_engine * msce ) {\n xmlInitParser ( ) ;\n if ( msce -> auditlog_lock != NULL ) {\n apr_status_t rc = apr_global_mutex_child_init ( & msce -> auditlog_lock , NULL , msce -> mp ) ;\n if ( rc != APR_SUCCESS ) {\n }\n }\n if ( msce -> geo_lock != NULL ) {\n apr_status_t rc = apr_global_mutex_child_init ( & msce -> geo_lock , NULL , msce -> mp ) ;\n if ( rc != APR_SUCCESS ) {\n }\n }\n }"}
{"idx": 16122, "target": 0, "func": "static inline void draw_n_color ( uint8_t * out , int stride , int width , int height , int bpp , uint8_t cols [ 4 ] , uint8_t grps [ 4 ] , uint32_t col ) {\n int x , y ;\n for ( y = 0 ;\n y < height ;\n y ++ ) {\n if ( grps ) cols [ 0 ] = grps [ 3 * ( y >> 1 ) ] ;\n for ( x = 0 ;\n x < width ;\n x ++ ) {\n if ( grps ) cols [ 1 ] = grps [ ( x >> 1 ) + 1 ] ;\n out [ x + y * stride ] = cols [ col & ( ( 1 << bpp ) - 1 ) ] ;\n col >>= bpp ;\n }\n }\n }"}
{"idx": 16123, "target": 0, "func": "bool kvm_allows_irq0_override ( void ) {\n return ! kvm_irqchip_in_kernel ( ) || kvm_has_gsi_routing ( ) ;\n }"}
{"idx": 16124, "target": 0, "func": "hb_set_t * hb_set_reference ( hb_set_t * set ) {\n return hb_object_reference ( set ) ;\n }"}
{"idx": 16125, "target": 0, "func": "static void report_progress_end ( ) {\n if ( last_progress_report_length ) {\n printf ( \"%*s\\r\" , last_progress_report_length , \"\" ) ;\n last_progress_report_length = 0 ;\n }\n }"}
{"idx": 16126, "target": 0, "func": "gr_face * hb_graphite2_face_get_gr_face ( hb_face_t * face ) {\n if ( unlikely ( ! hb_graphite2_shaper_face_data_ensure ( face ) ) ) return NULL ;\n return HB_SHAPER_DATA_GET ( face ) -> grface ;\n }"}
{"idx": 16127, "target": 0, "func": "static void my_coll_agg_error ( DTCollation & c1 , DTCollation & c2 , DTCollation & c3 , const char * fname ) {\n my_error ( ER_CANT_AGGREGATE_3COLLATIONS , MYF ( 0 ) , c1 . collation -> name , c1 . derivation_name ( ) , c2 . collation -> name , c2 . derivation_name ( ) , c3 . collation -> name , c3 . derivation_name ( ) , fname ) ;\n }"}
{"idx": 16128, "target": 0, "func": "static int unmatched_exit ( os_ptr op , op_proc_t opproc ) {\n make_oper ( op - 1 , 0 , opproc ) ;\n make_int ( op , gs_error_invalidexit ) ;\n return_error ( gs_error_Quit ) ;\n }"}
{"idx": 16129, "target": 1, "func": "void * create_directory_config ( apr_pool_t * mp , char * path ) {\n directory_config * dcfg = ( directory_config * ) apr_pcalloc ( mp , sizeof ( directory_config ) ) ;\n if ( dcfg == NULL ) return NULL ;\n # ifdef DEBUG_CONF ap_log_perror ( APLOG_MARK , APLOG_STARTUP | APLOG_NOERRNO , 0 , mp , \"Created directory config %pp path %s\" , dcfg , path ) ;\n # endif dcfg -> mp = mp ;\n dcfg -> is_enabled = NOT_SET ;\n dcfg -> reqbody_access = NOT_SET ;\n dcfg -> reqintercept_oe = NOT_SET ;\n dcfg -> reqbody_buffering = NOT_SET ;\n dcfg -> reqbody_inmemory_limit = NOT_SET ;\n dcfg -> reqbody_limit = NOT_SET ;\n dcfg -> reqbody_no_files_limit = NOT_SET ;\n dcfg -> resbody_access = NOT_SET ;\n dcfg -> debuglog_name = NOT_SET_P ;\n dcfg -> debuglog_level = NOT_SET ;\n dcfg -> debuglog_fd = NOT_SET_P ;\n dcfg -> of_limit = NOT_SET ;\n dcfg -> if_limit_action = NOT_SET ;\n dcfg -> of_limit_action = NOT_SET ;\n dcfg -> of_mime_types = NOT_SET_P ;\n dcfg -> of_mime_types_cleared = NOT_SET ;\n dcfg -> cookie_format = NOT_SET ;\n dcfg -> argument_separator = NOT_SET ;\n dcfg -> cookiev0_separator = NOT_SET_P ;\n dcfg -> rule_inheritance = NOT_SET ;\n dcfg -> rule_exceptions = apr_array_make ( mp , 16 , sizeof ( rule_exception * ) ) ;\n dcfg -> hash_method = apr_array_make ( mp , 16 , sizeof ( hash_method * ) ) ;\n dcfg -> auditlog_flag = NOT_SET ;\n dcfg -> auditlog_type = NOT_SET ;\n dcfg -> max_rule_time = NOT_SET ;\n dcfg -> auditlog_dirperms = NOT_SET ;\n dcfg -> auditlog_fileperms = NOT_SET ;\n dcfg -> auditlog_name = NOT_SET_P ;\n dcfg -> auditlog2_name = NOT_SET_P ;\n dcfg -> auditlog_fd = NOT_SET_P ;\n dcfg -> auditlog2_fd = NOT_SET_P ;\n dcfg -> auditlog_storage_dir = NOT_SET_P ;\n dcfg -> auditlog_parts = NOT_SET_P ;\n dcfg -> auditlog_relevant_regex = NOT_SET_P ;\n dcfg -> ruleset = NULL ;\n dcfg -> tmp_dir = NOT_SET_P ;\n dcfg -> upload_dir = NOT_SET_P ;\n dcfg -> upload_keep_files = NOT_SET ;\n dcfg -> upload_validates_files = NOT_SET ;\n dcfg -> upload_filemode = NOT_SET ;\n dcfg -> upload_file_limit = NOT_SET ;\n dcfg -> tmp_chain_starter = NULL ;\n dcfg -> tmp_default_actionset = NULL ;\n dcfg -> tmp_rule_placeholders = NULL ;\n dcfg -> data_dir = NOT_SET_P ;\n dcfg -> webappid = NOT_SET_P ;\n dcfg -> sensor_id = NOT_SET_P ;\n dcfg -> httpBlkey = NOT_SET_P ;\n dcfg -> content_injection_enabled = NOT_SET ;\n dcfg -> stream_inbody_inspection = NOT_SET ;\n dcfg -> stream_outbody_inspection = NOT_SET ;\n dcfg -> geo = NOT_SET_P ;\n dcfg -> gsb = NOT_SET_P ;\n dcfg -> u_map = NOT_SET_P ;\n dcfg -> cache_trans = NOT_SET ;\n dcfg -> cache_trans_incremental = NOT_SET ;\n dcfg -> cache_trans_min = NOT_SET ;\n dcfg -> cache_trans_max = NOT_SET ;\n dcfg -> cache_trans_maxitems = NOT_SET ;\n dcfg -> rule_id_htab = apr_hash_make ( mp ) ;\n dcfg -> component_signatures = apr_array_make ( mp , 16 , sizeof ( char * ) ) ;\n dcfg -> request_encoding = NOT_SET_P ;\n dcfg -> disable_backend_compression = NOT_SET ;\n dcfg -> col_timeout = NOT_SET ;\n dcfg -> crypto_key = NOT_SET_P ;\n dcfg -> crypto_key_len = NOT_SET ;\n dcfg -> crypto_key_add = NOT_SET ;\n dcfg -> crypto_param_name = NOT_SET_P ;\n dcfg -> hash_is_enabled = NOT_SET ;\n dcfg -> hash_enforcement = NOT_SET ;\n dcfg -> crypto_hash_href_rx = NOT_SET ;\n dcfg -> crypto_hash_faction_rx = NOT_SET ;\n dcfg -> crypto_hash_location_rx = NOT_SET ;\n dcfg -> crypto_hash_iframesrc_rx = NOT_SET ;\n dcfg -> crypto_hash_framesrc_rx = NOT_SET ;\n dcfg -> crypto_hash_href_pm = NOT_SET ;\n dcfg -> crypto_hash_faction_pm = NOT_SET ;\n dcfg -> crypto_hash_location_pm = NOT_SET ;\n dcfg -> crypto_hash_iframesrc_pm = NOT_SET ;\n dcfg -> crypto_hash_framesrc_pm = NOT_SET ;\n return dcfg ;\n }"}
{"idx": 16130, "target": 1, "func": "static void pk_transaction_authorize_actions_finished_cb ( GObject * source_object , GAsyncResult * res , struct AuthorizeActionsData * data ) {\n const gchar * action_id = NULL ;\n PkTransactionPrivate * priv = data -> transaction -> priv ;\n g_autoptr ( GError ) error = NULL ;\n g_autoptr ( PolkitAuthorizationResult ) result = NULL ;\n g_assert ( data -> actions && data -> actions -> len > 0 ) ;\n action_id = g_ptr_array_index ( data -> actions , 0 ) ;\n result = polkit_authority_check_authorization_finish ( priv -> authority , res , & error ) ;\n if ( g_cancellable_is_cancelled ( priv -> cancellable ) ) {\n priv -> waiting_for_auth = FALSE ;\n pk_transaction_status_changed_emit ( data -> transaction , PK_STATUS_ENUM_FINISHED ) ;\n pk_transaction_error_code_emit ( data -> transaction , PK_ERROR_ENUM_NOT_AUTHORIZED , \"The authentication was cancelled due to a timeout.\" ) ;\n pk_transaction_finished_emit ( data -> transaction , PK_EXIT_ENUM_FAILED , 0 ) ;\n goto out ;\n }\n if ( result == NULL ) {\n g_autofree gchar * message = NULL ;\n priv -> waiting_for_auth = FALSE ;\n g_warning ( \"failed to check for auth: %s\" , error -> message ) ;\n pk_transaction_status_changed_emit ( data -> transaction , PK_STATUS_ENUM_FINISHED ) ;\n message = g_strdup_printf ( \"Failed to check for authentication: %s\" , error -> message ) ;\n pk_transaction_error_code_emit ( data -> transaction , PK_ERROR_ENUM_NOT_AUTHORIZED , message ) ;\n pk_transaction_finished_emit ( data -> transaction , PK_EXIT_ENUM_FAILED , 0 ) ;\n goto out ;\n }\n if ( ! polkit_authorization_result_get_is_authorized ( result ) ) {\n if ( g_strcmp0 ( action_id , \"org.freedesktop.packagekit.package-install\" ) == 0 && pk_bitfield_contain ( priv -> cached_transaction_flags , PK_TRANSACTION_FLAG_ENUM_ALLOW_REINSTALL ) ) {\n g_debug ( \"allowing just reinstallation\" ) ;\n pk_bitfield_add ( priv -> cached_transaction_flags , PK_TRANSACTION_FLAG_ENUM_JUST_REINSTALL ) ;\n }\n else {\n priv -> waiting_for_auth = FALSE ;\n pk_transaction_status_changed_emit ( data -> transaction , PK_STATUS_ENUM_FINISHED ) ;\n pk_transaction_error_code_emit ( data -> transaction , PK_ERROR_ENUM_NOT_AUTHORIZED , \"Failed to obtain authentication.\" ) ;\n pk_transaction_finished_emit ( data -> transaction , PK_EXIT_ENUM_FAILED , 0 ) ;\n syslog ( LOG_AUTH | LOG_NOTICE , \"uid %i failed to obtain auth\" , priv -> uid ) ;\n goto out ;\n }\n }\n if ( data -> actions -> len <= 1 ) {\n priv -> waiting_for_auth = FALSE ;\n pk_transaction_set_state ( data -> transaction , PK_TRANSACTION_STATE_READY ) ;\n syslog ( LOG_AUTH | LOG_INFO , \"uid %i obtained auth for %s\" , priv -> uid , action_id ) ;\n }\n else {\n g_ptr_array_remove_index ( data -> actions , 0 ) ;\n pk_transaction_authorize_actions ( data -> transaction , data -> role , data -> actions ) ;\n }\n out : g_ptr_array_unref ( data -> actions ) ;\n g_free ( data ) ;\n }"}
{"idx": 16131, "target": 0, "func": "static GstFlowReturn gst_asf_demux_process_comment ( GstASFDemux * demux , guint8 * data , guint64 size ) {\n struct {\n const gchar * gst_tag ;\n guint16 val_length ;\n gchar * val_utf8 ;\n }\n tags [ 5 ] = {\n {\n GST_TAG_TITLE , 0 , NULL }\n , {\n GST_TAG_ARTIST , 0 , NULL }\n , {\n GST_TAG_COPYRIGHT , 0 , NULL }\n , {\n GST_TAG_DESCRIPTION , 0 , NULL }\n , {\n GST_TAG_COMMENT , 0 , NULL }\n }\n ;\n GstTagList * taglist ;\n GValue value = {\n 0 }\n ;\n gsize in , out ;\n gint i = - 1 ;\n GST_INFO_OBJECT ( demux , \"object is a comment\" ) ;\n if ( size < ( 2 + 2 + 2 + 2 + 2 ) ) goto not_enough_data ;\n tags [ 0 ] . val_length = gst_asf_demux_get_uint16 ( & data , & size ) ;\n tags [ 1 ] . val_length = gst_asf_demux_get_uint16 ( & data , & size ) ;\n tags [ 2 ] . val_length = gst_asf_demux_get_uint16 ( & data , & size ) ;\n tags [ 3 ] . val_length = gst_asf_demux_get_uint16 ( & data , & size ) ;\n tags [ 4 ] . val_length = gst_asf_demux_get_uint16 ( & data , & size ) ;\n GST_DEBUG_OBJECT ( demux , \"Comment lengths: title=%d author=%d copyright=%d \" \"description=%d rating=%d\" , tags [ 0 ] . val_length , tags [ 1 ] . val_length , tags [ 2 ] . val_length , tags [ 3 ] . val_length , tags [ 4 ] . val_length ) ;\n for ( i = 0 ;\n i < G_N_ELEMENTS ( tags ) ;\n ++ i ) {\n if ( size < tags [ i ] . val_length ) goto not_enough_data ;\n if ( tags [ i ] . val_length > 2 && tags [ i ] . val_length % 2 == 0 ) {\n tags [ i ] . val_utf8 = g_convert ( ( gchar * ) data , tags [ i ] . val_length , \"UTF-8\" , \"UTF-16LE\" , & in , & out , NULL ) ;\n }\n gst_asf_demux_skip_bytes ( tags [ i ] . val_length , & data , & size ) ;\n }\n taglist = gst_tag_list_new_empty ( ) ;\n g_value_init ( & value , G_TYPE_STRING ) ;\n for ( i = 0 ;\n i < G_N_ELEMENTS ( tags ) ;\n ++ i ) {\n if ( tags [ i ] . val_utf8 && strlen ( tags [ i ] . val_utf8 ) > 0 && tags [ i ] . gst_tag ) {\n g_value_set_string ( & value , tags [ i ] . val_utf8 ) ;\n gst_tag_list_add_values ( taglist , GST_TAG_MERGE_APPEND , tags [ i ] . gst_tag , & value , NULL ) ;\n }\n }\n g_value_unset ( & value ) ;\n gst_asf_demux_add_global_tags ( demux , taglist ) ;\n for ( i = 0 ;\n i < G_N_ELEMENTS ( tags ) ;\n ++ i ) g_free ( tags [ i ] . val_utf8 ) ;\n return GST_FLOW_OK ;\n not_enough_data : {\n GST_WARNING_OBJECT ( demux , \"unexpectedly short of data while processing \" \"comment tag section %d, skipping comment object\" , i ) ;\n for ( i = 0 ;\n i < G_N_ELEMENTS ( tags ) ;\n i ++ ) g_free ( tags [ i ] . val_utf8 ) ;\n return GST_FLOW_OK ;\n }\n }"}
{"idx": 16132, "target": 0, "func": "static void AbortTTF ( struct alltabs * at , SplineFont * sf ) {\n int i ;\n if ( at -> loca != NULL ) fclose ( at -> loca ) ;\n if ( at -> name != NULL ) fclose ( at -> name ) ;\n if ( at -> post != NULL ) fclose ( at -> post ) ;\n if ( at -> gpos != NULL ) fclose ( at -> gpos ) ;\n if ( at -> gsub != NULL ) fclose ( at -> gsub ) ;\n if ( at -> gdef != NULL ) fclose ( at -> gdef ) ;\n if ( at -> kern != NULL ) fclose ( at -> kern ) ;\n if ( at -> cmap != NULL ) fclose ( at -> cmap ) ;\n if ( at -> headf != NULL ) fclose ( at -> headf ) ;\n if ( at -> hheadf != NULL ) fclose ( at -> hheadf ) ;\n if ( at -> maxpf != NULL ) fclose ( at -> maxpf ) ;\n if ( at -> os2f != NULL ) fclose ( at -> os2f ) ;\n if ( at -> cvtf != NULL ) fclose ( at -> cvtf ) ;\n if ( at -> vheadf != NULL ) fclose ( at -> vheadf ) ;\n if ( at -> vorgf != NULL ) fclose ( at -> vorgf ) ;\n if ( at -> cfff != NULL ) fclose ( at -> cfff ) ;\n if ( at -> gi . glyphs != NULL ) fclose ( at -> gi . glyphs ) ;\n if ( at -> gi . hmtx != NULL ) fclose ( at -> gi . hmtx ) ;\n if ( at -> gi . vmtx != NULL ) fclose ( at -> gi . vmtx ) ;\n if ( at -> fpgmf != NULL ) fclose ( at -> fpgmf ) ;\n if ( at -> prepf != NULL ) fclose ( at -> prepf ) ;\n if ( at -> gaspf != NULL ) fclose ( at -> gaspf ) ;\n if ( at -> sidf != NULL ) fclose ( at -> sidf ) ;\n if ( at -> sidh != NULL ) fclose ( at -> sidh ) ;\n if ( at -> charset != NULL ) fclose ( at -> charset ) ;\n if ( at -> encoding != NULL ) fclose ( at -> encoding ) ;\n if ( at -> private != NULL ) fclose ( at -> private ) ;\n if ( at -> charstrings != NULL ) fclose ( at -> charstrings ) ;\n if ( at -> fdselect != NULL ) fclose ( at -> fdselect ) ;\n if ( at -> fdarray != NULL ) fclose ( at -> fdarray ) ;\n if ( at -> bdat != NULL ) fclose ( at -> bdat ) ;\n if ( at -> bloc != NULL ) fclose ( at -> bloc ) ;\n if ( at -> ebsc != NULL ) fclose ( at -> ebsc ) ;\n if ( at -> prop != NULL ) fclose ( at -> prop ) ;\n if ( at -> opbd != NULL ) fclose ( at -> opbd ) ;\n if ( at -> acnt != NULL ) fclose ( at -> acnt ) ;\n if ( at -> lcar != NULL ) fclose ( at -> lcar ) ;\n if ( at -> feat != NULL ) fclose ( at -> feat ) ;\n if ( at -> morx != NULL ) fclose ( at -> morx ) ;\n if ( at -> pfed != NULL ) fclose ( at -> pfed ) ;\n if ( at -> tex != NULL ) fclose ( at -> tex ) ;\n if ( at -> gvar != NULL ) fclose ( at -> gvar ) ;\n if ( at -> fvar != NULL ) fclose ( at -> fvar ) ;\n if ( at -> cvar != NULL ) fclose ( at -> cvar ) ;\n if ( at -> avar != NULL ) fclose ( at -> avar ) ;\n for ( i = 0 ;\n i < sf -> subfontcnt ;\n ++ i ) {\n if ( at -> fds [ i ] . private != NULL ) fclose ( at -> fds [ i ] . private ) ;\n }\n if ( sf -> subfontcnt != 0 ) {\n free ( sf -> glyphs ) ;\n sf -> glyphs = NULL ;\n sf -> glyphcnt = sf -> glyphmax = 0 ;\n }\n free ( at -> fds ) ;\n free ( at -> gi . bygid ) ;\n }"}
{"idx": 16133, "target": 0, "func": "int WriteTTFFont ( char * fontname , SplineFont * sf , enum fontformat format , int32 * bsizes , enum bitmapformat bf , int flags , EncMap * map , int layer ) {\n FILE * ttf ;\n int ret ;\n if ( strstr ( fontname , \"://\" ) != NULL ) {\n if ( ( ttf = tmpfile ( ) ) == NULL ) return ( 0 ) ;\n }\n else {\n if ( ( ttf = fopen ( fontname , \"wb+\" ) ) == NULL ) return ( 0 ) ;\n }\n ret = _WriteTTFFont ( ttf , sf , format , bsizes , bf , flags , map , layer ) ;\n if ( strstr ( fontname , \"://\" ) != NULL && ret ) ret = URLFromFile ( fontname , ttf ) ;\n if ( ret && ( flags & ttf_flag_glyphmap ) ) DumpGlyphToNameMap ( fontname , sf ) ;\n if ( fclose ( ttf ) == - 1 ) return ( 0 ) ;\n return ( ret ) ;\n }"}
{"idx": 16134, "target": 0, "func": "static int dissect_packetbb ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n proto_item * ti ;\n proto_tree * packetbb_tree ;\n guint offset ;\n guint8 packet_flags ;\n guint headerLength = 1 ;\n guint tlvIndex = 0 ;\n packet_flags = tvb_get_guint8 ( tvb , 0 ) ;\n if ( ( packet_flags & PACKET_HEADER_HASSEQNR ) != 0 ) {\n headerLength += 2 ;\n }\n if ( ( packet_flags & PACKET_HEADER_HASTLV ) != 0 ) {\n tlvIndex = headerLength ;\n headerLength += 2 ;\n }\n if ( tvb_reported_length ( tvb ) < headerLength ) {\n return 0 ;\n }\n if ( ( packet_flags & PACKET_HEADER_HASTLV ) != 0 ) {\n headerLength += tvb_get_ntohs ( tvb , tlvIndex ) ;\n }\n if ( tvb_reported_length ( tvb ) < headerLength ) {\n return 0 ;\n }\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"packetbb\" ) ;\n col_clear ( pinfo -> cinfo , COL_INFO ) ;\n ti = proto_tree_add_item ( tree , proto_packetbb , tvb , 0 , - 1 , ENC_NA ) ;\n packetbb_tree = proto_item_add_subtree ( ti , ett_packetbb ) ;\n offset = dissect_pbb_header ( tvb , pinfo , packetbb_tree , headerLength , tlvIndex ) ;\n while ( offset < tvb_reported_length ( tvb ) ) {\n offset = dissect_pbb_message ( tvb , pinfo , packetbb_tree , offset ) ;\n }\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 16135, "target": 0, "func": "int dissect_ber_integer64 ( gboolean implicit_tag , asn1_ctx_t * actx , proto_tree * tree , tvbuff_t * tvb , int offset , gint hf_id , gint64 * value ) {\n gint8 ber_class ;\n gboolean pc ;\n gint32 tag ;\n guint32 len ;\n gint64 val ;\n guint32 i ;\n gboolean used_too_many_bytes = FALSE ;\n guint8 first ;\n # ifdef DEBUG_BER {\n const char * name ;\n header_field_info * hfinfo ;\n if ( hf_id >= 0 ) {\n hfinfo = proto_registrar_get_nth ( hf_id ) ;\n name = hfinfo -> name ;\n }\n else {\n name = \"unnamed\" ;\n }\n if ( tvb_reported_length_remaining ( tvb , offset ) > 3 ) {\n printf ( \"INTEGERnew dissect_ber_integer(%s) entered implicit_tag:%d offset:%d len:%d %02x:%02x:%02x\\n\" , name , implicit_tag , offset , tvb_reported_length_remaining ( tvb , offset ) , tvb_get_guint8 ( tvb , offset ) , tvb_get_guint8 ( tvb , offset + 1 ) , tvb_get_guint8 ( tvb , offset + 2 ) ) ;\n }\n else {\n printf ( \"INTEGERnew dissect_ber_integer(%s) entered implicit_tag:%d \\n\" , name , implicit_tag ) ;\n }\n }\n # endif if ( value ) {\n * value = 0 ;\n }\n if ( ! implicit_tag ) {\n offset = dissect_ber_identifier ( actx -> pinfo , tree , tvb , offset , & ber_class , & pc , & tag ) ;\n offset = dissect_ber_length ( actx -> pinfo , tree , tvb , offset , & len , NULL ) ;\n }\n else {\n gint32 remaining = tvb_reported_length_remaining ( tvb , offset ) ;\n len = remaining > 0 ? remaining : 0 ;\n }\n first = tvb_get_guint8 ( tvb , offset ) ;\n if ( ( len > 9 ) || ( ( len == 9 ) && ( first != 0 ) ) ) {\n if ( hf_id >= 0 ) {\n header_field_info * hfinfo = proto_registrar_get_nth ( hf_id ) ;\n if ( hfinfo -> type != FT_BYTES ) hf_id = hf_ber_64bit_uint_as_bytes ;\n proto_tree_add_bytes_format ( tree , hf_id , tvb , offset , len , NULL , \"%s: 0x%s\" , hfinfo -> name , tvb_bytes_to_str ( wmem_packet_scope ( ) , tvb , offset , len ) ) ;\n }\n offset += len ;\n return offset ;\n }\n val = 0 ;\n if ( len > 0 ) {\n enum ftenum type = FT_INT32 ;\n if ( hf_id >= 0 ) {\n type = proto_registrar_get_ftype ( hf_id ) ;\n }\n if ( first & 0x80 && IS_FT_INT ( type ) ) {\n val = - 1 ;\n }\n if ( ( len > 1 ) && decode_warning_leading_zero_bits ) {\n guint8 second = tvb_get_guint8 ( tvb , offset + 1 ) ;\n if ( ( ( first == 0x00 ) && ( ( second & 0x80 ) == 0 ) ) || ( ( first == 0xff ) && ( ( second & 0x80 ) != 0 ) ) ) {\n used_too_many_bytes = TRUE ;\n }\n }\n for ( i = 0 ;\n i < len ;\n i ++ ) {\n val = ( ( guint64 ) val << 8 ) | tvb_get_guint8 ( tvb , offset ) ;\n offset ++ ;\n }\n }\n actx -> created_item = NULL ;\n if ( hf_id >= 0 ) {\n if ( ( len < 1 ) || ( len > 9 ) || ( ( len == 9 ) && ( first != 0 ) ) ) {\n proto_item * pi = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset - len , len , \"invalid length\" , \"Can't handle integer length: %u\" , len ) ;\n expert_add_info_format ( actx -> pinfo , pi , & ei_ber_error_length , \"BER Error: Illegal integer length: %u\" , len ) ;\n }\n else {\n header_field_info * hfi ;\n hfi = proto_registrar_get_nth ( hf_id ) ;\n switch ( hfi -> type ) {\n case FT_UINT8 : case FT_UINT16 : case FT_UINT24 : case FT_UINT32 : actx -> created_item = proto_tree_add_uint ( tree , hf_id , tvb , offset - len , len , ( guint32 ) val ) ;\n break ;\n case FT_INT8 : case FT_INT16 : case FT_INT24 : case FT_INT32 : actx -> created_item = proto_tree_add_int ( tree , hf_id , tvb , offset - len , len , ( gint32 ) val ) ;\n break ;\n case FT_INT64 : actx -> created_item = proto_tree_add_int64 ( tree , hf_id , tvb , offset - len , len , val ) ;\n break ;\n case FT_UINT64 : actx -> created_item = proto_tree_add_uint64 ( tree , hf_id , tvb , offset - len , len , ( guint64 ) val ) ;\n break ;\n default : DISSECTOR_ASSERT_NOT_REACHED ( ) ;\n }\n if ( used_too_many_bytes ) {\n expert_add_info_format ( actx -> pinfo , actx -> created_item , & ei_ber_value_too_many_bytes , \"Value is encoded with too many bytes(9 leading zero or one bits), hf_abbr: %s\" , hfi -> abbrev ) ;\n }\n }\n }\n if ( value ) {\n * value = val ;\n }\n return offset ;\n }"}
{"idx": 16136, "target": 0, "func": "SPL_METHOD ( SplDoublyLinkedList , next ) {\n spl_dllist_object * intern = ( spl_dllist_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n spl_dllist_it_helper_move_forward ( & intern -> traverse_pointer , & intern -> traverse_position , intern -> llist , intern -> flags TSRMLS_CC ) ;\n }"}
{"idx": 16137, "target": 0, "func": "asn1_parser_t * asn1_parser_create ( asn1Object_t const * objects , chunk_t blob ) {\n private_asn1_parser_t * this ;\n INIT ( this , . public = {\n . iterate = _iterate , . get_level = _get_level , . set_top_level = _set_top_level , . set_flags = _set_flags , . success = _success , . destroy = _destroy , }\n , . objects = objects , . blobs [ 0 ] = blob , . line = - 1 , . success = TRUE , ) ;\n return & this -> public ;\n }"}
{"idx": 16138, "target": 0, "func": "int http_version_print ( int32_t version , char * buf , int bufsize , int * bufindex , int * dumpoffset ) {\n # define TRY ( x ) if ( ! x ) return 0 char tmpbuf [ 16 ] ;\n http_hdr_version_to_string ( version , tmpbuf ) ;\n TRY ( mime_mem_print ( tmpbuf , 8 , buf , bufsize , bufindex , dumpoffset ) ) ;\n return 1 ;\n # undef TRY }"}
{"idx": 16139, "target": 0, "func": "static bool hyperv_stimer_enable_needed ( void * opaque ) {\n X86CPU * cpu = opaque ;\n CPUX86State * env = & cpu -> env ;\n int i ;\n for ( i = 0 ;\n i < ARRAY_SIZE ( env -> msr_hv_stimer_config ) ;\n i ++ ) {\n if ( env -> msr_hv_stimer_config [ i ] || env -> msr_hv_stimer_count [ i ] ) {\n return true ;\n }\n }\n return false ;\n }"}
{"idx": 16140, "target": 0, "func": "static void read_tree ( GetBitContext * gb , Tree * tree ) {\n uint8_t tmp1 [ 16 ] = {\n 0 }\n , tmp2 [ 16 ] , * in = tmp1 , * out = tmp2 ;\n int i , t , len ;\n tree -> vlc_num = get_bits ( gb , 4 ) ;\n if ( ! tree -> vlc_num ) {\n for ( i = 0 ;\n i < 16 ;\n i ++ ) tree -> syms [ i ] = i ;\n return ;\n }\n if ( get_bits1 ( gb ) ) {\n len = get_bits ( gb , 3 ) ;\n for ( i = 0 ;\n i <= len ;\n i ++ ) {\n tree -> syms [ i ] = get_bits ( gb , 4 ) ;\n tmp1 [ tree -> syms [ i ] ] = 1 ;\n }\n for ( i = 0 ;\n i < 16 && len < 16 - 1 ;\n i ++ ) if ( ! tmp1 [ i ] ) tree -> syms [ ++ len ] = i ;\n }\n else {\n len = get_bits ( gb , 2 ) ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) in [ i ] = i ;\n for ( i = 0 ;\n i <= len ;\n i ++ ) {\n int size = 1 << i ;\n for ( t = 0 ;\n t < 16 ;\n t += size << 1 ) merge ( gb , out + t , in + t , size ) ;\n FFSWAP ( uint8_t * , in , out ) ;\n }\n memcpy ( tree -> syms , in , 16 ) ;\n }\n }"}
{"idx": 16141, "target": 0, "func": "inline const OldUChar * toOldUCharPtr ( const char16_t * p ) {\n # ifdef U_ALIASING_BARRIER U_ALIASING_BARRIER ( p ) ;\n # endif return reinterpret_cast < const OldUChar * > ( p ) ;\n }"}
{"idx": 16142, "target": 1, "func": "int x_catch_free_colors ( Display * dpy , XErrorEvent * err ) {\n if ( err -> request_code == X_FreeColors ) return 0 ;\n return x_error_handler . orighandler ( dpy , err ) ;\n }"}
{"idx": 16143, "target": 0, "func": "static void dequant_lsp16i ( GetBitContext * gb , double * lsps ) {\n static const uint16_t vec_sizes [ 5 ] = {\n 256 , 64 , 128 , 64 , 128 }\n ;\n static const double mul_lsf [ 5 ] = {\n 3.3439586280e-3 , 6.9908173703e-4 , 3.3216608306e-3 , 1.0334960326e-3 , 3.1899104283e-3 }\n ;\n static const double base_lsf [ 5 ] = {\n M_PI * - 1.27576e-1 , M_PI * - 2.4292e-2 , M_PI * - 1.28094e-1 , M_PI * - 3.2128e-2 , M_PI * - 1.29816e-1 }\n ;\n uint16_t v [ 5 ] ;\n v [ 0 ] = get_bits ( gb , 8 ) ;\n v [ 1 ] = get_bits ( gb , 6 ) ;\n v [ 2 ] = get_bits ( gb , 7 ) ;\n v [ 3 ] = get_bits ( gb , 6 ) ;\n v [ 4 ] = get_bits ( gb , 7 ) ;\n dequant_lsps ( lsps , 5 , v , vec_sizes , 2 , wmavoice_dq_lsp16i1 , mul_lsf , base_lsf ) ;\n dequant_lsps ( & lsps [ 5 ] , 5 , & v [ 2 ] , & vec_sizes [ 2 ] , 2 , wmavoice_dq_lsp16i2 , & mul_lsf [ 2 ] , & base_lsf [ 2 ] ) ;\n dequant_lsps ( & lsps [ 10 ] , 6 , & v [ 4 ] , & vec_sizes [ 4 ] , 1 , wmavoice_dq_lsp16i3 , & mul_lsf [ 4 ] , & base_lsf [ 4 ] ) ;\n }"}
{"idx": 16144, "target": 0, "func": "static int seqvideo_decode ( SeqVideoContext * seq , const unsigned char * data , int data_size ) {\n const unsigned char * data_end = data + data_size ;\n GetBitContext gb ;\n int flags , i , j , x , y , op ;\n unsigned char c [ 3 ] ;\n unsigned char * dst ;\n uint32_t * palette ;\n flags = * data ++ ;\n if ( flags & 1 ) {\n palette = ( uint32_t * ) seq -> frame . data [ 1 ] ;\n if ( data_end - data < 256 * 3 ) return AVERROR_INVALIDDATA ;\n for ( i = 0 ;\n i < 256 ;\n i ++ ) {\n for ( j = 0 ;\n j < 3 ;\n j ++ , data ++ ) c [ j ] = ( * data << 2 ) | ( * data >> 4 ) ;\n palette [ i ] = AV_RB24 ( c ) ;\n }\n seq -> frame . palette_has_changed = 1 ;\n }\n if ( flags & 2 ) {\n if ( data_end - data < 128 ) return AVERROR_INVALIDDATA ;\n init_get_bits ( & gb , data , 128 * 8 ) ;\n data += 128 ;\n for ( y = 0 ;\n y < 128 ;\n y += 8 ) for ( x = 0 ;\n x < 256 ;\n x += 8 ) {\n dst = & seq -> frame . data [ 0 ] [ y * seq -> frame . linesize [ 0 ] + x ] ;\n op = get_bits ( & gb , 2 ) ;\n switch ( op ) {\n case 1 : data = seq_decode_op1 ( seq , data , data_end , dst ) ;\n break ;\n case 2 : data = seq_decode_op2 ( seq , data , data_end , dst ) ;\n break ;\n case 3 : data = seq_decode_op3 ( seq , data , data_end , dst ) ;\n break ;\n }\n if ( ! data ) return AVERROR_INVALIDDATA ;\n }\n }\n return 0 ;\n }"}
{"idx": 16145, "target": 0, "func": "static int ossl_asn1_default_tag ( VALUE obj ) {\n VALUE tmp_class , tag ;\n tmp_class = CLASS_OF ( obj ) ;\n while ( ! NIL_P ( tmp_class ) ) {\n tag = rb_hash_lookup ( class_tag_map , tmp_class ) ;\n if ( tag != Qnil ) return NUM2INT ( tag ) ;\n tmp_class = rb_class_superclass ( tmp_class ) ;\n }\n ossl_raise ( eASN1Error , \"universal tag for %\" PRIsVALUE \" not found\" , rb_obj_class ( obj ) ) ;\n }"}
{"idx": 16146, "target": 0, "func": "static int parse_ipsecrequest ( struct xfrm_policy * xp , struct sadb_x_ipsecrequest * rq ) {\n struct net * net = xp_net ( xp ) ;\n struct xfrm_tmpl * t = xp -> xfrm_vec + xp -> xfrm_nr ;\n int mode ;\n if ( xp -> xfrm_nr >= XFRM_MAX_DEPTH ) return - ELOOP ;\n if ( rq -> sadb_x_ipsecrequest_mode == 0 ) return - EINVAL ;\n t -> id . proto = rq -> sadb_x_ipsecrequest_proto ;\n if ( ( mode = pfkey_mode_to_xfrm ( rq -> sadb_x_ipsecrequest_mode ) ) < 0 ) return - EINVAL ;\n t -> mode = mode ;\n if ( rq -> sadb_x_ipsecrequest_level == IPSEC_LEVEL_USE ) t -> optional = 1 ;\n else if ( rq -> sadb_x_ipsecrequest_level == IPSEC_LEVEL_UNIQUE ) {\n t -> reqid = rq -> sadb_x_ipsecrequest_reqid ;\n if ( t -> reqid > IPSEC_MANUAL_REQID_MAX ) t -> reqid = 0 ;\n if ( ! t -> reqid && ! ( t -> reqid = gen_reqid ( net ) ) ) return - ENOBUFS ;\n }\n if ( t -> mode == XFRM_MODE_TUNNEL ) {\n u8 * sa = ( u8 * ) ( rq + 1 ) ;\n int family , socklen ;\n family = pfkey_sockaddr_extract ( ( struct sockaddr * ) sa , & t -> saddr ) ;\n if ( ! family ) return - EINVAL ;\n socklen = pfkey_sockaddr_len ( family ) ;\n if ( pfkey_sockaddr_extract ( ( struct sockaddr * ) ( sa + socklen ) , & t -> id . daddr ) != family ) return - EINVAL ;\n t -> encap_family = family ;\n }\n else t -> encap_family = xp -> family ;\n t -> allalgs = 1 ;\n xp -> xfrm_nr ++ ;\n return 0 ;\n }"}
{"idx": 16147, "target": 0, "func": "void pdf_drop_cmap ( fz_context * ctx , pdf_cmap * cmap ) {\n fz_drop_storable ( ctx , & cmap -> storable ) ;\n }"}
{"idx": 16148, "target": 0, "func": "void vp9_loop_filter_alloc ( VP9LfSync * lf_sync , VP9_COMMON * cm , int rows , int width ) {\n lf_sync -> rows = rows ;\n # if CONFIG_MULTITHREAD {\n int i ;\n CHECK_MEM_ERROR ( cm , lf_sync -> mutex_ , vpx_malloc ( sizeof ( * lf_sync -> mutex_ ) * rows ) ) ;\n for ( i = 0 ;\n i < rows ;\n ++ i ) {\n pthread_mutex_init ( & lf_sync -> mutex_ [ i ] , NULL ) ;\n }\n CHECK_MEM_ERROR ( cm , lf_sync -> cond_ , vpx_malloc ( sizeof ( * lf_sync -> cond_ ) * rows ) ) ;\n for ( i = 0 ;\n i < rows ;\n ++ i ) {\n pthread_cond_init ( & lf_sync -> cond_ [ i ] , NULL ) ;\n }\n }\n # endif CHECK_MEM_ERROR ( cm , lf_sync -> cur_sb_col , vpx_malloc ( sizeof ( * lf_sync -> cur_sb_col ) * rows ) ) ;\n lf_sync -> sync_range = get_sync_range ( width ) ;\n }"}
{"idx": 16149, "target": 0, "func": "static int update_rom_mapping ( VAPICROMState * s , CPUX86State * env , target_ulong ip ) {\n hwaddr paddr ;\n uint32_t rom_state_vaddr ;\n uint32_t pos , patch , offset ;\n if ( s -> state == VAPIC_ACTIVE ) {\n return 0 ;\n }\n if ( s -> state == VAPIC_INACTIVE ) {\n return - 1 ;\n }\n rom_state_vaddr = s -> rom_state_paddr + ( ip & 0xf0000000 ) ;\n paddr = cpu_get_phys_page_debug ( env , rom_state_vaddr ) ;\n if ( paddr == - 1 ) {\n return - 1 ;\n }\n paddr += rom_state_vaddr & ~ TARGET_PAGE_MASK ;\n if ( paddr != s -> rom_state_paddr ) {\n return - 1 ;\n }\n read_guest_rom_state ( s ) ;\n if ( memcmp ( s -> rom_state . signature , \"kvm aPiC\" , 8 ) != 0 ) {\n return - 1 ;\n }\n s -> rom_state_vaddr = rom_state_vaddr ;\n if ( rom_state_vaddr == le32_to_cpu ( s -> rom_state . vaddr ) ) {\n return 0 ;\n }\n for ( pos = le32_to_cpu ( s -> rom_state . fixup_start ) ;\n pos < le32_to_cpu ( s -> rom_state . fixup_end ) ;\n pos += 4 ) {\n cpu_physical_memory_rw ( paddr + pos - s -> rom_state . vaddr , ( void * ) & offset , sizeof ( offset ) , 0 ) ;\n offset = le32_to_cpu ( offset ) ;\n cpu_physical_memory_rw ( paddr + offset , ( void * ) & patch , sizeof ( patch ) , 0 ) ;\n patch = le32_to_cpu ( patch ) ;\n patch += rom_state_vaddr - le32_to_cpu ( s -> rom_state . vaddr ) ;\n patch = cpu_to_le32 ( patch ) ;\n cpu_physical_memory_rw ( paddr + offset , ( void * ) & patch , sizeof ( patch ) , 1 ) ;\n }\n read_guest_rom_state ( s ) ;\n s -> vapic_paddr = paddr + le32_to_cpu ( s -> rom_state . vapic_vaddr ) - le32_to_cpu ( s -> rom_state . vaddr ) ;\n return 0 ;\n }"}
{"idx": 16150, "target": 0, "func": "TEST_F ( BrowsingDataRemoverImplTest , RemoveLocalStorageForLastWeek ) {\n # if BUILDFLAG ( ENABLE_EXTENSIONS ) CreateMockPolicy ( ) ;\n # endif BlockUntilBrowsingDataRemoved ( base : : Time : : Now ( ) - base : : TimeDelta : : FromDays ( 7 ) , base : : Time : : Max ( ) , BrowsingDataRemover : : REMOVE_LOCAL_STORAGE , false ) ;\n EXPECT_EQ ( BrowsingDataRemover : : REMOVE_LOCAL_STORAGE , GetRemovalMask ( ) ) ;\n EXPECT_EQ ( BrowsingDataHelper : : UNPROTECTED_WEB , GetOriginTypeMask ( ) ) ;\n StoragePartitionRemovalData removal_data = GetStoragePartitionRemovalData ( ) ;\n EXPECT_EQ ( removal_data . remove_mask , StoragePartition : : REMOVE_DATA_MASK_LOCAL_STORAGE ) ;\n EXPECT_EQ ( removal_data . quota_storage_remove_mask , ~ StoragePartition : : QUOTA_MANAGED_STORAGE_MASK_PERSISTENT ) ;\n EXPECT_EQ ( removal_data . remove_begin , GetBeginTime ( ) ) ;\n EXPECT_TRUE ( removal_data . origin_matcher . Run ( kOrigin1 , mock_policy ( ) ) ) ;\n EXPECT_TRUE ( removal_data . origin_matcher . Run ( kOrigin2 , mock_policy ( ) ) ) ;\n EXPECT_TRUE ( removal_data . origin_matcher . Run ( kOrigin3 , mock_policy ( ) ) ) ;\n EXPECT_FALSE ( removal_data . origin_matcher . Run ( kOriginExt , mock_policy ( ) ) ) ;\n }"}
{"idx": 16151, "target": 0, "func": "static int check_stream_max_drift ( AVFormatContext * s ) {\n int64_t min_pos , pos ;\n int i ;\n int * idx = av_mallocz_array ( s -> nb_streams , sizeof ( * idx ) ) ;\n if ( ! idx ) return AVERROR ( ENOMEM ) ;\n for ( min_pos = pos = 0 ;\n min_pos != INT64_MAX ;\n pos = min_pos + 1LU ) {\n int64_t max_dts = INT64_MIN / 2 ;\n int64_t min_dts = INT64_MAX / 2 ;\n int64_t max_buffer = 0 ;\n min_pos = INT64_MAX ;\n for ( i = 0 ;\n i < s -> nb_streams ;\n i ++ ) {\n AVStream * st = s -> streams [ i ] ;\n AVIStream * ast = st -> priv_data ;\n int n = st -> nb_index_entries ;\n while ( idx [ i ] < n && st -> index_entries [ idx [ i ] ] . pos < pos ) idx [ i ] ++ ;\n if ( idx [ i ] < n ) {\n int64_t dts ;\n dts = av_rescale_q ( st -> index_entries [ idx [ i ] ] . timestamp / FFMAX ( ast -> sample_size , 1 ) , st -> time_base , AV_TIME_BASE_Q ) ;\n min_dts = FFMIN ( min_dts , dts ) ;\n min_pos = FFMIN ( min_pos , st -> index_entries [ idx [ i ] ] . pos ) ;\n }\n }\n for ( i = 0 ;\n i < s -> nb_streams ;\n i ++ ) {\n AVStream * st = s -> streams [ i ] ;\n AVIStream * ast = st -> priv_data ;\n if ( idx [ i ] && min_dts != INT64_MAX / 2 ) {\n int64_t dts ;\n dts = av_rescale_q ( st -> index_entries [ idx [ i ] - 1 ] . timestamp / FFMAX ( ast -> sample_size , 1 ) , st -> time_base , AV_TIME_BASE_Q ) ;\n max_dts = FFMAX ( max_dts , dts ) ;\n max_buffer = FFMAX ( max_buffer , av_rescale ( dts - min_dts , st -> codecpar -> bit_rate , AV_TIME_BASE ) ) ;\n }\n }\n if ( max_dts - min_dts > 2 * AV_TIME_BASE || max_buffer > 1024 * 1024 * 8 * 8 ) {\n av_free ( idx ) ;\n return 1 ;\n }\n }\n av_free ( idx ) ;\n return 0 ;\n }"}
{"idx": 16152, "target": 0, "func": "static void vga_draw_line24_le ( VGACommonState * vga , uint8_t * d , uint32_t addr , int width ) {\n int w ;\n uint32_t r , g , b ;\n w = width ;\n do {\n b = vga_read_byte ( vga , addr + 0 ) ;\n g = vga_read_byte ( vga , addr + 1 ) ;\n r = vga_read_byte ( vga , addr + 2 ) ;\n ( ( uint32_t * ) d ) [ 0 ] = rgb_to_pixel32 ( r , g , b ) ;\n addr += 3 ;\n d += 4 ;\n }\n while ( -- w != 0 ) ;\n }"}
{"idx": 16153, "target": 0, "func": "void gic_init_irqs_and_distributor ( GICState * s , int num_irq ) {\n int i ;\n i = s -> num_irq - GIC_INTERNAL ;\n if ( s -> revision != REV_NVIC ) {\n i += ( GIC_INTERNAL * s -> num_cpu ) ;\n }\n qdev_init_gpio_in ( & s -> busdev . qdev , gic_set_irq , i ) ;\n for ( i = 0 ;\n i < NUM_CPU ( s ) ;\n i ++ ) {\n sysbus_init_irq ( & s -> busdev , & s -> parent_irq [ i ] ) ;\n }\n memory_region_init_io ( & s -> iomem , OBJECT ( s ) , & gic_dist_ops , s , \"gic_dist\" , 0x1000 ) ;\n }"}
{"idx": 16154, "target": 1, "func": "static void UConverter_toUnicode_CompoundText_OFFSETS ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n const char * mySource = ( char * ) args -> source ;\n UChar * myTarget = args -> target ;\n const char * mySourceLimit = args -> sourceLimit ;\n const char * tmpSourceLimit = mySourceLimit ;\n uint32_t mySourceChar = 0x0000 ;\n COMPOUND_TEXT_CONVERTERS currentState , tmpState ;\n int32_t sourceOffset = 0 ;\n UConverterDataCompoundText * myConverterData = ( UConverterDataCompoundText * ) args -> converter -> extraInfo ;\n UConverterSharedData * savedSharedData = NULL ;\n UConverterToUnicodeArgs subArgs ;\n int32_t minArgsSize ;\n if ( args -> size < sizeof ( UConverterToUnicodeArgs ) ) {\n minArgsSize = args -> size ;\n }\n else {\n minArgsSize = ( int32_t ) sizeof ( UConverterToUnicodeArgs ) ;\n }\n uprv_memcpy ( & subArgs , args , minArgsSize ) ;\n subArgs . size = ( uint16_t ) minArgsSize ;\n currentState = tmpState = myConverterData -> state ;\n while ( mySource < mySourceLimit ) {\n if ( myTarget < args -> targetLimit ) {\n if ( args -> converter -> toULength > 0 ) {\n mySourceChar = args -> converter -> toUBytes [ 0 ] ;\n }\n else {\n mySourceChar = ( uint8_t ) * mySource ;\n }\n if ( mySourceChar == ESC_START ) {\n tmpState = findStateFromEscSeq ( mySource , mySourceLimit , args -> converter -> toUBytes , args -> converter -> toULength , err ) ;\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n for ( ;\n mySource < mySourceLimit ;\n ) {\n args -> converter -> toUBytes [ args -> converter -> toULength ++ ] = * mySource ++ ;\n }\n * err = U_ZERO_ERROR ;\n break ;\n }\n else if ( tmpState == INVALID ) {\n if ( args -> converter -> toULength == 0 ) {\n mySource ++ ;\n }\n * err = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n if ( tmpState != currentState ) {\n currentState = tmpState ;\n }\n sourceOffset = uprv_strlen ( ( char * ) escSeqCompoundText [ currentState ] ) - args -> converter -> toULength ;\n mySource += sourceOffset ;\n args -> converter -> toULength = 0 ;\n }\n if ( currentState == COMPOUND_TEXT_SINGLE_0 ) {\n while ( mySource < mySourceLimit ) {\n if ( * mySource == ESC_START ) {\n break ;\n }\n if ( myTarget < args -> targetLimit ) {\n * myTarget ++ = 0x00ff & ( * mySource ++ ) ;\n }\n else {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n }\n else if ( mySource < mySourceLimit ) {\n sourceOffset = findNextEsc ( mySource , mySourceLimit ) ;\n tmpSourceLimit = mySource + sourceOffset ;\n subArgs . source = mySource ;\n subArgs . sourceLimit = tmpSourceLimit ;\n subArgs . target = myTarget ;\n savedSharedData = subArgs . converter -> sharedData ;\n subArgs . converter -> sharedData = myConverterData -> myConverterArray [ currentState ] ;\n ucnv_MBCSToUnicodeWithOffsets ( & subArgs , err ) ;\n subArgs . converter -> sharedData = savedSharedData ;\n mySource = subArgs . source ;\n myTarget = subArgs . target ;\n if ( U_FAILURE ( * err ) ) {\n if ( * err == U_BUFFER_OVERFLOW_ERROR ) {\n if ( subArgs . converter -> UCharErrorBufferLength > 0 ) {\n uprv_memcpy ( args -> converter -> UCharErrorBuffer , subArgs . converter -> UCharErrorBuffer , subArgs . converter -> UCharErrorBufferLength ) ;\n }\n args -> converter -> UCharErrorBufferLength = subArgs . converter -> UCharErrorBufferLength ;\n subArgs . converter -> UCharErrorBufferLength = 0 ;\n }\n break ;\n }\n }\n }\n else {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n myConverterData -> state = currentState ;\n args -> target = myTarget ;\n args -> source = mySource ;\n }"}
{"idx": 16155, "target": 0, "func": "static void dummy_cpu_set_irq ( void * opaque , int irq , int level ) {\n }"}
{"idx": 16156, "target": 0, "func": "static int dissect_s_supervisor_proposed_tunid ( packet_info * pinfo , proto_tree * tree _U_ , proto_item * item , tvbuff_t * tvb , int offset , int total_len ) {\n if ( total_len < 10 ) {\n expert_add_info ( pinfo , item , & ei_mal_ssupervisor_proposed_tunid ) ;\n return total_len ;\n }\n dissect_unid ( tvb , pinfo , offset , item , \"Proposed TUNID SSN\" , hf_cip_ssupervisor_proposed_tunid_ssn_timestamp , hf_cip_ssupervisor_proposed_tunid_ssn_date , hf_cip_ssupervisor_proposed_tunid_ssn_time , hf_cip_ssupervisor_proposed_tunid_macid , ett_ssupervisor_proposed_tunid , ett_ssupervisor_proposed_tunid_ssn ) ;\n return 10 ;\n }"}
{"idx": 16157, "target": 0, "func": "static int dca_subsubframe ( DCAContext * s , int base_channel , int block_index ) {\n int k , l ;\n int subsubframe = s -> current_subsubframe ;\n const float * quant_step_table ;\n float ( * subband_samples ) [ DCA_SUBBANDS ] [ 8 ] = s -> subband_samples [ block_index ] ;\n LOCAL_ALIGNED_16 ( int , block , [ 8 ] ) ;\n if ( s -> bit_rate_index == 0x1f ) quant_step_table = lossless_quant_d ;\n else quant_step_table = lossy_quant_d ;\n for ( k = base_channel ;\n k < s -> prim_channels ;\n k ++ ) {\n if ( get_bits_left ( & s -> gb ) < 0 ) return AVERROR_INVALIDDATA ;\n for ( l = 0 ;\n l < s -> vq_start_subband [ k ] ;\n l ++ ) {\n int m ;\n int abits = s -> bitalloc [ k ] [ l ] ;\n float quant_step_size = quant_step_table [ abits ] ;\n int sel = s -> quant_index_huffman [ k ] [ abits ] ;\n if ( ! abits ) {\n memset ( subband_samples [ k ] [ l ] , 0 , 8 * sizeof ( subband_samples [ 0 ] [ 0 ] [ 0 ] ) ) ;\n }\n else {\n int sfi = s -> transition_mode [ k ] [ l ] && subsubframe >= s -> transition_mode [ k ] [ l ] ;\n float rscale = quant_step_size * s -> scale_factor [ k ] [ l ] [ sfi ] * s -> scalefactor_adj [ k ] [ sel ] ;\n if ( abits >= 11 || ! dca_smpl_bitalloc [ abits ] . vlc [ sel ] . table ) {\n if ( abits <= 7 ) {\n int block_code1 , block_code2 , size , levels , err ;\n size = abits_sizes [ abits - 1 ] ;\n levels = abits_levels [ abits - 1 ] ;\n block_code1 = get_bits ( & s -> gb , size ) ;\n block_code2 = get_bits ( & s -> gb , size ) ;\n err = decode_blockcodes ( block_code1 , block_code2 , levels , block ) ;\n if ( err ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"ERROR: block code look-up failed\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n else {\n for ( m = 0 ;\n m < 8 ;\n m ++ ) block [ m ] = get_sbits ( & s -> gb , abits - 3 ) ;\n }\n }\n else {\n for ( m = 0 ;\n m < 8 ;\n m ++ ) block [ m ] = get_bitalloc ( & s -> gb , & dca_smpl_bitalloc [ abits ] , sel ) ;\n }\n s -> fmt_conv . int32_to_float_fmul_scalar ( subband_samples [ k ] [ l ] , block , rscale , 8 ) ;\n }\n if ( s -> prediction_mode [ k ] [ l ] ) {\n int n ;\n for ( m = 0 ;\n m < 8 ;\n m ++ ) {\n for ( n = 1 ;\n n <= 4 ;\n n ++ ) if ( m >= n ) subband_samples [ k ] [ l ] [ m ] += ( adpcm_vb [ s -> prediction_vq [ k ] [ l ] ] [ n - 1 ] * subband_samples [ k ] [ l ] [ m - n ] / 8192 ) ;\n else if ( s -> predictor_history ) subband_samples [ k ] [ l ] [ m ] += ( adpcm_vb [ s -> prediction_vq [ k ] [ l ] ] [ n - 1 ] * s -> subband_samples_hist [ k ] [ l ] [ m - n + 4 ] / 8192 ) ;\n }\n }\n }\n for ( l = s -> vq_start_subband [ k ] ;\n l < s -> subband_activity [ k ] ;\n l ++ ) {\n int hfvq = s -> high_freq_vq [ k ] [ l ] ;\n if ( ! s -> debug_flag & 0x01 ) {\n av_log ( s -> avctx , AV_LOG_DEBUG , \"Stream with high frequencies VQ coding\\n\" ) ;\n s -> debug_flag |= 0x01 ;\n }\n int8x8_fmul_int32 ( subband_samples [ k ] [ l ] , & high_freq_vq [ hfvq ] [ subsubframe * 8 ] , s -> scale_factor [ k ] [ l ] [ 0 ] ) ;\n }\n }\n if ( s -> aspf || subsubframe == s -> subsubframes [ s -> current_subframe ] - 1 ) {\n if ( 0xFFFF == get_bits ( & s -> gb , 16 ) ) {\n # ifdef TRACE av_log ( s -> avctx , AV_LOG_DEBUG , \"Got subframe DSYNC\\n\" ) ;\n # endif }\n else {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Didn't get subframe DSYNC\\n\" ) ;\n }\n }\n for ( k = base_channel ;\n k < s -> prim_channels ;\n k ++ ) for ( l = 0 ;\n l < s -> vq_start_subband [ k ] ;\n l ++ ) memcpy ( s -> subband_samples_hist [ k ] [ l ] , & subband_samples [ k ] [ l ] [ 4 ] , 4 * sizeof ( subband_samples [ 0 ] [ 0 ] [ 0 ] ) ) ;\n return 0 ;\n }"}
{"idx": 16158, "target": 0, "func": "static gint dissect_amf0_value_type ( tvbuff_t * tvb , gint offset , proto_tree * tree , gboolean * amf3_encoding , proto_item * parent_ti ) {\n guint8 iObjType ;\n proto_item * ti ;\n proto_tree * val_tree ;\n gint iValueOffset = offset ;\n guint32 iIntegerValue ;\n double iDoubleValue ;\n gboolean iBooleanValue ;\n guint iStringLength ;\n gchar * iStringValue ;\n guint iArrayLength ;\n guint i ;\n nstime_t t ;\n gint64 iInteger64Value ;\n guint count ;\n iObjType = tvb_get_guint8 ( tvb , offset ) ;\n if ( parent_ti != NULL ) proto_item_append_text ( parent_ti , \" %s\" , val_to_str_const ( iObjType , amf0_type_vals , \"Unknown\" ) ) ;\n switch ( iObjType ) {\n case AMF0_OBJECT : ti = proto_tree_add_item ( tree , hf_amf_object , tvb , offset , - 1 , ENC_NA ) ;\n val_tree = proto_item_add_subtree ( ti , ett_amf_value ) ;\n break ;\n case AMF0_ECMA_ARRAY : ti = proto_tree_add_item ( tree , hf_amf_ecmaarray , tvb , offset , - 1 , ENC_NA ) ;\n val_tree = proto_item_add_subtree ( ti , ett_amf_value ) ;\n break ;\n case AMF0_STRICT_ARRAY : ti = proto_tree_add_item ( tree , hf_amf_strictarray , tvb , offset , - 1 , ENC_NA ) ;\n val_tree = proto_item_add_subtree ( ti , ett_amf_value ) ;\n break ;\n default : val_tree = proto_tree_add_subtree ( tree , tvb , offset , - 1 , ett_amf_value , & ti , val_to_str_const ( iObjType , amf0_type_vals , \"Unknown\" ) ) ;\n break ;\n }\n proto_tree_add_uint ( val_tree , hf_amf_amf0_type , tvb , iValueOffset , 1 , iObjType ) ;\n iValueOffset ++ ;\n switch ( iObjType ) {\n case AMF0_NUMBER : iDoubleValue = tvb_get_ntohieee_double ( tvb , iValueOffset ) ;\n proto_tree_add_double ( val_tree , hf_amf_number , tvb , iValueOffset , 8 , iDoubleValue ) ;\n iValueOffset += 8 ;\n proto_item_append_text ( ti , \" %.\" G_STRINGIFY ( DBL_DIG ) \"g\" , iDoubleValue ) ;\n if ( parent_ti != NULL ) proto_item_append_text ( parent_ti , \" %.\" G_STRINGIFY ( DBL_DIG ) \"g\" , iDoubleValue ) ;\n break ;\n case AMF0_BOOLEAN : iBooleanValue = tvb_get_guint8 ( tvb , iValueOffset ) ;\n proto_tree_add_boolean ( val_tree , hf_amf_boolean , tvb , iValueOffset , 1 , iBooleanValue ) ;\n iValueOffset += 1 ;\n proto_item_append_text ( ti , iBooleanValue ? \" true\" : \" false\" ) ;\n if ( parent_ti != NULL ) proto_item_append_text ( parent_ti , iBooleanValue ? \" true\" : \" false\" ) ;\n break ;\n case AMF0_STRING : iStringLength = tvb_get_ntohs ( tvb , iValueOffset ) ;\n proto_tree_add_uint ( val_tree , hf_amf_stringlength , tvb , iValueOffset , 2 , iStringLength ) ;\n iValueOffset += 2 ;\n iStringValue = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , iValueOffset , iStringLength , ENC_UTF_8 | ENC_NA ) ;\n if ( iStringLength != 0 ) proto_tree_add_string ( val_tree , hf_amf_string , tvb , iValueOffset , iStringLength , iStringValue ) ;\n iValueOffset += iStringLength ;\n proto_item_append_text ( ti , \" '%s'\" , iStringValue ) ;\n if ( parent_ti != NULL ) proto_item_append_text ( parent_ti , \" '%s'\" , iStringValue ) ;\n break ;\n case AMF0_OBJECT : iValueOffset = dissect_amf0_property_list ( tvb , iValueOffset , val_tree , & count , amf3_encoding ) ;\n proto_item_append_text ( ti , \" (%u items)\" , count ) ;\n break ;\n case AMF0_NULL : case AMF0_UNDEFINED : break ;\n case AMF0_REFERENCE : iIntegerValue = tvb_get_ntohs ( tvb , iValueOffset ) ;\n proto_tree_add_uint ( val_tree , hf_amf_object_reference , tvb , iValueOffset , 2 , iIntegerValue ) ;\n iValueOffset += 2 ;\n proto_item_append_text ( ti , \" %d\" , iIntegerValue ) ;\n break ;\n case AMF0_ECMA_ARRAY : iArrayLength = tvb_get_ntohl ( tvb , iValueOffset ) ;\n proto_tree_add_uint ( val_tree , hf_amf_arraylength , tvb , iValueOffset , 4 , iArrayLength ) ;\n iValueOffset += 4 ;\n iValueOffset = dissect_amf0_property_list ( tvb , iValueOffset , val_tree , & count , amf3_encoding ) ;\n proto_item_append_text ( ti , \" (%u items)\" , count ) ;\n break ;\n case AMF0_END_OF_OBJECT : proto_tree_add_item ( tree , hf_amf_end_of_object_marker , tvb , iValueOffset , 3 , ENC_NA ) ;\n iValueOffset += 3 ;\n break ;\n case AMF0_STRICT_ARRAY : iArrayLength = tvb_get_ntohl ( tvb , iValueOffset ) ;\n proto_tree_add_uint ( val_tree , hf_amf_arraylength , tvb , iValueOffset , 4 , iArrayLength ) ;\n iValueOffset += 4 ;\n for ( i = 0 ;\n i < iArrayLength ;\n i ++ ) iValueOffset = dissect_amf0_value_type ( tvb , iValueOffset , val_tree , amf3_encoding , NULL ) ;\n proto_item_append_text ( ti , \" (%u items)\" , iArrayLength ) ;\n break ;\n case AMF0_DATE : iDoubleValue = tvb_get_ntohieee_double ( tvb , iValueOffset ) ;\n t . secs = ( time_t ) ( iDoubleValue / 1000 ) ;\n t . nsecs = ( int ) ( ( iDoubleValue - 1000 * ( double ) t . secs ) * 1000000 ) ;\n proto_tree_add_time ( val_tree , hf_amf_date , tvb , iValueOffset , 8 , & t ) ;\n iValueOffset += 8 ;\n proto_item_append_text ( ti , \" %s\" , abs_time_to_str ( wmem_packet_scope ( ) , & t , ABSOLUTE_TIME_LOCAL , TRUE ) ) ;\n if ( parent_ti != NULL ) proto_item_append_text ( parent_ti , \" %s\" , abs_time_to_str ( wmem_packet_scope ( ) , & t , ABSOLUTE_TIME_LOCAL , TRUE ) ) ;\n iValueOffset += 2 ;\n break ;\n case AMF0_LONG_STRING : case AMF0_XML : iStringLength = tvb_get_ntohl ( tvb , iValueOffset ) ;\n proto_tree_add_uint ( val_tree , hf_amf_stringlength , tvb , iValueOffset , 2 , iStringLength ) ;\n iValueOffset += 4 ;\n iStringValue = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , iValueOffset , iStringLength , ENC_UTF_8 | ENC_NA ) ;\n if ( iStringLength != 0 ) proto_tree_add_string ( val_tree , ( iObjType == AMF0_XML ) ? hf_amf_xml_doc : hf_amf_longstring , tvb , iValueOffset , iStringLength , iStringValue ) ;\n iValueOffset += iStringLength ;\n proto_item_append_text ( ti , \" '%s'\" , iStringValue ) ;\n if ( parent_ti != NULL ) proto_item_append_text ( parent_ti , \" '%s'\" , iStringValue ) ;\n break ;\n case AMF0_UNSUPPORTED : break ;\n case AMF0_TYPED_OBJECT : iStringLength = tvb_get_ntohs ( tvb , iValueOffset ) ;\n proto_tree_add_uint ( val_tree , hf_amf_stringlength , tvb , iValueOffset , 2 , iStringLength ) ;\n iValueOffset += 2 ;\n iStringValue = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , iValueOffset , iStringLength , ENC_UTF_8 | ENC_NA ) ;\n proto_tree_add_string ( val_tree , hf_amf_string , tvb , iValueOffset , iStringLength , iStringValue ) ;\n iValueOffset += iStringLength ;\n iValueOffset = dissect_amf0_property_list ( tvb , iValueOffset , val_tree , & count , amf3_encoding ) ;\n break ;\n case AMF0_AMF3_MARKER : * amf3_encoding = TRUE ;\n break ;\n case AMF0_INT64 : iInteger64Value = tvb_get_ntoh64 ( tvb , iValueOffset ) ;\n proto_tree_add_int64 ( val_tree , hf_amf_int64 , tvb , iValueOffset , 8 , iInteger64Value ) ;\n iValueOffset += 8 ;\n proto_item_append_text ( ti , \" %\" G_GINT64_MODIFIER \"d\" , iInteger64Value ) ;\n if ( parent_ti != NULL ) proto_item_append_text ( parent_ti , \" %\" G_GINT64_MODIFIER \"d\" , iInteger64Value ) ;\n break ;\n default : iValueOffset = tvb_reported_length ( tvb ) ;\n break ;\n }\n proto_item_set_end ( ti , tvb , iValueOffset ) ;\n return iValueOffset ;\n }"}
{"idx": 16159, "target": 0, "func": "static int dissect_pvfs2_flush_request ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"handle\" , NULL ) ;\n offset = dissect_pvfs_fs_id ( tvb , tree , offset ) ;\n proto_tree_add_item ( tree , hf_pvfs_flush_request_flags , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n return offset ;\n }"}
{"idx": 16160, "target": 0, "func": "static int calculate_bitrate ( AVFormatContext * s ) {\n AVIContext * avi = s -> priv_data ;\n int i , j ;\n int64_t lensum = 0 ;\n int64_t maxpos = 0 ;\n for ( i = 0 ;\n i < s -> nb_streams ;\n i ++ ) {\n int64_t len = 0 ;\n AVStream * st = s -> streams [ i ] ;\n if ( ! st -> nb_index_entries ) continue ;\n for ( j = 0 ;\n j < st -> nb_index_entries ;\n j ++ ) len += st -> index_entries [ j ] . size ;\n maxpos = FFMAX ( maxpos , st -> index_entries [ j - 1 ] . pos ) ;\n lensum += len ;\n }\n if ( maxpos < avi -> io_fsize * 9 / 10 ) return 0 ;\n if ( lensum * 9 / 10 > maxpos || lensum < maxpos * 9 / 10 ) return 0 ;\n for ( i = 0 ;\n i < s -> nb_streams ;\n i ++ ) {\n int64_t len = 0 ;\n AVStream * st = s -> streams [ i ] ;\n int64_t duration ;\n int64_t bitrate ;\n for ( j = 0 ;\n j < st -> nb_index_entries ;\n j ++ ) len += st -> index_entries [ j ] . size ;\n if ( st -> nb_index_entries < 2 || st -> codecpar -> bit_rate > 0 ) continue ;\n duration = st -> index_entries [ j - 1 ] . timestamp - st -> index_entries [ 0 ] . timestamp ;\n bitrate = av_rescale ( 8 * len , st -> time_base . den , duration * st -> time_base . num ) ;\n if ( bitrate <= INT_MAX && bitrate > 0 ) {\n st -> codecpar -> bit_rate = bitrate ;\n }\n }\n return 1 ;\n }"}
{"idx": 16161, "target": 0, "func": "static void read_index ( AVIOContext * pb , AVStream * st ) {\n uint64_t timestamp = 0 ;\n int i ;\n for ( i = 0 ;\n i < st -> nb_frames ;\n i ++ ) {\n uint32_t pos = avio_rb32 ( pb ) ;\n uint32_t size = avio_rb32 ( pb ) ;\n avio_skip ( pb , 8 ) ;\n av_add_index_entry ( st , pos , timestamp , size , 0 , AVINDEX_KEYFRAME ) ;\n if ( st -> codecpar -> codec_type == AVMEDIA_TYPE_AUDIO ) {\n timestamp += size / ( st -> codecpar -> channels * 2 ) ;\n }\n else {\n timestamp ++ ;\n }\n }\n }"}
{"idx": 16162, "target": 0, "func": "static Asn1Generic * DecodeAsn1DerIA5String ( const unsigned char * buffer , uint32_t max_size , uint8_t depth , uint32_t * errcode ) {\n const unsigned char * d_ptr = buffer ;\n uint32_t length , numbytes ;\n Asn1Generic * a ;\n unsigned char c ;\n d_ptr ++ ;\n c = d_ptr [ 0 ] ;\n if ( ( c & ( 1 << 7 ) ) >> 7 == 0 ) {\n length = c ;\n d_ptr ++ ;\n }\n else {\n numbytes = c & 0x7f ;\n d_ptr ++ ;\n if ( DecodeAsn1BuildValue ( & d_ptr , & length , numbytes , errcode ) == - 1 ) {\n return NULL ;\n }\n }\n if ( length == UINT32_MAX || length > max_size ) {\n if ( errcode ) * errcode = ERR_DER_ELEMENT_SIZE_TOO_BIG ;\n return NULL ;\n }\n a = Asn1GenericNew ( ) ;\n if ( a == NULL ) return NULL ;\n a -> type = ASN1_IA5STRING ;\n a -> strlen = length ;\n a -> str = SCMalloc ( length + 1 ) ;\n if ( a -> str == NULL ) {\n SCFree ( a ) ;\n return NULL ;\n }\n strlcpy ( a -> str , ( const char * ) d_ptr , length + 1 ) ;\n d_ptr += length ;\n a -> length = ( d_ptr - buffer ) ;\n return a ;\n }"}
{"idx": 16163, "target": 0, "func": "int TS_ASN1_INTEGER_print_bio ( BIO * bio , const ASN1_INTEGER * num ) {\n BIGNUM * num_bn ;\n int result = 0 ;\n char * hex ;\n num_bn = BN_new ( ) ;\n if ( num_bn == NULL ) return - 1 ;\n ASN1_INTEGER_to_BN ( num , num_bn ) ;\n if ( ( hex = BN_bn2hex ( num_bn ) ) ) {\n result = BIO_write ( bio , \"0x\" , 2 ) > 0 ;\n result = result && BIO_write ( bio , hex , strlen ( hex ) ) > 0 ;\n OPENSSL_free ( hex ) ;\n }\n BN_free ( num_bn ) ;\n return result ;\n }"}
{"idx": 16164, "target": 0, "func": "int64_t mime_parse_int64 ( const char * buf , const char * end ) {\n int64_t num ;\n bool negative ;\n if ( ! buf || ( buf == end ) ) {\n return 0 ;\n }\n if ( is_digit ( * buf ) ) {\n num = * buf ++ - '0' ;\n while ( ( buf != end ) && is_digit ( * buf ) ) {\n num = ( num * 10 ) + ( * buf ++ - '0' ) ;\n }\n return num ;\n }\n else {\n num = 0 ;\n negative = false ;\n while ( ( buf != end ) && ParseRules : : is_space ( * buf ) ) {\n buf += 1 ;\n }\n if ( ( buf != end ) && ( * buf == '-' ) ) {\n negative = true ;\n buf += 1 ;\n }\n while ( ( buf != end ) && is_digit ( * buf ) ) {\n num = ( num * 10 ) - ( * buf ++ - '0' ) ;\n }\n if ( ! negative ) {\n num = - num ;\n }\n return num ;\n }\n }"}
{"idx": 16165, "target": 0, "func": "static vpx_codec_err_t ctrl_set_svc ( vpx_codec_alg_priv_t * ctx , va_list args ) {\n int data = va_arg ( args , int ) ;\n const vpx_codec_enc_cfg_t * cfg = & ctx -> cfg ;\n vp9_set_svc ( ctx -> cpi , data ) ;\n if ( data == 1 && ( cfg -> rc_end_usage == VPX_CBR || cfg -> g_pass == VPX_RC_FIRST_PASS || cfg -> g_pass == VPX_RC_LAST_PASS ) && cfg -> ss_number_layers > 1 && cfg -> ts_number_layers > 1 ) {\n return VPX_CODEC_INVALID_PARAM ;\n }\n return VPX_CODEC_OK ;\n }"}
{"idx": 16166, "target": 0, "func": "static void client_query ( ) {\n int rc ;\n myheader ( \"client_query\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE t1(\" \"id int primary key auto_increment, \" \"name varchar(20))\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE t1(id int, name varchar(20))\" ) ;\n myquery_r ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO t1(name) VALUES('mysql')\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO t1(name) VALUES('monty')\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO t1(name) VALUES('venu')\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO t1(name) VALUES('deleted')\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO t1(name) VALUES('deleted')\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"UPDATE t1 SET name= 'updated' \" \"WHERE name= 'deleted'\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"UPDATE t1 SET id= 3 WHERE name= 'updated'\" ) ;\n myquery_r ( rc ) ;\n myquery ( mysql_query ( mysql , \"drop table t1\" ) ) ;\n }"}
{"idx": 16167, "target": 0, "func": "static int rc_pick_q_and_bounds_one_pass_cbr ( const VP9_COMP * cpi , int * bottom_index , int * top_index ) {\n const VP9_COMMON * const cm = & cpi -> common ;\n const RATE_CONTROL * const rc = & cpi -> rc ;\n int active_best_quality ;\n int active_worst_quality = calc_active_worst_quality_one_pass_cbr ( cpi ) ;\n int q ;\n int * rtc_minq ;\n ASSIGN_MINQ_TABLE ( cm -> bit_depth , rtc_minq ) ;\n if ( frame_is_intra_only ( cm ) ) {\n active_best_quality = rc -> best_quality ;\n if ( rc -> this_key_frame_forced ) {\n int qindex = rc -> last_boosted_qindex ;\n double last_boosted_q = vp9_convert_qindex_to_q ( qindex , cm -> bit_depth ) ;\n int delta_qindex = vp9_compute_qdelta ( rc , last_boosted_q , ( last_boosted_q * 0.75 ) , cm -> bit_depth ) ;\n active_best_quality = MAX ( qindex + delta_qindex , rc -> best_quality ) ;\n }\n else if ( cm -> current_video_frame > 0 ) {\n double q_adj_factor = 1.0 ;\n double q_val ;\n active_best_quality = get_kf_active_quality ( rc , rc -> avg_frame_qindex [ KEY_FRAME ] , cm -> bit_depth ) ;\n if ( ( cm -> width * cm -> height ) <= ( 352 * 288 ) ) {\n q_adj_factor -= 0.25 ;\n }\n q_val = vp9_convert_qindex_to_q ( active_best_quality , cm -> bit_depth ) ;\n active_best_quality += vp9_compute_qdelta ( rc , q_val , q_val * q_adj_factor , cm -> bit_depth ) ;\n }\n }\n else if ( ! rc -> is_src_frame_alt_ref && ! cpi -> use_svc && ( cpi -> refresh_golden_frame || cpi -> refresh_alt_ref_frame ) ) {\n if ( rc -> frames_since_key > 1 && rc -> avg_frame_qindex [ INTER_FRAME ] < active_worst_quality ) {\n q = rc -> avg_frame_qindex [ INTER_FRAME ] ;\n }\n else {\n q = active_worst_quality ;\n }\n active_best_quality = get_gf_active_quality ( rc , q , cm -> bit_depth ) ;\n }\n else {\n if ( cm -> current_video_frame > 1 ) {\n if ( rc -> avg_frame_qindex [ INTER_FRAME ] < active_worst_quality ) active_best_quality = rtc_minq [ rc -> avg_frame_qindex [ INTER_FRAME ] ] ;\n else active_best_quality = rtc_minq [ active_worst_quality ] ;\n }\n else {\n if ( rc -> avg_frame_qindex [ KEY_FRAME ] < active_worst_quality ) active_best_quality = rtc_minq [ rc -> avg_frame_qindex [ KEY_FRAME ] ] ;\n else active_best_quality = rtc_minq [ active_worst_quality ] ;\n }\n }\n active_best_quality = clamp ( active_best_quality , rc -> best_quality , rc -> worst_quality ) ;\n active_worst_quality = clamp ( active_worst_quality , active_best_quality , rc -> worst_quality ) ;\n * top_index = active_worst_quality ;\n * bottom_index = active_best_quality ;\n # if LIMIT_QRANGE_FOR_ALTREF_AND_KEY if ( cm -> frame_type == KEY_FRAME && ! rc -> this_key_frame_forced && ! ( cm -> current_video_frame == 0 ) ) {\n int qdelta = 0 ;\n vp9_clear_system_state ( ) ;\n qdelta = vp9_compute_qdelta_by_rate ( & cpi -> rc , cm -> frame_type , active_worst_quality , 2.0 , cm -> bit_depth ) ;\n * top_index = active_worst_quality + qdelta ;\n * top_index = ( * top_index > * bottom_index ) ? * top_index : * bottom_index ;\n }\n # endif if ( cm -> frame_type == KEY_FRAME && rc -> this_key_frame_forced ) {\n q = rc -> last_boosted_qindex ;\n }\n else {\n q = vp9_rc_regulate_q ( cpi , rc -> this_frame_target , active_best_quality , active_worst_quality ) ;\n if ( q > * top_index ) {\n if ( rc -> this_frame_target >= rc -> max_frame_bandwidth ) * top_index = q ;\n else q = * top_index ;\n }\n }\n assert ( * top_index <= rc -> worst_quality && * top_index >= rc -> best_quality ) ;\n assert ( * bottom_index <= rc -> worst_quality && * bottom_index >= rc -> best_quality ) ;\n assert ( q <= rc -> worst_quality && q >= rc -> best_quality ) ;\n return q ;\n }"}
{"idx": 16168, "target": 0, "func": "static int dissect_t38_INTEGER ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_integer ( tvb , offset , actx , tree , hf_index , NULL ) ;\n return offset ;\n }"}
{"idx": 16169, "target": 1, "func": "static void mspack_fmap_free ( void * mem ) {\n free ( mem ) ;\n }"}
{"idx": 16170, "target": 1, "func": "int rfc2231_parse ( struct rfc822_parser_context * ctx , const char * const * * result_r ) {\n ARRAY_TYPE ( const_string ) result ;\n ARRAY ( struct rfc2231_parameter ) rfc2231_params_arr ;\n struct rfc2231_parameter rfc2231_param ;\n const struct rfc2231_parameter * rfc2231_params ;\n const char * key , * value , * p , * p2 ;\n string_t * str ;\n unsigned int i , j , count , next , next_idx ;\n bool ok , have_extended , broken = FALSE ;\n int ret ;\n i_zero ( & rfc2231_param ) ;\n t_array_init ( & result , 8 ) ;\n t_array_init ( & rfc2231_params_arr , 8 ) ;\n while ( ( ret = rfc822_parse_content_param ( ctx , & key , & value ) ) != 0 ) {\n if ( ret < 0 ) {\n broken = TRUE ;\n if ( ctx -> data == ctx -> end ) break ;\n ctx -> data ++ ;\n continue ;\n }\n p = strchr ( key , '*' ) ;\n if ( p != NULL ) {\n p2 = p ;\n if ( p [ 1 ] != '\\0' ) {\n p ++ ;\n rfc2231_param . idx = 0 ;\n for ( ;\n * p >= '0' && * p <= '9' ;\n p ++ ) {\n rfc2231_param . idx = rfc2231_param . idx * 10 + * p - '0' ;\n }\n }\n if ( * p != '*' ) rfc2231_param . extended = FALSE ;\n else {\n rfc2231_param . extended = TRUE ;\n p ++ ;\n }\n if ( * p != '\\0' ) p = NULL ;\n else {\n rfc2231_param . key = t_strdup_until ( key , p2 ) ;\n rfc2231_param . value = value ;\n array_append ( & rfc2231_params_arr , & rfc2231_param , 1 ) ;\n }\n }\n if ( p == NULL ) {\n array_append ( & result , & key , 1 ) ;\n array_append ( & result , & value , 1 ) ;\n }\n }\n if ( array_count ( & rfc2231_params_arr ) == 0 ) {\n array_append_zero ( & result ) ;\n * result_r = array_idx ( & result , 0 ) ;\n return broken ? - 1 : 0 ;\n }\n array_sort ( & rfc2231_params_arr , rfc2231_parameter_cmp ) ;\n rfc2231_params = array_get ( & rfc2231_params_arr , & count ) ;\n str = t_str_new ( 64 ) ;\n for ( i = 0 ;\n i < count ;\n i = next ) {\n ok = TRUE ;\n have_extended = FALSE ;\n next_idx = 0 ;\n for ( j = i ;\n j < count ;\n j ++ ) {\n if ( strcasecmp ( rfc2231_params [ i ] . key , rfc2231_params [ j ] . key ) != 0 ) break ;\n if ( rfc2231_params [ j ] . idx != next_idx ) {\n ok = FALSE ;\n }\n if ( rfc2231_params [ j ] . extended ) have_extended = TRUE ;\n next_idx ++ ;\n }\n next = j ;\n if ( ! ok ) {\n for ( j = i ;\n j < next ;\n j ++ ) {\n key = t_strdup_printf ( rfc2231_params [ j ] . extended ? \"%s*%u*\" : \"%s*%u\" , rfc2231_params [ j ] . key , rfc2231_params [ j ] . idx ) ;\n array_append ( & result , & key , 1 ) ;\n array_append ( & result , & rfc2231_params [ j ] . value , 1 ) ;\n }\n }\n else {\n str_truncate ( str , 0 ) ;\n if ( ! rfc2231_params [ i ] . extended && have_extended ) str_append ( str , \"''\" ) ;\n for ( j = i ;\n j < next ;\n j ++ ) {\n if ( ! rfc2231_params [ j ] . extended && have_extended ) {\n rfc2231_escape ( str , rfc2231_params [ j ] . value ) ;\n }\n else {\n str_append ( str , rfc2231_params [ j ] . value ) ;\n }\n }\n key = rfc2231_params [ i ] . key ;\n if ( have_extended ) key = t_strconcat ( key , \"*\" , NULL ) ;\n value = t_strdup ( str_c ( str ) ) ;\n array_append ( & result , & key , 1 ) ;\n array_append ( & result , & value , 1 ) ;\n }\n }\n array_append_zero ( & result ) ;\n * result_r = array_idx ( & result , 0 ) ;\n return broken ? - 1 : 0 ;\n }"}
{"idx": 16171, "target": 0, "func": "static void dtap_tp_epc_reset_ue_positioning_stored_information ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_len = len ;\n curr_offset = offset ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_TP_EPC_UE_POSITIONING_TECHNOLOGY , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 16172, "target": 0, "func": "fz_default_colorspaces * fz_keep_default_colorspaces ( fz_context * ctx , fz_default_colorspaces * default_cs ) {\n return fz_keep_imp ( ctx , default_cs , & default_cs -> refs ) ;\n }"}
{"idx": 16173, "target": 1, "func": "static int ipvideo_decode_block_opcode_0xA_16 ( IpvideoContext * s ) {\n int x , y ;\n uint16_t P [ 8 ] ;\n int flags = 0 ;\n uint16_t * pixel_ptr = ( uint16_t * ) s -> pixel_ptr ;\n for ( x = 0 ;\n x < 4 ;\n x ++ ) P [ x ] = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n if ( ! ( P [ 0 ] & 0x8000 ) ) {\n for ( y = 0 ;\n y < 16 ;\n y ++ ) {\n if ( ! ( y & 3 ) ) {\n if ( y ) for ( x = 0 ;\n x < 4 ;\n x ++ ) P [ x ] = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n flags = bytestream2_get_le32 ( & s -> stream_ptr ) ;\n }\n for ( x = 0 ;\n x < 4 ;\n x ++ , flags >>= 2 ) * pixel_ptr ++ = P [ flags & 0x03 ] ;\n pixel_ptr += s -> stride - 4 ;\n if ( y == 7 ) pixel_ptr -= 8 * s -> stride - 4 ;\n }\n }\n else {\n int vert ;\n uint64_t flags = bytestream2_get_le64 ( & s -> stream_ptr ) ;\n for ( x = 4 ;\n x < 8 ;\n x ++ ) P [ x ] = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n vert = ! ( P [ 4 ] & 0x8000 ) ;\n for ( y = 0 ;\n y < 16 ;\n y ++ ) {\n for ( x = 0 ;\n x < 4 ;\n x ++ , flags >>= 2 ) * pixel_ptr ++ = P [ flags & 0x03 ] ;\n if ( vert ) {\n pixel_ptr += s -> stride - 4 ;\n if ( y == 7 ) pixel_ptr -= 8 * s -> stride - 4 ;\n }\n else if ( y & 1 ) pixel_ptr += s -> line_inc ;\n if ( y == 7 ) {\n memcpy ( P , P + 4 , 8 ) ;\n flags = bytestream2_get_le64 ( & s -> stream_ptr ) ;\n }\n }\n }\n return 0 ;\n }"}
{"idx": 16174, "target": 0, "func": "zend_function * spl_filesystem_object_get_method_check ( zval * * object_ptr , char * method , int method_len , const struct _zend_literal * key TSRMLS_DC ) {\n spl_filesystem_object * fsobj = zend_object_store_get_object ( * object_ptr TSRMLS_CC ) ;\n if ( fsobj -> u . dir . entry . d_name [ 0 ] == '\\0' && fsobj -> orig_path == NULL ) {\n method = \"_bad_state_ex\" ;\n method_len = sizeof ( \"_bad_state_ex\" ) - 1 ;\n key = NULL ;\n }\n return zend_get_std_object_handlers ( ) -> get_method ( object_ptr , method , method_len , key TSRMLS_CC ) ;\n }"}
{"idx": 16175, "target": 1, "func": "int xml_init ( modsec_rec * msr , char * * error_msg ) {\n if ( error_msg == NULL ) return - 1 ;\n * error_msg = NULL ;\n msr -> xml = apr_pcalloc ( msr -> mp , sizeof ( xml_data ) ) ;\n if ( msr -> xml == NULL ) return - 1 ;\n return 1 ;\n }"}
{"idx": 16176, "target": 0, "func": "static struct cgroup_meta_data * lxc_cgroup_load_meta2 ( const char * * subsystem_whitelist ) {\n bool all_kernel_subsystems = true ;\n bool all_named_subsystems = false ;\n struct cgroup_meta_data * meta_data = NULL ;\n char * * kernel_subsystems = NULL ;\n int saved_errno = 0 ;\n all_kernel_subsystems = subsystem_whitelist ? ( lxc_string_in_array ( \"@kernel\" , subsystem_whitelist ) || lxc_string_in_array ( \"@all\" , subsystem_whitelist ) ) : true ;\n all_named_subsystems = subsystem_whitelist ? ( lxc_string_in_array ( \"@named\" , subsystem_whitelist ) || lxc_string_in_array ( \"@all\" , subsystem_whitelist ) ) : false ;\n meta_data = calloc ( 1 , sizeof ( struct cgroup_meta_data ) ) ;\n if ( ! meta_data ) return NULL ;\n meta_data -> ref = 1 ;\n if ( ! find_cgroup_subsystems ( & kernel_subsystems ) ) goto out_error ;\n if ( ! find_cgroup_hierarchies ( meta_data , all_kernel_subsystems , all_named_subsystems , subsystem_whitelist ) ) goto out_error ;\n if ( ! find_hierarchy_mountpts ( meta_data , kernel_subsystems ) ) goto out_error ;\n if ( ! meta_data -> hierarchies || ! meta_data -> mount_points ) {\n errno = EINVAL ;\n goto out_error ;\n }\n lxc_free_array ( ( void * * ) kernel_subsystems , free ) ;\n return meta_data ;\n out_error : saved_errno = errno ;\n lxc_free_array ( ( void * * ) kernel_subsystems , free ) ;\n lxc_cgroup_put_meta ( meta_data ) ;\n errno = saved_errno ;\n return NULL ;\n }"}
{"idx": 16177, "target": 0, "func": "const char * keydb_get_resource_name ( KEYDB_HANDLE hd ) {\n int idx ;\n const char * s = NULL ;\n if ( ! hd ) return NULL ;\n if ( hd -> found >= 0 && hd -> found < hd -> used ) idx = hd -> found ;\n else if ( hd -> current >= 0 && hd -> current < hd -> used ) idx = hd -> current ;\n else idx = 0 ;\n switch ( hd -> active [ idx ] . type ) {\n case KEYDB_RESOURCE_TYPE_NONE : s = NULL ;\n break ;\n case KEYDB_RESOURCE_TYPE_KEYRING : s = keyring_get_resource_name ( hd -> active [ idx ] . u . kr ) ;\n break ;\n case KEYDB_RESOURCE_TYPE_KEYBOX : s = keybox_get_resource_name ( hd -> active [ idx ] . u . kb ) ;\n break ;\n }\n return s ? s : \"\" ;\n }"}
{"idx": 16178, "target": 0, "func": "int gs_push_integer ( gs_main_instance * minst , long value ) {\n ref vref ;\n make_int ( & vref , value ) ;\n return push_value ( minst , & vref ) ;\n }"}
{"idx": 16179, "target": 0, "func": "static void client_store_result ( ) {\n MYSQL_RES * result ;\n int rc ;\n myheader ( \"client_store_result\" ) ;\n rc = mysql_query ( mysql , \"SELECT * FROM t1\" ) ;\n myquery ( rc ) ;\n result = mysql_store_result ( mysql ) ;\n mytest ( result ) ;\n ( void ) my_process_result_set ( result ) ;\n mysql_free_result ( result ) ;\n }"}
{"idx": 16180, "target": 0, "func": "static const char * qemuMonitorJSONCommandName ( virJSONValuePtr cmd ) {\n const char * name = virJSONValueObjectGetString ( cmd , \"execute\" ) ;\n if ( name ) return name ;\n else return \"<unknown>\" ;\n }"}
{"idx": 16181, "target": 0, "func": "int TSMimeHdrFieldsCount ( TSMBuffer bufp , TSMLoc obj ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( obj ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( obj ) == TS_SUCCESS ) ) ;\n MIMEHdrImpl * mh = _hdr_mloc_to_mime_hdr_impl ( obj ) ;\n return mime_hdr_fields_count ( mh ) ;\n }"}
{"idx": 16182, "target": 0, "func": "static int capture_android_logcat_text ( char * interface , char * fifo , const char * adb_server_ip , unsigned short * adb_server_tcp_port ) {\n struct extcap_dumper extcap_dumper ;\n static char packet [ PACKET_LENGTH ] ;\n gssize length ;\n size_t used_buffer_length = 0 ;\n socket_handle_t sock ;\n const char * protocol_name ;\n size_t exported_pdu_headers_size = 0 ;\n struct exported_pdu_header exported_pdu_header_protocol_normal ;\n struct exported_pdu_header * exported_pdu_header_protocol ;\n struct exported_pdu_header exported_pdu_header_end = {\n 0 , 0 }\n ;\n static const char * wireshark_protocol_logcat_text = \"logcat_text_threadtime\" ;\n const char * adb_transport = \"0012\" \"host:transport-any\" ;\n const char * adb_logcat_template = \"%04x\" \"shell:export ANDROID_LOG_TAGS=\\\"\\\" ;\n exec logcat -v threadtime%s%s\" ;\n const char * adb_transport_serial_templace = \"%04x\" \"host:transport:%s\" ;\n char * serial_number = NULL ;\n size_t serial_number_length = 0 ;\n int result ;\n char * pos ;\n const char * logcat_buffer ;\n extcap_dumper = extcap_dumper_open ( fifo , EXTCAP_ENCAP_WIRESHARK_UPPER_PDU ) ;\n exported_pdu_header_protocol_normal . tag = GUINT16_TO_BE ( WIRESHARK_UPPER_PDU_TAG_DISSECTOR_NAME ) ;\n exported_pdu_header_protocol_normal . length = GUINT16_TO_BE ( strlen ( wireshark_protocol_logcat_text ) + 2 ) ;\n sock = adb_connect ( adb_server_ip , adb_server_tcp_port ) ;\n if ( sock == INVALID_SOCKET ) return EXIT_CODE_INVALID_SOCKET_8 ;\n if ( is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_MAIN ) && strlen ( interface ) > strlen ( INTERFACE_ANDROID_LOGCAT_MAIN ) + 1 ) {\n serial_number = interface + strlen ( INTERFACE_ANDROID_LOGCAT_MAIN ) + 1 ;\n }\n else if ( is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_SYSTEM ) && strlen ( interface ) > strlen ( INTERFACE_ANDROID_LOGCAT_SYSTEM ) + 1 ) {\n serial_number = interface + strlen ( INTERFACE_ANDROID_LOGCAT_SYSTEM ) + 1 ;\n }\n else if ( is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_RADIO ) && strlen ( interface ) > strlen ( INTERFACE_ANDROID_LOGCAT_RADIO ) + 1 ) {\n serial_number = interface + strlen ( INTERFACE_ANDROID_LOGCAT_RADIO ) + 1 ;\n }\n else if ( is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_EVENTS ) && strlen ( interface ) > strlen ( INTERFACE_ANDROID_LOGCAT_EVENTS ) + 1 ) {\n serial_number = interface + strlen ( INTERFACE_ANDROID_LOGCAT_EVENTS ) + 1 ;\n }\n else if ( is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_TEXT_MAIN ) && strlen ( interface ) > strlen ( INTERFACE_ANDROID_LOGCAT_TEXT_MAIN ) + 1 ) {\n serial_number = interface + strlen ( INTERFACE_ANDROID_LOGCAT_TEXT_MAIN ) + 1 ;\n }\n else if ( is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_TEXT_SYSTEM ) && strlen ( interface ) > strlen ( INTERFACE_ANDROID_LOGCAT_TEXT_SYSTEM ) + 1 ) {\n serial_number = interface + strlen ( INTERFACE_ANDROID_LOGCAT_TEXT_SYSTEM ) + 1 ;\n }\n else if ( is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_TEXT_RADIO ) && strlen ( interface ) > strlen ( INTERFACE_ANDROID_LOGCAT_TEXT_RADIO ) + 1 ) {\n serial_number = interface + strlen ( INTERFACE_ANDROID_LOGCAT_TEXT_RADIO ) + 1 ;\n }\n else if ( is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_TEXT_EVENTS ) && strlen ( interface ) > strlen ( INTERFACE_ANDROID_LOGCAT_TEXT_EVENTS ) + 1 ) {\n serial_number = interface + strlen ( INTERFACE_ANDROID_LOGCAT_TEXT_EVENTS ) + 1 ;\n }\n else if ( is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_TEXT_CRASH ) && strlen ( interface ) > strlen ( INTERFACE_ANDROID_LOGCAT_TEXT_CRASH ) + 1 ) {\n serial_number = interface + strlen ( INTERFACE_ANDROID_LOGCAT_TEXT_CRASH ) + 1 ;\n }\n if ( ! serial_number ) {\n result = adb_send ( sock , adb_transport ) ;\n if ( result ) {\n errmsg_print ( \"ERROR: Error while setting adb transport for <%s>\" , adb_transport ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n }\n else {\n serial_number_length = strlen ( serial_number ) ;\n result = g_snprintf ( ( char * ) packet , PACKET_LENGTH , adb_transport_serial_templace , 15 + serial_number_length , serial_number ) ;\n if ( result <= 0 || result > PACKET_LENGTH ) {\n errmsg_print ( \"ERROR: Error while completing adb packet\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_BAD_SIZE_OF_ASSEMBLED_ADB_PACKET_16 ;\n }\n result = adb_send ( sock , packet ) ;\n if ( result ) {\n errmsg_print ( \"ERROR: Error while setting adb transport for <%s>\" , packet ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n }\n if ( is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_MAIN ) || is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_TEXT_MAIN ) ) logcat_buffer = \" -b main\" ;\n else if ( is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_SYSTEM ) || is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_TEXT_SYSTEM ) ) logcat_buffer = \" -b system\" ;\n else if ( is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_RADIO ) || is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_TEXT_RADIO ) ) logcat_buffer = \" -b radio\" ;\n else if ( is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_EVENTS ) || is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_TEXT_EVENTS ) ) logcat_buffer = \" -b events\" ;\n else if ( is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_TEXT_CRASH ) ) logcat_buffer = \" -b crash\" ;\n else {\n errmsg_print ( \"ERROR: Unknown interface: <%s>\" , interface ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n result = g_snprintf ( ( char * ) packet , PACKET_LENGTH , adb_logcat_template , strlen ( adb_logcat_template ) + - 8 + strlen ( logcat_buffer ) , logcat_buffer , \"\" ) ;\n if ( result <= 0 || result > PACKET_LENGTH ) {\n errmsg_print ( \"ERROR: Error while completing adb packet\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_BAD_SIZE_OF_ASSEMBLED_ADB_PACKET_17 ;\n }\n result = adb_send ( sock , packet ) ;\n if ( result ) {\n errmsg_print ( \"ERROR: Error while sending command <%s>\" , packet ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_ERROR_WHILE_SENDING_ADB_PACKET_3 ;\n }\n protocol_name = wireshark_protocol_logcat_text ;\n exported_pdu_header_protocol = & exported_pdu_header_protocol_normal ;\n memcpy ( packet , exported_pdu_header_protocol , sizeof ( struct exported_pdu_header ) ) ;\n exported_pdu_headers_size += sizeof ( struct exported_pdu_header ) ;\n memcpy ( packet + exported_pdu_headers_size , protocol_name , GUINT16_FROM_BE ( exported_pdu_header_protocol -> length ) - 2 ) ;\n exported_pdu_headers_size += GUINT16_FROM_BE ( exported_pdu_header_protocol -> length ) ;\n packet [ exported_pdu_headers_size - 1 ] = 0 ;\n packet [ exported_pdu_headers_size - 2 ] = 0 ;\n memcpy ( packet + exported_pdu_headers_size , & exported_pdu_header_end , sizeof ( struct exported_pdu_header ) ) ;\n exported_pdu_headers_size += sizeof ( struct exported_pdu_header ) + GUINT16_FROM_BE ( exported_pdu_header_end . length ) ;\n used_buffer_length = 0 ;\n while ( endless_loop ) {\n errno = 0 ;\n length = recv ( sock , packet + exported_pdu_headers_size + used_buffer_length , ( int ) ( PACKET_LENGTH - exported_pdu_headers_size - used_buffer_length ) , 0 ) ;\n if ( errno == EAGAIN # if EWOULDBLOCK != EAGAIN || errno == EWOULDBLOCK # endif ) {\n continue ;\n }\n else if ( errno != 0 ) {\n errmsg_print ( \"ERROR capture: %s\" , strerror ( errno ) ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n if ( length <= 0 ) {\n errmsg_print ( \"ERROR: Broken socket connection. Try reconnect.\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n used_buffer_length += length ;\n while ( used_buffer_length > 0 && ( pos = ( char * ) memchr ( packet + exported_pdu_headers_size , '\\n' , used_buffer_length ) ) ) {\n int ms ;\n struct tm date ;\n time_t seconds ;\n time_t secs = 0 ;\n int nsecs = 0 ;\n length = ( gssize ) ( pos - packet ) + 1 ;\n if ( 6 == sscanf ( packet + exported_pdu_headers_size , \"%d-%d %d:%d:%d.%d\" , & date . tm_mon , & date . tm_mday , & date . tm_hour , & date . tm_min , & date . tm_sec , & ms ) ) {\n date . tm_year = 70 ;\n date . tm_mon -= 1 ;\n seconds = mktime ( & date ) ;\n secs = ( time_t ) seconds ;\n nsecs = ( int ) ( ms * 1e6 ) ;\n }\n endless_loop = extcap_dumper_dump ( extcap_dumper , packet , length , length , secs , nsecs ) ;\n memmove ( packet + exported_pdu_headers_size , packet + length , used_buffer_length + exported_pdu_headers_size - length ) ;\n used_buffer_length -= length - exported_pdu_headers_size ;\n }\n }\n closesocket ( sock ) ;\n return EXIT_CODE_SUCCESS ;\n }"}
{"idx": 16183, "target": 0, "func": "TSReturnCode sdk_sanity_check_ssl_hook_id ( TSHttpHookID id ) {\n if ( id < TS_SSL_FIRST_HOOK || id > TS_SSL_LAST_HOOK ) {\n return TS_ERROR ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 16184, "target": 0, "func": "static void pdf_gsave ( fz_context * ctx , pdf_run_processor * pr ) {\n if ( pr -> gtop == pr -> gcap - 1 ) {\n pr -> gstate = fz_resize_array ( ctx , pr -> gstate , pr -> gcap * 2 , sizeof ( pdf_gstate ) ) ;\n pr -> gcap *= 2 ;\n }\n memcpy ( & pr -> gstate [ pr -> gtop + 1 ] , & pr -> gstate [ pr -> gtop ] , sizeof ( pdf_gstate ) ) ;\n pr -> gtop ++ ;\n pdf_keep_gstate ( ctx , & pr -> gstate [ pr -> gtop ] ) ;\n }"}
{"idx": 16185, "target": 0, "func": "int ff_xvmc_field_start ( MpegEncContext * s , AVCodecContext * avctx ) {\n struct xvmc_pix_fmt * last , * next , * render = ( struct xvmc_pix_fmt * ) s -> current_picture . f . data [ 2 ] ;\n const int mb_block_count = 4 + ( 1 << s -> chroma_format ) ;\n assert ( avctx ) ;\n if ( ! render || render -> xvmc_id != AV_XVMC_ID || ! render -> data_blocks || ! render -> mv_blocks || ( unsigned int ) render -> allocated_mv_blocks > INT_MAX / ( 64 * 6 ) || ( unsigned int ) render -> allocated_data_blocks > INT_MAX / 64 || ! render -> p_surface ) {\n av_log ( avctx , AV_LOG_ERROR , \"Render token doesn't look as expected.\\n\" ) ;\n return - 1 ;\n }\n if ( render -> filled_mv_blocks_num ) {\n av_log ( avctx , AV_LOG_ERROR , \"Rendering surface contains %i unprocessed blocks.\\n\" , render -> filled_mv_blocks_num ) ;\n return - 1 ;\n }\n if ( render -> allocated_mv_blocks < 1 || render -> allocated_data_blocks < render -> allocated_mv_blocks * mb_block_count || render -> start_mv_blocks_num >= render -> allocated_mv_blocks || render -> next_free_data_block_num > render -> allocated_data_blocks - mb_block_count * ( render -> allocated_mv_blocks - render -> start_mv_blocks_num ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Rendering surface doesn't provide enough block structures to work with.\\n\" ) ;\n return - 1 ;\n }\n render -> picture_structure = s -> picture_structure ;\n render -> flags = s -> first_field ? 0 : XVMC_SECOND_FIELD ;\n render -> p_future_surface = NULL ;\n render -> p_past_surface = NULL ;\n switch ( s -> pict_type ) {\n case AV_PICTURE_TYPE_I : return 0 ;\n case AV_PICTURE_TYPE_B : next = ( struct xvmc_pix_fmt * ) s -> next_picture . f . data [ 2 ] ;\n if ( ! next ) return - 1 ;\n if ( next -> xvmc_id != AV_XVMC_ID ) return - 1 ;\n render -> p_future_surface = next -> p_surface ;\n case AV_PICTURE_TYPE_P : last = ( struct xvmc_pix_fmt * ) s -> last_picture . f . data [ 2 ] ;\n if ( ! last ) last = render ;\n if ( last -> xvmc_id != AV_XVMC_ID ) return - 1 ;\n render -> p_past_surface = last -> p_surface ;\n return 0 ;\n }\n return - 1 ;\n }"}
{"idx": 16186, "target": 0, "func": "static gint dissect_seid ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , gint offset , gint seid_side , gint i_item , guint32 * sep_seid , guint32 interface_id , guint32 adapter_id , guint32 chandle , guint32 frame_number ) {\n guint32 seid ;\n proto_tree * seid_tree = NULL ;\n proto_item * seid_item = NULL ;\n guint32 direction ;\n seid = tvb_get_guint8 ( tvb , offset ) >> 2 ;\n if ( sep_seid ) {\n * sep_seid = seid ;\n }\n if ( seid_side == SEID_ACP ) {\n direction = pinfo -> p2p_dir ;\n seid_item = proto_tree_add_none_format ( tree , hf_btavdtp_acp_seid_item , tvb , offset , 1 , \"ACP SEID [%u - %s %s]\" , seid , get_sep_media_type ( interface_id , adapter_id , chandle , direction , seid , frame_number ) , get_sep_type ( interface_id , adapter_id , chandle , direction , seid , frame_number ) ) ;\n seid_tree = proto_item_add_subtree ( seid_item , ett_btavdtp_sep ) ;\n proto_tree_add_item ( seid_tree , hf_btavdtp_acp_seid , tvb , offset , 1 , ENC_NA ) ;\n if ( i_item > 0 ) proto_item_append_text ( seid_item , \" item %u\" , i_item ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" - ACP SEID [%u - %s %s]\" , seid , get_sep_media_type ( interface_id , adapter_id , chandle , direction , seid , frame_number ) , get_sep_type ( interface_id , adapter_id , chandle , direction , seid , frame_number ) ) ;\n }\n else {\n direction = ( pinfo -> p2p_dir == P2P_DIR_SENT ) ? P2P_DIR_RECV : P2P_DIR_SENT ;\n seid_item = proto_tree_add_none_format ( tree , hf_btavdtp_int_seid_item , tvb , offset , 1 , \"INT SEID [%u - %s %s]\" , seid , get_sep_media_type ( interface_id , adapter_id , chandle , direction , seid , frame_number ) , get_sep_type ( interface_id , adapter_id , chandle , direction , seid , frame_number ) ) ;\n seid_tree = proto_item_add_subtree ( seid_item , ett_btavdtp_sep ) ;\n proto_tree_add_item ( seid_tree , hf_btavdtp_int_seid , tvb , offset , 1 , ENC_NA ) ;\n if ( i_item > 0 ) proto_item_append_text ( seid_item , \" item %u\" , i_item ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" - INT SEID [%u - %s %s]\" , seid , get_sep_media_type ( interface_id , adapter_id , chandle , direction , seid , frame_number ) , get_sep_type ( interface_id , adapter_id , chandle , direction , seid , frame_number ) ) ;\n }\n proto_tree_add_item ( seid_tree , hf_btavdtp_rfa_seid , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n return offset ;\n }"}
{"idx": 16187, "target": 0, "func": "static void gx_ttfMemory__free ( ttfMemory * self , void * p , const char * cname ) {\n gs_memory_t * mem = ( ( gx_ttfMemory * ) self ) -> memory ;\n gs_free_object ( mem , p , cname ) ;\n }"}
{"idx": 16188, "target": 0, "func": "static int row_prop_exists ( zval * object , zval * member , int check_empty , const zend_literal * key TSRMLS_DC ) {\n pdo_stmt_t * stmt = ( pdo_stmt_t * ) zend_object_store_get_object ( object TSRMLS_CC ) ;\n int colno = - 1 ;\n if ( stmt ) {\n if ( Z_TYPE_P ( member ) == IS_LONG ) {\n return Z_LVAL_P ( member ) >= 0 && Z_LVAL_P ( member ) < stmt -> column_count ;\n }\n else {\n convert_to_string ( member ) ;\n for ( colno = 0 ;\n colno < stmt -> column_count ;\n colno ++ ) {\n if ( strcmp ( stmt -> columns [ colno ] . name , Z_STRVAL_P ( member ) ) == 0 ) {\n int res ;\n zval * val ;\n MAKE_STD_ZVAL ( val ) ;\n fetch_value ( stmt , val , colno , NULL TSRMLS_CC ) ;\n res = check_empty ? i_zend_is_true ( val ) : Z_TYPE_P ( val ) != IS_NULL ;\n zval_ptr_dtor ( & val ) ;\n return res ;\n }\n }\n }\n }\n return 0 ;\n }"}
{"idx": 16189, "target": 0, "func": "int virLogGetNbOutputs ( void ) {\n return virLogNbOutputs ;\n }"}
{"idx": 16190, "target": 0, "func": "void proto_register_gsm_a_common ( void ) {\n guint i ;\n guint last_offset ;\n static hf_register_info hf [ ] = {\n {\n & hf_gsm_a_common_elem_id , {\n \"Element ID\" , \"gsm_a.common.elem_id\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_common_elem_id_f0 , {\n \"Element ID\" , \"gsm_a.common.elem_id\" , FT_UINT8 , BASE_HEX , NULL , 0xF0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_l_ext , {\n \"ext\" , \"gsm_a.l_ext\" , FT_UINT8 , BASE_DEC , NULL , 0x80 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_tmsi , {\n \"TMSI/P-TMSI\" , \"gsm_a.tmsi\" , FT_UINT32 , BASE_HEX , 0 , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_imei , {\n \"IMEI\" , \"gsm_a.imei\" , FT_STRING , BASE_NONE , 0 , 0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_imeisv , {\n \"IMEISV\" , \"gsm_a.imeisv\" , FT_STRING , BASE_NONE , 0 , 0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_MSC_rev , {\n \"Revision Level\" , \"gsm_a.MSC_rev\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_msc_rev_vals ) , 0x60 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_ES_IND , {\n \"ES IND\" , \"gsm_a.ES_IND\" , FT_BOOLEAN , 8 , TFS ( & ES_IND_vals ) , 0x10 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_A5_1_algorithm_sup , {\n \"A5/1 algorithm supported\" , \"gsm_a.A5_1_algorithm_sup\" , FT_BOOLEAN , 8 , TFS ( & A5_1_algorithm_sup_vals ) , 0x08 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_RF_power_capability , {\n \"RF Power Capability\" , \"gsm_a.RF_power_capability\" , FT_UINT8 , BASE_DEC , VALS ( RF_power_capability_vals ) , 0x07 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_ps_sup_cap , {\n \"PS capability (pseudo-synchronization capability)\" , \"gsm_a.ps_sup_cap\" , FT_BOOLEAN , 8 , TFS ( & ps_sup_cap_vals ) , 0x40 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_SS_screening_indicator , {\n \"SS Screening Indicator\" , \"gsm_a.SS_screening_indicator\" , FT_UINT8 , BASE_DEC , VALS ( SS_screening_indicator_vals ) , 0x30 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_SM_capability , {\n \"SM capability (MT SMS pt to pt capability)\" , \"gsm_a.SM_cap\" , FT_BOOLEAN , 8 , TFS ( & SM_capability_vals ) , 0x08 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_VBS_notification_rec , {\n \"VBS notification reception\" , \"gsm_a.VBS_notification_rec\" , FT_BOOLEAN , 8 , TFS ( & VBS_notification_rec_vals ) , 0x04 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_VGCS_notification_rec , {\n \"VGCS notification reception\" , \"gsm_a.VGCS_notification_rec\" , FT_BOOLEAN , 8 , TFS ( & VGCS_notification_rec_vals ) , 0x02 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_FC_frequency_cap , {\n \"FC Frequency Capability\" , \"gsm_a.FC_frequency_cap\" , FT_BOOLEAN , 8 , TFS ( & FC_frequency_cap_vals ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_CM3 , {\n \"CM3\" , \"gsm_a.CM3\" , FT_BOOLEAN , 8 , TFS ( & CM3_vals ) , 0x80 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_LCS_VA_cap , {\n \"LCS VA capability (LCS value added location request notification capability)\" , \"gsm_a.LCS_VA_cap\" , FT_BOOLEAN , 8 , TFS ( & LCS_VA_cap_vals ) , 0x20 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_UCS2_treatment , {\n \"UCS2 treatment\" , \"gsm_a.UCS2_treatment\" , FT_BOOLEAN , 8 , TFS ( & UCS2_treatment_vals ) , 0x10 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_SoLSA , {\n \"SoLSA\" , \"gsm_a.SoLSA\" , FT_BOOLEAN , 8 , TFS ( & SoLSA_vals ) , 0x08 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_CMSP , {\n \"CMSP: CM Service Prompt\" , \"gsm_a.CMSP\" , FT_BOOLEAN , 8 , TFS ( & CMSP_vals ) , 0x04 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_A5_7_algorithm_sup , {\n \"A5/7 algorithm supported\" , \"gsm_a.A5_7_algorithm_sup\" , FT_BOOLEAN , BASE_NONE , TFS ( & A5_7_algorithm_sup_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_A5_6_algorithm_sup , {\n \"A5/6 algorithm supported\" , \"gsm_a.A5_6_algorithm_sup\" , FT_BOOLEAN , BASE_NONE , TFS ( & A5_6_algorithm_sup_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_A5_5_algorithm_sup , {\n \"A5/5 algorithm supported\" , \"gsm_a.A5_5_algorithm_sup\" , FT_BOOLEAN , BASE_NONE , TFS ( & A5_5_algorithm_sup_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_A5_4_algorithm_sup , {\n \"A5/4 algorithm supported\" , \"gsm_a.A5_4_algorithm_sup\" , FT_BOOLEAN , BASE_NONE , TFS ( & A5_4_algorithm_sup_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_A5_3_algorithm_sup , {\n \"A5/3 algorithm supported\" , \"gsm_a.A5_3_algorithm_sup\" , FT_BOOLEAN , 8 , TFS ( & A5_3_algorithm_sup_vals ) , 0x02 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_A5_2_algorithm_sup , {\n \"A5/2 algorithm supported\" , \"gsm_a.A5_2_algorithm_sup\" , FT_BOOLEAN , 8 , TFS ( & A5_2_algorithm_sup_vals ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_mobile_identity_type , {\n \"Mobile Identity Type\" , \"gsm_a.ie.mobileid.type\" , FT_UINT8 , BASE_DEC , VALS ( mobile_identity_type_vals ) , 0x07 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_id_dig_1 , {\n \"Identity Digit 1\" , \"gsm_a.id_dig_1\" , FT_UINT8 , BASE_DEC , NULL , 0xf0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_odd_even_ind , {\n \"Odd/even indication\" , \"gsm_a.oddevenind\" , FT_BOOLEAN , 8 , TFS ( & oddevenind_vals ) , 0x08 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_unused , {\n \"Unused\" , \"gsm_a.unused\" , FT_UINT8 , BASE_HEX , NULL , 0xf0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_tmgi_mcc_mnc_ind , {\n \"MCC/MNC indication\" , \"gsm_a.tmgi_mcc_mnc_ind\" , FT_BOOLEAN , 8 , TFS ( & gsm_a_present_vals ) , 0x10 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_mbs_ses_id_ind , {\n \"MBMS Session Identity indication\" , \"gsm_a.mbs_session_id_ind\" , FT_BOOLEAN , 8 , TFS ( & gsm_a_present_vals ) , 0x20 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_mbs_service_id , {\n \"MBMS Service ID\" , \"gsm_a.mbs_service_id\" , FT_UINT24 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_mbs_session_id , {\n \"MBMS Session ID\" , \"gsm_a.mbs_session_id\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_length , {\n \"Length\" , \"gsm_a.len\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_element_value , {\n \"Element Value\" , \"gsm_a.element_value\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_extension , {\n \"Extension\" , \"gsm_a.extension\" , FT_BOOLEAN , 8 , TFS ( & gsm_a_extension_value ) , 0x80 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_L3_protocol_discriminator , {\n \"Protocol discriminator\" , \"gsm_a.L3_protocol_discriminator\" , FT_UINT8 , BASE_HEX , VALS ( protocol_discriminator_vals ) , 0x0f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_call_prio , {\n \"Call priority\" , \"gsm_a.call_prio\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_call_prio_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_type_of_ciph_alg , {\n \"Call priority\" , \"gsm_a.call_prio\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_gm_type_of_ciph_alg_vals ) , 0x07 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_att , {\n \"ATT\" , \"gsm_a.att\" , FT_BOOLEAN , 8 , TFS ( & gsm_a_att_value ) , 0x01 , \"ttach-detach allowed\" , HFILL }\n }\n , {\n & hf_gsm_a_nmo_1 , {\n \"NMO I\" , \"gsm_a.nmo_1\" , FT_BOOLEAN , 8 , TFS ( & gsm_a_nmo_1_value ) , 0x02 , \"Network Mode of Operation I\" , HFILL }\n }\n , {\n & hf_gsm_a_nmo , {\n \"NMO\" , \"gsm_a.nmo\" , FT_BOOLEAN , 8 , TFS ( & gsm_a_nmo_value ) , 0x01 , \"Network Mode of Operation\" , HFILL }\n }\n , {\n & hf_gsm_a_old_xid , {\n \"Old XID\" , \"gsm_a.old_xid\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_pld_xid_vals ) , 0x10 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_iov_ui , {\n \"IOV-UI\" , \"gsm_a.iov_ui\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_ext_periodic_timers , {\n \"Extended periodic timers\" , \"gsm_a.ext_periodic_timers\" , FT_BOOLEAN , BASE_NONE , TFS ( & gsm_a_ext_periodic_timers_value ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_skip_ind , {\n \"Skip Indicator\" , \"gsm_a.skip.ind\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_skip_ind_vals ) , 0xf0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_b7spare , {\n \"Spare\" , \"gsm_a.spareb7\" , FT_UINT8 , BASE_DEC , NULL , 0x40 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_b8spare , {\n \"Spare\" , \"gsm_a.spareb8\" , FT_UINT8 , BASE_DEC , NULL , 0x80 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_spare_bits , {\n \"Spare bit(s)\" , \"gsm_a.spare_bits\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_multi_bnd_sup_fields , {\n \"Multiband supported field\" , \"gsm_a.multi_bnd_sup_fields\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_pgsm_supported , {\n \"P-GSM Supported\" , \"gsm_a.classmark3.pgsmSupported\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_egsm_supported , {\n \"E-GSM or R-GSM Supported\" , \"gsm_a.classmark3.egsmSupported\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_gsm1800_supported , {\n \"GSM 1800 Supported\" , \"gsm_a.classmark3.gsm1800Supported\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_ass_radio_cap1 , {\n \"Associated Radio Capability 1\" , \"gsm_a.classmark3.ass_radio_cap1\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_ass_radio_cap2 , {\n \"Associated Radio Capability 2\" , \"gsm_a.classmark3.ass_radio_cap2\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_cm3_A5_bits , {\n \"A5 bits\" , \"gsm_a.classmark3.a5_bits\" , FT_UINT8 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_rsupport , {\n \"R Support\" , \"gsm_a.classmark3.rsupport\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_r_capabilities , {\n \"R-GSM band Associated Radio Capability\" , \"gsm_a.classmark3.r_capabilities\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_multislot_capabilities , {\n \"HSCSD Multi Slot Capability\" , \"gsm_a.classmark3.multislot_capabilities\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_multislot_class , {\n \"HSCSD Multi Slot Class\" , \"gsm_a.classmark3.multislot_cap\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_ucs2_treatment , {\n \"UCS2 treatment\" , \"gsm_a.UCS2_treatment\" , FT_BOOLEAN , BASE_NONE , TFS ( & UCS2_treatment_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_extended_measurement_cap , {\n \"Extended Measurement Capability\" , \"gsm_a.classmark3.ext_meas_cap\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_ms_measurement_capability , {\n \"MS measurement capability\" , \"gsm_a.classmark3.ms_measurement_capability\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_sms_value , {\n \"SMS_VALUE (Switch-Measure-Switch)\" , \"gsm_a.classmark3.sms_value\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_sms_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_sm_value , {\n \"SM_VALUE (Switch-Measure)\" , \"gsm_a.classmark3.sm_value\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_sms_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_ms_pos_method_cap_present , {\n \"MS Positioning Method Capability present\" , \"gsm_a.classmark3.ms_pos_method_cap_present\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_ms_pos_method , {\n \"MS Positioning Method\" , \"gsm_a.classmark3.ms_pos_method\" , FT_UINT8 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_ms_assisted_e_otd , {\n \"MS assisted E-OTD\" , \"gsm_a.classmark3.ms_assisted_e_otd\" , FT_BOOLEAN , BASE_NONE , TFS ( & ms_assisted_e_otd_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_ms_based_e_otd , {\n \"MS based E-OTD\" , \"gsm_a.classmark3.ms_based_e_otd\" , FT_BOOLEAN , BASE_NONE , TFS ( & ms_based_e_otd_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_ms_assisted_gps , {\n \"MS assisted GPS\" , \"gsm_a.classmark3.ms_assisted_gps\" , FT_BOOLEAN , BASE_NONE , TFS ( & ms_assisted_gps_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_ms_based_gps , {\n \"MS based GPS\" , \"gsm_a.classmark3.ms_based_gps\" , FT_BOOLEAN , BASE_NONE , TFS ( & ms_based_gps_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_ms_conventional_gps , {\n \"MS Conventional GPS\" , \"gsm_a.classmark3.ms_conventional_gps\" , FT_BOOLEAN , BASE_NONE , TFS ( & ms_conventional_gps_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_ecsd_multi_slot_capability , {\n \"ECSD Multi Slot Capability present\" , \"gsm_a.classmark3.ecsd_multi_slot_capability\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_ecsd_multi_slot_class , {\n \"ECSD Multi Slot Class\" , \"gsm_a.classmark3.ecsd_multi_slot_class\" , FT_UINT8 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_8_psk_struct_present , {\n \"8-PSK Struct present\" , \"gsm_a.classmark3.8_psk_struct_present\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_8_psk_struct , {\n \"8-PSK Struct\" , \"gsm_a.classmark3.8_psk_struct\" , FT_UINT8 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_modulation_capability , {\n \"Modulation Capability\" , \"gsm_a.classmark3.modulation_capability\" , FT_BOOLEAN , BASE_NONE , TFS ( & modulation_capability_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_8_psk_rf_power_capability_1_present , {\n \"8-PSK RF Power Capability 1 present\" , \"gsm_a.classmark3.8_psk_rf_power_capability_1_present\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_8_psk_rf_power_capability_1 , {\n \"8-PSK RF Power Capability 1\" , \"gsm_a.classmark3.8_psk_rf_power_capability_1\" , FT_UINT8 , BASE_HEX , VALS ( eight_psk_rf_power_capability_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_8_psk_rf_power_capability_2_present , {\n \"8-PSK RF Power Capability 2 present\" , \"gsm_a.classmark3.8_psk_rf_power_capability_2_present\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_8_psk_rf_power_capability_2 , {\n \"8-PSK RF Power Capability 2\" , \"gsm_a.classmark3.8_psk_rf_power_capability_2\" , FT_UINT8 , BASE_HEX , VALS ( eight_psk_rf_power_capability_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_gsm_400_band_info_present , {\n \"GSM 400 Band Information present\" , \"gsm_a.classmark3.gsm_400_band_info_present\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_gsm_400_bands_supported , {\n \"GSM 400 Bands Supported\" , \"gsm_a.classmark3.gsm_400_bands_supported\" , FT_UINT8 , BASE_HEX , VALS ( gsm_400_bands_supported_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_gsm_400_assoc_radio_cap , {\n \"GSM 400 Associated Radio Capability\" , \"gsm_a.classmark3.gsm_400_assoc_radio_cap\" , FT_UINT8 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_gsm_850_assoc_radio_cap_present , {\n \"GSM 850 Associated Radio Capability present\" , \"gsm_a.classmark3.gsm_850_assoc_radio_cap_present\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_gsm_850_assoc_radio_cap , {\n \"GSM 850 Associated Radio Capability\" , \"gsm_a.classmark3.gsm_850_assoc_radio_cap\" , FT_UINT8 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_gsm_1900_assoc_radio_cap_present , {\n \"GSM 1900 Associated Radio Capability present\" , \"gsm_a.classmark3.gsm_1900_assoc_radio_cap_present\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_gsm_1900_assoc_radio_cap , {\n \"GSM 1900 Associated Radio Capability\" , \"gsm_a.classmark3.gsm_1900_assoc_radio_cap\" , FT_UINT8 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_umts_fdd_rat_cap , {\n \"UMTS FDD Radio Access Technology Capability\" , \"gsm_a.classmark3.umts_fdd_rat_cap\" , FT_BOOLEAN , BASE_NONE , TFS ( & umts_fdd_rat_cap_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_umts_384_mcps_tdd_rat_cap , {\n \"UMTS 3.84 Mcps TDD Radio Access Technology Capability\" , \"gsm_a.classmark3.umts_384_mcps_tdd_rat_cap\" , FT_BOOLEAN , BASE_NONE , TFS ( & umts_384_mcps_tdd_rat_cap_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_cdma_2000_rat_cap , {\n \"CDMA 2000 Radio Access Technology Capability\" , \"gsm_a.classmark3.cdma_2000_rat_cap\" , FT_BOOLEAN , BASE_NONE , TFS ( & cdma_2000_rat_cap_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtm_e_gprs_multi_slot_info_present , {\n \"DTM E/GPRS Multi Slot Information present\" , \"gsm_a.classmark3.dtm_e_gprs_multi_slot_info_present\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtm_gprs_multi_slot_class , {\n \"DTM GPRS Multi Slot Class\" , \"gsm_a.classmark3.dtm_gprs_multi_slot_class\" , FT_UINT8 , BASE_DEC , VALS ( dtm_gprs_multi_slot_class_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_single_slot_dtm , {\n \"Single Slot DTM\" , \"gsm_a.classmark3.single_slot_dtm_supported\" , FT_BOOLEAN , BASE_NONE , TFS ( & single_slot_dtm_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtm_egprs_multi_slot_class_present , {\n \"DTM EGPRS Multi Slot Class present\" , \"gsm_a.classmark3.dtm_egprs_multi_slot_class_present\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtm_egprs_multi_slot_class , {\n \"DTM EGPRS Multi Slot Class\" , \"gsm_a.classmark3.dtm_egprs_multi_slot_class\" , FT_UINT8 , BASE_DEC , VALS ( dtm_gprs_multi_slot_class_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_single_band_support , {\n \"Single Band Support\" , \"gsm_a.classmark3.single_band_support\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_gsm_band , {\n \"GSM Band\" , \"gsm_a.classmark3.gsm_band\" , FT_UINT8 , BASE_DEC , VALS ( gsm_band_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_gsm_750_assoc_radio_cap_present , {\n \"GSM 750 Associated Radio Capability present\" , \"gsm_a.classmark3.gsm_750_assoc_radio_cap_present\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_gsm_750_assoc_radio_cap , {\n \"GSM 750 Associated Radio Capability\" , \"gsm_a.classmark3.gsm_750_assoc_radio_cap\" , FT_UINT8 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_umts_128_mcps_tdd_rat_cap , {\n \"UMTS 1.28 Mcps TDD Radio Access Technology Capability\" , \"gsm_a.classmark3.umts_128_mcps_tdd_rat_cap\" , FT_BOOLEAN , BASE_NONE , TFS ( & umts_128_mcps_tdd_rat_cap_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_geran_feature_package_1 , {\n \"GERAN Feature Package 1\" , \"gsm_a.classmark3.geran_feature_package_1\" , FT_BOOLEAN , BASE_NONE , TFS ( & geran_feature_package_1_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_ext_dtm_e_gprs_multi_slot_info_present , {\n \"Extended DTM E/GPRS Multi Slot Information present\" , \"gsm_a.classmark3.ext_dtm_e_gprs_info_present\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_ext_dtm_gprs_multi_slot_class , {\n \"Extended DTM GPRS Multi Slot Class\" , \"gsm_a.classmark3.ext_dtm_gprs_multi_slot_class\" , FT_UINT8 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_ext_dtm_egprs_multi_slot_class , {\n \"Extended DTM EGPRS Multi Slot Class\" , \"gsm_a.classmark3.ext_dtm_egprs_multi_slot_class\" , FT_UINT8 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_high_multislot_cap_present , {\n \"High Multislot Capability present\" , \"gsm_a.classmark3.high_multislot_cap_present\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_high_multislot_cap , {\n \"High Multislot Capability\" , \"gsm_a.classmark3.high_multislot_cap\" , FT_UINT8 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_geran_iu_mode_support , {\n \"GERAN Iu Mode Support\" , \"gsm_a.classmark3.geran_iu_mode_support\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_geran_iu_mode_cap , {\n \"GERAN Iu Mode Capabilities\" , \"gsm_a.classmark3.geran_iu_mode_cap\" , FT_UINT24 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_geran_iu_mode_cap_length , {\n \"Length\" , \"gsm_a.classmark3.geran_iu_mode_cap.length\" , FT_UINT8 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_flo_iu_cap , {\n \"FLO Iu Capability\" , \"gsm_a.classmark3.geran_iu_mode_cap.flo_iu_cap\" , FT_BOOLEAN , BASE_NONE , TFS ( & flo_iu_cap_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_geran_feature_package_2 , {\n \"GERAN Feature Package 2\" , \"gsm_a.classmark3.geran_feature_package_2\" , FT_BOOLEAN , BASE_NONE , TFS ( & geran_feature_package_2_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_gmsk_multislot_power_prof , {\n \"GMSK Multislot Power Profile\" , \"gsm_a.classmark3.gmsk_multislot_power_prof\" , FT_UINT8 , BASE_DEC , VALS ( gmsk_multislot_power_prof_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_8_psk_multislot_power_prof , {\n \"8-PSK Multislot Power Profile\" , \"gsm_a.classmark3.8_psk_multislot_power_prof\" , FT_UINT8 , BASE_DEC , VALS ( eight_psk_multislot_power_prof_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_t_gsm_400_band_info_present , {\n \"T-GSM 400 Band Information present\" , \"gsm_a.classmark3.gsm_400_band_info_present\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_t_gsm_400_bands_supported , {\n \"T-GSM 400 Bands Supported\" , \"gsm_a.classmark3.t_gsm_400_bands_supported\" , FT_UINT8 , BASE_HEX , VALS ( t_gsm_400_bands_supported_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_t_gsm_400_assoc_radio_cap , {\n \"T-GSM 400 Associated Radio Capability\" , \"gsm_a.classmark3.t_gsm_400_assoc_radio_cap\" , FT_UINT8 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_t_gsm_900_assoc_radio_cap_present , {\n \"T-GSM 900 Associated Radio Capability present\" , \"gsm_a.classmark3.t_gsm_900_assoc_radio_cap_present\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_t_gsm_900_assoc_radio_cap , {\n \"T-GSM 900 Associated Radio Capability\" , \"gsm_a.classmark3.t_gsm_900_assoc_radio_cap\" , FT_UINT8 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_downlink_adv_receiver_perf , {\n \"Downlink Advanced Receiver Performance\" , \"gsm_a.classmark3.downlink_adv_receiver_perf\" , FT_UINT8 , BASE_DEC , VALS ( downlink_adv_receiver_perf_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtm_enhancements_cap , {\n \"DTM Enhancements Capability\" , \"gsm_a.classmark3.dtm_enhancements_capability\" , FT_BOOLEAN , BASE_NONE , TFS ( & dtm_enhancements_cap_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtm_e_gprs_high_multi_slot_info_present , {\n \"DTM E/GPRS High Multi Slot Information present\" , \"gsm_a.classmark3.dtm_e_gprs_high_mutli_slot_info_present\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtm_gprs_high_multi_slot_class , {\n \"DTM GPRS Multi Slot Class\" , \"gsm_a.classmark3.dtm_gprs_multi_slot_class\" , FT_UINT8 , BASE_DEC , VALS ( dtm_gprs_high_multi_slot_class_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_offset_required , {\n \"Offset required\" , \"gsm_a.classmark3.offset_required\" , FT_BOOLEAN , BASE_NONE , TFS ( & offset_required_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtm_egprs_high_multi_slot_class_present , {\n \"DTM EGPRS High Multi Slot Class present\" , \"gsm_a.classmark3.dtm_egprs_high_multi_slot_class_present\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_dtm_egprs_high_multi_slot_class , {\n \"DTM EGPRS High Multi Slot Class\" , \"gsm_a.classmark3.dtm_egprs_high_multi_slot_class\" , FT_UINT8 , BASE_DEC , VALS ( dtm_gprs_high_multi_slot_class_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_repeated_acch_cap , {\n \"Repeated ACCH Capability\" , \"gsm_a.classmark3.repeated_acch_cap\" , FT_BOOLEAN , BASE_NONE , TFS ( & repeated_acch_cap_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_gsm_710_assoc_radio_cap_present , {\n \"GSM 710 Associated Radio Capability present\" , \"gsm_a.classmark3.gsm_710_assoc_radio_cap_present\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_gsm_710_assoc_radio_cap , {\n \"GSM 710 Associated Radio Capability\" , \"gsm_a.classmark3.gsm_710_assoc_radio_cap\" , FT_UINT8 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_t_gsm_810_assoc_radio_cap_present , {\n \"T-GSM 810 Associated Radio Capability present\" , \"gsm_a.classmark3.t_gsm_810_assoc_radio_cap_present\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_t_gsm_810_assoc_radio_cap , {\n \"T-GSM 810 Associated Radio Capability\" , \"gsm_a.classmark3.t_gsm_810_assoc_radio_cap\" , FT_UINT8 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_ciphering_mode_setting_cap , {\n \"Ciphering Mode Setting Capability\" , \"gsm_a.classmark3.ciphering_mode_setting_cap\" , FT_BOOLEAN , BASE_NONE , TFS ( & ciphering_mode_setting_cap_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_additional_positioning_caps , {\n \"Additional Positioning Capabilities\" , \"gsm_a.classmark3.additional_positioning_caps\" , FT_BOOLEAN , BASE_NONE , TFS ( & additional_positioning_caps_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_e_utra_fdd_support , {\n \"E-UTRA FDD support\" , \"gsm_a.classmark3.e_utra_fdd_support\" , FT_BOOLEAN , BASE_NONE , TFS ( & e_utra_fdd_support_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_e_utra_tdd_support , {\n \"E-UTRA TDD support\" , \"gsm_a.classmark3.e_utra_tdd_support\" , FT_BOOLEAN , BASE_NONE , TFS ( & e_utra_tdd_support_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_e_utra_meas_and_report_support , {\n \"E-UTRA Measurement and Reporting support\" , \"gsm_a.classmark3.e_utra_meas_and_report_support\" , FT_BOOLEAN , BASE_NONE , TFS ( & e_utra_meas_and_report_support_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_prio_based_resel_support , {\n \"Priority-based reselection support\" , \"gsm_a.classmark3.prio_based_resel_support\" , FT_BOOLEAN , BASE_NONE , TFS ( & prio_based_resel_support_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_utra_csg_cells_reporting , {\n \"UTRA CSG Cells Reporting\" , \"gsm_a.classmark3.utra_csg_cells_reporting\" , FT_BOOLEAN , BASE_NONE , TFS ( & utra_csg_cells_reporting_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_vamos_level , {\n \"VAMOS Level\" , \"gsm_a.classmark3.vamos_level\" , FT_UINT8 , BASE_DEC , VALS ( vamos_level_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_tighter_cap , {\n \"TIGHTER Capability\" , \"gsm_a.classmark3.tighter_cap\" , FT_UINT8 , BASE_DEC , VALS ( tighter_cap_level_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_selective_ciph_down_sacch , {\n \"Selective Ciphering of Downlink SACCH\" , \"gsm_a.classmark3.selective_ciph_down_sacch\" , FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_cs_to_ps_srvcc_geran_to_utra , {\n \"CS to PS SRVCC from GERAN to UTRA\" , \"gsm_a.classmark3.cs_to_ps_srvcc_geran_to_utra\" , FT_UINT8 , BASE_DEC , VALS ( cs_to_ps_srvcc_geran_to_utra_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_cs_to_ps_srvcc_geran_to_eutra , {\n \"CS to PS SRVCC from GERAN to E-UTRA\" , \"gsm_a.classmark3.cs_to_ps_srvcc_geran_to_eutra\" , FT_UINT8 , BASE_DEC , VALS ( cs_to_ps_srvcc_geran_to_eutra_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_geran_network_sharing_support , {\n \"GERAN Network Sharing support\" , \"gsm_a.classmark3.geran_network_sharing_support\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_eutra_wb_rsrq_support , {\n \"E-UTRA Wideband RSRQ measurements support\" , \"gsm_a.classmark3.eutra_wb_rsrq_support\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_er_band_support , {\n \"ER Band support\" , \"gsm_a.classmark3.er_band_support\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_utra_mfbi_support , {\n \"UTRA Multiple Frequency Band Indicators support\" , \"gsm_a.classmark3.utra_mfbi_support\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_eutra_mfbi_support , {\n \"E-UTRA Multiple Frequency Band Indicators support\" , \"gsm_a.classmark3.eutra_mfbi_support\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_ext_tsc_set_cap_support , {\n \"Extended TSC Set Capability support\" , \"gsm_a.classmark3.ext_tsc_set_cap_support\" , FT_BOOLEAN , BASE_NONE , TFS ( & true_false_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_ext_earfcn_value_range , {\n \"Extended EARFCN value range\" , \"gsm_a.classmark3.ext_earfcn_value_range\" , FT_BOOLEAN , BASE_NONE , TFS ( & tfs_supported_not_supported ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_geo_loc_type_of_shape , {\n \"Location estimate\" , \"gsm_a.gad.location_estimate\" , FT_UINT8 , BASE_DEC , VALS ( type_of_shape_vals ) , 0xf0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_geo_loc_sign_of_lat , {\n \"Sign of latitude\" , \"gsm_a.gad.sign_of_latitude\" , FT_UINT8 , BASE_DEC , VALS ( sign_of_latitude_vals ) , 0x80 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_geo_loc_deg_of_lat , {\n \"Degrees of latitude\" , \"gsm_a.gad.deg_of_latitude\" , FT_UINT24 , BASE_DEC , NULL , 0x7fffff , NULL , HFILL }\n }\n , {\n & hf_gsm_a_geo_loc_deg_of_long , {\n \"Degrees of longitude\" , \"gsm_a.gad.deg_of_longitude\" , FT_INT24 , BASE_DEC , NULL , 0xffffff , NULL , HFILL }\n }\n , {\n & hf_gsm_a_geo_loc_uncertainty_code , {\n \"Uncertainty code\" , \"gsm_a.gad.uncertainty_code\" , FT_UINT8 , BASE_DEC , NULL , 0x7f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_geo_loc_uncertainty_semi_major , {\n \"Uncertainty semi-major\" , \"gsm_a.gad.uncertainty_semi_major\" , FT_UINT8 , BASE_DEC , NULL , 0x7f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_geo_loc_uncertainty_semi_minor , {\n \"Uncertainty semi-minor\" , \"gsm_a.gad.uncertainty_semi_minor\" , FT_UINT8 , BASE_DEC , NULL , 0x7f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_geo_loc_orientation_of_major_axis , {\n \"Orientation of major axis\" , \"gsm_a.gad.orientation_of_major_axis\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_geo_loc_uncertainty_altitude , {\n \"Uncertainty Altitude\" , \"gsm_a.gad.uncertainty_altitude\" , FT_UINT8 , BASE_DEC , NULL , 0x7f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_geo_loc_confidence , {\n \"Confidence(%)\" , \"gsm_a.gad.confidence\" , FT_UINT8 , BASE_DEC , NULL , 0x7f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_geo_loc_no_of_points , {\n \"Number of points\" , \"gsm_a.gad.no_of_points\" , FT_UINT8 , BASE_DEC , NULL , 0x0f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_velocity_type , {\n \"Number of points\" , \"gsm_a.gad.velocity_type\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_velocity_type_vals ) , 0xf0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_bearing , {\n \"Bearing\" , \"gsm_a.gad.bearing\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_horizontal_speed , {\n \"Horizontal Speed\" , \"gsm_a.gad.horizontal_velocity\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_vertical_speed , {\n \"Vertical Speed\" , \"gsm_a.gad.vertical_speed\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_uncertainty_speed , {\n \"Uncertainty Speed\" , \"gsm_a.gad.uncertainty_speed\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_h_uncertainty_speed , {\n \"Horizontal Uncertainty Speed\" , \"gsm_a.gad.v_uncertainty_speed\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_v_uncertainty_speed , {\n \"Vertical Uncertainty Speed\" , \"gsm_a.gad.h_uncertainty_speed\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_d , {\n \"Direction of Vertical Speed\" , \"gsm_a.gad.d\" , FT_BOOLEAN , 8 , TFS ( & gsm_a_dir_of_ver_speed_vals ) , 0x08 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_geo_loc_D , {\n \"D: Direction of Altitude\" , \"gsm_a.gad.D\" , FT_UINT16 , BASE_DEC , VALS ( dir_of_alt_vals ) , 0x8000 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_geo_loc_altitude , {\n \"Altitude in meters\" , \"gsm_a.gad.altitude\" , FT_UINT16 , BASE_DEC , NULL , 0x7fff , NULL , HFILL }\n }\n , {\n & hf_gsm_a_geo_loc_inner_radius , {\n \"Inner radius\" , \"gsm_a.gad.altitude\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_geo_loc_uncertainty_radius , {\n \"Uncertainty radius\" , \"gsm_a.gad.no_of_points\" , FT_UINT8 , BASE_DEC , NULL , 0x7f , NULL , HFILL }\n }\n , {\n & hf_gsm_a_geo_loc_offset_angle , {\n \"Offset angle\" , \"gsm_a.gad.offset_angle\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_geo_loc_included_angle , {\n \"Included angle\" , \"gsm_a.gad.included_angle\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_key_seq , {\n \"key sequence\" , \"gsm_a.key_seq\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_key_seq_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_lac , {\n \"Location Area Code (LAC)\" , \"gsm_a.lac\" , FT_UINT16 , BASE_HEX_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_spare_nibble , {\n \"Spare Nibble\" , \"gsm_a.spare\" , FT_UINT8 , BASE_DEC_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_filler , {\n \"Filler\" , \"gsm_a.filler\" , FT_UINT8 , BASE_HEX , NULL , 0xF0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_identity_digit1 , {\n \"Identity Digit 1\" , \"gsm_a.identity_digit1\" , FT_UINT8 , BASE_HEX , NULL , 0xF0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_group_call_reference , {\n \"Group or Broadcast call reference\" , \"gsm_a.group_call_reference\" , FT_UINT32 , BASE_DEC_HEX , NULL , 0xffffffe0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_service_flag , {\n \"SF Service Flag\" , \"gsm_a.service_flag\" , FT_BOOLEAN , 32 , TFS ( & tfs_vgcs_vbs ) , 0x00000010 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_af_acknowledgement , {\n \"AF Acknowledgement\" , \"gsm_a.af_acknowledgement\" , FT_BOOLEAN , 32 , TFS ( & tfs_required_not_required ) , 0x00000008 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_call_priority , {\n \"Call Priority\" , \"gsm_a.call_priority\" , FT_UINT32 , BASE_DEC , VALS ( gsm_a_call_priority_vals ) , 0x00000007 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_ciphering_info , {\n \"Ciphering Information\" , \"gsm_a.ciphering_info\" , FT_UINT8 , BASE_HEX , NULL , 0xf0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_sapi , {\n \"SAPI (Service Access Point Identifier)\" , \"gsm_a.sapi\" , FT_UINT8 , BASE_DEC , VALS ( gsm_a_sapi_vals ) , 0x30 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_mobile_country_code , {\n \"Mobile Country Code (MCC)\" , \"gsm_a.mobile_country_code\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_gsm_a_mobile_network_code , {\n \"Mobile Network Code (MNC)\" , \"gsm_a.mobile_network_code\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , }\n ;\n # define NUM_INDIVIDUAL_ELEMS 1 static gint * ett [ NUM_INDIVIDUAL_ELEMS + NUM_GSM_COMMON_ELEM ] ;\n static ei_register_info ei [ ] = {\n {\n & ei_gsm_a_extraneous_data , {\n \"gsm_a.extraneous_data\" , PI_PROTOCOL , PI_NOTE , \"Extraneous Data, dissector bug or later version spec(report to wireshark.org)\" , EXPFILL }\n }\n , {\n & ei_gsm_a_unknown_element , {\n \"gsm_a.unknown_element\" , PI_PROTOCOL , PI_ERROR , \"Unknown - aborting dissection\" , EXPFILL }\n }\n , {\n & ei_gsm_a_unknown_pdu_type , {\n \"gsm_a.unknown_pdu_type\" , PI_PROTOCOL , PI_WARN , \"Unknown PDU type\" , EXPFILL }\n }\n , {\n & ei_gsm_a_no_element_dissector , {\n \"gsm_a.no_element_dissector\" , PI_PROTOCOL , PI_WARN , \"No element dissector, rest of dissection may be incorrect\" , EXPFILL }\n }\n , {\n & ei_gsm_a_format_not_supported , {\n \"gsm_a.format_not_supported\" , PI_PROTOCOL , PI_WARN , \"Format not supported\" , EXPFILL }\n }\n , {\n & ei_gsm_a_mobile_identity_type , {\n \"gsm_a.ie.mobileid.type.unknown\" , PI_PROTOCOL , PI_WARN , \"Format unknown\" , EXPFILL }\n }\n , }\n ;\n expert_module_t * expert_a_common ;\n static tap_param gsm_a_stat_params [ ] = {\n {\n PARAM_FILTER , \"filter\" , \"Filter\" , NULL , TRUE }\n }\n ;\n static new_stat_tap_ui gsm_a_bssmap_stat_table = {\n REGISTER_STAT_GROUP_TELEPHONY_GSM , \"A-Interface BSSMAP\" , \"gsm_a\" , \"gsm_a,bssmap\" , gsm_a_bssmap_stat_init , gsm_a_bssmap_stat_packet , gsm_a_stat_reset , gsm_a_stat_free_table_item , NULL , sizeof ( gsm_a_stat_fields ) / sizeof ( stat_tap_table_item ) , gsm_a_stat_fields , sizeof ( gsm_a_stat_params ) / sizeof ( tap_param ) , gsm_a_stat_params , NULL }\n ;\n static new_stat_tap_ui gsm_a_dtap_mm_stat_table = {\n REGISTER_STAT_GROUP_TELEPHONY_GSM , \"A-Interface DTAP Mobility Management\" , \"gsm_a\" , \"gsm_a,dtap_mm\" , gsm_a_dtap_mm_stat_init , gsm_a_dtap_mm_stat_packet , gsm_a_stat_reset , NULL , NULL , sizeof ( gsm_a_stat_fields ) / sizeof ( stat_tap_table_item ) , gsm_a_stat_fields , sizeof ( gsm_a_stat_params ) / sizeof ( tap_param ) , gsm_a_stat_params , NULL }\n ;\n static new_stat_tap_ui gsm_a_dtap_rr_stat_table = {\n REGISTER_STAT_GROUP_TELEPHONY_GSM , \"A-Interface DTAP Radio Resource Management\" , \"gsm_a\" , \"gsm_a,dtap_rr\" , gsm_a_dtap_rr_stat_init , gsm_a_dtap_rr_stat_packet , gsm_a_stat_reset , NULL , NULL , sizeof ( gsm_a_stat_fields ) / sizeof ( stat_tap_table_item ) , gsm_a_stat_fields , sizeof ( gsm_a_stat_params ) / sizeof ( tap_param ) , gsm_a_stat_params , NULL }\n ;\n static new_stat_tap_ui gsm_a_dtap_cc_stat_table = {\n REGISTER_STAT_GROUP_TELEPHONY_GSM , \"A-Interface DTAP Call Control\" , \"gsm_a\" , \"gsm_a,dtap_cc\" , gsm_a_dtap_cc_stat_init , gsm_a_dtap_cc_stat_packet , gsm_a_stat_reset , NULL , NULL , sizeof ( gsm_a_stat_fields ) / sizeof ( stat_tap_table_item ) , gsm_a_stat_fields , sizeof ( gsm_a_stat_params ) / sizeof ( tap_param ) , gsm_a_stat_params , NULL }\n ;\n static new_stat_tap_ui gsm_a_dtap_gmm_stat_table = {\n REGISTER_STAT_GROUP_TELEPHONY_GSM , \"A-Interface DTAP GPRS Mobility Management\" , \"gsm_a\" , \"gsm_a,dtap_gmm\" , gsm_a_dtap_gmm_stat_init , gsm_a_dtap_gmm_stat_packet , gsm_a_stat_reset , NULL , NULL , sizeof ( gsm_a_stat_fields ) / sizeof ( stat_tap_table_item ) , gsm_a_stat_fields , sizeof ( gsm_a_stat_params ) / sizeof ( tap_param ) , gsm_a_stat_params , NULL }\n ;\n static new_stat_tap_ui gsm_a_dtap_sm_stat_table = {\n REGISTER_STAT_GROUP_TELEPHONY_GSM , \"A-Interface DTAP GPRS Session Management\" , \"gsm_a\" , \"gsm_a,dtap_sm\" , gsm_a_dtap_sm_stat_init , gsm_a_dtap_sm_stat_packet , gsm_a_stat_reset , NULL , NULL , sizeof ( gsm_a_stat_fields ) / sizeof ( stat_tap_table_item ) , gsm_a_stat_fields , sizeof ( gsm_a_stat_params ) / sizeof ( tap_param ) , gsm_a_stat_params , NULL }\n ;\n static new_stat_tap_ui gsm_a_dtap_sms_stat_table = {\n REGISTER_STAT_GROUP_TELEPHONY_GSM , \"A-Interface DTAP Short Message Service\" , \"gsm_a\" , \"gsm_a,dtap_sms\" , gsm_a_dtap_sms_stat_init , gsm_a_dtap_sms_stat_packet , gsm_a_stat_reset , NULL , NULL , sizeof ( gsm_a_stat_fields ) / sizeof ( stat_tap_table_item ) , gsm_a_stat_fields , sizeof ( gsm_a_stat_params ) / sizeof ( tap_param ) , gsm_a_stat_params , NULL }\n ;\n static new_stat_tap_ui gsm_a_dtap_tp_stat_table = {\n REGISTER_STAT_GROUP_TELEPHONY_GSM , \"A-Interface DTAP Special Conformance Testing Functions\" , \"gsm_a\" , \"gsm_a,dtap_tp\" , gsm_a_dtap_tp_stat_init , gsm_a_dtap_tp_stat_packet , gsm_a_stat_reset , NULL , NULL , sizeof ( gsm_a_stat_fields ) / sizeof ( stat_tap_table_item ) , gsm_a_stat_fields , sizeof ( gsm_a_stat_params ) / sizeof ( tap_param ) , gsm_a_stat_params , NULL }\n ;\n static new_stat_tap_ui gsm_a_dtap_ss_stat_table = {\n REGISTER_STAT_GROUP_TELEPHONY_GSM , \"A-Interface DTAP Supplementary Services\" , \"gsm_a\" , \"gsm_a,dtap_ss\" , gsm_a_dtap_ss_stat_init , gsm_a_dtap_ss_stat_packet , gsm_a_stat_reset , NULL , NULL , sizeof ( gsm_a_stat_fields ) / sizeof ( stat_tap_table_item ) , gsm_a_stat_fields , sizeof ( gsm_a_stat_params ) / sizeof ( tap_param ) , gsm_a_stat_params , NULL }\n ;\n static new_stat_tap_ui gsm_a_sacch_rr_stat_table = {\n REGISTER_STAT_GROUP_TELEPHONY_GSM , \"A-Interface SACCH\" , \"gsm_a\" , \"gsm_a,dtap_sacch\" , gsm_a_sacch_rr_stat_init , gsm_a_sacch_rr_stat_packet , gsm_a_stat_reset , NULL , NULL , sizeof ( gsm_a_stat_fields ) / sizeof ( stat_tap_table_item ) , gsm_a_stat_fields , sizeof ( gsm_a_stat_params ) / sizeof ( tap_param ) , gsm_a_stat_params , NULL }\n ;\n last_offset = NUM_INDIVIDUAL_ELEMS ;\n ett [ 0 ] = & ett_gsm_a_plmn ;\n for ( i = 0 ;\n i < NUM_GSM_COMMON_ELEM ;\n i ++ , last_offset ++ ) {\n ett_gsm_common_elem [ i ] = - 1 ;\n ett [ last_offset ] = & ett_gsm_common_elem [ i ] ;\n }\n proto_a_common = proto_register_protocol ( \"GSM A-I/F COMMON\" , \"GSM COMMON\" , \"gsm_a\" ) ;\n proto_register_field_array ( proto_a_common , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n expert_a_common = expert_register_protocol ( proto_a_common ) ;\n expert_register_field_array ( expert_a_common , ei , array_length ( ei ) ) ;\n gsm_a_tap = register_tap ( \"gsm_a\" ) ;\n register_new_stat_tap_ui ( & gsm_a_bssmap_stat_table ) ;\n register_new_stat_tap_ui ( & gsm_a_dtap_mm_stat_table ) ;\n register_new_stat_tap_ui ( & gsm_a_dtap_rr_stat_table ) ;\n register_new_stat_tap_ui ( & gsm_a_dtap_cc_stat_table ) ;\n register_new_stat_tap_ui ( & gsm_a_dtap_gmm_stat_table ) ;\n register_new_stat_tap_ui ( & gsm_a_dtap_sms_stat_table ) ;\n register_new_stat_tap_ui ( & gsm_a_dtap_sm_stat_table ) ;\n register_new_stat_tap_ui ( & gsm_a_dtap_ss_stat_table ) ;\n register_new_stat_tap_ui ( & gsm_a_dtap_tp_stat_table ) ;\n register_new_stat_tap_ui ( & gsm_a_sacch_rr_stat_table ) ;\n }"}
{"idx": 16191, "target": 0, "func": "static decoder_t * CreateDecoder ( vlc_object_t * p_parent , input_thread_t * p_input , es_format_t * fmt , bool b_packetizer , input_resource_t * p_resource , sout_instance_t * p_sout ) {\n decoder_t * p_dec ;\n decoder_owner_sys_t * p_owner ;\n es_format_t null_es_format ;\n p_dec = vlc_custom_create ( p_parent , sizeof ( * p_dec ) , \"decoder\" ) ;\n if ( p_dec == NULL ) return NULL ;\n p_dec -> pf_decode_audio = NULL ;\n p_dec -> pf_decode_video = NULL ;\n p_dec -> pf_decode_sub = NULL ;\n p_dec -> pf_get_cc = NULL ;\n p_dec -> pf_packetize = NULL ;\n p_dec -> p_module = NULL ;\n memset ( & null_es_format , 0 , sizeof ( es_format_t ) ) ;\n es_format_Copy ( & p_dec -> fmt_in , fmt ) ;\n es_format_Copy ( & p_dec -> fmt_out , & null_es_format ) ;\n p_dec -> p_description = NULL ;\n p_dec -> p_owner = p_owner = malloc ( sizeof ( decoder_owner_sys_t ) ) ;\n if ( unlikely ( p_owner == NULL ) ) {\n vlc_object_release ( p_dec ) ;\n return NULL ;\n }\n p_owner -> i_preroll_end = VLC_TS_INVALID ;\n p_owner -> i_last_rate = INPUT_RATE_DEFAULT ;\n p_owner -> p_input = p_input ;\n p_owner -> p_resource = p_resource ;\n p_owner -> p_aout = NULL ;\n p_owner -> p_vout = NULL ;\n p_owner -> p_spu_vout = NULL ;\n p_owner -> i_spu_channel = 0 ;\n p_owner -> i_spu_order = 0 ;\n p_owner -> p_sout = p_sout ;\n p_owner -> p_sout_input = NULL ;\n p_owner -> p_packetizer = NULL ;\n p_owner -> b_packetizer = b_packetizer ;\n p_owner -> p_fifo = block_FifoNew ( ) ;\n if ( unlikely ( p_owner -> p_fifo == NULL ) ) {\n free ( p_owner ) ;\n vlc_object_release ( p_dec ) ;\n return NULL ;\n }\n p_dec -> pf_aout_format_update = aout_update_format ;\n p_dec -> pf_vout_buffer_new = vout_new_buffer ;\n p_dec -> pf_vout_buffer_del = vout_del_buffer ;\n p_dec -> pf_picture_link = vout_link_picture ;\n p_dec -> pf_picture_unlink = vout_unlink_picture ;\n p_dec -> pf_spu_buffer_new = spu_new_buffer ;\n p_dec -> pf_spu_buffer_del = spu_del_buffer ;\n p_dec -> pf_get_attachments = DecoderGetInputAttachments ;\n p_dec -> pf_get_display_date = DecoderGetDisplayDate ;\n p_dec -> pf_get_display_rate = DecoderGetDisplayRate ;\n if ( ! b_packetizer ) p_dec -> p_module = module_need ( p_dec , \"decoder\" , \"$codec\" , false ) ;\n else p_dec -> p_module = module_need ( p_dec , \"packetizer\" , \"$packetizer\" , false ) ;\n if ( ! b_packetizer && p_dec -> b_need_packetized && ! p_dec -> fmt_in . b_packetized ) {\n p_owner -> p_packetizer = vlc_custom_create ( p_parent , sizeof ( decoder_t ) , \"packetizer\" ) ;\n if ( p_owner -> p_packetizer ) {\n es_format_Copy ( & p_owner -> p_packetizer -> fmt_in , & p_dec -> fmt_in ) ;\n es_format_Copy ( & p_owner -> p_packetizer -> fmt_out , & null_es_format ) ;\n p_owner -> p_packetizer -> p_module = module_need ( p_owner -> p_packetizer , \"packetizer\" , \"$packetizer\" , false ) ;\n if ( ! p_owner -> p_packetizer -> p_module ) {\n es_format_Clean ( & p_owner -> p_packetizer -> fmt_in ) ;\n vlc_object_release ( p_owner -> p_packetizer ) ;\n p_owner -> p_packetizer = NULL ;\n }\n }\n }\n if ( fmt -> i_cat == AUDIO_ES ) {\n for ( unsigned i = 0 ;\n i < AUDIO_REPLAY_GAIN_MAX ;\n i ++ ) {\n if ( ! p_dec -> fmt_out . audio_replay_gain . pb_peak [ i ] ) {\n p_dec -> fmt_out . audio_replay_gain . pb_peak [ i ] = fmt -> audio_replay_gain . pb_peak [ i ] ;\n p_dec -> fmt_out . audio_replay_gain . pf_peak [ i ] = fmt -> audio_replay_gain . pf_peak [ i ] ;\n }\n if ( ! p_dec -> fmt_out . audio_replay_gain . pb_gain [ i ] ) {\n p_dec -> fmt_out . audio_replay_gain . pb_gain [ i ] = fmt -> audio_replay_gain . pb_gain [ i ] ;\n p_dec -> fmt_out . audio_replay_gain . pf_gain [ i ] = fmt -> audio_replay_gain . pf_gain [ i ] ;\n }\n }\n }\n vlc_mutex_init ( & p_owner -> lock ) ;\n vlc_cond_init ( & p_owner -> wait_request ) ;\n vlc_cond_init ( & p_owner -> wait_acknowledge ) ;\n p_owner -> b_fmt_description = false ;\n es_format_Init ( & p_owner -> fmt_description , UNKNOWN_ES , 0 ) ;\n p_owner -> p_description = NULL ;\n p_owner -> b_exit = false ;\n p_owner -> b_paused = false ;\n p_owner -> pause . i_date = VLC_TS_INVALID ;\n p_owner -> pause . i_ignore = 0 ;\n p_owner -> b_waiting = false ;\n p_owner -> b_first = true ;\n p_owner -> b_has_data = false ;\n p_owner -> b_flushing = false ;\n p_owner -> cc . b_supported = false ;\n if ( ! b_packetizer ) {\n if ( p_owner -> p_packetizer && p_owner -> p_packetizer -> pf_get_cc ) p_owner -> cc . b_supported = true ;\n if ( p_dec -> pf_get_cc ) p_owner -> cc . b_supported = true ;\n }\n for ( unsigned i = 0 ;\n i < 4 ;\n i ++ ) {\n p_owner -> cc . pb_present [ i ] = false ;\n p_owner -> cc . pp_decoder [ i ] = NULL ;\n }\n p_owner -> i_ts_delay = 0 ;\n return p_dec ;\n }"}
{"idx": 16192, "target": 0, "func": "static void create_task_done ( GObject * source_object , GAsyncResult * res , gpointer user_data ) {\n CreateJob * job ;\n job = user_data ;\n if ( job -> done_callback ) {\n job -> done_callback ( job -> created_file , ! job_aborted ( ( CommonJob * ) job ) , job -> done_callback_data ) ;\n }\n g_object_unref ( job -> dest_dir ) ;\n if ( job -> src ) {\n g_object_unref ( job -> src ) ;\n }\n g_free ( job -> src_data ) ;\n g_free ( job -> filename ) ;\n if ( job -> created_file ) {\n g_object_unref ( job -> created_file ) ;\n }\n finalize_common ( ( CommonJob * ) job ) ;\n nautilus_file_changes_consume_changes ( TRUE ) ;\n }"}
{"idx": 16193, "target": 0, "func": "void proto_register_zbee_zcl_power_config ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_zbee_zcl_power_config_attr_id , {\n \"Attribute\" , \"zbee_zcl_general.power_config.attr_id\" , FT_UINT16 , BASE_HEX , VALS ( zbee_zcl_power_config_attr_names ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_power_config_batt_type , {\n \"Battery Type\" , \"zbee_zcl_general.power_config.attr.batt_type\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_power_config_batt_type_names ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_power_config_mains_alarm_mask , {\n \"Mains Alarm Mask\" , \"zbee_zcl_general.power_config.attr.mains_alarm_mask\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_power_config_mains_alarm_mask_low , {\n \"Mains Voltage too low\" , \"zbee_zcl_general.power_config.attr.mains_alarm_mask.mains_too_low\" , FT_UINT8 , BASE_DEC , NULL , ZBEE_ZCL_POWER_CONF_MAINS_ALARM_LOW , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_power_config_mains_alarm_mask_high , {\n \"Mains Voltage too high\" , \"zbee_zcl_general.power_config.attr.mains_alarm_mask.mains_too_high\" , FT_UINT8 , BASE_DEC , NULL , ZBEE_ZCL_POWER_CONF_MAINS_ALARM_HIGH , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_power_config_mains_alarm_mask_reserved , {\n \"Reserved\" , \"zbee_zcl_general.power_config.attr.mains_alarm_mask.reserved\" , FT_UINT8 , BASE_DEC , NULL , ZBEE_ZCL_POWER_CONF_MAINS_ALARM_RESERVED , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_power_config_batt_alarm_mask , {\n \"Battery Alarm Mask\" , \"zbee_zcl_general.power_config.attr.batt_alarm_mask\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_power_config_batt_alarm_mask_low , {\n \"Battery Voltage too low\" , \"zbee_zcl_general.power_config.batt_attr.alarm_mask.batt_too_low\" , FT_UINT8 , BASE_DEC , NULL , ZBEE_ZCL_POWER_CONF_BATTERY_ALARM_LOW , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_power_config_batt_alarm_mask_reserved , {\n \"Reserved\" , \"zbee_zcl_general.power_config.attr.batt_alarm_mask.reserved\" , FT_UINT8 , BASE_DEC , NULL , ZBEE_ZCL_POWER_CONF_BATTERY_ALARM_RESERVED , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_power_config_mains_voltage , {\n \"Measured Mains Voltage\" , \"zbee_zcl_general.power_config.attr.mains_voltage\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_power_conf_voltage ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_power_config_mains_frequency , {\n \"Measured Mains Frequency\" , \"zbee_zcl_general.power_config.attr.mains_frequency\" , FT_UINT8 , BASE_CUSTOM , CF_FUNC ( decode_power_conf_frequency ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_power_config_mains_voltage_min_thr , {\n \"Mains Voltage Minimum Threshold\" , \"zbee_zcl_general.power_config.attr.mains_volt_min\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_power_conf_voltage ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_power_config_mains_voltage_max_thr , {\n \"Mains Voltage Maximum Threshold\" , \"zbee_zcl_general.power_config.attr.mains_volt_max\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_power_conf_voltage ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_power_config_batt_voltage , {\n \"Measured Battey Voltage\" , \"zbee_zcl_general.power_config.attr.batt_voltage\" , FT_UINT8 , BASE_CUSTOM , CF_FUNC ( decode_power_conf_voltage ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_power_config_batt_ah_rating , {\n \"Battery Capacity\" , \"zbee_zcl_general.power_config.attr.batt_AHr\" , FT_UINT16 , BASE_CUSTOM , CF_FUNC ( decode_power_conf_batt_AHr ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_power_config_batt_rated_voltage , {\n \"Battery Rated Voltage\" , \"zbee_zcl_general.power_config.attr.batt_rated_voltage\" , FT_UINT8 , BASE_CUSTOM , CF_FUNC ( decode_power_conf_voltage ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_power_config_batt_voltage_min_thr , {\n \"Battery Voltage Minimum Threshold\" , \"zbee_zcl_general.power_config.attr.batt_voltage_min_thr\" , FT_UINT8 , BASE_CUSTOM , CF_FUNC ( decode_power_conf_voltage ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_power_config_mains_voltage_dwell_tp , {\n \"Mains Voltage Dwell Trip Point\" , \"zbee_zcl_general.power_config.attr.mains_dwell_tp\" , FT_UINT16 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , }\n ;\n static gint * ett [ ] = {\n & ett_zbee_zcl_power_config , & ett_zbee_zcl_power_config_mains_alarm_mask , & ett_zbee_zcl_power_config_batt_alarm_mask }\n ;\n proto_zbee_zcl_power_config = proto_register_protocol ( \"ZigBee ZCL Power Configuration\" , \"ZCL Power Configuration\" , ZBEE_PROTOABBREV_ZCL_POWER_CONFIG ) ;\n proto_register_field_array ( proto_zbee_zcl_power_config , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n register_dissector ( ZBEE_PROTOABBREV_ZCL_POWER_CONFIG , dissect_zbee_zcl_power_config , proto_zbee_zcl_power_config ) ;\n }"}
{"idx": 16194, "target": 1, "func": "TEST_F ( WebUsbDetectorTest , TwoUsbDevicesWereThereBeforeAndThenRemovedAndNewUsbDeviceAdded ) {\n base : : string16 product_name_1 = base : : UTF8ToUTF16 ( kProductName_1 ) ;\n GURL landing_page_1 ( kLandingPage_1 ) ;\n scoped_refptr < device : : MockUsbDevice > device_1 ( new device : : MockUsbDevice ( 0 , 1 , \"Google\" , kProductName_1 , \"002\" , landing_page_1 ) ) ;\n std : : string guid_1 = device_1 -> guid ( ) ;\n base : : string16 product_name_2 = base : : UTF8ToUTF16 ( kProductName_2 ) ;\n GURL landing_page_2 ( kLandingPage_2 ) ;\n scoped_refptr < device : : MockUsbDevice > device_2 ( new device : : MockUsbDevice ( 3 , 4 , \"Google\" , kProductName_2 , \"005\" , landing_page_2 ) ) ;\n std : : string guid_2 = device_2 -> guid ( ) ;\n base : : string16 product_name_3 = base : : UTF8ToUTF16 ( kProductName_3 ) ;\n GURL landing_page_3 ( kLandingPage_3 ) ;\n scoped_refptr < device : : MockUsbDevice > device_3 ( new device : : MockUsbDevice ( 6 , 7 , \"Google\" , kProductName_3 , \"008\" , landing_page_3 ) ) ;\n std : : string guid_3 = device_3 -> guid ( ) ;\n device_client_ . usb_service ( ) -> AddDevice ( device_1 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_1 ) == nullptr ) ;\n device_client_ . usb_service ( ) -> AddDevice ( device_3 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_3 ) == nullptr ) ;\n Initialize ( ) ;\n device_client_ . usb_service ( ) -> RemoveDevice ( device_1 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_1 ) == nullptr ) ;\n device_client_ . usb_service ( ) -> AddDevice ( device_2 ) ;\n message_center : : Notification * notification = message_center_ -> FindVisibleNotificationById ( guid_2 ) ;\n ASSERT_TRUE ( notification != nullptr ) ;\n base : : string16 expected_title = base : : ASCIIToUTF16 ( \"Google Product B detected\" ) ;\n EXPECT_EQ ( expected_title , notification -> title ( ) ) ;\n base : : string16 expected_message = base : : ASCIIToUTF16 ( \"Go to www.google.com/B to connect.\" ) ;\n EXPECT_EQ ( expected_message , notification -> message ( ) ) ;\n EXPECT_TRUE ( notification -> delegate ( ) != nullptr ) ;\n device_client_ . usb_service ( ) -> RemoveDevice ( device_3 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_3 ) == nullptr ) ;\n device_client_ . usb_service ( ) -> RemoveDevice ( device_2 ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_2 ) == nullptr ) ;\n }"}
{"idx": 16195, "target": 1, "func": "static void dist_block ( int plane , int block , TX_SIZE tx_size , struct rdcost_block_args * args ) {\n const int ss_txfrm_size = tx_size << 1 ;\n MACROBLOCK * const x = args -> x ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n const struct macroblock_plane * const p = & x -> plane [ plane ] ;\n const struct macroblockd_plane * const pd = & xd -> plane [ plane ] ;\n int64_t this_sse ;\n int shift = tx_size == TX_32X32 ? 0 : 2 ;\n int16_t * const coeff = BLOCK_OFFSET ( p -> coeff , block ) ;\n int16_t * const dqcoeff = BLOCK_OFFSET ( pd -> dqcoeff , block ) ;\n args -> dist = vp9_block_error ( coeff , dqcoeff , 16 << ss_txfrm_size , & this_sse ) >> shift ;\n args -> sse = this_sse >> shift ;\n if ( x -> skip_encode && ! is_inter_block ( & xd -> mi [ 0 ] -> mbmi ) ) {\n int64_t p = ( pd -> dequant [ 1 ] * pd -> dequant [ 1 ] * ( 1 << ss_txfrm_size ) ) >> ( shift + 2 ) ;\n args -> dist += ( p >> 4 ) ;\n args -> sse += p ;\n }\n }"}
{"idx": 16196, "target": 1, "func": "int mbfl_oddlen ( mbfl_string * string ) {\n int len , n , m , k ;\n unsigned char * p ;\n const unsigned char * mbtab ;\n const mbfl_encoding * encoding ;\n if ( string == NULL ) {\n return - 1 ;\n }\n encoding = mbfl_no2encoding ( string -> no_encoding ) ;\n if ( encoding == NULL ) {\n return - 1 ;\n }\n len = 0 ;\n if ( encoding -> flag & MBFL_ENCTYPE_SBCS ) {\n return 0 ;\n }\n else if ( encoding -> flag & ( MBFL_ENCTYPE_WCS2BE | MBFL_ENCTYPE_WCS2LE ) ) {\n return len % 2 ;\n }\n else if ( encoding -> flag & ( MBFL_ENCTYPE_WCS4BE | MBFL_ENCTYPE_WCS4LE ) ) {\n return len % 4 ;\n }\n else if ( encoding -> mblen_table != NULL ) {\n mbtab = encoding -> mblen_table ;\n n = 0 ;\n p = string -> val ;\n k = string -> len ;\n if ( p != NULL ) {\n while ( n < k ) {\n m = mbtab [ * p ] ;\n n += m ;\n p += m ;\n }\n ;\n }\n return n - k ;\n }\n else {\n return 0 ;\n }\n }"}
{"idx": 16197, "target": 0, "func": "static int dissect_h245_T_terminalIDResponse ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_terminalIDResponse , T_terminalIDResponse_sequence ) ;\n return offset ;\n }"}
{"idx": 16198, "target": 0, "func": "static int dissect_h245_SET_SIZE_1_65535_OF_DialingInformationNumber ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_set_of ( tvb , offset , actx , tree , hf_index , ett_h245_SET_SIZE_1_65535_OF_DialingInformationNumber , SET_SIZE_1_65535_OF_DialingInformationNumber_set_of , 1 , 65535 , FALSE ) ;\n return offset ;\n }"}
{"idx": 16199, "target": 1, "func": "static int vp3_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n Vp3DecodeContext * s = avctx -> priv_data ;\n GetBitContext gb ;\n int i ;\n init_get_bits ( & gb , buf , buf_size * 8 ) ;\n if ( s -> theora && get_bits1 ( & gb ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Header packet passed to frame decoder, skipping\\n\" ) ;\n return - 1 ;\n }\n s -> keyframe = ! get_bits1 ( & gb ) ;\n if ( ! s -> theora ) skip_bits ( & gb , 1 ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) s -> last_qps [ i ] = s -> qps [ i ] ;\n s -> nqps = 0 ;\n do {\n s -> qps [ s -> nqps ++ ] = get_bits ( & gb , 6 ) ;\n }\n while ( s -> theora >= 0x030200 && s -> nqps < 3 && get_bits1 ( & gb ) ) ;\n for ( i = s -> nqps ;\n i < 3 ;\n i ++ ) s -> qps [ i ] = - 1 ;\n if ( s -> avctx -> debug & FF_DEBUG_PICT_INFO ) av_log ( s -> avctx , AV_LOG_INFO , \" VP3 %sframe #%d: Q index = %d\\n\" , s -> keyframe ? \"key\" : \"\" , avctx -> frame_number + 1 , s -> qps [ 0 ] ) ;\n s -> skip_loop_filter = ! s -> filter_limit_values [ s -> qps [ 0 ] ] || avctx -> skip_loop_filter >= ( s -> keyframe ? AVDISCARD_ALL : AVDISCARD_NONKEY ) ;\n if ( s -> qps [ 0 ] != s -> last_qps [ 0 ] ) init_loop_filter ( s ) ;\n for ( i = 0 ;\n i < s -> nqps ;\n i ++ ) if ( s -> qps [ i ] != s -> last_qps [ i ] || s -> qps [ 0 ] != s -> last_qps [ 0 ] ) init_dequantizer ( s , i ) ;\n if ( avctx -> skip_frame >= AVDISCARD_NONKEY && ! s -> keyframe ) return buf_size ;\n s -> current_frame . reference = 3 ;\n s -> current_frame . pict_type = s -> keyframe ? AV_PICTURE_TYPE_I : AV_PICTURE_TYPE_P ;\n if ( ff_thread_get_buffer ( avctx , & s -> current_frame ) < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n goto error ;\n }\n if ( ! s -> edge_emu_buffer ) s -> edge_emu_buffer = av_malloc ( 9 * FFABS ( s -> current_frame . linesize [ 0 ] ) ) ;\n if ( s -> keyframe ) {\n if ( ! s -> theora ) {\n skip_bits ( & gb , 4 ) ;\n skip_bits ( & gb , 4 ) ;\n if ( s -> version ) {\n s -> version = get_bits ( & gb , 5 ) ;\n if ( avctx -> frame_number == 0 ) av_log ( s -> avctx , AV_LOG_DEBUG , \"VP version: %d\\n\" , s -> version ) ;\n }\n }\n if ( s -> version || s -> theora ) {\n if ( get_bits1 ( & gb ) ) av_log ( s -> avctx , AV_LOG_ERROR , \"Warning, unsupported keyframe coding type?!\\n\" ) ;\n skip_bits ( & gb , 2 ) ;\n }\n }\n else {\n if ( ! s -> golden_frame . data [ 0 ] ) {\n av_log ( s -> avctx , AV_LOG_WARNING , \"vp3: first frame not a keyframe\\n\" ) ;\n s -> golden_frame . reference = 3 ;\n s -> golden_frame . pict_type = AV_PICTURE_TYPE_I ;\n if ( ff_thread_get_buffer ( avctx , & s -> golden_frame ) < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n goto error ;\n }\n s -> last_frame = s -> golden_frame ;\n s -> last_frame . type = FF_BUFFER_TYPE_COPY ;\n ff_thread_report_progress ( & s -> last_frame , INT_MAX , 0 ) ;\n }\n }\n memset ( s -> all_fragments , 0 , s -> fragment_count * sizeof ( Vp3Fragment ) ) ;\n ff_thread_finish_setup ( avctx ) ;\n if ( unpack_superblocks ( s , & gb ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"error in unpack_superblocks\\n\" ) ;\n goto error ;\n }\n if ( unpack_modes ( s , & gb ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"error in unpack_modes\\n\" ) ;\n goto error ;\n }\n if ( unpack_vectors ( s , & gb ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"error in unpack_vectors\\n\" ) ;\n goto error ;\n }\n if ( unpack_block_qpis ( s , & gb ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"error in unpack_block_qpis\\n\" ) ;\n goto error ;\n }\n if ( unpack_dct_coeffs ( s , & gb ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"error in unpack_dct_coeffs\\n\" ) ;\n goto error ;\n }\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n int height = s -> height >> ( i && s -> chroma_y_shift ) ;\n if ( s -> flipped_image ) s -> data_offset [ i ] = 0 ;\n else s -> data_offset [ i ] = ( height - 1 ) * s -> current_frame . linesize [ i ] ;\n }\n s -> last_slice_end = 0 ;\n for ( i = 0 ;\n i < s -> c_superblock_height ;\n i ++ ) render_slice ( s , i ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n int row = ( s -> height >> ( 3 + ( i && s -> chroma_y_shift ) ) ) - 1 ;\n apply_loop_filter ( s , i , row , row + 1 ) ;\n }\n vp3_draw_horiz_band ( s , s -> avctx -> height ) ;\n * got_frame = 1 ;\n * ( AVFrame * ) data = s -> current_frame ;\n if ( ! HAVE_THREADS || ! ( s -> avctx -> active_thread_type & FF_THREAD_FRAME ) ) update_frames ( avctx ) ;\n return buf_size ;\n error : ff_thread_report_progress ( & s -> current_frame , INT_MAX , 0 ) ;\n if ( ! HAVE_THREADS || ! ( s -> avctx -> active_thread_type & FF_THREAD_FRAME ) ) avctx -> release_buffer ( avctx , & s -> current_frame ) ;\n return - 1 ;\n }"}
{"idx": 16200, "target": 0, "func": "void print_version ( void ) {\n printf ( \"%s Ver %s Distrib %s, for %s (%s)\\n\" , my_progname , MTEST_VERSION , MYSQL_SERVER_VERSION , SYSTEM_TYPE , MACHINE_TYPE ) ;\n }"}
{"idx": 16201, "target": 0, "func": "static int SpoolssEndDocPrinter_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 16202, "target": 0, "func": "static void afx_init ( hwaddr addr ) {\n DeviceState * dev ;\n SysBusDevice * s ;\n dev = qdev_create ( NULL , \"tcx_afx\" ) ;\n qdev_init_nofail ( dev ) ;\n s = SYS_BUS_DEVICE ( dev ) ;\n sysbus_mmio_map ( s , 0 , addr ) ;\n }"}
{"idx": 16203, "target": 0, "func": "static void curses_connection_help ( void * dummy ) {\n ( void ) dummy ;\n char help [ ] = \"HELP: shortcut list:\\n\\n\" \" ENTER - open the data panel in real time\\n\" \" d - show details of the current connection\\n\" \" k - kill the connection\\n\" \" x - purge the connection list\" ;\n curses_message ( help ) ;\n }"}
{"idx": 16204, "target": 1, "func": "static char * unescape_word ( struct Curl_easy * data , const char * inputbuff ) {\n char * newp ;\n char * dictp ;\n char * ptr ;\n int len ;\n char ch ;\n int olen = 0 ;\n newp = curl_easy_unescape ( data , inputbuff , 0 , & len ) ;\n if ( ! newp ) return NULL ;\n dictp = malloc ( ( ( size_t ) len ) * 2 + 1 ) ;\n if ( dictp ) {\n for ( ptr = newp ;\n ( ch = * ptr ) != 0 ;\n ptr ++ ) {\n if ( ( ch <= 32 ) || ( ch == 127 ) || ( ch == '\\'' ) || ( ch == '\\\"' ) || ( ch == '\\\\' ) ) {\n dictp [ olen ++ ] = '\\\\' ;\n }\n dictp [ olen ++ ] = ch ;\n }\n dictp [ olen ] = 0 ;\n }\n free ( newp ) ;\n return dictp ;\n }"}
{"idx": 16205, "target": 0, "func": "static bool contain_volatile_functions_not_nextval_walker ( Node * node , void * context ) {\n if ( node == NULL ) return false ;\n if ( check_functions_in_node ( node , contain_volatile_functions_not_nextval_checker , context ) ) return true ;\n if ( IsA ( node , Query ) ) {\n return query_tree_walker ( ( Query * ) node , contain_volatile_functions_not_nextval_walker , context , 0 ) ;\n }\n return expression_tree_walker ( node , contain_volatile_functions_not_nextval_walker , context ) ;\n }"}
{"idx": 16206, "target": 0, "func": "static inline Quantum GetPixelChannel ( const Image * restrict image , const PixelChannel channel , const Quantum * restrict pixel ) {\n if ( image -> channel_map [ channel ] . traits == UndefinedPixelTrait ) return ( ( Quantum ) 0 ) ;\n return ( pixel [ image -> channel_map [ channel ] . offset ] ) ;\n }"}
{"idx": 16207, "target": 0, "func": "int flush_blocks ( MI_CHECK * param , KEY_CACHE * key_cache , File file ) {\n if ( flush_key_blocks ( key_cache , file , FLUSH_RELEASE ) ) {\n mi_check_print_error ( param , \"%d when trying to write bufferts\" , my_errno ) ;\n return ( 1 ) ;\n }\n if ( ! param -> using_global_keycache ) end_key_cache ( key_cache , 1 ) ;\n return 0 ;\n }"}
{"idx": 16208, "target": 0, "func": "static splay_app_result_t free_all_allocator ( clump_t * cp , void * arg ) {\n struct free_data * fd = ( struct free_data * ) arg ;\n if ( cp -> cbase + sizeof ( obj_header_t ) != ( byte * ) fd -> imem ) return SPLAY_APP_CONTINUE ;\n fd -> allocator = cp ;\n alloc_free_clump ( cp , fd -> imem ) ;\n return SPLAY_APP_STOP ;\n }"}
{"idx": 16209, "target": 0, "func": "gcry_mpi_t gcry_sexp_nth_mpi ( gcry_sexp_t list , int number , int mpifmt ) {\n const char * s ;\n size_t n ;\n gcry_mpi_t a ;\n if ( ! mpifmt ) mpifmt = GCRYMPI_FMT_STD ;\n s = sexp_nth_data ( list , number , & n ) ;\n if ( ! s ) return NULL ;\n if ( gcry_mpi_scan ( & a , mpifmt , s , n , NULL ) ) return NULL ;\n return a ;\n }"}
{"idx": 16210, "target": 0, "func": "static const char * cmd_gsb_lookup_db ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n const char * filename = resolve_relative_path ( cmd -> pool , cmd -> directive -> filename , p1 ) ;\n char * error_msg ;\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n if ( dcfg == NULL ) return NULL ;\n if ( gsb_db_init ( dcfg , filename , & error_msg ) <= 0 ) {\n return error_msg ;\n }\n return NULL ;\n }"}
{"idx": 16211, "target": 0, "func": "TEST_F ( NativeBackendLibsecretTest , PSLUpdatingStrictUpdateLogin ) {\n CheckPSLUpdate ( UPDATE_BY_UPDATELOGIN ) ;\n }"}
{"idx": 16212, "target": 1, "func": "static int dissect_h225_Progress_UUIE ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 412 \"./asn1/h225/h225.cnf\" h225_packet_info * h225_pi ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_Progress_UUIE , Progress_UUIE_sequence ) ;\n # line 416 \"./asn1/h225/h225.cnf\" h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> cs_type = H225_PROGRESS ;\n if ( contains_faststart == TRUE ) g_snprintf ( h225_pi -> frame_label , 50 , \"%s OLC (%s)\" , val_to_str ( h225_pi -> cs_type , T_h323_message_body_vals , \"<unknown>\" ) , h225_pi -> frame_label ) ;\n else g_snprintf ( h225_pi -> frame_label , 50 , \"%s\" , val_to_str ( h225_pi -> cs_type , T_h323_message_body_vals , \"<unknown>\" ) ) ;\n }\n return offset ;\n }"}
{"idx": 16213, "target": 0, "func": "int av_image_fill_linesizes ( int linesizes [ 4 ] , enum PixelFormat pix_fmt , int width ) {\n int i ;\n const AVPixFmtDescriptor * desc = & av_pix_fmt_descriptors [ pix_fmt ] ;\n int max_step [ 4 ] ;\n int max_step_comp [ 4 ] ;\n memset ( linesizes , 0 , 4 * sizeof ( linesizes [ 0 ] ) ) ;\n if ( ( unsigned ) pix_fmt >= PIX_FMT_NB || desc -> flags & PIX_FMT_HWACCEL ) return AVERROR ( EINVAL ) ;\n if ( desc -> flags & PIX_FMT_BITSTREAM ) {\n if ( width > ( INT_MAX - 7 ) / ( desc -> comp [ 0 ] . step_minus1 + 1 ) ) return AVERROR ( EINVAL ) ;\n linesizes [ 0 ] = ( width * ( desc -> comp [ 0 ] . step_minus1 + 1 ) + 7 ) >> 3 ;\n return 0 ;\n }\n av_image_fill_max_pixsteps ( max_step , max_step_comp , desc ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n int s = ( max_step_comp [ i ] == 1 || max_step_comp [ i ] == 2 ) ? desc -> log2_chroma_w : 0 ;\n int shifted_w = ( ( width + ( 1 << s ) - 1 ) ) >> s ;\n if ( max_step [ i ] > INT_MAX / shifted_w ) return AVERROR ( EINVAL ) ;\n linesizes [ i ] = max_step [ i ] * shifted_w ;\n }\n return 0 ;\n }"}
{"idx": 16214, "target": 0, "func": "void cpu_synchronize_all_post_reset ( void ) {\n CPUArchState * cpu ;\n for ( cpu = first_cpu ;\n cpu ;\n cpu = cpu -> next_cpu ) {\n cpu_synchronize_post_reset ( ENV_GET_CPU ( cpu ) ) ;\n }\n }"}
{"idx": 16215, "target": 0, "func": "static int dissect_h245_SET_SIZE_1_256_OF_CommunicationModeTableEntry ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_set_of ( tvb , offset , actx , tree , hf_index , ett_h245_SET_SIZE_1_256_OF_CommunicationModeTableEntry , SET_SIZE_1_256_OF_CommunicationModeTableEntry_set_of , 1 , 256 , FALSE ) ;\n return offset ;\n }"}
{"idx": 16216, "target": 0, "func": "static int alac_set_info ( ALACContext * alac ) {\n GetByteContext gb ;\n bytestream2_init ( & gb , alac -> avctx -> extradata , alac -> avctx -> extradata_size ) ;\n bytestream2_skipu ( & gb , 12 ) ;\n alac -> max_samples_per_frame = bytestream2_get_be32u ( & gb ) ;\n if ( ! alac -> max_samples_per_frame || alac -> max_samples_per_frame > INT_MAX ) {\n av_log ( alac -> avctx , AV_LOG_ERROR , \"max samples per frame invalid: %u\\n\" , alac -> max_samples_per_frame ) ;\n return AVERROR_INVALIDDATA ;\n }\n bytestream2_skipu ( & gb , 1 ) ;\n alac -> sample_size = bytestream2_get_byteu ( & gb ) ;\n alac -> rice_history_mult = bytestream2_get_byteu ( & gb ) ;\n alac -> rice_initial_history = bytestream2_get_byteu ( & gb ) ;\n alac -> rice_limit = bytestream2_get_byteu ( & gb ) ;\n alac -> channels = bytestream2_get_byteu ( & gb ) ;\n bytestream2_get_be16u ( & gb ) ;\n bytestream2_get_be32u ( & gb ) ;\n bytestream2_get_be32u ( & gb ) ;\n bytestream2_get_be32u ( & gb ) ;\n return 0 ;\n }"}
{"idx": 16217, "target": 1, "func": "void vp9_quantize_dc_32x32 ( const int16_t * coeff_ptr , int skip_block , const int16_t * round_ptr , const int16_t quant , int16_t * qcoeff_ptr , int16_t * dqcoeff_ptr , const int16_t dequant_ptr , uint16_t * eob_ptr ) {\n const int rc = 0 ;\n const int coeff = coeff_ptr [ rc ] ;\n const int coeff_sign = ( coeff >> 31 ) ;\n const int abs_coeff = ( coeff ^ coeff_sign ) - coeff_sign ;\n int tmp , eob = - 1 ;\n if ( ! skip_block ) {\n tmp = clamp ( abs_coeff + round_ptr [ rc != 0 ] , INT16_MIN , INT16_MAX ) ;\n tmp = ( tmp * quant ) >> 15 ;\n qcoeff_ptr [ rc ] = ( tmp ^ coeff_sign ) - coeff_sign ;\n dqcoeff_ptr [ rc ] = qcoeff_ptr [ rc ] * dequant_ptr / 2 ;\n if ( tmp ) eob = 0 ;\n }\n * eob_ptr = eob + 1 ;\n }"}
{"idx": 16218, "target": 1, "func": "static int32_t compareMappingsUnicodeFirst ( const void * context , const void * left , const void * right ) {\n return compareMappings ( ( UCMTable * ) context , ( const UCMapping * ) left , ( UCMTable * ) context , ( const UCMapping * ) right , TRUE ) ;\n }"}
{"idx": 16219, "target": 0, "func": "voip_calls_tapinfo_t * voip_calls_get_info ( void ) {\n return & the_tapinfo_struct ;\n }"}
{"idx": 16220, "target": 0, "func": "static void usage ( int version ) {\n # if defined ( USE_LIBEDIT_INTERFACE ) const char * readline = \"\" ;\n # else const char * readline = \"readline\" ;\n # endif # ifdef HAVE_READLINE printf ( \"%s Ver %s Distrib %s, for %s (%s) using %s %s\\n\" , my_progname , VER , MYSQL_SERVER_VERSION , SYSTEM_TYPE , MACHINE_TYPE , readline , rl_library_version ) ;\n # else printf ( \"%s Ver %s Distrib %s, for %s (%s)\\n\" , my_progname , VER , MYSQL_SERVER_VERSION , SYSTEM_TYPE , MACHINE_TYPE ) ;\n # endif if ( version ) return ;\n puts ( ORACLE_WELCOME_COPYRIGHT_NOTICE ( \"2000\" ) ) ;\n printf ( \"Usage: %s [OPTIONS] [database]\\n\" , my_progname ) ;\n print_defaults ( \"my\" , load_default_groups ) ;\n puts ( \"\" ) ;\n my_print_help ( my_long_options ) ;\n my_print_variables ( my_long_options ) ;\n }"}
{"idx": 16221, "target": 0, "func": "const char * SSL_rstate_string ( const SSL * s ) {\n switch ( s -> rlayer . rstate ) {\n case SSL_ST_READ_HEADER : return \"RH\" ;\n case SSL_ST_READ_BODY : return \"RB\" ;\n case SSL_ST_READ_DONE : return \"RD\" ;\n default : return \"unknown\" ;\n }\n }"}
{"idx": 16222, "target": 0, "func": "static gboolean gst_asf_demux_get_stream_video ( asf_stream_video * video , guint8 * * p_data , guint64 * p_size ) {\n if ( * p_size < ( 4 + 4 + 1 + 2 ) ) return FALSE ;\n video -> width = gst_asf_demux_get_uint32 ( p_data , p_size ) ;\n video -> height = gst_asf_demux_get_uint32 ( p_data , p_size ) ;\n video -> unknown = gst_asf_demux_get_uint8 ( p_data , p_size ) ;\n video -> size = gst_asf_demux_get_uint16 ( p_data , p_size ) ;\n return TRUE ;\n }"}
{"idx": 16223, "target": 0, "func": "static unsigned int read32 ( const uint8_t * * ptr , int is_big ) {\n unsigned int temp ;\n if ( is_big ) {\n temp = AV_RB32 ( * ptr ) ;\n }\n else {\n temp = AV_RL32 ( * ptr ) ;\n }\n * ptr += 4 ;\n return temp ;\n }"}
{"idx": 16224, "target": 0, "func": "int tm_rescinfo ( tm_node_id node , char * resource , int len , tm_event_t * event ) {\n struct reschold * rhold ;\n struct tcp_chan * chan = NULL ;\n if ( ! init_done ) return TM_BADINIT ;\n if ( resource == NULL || len == 0 ) return TM_EBADENVIRONMENT ;\n * event = new_event ( ) ;\n if ( startcom ( TM_RESOURCES , * event , & chan ) != DIS_SUCCESS ) return TM_ESYSTEM ;\n if ( diswsi ( chan , node ) != DIS_SUCCESS ) {\n DIS_tcp_cleanup ( chan ) ;\n return TM_ESYSTEM ;\n }\n DIS_tcp_wflush ( chan ) ;\n DIS_tcp_cleanup ( chan ) ;\n rhold = ( struct reschold * ) calloc ( 1 , sizeof ( struct reschold ) ) ;\n assert ( rhold != NULL ) ;\n rhold -> resc = resource ;\n rhold -> len = len ;\n add_event ( * event , node , TM_RESOURCES , ( void * ) rhold ) ;\n return TM_SUCCESS ;\n }"}
{"idx": 16225, "target": 0, "func": "TEST_F ( WebFrameSimTest , LayoutViewportExceedsLayoutOverflow ) {\n UseAndroidSettings ( ) ;\n WebView ( ) . ResizeWithBrowserControls ( WebSize ( 400 , 540 ) , 60 , 0 , true ) ;\n WebView ( ) . SetDefaultPageScaleLimits ( 0.25f , 2 ) ;\n SimRequest main_resource ( \"https://example.com/test.html\" , \"text/html\" ) ;\n LoadURL ( \"https://example.com/test.html\" ) ;\n main_resource . Complete ( R \"HTML( < meta name = 'viewport' content = 'width=device-width, minimum-scale=1' > < body style = 'margin: 0;\n height: 95vh' > ) HTML \");\n Compositor ( ) . BeginFrame ( ) ;\n ScrollableArea * area = GetDocument ( ) . View ( ) -> LayoutViewport ( ) ;\n ASSERT_EQ ( 540 , area -> VisibleHeight ( ) ) ;\n ASSERT_EQ ( IntSize ( 400 , 570 ) , area -> ContentsSize ( ) ) ;\n WebView ( ) . ResizeWithBrowserControls ( WebSize ( 400 , 600 ) , 60 , 0 , false ) ;\n Compositor ( ) . BeginFrame ( ) ;\n ASSERT_EQ ( 600 , area -> VisibleHeight ( ) ) ;\n ASSERT_EQ ( IntSize ( 400 , 600 ) , area -> ContentsSize ( ) ) ;\n }"}
{"idx": 16226, "target": 1, "func": "static int alloc_mi ( VP9_COMMON * cm , int mi_size ) {\n int i ;\n for ( i = 0 ;\n i < 2 ;\n ++ i ) {\n cm -> mip_array [ i ] = ( MODE_INFO * ) vpx_calloc ( mi_size , sizeof ( MODE_INFO ) ) ;\n if ( cm -> mip_array [ i ] == NULL ) return 1 ;\n cm -> mi_grid_base_array [ i ] = ( MODE_INFO * * ) vpx_calloc ( mi_size , sizeof ( MODE_INFO * ) ) ;\n if ( cm -> mi_grid_base_array [ i ] == NULL ) return 1 ;\n }\n cm -> mi_alloc_size = mi_size ;\n cm -> mi_idx = 0 ;\n cm -> prev_mi_idx = 1 ;\n cm -> mip = cm -> mip_array [ cm -> mi_idx ] ;\n cm -> prev_mip = cm -> mip_array [ cm -> prev_mi_idx ] ;\n cm -> mi_grid_base = cm -> mi_grid_base_array [ cm -> mi_idx ] ;\n cm -> prev_mi_grid_base = cm -> mi_grid_base_array [ cm -> prev_mi_idx ] ;\n return 0 ;\n }"}
{"idx": 16227, "target": 0, "func": "SPL_METHOD ( SplDoublyLinkedList , count ) {\n long count ;\n spl_dllist_object * intern = ( spl_dllist_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"\" ) == FAILURE ) {\n return ;\n }\n count = spl_ptr_llist_count ( intern -> llist ) ;\n RETURN_LONG ( count ) ;\n }"}
{"idx": 16228, "target": 0, "func": "static void test_bug29692 ( ) {\n MYSQL * conn ;\n if ( ! ( conn = mysql_client_init ( NULL ) ) ) {\n myerror ( \"test_bug29692 init failed\" ) ;\n exit ( 1 ) ;\n }\n if ( ! ( mysql_real_connect ( conn , opt_host , opt_user , opt_password , opt_db ? opt_db : \"test\" , opt_port , opt_unix_socket , CLIENT_FOUND_ROWS ) ) ) {\n myerror ( \"test_bug29692 connection failed\" ) ;\n mysql_close ( mysql ) ;\n exit ( 1 ) ;\n }\n myquery ( mysql_query ( conn , \"drop table if exists t1\" ) ) ;\n myquery ( mysql_query ( conn , \"create table t1(f1 int)\" ) ) ;\n myquery ( mysql_query ( conn , \"insert into t1 values(1)\" ) ) ;\n DIE_UNLESS ( 1 == mysql_affected_rows ( conn ) ) ;\n myquery ( mysql_query ( conn , \"drop table t1\" ) ) ;\n mysql_close ( conn ) ;\n }"}
{"idx": 16229, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , TestGetHandlersFor ) {\n ProtocolHandler ph1 = CreateProtocolHandler ( \"test\" , \"test1\" ) ;\n ProtocolHandler ph2 = CreateProtocolHandler ( \"test\" , \"test2\" ) ;\n ProtocolHandler ph3 = CreateProtocolHandler ( \"test\" , \"test3\" ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph2 ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph3 ) ;\n ProtocolHandlerRegistry : : ProtocolHandlerList handlers = registry ( ) -> GetHandlersFor ( \"test\" ) ;\n ASSERT_EQ ( static_cast < size_t > ( 3 ) , handlers . size ( ) ) ;\n ASSERT_EQ ( ph3 , handlers [ 0 ] ) ;\n ASSERT_EQ ( ph2 , handlers [ 1 ] ) ;\n ASSERT_EQ ( ph1 , handlers [ 2 ] ) ;\n }"}
{"idx": 16230, "target": 0, "func": "static void show_commit ( struct commit * commit , void * data ) {\n }"}
{"idx": 16231, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FramebustBlockBrowserTest , FramebustAllowedBySiteSetting ) {\n GURL top_level_url = embedded_test_server ( ) -> GetURL ( \"/iframe.html\" ) ;\n HostContentSettingsMap * settings_map = HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) ;\n settings_map -> SetContentSettingDefaultScope ( top_level_url , GURL ( ) , CONTENT_SETTINGS_TYPE_POPUPS , std : : string ( ) , CONTENT_SETTING_ALLOW ) ;\n CreateAndSetBrowser ( ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , top_level_url ) ;\n NavigateIframeToUrlWithoutGesture ( GetWebContents ( ) , \"test\" , embedded_test_server ( ) -> GetURL ( \"a.com\" , \"/title1.html\" ) ) ;\n content : : RenderFrameHost * child = content : : ChildFrameAt ( GetWebContents ( ) -> GetMainFrame ( ) , 0 ) ;\n ASSERT_TRUE ( child ) ;\n GURL redirect_url = embedded_test_server ( ) -> GetURL ( \"b.com\" , \"/title1.html\" ) ;\n content : : TestNavigationObserver observer ( GetWebContents ( ) ) ;\n child -> ExecuteJavaScriptForTests ( base : : ASCIIToUTF16 ( base : : StringPrintf ( \"window.top.location = '%s';\n\" , redirect_url . spec ( ) . c_str ( ) ) ) ) ;\n observer . Wait ( ) ;\n EXPECT_TRUE ( GetFramebustTabHelper ( ) -> blocked_urls ( ) . empty ( ) ) ;\n }"}
{"idx": 16232, "target": 0, "func": "Py_ssize_t PyString_Size ( register PyObject * op ) {\n if ( ! PyString_Check ( op ) ) return string_getsize ( op ) ;\n return Py_SIZE ( op ) ;\n }"}
{"idx": 16233, "target": 0, "func": "TEST_F ( ShortcutsProviderTest , TypedCountMatches ) {\n base : : string16 text ( ASCIIToUTF16 ( \"just\" ) ) ;\n ExpectedURLs expected_urls ;\n expected_urls . push_back ( ExpectedURLAndAllowedToBeDefault ( \"http://www.testsite.com/b.html\" , false ) ) ;\n expected_urls . push_back ( ExpectedURLAndAllowedToBeDefault ( \"http://www.testsite.com/a.html\" , false ) ) ;\n expected_urls . push_back ( ExpectedURLAndAllowedToBeDefault ( \"http://www.testsite.com/c.html\" , false ) ) ;\n RunShortcutsProviderTest ( provider_ , text , false , expected_urls , \"http://www.testsite.com/b.html\" , base : : string16 ( ) ) ;\n }"}
{"idx": 16234, "target": 0, "func": "void cvt_unix_to_1904 ( long long time , int32 result [ 2 ] ) {\n uint32 date1970 [ 4 ] , tm [ 4 ] ;\n uint32 year [ 2 ] ;\n int i ;\n tm [ 0 ] = time & 0xffff ;\n tm [ 1 ] = ( time >> 16 ) & 0xffff ;\n tm [ 2 ] = ( time >> 32 ) & 0xffff ;\n tm [ 3 ] = ( time >> 48 ) & 0xffff ;\n memset ( date1970 , 0 , sizeof ( date1970 ) ) ;\n year [ 0 ] = ( 60 * 60 * 24 * 365L ) & 0xffff ;\n year [ 1 ] = ( 60 * 60 * 24 * 365L ) >> 16 ;\n for ( i = 1904 ;\n i < 1970 ;\n ++ i ) {\n date1970 [ 0 ] += year [ 0 ] ;\n date1970 [ 1 ] += year [ 1 ] ;\n if ( ( i & 3 ) == 0 && ( i % 100 != 0 || i % 400 == 0 ) ) date1970 [ 0 ] += 24 * 60 * 60L ;\n date1970 [ 1 ] += ( date1970 [ 0 ] >> 16 ) ;\n date1970 [ 0 ] &= 0xffff ;\n date1970 [ 2 ] += date1970 [ 1 ] >> 16 ;\n date1970 [ 1 ] &= 0xffff ;\n date1970 [ 3 ] += date1970 [ 2 ] >> 16 ;\n date1970 [ 2 ] &= 0xffff ;\n }\n for ( i = 0 ;\n i < 3 ;\n ++ i ) {\n tm [ i ] += date1970 [ i ] ;\n tm [ i + 1 ] += tm [ i ] >> 16 ;\n tm [ i ] &= 0xffff ;\n }\n tm [ 3 ] -= date1970 [ 3 ] ;\n result [ 0 ] = ( tm [ 1 ] << 16 ) | tm [ 0 ] ;\n result [ 1 ] = ( tm [ 3 ] << 16 ) | tm [ 2 ] ;\n }"}
{"idx": 16235, "target": 1, "func": "static void initial_reordering ( const hb_ot_shape_plan_t * plan , hb_font_t * font , hb_buffer_t * buffer ) {\n insert_dotted_circles ( plan , font , buffer ) ;\n hb_glyph_info_t * info = buffer -> info ;\n unsigned int count = buffer -> len ;\n if ( unlikely ( ! count ) ) return ;\n unsigned int last = 0 ;\n unsigned int last_syllable = info [ 0 ] . syllable ( ) ;\n for ( unsigned int i = 1 ;\n i < count ;\n i ++ ) if ( last_syllable != info [ i ] . syllable ( ) ) {\n initial_reordering_syllable ( plan , font -> face , buffer , last , i ) ;\n last = i ;\n last_syllable = info [ last ] . syllable ( ) ;\n }\n initial_reordering_syllable ( plan , font -> face , buffer , last , count ) ;\n }"}
{"idx": 16236, "target": 0, "func": "static void HtmlNPut ( char * * ppsz_html , const char * psz_text , int i_max ) {\n char * psz_html = * ppsz_html ;\n if ( psz_html == NULL ) return ;\n const size_t i_offset = strlen ( psz_html ) ;\n const size_t i_len = strnlen ( psz_text , i_max ) ;\n psz_html = realloc ( psz_html , i_offset + i_len + 1 ) ;\n if ( psz_html != NULL ) {\n memcpy ( psz_html + i_offset , psz_text , i_len ) ;\n psz_html [ i_offset + i_len ] = '\\0' ;\n }\n else free ( * ppsz_html ) ;\n * ppsz_html = psz_html ;\n }"}
{"idx": 16237, "target": 0, "func": "void kvm_arch_do_init_vcpu ( X86CPU * cpu ) {\n CPUX86State * env = & cpu -> env ;\n if ( env -> mp_state == KVM_MP_STATE_UNINITIALIZED ) {\n env -> mp_state = KVM_MP_STATE_INIT_RECEIVED ;\n }\n }"}
{"idx": 16238, "target": 0, "func": "static inline void SetPixelChannels ( Image * image , const size_t number_channels ) {\n image -> number_channels = number_channels ;\n }"}
{"idx": 16239, "target": 0, "func": "static int dissect_h245_T_h223_al_type_al3 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 314 \"../../asn1/h245/h245.cnf\" if ( h223_lc_params_temp ) {\n h223_lc_params_temp -> al_type = al3 ;\n h223_lc_params_temp -> al_params = wmem_new ( wmem_file_scope ( ) , h223_al3_params ) ;\n }\n offset = dissect_h245_Al3 ( tvb , offset , actx , tree , hf_index ) ;\n return offset ;\n }"}
{"idx": 16240, "target": 0, "func": "static int dissect_h245_T_h223_al_type_al2WithoutSequenceNumbers ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 304 \"../../asn1/h245/h245.cnf\" if ( h223_lc_params_temp ) h223_lc_params_temp -> al_type = al2WithoutSequenceNumbers ;\n offset = dissect_per_null ( tvb , offset , actx , tree , hf_index ) ;\n return offset ;\n }"}
{"idx": 16241, "target": 0, "func": "static void e1000e_set_gcr ( E1000ECore * core , int index , uint32_t val ) {\n uint32_t ro_bits = core -> mac [ GCR ] & E1000_GCR_RO_BITS ;\n core -> mac [ GCR ] = ( val & ~ E1000_GCR_RO_BITS ) | ro_bits ;\n }"}
{"idx": 16242, "target": 0, "func": "static void ImportBlueQuantum ( const Image * image , QuantumInfo * quantum_info , const MagickSizeType number_pixels , const unsigned char * magick_restrict p , Quantum * magick_restrict q , ExceptionInfo * exception ) {\n QuantumAny range ;\n register ssize_t x ;\n unsigned int pixel ;\n assert ( image != ( Image * ) NULL ) ;\n assert ( image -> signature == MagickCoreSignature ) ;\n switch ( quantum_info -> depth ) {\n case 8 : {\n unsigned char pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelBlue ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 16 : {\n unsigned short pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlue ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlue ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 32 : {\n unsigned int pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n float pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ClampToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlue ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 64 : {\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n double pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ClampToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n default : {\n range = GetQuantumRange ( quantum_info -> depth ) ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n }"}
{"idx": 16243, "target": 0, "func": "static void DecoderGetCc ( decoder_t * p_dec , decoder_t * p_dec_cc ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n block_t * p_cc ;\n bool pb_present [ 4 ] ;\n bool b_processed = false ;\n int i ;\n int i_cc_decoder ;\n assert ( p_dec_cc -> pf_get_cc != NULL ) ;\n if ( ! p_owner -> cc . b_supported ) return ;\n p_cc = p_dec_cc -> pf_get_cc ( p_dec_cc , pb_present ) ;\n if ( ! p_cc ) return ;\n vlc_mutex_lock ( & p_owner -> lock ) ;\n for ( i = 0 , i_cc_decoder = 0 ;\n i < 4 ;\n i ++ ) {\n p_owner -> cc . pb_present [ i ] |= pb_present [ i ] ;\n if ( p_owner -> cc . pp_decoder [ i ] ) i_cc_decoder ++ ;\n }\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n if ( ! p_owner -> cc . pp_decoder [ i ] ) continue ;\n block_FifoPut ( p_owner -> cc . pp_decoder [ i ] -> p_owner -> p_fifo , ( i_cc_decoder > 1 ) ? block_Duplicate ( p_cc ) : p_cc ) ;\n i_cc_decoder -- ;\n b_processed = true ;\n }\n vlc_mutex_unlock ( & p_owner -> lock ) ;\n if ( ! b_processed ) block_Release ( p_cc ) ;\n }"}
{"idx": 16244, "target": 0, "func": "int32 filechecksum ( FILE * file ) {\n uint32 sum = 0 , chunk ;\n rewind ( file ) ;\n while ( 1 ) {\n chunk = getuint32 ( file ) ;\n if ( feof ( file ) || ferror ( file ) ) break ;\n sum += chunk ;\n }\n return ( sum ) ;\n }"}
{"idx": 16245, "target": 1, "func": "void ff_MPV_frame_end ( MpegEncContext * s ) {\n int i ;\n if ( CONFIG_MPEG_XVMC_DECODER && s -> avctx -> xvmc_acceleration ) {\n ff_xvmc_field_end ( s ) ;\n }\n else if ( ( s -> er . error_count || s -> encoding ) && ! s -> avctx -> hwaccel && ! ( s -> avctx -> codec -> capabilities & CODEC_CAP_HWACCEL_VDPAU ) && s -> unrestricted_mv && s -> current_picture . f . reference && ! s -> intra_only && ! ( s -> flags & CODEC_FLAG_EMU_EDGE ) ) {\n const AVPixFmtDescriptor * desc = av_pix_fmt_desc_get ( s -> avctx -> pix_fmt ) ;\n int hshift = desc -> log2_chroma_w ;\n int vshift = desc -> log2_chroma_h ;\n s -> dsp . draw_edges ( s -> current_picture . f . data [ 0 ] , s -> linesize , s -> h_edge_pos , s -> v_edge_pos , EDGE_WIDTH , EDGE_WIDTH , EDGE_TOP | EDGE_BOTTOM ) ;\n s -> dsp . draw_edges ( s -> current_picture . f . data [ 1 ] , s -> uvlinesize , s -> h_edge_pos >> hshift , s -> v_edge_pos >> vshift , EDGE_WIDTH >> hshift , EDGE_WIDTH >> vshift , EDGE_TOP | EDGE_BOTTOM ) ;\n s -> dsp . draw_edges ( s -> current_picture . f . data [ 2 ] , s -> uvlinesize , s -> h_edge_pos >> hshift , s -> v_edge_pos >> vshift , EDGE_WIDTH >> hshift , EDGE_WIDTH >> vshift , EDGE_TOP | EDGE_BOTTOM ) ;\n }\n emms_c ( ) ;\n s -> last_pict_type = s -> pict_type ;\n s -> last_lambda_for [ s -> pict_type ] = s -> current_picture_ptr -> f . quality ;\n if ( s -> pict_type != AV_PICTURE_TYPE_B ) {\n s -> last_non_b_pict_type = s -> pict_type ;\n }\n # if 0 for ( i = 0 ;\n i < MAX_PICTURE_COUNT ;\n i ++ ) {\n if ( s -> picture [ i ] . f . data [ 0 ] == s -> current_picture . f . data [ 0 ] ) {\n s -> picture [ i ] = s -> current_picture ;\n break ;\n }\n }\n assert ( i < MAX_PICTURE_COUNT ) ;\n # endif if ( s -> encoding ) {\n for ( i = 0 ;\n i < s -> picture_count ;\n i ++ ) {\n if ( s -> picture [ i ] . f . data [ 0 ] && ! s -> picture [ i ] . f . reference ) {\n free_frame_buffer ( s , & s -> picture [ i ] ) ;\n }\n }\n }\n # if 0 memset ( & s -> last_picture , 0 , sizeof ( Picture ) ) ;\n memset ( & s -> next_picture , 0 , sizeof ( Picture ) ) ;\n memset ( & s -> current_picture , 0 , sizeof ( Picture ) ) ;\n # endif s -> avctx -> coded_frame = & s -> current_picture_ptr -> f ;\n if ( s -> codec_id != AV_CODEC_ID_H264 && s -> current_picture . f . reference ) {\n ff_thread_report_progress ( & s -> current_picture_ptr -> f , INT_MAX , 0 ) ;\n }\n }"}
{"idx": 16246, "target": 1, "func": "extern int as_mysql_step_start ( mysql_conn_t * mysql_conn , struct step_record * step_ptr ) {\n int tasks = 0 , nodes = 0 , task_dist = 0 ;\n int rc = SLURM_SUCCESS ;\n char temp_bit [ BUF_SIZE ] ;\n char node_list [ BUFFER_SIZE ] ;\n char * node_inx = NULL , * step_name = NULL ;\n time_t start_time , submit_time ;\n char * query = NULL ;\n if ( ! step_ptr -> job_ptr -> db_index && ( ( ! step_ptr -> job_ptr -> details || ! step_ptr -> job_ptr -> details -> submit_time ) && ! step_ptr -> job_ptr -> resize_time ) ) {\n error ( \"as_mysql_step_start: \" \"Not inputing this job, it has no submit time.\" ) ;\n return SLURM_ERROR ;\n }\n if ( step_ptr -> job_ptr -> resize_time ) {\n submit_time = start_time = step_ptr -> job_ptr -> resize_time ;\n if ( step_ptr -> start_time > submit_time ) start_time = step_ptr -> start_time ;\n }\n else {\n start_time = step_ptr -> start_time ;\n submit_time = step_ptr -> job_ptr -> details -> submit_time ;\n }\n if ( check_connection ( mysql_conn ) != SLURM_SUCCESS ) return ESLURM_DB_CONNECTION ;\n if ( slurmdbd_conf ) {\n if ( step_ptr -> job_ptr -> details ) tasks = step_ptr -> job_ptr -> details -> num_tasks ;\n else tasks = step_ptr -> cpu_count ;\n snprintf ( node_list , BUFFER_SIZE , \"%s\" , step_ptr -> job_ptr -> nodes ) ;\n nodes = step_ptr -> step_layout -> node_cnt ;\n task_dist = step_ptr -> step_layout -> task_dist ;\n node_inx = step_ptr -> network ;\n }\n else if ( step_ptr -> step_id == SLURM_BATCH_SCRIPT ) {\n if ( step_ptr -> step_node_bitmap ) {\n node_inx = bit_fmt ( temp_bit , sizeof ( temp_bit ) , step_ptr -> step_node_bitmap ) ;\n }\n snprintf ( node_list , BUFFER_SIZE , \"%s\" , step_ptr -> gres ) ;\n nodes = tasks = 1 ;\n if ( ! step_ptr -> tres_alloc_str ) xstrfmtcat ( step_ptr -> tres_alloc_str , \"%s%u=%u,%u=%u\" , step_ptr -> tres_alloc_str ? \",\" : \"\" , TRES_CPU , 1 , TRES_NODE , 1 ) ;\n }\n else {\n char * ionodes = NULL , * temp_nodes = NULL ;\n if ( step_ptr -> step_node_bitmap ) {\n node_inx = bit_fmt ( temp_bit , sizeof ( temp_bit ) , step_ptr -> step_node_bitmap ) ;\n }\n if ( ! step_ptr -> step_layout || ! step_ptr -> step_layout -> task_cnt ) {\n if ( step_ptr -> cpu_count ) tasks = step_ptr -> cpu_count ;\n else {\n if ( ( tasks = slurmdb_find_tres_count_in_string ( step_ptr -> tres_alloc_str , TRES_CPU ) ) == INFINITE64 ) {\n if ( ( tasks = slurmdb_find_tres_count_in_string ( step_ptr -> job_ptr -> tres_alloc_str , TRES_CPU ) ) == INFINITE64 ) tasks = step_ptr -> job_ptr -> total_nodes ;\n }\n }\n nodes = step_ptr -> job_ptr -> total_nodes ;\n temp_nodes = step_ptr -> job_ptr -> nodes ;\n }\n else {\n tasks = step_ptr -> step_layout -> task_cnt ;\n # ifdef HAVE_BGQ select_g_select_jobinfo_get ( step_ptr -> select_jobinfo , SELECT_JOBDATA_NODE_CNT , & nodes ) ;\n # else nodes = step_ptr -> step_layout -> node_cnt ;\n # endif task_dist = step_ptr -> step_layout -> task_dist ;\n temp_nodes = step_ptr -> step_layout -> node_list ;\n }\n select_g_select_jobinfo_get ( step_ptr -> select_jobinfo , SELECT_JOBDATA_IONODES , & ionodes ) ;\n if ( ionodes ) {\n snprintf ( node_list , BUFFER_SIZE , \"%s[%s]\" , temp_nodes , ionodes ) ;\n xfree ( ionodes ) ;\n }\n else snprintf ( node_list , BUFFER_SIZE , \"%s\" , temp_nodes ) ;\n }\n if ( ! step_ptr -> job_ptr -> db_index ) {\n if ( ! ( step_ptr -> job_ptr -> db_index = _get_db_index ( mysql_conn , submit_time , step_ptr -> job_ptr -> job_id , step_ptr -> job_ptr -> assoc_id ) ) ) {\n if ( as_mysql_job_start ( mysql_conn , step_ptr -> job_ptr ) == SLURM_ERROR ) {\n error ( \"couldn't add job %u at step start\" , step_ptr -> job_ptr -> job_id ) ;\n return SLURM_SUCCESS ;\n }\n }\n }\n step_name = slurm_add_slash_to_quotes ( step_ptr -> name ) ;\n query = xstrdup_printf ( \"insert into \\\"%s_%s\\\" (job_db_inx, id_step, time_start, \" \"step_name, state, tres_alloc, \" \"nodes_alloc, task_cnt, nodelist, node_inx, \" \"task_dist, req_cpufreq, req_cpufreq_min, req_cpufreq_gov) \" \"values (%\" PRIu64 \", %d, %d, '%s', %d, '%s', %d, %d, \" \"'%s', '%s', %d, %u, %u, %u) \" \"on duplicate key update \" \"nodes_alloc=%d, task_cnt=%d, time_end=0, state=%d, \" \"nodelist='%s', node_inx='%s', task_dist=%d, \" \"req_cpufreq=%u, req_cpufreq_min=%u, req_cpufreq_gov=%u,\" \"tres_alloc='%s';\n\" , mysql_conn -> cluster_name , step_table , step_ptr -> job_ptr -> db_index , step_ptr -> step_id , ( int ) start_time , step_name , JOB_RUNNING , step_ptr -> tres_alloc_str , nodes , tasks , node_list , node_inx , task_dist , step_ptr -> cpu_freq_max , step_ptr -> cpu_freq_min , step_ptr -> cpu_freq_gov , nodes , tasks , JOB_RUNNING , node_list , node_inx , task_dist , step_ptr -> cpu_freq_max , step_ptr -> cpu_freq_min , step_ptr -> cpu_freq_gov , step_ptr -> tres_alloc_str ) ;\n if ( debug_flags & DEBUG_FLAG_DB_STEP ) DB_DEBUG ( mysql_conn -> conn , \"query\\n%s\" , query ) ;\n rc = mysql_db_query ( mysql_conn , query ) ;\n xfree ( query ) ;\n xfree ( step_name ) ;\n return rc ;\n }"}
{"idx": 16247, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus )"}
{"idx": 16248, "target": 0, "func": "int vp9_set_internal_size ( VP9_COMP * cpi , VPX_SCALING horiz_mode , VPX_SCALING vert_mode ) {\n VP9_COMMON * cm = & cpi -> common ;\n int hr = 0 , hs = 0 , vr = 0 , vs = 0 ;\n if ( horiz_mode > ONETWO || vert_mode > ONETWO ) return - 1 ;\n Scale2Ratio ( horiz_mode , & hr , & hs ) ;\n Scale2Ratio ( vert_mode , & vr , & vs ) ;\n cm -> width = ( hs - 1 + cpi -> oxcf . width * hr ) / hs ;\n cm -> height = ( vs - 1 + cpi -> oxcf . height * vr ) / vs ;\n assert ( cm -> width <= cpi -> initial_width ) ;\n assert ( cm -> height <= cpi -> initial_height ) ;\n update_frame_size ( cpi ) ;\n return 0 ;\n }"}
{"idx": 16249, "target": 0, "func": "static void gtkui_connection_kill ( void * conn ) {\n GtkTreeIter iter ;\n GtkTreeModel * model ;\n struct conn_tail * c = NULL ;\n ( void ) conn ;\n DEBUG_MSG ( \"gtkui_connection_kill\" ) ;\n model = GTK_TREE_MODEL ( ls_conns ) ;\n if ( gtk_tree_selection_get_selected ( GTK_TREE_SELECTION ( selection ) , & model , & iter ) ) {\n gtk_tree_model_get ( model , & iter , 11 , & c , - 1 ) ;\n }\n else return ;\n if ( ! c || ! c -> co ) return ;\n switch ( user_kill ( c -> co ) ) {\n case E_SUCCESS : c -> co -> status = CONN_KILLED ;\n gtkui_message ( \"The connection was killed !!\" ) ;\n break ;\n case - E_FATAL : gtkui_message ( \"Cannot kill UDP connections !!\" ) ;\n break ;\n }\n }"}
{"idx": 16250, "target": 0, "func": "static void dissect_uaprof ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree ) {\n dissect_wbxml_common ( tvb , pinfo , tree , & decode_uaprof_wap_248 ) ;\n }"}
{"idx": 16251, "target": 1, "func": "static int dissect_dns_answer ( tvbuff_t * tvb , int offsetx , int dns_data_offset , column_info * cinfo , proto_tree * dns_tree , packet_info * pinfo , gboolean is_mdns ) {\n int len ;\n const guchar * name ;\n gchar * name_out ;\n int name_len ;\n int dns_type ;\n int dns_class ;\n int flush ;\n const char * class_name ;\n const char * type_name ;\n int data_offset ;\n int cur_offset ;\n int data_start ;\n gushort data_len ;\n proto_tree * rr_tree = NULL ;\n proto_item * trr = NULL ;\n data_start = data_offset = offsetx ;\n cur_offset = offsetx ;\n len = get_dns_name_type_class ( tvb , offsetx , dns_data_offset , & name , & name_len , & dns_type , & dns_class ) ;\n data_offset += len ;\n cur_offset += len ;\n if ( is_mdns ) {\n flush = dns_class & C_FLUSH ;\n dns_class &= ~ C_FLUSH ;\n }\n else {\n flush = 0 ;\n }\n type_name = val_to_str_ext ( dns_type , & dns_types_vals_ext , \"Unknown (%d)\" ) ;\n class_name = val_to_str_const ( dns_class , dns_classes , \"Unknown\" ) ;\n data_offset += 4 ;\n cur_offset += 4 ;\n data_len = tvb_get_ntohs ( tvb , data_offset ) ;\n data_offset += 2 ;\n cur_offset += 2 ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \"%s\" , type_name ) ;\n if ( is_mdns && flush ) {\n col_append_str ( cinfo , COL_INFO , \", cache flush\" ) ;\n }\n }\n if ( dns_tree != NULL ) {\n name_out = format_text ( name , strlen ( name ) ) ;\n if ( dns_type != T_OPT ) {\n rr_tree = proto_tree_add_subtree_format ( dns_tree , tvb , offsetx , ( data_offset - data_start ) + data_len , ett_dns_rr , & trr , \"%s: type %s, class %s\" , name_out , type_name , class_name ) ;\n add_rr_to_tree ( rr_tree , tvb , offsetx , name , name_len , dns_type , pinfo , is_mdns ) ;\n }\n else {\n rr_tree = proto_tree_add_subtree_format ( dns_tree , tvb , offsetx , ( data_offset - data_start ) + data_len , ett_dns_rr , & trr , \"%s: type %s\" , name_out , type_name ) ;\n add_opt_rr_to_tree ( rr_tree , tvb , offsetx , name , name_len , is_mdns ) ;\n }\n if ( is_mdns && flush ) {\n proto_item_append_text ( trr , \", cache flush\" ) ;\n }\n }\n if ( data_len == 0 ) {\n return data_offset - data_start ;\n }\n switch ( dns_type ) {\n case T_A : {\n const char * addr ;\n addr = tvb_ip_to_str ( tvb , cur_offset ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , addr ) ;\n }\n proto_item_append_text ( trr , \", addr %s\" , addr ) ;\n proto_tree_add_item ( rr_tree , hf_dns_a , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n if ( dns_use_for_addr_resolution && ( dns_class & 0x7f ) == C_IN ) {\n guint32 addr_int ;\n tvb_memcpy ( tvb , & addr_int , cur_offset , sizeof ( addr_int ) ) ;\n add_ipv4_name ( addr_int , name ) ;\n }\n }\n break ;\n case T_NS : {\n const guchar * ns_name ;\n int ns_name_len ;\n ns_name_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & ns_name ) ;\n name_out = format_text ( ns_name , strlen ( ns_name ) ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name_out ) ;\n }\n proto_item_append_text ( trr , \", ns %s\" , name_out ) ;\n proto_tree_add_string ( rr_tree , hf_dns_ns , tvb , cur_offset , ns_name_len , name_out ) ;\n }\n break ;\n case T_MD : {\n int hostname_len ;\n const guchar * hostname_str ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n hostname_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & hostname_str ) ;\n proto_tree_add_string ( rr_tree , hf_dns_md , tvb , cur_offset , hostname_len , hostname_str ) ;\n }\n break ;\n case T_MF : {\n int hostname_len ;\n const guchar * hostname_str ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n hostname_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & hostname_str ) ;\n proto_tree_add_string ( rr_tree , hf_dns_mf , tvb , cur_offset , hostname_len , hostname_str ) ;\n }\n break ;\n case T_CNAME : {\n const guchar * cname ;\n int cname_len ;\n cname_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & cname ) ;\n name_out = format_text ( cname , strlen ( cname ) ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name_out ) ;\n }\n proto_item_append_text ( trr , \", cname %s\" , name_out ) ;\n proto_tree_add_string ( rr_tree , hf_dns_cname , tvb , cur_offset , cname_len , name_out ) ;\n }\n break ;\n case T_SOA : {\n const guchar * mname ;\n int mname_len ;\n const guchar * rname ;\n int rname_len ;\n proto_item * ti_soa ;\n mname_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & mname ) ;\n name_out = format_text ( mname , strlen ( mname ) ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name_out ) ;\n }\n proto_item_append_text ( trr , \", mname %s\" , name_out ) ;\n proto_tree_add_string ( rr_tree , hf_dns_soa_mname , tvb , cur_offset , mname_len , name_out ) ;\n cur_offset += mname_len ;\n rname_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & rname ) ;\n name_out = format_text ( rname , strlen ( rname ) ) ;\n proto_tree_add_string ( rr_tree , hf_dns_soa_rname , tvb , cur_offset , rname_len , name_out ) ;\n cur_offset += rname_len ;\n proto_tree_add_item ( rr_tree , hf_dns_soa_serial_number , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n cur_offset += 4 ;\n ti_soa = proto_tree_add_item ( rr_tree , hf_dns_soa_refresh_interval , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti_soa , \" (%s)\" , time_secs_to_str ( wmem_packet_scope ( ) , tvb_get_ntohl ( tvb , cur_offset ) ) ) ;\n cur_offset += 4 ;\n ti_soa = proto_tree_add_item ( rr_tree , hf_dns_soa_retry_interval , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti_soa , \" (%s)\" , time_secs_to_str ( wmem_packet_scope ( ) , tvb_get_ntohl ( tvb , cur_offset ) ) ) ;\n cur_offset += 4 ;\n ti_soa = proto_tree_add_item ( rr_tree , hf_dns_soa_expire_limit , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti_soa , \" (%s)\" , time_secs_to_str ( wmem_packet_scope ( ) , tvb_get_ntohl ( tvb , cur_offset ) ) ) ;\n cur_offset += 4 ;\n ti_soa = proto_tree_add_item ( rr_tree , hf_dns_soa_minimum_ttl , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti_soa , \" (%s)\" , time_secs_to_str ( wmem_packet_scope ( ) , tvb_get_ntohl ( tvb , cur_offset ) ) ) ;\n }\n break ;\n case T_MB : {\n int hostname_len ;\n const guchar * hostname_str ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n hostname_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & hostname_str ) ;\n proto_tree_add_string ( rr_tree , hf_dns_mb , tvb , cur_offset , hostname_len , hostname_str ) ;\n }\n break ;\n case T_MG : {\n int hostname_len ;\n const guchar * hostname_str ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n hostname_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & hostname_str ) ;\n proto_tree_add_string ( rr_tree , hf_dns_mg , tvb , cur_offset , hostname_len , hostname_str ) ;\n }\n break ;\n case T_MR : {\n int hostname_len ;\n const guchar * hostname_str ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n hostname_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & hostname_str ) ;\n proto_tree_add_string ( rr_tree , hf_dns_mr , tvb , cur_offset , hostname_len , hostname_str ) ;\n }\n break ;\n case T_NULL : {\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n proto_tree_add_item ( rr_tree , hf_dns_null , tvb , cur_offset , data_len , ENC_NA ) ;\n }\n break ;\n case T_WKS : {\n int rr_len = data_len ;\n const char * wks_addr ;\n guint8 protocol ;\n guint8 bits ;\n int mask ;\n int port_num ;\n int i ;\n proto_item * ti_wks ;\n wmem_strbuf_t * bitnames = wmem_strbuf_new_label ( wmem_packet_scope ( ) ) ;\n wks_addr = tvb_ip_to_str ( tvb , cur_offset ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , wks_addr ) ;\n }\n proto_item_append_text ( trr , \", addr %s\" , wks_addr ) ;\n proto_tree_add_item ( rr_tree , hf_dns_wks_address , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n cur_offset += 4 ;\n rr_len -= 4 ;\n proto_tree_add_item ( rr_tree , hf_dns_wks_protocol , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n protocol = tvb_get_guint8 ( tvb , cur_offset ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n port_num = 0 ;\n while ( rr_len != 0 ) {\n bits = tvb_get_guint8 ( tvb , cur_offset ) ;\n if ( bits != 0 ) {\n mask = 1 << 7 ;\n wmem_strbuf_truncate ( bitnames , 0 ) ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n if ( bits & mask ) {\n if ( wmem_strbuf_get_len ( bitnames ) > 0 ) {\n wmem_strbuf_append ( bitnames , \", \" ) ;\n }\n switch ( protocol ) {\n case IP_PROTO_TCP : wmem_strbuf_append ( bitnames , tcp_port_to_display ( wmem_packet_scope ( ) , port_num ) ) ;\n break ;\n case IP_PROTO_UDP : wmem_strbuf_append ( bitnames , udp_port_to_display ( wmem_packet_scope ( ) , port_num ) ) ;\n break ;\n default : wmem_strbuf_append_printf ( bitnames , \"%u\" , port_num ) ;\n break ;\n }\n }\n mask >>= 1 ;\n port_num ++ ;\n }\n ti_wks = proto_tree_add_item ( rr_tree , hf_dns_wks_bits , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti_wks , \" (%s)\" , wmem_strbuf_get_str ( bitnames ) ) ;\n }\n else {\n port_num += 8 ;\n }\n cur_offset += 1 ;\n rr_len -= 1 ;\n }\n }\n break ;\n case T_PTR : {\n const guchar * pname ;\n int pname_len ;\n pname_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & pname ) ;\n name_out = format_text ( pname , strlen ( pname ) ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name_out ) ;\n }\n proto_item_append_text ( trr , \", %s\" , name_out ) ;\n proto_tree_add_string ( rr_tree , hf_dns_ptr_domain_name , tvb , cur_offset , pname_len , name_out ) ;\n }\n break ;\n case T_HINFO : {\n int cpu_offset ;\n int cpu_len ;\n const char * cpu ;\n int os_offset ;\n int os_len ;\n const char * os ;\n cpu_offset = cur_offset ;\n cpu_len = tvb_get_guint8 ( tvb , cpu_offset ) ;\n cpu = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , cpu_offset + 1 , cpu_len , ENC_ASCII | ENC_NA ) ;\n os_offset = cpu_offset + 1 + cpu_len ;\n os_len = tvb_get_guint8 ( tvb , os_offset ) ;\n os = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , os_offset + 1 , os_len , ENC_ASCII | ENC_NA ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %.*s %.*s\" , cpu_len , cpu , os_len , os ) ;\n }\n proto_item_append_text ( trr , \", CPU %.*s, OS %.*s\" , cpu_len , cpu , os_len , os ) ;\n proto_tree_add_item ( rr_tree , hf_dns_hinfo_cpu_length , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_hinfo_cpu , tvb , cur_offset , cpu_len , ENC_ASCII | ENC_NA ) ;\n cur_offset += cpu_len ;\n proto_tree_add_item ( rr_tree , hf_dns_hinfo_os_length , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_hinfo_os , tvb , cur_offset , os_len , ENC_ASCII | ENC_NA ) ;\n }\n break ;\n case T_MINFO : {\n int rmailbx_len , emailbx_len ;\n const guchar * rmailbx_str , * emailbx_str ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n rmailbx_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & rmailbx_str ) ;\n proto_tree_add_string ( rr_tree , hf_dns_minfo_r_mailbox , tvb , cur_offset , rmailbx_len , rmailbx_str ) ;\n cur_offset += rmailbx_len ;\n emailbx_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & emailbx_str ) ;\n proto_tree_add_string ( rr_tree , hf_dns_minfo_e_mailbox , tvb , cur_offset , emailbx_len , emailbx_str ) ;\n }\n break ;\n case T_MX : {\n guint16 preference = 0 ;\n const guchar * mx_name ;\n int mx_name_len ;\n preference = tvb_get_ntohs ( tvb , cur_offset ) ;\n mx_name_len = get_dns_name ( tvb , cur_offset + 2 , 0 , dns_data_offset , & mx_name ) ;\n name_out = format_text ( mx_name , strlen ( mx_name ) ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %u %s\" , preference , name_out ) ;\n }\n proto_item_append_text ( trr , \", preference %u, mx %s\" , preference , name_out ) ;\n proto_tree_add_item ( rr_tree , hf_dns_mx_preference , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n proto_tree_add_string ( rr_tree , hf_dns_mx_mail_exchange , tvb , cur_offset , mx_name_len , name_out ) ;\n }\n break ;\n case T_TXT : {\n int rr_len = data_len ;\n int txt_offset ;\n int txt_len ;\n txt_offset = cur_offset ;\n while ( rr_len != 0 ) {\n txt_len = tvb_get_guint8 ( tvb , txt_offset ) ;\n proto_tree_add_item ( rr_tree , hf_dns_txt_length , tvb , txt_offset , 1 , ENC_BIG_ENDIAN ) ;\n txt_offset += 1 ;\n rr_len -= 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_txt , tvb , txt_offset , txt_len , ENC_ASCII | ENC_NA ) ;\n txt_offset += txt_len ;\n rr_len -= txt_len ;\n }\n }\n break ;\n case T_RP : {\n int mbox_dname_len , txt_dname_len ;\n const guchar * mbox_dname , * txt_dname ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n mbox_dname_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & mbox_dname ) ;\n proto_tree_add_string ( rr_tree , hf_dns_rp_mailbox , tvb , cur_offset , mbox_dname_len , mbox_dname ) ;\n cur_offset += mbox_dname_len ;\n txt_dname_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & txt_dname ) ;\n proto_tree_add_string ( rr_tree , hf_dns_rp_txt_rr , tvb , cur_offset , txt_dname_len , txt_dname ) ;\n }\n break ;\n case T_AFSDB : {\n const guchar * host_name ;\n int host_name_len ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n host_name_len = get_dns_name ( tvb , cur_offset + 2 , 0 , dns_data_offset , & host_name ) ;\n proto_tree_add_item ( rr_tree , hf_dns_afsdb_subtype , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n proto_tree_add_string ( rr_tree , hf_dns_afsdb_hostname , tvb , cur_offset , host_name_len , host_name ) ;\n }\n break ;\n case T_X25 : {\n guint8 x25_len ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n proto_tree_add_item ( rr_tree , hf_dns_x25_length , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n x25_len = tvb_get_guint8 ( tvb , cur_offset ) ;\n cur_offset += 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_x25_psdn_address , tvb , cur_offset , x25_len , ENC_ASCII | ENC_NA ) ;\n }\n break ;\n case T_ISDN : {\n guint8 isdn_address_len , isdn_sa_len ;\n int rr_len = data_len ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n proto_tree_add_item ( rr_tree , hf_dns_isdn_length , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n isdn_address_len = tvb_get_guint8 ( tvb , cur_offset ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_isdn_address , tvb , cur_offset , isdn_address_len , ENC_ASCII | ENC_NA ) ;\n cur_offset += isdn_address_len ;\n rr_len -= isdn_address_len ;\n if ( rr_len > 1 ) {\n proto_tree_add_item ( rr_tree , hf_dns_isdn_sa_length , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n isdn_sa_len = tvb_get_guint8 ( tvb , cur_offset ) ;\n cur_offset += 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_isdn_sa , tvb , cur_offset , isdn_sa_len , ENC_ASCII | ENC_NA ) ;\n }\n }\n break ;\n case T_RT : {\n const guchar * host_name ;\n int host_name_len ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n host_name_len = get_dns_name ( tvb , cur_offset + 2 , 0 , dns_data_offset , & host_name ) ;\n proto_tree_add_item ( rr_tree , hf_dns_rt_preference , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n proto_tree_add_string ( rr_tree , hf_dns_rt_intermediate_host , tvb , cur_offset , host_name_len , host_name ) ;\n }\n break ;\n case T_NSAP : {\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n proto_tree_add_item ( rr_tree , hf_dns_nsap_rdata , tvb , cur_offset , data_len , ENC_NA ) ;\n }\n break ;\n case T_NSAP_PTR : {\n int nsap_ptr_owner_len ;\n const guchar * nsap_ptr_owner ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n nsap_ptr_owner_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & nsap_ptr_owner ) ;\n proto_tree_add_string ( rr_tree , hf_dns_nsap_ptr_owner , tvb , cur_offset , nsap_ptr_owner_len , nsap_ptr_owner ) ;\n }\n break ;\n case T_KEY : {\n int rr_len = data_len ;\n guint16 flags ;\n proto_item * tf , * ti_gen ;\n proto_tree * flags_tree ;\n guint8 algo ;\n guint16 key_id ;\n tf = proto_tree_add_item ( rr_tree , hf_dns_key_flags , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n flags_tree = proto_item_add_subtree ( tf , ett_key_flags ) ;\n flags = tvb_get_ntohs ( tvb , cur_offset ) ;\n proto_tree_add_item ( flags_tree , hf_dns_key_flags_authentication , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flags_tree , hf_dns_key_flags_confidentiality , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n if ( ( flags & 0xC000 ) != 0xC000 ) {\n proto_tree_add_item ( flags_tree , hf_dns_key_flags_key_required , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flags_tree , hf_dns_key_flags_associated_user , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flags_tree , hf_dns_key_flags_associated_named_entity , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flags_tree , hf_dns_key_flags_ipsec , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flags_tree , hf_dns_key_flags_mime , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flags_tree , hf_dns_key_flags_signatory , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n }\n cur_offset += 2 ;\n rr_len -= 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_key_protocol , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_key_algorithm , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n algo = tvb_get_guint8 ( tvb , cur_offset ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n key_id = compute_key_id ( tvb , cur_offset - 4 , rr_len + 4 , algo ) ;\n ti_gen = proto_tree_add_uint ( rr_tree , hf_dns_key_key_id , tvb , 0 , 0 , key_id ) ;\n PROTO_ITEM_SET_GENERATED ( ti_gen ) ;\n if ( rr_len != 0 ) {\n proto_tree_add_item ( rr_tree , hf_dns_key_public_key , tvb , cur_offset , rr_len , ENC_NA ) ;\n }\n }\n break ;\n case T_PX : {\n int px_map822_len , px_mapx400_len ;\n const guchar * px_map822_dnsname , * px_mapx400_dnsname ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n proto_tree_add_item ( rr_tree , hf_dns_px_preference , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n px_map822_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & px_map822_dnsname ) ;\n proto_tree_add_string ( rr_tree , hf_dns_px_map822 , tvb , cur_offset , px_map822_len , px_map822_dnsname ) ;\n cur_offset += px_map822_len ;\n px_mapx400_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & px_mapx400_dnsname ) ;\n proto_tree_add_string ( rr_tree , hf_dns_px_mapx400 , tvb , cur_offset , px_mapx400_len , px_mapx400_dnsname ) ;\n }\n break ;\n case T_GPOS : {\n guint8 long_len , lat_len , alt_len ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n proto_tree_add_item ( rr_tree , hf_dns_gpos_longitude_length , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n long_len = tvb_get_guint8 ( tvb , cur_offset ) ;\n cur_offset += 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_gpos_longitude , tvb , cur_offset , long_len , ENC_ASCII | ENC_NA ) ;\n cur_offset += long_len ;\n proto_tree_add_item ( rr_tree , hf_dns_gpos_latitude_length , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n lat_len = tvb_get_guint8 ( tvb , cur_offset ) ;\n cur_offset += 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_gpos_latitude , tvb , cur_offset , lat_len , ENC_ASCII | ENC_NA ) ;\n cur_offset += lat_len ;\n proto_tree_add_item ( rr_tree , hf_dns_gpos_altitude_length , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n alt_len = tvb_get_guint8 ( tvb , cur_offset ) ;\n cur_offset += 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_gpos_altitude , tvb , cur_offset , alt_len , ENC_ASCII | ENC_NA ) ;\n }\n break ;\n case T_AAAA : {\n const char * addr6 ;\n addr6 = tvb_ip6_to_str ( tvb , cur_offset ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , addr6 ) ;\n }\n proto_item_append_text ( trr , \", addr %s\" , addr6 ) ;\n proto_tree_add_item ( rr_tree , hf_dns_aaaa , tvb , cur_offset , 16 , ENC_NA ) ;\n if ( dns_use_for_addr_resolution && ( dns_class & 0x7f ) == C_IN ) {\n struct e_in6_addr addr_in6 ;\n tvb_memcpy ( tvb , & addr_in6 , cur_offset , sizeof ( addr_in6 ) ) ;\n add_ipv6_name ( & addr_in6 , name ) ;\n }\n }\n break ;\n case T_LOC : {\n guint8 version ;\n proto_item * ti ;\n version = tvb_get_guint8 ( tvb , cur_offset ) ;\n proto_tree_add_item ( rr_tree , hf_dns_loc_version , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n if ( version == 0 ) {\n cur_offset ++ ;\n ti = proto_tree_add_item ( rr_tree , hf_dns_loc_size , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \" (%g m)\" , rfc1867_size ( tvb , cur_offset ) ) ;\n cur_offset ++ ;\n ti = proto_tree_add_item ( rr_tree , hf_dns_loc_horizontal_precision , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \" (%g m)\" , rfc1867_size ( tvb , cur_offset ) ) ;\n cur_offset ++ ;\n ti = proto_tree_add_item ( rr_tree , hf_dns_loc_vertical_precision , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \" (%g m)\" , rfc1867_size ( tvb , cur_offset ) ) ;\n cur_offset ++ ;\n ti = proto_tree_add_item ( rr_tree , hf_dns_loc_latitude , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \" (%s)\" , rfc1867_angle ( tvb , cur_offset , \"NS\" ) ) ;\n cur_offset += 4 ;\n ti = proto_tree_add_item ( rr_tree , hf_dns_loc_longitude , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \" (%s)\" , rfc1867_angle ( tvb , cur_offset , \"EW\" ) ) ;\n cur_offset += 4 ;\n ti = proto_tree_add_item ( rr_tree , hf_dns_loc_altitude , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \" (%g m)\" , ( ( gint32 ) tvb_get_ntohl ( tvb , cur_offset ) - 10000000 ) / 100.0 ) ;\n }\n else {\n proto_tree_add_item ( rr_tree , hf_dns_loc_unknown_data , tvb , cur_offset , data_len , ENC_NA ) ;\n }\n }\n break ;\n case T_NXT : {\n int rr_len = data_len ;\n const guchar * next_domain_name ;\n int next_domain_name_len ;\n next_domain_name_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & next_domain_name ) ;\n name_out = format_text ( next_domain_name , strlen ( next_domain_name ) ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name_out ) ;\n }\n proto_item_append_text ( trr , \", next domain name %s\" , name_out ) ;\n proto_tree_add_string ( rr_tree , hf_dns_nxt_next_domain_name , tvb , cur_offset , next_domain_name_len , name_out ) ;\n cur_offset += next_domain_name_len ;\n rr_len -= next_domain_name_len ;\n dissect_type_bitmap_nxt ( rr_tree , tvb , cur_offset , rr_len ) ;\n }\n break ;\n case T_SRV : {\n guint16 priority = 0 ;\n guint16 weight = 0 ;\n guint16 port = 0 ;\n const guchar * target ;\n int target_len ;\n proto_tree_add_item ( rr_tree , hf_dns_srv_priority , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n priority = tvb_get_ntohs ( tvb , cur_offset ) ;\n cur_offset += 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_srv_weight , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n weight = tvb_get_ntohs ( tvb , cur_offset ) ;\n cur_offset += 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_srv_port , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n port = tvb_get_ntohs ( tvb , cur_offset ) ;\n cur_offset += 2 ;\n target_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & target ) ;\n name_out = format_text ( target , strlen ( target ) ) ;\n proto_tree_add_string ( rr_tree , hf_dns_srv_target , tvb , cur_offset , target_len , name_out ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %u %u %u %s\" , priority , weight , port , name_out ) ;\n }\n proto_item_append_text ( trr , \", priority %u, weight %u, port %u, target %s\" , priority , weight , port , name_out ) ;\n }\n break ;\n case T_NAPTR : {\n proto_item * ti_len ;\n int offset = cur_offset ;\n guint16 order ;\n guint16 preference ;\n gchar * flags ;\n guint8 flags_len ;\n guint8 service_len ;\n guint8 regex_len ;\n const guchar * replacement ;\n int replacement_len ;\n proto_tree_add_item ( rr_tree , hf_dns_naptr_order , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n order = tvb_get_ntohs ( tvb , offset ) ;\n offset += 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_naptr_preference , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n preference = tvb_get_ntohs ( tvb , offset ) ;\n offset += 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_naptr_flags_length , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n flags_len = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_naptr_flags , tvb , offset , flags_len , ENC_ASCII | ENC_NA ) ;\n flags = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset , flags_len , ENC_ASCII | ENC_NA ) ;\n offset += flags_len ;\n proto_tree_add_item ( rr_tree , hf_dns_naptr_service_length , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n service_len = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_naptr_service , tvb , offset , service_len , ENC_ASCII | ENC_NA ) ;\n offset += service_len ;\n proto_tree_add_item ( rr_tree , hf_dns_naptr_regex_length , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n regex_len = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_naptr_regex , tvb , offset , regex_len , ENC_ASCII | ENC_NA ) ;\n offset += regex_len ;\n replacement_len = get_dns_name ( tvb , offset , 0 , dns_data_offset , & replacement ) ;\n name_out = format_text ( replacement , strlen ( replacement ) ) ;\n ti_len = proto_tree_add_uint ( rr_tree , hf_dns_naptr_replacement_length , tvb , offset , 0 , replacement_len ) ;\n PROTO_ITEM_SET_GENERATED ( ti_len ) ;\n proto_tree_add_string ( rr_tree , hf_dns_naptr_replacement , tvb , offset , replacement_len , name_out ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %u %u %s\" , order , preference , flags ) ;\n }\n proto_item_append_text ( trr , \", order %u, preference %u, flags %s\" , order , preference , flags ) ;\n }\n break ;\n case T_KX : {\n const guchar * kx_name ;\n int kx_name_len ;\n kx_name_len = get_dns_name ( tvb , cur_offset + 2 , 0 , dns_data_offset , & kx_name ) ;\n name_out = format_text ( kx_name , strlen ( kx_name ) ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %u %s\" , tvb_get_ntohs ( tvb , cur_offset ) , name_out ) ;\n }\n proto_item_append_text ( trr , \", preference %u, kx %s\" , tvb_get_ntohs ( tvb , cur_offset ) , name_out ) ;\n proto_tree_add_item ( rr_tree , hf_dns_kx_preference , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_string ( rr_tree , hf_dns_kx_key_exchange , tvb , cur_offset + 2 , kx_name_len , name_out ) ;\n }\n break ;\n case T_CERT : {\n int rr_len = data_len ;\n proto_tree_add_item ( rr_tree , hf_dns_cert_type , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n rr_len -= 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_cert_key_tag , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n rr_len -= 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_cert_algorithm , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n if ( rr_len != 0 ) {\n proto_tree_add_item ( rr_tree , hf_dns_cert_certificate , tvb , cur_offset , rr_len , ENC_NA ) ;\n }\n }\n break ;\n case T_A6 : {\n unsigned short pre_len ;\n unsigned short suf_len ;\n unsigned short suf_octet_count ;\n const guchar * pname ;\n int pname_len ;\n int a6_offset ;\n int suf_offset ;\n struct e_in6_addr suffix ;\n address suffix_addr ;\n a6_offset = cur_offset ;\n pre_len = tvb_get_guint8 ( tvb , cur_offset ) ;\n cur_offset ++ ;\n suf_len = 128 - pre_len ;\n suf_octet_count = suf_len ? ( suf_len - 1 ) / 8 + 1 : 0 ;\n for ( suf_offset = 0 ;\n suf_offset < 16 - suf_octet_count ;\n suf_offset ++ ) {\n suffix . bytes [ suf_offset ] = 0 ;\n }\n for ( ;\n suf_offset < 16 ;\n suf_offset ++ ) {\n suffix . bytes [ suf_offset ] = tvb_get_guint8 ( tvb , cur_offset ) ;\n cur_offset ++ ;\n }\n if ( pre_len > 0 ) {\n pname_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & pname ) ;\n }\n else {\n pname = \"\" ;\n pname_len = 0 ;\n }\n name_out = format_text ( pname , strlen ( pname ) ) ;\n SET_ADDRESS ( & suffix_addr , AT_IPv6 , 16 , suffix . bytes ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %d %s %s\" , pre_len , address_to_str ( wmem_packet_scope ( ) , & suffix_addr ) , name_out ) ;\n }\n proto_tree_add_item ( rr_tree , hf_dns_a6_prefix_len , tvb , a6_offset , 1 , ENC_BIG_ENDIAN ) ;\n a6_offset ++ ;\n if ( suf_len ) {\n proto_tree_add_ipv6 ( rr_tree , hf_dns_a6_address_suffix , tvb , a6_offset , suf_octet_count , suffix . bytes ) ;\n a6_offset += suf_octet_count ;\n }\n if ( pre_len > 0 ) {\n proto_tree_add_string ( rr_tree , hf_dns_a6_prefix_name , tvb , a6_offset , pname_len , name_out ) ;\n }\n proto_item_append_text ( trr , \", addr %d %s %s\" , pre_len , address_to_str ( wmem_packet_scope ( ) , & suffix_addr ) , name_out ) ;\n }\n break ;\n case T_DNAME : {\n const guchar * dname ;\n int dname_len ;\n dname_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & dname ) ;\n name_out = format_text ( dname , strlen ( dname ) ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name_out ) ;\n }\n proto_item_append_text ( trr , \", dname %s\" , name_out ) ;\n proto_tree_add_string ( rr_tree , hf_dns_dname , tvb , cur_offset , dname_len , name_out ) ;\n }\n break ;\n case T_OPT : {\n int rropt_len = data_len ;\n guint16 optcode , optlen ;\n proto_item * rropt , * rroptlen ;\n proto_tree * rropt_tree ;\n while ( rropt_len > 0 ) {\n optcode = tvb_get_ntohs ( tvb , cur_offset ) ;\n rropt_len -= 2 ;\n optlen = tvb_get_ntohs ( tvb , cur_offset + 2 ) ;\n rropt_len -= 2 ;\n rropt = proto_tree_add_item ( rr_tree , hf_dns_opt , tvb , cur_offset , 4 + optlen , ENC_NA ) ;\n proto_item_append_text ( rropt , \": %s\" , val_to_str ( optcode , edns0_opt_code_vals , \"Unknown (%d)\" ) ) ;\n rropt_tree = proto_item_add_subtree ( rropt , ett_dns_opts ) ;\n rropt = proto_tree_add_item ( rropt_tree , hf_dns_opt_code , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n rroptlen = proto_tree_add_item ( rropt_tree , hf_dns_opt_len , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n proto_tree_add_item ( rropt_tree , hf_dns_opt_data , tvb , cur_offset , optlen , ENC_NA ) ;\n switch ( optcode ) {\n case O_DAU : while ( optlen != 0 ) {\n proto_tree_add_item ( rropt_tree , hf_dns_opt_dau , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rropt_len -= 1 ;\n optlen -= 1 ;\n }\n break ;\n case O_DHU : while ( optlen != 0 ) {\n proto_tree_add_item ( rropt_tree , hf_dns_opt_dhu , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rropt_len -= 1 ;\n optlen -= 1 ;\n }\n break ;\n case O_N3U : while ( optlen != 0 ) {\n proto_tree_add_item ( rropt_tree , hf_dns_opt_n3u , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rropt_len -= 1 ;\n optlen -= 1 ;\n }\n break ;\n case O_CLIENT_SUBNET_EXP : expert_add_info_format ( pinfo , rropt , & ei_dns_depr_opc , \"Deprecated opcode. Client subnet OPT assigned as %d.\" , O_CLIENT_SUBNET ) ;\n case O_CLIENT_SUBNET : {\n guint16 family ;\n union {\n guint32 addr ;\n guint8 bytes [ 16 ] ;\n }\n ip_addr = {\n 0 }\n ;\n family = tvb_get_ntohs ( tvb , cur_offset ) ;\n proto_tree_add_item ( rropt_tree , hf_dns_opt_client_family , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n proto_tree_add_item ( rropt_tree , hf_dns_opt_client_netmask , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n proto_tree_add_item ( rropt_tree , hf_dns_opt_client_scope , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n if ( optlen - 4 > 16 ) {\n expert_add_info ( pinfo , rroptlen , & ei_dns_opt_bad_length ) ;\n optlen = 20 ;\n }\n tvb_memcpy ( tvb , ip_addr . bytes , cur_offset , ( optlen - 4 ) ) ;\n switch ( family ) {\n case AFNUM_INET : proto_tree_add_ipv4 ( rropt_tree , hf_dns_opt_client_addr4 , tvb , cur_offset , ( optlen - 4 ) , ip_addr . addr ) ;\n break ;\n case AFNUM_INET6 : proto_tree_add_ipv6 ( rropt_tree , hf_dns_opt_client_addr6 , tvb , cur_offset , ( optlen - 4 ) , ip_addr . bytes ) ;\n break ;\n default : proto_tree_add_item ( rropt_tree , hf_dns_opt_client_addr , tvb , cur_offset , ( optlen - 4 ) , ENC_NA ) ;\n break ;\n }\n cur_offset += ( optlen - 4 ) ;\n rropt_len -= optlen ;\n }\n break ;\n default : cur_offset += optlen ;\n rropt_len -= optlen ;\n break ;\n }\n }\n }\n break ;\n case T_APL : {\n int rr_len = data_len ;\n guint16 afamily ;\n guint8 afdpart_len ;\n guint8 * addr_copy ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n while ( rr_len > 1 ) {\n afamily = tvb_get_ntohs ( tvb , cur_offset ) ;\n proto_tree_add_item ( rr_tree , hf_dns_apl_address_family , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n rr_len -= 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_apl_coded_prefix , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n afdpart_len = tvb_get_guint8 ( tvb , cur_offset ) & DNS_APL_AFDLENGTH ;\n proto_tree_add_item ( rr_tree , hf_dns_apl_negation , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rr_tree , hf_dns_apl_afdlength , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n if ( afamily == 1 && afdpart_len <= 4 ) {\n addr_copy = ( guint8 * ) wmem_alloc0 ( wmem_file_scope ( ) , 4 ) ;\n tvb_memcpy ( tvb , ( guint8 * ) addr_copy , cur_offset , afdpart_len ) ;\n proto_tree_add_ipv4 ( rr_tree , hf_dns_apl_afdpart_ipv4 , tvb , cur_offset , afdpart_len , * addr_copy ) ;\n }\n else if ( afamily == 2 && afdpart_len <= 16 ) {\n addr_copy = ( guint8 * ) wmem_alloc0 ( wmem_file_scope ( ) , 16 ) ;\n tvb_memcpy ( tvb , ( guint8 * ) addr_copy , cur_offset , afdpart_len ) ;\n proto_tree_add_ipv6 ( rr_tree , hf_dns_apl_afdpart_ipv6 , tvb , cur_offset , afdpart_len , addr_copy ) ;\n }\n else {\n proto_tree_add_item ( rr_tree , hf_dns_apl_afdpart_data , tvb , cur_offset , afdpart_len , ENC_NA ) ;\n }\n cur_offset += afdpart_len ;\n rr_len -= afdpart_len ;\n }\n }\n break ;\n case T_DS : case T_CDS : case T_DLV : {\n int rr_len = data_len ;\n proto_tree_add_item ( rr_tree , hf_dns_ds_key_id , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n rr_len -= 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_ds_algorithm , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_ds_digest_type , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_ds_digest , tvb , cur_offset , rr_len , ENC_NA ) ;\n }\n break ;\n case T_SSHFP : {\n int rr_len = data_len ;\n proto_tree_add_item ( rr_tree , hf_dns_sshfp_algorithm , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_sshfp_fingerprint_type , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n if ( rr_len != 0 ) {\n proto_tree_add_item ( rr_tree , hf_dns_sshfp_fingerprint , tvb , cur_offset , rr_len , ENC_NA ) ;\n }\n }\n break ;\n case T_IPSECKEY : {\n int rr_len = data_len ;\n guint8 gw_type ;\n const guchar * gw ;\n int gw_name_len ;\n proto_tree_add_item ( rr_tree , hf_dns_ipseckey_gateway_precedence , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_ipseckey_gateway_type , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n gw_type = tvb_get_guint8 ( tvb , cur_offset ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_ipseckey_gateway_algorithm , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n switch ( gw_type ) {\n case 0 : break ;\n case 1 : proto_tree_add_item ( rr_tree , hf_dns_ipseckey_gateway_ipv4 , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n cur_offset += 4 ;\n rr_len -= 4 ;\n break ;\n case 2 : proto_tree_add_item ( rr_tree , hf_dns_ipseckey_gateway_ipv6 , tvb , cur_offset , 16 , ENC_NA ) ;\n cur_offset += 16 ;\n rr_len -= 16 ;\n break ;\n case 3 : gw_name_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & gw ) ;\n proto_tree_add_string ( rr_tree , hf_dns_ipseckey_gateway_dns , tvb , cur_offset , gw_name_len , gw ) ;\n cur_offset += gw_name_len ;\n rr_len -= gw_name_len ;\n break ;\n default : break ;\n }\n if ( rr_len != 0 ) {\n proto_tree_add_item ( rr_tree , hf_dns_ipseckey_public_key , tvb , cur_offset , rr_len , ENC_NA ) ;\n }\n }\n break ;\n case T_RRSIG : case T_SIG : {\n int rr_len = data_len ;\n const guchar * signer_name ;\n int signer_name_len ;\n proto_item * ti ;\n proto_tree_add_item ( rr_tree , hf_dns_rrsig_type_covered , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n rr_len -= 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_rrsig_algorithm , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_rrsig_labels , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n ti = proto_tree_add_item ( rr_tree , hf_dns_rrsig_original_ttl , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \" (%s)\" , time_secs_to_str ( wmem_packet_scope ( ) , tvb_get_ntohl ( tvb , cur_offset ) ) ) ;\n cur_offset += 4 ;\n rr_len -= 4 ;\n proto_tree_add_item ( rr_tree , hf_dns_rrsig_signature_expiration , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n cur_offset += 4 ;\n rr_len -= 4 ;\n proto_tree_add_item ( rr_tree , hf_dns_rrsig_signature_inception , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n cur_offset += 4 ;\n rr_len -= 4 ;\n proto_tree_add_item ( rr_tree , hf_dns_rrsig_key_tag , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n rr_len -= 2 ;\n signer_name_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & signer_name ) ;\n proto_tree_add_string ( rr_tree , hf_dns_rrsig_signers_name , tvb , cur_offset , signer_name_len , signer_name ) ;\n cur_offset += signer_name_len ;\n rr_len -= signer_name_len ;\n if ( rr_len != 0 ) {\n proto_tree_add_item ( rr_tree , hf_dns_rrsig_signature , tvb , cur_offset , rr_len , ENC_NA ) ;\n }\n }\n break ;\n case T_NSEC : {\n int rr_len = data_len ;\n const guchar * next_domain_name ;\n int next_domain_name_len ;\n next_domain_name_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & next_domain_name ) ;\n name_out = format_text ( next_domain_name , strlen ( next_domain_name ) ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name_out ) ;\n }\n proto_item_append_text ( trr , \", next domain name %s\" , name_out ) ;\n proto_tree_add_string ( rr_tree , hf_dns_nsec_next_domain_name , tvb , cur_offset , next_domain_name_len , name_out ) ;\n cur_offset += next_domain_name_len ;\n rr_len -= next_domain_name_len ;\n dissect_type_bitmap ( rr_tree , tvb , cur_offset , rr_len ) ;\n }\n break ;\n case T_DNSKEY : case T_CDNSKEY : {\n int rr_len = data_len ;\n proto_item * tf , * ti_gen ;\n proto_tree * flags_tree ;\n guint16 key_id ;\n guint8 algo ;\n tf = proto_tree_add_item ( rr_tree , hf_dns_dnskey_flags , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n flags_tree = proto_item_add_subtree ( tf , ett_key_flags ) ;\n proto_tree_add_item ( flags_tree , hf_dns_dnskey_flags_zone_key , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flags_tree , hf_dns_dnskey_flags_key_revoked , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flags_tree , hf_dns_dnskey_flags_secure_entry_point , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( flags_tree , hf_dns_dnskey_flags_reserved , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n rr_len -= 2 ;\n proto_tree_add_item ( flags_tree , hf_dns_dnskey_protocol , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n proto_tree_add_item ( flags_tree , hf_dns_dnskey_algorithm , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n algo = tvb_get_guint8 ( tvb , cur_offset ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n key_id = compute_key_id ( tvb , cur_offset - 4 , rr_len + 4 , algo ) ;\n ti_gen = proto_tree_add_uint ( rr_tree , hf_dns_dnskey_key_id , tvb , 0 , 0 , key_id ) ;\n PROTO_ITEM_SET_GENERATED ( ti_gen ) ;\n proto_tree_add_item ( rr_tree , hf_dns_dnskey_public_key , tvb , cur_offset , rr_len , ENC_NA ) ;\n }\n break ;\n case T_DHCID : {\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n proto_tree_add_item ( rr_tree , hf_dns_dhcid_rdata , tvb , cur_offset , data_len , ENC_NA ) ;\n }\n break ;\n case T_NSEC3 : {\n int rr_len , initial_offset = cur_offset ;\n guint8 salt_len , hash_len ;\n proto_item * flags_item ;\n proto_tree * flags_tree ;\n proto_tree_add_item ( rr_tree , hf_dns_nsec3_algo , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n flags_item = proto_tree_add_item ( rr_tree , hf_dns_nsec3_flags , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n flags_tree = proto_item_add_subtree ( flags_item , ett_nsec3_flags ) ;\n proto_tree_add_item ( flags_tree , hf_dns_nsec3_flag_optout , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_nsec3_iterations , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_nsec3_salt_length , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n salt_len = tvb_get_guint8 ( tvb , cur_offset ) ;\n cur_offset += 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_nsec3_salt_value , tvb , cur_offset , salt_len , ENC_NA ) ;\n cur_offset += salt_len ;\n proto_tree_add_item ( rr_tree , hf_dns_nsec3_hash_length , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n hash_len = tvb_get_guint8 ( tvb , cur_offset ) ;\n cur_offset += 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_nsec3_hash_value , tvb , cur_offset , hash_len , ENC_NA ) ;\n cur_offset += hash_len ;\n rr_len = data_len - ( cur_offset - initial_offset ) ;\n dissect_type_bitmap ( rr_tree , tvb , cur_offset , rr_len ) ;\n }\n break ;\n case T_NSEC3PARAM : {\n int salt_len ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n proto_tree_add_item ( rr_tree , hf_dns_nsec3_algo , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_nsec3_flags , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_nsec3_iterations , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_nsec3_salt_length , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n salt_len = tvb_get_guint8 ( tvb , cur_offset ) ;\n cur_offset += 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_nsec3_salt_value , tvb , cur_offset , salt_len , ENC_NA ) ;\n }\n break ;\n case T_TLSA : {\n int rr_len = data_len ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n proto_tree_add_item ( rr_tree , hf_dns_tlsa_certificate_usage , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset ++ ;\n rr_len -- ;\n proto_tree_add_item ( rr_tree , hf_dns_tlsa_selector , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset ++ ;\n rr_len -- ;\n proto_tree_add_item ( rr_tree , hf_dns_tlsa_matching_type , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset ++ ;\n rr_len -- ;\n proto_tree_add_item ( rr_tree , hf_dns_tlsa_certificate_association_data , tvb , cur_offset , rr_len , ENC_NA ) ;\n }\n break ;\n case T_HIP : {\n guint8 hit_len ;\n guint16 pk_len ;\n int rr_len = data_len ;\n int rendezvous_len ;\n const guchar * rend_server_dns_name ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name ) ;\n }\n hit_len = tvb_get_guint8 ( tvb , cur_offset ) ;\n proto_tree_add_item ( rr_tree , hf_dns_hip_hit_length , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_hip_pk_algo , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset += 1 ;\n rr_len -= 1 ;\n pk_len = tvb_get_ntohs ( tvb , cur_offset ) ;\n proto_tree_add_item ( rr_tree , hf_dns_hip_pk_length , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n rr_len -= 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_hip_hit , tvb , cur_offset , hit_len , ENC_NA ) ;\n cur_offset += hit_len ;\n rr_len -= hit_len ;\n proto_tree_add_item ( rr_tree , hf_dns_hip_pk , tvb , cur_offset , pk_len , ENC_NA ) ;\n cur_offset += pk_len ;\n rr_len -= pk_len ;\n while ( rr_len > 1 ) {\n rendezvous_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & rend_server_dns_name ) ;\n proto_tree_add_string ( rr_tree , hf_dns_hip_rendezvous_server , tvb , cur_offset , rendezvous_len , rend_server_dns_name ) ;\n cur_offset += rendezvous_len ;\n rr_len -= rendezvous_len ;\n }\n }\n break ;\n case T_OPENPGPKEY : {\n proto_tree_add_item ( rr_tree , hf_dns_openpgpkey , tvb , cur_offset , data_len , ENC_ASCII | ENC_NA ) ;\n }\n break ;\n case T_SPF : {\n int rr_len = data_len ;\n int spf_offset ;\n int spf_len ;\n spf_offset = cur_offset ;\n while ( rr_len != 0 ) {\n spf_len = tvb_get_guint8 ( tvb , spf_offset ) ;\n proto_tree_add_item ( rr_tree , hf_dns_spf_length , tvb , spf_offset , 1 , ENC_BIG_ENDIAN ) ;\n spf_offset += 1 ;\n rr_len -= 1 ;\n proto_tree_add_item ( rr_tree , hf_dns_spf , tvb , spf_offset , spf_len , ENC_ASCII | ENC_NA ) ;\n spf_offset += spf_len ;\n rr_len -= spf_len ;\n }\n }\n break ;\n case T_NID : {\n proto_tree_add_item ( rr_tree , hf_dns_ilnp_nodeid_preference , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_ilnp_nodeid , tvb , cur_offset , 8 , ENC_NA ) ;\n }\n break ;\n case T_L32 : {\n proto_tree_add_item ( rr_tree , hf_dns_ilnp_locator32_preference , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_ilnp_locator32 , tvb , cur_offset , 4 , ENC_NA ) ;\n }\n break ;\n case T_L64 : {\n proto_tree_add_item ( rr_tree , hf_dns_ilnp_locator64_preference , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_ilnp_locator64 , tvb , cur_offset , 8 , ENC_NA ) ;\n }\n break ;\n case T_LP : {\n int lp_len ;\n const guchar * lp_str ;\n proto_tree_add_item ( rr_tree , hf_dns_ilnp_locatorfqdn_preference , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n lp_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & lp_str ) ;\n proto_tree_add_string ( rr_tree , hf_dns_ilnp_locatorfqdn , tvb , cur_offset , lp_len , lp_str ) ;\n }\n break ;\n case T_EUI48 : {\n proto_tree_add_item ( rr_tree , hf_dns_eui48 , tvb , cur_offset , 6 , ENC_NA ) ;\n }\n break ;\n case T_EUI64 : {\n proto_tree_add_item ( rr_tree , hf_dns_eui64 , tvb , cur_offset , 8 , ENC_NA ) ;\n }\n break ;\n case T_TKEY : {\n const guchar * tkey_algname ;\n int tkey_algname_len ;\n guint16 tkey_mode , tkey_keylen , tkey_otherlen ;\n proto_tree * key_tree ;\n proto_item * key_item ;\n tkey_algname_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & tkey_algname ) ;\n proto_tree_add_string ( rr_tree , hf_dns_tkey_algo_name , tvb , cur_offset , tkey_algname_len , tkey_algname ) ;\n cur_offset += tkey_algname_len ;\n proto_tree_add_item ( rr_tree , hf_dns_tkey_signature_inception , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n cur_offset += 4 ;\n proto_tree_add_item ( rr_tree , hf_dns_tkey_signature_expiration , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n cur_offset += 4 ;\n proto_tree_add_item ( rr_tree , hf_dns_tkey_mode , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n tkey_mode = tvb_get_ntohs ( tvb , cur_offset ) ;\n cur_offset += 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_tkey_error , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_tkey_key_size , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n tkey_keylen = tvb_get_ntohs ( tvb , cur_offset ) ;\n cur_offset += 2 ;\n if ( tkey_keylen != 0 ) {\n key_item = proto_tree_add_item ( rr_tree , hf_dns_tkey_key_data , tvb , cur_offset , tkey_keylen , ENC_NA ) ;\n key_tree = proto_item_add_subtree ( key_item , ett_t_key ) ;\n switch ( tkey_mode ) {\n case TKEYMODE_GSSAPI : {\n tvbuff_t * gssapi_tvb ;\n gssapi_tvb = tvb_new_subset_length ( tvb , cur_offset , tkey_keylen ) ;\n if ( tvb_strneql ( gssapi_tvb , 0 , \"NTLMSSP\" , 7 ) == 0 ) {\n call_dissector ( ntlmssp_handle , gssapi_tvb , pinfo , key_tree ) ;\n }\n else {\n call_dissector ( gssapi_handle , gssapi_tvb , pinfo , key_tree ) ;\n }\n break ;\n }\n default : break ;\n }\n cur_offset += tkey_keylen ;\n }\n proto_tree_add_item ( rr_tree , hf_dns_tkey_other_size , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n tkey_otherlen = tvb_get_ntohs ( tvb , cur_offset ) ;\n cur_offset += 2 ;\n if ( tkey_otherlen != 0 ) {\n proto_tree_add_item ( rr_tree , hf_dns_tkey_other_data , tvb , cur_offset , tkey_otherlen , ENC_NA ) ;\n }\n }\n break ;\n case T_TSIG : {\n guint16 tsig_siglen , tsig_otherlen ;\n const guchar * tsig_algname ;\n int tsig_algname_len ;\n proto_item * ti ;\n tsig_algname_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & tsig_algname ) ;\n proto_tree_add_string ( rr_tree , hf_dns_tsig_algorithm_name , tvb , cur_offset , tsig_algname_len , tsig_algname ) ;\n cur_offset += tsig_algname_len ;\n ti = proto_tree_add_item ( rr_tree , hf_dns_tsig_time_signed , tvb , cur_offset , 6 , ENC_NA ) ;\n if ( tvb_get_ntohs ( tvb , cur_offset ) ) {\n proto_item_append_text ( ti , \" (high bits set)\" ) ;\n }\n cur_offset += 6 ;\n proto_tree_add_item ( rr_tree , hf_dns_tsig_fudge , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n tsig_siglen = tvb_get_ntohs ( tvb , cur_offset ) ;\n proto_tree_add_item ( rr_tree , hf_dns_tsig_mac_size , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n if ( tsig_siglen != 0 ) {\n proto_item * mac_item ;\n proto_tree * mac_tree ;\n tvbuff_t * sub_tvb ;\n mac_item = proto_tree_add_item ( rr_tree , hf_dns_tsig_mac , tvb , cur_offset , tsig_siglen , ENC_NA ) ;\n mac_tree = proto_item_add_subtree ( mac_item , ett_dns_mac ) ;\n sub_tvb = tvb_new_subset_length ( tvb , cur_offset , tsig_siglen ) ;\n if ( ! dissector_try_string ( dns_tsig_dissector_table , tsig_algname , sub_tvb , pinfo , mac_tree , NULL ) ) {\n expert_add_info_format ( pinfo , mac_item , & ei_dns_tsig_alg , \"No dissector for algorithm:%s\" , tsig_algname ) ;\n }\n cur_offset += tsig_siglen ;\n }\n proto_tree_add_item ( rr_tree , hf_dns_tsig_original_id , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_tsig_error , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n cur_offset += 2 ;\n proto_tree_add_item ( rr_tree , hf_dns_tsig_other_len , tvb , cur_offset , 2 , ENC_BIG_ENDIAN ) ;\n tsig_otherlen = tvb_get_ntohs ( tvb , cur_offset ) ;\n cur_offset += 2 ;\n if ( tsig_otherlen != 0 ) {\n proto_tree_add_item ( rr_tree , hf_dns_tsig_other_data , tvb , cur_offset , tsig_otherlen , ENC_NA ) ;\n }\n }\n break ;\n case T_CAA : {\n proto_item * caa_item ;\n proto_tree * caa_tree ;\n guint8 tag_len ;\n const char * tag ;\n gushort value_len ;\n const guchar * value ;\n int cur_hf = - 1 ;\n caa_item = proto_tree_add_item ( rr_tree , hf_dns_caa_flags , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n caa_tree = proto_item_add_subtree ( caa_item , ett_caa_flags ) ;\n proto_tree_add_item ( caa_tree , hf_dns_caa_flag_issuer_critical , tvb , cur_offset , 1 , ENC_BIG_ENDIAN ) ;\n cur_offset ++ ;\n tag_len = tvb_get_guint8 ( tvb , cur_offset ) ;\n tag = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , cur_offset + 1 , tag_len , ENC_ASCII | ENC_NA ) ;\n value_len = data_len - ( tag_len + 2 ) ;\n value = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , cur_offset + 1 + tag_len , value_len , ENC_ASCII | ENC_NA ) ;\n value = format_text ( value , value_len ) ;\n if ( strncmp ( tag , \"issue\" , tag_len ) == 0 ) {\n cur_hf = hf_dns_caa_issue ;\n }\n else if ( strncmp ( tag , \"issuewild\" , tag_len ) == 0 ) {\n cur_hf = hf_dns_caa_issuewild ;\n }\n else if ( strncmp ( tag , \"iodef\" , tag_len ) == 0 ) {\n cur_hf = hf_dns_caa_iodef ;\n }\n else {\n cur_hf = hf_dns_caa_unknown ;\n }\n caa_item = proto_tree_add_string ( rr_tree , cur_hf , tvb , cur_offset , 1 + tag_len + value_len , value ) ;\n caa_tree = proto_item_add_subtree ( caa_item , ett_caa_data ) ;\n proto_tree_add_uint ( caa_tree , hf_dns_caa_tag_length , tvb , cur_offset , 1 , tag_len ) ;\n proto_tree_add_string ( caa_tree , hf_dns_caa_tag , tvb , cur_offset + 1 , tag_len , tag ) ;\n proto_tree_add_string ( caa_tree , hf_dns_caa_value , tvb , cur_offset + 1 + tag_len , value_len , value ) ;\n }\n break ;\n case T_WINS : {\n int rr_len = data_len ;\n guint32 nservers ;\n proto_tree_add_item ( rr_tree , hf_dns_wins_local_flag , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n cur_offset += 4 ;\n rr_len -= 4 ;\n proto_tree_add_item ( rr_tree , hf_dns_wins_lookup_timeout , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n cur_offset += 4 ;\n rr_len -= 4 ;\n proto_tree_add_item ( rr_tree , hf_dns_wins_cache_timeout , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n cur_offset += 4 ;\n rr_len -= 4 ;\n proto_tree_add_item ( rr_tree , hf_dns_wins_nb_wins_servers , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n nservers = tvb_get_ntohl ( tvb , cur_offset ) ;\n cur_offset += 4 ;\n rr_len -= 4 ;\n while ( rr_len != 0 && nservers != 0 ) {\n proto_tree_add_item ( rr_tree , hf_dns_wins_server , tvb , cur_offset , 4 , ENC_NA ) ;\n cur_offset += 4 ;\n rr_len -= 4 ;\n nservers -- ;\n }\n }\n break ;\n case T_WINS_R : {\n const guchar * dname ;\n int dname_len ;\n proto_tree_add_item ( rr_tree , hf_dns_winsr_local_flag , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n cur_offset += 4 ;\n proto_tree_add_item ( rr_tree , hf_dns_winsr_lookup_timeout , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n cur_offset += 4 ;\n proto_tree_add_item ( rr_tree , hf_dns_winsr_cache_timeout , tvb , cur_offset , 4 , ENC_BIG_ENDIAN ) ;\n cur_offset += 4 ;\n dname_len = get_dns_name ( tvb , cur_offset , 0 , dns_data_offset , & dname ) ;\n name_out = format_text ( dname , strlen ( dname ) ) ;\n proto_tree_add_string ( rr_tree , hf_dns_winsr_name_result_domain , tvb , cur_offset , dname_len , name_out ) ;\n if ( cinfo != NULL ) {\n col_append_fstr ( cinfo , COL_INFO , \" %s\" , name_out ) ;\n }\n proto_item_append_text ( trr , \", name result domain %s\" , name_out ) ;\n }\n break ;\n default : expert_add_info_format ( pinfo , trr , & ei_dns_undecoded_option , \"Dissector for DNS Type (%d)\" \" code not implemented, Contact Wireshark developers\" \" if you want this supported\" , dns_type ) ;\n proto_tree_add_item ( rr_tree , hf_dns_data , tvb , cur_offset , data_len , ENC_NA ) ;\n break ;\n }\n data_offset += data_len ;\n return data_offset - data_start ;\n }"}
{"idx": 16252, "target": 0, "func": "static void cpu_update_state ( void * opaque , int running , RunState state ) {\n CPUX86State * env = opaque ;\n if ( running ) {\n env -> tsc_valid = false ;\n }\n }"}
{"idx": 16253, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FullscreenControllerInteractiveTest , DISABLED_FullscreenFileURL ) {\n ui_test_utils : : NavigateToURL ( browser ( ) , ui_test_utils : : GetTestUrl ( base : : FilePath ( base : : FilePath : : kCurrentDirectory ) , base : : FilePath ( kSimpleFile ) ) ) ;\n ASSERT_FALSE ( IsFullscreenPermissionRequested ( ) ) ;\n ASSERT_NO_FATAL_FAILURE ( ToggleTabFullscreen ( true ) ) ;\n ASSERT_FALSE ( IsFullscreenPermissionRequested ( ) ) ;\n ASSERT_NO_FATAL_FAILURE ( ToggleTabFullscreen ( false ) ) ;\n }"}
{"idx": 16254, "target": 0, "func": "static identification_t * parse_generalName ( chunk_t blob , int level0 ) {\n asn1_parser_t * parser ;\n chunk_t object ;\n int objectID ;\n identification_t * gn = NULL ;\n parser = asn1_parser_create ( generalNameObjects , blob ) ;\n parser -> set_top_level ( parser , level0 ) ;\n while ( parser -> iterate ( parser , & objectID , & object ) ) {\n id_type_t id_type = ID_ANY ;\n switch ( objectID ) {\n case GN_OBJ_RFC822_NAME : id_type = ID_RFC822_ADDR ;\n break ;\n case GN_OBJ_DNS_NAME : id_type = ID_FQDN ;\n break ;\n case GN_OBJ_URI : id_type = ID_DER_ASN1_GN_URI ;\n break ;\n case GN_OBJ_DIRECTORY_NAME : id_type = ID_DER_ASN1_DN ;\n break ;\n case GN_OBJ_IP_ADDRESS : switch ( object . len ) {\n case 4 : id_type = ID_IPV4_ADDR ;\n break ;\n case 16 : id_type = ID_IPV6_ADDR ;\n break ;\n default : break ;\n }\n break ;\n case GN_OBJ_OTHER_NAME : if ( ! parse_otherName ( & object , parser -> get_level ( parser ) + 1 , & id_type ) ) {\n goto end ;\n }\n break ;\n case GN_OBJ_X400_ADDRESS : case GN_OBJ_EDI_PARTY_NAME : case GN_OBJ_REGISTERED_ID : default : break ;\n }\n if ( id_type != ID_ANY ) {\n gn = identification_create_from_encoding ( id_type , object ) ;\n DBG2 ( DBG_ASN , \" '%Y'\" , gn ) ;\n goto end ;\n }\n }\n end : parser -> destroy ( parser ) ;\n return gn ;\n }"}
{"idx": 16255, "target": 0, "func": "static int decode_packet ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n WMAProDecodeCtx * s = avctx -> priv_data ;\n GetBitContext * gb = & s -> pgb ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n int num_bits_prev_frame ;\n int packet_sequence_number ;\n * got_frame_ptr = 0 ;\n if ( s -> packet_done || s -> packet_loss ) {\n s -> packet_done = 0 ;\n if ( buf_size < avctx -> block_align ) return 0 ;\n s -> next_packet_start = buf_size - avctx -> block_align ;\n buf_size = avctx -> block_align ;\n s -> buf_bit_size = buf_size << 3 ;\n init_get_bits ( gb , buf , s -> buf_bit_size ) ;\n packet_sequence_number = get_bits ( gb , 4 ) ;\n skip_bits ( gb , 2 ) ;\n num_bits_prev_frame = get_bits ( gb , s -> log2_frame_size ) ;\n av_dlog ( avctx , \"packet[%d]: nbpf %x\\n\" , avctx -> frame_number , num_bits_prev_frame ) ;\n if ( ! s -> packet_loss && ( ( s -> packet_sequence_number + 1 ) & 0xF ) != packet_sequence_number ) {\n s -> packet_loss = 1 ;\n av_log ( avctx , AV_LOG_ERROR , \"Packet loss detected! seq %x vs %x\\n\" , s -> packet_sequence_number , packet_sequence_number ) ;\n }\n s -> packet_sequence_number = packet_sequence_number ;\n if ( num_bits_prev_frame > 0 ) {\n int remaining_packet_bits = s -> buf_bit_size - get_bits_count ( gb ) ;\n if ( num_bits_prev_frame >= remaining_packet_bits ) {\n num_bits_prev_frame = remaining_packet_bits ;\n s -> packet_done = 1 ;\n }\n save_bits ( s , gb , num_bits_prev_frame , 1 ) ;\n av_dlog ( avctx , \"accumulated %x bits of frame data\\n\" , s -> num_saved_bits - s -> frame_offset ) ;\n if ( ! s -> packet_loss ) decode_frame ( s , data , got_frame_ptr ) ;\n }\n else if ( s -> num_saved_bits - s -> frame_offset ) {\n av_dlog ( avctx , \"ignoring %x previously saved bits\\n\" , s -> num_saved_bits - s -> frame_offset ) ;\n }\n if ( s -> packet_loss ) {\n s -> num_saved_bits = 0 ;\n s -> packet_loss = 0 ;\n }\n }\n else {\n int frame_size ;\n s -> buf_bit_size = ( avpkt -> size - s -> next_packet_start ) << 3 ;\n init_get_bits ( gb , avpkt -> data , s -> buf_bit_size ) ;\n skip_bits ( gb , s -> packet_offset ) ;\n if ( s -> len_prefix && remaining_bits ( s , gb ) > s -> log2_frame_size && ( frame_size = show_bits ( gb , s -> log2_frame_size ) ) && frame_size <= remaining_bits ( s , gb ) ) {\n save_bits ( s , gb , frame_size , 0 ) ;\n s -> packet_done = ! decode_frame ( s , data , got_frame_ptr ) ;\n }\n else if ( ! s -> len_prefix && s -> num_saved_bits > get_bits_count ( & s -> gb ) ) {\n s -> packet_done = ! decode_frame ( s , data , got_frame_ptr ) ;\n }\n else s -> packet_done = 1 ;\n }\n if ( s -> packet_done && ! s -> packet_loss && remaining_bits ( s , gb ) > 0 ) {\n save_bits ( s , gb , remaining_bits ( s , gb ) , 0 ) ;\n }\n s -> packet_offset = get_bits_count ( gb ) & 7 ;\n if ( s -> packet_loss ) return AVERROR_INVALIDDATA ;\n return get_bits_count ( gb ) >> 3 ;\n }"}
{"idx": 16256, "target": 1, "func": "static Asn1Generic * DecodeAsn1DerOctetString ( const unsigned char * buffer , uint32_t max_size , uint8_t depth , uint32_t * errcode ) {\n const unsigned char * d_ptr = buffer ;\n uint32_t length , numbytes ;\n Asn1Generic * a ;\n unsigned char c ;\n d_ptr ++ ;\n c = d_ptr [ 0 ] ;\n if ( ( c & ( 1 << 7 ) ) >> 7 == 0 ) {\n length = c ;\n d_ptr ++ ;\n }\n else {\n numbytes = c & 0x7f ;\n d_ptr ++ ;\n if ( DecodeAsn1BuildValue ( & d_ptr , & length , numbytes , errcode ) == - 1 ) {\n return NULL ;\n }\n }\n if ( length > max_size ) return NULL ;\n a = Asn1GenericNew ( ) ;\n if ( a == NULL ) return NULL ;\n a -> type = ASN1_OCTETSTRING ;\n a -> strlen = length ;\n a -> str = SCMalloc ( length + 1 ) ;\n if ( a -> str == NULL ) {\n SCFree ( a ) ;\n return NULL ;\n }\n memcpy ( a -> str , ( const char * ) d_ptr , length ) ;\n a -> str [ length ] = 0 ;\n d_ptr += length ;\n a -> length = ( d_ptr - buffer ) ;\n return a ;\n }"}
{"idx": 16257, "target": 0, "func": "int dissect_h245_QOSCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_QOSCapability , QOSCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 16258, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( SiteDetailsBrowserTest , IsolateExtensionsHostedApps ) {\n GURL app_with_web_iframe_url = embedded_test_server ( ) -> GetURL ( \"app.org\" , \"/cross_site_iframe_factory.html?app.org(b.com)\" ) ;\n GURL app_in_web_iframe_url = embedded_test_server ( ) -> GetURL ( \"b.com\" , \"/cross_site_iframe_factory.html?b.com(app.org)\" ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , app_with_web_iframe_url ) ;\n scoped_refptr < TestMemoryDetails > details = new TestMemoryDetails ( ) ;\n details -> StartFetchAndWait ( ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.CurrentRendererProcessCount\" ) , HasOneSample ( GetRenderProcessCount ( ) ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateNothingProcessCountEstimate\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountEstimate\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountLowerBound\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountNoLimit\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( GetRenderProcessCount ( ) , DependingOnPolicy ( 1 , 1 , 2 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateAllSitesProcessCountEstimate\" ) , HasOneSample ( 2 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateAllSitesProcessCountLowerBound\" ) , HasOneSample ( 2 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateAllSitesProcessCountNoLimit\" ) , HasOneSample ( 2 ) ) ;\n EXPECT_THAT ( GetRenderProcessCount ( ) , DependingOnPolicy ( 1 , 1 , 2 ) ) ;\n EXPECT_THAT ( details -> GetOutOfProcessIframeCount ( ) , DependingOnPolicy ( 0 , 0 , 1 ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , app_in_web_iframe_url ) ;\n details = new TestMemoryDetails ( ) ;\n details -> StartFetchAndWait ( ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.CurrentRendererProcessCount\" ) , HasOneSample ( GetRenderProcessCount ( ) ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateNothingProcessCountEstimate\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountEstimate\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountLowerBound\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountNoLimit\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( GetRenderProcessCount ( ) , DependingOnPolicy ( 1 , 1 , 2 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateAllSitesProcessCountEstimate\" ) , HasOneSample ( 2 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateAllSitesProcessCountLowerBound\" ) , HasOneSample ( 2 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateAllSitesProcessCountNoLimit\" ) , HasOneSample ( 2 ) ) ;\n EXPECT_THAT ( GetRenderProcessCount ( ) , DependingOnPolicy ( 1 , 1 , 2 ) ) ;\n EXPECT_THAT ( details -> GetOutOfProcessIframeCount ( ) , DependingOnPolicy ( 0 , 0 , 1 ) ) ;\n CreateHostedApp ( \"App\" , GURL ( \"http://app.org\" ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , app_with_web_iframe_url ) ;\n details = new TestMemoryDetails ( ) ;\n details -> StartFetchAndWait ( ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.CurrentRendererProcessCount\" ) , HasOneSample ( GetRenderProcessCount ( ) ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateNothingProcessCountEstimate\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountEstimate\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountLowerBound\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountNoLimit\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( GetRenderProcessCount ( ) , DependingOnPolicy ( 1 , 1 , 2 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateAllSitesProcessCountEstimate\" ) , HasOneSample ( 2 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateAllSitesProcessCountLowerBound\" ) , HasOneSample ( 2 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateAllSitesProcessCountNoLimit\" ) , HasOneSample ( 2 ) ) ;\n EXPECT_THAT ( GetRenderProcessCount ( ) , DependingOnPolicy ( 1 , 1 , 2 ) ) ;\n EXPECT_THAT ( details -> GetOutOfProcessIframeCount ( ) , DependingOnPolicy ( 0 , 0 , 1 ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , app_in_web_iframe_url ) ;\n details = new TestMemoryDetails ( ) ;\n details -> StartFetchAndWait ( ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.CurrentRendererProcessCount\" ) , HasOneSample ( GetRenderProcessCount ( ) ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateNothingProcessCountEstimate\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountEstimate\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountLowerBound\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateExtensionsProcessCountNoLimit\" ) , HasOneSample ( 1 ) ) ;\n EXPECT_THAT ( GetRenderProcessCount ( ) , DependingOnPolicy ( 1 , 1 , 2 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateAllSitesProcessCountEstimate\" ) , HasOneSample ( 2 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateAllSitesProcessCountLowerBound\" ) , HasOneSample ( 2 ) ) ;\n EXPECT_THAT ( details -> uma ( ) -> GetAllSamples ( \"SiteIsolation.IsolateAllSitesProcessCountNoLimit\" ) , HasOneSample ( 2 ) ) ;\n EXPECT_THAT ( GetRenderProcessCount ( ) , DependingOnPolicy ( 1 , 1 , 2 ) ) ;\n EXPECT_THAT ( details -> GetOutOfProcessIframeCount ( ) , DependingOnPolicy ( 0 , 0 , 1 ) ) ;\n }"}
{"idx": 16259, "target": 1, "func": "static inline picture_t * ffmpeg_NewPictBuf ( decoder_t * p_dec , AVCodecContext * p_context ) {\n decoder_sys_t * p_sys = p_dec -> p_sys ;\n int width = p_context -> coded_width ;\n int height = p_context -> coded_height ;\n if ( p_sys -> p_va == NULL ) {\n int aligns [ AV_NUM_DATA_POINTERS ] ;\n avcodec_align_dimensions2 ( p_context , & width , & height , aligns ) ;\n }\n if ( width == 0 || height == 0 || width > 8192 || height > 8192 ) {\n msg_Err ( p_dec , \"Invalid frame size %dx%d.\" , width , height ) ;\n return NULL ;\n }\n p_dec -> fmt_out . video . i_width = width ;\n p_dec -> fmt_out . video . i_height = height ;\n if ( width != p_context -> width || height != p_context -> height ) {\n p_dec -> fmt_out . video . i_visible_width = p_context -> width ;\n p_dec -> fmt_out . video . i_visible_height = p_context -> height ;\n }\n else {\n p_dec -> fmt_out . video . i_visible_width = width ;\n p_dec -> fmt_out . video . i_visible_height = height ;\n }\n if ( ! p_sys -> p_va && GetVlcChroma ( & p_dec -> fmt_out . video , p_context -> pix_fmt ) ) {\n p_dec -> fmt_out . video . i_chroma = VLC_CODEC_I420 ;\n }\n p_dec -> fmt_out . i_codec = p_dec -> fmt_out . video . i_chroma ;\n if ( p_dec -> fmt_in . video . i_sar_num > 0 && p_dec -> fmt_in . video . i_sar_den > 0 ) {\n p_dec -> fmt_out . video . i_sar_num = p_dec -> fmt_in . video . i_sar_num ;\n p_dec -> fmt_out . video . i_sar_den = p_dec -> fmt_in . video . i_sar_den ;\n }\n else {\n p_dec -> fmt_out . video . i_sar_num = p_context -> sample_aspect_ratio . num ;\n p_dec -> fmt_out . video . i_sar_den = p_context -> sample_aspect_ratio . den ;\n if ( ! p_dec -> fmt_out . video . i_sar_num || ! p_dec -> fmt_out . video . i_sar_den ) {\n p_dec -> fmt_out . video . i_sar_num = 1 ;\n p_dec -> fmt_out . video . i_sar_den = 1 ;\n }\n }\n if ( p_dec -> fmt_in . video . i_frame_rate > 0 && p_dec -> fmt_in . video . i_frame_rate_base > 0 ) {\n p_dec -> fmt_out . video . i_frame_rate = p_dec -> fmt_in . video . i_frame_rate ;\n p_dec -> fmt_out . video . i_frame_rate_base = p_dec -> fmt_in . video . i_frame_rate_base ;\n }\n # if LIBAVCODEC_VERSION_CHECK ( 56 , 5 , 0 , 7 , 100 ) else if ( p_context -> framerate . num > 0 && p_context -> framerate . den > 0 ) {\n p_dec -> fmt_out . video . i_frame_rate = p_context -> framerate . num ;\n p_dec -> fmt_out . video . i_frame_rate_base = p_context -> framerate . den ;\n # if LIBAVCODEC_VERSION_MICRO < 100 p_dec -> fmt_out . video . i_frame_rate_base *= __MAX ( p_context -> ticks_per_frame , 1 ) ;\n # endif }\n # endif else if ( p_context -> time_base . num > 0 && p_context -> time_base . den > 0 ) {\n p_dec -> fmt_out . video . i_frame_rate = p_context -> time_base . den ;\n p_dec -> fmt_out . video . i_frame_rate_base = p_context -> time_base . num * __MAX ( p_context -> ticks_per_frame , 1 ) ;\n }\n return decoder_NewPicture ( p_dec ) ;\n }"}
{"idx": 16260, "target": 0, "func": "TEST_F ( HistoryQuickProviderTest , MultiTermTitleMatch ) {\n std : : vector < std : : string > expected_urls ;\n expected_urls . push_back ( \"http://cda.com/Dogs%20Cats%20Gorillas%20Sea%20Slugs%20and%20Mice\" ) ;\n RunTest ( ASCIIToUTF16 ( \"mice other animals\" ) , false , expected_urls , false , ASCIIToUTF16 ( \"cda.com/Dogs Cats Gorillas Sea Slugs and Mice\" ) , base : : string16 ( ) ) ;\n }"}
{"idx": 16261, "target": 0, "func": "static void * i_alloc_struct_array ( gs_memory_t * mem , uint num_elements , gs_memory_type_ptr_t pstype , client_name_t cname ) {\n gs_ref_memory_t * const imem = ( gs_ref_memory_t * ) mem ;\n obj_header_t * obj ;\n ulong lsize ;\n # ifdef MEMENTO if ( Memento_failThisEvent ( ) ) return NULL ;\n # endif ALLOC_CHECK_SIZE ( mem , pstype ) ;\n # ifdef DEBUG if ( pstype -> enum_ptrs == basic_enum_ptrs ) {\n dmprintf2 ( mem , \" i_alloc_struct_array: called with incorrect structure type (not element), struct='%s', client='%s'\\n\" , pstype -> sname , cname ) ;\n return NULL ;\n }\n # endif if ( alloc_array_check_size ( num_elements , pstype -> ssize , & lsize ) == false ) return NULL ;\n obj = alloc_obj ( imem , lsize , pstype , ALLOC_DIRECT , cname ) ;\n if_debug7m ( 'A' , mem , \"[a%d:+<.]%s %s*(%lu=%u*%u) = 0x%lx\\n\" , alloc_trace_space ( imem ) , client_name_string ( cname ) , struct_type_name_string ( pstype ) , ( ulong ) num_elements * pstype -> ssize , num_elements , pstype -> ssize , ( ulong ) obj ) ;\n return ( char * ) obj ;\n }"}
{"idx": 16262, "target": 0, "func": "void kvm_arch_update_guest_debug ( CPUState * cpu , struct kvm_guest_debug * dbg ) {\n const uint8_t type_code [ ] = {\n [ GDB_BREAKPOINT_HW ] = 0x0 , [ GDB_WATCHPOINT_WRITE ] = 0x1 , [ GDB_WATCHPOINT_ACCESS ] = 0x3 }\n ;\n const uint8_t len_code [ ] = {\n [ 1 ] = 0x0 , [ 2 ] = 0x1 , [ 4 ] = 0x3 , [ 8 ] = 0x2 }\n ;\n int n ;\n if ( kvm_sw_breakpoints_active ( cpu ) ) {\n dbg -> control |= KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE_SW_BP ;\n }\n if ( nb_hw_breakpoint > 0 ) {\n dbg -> control |= KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE_HW_BP ;\n dbg -> arch . debugreg [ 7 ] = 0x0600 ;\n for ( n = 0 ;\n n < nb_hw_breakpoint ;\n n ++ ) {\n dbg -> arch . debugreg [ n ] = hw_breakpoint [ n ] . addr ;\n dbg -> arch . debugreg [ 7 ] |= ( 2 << ( n * 2 ) ) | ( type_code [ hw_breakpoint [ n ] . type ] << ( 16 + n * 4 ) ) | ( ( uint32_t ) len_code [ hw_breakpoint [ n ] . len ] << ( 18 + n * 4 ) ) ;\n }\n }\n }"}
{"idx": 16263, "target": 0, "func": "static int set_SUSP_CE ( unsigned char * p , int location , int offset , int size ) {\n unsigned char * bp = p - 1 ;\n bp [ 1 ] = 'C' ;\n bp [ 2 ] = 'E' ;\n bp [ 3 ] = RR_CE_SIZE ;\n bp [ 4 ] = 1 ;\n set_num_733 ( bp + 5 , location ) ;\n set_num_733 ( bp + 13 , offset ) ;\n set_num_733 ( bp + 21 , size ) ;\n return ( RR_CE_SIZE ) ;\n }"}
{"idx": 16264, "target": 0, "func": "static void U_CALLCONV ucnv_ASCIIFromUTF8 ( UConverterFromUnicodeArgs * pFromUArgs , UConverterToUnicodeArgs * pToUArgs , UErrorCode * pErrorCode ) {\n const uint8_t * source , * sourceLimit ;\n uint8_t * target ;\n int32_t targetCapacity , length ;\n uint8_t c ;\n if ( pToUArgs -> converter -> toUnicodeStatus != 0 ) {\n * pErrorCode = U_USING_DEFAULT_WARNING ;\n return ;\n }\n source = ( const uint8_t * ) pToUArgs -> source ;\n sourceLimit = ( const uint8_t * ) pToUArgs -> sourceLimit ;\n target = ( uint8_t * ) pFromUArgs -> target ;\n targetCapacity = ( int32_t ) ( pFromUArgs -> targetLimit - pFromUArgs -> target ) ;\n length = ( int32_t ) ( sourceLimit - source ) ;\n if ( length < targetCapacity ) {\n targetCapacity = length ;\n }\n if ( targetCapacity >= 16 ) {\n int32_t count , loops ;\n uint8_t oredChars ;\n loops = count = targetCapacity >> 4 ;\n do {\n oredChars = * target ++ = * source ++ ;\n oredChars |= * target ++ = * source ++ ;\n oredChars |= * target ++ = * source ++ ;\n oredChars |= * target ++ = * source ++ ;\n oredChars |= * target ++ = * source ++ ;\n oredChars |= * target ++ = * source ++ ;\n oredChars |= * target ++ = * source ++ ;\n oredChars |= * target ++ = * source ++ ;\n oredChars |= * target ++ = * source ++ ;\n oredChars |= * target ++ = * source ++ ;\n oredChars |= * target ++ = * source ++ ;\n oredChars |= * target ++ = * source ++ ;\n oredChars |= * target ++ = * source ++ ;\n oredChars |= * target ++ = * source ++ ;\n oredChars |= * target ++ = * source ++ ;\n oredChars |= * target ++ = * source ++ ;\n if ( oredChars > 0x7f ) {\n source -= 16 ;\n target -= 16 ;\n break ;\n }\n }\n while ( -- count > 0 ) ;\n count = loops - count ;\n targetCapacity -= 16 * count ;\n }\n c = 0 ;\n while ( targetCapacity > 0 && ( c = * source ) <= 0x7f ) {\n ++ source ;\n * target ++ = c ;\n -- targetCapacity ;\n }\n if ( c > 0x7f ) {\n * pErrorCode = U_USING_DEFAULT_WARNING ;\n }\n else if ( source < sourceLimit && target >= ( const uint8_t * ) pFromUArgs -> targetLimit ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n pToUArgs -> source = ( const char * ) source ;\n pFromUArgs -> target = ( char * ) target ;\n }"}
{"idx": 16265, "target": 0, "func": "static int selinux_bprm_set_creds ( struct linux_binprm * bprm ) {\n const struct task_security_struct * old_tsec ;\n struct task_security_struct * new_tsec ;\n struct inode_security_struct * isec ;\n struct common_audit_data ad ;\n struct inode * inode = file_inode ( bprm -> file ) ;\n int rc ;\n if ( bprm -> cred_prepared ) return 0 ;\n old_tsec = current_security ( ) ;\n new_tsec = bprm -> cred -> security ;\n isec = inode_security ( inode ) ;\n new_tsec -> sid = old_tsec -> sid ;\n new_tsec -> osid = old_tsec -> sid ;\n new_tsec -> create_sid = 0 ;\n new_tsec -> keycreate_sid = 0 ;\n new_tsec -> sockcreate_sid = 0 ;\n if ( old_tsec -> exec_sid ) {\n new_tsec -> sid = old_tsec -> exec_sid ;\n new_tsec -> exec_sid = 0 ;\n rc = check_nnp_nosuid ( bprm , old_tsec , new_tsec ) ;\n if ( rc ) return rc ;\n }\n else {\n rc = security_transition_sid ( old_tsec -> sid , isec -> sid , SECCLASS_PROCESS , NULL , & new_tsec -> sid ) ;\n if ( rc ) return rc ;\n rc = check_nnp_nosuid ( bprm , old_tsec , new_tsec ) ;\n if ( rc ) new_tsec -> sid = old_tsec -> sid ;\n }\n ad . type = LSM_AUDIT_DATA_FILE ;\n ad . u . file = bprm -> file ;\n if ( new_tsec -> sid == old_tsec -> sid ) {\n rc = avc_has_perm ( old_tsec -> sid , isec -> sid , SECCLASS_FILE , FILE__EXECUTE_NO_TRANS , & ad ) ;\n if ( rc ) return rc ;\n }\n else {\n rc = avc_has_perm ( old_tsec -> sid , new_tsec -> sid , SECCLASS_PROCESS , PROCESS__TRANSITION , & ad ) ;\n if ( rc ) return rc ;\n rc = avc_has_perm ( new_tsec -> sid , isec -> sid , SECCLASS_FILE , FILE__ENTRYPOINT , & ad ) ;\n if ( rc ) return rc ;\n if ( bprm -> unsafe & LSM_UNSAFE_SHARE ) {\n rc = avc_has_perm ( old_tsec -> sid , new_tsec -> sid , SECCLASS_PROCESS , PROCESS__SHARE , NULL ) ;\n if ( rc ) return - EPERM ;\n }\n if ( bprm -> unsafe & ( LSM_UNSAFE_PTRACE | LSM_UNSAFE_PTRACE_CAP ) ) {\n u32 ptsid = ptrace_parent_sid ( current ) ;\n if ( ptsid != 0 ) {\n rc = avc_has_perm ( ptsid , new_tsec -> sid , SECCLASS_PROCESS , PROCESS__PTRACE , NULL ) ;\n if ( rc ) return - EPERM ;\n }\n }\n bprm -> per_clear |= PER_CLEAR_ON_SETID ;\n }\n return 0 ;\n }"}
{"idx": 16266, "target": 0, "func": "static struct archive_string_conv * create_sconv_object ( const char * fc , const char * tc , unsigned current_codepage , int flag ) {\n struct archive_string_conv * sc ;\n sc = calloc ( 1 , sizeof ( * sc ) ) ;\n if ( sc == NULL ) return ( NULL ) ;\n sc -> next = NULL ;\n sc -> from_charset = strdup ( fc ) ;\n if ( sc -> from_charset == NULL ) {\n free ( sc ) ;\n return ( NULL ) ;\n }\n sc -> to_charset = strdup ( tc ) ;\n if ( sc -> to_charset == NULL ) {\n free ( sc -> from_charset ) ;\n free ( sc ) ;\n return ( NULL ) ;\n }\n archive_string_init ( & sc -> utftmp ) ;\n if ( flag & SCONV_TO_CHARSET ) {\n sc -> from_cp = current_codepage ;\n sc -> to_cp = make_codepage_from_charset ( tc ) ;\n # if defined ( _WIN32 ) && ! defined ( __CYGWIN__ ) if ( IsValidCodePage ( sc -> to_cp ) ) flag |= SCONV_WIN_CP ;\n # endif }\n else if ( flag & SCONV_FROM_CHARSET ) {\n sc -> to_cp = current_codepage ;\n sc -> from_cp = make_codepage_from_charset ( fc ) ;\n # if defined ( _WIN32 ) && ! defined ( __CYGWIN__ ) if ( IsValidCodePage ( sc -> from_cp ) ) flag |= SCONV_WIN_CP ;\n # endif }\n if ( strcmp ( fc , tc ) == 0 || ( sc -> from_cp != ( unsigned ) - 1 && sc -> from_cp == sc -> to_cp ) ) sc -> same = 1 ;\n else sc -> same = 0 ;\n if ( strcmp ( tc , \"UTF-8\" ) == 0 ) flag |= SCONV_TO_UTF8 ;\n else if ( strcmp ( tc , \"UTF-16BE\" ) == 0 ) flag |= SCONV_TO_UTF16BE ;\n else if ( strcmp ( tc , \"UTF-16LE\" ) == 0 ) flag |= SCONV_TO_UTF16LE ;\n if ( strcmp ( fc , \"UTF-8\" ) == 0 ) flag |= SCONV_FROM_UTF8 ;\n else if ( strcmp ( fc , \"UTF-16BE\" ) == 0 ) flag |= SCONV_FROM_UTF16BE ;\n else if ( strcmp ( fc , \"UTF-16LE\" ) == 0 ) flag |= SCONV_FROM_UTF16LE ;\n # if defined ( _WIN32 ) && ! defined ( __CYGWIN__ ) if ( sc -> to_cp == CP_UTF8 ) flag |= SCONV_TO_UTF8 ;\n else if ( sc -> to_cp == CP_UTF16BE ) flag |= SCONV_TO_UTF16BE | SCONV_WIN_CP ;\n else if ( sc -> to_cp == CP_UTF16LE ) flag |= SCONV_TO_UTF16LE | SCONV_WIN_CP ;\n if ( sc -> from_cp == CP_UTF8 ) flag |= SCONV_FROM_UTF8 ;\n else if ( sc -> from_cp == CP_UTF16BE ) flag |= SCONV_FROM_UTF16BE | SCONV_WIN_CP ;\n else if ( sc -> from_cp == CP_UTF16LE ) flag |= SCONV_FROM_UTF16LE | SCONV_WIN_CP ;\n # endif if ( ( flag & SCONV_FROM_CHARSET ) && ( flag & ( SCONV_FROM_UTF16 | SCONV_FROM_UTF8 ) ) ) {\n # if defined ( __APPLE__ ) if ( flag & SCONV_TO_UTF8 ) flag |= SCONV_NORMALIZATION_D ;\n else # endif flag |= SCONV_NORMALIZATION_C ;\n }\n # if defined ( __APPLE__ ) if ( ( flag & SCONV_TO_CHARSET ) && ( flag & ( SCONV_FROM_UTF16 | SCONV_FROM_UTF8 ) ) && ! ( flag & ( SCONV_TO_UTF16 | SCONV_TO_UTF8 ) ) ) flag |= SCONV_NORMALIZATION_C ;\n if ( ( flag & SCONV_FROM_CHARSET ) && ! ( flag & ( SCONV_FROM_UTF16 | SCONV_FROM_UTF8 ) ) && ( flag & SCONV_TO_UTF8 ) ) flag |= SCONV_NORMALIZATION_D ;\n # endif # if defined ( HAVE_ICONV ) sc -> cd_w = ( iconv_t ) - 1 ;\n if ( ( ( flag & ( SCONV_TO_UTF8 | SCONV_TO_UTF16 ) ) && ( flag & ( SCONV_FROM_UTF8 | SCONV_FROM_UTF16 ) ) ) || ( flag & SCONV_WIN_CP ) ) {\n sc -> cd = ( iconv_t ) - 1 ;\n }\n else {\n sc -> cd = iconv_open ( tc , fc ) ;\n if ( sc -> cd == ( iconv_t ) - 1 && ( sc -> flag & SCONV_BEST_EFFORT ) ) {\n if ( strcmp ( tc , \"CP932\" ) == 0 ) sc -> cd = iconv_open ( \"SJIS\" , fc ) ;\n else if ( strcmp ( fc , \"CP932\" ) == 0 ) sc -> cd = iconv_open ( tc , \"SJIS\" ) ;\n }\n # if defined ( _WIN32 ) && ! defined ( __CYGWIN__ ) if ( flag & SCONV_FROM_CHARSET ) {\n sc -> cd_w = iconv_open ( \"UTF-8\" , fc ) ;\n if ( sc -> cd_w == ( iconv_t ) - 1 && ( sc -> flag & SCONV_BEST_EFFORT ) ) {\n if ( strcmp ( fc , \"CP932\" ) == 0 ) sc -> cd_w = iconv_open ( \"UTF-8\" , \"SJIS\" ) ;\n }\n }\n # endif }\n # endif sc -> flag = flag ;\n setup_converter ( sc ) ;\n return ( sc ) ;\n }"}
{"idx": 16267, "target": 0, "func": "static int kvm_put_debugregs ( X86CPU * cpu ) {\n CPUX86State * env = & cpu -> env ;\n struct kvm_debugregs dbgregs ;\n int i ;\n if ( ! kvm_has_debugregs ( ) ) {\n return 0 ;\n }\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n dbgregs . db [ i ] = env -> dr [ i ] ;\n }\n dbgregs . dr6 = env -> dr [ 6 ] ;\n dbgregs . dr7 = env -> dr [ 7 ] ;\n dbgregs . flags = 0 ;\n return kvm_vcpu_ioctl ( CPU ( cpu ) , KVM_SET_DEBUGREGS , & dbgregs ) ;\n }"}
{"idx": 16268, "target": 1, "func": "static int ohci_service_iso_td ( OHCIState * ohci , struct ohci_ed * ed , int completion ) {\n int dir ;\n size_t len = 0 ;\n const char * str = NULL ;\n int pid ;\n int ret ;\n int i ;\n USBDevice * dev ;\n USBEndpoint * ep ;\n struct ohci_iso_td iso_td ;\n uint32_t addr ;\n uint16_t starting_frame ;\n int16_t relative_frame_number ;\n int frame_count ;\n uint32_t start_offset , next_offset , end_offset = 0 ;\n uint32_t start_addr , end_addr ;\n addr = ed -> head & OHCI_DPTR_MASK ;\n if ( ohci_read_iso_td ( ohci , addr , & iso_td ) ) {\n trace_usb_ohci_iso_td_read_failed ( addr ) ;\n ohci_die ( ohci ) ;\n return 0 ;\n }\n starting_frame = OHCI_BM ( iso_td . flags , TD_SF ) ;\n frame_count = OHCI_BM ( iso_td . flags , TD_FC ) ;\n relative_frame_number = USUB ( ohci -> frame_number , starting_frame ) ;\n trace_usb_ohci_iso_td_head ( ed -> head & OHCI_DPTR_MASK , ed -> tail & OHCI_DPTR_MASK , iso_td . flags , iso_td . bp , iso_td . next , iso_td . be , ohci -> frame_number , starting_frame , frame_count , relative_frame_number ) ;\n trace_usb_ohci_iso_td_head_offset ( iso_td . offset [ 0 ] , iso_td . offset [ 1 ] , iso_td . offset [ 2 ] , iso_td . offset [ 3 ] , iso_td . offset [ 4 ] , iso_td . offset [ 5 ] , iso_td . offset [ 6 ] , iso_td . offset [ 7 ] ) ;\n if ( relative_frame_number < 0 ) {\n trace_usb_ohci_iso_td_relative_frame_number_neg ( relative_frame_number ) ;\n return 1 ;\n }\n else if ( relative_frame_number > frame_count ) {\n trace_usb_ohci_iso_td_relative_frame_number_big ( relative_frame_number , frame_count ) ;\n OHCI_SET_BM ( iso_td . flags , TD_CC , OHCI_CC_DATAOVERRUN ) ;\n ed -> head &= ~ OHCI_DPTR_MASK ;\n ed -> head |= ( iso_td . next & OHCI_DPTR_MASK ) ;\n iso_td . next = ohci -> done ;\n ohci -> done = addr ;\n i = OHCI_BM ( iso_td . flags , TD_DI ) ;\n if ( i < ohci -> done_count ) ohci -> done_count = i ;\n if ( ohci_put_iso_td ( ohci , addr , & iso_td ) ) {\n ohci_die ( ohci ) ;\n return 1 ;\n }\n return 0 ;\n }\n dir = OHCI_BM ( ed -> flags , ED_D ) ;\n switch ( dir ) {\n case OHCI_TD_DIR_IN : str = \"in\" ;\n pid = USB_TOKEN_IN ;\n break ;\n case OHCI_TD_DIR_OUT : str = \"out\" ;\n pid = USB_TOKEN_OUT ;\n break ;\n case OHCI_TD_DIR_SETUP : str = \"setup\" ;\n pid = USB_TOKEN_SETUP ;\n break ;\n default : trace_usb_ohci_iso_td_bad_direction ( dir ) ;\n return 1 ;\n }\n if ( ! iso_td . bp || ! iso_td . be ) {\n trace_usb_ohci_iso_td_bad_bp_be ( iso_td . bp , iso_td . be ) ;\n return 1 ;\n }\n start_offset = iso_td . offset [ relative_frame_number ] ;\n next_offset = iso_td . offset [ relative_frame_number + 1 ] ;\n if ( ! ( OHCI_BM ( start_offset , TD_PSW_CC ) & 0xe ) || ( ( relative_frame_number < frame_count ) && ! ( OHCI_BM ( next_offset , TD_PSW_CC ) & 0xe ) ) ) {\n trace_usb_ohci_iso_td_bad_cc_not_accessed ( start_offset , next_offset ) ;\n return 1 ;\n }\n if ( ( relative_frame_number < frame_count ) && ( start_offset > next_offset ) ) {\n trace_usb_ohci_iso_td_bad_cc_overrun ( start_offset , next_offset ) ;\n return 1 ;\n }\n if ( ( start_offset & 0x1000 ) == 0 ) {\n start_addr = ( iso_td . bp & OHCI_PAGE_MASK ) | ( start_offset & OHCI_OFFSET_MASK ) ;\n }\n else {\n start_addr = ( iso_td . be & OHCI_PAGE_MASK ) | ( start_offset & OHCI_OFFSET_MASK ) ;\n }\n if ( relative_frame_number < frame_count ) {\n end_offset = next_offset - 1 ;\n if ( ( end_offset & 0x1000 ) == 0 ) {\n end_addr = ( iso_td . bp & OHCI_PAGE_MASK ) | ( end_offset & OHCI_OFFSET_MASK ) ;\n }\n else {\n end_addr = ( iso_td . be & OHCI_PAGE_MASK ) | ( end_offset & OHCI_OFFSET_MASK ) ;\n }\n }\n else {\n end_addr = iso_td . be ;\n }\n if ( ( start_addr & OHCI_PAGE_MASK ) != ( end_addr & OHCI_PAGE_MASK ) ) {\n len = ( end_addr & OHCI_OFFSET_MASK ) + 0x1001 - ( start_addr & OHCI_OFFSET_MASK ) ;\n }\n else {\n len = end_addr - start_addr + 1 ;\n }\n if ( len && dir != OHCI_TD_DIR_IN ) {\n if ( ohci_copy_iso_td ( ohci , start_addr , end_addr , ohci -> usb_buf , len , DMA_DIRECTION_TO_DEVICE ) ) {\n ohci_die ( ohci ) ;\n return 1 ;\n }\n }\n if ( ! completion ) {\n bool int_req = relative_frame_number == frame_count && OHCI_BM ( iso_td . flags , TD_DI ) == 0 ;\n dev = ohci_find_device ( ohci , OHCI_BM ( ed -> flags , ED_FA ) ) ;\n ep = usb_ep_get ( dev , pid , OHCI_BM ( ed -> flags , ED_EN ) ) ;\n usb_packet_setup ( & ohci -> usb_packet , pid , ep , 0 , addr , false , int_req ) ;\n usb_packet_addbuf ( & ohci -> usb_packet , ohci -> usb_buf , len ) ;\n usb_handle_packet ( dev , & ohci -> usb_packet ) ;\n if ( ohci -> usb_packet . status == USB_RET_ASYNC ) {\n usb_device_flush_ep_queue ( dev , ep ) ;\n return 1 ;\n }\n }\n if ( ohci -> usb_packet . status == USB_RET_SUCCESS ) {\n ret = ohci -> usb_packet . actual_length ;\n }\n else {\n ret = ohci -> usb_packet . status ;\n }\n trace_usb_ohci_iso_td_so ( start_offset , end_offset , start_addr , end_addr , str , len , ret ) ;\n if ( dir == OHCI_TD_DIR_IN && ret >= 0 && ret <= len ) {\n if ( ohci_copy_iso_td ( ohci , start_addr , end_addr , ohci -> usb_buf , ret , DMA_DIRECTION_FROM_DEVICE ) ) {\n ohci_die ( ohci ) ;\n return 1 ;\n }\n OHCI_SET_BM ( iso_td . offset [ relative_frame_number ] , TD_PSW_CC , OHCI_CC_NOERROR ) ;\n OHCI_SET_BM ( iso_td . offset [ relative_frame_number ] , TD_PSW_SIZE , ret ) ;\n }\n else if ( dir == OHCI_TD_DIR_OUT && ret == len ) {\n OHCI_SET_BM ( iso_td . offset [ relative_frame_number ] , TD_PSW_CC , OHCI_CC_NOERROR ) ;\n OHCI_SET_BM ( iso_td . offset [ relative_frame_number ] , TD_PSW_SIZE , 0 ) ;\n }\n else {\n if ( ret > ( ssize_t ) len ) {\n trace_usb_ohci_iso_td_data_overrun ( ret , len ) ;\n OHCI_SET_BM ( iso_td . offset [ relative_frame_number ] , TD_PSW_CC , OHCI_CC_DATAOVERRUN ) ;\n OHCI_SET_BM ( iso_td . offset [ relative_frame_number ] , TD_PSW_SIZE , len ) ;\n }\n else if ( ret >= 0 ) {\n trace_usb_ohci_iso_td_data_underrun ( ret ) ;\n OHCI_SET_BM ( iso_td . offset [ relative_frame_number ] , TD_PSW_CC , OHCI_CC_DATAUNDERRUN ) ;\n }\n else {\n switch ( ret ) {\n case USB_RET_IOERROR : case USB_RET_NODEV : OHCI_SET_BM ( iso_td . offset [ relative_frame_number ] , TD_PSW_CC , OHCI_CC_DEVICENOTRESPONDING ) ;\n OHCI_SET_BM ( iso_td . offset [ relative_frame_number ] , TD_PSW_SIZE , 0 ) ;\n break ;\n case USB_RET_NAK : case USB_RET_STALL : trace_usb_ohci_iso_td_nak ( ret ) ;\n OHCI_SET_BM ( iso_td . offset [ relative_frame_number ] , TD_PSW_CC , OHCI_CC_STALL ) ;\n OHCI_SET_BM ( iso_td . offset [ relative_frame_number ] , TD_PSW_SIZE , 0 ) ;\n break ;\n default : trace_usb_ohci_iso_td_bad_response ( ret ) ;\n OHCI_SET_BM ( iso_td . offset [ relative_frame_number ] , TD_PSW_CC , OHCI_CC_UNDEXPETEDPID ) ;\n break ;\n }\n }\n }\n if ( relative_frame_number == frame_count ) {\n OHCI_SET_BM ( iso_td . flags , TD_CC , OHCI_CC_NOERROR ) ;\n ed -> head &= ~ OHCI_DPTR_MASK ;\n ed -> head |= ( iso_td . next & OHCI_DPTR_MASK ) ;\n iso_td . next = ohci -> done ;\n ohci -> done = addr ;\n i = OHCI_BM ( iso_td . flags , TD_DI ) ;\n if ( i < ohci -> done_count ) ohci -> done_count = i ;\n }\n if ( ohci_put_iso_td ( ohci , addr , & iso_td ) ) {\n ohci_die ( ohci ) ;\n }\n return 1 ;\n }"}
{"idx": 16269, "target": 0, "func": "static void restore_sql_mode ( FILE * sql_file , const char * delimiter ) {\n fprintf ( sql_file , \"/*!50003 SET sql_mode = @saved_sql_mode */ %s\\n\" , ( const char * ) delimiter ) ;\n }"}
{"idx": 16270, "target": 0, "func": "TEST_F ( TemplateURLTest , IsSearchResults ) {\n TemplateURLData data ;\n data . SetURL ( \"http://bar/search?q={\nsearchTerms}\n\" ) ;\n data . instant_url = \"http://bar/instant#q={\nsearchTerms}\n\" ;\n data . new_tab_url = \"http://barewtab\" ;\n data . alternate_urls . push_back ( \"http://bar/?q={\nsearchTerms}\n\" ) ;\n data . alternate_urls . push_back ( \"http://bar/#q={\nsearchTerms}\n\" ) ;\n data . alternate_urls . push_back ( \"http://bar/search#q{\nsearchTerms}\n\" ) ;\n data . alternate_urls . push_back ( \"http://bar/webhp#q={\nsearchTerms}\n\" ) ;\n TemplateURL search_provider ( data ) ;\n const struct {\n const char * const url ;\n bool result ;\n }\n url_data [ ] = {\n {\n \"http://bar/search?q=foo&oq=foo\" , true , }\n , {\n \"http://bar/?q=foo&oq=foo\" , true , }\n , {\n \"http://bar/#output=search&q=foo&oq=foo\" , true , }\n , {\n \"http://bar/webhp#q=foo&oq=foo\" , true , }\n , {\n \"http://bar/#q=foo&oq=foo\" , true , }\n , {\n \"http://bar/?ext=foo&q=foo#ref=bar\" , true , }\n , {\n \"http://bar/url?url=http://www.foo.com/&q=foo#ref=bar\" , false , }\n , {\n \"http://bar/\" , false , }\n , {\n \"http://foo/\" , false , }\n , {\n \"http://barewtab\" , false , }\n , }\n ;\n for ( size_t i = 0 ;\n i < arraysize ( url_data ) ;\n ++ i ) {\n EXPECT_EQ ( url_data [ i ] . result , search_provider . IsSearchURL ( GURL ( url_data [ i ] . url ) , search_terms_data_ ) ) ;\n }\n }"}
{"idx": 16271, "target": 0, "func": "static void write_selected_commits_v1 ( struct sha1file * f , struct pack_idx_entry * * index , uint32_t index_nr ) {\n int i ;\n for ( i = 0 ;\n i < writer . selected_nr ;\n ++ i ) {\n struct bitmapped_commit * stored = & writer . selected [ i ] ;\n int commit_pos = sha1_pos ( stored -> commit -> object . oid . hash , index , index_nr , sha1_access ) ;\n if ( commit_pos < 0 ) die ( \"BUG: trying to write commit not in index\" ) ;\n sha1write_be32 ( f , commit_pos ) ;\n sha1write_u8 ( f , stored -> xor_offset ) ;\n sha1write_u8 ( f , stored -> flags ) ;\n dump_bitmap ( f , stored -> write_as ) ;\n }\n }"}
{"idx": 16272, "target": 0, "func": "static void * Type_LUT8_Dup ( struct _cms_typehandler_struct * self , const void * Ptr , cmsUInt32Number n ) {\n return ( void * ) cmsPipelineDup ( ( cmsPipeline * ) Ptr ) ;\n cmsUNUSED_PARAMETER ( n ) ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 16273, "target": 0, "func": "bool HasPendingUncleanExit ( Profile * profile ) {\n return profile -> GetLastSessionExitType ( ) == Profile : : EXIT_CRASHED && ! profile_launch_observer . Get ( ) . HasBeenLaunched ( profile ) ;\n }"}
{"idx": 16274, "target": 0, "func": "static void intra_pred_dc_128 ( uint8_t * d , uint8_t * top , uint8_t * left , int stride ) {\n int y ;\n uint64_t a = 0x8080808080808080ULL ;\n for ( y = 0 ;\n y < 8 ;\n y ++ ) * ( ( uint64_t * ) ( d + y * stride ) ) = a ;\n }"}
{"idx": 16275, "target": 0, "func": "static bool is_valid_host_port ( const char * host , const char * port ) {\n for ( const char * p = host ;\n * p ;\n p ++ ) if ( ! isalnum ( * p ) && * p != '-' && * p != '.' ) {\n return false ;\n }\n for ( const char * p = port ;\n * p ;\n p ++ ) if ( ! isalnum ( * p ) ) {\n return false ;\n }\n return true ;\n }"}
{"idx": 16276, "target": 0, "func": "void rebuild_check_host ( void ) {\n delete_dynamic ( & acl_wild_hosts ) ;\n hash_free ( & acl_check_hosts ) ;\n init_check_host ( ) ;\n }"}
{"idx": 16277, "target": 0, "func": "static UHashtable * _uhash_init ( UHashtable * result , UHashFunction * keyHash , UKeyComparator * keyComp , UValueComparator * valueComp , int32_t primeIndex , UErrorCode * status ) {\n if ( U_FAILURE ( * status ) ) return NULL ;\n U_ASSERT ( keyHash != NULL ) ;\n U_ASSERT ( keyComp != NULL ) ;\n result -> keyHasher = keyHash ;\n result -> keyComparator = keyComp ;\n result -> valueComparator = valueComp ;\n result -> keyDeleter = NULL ;\n result -> valueDeleter = NULL ;\n result -> allocated = FALSE ;\n _uhash_internalSetResizePolicy ( result , U_GROW ) ;\n _uhash_allocate ( result , primeIndex , status ) ;\n if ( U_FAILURE ( * status ) ) {\n return NULL ;\n }\n return result ;\n }"}
{"idx": 16278, "target": 0, "func": "TEST_F ( WebFrameTest , ContextMenuDataNonLocatedMenu ) {\n ContextMenuWebFrameClient frame ;\n FrameTestHelpers : : WebViewHelper web_view_helper ;\n WebViewImpl * web_view = web_view_helper . Initialize ( & frame ) ;\n const std : : string & html = \"<div style='font-size: 1000%;\n line-height: 0.7em'>Select me<br/>\" \"Next line</div>\" ;\n FrameTestHelpers : : LoadHTMLString ( web_view -> MainFrameImpl ( ) , html , ToKURL ( \"about:blank\" ) ) ;\n web_view -> Resize ( WebSize ( 500 , 300 ) ) ;\n web_view -> UpdateAllLifecyclePhases ( ) ;\n RunPendingTasks ( ) ;\n web_view -> SetInitialFocus ( false ) ;\n RunPendingTasks ( ) ;\n WebMouseEvent mouse_event ( WebInputEvent : : kMouseDown , WebInputEvent : : kNoModifiers , WebInputEvent : : GetStaticTimeStampForTests ( ) ) ;\n mouse_event . button = WebMouseEvent : : Button : : kLeft ;\n mouse_event . SetPositionInWidget ( 0 , 0 ) ;\n mouse_event . click_count = 2 ;\n web_view -> HandleInputEvent ( WebCoalescedInputEvent ( mouse_event ) ) ;\n web_view -> ShowContextMenu ( kMenuSourceTouch ) ;\n RunPendingTasks ( ) ;\n web_view_helper . Reset ( ) ;\n EXPECT_EQ ( frame . GetMenuData ( ) . source_type , kMenuSourceTouch ) ;\n EXPECT_FALSE ( frame . GetMenuData ( ) . selected_text . IsEmpty ( ) ) ;\n }"}
{"idx": 16279, "target": 0, "func": "static Datum ExecEvalCurrentOfExpr ( ExprState * exprstate , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n ereport ( ERROR , ( errcode ( ERRCODE_FEATURE_NOT_SUPPORTED ) , errmsg ( \"WHERE CURRENT OF is not supported for this table type\" ) ) ) ;\n return 0 ;\n }"}
{"idx": 16280, "target": 0, "func": "static int dissect_h245_Ind_errorCorrection ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_Ind_errorCorrection , Ind_errorCorrection_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 16281, "target": 0, "func": "static int show_programs ( WriterContext * w , InputFile * ifile ) {\n AVFormatContext * fmt_ctx = ifile -> fmt_ctx ;\n int i , ret = 0 ;\n writer_print_section_header ( w , SECTION_ID_PROGRAMS ) ;\n for ( i = 0 ;\n i < fmt_ctx -> nb_programs ;\n i ++ ) {\n AVProgram * program = fmt_ctx -> programs [ i ] ;\n if ( ! program ) continue ;\n ret = show_program ( w , ifile , program ) ;\n if ( ret < 0 ) break ;\n }\n writer_print_section_footer ( w ) ;\n return ret ;\n }"}
{"idx": 16282, "target": 0, "func": "hb_graphite2_shaper_face_data_t * _hb_graphite2_shaper_face_data_create ( hb_face_t * face ) {\n hb_blob_t * silf_blob = face -> reference_table ( HB_GRAPHITE2_TAG_SILF ) ;\n if ( ! hb_blob_get_length ( silf_blob ) ) {\n hb_blob_destroy ( silf_blob ) ;\n return NULL ;\n }\n hb_blob_destroy ( silf_blob ) ;\n hb_graphite2_shaper_face_data_t * data = ( hb_graphite2_shaper_face_data_t * ) calloc ( 1 , sizeof ( hb_graphite2_shaper_face_data_t ) ) ;\n if ( unlikely ( ! data ) ) return NULL ;\n data -> face = face ;\n data -> grface = gr_make_face ( data , & hb_graphite2_get_table , gr_face_preloadAll ) ;\n if ( unlikely ( ! data -> grface ) ) {\n free ( data ) ;\n return NULL ;\n }\n return data ;\n }"}
{"idx": 16283, "target": 0, "func": "static void compact_print_section_footer ( WriterContext * wctx ) {\n CompactContext * compact = wctx -> priv ;\n if ( ! compact -> nested_section [ wctx -> level ] && compact -> terminate_line [ wctx -> level ] && ! ( wctx -> section [ wctx -> level ] -> flags & ( SECTION_FLAG_IS_WRAPPER | SECTION_FLAG_IS_ARRAY ) ) ) printf ( \"\\n\" ) ;\n }"}
{"idx": 16284, "target": 0, "func": "int i2d_PKCS8_fp ( FILE * fp , X509_SIG * p8 ) {\n return ASN1_i2d_fp_of ( X509_SIG , i2d_X509_SIG , fp , p8 ) ;\n }"}
{"idx": 16285, "target": 0, "func": "void archive_string_conversion_set_opt ( struct archive_string_conv * sc , int opt ) {\n switch ( opt ) {\n case SCONV_SET_OPT_UTF8_LIBARCHIVE2X : # if ( defined ( _WIN32 ) && ! defined ( __CYGWIN__ ) ) || defined ( __STDC_ISO_10646__ ) || defined ( __APPLE__ ) ( void ) sc ;\n # else if ( ( sc -> flag & SCONV_UTF8_LIBARCHIVE_2 ) == 0 ) {\n sc -> flag |= SCONV_UTF8_LIBARCHIVE_2 ;\n setup_converter ( sc ) ;\n }\n # endif break ;\n case SCONV_SET_OPT_NORMALIZATION_C : if ( ( sc -> flag & SCONV_NORMALIZATION_C ) == 0 ) {\n sc -> flag |= SCONV_NORMALIZATION_C ;\n sc -> flag &= ~ SCONV_NORMALIZATION_D ;\n setup_converter ( sc ) ;\n }\n break ;\n case SCONV_SET_OPT_NORMALIZATION_D : # if defined ( HAVE_ICONV ) if ( ! ( sc -> flag & SCONV_WIN_CP ) && ( sc -> flag & ( SCONV_FROM_UTF16 | SCONV_FROM_UTF8 ) ) && ! ( sc -> flag & ( SCONV_TO_UTF16 | SCONV_TO_UTF8 ) ) ) break ;\n # endif if ( ( sc -> flag & SCONV_NORMALIZATION_D ) == 0 ) {\n sc -> flag |= SCONV_NORMALIZATION_D ;\n sc -> flag &= ~ SCONV_NORMALIZATION_C ;\n setup_converter ( sc ) ;\n }\n break ;\n default : break ;\n }\n }"}
{"idx": 16286, "target": 0, "func": "static int dissect_h225_Notify_UUIE ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_Notify_UUIE , Notify_UUIE_sequence ) ;\n return offset ;\n }"}
{"idx": 16287, "target": 0, "func": "static int selinux_genfs_get_sid ( struct dentry * dentry , u16 tclass , u16 flags , u32 * sid ) {\n int rc ;\n struct super_block * sb = dentry -> d_sb ;\n char * buffer , * path ;\n buffer = ( char * ) __get_free_page ( GFP_KERNEL ) ;\n if ( ! buffer ) return - ENOMEM ;\n path = dentry_path_raw ( dentry , buffer , PAGE_SIZE ) ;\n if ( IS_ERR ( path ) ) rc = PTR_ERR ( path ) ;\n else {\n if ( flags & SE_SBPROC ) {\n while ( path [ 1 ] >= '0' && path [ 1 ] <= '9' ) {\n path [ 1 ] = '/' ;\n path ++ ;\n }\n }\n rc = security_genfs_sid ( sb -> s_type -> name , path , tclass , sid ) ;\n }\n free_page ( ( unsigned long ) buffer ) ;\n return rc ;\n }"}
{"idx": 16288, "target": 0, "func": "static void dissect_rsvp_tspec ( proto_item * ti , packet_info * pinfo , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int type ) {\n int offset2 = offset + 4 ;\n int mylen ;\n proto_tree * tspec_tree , * ti2 = NULL ;\n guint8 signal_type ;\n mylen = obj_length - 4 ;\n switch ( type ) {\n case 2 : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"2 - Integrated Services\" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_tspec_message_format_version , tvb , offset2 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_data_length , tvb , offset2 + 2 , 2 , tvb_get_ntohs ( tvb , offset2 + 2 ) , \"%u words, not including header\" , tvb_get_ntohs ( tvb , offset2 + 2 ) ) ;\n mylen -= 4 ;\n offset2 += 4 ;\n proto_item_set_text ( ti , \"SENDER TSPEC: IntServ, \" ) ;\n while ( mylen > 0 ) {\n guint8 service_num ;\n guint8 param_id ;\n guint param_len , raw_len ;\n guint param_len_processed ;\n guint length ;\n service_num = tvb_get_guint8 ( tvb , offset2 ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_tspec_service_header , tvb , offset2 , 1 , ENC_BIG_ENDIAN ) ;\n length = tvb_get_ntohs ( tvb , offset2 + 2 ) ;\n proto_tree_add_uint_format ( rsvp_object_tree , hf_rsvp_data_length , tvb , offset2 + 2 , 2 , length , \"Length of service %u data: %u words, not including header\" , service_num , length ) ;\n mylen -= 4 ;\n offset2 += 4 ;\n param_len_processed = 0 ;\n while ( param_len_processed < length ) {\n param_id = tvb_get_guint8 ( tvb , offset2 ) ;\n ti2 = proto_tree_add_item ( rsvp_object_tree , hf_rsvp_parameter , tvb , offset2 , 1 , ENC_NA ) ;\n raw_len = tvb_get_ntohs ( tvb , offset2 + 2 ) ;\n param_len = raw_len + 1 ;\n switch ( param_id ) {\n case 127 : proto_item_set_len ( ti2 , param_len * 4 ) ;\n tspec_tree = proto_item_add_subtree ( ti2 , TREE ( TT_TSPEC_SUBTREE ) ) ;\n proto_tree_add_item ( tspec_tree , hf_rsvp_parameter_flags , tvb , offset2 + 1 , 1 , ENC_NA ) ;\n proto_tree_add_uint_format_value ( tspec_tree , hf_rsvp_parameter_length , tvb , offset2 + 2 , 2 , raw_len , \"%u words, not including header\" , raw_len ) ;\n proto_tree_add_item ( tspec_tree , hf_rsvp_tspec_token_bucket_rate , tvb , offset2 + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tspec_tree , hf_rsvp_tspec_token_bucket_size , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tspec_tree , hf_rsvp_tspec_peak_data_rate , tvb , offset2 + 12 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tspec_tree , hf_rsvp_minimum_policed_unit , tvb , offset2 + 16 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tspec_tree , hf_rsvp_maximum_packet_size , tvb , offset2 + 20 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \"Token Bucket, %.10g bytes/sec. \" , tvb_get_ntohieee_float ( tvb , offset2 + 4 ) ) ;\n proto_item_append_text ( ti2 , \"Rate=%.10g Burst=%.10g Peak=%.10g m=%u M=%u\" , tvb_get_ntohieee_float ( tvb , offset2 + 4 ) , tvb_get_ntohieee_float ( tvb , offset2 + 8 ) , tvb_get_ntohieee_float ( tvb , offset2 + 12 ) , tvb_get_ntohl ( tvb , offset2 + 16 ) , tvb_get_ntohl ( tvb , offset2 + 20 ) ) ;\n break ;\n case 128 : proto_item_set_len ( ti2 , param_len * 4 ) ;\n tspec_tree = proto_item_add_subtree ( ti2 , TREE ( TT_TSPEC_SUBTREE ) ) ;\n proto_tree_add_item ( tspec_tree , hf_rsvp_parameter_flags , tvb , offset2 + 1 , 1 , ENC_NA ) ;\n proto_tree_add_uint_format_value ( tspec_tree , hf_rsvp_parameter_length , tvb , offset2 + 2 , 2 , raw_len , \"%u words, not including header\" , raw_len ) ;\n proto_tree_add_item ( tspec_tree , hf_rsvp_maximum_packet_size , tvb , offset2 + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \"Null Service. M=%u\" , tvb_get_ntohl ( tvb , offset2 + 4 ) ) ;\n proto_item_append_text ( ti2 , \"Max pkt size=%u\" , tvb_get_ntohl ( tvb , offset2 + 4 ) ) ;\n break ;\n case 126 : proto_item_set_len ( ti2 , param_len * 4 ) ;\n tspec_tree = proto_item_add_subtree ( ti2 , TREE ( TT_TSPEC_SUBTREE ) ) ;\n proto_tree_add_item ( tspec_tree , hf_rsvp_parameter_flags , tvb , offset2 + 1 , 1 , ENC_NA ) ;\n proto_tree_add_uint_format_value ( tspec_tree , hf_rsvp_parameter_length , tvb , offset2 + 2 , 2 , raw_len , \"%u words, not including header\" , raw_len ) ;\n proto_tree_add_item ( tspec_tree , hf_rsvp_tspec_hint , tvb , offset2 + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tspec_tree , hf_rsvp_compression_factor , tvb , offset2 + 4 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \"Compression Hint. Hint=%u, Factor=%u\" , tvb_get_ntohl ( tvb , offset2 + 4 ) , tvb_get_ntohl ( tvb , offset2 + 8 ) ) ;\n proto_item_append_text ( ti2 , \"Hint=%u, Factor=%u\" , tvb_get_ntohl ( tvb , offset2 + 4 ) , tvb_get_ntohl ( tvb , offset2 + 8 ) ) ;\n break ;\n default : proto_item_set_len ( ti2 , param_len * 4 ) ;\n expert_add_info_format ( pinfo , ti2 , & ei_rsvp_parameter , \"Unknown parameter %d, %d words\" , param_id , param_len ) ;\n break ;\n }\n param_len_processed += param_len ;\n offset2 += param_len * 4 ;\n }\n mylen -= length * 4 ;\n }\n break ;\n case 4 : proto_item_set_text ( ti , \"SENDER TSPEC: SONET/SDH, \" ) ;\n proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"4 - SONET/SDH\" ) ;\n signal_type = tvb_get_guint8 ( tvb , offset2 ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_tspec_signal_type_sonet , tvb , offset2 , 1 , ENC_BIG_ENDIAN ) ;\n ti2 = proto_tree_add_item ( rsvp_object_tree , hf_rsvp_tspec_requested_concatenation , tvb , offset2 + 1 , 1 , ENC_BIG_ENDIAN ) ;\n tspec_tree = proto_item_add_subtree ( ti2 , TREE ( TT_TSPEC_SUBTREE ) ) ;\n proto_tree_add_item ( tspec_tree , hf_rsvp_sender_tspec_standard_contiguous_concatenation , tvb , offset2 + 1 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tspec_tree , hf_rsvp_sender_tspec_arbitrary_contiguous_concatenation , tvb , offset2 + 1 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_tspec_number_of_contiguous_components , tvb , offset2 + 2 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_tspec_number_of_virtual_components , tvb , offset2 + 4 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_tspec_multiplier , tvb , offset2 + 6 , 2 , ENC_BIG_ENDIAN ) ;\n ti2 = proto_tree_add_item ( rsvp_object_tree , hf_rsvp_tspec_transparency , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n tspec_tree = proto_item_add_subtree ( ti2 , TREE ( TT_TSPEC_SUBTREE ) ) ;\n proto_tree_add_item ( tspec_tree , hf_rsvp_sender_tspec_regenerator_section , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tspec_tree , hf_rsvp_sender_tspec_multiplex_section , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tspec_tree , hf_rsvp_sender_tspec_J0_transparency , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tspec_tree , hf_rsvp_sender_tspec_SOH_RSOH_DCC_transparency , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tspec_tree , hf_rsvp_sender_tspec_LOH_MSOH_DCC_transparency , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tspec_tree , hf_rsvp_sender_tspec_LOH_MSOH_extended_DCC_transparency , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tspec_tree , hf_rsvp_sender_tspec_K1_K2_transparency , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tspec_tree , hf_rsvp_sender_tspec_E1_transparency , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tspec_tree , hf_rsvp_sender_tspec_F1_transparency , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tspec_tree , hf_rsvp_sender_tspec_E2_transparency , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tspec_tree , hf_rsvp_sender_tspec_B1_transparency , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tspec_tree , hf_rsvp_sender_tspec_B2_transparency , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tspec_tree , hf_rsvp_sender_tspec_M0_transparency , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tspec_tree , hf_rsvp_sender_tspec_M1_transparency , tvb , offset2 + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_tspec_profile , tvb , offset2 + 12 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \"Signal [%s], RCC %d, NCC %d, NVC %d, MT %d, Transparency %d, Profile %d\" , val_to_str_ext_const ( signal_type , & gmpls_sonet_signal_type_str_ext , \"Unknown\" ) , tvb_get_guint8 ( tvb , offset2 + 1 ) , tvb_get_ntohs ( tvb , offset2 + 2 ) , tvb_get_ntohs ( tvb , offset2 + 4 ) , tvb_get_ntohs ( tvb , offset2 + 6 ) , tvb_get_ntohl ( tvb , offset2 + 8 ) , tvb_get_ntohl ( tvb , offset2 + 12 ) ) ;\n break ;\n case 5 : proto_item_set_text ( ti , \"SENDER TSPEC: G.709, \" ) ;\n proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"5 - G.709\" ) ;\n signal_type = tvb_get_guint8 ( tvb , offset2 ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_tspec_signal_type_g709 , tvb , offset2 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_tspec_number_of_multiplexed_components , tvb , offset2 + 2 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_tspec_number_of_virtual_components , tvb , offset2 + 4 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_tspec_multiplier , tvb , offset2 + 6 , 2 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( ti , \"Signal [%s], NMC %d, NVC %d, MT %d\" , rval_to_str ( signal_type , gmpls_g709_signal_type_rvals , \"Unknown\" ) , tvb_get_ntohs ( tvb , offset2 + 2 ) , tvb_get_ntohs ( tvb , offset2 + 4 ) , tvb_get_ntohs ( tvb , offset2 + 6 ) ) ;\n break ;\n case 6 : proto_item_set_text ( ti , \"SENDER TSPEC: Ethernet, \" ) ;\n proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"6 - Ethernet\" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_switching_granularity , tvb , offset2 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_tspec_mtu , tvb , offset2 + 2 , 2 , ENC_BIG_ENDIAN ) ;\n dissect_rsvp_eth_tspec_tlv ( ti , pinfo , rsvp_object_tree , tvb , offset + 8 , obj_length - 8 , TREE ( TT_TSPEC_SUBTREE ) ) ;\n break ;\n default : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"Unknown (%u)\" , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_tspec_data , tvb , offset2 , obj_length - 4 , ENC_NA ) ;\n break ;\n }\n }"}
{"idx": 16289, "target": 0, "func": "static int lookup_uname_helper ( struct cpio * cpio , const char * * name , id_t id ) {\n struct passwd * pwent ;\n ( void ) cpio ;\n errno = 0 ;\n pwent = getpwuid ( ( uid_t ) id ) ;\n if ( pwent == NULL ) {\n * name = NULL ;\n if ( errno != 0 && errno != ENOENT ) lafe_warnc ( errno , \"getpwuid(%s) failed\" , cpio_i64toa ( ( int64_t ) id ) ) ;\n return ( errno ) ;\n }\n * name = pwent -> pw_name ;\n return ( 0 ) ;\n }"}
{"idx": 16290, "target": 0, "func": "static inline uint16_t vga_read_word_le ( VGACommonState * vga , uint32_t addr ) {\n uint32_t offset = addr & vga -> vbe_size_mask & ~ 1 ;\n uint16_t * ptr = ( uint16_t * ) ( vga -> vram_ptr + offset ) ;\n return lduw_le_p ( ptr ) ;\n }"}
{"idx": 16291, "target": 0, "func": "static int qdev_print_devinfo ( DeviceInfo * info , char * dest , int len ) {\n int pos = 0 ;\n int ret ;\n ret = snprintf ( dest + pos , len - pos , \"name \\\"%s\\\", bus %s\" , info -> name , info -> bus_info -> name ) ;\n pos += MIN ( len - pos , ret ) ;\n if ( info -> alias ) {\n ret = snprintf ( dest + pos , len - pos , \", alias \\\"%s\\\"\" , info -> alias ) ;\n pos += MIN ( len - pos , ret ) ;\n }\n if ( info -> desc ) {\n ret = snprintf ( dest + pos , len - pos , \", desc \\\"%s\\\"\" , info -> desc ) ;\n pos += MIN ( len - pos , ret ) ;\n }\n if ( info -> no_user ) {\n ret = snprintf ( dest + pos , len - pos , \", no-user\" ) ;\n pos += MIN ( len - pos , ret ) ;\n }\n return pos ;\n }"}
{"idx": 16292, "target": 0, "func": "static void dtap_cc_user_info ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_TRUE ;\n ELEM_MAND_LV ( GSM_A_PDU_TYPE_DTAP , DE_USER_USER , NULL ) ;\n ELEM_OPT_T ( 0xa0 , GSM_A_PDU_TYPE_DTAP , DE_MORE_DATA , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 16293, "target": 0, "func": "static void e1000e_set_pbaclr ( E1000ECore * core , int index , uint32_t val ) {\n int i ;\n core -> mac [ PBACLR ] = val & E1000_PBACLR_VALID_MASK ;\n if ( ! msix_enabled ( core -> owner ) ) {\n return ;\n }\n for ( i = 0 ;\n i < E1000E_MSIX_VEC_NUM ;\n i ++ ) {\n if ( core -> mac [ PBACLR ] & BIT ( i ) ) {\n msix_clr_pending ( core -> owner , i ) ;\n }\n }\n }"}
{"idx": 16294, "target": 0, "func": "static void qio_channel_websock_unset_watch ( QIOChannelWebsock * ioc ) {\n if ( ioc -> io_tag ) {\n g_source_remove ( ioc -> io_tag ) ;\n ioc -> io_tag = 0 ;\n }\n }"}
{"idx": 16295, "target": 0, "func": "TEST_F ( TemplateURLTest , SetPrepopulatedAndParse ) {\n TemplateURLData data ;\n data . SetURL ( \"http://foo{\nfhqwhgads}\nbar\" ) ;\n TemplateURL url ( data ) ;\n TemplateURLRef : : Replacements replacements ;\n bool valid = false ;\n EXPECT_EQ ( \"http://foo{\nfhqwhgads}\nbar\" , url . url_ref ( ) . ParseURL ( \"http://foo{\nfhqwhgads}\nbar\" , & replacements , NULL , & valid ) ) ;\n EXPECT_TRUE ( replacements . empty ( ) ) ;\n EXPECT_TRUE ( valid ) ;\n data . prepopulate_id = 123 ;\n TemplateURL url2 ( data ) ;\n EXPECT_EQ ( \"http://foobar\" , url2 . url_ref ( ) . ParseURL ( \"http://foo{\nfhqwhgads}\nbar\" , & replacements , NULL , & valid ) ) ;\n EXPECT_TRUE ( replacements . empty ( ) ) ;\n EXPECT_TRUE ( valid ) ;\n }"}
{"idx": 16296, "target": 1, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DIRECTORYSTRING ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DISPLAYTEXT ) DECLARE_ASN1_FUNCTIONS ( ASN1_PRINTABLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_T61STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_IA5STRING )"}
{"idx": 16297, "target": 0, "func": "static inline void writer_print_rational ( WriterContext * wctx , const char * key , AVRational q , char sep ) {\n AVBPrint buf ;\n av_bprint_init ( & buf , 0 , AV_BPRINT_SIZE_AUTOMATIC ) ;\n av_bprintf ( & buf , \"%d%c%d\" , q . num , sep , q . den ) ;\n writer_print_string ( wctx , key , buf . str , 0 ) ;\n }"}
{"idx": 16298, "target": 0, "func": "static int dissect_h245_CloseLogicalChannelAck ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_CloseLogicalChannelAck , CloseLogicalChannelAck_sequence ) ;\n # line 554 \"../../asn1/h245/h245.cnf\" if ( h245_pi != NULL ) h245_pi -> msg_type = H245_CloseLogChnAck ;\n return offset ;\n }"}
{"idx": 16299, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( NtpExtensionBubbleViewBrowserTest , TestBubbleClosedAfterExtensionUninstall ) {\n TestBubbleClosedAfterExtensionUninstall ( ) ;\n }"}
{"idx": 16300, "target": 0, "func": "void evbuffer_free ( struct evbuffer * buffer ) {\n if ( buffer -> orig_buffer != NULL ) free ( buffer -> orig_buffer ) ;\n free ( buffer ) ;\n }"}
{"idx": 16301, "target": 0, "func": "int register_key_type ( struct key_type * ktype ) {\n struct key_type * p ;\n int ret ;\n memset ( & ktype -> lock_class , 0 , sizeof ( ktype -> lock_class ) ) ;\n ret = - EEXIST ;\n down_write ( & key_types_sem ) ;\n list_for_each_entry ( p , & key_types_list , link ) {\n if ( strcmp ( p -> name , ktype -> name ) == 0 ) goto out ;\n }\n list_add ( & ktype -> link , & key_types_list ) ;\n pr_notice ( \"Key type %s registered\\n\" , ktype -> name ) ;\n ret = 0 ;\n out : up_write ( & key_types_sem ) ;\n return ret ;\n }"}
{"idx": 16302, "target": 0, "func": "static void default_print_section_header ( WriterContext * wctx ) {\n DefaultContext * def = wctx -> priv ;\n char buf [ 32 ] ;\n const struct section * section = wctx -> section [ wctx -> level ] ;\n const struct section * parent_section = wctx -> level ? wctx -> section [ wctx -> level - 1 ] : NULL ;\n av_bprint_clear ( & wctx -> section_pbuf [ wctx -> level ] ) ;\n if ( parent_section && ! ( parent_section -> flags & ( SECTION_FLAG_IS_WRAPPER | SECTION_FLAG_IS_ARRAY ) ) ) {\n def -> nested_section [ wctx -> level ] = 1 ;\n av_bprintf ( & wctx -> section_pbuf [ wctx -> level ] , \"%s%s:\" , wctx -> section_pbuf [ wctx -> level - 1 ] . str , upcase_string ( buf , sizeof ( buf ) , av_x_if_null ( section -> element_name , section -> name ) ) ) ;\n }\n if ( def -> noprint_wrappers || def -> nested_section [ wctx -> level ] ) return ;\n if ( ! ( section -> flags & ( SECTION_FLAG_IS_WRAPPER | SECTION_FLAG_IS_ARRAY ) ) ) printf ( \"[%s]\\n\" , upcase_string ( buf , sizeof ( buf ) , section -> name ) ) ;\n }"}
{"idx": 16303, "target": 1, "func": "static void decode_flush ( AVCodecContext * avctx ) {\n KgvContext * const c = avctx -> priv_data ;\n if ( c -> prev . data [ 0 ] ) avctx -> release_buffer ( avctx , & c -> prev ) ;\n }"}
{"idx": 16304, "target": 0, "func": "static int _route_msg_to_origin ( slurm_msg_t * msg , char * src_job_id_str , uint32_t src_job_id , uid_t uid ) {\n xassert ( msg ) ;\n if ( ! msg -> conn && fed_mgr_fed_rec ) {\n uint32_t job_id , origin_id ;\n if ( src_job_id_str ) job_id = strtol ( src_job_id_str , NULL , 10 ) ;\n else job_id = src_job_id ;\n origin_id = fed_mgr_get_cluster_id ( job_id ) ;\n if ( origin_id && ( origin_id != fed_mgr_cluster_rec -> fed . id ) ) {\n slurmdb_cluster_rec_t * dst = fed_mgr_get_cluster_by_id ( origin_id ) ;\n if ( ! dst ) {\n error ( \"couldn't find cluster by cluster id %d\" , origin_id ) ;\n slurm_send_rc_msg ( msg , SLURM_ERROR ) ;\n }\n else {\n slurm_send_reroute_msg ( msg , dst ) ;\n info ( \"%s: %s job %d uid %d routed to %s\" , __func__ , rpc_num2string ( msg -> msg_type ) , job_id , uid , dst -> name ) ;\n }\n return SLURM_SUCCESS ;\n }\n }\n return SLURM_ERROR ;\n }"}
{"idx": 16305, "target": 0, "func": "static inline int path_has_perm ( const struct cred * cred , const struct path * path , u32 av ) {\n struct inode * inode = d_backing_inode ( path -> dentry ) ;\n struct common_audit_data ad ;\n ad . type = LSM_AUDIT_DATA_PATH ;\n ad . u . path = * path ;\n __inode_security_revalidate ( inode , path -> dentry , true ) ;\n return inode_has_perm ( cred , inode , av , & ad ) ;\n }"}
{"idx": 16306, "target": 1, "func": "void vp9_fdct4x4_1_c ( const int16_t * input , int16_t * output , int stride ) {\n int r , c ;\n int16_t sum = 0 ;\n for ( r = 0 ;\n r < 4 ;\n ++ r ) for ( c = 0 ;\n c < 4 ;\n ++ c ) sum += input [ r * stride + c ] ;\n output [ 0 ] = sum << 1 ;\n output [ 1 ] = 0 ;\n }"}
{"idx": 16307, "target": 0, "func": "static int dissect_coap_options_main ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * coap_tree , gint offset , guint8 opt_count , guint * opt_num , gint offset_end , coap_info * coinfo , coap_common_dissect_t * dissect_hf ) {\n guint8 opt_jump ;\n gint opt_length , opt_length_ext , opt_delta , opt_delta_ext ;\n gint opt_length_ext_off = 0 ;\n gint8 opt_length_ext_len = 0 ;\n gint opt_delta_ext_off = 0 ;\n gint8 opt_delta_ext_len = 0 ;\n gint orig_offset = offset ;\n proto_tree * subtree ;\n proto_item * item ;\n char strbuf [ 56 ] ;\n opt_jump = tvb_get_guint8 ( tvb , offset ) ;\n if ( 0xff == opt_jump ) return offset ;\n offset += 1 ;\n switch ( opt_jump & 0xf0 ) {\n case 0xd0 : opt_delta_ext = tvb_get_guint8 ( tvb , offset ) ;\n opt_delta_ext_off = offset ;\n opt_delta_ext_len = 1 ;\n offset += 1 ;\n opt_delta = 13 ;\n opt_delta += opt_delta_ext ;\n break ;\n case 0xe0 : opt_delta_ext = coap_get_opt_uint ( tvb , offset , 2 ) ;\n opt_delta_ext_off = offset ;\n opt_delta_ext_len = 2 ;\n offset += 2 ;\n opt_delta = 269 ;\n opt_delta += opt_delta_ext ;\n break ;\n case 0xf0 : expert_add_info_format ( pinfo , coap_tree , & dissect_hf -> ei . opt_length_bad , \"end-of-options marker found, but option length isn't 15\" ) ;\n return - 1 ;\n default : opt_delta = ( ( opt_jump & 0xf0 ) >> 4 ) ;\n break ;\n }\n * opt_num += opt_delta ;\n switch ( opt_jump & 0x0f ) {\n case 0x0d : opt_length_ext = tvb_get_guint8 ( tvb , offset ) ;\n opt_length_ext_off = offset ;\n opt_length_ext_len = 1 ;\n offset += 1 ;\n opt_length = 13 ;\n opt_length += opt_length_ext ;\n break ;\n case 0x0e : opt_length_ext = coap_get_opt_uint ( tvb , offset , 2 ) ;\n opt_length_ext_off = offset ;\n opt_length_ext_len = 2 ;\n offset += 2 ;\n opt_length = 269 ;\n opt_length += opt_length_ext ;\n break ;\n case 0x0f : expert_add_info_format ( pinfo , coap_tree , & dissect_hf -> ei . opt_length_bad , \"end-of-options marker found, but option delta isn't 15\" ) ;\n return - 1 ;\n default : opt_length = ( opt_jump & 0x0f ) ;\n break ;\n }\n if ( opt_length > offset_end - offset ) {\n expert_add_info_format ( pinfo , coap_tree , & dissect_hf -> ei . opt_length_bad , \"option longer than the package\" ) ;\n return - 1 ;\n }\n coap_opt_check ( pinfo , coap_tree , * opt_num , opt_length , dissect_hf ) ;\n g_snprintf ( strbuf , sizeof ( strbuf ) , \"#%u: %s\" , opt_count , val_to_str_const ( * opt_num , vals_opt_type , * opt_num % 14 == 0 ? \"No-Op\" : \"Unknown Option\" ) ) ;\n item = proto_tree_add_string ( coap_tree , dissect_hf -> hf . opt_name , tvb , orig_offset , offset - orig_offset + opt_length , strbuf ) ;\n subtree = proto_item_add_subtree ( item , dissect_hf -> ett . option ) ;\n g_snprintf ( strbuf , sizeof ( strbuf ) , \"Type %u, %s, %s%s\" , * opt_num , ( * opt_num & 1 ) ? \"Critical\" : \"Elective\" , ( * opt_num & 2 ) ? \"Unsafe\" : \"Safe\" , ( ( * opt_num & 0x1e ) == 0x1c ) ? \", NoCacheKey\" : \"\" ) ;\n proto_tree_add_string ( subtree , dissect_hf -> hf . opt_desc , tvb , orig_offset , offset - orig_offset + opt_length , strbuf ) ;\n proto_tree_add_item ( subtree , dissect_hf -> hf . opt_delta , tvb , orig_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , dissect_hf -> hf . opt_length , tvb , orig_offset , 1 , ENC_BIG_ENDIAN ) ;\n if ( opt_delta_ext_off && opt_delta_ext_len ) proto_tree_add_item ( subtree , dissect_hf -> hf . opt_delta_ext , tvb , opt_delta_ext_off , opt_delta_ext_len , ENC_BIG_ENDIAN ) ;\n if ( opt_length_ext_off && opt_length_ext_len ) proto_tree_add_item ( subtree , dissect_hf -> hf . opt_length_ext , tvb , opt_length_ext_off , opt_length_ext_len , ENC_BIG_ENDIAN ) ;\n switch ( * opt_num ) {\n case COAP_OPT_CONTENT_TYPE : dissect_coap_opt_ctype ( tvb , item , subtree , offset , opt_length , dissect_hf -> hf . opt_ctype , coinfo ) ;\n break ;\n case COAP_OPT_MAX_AGE : dissect_coap_opt_uint ( tvb , item , subtree , offset , opt_length , dissect_hf -> hf . opt_max_age ) ;\n break ;\n case COAP_OPT_PROXY_URI : dissect_coap_opt_proxy_uri ( tvb , item , subtree , offset , opt_length , dissect_hf -> hf . opt_proxy_uri ) ;\n break ;\n case COAP_OPT_PROXY_SCHEME : dissect_coap_opt_proxy_scheme ( tvb , item , subtree , offset , opt_length , dissect_hf -> hf . opt_proxy_scheme ) ;\n break ;\n case COAP_OPT_SIZE1 : dissect_coap_opt_uint ( tvb , item , subtree , offset , opt_length , dissect_hf -> hf . opt_size1 ) ;\n break ;\n case COAP_OPT_ETAG : dissect_coap_opt_hex_string ( tvb , item , subtree , offset , opt_length , dissect_hf -> hf . opt_etag ) ;\n break ;\n case COAP_OPT_URI_HOST : dissect_coap_opt_uri_host ( tvb , item , subtree , offset , opt_length , coinfo , dissect_hf -> hf . opt_uri_host ) ;\n break ;\n case COAP_OPT_LOCATION_PATH : dissect_coap_opt_location_path ( tvb , item , subtree , offset , opt_length , dissect_hf -> hf . opt_location_path ) ;\n break ;\n case COAP_OPT_URI_PORT : dissect_coap_opt_uri_port ( tvb , item , subtree , offset , opt_length , coinfo , dissect_hf -> hf . opt_uri_port ) ;\n break ;\n case COAP_OPT_LOCATION_QUERY : dissect_coap_opt_location_query ( tvb , item , subtree , offset , opt_length , dissect_hf -> hf . opt_location_query ) ;\n break ;\n case COAP_OPT_OBJECT_SECURITY : dissect_coap_opt_object_security ( tvb , item , subtree , offset , opt_length , pinfo , coinfo , dissect_hf ) ;\n break ;\n case COAP_OPT_URI_PATH : dissect_coap_opt_uri_path ( tvb , item , subtree , offset , opt_length , coinfo , dissect_hf -> hf . opt_uri_path ) ;\n break ;\n case COAP_OPT_OBSERVE : dissect_coap_opt_uint ( tvb , item , subtree , offset , opt_length , dissect_hf -> hf . opt_observe ) ;\n break ;\n case COAP_OPT_ACCEPT : dissect_coap_opt_ctype ( tvb , item , subtree , offset , opt_length , dissect_hf -> hf . opt_accept , coinfo ) ;\n break ;\n case COAP_OPT_IF_MATCH : dissect_coap_opt_hex_string ( tvb , item , subtree , offset , opt_length , dissect_hf -> hf . opt_if_match ) ;\n break ;\n case COAP_OPT_URI_QUERY : dissect_coap_opt_uri_query ( tvb , item , subtree , offset , opt_length , coinfo , dissect_hf -> hf . opt_uri_query ) ;\n break ;\n case COAP_OPT_BLOCK2 : dissect_coap_opt_block ( tvb , item , subtree , offset , opt_length , coinfo , dissect_hf ) ;\n break ;\n case COAP_OPT_BLOCK1 : dissect_coap_opt_block ( tvb , item , subtree , offset , opt_length , coinfo , dissect_hf ) ;\n break ;\n case COAP_OPT_IF_NONE_MATCH : break ;\n case COAP_OPT_BLOCK_SIZE : dissect_coap_opt_uint ( tvb , item , subtree , offset , opt_length , dissect_hf -> hf . opt_block_size ) ;\n break ;\n default : dissect_coap_opt_hex_string ( tvb , item , subtree , offset , opt_length , dissect_hf -> hf . opt_unknown ) ;\n break ;\n }\n return offset + opt_length ;\n }"}
{"idx": 16308, "target": 0, "func": "static void mp_get_code ( MotionPixelsContext * mp , GetBitContext * gb , int size , int code ) {\n while ( get_bits1 ( gb ) ) {\n ++ size ;\n if ( size > mp -> max_codes_bits ) {\n av_log ( mp -> avctx , AV_LOG_ERROR , \"invalid code size %d/%d\\n\" , size , mp -> max_codes_bits ) ;\n return ;\n }\n code <<= 1 ;\n mp_get_code ( mp , gb , size , code + 1 ) ;\n }\n if ( mp -> current_codes_count >= MAX_HUFF_CODES ) {\n av_log ( mp -> avctx , AV_LOG_ERROR , \"too many codes\\n\" ) ;\n return ;\n }\n mp -> codes [ mp -> current_codes_count ] . code = code ;\n mp -> codes [ mp -> current_codes_count ++ ] . size = size ;\n }"}
{"idx": 16309, "target": 0, "func": "static int dissect_h225_SEQUENCE_OF_DisplayName ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_SEQUENCE_OF_DisplayName , SEQUENCE_OF_DisplayName_sequence_of ) ;\n return offset ;\n }"}
{"idx": 16310, "target": 0, "func": "static jpc_enc_band_t * band_create ( jpc_enc_band_t * band , jpc_enc_cp_t * cp , jpc_enc_rlvl_t * rlvl , jpc_tsfb_band_t * bandinfos ) {\n uint_fast16_t bandno ;\n uint_fast16_t gblbandno ;\n uint_fast16_t rlvlno ;\n jpc_tsfb_band_t * bandinfo ;\n jpc_enc_tcmpt_t * tcmpt ;\n uint_fast32_t prcno ;\n jpc_enc_prc_t * prc ;\n tcmpt = rlvl -> tcmpt ;\n band -> data = 0 ;\n band -> prcs = 0 ;\n band -> rlvl = rlvl ;\n rlvlno = rlvl - rlvl -> tcmpt -> rlvls ;\n bandno = band - rlvl -> bands ;\n gblbandno = ( ! rlvlno ) ? 0 : ( 3 * ( rlvlno - 1 ) + bandno + 1 ) ;\n bandinfo = & bandinfos [ gblbandno ] ;\n if ( bandinfo -> xstart != bandinfo -> xend && bandinfo -> ystart != bandinfo -> yend ) {\n if ( ! ( band -> data = jas_seq2d_create ( 0 , 0 , 0 , 0 ) ) ) {\n goto error ;\n }\n jas_seq2d_bindsub ( band -> data , tcmpt -> data , bandinfo -> locxstart , bandinfo -> locystart , bandinfo -> locxend , bandinfo -> locyend ) ;\n jas_seq2d_setshift ( band -> data , bandinfo -> xstart , bandinfo -> ystart ) ;\n }\n band -> orient = bandinfo -> orient ;\n band -> analgain = JPC_NOMINALGAIN ( cp -> tccp . qmfbid , tcmpt -> numrlvls , rlvlno , band -> orient ) ;\n band -> numbps = 0 ;\n band -> absstepsize = 0 ;\n band -> stepsize = 0 ;\n band -> synweight = bandinfo -> synenergywt ;\n if ( band -> data ) {\n if ( ! ( band -> prcs = jas_alloc2 ( rlvl -> numprcs , sizeof ( jpc_enc_prc_t ) ) ) ) {\n goto error ;\n }\n for ( prcno = 0 , prc = band -> prcs ;\n prcno < rlvl -> numprcs ;\n ++ prcno , ++ prc ) {\n prc -> cblks = 0 ;\n prc -> incltree = 0 ;\n prc -> nlibtree = 0 ;\n prc -> savincltree = 0 ;\n prc -> savnlibtree = 0 ;\n prc -> band = band ;\n }\n for ( prcno = 0 , prc = band -> prcs ;\n prcno < rlvl -> numprcs ;\n ++ prcno , ++ prc ) {\n if ( ! prc_create ( prc , cp , band ) ) {\n goto error ;\n }\n }\n }\n return band ;\n error : band_destroy ( band ) ;\n return 0 ;\n }"}
{"idx": 16311, "target": 0, "func": "void event_active ( struct event * ev , int res , short ncalls ) {\n if ( ev -> ev_flags & EVLIST_ACTIVE ) {\n ev -> ev_res |= res ;\n return ;\n }\n ev -> ev_res = res ;\n ev -> ev_ncalls = ncalls ;\n ev -> ev_pncalls = NULL ;\n event_queue_insert ( ev -> ev_base , ev , EVLIST_ACTIVE ) ;\n }"}
{"idx": 16312, "target": 0, "func": "void fz_find_color_converter ( fz_context * ctx , fz_color_converter * cc , const fz_colorspace * is , const fz_colorspace * ds , const fz_colorspace * ss , const fz_color_params * params ) {\n if ( ds == NULL ) ds = fz_device_gray ( ctx ) ;\n if ( ss == NULL ) ss = fz_device_gray ( ctx ) ;\n cc -> ds = ds ;\n cc -> ss = ss ;\n cc -> is = is ;\n cc -> link = NULL ;\n if ( ss == default_gray ) {\n if ( ( ds == default_rgb ) || ( ds == default_bgr ) ) cc -> convert = g2rgb ;\n else if ( ds == default_cmyk ) cc -> convert = g2cmyk ;\n else cc -> convert = std_conv_color ;\n }\n else if ( ss == default_rgb ) {\n if ( ds == default_gray ) cc -> convert = rgb2g ;\n else if ( ds == default_bgr ) cc -> convert = rgb2bgr ;\n else if ( ds == default_cmyk ) cc -> convert = rgb2cmyk ;\n else cc -> convert = std_conv_color ;\n }\n else if ( ss == default_bgr ) {\n if ( ds == default_gray ) cc -> convert = bgr2g ;\n else if ( ds == default_rgb ) cc -> convert = rgb2bgr ;\n else if ( ds == default_cmyk ) cc -> convert = bgr2cmyk ;\n else cc -> convert = std_conv_color ;\n }\n else if ( ss == default_cmyk ) {\n if ( ds == default_gray ) cc -> convert = cmyk2g ;\n else if ( ds == default_rgb ) cc -> convert = cmyk2rgb ;\n else if ( ds == default_bgr ) cc -> convert = cmyk2bgr ;\n else cc -> convert = std_conv_color ;\n }\n else if ( ( ss == fz_device_rgb ( ctx ) && ds == fz_device_bgr ( ctx ) ) || ( ss == fz_device_bgr ( ctx ) && ds == fz_device_rgb ( ctx ) ) ) {\n cc -> convert = rgb2bgr ;\n }\n else {\n const fz_colorspace * ss_base = fz_source_colorspace_cm ( ctx , ss ) ;\n if ( ss_base != NULL && fz_colorspace_is_icc ( ctx , ds ) ) {\n if ( ss_base == ss ) cc -> convert = icc_conv_color ;\n else cc -> convert = icc_base_conv_color ;\n if ( ! ( fz_colorspace_is_device_gray ( ctx , ss_base ) && fz_colorspace_is_cmyk ( ctx , ds ) ) ) cc -> link = fz_get_icc_link ( ctx , ds , 0 , ss_base , 0 , is , params , 2 , 0 , & cc -> n ) ;\n }\n else cc -> convert = std_conv_color ;\n }\n }"}
{"idx": 16313, "target": 0, "func": "static void http_parse_query_test ( void ) {\n struct evkeyvalq headers ;\n fprintf ( stdout , \"Testing HTTP query parsing: \" ) ;\n TAILQ_INIT ( & headers ) ;\n evhttp_parse_query ( \"http://www.test.com/?q=test\" , & headers ) ;\n if ( validate_header ( & headers , \"q\" , \"test\" ) != 0 ) goto fail ;\n evhttp_clear_headers ( & headers ) ;\n evhttp_parse_query ( \"http://www.test.com/?q=test&foo=bar\" , & headers ) ;\n if ( validate_header ( & headers , \"q\" , \"test\" ) != 0 ) goto fail ;\n if ( validate_header ( & headers , \"foo\" , \"bar\" ) != 0 ) goto fail ;\n evhttp_clear_headers ( & headers ) ;\n evhttp_parse_query ( \"http://www.test.com/?q=test+foo\" , & headers ) ;\n if ( validate_header ( & headers , \"q\" , \"test foo\" ) != 0 ) goto fail ;\n evhttp_clear_headers ( & headers ) ;\n evhttp_parse_query ( \"http://www.test.com/?q=test%0Afoo\" , & headers ) ;\n if ( validate_header ( & headers , \"q\" , \"test\\nfoo\" ) != 0 ) goto fail ;\n evhttp_clear_headers ( & headers ) ;\n evhttp_parse_query ( \"http://www.test.com/?q=test%0Dfoo\" , & headers ) ;\n if ( validate_header ( & headers , \"q\" , \"test\\rfoo\" ) != 0 ) goto fail ;\n evhttp_clear_headers ( & headers ) ;\n fprintf ( stdout , \"OK\\n\" ) ;\n return ;\n fail : fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }"}
{"idx": 16314, "target": 0, "func": "int relpTcpWaitWriteable ( relpTcp_t * const pThis , struct timespec * const tTimeout ) {\n int r ;\n struct timespec tCurr ;\n struct pollfd pfd ;\n clock_gettime ( CLOCK_REALTIME , & tCurr ) ;\n const int timeout = ( tTimeout -> tv_sec - tCurr . tv_sec ) * 1000 + ( tTimeout -> tv_nsec - tCurr . tv_nsec ) / 1000000000 ;\n if ( timeout < 0 ) {\n r = 0 ;\n goto done ;\n }\n pThis -> pEngine -> dbgprint ( \"librelp: telpTcpWaitWritable doing poll() \" \"on fd %d, timoeut %d\\n\" , pThis -> sock , timeout ) ;\n pfd . fd = pThis -> sock ;\n pfd . events = POLLOUT ;\n r = poll ( & pfd , 1 , timeout ) ;\n done : return r ;\n }"}
{"idx": 16315, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ContentSettingBubbleDialogTest , InvokeDialog_mixed_script ) {\n RunDialog ( ) ;\n }"}
{"idx": 16316, "target": 0, "func": "static void * Type_DateTime_Read ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number * nItems , cmsUInt32Number SizeOfTag ) {\n cmsDateTimeNumber timestamp ;\n struct tm * NewDateTime ;\n * nItems = 0 ;\n NewDateTime = ( struct tm * ) _cmsMalloc ( self -> ContextID , sizeof ( struct tm ) ) ;\n if ( NewDateTime == NULL ) return NULL ;\n if ( io -> Read ( io , & timestamp , sizeof ( cmsDateTimeNumber ) , 1 ) != 1 ) return NULL ;\n _cmsDecodeDateTimeNumber ( & timestamp , NewDateTime ) ;\n * nItems = 1 ;\n return NewDateTime ;\n cmsUNUSED_PARAMETER ( SizeOfTag ) ;\n }"}
{"idx": 16317, "target": 0, "func": "ParseResult validate_hdr_content_length ( HdrHeap * heap , HTTPHdrImpl * hh ) {\n MIMEField * content_length_field = mime_hdr_field_find ( hh -> m_fields_impl , MIME_FIELD_CONTENT_LENGTH , MIME_LEN_CONTENT_LENGTH ) ;\n if ( content_length_field ) {\n if ( mime_hdr_field_find ( hh -> m_fields_impl , MIME_FIELD_TRANSFER_ENCODING , MIME_LEN_TRANSFER_ENCODING ) != nullptr ) {\n Debug ( \"http\" , \"Transfer-Encoding header and Content-Length headers the request, removing all Content-Length headers\" ) ;\n mime_hdr_field_delete ( heap , hh -> m_fields_impl , content_length_field ) ;\n return PARSE_RESULT_DONE ;\n }\n int content_length_len = 0 ;\n const char * content_length_val = content_length_field -> value_get ( & content_length_len ) ;\n while ( content_length_field -> has_dups ( ) ) {\n int content_length_len_2 = 0 ;\n const char * content_length_val_2 = content_length_field -> m_next_dup -> value_get ( & content_length_len_2 ) ;\n if ( ( content_length_len != content_length_len_2 ) || ( memcmp ( content_length_val , content_length_val_2 , content_length_len ) != 0 ) ) {\n Debug ( \"http\" , \"Content-Length headers don't match, returning parse error\" ) ;\n return PARSE_RESULT_ERROR ;\n }\n else {\n Debug ( \"http\" , \"Deleting duplicate Content-Length header\" ) ;\n mime_hdr_field_delete ( heap , hh -> m_fields_impl , content_length_field -> m_next_dup , false ) ;\n }\n }\n }\n return PARSE_RESULT_DONE ;\n }"}
{"idx": 16318, "target": 0, "func": "static int dissect_h225_SecurityServiceMode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_SecurityServiceMode , SecurityServiceMode_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 16319, "target": 0, "func": "void rfbNewUDPConnection ( rfbScreenInfoPtr rfbScreen , int sock ) {\n if ( write ( sock , ( char * ) & ptrAcceleration , 1 ) < 0 ) {\n rfbLogPerror ( \"rfbNewUDPConnection: write\" ) ;\n }\n }"}
{"idx": 16320, "target": 1, "func": "static int remoteStreamHandleRead ( struct qemud_client * client , struct qemud_client_stream * stream ) {\n char * buffer ;\n size_t bufferLen = REMOTE_MESSAGE_PAYLOAD_MAX ;\n int ret ;\n VIR_DEBUG ( \"stream=%p\" , stream ) ;\n if ( ! stream -> tx ) return 0 ;\n if ( VIR_ALLOC_N ( buffer , bufferLen ) < 0 ) return - 1 ;\n ret = virStreamRecv ( stream -> st , buffer , bufferLen ) ;\n if ( ret == - 2 ) {\n ret = 0 ;\n }\n else if ( ret < 0 ) {\n remote_error rerr ;\n memset ( & rerr , 0 , sizeof rerr ) ;\n remoteDispatchConnError ( & rerr , NULL ) ;\n ret = remoteSerializeStreamError ( client , & rerr , stream -> procedure , stream -> serial ) ;\n }\n else {\n stream -> tx = 0 ;\n if ( ret == 0 ) stream -> recvEOF = 1 ;\n ret = remoteSendStreamData ( client , stream , buffer , ret ) ;\n }\n VIR_FREE ( buffer ) ;\n return ret ;\n }"}
{"idx": 16321, "target": 0, "func": "static bool virt_ssbd_needed ( void * opaque ) {\n X86CPU * cpu = opaque ;\n CPUX86State * env = & cpu -> env ;\n return env -> virt_ssbd != 0 ;\n }"}
{"idx": 16322, "target": 1, "func": "void vpx_svc_set_keyframe ( SvcContext * svc_ctx ) {\n SvcInternal * const si = get_svc_internal ( svc_ctx ) ;\n if ( svc_ctx == NULL || si == NULL ) return ;\n si -> frame_within_gop = 0 ;\n }"}
{"idx": 16323, "target": 1, "func": "int libevt_record_values_read_event ( libevt_record_values_t * record_values , uint8_t * record_data , size_t record_data_size , uint8_t strict_mode , libcerror_error_t * * error ) {\n static char * function = \"libevt_record_values_read_event\" ;\n size_t record_data_offset = 0 ;\n size_t strings_data_offset = 0 ;\n ssize_t value_data_size = 0 ;\n uint32_t data_offset = 0 ;\n uint32_t data_size = 0 ;\n uint32_t members_data_size = 0 ;\n uint32_t size = 0 ;\n uint32_t size_copy = 0 ;\n uint32_t strings_offset = 0 ;\n uint32_t strings_size = 0 ;\n uint32_t user_sid_offset = 0 ;\n uint32_t user_sid_size = 0 ;\n # if defined ( HAVE_DEBUG_OUTPUT ) uint32_t value_32bit = 0 ;\n uint16_t value_16bit = 0 ;\n # endif if ( record_values == NULL ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_ARGUMENTS , LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE , \"%s: invalid record values.\" , function ) ;\n return ( - 1 ) ;\n }\n if ( record_data == NULL ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_ARGUMENTS , LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE , \"%s: invalid record data.\" , function ) ;\n return ( - 1 ) ;\n }\n if ( record_data_size > ( size_t ) SSIZE_MAX ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_ARGUMENTS , LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM , \"%s: invalid record data size value exceeds maximum.\" , function ) ;\n return ( - 1 ) ;\n }\n if ( record_data_size < ( sizeof ( evt_record_event_header_t ) + 4 ) ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS , \"%s: record data size value out of bounds.\" , function ) ;\n return ( - 1 ) ;\n }\n byte_stream_copy_to_uint32_little_endian ( ( ( evt_record_event_header_t * ) record_data ) -> size , size ) ;\n byte_stream_copy_to_uint32_little_endian ( ( ( evt_record_event_header_t * ) record_data ) -> record_number , record_values -> number ) ;\n byte_stream_copy_to_uint32_little_endian ( ( ( evt_record_event_header_t * ) record_data ) -> creation_time , record_values -> creation_time ) ;\n byte_stream_copy_to_uint32_little_endian ( ( ( evt_record_event_header_t * ) record_data ) -> written_time , record_values -> written_time ) ;\n byte_stream_copy_to_uint32_little_endian ( ( ( evt_record_event_header_t * ) record_data ) -> event_identifier , record_values -> event_identifier ) ;\n byte_stream_copy_to_uint16_little_endian ( ( ( evt_record_event_header_t * ) record_data ) -> event_type , record_values -> event_type ) ;\n byte_stream_copy_to_uint16_little_endian ( ( ( evt_record_event_header_t * ) record_data ) -> event_category , record_values -> event_category ) ;\n byte_stream_copy_to_uint32_little_endian ( ( ( evt_record_event_header_t * ) record_data ) -> strings_offset , strings_offset ) ;\n byte_stream_copy_to_uint32_little_endian ( ( ( evt_record_event_header_t * ) record_data ) -> user_sid_size , user_sid_size ) ;\n byte_stream_copy_to_uint32_little_endian ( ( ( evt_record_event_header_t * ) record_data ) -> user_sid_offset , user_sid_offset ) ;\n byte_stream_copy_to_uint32_little_endian ( ( ( evt_record_event_header_t * ) record_data ) -> data_size , data_size ) ;\n byte_stream_copy_to_uint32_little_endian ( ( ( evt_record_event_header_t * ) record_data ) -> data_offset , data_offset ) ;\n byte_stream_copy_to_uint32_little_endian ( & ( record_data [ record_data_size - 4 ] ) , size_copy ) ;\n # if defined ( HAVE_DEBUG_OUTPUT ) if ( libcnotify_verbose != 0 ) {\n libcnotify_printf ( \"%s: size\\t\\t\\t\\t\\t: %\" PRIu32 \"\\n\" , function , size ) ;\n libcnotify_printf ( \"%s: signature\\t\\t\\t\\t: %c%c%c%c\\n\" , function , ( ( evt_record_event_header_t * ) record_data ) -> signature [ 0 ] , ( ( evt_record_event_header_t * ) record_data ) -> signature [ 1 ] , ( ( evt_record_event_header_t * ) record_data ) -> signature [ 2 ] , ( ( evt_record_event_header_t * ) record_data ) -> signature [ 3 ] ) ;\n libcnotify_printf ( \"%s: record number\\t\\t\\t\\t: %\" PRIu32 \"\\n\" , function , record_values -> number ) ;\n if ( libevt_debug_print_posix_time_value ( function , \"creation time\\t\\t\\t\\t\" , ( ( evt_record_event_header_t * ) record_data ) -> creation_time , 4 , LIBFDATETIME_ENDIAN_LITTLE , LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_SIGNED , LIBFDATETIME_STRING_FORMAT_TYPE_CTIME | LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME , error ) != 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_PRINT_FAILED , \"%s: unable to print POSIX time value.\" , function ) ;\n goto on_error ;\n }\n if ( libevt_debug_print_posix_time_value ( function , \"written time\\t\\t\\t\\t\" , ( ( evt_record_event_header_t * ) record_data ) -> written_time , 4 , LIBFDATETIME_ENDIAN_LITTLE , LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_SIGNED , LIBFDATETIME_STRING_FORMAT_TYPE_CTIME | LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME , error ) != 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_PRINT_FAILED , \"%s: unable to print POSIX time value.\" , function ) ;\n goto on_error ;\n }\n libcnotify_printf ( \"%s: event identifier\\t\\t\\t: 0x%08\" PRIx32 \"\\n\" , function , record_values -> event_identifier ) ;\n libcnotify_printf ( \"%s: event identifier: code\\t\\t\\t: %\" PRIu32 \"\\n\" , function , record_values -> event_identifier & 0x0000ffffUL ) ;\n libcnotify_printf ( \"%s: event identifier: facility\\t\\t: %\" PRIu32 \"\\n\" , function , ( record_values -> event_identifier & 0x0fff0000UL ) >> 16 ) ;\n libcnotify_printf ( \"%s: event identifier: reserved\\t\\t: %\" PRIu32 \"\\n\" , function , ( record_values -> event_identifier & 0x10000000UL ) >> 28 ) ;\n libcnotify_printf ( \"%s: event identifier: customer flags\\t: %\" PRIu32 \"\\n\" , function , ( record_values -> event_identifier & 0x20000000UL ) >> 29 ) ;\n libcnotify_printf ( \"%s: event identifier: severity\\t\\t: %\" PRIu32 \" (\" , function , ( record_values -> event_identifier & 0xc0000000UL ) >> 30 ) ;\n libevt_debug_print_event_identifier_severity ( record_values -> event_identifier ) ;\n libcnotify_printf ( \")\\n\" ) ;\n libcnotify_printf ( \"%s: event type\\t\\t\\t\\t: %\" PRIu16 \" (\" , function , record_values -> event_type ) ;\n libevt_debug_print_event_type ( record_values -> event_type ) ;\n libcnotify_printf ( \")\\n\" ) ;\n byte_stream_copy_to_uint16_little_endian ( ( ( evt_record_event_header_t * ) record_data ) -> number_of_strings , value_16bit ) ;\n libcnotify_printf ( \"%s: number of strings\\t\\t\\t: %\" PRIu16 \"\\n\" , function , value_16bit ) ;\n libcnotify_printf ( \"%s: event category\\t\\t\\t\\t: %\" PRIu16 \"\\n\" , function , record_values -> event_category ) ;\n byte_stream_copy_to_uint16_little_endian ( ( ( evt_record_event_header_t * ) record_data ) -> event_flags , value_16bit ) ;\n libcnotify_printf ( \"%s: event flags\\t\\t\\t\\t: 0x%04\" PRIx16 \"\\n\" , function , value_16bit ) ;\n byte_stream_copy_to_uint32_little_endian ( ( ( evt_record_event_header_t * ) record_data ) -> closing_record_number , value_32bit ) ;\n libcnotify_printf ( \"%s: closing record values number\\t\\t: %\" PRIu32 \"\\n\" , function , value_32bit ) ;\n libcnotify_printf ( \"%s: strings offset\\t\\t\\t\\t: %\" PRIu32 \"\\n\" , function , strings_offset ) ;\n libcnotify_printf ( \"%s: user security identifier (SID) size\\t: %\" PRIu32 \"\\n\" , function , user_sid_size ) ;\n libcnotify_printf ( \"%s: user security identifier (SID) offset\\t: %\" PRIu32 \"\\n\" , function , user_sid_offset ) ;\n libcnotify_printf ( \"%s: data size\\t\\t\\t\\t: %\" PRIu32 \"\\n\" , function , data_size ) ;\n libcnotify_printf ( \"%s: data offset\\t\\t\\t\\t: %\" PRIu32 \"\\n\" , function , data_offset ) ;\n }\n # endif record_data_offset = sizeof ( evt_record_event_header_t ) ;\n if ( ( user_sid_offset == 0 ) && ( user_sid_size != 0 ) ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS , \"%s: user SID offset or size value out of bounds.\" , function ) ;\n goto on_error ;\n }\n if ( user_sid_offset != 0 ) {\n if ( ( ( size_t ) user_sid_offset < record_data_offset ) || ( ( size_t ) user_sid_offset >= ( record_data_size - 4 ) ) ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS , \"%s: user SID offset value out of bounds.\" , function ) ;\n goto on_error ;\n }\n if ( user_sid_size != 0 ) {\n if ( ( size_t ) ( user_sid_offset + user_sid_size ) > ( record_data_size - 4 ) ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS , \"%s: user SID size value out of bounds.\" , function ) ;\n goto on_error ;\n }\n }\n }\n if ( ( ( size_t ) strings_offset < user_sid_offset ) || ( ( size_t ) strings_offset >= ( record_data_size - 4 ) ) ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS , \"%s: strings offset value out of bounds.\" , function ) ;\n goto on_error ;\n }\n if ( ( ( size_t ) data_offset < strings_offset ) || ( ( size_t ) data_offset >= ( record_data_size - 4 ) ) ) {\n if ( data_size != 0 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS , \"%s: data offset value out of bounds.\" , function ) ;\n goto on_error ;\n }\n data_offset = ( uint32_t ) record_data_size - 4 ;\n }\n if ( ( ( size_t ) strings_offset >= ( record_data_size - 4 ) ) && ( strings_offset != data_offset ) ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS , \"%s: strings offset value out of bounds.\" , function ) ;\n goto on_error ;\n }\n if ( strings_offset != 0 ) {\n if ( strings_offset < record_data_offset ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS , \"%s: strings offset value out of bounds.\" , function ) ;\n goto on_error ;\n }\n }\n if ( user_sid_offset != 0 ) {\n members_data_size = user_sid_offset - ( uint32_t ) record_data_offset ;\n }\n else if ( strings_offset != 0 ) {\n members_data_size = strings_offset - ( uint32_t ) record_data_offset ;\n }\n if ( strings_offset != 0 ) {\n strings_size = data_offset - strings_offset ;\n }\n if ( data_size != 0 ) {\n if ( ( size_t ) ( data_offset + data_size ) > ( record_data_size - 4 ) ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS , \"%s: data size value out of bounds.\" , function ) ;\n goto on_error ;\n }\n }\n if ( members_data_size != 0 ) {\n # if defined ( HAVE_DEBUG_OUTPUT ) if ( libcnotify_verbose != 0 ) {\n libcnotify_printf ( \"%s: members data:\\n\" , function ) ;\n libcnotify_print_data ( & ( record_data [ record_data_offset ] ) , members_data_size , LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ) ;\n }\n # endif if ( libfvalue_value_type_initialize ( & ( record_values -> source_name ) , LIBFVALUE_VALUE_TYPE_STRING_UTF16 , error ) != 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED , \"%s: unable to create source name value.\" , function ) ;\n goto on_error ;\n }\n value_data_size = libfvalue_value_type_set_data_string ( record_values -> source_name , & ( record_data [ record_data_offset ] ) , members_data_size , LIBFVALUE_CODEPAGE_UTF16_LITTLE_ENDIAN , LIBFVALUE_VALUE_DATA_FLAG_MANAGED , error ) ;\n if ( value_data_size == - 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_SET_FAILED , \"%s: unable to set data of source name value.\" , function ) ;\n goto on_error ;\n }\n # if defined ( HAVE_DEBUG_OUTPUT ) if ( libcnotify_verbose != 0 ) {\n libcnotify_printf ( \"%s: source name\\t\\t\\t\\t: \" , function ) ;\n if ( libfvalue_value_print ( record_values -> source_name , 0 , 0 , error ) != 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_PRINT_FAILED , \"%s: unable to print source name value.\" , function ) ;\n goto on_error ;\n }\n libcnotify_printf ( \"\\n\" ) ;\n }\n # endif record_data_offset += value_data_size ;\n members_data_size -= ( uint32_t ) value_data_size ;\n if ( libfvalue_value_type_initialize ( & ( record_values -> computer_name ) , LIBFVALUE_VALUE_TYPE_STRING_UTF16 , error ) != 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED , \"%s: unable to create computer name value.\" , function ) ;\n goto on_error ;\n }\n value_data_size = libfvalue_value_type_set_data_string ( record_values -> computer_name , & ( record_data [ record_data_offset ] ) , members_data_size , LIBFVALUE_CODEPAGE_UTF16_LITTLE_ENDIAN , LIBFVALUE_VALUE_DATA_FLAG_MANAGED , error ) ;\n if ( value_data_size == - 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_SET_FAILED , \"%s: unable to set data of computer name value.\" , function ) ;\n goto on_error ;\n }\n # if defined ( HAVE_DEBUG_OUTPUT ) if ( libcnotify_verbose != 0 ) {\n libcnotify_printf ( \"%s: computer name\\t\\t\\t\\t: \" , function ) ;\n if ( libfvalue_value_print ( record_values -> computer_name , 0 , 0 , error ) != 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_PRINT_FAILED , \"%s: unable to print computer name value.\" , function ) ;\n goto on_error ;\n }\n libcnotify_printf ( \"\\n\" ) ;\n }\n # endif record_data_offset += value_data_size ;\n members_data_size -= ( uint32_t ) value_data_size ;\n if ( members_data_size > 0 ) {\n # if defined ( HAVE_DEBUG_OUTPUT ) if ( libcnotify_verbose != 0 ) {\n libcnotify_printf ( \"%s: members trailing data:\\n\" , function ) ;\n libcnotify_print_data ( & ( record_data [ record_data_offset ] ) , members_data_size , LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ) ;\n }\n # endif record_data_offset += members_data_size ;\n }\n }\n if ( user_sid_size != 0 ) {\n if ( libfvalue_value_type_initialize ( & ( record_values -> user_security_identifier ) , LIBFVALUE_VALUE_TYPE_NT_SECURITY_IDENTIFIER , error ) != 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED , \"%s: unable to create user security identifier (SID) value.\" , function ) ;\n goto on_error ;\n }\n if ( libfvalue_value_set_data ( record_values -> user_security_identifier , & ( record_data [ user_sid_offset ] ) , ( size_t ) user_sid_size , LIBFVALUE_ENDIAN_LITTLE , LIBFVALUE_VALUE_DATA_FLAG_MANAGED , error ) != 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_SET_FAILED , \"%s: unable to set data of user security identifier (SID) value.\" , function ) ;\n goto on_error ;\n }\n # if defined ( HAVE_DEBUG_OUTPUT ) if ( libcnotify_verbose != 0 ) {\n libcnotify_printf ( \"%s: user security identifier (SID)\\t\\t: \" , function ) ;\n if ( libfvalue_value_print ( record_values -> user_security_identifier , 0 , 0 , error ) != 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_PRINT_FAILED , \"%s: unable to print user security identifier (SID) value.\" , function ) ;\n goto on_error ;\n }\n libcnotify_printf ( \"\\n\" ) ;\n }\n # endif record_data_offset += user_sid_size ;\n }\n if ( strings_size != 0 ) {\n # if defined ( HAVE_DEBUG_OUTPUT ) if ( libcnotify_verbose != 0 ) {\n libcnotify_printf ( \"%s: strings data:\\n\" , function ) ;\n libcnotify_print_data ( & ( record_data [ strings_offset ] ) , strings_size , LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ) ;\n }\n # endif if ( size_copy == 0 ) {\n strings_data_offset = strings_offset + strings_size - 2 ;\n while ( strings_data_offset > strings_offset ) {\n if ( ( record_data [ strings_data_offset ] != 0 ) || ( record_data [ strings_data_offset + 1 ] != 0 ) ) {\n strings_size += 2 ;\n break ;\n }\n strings_data_offset -= 2 ;\n strings_size -= 2 ;\n }\n }\n if ( libfvalue_value_type_initialize ( & ( record_values -> strings ) , LIBFVALUE_VALUE_TYPE_STRING_UTF16 , error ) != 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED , \"%s: unable to create strings value.\" , function ) ;\n goto on_error ;\n }\n value_data_size = libfvalue_value_type_set_data_strings_array ( record_values -> strings , & ( record_data [ strings_offset ] ) , strings_size , LIBFVALUE_CODEPAGE_UTF16_LITTLE_ENDIAN , error ) ;\n if ( value_data_size == - 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_SET_FAILED , \"%s: unable to set data of strings value.\" , function ) ;\n goto on_error ;\n }\n record_data_offset += strings_size ;\n }\n if ( data_size != 0 ) {\n # if defined ( HAVE_DEBUG_OUTPUT ) if ( libcnotify_verbose != 0 ) {\n libcnotify_printf ( \"%s: data:\\n\" , function ) ;\n libcnotify_print_data ( & ( record_data [ data_offset ] ) , ( size_t ) data_size , LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ) ;\n }\n # endif if ( libfvalue_value_type_initialize ( & ( record_values -> data ) , LIBFVALUE_VALUE_TYPE_BINARY_DATA , error ) != 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED , \"%s: unable to create data value.\" , function ) ;\n goto on_error ;\n }\n if ( libfvalue_value_set_data ( record_values -> data , & ( record_data [ record_data_offset ] ) , ( size_t ) data_size , LIBFVALUE_ENDIAN_LITTLE , LIBFVALUE_VALUE_DATA_FLAG_MANAGED , error ) != 1 ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_SET_FAILED , \"%s: unable to set data of data value.\" , function ) ;\n goto on_error ;\n }\n # if defined ( HAVE_DEBUG_OUTPUT ) record_data_offset += data_size ;\n # endif }\n # if defined ( HAVE_DEBUG_OUTPUT ) if ( libcnotify_verbose != 0 ) {\n if ( record_data_offset < ( record_data_size - 4 ) ) {\n libcnotify_printf ( \"%s: padding:\\n\" , function ) ;\n libcnotify_print_data ( & ( record_data [ record_data_offset ] ) , ( size_t ) record_data_size - record_data_offset - 4 , LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ) ;\n }\n libcnotify_printf ( \"%s: size copy\\t\\t\\t\\t: %\" PRIu32 \"\\n\" , function , size_copy ) ;\n libcnotify_printf ( \"\\n\" ) ;\n }\n # endif if ( ( strict_mode == 0 ) && ( size_copy == 0 ) ) {\n size_copy = size ;\n }\n if ( size != size_copy ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_INPUT , LIBCERROR_INPUT_ERROR_VALUE_MISMATCH , \"%s: value mismatch for size and size copy.\" , function ) ;\n goto on_error ;\n }\n if ( record_data_size != ( size_t ) size ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_INPUT , LIBCERROR_INPUT_ERROR_VALUE_MISMATCH , \"%s: value mismatch for record_values data size and size.\" , function ) ;\n goto on_error ;\n }\n return ( 1 ) ;\n on_error : if ( record_values -> data != NULL ) {\n libfvalue_value_free ( & ( record_values -> data ) , NULL ) ;\n }\n if ( record_values -> strings != NULL ) {\n libfvalue_value_free ( & ( record_values -> strings ) , NULL ) ;\n }\n if ( record_values -> user_security_identifier != NULL ) {\n libfvalue_value_free ( & ( record_values -> user_security_identifier ) , NULL ) ;\n }\n if ( record_values -> computer_name != NULL ) {\n libfvalue_value_free ( & ( record_values -> computer_name ) , NULL ) ;\n }\n if ( record_values -> source_name != NULL ) {\n libfvalue_value_free ( & ( record_values -> source_name ) , NULL ) ;\n }\n return ( - 1 ) ;\n }"}
{"idx": 16324, "target": 0, "func": "fz_colorspace * fz_new_icc_colorspace ( fz_context * ctx , const char * name , int num , fz_buffer * buf ) {\n # ifdef NO_ICC fz_throw ( ctx , FZ_ERROR_GENERIC , \"ICC Profiles not supported in NO_ICC build\" ) ;\n # else fz_colorspace * cs = NULL ;\n fz_iccprofile * profile ;\n int is_lab = 0 ;\n enum fz_colorspace_type type = FZ_COLORSPACE_NONE ;\n int flags = FZ_COLORSPACE_IS_ICC ;\n profile = fz_malloc_struct ( ctx , fz_iccprofile ) ;\n fz_try ( ctx ) {\n if ( buf == NULL ) {\n size_t size ;\n const unsigned char * data ;\n data = fz_lookup_icc ( ctx , name , & size ) ;\n profile -> buffer = fz_new_buffer_from_shared_data ( ctx , data , size ) ;\n is_lab = ( strcmp ( name , FZ_ICC_PROFILE_LAB ) == 0 ) ;\n profile -> bgr = ( strcmp ( name , FZ_ICC_PROFILE_BGR ) == 0 ) ;\n flags |= FZ_COLORSPACE_IS_DEVICE ;\n }\n else {\n profile -> buffer = fz_keep_buffer ( ctx , buf ) ;\n }\n fz_cmm_init_profile ( ctx , profile ) ;\n if ( num != 0 && num != profile -> num_devcomp ) {\n fz_drop_buffer ( ctx , profile -> buffer ) ;\n fz_cmm_fin_profile ( ctx , profile ) ;\n fz_free ( ctx , profile ) ;\n break ;\n }\n fz_md5_icc ( ctx , profile ) ;\n switch ( profile -> num_devcomp ) {\n default : type = FZ_COLORSPACE_SEPARATION ;\n break ;\n case 1 : type = FZ_COLORSPACE_GRAY ;\n break ;\n case 3 : if ( is_lab ) type = FZ_COLORSPACE_LAB ;\n else if ( profile -> bgr ) type = FZ_COLORSPACE_BGR ;\n else type = FZ_COLORSPACE_RGB ;\n break ;\n case 4 : type = FZ_COLORSPACE_CMYK ;\n break ;\n }\n cs = fz_new_colorspace ( ctx , name , type , flags , profile -> num_devcomp , NULL , NULL , NULL , is_lab ? clamp_lab_icc : clamp_default_icc , free_icc , profile , sizeof ( profile ) ) ;\n switch ( profile -> num_devcomp ) {\n case 1 : fz_colorspace_name_colorant ( ctx , cs , 0 , \"Gray\" ) ;\n break ;\n case 3 : if ( is_lab ) {\n fz_colorspace_name_colorant ( ctx , cs , 0 , \"L*\" ) ;\n fz_colorspace_name_colorant ( ctx , cs , 1 , \"a*\" ) ;\n fz_colorspace_name_colorant ( ctx , cs , 2 , \"b*\" ) ;\n }\n else {\n fz_colorspace_name_colorant ( ctx , cs , profile -> bgr ? 2 : 0 , \"Red\" ) ;\n fz_colorspace_name_colorant ( ctx , cs , 1 , \"Green\" ) ;\n fz_colorspace_name_colorant ( ctx , cs , profile -> bgr ? 0 : 2 , \"Blue\" ) ;\n }\n break ;\n case 4 : fz_colorspace_name_colorant ( ctx , cs , 0 , \"Cyan\" ) ;\n fz_colorspace_name_colorant ( ctx , cs , 1 , \"Magenta\" ) ;\n fz_colorspace_name_colorant ( ctx , cs , 2 , \"Yellow\" ) ;\n fz_colorspace_name_colorant ( ctx , cs , 3 , \"Black\" ) ;\n break ;\n }\n }\n fz_catch ( ctx ) {\n fz_drop_buffer ( ctx , profile -> buffer ) ;\n fz_cmm_fin_profile ( ctx , profile ) ;\n fz_free ( ctx , profile ) ;\n }\n return cs ;\n # endif }"}
{"idx": 16325, "target": 0, "func": "static uint8_t cirrus_mmio_blt_read ( CirrusVGAState * s , unsigned address ) {\n int value = 0xff ;\n switch ( address ) {\n case ( CIRRUS_MMIO_BLTBGCOLOR + 0 ) : value = cirrus_vga_read_gr ( s , 0x00 ) ;\n break ;\n case ( CIRRUS_MMIO_BLTBGCOLOR + 1 ) : value = cirrus_vga_read_gr ( s , 0x10 ) ;\n break ;\n case ( CIRRUS_MMIO_BLTBGCOLOR + 2 ) : value = cirrus_vga_read_gr ( s , 0x12 ) ;\n break ;\n case ( CIRRUS_MMIO_BLTBGCOLOR + 3 ) : value = cirrus_vga_read_gr ( s , 0x14 ) ;\n break ;\n case ( CIRRUS_MMIO_BLTFGCOLOR + 0 ) : value = cirrus_vga_read_gr ( s , 0x01 ) ;\n break ;\n case ( CIRRUS_MMIO_BLTFGCOLOR + 1 ) : value = cirrus_vga_read_gr ( s , 0x11 ) ;\n break ;\n case ( CIRRUS_MMIO_BLTFGCOLOR + 2 ) : value = cirrus_vga_read_gr ( s , 0x13 ) ;\n break ;\n case ( CIRRUS_MMIO_BLTFGCOLOR + 3 ) : value = cirrus_vga_read_gr ( s , 0x15 ) ;\n break ;\n case ( CIRRUS_MMIO_BLTWIDTH + 0 ) : value = cirrus_vga_read_gr ( s , 0x20 ) ;\n break ;\n case ( CIRRUS_MMIO_BLTWIDTH + 1 ) : value = cirrus_vga_read_gr ( s , 0x21 ) ;\n break ;\n case ( CIRRUS_MMIO_BLTHEIGHT + 0 ) : value = cirrus_vga_read_gr ( s , 0x22 ) ;\n break ;\n case ( CIRRUS_MMIO_BLTHEIGHT + 1 ) : value = cirrus_vga_read_gr ( s , 0x23 ) ;\n break ;\n case ( CIRRUS_MMIO_BLTDESTPITCH + 0 ) : value = cirrus_vga_read_gr ( s , 0x24 ) ;\n break ;\n case ( CIRRUS_MMIO_BLTDESTPITCH + 1 ) : value = cirrus_vga_read_gr ( s , 0x25 ) ;\n break ;\n case ( CIRRUS_MMIO_BLTSRCPITCH + 0 ) : value = cirrus_vga_read_gr ( s , 0x26 ) ;\n break ;\n case ( CIRRUS_MMIO_BLTSRCPITCH + 1 ) : value = cirrus_vga_read_gr ( s , 0x27 ) ;\n break ;\n case ( CIRRUS_MMIO_BLTDESTADDR + 0 ) : value = cirrus_vga_read_gr ( s , 0x28 ) ;\n break ;\n case ( CIRRUS_MMIO_BLTDESTADDR + 1 ) : value = cirrus_vga_read_gr ( s , 0x29 ) ;\n break ;\n case ( CIRRUS_MMIO_BLTDESTADDR + 2 ) : value = cirrus_vga_read_gr ( s , 0x2a ) ;\n break ;\n case ( CIRRUS_MMIO_BLTSRCADDR + 0 ) : value = cirrus_vga_read_gr ( s , 0x2c ) ;\n break ;\n case ( CIRRUS_MMIO_BLTSRCADDR + 1 ) : value = cirrus_vga_read_gr ( s , 0x2d ) ;\n break ;\n case ( CIRRUS_MMIO_BLTSRCADDR + 2 ) : value = cirrus_vga_read_gr ( s , 0x2e ) ;\n break ;\n case CIRRUS_MMIO_BLTWRITEMASK : value = cirrus_vga_read_gr ( s , 0x2f ) ;\n break ;\n case CIRRUS_MMIO_BLTMODE : value = cirrus_vga_read_gr ( s , 0x30 ) ;\n break ;\n case CIRRUS_MMIO_BLTROP : value = cirrus_vga_read_gr ( s , 0x32 ) ;\n break ;\n case CIRRUS_MMIO_BLTMODEEXT : value = cirrus_vga_read_gr ( s , 0x33 ) ;\n break ;\n case ( CIRRUS_MMIO_BLTTRANSPARENTCOLOR + 0 ) : value = cirrus_vga_read_gr ( s , 0x34 ) ;\n break ;\n case ( CIRRUS_MMIO_BLTTRANSPARENTCOLOR + 1 ) : value = cirrus_vga_read_gr ( s , 0x35 ) ;\n break ;\n case ( CIRRUS_MMIO_BLTTRANSPARENTCOLORMASK + 0 ) : value = cirrus_vga_read_gr ( s , 0x38 ) ;\n break ;\n case ( CIRRUS_MMIO_BLTTRANSPARENTCOLORMASK + 1 ) : value = cirrus_vga_read_gr ( s , 0x39 ) ;\n break ;\n case CIRRUS_MMIO_BLTSTATUS : value = cirrus_vga_read_gr ( s , 0x31 ) ;\n break ;\n default : # ifdef DEBUG_CIRRUS printf ( \"cirrus: mmio read - address 0x%04x\\n\" , address ) ;\n # endif break ;\n }\n trace_vga_cirrus_write_blt ( address , value ) ;\n return ( uint8_t ) value ;\n }"}
{"idx": 16326, "target": 0, "func": "int BIO_vsnprintf ( char * buf , size_t n , const char * format , va_list args ) {\n size_t retlen ;\n int truncated ;\n if ( ! _dopr ( & buf , NULL , & n , & retlen , & truncated , format , args ) ) return - 1 ;\n if ( truncated ) return - 1 ;\n else return ( retlen <= INT_MAX ) ? ( int ) retlen : - 1 ;\n }"}
{"idx": 16327, "target": 0, "func": "static inline void NVRAM_set_lword ( m48t59_t * nvram , uint32_t addr , uint32_t value ) {\n m48t59_set_addr ( nvram , addr ) ;\n m48t59_write ( nvram , value >> 24 ) ;\n m48t59_set_addr ( nvram , addr + 1 ) ;\n m48t59_write ( nvram , ( value >> 16 ) & 0xFF ) ;\n m48t59_set_addr ( nvram , addr + 2 ) ;\n m48t59_write ( nvram , ( value >> 8 ) & 0xFF ) ;\n m48t59_set_addr ( nvram , addr + 3 ) ;\n m48t59_write ( nvram , value & 0xFF ) ;\n }"}
{"idx": 16328, "target": 0, "func": "static inline void strip_header ( char * header_bag , char * lc_header_bag , const char * lc_header_name ) {\n char * lc_header_start = strstr ( lc_header_bag , lc_header_name ) ;\n char * header_start = header_bag + ( lc_header_start - lc_header_bag ) ;\n if ( lc_header_start && ( lc_header_start == lc_header_bag || * ( lc_header_start - 1 ) == '\\n' ) ) {\n char * lc_eol = strchr ( lc_header_start , '\\n' ) ;\n char * eol = header_start + ( lc_eol - lc_header_start ) ;\n if ( lc_eol ) {\n size_t eollen = strlen ( lc_eol ) ;\n memmove ( lc_header_start , lc_eol + 1 , eollen ) ;\n memmove ( header_start , eol + 1 , eollen ) ;\n }\n else {\n * lc_header_start = '\\0' ;\n * header_start = '\\0' ;\n }\n }\n }"}
{"idx": 16329, "target": 0, "func": "static int parse_CDbColId ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree , const char * text ) {\n guint32 eKind , ulId ;\n e_guid_t guid ;\n const char * str ;\n static const char * KIND [ ] = {\n \"DBKIND_GUID_NAME\" , \"DBKIND_GUID_PROPID\" }\n ;\n proto_item * tree_item ;\n proto_tree * tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CDbColId , & tree_item , text ) ;\n eKind = tvb_get_letohl ( tvb , offset ) ;\n str = ( eKind < 2 ? KIND [ eKind ] : \"???\" ) ;\n proto_tree_add_string_format_value ( tree , hf_mswsp_cdbcolid_ekind , tvb , offset , 4 , str , \"%s (%u)\" , str , eKind ) ;\n offset += 4 ;\n offset = parse_padding ( tvb , offset , 8 , pad_tree , \"paddingGuidAlign\" ) ;\n offset = parse_guid ( tvb , offset , tree , & guid , \"GUID\" ) ;\n ulId = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_cdbcolid_ulid , tvb , offset , 4 , ulId ) ;\n offset += 4 ;\n if ( eKind == DBKIND_GUID_NAME ) {\n char * name ;\n int len = ulId ;\n name = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset , len , ENC_LITTLE_ENDIAN | ENC_UCS_2 ) ;\n proto_item_append_text ( tree_item , \" \\\"%s\\\"\" , name ) ;\n proto_tree_add_string_format_value ( tree , hf_mswsp_cdbcolid_vstring , tvb , offset , len , name , \"\\\"%s\\\"\" , name ) ;\n offset += len ;\n }\n else if ( eKind == DBKIND_GUID_PROPID ) {\n proto_item_append_text ( tree_item , \" %08x\" , ulId ) ;\n }\n else {\n proto_item_append_text ( tree_item , \"<INVALID>\" ) ;\n }\n proto_item_set_end ( tree_item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 16330, "target": 0, "func": "static int decode_block ( AVCodecContext * avctx , GetBitContext * gb , int16_t * dst0 , int16_t * dst1 ) {\n RALFContext * ctx = avctx -> priv_data ;\n int len , ch , ret ;\n int dmode , mode [ 2 ] , bits [ 2 ] ;\n int * ch0 , * ch1 ;\n int i , t , t2 ;\n len = 12 - get_unary ( gb , 0 , 6 ) ;\n if ( len <= 7 ) len ^= 1 ;\n len = 1 << len ;\n if ( ctx -> sample_offset + len > ctx -> max_frame_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"Decoder's stomach is crying, it ate too many samples\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( avctx -> channels > 1 ) dmode = get_bits ( gb , 2 ) + 1 ;\n else dmode = 0 ;\n mode [ 0 ] = ( dmode == 4 ) ? 1 : 0 ;\n mode [ 1 ] = ( dmode >= 2 ) ? 2 : 0 ;\n bits [ 0 ] = 16 ;\n bits [ 1 ] = ( mode [ 1 ] == 2 ) ? 17 : 16 ;\n for ( ch = 0 ;\n ch < avctx -> channels ;\n ch ++ ) {\n if ( ( ret = decode_channel ( ctx , gb , ch , len , mode [ ch ] , bits [ ch ] ) ) < 0 ) return ret ;\n if ( ctx -> filter_params > 1 && ctx -> filter_params != FILTER_RAW ) {\n ctx -> filter_bits += 3 ;\n apply_lpc ( ctx , ch , len , bits [ ch ] ) ;\n }\n if ( get_bits_left ( gb ) < 0 ) return AVERROR_INVALIDDATA ;\n }\n ch0 = ctx -> channel_data [ 0 ] ;\n ch1 = ctx -> channel_data [ 1 ] ;\n switch ( dmode ) {\n case 0 : for ( i = 0 ;\n i < len ;\n i ++ ) dst0 [ i ] = ch0 [ i ] + ctx -> bias [ 0 ] ;\n break ;\n case 1 : for ( i = 0 ;\n i < len ;\n i ++ ) {\n dst0 [ i ] = ch0 [ i ] + ctx -> bias [ 0 ] ;\n dst1 [ i ] = ch1 [ i ] + ctx -> bias [ 1 ] ;\n }\n break ;\n case 2 : for ( i = 0 ;\n i < len ;\n i ++ ) {\n ch0 [ i ] += ctx -> bias [ 0 ] ;\n dst0 [ i ] = ch0 [ i ] ;\n dst1 [ i ] = ch0 [ i ] - ( ch1 [ i ] + ctx -> bias [ 1 ] ) ;\n }\n break ;\n case 3 : for ( i = 0 ;\n i < len ;\n i ++ ) {\n t = ch0 [ i ] + ctx -> bias [ 0 ] ;\n t2 = ch1 [ i ] + ctx -> bias [ 1 ] ;\n dst0 [ i ] = t + t2 ;\n dst1 [ i ] = t ;\n }\n break ;\n case 4 : for ( i = 0 ;\n i < len ;\n i ++ ) {\n t = ch1 [ i ] + ctx -> bias [ 1 ] ;\n t2 = ( ( ch0 [ i ] + ctx -> bias [ 0 ] ) << 1 ) | ( t & 1 ) ;\n dst0 [ i ] = ( t2 + t ) / 2 ;\n dst1 [ i ] = ( t2 - t ) / 2 ;\n }\n break ;\n }\n ctx -> sample_offset += len ;\n return 0 ;\n }"}
{"idx": 16331, "target": 0, "func": "static void SCInterpretPS ( FILE * ps , SplineChar * sc ) {\n EntityChar ec ;\n real dval ;\n char tokbuf [ 10 ] ;\n IO wrapper ;\n int ch ;\n while ( isspace ( ch = getc ( ps ) ) ) ;\n ungetc ( ch , ps ) ;\n memset ( & wrapper , 0 , sizeof ( wrapper ) ) ;\n wrapper . advance_width = UNDEFINED_WIDTH ;\n if ( ch != '<' ) {\n pushio ( & wrapper , ps , NULL , 0 ) ;\n if ( nextpstoken ( & wrapper , & dval , tokbuf , sizeof ( tokbuf ) ) != pt_opencurly ) LogError ( _ ( \"We don't understand this font\\n\" ) ) ;\n }\n else {\n ( void ) getc ( ps ) ;\n pushfogio ( & wrapper , ps ) ;\n }\n memset ( & ec , '\\0' , sizeof ( ec ) ) ;\n ec . fromtype3 = true ;\n ec . sc = sc ;\n _InterpretPS ( & wrapper , & ec , NULL ) ;\n sc -> width = ec . width ;\n sc -> layer_cnt = 1 ;\n SCAppendEntityLayers ( sc , ec . splines ) ;\n if ( sc -> layer_cnt == 1 ) ++ sc -> layer_cnt ;\n sc -> layers [ ly_fore ] . refs = revrefs ( ec . refs ) ;\n free ( wrapper . top ) ;\n }"}
{"idx": 16332, "target": 0, "func": "static Datum ExecEvalScalarArrayOp ( ScalarArrayOpExprState * sstate , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n ScalarArrayOpExpr * opexpr = ( ScalarArrayOpExpr * ) sstate -> fxprstate . xprstate . expr ;\n bool useOr = opexpr -> useOr ;\n ArrayType * arr ;\n int nitems ;\n Datum result ;\n bool resultnull ;\n FunctionCallInfo fcinfo ;\n ExprDoneCond argDone ;\n int i ;\n int16 typlen ;\n bool typbyval ;\n char typalign ;\n char * s ;\n bits8 * bitmap ;\n int bitmask ;\n * isNull = false ;\n if ( isDone ) * isDone = ExprSingleResult ;\n if ( sstate -> fxprstate . func . fn_oid == InvalidOid ) {\n init_fcache ( opexpr -> opfuncid , opexpr -> inputcollid , & sstate -> fxprstate , econtext -> ecxt_per_query_memory , true ) ;\n Assert ( ! sstate -> fxprstate . func . fn_retset ) ;\n }\n fcinfo = & sstate -> fxprstate . fcinfo_data ;\n argDone = ExecEvalFuncArgs ( fcinfo , sstate -> fxprstate . args , econtext ) ;\n if ( argDone != ExprSingleResult ) ereport ( ERROR , ( errcode ( ERRCODE_DATATYPE_MISMATCH ) , errmsg ( \"op ANY/ALL (array) does not support set arguments\" ) ) ) ;\n Assert ( fcinfo -> nargs == 2 ) ;\n if ( fcinfo -> argnull [ 1 ] ) {\n * isNull = true ;\n return ( Datum ) 0 ;\n }\n arr = DatumGetArrayTypeP ( fcinfo -> arg [ 1 ] ) ;\n nitems = ArrayGetNItems ( ARR_NDIM ( arr ) , ARR_DIMS ( arr ) ) ;\n if ( nitems <= 0 ) return BoolGetDatum ( ! useOr ) ;\n if ( fcinfo -> argnull [ 0 ] && sstate -> fxprstate . func . fn_strict ) {\n * isNull = true ;\n return ( Datum ) 0 ;\n }\n if ( sstate -> element_type != ARR_ELEMTYPE ( arr ) ) {\n get_typlenbyvalalign ( ARR_ELEMTYPE ( arr ) , & sstate -> typlen , & sstate -> typbyval , & sstate -> typalign ) ;\n sstate -> element_type = ARR_ELEMTYPE ( arr ) ;\n }\n typlen = sstate -> typlen ;\n typbyval = sstate -> typbyval ;\n typalign = sstate -> typalign ;\n result = BoolGetDatum ( ! useOr ) ;\n resultnull = false ;\n s = ( char * ) ARR_DATA_PTR ( arr ) ;\n bitmap = ARR_NULLBITMAP ( arr ) ;\n bitmask = 1 ;\n for ( i = 0 ;\n i < nitems ;\n i ++ ) {\n Datum elt ;\n Datum thisresult ;\n if ( bitmap && ( * bitmap & bitmask ) == 0 ) {\n fcinfo -> arg [ 1 ] = ( Datum ) 0 ;\n fcinfo -> argnull [ 1 ] = true ;\n }\n else {\n elt = fetch_att ( s , typbyval , typlen ) ;\n s = att_addlength_pointer ( s , typlen , s ) ;\n s = ( char * ) att_align_nominal ( s , typalign ) ;\n fcinfo -> arg [ 1 ] = elt ;\n fcinfo -> argnull [ 1 ] = false ;\n }\n if ( fcinfo -> argnull [ 1 ] && sstate -> fxprstate . func . fn_strict ) {\n fcinfo -> isnull = true ;\n thisresult = ( Datum ) 0 ;\n }\n else {\n fcinfo -> isnull = false ;\n thisresult = FunctionCallInvoke ( fcinfo ) ;\n }\n if ( fcinfo -> isnull ) resultnull = true ;\n else if ( useOr ) {\n if ( DatumGetBool ( thisresult ) ) {\n result = BoolGetDatum ( true ) ;\n resultnull = false ;\n break ;\n }\n }\n else {\n if ( ! DatumGetBool ( thisresult ) ) {\n result = BoolGetDatum ( false ) ;\n resultnull = false ;\n break ;\n }\n }\n if ( bitmap ) {\n bitmask <<= 1 ;\n if ( bitmask == 0x100 ) {\n bitmap ++ ;\n bitmask = 1 ;\n }\n }\n }\n * isNull = resultnull ;\n return result ;\n }"}
{"idx": 16333, "target": 1, "func": "static CURLcode glob_range ( URLGlob * glob , char * * patternp , size_t * posp , unsigned long * amount , int globindex ) {\n URLPattern * pat ;\n int rc ;\n char * pattern = * patternp ;\n char * c ;\n pat = & glob -> pattern [ glob -> size ] ;\n pat -> globindex = globindex ;\n if ( ISALPHA ( * pattern ) ) {\n char min_c ;\n char max_c ;\n int step = 1 ;\n pat -> type = UPTCharRange ;\n rc = sscanf ( pattern , \"%c-%c\" , & min_c , & max_c ) ;\n if ( ( rc == 2 ) && ( pattern [ 3 ] == ':' ) ) {\n char * endp ;\n unsigned long lstep ;\n errno = 0 ;\n lstep = strtoul ( & pattern [ 4 ] , & endp , 10 ) ;\n if ( errno || ( * endp != ']' ) ) step = - 1 ;\n else {\n pattern = endp + 1 ;\n step = ( int ) lstep ;\n if ( step > ( max_c - min_c ) ) step = - 1 ;\n }\n }\n else pattern += 4 ;\n * posp += ( pattern - * patternp ) ;\n if ( ( rc != 2 ) || ( min_c >= max_c ) || ( ( max_c - min_c ) > ( 'z' - 'a' ) ) || ( step <= 0 ) ) return GLOBERROR ( \"bad range\" , * posp , CURLE_URL_MALFORMAT ) ;\n pat -> content . CharRange . step = step ;\n pat -> content . CharRange . ptr_c = pat -> content . CharRange . min_c = min_c ;\n pat -> content . CharRange . max_c = max_c ;\n if ( multiply ( amount , ( pat -> content . CharRange . max_c - pat -> content . CharRange . min_c ) / pat -> content . CharRange . step + 1 ) ) return GLOBERROR ( \"range overflow\" , * posp , CURLE_URL_MALFORMAT ) ;\n }\n else if ( ISDIGIT ( * pattern ) ) {\n unsigned long min_n ;\n unsigned long max_n = 0 ;\n unsigned long step_n = 0 ;\n char * endp ;\n pat -> type = UPTNumRange ;\n pat -> content . NumRange . padlength = 0 ;\n if ( * pattern == '0' ) {\n c = pattern ;\n while ( ISDIGIT ( * c ) ) {\n c ++ ;\n ++ pat -> content . NumRange . padlength ;\n }\n }\n errno = 0 ;\n min_n = strtoul ( pattern , & endp , 10 ) ;\n if ( errno || ( endp == pattern ) ) endp = NULL ;\n else {\n if ( * endp != '-' ) endp = NULL ;\n else {\n pattern = endp + 1 ;\n errno = 0 ;\n max_n = strtoul ( pattern , & endp , 10 ) ;\n if ( errno || ( * endp == ':' ) ) {\n pattern = endp + 1 ;\n errno = 0 ;\n step_n = strtoul ( pattern , & endp , 10 ) ;\n if ( errno ) endp = NULL ;\n }\n else step_n = 1 ;\n if ( endp && ( * endp == ']' ) ) {\n pattern = endp + 1 ;\n }\n else endp = NULL ;\n }\n }\n * posp += ( pattern - * patternp ) ;\n if ( ! endp || ( min_n > max_n ) || ( step_n > ( max_n - min_n ) ) || ! step_n ) return GLOBERROR ( \"bad range\" , * posp , CURLE_URL_MALFORMAT ) ;\n pat -> content . NumRange . ptr_n = pat -> content . NumRange . min_n = min_n ;\n pat -> content . NumRange . max_n = max_n ;\n pat -> content . NumRange . step = step_n ;\n if ( multiply ( amount , ( pat -> content . NumRange . max_n - pat -> content . NumRange . min_n ) / pat -> content . NumRange . step + 1 ) ) return GLOBERROR ( \"range overflow\" , * posp , CURLE_URL_MALFORMAT ) ;\n }\n else return GLOBERROR ( \"bad range specification\" , * posp , CURLE_URL_MALFORMAT ) ;\n * patternp = pattern ;\n return CURLE_OK ;\n }"}
{"idx": 16334, "target": 0, "func": "static void dtap_tp_multi_slot_loop_cmd ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_len = len ;\n curr_offset = offset ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_TP_LOOP_TYPE , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 16335, "target": 1, "func": "static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 16336, "target": 0, "func": "static int output_data ( MLPDecodeContext * m , unsigned int substr , AVFrame * frame , int * got_frame_ptr ) {\n AVCodecContext * avctx = m -> avctx ;\n SubStream * s = & m -> substream [ substr ] ;\n unsigned int i , out_ch = 0 ;\n int32_t * data_32 ;\n int16_t * data_16 ;\n int ret ;\n int is32 = ( m -> avctx -> sample_fmt == AV_SAMPLE_FMT_S32 ) ;\n if ( m -> avctx -> channels != s -> max_matrix_channel + 1 ) {\n av_log ( m -> avctx , AV_LOG_ERROR , \"channel count mismatch\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ! s -> blockpos ) {\n av_log ( avctx , AV_LOG_ERROR , \"No samples to output.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n frame -> nb_samples = s -> blockpos ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n data_32 = ( int32_t * ) frame -> data [ 0 ] ;\n data_16 = ( int16_t * ) frame -> data [ 0 ] ;\n for ( i = 0 ;\n i < s -> blockpos ;\n i ++ ) {\n for ( out_ch = 0 ;\n out_ch <= s -> max_matrix_channel ;\n out_ch ++ ) {\n int mat_ch = s -> ch_assign [ out_ch ] ;\n int32_t sample = m -> sample_buffer [ i ] [ mat_ch ] << s -> output_shift [ mat_ch ] ;\n s -> lossless_check_data ^= ( sample & 0xffffff ) << mat_ch ;\n if ( is32 ) * data_32 ++ = sample << 8 ;\n else * data_16 ++ = sample >> 8 ;\n }\n }\n * got_frame_ptr = 1 ;\n return 0 ;\n }"}
{"idx": 16337, "target": 0, "func": "static void rice_decompress ( ALACContext * alac , int32_t * output_buffer , int nb_samples , int bps , int rice_history_mult ) {\n int i ;\n unsigned int history = alac -> rice_initial_history ;\n int sign_modifier = 0 ;\n for ( i = 0 ;\n i < nb_samples ;\n i ++ ) {\n int k ;\n unsigned int x ;\n k = av_log2 ( ( history >> 9 ) + 3 ) ;\n k = FFMIN ( k , alac -> rice_limit ) ;\n x = decode_scalar ( & alac -> gb , k , bps ) ;\n x += sign_modifier ;\n sign_modifier = 0 ;\n output_buffer [ i ] = ( x >> 1 ) ^ - ( x & 1 ) ;\n if ( x > 0xffff ) history = 0xffff ;\n else history += x * rice_history_mult - ( ( history * rice_history_mult ) >> 9 ) ;\n if ( ( history < 128 ) && ( i + 1 < nb_samples ) ) {\n int block_size ;\n k = 7 - av_log2 ( history ) + ( ( history + 16 ) >> 6 ) ;\n k = FFMIN ( k , alac -> rice_limit ) ;\n block_size = decode_scalar ( & alac -> gb , k , 16 ) ;\n if ( block_size > 0 ) {\n if ( block_size >= nb_samples - i ) {\n av_log ( alac -> avctx , AV_LOG_ERROR , \"invalid zero block size of %d %d %d\\n\" , block_size , nb_samples , i ) ;\n block_size = nb_samples - i - 1 ;\n }\n memset ( & output_buffer [ i + 1 ] , 0 , block_size * sizeof ( * output_buffer ) ) ;\n i += block_size ;\n }\n if ( block_size <= 0xffff ) sign_modifier = 1 ;\n history = 0 ;\n }\n }\n }"}
{"idx": 16338, "target": 0, "func": "static void existing_file_removed_callback ( GFile * file , GError * error , gpointer callback_data ) {\n DeleteExistingFileData * data = callback_data ;\n CommonJob * job ;\n GFile * source ;\n GFileType file_type ;\n char * primary ;\n char * secondary ;\n char * details = NULL ;\n int response ;\n job = data -> job ;\n source = data -> source ;\n if ( error == NULL ) {\n nautilus_file_changes_queue_file_removed ( file ) ;\n return ;\n }\n if ( job_aborted ( job ) || job -> skip_all_error ) {\n return ;\n }\n primary = f ( _ ( \"Error while copying \u201c%B\u201d.\" ) , source ) ;\n file_type = g_file_query_file_type ( file , G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS , job -> cancellable ) ;\n if ( file_type == G_FILE_TYPE_DIRECTORY ) {\n secondary = f ( _ ( \"Could not remove the already existing folder %F.\" ) , file ) ;\n }\n else {\n secondary = f ( _ ( \"Could not remove the already existing file %F.\" ) , file ) ;\n }\n details = error -> message ;\n response = run_warning ( job , primary , secondary , details , TRUE , CANCEL , SKIP_ALL , SKIP , NULL ) ;\n if ( response == 0 || response == GTK_RESPONSE_DELETE_EVENT ) {\n abort_job ( job ) ;\n }\n else if ( response == 1 ) {\n job -> skip_all_error = TRUE ;\n }\n }"}
{"idx": 16339, "target": 0, "func": "static const char * construct_prompt ( ) {\n processed_prompt . free ( ) ;\n time_t lclock = time ( NULL ) ;\n struct tm * t = localtime ( & lclock ) ;\n for ( char * c = current_prompt ;\n * c ;\n c ++ ) {\n if ( * c != PROMPT_CHAR ) processed_prompt . append ( * c ) ;\n else {\n switch ( * ++ c ) {\n case '\\0' : c -- ;\n break ;\n case 'c' : add_int_to_prompt ( ++ prompt_counter ) ;\n break ;\n case 'v' : if ( connected ) processed_prompt . append ( mysql_get_server_info ( & mysql ) ) ;\n else processed_prompt . append ( \"not_connected\" ) ;\n break ;\n case 'd' : processed_prompt . append ( current_db ? current_db : \"(none)\" ) ;\n break ;\n case 'N' : if ( connected ) processed_prompt . append ( mysql_get_server_name ( & mysql ) ) ;\n else processed_prompt . append ( \"unknown\" ) ;\n break ;\n case 'h' : {\n const char * prompt ;\n prompt = connected ? mysql_get_host_info ( & mysql ) : \"not_connected\" ;\n if ( strstr ( prompt , \"Localhost\" ) ) processed_prompt . append ( \"localhost\" ) ;\n else {\n const char * end = strcend ( prompt , ' ' ) ;\n processed_prompt . append ( prompt , ( uint ) ( end - prompt ) ) ;\n }\n break ;\n }\n case 'p' : {\n # ifndef EMBEDDED_LIBRARY if ( ! connected ) {\n processed_prompt . append ( \"not_connected\" ) ;\n break ;\n }\n const char * host_info = mysql_get_host_info ( & mysql ) ;\n if ( strstr ( host_info , \"memory\" ) ) {\n processed_prompt . append ( mysql . host ) ;\n }\n else if ( strstr ( host_info , \"TCP/IP\" ) || ! mysql . unix_socket ) add_int_to_prompt ( mysql . port ) ;\n else {\n char * pos = strrchr ( mysql . unix_socket , '/' ) ;\n processed_prompt . append ( pos ? pos + 1 : mysql . unix_socket ) ;\n }\n # endif }\n break ;\n case 'U' : if ( ! full_username ) init_username ( ) ;\n processed_prompt . append ( full_username ? full_username : ( current_user ? current_user : \"(unknown)\" ) ) ;\n break ;\n case 'u' : if ( ! full_username ) init_username ( ) ;\n processed_prompt . append ( part_username ? part_username : ( current_user ? current_user : \"(unknown)\" ) ) ;\n break ;\n case PROMPT_CHAR : processed_prompt . append ( PROMPT_CHAR ) ;\n break ;\n case 'n' : processed_prompt . append ( '\\n' ) ;\n break ;\n case ' ' : case '_' : processed_prompt . append ( ' ' ) ;\n break ;\n case 'R' : if ( t -> tm_hour < 10 ) processed_prompt . append ( '0' ) ;\n add_int_to_prompt ( t -> tm_hour ) ;\n break ;\n case 'r' : int getHour ;\n getHour = t -> tm_hour % 12 ;\n if ( getHour == 0 ) getHour = 12 ;\n if ( getHour < 10 ) processed_prompt . append ( '0' ) ;\n add_int_to_prompt ( getHour ) ;\n break ;\n case 'm' : if ( t -> tm_min < 10 ) processed_prompt . append ( '0' ) ;\n add_int_to_prompt ( t -> tm_min ) ;\n break ;\n case 'y' : int getYear ;\n getYear = t -> tm_year % 100 ;\n if ( getYear < 10 ) processed_prompt . append ( '0' ) ;\n add_int_to_prompt ( getYear ) ;\n break ;\n case 'Y' : add_int_to_prompt ( t -> tm_year + 1900 ) ;\n break ;\n case 'D' : char * dateTime ;\n dateTime = ctime ( & lclock ) ;\n processed_prompt . append ( strtok ( dateTime , \"\\n\" ) ) ;\n break ;\n case 's' : if ( t -> tm_sec < 10 ) processed_prompt . append ( '0' ) ;\n add_int_to_prompt ( t -> tm_sec ) ;\n break ;\n case 'w' : processed_prompt . append ( day_names [ t -> tm_wday ] ) ;\n break ;\n case 'P' : processed_prompt . append ( t -> tm_hour < 12 ? \"am\" : \"pm\" ) ;\n break ;\n case 'o' : add_int_to_prompt ( t -> tm_mon + 1 ) ;\n break ;\n case 'O' : processed_prompt . append ( month_names [ t -> tm_mon ] ) ;\n break ;\n case '\\'' : processed_prompt . append ( \"'\" ) ;\n break ;\n case '\"' : processed_prompt . append ( '\"' ) ;\n break ;\n case 'S' : processed_prompt . append ( ';\n' ) ;\n break ;\n case 't' : processed_prompt . append ( '\\t' ) ;\n break ;\n case 'l' : processed_prompt . append ( delimiter_str ) ;\n break ;\n default : processed_prompt . append ( c ) ;\n }\n }\n }\n processed_prompt . append ( '\\0' ) ;\n return processed_prompt . ptr ( ) ;\n }"}
{"idx": 16340, "target": 0, "func": "void gx_device_free_local ( gx_device * dev ) {\n gx_device_finalize ( dev -> memory , dev ) ;\n }"}
{"idx": 16341, "target": 0, "func": "int fz_colorspace_is_lab_icc ( fz_context * ctx , const fz_colorspace * cs ) {\n return fz_colorspace_is_lab ( ctx , cs ) && fz_colorspace_is_icc ( ctx , cs ) ;\n }"}
{"idx": 16342, "target": 0, "func": "static gboolean extcap_dumper_dump ( struct extcap_dumper extcap_dumper , char * buffer , gssize captured_length , gssize reported_length , time_t seconds , int nanoseconds ) {\n # ifdef ANDROIDDUMP_USE_LIBPCAP struct pcap_pkthdr pcap_header ;\n pcap_header . caplen = ( bpf_u_int32 ) captured_length ;\n pcap_header . len = ( bpf_u_int32 ) reported_length ;\n pcap_header . ts . tv_sec = seconds ;\n pcap_header . ts . tv_usec = nanoseconds / 1000 ;\n pcap_dump ( ( u_char * ) extcap_dumper . dumper . pcap , & pcap_header , buffer ) ;\n pcap_dump_flush ( extcap_dumper . dumper . pcap ) ;\n # else int err = 0 ;\n char * err_info ;\n struct wtap_pkthdr hdr ;\n hdr . presence_flags = WTAP_HAS_TS ;\n hdr . caplen = ( guint32 ) captured_length ;\n hdr . len = ( guint32 ) reported_length ;\n hdr . ts . secs = seconds ;\n hdr . ts . nsecs = ( int ) nanoseconds ;\n hdr . opt_comment = 0 ;\n hdr . opt_comment = NULL ;\n hdr . drop_count = 0 ;\n hdr . pack_flags = 0 ;\n hdr . rec_type = REC_TYPE_PACKET ;\n if ( extcap_dumper . encap == EXTCAP_ENCAP_BLUETOOTH_H4_WITH_PHDR ) {\n uint32_t * direction ;\n SET_DATA ( direction , value_u32 , buffer ) hdr . pseudo_header . bthci . sent = GINT32_FROM_BE ( * direction ) ? 0 : 1 ;\n hdr . len -= ( guint32 ) sizeof ( own_pcap_bluetooth_h4_header ) ;\n hdr . caplen -= ( guint32 ) sizeof ( own_pcap_bluetooth_h4_header ) ;\n buffer += sizeof ( own_pcap_bluetooth_h4_header ) ;\n hdr . pkt_encap = WTAP_ENCAP_BLUETOOTH_H4_WITH_PHDR ;\n }\n else if ( extcap_dumper . encap == EXTCAP_ENCAP_ETHERNET ) {\n hdr . pkt_encap = WTAP_ENCAP_ETHERNET ;\n }\n else {\n hdr . pkt_encap = WTAP_ENCAP_WIRESHARK_UPPER_PDU ;\n }\n if ( ! wtap_dump ( extcap_dumper . dumper . wtap , & hdr , ( const guint8 * ) buffer , & err , & err_info ) ) {\n errmsg_print ( \"ERROR: Cannot dump: %s\" , err_info ) ;\n return FALSE ;\n }\n wtap_dump_flush ( extcap_dumper . dumper . wtap ) ;\n # endif return TRUE ;\n }"}
{"idx": 16343, "target": 0, "func": "static inline int PopLZWStack ( LZWStack * stack_info ) {\n if ( stack_info -> index <= stack_info -> codes ) return ( - 1 ) ;\n stack_info -> index -- ;\n return ( ( int ) * stack_info -> index ) ;\n }"}
{"idx": 16344, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , TestRemovingDefaultDoesntChangeHandlers ) {\n ProtocolHandler ph1 = CreateProtocolHandler ( \"mailto\" , \"test1\" ) ;\n ProtocolHandler ph2 = CreateProtocolHandler ( \"mailto\" , \"test2\" ) ;\n ProtocolHandler ph3 = CreateProtocolHandler ( \"mailto\" , \"test3\" ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph2 ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph3 ) ;\n registry ( ) -> RemoveHandler ( ph3 ) ;\n ProtocolHandlerRegistry : : ProtocolHandlerList handlers = registry ( ) -> GetHandlersFor ( \"mailto\" ) ;\n ASSERT_EQ ( static_cast < size_t > ( 2 ) , handlers . size ( ) ) ;\n ASSERT_EQ ( ph2 , handlers [ 0 ] ) ;\n ASSERT_EQ ( ph1 , handlers [ 1 ] ) ;\n }"}
{"idx": 16345, "target": 0, "func": "static void try_to_free_from_threads ( size_t size ) {\n read_lock ( ) ;\n release_pack_memory ( size ) ;\n read_unlock ( ) ;\n }"}
{"idx": 16346, "target": 0, "func": "int phar_tar_flush ( phar_archive_data * phar , char * user_stub , long len , int defaultstub , char * * error TSRMLS_DC ) {\n phar_entry_info entry = {\n 0 }\n ;\n static const char newstub [ ] = \"<?php // tar-based phar archive stub file\\n__HALT_COMPILER();\n\" ;\n php_stream * oldfile , * newfile , * stubfile ;\n int closeoldfile , free_user_stub , signature_length ;\n struct _phar_pass_tar_info pass ;\n char * buf , * signature , * tmp , sigbuf [ 8 ] ;\n char halt_stub [ ] = \"__HALT_COMPILER();\n\" ;\n entry . flags = PHAR_ENT_PERM_DEF_FILE ;\n entry . timestamp = time ( NULL ) ;\n entry . is_modified = 1 ;\n entry . is_crc_checked = 1 ;\n entry . is_tar = 1 ;\n entry . tar_type = '0' ;\n entry . phar = phar ;\n entry . fp_type = PHAR_MOD ;\n if ( phar -> is_persistent ) {\n if ( error ) {\n spprintf ( error , 0 , \"internal error: attempt to flush cached tar-based phar \\\"%s\\\"\" , phar -> fname ) ;\n }\n return EOF ;\n }\n if ( phar -> is_data ) {\n goto nostub ;\n }\n if ( ! phar -> is_temporary_alias && phar -> alias_len ) {\n entry . filename = estrndup ( \".phar/alias.txt\" , sizeof ( \".phar/alias.txt\" ) - 1 ) ;\n entry . filename_len = sizeof ( \".phar/alias.txt\" ) - 1 ;\n entry . fp = php_stream_fopen_tmpfile ( ) ;\n if ( entry . fp == NULL ) {\n spprintf ( error , 0 , \"phar error: unable to create temporary file\" ) ;\n return - 1 ;\n }\n if ( phar -> alias_len != ( int ) php_stream_write ( entry . fp , phar -> alias , phar -> alias_len ) ) {\n if ( error ) {\n spprintf ( error , 0 , \"unable to set alias in tar-based phar \\\"%s\\\"\" , phar -> fname ) ;\n }\n return EOF ;\n }\n entry . uncompressed_filesize = phar -> alias_len ;\n if ( SUCCESS != zend_hash_update ( & phar -> manifest , entry . filename , entry . filename_len , ( void * ) & entry , sizeof ( phar_entry_info ) , NULL ) ) {\n if ( error ) {\n spprintf ( error , 0 , \"unable to set alias in tar-based phar \\\"%s\\\"\" , phar -> fname ) ;\n }\n return EOF ;\n }\n }\n else {\n zend_hash_del ( & phar -> manifest , \".phar/alias.txt\" , sizeof ( \".phar/alias.txt\" ) - 1 ) ;\n }\n if ( user_stub && ! defaultstub ) {\n char * pos ;\n if ( len < 0 ) {\n if ( ! ( php_stream_from_zval_no_verify ( stubfile , ( zval * * ) user_stub ) ) ) {\n if ( error ) {\n spprintf ( error , 0 , \"unable to access resource to copy stub to new tar-based phar \\\"%s\\\"\" , phar -> fname ) ;\n }\n return EOF ;\n }\n if ( len == - 1 ) {\n len = PHP_STREAM_COPY_ALL ;\n }\n else {\n len = - len ;\n }\n user_stub = 0 ;\n if ( ! ( len = php_stream_copy_to_mem ( stubfile , & user_stub , len , 0 ) ) || ! user_stub ) {\n if ( error ) {\n spprintf ( error , 0 , \"unable to read resource to copy stub to new tar-based phar \\\"%s\\\"\" , phar -> fname ) ;\n }\n return EOF ;\n }\n free_user_stub = 1 ;\n }\n else {\n free_user_stub = 0 ;\n }\n tmp = estrndup ( user_stub , len ) ;\n if ( ( pos = php_stristr ( tmp , halt_stub , len , sizeof ( halt_stub ) - 1 ) ) == NULL ) {\n efree ( tmp ) ;\n if ( error ) {\n spprintf ( error , 0 , \"illegal stub for tar-based phar \\\"%s\\\"\" , phar -> fname ) ;\n }\n if ( free_user_stub ) {\n efree ( user_stub ) ;\n }\n return EOF ;\n }\n pos = user_stub + ( pos - tmp ) ;\n efree ( tmp ) ;\n len = pos - user_stub + 18 ;\n entry . fp = php_stream_fopen_tmpfile ( ) ;\n if ( entry . fp == NULL ) {\n spprintf ( error , 0 , \"phar error: unable to create temporary file\" ) ;\n return EOF ;\n }\n entry . uncompressed_filesize = len + 5 ;\n if ( ( size_t ) len != php_stream_write ( entry . fp , user_stub , len ) || 5 != php_stream_write ( entry . fp , \" ?>\\r\\n\" , 5 ) ) {\n if ( error ) {\n spprintf ( error , 0 , \"unable to create stub from string in new tar-based phar \\\"%s\\\"\" , phar -> fname ) ;\n }\n if ( free_user_stub ) {\n efree ( user_stub ) ;\n }\n php_stream_close ( entry . fp ) ;\n return EOF ;\n }\n entry . filename = estrndup ( \".phar/stub.php\" , sizeof ( \".phar/stub.php\" ) - 1 ) ;\n entry . filename_len = sizeof ( \".phar/stub.php\" ) - 1 ;\n zend_hash_update ( & phar -> manifest , entry . filename , entry . filename_len , ( void * ) & entry , sizeof ( phar_entry_info ) , NULL ) ;\n if ( free_user_stub ) {\n efree ( user_stub ) ;\n }\n }\n else {\n entry . fp = php_stream_fopen_tmpfile ( ) ;\n if ( entry . fp == NULL ) {\n spprintf ( error , 0 , \"phar error: unable to create temporary file\" ) ;\n return EOF ;\n }\n if ( sizeof ( newstub ) - 1 != php_stream_write ( entry . fp , newstub , sizeof ( newstub ) - 1 ) ) {\n php_stream_close ( entry . fp ) ;\n if ( error ) {\n spprintf ( error , 0 , \"unable to %s stub in%star-based phar \\\"%s\\\", failed\" , user_stub ? \"overwrite\" : \"create\" , user_stub ? \" \" : \" new \" , phar -> fname ) ;\n }\n return EOF ;\n }\n entry . uncompressed_filesize = entry . compressed_filesize = sizeof ( newstub ) - 1 ;\n entry . filename = estrndup ( \".phar/stub.php\" , sizeof ( \".phar/stub.php\" ) - 1 ) ;\n entry . filename_len = sizeof ( \".phar/stub.php\" ) - 1 ;\n if ( ! defaultstub ) {\n if ( ! zend_hash_exists ( & phar -> manifest , \".phar/stub.php\" , sizeof ( \".phar/stub.php\" ) - 1 ) ) {\n if ( SUCCESS != zend_hash_add ( & phar -> manifest , entry . filename , entry . filename_len , ( void * ) & entry , sizeof ( phar_entry_info ) , NULL ) ) {\n php_stream_close ( entry . fp ) ;\n efree ( entry . filename ) ;\n if ( error ) {\n spprintf ( error , 0 , \"unable to create stub in tar-based phar \\\"%s\\\"\" , phar -> fname ) ;\n }\n return EOF ;\n }\n }\n else {\n php_stream_close ( entry . fp ) ;\n efree ( entry . filename ) ;\n }\n }\n else {\n if ( SUCCESS != zend_hash_update ( & phar -> manifest , entry . filename , entry . filename_len , ( void * ) & entry , sizeof ( phar_entry_info ) , NULL ) ) {\n php_stream_close ( entry . fp ) ;\n efree ( entry . filename ) ;\n if ( error ) {\n spprintf ( error , 0 , \"unable to overwrite stub in tar-based phar \\\"%s\\\"\" , phar -> fname ) ;\n }\n return EOF ;\n }\n }\n }\n nostub : if ( phar -> fp && ! phar -> is_brandnew ) {\n oldfile = phar -> fp ;\n closeoldfile = 0 ;\n php_stream_rewind ( oldfile ) ;\n }\n else {\n oldfile = php_stream_open_wrapper ( phar -> fname , \"rb\" , 0 , NULL ) ;\n closeoldfile = oldfile != NULL ;\n }\n newfile = php_stream_fopen_tmpfile ( ) ;\n if ( ! newfile ) {\n if ( error ) {\n spprintf ( error , 0 , \"unable to create temporary file\" ) ;\n }\n if ( closeoldfile ) {\n php_stream_close ( oldfile ) ;\n }\n return EOF ;\n }\n pass . old = oldfile ;\n pass . new = newfile ;\n pass . error = error ;\n pass . free_fp = 1 ;\n pass . free_ufp = 1 ;\n if ( phar -> metadata ) {\n phar_entry_info * mentry ;\n if ( SUCCESS == zend_hash_find ( & ( phar -> manifest ) , \".phar/.metadata.bin\" , sizeof ( \".phar/.metadata.bin\" ) - 1 , ( void * * ) & mentry ) ) {\n if ( ZEND_HASH_APPLY_KEEP != phar_tar_setmetadata ( phar -> metadata , mentry , error TSRMLS_CC ) ) {\n if ( closeoldfile ) {\n php_stream_close ( oldfile ) ;\n }\n return EOF ;\n }\n }\n else {\n phar_entry_info newentry = {\n 0 }\n ;\n newentry . filename = estrndup ( \".phar/.metadata.bin\" , sizeof ( \".phar/.metadata.bin\" ) - 1 ) ;\n newentry . filename_len = sizeof ( \".phar/.metadata.bin\" ) - 1 ;\n newentry . phar = phar ;\n newentry . tar_type = TAR_FILE ;\n newentry . is_tar = 1 ;\n if ( SUCCESS != zend_hash_add ( & ( phar -> manifest ) , \".phar/.metadata.bin\" , sizeof ( \".phar/.metadata.bin\" ) - 1 , ( void * ) & newentry , sizeof ( phar_entry_info ) , ( void * * ) & mentry ) ) {\n spprintf ( error , 0 , \"phar tar error: unable to add magic metadata file to manifest for phar archive \\\"%s\\\"\" , phar -> fname ) ;\n if ( closeoldfile ) {\n php_stream_close ( oldfile ) ;\n }\n return EOF ;\n }\n if ( ZEND_HASH_APPLY_KEEP != phar_tar_setmetadata ( phar -> metadata , mentry , error TSRMLS_CC ) ) {\n zend_hash_del ( & ( phar -> manifest ) , \".phar/.metadata.bin\" , sizeof ( \".phar/.metadata.bin\" ) - 1 ) ;\n if ( closeoldfile ) {\n php_stream_close ( oldfile ) ;\n }\n return EOF ;\n }\n }\n }\n zend_hash_apply_with_argument ( & phar -> manifest , ( apply_func_arg_t ) phar_tar_setupmetadata , ( void * ) & pass TSRMLS_CC ) ;\n if ( error && * error ) {\n if ( closeoldfile ) {\n php_stream_close ( oldfile ) ;\n }\n php_stream_close ( newfile ) ;\n return EOF ;\n }\n zend_hash_apply_with_argument ( & phar -> manifest , ( apply_func_arg_t ) phar_tar_writeheaders , ( void * ) & pass TSRMLS_CC ) ;\n if ( ! phar -> is_data || phar -> sig_flags ) {\n if ( FAILURE == phar_create_signature ( phar , newfile , & signature , & signature_length , error TSRMLS_CC ) ) {\n if ( error ) {\n char * save = * error ;\n spprintf ( error , 0 , \"phar error: unable to write signature to tar-based phar: %s\" , save ) ;\n efree ( save ) ;\n }\n if ( closeoldfile ) {\n php_stream_close ( oldfile ) ;\n }\n php_stream_close ( newfile ) ;\n return EOF ;\n }\n entry . filename = \".phar/signature.bin\" ;\n entry . filename_len = sizeof ( \".phar/signature.bin\" ) - 1 ;\n entry . fp = php_stream_fopen_tmpfile ( ) ;\n if ( entry . fp == NULL ) {\n spprintf ( error , 0 , \"phar error: unable to create temporary file\" ) ;\n return EOF ;\n }\n # ifdef WORDS_BIGENDIAN # define PHAR_SET_32 ( var , buffer ) \\ * ( php_uint32 * ) ( var ) = ( ( ( ( ( unsigned char * ) & ( buffer ) ) [ 3 ] ) << 24 ) \\ | ( ( ( ( unsigned char * ) & ( buffer ) ) [ 2 ] ) << 16 ) \\ | ( ( ( ( unsigned char * ) & ( buffer ) ) [ 1 ] ) << 8 ) \\ | ( ( ( unsigned char * ) & ( buffer ) ) [ 0 ] ) ) # else # define PHAR_SET_32 ( var , buffer ) * ( php_uint32 * ) ( var ) = ( php_uint32 ) ( buffer ) # endif PHAR_SET_32 ( sigbuf , phar -> sig_flags ) ;\n PHAR_SET_32 ( sigbuf + 4 , signature_length ) ;\n if ( 8 != ( int ) php_stream_write ( entry . fp , sigbuf , 8 ) || signature_length != ( int ) php_stream_write ( entry . fp , signature , signature_length ) ) {\n efree ( signature ) ;\n if ( error ) {\n spprintf ( error , 0 , \"phar error: unable to write signature to tar-based phar %s\" , phar -> fname ) ;\n }\n if ( closeoldfile ) {\n php_stream_close ( oldfile ) ;\n }\n php_stream_close ( newfile ) ;\n return EOF ;\n }\n efree ( signature ) ;\n entry . uncompressed_filesize = entry . compressed_filesize = signature_length + 8 ;\n entry . filename_len = phar_tar_writeheaders ( ( void * ) & entry , ( void * ) & pass TSRMLS_CC ) ;\n if ( error && * error ) {\n if ( closeoldfile ) {\n php_stream_close ( oldfile ) ;\n }\n php_stream_close ( newfile ) ;\n return EOF ;\n }\n }\n buf = ( char * ) ecalloc ( 1024 , 1 ) ;\n php_stream_write ( newfile , buf , 1024 ) ;\n efree ( buf ) ;\n if ( closeoldfile ) {\n php_stream_close ( oldfile ) ;\n }\n if ( error && * error ) {\n php_stream_close ( newfile ) ;\n return EOF ;\n }\n if ( phar -> fp && pass . free_fp ) {\n php_stream_close ( phar -> fp ) ;\n }\n if ( phar -> ufp ) {\n if ( pass . free_ufp ) {\n php_stream_close ( phar -> ufp ) ;\n }\n phar -> ufp = NULL ;\n }\n phar -> is_brandnew = 0 ;\n php_stream_rewind ( newfile ) ;\n if ( phar -> donotflush ) {\n phar -> fp = newfile ;\n }\n else {\n phar -> fp = php_stream_open_wrapper ( phar -> fname , \"w+b\" , IGNORE_URL | STREAM_MUST_SEEK | REPORT_ERRORS , NULL ) ;\n if ( ! phar -> fp ) {\n phar -> fp = newfile ;\n if ( error ) {\n spprintf ( error , 0 , \"unable to open new phar \\\"%s\\\" for writing\" , phar -> fname ) ;\n }\n return EOF ;\n }\n if ( phar -> flags & PHAR_FILE_COMPRESSED_GZ ) {\n php_stream_filter * filter ;\n zval filterparams ;\n array_init ( & filterparams ) ;\n # ifndef MAX_WBITS # define MAX_WBITS 15 # endif add_assoc_long ( & filterparams , \"window\" , MAX_WBITS + 16 ) ;\n filter = php_stream_filter_create ( \"zlib.deflate\" , & filterparams , php_stream_is_persistent ( phar -> fp ) TSRMLS_CC ) ;\n zval_dtor ( & filterparams ) ;\n if ( ! filter ) {\n phar_stream_copy_to_stream ( newfile , phar -> fp , PHP_STREAM_COPY_ALL , NULL ) ;\n php_stream_close ( newfile ) ;\n if ( error ) {\n spprintf ( error , 4096 , \"unable to compress all contents of phar \\\"%s\\\" using zlib, PHP versions older than 5.2.6 have a buggy zlib\" , phar -> fname ) ;\n }\n return EOF ;\n }\n php_stream_filter_append ( & phar -> fp -> writefilters , filter ) ;\n phar_stream_copy_to_stream ( newfile , phar -> fp , PHP_STREAM_COPY_ALL , NULL ) ;\n php_stream_filter_flush ( filter , 1 ) ;\n php_stream_filter_remove ( filter , 1 TSRMLS_CC ) ;\n php_stream_close ( phar -> fp ) ;\n phar -> fp = newfile ;\n }\n else if ( phar -> flags & PHAR_FILE_COMPRESSED_BZ2 ) {\n php_stream_filter * filter ;\n filter = php_stream_filter_create ( \"bzip2.compress\" , NULL , php_stream_is_persistent ( phar -> fp ) TSRMLS_CC ) ;\n php_stream_filter_append ( & phar -> fp -> writefilters , filter ) ;\n phar_stream_copy_to_stream ( newfile , phar -> fp , PHP_STREAM_COPY_ALL , NULL ) ;\n php_stream_filter_flush ( filter , 1 ) ;\n php_stream_filter_remove ( filter , 1 TSRMLS_CC ) ;\n php_stream_close ( phar -> fp ) ;\n phar -> fp = newfile ;\n }\n else {\n phar_stream_copy_to_stream ( newfile , phar -> fp , PHP_STREAM_COPY_ALL , NULL ) ;\n php_stream_close ( newfile ) ;\n }\n }\n return EOF ;\n }"}
{"idx": 16347, "target": 0, "func": "int i2d_PKCS8PrivateKeyInfo_fp ( FILE * fp , EVP_PKEY * key ) {\n PKCS8_PRIV_KEY_INFO * p8inf ;\n int ret ;\n p8inf = EVP_PKEY2PKCS8 ( key ) ;\n if ( ! p8inf ) return 0 ;\n ret = i2d_PKCS8_PRIV_KEY_INFO_fp ( fp , p8inf ) ;\n PKCS8_PRIV_KEY_INFO_free ( p8inf ) ;\n return ret ;\n }"}
{"idx": 16348, "target": 0, "func": "static void vc1_decode_b_mb_intfi ( VC1Context * v ) {\n MpegEncContext * s = & v -> s ;\n GetBitContext * gb = & s -> gb ;\n int i , j ;\n int mb_pos = s -> mb_x + s -> mb_y * s -> mb_stride ;\n int cbp = 0 ;\n int mqdiff , mquant ;\n int ttmb = v -> ttfrm ;\n int mb_has_coeffs = 0 ;\n int val ;\n int first_block = 1 ;\n int dst_idx , off ;\n int fwd ;\n int dmv_x [ 2 ] , dmv_y [ 2 ] , pred_flag [ 2 ] ;\n int bmvtype = BMV_TYPE_BACKWARD ;\n int idx_mbmode , interpmvp ;\n mquant = v -> pq ;\n s -> mb_intra = 0 ;\n idx_mbmode = get_vlc2 ( gb , v -> mbmode_vlc -> table , VC1_IF_MBMODE_VLC_BITS , 2 ) ;\n if ( idx_mbmode <= 1 ) {\n s -> mb_intra = v -> is_intra [ s -> mb_x ] = 1 ;\n s -> current_picture . motion_val [ 1 ] [ s -> block_index [ 0 ] ] [ 0 ] = 0 ;\n s -> current_picture . motion_val [ 1 ] [ s -> block_index [ 0 ] ] [ 1 ] = 0 ;\n s -> current_picture . mb_type [ mb_pos + v -> mb_off ] = MB_TYPE_INTRA ;\n GET_MQUANT ( ) ;\n s -> current_picture . qscale_table [ mb_pos ] = mquant ;\n s -> y_dc_scale = s -> y_dc_scale_table [ mquant ] ;\n s -> c_dc_scale = s -> c_dc_scale_table [ mquant ] ;\n v -> s . ac_pred = v -> acpred_plane [ mb_pos ] = get_bits1 ( gb ) ;\n mb_has_coeffs = idx_mbmode & 1 ;\n if ( mb_has_coeffs ) cbp = 1 + get_vlc2 ( & v -> s . gb , v -> cbpcy_vlc -> table , VC1_ICBPCY_VLC_BITS , 2 ) ;\n dst_idx = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n s -> dc_val [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n dst_idx += i >> 2 ;\n val = ( ( cbp >> ( 5 - i ) ) & 1 ) ;\n v -> mb_type [ 0 ] [ s -> block_index [ i ] ] = s -> mb_intra ;\n v -> a_avail = v -> c_avail = 0 ;\n if ( i == 2 || i == 3 || ! s -> first_slice_line ) v -> a_avail = v -> mb_type [ 0 ] [ s -> block_index [ i ] - s -> block_wrap [ i ] ] ;\n if ( i == 1 || i == 3 || s -> mb_x ) v -> c_avail = v -> mb_type [ 0 ] [ s -> block_index [ i ] - 1 ] ;\n vc1_decode_intra_block ( v , s -> block [ i ] , i , val , mquant , ( i & 4 ) ? v -> codingset2 : v -> codingset ) ;\n if ( ( i > 3 ) && ( s -> flags & CODEC_FLAG_GRAY ) ) continue ;\n v -> vc1dsp . vc1_inv_trans_8x8 ( s -> block [ i ] ) ;\n if ( v -> rangeredfrm ) for ( j = 0 ;\n j < 64 ;\n j ++ ) s -> block [ i ] [ j ] <<= 1 ;\n off = ( i & 4 ) ? 0 : ( ( i & 1 ) * 8 + ( i & 2 ) * 4 * s -> linesize ) ;\n off += v -> cur_field_type ? ( ( i & 4 ) ? s -> current_picture_ptr -> f . linesize [ 1 ] : s -> current_picture_ptr -> f . linesize [ 0 ] ) : 0 ;\n s -> dsp . put_signed_pixels_clamped ( s -> block [ i ] , s -> dest [ dst_idx ] + off , ( i & 4 ) ? s -> uvlinesize : s -> linesize ) ;\n }\n }\n else {\n s -> mb_intra = v -> is_intra [ s -> mb_x ] = 0 ;\n s -> current_picture . mb_type [ mb_pos + v -> mb_off ] = MB_TYPE_16x16 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) v -> mb_type [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n if ( v -> fmb_is_raw ) fwd = v -> forward_mb_plane [ mb_pos ] = get_bits1 ( gb ) ;\n else fwd = v -> forward_mb_plane [ mb_pos ] ;\n if ( idx_mbmode <= 5 ) {\n dmv_x [ 0 ] = dmv_x [ 1 ] = dmv_y [ 0 ] = dmv_y [ 1 ] = 0 ;\n pred_flag [ 0 ] = pred_flag [ 1 ] = 0 ;\n if ( fwd ) bmvtype = BMV_TYPE_FORWARD ;\n else {\n bmvtype = decode012 ( gb ) ;\n switch ( bmvtype ) {\n case 0 : bmvtype = BMV_TYPE_BACKWARD ;\n break ;\n case 1 : bmvtype = BMV_TYPE_DIRECT ;\n break ;\n case 2 : bmvtype = BMV_TYPE_INTERPOLATED ;\n interpmvp = get_bits1 ( gb ) ;\n }\n }\n v -> bmvtype = bmvtype ;\n if ( bmvtype != BMV_TYPE_DIRECT && idx_mbmode & 1 ) {\n get_mvdata_interlaced ( v , & dmv_x [ bmvtype == BMV_TYPE_BACKWARD ] , & dmv_y [ bmvtype == BMV_TYPE_BACKWARD ] , & pred_flag [ bmvtype == BMV_TYPE_BACKWARD ] ) ;\n }\n if ( bmvtype == BMV_TYPE_INTERPOLATED && interpmvp ) {\n get_mvdata_interlaced ( v , & dmv_x [ 1 ] , & dmv_y [ 1 ] , & pred_flag [ 1 ] ) ;\n }\n if ( bmvtype == BMV_TYPE_DIRECT ) {\n dmv_x [ 0 ] = dmv_y [ 0 ] = pred_flag [ 0 ] = 0 ;\n dmv_x [ 1 ] = dmv_y [ 1 ] = pred_flag [ 0 ] = 0 ;\n }\n vc1_pred_b_mv_intfi ( v , 0 , dmv_x , dmv_y , 1 , pred_flag ) ;\n vc1_b_mc ( v , dmv_x , dmv_y , ( bmvtype == BMV_TYPE_DIRECT ) , bmvtype ) ;\n mb_has_coeffs = ! ( idx_mbmode & 2 ) ;\n }\n else {\n if ( fwd ) bmvtype = BMV_TYPE_FORWARD ;\n v -> bmvtype = bmvtype ;\n v -> fourmvbp = get_vlc2 ( gb , v -> fourmvbp_vlc -> table , VC1_4MV_BLOCK_PATTERN_VLC_BITS , 1 ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( i < 4 ) {\n dmv_x [ 0 ] = dmv_y [ 0 ] = pred_flag [ 0 ] = 0 ;\n dmv_x [ 1 ] = dmv_y [ 1 ] = pred_flag [ 1 ] = 0 ;\n val = ( ( v -> fourmvbp >> ( 3 - i ) ) & 1 ) ;\n if ( val ) {\n get_mvdata_interlaced ( v , & dmv_x [ bmvtype == BMV_TYPE_BACKWARD ] , & dmv_y [ bmvtype == BMV_TYPE_BACKWARD ] , & pred_flag [ bmvtype == BMV_TYPE_BACKWARD ] ) ;\n }\n vc1_pred_b_mv_intfi ( v , i , dmv_x , dmv_y , 0 , pred_flag ) ;\n vc1_mc_4mv_luma ( v , i , bmvtype == BMV_TYPE_BACKWARD ) ;\n }\n else if ( i == 4 ) vc1_mc_4mv_chroma ( v , bmvtype == BMV_TYPE_BACKWARD ) ;\n }\n mb_has_coeffs = idx_mbmode & 1 ;\n }\n if ( mb_has_coeffs ) cbp = 1 + get_vlc2 ( & v -> s . gb , v -> cbpcy_vlc -> table , VC1_CBPCY_P_VLC_BITS , 2 ) ;\n if ( cbp ) {\n GET_MQUANT ( ) ;\n }\n s -> current_picture . qscale_table [ mb_pos ] = mquant ;\n if ( ! v -> ttmbf && cbp ) {\n ttmb = get_vlc2 ( gb , ff_vc1_ttmb_vlc [ v -> tt_index ] . table , VC1_TTMB_VLC_BITS , 2 ) ;\n }\n dst_idx = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n s -> dc_val [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n dst_idx += i >> 2 ;\n val = ( ( cbp >> ( 5 - i ) ) & 1 ) ;\n off = ( i & 4 ) ? 0 : ( i & 1 ) * 8 + ( i & 2 ) * 4 * s -> linesize ;\n if ( v -> cur_field_type ) off += ( i & 4 ) ? s -> current_picture_ptr -> f . linesize [ 1 ] : s -> current_picture_ptr -> f . linesize [ 0 ] ;\n if ( val ) {\n vc1_decode_p_block ( v , s -> block [ i ] , i , mquant , ttmb , first_block , s -> dest [ dst_idx ] + off , ( i & 4 ) ? s -> uvlinesize : s -> linesize , ( i & 4 ) && ( s -> flags & CODEC_FLAG_GRAY ) , NULL ) ;\n if ( ! v -> ttmbf && ttmb < 8 ) ttmb = - 1 ;\n first_block = 0 ;\n }\n }\n }\n }"}
{"idx": 16349, "target": 0, "func": "relpRetVal relpTcpEnableTLSZip ( relpTcp_t __attribute__ ( ( unused ) ) * pThis ) {\n ENTER_RELPFUNC ;\n RELPOBJ_assert ( pThis , Tcp ) ;\n # ifdef ENABLE_TLS pThis -> bEnableTLSZip = 1 ;\n # else iRet = RELP_RET_ERR_NO_TLS ;\n # endif LEAVE_RELPFUNC ;\n }"}
{"idx": 16350, "target": 0, "func": "static void compute_precache_pow ( uint8_t * output , float gamma ) {\n uint32_t v = 0 ;\n for ( v = 0 ;\n v < PRECACHE_OUTPUT_SIZE ;\n v ++ ) {\n output [ v ] = 255. * pow ( v / ( double ) PRECACHE_OUTPUT_MAX , gamma ) ;\n }\n }"}
{"idx": 16351, "target": 1, "func": "static int xan_wc3_decode_frame ( XanContext * s ) {\n int width = s -> avctx -> width ;\n int height = s -> avctx -> height ;\n int total_pixels = width * height ;\n unsigned char opcode ;\n unsigned char flag = 0 ;\n int size = 0 ;\n int motion_x , motion_y ;\n int x , y ;\n unsigned char * opcode_buffer = s -> buffer1 ;\n unsigned char * opcode_buffer_end = s -> buffer1 + s -> buffer1_size ;\n int opcode_buffer_size = s -> buffer1_size ;\n const unsigned char * imagedata_buffer = s -> buffer2 ;\n const unsigned char * huffman_segment ;\n const unsigned char * size_segment ;\n const unsigned char * vector_segment ;\n const unsigned char * imagedata_segment ;\n int huffman_offset , size_offset , vector_offset , imagedata_offset , imagedata_size ;\n if ( s -> size < 8 ) return AVERROR_INVALIDDATA ;\n huffman_offset = AV_RL16 ( & s -> buf [ 0 ] ) ;\n size_offset = AV_RL16 ( & s -> buf [ 2 ] ) ;\n vector_offset = AV_RL16 ( & s -> buf [ 4 ] ) ;\n imagedata_offset = AV_RL16 ( & s -> buf [ 6 ] ) ;\n if ( huffman_offset >= s -> size || size_offset >= s -> size || vector_offset >= s -> size || imagedata_offset >= s -> size ) return AVERROR_INVALIDDATA ;\n huffman_segment = s -> buf + huffman_offset ;\n size_segment = s -> buf + size_offset ;\n vector_segment = s -> buf + vector_offset ;\n imagedata_segment = s -> buf + imagedata_offset ;\n if ( xan_huffman_decode ( opcode_buffer , opcode_buffer_size , huffman_segment , s -> size - huffman_offset ) < 0 ) return AVERROR_INVALIDDATA ;\n if ( imagedata_segment [ 0 ] == 2 ) {\n xan_unpack ( s -> buffer2 , s -> buffer2_size , & imagedata_segment [ 1 ] , s -> size - imagedata_offset - 1 ) ;\n imagedata_size = s -> buffer2_size ;\n }\n else {\n imagedata_size = s -> size - imagedata_offset - 1 ;\n imagedata_buffer = & imagedata_segment [ 1 ] ;\n }\n x = y = 0 ;\n while ( total_pixels && opcode_buffer < opcode_buffer_end ) {\n opcode = * opcode_buffer ++ ;\n size = 0 ;\n switch ( opcode ) {\n case 0 : flag ^= 1 ;\n continue ;\n case 1 : case 2 : case 3 : case 4 : case 5 : case 6 : case 7 : case 8 : size = opcode ;\n break ;\n case 12 : case 13 : case 14 : case 15 : case 16 : case 17 : case 18 : size += ( opcode - 10 ) ;\n break ;\n case 9 : case 19 : size = * size_segment ++ ;\n break ;\n case 10 : case 20 : size = AV_RB16 ( & size_segment [ 0 ] ) ;\n size_segment += 2 ;\n break ;\n case 11 : case 21 : size = AV_RB24 ( size_segment ) ;\n size_segment += 3 ;\n break ;\n }\n if ( size > total_pixels ) break ;\n if ( opcode < 12 ) {\n flag ^= 1 ;\n if ( flag ) {\n xan_wc3_copy_pixel_run ( s , x , y , size , 0 , 0 ) ;\n }\n else {\n if ( imagedata_size < size ) break ;\n xan_wc3_output_pixel_run ( s , imagedata_buffer , x , y , size ) ;\n imagedata_buffer += size ;\n imagedata_size -= size ;\n }\n }\n else {\n motion_x = sign_extend ( * vector_segment >> 4 , 4 ) ;\n motion_y = sign_extend ( * vector_segment & 0xF , 4 ) ;\n vector_segment ++ ;\n xan_wc3_copy_pixel_run ( s , x , y , size , motion_x , motion_y ) ;\n flag = 0 ;\n }\n total_pixels -= size ;\n y += ( x + size ) / width ;\n x = ( x + size ) % width ;\n }\n return 0 ;\n }"}
{"idx": 16352, "target": 0, "func": "static void pdf_run_re ( fz_context * ctx , pdf_processor * proc , float x , float y , float w , float h ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n fz_rectto ( ctx , pr -> path , x , y , x + w , y + h ) ;\n }"}
{"idx": 16353, "target": 0, "func": "MULTIPROCESS_TEST_MAIN ( SimpleChildProcess ) {\n return 0 ;\n }"}
{"idx": 16354, "target": 0, "func": "static hb_bool_t lang_matches ( const char * lang_str , const char * spec ) {\n unsigned int len = strlen ( spec ) ;\n return strncmp ( lang_str , spec , len ) == 0 && ( lang_str [ len ] == '\\0' || lang_str [ len ] == '-' ) ;\n }"}
{"idx": 16355, "target": 0, "func": "void proto_register_q931 ( void ) {\n guint i ;\n guint last_offset ;\n static hf_register_info hf [ ] = {\n {\n & hf_q931_discriminator , {\n \"Protocol discriminator\" , \"q931.disc\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_call_ref_len , {\n \"Call reference value length\" , \"q931.call_ref_len\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_call_ref_flag , {\n \"Call reference flag\" , \"q931.call_ref_flag\" , FT_BOOLEAN , BASE_NONE , TFS ( & tfs_call_ref_flag ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_call_ref , {\n \"Call reference value\" , \"q931.call_ref\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_message_type , {\n \"Message type\" , \"q931.message_type\" , FT_UINT8 , BASE_HEX | BASE_EXT_STRING , & q931_message_type_vals_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_maintenance_message_type , {\n \"Maintenance message type\" , \"q931.maintenance_message_type\" , FT_UINT8 , BASE_HEX , VALS ( dms_message_type_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_segment_type , {\n \"Segmented message type\" , \"q931.segment_type\" , FT_UINT8 , BASE_HEX | BASE_EXT_STRING , & q931_message_type_vals_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_coding_standard , {\n \"Coding standard\" , \"q931.coding_standard\" , FT_UINT8 , BASE_HEX , VALS ( q931_coding_standard_vals ) , 0x60 , NULL , HFILL }\n }\n , {\n & hf_q931_interpretation , {\n \"Interpretation\" , \"q931.interpretation\" , FT_UINT8 , BASE_HEX , VALS ( q931_interpretation_vals ) , 0x1C , NULL , HFILL }\n }\n , {\n & hf_q931_pres_meth_prot_prof , {\n \"Presentation method of protocol profile\" , \"q931.presentation_method_protocol_profile\" , FT_UINT8 , BASE_HEX , VALS ( q931_pres_meth_prot_prof_vals ) , 0x03 , NULL , HFILL }\n }\n , {\n & hf_q931_high_layer_characteristics , {\n \"High layer characteristics identification\" , \"q931.high_layer_characteristics\" , FT_UINT8 , BASE_HEX | BASE_EXT_STRING , & q931_high_layer_characteristics_vals_ext , 0x7f , NULL , HFILL }\n }\n , {\n & hf_q931_extended_high_layer_characteristics , {\n \"Extended high layer characteristics identification\" , \"q931.extended_high_layer_characteristics\" , FT_UINT8 , BASE_HEX | BASE_EXT_STRING , & q931_extended_high_layer_characteristics_vals_ext , 0x7f , NULL , HFILL }\n }\n , {\n & hf_q931_extended_audiovisual_characteristics , {\n \"Extended audiovisual characteristics identification\" , \"q931.extended_audiovisual_characteristics\" , FT_UINT8 , BASE_HEX , VALS ( q931_audiovisual_characteristics_vals ) , 0x7f , NULL , HFILL }\n }\n , {\n & hf_q931_information_transfer_capability , {\n \"Information transfer capability\" , \"q931.information_transfer_capability\" , FT_UINT8 , BASE_HEX , VALS ( q931_information_transfer_capability_vals ) , 0x1f , NULL , HFILL }\n }\n , {\n & hf_q931_transfer_mode , {\n \"Transfer mode\" , \"q931.transfer_mode\" , FT_UINT8 , BASE_HEX , VALS ( q931_transfer_mode_vals ) , 0x60 , NULL , HFILL }\n }\n , {\n & hf_q931_information_transfer_rate , {\n \"Information transfer rate\" , \"q931.information_transfer_rate\" , FT_UINT8 , BASE_HEX , VALS ( q931_information_transfer_rate_vals ) , 0x1f , NULL , HFILL }\n }\n , {\n & hf_q931_layer_ident , {\n \"Layer identification\" , \"q931.layer_ident\" , FT_UINT8 , BASE_HEX , VALS ( q931_bearer_capability_layer_ident_vals ) , 0x60 , NULL , HFILL }\n }\n , {\n & hf_q931_uil1 , {\n \"User information layer 1 protocol\" , \"q931.uil1\" , FT_UINT8 , BASE_HEX | BASE_EXT_STRING , & q931_uil1_vals_ext , 0x1f , NULL , HFILL }\n }\n , {\n & hf_q931_cause_location , {\n \"Cause location\" , \"q931.cause_location\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & q931_cause_location_vals_ext , 0x0f , NULL , HFILL }\n }\n , {\n & hf_q931_cause_value , {\n \"Cause value\" , \"q931.cause_value\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & q931_cause_code_vals_ext , 0x7f , NULL , HFILL }\n }\n , {\n & hf_q931_number_type , {\n \"Number type\" , \"q931.number_type\" , FT_UINT8 , BASE_HEX , VALS ( q931_number_type_vals ) , 0x70 , NULL , HFILL }\n }\n , {\n & hf_q931_numbering_plan , {\n \"Numbering plan\" , \"q931.numbering_plan\" , FT_UINT8 , BASE_HEX , VALS ( q931_numbering_plan_vals ) , 0x0f , NULL , HFILL }\n }\n , {\n & hf_q931_screening_ind , {\n \"Screening indicator\" , \"q931.screening_ind\" , FT_UINT8 , BASE_HEX , VALS ( q931_screening_indicator_vals ) , 0x03 , NULL , HFILL }\n }\n , {\n & hf_q931_presentation_ind , {\n \"Presentation indicator\" , \"q931.presentation_ind\" , FT_UINT8 , BASE_HEX , VALS ( q931_presentation_indicator_vals ) , 0x60 , NULL , HFILL }\n }\n , {\n & hf_q931_extension_ind , {\n \"Extension indicator\" , \"q931.extension_ind\" , FT_BOOLEAN , 8 , TFS ( & q931_extension_ind_value ) , 0x80 , NULL , HFILL }\n }\n , {\n & hf_q931_extension_ind_preference , {\n \"Preference\" , \"q931.extension_ind_preference\" , FT_UINT8 , BASE_DEC , VALS ( q931_status_preference_vals ) , 0x40 , NULL , HFILL }\n }\n , {\n & hf_q931_extension_ind_new_status , {\n \"New status\" , \"q931.extension_ind_new_status\" , FT_UINT8 , BASE_DEC , VALS ( q931_new_status_vals ) , 0x07 , NULL , HFILL }\n }\n , {\n & hf_q931_calling_party_number , {\n \"Calling party number digits\" , \"q931.calling_party_number.digits\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_called_party_number , {\n \"Called party number digits\" , \"q931.called_party_number.digits\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_connected_number , {\n \"Connected party number digits\" , \"q931.connected_number.digits\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_redirecting_number , {\n \"Redirecting party number digits\" , \"q931.redirecting_number.digits\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_channel_interface_explicit , {\n \"Interface identifier present\" , \"q931.channel.interface_id_present\" , FT_BOOLEAN , 8 , NULL , 0x40 , \"True if the interface identifier is explicit in the following octets\" , HFILL }\n }\n , {\n & hf_q931_channel_interface_type , {\n \"Interface type\" , \"q931.channel.interface_type\" , FT_BOOLEAN , 8 , TFS ( & tfs_interface_type ) , 0x20 , \"Identifies the ISDN interface type\" , HFILL }\n }\n , {\n & hf_q931_channel_exclusive , {\n \"Indicated channel\" , \"q931.channel.exclusive\" , FT_BOOLEAN , 8 , TFS ( & tfs_channel_exclusive ) , 0x08 , \"True if only the indicated channel is acceptable\" , HFILL }\n }\n , {\n & hf_q931_channel_dchan , {\n \"D-channel indicator\" , \"q931.channel.dchan\" , FT_BOOLEAN , 8 , NULL , 0x04 , \"True if the identified channel is the D-Channel\" , HFILL }\n }\n , {\n & hf_q931_channel_selection_bri , {\n \"Information channel selection\" , \"q931.channel.selection\" , FT_UINT8 , BASE_HEX , VALS ( q931_basic_channel_selection_vals ) , 0x03 , \"Identifies the information channel to be used\" , HFILL }\n }\n , {\n & hf_q931_channel_selection_pri , {\n \"Information channel selection\" , \"q931.channel.selection\" , FT_UINT8 , BASE_HEX , VALS ( q931_not_basic_channel_selection_vals ) , 0x03 , \"Identifies the information channel to be used\" , HFILL }\n }\n , {\n & hf_q931_channel_map , {\n \"Number/map\" , \"q931.channel.map\" , FT_BOOLEAN , 8 , TFS ( & tfs_channel_map ) , 0x10 , \"True if channel is indicates by channel map rather than number\" , HFILL }\n }\n , {\n & hf_q931_channel_element_type , {\n \"Element type\" , \"q931.channel.element_type\" , FT_UINT8 , BASE_HEX , VALS ( q931_element_type_vals ) , 0xF , \"Type of element in the channel number/slot map octets\" , HFILL }\n }\n , {\n & hf_q931_channel_number , {\n \"Channel number\" , \"q931.channel.number\" , FT_UINT8 , BASE_DEC , NULL , 0x7F , NULL , HFILL }\n }\n , {\n & hf_q931_segment_overlap , {\n \"Segment overlap\" , \"q931.segment.overlap\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , \"Fragment overlaps with other fragments\" , HFILL }\n }\n , {\n & hf_q931_segment_overlap_conflict , {\n \"Conflicting data in fragment overlap\" , \"q931.segment.overlap.conflict\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , \"Overlapping fragments contained conflicting data\" , HFILL }\n }\n , {\n & hf_q931_segment_multiple_tails , {\n \"Multiple tail fragments found\" , \"q931.segment.multipletails\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , \"Several tails were found when defragmenting the packet\" , HFILL }\n }\n , {\n & hf_q931_segment_too_long_segment , {\n \"Segment too long\" , \"q931.segment.toolongfragment\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , \"Segment contained data past end of packet\" , HFILL }\n }\n , {\n & hf_q931_segment_error , {\n \"Defragmentation error\" , \"q931.segment.error\" , FT_FRAMENUM , BASE_NONE , NULL , 0x0 , \"Defragmentation error due to illegal fragments\" , HFILL }\n }\n , {\n & hf_q931_segment_count , {\n \"Segment count\" , \"q931.segment.count\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_segment , {\n \"Q.931 Segment\" , \"q931.segment\" , FT_FRAMENUM , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_segments , {\n \"Q.931 Segments\" , \"q931.segments\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_reassembled_in , {\n \"Reassembled Q.931 in frame\" , \"q931.reassembled_in\" , FT_FRAMENUM , BASE_NONE , NULL , 0x0 , \"This Q.931 message is reassembled in this frame\" , HFILL }\n }\n , {\n & hf_q931_reassembled_length , {\n \"Reassembled Q.931 length\" , \"q931.reassembled.length\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"The total length of the reassembled payload\" , HFILL }\n }\n , {\n & hf_q931_first_segment , {\n \"First segment\" , \"q931.segment.first\" , FT_UINT8 , BASE_DEC , NULL , 0x7F , NULL , HFILL }\n }\n , {\n & hf_q931_not_first_segment , {\n \"Not first segment\" , \"q931.segment.not_first\" , FT_UINT8 , BASE_DEC , NULL , 0x7F , NULL , HFILL }\n }\n , {\n & hf_q931_bearer_capability_data , {\n \"Data\" , \"q931.bearer_capability.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_bearer_capability_rate_multiplier , {\n \"Rate multiplier\" , \"q931.bearer_capability.rate_multiplier\" , FT_UINT8 , BASE_DEC , NULL , 0x7f , NULL , HFILL }\n }\n , {\n & hf_q931_bearer_capability_user_rate , {\n \"User rate\" , \"q931.bearer_capability.user_rate\" , FT_UINT8 , BASE_HEX | BASE_EXT_STRING , & q931_l1_user_rate_vals_ext , 0x1F , NULL , HFILL }\n }\n , {\n & hf_q931_bearer_capability_intermediate_rate , {\n \"Intermediate rate\" , \"q931.bearer_capability.intermediate_rate\" , FT_UINT8 , BASE_HEX , VALS ( q931_l1_intermediate_rate_vals ) , 0x60 , NULL , HFILL }\n }\n , {\n & hf_q931_bearer_capability_stop_bits , {\n \"Stop bits\" , \"q931.bearer_capability.stop_bits\" , FT_UINT8 , BASE_HEX , VALS ( q931_l1_stop_bits_vals ) , 0x60 , NULL , HFILL }\n }\n , {\n & hf_q931_bearer_capability_data_bits , {\n \"Data bits\" , \"q931.bearer_capability.data_bits\" , FT_UINT8 , BASE_HEX , VALS ( q931_l1_data_bits_vals ) , 0x18 , NULL , HFILL }\n }\n , {\n & hf_q931_bearer_capability_parity , {\n \"Parity\" , \"q931.bearer_capability.parity\" , FT_UINT8 , BASE_HEX , VALS ( q931_l1_parity_vals ) , 0x07 , NULL , HFILL }\n }\n , {\n & hf_q931_bearer_capability_modem_type , {\n \"Modem type\" , \"q931.bearer_capability.modem_type\" , FT_UINT8 , BASE_HEX | BASE_RANGE_STRING , RVALS ( q931_l1_modem_type_rvals ) , 0x3F , NULL , HFILL }\n }\n , {\n & hf_q931_uil2 , {\n \"User information layer 2 protocol\" , \"q931.uil2\" , FT_UINT8 , BASE_HEX | BASE_EXT_STRING , & q931_uil2_vals_ext , 0x1F , NULL , HFILL }\n }\n , {\n & hf_q931_uil2_info , {\n \"User-specified layer 2 protocol information\" , \"q931.uil2_info\" , FT_UINT8 , BASE_HEX , NULL , 0x7F , NULL , HFILL }\n }\n , {\n & hf_q931_bearer_capability_mode , {\n \"Mode\" , \"q931.bearer_capability.mode\" , FT_UINT8 , BASE_HEX , VALS ( q931_mode_vals ) , 0x60 , NULL , HFILL }\n }\n , {\n & hf_q931_bearer_capability_window_size , {\n \"Window size\" , \"q931.bearer_capability.window_size\" , FT_UINT8 , BASE_DEC , NULL , 0x7F , NULL , HFILL }\n }\n , {\n & hf_q931_uil3 , {\n \"User information layer 3 protocol\" , \"q931.uil3\" , FT_UINT8 , BASE_HEX , VALS ( q931_uil3_vals ) , 0x1F , NULL , HFILL }\n }\n , {\n & hf_q931_bearer_capability_default_packet_size , {\n \"Default packet size\" , \"q931.bearer_capability.default_packet_size\" , FT_UINT8 , BASE_DEC , NULL , 0x0F , NULL , HFILL }\n }\n , {\n & hf_q931_bearer_capability_packet_window_size , {\n \"Packet window size\" , \"q931.bearer_capability.packet_window_size\" , FT_UINT8 , BASE_DEC , NULL , 0x7F , NULL , HFILL }\n }\n , {\n & hf_q931_uil3_additional , {\n \"Additional layer 3 protocol information\" , \"q931.uil3_additional\" , FT_UINT16 , BASE_HEX , VALS ( nlpid_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_cause_data , {\n \"Data\" , \"q931.cause.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_cause_recommendation , {\n \"Recommendation\" , \"q931.cause.recommendation\" , FT_UINT8 , BASE_HEX , VALS ( q931_cause_recommendation_vals ) , 0x7F , NULL , HFILL }\n }\n , {\n & hf_q931_cause_call_rejection_reason , {\n \"Rejection reason\" , \"q931.cause_call.rejection_reason\" , FT_UINT8 , BASE_HEX , VALS ( q931_rejection_reason_vals ) , 0x7C , NULL , HFILL }\n }\n , {\n & hf_q931_cause_call_condition , {\n \"Condition\" , \"q931.cause_call.condition\" , FT_UINT8 , BASE_HEX , VALS ( q931_cause_condition_vals ) , 0x03 , NULL , HFILL }\n }\n , {\n & hf_q931_cause_call_user_specific_diagnostic , {\n \"User specific diagnostic\" , \"q931.cause_call.user_specific_diagnostic\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_cause_call_diagnostic , {\n \"Diagnostic\" , \"q931.cause_call.diagnostic\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_cause_call_message_type , {\n \"Message type\" , \"q931.cause_call.message_type\" , FT_UINT8 , BASE_HEX | BASE_EXT_STRING , & q931_message_type_vals_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_cause_call_rec_timer , {\n \"Timer\" , \"q931.cause_call.rec_timer\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_call_state_data , {\n \"Data\" , \"q931.call_state.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_call_state , {\n \"Call state\" , \"q931.call_state\" , FT_UINT8 , BASE_HEX | BASE_EXT_STRING , & q931_call_state_vals_ext , 0x3F , NULL , HFILL }\n }\n , {\n & hf_q931_channel_interface_id , {\n \"Interface ID\" , \"q931.channel.interface_id\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_channel_data , {\n \"Data\" , \"q931.channel.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_channel_slot_map , {\n \"Slot map\" , \"q931.channel.slot_map\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_progress_indicator_data , {\n \"Data\" , \"q931.progress_indicator.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_progress_indicator_location , {\n \"Location\" , \"q931.progress_indicator.location\" , FT_UINT8 , BASE_HEX | BASE_EXT_STRING , & q931_cause_location_vals_ext , 0x0F , NULL , HFILL }\n }\n , {\n & hf_q931_progress_indicator_description , {\n \"Progress description\" , \"q931.progress_indicator.description\" , FT_UINT8 , BASE_HEX | BASE_EXT_STRING , & q931_progress_description_vals_ext , 0x7F , NULL , HFILL }\n }\n , {\n & hf_q931_netid_length , {\n \"Network identification length\" , \"q931.netid.length\" , FT_UINT8 , BASE_DEC , NULL , 0x7F , NULL , HFILL }\n }\n , {\n & hf_q931_netid_type , {\n \"Type of network identification\" , \"q931.netid.type\" , FT_UINT8 , BASE_HEX , VALS ( q931_netid_type_vals ) , 0x70 , NULL , HFILL }\n }\n , {\n & hf_q931_netid_plan , {\n \"Network identification plan\" , \"q931.netid.plan\" , FT_UINT8 , BASE_HEX , VALS ( q931_netid_plan_vals ) , 0x0F , NULL , HFILL }\n }\n , {\n & hf_q931_netid , {\n \"Network identification\" , \"q931.netid\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_netid_facility_specification , {\n \"Network-specific facility specification\" , \"q931.netid.facility_specification\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_notification_description , {\n \"Notification description\" , \"q931.notification_description\" , FT_UINT8 , BASE_HEX , VALS ( q931_notification_description_vals ) , 0x7F , NULL , HFILL }\n }\n , {\n & hf_q931_signal , {\n \"Signal\" , \"q931.signal\" , FT_UINT8 , BASE_HEX | BASE_EXT_STRING , & q931_signal_vals_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_information_rate_incoming , {\n \"Incoming information rate\" , \"q931.information_rate.incoming\" , FT_UINT8 , BASE_HEX | BASE_EXT_STRING , & q931_throughput_class_vals_ext , 0x1F , NULL , HFILL }\n }\n , {\n & hf_q931_information_rate_outgoing , {\n \"Outgoing information rate\" , \"q931.information_rate.outgoing\" , FT_UINT8 , BASE_HEX | BASE_EXT_STRING , & q931_throughput_class_vals_ext , 0x1F , NULL , HFILL }\n }\n , {\n & hf_q931_information_rate_minimum_incoming , {\n \"Minimum incoming information rate\" , \"q931.information_rate.minimum_incoming\" , FT_UINT8 , BASE_HEX | BASE_EXT_STRING , & q931_throughput_class_vals_ext , 0x1F , NULL , HFILL }\n }\n , {\n & hf_q931_information_rate_minimum_outgoing , {\n \"Minimum outgoing information rate\" , \"q931.information_rate.minimum_outgoing\" , FT_UINT8 , BASE_HEX | BASE_EXT_STRING , & q931_throughput_class_vals_ext , 0x1F , NULL , HFILL }\n }\n , {\n & hf_q931_fast_select , {\n \"Fast select\" , \"q931.fast_select\" , FT_UINT8 , BASE_HEX , VALS ( q931_fast_selected_vals ) , 0x18 , NULL , HFILL }\n }\n , {\n & hf_q931_pl_window_size_forward_value , {\n \"Forward value\" , \"q931.pl_window_size.forward_value\" , FT_UINT8 , BASE_DEC , NULL , 0x7F , NULL , HFILL }\n }\n , {\n & hf_q931_pl_window_size_backward_value , {\n \"Backward value\" , \"q931.pl_window_size.backward_value\" , FT_UINT8 , BASE_DEC , NULL , 0x7F , NULL , HFILL }\n }\n , {\n & hf_q931_packet_size_forward_value , {\n \"Forward value\" , \"q931.packet_size.forward_value\" , FT_UINT8 , BASE_DEC , NULL , 0x7F , NULL , HFILL }\n }\n , {\n & hf_q931_packet_size_backward_value , {\n \"Backward value\" , \"q931.packet_size.backward_value\" , FT_UINT8 , BASE_DEC , NULL , 0x7F , NULL , HFILL }\n }\n , {\n & hf_q931_cug_indication , {\n \"CUG indication\" , \"q931.cug_indication\" , FT_UINT8 , BASE_HEX , VALS ( q931_cug_indication_vals ) , 0x07 , NULL , HFILL }\n }\n , {\n & hf_q931_cug_index_code , {\n \"CUG index code\" , \"q931.cug_index_code\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_reverse_charging_ind , {\n \"Reverse charging indication\" , \"q931.reverse_charging_ind\" , FT_UINT8 , BASE_HEX , VALS ( q931_reverse_charging_indication_vals ) , 0x07 , NULL , HFILL }\n }\n , {\n & hf_q931_extension_reason , {\n \"Reason for redirection\" , \"q931.extension.reason\" , FT_UINT8 , BASE_HEX , VALS ( q931_redirection_reason_vals ) , 0x0F , NULL , HFILL }\n }\n , {\n & hf_q931_party_subaddr_type , {\n \"Type of subaddress\" , \"q931.party_subaddr.type\" , FT_UINT8 , BASE_HEX , VALS ( q931_subaddress_type_vals ) , 0x70 , NULL , HFILL }\n }\n , {\n & hf_q931_party_subaddr_odd_even_indicator , {\n \"Odd/even indicator\" , \"q931.party_subaddr.odd_even\" , FT_UINT8 , BASE_HEX , VALS ( q931_odd_even_indicator_vals ) , 0x08 , NULL , HFILL }\n }\n , {\n & hf_q931_party_subaddr , {\n \"Subaddress\" , \"q931.party_subaddr\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_restart_indicator , {\n \"Restart indicator\" , \"q931.restart_indicator\" , FT_UINT8 , BASE_HEX , VALS ( q931_restart_indicator_class_vals ) , 0x07 , NULL , HFILL }\n }\n , {\n & hf_q931_high_layer_compat_data , {\n \"Data\" , \"q931.high_layer_compat.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_user_protocol_discriminator , {\n \"Protocol discriminator\" , \"q931.user.protocol_discriminator\" , FT_UINT8 , BASE_HEX | BASE_EXT_STRING , & q931_protocol_discriminator_vals_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_user_information_len , {\n \"User information\" , \"q931.user.len\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_user_information_str , {\n \"User information\" , \"q931.user.string\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_user_information_bytes , {\n \"User information\" , \"q931.user.bytes\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_party_category , {\n \"Party category\" , \"q931.party_category\" , FT_UINT8 , BASE_HEX , VALS ( q931_party_category_vals ) , 0x07 , NULL , HFILL }\n }\n , {\n & hf_q931_congestion_level , {\n \"Congestion level\" , \"q931.congestion_level\" , FT_UINT8 , BASE_HEX , VALS ( q931_congestion_level_vals ) , Q931_IE_SO_IE_MASK , NULL , HFILL }\n }\n , {\n & hf_q931_repeat_indicator , {\n \"Repeat indicator\" , \"q931.repeat_indicator\" , FT_UINT8 , BASE_HEX , VALS ( q931_repeat_indication_vals ) , Q931_IE_SO_IE_MASK , NULL , HFILL }\n }\n , {\n & hf_q931_out_band_negotiation , {\n \"Out-band negotiation\" , \"q931.out_band_negotiation\" , FT_BOOLEAN , 8 , TFS ( & tfs_possible_not_possible ) , 0x40 , NULL , HFILL }\n }\n , {\n & hf_q931_layer_1 , {\n \"Layer 1\" , \"q931.layer_1\" , FT_BOOLEAN , 8 , TFS ( & tfs_asynchronous_synchronous ) , 0x40 , NULL , HFILL }\n }\n , {\n & hf_q931_layer_1_in_band_negotiation , {\n \"Layer 1 in-band negotiation\" , \"q931.layer_1_in_band_negotiation\" , FT_BOOLEAN , 8 , TFS ( & tfs_possible_not_possible ) , 0x20 , NULL , HFILL }\n }\n , {\n & hf_q931_send_data_net_independent_clock , {\n \"Send data with network independent clock\" , \"q931.send_data_net_independent_clock\" , FT_BOOLEAN , 8 , TFS ( & tfs_required_not_required ) , 0x10 , NULL , HFILL }\n }\n , {\n & hf_q931_accept_data_net_independent_clock , {\n \"Accept data with network independent clock\" , \"q931.accept_data_net_independent_clock\" , FT_BOOLEAN , 8 , TFS ( & tfs_accepted_not_accepted ) , 0x08 , NULL , HFILL }\n }\n , {\n & hf_q931_send_data_flow_control , {\n \"Send data with flow control mechanism\" , \"q931.send_data_flow_control\" , FT_BOOLEAN , 8 , TFS ( & tfs_required_not_required ) , 0x04 , NULL , HFILL }\n }\n , {\n & hf_q931_accept_data_flow_control , {\n \"Accept data with flow control mechanism\" , \"q931.accept_data_flow_control\" , FT_BOOLEAN , 8 , TFS ( & tfs_accepted_not_accepted ) , 0x2 , NULL , HFILL }\n }\n , {\n & hf_q931_rate_adaption_header , {\n \"Rate adaption header\" , \"q931.rate_adaption_header\" , FT_BOOLEAN , 8 , TFS ( & tfs_present_not_present ) , 0x40 , NULL , HFILL }\n }\n , {\n & hf_q931_multiple_frame_establishment , {\n \"Multiple frame establishment\" , \"q931.multiple_frame_establishment\" , FT_BOOLEAN , 8 , TFS ( & tfs_supported_not_supported ) , 0x20 , NULL , HFILL }\n }\n , {\n & hf_q931_mode_of_operation , {\n \"mode of operation\" , \"q931.mode_of_operation\" , FT_BOOLEAN , 8 , TFS ( & tfs_protocol_sensative_bit_transparent ) , 0x10 , NULL , HFILL }\n }\n , {\n & hf_q931_message_originator , {\n \"Message originator\" , \"q931.message_originator\" , FT_BOOLEAN , 8 , TFS ( & tfs_assignor_default ) , 0x04 , NULL , HFILL }\n }\n , {\n & hf_q931_negotiation_is_done , {\n \"Negotiation is done\" , \"q931.negotiation_is_done\" , FT_BOOLEAN , 8 , TFS ( & tfs_in_out_band ) , 0x02 , NULL , HFILL }\n }\n , {\n & hf_q931_bearer_capability_duplex , {\n \"Duplex\" , \"q931.bearer_capability.duplex\" , FT_BOOLEAN , 8 , TFS ( & tfs_full_half ) , 0x40 , NULL , HFILL }\n }\n , {\n & hf_q931_network_service , {\n \"Network service\" , \"q931.network_service\" , FT_BOOLEAN , 8 , TFS ( & tfs_user_provider ) , 0x80 , NULL , HFILL }\n }\n , {\n & hf_q931_extension_condition_type , {\n \"Type\" , \"q931.extension_condition_type\" , FT_BOOLEAN , 8 , TFS ( & tfs_abnormal_normal ) , 0x40 , NULL , HFILL }\n }\n , {\n & hf_q931_extension_condition , {\n \"Condition\" , \"q931.extension_condition\" , FT_UINT8 , BASE_HEX , VALS ( q931_cause_condition_vals ) , 0x03 , NULL , HFILL }\n }\n , {\n & hf_q931_pl_request , {\n \"Request\" , \"q931.pl_request\" , FT_BOOLEAN , 8 , TFS ( & tfs_pl_request ) , 0x04 , NULL , HFILL }\n }\n , {\n & hf_q931_pl_binary_confirmation , {\n \"Confirmation\" , \"q931.pl_binary_confirmation\" , FT_BOOLEAN , 8 , TFS ( & tfs_link_end ) , 0x02 , NULL , HFILL }\n }\n , {\n & hf_q931_pl_modulus , {\n \"Modulus\" , \"q931.pl_modulus\" , FT_BOOLEAN , 8 , TFS ( & tfs_pl_modulus ) , 0x01 , NULL , HFILL }\n }\n , {\n & hf_q931_data , {\n \"Data\" , \"q931.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_information_element , {\n \"Information element\" , \"q931.information_element\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_information_element_len , {\n \"Length\" , \"q931.information_element_len\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_date_time , {\n \"Date/time\" , \"q931.date_time\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_more_data , {\n \"More data\" , \"q931.more_data\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_sending_complete , {\n \"Sending complete\" , \"q931.sending_complete\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_message_segment , {\n \"Message segment\" , \"q931.message_segment\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_missing_info_element , {\n \"Missing information element\" , \"q931.missing_info_element\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_insufficient_info_element , {\n \"Insufficient information element\" , \"q931.insufficient_info_element\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_cumulative_transit_delay , {\n \"Cumulative transit delay\" , \"q931.cumulative_transit_delay\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_requested_end_to_end_transit_delay , {\n \"Requested end-to-end transit delay\" , \"q931.requested_end_to_end_transit_delay\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_maximum_end_to_end_transit_delay , {\n \"Maximum end-to-end transit delay\" , \"q931.maximum_end_to_end_transit_delay\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_transit_delay , {\n \"Transit delay\" , \"q931.transit_delay\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_display_information , {\n \"Display information\" , \"q931.display_information\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_keypad_facility , {\n \"Keypad facility\" , \"q931.keypad_facility\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_avaya_display , {\n \"Avaya Display\" , \"q931.avaya_display\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_locking_codeset , {\n \"Locking codeset\" , \"q931.locking_codeset\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_q931_protocol_negotiation , {\n \"Protocol negotiation\" , \"q931.protocol_negotiation\" , FT_BOOLEAN , 8 , TFS ( & tfs_protocol_negotiation ) , 0x08 , NULL , HFILL }\n }\n , }\n ;\n # define NUM_INDIVIDUAL_ELEMS 3 static gint * ett [ NUM_INDIVIDUAL_ELEMS + NUM_IE ] ;\n static ei_register_info ei [ ] = {\n {\n & ei_q931_invalid_length , {\n \"q931.invalid_length\" , PI_MALFORMED , PI_ERROR , \"Invalid length\" , EXPFILL }\n }\n , {\n & ei_q931_date_time , {\n \"q931.date_time.invalid\" , PI_MALFORMED , PI_ERROR , \"Date/time: Invalid length\" , EXPFILL }\n }\n , {\n & ei_q931_information_element , {\n \"q931.information_element.unknown\" , PI_PROTOCOL , PI_WARN , \"Unknown information element\" , EXPFILL }\n }\n , {\n & ei_q931_incomplete_ie , {\n \"q931.incomplete_ie\" , PI_MALFORMED , PI_ERROR , \"Incomplete IE in the 1st segment\" , EXPFILL }\n }\n , }\n ;\n module_t * q931_module ;\n expert_module_t * expert_q931 ;\n ett [ 0 ] = & ett_q931 ;\n ett [ 1 ] = & ett_q931_segments ;\n ett [ 2 ] = & ett_q931_segment ;\n last_offset = NUM_INDIVIDUAL_ELEMS ;\n for ( i = 0 ;\n i < NUM_IE ;\n i ++ , last_offset ++ ) {\n ett_q931_ie [ i ] = - 1 ;\n ett [ last_offset ] = & ett_q931_ie [ i ] ;\n }\n proto_q931 = proto_register_protocol ( \"Q.931\" , \"Q.931\" , \"q931\" ) ;\n proto_register_field_array ( proto_q931 , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n expert_q931 = expert_register_protocol ( proto_q931 ) ;\n expert_register_field_array ( expert_q931 , ei , array_length ( ei ) ) ;\n register_init_routine ( q931_init ) ;\n register_cleanup_routine ( q931_cleanup ) ;\n q931_handle = register_dissector ( \"q931\" , dissect_q931 , proto_q931 ) ;\n q931_tpkt_handle = register_dissector ( \"q931.tpkt\" , dissect_q931_tpkt , proto_q931 ) ;\n q931_tpkt_pdu_handle = create_dissector_handle ( dissect_q931_tpkt_pdu , proto_q931 ) ;\n q931_over_ip_handle = register_dissector ( \"q931.over_ip\" , dissect_q931_over_ip , proto_q931 ) ;\n register_dissector ( \"q931.ie\" , dissect_q931_ie_cs0 , proto_q931 ) ;\n register_dissector ( \"q931.ie.cs7\" , dissect_q931_ie_cs7 , proto_q931 ) ;\n codeset_dissector_table = register_dissector_table ( \"q931.codeset\" , \"Q.931 Codeset\" , proto_q931 , FT_UINT8 , BASE_HEX ) ;\n ie_dissector_table = register_dissector_table ( \"q931.ie\" , \"Q.931 IE\" , proto_q931 , FT_UINT16 , BASE_HEX ) ;\n q931_user_heur_subdissector_list = register_heur_dissector_list ( \"q931_user\" , proto_q931 ) ;\n q931_module = prefs_register_protocol ( proto_q931 , NULL ) ;\n prefs_register_bool_preference ( q931_module , \"desegment_h323_messages\" , \"Reassemble Q.931 messages spanning multiple TCP segments\" , \"Whether the Q.931 dissector should reassemble messages spanning multiple TCP segments.\" \" To use this option, you must also enable \\\"Allow subdissectors to reassemble TCP streams\\\" in the TCP protocol settings.\" , & q931_desegment ) ;\n prefs_register_bool_preference ( q931_module , \"reassembly\" , \"Reassemble segmented Q.931 messages\" , \"Reassemble segmented Q.931 messages (Q.931 - Annex H)\" , & q931_reassembly ) ;\n prefs_register_bool_preference ( q931_module , \"iso_iec_cause_coding\" , \"Decode ISO/IEC cause coding standard as ITU-T\" , \"Decode ISO/IEC cause coding standard as ITU-T\" , & g931_iso_iec_cause ) ;\n q931_tap = register_tap ( \"q931\" ) ;\n }"}
{"idx": 16356, "target": 0, "func": "static hb_bool_t hb_font_get_glyph_name_nil ( hb_font_t * font , void * font_data HB_UNUSED , hb_codepoint_t glyph , char * name , unsigned int size , void * user_data HB_UNUSED ) {\n if ( font -> parent ) return font -> parent -> get_glyph_name ( glyph , name , size ) ;\n if ( size ) * name = '\\0' ;\n return false ;\n }"}
{"idx": 16357, "target": 0, "func": "static bool left_is_superset ( DTCollation * left , DTCollation * right ) {\n if ( left -> collation -> state & MY_CS_UNICODE && ( left -> derivation < right -> derivation || ( left -> derivation == right -> derivation && ( ! ( right -> collation -> state & MY_CS_UNICODE ) || ( left -> collation -> state & MY_CS_UNICODE_SUPPLEMENT && ! ( right -> collation -> state & MY_CS_UNICODE_SUPPLEMENT ) && left -> collation -> mbmaxlen > right -> collation -> mbmaxlen && left -> collation -> mbminlen == right -> collation -> mbminlen ) ) ) ) ) return TRUE ;\n if ( right -> repertoire == MY_REPERTOIRE_ASCII && ( left -> derivation < right -> derivation || ( left -> derivation == right -> derivation && ! ( left -> repertoire == MY_REPERTOIRE_ASCII ) ) ) ) return TRUE ;\n return FALSE ;\n }"}
{"idx": 16358, "target": 1, "func": "pdf_xobject * pdf_load_xobject ( fz_context * ctx , pdf_document * doc , pdf_obj * dict ) {\n pdf_xobject * form ;\n if ( ( form = pdf_find_item ( ctx , pdf_drop_xobject_imp , dict ) ) != NULL ) return form ;\n form = fz_malloc_struct ( ctx , pdf_xobject ) ;\n FZ_INIT_STORABLE ( form , 1 , pdf_drop_xobject_imp ) ;\n form -> obj = NULL ;\n form -> iteration = 0 ;\n pdf_store_item ( ctx , dict , form , pdf_xobject_size ( form ) ) ;\n form -> obj = pdf_keep_obj ( ctx , dict ) ;\n return form ;\n }"}
{"idx": 16359, "target": 0, "func": "static int ts_lua_http_timeout_set ( lua_State * L ) {\n int conf ;\n int value ;\n ts_lua_http_ctx * http_ctx ;\n GET_HTTP_CONTEXT ( http_ctx , L ) ;\n conf = luaL_checkinteger ( L , 1 ) ;\n value = luaL_checkinteger ( L , 2 ) ;\n switch ( conf ) {\n case TS_LUA_TIMEOUT_ACTIVE : TSDebug ( TS_LUA_DEBUG_TAG , \"setting active timeout\" ) ;\n TSHttpTxnActiveTimeoutSet ( http_ctx -> txnp , value ) ;\n break ;\n case TS_LUA_TIMEOUT_CONNECT : TSDebug ( TS_LUA_DEBUG_TAG , \"setting connect timeout\" ) ;\n TSHttpTxnConnectTimeoutSet ( http_ctx -> txnp , value ) ;\n break ;\n case TS_LUA_TIMEOUT_DNS : TSDebug ( TS_LUA_DEBUG_TAG , \"setting dns timeout\" ) ;\n TSHttpTxnDNSTimeoutSet ( http_ctx -> txnp , value ) ;\n break ;\n case TS_LUA_TIMEOUT_NO_ACTIVITY : TSDebug ( TS_LUA_DEBUG_TAG , \"setting no activity timeout\" ) ;\n TSHttpTxnNoActivityTimeoutSet ( http_ctx -> txnp , value ) ;\n break ;\n default : TSError ( \"[ts_lua] Unsupported timeout config option for lua plugin\" ) ;\n break ;\n }\n return 0 ;\n }"}
{"idx": 16360, "target": 0, "func": "static int get_arf_src_index ( VP9_COMP * cpi ) {\n RATE_CONTROL * const rc = & cpi -> rc ;\n int arf_src_index = 0 ;\n if ( is_altref_enabled ( cpi ) ) {\n if ( cpi -> oxcf . pass == 2 ) {\n const GF_GROUP * const gf_group = & cpi -> twopass . gf_group ;\n if ( gf_group -> update_type [ gf_group -> index ] == ARF_UPDATE ) {\n arf_src_index = gf_group -> arf_src_offset [ gf_group -> index ] ;\n }\n }\n else if ( rc -> source_alt_ref_pending ) {\n arf_src_index = rc -> frames_till_gf_update_due ;\n }\n }\n return arf_src_index ;\n }"}
{"idx": 16361, "target": 0, "func": "static void test_free_result ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND my_bind [ 1 ] ;\n char c2 [ 5 ] ;\n ulong bl1 , l2 ;\n int rc , c1 , bc1 ;\n myheader ( \"test_free_result\" ) ;\n rc = mysql_query ( mysql , \"drop table if exists test_free_result\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table test_free_result(\" \"c1 int primary key auto_increment)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into test_free_result values(), (), ()\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"select * from test_free_result\" ) ;\n check_stmt ( stmt ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 0 ] . buffer = ( void * ) & bc1 ;\n my_bind [ 0 ] . length = & bl1 ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n c2 [ 0 ] = '\\0' ;\n l2 = 0 ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 0 ] . buffer = ( void * ) c2 ;\n my_bind [ 0 ] . buffer_length = 7 ;\n my_bind [ 0 ] . is_null = 0 ;\n my_bind [ 0 ] . length = & l2 ;\n rc = mysql_stmt_fetch_column ( stmt , my_bind , 0 , 0 ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n col 0: %s(%ld)\" , c2 , l2 ) ;\n DIE_UNLESS ( strncmp ( c2 , \"1\" , 1 ) == 0 && l2 == 1 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n c1 = 0 , l2 = 0 ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 0 ] . buffer = ( void * ) & c1 ;\n my_bind [ 0 ] . buffer_length = 0 ;\n my_bind [ 0 ] . is_null = 0 ;\n my_bind [ 0 ] . length = & l2 ;\n rc = mysql_stmt_fetch_column ( stmt , my_bind , 0 , 0 ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n col 0: %d(%ld)\" , c1 , l2 ) ;\n DIE_UNLESS ( c1 == 2 && l2 == 4 ) ;\n rc = mysql_query ( mysql , \"drop table test_free_result\" ) ;\n myquery_r ( rc ) ;\n rc = mysql_stmt_free_result ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_query ( mysql , \"drop table test_free_result\" ) ;\n myquery ( rc ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 16362, "target": 0, "func": "void qdev_machine_creation_done ( void ) {\n qdev_hotplug = 1 ;\n }"}
{"idx": 16363, "target": 0, "func": "static void test_order_param ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n myheader ( \"test_order_param\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE t1(a INT, b char(10))\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"select sum(a) + 200, 1 from t1 \" \" union distinct \" \"select sum(a) + 200, 1 from t1 group by b \" ) ;\n check_stmt ( stmt ) ;\n mysql_stmt_close ( stmt ) ;\n stmt = mysql_simple_prepare ( mysql , \"select sum(a) + 200, ? from t1 group by b \" \" union distinct \" \"select sum(a) + 200, 1 from t1 group by b \" ) ;\n check_stmt ( stmt ) ;\n mysql_stmt_close ( stmt ) ;\n stmt = mysql_simple_prepare ( mysql , \"select sum(a) + 200, ? from t1 \" \" union distinct \" \"select sum(a) + 200, 1 from t1 group by b \" ) ;\n check_stmt ( stmt ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"DROP TABLE t1\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 16364, "target": 0, "func": "static void cmyk2rgb ( fz_context * ctx , fz_color_converter * cc , float * dv , const float * sv ) {\n # ifdef SLOWCMYK cmyk_to_rgb ( ctx , NULL , sv , dv ) ;\n # else dv [ 0 ] = 1 - fz_min ( sv [ 0 ] + sv [ 3 ] , 1 ) ;\n dv [ 1 ] = 1 - fz_min ( sv [ 1 ] + sv [ 3 ] , 1 ) ;\n dv [ 2 ] = 1 - fz_min ( sv [ 2 ] + sv [ 3 ] , 1 ) ;\n # endif }"}
{"idx": 16365, "target": 0, "func": "static int cesu8_to_unicode ( uint32_t * pwc , const char * s , size_t n ) {\n uint32_t wc = 0 ;\n int cnt ;\n cnt = _utf8_to_unicode ( & wc , s , n ) ;\n if ( cnt == 3 && IS_HIGH_SURROGATE_LA ( wc ) ) {\n uint32_t wc2 = 0 ;\n if ( n - 3 < 3 ) {\n goto invalid_sequence ;\n }\n cnt = _utf8_to_unicode ( & wc2 , s + 3 , n - 3 ) ;\n if ( cnt != 3 || ! IS_LOW_SURROGATE_LA ( wc2 ) ) {\n goto invalid_sequence ;\n }\n wc = combine_surrogate_pair ( wc , wc2 ) ;\n cnt = 6 ;\n }\n else if ( cnt == 3 && IS_LOW_SURROGATE_LA ( wc ) ) {\n goto invalid_sequence ;\n }\n * pwc = wc ;\n return ( cnt ) ;\n invalid_sequence : * pwc = UNICODE_R_CHAR ;\n if ( cnt > 0 ) cnt *= - 1 ;\n return ( cnt ) ;\n }"}
{"idx": 16366, "target": 0, "func": "static int dca_exss_mask2count ( int mask ) {\n return av_popcount ( mask ) + av_popcount ( mask & ( DCA_EXSS_CENTER_LEFT_RIGHT | DCA_EXSS_FRONT_LEFT_RIGHT | DCA_EXSS_FRONT_HIGH_LEFT_RIGHT | DCA_EXSS_WIDE_LEFT_RIGHT | DCA_EXSS_SIDE_LEFT_RIGHT | DCA_EXSS_SIDE_HIGH_LEFT_RIGHT | DCA_EXSS_SIDE_REAR_LEFT_RIGHT | DCA_EXSS_REAR_LEFT_RIGHT | DCA_EXSS_REAR_HIGH_LEFT_RIGHT ) ) ;\n }"}
{"idx": 16367, "target": 0, "func": "static void free_deregistered_data ( gpointer data , gpointer user_data _U_ ) {\n g_free ( data ) ;\n }"}
{"idx": 16368, "target": 0, "func": "static int su_pam_conv ( int num_msg , const struct pam_message * * msg , struct pam_response * * resp , void * appdata_ptr ) {\n if ( suppress_pam_info && num_msg == 1 && msg && msg [ 0 ] -> msg_style == PAM_TEXT_INFO ) return PAM_SUCCESS ;\n # ifdef HAVE_SECURITY_PAM_MISC_H return misc_conv ( num_msg , msg , resp , appdata_ptr ) ;\n # elif defined ( HAVE_SECURITY_OPENPAM_H ) return openpam_ttyconv ( num_msg , msg , resp , appdata_ptr ) ;\n # endif }"}
{"idx": 16369, "target": 0, "func": "static int asf_write_stream_header ( AVFormatContext * s ) {\n ASFContext * asf = s -> priv_data ;\n asf -> is_streamed = 1 ;\n return asf_write_header ( s ) ;\n }"}
{"idx": 16370, "target": 0, "func": "void TSVConnInactivityTimeoutSet ( TSVConn connp , TSHRTime timeout ) {\n sdk_assert ( sdk_sanity_check_iocore_structure ( connp ) == TS_SUCCESS ) ;\n NetVConnection * vc = ( NetVConnection * ) connp ;\n vc -> set_inactivity_timeout ( timeout ) ;\n }"}
{"idx": 16371, "target": 0, "func": "static gboolean gsm_a_sacch_rr_stat_packet ( void * tapdata , packet_info * pinfo _U_ , epan_dissect_t * edt _U_ , const void * gatr_ptr ) {\n return gsm_a_stat_packet ( tapdata , gatr_ptr , GSM_A_PDU_TYPE_SACCH , 0 ) ;\n }"}
{"idx": 16372, "target": 0, "func": "static int get_stream_idx ( const unsigned * d ) {\n if ( d [ 0 ] >= '0' && d [ 0 ] <= '9' && d [ 1 ] >= '0' && d [ 1 ] <= '9' ) {\n return ( d [ 0 ] - '0' ) * 10 + ( d [ 1 ] - '0' ) ;\n }\n else {\n return 100 ;\n }\n }"}
{"idx": 16373, "target": 1, "func": "static void filter_block_plane_non420 ( VP9_COMMON * cm , struct macroblockd_plane * plane , MODE_INFO * * mi_8x8 , int mi_row , int mi_col ) {\n const int ss_x = plane -> subsampling_x ;\n const int ss_y = plane -> subsampling_y ;\n const int row_step = 1 << ss_x ;\n const int col_step = 1 << ss_y ;\n const int row_step_stride = cm -> mi_stride * row_step ;\n struct buf_2d * const dst = & plane -> dst ;\n uint8_t * const dst0 = dst -> buf ;\n unsigned int mask_16x16 [ MI_BLOCK_SIZE ] = {\n 0 }\n ;\n unsigned int mask_8x8 [ MI_BLOCK_SIZE ] = {\n 0 }\n ;\n unsigned int mask_4x4 [ MI_BLOCK_SIZE ] = {\n 0 }\n ;\n unsigned int mask_4x4_int [ MI_BLOCK_SIZE ] = {\n 0 }\n ;\n uint8_t lfl [ MI_BLOCK_SIZE * MI_BLOCK_SIZE ] ;\n int r , c ;\n for ( r = 0 ;\n r < MI_BLOCK_SIZE && mi_row + r < cm -> mi_rows ;\n r += row_step ) {\n unsigned int mask_16x16_c = 0 ;\n unsigned int mask_8x8_c = 0 ;\n unsigned int mask_4x4_c = 0 ;\n unsigned int border_mask ;\n for ( c = 0 ;\n c < MI_BLOCK_SIZE && mi_col + c < cm -> mi_cols ;\n c += col_step ) {\n const MODE_INFO * mi = mi_8x8 [ c ] ;\n const BLOCK_SIZE sb_type = mi [ 0 ] . mbmi . sb_type ;\n const int skip_this = mi [ 0 ] . mbmi . skip && is_inter_block ( & mi [ 0 ] . mbmi ) ;\n const int block_edge_left = ( num_4x4_blocks_wide_lookup [ sb_type ] > 1 ) ? ! ( c & ( num_8x8_blocks_wide_lookup [ sb_type ] - 1 ) ) : 1 ;\n const int skip_this_c = skip_this && ! block_edge_left ;\n const int block_edge_above = ( num_4x4_blocks_high_lookup [ sb_type ] > 1 ) ? ! ( r & ( num_8x8_blocks_high_lookup [ sb_type ] - 1 ) ) : 1 ;\n const int skip_this_r = skip_this && ! block_edge_above ;\n const TX_SIZE tx_size = ( plane -> plane_type == PLANE_TYPE_UV ) ? get_uv_tx_size ( & mi [ 0 ] . mbmi , plane ) : mi [ 0 ] . mbmi . tx_size ;\n const int skip_border_4x4_c = ss_x && mi_col + c == cm -> mi_cols - 1 ;\n const int skip_border_4x4_r = ss_y && mi_row + r == cm -> mi_rows - 1 ;\n if ( ! ( lfl [ ( r << 3 ) + ( c >> ss_x ) ] = get_filter_level ( & cm -> lf_info , & mi [ 0 ] . mbmi ) ) ) continue ;\n if ( tx_size == TX_32X32 ) {\n if ( ! skip_this_c && ( ( c >> ss_x ) & 3 ) == 0 ) {\n if ( ! skip_border_4x4_c ) mask_16x16_c |= 1 << ( c >> ss_x ) ;\n else mask_8x8_c |= 1 << ( c >> ss_x ) ;\n }\n if ( ! skip_this_r && ( ( r >> ss_y ) & 3 ) == 0 ) {\n if ( ! skip_border_4x4_r ) mask_16x16 [ r ] |= 1 << ( c >> ss_x ) ;\n else mask_8x8 [ r ] |= 1 << ( c >> ss_x ) ;\n }\n }\n else if ( tx_size == TX_16X16 ) {\n if ( ! skip_this_c && ( ( c >> ss_x ) & 1 ) == 0 ) {\n if ( ! skip_border_4x4_c ) mask_16x16_c |= 1 << ( c >> ss_x ) ;\n else mask_8x8_c |= 1 << ( c >> ss_x ) ;\n }\n if ( ! skip_this_r && ( ( r >> ss_y ) & 1 ) == 0 ) {\n if ( ! skip_border_4x4_r ) mask_16x16 [ r ] |= 1 << ( c >> ss_x ) ;\n else mask_8x8 [ r ] |= 1 << ( c >> ss_x ) ;\n }\n }\n else {\n if ( ! skip_this_c ) {\n if ( tx_size == TX_8X8 || ( ( c >> ss_x ) & 3 ) == 0 ) mask_8x8_c |= 1 << ( c >> ss_x ) ;\n else mask_4x4_c |= 1 << ( c >> ss_x ) ;\n }\n if ( ! skip_this_r ) {\n if ( tx_size == TX_8X8 || ( ( r >> ss_y ) & 3 ) == 0 ) mask_8x8 [ r ] |= 1 << ( c >> ss_x ) ;\n else mask_4x4 [ r ] |= 1 << ( c >> ss_x ) ;\n }\n if ( ! skip_this && tx_size < TX_8X8 && ! skip_border_4x4_c ) mask_4x4_int [ r ] |= 1 << ( c >> ss_x ) ;\n }\n }\n border_mask = ~ ( mi_col == 0 ) ;\n filter_selectively_vert ( dst -> buf , dst -> stride , mask_16x16_c & border_mask , mask_8x8_c & border_mask , mask_4x4_c & border_mask , mask_4x4_int [ r ] , & cm -> lf_info , & lfl [ r << 3 ] ) ;\n dst -> buf += 8 * dst -> stride ;\n mi_8x8 += row_step_stride ;\n }\n dst -> buf = dst0 ;\n for ( r = 0 ;\n r < MI_BLOCK_SIZE && mi_row + r < cm -> mi_rows ;\n r += row_step ) {\n const int skip_border_4x4_r = ss_y && mi_row + r == cm -> mi_rows - 1 ;\n const unsigned int mask_4x4_int_r = skip_border_4x4_r ? 0 : mask_4x4_int [ r ] ;\n unsigned int mask_16x16_r ;\n unsigned int mask_8x8_r ;\n unsigned int mask_4x4_r ;\n if ( mi_row + r == 0 ) {\n mask_16x16_r = 0 ;\n mask_8x8_r = 0 ;\n mask_4x4_r = 0 ;\n }\n else {\n mask_16x16_r = mask_16x16 [ r ] ;\n mask_8x8_r = mask_8x8 [ r ] ;\n mask_4x4_r = mask_4x4 [ r ] ;\n }\n filter_selectively_horiz ( dst -> buf , dst -> stride , mask_16x16_r , mask_8x8_r , mask_4x4_r , mask_4x4_int_r , & cm -> lf_info , & lfl [ r << 3 ] ) ;\n dst -> buf += 8 * dst -> stride ;\n }\n }"}
{"idx": 16374, "target": 0, "func": "void * main_bufalloc ( size_t size ) {\n # if XD3_WIN32 return VirtualAlloc ( NULL , size , MEM_COMMIT | MEM_RESERVE , PAGE_READWRITE ) ;\n # else return main_malloc1 ( size ) ;\n # endif }"}
{"idx": 16375, "target": 0, "func": "int ssl_verify_alarm_type ( long type ) {\n int al ;\n switch ( type ) {\n case X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT : case X509_V_ERR_UNABLE_TO_GET_CRL : case X509_V_ERR_UNABLE_TO_GET_CRL_ISSUER : al = SSL_AD_UNKNOWN_CA ;\n break ;\n case X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE : case X509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE : case X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY : case X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD : case X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD : case X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD : case X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD : case X509_V_ERR_CERT_NOT_YET_VALID : case X509_V_ERR_CRL_NOT_YET_VALID : case X509_V_ERR_CERT_UNTRUSTED : case X509_V_ERR_CERT_REJECTED : al = SSL_AD_BAD_CERTIFICATE ;\n break ;\n case X509_V_ERR_CERT_SIGNATURE_FAILURE : case X509_V_ERR_CRL_SIGNATURE_FAILURE : al = SSL_AD_DECRYPT_ERROR ;\n break ;\n case X509_V_ERR_CERT_HAS_EXPIRED : case X509_V_ERR_CRL_HAS_EXPIRED : al = SSL_AD_CERTIFICATE_EXPIRED ;\n break ;\n case X509_V_ERR_CERT_REVOKED : al = SSL_AD_CERTIFICATE_REVOKED ;\n break ;\n case X509_V_ERR_OUT_OF_MEM : al = SSL_AD_INTERNAL_ERROR ;\n break ;\n case X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT : case X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN : case X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY : case X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE : case X509_V_ERR_CERT_CHAIN_TOO_LONG : case X509_V_ERR_PATH_LENGTH_EXCEEDED : case X509_V_ERR_INVALID_CA : al = SSL_AD_UNKNOWN_CA ;\n break ;\n case X509_V_ERR_APPLICATION_VERIFICATION : al = SSL_AD_HANDSHAKE_FAILURE ;\n break ;\n case X509_V_ERR_INVALID_PURPOSE : al = SSL_AD_UNSUPPORTED_CERTIFICATE ;\n break ;\n default : al = SSL_AD_CERTIFICATE_UNKNOWN ;\n break ;\n }\n return ( al ) ;\n }"}
{"idx": 16376, "target": 0, "func": "void setup_outgoing_connection ( outgoing_t * outgoing ) {\n connection_t * c ;\n node_t * n ;\n outgoing -> event = NULL ;\n n = lookup_node ( outgoing -> name ) ;\n if ( n ) if ( n -> connection ) {\n ifdebug ( CONNECTIONS ) logger ( LOG_INFO , \"Already connected to %s\" , outgoing -> name ) ;\n n -> connection -> outgoing = outgoing ;\n return ;\n }\n c = new_connection ( ) ;\n c -> name = xstrdup ( outgoing -> name ) ;\n c -> outcipher = myself -> connection -> outcipher ;\n c -> outdigest = myself -> connection -> outdigest ;\n c -> outmaclength = myself -> connection -> outmaclength ;\n c -> outcompression = myself -> connection -> outcompression ;\n init_configuration ( & c -> config_tree ) ;\n if ( ! read_connection_config ( c ) ) {\n free_connection ( c ) ;\n outgoing -> timeout = maxtimeout ;\n retry_outgoing ( outgoing ) ;\n return ;\n }\n outgoing -> cfg = lookup_config ( c -> config_tree , \"Address\" ) ;\n if ( ! outgoing -> cfg ) {\n logger ( LOG_ERR , \"No address specified for %s\" , c -> name ) ;\n free_connection ( c ) ;\n outgoing -> timeout = maxtimeout ;\n retry_outgoing ( outgoing ) ;\n return ;\n }\n c -> outgoing = outgoing ;\n c -> last_ping_time = now ;\n connection_add ( c ) ;\n do_outgoing_connection ( c ) ;\n }"}
{"idx": 16377, "target": 0, "func": "static void tokenize ( const char * line , char * * tokens , int * ntok ) {\n register const char * cp ;\n register char * sp ;\n static char tspace [ MAXLINE ] ;\n sp = tspace ;\n cp = line ;\n for ( * ntok = 0 ;\n * ntok < MAXTOKENS ;\n ( * ntok ) ++ ) {\n tokens [ * ntok ] = sp ;\n while ( ISSPACE ( * cp ) ) cp ++ ;\n if ( ISEOL ( * cp ) ) break ;\n if ( * ntok == 1 && tokens [ 0 ] [ 0 ] == ':' ) {\n do {\n if ( sp - tspace >= MAXLINE ) goto toobig ;\n * sp ++ = * cp ++ ;\n }\n while ( ! ISEOL ( * cp ) ) ;\n }\n else if ( * cp == '\\\"' ) {\n ++ cp ;\n do {\n if ( sp - tspace >= MAXLINE ) goto toobig ;\n * sp ++ = * cp ++ ;\n }\n while ( ( * cp != '\\\"' ) && ! ISEOL ( * cp ) ) ;\n }\n else {\n do {\n if ( sp - tspace >= MAXLINE ) goto toobig ;\n * sp ++ = * cp ++ ;\n }\n while ( ( * cp != '\\\"' ) && ! ISSPACE ( * cp ) && ! ISEOL ( * cp ) ) ;\n }\n if ( sp - tspace >= MAXLINE ) goto toobig ;\n * sp ++ = '\\0' ;\n }\n return ;\n toobig : * ntok = 0 ;\n fprintf ( stderr , \"***Line `%s' is too big\\n\" , line ) ;\n return ;\n }"}
{"idx": 16378, "target": 0, "func": "static void disable_query_logs ( ) {\n int rc ;\n rc = mysql_query ( mysql , \"set @@global.general_log=off\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"set @@global.slow_query_log=off\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 16379, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n LOCOContext * const l = avctx -> priv_data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n AVFrame * const p = & l -> pic ;\n int decoded , ret ;\n if ( p -> data [ 0 ] ) avctx -> release_buffer ( avctx , p ) ;\n p -> reference = 0 ;\n if ( ( ret = ff_get_buffer ( avctx , p ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n p -> key_frame = 1 ;\n switch ( l -> mode ) {\n case LOCO_CYUY2 : case LOCO_YUY2 : case LOCO_UYVY : decoded = loco_decode_plane ( l , p -> data [ 0 ] , avctx -> width , avctx -> height , p -> linesize [ 0 ] , buf , buf_size , 1 ) ;\n if ( decoded >= buf_size ) goto buf_too_small ;\n buf += decoded ;\n buf_size -= decoded ;\n decoded = loco_decode_plane ( l , p -> data [ 1 ] , avctx -> width / 2 , avctx -> height , p -> linesize [ 1 ] , buf , buf_size , 1 ) ;\n if ( decoded >= buf_size ) goto buf_too_small ;\n buf += decoded ;\n buf_size -= decoded ;\n decoded = loco_decode_plane ( l , p -> data [ 2 ] , avctx -> width / 2 , avctx -> height , p -> linesize [ 2 ] , buf , buf_size , 1 ) ;\n break ;\n case LOCO_CYV12 : case LOCO_YV12 : decoded = loco_decode_plane ( l , p -> data [ 0 ] , avctx -> width , avctx -> height , p -> linesize [ 0 ] , buf , buf_size , 1 ) ;\n if ( decoded >= buf_size ) goto buf_too_small ;\n buf += decoded ;\n buf_size -= decoded ;\n decoded = loco_decode_plane ( l , p -> data [ 2 ] , avctx -> width / 2 , avctx -> height / 2 , p -> linesize [ 2 ] , buf , buf_size , 1 ) ;\n if ( decoded >= buf_size ) goto buf_too_small ;\n buf += decoded ;\n buf_size -= decoded ;\n decoded = loco_decode_plane ( l , p -> data [ 1 ] , avctx -> width / 2 , avctx -> height / 2 , p -> linesize [ 1 ] , buf , buf_size , 1 ) ;\n break ;\n case LOCO_CRGB : case LOCO_RGB : decoded = loco_decode_plane ( l , p -> data [ 0 ] + p -> linesize [ 0 ] * ( avctx -> height - 1 ) , avctx -> width , avctx -> height , - p -> linesize [ 0 ] , buf , buf_size , 3 ) ;\n if ( decoded >= buf_size ) goto buf_too_small ;\n buf += decoded ;\n buf_size -= decoded ;\n decoded = loco_decode_plane ( l , p -> data [ 0 ] + p -> linesize [ 0 ] * ( avctx -> height - 1 ) + 1 , avctx -> width , avctx -> height , - p -> linesize [ 0 ] , buf , buf_size , 3 ) ;\n if ( decoded >= buf_size ) goto buf_too_small ;\n buf += decoded ;\n buf_size -= decoded ;\n decoded = loco_decode_plane ( l , p -> data [ 0 ] + p -> linesize [ 0 ] * ( avctx -> height - 1 ) + 2 , avctx -> width , avctx -> height , - p -> linesize [ 0 ] , buf , buf_size , 3 ) ;\n break ;\n case LOCO_RGBA : decoded = loco_decode_plane ( l , p -> data [ 0 ] , avctx -> width , avctx -> height , p -> linesize [ 0 ] , buf , buf_size , 4 ) ;\n if ( decoded >= buf_size ) goto buf_too_small ;\n buf += decoded ;\n buf_size -= decoded ;\n decoded = loco_decode_plane ( l , p -> data [ 0 ] + 1 , avctx -> width , avctx -> height , p -> linesize [ 0 ] , buf , buf_size , 4 ) ;\n if ( decoded >= buf_size ) goto buf_too_small ;\n buf += decoded ;\n buf_size -= decoded ;\n decoded = loco_decode_plane ( l , p -> data [ 0 ] + 2 , avctx -> width , avctx -> height , p -> linesize [ 0 ] , buf , buf_size , 4 ) ;\n if ( decoded >= buf_size ) goto buf_too_small ;\n buf += decoded ;\n buf_size -= decoded ;\n decoded = loco_decode_plane ( l , p -> data [ 0 ] + 3 , avctx -> width , avctx -> height , p -> linesize [ 0 ] , buf , buf_size , 4 ) ;\n break ;\n }\n * got_frame = 1 ;\n * ( AVFrame * ) data = l -> pic ;\n return buf_size ;\n buf_too_small : av_log ( avctx , AV_LOG_ERROR , \"Input data too small.\\n\" ) ;\n return AVERROR ( EINVAL ) ;\n }"}
{"idx": 16380, "target": 0, "func": "static int get_filter_offset ( const int16_t * f , const InterpKernel * base ) {\n return ( int ) ( ( const InterpKernel * ) ( intptr_t ) f - base ) ;\n }"}
{"idx": 16381, "target": 0, "func": "BN_ULONG bn_sub_words ( BN_ULONG * r , const BN_ULONG * a , const BN_ULONG * b , int n ) {\n BN_ULONG t1 , t2 ;\n int c = 0 ;\n assert ( n >= 0 ) ;\n if ( n <= 0 ) return ( ( BN_ULONG ) 0 ) ;\n # ifndef OPENSSL_SMALL_FOOTPRINT while ( n & ~ 3 ) {\n t1 = a [ 0 ] ;\n t2 = b [ 0 ] ;\n r [ 0 ] = ( t1 - t2 - c ) & BN_MASK2 ;\n if ( t1 != t2 ) c = ( t1 < t2 ) ;\n t1 = a [ 1 ] ;\n t2 = b [ 1 ] ;\n r [ 1 ] = ( t1 - t2 - c ) & BN_MASK2 ;\n if ( t1 != t2 ) c = ( t1 < t2 ) ;\n t1 = a [ 2 ] ;\n t2 = b [ 2 ] ;\n r [ 2 ] = ( t1 - t2 - c ) & BN_MASK2 ;\n if ( t1 != t2 ) c = ( t1 < t2 ) ;\n t1 = a [ 3 ] ;\n t2 = b [ 3 ] ;\n r [ 3 ] = ( t1 - t2 - c ) & BN_MASK2 ;\n if ( t1 != t2 ) c = ( t1 < t2 ) ;\n a += 4 ;\n b += 4 ;\n r += 4 ;\n n -= 4 ;\n }\n # endif while ( n ) {\n t1 = a [ 0 ] ;\n t2 = b [ 0 ] ;\n r [ 0 ] = ( t1 - t2 - c ) & BN_MASK2 ;\n if ( t1 != t2 ) c = ( t1 < t2 ) ;\n a ++ ;\n b ++ ;\n r ++ ;\n n -- ;\n }\n return ( c ) ;\n }"}
{"idx": 16382, "target": 0, "func": "static inline void pcnet_tmd_store ( PCNetState * s , const struct pcnet_TMD * tmd , hwaddr addr ) {\n if ( ! BCR_SSIZE32 ( s ) ) {\n struct {\n uint32_t tbadr ;\n int16_t length ;\n int16_t status ;\n }\n xda ;\n xda . tbadr = cpu_to_le32 ( ( tmd -> tbadr & 0xffffff ) | ( ( tmd -> status & 0xff00 ) << 16 ) ) ;\n xda . length = cpu_to_le16 ( tmd -> length ) ;\n xda . status = cpu_to_le16 ( tmd -> misc >> 16 ) ;\n s -> phys_mem_write ( s -> dma_opaque , addr , ( void * ) & xda , sizeof ( xda ) , 0 ) ;\n }\n else {\n struct {\n uint32_t tbadr ;\n int16_t length ;\n int16_t status ;\n uint32_t misc ;\n uint32_t res ;\n }\n xda ;\n xda . tbadr = cpu_to_le32 ( tmd -> tbadr ) ;\n xda . length = cpu_to_le16 ( tmd -> length ) ;\n xda . status = cpu_to_le16 ( tmd -> status ) ;\n xda . misc = cpu_to_le32 ( tmd -> misc ) ;\n xda . res = cpu_to_le32 ( tmd -> res ) ;\n if ( BCR_SWSTYLE ( s ) == 3 ) {\n uint32_t tmp = xda . tbadr ;\n xda . tbadr = xda . misc ;\n xda . misc = tmp ;\n }\n s -> phys_mem_write ( s -> dma_opaque , addr , ( void * ) & xda , sizeof ( xda ) , 0 ) ;\n }\n }"}
{"idx": 16383, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n VmncContext * const c = avctx -> priv_data ;\n uint8_t * outptr ;\n const uint8_t * src = buf ;\n int dx , dy , w , h , depth , enc , chunks , res , size_left , ret ;\n if ( ( ret = ff_reget_buffer ( avctx , & c -> pic ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n c -> pic . key_frame = 0 ;\n c -> pic . pict_type = AV_PICTURE_TYPE_P ;\n if ( c -> screendta ) {\n int i ;\n w = c -> cur_w ;\n if ( c -> width < c -> cur_x + w ) w = c -> width - c -> cur_x ;\n h = c -> cur_h ;\n if ( c -> height < c -> cur_y + h ) h = c -> height - c -> cur_y ;\n dx = c -> cur_x ;\n if ( dx < 0 ) {\n w += dx ;\n dx = 0 ;\n }\n dy = c -> cur_y ;\n if ( dy < 0 ) {\n h += dy ;\n dy = 0 ;\n }\n if ( ( w > 0 ) && ( h > 0 ) ) {\n outptr = c -> pic . data [ 0 ] + dx * c -> bpp2 + dy * c -> pic . linesize [ 0 ] ;\n for ( i = 0 ;\n i < h ;\n i ++ ) {\n memcpy ( outptr , c -> screendta + i * c -> cur_w * c -> bpp2 , w * c -> bpp2 ) ;\n outptr += c -> pic . linesize [ 0 ] ;\n }\n }\n }\n src += 2 ;\n chunks = AV_RB16 ( src ) ;\n src += 2 ;\n while ( chunks -- ) {\n dx = AV_RB16 ( src ) ;\n src += 2 ;\n dy = AV_RB16 ( src ) ;\n src += 2 ;\n w = AV_RB16 ( src ) ;\n src += 2 ;\n h = AV_RB16 ( src ) ;\n src += 2 ;\n enc = AV_RB32 ( src ) ;\n src += 4 ;\n outptr = c -> pic . data [ 0 ] + dx * c -> bpp2 + dy * c -> pic . linesize [ 0 ] ;\n size_left = buf_size - ( src - buf ) ;\n switch ( enc ) {\n case MAGIC_WMVd : if ( size_left < 2 + w * h * c -> bpp2 * 2 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Premature end of data! (need %i got %i)\\n\" , 2 + w * h * c -> bpp2 * 2 , size_left ) ;\n return - 1 ;\n }\n src += 2 ;\n c -> cur_w = w ;\n c -> cur_h = h ;\n c -> cur_hx = dx ;\n c -> cur_hy = dy ;\n if ( ( c -> cur_hx > c -> cur_w ) || ( c -> cur_hy > c -> cur_h ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Cursor hot spot is not in image: %ix%i of %ix%i cursor size\\n\" , c -> cur_hx , c -> cur_hy , c -> cur_w , c -> cur_h ) ;\n c -> cur_hx = c -> cur_hy = 0 ;\n }\n c -> curbits = av_realloc ( c -> curbits , c -> cur_w * c -> cur_h * c -> bpp2 ) ;\n c -> curmask = av_realloc ( c -> curmask , c -> cur_w * c -> cur_h * c -> bpp2 ) ;\n c -> screendta = av_realloc ( c -> screendta , c -> cur_w * c -> cur_h * c -> bpp2 ) ;\n load_cursor ( c , src ) ;\n src += w * h * c -> bpp2 * 2 ;\n break ;\n case MAGIC_WMVe : src += 2 ;\n break ;\n case MAGIC_WMVf : c -> cur_x = dx - c -> cur_hx ;\n c -> cur_y = dy - c -> cur_hy ;\n break ;\n case MAGIC_WMVg : src += 10 ;\n break ;\n case MAGIC_WMVh : src += 4 ;\n break ;\n case MAGIC_WMVi : c -> pic . key_frame = 1 ;\n c -> pic . pict_type = AV_PICTURE_TYPE_I ;\n depth = * src ++ ;\n if ( depth != c -> bpp ) {\n av_log ( avctx , AV_LOG_INFO , \"Depth mismatch. Container %i bpp, Frame data: %i bpp\\n\" , c -> bpp , depth ) ;\n }\n src ++ ;\n c -> bigendian = * src ++ ;\n if ( c -> bigendian & ( ~ 1 ) ) {\n av_log ( avctx , AV_LOG_INFO , \"Invalid header: bigendian flag = %i\\n\" , c -> bigendian ) ;\n return - 1 ;\n }\n src += 13 ;\n break ;\n case MAGIC_WMVj : src += 2 ;\n break ;\n case 0x00000000 : if ( ( dx + w > c -> width ) || ( dy + h > c -> height ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Incorrect frame size: %ix%i+%ix%i of %ix%i\\n\" , w , h , dx , dy , c -> width , c -> height ) ;\n return - 1 ;\n }\n if ( size_left < w * h * c -> bpp2 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Premature end of data! (need %i got %i)\\n\" , w * h * c -> bpp2 , size_left ) ;\n return - 1 ;\n }\n paint_raw ( outptr , w , h , src , c -> bpp2 , c -> bigendian , c -> pic . linesize [ 0 ] ) ;\n src += w * h * c -> bpp2 ;\n break ;\n case 0x00000005 : if ( ( dx + w > c -> width ) || ( dy + h > c -> height ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Incorrect frame size: %ix%i+%ix%i of %ix%i\\n\" , w , h , dx , dy , c -> width , c -> height ) ;\n return - 1 ;\n }\n res = decode_hextile ( c , outptr , src , size_left , w , h , c -> pic . linesize [ 0 ] ) ;\n if ( res < 0 ) return - 1 ;\n src += res ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"Unsupported block type 0x%08X\\n\" , enc ) ;\n chunks = 0 ;\n }\n }\n if ( c -> screendta ) {\n int i ;\n w = c -> cur_w ;\n if ( c -> width < c -> cur_x + w ) w = c -> width - c -> cur_x ;\n h = c -> cur_h ;\n if ( c -> height < c -> cur_y + h ) h = c -> height - c -> cur_y ;\n dx = c -> cur_x ;\n if ( dx < 0 ) {\n w += dx ;\n dx = 0 ;\n }\n dy = c -> cur_y ;\n if ( dy < 0 ) {\n h += dy ;\n dy = 0 ;\n }\n if ( ( w > 0 ) && ( h > 0 ) ) {\n outptr = c -> pic . data [ 0 ] + dx * c -> bpp2 + dy * c -> pic . linesize [ 0 ] ;\n for ( i = 0 ;\n i < h ;\n i ++ ) {\n memcpy ( c -> screendta + i * c -> cur_w * c -> bpp2 , outptr , w * c -> bpp2 ) ;\n outptr += c -> pic . linesize [ 0 ] ;\n }\n outptr = c -> pic . data [ 0 ] ;\n put_cursor ( outptr , c -> pic . linesize [ 0 ] , c , c -> cur_x , c -> cur_y ) ;\n }\n }\n * got_frame = 1 ;\n if ( ( ret = av_frame_ref ( data , & c -> pic ) ) < 0 ) return ret ;\n return buf_size ;\n }"}
{"idx": 16384, "target": 0, "func": "err_status_t srtp_stream_init_keys ( srtp_stream_ctx_t * srtp , const void * key ) {\n err_status_t stat ;\n srtp_kdf_t kdf ;\n uint8_t tmp_key [ MAX_SRTP_KEY_LEN ] ;\n int kdf_keylen = 30 , rtp_keylen , rtcp_keylen ;\n int rtp_base_key_len , rtp_salt_len ;\n int rtcp_base_key_len , rtcp_salt_len ;\n rtp_keylen = cipher_get_key_length ( srtp -> rtp_cipher ) ;\n rtcp_keylen = cipher_get_key_length ( srtp -> rtcp_cipher ) ;\n rtp_base_key_len = base_key_length ( srtp -> rtp_cipher -> type , rtp_keylen ) ;\n rtp_salt_len = rtp_keylen - rtp_base_key_len ;\n if ( rtp_keylen > kdf_keylen ) {\n kdf_keylen = 46 ;\n }\n if ( rtcp_keylen > kdf_keylen ) {\n kdf_keylen = 46 ;\n }\n debug_print ( mod_srtp , \"srtp key len: %d\" , rtp_keylen ) ;\n debug_print ( mod_srtp , \"srtcp key len: %d\" , rtcp_keylen ) ;\n debug_print ( mod_srtp , \"base key len: %d\" , rtp_base_key_len ) ;\n debug_print ( mod_srtp , \"kdf key len: %d\" , kdf_keylen ) ;\n debug_print ( mod_srtp , \"rtp salt len: %d\" , rtp_salt_len ) ;\n memset ( tmp_key , 0x0 , MAX_SRTP_KEY_LEN ) ;\n memcpy ( tmp_key , key , ( rtp_base_key_len + rtp_salt_len ) ) ;\n stat = srtp_kdf_init ( & kdf , AES_ICM , ( const uint8_t * ) tmp_key , kdf_keylen ) ;\n if ( stat ) {\n return err_status_init_fail ;\n }\n stat = srtp_kdf_generate ( & kdf , label_rtp_encryption , tmp_key , rtp_base_key_len ) ;\n if ( stat ) {\n octet_string_set_to_zero ( tmp_key , MAX_SRTP_KEY_LEN ) ;\n return err_status_init_fail ;\n }\n debug_print ( mod_srtp , \"cipher key: %s\" , octet_string_hex_string ( tmp_key , rtp_base_key_len ) ) ;\n if ( rtp_salt_len > 0 ) {\n debug_print ( mod_srtp , \"found rtp_salt_len > 0, generating salt\" , NULL ) ;\n stat = srtp_kdf_generate ( & kdf , label_rtp_salt , tmp_key + rtp_base_key_len , rtp_salt_len ) ;\n if ( stat ) {\n octet_string_set_to_zero ( tmp_key , MAX_SRTP_KEY_LEN ) ;\n return err_status_init_fail ;\n }\n memcpy ( srtp -> salt , tmp_key + rtp_base_key_len , SRTP_AEAD_SALT_LEN ) ;\n }\n if ( rtp_salt_len > 0 ) {\n debug_print ( mod_srtp , \"cipher salt: %s\" , octet_string_hex_string ( tmp_key + rtp_base_key_len , rtp_salt_len ) ) ;\n }\n stat = cipher_init ( srtp -> rtp_cipher , tmp_key ) ;\n if ( stat ) {\n octet_string_set_to_zero ( tmp_key , MAX_SRTP_KEY_LEN ) ;\n return err_status_init_fail ;\n }\n stat = srtp_kdf_generate ( & kdf , label_rtp_msg_auth , tmp_key , auth_get_key_length ( srtp -> rtp_auth ) ) ;\n if ( stat ) {\n octet_string_set_to_zero ( tmp_key , MAX_SRTP_KEY_LEN ) ;\n return err_status_init_fail ;\n }\n debug_print ( mod_srtp , \"auth key: %s\" , octet_string_hex_string ( tmp_key , auth_get_key_length ( srtp -> rtp_auth ) ) ) ;\n stat = auth_init ( srtp -> rtp_auth , tmp_key ) ;\n if ( stat ) {\n octet_string_set_to_zero ( tmp_key , MAX_SRTP_KEY_LEN ) ;\n return err_status_init_fail ;\n }\n rtcp_base_key_len = base_key_length ( srtp -> rtcp_cipher -> type , rtcp_keylen ) ;\n rtcp_salt_len = rtcp_keylen - rtcp_base_key_len ;\n debug_print ( mod_srtp , \"rtcp salt len: %d\" , rtcp_salt_len ) ;\n stat = srtp_kdf_generate ( & kdf , label_rtcp_encryption , tmp_key , rtcp_base_key_len ) ;\n if ( stat ) {\n octet_string_set_to_zero ( tmp_key , MAX_SRTP_KEY_LEN ) ;\n return err_status_init_fail ;\n }\n if ( rtcp_salt_len > 0 ) {\n debug_print ( mod_srtp , \"found rtcp_salt_len > 0, generating rtcp salt\" , NULL ) ;\n stat = srtp_kdf_generate ( & kdf , label_rtcp_salt , tmp_key + rtcp_base_key_len , rtcp_salt_len ) ;\n if ( stat ) {\n octet_string_set_to_zero ( tmp_key , MAX_SRTP_KEY_LEN ) ;\n return err_status_init_fail ;\n }\n memcpy ( srtp -> c_salt , tmp_key + rtcp_base_key_len , SRTP_AEAD_SALT_LEN ) ;\n }\n debug_print ( mod_srtp , \"rtcp cipher key: %s\" , octet_string_hex_string ( tmp_key , rtcp_base_key_len ) ) ;\n if ( rtcp_salt_len > 0 ) {\n debug_print ( mod_srtp , \"rtcp cipher salt: %s\" , octet_string_hex_string ( tmp_key + rtcp_base_key_len , rtcp_salt_len ) ) ;\n }\n stat = cipher_init ( srtp -> rtcp_cipher , tmp_key ) ;\n if ( stat ) {\n octet_string_set_to_zero ( tmp_key , MAX_SRTP_KEY_LEN ) ;\n return err_status_init_fail ;\n }\n stat = srtp_kdf_generate ( & kdf , label_rtcp_msg_auth , tmp_key , auth_get_key_length ( srtp -> rtcp_auth ) ) ;\n if ( stat ) {\n octet_string_set_to_zero ( tmp_key , MAX_SRTP_KEY_LEN ) ;\n return err_status_init_fail ;\n }\n debug_print ( mod_srtp , \"rtcp auth key: %s\" , octet_string_hex_string ( tmp_key , auth_get_key_length ( srtp -> rtcp_auth ) ) ) ;\n stat = auth_init ( srtp -> rtcp_auth , tmp_key ) ;\n if ( stat ) {\n octet_string_set_to_zero ( tmp_key , MAX_SRTP_KEY_LEN ) ;\n return err_status_init_fail ;\n }\n stat = srtp_kdf_clear ( & kdf ) ;\n octet_string_set_to_zero ( tmp_key , MAX_SRTP_KEY_LEN ) ;\n if ( stat ) return err_status_init_fail ;\n return err_status_ok ;\n }"}
{"idx": 16385, "target": 0, "func": "TEST_F ( SSLErrorAssistantTest , DynamicInterstitialListOrganizationMismatch ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n EXPECT_EQ ( 1u , ssl_info ( ) . public_key_hashes . size ( ) ) ;\n auto config_proto = std : : make_unique < chrome_browser_ssl : : SSLErrorAssistantConfig > ( ) ;\n config_proto -> set_version_id ( kLargeVersionId ) ;\n chrome_browser_ssl : : DynamicInterstitial * filter = config_proto -> add_dynamic_interstitial ( ) ;\n filter -> set_interstitial_type ( chrome_browser_ssl : : DynamicInterstitial : : INTERSTITIAL_PAGE_SSL ) ;\n filter -> set_cert_error ( chrome_browser_ssl : : DynamicInterstitial : : UNKNOWN_CERT_ERROR ) ;\n filter -> add_sha256_hash ( \"sha256uthatch\" ) ;\n filter -> add_sha256_hash ( ssl_info ( ) . public_key_hashes [ 0 ] . ToString ( ) ) ;\n filter -> add_sha256_hash ( \"sha256/treecreeper\" ) ;\n filter -> set_issuer_common_name_regex ( issuer_common_name ( ) ) ;\n filter -> set_issuer_organization_regex ( \"beeeater\" ) ;\n filter -> set_mitm_software_name ( \"UwS\" ) ;\n error_assistant ( ) -> SetErrorAssistantProto ( std : : move ( config_proto ) ) ;\n EXPECT_FALSE ( error_assistant ( ) -> MatchDynamicInterstitial ( ssl_info ( ) ) ) ;\n }"}
{"idx": 16386, "target": 0, "func": "TEST_F ( PromoResourceServiceTest , PromoServerURLTest ) {\n GURL promo_server_url = NotificationPromo : : PromoServerURL ( ) ;\n EXPECT_FALSE ( promo_server_url . is_empty ( ) ) ;\n EXPECT_TRUE ( promo_server_url . is_valid ( ) ) ;\n EXPECT_TRUE ( promo_server_url . SchemeIs ( url : : kHttpsScheme ) ) ;\n }"}
{"idx": 16387, "target": 0, "func": "static void config_request_output ( const char * key , const char * value , enum config_key_type type ATTR_UNUSED , void * context ) {\n struct ostream * output = context ;\n const char * p ;\n o_stream_nsend_str ( output , key ) ;\n o_stream_nsend_str ( output , \"=\" ) ;\n while ( ( p = strchr ( value , '\\n' ) ) != NULL ) {\n o_stream_nsend ( output , value , p - value ) ;\n o_stream_nsend ( output , SETTING_STREAM_LF_CHAR , 1 ) ;\n value = p + 1 ;\n }\n o_stream_nsend_str ( output , value ) ;\n o_stream_nsend_str ( output , \"\\n\" ) ;\n }"}
{"idx": 16388, "target": 0, "func": "static int dissect_h245_INTEGER_0_1023 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 1023U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 16389, "target": 0, "func": "static guint16 de_time_zone_time ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint8 oct ;\n guint32 curr_offset ;\n char sign ;\n nstime_t tv ;\n struct tm tm ;\n curr_offset = offset ;\n tm . tm_wday = 0 ;\n tm . tm_yday = 0 ;\n tm . tm_isdst = - 1 ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n tm . tm_year = ( oct & 0x0f ) * 10 + ( ( oct & 0xf0 ) >> 4 ) + 100 ;\n oct = tvb_get_guint8 ( tvb , curr_offset + 1 ) ;\n tm . tm_mon = ( oct & 0x0f ) * 10 + ( ( oct & 0xf0 ) >> 4 ) - 1 ;\n oct = tvb_get_guint8 ( tvb , curr_offset + 2 ) ;\n tm . tm_mday = ( oct & 0x0f ) * 10 + ( ( oct & 0xf0 ) >> 4 ) ;\n oct = tvb_get_guint8 ( tvb , curr_offset + 3 ) ;\n tm . tm_hour = ( oct & 0x0f ) * 10 + ( ( oct & 0xf0 ) >> 4 ) ;\n oct = tvb_get_guint8 ( tvb , curr_offset + 4 ) ;\n tm . tm_min = ( oct & 0x0f ) * 10 + ( ( oct & 0xf0 ) >> 4 ) ;\n oct = tvb_get_guint8 ( tvb , curr_offset + 5 ) ;\n tm . tm_sec = ( oct & 0x0f ) * 10 + ( ( oct & 0xf0 ) >> 4 ) ;\n tv . secs = mktime ( & tm ) ;\n tv . nsecs = 0 ;\n proto_tree_add_time_format_value ( tree , hf_gsm_a_dtap_time_zone_time , tvb , curr_offset , 6 , & tv , \"%s\" , abs_time_to_str ( wmem_packet_scope ( ) , & tv , ABSOLUTE_TIME_LOCAL , FALSE ) ) ;\n curr_offset += 6 ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n sign = ( oct & 0x08 ) ? '-' : '+' ;\n oct = ( oct >> 4 ) + ( oct & 0x07 ) * 10 ;\n proto_tree_add_uint_format_value ( tree , hf_gsm_a_dtap_timezone , tvb , curr_offset , 1 , oct , \"GMT %c %d hours %d minutes\" , sign , oct / 4 , oct % 4 * 15 ) ;\n curr_offset ++ ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 16390, "target": 0, "func": "static void compressed_sl_print ( netdissect_options * ndo , const u_char * chdr , const struct ip * ip , u_int length , int dir ) {\n register const u_char * cp = chdr ;\n register u_int flags , hlen ;\n flags = * cp ++ ;\n if ( flags & NEW_C ) {\n lastconn = * cp ++ ;\n ND_PRINT ( ( ndo , \"ctcp %d\" , lastconn ) ) ;\n }\n else ND_PRINT ( ( ndo , \"ctcp *\" ) ) ;\n cp += 2 ;\n switch ( flags & SPECIALS_MASK ) {\n case SPECIAL_I : ND_PRINT ( ( ndo , \" *SA+%d\" , lastlen [ dir ] [ lastconn ] ) ) ;\n break ;\n case SPECIAL_D : ND_PRINT ( ( ndo , \" *S+%d\" , lastlen [ dir ] [ lastconn ] ) ) ;\n break ;\n default : if ( flags & NEW_U ) cp = print_sl_change ( ndo , \"U=\" , cp ) ;\n if ( flags & NEW_W ) cp = print_sl_winchange ( ndo , cp ) ;\n if ( flags & NEW_A ) cp = print_sl_change ( ndo , \"A+\" , cp ) ;\n if ( flags & NEW_S ) cp = print_sl_change ( ndo , \"S+\" , cp ) ;\n break ;\n }\n if ( flags & NEW_I ) cp = print_sl_change ( ndo , \"I+\" , cp ) ;\n hlen = IP_HL ( ip ) ;\n hlen += TH_OFF ( ( const struct tcphdr * ) & ( ( const int32_t * ) ip ) [ hlen ] ) ;\n lastlen [ dir ] [ lastconn ] = length - ( hlen << 2 ) ;\n ND_PRINT ( ( ndo , \" %d (%ld)\" , lastlen [ dir ] [ lastconn ] , ( long ) ( cp - chdr ) ) ) ;\n }"}
{"idx": 16391, "target": 0, "func": "static inline Quantum GetPixelOpacity ( const Image * restrict image , const Quantum * restrict pixel ) {\n if ( image -> channel_map [ AlphaPixelChannel ] . traits != BlendPixelTrait ) return ( QuantumRange - OpaqueAlpha ) ;\n return ( QuantumRange - pixel [ image -> channel_map [ AlphaPixelChannel ] . offset ] ) ;\n }"}
{"idx": 16392, "target": 0, "func": "static int dissect_t38_T_field_data ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 151 \"../../asn1/t38/t38.cnf\" tvbuff_t * value_tvb = NULL ;\n guint32 value_len ;\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 1 , 65535 , FALSE , & value_tvb ) ;\n value_len = tvb_reported_length ( value_tvb ) ;\n # line 158 \"../../asn1/t38/t38.cnf\" if ( primary_part ) {\n if ( value_len < 8 ) {\n col_append_fstr ( actx -> pinfo -> cinfo , COL_INFO , \"[%s]\" , tvb_bytes_to_str ( wmem_packet_scope ( ) , value_tvb , 0 , value_len ) ) ;\n }\n else {\n col_append_fstr ( actx -> pinfo -> cinfo , COL_INFO , \"[%s...]\" , tvb_bytes_to_str ( wmem_packet_scope ( ) , value_tvb , 0 , 7 ) ) ;\n }\n }\n if ( primary_part && ( Data_Field_item_num < 2 ) ) {\n fragment_head * frag_msg = NULL ;\n if ( Data_Field_field_type_value == 0 || Data_Field_field_type_value == 6 ) {\n gboolean save_fragmented = actx -> pinfo -> fragmented ;\n actx -> pinfo -> fragmented = TRUE ;\n if ( p_t38_packet_conv && p_t38_conv && ( p_t38_packet_conv_info -> reass_ID == 0 ) ) {\n p_t38_conv_info -> reass_ID = actx -> pinfo -> fd -> num ;\n p_t38_conv_info -> reass_start_seqnum = seq_number ;\n p_t38_conv_info -> time_first_t4_data = nstime_to_sec ( & actx -> pinfo -> rel_ts ) ;\n p_t38_conv_info -> additional_hdlc_data_field_counter = 0 ;\n p_t38_packet_conv_info -> reass_ID = p_t38_conv_info -> reass_ID ;\n p_t38_packet_conv_info -> reass_start_seqnum = p_t38_conv_info -> reass_start_seqnum ;\n p_t38_packet_conv_info -> seqnum_prev_data_field = p_t38_conv_info -> seqnum_prev_data_field ;\n p_t38_packet_conv_info -> additional_hdlc_data_field_counter = p_t38_conv_info -> additional_hdlc_data_field_counter ;\n p_t38_packet_conv_info -> time_first_t4_data = p_t38_conv_info -> time_first_t4_data ;\n }\n if ( seq_number == ( guint32 ) p_t38_packet_conv_info -> seqnum_prev_data_field ) {\n p_t38_packet_conv_info -> additional_hdlc_data_field_counter ++ ;\n if ( p_t38_conv ) {\n p_t38_conv_info -> additional_hdlc_data_field_counter = p_t38_packet_conv_info -> additional_hdlc_data_field_counter ;\n }\n }\n frag_msg = fragment_add_seq ( & data_reassembly_table , value_tvb , 0 , actx -> pinfo , p_t38_packet_conv_info -> reass_ID , NULL , seq_number - ( guint32 ) p_t38_packet_conv_info -> reass_start_seqnum + ( guint32 ) p_t38_packet_conv_info -> additional_hdlc_data_field_counter , value_len , TRUE , 0 ) ;\n p_t38_packet_conv_info -> seqnum_prev_data_field = ( gint32 ) seq_number ;\n process_reassembled_data ( tvb , offset , actx -> pinfo , \"Reassembled T38\" , frag_msg , & data_frag_items , NULL , tree ) ;\n if ( ! frag_msg ) {\n if ( Data_Field_field_type_value == 0 ) {\n col_append_fstr ( actx -> pinfo -> cinfo , COL_INFO , \" (HDLC fragment %u)\" , seq_number + ( guint32 ) p_t38_packet_conv_info -> additional_hdlc_data_field_counter - ( guint32 ) p_t38_packet_conv_info -> reass_start_seqnum ) ;\n }\n else {\n col_append_fstr ( actx -> pinfo -> cinfo , COL_INFO , \" (t4-data fragment %u)\" , seq_number - ( guint32 ) p_t38_packet_conv_info -> reass_start_seqnum ) ;\n }\n }\n actx -> pinfo -> fragmented = save_fragmented ;\n }\n }\n return offset ;\n }"}
{"idx": 16393, "target": 0, "func": "static size_t write_compressed_header ( VP9_COMP * cpi , uint8_t * data ) {\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCKD * const xd = & cpi -> mb . e_mbd ;\n FRAME_CONTEXT * const fc = & cm -> fc ;\n vp9_writer header_bc ;\n vp9_start_encode ( & header_bc , data ) ;\n if ( xd -> lossless ) cm -> tx_mode = ONLY_4X4 ;\n else encode_txfm_probs ( cm , & header_bc ) ;\n update_coef_probs ( cpi , & header_bc ) ;\n update_skip_probs ( cm , & header_bc ) ;\n if ( ! frame_is_intra_only ( cm ) ) {\n int i ;\n for ( i = 0 ;\n i < INTER_MODE_CONTEXTS ;\n ++ i ) prob_diff_update ( vp9_inter_mode_tree , cm -> fc . inter_mode_probs [ i ] , cm -> counts . inter_mode [ i ] , INTER_MODES , & header_bc ) ;\n vp9_zero ( cm -> counts . inter_mode ) ;\n if ( cm -> interp_filter == SWITCHABLE ) update_switchable_interp_probs ( cm , & header_bc ) ;\n for ( i = 0 ;\n i < INTRA_INTER_CONTEXTS ;\n i ++ ) vp9_cond_prob_diff_update ( & header_bc , & fc -> intra_inter_prob [ i ] , cm -> counts . intra_inter [ i ] ) ;\n if ( cm -> allow_comp_inter_inter ) {\n const int use_compound_pred = cm -> reference_mode != SINGLE_REFERENCE ;\n const int use_hybrid_pred = cm -> reference_mode == REFERENCE_MODE_SELECT ;\n vp9_write_bit ( & header_bc , use_compound_pred ) ;\n if ( use_compound_pred ) {\n vp9_write_bit ( & header_bc , use_hybrid_pred ) ;\n if ( use_hybrid_pred ) for ( i = 0 ;\n i < COMP_INTER_CONTEXTS ;\n i ++ ) vp9_cond_prob_diff_update ( & header_bc , & fc -> comp_inter_prob [ i ] , cm -> counts . comp_inter [ i ] ) ;\n }\n }\n if ( cm -> reference_mode != COMPOUND_REFERENCE ) {\n for ( i = 0 ;\n i < REF_CONTEXTS ;\n i ++ ) {\n vp9_cond_prob_diff_update ( & header_bc , & fc -> single_ref_prob [ i ] [ 0 ] , cm -> counts . single_ref [ i ] [ 0 ] ) ;\n vp9_cond_prob_diff_update ( & header_bc , & fc -> single_ref_prob [ i ] [ 1 ] , cm -> counts . single_ref [ i ] [ 1 ] ) ;\n }\n }\n if ( cm -> reference_mode != SINGLE_REFERENCE ) for ( i = 0 ;\n i < REF_CONTEXTS ;\n i ++ ) vp9_cond_prob_diff_update ( & header_bc , & fc -> comp_ref_prob [ i ] , cm -> counts . comp_ref [ i ] ) ;\n for ( i = 0 ;\n i < BLOCK_SIZE_GROUPS ;\n ++ i ) prob_diff_update ( vp9_intra_mode_tree , cm -> fc . y_mode_prob [ i ] , cm -> counts . y_mode [ i ] , INTRA_MODES , & header_bc ) ;\n for ( i = 0 ;\n i < PARTITION_CONTEXTS ;\n ++ i ) prob_diff_update ( vp9_partition_tree , fc -> partition_prob [ i ] , cm -> counts . partition [ i ] , PARTITION_TYPES , & header_bc ) ;\n vp9_write_nmv_probs ( cm , cm -> allow_high_precision_mv , & header_bc ) ;\n }\n vp9_stop_encode ( & header_bc ) ;\n assert ( header_bc . pos <= 0xffff ) ;\n return header_bc . pos ;\n }"}
{"idx": 16394, "target": 0, "func": "relpRetVal relpTcpConnect ( relpTcp_t * pThis , int family , unsigned char * port , unsigned char * host , unsigned char * clientIP ) {\n struct addrinfo * res = NULL ;\n struct addrinfo hints ;\n struct addrinfo * reslocal = NULL ;\n struct pollfd pfd ;\n ENTER_RELPFUNC ;\n RELPOBJ_assert ( pThis , Tcp ) ;\n assert ( port != NULL ) ;\n assert ( host != NULL ) ;\n assert ( pThis -> sock == - 1 ) ;\n memset ( & hints , 0 , sizeof ( hints ) ) ;\n hints . ai_family = family ;\n hints . ai_socktype = SOCK_STREAM ;\n if ( getaddrinfo ( ( char * ) host , ( char * ) port , & hints , & res ) != 0 ) {\n pThis -> pEngine -> dbgprint ( \"error %d in getaddrinfo\\n\" , errno ) ;\n ABORT_FINALIZE ( RELP_RET_IO_ERR ) ;\n }\n if ( ( pThis -> sock = socket ( res -> ai_family , res -> ai_socktype , res -> ai_protocol ) ) == - 1 ) {\n ABORT_FINALIZE ( RELP_RET_IO_ERR ) ;\n }\n if ( clientIP != NULL ) {\n if ( getaddrinfo ( ( char * ) clientIP , ( char * ) NULL , & hints , & reslocal ) != 0 ) {\n pThis -> pEngine -> dbgprint ( \"error %d in getaddrinfo of clientIP\\n\" , errno ) ;\n ABORT_FINALIZE ( RELP_RET_IO_ERR ) ;\n }\n if ( bind ( pThis -> sock , reslocal -> ai_addr , reslocal -> ai_addrlen ) != 0 ) {\n ABORT_FINALIZE ( RELP_RET_IO_ERR ) ;\n }\n }\n fcntl ( pThis -> sock , F_SETFL , O_NONBLOCK ) ;\n connect ( pThis -> sock , res -> ai_addr , res -> ai_addrlen ) ;\n pfd . fd = pThis -> sock ;\n pfd . events = POLLOUT ;\n if ( poll ( & pfd , 1 , pThis -> connTimeout * 1000 ) != 1 ) {\n pThis -> pEngine -> dbgprint ( \"connection timed out after %d seconds\\n\" , pThis -> connTimeout ) ;\n ABORT_FINALIZE ( RELP_RET_TIMED_OUT ) ;\n }\n int so_error ;\n socklen_t len = sizeof so_error ;\n getsockopt ( pThis -> sock , SOL_SOCKET , SO_ERROR , & so_error , & len ) ;\n if ( so_error != 0 ) {\n pThis -> pEngine -> dbgprint ( \"socket has an error %d\\n\" , so_error ) ;\n ABORT_FINALIZE ( RELP_RET_IO_ERR ) ;\n }\n # ifdef ENABLE_TLS if ( pThis -> bEnableTLS ) {\n CHKRet ( relpTcpConnectTLSInit ( pThis ) ) ;\n pThis -> bTLSActive = 1 ;\n }\n # endif finalize_it : if ( res != NULL ) freeaddrinfo ( res ) ;\n if ( reslocal != NULL ) freeaddrinfo ( reslocal ) ;\n if ( iRet != RELP_RET_OK ) {\n if ( pThis -> sock != - 1 ) {\n close ( pThis -> sock ) ;\n pThis -> sock = - 1 ;\n }\n }\n LEAVE_RELPFUNC ;\n }"}
{"idx": 16395, "target": 0, "func": "void do_set_charset ( struct st_command * command ) {\n char * charset_name = command -> first_argument ;\n char * p ;\n if ( ! charset_name || ! * charset_name ) die ( \"Missing charset name in 'character_set'\" ) ;\n p = charset_name ;\n while ( * p && ! my_isspace ( charset_info , * p ) ) p ++ ;\n if ( * p ) * p ++ = 0 ;\n command -> last_argument = p ;\n charset_info = get_charset_by_csname ( charset_name , MY_CS_PRIMARY , MYF ( MY_WME ) ) ;\n if ( ! charset_info ) abort_not_supported_test ( \"Test requires charset '%s'\" , charset_name ) ;\n }"}
{"idx": 16396, "target": 0, "func": "static guint get_pvfs_pdu_len ( packet_info * pinfo _U_ , tvbuff_t * tvb , int offset , void * data _U_ ) {\n guint32 plen ;\n plen = tvb_get_letohl ( tvb , offset + 16 ) ;\n return plen + 24 ;\n }"}
{"idx": 16397, "target": 0, "func": "static gboolean capture_netbios ( const guchar * pd _U_ , int offset _U_ , int len _U_ , capture_packet_info_t * cpinfo , const union wtap_pseudo_header * pseudo_header _U_ ) {\n capture_dissector_increment_count ( cpinfo , proto_netbios ) ;\n return TRUE ;\n }"}
{"idx": 16398, "target": 0, "func": "static inline int inode_doinit ( struct inode * inode ) {\n return inode_doinit_with_dentry ( inode , NULL ) ;\n }"}
{"idx": 16399, "target": 0, "func": "static void test_conversion ( ) {\n MYSQL_STMT * stmt ;\n const char * stmt_text ;\n int rc ;\n MYSQL_BIND my_bind [ 1 ] ;\n char buff [ 4 ] ;\n ulong length ;\n myheader ( \"test_conversion\" ) ;\n stmt_text = \"DROP TABLE IF EXISTS t1\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt_text = \"CREATE TABLE t1 (a TEXT) DEFAULT CHARSET latin1\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt_text = \"SET character_set_connection=utf8, character_set_client=utf8, \" \" character_set_results=latin1\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n stmt_text = \"INSERT INTO t1 (a) VALUES (?)\" ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt , rc ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer = buff ;\n my_bind [ 0 ] . length = & length ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n mysql_stmt_bind_param ( stmt , my_bind ) ;\n buff [ 0 ] = ( uchar ) 0xC3 ;\n buff [ 1 ] = ( uchar ) 0xA0 ;\n length = 2 ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n stmt_text = \"SELECT a FROM t1\" ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n my_bind [ 0 ] . buffer_length = sizeof ( buff ) ;\n mysql_stmt_bind_result ( stmt , my_bind ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == 0 ) ;\n DIE_UNLESS ( length == 1 ) ;\n DIE_UNLESS ( ( uchar ) buff [ 0 ] == 0xE0 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n mysql_stmt_close ( stmt ) ;\n stmt_text = \"DROP TABLE t1\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt_text = \"SET NAMES DEFAULT\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n }"}
{"idx": 16400, "target": 0, "func": "static void request_counter_remove_request ( RequestCounter counter , Request request ) {\n guint i ;\n for ( i = 0 ;\n i < REQUEST_TYPE_LAST ;\n i ++ ) {\n if ( REQUEST_WANTS_TYPE ( request , i ) ) {\n counter [ i ] -- ;\n }\n }\n }"}
{"idx": 16401, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , UseCounterCSSPropertiesInMainFrame ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : LOAD_EVENT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/page_load_metrics/use_counter_features.html\" ) ) ;\n waiter -> Wait ( ) ;\n NavigateToUntrackedUrl ( ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kCssPropertiesHistogramName , 6 , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kCssPropertiesHistogramName , 7 , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( internal : : kCssPropertiesHistogramName , blink : : mojom : : kTotalPagesMeasuredCSSSampleId , 1 ) ;\n }"}
{"idx": 16402, "target": 0, "func": "void signed_relts_print ( netdissect_options * ndo , int32_t secs ) {\n if ( secs < 0 ) {\n ND_PRINT ( ( ndo , \"-\" ) ) ;\n if ( secs == INT32_MIN ) {\n unsigned_relts_print ( ndo , 2147483648U ) ;\n }\n else {\n unsigned_relts_print ( ndo , - secs ) ;\n }\n return ;\n }\n unsigned_relts_print ( ndo , secs ) ;\n }"}
{"idx": 16403, "target": 1, "func": "static PGconn * get_db_conn ( ClusterInfo * cluster , const char * db_name ) {\n char conn_opts [ 2 * NAMEDATALEN + MAXPGPATH + 100 ] ;\n if ( cluster -> sockdir ) snprintf ( conn_opts , sizeof ( conn_opts ) , \"dbname = '%s' user = '%s' host = '%s' port = %d\" , db_name , os_info . user , cluster -> sockdir , cluster -> port ) ;\n else snprintf ( conn_opts , sizeof ( conn_opts ) , \"dbname = '%s' user = '%s' port = %d\" , db_name , os_info . user , cluster -> port ) ;\n return PQconnectdb ( conn_opts ) ;\n }"}
{"idx": 16404, "target": 0, "func": "static int ipvideo_decode_block_opcode_0x6_16 ( IpvideoContext * s , AVFrame * frame ) {\n signed char x , y ;\n x = bytestream2_get_byte ( & s -> stream_ptr ) ;\n y = bytestream2_get_byte ( & s -> stream_ptr ) ;\n av_dlog ( NULL , \" motion bytes = %d, %d\\n\" , x , y ) ;\n return copy_from ( s , s -> second_last_frame , frame , x , y ) ;\n }"}
{"idx": 16405, "target": 0, "func": "static bool contain_context_dependent_node ( Node * clause ) {\n int flags = 0 ;\n return contain_context_dependent_node_walker ( clause , & flags ) ;\n }"}
{"idx": 16406, "target": 0, "func": "TEST_F ( FullscreenControllerStateUnitTest , DISABLED_ToggleTabWhenPendingTab ) {\n if ( FullscreenControllerStateTest : : IsWindowFullscreenStateChangedReentrant ( ) ) return ;\n AddTab ( browser ( ) , GURL ( url : : kAboutBlankURL ) ) ;\n ASSERT_NO_FATAL_FAILURE ( TransitionToState ( STATE_TO_TAB_FULLSCREEN ) ) << GetAndClearDebugLog ( ) ;\n ASSERT_TRUE ( InvokeEvent ( TAB_FULLSCREEN_TRUE ) ) << GetAndClearDebugLog ( ) ;\n ASSERT_TRUE ( InvokeEvent ( TAB_FULLSCREEN_FALSE ) ) << GetAndClearDebugLog ( ) ;\n ASSERT_TRUE ( InvokeEvent ( WINDOW_CHANGE ) ) << GetAndClearDebugLog ( ) ;\n }"}
{"idx": 16407, "target": 0, "func": "static void DecoderUnsupportedCodec ( decoder_t * p_dec , vlc_fourcc_t codec ) {\n if ( codec != VLC_FOURCC ( 'u' , 'n' , 'd' , 'f' ) ) {\n const char * desc = vlc_fourcc_GetDescription ( p_dec -> fmt_in . i_cat , codec ) ;\n if ( ! desc || ! * desc ) desc = N_ ( \"No description for this codec\" ) ;\n msg_Err ( p_dec , \"Codec `%4.4s' (%s) is not supported.\" , ( char * ) & codec , desc ) ;\n dialog_Fatal ( p_dec , _ ( \"Codec not supported\" ) , _ ( \"VLC could not decode the format \\\"%4.4s\\\" (%s)\" ) , ( char * ) & codec , desc ) ;\n }\n else {\n msg_Err ( p_dec , \"could not identify codec\" ) ;\n dialog_Fatal ( p_dec , _ ( \"Unidentified codec\" ) , _ ( \"VLC could not identify the audio or video codec\" ) ) ;\n }\n }"}
{"idx": 16408, "target": 0, "func": "int my_system ( DYNAMIC_STRING * ds_cmd ) {\n # if defined __WIN__ && defined USE_CYGWIN str_to_file ( tmp_sh_name , ds_cmd -> str , ds_cmd -> length ) ;\n return system ( tmp_sh_cmd ) ;\n # else return system ( ds_cmd -> str ) ;\n # endif }"}
{"idx": 16409, "target": 0, "func": "static void cdxl_decode_rgb ( CDXLVideoContext * c , AVFrame * frame ) {\n uint32_t * new_palette = ( uint32_t * ) frame -> data [ 1 ] ;\n import_palette ( c , new_palette ) ;\n import_format ( c , frame -> linesize [ 0 ] , frame -> data [ 0 ] ) ;\n }"}
{"idx": 16410, "target": 0, "func": "static void ohci_set_hub_status ( OHCIState * ohci , uint32_t val ) {\n uint32_t old_state ;\n old_state = ohci -> rhstatus ;\n if ( val & OHCI_RHS_OCIC ) ohci -> rhstatus &= ~ OHCI_RHS_OCIC ;\n if ( val & OHCI_RHS_LPS ) {\n int i ;\n for ( i = 0 ;\n i < ohci -> num_ports ;\n i ++ ) ohci_port_power ( ohci , i , 0 ) ;\n trace_usb_ohci_hub_power_down ( ) ;\n }\n if ( val & OHCI_RHS_LPSC ) {\n int i ;\n for ( i = 0 ;\n i < ohci -> num_ports ;\n i ++ ) ohci_port_power ( ohci , i , 1 ) ;\n trace_usb_ohci_hub_power_up ( ) ;\n }\n if ( val & OHCI_RHS_DRWE ) ohci -> rhstatus |= OHCI_RHS_DRWE ;\n if ( val & OHCI_RHS_CRWE ) ohci -> rhstatus &= ~ OHCI_RHS_DRWE ;\n if ( old_state != ohci -> rhstatus ) ohci_set_interrupt ( ohci , OHCI_INTR_RHSC ) ;\n }"}
{"idx": 16411, "target": 0, "func": "static int _tiffMapProc ( thandle_t fd , tdata_t * pbase , toff_t * psize ) {\n return ( 0 ) ;\n }"}
{"idx": 16412, "target": 0, "func": "static char * value_string ( char * buf , int buf_size , struct unit_value uv ) {\n double vald ;\n long long int vali ;\n int show_float = 0 ;\n if ( uv . unit == unit_second_str ) {\n vald = uv . val . d ;\n show_float = 1 ;\n }\n else {\n vald = vali = uv . val . i ;\n }\n if ( uv . unit == unit_second_str && use_value_sexagesimal_format ) {\n double secs ;\n int hours , mins ;\n secs = vald ;\n mins = ( int ) secs / 60 ;\n secs = secs - mins * 60 ;\n hours = mins / 60 ;\n mins %= 60 ;\n snprintf ( buf , buf_size , \"%d:%02d:%09.6f\" , hours , mins , secs ) ;\n }\n else {\n const char * prefix_string = \"\" ;\n if ( use_value_prefix && vald > 1 ) {\n long long int index ;\n if ( uv . unit == unit_byte_str && use_byte_value_binary_prefix ) {\n index = ( long long int ) ( log2 ( vald ) ) / 10 ;\n index = av_clip ( index , 0 , FF_ARRAY_ELEMS ( si_prefixes ) - 1 ) ;\n vald /= si_prefixes [ index ] . bin_val ;\n prefix_string = si_prefixes [ index ] . bin_str ;\n }\n else {\n index = ( long long int ) ( log10 ( vald ) ) / 3 ;\n index = av_clip ( index , 0 , FF_ARRAY_ELEMS ( si_prefixes ) - 1 ) ;\n vald /= si_prefixes [ index ] . dec_val ;\n prefix_string = si_prefixes [ index ] . dec_str ;\n }\n vali = vald ;\n }\n if ( show_float || ( use_value_prefix && vald != ( long long int ) vald ) ) snprintf ( buf , buf_size , \"%f\" , vald ) ;\n else snprintf ( buf , buf_size , \"%lld\" , vali ) ;\n av_strlcatf ( buf , buf_size , \"%s%s%s\" , * prefix_string || show_value_unit ? \" \" : \"\" , prefix_string , show_value_unit ? uv . unit : \"\" ) ;\n }\n return buf ;\n }"}
{"idx": 16413, "target": 1, "func": "static gcry_err_code_t sexp_to_sig ( gcry_sexp_t sexp , gcry_mpi_t * * retarray , gcry_module_t * retalgo ) {\n gcry_err_code_t err = 0 ;\n gcry_sexp_t list , l2 ;\n char * name ;\n const char * elems ;\n gcry_mpi_t * array ;\n gcry_module_t module ;\n gcry_pk_spec_t * pubkey ;\n list = gcry_sexp_find_token ( sexp , \"sig-val\" , 0 ) ;\n if ( ! list ) return GPG_ERR_INV_OBJ ;\n l2 = gcry_sexp_nth ( list , 1 ) ;\n if ( ! l2 ) {\n gcry_sexp_release ( list ) ;\n return GPG_ERR_NO_OBJ ;\n }\n name = _gcry_sexp_nth_string ( l2 , 0 ) ;\n if ( ! name ) {\n gcry_sexp_release ( list ) ;\n gcry_sexp_release ( l2 ) ;\n return GPG_ERR_INV_OBJ ;\n }\n else if ( ! strcmp ( name , \"flags\" ) ) {\n gcry_free ( name ) ;\n gcry_sexp_release ( l2 ) ;\n l2 = gcry_sexp_nth ( list , 2 ) ;\n if ( ! l2 ) {\n gcry_sexp_release ( list ) ;\n return GPG_ERR_INV_OBJ ;\n }\n name = _gcry_sexp_nth_string ( l2 , 0 ) ;\n }\n ath_mutex_lock ( & pubkeys_registered_lock ) ;\n module = gcry_pk_lookup_name ( name ) ;\n ath_mutex_unlock ( & pubkeys_registered_lock ) ;\n gcry_free ( name ) ;\n name = NULL ;\n if ( ! module ) {\n gcry_sexp_release ( l2 ) ;\n gcry_sexp_release ( list ) ;\n return GPG_ERR_PUBKEY_ALGO ;\n }\n else pubkey = ( gcry_pk_spec_t * ) module -> spec ;\n elems = pubkey -> elements_sig ;\n array = gcry_calloc ( strlen ( elems ) + 1 , sizeof * array ) ;\n if ( ! array ) err = gpg_err_code_from_syserror ( ) ;\n if ( ! err ) err = sexp_elements_extract ( list , elems , array , NULL ) ;\n gcry_sexp_release ( l2 ) ;\n gcry_sexp_release ( list ) ;\n if ( err ) {\n ath_mutex_lock ( & pubkeys_registered_lock ) ;\n _gcry_module_release ( module ) ;\n ath_mutex_unlock ( & pubkeys_registered_lock ) ;\n gcry_free ( array ) ;\n }\n else {\n * retarray = array ;\n * retalgo = module ;\n }\n return err ;\n }"}
{"idx": 16414, "target": 0, "func": "void reference_8x8_dct_1d ( const double in [ 8 ] , double out [ 8 ] , int stride ) {\n const double kInvSqrt2 = 0.707106781186547524400844362104 ;\n for ( int k = 0 ;\n k < 8 ;\n k ++ ) {\n out [ k ] = 0.0 ;\n for ( int n = 0 ;\n n < 8 ;\n n ++ ) out [ k ] += in [ n ] * cos ( kPi * ( 2 * n + 1 ) * k / 16.0 ) ;\n if ( k == 0 ) out [ k ] = out [ k ] * kInvSqrt2 ;\n }\n }"}
{"idx": 16415, "target": 1, "func": "static ossl_inline int sk_ ## t1 ## _num ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_num ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _value ( const STACK_OF ( t1 ) * sk , int idx ) {\n return ( t2 * ) OPENSSL_sk_value ( ( const OPENSSL_STACK * ) sk , idx ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new ( sk_ ## t1 ## _compfunc compare ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new ( ( OPENSSL_sk_compfunc ) compare ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_null ( void ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_null ( ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_reserve ( sk_ ## t1 ## _compfunc compare , int n ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_reserve ( ( OPENSSL_sk_compfunc ) compare , n ) ;\n }\n static ossl_inline int sk_ ## t1 ## _reserve ( STACK_OF ( t1 ) * sk , int n ) {\n return OPENSSL_sk_reserve ( ( OPENSSL_STACK * ) sk , n ) ;\n }\n static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 16416, "target": 0, "func": "inline unsigned uint32_from_be ( const void * bytes ) {\n const unsigned char * b = ( const unsigned char * ) bytes ;\n return ( b [ 0 ] << 24 ) | ( b [ 1 ] << 16 ) | ( b [ 2 ] << 8 ) | b [ 3 ] ;\n }"}
{"idx": 16417, "target": 0, "func": "static void wma_window ( WMACodecContext * s , float * out ) {\n float * in = s -> output ;\n int block_len , bsize , n ;\n if ( s -> block_len_bits <= s -> prev_block_len_bits ) {\n block_len = s -> block_len ;\n bsize = s -> frame_len_bits - s -> block_len_bits ;\n s -> fdsp . vector_fmul_add ( out , in , s -> windows [ bsize ] , out , block_len ) ;\n }\n else {\n block_len = 1 << s -> prev_block_len_bits ;\n n = ( s -> block_len - block_len ) / 2 ;\n bsize = s -> frame_len_bits - s -> prev_block_len_bits ;\n s -> fdsp . vector_fmul_add ( out + n , in + n , s -> windows [ bsize ] , out + n , block_len ) ;\n memcpy ( out + n + block_len , in + n + block_len , n * sizeof ( float ) ) ;\n }\n out += s -> block_len ;\n in += s -> block_len ;\n if ( s -> block_len_bits <= s -> next_block_len_bits ) {\n block_len = s -> block_len ;\n bsize = s -> frame_len_bits - s -> block_len_bits ;\n s -> fdsp . vector_fmul_reverse ( out , in , s -> windows [ bsize ] , block_len ) ;\n }\n else {\n block_len = 1 << s -> next_block_len_bits ;\n n = ( s -> block_len - block_len ) / 2 ;\n bsize = s -> frame_len_bits - s -> next_block_len_bits ;\n memcpy ( out , in , n * sizeof ( float ) ) ;\n s -> fdsp . vector_fmul_reverse ( out + n , in + n , s -> windows [ bsize ] , block_len ) ;\n memset ( out + n + block_len , 0 , n * sizeof ( float ) ) ;\n }\n }"}
{"idx": 16418, "target": 0, "func": "static SYMBOL BinSrchKey ( const char * id ) {\n int l = 1 ;\n int r = NUMKEYS ;\n int x , res ;\n while ( r >= l ) {\n x = ( l + r ) / 2 ;\n res = cmsstrcasecmp ( id , TabKeys [ x - 1 ] . id ) ;\n if ( res == 0 ) return TabKeys [ x - 1 ] . sy ;\n if ( res < 0 ) r = x - 1 ;\n else l = x + 1 ;\n }\n return SUNDEFINED ;\n }"}
{"idx": 16419, "target": 0, "func": "static void clear_codec_buffers ( WmallDecodeCtx * s ) {\n int ich , ilms ;\n memset ( s -> acfilter_coeffs , 0 , sizeof ( s -> acfilter_coeffs ) ) ;\n memset ( s -> acfilter_prevvalues , 0 , sizeof ( s -> acfilter_prevvalues ) ) ;\n memset ( s -> lpc_coefs , 0 , sizeof ( s -> lpc_coefs ) ) ;\n memset ( s -> mclms_coeffs , 0 , sizeof ( s -> mclms_coeffs ) ) ;\n memset ( s -> mclms_coeffs_cur , 0 , sizeof ( s -> mclms_coeffs_cur ) ) ;\n memset ( s -> mclms_prevvalues , 0 , sizeof ( s -> mclms_prevvalues ) ) ;\n memset ( s -> mclms_updates , 0 , sizeof ( s -> mclms_updates ) ) ;\n for ( ich = 0 ;\n ich < s -> num_channels ;\n ich ++ ) {\n for ( ilms = 0 ;\n ilms < s -> cdlms_ttl [ ich ] ;\n ilms ++ ) {\n memset ( s -> cdlms [ ich ] [ ilms ] . coefs , 0 , sizeof ( s -> cdlms [ ich ] [ ilms ] . coefs ) ) ;\n memset ( s -> cdlms [ ich ] [ ilms ] . lms_prevvalues , 0 , sizeof ( s -> cdlms [ ich ] [ ilms ] . lms_prevvalues ) ) ;\n memset ( s -> cdlms [ ich ] [ ilms ] . lms_updates , 0 , sizeof ( s -> cdlms [ ich ] [ ilms ] . lms_updates ) ) ;\n }\n s -> ave_sum [ ich ] = 0 ;\n }\n }"}
{"idx": 16420, "target": 1, "func": "SPL_METHOD ( SplFileObject , setCsvControl ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char delimiter = ',' , enclosure = '\"' , escape = '\\\\' ;\n char * delim = NULL , * enclo = NULL , * esc = NULL ;\n int d_len = 0 , e_len = 0 , esc_len = 0 ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"|sss\" , & delim , & d_len , & enclo , & e_len , & esc , & esc_len ) == SUCCESS ) {\n switch ( ZEND_NUM_ARGS ( ) ) {\n case 3 : if ( esc_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"escape must be a character\" ) ;\n RETURN_FALSE ;\n }\n escape = esc [ 0 ] ;\n case 2 : if ( e_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"enclosure must be a character\" ) ;\n RETURN_FALSE ;\n }\n enclosure = enclo [ 0 ] ;\n case 1 : if ( d_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"delimiter must be a character\" ) ;\n RETURN_FALSE ;\n }\n delimiter = delim [ 0 ] ;\n case 0 : break ;\n }\n intern -> u . file . delimiter = delimiter ;\n intern -> u . file . enclosure = enclosure ;\n intern -> u . file . escape = escape ;\n }\n }"}
{"idx": 16421, "target": 0, "func": "static void idr ( H264Context * h ) {\n int i ;\n ff_h264_remove_all_refs ( h ) ;\n h -> prev_frame_num = 0 ;\n h -> prev_frame_num_offset = 0 ;\n h -> prev_poc_msb = 1 << 16 ;\n h -> prev_poc_lsb = 0 ;\n for ( i = 0 ;\n i < MAX_DELAYED_PIC_COUNT ;\n i ++ ) h -> last_pocs [ i ] = INT_MIN ;\n }"}
{"idx": 16422, "target": 0, "func": "int ssl3_cbc_remove_padding ( SSL3_RECORD * rec , unsigned block_size , unsigned mac_size ) {\n unsigned padding_length , good ;\n const unsigned overhead = 1 + mac_size ;\n if ( overhead > rec -> length ) return 0 ;\n padding_length = rec -> data [ rec -> length - 1 ] ;\n good = constant_time_ge ( rec -> length , padding_length + overhead ) ;\n good &= constant_time_ge ( block_size , padding_length + 1 ) ;\n rec -> length -= good & ( padding_length + 1 ) ;\n return constant_time_select_int ( good , 1 , - 1 ) ;\n }"}
{"idx": 16423, "target": 0, "func": "static void U_CALLCONV _UTF16BEReset ( UConverter * cnv , UConverterResetChoice choice ) {\n if ( choice <= UCNV_RESET_TO_UNICODE ) {\n if ( UCNV_GET_VERSION ( cnv ) == 0 ) {\n cnv -> mode = 8 ;\n }\n else {\n cnv -> mode = 0 ;\n }\n }\n if ( choice != UCNV_RESET_TO_UNICODE && UCNV_GET_VERSION ( cnv ) == 1 ) {\n cnv -> fromUnicodeStatus = UCNV_NEED_TO_WRITE_BOM ;\n }\n }"}
{"idx": 16424, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , TestOnAcceptRegisterProtocolHandler ) {\n ProtocolHandler ph1 = CreateProtocolHandler ( \"test\" , \"test1\" ) ;\n ProtocolHandler ph2 = CreateProtocolHandler ( \"test\" , \"test2\" ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph2 ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ;\n ASSERT_TRUE ( registry ( ) -> IsDefault ( ph1 ) ) ;\n ASSERT_FALSE ( registry ( ) -> IsDefault ( ph2 ) ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph2 ) ;\n ASSERT_FALSE ( registry ( ) -> IsDefault ( ph1 ) ) ;\n ASSERT_TRUE ( registry ( ) -> IsDefault ( ph2 ) ) ;\n }"}
{"idx": 16425, "target": 0, "func": "TEST_F ( WebFrameTest , FallbackForNonexistentProvisionalNavigation ) {\n RegisterMockedHttpURLLoad ( \"fallback.html\" ) ;\n TestFallbackWebFrameClient main_client ;\n TestFallbackWebFrameClient child_client ;\n main_client . SetChildWebFrameClient ( & child_client ) ;\n FrameTestHelpers : : WebViewHelper web_view_helper_ ;\n web_view_helper_ . Initialize ( & main_client ) ;\n WebLocalFrameImpl * main_frame = web_view_helper_ . LocalMainFrame ( ) ;\n WebURLRequest request ( ToKURL ( base_url_ + \"fallback.html\" ) ) ;\n main_frame -> StartNavigation ( request ) ;\n Platform : : Current ( ) -> GetURLLoaderMockFactory ( ) -> ServeAsynchronousRequests ( ) ;\n WebLocalFrame * child = main_frame -> FirstChild ( ) -> ToWebLocalFrame ( ) ;\n child -> StartNavigation ( WebURLRequest ( BlankURL ( ) ) ) ;\n EXPECT_EQ ( WebLocalFrame : : NoLoadInProgress , child -> MaybeRenderFallbackContent ( ResourceError : : Failure ( request . Url ( ) ) ) ) ;\n }"}
{"idx": 16426, "target": 0, "func": "static void test_stmt_close ( ) {\n MYSQL * lmysql ;\n MYSQL_STMT * stmt1 , * stmt2 , * stmt3 , * stmt_x ;\n MYSQL_BIND my_bind [ 1 ] ;\n MYSQL_RES * result ;\n unsigned int count ;\n int rc ;\n char query [ MAX_TEST_QUERY_LENGTH ] ;\n myheader ( \"test_stmt_close\" ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n Establishing a test connection ...\" ) ;\n if ( ! ( lmysql = mysql_client_init ( NULL ) ) ) {\n myerror ( \"mysql_client_init() failed\" ) ;\n exit ( 1 ) ;\n }\n if ( ! ( mysql_real_connect ( lmysql , opt_host , opt_user , opt_password , current_db , opt_port , opt_unix_socket , 0 ) ) ) {\n myerror ( \"connection failed\" ) ;\n exit ( 1 ) ;\n }\n lmysql -> reconnect = 1 ;\n if ( ! opt_silent ) fprintf ( stdout , \"OK\" ) ;\n mysql_autocommit ( lmysql , TRUE ) ;\n rc = mysql_query ( lmysql , \"SET SQL_MODE = ''\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( lmysql , \"DROP TABLE IF EXISTS test_stmt_close\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( lmysql , \"CREATE TABLE test_stmt_close(id int)\" ) ;\n myquery ( rc ) ;\n strmov ( query , \"DO \\\"nothing\\\"\" ) ;\n stmt1 = mysql_simple_prepare ( lmysql , query ) ;\n check_stmt ( stmt1 ) ;\n verify_param_count ( stmt1 , 0 ) ;\n strmov ( query , \"INSERT INTO test_stmt_close(id) VALUES(?)\" ) ;\n stmt_x = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt_x ) ;\n verify_param_count ( stmt_x , 1 ) ;\n strmov ( query , \"UPDATE test_stmt_close SET id= ? WHERE id= ?\" ) ;\n stmt3 = mysql_simple_prepare ( lmysql , query ) ;\n check_stmt ( stmt3 ) ;\n verify_param_count ( stmt3 , 2 ) ;\n strmov ( query , \"SELECT * FROM test_stmt_close WHERE id= ?\" ) ;\n stmt2 = mysql_simple_prepare ( lmysql , query ) ;\n check_stmt ( stmt2 ) ;\n verify_param_count ( stmt2 , 1 ) ;\n rc = mysql_stmt_close ( stmt1 ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n mysql_close_stmt(1) returned: %d\" , rc ) ;\n DIE_UNLESS ( rc == 0 ) ;\n mysql_stmt_close ( stmt2 ) ;\n mysql_stmt_close ( stmt3 ) ;\n mysql_close ( lmysql ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer = ( void * ) & count ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n count = 100 ;\n rc = mysql_stmt_bind_param ( stmt_x , my_bind ) ;\n check_execute ( stmt_x , rc ) ;\n rc = mysql_stmt_execute ( stmt_x ) ;\n check_execute ( stmt_x , rc ) ;\n verify_st_affected_rows ( stmt_x , 1 ) ;\n rc = mysql_stmt_close ( stmt_x ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n mysql_close_stmt(x) returned: %d\" , rc ) ;\n DIE_UNLESS ( rc == 0 ) ;\n rc = mysql_query ( mysql , \"SELECT id FROM test_stmt_close\" ) ;\n myquery ( rc ) ;\n result = mysql_store_result ( mysql ) ;\n mytest ( result ) ;\n rc = my_process_result_set ( result ) ;\n DIE_UNLESS ( rc == 1 ) ;\n mysql_free_result ( result ) ;\n }"}
{"idx": 16427, "target": 0, "func": "int ff_MPV_common_frame_size_change ( MpegEncContext * s ) {\n int i , err = 0 ;\n if ( s -> slice_context_count > 1 ) {\n for ( i = 0 ;\n i < s -> slice_context_count ;\n i ++ ) {\n free_duplicate_context ( s -> thread_context [ i ] ) ;\n }\n for ( i = 1 ;\n i < s -> slice_context_count ;\n i ++ ) {\n av_freep ( & s -> thread_context [ i ] ) ;\n }\n }\n else free_duplicate_context ( s ) ;\n if ( ( err = free_context_frame ( s ) ) < 0 ) return err ;\n if ( s -> picture ) for ( i = 0 ;\n i < MAX_PICTURE_COUNT ;\n i ++ ) {\n s -> picture [ i ] . needs_realloc = 1 ;\n }\n s -> last_picture_ptr = s -> next_picture_ptr = s -> current_picture_ptr = NULL ;\n if ( s -> codec_id == AV_CODEC_ID_MPEG2VIDEO && ! s -> progressive_sequence ) s -> mb_height = ( s -> height + 31 ) / 32 * 2 ;\n else if ( s -> codec_id != AV_CODEC_ID_H264 ) s -> mb_height = ( s -> height + 15 ) / 16 ;\n if ( ( s -> width || s -> height ) && av_image_check_size ( s -> width , s -> height , 0 , s -> avctx ) ) return AVERROR_INVALIDDATA ;\n if ( ( err = init_context_frame ( s ) ) ) goto fail ;\n s -> thread_context [ 0 ] = s ;\n if ( s -> width && s -> height ) {\n int nb_slices = s -> slice_context_count ;\n if ( nb_slices > 1 ) {\n for ( i = 1 ;\n i < nb_slices ;\n i ++ ) {\n s -> thread_context [ i ] = av_malloc ( sizeof ( MpegEncContext ) ) ;\n memcpy ( s -> thread_context [ i ] , s , sizeof ( MpegEncContext ) ) ;\n }\n for ( i = 0 ;\n i < nb_slices ;\n i ++ ) {\n if ( init_duplicate_context ( s -> thread_context [ i ] ) < 0 ) goto fail ;\n s -> thread_context [ i ] -> start_mb_y = ( s -> mb_height * ( i ) + nb_slices / 2 ) / nb_slices ;\n s -> thread_context [ i ] -> end_mb_y = ( s -> mb_height * ( i + 1 ) + nb_slices / 2 ) / nb_slices ;\n }\n }\n else {\n if ( init_duplicate_context ( s ) < 0 ) goto fail ;\n s -> start_mb_y = 0 ;\n s -> end_mb_y = s -> mb_height ;\n }\n s -> slice_context_count = nb_slices ;\n }\n return 0 ;\n fail : ff_MPV_common_end ( s ) ;\n return err ;\n }"}
{"idx": 16428, "target": 0, "func": "void PNGAPI png_set_sBIT ( png_structp png_ptr , png_infop info_ptr , png_color_8p sig_bit ) {\n png_debug1 ( 1 , \"in %s storage function\" , \"sBIT\" ) ;\n if ( png_ptr == NULL || info_ptr == NULL ) return ;\n png_memcpy ( & ( info_ptr -> sig_bit ) , sig_bit , png_sizeof ( png_color_8 ) ) ;\n info_ptr -> valid |= PNG_INFO_sBIT ;\n }"}
{"idx": 16429, "target": 0, "func": "static bool _tocEntryIsACL ( TocEntry * te ) {\n if ( strcmp ( te -> desc , \"ACL\" ) == 0 || strcmp ( te -> desc , \"ACL LANGUAGE\" ) == 0 || strcmp ( te -> desc , \"DEFAULT ACL\" ) == 0 ) return true ;\n return false ;\n }"}
{"idx": 16430, "target": 0, "func": "static void rfbProcessClientInitMessage ( rfbClientPtr cl ) {\n rfbClientInitMsg ci ;\n union {\n char buf [ 256 ] ;\n rfbServerInitMsg si ;\n }\n u ;\n int len , n ;\n rfbClientIteratorPtr iterator ;\n rfbClientPtr otherCl ;\n rfbExtensionData * extension ;\n if ( cl -> state == RFB_INITIALISATION_SHARED ) {\n ci . shared = 1 ;\n cl -> state = RFB_INITIALISATION ;\n }\n else {\n if ( ( n = rfbReadExact ( cl , ( char * ) & ci , sz_rfbClientInitMsg ) ) <= 0 ) {\n if ( n == 0 ) rfbLog ( \"rfbProcessClientInitMessage: client gone\\n\" ) ;\n else rfbLogPerror ( \"rfbProcessClientInitMessage: read\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n }\n memset ( u . buf , 0 , sizeof ( u . buf ) ) ;\n u . si . framebufferWidth = Swap16IfLE ( cl -> screen -> width ) ;\n u . si . framebufferHeight = Swap16IfLE ( cl -> screen -> height ) ;\n u . si . format = cl -> screen -> serverFormat ;\n u . si . format . redMax = Swap16IfLE ( u . si . format . redMax ) ;\n u . si . format . greenMax = Swap16IfLE ( u . si . format . greenMax ) ;\n u . si . format . blueMax = Swap16IfLE ( u . si . format . blueMax ) ;\n strncpy ( u . buf + sz_rfbServerInitMsg , cl -> screen -> desktopName , 127 ) ;\n len = strlen ( u . buf + sz_rfbServerInitMsg ) ;\n u . si . nameLength = Swap32IfLE ( len ) ;\n if ( rfbWriteExact ( cl , u . buf , sz_rfbServerInitMsg + len ) < 0 ) {\n rfbLogPerror ( \"rfbProcessClientInitMessage: write\" ) ;\n rfbCloseClient ( cl ) ;\n return ;\n }\n for ( extension = cl -> extensions ;\n extension ;\n ) {\n rfbExtensionData * next = extension -> next ;\n if ( extension -> extension -> init && ! extension -> extension -> init ( cl , extension -> data ) ) rfbDisableExtension ( cl , extension -> extension ) ;\n extension = next ;\n }\n cl -> state = RFB_NORMAL ;\n if ( ! cl -> reverseConnection && ( cl -> screen -> neverShared || ( ! cl -> screen -> alwaysShared && ! ci . shared ) ) ) {\n if ( cl -> screen -> dontDisconnect ) {\n iterator = rfbGetClientIterator ( cl -> screen ) ;\n while ( ( otherCl = rfbClientIteratorNext ( iterator ) ) != NULL ) {\n if ( ( otherCl != cl ) && ( otherCl -> state == RFB_NORMAL ) ) {\n rfbLog ( \"-dontdisconnect: Not shared & existing client\\n\" ) ;\n rfbLog ( \" refusing new client %s\\n\" , cl -> host ) ;\n rfbCloseClient ( cl ) ;\n rfbReleaseClientIterator ( iterator ) ;\n return ;\n }\n }\n rfbReleaseClientIterator ( iterator ) ;\n }\n else {\n iterator = rfbGetClientIterator ( cl -> screen ) ;\n while ( ( otherCl = rfbClientIteratorNext ( iterator ) ) != NULL ) {\n if ( ( otherCl != cl ) && ( otherCl -> state == RFB_NORMAL ) ) {\n rfbLog ( \"Not shared - closing connection to client %s\\n\" , otherCl -> host ) ;\n rfbCloseClient ( otherCl ) ;\n }\n }\n rfbReleaseClientIterator ( iterator ) ;\n }\n }\n }"}
{"idx": 16431, "target": 0, "func": "static MV mi_mv_pred_q2 ( const MODE_INFO * mi , int idx , int block0 , int block1 ) {\n MV res = {\n round_mv_comp_q2 ( mi -> bmi [ block0 ] . as_mv [ idx ] . as_mv . row + mi -> bmi [ block1 ] . as_mv [ idx ] . as_mv . row ) , round_mv_comp_q2 ( mi -> bmi [ block0 ] . as_mv [ idx ] . as_mv . col + mi -> bmi [ block1 ] . as_mv [ idx ] . as_mv . col ) }\n ;\n return res ;\n }"}
{"idx": 16432, "target": 0, "func": "int server_handler ( TSCont contp , TSEvent event , void * data ) {\n SDK_NetVConn_Params * params = ( SDK_NetVConn_Params * ) TSContDataGet ( contp ) ;\n if ( event == TS_EVENT_NET_ACCEPT ) {\n SDK_RPRINT ( params -> test , params -> api , \"ServerEvent NET_ACCEPT\" , TC_PASS , \"ok\" ) ;\n params -> buffer = TSIOBufferCreate ( ) ;\n params -> vc = ( TSVConn ) data ;\n TSVConnRead ( ( TSVConn ) data , contp , params -> buffer , 100 ) ;\n }\n else if ( event == TS_EVENT_VCONN_EOS ) {\n TSContDestroy ( contp ) ;\n SDK_RPRINT ( params -> test , params -> api , \"ServerEvent EOS\" , TC_PASS , \"ok\" ) ;\n * params -> pstatus = REGRESSION_TEST_PASSED ;\n delete params ;\n }\n else if ( event == TS_EVENT_VCONN_READ_READY ) {\n SDK_RPRINT ( params -> test , params -> api , \"ServerEvent READ_READY\" , TC_PASS , \"ok\" ) ;\n }\n else {\n SDK_RPRINT ( params -> test , params -> api , \"ServerEvent\" , TC_FAIL , \"received unexpected event %d\" , event ) ;\n * params -> pstatus = REGRESSION_TEST_FAILED ;\n delete params ;\n }\n return 1 ;\n }"}
{"idx": 16433, "target": 0, "func": "static void dissect_zcl_color_control_move_to_saturation ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_saturation , tvb , * offset , 1 , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_transit_time , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n }"}
{"idx": 16434, "target": 0, "func": "static int selinux_socket_recvmsg ( struct socket * sock , struct msghdr * msg , int size , int flags ) {\n return sock_has_perm ( current , sock -> sk , SOCKET__READ ) ;\n }"}
{"idx": 16435, "target": 0, "func": "static int dissect_h225_ReleaseComplete_UUIE ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 525 \"./asn1/h225/h225.cnf\" h225_packet_info * h225_pi ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_ReleaseComplete_UUIE , ReleaseComplete_UUIE_sequence ) ;\n # line 529 \"./asn1/h225/h225.cnf\" h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> cs_type = H225_RELEASE_COMPLET ;\n g_snprintf ( h225_pi -> frame_label , 50 , \"%s\" , val_to_str ( h225_pi -> cs_type , T_h323_message_body_vals , \"<unknown>\" ) ) ;\n }\n return offset ;\n }"}
{"idx": 16436, "target": 0, "func": "static inline void svq3_mc_dir_part ( SVQ3Context * s , int x , int y , int width , int height , int mx , int my , int dxy , int thirdpel , int dir , int avg ) {\n H264Context * h = & s -> h ;\n const Picture * pic = ( dir == 0 ) ? s -> last_pic : s -> next_pic ;\n uint8_t * src , * dest ;\n int i , emu = 0 ;\n int blocksize = 2 - ( width >> 3 ) ;\n mx += x ;\n my += y ;\n if ( mx < 0 || mx >= s -> h_edge_pos - width - 1 || my < 0 || my >= s -> v_edge_pos - height - 1 ) {\n emu = 1 ;\n mx = av_clip ( mx , - 16 , s -> h_edge_pos - width + 15 ) ;\n my = av_clip ( my , - 16 , s -> v_edge_pos - height + 15 ) ;\n }\n dest = h -> cur_pic . f . data [ 0 ] + x + y * h -> linesize ;\n src = pic -> f . data [ 0 ] + mx + my * h -> linesize ;\n if ( emu ) {\n h -> vdsp . emulated_edge_mc ( h -> edge_emu_buffer , src , h -> linesize , width + 1 , height + 1 , mx , my , s -> h_edge_pos , s -> v_edge_pos ) ;\n src = h -> edge_emu_buffer ;\n }\n if ( thirdpel ) ( avg ? h -> dsp . avg_tpel_pixels_tab : h -> dsp . put_tpel_pixels_tab ) [ dxy ] ( dest , src , h -> linesize , width , height ) ;\n else ( avg ? h -> dsp . avg_pixels_tab : h -> dsp . put_pixels_tab ) [ blocksize ] [ dxy ] ( dest , src , h -> linesize , height ) ;\n if ( ! ( h -> flags & CODEC_FLAG_GRAY ) ) {\n mx = mx + ( mx < ( int ) x ) >> 1 ;\n my = my + ( my < ( int ) y ) >> 1 ;\n width = width >> 1 ;\n height = height >> 1 ;\n blocksize ++ ;\n for ( i = 1 ;\n i < 3 ;\n i ++ ) {\n dest = h -> cur_pic . f . data [ i ] + ( x >> 1 ) + ( y >> 1 ) * h -> uvlinesize ;\n src = pic -> f . data [ i ] + mx + my * h -> uvlinesize ;\n if ( emu ) {\n h -> vdsp . emulated_edge_mc ( h -> edge_emu_buffer , src , h -> uvlinesize , width + 1 , height + 1 , mx , my , ( s -> h_edge_pos >> 1 ) , s -> v_edge_pos >> 1 ) ;\n src = h -> edge_emu_buffer ;\n }\n if ( thirdpel ) ( avg ? h -> dsp . avg_tpel_pixels_tab : h -> dsp . put_tpel_pixels_tab ) [ dxy ] ( dest , src , h -> uvlinesize , width , height ) ;\n else ( avg ? h -> dsp . avg_pixels_tab : h -> dsp . put_pixels_tab ) [ blocksize ] [ dxy ] ( dest , src , h -> uvlinesize , height ) ;\n }\n }\n }"}
{"idx": 16437, "target": 0, "func": "int zfor ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n register es_ptr ep ;\n int code ;\n float params [ 3 ] ;\n if ( ( code = float_params ( op - 1 , 3 , params ) ) < 0 ) return code ;\n if ( params [ 0 ] == 0.0 && params [ 1 ] == 0.0 ) {\n pop ( 4 ) ;\n return 0 ;\n }\n check_estack ( 7 ) ;\n ep = esp + 6 ;\n check_proc ( * op ) ;\n if ( r_has_type ( op - 3 , t_integer ) && r_has_type ( op - 2 , t_integer ) ) {\n make_int ( ep - 4 , op [ - 3 ] . value . intval ) ;\n make_int ( ep - 3 , op [ - 2 ] . value . intval ) ;\n switch ( r_type ( op - 1 ) ) {\n case t_integer : make_int ( ep - 2 , op [ - 1 ] . value . intval ) ;\n break ;\n case t_real : make_int ( ep - 2 , ( long ) op [ - 1 ] . value . realval ) ;\n break ;\n default : return_op_typecheck ( op - 1 ) ;\n }\n if ( ep [ - 3 ] . value . intval >= 0 ) make_op_estack ( ep , for_pos_int_continue ) ;\n else make_op_estack ( ep , for_neg_int_continue ) ;\n }\n else {\n make_real ( ep - 4 , params [ 0 ] ) ;\n make_real ( ep - 3 , params [ 1 ] ) ;\n make_real ( ep - 2 , params [ 2 ] ) ;\n make_op_estack ( ep , for_real_continue ) ;\n }\n make_mark_estack ( ep - 5 , es_for , no_cleanup ) ;\n ref_assign ( ep - 1 , op ) ;\n esp = ep ;\n pop ( 4 ) ;\n return o_push_estack ;\n }"}
{"idx": 16438, "target": 0, "func": "static inline void tgq_dconly ( TgqContext * s , unsigned char * dst , int dst_stride , int dc ) {\n int level = av_clip_uint8 ( ( dc * s -> qtable [ 0 ] + 2056 ) >> 4 ) ;\n int j ;\n for ( j = 0 ;\n j < 8 ;\n j ++ ) memset ( dst + j * dst_stride , level , 8 ) ;\n }"}
{"idx": 16439, "target": 0, "func": "static void dtap_tp_ue_test_loop_mode_3_rlc_sdu_counter_response ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_len = len ;\n curr_offset = offset ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_TP_RLC_SDU_COUNTER_VALUE , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 16440, "target": 0, "func": "static void dissect_rsvp_message_id ( proto_tree * ti , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int type ) {\n int offset2 = offset + 4 ;\n switch ( type ) {\n case 1 : proto_tree_add_uint ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_message_id_flags , tvb , offset + 4 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_message_id_epoch , tvb , offset + 5 , 3 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_message_id_message_id , tvb , offset + 8 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_set_text ( ti , \"MESSAGE-ID: %d %s\" , tvb_get_ntohl ( tvb , offset + 8 ) , tvb_get_guint8 ( tvb , offset + 4 ) & 1 ? \"(Ack Desired)\" : \"\" ) ;\n break ;\n default : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"Unknown (%u)\" , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_message_id_data , tvb , offset2 , obj_length - 4 , ENC_NA ) ;\n break ;\n }\n }"}
{"idx": 16441, "target": 0, "func": "static __always_inline __be16 __cpu_to_be16p ( const __u16 * p ) {\n return ( __be16 ) __swab16p ( p ) ;\n }"}
{"idx": 16442, "target": 0, "func": "static PyObject * string_isalnum ( PyStringObject * self ) {\n register const unsigned char * p = ( unsigned char * ) PyString_AS_STRING ( self ) ;\n register const unsigned char * e ;\n if ( PyString_GET_SIZE ( self ) == 1 && isalnum ( * p ) ) return PyBool_FromLong ( 1 ) ;\n if ( PyString_GET_SIZE ( self ) == 0 ) return PyBool_FromLong ( 0 ) ;\n e = p + PyString_GET_SIZE ( self ) ;\n for ( ;\n p < e ;\n p ++ ) {\n if ( ! isalnum ( * p ) ) return PyBool_FromLong ( 0 ) ;\n }\n return PyBool_FromLong ( 1 ) ;\n }"}
{"idx": 16443, "target": 0, "func": "static void warn_or_exit_on_errorv ( vpx_codec_ctx_t * ctx , int fatal , const char * s , va_list ap ) {\n if ( ctx -> err ) {\n const char * detail = vpx_codec_error_detail ( ctx ) ;\n vfprintf ( stderr , s , ap ) ;\n fprintf ( stderr , \": %s\\n\" , vpx_codec_error ( ctx ) ) ;\n if ( detail ) fprintf ( stderr , \" %s\\n\" , detail ) ;\n if ( fatal ) exit ( EXIT_FAILURE ) ;\n }\n }"}
{"idx": 16444, "target": 0, "func": "gpg_error_t ksba_oid_from_str ( const char * string , unsigned char * * rbuf , size_t * rlength ) {\n unsigned char * buf ;\n size_t buflen ;\n unsigned long val1 , val ;\n const char * endp ;\n int arcno ;\n if ( ! string || ! rbuf || ! rlength ) return gpg_error ( GPG_ERR_INV_VALUE ) ;\n * rbuf = NULL ;\n * rlength = 0 ;\n if ( ! strncmp ( string , \"oid.\" , 4 ) || ! strncmp ( string , \"OID.\" , 4 ) ) string += 4 ;\n if ( ! * string ) return gpg_error ( GPG_ERR_INV_VALUE ) ;\n buf = xtrymalloc ( strlen ( string ) + 2 ) ;\n if ( ! buf ) return gpg_error ( GPG_ERR_ENOMEM ) ;\n buflen = 0 ;\n val1 = 0 ;\n arcno = 0 ;\n do {\n arcno ++ ;\n val = strtoul ( string , ( char * * ) & endp , 10 ) ;\n if ( ! digitp ( string ) || ! ( * endp == '.' || ! * endp ) ) {\n xfree ( buf ) ;\n return gpg_error ( GPG_ERR_INV_OID_STRING ) ;\n }\n if ( * endp == '.' ) string = endp + 1 ;\n if ( arcno == 1 ) {\n if ( val > 2 ) break ;\n val1 = val ;\n }\n else if ( arcno == 2 ) {\n if ( val1 < 2 ) {\n if ( val > 39 ) {\n xfree ( buf ) ;\n return gpg_error ( GPG_ERR_INV_OID_STRING ) ;\n }\n buf [ buflen ++ ] = val1 * 40 + val ;\n }\n else {\n val += 80 ;\n buflen = make_flagged_int ( val , buf , buflen ) ;\n }\n }\n else {\n buflen = make_flagged_int ( val , buf , buflen ) ;\n }\n }\n while ( * endp == '.' ) ;\n if ( arcno == 1 ) {\n xfree ( buf ) ;\n return gpg_error ( GPG_ERR_INV_OID_STRING ) ;\n }\n * rbuf = buf ;\n * rlength = buflen ;\n return 0 ;\n }"}
{"idx": 16445, "target": 0, "func": "void vp8_sixtap_predict8x8_neon ( unsigned char * src_ptr , int src_pixels_per_line , int xoffset , int yoffset , unsigned char * dst_ptr , int dst_pitch ) {\n unsigned char * src , * tmpp ;\n unsigned char tmp [ 64 ] ;\n int i ;\n uint8x8_t d0u8 , d1u8 , d2u8 , d3u8 , d4u8 , d5u8 , d6u8 , d7u8 , d8u8 , d9u8 ;\n uint8x8_t d18u8 , d19u8 , d20u8 , d21u8 , d22u8 , d23u8 , d24u8 , d25u8 ;\n uint8x8_t d26u8 , d27u8 , d28u8 , d29u8 , d30u8 , d31u8 ;\n int8x8_t dtmps8 , d0s8 , d1s8 , d2s8 , d3s8 , d4s8 , d5s8 ;\n uint16x8_t q3u16 , q4u16 , q5u16 , q6u16 , q7u16 ;\n uint16x8_t q8u16 , q9u16 , q10u16 , q11u16 , q12u16 ;\n int16x8_t q3s16 , q4s16 , q5s16 , q6s16 , q7s16 ;\n int16x8_t q8s16 , q9s16 , q10s16 , q11s16 , q12s16 ;\n uint8x16_t q3u8 , q4u8 , q5u8 , q6u8 , q7u8 , q9u8 , q10u8 , q11u8 , q12u8 ;\n if ( xoffset == 0 ) {\n dtmps8 = vld1_s8 ( vp8_sub_pel_filters [ yoffset ] ) ;\n d0s8 = vdup_lane_s8 ( dtmps8 , 0 ) ;\n d1s8 = vdup_lane_s8 ( dtmps8 , 1 ) ;\n d2s8 = vdup_lane_s8 ( dtmps8 , 2 ) ;\n d3s8 = vdup_lane_s8 ( dtmps8 , 3 ) ;\n d4s8 = vdup_lane_s8 ( dtmps8 , 4 ) ;\n d5s8 = vdup_lane_s8 ( dtmps8 , 5 ) ;\n d0u8 = vreinterpret_u8_s8 ( vabs_s8 ( d0s8 ) ) ;\n d1u8 = vreinterpret_u8_s8 ( vabs_s8 ( d1s8 ) ) ;\n d2u8 = vreinterpret_u8_s8 ( vabs_s8 ( d2s8 ) ) ;\n d3u8 = vreinterpret_u8_s8 ( vabs_s8 ( d3s8 ) ) ;\n d4u8 = vreinterpret_u8_s8 ( vabs_s8 ( d4s8 ) ) ;\n d5u8 = vreinterpret_u8_s8 ( vabs_s8 ( d5s8 ) ) ;\n src = src_ptr - src_pixels_per_line * 2 ;\n d18u8 = vld1_u8 ( src ) ;\n src += src_pixels_per_line ;\n d19u8 = vld1_u8 ( src ) ;\n src += src_pixels_per_line ;\n d20u8 = vld1_u8 ( src ) ;\n src += src_pixels_per_line ;\n d21u8 = vld1_u8 ( src ) ;\n src += src_pixels_per_line ;\n d22u8 = vld1_u8 ( src ) ;\n src += src_pixels_per_line ;\n d23u8 = vld1_u8 ( src ) ;\n src += src_pixels_per_line ;\n d24u8 = vld1_u8 ( src ) ;\n src += src_pixels_per_line ;\n d25u8 = vld1_u8 ( src ) ;\n src += src_pixels_per_line ;\n d26u8 = vld1_u8 ( src ) ;\n src += src_pixels_per_line ;\n d27u8 = vld1_u8 ( src ) ;\n src += src_pixels_per_line ;\n d28u8 = vld1_u8 ( src ) ;\n src += src_pixels_per_line ;\n d29u8 = vld1_u8 ( src ) ;\n src += src_pixels_per_line ;\n d30u8 = vld1_u8 ( src ) ;\n for ( i = 2 ;\n i > 0 ;\n i -- ) {\n q3u16 = vmull_u8 ( d18u8 , d0u8 ) ;\n q4u16 = vmull_u8 ( d19u8 , d0u8 ) ;\n q5u16 = vmull_u8 ( d20u8 , d0u8 ) ;\n q6u16 = vmull_u8 ( d21u8 , d0u8 ) ;\n q3u16 = vmlsl_u8 ( q3u16 , d19u8 , d1u8 ) ;\n q4u16 = vmlsl_u8 ( q4u16 , d20u8 , d1u8 ) ;\n q5u16 = vmlsl_u8 ( q5u16 , d21u8 , d1u8 ) ;\n q6u16 = vmlsl_u8 ( q6u16 , d22u8 , d1u8 ) ;\n q3u16 = vmlsl_u8 ( q3u16 , d22u8 , d4u8 ) ;\n q4u16 = vmlsl_u8 ( q4u16 , d23u8 , d4u8 ) ;\n q5u16 = vmlsl_u8 ( q5u16 , d24u8 , d4u8 ) ;\n q6u16 = vmlsl_u8 ( q6u16 , d25u8 , d4u8 ) ;\n q3u16 = vmlal_u8 ( q3u16 , d20u8 , d2u8 ) ;\n q4u16 = vmlal_u8 ( q4u16 , d21u8 , d2u8 ) ;\n q5u16 = vmlal_u8 ( q5u16 , d22u8 , d2u8 ) ;\n q6u16 = vmlal_u8 ( q6u16 , d23u8 , d2u8 ) ;\n q3u16 = vmlal_u8 ( q3u16 , d23u8 , d5u8 ) ;\n q4u16 = vmlal_u8 ( q4u16 , d24u8 , d5u8 ) ;\n q5u16 = vmlal_u8 ( q5u16 , d25u8 , d5u8 ) ;\n q6u16 = vmlal_u8 ( q6u16 , d26u8 , d5u8 ) ;\n q7u16 = vmull_u8 ( d21u8 , d3u8 ) ;\n q8u16 = vmull_u8 ( d22u8 , d3u8 ) ;\n q9u16 = vmull_u8 ( d23u8 , d3u8 ) ;\n q10u16 = vmull_u8 ( d24u8 , d3u8 ) ;\n q3s16 = vreinterpretq_s16_u16 ( q3u16 ) ;\n q4s16 = vreinterpretq_s16_u16 ( q4u16 ) ;\n q5s16 = vreinterpretq_s16_u16 ( q5u16 ) ;\n q6s16 = vreinterpretq_s16_u16 ( q6u16 ) ;\n q7s16 = vreinterpretq_s16_u16 ( q7u16 ) ;\n q8s16 = vreinterpretq_s16_u16 ( q8u16 ) ;\n q9s16 = vreinterpretq_s16_u16 ( q9u16 ) ;\n q10s16 = vreinterpretq_s16_u16 ( q10u16 ) ;\n q7s16 = vqaddq_s16 ( q7s16 , q3s16 ) ;\n q8s16 = vqaddq_s16 ( q8s16 , q4s16 ) ;\n q9s16 = vqaddq_s16 ( q9s16 , q5s16 ) ;\n q10s16 = vqaddq_s16 ( q10s16 , q6s16 ) ;\n d6u8 = vqrshrun_n_s16 ( q7s16 , 7 ) ;\n d7u8 = vqrshrun_n_s16 ( q8s16 , 7 ) ;\n d8u8 = vqrshrun_n_s16 ( q9s16 , 7 ) ;\n d9u8 = vqrshrun_n_s16 ( q10s16 , 7 ) ;\n d18u8 = d22u8 ;\n d19u8 = d23u8 ;\n d20u8 = d24u8 ;\n d21u8 = d25u8 ;\n d22u8 = d26u8 ;\n d23u8 = d27u8 ;\n d24u8 = d28u8 ;\n d25u8 = d29u8 ;\n d26u8 = d30u8 ;\n vst1_u8 ( dst_ptr , d6u8 ) ;\n dst_ptr += dst_pitch ;\n vst1_u8 ( dst_ptr , d7u8 ) ;\n dst_ptr += dst_pitch ;\n vst1_u8 ( dst_ptr , d8u8 ) ;\n dst_ptr += dst_pitch ;\n vst1_u8 ( dst_ptr , d9u8 ) ;\n dst_ptr += dst_pitch ;\n }\n return ;\n }\n dtmps8 = vld1_s8 ( vp8_sub_pel_filters [ xoffset ] ) ;\n d0s8 = vdup_lane_s8 ( dtmps8 , 0 ) ;\n d1s8 = vdup_lane_s8 ( dtmps8 , 1 ) ;\n d2s8 = vdup_lane_s8 ( dtmps8 , 2 ) ;\n d3s8 = vdup_lane_s8 ( dtmps8 , 3 ) ;\n d4s8 = vdup_lane_s8 ( dtmps8 , 4 ) ;\n d5s8 = vdup_lane_s8 ( dtmps8 , 5 ) ;\n d0u8 = vreinterpret_u8_s8 ( vabs_s8 ( d0s8 ) ) ;\n d1u8 = vreinterpret_u8_s8 ( vabs_s8 ( d1s8 ) ) ;\n d2u8 = vreinterpret_u8_s8 ( vabs_s8 ( d2s8 ) ) ;\n d3u8 = vreinterpret_u8_s8 ( vabs_s8 ( d3s8 ) ) ;\n d4u8 = vreinterpret_u8_s8 ( vabs_s8 ( d4s8 ) ) ;\n d5u8 = vreinterpret_u8_s8 ( vabs_s8 ( d5s8 ) ) ;\n if ( yoffset == 0 ) src = src_ptr - 2 ;\n else src = src_ptr - 2 - ( src_pixels_per_line * 2 ) ;\n tmpp = tmp ;\n for ( i = 2 ;\n i > 0 ;\n i -- ) {\n q3u8 = vld1q_u8 ( src ) ;\n src += src_pixels_per_line ;\n q4u8 = vld1q_u8 ( src ) ;\n src += src_pixels_per_line ;\n q5u8 = vld1q_u8 ( src ) ;\n src += src_pixels_per_line ;\n q6u8 = vld1q_u8 ( src ) ;\n src += src_pixels_per_line ;\n __builtin_prefetch ( src ) ;\n __builtin_prefetch ( src + src_pixels_per_line ) ;\n __builtin_prefetch ( src + src_pixels_per_line * 2 ) ;\n q7u16 = vmull_u8 ( vget_low_u8 ( q3u8 ) , d0u8 ) ;\n q8u16 = vmull_u8 ( vget_low_u8 ( q4u8 ) , d0u8 ) ;\n q9u16 = vmull_u8 ( vget_low_u8 ( q5u8 ) , d0u8 ) ;\n q10u16 = vmull_u8 ( vget_low_u8 ( q6u8 ) , d0u8 ) ;\n d28u8 = vext_u8 ( vget_low_u8 ( q3u8 ) , vget_high_u8 ( q3u8 ) , 1 ) ;\n d29u8 = vext_u8 ( vget_low_u8 ( q4u8 ) , vget_high_u8 ( q4u8 ) , 1 ) ;\n d30u8 = vext_u8 ( vget_low_u8 ( q5u8 ) , vget_high_u8 ( q5u8 ) , 1 ) ;\n d31u8 = vext_u8 ( vget_low_u8 ( q6u8 ) , vget_high_u8 ( q6u8 ) , 1 ) ;\n q7u16 = vmlsl_u8 ( q7u16 , d28u8 , d1u8 ) ;\n q8u16 = vmlsl_u8 ( q8u16 , d29u8 , d1u8 ) ;\n q9u16 = vmlsl_u8 ( q9u16 , d30u8 , d1u8 ) ;\n q10u16 = vmlsl_u8 ( q10u16 , d31u8 , d1u8 ) ;\n d28u8 = vext_u8 ( vget_low_u8 ( q3u8 ) , vget_high_u8 ( q3u8 ) , 4 ) ;\n d29u8 = vext_u8 ( vget_low_u8 ( q4u8 ) , vget_high_u8 ( q4u8 ) , 4 ) ;\n d30u8 = vext_u8 ( vget_low_u8 ( q5u8 ) , vget_high_u8 ( q5u8 ) , 4 ) ;\n d31u8 = vext_u8 ( vget_low_u8 ( q6u8 ) , vget_high_u8 ( q6u8 ) , 4 ) ;\n q7u16 = vmlsl_u8 ( q7u16 , d28u8 , d4u8 ) ;\n q8u16 = vmlsl_u8 ( q8u16 , d29u8 , d4u8 ) ;\n q9u16 = vmlsl_u8 ( q9u16 , d30u8 , d4u8 ) ;\n q10u16 = vmlsl_u8 ( q10u16 , d31u8 , d4u8 ) ;\n d28u8 = vext_u8 ( vget_low_u8 ( q3u8 ) , vget_high_u8 ( q3u8 ) , 2 ) ;\n d29u8 = vext_u8 ( vget_low_u8 ( q4u8 ) , vget_high_u8 ( q4u8 ) , 2 ) ;\n d30u8 = vext_u8 ( vget_low_u8 ( q5u8 ) , vget_high_u8 ( q5u8 ) , 2 ) ;\n d31u8 = vext_u8 ( vget_low_u8 ( q6u8 ) , vget_high_u8 ( q6u8 ) , 2 ) ;\n q7u16 = vmlal_u8 ( q7u16 , d28u8 , d2u8 ) ;\n q8u16 = vmlal_u8 ( q8u16 , d29u8 , d2u8 ) ;\n q9u16 = vmlal_u8 ( q9u16 , d30u8 , d2u8 ) ;\n q10u16 = vmlal_u8 ( q10u16 , d31u8 , d2u8 ) ;\n d28u8 = vext_u8 ( vget_low_u8 ( q3u8 ) , vget_high_u8 ( q3u8 ) , 5 ) ;\n d29u8 = vext_u8 ( vget_low_u8 ( q4u8 ) , vget_high_u8 ( q4u8 ) , 5 ) ;\n d30u8 = vext_u8 ( vget_low_u8 ( q5u8 ) , vget_high_u8 ( q5u8 ) , 5 ) ;\n d31u8 = vext_u8 ( vget_low_u8 ( q6u8 ) , vget_high_u8 ( q6u8 ) , 5 ) ;\n q7u16 = vmlal_u8 ( q7u16 , d28u8 , d5u8 ) ;\n q8u16 = vmlal_u8 ( q8u16 , d29u8 , d5u8 ) ;\n q9u16 = vmlal_u8 ( q9u16 , d30u8 , d5u8 ) ;\n q10u16 = vmlal_u8 ( q10u16 , d31u8 , d5u8 ) ;\n d28u8 = vext_u8 ( vget_low_u8 ( q3u8 ) , vget_high_u8 ( q3u8 ) , 3 ) ;\n d29u8 = vext_u8 ( vget_low_u8 ( q4u8 ) , vget_high_u8 ( q4u8 ) , 3 ) ;\n d30u8 = vext_u8 ( vget_low_u8 ( q5u8 ) , vget_high_u8 ( q5u8 ) , 3 ) ;\n d31u8 = vext_u8 ( vget_low_u8 ( q6u8 ) , vget_high_u8 ( q6u8 ) , 3 ) ;\n q3u16 = vmull_u8 ( d28u8 , d3u8 ) ;\n q4u16 = vmull_u8 ( d29u8 , d3u8 ) ;\n q5u16 = vmull_u8 ( d30u8 , d3u8 ) ;\n q6u16 = vmull_u8 ( d31u8 , d3u8 ) ;\n q3s16 = vreinterpretq_s16_u16 ( q3u16 ) ;\n q4s16 = vreinterpretq_s16_u16 ( q4u16 ) ;\n q5s16 = vreinterpretq_s16_u16 ( q5u16 ) ;\n q6s16 = vreinterpretq_s16_u16 ( q6u16 ) ;\n q7s16 = vreinterpretq_s16_u16 ( q7u16 ) ;\n q8s16 = vreinterpretq_s16_u16 ( q8u16 ) ;\n q9s16 = vreinterpretq_s16_u16 ( q9u16 ) ;\n q10s16 = vreinterpretq_s16_u16 ( q10u16 ) ;\n q7s16 = vqaddq_s16 ( q7s16 , q3s16 ) ;\n q8s16 = vqaddq_s16 ( q8s16 , q4s16 ) ;\n q9s16 = vqaddq_s16 ( q9s16 , q5s16 ) ;\n q10s16 = vqaddq_s16 ( q10s16 , q6s16 ) ;\n d22u8 = vqrshrun_n_s16 ( q7s16 , 7 ) ;\n d23u8 = vqrshrun_n_s16 ( q8s16 , 7 ) ;\n d24u8 = vqrshrun_n_s16 ( q9s16 , 7 ) ;\n d25u8 = vqrshrun_n_s16 ( q10s16 , 7 ) ;\n if ( yoffset == 0 ) {\n vst1_u8 ( dst_ptr , d22u8 ) ;\n dst_ptr += dst_pitch ;\n vst1_u8 ( dst_ptr , d23u8 ) ;\n dst_ptr += dst_pitch ;\n vst1_u8 ( dst_ptr , d24u8 ) ;\n dst_ptr += dst_pitch ;\n vst1_u8 ( dst_ptr , d25u8 ) ;\n dst_ptr += dst_pitch ;\n }\n else {\n vst1_u8 ( tmpp , d22u8 ) ;\n tmpp += 8 ;\n vst1_u8 ( tmpp , d23u8 ) ;\n tmpp += 8 ;\n vst1_u8 ( tmpp , d24u8 ) ;\n tmpp += 8 ;\n vst1_u8 ( tmpp , d25u8 ) ;\n tmpp += 8 ;\n }\n }\n if ( yoffset == 0 ) return ;\n q3u8 = vld1q_u8 ( src ) ;\n src += src_pixels_per_line ;\n q4u8 = vld1q_u8 ( src ) ;\n src += src_pixels_per_line ;\n q5u8 = vld1q_u8 ( src ) ;\n src += src_pixels_per_line ;\n q6u8 = vld1q_u8 ( src ) ;\n src += src_pixels_per_line ;\n q7u8 = vld1q_u8 ( src ) ;\n q8u16 = vmull_u8 ( vget_low_u8 ( q3u8 ) , d0u8 ) ;\n q9u16 = vmull_u8 ( vget_low_u8 ( q4u8 ) , d0u8 ) ;\n q10u16 = vmull_u8 ( vget_low_u8 ( q5u8 ) , d0u8 ) ;\n q11u16 = vmull_u8 ( vget_low_u8 ( q6u8 ) , d0u8 ) ;\n q12u16 = vmull_u8 ( vget_low_u8 ( q7u8 ) , d0u8 ) ;\n d27u8 = vext_u8 ( vget_low_u8 ( q3u8 ) , vget_high_u8 ( q3u8 ) , 1 ) ;\n d28u8 = vext_u8 ( vget_low_u8 ( q4u8 ) , vget_high_u8 ( q4u8 ) , 1 ) ;\n d29u8 = vext_u8 ( vget_low_u8 ( q5u8 ) , vget_high_u8 ( q5u8 ) , 1 ) ;\n d30u8 = vext_u8 ( vget_low_u8 ( q6u8 ) , vget_high_u8 ( q6u8 ) , 1 ) ;\n d31u8 = vext_u8 ( vget_low_u8 ( q7u8 ) , vget_high_u8 ( q7u8 ) , 1 ) ;\n q8u16 = vmlsl_u8 ( q8u16 , d27u8 , d1u8 ) ;\n q9u16 = vmlsl_u8 ( q9u16 , d28u8 , d1u8 ) ;\n q10u16 = vmlsl_u8 ( q10u16 , d29u8 , d1u8 ) ;\n q11u16 = vmlsl_u8 ( q11u16 , d30u8 , d1u8 ) ;\n q12u16 = vmlsl_u8 ( q12u16 , d31u8 , d1u8 ) ;\n d27u8 = vext_u8 ( vget_low_u8 ( q3u8 ) , vget_high_u8 ( q3u8 ) , 4 ) ;\n d28u8 = vext_u8 ( vget_low_u8 ( q4u8 ) , vget_high_u8 ( q4u8 ) , 4 ) ;\n d29u8 = vext_u8 ( vget_low_u8 ( q5u8 ) , vget_high_u8 ( q5u8 ) , 4 ) ;\n d30u8 = vext_u8 ( vget_low_u8 ( q6u8 ) , vget_high_u8 ( q6u8 ) , 4 ) ;\n d31u8 = vext_u8 ( vget_low_u8 ( q7u8 ) , vget_high_u8 ( q7u8 ) , 4 ) ;\n q8u16 = vmlsl_u8 ( q8u16 , d27u8 , d4u8 ) ;\n q9u16 = vmlsl_u8 ( q9u16 , d28u8 , d4u8 ) ;\n q10u16 = vmlsl_u8 ( q10u16 , d29u8 , d4u8 ) ;\n q11u16 = vmlsl_u8 ( q11u16 , d30u8 , d4u8 ) ;\n q12u16 = vmlsl_u8 ( q12u16 , d31u8 , d4u8 ) ;\n d27u8 = vext_u8 ( vget_low_u8 ( q3u8 ) , vget_high_u8 ( q3u8 ) , 2 ) ;\n d28u8 = vext_u8 ( vget_low_u8 ( q4u8 ) , vget_high_u8 ( q4u8 ) , 2 ) ;\n d29u8 = vext_u8 ( vget_low_u8 ( q5u8 ) , vget_high_u8 ( q5u8 ) , 2 ) ;\n d30u8 = vext_u8 ( vget_low_u8 ( q6u8 ) , vget_high_u8 ( q6u8 ) , 2 ) ;\n d31u8 = vext_u8 ( vget_low_u8 ( q7u8 ) , vget_high_u8 ( q7u8 ) , 2 ) ;\n q8u16 = vmlal_u8 ( q8u16 , d27u8 , d2u8 ) ;\n q9u16 = vmlal_u8 ( q9u16 , d28u8 , d2u8 ) ;\n q10u16 = vmlal_u8 ( q10u16 , d29u8 , d2u8 ) ;\n q11u16 = vmlal_u8 ( q11u16 , d30u8 , d2u8 ) ;\n q12u16 = vmlal_u8 ( q12u16 , d31u8 , d2u8 ) ;\n d27u8 = vext_u8 ( vget_low_u8 ( q3u8 ) , vget_high_u8 ( q3u8 ) , 5 ) ;\n d28u8 = vext_u8 ( vget_low_u8 ( q4u8 ) , vget_high_u8 ( q4u8 ) , 5 ) ;\n d29u8 = vext_u8 ( vget_low_u8 ( q5u8 ) , vget_high_u8 ( q5u8 ) , 5 ) ;\n d30u8 = vext_u8 ( vget_low_u8 ( q6u8 ) , vget_high_u8 ( q6u8 ) , 5 ) ;\n d31u8 = vext_u8 ( vget_low_u8 ( q7u8 ) , vget_high_u8 ( q7u8 ) , 5 ) ;\n q8u16 = vmlal_u8 ( q8u16 , d27u8 , d5u8 ) ;\n q9u16 = vmlal_u8 ( q9u16 , d28u8 , d5u8 ) ;\n q10u16 = vmlal_u8 ( q10u16 , d29u8 , d5u8 ) ;\n q11u16 = vmlal_u8 ( q11u16 , d30u8 , d5u8 ) ;\n q12u16 = vmlal_u8 ( q12u16 , d31u8 , d5u8 ) ;\n d27u8 = vext_u8 ( vget_low_u8 ( q3u8 ) , vget_high_u8 ( q3u8 ) , 3 ) ;\n d28u8 = vext_u8 ( vget_low_u8 ( q4u8 ) , vget_high_u8 ( q4u8 ) , 3 ) ;\n d29u8 = vext_u8 ( vget_low_u8 ( q5u8 ) , vget_high_u8 ( q5u8 ) , 3 ) ;\n d30u8 = vext_u8 ( vget_low_u8 ( q6u8 ) , vget_high_u8 ( q6u8 ) , 3 ) ;\n d31u8 = vext_u8 ( vget_low_u8 ( q7u8 ) , vget_high_u8 ( q7u8 ) , 3 ) ;\n q3u16 = vmull_u8 ( d27u8 , d3u8 ) ;\n q4u16 = vmull_u8 ( d28u8 , d3u8 ) ;\n q5u16 = vmull_u8 ( d29u8 , d3u8 ) ;\n q6u16 = vmull_u8 ( d30u8 , d3u8 ) ;\n q7u16 = vmull_u8 ( d31u8 , d3u8 ) ;\n q3s16 = vreinterpretq_s16_u16 ( q3u16 ) ;\n q4s16 = vreinterpretq_s16_u16 ( q4u16 ) ;\n q5s16 = vreinterpretq_s16_u16 ( q5u16 ) ;\n q6s16 = vreinterpretq_s16_u16 ( q6u16 ) ;\n q7s16 = vreinterpretq_s16_u16 ( q7u16 ) ;\n q8s16 = vreinterpretq_s16_u16 ( q8u16 ) ;\n q9s16 = vreinterpretq_s16_u16 ( q9u16 ) ;\n q10s16 = vreinterpretq_s16_u16 ( q10u16 ) ;\n q11s16 = vreinterpretq_s16_u16 ( q11u16 ) ;\n q12s16 = vreinterpretq_s16_u16 ( q12u16 ) ;\n q8s16 = vqaddq_s16 ( q8s16 , q3s16 ) ;\n q9s16 = vqaddq_s16 ( q9s16 , q4s16 ) ;\n q10s16 = vqaddq_s16 ( q10s16 , q5s16 ) ;\n q11s16 = vqaddq_s16 ( q11s16 , q6s16 ) ;\n q12s16 = vqaddq_s16 ( q12s16 , q7s16 ) ;\n d26u8 = vqrshrun_n_s16 ( q8s16 , 7 ) ;\n d27u8 = vqrshrun_n_s16 ( q9s16 , 7 ) ;\n d28u8 = vqrshrun_n_s16 ( q10s16 , 7 ) ;\n d29u8 = vqrshrun_n_s16 ( q11s16 , 7 ) ;\n d30u8 = vqrshrun_n_s16 ( q12s16 , 7 ) ;\n dtmps8 = vld1_s8 ( vp8_sub_pel_filters [ yoffset ] ) ;\n d0s8 = vdup_lane_s8 ( dtmps8 , 0 ) ;\n d1s8 = vdup_lane_s8 ( dtmps8 , 1 ) ;\n d2s8 = vdup_lane_s8 ( dtmps8 , 2 ) ;\n d3s8 = vdup_lane_s8 ( dtmps8 , 3 ) ;\n d4s8 = vdup_lane_s8 ( dtmps8 , 4 ) ;\n d5s8 = vdup_lane_s8 ( dtmps8 , 5 ) ;\n d0u8 = vreinterpret_u8_s8 ( vabs_s8 ( d0s8 ) ) ;\n d1u8 = vreinterpret_u8_s8 ( vabs_s8 ( d1s8 ) ) ;\n d2u8 = vreinterpret_u8_s8 ( vabs_s8 ( d2s8 ) ) ;\n d3u8 = vreinterpret_u8_s8 ( vabs_s8 ( d3s8 ) ) ;\n d4u8 = vreinterpret_u8_s8 ( vabs_s8 ( d4s8 ) ) ;\n d5u8 = vreinterpret_u8_s8 ( vabs_s8 ( d5s8 ) ) ;\n tmpp = tmp ;\n q9u8 = vld1q_u8 ( tmpp ) ;\n tmpp += 16 ;\n q10u8 = vld1q_u8 ( tmpp ) ;\n tmpp += 16 ;\n q11u8 = vld1q_u8 ( tmpp ) ;\n tmpp += 16 ;\n q12u8 = vld1q_u8 ( tmpp ) ;\n d18u8 = vget_low_u8 ( q9u8 ) ;\n d19u8 = vget_high_u8 ( q9u8 ) ;\n d20u8 = vget_low_u8 ( q10u8 ) ;\n d21u8 = vget_high_u8 ( q10u8 ) ;\n d22u8 = vget_low_u8 ( q11u8 ) ;\n d23u8 = vget_high_u8 ( q11u8 ) ;\n d24u8 = vget_low_u8 ( q12u8 ) ;\n d25u8 = vget_high_u8 ( q12u8 ) ;\n for ( i = 2 ;\n i > 0 ;\n i -- ) {\n q3u16 = vmull_u8 ( d18u8 , d0u8 ) ;\n q4u16 = vmull_u8 ( d19u8 , d0u8 ) ;\n q5u16 = vmull_u8 ( d20u8 , d0u8 ) ;\n q6u16 = vmull_u8 ( d21u8 , d0u8 ) ;\n q3u16 = vmlsl_u8 ( q3u16 , d19u8 , d1u8 ) ;\n q4u16 = vmlsl_u8 ( q4u16 , d20u8 , d1u8 ) ;\n q5u16 = vmlsl_u8 ( q5u16 , d21u8 , d1u8 ) ;\n q6u16 = vmlsl_u8 ( q6u16 , d22u8 , d1u8 ) ;\n q3u16 = vmlsl_u8 ( q3u16 , d22u8 , d4u8 ) ;\n q4u16 = vmlsl_u8 ( q4u16 , d23u8 , d4u8 ) ;\n q5u16 = vmlsl_u8 ( q5u16 , d24u8 , d4u8 ) ;\n q6u16 = vmlsl_u8 ( q6u16 , d25u8 , d4u8 ) ;\n q3u16 = vmlal_u8 ( q3u16 , d20u8 , d2u8 ) ;\n q4u16 = vmlal_u8 ( q4u16 , d21u8 , d2u8 ) ;\n q5u16 = vmlal_u8 ( q5u16 , d22u8 , d2u8 ) ;\n q6u16 = vmlal_u8 ( q6u16 , d23u8 , d2u8 ) ;\n q3u16 = vmlal_u8 ( q3u16 , d23u8 , d5u8 ) ;\n q4u16 = vmlal_u8 ( q4u16 , d24u8 , d5u8 ) ;\n q5u16 = vmlal_u8 ( q5u16 , d25u8 , d5u8 ) ;\n q6u16 = vmlal_u8 ( q6u16 , d26u8 , d5u8 ) ;\n q7u16 = vmull_u8 ( d21u8 , d3u8 ) ;\n q8u16 = vmull_u8 ( d22u8 , d3u8 ) ;\n q9u16 = vmull_u8 ( d23u8 , d3u8 ) ;\n q10u16 = vmull_u8 ( d24u8 , d3u8 ) ;\n q3s16 = vreinterpretq_s16_u16 ( q3u16 ) ;\n q4s16 = vreinterpretq_s16_u16 ( q4u16 ) ;\n q5s16 = vreinterpretq_s16_u16 ( q5u16 ) ;\n q6s16 = vreinterpretq_s16_u16 ( q6u16 ) ;\n q7s16 = vreinterpretq_s16_u16 ( q7u16 ) ;\n q8s16 = vreinterpretq_s16_u16 ( q8u16 ) ;\n q9s16 = vreinterpretq_s16_u16 ( q9u16 ) ;\n q10s16 = vreinterpretq_s16_u16 ( q10u16 ) ;\n q7s16 = vqaddq_s16 ( q7s16 , q3s16 ) ;\n q8s16 = vqaddq_s16 ( q8s16 , q4s16 ) ;\n q9s16 = vqaddq_s16 ( q9s16 , q5s16 ) ;\n q10s16 = vqaddq_s16 ( q10s16 , q6s16 ) ;\n d6u8 = vqrshrun_n_s16 ( q7s16 , 7 ) ;\n d7u8 = vqrshrun_n_s16 ( q8s16 , 7 ) ;\n d8u8 = vqrshrun_n_s16 ( q9s16 , 7 ) ;\n d9u8 = vqrshrun_n_s16 ( q10s16 , 7 ) ;\n d18u8 = d22u8 ;\n d19u8 = d23u8 ;\n d20u8 = d24u8 ;\n d21u8 = d25u8 ;\n d22u8 = d26u8 ;\n d23u8 = d27u8 ;\n d24u8 = d28u8 ;\n d25u8 = d29u8 ;\n d26u8 = d30u8 ;\n vst1_u8 ( dst_ptr , d6u8 ) ;\n dst_ptr += dst_pitch ;\n vst1_u8 ( dst_ptr , d7u8 ) ;\n dst_ptr += dst_pitch ;\n vst1_u8 ( dst_ptr , d8u8 ) ;\n dst_ptr += dst_pitch ;\n vst1_u8 ( dst_ptr , d9u8 ) ;\n dst_ptr += dst_pitch ;\n }\n return ;\n }"}
{"idx": 16446, "target": 0, "func": "int event_base_loopexit ( struct event_base * event_base , const struct timeval * tv ) {\n return ( event_base_once ( event_base , - 1 , EV_TIMEOUT , event_loopexit_cb , event_base , tv ) ) ;\n }"}
{"idx": 16447, "target": 0, "func": "static int selinux_sk_alloc_security ( struct sock * sk , int family , gfp_t priority ) {\n struct sk_security_struct * sksec ;\n sksec = kzalloc ( sizeof ( * sksec ) , priority ) ;\n if ( ! sksec ) return - ENOMEM ;\n sksec -> peer_sid = SECINITSID_UNLABELED ;\n sksec -> sid = SECINITSID_UNLABELED ;\n sksec -> sclass = SECCLASS_SOCKET ;\n selinux_netlbl_sk_security_reset ( sksec ) ;\n sk -> sk_security = sksec ;\n return 0 ;\n }"}
{"idx": 16448, "target": 0, "func": "static void sig_complete_target ( GList * * list , WINDOW_REC * window , const char * word , const char * line , int * want_space ) {\n const char * definition ;\n g_return_if_fail ( list != NULL ) ;\n g_return_if_fail ( word != NULL ) ;\n g_return_if_fail ( line != NULL ) ;\n if ( * line != '\\0' ) {\n if ( ( definition = iconfig_get_str ( \"conversions\" , line , NULL ) ) != NULL ) {\n * list = g_list_append ( NULL , g_strdup ( definition ) ) ;\n signal_stop ( ) ;\n }\n }\n else {\n * list = completion_get_targets ( word ) ;\n if ( * list != NULL ) signal_stop ( ) ;\n }\n }"}
{"idx": 16449, "target": 0, "func": "static void sig_complete_word ( GList * * list , WINDOW_REC * window , const char * word , const char * linestart , int * want_space ) {\n SERVER_REC * server ;\n CHANNEL_REC * channel ;\n QUERY_REC * query ;\n char * prefix ;\n g_return_if_fail ( list != NULL ) ;\n g_return_if_fail ( window != NULL ) ;\n g_return_if_fail ( word != NULL ) ;\n g_return_if_fail ( linestart != NULL ) ;\n server = window -> active_server ;\n if ( server == NULL && servers != NULL ) server = servers -> data ;\n if ( server != NULL && server_ischannel ( server , word ) ) {\n * list = completion_get_channels ( window -> active_server , word ) ;\n if ( * list != NULL ) signal_stop ( ) ;\n return ;\n }\n server = window -> active_server ;\n if ( server == NULL || ! server -> connected ) return ;\n if ( * linestart == '\\0' && * word == '\\0' ) {\n if ( ! completion_empty_line ) return ;\n prefix = g_strdup_printf ( \"%cmsg\" , * cmdchars ) ;\n * list = completion_msg ( server , NULL , \"\" , prefix ) ;\n if ( * list == NULL ) * list = g_list_append ( * list , g_strdup ( prefix ) ) ;\n g_free ( prefix ) ;\n signal_stop ( ) ;\n return ;\n }\n channel = CHANNEL ( window -> active ) ;\n query = QUERY ( window -> active ) ;\n if ( channel == NULL && query != NULL && g_ascii_strncasecmp ( word , query -> name , strlen ( word ) ) == 0 ) {\n * list = g_list_append ( * list , g_strdup ( query -> name ) ) ;\n }\n else if ( channel != NULL ) {\n const char * suffix = * linestart != '\\0' ? NULL : completion_char ;\n complete_window_nicks ( list , window , word , suffix ) ;\n }\n else if ( window -> level & MSGLEVEL_MSGS ) {\n * list = g_list_concat ( completion_msg ( server , NULL , word , NULL ) , * list ) ;\n }\n if ( * list != NULL ) signal_stop ( ) ;\n }"}
{"idx": 16450, "target": 0, "func": "static int mpeg_decode_frame ( AVCodecContext * avctx , void * data , int * got_output , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n Mpeg1Context * s = avctx -> priv_data ;\n AVFrame * picture = data ;\n MpegEncContext * s2 = & s -> mpeg_enc_ctx ;\n av_dlog ( avctx , \"fill_buffer\\n\" ) ;\n if ( buf_size == 0 || ( buf_size == 4 && AV_RB32 ( buf ) == SEQ_END_CODE ) ) {\n if ( s2 -> low_delay == 0 && s2 -> next_picture_ptr ) {\n int ret = av_frame_ref ( picture , & s2 -> next_picture_ptr -> f ) ;\n if ( ret < 0 ) return ret ;\n s2 -> next_picture_ptr = NULL ;\n * got_output = 1 ;\n }\n return buf_size ;\n }\n if ( s2 -> flags & CODEC_FLAG_TRUNCATED ) {\n int next = ff_mpeg1_find_frame_end ( & s2 -> parse_context , buf , buf_size , NULL ) ;\n if ( ff_combine_frame ( & s2 -> parse_context , next , ( const uint8_t * * ) & buf , & buf_size ) < 0 ) return buf_size ;\n }\n if ( s -> mpeg_enc_ctx_allocated == 0 && avctx -> codec_tag == AV_RL32 ( \"VCR2\" ) ) vcr2_init_sequence ( avctx ) ;\n s -> slice_count = 0 ;\n if ( avctx -> extradata && ! s -> extradata_decoded ) {\n int ret = decode_chunks ( avctx , picture , got_output , avctx -> extradata , avctx -> extradata_size ) ;\n s -> extradata_decoded = 1 ;\n if ( ret < 0 && ( avctx -> err_recognition & AV_EF_EXPLODE ) ) return ret ;\n }\n return decode_chunks ( avctx , picture , got_output , buf , buf_size ) ;\n }"}
{"idx": 16451, "target": 0, "func": "static void pk_transaction_cancel ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) {\n gboolean ret ;\n const gchar * sender ;\n guint uid ;\n g_autoptr ( GError ) error = NULL ;\n g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;\n g_return_if_fail ( transaction -> priv -> tid != NULL ) ;\n g_debug ( \"Cancel method called on %s\" , transaction -> priv -> tid ) ;\n if ( transaction -> priv -> state == PK_TRANSACTION_STATE_FINISHED ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NOT_RUNNING , \"Transaction is already finished\" ) ;\n goto out ;\n }\n if ( ! pk_backend_is_implemented ( transaction -> priv -> backend , PK_ROLE_ENUM_CANCEL ) ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NOT_SUPPORTED , \"Cancel not supported by backend\" ) ;\n goto out ;\n }\n if ( transaction -> priv -> finished ) {\n g_debug ( \"No point trying to cancel a finished transaction, ignoring\" ) ;\n pk_transaction_dbus_return ( context , NULL ) ;\n goto out ;\n }\n if ( transaction -> priv -> role == PK_ROLE_ENUM_UNKNOWN ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NO_ROLE , \"No role\" ) ;\n goto out ;\n }\n sender = g_dbus_method_invocation_get_sender ( context ) ;\n ret = ( g_strcmp0 ( transaction -> priv -> sender , sender ) == 0 ) ;\n if ( ret ) {\n g_debug ( \"same sender, no need to check uid\" ) ;\n goto skip_uid ;\n }\n if ( transaction -> priv -> uid == PK_TRANSACTION_UID_INVALID ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_CANNOT_CANCEL , \"No context from caller to get UID from\" ) ;\n goto out ;\n }\n uid = pk_dbus_get_uid ( transaction -> priv -> dbus , sender ) ;\n if ( uid == PK_TRANSACTION_UID_INVALID ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_INVALID_STATE , \"unable to get uid of caller\" ) ;\n goto out ;\n }\n if ( transaction -> priv -> uid != uid ) {\n g_debug ( \"uid does not match (%i vs. %i)\" , transaction -> priv -> uid , uid ) ;\n ret = pk_transaction_obtain_authorization ( transaction , PK_ROLE_ENUM_CANCEL , & error ) ;\n if ( ! ret ) goto out ;\n }\n skip_uid : if ( transaction -> priv -> state <= PK_TRANSACTION_STATE_READY ) {\n g_autofree gchar * msg = NULL ;\n msg = g_strdup_printf ( \"%s was cancelled and was never run\" , transaction -> priv -> tid ) ;\n pk_transaction_error_code_emit ( transaction , PK_ERROR_ENUM_TRANSACTION_CANCELLED , msg ) ;\n pk_transaction_finished_emit ( transaction , PK_EXIT_ENUM_CANCELLED , 0 ) ;\n goto out ;\n }\n pk_backend_job_set_status ( transaction -> priv -> job , PK_STATUS_ENUM_CANCEL ) ;\n pk_backend_job_set_allow_cancel ( transaction -> priv -> job , FALSE ) ;\n pk_backend_job_set_exit_code ( transaction -> priv -> job , PK_EXIT_ENUM_CANCELLED ) ;\n pk_backend_cancel ( transaction -> priv -> backend , transaction -> priv -> job ) ;\n out : pk_transaction_dbus_return ( context , error ) ;\n }"}
{"idx": 16452, "target": 1, "func": "static void tgq_decode_mb ( TgqContext * s , int mb_y , int mb_x ) {\n int mode ;\n int i ;\n int8_t dc [ 6 ] ;\n mode = bytestream2_get_byte ( & s -> gb ) ;\n if ( mode > 12 ) {\n GetBitContext gb ;\n init_get_bits ( & gb , s -> gb . buffer , FFMIN ( s -> gb . buffer_end - s -> gb . buffer , mode ) * 8 ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) tgq_decode_block ( s , s -> block [ i ] , & gb ) ;\n tgq_idct_put_mb ( s , s -> block , mb_x , mb_y ) ;\n bytestream2_skip ( & s -> gb , mode ) ;\n }\n else {\n if ( mode == 3 ) {\n memset ( dc , bytestream2_get_byte ( & s -> gb ) , 4 ) ;\n dc [ 4 ] = bytestream2_get_byte ( & s -> gb ) ;\n dc [ 5 ] = bytestream2_get_byte ( & s -> gb ) ;\n }\n else if ( mode == 6 ) {\n bytestream2_get_buffer ( & s -> gb , dc , 6 ) ;\n }\n else if ( mode == 12 ) {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n dc [ i ] = bytestream2_get_byte ( & s -> gb ) ;\n bytestream2_skip ( & s -> gb , 1 ) ;\n }\n }\n else {\n av_log ( s -> avctx , AV_LOG_ERROR , \"unsupported mb mode %i\\n\" , mode ) ;\n }\n tgq_idct_put_mb_dconly ( s , mb_x , mb_y , dc ) ;\n }\n }"}
{"idx": 16453, "target": 0, "func": "static GSource * qio_channel_websock_create_watch ( QIOChannel * ioc , GIOCondition condition ) {\n QIOChannelWebsock * wioc = QIO_CHANNEL_WEBSOCK ( ioc ) ;\n QIOChannelWebsockSource * ssource ;\n GSource * source ;\n source = g_source_new ( & qio_channel_websock_source_funcs , sizeof ( QIOChannelWebsockSource ) ) ;\n ssource = ( QIOChannelWebsockSource * ) source ;\n ssource -> wioc = wioc ;\n object_ref ( OBJECT ( wioc ) ) ;\n ssource -> condition = condition ;\n qio_channel_websock_set_watch ( wioc ) ;\n return source ;\n }"}
{"idx": 16454, "target": 0, "func": "static int cirrus_vga_read_palette ( CirrusVGAState * s ) {\n int val ;\n if ( ( s -> vga . sr [ 0x12 ] & CIRRUS_CURSOR_HIDDENPEL ) ) {\n val = s -> cirrus_hidden_palette [ ( s -> vga . dac_read_index & 0x0f ) * 3 + s -> vga . dac_sub_index ] ;\n }\n else {\n val = s -> vga . palette [ s -> vga . dac_read_index * 3 + s -> vga . dac_sub_index ] ;\n }\n if ( ++ s -> vga . dac_sub_index == 3 ) {\n s -> vga . dac_sub_index = 0 ;\n s -> vga . dac_read_index ++ ;\n }\n return val ;\n }"}
{"idx": 16455, "target": 0, "func": "static GList * make_activation_parameters ( GList * uris , GList * * unhandled_uris ) {\n GList * ret , * l , * app_uris ;\n NautilusFile * file ;\n GAppInfo * app , * old_app ;\n GHashTable * app_table ;\n char * uri ;\n ret = NULL ;\n * unhandled_uris = NULL ;\n app_table = g_hash_table_new_full ( ( GHashFunc ) mime_application_hash , ( GEqualFunc ) g_app_info_equal , ( GDestroyNotify ) g_object_unref , ( GDestroyNotify ) g_list_free ) ;\n for ( l = uris ;\n l != NULL ;\n l = l -> next ) {\n uri = l -> data ;\n file = nautilus_file_get_by_uri ( uri ) ;\n app = nautilus_mime_get_default_application_for_file ( file ) ;\n if ( app != NULL ) {\n app_uris = NULL ;\n if ( g_hash_table_lookup_extended ( app_table , app , ( gpointer * ) & old_app , ( gpointer * ) & app_uris ) ) {\n g_hash_table_steal ( app_table , old_app ) ;\n app_uris = g_list_prepend ( app_uris , uri ) ;\n g_object_unref ( app ) ;\n app = old_app ;\n }\n else {\n app_uris = g_list_prepend ( NULL , uri ) ;\n }\n g_hash_table_insert ( app_table , app , app_uris ) ;\n }\n else {\n * unhandled_uris = g_list_prepend ( * unhandled_uris , uri ) ;\n }\n nautilus_file_unref ( file ) ;\n }\n g_hash_table_foreach ( app_table , ( GHFunc ) list_to_parameters_foreach , & ret ) ;\n g_hash_table_destroy ( app_table ) ;\n * unhandled_uris = g_list_reverse ( * unhandled_uris ) ;\n return g_list_reverse ( ret ) ;\n }"}
{"idx": 16456, "target": 0, "func": "static VALUE ossl_cipher_set_key ( VALUE self , VALUE key ) {\n EVP_CIPHER_CTX * ctx ;\n int key_len ;\n StringValue ( key ) ;\n GetCipher ( self , ctx ) ;\n key_len = EVP_CIPHER_CTX_key_length ( ctx ) ;\n if ( RSTRING_LEN ( key ) != key_len ) ossl_raise ( rb_eArgError , \"key must be %d bytes\" , key_len ) ;\n if ( EVP_CipherInit_ex ( ctx , NULL , NULL , ( unsigned char * ) RSTRING_PTR ( key ) , NULL , - 1 ) != 1 ) ossl_raise ( eCipherError , NULL ) ;\n rb_ivar_set ( self , id_key_set , Qtrue ) ;\n return key ;\n }"}
{"idx": 16457, "target": 0, "func": "static inline uint16_t be16_to_cpu ( uint16_t v ) {\n return bswap16 ( v ) ;\n }"}
{"idx": 16458, "target": 0, "func": "static guint16 de_cp_user_data ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n tvbuff_t * rp_tvb ;\n curr_offset = offset ;\n proto_tree_add_bytes_format ( tree , hf_gsm_a_dtap_rpdu , tvb , curr_offset , len , NULL , \"RPDU (not displayed)\" ) ;\n rp_tvb = tvb_new_subset_length ( tvb , curr_offset , len ) ;\n call_dissector ( rp_handle , rp_tvb , pinfo , g_tree ) ;\n curr_offset += len ;\n EXTRANEOUS_DATA_CHECK ( len , curr_offset - offset , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 16459, "target": 0, "func": "static int auth_server_input_spid ( struct auth_server_connection * conn , const char * const * args ) {\n if ( conn -> handshake_received ) {\n i_error ( \"BUG: Authentication server already sent handshake\" ) ;\n return - 1 ;\n }\n if ( str_to_uint ( args [ 0 ] , & conn -> server_pid ) < 0 ) {\n i_error ( \"BUG: Authentication server sent invalid PID\" ) ;\n return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 16460, "target": 0, "func": "static TupleDesc get_cached_rowtype ( Oid type_id , int32 typmod , TupleDesc * cache_field , ExprContext * econtext ) {\n TupleDesc tupDesc = * cache_field ;\n if ( tupDesc == NULL || type_id != tupDesc -> tdtypeid || typmod != tupDesc -> tdtypmod ) {\n tupDesc = lookup_rowtype_tupdesc ( type_id , typmod ) ;\n if ( * cache_field ) {\n ReleaseTupleDesc ( * cache_field ) ;\n }\n else {\n RegisterExprContextCallback ( econtext , ShutdownTupleDescRef , PointerGetDatum ( cache_field ) ) ;\n }\n * cache_field = tupDesc ;\n }\n return tupDesc ;\n }"}
{"idx": 16461, "target": 0, "func": "static const unsigned char * seq_decode_op1 ( SeqVideoContext * seq , const unsigned char * src , const unsigned char * src_end , unsigned char * dst ) {\n const unsigned char * color_table ;\n int b , i , len , bits ;\n GetBitContext gb ;\n unsigned char block [ 8 * 8 ] ;\n if ( src_end - src < 1 ) return NULL ;\n len = * src ++ ;\n if ( len & 0x80 ) {\n switch ( len & 3 ) {\n case 1 : src = seq_unpack_rle_block ( src , src_end , block , sizeof ( block ) ) ;\n for ( b = 0 ;\n b < 8 ;\n b ++ ) {\n memcpy ( dst , & block [ b * 8 ] , 8 ) ;\n dst += seq -> frame . linesize [ 0 ] ;\n }\n break ;\n case 2 : src = seq_unpack_rle_block ( src , src_end , block , sizeof ( block ) ) ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n for ( b = 0 ;\n b < 8 ;\n b ++ ) dst [ b * seq -> frame . linesize [ 0 ] ] = block [ i * 8 + b ] ;\n ++ dst ;\n }\n break ;\n }\n }\n else {\n if ( len <= 0 ) return NULL ;\n bits = ff_log2_tab [ len - 1 ] + 1 ;\n if ( src_end - src < len + 8 * bits ) return NULL ;\n color_table = src ;\n src += len ;\n init_get_bits ( & gb , src , bits * 8 * 8 ) ;\n src += bits * 8 ;\n for ( b = 0 ;\n b < 8 ;\n b ++ ) {\n for ( i = 0 ;\n i < 8 ;\n i ++ ) dst [ i ] = color_table [ get_bits ( & gb , bits ) ] ;\n dst += seq -> frame . linesize [ 0 ] ;\n }\n }\n return src ;\n }"}
{"idx": 16462, "target": 0, "func": "int PEM_write_ ## name ( FILE * fp , type * x ) ;\n # define DECLARE_PEM_write_fp_const ( name , type ) int PEM_write_ ## name ( FILE * fp , const type * x ) ;\n # define DECLARE_PEM_write_cb_fp ( name , type ) int PEM_write_ ## name ( FILE * fp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # endif # define DECLARE_PEM_read_bio ( name , type ) type * PEM_read_bio_ ## name ( BIO * bp , type * * x , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL ) DECLARE_PEM_rw ( PKCS7 , PKCS7 ) DECLARE_PEM_rw ( NETSCAPE_CERT_SEQUENCE , NETSCAPE_CERT_SEQUENCE ) DECLARE_PEM_rw ( PKCS8 , X509_SIG ) DECLARE_PEM_rw ( PKCS8_PRIV_KEY_INFO , PKCS8_PRIV_KEY_INFO ) # ifndef OPENSSL_NO_RSA DECLARE_PEM_rw_cb ( RSAPrivateKey , RSA ) DECLARE_PEM_rw_const ( RSAPublicKey , RSA ) DECLARE_PEM_rw ( RSA_PUBKEY , RSA ) # endif # ifndef OPENSSL_NO_DSA DECLARE_PEM_rw_cb ( DSAPrivateKey , DSA ) DECLARE_PEM_rw ( DSA_PUBKEY , DSA ) DECLARE_PEM_rw_const ( DSAparams , DSA ) # endif # ifndef OPENSSL_NO_EC DECLARE_PEM_rw_const ( ECPKParameters , EC_GROUP ) DECLARE_PEM_rw_cb ( ECPrivateKey , EC_KEY ) DECLARE_PEM_rw ( EC_PUBKEY , EC_KEY ) # endif # ifndef OPENSSL_NO_DH DECLARE_PEM_rw_const ( DHparams , DH ) DECLARE_PEM_write_const ( DHxparams , DH ) # endif DECLARE_PEM_rw_cb ( PrivateKey , EVP_PKEY ) DECLARE_PEM_rw ( PUBKEY , EVP_PKEY )"}
{"idx": 16463, "target": 0, "func": "static void decode_zcl_ota_curr_time ( gchar * s , guint32 value ) {\n if ( value == ZBEE_ZCL_OTA_TIME_NOW ) {\n g_snprintf ( s , ITEM_LABEL_LENGTH , \"Now\" ) ;\n }\n else {\n gchar * tmp ;\n value += ZBEE_ZCL_NSTIME_UTC_OFFSET ;\n tmp = abs_time_secs_to_str ( NULL , value , ABSOLUTE_TIME_LOCAL , 1 ) ;\n g_snprintf ( s , ITEM_LABEL_LENGTH , \"%s\" , tmp ) ;\n wmem_free ( NULL , tmp ) ;\n }\n return ;\n }"}
{"idx": 16464, "target": 0, "func": "static void jbig2_default_free ( Jbig2Allocator * allocator , void * p ) {\n free ( p ) ;\n }"}
{"idx": 16465, "target": 0, "func": "static int selinux_sem_semop ( struct sem_array * sma , struct sembuf * sops , unsigned nsops , int alter ) {\n u32 perms ;\n if ( alter ) perms = SEM__READ | SEM__WRITE ;\n else perms = SEM__READ ;\n return ipc_has_perm ( & sma -> sem_perm , perms ) ;\n }"}
{"idx": 16466, "target": 0, "func": "static inline int e1000e_mq_queue_idx ( int base_reg_idx , int reg_idx ) {\n return ( reg_idx - base_reg_idx ) / ( 0x100 >> 2 ) ;\n }"}
{"idx": 16467, "target": 0, "func": "SPL_METHOD ( SplFileInfo , getPathInfo ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n zend_class_entry * ce = intern -> info_class ;\n zend_error_handling error_handling ;\n zend_replace_error_handling ( EH_THROW , spl_ce_UnexpectedValueException , & error_handling TSRMLS_CC ) ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"|C\" , & ce ) == SUCCESS ) {\n int path_len ;\n char * path = spl_filesystem_object_get_pathname ( intern , & path_len TSRMLS_CC ) ;\n if ( path ) {\n char * dpath = estrndup ( path , path_len ) ;\n path_len = php_dirname ( dpath , path_len ) ;\n spl_filesystem_object_create_info ( intern , dpath , path_len , 1 , ce , return_value TSRMLS_CC ) ;\n efree ( dpath ) ;\n }\n }\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n }"}
{"idx": 16468, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( CrossOriginXHR , BackgroundPage ) {\n ASSERT_TRUE ( StartFTPServer ( base : : FilePath ( kFtpDocRoot ) ) ) ;\n ASSERT_TRUE ( RunExtensionTest ( \"cross_origin_xhr/background_page\" ) ) << message_ ;\n }"}
{"idx": 16469, "target": 0, "func": "void view_error_processor ( THD * thd , void * data ) {\n ( ( TABLE_LIST * ) data ) -> hide_view_error ( thd ) ;\n }"}
{"idx": 16470, "target": 0, "func": "static void pxa2xx_i2c_slave_class_init ( ObjectClass * klass , void * data ) {\n I2CSlaveClass * k = I2C_SLAVE_CLASS ( klass ) ;\n k -> init = pxa2xx_i2c_slave_init ;\n k -> event = pxa2xx_i2c_event ;\n k -> recv = pxa2xx_i2c_rx ;\n k -> send = pxa2xx_i2c_tx ;\n }"}
{"idx": 16471, "target": 0, "func": "static int qemuAgentGuestSync ( qemuAgentPtr mon ) {\n int ret = - 1 ;\n int send_ret ;\n unsigned long long id ;\n qemuAgentMessage sync_msg ;\n memset ( & sync_msg , 0 , sizeof ( sync_msg ) ) ;\n sync_msg . first = true ;\n retry : if ( virTimeMillisNow ( & id ) < 0 ) return - 1 ;\n if ( virAsprintf ( & sync_msg . txBuffer , \"{\n\\\"execute\\\":\\\"guest-sync\\\", \" \"\\\"arguments\\\":{\n\\\"id\\\":%llu}\n}\n\\n\" , id ) < 0 ) return - 1 ;\n sync_msg . txLength = strlen ( sync_msg . txBuffer ) ;\n sync_msg . sync = true ;\n sync_msg . id = id ;\n VIR_DEBUG ( \"Sending guest-sync command with ID: %llu\" , id ) ;\n send_ret = qemuAgentSend ( mon , & sync_msg , VIR_DOMAIN_QEMU_AGENT_COMMAND_DEFAULT ) ;\n VIR_DEBUG ( \"qemuAgentSend returned: %d\" , send_ret ) ;\n if ( send_ret < 0 ) goto cleanup ;\n if ( ! sync_msg . rxObject ) {\n if ( sync_msg . first ) {\n VIR_FREE ( sync_msg . txBuffer ) ;\n memset ( & sync_msg , 0 , sizeof ( sync_msg ) ) ;\n goto retry ;\n }\n else {\n if ( mon -> running ) virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"Missing monitor reply object\" ) ) ;\n else virReportError ( VIR_ERR_AGENT_UNRESPONSIVE , \"%s\" , _ ( \"Guest agent disappeared while executing command\" ) ) ;\n goto cleanup ;\n }\n }\n ret = 0 ;\n cleanup : virJSONValueFree ( sync_msg . rxObject ) ;\n VIR_FREE ( sync_msg . txBuffer ) ;\n return ret ;\n }"}
{"idx": 16472, "target": 0, "func": "YV12_BUFFER_CONFIG * vp9_scale_if_required ( VP9_COMMON * cm , YV12_BUFFER_CONFIG * unscaled , YV12_BUFFER_CONFIG * scaled ) {\n if ( cm -> mi_cols * MI_SIZE != unscaled -> y_width || cm -> mi_rows * MI_SIZE != unscaled -> y_height ) {\n scale_and_extend_frame_nonnormative ( unscaled , scaled ) ;\n return scaled ;\n }\n else {\n return unscaled ;\n }\n }"}
{"idx": 16473, "target": 0, "func": "static int dissect_h245_AL3CrcLength ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_AL3CrcLength , AL3CrcLength_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 16474, "target": 0, "func": "static int selinux_binder_transaction ( struct task_struct * from , struct task_struct * to ) {\n u32 mysid = current_sid ( ) ;\n u32 fromsid = task_sid ( from ) ;\n u32 tosid = task_sid ( to ) ;\n int rc ;\n if ( mysid != fromsid ) {\n rc = avc_has_perm ( mysid , fromsid , SECCLASS_BINDER , BINDER__IMPERSONATE , NULL ) ;\n if ( rc ) return rc ;\n }\n return avc_has_perm ( fromsid , tosid , SECCLASS_BINDER , BINDER__CALL , NULL ) ;\n }"}
{"idx": 16475, "target": 0, "func": "static int matroska_read_packet ( AVFormatContext * s , AVPacket * pkt ) {\n MatroskaDemuxContext * matroska = s -> priv_data ;\n int ret = 0 ;\n while ( ! ret && matroska_deliver_packet ( matroska , pkt ) ) {\n int64_t pos = avio_tell ( matroska -> ctx -> pb ) ;\n if ( matroska -> done ) return AVERROR_EOF ;\n if ( matroska_parse_cluster ( matroska ) < 0 ) ret = matroska_resync ( matroska , pos ) ;\n }\n if ( ret == AVERROR_INVALIDDATA && pkt -> data ) {\n pkt -> flags |= AV_PKT_FLAG_CORRUPT ;\n return 0 ;\n }\n return ret ;\n }"}
{"idx": 16476, "target": 0, "func": "static void decode_frame ( SiprContext * ctx , SiprParameters * params , float * out_data ) {\n int i , j ;\n int subframe_count = modes [ ctx -> mode ] . subframe_count ;\n int frame_size = subframe_count * SUBFR_SIZE ;\n float Az [ LP_FILTER_ORDER * MAX_SUBFRAME_COUNT ] ;\n float * excitation ;\n float ir_buf [ SUBFR_SIZE + LP_FILTER_ORDER ] ;\n float lsf_new [ LP_FILTER_ORDER ] ;\n float * impulse_response = ir_buf + LP_FILTER_ORDER ;\n float * synth = ctx -> synth_buf + 16 ;\n int t0_first = 0 ;\n AMRFixed fixed_cb ;\n memset ( ir_buf , 0 , LP_FILTER_ORDER * sizeof ( float ) ) ;\n lsf_decode_fp ( lsf_new , ctx -> lsf_history , params ) ;\n sipr_decode_lp ( lsf_new , ctx -> lsp_history , Az , subframe_count ) ;\n memcpy ( ctx -> lsp_history , lsf_new , LP_FILTER_ORDER * sizeof ( float ) ) ;\n excitation = ctx -> excitation + PITCH_DELAY_MAX + L_INTERPOL ;\n for ( i = 0 ;\n i < subframe_count ;\n i ++ ) {\n float * pAz = Az + i * LP_FILTER_ORDER ;\n float fixed_vector [ SUBFR_SIZE ] ;\n int T0 , T0_frac ;\n float pitch_gain , gain_code , avg_energy ;\n ff_decode_pitch_lag ( & T0 , & T0_frac , params -> pitch_delay [ i ] , t0_first , i , ctx -> mode == MODE_5k0 , 6 ) ;\n if ( i == 0 || ( i == 2 && ctx -> mode == MODE_5k0 ) ) t0_first = T0 ;\n ff_acelp_interpolatef ( excitation , excitation - T0 + ( T0_frac <= 0 ) , ff_b60_sinc , 6 , 2 * ( ( 2 + T0_frac ) % 3 + 1 ) , LP_FILTER_ORDER , SUBFR_SIZE ) ;\n decode_fixed_sparse ( & fixed_cb , params -> fc_indexes [ i ] , ctx -> mode , ctx -> past_pitch_gain < 0.8 ) ;\n eval_ir ( pAz , T0 , impulse_response , modes [ ctx -> mode ] . pitch_sharp_factor ) ;\n convolute_with_sparse ( fixed_vector , & fixed_cb , impulse_response , SUBFR_SIZE ) ;\n avg_energy = ( 0.01 + avpriv_scalarproduct_float_c ( fixed_vector , fixed_vector , SUBFR_SIZE ) ) / SUBFR_SIZE ;\n ctx -> past_pitch_gain = pitch_gain = gain_cb [ params -> gc_index [ i ] ] [ 0 ] ;\n gain_code = ff_amr_set_fixed_gain ( gain_cb [ params -> gc_index [ i ] ] [ 1 ] , avg_energy , ctx -> energy_history , 34 - 15.0 / ( 0.05 * M_LN10 / M_LN2 ) , pred ) ;\n ff_weighted_vector_sumf ( excitation , excitation , fixed_vector , pitch_gain , gain_code , SUBFR_SIZE ) ;\n pitch_gain *= 0.5 * pitch_gain ;\n pitch_gain = FFMIN ( pitch_gain , 0.4 ) ;\n ctx -> gain_mem = 0.7 * ctx -> gain_mem + 0.3 * pitch_gain ;\n ctx -> gain_mem = FFMIN ( ctx -> gain_mem , pitch_gain ) ;\n gain_code *= ctx -> gain_mem ;\n for ( j = 0 ;\n j < SUBFR_SIZE ;\n j ++ ) fixed_vector [ j ] = excitation [ j ] - gain_code * fixed_vector [ j ] ;\n if ( ctx -> mode == MODE_5k0 ) {\n postfilter_5k0 ( ctx , pAz , fixed_vector ) ;\n ff_celp_lp_synthesis_filterf ( ctx -> postfilter_syn5k0 + LP_FILTER_ORDER + i * SUBFR_SIZE , pAz , excitation , SUBFR_SIZE , LP_FILTER_ORDER ) ;\n }\n ff_celp_lp_synthesis_filterf ( synth + i * SUBFR_SIZE , pAz , fixed_vector , SUBFR_SIZE , LP_FILTER_ORDER ) ;\n excitation += SUBFR_SIZE ;\n }\n memcpy ( synth - LP_FILTER_ORDER , synth + frame_size - LP_FILTER_ORDER , LP_FILTER_ORDER * sizeof ( float ) ) ;\n if ( ctx -> mode == MODE_5k0 ) {\n for ( i = 0 ;\n i < subframe_count ;\n i ++ ) {\n float energy = avpriv_scalarproduct_float_c ( ctx -> postfilter_syn5k0 + LP_FILTER_ORDER + i * SUBFR_SIZE , ctx -> postfilter_syn5k0 + LP_FILTER_ORDER + i * SUBFR_SIZE , SUBFR_SIZE ) ;\n ff_adaptive_gain_control ( & synth [ i * SUBFR_SIZE ] , & synth [ i * SUBFR_SIZE ] , energy , SUBFR_SIZE , 0.9 , & ctx -> postfilter_agc ) ;\n }\n memcpy ( ctx -> postfilter_syn5k0 , ctx -> postfilter_syn5k0 + frame_size , LP_FILTER_ORDER * sizeof ( float ) ) ;\n }\n memmove ( ctx -> excitation , excitation - PITCH_DELAY_MAX - L_INTERPOL , ( PITCH_DELAY_MAX + L_INTERPOL ) * sizeof ( float ) ) ;\n ff_acelp_apply_order_2_transfer_function ( out_data , synth , ( const float [ 2 ] ) {\n - 1.99997 , 1.000000000 }\n , ( const float [ 2 ] ) {\n - 1.93307352 , 0.935891986 }\n , 0.939805806 , ctx -> highpass_filt_mem , frame_size ) ;\n }"}
{"idx": 16477, "target": 0, "func": "gcry_sexp_t gcry_sexp_vlist ( const gcry_sexp_t a , ... ) {\n ( void ) a ;\n BUG ( ) ;\n return NULL ;\n }"}
{"idx": 16478, "target": 0, "func": "unsigned int vp9_sad ## m ## x ## n ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride ) {\n return sad ( src , src_stride , ref , ref_stride , m , n ) ;\n \\ }\n 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 ) {\n uint8_t comp_pred [ m * n ] ;\n vp9_comp_avg_pred ( comp_pred , second_pred , m , n , ref , ref_stride ) ;\n return sad ( src , src_stride , comp_pred , m , m , n ) ;\n \\ }\n # define sadMxNxK ( m , n , k ) void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 ) sadMxN ( 16 , 32 ) sadMxNx4D ( 16 , 32 ) sadMxN ( 16 , 16 ) sadMxNxK ( 16 , 16 , 3 ) sadMxNxK ( 16 , 16 , 8 ) sadMxNx4D ( 16 , 16 ) sadMxN ( 16 , 8 ) sadMxNxK ( 16 , 8 , 3 ) sadMxNxK ( 16 , 8 , 8 ) sadMxNx4D ( 16 , 8 ) sadMxN ( 8 , 16 ) sadMxNxK ( 8 , 16 , 3 ) sadMxNxK ( 8 , 16 , 8 ) sadMxNx4D ( 8 , 16 ) sadMxN ( 8 , 8 ) sadMxNxK ( 8 , 8 , 3 ) sadMxNxK ( 8 , 8 , 8 ) sadMxNx4D ( 8 , 8 ) sadMxN ( 8 , 4 ) sadMxNxK ( 8 , 4 , 8 ) sadMxNx4D ( 8 , 4 ) sadMxN ( 4 , 8 )"}
{"idx": 16479, "target": 0, "func": "static void basic_ec_math ( void ) {\n gpg_error_t err ;\n gcry_ctx_t ctx ;\n gcry_mpi_t P , A ;\n gcry_mpi_point_t G , Q ;\n gcry_mpi_t d ;\n gcry_mpi_t x , y , z ;\n wherestr = \"basic_ec_math\" ;\n show ( \"checking basic math functions for EC\\n\" ) ;\n P = hex2mpi ( \"0xfffffffffffffffffffffffffffffffeffffffffffffffff\" ) ;\n A = hex2mpi ( \"0xfffffffffffffffffffffffffffffffefffffffffffffffc\" ) ;\n G = make_point ( \"188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF1012\" , \"7192B95FFC8DA78631011ED6B24CDD573F977A11E794811\" , \"1\" ) ;\n d = hex2mpi ( \"D4EF27E32F8AD8E2A1C6DDEBB1D235A69E3CEF9BCE90273D\" ) ;\n Q = gcry_mpi_point_new ( 0 ) ;\n err = ec_p_new ( & ctx , P , A ) ;\n if ( err ) die ( \"ec_p_new failed: %s\\n\" , gpg_strerror ( err ) ) ;\n x = gcry_mpi_new ( 0 ) ;\n y = gcry_mpi_new ( 0 ) ;\n z = gcry_mpi_new ( 0 ) ;\n {\n gcry_mpi_t tmp ;\n tmp = gcry_mpi_new ( 0 ) ;\n gcry_mpi_ec_mul ( Q , tmp , G , ctx ) ;\n gcry_mpi_release ( tmp ) ;\n gcry_mpi_point_get ( x , y , z , Q ) ;\n if ( gcry_mpi_cmp_ui ( x , 0 ) || gcry_mpi_cmp_ui ( y , 0 ) || gcry_mpi_cmp_ui ( z , 0 ) ) fail ( \"multiply a point by zero failed\\n\" ) ;\n }\n gcry_mpi_ec_mul ( Q , d , G , ctx ) ;\n gcry_mpi_point_get ( x , y , z , Q ) ;\n if ( cmp_mpihex ( x , \"222D9EC717C89D047E0898C9185B033CD11C0A981EE6DC66\" ) || cmp_mpihex ( y , \"605DE0A82D70D3E0F84A127D0739ED33D657DF0D054BFDE8\" ) || cmp_mpihex ( z , \"00B06B519071BC536999AC8F2D3934B3C1FC9EACCD0A31F88F\" ) ) fail ( \"computed public key does not match\\n\" ) ;\n if ( debug ) {\n print_mpi ( \"Q.x\" , x ) ;\n print_mpi ( \"Q.y\" , y ) ;\n print_mpi ( \"Q.z\" , z ) ;\n }\n if ( gcry_mpi_ec_get_affine ( x , y , Q , ctx ) ) fail ( \"failed to get affine coordinates\\n\" ) ;\n if ( cmp_mpihex ( x , \"008532093BA023F4D55C0424FA3AF9367E05F309DC34CDC3FE\" ) || cmp_mpihex ( y , \"00C13CA9E617C6C8487BFF6A726E3C4F277913D97117939966\" ) ) fail ( \"computed affine coordinates of public key do not match\\n\" ) ;\n if ( debug ) {\n print_mpi ( \"q.x\" , x ) ;\n print_mpi ( \"q.y\" , y ) ;\n }\n gcry_mpi_release ( z ) ;\n gcry_mpi_release ( y ) ;\n gcry_mpi_release ( x ) ;\n gcry_mpi_point_release ( Q ) ;\n gcry_mpi_release ( d ) ;\n gcry_mpi_point_release ( G ) ;\n gcry_mpi_release ( A ) ;\n gcry_mpi_release ( P ) ;\n gcry_ctx_release ( ctx ) ;\n }"}
{"idx": 16480, "target": 0, "func": "static void * Type_Text_Read ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number * nItems , cmsUInt32Number SizeOfTag ) {\n char * Text = NULL ;\n cmsMLU * mlu = NULL ;\n mlu = cmsMLUalloc ( self -> ContextID , 1 ) ;\n if ( mlu == NULL ) return NULL ;\n * nItems = 0 ;\n if ( SizeOfTag == UINT_MAX ) goto Error ;\n Text = ( char * ) _cmsMalloc ( self -> ContextID , SizeOfTag + 1 ) ;\n if ( Text == NULL ) goto Error ;\n if ( io -> Read ( io , Text , sizeof ( char ) , SizeOfTag ) != SizeOfTag ) goto Error ;\n Text [ SizeOfTag ] = 0 ;\n * nItems = 1 ;\n if ( ! cmsMLUsetASCII ( mlu , cmsNoLanguage , cmsNoCountry , Text ) ) goto Error ;\n _cmsFree ( self -> ContextID , Text ) ;\n return ( void * ) mlu ;\n Error : if ( mlu != NULL ) cmsMLUfree ( mlu ) ;\n if ( Text != NULL ) _cmsFree ( self -> ContextID , Text ) ;\n return NULL ;\n }"}
{"idx": 16481, "target": 0, "func": "static int check_vcdiff_header ( xd3_stream * stream , const char * input , const char * line_start , const char * matches , int yes_or_no ) {\n int ret ;\n char vcmd [ TESTBUFSIZE ] , gcmd [ TESTBUFSIZE ] ;\n snprintf_func ( vcmd , TESTBUFSIZE , \"%s printhdr -f %s %s\" , program_name , input , TEST_RECON2_FILE ) ;\n if ( ( ret = system ( vcmd ) ) != 0 ) {\n XPR ( NT \"printhdr command: %s\\n\" , vcmd ) ;\n stream -> msg = \"printhdr cmd failed\" ;\n return XD3_INTERNAL ;\n }\n snprintf_func ( gcmd , TESTBUFSIZE , \"grep \\\"%s.*%s.*\\\" %s > /devull\" , line_start , matches , TEST_RECON2_FILE ) ;\n if ( yes_or_no ) {\n if ( ( ret = do_cmd ( stream , gcmd ) ) ) {\n XPR ( NT \"%s\\n\" , gcmd ) ;\n return ret ;\n }\n }\n else {\n if ( ( ret = do_fail ( stream , gcmd ) ) ) {\n XPR ( NT \"%s\\n\" , gcmd ) ;\n return ret ;\n }\n }\n return 0 ;\n }"}
{"idx": 16482, "target": 1, "func": "int ff_mpeg4_set_direct_mv ( MpegEncContext * s , int mx , int my ) {\n const int mb_index = s -> mb_x + s -> mb_y * s -> mb_stride ;\n const int colocated_mb_type = s -> next_picture . f . mb_type [ mb_index ] ;\n uint16_t time_pp ;\n uint16_t time_pb ;\n int i ;\n if ( IS_8X8 ( colocated_mb_type ) ) {\n s -> mv_type = MV_TYPE_8X8 ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n ff_mpeg4_set_one_direct_mv ( s , mx , my , i ) ;\n }\n return MB_TYPE_DIRECT2 | MB_TYPE_8x8 | MB_TYPE_L0L1 ;\n }\n else if ( IS_INTERLACED ( colocated_mb_type ) ) {\n s -> mv_type = MV_TYPE_FIELD ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n int field_select = s -> next_picture . f . ref_index [ 0 ] [ 4 * mb_index + 2 * i ] ;\n s -> field_select [ 0 ] [ i ] = field_select ;\n s -> field_select [ 1 ] [ i ] = i ;\n if ( s -> top_field_first ) {\n time_pp = s -> pp_field_time - field_select + i ;\n time_pb = s -> pb_field_time - field_select + i ;\n }\n else {\n time_pp = s -> pp_field_time + field_select - i ;\n time_pb = s -> pb_field_time + field_select - i ;\n }\n s -> mv [ 0 ] [ i ] [ 0 ] = s -> p_field_mv_table [ i ] [ 0 ] [ mb_index ] [ 0 ] * time_pb / time_pp + mx ;\n s -> mv [ 0 ] [ i ] [ 1 ] = s -> p_field_mv_table [ i ] [ 0 ] [ mb_index ] [ 1 ] * time_pb / time_pp + my ;\n s -> mv [ 1 ] [ i ] [ 0 ] = mx ? s -> mv [ 0 ] [ i ] [ 0 ] - s -> p_field_mv_table [ i ] [ 0 ] [ mb_index ] [ 0 ] : s -> p_field_mv_table [ i ] [ 0 ] [ mb_index ] [ 0 ] * ( time_pb - time_pp ) / time_pp ;\n s -> mv [ 1 ] [ i ] [ 1 ] = my ? s -> mv [ 0 ] [ i ] [ 1 ] - s -> p_field_mv_table [ i ] [ 0 ] [ mb_index ] [ 1 ] : s -> p_field_mv_table [ i ] [ 0 ] [ mb_index ] [ 1 ] * ( time_pb - time_pp ) / time_pp ;\n }\n return MB_TYPE_DIRECT2 | MB_TYPE_16x8 | MB_TYPE_L0L1 | MB_TYPE_INTERLACED ;\n }\n else {\n ff_mpeg4_set_one_direct_mv ( s , mx , my , 0 ) ;\n s -> mv [ 0 ] [ 1 ] [ 0 ] = s -> mv [ 0 ] [ 2 ] [ 0 ] = s -> mv [ 0 ] [ 3 ] [ 0 ] = s -> mv [ 0 ] [ 0 ] [ 0 ] ;\n s -> mv [ 0 ] [ 1 ] [ 1 ] = s -> mv [ 0 ] [ 2 ] [ 1 ] = s -> mv [ 0 ] [ 3 ] [ 1 ] = s -> mv [ 0 ] [ 0 ] [ 1 ] ;\n s -> mv [ 1 ] [ 1 ] [ 0 ] = s -> mv [ 1 ] [ 2 ] [ 0 ] = s -> mv [ 1 ] [ 3 ] [ 0 ] = s -> mv [ 1 ] [ 0 ] [ 0 ] ;\n s -> mv [ 1 ] [ 1 ] [ 1 ] = s -> mv [ 1 ] [ 2 ] [ 1 ] = s -> mv [ 1 ] [ 3 ] [ 1 ] = s -> mv [ 1 ] [ 0 ] [ 1 ] ;\n if ( ( s -> avctx -> workaround_bugs & FF_BUG_DIRECT_BLOCKSIZE ) || ! s -> quarter_sample ) s -> mv_type = MV_TYPE_16X16 ;\n else s -> mv_type = MV_TYPE_8X8 ;\n return MB_TYPE_DIRECT2 | MB_TYPE_16x16 | MB_TYPE_L0L1 ;\n }\n }"}
{"idx": 16483, "target": 1, "func": "static void vga_draw_line8d2 ( VGACommonState * s1 , uint8_t * d , const uint8_t * s , int width ) {\n uint32_t * palette ;\n int x ;\n palette = s1 -> last_palette ;\n width >>= 3 ;\n for ( x = 0 ;\n x < width ;\n x ++ ) {\n PUT_PIXEL2 ( d , 0 , palette [ s [ 0 ] ] ) ;\n PUT_PIXEL2 ( d , 1 , palette [ s [ 1 ] ] ) ;\n PUT_PIXEL2 ( d , 2 , palette [ s [ 2 ] ] ) ;\n PUT_PIXEL2 ( d , 3 , palette [ s [ 3 ] ] ) ;\n d += 32 ;\n s += 4 ;\n }\n }"}
{"idx": 16484, "target": 1, "func": "static int adx_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n int buf_size = avpkt -> size ;\n ADXContext * c = avctx -> priv_data ;\n int16_t * * samples ;\n int samples_offset ;\n const uint8_t * buf = avpkt -> data ;\n int num_blocks , ch , ret ;\n if ( c -> eof ) {\n * got_frame_ptr = 0 ;\n return buf_size ;\n }\n if ( ! c -> header_parsed && buf_size >= 2 && AV_RB16 ( buf ) == 0x8000 ) {\n int header_size ;\n if ( ( ret = avpriv_adx_decode_header ( avctx , buf , buf_size , & header_size , c -> coeff ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"error parsing ADX header\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n c -> channels = avctx -> channels ;\n c -> header_parsed = 1 ;\n if ( buf_size < header_size ) return AVERROR_INVALIDDATA ;\n buf += header_size ;\n buf_size -= header_size ;\n }\n if ( ! c -> header_parsed ) return AVERROR_INVALIDDATA ;\n num_blocks = buf_size / ( BLOCK_SIZE * c -> channels ) ;\n if ( ! num_blocks || buf_size % ( BLOCK_SIZE * avctx -> channels ) ) {\n if ( buf_size >= 4 && ( AV_RB16 ( buf ) & 0x8000 ) ) {\n c -> eof = 1 ;\n * got_frame_ptr = 0 ;\n return avpkt -> size ;\n }\n return AVERROR_INVALIDDATA ;\n }\n frame -> nb_samples = num_blocks * BLOCK_SAMPLES ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n samples = ( int16_t * * ) frame -> extended_data ;\n samples_offset = 0 ;\n while ( num_blocks -- ) {\n for ( ch = 0 ;\n ch < c -> channels ;\n ch ++ ) {\n if ( adx_decode ( c , samples [ ch ] , samples_offset , buf , ch ) ) {\n c -> eof = 1 ;\n buf = avpkt -> data + avpkt -> size ;\n break ;\n }\n buf_size -= BLOCK_SIZE ;\n buf += BLOCK_SIZE ;\n }\n samples_offset += BLOCK_SAMPLES ;\n }\n * got_frame_ptr = 1 ;\n return buf - avpkt -> data ;\n }"}
{"idx": 16485, "target": 0, "func": "static int fts_build_full_words ( struct fts_mail_build_context * ctx , const unsigned char * data , size_t size , bool last ) {\n size_t i ;\n if ( ctx -> word_buf != NULL && ctx -> word_buf -> used > 0 ) {\n for ( i = 0 ;\n i < size ;\n i ++ ) {\n if ( IS_WORD_WHITESPACE ( data [ i ] ) ) break ;\n }\n buffer_append ( ctx -> word_buf , data , i ) ;\n data += i ;\n size -= i ;\n if ( size == 0 && ctx -> word_buf -> used < MAX_WORD_SIZE && ! last ) {\n return 0 ;\n }\n if ( fts_backend_update_build_more ( ctx -> update_ctx , ctx -> word_buf -> data , ctx -> word_buf -> used ) < 0 ) return - 1 ;\n buffer_set_used_size ( ctx -> word_buf , 0 ) ;\n }\n if ( last ) i = size ;\n else {\n for ( i = size ;\n i > 0 ;\n i -- ) {\n if ( IS_WORD_WHITESPACE ( data [ i - 1 ] ) ) break ;\n }\n }\n if ( fts_backend_update_build_more ( ctx -> update_ctx , data , i ) < 0 ) return - 1 ;\n if ( i < size ) {\n if ( ctx -> word_buf == NULL ) {\n ctx -> word_buf = buffer_create_dynamic ( default_pool , 128 ) ;\n }\n buffer_append ( ctx -> word_buf , data + i , size - i ) ;\n }\n return 0 ;\n }"}
{"idx": 16486, "target": 0, "func": "static gint dissect_adb ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n proto_item * main_item ;\n proto_tree * main_tree ;\n proto_item * arg0_item ;\n proto_tree * arg0_tree ;\n proto_item * arg1_item ;\n proto_tree * arg1_tree ;\n proto_item * magic_item ;\n proto_item * crc_item ;\n proto_tree * crc_tree = NULL ;\n proto_item * sub_item ;\n gint offset = 0 ;\n guint32 command ;\n guint32 arg0 ;\n guint32 arg1 ;\n guint32 data_length = 0 ;\n guint32 crc32 = 0 ;\n usb_conv_info_t * usb_conv_info = NULL ;\n wmem_tree_key_t key [ 5 ] ;\n guint32 interface_id ;\n guint32 bus_id ;\n guint32 device_address ;\n guint32 side_id ;\n guint32 frame_number ;\n gboolean is_command = TRUE ;\n gboolean is_next_fragment = FALSE ;\n gboolean is_service = FALSE ;\n gint proto ;\n gint direction = P2P_DIR_UNKNOWN ;\n wmem_tree_t * wmem_tree ;\n command_data_t * command_data = NULL ;\n service_data_t * service_data = NULL ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"ADB\" ) ;\n col_clear ( pinfo -> cinfo , COL_INFO ) ;\n main_item = proto_tree_add_item ( tree , proto_adb , tvb , offset , - 1 , ENC_NA ) ;\n main_tree = proto_item_add_subtree ( main_item , ett_adb ) ;\n frame_number = pinfo -> num ;\n proto = ( gint ) GPOINTER_TO_INT ( wmem_list_frame_data ( ( wmem_list_tail ( pinfo -> layers ) ) ) ) ;\n if ( proto != proto_usb ) {\n proto = ( gint ) GPOINTER_TO_INT ( wmem_list_frame_data ( wmem_list_frame_prev ( wmem_list_tail ( pinfo -> layers ) ) ) ) ;\n }\n if ( proto == proto_usb ) {\n usb_conv_info = ( usb_conv_info_t * ) data ;\n DISSECTOR_ASSERT ( usb_conv_info ) ;\n direction = usb_conv_info -> direction ;\n }\n else if ( proto == proto_tcp ) {\n if ( pinfo -> destport == ADB_TCP_PORT ) direction = P2P_DIR_SENT ;\n else direction = P2P_DIR_RECV ;\n }\n else {\n return offset ;\n }\n if ( pinfo -> phdr -> presence_flags & WTAP_HAS_INTERFACE_ID ) interface_id = pinfo -> phdr -> interface_id ;\n else interface_id = 0 ;\n if ( proto == proto_usb ) {\n bus_id = usb_conv_info -> bus_id ;\n device_address = usb_conv_info -> device_address ;\n key [ 0 ] . length = 1 ;\n key [ 0 ] . key = & interface_id ;\n key [ 1 ] . length = 1 ;\n key [ 1 ] . key = & bus_id ;\n key [ 2 ] . length = 1 ;\n key [ 2 ] . key = & device_address ;\n key [ 3 ] . length = 0 ;\n key [ 3 ] . key = NULL ;\n }\n else {\n key [ 0 ] . length = 1 ;\n key [ 0 ] . key = & interface_id ;\n key [ 1 ] . length = 1 ;\n key [ 2 ] . length = 1 ;\n if ( direction == P2P_DIR_SENT ) {\n key [ 1 ] . key = & pinfo -> srcport ;\n key [ 2 ] . key = & pinfo -> destport ;\n }\n else {\n key [ 1 ] . key = & pinfo -> destport ;\n key [ 2 ] . key = & pinfo -> srcport ;\n }\n key [ 3 ] . length = 0 ;\n key [ 3 ] . key = NULL ;\n }\n wmem_tree = ( wmem_tree_t * ) wmem_tree_lookup32_array ( command_info , key ) ;\n if ( wmem_tree ) {\n command_data = ( command_data_t * ) wmem_tree_lookup32_le ( wmem_tree , frame_number ) ;\n if ( command_data && command_data -> completed_in_frame >= frame_number && command_data -> command_in_frame <= frame_number ) {\n if ( command_data -> command_in_frame != frame_number ) {\n is_command = FALSE ;\n is_next_fragment = TRUE ;\n }\n data_length = command_data -> data_length ;\n crc32 = command_data -> crc32 ;\n if ( direction == P2P_DIR_SENT ) if ( command_data -> command == A_CLSE ) side_id = command_data -> arg1 ;\n else side_id = command_data -> arg0 ;\n else if ( command_data -> command == A_OKAY ) {\n side_id = command_data -> arg1 ;\n }\n else side_id = command_data -> arg1 ;\n key [ 3 ] . length = 1 ;\n key [ 3 ] . key = & side_id ;\n key [ 4 ] . length = 0 ;\n key [ 4 ] . key = NULL ;\n wmem_tree = ( wmem_tree_t * ) wmem_tree_lookup32_array ( service_info , key ) ;\n if ( wmem_tree ) {\n service_data = ( service_data_t * ) wmem_tree_lookup32_le ( wmem_tree , frame_number ) ;\n if ( service_data && command_data -> command == A_OPEN ) {\n is_service = TRUE ;\n }\n }\n }\n }\n if ( ( command_data && command_data -> completed_in_frame <= frame_number ) || ! command_data ) {\n if ( tvb_reported_length ( tvb ) < 24 ) {\n is_command = FALSE ;\n }\n else if ( tvb_reported_length ( tvb ) >= 24 ) {\n command = tvb_get_letohl ( tvb , offset ) ;\n if ( command != A_SYNC && command != A_CLSE && command != A_WRTE && command != A_AUTH && command != A_CNXN && command != A_OPEN && command != A_OKAY ) is_command = FALSE ;\n else if ( command != ( 0xFFFFFFFF ^ tvb_get_letohl ( tvb , offset + 20 ) ) ) is_command = FALSE ;\n if ( is_command ) {\n data_length = tvb_get_letohl ( tvb , offset + 12 ) ;\n crc32 = tvb_get_letohl ( tvb , offset + 16 ) ;\n }\n if ( command == A_OPEN ) is_service = TRUE ;\n }\n }\n if ( service_data && ! ( command_data -> command == A_OPEN && is_next_fragment ) ) {\n sub_item = proto_tree_add_string ( main_tree , hf_service , tvb , offset , 0 , service_data -> service ) ;\n PROTO_ITEM_SET_GENERATED ( sub_item ) ;\n }\n if ( service_data ) {\n sub_item = proto_tree_add_uint ( main_tree , hf_service_start_in_frame , tvb , offset , 0 , service_data -> start_in_frame ) ;\n PROTO_ITEM_SET_GENERATED ( sub_item ) ;\n if ( service_data -> close_local_in_frame < max_in_frame ) {\n sub_item = proto_tree_add_uint ( main_tree , hf_close_local_in_frame , tvb , offset , 0 , service_data -> close_local_in_frame ) ;\n PROTO_ITEM_SET_GENERATED ( sub_item ) ;\n }\n if ( service_data -> close_remote_in_frame < max_in_frame ) {\n sub_item = proto_tree_add_uint ( main_tree , hf_close_remote_in_frame , tvb , offset , 0 , service_data -> close_remote_in_frame ) ;\n PROTO_ITEM_SET_GENERATED ( sub_item ) ;\n }\n }\n if ( is_command ) {\n proto_tree_add_item ( main_tree , hf_command , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n command = tvb_get_letohl ( tvb , offset ) ;\n offset += 4 ;\n col_append_str ( pinfo -> cinfo , COL_INFO , val_to_str_const ( command , command_vals , \"Unknown command\" ) ) ;\n arg0_item = proto_tree_add_item ( main_tree , hf_argument_0 , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n arg0_tree = proto_item_add_subtree ( arg0_item , ett_adb_arg0 ) ;\n arg0 = tvb_get_letohl ( tvb , offset ) ;\n offset += 4 ;\n arg1_item = proto_tree_add_item ( main_tree , hf_argument_1 , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n arg1_tree = proto_item_add_subtree ( arg1_item , ett_adb_arg1 ) ;\n arg1 = tvb_get_letohl ( tvb , offset ) ;\n offset += 4 ;\n switch ( command ) {\n case A_CNXN : proto_tree_add_item ( arg0_tree , hf_version , tvb , offset - 8 , 4 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( arg1_tree , hf_max_data , tvb , offset - 4 , 4 , ENC_LITTLE_ENDIAN ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"(version=%u.%u.%u, max_data=%u)\" , tvb_get_guint8 ( tvb , offset - 5 ) , tvb_get_guint8 ( tvb , offset - 6 ) , tvb_get_letohs ( tvb , offset - 7 ) , tvb_get_letohl ( tvb , offset - 4 ) ) ;\n break ;\n case A_AUTH : proto_tree_add_item ( arg0_tree , hf_auth_type , tvb , offset - 8 , 4 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( arg1_tree , hf_zero , tvb , offset - 4 , 4 , ENC_LITTLE_ENDIAN ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"(type=%s, 0)\" , val_to_str_const ( tvb_get_letohl ( tvb , offset - 8 ) , auth_type_vals , \"Unknown\" ) ) ;\n break ;\n case A_OPEN : proto_tree_add_item ( arg0_tree , hf_local_id , tvb , offset - 8 , 4 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( arg1_tree , hf_zero , tvb , offset - 4 , 4 , ENC_LITTLE_ENDIAN ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"(local=%u, 0)\" , tvb_get_letohl ( tvb , offset - 8 ) ) ;\n break ;\n case A_WRTE : proto_tree_add_item ( arg0_tree , hf_zero , tvb , offset - 8 , 4 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( arg1_tree , hf_remote_id , tvb , offset - 4 , 4 , ENC_LITTLE_ENDIAN ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"(0, remote=%u)\" , tvb_get_letohl ( tvb , offset - 4 ) ) ;\n break ;\n case A_CLSE : case A_OKAY : proto_tree_add_item ( arg0_tree , hf_local_id , tvb , offset - 8 , 4 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( arg1_tree , hf_remote_id , tvb , offset - 4 , 4 , ENC_LITTLE_ENDIAN ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"(local=%u, remote=%u)\" , tvb_get_letohl ( tvb , offset - 8 ) , tvb_get_letohl ( tvb , offset - 4 ) ) ;\n break ;\n case A_SYNC : proto_tree_add_item ( arg0_tree , hf_online , tvb , offset - 8 , 4 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( arg1_tree , hf_sequence , tvb , offset - 4 , 4 , ENC_LITTLE_ENDIAN ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"(online=%s, sequence=%u)\" , tvb_get_letohl ( tvb , offset - 8 ) ? \"Yes\" : \"No\" , tvb_get_letohl ( tvb , offset - 4 ) ) ;\n break ;\n }\n proto_tree_add_item ( main_tree , hf_data_length , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n if ( data_length > 0 ) col_append_fstr ( pinfo -> cinfo , COL_INFO , \" length=%u \" , data_length ) ;\n crc_item = proto_tree_add_item ( main_tree , hf_data_crc32 , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n crc_tree = proto_item_add_subtree ( crc_item , ett_adb_crc ) ;\n crc32 = tvb_get_letohl ( tvb , offset ) ;\n offset += 4 ;\n magic_item = proto_tree_add_item ( main_tree , hf_magic , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n if ( ( tvb_get_letohl ( tvb , offset ) ^ 0xFFFFFFFF ) != command ) {\n proto_tree * expert_tree ;\n expert_tree = proto_item_add_subtree ( magic_item , ett_adb_magic ) ;\n proto_tree_add_expert ( expert_tree , pinfo , & ei_invalid_magic , tvb , offset , 4 ) ;\n }\n if ( ! pinfo -> fd -> flags . visited ) save_command ( command , arg0 , arg1 , data_length , crc32 , service_data , proto , data , pinfo , & service_data , & command_data ) ;\n offset += 4 ;\n }\n if ( ! pinfo -> fd -> flags . visited && command_data ) {\n if ( command_data -> command_in_frame != frame_number ) {\n is_command = FALSE ;\n is_next_fragment = TRUE ;\n }\n data_length = command_data -> data_length ;\n crc32 = command_data -> crc32 ;\n if ( ( command_data -> command_in_frame != frame_number && tvb_captured_length ( tvb ) == data_length ) || ( command_data -> command_in_frame == frame_number && tvb_captured_length ( tvb ) == data_length + 24 ) ) {\n command_data -> reassemble_data_length = command_data -> data_length ;\n command_data -> completed_in_frame = frame_number ;\n }\n }\n if ( is_next_fragment && command_data ) {\n sub_item = proto_tree_add_uint ( main_tree , hf_command_in_frame , tvb , offset , 0 , command_data -> command_in_frame ) ;\n PROTO_ITEM_SET_GENERATED ( sub_item ) ;\n sub_item = proto_tree_add_uint ( main_tree , hf_command , tvb , offset , 0 , command_data -> command ) ;\n PROTO_ITEM_SET_GENERATED ( sub_item ) ;\n sub_item = proto_tree_add_uint ( main_tree , hf_data_length , tvb , offset , 0 , command_data -> data_length ) ;\n PROTO_ITEM_SET_GENERATED ( sub_item ) ;\n crc_item = proto_tree_add_uint ( main_tree , hf_data_crc32 , tvb , offset , 0 , command_data -> crc32 ) ;\n crc_tree = proto_item_add_subtree ( crc_item , ett_adb_crc ) ;\n PROTO_ITEM_SET_GENERATED ( crc_item ) ;\n }\n if ( command_data && command_data -> completed_in_frame != frame_number ) {\n sub_item = proto_tree_add_uint ( main_tree , hf_completed_in_frame , tvb , offset , 0 , command_data -> completed_in_frame ) ;\n PROTO_ITEM_SET_GENERATED ( sub_item ) ;\n }\n if ( tvb_captured_length_remaining ( tvb , offset ) > 0 && ( ! is_command || data_length > 0 ) ) {\n guint32 crc = 0 ;\n guint32 i_offset ;\n if ( ! pinfo -> fd -> flags . visited && command_data && command_data -> reassemble_data_length < command_data -> data_length ) {\n guint chunklen = tvb_captured_length_remaining ( tvb , offset ) ;\n if ( chunklen > command_data -> data_length - command_data -> reassemble_data_length ) {\n chunklen = command_data -> data_length - command_data -> reassemble_data_length ;\n command_data -> reassemble_error_in_frame = frame_number ;\n }\n tvb_memcpy ( tvb , command_data -> reassemble_data + command_data -> reassemble_data_length , offset , chunklen ) ;\n command_data -> reassemble_data_length += chunklen ;\n if ( command_data -> reassemble_data_length >= command_data -> data_length ) command_data -> completed_in_frame = frame_number ;\n }\n if ( frame_number == command_data -> reassemble_error_in_frame ) {\n proto_tree_add_expert ( main_tree , pinfo , & ei_invalid_data , tvb , offset , - 1 ) ;\n }\n if ( ( ! pinfo -> fd -> flags . visited && command_data && command_data -> reassemble_data_length < command_data -> data_length ) || data_length > ( guint32 ) tvb_captured_length_remaining ( tvb , offset ) ) {\n proto_tree_add_item ( main_tree , hf_data_fragment , tvb , offset , - 1 , ENC_NA ) ;\n col_append_str ( pinfo -> cinfo , COL_INFO , \"Data Fragment\" ) ;\n offset = tvb_captured_length ( tvb ) ;\n if ( service_data && command_data && command_data -> reassemble_data_length >= command_data -> data_length && frame_number == command_data -> completed_in_frame ) {\n tvbuff_t * next_tvb ;\n adb_service_data_t adb_service_data ;\n next_tvb = tvb_new_child_real_data ( tvb , command_data -> reassemble_data , command_data -> reassemble_data_length , command_data -> reassemble_data_length ) ;\n add_new_data_source ( pinfo , next_tvb , \"ADB Reassembled Data\" ) ;\n adb_service_data . service = service_data -> service ;\n adb_service_data . direction = direction ;\n adb_service_data . session_key_length = 3 ;\n adb_service_data . session_key = ( guint32 * ) wmem_alloc ( wmem_packet_scope ( ) , adb_service_data . session_key_length * sizeof ( guint32 ) ) ;\n adb_service_data . session_key [ 0 ] = interface_id ;\n if ( proto == proto_usb ) {\n adb_service_data . session_key [ 1 ] = usb_conv_info -> bus_id ;\n adb_service_data . session_key [ 2 ] = usb_conv_info -> device_address ;\n }\n else {\n if ( direction == P2P_DIR_SENT ) {\n adb_service_data . session_key [ 1 ] = pinfo -> srcport ;\n adb_service_data . session_key [ 2 ] = pinfo -> destport ;\n }\n else {\n adb_service_data . session_key [ 1 ] = pinfo -> destport ;\n adb_service_data . session_key [ 2 ] = pinfo -> srcport ;\n }\n }\n call_dissector_with_data ( adb_service_handle , next_tvb , pinfo , tree , & adb_service_data ) ;\n }\n }\n else {\n for ( i_offset = 0 ;\n i_offset < data_length ;\n ++ i_offset ) crc += tvb_get_guint8 ( tvb , offset + i_offset ) ;\n if ( crc32 > 0 && crc32 != crc ) proto_tree_add_expert ( crc_tree , pinfo , & ei_invalid_crc , tvb , offset , - 1 ) ;\n if ( is_service ) {\n proto_tree_add_item ( main_tree , hf_service , tvb , offset , - 1 , ENC_ASCII | ENC_NA ) ;\n if ( ! pinfo -> fd -> flags . visited && service_data ) {\n service_data -> service = tvb_get_stringz_enc ( wmem_file_scope ( ) , tvb , offset , NULL , ENC_ASCII ) ;\n }\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"Service: %s\" , tvb_get_stringz_enc ( wmem_packet_scope ( ) , tvb , offset , NULL , ENC_ASCII ) ) ;\n offset = tvb_captured_length ( tvb ) ;\n }\n else if ( command_data && command_data -> command == A_CNXN ) {\n gchar * info ;\n gint len ;\n info = tvb_get_stringz_enc ( wmem_packet_scope ( ) , tvb , offset , & len , ENC_ASCII ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"Connection Info: %s\" , info ) ;\n proto_tree_add_item ( main_tree , hf_connection_info , tvb , offset , len , ENC_ASCII | ENC_NA ) ;\n offset += len ;\n }\n else {\n col_append_str ( pinfo -> cinfo , COL_INFO , \"Data\" ) ;\n if ( service_data ) {\n tvbuff_t * next_tvb ;\n adb_service_data_t adb_service_data ;\n adb_service_data . service = service_data -> service ;\n adb_service_data . direction = direction ;\n adb_service_data . session_key_length = 3 ;\n adb_service_data . session_key = ( guint32 * ) wmem_alloc ( wmem_packet_scope ( ) , adb_service_data . session_key_length * sizeof ( guint32 ) ) ;\n adb_service_data . session_key [ 0 ] = interface_id ;\n if ( proto == proto_usb ) {\n adb_service_data . session_key [ 1 ] = usb_conv_info -> bus_id ;\n adb_service_data . session_key [ 2 ] = usb_conv_info -> device_address ;\n }\n else {\n if ( direction == P2P_DIR_SENT ) {\n adb_service_data . session_key [ 1 ] = pinfo -> srcport ;\n adb_service_data . session_key [ 2 ] = pinfo -> destport ;\n }\n else {\n adb_service_data . session_key [ 1 ] = pinfo -> destport ;\n adb_service_data . session_key [ 2 ] = pinfo -> srcport ;\n }\n }\n next_tvb = tvb_new_subset ( tvb , offset , tvb_captured_length_remaining ( tvb , offset ) , tvb_captured_length_remaining ( tvb , offset ) ) ;\n call_dissector_with_data ( adb_service_handle , next_tvb , pinfo , tree , & adb_service_data ) ;\n }\n else {\n proto_item * data_item ;\n gchar * data_str ;\n data_item = proto_tree_add_item ( main_tree , hf_data , tvb , offset , data_length , ENC_NA ) ;\n data_str = tvb_format_text ( tvb , offset , data_length ) ;\n proto_item_append_text ( data_item , \": %s\" , data_str ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" Raw: %s\" , data_str ) ;\n }\n offset = tvb_captured_length ( tvb ) ;\n }\n }\n }\n return offset ;\n }"}
{"idx": 16487, "target": 0, "func": "int ff_MPV_lowest_referenced_row ( MpegEncContext * s , int dir ) {\n int my_max = INT_MIN , my_min = INT_MAX , qpel_shift = ! s -> quarter_sample ;\n int my , off , i , mvs ;\n if ( s -> picture_structure != PICT_FRAME || s -> mcsel ) goto unhandled ;\n switch ( s -> mv_type ) {\n case MV_TYPE_16X16 : mvs = 1 ;\n break ;\n case MV_TYPE_16X8 : mvs = 2 ;\n break ;\n case MV_TYPE_8X8 : mvs = 4 ;\n break ;\n default : goto unhandled ;\n }\n for ( i = 0 ;\n i < mvs ;\n i ++ ) {\n my = s -> mv [ dir ] [ i ] [ 1 ] << qpel_shift ;\n my_max = FFMAX ( my_max , my ) ;\n my_min = FFMIN ( my_min , my ) ;\n }\n off = ( FFMAX ( - my_min , my_max ) + 63 ) >> 6 ;\n return FFMIN ( FFMAX ( s -> mb_y + off , 0 ) , s -> mb_height - 1 ) ;\n unhandled : return s -> mb_height - 1 ;\n }"}
{"idx": 16488, "target": 0, "func": "unsigned int vp9_variance ## W ## x ## H ## _c ( const uint8_t * a , int a_stride , const uint8_t * b , int b_stride , unsigned int * sse ) {\n int sum ;\n variance ( a , a_stride , b , b_stride , W , H , sse , & sum ) ;\n return * sse - ( ( ( int64_t ) sum * sum ) / ( W * H ) ) ;\n \\ }\n # define SUBPIX_VAR ( W , H ) unsigned int vp9_sub_pixel_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp2 , W , dst , dst_stride , sse ) ;\n \\ }\n # define SUBPIX_AVG_VAR ( W , H ) unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 ) VAR ( 8 , 4 ) SUBPIX_VAR ( 8 , 4 ) SUBPIX_AVG_VAR ( 8 , 4 ) VAR ( 8 , 8 ) SUBPIX_VAR ( 8 , 8 ) SUBPIX_AVG_VAR ( 8 , 8 ) VAR ( 8 , 16 ) SUBPIX_VAR ( 8 , 16 ) SUBPIX_AVG_VAR ( 8 , 16 ) VAR ( 16 , 8 ) SUBPIX_VAR ( 16 , 8 ) SUBPIX_AVG_VAR ( 16 , 8 ) VAR ( 16 , 16 ) SUBPIX_VAR ( 16 , 16 ) SUBPIX_AVG_VAR ( 16 , 16 ) VAR ( 16 , 32 ) SUBPIX_VAR ( 16 , 32 ) SUBPIX_AVG_VAR ( 16 , 32 ) VAR ( 32 , 16 )"}
{"idx": 16489, "target": 0, "func": "relpRetVal relpTcpAbortDestruct ( relpTcp_t * * ppThis ) {\n struct linger ling ;\n ENTER_RELPFUNC ;\n assert ( ppThis != NULL ) ;\n RELPOBJ_assert ( ( * ppThis ) , Tcp ) ;\n if ( ( * ppThis ) -> sock != - 1 ) {\n ling . l_onoff = 1 ;\n ling . l_linger = 0 ;\n if ( setsockopt ( ( * ppThis ) -> sock , SOL_SOCKET , SO_LINGER , & ling , sizeof ( ling ) ) < 0 ) {\n ( * ppThis ) -> pEngine -> dbgprint ( \"could not set SO_LINGER, errno %d\\n\" , errno ) ;\n }\n }\n iRet = relpTcpDestruct ( ppThis ) ;\n LEAVE_RELPFUNC ;\n }"}
{"idx": 16490, "target": 0, "func": "static bool check_grant_db_routine ( THD * thd , const char * db , HASH * hash ) {\n Security_context * sctx = thd -> security_ctx ;\n for ( uint idx = 0 ;\n idx < hash -> records ;\n ++ idx ) {\n GRANT_NAME * item = ( GRANT_NAME * ) hash_element ( hash , idx ) ;\n if ( strcmp ( item -> user , sctx -> priv_user ) == 0 && strcmp ( item -> db , db ) == 0 && compare_hostname ( & item -> host , sctx -> host , sctx -> ip ) ) {\n return FALSE ;\n }\n }\n return TRUE ;\n }"}
{"idx": 16491, "target": 0, "func": "static void test_prepare_insert_update ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n int i ;\n const char * testcase [ ] = {\n \"CREATE TABLE t1 (a INT, b INT, c INT, UNIQUE (A), UNIQUE(B))\" , \"INSERT t1 VALUES (1,2,10), (3,4,20)\" , \"INSERT t1 VALUES (5,6,30), (7,4,40), (8,9,60) ON DUPLICATE KEY UPDATE c=c+100\" , \"SELECT * FROM t1\" , \"INSERT t1 SET a=5 ON DUPLICATE KEY UPDATE b=0\" , \"SELECT * FROM t1\" , \"INSERT t1 VALUES (2,1,11), (7,4,40) ON DUPLICATE KEY UPDATE c=c+VALUES(a)\" , NULL }\n ;\n const char * * cur_query ;\n myheader ( \"test_prepare_insert_update\" ) ;\n for ( cur_query = testcase ;\n * cur_query ;\n cur_query ++ ) {\n char query [ MAX_TEST_QUERY_LENGTH ] ;\n printf ( \"\\nRunning query: %s\" , * cur_query ) ;\n strmov ( query , * cur_query ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 0 ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! cur_query [ 1 ] ) {\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n printf ( \"\\nExecuting last statement again\" ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n }\n }\n mysql_stmt_close ( stmt ) ;\n }\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n }"}
{"idx": 16492, "target": 0, "func": "void qemu_init_cpu_loop ( void ) {\n qemu_init_sigbus ( ) ;\n qemu_cond_init ( & qemu_cpu_cond ) ;\n qemu_cond_init ( & qemu_pause_cond ) ;\n qemu_cond_init ( & qemu_work_cond ) ;\n qemu_cond_init ( & qemu_io_proceeded_cond ) ;\n qemu_mutex_init ( & qemu_global_mutex ) ;\n qemu_thread_get_self ( & io_thread ) ;\n }"}
{"idx": 16493, "target": 0, "func": "int curl_msprintf ( char * buffer , const char * format , ... ) {\n va_list ap_save ;\n int retcode ;\n va_start ( ap_save , format ) ;\n retcode = dprintf_formatf ( & buffer , storebuffer , format , ap_save ) ;\n va_end ( ap_save ) ;\n * buffer = 0 ;\n return retcode ;\n }"}
{"idx": 16494, "target": 0, "func": "bool i_stream_attachment_extractor_can_retry ( struct istream * input ) {\n struct attachment_istream * astream = ( struct attachment_istream * ) input -> real_stream ;\n return astream -> retry_read ;\n }"}
{"idx": 16495, "target": 0, "func": "static void dtap_tp_egprs_start_radio_block_loopback_cmd ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_len = len ;\n curr_offset = offset ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_TP_EGPRS_MODE_FLAG , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 16496, "target": 1, "func": "static void copy_sbr_grid ( SBRData * dst , const SBRData * src ) {\n dst -> bs_freq_res [ 0 ] = dst -> bs_freq_res [ dst -> bs_num_env ] ;\n dst -> t_env_num_env_old = dst -> t_env [ dst -> bs_num_env ] ;\n dst -> e_a [ 0 ] = - ( dst -> e_a [ 1 ] != dst -> bs_num_env ) ;\n memcpy ( dst -> bs_freq_res + 1 , src -> bs_freq_res + 1 , sizeof ( dst -> bs_freq_res ) - sizeof ( * dst -> bs_freq_res ) ) ;\n memcpy ( dst -> t_env , src -> t_env , sizeof ( dst -> t_env ) ) ;\n memcpy ( dst -> t_q , src -> t_q , sizeof ( dst -> t_q ) ) ;\n dst -> bs_num_env = src -> bs_num_env ;\n dst -> bs_amp_res = src -> bs_amp_res ;\n dst -> bs_num_noise = src -> bs_num_noise ;\n dst -> bs_frame_class = src -> bs_frame_class ;\n dst -> e_a [ 1 ] = src -> e_a [ 1 ] ;\n }"}
{"idx": 16497, "target": 0, "func": "static double calc_psnr ( double d ) {\n if ( d == 0 ) return 100 ;\n return - 10.0 * log ( d ) / log ( 10.0 ) ;\n }"}
{"idx": 16498, "target": 0, "func": "err_status_t srtp_kdf_init ( srtp_kdf_t * kdf , cipher_type_id_t cipher_id , const uint8_t * key , int length ) {\n err_status_t stat ;\n stat = crypto_kernel_alloc_cipher ( cipher_id , & kdf -> cipher , length , 0 ) ;\n if ( stat ) return stat ;\n stat = cipher_init ( kdf -> cipher , key ) ;\n if ( stat ) {\n cipher_dealloc ( kdf -> cipher ) ;\n return stat ;\n }\n return err_status_ok ;\n }"}
{"idx": 16499, "target": 1, "func": "static int key_notify_policy_flush ( const struct km_event * c ) {\n struct sk_buff * skb_out ;\n struct sadb_msg * hdr ;\n skb_out = alloc_skb ( sizeof ( struct sadb_msg ) + 16 , GFP_ATOMIC ) ;\n if ( ! skb_out ) return - ENOBUFS ;\n hdr = ( struct sadb_msg * ) skb_put ( skb_out , sizeof ( struct sadb_msg ) ) ;\n hdr -> sadb_msg_type = SADB_X_SPDFLUSH ;\n hdr -> sadb_msg_seq = c -> seq ;\n hdr -> sadb_msg_pid = c -> portid ;\n hdr -> sadb_msg_version = PF_KEY_V2 ;\n hdr -> sadb_msg_errno = ( uint8_t ) 0 ;\n hdr -> sadb_msg_len = ( sizeof ( struct sadb_msg ) / sizeof ( uint64_t ) ) ;\n pfkey_broadcast ( skb_out , GFP_ATOMIC , BROADCAST_ALL , NULL , c -> net ) ;\n return 0 ;\n }"}
{"idx": 16500, "target": 0, "func": "static void vc1_decode_p_blocks ( VC1Context * v ) {\n MpegEncContext * s = & v -> s ;\n int apply_loop_filter ;\n switch ( v -> c_ac_table_index ) {\n case 0 : v -> codingset = ( v -> pqindex <= 8 ) ? CS_HIGH_RATE_INTRA : CS_LOW_MOT_INTRA ;\n break ;\n case 1 : v -> codingset = CS_HIGH_MOT_INTRA ;\n break ;\n case 2 : v -> codingset = CS_MID_RATE_INTRA ;\n break ;\n }\n switch ( v -> c_ac_table_index ) {\n case 0 : v -> codingset2 = ( v -> pqindex <= 8 ) ? CS_HIGH_RATE_INTER : CS_LOW_MOT_INTER ;\n break ;\n case 1 : v -> codingset2 = CS_HIGH_MOT_INTER ;\n break ;\n case 2 : v -> codingset2 = CS_MID_RATE_INTER ;\n break ;\n }\n apply_loop_filter = s -> loop_filter && ! ( s -> avctx -> skip_loop_filter >= AVDISCARD_NONKEY ) ;\n s -> first_slice_line = 1 ;\n memset ( v -> cbp_base , 0 , sizeof ( v -> cbp_base [ 0 ] ) * 2 * s -> mb_stride ) ;\n for ( s -> mb_y = s -> start_mb_y ;\n s -> mb_y < s -> end_mb_y ;\n s -> mb_y ++ ) {\n s -> mb_x = 0 ;\n ff_init_block_index ( s ) ;\n for ( ;\n s -> mb_x < s -> mb_width ;\n s -> mb_x ++ ) {\n ff_update_block_index ( s ) ;\n if ( v -> fcm == ILACE_FIELD ) vc1_decode_p_mb_intfi ( v ) ;\n else if ( v -> fcm == ILACE_FRAME ) vc1_decode_p_mb_intfr ( v ) ;\n else vc1_decode_p_mb ( v ) ;\n if ( s -> mb_y != s -> start_mb_y && apply_loop_filter && v -> fcm == PROGRESSIVE ) vc1_apply_p_loop_filter ( v ) ;\n if ( get_bits_count ( & s -> gb ) > v -> bits || get_bits_count ( & s -> gb ) < 0 ) {\n ff_er_add_slice ( & s -> er , 0 , s -> start_mb_y , s -> mb_x , s -> mb_y , ER_MB_ERROR ) ;\n av_log ( s -> avctx , AV_LOG_ERROR , \"Bits overconsumption: %i > %i at %ix%i\\n\" , get_bits_count ( & s -> gb ) , v -> bits , s -> mb_x , s -> mb_y ) ;\n return ;\n }\n }\n memmove ( v -> cbp_base , v -> cbp , sizeof ( v -> cbp_base [ 0 ] ) * s -> mb_stride ) ;\n memmove ( v -> ttblk_base , v -> ttblk , sizeof ( v -> ttblk_base [ 0 ] ) * s -> mb_stride ) ;\n memmove ( v -> is_intra_base , v -> is_intra , sizeof ( v -> is_intra_base [ 0 ] ) * s -> mb_stride ) ;\n memmove ( v -> luma_mv_base , v -> luma_mv , sizeof ( v -> luma_mv_base [ 0 ] ) * s -> mb_stride ) ;\n if ( s -> mb_y != s -> start_mb_y ) ff_mpeg_draw_horiz_band ( s , ( s -> mb_y - 1 ) * 16 , 16 ) ;\n s -> first_slice_line = 0 ;\n }\n if ( apply_loop_filter ) {\n s -> mb_x = 0 ;\n ff_init_block_index ( s ) ;\n for ( ;\n s -> mb_x < s -> mb_width ;\n s -> mb_x ++ ) {\n ff_update_block_index ( s ) ;\n vc1_apply_p_loop_filter ( v ) ;\n }\n }\n if ( s -> end_mb_y >= s -> start_mb_y ) ff_mpeg_draw_horiz_band ( s , ( s -> end_mb_y - 1 ) * 16 , 16 ) ;\n ff_er_add_slice ( & s -> er , 0 , s -> start_mb_y << v -> field_mode , s -> mb_width - 1 , ( s -> end_mb_y << v -> field_mode ) - 1 , ER_MB_END ) ;\n }"}
{"idx": 16501, "target": 0, "func": "static void cpu_set_irq ( void * opaque , int irq , int level ) {\n SPARCCPU * cpu = opaque ;\n CPUSPARCState * env = & cpu -> env ;\n if ( level ) {\n trace_sun4m_cpu_set_irq_raise ( irq ) ;\n env -> pil_in |= 1 << irq ;\n cpu_kick_irq ( cpu ) ;\n }\n else {\n trace_sun4m_cpu_set_irq_lower ( irq ) ;\n env -> pil_in &= ~ ( 1 << irq ) ;\n cpu_check_irqs ( env ) ;\n }\n }"}
{"idx": 16502, "target": 0, "func": "static gcry_err_code_t sexp_data_to_mpi ( gcry_sexp_t input , gcry_mpi_t * ret_mpi , struct pk_encoding_ctx * ctx ) {\n gcry_err_code_t rc = 0 ;\n gcry_sexp_t ldata , lhash , lvalue ;\n int i ;\n size_t n ;\n const char * s ;\n int unknown_flag = 0 ;\n int parsed_flags = 0 ;\n int explicit_raw = 0 ;\n * ret_mpi = NULL ;\n ldata = gcry_sexp_find_token ( input , \"data\" , 0 ) ;\n if ( ! ldata ) {\n * ret_mpi = gcry_sexp_nth_mpi ( input , 0 , 0 ) ;\n return * ret_mpi ? GPG_ERR_NO_ERROR : GPG_ERR_INV_OBJ ;\n }\n {\n gcry_sexp_t lflags = gcry_sexp_find_token ( ldata , \"flags\" , 0 ) ;\n if ( lflags ) {\n for ( i = gcry_sexp_length ( lflags ) - 1 ;\n i > 0 ;\n i -- ) {\n s = gcry_sexp_nth_data ( lflags , i , & n ) ;\n if ( ! s ) ;\n else if ( n == 7 && ! memcmp ( s , \"rfc6979\" , 7 ) ) parsed_flags |= PUBKEY_FLAG_RFC6979 ;\n else if ( n == 5 && ! memcmp ( s , \"eddsa\" , 5 ) ) {\n ctx -> encoding = PUBKEY_ENC_RAW ;\n parsed_flags |= PUBKEY_FLAG_EDDSA ;\n }\n else if ( n == 3 && ! memcmp ( s , \"raw\" , 3 ) && ctx -> encoding == PUBKEY_ENC_UNKNOWN ) {\n ctx -> encoding = PUBKEY_ENC_RAW ;\n explicit_raw = 1 ;\n }\n else if ( n == 5 && ! memcmp ( s , \"pkcs1\" , 5 ) && ctx -> encoding == PUBKEY_ENC_UNKNOWN ) ctx -> encoding = PUBKEY_ENC_PKCS1 ;\n else if ( n == 4 && ! memcmp ( s , \"oaep\" , 4 ) && ctx -> encoding == PUBKEY_ENC_UNKNOWN ) ctx -> encoding = PUBKEY_ENC_OAEP ;\n else if ( n == 3 && ! memcmp ( s , \"pss\" , 3 ) && ctx -> encoding == PUBKEY_ENC_UNKNOWN ) ctx -> encoding = PUBKEY_ENC_PSS ;\n else if ( n == 11 && ! memcmp ( s , \"no-blinding\" , 11 ) ) parsed_flags |= PUBKEY_FLAG_NO_BLINDING ;\n else unknown_flag = 1 ;\n }\n gcry_sexp_release ( lflags ) ;\n }\n }\n if ( ctx -> encoding == PUBKEY_ENC_UNKNOWN ) ctx -> encoding = PUBKEY_ENC_RAW ;\n lhash = gcry_sexp_find_token ( ldata , \"hash\" , 0 ) ;\n lvalue = lhash ? NULL : gcry_sexp_find_token ( ldata , \"value\" , 0 ) ;\n if ( ! ( ! lhash ^ ! lvalue ) ) rc = GPG_ERR_INV_OBJ ;\n else if ( unknown_flag ) rc = GPG_ERR_INV_FLAG ;\n else if ( ctx -> encoding == PUBKEY_ENC_RAW && ( parsed_flags & PUBKEY_FLAG_EDDSA ) ) {\n gcry_sexp_t list ;\n void * value ;\n size_t valuelen ;\n if ( ! lvalue ) {\n rc = GPG_ERR_INV_OBJ ;\n goto leave ;\n }\n list = gcry_sexp_find_token ( ldata , \"hash-algo\" , 0 ) ;\n if ( list ) {\n s = gcry_sexp_nth_data ( list , 1 , & n ) ;\n if ( ! s ) rc = GPG_ERR_NO_OBJ ;\n else {\n ctx -> hash_algo = get_hash_algo ( s , n ) ;\n if ( ! ctx -> hash_algo ) rc = GPG_ERR_DIGEST_ALGO ;\n }\n gcry_sexp_release ( list ) ;\n }\n else rc = GPG_ERR_INV_OBJ ;\n if ( rc ) goto leave ;\n value = gcry_sexp_nth_buffer ( lvalue , 1 , & valuelen ) ;\n if ( ! value ) {\n valuelen = 0 ;\n value = gcry_malloc ( 1 ) ;\n if ( ! value ) rc = gpg_err_code_from_syserror ( ) ;\n }\n else if ( ( valuelen * 8 ) < valuelen ) {\n gcry_free ( value ) ;\n rc = GPG_ERR_TOO_LARGE ;\n }\n if ( rc ) goto leave ;\n * ret_mpi = gcry_mpi_set_opaque ( NULL , value , valuelen * 8 ) ;\n }\n else if ( ctx -> encoding == PUBKEY_ENC_RAW && lhash && ( explicit_raw || ( parsed_flags & PUBKEY_FLAG_RFC6979 ) ) ) {\n if ( gcry_sexp_length ( lhash ) != 3 ) rc = GPG_ERR_INV_OBJ ;\n else if ( ! ( s = gcry_sexp_nth_data ( lhash , 1 , & n ) ) || ! n ) rc = GPG_ERR_INV_OBJ ;\n else {\n void * value ;\n size_t valuelen ;\n ctx -> hash_algo = get_hash_algo ( s , n ) ;\n if ( ! ctx -> hash_algo ) rc = GPG_ERR_DIGEST_ALGO ;\n else if ( ! ( value = gcry_sexp_nth_buffer ( lhash , 2 , & valuelen ) ) ) rc = GPG_ERR_INV_OBJ ;\n else if ( ( valuelen * 8 ) < valuelen ) {\n gcry_free ( value ) ;\n rc = GPG_ERR_TOO_LARGE ;\n }\n else * ret_mpi = gcry_mpi_set_opaque ( NULL , value , valuelen * 8 ) ;\n }\n }\n else if ( ctx -> encoding == PUBKEY_ENC_RAW && lvalue ) {\n if ( parsed_flags & PUBKEY_FLAG_RFC6979 ) {\n rc = GPG_ERR_CONFLICT ;\n goto leave ;\n }\n * ret_mpi = gcry_sexp_nth_mpi ( lvalue , 1 , GCRYMPI_FMT_USG ) ;\n if ( ! * ret_mpi ) rc = GPG_ERR_INV_OBJ ;\n }\n else if ( ctx -> encoding == PUBKEY_ENC_PKCS1 && lvalue && ctx -> op == PUBKEY_OP_ENCRYPT ) {\n const void * value ;\n size_t valuelen ;\n gcry_sexp_t list ;\n void * random_override = NULL ;\n size_t random_override_len = 0 ;\n if ( ! ( value = gcry_sexp_nth_data ( lvalue , 1 , & valuelen ) ) || ! valuelen ) rc = GPG_ERR_INV_OBJ ;\n else {\n list = gcry_sexp_find_token ( ldata , \"random-override\" , 0 ) ;\n if ( list ) {\n s = gcry_sexp_nth_data ( list , 1 , & n ) ;\n if ( ! s ) rc = GPG_ERR_NO_OBJ ;\n else if ( n > 0 ) {\n random_override = gcry_malloc ( n ) ;\n if ( ! random_override ) rc = gpg_err_code_from_syserror ( ) ;\n else {\n memcpy ( random_override , s , n ) ;\n random_override_len = n ;\n }\n }\n gcry_sexp_release ( list ) ;\n if ( rc ) goto leave ;\n }\n rc = pkcs1_encode_for_encryption ( ret_mpi , ctx -> nbits , value , valuelen , random_override , random_override_len ) ;\n gcry_free ( random_override ) ;\n }\n }\n else if ( ctx -> encoding == PUBKEY_ENC_PKCS1 && lhash && ( ctx -> op == PUBKEY_OP_SIGN || ctx -> op == PUBKEY_OP_VERIFY ) ) {\n if ( gcry_sexp_length ( lhash ) != 3 ) rc = GPG_ERR_INV_OBJ ;\n else if ( ! ( s = gcry_sexp_nth_data ( lhash , 1 , & n ) ) || ! n ) rc = GPG_ERR_INV_OBJ ;\n else {\n const void * value ;\n size_t valuelen ;\n ctx -> hash_algo = get_hash_algo ( s , n ) ;\n if ( ! ctx -> hash_algo ) rc = GPG_ERR_DIGEST_ALGO ;\n else if ( ! ( value = gcry_sexp_nth_data ( lhash , 2 , & valuelen ) ) || ! valuelen ) rc = GPG_ERR_INV_OBJ ;\n else rc = pkcs1_encode_for_signature ( ret_mpi , ctx -> nbits , value , valuelen , ctx -> hash_algo ) ;\n }\n }\n else if ( ctx -> encoding == PUBKEY_ENC_OAEP && lvalue && ctx -> op == PUBKEY_OP_ENCRYPT ) {\n const void * value ;\n size_t valuelen ;\n if ( ! ( value = gcry_sexp_nth_data ( lvalue , 1 , & valuelen ) ) || ! valuelen ) rc = GPG_ERR_INV_OBJ ;\n else {\n gcry_sexp_t list ;\n void * random_override = NULL ;\n size_t random_override_len = 0 ;\n list = gcry_sexp_find_token ( ldata , \"hash-algo\" , 0 ) ;\n if ( list ) {\n s = gcry_sexp_nth_data ( list , 1 , & n ) ;\n if ( ! s ) rc = GPG_ERR_NO_OBJ ;\n else {\n ctx -> hash_algo = get_hash_algo ( s , n ) ;\n if ( ! ctx -> hash_algo ) rc = GPG_ERR_DIGEST_ALGO ;\n }\n gcry_sexp_release ( list ) ;\n if ( rc ) goto leave ;\n }\n list = gcry_sexp_find_token ( ldata , \"label\" , 0 ) ;\n if ( list ) {\n s = gcry_sexp_nth_data ( list , 1 , & n ) ;\n if ( ! s ) rc = GPG_ERR_NO_OBJ ;\n else if ( n > 0 ) {\n ctx -> label = gcry_malloc ( n ) ;\n if ( ! ctx -> label ) rc = gpg_err_code_from_syserror ( ) ;\n else {\n memcpy ( ctx -> label , s , n ) ;\n ctx -> labellen = n ;\n }\n }\n gcry_sexp_release ( list ) ;\n if ( rc ) goto leave ;\n }\n list = gcry_sexp_find_token ( ldata , \"random-override\" , 0 ) ;\n if ( list ) {\n s = gcry_sexp_nth_data ( list , 1 , & n ) ;\n if ( ! s ) rc = GPG_ERR_NO_OBJ ;\n else if ( n > 0 ) {\n random_override = gcry_malloc ( n ) ;\n if ( ! random_override ) rc = gpg_err_code_from_syserror ( ) ;\n else {\n memcpy ( random_override , s , n ) ;\n random_override_len = n ;\n }\n }\n gcry_sexp_release ( list ) ;\n if ( rc ) goto leave ;\n }\n rc = oaep_encode ( ret_mpi , ctx -> nbits , ctx -> hash_algo , value , valuelen , ctx -> label , ctx -> labellen , random_override , random_override_len ) ;\n gcry_free ( random_override ) ;\n }\n }\n else if ( ctx -> encoding == PUBKEY_ENC_PSS && lhash && ctx -> op == PUBKEY_OP_SIGN ) {\n if ( gcry_sexp_length ( lhash ) != 3 ) rc = GPG_ERR_INV_OBJ ;\n else if ( ! ( s = gcry_sexp_nth_data ( lhash , 1 , & n ) ) || ! n ) rc = GPG_ERR_INV_OBJ ;\n else {\n const void * value ;\n size_t valuelen ;\n void * random_override = NULL ;\n size_t random_override_len = 0 ;\n ctx -> hash_algo = get_hash_algo ( s , n ) ;\n if ( ! ctx -> hash_algo ) rc = GPG_ERR_DIGEST_ALGO ;\n else if ( ! ( value = gcry_sexp_nth_data ( lhash , 2 , & valuelen ) ) || ! valuelen ) rc = GPG_ERR_INV_OBJ ;\n else {\n gcry_sexp_t list ;\n list = gcry_sexp_find_token ( ldata , \"salt-length\" , 0 ) ;\n if ( list ) {\n s = gcry_sexp_nth_data ( list , 1 , & n ) ;\n if ( ! s ) {\n rc = GPG_ERR_NO_OBJ ;\n goto leave ;\n }\n ctx -> saltlen = ( unsigned int ) strtoul ( s , NULL , 10 ) ;\n gcry_sexp_release ( list ) ;\n }\n list = gcry_sexp_find_token ( ldata , \"random-override\" , 0 ) ;\n if ( list ) {\n s = gcry_sexp_nth_data ( list , 1 , & n ) ;\n if ( ! s ) rc = GPG_ERR_NO_OBJ ;\n else if ( n > 0 ) {\n random_override = gcry_malloc ( n ) ;\n if ( ! random_override ) rc = gpg_err_code_from_syserror ( ) ;\n else {\n memcpy ( random_override , s , n ) ;\n random_override_len = n ;\n }\n }\n gcry_sexp_release ( list ) ;\n if ( rc ) goto leave ;\n }\n rc = pss_encode ( ret_mpi , ctx -> nbits - 1 , ctx -> hash_algo , value , valuelen , ctx -> saltlen , random_override , random_override_len ) ;\n gcry_free ( random_override ) ;\n }\n }\n }\n else if ( ctx -> encoding == PUBKEY_ENC_PSS && lhash && ctx -> op == PUBKEY_OP_VERIFY ) {\n if ( gcry_sexp_length ( lhash ) != 3 ) rc = GPG_ERR_INV_OBJ ;\n else if ( ! ( s = gcry_sexp_nth_data ( lhash , 1 , & n ) ) || ! n ) rc = GPG_ERR_INV_OBJ ;\n else {\n ctx -> hash_algo = get_hash_algo ( s , n ) ;\n if ( ! ctx -> hash_algo ) rc = GPG_ERR_DIGEST_ALGO ;\n else {\n * ret_mpi = gcry_sexp_nth_mpi ( lhash , 2 , GCRYMPI_FMT_USG ) ;\n if ( ! * ret_mpi ) rc = GPG_ERR_INV_OBJ ;\n ctx -> verify_cmp = pss_verify_cmp ;\n ctx -> verify_arg = * ret_mpi ;\n }\n }\n }\n else rc = GPG_ERR_CONFLICT ;\n leave : gcry_sexp_release ( ldata ) ;\n gcry_sexp_release ( lhash ) ;\n gcry_sexp_release ( lvalue ) ;\n if ( ! rc ) ctx -> flags = parsed_flags ;\n else {\n gcry_free ( ctx -> label ) ;\n ctx -> label = NULL ;\n }\n return rc ;\n }"}
{"idx": 16503, "target": 0, "func": "static __inline __uint32_t __uint32_identity ( __uint32_t __x ) {\n return __x ;\n }"}
{"idx": 16504, "target": 0, "func": "static int dissect_h225_SEQUENCE_OF_IntegrityMechanism ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_SEQUENCE_OF_IntegrityMechanism , SEQUENCE_OF_IntegrityMechanism_sequence_of ) ;\n return offset ;\n }"}
{"idx": 16505, "target": 0, "func": "TSReturnCode TSHttpTxnConfigFloatGet ( TSHttpTxn txnp , TSOverridableConfigKey conf , TSMgmtFloat * value ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) value ) == TS_SUCCESS ) ;\n OverridableDataType type ;\n TSMgmtFloat * dest = static_cast < TSMgmtFloat * > ( _conf_to_memberp ( conf , ( ( HttpSM * ) txnp ) -> t_state . txn_conf , & type ) ) ;\n if ( type != OVERRIDABLE_TYPE_FLOAT ) {\n return TS_ERROR ;\n }\n if ( dest ) {\n * value = * dest ;\n return TS_SUCCESS ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 16506, "target": 0, "func": "TSMgmtInt TSStatIntGet ( int id ) {\n TSMgmtInt value ;\n sdk_assert ( sdk_sanity_check_stat_id ( id ) == TS_SUCCESS ) ;\n RecGetGlobalRawStatSum ( api_rsb , id , & value ) ;\n return value ;\n }"}
{"idx": 16507, "target": 0, "func": "char * qemuDomainGetSecretAESAlias ( const char * srcalias , bool isLuks ) {\n char * alias ;\n if ( ! srcalias ) {\n virReportError ( VIR_ERR_INVALID_ARG , \"%s\" , _ ( \"encrypted secret alias requires valid source alias\" ) ) ;\n return NULL ;\n }\n if ( isLuks ) ignore_value ( virAsprintf ( & alias , \"%s-luks-secret0\" , srcalias ) ) ;\n else ignore_value ( virAsprintf ( & alias , \"%s-secret0\" , srcalias ) ) ;\n return alias ;\n }"}
{"idx": 16508, "target": 0, "func": "void key_user_put ( struct key_user * user ) {\n if ( atomic_dec_and_lock ( & user -> usage , & key_user_lock ) ) {\n rb_erase ( & user -> node , & key_user_tree ) ;\n spin_unlock ( & key_user_lock ) ;\n kfree ( user ) ;\n }\n }"}
{"idx": 16509, "target": 0, "func": "const SSL_CIPHER * ssl3_get_cipher ( unsigned int u ) {\n if ( u < SSL3_NUM_CIPHERS ) return ( & ( ssl3_ciphers [ SSL3_NUM_CIPHERS - 1 - u ] ) ) ;\n else return ( NULL ) ;\n }"}
{"idx": 16510, "target": 0, "func": "static unsigned int hb_icu_unicode_eastasian_width ( hb_unicode_funcs_t * ufuncs HB_UNUSED , hb_codepoint_t unicode , void * user_data HB_UNUSED ) {\n switch ( u_getIntPropertyValue ( unicode , UCHAR_EAST_ASIAN_WIDTH ) ) {\n case U_EA_WIDE : case U_EA_FULLWIDTH : return 2 ;\n case U_EA_NEUTRAL : case U_EA_AMBIGUOUS : case U_EA_HALFWIDTH : case U_EA_NARROW : return 1 ;\n }\n return 1 ;\n }"}
{"idx": 16511, "target": 0, "func": "Datum scalarltsel ( PG_FUNCTION_ARGS ) {\n PlannerInfo * root = ( PlannerInfo * ) PG_GETARG_POINTER ( 0 ) ;\n Oid operator = PG_GETARG_OID ( 1 ) ;\n List * args = ( List * ) PG_GETARG_POINTER ( 2 ) ;\n int varRelid = PG_GETARG_INT32 ( 3 ) ;\n VariableStatData vardata ;\n Node * other ;\n bool varonleft ;\n Datum constval ;\n Oid consttype ;\n bool isgt ;\n double selec ;\n if ( ! get_restriction_variable ( root , args , varRelid , & vardata , & other , & varonleft ) ) PG_RETURN_FLOAT8 ( DEFAULT_INEQ_SEL ) ;\n if ( ! IsA ( other , Const ) ) {\n ReleaseVariableStats ( vardata ) ;\n PG_RETURN_FLOAT8 ( DEFAULT_INEQ_SEL ) ;\n }\n if ( ( ( Const * ) other ) -> constisnull ) {\n ReleaseVariableStats ( vardata ) ;\n PG_RETURN_FLOAT8 ( 0.0 ) ;\n }\n constval = ( ( Const * ) other ) -> constvalue ;\n consttype = ( ( Const * ) other ) -> consttype ;\n if ( varonleft ) {\n isgt = false ;\n }\n else {\n operator = get_commutator ( operator ) ;\n if ( ! operator ) {\n ReleaseVariableStats ( vardata ) ;\n PG_RETURN_FLOAT8 ( DEFAULT_INEQ_SEL ) ;\n }\n isgt = true ;\n }\n selec = scalarineqsel ( root , operator , isgt , & vardata , constval , consttype ) ;\n ReleaseVariableStats ( vardata ) ;\n PG_RETURN_FLOAT8 ( ( float8 ) selec ) ;\n }"}
{"idx": 16512, "target": 0, "func": "static void dissect_t38_tcp_pdu ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree ) {\n proto_item * it ;\n proto_tree * tr ;\n guint32 offset = 0 ;\n tvbuff_t * next_tvb ;\n guint16 ifp_packet_number = 1 ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"T.38\" ) ;\n col_clear ( pinfo -> cinfo , COL_INFO ) ;\n primary_part = TRUE ;\n Data_Field_item_num = 0 ;\n it = proto_tree_add_protocol_format ( tree , proto_t38 , tvb , 0 , - 1 , \"ITU-T Recommendation T.38\" ) ;\n tr = proto_item_add_subtree ( it , ett_t38 ) ;\n init_t38_info_conv ( pinfo ) ;\n if ( global_t38_show_setup_info ) {\n show_setup_info ( tvb , tr , p_t38_packet_conv ) ;\n }\n col_append_str ( pinfo -> cinfo , COL_INFO , \"TCP: IFPPacket\" ) ;\n while ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n next_tvb = tvb_new_subset_remaining ( tvb , offset ) ;\n offset += dissect_IFPPacket_PDU ( next_tvb , pinfo , tr , NULL ) ;\n ifp_packet_number ++ ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n if ( t38_tpkt_usage == T38_TPKT_ALWAYS ) {\n proto_tree_add_expert_format ( tr , pinfo , & ei_t38_malformed , tvb , offset , tvb_reported_length_remaining ( tvb , offset ) , \"[MALFORMED PACKET or wrong preference settings]\" ) ;\n col_append_str ( pinfo -> cinfo , COL_INFO , \" [Malformed?]\" ) ;\n break ;\n }\n else {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" IFPPacket#%u\" , ifp_packet_number ) ;\n }\n }\n }\n }"}
{"idx": 16513, "target": 0, "func": "void vp9_fdct8x8_c ( const int16_t * input , tran_low_t * final_output , int stride ) {\n int i , j ;\n tran_low_t intermediate [ 64 ] ;\n {\n tran_low_t * output = intermediate ;\n tran_high_t s0 , s1 , s2 , s3 , s4 , s5 , s6 , s7 ;\n tran_high_t t0 , t1 , t2 , t3 ;\n tran_high_t x0 , x1 , x2 , x3 ;\n int i ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n s0 = ( input [ 0 * stride ] + input [ 7 * stride ] ) * 4 ;\n s1 = ( input [ 1 * stride ] + input [ 6 * stride ] ) * 4 ;\n s2 = ( input [ 2 * stride ] + input [ 5 * stride ] ) * 4 ;\n s3 = ( input [ 3 * stride ] + input [ 4 * stride ] ) * 4 ;\n s4 = ( input [ 3 * stride ] - input [ 4 * stride ] ) * 4 ;\n s5 = ( input [ 2 * stride ] - input [ 5 * stride ] ) * 4 ;\n s6 = ( input [ 1 * stride ] - input [ 6 * stride ] ) * 4 ;\n s7 = ( input [ 0 * stride ] - input [ 7 * stride ] ) * 4 ;\n x0 = s0 + s3 ;\n x1 = s1 + s2 ;\n x2 = s1 - s2 ;\n x3 = s0 - s3 ;\n t0 = ( x0 + x1 ) * cospi_16_64 ;\n t1 = ( x0 - x1 ) * cospi_16_64 ;\n t2 = x2 * cospi_24_64 + x3 * cospi_8_64 ;\n t3 = - x2 * cospi_8_64 + x3 * cospi_24_64 ;\n output [ 0 * 8 ] = fdct_round_shift ( t0 ) ;\n output [ 2 * 8 ] = fdct_round_shift ( t2 ) ;\n output [ 4 * 8 ] = fdct_round_shift ( t1 ) ;\n output [ 6 * 8 ] = fdct_round_shift ( t3 ) ;\n t0 = ( s6 - s5 ) * cospi_16_64 ;\n t1 = ( s6 + s5 ) * cospi_16_64 ;\n t2 = fdct_round_shift ( t0 ) ;\n t3 = fdct_round_shift ( t1 ) ;\n x0 = s4 + t2 ;\n x1 = s4 - t2 ;\n x2 = s7 - t3 ;\n x3 = s7 + t3 ;\n t0 = x0 * cospi_28_64 + x3 * cospi_4_64 ;\n t1 = x1 * cospi_12_64 + x2 * cospi_20_64 ;\n t2 = x2 * cospi_12_64 + x1 * - cospi_20_64 ;\n t3 = x3 * cospi_28_64 + x0 * - cospi_4_64 ;\n output [ 1 * 8 ] = fdct_round_shift ( t0 ) ;\n output [ 3 * 8 ] = fdct_round_shift ( t2 ) ;\n output [ 5 * 8 ] = fdct_round_shift ( t1 ) ;\n output [ 7 * 8 ] = fdct_round_shift ( t3 ) ;\n input ++ ;\n output ++ ;\n }\n }\n for ( i = 0 ;\n i < 8 ;\n ++ i ) {\n fdct8 ( & intermediate [ i * 8 ] , & final_output [ i * 8 ] ) ;\n for ( j = 0 ;\n j < 8 ;\n ++ j ) final_output [ j + i * 8 ] /= 2 ;\n }\n }"}
{"idx": 16514, "target": 0, "func": "static int decode_chunks ( AVCodecContext * avctx , AVFrame * picture , int * got_output , const uint8_t * buf , int buf_size ) {\n Mpeg1Context * s = avctx -> priv_data ;\n MpegEncContext * s2 = & s -> mpeg_enc_ctx ;\n const uint8_t * buf_ptr = buf ;\n const uint8_t * buf_end = buf + buf_size ;\n int ret , input_size ;\n int last_code = 0 ;\n for ( ;\n ;\n ) {\n uint32_t start_code = - 1 ;\n buf_ptr = avpriv_mpv_find_start_code ( buf_ptr , buf_end , & start_code ) ;\n if ( start_code > 0x1ff ) {\n if ( s2 -> pict_type != AV_PICTURE_TYPE_B || avctx -> skip_frame <= AVDISCARD_DEFAULT ) {\n if ( HAVE_THREADS && ( avctx -> active_thread_type & FF_THREAD_SLICE ) ) {\n int i ;\n avctx -> execute ( avctx , slice_decode_thread , & s2 -> thread_context [ 0 ] , NULL , s -> slice_count , sizeof ( void * ) ) ;\n for ( i = 0 ;\n i < s -> slice_count ;\n i ++ ) s2 -> er . error_count += s2 -> thread_context [ i ] -> er . error_count ;\n }\n if ( CONFIG_MPEG_VDPAU_DECODER && avctx -> codec -> capabilities & CODEC_CAP_HWACCEL_VDPAU ) ff_vdpau_mpeg_picture_complete ( s2 , buf , buf_size , s -> slice_count ) ;\n ret = slice_end ( avctx , picture ) ;\n if ( ret < 0 ) return ret ;\n else if ( ret ) {\n if ( s2 -> last_picture_ptr || s2 -> low_delay ) * got_output = 1 ;\n }\n }\n s2 -> pict_type = 0 ;\n return FFMAX ( 0 , buf_ptr - buf - s2 -> parse_context . last_index ) ;\n }\n input_size = buf_end - buf_ptr ;\n if ( avctx -> debug & FF_DEBUG_STARTCODE ) {\n av_log ( avctx , AV_LOG_DEBUG , \"%3X at %td left %d\\n\" , start_code , buf_ptr - buf , input_size ) ;\n }\n switch ( start_code ) {\n case SEQ_START_CODE : if ( last_code == 0 ) {\n mpeg1_decode_sequence ( avctx , buf_ptr , input_size ) ;\n s -> sync = 1 ;\n }\n else {\n av_log ( avctx , AV_LOG_ERROR , \"ignoring SEQ_START_CODE after %X\\n\" , last_code ) ;\n if ( avctx -> err_recognition & AV_EF_EXPLODE ) return AVERROR_INVALIDDATA ;\n }\n break ;\n case PICTURE_START_CODE : if ( HAVE_THREADS && ( avctx -> active_thread_type & FF_THREAD_SLICE ) && s -> slice_count ) {\n int i ;\n avctx -> execute ( avctx , slice_decode_thread , s2 -> thread_context , NULL , s -> slice_count , sizeof ( void * ) ) ;\n for ( i = 0 ;\n i < s -> slice_count ;\n i ++ ) s2 -> er . error_count += s2 -> thread_context [ i ] -> er . error_count ;\n s -> slice_count = 0 ;\n }\n if ( last_code == 0 || last_code == SLICE_MIN_START_CODE ) {\n ret = mpeg_decode_postinit ( avctx ) ;\n if ( ret < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"mpeg_decode_postinit() failure\\n\" ) ;\n return ret ;\n }\n if ( mpeg1_decode_picture ( avctx , buf_ptr , input_size ) < 0 ) s2 -> pict_type = 0 ;\n s2 -> first_slice = 1 ;\n last_code = PICTURE_START_CODE ;\n }\n else {\n av_log ( avctx , AV_LOG_ERROR , \"ignoring pic after %X\\n\" , last_code ) ;\n if ( avctx -> err_recognition & AV_EF_EXPLODE ) return AVERROR_INVALIDDATA ;\n }\n break ;\n case EXT_START_CODE : init_get_bits ( & s2 -> gb , buf_ptr , input_size * 8 ) ;\n switch ( get_bits ( & s2 -> gb , 4 ) ) {\n case 0x1 : if ( last_code == 0 ) {\n mpeg_decode_sequence_extension ( s ) ;\n }\n else {\n av_log ( avctx , AV_LOG_ERROR , \"ignoring seq ext after %X\\n\" , last_code ) ;\n if ( avctx -> err_recognition & AV_EF_EXPLODE ) return AVERROR_INVALIDDATA ;\n }\n break ;\n case 0x2 : mpeg_decode_sequence_display_extension ( s ) ;\n break ;\n case 0x3 : mpeg_decode_quant_matrix_extension ( s2 ) ;\n break ;\n case 0x7 : mpeg_decode_picture_display_extension ( s ) ;\n break ;\n case 0x8 : if ( last_code == PICTURE_START_CODE ) {\n mpeg_decode_picture_coding_extension ( s ) ;\n }\n else {\n av_log ( avctx , AV_LOG_ERROR , \"ignoring pic cod ext after %X\\n\" , last_code ) ;\n if ( avctx -> err_recognition & AV_EF_EXPLODE ) return AVERROR_INVALIDDATA ;\n }\n break ;\n }\n break ;\n case USER_START_CODE : mpeg_decode_user_data ( avctx , buf_ptr , input_size ) ;\n break ;\n case GOP_START_CODE : if ( last_code == 0 ) {\n s2 -> first_field = 0 ;\n mpeg_decode_gop ( avctx , buf_ptr , input_size ) ;\n s -> sync = 1 ;\n }\n else {\n av_log ( avctx , AV_LOG_ERROR , \"ignoring GOP_START_CODE after %X\\n\" , last_code ) ;\n if ( avctx -> err_recognition & AV_EF_EXPLODE ) return AVERROR_INVALIDDATA ;\n }\n break ;\n default : if ( start_code >= SLICE_MIN_START_CODE && start_code <= SLICE_MAX_START_CODE && last_code != 0 ) {\n const int field_pic = s2 -> picture_structure != PICT_FRAME ;\n int mb_y = ( start_code - SLICE_MIN_START_CODE ) << field_pic ;\n last_code = SLICE_MIN_START_CODE ;\n if ( s2 -> picture_structure == PICT_BOTTOM_FIELD ) mb_y ++ ;\n if ( mb_y >= s2 -> mb_height ) {\n av_log ( s2 -> avctx , AV_LOG_ERROR , \"slice below image (%d >= %d)\\n\" , mb_y , s2 -> mb_height ) ;\n return - 1 ;\n }\n if ( s2 -> last_picture_ptr == NULL ) {\n if ( s2 -> pict_type == AV_PICTURE_TYPE_B ) {\n if ( ! s -> closed_gop ) break ;\n }\n }\n if ( s2 -> pict_type == AV_PICTURE_TYPE_I ) s -> sync = 1 ;\n if ( s2 -> next_picture_ptr == NULL ) {\n if ( s2 -> pict_type == AV_PICTURE_TYPE_P && ! s -> sync ) break ;\n }\n if ( ( avctx -> skip_frame >= AVDISCARD_NONREF && s2 -> pict_type == AV_PICTURE_TYPE_B ) || ( avctx -> skip_frame >= AVDISCARD_NONKEY && s2 -> pict_type != AV_PICTURE_TYPE_I ) || avctx -> skip_frame >= AVDISCARD_ALL ) break ;\n if ( ! s -> mpeg_enc_ctx_allocated ) break ;\n if ( s2 -> codec_id == AV_CODEC_ID_MPEG2VIDEO ) {\n if ( mb_y < avctx -> skip_top || mb_y >= s2 -> mb_height - avctx -> skip_bottom ) break ;\n }\n if ( ! s2 -> pict_type ) {\n av_log ( avctx , AV_LOG_ERROR , \"Missing picture start code\\n\" ) ;\n if ( avctx -> err_recognition & AV_EF_EXPLODE ) return AVERROR_INVALIDDATA ;\n break ;\n }\n if ( s2 -> first_slice ) {\n s2 -> first_slice = 0 ;\n if ( mpeg_field_start ( s2 , buf , buf_size ) < 0 ) return - 1 ;\n }\n if ( ! s2 -> current_picture_ptr ) {\n av_log ( avctx , AV_LOG_ERROR , \"current_picture not initialized\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( avctx -> codec -> capabilities & CODEC_CAP_HWACCEL_VDPAU ) {\n s -> slice_count ++ ;\n break ;\n }\n if ( HAVE_THREADS && ( avctx -> active_thread_type & FF_THREAD_SLICE ) ) {\n int threshold = ( s2 -> mb_height * s -> slice_count + s2 -> slice_context_count / 2 ) / s2 -> slice_context_count ;\n if ( threshold <= mb_y ) {\n MpegEncContext * thread_context = s2 -> thread_context [ s -> slice_count ] ;\n thread_context -> start_mb_y = mb_y ;\n thread_context -> end_mb_y = s2 -> mb_height ;\n if ( s -> slice_count ) {\n s2 -> thread_context [ s -> slice_count - 1 ] -> end_mb_y = mb_y ;\n ret = ff_update_duplicate_context ( thread_context , s2 ) ;\n if ( ret < 0 ) return ret ;\n }\n init_get_bits ( & thread_context -> gb , buf_ptr , input_size * 8 ) ;\n s -> slice_count ++ ;\n }\n buf_ptr += 2 ;\n }\n else {\n ret = mpeg_decode_slice ( s2 , mb_y , & buf_ptr , input_size ) ;\n emms_c ( ) ;\n if ( ret < 0 ) {\n if ( avctx -> err_recognition & AV_EF_EXPLODE ) return ret ;\n if ( s2 -> resync_mb_x >= 0 && s2 -> resync_mb_y >= 0 ) ff_er_add_slice ( & s2 -> er , s2 -> resync_mb_x , s2 -> resync_mb_y , s2 -> mb_x , s2 -> mb_y , ER_AC_ERROR | ER_DC_ERROR | ER_MV_ERROR ) ;\n }\n else {\n ff_er_add_slice ( & s2 -> er , s2 -> resync_mb_x , s2 -> resync_mb_y , s2 -> mb_x - 1 , s2 -> mb_y , ER_AC_END | ER_DC_END | ER_MV_END ) ;\n }\n }\n }\n break ;\n }\n }\n }"}
{"idx": 16515, "target": 0, "func": "static int dissect_h245_INTEGER_1_16 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 16U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 16516, "target": 0, "func": "void TSFetchUrl ( const char * headers , int request_len , sockaddr const * ip , TSCont contp , TSFetchWakeUpOptions callback_options , TSFetchEvent events ) {\n if ( callback_options != NO_CALLBACK ) {\n sdk_assert ( sdk_sanity_check_continuation ( contp ) == TS_SUCCESS ) ;\n }\n FetchSM * fetch_sm = FetchSMAllocator . alloc ( ) ;\n fetch_sm -> init ( ( Continuation * ) contp , callback_options , events , headers , request_len , ip ) ;\n fetch_sm -> httpConnect ( ) ;\n }"}
{"idx": 16517, "target": 0, "func": "static unsigned int pfkey_sockaddr_fill ( const xfrm_address_t * xaddr , __be16 port , struct sockaddr * sa , unsigned short family ) {\n switch ( family ) {\n case AF_INET : {\n struct sockaddr_in * sin = ( struct sockaddr_in * ) sa ;\n sin -> sin_family = AF_INET ;\n sin -> sin_port = port ;\n sin -> sin_addr . s_addr = xaddr -> a4 ;\n memset ( sin -> sin_zero , 0 , sizeof ( sin -> sin_zero ) ) ;\n return 32 ;\n }\n # if IS_ENABLED ( CONFIG_IPV6 ) case AF_INET6 : {\n struct sockaddr_in6 * sin6 = ( struct sockaddr_in6 * ) sa ;\n sin6 -> sin6_family = AF_INET6 ;\n sin6 -> sin6_port = port ;\n sin6 -> sin6_flowinfo = 0 ;\n sin6 -> sin6_addr = * ( struct in6_addr * ) xaddr -> a6 ;\n sin6 -> sin6_scope_id = 0 ;\n return 128 ;\n }\n # endif }\n return 0 ;\n }"}
{"idx": 16518, "target": 0, "func": "static UBool _isAlphaNumericString ( const char * s , int32_t len ) {\n int32_t i ;\n for ( i = 0 ;\n i < len ;\n i ++ ) {\n if ( ! ISALPHA ( * ( s + i ) ) && ! ISNUMERIC ( * ( s + i ) ) ) {\n return FALSE ;\n }\n }\n return TRUE ;\n }"}
{"idx": 16519, "target": 0, "func": "SPL_METHOD ( SplFileInfo , setInfoClass ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n zend_class_entry * ce = spl_ce_SplFileInfo ;\n zend_error_handling error_handling ;\n zend_replace_error_handling ( EH_THROW , spl_ce_UnexpectedValueException , & error_handling TSRMLS_CC ) ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"|C\" , & ce ) == SUCCESS ) {\n intern -> info_class = ce ;\n }\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n }"}
{"idx": 16520, "target": 0, "func": "bool open_and_set_current ( const char * name ) {\n FILE * opened = fopen ( name , \"rb\" ) ;\n if ( ! opened ) return false ;\n cur_file ++ ;\n cur_file -> file = opened ;\n cur_file -> file_name = my_strdup ( name , MYF ( MY_FAE ) ) ;\n cur_file -> lineno = 1 ;\n return true ;\n }"}
{"idx": 16521, "target": 0, "func": "void mi_disable_non_unique_index ( MI_INFO * info , ha_rows rows ) {\n MYISAM_SHARE * share = info -> s ;\n MI_KEYDEF * key = share -> keyinfo ;\n uint i ;\n DBUG_ASSERT ( info -> state -> records == 0 && ( ! rows || rows >= MI_MIN_ROWS_TO_DISABLE_INDEXES ) ) ;\n for ( i = 0 ;\n i < share -> base . keys ;\n i ++ , key ++ ) {\n if ( ! ( key -> flag & ( HA_NOSAME | HA_SPATIAL | HA_AUTO_KEY ) ) && ! mi_too_big_key_for_sort ( key , rows ) && info -> s -> base . auto_key != i + 1 ) {\n mi_clear_key_active ( share -> state . key_map , i ) ;\n info -> update |= HA_STATE_CHANGED ;\n }\n }\n }"}
{"idx": 16522, "target": 0, "func": "char * TSfgets ( TSFile filep , char * buf , size_t length ) {\n FileImpl * file = ( FileImpl * ) filep ;\n return file -> fgets ( buf , length ) ;\n }"}
{"idx": 16523, "target": 0, "func": "static void thumbnail_state_free ( ThumbnailState * state ) {\n g_object_unref ( state -> cancellable ) ;\n g_free ( state ) ;\n }"}
{"idx": 16524, "target": 0, "func": "void dummy_error_processor ( THD * thd , void * data ) {\n }"}
{"idx": 16525, "target": 0, "func": "void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 ) sadMxN ( 16 , 32 ) sadMxNx4D ( 16 , 32 ) sadMxN ( 16 , 16 ) sadMxNxK ( 16 , 16 , 3 ) sadMxNxK ( 16 , 16 , 8 ) sadMxNx4D ( 16 , 16 ) sadMxN ( 16 , 8 ) sadMxNxK ( 16 , 8 , 3 ) sadMxNxK ( 16 , 8 , 8 ) sadMxNx4D ( 16 , 8 ) sadMxN ( 8 , 16 ) sadMxNxK ( 8 , 16 , 3 ) sadMxNxK ( 8 , 16 , 8 ) sadMxNx4D ( 8 , 16 ) sadMxN ( 8 , 8 ) sadMxNxK ( 8 , 8 , 3 ) sadMxNxK ( 8 , 8 , 8 ) sadMxNx4D ( 8 , 8 ) sadMxN ( 8 , 4 ) sadMxNxK ( 8 , 4 , 8 ) sadMxNx4D ( 8 , 4 ) sadMxN ( 4 , 8 ) sadMxNxK ( 4 , 8 , 8 ) sadMxNx4D ( 4 , 8 ) sadMxN ( 4 , 4 ) sadMxNxK ( 4 , 4 , 3 ) sadMxNxK ( 4 , 4 , 8 )"}
{"idx": 16526, "target": 0, "func": "static int dissect_pvfs2_mgmt_perf_mon_response ( tvbuff_t * tvb , proto_tree * tree , int offset ) {\n guint32 perf_array_count , i ;\n proto_tree_add_item ( tree , hf_pvfs_mgmt_perf_mon_response_suggested_next_id , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n offset += 4 ;\n offset = dissect_pvfs_uint64 ( tvb , tree , offset , hf_pvfs_end_time_ms , NULL ) ;\n offset = dissect_pvfs_uint64 ( tvb , tree , offset , hf_pvfs_cur_time_ms , NULL ) ;\n offset += 4 ;\n perf_array_count = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_pvfs_mgmt_perf_mon_response_perf_array_count , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n for ( i = 0 ;\n i < perf_array_count ;\n i ++ ) offset = dissect_pvfs_mgmt_perf_stat ( tvb , tree , offset , i ) ;\n return offset ;\n }"}
{"idx": 16527, "target": 1, "func": "static int virLogOnceInit ( void ) {\n if ( virMutexInit ( & virLogMutex ) < 0 ) return - 1 ;\n virLogLock ( ) ;\n virLogDefaultPriority = VIR_LOG_DEFAULT ;\n if ( VIR_ALLOC_QUIET ( virLogRegex ) >= 0 ) {\n if ( regcomp ( virLogRegex , VIR_LOG_REGEX , REG_EXTENDED ) != 0 ) VIR_FREE ( virLogRegex ) ;\n }\n virLogUnlock ( ) ;\n return 0 ;\n }"}
{"idx": 16528, "target": 0, "func": "static VALUE ossl_asn1cons_to_der ( VALUE self ) {\n int tag , tn , tc , explicit , constructed = 1 ;\n int found_prim = 0 , seq_len ;\n long length ;\n unsigned char * p ;\n VALUE value , str , inf_length ;\n tn = NUM2INT ( ossl_asn1_get_tag ( self ) ) ;\n tc = ossl_asn1_tag_class ( self ) ;\n inf_length = ossl_asn1_get_infinite_length ( self ) ;\n if ( inf_length == Qtrue ) {\n VALUE ary , example ;\n constructed = 2 ;\n if ( rb_obj_class ( self ) == cASN1Sequence || rb_obj_class ( self ) == cASN1Set ) {\n tag = ossl_asn1_default_tag ( self ) ;\n }\n else {\n ary = ossl_asn1_get_value ( self ) ;\n if ( ! rb_obj_is_kind_of ( ary , rb_cArray ) ) ossl_raise ( eASN1Error , \"Constructive value must be an Array\" ) ;\n while ( ! found_prim ) {\n example = rb_ary_entry ( ary , 0 ) ;\n if ( rb_obj_is_kind_of ( example , cASN1Primitive ) ) {\n found_prim = 1 ;\n }\n else {\n if ( ! rb_obj_is_kind_of ( example , cASN1Constructive ) ) {\n ossl_raise ( eASN1Error , \"invalid constructed encoding\" ) ;\n return Qnil ;\n }\n ary = ossl_asn1_get_value ( example ) ;\n }\n }\n tag = ossl_asn1_default_tag ( example ) ;\n }\n }\n else {\n if ( rb_obj_class ( self ) == cASN1Constructive ) ossl_raise ( eASN1Error , \"Constructive shall only be used with infinite length\" ) ;\n tag = ossl_asn1_default_tag ( self ) ;\n }\n explicit = ossl_asn1_is_explicit ( self ) ;\n value = join_der ( ossl_asn1_get_value ( self ) ) ;\n seq_len = ASN1_object_size ( constructed , RSTRING_LENINT ( value ) , tag ) ;\n length = ASN1_object_size ( constructed , seq_len , tn ) ;\n str = rb_str_new ( 0 , length ) ;\n p = ( unsigned char * ) RSTRING_PTR ( str ) ;\n if ( tc == V_ASN1_UNIVERSAL ) ASN1_put_object ( & p , constructed , RSTRING_LENINT ( value ) , tn , tc ) ;\n else {\n if ( explicit ) {\n ASN1_put_object ( & p , constructed , seq_len , tn , tc ) ;\n ASN1_put_object ( & p , constructed , RSTRING_LENINT ( value ) , tag , V_ASN1_UNIVERSAL ) ;\n }\n else {\n ASN1_put_object ( & p , constructed , RSTRING_LENINT ( value ) , tn , tc ) ;\n }\n }\n memcpy ( p , RSTRING_PTR ( value ) , RSTRING_LEN ( value ) ) ;\n p += RSTRING_LEN ( value ) ;\n if ( explicit && inf_length == Qtrue ) {\n ASN1_put_eoc ( & p ) ;\n }\n ossl_str_adjust ( str , p ) ;\n return str ;\n }"}
{"idx": 16529, "target": 0, "func": "static int dissect_h225_SEQUENCE_OF_AuthenticationMechanism ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_SEQUENCE_OF_AuthenticationMechanism , SEQUENCE_OF_AuthenticationMechanism_sequence_of ) ;\n return offset ;\n }"}
{"idx": 16530, "target": 1, "func": "void vp9_xform_quant_fp ( MACROBLOCK * x , int plane , int block , BLOCK_SIZE plane_bsize , TX_SIZE tx_size ) {\n MACROBLOCKD * const xd = & x -> e_mbd ;\n const struct macroblock_plane * const p = & x -> plane [ plane ] ;\n const struct macroblockd_plane * const pd = & xd -> plane [ plane ] ;\n const scan_order * const scan_order = & vp9_default_scan_orders [ tx_size ] ;\n int16_t * const coeff = BLOCK_OFFSET ( p -> coeff , block ) ;\n int16_t * const qcoeff = BLOCK_OFFSET ( p -> qcoeff , block ) ;\n int16_t * const dqcoeff = BLOCK_OFFSET ( pd -> dqcoeff , block ) ;\n uint16_t * const eob = & p -> eobs [ block ] ;\n const int diff_stride = 4 * num_4x4_blocks_wide_lookup [ plane_bsize ] ;\n int i , j ;\n const int16_t * src_diff ;\n txfrm_block_to_raster_xy ( plane_bsize , tx_size , block , & i , & j ) ;\n src_diff = & p -> src_diff [ 4 * ( j * diff_stride + i ) ] ;\n switch ( tx_size ) {\n case TX_32X32 : fdct32x32 ( x -> use_lp32x32fdct , src_diff , coeff , diff_stride ) ;\n vp9_quantize_fp_32x32 ( coeff , 1024 , x -> skip_block , p -> zbin , p -> round_fp , p -> quant_fp , p -> quant_shift , qcoeff , dqcoeff , pd -> dequant , p -> zbin_extra , eob , scan_order -> scan , scan_order -> iscan ) ;\n break ;\n case TX_16X16 : vp9_fdct16x16 ( src_diff , coeff , diff_stride ) ;\n vp9_quantize_fp ( coeff , 256 , x -> skip_block , p -> zbin , p -> round_fp , p -> quant_fp , p -> quant_shift , qcoeff , dqcoeff , pd -> dequant , p -> zbin_extra , eob , scan_order -> scan , scan_order -> iscan ) ;\n break ;\n case TX_8X8 : vp9_fdct8x8 ( src_diff , coeff , diff_stride ) ;\n vp9_quantize_fp ( coeff , 64 , x -> skip_block , p -> zbin , p -> round_fp , p -> quant_fp , p -> quant_shift , qcoeff , dqcoeff , pd -> dequant , p -> zbin_extra , eob , scan_order -> scan , scan_order -> iscan ) ;\n break ;\n case TX_4X4 : x -> fwd_txm4x4 ( src_diff , coeff , diff_stride ) ;\n vp9_quantize_fp ( coeff , 16 , x -> skip_block , p -> zbin , p -> round_fp , p -> quant_fp , p -> quant_shift , qcoeff , dqcoeff , pd -> dequant , p -> zbin_extra , eob , scan_order -> scan , scan_order -> iscan ) ;\n break ;\n default : assert ( 0 ) ;\n break ;\n }\n }"}
{"idx": 16531, "target": 0, "func": "static BusState * qbus_find ( const char * path ) {\n DeviceState * dev ;\n BusState * bus ;\n char elem [ 128 ] , msg [ 256 ] ;\n int pos , len ;\n if ( path [ 0 ] == '/' ) {\n bus = main_system_bus ;\n pos = 0 ;\n }\n else {\n if ( sscanf ( path , \"%127[^/]%n\" , elem , & len ) != 1 ) {\n qemu_error ( \"path parse error (\\\"%s\\\")\\n\" , path ) ;\n return NULL ;\n }\n bus = qbus_find_recursive ( main_system_bus , elem , NULL ) ;\n if ( ! bus ) {\n qemu_error ( \"bus \\\"%s\\\" not found\\n\" , elem ) ;\n return NULL ;\n }\n pos = len ;\n }\n for ( ;\n ;\n ) {\n if ( path [ pos ] == '\\0' ) {\n return bus ;\n }\n if ( sscanf ( path + pos , \"/%127[^/]%n\" , elem , & len ) != 1 ) {\n qemu_error ( \"path parse error (\\\"%s\\\" pos %d)\\n\" , path , pos ) ;\n return NULL ;\n }\n pos += len ;\n dev = qbus_find_dev ( bus , elem ) ;\n if ( ! dev ) {\n qbus_list_dev ( bus , msg , sizeof ( msg ) ) ;\n qemu_error ( \"device \\\"%s\\\" not found\\n%s\\n\" , elem , msg ) ;\n return NULL ;\n }\n if ( path [ pos ] == '\\0' ) {\n switch ( dev -> num_child_bus ) {\n case 0 : qemu_error ( \"device has no child bus (%s)\\n\" , path ) ;\n return NULL ;\n case 1 : return QLIST_FIRST ( & dev -> child_bus ) ;\n default : qbus_list_bus ( dev , msg , sizeof ( msg ) ) ;\n qemu_error ( \"device has multiple child busses (%s)\\n%s\\n\" , path , msg ) ;\n return NULL ;\n }\n }\n if ( sscanf ( path + pos , \"/%127[^/]%n\" , elem , & len ) != 1 ) {\n qemu_error ( \"path parse error (\\\"%s\\\" pos %d)\\n\" , path , pos ) ;\n return NULL ;\n }\n pos += len ;\n bus = qbus_find_bus ( dev , elem ) ;\n if ( ! bus ) {\n qbus_list_bus ( dev , msg , sizeof ( msg ) ) ;\n qemu_error ( \"child bus \\\"%s\\\" not found\\n%s\\n\" , elem , msg ) ;\n return NULL ;\n }\n }\n }"}
{"idx": 16532, "target": 0, "func": "int min_heap_erase ( min_heap_t * s , struct event * e ) {\n if ( ( ( unsigned int ) - 1 ) != e -> min_heap_idx ) {\n struct event * last = s -> p [ -- s -> n ] ;\n unsigned parent = ( e -> min_heap_idx - 1 ) / 2 ;\n if ( e -> min_heap_idx > 0 && min_heap_elem_greater ( s -> p [ parent ] , last ) ) min_heap_shift_up_ ( s , e -> min_heap_idx , last ) ;\n else min_heap_shift_down_ ( s , e -> min_heap_idx , last ) ;\n e -> min_heap_idx = - 1 ;\n return 0 ;\n }\n return - 1 ;\n }"}
{"idx": 16533, "target": 0, "func": "static int qcow2_refresh_limits ( BlockDriverState * bs ) {\n BDRVQcowState * s = bs -> opaque ;\n bs -> bl . write_zeroes_alignment = s -> cluster_sectors ;\n return 0 ;\n }"}
{"idx": 16534, "target": 0, "func": "static int compare_myanmar_order ( const hb_glyph_info_t * pa , const hb_glyph_info_t * pb ) {\n int a = pa -> myanmar_position ( ) ;\n int b = pb -> myanmar_position ( ) ;\n return a < b ? - 1 : a == b ? 0 : + 1 ;\n }"}
{"idx": 16535, "target": 0, "func": "static int startcom ( int com , tm_event_t event , struct tcp_chan * * pchan ) {\n int ret = DIS_SUCCESS ;\n struct tcp_chan * chan = NULL ;\n if ( localmom ( ) == - 1 ) {\n return ( - 1 ) ;\n }\n if ( ( chan = DIS_tcp_setup ( local_conn ) ) == NULL ) goto done ;\n ret = diswsi ( chan , TM_PROTOCOL ) ;\n if ( ret != DIS_SUCCESS ) goto done ;\n ret = diswsi ( chan , TM_PROTOCOL_VER ) ;\n if ( ret != DIS_SUCCESS ) goto done ;\n ret = diswcs ( chan , tm_jobid , tm_jobid_len ) ;\n if ( ret != DIS_SUCCESS ) goto done ;\n ret = diswcs ( chan , tm_jobcookie , tm_jobcookie_len ) ;\n if ( ret != DIS_SUCCESS ) goto done ;\n ret = diswsi ( chan , com ) ;\n if ( ret != DIS_SUCCESS ) goto done ;\n ret = diswsi ( chan , event ) ;\n if ( ret != DIS_SUCCESS ) goto done ;\n ret = diswui ( chan , tm_jobtid ) ;\n if ( ret != DIS_SUCCESS ) goto done ;\n * pchan = chan ;\n return ( DIS_SUCCESS ) ;\n done : TM_DBPRT ( ( \"startcom: send error %s\\n\" , dis_emsg [ ret ] ) ) if ( chan != NULL ) DIS_tcp_close ( chan ) ;\n else close ( local_conn ) ;\n local_conn = - 1 ;\n return ( ret ) ;\n }"}
{"idx": 16536, "target": 0, "func": "static void gx_ttfExport__Point ( ttfExport * self , FloatPoint * p , bool bOnCurve , bool bNewPath ) {\n }"}
{"idx": 16537, "target": 0, "func": "static kadm5_ret_t make_ks_from_keys ( krb5_context context , int n_keys , krb5_keyblock * keyblocks , krb5_key_salt_tuple * * ks_tuple ) {\n int i ;\n * ks_tuple = calloc ( n_keys , sizeof ( * * ks_tuple ) ) ;\n if ( * ks_tuple == NULL ) return ENOMEM ;\n for ( i = 0 ;\n i < n_keys ;\n i ++ ) {\n ( * ks_tuple ) [ i ] . ks_enctype = keyblocks [ i ] . enctype ;\n ( * ks_tuple ) [ i ] . ks_salttype = KRB5_KDB_SALTTYPE_NORMAL ;\n }\n return 0 ;\n }"}
{"idx": 16538, "target": 0, "func": "static void check_for_reg_data_type_usage ( ClusterInfo * cluster ) {\n int dbnum ;\n FILE * script = NULL ;\n bool found = false ;\n char output_path [ MAXPGPATH ] ;\n prep_status ( \"Checking for reg* system OID user data types\" ) ;\n snprintf ( output_path , sizeof ( output_path ) , \"tables_using_reg.txt\" ) ;\n for ( dbnum = 0 ;\n dbnum < cluster -> dbarr . ndbs ;\n dbnum ++ ) {\n PGresult * res ;\n bool db_used = false ;\n int ntups ;\n int rowno ;\n int i_nspname , i_relname , i_attname ;\n DbInfo * active_db = & cluster -> dbarr . dbs [ dbnum ] ;\n PGconn * conn = connectToServer ( cluster , active_db -> db_name ) ;\n res = executeQueryOrDie ( conn , \"SELECT n.nspname, c.relname, a.attname \" \"FROM pg_catalog.pg_class c, \" \" pg_catalog.pg_namespace n, \" \" pg_catalog.pg_attribute a \" \"WHERE c.oid = a.attrelid AND \" \" NOT a.attisdropped AND \" \" a.atttypid IN ( \" \" 'pg_catalog.regproc'::pg_catalog.regtype, \" \" 'pg_catalog.regprocedure'::pg_catalog.regtype, \" \" 'pg_catalog.regoper'::pg_catalog.regtype, \" \" 'pg_catalog.regoperator'::pg_catalog.regtype, \" \" 'pg_catalog.regconfig'::pg_catalog.regtype, \" \" 'pg_catalog.regdictionary'::pg_catalog.regtype) AND \" \" c.relnamespace = n.oid AND \" \" n.nspname NOT IN ('pg_catalog', 'information_schema')\" ) ;\n ntups = PQntuples ( res ) ;\n i_nspname = PQfnumber ( res , \"nspname\" ) ;\n i_relname = PQfnumber ( res , \"relname\" ) ;\n i_attname = PQfnumber ( res , \"attname\" ) ;\n for ( rowno = 0 ;\n rowno < ntups ;\n rowno ++ ) {\n found = true ;\n if ( script == NULL && ( script = fopen_priv ( output_path , \"w\" ) ) == NULL ) pg_fatal ( \"Could not open file \\\"%s\\\": %s\\n\" , output_path , getErrorText ( ) ) ;\n if ( ! db_used ) {\n fprintf ( script , \"Database: %s\\n\" , active_db -> db_name ) ;\n db_used = true ;\n }\n fprintf ( script , \" %s.%s.%s\\n\" , PQgetvalue ( res , rowno , i_nspname ) , PQgetvalue ( res , rowno , i_relname ) , PQgetvalue ( res , rowno , i_attname ) ) ;\n }\n PQclear ( res ) ;\n PQfinish ( conn ) ;\n }\n if ( script ) fclose ( script ) ;\n if ( found ) {\n pg_log ( PG_REPORT , \"fatal\\n\" ) ;\n pg_fatal ( \"Your installation contains one of the reg* data types in user tables.\\n\" \"These data types reference system OIDs that are not preserved by\\n\" \"pg_upgrade, so this cluster cannot currently be upgraded. You can\\n\" \"remove the problem tables and restart the upgrade. A list of the problem\\n\" \"columns is in the file:\\n\" \" %s\\n\\n\" , output_path ) ;\n }\n else check_ok ( ) ;\n }"}
{"idx": 16539, "target": 0, "func": "static inline void memshl ( register int32_t * a , register int32_t * b ) {\n * a ++ = * b ++ ;\n * a ++ = * b ++ ;\n * a ++ = * b ++ ;\n * a ++ = * b ++ ;\n * a ++ = * b ++ ;\n * a ++ = * b ++ ;\n * a ++ = * b ++ ;\n * a = * b ;\n }"}
{"idx": 16540, "target": 0, "func": "static void test_sshort_bug ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND my_bind [ 4 ] ;\n short short_value ;\n int32 long_value ;\n ulong s_length , l_length , ll_length , t_length ;\n ulonglong longlong_value ;\n int rc ;\n uchar tiny_value ;\n char llbuf [ 22 ] ;\n myheader ( \"test_sshort_bug\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_sshort\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_sshort(a smallint signed, \\ b smallint signed, \\ c smallint unsigned, \\ d smallint unsigned)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_sshort VALUES(-5999, -5999, 35999, 200)\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT * FROM test_sshort\" ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_SHORT ;\n my_bind [ 0 ] . buffer = ( void * ) & short_value ;\n my_bind [ 0 ] . length = & s_length ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 1 ] . buffer = ( void * ) & long_value ;\n my_bind [ 1 ] . length = & l_length ;\n my_bind [ 2 ] . buffer_type = MYSQL_TYPE_LONGLONG ;\n my_bind [ 2 ] . buffer = ( void * ) & longlong_value ;\n my_bind [ 2 ] . length = & ll_length ;\n my_bind [ 3 ] . buffer_type = MYSQL_TYPE_TINY ;\n my_bind [ 3 ] . buffer = ( void * ) & tiny_value ;\n my_bind [ 3 ] . is_unsigned = TRUE ;\n my_bind [ 3 ] . length = & t_length ;\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) {\n fprintf ( stdout , \"\\n sshort : %d (%ld)\" , short_value , s_length ) ;\n fprintf ( stdout , \"\\n slong : %ld (%ld)\" , ( long ) long_value , l_length ) ;\n fprintf ( stdout , \"\\n longlong : %s (%ld)\" , llstr ( longlong_value , llbuf ) , ll_length ) ;\n fprintf ( stdout , \"\\n tinyint : %d (%ld)\" , tiny_value , t_length ) ;\n }\n DIE_UNLESS ( short_value == - 5999 ) ;\n DIE_UNLESS ( s_length == 2 ) ;\n DIE_UNLESS ( long_value == - 5999 ) ;\n DIE_UNLESS ( l_length == 4 ) ;\n DIE_UNLESS ( longlong_value == 35999 ) ;\n DIE_UNLESS ( ll_length == 8 ) ;\n DIE_UNLESS ( tiny_value == 200 ) ;\n DIE_UNLESS ( t_length == 1 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 16541, "target": 0, "func": "int gs_malloc_wrap ( gs_memory_t * * wrapped , gs_malloc_memory_t * contents ) {\n # ifdef USE_RETRY_MEMORY_WRAPPER {\n gs_memory_retrying_t * rmem ;\n rmem = ( gs_memory_retrying_t * ) gs_alloc_bytes_immovable ( ( gs_memory_t * ) lmem , sizeof ( gs_memory_retrying_t ) , \"gs_malloc_wrap(retrying)\" ) ;\n if ( rmem == 0 ) {\n gs_memory_locked_release ( lmem ) ;\n gs_free_object ( cmem , lmem , \"gs_malloc_wrap(locked)\" ) ;\n return_error ( gs_error_VMerror ) ;\n }\n code = gs_memory_retrying_init ( rmem , ( gs_memory_t * ) lmem ) ;\n if ( code < 0 ) {\n gs_free_object ( ( gs_memory_t * ) lmem , rmem , \"gs_malloc_wrap(retrying)\" ) ;\n gs_memory_locked_release ( lmem ) ;\n gs_free_object ( cmem , lmem , \"gs_malloc_wrap(locked)\" ) ;\n return code ;\n }\n * wrapped = ( gs_memory_t * ) rmem ;\n }\n # endif return 0 ;\n }\n gs_malloc_memory_t * gs_malloc_wrapped_contents ( gs_memory_t * wrapped ) {\n # ifdef USE_RETRY_MEMORY_WRAPPER gs_memory_retrying_t * rmem = ( gs_memory_retrying_t * ) wrapped ;\n return ( gs_malloc_memory_t * ) gs_memory_retrying_target ( rmem ) ;\n # else return ( gs_malloc_memory_t * ) wrapped ;\n # endif }\n gs_malloc_memory_t * gs_malloc_unwrap ( gs_memory_t * wrapped ) {\n # ifdef USE_RETRY_MEMORY_WRAPPER gs_memory_retrying_t * rmem = ( gs_memory_retrying_t * ) wrapped ;\n gs_memory_t * contents = gs_memory_retrying_target ( rmem ) ;\n gs_free_object ( wrapped rmem , \"gs_malloc_unwrap(retrying)\" ) ;\n return ( gs_malloc_memory_t * ) contents ;\n # else return ( gs_malloc_memory_t * ) wrapped ;\n # endif }\n gs_memory_t * gs_malloc_init ( void ) {\n gs_malloc_memory_t * malloc_memory_default = gs_malloc_memory_init ( ) ;\n gs_memory_t * memory_t_default ;\n if ( malloc_memory_default == NULL ) return NULL ;\n if ( gs_lib_ctx_init ( ( gs_memory_t * ) malloc_memory_default ) != 0 ) return NULL ;\n # if defined ( USE_RETRY_MEMORY_WRAPPER ) gs_malloc_wrap ( & memory_t_default , malloc_memory_default ) ;\n # else memory_t_default = ( gs_memory_t * ) malloc_memory_default ;\n # endif memory_t_default -> stable_memory = memory_t_default ;\n return memory_t_default ;\n }\n void gs_malloc_release ( gs_memory_t * mem ) {\n gs_malloc_memory_t * malloc_memory_default ;\n if ( mem == NULL ) return ;\n if ( gs_debug [ ':' ] ) {\n void * temp ;\n char save_debug_a = gs_debug [ 'a' ] ;\n gs_debug [ 'a' ] = 1 ;\n temp = ( char * ) gs_alloc_bytes_immovable ( mem , 8 , \"gs_malloc_release\" ) ;\n gs_debug [ 'a' ] = save_debug_a ;\n gs_free_object ( mem , temp , \"gs_malloc_release\" ) ;\n }\n # ifdef USE_RETRY_MEMORY_WRAPPER malloc_memory_default = gs_malloc_unwrap ( mem ) ;\n # else malloc_memory_default = ( gs_malloc_memory_t * ) mem ;\n # endif gs_lib_ctx_fin ( ( gs_memory_t * ) malloc_memory_default ) ;\n gs_malloc_memory_release ( malloc_memory_default ) ;\n }"}
{"idx": 16542, "target": 0, "func": "static int dissect_h245_T_mediaControlChannel ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 914 \"../../asn1/h245/h245.cnf\" if ( upcoming_channel ) upcoming_channel -> upcoming_addr = & upcoming_channel -> media_control_addr ;\n offset = dissect_h245_TransportAddress ( tvb , offset , actx , tree , hf_index ) ;\n # line 918 \"../../asn1/h245/h245.cnf\" if ( upcoming_channel ) upcoming_channel -> upcoming_addr = NULL ;\n return offset ;\n }"}
{"idx": 16543, "target": 0, "func": "void mpi_set_cond ( MPI w , MPI u , unsigned long set ) {\n mpi_size_t i ;\n mpi_size_t nlimbs = u -> alloced ;\n mpi_limb_t mask = ( ( mpi_limb_t ) 0 ) - ! ! set ;\n mpi_limb_t x ;\n if ( w -> alloced != u -> alloced ) log_bug ( \"mpi_set_cond: different sizes\\n\" ) ;\n for ( i = 0 ;\n i < nlimbs ;\n i ++ ) {\n x = mask & ( w -> d [ i ] ^ u -> d [ i ] ) ;\n w -> d [ i ] = w -> d [ i ] ^ x ;\n }\n x = mask & ( w -> nlimbs ^ u -> nlimbs ) ;\n w -> nlimbs = w -> nlimbs ^ x ;\n x = mask & ( w -> nbits ^ u -> nbits ) ;\n w -> nbits = w -> nbits ^ x ;\n x = mask & ( w -> sign ^ u -> sign ) ;\n w -> sign = w -> sign ^ x ;\n }"}
{"idx": 16544, "target": 0, "func": "TEST_F ( BrowsingDataRemoverImplTest , RemoveCookieForever ) {\n BlockUntilBrowsingDataRemoved ( base : : Time ( ) , base : : Time : : Max ( ) , BrowsingDataRemover : : REMOVE_COOKIES , false ) ;\n EXPECT_EQ ( BrowsingDataRemover : : REMOVE_COOKIES , GetRemovalMask ( ) ) ;\n EXPECT_EQ ( BrowsingDataHelper : : UNPROTECTED_WEB , GetOriginTypeMask ( ) ) ;\n StoragePartitionRemovalData removal_data = GetStoragePartitionRemovalData ( ) ;\n EXPECT_EQ ( removal_data . remove_mask , StoragePartition : : REMOVE_DATA_MASK_COOKIES ) ;\n EXPECT_EQ ( removal_data . quota_storage_remove_mask , StoragePartition : : QUOTA_MANAGED_STORAGE_MASK_ALL ) ;\n EXPECT_EQ ( removal_data . remove_begin , GetBeginTime ( ) ) ;\n }"}
{"idx": 16545, "target": 0, "func": "int qemuMonitorTextGraphicsRelocate ( qemuMonitorPtr mon , int type , const char * hostname , int port , int tlsPort , const char * tlsSubject ) {\n char * cmd ;\n char * info = NULL ;\n if ( virAsprintf ( & cmd , \"client_migrate_info %s %s %d %d %s\" , type == VIR_DOMAIN_GRAPHICS_TYPE_SPICE ? \"spice\" : \"vnc\" , hostname , port , tlsPort , tlsSubject ? tlsSubject : \"\" ) < 0 ) {\n virReportOOMError ( ) ;\n return - 1 ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & info ) < 0 ) {\n VIR_FREE ( cmd ) ;\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"cannot run monitor command to relocate graphics client\" ) ) ;\n return - 1 ;\n }\n VIR_FREE ( cmd ) ;\n VIR_FREE ( info ) ;\n return 0 ;\n }"}
{"idx": 16546, "target": 0, "func": "int qemuMonitorJSONCreateSnapshot ( qemuMonitorPtr mon , const char * name ) {\n int ret ;\n virJSONValuePtr cmd ;\n virJSONValuePtr reply = NULL ;\n cmd = qemuMonitorJSONMakeCommand ( \"savevm\" , \"s:name\" , name , NULL ) ;\n if ( ! cmd ) return - 1 ;\n if ( ( ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ) < 0 ) goto cleanup ;\n if ( qemuMonitorJSONHasError ( reply , \"CommandNotFound\" ) && qemuMonitorCheckHMP ( mon , \"savevm\" ) ) {\n VIR_DEBUG ( \"savevm command not found, trying HMP\" ) ;\n ret = qemuMonitorTextCreateSnapshot ( mon , name ) ;\n goto cleanup ;\n }\n ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n cleanup : virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 16547, "target": 0, "func": "static void get_current_db ( ) {\n MYSQL_RES * res ;\n if ( one_database ) return ;\n my_free ( current_db ) ;\n current_db = NULL ;\n if ( ! mysql_query ( & mysql , \"SELECT DATABASE()\" ) && ( res = mysql_use_result ( & mysql ) ) ) {\n MYSQL_ROW row = mysql_fetch_row ( res ) ;\n if ( row && row [ 0 ] ) current_db = my_strdup ( row [ 0 ] , MYF ( MY_WME ) ) ;\n mysql_free_result ( res ) ;\n }\n }"}
{"idx": 16548, "target": 0, "func": "static inline uint16_t gifgetunsigned ( Gif_Reader * grr ) {\n uint8_t one = gifgetbyte ( grr ) ;\n uint8_t two = gifgetbyte ( grr ) ;\n return one | ( two << 8 ) ;\n }"}
{"idx": 16549, "target": 0, "func": "static int clone_slice ( H264Context * dst , H264Context * src ) {\n memcpy ( dst -> block_offset , src -> block_offset , sizeof ( dst -> block_offset ) ) ;\n dst -> cur_pic_ptr = src -> cur_pic_ptr ;\n dst -> cur_pic = src -> cur_pic ;\n dst -> linesize = src -> linesize ;\n dst -> uvlinesize = src -> uvlinesize ;\n dst -> first_field = src -> first_field ;\n dst -> prev_poc_msb = src -> prev_poc_msb ;\n dst -> prev_poc_lsb = src -> prev_poc_lsb ;\n dst -> prev_frame_num_offset = src -> prev_frame_num_offset ;\n dst -> prev_frame_num = src -> prev_frame_num ;\n dst -> short_ref_count = src -> short_ref_count ;\n memcpy ( dst -> short_ref , src -> short_ref , sizeof ( dst -> short_ref ) ) ;\n memcpy ( dst -> long_ref , src -> long_ref , sizeof ( dst -> long_ref ) ) ;\n memcpy ( dst -> default_ref_list , src -> default_ref_list , sizeof ( dst -> default_ref_list ) ) ;\n memcpy ( dst -> dequant4_coeff , src -> dequant4_coeff , sizeof ( src -> dequant4_coeff ) ) ;\n memcpy ( dst -> dequant8_coeff , src -> dequant8_coeff , sizeof ( src -> dequant8_coeff ) ) ;\n return 0 ;\n }"}
{"idx": 16550, "target": 0, "func": "TSReturnCode TSHttpHdrUrlGet ( TSMBuffer bufp , TSMLoc obj , TSMLoc * locp ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_http_hdr_handle ( obj ) == TS_SUCCESS ) ;\n HTTPHdrImpl * hh = ( HTTPHdrImpl * ) obj ;\n if ( hh -> m_polarity != HTTP_TYPE_REQUEST ) {\n return TS_ERROR ;\n }\n * locp = ( ( TSMLoc ) hh -> u . req . m_url_impl ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 16551, "target": 0, "func": "static void Type_LUTB2A_Free ( struct _cms_typehandler_struct * self , void * Ptr ) {\n cmsPipelineFree ( ( cmsPipeline * ) Ptr ) ;\n return ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 16552, "target": 1, "func": "proto_item * proto_tree_add_text_internal ( proto_tree * tree , tvbuff_t * tvb , gint start , gint length , const char * format , ... ) {\n proto_item * pi ;\n va_list ap ;\n header_field_info * hfinfo ;\n CHECK_FOR_NULL_TREE ( tree ) ;\n TRY_TO_FAKE_THIS_ITEM ( tree , hf_text_only , hfinfo ) ;\n pi = proto_tree_add_text_node ( tree , tvb , start , length ) ;\n TRY_TO_FAKE_THIS_REPR ( pi ) ;\n va_start ( ap , format ) ;\n proto_tree_set_representation ( pi , format , ap ) ;\n va_end ( ap ) ;\n return pi ;\n }"}
{"idx": 16553, "target": 0, "func": "static void dissect_coap_opt_uri_host ( tvbuff_t * tvb , proto_item * head_item , proto_tree * subtree , gint offset , gint opt_length , coap_info * coinfo , int hf ) {\n const guint8 * str ;\n proto_tree_add_item_ret_string ( subtree , hf , tvb , offset , opt_length , ENC_ASCII , wmem_packet_scope ( ) , & str ) ;\n proto_item_append_text ( head_item , \": %s\" , str ) ;\n if ( strchr ( str , ':' ) == NULL ) {\n wmem_strbuf_append_printf ( coinfo -> uri_str_strbuf , \"coap://%s\" , str ) ;\n }\n else {\n wmem_strbuf_append_printf ( coinfo -> uri_str_strbuf , \"coap://[%s]\" , str ) ;\n }\n }"}
{"idx": 16554, "target": 0, "func": "static void * gs_heap_resize_object ( gs_memory_t * mem , void * obj , uint new_num_elements , client_name_t cname ) {\n gs_malloc_memory_t * mmem = ( gs_malloc_memory_t * ) mem ;\n gs_malloc_block_t * ptr = ( gs_malloc_block_t * ) obj - 1 ;\n gs_memory_type_ptr_t pstype = ptr -> type ;\n uint old_size = gs_object_size ( mem , obj ) + sizeof ( gs_malloc_block_t ) ;\n uint new_size = gs_struct_type_size ( pstype ) * new_num_elements + sizeof ( gs_malloc_block_t ) ;\n gs_malloc_block_t * new_ptr ;\n if ( new_size == old_size ) return obj ;\n if ( mmem -> monitor ) gx_monitor_enter ( mmem -> monitor ) ;\n new_ptr = ( gs_malloc_block_t * ) gs_realloc ( ptr , old_size , new_size ) ;\n if ( new_ptr == 0 ) return 0 ;\n if ( new_ptr -> prev ) new_ptr -> prev -> next = new_ptr ;\n else mmem -> allocated = new_ptr ;\n if ( new_ptr -> next ) new_ptr -> next -> prev = new_ptr ;\n new_ptr -> size = new_size - sizeof ( gs_malloc_block_t ) ;\n mmem -> used -= old_size ;\n mmem -> used += new_size ;\n if ( mmem -> monitor ) gx_monitor_leave ( mmem -> monitor ) ;\n if ( new_size > old_size ) gs_alloc_fill ( ( byte * ) new_ptr + old_size , gs_alloc_fill_alloc , new_size - old_size ) ;\n return new_ptr + 1 ;\n }"}
{"idx": 16555, "target": 0, "func": "TEST_F ( ProcessUtilTest , DISABLED_GetTerminationStatusExit ) {\n const std : : string signal_file = ProcessUtilTest : : GetSignalFilePath ( kSignalFileSlow ) ;\n remove ( signal_file . c_str ( ) ) ;\n base : : Process process = SpawnChild ( \"SlowChildProcess\" ) ;\n ASSERT_TRUE ( process . IsValid ( ) ) ;\n int exit_code = 42 ;\n EXPECT_EQ ( base : : TERMINATION_STATUS_STILL_RUNNING , base : : GetTerminationStatus ( process . Handle ( ) , & exit_code ) ) ;\n EXPECT_EQ ( kExpectedStillRunningExitCode , exit_code ) ;\n SignalChildren ( signal_file . c_str ( ) ) ;\n exit_code = 42 ;\n base : : TerminationStatus status = WaitForChildTermination ( process . Handle ( ) , & exit_code ) ;\n EXPECT_EQ ( base : : TERMINATION_STATUS_NORMAL_TERMINATION , status ) ;\n EXPECT_EQ ( 0 , exit_code ) ;\n remove ( signal_file . c_str ( ) ) ;\n }"}
{"idx": 16556, "target": 0, "func": "static int mtp3_calls_packet ( void * ptr _U_ , packet_info * pinfo , epan_dissect_t * edt _U_ , const void * mtp3_info _U_ ) {\n const mtp3_tap_rec_t * pi = ( const mtp3_tap_rec_t * ) mtp3_info ;\n mtp3_opc = pi -> addr_opc . pc ;\n mtp3_dpc = pi -> addr_dpc . pc ;\n mtp3_ni = pi -> addr_opc . ni ;\n mtp3_frame_num = pinfo -> fd -> num ;\n return 0 ;\n }"}
{"idx": 16557, "target": 0, "func": "static size_t wrap_fwrite ( const void * ptr , size_t size , size_t nmemb , FILE * stream ) {\n return fwrite ( ptr , size , nmemb , stream ) ;\n }"}
{"idx": 16558, "target": 0, "func": "static VALUE cState_buffer_initial_length ( VALUE self ) {\n GET_STATE ( self ) ;\n return LONG2FIX ( state -> buffer_initial_length ) ;\n }"}
{"idx": 16559, "target": 0, "func": "static struct inode_security_struct * inode_security_novalidate ( struct inode * inode ) {\n return inode -> i_security ;\n }"}
{"idx": 16560, "target": 0, "func": "void ialloc_reset_free ( gs_ref_memory_t * mem ) {\n int i ;\n obj_header_t * * p ;\n mem -> lost . objects = 0 ;\n mem -> lost . refs = 0 ;\n mem -> lost . strings = 0 ;\n mem -> cfreed . cp = 0 ;\n for ( i = 0 , p = & mem -> freelists [ 0 ] ;\n i < num_freelists ;\n i ++ , p ++ ) * p = 0 ;\n mem -> largest_free_size = 0 ;\n }"}
{"idx": 16561, "target": 0, "func": "static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 16562, "target": 1, "func": "int vp9_receive_compressed_data ( VP9Decoder * pbi , size_t size , const uint8_t * * psource ) {\n VP9_COMMON * const cm = & pbi -> common ;\n const uint8_t * source = * psource ;\n int retcode = 0 ;\n cm -> error . error_code = VPX_CODEC_OK ;\n if ( size == 0 ) {\n if ( cm -> frame_refs [ 0 ] . idx != INT_MAX ) cm -> frame_refs [ 0 ] . buf -> corrupted = 1 ;\n }\n if ( cm -> new_fb_idx >= 0 && cm -> frame_bufs [ cm -> new_fb_idx ] . ref_count == 0 ) cm -> release_fb_cb ( cm -> cb_priv , & cm -> frame_bufs [ cm -> new_fb_idx ] . raw_frame_buffer ) ;\n cm -> new_fb_idx = get_free_fb ( cm ) ;\n if ( setjmp ( cm -> error . jmp ) ) {\n cm -> error . setjmp = 0 ;\n vp9_clear_system_state ( ) ;\n if ( cm -> frame_refs [ 0 ] . idx != INT_MAX && cm -> frame_refs [ 0 ] . buf != NULL ) cm -> frame_refs [ 0 ] . buf -> corrupted = 1 ;\n if ( cm -> new_fb_idx > 0 && cm -> frame_bufs [ cm -> new_fb_idx ] . ref_count > 0 ) cm -> frame_bufs [ cm -> new_fb_idx ] . ref_count -- ;\n return - 1 ;\n }\n cm -> error . setjmp = 1 ;\n vp9_decode_frame ( pbi , source , source + size , psource ) ;\n swap_frame_buffers ( pbi ) ;\n vp9_clear_system_state ( ) ;\n cm -> last_width = cm -> width ;\n cm -> last_height = cm -> height ;\n if ( ! cm -> show_existing_frame ) cm -> last_show_frame = cm -> show_frame ;\n if ( cm -> show_frame ) {\n if ( ! cm -> show_existing_frame ) vp9_swap_mi_and_prev_mi ( cm ) ;\n cm -> current_video_frame ++ ;\n }\n pbi -> ready_for_new_data = 0 ;\n cm -> error . setjmp = 0 ;\n return retcode ;\n }"}
{"idx": 16563, "target": 0, "func": "static void i_enable_free ( gs_memory_t * mem , bool enable ) {\n if ( enable ) mem -> procs . free_object = i_free_object , mem -> procs . free_string = i_free_string ;\n else mem -> procs . free_object = gs_ignore_free_object , mem -> procs . free_string = gs_ignore_free_string ;\n }"}
{"idx": 16564, "target": 0, "func": "static int dissect_h225_h225_RasMessage ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n proto_item * it ;\n proto_tree * tr ;\n guint32 offset = 0 ;\n h225_packet_info * h225_pi ;\n h225_pi = create_h225_packet_info ( pinfo ) ;\n h225_pi -> msg_type = H225_RAS ;\n p_add_proto_data ( wmem_packet_scope ( ) , pinfo , proto_h225 , 0 , h225_pi ) ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , PSNAME ) ;\n it = proto_tree_add_protocol_format ( tree , proto_h225 , tvb , offset , - 1 , PSNAME \" RAS\" ) ;\n tr = proto_item_add_subtree ( it , ett_h225 ) ;\n offset = dissect_RasMessage_PDU ( tvb , pinfo , tr , NULL ) ;\n ras_call_matching ( tvb , pinfo , tr , h225_pi ) ;\n tap_queue_packet ( h225_tap , pinfo , h225_pi ) ;\n return offset ;\n }"}
{"idx": 16565, "target": 1, "func": "static int ivr_read_header ( AVFormatContext * s ) {\n unsigned tag , type , len , tlen , value ;\n int i , j , n , count , nb_streams = 0 , ret ;\n uint8_t key [ 256 ] , val [ 256 ] ;\n AVIOContext * pb = s -> pb ;\n AVStream * st ;\n int64_t pos , offset , temp ;\n pos = avio_tell ( pb ) ;\n tag = avio_rl32 ( pb ) ;\n if ( tag == MKTAG ( '.' , 'R' , '1' , 'M' ) ) {\n if ( avio_rb16 ( pb ) != 1 ) return AVERROR_INVALIDDATA ;\n if ( avio_r8 ( pb ) != 1 ) return AVERROR_INVALIDDATA ;\n len = avio_rb32 ( pb ) ;\n avio_skip ( pb , len ) ;\n avio_skip ( pb , 5 ) ;\n temp = avio_rb64 ( pb ) ;\n while ( ! avio_feof ( pb ) && temp ) {\n offset = temp ;\n temp = avio_rb64 ( pb ) ;\n }\n avio_skip ( pb , offset - avio_tell ( pb ) ) ;\n if ( avio_r8 ( pb ) != 1 ) return AVERROR_INVALIDDATA ;\n len = avio_rb32 ( pb ) ;\n avio_skip ( pb , len ) ;\n if ( avio_r8 ( pb ) != 2 ) return AVERROR_INVALIDDATA ;\n avio_skip ( pb , 16 ) ;\n pos = avio_tell ( pb ) ;\n tag = avio_rl32 ( pb ) ;\n }\n if ( tag != MKTAG ( '.' , 'R' , 'E' , 'C' ) ) return AVERROR_INVALIDDATA ;\n if ( avio_r8 ( pb ) != 0 ) return AVERROR_INVALIDDATA ;\n count = avio_rb32 ( pb ) ;\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n if ( avio_feof ( pb ) ) return AVERROR_INVALIDDATA ;\n type = avio_r8 ( pb ) ;\n tlen = avio_rb32 ( pb ) ;\n avio_get_str ( pb , tlen , key , sizeof ( key ) ) ;\n len = avio_rb32 ( pb ) ;\n if ( type == 5 ) {\n avio_get_str ( pb , len , val , sizeof ( val ) ) ;\n av_log ( s , AV_LOG_DEBUG , \"%s = '%s'\\n\" , key , val ) ;\n }\n else if ( type == 4 ) {\n av_log ( s , AV_LOG_DEBUG , \"%s = '0x\" , key ) ;\n for ( j = 0 ;\n j < len ;\n j ++ ) av_log ( s , AV_LOG_DEBUG , \"%X\" , avio_r8 ( pb ) ) ;\n av_log ( s , AV_LOG_DEBUG , \"'\\n\" ) ;\n }\n else if ( len == 4 && type == 3 && ! strncmp ( key , \"StreamCount\" , tlen ) ) {\n nb_streams = value = avio_rb32 ( pb ) ;\n }\n else if ( len == 4 && type == 3 ) {\n value = avio_rb32 ( pb ) ;\n av_log ( s , AV_LOG_DEBUG , \"%s = %d\\n\" , key , value ) ;\n }\n else {\n av_log ( s , AV_LOG_DEBUG , \"Skipping unsupported key: %s\\n\" , key ) ;\n avio_skip ( pb , len ) ;\n }\n }\n for ( n = 0 ;\n n < nb_streams ;\n n ++ ) {\n st = avformat_new_stream ( s , NULL ) ;\n if ( ! st ) return AVERROR ( ENOMEM ) ;\n st -> priv_data = ff_rm_alloc_rmstream ( ) ;\n if ( ! st -> priv_data ) return AVERROR ( ENOMEM ) ;\n if ( avio_r8 ( pb ) != 1 ) return AVERROR_INVALIDDATA ;\n count = avio_rb32 ( pb ) ;\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n if ( avio_feof ( pb ) ) return AVERROR_INVALIDDATA ;\n type = avio_r8 ( pb ) ;\n tlen = avio_rb32 ( pb ) ;\n avio_get_str ( pb , tlen , key , sizeof ( key ) ) ;\n len = avio_rb32 ( pb ) ;\n if ( type == 5 ) {\n avio_get_str ( pb , len , val , sizeof ( val ) ) ;\n av_log ( s , AV_LOG_DEBUG , \"%s = '%s'\\n\" , key , val ) ;\n }\n else if ( type == 4 && ! strncmp ( key , \"OpaqueData\" , tlen ) ) {\n ret = ffio_ensure_seekback ( pb , 4 ) ;\n if ( ret < 0 ) return ret ;\n if ( avio_rb32 ( pb ) == MKBETAG ( 'M' , 'L' , 'T' , 'I' ) ) {\n ret = rm_read_multi ( s , pb , st , NULL ) ;\n }\n else {\n avio_seek ( pb , - 4 , SEEK_CUR ) ;\n ret = ff_rm_read_mdpr_codecdata ( s , pb , st , st -> priv_data , len , NULL ) ;\n }\n if ( ret < 0 ) return ret ;\n }\n else if ( type == 4 ) {\n int j ;\n av_log ( s , AV_LOG_DEBUG , \"%s = '0x\" , key ) ;\n for ( j = 0 ;\n j < len ;\n j ++ ) av_log ( s , AV_LOG_DEBUG , \"%X\" , avio_r8 ( pb ) ) ;\n av_log ( s , AV_LOG_DEBUG , \"'\\n\" ) ;\n }\n else if ( len == 4 && type == 3 && ! strncmp ( key , \"Duration\" , tlen ) ) {\n st -> duration = avio_rb32 ( pb ) ;\n }\n else if ( len == 4 && type == 3 ) {\n value = avio_rb32 ( pb ) ;\n av_log ( s , AV_LOG_DEBUG , \"%s = %d\\n\" , key , value ) ;\n }\n else {\n av_log ( s , AV_LOG_DEBUG , \"Skipping unsupported key: %s\\n\" , key ) ;\n avio_skip ( pb , len ) ;\n }\n }\n }\n if ( avio_r8 ( pb ) != 6 ) return AVERROR_INVALIDDATA ;\n avio_skip ( pb , 12 ) ;\n avio_skip ( pb , avio_rb64 ( pb ) + pos - avio_tell ( s -> pb ) ) ;\n if ( avio_r8 ( pb ) != 8 ) return AVERROR_INVALIDDATA ;\n avio_skip ( pb , 8 ) ;\n return 0 ;\n }"}
{"idx": 16566, "target": 1, "func": "static VALUE ossl_cipher_initialize ( VALUE self , VALUE str ) {\n EVP_CIPHER_CTX * ctx ;\n const EVP_CIPHER * cipher ;\n char * name ;\n unsigned char dummy_key [ EVP_MAX_KEY_LENGTH ] = {\n 0 }\n ;\n name = StringValueCStr ( str ) ;\n GetCipherInit ( self , ctx ) ;\n if ( ctx ) {\n ossl_raise ( rb_eRuntimeError , \"Cipher already inititalized!\" ) ;\n }\n AllocCipher ( self , ctx ) ;\n if ( ! ( cipher = EVP_get_cipherbyname ( name ) ) ) {\n ossl_raise ( rb_eRuntimeError , \"unsupported cipher algorithm (%\" PRIsVALUE \")\" , str ) ;\n }\n if ( EVP_CipherInit_ex ( ctx , cipher , NULL , dummy_key , NULL , - 1 ) != 1 ) ossl_raise ( eCipherError , NULL ) ;\n return self ;\n }"}
{"idx": 16567, "target": 0, "func": "Selectivity nulltestsel ( PlannerInfo * root , NullTestType nulltesttype , Node * arg , int varRelid , JoinType jointype , SpecialJoinInfo * sjinfo ) {\n VariableStatData vardata ;\n double selec ;\n examine_variable ( root , arg , varRelid , & vardata ) ;\n if ( HeapTupleIsValid ( vardata . statsTuple ) ) {\n Form_pg_statistic stats ;\n double freq_null ;\n stats = ( Form_pg_statistic ) GETSTRUCT ( vardata . statsTuple ) ;\n freq_null = stats -> stanullfrac ;\n switch ( nulltesttype ) {\n case IS_NULL : selec = freq_null ;\n break ;\n case IS_NOT_NULL : selec = 1.0 - freq_null ;\n break ;\n default : elog ( ERROR , \"unrecognized nulltesttype: %d\" , ( int ) nulltesttype ) ;\n return ( Selectivity ) 0 ;\n }\n }\n else {\n switch ( nulltesttype ) {\n case IS_NULL : selec = DEFAULT_UNK_SEL ;\n break ;\n case IS_NOT_NULL : selec = DEFAULT_NOT_UNK_SEL ;\n break ;\n default : elog ( ERROR , \"unrecognized nulltesttype: %d\" , ( int ) nulltesttype ) ;\n return ( Selectivity ) 0 ;\n }\n }\n ReleaseVariableStats ( vardata ) ;\n CLAMP_PROBABILITY ( selec ) ;\n return ( Selectivity ) selec ;\n }"}
{"idx": 16568, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( DownloadExtensionTest , DISABLED_DownloadExtensionTest_OnDeterminingFilename_InterruptedResume ) {\n LoadExtension ( \"downloads_split\" ) ;\n ASSERT_TRUE ( StartEmbeddedTestServer ( ) ) ;\n GoOnTheRecord ( ) ;\n content : : RenderProcessHost * host = AddFilenameDeterminer ( ) ;\n DownloadItem * item = NULL ;\n {\n DownloadManager * manager = GetCurrentManager ( ) ;\n std : : unique_ptr < content : : DownloadTestObserver > observer ( new JustInProgressDownloadObserver ( manager , 1 ) ) ;\n ASSERT_EQ ( 0 , manager -> InProgressCount ( ) ) ;\n ASSERT_EQ ( 0 , manager -> NonMaliciousInProgressCount ( ) ) ;\n ui_test_utils : : NavigateToURLWithDisposition ( current_browser ( ) , GURL ( net : : URLRequestSlowDownloadJob : : kUnknownSizeUrl ) , WindowOpenDisposition : : CURRENT_TAB , ui_test_utils : : BROWSER_TEST_NONE ) ;\n observer -> WaitForFinished ( ) ;\n EXPECT_EQ ( 1u , observer -> NumDownloadsSeenInState ( DownloadItem : : IN_PROGRESS ) ) ;\n DownloadManager : : DownloadVector items ;\n manager -> GetAllDownloads ( & items ) ;\n for ( DownloadManager : : DownloadVector : : iterator iter = items . begin ( ) ;\n iter != items . end ( ) ;\n ++ iter ) {\n if ( ( * iter ) -> GetState ( ) == DownloadItem : : IN_PROGRESS ) {\n EXPECT_EQ ( NULL , item ) ;\n item = * iter ;\n }\n }\n ASSERT_TRUE ( item ) ;\n }\n ScopedCancellingItem canceller ( item ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnCreated : : kEventName , base : : StringPrintf ( \"[{\n\\\"danger\\\": \\\"safe\\\",\" \" \\\"incognito\\\": false,\" \" \\\"id\\\": %d,\" \" \\\"mime\\\": \\\"application/octet-stream\\\",\" \" \\\"paused\\\": false}\n]\" , item -> GetId ( ) ) ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnDeterminingFilename : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"incognito\\\": false,\" \" \\\"filename\\\":\\\"download-unknown-size\\\"}\n]\" , item -> GetId ( ) ) ) ) ;\n ASSERT_TRUE ( item -> GetTargetFilePath ( ) . empty ( ) ) ;\n ASSERT_EQ ( DownloadItem : : IN_PROGRESS , item -> GetState ( ) ) ;\n ClearEvents ( ) ;\n ui_test_utils : : NavigateToURLWithDisposition ( current_browser ( ) , GURL ( net : : URLRequestSlowDownloadJob : : kErrorDownloadUrl ) , WindowOpenDisposition : : NEW_BACKGROUND_TAB , ui_test_utils : : BROWSER_TEST_WAIT_FOR_NAVIGATION ) ;\n std : : string error ;\n ASSERT_TRUE ( ExtensionDownloadsEventRouter : : DetermineFilename ( current_browser ( ) -> profile ( ) , false , GetExtensionId ( ) , item -> GetId ( ) , base : : FilePath ( FILE_PATH_LITERAL ( \"42.txt\" ) ) , downloads : : FILENAME_CONFLICT_ACTION_UNIQUIFY , & error ) ) << error ;\n EXPECT_EQ ( \"\" , error ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnChanged : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"filename\\\": {\n\" \" \\\"previous\\\": \\\"\\\",\" \" \\\"current\\\": \\\"%s\\\"}\n}\n]\" , item -> GetId ( ) , GetFilename ( \"42.txt\" ) . c_str ( ) ) ) ) ;\n content : : DownloadUpdatedObserver interrupted ( item , base : : Bind ( ItemIsInterrupted ) ) ;\n ASSERT_TRUE ( interrupted . WaitForEvent ( ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnChanged : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"error\\\":{\n\\\"current\\\":\\\"NETWORK_FAILED\\\"}\n,\" \" \\\"state\\\":{\n\" \" \\\"previous\\\":\\\"in_progress\\\",\" \" \\\"current\\\":\\\"interrupted\\\"}\n}\n]\" , item -> GetId ( ) ) ) ) ;\n ClearEvents ( ) ;\n RemoveFilenameDeterminer ( host ) ;\n item -> Resume ( ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnChanged : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"error\\\":{\n\\\"previous\\\":\\\"NETWORK_FAILED\\\"}\n,\" \" \\\"state\\\":{\n\" \" \\\"previous\\\":\\\"interrupted\\\",\" \" \\\"current\\\":\\\"in_progress\\\"}\n}\n]\" , item -> GetId ( ) ) ) ) ;\n ClearEvents ( ) ;\n FinishFirstSlowDownloads ( ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnChanged : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"state\\\": {\n\" \" \\\"previous\\\": \\\"in_progress\\\",\" \" \\\"current\\\": \\\"complete\\\"}\n}\n]\" , item -> GetId ( ) ) ) ) ;\n }"}
{"idx": 16569, "target": 0, "func": "static void arith2_normalise ( ArithCoder * c ) {\n while ( ( c -> high >> 15 ) - ( c -> low >> 15 ) < 2 ) {\n if ( ( c -> low ^ c -> high ) & 0x10000 ) {\n c -> high ^= 0x8000 ;\n c -> value ^= 0x8000 ;\n c -> low ^= 0x8000 ;\n }\n c -> high = c -> high << 8 & 0xFFFFFF | 0xFF ;\n c -> value = c -> value << 8 & 0xFFFFFF | bytestream2_get_byte ( c -> gbc . gB ) ;\n c -> low = c -> low << 8 & 0xFFFFFF ;\n }\n }"}
{"idx": 16570, "target": 0, "func": "static VALUE cState_aset ( VALUE self , VALUE name , VALUE value ) {\n VALUE name_writer ;\n name = rb_funcall ( name , i_to_s , 0 ) ;\n name_writer = rb_str_cat2 ( rb_str_dup ( name ) , \"=\" ) ;\n if ( RTEST ( rb_funcall ( self , i_respond_to_p , 1 , name_writer ) ) ) {\n return rb_funcall ( self , i_send , 2 , name_writer , value ) ;\n }\n else {\n rb_ivar_set ( self , rb_intern_str ( rb_str_concat ( rb_str_new2 ( \"@\" ) , name ) ) , value ) ;\n }\n return Qnil ;\n }"}
{"idx": 16571, "target": 1, "func": "static void fts_build_parse_content_type ( struct fts_mail_build_context * ctx , const struct message_header_line * hdr ) {\n struct rfc822_parser_context parser ;\n string_t * content_type ;\n if ( ctx -> content_type != NULL ) return ;\n rfc822_parser_init ( & parser , hdr -> full_value , hdr -> full_value_len , NULL ) ;\n rfc822_skip_lwsp ( & parser ) ;\n T_BEGIN {\n content_type = t_str_new ( 64 ) ;\n ( void ) rfc822_parse_content_type ( & parser , content_type ) ;\n ctx -> content_type = str_lcase ( i_strdup ( str_c ( content_type ) ) ) ;\n }\n T_END ;\n }"}
{"idx": 16572, "target": 0, "func": "void PNGAPI png_set_rows ( png_structp png_ptr , png_infop info_ptr , png_bytepp row_pointers ) {\n png_debug1 ( 1 , \"in %s storage function\" , \"rows\" ) ;\n if ( png_ptr == NULL || info_ptr == NULL ) return ;\n if ( info_ptr -> row_pointers && ( info_ptr -> row_pointers != row_pointers ) ) png_free_data ( png_ptr , info_ptr , PNG_FREE_ROWS , 0 ) ;\n info_ptr -> row_pointers = row_pointers ;\n if ( row_pointers ) info_ptr -> valid |= PNG_INFO_IDAT ;\n }"}
{"idx": 16573, "target": 0, "func": "int evdns_server_request_respond ( struct evdns_server_request * _req , int err ) {\n struct server_request * req = TO_SERVER_REQUEST ( _req ) ;\n struct evdns_server_port * port = req -> port ;\n int r ;\n if ( ! req -> response ) {\n if ( ( r = evdns_server_request_format_response ( req , err ) ) < 0 ) return r ;\n }\n r = sendto ( port -> socket , req -> response , req -> response_len , 0 , ( struct sockaddr * ) & req -> addr , req -> addrlen ) ;\n if ( r < 0 ) {\n int sock_err = last_error ( port -> socket ) ;\n if ( ! error_is_eagain ( sock_err ) ) return - 1 ;\n if ( port -> pending_replies ) {\n req -> prev_pending = port -> pending_replies -> prev_pending ;\n req -> next_pending = port -> pending_replies ;\n req -> prev_pending -> next_pending = req -> next_pending -> prev_pending = req ;\n }\n else {\n req -> prev_pending = req -> next_pending = req ;\n port -> pending_replies = req ;\n port -> choked = 1 ;\n ( void ) event_del ( & port -> event ) ;\n event_set ( & port -> event , port -> socket , ( port -> closing ? 0 : EV_READ ) | EV_WRITE | EV_PERSIST , server_port_ready_callback , port ) ;\n if ( event_add ( & port -> event , NULL ) < 0 ) {\n log ( EVDNS_LOG_WARN , \"Error from libevent when adding event for DNS server\" ) ;\n }\n }\n return 1 ;\n }\n if ( server_request_free ( req ) ) return 0 ;\n if ( port -> pending_replies ) server_port_flush ( port ) ;\n return 0 ;\n }"}
{"idx": 16574, "target": 0, "func": "static void _throttle_start ( int * active_rpc_cnt ) {\n slurm_mutex_lock ( & throttle_mutex ) ;\n while ( 1 ) {\n if ( * active_rpc_cnt == 0 ) {\n ( * active_rpc_cnt ) ++ ;\n break ;\n }\n # if 1 slurm_cond_wait ( & throttle_cond , & throttle_mutex ) ;\n # else server_thread_decr ( ) ;\n slurm_cond_wait ( & throttle_cond , & throttle_mutex ) ;\n server_thread_incr ( ) ;\n # endif }\n slurm_mutex_unlock ( & throttle_mutex ) ;\n if ( LOTS_OF_AGENTS ) usleep ( 1000 ) ;\n else usleep ( 1 ) ;\n }"}
{"idx": 16575, "target": 0, "func": "static int astream_base64_decode_lf ( struct attachment_istream_part * part ) {\n if ( part -> base64_have_crlf && part -> base64_state != BASE64_STATE_CR ) {\n return - 1 ;\n }\n part -> base64_state = BASE64_STATE_0 ;\n if ( part -> cur_base64_blocks < part -> base64_line_blocks ) {\n part -> base64_state = BASE64_STATE_EOM ;\n return 0 ;\n }\n else if ( part -> base64_line_blocks == 0 ) {\n if ( part -> cur_base64_blocks == 0 ) return - 1 ;\n part -> base64_line_blocks = part -> cur_base64_blocks ;\n }\n else if ( part -> cur_base64_blocks == part -> base64_line_blocks ) {\n }\n else {\n return - 1 ;\n }\n part -> cur_base64_blocks = 0 ;\n return 1 ;\n }"}
{"idx": 16576, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FastUnloadTest , BrowserListForceCloseWithBeforeUnloadWithFastUnload ) {\n NavigateToDataURL ( BEFORE_UNLOAD_HTML , \"beforeunload\" ) ;\n content : : WindowedNotificationObserver window_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , content : : NotificationService : : AllSources ( ) ) ;\n UnloadResults unload_results ;\n BrowserList : : CloseAllBrowsersWithProfile ( browser ( ) -> profile ( ) , base : : Bind ( & UnloadResults : : AddSuccess , base : : Unretained ( & unload_results ) ) , base : : Bind ( & UnloadResults : : AddAbort , base : : Unretained ( & unload_results ) ) , true ) ;\n window_observer . Wait ( ) ;\n EXPECT_EQ ( 1 , unload_results . get_successes ( ) ) ;\n EXPECT_EQ ( 0 , unload_results . get_aborts ( ) ) ;\n }"}
{"idx": 16577, "target": 0, "func": "static __always_inline __u32 __be32_to_cpup ( const __be32 * p ) {\n return __swab32p ( ( __u32 * ) p ) ;\n }"}
{"idx": 16578, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( DownloadExtensionTest , DownloadExtensionTest_OnDeterminingFilename_IncognitoSpanning ) {\n LoadExtension ( \"downloads_spanning\" ) ;\n ASSERT_TRUE ( StartEmbeddedTestServer ( ) ) ;\n std : : string download_url = embedded_test_server ( ) -> GetURL ( \"/slow?0\" ) . spec ( ) ;\n GoOnTheRecord ( ) ;\n AddFilenameDeterminer ( ) ;\n GoOnTheRecord ( ) ;\n std : : unique_ptr < base : : Value > result ( RunFunctionAndReturnResult ( new DownloadsDownloadFunction ( ) , base : : StringPrintf ( \"[{\n\\\"url\\\": \\\"%s\\\"}\n]\" , download_url . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( result . get ( ) ) ;\n int result_id = - 1 ;\n ASSERT_TRUE ( result -> GetAsInteger ( & result_id ) ) ;\n DownloadItem * item = GetCurrentManager ( ) -> GetDownload ( result_id ) ;\n ASSERT_TRUE ( item ) ;\n ScopedCancellingItem canceller ( item ) ;\n ASSERT_EQ ( download_url , item -> GetOriginalUrl ( ) . spec ( ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnCreated : : kEventName , base : : StringPrintf ( \"[{\n\\\"danger\\\": \\\"safe\\\",\" \" \\\"incognito\\\": false,\" \" \\\"id\\\": %d,\" \" \\\"mime\\\": \\\"text/plain\\\",\" \" \\\"paused\\\": false,\" \" \\\"url\\\": \\\"%s\\\"}\n]\" , result_id , download_url . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnDeterminingFilename : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"incognito\\\": false,\" \" \\\"filename\\\":\\\"slow.txt\\\"}\n]\" , result_id ) ) ) ;\n ASSERT_TRUE ( item -> GetTargetFilePath ( ) . empty ( ) ) ;\n ASSERT_EQ ( DownloadItem : : IN_PROGRESS , item -> GetState ( ) ) ;\n std : : string error ;\n ASSERT_TRUE ( ExtensionDownloadsEventRouter : : DetermineFilename ( current_browser ( ) -> profile ( ) , true , GetExtensionId ( ) , result_id , base : : FilePath ( FILE_PATH_LITERAL ( \"42.txt\" ) ) , downloads : : FILENAME_CONFLICT_ACTION_UNIQUIFY , & error ) ) ;\n EXPECT_EQ ( \"\" , error ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnChanged : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"filename\\\": {\n\" \" \\\"previous\\\": \\\"\\\",\" \" \\\"current\\\": \\\"%s\\\"}\n}\n]\" , result_id , GetFilename ( \"42.txt\" ) . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnChanged : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"state\\\": {\n\" \" \\\"previous\\\": \\\"in_progress\\\",\" \" \\\"current\\\": \\\"complete\\\"}\n}\n]\" , result_id ) ) ) ;\n GoOffTheRecord ( ) ;\n result . reset ( RunFunctionAndReturnResult ( new DownloadsDownloadFunction ( ) , base : : StringPrintf ( \"[{\n\\\"url\\\": \\\"%s\\\"}\n]\" , download_url . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( result . get ( ) ) ;\n result_id = - 1 ;\n ASSERT_TRUE ( result -> GetAsInteger ( & result_id ) ) ;\n item = GetCurrentManager ( ) -> GetDownload ( result_id ) ;\n ASSERT_TRUE ( item ) ;\n ScopedCancellingItem canceller2 ( item ) ;\n ASSERT_EQ ( download_url , item -> GetOriginalUrl ( ) . spec ( ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnCreated : : kEventName , base : : StringPrintf ( \"[{\n\\\"danger\\\": \\\"safe\\\",\" \" \\\"incognito\\\": true,\" \" \\\"id\\\": %d,\" \" \\\"mime\\\": \\\"text/plain\\\",\" \" \\\"paused\\\": false,\" \" \\\"url\\\": \\\"%s\\\"}\n]\" , result_id , download_url . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnDeterminingFilename : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"incognito\\\": true,\" \" \\\"filename\\\":\\\"slow.txt\\\"}\n]\" , result_id ) ) ) ;\n ASSERT_TRUE ( item -> GetTargetFilePath ( ) . empty ( ) ) ;\n ASSERT_EQ ( DownloadItem : : IN_PROGRESS , item -> GetState ( ) ) ;\n error = \"\" ;\n ASSERT_TRUE ( ExtensionDownloadsEventRouter : : DetermineFilename ( current_browser ( ) -> profile ( ) , true , GetExtensionId ( ) , result_id , base : : FilePath ( FILE_PATH_LITERAL ( \"42.txt\" ) ) , downloads : : FILENAME_CONFLICT_ACTION_UNIQUIFY , & error ) ) ;\n EXPECT_EQ ( \"\" , error ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnChanged : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"filename\\\": {\n\" \" \\\"previous\\\": \\\"\\\",\" \" \\\"current\\\": \\\"%s\\\"}\n}\n]\" , result_id , GetFilename ( \"42 (1).txt\" ) . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnChanged : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"state\\\": {\n\" \" \\\"previous\\\": \\\"in_progress\\\",\" \" \\\"current\\\": \\\"complete\\\"}\n}\n]\" , result_id ) ) ) ;\n }"}
{"idx": 16579, "target": 0, "func": "static int rawv6_getsockopt ( struct sock * sk , int level , int optname , char __user * optval , int __user * optlen ) {\n switch ( level ) {\n case SOL_RAW : break ;\n case SOL_ICMPV6 : if ( inet_sk ( sk ) -> inet_num != IPPROTO_ICMPV6 ) return - EOPNOTSUPP ;\n return rawv6_geticmpfilter ( sk , level , optname , optval , optlen ) ;\n case SOL_IPV6 : if ( optname == IPV6_CHECKSUM ) break ;\n default : return ipv6_getsockopt ( sk , level , optname , optval , optlen ) ;\n }\n return do_rawv6_getsockopt ( sk , level , optname , optval , optlen ) ;\n }"}
{"idx": 16580, "target": 0, "func": "static int dissect_h245_TerminalCapabilitySetReject ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_TerminalCapabilitySetReject , TerminalCapabilitySetReject_sequence ) ;\n # line 578 \"../../asn1/h245/h245.cnf\" if ( h245_pi != NULL ) h245_pi -> msg_type = H245_TermCapSetRjc ;\n return offset ;\n }"}
{"idx": 16581, "target": 0, "func": "int main ( int argc , const char * * argv_ ) {\n unsigned int loops = 1 , i ;\n char * * argv , * * argi , * * argj ;\n struct arg arg ;\n int error = 0 ;\n argv = argv_dup ( argc - 1 , argv_ + 1 ) ;\n for ( argi = argj = argv ;\n ( * argj = * argi ) ;\n argi += arg . argv_step ) {\n memset ( & arg , 0 , sizeof ( arg ) ) ;\n arg . argv_step = 1 ;\n if ( arg_match ( & arg , & looparg , argi ) ) {\n loops = arg_parse_uint ( & arg ) ;\n break ;\n }\n }\n free ( argv ) ;\n for ( i = 0 ;\n ! error && i < loops ;\n i ++ ) error = main_loop ( argc , argv_ ) ;\n return error ;\n }"}
{"idx": 16582, "target": 0, "func": "static void generate_json_bignum ( FBuffer * buffer , VALUE Vstate , JSON_Generator_State * state , VALUE obj ) {\n VALUE tmp = rb_funcall ( obj , i_to_s , 0 ) ;\n fbuffer_append_str ( buffer , tmp ) ;\n }"}
{"idx": 16583, "target": 0, "func": "void purple_chat_list ( struct im_connection * ic , const char * server ) {\n PurpleRoomlist * list ;\n struct purple_data * pd = ic -> proto_data ;\n PurplePlugin * prpl = purple_plugins_find_with_id ( pd -> account -> protocol_id ) ;\n PurplePluginProtocolInfo * pi = prpl -> info -> extra_info ;\n if ( ! pi || ! pi -> roomlist_get_list ) {\n imcb_log ( ic , \"Room listing unsupported by this purple plugin\" ) ;\n return ;\n }\n g_free ( pd -> chat_list_server ) ;\n pd -> chat_list_server = ( server && * server ) ? g_strdup ( server ) : NULL ;\n list = purple_roomlist_get_list ( pd -> account -> gc ) ;\n if ( list ) {\n struct purple_roomlist_data * rld = list -> ui_data ;\n rld -> initialized = TRUE ;\n purple_roomlist_ref ( list ) ;\n }\n }"}
{"idx": 16584, "target": 0, "func": "static struct GuidPropertySet * GuidPropertySet_find_guid ( const e_guid_t * guid ) {\n unsigned i ;\n for ( i = 0 ;\n i < array_length ( GuidPropertySet ) ;\n i ++ ) {\n if ( guid_cmp ( & GuidPropertySet [ i ] . guid , guid ) == 0 ) {\n return & GuidPropertySet [ i ] ;\n }\n }\n return NULL ;\n }"}
{"idx": 16585, "target": 0, "func": "static uint64_t cirrus_linear_read ( void * opaque , hwaddr addr , unsigned size ) {\n CirrusVGAState * s = opaque ;\n uint32_t ret ;\n addr &= s -> cirrus_addr_mask ;\n if ( ( ( s -> vga . sr [ 0x17 ] & 0x44 ) == 0x44 ) && ( ( addr & s -> linear_mmio_mask ) == s -> linear_mmio_mask ) ) {\n ret = cirrus_mmio_blt_read ( s , addr & 0xff ) ;\n }\n else if ( 0 ) {\n ret = 0xff ;\n }\n else {\n if ( ( s -> vga . gr [ 0x0B ] & 0x14 ) == 0x14 ) {\n addr <<= 4 ;\n }\n else if ( s -> vga . gr [ 0x0B ] & 0x02 ) {\n addr <<= 3 ;\n }\n addr &= s -> cirrus_addr_mask ;\n ret = * ( s -> vga . vram_ptr + addr ) ;\n }\n return ret ;\n }"}
{"idx": 16586, "target": 1, "func": "int ff_mpeg_update_thread_context ( AVCodecContext * dst , const AVCodecContext * src ) {\n int i ;\n MpegEncContext * s = dst -> priv_data , * s1 = src -> priv_data ;\n if ( dst == src || ! s1 -> context_initialized ) return 0 ;\n if ( ! s -> context_initialized ) {\n memcpy ( s , s1 , sizeof ( MpegEncContext ) ) ;\n s -> avctx = dst ;\n s -> picture_range_start += MAX_PICTURE_COUNT ;\n s -> picture_range_end += MAX_PICTURE_COUNT ;\n s -> bitstream_buffer = NULL ;\n s -> bitstream_buffer_size = s -> allocated_bitstream_buffer_size = 0 ;\n ff_MPV_common_init ( s ) ;\n }\n if ( s -> height != s1 -> height || s -> width != s1 -> width || s -> context_reinit ) {\n int err ;\n s -> context_reinit = 0 ;\n s -> height = s1 -> height ;\n s -> width = s1 -> width ;\n if ( ( err = ff_MPV_common_frame_size_change ( s ) ) < 0 ) return err ;\n }\n s -> avctx -> coded_height = s1 -> avctx -> coded_height ;\n s -> avctx -> coded_width = s1 -> avctx -> coded_width ;\n s -> avctx -> width = s1 -> avctx -> width ;\n s -> avctx -> height = s1 -> avctx -> height ;\n s -> coded_picture_number = s1 -> coded_picture_number ;\n s -> picture_number = s1 -> picture_number ;\n s -> input_picture_number = s1 -> input_picture_number ;\n memcpy ( s -> picture , s1 -> picture , s1 -> picture_count * sizeof ( Picture ) ) ;\n memcpy ( & s -> last_picture , & s1 -> last_picture , ( char * ) & s1 -> last_picture_ptr - ( char * ) & s1 -> last_picture ) ;\n for ( i = 0 ;\n i < s -> picture_count ;\n i ++ ) s -> picture [ i ] . f . extended_data = s -> picture [ i ] . f . data ;\n s -> last_picture_ptr = REBASE_PICTURE ( s1 -> last_picture_ptr , s , s1 ) ;\n s -> current_picture_ptr = REBASE_PICTURE ( s1 -> current_picture_ptr , s , s1 ) ;\n s -> next_picture_ptr = REBASE_PICTURE ( s1 -> next_picture_ptr , s , s1 ) ;\n s -> next_p_frame_damaged = s1 -> next_p_frame_damaged ;\n s -> workaround_bugs = s1 -> workaround_bugs ;\n memcpy ( & s -> time_increment_bits , & s1 -> time_increment_bits , ( char * ) & s1 -> shape - ( char * ) & s1 -> time_increment_bits ) ;\n s -> max_b_frames = s1 -> max_b_frames ;\n s -> low_delay = s1 -> low_delay ;\n s -> droppable = s1 -> droppable ;\n s -> divx_packed = s1 -> divx_packed ;\n if ( s1 -> bitstream_buffer ) {\n if ( s1 -> bitstream_buffer_size + FF_INPUT_BUFFER_PADDING_SIZE > s -> allocated_bitstream_buffer_size ) av_fast_malloc ( & s -> bitstream_buffer , & s -> allocated_bitstream_buffer_size , s1 -> allocated_bitstream_buffer_size ) ;\n s -> bitstream_buffer_size = s1 -> bitstream_buffer_size ;\n memcpy ( s -> bitstream_buffer , s1 -> bitstream_buffer , s1 -> bitstream_buffer_size ) ;\n memset ( s -> bitstream_buffer + s -> bitstream_buffer_size , 0 , FF_INPUT_BUFFER_PADDING_SIZE ) ;\n }\n if ( ! s -> edge_emu_buffer ) if ( s1 -> linesize ) {\n if ( ff_mpv_frame_size_alloc ( s , s1 -> linesize ) < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Failed to allocate context \" \"scratch buffers.\\n\" ) ;\n return AVERROR ( ENOMEM ) ;\n }\n }\n else {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Context scratch buffers could not \" \"be allocated due to unknown size.\\n\" ) ;\n return AVERROR_BUG ;\n }\n memcpy ( & s -> progressive_sequence , & s1 -> progressive_sequence , ( char * ) & s1 -> rtp_mode - ( char * ) & s1 -> progressive_sequence ) ;\n if ( ! s1 -> first_field ) {\n s -> last_pict_type = s1 -> pict_type ;\n if ( s1 -> current_picture_ptr ) s -> last_lambda_for [ s1 -> pict_type ] = s1 -> current_picture_ptr -> f . quality ;\n if ( s1 -> pict_type != AV_PICTURE_TYPE_B ) {\n s -> last_non_b_pict_type = s1 -> pict_type ;\n }\n }\n return 0 ;\n }"}
{"idx": 16587, "target": 0, "func": "static int dissect_nlm3_share ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n return dissect_nlm_share ( tvb , 0 , pinfo , tree , 3 , ( rpc_call_info_value * ) data ) ;\n }"}
{"idx": 16588, "target": 0, "func": "static inline uint16_t le16_to_cpu ( uint16_t v ) {\n return v ;\n }"}
{"idx": 16589, "target": 0, "func": "int64_t TSVConnCacheObjectSizeGet ( TSVConn connp ) {\n sdk_assert ( sdk_sanity_check_iocore_structure ( connp ) == TS_SUCCESS ) ;\n CacheVC * vc = ( CacheVC * ) connp ;\n return vc -> get_object_size ( ) ;\n }"}
{"idx": 16590, "target": 0, "func": "static void print_warnings ( ) {\n const char * query ;\n MYSQL_RES * result ;\n MYSQL_ROW cur ;\n my_ulonglong num_rows ;\n uint error = mysql_errno ( & mysql ) ;\n query = \"show warnings\" ;\n mysql_real_query_for_lazy ( query , strlen ( query ) ) ;\n mysql_store_result_for_lazy ( & result ) ;\n if ( ! result || ! ( num_rows = mysql_num_rows ( result ) ) ) goto end ;\n cur = mysql_fetch_row ( result ) ;\n if ( ! cur || ( num_rows == 1 && error == ( uint ) strtoul ( cur [ 1 ] , NULL , 10 ) ) ) goto end ;\n init_pager ( ) ;\n do {\n tee_fprintf ( PAGER , \"%s (Code %s): %s\\n\" , cur [ 0 ] , cur [ 1 ] , cur [ 2 ] ) ;\n }\n while ( ( cur = mysql_fetch_row ( result ) ) ) ;\n end_pager ( ) ;\n end : mysql_free_result ( result ) ;\n }"}
{"idx": 16591, "target": 0, "func": "static int aes_wrap_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t inlen ) {\n EVP_AES_WRAP_CTX * wctx = EVP_C_DATA ( EVP_AES_WRAP_CTX , ctx ) ;\n size_t rv ;\n int pad = EVP_CIPHER_CTX_iv_length ( ctx ) == 4 ;\n if ( ! in ) return 0 ;\n if ( ! inlen ) return - 1 ;\n if ( ! EVP_CIPHER_CTX_encrypting ( ctx ) && ( inlen < 16 || inlen & 0x7 ) ) return - 1 ;\n if ( ! pad && inlen & 0x7 ) return - 1 ;\n if ( is_partially_overlapping ( out , in , inlen ) ) {\n EVPerr ( EVP_F_AES_WRAP_CIPHER , EVP_R_PARTIALLY_OVERLAPPING ) ;\n return 0 ;\n }\n if ( ! out ) {\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( pad ) inlen = ( inlen + 7 ) / 8 * 8 ;\n return inlen + 8 ;\n }\n else {\n return inlen - 8 ;\n }\n }\n if ( pad ) {\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) rv = CRYPTO_128_wrap_pad ( & wctx -> ks . ks , wctx -> iv , out , in , inlen , ( block128_f ) AES_encrypt ) ;\n else rv = CRYPTO_128_unwrap_pad ( & wctx -> ks . ks , wctx -> iv , out , in , inlen , ( block128_f ) AES_decrypt ) ;\n }\n else {\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) rv = CRYPTO_128_wrap ( & wctx -> ks . ks , wctx -> iv , out , in , inlen , ( block128_f ) AES_encrypt ) ;\n else rv = CRYPTO_128_unwrap ( & wctx -> ks . ks , wctx -> iv , out , in , inlen , ( block128_f ) AES_decrypt ) ;\n }\n return rv ? ( int ) rv : - 1 ;\n }"}
{"idx": 16592, "target": 0, "func": "void stop_postmaster ( bool fast ) {\n ClusterInfo * cluster ;\n if ( os_info . running_cluster == & old_cluster ) cluster = & old_cluster ;\n else if ( os_info . running_cluster == & new_cluster ) cluster = & new_cluster ;\n else return ;\n exec_prog ( SERVER_STOP_LOG_FILE , NULL , ! fast , \"\\\"%s/pg_ctl\\\" -w -D \\\"%s\\\" -o \\\"%s\\\" %s stop\" , cluster -> bindir , cluster -> pgconfig , cluster -> pgopts ? cluster -> pgopts : \"\" , fast ? \"-m fast\" : \"\" ) ;\n os_info . running_cluster = NULL ;\n }"}
{"idx": 16593, "target": 0, "func": "void proto_reg_handoff_rsl ( void ) {\n dissector_handle_t rsl_handle ;\n rsl_handle = create_dissector_handle ( dissect_rsl , proto_rsl ) ;\n dissector_add_uint ( \"lapd.gsm.sapi\" , LAPD_GSM_SAPI_RA_SIG_PROC , rsl_handle ) ;\n gsm_cbch_handle = find_dissector ( \"gsm_cbch\" ) ;\n gsm_cbs_handle = find_dissector ( \"gsm_cbs\" ) ;\n gsm_a_ccch_handle = find_dissector ( \"gsm_a_ccch\" ) ;\n gsm_a_dtap_handle = find_dissector ( \"gsm_a_dtap\" ) ;\n gsm_a_sacch_handle = find_dissector ( \"gsm_a_sacch\" ) ;\n }"}
{"idx": 16594, "target": 0, "func": "static int pefromupx ( const char * src , uint32_t ssize , char * dst , uint32_t * dsize , uint32_t ep , uint32_t upx0 , uint32_t upx1 , uint32_t * magic , uint32_t dend ) {\n char * imports , * sections = NULL , * pehdr = NULL , * newbuf ;\n unsigned int sectcnt = 0 , upd = 1 ;\n uint32_t realstuffsz = 0 , valign = 0 ;\n uint32_t foffset = 0xd0 + 0xf8 ;\n if ( ( dst == NULL ) || ( src == NULL ) ) return 0 ;\n while ( ( valign = magic [ sectcnt ++ ] ) ) {\n if ( CLI_ISCONTAINED ( src , ssize - 5 , src + ep - upx1 + valign - 2 , 2 ) && src [ ep - upx1 + valign - 2 ] == '\\x8d' && src [ ep - upx1 + valign - 1 ] == '\\xbe' ) break ;\n }\n if ( ! valign && CLI_ISCONTAINED ( src , ssize - 8 , src + ep - upx1 + 0x80 , 8 ) ) {\n const char * pt = & src [ ep - upx1 + 0x80 ] ;\n cli_dbgmsg ( \"UPX: bad magic - scanning for imports\\n\" ) ;\n while ( ( pt = cli_memstr ( pt , ssize - ( pt - src ) - 8 , \"\\x8d\\xbe\" , 2 ) ) ) {\n if ( pt [ 6 ] == '\\x8b' && pt [ 7 ] == '\\x07' ) {\n valign = pt - src + 2 - ep + upx1 ;\n break ;\n }\n pt ++ ;\n }\n }\n if ( valign && CLI_ISCONTAINED ( src , ssize , src + ep - upx1 + valign , 4 ) ) {\n imports = dst + cli_readint32 ( src + ep - upx1 + valign ) ;\n realstuffsz = imports - dst ;\n if ( realstuffsz >= * dsize ) {\n cli_dbgmsg ( \"UPX: wrong realstuff size\\n\" ) ;\n }\n else {\n pehdr = imports ;\n while ( CLI_ISCONTAINED ( dst , * dsize , pehdr , 8 ) && cli_readint32 ( pehdr ) ) {\n pehdr += 8 ;\n while ( CLI_ISCONTAINED ( dst , * dsize , pehdr , 2 ) && * pehdr ) {\n pehdr ++ ;\n while ( CLI_ISCONTAINED ( dst , * dsize , pehdr , 2 ) && * pehdr ) pehdr ++ ;\n pehdr ++ ;\n }\n pehdr ++ ;\n }\n pehdr += 4 ;\n if ( ! ( sections = checkpe ( dst , * dsize , pehdr , & valign , & sectcnt ) ) ) pehdr = NULL ;\n }\n }\n if ( ! pehdr && dend > 0xf8 + 0x28 ) {\n cli_dbgmsg ( \"UPX: no luck - scanning for PE\\n\" ) ;\n pehdr = & dst [ dend - 0xf8 - 0x28 ] ;\n while ( pehdr > dst ) {\n if ( ( sections = checkpe ( dst , * dsize , pehdr , & valign , & sectcnt ) ) ) break ;\n pehdr -- ;\n }\n if ( ! ( realstuffsz = pehdr - dst ) ) pehdr = NULL ;\n }\n if ( ! pehdr ) {\n uint32_t rebsz = PESALIGN ( dend , 0x1000 ) ;\n cli_dbgmsg ( \"UPX: no luck - brutally crafing a reasonable PE\\n\" ) ;\n if ( ! ( newbuf = ( char * ) cli_calloc ( rebsz + 0x200 , sizeof ( char ) ) ) ) {\n cli_dbgmsg ( \"UPX: malloc failed - giving up rebuild\\n\" ) ;\n return 0 ;\n }\n memcpy ( newbuf , HEADERS , 0xd0 ) ;\n memcpy ( newbuf + 0xd0 , FAKEPE , 0x120 ) ;\n memcpy ( newbuf + 0x200 , dst , dend ) ;\n memcpy ( dst , newbuf , dend + 0x200 ) ;\n free ( newbuf ) ;\n cli_writeint32 ( dst + 0xd0 + 0x50 , rebsz + 0x1000 ) ;\n cli_writeint32 ( dst + 0xd0 + 0x100 , rebsz ) ;\n cli_writeint32 ( dst + 0xd0 + 0x108 , rebsz ) ;\n * dsize = rebsz + 0x200 ;\n cli_dbgmsg ( \"UPX: PE structure added to uncompressed data\\n\" ) ;\n return 1 ;\n }\n if ( ! sections ) sectcnt = 0 ;\n foffset = PESALIGN ( foffset + 0x28 * sectcnt , valign ) ;\n for ( upd = 0 ;\n upd < sectcnt ;\n upd ++ ) {\n uint32_t vsize = PESALIGN ( ( uint32_t ) cli_readint32 ( sections + 8 ) , valign ) ;\n uint32_t urva = PEALIGN ( ( uint32_t ) cli_readint32 ( sections + 12 ) , valign ) ;\n if ( ! CLI_ISCONTAINED ( upx0 , realstuffsz , urva , vsize ) ) {\n cli_dbgmsg ( \"UPX: Sect %d out of bounds - giving up rebuild\\n\" , upd ) ;\n return 0 ;\n }\n cli_writeint32 ( sections + 8 , vsize ) ;\n cli_writeint32 ( sections + 12 , urva ) ;\n cli_writeint32 ( sections + 16 , vsize ) ;\n cli_writeint32 ( sections + 20 , foffset ) ;\n if ( foffset + vsize < foffset ) {\n return 0 ;\n }\n foffset += vsize ;\n sections += 0x28 ;\n }\n cli_writeint32 ( pehdr + 8 , 0x4d414c43 ) ;\n cli_writeint32 ( pehdr + 0x3c , valign ) ;\n if ( ! ( newbuf = ( char * ) cli_calloc ( foffset , sizeof ( char ) ) ) ) {\n cli_dbgmsg ( \"UPX: malloc failed - giving up rebuild\\n\" ) ;\n return 0 ;\n }\n memcpy ( newbuf , HEADERS , 0xd0 ) ;\n memcpy ( newbuf + 0xd0 , pehdr , 0xf8 + 0x28 * sectcnt ) ;\n sections = pehdr + 0xf8 ;\n for ( upd = 0 ;\n upd < sectcnt ;\n upd ++ ) {\n uint32_t offset1 , offset2 , offset3 ;\n offset1 = ( uint32_t ) cli_readint32 ( sections + 20 ) ;\n offset2 = ( uint32_t ) cli_readint32 ( sections + 16 ) ;\n if ( offset1 > foffset || offset2 > foffset || offset1 + offset2 > foffset ) {\n free ( newbuf ) ;\n return 1 ;\n }\n offset3 = ( uint32_t ) cli_readint32 ( sections + 12 ) ;\n if ( offset3 - upx0 > * dsize ) {\n free ( newbuf ) ;\n return 1 ;\n }\n memcpy ( newbuf + offset1 , dst + offset3 - upx0 , offset2 ) ;\n sections += 0x28 ;\n }\n if ( foffset > * dsize + 8192 ) {\n cli_dbgmsg ( \"UPX: wrong raw size - giving up rebuild\\n\" ) ;\n free ( newbuf ) ;\n return 0 ;\n }\n memcpy ( dst , newbuf , foffset ) ;\n * dsize = foffset ;\n free ( newbuf ) ;\n cli_dbgmsg ( \"UPX: PE structure rebuilt from compressed file\\n\" ) ;\n return 1 ;\n }"}
{"idx": 16595, "target": 0, "func": "static int sock_has_perm ( struct task_struct * task , struct sock * sk , u32 perms ) {\n struct sk_security_struct * sksec = sk -> sk_security ;\n struct common_audit_data ad ;\n struct lsm_network_audit net = {\n 0 , }\n ;\n u32 tsid = task_sid ( task ) ;\n if ( sksec -> sid == SECINITSID_KERNEL ) return 0 ;\n ad . type = LSM_AUDIT_DATA_NET ;\n ad . u . net = & net ;\n ad . u . net -> sk = sk ;\n return avc_has_perm ( tsid , sksec -> sid , sksec -> sclass , perms , & ad ) ;\n }"}
{"idx": 16596, "target": 1, "func": "static void user_data_key_destroy ( hb_user_data_key_t l ) {\n }"}
{"idx": 16597, "target": 0, "func": "static int read_huffman_tables ( HYuvContext * s , const uint8_t * src , int length ) {\n GetBitContext gb ;\n int i ;\n init_get_bits ( & gb , src , length * 8 ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n if ( read_len_table ( s -> len [ i ] , & gb ) < 0 ) return - 1 ;\n if ( generate_bits_table ( s -> bits [ i ] , s -> len [ i ] ) < 0 ) {\n return - 1 ;\n }\n ff_free_vlc ( & s -> vlc [ i ] ) ;\n init_vlc ( & s -> vlc [ i ] , VLC_BITS , 256 , s -> len [ i ] , 1 , 1 , s -> bits [ i ] , 4 , 4 , 0 ) ;\n }\n generate_joint_tables ( s ) ;\n return ( get_bits_count ( & gb ) + 7 ) / 8 ;\n }"}
{"idx": 16598, "target": 0, "func": "IN_PROC_BROWSER_TEST_P ( BrowserCloseManagerBrowserTest , TestAddTabDuringShutdown ) {\n browsers_ . push_back ( CreateBrowser ( browser ( ) -> profile ( ) ) ) ;\n ASSERT_NO_FATAL_FAILURE ( ui_test_utils : : NavigateToURL ( browsers_ [ 0 ] , embedded_test_server ( ) -> GetURL ( \"/beforeunload.html\" ) ) ) ;\n ASSERT_NO_FATAL_FAILURE ( ui_test_utils : : NavigateToURL ( browsers_ [ 1 ] , embedded_test_server ( ) -> GetURL ( \"/beforeunload.html\" ) ) ) ;\n PrepareForDialog ( browsers_ [ 0 ] ) ;\n PrepareForDialog ( browsers_ [ 1 ] ) ;\n RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , 2 ) ;\n chrome : : CloseAllBrowsersAndQuit ( ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n AddBlankTabAndShow ( browsers_ [ 0 ] ) ;\n AddBlankTabAndShow ( browsers_ [ 1 ] ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n close_observer . Wait ( ) ;\n EXPECT_TRUE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_TRUE ( BrowserList : : GetInstance ( ) -> empty ( ) ) ;\n }"}
{"idx": 16599, "target": 0, "func": "static int SpoolssDeletePrinterData_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n proto_item * hidden_item ;\n hidden_item = proto_tree_add_uint ( tree , hf_printerdata , tvb , offset , 0 , 1 ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 16600, "target": 0, "func": "inline OldUChar * toOldUCharPtr ( char16_t * p ) {\n # ifdef U_ALIASING_BARRIER U_ALIASING_BARRIER ( p ) ;\n # endif return reinterpret_cast < OldUChar * > ( p ) ;\n }"}
{"idx": 16601, "target": 1, "func": "static int alloc_addbyter ( int output , FILE * data ) {\n struct asprintf * infop = ( struct asprintf * ) data ;\n unsigned char outc = ( unsigned char ) output ;\n if ( ! infop -> buffer ) {\n infop -> buffer = malloc ( 32 ) ;\n if ( ! infop -> buffer ) {\n infop -> fail = 1 ;\n return - 1 ;\n }\n infop -> alloc = 32 ;\n infop -> len = 0 ;\n }\n else if ( infop -> len + 1 >= infop -> alloc ) {\n char * newptr ;\n newptr = realloc ( infop -> buffer , infop -> alloc * 2 ) ;\n if ( ! newptr ) {\n infop -> fail = 1 ;\n return - 1 ;\n }\n infop -> buffer = newptr ;\n infop -> alloc *= 2 ;\n }\n infop -> buffer [ infop -> len ] = outc ;\n infop -> len ++ ;\n return outc ;\n }"}
{"idx": 16602, "target": 0, "func": "static void kvm_msr_entry_add ( X86CPU * cpu , uint32_t index , uint64_t value ) {\n struct kvm_msrs * msrs = cpu -> kvm_msr_buf ;\n void * limit = ( ( void * ) msrs ) + MSR_BUF_SIZE ;\n struct kvm_msr_entry * entry = & msrs -> entries [ msrs -> nmsrs ] ;\n assert ( ( void * ) ( entry + 1 ) <= limit ) ;\n entry -> index = index ;\n entry -> reserved = 0 ;\n entry -> data = value ;\n msrs -> nmsrs ++ ;\n }"}
{"idx": 16603, "target": 1, "func": "static void create_watching_parent ( void ) {\n pid_t child ;\n sigset_t ourset ;\n struct sigaction oldact [ 3 ] ;\n int status = 0 ;\n int retval ;\n retval = pam_open_session ( pamh , 0 ) ;\n if ( is_pam_failure ( retval ) ) {\n cleanup_pam ( retval ) ;\n errx ( EXIT_FAILURE , _ ( \"cannot open session: %s\" ) , pam_strerror ( pamh , retval ) ) ;\n }\n else _pam_session_opened = 1 ;\n memset ( oldact , 0 , sizeof ( oldact ) ) ;\n child = fork ( ) ;\n if ( child == ( pid_t ) - 1 ) {\n cleanup_pam ( PAM_ABORT ) ;\n err ( EXIT_FAILURE , _ ( \"cannot create child process\" ) ) ;\n }\n if ( child == 0 ) return ;\n if ( chdir ( \"/\" ) != 0 ) warn ( _ ( \"cannot change directory to %s\" ) , \"/\" ) ;\n sigfillset ( & ourset ) ;\n if ( sigprocmask ( SIG_BLOCK , & ourset , NULL ) ) {\n warn ( _ ( \"cannot block signals\" ) ) ;\n caught_signal = true ;\n }\n if ( ! caught_signal ) {\n struct sigaction action ;\n action . sa_handler = su_catch_sig ;\n sigemptyset ( & action . sa_mask ) ;\n action . sa_flags = 0 ;\n sigemptyset ( & ourset ) ;\n if ( ! same_session ) {\n if ( sigaddset ( & ourset , SIGINT ) || sigaddset ( & ourset , SIGQUIT ) ) {\n warn ( _ ( \"cannot set signal handler\" ) ) ;\n caught_signal = true ;\n }\n }\n if ( ! caught_signal && ( sigaddset ( & ourset , SIGTERM ) || sigaddset ( & ourset , SIGALRM ) || sigaction ( SIGTERM , & action , & oldact [ 0 ] ) || sigprocmask ( SIG_UNBLOCK , & ourset , NULL ) ) ) {\n warn ( _ ( \"cannot set signal handler\" ) ) ;\n caught_signal = true ;\n }\n if ( ! caught_signal && ! same_session && ( sigaction ( SIGINT , & action , & oldact [ 1 ] ) || sigaction ( SIGQUIT , & action , & oldact [ 2 ] ) ) ) {\n warn ( _ ( \"cannot set signal handler\" ) ) ;\n caught_signal = true ;\n }\n }\n if ( ! caught_signal ) {\n pid_t pid ;\n for ( ;\n ;\n ) {\n pid = waitpid ( child , & status , WUNTRACED ) ;\n if ( pid != ( pid_t ) - 1 && WIFSTOPPED ( status ) ) {\n kill ( getpid ( ) , SIGSTOP ) ;\n kill ( pid , SIGCONT ) ;\n }\n else break ;\n }\n if ( pid != ( pid_t ) - 1 ) {\n if ( WIFSIGNALED ( status ) ) {\n fprintf ( stderr , \"%s%s\\n\" , strsignal ( WTERMSIG ( status ) ) , WCOREDUMP ( status ) ? _ ( \" (core dumped)\" ) : \"\" ) ;\n status = WTERMSIG ( status ) + 128 ;\n }\n else status = WEXITSTATUS ( status ) ;\n }\n else if ( caught_signal ) status = caught_signal + 128 ;\n else status = 1 ;\n }\n else status = 1 ;\n if ( caught_signal ) {\n fprintf ( stderr , _ ( \"\\nSession terminated, killing shell...\" ) ) ;\n kill ( child , SIGTERM ) ;\n }\n cleanup_pam ( PAM_SUCCESS ) ;\n if ( caught_signal ) {\n sleep ( 2 ) ;\n kill ( child , SIGKILL ) ;\n fprintf ( stderr , _ ( \" ...killed.\\n\" ) ) ;\n switch ( caught_signal ) {\n case SIGTERM : sigaction ( SIGTERM , & oldact [ 0 ] , NULL ) ;\n break ;\n case SIGINT : sigaction ( SIGINT , & oldact [ 1 ] , NULL ) ;\n break ;\n case SIGQUIT : sigaction ( SIGQUIT , & oldact [ 2 ] , NULL ) ;\n break ;\n default : caught_signal = SIGKILL ;\n break ;\n }\n kill ( getpid ( ) , caught_signal ) ;\n }\n exit ( status ) ;\n }"}
{"idx": 16604, "target": 0, "func": "static const char * flat_escape_value_str ( AVBPrint * dst , const char * src ) {\n const char * p ;\n for ( p = src ;\n * p ;\n p ++ ) {\n switch ( * p ) {\n case '\\n' : av_bprintf ( dst , \"%s\" , \"\\\\n\" ) ;\n break ;\n case '\\r' : av_bprintf ( dst , \"%s\" , \"\\\\r\" ) ;\n break ;\n case '\\\\' : av_bprintf ( dst , \"%s\" , \"\\\\\\\\\" ) ;\n break ;\n case '\"' : av_bprintf ( dst , \"%s\" , \"\\\\\\\"\" ) ;\n break ;\n case '`' : av_bprintf ( dst , \"%s\" , \"\\\\`\" ) ;\n break ;\n case '$' : av_bprintf ( dst , \"%s\" , \"\\\\$\" ) ;\n break ;\n default : av_bprint_chars ( dst , * p , 1 ) ;\n break ;\n }\n }\n return dst -> str ;\n }"}
{"idx": 16605, "target": 0, "func": "int ffv1_common_init ( AVCodecContext * avctx ) {\n FFV1Context * s = avctx -> priv_data ;\n s -> avctx = avctx ;\n s -> flags = avctx -> flags ;\n if ( ! avctx -> width || ! avctx -> height ) return AVERROR_INVALIDDATA ;\n avcodec_get_frame_defaults ( & s -> picture ) ;\n ff_dsputil_init ( & s -> dsp , avctx ) ;\n s -> width = avctx -> width ;\n s -> height = avctx -> height ;\n s -> num_h_slices = 1 ;\n s -> num_v_slices = 1 ;\n return 0 ;\n }"}
{"idx": 16606, "target": 0, "func": "int mem_mapped_map_color_rgb ( gx_device * dev , gx_color_index color , gx_color_value prgb [ 3 ] ) {\n gx_device_memory * const mdev = ( gx_device_memory * ) dev ;\n const byte * pptr = mdev -> palette . data + ( int ) color * 3 ;\n prgb [ 0 ] = gx_color_value_from_byte ( pptr [ 0 ] ) ;\n prgb [ 1 ] = gx_color_value_from_byte ( pptr [ 1 ] ) ;\n prgb [ 2 ] = gx_color_value_from_byte ( pptr [ 2 ] ) ;\n return 0 ;\n }"}
{"idx": 16607, "target": 0, "func": "TEST_F ( BudgetDatabaseTest , SpendBudgetTest ) {\n base : : SimpleTestClock * clock = SetClockForTesting ( ) ;\n SetSiteEngagementScore ( kEngagement ) ;\n GetBudgetDetails ( ) ;\n clock -> Advance ( base : : TimeDelta : : FromDays ( 1 ) ) ;\n GetBudgetDetails ( ) ;\n clock -> Advance ( base : : TimeDelta : : FromDays ( 1 ) ) ;\n GetBudgetDetails ( ) ;\n ASSERT_TRUE ( SpendBudget ( 1 ) ) ;\n GetBudgetDetails ( ) ;\n double daily_budget = kMaxDailyBudget * ( kEngagement / SiteEngagementScore : : kMaxPoints ) ;\n ASSERT_EQ ( 4U , prediction_ . size ( ) ) ;\n ASSERT_DOUBLE_EQ ( ( 2 + kDefaultExpirationInDays ) * daily_budget - 1 , prediction_ [ 0 ] -> budget_at ) ;\n ASSERT_DOUBLE_EQ ( daily_budget * 2 , prediction_ [ 1 ] -> budget_at ) ;\n ASSERT_DOUBLE_EQ ( daily_budget , prediction_ [ 2 ] -> budget_at ) ;\n ASSERT_DOUBLE_EQ ( 0 , prediction_ [ 3 ] -> budget_at ) ;\n ASSERT_TRUE ( SpendBudget ( ( 1 + kDefaultExpirationInDays ) * daily_budget ) ) ;\n GetBudgetDetails ( ) ;\n ASSERT_EQ ( 2U , prediction_ . size ( ) ) ;\n ASSERT_DOUBLE_EQ ( daily_budget - 1 , prediction_ [ 0 ] -> budget_at ) ;\n EXPECT_FALSE ( SpendBudget ( kEngagement ) ) ;\n GetBudgetDetails ( ) ;\n ASSERT_EQ ( 2U , prediction_ . size ( ) ) ;\n ASSERT_DOUBLE_EQ ( daily_budget - 1 , prediction_ [ 0 ] -> budget_at ) ;\n clock -> Advance ( base : : TimeDelta : : FromDays ( kDefaultExpirationInDays + 1 ) ) ;\n EXPECT_TRUE ( SpendBudget ( daily_budget * kDefaultExpirationInDays ) ) ;\n }"}
{"idx": 16608, "target": 0, "func": "static void thumbnail_got_pixbuf ( NautilusDirectory * directory , NautilusFile * file , GdkPixbuf * pixbuf , gboolean tried_original ) {\n nautilus_directory_ref ( directory ) ;\n nautilus_file_ref ( file ) ;\n thumbnail_done ( directory , file , pixbuf , tried_original ) ;\n nautilus_file_changed ( file ) ;\n nautilus_file_unref ( file ) ;\n if ( pixbuf ) {\n g_object_unref ( pixbuf ) ;\n }\n nautilus_directory_unref ( directory ) ;\n }"}
{"idx": 16609, "target": 0, "func": "static int compress_bidder_bid ( struct archive_read_filter_bidder * self , struct archive_read_filter * filter ) {\n const unsigned char * buffer ;\n ssize_t avail ;\n int bits_checked ;\n ( void ) self ;\n buffer = __archive_read_filter_ahead ( filter , 3 , & avail ) ;\n if ( buffer == NULL ) return ( 0 ) ;\n bits_checked = 0 ;\n if ( buffer [ 0 ] != 0x1F || buffer [ 1 ] != 0x9D ) return ( 0 ) ;\n if ( buffer [ 2 ] & 0x20 ) return ( 0 ) ;\n if ( buffer [ 2 ] & 0x40 ) return ( 0 ) ;\n bits_checked += 18 ;\n return ( bits_checked ) ;\n }"}
{"idx": 16610, "target": 0, "func": "static void resetstack ( lua_State * L , int status ) {\n L -> ci = L -> base_ci ;\n L -> base = L -> ci -> base ;\n luaF_close ( L , L -> base ) ;\n luaD_seterrorobj ( L , status , L -> base ) ;\n L -> nCcalls = L -> baseCcalls ;\n L -> allowhook = 1 ;\n restore_stack_limit ( L ) ;\n L -> errfunc = 0 ;\n L -> errorJmp = NULL ;\n }"}
{"idx": 16611, "target": 0, "func": "static void writer_close ( WriterContext * * wctx ) {\n int i ;\n if ( ! * wctx ) return ;\n if ( ( * wctx ) -> writer -> uninit ) ( * wctx ) -> writer -> uninit ( * wctx ) ;\n for ( i = 0 ;\n i < SECTION_MAX_NB_LEVELS ;\n i ++ ) av_bprint_finalize ( & ( * wctx ) -> section_pbuf [ i ] , NULL ) ;\n if ( ( * wctx ) -> writer -> priv_class ) av_opt_free ( ( * wctx ) -> priv ) ;\n av_freep ( & ( ( * wctx ) -> priv ) ) ;\n av_opt_free ( * wctx ) ;\n av_freep ( wctx ) ;\n }"}
{"idx": 16612, "target": 0, "func": "static int jas_image_growcmpts ( jas_image_t * image , int maxcmpts ) {\n jas_image_cmpt_t * * newcmpts ;\n int cmptno ;\n newcmpts = ( ! image -> cmpts_ ) ? jas_malloc ( maxcmpts * sizeof ( jas_image_cmpt_t * ) ) : jas_realloc ( image -> cmpts_ , maxcmpts * sizeof ( jas_image_cmpt_t * ) ) ;\n if ( ! newcmpts ) {\n return - 1 ;\n }\n image -> cmpts_ = newcmpts ;\n image -> maxcmpts_ = maxcmpts ;\n for ( cmptno = image -> numcmpts_ ;\n cmptno < image -> maxcmpts_ ;\n ++ cmptno ) {\n image -> cmpts_ [ cmptno ] = 0 ;\n }\n return 0 ;\n }"}
{"idx": 16613, "target": 0, "func": "static void e1000e_send_msi ( E1000ECore * core , bool msix ) {\n uint32_t causes = core -> mac [ ICR ] & core -> mac [ IMS ] & ~ E1000_ICR_ASSERTED ;\n if ( msix ) {\n e1000e_msix_notify ( core , causes ) ;\n }\n else {\n if ( ! e1000e_itr_should_postpone ( core ) ) {\n trace_e1000e_irq_msi_notify ( causes ) ;\n msi_notify ( core -> owner , 0 ) ;\n }\n }\n }"}
{"idx": 16614, "target": 0, "func": "struct proclistlist * pll_create ( void ) {\n struct proclistlist * pll = calloc ( 1 , sizeof ( struct proclistlist ) ) ;\n pll -> proclist = get_proclist ( & pll -> length ) ;\n return pll ;\n }"}
{"idx": 16615, "target": 0, "func": "extern int main ( int argc , char * argv [ ] ) {\n UBool sourceTOC , verbose ;\n uint32_t maxSize ;\n U_MAIN_INIT_ARGS ( argc , argv ) ;\n argc = u_parseArgs ( argc , argv , UPRV_LENGTHOF ( options ) , options ) ;\n if ( argc < 0 ) {\n fprintf ( stderr , \"error in command line argument \\\"%s\\\"\\n\" , argv [ - argc ] ) ;\n }\n else if ( argc < 2 ) {\n argc = - 1 ;\n }\n if ( argc < 0 || options [ 0 ] . doesOccur || options [ 1 ] . doesOccur ) {\n FILE * where = argc < 0 ? stderr : stdout ;\n fprintf ( where , \"%csage: %s [ -h, -?, --help ] [ -v, --verbose ] [ -c, --copyright ] [ -C, --comment comment ] [ -d, --destdir dir ] [ -n, --name filename ] [ -t, --type filetype ] [ -S, --source tocfile ] [ -e, --entrypoint name ] maxsize listfile\\n\" , argc < 0 ? 'u' : 'U' , * argv ) ;\n if ( options [ 0 ] . doesOccur || options [ 1 ] . doesOccur ) {\n fprintf ( where , \"\\n\" \"Read the list file (default: standard input) and create a common data\\n\" \"file from specified files. Omit any files larger than maxsize, if maxsize > 0.\\n\" ) ;\n fprintf ( where , \"\\n\" \"Options:\\n\" \"\\t-h, -?, --help this usage text\\n\" \"\\t-v, --verbose verbose output\\n\" \"\\t-c, --copyright include the ICU copyright notice\\n\" \"\\t-C, --comment comment include a comment string\\n\" \"\\t-d, --destdir dir destination directory\\n\" ) ;\n fprintf ( where , \"\\t-n, --name filename output filename, without .type extension\\n\" \"\\t (default: \" U_ICUDATA_NAME \")\\n\" \"\\t-t, --type filetype type of the destination file\\n\" \"\\t (default: \\\" dat \\\")\\n\" \"\\t-S, --source tocfile write a .c source file with the table of\\n\" \"\\t contents\\n\" \"\\t-e, --entrypoint name override the c entrypoint name\\n\" \"\\t (default: \\\"<name>_<type>\\\")\\n\" ) ;\n }\n return argc < 0 ? U_ILLEGAL_ARGUMENT_ERROR : U_ZERO_ERROR ;\n }\n sourceTOC = options [ 8 ] . doesOccur ;\n verbose = options [ 2 ] . doesOccur ;\n maxSize = ( uint32_t ) uprv_strtoul ( argv [ 1 ] , NULL , 0 ) ;\n createCommonDataFile ( options [ 4 ] . doesOccur ? options [ 4 ] . value : NULL , options [ 6 ] . doesOccur ? options [ 6 ] . value : NULL , options [ 9 ] . doesOccur ? options [ 9 ] . value : options [ 6 ] . doesOccur ? options [ 6 ] . value : NULL , options [ 7 ] . doesOccur ? options [ 7 ] . value : NULL , options [ 10 ] . doesOccur ? options [ 10 ] . value : NULL , options [ 3 ] . doesOccur ? U_COPYRIGHT_STRING : options [ 5 ] . doesOccur ? options [ 5 ] . value : NULL , argc == 2 ? NULL : argv [ 2 ] , maxSize , sourceTOC , verbose , NULL ) ;\n return 0 ;\n }"}
{"idx": 16616, "target": 0, "func": "int i2d_X509_bio ( BIO * bp , X509 * x509 ) {\n return ASN1_item_i2d_bio ( ASN1_ITEM_rptr ( X509 ) , bp , x509 ) ;\n }"}
{"idx": 16617, "target": 0, "func": "void dissect_zcl_identify_attr_data ( proto_tree * tree , tvbuff_t * tvb , guint * offset , guint16 attr_id , guint data_type ) {\n switch ( attr_id ) {\n case ZBEE_ZCL_ATTR_ID_IDENTIFY_IDENTIFY_TIME : proto_tree_add_item ( tree , hf_zbee_zcl_identify_identify_time , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n default : dissect_zcl_attr_data ( tvb , tree , offset , data_type ) ;\n break ;\n }\n }"}
{"idx": 16618, "target": 0, "func": "static gs_memory_type_ptr_t gs_heap_object_type ( const gs_memory_t * mem , const void * ptr ) {\n return ( ( const gs_malloc_block_t * ) ptr ) [ - 1 ] . type ;\n }"}
{"idx": 16619, "target": 0, "func": "static void test_bug3035 ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n MYSQL_BIND bind_array [ 12 ] , * my_bind = bind_array , * bind_end = my_bind + 12 ;\n int8 int8_val ;\n uint8 uint8_val ;\n int16 int16_val ;\n uint16 uint16_val ;\n int32 int32_val ;\n uint32 uint32_val ;\n longlong int64_val ;\n ulonglong uint64_val ;\n double double_val , udouble_val , double_tmp ;\n char longlong_as_string [ 22 ] , ulonglong_as_string [ 22 ] ;\n const int8 int8_min = - 128 ;\n const int8 int8_max = 127 ;\n const uint8 uint8_min = 0 ;\n const uint8 uint8_max = 255 ;\n const int16 int16_min = - 32768 ;\n const int16 int16_max = 32767 ;\n const uint16 uint16_min = 0 ;\n const uint16 uint16_max = 65535 ;\n const int32 int32_max = 2147483647L ;\n const int32 int32_min = - int32_max - 1 ;\n const uint32 uint32_min = 0 ;\n const uint32 uint32_max = 4294967295U ;\n const longlong int64_max = LL ( 9223372036854775807 ) ;\n const longlong int64_min = - int64_max - 1 ;\n const ulonglong uint64_min = 0U ;\n const ulonglong uint64_max = ULL ( 18446744073709551615 ) ;\n const char * stmt_text ;\n myheader ( \"test_bug3035\" ) ;\n stmt_text = \"DROP TABLE IF EXISTS t1\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt_text = \"CREATE TABLE t1 (i8 TINYINT, ui8 TINYINT UNSIGNED, \" \"i16 SMALLINT, ui16 SMALLINT UNSIGNED, \" \"i32 INT, ui32 INT UNSIGNED, \" \"i64 BIGINT, ui64 BIGINT UNSIGNED, \" \"id INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT)\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n memset ( bind_array , 0 , sizeof ( bind_array ) ) ;\n for ( my_bind = bind_array ;\n my_bind < bind_end ;\n my_bind ++ ) my_bind -> error = & my_bind -> error_value ;\n bind_array [ 0 ] . buffer_type = MYSQL_TYPE_TINY ;\n bind_array [ 0 ] . buffer = ( void * ) & int8_val ;\n bind_array [ 1 ] . buffer_type = MYSQL_TYPE_TINY ;\n bind_array [ 1 ] . buffer = ( void * ) & uint8_val ;\n bind_array [ 1 ] . is_unsigned = 1 ;\n bind_array [ 2 ] . buffer_type = MYSQL_TYPE_SHORT ;\n bind_array [ 2 ] . buffer = ( void * ) & int16_val ;\n bind_array [ 3 ] . buffer_type = MYSQL_TYPE_SHORT ;\n bind_array [ 3 ] . buffer = ( void * ) & uint16_val ;\n bind_array [ 3 ] . is_unsigned = 1 ;\n bind_array [ 4 ] . buffer_type = MYSQL_TYPE_LONG ;\n bind_array [ 4 ] . buffer = ( void * ) & int32_val ;\n bind_array [ 5 ] . buffer_type = MYSQL_TYPE_LONG ;\n bind_array [ 5 ] . buffer = ( void * ) & uint32_val ;\n bind_array [ 5 ] . is_unsigned = 1 ;\n bind_array [ 6 ] . buffer_type = MYSQL_TYPE_LONGLONG ;\n bind_array [ 6 ] . buffer = ( void * ) & int64_val ;\n bind_array [ 7 ] . buffer_type = MYSQL_TYPE_LONGLONG ;\n bind_array [ 7 ] . buffer = ( void * ) & uint64_val ;\n bind_array [ 7 ] . is_unsigned = 1 ;\n stmt = mysql_stmt_init ( mysql ) ;\n check_stmt ( stmt ) ;\n stmt_text = \"INSERT INTO t1 (i8, ui8, i16, ui16, i32, ui32, i64, ui64) \" \"VALUES (?, ?, ?, ?, ?, ?, ?, ?)\" ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt , rc ) ;\n mysql_stmt_bind_param ( stmt , bind_array ) ;\n int8_val = int8_min ;\n uint8_val = uint8_min ;\n int16_val = int16_min ;\n uint16_val = uint16_min ;\n int32_val = int32_min ;\n uint32_val = uint32_min ;\n int64_val = int64_min ;\n uint64_val = uint64_min ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n int8_val = int8_max ;\n uint8_val = uint8_max ;\n int16_val = int16_max ;\n uint16_val = uint16_max ;\n int32_val = int32_max ;\n uint32_val = uint32_max ;\n int64_val = int64_max ;\n uint64_val = uint64_max ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n stmt_text = \"SELECT i8, ui8, i16, ui16, i32, ui32, i64, ui64, ui64, \" \"cast(ui64 as signed), ui64, cast(ui64 as signed)\" \"FROM t1 ORDER BY id ASC\" ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n bind_array [ 8 ] . buffer_type = MYSQL_TYPE_DOUBLE ;\n bind_array [ 8 ] . buffer = ( void * ) & udouble_val ;\n bind_array [ 9 ] . buffer_type = MYSQL_TYPE_DOUBLE ;\n bind_array [ 9 ] . buffer = ( void * ) & double_val ;\n bind_array [ 10 ] . buffer_type = MYSQL_TYPE_STRING ;\n bind_array [ 10 ] . buffer = ( void * ) & ulonglong_as_string ;\n bind_array [ 10 ] . buffer_length = sizeof ( ulonglong_as_string ) ;\n bind_array [ 11 ] . buffer_type = MYSQL_TYPE_STRING ;\n bind_array [ 11 ] . buffer = ( void * ) & longlong_as_string ;\n bind_array [ 11 ] . buffer_length = sizeof ( longlong_as_string ) ;\n mysql_stmt_bind_result ( stmt , bind_array ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n DIE_UNLESS ( int8_val == int8_min ) ;\n DIE_UNLESS ( uint8_val == uint8_min ) ;\n DIE_UNLESS ( int16_val == int16_min ) ;\n DIE_UNLESS ( uint16_val == uint16_min ) ;\n DIE_UNLESS ( int32_val == int32_min ) ;\n DIE_UNLESS ( uint32_val == uint32_min ) ;\n DIE_UNLESS ( int64_val == int64_min ) ;\n DIE_UNLESS ( uint64_val == uint64_min ) ;\n DIE_UNLESS ( double_val == ( longlong ) uint64_min ) ;\n double_tmp = ulonglong2double ( uint64_val ) ;\n DIE_UNLESS ( cmp_double ( & udouble_val , & double_tmp ) ) ;\n DIE_UNLESS ( ! strcmp ( longlong_as_string , \"0\" ) ) ;\n DIE_UNLESS ( ! strcmp ( ulonglong_as_string , \"0\" ) ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n if ( ! opt_silent ) {\n printf ( \"Truncation mask: \" ) ;\n for ( my_bind = bind_array ;\n my_bind < bind_end ;\n my_bind ++ ) printf ( \"%d\" , ( int ) my_bind -> error_value ) ;\n printf ( \"\\n\" ) ;\n }\n DIE_UNLESS ( rc == MYSQL_DATA_TRUNCATED || rc == 0 ) ;\n DIE_UNLESS ( int8_val == int8_max ) ;\n DIE_UNLESS ( uint8_val == uint8_max ) ;\n DIE_UNLESS ( int16_val == int16_max ) ;\n DIE_UNLESS ( uint16_val == uint16_max ) ;\n DIE_UNLESS ( int32_val == int32_max ) ;\n DIE_UNLESS ( uint32_val == uint32_max ) ;\n DIE_UNLESS ( int64_val == int64_max ) ;\n DIE_UNLESS ( uint64_val == uint64_max ) ;\n DIE_UNLESS ( double_val == ( longlong ) uint64_val ) ;\n double_tmp = ulonglong2double ( uint64_val ) ;\n DIE_UNLESS ( cmp_double ( & udouble_val , & double_tmp ) ) ;\n DIE_UNLESS ( ! strcmp ( longlong_as_string , \"-1\" ) ) ;\n DIE_UNLESS ( ! strcmp ( ulonglong_as_string , \"18446744073709551615\" ) ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n mysql_stmt_close ( stmt ) ;\n stmt_text = \"DROP TABLE t1\" ;\n mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n }"}
{"idx": 16620, "target": 1, "func": "static gint dissect_rtp ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n proto_item * ti = NULL ;\n proto_tree * volatile rtp_tree = NULL ;\n proto_tree * rtp_csrc_tree = NULL ;\n proto_tree * rtp_hext_tree = NULL ;\n guint8 octet1 , octet2 ;\n unsigned int version ;\n gboolean padding_set ;\n gboolean extension_set ;\n unsigned int csrc_count ;\n gboolean marker_set ;\n unsigned int payload_type ;\n gchar * payload_type_str = NULL ;\n gboolean is_srtp = FALSE ;\n unsigned int i = 0 ;\n unsigned int hdr_extension_len = 0 ;\n unsigned int hdr_extension_id = 0 ;\n volatile unsigned int padding_count ;\n gint length , reported_length ;\n int data_len ;\n volatile unsigned int offset = 0 ;\n guint16 seq_num ;\n guint32 timestamp ;\n guint32 sync_src ;\n guint32 csrc_item ;\n struct _rtp_conversation_info * p_conv_data = NULL ;\n unsigned int hdrext_offset = 0 ;\n tvbuff_t * newtvb = NULL ;\n const char * pt = NULL ;\n static struct _rtp_info rtp_info_arr [ 4 ] ;\n static int rtp_info_current = 0 ;\n struct _rtp_info * rtp_info ;\n rtp_info_current ++ ;\n if ( rtp_info_current == 4 ) {\n rtp_info_current = 0 ;\n }\n rtp_info = & rtp_info_arr [ rtp_info_current ] ;\n octet1 = tvb_get_guint8 ( tvb , offset ) ;\n version = RTP_VERSION ( octet1 ) ;\n if ( version == 0 ) {\n switch ( global_rtp_version0_type ) {\n case RTP0_STUN : call_dissector ( stun_handle , tvb , pinfo , tree ) ;\n return tvb_length ( tvb ) ;\n case RTP0_CLASSICSTUN : call_dissector ( classicstun_handle , tvb , pinfo , tree ) ;\n return tvb_length ( tvb ) ;\n case RTP0_T38 : call_dissector ( t38_handle , tvb , pinfo , tree ) ;\n return tvb_length ( tvb ) ;\n case RTP0_SPRT : call_dissector ( sprt_handle , tvb , pinfo , tree ) ;\n return tvb_length ( tvb ) ;\n case RTP0_INVALID : if ( ! ( tvb_memeql ( tvb , 4 , \"ZRTP\" , 4 ) ) ) {\n call_dissector ( zrtp_handle , tvb , pinfo , tree ) ;\n return tvb_length ( tvb ) ;\n }\n default : ;\n }\n }\n rtp_info -> info_version = version ;\n if ( version != 2 ) {\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"RTP\" ) ;\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"Unknown RTP version %u\" , version ) ;\n if ( tree ) {\n ti = proto_tree_add_item ( tree , proto_rtp , tvb , offset , - 1 , ENC_NA ) ;\n rtp_tree = proto_item_add_subtree ( ti , ett_rtp ) ;\n proto_tree_add_uint ( rtp_tree , hf_rtp_version , tvb , offset , 1 , octet1 ) ;\n }\n return offset ;\n }\n padding_set = RTP_PADDING ( octet1 ) ;\n extension_set = RTP_EXTENSION ( octet1 ) ;\n csrc_count = RTP_CSRC_COUNT ( octet1 ) ;\n octet2 = tvb_get_guint8 ( tvb , offset + 1 ) ;\n marker_set = RTP_MARKER ( octet2 ) ;\n payload_type = RTP_PAYLOAD_TYPE ( octet2 ) ;\n if ( marker_set && payload_type >= FIRST_RTCP_CONFLICT_PAYLOAD_TYPE && payload_type <= LAST_RTCP_CONFLICT_PAYLOAD_TYPE ) {\n call_dissector ( rtcp_handle , tvb , pinfo , tree ) ;\n return tvb_length ( tvb ) ;\n }\n seq_num = tvb_get_ntohs ( tvb , offset + 2 ) ;\n timestamp = tvb_get_ntohl ( tvb , offset + 4 ) ;\n sync_src = tvb_get_ntohl ( tvb , offset + 8 ) ;\n rtp_info -> info_padding_set = padding_set ;\n rtp_info -> info_padding_count = 0 ;\n rtp_info -> info_marker_set = marker_set ;\n rtp_info -> info_is_video = FALSE ;\n rtp_info -> info_payload_type = payload_type ;\n rtp_info -> info_seq_num = seq_num ;\n rtp_info -> info_timestamp = timestamp ;\n rtp_info -> info_sync_src = sync_src ;\n rtp_info -> info_is_srtp = FALSE ;\n rtp_info -> info_setup_frame_num = 0 ;\n rtp_info -> info_payload_type_str = NULL ;\n rtp_info -> info_payload_rate = 0 ;\n length = tvb_length_remaining ( tvb , offset ) ;\n reported_length = tvb_reported_length_remaining ( tvb , offset ) ;\n if ( reported_length >= 0 && length >= reported_length ) {\n rtp_info -> info_all_data_present = TRUE ;\n rtp_info -> info_data_len = reported_length ;\n rtp_info -> info_data = tvb_get_ptr ( tvb , 0 , - 1 ) ;\n }\n else {\n rtp_info -> info_all_data_present = FALSE ;\n rtp_info -> info_data_len = 0 ;\n rtp_info -> info_data = NULL ;\n }\n get_conv_info ( pinfo , rtp_info ) ;\n p_conv_data = ( struct _rtp_conversation_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_rtp , 0 ) ;\n if ( p_conv_data ) rtp_info -> info_is_video = p_conv_data -> is_video ;\n if ( p_conv_data && p_conv_data -> srtp_info ) is_srtp = TRUE ;\n rtp_info -> info_is_srtp = is_srtp ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , ( is_srtp ) ? \"SRTP\" : \"RTP\" ) ;\n p_conv_data = ( struct _rtp_conversation_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_rtp , 0 ) ;\n # if 0 if ( p_conv_data && p_conv_data -> srtp_info ) {\n srtp_info = p_conv_data -> srtp_info ;\n if ( rtp_info -> info_all_data_present ) {\n srtp_offset = rtp_info -> info_data_len - srtp_info -> mki_len - srtp_info -> auth_tag_len ;\n }\n }\n # endif if ( p_conv_data && p_conv_data -> bta2dp_info && p_conv_data -> bta2dp_info -> codec_dissector ) {\n rtp_info -> info_payload_type_str = ( const char * ) dissector_handle_get_short_name ( p_conv_data -> bta2dp_info -> codec_dissector ) ;\n }\n else if ( p_conv_data && p_conv_data -> btvdp_info && p_conv_data -> btvdp_info -> codec_dissector ) {\n rtp_info -> info_payload_type_str = ( const char * ) dissector_handle_get_short_name ( p_conv_data -> btvdp_info -> codec_dissector ) ;\n }\n if ( ( payload_type > 95 ) && ( payload_type < 128 ) ) {\n if ( p_conv_data && p_conv_data -> rtp_dyn_payload ) {\n encoding_name_and_rate_t * encoding_name_and_rate_pt = NULL ;\n # ifdef DEBUG_CONVERSATION rtp_dump_dyn_payload ( p_conv_data -> rtp_dyn_payload ) ;\n # endif DPRINT ( ( \"looking up conversation data for dyn_pt=%d\" , payload_type ) ) ;\n encoding_name_and_rate_pt = ( encoding_name_and_rate_t * ) g_hash_table_lookup ( p_conv_data -> rtp_dyn_payload , & payload_type ) ;\n DPRINT ( ( \"did %sfind conversation data for dyn_pt=%d\" , encoding_name_and_rate_pt ? \"\" : \"not \" , payload_type ) ) ;\n if ( encoding_name_and_rate_pt ) {\n DPRINT ( ( \"found conversation data for dyn_pt=%d, enc_name=%s\" , payload_type , encoding_name_and_rate_pt -> encoding_name ) ) ;\n rtp_info -> info_payload_type_str = payload_type_str = encoding_name_and_rate_pt -> encoding_name ;\n rtp_info -> info_payload_rate = encoding_name_and_rate_pt -> sample_rate ;\n }\n }\n }\n if ( p_conv_data && p_conv_data -> bta2dp_info ) {\n pt = ( p_conv_data -> bta2dp_info -> codec_dissector ) ? dissector_handle_get_short_name ( p_conv_data -> bta2dp_info -> codec_dissector ) : \"Unknown\" ;\n }\n else if ( p_conv_data && p_conv_data -> btvdp_info ) {\n pt = ( p_conv_data -> btvdp_info -> codec_dissector ) ? dissector_handle_get_short_name ( p_conv_data -> btvdp_info -> codec_dissector ) : \"Unknown\" ;\n }\n else {\n pt = ( payload_type_str ? payload_type_str : val_to_str_ext ( payload_type , & rtp_payload_type_vals_ext , \"Unknown (%u)\" ) ) ;\n }\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"PT=%s, SSRC=0x%X, Seq=%u, Time=%u%s\" , pt , sync_src , seq_num , timestamp , marker_set ? \", Mark\" : \"\" ) ;\n if ( tree ) {\n proto_tree * item ;\n ti = proto_tree_add_item ( tree , proto_rtp , tvb , offset , - 1 , ENC_NA ) ;\n rtp_tree = proto_item_add_subtree ( ti , ett_rtp ) ;\n if ( global_rtp_show_setup_info ) {\n show_setup_info ( tvb , pinfo , rtp_tree ) ;\n }\n proto_tree_add_uint ( rtp_tree , hf_rtp_version , tvb , offset , 1 , octet1 ) ;\n proto_tree_add_boolean ( rtp_tree , hf_rtp_padding , tvb , offset , 1 , octet1 ) ;\n proto_tree_add_boolean ( rtp_tree , hf_rtp_extension , tvb , offset , 1 , octet1 ) ;\n proto_tree_add_uint ( rtp_tree , hf_rtp_csrc_count , tvb , offset , 1 , octet1 ) ;\n offset ++ ;\n proto_tree_add_boolean ( rtp_tree , hf_rtp_marker , tvb , offset , 1 , octet2 ) ;\n proto_tree_add_uint_format ( rtp_tree , hf_rtp_payload_type , tvb , offset , 1 , octet2 , \"Payload type: %s (%u)\" , pt , payload_type ) ;\n offset ++ ;\n proto_tree_add_uint ( rtp_tree , hf_rtp_seq_nr , tvb , offset , 2 , seq_num ) ;\n if ( p_conv_data != NULL ) {\n item = proto_tree_add_uint ( rtp_tree , hf_rtp_ext_seq_nr , tvb , offset , 2 , p_conv_data -> extended_seqno ) ;\n PROTO_ITEM_SET_GENERATED ( item ) ;\n }\n offset += 2 ;\n proto_tree_add_uint ( rtp_tree , hf_rtp_timestamp , tvb , offset , 4 , timestamp ) ;\n offset += 4 ;\n proto_tree_add_uint ( rtp_tree , hf_rtp_ssrc , tvb , offset , 4 , sync_src ) ;\n offset += 4 ;\n }\n else {\n offset += 12 ;\n }\n if ( csrc_count > 0 ) {\n ti = proto_tree_add_item ( rtp_tree , hf_rtp_csrc_items , tvb , offset , csrc_count * 4 , ENC_NA ) ;\n proto_item_append_text ( ti , \" (%u items)\" , csrc_count ) ;\n rtp_csrc_tree = proto_item_add_subtree ( ti , ett_csrc_list ) ;\n for ( i = 0 ;\n i < csrc_count ;\n i ++ ) {\n csrc_item = tvb_get_ntohl ( tvb , offset ) ;\n proto_tree_add_uint_format ( rtp_csrc_tree , hf_rtp_csrc_item , tvb , offset , 4 , csrc_item , \"CSRC item %d: 0x%X\" , i , csrc_item ) ;\n offset += 4 ;\n }\n }\n if ( extension_set ) {\n hdr_extension_id = tvb_get_ntohs ( tvb , offset ) ;\n if ( tree ) proto_tree_add_uint ( rtp_tree , hf_rtp_prof_define , tvb , offset , 2 , hdr_extension_id ) ;\n offset += 2 ;\n hdr_extension_len = tvb_get_ntohs ( tvb , offset ) ;\n if ( tree ) proto_tree_add_uint ( rtp_tree , hf_rtp_length , tvb , offset , 2 , hdr_extension_len ) ;\n offset += 2 ;\n if ( hdr_extension_len > 0 ) {\n if ( tree ) {\n ti = proto_tree_add_item ( rtp_tree , hf_rtp_hdr_exts , tvb , offset , hdr_extension_len * 4 , ENC_NA ) ;\n rtp_hext_tree = proto_item_add_subtree ( ti , ett_hdr_ext ) ;\n }\n newtvb = tvb_new_subset ( tvb , offset , hdr_extension_len * 4 , hdr_extension_len * 4 ) ;\n if ( hdr_extension_id == RTP_RFC5215_ONE_BYTE_SIG ) {\n dissect_rtp_hext_rfc5215_onebyte ( newtvb , pinfo , rtp_hext_tree ) ;\n }\n else if ( ( hdr_extension_id & RTP_RFC5215_TWO_BYTE_MASK ) == RTP_RFC5215_TWO_BYTE_SIG ) {\n dissect_rtp_hext_rfc5215_twobytes ( tvb , offset - 4 , hdr_extension_id , newtvb , pinfo , rtp_hext_tree ) ;\n }\n else {\n if ( ! ( dissector_try_uint ( rtp_hdr_ext_dissector_table , hdr_extension_id , newtvb , pinfo , rtp_hext_tree ) ) ) {\n hdrext_offset = offset ;\n for ( i = 0 ;\n i < hdr_extension_len ;\n i ++ ) {\n if ( tree ) proto_tree_add_uint ( rtp_hext_tree , hf_rtp_hdr_ext , tvb , hdrext_offset , 4 , tvb_get_ntohl ( tvb , hdrext_offset ) ) ;\n hdrext_offset += 4 ;\n }\n }\n }\n }\n offset += hdr_extension_len * 4 ;\n }\n if ( padding_set ) {\n if ( tvb_length ( tvb ) < tvb_reported_length ( tvb ) ) {\n if ( tree ) proto_tree_add_text ( rtp_tree , tvb , 0 , 0 , \"Frame has padding, but not all the frame data was captured\" ) ;\n call_dissector ( data_handle , tvb_new_subset_remaining ( tvb , offset ) , pinfo , rtp_tree ) ;\n return tvb_length ( tvb ) ;\n }\n padding_count = tvb_get_guint8 ( tvb , tvb_reported_length ( tvb ) - 1 ) ;\n data_len = tvb_reported_length_remaining ( tvb , offset ) - padding_count ;\n rtp_info -> info_payload_offset = offset ;\n rtp_info -> info_payload_len = tvb_length_remaining ( tvb , offset ) ;\n rtp_info -> info_padding_count = padding_count ;\n if ( p_conv_data && p_conv_data -> bta2dp_info ) {\n if ( p_conv_data -> bta2dp_info -> codec_dissector == sbc_handle ) {\n rtp_info -> info_payload_offset += 1 ;\n rtp_info -> info_payload_len -= 1 ;\n }\n if ( p_conv_data -> bta2dp_info -> content_protection_type == BTAVDTP_CONTENT_PROTECTION_TYPE_SCMS_T ) {\n rtp_info -> info_payload_offset += 1 ;\n rtp_info -> info_payload_len -= 1 ;\n }\n }\n if ( p_conv_data && p_conv_data -> btvdp_info && p_conv_data -> bta2dp_info -> content_protection_type == BTAVDTP_CONTENT_PROTECTION_TYPE_SCMS_T ) {\n rtp_info -> info_payload_offset += 1 ;\n rtp_info -> info_payload_len -= 1 ;\n }\n if ( data_len > 0 ) {\n TRY {\n dissect_rtp_data ( tvb , pinfo , tree , rtp_tree , offset , data_len , data_len , payload_type ) ;\n }\n CATCH_ALL {\n if ( ! pinfo -> flags . in_error_pkt ) tap_queue_packet ( rtp_tap , pinfo , rtp_info ) ;\n RETHROW ;\n }\n ENDTRY ;\n offset += data_len ;\n }\n else if ( data_len < 0 ) {\n padding_count = tvb_reported_length_remaining ( tvb , offset ) ;\n }\n if ( padding_count > 1 ) {\n if ( tree ) proto_tree_add_item ( rtp_tree , hf_rtp_padding_data , tvb , offset , padding_count - 1 , ENC_NA ) ;\n offset += padding_count - 1 ;\n }\n if ( tree ) proto_tree_add_item ( rtp_tree , hf_rtp_padding_count , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n }\n else {\n rtp_info -> info_payload_offset = offset ;\n rtp_info -> info_payload_len = tvb_length_remaining ( tvb , offset ) ;\n if ( p_conv_data && p_conv_data -> bta2dp_info ) {\n if ( p_conv_data -> bta2dp_info -> codec_dissector == sbc_handle ) {\n rtp_info -> info_payload_offset += 1 ;\n rtp_info -> info_payload_len -= 1 ;\n }\n if ( p_conv_data -> bta2dp_info -> content_protection_type == BTAVDTP_CONTENT_PROTECTION_TYPE_SCMS_T ) {\n rtp_info -> info_payload_offset += 1 ;\n rtp_info -> info_payload_len -= 1 ;\n }\n }\n if ( p_conv_data && p_conv_data -> btvdp_info && p_conv_data -> bta2dp_info -> content_protection_type == BTAVDTP_CONTENT_PROTECTION_TYPE_SCMS_T ) {\n rtp_info -> info_payload_offset += 1 ;\n rtp_info -> info_payload_len -= 1 ;\n }\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n TRY {\n dissect_rtp_data ( tvb , pinfo , tree , rtp_tree , offset , tvb_length_remaining ( tvb , offset ) , tvb_reported_length_remaining ( tvb , offset ) , payload_type ) ;\n }\n CATCH_ALL {\n if ( ! pinfo -> flags . in_error_pkt ) tap_queue_packet ( rtp_tap , pinfo , rtp_info ) ;\n RETHROW ;\n }\n ENDTRY ;\n }\n }\n if ( ! pinfo -> flags . in_error_pkt ) tap_queue_packet ( rtp_tap , pinfo , rtp_info ) ;\n return offset ;\n }"}
{"idx": 16621, "target": 0, "func": "static void rtmpt_debug ( const char * fmt , ... ) {\n ( void ) fmt ;\n }"}
{"idx": 16622, "target": 0, "func": "static inline unsigned int decompose ( const hb_ot_shape_normalize_context_t * c , bool shortest , hb_codepoint_t ab ) {\n hb_codepoint_t a , b , a_glyph , b_glyph ;\n hb_buffer_t * const buffer = c -> buffer ;\n hb_font_t * const font = c -> font ;\n if ( ! c -> decompose ( c , ab , & a , & b ) || ( b && ! font -> get_glyph ( b , 0 , & b_glyph ) ) ) return 0 ;\n bool has_a = font -> get_glyph ( a , 0 , & a_glyph ) ;\n if ( shortest && has_a ) {\n output_char ( buffer , a , a_glyph ) ;\n if ( likely ( b ) ) {\n output_char ( buffer , b , b_glyph ) ;\n return 2 ;\n }\n return 1 ;\n }\n unsigned int ret ;\n if ( ( ret = decompose ( c , shortest , a ) ) ) {\n if ( b ) {\n output_char ( buffer , b , b_glyph ) ;\n return ret + 1 ;\n }\n return ret ;\n }\n if ( has_a ) {\n output_char ( buffer , a , a_glyph ) ;\n if ( likely ( b ) ) {\n output_char ( buffer , b , b_glyph ) ;\n return 2 ;\n }\n return 1 ;\n }\n return 0 ;\n }"}
{"idx": 16623, "target": 0, "func": "static ssize_t qio_channel_websock_write_wire ( QIOChannelWebsock * ioc , Error * * errp ) {\n ssize_t ret ;\n ssize_t done = 0 ;\n if ( ! ioc -> ping_reply . offset ) {\n qio_channel_websock_encode ( ioc ) ;\n }\n else if ( ! ioc -> encoutput . offset ) {\n buffer_move_empty ( & ioc -> encoutput , & ioc -> ping_reply ) ;\n }\n while ( ioc -> encoutput . offset > 0 ) {\n ret = qio_channel_write ( ioc -> master , ( char * ) ioc -> encoutput . buffer , ioc -> encoutput . offset , errp ) ;\n if ( ret < 0 ) {\n if ( ret == QIO_CHANNEL_ERR_BLOCK && done > 0 ) {\n return done ;\n }\n else {\n return ret ;\n }\n }\n buffer_advance ( & ioc -> encoutput , ret ) ;\n done += ret ;\n }\n return done ;\n }"}
{"idx": 16624, "target": 1, "func": "static ossl_inline type * lh_ ## type ## _insert ( LHASH_OF ( type ) * lh , type * d ) {\n return ( type * ) OPENSSL_LH_insert ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline type * lh_ ## type ## _delete ( LHASH_OF ( type ) * lh , const type * d ) {\n return ( type * ) OPENSSL_LH_delete ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline type * lh_ ## type ## _retrieve ( LHASH_OF ( type ) * lh , const type * d ) {\n return ( type * ) OPENSSL_LH_retrieve ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline int lh_ ## type ## _error ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_error ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _num_items ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_num_items ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _node_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _node_usage_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_usage_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING )"}
{"idx": 16625, "target": 0, "func": "void _TIFFfree ( void * p ) {\n free ( p ) ;\n }"}
{"idx": 16626, "target": 0, "func": "static void launch_location_free ( LaunchLocation * location ) {\n nautilus_file_unref ( location -> file ) ;\n g_free ( location -> uri ) ;\n g_free ( location ) ;\n }"}
{"idx": 16627, "target": 0, "func": "void evhttp_make_header ( struct evhttp_connection * evcon , struct evhttp_request * req ) {\n struct evkeyval * header ;\n if ( req -> kind == EVHTTP_REQUEST ) {\n evhttp_make_header_request ( evcon , req ) ;\n }\n else {\n evhttp_make_header_response ( evcon , req ) ;\n }\n TAILQ_FOREACH ( header , req -> output_headers , next ) {\n evbuffer_add_printf ( evcon -> output_buffer , \"%s: %s\\r\\n\" , header -> key , header -> value ) ;\n }\n evbuffer_add ( evcon -> output_buffer , \"\\r\\n\" , 2 ) ;\n if ( EVBUFFER_LENGTH ( req -> output_buffer ) > 0 ) {\n evbuffer_add_buffer ( evcon -> output_buffer , req -> output_buffer ) ;\n }\n }"}
{"idx": 16628, "target": 1, "func": "static int64_t handle_inter_mode ( VP9_COMP * cpi , MACROBLOCK * x , BLOCK_SIZE bsize , int64_t txfm_cache [ ] , int * rate2 , int64_t * distortion , int * skippable , int * rate_y , int64_t * distortion_y , int * rate_uv , int64_t * distortion_uv , int * disable_skip , int_mv ( * mode_mv ) [ MAX_REF_FRAMES ] , int mi_row , int mi_col , int_mv single_newmv [ MAX_REF_FRAMES ] , INTERP_FILTER ( * single_filter ) [ MAX_REF_FRAMES ] , int ( * single_skippable ) [ MAX_REF_FRAMES ] , int64_t * psse , const int64_t ref_best_rd ) {\n VP9_COMMON * cm = & cpi -> common ;\n RD_OPT * rd_opt = & cpi -> rd ;\n MACROBLOCKD * xd = & x -> e_mbd ;\n MB_MODE_INFO * mbmi = & xd -> mi [ 0 ] -> mbmi ;\n const int is_comp_pred = has_second_ref ( mbmi ) ;\n const int this_mode = mbmi -> mode ;\n int_mv * frame_mv = mode_mv [ this_mode ] ;\n int i ;\n int refs [ 2 ] = {\n mbmi -> ref_frame [ 0 ] , ( mbmi -> ref_frame [ 1 ] < 0 ? 0 : mbmi -> ref_frame [ 1 ] ) }\n ;\n int_mv cur_mv [ 2 ] ;\n int64_t this_rd = 0 ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , tmp_buf , MAX_MB_PLANE * 64 * 64 ) ;\n int pred_exists = 0 ;\n int intpel_mv ;\n int64_t rd , tmp_rd , best_rd = INT64_MAX ;\n int best_needs_copy = 0 ;\n uint8_t * orig_dst [ MAX_MB_PLANE ] ;\n int orig_dst_stride [ MAX_MB_PLANE ] ;\n int rs = 0 ;\n INTERP_FILTER best_filter = SWITCHABLE ;\n uint8_t skip_txfm [ MAX_MB_PLANE << 2 ] = {\n 0 }\n ;\n int64_t bsse [ MAX_MB_PLANE << 2 ] = {\n 0 }\n ;\n int bsl = mi_width_log2_lookup [ bsize ] ;\n int pred_filter_search = cpi -> sf . cb_pred_filter_search ? ( ( ( mi_row + mi_col ) >> bsl ) + get_chessboard_index ( cm -> current_video_frame ) ) & 0x1 : 0 ;\n if ( pred_filter_search ) {\n INTERP_FILTER af = SWITCHABLE , lf = SWITCHABLE ;\n if ( xd -> up_available ) af = xd -> mi [ - xd -> mi_stride ] -> mbmi . interp_filter ;\n if ( xd -> left_available ) lf = xd -> mi [ - 1 ] -> mbmi . interp_filter ;\n if ( ( this_mode != NEWMV ) || ( af == lf ) ) best_filter = af ;\n }\n if ( is_comp_pred ) {\n if ( frame_mv [ refs [ 0 ] ] . as_int == INVALID_MV || frame_mv [ refs [ 1 ] ] . as_int == INVALID_MV ) return INT64_MAX ;\n if ( cpi -> sf . adaptive_mode_search ) {\n if ( single_filter [ this_mode ] [ refs [ 0 ] ] == single_filter [ this_mode ] [ refs [ 1 ] ] ) best_filter = single_filter [ this_mode ] [ refs [ 0 ] ] ;\n }\n }\n if ( this_mode == NEWMV ) {\n int rate_mv ;\n if ( is_comp_pred ) {\n frame_mv [ refs [ 0 ] ] . as_int = single_newmv [ refs [ 0 ] ] . as_int ;\n frame_mv [ refs [ 1 ] ] . as_int = single_newmv [ refs [ 1 ] ] . as_int ;\n if ( cpi -> sf . comp_inter_joint_search_thresh <= bsize ) {\n joint_motion_search ( cpi , x , bsize , frame_mv , mi_row , mi_col , single_newmv , & rate_mv ) ;\n }\n else {\n rate_mv = vp9_mv_bit_cost ( & frame_mv [ refs [ 0 ] ] . as_mv , & mbmi -> ref_mvs [ refs [ 0 ] ] [ 0 ] . as_mv , x -> nmvjointcost , x -> mvcost , MV_COST_WEIGHT ) ;\n rate_mv += vp9_mv_bit_cost ( & frame_mv [ refs [ 1 ] ] . as_mv , & mbmi -> ref_mvs [ refs [ 1 ] ] [ 0 ] . as_mv , x -> nmvjointcost , x -> mvcost , MV_COST_WEIGHT ) ;\n }\n * rate2 += rate_mv ;\n }\n else {\n int_mv tmp_mv ;\n single_motion_search ( cpi , x , bsize , mi_row , mi_col , & tmp_mv , & rate_mv ) ;\n if ( tmp_mv . as_int == INVALID_MV ) return INT64_MAX ;\n * rate2 += rate_mv ;\n frame_mv [ refs [ 0 ] ] . as_int = xd -> mi [ 0 ] -> bmi [ 0 ] . as_mv [ 0 ] . as_int = tmp_mv . as_int ;\n single_newmv [ refs [ 0 ] ] . as_int = tmp_mv . as_int ;\n }\n }\n for ( i = 0 ;\n i < is_comp_pred + 1 ;\n ++ i ) {\n cur_mv [ i ] = frame_mv [ refs [ i ] ] ;\n if ( this_mode != NEWMV ) clamp_mv2 ( & cur_mv [ i ] . as_mv , xd ) ;\n if ( mv_check_bounds ( x , & cur_mv [ i ] . as_mv ) ) return INT64_MAX ;\n mbmi -> mv [ i ] . as_int = cur_mv [ i ] . as_int ;\n }\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n i ++ ) {\n orig_dst [ i ] = xd -> plane [ i ] . dst . buf ;\n orig_dst_stride [ i ] = xd -> plane [ i ] . dst . stride ;\n }\n * rate2 += cost_mv_ref ( cpi , this_mode , mbmi -> mode_context [ refs [ 0 ] ] ) ;\n if ( RDCOST ( x -> rdmult , x -> rddiv , * rate2 , 0 ) > ref_best_rd && mbmi -> mode != NEARESTMV ) return INT64_MAX ;\n pred_exists = 0 ;\n intpel_mv = ! mv_has_subpel ( & mbmi -> mv [ 0 ] . as_mv ) ;\n if ( is_comp_pred ) intpel_mv &= ! mv_has_subpel ( & mbmi -> mv [ 1 ] . as_mv ) ;\n rd_opt -> mask_filter = 0 ;\n for ( i = 0 ;\n i < SWITCHABLE_FILTER_CONTEXTS ;\n ++ i ) rd_opt -> filter_cache [ i ] = INT64_MAX ;\n if ( cm -> interp_filter != BILINEAR ) {\n if ( x -> source_variance < cpi -> sf . disable_filter_search_var_thresh ) {\n best_filter = EIGHTTAP ;\n }\n else if ( best_filter == SWITCHABLE ) {\n int newbest ;\n int tmp_rate_sum = 0 ;\n int64_t tmp_dist_sum = 0 ;\n for ( i = 0 ;\n i < SWITCHABLE_FILTERS ;\n ++ i ) {\n int j ;\n int64_t rs_rd ;\n mbmi -> interp_filter = i ;\n rs = vp9_get_switchable_rate ( cpi ) ;\n rs_rd = RDCOST ( x -> rdmult , x -> rddiv , rs , 0 ) ;\n if ( i > 0 && intpel_mv ) {\n rd = RDCOST ( x -> rdmult , x -> rddiv , tmp_rate_sum , tmp_dist_sum ) ;\n rd_opt -> filter_cache [ i ] = rd ;\n rd_opt -> filter_cache [ SWITCHABLE_FILTERS ] = MIN ( rd_opt -> filter_cache [ SWITCHABLE_FILTERS ] , rd + rs_rd ) ;\n if ( cm -> interp_filter == SWITCHABLE ) rd += rs_rd ;\n rd_opt -> mask_filter = MAX ( rd_opt -> mask_filter , rd ) ;\n }\n else {\n int rate_sum = 0 ;\n int64_t dist_sum = 0 ;\n if ( i > 0 && cpi -> sf . adaptive_interp_filter_search && ( cpi -> sf . interp_filter_search_mask & ( 1 << i ) ) ) {\n rate_sum = INT_MAX ;\n dist_sum = INT64_MAX ;\n continue ;\n }\n if ( ( cm -> interp_filter == SWITCHABLE && ( ! i || best_needs_copy ) ) || ( cm -> interp_filter != SWITCHABLE && ( cm -> interp_filter == mbmi -> interp_filter || ( i == 0 && intpel_mv ) ) ) ) {\n restore_dst_buf ( xd , orig_dst , orig_dst_stride ) ;\n }\n else {\n for ( j = 0 ;\n j < MAX_MB_PLANE ;\n j ++ ) {\n xd -> plane [ j ] . dst . buf = tmp_buf + j * 64 * 64 ;\n xd -> plane [ j ] . dst . stride = 64 ;\n }\n }\n vp9_build_inter_predictors_sb ( xd , mi_row , mi_col , bsize ) ;\n model_rd_for_sb ( cpi , bsize , x , xd , & rate_sum , & dist_sum ) ;\n rd = RDCOST ( x -> rdmult , x -> rddiv , rate_sum , dist_sum ) ;\n rd_opt -> filter_cache [ i ] = rd ;\n rd_opt -> filter_cache [ SWITCHABLE_FILTERS ] = MIN ( rd_opt -> filter_cache [ SWITCHABLE_FILTERS ] , rd + rs_rd ) ;\n if ( cm -> interp_filter == SWITCHABLE ) rd += rs_rd ;\n rd_opt -> mask_filter = MAX ( rd_opt -> mask_filter , rd ) ;\n if ( i == 0 && intpel_mv ) {\n tmp_rate_sum = rate_sum ;\n tmp_dist_sum = dist_sum ;\n }\n }\n if ( i == 0 && cpi -> sf . use_rd_breakout && ref_best_rd < INT64_MAX ) {\n if ( rd / 2 > ref_best_rd ) {\n restore_dst_buf ( xd , orig_dst , orig_dst_stride ) ;\n return INT64_MAX ;\n }\n }\n newbest = i == 0 || rd < best_rd ;\n if ( newbest ) {\n best_rd = rd ;\n best_filter = mbmi -> interp_filter ;\n if ( cm -> interp_filter == SWITCHABLE && i && ! intpel_mv ) best_needs_copy = ! best_needs_copy ;\n vpx_memcpy ( skip_txfm , x -> skip_txfm , sizeof ( skip_txfm ) ) ;\n vpx_memcpy ( bsse , x -> bsse , sizeof ( bsse ) ) ;\n }\n if ( ( cm -> interp_filter == SWITCHABLE && newbest ) || ( cm -> interp_filter != SWITCHABLE && cm -> interp_filter == mbmi -> interp_filter ) ) {\n pred_exists = 1 ;\n tmp_rd = best_rd ;\n }\n }\n restore_dst_buf ( xd , orig_dst , orig_dst_stride ) ;\n }\n }\n mbmi -> interp_filter = cm -> interp_filter != SWITCHABLE ? cm -> interp_filter : best_filter ;\n rs = cm -> interp_filter == SWITCHABLE ? vp9_get_switchable_rate ( cpi ) : 0 ;\n if ( pred_exists ) {\n if ( best_needs_copy ) {\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n i ++ ) {\n xd -> plane [ i ] . dst . buf = tmp_buf + i * 64 * 64 ;\n xd -> plane [ i ] . dst . stride = 64 ;\n }\n }\n rd = tmp_rd + RDCOST ( x -> rdmult , x -> rddiv , rs , 0 ) ;\n }\n else {\n int tmp_rate ;\n int64_t tmp_dist ;\n vp9_build_inter_predictors_sb ( xd , mi_row , mi_col , bsize ) ;\n model_rd_for_sb ( cpi , bsize , x , xd , & tmp_rate , & tmp_dist ) ;\n rd = RDCOST ( x -> rdmult , x -> rddiv , rs + tmp_rate , tmp_dist ) ;\n vpx_memcpy ( skip_txfm , x -> skip_txfm , sizeof ( skip_txfm ) ) ;\n vpx_memcpy ( bsse , x -> bsse , sizeof ( bsse ) ) ;\n }\n if ( ! is_comp_pred ) single_filter [ this_mode ] [ refs [ 0 ] ] = mbmi -> interp_filter ;\n if ( cpi -> sf . adaptive_mode_search ) if ( is_comp_pred ) if ( single_skippable [ this_mode ] [ refs [ 0 ] ] && single_skippable [ this_mode ] [ refs [ 1 ] ] ) vpx_memset ( skip_txfm , 1 , sizeof ( skip_txfm ) ) ;\n if ( cpi -> sf . use_rd_breakout && ref_best_rd < INT64_MAX ) {\n if ( rd / 2 > ref_best_rd ) {\n restore_dst_buf ( xd , orig_dst , orig_dst_stride ) ;\n return INT64_MAX ;\n }\n }\n if ( cm -> interp_filter == SWITCHABLE ) * rate2 += rs ;\n if ( ! is_comp_pred ) {\n if ( cpi -> allow_encode_breakout ) rd_encode_breakout_test ( cpi , x , bsize , rate2 , distortion , distortion_uv , disable_skip ) ;\n }\n vpx_memcpy ( x -> skip_txfm , skip_txfm , sizeof ( skip_txfm ) ) ;\n vpx_memcpy ( x -> bsse , bsse , sizeof ( bsse ) ) ;\n if ( ! x -> skip ) {\n int skippable_y , skippable_uv ;\n int64_t sseuv = INT64_MAX ;\n int64_t rdcosty = INT64_MAX ;\n vp9_subtract_plane ( x , bsize , 0 ) ;\n super_block_yrd ( cpi , x , rate_y , distortion_y , & skippable_y , psse , bsize , txfm_cache , ref_best_rd ) ;\n if ( * rate_y == INT_MAX ) {\n * rate2 = INT_MAX ;\n * distortion = INT64_MAX ;\n restore_dst_buf ( xd , orig_dst , orig_dst_stride ) ;\n return INT64_MAX ;\n }\n * rate2 += * rate_y ;\n * distortion += * distortion_y ;\n rdcosty = RDCOST ( x -> rdmult , x -> rddiv , * rate2 , * distortion ) ;\n rdcosty = MIN ( rdcosty , RDCOST ( x -> rdmult , x -> rddiv , 0 , * psse ) ) ;\n super_block_uvrd ( cpi , x , rate_uv , distortion_uv , & skippable_uv , & sseuv , bsize , ref_best_rd - rdcosty ) ;\n if ( * rate_uv == INT_MAX ) {\n * rate2 = INT_MAX ;\n * distortion = INT64_MAX ;\n restore_dst_buf ( xd , orig_dst , orig_dst_stride ) ;\n return INT64_MAX ;\n }\n * psse += sseuv ;\n * rate2 += * rate_uv ;\n * distortion += * distortion_uv ;\n * skippable = skippable_y && skippable_uv ;\n }\n if ( ! is_comp_pred ) single_skippable [ this_mode ] [ refs [ 0 ] ] = * skippable ;\n restore_dst_buf ( xd , orig_dst , orig_dst_stride ) ;\n return this_rd ;\n }"}
{"idx": 16629, "target": 0, "func": "static void usb_ehci_pci_reset ( DeviceState * dev ) {\n PCIDevice * pci_dev = PCI_DEVICE ( dev ) ;\n EHCIPCIState * i = PCI_EHCI ( pci_dev ) ;\n EHCIState * s = & i -> ehci ;\n ehci_reset ( s ) ;\n }"}
{"idx": 16630, "target": 0, "func": "MV32 vp9_scale_mv ( const MV * mv , int x , int y , const struct scale_factors * sf ) {\n const int x_off_q4 = scaled_x ( x << SUBPEL_BITS , sf ) & SUBPEL_MASK ;\n const int y_off_q4 = scaled_y ( y << SUBPEL_BITS , sf ) & SUBPEL_MASK ;\n const MV32 res = {\n scaled_y ( mv -> row , sf ) + y_off_q4 , scaled_x ( mv -> col , sf ) + x_off_q4 }\n ;\n return res ;\n }"}
{"idx": 16631, "target": 0, "func": "static void dtls1_clear_queues ( SSL * s ) {\n dtls1_clear_received_buffer ( s ) ;\n dtls1_clear_sent_buffer ( s ) ;\n }"}
{"idx": 16632, "target": 0, "func": "static int dissect_h225_SEQUENCE_OF_Endpoint ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_SEQUENCE_OF_Endpoint , SEQUENCE_OF_Endpoint_sequence_of ) ;\n return offset ;\n }"}
{"idx": 16633, "target": 0, "func": "static int dissect_pvfs2_mgmt_dspace_info ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n offset = dissect_pvfs2_error ( tvb , tree , offset , pinfo ) ;\n offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"handle\" , NULL ) ;\n offset = dissect_pvfs2_ds_type ( tvb , tree , offset , NULL ) ;\n offset = dissect_pvfs_uint64 ( tvb , tree , offset , hf_pvfs_b_size , NULL ) ;\n offset = dissect_pvfs_uint64 ( tvb , tree , offset , hf_pvfs_k_size , NULL ) ;\n offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"handle\" , NULL ) ;\n return offset ;\n }"}
{"idx": 16634, "target": 0, "func": "int test_gf2m_mod_div ( BIO * bp , BN_CTX * ctx ) {\n BIGNUM * a , * b [ 2 ] , * c , * d , * e , * f ;\n int i , j , ret = 0 ;\n int p0 [ ] = {\n 163 , 7 , 6 , 3 , 0 , - 1 }\n ;\n int p1 [ ] = {\n 193 , 15 , 0 , - 1 }\n ;\n a = BN_new ( ) ;\n b [ 0 ] = BN_new ( ) ;\n b [ 1 ] = BN_new ( ) ;\n c = BN_new ( ) ;\n d = BN_new ( ) ;\n e = BN_new ( ) ;\n f = BN_new ( ) ;\n BN_GF2m_arr2poly ( p0 , b [ 0 ] ) ;\n BN_GF2m_arr2poly ( p1 , b [ 1 ] ) ;\n for ( i = 0 ;\n i < num0 ;\n i ++ ) {\n BN_bntest_rand ( a , 512 , 0 , 0 ) ;\n BN_bntest_rand ( c , 512 , 0 , 0 ) ;\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n BN_GF2m_mod_div ( d , a , c , b [ j ] , ctx ) ;\n BN_GF2m_mod_mul ( e , d , c , b [ j ] , ctx ) ;\n BN_GF2m_mod_div ( f , a , e , b [ j ] , ctx ) ;\n # if 0 if ( bp != NULL ) {\n if ( ! results ) {\n BN_print ( bp , a ) ;\n BIO_puts ( bp , \" = \" ) ;\n BN_print ( bp , c ) ;\n BIO_puts ( bp , \" * \" ) ;\n BN_print ( bp , d ) ;\n BIO_puts ( bp , \" % \" ) ;\n BN_print ( bp , b [ j ] ) ;\n BIO_puts ( bp , \"\\n\" ) ;\n }\n }\n # endif if ( ! BN_is_one ( f ) ) {\n fprintf ( stderr , \"GF(2^m) modular division test failed!\\n\" ) ;\n goto err ;\n }\n }\n }\n ret = 1 ;\n err : BN_free ( a ) ;\n BN_free ( b [ 0 ] ) ;\n BN_free ( b [ 1 ] ) ;\n BN_free ( c ) ;\n BN_free ( d ) ;\n BN_free ( e ) ;\n BN_free ( f ) ;\n return ret ;\n }"}
{"idx": 16635, "target": 0, "func": "static void net_slirp_cleanup ( NetClientState * nc ) {\n SlirpState * s = DO_UPCAST ( SlirpState , nc , nc ) ;\n slirp_cleanup ( s -> slirp ) ;\n slirp_smb_cleanup ( s ) ;\n QTAILQ_REMOVE ( & slirp_stacks , s , entry ) ;\n }"}
{"idx": 16636, "target": 0, "func": "TSReturnCode TSMBufferDestroy ( TSMBuffer bufp ) {\n if ( ! isWriteable ( bufp ) ) {\n return TS_ERROR ;\n }\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n HdrHeapSDKHandle * sdk_heap = ( HdrHeapSDKHandle * ) bufp ;\n sdk_heap -> m_heap -> destroy ( ) ;\n delete sdk_heap ;\n return TS_SUCCESS ;\n }"}
{"idx": 16637, "target": 0, "func": "int tm_notify ( int tm_signal ) {\n if ( ! init_done ) return TM_BADINIT ;\n return TM_ENOTIMPLEMENTED ;\n }"}
{"idx": 16638, "target": 0, "func": "static VirtIOBalloon * to_virtio_balloon ( VirtIODevice * vdev ) {\n return ( VirtIOBalloon * ) vdev ;\n }"}
{"idx": 16639, "target": 0, "func": "static int dissect_diameter_vendor_id ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , void * data _U_ ) {\n int offset = 0 ;\n proto_tree_add_item ( tree , hf_diameter_vendor_id , tvb , 0 , 4 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n return offset ;\n }"}
{"idx": 16640, "target": 0, "func": "static void restore_toc_entries_prefork ( ArchiveHandle * AH ) {\n bool skipped_some ;\n TocEntry * next_work_item ;\n ahlog ( AH , 2 , \"entering restore_toc_entries_prefork\\n\" ) ;\n fix_dependencies ( AH ) ;\n skipped_some = false ;\n for ( next_work_item = AH -> toc -> next ;\n next_work_item != AH -> toc ;\n next_work_item = next_work_item -> next ) {\n if ( next_work_item -> section != SECTION_PRE_DATA ) {\n if ( next_work_item -> section == SECTION_DATA || next_work_item -> section == SECTION_POST_DATA ) {\n skipped_some = true ;\n continue ;\n }\n else {\n if ( skipped_some ) continue ;\n }\n }\n ahlog ( AH , 1 , \"processing item %d %s %s\\n\" , next_work_item -> dumpId , next_work_item -> desc , next_work_item -> tag ) ;\n ( void ) restore_toc_entry ( AH , next_work_item , false ) ;\n reduce_dependencies ( AH , next_work_item , NULL ) ;\n }\n DisconnectDatabase ( & AH -> public ) ;\n if ( AH -> currUser ) free ( AH -> currUser ) ;\n AH -> currUser = NULL ;\n if ( AH -> currSchema ) free ( AH -> currSchema ) ;\n AH -> currSchema = NULL ;\n if ( AH -> currTablespace ) free ( AH -> currTablespace ) ;\n AH -> currTablespace = NULL ;\n AH -> currWithOids = - 1 ;\n }"}
{"idx": 16641, "target": 0, "func": "static int dissect_h245_MiscellaneousCommand ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MiscellaneousCommand , MiscellaneousCommand_sequence ) ;\n return offset ;\n }"}
{"idx": 16642, "target": 0, "func": "static void setup_tile_info ( VP9_COMMON * cm , struct vp9_read_bit_buffer * rb ) {\n int min_log2_tile_cols , max_log2_tile_cols , max_ones ;\n vp9_get_tile_n_bits ( cm -> mi_cols , & min_log2_tile_cols , & max_log2_tile_cols ) ;\n max_ones = max_log2_tile_cols - min_log2_tile_cols ;\n cm -> log2_tile_cols = min_log2_tile_cols ;\n while ( max_ones -- && vp9_rb_read_bit ( rb ) ) cm -> log2_tile_cols ++ ;\n if ( cm -> log2_tile_cols > 6 ) vpx_internal_error ( & cm -> error , VPX_CODEC_CORRUPT_FRAME , \"Invalid number of tile columns\" ) ;\n cm -> log2_tile_rows = vp9_rb_read_bit ( rb ) ;\n if ( cm -> log2_tile_rows ) cm -> log2_tile_rows += vp9_rb_read_bit ( rb ) ;\n }"}
{"idx": 16643, "target": 0, "func": "static void abort_sasl ( struct Client * data ) {\n if ( data -> localClient -> sasl_out == 0 || data -> localClient -> sasl_complete ) return ;\n data -> localClient -> sasl_out = data -> localClient -> sasl_complete = 0 ;\n ServerStats . is_sbad ++ ;\n if ( ! IsClosing ( data ) ) sendto_one ( data , form_str ( ERR_SASLABORTED ) , me . name , EmptyString ( data -> name ) ? \"*\" : data -> name ) ;\n if ( * data -> localClient -> sasl_agent ) {\n struct Client * agent_p = find_id ( data -> localClient -> sasl_agent ) ;\n if ( agent_p ) {\n sendto_one ( agent_p , \":%s ENCAP %s SASL %s %s D A\" , me . id , agent_p -> servptr -> name , data -> id , agent_p -> id ) ;\n return ;\n }\n }\n sendto_server ( NULL , NULL , CAP_TS6 | CAP_ENCAP , NOCAPS , \":%s ENCAP * SASL %s * D A\" , me . id , data -> id ) ;\n }"}
{"idx": 16644, "target": 0, "func": "static TocEntry * get_next_work_item ( ArchiveHandle * AH , TocEntry * ready_list , ParallelState * pstate ) {\n bool pref_non_data = false ;\n TocEntry * data_te = NULL ;\n TocEntry * te ;\n int i , k ;\n if ( pref_non_data ) {\n int count = 0 ;\n for ( k = 0 ;\n k < pstate -> numWorkers ;\n k ++ ) if ( pstate -> parallelSlot [ k ] . args -> te != NULL && pstate -> parallelSlot [ k ] . args -> te -> section == SECTION_DATA ) count ++ ;\n if ( pstate -> numWorkers == 0 || count * 4 < pstate -> numWorkers ) pref_non_data = false ;\n }\n for ( te = ready_list -> par_next ;\n te != ready_list ;\n te = te -> par_next ) {\n bool conflicts = false ;\n for ( i = 0 ;\n i < pstate -> numWorkers && ! conflicts ;\n i ++ ) {\n TocEntry * running_te ;\n if ( pstate -> parallelSlot [ i ] . workerStatus != WRKR_WORKING ) continue ;\n running_te = pstate -> parallelSlot [ i ] . args -> te ;\n if ( has_lock_conflicts ( te , running_te ) || has_lock_conflicts ( running_te , te ) ) {\n conflicts = true ;\n break ;\n }\n }\n if ( conflicts ) continue ;\n if ( pref_non_data && te -> section == SECTION_DATA ) {\n if ( data_te == NULL ) data_te = te ;\n continue ;\n }\n return te ;\n }\n if ( data_te != NULL ) return data_te ;\n ahlog ( AH , 2 , \"no item ready\\n\" ) ;\n return NULL ;\n }"}
{"idx": 16645, "target": 0, "func": "int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL ) DECLARE_PEM_rw ( PKCS7 , PKCS7 ) DECLARE_PEM_rw ( NETSCAPE_CERT_SEQUENCE , NETSCAPE_CERT_SEQUENCE ) DECLARE_PEM_rw ( PKCS8 , X509_SIG ) DECLARE_PEM_rw ( PKCS8_PRIV_KEY_INFO , PKCS8_PRIV_KEY_INFO ) # ifndef OPENSSL_NO_RSA DECLARE_PEM_rw_cb ( RSAPrivateKey , RSA ) DECLARE_PEM_rw_const ( RSAPublicKey , RSA ) DECLARE_PEM_rw ( RSA_PUBKEY , RSA ) # endif # ifndef OPENSSL_NO_DSA DECLARE_PEM_rw_cb ( DSAPrivateKey , DSA ) DECLARE_PEM_rw ( DSA_PUBKEY , DSA ) DECLARE_PEM_rw_const ( DSAparams , DSA ) # endif # ifndef OPENSSL_NO_EC DECLARE_PEM_rw_const ( ECPKParameters , EC_GROUP ) DECLARE_PEM_rw_cb ( ECPrivateKey , EC_KEY ) DECLARE_PEM_rw ( EC_PUBKEY , EC_KEY )"}
{"idx": 16646, "target": 1, "func": "void vp9_fdct32x32_1_c ( const int16_t * input , int16_t * output , int stride ) {\n int r , c ;\n int16_t sum = 0 ;\n for ( r = 0 ;\n r < 32 ;\n ++ r ) for ( c = 0 ;\n c < 32 ;\n ++ c ) sum += input [ r * stride + c ] ;\n output [ 0 ] = sum >> 3 ;\n output [ 1 ] = 0 ;\n }"}
{"idx": 16647, "target": 0, "func": "static void pdf_run_Q ( fz_context * ctx , pdf_processor * proc ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_grestore ( ctx , pr ) ;\n }"}
{"idx": 16648, "target": 0, "func": "void new_register_ber_syntax_dissector ( const char * syntax , int proto , new_dissector_t dissector ) {\n dissector_handle_t dissector_handle ;\n dissector_handle = new_create_dissector_handle ( dissector , proto ) ;\n dissector_add_string ( \"ber.syntax\" , syntax , dissector_handle ) ;\n }"}
{"idx": 16649, "target": 0, "func": "static struct archive_wstring * archive_wstring_append ( struct archive_wstring * as , const wchar_t * p , size_t s ) {\n if ( archive_wstring_ensure ( as , as -> length + s + 1 ) == NULL ) return ( NULL ) ;\n wmemmove ( as -> s + as -> length , p , s ) ;\n as -> length += s ;\n as -> s [ as -> length ] = 0 ;\n return ( as ) ;\n }"}
{"idx": 16650, "target": 1, "func": "static int mpeg_field_start ( MpegEncContext * s , const uint8_t * buf , int buf_size ) {\n AVCodecContext * avctx = s -> avctx ;\n Mpeg1Context * s1 = ( Mpeg1Context * ) s ;\n if ( s -> first_field || s -> picture_structure == PICT_FRAME ) {\n if ( ff_MPV_frame_start ( s , avctx ) < 0 ) return - 1 ;\n ff_mpeg_er_frame_start ( s ) ;\n s -> current_picture_ptr -> f . repeat_pict = 0 ;\n if ( s -> repeat_first_field ) {\n if ( s -> progressive_sequence ) {\n if ( s -> top_field_first ) s -> current_picture_ptr -> f . repeat_pict = 4 ;\n else s -> current_picture_ptr -> f . repeat_pict = 2 ;\n }\n else if ( s -> progressive_frame ) {\n s -> current_picture_ptr -> f . repeat_pict = 1 ;\n }\n }\n * s -> current_picture_ptr -> f . pan_scan = s1 -> pan_scan ;\n if ( HAVE_THREADS && ( avctx -> active_thread_type & FF_THREAD_FRAME ) ) ff_thread_finish_setup ( avctx ) ;\n }\n else {\n int i ;\n if ( ! s -> current_picture_ptr ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"first field missing\\n\" ) ;\n return - 1 ;\n }\n if ( s -> avctx -> hwaccel && ( s -> avctx -> slice_flags & SLICE_FLAG_ALLOW_FIELD ) ) {\n if ( s -> avctx -> hwaccel -> end_frame ( s -> avctx ) < 0 ) av_log ( avctx , AV_LOG_ERROR , \"hardware accelerator failed to decode first field\\n\" ) ;\n }\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n s -> current_picture . f . data [ i ] = s -> current_picture_ptr -> f . data [ i ] ;\n if ( s -> picture_structure == PICT_BOTTOM_FIELD ) {\n s -> current_picture . f . data [ i ] += s -> current_picture_ptr -> f . linesize [ i ] ;\n }\n }\n }\n if ( avctx -> hwaccel ) {\n if ( avctx -> hwaccel -> start_frame ( avctx , buf , buf_size ) < 0 ) return - 1 ;\n }\n if ( CONFIG_MPEG_XVMC_DECODER && s -> avctx -> xvmc_acceleration ) if ( ff_xvmc_field_start ( s , avctx ) < 0 ) return - 1 ;\n return 0 ;\n }"}
{"idx": 16651, "target": 0, "func": "static KeydbResourceType rt_from_file ( const char * filename , int * r_found , int * r_openpgp ) {\n u32 magic ;\n unsigned char verbuf [ 4 ] ;\n FILE * fp ;\n KeydbResourceType rt = KEYDB_RESOURCE_TYPE_NONE ;\n * r_found = * r_openpgp = 0 ;\n fp = fopen ( filename , \"rb\" ) ;\n if ( fp ) {\n * r_found = 1 ;\n if ( fread ( & magic , 4 , 1 , fp ) == 1 ) {\n if ( magic == 0x13579ace || magic == 0xce9a5713 ) ;\n else if ( fread ( & verbuf , 4 , 1 , fp ) == 1 && verbuf [ 0 ] == 1 && fread ( & magic , 4 , 1 , fp ) == 1 && ! memcmp ( & magic , \"KBXf\" , 4 ) ) {\n if ( ( verbuf [ 3 ] & 0x02 ) ) * r_openpgp = 1 ;\n rt = KEYDB_RESOURCE_TYPE_KEYBOX ;\n }\n else rt = KEYDB_RESOURCE_TYPE_KEYRING ;\n }\n else rt = KEYDB_RESOURCE_TYPE_KEYRING ;\n fclose ( fp ) ;\n }\n return rt ;\n }"}
{"idx": 16652, "target": 0, "func": "static int process_rec_header2_v145 ( wtap * wth , unsigned char * buffer , guint16 length , gint16 maj_vers , int * err , gchar * * err_info ) {\n if ( length < 5 ) {\n * err = WTAP_ERR_UNSUPPORTED ;\n * err_info = g_strdup ( \"ngsniffer: WAN capture has no network subtype\" ) ;\n return - 1 ;\n }\n switch ( buffer [ 4 ] ) {\n case NET_SDLC : wth -> file_encap = WTAP_ENCAP_SDLC ;\n break ;\n case NET_HDLC : wth -> file_encap = WTAP_ENCAP_PER_PACKET ;\n break ;\n case NET_FRAME_RELAY : wth -> file_encap = WTAP_ENCAP_FRELAY_WITH_PHDR ;\n break ;\n case NET_ROUTER : wth -> file_encap = WTAP_ENCAP_PER_PACKET ;\n switch ( maj_vers ) {\n case 4 : if ( buffer [ 1 ] == 0xfa ) wth -> file_encap = WTAP_ENCAP_ISDN ;\n break ;\n case 5 : if ( length < 7 ) {\n * err = WTAP_ERR_UNSUPPORTED ;\n * err_info = g_strdup ( \"ngsniffer: WAN bridge/router capture has no ISDN flag\" ) ;\n return - 1 ;\n }\n if ( buffer [ 6 ] == 0x01 ) wth -> file_encap = WTAP_ENCAP_ISDN ;\n break ;\n }\n break ;\n case NET_PPP : wth -> file_encap = WTAP_ENCAP_PPP_WITH_PHDR ;\n break ;\n default : * err = WTAP_ERR_UNSUPPORTED ;\n * err_info = g_strdup_printf ( \"ngsniffer: WAN network subtype %u unknown or unsupported\" , buffer [ 4 ] ) ;\n return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 16653, "target": 0, "func": "unsigned int RECORD_LAYER_get_rrec_length ( RECORD_LAYER * rl ) {\n return SSL3_RECORD_get_length ( & rl -> rrec [ 0 ] ) ;\n }"}
{"idx": 16654, "target": 0, "func": "int insert_pointer_name ( reg1 POINTER_ARRAY * pa , char * name ) {\n uint i , length , old_count ;\n uchar * new_pos ;\n const char * * new_array ;\n DBUG_ENTER ( \"insert_pointer_name\" ) ;\n if ( ! pa -> typelib . count ) {\n if ( ! ( pa -> typelib . type_names = ( const char * * ) my_malloc ( ( ( PC_MALLOC - MALLOC_OVERHEAD ) / ( sizeof ( char * ) + sizeof ( * pa -> flag ) ) * ( sizeof ( char * ) + sizeof ( * pa -> flag ) ) ) , MYF ( MY_WME ) ) ) ) DBUG_RETURN ( - 1 ) ;\n if ( ! ( pa -> str = ( uchar * ) my_malloc ( ( uint ) ( PS_MALLOC - MALLOC_OVERHEAD ) , MYF ( MY_WME ) ) ) ) {\n my_free ( pa -> typelib . type_names ) ;\n DBUG_RETURN ( - 1 ) ;\n }\n pa -> max_count = ( PC_MALLOC - MALLOC_OVERHEAD ) / ( sizeof ( uchar * ) + sizeof ( * pa -> flag ) ) ;\n pa -> flag = ( uint8 * ) ( pa -> typelib . type_names + pa -> max_count ) ;\n pa -> length = 0 ;\n pa -> max_length = PS_MALLOC - MALLOC_OVERHEAD ;\n pa -> array_allocs = 1 ;\n }\n length = ( uint ) strlen ( name ) + 1 ;\n if ( pa -> length + length >= pa -> max_length ) {\n if ( ! ( new_pos = ( uchar * ) my_realloc ( ( uchar * ) pa -> str , ( uint ) ( pa -> length + length + PS_MALLOC ) , MYF ( MY_WME ) ) ) ) DBUG_RETURN ( 1 ) ;\n if ( new_pos != pa -> str ) {\n my_ptrdiff_t diff = PTR_BYTE_DIFF ( new_pos , pa -> str ) ;\n for ( i = 0 ;\n i < pa -> typelib . count ;\n i ++ ) pa -> typelib . type_names [ i ] = ADD_TO_PTR ( pa -> typelib . type_names [ i ] , diff , char * ) ;\n pa -> str = new_pos ;\n }\n pa -> max_length = pa -> length + length + PS_MALLOC ;\n }\n if ( pa -> typelib . count >= pa -> max_count - 1 ) {\n int len ;\n pa -> array_allocs ++ ;\n len = ( PC_MALLOC * pa -> array_allocs - MALLOC_OVERHEAD ) ;\n if ( ! ( new_array = ( const char * * ) my_realloc ( ( uchar * ) pa -> typelib . type_names , ( uint ) len / ( sizeof ( uchar * ) + sizeof ( * pa -> flag ) ) * ( sizeof ( uchar * ) + sizeof ( * pa -> flag ) ) , MYF ( MY_WME ) ) ) ) DBUG_RETURN ( 1 ) ;\n pa -> typelib . type_names = new_array ;\n old_count = pa -> max_count ;\n pa -> max_count = len / ( sizeof ( uchar * ) + sizeof ( * pa -> flag ) ) ;\n pa -> flag = ( uint8 * ) ( pa -> typelib . type_names + pa -> max_count ) ;\n memcpy ( ( uchar * ) pa -> flag , ( char * ) ( pa -> typelib . type_names + old_count ) , old_count * sizeof ( * pa -> flag ) ) ;\n }\n pa -> flag [ pa -> typelib . count ] = 0 ;\n pa -> typelib . type_names [ pa -> typelib . count ++ ] = ( char * ) pa -> str + pa -> length ;\n pa -> typelib . type_names [ pa -> typelib . count ] = NullS ;\n ( void ) strmov ( ( char * ) pa -> str + pa -> length , name ) ;\n pa -> length += length ;\n DBUG_RETURN ( 0 ) ;\n }"}
{"idx": 16655, "target": 0, "func": "static void vp3_draw_horiz_band ( Vp3DecodeContext * s , int y ) {\n int h , cy , i ;\n int offset [ AV_NUM_DATA_POINTERS ] ;\n if ( HAVE_THREADS && s -> avctx -> active_thread_type & FF_THREAD_FRAME ) {\n int y_flipped = s -> flipped_image ? s -> avctx -> height - y : y ;\n ff_thread_report_progress ( & s -> current_frame , y_flipped == s -> avctx -> height ? INT_MAX : y_flipped - 1 , 0 ) ;\n }\n if ( s -> avctx -> draw_horiz_band == NULL ) return ;\n h = y - s -> last_slice_end ;\n s -> last_slice_end = y ;\n y -= h ;\n if ( ! s -> flipped_image ) {\n y = s -> avctx -> height - y - h ;\n }\n cy = y >> s -> chroma_y_shift ;\n offset [ 0 ] = s -> current_frame . f -> linesize [ 0 ] * y ;\n offset [ 1 ] = s -> current_frame . f -> linesize [ 1 ] * cy ;\n offset [ 2 ] = s -> current_frame . f -> linesize [ 2 ] * cy ;\n for ( i = 3 ;\n i < AV_NUM_DATA_POINTERS ;\n i ++ ) offset [ i ] = 0 ;\n emms_c ( ) ;\n s -> avctx -> draw_horiz_band ( s -> avctx , s -> current_frame . f , offset , y , 3 , h ) ;\n }"}
{"idx": 16656, "target": 0, "func": "static void decode_power_conf_voltage ( gchar * s , guint32 value ) {\n g_snprintf ( s , ITEM_LABEL_LENGTH , \"%d.%d [V]\" , value / 10 , value % 10 ) ;\n return ;\n }"}
{"idx": 16657, "target": 0, "func": "static struct message_data * find_or_create_message_data ( struct mswsp_ct * conv_data , packet_info * pinfo , guint16 msg_id , gboolean is_request , void * data ) {\n struct message_data to_find ;\n struct message_data * msg_data = NULL ;\n GSList * result = NULL ;\n int * p_smb_level = ( int * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_mswsp , 0 ) ;\n to_find . is_request = is_request ;\n to_find . msg_id = msg_id ;\n to_find . smb_level = * p_smb_level ;\n if ( ! get_fid_and_frame ( pinfo , & to_find . fid , & to_find . frame , data ) || ! conv_data ) {\n return msg_data ;\n }\n result = g_slist_find_custom ( conv_data -> GSL_message_data , & to_find , ( GCompareFunc ) msg_data_find ) ;\n if ( ! result ) {\n msg_data = ( struct message_data * ) wmem_alloc ( wmem_file_scope ( ) , sizeof ( struct message_data ) ) ;\n * msg_data = to_find ;\n conv_data -> GSL_message_data = g_slist_prepend ( conv_data -> GSL_message_data , msg_data ) ;\n }\n else {\n msg_data = ( struct message_data * ) result -> data ;\n }\n return msg_data ;\n }"}
{"idx": 16658, "target": 0, "func": "static inline struct sk_buff * pfkey_xfrm_state2msg_expire ( const struct xfrm_state * x , int hsc ) {\n return __pfkey_xfrm_state2msg ( x , 0 , hsc ) ;\n }"}
{"idx": 16659, "target": 0, "func": "static void test_bug3117 ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND buffer ;\n longlong lii ;\n ulong length ;\n my_bool is_null ;\n int rc ;\n myheader ( \"test_bug3117\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE t1 (id int auto_increment primary key)\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT LAST_INSERT_ID()\" ) ;\n check_stmt ( stmt ) ;\n rc = mysql_query ( mysql , \"INSERT INTO t1 VALUES (NULL)\" ) ;\n myquery ( rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n memset ( & buffer , 0 , sizeof ( buffer ) ) ;\n buffer . buffer_type = MYSQL_TYPE_LONGLONG ;\n buffer . buffer_length = sizeof ( lii ) ;\n buffer . buffer = ( void * ) & lii ;\n buffer . length = & length ;\n buffer . is_null = & is_null ;\n rc = mysql_stmt_bind_result ( stmt , & buffer ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_store_result ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n DIE_UNLESS ( is_null == 0 && lii == 1 ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n\\tLAST_INSERT_ID()= 1 ok\\n\" ) ;\n rc = mysql_query ( mysql , \"INSERT INTO t1 VALUES (NULL)\" ) ;\n myquery ( rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n DIE_UNLESS ( is_null == 0 && lii == 2 ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\tLAST_INSERT_ID()= 2 ok\\n\" ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"DROP TABLE t1\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 16660, "target": 0, "func": "static int xmlrpc_split_buf ( char * buffer , char * * * argv ) {\n int ac = 0 ;\n int argvsize = 8 ;\n char * data , * str ;\n char * nexttag = NULL ;\n char * p ;\n int tagtype = 0 ;\n data = buffer ;\n * argv = smalloc ( sizeof ( char * ) * argvsize ) ;\n while ( ( data = strstr ( data , \"<value>\" ) ) ) {\n data += 7 ;\n nexttag = strchr ( data , '<' ) ;\n if ( nexttag == NULL ) break ;\n nexttag ++ ;\n p = strchr ( nexttag , '>' ) ;\n if ( p == NULL ) break ;\n * p ++ = '\\0' ;\n if ( ! stricmp ( \"string\" , nexttag ) ) tagtype = 1 ;\n else tagtype = 0 ;\n str = p ;\n p = strchr ( str , '<' ) ;\n if ( p == NULL ) break ;\n * p ++ = '\\0' ;\n if ( ac >= argvsize ) {\n argvsize *= 2 ;\n * argv = srealloc ( * argv , sizeof ( char * ) * argvsize ) ;\n }\n if ( tagtype == 1 ) ( * argv ) [ ac ++ ] = xmlrpc_decode_string ( str ) ;\n else ( * argv ) [ ac ++ ] = str ;\n data = p ;\n }\n return ac ;\n }"}
{"idx": 16661, "target": 0, "func": "static int dissect_h245_T_standardOid ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 727 \"../../asn1/h245/h245.cnf\" const gchar * standard_oid_str = NULL ;\n gef_ctx_t * gefx ;\n offset = dissect_per_object_identifier_str ( tvb , offset , actx , tree , hf_index , & standard_oid_str ) ;\n gefx = gef_ctx_get ( actx -> private_data ) ;\n if ( gefx ) gefx -> id = standard_oid_str ;\n if ( strcmp ( standard_oid_str , \"0.0.8.235.0.3.76\" ) == 0 ) {\n if ( upcoming_channel ) upcoming_channel -> srtp_flag = TRUE ;\n }\n if ( ! h245_lc_dissector && strcmp ( standard_oid_str , \"0.0.8.245.1.1.1\" ) == 0 ) h245_lc_dissector = amr_handle ;\n return offset ;\n }"}
{"idx": 16662, "target": 0, "func": "WORK_STATE tls_finish_handshake ( SSL * s , WORK_STATE wst ) {\n void ( * cb ) ( const SSL * ssl , int type , int val ) = NULL ;\n # ifndef OPENSSL_NO_SCTP if ( SSL_IS_DTLS ( s ) && BIO_dgram_is_sctp ( SSL_get_wbio ( s ) ) ) {\n WORK_STATE ret ;\n ret = dtls_wait_for_dry ( s ) ;\n if ( ret != WORK_FINISHED_CONTINUE ) return ret ;\n }\n # endif ssl3_cleanup_key_block ( s ) ;\n if ( ! SSL_IS_DTLS ( s ) ) {\n BUF_MEM_free ( s -> init_buf ) ;\n s -> init_buf = NULL ;\n }\n ssl_free_wbio_buffer ( s ) ;\n s -> init_num = 0 ;\n if ( ! s -> server || s -> renegotiate == 2 ) {\n s -> renegotiate = 0 ;\n s -> new_session = 0 ;\n if ( s -> server ) {\n ssl_update_cache ( s , SSL_SESS_CACHE_SERVER ) ;\n s -> ctx -> stats . sess_accept_good ++ ;\n s -> handshake_func = ossl_statem_accept ;\n }\n else {\n ssl_update_cache ( s , SSL_SESS_CACHE_CLIENT ) ;\n if ( s -> hit ) s -> ctx -> stats . sess_hit ++ ;\n s -> handshake_func = ossl_statem_connect ;\n s -> ctx -> stats . sess_connect_good ++ ;\n }\n if ( s -> info_callback != NULL ) cb = s -> info_callback ;\n else if ( s -> ctx -> info_callback != NULL ) cb = s -> ctx -> info_callback ;\n if ( cb != NULL ) cb ( s , SSL_CB_HANDSHAKE_DONE , 1 ) ;\n if ( SSL_IS_DTLS ( s ) ) {\n s -> d1 -> handshake_read_seq = 0 ;\n s -> d1 -> handshake_write_seq = 0 ;\n s -> d1 -> next_handshake_write_seq = 0 ;\n dtls1_clear_received_buffer ( s ) ;\n }\n }\n return WORK_FINISHED_STOP ;\n }"}
{"idx": 16663, "target": 0, "func": "static int selinux_msg_queue_msgrcv ( struct msg_queue * msq , struct msg_msg * msg , struct task_struct * target , long type , int mode ) {\n struct ipc_security_struct * isec ;\n struct msg_security_struct * msec ;\n struct common_audit_data ad ;\n u32 sid = task_sid ( target ) ;\n int rc ;\n isec = msq -> q_perm . security ;\n msec = msg -> security ;\n ad . type = LSM_AUDIT_DATA_IPC ;\n ad . u . ipc_id = msq -> q_perm . key ;\n rc = avc_has_perm ( sid , isec -> sid , SECCLASS_MSGQ , MSGQ__READ , & ad ) ;\n if ( ! rc ) rc = avc_has_perm ( sid , msec -> sid , SECCLASS_MSG , MSG__RECEIVE , & ad ) ;\n return rc ;\n }"}
{"idx": 16664, "target": 0, "func": "static Picture * find_short ( H264Context * h , int frame_num , int * idx ) {\n int i ;\n for ( i = 0 ;\n i < h -> short_ref_count ;\n i ++ ) {\n Picture * pic = h -> short_ref [ i ] ;\n if ( h -> avctx -> debug & FF_DEBUG_MMCO ) av_log ( h -> avctx , AV_LOG_DEBUG , \"%d %d %p\\n\" , i , pic -> frame_num , pic ) ;\n if ( pic -> frame_num == frame_num ) {\n * idx = i ;\n return pic ;\n }\n }\n return NULL ;\n }"}
{"idx": 16665, "target": 0, "func": "static pdf_gstate * begin_softmask ( fz_context * ctx , pdf_run_processor * pr , softmask_save * save ) {\n pdf_gstate * gstate = pr -> gstate + pr -> gtop ;\n pdf_xobject * softmask = gstate -> softmask ;\n fz_rect mask_bbox ;\n fz_matrix tos_save [ 2 ] , save_ctm ;\n fz_matrix mask_matrix ;\n fz_colorspace * mask_colorspace ;\n save -> softmask = softmask ;\n if ( softmask == NULL ) return gstate ;\n save -> page_resources = gstate -> softmask_resources ;\n save -> ctm = gstate -> softmask_ctm ;\n save_ctm = gstate -> ctm ;\n pdf_xobject_bbox ( ctx , softmask , & mask_bbox ) ;\n pdf_xobject_matrix ( ctx , softmask , & mask_matrix ) ;\n pdf_tos_save ( ctx , & pr -> tos , tos_save ) ;\n if ( gstate -> luminosity ) mask_bbox = fz_infinite_rect ;\n else {\n fz_transform_rect ( & mask_bbox , & mask_matrix ) ;\n fz_transform_rect ( & mask_bbox , & gstate -> softmask_ctm ) ;\n }\n gstate -> softmask = NULL ;\n gstate -> softmask_resources = NULL ;\n gstate -> ctm = gstate -> softmask_ctm ;\n mask_colorspace = pdf_xobject_colorspace ( ctx , softmask ) ;\n if ( gstate -> luminosity && ! mask_colorspace ) mask_colorspace = fz_keep_colorspace ( ctx , fz_device_gray ( ctx ) ) ;\n fz_try ( ctx ) {\n fz_begin_mask ( ctx , pr -> dev , & mask_bbox , gstate -> luminosity , mask_colorspace , gstate -> softmask_bc , & gstate -> fill . color_params ) ;\n pdf_run_xobject ( ctx , pr , softmask , save -> page_resources , & fz_identity , 1 ) ;\n }\n fz_always ( ctx ) fz_drop_colorspace ( ctx , mask_colorspace ) ;\n fz_catch ( ctx ) {\n fz_rethrow_if ( ctx , FZ_ERROR_TRYLATER ) ;\n }\n fz_end_mask ( ctx , pr -> dev ) ;\n pdf_tos_restore ( ctx , & pr -> tos , tos_save ) ;\n gstate = pr -> gstate + pr -> gtop ;\n gstate -> ctm = save_ctm ;\n return gstate ;\n }"}
{"idx": 16666, "target": 1, "func": "bool chal_reply_h ( connection_t * c ) {\n char hishash [ MAX_STRING_SIZE ] ;\n char myhash [ EVP_MAX_MD_SIZE ] ;\n EVP_MD_CTX * ctx ;\n if ( sscanf ( c -> buffer , \"%*d \" MAX_STRING , hishash ) != 1 ) {\n logger ( LOG_ERR , \"Got bad %s from %s (%s)\" , \"CHAL_REPLY\" , c -> name , c -> hostname ) ;\n return false ;\n }\n if ( strlen ( hishash ) != ( size_t ) EVP_MD_size ( c -> outdigest ) * 2 ) {\n logger ( LOG_ERR , \"Possible intruder %s (%s): %s\" , c -> name , c -> hostname , \"wrong challenge reply length\" ) ;\n return false ;\n }\n if ( ! hex2bin ( hishash , hishash , EVP_MD_size ( c -> outdigest ) ) ) {\n logger ( LOG_ERR , \"Got bad %s from %s(%s): %s\" , \"CHAL_REPLY\" , c -> name , c -> hostname , \"invalid hash\" ) ;\n return false ;\n }\n ctx = EVP_MD_CTX_create ( ) ;\n if ( ! ctx ) {\n abort ( ) ;\n }\n if ( ! EVP_DigestInit ( ctx , c -> outdigest ) || ! EVP_DigestUpdate ( ctx , c -> hischallenge , RSA_size ( c -> rsa_key ) ) || ! EVP_DigestFinal ( ctx , ( unsigned char * ) myhash , NULL ) ) {\n EVP_MD_CTX_destroy ( ctx ) ;\n logger ( LOG_ERR , \"Error during calculation of response from %s (%s): %s\" , c -> name , c -> hostname , ERR_error_string ( ERR_get_error ( ) , NULL ) ) ;\n return false ;\n }\n EVP_MD_CTX_destroy ( ctx ) ;\n if ( memcmp ( hishash , myhash , EVP_MD_size ( c -> outdigest ) ) ) {\n logger ( LOG_ERR , \"Possible intruder %s (%s): %s\" , c -> name , c -> hostname , \"wrong challenge reply\" ) ;\n ifdebug ( SCARY_THINGS ) {\n bin2hex ( myhash , hishash , SHA_DIGEST_LENGTH ) ;\n hishash [ SHA_DIGEST_LENGTH * 2 ] = '\\0' ;\n logger ( LOG_DEBUG , \"Expected challenge reply: %s\" , hishash ) ;\n }\n return false ;\n }\n c -> allow_request = ACK ;\n return send_ack ( c ) ;\n }"}
{"idx": 16667, "target": 0, "func": "static int qemuAgentOpenUnix ( const char * monitor , pid_t cpid , bool * inProgress ) {\n struct sockaddr_un addr ;\n int monfd ;\n virTimeBackOffVar timeout ;\n int ret = - 1 ;\n * inProgress = false ;\n if ( ( monfd = socket ( AF_UNIX , SOCK_STREAM , 0 ) ) < 0 ) {\n virReportSystemError ( errno , \"%s\" , _ ( \"failed to create socket\" ) ) ;\n return - 1 ;\n }\n if ( virSetNonBlock ( monfd ) < 0 ) {\n virReportSystemError ( errno , \"%s\" , _ ( \"Unable to put monitor \" \"into non-blocking mode\" ) ) ;\n goto error ;\n }\n if ( virSetCloseExec ( monfd ) < 0 ) {\n virReportSystemError ( errno , \"%s\" , _ ( \"Unable to set monitor \" \"close-on-exec flag\" ) ) ;\n goto error ;\n }\n memset ( & addr , 0 , sizeof ( addr ) ) ;\n addr . sun_family = AF_UNIX ;\n if ( virStrcpyStatic ( addr . sun_path , monitor ) == NULL ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"Agent path %s too big for destination\" ) , monitor ) ;\n goto error ;\n }\n if ( virTimeBackOffStart ( & timeout , 1 , 3 * 1000 ) < 0 ) goto error ;\n while ( virTimeBackOffWait ( & timeout ) ) {\n ret = connect ( monfd , ( struct sockaddr * ) & addr , sizeof ( addr ) ) ;\n if ( ret == 0 ) break ;\n if ( ( errno == ENOENT || errno == ECONNREFUSED ) && virProcessKill ( cpid , 0 ) == 0 ) {\n continue ;\n }\n if ( ( errno == EINPROGRESS ) || ( errno == EAGAIN ) ) {\n VIR_DEBUG ( \"Connection attempt continuing in background\" ) ;\n * inProgress = true ;\n ret = 0 ;\n break ;\n }\n virReportSystemError ( errno , \"%s\" , _ ( \"failed to connect to monitor socket\" ) ) ;\n goto error ;\n }\n if ( ret != 0 ) {\n virReportSystemError ( errno , \"%s\" , _ ( \"monitor socket did not show up\" ) ) ;\n goto error ;\n }\n return monfd ;\n error : VIR_FORCE_CLOSE ( monfd ) ;\n return - 1 ;\n }"}
{"idx": 16668, "target": 0, "func": "static void sapi_uwsgi_register_variables ( zval * track_vars_array TSRMLS_DC ) {\n int i ;\n struct wsgi_request * wsgi_req = ( struct wsgi_request * ) SG ( server_context ) ;\n php_import_environment_variables ( track_vars_array TSRMLS_CC ) ;\n if ( uphp . server_software ) {\n if ( ! uphp . server_software_len ) uphp . server_software_len = strlen ( uphp . server_software ) ;\n php_register_variable_safe ( \"SERVER_SOFTWARE\" , uphp . server_software , uphp . server_software_len , track_vars_array TSRMLS_CC ) ;\n }\n else {\n php_register_variable_safe ( \"SERVER_SOFTWARE\" , \"uWSGI\" , 5 , track_vars_array TSRMLS_CC ) ;\n }\n for ( i = 0 ;\n i < wsgi_req -> var_cnt ;\n i += 2 ) {\n php_register_variable_safe ( estrndup ( wsgi_req -> hvec [ i ] . iov_base , wsgi_req -> hvec [ i ] . iov_len ) , wsgi_req -> hvec [ i + 1 ] . iov_base , wsgi_req -> hvec [ i + 1 ] . iov_len , track_vars_array TSRMLS_CC ) ;\n }\n php_register_variable_safe ( \"PATH_INFO\" , wsgi_req -> path_info , wsgi_req -> path_info_len , track_vars_array TSRMLS_CC ) ;\n if ( wsgi_req -> query_string_len > 0 ) {\n php_register_variable_safe ( \"QUERY_STRING\" , wsgi_req -> query_string , wsgi_req -> query_string_len , track_vars_array TSRMLS_CC ) ;\n }\n php_register_variable_safe ( \"SCRIPT_NAME\" , wsgi_req -> script_name , wsgi_req -> script_name_len , track_vars_array TSRMLS_CC ) ;\n php_register_variable_safe ( \"SCRIPT_FILENAME\" , wsgi_req -> file , wsgi_req -> file_len , track_vars_array TSRMLS_CC ) ;\n php_register_variable_safe ( \"DOCUMENT_ROOT\" , wsgi_req -> document_root , wsgi_req -> document_root_len , track_vars_array TSRMLS_CC ) ;\n if ( wsgi_req -> path_info_len ) {\n char * path_translated = ecalloc ( 1 , wsgi_req -> file_len + wsgi_req -> path_info_len + 1 ) ;\n memcpy ( path_translated , wsgi_req -> file , wsgi_req -> file_len ) ;\n memcpy ( path_translated + wsgi_req -> file_len , wsgi_req -> path_info , wsgi_req -> path_info_len ) ;\n php_register_variable_safe ( \"PATH_TRANSLATED\" , path_translated , wsgi_req -> file_len + wsgi_req -> path_info_len , track_vars_array TSRMLS_CC ) ;\n }\n else {\n php_register_variable_safe ( \"PATH_TRANSLATED\" , \"\" , 0 , track_vars_array TSRMLS_CC ) ;\n }\n php_register_variable_safe ( \"PHP_SELF\" , wsgi_req -> script_name , wsgi_req -> script_name_len , track_vars_array TSRMLS_CC ) ;\n struct uwsgi_string_list * usl = uphp . vars ;\n while ( usl ) {\n char * equal = strchr ( usl -> value , '=' ) ;\n if ( equal ) {\n php_register_variable_safe ( estrndup ( usl -> value , equal - usl -> value ) , equal + 1 , strlen ( equal + 1 ) , track_vars_array TSRMLS_CC ) ;\n }\n usl = usl -> next ;\n }\n }"}
{"idx": 16669, "target": 0, "func": "proto_item * parseDateTime ( proto_tree * tree , tvbuff_t * tvb , packet_info * pinfo _U_ , gint * pOffset , int hfIndex ) {\n proto_item * item = NULL ;\n * pOffset = dissect_nt_64bit_time_ex ( tvb , tree , * pOffset , hfIndex , & item , FALSE ) ;\n return item ;\n }"}
{"idx": 16670, "target": 0, "func": "static inline const guint8 * get_stringzpad_value ( wmem_allocator_t * scope , tvbuff_t * tvb , gint start , gint length , gint * ret_length , const guint encoding ) {\n if ( length == - 1 ) {\n length = tvb_ensure_captured_length_remaining ( tvb , start ) ;\n }\n * ret_length = length ;\n return tvb_get_string_enc ( scope , tvb , start , length , encoding ) ;\n }"}
{"idx": 16671, "target": 1, "func": "static void alloc_limit_failure ( char * fn_name , size_t size ) {\n fprintf ( stderr , \"%s: Maximum allocation size exceeded \" \"(maxsize = %lu;\n size = %lu).\\n\" , fn_name , ( unsigned long ) alloc_limit , ( unsigned long ) size ) ;\n }"}
{"idx": 16672, "target": 0, "func": "void vp9_update_layer_context_change_config ( VP9_COMP * const cpi , const int target_bandwidth ) {\n SVC * const svc = & cpi -> svc ;\n const VP9EncoderConfig * const oxcf = & cpi -> oxcf ;\n const RATE_CONTROL * const rc = & cpi -> rc ;\n int layer ;\n int layer_end ;\n float bitrate_alloc = 1.0 ;\n if ( svc -> number_temporal_layers > 1 && cpi -> oxcf . rc_mode == VPX_CBR ) {\n layer_end = svc -> number_temporal_layers ;\n }\n else {\n layer_end = svc -> number_spatial_layers ;\n }\n for ( layer = 0 ;\n layer < layer_end ;\n ++ layer ) {\n LAYER_CONTEXT * const lc = & svc -> layer_context [ layer ] ;\n RATE_CONTROL * const lrc = & lc -> rc ;\n if ( svc -> number_temporal_layers > 1 && cpi -> oxcf . rc_mode == VPX_CBR ) {\n lc -> target_bandwidth = oxcf -> ts_target_bitrate [ layer ] ;\n }\n else {\n lc -> target_bandwidth = oxcf -> ss_target_bitrate [ layer ] ;\n }\n bitrate_alloc = ( float ) lc -> target_bandwidth / target_bandwidth ;\n lrc -> starting_buffer_level = ( int64_t ) ( rc -> starting_buffer_level * bitrate_alloc ) ;\n lrc -> optimal_buffer_level = ( int64_t ) ( rc -> optimal_buffer_level * bitrate_alloc ) ;\n lrc -> maximum_buffer_size = ( int64_t ) ( rc -> maximum_buffer_size * bitrate_alloc ) ;\n lrc -> bits_off_target = MIN ( lrc -> bits_off_target , lrc -> maximum_buffer_size ) ;\n lrc -> buffer_level = MIN ( lrc -> buffer_level , lrc -> maximum_buffer_size ) ;\n if ( svc -> number_temporal_layers > 1 && cpi -> oxcf . rc_mode == VPX_CBR ) {\n lc -> framerate = cpi -> framerate / oxcf -> ts_rate_decimator [ layer ] ;\n }\n else {\n lc -> framerate = cpi -> framerate ;\n }\n lrc -> avg_frame_bandwidth = ( int ) ( lc -> target_bandwidth / lc -> framerate ) ;\n lrc -> max_frame_bandwidth = rc -> max_frame_bandwidth ;\n lrc -> worst_quality = rc -> worst_quality ;\n lrc -> best_quality = rc -> best_quality ;\n }\n }"}
{"idx": 16673, "target": 0, "func": "static void gen_vector_table16 ( TrueMotion1Context * s , const uint8_t * sel_vector_table ) {\n int len , i , j ;\n unsigned char delta_pair ;\n for ( i = 0 ;\n i < 1024 ;\n i += 4 ) {\n len = * sel_vector_table ++ / 2 ;\n for ( j = 0 ;\n j < len ;\n j ++ ) {\n delta_pair = * sel_vector_table ++ ;\n s -> y_predictor_table [ i + j ] = 0xfffffffe & make_ydt16_entry ( delta_pair >> 4 , delta_pair & 0xf , s -> ydt ) ;\n s -> c_predictor_table [ i + j ] = 0xfffffffe & make_cdt16_entry ( delta_pair >> 4 , delta_pair & 0xf , s -> cdt ) ;\n }\n s -> y_predictor_table [ i + ( j - 1 ) ] |= 1 ;\n s -> c_predictor_table [ i + ( j - 1 ) ] |= 1 ;\n }\n }"}
{"idx": 16674, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n const uint8_t * buf_end = avpkt -> data + avpkt -> size ;\n int buf_size = avpkt -> size ;\n DPXContext * const s = avctx -> priv_data ;\n AVFrame * picture = data ;\n AVFrame * const p = & s -> picture ;\n uint8_t * ptr ;\n unsigned int offset ;\n int magic_num , endian ;\n int x , y , ret ;\n int w , h , stride , bits_per_color , descriptor , elements , target_packet_size , source_packet_size ;\n unsigned int rgbBuffer ;\n if ( avpkt -> size <= 1634 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Packet too small for DPX header\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n magic_num = AV_RB32 ( buf ) ;\n buf += 4 ;\n if ( magic_num == AV_RL32 ( \"SDPX\" ) ) {\n endian = 0 ;\n }\n else if ( magic_num == AV_RB32 ( \"SDPX\" ) ) {\n endian = 1 ;\n }\n else {\n av_log ( avctx , AV_LOG_ERROR , \"DPX marker not found\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n offset = read32 ( & buf , endian ) ;\n if ( avpkt -> size <= offset ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid data start offset\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n buf = avpkt -> data + 0x304 ;\n w = read32 ( & buf , endian ) ;\n h = read32 ( & buf , endian ) ;\n buf += 20 ;\n descriptor = buf [ 0 ] ;\n buf += 3 ;\n avctx -> bits_per_raw_sample = bits_per_color = buf [ 0 ] ;\n buf += 825 ;\n avctx -> sample_aspect_ratio . num = read32 ( & buf , endian ) ;\n avctx -> sample_aspect_ratio . den = read32 ( & buf , endian ) ;\n switch ( descriptor ) {\n case 51 : elements = 4 ;\n break ;\n case 50 : elements = 3 ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"Unsupported descriptor %d\\n\" , descriptor ) ;\n return AVERROR_INVALIDDATA ;\n }\n switch ( bits_per_color ) {\n case 8 : if ( elements == 4 ) {\n avctx -> pix_fmt = AV_PIX_FMT_RGBA ;\n }\n else {\n avctx -> pix_fmt = AV_PIX_FMT_RGB24 ;\n }\n source_packet_size = elements ;\n target_packet_size = elements ;\n break ;\n case 10 : avctx -> pix_fmt = AV_PIX_FMT_RGB48 ;\n target_packet_size = 6 ;\n source_packet_size = 4 ;\n break ;\n case 12 : case 16 : if ( endian ) {\n avctx -> pix_fmt = AV_PIX_FMT_RGB48BE ;\n }\n else {\n avctx -> pix_fmt = AV_PIX_FMT_RGB48LE ;\n }\n target_packet_size = 6 ;\n source_packet_size = elements * 2 ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"Unsupported color depth : %d\\n\" , bits_per_color ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( s -> picture . data [ 0 ] ) avctx -> release_buffer ( avctx , & s -> picture ) ;\n if ( ( ret = av_image_check_size ( w , h , 0 , avctx ) ) < 0 ) return ret ;\n if ( w != avctx -> width || h != avctx -> height ) avcodec_set_dimensions ( avctx , w , h ) ;\n if ( ( ret = ff_get_buffer ( avctx , p ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n buf = avpkt -> data + offset ;\n ptr = p -> data [ 0 ] ;\n stride = p -> linesize [ 0 ] ;\n if ( source_packet_size * avctx -> width * avctx -> height > buf_end - buf ) {\n av_log ( avctx , AV_LOG_ERROR , \"Overread buffer. Invalid header?\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n switch ( bits_per_color ) {\n case 10 : for ( x = 0 ;\n x < avctx -> height ;\n x ++ ) {\n uint16_t * dst = ( uint16_t * ) ptr ;\n for ( y = 0 ;\n y < avctx -> width ;\n y ++ ) {\n rgbBuffer = read32 ( & buf , endian ) ;\n * dst ++ = make_16bit ( rgbBuffer >> 16 ) ;\n * dst ++ = make_16bit ( rgbBuffer >> 6 ) ;\n * dst ++ = make_16bit ( rgbBuffer << 4 ) ;\n }\n ptr += stride ;\n }\n break ;\n case 8 : case 12 : case 16 : if ( source_packet_size == target_packet_size ) {\n for ( x = 0 ;\n x < avctx -> height ;\n x ++ ) {\n memcpy ( ptr , buf , target_packet_size * avctx -> width ) ;\n ptr += stride ;\n buf += source_packet_size * avctx -> width ;\n }\n }\n else {\n for ( x = 0 ;\n x < avctx -> height ;\n x ++ ) {\n uint8_t * dst = ptr ;\n for ( y = 0 ;\n y < avctx -> width ;\n y ++ ) {\n memcpy ( dst , buf , target_packet_size ) ;\n dst += target_packet_size ;\n buf += source_packet_size ;\n }\n ptr += stride ;\n }\n }\n break ;\n }\n * picture = s -> picture ;\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 16675, "target": 0, "func": "int dissect_ber_constrained_bitstring ( gboolean implicit_tag , asn1_ctx_t * actx , proto_tree * parent_tree , tvbuff_t * tvb , int offset , gint32 min_len , gint32 max_len , const asn_namedbit * named_bits , gint hf_id , gint ett_id , tvbuff_t * * out_tvb ) {\n gint8 ber_class ;\n gboolean pc , ind ;\n gint32 tag ;\n guint32 len , byteno ;\n guint8 pad = 0 , b0 , b1 , val , * bitstring ;\n int end_offset ;\n int hoffset ;\n proto_item * item = NULL ;\n proto_item * cause ;\n proto_tree * tree = NULL ;\n const char * sep ;\n gboolean term ;\n const asn_namedbit * nb ;\n if ( ! implicit_tag ) {\n hoffset = offset ;\n offset = dissect_ber_identifier ( actx -> pinfo , parent_tree , tvb , offset , & ber_class , & pc , & tag ) ;\n offset = dissect_ber_length ( actx -> pinfo , parent_tree , tvb , offset , & len , & ind ) ;\n end_offset = offset + len ;\n if ( ! implicit_tag && ( ber_class != BER_CLASS_APP ) ) {\n if ( ( ber_class != BER_CLASS_UNI ) || ( tag != BER_UNI_TAG_BITSTRING ) ) {\n tvb_ensure_bytes_exist ( tvb , hoffset , 2 ) ;\n cause = proto_tree_add_string_format_value ( parent_tree , hf_ber_error , tvb , offset , len , \"bitstring_expected\" , \"BitString expected but class:%s(%d) %s tag:%d was unexpected\" , val_to_str_const ( ber_class , ber_class_codes , \"Unknown\" ) , ber_class , pc ? ber_pc_codes_short . true_string : ber_pc_codes_short . false_string , tag ) ;\n expert_add_info ( actx -> pinfo , cause , & ei_ber_expected_bitstring ) ;\n if ( decode_unexpected ) {\n proto_tree * unknown_tree = proto_item_add_subtree ( cause , ett_ber_unknown ) ;\n dissect_unknown_ber ( actx -> pinfo , tvb , hoffset , unknown_tree ) ;\n }\n return end_offset ;\n }\n }\n }\n else {\n pc = 0 ;\n len = tvb_reported_length_remaining ( tvb , offset ) ;\n end_offset = offset + len ;\n }\n actx -> created_item = NULL ;\n if ( pc ) {\n }\n else {\n pad = tvb_get_guint8 ( tvb , offset ) ;\n if ( ( pad == 0 ) && ( len == 1 ) ) {\n proto_tree_add_item ( parent_tree , hf_ber_bitstring_empty , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n }\n else {\n proto_item * pad_item = proto_tree_add_item ( parent_tree , hf_ber_bitstring_padding , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n if ( pad > 7 ) {\n expert_add_info_format ( actx -> pinfo , pad_item , & ei_ber_illegal_padding , \"Illegal padding (0 .. 7): %d\" , pad ) ;\n }\n }\n offset ++ ;\n len -- ;\n if ( hf_id >= 0 ) {\n item = proto_tree_add_item ( parent_tree , hf_id , tvb , offset , len , ENC_BIG_ENDIAN ) ;\n actx -> created_item = item ;\n if ( ett_id != - 1 ) {\n tree = proto_item_add_subtree ( item , ett_id ) ;\n }\n }\n if ( out_tvb ) {\n * out_tvb = ber_tvb_new_subset_length ( tvb , offset , len ) ;\n }\n }\n if ( named_bits ) {\n sep = \" (\" ;\n term = FALSE ;\n nb = named_bits ;\n bitstring = ( guint8 * ) tvb_memdup ( wmem_packet_scope ( ) , tvb , offset , len ) ;\n while ( nb -> p_id ) {\n if ( ( len > 0 ) && ( pad < 8 * len ) && ( nb -> bit < ( 8 * len - pad ) ) ) {\n val = tvb_get_guint8 ( tvb , offset + nb -> bit / 8 ) ;\n bitstring [ ( nb -> bit / 8 ) ] &= ~ ( 0x80 >> ( nb -> bit % 8 ) ) ;\n val &= 0x80 >> ( nb -> bit % 8 ) ;\n b0 = ( nb -> gb0 == - 1 ) ? nb -> bit / 8 : ( ( guint32 ) nb -> gb0 ) / 8 ;\n b1 = ( nb -> gb1 == - 1 ) ? nb -> bit / 8 : ( ( guint32 ) nb -> gb1 ) / 8 ;\n proto_tree_add_item ( tree , * ( nb -> p_id ) , tvb , offset + b0 , b1 - b0 + 1 , ENC_BIG_ENDIAN ) ;\n }\n else {\n val = 0 ;\n proto_tree_add_boolean ( tree , * ( nb -> p_id ) , tvb , offset + len , 0 , 0x00 ) ;\n }\n if ( val ) {\n if ( item && nb -> tstr ) {\n proto_item_append_text ( item , \"%s%s\" , sep , nb -> tstr ) ;\n sep = \", \" ;\n term = TRUE ;\n }\n }\n else {\n if ( item && nb -> fstr ) {\n proto_item_append_text ( item , \"%s%s\" , sep , nb -> fstr ) ;\n sep = \", \" ;\n term = TRUE ;\n }\n }\n nb ++ ;\n }\n if ( term ) proto_item_append_text ( item , \")\" ) ;\n for ( byteno = 0 ;\n byteno < len ;\n byteno ++ ) {\n if ( bitstring [ byteno ] ) {\n expert_add_info_format ( actx -> pinfo , item , & ei_ber_bits_unknown , \"Unknown bit(s): 0x%s\" , bytes_to_str ( wmem_packet_scope ( ) , bitstring , len ) ) ;\n break ;\n }\n }\n }\n if ( ( pad > 0 ) && ( pad < 8 ) && ( len > 0 ) ) {\n guint8 bits_in_pad = tvb_get_guint8 ( tvb , offset + len - 1 ) & ( 0xFF >> ( 8 - pad ) ) ;\n if ( bits_in_pad ) {\n expert_add_info_format ( actx -> pinfo , item , & ei_ber_bits_set_padded , \"Bits set in padded area: 0x%02x\" , bits_in_pad ) ;\n }\n }\n ber_check_length ( 8 * len - pad , min_len , max_len , actx , item , TRUE ) ;\n return end_offset ;\n }"}
{"idx": 16676, "target": 0, "func": "static cmsBool WriteOneWChar ( cmsIOHANDLER * io , _cmsDICelem * e , cmsUInt32Number i , const wchar_t * wcstr , cmsUInt32Number BaseOffset ) {\n cmsUInt32Number Before = io -> Tell ( io ) ;\n cmsUInt32Number n ;\n e -> Offsets [ i ] = Before - BaseOffset ;\n if ( wcstr == NULL ) {\n e -> Sizes [ i ] = 0 ;\n e -> Offsets [ i ] = 0 ;\n return TRUE ;\n }\n n = mywcslen ( wcstr ) ;\n if ( ! _cmsWriteWCharArray ( io , n , wcstr ) ) return FALSE ;\n e -> Sizes [ i ] = io -> Tell ( io ) - Before ;\n return TRUE ;\n }"}
{"idx": 16677, "target": 0, "func": "static void generate_json_object ( FBuffer * buffer , VALUE Vstate , JSON_Generator_State * state , VALUE obj ) {\n char * object_nl = state -> object_nl ;\n long object_nl_len = state -> object_nl_len ;\n char * indent = state -> indent ;\n long indent_len = state -> indent_len ;\n long max_nesting = state -> max_nesting ;\n char * delim = FBUFFER_PTR ( state -> object_delim ) ;\n long delim_len = FBUFFER_LEN ( state -> object_delim ) ;\n char * delim2 = FBUFFER_PTR ( state -> object_delim2 ) ;\n long delim2_len = FBUFFER_LEN ( state -> object_delim2 ) ;\n long depth = ++ state -> depth ;\n int i , j ;\n VALUE key , key_to_s , keys ;\n if ( max_nesting != 0 && depth > max_nesting ) {\n fbuffer_free ( buffer ) ;\n rb_raise ( eNestingError , \"nesting of %ld is too deep\" , -- state -> depth ) ;\n }\n fbuffer_append_char ( buffer , '{\n' ) ;\n keys = rb_funcall ( obj , i_keys , 0 ) ;\n for ( i = 0 ;\n i < RARRAY_LEN ( keys ) ;\n i ++ ) {\n if ( i > 0 ) fbuffer_append ( buffer , delim , delim_len ) ;\n if ( object_nl ) {\n fbuffer_append ( buffer , object_nl , object_nl_len ) ;\n }\n if ( indent ) {\n for ( j = 0 ;\n j < depth ;\n j ++ ) {\n fbuffer_append ( buffer , indent , indent_len ) ;\n }\n }\n key = rb_ary_entry ( keys , i ) ;\n key_to_s = rb_funcall ( key , i_to_s , 0 ) ;\n Check_Type ( key_to_s , T_STRING ) ;\n generate_json ( buffer , Vstate , state , key_to_s ) ;\n fbuffer_append ( buffer , delim2 , delim2_len ) ;\n generate_json ( buffer , Vstate , state , rb_hash_aref ( obj , key ) ) ;\n }\n depth = -- state -> depth ;\n if ( object_nl ) {\n fbuffer_append ( buffer , object_nl , object_nl_len ) ;\n if ( indent ) {\n for ( j = 0 ;\n j < depth ;\n j ++ ) {\n fbuffer_append ( buffer , indent , indent_len ) ;\n }\n }\n }\n fbuffer_append_char ( buffer , '}\n' ) ;\n }"}
{"idx": 16678, "target": 0, "func": "static void proto_tree_set_ipv6 ( field_info * fi , const guint8 * value_ptr ) {\n DISSECTOR_ASSERT ( value_ptr != NULL ) ;\n fvalue_set_bytes ( & fi -> value , value_ptr ) ;\n }"}
{"idx": 16679, "target": 1, "func": "void mt_init ( mtrand * mt , uint32_t seed ) {\n int i ;\n mt -> mt_buffer_ [ 0 ] = seed ;\n mt -> mt_index_ = MT_LEN ;\n for ( i = 1 ;\n i < MT_LEN ;\n i ++ ) {\n mt -> mt_buffer_ [ i ] = ( 1812433253UL * ( mt -> mt_buffer_ [ i - 1 ] ^ ( mt -> mt_buffer_ [ i - 1 ] >> 30 ) ) + i ) ;\n }\n }"}
{"idx": 16680, "target": 0, "func": "static int _is_prolog_finished ( uint32_t job_id ) {\n int is_running = 0 ;\n struct job_record * job_ptr ;\n slurmctld_lock_t job_read_lock = {\n NO_LOCK , READ_LOCK , NO_LOCK , NO_LOCK , NO_LOCK }\n ;\n lock_slurmctld ( job_read_lock ) ;\n job_ptr = find_job_record ( job_id ) ;\n if ( job_ptr ) {\n is_running = ( job_ptr -> state_reason != WAIT_PROLOG ) ;\n }\n unlock_slurmctld ( job_read_lock ) ;\n return is_running ;\n }"}
{"idx": 16681, "target": 0, "func": "int rtp_packetize_xiph_config ( sout_stream_id_sys_t * id , const char * fmtp , int64_t i_pts ) {\n if ( fmtp == NULL ) return VLC_EGENERIC ;\n char * start = strstr ( fmtp , \"configuration=\" ) ;\n assert ( start != NULL ) ;\n start += sizeof ( \"configuration=\" ) - 1 ;\n char * end = strchr ( start , ';\n' ) ;\n assert ( end != NULL ) ;\n size_t len = end - start ;\n char * b64 = malloc ( len + 1 ) ;\n if ( ! b64 ) return VLC_EGENERIC ;\n memcpy ( b64 , start , len ) ;\n b64 [ len ] = '\\0' ;\n int i_max = rtp_mtu ( id ) - 6 ;\n uint8_t * p_orig , * p_data ;\n int i_data ;\n i_data = vlc_b64_decode_binary ( & p_orig , b64 ) ;\n free ( b64 ) ;\n if ( i_data <= 9 ) {\n free ( p_orig ) ;\n return VLC_EGENERIC ;\n }\n p_data = p_orig + 9 ;\n i_data -= 9 ;\n int i_count = ( i_data + i_max - 1 ) / i_max ;\n for ( int i = 0 ;\n i < i_count ;\n i ++ ) {\n int i_payload = __MIN ( i_max , i_data ) ;\n block_t * out = block_Alloc ( 18 + i_payload ) ;\n unsigned fragtype , numpkts ;\n if ( i_count == 1 ) {\n fragtype = 0 ;\n numpkts = 1 ;\n }\n else {\n numpkts = 0 ;\n if ( i == 0 ) fragtype = 1 ;\n else if ( i == i_count - 1 ) fragtype = 3 ;\n else fragtype = 2 ;\n }\n uint32_t header = ( ( XIPH_IDENT & 0xffffff ) << 8 ) | ( fragtype << 6 ) | ( 1 << 4 ) | numpkts ;\n rtp_packetize_common ( id , out , 0 , i_pts ) ;\n SetDWBE ( out -> p_buffer + 12 , header ) ;\n SetWBE ( out -> p_buffer + 16 , i_payload ) ;\n memcpy ( & out -> p_buffer [ 18 ] , p_data , i_payload ) ;\n out -> i_dts = i_pts ;\n rtp_packetize_send ( id , out ) ;\n p_data += i_payload ;\n i_data -= i_payload ;\n }\n free ( p_orig ) ;\n return VLC_SUCCESS ;\n }"}
{"idx": 16682, "target": 0, "func": "static void init_fcache ( Oid foid , Oid input_collation , FuncExprState * fcache , MemoryContext fcacheCxt , bool needDescForSets ) {\n AclResult aclresult ;\n aclresult = pg_proc_aclcheck ( foid , GetUserId ( ) , ACL_EXECUTE ) ;\n if ( aclresult != ACLCHECK_OK ) aclcheck_error ( aclresult , ACL_KIND_PROC , get_func_name ( foid ) ) ;\n InvokeFunctionExecuteHook ( foid ) ;\n if ( list_length ( fcache -> args ) > FUNC_MAX_ARGS ) ereport ( ERROR , ( errcode ( ERRCODE_TOO_MANY_ARGUMENTS ) , errmsg_plural ( \"cannot pass more than %d argument to a function\" , \"cannot pass more than %d arguments to a function\" , FUNC_MAX_ARGS , FUNC_MAX_ARGS ) ) ) ;\n fmgr_info_cxt ( foid , & ( fcache -> func ) , fcacheCxt ) ;\n fmgr_info_set_expr ( ( Node * ) fcache -> xprstate . expr , & ( fcache -> func ) ) ;\n InitFunctionCallInfoData ( fcache -> fcinfo_data , & ( fcache -> func ) , list_length ( fcache -> args ) , input_collation , NULL , NULL ) ;\n if ( fcache -> func . fn_retset && needDescForSets ) {\n TypeFuncClass functypclass ;\n Oid funcrettype ;\n TupleDesc tupdesc ;\n MemoryContext oldcontext ;\n functypclass = get_expr_result_type ( fcache -> func . fn_expr , & funcrettype , & tupdesc ) ;\n oldcontext = MemoryContextSwitchTo ( fcacheCxt ) ;\n if ( functypclass == TYPEFUNC_COMPOSITE ) {\n Assert ( tupdesc ) ;\n fcache -> funcResultDesc = CreateTupleDescCopy ( tupdesc ) ;\n fcache -> funcReturnsTuple = true ;\n }\n else if ( functypclass == TYPEFUNC_SCALAR ) {\n tupdesc = CreateTemplateTupleDesc ( 1 , false ) ;\n TupleDescInitEntry ( tupdesc , ( AttrNumber ) 1 , NULL , funcrettype , - 1 , 0 ) ;\n fcache -> funcResultDesc = tupdesc ;\n fcache -> funcReturnsTuple = false ;\n }\n else if ( functypclass == TYPEFUNC_RECORD ) {\n fcache -> funcResultDesc = NULL ;\n fcache -> funcReturnsTuple = true ;\n }\n else {\n fcache -> funcResultDesc = NULL ;\n }\n MemoryContextSwitchTo ( oldcontext ) ;\n }\n else fcache -> funcResultDesc = NULL ;\n fcache -> funcResultStore = NULL ;\n fcache -> funcResultSlot = NULL ;\n fcache -> setArgsValid = false ;\n fcache -> shutdown_reg = false ;\n }"}
{"idx": 16683, "target": 0, "func": "static void cirrus_cursor_invalidate ( VGACommonState * s1 ) {\n CirrusVGAState * s = container_of ( s1 , CirrusVGAState , vga ) ;\n int size ;\n if ( ! ( s -> vga . sr [ 0x12 ] & CIRRUS_CURSOR_SHOW ) ) {\n size = 0 ;\n }\n else {\n if ( s -> vga . sr [ 0x12 ] & CIRRUS_CURSOR_LARGE ) size = 64 ;\n else size = 32 ;\n }\n if ( s -> last_hw_cursor_size != size || s -> last_hw_cursor_x != s -> vga . hw_cursor_x || s -> last_hw_cursor_y != s -> vga . hw_cursor_y ) {\n invalidate_cursor1 ( s ) ;\n s -> last_hw_cursor_size = size ;\n s -> last_hw_cursor_x = s -> vga . hw_cursor_x ;\n s -> last_hw_cursor_y = s -> vga . hw_cursor_y ;\n cirrus_cursor_compute_yrange ( s ) ;\n invalidate_cursor1 ( s ) ;\n }\n }"}
{"idx": 16684, "target": 0, "func": "static void pop_string ( stroke_msg_t * msg , char * * string ) {\n if ( * string == NULL ) {\n return ;\n }\n if ( string < ( char * * ) msg || string > ( char * * ) ( ( char * ) msg + sizeof ( stroke_msg_t ) ) || ( unsigned long ) * string < ( unsigned long ) ( ( char * ) msg -> buffer - ( char * ) msg ) || ( unsigned long ) * string > msg -> length ) {\n * string = \"(invalid pointer in stroke msg)\" ;\n }\n else {\n * string = ( char * ) msg + ( unsigned long ) * string ;\n }\n }"}
{"idx": 16685, "target": 0, "func": "static int dissect_h245_FECC_rfc2733 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_FECC_rfc2733 , FECC_rfc2733_sequence ) ;\n return offset ;\n }"}
{"idx": 16686, "target": 0, "func": "static void generate_codebook ( RoqContext * enc , RoqTempdata * tempdata , int * points , int inputCount , roq_cell * results , int size , int cbsize ) {\n int i , j , k ;\n int c_size = size * size / 4 ;\n int * buf ;\n int * codebook = av_malloc ( 6 * c_size * cbsize * sizeof ( int ) ) ;\n int * closest_cb ;\n if ( size == 4 ) closest_cb = av_malloc ( 6 * c_size * inputCount * sizeof ( int ) ) ;\n else closest_cb = tempdata -> closest_cb2 ;\n ff_init_elbg ( points , 6 * c_size , inputCount , codebook , cbsize , 1 , closest_cb , & enc -> randctx ) ;\n ff_do_elbg ( points , 6 * c_size , inputCount , codebook , cbsize , 1 , closest_cb , & enc -> randctx ) ;\n if ( size == 4 ) av_free ( closest_cb ) ;\n buf = codebook ;\n for ( i = 0 ;\n i < cbsize ;\n i ++ ) for ( k = 0 ;\n k < c_size ;\n k ++ ) {\n for ( j = 0 ;\n j < 4 ;\n j ++ ) results -> y [ j ] = * buf ++ ;\n results -> u = ( * buf ++ + CHROMA_BIAS / 2 ) / CHROMA_BIAS ;\n results -> v = ( * buf ++ + CHROMA_BIAS / 2 ) / CHROMA_BIAS ;\n results ++ ;\n }\n av_free ( codebook ) ;\n }"}
{"idx": 16687, "target": 0, "func": "static int zisofs_write_to_temp ( struct archive_write * a , const void * buff , size_t s ) {\n ( void ) buff ;\n ( void ) s ;\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"Programing error\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }"}
{"idx": 16688, "target": 0, "func": "static int fts_build_mail_real ( struct fts_backend_update_context * update_ctx , struct mail * mail ) {\n struct fts_mail_build_context ctx ;\n struct istream * input ;\n struct message_parser_ctx * parser ;\n struct message_decoder_context * decoder ;\n struct message_block raw_block , block ;\n struct message_part * prev_part , * parts ;\n bool skip_body = FALSE , body_part = FALSE , body_added = FALSE ;\n bool binary_body ;\n const char * error ;\n int ret ;\n if ( mail_get_stream_because ( mail , NULL , NULL , \"fts indexing\" , & input ) < 0 ) {\n if ( mail -> expunged ) return 0 ;\n i_error ( \"Failed to read mailbox %s mail UID=%u stream: %s\" , mailbox_get_vname ( mail -> box ) , mail -> uid , mailbox_get_last_internal_error ( mail -> box , NULL ) ) ;\n return - 1 ;\n }\n i_zero ( & ctx ) ;\n ctx . update_ctx = update_ctx ;\n ctx . mail = mail ;\n if ( ( update_ctx -> backend -> flags & FTS_BACKEND_FLAG_TOKENIZED_INPUT ) != 0 ) ctx . pending_input = buffer_create_dynamic ( default_pool , 128 ) ;\n prev_part = NULL ;\n parser = message_parser_init ( pool_datastack_create ( ) , input , MESSAGE_HEADER_PARSER_FLAG_CLEAN_ONELINE , 0 ) ;\n decoder = message_decoder_init ( update_ctx -> normalizer , 0 ) ;\n for ( ;\n ;\n ) {\n ret = message_parser_parse_next_block ( parser , & raw_block ) ;\n i_assert ( ret != 0 ) ;\n if ( ret < 0 ) {\n if ( input -> stream_errno == 0 ) ret = 0 ;\n else {\n i_error ( \"read(%s) failed: %s\" , i_stream_get_name ( input ) , i_stream_get_error ( input ) ) ;\n }\n break ;\n }\n if ( raw_block . part != prev_part ) {\n if ( ctx . body_parser != NULL ) {\n if ( fts_body_parser_finish ( & ctx ) < 0 ) {\n ret = - 1 ;\n break ;\n }\n }\n message_decoder_set_return_binary ( decoder , FALSE ) ;\n fts_backend_update_unset_build_key ( update_ctx ) ;\n prev_part = raw_block . part ;\n i_free_and_null ( ctx . content_type ) ;\n i_free_and_null ( ctx . content_disposition ) ;\n if ( raw_block . size != 0 ) {\n skip_body = TRUE ;\n }\n }\n if ( raw_block . hdr != NULL ) {\n }\n else if ( raw_block . size == 0 ) {\n skip_body = ! fts_build_body_begin ( & ctx , raw_block . part , & binary_body ) ;\n if ( binary_body ) message_decoder_set_return_binary ( decoder , TRUE ) ;\n body_part = TRUE ;\n }\n else {\n if ( skip_body ) continue ;\n }\n if ( ! message_decoder_decode_next_block ( decoder , & raw_block , & block ) ) continue ;\n if ( block . hdr != NULL ) {\n fts_parse_mail_header ( & ctx , & raw_block ) ;\n if ( fts_build_mail_header ( & ctx , & block ) < 0 ) {\n ret = - 1 ;\n break ;\n }\n }\n else if ( block . size == 0 ) {\n }\n else {\n i_assert ( body_part ) ;\n if ( ctx . body_parser != NULL ) fts_parser_more ( ctx . body_parser , & block ) ;\n if ( fts_build_body_block ( & ctx , & block , FALSE ) < 0 ) {\n ret = - 1 ;\n break ;\n }\n body_added = TRUE ;\n }\n }\n if ( ctx . body_parser != NULL ) {\n if ( ret == 0 ) ret = fts_body_parser_finish ( & ctx ) ;\n else ( void ) fts_parser_deinit ( & ctx . body_parser ) ;\n }\n if ( ret == 0 && body_part && ! skip_body && ! body_added ) {\n block . data = NULL ;\n block . size = 0 ;\n ret = fts_build_body_block ( & ctx , & block , TRUE ) ;\n }\n if ( message_parser_deinit_from_parts ( & parser , & parts , & error ) < 0 ) index_mail_set_message_parts_corrupted ( mail , error ) ;\n message_decoder_deinit ( & decoder ) ;\n i_free ( ctx . content_type ) ;\n i_free ( ctx . content_disposition ) ;\n if ( ctx . word_buf != NULL ) buffer_free ( & ctx . word_buf ) ;\n if ( ctx . pending_input != NULL ) buffer_free ( & ctx . pending_input ) ;\n return ret < 0 ? - 1 : 1 ;\n }"}
{"idx": 16689, "target": 0, "func": "int gs_pop_real ( gs_main_instance * minst , float * result ) {\n i_ctx_t * i_ctx_p = minst -> i_ctx_p ;\n ref vref ;\n int code = pop_value ( i_ctx_p , & vref ) ;\n if ( code < 0 ) return code ;\n switch ( r_type ( & vref ) ) {\n case t_real : * result = vref . value . realval ;\n break ;\n case t_integer : * result = ( float ) ( vref . value . intval ) ;\n break ;\n default : return_error ( gs_error_typecheck ) ;\n }\n ref_stack_pop ( & o_stack , 1 ) ;\n return 0 ;\n }"}
{"idx": 16690, "target": 0, "func": "static void pic_as_field ( Picture * pic , const int parity ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) {\n if ( parity == PICT_BOTTOM_FIELD ) pic -> f . data [ i ] += pic -> f . linesize [ i ] ;\n pic -> reference = parity ;\n pic -> f . linesize [ i ] *= 2 ;\n }\n pic -> poc = pic -> field_poc [ parity == PICT_BOTTOM_FIELD ] ;\n }"}
{"idx": 16691, "target": 0, "func": "int kvm_arch_remove_sw_breakpoint ( CPUState * cs , struct kvm_sw_breakpoint * bp ) {\n uint8_t int3 ;\n if ( cpu_memory_rw_debug ( cs , bp -> pc , & int3 , 1 , 0 ) || int3 != 0xcc || cpu_memory_rw_debug ( cs , bp -> pc , ( uint8_t * ) & bp -> saved_insn , 1 , 1 ) ) {\n return - EINVAL ;\n }\n return 0 ;\n }"}
{"idx": 16692, "target": 0, "func": "void rtadv_cmd_init ( void ) {\n ;\n }"}
{"idx": 16693, "target": 1, "func": "static int init_common_variables ( ) {\n umask ( ( ( ~ my_umask ) & 0666 ) ) ;\n my_decimal_set_zero ( & decimal_zero ) ;\n tzset ( ) ;\n sf_leaking_memory = 0 ;\n max_system_variables . pseudo_thread_id = ( ulong ) ~ 0 ;\n server_start_time = flush_status_time = my_time ( 0 ) ;\n rpl_filter = new Rpl_filter ;\n binlog_filter = new Rpl_filter ;\n if ( ! rpl_filter || ! binlog_filter ) {\n sql_perror ( \"Could not allocate replication and binlog filters\" ) ;\n return 1 ;\n }\n if ( init_thread_environment ( ) || mysql_init_variables ( ) ) return 1 ;\n if ( ignore_db_dirs_init ( ) ) return 1 ;\n # ifdef HAVE_TZNAME struct tm tm_tmp ;\n localtime_r ( & server_start_time , & tm_tmp ) ;\n const char * tz_name = tzname [ tm_tmp . tm_isdst != 0 ? 1 : 0 ] ;\n # ifdef _WIN32 wchar_t wtz_name [ sizeof ( system_time_zone ) ] ;\n mbstowcs ( wtz_name , tz_name , sizeof ( system_time_zone ) - 1 ) ;\n WideCharToMultiByte ( CP_UTF8 , 0 , wtz_name , - 1 , system_time_zone , sizeof ( system_time_zone ) - 1 , NULL , NULL ) ;\n # else strmake_buf ( system_time_zone , tz_name ) ;\n # endif # endif global_system_variables . time_zone = my_tz_SYSTEM ;\n # ifdef HAVE_PSI_INTERFACE mysql_bin_log . set_psi_keys ( key_BINLOG_LOCK_index , key_BINLOG_update_cond , key_file_binlog , key_file_binlog_index , key_BINLOG_COND_queue_busy ) ;\n # endif mysql_bin_log . init_pthread_objects ( ) ;\n if ( ! IS_TIME_T_VALID_FOR_TIMESTAMP ( server_start_time ) ) {\n sql_print_error ( \"This MySQL server doesn't support dates later then 2038\" ) ;\n return 1 ;\n }\n if ( gethostname ( glob_hostname , sizeof ( glob_hostname ) ) < 0 ) {\n strmake ( glob_hostname , STRING_WITH_LEN ( \"localhost\" ) ) ;\n sql_print_warning ( \"gethostname failed, using '%s' as hostname\" , glob_hostname ) ;\n opt_log_basename = const_cast < char * > ( \"mysql\" ) ;\n }\n else opt_log_basename = glob_hostname ;\n if ( ! * pidfile_name ) {\n strmake ( pidfile_name , opt_log_basename , sizeof ( pidfile_name ) - 5 ) ;\n strmov ( fn_ext ( pidfile_name ) , \".pid\" ) ;\n }\n # if defined ( WITH_INNOBASE_STORAGE_ENGINE ) || defined ( WITH_XTRADB_STORAGE_ENGINE ) default_storage_engine = const_cast < char * > ( \"InnoDB\" ) ;\n # else default_storage_engine = const_cast < char * > ( \"MyISAM\" ) ;\n # endif if ( add_status_vars ( status_vars ) ) return 1 ;\n # ifndef DBUG_OFF compile_time_assert ( sizeof ( com_status_vars ) / sizeof ( com_status_vars [ 0 ] ) - 1 == SQLCOM_END + 8 ) ;\n # endif if ( get_options ( & remaining_argc , & remaining_argv ) ) return 1 ;\n set_server_version ( ) ;\n if ( ! opt_help ) sql_print_information ( \"%s (mysqld %s) starting as process %lu ...\" , my_progname , server_version , ( ulong ) getpid ( ) ) ;\n # ifndef EMBEDDED_LIBRARY if ( opt_abort && ! opt_verbose ) unireg_abort ( 0 ) ;\n # endif DBUG_PRINT ( \"info\" , ( \"%s Ver %s for %s on %s\\n\" , my_progname , server_version , SYSTEM_TYPE , MACHINE_TYPE ) ) ;\n # ifdef HAVE_LARGE_PAGES if ( opt_large_pages && ( opt_large_page_size = my_get_large_page_size ( ) ) ) {\n DBUG_PRINT ( \"info\" , ( \"Large page set, large_page_size = %d\" , opt_large_page_size ) ) ;\n my_use_large_pages = 1 ;\n my_large_page_size = opt_large_page_size ;\n }\n else {\n opt_large_pages = 0 ;\n }\n # endif # ifdef HAVE_SOLARIS_LARGE_PAGES # define LARGE_PAGESIZE ( 4 * 1024 * 1024 ) # define SUPER_LARGE_PAGESIZE ( 256 * 1024 * 1024 ) if ( opt_large_pages ) {\n int nelem ;\n size_t max_desired_page_size ;\n if ( opt_super_large_pages ) max_desired_page_size = SUPER_LARGE_PAGESIZE ;\n else max_desired_page_size = LARGE_PAGESIZE ;\n nelem = getpagesizes ( NULL , 0 ) ;\n if ( nelem > 0 ) {\n size_t * pagesize = ( size_t * ) malloc ( sizeof ( size_t ) * nelem ) ;\n if ( pagesize != NULL && getpagesizes ( pagesize , nelem ) > 0 ) {\n size_t max_page_size = 0 ;\n for ( int i = 0 ;\n i < nelem ;\n i ++ ) {\n if ( pagesize [ i ] > max_page_size && pagesize [ i ] <= max_desired_page_size ) max_page_size = pagesize [ i ] ;\n }\n free ( pagesize ) ;\n if ( max_page_size > 0 ) {\n struct memcntl_mha mpss ;\n mpss . mha_cmd = MHA_MAPSIZE_BSSBRK ;\n mpss . mha_pagesize = max_page_size ;\n mpss . mha_flags = 0 ;\n memcntl ( NULL , 0 , MC_HAT_ADVISE , ( caddr_t ) & mpss , 0 , 0 ) ;\n mpss . mha_cmd = MHA_MAPSIZE_STACK ;\n memcntl ( NULL , 0 , MC_HAT_ADVISE , ( caddr_t ) & mpss , 0 , 0 ) ;\n }\n }\n }\n }\n # endif {\n uint files , wanted_files , max_open_files ;\n wanted_files = ( 10 + max_connections + extra_max_connections + table_cache_size * 2 ) ;\n max_open_files = max ( max ( wanted_files , ( max_connections + extra_max_connections ) * 5 ) , open_files_limit ) ;\n files = my_set_max_open_files ( max_open_files ) ;\n if ( files < wanted_files ) {\n if ( ! open_files_limit ) {\n max_connections = ( ulong ) min ( files - 10 - TABLE_OPEN_CACHE_MIN * 2 , max_connections ) ;\n table_cache_size = ( ulong ) min ( max ( ( files - 10 - max_connections ) / 2 , TABLE_OPEN_CACHE_MIN ) , table_cache_size ) ;\n DBUG_PRINT ( \"warning\" , ( \"Changed limits: max_open_files: %u max_connections: %ld table_cache: %ld\" , files , max_connections , table_cache_size ) ) ;\n if ( global_system_variables . log_warnings ) sql_print_warning ( \"Changed limits: max_open_files: %u max_connections: %ld table_cache: %ld\" , files , max_connections , table_cache_size ) ;\n }\n else if ( global_system_variables . log_warnings ) sql_print_warning ( \"Could not increase number of max_open_files to more than %u (request: %u)\" , files , wanted_files ) ;\n }\n open_files_limit = files ;\n }\n unireg_init ( opt_specialflag ) ;\n if ( ! ( my_default_lc_messages = my_locale_by_name ( lc_messages ) ) ) {\n sql_print_error ( \"Unknown locale: '%s'\" , lc_messages ) ;\n return 1 ;\n }\n global_system_variables . lc_messages = my_default_lc_messages ;\n if ( init_errmessage ( ) ) return 1 ;\n init_client_errs ( ) ;\n mysql_library_init ( unused , unused , unused ) ;\n lex_init ( ) ;\n if ( item_create_init ( ) ) return 1 ;\n item_init ( ) ;\n # ifndef EMBEDDED_LIBRARY my_regex_init ( & my_charset_latin1 , check_enough_stack_size ) ;\n my_string_stack_guard = check_enough_stack_size ;\n # else my_regex_init ( & my_charset_latin1 , NULL ) ;\n # endif for ( ;\n ;\n ) {\n char * next_character_set_name = strchr ( default_character_set_name , ',' ) ;\n if ( next_character_set_name ) * next_character_set_name ++ = '\\0' ;\n if ( ! ( default_charset_info = get_charset_by_csname ( default_character_set_name , MY_CS_PRIMARY , MYF ( MY_WME ) ) ) ) {\n if ( next_character_set_name ) {\n default_character_set_name = next_character_set_name ;\n default_collation_name = 0 ;\n }\n else return 1 ;\n }\n else break ;\n }\n if ( default_collation_name ) {\n CHARSET_INFO * default_collation ;\n default_collation = get_charset_by_name ( default_collation_name , MYF ( 0 ) ) ;\n if ( ! default_collation ) {\n sql_print_error ( ER_DEFAULT ( ER_UNKNOWN_COLLATION ) , default_collation_name ) ;\n return 1 ;\n }\n if ( ! my_charset_same ( default_charset_info , default_collation ) ) {\n sql_print_error ( ER_DEFAULT ( ER_COLLATION_CHARSET_MISMATCH ) , default_collation_name , default_charset_info -> csname ) ;\n return 1 ;\n }\n default_charset_info = default_collation ;\n }\n global_system_variables . collation_server = default_charset_info ;\n global_system_variables . collation_database = default_charset_info ;\n global_system_variables . collation_connection = default_charset_info ;\n global_system_variables . character_set_results = default_charset_info ;\n global_system_variables . character_set_client = default_charset_info ;\n if ( ! ( character_set_filesystem = get_charset_by_csname ( character_set_filesystem_name , MY_CS_PRIMARY , MYF ( MY_WME ) ) ) ) return 1 ;\n global_system_variables . character_set_filesystem = character_set_filesystem ;\n if ( ! ( my_default_lc_time_names = my_locale_by_name ( lc_time_names_name ) ) ) {\n sql_print_error ( \"Unknown locale: '%s'\" , lc_time_names_name ) ;\n return 1 ;\n }\n global_system_variables . lc_time_names = my_default_lc_time_names ;\n if ( opt_log && opt_logname && * opt_logname && ! ( log_output_options & ( LOG_FILE | LOG_NONE ) ) ) sql_print_warning ( \"Although a path was specified for the \" \"--log option, log tables are used. \" \"To enable logging to files use the --log-output option.\" ) ;\n if ( opt_slow_log && opt_slow_logname && * opt_slow_logname && ! ( log_output_options & ( LOG_FILE | LOG_NONE ) ) ) sql_print_warning ( \"Although a path was specified for the \" \"--log-slow-queries option, log tables are used. \" \"To enable logging to files use the --log-output=file option.\" ) ;\n if ( ! opt_logname || ! * opt_logname ) make_default_log_name ( & opt_logname , \".log\" , false ) ;\n if ( ! opt_slow_logname || ! * opt_slow_logname ) make_default_log_name ( & opt_slow_logname , \"-slow.log\" , false ) ;\n # if defined ( ENABLED_DEBUG_SYNC ) if ( debug_sync_init ( ) ) return 1 ;\n # endif # if ( ENABLE_TEMP_POOL ) if ( use_temp_pool && bitmap_init ( & temp_pool , 0 , 1024 , 1 ) ) return 1 ;\n # else use_temp_pool = 0 ;\n # endif if ( my_dboptions_cache_init ( ) ) return 1 ;\n DBUG_PRINT ( \"info\" , ( \"lower_case_table_names: %d\" , lower_case_table_names ) ) ;\n lower_case_file_system = test_if_case_insensitive ( mysql_real_data_home ) ;\n if ( ! lower_case_table_names && lower_case_file_system == 1 ) {\n if ( lower_case_table_names_used ) {\n # if MYSQL_VERSION_ID < 100100 if ( global_system_variables . log_warnings ) sql_print_warning ( \"You have forced lower_case_table_names to 0 through \" \"a command-line option, even though your file system \" \"'%s' is case insensitive. This means that you can \" \"corrupt your tables if you access them using names \" \"with different letter case. You should consider \" \"changing lower_case_table_names to 1 or 2\" , mysql_real_data_home ) ;\n # else sql_print_error ( \"The server option 'lower_case_table_names' is \" \"configured to use case sensitive table names but the \" \"data directory resides on a case-insensitive file system. \" \"Please use a case sensitive file system for your data \" \"directory or switch to a case-insensitive table name \" \"mode.\" ) ;\n # endif return 1 ;\n }\n else {\n if ( global_system_variables . log_warnings ) sql_print_warning ( \"Setting lower_case_table_names=2 because file system for %s is case insensitive\" , mysql_real_data_home ) ;\n lower_case_table_names = 2 ;\n }\n }\n else if ( lower_case_table_names == 2 && ! ( lower_case_file_system = ( lower_case_file_system == 1 ) ) ) {\n if ( global_system_variables . log_warnings ) sql_print_warning ( \"lower_case_table_names was set to 2, even though your \" \"the file system '%s' is case sensitive. Now setting \" \"lower_case_table_names to 0 to avoid future problems.\" , mysql_real_data_home ) ;\n lower_case_table_names = 0 ;\n }\n else {\n lower_case_file_system = ( lower_case_file_system == 1 ) ;\n }\n table_alias_charset = ( lower_case_table_names ? files_charset_info : & my_charset_bin ) ;\n if ( ignore_db_dirs_process_additions ( ) ) {\n sql_print_error ( \"An error occurred while storing ignore_db_dirs to a hash.\" ) ;\n return 1 ;\n }\n return 0 ;\n }"}
{"idx": 16694, "target": 0, "func": "List * find_nonnullable_vars ( Node * clause ) {\n return find_nonnullable_vars_walker ( clause , true ) ;\n }"}
{"idx": 16695, "target": 0, "func": "int * __xmlParserDebugEntities ( void ) {\n if ( IS_MAIN_THREAD ) return ( & xmlParserDebugEntities ) ;\n else return ( & xmlGetGlobalState ( ) -> xmlParserDebugEntities ) ;\n }"}
{"idx": 16696, "target": 0, "func": "static guint32 dissect_netb_add_name_resp ( tvbuff_t * tvb , packet_info * pinfo _U_ , int offset , proto_tree * tree ) {\n nb_data1 ( hf_netb_status , tvb , offset , tree ) ;\n nb_data2 ( hf_netb_name_type , tvb , offset , tree ) ;\n nb_xmit_corrl ( tvb , offset , tree ) ;\n netbios_add_name ( \"Name to be added\" , tvb , offset + NB_RECVER_NAME , tree ) ;\n netbios_add_name ( \"Name to be added\" , tvb , offset + NB_SENDER_NAME , tree ) ;\n return 0 ;\n }"}
{"idx": 16697, "target": 0, "func": "static void read_clockstatus ( struct recvbuf * rbufp , int restrict_mask ) {\n # ifndef REFCLOCK ctl_error ( CERR_BADASSOC ) ;\n # else const struct ctl_var * v ;\n int i ;\n struct peer * peer ;\n char * valuep ;\n u_char * wants ;\n size_t wants_alloc ;\n int gotvar ;\n const u_char * cc ;\n struct ctl_var * kv ;\n struct refclockstat cs ;\n if ( res_associd != 0 ) {\n peer = findpeerbyassoc ( res_associd ) ;\n }\n else {\n if ( sys_peer != NULL && ( FLAG_REFCLOCK & sys_peer -> flags ) ) peer = sys_peer ;\n else for ( peer = peer_list ;\n peer != NULL ;\n peer = peer -> p_link ) if ( FLAG_REFCLOCK & peer -> flags ) break ;\n }\n if ( NULL == peer || ! ( FLAG_REFCLOCK & peer -> flags ) ) {\n ctl_error ( CERR_BADASSOC ) ;\n return ;\n }\n cs . kv_list = NULL ;\n refclock_control ( & peer -> srcadr , NULL , & cs ) ;\n kv = cs . kv_list ;\n rpkt . status = htons ( ctlclkstatus ( & cs ) ) ;\n wants_alloc = CC_MAXCODE + 1 + count_var ( kv ) ;\n wants = emalloc_zero ( wants_alloc ) ;\n gotvar = FALSE ;\n while ( NULL != ( v = ctl_getitem ( clock_var , & valuep ) ) ) {\n if ( ! ( EOV & v -> flags ) ) {\n wants [ v -> code ] = TRUE ;\n gotvar = TRUE ;\n }\n else {\n v = ctl_getitem ( kv , & valuep ) ;\n INSIST ( NULL != v ) ;\n if ( EOV & v -> flags ) {\n ctl_error ( CERR_UNKNOWNVAR ) ;\n free ( wants ) ;\n free_varlist ( cs . kv_list ) ;\n return ;\n }\n wants [ CC_MAXCODE + 1 + v -> code ] = TRUE ;\n gotvar = TRUE ;\n }\n }\n if ( gotvar ) {\n for ( i = 1 ;\n i <= CC_MAXCODE ;\n i ++ ) if ( wants [ i ] ) ctl_putclock ( i , & cs , TRUE ) ;\n if ( kv != NULL ) for ( i = 0 ;\n ! ( EOV & kv [ i ] . flags ) ;\n i ++ ) if ( wants [ i + CC_MAXCODE + 1 ] ) ctl_putdata ( kv [ i ] . text , strlen ( kv [ i ] . text ) , FALSE ) ;\n }\n else {\n for ( cc = def_clock_var ;\n * cc != 0 ;\n cc ++ ) ctl_putclock ( ( int ) * cc , & cs , FALSE ) ;\n for ( ;\n kv != NULL && ! ( EOV & kv -> flags ) ;\n kv ++ ) if ( DEF & kv -> flags ) ctl_putdata ( kv -> text , strlen ( kv -> text ) , FALSE ) ;\n }\n free ( wants ) ;\n free_varlist ( cs . kv_list ) ;\n ctl_flushpkt ( 0 ) ;\n # endif }"}
{"idx": 16698, "target": 0, "func": "static int restore_check_operand ( os_ptr op , alloc_save_t * * pasave , gs_dual_memory_t * idmem ) {\n vm_save_t * vmsave ;\n ulong sid ;\n alloc_save_t * asave ;\n check_type ( * op , t_save ) ;\n vmsave = r_ptr ( op , vm_save_t ) ;\n if ( vmsave == 0 ) return_error ( gs_error_invalidrestore ) ;\n sid = op -> value . saveid ;\n asave = alloc_find_save ( idmem , sid ) ;\n if ( asave == 0 ) return_error ( gs_error_invalidrestore ) ;\n * pasave = asave ;\n return 0 ;\n }"}
{"idx": 16699, "target": 0, "func": "static VALUE mArray_to_json ( int argc , VALUE * argv , VALUE self ) {\n GENERATE_JSON ( array ) ;\n }"}
{"idx": 16700, "target": 0, "func": "static int calculate_boost_bits ( int frame_count , int boost , int64_t total_group_bits ) {\n int allocation_chunks ;\n if ( ! boost || ( total_group_bits <= 0 ) || ( frame_count <= 0 ) ) return 0 ;\n allocation_chunks = ( frame_count * 100 ) + boost ;\n if ( boost > 1023 ) {\n int divisor = boost >> 10 ;\n boost /= divisor ;\n allocation_chunks /= divisor ;\n }\n return MAX ( ( int ) ( ( ( int64_t ) boost * total_group_bits ) / allocation_chunks ) , 0 ) ;\n }"}
{"idx": 16701, "target": 0, "func": "static void h245_setup_channels ( packet_info * pinfo , channel_info_t * upcoming_channel_lcl ) {\n rtp_dyn_payload_t * rtp_dyn_payload = NULL ;\n struct srtp_info * dummy_srtp_info = NULL ;\n if ( ! upcoming_channel_lcl ) return ;\n if ( ! strcmp ( upcoming_channel_lcl -> data_type_str , \"t38fax\" ) ) {\n if ( upcoming_channel_lcl -> media_addr . addr . type != AT_NONE && upcoming_channel_lcl -> media_addr . port != 0 ) {\n t38_add_address ( pinfo , & upcoming_channel_lcl -> media_addr . addr , upcoming_channel_lcl -> media_addr . port , 0 , \"H245\" , pinfo -> fd -> num ) ;\n }\n return ;\n }\n if ( upcoming_channel_lcl -> rfc2198 > 0 ) {\n rtp_dyn_payload = rtp_dyn_payload_new ( ) ;\n rtp_dyn_payload_insert ( rtp_dyn_payload , upcoming_channel_lcl -> rfc2198 , \"red\" , 8000 ) ;\n }\n if ( upcoming_channel_lcl -> srtp_flag ) {\n dummy_srtp_info = wmem_new0 ( wmem_file_scope ( ) , struct srtp_info ) ;\n }\n if ( upcoming_channel_lcl -> media_addr . addr . type != AT_NONE && upcoming_channel_lcl -> media_addr . port != 0 ) {\n srtp_add_address ( pinfo , & upcoming_channel_lcl -> media_addr . addr , upcoming_channel_lcl -> media_addr . port , 0 , \"H245\" , pinfo -> fd -> num , upcoming_channel_lcl -> is_video , rtp_dyn_payload , dummy_srtp_info ) ;\n }\n if ( upcoming_channel_lcl -> media_control_addr . addr . type != AT_NONE && upcoming_channel_lcl -> media_control_addr . port != 0 && rtcp_handle ) {\n srtcp_add_address ( pinfo , & upcoming_channel_lcl -> media_control_addr . addr , upcoming_channel_lcl -> media_control_addr . port , 0 , \"H245\" , pinfo -> fd -> num , dummy_srtp_info ) ;\n }\n }"}
{"idx": 16702, "target": 0, "func": "static zend_object_value php_create_incomplete_object ( zend_class_entry * class_type TSRMLS_DC ) {\n zend_object * object ;\n zend_object_value value ;\n value = zend_objects_new ( & object , class_type TSRMLS_CC ) ;\n value . handlers = & php_incomplete_object_handlers ;\n object_properties_init ( object , class_type ) ;\n return value ;\n }"}
{"idx": 16703, "target": 0, "func": "extern rtype gnu_dev_ ## name proto __THROW __attribute_const__ ;\n # define __SYSMACROS_IMPL_TEMPL ( rtype , name , proto ) __extension__ __extern_inline __attribute_const__ rtype __NTH ( gnu_dev_ ## name proto ) __BEGIN_DECLS __SYSMACROS_DECLARE_MAJOR ( __SYSMACROS_DECL_TEMPL ) __SYSMACROS_DECLARE_MINOR ( __SYSMACROS_DECL_TEMPL ) __SYSMACROS_DECLARE_MAKEDEV ( __SYSMACROS_DECL_TEMPL )"}
{"idx": 16704, "target": 0, "func": "static void free_h225_info ( gpointer p ) {\n h323_calls_info_t * tmp_h323info = ( h323_calls_info_t * ) p ;\n DUMP_PTR2 ( tmp_h323info -> guid ) ;\n g_free ( tmp_h323info -> guid ) ;\n if ( tmp_h323info -> h245_list ) {\n GList * list2 = g_list_first ( tmp_h323info -> h245_list ) ;\n while ( list2 ) {\n h245_address_t * h245_add = ( h245_address_t * ) list2 -> data ;\n g_free ( ( void * ) h245_add -> h245_address . data ) ;\n g_free ( list2 -> data ) ;\n list2 = g_list_next ( list2 ) ;\n }\n g_list_free ( tmp_h323info -> h245_list ) ;\n }\n g_free ( p ) ;\n }"}
{"idx": 16705, "target": 0, "func": "void vmmouse_get_data ( uint32_t * data ) {\n X86CPU * cpu = X86_CPU ( current_cpu ) ;\n CPUX86State * env = & cpu -> env ;\n data [ 0 ] = env -> regs [ R_EAX ] ;\n data [ 1 ] = env -> regs [ R_EBX ] ;\n data [ 2 ] = env -> regs [ R_ECX ] ;\n data [ 3 ] = env -> regs [ R_EDX ] ;\n data [ 4 ] = env -> regs [ R_ESI ] ;\n data [ 5 ] = env -> regs [ R_EDI ] ;\n }"}
{"idx": 16706, "target": 0, "func": "static void sig_disconnected ( SERVER_REC * server ) {\n WINDOW_REC * window ;\n GSList * tmp ;\n g_return_if_fail ( IS_SERVER ( server ) ) ;\n for ( tmp = server -> channels ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n CHANNEL_REC * channel = tmp -> data ;\n window = window_item_window ( ( WI_ITEM_REC * ) channel ) ;\n window_bind_add ( window , server -> tag , channel -> name ) ;\n }\n }"}
{"idx": 16707, "target": 1, "func": "void * jas_malloc ( size_t size ) {\n void * result ;\n JAS_DBGLOG ( 101 , ( \"jas_malloc called with %zu\\n\" , size ) ) ;\n result = malloc ( size ) ;\n JAS_DBGLOG ( 100 , ( \"jas_malloc(%zu) -> %p\\n\" , size , result ) ) ;\n return result ;\n }"}
{"idx": 16708, "target": 0, "func": "static void AddMacName ( NamTab * nt , struct macname * mn , int strid ) {\n NameEntry * ne ;\n if ( nt -> cur + 1 >= nt -> max ) {\n if ( nt -> cur == 0 ) nt -> entries = malloc ( ( nt -> max = 100 ) * sizeof ( NameEntry ) ) ;\n else nt -> entries = realloc ( nt -> entries , ( nt -> max += 100 ) * sizeof ( NameEntry ) ) ;\n }\n ne = nt -> entries + nt -> cur ;\n ne -> platform = 1 ;\n ne -> specific = mn -> enc ;\n ne -> lang = mn -> lang ;\n ne -> strid = strid ;\n ne -> offset = ftell ( nt -> strings ) ;\n ne -> len = strlen ( mn -> name ) ;\n dumpstr ( nt -> strings , mn -> name ) ;\n ++ nt -> cur ;\n }"}
{"idx": 16709, "target": 1, "func": "static void vc1_decode_b_mb_intfi ( VC1Context * v ) {\n MpegEncContext * s = & v -> s ;\n GetBitContext * gb = & s -> gb ;\n int i , j ;\n int mb_pos = s -> mb_x + s -> mb_y * s -> mb_stride ;\n int cbp = 0 ;\n int mqdiff , mquant ;\n int ttmb = v -> ttfrm ;\n int mb_has_coeffs = 0 ;\n int val ;\n int first_block = 1 ;\n int dst_idx , off ;\n int fwd ;\n int dmv_x [ 2 ] , dmv_y [ 2 ] , pred_flag [ 2 ] ;\n int bmvtype = BMV_TYPE_BACKWARD ;\n int idx_mbmode , interpmvp ;\n mquant = v -> pq ;\n s -> mb_intra = 0 ;\n idx_mbmode = get_vlc2 ( gb , v -> mbmode_vlc -> table , VC1_IF_MBMODE_VLC_BITS , 2 ) ;\n if ( idx_mbmode <= 1 ) {\n s -> mb_intra = v -> is_intra [ s -> mb_x ] = 1 ;\n s -> current_picture . f . motion_val [ 1 ] [ s -> block_index [ 0 ] ] [ 0 ] = 0 ;\n s -> current_picture . f . motion_val [ 1 ] [ s -> block_index [ 0 ] ] [ 1 ] = 0 ;\n s -> current_picture . f . mb_type [ mb_pos + v -> mb_off ] = MB_TYPE_INTRA ;\n GET_MQUANT ( ) ;\n s -> current_picture . f . qscale_table [ mb_pos ] = mquant ;\n s -> y_dc_scale = s -> y_dc_scale_table [ mquant ] ;\n s -> c_dc_scale = s -> c_dc_scale_table [ mquant ] ;\n v -> s . ac_pred = v -> acpred_plane [ mb_pos ] = get_bits1 ( gb ) ;\n mb_has_coeffs = idx_mbmode & 1 ;\n if ( mb_has_coeffs ) cbp = 1 + get_vlc2 ( & v -> s . gb , v -> cbpcy_vlc -> table , VC1_ICBPCY_VLC_BITS , 2 ) ;\n dst_idx = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n s -> dc_val [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n dst_idx += i >> 2 ;\n val = ( ( cbp >> ( 5 - i ) ) & 1 ) ;\n v -> mb_type [ 0 ] [ s -> block_index [ i ] ] = s -> mb_intra ;\n v -> a_avail = v -> c_avail = 0 ;\n if ( i == 2 || i == 3 || ! s -> first_slice_line ) v -> a_avail = v -> mb_type [ 0 ] [ s -> block_index [ i ] - s -> block_wrap [ i ] ] ;\n if ( i == 1 || i == 3 || s -> mb_x ) v -> c_avail = v -> mb_type [ 0 ] [ s -> block_index [ i ] - 1 ] ;\n vc1_decode_intra_block ( v , s -> block [ i ] , i , val , mquant , ( i & 4 ) ? v -> codingset2 : v -> codingset ) ;\n if ( ( i > 3 ) && ( s -> flags & CODEC_FLAG_GRAY ) ) continue ;\n v -> vc1dsp . vc1_inv_trans_8x8 ( s -> block [ i ] ) ;\n if ( v -> rangeredfrm ) for ( j = 0 ;\n j < 64 ;\n j ++ ) s -> block [ i ] [ j ] <<= 1 ;\n off = ( i & 4 ) ? 0 : ( ( i & 1 ) * 8 + ( i & 2 ) * 4 * s -> linesize ) ;\n off += v -> cur_field_type ? ( ( i & 4 ) ? s -> current_picture_ptr -> f . linesize [ 1 ] : s -> current_picture_ptr -> f . linesize [ 0 ] ) : 0 ;\n s -> dsp . put_signed_pixels_clamped ( s -> block [ i ] , s -> dest [ dst_idx ] + off , ( i & 4 ) ? s -> uvlinesize : s -> linesize ) ;\n }\n }\n else {\n s -> mb_intra = v -> is_intra [ s -> mb_x ] = 0 ;\n s -> current_picture . f . mb_type [ mb_pos + v -> mb_off ] = MB_TYPE_16x16 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) v -> mb_type [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n if ( v -> fmb_is_raw ) fwd = v -> forward_mb_plane [ mb_pos ] = get_bits1 ( gb ) ;\n else fwd = v -> forward_mb_plane [ mb_pos ] ;\n if ( idx_mbmode <= 5 ) {\n dmv_x [ 0 ] = dmv_x [ 1 ] = dmv_y [ 0 ] = dmv_y [ 1 ] = 0 ;\n pred_flag [ 0 ] = pred_flag [ 1 ] = 0 ;\n if ( fwd ) bmvtype = BMV_TYPE_FORWARD ;\n else {\n bmvtype = decode012 ( gb ) ;\n switch ( bmvtype ) {\n case 0 : bmvtype = BMV_TYPE_BACKWARD ;\n break ;\n case 1 : bmvtype = BMV_TYPE_DIRECT ;\n break ;\n case 2 : bmvtype = BMV_TYPE_INTERPOLATED ;\n interpmvp = get_bits1 ( gb ) ;\n }\n }\n v -> bmvtype = bmvtype ;\n if ( bmvtype != BMV_TYPE_DIRECT && idx_mbmode & 1 ) {\n get_mvdata_interlaced ( v , & dmv_x [ bmvtype == BMV_TYPE_BACKWARD ] , & dmv_y [ bmvtype == BMV_TYPE_BACKWARD ] , & pred_flag [ bmvtype == BMV_TYPE_BACKWARD ] ) ;\n }\n if ( bmvtype == BMV_TYPE_INTERPOLATED && interpmvp ) {\n get_mvdata_interlaced ( v , & dmv_x [ 1 ] , & dmv_y [ 1 ] , & pred_flag [ 1 ] ) ;\n }\n if ( bmvtype == BMV_TYPE_DIRECT ) {\n dmv_x [ 0 ] = dmv_y [ 0 ] = pred_flag [ 0 ] = 0 ;\n dmv_x [ 1 ] = dmv_y [ 1 ] = pred_flag [ 0 ] = 0 ;\n }\n vc1_pred_b_mv_intfi ( v , 0 , dmv_x , dmv_y , 1 , pred_flag ) ;\n vc1_b_mc ( v , dmv_x , dmv_y , ( bmvtype == BMV_TYPE_DIRECT ) , bmvtype ) ;\n mb_has_coeffs = ! ( idx_mbmode & 2 ) ;\n }\n else {\n if ( fwd ) bmvtype = BMV_TYPE_FORWARD ;\n v -> bmvtype = bmvtype ;\n v -> fourmvbp = get_vlc2 ( gb , v -> fourmvbp_vlc -> table , VC1_4MV_BLOCK_PATTERN_VLC_BITS , 1 ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( i < 4 ) {\n dmv_x [ 0 ] = dmv_y [ 0 ] = pred_flag [ 0 ] = 0 ;\n dmv_x [ 1 ] = dmv_y [ 1 ] = pred_flag [ 1 ] = 0 ;\n val = ( ( v -> fourmvbp >> ( 3 - i ) ) & 1 ) ;\n if ( val ) {\n get_mvdata_interlaced ( v , & dmv_x [ bmvtype == BMV_TYPE_BACKWARD ] , & dmv_y [ bmvtype == BMV_TYPE_BACKWARD ] , & pred_flag [ bmvtype == BMV_TYPE_BACKWARD ] ) ;\n }\n vc1_pred_b_mv_intfi ( v , i , dmv_x , dmv_y , 0 , pred_flag ) ;\n vc1_mc_4mv_luma ( v , i , bmvtype == BMV_TYPE_BACKWARD ) ;\n }\n else if ( i == 4 ) vc1_mc_4mv_chroma ( v , bmvtype == BMV_TYPE_BACKWARD ) ;\n }\n mb_has_coeffs = idx_mbmode & 1 ;\n }\n if ( mb_has_coeffs ) cbp = 1 + get_vlc2 ( & v -> s . gb , v -> cbpcy_vlc -> table , VC1_CBPCY_P_VLC_BITS , 2 ) ;\n if ( cbp ) {\n GET_MQUANT ( ) ;\n }\n s -> current_picture . f . qscale_table [ mb_pos ] = mquant ;\n if ( ! v -> ttmbf && cbp ) {\n ttmb = get_vlc2 ( gb , ff_vc1_ttmb_vlc [ v -> tt_index ] . table , VC1_TTMB_VLC_BITS , 2 ) ;\n }\n dst_idx = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n s -> dc_val [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n dst_idx += i >> 2 ;\n val = ( ( cbp >> ( 5 - i ) ) & 1 ) ;\n off = ( i & 4 ) ? 0 : ( i & 1 ) * 8 + ( i & 2 ) * 4 * s -> linesize ;\n if ( v -> cur_field_type ) off += ( i & 4 ) ? s -> current_picture_ptr -> f . linesize [ 1 ] : s -> current_picture_ptr -> f . linesize [ 0 ] ;\n if ( val ) {\n vc1_decode_p_block ( v , s -> block [ i ] , i , mquant , ttmb , first_block , s -> dest [ dst_idx ] + off , ( i & 4 ) ? s -> uvlinesize : s -> linesize , ( i & 4 ) && ( s -> flags & CODEC_FLAG_GRAY ) , NULL ) ;\n if ( ! v -> ttmbf && ttmb < 8 ) ttmb = - 1 ;\n first_block = 0 ;\n }\n }\n }\n }"}
{"idx": 16710, "target": 0, "func": "static const SSL_METHOD * ssl23_get_server_method ( int ver ) {\n # ifndef OPENSSL_NO_SSL2 if ( ver == SSL2_VERSION ) return ( SSLv2_server_method ( ) ) ;\n # endif # ifndef OPENSSL_NO_SSL3 if ( ver == SSL3_VERSION ) return ( SSLv3_server_method ( ) ) ;\n # endif if ( ver == TLS1_VERSION ) return ( TLSv1_server_method ( ) ) ;\n else if ( ver == TLS1_1_VERSION ) return ( TLSv1_1_server_method ( ) ) ;\n else if ( ver == TLS1_2_VERSION ) return ( TLSv1_2_server_method ( ) ) ;\n else return ( NULL ) ;\n }"}
{"idx": 16711, "target": 0, "func": "static void die ( const char * format , ... ) {\n va_list arg_ptr ;\n va_start ( arg_ptr , format ) ;\n vfprintf ( stderr , format , arg_ptr ) ;\n va_end ( arg_ptr ) ;\n exit ( 1 ) ;\n }"}
{"idx": 16712, "target": 0, "func": "int BrotliStateIsStreamEnd ( const BrotliState * s ) {\n return s -> state == BROTLI_STATE_DONE ;\n }"}
{"idx": 16713, "target": 0, "func": "int main ( int argc , char * * argv ) {\n const char * cp ;\n struct passwd * pw = NULL ;\n # ifdef USE_PAM int ret ;\n # endif ( void ) setlocale ( LC_ALL , \"\" ) ;\n ( void ) bindtextdomain ( PACKAGE , LOCALEDIR ) ;\n ( void ) textdomain ( PACKAGE ) ;\n save_caller_context ( argv ) ;\n OPENLOG ( \"su\" ) ;\n process_flags ( argc , argv ) ;\n initenv ( ) ;\n # ifdef USE_PAM ret = pam_start ( \"su\" , name , & conv , & pamh ) ;\n if ( PAM_SUCCESS != ret ) {\n SYSLOG ( ( LOG_ERR , \"pam_start: error %d\" , ret ) ;\n fprintf ( stderr , _ ( \"%s: pam_start: error %d\\n\" ) , Prog , ret ) ) ;\n exit ( 1 ) ;\n }\n ret = pam_set_item ( pamh , PAM_TTY , ( const void * ) caller_tty ) ;\n if ( PAM_SUCCESS == ret ) {\n ret = pam_set_item ( pamh , PAM_RUSER , ( const void * ) caller_name ) ;\n }\n if ( PAM_SUCCESS != ret ) {\n SYSLOG ( ( LOG_ERR , \"pam_set_item: %s\" , pam_strerror ( pamh , ret ) ) ) ;\n fprintf ( stderr , _ ( \"%s: %s\\n\" ) , Prog , pam_strerror ( pamh , ret ) ) ;\n pam_end ( pamh , ret ) ;\n exit ( 1 ) ;\n }\n # endif pw = check_perms ( ) ;\n if ( ( NULL == shellstr ) && ! change_environment ) {\n shellstr = getenv ( \"SHELL\" ) ;\n }\n if ( ! caller_is_root && restricted_shell ( pw -> pw_shell ) ) {\n shellstr = NULL ;\n change_environment = true ;\n }\n if ( NULL == shellstr ) {\n shellstr = pw -> pw_shell ;\n }\n if ( ( NULL == shellstr ) || ( '\\0' == shellstr [ 0 ] ) ) {\n shellstr = SHELL ;\n }\n sulog ( caller_tty , true , caller_name , name ) ;\n # ifdef USE_SYSLOG if ( getdef_bool ( \"SYSLOG_SU_ENAB\" ) ) {\n SYSLOG ( ( LOG_INFO , \"+ %s %s:%s\" , caller_tty , ( '\\0' != caller_name [ 0 ] ) ? caller_name : \"???\" , ( '\\0' != name [ 0 ] ) ? name : \"???\" ) ) ;\n }\n # endif # ifdef USE_PAM if ( setup_groups ( pw ) != 0 ) {\n pam_end ( pamh , PAM_ABORT ) ;\n exit ( 1 ) ;\n }\n ret = pam_setcred ( pamh , PAM_ESTABLISH_CRED ) ;\n if ( PAM_SUCCESS != ret ) {\n SYSLOG ( ( LOG_ERR , \"pam_setcred: %s\" , pam_strerror ( pamh , ret ) ) ) ;\n fprintf ( stderr , _ ( \"%s: %s\\n\" ) , Prog , pam_strerror ( pamh , ret ) ) ;\n ( void ) pam_end ( pamh , ret ) ;\n exit ( 1 ) ;\n }\n ret = pam_open_session ( pamh , 0 ) ;\n if ( PAM_SUCCESS != ret ) {\n SYSLOG ( ( LOG_ERR , \"pam_open_session: %s\" , pam_strerror ( pamh , ret ) ) ) ;\n fprintf ( stderr , _ ( \"%s: %s\\n\" ) , Prog , pam_strerror ( pamh , ret ) ) ;\n pam_setcred ( pamh , PAM_DELETE_CRED ) ;\n ( void ) pam_end ( pamh , ret ) ;\n exit ( 1 ) ;\n }\n prepare_pam_close_session ( ) ;\n if ( change_uid ( pw ) != 0 ) {\n exit ( 1 ) ;\n }\n # else if ( ! caller_is_root || fakelogin ) {\n setup_limits ( pw ) ;\n }\n if ( setup_uid_gid ( pw , caller_on_console ) != 0 ) {\n exit ( 1 ) ;\n }\n # endif # ifdef WITH_AUDIT audit_fd = audit_open ( ) ;\n audit_log_acct_message ( audit_fd , AUDIT_USER_ROLE_CHANGE , NULL , \"su\" , ( '\\0' != caller_name [ 0 ] ) ? caller_name : \"???\" , AUDIT_NO_ID , \"localhost\" , NULL , caller_tty , 1 ) ;\n close ( audit_fd ) ;\n # endif set_environment ( pw ) ;\n if ( ! doshell ) {\n int err = - 1 ;\n # ifdef USE_PAM err = setsid ( ) ;\n # else int fd = open ( \"/dev/tty\" , O_RDWR ) ;\n if ( fd >= 0 ) {\n err = ioctl ( fd , TIOCNOTTY , ( char * ) 0 ) ;\n ( void ) close ( fd ) ;\n }\n else if ( ENXIO == errno ) {\n err = 0 ;\n }\n # endif if ( - 1 == err ) {\n ( void ) fprintf ( stderr , _ ( \"%s: Cannot drop the controlling terminal\\n\" ) , Prog ) ;\n exit ( 1 ) ;\n }\n }\n endpwent ( ) ;\n endspent ( ) ;\n closelog ( ) ;\n if ( fakelogin ) {\n char * arg0 ;\n cp = getdef_str ( \"SU_NAME\" ) ;\n if ( NULL == cp ) {\n cp = Basename ( shellstr ) ;\n }\n arg0 = xmalloc ( strlen ( cp ) + 2 ) ;\n arg0 [ 0 ] = '-' ;\n strcpy ( arg0 + 1 , cp ) ;\n cp = arg0 ;\n }\n else {\n cp = Basename ( shellstr ) ;\n }\n if ( ! doshell ) {\n int err ;\n argv += optind ;\n if ( NULL != command ) {\n argv -= 2 ;\n argv [ 0 ] = \"-c\" ;\n argv [ 1 ] = command ;\n }\n argv [ - 1 ] = cp ;\n execve_shell ( shellstr , & argv [ - 1 ] , environ ) ;\n err = errno ;\n ( void ) fprintf ( stderr , _ ( \"Cannot execute %s\\n\" ) , shellstr ) ;\n errno = err ;\n }\n else {\n ( void ) shell ( shellstr , cp , environ ) ;\n }\n pw_free ( pw ) ;\n return ( errno == ENOENT ? E_CMD_NOTFOUND : E_CMD_NOEXEC ) ;\n }"}
{"idx": 16714, "target": 0, "func": "static void malta_fpga_update_display ( void * opaque ) {\n char leds_text [ 9 ] ;\n int i ;\n MaltaFPGAState * s = opaque ;\n for ( i = 7 ;\n i >= 0 ;\n i -- ) {\n if ( s -> leds & ( 1 << i ) ) leds_text [ i ] = '#' ;\n else leds_text [ i ] = ' ' ;\n }\n leds_text [ 8 ] = '\\0' ;\n qemu_chr_fe_printf ( s -> display , \"\\e[H\\n\\n|\\e[32m%-8.8s\\e[00m|\\r\\n\" , leds_text ) ;\n qemu_chr_fe_printf ( s -> display , \"\\n\\n\\n\\n|\\e[31m%-8.8s\\e[00m|\" , s -> display_text ) ;\n }"}
{"idx": 16715, "target": 0, "func": "static struct vp9_read_bit_buffer * init_read_bit_buffer ( VP9Decoder * pbi , struct vp9_read_bit_buffer * rb , const uint8_t * data , const uint8_t * data_end , uint8_t * clear_data ) {\n rb -> bit_offset = 0 ;\n rb -> error_handler = error_handler ;\n rb -> error_handler_data = & pbi -> common ;\n if ( pbi -> decrypt_cb ) {\n const int n = ( int ) MIN ( MAX_VP9_HEADER_SIZE , data_end - data ) ;\n pbi -> decrypt_cb ( pbi -> decrypt_state , data , clear_data , n ) ;\n rb -> bit_buffer = clear_data ;\n rb -> bit_buffer_end = clear_data + n ;\n }\n else {\n rb -> bit_buffer = data ;\n rb -> bit_buffer_end = data_end ;\n }\n return rb ;\n }"}
{"idx": 16716, "target": 0, "func": "static void final_reordering ( const hb_ot_shape_plan_t * plan , hb_font_t * font HB_UNUSED , hb_buffer_t * buffer ) {\n hb_glyph_info_t * info = buffer -> info ;\n unsigned int count = buffer -> len ;\n for ( unsigned int i = 0 ;\n i < count ;\n i ++ ) info [ i ] . syllable ( ) = 0 ;\n HB_BUFFER_DEALLOCATE_VAR ( buffer , myanmar_category ) ;\n HB_BUFFER_DEALLOCATE_VAR ( buffer , myanmar_position ) ;\n }"}
{"idx": 16717, "target": 0, "func": "static void write_mv_update ( const vp9_tree_index * tree , vp9_prob probs [ ] , const unsigned int counts [ ] , int n , vp9_writer * w ) {\n int i ;\n unsigned int branch_ct [ 32 ] [ 2 ] ;\n assert ( n <= 32 ) ;\n vp9_tree_probs_from_distribution ( tree , branch_ct , counts ) ;\n for ( i = 0 ;\n i < n - 1 ;\n ++ i ) update_mv ( w , branch_ct [ i ] , & probs [ i ] , MV_UPDATE_PROB ) ;\n }"}
{"idx": 16718, "target": 0, "func": "static struct message_data * find_matching_request_by_fid ( struct mswsp_ct * ct , packet_info * pinfo , guint32 msg , gboolean in , void * private_data ) {\n guint32 fid = 0 ;\n guint frame = 0 ;\n GSList * iter ;\n int * p_smb_level = ( int * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_mswsp , 0 ) ;\n struct message_data * result = NULL ;\n get_fid_and_frame ( pinfo , & fid , & frame , private_data ) ;\n for ( iter = ct -> GSL_message_data ;\n iter ;\n iter = iter -> next ) {\n struct message_data * data = ( struct message_data * ) iter -> data ;\n if ( data -> frame < frame && data -> fid == fid && data -> is_request == in && data -> msg_id == msg && data -> smb_level == * p_smb_level ) {\n result = data ;\n break ;\n }\n }\n return result ;\n }"}
{"idx": 16719, "target": 0, "func": "static void dtap_mm_cm_srvc_rej ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_FALSE ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_REJ_CAUSE , NULL ) ;\n ELEM_OPT_TLV ( 0x36 , GSM_A_PDU_TYPE_DTAP , DE_MM_TIMER , \" - T3246 value\" ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 16720, "target": 0, "func": "relpRetVal relpTcpSetAuthMode ( relpTcp_t * pThis , relpAuthMode_t authmode ) {\n ENTER_RELPFUNC ;\n RELPOBJ_assert ( pThis , Tcp ) ;\n pThis -> authmode = authmode ;\n LEAVE_RELPFUNC ;\n }"}
{"idx": 16721, "target": 0, "func": "static int dissect_h245_CommunicationModeCommand ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_CommunicationModeCommand , CommunicationModeCommand_sequence ) ;\n return offset ;\n }"}
{"idx": 16722, "target": 1, "func": "static int do_execstack ( i_ctx_t * i_ctx_p , bool include_marks , os_ptr op1 ) {\n os_ptr op = osp ;\n ref * arefs = op1 -> value . refs ;\n uint asize = r_size ( op1 ) ;\n uint i ;\n ref * rq ;\n for ( i = 0 , rq = arefs + asize ;\n rq != arefs ;\n ++ i ) {\n const ref * rp = ref_stack_index ( & e_stack , ( long ) i ) ;\n if ( r_has_type_attrs ( rp , t_null , a_executable ) && ! include_marks ) continue ;\n -- rq ;\n ref_assign_old ( op1 , rq , rp , \"execstack\" ) ;\n switch ( r_type ( rq ) ) {\n case t_operator : {\n uint opidx = op_index ( rq ) ;\n if ( opidx == 0 || op_def_is_internal ( op_index_def ( opidx ) ) ) r_clear_attrs ( rq , a_executable ) ;\n break ;\n }\n case t_struct : case t_astruct : {\n const char * tname = rq -> value . pstruct ? gs_struct_type_name_string ( gs_object_type ( imemory , rq -> value . pstruct ) ) : \"NULL\" ;\n make_const_string ( rq , a_readonly | avm_foreign , strlen ( tname ) , ( const byte * ) tname ) ;\n break ;\n }\n default : ;\n }\n }\n pop ( op - op1 ) ;\n return 0 ;\n }"}
{"idx": 16723, "target": 0, "func": "static int get_str_sep ( char * buf , int buf_size , const char * * pp , int sep ) {\n const char * p , * p1 ;\n int len ;\n p = * pp ;\n p1 = strchr ( p , sep ) ;\n if ( ! p1 ) return - 1 ;\n len = p1 - p ;\n p1 ++ ;\n if ( buf_size > 0 ) {\n if ( len > buf_size - 1 ) len = buf_size - 1 ;\n memcpy ( buf , p , len ) ;\n buf [ len ] = '\\0' ;\n }\n * pp = p1 ;\n return 0 ;\n }"}
{"idx": 16724, "target": 0, "func": "static int dissect_h245_T_mobileMultilinkFrameCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_mobileMultilinkFrameCapability , T_mobileMultilinkFrameCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 16725, "target": 0, "func": "static int lag_decode_prob ( GetBitContext * gb , uint32_t * value ) {\n static const uint8_t series [ ] = {\n 1 , 2 , 3 , 5 , 8 , 13 , 21 }\n ;\n int i ;\n int bit = 0 ;\n int bits = 0 ;\n int prevbit = 0 ;\n unsigned val ;\n for ( i = 0 ;\n i < 7 ;\n i ++ ) {\n if ( prevbit && bit ) break ;\n prevbit = bit ;\n bit = get_bits1 ( gb ) ;\n if ( bit && ! prevbit ) bits += series [ i ] ;\n }\n bits -- ;\n if ( bits < 0 || bits > 31 ) {\n * value = 0 ;\n return - 1 ;\n }\n else if ( bits == 0 ) {\n * value = 0 ;\n return 0 ;\n }\n val = get_bits_long ( gb , bits ) ;\n val |= 1 << bits ;\n * value = val - 1 ;\n return 0 ;\n }"}
{"idx": 16726, "target": 0, "func": "static cmsBool BuildAbsolutePath ( const char * relPath , const char * basePath , char * buffer , cmsUInt32Number MaxLen ) {\n char * tail ;\n cmsUInt32Number len ;\n if ( isabsolutepath ( relPath ) ) {\n strncpy ( buffer , relPath , MaxLen ) ;\n buffer [ MaxLen - 1 ] = 0 ;\n return TRUE ;\n }\n strncpy ( buffer , basePath , MaxLen ) ;\n buffer [ MaxLen - 1 ] = 0 ;\n tail = strrchr ( buffer , DIR_CHAR ) ;\n if ( tail == NULL ) return FALSE ;\n len = ( cmsUInt32Number ) ( tail - buffer ) ;\n if ( len >= MaxLen ) return FALSE ;\n strncpy ( tail + 1 , relPath , MaxLen - len ) ;\n return TRUE ;\n }"}
{"idx": 16727, "target": 0, "func": "static int opt_show_ ## section ( const char * opt , const char * arg ) {\n mark_section_show_entries ( SECTION_ID_ ## target_section_id , 1 , NULL ) ;\n return 0 ;\n }\n DEFINE_OPT_SHOW_SECTION ( chapters , CHAPTERS ) DEFINE_OPT_SHOW_SECTION ( error , ERROR ) DEFINE_OPT_SHOW_SECTION ( format , FORMAT ) DEFINE_OPT_SHOW_SECTION ( frames , FRAMES )"}
{"idx": 16728, "target": 0, "func": "static int scannum ( struct vars * v ) {\n int n = 0 ;\n while ( SEE ( DIGIT ) && n < DUPMAX ) {\n n = n * 10 + v -> nextvalue ;\n NEXT ( ) ;\n }\n if ( SEE ( DIGIT ) || n > DUPMAX ) {\n ERR ( REG_BADBR ) ;\n return 0 ;\n }\n return n ;\n }"}
{"idx": 16729, "target": 0, "func": "static GFile * get_target_file ( GFile * src , GFile * dest_dir , const char * dest_fs_type , gboolean same_fs ) {\n return get_target_file_with_custom_name ( src , dest_dir , dest_fs_type , same_fs , NULL ) ;\n }"}
{"idx": 16730, "target": 0, "func": "proto_item * proto_tree_add_time ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , const nstime_t * value_ptr ) {\n proto_item * pi ;\n header_field_info * hfinfo ;\n CHECK_FOR_NULL_TREE ( tree ) ;\n TRY_TO_FAKE_THIS_ITEM ( tree , hfindex , hfinfo ) ;\n DISSECTOR_ASSERT_FIELD_TYPE_IS_TIME ( hfinfo ) ;\n pi = proto_tree_add_pi ( tree , hfinfo , tvb , start , & length ) ;\n proto_tree_set_time ( PNODE_FINFO ( pi ) , value_ptr ) ;\n return pi ;\n }"}
{"idx": 16731, "target": 0, "func": "MSG_PROCESS_RETURN tls_process_change_cipher_spec ( SSL * s , PACKET * pkt ) {\n int al ;\n long remain ;\n remain = PACKET_remaining ( pkt ) ;\n if ( SSL_IS_DTLS ( s ) ) {\n if ( ( s -> version == DTLS1_BAD_VER && remain != DTLS1_CCS_HEADER_LENGTH + 1 ) || ( s -> version != DTLS1_BAD_VER && remain != DTLS1_CCS_HEADER_LENGTH - 1 ) ) {\n al = SSL_AD_ILLEGAL_PARAMETER ;\n SSLerr ( SSL_F_TLS_PROCESS_CHANGE_CIPHER_SPEC , SSL_R_BAD_CHANGE_CIPHER_SPEC ) ;\n goto f_err ;\n }\n }\n else {\n if ( remain != 0 ) {\n al = SSL_AD_ILLEGAL_PARAMETER ;\n SSLerr ( SSL_F_TLS_PROCESS_CHANGE_CIPHER_SPEC , SSL_R_BAD_CHANGE_CIPHER_SPEC ) ;\n goto f_err ;\n }\n }\n if ( s -> s3 -> tmp . new_cipher == NULL ) {\n al = SSL_AD_UNEXPECTED_MESSAGE ;\n SSLerr ( SSL_F_TLS_PROCESS_CHANGE_CIPHER_SPEC , SSL_R_CCS_RECEIVED_EARLY ) ;\n goto f_err ;\n }\n s -> s3 -> change_cipher_spec = 1 ;\n if ( ! ssl3_do_change_cipher_spec ( s ) ) {\n al = SSL_AD_INTERNAL_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CHANGE_CIPHER_SPEC , ERR_R_INTERNAL_ERROR ) ;\n goto f_err ;\n }\n if ( SSL_IS_DTLS ( s ) ) {\n dtls1_reset_seq_numbers ( s , SSL3_CC_READ ) ;\n if ( s -> version == DTLS1_BAD_VER ) s -> d1 -> handshake_read_seq ++ ;\n # ifndef OPENSSL_NO_SCTP BIO_ctrl ( SSL_get_wbio ( s ) , BIO_CTRL_DGRAM_SCTP_AUTH_CCS_RCVD , 1 , NULL ) ;\n # endif }\n return MSG_PROCESS_CONTINUE_READING ;\n f_err : ssl3_send_alert ( s , SSL3_AL_FATAL , al ) ;\n ossl_statem_set_error ( s ) ;\n return MSG_PROCESS_ERROR ;\n }"}
{"idx": 16732, "target": 0, "func": "static bool isAssignmentIndirectionExpr ( ExprState * exprstate ) {\n if ( exprstate == NULL ) return false ;\n if ( IsA ( exprstate , FieldStoreState ) ) {\n FieldStore * fstore = ( FieldStore * ) exprstate -> expr ;\n if ( fstore -> arg && IsA ( fstore -> arg , CaseTestExpr ) ) return true ;\n }\n else if ( IsA ( exprstate , ArrayRefExprState ) ) {\n ArrayRef * arrayRef = ( ArrayRef * ) exprstate -> expr ;\n if ( arrayRef -> refexpr && IsA ( arrayRef -> refexpr , CaseTestExpr ) ) return true ;\n }\n return false ;\n }"}
{"idx": 16733, "target": 0, "func": "static void isa_cirrus_vga_realizefn ( DeviceState * dev , Error * * errp ) {\n ISADevice * isadev = ISA_DEVICE ( dev ) ;\n ISACirrusVGAState * d = ISA_CIRRUS_VGA ( dev ) ;\n VGACommonState * s = & d -> cirrus_vga . vga ;\n if ( s -> vram_size_mb != 4 && s -> vram_size_mb != 8 && s -> vram_size_mb != 16 ) {\n error_setg ( errp , \"Invalid cirrus_vga ram size '%u'\" , s -> vram_size_mb ) ;\n return ;\n }\n vga_common_init ( s , OBJECT ( dev ) , true ) ;\n cirrus_init_common ( & d -> cirrus_vga , OBJECT ( dev ) , CIRRUS_ID_CLGD5430 , 0 , isa_address_space ( isadev ) , isa_address_space_io ( isadev ) ) ;\n s -> con = graphic_console_init ( dev , 0 , s -> hw_ops , s ) ;\n rom_add_vga ( VGABIOS_CIRRUS_FILENAME ) ;\n }"}
{"idx": 16734, "target": 0, "func": "TSAction TSNetConnectTransparent ( TSCont contp , sockaddr const * client_addr , sockaddr const * server_addr ) {\n sdk_assert ( sdk_sanity_check_continuation ( contp ) == TS_SUCCESS ) ;\n sdk_assert ( ats_is_ip ( server_addr ) ) ;\n sdk_assert ( ats_ip_are_compatible ( client_addr , server_addr ) ) ;\n NetVCOptions opt ;\n opt . addr_binding = NetVCOptions : : FOREIGN_ADDR ;\n opt . local_ip . assign ( client_addr ) ;\n opt . local_port = ats_ip_port_host_order ( client_addr ) ;\n FORCE_PLUGIN_SCOPED_MUTEX ( contp ) ;\n return reinterpret_cast < TSAction > ( netProcessor . connect_re ( reinterpret_cast < INKContInternal * > ( contp ) , server_addr , & opt ) ) ;\n }"}
{"idx": 16735, "target": 1, "func": "Jbig2Segment * jbig2_parse_segment_header ( Jbig2Ctx * ctx , uint8_t * buf , size_t buf_size , size_t * p_header_size ) {\n Jbig2Segment * result ;\n uint8_t rtscarf ;\n uint32_t rtscarf_long ;\n uint32_t * referred_to_segments ;\n int referred_to_segment_count ;\n int referred_to_segment_size ;\n int pa_size ;\n int offset ;\n if ( buf_size < 11 ) return NULL ;\n result = jbig2_new ( ctx , Jbig2Segment , 1 ) ;\n if ( result == NULL ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , - 1 , \"failed to allocate segment in jbig2_parse_segment_header\" ) ;\n return result ;\n }\n result -> number = jbig2_get_uint32 ( buf ) ;\n result -> flags = buf [ 4 ] ;\n rtscarf = buf [ 5 ] ;\n if ( ( rtscarf & 0xe0 ) == 0xe0 ) {\n rtscarf_long = jbig2_get_uint32 ( buf + 5 ) ;\n referred_to_segment_count = rtscarf_long & 0x1fffffff ;\n offset = 5 + 4 + ( referred_to_segment_count + 1 ) / 8 ;\n }\n else {\n referred_to_segment_count = ( rtscarf >> 5 ) ;\n offset = 5 + 1 ;\n }\n result -> referred_to_segment_count = referred_to_segment_count ;\n referred_to_segment_size = result -> number <= 256 ? 1 : result -> number <= 65536 ? 2 : 4 ;\n pa_size = result -> flags & 0x40 ? 4 : 1 ;\n if ( offset + referred_to_segment_count * referred_to_segment_size + pa_size + 4 > buf_size ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_DEBUG , result -> number , \"jbig2_parse_segment_header() called with insufficient data\" , - 1 ) ;\n jbig2_free ( ctx -> allocator , result ) ;\n return NULL ;\n }\n if ( referred_to_segment_count ) {\n int i ;\n referred_to_segments = jbig2_new ( ctx , uint32_t , referred_to_segment_count * referred_to_segment_size ) ;\n if ( referred_to_segments == NULL ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , - 1 , \"could not allocate referred_to_segments \" \"in jbig2_parse_segment_header\" ) ;\n return NULL ;\n }\n for ( i = 0 ;\n i < referred_to_segment_count ;\n i ++ ) {\n referred_to_segments [ i ] = ( referred_to_segment_size == 1 ) ? buf [ offset ] : ( referred_to_segment_size == 2 ) ? jbig2_get_uint16 ( buf + offset ) : jbig2_get_uint32 ( buf + offset ) ;\n offset += referred_to_segment_size ;\n jbig2_error ( ctx , JBIG2_SEVERITY_DEBUG , result -> number , \"segment %d refers to segment %d\" , result -> number , referred_to_segments [ i ] ) ;\n }\n result -> referred_to_segments = referred_to_segments ;\n }\n else {\n result -> referred_to_segments = NULL ;\n }\n if ( result -> flags & 0x40 ) {\n result -> page_association = jbig2_get_uint32 ( buf + offset ) ;\n offset += 4 ;\n }\n else {\n result -> page_association = buf [ offset ++ ] ;\n }\n jbig2_error ( ctx , JBIG2_SEVERITY_DEBUG , result -> number , \"segment %d is associated with page %d\" , result -> number , result -> page_association ) ;\n result -> data_length = jbig2_get_uint32 ( buf + offset ) ;\n * p_header_size = offset + 4 ;\n result -> result = NULL ;\n return result ;\n }"}
{"idx": 16736, "target": 0, "func": "static void vapic_do_enable_tpr_reporting ( void * data ) {\n VAPICEnableTPRReporting * info = data ;\n apic_enable_tpr_access_reporting ( info -> apic , info -> enable ) ;\n }"}
{"idx": 16737, "target": 0, "func": "void eval_expr ( VAR * v , const char * p , const char * * p_end , bool open_end , bool do_eval ) {\n DBUG_ENTER ( \"eval_expr\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"p: '%s'\" , p ) ) ;\n if ( ! do_eval ) goto NO_EVAL ;\n if ( * p == '$' ) {\n VAR * vp ;\n const char * expected_end = * p_end ;\n if ( ( vp = var_get ( p , p_end , 0 , 0 ) ) ) var_copy ( v , vp ) ;\n v -> str_val [ v -> str_val_len ] = 0 ;\n const char * end = * p_end + 1 ;\n if ( end < expected_end && ! open_end ) die ( \"Found junk '%.*s' after $variable in expression\" , ( int ) ( expected_end - end - 1 ) , end ) ;\n DBUG_VOID_RETURN ;\n }\n if ( * p == '`' ) {\n var_query_set ( v , p , p_end ) ;\n DBUG_VOID_RETURN ;\n }\n {\n const char * get_value_str = \"query_get_value\" ;\n const size_t len = strlen ( get_value_str ) ;\n if ( strncmp ( p , get_value_str , len ) == 0 ) {\n struct st_command command ;\n memset ( & command , 0 , sizeof ( command ) ) ;\n command . query = ( char * ) p ;\n command . first_word_len = len ;\n command . first_argument = command . query + len ;\n command . end = ( char * ) * p_end ;\n command . abort_on_error = 1 ;\n var_set_query_get_value ( & command , v ) ;\n DBUG_VOID_RETURN ;\n }\n }\n NO_EVAL : {\n int new_val_len = ( p_end && * p_end ) ? ( int ) ( * p_end - p ) : ( int ) strlen ( p ) ;\n if ( new_val_len + 1 >= v -> alloced_len ) {\n static int MIN_VAR_ALLOC = 32 ;\n v -> alloced_len = ( new_val_len < MIN_VAR_ALLOC - 1 ) ? MIN_VAR_ALLOC : new_val_len + 1 ;\n if ( ! ( v -> str_val = v -> str_val ? ( char * ) my_realloc ( v -> str_val , v -> alloced_len + 1 , MYF ( MY_WME ) ) : ( char * ) my_malloc ( v -> alloced_len + 1 , MYF ( MY_WME ) ) ) ) die ( \"Out of memory\" ) ;\n }\n v -> str_val_len = new_val_len ;\n memcpy ( v -> str_val , p , new_val_len ) ;\n v -> str_val [ new_val_len ] = 0 ;\n var_check_int ( v ) ;\n }\n DBUG_VOID_RETURN ;\n }"}
{"idx": 16738, "target": 0, "func": "static guint16 de_auth_param_rand ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n proto_tree_add_item ( tree , hf_gsm_a_dtap_rand , tvb , offset , 16 , ENC_NA ) ;\n return ( 16 ) ;\n }"}
{"idx": 16739, "target": 0, "func": "gcry_error_t _gcry_sexp_vbuild ( gcry_sexp_t * retsexp , size_t * erroff , const char * format , va_list arg_ptr ) {\n return vsexp_sscan ( retsexp , erroff , format , strlen ( format ) , 1 , NULL , arg_ptr ) ;\n }"}
{"idx": 16740, "target": 0, "func": "void xmlInitializeGlobalState ( xmlGlobalStatePtr gs ) {\n # ifdef DEBUG_GLOBALS fprintf ( stderr , \"Initializing globals at %lu for thread %d\\n\" , ( unsigned long ) gs , xmlGetThreadId ( ) ) ;\n # endif if ( xmlThrDefMutex == NULL ) xmlInitGlobals ( ) ;\n xmlMutexLock ( xmlThrDefMutex ) ;\n # if defined ( LIBXML_DOCB_ENABLED ) && defined ( LIBXML_LEGACY_ENABLED ) && defined ( LIBXML_SAX1_ENABLED ) initdocbDefaultSAXHandler ( & gs -> docbDefaultSAXHandler ) ;\n # endif # if defined ( LIBXML_HTML_ENABLED ) && defined ( LIBXML_LEGACY_ENABLED ) && defined ( LIBXML_SAX1_ENABLED ) inithtmlDefaultSAXHandler ( & gs -> htmlDefaultSAXHandler ) ;\n # endif gs -> oldXMLWDcompatibility = 0 ;\n gs -> xmlBufferAllocScheme = xmlBufferAllocSchemeThrDef ;\n gs -> xmlDefaultBufferSize = xmlDefaultBufferSizeThrDef ;\n # if defined ( LIBXML_SAX1_ENABLED ) && defined ( LIBXML_LEGACY_ENABLED ) initxmlDefaultSAXHandler ( & gs -> xmlDefaultSAXHandler , 1 ) ;\n # endif gs -> xmlDefaultSAXLocator . getPublicId = xmlSAX2GetPublicId ;\n gs -> xmlDefaultSAXLocator . getSystemId = xmlSAX2GetSystemId ;\n gs -> xmlDefaultSAXLocator . getLineNumber = xmlSAX2GetLineNumber ;\n gs -> xmlDefaultSAXLocator . getColumnNumber = xmlSAX2GetColumnNumber ;\n gs -> xmlDoValidityCheckingDefaultValue = xmlDoValidityCheckingDefaultValueThrDef ;\n # if defined ( DEBUG_MEMORY_LOCATION ) | defined ( DEBUG_MEMORY ) gs -> xmlFree = ( xmlFreeFunc ) xmlMemFree ;\n gs -> xmlMalloc = ( xmlMallocFunc ) xmlMemMalloc ;\n gs -> xmlMallocAtomic = ( xmlMallocFunc ) xmlMemMalloc ;\n gs -> xmlRealloc = ( xmlReallocFunc ) xmlMemRealloc ;\n gs -> xmlMemStrdup = ( xmlStrdupFunc ) xmlMemoryStrdup ;\n # else gs -> xmlFree = ( xmlFreeFunc ) free ;\n gs -> xmlMalloc = ( xmlMallocFunc ) malloc ;\n gs -> xmlMallocAtomic = ( xmlMallocFunc ) malloc ;\n gs -> xmlRealloc = ( xmlReallocFunc ) realloc ;\n gs -> xmlMemStrdup = ( xmlStrdupFunc ) xmlStrdup ;\n # endif gs -> xmlGetWarningsDefaultValue = xmlGetWarningsDefaultValueThrDef ;\n gs -> xmlIndentTreeOutput = xmlIndentTreeOutputThrDef ;\n gs -> xmlTreeIndentString = xmlTreeIndentStringThrDef ;\n gs -> xmlKeepBlanksDefaultValue = xmlKeepBlanksDefaultValueThrDef ;\n gs -> xmlLineNumbersDefaultValue = xmlLineNumbersDefaultValueThrDef ;\n gs -> xmlLoadExtDtdDefaultValue = xmlLoadExtDtdDefaultValueThrDef ;\n gs -> xmlParserDebugEntities = xmlParserDebugEntitiesThrDef ;\n gs -> xmlParserVersion = LIBXML_VERSION_STRING ;\n gs -> xmlPedanticParserDefaultValue = xmlPedanticParserDefaultValueThrDef ;\n gs -> xmlSaveNoEmptyTags = xmlSaveNoEmptyTagsThrDef ;\n gs -> xmlSubstituteEntitiesDefaultValue = xmlSubstituteEntitiesDefaultValueThrDef ;\n gs -> xmlGenericError = xmlGenericErrorThrDef ;\n gs -> xmlStructuredError = xmlStructuredErrorThrDef ;\n gs -> xmlGenericErrorContext = xmlGenericErrorContextThrDef ;\n gs -> xmlStructuredErrorContext = xmlStructuredErrorContextThrDef ;\n gs -> xmlRegisterNodeDefaultValue = xmlRegisterNodeDefaultValueThrDef ;\n gs -> xmlDeregisterNodeDefaultValue = xmlDeregisterNodeDefaultValueThrDef ;\n gs -> xmlParserInputBufferCreateFilenameValue = xmlParserInputBufferCreateFilenameValueThrDef ;\n gs -> xmlOutputBufferCreateFilenameValue = xmlOutputBufferCreateFilenameValueThrDef ;\n memset ( & gs -> xmlLastError , 0 , sizeof ( xmlError ) ) ;\n xmlMutexUnlock ( xmlThrDefMutex ) ;\n }"}
{"idx": 16741, "target": 0, "func": "void vp9_loop_filter_dealloc ( VP9LfSync * lf_sync ) {\n if ( lf_sync != NULL ) {\n # if CONFIG_MULTITHREAD int i ;\n if ( lf_sync -> mutex_ != NULL ) {\n for ( i = 0 ;\n i < lf_sync -> rows ;\n ++ i ) {\n pthread_mutex_destroy ( & lf_sync -> mutex_ [ i ] ) ;\n }\n vpx_free ( lf_sync -> mutex_ ) ;\n }\n if ( lf_sync -> cond_ != NULL ) {\n for ( i = 0 ;\n i < lf_sync -> rows ;\n ++ i ) {\n pthread_cond_destroy ( & lf_sync -> cond_ [ i ] ) ;\n }\n vpx_free ( lf_sync -> cond_ ) ;\n }\n # endif vpx_free ( lf_sync -> cur_sb_col ) ;\n vp9_zero ( * lf_sync ) ;\n }\n }"}
{"idx": 16742, "target": 0, "func": "TSNextProtocolSet TSGetcloneProtoSet ( TSAcceptor tna ) {\n NetAccept * na = reinterpret_cast < NetAccept * > ( tna ) ;\n return ( na && na -> snpa ) ? reinterpret_cast < TSNextProtocolSet > ( na -> snpa -> cloneProtoSet ( ) ) : nullptr ;\n }"}
{"idx": 16743, "target": 0, "func": "static inline int event2keytype ( int event ) {\n switch ( event ) {\n case XFRM_MSG_DELSA : return SADB_DELETE ;\n case XFRM_MSG_NEWSA : return SADB_ADD ;\n case XFRM_MSG_UPDSA : return SADB_UPDATE ;\n case XFRM_MSG_EXPIRE : return SADB_EXPIRE ;\n default : pr_err ( \"pfkey: Unknown SA event %d\\n\" , event ) ;\n break ;\n }\n return 0 ;\n }"}
{"idx": 16744, "target": 1, "func": "static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 16745, "target": 0, "func": "int qemuMonitorJSONGetBalloonInfo ( qemuMonitorPtr mon , unsigned long * currmem ) {\n int ret ;\n virJSONValuePtr cmd = qemuMonitorJSONMakeCommand ( \"query-balloon\" , NULL ) ;\n virJSONValuePtr reply = NULL ;\n * currmem = 0 ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) {\n if ( qemuMonitorJSONHasError ( reply , \"DeviceNotActive\" ) || qemuMonitorJSONHasError ( reply , \"KVMMissingCap\" ) ) goto cleanup ;\n ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n if ( ret == 0 ) {\n virJSONValuePtr data ;\n unsigned long long mem ;\n if ( ! ( data = virJSONValueObjectGet ( reply , \"return\" ) ) ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"info balloon reply was missing return data\" ) ) ;\n ret = - 1 ;\n goto cleanup ;\n }\n if ( virJSONValueObjectGetNumberUlong ( data , \"actual\" , & mem ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"info balloon reply was missing balloon data\" ) ) ;\n ret = - 1 ;\n goto cleanup ;\n }\n * currmem = ( mem / 1024 ) ;\n ret = 1 ;\n }\n }\n cleanup : virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 16746, "target": 1, "func": "static void free_picture ( AVCodecContext * avctx , Picture * pic ) {\n int i ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n av_freep ( & pic -> motion_val_base [ i ] ) ;\n av_freep ( & pic -> f . ref_index [ i ] ) ;\n }\n av_freep ( & pic -> mb_type_base ) ;\n if ( pic -> f . data [ 0 ] ) avctx -> release_buffer ( avctx , & pic -> f ) ;\n av_freep ( & pic ) ;\n }"}
{"idx": 16747, "target": 0, "func": "PHP_MINIT_FUNCTION ( spl_directory ) {\n REGISTER_SPL_STD_CLASS_EX ( SplFileInfo , spl_filesystem_object_new , spl_SplFileInfo_functions ) ;\n memcpy ( & spl_filesystem_object_handlers , zend_get_std_object_handlers ( ) , sizeof ( zend_object_handlers ) ) ;\n spl_filesystem_object_handlers . clone_obj = spl_filesystem_object_clone ;\n spl_filesystem_object_handlers . cast_object = spl_filesystem_object_cast ;\n spl_filesystem_object_handlers . get_debug_info = spl_filesystem_object_get_debug_info ;\n spl_ce_SplFileInfo -> serialize = zend_class_serialize_deny ;\n spl_ce_SplFileInfo -> unserialize = zend_class_unserialize_deny ;\n REGISTER_SPL_SUB_CLASS_EX ( DirectoryIterator , SplFileInfo , spl_filesystem_object_new , spl_DirectoryIterator_functions ) ;\n zend_class_implements ( spl_ce_DirectoryIterator TSRMLS_CC , 1 , zend_ce_iterator ) ;\n REGISTER_SPL_IMPLEMENTS ( DirectoryIterator , SeekableIterator ) ;\n spl_ce_DirectoryIterator -> get_iterator = spl_filesystem_dir_get_iterator ;\n REGISTER_SPL_SUB_CLASS_EX ( FilesystemIterator , DirectoryIterator , spl_filesystem_object_new , spl_FilesystemIterator_functions ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( FilesystemIterator , \"CURRENT_MODE_MASK\" , SPL_FILE_DIR_CURRENT_MODE_MASK ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( FilesystemIterator , \"CURRENT_AS_PATHNAME\" , SPL_FILE_DIR_CURRENT_AS_PATHNAME ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( FilesystemIterator , \"CURRENT_AS_FILEINFO\" , SPL_FILE_DIR_CURRENT_AS_FILEINFO ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( FilesystemIterator , \"CURRENT_AS_SELF\" , SPL_FILE_DIR_CURRENT_AS_SELF ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( FilesystemIterator , \"KEY_MODE_MASK\" , SPL_FILE_DIR_KEY_MODE_MASK ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( FilesystemIterator , \"KEY_AS_PATHNAME\" , SPL_FILE_DIR_KEY_AS_PATHNAME ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( FilesystemIterator , \"FOLLOW_SYMLINKS\" , SPL_FILE_DIR_FOLLOW_SYMLINKS ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( FilesystemIterator , \"KEY_AS_FILENAME\" , SPL_FILE_DIR_KEY_AS_FILENAME ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( FilesystemIterator , \"NEW_CURRENT_AND_KEY\" , SPL_FILE_DIR_KEY_AS_FILENAME | SPL_FILE_DIR_CURRENT_AS_FILEINFO ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( FilesystemIterator , \"OTHER_MODE_MASK\" , SPL_FILE_DIR_OTHERS_MASK ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( FilesystemIterator , \"SKIP_DOTS\" , SPL_FILE_DIR_SKIPDOTS ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( FilesystemIterator , \"UNIX_PATHS\" , SPL_FILE_DIR_UNIXPATHS ) ;\n spl_ce_FilesystemIterator -> get_iterator = spl_filesystem_tree_get_iterator ;\n REGISTER_SPL_SUB_CLASS_EX ( RecursiveDirectoryIterator , FilesystemIterator , spl_filesystem_object_new , spl_RecursiveDirectoryIterator_functions ) ;\n REGISTER_SPL_IMPLEMENTS ( RecursiveDirectoryIterator , RecursiveIterator ) ;\n memcpy ( & spl_filesystem_object_check_handlers , & spl_filesystem_object_handlers , sizeof ( zend_object_handlers ) ) ;\n spl_filesystem_object_check_handlers . get_method = spl_filesystem_object_get_method_check ;\n # ifdef HAVE_GLOB REGISTER_SPL_SUB_CLASS_EX ( GlobIterator , FilesystemIterator , spl_filesystem_object_new_check , spl_GlobIterator_functions ) ;\n REGISTER_SPL_IMPLEMENTS ( GlobIterator , Countable ) ;\n # endif REGISTER_SPL_SUB_CLASS_EX ( SplFileObject , SplFileInfo , spl_filesystem_object_new_check , spl_SplFileObject_functions ) ;\n REGISTER_SPL_IMPLEMENTS ( SplFileObject , RecursiveIterator ) ;\n REGISTER_SPL_IMPLEMENTS ( SplFileObject , SeekableIterator ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( SplFileObject , \"DROP_NEW_LINE\" , SPL_FILE_OBJECT_DROP_NEW_LINE ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( SplFileObject , \"READ_AHEAD\" , SPL_FILE_OBJECT_READ_AHEAD ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( SplFileObject , \"SKIP_EMPTY\" , SPL_FILE_OBJECT_SKIP_EMPTY ) ;\n REGISTER_SPL_CLASS_CONST_LONG ( SplFileObject , \"READ_CSV\" , SPL_FILE_OBJECT_READ_CSV ) ;\n REGISTER_SPL_SUB_CLASS_EX ( SplTempFileObject , SplFileObject , spl_filesystem_object_new_check , spl_SplTempFileObject_functions ) ;\n return SUCCESS ;\n }"}
{"idx": 16748, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PrintPreviewDialogControllerBrowserTest , ReloadInitiatorTab ) {\n PrintPreview ( ) ;\n WebContents * preview_dialog = GetPrintPreviewDialog ( ) ;\n ASSERT_TRUE ( preview_dialog ) ;\n ASSERT_NE ( initiator ( ) , preview_dialog ) ;\n PrintPreviewDialogDestroyedObserver dialog_destroyed_observer ( preview_dialog ) ;\n chrome : : Reload ( browser ( ) , WindowOpenDisposition : : CURRENT_TAB ) ;\n content : : WaitForLoadStop ( browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) ) ;\n ASSERT_TRUE ( dialog_destroyed_observer . dialog_destroyed ( ) ) ;\n PrintPreview ( ) ;\n WebContents * new_preview_dialog = GetPrintPreviewDialog ( ) ;\n EXPECT_TRUE ( new_preview_dialog ) ;\n }"}
{"idx": 16749, "target": 0, "func": "TEST_F ( TemplateURLTest , DisplayURLToURLRef ) {\n struct TestData {\n const std : : string url ;\n const base : : string16 expected_result ;\n }\n test_data [ ] = {\n {\n \"http://foo{\nsearchTerms}\nx{\ninputEncoding}\ny{\noutputEncoding}\na\" , ASCIIToUTF16 ( \"http://foo%sx{\ninputEncoding}\ny{\noutputEncoding}\na\" ) }\n , {\n \"http://X\" , ASCIIToUTF16 ( \"http://X\" ) }\n , {\n \"http://foo{\nsearchTerms\" , ASCIIToUTF16 ( \"http://foo{\nsearchTerms\" ) }\n , {\n \"http://foo{\nsearchTerms}\n{\nlanguage}\n\" , ASCIIToUTF16 ( \"http://foo%s{\nlanguage}\n\" ) }\n , }\n ;\n TemplateURLData data ;\n for ( size_t i = 0 ;\n i < arraysize ( test_data ) ;\n ++ i ) {\n data . SetURL ( test_data [ i ] . url ) ;\n TemplateURL url ( data ) ;\n EXPECT_EQ ( test_data [ i ] . expected_result , url . url_ref ( ) . DisplayURL ( search_terms_data_ ) ) ;\n EXPECT_EQ ( test_data [ i ] . url , TemplateURLRef : : DisplayURLToURLRef ( url . url_ref ( ) . DisplayURL ( search_terms_data_ ) ) ) ;\n }\n }"}
{"idx": 16750, "target": 0, "func": "static void spoolss_printer_specific_rights ( tvbuff_t * tvb , gint offset , proto_tree * tree , guint32 access ) {\n proto_tree_add_boolean ( tree , hf_printer_access_use , tvb , offset , 4 , access ) ;\n proto_tree_add_boolean ( tree , hf_printer_access_admin , tvb , offset , 4 , access ) ;\n }"}
{"idx": 16751, "target": 0, "func": "int qemuMonitorTextSetMigrationSpeed ( qemuMonitorPtr mon , unsigned long bandwidth ) {\n char * cmd = NULL ;\n char * info = NULL ;\n int ret = - 1 ;\n if ( virAsprintf ( & cmd , \"migrate_set_speed %lum\" , bandwidth ) < 0 ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & info ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , _ ( \"could not restrict migration speed\" ) ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( info ) ;\n VIR_FREE ( cmd ) ;\n return ret ;\n }"}
{"idx": 16752, "target": 0, "func": "static void network_init ( PCIBus * pci_bus ) {\n int i ;\n for ( i = 0 ;\n i < nb_nics ;\n i ++ ) {\n NICInfo * nd = & nd_table [ i ] ;\n const char * default_devaddr = NULL ;\n if ( i == 0 && ( ! nd -> model || strcmp ( nd -> model , \"rtl8139\" ) == 0 ) ) {\n default_devaddr = \"07\" ;\n }\n pci_nic_init_nofail ( nd , pci_bus , \"rtl8139\" , default_devaddr ) ;\n }\n }"}
{"idx": 16753, "target": 0, "func": "static byte * i_alloc_bytes_immovable ( gs_memory_t * mem , uint size , client_name_t cname ) {\n gs_ref_memory_t * const imem = ( gs_ref_memory_t * ) mem ;\n obj_header_t * obj ;\n # ifdef MEMENTO if ( Memento_failThisEvent ( ) ) return NULL ;\n # endif obj = alloc_obj ( imem , size , & st_bytes , ALLOC_IMMOVABLE | ALLOC_DIRECT , cname ) ;\n if ( obj == 0 ) return 0 ;\n alloc_trace ( \"|+b.\" , imem , cname , NULL , size , obj ) ;\n return ( byte * ) obj ;\n }"}
{"idx": 16754, "target": 1, "func": "static void aacsbr_func_ptr_init ( AACSBRContext * c ) {\n c -> sbr_lf_gen = sbr_lf_gen ;\n c -> sbr_hf_assemble = sbr_hf_assemble ;\n c -> sbr_x_gen = sbr_x_gen ;\n c -> sbr_hf_inverse_filter = sbr_hf_inverse_filter ;\n if ( ARCH_MIPS ) ff_aacsbr_func_ptr_init_mips ( c ) ;\n }"}
{"idx": 16755, "target": 0, "func": "static int matroska_parse_wavpack ( MatroskaTrack * track , uint8_t * src , uint8_t * * pdst , int * size ) {\n uint8_t * dst = NULL ;\n int dstlen = 0 ;\n int srclen = * size ;\n uint32_t samples ;\n uint16_t ver ;\n int ret , offset = 0 ;\n if ( srclen < 12 || track -> stream -> codec -> extradata_size < 2 ) return AVERROR_INVALIDDATA ;\n ver = AV_RL16 ( track -> stream -> codec -> extradata ) ;\n samples = AV_RL32 ( src ) ;\n src += 4 ;\n srclen -= 4 ;\n while ( srclen >= 8 ) {\n int multiblock ;\n uint32_t blocksize ;\n uint8_t * tmp ;\n uint32_t flags = AV_RL32 ( src ) ;\n uint32_t crc = AV_RL32 ( src + 4 ) ;\n src += 8 ;\n srclen -= 8 ;\n multiblock = ( flags & 0x1800 ) != 0x1800 ;\n if ( multiblock ) {\n if ( srclen < 4 ) {\n ret = AVERROR_INVALIDDATA ;\n goto fail ;\n }\n blocksize = AV_RL32 ( src ) ;\n src += 4 ;\n srclen -= 4 ;\n }\n else blocksize = srclen ;\n if ( blocksize > srclen ) {\n ret = AVERROR_INVALIDDATA ;\n goto fail ;\n }\n tmp = av_realloc ( dst , dstlen + blocksize + 32 ) ;\n if ( ! tmp ) {\n ret = AVERROR ( ENOMEM ) ;\n goto fail ;\n }\n dst = tmp ;\n dstlen += blocksize + 32 ;\n AV_WL32 ( dst + offset , MKTAG ( 'w' , 'v' , 'p' , 'k' ) ) ;\n AV_WL32 ( dst + offset + 4 , blocksize + 24 ) ;\n AV_WL16 ( dst + offset + 8 , ver ) ;\n AV_WL16 ( dst + offset + 10 , 0 ) ;\n AV_WL32 ( dst + offset + 12 , 0 ) ;\n AV_WL32 ( dst + offset + 16 , 0 ) ;\n AV_WL32 ( dst + offset + 20 , samples ) ;\n AV_WL32 ( dst + offset + 24 , flags ) ;\n AV_WL32 ( dst + offset + 28 , crc ) ;\n memcpy ( dst + offset + 32 , src , blocksize ) ;\n src += blocksize ;\n srclen -= blocksize ;\n offset += blocksize + 32 ;\n }\n * pdst = dst ;\n * size = dstlen ;\n return 0 ;\n fail : av_freep ( & dst ) ;\n return ret ;\n }"}
{"idx": 16756, "target": 0, "func": "static inline unsigned char * wb_buffptr ( struct archive_write * a ) {\n struct iso9660 * iso9660 = ( struct iso9660 * ) a -> format_data ;\n return ( & ( iso9660 -> wbuff [ sizeof ( iso9660 -> wbuff ) - iso9660 -> wbuff_remaining ] ) ) ;\n }"}
{"idx": 16757, "target": 0, "func": "static int update_branch ( struct branch * b ) {\n static const char * msg = \"fast-import\" ;\n struct ref_transaction * transaction ;\n unsigned char old_sha1 [ 20 ] ;\n struct strbuf err = STRBUF_INIT ;\n if ( is_null_sha1 ( b -> sha1 ) ) {\n if ( b -> delete ) delete_ref ( b -> name , NULL , 0 ) ;\n return 0 ;\n }\n if ( read_ref ( b -> name , old_sha1 ) ) hashclr ( old_sha1 ) ;\n if ( ! force_update && ! is_null_sha1 ( old_sha1 ) ) {\n struct commit * old_cmit , * new_cmit ;\n old_cmit = lookup_commit_reference_gently ( old_sha1 , 0 ) ;\n new_cmit = lookup_commit_reference_gently ( b -> sha1 , 0 ) ;\n if ( ! old_cmit || ! new_cmit ) return error ( \"Branch %s is missing commits.\" , b -> name ) ;\n if ( ! in_merge_bases ( old_cmit , new_cmit ) ) {\n warning ( \"Not updating %s\" \" (new tip %s does not contain %s)\" , b -> name , sha1_to_hex ( b -> sha1 ) , sha1_to_hex ( old_sha1 ) ) ;\n return - 1 ;\n }\n }\n transaction = ref_transaction_begin ( & err ) ;\n if ( ! transaction || ref_transaction_update ( transaction , b -> name , b -> sha1 , old_sha1 , 0 , msg , & err ) || ref_transaction_commit ( transaction , & err ) ) {\n ref_transaction_free ( transaction ) ;\n error ( \"%s\" , err . buf ) ;\n strbuf_release ( & err ) ;\n return - 1 ;\n }\n ref_transaction_free ( transaction ) ;\n strbuf_release ( & err ) ;\n return 0 ;\n }"}
{"idx": 16758, "target": 0, "func": "static const unsigned char * seq_decode_op2 ( SeqVideoContext * seq , const unsigned char * src , const unsigned char * src_end , unsigned char * dst ) {\n int i ;\n if ( src_end - src < 8 * 8 ) return NULL ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n memcpy ( dst , src , 8 ) ;\n src += 8 ;\n dst += seq -> frame . linesize [ 0 ] ;\n }\n return src ;\n }"}
{"idx": 16759, "target": 0, "func": "static bool pv_eoi_msr_needed ( void * opaque ) {\n X86CPU * cpu = opaque ;\n return cpu -> env . pv_eoi_en_msr != 0 ;\n }"}
{"idx": 16760, "target": 0, "func": "int min_heap_empty ( min_heap_t * s ) {\n return 0u == s -> n ;\n }"}
{"idx": 16761, "target": 0, "func": "static void loop_filter ( H264Context * h , int start_x , int end_x ) {\n uint8_t * dest_y , * dest_cb , * dest_cr ;\n int linesize , uvlinesize , mb_x , mb_y ;\n const int end_mb_y = h -> mb_y + FRAME_MBAFF ( h ) ;\n const int old_slice_type = h -> slice_type ;\n const int pixel_shift = h -> pixel_shift ;\n const int block_h = 16 >> h -> chroma_y_shift ;\n if ( h -> deblocking_filter ) {\n for ( mb_x = start_x ;\n mb_x < end_x ;\n mb_x ++ ) for ( mb_y = end_mb_y - FRAME_MBAFF ( h ) ;\n mb_y <= end_mb_y ;\n mb_y ++ ) {\n int mb_xy , mb_type ;\n mb_xy = h -> mb_xy = mb_x + mb_y * h -> mb_stride ;\n h -> slice_num = h -> slice_table [ mb_xy ] ;\n mb_type = h -> cur_pic . mb_type [ mb_xy ] ;\n h -> list_count = h -> list_counts [ mb_xy ] ;\n if ( FRAME_MBAFF ( h ) ) h -> mb_mbaff = h -> mb_field_decoding_flag = ! ! IS_INTERLACED ( mb_type ) ;\n h -> mb_x = mb_x ;\n h -> mb_y = mb_y ;\n dest_y = h -> cur_pic . f . data [ 0 ] + ( ( mb_x << pixel_shift ) + mb_y * h -> linesize ) * 16 ;\n dest_cb = h -> cur_pic . f . data [ 1 ] + ( mb_x << pixel_shift ) * ( 8 << CHROMA444 ( h ) ) + mb_y * h -> uvlinesize * block_h ;\n dest_cr = h -> cur_pic . f . data [ 2 ] + ( mb_x << pixel_shift ) * ( 8 << CHROMA444 ( h ) ) + mb_y * h -> uvlinesize * block_h ;\n if ( MB_FIELD ( h ) ) {\n linesize = h -> mb_linesize = h -> linesize * 2 ;\n uvlinesize = h -> mb_uvlinesize = h -> uvlinesize * 2 ;\n if ( mb_y & 1 ) {\n dest_y -= h -> linesize * 15 ;\n dest_cb -= h -> uvlinesize * ( block_h - 1 ) ;\n dest_cr -= h -> uvlinesize * ( block_h - 1 ) ;\n }\n }\n else {\n linesize = h -> mb_linesize = h -> linesize ;\n uvlinesize = h -> mb_uvlinesize = h -> uvlinesize ;\n }\n backup_mb_border ( h , dest_y , dest_cb , dest_cr , linesize , uvlinesize , 0 ) ;\n if ( fill_filter_caches ( h , mb_type ) ) continue ;\n h -> chroma_qp [ 0 ] = get_chroma_qp ( h , 0 , h -> cur_pic . qscale_table [ mb_xy ] ) ;\n h -> chroma_qp [ 1 ] = get_chroma_qp ( h , 1 , h -> cur_pic . qscale_table [ mb_xy ] ) ;\n if ( FRAME_MBAFF ( h ) ) {\n ff_h264_filter_mb ( h , mb_x , mb_y , dest_y , dest_cb , dest_cr , linesize , uvlinesize ) ;\n }\n else {\n ff_h264_filter_mb_fast ( h , mb_x , mb_y , dest_y , dest_cb , dest_cr , linesize , uvlinesize ) ;\n }\n }\n }\n h -> slice_type = old_slice_type ;\n h -> mb_x = end_x ;\n h -> mb_y = end_mb_y - FRAME_MBAFF ( h ) ;\n h -> chroma_qp [ 0 ] = get_chroma_qp ( h , 0 , h -> qscale ) ;\n h -> chroma_qp [ 1 ] = get_chroma_qp ( h , 1 , h -> qscale ) ;\n }"}
{"idx": 16762, "target": 0, "func": "static int pfkey_dump ( struct sock * sk , struct sk_buff * skb , const struct sadb_msg * hdr , void * const * ext_hdrs ) {\n u8 proto ;\n struct pfkey_sock * pfk = pfkey_sk ( sk ) ;\n if ( pfk -> dump . dump != NULL ) return - EBUSY ;\n proto = pfkey_satype2proto ( hdr -> sadb_msg_satype ) ;\n if ( proto == 0 ) return - EINVAL ;\n pfk -> dump . msg_version = hdr -> sadb_msg_version ;\n pfk -> dump . msg_portid = hdr -> sadb_msg_pid ;\n pfk -> dump . dump = pfkey_dump_sa ;\n pfk -> dump . done = pfkey_dump_sa_done ;\n xfrm_state_walk_init ( & pfk -> dump . u . state , proto ) ;\n return pfkey_do_dump ( pfk ) ;\n }"}
{"idx": 16763, "target": 0, "func": "static void build_basis ( uint8_t * perm ) {\n int i , j , x , y ;\n emms_c ( ) ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n for ( j = 0 ;\n j < 8 ;\n j ++ ) {\n for ( y = 0 ;\n y < 8 ;\n y ++ ) {\n for ( x = 0 ;\n x < 8 ;\n x ++ ) {\n double s = 0.25 * ( 1 << BASIS_SHIFT ) ;\n int index = 8 * i + j ;\n int perm_index = perm [ index ] ;\n if ( i == 0 ) s *= sqrt ( 0.5 ) ;\n if ( j == 0 ) s *= sqrt ( 0.5 ) ;\n basis [ perm_index ] [ 8 * x + y ] = lrintf ( s * cos ( ( M_PI / 8.0 ) * i * ( x + 0.5 ) ) * cos ( ( M_PI / 8.0 ) * j * ( y + 0.5 ) ) ) ;\n }\n }\n }\n }\n }"}
{"idx": 16764, "target": 0, "func": "picture_t * decoder_NewPicture ( decoder_t * p_decoder ) {\n picture_t * p_picture = p_decoder -> pf_vout_buffer_new ( p_decoder ) ;\n if ( ! p_picture ) msg_Warn ( p_decoder , \"can't get output picture\" ) ;\n return p_picture ;\n }"}
{"idx": 16765, "target": 0, "func": "static obj_header_t * large_freelist_alloc ( gs_ref_memory_t * mem , uint size ) {\n uint aligned_size = obj_align_round ( size ) ;\n uint aligned_min_size = aligned_size + sizeof ( obj_header_t ) ;\n uint aligned_max_size = aligned_min_size + obj_align_round ( aligned_min_size / 8 ) ;\n obj_header_t * best_fit = 0 ;\n obj_header_t * * best_fit_prev = NULL ;\n uint best_fit_size = max_uint ;\n obj_header_t * pfree ;\n obj_header_t * * ppfprev = & mem -> freelists [ LARGE_FREELIST_INDEX ] ;\n uint largest_size = 0 ;\n if ( aligned_size > mem -> largest_free_size ) return 0 ;\n while ( ( pfree = * ppfprev ) != 0 ) {\n uint free_size = obj_align_round ( pfree [ - 1 ] . o_size ) ;\n if ( free_size == aligned_size || ( free_size >= aligned_min_size && free_size < best_fit_size ) ) {\n best_fit = pfree ;\n best_fit_prev = ppfprev ;\n best_fit_size = pfree [ - 1 ] . o_size ;\n if ( best_fit_size <= aligned_max_size ) break ;\n }\n ppfprev = ( obj_header_t * * ) pfree ;\n if ( free_size > largest_size ) largest_size = free_size ;\n }\n if ( best_fit == 0 ) {\n mem -> largest_free_size = largest_size ;\n return 0 ;\n }\n * best_fit_prev = * ( obj_header_t * * ) best_fit ;\n trim_obj ( mem , best_fit , aligned_size , ( clump_t * ) 0 ) ;\n best_fit [ - 1 ] . o_size = size ;\n return best_fit ;\n }"}
{"idx": 16766, "target": 0, "func": "static void send_paged_response ( Operation * op , SlapReply * rs , ID * lastid , int tentries ) {\n LDAPControl * ctrls [ 2 ] ;\n BerElementBuffer berbuf ;\n BerElement * ber = ( BerElement * ) & berbuf ;\n PagedResultsCookie respcookie ;\n struct berval cookie ;\n Debug ( LDAP_DEBUG_ARGS , \"send_paged_response: lastid=0x%08lx nentries=%d\\n\" , lastid ? * lastid : 0 , rs -> sr_nentries , NULL ) ;\n ctrls [ 1 ] = NULL ;\n ber_init2 ( ber , NULL , LBER_USE_DER ) ;\n if ( lastid ) {\n respcookie = ( PagedResultsCookie ) ( * lastid ) ;\n cookie . bv_len = sizeof ( respcookie ) ;\n cookie . bv_val = ( char * ) & respcookie ;\n }\n else {\n respcookie = ( PagedResultsCookie ) 0 ;\n BER_BVSTR ( & cookie , \"\" ) ;\n }\n op -> o_conn -> c_pagedresults_state . ps_cookie = respcookie ;\n op -> o_conn -> c_pagedresults_state . ps_count = ( ( PagedResultsState * ) op -> o_pagedresults_state ) -> ps_count + rs -> sr_nentries ;\n ber_printf ( ber , \"{\niO}\n\" , 0 , & cookie ) ;\n ctrls [ 0 ] = op -> o_tmpalloc ( sizeof ( LDAPControl ) , op -> o_tmpmemctx ) ;\n if ( ber_flatten2 ( ber , & ctrls [ 0 ] -> ldctl_value , 0 ) == - 1 ) {\n goto done ;\n }\n ctrls [ 0 ] -> ldctl_oid = LDAP_CONTROL_PAGEDRESULTS ;\n ctrls [ 0 ] -> ldctl_iscritical = 0 ;\n slap_add_ctrls ( op , rs , ctrls ) ;\n rs -> sr_err = LDAP_SUCCESS ;\n send_ldap_result ( op , rs ) ;\n done : ( void ) ber_free_buf ( ber ) ;\n }"}
{"idx": 16767, "target": 0, "func": "void pause_all_vcpus ( void ) {\n CPUArchState * penv = first_cpu ;\n qemu_clock_enable ( vm_clock , false ) ;\n while ( penv ) {\n CPUState * pcpu = ENV_GET_CPU ( penv ) ;\n pcpu -> stop = true ;\n qemu_cpu_kick ( pcpu ) ;\n penv = penv -> next_cpu ;\n }\n if ( qemu_in_vcpu_thread ( ) ) {\n cpu_stop_current ( ) ;\n if ( ! kvm_enabled ( ) ) {\n penv = first_cpu ;\n while ( penv ) {\n CPUState * pcpu = ENV_GET_CPU ( penv ) ;\n pcpu -> stop = false ;\n pcpu -> stopped = true ;\n penv = penv -> next_cpu ;\n }\n return ;\n }\n }\n while ( ! all_vcpus_paused ( ) ) {\n qemu_cond_wait ( & qemu_pause_cond , & qemu_global_mutex ) ;\n penv = first_cpu ;\n while ( penv ) {\n qemu_cpu_kick ( ENV_GET_CPU ( penv ) ) ;\n penv = penv -> next_cpu ;\n }\n }\n }"}
{"idx": 16768, "target": 0, "func": "static int dissect_h225_CarrierInfo ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_CarrierInfo , CarrierInfo_sequence ) ;\n return offset ;\n }"}
{"idx": 16769, "target": 0, "func": "void EndDBCopyMode ( Archive * AHX , const char * tocEntryTag ) {\n ArchiveHandle * AH = ( ArchiveHandle * ) AHX ;\n if ( AH -> pgCopyIn ) {\n PGresult * res ;\n if ( PQputCopyEnd ( AH -> connection , NULL ) <= 0 ) exit_horribly ( modulename , \"error returned by PQputCopyEnd: %s\" , PQerrorMessage ( AH -> connection ) ) ;\n res = PQgetResult ( AH -> connection ) ;\n if ( PQresultStatus ( res ) != PGRES_COMMAND_OK ) warn_or_exit_horribly ( AH , modulename , \"COPY failed for table \\\"%s\\\": %s\" , tocEntryTag , PQerrorMessage ( AH -> connection ) ) ;\n PQclear ( res ) ;\n if ( PQgetResult ( AH -> connection ) != NULL ) write_msg ( NULL , \"WARNING: unexpected extra results during COPY of table \\\"%s\\\"\\n\" , tocEntryTag ) ;\n AH -> pgCopyIn = false ;\n }\n }"}
{"idx": 16770, "target": 0, "func": "UBool ufmt_isdigit ( UChar c , int32_t radix ) {\n int digitVal = ufmt_digitvalue ( c ) ;\n return ( UBool ) ( digitVal < radix && digitVal >= 0 ) ;\n }"}
{"idx": 16771, "target": 0, "func": "static int ar_parse_gnu_filename_table ( struct archive_read * a ) {\n struct ar * ar ;\n char * p ;\n size_t size ;\n ar = ( struct ar * ) ( a -> format -> data ) ;\n size = ar -> strtab_size ;\n for ( p = ar -> strtab ;\n p < ar -> strtab + size - 1 ;\n ++ p ) {\n if ( * p == '/' ) {\n * p ++ = '\\0' ;\n if ( * p != '\\n' ) goto bad_string_table ;\n * p = '\\0' ;\n }\n }\n if ( p != ar -> strtab + size && * p != '\\n' && * p != '`' ) goto bad_string_table ;\n ar -> strtab [ size - 1 ] = '\\0' ;\n return ( ARCHIVE_OK ) ;\n bad_string_table : archive_set_error ( & a -> archive , EINVAL , \"Invalid string table\" ) ;\n free ( ar -> strtab ) ;\n ar -> strtab = NULL ;\n return ( ARCHIVE_FATAL ) ;\n }"}
{"idx": 16772, "target": 0, "func": "hb_font_funcs_t * hb_font_funcs_reference ( hb_font_funcs_t * ffuncs ) {\n return hb_object_reference ( ffuncs ) ;\n }"}
{"idx": 16773, "target": 0, "func": "static void mspack_fmap_message ( struct mspack_file * file , const char * fmt , ... ) {\n cli_dbgmsg ( \"%s() %s\\n\" , __func__ , fmt ) ;\n }"}
{"idx": 16774, "target": 0, "func": "static void usage ( void ) {\n print_version ( ) ;\n puts ( ORACLE_WELCOME_COPYRIGHT_NOTICE ( \"2000\" ) ) ;\n puts ( \"Dumping structure and contents of MySQL databases and tables.\" ) ;\n short_usage_sub ( stdout ) ;\n print_defaults ( \"my\" , load_default_groups ) ;\n puts ( \"\" ) ;\n my_print_help ( my_long_options ) ;\n my_print_variables ( my_long_options ) ;\n }"}
{"idx": 16775, "target": 0, "func": "static int rm_read_seek ( AVFormatContext * s , int stream_index , int64_t pts , int flags ) {\n RMDemuxContext * rm = s -> priv_data ;\n if ( ff_seek_frame_binary ( s , stream_index , pts , flags ) < 0 ) return - 1 ;\n rm -> audio_pkt_cnt = 0 ;\n return 0 ;\n }"}
{"idx": 16776, "target": 0, "func": "static guint32 dissect_ies ( tvbuff_t * tvb , packet_info * pinfo , guint32 offset , proto_tree * iax_tree , proto_item * iax_item , iax2_ie_data * ie_data ) {\n DISSECTOR_ASSERT ( ie_data ) ;\n while ( offset < tvb_reported_length ( tvb ) ) {\n int ies_type = tvb_get_guint8 ( tvb , offset ) ;\n int ies_len = tvb_get_guint8 ( tvb , offset + 1 ) ;\n guint16 apparent_addr_family ;\n switch ( ies_type ) {\n case IAX_IE_DATAFORMAT : if ( ies_len != 4 ) {\n proto_tree_add_expert ( iax_tree , pinfo , & ei_iax_invalid_len , tvb , offset + 1 , 1 ) ;\n break ;\n }\n ie_data -> dataformat = tvb_get_ntohl ( tvb , offset + 2 ) ;\n break ;\n case IAX_IE_CALLED_NUMBER : iax2_info -> calledParty = wmem_strdup ( wmem_packet_scope ( ) , tvb_format_text ( tvb , offset + 2 , ies_len ) ) ;\n break ;\n case IAX_IE_CALLING_NUMBER : iax2_info -> callingParty = wmem_strdup ( wmem_packet_scope ( ) , tvb_format_text ( tvb , offset + 2 , ies_len ) ) ;\n break ;\n case IAX_IE_APPARENT_ADDR : apparent_addr_family = tvb_get_letohs ( tvb , offset + 2 ) ;\n switch ( apparent_addr_family ) {\n case LINUX_AF_INET : ie_data -> peer_ptype = PT_UDP ;\n ie_data -> peer_port = tvb_get_ntohs ( tvb , offset + 4 ) ;\n TVB_SET_ADDRESS ( & ie_data -> peer_address , AT_IPv4 , tvb , offset + 6 , 4 ) ;\n break ;\n default : expert_add_info_format ( pinfo , iax_item , & ei_iax_peer_address_unsupported , \"Not supported in IAX dissector: peer address family of %u\" , apparent_addr_family ) ;\n break ;\n }\n break ;\n }\n if ( iax_tree && ies_type < NUM_HF_IAX2_IES ) {\n proto_item * ti , * ie_item = NULL ;\n proto_tree * ies_tree ;\n int ie_hf = hf_iax2_ies [ ies_type ] ;\n ies_tree = proto_tree_add_subtree ( iax_tree , tvb , offset , ies_len + 2 , ett_iax2_ie , & ti , \" \" ) ;\n proto_tree_add_uint ( ies_tree , hf_iax2_ie_id , tvb , offset , 1 , ies_type ) ;\n proto_tree_add_uint ( ies_tree , hf_iax2_length , tvb , offset + 1 , 1 , ies_len ) ;\n switch ( ies_type ) {\n case IAX_IE_DATETIME : ie_item = dissect_datetime_ie ( tvb , offset , ies_tree ) ;\n break ;\n case IAX_IE_CAPABILITY : {\n proto_tree * codec_tree ;\n if ( ies_len != 4 ) {\n proto_tree_add_expert ( ies_tree , pinfo , & ei_iax_invalid_len , tvb , offset + 1 , 1 ) ;\n break ;\n }\n ie_item = proto_tree_add_item ( ies_tree , ie_hf , tvb , offset + 2 , ies_len , ENC_BIG_ENDIAN ) ;\n codec_tree = proto_item_add_subtree ( ie_item , ett_iax2_codecs ) ;\n proto_tree_add_item ( codec_tree , hf_iax2_cap_g723_1 , tvb , offset + 2 , ies_len , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( codec_tree , hf_iax2_cap_gsm , tvb , offset + 2 , ies_len , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( codec_tree , hf_iax2_cap_ulaw , tvb , offset + 2 , ies_len , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( codec_tree , hf_iax2_cap_alaw , tvb , offset + 2 , ies_len , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( codec_tree , hf_iax2_cap_g726_aal2 , tvb , offset + 2 , ies_len , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( codec_tree , hf_iax2_cap_adpcm , tvb , offset + 2 , ies_len , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( codec_tree , hf_iax2_cap_slinear , tvb , offset + 2 , ies_len , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( codec_tree , hf_iax2_cap_lpc10 , tvb , offset + 2 , ies_len , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( codec_tree , hf_iax2_cap_g729a , tvb , offset + 2 , ies_len , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( codec_tree , hf_iax2_cap_speex , tvb , offset + 2 , ies_len , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( codec_tree , hf_iax2_cap_ilbc , tvb , offset + 2 , ies_len , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( codec_tree , hf_iax2_cap_g726 , tvb , offset + 2 , ies_len , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( codec_tree , hf_iax2_cap_g722 , tvb , offset + 2 , ies_len , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( codec_tree , hf_iax2_cap_siren7 , tvb , offset + 2 , ies_len , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( codec_tree , hf_iax2_cap_siren14 , tvb , offset + 2 , ies_len , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( codec_tree , hf_iax2_cap_slinear16 , tvb , offset + 2 , ies_len , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( codec_tree , hf_iax2_cap_jpeg , tvb , offset + 2 , ies_len , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( codec_tree , hf_iax2_cap_png , tvb , offset + 2 , ies_len , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( codec_tree , hf_iax2_cap_h261 , tvb , offset + 2 , ies_len , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( codec_tree , hf_iax2_cap_h263 , tvb , offset + 2 , ies_len , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( codec_tree , hf_iax2_cap_h263_plus , tvb , offset + 2 , ies_len , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( codec_tree , hf_iax2_cap_h264 , tvb , offset + 2 , ies_len , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( codec_tree , hf_iax2_cap_mpeg4 , tvb , offset + 2 , ies_len , ENC_BIG_ENDIAN ) ;\n break ;\n }\n case IAX_IE_APPARENT_ADDR : {\n proto_tree * sockaddr_tree ;\n sockaddr_tree = proto_tree_add_subtree ( ies_tree , tvb , offset + 2 , 16 , ett_iax2_ies_apparent_addr , & ie_item , \"Apparent Address\" ) ;\n apparent_addr_family = tvb_get_letohs ( tvb , offset + 2 ) ;\n proto_tree_add_uint ( sockaddr_tree , hf_IAX_IE_APPARENTADDR_SINFAMILY , tvb , offset + 2 , 2 , apparent_addr_family ) ;\n if ( apparent_addr_family == LINUX_AF_INET ) {\n guint32 addr ;\n proto_tree_add_uint ( sockaddr_tree , hf_IAX_IE_APPARENTADDR_SINPORT , tvb , offset + 4 , 2 , ie_data -> peer_port ) ;\n memcpy ( & addr , ie_data -> peer_address . data , 4 ) ;\n proto_tree_add_ipv4 ( sockaddr_tree , hf_IAX_IE_APPARENTADDR_SINADDR , tvb , offset + 6 , 4 , addr ) ;\n }\n break ;\n }\n default : if ( ie_hf != - 1 ) {\n gint explen = proto_registrar_get_length ( ie_hf ) ;\n if ( explen != 0 && ies_len != explen ) {\n proto_tree_add_expert ( ies_tree , pinfo , & ei_iax_invalid_len , tvb , offset + 1 , 1 ) ;\n break ;\n }\n switch ( proto_registrar_get_ftype ( ie_hf ) ) {\n case FT_UINT8 : case FT_UINT16 : case FT_UINT24 : case FT_UINT32 : case FT_UINT64 : case FT_INT8 : case FT_INT16 : case FT_INT24 : case FT_INT32 : case FT_INT64 : case FT_BOOLEAN : case FT_IPv4 : ie_item = proto_tree_add_item ( ies_tree , ie_hf , tvb , offset + 2 , ies_len , ENC_BIG_ENDIAN ) ;\n break ;\n case FT_BYTES : case FT_NONE : ie_item = proto_tree_add_item ( ies_tree , ie_hf , tvb , offset + 2 , ies_len , ENC_NA ) ;\n break ;\n case FT_STRING : case FT_STRINGZ : ie_item = proto_tree_add_item ( ies_tree , ie_hf , tvb , offset + 2 , ies_len , ENC_UTF_8 | ENC_NA ) ;\n break ;\n default : DISSECTOR_ASSERT_NOT_REACHED ( ) ;\n break ;\n }\n }\n else {\n guint32 value ;\n const guint8 * ptr ;\n const gchar * ie_name = val_to_str_ext_const ( ies_type , & iax_ies_type_ext , \"Unknown\" ) ;\n switch ( ies_len ) {\n case 1 : value = tvb_get_guint8 ( tvb , offset + 2 ) ;\n ie_item = proto_tree_add_uint_format ( ies_tree , hf_IAX_IE_UNKNOWN_BYTE , tvb , offset + 2 , 1 , value , \"%s: %#02x\" , ie_name , value ) ;\n break ;\n case 2 : value = tvb_get_ntohs ( tvb , offset + 2 ) ;\n ie_item = proto_tree_add_uint_format ( ies_tree , hf_IAX_IE_UNKNOWN_I16 , tvb , offset + 2 , 2 , value , \"%s: %#04x\" , ie_name , value ) ;\n break ;\n case 4 : value = tvb_get_ntohl ( tvb , offset + 2 ) ;\n ie_item = proto_tree_add_uint_format ( ies_tree , hf_IAX_IE_UNKNOWN_I32 , tvb , offset + 2 , 4 , value , \"%s: %#08x\" , ie_name , value ) ;\n break ;\n default : ptr = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset + 2 , ies_len , ENC_ASCII ) ;\n ie_item = proto_tree_add_string_format ( ies_tree , hf_IAX_IE_UNKNOWN_BYTES , tvb , offset + 2 , ies_len , ptr , \"%s: %s\" , ie_name , ptr ) ;\n break ;\n }\n }\n break ;\n }\n if ( ie_item && ! PROTO_ITEM_IS_HIDDEN ( ti ) ) {\n field_info * ie_finfo = PITEM_FINFO ( ie_item ) ;\n if ( ie_finfo && ie_finfo -> rep != NULL ) proto_item_set_text ( ti , \"Information Element: %s\" , ie_finfo -> rep -> representation ) ;\n else {\n guint8 * ie_val = ( guint8 * ) wmem_alloc ( wmem_packet_scope ( ) , ITEM_LABEL_LENGTH ) ;\n proto_item_fill_label ( ie_finfo , ie_val ) ;\n proto_item_set_text ( ti , \"Information Element: %s\" , ie_val ) ;\n }\n }\n }\n offset += ies_len + 2 ;\n }\n return offset ;\n }"}
{"idx": 16777, "target": 0, "func": "static int cirrus_vga_read_gr ( CirrusVGAState * s , unsigned reg_index ) {\n switch ( reg_index ) {\n case 0x00 : return s -> cirrus_shadow_gr0 ;\n case 0x01 : return s -> cirrus_shadow_gr1 ;\n case 0x02 : case 0x03 : case 0x04 : case 0x06 : case 0x07 : case 0x08 : return s -> vga . gr [ s -> vga . gr_index ] ;\n case 0x05 : default : break ;\n }\n if ( reg_index < 0x3a ) {\n return s -> vga . gr [ reg_index ] ;\n }\n else {\n # ifdef DEBUG_CIRRUS printf ( \"cirrus: inport gr_index %02x\\n\" , reg_index ) ;\n # endif return 0xff ;\n }\n }"}
{"idx": 16778, "target": 0, "func": "static void read_ifstats ( struct recvbuf * rbufp ) {\n u_int ifidx ;\n endpt * la ;\n for ( ifidx = 0 ;\n ifidx < sys_ifnum ;\n ifidx ++ ) {\n for ( la = ep_list ;\n la != NULL ;\n la = la -> elink ) if ( ifidx == la -> ifnum ) break ;\n if ( NULL == la ) continue ;\n send_ifstats_entry ( la , ifidx ) ;\n }\n ctl_flushpkt ( 0 ) ;\n }"}
{"idx": 16779, "target": 0, "func": "static int16_t * wmv2_pred_motion ( Wmv2Context * w , int * px , int * py ) {\n MpegEncContext * const s = & w -> s ;\n int xy , wrap , diff , type ;\n int16_t * A , * B , * C , * mot_val ;\n wrap = s -> b8_stride ;\n xy = s -> block_index [ 0 ] ;\n mot_val = s -> current_picture . motion_val [ 0 ] [ xy ] ;\n A = s -> current_picture . motion_val [ 0 ] [ xy - 1 ] ;\n B = s -> current_picture . motion_val [ 0 ] [ xy - wrap ] ;\n C = s -> current_picture . motion_val [ 0 ] [ xy + 2 - wrap ] ;\n if ( s -> mb_x && ! s -> first_slice_line && ! s -> mspel && w -> top_left_mv_flag ) diff = FFMAX ( FFABS ( A [ 0 ] - B [ 0 ] ) , FFABS ( A [ 1 ] - B [ 1 ] ) ) ;\n else diff = 0 ;\n if ( diff >= 8 ) type = get_bits1 ( & s -> gb ) ;\n else type = 2 ;\n if ( type == 0 ) {\n * px = A [ 0 ] ;\n * py = A [ 1 ] ;\n }\n else if ( type == 1 ) {\n * px = B [ 0 ] ;\n * py = B [ 1 ] ;\n }\n else {\n if ( s -> first_slice_line ) {\n * px = A [ 0 ] ;\n * py = A [ 1 ] ;\n }\n else {\n * px = mid_pred ( A [ 0 ] , B [ 0 ] , C [ 0 ] ) ;\n * py = mid_pred ( A [ 1 ] , B [ 1 ] , C [ 1 ] ) ;\n }\n }\n return mot_val ;\n }"}
{"idx": 16780, "target": 1, "func": "int i2d_ ## name ( type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;\n int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING )"}
{"idx": 16781, "target": 0, "func": "static int dvvideo_close ( AVCodecContext * c ) {\n DVVideoContext * s = c -> priv_data ;\n av_frame_unref ( & s -> picture ) ;\n return 0 ;\n }"}
{"idx": 16782, "target": 0, "func": "static void lsf2lsp_5 ( AMRContext * p ) {\n const uint16_t * lsf_param = p -> frame . lsf ;\n float lsf_no_r [ LP_FILTER_ORDER ] ;\n const int16_t * lsf_quantizer [ 5 ] ;\n int i ;\n lsf_quantizer [ 0 ] = lsf_5_1 [ lsf_param [ 0 ] ] ;\n lsf_quantizer [ 1 ] = lsf_5_2 [ lsf_param [ 1 ] ] ;\n lsf_quantizer [ 2 ] = lsf_5_3 [ lsf_param [ 2 ] >> 1 ] ;\n lsf_quantizer [ 3 ] = lsf_5_4 [ lsf_param [ 3 ] ] ;\n lsf_quantizer [ 4 ] = lsf_5_5 [ lsf_param [ 4 ] ] ;\n for ( i = 0 ;\n i < LP_FILTER_ORDER ;\n i ++ ) lsf_no_r [ i ] = p -> prev_lsf_r [ i ] * LSF_R_FAC * PRED_FAC_MODE_12k2 + lsf_5_mean [ i ] ;\n lsf2lsp_for_mode12k2 ( p , p -> lsp [ 1 ] , lsf_no_r , lsf_quantizer , 0 , lsf_param [ 2 ] & 1 , 0 ) ;\n lsf2lsp_for_mode12k2 ( p , p -> lsp [ 3 ] , lsf_no_r , lsf_quantizer , 2 , lsf_param [ 2 ] & 1 , 1 ) ;\n weighted_vector_sumd ( p -> lsp [ 0 ] , p -> prev_lsp_sub4 , p -> lsp [ 1 ] , 0.5 , 0.5 , LP_FILTER_ORDER ) ;\n weighted_vector_sumd ( p -> lsp [ 2 ] , p -> lsp [ 1 ] , p -> lsp [ 3 ] , 0.5 , 0.5 , LP_FILTER_ORDER ) ;\n }"}
{"idx": 16783, "target": 1, "func": "static void examine_simple_variable ( PlannerInfo * root , Var * var , VariableStatData * vardata ) {\n RangeTblEntry * rte = root -> simple_rte_array [ var -> varno ] ;\n Assert ( IsA ( rte , RangeTblEntry ) ) ;\n if ( get_relation_stats_hook && ( * get_relation_stats_hook ) ( root , rte , var -> varattno , vardata ) ) {\n if ( HeapTupleIsValid ( vardata -> statsTuple ) && ! vardata -> freefunc ) elog ( ERROR , \"no function provided to release variable stats with\" ) ;\n }\n else if ( rte -> rtekind == RTE_RELATION ) {\n vardata -> statsTuple = SearchSysCache3 ( STATRELATTINH , ObjectIdGetDatum ( rte -> relid ) , Int16GetDatum ( var -> varattno ) , BoolGetDatum ( rte -> inh ) ) ;\n vardata -> freefunc = ReleaseSysCache ;\n }\n else if ( rte -> rtekind == RTE_SUBQUERY && ! rte -> inh ) {\n Query * subquery = rte -> subquery ;\n RelOptInfo * rel ;\n TargetEntry * ste ;\n if ( var -> varattno == InvalidAttrNumber ) return ;\n if ( subquery -> setOperations || subquery -> groupClause ) return ;\n rel = find_base_rel ( root , var -> varno ) ;\n if ( rel -> subroot == NULL ) return ;\n Assert ( IsA ( rel -> subroot , PlannerInfo ) ) ;\n subquery = rel -> subroot -> parse ;\n Assert ( IsA ( subquery , Query ) ) ;\n ste = get_tle_by_resno ( subquery -> targetList , var -> varattno ) ;\n if ( ste == NULL || ste -> resjunk ) elog ( ERROR , \"subquery %s does not have attribute %d\" , rte -> eref -> aliasname , var -> varattno ) ;\n var = ( Var * ) ste -> expr ;\n if ( subquery -> distinctClause ) {\n if ( list_length ( subquery -> distinctClause ) == 1 && targetIsInSortList ( ste , InvalidOid , subquery -> distinctClause ) ) vardata -> isunique = true ;\n return ;\n }\n if ( rte -> security_barrier ) return ;\n if ( var && IsA ( var , Var ) && var -> varlevelsup == 0 ) {\n examine_simple_variable ( rel -> subroot , var , vardata ) ;\n }\n }\n else {\n }\n }"}
{"idx": 16784, "target": 1, "func": "static void await_reference_row ( Vp3DecodeContext * s , Vp3Fragment * fragment , int motion_y , int y ) {\n AVFrame * ref_frame ;\n int ref_row ;\n int border = motion_y & 1 ;\n if ( fragment -> coding_method == MODE_USING_GOLDEN || fragment -> coding_method == MODE_GOLDEN_MV ) ref_frame = & s -> golden_frame ;\n else ref_frame = & s -> last_frame ;\n ref_row = y + ( motion_y >> 1 ) ;\n ref_row = FFMAX ( FFABS ( ref_row ) , ref_row + 8 + border ) ;\n ff_thread_await_progress ( ref_frame , ref_row , 0 ) ;\n }"}
{"idx": 16785, "target": 0, "func": "static int dissect_h245_IS11172VideoCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_IS11172VideoCapability , IS11172VideoCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 16786, "target": 0, "func": "static const char * simple_avp ( diam_ctx_t * c , diam_avp_t * a , tvbuff_t * tvb , diam_sub_dis_t * diam_sub_dis_inf _U_ ) {\n char * label = NULL ;\n if ( c -> tree ) {\n proto_item * pi = proto_tree_add_item ( c -> tree , a -> hf_value , tvb , 0 , tvb_reported_length ( tvb ) , ENC_BIG_ENDIAN ) ;\n label = ( char * ) wmem_alloc ( wmem_packet_scope ( ) , ITEM_LABEL_LENGTH + 1 ) ;\n proto_item_fill_label ( PITEM_FINFO ( pi ) , label ) ;\n label = strstr ( label , \": \" ) + 2 ;\n }\n return label ;\n }"}
{"idx": 16787, "target": 0, "func": "void _zip_cdir_free ( struct zip_cdir * cd ) {\n int i ;\n if ( ! cd ) return ;\n for ( i = 0 ;\n i < cd -> nentry ;\n i ++ ) _zip_dirent_finalize ( cd -> entry + i ) ;\n free ( cd -> comment ) ;\n free ( cd -> entry ) ;\n free ( cd ) ;\n }"}
{"idx": 16788, "target": 0, "func": "void vbr_rate_correction ( int * this_frame_target , const int64_t vbr_bits_off_target ) {\n int max_delta = ( * this_frame_target * 15 ) / 100 ;\n if ( vbr_bits_off_target > 0 ) {\n * this_frame_target += ( vbr_bits_off_target > max_delta ) ? max_delta : ( int ) vbr_bits_off_target ;\n }\n else {\n * this_frame_target -= ( vbr_bits_off_target < - max_delta ) ? max_delta : ( int ) - vbr_bits_off_target ;\n }\n }"}
{"idx": 16789, "target": 0, "func": "TEST_F ( WebFrameTest , ShowVirtualKeyboardOnElementFocus ) {\n FrameTestHelpers : : WebViewHelper web_view_helper ;\n web_view_helper . InitializeRemote ( ) ;\n ShowVirtualKeyboardObserverWidgetClient web_widget_client ;\n WebLocalFrameImpl * local_frame = FrameTestHelpers : : CreateLocalChild ( * web_view_helper . RemoteMainFrame ( ) , \"child\" , WebFrameOwnerProperties ( ) , nullptr , nullptr , & web_widget_client ) ;\n RegisterMockedHttpURLLoad ( \"input_field_default.html\" ) ;\n FrameTestHelpers : : LoadFrame ( local_frame , base_url_ + \"input_field_default.html\" ) ;\n Frame : : NotifyUserActivation ( local_frame -> GetFrame ( ) , UserGestureToken : : kNewGesture ) ;\n local_frame -> ExecuteScript ( WebScriptSource ( \"window.focus();\n\" \"document.querySelector('input').focus();\n\" ) ) ;\n EXPECT_TRUE ( web_widget_client . DidShowVirtualKeyboard ( ) ) ;\n web_view_helper . Reset ( ) ;\n }"}
{"idx": 16790, "target": 0, "func": "const char * TSHttpTxnClientProtocolStackContains ( TSHttpTxn txnp , const char * tag ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n return sm -> client_protocol_contains ( ts : : StringView ( tag ) ) ;\n }"}
{"idx": 16791, "target": 0, "func": "static void pxa2xx_rtc_pre_save ( void * opaque ) {\n PXA2xxRTCState * s = ( PXA2xxRTCState * ) opaque ;\n pxa2xx_rtc_hzupdate ( s ) ;\n pxa2xx_rtc_piupdate ( s ) ;\n pxa2xx_rtc_swupdate ( s ) ;\n }"}
{"idx": 16792, "target": 0, "func": "static MagickBooleanType IsHDR ( const unsigned char * magick , const size_t length ) {\n if ( length < 10 ) return ( MagickFalse ) ;\n if ( LocaleNCompare ( ( const char * ) magick , \"#?RADIANCE\" , 10 ) == 0 ) return ( MagickTrue ) ;\n if ( LocaleNCompare ( ( const char * ) magick , \"#?RGBE\" , 6 ) == 0 ) return ( MagickTrue ) ;\n return ( MagickFalse ) ;\n }"}
{"idx": 16793, "target": 1, "func": "void vp9_lpf_horizontal_8_sse2 ( unsigned char * s , int p , const unsigned char * _blimit , const unsigned char * _limit , const unsigned char * _thresh , int count ) {\n DECLARE_ALIGNED_ARRAY ( 16 , unsigned char , flat_op2 , 16 ) ;\n DECLARE_ALIGNED_ARRAY ( 16 , unsigned char , flat_op1 , 16 ) ;\n DECLARE_ALIGNED_ARRAY ( 16 , unsigned char , flat_op0 , 16 ) ;\n DECLARE_ALIGNED_ARRAY ( 16 , unsigned char , flat_oq2 , 16 ) ;\n DECLARE_ALIGNED_ARRAY ( 16 , unsigned char , flat_oq1 , 16 ) ;\n DECLARE_ALIGNED_ARRAY ( 16 , unsigned char , flat_oq0 , 16 ) ;\n const __m128i zero = _mm_set1_epi16 ( 0 ) ;\n const __m128i blimit = _mm_load_si128 ( ( const __m128i * ) _blimit ) ;\n const __m128i limit = _mm_load_si128 ( ( const __m128i * ) _limit ) ;\n const __m128i thresh = _mm_load_si128 ( ( const __m128i * ) _thresh ) ;\n __m128i mask , hev , flat ;\n __m128i p3 , p2 , p1 , p0 , q0 , q1 , q2 , q3 ;\n __m128i q3p3 , q2p2 , q1p1 , q0p0 , p1q1 , p0q0 ;\n ( void ) count ;\n q3p3 = _mm_unpacklo_epi64 ( _mm_loadl_epi64 ( ( __m128i * ) ( s - 4 * p ) ) , _mm_loadl_epi64 ( ( __m128i * ) ( s + 3 * p ) ) ) ;\n q2p2 = _mm_unpacklo_epi64 ( _mm_loadl_epi64 ( ( __m128i * ) ( s - 3 * p ) ) , _mm_loadl_epi64 ( ( __m128i * ) ( s + 2 * p ) ) ) ;\n q1p1 = _mm_unpacklo_epi64 ( _mm_loadl_epi64 ( ( __m128i * ) ( s - 2 * p ) ) , _mm_loadl_epi64 ( ( __m128i * ) ( s + 1 * p ) ) ) ;\n q0p0 = _mm_unpacklo_epi64 ( _mm_loadl_epi64 ( ( __m128i * ) ( s - 1 * p ) ) , _mm_loadl_epi64 ( ( __m128i * ) ( s - 0 * p ) ) ) ;\n p1q1 = _mm_shuffle_epi32 ( q1p1 , 78 ) ;\n p0q0 = _mm_shuffle_epi32 ( q0p0 , 78 ) ;\n {\n const __m128i one = _mm_set1_epi8 ( 1 ) ;\n const __m128i fe = _mm_set1_epi8 ( 0xfe ) ;\n const __m128i ff = _mm_cmpeq_epi8 ( fe , fe ) ;\n __m128i abs_p1q1 , abs_p0q0 , abs_q1q0 , abs_p1p0 , work ;\n abs_p1p0 = _mm_or_si128 ( _mm_subs_epu8 ( q1p1 , q0p0 ) , _mm_subs_epu8 ( q0p0 , q1p1 ) ) ;\n abs_q1q0 = _mm_srli_si128 ( abs_p1p0 , 8 ) ;\n abs_p0q0 = _mm_or_si128 ( _mm_subs_epu8 ( q0p0 , p0q0 ) , _mm_subs_epu8 ( p0q0 , q0p0 ) ) ;\n abs_p1q1 = _mm_or_si128 ( _mm_subs_epu8 ( q1p1 , p1q1 ) , _mm_subs_epu8 ( p1q1 , q1p1 ) ) ;\n flat = _mm_max_epu8 ( abs_p1p0 , abs_q1q0 ) ;\n hev = _mm_subs_epu8 ( flat , thresh ) ;\n hev = _mm_xor_si128 ( _mm_cmpeq_epi8 ( hev , zero ) , ff ) ;\n abs_p0q0 = _mm_adds_epu8 ( abs_p0q0 , abs_p0q0 ) ;\n abs_p1q1 = _mm_srli_epi16 ( _mm_and_si128 ( abs_p1q1 , fe ) , 1 ) ;\n mask = _mm_subs_epu8 ( _mm_adds_epu8 ( abs_p0q0 , abs_p1q1 ) , blimit ) ;\n mask = _mm_xor_si128 ( _mm_cmpeq_epi8 ( mask , zero ) , ff ) ;\n mask = _mm_max_epu8 ( abs_p1p0 , mask ) ;\n work = _mm_max_epu8 ( _mm_or_si128 ( _mm_subs_epu8 ( q2p2 , q1p1 ) , _mm_subs_epu8 ( q1p1 , q2p2 ) ) , _mm_or_si128 ( _mm_subs_epu8 ( q3p3 , q2p2 ) , _mm_subs_epu8 ( q2p2 , q3p3 ) ) ) ;\n mask = _mm_max_epu8 ( work , mask ) ;\n mask = _mm_max_epu8 ( mask , _mm_srli_si128 ( mask , 8 ) ) ;\n mask = _mm_subs_epu8 ( mask , limit ) ;\n mask = _mm_cmpeq_epi8 ( mask , zero ) ;\n flat = _mm_max_epu8 ( _mm_or_si128 ( _mm_subs_epu8 ( q2p2 , q0p0 ) , _mm_subs_epu8 ( q0p0 , q2p2 ) ) , _mm_or_si128 ( _mm_subs_epu8 ( q3p3 , q0p0 ) , _mm_subs_epu8 ( q0p0 , q3p3 ) ) ) ;\n flat = _mm_max_epu8 ( abs_p1p0 , flat ) ;\n flat = _mm_max_epu8 ( flat , _mm_srli_si128 ( flat , 8 ) ) ;\n flat = _mm_subs_epu8 ( flat , one ) ;\n flat = _mm_cmpeq_epi8 ( flat , zero ) ;\n flat = _mm_and_si128 ( flat , mask ) ;\n }\n {\n const __m128i four = _mm_set1_epi16 ( 4 ) ;\n unsigned char * src = s ;\n {\n __m128i workp_a , workp_b , workp_shft ;\n p3 = _mm_unpacklo_epi8 ( _mm_loadl_epi64 ( ( __m128i * ) ( src - 4 * p ) ) , zero ) ;\n p2 = _mm_unpacklo_epi8 ( _mm_loadl_epi64 ( ( __m128i * ) ( src - 3 * p ) ) , zero ) ;\n p1 = _mm_unpacklo_epi8 ( _mm_loadl_epi64 ( ( __m128i * ) ( src - 2 * p ) ) , zero ) ;\n p0 = _mm_unpacklo_epi8 ( _mm_loadl_epi64 ( ( __m128i * ) ( src - 1 * p ) ) , zero ) ;\n q0 = _mm_unpacklo_epi8 ( _mm_loadl_epi64 ( ( __m128i * ) ( src - 0 * p ) ) , zero ) ;\n q1 = _mm_unpacklo_epi8 ( _mm_loadl_epi64 ( ( __m128i * ) ( src + 1 * p ) ) , zero ) ;\n q2 = _mm_unpacklo_epi8 ( _mm_loadl_epi64 ( ( __m128i * ) ( src + 2 * p ) ) , zero ) ;\n q3 = _mm_unpacklo_epi8 ( _mm_loadl_epi64 ( ( __m128i * ) ( src + 3 * p ) ) , zero ) ;\n workp_a = _mm_add_epi16 ( _mm_add_epi16 ( p3 , p3 ) , _mm_add_epi16 ( p2 , p1 ) ) ;\n workp_a = _mm_add_epi16 ( _mm_add_epi16 ( workp_a , four ) , p0 ) ;\n workp_b = _mm_add_epi16 ( _mm_add_epi16 ( q0 , p2 ) , p3 ) ;\n workp_shft = _mm_srli_epi16 ( _mm_add_epi16 ( workp_a , workp_b ) , 3 ) ;\n _mm_storel_epi64 ( ( __m128i * ) & flat_op2 [ 0 ] , _mm_packus_epi16 ( workp_shft , workp_shft ) ) ;\n workp_b = _mm_add_epi16 ( _mm_add_epi16 ( q0 , q1 ) , p1 ) ;\n workp_shft = _mm_srli_epi16 ( _mm_add_epi16 ( workp_a , workp_b ) , 3 ) ;\n _mm_storel_epi64 ( ( __m128i * ) & flat_op1 [ 0 ] , _mm_packus_epi16 ( workp_shft , workp_shft ) ) ;\n workp_a = _mm_add_epi16 ( _mm_sub_epi16 ( workp_a , p3 ) , q2 ) ;\n workp_b = _mm_add_epi16 ( _mm_sub_epi16 ( workp_b , p1 ) , p0 ) ;\n workp_shft = _mm_srli_epi16 ( _mm_add_epi16 ( workp_a , workp_b ) , 3 ) ;\n _mm_storel_epi64 ( ( __m128i * ) & flat_op0 [ 0 ] , _mm_packus_epi16 ( workp_shft , workp_shft ) ) ;\n workp_a = _mm_add_epi16 ( _mm_sub_epi16 ( workp_a , p3 ) , q3 ) ;\n workp_b = _mm_add_epi16 ( _mm_sub_epi16 ( workp_b , p0 ) , q0 ) ;\n workp_shft = _mm_srli_epi16 ( _mm_add_epi16 ( workp_a , workp_b ) , 3 ) ;\n _mm_storel_epi64 ( ( __m128i * ) & flat_oq0 [ 0 ] , _mm_packus_epi16 ( workp_shft , workp_shft ) ) ;\n workp_a = _mm_add_epi16 ( _mm_sub_epi16 ( workp_a , p2 ) , q3 ) ;\n workp_b = _mm_add_epi16 ( _mm_sub_epi16 ( workp_b , q0 ) , q1 ) ;\n workp_shft = _mm_srli_epi16 ( _mm_add_epi16 ( workp_a , workp_b ) , 3 ) ;\n _mm_storel_epi64 ( ( __m128i * ) & flat_oq1 [ 0 ] , _mm_packus_epi16 ( workp_shft , workp_shft ) ) ;\n workp_a = _mm_add_epi16 ( _mm_sub_epi16 ( workp_a , p1 ) , q3 ) ;\n workp_b = _mm_add_epi16 ( _mm_sub_epi16 ( workp_b , q1 ) , q2 ) ;\n workp_shft = _mm_srli_epi16 ( _mm_add_epi16 ( workp_a , workp_b ) , 3 ) ;\n _mm_storel_epi64 ( ( __m128i * ) & flat_oq2 [ 0 ] , _mm_packus_epi16 ( workp_shft , workp_shft ) ) ;\n }\n }\n {\n const __m128i t4 = _mm_set1_epi8 ( 4 ) ;\n const __m128i t3 = _mm_set1_epi8 ( 3 ) ;\n const __m128i t80 = _mm_set1_epi8 ( 0x80 ) ;\n const __m128i t1 = _mm_set1_epi8 ( 0x1 ) ;\n const __m128i ps1 = _mm_xor_si128 ( _mm_loadl_epi64 ( ( __m128i * ) ( s - 2 * p ) ) , t80 ) ;\n const __m128i ps0 = _mm_xor_si128 ( _mm_loadl_epi64 ( ( __m128i * ) ( s - 1 * p ) ) , t80 ) ;\n const __m128i qs0 = _mm_xor_si128 ( _mm_loadl_epi64 ( ( __m128i * ) ( s + 0 * p ) ) , t80 ) ;\n const __m128i qs1 = _mm_xor_si128 ( _mm_loadl_epi64 ( ( __m128i * ) ( s + 1 * p ) ) , t80 ) ;\n __m128i filt ;\n __m128i work_a ;\n __m128i filter1 , filter2 ;\n filt = _mm_and_si128 ( _mm_subs_epi8 ( ps1 , qs1 ) , hev ) ;\n work_a = _mm_subs_epi8 ( qs0 , ps0 ) ;\n filt = _mm_adds_epi8 ( filt , work_a ) ;\n filt = _mm_adds_epi8 ( filt , work_a ) ;\n filt = _mm_adds_epi8 ( filt , work_a ) ;\n filt = _mm_and_si128 ( filt , mask ) ;\n filter1 = _mm_adds_epi8 ( filt , t4 ) ;\n filter2 = _mm_adds_epi8 ( filt , t3 ) ;\n filter1 = _mm_unpacklo_epi8 ( zero , filter1 ) ;\n filter1 = _mm_srai_epi16 ( filter1 , 11 ) ;\n filter1 = _mm_packs_epi16 ( filter1 , filter1 ) ;\n filter2 = _mm_unpacklo_epi8 ( zero , filter2 ) ;\n filter2 = _mm_srai_epi16 ( filter2 , 11 ) ;\n filter2 = _mm_packs_epi16 ( filter2 , zero ) ;\n filt = _mm_adds_epi8 ( filter1 , t1 ) ;\n filt = _mm_unpacklo_epi8 ( zero , filt ) ;\n filt = _mm_srai_epi16 ( filt , 9 ) ;\n filt = _mm_packs_epi16 ( filt , zero ) ;\n filt = _mm_andnot_si128 ( hev , filt ) ;\n work_a = _mm_xor_si128 ( _mm_subs_epi8 ( qs0 , filter1 ) , t80 ) ;\n q0 = _mm_loadl_epi64 ( ( __m128i * ) flat_oq0 ) ;\n work_a = _mm_andnot_si128 ( flat , work_a ) ;\n q0 = _mm_and_si128 ( flat , q0 ) ;\n q0 = _mm_or_si128 ( work_a , q0 ) ;\n work_a = _mm_xor_si128 ( _mm_subs_epi8 ( qs1 , filt ) , t80 ) ;\n q1 = _mm_loadl_epi64 ( ( __m128i * ) flat_oq1 ) ;\n work_a = _mm_andnot_si128 ( flat , work_a ) ;\n q1 = _mm_and_si128 ( flat , q1 ) ;\n q1 = _mm_or_si128 ( work_a , q1 ) ;\n work_a = _mm_loadu_si128 ( ( __m128i * ) ( s + 2 * p ) ) ;\n q2 = _mm_loadl_epi64 ( ( __m128i * ) flat_oq2 ) ;\n work_a = _mm_andnot_si128 ( flat , work_a ) ;\n q2 = _mm_and_si128 ( flat , q2 ) ;\n q2 = _mm_or_si128 ( work_a , q2 ) ;\n work_a = _mm_xor_si128 ( _mm_adds_epi8 ( ps0 , filter2 ) , t80 ) ;\n p0 = _mm_loadl_epi64 ( ( __m128i * ) flat_op0 ) ;\n work_a = _mm_andnot_si128 ( flat , work_a ) ;\n p0 = _mm_and_si128 ( flat , p0 ) ;\n p0 = _mm_or_si128 ( work_a , p0 ) ;\n work_a = _mm_xor_si128 ( _mm_adds_epi8 ( ps1 , filt ) , t80 ) ;\n p1 = _mm_loadl_epi64 ( ( __m128i * ) flat_op1 ) ;\n work_a = _mm_andnot_si128 ( flat , work_a ) ;\n p1 = _mm_and_si128 ( flat , p1 ) ;\n p1 = _mm_or_si128 ( work_a , p1 ) ;\n work_a = _mm_loadu_si128 ( ( __m128i * ) ( s - 3 * p ) ) ;\n p2 = _mm_loadl_epi64 ( ( __m128i * ) flat_op2 ) ;\n work_a = _mm_andnot_si128 ( flat , work_a ) ;\n p2 = _mm_and_si128 ( flat , p2 ) ;\n p2 = _mm_or_si128 ( work_a , p2 ) ;\n _mm_storel_epi64 ( ( __m128i * ) ( s - 3 * p ) , p2 ) ;\n _mm_storel_epi64 ( ( __m128i * ) ( s - 2 * p ) , p1 ) ;\n _mm_storel_epi64 ( ( __m128i * ) ( s - 1 * p ) , p0 ) ;\n _mm_storel_epi64 ( ( __m128i * ) ( s + 0 * p ) , q0 ) ;\n _mm_storel_epi64 ( ( __m128i * ) ( s + 1 * p ) , q1 ) ;\n _mm_storel_epi64 ( ( __m128i * ) ( s + 2 * p ) , q2 ) ;\n }\n }"}
{"idx": 16794, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ExtensionMessageBubbleViewBrowserTest , ExtensionBubbleShowsOnStartup ) {\n TestBubbleShowsOnStartup ( ) ;\n }"}
{"idx": 16795, "target": 0, "func": "int DSA_sign ( int type , const unsigned char * dgst , int dlen , unsigned char * sig , unsigned int * siglen , DSA * dsa ) {\n DSA_SIG * s ;\n RAND_seed ( dgst , dlen ) ;\n s = DSA_do_sign ( dgst , dlen , dsa ) ;\n if ( s == NULL ) {\n * siglen = 0 ;\n return ( 0 ) ;\n }\n * siglen = i2d_DSA_SIG ( s , & sig ) ;\n DSA_SIG_free ( s ) ;\n return ( 1 ) ;\n }"}
{"idx": 16796, "target": 0, "func": "static void set_rate_control_metrics ( struct RateControlMetrics * rc , vpx_codec_enc_cfg_t * cfg ) {\n unsigned int i = 0 ;\n const double framerate = cfg -> g_timebase . den / cfg -> g_timebase . num ;\n rc -> layer_framerate [ 0 ] = framerate / cfg -> ts_rate_decimator [ 0 ] ;\n rc -> layer_pfb [ 0 ] = 1000.0 * cfg -> ts_target_bitrate [ 0 ] / rc -> layer_framerate [ 0 ] ;\n for ( i = 0 ;\n i < cfg -> ts_number_layers ;\n ++ i ) {\n if ( i > 0 ) {\n rc -> layer_framerate [ i ] = framerate / cfg -> ts_rate_decimator [ i ] ;\n rc -> layer_pfb [ i ] = 1000.0 * ( cfg -> ts_target_bitrate [ i ] - cfg -> ts_target_bitrate [ i - 1 ] ) / ( rc -> layer_framerate [ i ] - rc -> layer_framerate [ i - 1 ] ) ;\n }\n rc -> layer_input_frames [ i ] = 0 ;\n rc -> layer_enc_frames [ i ] = 0 ;\n rc -> layer_tot_enc_frames [ i ] = 0 ;\n rc -> layer_encoding_bitrate [ i ] = 0.0 ;\n rc -> layer_avg_frame_size [ i ] = 0.0 ;\n rc -> layer_avg_rate_mismatch [ i ] = 0.0 ;\n }\n }"}
{"idx": 16797, "target": 0, "func": "static void config_connection_input ( struct config_connection * conn ) {\n const char * const * args , * line ;\n switch ( i_stream_read ( conn -> input ) ) {\n case - 2 : i_error ( \"BUG: Config client connection sent too much data\" ) ;\n config_connection_destroy ( conn ) ;\n return ;\n case - 1 : config_connection_destroy ( conn ) ;\n return ;\n }\n if ( ! conn -> version_received ) {\n line = i_stream_next_line ( conn -> input ) ;\n if ( line == NULL ) return ;\n if ( ! version_string_verify ( line , \"config\" , CONFIG_CLIENT_PROTOCOL_MAJOR_VERSION ) ) {\n i_error ( \"Config client not compatible with this server \" \"(mixed old and new binaries?)\" ) ;\n config_connection_destroy ( conn ) ;\n return ;\n }\n conn -> version_received = TRUE ;\n }\n while ( ( args = config_connection_next_line ( conn ) ) != NULL ) {\n if ( args [ 0 ] == NULL ) continue ;\n if ( strcmp ( args [ 0 ] , \"REQ\" ) == 0 ) {\n if ( config_connection_request ( conn , args + 1 ) < 0 ) break ;\n }\n if ( strcmp ( args [ 0 ] , \"FILTERS\" ) == 0 ) {\n if ( config_filters_request ( conn ) < 0 ) break ;\n }\n }\n }"}
{"idx": 16798, "target": 1, "func": "static int test_recode_command2 ( xd3_stream * stream , int has_source , int variant , int change ) {\n int has_adler32 = ( variant & 0x1 ) != 0 ;\n int has_apphead = ( variant & 0x2 ) != 0 ;\n int has_secondary = ( variant & 0x4 ) != 0 ;\n int change_adler32 = ( change & 0x1 ) != 0 ;\n int change_apphead = ( change & 0x2 ) != 0 ;\n int change_secondary = ( change & 0x4 ) != 0 ;\n int recoded_adler32 = change_adler32 ? ! has_adler32 : has_adler32 ;\n int recoded_apphead = change_apphead ? ! has_apphead : has_apphead ;\n int recoded_secondary = change_secondary ? ! has_secondary : has_secondary ;\n char ecmd [ TESTBUFSIZE ] , recmd [ TESTBUFSIZE ] , dcmd [ TESTBUFSIZE ] ;\n xoff_t tsize , ssize ;\n int ret ;\n test_setup ( ) ;\n if ( ( ret = test_make_inputs ( stream , has_source ? & ssize : NULL , & tsize ) ) ) {\n return ret ;\n }\n snprintf_func ( ecmd , TESTBUFSIZE , \"%s %s -f %s %s %s %s %s %s %s\" , program_name , test_softcfg_str , has_adler32 ? \"\" : \"-n \" , has_apphead ? \"-A=encode_apphead \" : \"-A= \" , has_secondary ? \"-S djw \" : \"-S none \" , has_source ? \"-s \" : \"\" , has_source ? TEST_SOURCE_FILE : \"\" , TEST_TARGET_FILE , TEST_DELTA_FILE ) ;\n if ( ( ret = system ( ecmd ) ) != 0 ) {\n XPR ( NT \"encode command: %s\\n\" , ecmd ) ;\n stream -> msg = \"encode cmd failed\" ;\n return XD3_INTERNAL ;\n }\n snprintf_func ( recmd , TESTBUFSIZE , \"%s recode %s -f %s %s %s %s %s\" , program_name , test_softcfg_str , recoded_adler32 ? \"\" : \"-n \" , ! change_apphead ? \"\" : ( recoded_apphead ? \"-A=recode_apphead \" : \"-A= \" ) , recoded_secondary ? \"-S djw \" : \"-S none \" , TEST_DELTA_FILE , TEST_COPY_FILE ) ;\n if ( ( ret = system ( recmd ) ) != 0 ) {\n XPR ( NT \"recode command: %s\\n\" , recmd ) ;\n stream -> msg = \"recode cmd failed\" ;\n return XD3_INTERNAL ;\n }\n if ( ( ret = check_vcdiff_header ( stream , TEST_COPY_FILE , \"VCDIFF window indicator\" , \"VCD_SOURCE\" , has_source ) ) ) {\n return ret ;\n }\n if ( ( ret = check_vcdiff_header ( stream , TEST_COPY_FILE , \"VCDIFF header indicator\" , \"VCD_SECONDARY\" , recoded_secondary ) ) ) {\n return ret ;\n }\n if ( ( ret = check_vcdiff_header ( stream , TEST_COPY_FILE , \"VCDIFF window indicator\" , \"VCD_ADLER32\" , has_adler32 && recoded_adler32 ) ) ) {\n return ret ;\n }\n if ( ! change_apphead ) {\n if ( ( ret = check_vcdiff_header ( stream , TEST_COPY_FILE , \"VCDIFF header indicator\" , \"VCD_APPHEADER\" , has_apphead ) ) ) {\n return ret ;\n }\n if ( ( ret = check_vcdiff_header ( stream , TEST_COPY_FILE , \"VCDIFF application header\" , \"encode_apphead\" , has_apphead ) ) ) {\n return ret ;\n }\n }\n else {\n if ( ( ret = check_vcdiff_header ( stream , TEST_COPY_FILE , \"VCDIFF header indicator\" , \"VCD_APPHEADER\" , recoded_apphead ) ) ) {\n return ret ;\n }\n if ( recoded_apphead && ( ret = check_vcdiff_header ( stream , TEST_COPY_FILE , \"VCDIFF application header\" , \"recode_apphead\" , 1 ) ) ) {\n return ret ;\n }\n }\n snprintf_func ( dcmd , TESTBUFSIZE , \"%s -fd %s %s %s %s \" , program_name , has_source ? \"-s \" : \"\" , has_source ? TEST_SOURCE_FILE : \"\" , TEST_COPY_FILE , TEST_RECON_FILE ) ;\n if ( ( ret = system ( dcmd ) ) != 0 ) {\n XPR ( NT \"decode command: %s\\n\" , dcmd ) ;\n stream -> msg = \"decode cmd failed\" ;\n return XD3_INTERNAL ;\n }\n if ( ( ret = test_compare_files ( TEST_TARGET_FILE , TEST_RECON_FILE ) ) ) {\n return ret ;\n }\n return 0 ;\n }"}
{"idx": 16799, "target": 0, "func": "static int selinux_sb_kern_mount ( struct super_block * sb , int flags , void * data ) {\n const struct cred * cred = current_cred ( ) ;\n struct common_audit_data ad ;\n int rc ;\n rc = superblock_doinit ( sb , data ) ;\n if ( rc ) return rc ;\n if ( flags & MS_KERNMOUNT ) return 0 ;\n ad . type = LSM_AUDIT_DATA_DENTRY ;\n ad . u . dentry = sb -> s_root ;\n return superblock_has_perm ( cred , sb , FILESYSTEM__MOUNT , & ad ) ;\n }"}
{"idx": 16800, "target": 1, "func": "int ff_MPV_frame_start ( MpegEncContext * s , AVCodecContext * avctx ) {\n int i ;\n Picture * pic ;\n s -> mb_skipped = 0 ;\n if ( s -> out_format != FMT_H264 || s -> codec_id == AV_CODEC_ID_SVQ3 ) {\n if ( s -> pict_type != AV_PICTURE_TYPE_B && s -> last_picture_ptr && s -> last_picture_ptr != s -> next_picture_ptr && s -> last_picture_ptr -> f . data [ 0 ] ) {\n if ( s -> last_picture_ptr -> owner2 == s ) free_frame_buffer ( s , s -> last_picture_ptr ) ;\n }\n if ( ! s -> encoding ) {\n for ( i = 0 ;\n i < s -> picture_count ;\n i ++ ) {\n if ( s -> picture [ i ] . owner2 == s && s -> picture [ i ] . f . data [ 0 ] && & s -> picture [ i ] != s -> last_picture_ptr && & s -> picture [ i ] != s -> next_picture_ptr && s -> picture [ i ] . f . reference && ! s -> picture [ i ] . needs_realloc ) {\n if ( ! ( avctx -> active_thread_type & FF_THREAD_FRAME ) ) av_log ( avctx , AV_LOG_ERROR , \"releasing zombie picture\\n\" ) ;\n free_frame_buffer ( s , & s -> picture [ i ] ) ;\n }\n }\n }\n }\n if ( ! s -> encoding ) {\n ff_release_unused_pictures ( s , 1 ) ;\n if ( s -> current_picture_ptr && s -> current_picture_ptr -> f . data [ 0 ] == NULL ) {\n pic = s -> current_picture_ptr ;\n }\n else {\n i = ff_find_unused_picture ( s , 0 ) ;\n if ( i < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"no frame buffer available\\n\" ) ;\n return i ;\n }\n pic = & s -> picture [ i ] ;\n }\n pic -> f . reference = 0 ;\n if ( ! s -> droppable ) {\n if ( s -> codec_id == AV_CODEC_ID_H264 ) pic -> f . reference = s -> picture_structure ;\n else if ( s -> pict_type != AV_PICTURE_TYPE_B ) pic -> f . reference = 3 ;\n }\n pic -> f . coded_picture_number = s -> coded_picture_number ++ ;\n if ( ff_alloc_picture ( s , pic , 0 ) < 0 ) return - 1 ;\n s -> current_picture_ptr = pic ;\n s -> current_picture_ptr -> f . top_field_first = s -> top_field_first ;\n if ( s -> codec_id == AV_CODEC_ID_MPEG1VIDEO || s -> codec_id == AV_CODEC_ID_MPEG2VIDEO ) {\n if ( s -> picture_structure != PICT_FRAME ) s -> current_picture_ptr -> f . top_field_first = ( s -> picture_structure == PICT_TOP_FIELD ) == s -> first_field ;\n }\n s -> current_picture_ptr -> f . interlaced_frame = ! s -> progressive_frame && ! s -> progressive_sequence ;\n s -> current_picture_ptr -> field_picture = s -> picture_structure != PICT_FRAME ;\n }\n s -> current_picture_ptr -> f . pict_type = s -> pict_type ;\n s -> current_picture_ptr -> f . key_frame = s -> pict_type == AV_PICTURE_TYPE_I ;\n ff_copy_picture ( & s -> current_picture , s -> current_picture_ptr ) ;\n if ( s -> pict_type != AV_PICTURE_TYPE_B ) {\n s -> last_picture_ptr = s -> next_picture_ptr ;\n if ( ! s -> droppable ) s -> next_picture_ptr = s -> current_picture_ptr ;\n }\n av_dlog ( s -> avctx , \"L%p N%p C%p L%p N%p C%p type:%d drop:%d\\n\" , s -> last_picture_ptr , s -> next_picture_ptr , s -> current_picture_ptr , s -> last_picture_ptr ? s -> last_picture_ptr -> f . data [ 0 ] : NULL , s -> next_picture_ptr ? s -> next_picture_ptr -> f . data [ 0 ] : NULL , s -> current_picture_ptr ? s -> current_picture_ptr -> f . data [ 0 ] : NULL , s -> pict_type , s -> droppable ) ;\n if ( s -> codec_id != AV_CODEC_ID_H264 ) {\n if ( ( s -> last_picture_ptr == NULL || s -> last_picture_ptr -> f . data [ 0 ] == NULL ) && ( s -> pict_type != AV_PICTURE_TYPE_I || s -> picture_structure != PICT_FRAME ) ) {\n int h_chroma_shift , v_chroma_shift ;\n av_pix_fmt_get_chroma_sub_sample ( s -> avctx -> pix_fmt , & h_chroma_shift , & v_chroma_shift ) ;\n if ( s -> pict_type != AV_PICTURE_TYPE_I ) av_log ( avctx , AV_LOG_ERROR , \"warning: first frame is no keyframe\\n\" ) ;\n else if ( s -> picture_structure != PICT_FRAME ) av_log ( avctx , AV_LOG_INFO , \"allocate dummy last picture for field based first keyframe\\n\" ) ;\n i = ff_find_unused_picture ( s , 0 ) ;\n if ( i < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"no frame buffer available\\n\" ) ;\n return i ;\n }\n s -> last_picture_ptr = & s -> picture [ i ] ;\n if ( ff_alloc_picture ( s , s -> last_picture_ptr , 0 ) < 0 ) {\n s -> last_picture_ptr = NULL ;\n return - 1 ;\n }\n memset ( s -> last_picture_ptr -> f . data [ 0 ] , 0 , avctx -> height * s -> last_picture_ptr -> f . linesize [ 0 ] ) ;\n memset ( s -> last_picture_ptr -> f . data [ 1 ] , 0x80 , ( avctx -> height >> v_chroma_shift ) * s -> last_picture_ptr -> f . linesize [ 1 ] ) ;\n memset ( s -> last_picture_ptr -> f . data [ 2 ] , 0x80 , ( avctx -> height >> v_chroma_shift ) * s -> last_picture_ptr -> f . linesize [ 2 ] ) ;\n ff_thread_report_progress ( & s -> last_picture_ptr -> f , INT_MAX , 0 ) ;\n ff_thread_report_progress ( & s -> last_picture_ptr -> f , INT_MAX , 1 ) ;\n s -> last_picture_ptr -> f . reference = 3 ;\n }\n if ( ( s -> next_picture_ptr == NULL || s -> next_picture_ptr -> f . data [ 0 ] == NULL ) && s -> pict_type == AV_PICTURE_TYPE_B ) {\n i = ff_find_unused_picture ( s , 0 ) ;\n if ( i < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"no frame buffer available\\n\" ) ;\n return i ;\n }\n s -> next_picture_ptr = & s -> picture [ i ] ;\n if ( ff_alloc_picture ( s , s -> next_picture_ptr , 0 ) < 0 ) {\n s -> next_picture_ptr = NULL ;\n return - 1 ;\n }\n ff_thread_report_progress ( & s -> next_picture_ptr -> f , INT_MAX , 0 ) ;\n ff_thread_report_progress ( & s -> next_picture_ptr -> f , INT_MAX , 1 ) ;\n s -> next_picture_ptr -> f . reference = 3 ;\n }\n }\n if ( s -> last_picture_ptr ) ff_copy_picture ( & s -> last_picture , s -> last_picture_ptr ) ;\n if ( s -> next_picture_ptr ) ff_copy_picture ( & s -> next_picture , s -> next_picture_ptr ) ;\n if ( HAVE_THREADS && ( avctx -> active_thread_type & FF_THREAD_FRAME ) ) {\n if ( s -> next_picture_ptr ) s -> next_picture_ptr -> owner2 = s ;\n if ( s -> last_picture_ptr ) s -> last_picture_ptr -> owner2 = s ;\n }\n assert ( s -> pict_type == AV_PICTURE_TYPE_I || ( s -> last_picture_ptr && s -> last_picture_ptr -> f . data [ 0 ] ) ) ;\n if ( s -> picture_structure != PICT_FRAME && s -> out_format != FMT_H264 ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n if ( s -> picture_structure == PICT_BOTTOM_FIELD ) {\n s -> current_picture . f . data [ i ] += s -> current_picture . f . linesize [ i ] ;\n }\n s -> current_picture . f . linesize [ i ] *= 2 ;\n s -> last_picture . f . linesize [ i ] *= 2 ;\n s -> next_picture . f . linesize [ i ] *= 2 ;\n }\n }\n s -> err_recognition = avctx -> err_recognition ;\n if ( s -> mpeg_quant || s -> codec_id == AV_CODEC_ID_MPEG2VIDEO ) {\n s -> dct_unquantize_intra = s -> dct_unquantize_mpeg2_intra ;\n s -> dct_unquantize_inter = s -> dct_unquantize_mpeg2_inter ;\n }\n else if ( s -> out_format == FMT_H263 || s -> out_format == FMT_H261 ) {\n s -> dct_unquantize_intra = s -> dct_unquantize_h263_intra ;\n s -> dct_unquantize_inter = s -> dct_unquantize_h263_inter ;\n }\n else {\n s -> dct_unquantize_intra = s -> dct_unquantize_mpeg1_intra ;\n s -> dct_unquantize_inter = s -> dct_unquantize_mpeg1_inter ;\n }\n if ( s -> dct_error_sum ) {\n assert ( s -> avctx -> noise_reduction && s -> encoding ) ;\n update_noise_reduction ( s ) ;\n }\n if ( CONFIG_MPEG_XVMC_DECODER && s -> avctx -> xvmc_acceleration ) return ff_xvmc_field_start ( s , avctx ) ;\n return 0 ;\n }"}
{"idx": 16801, "target": 0, "func": "static void end_softmask ( fz_context * ctx , pdf_run_processor * pr , softmask_save * save ) {\n pdf_gstate * gstate = pr -> gstate + pr -> gtop ;\n if ( save -> softmask == NULL ) return ;\n gstate -> softmask = save -> softmask ;\n gstate -> softmask_resources = save -> page_resources ;\n gstate -> softmask_ctm = save -> ctm ;\n fz_pop_clip ( ctx , pr -> dev ) ;\n }"}
{"idx": 16802, "target": 0, "func": "const char * message_decoder_current_content_type ( struct message_decoder_context * ctx ) {\n return ctx -> content_type ;\n }"}
{"idx": 16803, "target": 0, "func": "TEST_F ( ExtensionWelcomeNotificationTest , TimeExpiredNotification ) {\n StartPreferenceSyncing ( ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissed ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissedLocal ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationPreviouslyPoppedUp ) ) ;\n EXPECT_EQ ( GetInt64Pref ( prefs : : kWelcomeNotificationExpirationTimestamp ) , 0 ) ;\n EXPECT_TRUE ( task_runner ( ) -> GetPendingTasks ( ) . empty ( ) ) ;\n ShowChromeNowNotification ( ) ;\n base : : TimeDelta requested_show_time = base : : TimeDelta : : FromDays ( ExtensionWelcomeNotification : : kRequestedShowTimeDays ) ;\n EXPECT_EQ ( task_runner ( ) -> GetPendingTasks ( ) . size ( ) , 1U ) ;\n EXPECT_EQ ( task_runner ( ) -> NextPendingTaskDelay ( ) , requested_show_time ) ;\n EXPECT_EQ ( message_center ( ) -> add_notification_calls ( ) , 1 ) ;\n EXPECT_EQ ( message_center ( ) -> remove_notification_calls ( ) , 0 ) ;\n EXPECT_EQ ( message_center ( ) -> notifications_with_shown_as_popup ( ) , 0 ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissed ) ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissedLocal ) ) ;\n EXPECT_TRUE ( GetBooleanPref ( prefs : : kWelcomeNotificationPreviouslyPoppedUp ) ) ;\n EXPECT_EQ ( GetInt64Pref ( prefs : : kWelcomeNotificationExpirationTimestamp ) , ( GetStartTime ( ) + requested_show_time ) . ToInternalValue ( ) ) ;\n SetElapsedTime ( requested_show_time ) ;\n task_runner ( ) -> RunPendingTasks ( ) ;\n EXPECT_TRUE ( task_runner ( ) -> GetPendingTasks ( ) . empty ( ) ) ;\n EXPECT_EQ ( message_center ( ) -> add_notification_calls ( ) , 1 ) ;\n EXPECT_EQ ( message_center ( ) -> remove_notification_calls ( ) , 1 ) ;\n EXPECT_EQ ( message_center ( ) -> notifications_with_shown_as_popup ( ) , 0 ) ;\n EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissed ) ) ;\n EXPECT_TRUE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissedLocal ) ) ;\n EXPECT_TRUE ( GetBooleanPref ( prefs : : kWelcomeNotificationPreviouslyPoppedUp ) ) ;\n EXPECT_EQ ( GetInt64Pref ( prefs : : kWelcomeNotificationExpirationTimestamp ) , ( GetStartTime ( ) + requested_show_time ) . ToInternalValue ( ) ) ;\n }"}
{"idx": 16804, "target": 0, "func": "static __inline__ unsigned int tipc_zone ( __u32 addr ) {\n return addr >> TIPC_ZONE_OFFSET ;\n }"}
{"idx": 16805, "target": 0, "func": "static Datum ExecEvalArray ( ArrayExprState * astate , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n ArrayExpr * arrayExpr = ( ArrayExpr * ) astate -> xprstate . expr ;\n ArrayType * result ;\n ListCell * element ;\n Oid element_type = arrayExpr -> element_typeid ;\n int ndims = 0 ;\n int dims [ MAXDIM ] ;\n int lbs [ MAXDIM ] ;\n * isNull = false ;\n if ( isDone ) * isDone = ExprSingleResult ;\n if ( ! arrayExpr -> multidims ) {\n int nelems ;\n Datum * dvalues ;\n bool * dnulls ;\n int i = 0 ;\n ndims = 1 ;\n nelems = list_length ( astate -> elements ) ;\n if ( nelems == 0 ) return PointerGetDatum ( construct_empty_array ( element_type ) ) ;\n dvalues = ( Datum * ) palloc ( nelems * sizeof ( Datum ) ) ;\n dnulls = ( bool * ) palloc ( nelems * sizeof ( bool ) ) ;\n foreach ( element , astate -> elements ) {\n ExprState * e = ( ExprState * ) lfirst ( element ) ;\n dvalues [ i ] = ExecEvalExpr ( e , econtext , & dnulls [ i ] , NULL ) ;\n i ++ ;\n }\n dims [ 0 ] = nelems ;\n lbs [ 0 ] = 1 ;\n result = construct_md_array ( dvalues , dnulls , ndims , dims , lbs , element_type , astate -> elemlength , astate -> elembyval , astate -> elemalign ) ;\n }\n else {\n int nbytes = 0 ;\n int nitems = 0 ;\n int outer_nelems = 0 ;\n int elem_ndims = 0 ;\n int * elem_dims = NULL ;\n int * elem_lbs = NULL ;\n bool firstone = true ;\n bool havenulls = false ;\n bool haveempty = false ;\n char * * subdata ;\n bits8 * * subbitmaps ;\n int * subbytes ;\n int * subnitems ;\n int i ;\n int32 dataoffset ;\n char * dat ;\n int iitem ;\n i = list_length ( astate -> elements ) ;\n subdata = ( char * * ) palloc ( i * sizeof ( char * ) ) ;\n subbitmaps = ( bits8 * * ) palloc ( i * sizeof ( bits8 * ) ) ;\n subbytes = ( int * ) palloc ( i * sizeof ( int ) ) ;\n subnitems = ( int * ) palloc ( i * sizeof ( int ) ) ;\n foreach ( element , astate -> elements ) {\n ExprState * e = ( ExprState * ) lfirst ( element ) ;\n bool eisnull ;\n Datum arraydatum ;\n ArrayType * array ;\n int this_ndims ;\n arraydatum = ExecEvalExpr ( e , econtext , & eisnull , NULL ) ;\n if ( eisnull ) {\n haveempty = true ;\n continue ;\n }\n array = DatumGetArrayTypeP ( arraydatum ) ;\n if ( element_type != ARR_ELEMTYPE ( array ) ) ereport ( ERROR , ( errcode ( ERRCODE_DATATYPE_MISMATCH ) , errmsg ( \"cannot merge incompatible arrays\" ) , errdetail ( \"Array with element type %s cannot be \" \"included in ARRAY construct with element type %s.\" , format_type_be ( ARR_ELEMTYPE ( array ) ) , format_type_be ( element_type ) ) ) ) ;\n this_ndims = ARR_NDIM ( array ) ;\n if ( this_ndims <= 0 ) {\n haveempty = true ;\n continue ;\n }\n if ( firstone ) {\n elem_ndims = this_ndims ;\n ndims = elem_ndims + 1 ;\n if ( ndims <= 0 || ndims > MAXDIM ) ereport ( ERROR , ( errcode ( ERRCODE_PROGRAM_LIMIT_EXCEEDED ) , errmsg ( \"number of array dimensions (%d) exceeds \" \\ \"the maximum allowed (%d)\" , ndims , MAXDIM ) ) ) ;\n elem_dims = ( int * ) palloc ( elem_ndims * sizeof ( int ) ) ;\n memcpy ( elem_dims , ARR_DIMS ( array ) , elem_ndims * sizeof ( int ) ) ;\n elem_lbs = ( int * ) palloc ( elem_ndims * sizeof ( int ) ) ;\n memcpy ( elem_lbs , ARR_LBOUND ( array ) , elem_ndims * sizeof ( int ) ) ;\n firstone = false ;\n }\n else {\n if ( elem_ndims != this_ndims || memcmp ( elem_dims , ARR_DIMS ( array ) , elem_ndims * sizeof ( int ) ) != 0 || memcmp ( elem_lbs , ARR_LBOUND ( array ) , elem_ndims * sizeof ( int ) ) != 0 ) ereport ( ERROR , ( errcode ( ERRCODE_ARRAY_SUBSCRIPT_ERROR ) , errmsg ( \"multidimensional arrays must have array \" \"expressions with matching dimensions\" ) ) ) ;\n }\n subdata [ outer_nelems ] = ARR_DATA_PTR ( array ) ;\n subbitmaps [ outer_nelems ] = ARR_NULLBITMAP ( array ) ;\n subbytes [ outer_nelems ] = ARR_SIZE ( array ) - ARR_DATA_OFFSET ( array ) ;\n nbytes += subbytes [ outer_nelems ] ;\n subnitems [ outer_nelems ] = ArrayGetNItems ( this_ndims , ARR_DIMS ( array ) ) ;\n nitems += subnitems [ outer_nelems ] ;\n havenulls |= ARR_HASNULL ( array ) ;\n outer_nelems ++ ;\n }\n if ( haveempty ) {\n if ( ndims == 0 ) return PointerGetDatum ( construct_empty_array ( element_type ) ) ;\n ereport ( ERROR , ( errcode ( ERRCODE_ARRAY_SUBSCRIPT_ERROR ) , errmsg ( \"multidimensional arrays must have array \" \"expressions with matching dimensions\" ) ) ) ;\n }\n dims [ 0 ] = outer_nelems ;\n lbs [ 0 ] = 1 ;\n for ( i = 1 ;\n i < ndims ;\n i ++ ) {\n dims [ i ] = elem_dims [ i - 1 ] ;\n lbs [ i ] = elem_lbs [ i - 1 ] ;\n }\n if ( havenulls ) {\n dataoffset = ARR_OVERHEAD_WITHNULLS ( ndims , nitems ) ;\n nbytes += dataoffset ;\n }\n else {\n dataoffset = 0 ;\n nbytes += ARR_OVERHEAD_NONULLS ( ndims ) ;\n }\n result = ( ArrayType * ) palloc ( nbytes ) ;\n SET_VARSIZE ( result , nbytes ) ;\n result -> ndim = ndims ;\n result -> dataoffset = dataoffset ;\n result -> elemtype = element_type ;\n memcpy ( ARR_DIMS ( result ) , dims , ndims * sizeof ( int ) ) ;\n memcpy ( ARR_LBOUND ( result ) , lbs , ndims * sizeof ( int ) ) ;\n dat = ARR_DATA_PTR ( result ) ;\n iitem = 0 ;\n for ( i = 0 ;\n i < outer_nelems ;\n i ++ ) {\n memcpy ( dat , subdata [ i ] , subbytes [ i ] ) ;\n dat += subbytes [ i ] ;\n if ( havenulls ) array_bitmap_copy ( ARR_NULLBITMAP ( result ) , iitem , subbitmaps [ i ] , 0 , subnitems [ i ] ) ;\n iitem += subnitems [ i ] ;\n }\n }\n return PointerGetDatum ( result ) ;\n }"}
{"idx": 16806, "target": 0, "func": "int tm_atnode ( tm_task_id tid , tm_node_id * node ) {\n task_info * tp ;\n if ( ! init_done ) return TM_BADINIT ;\n if ( ( tp = find_task ( tid ) ) == NULL ) return TM_ENOTFOUND ;\n * node = tp -> t_node ;\n return TM_SUCCESS ;\n }"}
{"idx": 16807, "target": 0, "func": "static enum fetch_step vbf_stp_fail ( struct worker * wrk , const struct busyobj * bo ) {\n CHECK_OBJ_NOTNULL ( wrk , WORKER_MAGIC ) ;\n CHECK_OBJ_NOTNULL ( bo , BUSYOBJ_MAGIC ) ;\n CHECK_OBJ_NOTNULL ( bo -> fetch_objcore , OBJCORE_MAGIC ) ;\n assert ( bo -> fetch_objcore -> boc -> state < BOS_FINISHED ) ;\n HSH_Fail ( bo -> fetch_objcore ) ;\n if ( ! ( bo -> fetch_objcore -> flags & OC_F_BUSY ) ) HSH_Kill ( bo -> fetch_objcore ) ;\n ObjSetState ( wrk , bo -> fetch_objcore , BOS_FAILED ) ;\n return ( F_STP_DONE ) ;\n }"}
{"idx": 16808, "target": 0, "func": "TEST_F ( NativeBackendLibsecretTest , GetAllLogins ) {\n NativeBackendLibsecret backend ( 42 ) ;\n VerifiedAdd ( & backend , form_google_ ) ;\n VerifiedAdd ( & backend , form_facebook_ ) ;\n ScopedVector < autofill : : PasswordForm > form_list ;\n EXPECT_TRUE ( backend . GetAllLogins ( & form_list ) ) ;\n ASSERT_EQ ( 2u , form_list . size ( ) ) ;\n EXPECT_THAT ( form_list , UnorderedElementsAre ( Pointee ( form_google_ ) , Pointee ( form_facebook_ ) ) ) ;\n }"}
{"idx": 16809, "target": 0, "func": "static int helpsort ( const void * t1 , const void * t2 ) {\n const char * const * name1 = t1 ;\n const char * const * name2 = t2 ;\n return strcmp ( * name1 , * name2 ) ;\n }"}
{"idx": 16810, "target": 0, "func": "void save_config ( struct recvbuf * rbufp , int restrict_mask ) {\n static const char * illegal_in_filename = # if defined ( VMS ) \":[]\" # elif defined ( SYS_WINNT ) \":\\\\/\" # else \"\\\\/\" # endif ;\n char reply [ 128 ] ;\n # ifdef SAVECONFIG char filespec [ 128 ] ;\n char filename [ 128 ] ;\n char fullpath [ 512 ] ;\n const char savedconfig_eq [ ] = \"savedconfig=\" ;\n char savedconfig [ sizeof ( savedconfig_eq ) + sizeof ( filename ) ] ;\n time_t now ;\n int fd ;\n FILE * fptr ;\n # endif if ( RES_NOMODIFY & restrict_mask ) {\n snprintf ( reply , sizeof ( reply ) , \"saveconfig prohibited by restrict ... nomodify\" ) ;\n ctl_putdata ( reply , strlen ( reply ) , 0 ) ;\n ctl_flushpkt ( 0 ) ;\n NLOG ( NLOG_SYSINFO ) msyslog ( LOG_NOTICE , \"saveconfig from %s rejected due to nomodify restriction\" , stoa ( & rbufp -> recv_srcadr ) ) ;\n sys_restricted ++ ;\n return ;\n }\n # ifdef SAVECONFIG if ( NULL == saveconfigdir ) {\n snprintf ( reply , sizeof ( reply ) , \"saveconfig prohibited, no saveconfigdir configured\" ) ;\n ctl_putdata ( reply , strlen ( reply ) , 0 ) ;\n ctl_flushpkt ( 0 ) ;\n NLOG ( NLOG_SYSINFO ) msyslog ( LOG_NOTICE , \"saveconfig from %s rejected, no saveconfigdir\" , stoa ( & rbufp -> recv_srcadr ) ) ;\n return ;\n }\n if ( 0 == reqend - reqpt ) return ;\n strlcpy ( filespec , reqpt , sizeof ( filespec ) ) ;\n time ( & now ) ;\n if ( 0 == strftime ( filename , sizeof ( filename ) , filespec , localtime ( & now ) ) ) strlcpy ( filename , filespec , sizeof ( filename ) ) ;\n if ( NULL != strpbrk ( filename , illegal_in_filename ) ) {\n snprintf ( reply , sizeof ( reply ) , \"saveconfig does not allow directory in filename\" ) ;\n ctl_putdata ( reply , strlen ( reply ) , 0 ) ;\n ctl_flushpkt ( 0 ) ;\n msyslog ( LOG_NOTICE , \"saveconfig with path from %s rejected\" , stoa ( & rbufp -> recv_srcadr ) ) ;\n return ;\n }\n snprintf ( fullpath , sizeof ( fullpath ) , \"%s%s\" , saveconfigdir , filename ) ;\n fd = open ( fullpath , O_CREAT | O_TRUNC | O_WRONLY , S_IRUSR | S_IWUSR ) ;\n if ( - 1 == fd ) fptr = NULL ;\n else fptr = fdopen ( fd , \"w\" ) ;\n if ( NULL == fptr || - 1 == dump_all_config_trees ( fptr , 1 ) ) {\n snprintf ( reply , sizeof ( reply ) , \"Unable to save configuration to file %s\" , filename ) ;\n msyslog ( LOG_ERR , \"saveconfig %s from %s failed\" , filename , stoa ( & rbufp -> recv_srcadr ) ) ;\n }\n else {\n snprintf ( reply , sizeof ( reply ) , \"Configuration saved to %s\" , filename ) ;\n msyslog ( LOG_NOTICE , \"Configuration saved to %s (requested by %s)\" , fullpath , stoa ( & rbufp -> recv_srcadr ) ) ;\n snprintf ( savedconfig , sizeof ( savedconfig ) , \"%s%s\" , savedconfig_eq , filename ) ;\n set_sys_var ( savedconfig , strlen ( savedconfig ) + 1 , RO ) ;\n }\n if ( NULL != fptr ) fclose ( fptr ) ;\n # else snprintf ( reply , sizeof ( reply ) , \"saveconfig unavailable, configured with --disable-saveconfig\" ) ;\n # endif ctl_putdata ( reply , strlen ( reply ) , 0 ) ;\n ctl_flushpkt ( 0 ) ;\n }"}
{"idx": 16811, "target": 0, "func": "void * * __xmlStructuredErrorContext ( void ) {\n if ( IS_MAIN_THREAD ) return ( & xmlStructuredErrorContext ) ;\n else return ( & xmlGetGlobalState ( ) -> xmlStructuredErrorContext ) ;\n }"}
{"idx": 16812, "target": 0, "func": "int vp9_is_skippable_in_plane ( MACROBLOCK * x , BLOCK_SIZE bsize , int plane ) {\n int result = 1 ;\n struct is_skippable_args args = {\n x , & result }\n ;\n vp9_foreach_transformed_block_in_plane ( & x -> e_mbd , bsize , plane , is_skippable , & args ) ;\n return result ;\n }"}
{"idx": 16813, "target": 0, "func": "static void gst_asf_demux_get_guid ( ASFGuid * guid , guint8 * * p_data , guint64 * p_size ) {\n g_assert ( * p_size >= 4 * sizeof ( guint32 ) ) ;\n guid -> v1 = gst_asf_demux_get_uint32 ( p_data , p_size ) ;\n guid -> v2 = gst_asf_demux_get_uint32 ( p_data , p_size ) ;\n guid -> v3 = gst_asf_demux_get_uint32 ( p_data , p_size ) ;\n guid -> v4 = gst_asf_demux_get_uint32 ( p_data , p_size ) ;\n }"}
{"idx": 16814, "target": 0, "func": "void count_bitmap_commit_list ( uint32_t * commits , uint32_t * trees , uint32_t * blobs , uint32_t * tags ) {\n assert ( bitmap_git . result ) ;\n if ( commits ) * commits = count_object_type ( bitmap_git . result , OBJ_COMMIT ) ;\n if ( trees ) * trees = count_object_type ( bitmap_git . result , OBJ_TREE ) ;\n if ( blobs ) * blobs = count_object_type ( bitmap_git . result , OBJ_BLOB ) ;\n if ( tags ) * tags = count_object_type ( bitmap_git . result , OBJ_TAG ) ;\n }"}
{"idx": 16815, "target": 1, "func": "static void activate_desktop_file ( ActivateParameters * parameters , NautilusFile * file ) {\n ActivateParametersDesktop * parameters_desktop ;\n char * primary , * secondary , * display_name ;\n GtkWidget * dialog ;\n GdkScreen * screen ;\n char * uri ;\n screen = gtk_widget_get_screen ( GTK_WIDGET ( parameters -> parent_window ) ) ;\n if ( ! nautilus_file_is_trusted_link ( file ) ) {\n parameters_desktop = g_new0 ( ActivateParametersDesktop , 1 ) ;\n if ( parameters -> parent_window ) {\n parameters_desktop -> parent_window = parameters -> parent_window ;\n g_object_add_weak_pointer ( G_OBJECT ( parameters_desktop -> parent_window ) , ( gpointer * ) & parameters_desktop -> parent_window ) ;\n }\n parameters_desktop -> file = nautilus_file_ref ( file ) ;\n primary = _ ( \"Untrusted application launcher\" ) ;\n display_name = nautilus_file_get_display_name ( file ) ;\n secondary = g_strdup_printf ( _ ( \"The application launcher \u201c%s\u201d has not been marked as trusted. \" \"If you do not know the source of this file, launching it may be unsafe.\" ) , display_name ) ;\n dialog = gtk_message_dialog_new ( parameters -> parent_window , 0 , GTK_MESSAGE_WARNING , GTK_BUTTONS_NONE , NULL ) ;\n g_object_set ( dialog , \"text\" , primary , \"secondary-text\" , secondary , NULL ) ;\n gtk_dialog_add_button ( GTK_DIALOG ( dialog ) , _ ( \"_Launch Anyway\" ) , RESPONSE_RUN ) ;\n if ( nautilus_file_can_set_permissions ( file ) ) {\n gtk_dialog_add_button ( GTK_DIALOG ( dialog ) , _ ( \"Mark as _Trusted\" ) , RESPONSE_MARK_TRUSTED ) ;\n }\n gtk_dialog_add_button ( GTK_DIALOG ( dialog ) , _ ( \"_Cancel\" ) , GTK_RESPONSE_CANCEL ) ;\n gtk_dialog_set_default_response ( GTK_DIALOG ( dialog ) , GTK_RESPONSE_CANCEL ) ;\n g_signal_connect ( dialog , \"response\" , G_CALLBACK ( untrusted_launcher_response_callback ) , parameters_desktop ) ;\n gtk_widget_show ( dialog ) ;\n g_free ( display_name ) ;\n g_free ( secondary ) ;\n return ;\n }\n uri = nautilus_file_get_uri ( file ) ;\n DEBUG ( \"Launching trusted launcher %s\" , uri ) ;\n nautilus_launch_desktop_file ( screen , uri , NULL , parameters -> parent_window ) ;\n g_free ( uri ) ;\n }"}
{"idx": 16816, "target": 0, "func": "static void call_avp_subdissector ( guint32 vendorid , guint32 code , tvbuff_t * subtvb , packet_info * pinfo , proto_tree * avp_tree , diam_sub_dis_t * diam_sub_dis_inf ) {\n TRY {\n switch ( vendorid ) {\n case 0 : dissector_try_uint_new ( diameter_dissector_table , code , subtvb , pinfo , avp_tree , FALSE , diam_sub_dis_inf ) ;\n break ;\n case VENDOR_ERICSSON : dissector_try_uint_new ( diameter_ericsson_avp_dissector_table , code , subtvb , pinfo , avp_tree , FALSE , diam_sub_dis_inf ) ;\n break ;\n case VENDOR_THE3GPP : dissector_try_uint_new ( diameter_3gpp_avp_dissector_table , code , subtvb , pinfo , avp_tree , FALSE , diam_sub_dis_inf ) ;\n break ;\n default : break ;\n }\n }\n CATCH_NONFATAL_ERRORS {\n show_exception ( subtvb , pinfo , avp_tree , EXCEPT_CODE , GET_MESSAGE ) ;\n }\n ENDTRY ;\n }"}
{"idx": 16817, "target": 0, "func": "void proto_register_AllJoyn ( void ) {\n expert_module_t * expert_alljoyn ;\n static hf_register_info hf [ ] = {\n {\n & hf_alljoyn_ns_header , {\n \"Header\" , \"alljoyn.header\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_sender_version , {\n \"Sender Version\" , \"alljoyn.header.sendversion\" , FT_UINT8 , BASE_DEC , NULL , 0xF0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_message_version , {\n \"Message Version\" , \"alljoyn.header.messageversion\" , FT_UINT8 , BASE_DEC , NULL , 0x0F , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_questions , {\n \"Questions\" , \"alljoyn.header.questions\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_answers , {\n \"Answers\" , \"alljoyn.header.answers\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_timer , {\n \"Timer\" , \"alljoyn.header.timer\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_whohas , {\n \"Who-Has Message\" , \"alljoyn.whohas\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_whohas_t_flag , {\n \"TCP\" , \"alljoyn.whohas.T\" , FT_BOOLEAN , 8 , NULL , WHOHAS_T , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_whohas_u_flag , {\n \"UDP\" , \"alljoyn.whohas.U\" , FT_BOOLEAN , 8 , NULL , WHOHAS_U , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_whohas_s_flag , {\n \"IPv6\" , \"alljoyn.whohas.S\" , FT_BOOLEAN , 8 , NULL , WHOHAS_S , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_whohas_f_flag , {\n \"IPv4\" , \"alljoyn.whohas.F\" , FT_BOOLEAN , 8 , NULL , WHOHAS_F , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_whohas_count , {\n \"Count\" , \"alljoyn.whohas.count\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_answer , {\n \"Is-At Message\" , \"alljoyn.isat\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_isat_entry , {\n \"Advertisement Entry\" , \"alljoyn.isat_entry\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_isat_guid_string , {\n \"GUID String\" , \"alljoyn.isat_guid_string\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_g_flag , {\n \"GUID\" , \"alljoyn.isat.G\" , FT_BOOLEAN , 8 , NULL , ISAT_G , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_c_flag , {\n \"Complete\" , \"alljoyn.isat.C\" , FT_BOOLEAN , 8 , NULL , ISAT_C , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_count , {\n \"Count\" , \"alljoyn.isat.count\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_ipv6 , {\n \"IPv6 Address\" , \"alljoyn.isat.ipv6\" , FT_IPv6 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_ipv4 , {\n \"IPv4 Address\" , \"alljoyn.isat.ipv4\" , FT_IPv4 , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_t_flag , {\n \"TCP\" , \"alljoyn.isat.T\" , FT_BOOLEAN , 8 , NULL , ISAT_T , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_u_flag , {\n \"UDP\" , \"alljoyn.isat.U\" , FT_BOOLEAN , 8 , NULL , ISAT_U , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_s_flag , {\n \"IPv6\" , \"alljoyn.isat.S\" , FT_BOOLEAN , 8 , NULL , ISAT_S , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_f_flag , {\n \"IPv4\" , \"alljoyn.isat.F\" , FT_BOOLEAN , 8 , NULL , ISAT_F , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_port , {\n \"Port\" , \"alljoyn.isat.port\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_u6_flag , {\n \"IPv6 UDP\" , \"alljoyn.isat.U6\" , FT_BOOLEAN , 8 , NULL , ISAT_U6 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_r6_flag , {\n \"IPv6 TCP\" , \"alljoyn.isat.R6\" , FT_BOOLEAN , 8 , NULL , ISAT_R6 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_u4_flag , {\n \"IPv4 UDP\" , \"alljoyn.isat.U4\" , FT_BOOLEAN , 8 , NULL , ISAT_U4 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_r4_flag , {\n \"IPv4 TCP\" , \"alljoyn.isat.R4\" , FT_BOOLEAN , 8 , NULL , ISAT_R4 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_transport_mask , {\n \"Transport Mask\" , \"alljoyn.isat.TransportMask\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_transport_mask_local , {\n \"Local Transport\" , \"alljoyn.isat.TransportMask.Local\" , FT_BOOLEAN , 16 , NULL , TRANSPORT_LOCAL , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_transport_mask_bluetooth , {\n \"Bluetooth Transport\" , \"alljoyn.isat.TransportMask.Bluetooth\" , FT_BOOLEAN , 16 , NULL , TRANSPORT_BLUETOOTH , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_transport_mask_tcp , {\n \"TCP Transport\" , \"alljoyn.isat.TransportMask.TCP\" , FT_BOOLEAN , 16 , NULL , TRANSPORT_TCP , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_transport_mask_wwan , {\n \"Wirelesss WAN Transport\" , \"alljoyn.isat.TransportMask.WWAN\" , FT_BOOLEAN , 16 , NULL , TRANSPORT_WWAN , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_transport_mask_lan , {\n \"Wired LAN Transport\" , \"alljoyn.isat.TransportMask.LAN\" , FT_BOOLEAN , 16 , NULL , TRANSPORT_LAN , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_transport_mask_ice , {\n \"ICE protocol Transport\" , \"alljoyn.isat.TransportMask.ICE\" , FT_BOOLEAN , 16 , NULL , TRANSPORT_ICE , NULL , HFILL }\n }\n , {\n & hf_alljoyn_ns_isat_transport_mask_wfd , {\n \"Wi-Fi Direct Transport\" , \"alljoyn.isat.TransportMask.WFD\" , FT_BOOLEAN , 16 , NULL , TRANSPORT_WFD , NULL , HFILL }\n }\n , {\n & hf_alljoyn_connect_byte_value , {\n \"Connect Initial Byte\" , \"alljoyn.InitialByte\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_sasl_command , {\n \"SASL command\" , \"alljoyn.SASL.command\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_sasl_parameter , {\n \"SASL parameter\" , \"alljoyn.SASL.parameter\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header , {\n \"Message Header\" , \"alljoyn.mess_header\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header_endian , {\n \"Endianness\" , \"alljoyn.mess_header.endianess\" , FT_UINT8 , BASE_DEC , VALS ( endian_encoding_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header_type , {\n \"Message type\" , \"alljoyn.mess_header.type\" , FT_UINT8 , BASE_DEC , VALS ( message_header_encoding_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header_flags , {\n \"Flags\" , \"alljoyn.mess_header.flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header_flags_no_reply , {\n \"No reply expected\" , \"alljoyn.mess_header.flags.noreply\" , FT_BOOLEAN , 8 , NULL , MESSAGE_HEADER_FLAG_NO_REPLY_EXPECTED , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header_flags_no_auto_start , {\n \"No auto start\" , \"alljoyn.mess_header.flags.noautostart\" , FT_BOOLEAN , 8 , NULL , MESSAGE_HEADER_FLAG_NO_AUTO_START , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header_flags_allow_remote_msg , {\n \"Allow remote messages\" , \"alljoyn.mess_header.flags.allowremotemessages\" , FT_BOOLEAN , 8 , NULL , MESSAGE_HEADER_FLAG_ALLOW_REMOTE_MSG , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header_flags_sessionless , {\n \"Sessionless\" , \"alljoyn.mess_header.flags.sessionless\" , FT_BOOLEAN , 8 , NULL , MESSAGE_HEADER_FLAG_SESSIONLESS , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header_flags_global_broadcast , {\n \"Allow global broadcast\" , \"alljoyn.mess_header.flags.globalbroadcast\" , FT_BOOLEAN , 8 , NULL , MESSAGE_HEADER_FLAG_GLOBAL_BROADCAST , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header_flags_compressed , {\n \"Compressed\" , \"alljoyn.mess_header.flags.compressed\" , FT_BOOLEAN , 8 , NULL , MESSAGE_HEADER_FLAG_COMPRESSED , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header_flags_encrypted , {\n \"Encrypted\" , \"alljoyn.mess_header.flags.encrypted\" , FT_BOOLEAN , 8 , NULL , MESSAGE_HEADER_FLAG_ENCRYPTED , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header_majorversion , {\n \"Major version\" , \"alljoyn.mess_header.majorversion\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header_body_length , {\n \"Body length\" , \"alljoyn.mess_header.bodylength\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header_serial , {\n \"Serial number\" , \"alljoyn.mess_header.serial\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header_header_length , {\n \"Header length\" , \"alljoyn.mess_header.headerlength\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header_fields , {\n \"Header fields\" , \"alljoyn.mess_header.fields\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_header_field , {\n \"Header field\" , \"alljoyn.mess_header.field\" , FT_UINT8 , BASE_HEX , VALS ( mess_header_field_encoding_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_body_header_fieldcode , {\n \"Field code\" , \"alljoyn.message.fieldcode\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_body_header_typeid , {\n \"Type ID\" , \"alljoyn.message.typeid\" , FT_UINT8 , BASE_CUSTOM , CF_FUNC ( alljoyn_typeid ) , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_body_parameters , {\n \"Parameters\" , \"alljoyn.parameters\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_body_array , {\n \"Array\" , \"alljoyn.array\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_body_structure , {\n \"struct\" , \"alljoyn.structure\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_body_dictionary_entry , {\n \"dictionary entry\" , \"alljoyn.dictionary_entry\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_body_variant , {\n \"Variant '\" , \"alljoyn.variant\" , FT_NONE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_body_signature_length , {\n \"Signature length\" , \"alljoyn.parameter.signature_length\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_mess_body_signature , {\n \"Signature\" , \"alljoyn.parameter.signature\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_boolean , {\n \"Boolean\" , \"alljoyn.boolean\" , FT_BOOLEAN , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_uint8 , {\n \"Unsigned byte\" , \"alljoyn.uint8\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_int16 , {\n \"Signed int16\" , \"alljoyn.int16\" , FT_INT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_uint16 , {\n \"Unsigned int16\" , \"alljoyn.uint16\" , FT_UINT16 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_handle , {\n \"Handle\" , \"alljoyn.handle\" , FT_UINT32 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_int32 , {\n \"Signed int32\" , \"alljoyn.int32\" , FT_INT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_uint32 , {\n \"Unsigned int32\" , \"alljoyn.uint32\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_int64 , {\n \"Signed int64\" , \"alljoyn.int64\" , FT_INT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_uint64 , {\n \"Unsigned int64\" , \"alljoyn.uint64\" , FT_UINT64 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_double , {\n \"Double\" , \"alljoyn.double\" , FT_DOUBLE , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_padding , {\n \"Padding\" , \"alljoyn.padding\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_string , {\n \"Bus Name\" , \"alljoyn.string\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_string_size_8bit , {\n \"String Size 8-bit\" , \"alljoyn.string.size8bit\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_string_size_32bit , {\n \"String Size 32-bit\" , \"alljoyn.string.size32bit\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_alljoyn_string_data , {\n \"String Data\" , \"alljoyn.string.data\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ardp_syn_flag , {\n \"SYN\" , \"ardp.hdr.SYN\" , FT_BOOLEAN , 8 , NULL , ARDP_SYN , NULL , HFILL }\n }\n , {\n & hf_ardp_ack_flag , {\n \"ACK\" , \"ardp.hdr.ACK\" , FT_BOOLEAN , 8 , NULL , ARDP_ACK , NULL , HFILL }\n }\n , {\n & hf_ardp_eak_flag , {\n \"EAK\" , \"ardp.hdr.EAK\" , FT_BOOLEAN , 8 , NULL , ARDP_EAK , NULL , HFILL }\n }\n , {\n & hf_ardp_rst_flag , {\n \"RST\" , \"ardp.hdr.RST\" , FT_BOOLEAN , 8 , NULL , ARDP_RST , NULL , HFILL }\n }\n , {\n & hf_ardp_nul_flag , {\n \"NUL\" , \"ardp.hdr.NUL\" , FT_BOOLEAN , 8 , NULL , ARDP_NUL , NULL , HFILL }\n }\n , {\n & hf_ardp_unused_flag , {\n \"UNUSED\" , \"ardp.hdr.UNUSED\" , FT_BOOLEAN , 8 , NULL , ARDP_UNUSED , NULL , HFILL }\n }\n , {\n & hf_ardp_version_field , {\n \"VER\" , \"ardp.hdr.ver\" , FT_UINT8 , BASE_HEX , NULL , ARDP_VER , NULL , HFILL }\n }\n , {\n & hf_ardp_hlen , {\n \"Header Length\" , \"ardp.hdr.hlen\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ardp_src , {\n \"Source Port\" , \"ardp.hdr.src\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ardp_dst , {\n \"Destination Port\" , \"ardp.hdr.dst\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ardp_dlen , {\n \"Data Length\" , \"ardp.hdr.dlen\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ardp_seq , {\n \"Sequence\" , \"ardp.hdr.seq\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ardp_ack , {\n \"Acknowledge\" , \"ardp.hdr.ack\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ardp_ttl , {\n \"Time to Live\" , \"ardp.hdr.ttl\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ardp_lcs , {\n \"Last Consumed Sequence\" , \"ardp.hdr.lcs\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ardp_nsa , {\n \"Next Sequence to ACK\" , \"ardp.hdr.nsa\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ardp_fss , {\n \"Fragment Starting Sequence\" , \"ardp.hdr.fss\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ardp_fcnt , {\n \"Fragment Count\" , \"ardp.hdr.fcnt\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ardp_bmp , {\n \"EACK Bitmap\" , \"ardp.hdr.bmp\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ardp_segmax , {\n \"Segment Max\" , \"ardp.hdr.segmentmax\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ardp_segbmax , {\n \"Segment Buffer Max\" , \"ardp.hdr.segmentbmax\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ardp_dackt , {\n \"Receiver's delayed ACK timeout\" , \"ardp.hdr.dackt\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_ardp_options , {\n \"Options\" , \"ardp.hdr.options\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , }\n ;\n static gint * ett [ ] = {\n & ett_alljoyn_ns , & ett_alljoyn_ns_header , & ett_alljoyn_ns_answers , & ett_alljoyn_ns_guid_string , & ett_alljoyn_ns_isat_entry , & ett_alljoyn_ns_string , & ett_alljoyn_whohas , & ett_alljoyn_string , & ett_alljoyn_isat_entry , & ett_alljoyn_mess , & ett_alljoyn_header , & ett_alljoyn_header_flags , & ett_alljoyn_mess_header_field , & ett_alljoyn_mess_header , & ett_alljoyn_mess_body_parameters , & ett_alljoyn_ardp }\n ;\n static ei_register_info ei [ ] = {\n {\n & ei_alljoyn_empty_arg , {\n \"alljoyn.empty_arg\" , PI_MALFORMED , PI_ERROR , \"Argument is empty\" , EXPFILL }\n }\n }\n ;\n proto_AllJoyn_ns = proto_register_protocol ( \"AllJoyn Name Service Protocol\" , \"AllJoyn NS\" , \"ajns\" ) ;\n proto_AllJoyn_mess = proto_register_protocol ( \"AllJoyn Message Protocol\" , \"AllJoyn\" , \"aj\" ) ;\n proto_register_field_array ( proto_AllJoyn_ns , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n expert_alljoyn = expert_register_protocol ( proto_AllJoyn_mess ) ;\n expert_register_field_array ( expert_alljoyn , ei , array_length ( ei ) ) ;\n proto_AllJoyn_ardp = proto_register_protocol ( \"AllJoyn Reliable Datagram Protocol\" , \"AllJoyn ARDP\" , \"ardp\" ) ;\n }"}
{"idx": 16818, "target": 0, "func": "static void http_delay_reply ( int fd , short what , void * arg ) {\n struct evhttp_request * req = arg ;\n evhttp_send_reply ( req , HTTP_OK , \"Everything is fine\" , NULL ) ;\n ++ test_ok ;\n }"}
{"idx": 16819, "target": 1, "func": "static int dissect_h225_Information_UUIE ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 399 \"./asn1/h225/h225.cnf\" h225_packet_info * h225_pi ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_Information_UUIE , Information_UUIE_sequence ) ;\n # line 403 \"./asn1/h225/h225.cnf\" h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> cs_type = H225_INFORMATION ;\n g_snprintf ( h225_pi -> frame_label , 50 , \"%s\" , val_to_str ( h225_pi -> cs_type , T_h323_message_body_vals , \"<unknown>\" ) ) ;\n }\n return offset ;\n }"}
{"idx": 16820, "target": 0, "func": "static int dissect_h245_T_pixelAspectInformation ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_pixelAspectInformation , T_pixelAspectInformation_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 16821, "target": 0, "func": "static void encode_aspect_ratio ( VC2EncContext * s ) {\n put_bits ( & s -> pb , 1 , ! s -> strict_compliance ) ;\n if ( ! s -> strict_compliance ) {\n AVCodecContext * avctx = s -> avctx ;\n put_vc2_ue_uint ( & s -> pb , 0 ) ;\n put_vc2_ue_uint ( & s -> pb , avctx -> sample_aspect_ratio . num ) ;\n put_vc2_ue_uint ( & s -> pb , avctx -> sample_aspect_ratio . den ) ;\n }\n }"}
{"idx": 16822, "target": 0, "func": "static int dissect_usb_vid_get_set ( packet_info * pinfo , proto_tree * tree , tvbuff_t * tvb , int offset , gboolean is_request , usb_trans_info_t * usb_trans_info , usb_conv_info_t * usb_conv_info ) {\n const gchar * short_name = NULL ;\n guint8 control_sel ;\n guint8 entity_id ;\n entity_id = usb_trans_info -> setup . wIndex >> 8 ;\n control_sel = usb_trans_info -> setup . wValue >> 8 ;\n col_append_str ( pinfo -> cinfo , COL_INFO , \" [\" ) ;\n short_name = get_control_selector_name ( entity_id , control_sel , usb_conv_info ) ;\n if ( short_name ) col_append_str ( pinfo -> cinfo , COL_INFO , short_name ) ;\n else {\n short_name = \"Unknown\" ;\n if ( entity_id == 0 ) {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"Interface %u control 0x%x\" , usb_conv_info -> interfaceNum , control_sel ) ;\n }\n else {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"Unit %u control 0x%x\" , entity_id , control_sel ) ;\n }\n }\n col_append_str ( pinfo -> cinfo , COL_INFO , \"]\" ) ;\n col_set_fence ( pinfo -> cinfo , COL_INFO ) ;\n if ( is_request ) {\n offset ++ ;\n proto_tree_add_uint_format_value ( tree , hf_usb_vid_control_selector , tvb , offset , 1 , control_sel , \"%s (0x%02x)\" , short_name , control_sel ) ;\n offset ++ ;\n proto_tree_add_item ( tree , hf_usb_vid_control_interface , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( tree , hf_usb_vid_control_entity , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( tree , hf_usb_vid_length , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n }\n else {\n proto_item * ti ;\n ti = proto_tree_add_uint ( tree , hf_usb_vid_control_interface , tvb , 0 , 0 , usb_trans_info -> setup . wIndex & 0xFF ) ;\n PROTO_ITEM_SET_GENERATED ( ti ) ;\n ti = proto_tree_add_uint ( tree , hf_usb_vid_control_entity , tvb , 0 , 0 , entity_id ) ;\n PROTO_ITEM_SET_GENERATED ( ti ) ;\n ti = proto_tree_add_uint_format_value ( tree , hf_usb_vid_control_selector , tvb , 0 , 0 , control_sel , \"%s (0x%02x)\" , short_name , control_sel ) ;\n PROTO_ITEM_SET_GENERATED ( ti ) ;\n }\n if ( ! is_request || ( usb_trans_info -> setup . request == USB_SETUP_SET_CUR ) ) {\n gint value_size = tvb_reported_length_remaining ( tvb , offset ) ;\n if ( value_size != 0 ) {\n if ( ( entity_id == 0 ) && ( usb_conv_info -> interfaceSubclass == SC_VIDEOSTREAMING ) ) {\n if ( ( control_sel == VS_PROBE_CONTROL ) || ( control_sel == VS_COMMIT_CONTROL ) ) {\n int old_offset = offset ;\n offset = dissect_usb_vid_probe ( tree , tvb , offset ) ;\n value_size -= ( offset - old_offset ) ;\n }\n }\n else {\n if ( usb_trans_info -> setup . request == USB_SETUP_GET_INFO ) {\n dissect_usb_vid_control_info ( tree , tvb , offset ) ;\n offset ++ ;\n value_size -- ;\n }\n else if ( usb_trans_info -> setup . request == USB_SETUP_GET_LEN ) {\n proto_tree_add_item ( tree , hf_usb_vid_control_length , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n value_size -= 2 ;\n }\n else if ( ( usb_trans_info -> setup . request == USB_SETUP_GET_CUR ) && ( entity_id == 0 ) && ( usb_conv_info -> interfaceSubclass == SC_VIDEOCONTROL ) && ( control_sel == VC_REQUEST_ERROR_CODE_CONTROL ) ) {\n proto_tree_add_item ( tree , hf_usb_vid_request_error , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset ++ ;\n value_size -- ;\n }\n else {\n dissect_usb_vid_control_value ( tree , tvb , offset , usb_trans_info -> setup . request ) ;\n offset += value_size ;\n value_size = 0 ;\n }\n }\n if ( value_size > 0 ) {\n proto_tree_add_item ( tree , hf_usb_vid_control_data , tvb , offset , - 1 , ENC_NA ) ;\n offset += value_size ;\n }\n }\n }\n return offset ;\n }"}
{"idx": 16823, "target": 0, "func": "static void test_wl4166_2 ( ) {\n MYSQL_STMT * stmt ;\n int c_int ;\n MYSQL_TIME d_date ;\n MYSQL_BIND bind_out [ 2 ] ;\n int rc ;\n myheader ( \"test_wl4166_2\" ) ;\n rc = mysql_query ( mysql , \"SET SQL_MODE=''\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"drop table if exists t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t1 (c_int int, d_date date)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t1 (c_int, d_date) values (42, '1948-05-15')\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"select * from t1\" ) ;\n check_stmt ( stmt ) ;\n memset ( bind_out , 0 , sizeof ( bind_out ) ) ;\n bind_out [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n bind_out [ 0 ] . buffer = ( void * ) & c_int ;\n bind_out [ 1 ] . buffer_type = MYSQL_TYPE_DATE ;\n bind_out [ 1 ] . buffer = ( void * ) & d_date ;\n rc = mysql_stmt_bind_result ( stmt , bind_out ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_query ( mysql , \"alter table t1 change column c_int c_int varchar(11)\" ) ;\n myquery ( rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n DIE_UNLESS ( c_int == 42 ) ;\n DIE_UNLESS ( d_date . year == 1948 ) ;\n DIE_UNLESS ( d_date . month == 5 ) ;\n DIE_UNLESS ( d_date . day == 15 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n rc = mysql_query ( mysql , \"update t1 set c_int='abcde'\" ) ;\n myquery ( rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute_r ( stmt , rc ) ;\n DIE_UNLESS ( c_int == 0 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n rc = mysql_query ( mysql , \"alter table t1 add column d_int int\" ) ;\n myquery ( rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute_r ( stmt , rc ) ;\n rc = mysql_stmt_reset ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_query ( mysql , \"alter table t1 drop d_date, drop d_int\" ) ;\n myquery ( rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute_r ( stmt , rc ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"drop table t1\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 16824, "target": 0, "func": "static void reindex_system_catalogs ( const char * dbname , const char * host , const char * port , const char * username , enum trivalue prompt_password , const char * progname , bool echo , bool verbose ) {\n PGconn * conn ;\n PQExpBufferData sql ;\n conn = connectDatabase ( dbname , host , port , username , prompt_password , progname , false , false ) ;\n initPQExpBuffer ( & sql ) ;\n appendPQExpBuffer ( & sql , \"REINDEX\" ) ;\n if ( verbose ) appendPQExpBuffer ( & sql , \" (VERBOSE)\" ) ;\n appendPQExpBuffer ( & sql , \" SYSTEM %s;\n\" , fmtId ( PQdb ( conn ) ) ) ;\n if ( ! executeMaintenanceCommand ( conn , sql . data , echo ) ) {\n fprintf ( stderr , _ ( \"%s: reindexing of system catalogs failed: %s\" ) , progname , PQerrorMessage ( conn ) ) ;\n PQfinish ( conn ) ;\n exit ( 1 ) ;\n }\n PQfinish ( conn ) ;\n termPQExpBuffer ( & sql ) ;\n }"}
{"idx": 16825, "target": 0, "func": "static inline void expand_category ( COOKContext * q , int * category , int * category_index ) {\n int i ;\n for ( i = 0 ;\n i < q -> num_vectors ;\n i ++ ) {\n int idx = category_index [ i ] ;\n if ( ++ category [ idx ] >= FF_ARRAY_ELEMS ( dither_tab ) ) -- category [ idx ] ;\n }\n }"}
{"idx": 16826, "target": 0, "func": "static int SpoolssEndPagePrinter_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n e_ctx_hnd policy_hnd ;\n char * pol_name ;\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , & policy_hnd , NULL , FALSE , FALSE ) ;\n dcerpc_fetch_polhnd_data ( & policy_hnd , & pol_name , NULL , NULL , NULL , pinfo -> num ) ;\n if ( pol_name ) col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , pol_name ) ;\n return offset ;\n }"}
{"idx": 16827, "target": 0, "func": "static int window_refnum_right ( int refnum , int wrap ) {\n MAIN_WINDOW_REC * find_sticky ;\n WINDOW_REC * window ;\n window = window_find_refnum ( refnum ) ;\n g_return_val_if_fail ( window != NULL , - 1 ) ;\n find_sticky = WINDOW_MAIN ( window ) -> sticky_windows ? WINDOW_MAIN ( window ) : NULL ;\n do {\n refnum = window_refnum_next ( refnum , wrap ) ;\n if ( refnum < 0 ) break ;\n window = window_find_refnum ( refnum ) ;\n }\n while ( ! WINDOW_STICKY_MATCH ( window , find_sticky ) ) ;\n return refnum ;\n }"}
{"idx": 16828, "target": 1, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DIRECTORYSTRING ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DISPLAYTEXT ) DECLARE_ASN1_FUNCTIONS ( ASN1_PRINTABLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_T61STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_IA5STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_GENERALSTRING )"}
{"idx": 16829, "target": 0, "func": "void kvm_arch_pre_run ( CPUState * cpu , struct kvm_run * run ) {\n X86CPU * x86_cpu = X86_CPU ( cpu ) ;\n CPUX86State * env = & x86_cpu -> env ;\n int ret ;\n if ( cpu -> interrupt_request & ( CPU_INTERRUPT_NMI | CPU_INTERRUPT_SMI ) ) {\n if ( cpu -> interrupt_request & CPU_INTERRUPT_NMI ) {\n qemu_mutex_lock_iothread ( ) ;\n cpu -> interrupt_request &= ~ CPU_INTERRUPT_NMI ;\n qemu_mutex_unlock_iothread ( ) ;\n DPRINTF ( \"injected NMI\\n\" ) ;\n ret = kvm_vcpu_ioctl ( cpu , KVM_NMI ) ;\n if ( ret < 0 ) {\n fprintf ( stderr , \"KVM: injection failed, NMI lost (%s)\\n\" , strerror ( - ret ) ) ;\n }\n }\n if ( cpu -> interrupt_request & CPU_INTERRUPT_SMI ) {\n qemu_mutex_lock_iothread ( ) ;\n cpu -> interrupt_request &= ~ CPU_INTERRUPT_SMI ;\n qemu_mutex_unlock_iothread ( ) ;\n DPRINTF ( \"injected SMI\\n\" ) ;\n ret = kvm_vcpu_ioctl ( cpu , KVM_SMI ) ;\n if ( ret < 0 ) {\n fprintf ( stderr , \"KVM: injection failed, SMI lost (%s)\\n\" , strerror ( - ret ) ) ;\n }\n }\n }\n if ( ! kvm_pic_in_kernel ( ) ) {\n qemu_mutex_lock_iothread ( ) ;\n }\n if ( cpu -> interrupt_request & ( CPU_INTERRUPT_INIT | CPU_INTERRUPT_TPR ) ) {\n if ( ( cpu -> interrupt_request & CPU_INTERRUPT_INIT ) && ! ( env -> hflags & HF_SMM_MASK ) ) {\n cpu -> exit_request = 1 ;\n }\n if ( cpu -> interrupt_request & CPU_INTERRUPT_TPR ) {\n cpu -> exit_request = 1 ;\n }\n }\n if ( ! kvm_pic_in_kernel ( ) ) {\n if ( run -> ready_for_interrupt_injection && ( cpu -> interrupt_request & CPU_INTERRUPT_HARD ) && ( env -> eflags & IF_MASK ) ) {\n int irq ;\n cpu -> interrupt_request &= ~ CPU_INTERRUPT_HARD ;\n irq = cpu_get_pic_interrupt ( env ) ;\n if ( irq >= 0 ) {\n struct kvm_interrupt intr ;\n intr . irq = irq ;\n DPRINTF ( \"injected interrupt %d\\n\" , irq ) ;\n ret = kvm_vcpu_ioctl ( cpu , KVM_INTERRUPT , & intr ) ;\n if ( ret < 0 ) {\n fprintf ( stderr , \"KVM: injection failed, interrupt lost (%s)\\n\" , strerror ( - ret ) ) ;\n }\n }\n }\n if ( ( cpu -> interrupt_request & CPU_INTERRUPT_HARD ) ) {\n run -> request_interrupt_window = 1 ;\n }\n else {\n run -> request_interrupt_window = 0 ;\n }\n DPRINTF ( \"setting tpr\\n\" ) ;\n run -> cr8 = cpu_get_apic_tpr ( x86_cpu -> apic_state ) ;\n qemu_mutex_unlock_iothread ( ) ;\n }\n }"}
{"idx": 16830, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ContentFaviconDriverTest , MixedContentInsecureFaviconBlocked ) {\n net : : EmbeddedTestServer ssl_server ( net : : EmbeddedTestServer : : TYPE_HTTPS ) ;\n ssl_server . AddDefaultHandlers ( base : : FilePath ( kDocRoot ) ) ;\n ASSERT_TRUE ( ssl_server . Start ( ) ) ;\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n const GURL favicon_url = embedded_test_server ( ) -> GetURL ( \"example.test\" , \"/favicon/icon.png\" ) ;\n const GURL favicon_page = ssl_server . GetURL ( \"example.test\" , \"/favicon/page_with_favicon_by_url.html?url=\" + favicon_url . spec ( ) ) ;\n content : : ConsoleObserverDelegate console_observer ( web_contents ( ) , \"*icon.png*\" ) ;\n web_contents ( ) -> SetDelegate ( & console_observer ) ;\n std : : unique_ptr < TestResourceDispatcherHostDelegate > delegate ( new TestResourceDispatcherHostDelegate ( favicon_url ) ) ;\n content : : ResourceDispatcherHost : : Get ( ) -> SetDelegate ( delegate . get ( ) ) ;\n PendingTaskWaiter waiter ( web_contents ( ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , favicon_page ) ;\n console_observer . Wait ( ) ;\n waiter . Wait ( ) ;\n EXPECT_TRUE ( base : : MatchPattern ( console_observer . message ( ) , \"*insecure favicon*\" ) ) ;\n EXPECT_TRUE ( base : : MatchPattern ( console_observer . message ( ) , \"*request has been blocked*\" ) ) ;\n EXPECT_FALSE ( delegate -> was_requested ( ) ) ;\n }"}
{"idx": 16831, "target": 1, "func": "static void set_partition_range ( VP9_COMMON * cm , MACROBLOCKD * xd , int mi_row , int mi_col , BLOCK_SIZE bsize , BLOCK_SIZE * min_bs , BLOCK_SIZE * max_bs ) {\n int mi_width = num_8x8_blocks_wide_lookup [ bsize ] ;\n int mi_height = num_8x8_blocks_high_lookup [ bsize ] ;\n int idx , idy ;\n MODE_INFO * mi ;\n MODE_INFO * * prev_mi = & cm -> prev_mi_grid_visible [ mi_row * cm -> mi_stride + mi_col ] ;\n BLOCK_SIZE bs , min_size , max_size ;\n min_size = BLOCK_64X64 ;\n max_size = BLOCK_4X4 ;\n if ( prev_mi ) {\n for ( idy = 0 ;\n idy < mi_height ;\n ++ idy ) {\n for ( idx = 0 ;\n idx < mi_width ;\n ++ idx ) {\n mi = prev_mi [ idy * cm -> mi_stride + idx ] ;\n bs = mi ? mi -> mbmi . sb_type : bsize ;\n min_size = MIN ( min_size , bs ) ;\n max_size = MAX ( max_size , bs ) ;\n }\n }\n }\n if ( xd -> left_available ) {\n for ( idy = 0 ;\n idy < mi_height ;\n ++ idy ) {\n mi = xd -> mi [ idy * cm -> mi_stride - 1 ] ;\n bs = mi ? mi -> mbmi . sb_type : bsize ;\n min_size = MIN ( min_size , bs ) ;\n max_size = MAX ( max_size , bs ) ;\n }\n }\n if ( xd -> up_available ) {\n for ( idx = 0 ;\n idx < mi_width ;\n ++ idx ) {\n mi = xd -> mi [ idx - cm -> mi_stride ] ;\n bs = mi ? mi -> mbmi . sb_type : bsize ;\n min_size = MIN ( min_size , bs ) ;\n max_size = MAX ( max_size , bs ) ;\n }\n }\n if ( min_size == max_size ) {\n min_size = min_partition_size [ min_size ] ;\n max_size = max_partition_size [ max_size ] ;\n }\n * min_bs = min_size ;\n * max_bs = max_size ;\n }"}
{"idx": 16832, "target": 0, "func": "char * curl_escape ( const char * string , int inlength ) {\n return curl_easy_escape ( NULL , string , inlength ) ;\n }"}
{"idx": 16833, "target": 0, "func": "static int output_to_inttgt ( int output ) {\n int i ;\n for ( i = 0 ;\n i < ARRAY_SIZE ( inttgt_output ) ;\n i ++ ) {\n if ( inttgt_output [ i ] [ 1 ] == output ) {\n return inttgt_output [ i ] [ 0 ] ;\n }\n }\n abort ( ) ;\n }"}
{"idx": 16834, "target": 0, "func": "TocEntry * getTocEntryByDumpId ( ArchiveHandle * AH , DumpId id ) {\n if ( AH -> tocsByDumpId == NULL ) buildTocEntryArrays ( AH ) ;\n if ( id > 0 && id <= AH -> maxDumpId ) return AH -> tocsByDumpId [ id ] ;\n return NULL ;\n }"}
{"idx": 16835, "target": 0, "func": "void vp9_idct16x16_10_add_c ( const tran_low_t * input , uint8_t * dest , int stride ) {\n tran_low_t out [ 16 * 16 ] = {\n 0 }\n ;\n tran_low_t * outptr = out ;\n int i , j ;\n tran_low_t temp_in [ 16 ] , temp_out [ 16 ] ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) {\n idct16 ( input , outptr ) ;\n input += 16 ;\n outptr += 16 ;\n }\n for ( i = 0 ;\n i < 16 ;\n ++ i ) {\n for ( j = 0 ;\n j < 16 ;\n ++ j ) temp_in [ j ] = out [ j * 16 + i ] ;\n idct16 ( temp_in , temp_out ) ;\n for ( j = 0 ;\n j < 16 ;\n ++ j ) dest [ j * stride + i ] = clip_pixel ( ROUND_POWER_OF_TWO ( temp_out [ j ] , 6 ) + dest [ j * stride + i ] ) ;\n }\n }"}
{"idx": 16836, "target": 0, "func": "static gpgme_error_t gpgsm_new ( void * * engine , const char * file_name , const char * home_dir ) {\n gpgme_error_t err = 0 ;\n engine_gpgsm_t gpgsm ;\n const char * pgmname ;\n const char * argv [ 5 ] ;\n int argc ;\n # if ! USE_DESCRIPTOR_PASSING int fds [ 2 ] ;\n int child_fds [ 4 ] ;\n # endif char * dft_display = NULL ;\n char dft_ttyname [ 64 ] ;\n char * dft_ttytype = NULL ;\n char * optstr ;\n gpgsm = calloc ( 1 , sizeof * gpgsm ) ;\n if ( ! gpgsm ) return gpg_error_from_syserror ( ) ;\n gpgsm -> status_cb . fd = - 1 ;\n gpgsm -> status_cb . dir = 1 ;\n gpgsm -> status_cb . tag = 0 ;\n gpgsm -> status_cb . data = gpgsm ;\n gpgsm -> input_cb . fd = - 1 ;\n gpgsm -> input_cb . dir = 0 ;\n gpgsm -> input_cb . tag = 0 ;\n gpgsm -> input_cb . server_fd = - 1 ;\n * gpgsm -> input_cb . server_fd_str = 0 ;\n gpgsm -> output_cb . fd = - 1 ;\n gpgsm -> output_cb . dir = 1 ;\n gpgsm -> output_cb . tag = 0 ;\n gpgsm -> output_cb . server_fd = - 1 ;\n * gpgsm -> output_cb . server_fd_str = 0 ;\n gpgsm -> message_cb . fd = - 1 ;\n gpgsm -> message_cb . dir = 0 ;\n gpgsm -> message_cb . tag = 0 ;\n gpgsm -> message_cb . server_fd = - 1 ;\n * gpgsm -> message_cb . server_fd_str = 0 ;\n gpgsm -> status . fnc = 0 ;\n gpgsm -> colon . fnc = 0 ;\n gpgsm -> colon . attic . line = 0 ;\n gpgsm -> colon . attic . linesize = 0 ;\n gpgsm -> colon . attic . linelen = 0 ;\n gpgsm -> colon . any = 0 ;\n gpgsm -> inline_data = NULL ;\n gpgsm -> io_cbs . add = NULL ;\n gpgsm -> io_cbs . add_priv = NULL ;\n gpgsm -> io_cbs . remove = NULL ;\n gpgsm -> io_cbs . event = NULL ;\n gpgsm -> io_cbs . event_priv = NULL ;\n # if ! USE_DESCRIPTOR_PASSING if ( _gpgme_io_pipe ( fds , 0 ) < 0 ) {\n err = gpg_error_from_syserror ( ) ;\n goto leave ;\n }\n gpgsm -> input_cb . fd = fds [ 1 ] ;\n gpgsm -> input_cb . server_fd = fds [ 0 ] ;\n if ( _gpgme_io_pipe ( fds , 1 ) < 0 ) {\n err = gpg_error_from_syserror ( ) ;\n goto leave ;\n }\n gpgsm -> output_cb . fd = fds [ 0 ] ;\n gpgsm -> output_cb . server_fd = fds [ 1 ] ;\n if ( _gpgme_io_pipe ( fds , 0 ) < 0 ) {\n err = gpg_error_from_syserror ( ) ;\n goto leave ;\n }\n gpgsm -> message_cb . fd = fds [ 1 ] ;\n gpgsm -> message_cb . server_fd = fds [ 0 ] ;\n child_fds [ 0 ] = gpgsm -> input_cb . server_fd ;\n child_fds [ 1 ] = gpgsm -> output_cb . server_fd ;\n child_fds [ 2 ] = gpgsm -> message_cb . server_fd ;\n child_fds [ 3 ] = - 1 ;\n # endif pgmname = file_name ? file_name : _gpgme_get_default_gpgsm_name ( ) ;\n argc = 0 ;\n argv [ argc ++ ] = _gpgme_get_basename ( pgmname ) ;\n if ( home_dir ) {\n argv [ argc ++ ] = \"--homedir\" ;\n argv [ argc ++ ] = home_dir ;\n }\n argv [ argc ++ ] = \"--server\" ;\n argv [ argc ++ ] = NULL ;\n err = assuan_new_ext ( & gpgsm -> assuan_ctx , GPG_ERR_SOURCE_GPGME , & _gpgme_assuan_malloc_hooks , _gpgme_assuan_log_cb , NULL ) ;\n if ( err ) goto leave ;\n assuan_ctx_set_system_hooks ( gpgsm -> assuan_ctx , & _gpgme_assuan_system_hooks ) ;\n # if USE_DESCRIPTOR_PASSING err = assuan_pipe_connect ( gpgsm -> assuan_ctx , pgmname , argv , NULL , NULL , NULL , ASSUAN_PIPE_CONNECT_FDPASSING ) ;\n # else {\n assuan_fd_t achild_fds [ 4 ] ;\n int i ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) achild_fds [ i ] = ( assuan_fd_t ) child_fds [ i ] ;\n err = assuan_pipe_connect ( gpgsm -> assuan_ctx , pgmname , argv , achild_fds , NULL , NULL , 0 ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) child_fds [ i ] = ( int ) achild_fds [ i ] ;\n }\n if ( ! err ) {\n snprintf ( gpgsm -> input_cb . server_fd_str , sizeof gpgsm -> input_cb . server_fd_str , \"%d\" , child_fds [ 0 ] ) ;\n snprintf ( gpgsm -> output_cb . server_fd_str , sizeof gpgsm -> output_cb . server_fd_str , \"%d\" , child_fds [ 1 ] ) ;\n snprintf ( gpgsm -> message_cb . server_fd_str , sizeof gpgsm -> message_cb . server_fd_str , \"%d\" , child_fds [ 2 ] ) ;\n }\n # endif if ( err ) goto leave ;\n err = _gpgme_getenv ( \"DISPLAY\" , & dft_display ) ;\n if ( err ) goto leave ;\n if ( dft_display ) {\n if ( asprintf ( & optstr , \"OPTION display=%s\" , dft_display ) < 0 ) {\n free ( dft_display ) ;\n err = gpg_error_from_syserror ( ) ;\n goto leave ;\n }\n free ( dft_display ) ;\n err = assuan_transact ( gpgsm -> assuan_ctx , optstr , NULL , NULL , NULL , NULL , NULL , NULL ) ;\n free ( optstr ) ;\n if ( err ) goto leave ;\n }\n if ( isatty ( 1 ) ) {\n int rc ;\n rc = ttyname_r ( 1 , dft_ttyname , sizeof ( dft_ttyname ) ) ;\n if ( rc ) {\n err = gpg_error_from_errno ( rc ) ;\n goto leave ;\n }\n else {\n if ( asprintf ( & optstr , \"OPTION ttyname=%s\" , dft_ttyname ) < 0 ) {\n err = gpg_error_from_syserror ( ) ;\n goto leave ;\n }\n err = assuan_transact ( gpgsm -> assuan_ctx , optstr , NULL , NULL , NULL , NULL , NULL , NULL ) ;\n free ( optstr ) ;\n if ( err ) goto leave ;\n err = _gpgme_getenv ( \"TERM\" , & dft_ttytype ) ;\n if ( err ) goto leave ;\n if ( dft_ttytype ) {\n if ( asprintf ( & optstr , \"OPTION ttytype=%s\" , dft_ttytype ) < 0 ) {\n free ( dft_ttytype ) ;\n err = gpg_error_from_syserror ( ) ;\n goto leave ;\n }\n free ( dft_ttytype ) ;\n err = assuan_transact ( gpgsm -> assuan_ctx , optstr , NULL , NULL , NULL , NULL , NULL , NULL ) ;\n free ( optstr ) ;\n if ( err ) goto leave ;\n }\n }\n }\n if ( ! err ) {\n err = assuan_transact ( gpgsm -> assuan_ctx , \"OPTION enable-audit-log=1\" , NULL , NULL , NULL , NULL , NULL , NULL ) ;\n if ( gpg_err_code ( err ) == GPG_ERR_UNKNOWN_OPTION ) err = 0 ;\n }\n # ifdef HAVE_W32_SYSTEM if ( ! err ) {\n err = assuan_transact ( gpgsm -> assuan_ctx , \"OPTION allow-pinentry-notify\" , NULL , NULL , NULL , NULL , NULL , NULL ) ;\n if ( gpg_err_code ( err ) == GPG_ERR_UNKNOWN_OPTION ) err = 0 ;\n }\n # endif # if ! USE_DESCRIPTOR_PASSING if ( ! err && ( _gpgme_io_set_close_notify ( gpgsm -> input_cb . fd , close_notify_handler , gpgsm ) || _gpgme_io_set_close_notify ( gpgsm -> output_cb . fd , close_notify_handler , gpgsm ) || _gpgme_io_set_close_notify ( gpgsm -> message_cb . fd , close_notify_handler , gpgsm ) ) ) {\n err = gpg_error ( GPG_ERR_GENERAL ) ;\n goto leave ;\n }\n # endif leave : # if ! USE_DESCRIPTOR_PASSING if ( gpgsm -> input_cb . server_fd != - 1 ) _gpgme_io_close ( gpgsm -> input_cb . server_fd ) ;\n if ( gpgsm -> output_cb . server_fd != - 1 ) _gpgme_io_close ( gpgsm -> output_cb . server_fd ) ;\n if ( gpgsm -> message_cb . server_fd != - 1 ) _gpgme_io_close ( gpgsm -> message_cb . server_fd ) ;\n # endif if ( err ) gpgsm_release ( gpgsm ) ;\n else * engine = gpgsm ;\n return err ;\n }"}
{"idx": 16837, "target": 0, "func": "int vp9_get_quantizer ( VP9_COMP * cpi ) {\n return cpi -> common . base_qindex ;\n }"}
{"idx": 16838, "target": 0, "func": "void gx_device_init_on_stack ( gx_device * dev , const gx_device * proto , gs_memory_t * mem ) {\n memcpy ( dev , proto , proto -> params_size ) ;\n dev -> memory = mem ;\n dev -> retained = 0 ;\n dev -> pad = proto -> pad ;\n dev -> log2_align_mod = proto -> log2_align_mod ;\n dev -> is_planar = proto -> is_planar ;\n rc_init ( dev , NULL , 0 ) ;\n }"}
{"idx": 16839, "target": 0, "func": "static struct stream_state * new_stream ( struct VpxEncoderConfig * global , struct stream_state * prev ) {\n struct stream_state * stream ;\n stream = calloc ( 1 , sizeof ( * stream ) ) ;\n if ( stream == NULL ) {\n fatal ( \"Failed to allocate new stream.\" ) ;\n }\n if ( prev ) {\n memcpy ( stream , prev , sizeof ( * stream ) ) ;\n stream -> index ++ ;\n prev -> next = stream ;\n }\n else {\n vpx_codec_err_t res ;\n res = vpx_codec_enc_config_default ( global -> codec -> codec_interface ( ) , & stream -> config . cfg , global -> usage ) ;\n if ( res ) fatal ( \"Failed to get config: %s\\n\" , vpx_codec_err_to_string ( res ) ) ;\n stream -> config . cfg . g_timebase . den = 1000 ;\n stream -> config . cfg . g_w = 0 ;\n stream -> config . cfg . g_h = 0 ;\n stream -> config . write_webm = 1 ;\n # if CONFIG_WEBM_IO stream -> config . stereo_fmt = STEREO_FORMAT_MONO ;\n stream -> ebml . last_pts_ns = - 1 ;\n stream -> ebml . writer = NULL ;\n stream -> ebml . segment = NULL ;\n # endif stream -> ebml . debug = global -> debug ;\n if ( global -> deadline == VPX_DL_REALTIME ) stream -> config . cfg . g_lag_in_frames = 0 ;\n }\n stream -> config . out_fn = NULL ;\n stream -> next = NULL ;\n return stream ;\n }"}
{"idx": 16840, "target": 0, "func": "static uint16_t NVRAM_crc_update ( uint16_t prev , uint16_t value ) {\n uint16_t tmp ;\n uint16_t pd , pd1 , pd2 ;\n tmp = prev >> 8 ;\n pd = prev ^ value ;\n pd1 = pd & 0x000F ;\n pd2 = ( ( pd >> 4 ) & 0x000F ) ^ pd1 ;\n tmp ^= ( pd1 << 3 ) | ( pd1 << 8 ) ;\n tmp ^= pd2 | ( pd2 << 7 ) | ( pd2 << 12 ) ;\n return tmp ;\n }"}
{"idx": 16841, "target": 0, "func": "TEST ( WinUtils , IsReparsePoint ) {\n using sandbox : : IsReparsePoint ;\n wchar_t temp_directory [ MAX_PATH ] ;\n wchar_t my_folder [ MAX_PATH ] ;\n ASSERT_NE ( : : GetTempPath ( MAX_PATH , temp_directory ) , 0u ) ;\n ASSERT_NE ( : : GetTempFileName ( temp_directory , L\"test\" , 0 , my_folder ) , 0u ) ;\n ASSERT_TRUE ( : : DeleteFile ( my_folder ) ) ;\n ASSERT_TRUE ( : : CreateDirectory ( my_folder , NULL ) ) ;\n bool result = true ;\n EXPECT_EQ ( ERROR_SUCCESS , IsReparsePoint ( my_folder , & result ) ) ;\n EXPECT_FALSE ( result ) ;\n base : : string16 not_found = base : : string16 ( my_folder ) + L\"\\\\foo\\\\bar\" ;\n base : : string16 new_file = base : : string16 ( my_folder ) + L\"\\\\foo\" ;\n EXPECT_EQ ( ERROR_SUCCESS , IsReparsePoint ( new_file , & result ) ) ;\n EXPECT_FALSE ( result ) ;\n HANDLE dir = : : CreateFile ( my_folder , FILE_ALL_ACCESS , FILE_SHARE_READ | FILE_SHARE_WRITE , NULL , OPEN_EXISTING , FILE_FLAG_BACKUP_SEMANTICS , NULL ) ;\n EXPECT_NE ( INVALID_HANDLE_VALUE , dir ) ;\n base : : string16 temp_dir_nt = base : : string16 ( L\"\\\\??\\\\\" ) + temp_directory ;\n EXPECT_TRUE ( SetReparsePoint ( dir , temp_dir_nt . c_str ( ) ) ) ;\n EXPECT_EQ ( ERROR_SUCCESS , IsReparsePoint ( new_file , & result ) ) ;\n EXPECT_TRUE ( result ) ;\n EXPECT_TRUE ( DeleteReparsePoint ( dir ) ) ;\n EXPECT_TRUE ( : : CloseHandle ( dir ) ) ;\n EXPECT_TRUE ( : : RemoveDirectory ( my_folder ) ) ;\n }"}
{"idx": 16842, "target": 0, "func": "static void cyclic_background_refresh ( VP8_COMP * cpi , int Q , int lf_adjustment ) {\n unsigned char * seg_map = cpi -> segmentation_map ;\n signed char feature_data [ MB_LVL_MAX ] [ MAX_MB_SEGMENTS ] ;\n int i ;\n int block_count = cpi -> cyclic_refresh_mode_max_mbs_perframe ;\n int mbs_in_frame = cpi -> common . mb_rows * cpi -> common . mb_cols ;\n cpi -> cyclic_refresh_q = Q / 2 ;\n vpx_memset ( cpi -> segmentation_map , 0 , mbs_in_frame ) ;\n if ( cpi -> common . frame_type != KEY_FRAME ) {\n i = cpi -> cyclic_refresh_mode_index ;\n assert ( i < mbs_in_frame ) ;\n do {\n if ( cpi -> cyclic_refresh_map [ i ] == 0 ) {\n seg_map [ i ] = 1 ;\n block_count -- ;\n }\n else if ( cpi -> cyclic_refresh_map [ i ] < 0 ) cpi -> cyclic_refresh_map [ i ] ++ ;\n i ++ ;\n if ( i == mbs_in_frame ) i = 0 ;\n }\n while ( block_count && i != cpi -> cyclic_refresh_mode_index ) ;\n cpi -> cyclic_refresh_mode_index = i ;\n # if CONFIG_TEMPORAL_DENOISING if ( cpi -> oxcf . noise_sensitivity > 0 ) {\n if ( cpi -> denoiser . denoiser_mode == kDenoiserOnYUVAggressive && Q < ( int ) cpi -> denoiser . denoise_pars . qp_thresh ) {\n cpi -> cyclic_refresh_q = Q ;\n lf_adjustment = - MAX_LOOP_FILTER ;\n for ( i = 0 ;\n i < mbs_in_frame ;\n ++ i ) {\n seg_map [ i ] = ( cpi -> consec_zero_last [ i ] > cpi -> denoiser . denoise_pars . consec_zerolast ) ? 1 : 0 ;\n }\n }\n }\n # endif }\n cpi -> mb . e_mbd . update_mb_segmentation_map = 1 ;\n cpi -> mb . e_mbd . update_mb_segmentation_data = 1 ;\n enable_segmentation ( cpi ) ;\n feature_data [ MB_LVL_ALT_Q ] [ 0 ] = 0 ;\n feature_data [ MB_LVL_ALT_Q ] [ 1 ] = ( cpi -> cyclic_refresh_q - Q ) ;\n feature_data [ MB_LVL_ALT_Q ] [ 2 ] = 0 ;\n feature_data [ MB_LVL_ALT_Q ] [ 3 ] = 0 ;\n feature_data [ MB_LVL_ALT_LF ] [ 0 ] = 0 ;\n feature_data [ MB_LVL_ALT_LF ] [ 1 ] = lf_adjustment ;\n feature_data [ MB_LVL_ALT_LF ] [ 2 ] = 0 ;\n feature_data [ MB_LVL_ALT_LF ] [ 3 ] = 0 ;\n set_segment_data ( cpi , & feature_data [ 0 ] [ 0 ] , SEGMENT_DELTADATA ) ;\n }"}
{"idx": 16843, "target": 0, "func": "void dtls1_clear ( SSL * s ) {\n pqueue * buffered_messages ;\n pqueue * sent_messages ;\n unsigned int mtu ;\n unsigned int link_mtu ;\n DTLS_RECORD_LAYER_clear ( & s -> rlayer ) ;\n if ( s -> d1 ) {\n buffered_messages = s -> d1 -> buffered_messages ;\n sent_messages = s -> d1 -> sent_messages ;\n mtu = s -> d1 -> mtu ;\n link_mtu = s -> d1 -> link_mtu ;\n dtls1_clear_queues ( s ) ;\n memset ( s -> d1 , 0 , sizeof ( * s -> d1 ) ) ;\n if ( s -> server ) {\n s -> d1 -> cookie_len = sizeof ( s -> d1 -> cookie ) ;\n }\n if ( SSL_get_options ( s ) & SSL_OP_NO_QUERY_MTU ) {\n s -> d1 -> mtu = mtu ;\n s -> d1 -> link_mtu = link_mtu ;\n }\n s -> d1 -> buffered_messages = buffered_messages ;\n s -> d1 -> sent_messages = sent_messages ;\n }\n ssl3_clear ( s ) ;\n if ( s -> method -> version == DTLS_ANY_VERSION ) s -> version = DTLS_MAX_VERSION ;\n # ifndef OPENSSL_NO_DTLS1_METHOD else if ( s -> options & SSL_OP_CISCO_ANYCONNECT ) s -> client_version = s -> version = DTLS1_BAD_VER ;\n # endif else s -> version = s -> method -> version ;\n }"}
{"idx": 16844, "target": 1, "func": "static void read_sbr_envelope ( SpectralBandReplication * sbr , GetBitContext * gb , SBRData * ch_data , int ch ) {\n int bits ;\n int i , j , k ;\n VLC_TYPE ( * t_huff ) [ 2 ] , ( * f_huff ) [ 2 ] ;\n int t_lav , f_lav ;\n const int delta = ( ch == 1 && sbr -> bs_coupling == 1 ) + 1 ;\n const int odd = sbr -> n [ 1 ] & 1 ;\n if ( sbr -> bs_coupling && ch ) {\n if ( ch_data -> bs_amp_res ) {\n bits = 5 ;\n t_huff = vlc_sbr [ T_HUFFMAN_ENV_BAL_3_0DB ] . table ;\n t_lav = vlc_sbr_lav [ T_HUFFMAN_ENV_BAL_3_0DB ] ;\n f_huff = vlc_sbr [ F_HUFFMAN_ENV_BAL_3_0DB ] . table ;\n f_lav = vlc_sbr_lav [ F_HUFFMAN_ENV_BAL_3_0DB ] ;\n }\n else {\n bits = 6 ;\n t_huff = vlc_sbr [ T_HUFFMAN_ENV_BAL_1_5DB ] . table ;\n t_lav = vlc_sbr_lav [ T_HUFFMAN_ENV_BAL_1_5DB ] ;\n f_huff = vlc_sbr [ F_HUFFMAN_ENV_BAL_1_5DB ] . table ;\n f_lav = vlc_sbr_lav [ F_HUFFMAN_ENV_BAL_1_5DB ] ;\n }\n }\n else {\n if ( ch_data -> bs_amp_res ) {\n bits = 6 ;\n t_huff = vlc_sbr [ T_HUFFMAN_ENV_3_0DB ] . table ;\n t_lav = vlc_sbr_lav [ T_HUFFMAN_ENV_3_0DB ] ;\n f_huff = vlc_sbr [ F_HUFFMAN_ENV_3_0DB ] . table ;\n f_lav = vlc_sbr_lav [ F_HUFFMAN_ENV_3_0DB ] ;\n }\n else {\n bits = 7 ;\n t_huff = vlc_sbr [ T_HUFFMAN_ENV_1_5DB ] . table ;\n t_lav = vlc_sbr_lav [ T_HUFFMAN_ENV_1_5DB ] ;\n f_huff = vlc_sbr [ F_HUFFMAN_ENV_1_5DB ] . table ;\n f_lav = vlc_sbr_lav [ F_HUFFMAN_ENV_1_5DB ] ;\n }\n }\n for ( i = 0 ;\n i < ch_data -> bs_num_env ;\n i ++ ) {\n if ( ch_data -> bs_df_env [ i ] ) {\n if ( ch_data -> bs_freq_res [ i + 1 ] == ch_data -> bs_freq_res [ i ] ) {\n for ( j = 0 ;\n j < sbr -> n [ ch_data -> bs_freq_res [ i + 1 ] ] ;\n j ++ ) ch_data -> env_facs [ i + 1 ] [ j ] = ch_data -> env_facs [ i ] [ j ] + delta * ( get_vlc2 ( gb , t_huff , 9 , 3 ) - t_lav ) ;\n }\n else if ( ch_data -> bs_freq_res [ i + 1 ] ) {\n for ( j = 0 ;\n j < sbr -> n [ ch_data -> bs_freq_res [ i + 1 ] ] ;\n j ++ ) {\n k = ( j + odd ) >> 1 ;\n ch_data -> env_facs [ i + 1 ] [ j ] = ch_data -> env_facs [ i ] [ k ] + delta * ( get_vlc2 ( gb , t_huff , 9 , 3 ) - t_lav ) ;\n }\n }\n else {\n for ( j = 0 ;\n j < sbr -> n [ ch_data -> bs_freq_res [ i + 1 ] ] ;\n j ++ ) {\n k = j ? 2 * j - odd : 0 ;\n ch_data -> env_facs [ i + 1 ] [ j ] = ch_data -> env_facs [ i ] [ k ] + delta * ( get_vlc2 ( gb , t_huff , 9 , 3 ) - t_lav ) ;\n }\n }\n }\n else {\n ch_data -> env_facs [ i + 1 ] [ 0 ] = delta * get_bits ( gb , bits ) ;\n for ( j = 1 ;\n j < sbr -> n [ ch_data -> bs_freq_res [ i + 1 ] ] ;\n j ++ ) ch_data -> env_facs [ i + 1 ] [ j ] = ch_data -> env_facs [ i + 1 ] [ j - 1 ] + delta * ( get_vlc2 ( gb , f_huff , 9 , 3 ) - f_lav ) ;\n }\n }\n memcpy ( ch_data -> env_facs [ 0 ] , ch_data -> env_facs [ ch_data -> bs_num_env ] , sizeof ( ch_data -> env_facs [ 0 ] ) ) ;\n }"}
{"idx": 16845, "target": 0, "func": "static void test_bug27592 ( ) {\n const int NUM_ITERATIONS = 40 ;\n int i ;\n int rc ;\n MYSQL_STMT * stmt = NULL ;\n MYSQL_BIND bind [ 1 ] ;\n MYSQL_TIME time_val ;\n DBUG_ENTER ( \"test_bug27592\" ) ;\n myheader ( \"test_bug27592\" ) ;\n mysql_query ( mysql , \"DROP TABLE IF EXISTS t1\" ) ;\n mysql_query ( mysql , \"CREATE TABLE t1(c2 DATETIME)\" ) ;\n stmt = mysql_simple_prepare ( mysql , \"INSERT INTO t1 VALUES (?)\" ) ;\n DIE_UNLESS ( stmt ) ;\n memset ( bind , 0 , sizeof ( bind ) ) ;\n bind [ 0 ] . buffer_type = MYSQL_TYPE_DATETIME ;\n bind [ 0 ] . buffer = ( char * ) & time_val ;\n bind [ 0 ] . length = NULL ;\n for ( i = 0 ;\n i < NUM_ITERATIONS ;\n i ++ ) {\n time_val . year = 2007 ;\n time_val . month = 6 ;\n time_val . day = 7 ;\n time_val . hour = 18 ;\n time_val . minute = 41 ;\n time_val . second = 3 ;\n time_val . second_part = 0 ;\n time_val . neg = 0 ;\n rc = mysql_stmt_bind_param ( stmt , bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n }\n mysql_stmt_close ( stmt ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 16846, "target": 0, "func": "void xps_set_color ( xps_document * doc , fz_colorspace * colorspace , float * samples ) {\n int i ;\n doc -> colorspace = colorspace ;\n for ( i = 0 ;\n i < colorspace -> n ;\n i ++ ) doc -> color [ i ] = samples [ i + 1 ] ;\n doc -> alpha = samples [ 0 ] * doc -> opacity [ doc -> opacity_top ] ;\n }"}
{"idx": 16847, "target": 0, "func": "static void dissect_zcl_color_control_step_hue_saturation ( tvbuff_t * tvb , proto_tree * tree , guint * offset , gboolean enhanced ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_step_mode , tvb , * offset , 1 , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n if ( enhanced ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_enhanced_step_size , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n }\n else {\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_step_size , tvb , * offset , 1 , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n }\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_transit_time_8bit , tvb , * offset , 1 , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n }"}
{"idx": 16848, "target": 0, "func": "static char * normal_dtoa ( double d ) {\n char * buf ;\n char * pch_e ;\n char * pch_nz ;\n LIB_GETBUF ( buf ) ;\n snprintf ( buf , LIB_BUFLENGTH , \"%g\" , d ) ;\n pch_e = strchr ( buf , 'e' ) ;\n if ( NULL == pch_e ) {\n pch_e = strchr ( buf , 'E' ) ;\n if ( NULL == pch_e ) return buf ;\n * pch_e = 'e' ;\n }\n pch_e ++ ;\n if ( '-' == * pch_e ) pch_e ++ ;\n pch_nz = pch_e ;\n while ( '0' == * pch_nz ) pch_nz ++ ;\n if ( pch_nz == pch_e ) return buf ;\n strncpy ( pch_e , pch_nz , LIB_BUFLENGTH - ( pch_e - buf ) ) ;\n return buf ;\n }"}
{"idx": 16849, "target": 0, "func": "static void g2rgb ( fz_context * ctx , fz_color_converter * cc , float * dv , const float * sv ) {\n dv [ 0 ] = sv [ 0 ] ;\n dv [ 1 ] = sv [ 0 ] ;\n dv [ 2 ] = sv [ 0 ] ;\n }"}
{"idx": 16850, "target": 0, "func": "void vp9_idct32x32_1024_add_sse2 ( const int16_t * input , uint8_t * dest , int stride ) {\n const __m128i rounding = _mm_set1_epi32 ( DCT_CONST_ROUNDING ) ;\n const __m128i final_rounding = _mm_set1_epi16 ( 1 << 5 ) ;\n const __m128i zero = _mm_setzero_si128 ( ) ;\n const __m128i stg1_0 = pair_set_epi16 ( cospi_31_64 , - cospi_1_64 ) ;\n const __m128i stg1_1 = pair_set_epi16 ( cospi_1_64 , cospi_31_64 ) ;\n const __m128i stg1_2 = pair_set_epi16 ( cospi_15_64 , - cospi_17_64 ) ;\n const __m128i stg1_3 = pair_set_epi16 ( cospi_17_64 , cospi_15_64 ) ;\n const __m128i stg1_4 = pair_set_epi16 ( cospi_23_64 , - cospi_9_64 ) ;\n const __m128i stg1_5 = pair_set_epi16 ( cospi_9_64 , cospi_23_64 ) ;\n const __m128i stg1_6 = pair_set_epi16 ( cospi_7_64 , - cospi_25_64 ) ;\n const __m128i stg1_7 = pair_set_epi16 ( cospi_25_64 , cospi_7_64 ) ;\n const __m128i stg1_8 = pair_set_epi16 ( cospi_27_64 , - cospi_5_64 ) ;\n const __m128i stg1_9 = pair_set_epi16 ( cospi_5_64 , cospi_27_64 ) ;\n const __m128i stg1_10 = pair_set_epi16 ( cospi_11_64 , - cospi_21_64 ) ;\n const __m128i stg1_11 = pair_set_epi16 ( cospi_21_64 , cospi_11_64 ) ;\n const __m128i stg1_12 = pair_set_epi16 ( cospi_19_64 , - cospi_13_64 ) ;\n const __m128i stg1_13 = pair_set_epi16 ( cospi_13_64 , cospi_19_64 ) ;\n const __m128i stg1_14 = pair_set_epi16 ( cospi_3_64 , - cospi_29_64 ) ;\n const __m128i stg1_15 = pair_set_epi16 ( cospi_29_64 , cospi_3_64 ) ;\n const __m128i stg2_0 = pair_set_epi16 ( cospi_30_64 , - cospi_2_64 ) ;\n const __m128i stg2_1 = pair_set_epi16 ( cospi_2_64 , cospi_30_64 ) ;\n const __m128i stg2_2 = pair_set_epi16 ( cospi_14_64 , - cospi_18_64 ) ;\n const __m128i stg2_3 = pair_set_epi16 ( cospi_18_64 , cospi_14_64 ) ;\n const __m128i stg2_4 = pair_set_epi16 ( cospi_22_64 , - cospi_10_64 ) ;\n const __m128i stg2_5 = pair_set_epi16 ( cospi_10_64 , cospi_22_64 ) ;\n const __m128i stg2_6 = pair_set_epi16 ( cospi_6_64 , - cospi_26_64 ) ;\n const __m128i stg2_7 = pair_set_epi16 ( cospi_26_64 , cospi_6_64 ) ;\n const __m128i stg3_0 = pair_set_epi16 ( cospi_28_64 , - cospi_4_64 ) ;\n const __m128i stg3_1 = pair_set_epi16 ( cospi_4_64 , cospi_28_64 ) ;\n const __m128i stg3_2 = pair_set_epi16 ( cospi_12_64 , - cospi_20_64 ) ;\n const __m128i stg3_3 = pair_set_epi16 ( cospi_20_64 , cospi_12_64 ) ;\n const __m128i stg3_4 = pair_set_epi16 ( - cospi_4_64 , cospi_28_64 ) ;\n const __m128i stg3_5 = pair_set_epi16 ( cospi_28_64 , cospi_4_64 ) ;\n const __m128i stg3_6 = pair_set_epi16 ( - cospi_28_64 , - cospi_4_64 ) ;\n const __m128i stg3_8 = pair_set_epi16 ( - cospi_20_64 , cospi_12_64 ) ;\n const __m128i stg3_9 = pair_set_epi16 ( cospi_12_64 , cospi_20_64 ) ;\n const __m128i stg3_10 = pair_set_epi16 ( - cospi_12_64 , - cospi_20_64 ) ;\n const __m128i stg4_0 = pair_set_epi16 ( cospi_16_64 , cospi_16_64 ) ;\n const __m128i stg4_1 = pair_set_epi16 ( cospi_16_64 , - cospi_16_64 ) ;\n const __m128i stg4_2 = pair_set_epi16 ( cospi_24_64 , - cospi_8_64 ) ;\n const __m128i stg4_3 = pair_set_epi16 ( cospi_8_64 , cospi_24_64 ) ;\n const __m128i stg4_4 = pair_set_epi16 ( - cospi_8_64 , cospi_24_64 ) ;\n const __m128i stg4_5 = pair_set_epi16 ( cospi_24_64 , cospi_8_64 ) ;\n const __m128i stg4_6 = pair_set_epi16 ( - cospi_24_64 , - cospi_8_64 ) ;\n const __m128i stg6_0 = pair_set_epi16 ( - cospi_16_64 , cospi_16_64 ) ;\n __m128i in [ 32 ] , col [ 128 ] , zero_idx [ 16 ] ;\n __m128i stp1_0 , stp1_1 , stp1_2 , stp1_3 , stp1_4 , stp1_5 , stp1_6 , stp1_7 , stp1_8 , stp1_9 , stp1_10 , stp1_11 , stp1_12 , stp1_13 , stp1_14 , stp1_15 , stp1_16 , stp1_17 , stp1_18 , stp1_19 , stp1_20 , stp1_21 , stp1_22 , stp1_23 , stp1_24 , stp1_25 , stp1_26 , stp1_27 , stp1_28 , stp1_29 , stp1_30 , stp1_31 ;\n __m128i stp2_0 , stp2_1 , stp2_2 , stp2_3 , stp2_4 , stp2_5 , stp2_6 , stp2_7 , stp2_8 , stp2_9 , stp2_10 , stp2_11 , stp2_12 , stp2_13 , stp2_14 , stp2_15 , stp2_16 , stp2_17 , stp2_18 , stp2_19 , stp2_20 , stp2_21 , stp2_22 , stp2_23 , stp2_24 , stp2_25 , stp2_26 , stp2_27 , stp2_28 , stp2_29 , stp2_30 , stp2_31 ;\n __m128i tmp0 , tmp1 , tmp2 , tmp3 , tmp4 , tmp5 , tmp6 , tmp7 ;\n int i , j , i32 ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n i32 = ( i << 5 ) ;\n LOAD_DQCOEFF ( in [ 0 ] , input ) ;\n LOAD_DQCOEFF ( in [ 8 ] , input ) ;\n LOAD_DQCOEFF ( in [ 16 ] , input ) ;\n LOAD_DQCOEFF ( in [ 24 ] , input ) ;\n LOAD_DQCOEFF ( in [ 1 ] , input ) ;\n LOAD_DQCOEFF ( in [ 9 ] , input ) ;\n LOAD_DQCOEFF ( in [ 17 ] , input ) ;\n LOAD_DQCOEFF ( in [ 25 ] , input ) ;\n LOAD_DQCOEFF ( in [ 2 ] , input ) ;\n LOAD_DQCOEFF ( in [ 10 ] , input ) ;\n LOAD_DQCOEFF ( in [ 18 ] , input ) ;\n LOAD_DQCOEFF ( in [ 26 ] , input ) ;\n LOAD_DQCOEFF ( in [ 3 ] , input ) ;\n LOAD_DQCOEFF ( in [ 11 ] , input ) ;\n LOAD_DQCOEFF ( in [ 19 ] , input ) ;\n LOAD_DQCOEFF ( in [ 27 ] , input ) ;\n LOAD_DQCOEFF ( in [ 4 ] , input ) ;\n LOAD_DQCOEFF ( in [ 12 ] , input ) ;\n LOAD_DQCOEFF ( in [ 20 ] , input ) ;\n LOAD_DQCOEFF ( in [ 28 ] , input ) ;\n LOAD_DQCOEFF ( in [ 5 ] , input ) ;\n LOAD_DQCOEFF ( in [ 13 ] , input ) ;\n LOAD_DQCOEFF ( in [ 21 ] , input ) ;\n LOAD_DQCOEFF ( in [ 29 ] , input ) ;\n LOAD_DQCOEFF ( in [ 6 ] , input ) ;\n LOAD_DQCOEFF ( in [ 14 ] , input ) ;\n LOAD_DQCOEFF ( in [ 22 ] , input ) ;\n LOAD_DQCOEFF ( in [ 30 ] , input ) ;\n LOAD_DQCOEFF ( in [ 7 ] , input ) ;\n LOAD_DQCOEFF ( in [ 15 ] , input ) ;\n LOAD_DQCOEFF ( in [ 23 ] , input ) ;\n LOAD_DQCOEFF ( in [ 31 ] , input ) ;\n zero_idx [ 0 ] = _mm_or_si128 ( in [ 0 ] , in [ 1 ] ) ;\n zero_idx [ 1 ] = _mm_or_si128 ( in [ 2 ] , in [ 3 ] ) ;\n zero_idx [ 2 ] = _mm_or_si128 ( in [ 4 ] , in [ 5 ] ) ;\n zero_idx [ 3 ] = _mm_or_si128 ( in [ 6 ] , in [ 7 ] ) ;\n zero_idx [ 4 ] = _mm_or_si128 ( in [ 8 ] , in [ 9 ] ) ;\n zero_idx [ 5 ] = _mm_or_si128 ( in [ 10 ] , in [ 11 ] ) ;\n zero_idx [ 6 ] = _mm_or_si128 ( in [ 12 ] , in [ 13 ] ) ;\n zero_idx [ 7 ] = _mm_or_si128 ( in [ 14 ] , in [ 15 ] ) ;\n zero_idx [ 8 ] = _mm_or_si128 ( in [ 16 ] , in [ 17 ] ) ;\n zero_idx [ 9 ] = _mm_or_si128 ( in [ 18 ] , in [ 19 ] ) ;\n zero_idx [ 10 ] = _mm_or_si128 ( in [ 20 ] , in [ 21 ] ) ;\n zero_idx [ 11 ] = _mm_or_si128 ( in [ 22 ] , in [ 23 ] ) ;\n zero_idx [ 12 ] = _mm_or_si128 ( in [ 24 ] , in [ 25 ] ) ;\n zero_idx [ 13 ] = _mm_or_si128 ( in [ 26 ] , in [ 27 ] ) ;\n zero_idx [ 14 ] = _mm_or_si128 ( in [ 28 ] , in [ 29 ] ) ;\n zero_idx [ 15 ] = _mm_or_si128 ( in [ 30 ] , in [ 31 ] ) ;\n zero_idx [ 0 ] = _mm_or_si128 ( zero_idx [ 0 ] , zero_idx [ 1 ] ) ;\n zero_idx [ 1 ] = _mm_or_si128 ( zero_idx [ 2 ] , zero_idx [ 3 ] ) ;\n zero_idx [ 2 ] = _mm_or_si128 ( zero_idx [ 4 ] , zero_idx [ 5 ] ) ;\n zero_idx [ 3 ] = _mm_or_si128 ( zero_idx [ 6 ] , zero_idx [ 7 ] ) ;\n zero_idx [ 4 ] = _mm_or_si128 ( zero_idx [ 8 ] , zero_idx [ 9 ] ) ;\n zero_idx [ 5 ] = _mm_or_si128 ( zero_idx [ 10 ] , zero_idx [ 11 ] ) ;\n zero_idx [ 6 ] = _mm_or_si128 ( zero_idx [ 12 ] , zero_idx [ 13 ] ) ;\n zero_idx [ 7 ] = _mm_or_si128 ( zero_idx [ 14 ] , zero_idx [ 15 ] ) ;\n zero_idx [ 8 ] = _mm_or_si128 ( zero_idx [ 0 ] , zero_idx [ 1 ] ) ;\n zero_idx [ 9 ] = _mm_or_si128 ( zero_idx [ 2 ] , zero_idx [ 3 ] ) ;\n zero_idx [ 10 ] = _mm_or_si128 ( zero_idx [ 4 ] , zero_idx [ 5 ] ) ;\n zero_idx [ 11 ] = _mm_or_si128 ( zero_idx [ 6 ] , zero_idx [ 7 ] ) ;\n zero_idx [ 12 ] = _mm_or_si128 ( zero_idx [ 8 ] , zero_idx [ 9 ] ) ;\n zero_idx [ 13 ] = _mm_or_si128 ( zero_idx [ 10 ] , zero_idx [ 11 ] ) ;\n zero_idx [ 14 ] = _mm_or_si128 ( zero_idx [ 12 ] , zero_idx [ 13 ] ) ;\n if ( _mm_movemask_epi8 ( _mm_cmpeq_epi32 ( zero_idx [ 14 ] , zero ) ) == 0xFFFF ) {\n col [ i32 + 0 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 1 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 2 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 3 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 4 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 5 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 6 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 7 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 8 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 9 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 10 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 11 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 12 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 13 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 14 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 15 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 16 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 17 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 18 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 19 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 20 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 21 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 22 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 23 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 24 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 25 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 26 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 27 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 28 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 29 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 30 ] = _mm_setzero_si128 ( ) ;\n col [ i32 + 31 ] = _mm_setzero_si128 ( ) ;\n continue ;\n }\n array_transpose_8x8 ( in , in ) ;\n array_transpose_8x8 ( in + 8 , in + 8 ) ;\n array_transpose_8x8 ( in + 16 , in + 16 ) ;\n array_transpose_8x8 ( in + 24 , in + 24 ) ;\n IDCT32 col [ i32 + 0 ] = _mm_add_epi16 ( stp1_0 , stp1_31 ) ;\n col [ i32 + 1 ] = _mm_add_epi16 ( stp1_1 , stp1_30 ) ;\n col [ i32 + 2 ] = _mm_add_epi16 ( stp1_2 , stp1_29 ) ;\n col [ i32 + 3 ] = _mm_add_epi16 ( stp1_3 , stp1_28 ) ;\n col [ i32 + 4 ] = _mm_add_epi16 ( stp1_4 , stp1_27 ) ;\n col [ i32 + 5 ] = _mm_add_epi16 ( stp1_5 , stp1_26 ) ;\n col [ i32 + 6 ] = _mm_add_epi16 ( stp1_6 , stp1_25 ) ;\n col [ i32 + 7 ] = _mm_add_epi16 ( stp1_7 , stp1_24 ) ;\n col [ i32 + 8 ] = _mm_add_epi16 ( stp1_8 , stp1_23 ) ;\n col [ i32 + 9 ] = _mm_add_epi16 ( stp1_9 , stp1_22 ) ;\n col [ i32 + 10 ] = _mm_add_epi16 ( stp1_10 , stp1_21 ) ;\n col [ i32 + 11 ] = _mm_add_epi16 ( stp1_11 , stp1_20 ) ;\n col [ i32 + 12 ] = _mm_add_epi16 ( stp1_12 , stp1_19 ) ;\n col [ i32 + 13 ] = _mm_add_epi16 ( stp1_13 , stp1_18 ) ;\n col [ i32 + 14 ] = _mm_add_epi16 ( stp1_14 , stp1_17 ) ;\n col [ i32 + 15 ] = _mm_add_epi16 ( stp1_15 , stp1_16 ) ;\n col [ i32 + 16 ] = _mm_sub_epi16 ( stp1_15 , stp1_16 ) ;\n col [ i32 + 17 ] = _mm_sub_epi16 ( stp1_14 , stp1_17 ) ;\n col [ i32 + 18 ] = _mm_sub_epi16 ( stp1_13 , stp1_18 ) ;\n col [ i32 + 19 ] = _mm_sub_epi16 ( stp1_12 , stp1_19 ) ;\n col [ i32 + 20 ] = _mm_sub_epi16 ( stp1_11 , stp1_20 ) ;\n col [ i32 + 21 ] = _mm_sub_epi16 ( stp1_10 , stp1_21 ) ;\n col [ i32 + 22 ] = _mm_sub_epi16 ( stp1_9 , stp1_22 ) ;\n col [ i32 + 23 ] = _mm_sub_epi16 ( stp1_8 , stp1_23 ) ;\n col [ i32 + 24 ] = _mm_sub_epi16 ( stp1_7 , stp1_24 ) ;\n col [ i32 + 25 ] = _mm_sub_epi16 ( stp1_6 , stp1_25 ) ;\n col [ i32 + 26 ] = _mm_sub_epi16 ( stp1_5 , stp1_26 ) ;\n col [ i32 + 27 ] = _mm_sub_epi16 ( stp1_4 , stp1_27 ) ;\n col [ i32 + 28 ] = _mm_sub_epi16 ( stp1_3 , stp1_28 ) ;\n col [ i32 + 29 ] = _mm_sub_epi16 ( stp1_2 , stp1_29 ) ;\n col [ i32 + 30 ] = _mm_sub_epi16 ( stp1_1 , stp1_30 ) ;\n col [ i32 + 31 ] = _mm_sub_epi16 ( stp1_0 , stp1_31 ) ;\n }\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n j = i << 3 ;\n array_transpose_8x8 ( col + j , in ) ;\n array_transpose_8x8 ( col + j + 32 , in + 8 ) ;\n array_transpose_8x8 ( col + j + 64 , in + 16 ) ;\n array_transpose_8x8 ( col + j + 96 , in + 24 ) ;\n IDCT32 in [ 0 ] = _mm_add_epi16 ( stp1_0 , stp1_31 ) ;\n in [ 1 ] = _mm_add_epi16 ( stp1_1 , stp1_30 ) ;\n in [ 2 ] = _mm_add_epi16 ( stp1_2 , stp1_29 ) ;\n in [ 3 ] = _mm_add_epi16 ( stp1_3 , stp1_28 ) ;\n in [ 4 ] = _mm_add_epi16 ( stp1_4 , stp1_27 ) ;\n in [ 5 ] = _mm_add_epi16 ( stp1_5 , stp1_26 ) ;\n in [ 6 ] = _mm_add_epi16 ( stp1_6 , stp1_25 ) ;\n in [ 7 ] = _mm_add_epi16 ( stp1_7 , stp1_24 ) ;\n in [ 8 ] = _mm_add_epi16 ( stp1_8 , stp1_23 ) ;\n in [ 9 ] = _mm_add_epi16 ( stp1_9 , stp1_22 ) ;\n in [ 10 ] = _mm_add_epi16 ( stp1_10 , stp1_21 ) ;\n in [ 11 ] = _mm_add_epi16 ( stp1_11 , stp1_20 ) ;\n in [ 12 ] = _mm_add_epi16 ( stp1_12 , stp1_19 ) ;\n in [ 13 ] = _mm_add_epi16 ( stp1_13 , stp1_18 ) ;\n in [ 14 ] = _mm_add_epi16 ( stp1_14 , stp1_17 ) ;\n in [ 15 ] = _mm_add_epi16 ( stp1_15 , stp1_16 ) ;\n in [ 16 ] = _mm_sub_epi16 ( stp1_15 , stp1_16 ) ;\n in [ 17 ] = _mm_sub_epi16 ( stp1_14 , stp1_17 ) ;\n in [ 18 ] = _mm_sub_epi16 ( stp1_13 , stp1_18 ) ;\n in [ 19 ] = _mm_sub_epi16 ( stp1_12 , stp1_19 ) ;\n in [ 20 ] = _mm_sub_epi16 ( stp1_11 , stp1_20 ) ;\n in [ 21 ] = _mm_sub_epi16 ( stp1_10 , stp1_21 ) ;\n in [ 22 ] = _mm_sub_epi16 ( stp1_9 , stp1_22 ) ;\n in [ 23 ] = _mm_sub_epi16 ( stp1_8 , stp1_23 ) ;\n in [ 24 ] = _mm_sub_epi16 ( stp1_7 , stp1_24 ) ;\n in [ 25 ] = _mm_sub_epi16 ( stp1_6 , stp1_25 ) ;\n in [ 26 ] = _mm_sub_epi16 ( stp1_5 , stp1_26 ) ;\n in [ 27 ] = _mm_sub_epi16 ( stp1_4 , stp1_27 ) ;\n in [ 28 ] = _mm_sub_epi16 ( stp1_3 , stp1_28 ) ;\n in [ 29 ] = _mm_sub_epi16 ( stp1_2 , stp1_29 ) ;\n in [ 30 ] = _mm_sub_epi16 ( stp1_1 , stp1_30 ) ;\n in [ 31 ] = _mm_sub_epi16 ( stp1_0 , stp1_31 ) ;\n in [ 0 ] = _mm_adds_epi16 ( in [ 0 ] , final_rounding ) ;\n in [ 1 ] = _mm_adds_epi16 ( in [ 1 ] , final_rounding ) ;\n in [ 2 ] = _mm_adds_epi16 ( in [ 2 ] , final_rounding ) ;\n in [ 3 ] = _mm_adds_epi16 ( in [ 3 ] , final_rounding ) ;\n in [ 4 ] = _mm_adds_epi16 ( in [ 4 ] , final_rounding ) ;\n in [ 5 ] = _mm_adds_epi16 ( in [ 5 ] , final_rounding ) ;\n in [ 6 ] = _mm_adds_epi16 ( in [ 6 ] , final_rounding ) ;\n in [ 7 ] = _mm_adds_epi16 ( in [ 7 ] , final_rounding ) ;\n in [ 8 ] = _mm_adds_epi16 ( in [ 8 ] , final_rounding ) ;\n in [ 9 ] = _mm_adds_epi16 ( in [ 9 ] , final_rounding ) ;\n in [ 10 ] = _mm_adds_epi16 ( in [ 10 ] , final_rounding ) ;\n in [ 11 ] = _mm_adds_epi16 ( in [ 11 ] , final_rounding ) ;\n in [ 12 ] = _mm_adds_epi16 ( in [ 12 ] , final_rounding ) ;\n in [ 13 ] = _mm_adds_epi16 ( in [ 13 ] , final_rounding ) ;\n in [ 14 ] = _mm_adds_epi16 ( in [ 14 ] , final_rounding ) ;\n in [ 15 ] = _mm_adds_epi16 ( in [ 15 ] , final_rounding ) ;\n in [ 16 ] = _mm_adds_epi16 ( in [ 16 ] , final_rounding ) ;\n in [ 17 ] = _mm_adds_epi16 ( in [ 17 ] , final_rounding ) ;\n in [ 18 ] = _mm_adds_epi16 ( in [ 18 ] , final_rounding ) ;\n in [ 19 ] = _mm_adds_epi16 ( in [ 19 ] , final_rounding ) ;\n in [ 20 ] = _mm_adds_epi16 ( in [ 20 ] , final_rounding ) ;\n in [ 21 ] = _mm_adds_epi16 ( in [ 21 ] , final_rounding ) ;\n in [ 22 ] = _mm_adds_epi16 ( in [ 22 ] , final_rounding ) ;\n in [ 23 ] = _mm_adds_epi16 ( in [ 23 ] , final_rounding ) ;\n in [ 24 ] = _mm_adds_epi16 ( in [ 24 ] , final_rounding ) ;\n in [ 25 ] = _mm_adds_epi16 ( in [ 25 ] , final_rounding ) ;\n in [ 26 ] = _mm_adds_epi16 ( in [ 26 ] , final_rounding ) ;\n in [ 27 ] = _mm_adds_epi16 ( in [ 27 ] , final_rounding ) ;\n in [ 28 ] = _mm_adds_epi16 ( in [ 28 ] , final_rounding ) ;\n in [ 29 ] = _mm_adds_epi16 ( in [ 29 ] , final_rounding ) ;\n in [ 30 ] = _mm_adds_epi16 ( in [ 30 ] , final_rounding ) ;\n in [ 31 ] = _mm_adds_epi16 ( in [ 31 ] , final_rounding ) ;\n in [ 0 ] = _mm_srai_epi16 ( in [ 0 ] , 6 ) ;\n in [ 1 ] = _mm_srai_epi16 ( in [ 1 ] , 6 ) ;\n in [ 2 ] = _mm_srai_epi16 ( in [ 2 ] , 6 ) ;\n in [ 3 ] = _mm_srai_epi16 ( in [ 3 ] , 6 ) ;\n in [ 4 ] = _mm_srai_epi16 ( in [ 4 ] , 6 ) ;\n in [ 5 ] = _mm_srai_epi16 ( in [ 5 ] , 6 ) ;\n in [ 6 ] = _mm_srai_epi16 ( in [ 6 ] , 6 ) ;\n in [ 7 ] = _mm_srai_epi16 ( in [ 7 ] , 6 ) ;\n in [ 8 ] = _mm_srai_epi16 ( in [ 8 ] , 6 ) ;\n in [ 9 ] = _mm_srai_epi16 ( in [ 9 ] , 6 ) ;\n in [ 10 ] = _mm_srai_epi16 ( in [ 10 ] , 6 ) ;\n in [ 11 ] = _mm_srai_epi16 ( in [ 11 ] , 6 ) ;\n in [ 12 ] = _mm_srai_epi16 ( in [ 12 ] , 6 ) ;\n in [ 13 ] = _mm_srai_epi16 ( in [ 13 ] , 6 ) ;\n in [ 14 ] = _mm_srai_epi16 ( in [ 14 ] , 6 ) ;\n in [ 15 ] = _mm_srai_epi16 ( in [ 15 ] , 6 ) ;\n in [ 16 ] = _mm_srai_epi16 ( in [ 16 ] , 6 ) ;\n in [ 17 ] = _mm_srai_epi16 ( in [ 17 ] , 6 ) ;\n in [ 18 ] = _mm_srai_epi16 ( in [ 18 ] , 6 ) ;\n in [ 19 ] = _mm_srai_epi16 ( in [ 19 ] , 6 ) ;\n in [ 20 ] = _mm_srai_epi16 ( in [ 20 ] , 6 ) ;\n in [ 21 ] = _mm_srai_epi16 ( in [ 21 ] , 6 ) ;\n in [ 22 ] = _mm_srai_epi16 ( in [ 22 ] , 6 ) ;\n in [ 23 ] = _mm_srai_epi16 ( in [ 23 ] , 6 ) ;\n in [ 24 ] = _mm_srai_epi16 ( in [ 24 ] , 6 ) ;\n in [ 25 ] = _mm_srai_epi16 ( in [ 25 ] , 6 ) ;\n in [ 26 ] = _mm_srai_epi16 ( in [ 26 ] , 6 ) ;\n in [ 27 ] = _mm_srai_epi16 ( in [ 27 ] , 6 ) ;\n in [ 28 ] = _mm_srai_epi16 ( in [ 28 ] , 6 ) ;\n in [ 29 ] = _mm_srai_epi16 ( in [ 29 ] , 6 ) ;\n in [ 30 ] = _mm_srai_epi16 ( in [ 30 ] , 6 ) ;\n in [ 31 ] = _mm_srai_epi16 ( in [ 31 ] , 6 ) ;\n RECON_AND_STORE ( dest , in [ 0 ] ) ;\n RECON_AND_STORE ( dest , in [ 1 ] ) ;\n RECON_AND_STORE ( dest , in [ 2 ] ) ;\n RECON_AND_STORE ( dest , in [ 3 ] ) ;\n RECON_AND_STORE ( dest , in [ 4 ] ) ;\n RECON_AND_STORE ( dest , in [ 5 ] ) ;\n RECON_AND_STORE ( dest , in [ 6 ] ) ;\n RECON_AND_STORE ( dest , in [ 7 ] ) ;\n RECON_AND_STORE ( dest , in [ 8 ] ) ;\n RECON_AND_STORE ( dest , in [ 9 ] ) ;\n RECON_AND_STORE ( dest , in [ 10 ] ) ;\n RECON_AND_STORE ( dest , in [ 11 ] ) ;\n RECON_AND_STORE ( dest , in [ 12 ] ) ;\n RECON_AND_STORE ( dest , in [ 13 ] ) ;\n RECON_AND_STORE ( dest , in [ 14 ] ) ;\n RECON_AND_STORE ( dest , in [ 15 ] ) ;\n RECON_AND_STORE ( dest , in [ 16 ] ) ;\n RECON_AND_STORE ( dest , in [ 17 ] ) ;\n RECON_AND_STORE ( dest , in [ 18 ] ) ;\n RECON_AND_STORE ( dest , in [ 19 ] ) ;\n RECON_AND_STORE ( dest , in [ 20 ] ) ;\n RECON_AND_STORE ( dest , in [ 21 ] ) ;\n RECON_AND_STORE ( dest , in [ 22 ] ) ;\n RECON_AND_STORE ( dest , in [ 23 ] ) ;\n RECON_AND_STORE ( dest , in [ 24 ] ) ;\n RECON_AND_STORE ( dest , in [ 25 ] ) ;\n RECON_AND_STORE ( dest , in [ 26 ] ) ;\n RECON_AND_STORE ( dest , in [ 27 ] ) ;\n RECON_AND_STORE ( dest , in [ 28 ] ) ;\n RECON_AND_STORE ( dest , in [ 29 ] ) ;\n RECON_AND_STORE ( dest , in [ 30 ] ) ;\n RECON_AND_STORE ( dest , in [ 31 ] ) ;\n dest += 8 - ( stride * 32 ) ;\n }\n }"}
{"idx": 16851, "target": 0, "func": "static PyObject * string_join ( PyStringObject * self , PyObject * orig ) {\n char * sep = PyString_AS_STRING ( self ) ;\n const Py_ssize_t seplen = PyString_GET_SIZE ( self ) ;\n PyObject * res = NULL ;\n char * p ;\n Py_ssize_t seqlen = 0 ;\n size_t sz = 0 ;\n Py_ssize_t i ;\n PyObject * seq , * item ;\n seq = PySequence_Fast ( orig , \"can only join an iterable\" ) ;\n if ( seq == NULL ) {\n return NULL ;\n }\n seqlen = PySequence_Size ( seq ) ;\n if ( seqlen == 0 ) {\n Py_DECREF ( seq ) ;\n return PyString_FromString ( \"\" ) ;\n }\n if ( seqlen == 1 ) {\n item = PySequence_Fast_GET_ITEM ( seq , 0 ) ;\n if ( PyString_CheckExact ( item ) || PyUnicode_CheckExact ( item ) ) {\n Py_INCREF ( item ) ;\n Py_DECREF ( seq ) ;\n return item ;\n }\n }\n for ( i = 0 ;\n i < seqlen ;\n i ++ ) {\n const size_t old_sz = sz ;\n item = PySequence_Fast_GET_ITEM ( seq , i ) ;\n if ( ! PyString_Check ( item ) ) {\n # ifdef Py_USING_UNICODE if ( PyUnicode_Check ( item ) ) {\n PyObject * result ;\n result = PyUnicode_Join ( ( PyObject * ) self , seq ) ;\n Py_DECREF ( seq ) ;\n return result ;\n }\n # endif PyErr_Format ( PyExc_TypeError , \"sequence item %zd: expected string,\" \" %.80s found\" , i , Py_TYPE ( item ) -> tp_name ) ;\n Py_DECREF ( seq ) ;\n return NULL ;\n }\n sz += PyString_GET_SIZE ( item ) ;\n if ( i != 0 ) sz += seplen ;\n if ( sz < old_sz || sz > PY_SSIZE_T_MAX ) {\n PyErr_SetString ( PyExc_OverflowError , \"join() result is too long for a Python string\" ) ;\n Py_DECREF ( seq ) ;\n return NULL ;\n }\n }\n res = PyString_FromStringAndSize ( ( char * ) NULL , sz ) ;\n if ( res == NULL ) {\n Py_DECREF ( seq ) ;\n return NULL ;\n }\n p = PyString_AS_STRING ( res ) ;\n for ( i = 0 ;\n i < seqlen ;\n ++ i ) {\n size_t n ;\n item = PySequence_Fast_GET_ITEM ( seq , i ) ;\n n = PyString_GET_SIZE ( item ) ;\n Py_MEMCPY ( p , PyString_AS_STRING ( item ) , n ) ;\n p += n ;\n if ( i < seqlen - 1 ) {\n Py_MEMCPY ( p , sep , seplen ) ;\n p += seplen ;\n }\n }\n Py_DECREF ( seq ) ;\n return res ;\n }"}
{"idx": 16852, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , NoDocumentWrite ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : FIRST_CONTENTFUL_PAINT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/title1.html\" ) ) ;\n waiter -> Wait ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramFirstContentfulPaint , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramDocWriteBlockParseStartToFirstContentfulPaint , 0 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramDocWriteBlockCount , 0 ) ;\n }"}
{"idx": 16853, "target": 0, "func": "static void jas_stream_destroy ( jas_stream_t * stream ) {\n if ( ( stream -> bufmode_ & JAS_STREAM_FREEBUF ) && stream -> bufbase_ ) {\n jas_free ( stream -> bufbase_ ) ;\n stream -> bufbase_ = 0 ;\n }\n jas_free ( stream ) ;\n }"}
{"idx": 16854, "target": 0, "func": "static inline int spl_filesystem_is_dot ( const char * d_name ) {\n return ! strcmp ( d_name , \".\" ) || ! strcmp ( d_name , \"..\" ) ;\n }"}
{"idx": 16855, "target": 0, "func": "void TSMgmtUpdateRegister ( TSCont contp , const char * plugin_name ) {\n sdk_assert ( sdk_sanity_check_iocore_structure ( contp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) plugin_name ) == TS_SUCCESS ) ;\n global_config_cbs -> insert ( ( INKContInternal * ) contp , plugin_name ) ;\n }"}
{"idx": 16856, "target": 0, "func": "static int filter_count_output ( int c , void * data ) {\n ( * ( int * ) data ) ++ ;\n return c ;\n }"}
{"idx": 16857, "target": 0, "func": "EC_GROUP * ec_asn1_pkparameters2group ( const ECPKPARAMETERS * params ) {\n EC_GROUP * ret = NULL ;\n int tmp = 0 ;\n if ( params == NULL ) {\n ECerr ( EC_F_EC_ASN1_PKPARAMETERS2GROUP , EC_R_MISSING_PARAMETERS ) ;\n return NULL ;\n }\n if ( params -> type == 0 ) {\n tmp = OBJ_obj2nid ( params -> value . named_curve ) ;\n if ( ( ret = EC_GROUP_new_by_curve_name ( tmp ) ) == NULL ) {\n ECerr ( EC_F_EC_ASN1_PKPARAMETERS2GROUP , EC_R_EC_GROUP_NEW_BY_NAME_FAILURE ) ;\n return NULL ;\n }\n EC_GROUP_set_asn1_flag ( ret , OPENSSL_EC_NAMED_CURVE ) ;\n }\n else if ( params -> type == 1 ) {\n ret = ec_asn1_parameters2group ( params -> value . parameters ) ;\n if ( ! ret ) {\n ECerr ( EC_F_EC_ASN1_PKPARAMETERS2GROUP , ERR_R_EC_LIB ) ;\n return NULL ;\n }\n EC_GROUP_set_asn1_flag ( ret , 0x0 ) ;\n }\n else if ( params -> type == 2 ) {\n return NULL ;\n }\n else {\n ECerr ( EC_F_EC_ASN1_PKPARAMETERS2GROUP , EC_R_ASN1_ERROR ) ;\n return NULL ;\n }\n return ret ;\n }"}
{"idx": 16858, "target": 0, "func": "int restore_check_save ( i_ctx_t * i_ctx_p , alloc_save_t * * asave ) {\n os_ptr op = osp ;\n int code = restore_check_operand ( op , asave , idmemory ) ;\n if ( code < 0 ) return code ;\n if_debug2m ( 'u' , imemory , \"[u]vmrestore 0x%lx, id = %lu\\n\" , ( ulong ) alloc_save_client_data ( * asave ) , ( ulong ) op -> value . saveid ) ;\n if ( I_VALIDATE_BEFORE_RESTORE ) ivalidate_clean_spaces ( i_ctx_p ) ;\n osp -- ;\n {\n int code ;\n if ( ( code = restore_check_stack ( i_ctx_p , & o_stack , * asave , false ) ) < 0 || ( code = restore_check_stack ( i_ctx_p , & e_stack , * asave , true ) ) < 0 || ( code = restore_check_stack ( i_ctx_p , & d_stack , * asave , false ) ) < 0 ) {\n osp ++ ;\n return code ;\n }\n }\n osp ++ ;\n return 0 ;\n }"}
{"idx": 16859, "target": 0, "func": "static cmsStage * ReadSetOfCurves ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number Offset , cmsUInt32Number nCurves ) {\n cmsToneCurve * Curves [ cmsMAXCHANNELS ] ;\n cmsUInt32Number i ;\n cmsStage * Lin = NULL ;\n if ( nCurves > cmsMAXCHANNELS ) return FALSE ;\n if ( ! io -> Seek ( io , Offset ) ) return FALSE ;\n for ( i = 0 ;\n i < nCurves ;\n i ++ ) Curves [ i ] = NULL ;\n for ( i = 0 ;\n i < nCurves ;\n i ++ ) {\n Curves [ i ] = ReadEmbeddedCurve ( self , io ) ;\n if ( Curves [ i ] == NULL ) goto Error ;\n if ( ! _cmsReadAlignment ( io ) ) goto Error ;\n }\n Lin = cmsStageAllocToneCurves ( self -> ContextID , nCurves , Curves ) ;\n Error : for ( i = 0 ;\n i < nCurves ;\n i ++ ) cmsFreeToneCurve ( Curves [ i ] ) ;\n return Lin ;\n }"}
{"idx": 16860, "target": 0, "func": "static void ffmpeg_InitCodec ( decoder_t * p_dec ) {\n decoder_sys_t * p_sys = p_dec -> p_sys ;\n int i_size = p_dec -> fmt_in . i_extra ;\n if ( ! i_size ) return ;\n if ( p_sys -> i_codec_id == AV_CODEC_ID_SVQ3 ) {\n uint8_t * p ;\n p_sys -> p_context -> extradata_size = i_size + 12 ;\n p = p_sys -> p_context -> extradata = av_malloc ( p_sys -> p_context -> extradata_size + FF_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( ! p ) return ;\n memcpy ( & p [ 0 ] , \"SVQ3\" , 4 ) ;\n memset ( & p [ 4 ] , 0 , 8 ) ;\n memcpy ( & p [ 12 ] , p_dec -> fmt_in . p_extra , i_size ) ;\n if ( p_sys -> p_context -> extradata_size > 0x5a && strncmp ( ( char * ) & p [ 0x56 ] , \"SMI \" , 4 ) ) {\n uint8_t * psz = & p [ 0x52 ] ;\n while ( psz < & p [ p_sys -> p_context -> extradata_size - 8 ] ) {\n int i_size = GetDWBE ( psz ) ;\n if ( i_size <= 1 ) {\n break ;\n }\n if ( ! strncmp ( ( char * ) & psz [ 4 ] , \"SMI \" , 4 ) ) {\n memmove ( & p [ 0x52 ] , psz , & p [ p_sys -> p_context -> extradata_size ] - psz ) ;\n break ;\n }\n psz += i_size ;\n }\n }\n }\n else {\n p_sys -> p_context -> extradata_size = i_size ;\n p_sys -> p_context -> extradata = av_malloc ( i_size + FF_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( p_sys -> p_context -> extradata ) {\n memcpy ( p_sys -> p_context -> extradata , p_dec -> fmt_in . p_extra , i_size ) ;\n memset ( p_sys -> p_context -> extradata + i_size , 0 , FF_INPUT_BUFFER_PADDING_SIZE ) ;\n }\n }\n }"}
{"idx": 16861, "target": 0, "func": "static Datum ExecEvalOr ( BoolExprState * orExpr , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n List * clauses = orExpr -> args ;\n ListCell * clause ;\n bool AnyNull ;\n if ( isDone ) * isDone = ExprSingleResult ;\n AnyNull = false ;\n foreach ( clause , clauses ) {\n ExprState * clausestate = ( ExprState * ) lfirst ( clause ) ;\n Datum clause_value ;\n clause_value = ExecEvalExpr ( clausestate , econtext , isNull , NULL ) ;\n if ( * isNull ) AnyNull = true ;\n else if ( DatumGetBool ( clause_value ) ) return clause_value ;\n }\n * isNull = AnyNull ;\n return BoolGetDatum ( false ) ;\n }"}
{"idx": 16862, "target": 0, "func": "static int fmtint ( char * * sbuffer , char * * buffer , size_t * currlen , size_t * maxlen , LLONG value , int base , int min , int max , int flags ) {\n int signvalue = 0 ;\n const char * prefix = \"\" ;\n unsigned LLONG uvalue ;\n char convert [ DECIMAL_SIZE ( value ) + 3 ] ;\n int place = 0 ;\n int spadlen = 0 ;\n int zpadlen = 0 ;\n int caps = 0 ;\n if ( max < 0 ) max = 0 ;\n uvalue = value ;\n if ( ! ( flags & DP_F_UNSIGNED ) ) {\n if ( value < 0 ) {\n signvalue = '-' ;\n uvalue = - value ;\n }\n else if ( flags & DP_F_PLUS ) signvalue = '+' ;\n else if ( flags & DP_F_SPACE ) signvalue = ' ' ;\n }\n if ( flags & DP_F_NUM ) {\n if ( base == 8 ) prefix = \"0\" ;\n if ( base == 16 ) prefix = \"0x\" ;\n }\n if ( flags & DP_F_UP ) caps = 1 ;\n do {\n convert [ place ++ ] = ( caps ? \"0123456789ABCDEF\" : \"0123456789abcdef\" ) [ uvalue % ( unsigned ) base ] ;\n uvalue = ( uvalue / ( unsigned ) base ) ;\n }\n while ( uvalue && ( place < ( int ) sizeof ( convert ) ) ) ;\n if ( place == sizeof ( convert ) ) place -- ;\n convert [ place ] = 0 ;\n zpadlen = max - place ;\n spadlen = min - OSSL_MAX ( max , place ) - ( signvalue ? 1 : 0 ) - strlen ( prefix ) ;\n if ( zpadlen < 0 ) zpadlen = 0 ;\n if ( spadlen < 0 ) spadlen = 0 ;\n if ( flags & DP_F_ZERO ) {\n zpadlen = OSSL_MAX ( zpadlen , spadlen ) ;\n spadlen = 0 ;\n }\n if ( flags & DP_F_MINUS ) spadlen = - spadlen ;\n while ( spadlen > 0 ) {\n if ( ! doapr_outch ( sbuffer , buffer , currlen , maxlen , ' ' ) ) return 0 ;\n -- spadlen ;\n }\n if ( signvalue ) if ( ! doapr_outch ( sbuffer , buffer , currlen , maxlen , signvalue ) ) return 0 ;\n while ( * prefix ) {\n if ( ! doapr_outch ( sbuffer , buffer , currlen , maxlen , * prefix ) ) return 0 ;\n prefix ++ ;\n }\n if ( zpadlen > 0 ) {\n while ( zpadlen > 0 ) {\n if ( ! doapr_outch ( sbuffer , buffer , currlen , maxlen , '0' ) ) return 0 ;\n -- zpadlen ;\n }\n }\n while ( place > 0 ) {\n if ( ! doapr_outch ( sbuffer , buffer , currlen , maxlen , convert [ -- place ] ) ) return 0 ;\n }\n while ( spadlen < 0 ) {\n if ( ! doapr_outch ( sbuffer , buffer , currlen , maxlen , ' ' ) ) return 0 ;\n ++ spadlen ;\n }\n return 1 ;\n }"}
{"idx": 16863, "target": 0, "func": "static void mac_is_copy ( mac_is_sdu * sdu , mac_is_fragment * frag , guint total_length , gboolean reverse ) {\n DISSECTOR_ASSERT ( sdu -> length + frag -> length <= total_length ) ;\n if ( reverse ) {\n memcpy ( sdu -> data + total_length - frag -> length - sdu -> length , frag -> data , frag -> length ) ;\n }\n else {\n memcpy ( sdu -> data + sdu -> length , frag -> data , frag -> length ) ;\n }\n sdu -> length += frag -> length ;\n g_free ( frag -> data ) ;\n }"}
{"idx": 16864, "target": 0, "func": "TSReturnCode TSTextLogObjectDestroy ( TSTextLogObject the_object ) {\n sdk_assert ( sdk_sanity_check_iocore_structure ( the_object ) == TS_SUCCESS ) ;\n if ( Log : : config -> log_object_manager . unmanage_api_object ( ( TextLogObject * ) the_object ) ) {\n return TS_SUCCESS ;\n }\n return TS_ERROR ;\n }"}
{"idx": 16865, "target": 0, "func": "static int32_t u_scanf_skip_leading_ws ( UFILE * input , UChar pad ) {\n UChar c ;\n int32_t count = 0 ;\n UBool isNotEOF ;\n while ( ( isNotEOF = ufile_getch ( input , & c ) ) && ( c == pad || u_isWhitespace ( c ) ) ) {\n count ++ ;\n }\n if ( isNotEOF ) u_fungetc ( c , input ) ;\n return count ;\n }"}
{"idx": 16866, "target": 0, "func": "void init_directory_config ( directory_config * dcfg ) {\n if ( dcfg == NULL ) return ;\n if ( dcfg -> is_enabled == NOT_SET ) dcfg -> is_enabled = 0 ;\n if ( dcfg -> reqbody_access == NOT_SET ) dcfg -> reqbody_access = 0 ;\n if ( dcfg -> reqintercept_oe == NOT_SET ) dcfg -> reqintercept_oe = 0 ;\n if ( dcfg -> reqbody_buffering == NOT_SET ) dcfg -> reqbody_buffering = REQUEST_BODY_FORCEBUF_OFF ;\n if ( dcfg -> reqbody_inmemory_limit == NOT_SET ) dcfg -> reqbody_inmemory_limit = REQUEST_BODY_DEFAULT_INMEMORY_LIMIT ;\n if ( dcfg -> reqbody_limit == NOT_SET ) dcfg -> reqbody_limit = REQUEST_BODY_DEFAULT_LIMIT ;\n if ( dcfg -> reqbody_no_files_limit == NOT_SET ) dcfg -> reqbody_no_files_limit = REQUEST_BODY_NO_FILES_DEFAULT_LIMIT ;\n if ( dcfg -> resbody_access == NOT_SET ) dcfg -> resbody_access = 0 ;\n if ( dcfg -> of_limit == NOT_SET ) dcfg -> of_limit = RESPONSE_BODY_DEFAULT_LIMIT ;\n if ( dcfg -> if_limit_action == NOT_SET ) dcfg -> if_limit_action = REQUEST_BODY_LIMIT_ACTION_REJECT ;\n if ( dcfg -> of_limit_action == NOT_SET ) dcfg -> of_limit_action = RESPONSE_BODY_LIMIT_ACTION_REJECT ;\n if ( dcfg -> of_mime_types == NOT_SET_P ) {\n dcfg -> of_mime_types = apr_table_make ( dcfg -> mp , 3 ) ;\n if ( dcfg -> of_mime_types_cleared != 1 ) {\n apr_table_setn ( dcfg -> of_mime_types , \"text/plain\" , \"1\" ) ;\n apr_table_setn ( dcfg -> of_mime_types , \"text/html\" , \"1\" ) ;\n }\n }\n if ( dcfg -> debuglog_fd == NOT_SET_P ) dcfg -> debuglog_fd = NULL ;\n if ( dcfg -> debuglog_name == NOT_SET_P ) dcfg -> debuglog_name = NULL ;\n if ( dcfg -> debuglog_level == NOT_SET ) dcfg -> debuglog_level = 0 ;\n if ( dcfg -> cookie_format == NOT_SET ) dcfg -> cookie_format = 0 ;\n if ( dcfg -> argument_separator == NOT_SET ) dcfg -> argument_separator = '&' ;\n if ( dcfg -> cookiev0_separator == NOT_SET_P ) dcfg -> cookiev0_separator = NULL ;\n if ( dcfg -> rule_inheritance == NOT_SET ) dcfg -> rule_inheritance = 1 ;\n if ( dcfg -> auditlog_flag == NOT_SET ) dcfg -> auditlog_flag = 0 ;\n if ( dcfg -> auditlog_type == NOT_SET ) dcfg -> auditlog_type = AUDITLOG_SERIAL ;\n if ( dcfg -> max_rule_time == NOT_SET ) dcfg -> max_rule_time = 0 ;\n if ( dcfg -> auditlog_dirperms == NOT_SET ) dcfg -> auditlog_dirperms = CREATEMODE_DIR ;\n if ( dcfg -> auditlog_fileperms == NOT_SET ) dcfg -> auditlog_fileperms = CREATEMODE ;\n if ( dcfg -> auditlog_fd == NOT_SET_P ) dcfg -> auditlog_fd = NULL ;\n if ( dcfg -> auditlog2_fd == NOT_SET_P ) dcfg -> auditlog2_fd = NULL ;\n if ( dcfg -> auditlog_name == NOT_SET_P ) dcfg -> auditlog_name = NULL ;\n if ( dcfg -> auditlog2_name == NOT_SET_P ) dcfg -> auditlog2_name = NULL ;\n if ( dcfg -> auditlog_storage_dir == NOT_SET_P ) dcfg -> auditlog_storage_dir = NULL ;\n if ( dcfg -> auditlog_parts == NOT_SET_P ) dcfg -> auditlog_parts = \"ABCFHZ\" ;\n if ( dcfg -> auditlog_relevant_regex == NOT_SET_P ) dcfg -> auditlog_relevant_regex = NULL ;\n if ( dcfg -> tmp_dir == NOT_SET_P ) dcfg -> tmp_dir = guess_tmp_dir ( dcfg -> mp ) ;\n if ( dcfg -> upload_dir == NOT_SET_P ) dcfg -> upload_dir = NULL ;\n if ( dcfg -> upload_keep_files == NOT_SET ) dcfg -> upload_keep_files = KEEP_FILES_OFF ;\n if ( dcfg -> upload_validates_files == NOT_SET ) dcfg -> upload_validates_files = 0 ;\n if ( dcfg -> upload_filemode == NOT_SET ) dcfg -> upload_filemode = 0600 ;\n if ( dcfg -> upload_file_limit == NOT_SET ) dcfg -> upload_file_limit = 100 ;\n if ( dcfg -> data_dir == NOT_SET_P ) dcfg -> data_dir = NULL ;\n if ( dcfg -> webappid == NOT_SET_P ) dcfg -> webappid = \"default\" ;\n if ( dcfg -> sensor_id == NOT_SET_P ) dcfg -> sensor_id = \"default\" ;\n if ( dcfg -> httpBlkey == NOT_SET_P ) dcfg -> httpBlkey = NULL ;\n if ( dcfg -> content_injection_enabled == NOT_SET ) dcfg -> content_injection_enabled = 0 ;\n if ( dcfg -> stream_inbody_inspection == NOT_SET ) dcfg -> stream_inbody_inspection = 0 ;\n if ( dcfg -> stream_outbody_inspection == NOT_SET ) dcfg -> stream_outbody_inspection = 0 ;\n if ( dcfg -> geo == NOT_SET_P ) dcfg -> geo = NULL ;\n if ( dcfg -> gsb == NOT_SET_P ) dcfg -> gsb = NULL ;\n if ( dcfg -> u_map == NOT_SET_P ) dcfg -> u_map = NULL ;\n if ( dcfg -> cache_trans == NOT_SET ) dcfg -> cache_trans = MODSEC_CACHE_DISABLED ;\n if ( dcfg -> cache_trans_incremental == NOT_SET ) dcfg -> cache_trans_incremental = 0 ;\n if ( dcfg -> cache_trans_min == ( apr_size_t ) NOT_SET ) dcfg -> cache_trans_min = 32 ;\n if ( dcfg -> cache_trans_max == ( apr_size_t ) NOT_SET ) dcfg -> cache_trans_max = 1024 ;\n if ( dcfg -> cache_trans_maxitems == ( apr_size_t ) NOT_SET ) dcfg -> cache_trans_maxitems = 512 ;\n if ( dcfg -> request_encoding == NOT_SET_P ) dcfg -> request_encoding = NULL ;\n if ( dcfg -> disable_backend_compression == NOT_SET ) dcfg -> disable_backend_compression = 0 ;\n if ( dcfg -> col_timeout == NOT_SET ) dcfg -> col_timeout = 3600 ;\n if ( dcfg -> crypto_key == NOT_SET_P ) dcfg -> crypto_key = getkey ( dcfg -> mp ) ;\n if ( dcfg -> crypto_key_len == NOT_SET ) dcfg -> crypto_key_len = strlen ( dcfg -> crypto_key ) ;\n if ( dcfg -> crypto_key_add == NOT_SET ) dcfg -> crypto_key_add = HASH_KEYONLY ;\n if ( dcfg -> crypto_param_name == NOT_SET_P ) dcfg -> crypto_param_name = \"crypt\" ;\n if ( dcfg -> hash_is_enabled == NOT_SET ) dcfg -> hash_is_enabled = HASH_DISABLED ;\n if ( dcfg -> hash_enforcement == NOT_SET ) dcfg -> hash_enforcement = HASH_DISABLED ;\n if ( dcfg -> crypto_hash_href_rx == NOT_SET ) dcfg -> crypto_hash_href_rx = 0 ;\n if ( dcfg -> crypto_hash_faction_rx == NOT_SET ) dcfg -> crypto_hash_faction_rx = 0 ;\n if ( dcfg -> crypto_hash_location_rx == NOT_SET ) dcfg -> crypto_hash_location_rx = 0 ;\n if ( dcfg -> crypto_hash_iframesrc_rx == NOT_SET ) dcfg -> crypto_hash_iframesrc_rx = 0 ;\n if ( dcfg -> crypto_hash_framesrc_rx == NOT_SET ) dcfg -> crypto_hash_framesrc_rx = 0 ;\n if ( dcfg -> crypto_hash_href_pm == NOT_SET ) dcfg -> crypto_hash_href_pm = 0 ;\n if ( dcfg -> crypto_hash_faction_pm == NOT_SET ) dcfg -> crypto_hash_faction_pm = 0 ;\n if ( dcfg -> crypto_hash_location_pm == NOT_SET ) dcfg -> crypto_hash_location_pm = 0 ;\n if ( dcfg -> crypto_hash_iframesrc_pm == NOT_SET ) dcfg -> crypto_hash_iframesrc_pm = 0 ;\n if ( dcfg -> crypto_hash_framesrc_pm == NOT_SET ) dcfg -> crypto_hash_framesrc_pm = 0 ;\n if ( dcfg -> xml_external_entity == NOT_SET ) dcfg -> xml_external_entity = 0 ;\n }"}
{"idx": 16867, "target": 0, "func": "static int window_refnum_left ( int refnum , int wrap ) {\n MAIN_WINDOW_REC * find_sticky ;\n WINDOW_REC * window ;\n window = window_find_refnum ( refnum ) ;\n g_return_val_if_fail ( window != NULL , - 1 ) ;\n find_sticky = WINDOW_MAIN ( window ) -> sticky_windows ? WINDOW_MAIN ( window ) : NULL ;\n do {\n refnum = window_refnum_prev ( refnum , wrap ) ;\n if ( refnum < 0 ) break ;\n window = window_find_refnum ( refnum ) ;\n }\n while ( ! WINDOW_STICKY_MATCH ( window , find_sticky ) ) ;\n return refnum ;\n }"}
{"idx": 16868, "target": 1, "func": "IN_PROC_BROWSER_TEST_P ( BrowserCloseManagerWithDownloadsBrowserTest , TestWithDangerousUrlDownload ) {\n SetDownloadPathForProfile ( browser ( ) -> profile ( ) ) ;\n std : : unique_ptr < TestDownloadManagerDelegate > test_delegate ( new TestDownloadManagerDelegate ( browser ( ) -> profile ( ) ) ) ;\n DownloadCoreServiceFactory : : GetForBrowserContext ( browser ( ) -> profile ( ) ) -> SetDownloadManagerDelegateForTesting ( std : : move ( test_delegate ) ) ;\n GURL download_url ( embedded_test_server ( ) -> GetURL ( \"/downloads/dangerous/dangerous.swf\" ) ) ;\n content : : DownloadTestObserverInterrupted observer ( content : : BrowserContext : : GetDownloadManager ( browser ( ) -> profile ( ) ) , 1 , content : : DownloadTestObserver : : ON_DANGEROUS_DOWNLOAD_QUIT ) ;\n ui_test_utils : : NavigateToURLWithDisposition ( browser ( ) , GURL ( download_url ) , WindowOpenDisposition : : NEW_BACKGROUND_TAB , ui_test_utils : : BROWSER_TEST_NONE ) ;\n observer . WaitForFinished ( ) ;\n EXPECT_EQ ( 1 , content : : BrowserContext : : GetDownloadManager ( browser ( ) -> profile ( ) ) -> InProgressCount ( ) ) ;\n EXPECT_EQ ( 0 , content : : BrowserContext : : GetDownloadManager ( browser ( ) -> profile ( ) ) -> NonMaliciousInProgressCount ( ) ) ;\n RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , 1 ) ;\n TestBrowserCloseManager : : AttemptClose ( TestBrowserCloseManager : : NO_USER_CHOICE ) ;\n close_observer . Wait ( ) ;\n EXPECT_TRUE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_TRUE ( BrowserList : : GetInstance ( ) -> empty ( ) ) ;\n }"}
{"idx": 16869, "target": 1, "func": "int test_compare_files ( const char * tgt , const char * rec ) {\n FILE * orig , * recons ;\n static uint8_t obuf [ TESTBUFSIZE ] , rbuf [ TESTBUFSIZE ] ;\n xoff_t offset = 0 ;\n size_t i ;\n size_t oc , rc ;\n xoff_t diffs = 0 ;\n if ( ( orig = fopen ( tgt , \"r\" ) ) == NULL ) {\n XPR ( NT \"open %s failed\\n\" , tgt ) ;\n return get_errno ( ) ;\n }\n if ( ( recons = fopen ( rec , \"r\" ) ) == NULL ) {\n XPR ( NT \"open %s failed\\n\" , rec ) ;\n return get_errno ( ) ;\n }\n for ( ;\n ;\n ) {\n oc = fread ( obuf , 1 , TESTBUFSIZE , orig ) ;\n rc = fread ( rbuf , 1 , TESTBUFSIZE , recons ) ;\n if ( oc != rc ) {\n return XD3_INTERNAL ;\n }\n if ( oc == 0 ) {\n break ;\n }\n for ( i = 0 ;\n i < oc ;\n i += 1 ) {\n if ( obuf [ i ] != rbuf [ i ] ) {\n XPR ( NT \"byte %u (read %u @ %\" Q \"u) %d != %d\\n\" , ( int ) i , ( int ) oc , offset , obuf [ i ] , rbuf [ i ] ) ;\n diffs ++ ;\n return XD3_INTERNAL ;\n }\n }\n offset += oc ;\n }\n fclose ( orig ) ;\n fclose ( recons ) ;\n if ( diffs != 0 ) {\n return XD3_INTERNAL ;\n }\n return 0 ;\n }"}
{"idx": 16870, "target": 0, "func": "TEST_F ( BudgetManagerTest , GetBudgetConsumedOverTime ) {\n SetSiteEngagementScore ( kTestSES ) ;\n const blink : : mojom : : BudgetOperationType type = blink : : mojom : : BudgetOperationType : : SILENT_PUSH ;\n for ( int i = 0 ;\n i < 11 ;\n i ++ ) {\n ASSERT_TRUE ( GetBudget ( ) ) ;\n ASSERT_TRUE ( ReserveBudget ( type ) ) ;\n }\n ASSERT_TRUE ( GetBudget ( ) ) ;\n ASSERT_FALSE ( ReserveBudget ( type ) ) ;\n for ( int i = 0 ;\n i < 11 ;\n i ++ ) ASSERT_TRUE ( ConsumeBudget ( type ) ) ;\n ASSERT_FALSE ( ConsumeBudget ( type ) ) ;\n std : : vector < base : : Bucket > buckets = histogram_tester ( ) -> GetAllSamples ( \"Blink.BudgetAPI.Reserve\" ) ;\n ASSERT_EQ ( 2U , buckets . size ( ) ) ;\n EXPECT_EQ ( 0 , buckets [ 0 ] . min ) ;\n EXPECT_EQ ( 1 , buckets [ 0 ] . count ) ;\n EXPECT_EQ ( 1 , buckets [ 1 ] . min ) ;\n EXPECT_EQ ( 11 , buckets [ 1 ] . count ) ;\n buckets = histogram_tester ( ) -> GetAllSamples ( \"Blink.BudgetAPI.QueryBudget\" ) ;\n int num_samples = 0 ;\n for ( const base : : Bucket & bucket : buckets ) num_samples += bucket . count ;\n EXPECT_EQ ( 12 , num_samples ) ;\n }"}
{"idx": 16871, "target": 0, "func": "static int type_size_sort ( const void * _a , const void * _b ) {\n const struct object_entry * a = * ( struct object_entry * * ) _a ;\n const struct object_entry * b = * ( struct object_entry * * ) _b ;\n if ( a -> type > b -> type ) return - 1 ;\n if ( a -> type < b -> type ) return 1 ;\n if ( a -> hash > b -> hash ) return - 1 ;\n if ( a -> hash < b -> hash ) return 1 ;\n if ( a -> preferred_base > b -> preferred_base ) return - 1 ;\n if ( a -> preferred_base < b -> preferred_base ) return 1 ;\n if ( a -> size > b -> size ) return - 1 ;\n if ( a -> size < b -> size ) return 1 ;\n return a < b ? - 1 : ( a > b ) ;\n }"}
{"idx": 16872, "target": 0, "func": "static int dissect_h225_T_nsiOID ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_object_identifier_str ( tvb , offset , actx , tree , hf_index , & nsiOID ) ;\n return offset ;\n }"}
{"idx": 16873, "target": 0, "func": "static inline MagickBooleanType IsPixelAtDepth ( const Quantum pixel , const QuantumAny range ) {\n Quantum quantum ;\n # if ! defined ( MAGICKCORE_HDRI_SUPPORT ) quantum = ( Quantum ) ( ( ( MagickRealType ) QuantumRange * ( ( QuantumAny ) ( ( ( MagickRealType ) range * pixel ) / QuantumRange + 0.5 ) ) ) / range + 0.5 ) ;\n # else quantum = ( Quantum ) ( ( ( MagickRealType ) QuantumRange * ( ( QuantumAny ) ( ( ( MagickRealType ) range * pixel ) / QuantumRange + 0.5 ) ) ) / range ) ;\n # endif return ( pixel == quantum ? MagickTrue : MagickFalse ) ;\n }"}
{"idx": 16874, "target": 0, "func": "static inline void decode_subblock ( int16_t * dst , int code , const int is_block2 , GetBitContext * gb , VLC * vlc , int q ) {\n int flags = modulo_three_table [ code ] ;\n decode_coeff ( dst + 0 * 4 + 0 , ( flags >> 6 ) , 3 , gb , vlc , q ) ;\n if ( is_block2 ) {\n decode_coeff ( dst + 1 * 4 + 0 , ( flags >> 4 ) & 3 , 2 , gb , vlc , q ) ;\n decode_coeff ( dst + 0 * 4 + 1 , ( flags >> 2 ) & 3 , 2 , gb , vlc , q ) ;\n }\n else {\n decode_coeff ( dst + 0 * 4 + 1 , ( flags >> 4 ) & 3 , 2 , gb , vlc , q ) ;\n decode_coeff ( dst + 1 * 4 + 0 , ( flags >> 2 ) & 3 , 2 , gb , vlc , q ) ;\n }\n decode_coeff ( dst + 1 * 4 + 1 , ( flags >> 0 ) & 3 , 2 , gb , vlc , q ) ;\n }"}
{"idx": 16875, "target": 0, "func": "SPL_METHOD ( SplFileObject , __construct ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n zend_bool use_include_path = 0 ;\n char * p1 , * p2 ;\n char * tmp_path ;\n int tmp_path_len ;\n zend_error_handling error_handling ;\n zend_replace_error_handling ( EH_THROW , spl_ce_RuntimeException , & error_handling TSRMLS_CC ) ;\n intern -> u . file . open_mode = NULL ;\n intern -> u . file . open_mode_len = 0 ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"p|sbr!\" , & intern -> file_name , & intern -> file_name_len , & intern -> u . file . open_mode , & intern -> u . file . open_mode_len , & use_include_path , & intern -> u . file . zcontext ) == FAILURE ) {\n intern -> u . file . open_mode = NULL ;\n intern -> file_name = NULL ;\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n return ;\n }\n if ( intern -> u . file . open_mode == NULL ) {\n intern -> u . file . open_mode = \"r\" ;\n intern -> u . file . open_mode_len = 1 ;\n }\n if ( spl_filesystem_file_open ( intern , use_include_path , 0 TSRMLS_CC ) == SUCCESS ) {\n tmp_path_len = strlen ( intern -> u . file . stream -> orig_path ) ;\n if ( tmp_path_len > 1 && IS_SLASH_AT ( intern -> u . file . stream -> orig_path , tmp_path_len - 1 ) ) {\n tmp_path_len -- ;\n }\n tmp_path = estrndup ( intern -> u . file . stream -> orig_path , tmp_path_len ) ;\n p1 = strrchr ( tmp_path , '/' ) ;\n # if defined ( PHP_WIN32 ) || defined ( NETWARE ) p2 = strrchr ( tmp_path , '\\\\' ) ;\n # else p2 = 0 ;\n # endif if ( p1 || p2 ) {\n intern -> _path_len = ( p1 > p2 ? p1 : p2 ) - tmp_path ;\n }\n else {\n intern -> _path_len = 0 ;\n }\n efree ( tmp_path ) ;\n intern -> _path = estrndup ( intern -> u . file . stream -> orig_path , intern -> _path_len ) ;\n }\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n }"}
{"idx": 16876, "target": 0, "func": "int proto_get_id_by_filter_name ( const gchar * filter_name ) {\n const protocol_t * protocol = NULL ;\n DISSECTOR_ASSERT_HINT ( filter_name , \"No filter name present\" ) ;\n protocol = ( const protocol_t * ) g_hash_table_lookup ( proto_filter_names , filter_name ) ;\n if ( protocol == NULL ) return - 1 ;\n return protocol -> proto_id ;\n }"}
{"idx": 16877, "target": 0, "func": "static const char * cmd_marker ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n const char * action = apr_pstrcat ( dcfg -> mp , SECMARKER_BASE_ACTIONS , p1 , NULL ) ;\n return add_marker ( cmd , ( directory_config * ) _dcfg , SECMARKER_TARGETS , SECMARKER_ARGS , action ) ;\n }"}
{"idx": 16878, "target": 0, "func": "int PEM_write_ ## name ( FILE * fp , const type * x ) ;\n # define DECLARE_PEM_write_cb_fp ( name , type ) int PEM_write_ ## name ( FILE * fp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # endif # define DECLARE_PEM_read_bio ( name , type ) type * PEM_read_bio_ ## name ( BIO * bp , type * * x , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL ) DECLARE_PEM_rw ( PKCS7 , PKCS7 ) DECLARE_PEM_rw ( NETSCAPE_CERT_SEQUENCE , NETSCAPE_CERT_SEQUENCE ) DECLARE_PEM_rw ( PKCS8 , X509_SIG ) DECLARE_PEM_rw ( PKCS8_PRIV_KEY_INFO , PKCS8_PRIV_KEY_INFO ) # ifndef OPENSSL_NO_RSA DECLARE_PEM_rw_cb ( RSAPrivateKey , RSA ) DECLARE_PEM_rw_const ( RSAPublicKey , RSA )"}
{"idx": 16879, "target": 0, "func": "static void dumpint ( FILE * cfff , int num ) {\n if ( num >= - 107 && num <= 107 ) putc ( num + 139 , cfff ) ;\n else if ( num >= 108 && num <= 1131 ) {\n num -= 108 ;\n putc ( ( num >> 8 ) + 247 , cfff ) ;\n putc ( num & 0xff , cfff ) ;\n }\n else if ( num >= - 1131 && num <= - 108 ) {\n num = - num ;\n num -= 108 ;\n putc ( ( num >> 8 ) + 251 , cfff ) ;\n putc ( num & 0xff , cfff ) ;\n }\n else if ( num >= - 32768 && num < 32768 ) {\n putc ( 28 , cfff ) ;\n putc ( num >> 8 , cfff ) ;\n putc ( num & 0xff , cfff ) ;\n }\n else {\n putc ( 29 , cfff ) ;\n putc ( ( num >> 24 ) & 0xff , cfff ) ;\n putc ( ( num >> 16 ) & 0xff , cfff ) ;\n putc ( ( num >> 8 ) & 0xff , cfff ) ;\n putc ( num & 0xff , cfff ) ;\n }\n }"}
{"idx": 16880, "target": 1, "func": "TEST_F ( ExternalProtocolHandlerTest , TestGetBlockStateLocalDontBlockCopiedAsIsToProfilePref ) {\n base : : DictionaryValue prefs_local ;\n prefs_local . SetBoolean ( \"tel\" , false ) ;\n local_state_ -> Set ( prefs : : kExcludedSchemes , prefs_local ) ;\n ExternalProtocolHandler : : BlockState block_state = ExternalProtocolHandler : : GetBlockState ( \"tel\" , profile_ . get ( ) ) ;\n EXPECT_EQ ( ExternalProtocolHandler : : DONT_BLOCK , block_state ) ;\n EXPECT_TRUE ( local_state_ -> GetDictionary ( prefs : : kExcludedSchemes ) -> empty ( ) ) ;\n EXPECT_FALSE ( profile_ -> GetPrefs ( ) -> GetDictionary ( prefs : : kExcludedSchemes ) -> empty ( ) ) ;\n }"}
{"idx": 16881, "target": 0, "func": "int32_t byteArrayToRLEString ( const uint8_t * src , int32_t srcLen , uint16_t * buffer , int32_t bufLen , UErrorCode * status ) {\n const uint16_t * saveBuf = buffer ;\n uint16_t * bufLimit = buffer + bufLen ;\n if ( buffer < bufLimit ) {\n * buffer ++ = ( ( uint16_t ) ( srcLen >> 16 ) ) ;\n if ( buffer < bufLimit ) {\n uint8_t runValue = src [ 0 ] ;\n int runLength = 1 ;\n uint8_t state [ 2 ] = {\n 0 }\n ;\n int i = 1 ;\n * buffer ++ = ( ( uint16_t ) srcLen ) ;\n for ( ;\n i < srcLen ;\n ++ i ) {\n uint8_t b = src [ i ] ;\n if ( b == runValue && runLength < 0xFF ) {\n ++ runLength ;\n }\n else {\n buffer = encodeRunByte ( buffer , bufLimit , runValue , runLength , state , status ) ;\n runValue = b ;\n runLength = 1 ;\n }\n }\n buffer = encodeRunByte ( buffer , bufLimit , runValue , runLength , state , status ) ;\n if ( state [ 0 ] != 0 ) {\n buffer = appendEncodedByte ( buffer , bufLimit , 0 , state , status ) ;\n }\n }\n else {\n * status = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n else {\n * status = U_BUFFER_OVERFLOW_ERROR ;\n }\n return ( int32_t ) ( buffer - saveBuf ) ;\n }"}
{"idx": 16882, "target": 0, "func": "static inline int tm2_read_header ( TM2Context * ctx , const uint8_t * buf ) {\n uint32_t magic = AV_RL32 ( buf ) ;\n switch ( magic ) {\n case TM2_OLD_HEADER_MAGIC : av_log_missing_feature ( ctx -> avctx , \"TM2 old header\" , 1 ) ;\n return 0 ;\n case TM2_NEW_HEADER_MAGIC : return 0 ;\n default : av_log ( ctx -> avctx , AV_LOG_ERROR , \"Not a TM2 header: 0x%08X\\n\" , magic ) ;\n return AVERROR_INVALIDDATA ;\n }\n }"}
{"idx": 16883, "target": 0, "func": "static int selinux_inode_copy_up_xattr ( const char * name ) {\n if ( strcmp ( name , XATTR_NAME_SELINUX ) == 0 ) return 1 ;\n return - EOPNOTSUPP ;\n }"}
{"idx": 16884, "target": 0, "func": "static void revert_inter_ch_decorr ( WmallDecodeCtx * s , int tile_size ) {\n if ( s -> num_channels != 2 ) return ;\n else if ( s -> is_channel_coded [ 0 ] || s -> is_channel_coded [ 1 ] ) {\n int icoef ;\n for ( icoef = 0 ;\n icoef < tile_size ;\n icoef ++ ) {\n s -> channel_residues [ 0 ] [ icoef ] -= s -> channel_residues [ 1 ] [ icoef ] >> 1 ;\n s -> channel_residues [ 1 ] [ icoef ] += s -> channel_residues [ 0 ] [ icoef ] ;\n }\n }\n }"}
{"idx": 16885, "target": 0, "func": "static const char * qemuAgentStringifyErrorClass ( const char * klass ) {\n if ( STREQ_NULLABLE ( klass , \"BufferOverrun\" ) ) return \"Buffer overrun\" ;\n else if ( STREQ_NULLABLE ( klass , \"CommandDisabled\" ) ) return \"The command has been disabled for this instance\" ;\n else if ( STREQ_NULLABLE ( klass , \"CommandNotFound\" ) ) return \"The command has not been found\" ;\n else if ( STREQ_NULLABLE ( klass , \"FdNotFound\" ) ) return \"File descriptor not found\" ;\n else if ( STREQ_NULLABLE ( klass , \"InvalidParameter\" ) ) return \"Invalid parameter\" ;\n else if ( STREQ_NULLABLE ( klass , \"InvalidParameterType\" ) ) return \"Invalid parameter type\" ;\n else if ( STREQ_NULLABLE ( klass , \"InvalidParameterValue\" ) ) return \"Invalid parameter value\" ;\n else if ( STREQ_NULLABLE ( klass , \"OpenFileFailed\" ) ) return \"Cannot open file\" ;\n else if ( STREQ_NULLABLE ( klass , \"QgaCommandFailed\" ) ) return \"Guest agent command failed\" ;\n else if ( STREQ_NULLABLE ( klass , \"QMPBadInputObjectMember\" ) ) return \"Bad QMP input object member\" ;\n else if ( STREQ_NULLABLE ( klass , \"QMPExtraInputObjectMember\" ) ) return \"Unexpected extra object member\" ;\n else if ( STREQ_NULLABLE ( klass , \"UndefinedError\" ) ) return \"An undefined error has occurred\" ;\n else if ( STREQ_NULLABLE ( klass , \"Unsupported\" ) ) return \"this feature or command is not currently supported\" ;\n else if ( klass ) return klass ;\n else return \"unknown QEMU command error\" ;\n }"}
{"idx": 16886, "target": 0, "func": "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 ) {\n uint8_t comp_pred [ m * n ] ;\n vp9_comp_avg_pred ( comp_pred , second_pred , m , n , ref , ref_stride ) ;\n return sad ( src , src_stride , comp_pred , m , m , n ) ;\n \\ }\n # define sadMxNxK ( m , n , k ) void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 ) sadMxN ( 16 , 32 ) sadMxNx4D ( 16 , 32 ) sadMxN ( 16 , 16 ) sadMxNxK ( 16 , 16 , 3 ) sadMxNxK ( 16 , 16 , 8 ) sadMxNx4D ( 16 , 16 ) sadMxN ( 16 , 8 ) sadMxNxK ( 16 , 8 , 3 ) sadMxNxK ( 16 , 8 , 8 ) sadMxNx4D ( 16 , 8 ) sadMxN ( 8 , 16 ) sadMxNxK ( 8 , 16 , 3 ) sadMxNxK ( 8 , 16 , 8 ) sadMxNx4D ( 8 , 16 ) sadMxN ( 8 , 8 )"}
{"idx": 16887, "target": 0, "func": "static int pattern_char_isalpha ( char c , bool is_multibyte , pg_locale_t locale , bool locale_is_c ) {\n if ( locale_is_c ) return ( c >= 'A' && c <= 'Z' ) || ( c >= 'a' && c <= 'z' ) ;\n else if ( is_multibyte && IS_HIGHBIT_SET ( c ) ) return true ;\n # ifdef HAVE_LOCALE_T else if ( locale ) return isalpha_l ( ( unsigned char ) c , locale ) ;\n # endif else return isalpha ( ( unsigned char ) c ) ;\n }"}
{"idx": 16888, "target": 0, "func": "static bool checkrtspprefix ( struct Curl_easy * data , const char * s ) {\n # ifdef CURL_DOES_CONVERSIONS char * scratch = strdup ( s ) ;\n if ( NULL == scratch ) {\n failf ( data , \"Failed to allocate memory for conversion!\" ) ;\n return FALSE ;\n }\n if ( CURLE_OK != Curl_convert_from_network ( data , scratch , strlen ( s ) + 1 ) ) {\n free ( scratch ) ;\n return FALSE ;\n }\n s = scratch ;\n # else ( void ) data ;\n # endif if ( checkprefix ( \"RTSP/\" , s ) ) return TRUE ;\n else return FALSE ;\n }"}
{"idx": 16889, "target": 0, "func": "static inline void SetPixelBlack ( const Image * restrict image , const Quantum black , Quantum * restrict pixel ) {\n if ( image -> channel_map [ BlackPixelChannel ] . traits != UndefinedPixelTrait ) pixel [ image -> channel_map [ BlackPixelChannel ] . offset ] = black ;\n }"}
{"idx": 16890, "target": 0, "func": "static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 16891, "target": 0, "func": "static float fixed_gain_smooth ( AMRContext * p , const float * lsf , const float * lsf_avg , const enum Mode mode ) {\n float diff = 0.0 ;\n int i ;\n for ( i = 0 ;\n i < LP_FILTER_ORDER ;\n i ++ ) diff += fabs ( lsf_avg [ i ] - lsf [ i ] ) / lsf_avg [ i ] ;\n p -> diff_count ++ ;\n if ( diff <= 0.65 ) p -> diff_count = 0 ;\n if ( p -> diff_count > 10 ) {\n p -> hang_count = 0 ;\n p -> diff_count -- ;\n }\n if ( p -> hang_count < 40 ) {\n p -> hang_count ++ ;\n }\n else if ( mode < MODE_7k4 || mode == MODE_10k2 ) {\n const float smoothing_factor = av_clipf ( 4.0 * diff - 1.6 , 0.0 , 1.0 ) ;\n const float fixed_gain_mean = ( p -> fixed_gain [ 0 ] + p -> fixed_gain [ 1 ] + p -> fixed_gain [ 2 ] + p -> fixed_gain [ 3 ] + p -> fixed_gain [ 4 ] ) * 0.2 ;\n return smoothing_factor * p -> fixed_gain [ 4 ] + ( 1.0 - smoothing_factor ) * fixed_gain_mean ;\n }\n return p -> fixed_gain [ 4 ] ;\n }"}
{"idx": 16892, "target": 0, "func": "static void _printTocEntry ( ArchiveHandle * AH , TocEntry * te , bool isData , bool acl_pass ) {\n RestoreOptions * ropt = AH -> public . ropt ;\n if ( acl_pass ) {\n if ( ! _tocEntryIsACL ( te ) ) return ;\n }\n else {\n if ( _tocEntryIsACL ( te ) ) return ;\n }\n if ( ! ( ropt -> dropSchema && ! ropt -> createDB ) ) {\n if ( strcmp ( te -> desc , \"SCHEMA\" ) == 0 && strcmp ( te -> tag , \"public\" ) == 0 ) return ;\n if ( strcmp ( te -> desc , \"COMMENT\" ) == 0 && strcmp ( te -> tag , \"SCHEMA public\" ) == 0 ) return ;\n }\n _becomeOwner ( AH , te ) ;\n _selectOutputSchema ( AH , te -> namespace ) ;\n _selectTablespace ( AH , te -> tablespace ) ;\n if ( strcmp ( te -> desc , \"TABLE\" ) == 0 ) _setWithOids ( AH , te ) ;\n if ( ! AH -> noTocComments ) {\n const char * pfx ;\n char * sanitized_name ;\n char * sanitized_schema ;\n char * sanitized_owner ;\n if ( isData ) pfx = \"Data for \" ;\n else pfx = \"\" ;\n ahprintf ( AH , \"--\\n\" ) ;\n if ( AH -> public . verbose ) {\n ahprintf ( AH , \"-- TOC entry %d (class %u OID %u)\\n\" , te -> dumpId , te -> catalogId . tableoid , te -> catalogId . oid ) ;\n if ( te -> nDeps > 0 ) {\n int i ;\n ahprintf ( AH , \"-- Dependencies:\" ) ;\n for ( i = 0 ;\n i < te -> nDeps ;\n i ++ ) ahprintf ( AH , \" %d\" , te -> dependencies [ i ] ) ;\n ahprintf ( AH , \"\\n\" ) ;\n }\n }\n sanitized_name = replace_line_endings ( te -> tag ) ;\n if ( te -> namespace ) sanitized_schema = replace_line_endings ( te -> namespace ) ;\n else sanitized_schema = pg_strdup ( \"-\" ) ;\n if ( ! ropt -> noOwner ) sanitized_owner = replace_line_endings ( te -> owner ) ;\n else sanitized_owner = pg_strdup ( \"-\" ) ;\n ahprintf ( AH , \"-- %sName: %s;\n Type: %s;\n Schema: %s;\n Owner: %s\" , pfx , sanitized_name , te -> desc , sanitized_schema , sanitized_owner ) ;\n free ( sanitized_name ) ;\n free ( sanitized_schema ) ;\n free ( sanitized_owner ) ;\n if ( te -> tablespace && strlen ( te -> tablespace ) > 0 && ! ropt -> noTablespace ) {\n char * sanitized_tablespace ;\n sanitized_tablespace = replace_line_endings ( te -> tablespace ) ;\n ahprintf ( AH , \";\n Tablespace: %s\" , sanitized_tablespace ) ;\n free ( sanitized_tablespace ) ;\n }\n ahprintf ( AH , \"\\n\" ) ;\n if ( AH -> PrintExtraTocPtr != NULL ) ( * AH -> PrintExtraTocPtr ) ( AH , te ) ;\n ahprintf ( AH , \"--\\n\\n\" ) ;\n }\n if ( ropt -> noOwner && strcmp ( te -> desc , \"SCHEMA\" ) == 0 ) {\n ahprintf ( AH , \"CREATE SCHEMA %s;\n\\n\\n\\n\" , fmtId ( te -> tag ) ) ;\n }\n else {\n if ( strlen ( te -> defn ) > 0 ) ahprintf ( AH , \"%s\\n\\n\" , te -> defn ) ;\n }\n if ( ! ropt -> noOwner && ! ropt -> use_setsessauth && strlen ( te -> owner ) > 0 && strlen ( te -> dropStmt ) > 0 ) {\n if ( strcmp ( te -> desc , \"AGGREGATE\" ) == 0 || strcmp ( te -> desc , \"BLOB\" ) == 0 || strcmp ( te -> desc , \"COLLATION\" ) == 0 || strcmp ( te -> desc , \"CONVERSION\" ) == 0 || strcmp ( te -> desc , \"DATABASE\" ) == 0 || strcmp ( te -> desc , \"DOMAIN\" ) == 0 || strcmp ( te -> desc , \"FUNCTION\" ) == 0 || strcmp ( te -> desc , \"OPERATOR\" ) == 0 || strcmp ( te -> desc , \"OPERATOR CLASS\" ) == 0 || strcmp ( te -> desc , \"OPERATOR FAMILY\" ) == 0 || strcmp ( te -> desc , \"PROCEDURAL LANGUAGE\" ) == 0 || strcmp ( te -> desc , \"SCHEMA\" ) == 0 || strcmp ( te -> desc , \"TABLE\" ) == 0 || strcmp ( te -> desc , \"TYPE\" ) == 0 || strcmp ( te -> desc , \"VIEW\" ) == 0 || strcmp ( te -> desc , \"MATERIALIZED VIEW\" ) == 0 || strcmp ( te -> desc , \"SEQUENCE\" ) == 0 || strcmp ( te -> desc , \"FOREIGN TABLE\" ) == 0 || strcmp ( te -> desc , \"TEXT SEARCH DICTIONARY\" ) == 0 || strcmp ( te -> desc , \"TEXT SEARCH CONFIGURATION\" ) == 0 || strcmp ( te -> desc , \"FOREIGN DATA WRAPPER\" ) == 0 || strcmp ( te -> desc , \"SERVER\" ) == 0 ) {\n PQExpBuffer temp = createPQExpBuffer ( ) ;\n appendPQExpBufferStr ( temp , \"ALTER \" ) ;\n _getObjectDescription ( temp , te , AH ) ;\n appendPQExpBuffer ( temp , \" OWNER TO %s;\n\" , fmtId ( te -> owner ) ) ;\n ahprintf ( AH , \"%s\\n\\n\" , temp -> data ) ;\n destroyPQExpBuffer ( temp ) ;\n }\n else if ( strcmp ( te -> desc , \"CAST\" ) == 0 || strcmp ( te -> desc , \"CHECK CONSTRAINT\" ) == 0 || strcmp ( te -> desc , \"CONSTRAINT\" ) == 0 || strcmp ( te -> desc , \"DEFAULT\" ) == 0 || strcmp ( te -> desc , \"FK CONSTRAINT\" ) == 0 || strcmp ( te -> desc , \"INDEX\" ) == 0 || strcmp ( te -> desc , \"RULE\" ) == 0 || strcmp ( te -> desc , \"TRIGGER\" ) == 0 || strcmp ( te -> desc , \"ROW SECURITY\" ) == 0 || strcmp ( te -> desc , \"POLICY\" ) == 0 || strcmp ( te -> desc , \"USER MAPPING\" ) == 0 ) {\n }\n else {\n write_msg ( modulename , \"WARNING: don't know how to set owner for object type %s\\n\" , te -> desc ) ;\n }\n }\n if ( acl_pass ) {\n if ( AH -> currUser ) free ( AH -> currUser ) ;\n AH -> currUser = NULL ;\n }\n }"}
{"idx": 16893, "target": 0, "func": "static int _ar_read_header ( struct archive_read * a , struct archive_entry * entry , struct ar * ar , const char * h , size_t * unconsumed ) {\n char filename [ AR_name_size + 1 ] ;\n uint64_t number ;\n size_t bsd_name_length , entry_size ;\n char * p , * st ;\n const void * b ;\n int r ;\n if ( strncmp ( h + AR_fmag_offset , \"`\\n\" , 2 ) != 0 ) {\n archive_set_error ( & a -> archive , EINVAL , \"Incorrect file header signature\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n strncpy ( filename , h + AR_name_offset , AR_name_size ) ;\n filename [ AR_name_size ] = '\\0' ;\n if ( a -> archive . archive_format == ARCHIVE_FORMAT_AR ) {\n if ( strncmp ( filename , \"#1/\" , 3 ) == 0 ) a -> archive . archive_format = ARCHIVE_FORMAT_AR_BSD ;\n else if ( strchr ( filename , '/' ) != NULL ) a -> archive . archive_format = ARCHIVE_FORMAT_AR_GNU ;\n else if ( strncmp ( filename , \"__.SYMDEF\" , 9 ) == 0 ) a -> archive . archive_format = ARCHIVE_FORMAT_AR_BSD ;\n }\n if ( a -> archive . archive_format == ARCHIVE_FORMAT_AR_GNU ) a -> archive . archive_format_name = \"ar (GNU/SVR4)\" ;\n else if ( a -> archive . archive_format == ARCHIVE_FORMAT_AR_BSD ) a -> archive . archive_format_name = \"ar (BSD)\" ;\n else a -> archive . archive_format_name = \"ar\" ;\n p = filename + AR_name_size - 1 ;\n while ( p >= filename && * p == ' ' ) {\n * p = '\\0' ;\n p -- ;\n }\n if ( filename [ 0 ] != '/' && p > filename && * p == '/' ) {\n * p = '\\0' ;\n }\n if ( p < filename ) {\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"Found entry with empty filename\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n if ( strcmp ( filename , \"//\" ) == 0 ) {\n ar_parse_common_header ( ar , entry , h ) ;\n archive_entry_copy_pathname ( entry , filename ) ;\n archive_entry_set_filetype ( entry , AE_IFREG ) ;\n number = ar_atol10 ( h + AR_size_offset , AR_size_size ) ;\n if ( number > SIZE_MAX ) {\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"Filename table too large\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n entry_size = ( size_t ) number ;\n if ( entry_size == 0 ) {\n archive_set_error ( & a -> archive , EINVAL , \"Invalid string table\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n if ( ar -> strtab != NULL ) {\n archive_set_error ( & a -> archive , EINVAL , \"More than one string tables exist\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n st = malloc ( entry_size ) ;\n if ( st == NULL ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate filename table buffer\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n ar -> strtab = st ;\n ar -> strtab_size = entry_size ;\n if ( * unconsumed ) {\n __archive_read_consume ( a , * unconsumed ) ;\n * unconsumed = 0 ;\n }\n if ( ( b = __archive_read_ahead ( a , entry_size , NULL ) ) == NULL ) return ( ARCHIVE_FATAL ) ;\n memcpy ( st , b , entry_size ) ;\n __archive_read_consume ( a , entry_size ) ;\n ar -> entry_bytes_remaining = 0 ;\n archive_entry_set_size ( entry , ar -> entry_bytes_remaining ) ;\n return ( ar_parse_gnu_filename_table ( a ) ) ;\n }\n if ( filename [ 0 ] == '/' && filename [ 1 ] >= '0' && filename [ 1 ] <= '9' ) {\n number = ar_atol10 ( h + AR_name_offset + 1 , AR_name_size - 1 ) ;\n if ( ar -> strtab == NULL || number > ar -> strtab_size ) {\n archive_set_error ( & a -> archive , EINVAL , \"Can't find long filename for GNU/SVR4 archive entry\" ) ;\n archive_entry_copy_pathname ( entry , filename ) ;\n ar_parse_common_header ( ar , entry , h ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n archive_entry_copy_pathname ( entry , & ar -> strtab [ ( size_t ) number ] ) ;\n return ( ar_parse_common_header ( ar , entry , h ) ) ;\n }\n if ( strncmp ( filename , \"#1/\" , 3 ) == 0 ) {\n ar_parse_common_header ( ar , entry , h ) ;\n number = ar_atol10 ( h + AR_name_offset + 3 , AR_name_size - 3 ) ;\n bsd_name_length = ( size_t ) number ;\n if ( number > ( uint64_t ) ( bsd_name_length + 1 ) || ( int64_t ) bsd_name_length > ar -> entry_bytes_remaining ) {\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"Bad input file size\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n ar -> entry_bytes_remaining -= bsd_name_length ;\n archive_entry_set_size ( entry , ar -> entry_bytes_remaining ) ;\n if ( * unconsumed ) {\n __archive_read_consume ( a , * unconsumed ) ;\n * unconsumed = 0 ;\n }\n if ( ( b = __archive_read_ahead ( a , bsd_name_length , NULL ) ) == NULL ) {\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"Truncated input file\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n p = ( char * ) malloc ( bsd_name_length + 1 ) ;\n if ( p == NULL ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate fname buffer\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n strncpy ( p , b , bsd_name_length ) ;\n p [ bsd_name_length ] = '\\0' ;\n __archive_read_consume ( a , bsd_name_length ) ;\n archive_entry_copy_pathname ( entry , p ) ;\n free ( p ) ;\n return ( ARCHIVE_OK ) ;\n }\n if ( strcmp ( filename , \"/\" ) == 0 ) {\n archive_entry_copy_pathname ( entry , \"/\" ) ;\n r = ar_parse_common_header ( ar , entry , h ) ;\n archive_entry_set_filetype ( entry , AE_IFREG ) ;\n return ( r ) ;\n }\n if ( strcmp ( filename , \"__.SYMDEF\" ) == 0 ) {\n archive_entry_copy_pathname ( entry , filename ) ;\n return ( ar_parse_common_header ( ar , entry , h ) ) ;\n }\n archive_entry_copy_pathname ( entry , filename ) ;\n return ( ar_parse_common_header ( ar , entry , h ) ) ;\n }"}
{"idx": 16894, "target": 0, "func": "static inline void e1000e_fix_icr_asserted ( E1000ECore * core ) {\n core -> mac [ ICR ] &= ~ E1000_ICR_ASSERTED ;\n if ( core -> mac [ ICR ] ) {\n core -> mac [ ICR ] |= E1000_ICR_ASSERTED ;\n }\n trace_e1000e_irq_fix_icr_asserted ( core -> mac [ ICR ] ) ;\n }"}
{"idx": 16895, "target": 0, "func": "static void redohead ( struct alltabs * at ) {\n if ( at -> headf ) fclose ( at -> headf ) ;\n at -> headf = tmpfile ( ) ;\n putlong ( at -> headf , at -> head . version ) ;\n putlong ( at -> headf , at -> head . revision ) ;\n putlong ( at -> headf , at -> head . checksumAdj ) ;\n putlong ( at -> headf , at -> head . magicNum ) ;\n putshort ( at -> headf , at -> head . flags ) ;\n putshort ( at -> headf , at -> head . emunits ) ;\n putlong ( at -> headf , at -> head . createtime [ 1 ] ) ;\n putlong ( at -> headf , at -> head . createtime [ 0 ] ) ;\n putlong ( at -> headf , at -> head . modtime [ 1 ] ) ;\n putlong ( at -> headf , at -> head . modtime [ 0 ] ) ;\n putshort ( at -> headf , at -> head . xmin ) ;\n putshort ( at -> headf , at -> head . ymin ) ;\n putshort ( at -> headf , at -> head . xmax ) ;\n putshort ( at -> headf , at -> head . ymax ) ;\n putshort ( at -> headf , at -> head . macstyle ) ;\n putshort ( at -> headf , at -> head . lowestreadable ) ;\n putshort ( at -> headf , at -> head . dirhint ) ;\n putshort ( at -> headf , at -> head . locais32 ) ;\n putshort ( at -> headf , at -> head . glyphformat ) ;\n at -> headlen = ftell ( at -> headf ) ;\n if ( ( at -> headlen & 2 ) != 0 ) putshort ( at -> headf , 0 ) ;\n }"}
{"idx": 16896, "target": 0, "func": "static int ohci_service_ed_list ( OHCIState * ohci , uint32_t head , int completion ) {\n struct ohci_ed ed ;\n uint32_t next_ed ;\n uint32_t cur ;\n int active ;\n active = 0 ;\n if ( head == 0 ) return 0 ;\n for ( cur = head ;\n cur ;\n cur = next_ed ) {\n if ( ohci_read_ed ( ohci , cur , & ed ) ) {\n trace_usb_ohci_ed_read_error ( cur ) ;\n ohci_die ( ohci ) ;\n return 0 ;\n }\n next_ed = ed . next & OHCI_DPTR_MASK ;\n if ( ( ed . head & OHCI_ED_H ) || ( ed . flags & OHCI_ED_K ) ) {\n uint32_t addr ;\n addr = ed . head & OHCI_DPTR_MASK ;\n if ( ohci -> async_td && addr == ohci -> async_td ) {\n usb_cancel_packet ( & ohci -> usb_packet ) ;\n ohci -> async_td = 0 ;\n usb_device_ep_stopped ( ohci -> usb_packet . ep -> dev , ohci -> usb_packet . ep ) ;\n }\n continue ;\n }\n while ( ( ed . head & OHCI_DPTR_MASK ) != ed . tail ) {\n trace_usb_ohci_ed_pkt ( cur , ( ed . head & OHCI_ED_H ) != 0 , ( ed . head & OHCI_ED_C ) != 0 , ed . head & OHCI_DPTR_MASK , ed . tail & OHCI_DPTR_MASK , ed . next & OHCI_DPTR_MASK ) ;\n trace_usb_ohci_ed_pkt_flags ( OHCI_BM ( ed . flags , ED_FA ) , OHCI_BM ( ed . flags , ED_EN ) , OHCI_BM ( ed . flags , ED_D ) , ( ed . flags & OHCI_ED_S ) != 0 , ( ed . flags & OHCI_ED_K ) != 0 , ( ed . flags & OHCI_ED_F ) != 0 , OHCI_BM ( ed . flags , ED_MPS ) ) ;\n active = 1 ;\n if ( ( ed . flags & OHCI_ED_F ) == 0 ) {\n if ( ohci_service_td ( ohci , & ed ) ) break ;\n }\n else {\n if ( ohci_service_iso_td ( ohci , & ed , completion ) ) break ;\n }\n }\n if ( ohci_put_ed ( ohci , cur , & ed ) ) {\n ohci_die ( ohci ) ;\n return 0 ;\n }\n }\n return active ;\n }"}
{"idx": 16897, "target": 0, "func": "static int selinux_kernel_module_from_file ( struct file * file ) {\n struct common_audit_data ad ;\n struct inode_security_struct * isec ;\n struct file_security_struct * fsec ;\n u32 sid = current_sid ( ) ;\n int rc ;\n if ( file == NULL ) return avc_has_perm ( sid , sid , SECCLASS_SYSTEM , SYSTEM__MODULE_LOAD , NULL ) ;\n ad . type = LSM_AUDIT_DATA_FILE ;\n ad . u . file = file ;\n fsec = file -> f_security ;\n if ( sid != fsec -> sid ) {\n rc = avc_has_perm ( sid , fsec -> sid , SECCLASS_FD , FD__USE , & ad ) ;\n if ( rc ) return rc ;\n }\n isec = inode_security ( file_inode ( file ) ) ;\n return avc_has_perm ( sid , isec -> sid , SECCLASS_SYSTEM , SYSTEM__MODULE_LOAD , & ad ) ;\n }"}
{"idx": 16898, "target": 0, "func": "static int dissect_pvfs_fs_id ( tvbuff_t * tvb , proto_tree * tree , int offset ) {\n proto_tree_add_item ( tree , hf_pvfs_fs_id , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n return offset ;\n }"}
{"idx": 16899, "target": 0, "func": "jas_stream_t * jas_stream_freopen ( const char * path , const char * mode , FILE * fp ) {\n jas_stream_t * stream ;\n int openflags ;\n path = 0 ;\n if ( ! ( stream = jas_stream_create ( ) ) ) {\n return 0 ;\n }\n stream -> openmode_ = jas_strtoopenmode ( mode ) ;\n if ( ( stream -> openmode_ & JAS_STREAM_READ ) && ( stream -> openmode_ & JAS_STREAM_WRITE ) ) {\n openflags = O_RDWR ;\n }\n else if ( stream -> openmode_ & JAS_STREAM_READ ) {\n openflags = O_RDONLY ;\n }\n else if ( stream -> openmode_ & JAS_STREAM_WRITE ) {\n openflags = O_WRONLY ;\n }\n else {\n openflags = 0 ;\n }\n if ( stream -> openmode_ & JAS_STREAM_APPEND ) {\n openflags |= O_APPEND ;\n }\n if ( stream -> openmode_ & JAS_STREAM_BINARY ) {\n openflags |= O_BINARY ;\n }\n if ( stream -> openmode_ & JAS_STREAM_CREATE ) {\n openflags |= O_CREAT | O_TRUNC ;\n }\n stream -> obj_ = JAS_CAST ( void * , fp ) ;\n stream -> ops_ = & jas_stream_sfileops ;\n jas_stream_initbuf ( stream , JAS_STREAM_FULLBUF , 0 , 0 ) ;\n return stream ;\n }"}
{"idx": 16900, "target": 0, "func": "int dtls1_send_server_key_exchange ( SSL * s ) {\n # ifndef OPENSSL_NO_RSA unsigned char * q ;\n int j , num ;\n RSA * rsa ;\n unsigned char md_buf [ MD5_DIGEST_LENGTH + SHA_DIGEST_LENGTH ] ;\n unsigned int u ;\n # endif # ifndef OPENSSL_NO_DH DH * dh = NULL , * dhp ;\n # endif # ifndef OPENSSL_NO_ECDH EC_KEY * ecdh = NULL , * ecdhp ;\n unsigned char * encodedPoint = NULL ;\n int encodedlen = 0 ;\n int curve_id = 0 ;\n BN_CTX * bn_ctx = NULL ;\n # endif EVP_PKEY * pkey ;\n unsigned char * p , * d ;\n int al , i ;\n unsigned long type ;\n int n ;\n CERT * cert ;\n BIGNUM * r [ 4 ] ;\n int nr [ 4 ] , kn ;\n BUF_MEM * buf ;\n EVP_MD_CTX md_ctx ;\n EVP_MD_CTX_init ( & md_ctx ) ;\n if ( s -> state == SSL3_ST_SW_KEY_EXCH_A ) {\n type = s -> s3 -> tmp . new_cipher -> algorithm_mkey ;\n cert = s -> cert ;\n buf = s -> init_buf ;\n r [ 0 ] = r [ 1 ] = r [ 2 ] = r [ 3 ] = NULL ;\n n = 0 ;\n # ifndef OPENSSL_NO_RSA if ( type & SSL_kRSA ) {\n rsa = cert -> rsa_tmp ;\n if ( ( rsa == NULL ) && ( s -> cert -> rsa_tmp_cb != NULL ) ) {\n rsa = s -> cert -> rsa_tmp_cb ( s , SSL_C_IS_EXPORT ( s -> s3 -> tmp . new_cipher ) , SSL_C_EXPORT_PKEYLENGTH ( s -> s3 -> tmp . new_cipher ) ) ;\n if ( rsa == NULL ) {\n al = SSL_AD_HANDSHAKE_FAILURE ;\n SSLerr ( SSL_F_DTLS1_SEND_SERVER_KEY_EXCHANGE , SSL_R_ERROR_GENERATING_TMP_RSA_KEY ) ;\n goto f_err ;\n }\n RSA_up_ref ( rsa ) ;\n cert -> rsa_tmp = rsa ;\n }\n if ( rsa == NULL ) {\n al = SSL_AD_HANDSHAKE_FAILURE ;\n SSLerr ( SSL_F_DTLS1_SEND_SERVER_KEY_EXCHANGE , SSL_R_MISSING_TMP_RSA_KEY ) ;\n goto f_err ;\n }\n r [ 0 ] = rsa -> n ;\n r [ 1 ] = rsa -> e ;\n s -> s3 -> tmp . use_rsa_tmp = 1 ;\n }\n else # endif # ifndef OPENSSL_NO_DH if ( type & SSL_kEDH ) {\n dhp = cert -> dh_tmp ;\n if ( ( dhp == NULL ) && ( s -> cert -> dh_tmp_cb != NULL ) ) dhp = s -> cert -> dh_tmp_cb ( s , SSL_C_IS_EXPORT ( s -> s3 -> tmp . new_cipher ) , SSL_C_EXPORT_PKEYLENGTH ( s -> s3 -> tmp . new_cipher ) ) ;\n if ( dhp == NULL ) {\n al = SSL_AD_HANDSHAKE_FAILURE ;\n SSLerr ( SSL_F_DTLS1_SEND_SERVER_KEY_EXCHANGE , SSL_R_MISSING_TMP_DH_KEY ) ;\n goto f_err ;\n }\n if ( s -> s3 -> tmp . dh != NULL ) {\n DH_free ( dh ) ;\n SSLerr ( SSL_F_DTLS1_SEND_SERVER_KEY_EXCHANGE , ERR_R_INTERNAL_ERROR ) ;\n goto err ;\n }\n if ( ( dh = DHparams_dup ( dhp ) ) == NULL ) {\n SSLerr ( SSL_F_DTLS1_SEND_SERVER_KEY_EXCHANGE , ERR_R_DH_LIB ) ;\n goto err ;\n }\n s -> s3 -> tmp . dh = dh ;\n if ( ( dhp -> pub_key == NULL || dhp -> priv_key == NULL || ( s -> options & SSL_OP_SINGLE_DH_USE ) ) ) {\n if ( ! DH_generate_key ( dh ) ) {\n SSLerr ( SSL_F_DTLS1_SEND_SERVER_KEY_EXCHANGE , ERR_R_DH_LIB ) ;\n goto err ;\n }\n }\n else {\n dh -> pub_key = BN_dup ( dhp -> pub_key ) ;\n dh -> priv_key = BN_dup ( dhp -> priv_key ) ;\n if ( ( dh -> pub_key == NULL ) || ( dh -> priv_key == NULL ) ) {\n SSLerr ( SSL_F_DTLS1_SEND_SERVER_KEY_EXCHANGE , ERR_R_DH_LIB ) ;\n goto err ;\n }\n }\n r [ 0 ] = dh -> p ;\n r [ 1 ] = dh -> g ;\n r [ 2 ] = dh -> pub_key ;\n }\n else # endif # ifndef OPENSSL_NO_ECDH if ( type & SSL_kEECDH ) {\n const EC_GROUP * group ;\n ecdhp = cert -> ecdh_tmp ;\n if ( ( ecdhp == NULL ) && ( s -> cert -> ecdh_tmp_cb != NULL ) ) {\n ecdhp = s -> cert -> ecdh_tmp_cb ( s , SSL_C_IS_EXPORT ( s -> s3 -> tmp . new_cipher ) , SSL_C_EXPORT_PKEYLENGTH ( s -> s3 -> tmp . new_cipher ) ) ;\n }\n if ( ecdhp == NULL ) {\n al = SSL_AD_HANDSHAKE_FAILURE ;\n SSLerr ( SSL_F_DTLS1_SEND_SERVER_KEY_EXCHANGE , SSL_R_MISSING_TMP_ECDH_KEY ) ;\n goto f_err ;\n }\n if ( s -> s3 -> tmp . ecdh != NULL ) {\n EC_KEY_free ( s -> s3 -> tmp . ecdh ) ;\n SSLerr ( SSL_F_DTLS1_SEND_SERVER_KEY_EXCHANGE , ERR_R_INTERNAL_ERROR ) ;\n goto err ;\n }\n if ( ecdhp == NULL ) {\n SSLerr ( SSL_F_DTLS1_SEND_SERVER_KEY_EXCHANGE , ERR_R_ECDH_LIB ) ;\n goto err ;\n }\n if ( ( ecdh = EC_KEY_dup ( ecdhp ) ) == NULL ) {\n SSLerr ( SSL_F_DTLS1_SEND_SERVER_KEY_EXCHANGE , ERR_R_ECDH_LIB ) ;\n goto err ;\n }\n s -> s3 -> tmp . ecdh = ecdh ;\n if ( ( EC_KEY_get0_public_key ( ecdh ) == NULL ) || ( EC_KEY_get0_private_key ( ecdh ) == NULL ) || ( s -> options & SSL_OP_SINGLE_ECDH_USE ) ) {\n if ( ! EC_KEY_generate_key ( ecdh ) ) {\n SSLerr ( SSL_F_DTLS1_SEND_SERVER_KEY_EXCHANGE , ERR_R_ECDH_LIB ) ;\n goto err ;\n }\n }\n if ( ( ( group = EC_KEY_get0_group ( ecdh ) ) == NULL ) || ( EC_KEY_get0_public_key ( ecdh ) == NULL ) || ( EC_KEY_get0_private_key ( ecdh ) == NULL ) ) {\n SSLerr ( SSL_F_DTLS1_SEND_SERVER_KEY_EXCHANGE , ERR_R_ECDH_LIB ) ;\n goto err ;\n }\n if ( SSL_C_IS_EXPORT ( s -> s3 -> tmp . new_cipher ) && ( EC_GROUP_get_degree ( group ) > 163 ) ) {\n SSLerr ( SSL_F_DTLS1_SEND_SERVER_KEY_EXCHANGE , SSL_R_ECGROUP_TOO_LARGE_FOR_CIPHER ) ;\n goto err ;\n }\n if ( ( curve_id = tls1_ec_nid2curve_id ( EC_GROUP_get_curve_name ( group ) ) ) == 0 ) {\n SSLerr ( SSL_F_DTLS1_SEND_SERVER_KEY_EXCHANGE , SSL_R_UNSUPPORTED_ELLIPTIC_CURVE ) ;\n goto err ;\n }\n encodedlen = EC_POINT_point2oct ( group , EC_KEY_get0_public_key ( ecdh ) , POINT_CONVERSION_UNCOMPRESSED , NULL , 0 , NULL ) ;\n encodedPoint = ( unsigned char * ) OPENSSL_malloc ( encodedlen * sizeof ( unsigned char ) ) ;\n bn_ctx = BN_CTX_new ( ) ;\n if ( ( encodedPoint == NULL ) || ( bn_ctx == NULL ) ) {\n SSLerr ( SSL_F_DTLS1_SEND_SERVER_KEY_EXCHANGE , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n encodedlen = EC_POINT_point2oct ( group , EC_KEY_get0_public_key ( ecdh ) , POINT_CONVERSION_UNCOMPRESSED , encodedPoint , encodedlen , bn_ctx ) ;\n if ( encodedlen == 0 ) {\n SSLerr ( SSL_F_DTLS1_SEND_SERVER_KEY_EXCHANGE , ERR_R_ECDH_LIB ) ;\n goto err ;\n }\n BN_CTX_free ( bn_ctx ) ;\n bn_ctx = NULL ;\n n = 4 + encodedlen ;\n r [ 0 ] = NULL ;\n r [ 1 ] = NULL ;\n r [ 2 ] = NULL ;\n r [ 3 ] = NULL ;\n }\n else # endif # ifndef OPENSSL_NO_PSK if ( type & SSL_kPSK ) {\n n += 2 + strlen ( s -> ctx -> psk_identity_hint ) ;\n }\n else # endif {\n al = SSL_AD_HANDSHAKE_FAILURE ;\n SSLerr ( SSL_F_DTLS1_SEND_SERVER_KEY_EXCHANGE , SSL_R_UNKNOWN_KEY_EXCHANGE_TYPE ) ;\n goto f_err ;\n }\n for ( i = 0 ;\n r [ i ] != NULL ;\n i ++ ) {\n nr [ i ] = BN_num_bytes ( r [ i ] ) ;\n n += 2 + nr [ i ] ;\n }\n if ( ! ( s -> s3 -> tmp . new_cipher -> algorithm_auth & SSL_aNULL ) && ! ( s -> s3 -> tmp . new_cipher -> algorithm_mkey & SSL_kPSK ) ) {\n if ( ( pkey = ssl_get_sign_pkey ( s , s -> s3 -> tmp . new_cipher , NULL ) ) == NULL ) {\n al = SSL_AD_DECODE_ERROR ;\n goto f_err ;\n }\n kn = EVP_PKEY_size ( pkey ) ;\n }\n else {\n pkey = NULL ;\n kn = 0 ;\n }\n if ( ! BUF_MEM_grow_clean ( buf , n + DTLS1_HM_HEADER_LENGTH + kn ) ) {\n SSLerr ( SSL_F_DTLS1_SEND_SERVER_KEY_EXCHANGE , ERR_LIB_BUF ) ;\n goto err ;\n }\n d = ( unsigned char * ) s -> init_buf -> data ;\n p = & ( d [ DTLS1_HM_HEADER_LENGTH ] ) ;\n for ( i = 0 ;\n r [ i ] != NULL ;\n i ++ ) {\n s2n ( nr [ i ] , p ) ;\n BN_bn2bin ( r [ i ] , p ) ;\n p += nr [ i ] ;\n }\n # ifndef OPENSSL_NO_ECDH if ( type & SSL_kEECDH ) {\n * p = NAMED_CURVE_TYPE ;\n p += 1 ;\n * p = 0 ;\n p += 1 ;\n * p = curve_id ;\n p += 1 ;\n * p = encodedlen ;\n p += 1 ;\n memcpy ( ( unsigned char * ) p , ( unsigned char * ) encodedPoint , encodedlen ) ;\n OPENSSL_free ( encodedPoint ) ;\n encodedPoint = NULL ;\n p += encodedlen ;\n }\n # endif # ifndef OPENSSL_NO_PSK if ( type & SSL_kPSK ) {\n s2n ( strlen ( s -> ctx -> psk_identity_hint ) , p ) ;\n strncpy ( ( char * ) p , s -> ctx -> psk_identity_hint , strlen ( s -> ctx -> psk_identity_hint ) ) ;\n p += strlen ( s -> ctx -> psk_identity_hint ) ;\n }\n # endif if ( pkey != NULL ) {\n # ifndef OPENSSL_NO_RSA if ( pkey -> type == EVP_PKEY_RSA ) {\n q = md_buf ;\n j = 0 ;\n for ( num = 2 ;\n num > 0 ;\n num -- ) {\n EVP_DigestInit_ex ( & md_ctx , ( num == 2 ) ? s -> ctx -> md5 : s -> ctx -> sha1 , NULL ) ;\n EVP_DigestUpdate ( & md_ctx , & ( s -> s3 -> client_random [ 0 ] ) , SSL3_RANDOM_SIZE ) ;\n EVP_DigestUpdate ( & md_ctx , & ( s -> s3 -> server_random [ 0 ] ) , SSL3_RANDOM_SIZE ) ;\n EVP_DigestUpdate ( & md_ctx , & ( d [ DTLS1_HM_HEADER_LENGTH ] ) , n ) ;\n EVP_DigestFinal_ex ( & md_ctx , q , ( unsigned int * ) & i ) ;\n q += i ;\n j += i ;\n }\n if ( RSA_sign ( NID_md5_sha1 , md_buf , j , & ( p [ 2 ] ) , & u , pkey -> pkey . rsa ) <= 0 ) {\n SSLerr ( SSL_F_DTLS1_SEND_SERVER_KEY_EXCHANGE , ERR_LIB_RSA ) ;\n goto err ;\n }\n s2n ( u , p ) ;\n n += u + 2 ;\n }\n else # endif # if ! defined ( OPENSSL_NO_DSA ) if ( pkey -> type == EVP_PKEY_DSA ) {\n EVP_SignInit_ex ( & md_ctx , EVP_dss1 ( ) , NULL ) ;\n EVP_SignUpdate ( & md_ctx , & ( s -> s3 -> client_random [ 0 ] ) , SSL3_RANDOM_SIZE ) ;\n EVP_SignUpdate ( & md_ctx , & ( s -> s3 -> server_random [ 0 ] ) , SSL3_RANDOM_SIZE ) ;\n EVP_SignUpdate ( & md_ctx , & ( d [ DTLS1_HM_HEADER_LENGTH ] ) , n ) ;\n if ( ! EVP_SignFinal ( & md_ctx , & ( p [ 2 ] ) , ( unsigned int * ) & i , pkey ) ) {\n SSLerr ( SSL_F_DTLS1_SEND_SERVER_KEY_EXCHANGE , ERR_LIB_DSA ) ;\n goto err ;\n }\n s2n ( i , p ) ;\n n += i + 2 ;\n }\n else # endif # if ! defined ( OPENSSL_NO_ECDSA ) if ( pkey -> type == EVP_PKEY_EC ) {\n EVP_SignInit_ex ( & md_ctx , EVP_ecdsa ( ) , NULL ) ;\n EVP_SignUpdate ( & md_ctx , & ( s -> s3 -> client_random [ 0 ] ) , SSL3_RANDOM_SIZE ) ;\n EVP_SignUpdate ( & md_ctx , & ( s -> s3 -> server_random [ 0 ] ) , SSL3_RANDOM_SIZE ) ;\n EVP_SignUpdate ( & md_ctx , & ( d [ DTLS1_HM_HEADER_LENGTH ] ) , n ) ;\n if ( ! EVP_SignFinal ( & md_ctx , & ( p [ 2 ] ) , ( unsigned int * ) & i , pkey ) ) {\n SSLerr ( SSL_F_DTLS1_SEND_SERVER_KEY_EXCHANGE , ERR_LIB_ECDSA ) ;\n goto err ;\n }\n s2n ( i , p ) ;\n n += i + 2 ;\n }\n else # endif {\n al = SSL_AD_HANDSHAKE_FAILURE ;\n SSLerr ( SSL_F_DTLS1_SEND_SERVER_KEY_EXCHANGE , SSL_R_UNKNOWN_PKEY_TYPE ) ;\n goto f_err ;\n }\n }\n d = dtls1_set_message_header ( s , d , SSL3_MT_SERVER_KEY_EXCHANGE , n , 0 , n ) ;\n s -> init_num = n + DTLS1_HM_HEADER_LENGTH ;\n s -> init_off = 0 ;\n dtls1_buffer_message ( s , 0 ) ;\n }\n s -> state = SSL3_ST_SW_KEY_EXCH_B ;\n EVP_MD_CTX_cleanup ( & md_ctx ) ;\n return ( dtls1_do_write ( s , SSL3_RT_HANDSHAKE ) ) ;\n f_err : ssl3_send_alert ( s , SSL3_AL_FATAL , al ) ;\n err : # ifndef OPENSSL_NO_ECDH if ( encodedPoint != NULL ) OPENSSL_free ( encodedPoint ) ;\n BN_CTX_free ( bn_ctx ) ;\n # endif EVP_MD_CTX_cleanup ( & md_ctx ) ;\n return ( - 1 ) ;\n }"}
{"idx": 16901, "target": 1, "func": "static int32_t u_scanf_integer_handler ( UFILE * input , u_scanf_spec_info * info , ufmt_args * args , const UChar * fmt , int32_t * fmtConsumed , int32_t * argConverted ) {\n int32_t len ;\n void * num = ( void * ) ( args [ 0 ] . ptrValue ) ;\n UNumberFormat * format ;\n int32_t parsePos = 0 ;\n int32_t skipped ;\n UErrorCode status = U_ZERO_ERROR ;\n int64_t result ;\n skipped = u_scanf_skip_leading_ws ( input , info -> fPadChar ) ;\n ufile_fill_uchar_buffer ( input ) ;\n len = ( int32_t ) ( input -> str . fLimit - input -> str . fPos ) ;\n if ( info -> fWidth != - 1 ) len = ufmt_min ( len , info -> fWidth ) ;\n format = u_locbund_getNumberFormat ( & input -> str . fBundle , UNUM_DECIMAL ) ;\n if ( format == 0 ) return 0 ;\n skipped += u_scanf_skip_leading_positive_sign ( input , format , & status ) ;\n result = unum_parseInt64 ( format , input -> str . fPos , len , & parsePos , & status ) ;\n if ( ! info -> fSkipArg ) {\n if ( info -> fIsShort ) * ( int16_t * ) num = ( int16_t ) ( UINT16_MAX & result ) ;\n else if ( info -> fIsLongLong ) * ( int64_t * ) num = result ;\n else * ( int32_t * ) num = ( int32_t ) ( UINT32_MAX & result ) ;\n }\n input -> str . fPos += parsePos ;\n * argConverted = ! info -> fSkipArg ;\n return parsePos + skipped ;\n }"}
{"idx": 16902, "target": 0, "func": "static int selinux_inode_copy_up ( struct dentry * src , struct cred * * new ) {\n u32 sid ;\n struct task_security_struct * tsec ;\n struct cred * new_creds = * new ;\n if ( new_creds == NULL ) {\n new_creds = prepare_creds ( ) ;\n if ( ! new_creds ) return - ENOMEM ;\n }\n tsec = new_creds -> security ;\n selinux_inode_getsecid ( d_inode ( src ) , & sid ) ;\n tsec -> create_sid = sid ;\n * new = new_creds ;\n return 0 ;\n }"}
{"idx": 16903, "target": 0, "func": "static int zend_is_callable_check_class ( const char * name , int name_len , zend_fcall_info_cache * fcc , int * strict_class , char * * error TSRMLS_DC ) {\n int ret = 0 ;\n zend_class_entry * * pce ;\n char * lcname = zend_str_tolower_dup ( name , name_len ) ;\n * strict_class = 0 ;\n if ( name_len == sizeof ( \"self\" ) - 1 && ! memcmp ( lcname , \"self\" , sizeof ( \"self\" ) - 1 ) ) {\n if ( ! EG ( scope ) ) {\n if ( error ) * error = estrdup ( \"cannot access self:: when no class scope is active\" ) ;\n }\n else {\n fcc -> called_scope = EG ( called_scope ) ;\n fcc -> calling_scope = EG ( scope ) ;\n if ( ! fcc -> object_ptr ) {\n fcc -> object_ptr = EG ( This ) ;\n }\n ret = 1 ;\n }\n }\n else if ( name_len == sizeof ( \"parent\" ) - 1 && ! memcmp ( lcname , \"parent\" , sizeof ( \"parent\" ) - 1 ) ) {\n if ( ! EG ( scope ) ) {\n if ( error ) * error = estrdup ( \"cannot access parent:: when no class scope is active\" ) ;\n }\n else if ( ! EG ( scope ) -> parent ) {\n if ( error ) * error = estrdup ( \"cannot access parent:: when current class scope has no parent\" ) ;\n }\n else {\n fcc -> called_scope = EG ( called_scope ) ;\n fcc -> calling_scope = EG ( scope ) -> parent ;\n if ( ! fcc -> object_ptr ) {\n fcc -> object_ptr = EG ( This ) ;\n }\n * strict_class = 1 ;\n ret = 1 ;\n }\n }\n else if ( name_len == sizeof ( \"static\" ) - 1 && ! memcmp ( lcname , \"static\" , sizeof ( \"static\" ) - 1 ) ) {\n if ( ! EG ( called_scope ) ) {\n if ( error ) * error = estrdup ( \"cannot access static:: when no class scope is active\" ) ;\n }\n else {\n fcc -> called_scope = EG ( called_scope ) ;\n fcc -> calling_scope = EG ( called_scope ) ;\n if ( ! fcc -> object_ptr ) {\n fcc -> object_ptr = EG ( This ) ;\n }\n * strict_class = 1 ;\n ret = 1 ;\n }\n }\n else if ( zend_lookup_class_ex ( name , name_len , NULL , 1 , & pce TSRMLS_CC ) == SUCCESS ) {\n zend_class_entry * scope = EG ( active_op_array ) ? EG ( active_op_array ) -> scope : NULL ;\n fcc -> calling_scope = * pce ;\n if ( scope && ! fcc -> object_ptr && EG ( This ) && instanceof_function ( Z_OBJCE_P ( EG ( This ) ) , scope TSRMLS_CC ) && instanceof_function ( scope , fcc -> calling_scope TSRMLS_CC ) ) {\n fcc -> object_ptr = EG ( This ) ;\n fcc -> called_scope = Z_OBJCE_P ( fcc -> object_ptr ) ;\n }\n else {\n fcc -> called_scope = fcc -> object_ptr ? Z_OBJCE_P ( fcc -> object_ptr ) : fcc -> calling_scope ;\n }\n * strict_class = 1 ;\n ret = 1 ;\n }\n else {\n if ( error ) zend_spprintf ( error , 0 , \"class '%.*s' not found\" , name_len , name ) ;\n }\n efree ( lcname ) ;\n return ret ;\n }"}
{"idx": 16904, "target": 0, "func": "static int init_offset ( ShortenContext * s ) {\n int32_t mean = 0 ;\n int chan , i ;\n int nblock = FFMAX ( 1 , s -> nmean ) ;\n switch ( s -> internal_ftype ) {\n case TYPE_S16HL : case TYPE_S16LH : mean = 0 ;\n break ;\n default : av_log ( s -> avctx , AV_LOG_ERROR , \"unknown audio type\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( chan = 0 ;\n chan < s -> channels ;\n chan ++ ) for ( i = 0 ;\n i < nblock ;\n i ++ ) s -> offset [ chan ] [ i ] = mean ;\n return 0 ;\n }"}
{"idx": 16905, "target": 0, "func": "static int dissect_h225_RasUsageSpecification_when ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_RasUsageSpecification_when , RasUsageSpecification_when_sequence ) ;\n return offset ;\n }"}
{"idx": 16906, "target": 0, "func": "static int parse_CAggregSortKey ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree , const char * fmt , ... ) {\n guint32 order ;\n proto_item * item ;\n proto_tree * tree ;\n const char * txt ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CAggregSortKey , & item , txt ) ;\n order = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_caggregsortkey_order , tvb , offset , 4 , order ) ;\n offset += 4 ;\n offset = parse_CAggregSpec ( tvb , offset , tree , pad_tree , \"ColumnSpec\" ) ;\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 16907, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( BluetoothChooserBrowserTest , InvokeDialog_PairedBubble ) {\n set_status ( FakeBluetoothChooserController : : BluetoothStatus : : IDLE ) ;\n AddPairedDevice ( ) ;\n RunDialog ( ) ;\n }"}
{"idx": 16908, "target": 1, "func": "static void config_monitor ( config_tree * ptree ) {\n int_node * pfilegen_token ;\n const char * filegen_string ;\n const char * filegen_file ;\n FILEGEN * filegen ;\n filegen_node * my_node ;\n attr_val * my_opts ;\n int filegen_type ;\n int filegen_flag ;\n if ( ptree -> stats_dir ) stats_config ( STATS_STATSDIR , ptree -> stats_dir ) ;\n pfilegen_token = HEAD_PFIFO ( ptree -> stats_list ) ;\n for ( ;\n pfilegen_token != NULL ;\n pfilegen_token = pfilegen_token -> link ) {\n filegen_string = keyword ( pfilegen_token -> i ) ;\n filegen = filegen_get ( filegen_string ) ;\n DPRINTF ( 4 , ( \"enabling filegen for %s statistics '%s%s'\\n\" , filegen_string , filegen -> prefix , filegen -> basename ) ) ;\n filegen -> flag |= FGEN_FLAG_ENABLED ;\n }\n my_node = HEAD_PFIFO ( ptree -> filegen_opts ) ;\n for ( ;\n my_node != NULL ;\n my_node = my_node -> link ) {\n filegen_file = keyword ( my_node -> filegen_token ) ;\n filegen = filegen_get ( filegen_file ) ;\n filegen_flag = filegen -> flag ;\n filegen_type = filegen -> type ;\n filegen_flag |= FGEN_FLAG_ENABLED ;\n my_opts = HEAD_PFIFO ( my_node -> options ) ;\n for ( ;\n my_opts != NULL ;\n my_opts = my_opts -> link ) {\n switch ( my_opts -> attr ) {\n case T_File : filegen_file = my_opts -> value . s ;\n break ;\n case T_Type : switch ( my_opts -> value . i ) {\n default : NTP_INSIST ( 0 ) ;\n break ;\n case T_None : filegen_type = FILEGEN_NONE ;\n break ;\n case T_Pid : filegen_type = FILEGEN_PID ;\n break ;\n case T_Day : filegen_type = FILEGEN_DAY ;\n break ;\n case T_Week : filegen_type = FILEGEN_WEEK ;\n break ;\n case T_Month : filegen_type = FILEGEN_MONTH ;\n break ;\n case T_Year : filegen_type = FILEGEN_YEAR ;\n break ;\n case T_Age : filegen_type = FILEGEN_AGE ;\n break ;\n }\n break ;\n case T_Flag : switch ( my_opts -> value . i ) {\n case T_Link : filegen_flag |= FGEN_FLAG_LINK ;\n break ;\n case T_Nolink : filegen_flag &= ~ FGEN_FLAG_LINK ;\n break ;\n case T_Enable : filegen_flag |= FGEN_FLAG_ENABLED ;\n break ;\n case T_Disable : filegen_flag &= ~ FGEN_FLAG_ENABLED ;\n break ;\n default : msyslog ( LOG_ERR , \"Unknown filegen flag token %d\" , my_opts -> value . i ) ;\n exit ( 1 ) ;\n }\n break ;\n default : msyslog ( LOG_ERR , \"Unknown filegen option token %d\" , my_opts -> attr ) ;\n exit ( 1 ) ;\n }\n }\n filegen_config ( filegen , filegen_file , filegen_type , filegen_flag ) ;\n }\n }"}
{"idx": 16909, "target": 0, "func": "void str_to_file ( const char * fname , char * str , int size ) {\n str_to_file2 ( fname , str , size , FALSE ) ;\n }"}
{"idx": 16910, "target": 0, "func": "void do_remove_files_wildcard ( struct st_command * command ) {\n int error = 0 , sys_errno = 0 ;\n uint i ;\n size_t directory_length ;\n MY_DIR * dir_info ;\n FILEINFO * file ;\n char dir_separator [ 2 ] ;\n static DYNAMIC_STRING ds_directory ;\n static DYNAMIC_STRING ds_wild ;\n static DYNAMIC_STRING ds_file_to_remove ;\n char dirname [ FN_REFLEN ] ;\n const struct command_arg rm_args [ ] = {\n {\n \"directory\" , ARG_STRING , TRUE , & ds_directory , \"Directory containing files to delete\" }\n , {\n \"filename\" , ARG_STRING , FALSE , & ds_wild , \"File pattern to delete\" }\n }\n ;\n DBUG_ENTER ( \"do_remove_files_wildcard\" ) ;\n check_command_args ( command , command -> first_argument , rm_args , sizeof ( rm_args ) / sizeof ( struct command_arg ) , ' ' ) ;\n fn_format ( dirname , ds_directory . str , \"\" , \"\" , MY_UNPACK_FILENAME ) ;\n DBUG_PRINT ( \"info\" , ( \"listing directory: %s\" , dirname ) ) ;\n if ( ! ( dir_info = my_dir ( dirname , MYF ( MY_DONT_SORT | MY_WANT_STAT | MY_WME ) ) ) ) {\n error = 1 ;\n sys_errno = my_errno ;\n goto end ;\n }\n init_dynamic_string ( & ds_file_to_remove , dirname , 1024 , 1024 ) ;\n dir_separator [ 0 ] = FN_LIBCHAR ;\n dynstr_append_mem ( & ds_file_to_remove , dir_separator , 1 ) ;\n directory_length = ds_file_to_remove . length ;\n set_wild_chars ( 1 ) ;\n for ( i = 0 ;\n i < ( uint ) dir_info -> number_off_files ;\n i ++ ) {\n file = dir_info -> dir_entry + i ;\n if ( MY_S_ISDIR ( file -> mystat -> st_mode ) ) continue ;\n if ( ds_wild . length && wild_compare ( file -> name , ds_wild . str , 0 ) ) continue ;\n ds_file_to_remove . length = directory_length ;\n dynstr_append ( & ds_file_to_remove , file -> name ) ;\n DBUG_PRINT ( \"info\" , ( \"removing file: %s\" , ds_file_to_remove . str ) ) ;\n if ( ( error = ( my_delete ( ds_file_to_remove . str , MYF ( MY_WME ) ) != 0 ) ) ) sys_errno = my_errno ;\n if ( error ) break ;\n }\n set_wild_chars ( 0 ) ;\n my_dirend ( dir_info ) ;\n end : handle_command_error ( command , error , sys_errno ) ;\n dynstr_free ( & ds_directory ) ;\n dynstr_free ( & ds_wild ) ;\n dynstr_free ( & ds_file_to_remove ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 16911, "target": 0, "func": "static const char * cmd_request_encoding ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n if ( dcfg == NULL ) return NULL ;\n dcfg -> request_encoding = p1 ;\n return NULL ;\n }"}
{"idx": 16912, "target": 1, "func": "static int32_t u_printf_ustring_handler ( const u_printf_stream_handler * handler , void * context , ULocaleBundle * formatBundle , const u_printf_spec_info * info , const ufmt_args * args ) {\n int32_t len , written ;\n const UChar * arg = ( const UChar * ) ( args [ 0 ] . ptrValue ) ;\n if ( arg == NULL ) {\n arg = gNullStr ;\n }\n len = u_strlen ( arg ) ;\n if ( info -> fPrecision != - 1 && info -> fPrecision < len ) {\n len = info -> fPrecision ;\n }\n written = handler -> pad_and_justify ( context , info , arg , len ) ;\n return written ;\n }"}
{"idx": 16913, "target": 1, "func": "static int spl_filesystem_file_read_csv ( spl_filesystem_object * intern , char delimiter , char enclosure , char escape , zval * return_value TSRMLS_DC ) {\n int ret = SUCCESS ;\n do {\n ret = spl_filesystem_file_read ( intern , 1 TSRMLS_CC ) ;\n }\n while ( ret == SUCCESS && ! intern -> u . file . current_line_len && SPL_HAS_FLAG ( intern -> flags , SPL_FILE_OBJECT_SKIP_EMPTY ) ) ;\n if ( ret == SUCCESS ) {\n size_t buf_len = intern -> u . file . current_line_len ;\n char * buf = estrndup ( intern -> u . file . current_line , buf_len ) ;\n if ( intern -> u . file . current_zval ) {\n zval_ptr_dtor ( & intern -> u . file . current_zval ) ;\n }\n ALLOC_INIT_ZVAL ( intern -> u . file . current_zval ) ;\n php_fgetcsv ( intern -> u . file . stream , delimiter , enclosure , escape , buf_len , buf , intern -> u . file . current_zval TSRMLS_CC ) ;\n if ( return_value ) {\n if ( Z_TYPE_P ( return_value ) != IS_NULL ) {\n zval_dtor ( return_value ) ;\n ZVAL_NULL ( return_value ) ;\n }\n ZVAL_ZVAL ( return_value , intern -> u . file . current_zval , 1 , 0 ) ;\n }\n }\n return ret ;\n }"}
{"idx": 16914, "target": 0, "func": "static void http_request_bad ( struct evhttp_request * req , void * arg ) {\n if ( req != NULL ) {\n fprintf ( stderr , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n test_ok = 1 ;\n event_loopexit ( NULL ) ;\n }"}
{"idx": 16915, "target": 0, "func": "void get_mqh ( const char * user , const char * host , USER_CONN * uc ) {\n ACL_USER * acl_user ;\n pthread_mutex_lock ( & acl_cache -> lock ) ;\n if ( initialized && ( acl_user = find_acl_user ( host , user , FALSE ) ) ) uc -> user_resources = acl_user -> user_resource ;\n else bzero ( ( char * ) & uc -> user_resources , sizeof ( uc -> user_resources ) ) ;\n pthread_mutex_unlock ( & acl_cache -> lock ) ;\n }"}
{"idx": 16916, "target": 1, "func": "void kadmin_getpol ( int argc , char * argv [ ] ) {\n krb5_error_code retval ;\n kadm5_policy_ent_rec policy ;\n if ( ! ( argc == 2 || ( argc == 3 && ! strcmp ( \"-terse\" , argv [ 1 ] ) ) ) ) {\n fprintf ( stderr , _ ( \"usage: get_policy [-terse] policy\\n\" ) ) ;\n return ;\n }\n retval = kadm5_get_policy ( handle , argv [ argc - 1 ] , & policy ) ;\n if ( retval ) {\n com_err ( \"get_policy\" , retval , _ ( \"while retrieving policy \\\"%s\\\".\" ) , argv [ argc - 1 ] ) ;\n return ;\n }\n if ( argc == 2 ) {\n printf ( _ ( \"Policy: %s\\n\" ) , policy . policy ) ;\n printf ( _ ( \"Maximum password life: %ld\\n\" ) , policy . pw_max_life ) ;\n printf ( _ ( \"Minimum password life: %ld\\n\" ) , policy . pw_min_life ) ;\n printf ( _ ( \"Minimum password length: %ld\\n\" ) , policy . pw_min_length ) ;\n printf ( _ ( \"Minimum number of password character classes: %ld\\n\" ) , policy . pw_min_classes ) ;\n printf ( _ ( \"Number of old keys kept: %ld\\n\" ) , policy . pw_history_num ) ;\n printf ( _ ( \"Reference count: %ld\\n\" ) , policy . policy_refcnt ) ;\n printf ( _ ( \"Maximum password failures before lockout: %lu\\n\" ) , ( unsigned long ) policy . pw_max_fail ) ;\n printf ( _ ( \"Password failure count reset interval: %s\\n\" ) , strdur ( policy . pw_failcnt_interval ) ) ;\n printf ( _ ( \"Password lockout duration: %s\\n\" ) , strdur ( policy . pw_lockout_duration ) ) ;\n if ( policy . allowed_keysalts != NULL ) printf ( _ ( \"Allowed key/salt types: %s\\n\" ) , policy . allowed_keysalts ) ;\n }\n else {\n printf ( \"\\\"%s\\\"\\t%ld\\t%ld\\t%ld\\t%ld\\t%ld\\t%ld\\t%lu\\t%ld\\t%ld\\t%s\\n\" , policy . policy , policy . pw_max_life , policy . pw_min_life , policy . pw_min_length , policy . pw_min_classes , policy . pw_history_num , policy . policy_refcnt , ( unsigned long ) policy . pw_max_fail , ( long ) policy . pw_failcnt_interval , ( long ) policy . pw_lockout_duration , ( policy . allowed_keysalts == NULL ) ? \"-\" : policy . allowed_keysalts ) ;\n }\n kadm5_free_policy_ent ( handle , & policy ) ;\n }"}
{"idx": 16917, "target": 0, "func": "static void dumpRoleMembership ( PGconn * conn ) {\n PGresult * res ;\n int i ;\n res = executeQuery ( conn , \"SELECT ur.rolname AS roleid, \" \"um.rolname AS member, \" \"a.admin_option, \" \"ug.rolname AS grantor \" \"FROM pg_auth_members a \" \"LEFT JOIN pg_authid ur on ur.oid = a.roleid \" \"LEFT JOIN pg_authid um on um.oid = a.member \" \"LEFT JOIN pg_authid ug on ug.oid = a.grantor \" \"WHERE NOT (ur.rolname ~ '^pg_' AND um.rolname ~ '^pg_')\" \"ORDER BY 1,2,3\" ) ;\n if ( PQntuples ( res ) > 0 ) fprintf ( OPF , \"--\\n-- Role memberships\\n--\\n\\n\" ) ;\n for ( i = 0 ;\n i < PQntuples ( res ) ;\n i ++ ) {\n char * roleid = PQgetvalue ( res , i , 0 ) ;\n char * member = PQgetvalue ( res , i , 1 ) ;\n char * option = PQgetvalue ( res , i , 2 ) ;\n fprintf ( OPF , \"GRANT %s\" , fmtId ( roleid ) ) ;\n fprintf ( OPF , \" TO %s\" , fmtId ( member ) ) ;\n if ( * option == 't' ) fprintf ( OPF , \" WITH ADMIN OPTION\" ) ;\n if ( ! PQgetisnull ( res , i , 3 ) ) {\n char * grantor = PQgetvalue ( res , i , 3 ) ;\n fprintf ( OPF , \" GRANTED BY %s\" , fmtId ( grantor ) ) ;\n }\n fprintf ( OPF , \";\n\\n\" ) ;\n }\n PQclear ( res ) ;\n fprintf ( OPF , \"\\n\\n\" ) ;\n }"}
{"idx": 16918, "target": 0, "func": "static guint32 dissect_netb_datagram ( tvbuff_t * tvb , packet_info * pinfo _U_ , int offset , proto_tree * tree ) {\n netbios_add_name ( \"Receiver's Name\" , tvb , offset + NB_RECVER_NAME , tree ) ;\n if ( tvb_memeql ( tvb , offset + NB_SENDER_NAME , zeroes , 10 ) == 0 ) {\n proto_tree_add_item ( tree , hf_netb_datagram_mac , tvb , offset + NB_SENDER_NAME + 10 , 6 , ENC_NA ) ;\n }\n else {\n netbios_add_name ( \"Sender's Name\" , tvb , offset + NB_SENDER_NAME , tree ) ;\n }\n return 0 ;\n }"}
{"idx": 16919, "target": 0, "func": "int qemuMonitorJSONIOProcess ( qemuMonitorPtr mon , const char * data , size_t len , qemuMonitorMessagePtr msg ) {\n int used = 0 ;\n while ( used < len ) {\n char * nl = strstr ( data + used , LINE_ENDING ) ;\n if ( nl ) {\n int got = nl - ( data + used ) ;\n char * line = strndup ( data + used , got ) ;\n if ( ! line ) {\n virReportOOMError ( ) ;\n return - 1 ;\n }\n used += got + strlen ( LINE_ENDING ) ;\n line [ got ] = '\\0' ;\n if ( qemuMonitorJSONIOProcessLine ( mon , line , msg ) < 0 ) {\n VIR_FREE ( line ) ;\n return - 1 ;\n }\n VIR_FREE ( line ) ;\n }\n else {\n break ;\n }\n }\n VIR_DEBUG ( \"Total used %d bytes out of %zd available in buffer\" , used , len ) ;\n return used ;\n }"}
{"idx": 16920, "target": 0, "func": "static void test_bind_result_ext ( ) {\n MYSQL_STMT * stmt ;\n int rc , i ;\n uchar t_data ;\n short s_data ;\n int i_data ;\n longlong b_data ;\n float f_data ;\n double d_data ;\n char szData [ 20 ] , bData [ 20 ] ;\n ulong szLength , bLength ;\n MYSQL_BIND my_bind [ 8 ] ;\n ulong length [ 8 ] ;\n my_bool is_null [ 8 ] ;\n char llbuf [ 22 ] ;\n myheader ( \"test_bind_result_ext\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_bind_result\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_bind_result(c1 tinyint, \" \" c2 smallint, \" \" c3 int, c4 bigint, \" \" c5 float, c6 double, \" \" c7 varbinary(10), \" \" c8 varchar(50))\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_bind_result \" \"VALUES (19, 2999, 3999, 4999999, \" \" 2345.6, 5678.89563, 'venu', 'mysql')\" ) ;\n myquery ( rc ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n for ( i = 0 ;\n i < ( int ) array_elements ( my_bind ) ;\n i ++ ) {\n my_bind [ i ] . length = & length [ i ] ;\n my_bind [ i ] . is_null = & is_null [ i ] ;\n }\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_TINY ;\n my_bind [ 0 ] . buffer = ( void * ) & t_data ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_SHORT ;\n my_bind [ 2 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 3 ] . buffer_type = MYSQL_TYPE_LONGLONG ;\n my_bind [ 1 ] . buffer = ( void * ) & s_data ;\n my_bind [ 2 ] . buffer = ( void * ) & i_data ;\n my_bind [ 3 ] . buffer = ( void * ) & b_data ;\n my_bind [ 4 ] . buffer_type = MYSQL_TYPE_FLOAT ;\n my_bind [ 4 ] . buffer = ( void * ) & f_data ;\n my_bind [ 5 ] . buffer_type = MYSQL_TYPE_DOUBLE ;\n my_bind [ 5 ] . buffer = ( void * ) & d_data ;\n my_bind [ 6 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 6 ] . buffer = ( void * ) szData ;\n my_bind [ 6 ] . buffer_length = sizeof ( szData ) ;\n my_bind [ 6 ] . length = & szLength ;\n my_bind [ 7 ] . buffer_type = MYSQL_TYPE_TINY_BLOB ;\n my_bind [ 7 ] . buffer = ( void * ) & bData ;\n my_bind [ 7 ] . length = & bLength ;\n my_bind [ 7 ] . buffer_length = sizeof ( bData ) ;\n stmt = mysql_simple_prepare ( mysql , \"select * from test_bind_result\" ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) {\n fprintf ( stdout , \"\\n data (tiny) : %d\" , t_data ) ;\n fprintf ( stdout , \"\\n data (short) : %d\" , s_data ) ;\n fprintf ( stdout , \"\\n data (int) : %d\" , i_data ) ;\n fprintf ( stdout , \"\\n data (big) : %s\" , llstr ( b_data , llbuf ) ) ;\n fprintf ( stdout , \"\\n data (float) : %f\" , f_data ) ;\n fprintf ( stdout , \"\\n data (double) : %f\" , d_data ) ;\n fprintf ( stdout , \"\\n data (str) : %s(%lu)\" , szData , szLength ) ;\n bData [ bLength ] = '\\0' ;\n fprintf ( stdout , \"\\n data (bin) : %s(%lu)\" , bData , bLength ) ;\n }\n DIE_UNLESS ( t_data == 19 ) ;\n DIE_UNLESS ( s_data == 2999 ) ;\n DIE_UNLESS ( i_data == 3999 ) ;\n DIE_UNLESS ( b_data == 4999999 ) ;\n DIE_UNLESS ( strcmp ( szData , \"venu\" ) == 0 ) ;\n DIE_UNLESS ( strncmp ( bData , \"mysql\" , 5 ) == 0 ) ;\n DIE_UNLESS ( szLength == 4 ) ;\n DIE_UNLESS ( bLength == 5 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 16921, "target": 0, "func": "static gint check_diameter ( tvbuff_t * tvb ) {\n guint32 diam_len ;\n guint8 flags ;\n if ( tvb_captured_length ( tvb ) < 5 ) return NOT_ENOUGH_DATA ;\n if ( tvb_get_guint8 ( tvb , 0 ) != 1 ) return NOT_DIAMETER ;\n diam_len = tvb_get_ntoh24 ( tvb , 1 ) ;\n if ( diam_len > 65534 ) return NOT_DIAMETER ;\n if ( diam_len < 36 ) return NOT_DIAMETER ;\n flags = tvb_get_guint8 ( tvb , 4 ) ;\n if ( flags & 0x0f ) return NOT_DIAMETER ;\n if ( ( flags & DIAM_FLAGS_R ) && ( flags & DIAM_FLAGS_E ) ) return NOT_DIAMETER ;\n return IS_DIAMETER ;\n }"}
{"idx": 16922, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( MimeHandlerViewTest , EmbeddedDataUrlObject ) {\n RunTest ( \"test_embedded_data_url_object.html\" ) ;\n }"}
{"idx": 16923, "target": 0, "func": "static __always_inline __u64 __be64_to_cpup ( const __be64 * p ) {\n return __swab64p ( ( __u64 * ) p ) ;\n }"}
{"idx": 16924, "target": 0, "func": "static int dissect_spoolss_buffer_data ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n BUFFER * b = ( BUFFER * ) di -> private_data ;\n proto_item * item ;\n guint32 size ;\n const guint8 * data ;\n if ( di -> conformant_run ) return offset ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_buffer_size , & size ) ;\n offset = dissect_ndr_uint8s ( tvb , offset , pinfo , NULL , di , drep , hf_buffer_data , size , & data ) ;\n item = proto_tree_add_item ( tree , hf_buffer_data , tvb , offset - size , size , ENC_NA ) ;\n if ( b ) {\n b -> tvb = tvb_new_child_real_data ( tvb , data , size , size ) ;\n add_new_data_source ( pinfo , b -> tvb , \"SPOOLSS buffer\" ) ;\n b -> item = item ;\n b -> tree = proto_item_add_subtree ( item , ett_BUFFER ) ;\n }\n return offset ;\n }"}
{"idx": 16925, "target": 0, "func": "int qemuMonitorTextDriveDel ( qemuMonitorPtr mon , const char * drivestr ) {\n char * cmd = NULL ;\n char * reply = NULL ;\n char * safedev ;\n int ret = - 1 ;\n VIR_DEBUG ( \"TextDriveDel drivestr=%s\" , drivestr ) ;\n if ( ! ( safedev = qemuMonitorEscapeArg ( drivestr ) ) ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n if ( virAsprintf ( & cmd , \"drive_del %s\" , safedev ) < 0 ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"cannot delete %s drive\" ) , drivestr ) ;\n goto cleanup ;\n }\n if ( strstr ( reply , \"unknown command:\" ) ) {\n VIR_ERROR ( _ ( \"deleting drive is not supported. \" \"This may leak data if disk is reassigned\" ) ) ;\n ret = 1 ;\n goto cleanup ;\n }\n else if ( STRPREFIX ( reply , \"Device '\" ) && ( strstr ( reply , \"not found\" ) ) ) {\n }\n else if ( STRNEQ ( reply , \"\" ) ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"deleting %s drive failed: %s\" ) , drivestr , reply ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( cmd ) ;\n VIR_FREE ( reply ) ;\n VIR_FREE ( safedev ) ;\n return ret ;\n }"}
{"idx": 16926, "target": 0, "func": "TEST_F ( ShortcutsProviderTest , ClassifyAllMatchesInString ) {\n ACMatchClassifications matches = AutocompleteMatch : : ClassificationsFromString ( \"0,0\" ) ;\n ClassifyTest classify_test ( ASCIIToUTF16 ( \"A man, a plan, a canal Panama\" ) , matches ) ;\n ACMatchClassifications spans_a = classify_test . RunTest ( ASCIIToUTF16 ( \"man\" ) ) ;\n EXPECT_EQ ( \"0,0,2,2,5,0\" , AutocompleteMatch : : ClassificationsToString ( spans_a ) ) ;\n ACMatchClassifications spans_b = classify_test . RunTest ( ASCIIToUTF16 ( \"man p\" ) ) ;\n EXPECT_EQ ( \"0,0,2,2,5,0,9,2,10,0,23,2,24,0\" , AutocompleteMatch : : ClassificationsToString ( spans_b ) ) ;\n ACMatchClassifications spans_c = classify_test . RunTest ( ASCIIToUTF16 ( \"man plan panama\" ) ) ;\n EXPECT_EQ ( \"0,0,2,2,5,0,9,2,13,0,23,2\" , AutocompleteMatch : : ClassificationsToString ( spans_c ) ) ;\n ClassifyTest classify_test2 ( ASCIIToUTF16 ( \"Yahoo! Sports - Sports News, \" \"Scores, Rumors, Fantasy Games, and more\" ) , matches ) ;\n ACMatchClassifications spans_d = classify_test2 . RunTest ( ASCIIToUTF16 ( \"ne\" ) ) ;\n EXPECT_EQ ( \"0,0,23,2,25,0\" , AutocompleteMatch : : ClassificationsToString ( spans_d ) ) ;\n ACMatchClassifications spans_e = classify_test2 . RunTest ( ASCIIToUTF16 ( \"news r\" ) ) ;\n EXPECT_EQ ( \"0,0,10,2,11,0,19,2,20,0,23,2,27,0,32,2,33,0,37,2,38,0,41,2,42,0,\" \"66,2,67,0\" , AutocompleteMatch : : ClassificationsToString ( spans_e ) ) ;\n matches = AutocompleteMatch : : ClassificationsFromString ( \"0,1\" ) ;\n ClassifyTest classify_test3 ( ASCIIToUTF16 ( \"livescore.goal.com\" ) , matches ) ;\n ACMatchClassifications spans_f = classify_test3 . RunTest ( ASCIIToUTF16 ( \"go\" ) ) ;\n EXPECT_EQ ( \"0,1,10,3,12,1\" , AutocompleteMatch : : ClassificationsToString ( spans_f ) ) ;\n matches = AutocompleteMatch : : ClassificationsFromString ( \"0,0,13,1\" ) ;\n ClassifyTest classify_test4 ( ASCIIToUTF16 ( \"Email login: mail.somecorp.com\" ) , matches ) ;\n ACMatchClassifications spans_g = classify_test4 . RunTest ( ASCIIToUTF16 ( \"ail\" ) ) ;\n EXPECT_EQ ( \"0,0,2,2,5,0,13,1,14,3,17,1\" , AutocompleteMatch : : ClassificationsToString ( spans_g ) ) ;\n ACMatchClassifications spans_h = classify_test4 . RunTest ( ASCIIToUTF16 ( \"lo log\" ) ) ;\n EXPECT_EQ ( \"0,0,6,2,9,0,13,1\" , AutocompleteMatch : : ClassificationsToString ( spans_h ) ) ;\n ACMatchClassifications spans_i = classify_test4 . RunTest ( ASCIIToUTF16 ( \"ail em\" ) ) ;\n EXPECT_EQ ( \"0,2,5,0,13,1,14,3,17,1\" , AutocompleteMatch : : ClassificationsToString ( spans_i ) ) ;\n class ClassifyTest classify_test5 ( ( base : : string16 ( ) ) , ACMatchClassifications ( ) ) ;\n ACMatchClassifications spans_j = classify_test5 . RunTest ( ASCIIToUTF16 ( \"man\" ) ) ;\n ASSERT_EQ ( 0U , spans_j . size ( ) ) ;\n matches = AutocompleteMatch : : ClassificationsFromString ( \"0,4,9,0\" ) ;\n ClassifyTest classify_test6 ( ASCIIToUTF16 ( \"html password example\" ) , matches ) ;\n ACMatchClassifications spans_k = classify_test6 . RunTest ( ASCIIToUTF16 ( \"html pass\" ) ) ;\n EXPECT_EQ ( \"0,6,4,4,5,6,9,0\" , AutocompleteMatch : : ClassificationsToString ( spans_k ) ) ;\n matches = AutocompleteMatch : : ClassificationsFromString ( \"0,1,11,0\" ) ;\n ClassifyTest classify_test7 ( ASCIIToUTF16 ( \"http://a.co is great\" ) , matches ) ;\n ACMatchClassifications spans_l = classify_test7 . RunTest ( ASCIIToUTF16 ( \"ht co\" ) ) ;\n EXPECT_EQ ( \"0,3,2,1,9,3,11,0\" , AutocompleteMatch : : ClassificationsToString ( spans_l ) ) ;\n }"}
{"idx": 16927, "target": 0, "func": "static inline void SetPixelCb ( const Image * restrict image , const Quantum cb , Quantum * restrict pixel ) {\n pixel [ image -> channel_map [ CbPixelChannel ] . offset ] = cb ;\n }"}
{"idx": 16928, "target": 0, "func": "static void ptvcursor_free_subtree_levels ( ptvcursor_t * ptvc ) {\n ptvc -> pushed_tree = NULL ;\n ptvc -> pushed_tree_max = 0 ;\n DISSECTOR_ASSERT ( ptvc -> pushed_tree_index == 0 ) ;\n ptvc -> pushed_tree_index = 0 ;\n }"}
{"idx": 16929, "target": 0, "func": "hb_font_funcs_t * hb_font_funcs_get_empty ( void ) {\n return const_cast < hb_font_funcs_t * > ( & _hb_font_funcs_nil ) ;\n }"}
{"idx": 16930, "target": 0, "func": "static void generate_psnr_packet ( VP8_COMP * cpi ) {\n YV12_BUFFER_CONFIG * orig = cpi -> Source ;\n YV12_BUFFER_CONFIG * recon = cpi -> common . frame_to_show ;\n struct vpx_codec_cx_pkt pkt ;\n uint64_t sse ;\n int i ;\n unsigned int width = cpi -> common . Width ;\n unsigned int height = cpi -> common . Height ;\n pkt . kind = VPX_CODEC_PSNR_PKT ;\n sse = calc_plane_error ( orig -> y_buffer , orig -> y_stride , recon -> y_buffer , recon -> y_stride , width , height ) ;\n pkt . data . psnr . sse [ 0 ] = sse ;\n pkt . data . psnr . sse [ 1 ] = sse ;\n pkt . data . psnr . samples [ 0 ] = width * height ;\n pkt . data . psnr . samples [ 1 ] = width * height ;\n width = ( width + 1 ) / 2 ;\n height = ( height + 1 ) / 2 ;\n sse = calc_plane_error ( orig -> u_buffer , orig -> uv_stride , recon -> u_buffer , recon -> uv_stride , width , height ) ;\n pkt . data . psnr . sse [ 0 ] += sse ;\n pkt . data . psnr . sse [ 2 ] = sse ;\n pkt . data . psnr . samples [ 0 ] += width * height ;\n pkt . data . psnr . samples [ 2 ] = width * height ;\n sse = calc_plane_error ( orig -> v_buffer , orig -> uv_stride , recon -> v_buffer , recon -> uv_stride , width , height ) ;\n pkt . data . psnr . sse [ 0 ] += sse ;\n pkt . data . psnr . sse [ 3 ] = sse ;\n pkt . data . psnr . samples [ 0 ] += width * height ;\n pkt . data . psnr . samples [ 3 ] = width * height ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) pkt . data . psnr . psnr [ i ] = vpx_sse_to_psnr ( pkt . data . psnr . samples [ i ] , 255.0 , ( double ) ( pkt . data . psnr . sse [ i ] ) ) ;\n vpx_codec_pkt_list_add ( cpi -> output_pkt_list , & pkt ) ;\n }"}
{"idx": 16931, "target": 0, "func": "WORK_STATE ossl_statem_server_pre_work ( SSL * s , WORK_STATE wst ) {\n OSSL_STATEM * st = & s -> statem ;\n switch ( st -> hand_state ) {\n case TLS_ST_SW_HELLO_REQ : s -> shutdown = 0 ;\n if ( SSL_IS_DTLS ( s ) ) dtls1_clear_sent_buffer ( s ) ;\n break ;\n case DTLS_ST_SW_HELLO_VERIFY_REQUEST : s -> shutdown = 0 ;\n if ( SSL_IS_DTLS ( s ) ) {\n dtls1_clear_sent_buffer ( s ) ;\n st -> use_timer = 0 ;\n }\n break ;\n case TLS_ST_SW_SRVR_HELLO : if ( SSL_IS_DTLS ( s ) ) {\n st -> use_timer = 1 ;\n }\n break ;\n case TLS_ST_SW_SRVR_DONE : # ifndef OPENSSL_NO_SCTP if ( SSL_IS_DTLS ( s ) && BIO_dgram_is_sctp ( SSL_get_wbio ( s ) ) ) return dtls_wait_for_dry ( s ) ;\n # endif return WORK_FINISHED_CONTINUE ;\n case TLS_ST_SW_SESSION_TICKET : if ( SSL_IS_DTLS ( s ) ) {\n st -> use_timer = 0 ;\n }\n break ;\n case TLS_ST_SW_CHANGE : s -> session -> cipher = s -> s3 -> tmp . new_cipher ;\n if ( ! s -> method -> ssl3_enc -> setup_key_block ( s ) ) {\n ossl_statem_set_error ( s ) ;\n return WORK_ERROR ;\n }\n if ( SSL_IS_DTLS ( s ) ) {\n st -> use_timer = 0 ;\n }\n return WORK_FINISHED_CONTINUE ;\n case TLS_ST_OK : return tls_finish_handshake ( s , wst ) ;\n default : break ;\n }\n return WORK_FINISHED_CONTINUE ;\n }"}
{"idx": 16932, "target": 0, "func": "static int dissect_usb_video_selector_unit ( proto_tree * tree , tvbuff_t * tvb , int offset ) {\n guint8 num_inputs ;\n num_inputs = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_usb_vid_num_inputs , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n ++ offset ;\n if ( num_inputs > 0 ) {\n proto_tree_add_item ( tree , hf_usb_vid_sources , tvb , offset , num_inputs , ENC_NA ) ;\n offset += num_inputs ;\n }\n proto_tree_add_item ( tree , hf_usb_vid_iSelector , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n ++ offset ;\n return offset ;\n }"}
{"idx": 16933, "target": 0, "func": "static int archive_read_format_cpio_bid ( struct archive_read * a , int best_bid ) {\n const unsigned char * p ;\n struct cpio * cpio ;\n int bid ;\n ( void ) best_bid ;\n cpio = ( struct cpio * ) ( a -> format -> data ) ;\n if ( ( p = __archive_read_ahead ( a , 6 , NULL ) ) == NULL ) return ( - 1 ) ;\n bid = 0 ;\n if ( memcmp ( p , \"070707\" , 6 ) == 0 ) {\n cpio -> read_header = header_odc ;\n bid += 48 ;\n }\n else if ( memcmp ( p , \"070727\" , 6 ) == 0 ) {\n cpio -> read_header = header_odc ;\n bid += 48 ;\n }\n else if ( memcmp ( p , \"070701\" , 6 ) == 0 ) {\n cpio -> read_header = header_newc ;\n bid += 48 ;\n }\n else if ( memcmp ( p , \"070702\" , 6 ) == 0 ) {\n cpio -> read_header = header_newc ;\n bid += 48 ;\n }\n else if ( p [ 0 ] * 256 + p [ 1 ] == 070707 ) {\n cpio -> read_header = header_bin_be ;\n bid += 16 ;\n }\n else if ( p [ 0 ] + p [ 1 ] * 256 == 070707 ) {\n cpio -> read_header = header_bin_le ;\n bid += 16 ;\n }\n else return ( ARCHIVE_WARN ) ;\n return ( bid ) ;\n }"}
{"idx": 16934, "target": 0, "func": "void ufile_close_translit ( UFILE * f ) {\n # if ! UCONFIG_NO_TRANSLITERATION if ( ( ! f ) || ( ! f -> fTranslit ) ) return ;\n # endif ufile_flush_translit ( f ) ;\n # if ! UCONFIG_NO_TRANSLITERATION if ( f -> fTranslit -> translit ) utrans_close ( f -> fTranslit -> translit ) ;\n if ( f -> fTranslit -> buffer ) {\n uprv_free ( f -> fTranslit -> buffer ) ;\n }\n uprv_free ( f -> fTranslit ) ;\n f -> fTranslit = NULL ;\n # endif }"}
{"idx": 16935, "target": 0, "func": "CURLcode glob_next_url ( char * * globbed , URLGlob * glob ) {\n URLPattern * pat ;\n size_t i ;\n size_t len ;\n size_t buflen = glob -> urllen + 1 ;\n char * buf = glob -> glob_buffer ;\n * globbed = NULL ;\n if ( ! glob -> beenhere ) glob -> beenhere = 1 ;\n else {\n bool carry = TRUE ;\n for ( i = 0 ;\n carry && ( i < glob -> size ) ;\n i ++ ) {\n carry = FALSE ;\n pat = & glob -> pattern [ glob -> size - 1 - i ] ;\n switch ( pat -> type ) {\n case UPTSet : if ( ( pat -> content . Set . elements ) && ( ++ pat -> content . Set . ptr_s == pat -> content . Set . size ) ) {\n pat -> content . Set . ptr_s = 0 ;\n carry = TRUE ;\n }\n break ;\n case UPTCharRange : pat -> content . CharRange . ptr_c = ( char ) ( pat -> content . CharRange . step + ( int ) ( ( unsigned char ) pat -> content . CharRange . ptr_c ) ) ;\n if ( pat -> content . CharRange . ptr_c > pat -> content . CharRange . max_c ) {\n pat -> content . CharRange . ptr_c = pat -> content . CharRange . min_c ;\n carry = TRUE ;\n }\n break ;\n case UPTNumRange : pat -> content . NumRange . ptr_n += pat -> content . NumRange . step ;\n if ( pat -> content . NumRange . ptr_n > pat -> content . NumRange . max_n ) {\n pat -> content . NumRange . ptr_n = pat -> content . NumRange . min_n ;\n carry = TRUE ;\n }\n break ;\n default : printf ( \"internal error: invalid pattern type (%d)\\n\" , ( int ) pat -> type ) ;\n return CURLE_FAILED_INIT ;\n }\n }\n if ( carry ) {\n return CURLE_OK ;\n }\n }\n for ( i = 0 ;\n i < glob -> size ;\n ++ i ) {\n pat = & glob -> pattern [ i ] ;\n switch ( pat -> type ) {\n case UPTSet : if ( pat -> content . Set . elements ) {\n len = strlen ( pat -> content . Set . elements [ pat -> content . Set . ptr_s ] ) ;\n snprintf ( buf , buflen , \"%s\" , pat -> content . Set . elements [ pat -> content . Set . ptr_s ] ) ;\n buf += len ;\n buflen -= len ;\n }\n break ;\n case UPTCharRange : * buf ++ = pat -> content . CharRange . ptr_c ;\n break ;\n case UPTNumRange : len = snprintf ( buf , buflen , \"%0*ld\" , pat -> content . NumRange . padlength , pat -> content . NumRange . ptr_n ) ;\n buf += len ;\n buflen -= len ;\n break ;\n default : printf ( \"internal error: invalid pattern type (%d)\\n\" , ( int ) pat -> type ) ;\n return CURLE_FAILED_INIT ;\n }\n }\n * buf = '\\0' ;\n * globbed = strdup ( glob -> glob_buffer ) ;\n if ( ! * globbed ) return CURLE_OUT_OF_MEMORY ;\n return CURLE_OK ;\n }"}
{"idx": 16936, "target": 1, "func": "static int output_data ( MLPDecodeContext * m , unsigned int substr , AVFrame * frame , int * got_frame_ptr ) {\n AVCodecContext * avctx = m -> avctx ;\n SubStream * s = & m -> substream [ substr ] ;\n unsigned int i , out_ch = 0 ;\n int32_t * data_32 ;\n int16_t * data_16 ;\n int ret ;\n int is32 = ( m -> avctx -> sample_fmt == AV_SAMPLE_FMT_S32 ) ;\n if ( m -> avctx -> channels != s -> max_matrix_channel + 1 ) {\n av_log ( m -> avctx , AV_LOG_ERROR , \"channel count mismatch\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ! s -> blockpos ) {\n av_log ( avctx , AV_LOG_ERROR , \"No samples to output.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n frame -> nb_samples = s -> blockpos ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n data_32 = ( int32_t * ) frame -> data [ 0 ] ;\n data_16 = ( int16_t * ) frame -> data [ 0 ] ;\n for ( i = 0 ;\n i < s -> blockpos ;\n i ++ ) {\n for ( out_ch = 0 ;\n out_ch <= s -> max_matrix_channel ;\n out_ch ++ ) {\n int mat_ch = s -> ch_assign [ out_ch ] ;\n int32_t sample = m -> sample_buffer [ i ] [ mat_ch ] << s -> output_shift [ mat_ch ] ;\n s -> lossless_check_data ^= ( sample & 0xffffff ) << mat_ch ;\n if ( is32 ) * data_32 ++ = sample << 8 ;\n else * data_16 ++ = sample >> 8 ;\n }\n }\n * got_frame_ptr = 1 ;\n return 0 ;\n }"}
{"idx": 16937, "target": 0, "func": "TEST_F ( ProfileInfoCacheTest , PersistGAIAPicture ) {\n GetCache ( ) -> AddProfileToCache ( GetProfilePath ( \"path_1\" ) , ASCIIToUTF16 ( \"name_1\" ) , base : : string16 ( ) , 0 , std : : string ( ) ) ;\n gfx : : Image gaia_image ( gfx : : test : : CreateImage ( ) ) ;\n GetCache ( ) -> SetGAIAPictureOfProfileAtIndex ( 0 , & gaia_image ) ;\n base : : RunLoop ( ) . RunUntilIdle ( ) ;\n EXPECT_TRUE ( gfx : : test : : IsEqual ( gaia_image , * GetCache ( ) -> GetGAIAPictureOfProfileAtIndex ( 0 ) ) ) ;\n ResetCache ( ) ;\n EXPECT_EQ ( NULL , GetCache ( ) -> GetGAIAPictureOfProfileAtIndex ( 0 ) ) ;\n base : : RunLoop ( ) . RunUntilIdle ( ) ;\n EXPECT_TRUE ( gfx : : test : : IsEqual ( gaia_image , * GetCache ( ) -> GetGAIAPictureOfProfileAtIndex ( 0 ) ) ) ;\n }"}
{"idx": 16938, "target": 0, "func": "static inline Quantum PushColormapIndex ( const Image * image , const size_t index , MagickBooleanType * range_exception ) {\n if ( index < image -> colors ) return ( ( Quantum ) index ) ;\n * range_exception = MagickTrue ;\n return ( ( Quantum ) 0 ) ;\n }"}
{"idx": 16939, "target": 1, "func": "static void reset_skip_tx_size ( VP9_COMMON * cm , TX_SIZE max_tx_size ) {\n int mi_row , mi_col ;\n const int mis = cm -> mi_stride ;\n MODE_INFO * * mi_ptr = cm -> mi_grid_visible ;\n for ( mi_row = 0 ;\n mi_row < cm -> mi_rows ;\n ++ mi_row , mi_ptr += mis ) {\n for ( mi_col = 0 ;\n mi_col < cm -> mi_cols ;\n ++ mi_col ) {\n if ( mi_ptr [ mi_col ] -> mbmi . tx_size > max_tx_size ) mi_ptr [ mi_col ] -> mbmi . tx_size = max_tx_size ;\n }\n }\n }"}
{"idx": 16940, "target": 0, "func": "static void initial_reordering_syllable ( const hb_ot_shape_plan_t * plan , hb_face_t * face , hb_buffer_t * buffer , unsigned int start , unsigned int end ) {\n syllable_type_t syllable_type = ( syllable_type_t ) ( buffer -> info [ start ] . syllable ( ) & 0x0F ) ;\n switch ( syllable_type ) {\n case broken_cluster : case consonant_syllable : initial_reordering_consonant_syllable ( buffer , start , end ) ;\n break ;\n case punctuation_cluster : case non_myanmar_cluster : break ;\n }\n }"}
{"idx": 16941, "target": 0, "func": "static void dissect_rsvp_policy ( proto_item * ti _U_ , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int type ) {\n int offset2 = offset + 4 ;\n proto_tree_add_uint ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_policy_data , tvb , offset2 , obj_length - 4 , ENC_NA ) ;\n }"}
{"idx": 16942, "target": 0, "func": "void vp9_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint8_t * dst , ptrdiff_t stride , const uint8_t * above , const uint8_t * left ) {\n type ## _predictor ( dst , stride , size , above , left ) ;\n }\n # if CONFIG_VP9_HIGHBITDEPTH # define intra_pred_high_sized ( type , size ) void vp9_high_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint16_t * dst , ptrdiff_t stride , const uint16_t * above , const uint16_t * left , int bd ) {\n high_ ## type ## _predictor ( dst , stride , size , above , left , bd ) ;\n }\n # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) intra_pred_high_sized ( type , 4 ) intra_pred_high_sized ( type , 8 ) intra_pred_high_sized ( type , 16 ) intra_pred_high_sized ( type , 32 ) # else # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) # endif # if CONFIG_VP9_HIGHBITDEPTH static INLINE void high_d207_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) above ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) {\n dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n }\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) {\n dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n }\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n }\n static INLINE void high_d63_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) {\n dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n }\n dst += stride ;\n }\n }\n static INLINE void high_d45_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) {\n dst [ c ] = r + c + 2 < bs * 2 ? ROUND_POWER_OF_TWO ( above [ r + c ] + above [ r + c + 1 ] * 2 + above [ r + c + 2 ] , 2 ) : above [ bs * 2 - 1 ] ;\n }\n dst += stride ;\n }\n }\n static INLINE void high_d117_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] , 1 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 3 ;\n r < bs ;\n ++ r ) dst [ ( r - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ r - 3 ] + left [ r - 2 ] * 2 + left [ r - 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - 2 * stride + c - 1 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_d135_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - stride + c - 1 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_d153_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n ( void ) bd ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] , 1 ) ;\n for ( r = 1 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 1 ] + left [ r ] , 1 ) ;\n dst ++ ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] * 2 + above [ c + 1 ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = dst [ - stride + c - 2 ] ;\n dst += stride ;\n }\n }\n static INLINE void high_v_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) left ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memcpy ( dst , above , bs * sizeof ( uint16_t ) ) ;\n dst += stride ;\n }\n }\n static INLINE void high_h_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) above ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , left [ r ] , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_tm_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r , c ;\n int ytop_left = above [ - 1 ] ;\n ( void ) bd ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = clip_pixel_high ( left [ r ] + above [ c ] - ytop_left , bd ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_128_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int r ;\n ( void ) above ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , 128 << ( bd - 8 ) , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_left_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) above ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += left [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_top_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n ( void ) left ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) sum += above [ i ] ;\n expected_dc = ( sum + ( bs >> 1 ) ) / bs ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n static INLINE void high_dc_predictor ( uint16_t * dst , ptrdiff_t stride , int bs , const uint16_t * above , const uint16_t * left , int bd ) {\n int i , r , expected_dc , sum = 0 ;\n const int count = 2 * bs ;\n ( void ) bd ;\n for ( i = 0 ;\n i < bs ;\n i ++ ) {\n sum += above [ i ] ;\n sum += left [ i ] ;\n }\n expected_dc = ( sum + ( count >> 1 ) ) / count ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset16 ( dst , expected_dc , bs ) ;\n dst += stride ;\n }\n }\n # endif static INLINE void d207_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n intra_pred_allsizes ( d207 ) static INLINE void d63_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d63 ) static INLINE void d45_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r + c + 2 < bs * 2 ? ROUND_POWER_OF_TWO ( above [ r + c ] + above [ r + c + 1 ] * 2 + above [ r + c + 2 ] , 2 ) : above [ bs * 2 - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d45 ) static INLINE void d117_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] , 1 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 3 ;\n r < bs ;\n ++ r ) dst [ ( r - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ r - 3 ] + left [ r - 2 ] * 2 + left [ r - 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - 2 * stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d117 ) static INLINE void d135_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d135 )"}
{"idx": 16943, "target": 0, "func": "int qemuMonitorTextAddDevice ( qemuMonitorPtr mon , const char * devicestr ) {\n char * cmd = NULL ;\n char * reply = NULL ;\n char * safedev ;\n int ret = - 1 ;\n if ( ! ( safedev = qemuMonitorEscapeArg ( devicestr ) ) ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n if ( virAsprintf ( & cmd , \"device_add %s\" , safedev ) < 0 ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"cannot attach %s device\" ) , devicestr ) ;\n goto cleanup ;\n }\n if ( STRPREFIX ( reply , \"husb: using\" ) ) {\n ret = 0 ;\n goto cleanup ;\n }\n if ( STRNEQ ( reply , \"\" ) ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"adding %s device failed: %s\" ) , devicestr , reply ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( cmd ) ;\n VIR_FREE ( reply ) ;\n VIR_FREE ( safedev ) ;\n return ret ;\n }"}
{"idx": 16944, "target": 0, "func": "static int ready_callback_key_compare ( gconstpointer a , gconstpointer b ) {\n const ReadyCallback * callback_a , * callback_b ;\n callback_a = a ;\n callback_b = b ;\n if ( callback_a -> file < callback_b -> file ) {\n return - 1 ;\n }\n if ( callback_a -> file > callback_b -> file ) {\n return 1 ;\n }\n if ( callback_a -> file == NULL ) {\n if ( ( void * ) callback_a -> callback . directory < ( void * ) callback_b -> callback . directory ) {\n return - 1 ;\n }\n if ( ( void * ) callback_a -> callback . directory > ( void * ) callback_b -> callback . directory ) {\n return 1 ;\n }\n }\n else {\n if ( ( void * ) callback_a -> callback . file < ( void * ) callback_b -> callback . file ) {\n return - 1 ;\n }\n if ( ( void * ) callback_a -> callback . file > ( void * ) callback_b -> callback . file ) {\n return 1 ;\n }\n }\n if ( callback_a -> callback_data < callback_b -> callback_data ) {\n return - 1 ;\n }\n if ( callback_a -> callback_data > callback_b -> callback_data ) {\n return 1 ;\n }\n return 0 ;\n }"}
{"idx": 16945, "target": 0, "func": "int event_pending ( struct event * ev , short event , struct timeval * tv ) {\n struct timeval now , res ;\n int flags = 0 ;\n if ( ev -> ev_flags & EVLIST_INSERTED ) flags |= ( ev -> ev_events & ( EV_READ | EV_WRITE | EV_SIGNAL ) ) ;\n if ( ev -> ev_flags & EVLIST_ACTIVE ) flags |= ev -> ev_res ;\n if ( ev -> ev_flags & EVLIST_TIMEOUT ) flags |= EV_TIMEOUT ;\n event &= ( EV_TIMEOUT | EV_READ | EV_WRITE | EV_SIGNAL ) ;\n if ( tv != NULL && ( flags & event & EV_TIMEOUT ) ) {\n gettime ( ev -> ev_base , & now ) ;\n evutil_timersub ( & ev -> ev_timeout , & now , & res ) ;\n evutil_gettimeofday ( & now , NULL ) ;\n evutil_timeradd ( & now , & res , tv ) ;\n }\n return ( flags & event ) ;\n }"}
{"idx": 16946, "target": 0, "func": "static int dissect_h245_ConferenceCommand ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_ConferenceCommand , ConferenceCommand_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 16947, "target": 0, "func": "static char * ext_t_0_wv_cspc_13 ( tvbuff_t * tvb _U_ , guint32 value , guint32 str_tbl _U_ ) {\n char * str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"Common Value: '%s'\" , val_to_str ( value , vals_wv_csp_13_element_value_tokens , \"<Unknown WV-CSP 1.3 Common Value token 0x%X>\" ) ) ;\n return str ;\n }"}
{"idx": 16948, "target": 0, "func": "static inline int unreference_pic ( H264Context * h , Picture * pic , int refmask ) {\n int i ;\n if ( pic -> reference &= refmask ) {\n return 0 ;\n }\n else {\n for ( i = 0 ;\n h -> delayed_pic [ i ] ;\n i ++ ) if ( pic == h -> delayed_pic [ i ] ) {\n pic -> reference = DELAYED_PIC_REF ;\n break ;\n }\n return 1 ;\n }\n }"}
{"idx": 16949, "target": 0, "func": "static void show_unhandled_type_error ( ActivateParametersInstall * parameters ) {\n GtkWidget * dialog ;\n char * mime_type = nautilus_file_get_mime_type ( parameters -> file ) ;\n char * error_message = get_application_no_mime_type_handler_message ( parameters -> file , parameters -> uri ) ;\n if ( g_content_type_is_unknown ( mime_type ) ) {\n dialog = gtk_message_dialog_new ( parameters -> parent_window , GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_MODAL , GTK_MESSAGE_ERROR , 0 , \"%s\" , error_message ) ;\n gtk_message_dialog_format_secondary_text ( GTK_MESSAGE_DIALOG ( dialog ) , _ ( \"The file is of an unknown type\" ) ) ;\n }\n else {\n char * text ;\n text = g_strdup_printf ( _ ( \"There is no application installed for \u201c%s\u201d files\" ) , g_content_type_get_description ( mime_type ) ) ;\n dialog = gtk_message_dialog_new ( parameters -> parent_window , GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_MODAL , GTK_MESSAGE_ERROR , 0 , \"%s\" , error_message ) ;\n gtk_message_dialog_format_secondary_text ( GTK_MESSAGE_DIALOG ( dialog ) , \"%s\" , text ) ;\n g_free ( text ) ;\n }\n gtk_dialog_add_button ( GTK_DIALOG ( dialog ) , _ ( \"_Select Application\" ) , GTK_RESPONSE_ACCEPT ) ;\n gtk_dialog_add_button ( GTK_DIALOG ( dialog ) , _ ( \"_OK\" ) , GTK_RESPONSE_OK ) ;\n gtk_dialog_set_default_response ( GTK_DIALOG ( dialog ) , GTK_RESPONSE_OK ) ;\n g_object_set_data_full ( G_OBJECT ( dialog ) , \"mime-action:file\" , nautilus_file_ref ( parameters -> file ) , ( GDestroyNotify ) nautilus_file_unref ) ;\n gtk_widget_show ( GTK_WIDGET ( dialog ) ) ;\n g_signal_connect ( dialog , \"response\" , G_CALLBACK ( choose_program ) , parameters ) ;\n g_free ( error_message ) ;\n g_free ( mime_type ) ;\n }"}
{"idx": 16950, "target": 0, "func": "static void encode_rd_sb_row ( VP9_COMP * cpi , const TileInfo * const tile , int mi_row , TOKENEXTRA * * tp ) {\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCKD * const xd = & cpi -> mb . e_mbd ;\n SPEED_FEATURES * const sf = & cpi -> sf ;\n int mi_col ;\n vpx_memset ( & xd -> left_context , 0 , sizeof ( xd -> left_context ) ) ;\n vpx_memset ( xd -> left_seg_context , 0 , sizeof ( xd -> left_seg_context ) ) ;\n for ( mi_col = tile -> mi_col_start ;\n mi_col < tile -> mi_col_end ;\n mi_col += MI_BLOCK_SIZE ) {\n int dummy_rate ;\n int64_t dummy_dist ;\n int i ;\n if ( sf -> adaptive_pred_interp_filter ) {\n for ( i = 0 ;\n i < 64 ;\n ++ i ) cpi -> leaf_tree [ i ] . pred_interp_filter = SWITCHABLE ;\n for ( i = 0 ;\n i < 64 ;\n ++ i ) {\n cpi -> pc_tree [ i ] . vertical [ 0 ] . pred_interp_filter = SWITCHABLE ;\n cpi -> pc_tree [ i ] . vertical [ 1 ] . pred_interp_filter = SWITCHABLE ;\n cpi -> pc_tree [ i ] . horizontal [ 0 ] . pred_interp_filter = SWITCHABLE ;\n cpi -> pc_tree [ i ] . horizontal [ 1 ] . pred_interp_filter = SWITCHABLE ;\n }\n }\n vp9_zero ( cpi -> mb . pred_mv ) ;\n cpi -> pc_root -> index = 0 ;\n if ( ( sf -> partition_search_type == SEARCH_PARTITION && sf -> use_lastframe_partitioning ) || sf -> partition_search_type == FIXED_PARTITION || sf -> partition_search_type == VAR_BASED_PARTITION || sf -> partition_search_type == VAR_BASED_FIXED_PARTITION ) {\n const int idx_str = cm -> mi_stride * mi_row + mi_col ;\n MODE_INFO * mi = cm -> mi + idx_str ;\n MODE_INFO * prev_mi = ( cm -> prev_mip + cm -> mi_stride + 1 + idx_str ) -> src_mi ;\n cpi -> mb . source_variance = UINT_MAX ;\n if ( sf -> partition_search_type == FIXED_PARTITION ) {\n set_offsets ( cpi , tile , mi_row , mi_col , BLOCK_64X64 ) ;\n set_fixed_partitioning ( cpi , tile , mi , mi_row , mi_col , sf -> always_this_block_size ) ;\n rd_use_partition ( cpi , tile , mi , tp , mi_row , mi_col , BLOCK_64X64 , & dummy_rate , & dummy_dist , 1 , cpi -> pc_root ) ;\n }\n else if ( cpi -> skippable_frame || sf -> partition_search_type == VAR_BASED_FIXED_PARTITION ) {\n BLOCK_SIZE bsize ;\n set_offsets ( cpi , tile , mi_row , mi_col , BLOCK_64X64 ) ;\n bsize = get_rd_var_based_fixed_partition ( cpi , mi_row , mi_col ) ;\n set_fixed_partitioning ( cpi , tile , mi , mi_row , mi_col , bsize ) ;\n rd_use_partition ( cpi , tile , mi , tp , mi_row , mi_col , BLOCK_64X64 , & dummy_rate , & dummy_dist , 1 , cpi -> pc_root ) ;\n }\n else if ( sf -> partition_search_type == VAR_BASED_PARTITION ) {\n choose_partitioning ( cpi , tile , mi_row , mi_col ) ;\n rd_use_partition ( cpi , tile , mi , tp , mi_row , mi_col , BLOCK_64X64 , & dummy_rate , & dummy_dist , 1 , cpi -> pc_root ) ;\n }\n else {\n GF_GROUP * gf_grp = & cpi -> twopass . gf_group ;\n int last_was_mid_sequence_overlay = 0 ;\n if ( ( cpi -> oxcf . pass == 2 ) && ( gf_grp -> index ) ) {\n if ( gf_grp -> update_type [ gf_grp -> index - 1 ] == OVERLAY_UPDATE ) last_was_mid_sequence_overlay = 1 ;\n }\n if ( ( cpi -> rc . frames_since_key % sf -> last_partitioning_redo_frequency ) == 0 || last_was_mid_sequence_overlay || cm -> prev_mi == 0 || cm -> show_frame == 0 || cm -> frame_type == KEY_FRAME || cpi -> rc . is_src_frame_alt_ref || ( ( sf -> use_lastframe_partitioning == LAST_FRAME_PARTITION_LOW_MOTION ) && sb_has_motion ( cm , prev_mi , sf -> lf_motion_threshold ) ) ) {\n if ( sf -> auto_min_max_partition_size ) {\n set_offsets ( cpi , tile , mi_row , mi_col , BLOCK_64X64 ) ;\n rd_auto_partition_range ( cpi , tile , mi_row , mi_col , & sf -> min_partition_size , & sf -> max_partition_size ) ;\n }\n rd_pick_partition ( cpi , tile , tp , mi_row , mi_col , BLOCK_64X64 , & dummy_rate , & dummy_dist , INT64_MAX , cpi -> pc_root ) ;\n }\n else {\n if ( sf -> constrain_copy_partition && sb_has_motion ( cm , prev_mi , sf -> lf_motion_threshold ) ) constrain_copy_partitioning ( cpi , tile , mi , prev_mi , mi_row , mi_col , BLOCK_16X16 ) ;\n else copy_partitioning ( cm , mi , prev_mi ) ;\n rd_use_partition ( cpi , tile , mi , tp , mi_row , mi_col , BLOCK_64X64 , & dummy_rate , & dummy_dist , 1 , cpi -> pc_root ) ;\n }\n }\n }\n else {\n if ( sf -> auto_min_max_partition_size ) {\n set_offsets ( cpi , tile , mi_row , mi_col , BLOCK_64X64 ) ;\n rd_auto_partition_range ( cpi , tile , mi_row , mi_col , & sf -> min_partition_size , & sf -> max_partition_size ) ;\n }\n rd_pick_partition ( cpi , tile , tp , mi_row , mi_col , BLOCK_64X64 , & dummy_rate , & dummy_dist , INT64_MAX , cpi -> pc_root ) ;\n }\n }\n }"}
{"idx": 16951, "target": 0, "func": "static void ImportGreenQuantum ( const Image * image , QuantumInfo * quantum_info , const MagickSizeType number_pixels , const unsigned char * magick_restrict p , Quantum * magick_restrict q , ExceptionInfo * exception ) {\n QuantumAny range ;\n register ssize_t x ;\n unsigned int pixel ;\n assert ( image != ( Image * ) NULL ) ;\n assert ( image -> signature == MagickCoreSignature ) ;\n switch ( quantum_info -> depth ) {\n case 8 : {\n unsigned char pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelGreen ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 16 : {\n unsigned short pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGreen ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGreen ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 32 : {\n unsigned int pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n float pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ClampToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGreen ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 64 : {\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n double pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ClampToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n default : {\n range = GetQuantumRange ( quantum_info -> depth ) ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n }"}
{"idx": 16952, "target": 0, "func": "static int zsethalftone5 ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n uint count ;\n gs_halftone_component * phtc = 0 ;\n gs_halftone_component * pc ;\n int code = 0 ;\n int j ;\n bool have_default ;\n gs_halftone * pht = 0 ;\n gx_device_halftone * pdht = 0 ;\n ref sprocs [ GS_CLIENT_COLOR_MAX_COMPONENTS + 1 ] ;\n ref tprocs [ GS_CLIENT_COLOR_MAX_COMPONENTS + 1 ] ;\n gs_memory_t * mem ;\n uint edepth = ref_stack_count ( & e_stack ) ;\n int npop = 2 ;\n int dict_enum ;\n ref rvalue [ 2 ] ;\n int cname , colorant_number ;\n byte * pname ;\n uint name_size ;\n int halftonetype , type = 0 ;\n gs_gstate * pgs = igs ;\n int space_index ;\n if ( ref_stack_count ( & o_stack ) < 2 ) return_error ( gs_error_stackunderflow ) ;\n check_type ( * op , t_dictionary ) ;\n check_type ( * ( op - 1 ) , t_dictionary ) ;\n dict_enum = dict_first ( op ) ;\n space_index = r_space_index ( op - 1 ) ;\n mem = ( gs_memory_t * ) idmemory -> spaces_indexed [ space_index ] ;\n check_type ( * op , t_dictionary ) ;\n check_dict_read ( * op ) ;\n check_type ( op [ - 1 ] , t_dictionary ) ;\n check_dict_read ( op [ - 1 ] ) ;\n code = dict_int_param ( op - 1 , \"HalftoneType\" , 1 , 100 , 0 , & type ) ;\n if ( code < 0 ) return code ;\n halftonetype = ( type == 2 || type == 4 ) ? ht_type_multiple_colorscreen : ht_type_multiple ;\n have_default = false ;\n for ( count = 0 ;\n ;\n ) {\n if ( ( dict_enum = dict_next ( op , dict_enum , rvalue ) ) == - 1 ) break ;\n if ( ! r_has_type ( & rvalue [ 0 ] , t_name ) ) continue ;\n if ( ! r_has_type ( & rvalue [ 1 ] , t_dictionary ) ) continue ;\n cname = name_index ( mem , & rvalue [ 0 ] ) ;\n code = gs_get_colorname_string ( mem , cname , & pname , & name_size ) ;\n if ( code < 0 ) break ;\n colorant_number = gs_cname_to_colorant_number ( pgs , pname , name_size , halftonetype ) ;\n if ( colorant_number < 0 ) continue ;\n else if ( colorant_number == GX_DEVICE_COLOR_MAX_COMPONENTS ) {\n if ( have_default ) return_error ( gs_error_rangecheck ) ;\n have_default = true ;\n }\n count ++ ;\n if ( count > GS_CLIENT_COLOR_MAX_COMPONENTS + 1 ) {\n code = gs_note_error ( gs_error_rangecheck ) ;\n break ;\n }\n }\n if ( count == 0 || ( halftonetype == ht_type_multiple && ! have_default ) ) code = gs_note_error ( gs_error_rangecheck ) ;\n if ( code >= 0 ) {\n check_estack ( 5 ) ;\n refset_null ( sprocs , count ) ;\n refset_null ( tprocs , count ) ;\n rc_alloc_struct_0 ( pht , gs_halftone , & st_halftone , imemory , pht = 0 , \".sethalftone5\" ) ;\n phtc = gs_alloc_struct_array ( mem , count , gs_halftone_component , & st_ht_component_element , \".sethalftone5\" ) ;\n rc_alloc_struct_0 ( pdht , gx_device_halftone , & st_device_halftone , imemory , pdht = 0 , \".sethalftone5\" ) ;\n if ( pht == 0 || phtc == 0 || pdht == 0 ) {\n j = 0 ;\n code = gs_note_error ( gs_error_VMerror ) ;\n }\n }\n if ( code >= 0 ) {\n dict_enum = dict_first ( op ) ;\n for ( j = 0 , pc = phtc ;\n ;\n ) {\n int type ;\n if ( ( dict_enum = dict_next ( op , dict_enum , rvalue ) ) == - 1 ) break ;\n if ( ! r_has_type ( & rvalue [ 0 ] , t_name ) ) continue ;\n if ( ! r_has_type ( & rvalue [ 1 ] , t_dictionary ) ) continue ;\n cname = name_index ( mem , & rvalue [ 0 ] ) ;\n code = gs_get_colorname_string ( mem , cname , & pname , & name_size ) ;\n if ( code < 0 ) break ;\n colorant_number = gs_cname_to_colorant_number ( pgs , pname , name_size , halftonetype ) ;\n if ( colorant_number < 0 ) continue ;\n pc -> cname = cname ;\n pc -> comp_number = colorant_number ;\n check_dict_read ( rvalue [ 1 ] ) ;\n if ( dict_int_param ( & rvalue [ 1 ] , \"HalftoneType\" , 1 , 7 , 0 , & type ) < 0 ) {\n code = gs_note_error ( gs_error_typecheck ) ;\n break ;\n }\n switch ( type ) {\n default : code = gs_note_error ( gs_error_rangecheck ) ;\n break ;\n case 1 : code = dict_spot_params ( & rvalue [ 1 ] , & pc -> params . spot , sprocs + j , tprocs + j , mem ) ;\n pc -> params . spot . screen . spot_function = spot1_dummy ;\n pc -> type = ht_type_spot ;\n break ;\n case 3 : code = dict_threshold_params ( & rvalue [ 1 ] , & pc -> params . threshold , tprocs + j ) ;\n pc -> type = ht_type_threshold ;\n break ;\n case 7 : code = dict_threshold2_params ( & rvalue [ 1 ] , & pc -> params . threshold2 , tprocs + j , imemory ) ;\n pc -> type = ht_type_threshold2 ;\n break ;\n }\n if ( code < 0 ) break ;\n pc ++ ;\n j ++ ;\n }\n }\n if ( code >= 0 ) {\n pht -> type = halftonetype ;\n pht -> params . multiple . components = phtc ;\n pht -> params . multiple . num_comp = j ;\n pht -> params . multiple . get_colorname_string = gs_get_colorname_string ;\n code = gs_sethalftone_prepare ( igs , pht , pdht ) ;\n }\n if ( code >= 0 ) {\n dict_enum = dict_first ( op ) ;\n for ( pc = phtc ;\n ;\n ) {\n if ( ( dict_enum = dict_next ( op , dict_enum , rvalue ) ) == - 1 ) break ;\n if ( ! r_has_type ( & rvalue [ 0 ] , t_name ) ) continue ;\n if ( ! r_has_type ( & rvalue [ 1 ] , t_dictionary ) ) continue ;\n cname = name_index ( mem , & rvalue [ 0 ] ) ;\n code = gs_get_colorname_string ( mem , cname , & pname , & name_size ) ;\n if ( code < 0 ) break ;\n colorant_number = gs_cname_to_colorant_number ( pgs , pname , name_size , halftonetype ) ;\n if ( colorant_number < 0 ) continue ;\n if ( pc -> type == ht_type_spot ) {\n code = dict_spot_results ( i_ctx_p , & rvalue [ 1 ] , & pc -> params . spot ) ;\n if ( code < 0 ) break ;\n }\n pc ++ ;\n }\n }\n if ( code >= 0 ) {\n uint odepth = ref_stack_count ( & o_stack ) ;\n ref odict , odict5 ;\n odict = op [ - 1 ] ;\n odict5 = * op ;\n pop ( 2 ) ;\n op = osp ;\n esp += 5 ;\n make_mark_estack ( esp - 4 , es_other , sethalftone_cleanup ) ;\n esp [ - 3 ] = odict ;\n make_istruct ( esp - 2 , 0 , pht ) ;\n make_istruct ( esp - 1 , 0 , pdht ) ;\n make_op_estack ( esp , sethalftone_finish ) ;\n for ( j = 0 ;\n j < count ;\n j ++ ) {\n gx_ht_order * porder = NULL ;\n if ( pdht -> components == 0 ) porder = & pdht -> order ;\n else {\n int k ;\n int comp_number = phtc [ j ] . comp_number ;\n for ( k = 0 ;\n k < count ;\n k ++ ) {\n if ( pdht -> components [ k ] . comp_number == comp_number ) {\n porder = & pdht -> components [ k ] . corder ;\n break ;\n }\n }\n }\n switch ( phtc [ j ] . type ) {\n case ht_type_spot : code = zscreen_enum_init ( i_ctx_p , porder , & phtc [ j ] . params . spot . screen , & sprocs [ j ] , 0 , 0 , space_index ) ;\n if ( code < 0 ) break ;\n case ht_type_threshold : if ( ! r_has_type ( tprocs + j , t__invalid ) ) {\n check_ostack ( zcolor_remap_one_ostack ) ;\n check_estack ( zcolor_remap_one_estack ) ;\n code = zcolor_remap_one ( i_ctx_p , tprocs + j , porder -> transfer , igs , zcolor_remap_one_finish ) ;\n op = osp ;\n }\n break ;\n default : ;\n }\n if ( code < 0 ) {\n ref_stack_pop_to ( & o_stack , odepth ) ;\n ref_stack_pop_to ( & e_stack , edepth ) ;\n op = osp ;\n op [ - 1 ] = odict ;\n * op = odict5 ;\n break ;\n }\n npop = 0 ;\n }\n }\n if ( code < 0 ) {\n gs_free_object ( mem , pdht , \".sethalftone5\" ) ;\n gs_free_object ( mem , phtc , \".sethalftone5\" ) ;\n gs_free_object ( mem , pht , \".sethalftone5\" ) ;\n return code ;\n }\n pop ( npop ) ;\n return ( ref_stack_count ( & e_stack ) > edepth ? o_push_estack : 0 ) ;\n }"}
{"idx": 16953, "target": 0, "func": "static int search_aliases ( Operation * op , SlapReply * rs , ID e_id , IdScopes * isc , MDB_cursor * mci , ID * stack ) {\n ID * aliases , * curscop , * visited , * newsubs , * oldsubs , * tmp ;\n ID cursora , ida , cursoro , ido ;\n Entry * matched , * a ;\n struct berval bv_alias = BER_BVC ( \"alias\" ) ;\n AttributeAssertion aa_alias = ATTRIBUTEASSERTION_INIT ;\n Filter af ;\n aliases = stack ;\n curscop = aliases + MDB_IDL_DB_SIZE ;\n visited = curscop + MDB_IDL_DB_SIZE ;\n newsubs = visited + MDB_IDL_DB_SIZE ;\n oldsubs = newsubs + MDB_IDL_DB_SIZE ;\n tmp = oldsubs + MDB_IDL_DB_SIZE ;\n af . f_choice = LDAP_FILTER_EQUALITY ;\n af . f_ava = & aa_alias ;\n af . f_av_desc = slap_schema . si_ad_objectClass ;\n af . f_av_value = bv_alias ;\n af . f_next = NULL ;\n MDB_IDL_ZERO ( aliases ) ;\n rs -> sr_err = mdb_filter_candidates ( op , isc -> mt , & af , aliases , curscop , visited ) ;\n if ( rs -> sr_err != LDAP_SUCCESS || MDB_IDL_IS_ZERO ( aliases ) ) {\n return rs -> sr_err ;\n }\n oldsubs [ 0 ] = 1 ;\n oldsubs [ 1 ] = e_id ;\n MDB_IDL_ZERO ( visited ) ;\n MDB_IDL_ZERO ( newsubs ) ;\n cursoro = 0 ;\n ido = mdb_idl_first ( oldsubs , & cursoro ) ;\n for ( ;\n ;\n ) {\n rs -> sr_err = mdb_idscope ( op , isc -> mt , e_id , aliases , curscop ) ;\n cursora = 0 ;\n for ( ida = mdb_idl_first ( curscop , & cursora ) ;\n ida != NOID ;\n ida = mdb_idl_next ( curscop , & cursora ) ) {\n rs -> sr_err = mdb_id2entry ( op , mci , ida , & a ) ;\n if ( rs -> sr_err != LDAP_SUCCESS ) {\n continue ;\n }\n if ( ! is_entry_alias ( a ) ) {\n mdb_entry_return ( op , a ) ;\n continue ;\n }\n MDB_IDL_ZERO ( tmp ) ;\n a = deref_base ( op , rs , a , & matched , isc -> mt , tmp , visited ) ;\n if ( a ) {\n ID2 mid ;\n mid . mid = a -> e_id ;\n mid . mval . mv_data = NULL ;\n if ( op -> ors_scope == LDAP_SCOPE_SUBTREE ) {\n isc -> id = a -> e_id ;\n if ( mdb_idscopechk ( op , isc ) ) goto skip ;\n }\n if ( mdb_id2l_insert ( isc -> scopes , & mid ) == 0 ) {\n mdb_idl_insert ( newsubs , a -> e_id ) ;\n }\n skip : mdb_entry_return ( op , a ) ;\n }\n else if ( matched ) {\n mdb_entry_return ( op , matched ) ;\n rs -> sr_text = NULL ;\n rs -> sr_err = 0 ;\n }\n }\n if ( op -> ors_scope == LDAP_SCOPE_ONELEVEL ) break ;\n nextido : ido = mdb_idl_next ( oldsubs , & cursoro ) ;\n if ( ido == NOID ) {\n if ( MDB_IDL_IS_ZERO ( newsubs ) ) break ;\n MDB_IDL_CPY ( oldsubs , newsubs ) ;\n MDB_IDL_ZERO ( newsubs ) ;\n cursoro = 0 ;\n ido = mdb_idl_first ( oldsubs , & cursoro ) ;\n }\n {\n MDB_val edata ;\n rs -> sr_err = mdb_id2edata ( op , mci , ido , & edata ) ;\n if ( rs -> sr_err != MDB_SUCCESS ) {\n goto nextido ;\n }\n e_id = ido ;\n }\n }\n return rs -> sr_err ;\n }"}
{"idx": 16954, "target": 0, "func": "GType hb_gobject_ ## name ## _get_type ( void ) \\ {\n static gsize type_id = 0 ;\n if ( g_once_init_enter ( & type_id ) ) {\n GType id = g_boxed_type_register_static ( g_intern_static_string ( \"hb_\" # name \"_t\" ) , ( GBoxedCopyFunc ) copy_func , ( GBoxedFreeFunc ) free_func ) ;\n g_once_init_leave ( & type_id , id ) ;\n }\n return type_id ;\n \\ }\n # define HB_DEFINE_OBJECT_TYPE ( name ) HB_DEFINE_BOXED_TYPE ( name , hb_ ## name ## _reference , hb_ ## name ## _destroy ) ;\n # define HB_DEFINE_VALUE_TYPE ( name ) static hb_ ## name ## _t * _hb_ ## name ## _reference ( const hb_ ## name ## _t * l ) {\n hb_ ## name ## _t * c = ( hb_ ## name ## _t * ) calloc ( 1 , sizeof ( hb_ ## name ## _t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * l ;\n return c ;\n }\n static void _hb_ ## name ## _destroy ( hb_ ## name ## _t * l ) {\n free ( l ) ;\n }\n HB_DEFINE_BOXED_TYPE ( name , _hb_ ## name ## _reference , _hb_ ## name ## _destroy ) ;\n HB_DEFINE_OBJECT_TYPE ( buffer ) HB_DEFINE_OBJECT_TYPE ( blob ) HB_DEFINE_OBJECT_TYPE ( face ) HB_DEFINE_OBJECT_TYPE ( font ) HB_DEFINE_OBJECT_TYPE ( font_funcs ) HB_DEFINE_OBJECT_TYPE ( set ) HB_DEFINE_OBJECT_TYPE ( shape_plan ) HB_DEFINE_OBJECT_TYPE ( unicode_funcs ) HB_DEFINE_VALUE_TYPE ( feature ) HB_DEFINE_VALUE_TYPE ( glyph_info ) HB_DEFINE_VALUE_TYPE ( glyph_position )"}
{"idx": 16955, "target": 0, "func": "int gs_main_run_string_continue ( gs_main_instance * minst , const char * str , uint length , int user_errors , int * pexit_code , ref * perror_object ) {\n ref rstr ;\n if ( length == 0 ) return 0 ;\n make_const_string ( & rstr , avm_foreign | a_readonly , length , ( const byte * ) str ) ;\n return gs_main_interpret ( minst , & rstr , user_errors , pexit_code , perror_object ) ;\n }"}
{"idx": 16956, "target": 0, "func": "static inline void decode_bytes_and_gain ( COOKContext * q , COOKSubpacket * p , const uint8_t * inbuffer , cook_gains * gains_ptr ) {\n int offset ;\n offset = decode_bytes ( inbuffer , q -> decoded_bytes_buffer , p -> bits_per_subpacket / 8 ) ;\n init_get_bits ( & q -> gb , q -> decoded_bytes_buffer + offset , p -> bits_per_subpacket ) ;\n decode_gain_info ( & q -> gb , gains_ptr -> now ) ;\n FFSWAP ( int * , gains_ptr -> now , gains_ptr -> previous ) ;\n }"}
{"idx": 16957, "target": 0, "func": "static void report_type_length_mismatch ( proto_tree * tree , const gchar * descr , int length , gboolean is_error ) {\n if ( is_error ) {\n expert_add_info_format ( NULL , tree , & ei_type_length_mismatch_error , \"Trying to fetch %s with length %d\" , descr , length ) ;\n }\n else {\n expert_add_info_format ( NULL , tree , & ei_type_length_mismatch_warn , \"Trying to fetch %s with length %d\" , descr , length ) ;\n }\n if ( is_error ) {\n THROW ( ReportedBoundsError ) ;\n }\n }"}
{"idx": 16958, "target": 0, "func": "GType hb_gobject_ ## name ## _get_type ( void ) \\ {\n static gsize type_id = 0 ;\n if ( g_once_init_enter ( & type_id ) ) {\n GType id = g_boxed_type_register_static ( g_intern_static_string ( \"hb_\" # name \"_t\" ) , ( GBoxedCopyFunc ) copy_func , ( GBoxedFreeFunc ) free_func ) ;\n g_once_init_leave ( & type_id , id ) ;\n }\n return type_id ;\n \\ }\n # define HB_DEFINE_OBJECT_TYPE ( name ) HB_DEFINE_BOXED_TYPE ( name , hb_ ## name ## _reference , hb_ ## name ## _destroy ) ;\n # define HB_DEFINE_VALUE_TYPE ( name ) static hb_ ## name ## _t * _hb_ ## name ## _reference ( const hb_ ## name ## _t * l ) {\n hb_ ## name ## _t * c = ( hb_ ## name ## _t * ) calloc ( 1 , sizeof ( hb_ ## name ## _t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * l ;\n return c ;\n }\n static void _hb_ ## name ## _destroy ( hb_ ## name ## _t * l ) {\n free ( l ) ;\n }\n HB_DEFINE_BOXED_TYPE ( name , _hb_ ## name ## _reference , _hb_ ## name ## _destroy ) ;\n HB_DEFINE_OBJECT_TYPE ( buffer ) HB_DEFINE_OBJECT_TYPE ( blob ) HB_DEFINE_OBJECT_TYPE ( face ) HB_DEFINE_OBJECT_TYPE ( font ) HB_DEFINE_OBJECT_TYPE ( font_funcs ) HB_DEFINE_OBJECT_TYPE ( set ) HB_DEFINE_OBJECT_TYPE ( shape_plan ) HB_DEFINE_OBJECT_TYPE ( unicode_funcs ) HB_DEFINE_VALUE_TYPE ( feature ) HB_DEFINE_VALUE_TYPE ( glyph_info ) HB_DEFINE_VALUE_TYPE ( glyph_position ) HB_DEFINE_VALUE_TYPE ( segment_properties ) HB_DEFINE_VALUE_TYPE ( user_data_key )"}
{"idx": 16959, "target": 0, "func": "static gcry_err_code_t oaep_decode ( unsigned char * * r_result , size_t * r_resultlen , unsigned int nbits , int algo , gcry_mpi_t value , const unsigned char * label , size_t labellen ) {\n gcry_err_code_t rc ;\n unsigned char * frame = NULL ;\n unsigned char * masked_seed ;\n unsigned char * masked_db ;\n unsigned char * seed = NULL ;\n unsigned char * db ;\n unsigned char * lhash = NULL ;\n size_t nframe ;\n size_t hlen ;\n size_t db_len ;\n size_t nkey = ( nbits + 7 ) / 8 ;\n int failed = 0 ;\n size_t n ;\n * r_result = NULL ;\n if ( ! label || ! labellen ) {\n label = ( const unsigned char * ) \"\" ;\n labellen = 0 ;\n }\n hlen = gcry_md_get_algo_dlen ( algo ) ;\n lhash = gcry_malloc ( hlen ) ;\n if ( ! lhash ) return gpg_err_code_from_syserror ( ) ;\n gcry_md_hash_buffer ( algo , lhash , label , labellen ) ;\n rc = octet_string_from_mpi ( & frame , NULL , value , nkey ) ;\n if ( rc ) {\n gcry_free ( lhash ) ;\n return GPG_ERR_ENCODING_PROBLEM ;\n }\n nframe = nkey ;\n if ( nframe < 2 * hlen + 2 ) {\n gcry_free ( frame ) ;\n gcry_free ( lhash ) ;\n return GPG_ERR_ENCODING_PROBLEM ;\n }\n seed = gcry_malloc_secure ( nframe - 1 ) ;\n if ( ! seed ) {\n rc = gpg_err_code_from_syserror ( ) ;\n gcry_free ( frame ) ;\n gcry_free ( lhash ) ;\n return rc ;\n }\n db = seed + hlen ;\n masked_seed = frame + 1 ;\n masked_db = frame + 1 + hlen ;\n db_len = nframe - 1 - hlen ;\n if ( mgf1 ( seed , hlen , masked_db , db_len , algo ) ) failed = 1 ;\n for ( n = 0 ;\n n < hlen ;\n n ++ ) seed [ n ] ^= masked_seed [ n ] ;\n if ( mgf1 ( db , db_len , seed , hlen , algo ) ) failed = 1 ;\n for ( n = 0 ;\n n < db_len ;\n n ++ ) db [ n ] ^= masked_db [ n ] ;\n if ( memcmp ( lhash , db , hlen ) ) failed = 1 ;\n for ( n = hlen ;\n n < db_len ;\n n ++ ) if ( db [ n ] == 0x01 ) break ;\n if ( n == db_len ) failed = 1 ;\n if ( frame [ 0 ] ) failed = 1 ;\n gcry_free ( lhash ) ;\n gcry_free ( frame ) ;\n if ( failed ) {\n gcry_free ( seed ) ;\n return GPG_ERR_ENCODING_PROBLEM ;\n }\n n ++ ;\n memmove ( seed , db + n , db_len - n ) ;\n * r_result = seed ;\n * r_resultlen = db_len - n ;\n seed = NULL ;\n if ( DBG_CIPHER ) log_printhex ( \"value extracted from OAEP encoded data\" , * r_result , * r_resultlen ) ;\n return 0 ;\n }"}
{"idx": 16960, "target": 0, "func": "static void pxa2xx_ssp_class_init ( ObjectClass * klass , void * data ) {\n SysBusDeviceClass * sdc = SYS_BUS_DEVICE_CLASS ( klass ) ;\n sdc -> init = pxa2xx_ssp_init ;\n }"}
{"idx": 16961, "target": 0, "func": "static void eeprom24c0x_write ( int scl , int sda ) {\n if ( eeprom . scl && scl && ( eeprom . sda != sda ) ) {\n logout ( \"%u: scl = %u->%u, sda = %u->%u i2c %s\\n\" , eeprom . tick , eeprom . scl , scl , eeprom . sda , sda , sda ? \"stop\" : \"start\" ) ;\n if ( ! sda ) {\n eeprom . tick = 1 ;\n eeprom . command = 0 ;\n }\n }\n else if ( eeprom . tick == 0 && ! eeprom . ack ) {\n logout ( \"%u: scl = %u->%u, sda = %u->%u wait for i2c start\\n\" , eeprom . tick , eeprom . scl , scl , eeprom . sda , sda ) ;\n }\n else if ( ! eeprom . scl && scl ) {\n logout ( \"%u: scl = %u->%u, sda = %u->%u trigger bit\\n\" , eeprom . tick , eeprom . scl , scl , eeprom . sda , sda ) ;\n if ( eeprom . ack ) {\n logout ( \"\\ti2c ack bit = 0\\n\" ) ;\n sda = 0 ;\n eeprom . ack = 0 ;\n }\n else if ( eeprom . sda == sda ) {\n uint8_t bit = ( sda != 0 ) ;\n logout ( \"\\ti2c bit = %d\\n\" , bit ) ;\n if ( eeprom . tick < 9 ) {\n eeprom . command <<= 1 ;\n eeprom . command += bit ;\n eeprom . tick ++ ;\n if ( eeprom . tick == 9 ) {\n logout ( \"\\tcommand 0x%04x, %s\\n\" , eeprom . command , bit ? \"read\" : \"write\" ) ;\n eeprom . ack = 1 ;\n }\n }\n else if ( eeprom . tick < 17 ) {\n if ( eeprom . command & 1 ) {\n sda = ( ( eeprom . data & 0x80 ) != 0 ) ;\n }\n eeprom . address <<= 1 ;\n eeprom . address += bit ;\n eeprom . tick ++ ;\n eeprom . data <<= 1 ;\n if ( eeprom . tick == 17 ) {\n eeprom . data = eeprom . contents [ eeprom . address ] ;\n logout ( \"\\taddress 0x%04x, data 0x%02x\\n\" , eeprom . address , eeprom . data ) ;\n eeprom . ack = 1 ;\n eeprom . tick = 0 ;\n }\n }\n else if ( eeprom . tick >= 17 ) {\n sda = 0 ;\n }\n }\n else {\n logout ( \"\\tsda changed with raising scl\\n\" ) ;\n }\n }\n else {\n logout ( \"%u: scl = %u->%u, sda = %u->%u\\n\" , eeprom . tick , eeprom . scl , scl , eeprom . sda , sda ) ;\n }\n eeprom . scl = scl ;\n eeprom . sda = sda ;\n }"}
{"idx": 16962, "target": 0, "func": "SPL_METHOD ( SplFileInfo , func_name ) \\ {\n \\ spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n \\ zend_error_handling error_handling ;\n \\ if ( zend_parse_parameters_none ( ) == FAILURE ) {\n \\ return ;\n \\ }\n \\ \\ zend_replace_error_handling ( EH_THROW , spl_ce_RuntimeException , & error_handling TSRMLS_CC ) ;\n \\ spl_filesystem_object_get_file_name ( intern TSRMLS_CC ) ;\n \\ php_stat ( intern -> file_name , intern -> file_name_len , func_num , return_value TSRMLS_CC ) ;\n \\ zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n \\ }\n FileInfoFunction ( getPerms , FS_PERMS ) FileInfoFunction ( getInode , FS_INODE ) FileInfoFunction ( getSize , FS_SIZE ) FileInfoFunction ( getOwner , FS_OWNER )"}
{"idx": 16963, "target": 0, "func": "int gx_device_delete_output_file ( const gx_device * dev , const char * fname ) {\n gs_parsed_file_name_t parsed ;\n const char * fmt ;\n char * pfname = ( char * ) gs_alloc_bytes ( dev -> memory , gp_file_name_sizeof , \"gx_device_delete_output_file(pfname)\" ) ;\n int code ;\n if ( pfname == NULL ) {\n code = gs_note_error ( gs_error_VMerror ) ;\n goto done ;\n }\n code = gx_parse_output_file_name ( & parsed , & fmt , fname , strlen ( fname ) , dev -> memory ) ;\n if ( code < 0 ) {\n goto done ;\n }\n if ( parsed . iodev && ! strcmp ( parsed . iodev -> dname , \"%stdout%\" ) ) goto done ;\n if ( fmt ) {\n long count1 = dev -> PageCount + 1 ;\n while ( * fmt != 'l' && * fmt != '%' ) -- fmt ;\n if ( * fmt == 'l' ) gs_sprintf ( pfname , parsed . fname , count1 ) ;\n else gs_sprintf ( pfname , parsed . fname , ( int ) count1 ) ;\n }\n else if ( parsed . len && strchr ( parsed . fname , '%' ) ) gs_sprintf ( pfname , parsed . fname ) ;\n else pfname [ 0 ] = 0 ;\n if ( pfname [ 0 ] ) {\n parsed . fname = pfname ;\n parsed . len = strlen ( parsed . fname ) ;\n }\n if ( parsed . iodev ) code = parsed . iodev -> procs . delete_file ( ( gx_io_device * ) ( & parsed . iodev ) , ( const char * ) parsed . fname ) ;\n else code = gs_note_error ( gs_error_invalidfileaccess ) ;\n done : if ( pfname != NULL ) gs_free_object ( dev -> memory , pfname , \"gx_device_delete_output_file(pfname)\" ) ;\n return ( code ) ;\n }"}
{"idx": 16964, "target": 0, "func": "static int main_input_decompress_setup ( const main_extcomp * decomp , main_file * ifile , uint8_t * input_buf , usize_t input_bufsize , uint8_t * pipe_buf , usize_t pipe_bufsize , usize_t pipe_avail , size_t * nread ) {\n int outpipefd [ 2 ] , inpipefd [ 2 ] ;\n int input_fd = - 1 ;\n pid_t decomp_id , copier_id ;\n int ret ;\n outpipefd [ 0 ] = outpipefd [ 1 ] = - 1 ;\n inpipefd [ 0 ] = inpipefd [ 1 ] = - 1 ;\n if ( pipe ( outpipefd ) || pipe ( inpipefd ) ) {\n XPR ( NT \"pipe failed: %s\\n\" , xd3_mainerror ( ret = get_errno ( ) ) ) ;\n goto pipe_cleanup ;\n }\n if ( ( decomp_id = fork ( ) ) < 0 ) {\n XPR ( NT \"fork failed: %s\\n\" , xd3_mainerror ( ret = get_errno ( ) ) ) ;\n goto pipe_cleanup ;\n }\n if ( decomp_id == 0 ) {\n if ( option_verbose > 2 ) {\n XPR ( NT \"external decompression pid %d\\n\" , getpid ( ) ) ;\n }\n if ( dup2 ( outpipefd [ PIPE_WRITE_FD ] , STDOUT_FILENO ) < 0 || dup2 ( inpipefd [ PIPE_READ_FD ] , STDIN_FILENO ) < 0 || close ( outpipefd [ PIPE_READ_FD ] ) || close ( outpipefd [ PIPE_WRITE_FD ] ) || close ( inpipefd [ PIPE_READ_FD ] ) || close ( inpipefd [ PIPE_WRITE_FD ] ) || execlp ( decomp -> decomp_cmdname , decomp -> decomp_cmdname , decomp -> decomp_options , option_force2 ? \"-f\" : NULL , NULL ) ) {\n XPR ( NT \"child process %s failed to execute: %s\\n\" , decomp -> decomp_cmdname , xd3_mainerror ( get_errno ( ) ) ) ;\n }\n _exit ( 127 ) ;\n }\n XD3_ASSERT ( num_subprocs < MAX_SUBPROCS ) ;\n ext_subprocs [ num_subprocs ++ ] = decomp_id ;\n if ( ( copier_id = fork ( ) ) < 0 ) {\n XPR ( NT \"fork failed: %s\\n\" , xd3_mainerror ( ret = get_errno ( ) ) ) ;\n goto pipe_cleanup ;\n }\n if ( copier_id == 0 ) {\n int exitval = 0 ;\n if ( option_verbose > 2 ) {\n XPR ( NT \"child pipe-copier pid %d\\n\" , getpid ( ) ) ;\n }\n if ( close ( inpipefd [ PIPE_READ_FD ] ) || close ( outpipefd [ PIPE_READ_FD ] ) || close ( outpipefd [ PIPE_WRITE_FD ] ) || main_pipe_copier ( pipe_buf , pipe_bufsize , pipe_avail , ifile , inpipefd [ PIPE_WRITE_FD ] ) || close ( inpipefd [ PIPE_WRITE_FD ] ) ) {\n XPR ( NT \"child copier process failed: %s\\n\" , xd3_mainerror ( get_errno ( ) ) ) ;\n exitval = 1 ;\n }\n _exit ( exitval ) ;\n }\n XD3_ASSERT ( num_subprocs < MAX_SUBPROCS ) ;\n ext_subprocs [ num_subprocs ++ ] = copier_id ;\n input_fd = dup ( outpipefd [ PIPE_READ_FD ] ) ;\n if ( input_fd < 0 || main_file_close ( ifile ) || close ( outpipefd [ PIPE_READ_FD ] ) || close ( outpipefd [ PIPE_WRITE_FD ] ) || close ( inpipefd [ PIPE_READ_FD ] ) || close ( inpipefd [ PIPE_WRITE_FD ] ) ) {\n XPR ( NT \"dup/close failed: %s\\n\" , xd3_mainerror ( ret = get_errno ( ) ) ) ;\n goto pipe_cleanup ;\n }\n # if XD3_STDIO if ( ( ifile -> file = fdopen ( input_fd , \"r\" ) ) == NULL ) {\n XPR ( NT \"fdopen failed: %s\\n\" , xd3_mainerror ( ret = get_errno ( ) ) ) ;\n goto pipe_cleanup ;\n }\n # elif XD3_POSIX ifile -> file = input_fd ;\n # endif ifile -> compressor = decomp ;\n return main_file_read ( ifile , input_buf , input_bufsize , nread , \"input decompression failed\" ) ;\n pipe_cleanup : close ( input_fd ) ;\n close ( outpipefd [ PIPE_READ_FD ] ) ;\n close ( outpipefd [ PIPE_WRITE_FD ] ) ;\n close ( inpipefd [ PIPE_READ_FD ] ) ;\n close ( inpipefd [ PIPE_WRITE_FD ] ) ;\n return ret ;\n }"}
{"idx": 16965, "target": 0, "func": "static int do_fail ( xd3_stream * stream , const char * buf ) {\n int ret ;\n ret = system ( buf ) ;\n if ( ! WIFEXITED ( ret ) || WEXITSTATUS ( ret ) != 1 ) {\n stream -> msg = \"command should have not succeeded\" ;\n XPR ( NT \"command was %s\\n\" , buf ) ;\n return XD3_INTERNAL ;\n }\n return 0 ;\n }"}
{"idx": 16966, "target": 0, "func": "int xmlHashRemoveEntry ( xmlHashTablePtr table , const xmlChar * name , xmlHashDeallocator f ) {\n return ( xmlHashRemoveEntry3 ( table , name , NULL , NULL , f ) ) ;\n }"}
{"idx": 16967, "target": 0, "func": "int gdev_x_get_params ( gx_device * dev , gs_param_list * plist ) {\n gx_device_X * xdev = ( gx_device_X * ) dev ;\n int code = gx_default_get_params ( dev , plist ) ;\n long id = ( long ) xdev -> pwin ;\n if ( code < 0 || ( code = param_write_long ( plist , \"WindowID\" , & id ) ) < 0 || ( code = param_write_bool ( plist , \".IsPageDevice\" , & xdev -> IsPageDevice ) ) < 0 || ( code = param_write_int ( plist , \"MaxTempPixmap\" , & xdev -> MaxTempPixmap ) ) < 0 || ( code = param_write_int ( plist , \"MaxTempImage\" , & xdev -> MaxTempImage ) ) < 0 ) DO_NOTHING ;\n return code ;\n }"}
{"idx": 16968, "target": 1, "func": "static VALUE cState_space_set ( VALUE self , VALUE space ) {\n unsigned long len ;\n GET_STATE ( self ) ;\n Check_Type ( space , T_STRING ) ;\n len = RSTRING_LEN ( space ) ;\n if ( len == 0 ) {\n if ( state -> space ) {\n ruby_xfree ( state -> space ) ;\n state -> space = NULL ;\n state -> space_len = 0 ;\n }\n }\n else {\n if ( state -> space ) ruby_xfree ( state -> space ) ;\n state -> space = strdup ( RSTRING_PTR ( space ) ) ;\n state -> space_len = len ;\n }\n return Qnil ;\n }"}
{"idx": 16969, "target": 0, "func": "static int rtp_packetize_split ( sout_stream_id_sys_t * id , block_t * in ) {\n int i_max = rtp_mtu ( id ) ;\n int i_count = ( in -> i_buffer + i_max - 1 ) / i_max ;\n uint8_t * p_data = in -> p_buffer ;\n int i_data = in -> i_buffer ;\n int i ;\n for ( i = 0 ;\n i < i_count ;\n i ++ ) {\n int i_payload = __MIN ( i_max , i_data ) ;\n block_t * out = block_Alloc ( 12 + i_payload ) ;\n rtp_packetize_common ( id , out , ( i == i_count - 1 ) , ( in -> i_pts > VLC_TS_INVALID ? in -> i_pts : in -> i_dts ) ) ;\n memcpy ( & out -> p_buffer [ 12 ] , p_data , i_payload ) ;\n out -> i_dts = in -> i_dts + i * in -> i_length / i_count ;\n out -> i_length = in -> i_length / i_count ;\n rtp_packetize_send ( id , out ) ;\n p_data += i_payload ;\n i_data -= i_payload ;\n }\n block_Release ( in ) ;\n return VLC_SUCCESS ;\n }"}
{"idx": 16970, "target": 0, "func": "static int adx_decode ( ADXContext * c , int16_t * out , int offset , const uint8_t * in , int ch ) {\n ADXChannelState * prev = & c -> prev [ ch ] ;\n GetBitContext gb ;\n int scale = AV_RB16 ( in ) ;\n int i ;\n int s0 , s1 , s2 , d ;\n if ( scale & 0x8000 ) return - 1 ;\n init_get_bits ( & gb , in + 2 , ( BLOCK_SIZE - 2 ) * 8 ) ;\n out += offset ;\n s1 = prev -> s1 ;\n s2 = prev -> s2 ;\n for ( i = 0 ;\n i < BLOCK_SAMPLES ;\n i ++ ) {\n d = get_sbits ( & gb , 4 ) ;\n s0 = ( ( d << COEFF_BITS ) * scale + c -> coeff [ 0 ] * s1 + c -> coeff [ 1 ] * s2 ) >> COEFF_BITS ;\n s2 = s1 ;\n s1 = av_clip_int16 ( s0 ) ;\n * out ++ = s1 ;\n }\n prev -> s1 = s1 ;\n prev -> s2 = s2 ;\n return 0 ;\n }"}
{"idx": 16971, "target": 0, "func": "MYSQL_STMT * open_cursor ( const char * query ) {\n int rc ;\n const ulong type = ( ulong ) CURSOR_TYPE_READ_ONLY ;\n MYSQL_STMT * stmt = mysql_stmt_init ( mysql ) ;\n rc = mysql_stmt_prepare ( stmt , query , strlen ( query ) ) ;\n check_execute ( stmt , rc ) ;\n mysql_stmt_attr_set ( stmt , STMT_ATTR_CURSOR_TYPE , ( void * ) & type ) ;\n return stmt ;\n }"}
{"idx": 16972, "target": 0, "func": "static int alloc_frame_buffer ( MpegEncContext * s , Picture * pic ) {\n int r , ret ;\n if ( s -> avctx -> hwaccel ) {\n assert ( ! pic -> hwaccel_picture_private ) ;\n if ( s -> avctx -> hwaccel -> priv_data_size ) {\n pic -> hwaccel_picture_private = av_mallocz ( s -> avctx -> hwaccel -> priv_data_size ) ;\n if ( ! pic -> hwaccel_picture_private ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"alloc_frame_buffer() failed (hwaccel private data allocation)\\n\" ) ;\n return - 1 ;\n }\n }\n }\n pic -> tf . f = & pic -> f ;\n if ( s -> codec_id != AV_CODEC_ID_WMV3IMAGE && s -> codec_id != AV_CODEC_ID_VC1IMAGE && s -> codec_id != AV_CODEC_ID_MSS2 ) r = ff_thread_get_buffer ( s -> avctx , & pic -> tf , pic -> reference ? AV_GET_BUFFER_FLAG_REF : 0 ) ;\n else {\n pic -> f . width = s -> avctx -> width ;\n pic -> f . height = s -> avctx -> height ;\n pic -> f . format = s -> avctx -> pix_fmt ;\n r = avcodec_default_get_buffer2 ( s -> avctx , & pic -> f , 0 ) ;\n }\n if ( r < 0 || ! pic -> f . data [ 0 ] ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"get_buffer() failed (%d %p)\\n\" , r , pic -> f . data [ 0 ] ) ;\n av_freep ( & pic -> hwaccel_picture_private ) ;\n return - 1 ;\n }\n if ( s -> linesize && ( s -> linesize != pic -> f . linesize [ 0 ] || s -> uvlinesize != pic -> f . linesize [ 1 ] ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"get_buffer() failed (stride changed)\\n\" ) ;\n ff_mpeg_unref_picture ( s , pic ) ;\n return - 1 ;\n }\n if ( pic -> f . linesize [ 1 ] != pic -> f . linesize [ 2 ] ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"get_buffer() failed (uv stride mismatch)\\n\" ) ;\n ff_mpeg_unref_picture ( s , pic ) ;\n return - 1 ;\n }\n if ( ! s -> edge_emu_buffer && ( ret = ff_mpv_frame_size_alloc ( s , pic -> f . linesize [ 0 ] ) ) < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"get_buffer() failed to allocate context scratch buffers.\\n\" ) ;\n ff_mpeg_unref_picture ( s , pic ) ;\n return ret ;\n }\n return 0 ;\n }"}
{"idx": 16973, "target": 0, "func": "static void http_large_delay_cb ( struct evhttp_request * req , void * arg ) {\n struct timeval tv ;\n timerclear ( & tv ) ;\n tv . tv_sec = 3 ;\n event_once ( - 1 , EV_TIMEOUT , http_delay_reply , req , & tv ) ;\n evhttp_connection_fail ( delayed_client , EVCON_HTTP_EOF ) ;\n }"}
{"idx": 16974, "target": 0, "func": "static void test_0 ( void ) {\n static char * good_strings [ ] = {\n \"C=de,O=g10 Code,OU=qa,CN=P\u00e9p\u00e9 le Moko\" , \"C= de, O=g10 Code , OU=qa ,CN=P\u00e9p\u00e9 le Moko\" , \"CN=www.gnupg.org\" , \" CN=www.gnupg.org \" , \"C=fr,L=Paris,CN=Julien Duvivier,EMAIL=julien@example.org\" , NULL }\n ;\n gpg_error_t err ;\n int i ;\n unsigned char * buf ;\n size_t off , len ;\n for ( i = 0 ;\n good_strings [ i ] ;\n i ++ ) {\n err = ksba_dn_str2der ( good_strings [ i ] , & buf , & len ) ;\n if ( err ) {\n fprintf ( stderr , \"%s:%d: ksba_dn_str2der failed for `%s': %s\\n\" , __FILE__ , __LINE__ , good_strings [ i ] , gpg_strerror ( err ) ) ;\n exit ( 1 ) ;\n }\n err = ksba_dn_teststr ( good_strings [ i ] , 0 , & off , & len ) ;\n if ( err ) {\n fprintf ( stderr , \"%s:%d: ksba_dn_teststr failed for `%s': %s\\n\" , __FILE__ , __LINE__ , good_strings [ i ] , gpg_strerror ( err ) ) ;\n exit ( 1 ) ;\n }\n xfree ( buf ) ;\n }\n }"}
{"idx": 16975, "target": 0, "func": "static int dissect_btgatt_nordic_uart_rx ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , void * data ) {\n btatt_data_t * att_data = ( btatt_data_t * ) data ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) return - 1 ;\n proto_tree_add_item ( tree , hf_gatt_nordic_uart_rx , tvb , 0 , tvb_captured_length ( tvb ) , ENC_ASCII | ENC_NA ) ;\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 16976, "target": 0, "func": "static guint get_opcua_message_len ( packet_info * pinfo _U_ , tvbuff_t * tvb , int offset , void * data _U_ ) {\n gint32 plen ;\n plen = tvb_get_letohl ( tvb , offset + 4 ) ;\n return plen ;\n }"}
{"idx": 16977, "target": 0, "func": "static int dwarf_elf_object_access_get_section_info ( void * obj_in , Dwarf_Half section_index , Dwarf_Obj_Access_Section * ret_scn , int * error ) {\n dwarf_elf_object_access_internals_t * obj = ( dwarf_elf_object_access_internals_t * ) obj_in ;\n Elf32_Shdr * shdr32 = 0 ;\n # ifdef HAVE_ELF64_GETSHDR Elf64_Shdr * shdr64 = 0 ;\n # endif Elf_Scn * scn = 0 ;\n scn = elf_getscn ( obj -> elf , section_index ) ;\n if ( scn == NULL ) {\n * error = DW_DLE_MDE ;\n return DW_DLV_ERROR ;\n }\n if ( obj -> is_64bit ) {\n # ifdef HAVE_ELF64_GETSHDR shdr64 = elf64_getshdr ( scn ) ;\n if ( shdr64 == NULL ) {\n * error = DW_DLE_ELF_GETSHDR_ERROR ;\n return DW_DLV_ERROR ;\n }\n ret_scn -> type = shdr64 -> sh_type ;\n ret_scn -> size = shdr64 -> sh_size ;\n ret_scn -> addr = shdr64 -> sh_addr ;\n ret_scn -> link = shdr64 -> sh_link ;\n ret_scn -> info = shdr64 -> sh_info ;\n ret_scn -> entrysize = shdr64 -> sh_entsize ;\n ret_scn -> name = elf_strptr ( obj -> elf , obj -> ehdr64 -> e_shstrndx , shdr64 -> sh_name ) ;\n if ( ret_scn -> name == NULL ) {\n * error = DW_DLE_ELF_STRPTR_ERROR ;\n return DW_DLV_ERROR ;\n }\n return DW_DLV_OK ;\n # else * error = DW_DLE_MISSING_ELF64_SUPPORT ;\n return DW_DLV_ERROR ;\n # endif }\n if ( ( shdr32 = elf32_getshdr ( scn ) ) == NULL ) {\n * error = DW_DLE_ELF_GETSHDR_ERROR ;\n return DW_DLV_ERROR ;\n }\n ret_scn -> type = shdr32 -> sh_type ;\n ret_scn -> size = shdr32 -> sh_size ;\n ret_scn -> addr = shdr32 -> sh_addr ;\n ret_scn -> link = shdr32 -> sh_link ;\n ret_scn -> info = shdr32 -> sh_info ;\n ret_scn -> entrysize = shdr32 -> sh_entsize ;\n ret_scn -> name = elf_strptr ( obj -> elf , obj -> ehdr32 -> e_shstrndx , shdr32 -> sh_name ) ;\n if ( ret_scn -> name == NULL ) {\n * error = DW_DLE_ELF_STRPTR_ERROR ;\n return DW_DLV_ERROR ;\n }\n return DW_DLV_OK ;\n }"}
{"idx": 16978, "target": 0, "func": "static int dissect_h225_BMPString_SIZE_1_80 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_BMPString ( tvb , offset , actx , tree , hf_index , 1 , 80 , FALSE ) ;\n return offset ;\n }"}
{"idx": 16979, "target": 0, "func": "void parseDataValue ( proto_tree * tree , tvbuff_t * tvb , packet_info * pinfo , gint * pOffset , const char * szFieldName ) {\n static const int * datavalue_mask [ ] = {\n & hf_opcua_datavalue_mask_valueflag , & hf_opcua_datavalue_mask_statuscodeflag , & hf_opcua_datavalue_mask_sourcetimestampflag , & hf_opcua_datavalue_mask_servertimestampflag , & hf_opcua_datavalue_mask_sourcepicoseconds , & hf_opcua_datavalue_mask_serverpicoseconds , NULL }\n ;\n proto_item * ti ;\n proto_tree * subtree = proto_tree_add_subtree_format ( tree , tvb , * pOffset , - 1 , ett_opcua_datavalue , & ti , \"%s: DataValue\" , szFieldName ) ;\n gint iOffset = * pOffset ;\n guint8 EncodingMask ;\n EncodingMask = tvb_get_guint8 ( tvb , iOffset ) ;\n proto_tree_add_bitmask ( subtree , tvb , iOffset , hf_opcua_datavalue_mask , ett_opcua_datavalue_encodingmask , datavalue_mask , ENC_LITTLE_ENDIAN ) ;\n iOffset ++ ;\n if ( EncodingMask & DATAVALUE_ENCODINGBYTE_VALUE ) {\n parseVariant ( subtree , tvb , pinfo , & iOffset , \"Value\" ) ;\n }\n if ( EncodingMask & DATAVALUE_ENCODINGBYTE_STATUSCODE ) {\n parseStatusCode ( subtree , tvb , pinfo , & iOffset , hf_opcua_StatusCode ) ;\n }\n if ( EncodingMask & DATAVALUE_ENCODINGBYTE_SOURCETIMESTAMP ) {\n parseDateTime ( subtree , tvb , pinfo , & iOffset , hf_opcua_SourceTimestamp ) ;\n }\n if ( EncodingMask & DATAVALUE_ENCODINGBYTE_SOURCEPICOSECONDS ) {\n parseUInt16 ( subtree , tvb , pinfo , & iOffset , hf_opcua_SourcePicoseconds ) ;\n }\n if ( EncodingMask & DATAVALUE_ENCODINGBYTE_SERVERTIMESTAMP ) {\n parseDateTime ( subtree , tvb , pinfo , & iOffset , hf_opcua_ServerTimestamp ) ;\n }\n if ( EncodingMask & DATAVALUE_ENCODINGBYTE_SERVERPICOSECONDS ) {\n parseUInt16 ( subtree , tvb , pinfo , & iOffset , hf_opcua_ServerPicoseconds ) ;\n }\n proto_item_set_end ( ti , tvb , iOffset ) ;\n * pOffset = iOffset ;\n }"}
{"idx": 16980, "target": 0, "func": "static int cmp_internal ( MpegEncContext * s , const int x , const int y , const int subx , const int suby , const int size , const int h , int ref_index , int src_index , me_cmp_func cmp_func , me_cmp_func chroma_cmp_func , const int flags ) {\n if ( flags & FLAG_DIRECT ) {\n return cmp_direct_inline ( s , x , y , subx , suby , size , h , ref_index , src_index , cmp_func , chroma_cmp_func , flags & FLAG_QPEL ) ;\n }\n else {\n return cmp_inline ( s , x , y , subx , suby , size , h , ref_index , src_index , cmp_func , chroma_cmp_func , flags & FLAG_QPEL , flags & FLAG_CHROMA ) ;\n }\n }"}
{"idx": 16981, "target": 0, "func": "byte * _gcry_mpi_get_secure_buffer ( gcry_mpi_t a , unsigned int fill_le , unsigned int * r_nbytes , int * sign ) {\n return do_get_buffer ( a , fill_le , r_nbytes , sign , 1 ) ;\n }"}
{"idx": 16982, "target": 0, "func": "static struct object_entry * find_mark ( uintmax_t idnum ) {\n uintmax_t orig_idnum = idnum ;\n struct mark_set * s = marks ;\n struct object_entry * oe = NULL ;\n if ( ( idnum >> s -> shift ) < 1024 ) {\n while ( s && s -> shift ) {\n uintmax_t i = idnum >> s -> shift ;\n idnum -= i << s -> shift ;\n s = s -> data . sets [ i ] ;\n }\n if ( s ) oe = s -> data . marked [ idnum ] ;\n }\n if ( ! oe ) die ( \"mark :%\" PRIuMAX \" not declared\" , orig_idnum ) ;\n return oe ;\n }"}
{"idx": 16983, "target": 0, "func": "static void set_offsets ( VP9_COMP * cpi , const TileInfo * const tile , int mi_row , int mi_col , BLOCK_SIZE bsize ) {\n MACROBLOCK * const x = & cpi -> mb ;\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n MB_MODE_INFO * mbmi ;\n const int mi_width = num_8x8_blocks_wide_lookup [ bsize ] ;\n const int mi_height = num_8x8_blocks_high_lookup [ bsize ] ;\n const struct segmentation * const seg = & cm -> seg ;\n set_skip_context ( xd , mi_row , mi_col ) ;\n set_modeinfo_offsets ( cm , xd , mi_row , mi_col ) ;\n mbmi = & xd -> mi [ 0 ] . src_mi -> mbmi ;\n vp9_setup_dst_planes ( xd -> plane , get_frame_new_buffer ( cm ) , mi_row , mi_col ) ;\n x -> mv_row_min = - ( ( ( mi_row + mi_height ) * MI_SIZE ) + VP9_INTERP_EXTEND ) ;\n x -> mv_col_min = - ( ( ( mi_col + mi_width ) * MI_SIZE ) + VP9_INTERP_EXTEND ) ;\n x -> mv_row_max = ( cm -> mi_rows - mi_row ) * MI_SIZE + VP9_INTERP_EXTEND ;\n x -> mv_col_max = ( cm -> mi_cols - mi_col ) * MI_SIZE + VP9_INTERP_EXTEND ;\n assert ( ! ( mi_col & ( mi_width - 1 ) ) && ! ( mi_row & ( mi_height - 1 ) ) ) ;\n set_mi_row_col ( xd , tile , mi_row , mi_height , mi_col , mi_width , cm -> mi_rows , cm -> mi_cols ) ;\n vp9_setup_src_planes ( x , cpi -> Source , mi_row , mi_col ) ;\n x -> rddiv = cpi -> rd . RDDIV ;\n x -> rdmult = cpi -> rd . RDMULT ;\n if ( seg -> enabled ) {\n if ( cpi -> oxcf . aq_mode != VARIANCE_AQ ) {\n const uint8_t * const map = seg -> update_map ? cpi -> segmentation_map : cm -> last_frame_seg_map ;\n mbmi -> segment_id = vp9_get_segment_id ( cm , map , bsize , mi_row , mi_col ) ;\n }\n vp9_init_plane_quantizers ( cpi , x ) ;\n x -> encode_breakout = cpi -> segment_encode_breakout [ mbmi -> segment_id ] ;\n }\n else {\n mbmi -> segment_id = 0 ;\n x -> encode_breakout = cpi -> encode_breakout ;\n }\n }"}
{"idx": 16984, "target": 0, "func": "static void armv7m_nvic_class_init ( ObjectClass * klass , void * data ) {\n NVICClass * nc = NVIC_CLASS ( klass ) ;\n DeviceClass * dc = DEVICE_CLASS ( klass ) ;\n nc -> parent_reset = dc -> reset ;\n nc -> parent_realize = dc -> realize ;\n dc -> vmsd = & vmstate_nvic ;\n dc -> reset = armv7m_nvic_reset ;\n dc -> realize = armv7m_nvic_realize ;\n }"}
{"idx": 16985, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ContentSettingBubbleDialogTest , InvokeDialog_geolocation ) {\n RunDialog ( ) ;\n }"}
{"idx": 16986, "target": 0, "func": "METHOD ( x509_t , create_crl_uri_enumerator , enumerator_t * , private_x509_cert_t * this ) {\n return this -> crl_uris -> create_enumerator ( this -> crl_uris ) ;\n }"}
{"idx": 16987, "target": 0, "func": "static MoveFileCopyFallback * move_copy_file_callback_new ( GFile * file , gboolean overwrite , GdkPoint * position ) {\n MoveFileCopyFallback * fallback ;\n fallback = g_new ( MoveFileCopyFallback , 1 ) ;\n fallback -> file = file ;\n fallback -> overwrite = overwrite ;\n if ( position ) {\n fallback -> has_position = TRUE ;\n fallback -> position = * position ;\n }\n else {\n fallback -> has_position = FALSE ;\n }\n return fallback ;\n }"}
{"idx": 16988, "target": 0, "func": "static int dissect_PRINTER_DATATYPE ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n if ( di -> conformant_run ) return offset ;\n offset = dissect_ndr_cvstring ( tvb , offset , pinfo , tree , di , drep , sizeof ( guint16 ) , hf_datatype , TRUE , NULL ) ;\n return offset ;\n }"}
{"idx": 16989, "target": 0, "func": "void setup_masks_arabic_plan ( const arabic_shape_plan_t * arabic_plan , hb_buffer_t * buffer , hb_script_t script ) {\n HB_BUFFER_ALLOCATE_VAR ( buffer , arabic_shaping_action ) ;\n arabic_joining ( buffer ) ;\n if ( script == HB_SCRIPT_MONGOLIAN ) mongolian_variation_selectors ( buffer ) ;\n unsigned int count = buffer -> len ;\n hb_glyph_info_t * info = buffer -> info ;\n for ( unsigned int i = 0 ;\n i < count ;\n i ++ ) info [ i ] . mask |= arabic_plan -> mask_array [ info [ i ] . arabic_shaping_action ( ) ] ;\n HB_BUFFER_DEALLOCATE_VAR ( buffer , arabic_shaping_action ) ;\n }"}
{"idx": 16990, "target": 0, "func": "int TSHttpCurrentCacheConnectionsGet ( void ) {\n int64_t S ;\n HTTP_READ_DYN_SUM ( http_current_cache_connections_stat , S ) ;\n return ( int ) S ;\n }"}
{"idx": 16991, "target": 0, "func": "static mtime_t GetPicturePTS ( encoder_t * p_enc , uint32_t u_pnum ) {\n encoder_sys_t * p_sys = p_enc -> p_sys ;\n for ( int i = 0 ;\n i < SCHRO_PTS_TLB_SIZE ;\n i ++ ) {\n if ( ! p_sys -> pts_tlb [ i ] . b_empty && p_sys -> pts_tlb [ i ] . u_pnum == u_pnum ) {\n p_sys -> pts_tlb [ i ] . b_empty = true ;\n return p_sys -> pts_tlb [ i ] . i_pts ;\n }\n }\n msg_Err ( p_enc , \"Could not retrieve PTS for picture %u\" , u_pnum ) ;\n return 0 ;\n }"}
{"idx": 16992, "target": 0, "func": "IN_PROC_BROWSER_TEST_P ( BrowserCloseManagerBrowserTest , MAYBE_TestAddWindowDuringShutdown ) {\n ASSERT_NO_FATAL_FAILURE ( ui_test_utils : : NavigateToURL ( browsers_ [ 0 ] , embedded_test_server ( ) -> GetURL ( \"/beforeunload.html\" ) ) ) ;\n PrepareForDialog ( browsers_ [ 0 ] ) ;\n RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , 2 ) ;\n chrome : : CloseAllBrowsersAndQuit ( ) ;\n browsers_ . push_back ( CreateBrowser ( browser ( ) -> profile ( ) ) ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n close_observer . Wait ( ) ;\n EXPECT_TRUE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_TRUE ( BrowserList : : GetInstance ( ) -> empty ( ) ) ;\n }"}
{"idx": 16993, "target": 0, "func": "void proto_register_sigcomp ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_sigcomp_t_bit , {\n \"T bit\" , \"sigcomp.t.bit\" , FT_UINT8 , BASE_DEC , NULL , 0x04 , \"Sigcomp T bit\" , HFILL }\n }\n , {\n & hf_sigcomp_len , {\n \"Partial state id length\" , \"sigcomp.length\" , FT_UINT8 , BASE_HEX , VALS ( length_encoding_vals ) , 0x03 , \"Sigcomp length\" , HFILL }\n }\n , {\n & hf_sigcomp_returned_feedback_item , {\n \"Returned_feedback item\" , \"sigcomp.returned.feedback.item\" , FT_BYTES , BASE_NONE , NULL , 0x0 , \"Returned feedback item\" , HFILL }\n }\n , {\n & hf_sigcomp_partial_state , {\n \"Partial state identifier\" , \"sigcomp.partial.state.identifier\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_remaining_message_bytes , {\n \"Remaining SigComp message bytes\" , \"sigcomp.remaining-bytes\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"Number of bytes remaining in message\" , HFILL }\n }\n , {\n & hf_sigcomp_compression_ratio , {\n \"Compression ratio (%)\" , \"sigcomp.compression-ratio\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"Compression ratio (decompressed / compressed) %\" , HFILL }\n }\n , {\n & hf_sigcomp_returned_feedback_item_len , {\n \"Returned feedback item length\" , \"sigcomp.returned.feedback.item.len\" , FT_UINT8 , BASE_DEC , NULL , 0x7f , NULL , HFILL }\n }\n , {\n & hf_sigcomp_code_len , {\n \"Code length\" , \"sigcomp.code.len\" , FT_UINT16 , BASE_HEX , NULL , 0xfff0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_destination , {\n \"Destination\" , \"sigcomp.destination\" , FT_UINT8 , BASE_HEX | BASE_EXT_STRING , & destination_address_encoding_vals_ext , 0xf , NULL , HFILL }\n }\n , {\n & hf_sigcomp_udvm_bytecode , {\n \"Uploaded UDVM bytecode\" , \"sigcomp.udvm.byte-code\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_udvm_instr , {\n \"UDVM instruction code\" , \"sigcomp.udvm.instr\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & udvm_instruction_code_vals_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_udvm_execution_trace , {\n \"UDVM execution trace\" , \"sigcomp.udvm.execution-trace\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_udvm_multitype_bytecode , {\n \"UDVM bytecode\" , \"sigcomp.udvm.multyt.bytecode\" , FT_UINT8 , BASE_HEX , VALS ( display_bytecode_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_udvm_reference_bytecode , {\n \"UDVM bytecode\" , \"sigcomp.udvm.ref.bytecode\" , FT_UINT8 , BASE_HEX , VALS ( display_ref_bytecode_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_udvm_literal_bytecode , {\n \"UDVM bytecode\" , \"sigcomp.udvm.lit.bytecode\" , FT_UINT8 , BASE_HEX , VALS ( display_lit_bytecode_vals ) , 0x0 , NULL , HFILL }\n }\n , # if 0 {\n & hf_udvm_operand , {\n \"UDVM operand\" , \"sigcomp.udvm.operand\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , # endif {\n & hf_udvm_length , {\n \"%Length\" , \"sigcomp.udvm.length\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Length\" , HFILL }\n }\n , {\n & hf_udvm_addr_length , {\n \"%Length[memory address]\" , \"sigcomp.udvm.addr.length\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Length\" , HFILL }\n }\n , {\n & hf_udvm_destination , {\n \"%Destination\" , \"sigcomp.udvm.destination\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Destination\" , HFILL }\n }\n , {\n & hf_udvm_addr_destination , {\n \"%Destination[memory address]\" , \"sigcomp.udvm.addr.destination\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Destination\" , HFILL }\n }\n , {\n & hf_udvm_at_address , {\n \"@Address(mem_add_of_inst + D) mod 2^16)\" , \"sigcomp.udvm.at.address\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Address\" , HFILL }\n }\n , {\n & hf_udvm_address , {\n \"%Address\" , \"sigcomp.udvm.length\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Address\" , HFILL }\n }\n , {\n & hf_udvm_literal_num , {\n \"#n\" , \"sigcomp.udvm.literal-num\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Literal number\" , HFILL }\n }\n , {\n & hf_udvm_value , {\n \"%Value\" , \"sigcomp.udvm.value\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Value\" , HFILL }\n }\n , {\n & hf_udvm_addr_value , {\n \"%Value[memory address]\" , \"sigcomp.udvm.value\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Value\" , HFILL }\n }\n , {\n & hf_partial_identifier_start , {\n \"%Partial identifier start\" , \"sigcomp.udvm.partial.identifier.start\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Partial identifier start\" , HFILL }\n }\n , {\n & hf_partial_identifier_length , {\n \"%Partial identifier length\" , \"sigcomp.udvm.partial.identifier.length\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Partial identifier length\" , HFILL }\n }\n , {\n & hf_state_begin , {\n \"%State begin\" , \"sigcomp.udvm.state.begin\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"State begin\" , HFILL }\n }\n , {\n & hf_udvm_state_length , {\n \"%State length\" , \"sigcomp.udvm.state.length\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"State length\" , HFILL }\n }\n , {\n & hf_udvm_state_length_addr , {\n \"%State length[memory address]\" , \"sigcomp.udvm.state.length.addr\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"State length\" , HFILL }\n }\n , {\n & hf_udvm_state_address , {\n \"%State address\" , \"sigcomp.udvm.start.address\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"State address\" , HFILL }\n }\n , {\n & hf_udvm_state_address_addr , {\n \"%State address[memory address]\" , \"sigcomp.udvm.start.address.addr\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"State address\" , HFILL }\n }\n , {\n & hf_udvm_state_instr , {\n \"%State instruction\" , \"sigcomp.udvm.start.instr\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"State instruction\" , HFILL }\n }\n , {\n & hf_udvm_operand_1 , {\n \"$Operand 1[memory address]\" , \"sigcomp.udvm.operand.1\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Reference $ Operand 1\" , HFILL }\n }\n , {\n & hf_udvm_operand_2 , {\n \"%Operand 2\" , \"sigcomp.udvm.operand.2\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Operand 2\" , HFILL }\n }\n , {\n & hf_udvm_operand_2_addr , {\n \"%Operand 2[memory address]\" , \"sigcomp.udvm.operand.2.addr\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Operand 2\" , HFILL }\n }\n , {\n & hf_udvm_j , {\n \"%j\" , \"sigcomp.udvm.j\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"j\" , HFILL }\n }\n , {\n & hf_udvm_addr_j , {\n \"%j[memory address]\" , \"sigcomp.udvm.addr.j\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"j\" , HFILL }\n }\n , {\n & hf_udvm_output_start , {\n \"%Output_start\" , \"sigcomp.output.start\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Output start\" , HFILL }\n }\n , {\n & hf_udvm_addr_output_start , {\n \"%Output_start[memory address]\" , \"sigcomp.addr.output.start\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Output start\" , HFILL }\n }\n , {\n & hf_udvm_output_length , {\n \"%Output_length\" , \"sigcomp.output.length\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Output length\" , HFILL }\n }\n , {\n & hf_udvm_output_length_addr , {\n \"%Output_length[memory address]\" , \"sigcomp.output.length.addr\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Output length\" , HFILL }\n }\n , {\n & hf_udvm_req_feedback_loc , {\n \"%Requested feedback location\" , \"sigcomp.req.feedback.loc\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Requested feedback location\" , HFILL }\n }\n , {\n & hf_udvm_min_acc_len , {\n \"%Minimum access length\" , \"sigcomp.min.acc.len\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Minimum access length\" , HFILL }\n }\n , {\n & hf_udvm_state_ret_pri , {\n \"%State retention priority\" , \"sigcomp.udvm.state.ret.pri\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"State retention priority\" , HFILL }\n }\n , {\n & hf_udvm_ret_param_loc , {\n \"%Returned parameters location\" , \"sigcomp.ret.param.loc\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Returned parameters location\" , HFILL }\n }\n , {\n & hf_udvm_position , {\n \"%Position\" , \"sigcomp.udvm.position\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Position\" , HFILL }\n }\n , {\n & hf_udvm_ref_dest , {\n \"$Destination[memory address]\" , \"sigcomp.udvm.ref.destination\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"(reference)Destination\" , HFILL }\n }\n , {\n & hf_udvm_bits , {\n \"%Bits\" , \"sigcomp.udvm.bits\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Bits\" , HFILL }\n }\n , {\n & hf_udvm_lower_bound , {\n \"%Lower bound\" , \"sigcomp.udvm.lower.bound\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Lower_bound\" , HFILL }\n }\n , {\n & hf_udvm_upper_bound , {\n \"%Upper bound\" , \"sigcomp.udvm.upper.bound\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Upper bound\" , HFILL }\n }\n , {\n & hf_udvm_uncompressed , {\n \"%Uncompressed\" , \"sigcomp.udvm.uncompressed\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Uncompressed\" , HFILL }\n }\n , {\n & hf_udvm_start_value , {\n \"%Start value\" , \"sigcomp.udvm.start.value\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Start value\" , HFILL }\n }\n , {\n & hf_udvm_offset , {\n \"%Offset\" , \"sigcomp.udvm.offset\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Offset\" , HFILL }\n }\n , {\n & hf_udvm_addr_offset , {\n \"%Offset[memory address]\" , \"sigcomp.udvm.addr.offset\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"Offset\" , HFILL }\n }\n , {\n & hf_sigcomp_nack_ver , {\n \"NACK Version\" , \"sigcomp.nack.ver\" , FT_UINT8 , BASE_DEC , NULL , 0x0f , NULL , HFILL }\n }\n , {\n & hf_sigcomp_nack_reason_code , {\n \"Reason Code\" , \"sigcomp.nack.reason\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & sigcomp_nack_reason_code_vals_ext , 0x0 , \"NACK Reason Code\" , HFILL }\n }\n , {\n & hf_sigcomp_nack_failed_op_code , {\n \"OPCODE of failed instruction\" , \"sigcomp.nack.failed_op_code\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & udvm_instruction_code_vals_ext , 0x0 , \"NACK OPCODE of failed instruction\" , HFILL }\n }\n , {\n & hf_sigcomp_nack_pc , {\n \"PC of failed instruction\" , \"sigcomp.nack.pc\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , \"NACK PC of failed instruction\" , HFILL }\n }\n , {\n & hf_sigcomp_nack_sha1 , {\n \"SHA-1 Hash of failed message\" , \"sigcomp.nack.sha1\" , FT_BYTES , BASE_NONE , NULL , 0x0 , \"NACK SHA-1 Hash of failed message\" , HFILL }\n }\n , {\n & hf_sigcomp_nack_state_id , {\n \"State ID (6 - 20 bytes)\" , \"sigcomp.nack.state_id\" , FT_BYTES , BASE_NONE , NULL , 0x0 , \"NACK State ID (6 - 20 bytes)\" , HFILL }\n }\n , {\n & hf_sigcomp_nack_cycles_per_bit , {\n \"Cycles Per Bit\" , \"sigcomp.nack.cycles_per_bit\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , \"NACK Cycles Per Bit\" , HFILL }\n }\n , {\n & hf_sigcomp_nack_memory_size , {\n \"Memory size\" , \"sigcomp.memory_size\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_decompress_instruction , {\n \"Instruction\" , \"sigcomp.decompress_instruction\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_loading_result , {\n \"Loading result\" , \"sigcomp.loading_result\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_byte_copy , {\n \"byte copy\" , \"sigcomp.byte_copy\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_accessing_state , {\n \"### Accessing state ###\" , \"sigcomp.accessing_state\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_getting_value , {\n \"Getting value\" , \"sigcomp.getting_value\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_load_bytecode_into_udvm_start , {\n \"Load bytecode into UDVM starting at\" , \"sigcomp.load_bytecode_into_udvm_start\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_instruction_code , {\n \"Instruction code\" , \"sigcomp.instruction_code\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_current_instruction , {\n \"Addr\" , \"sigcomp.current_instruction\" , FT_UINT8 , BASE_DEC | BASE_EXT_STRING , & udvm_instruction_code_vals_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_decompression_failure , {\n \"DECOMPRESSION-FAILURE\" , \"sigcomp.decompression_failure\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_wireshark_udvm_diagnostic , {\n \"Wireshark UDVM diagnostic\" , \"sigcomp.wireshark_udvm_diagnostic\" , FT_UINT32 , BASE_DEC , VALS ( result_code_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_calculated_sha_1 , {\n \"Calculated SHA-1\" , \"sigcomp.calculated_sha_1\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_copying_value , {\n \"Copying value\" , \"sigcomp.copying_value\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_storing_value , {\n \"Storing value\" , \"sigcomp.storing_value\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_loading_value , {\n \"Loading value\" , \"sigcomp.loading_value\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_set_hu , {\n \"Set Hu\" , \"sigcomp.set_hu\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_loading_h , {\n \"Loading H\" , \"sigcomp.loading_h\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_state_value , {\n \"Addr\" , \"sigcomp.state_value\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_output_value , {\n \"Output value\" , \"sigcomp.output_value\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_num_state_create , {\n \"no_of_state_create\" , \"sigcomp.num_state_create\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_sha1_digest , {\n \"SHA1 digest\" , \"sigcomp.sha1_digest\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_creating_state , {\n \"### Creating state ###\" , \"sigcomp.creating_state\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_sigcomp_message_decompressed , {\n \"SigComp message Decompressed\" , \"sigcomp.message_decompressed\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_starting_to_remove_escape_digits , {\n \"Starting to remove escape digits\" , \"sigcomp.starting_to_remove_escape_digits\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_escape_digit_found , {\n \"Escape digit found\" , \"sigcomp.escape_digit_found\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_illegal_escape_code , {\n \"Illegal escape code\" , \"sigcomp.illegal_escape_code\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_end_of_sigcomp_message_indication_found , {\n \"End of SigComp message indication found\" , \"sigcomp.end_of_sigcomp_message_indication_found\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_addr_value , {\n \"Addr\" , \"sigcomp.addr\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_copying_bytes_literally , {\n \"Copying bytes literally\" , \"sigcomp.copying_bytes_literally\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_data_for_sigcomp_dissector , {\n \"Data handed to the Sigcomp dissector\" , \"sigcomp.data_for_sigcomp_dissector\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_remaining_sigcomp_message , {\n \"Remaining SigComp message\" , \"sigcomp.remaining_sigcomp_message\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_sha1buff , {\n \"sha1buff\" , \"sigcomp.sha1buff\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_udvm_instruction , {\n \"UDVM instruction\" , \"sigcomp.udvm_instruction\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_remaining_bytes , {\n \"Remaining bytes\" , \"sigcomp.remaining_bytes\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_max_udvm_cycles , {\n \"maximum_UDVM_cycles\" , \"sigcomp.max_udvm_cycles\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_used_udvm_cycles , {\n \"used_udvm_cycles\" , \"sigcomp.used_udvm_cycles\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_udvm_execution_stated , {\n \"UDVM EXECUTION STARTED\" , \"sigcomp.udvm_execution_stated\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_message_length , {\n \"Message Length\" , \"sigcomp.message_length\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_sigcomp_byte_code_length , {\n \"Byte code length\" , \"sigcomp.byte_code_length\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , }\n ;\n static gint * ett [ ] = {\n & ett_sigcomp , & ett_sigcomp_udvm , & ett_sigcomp_udvm_exe , }\n ;\n static gint * ett_raw [ ] = {\n & ett_raw_text , }\n ;\n static ei_register_info ei [ ] = {\n {\n & ei_sigcomp_nack_failed_op_code , {\n \"sigcomp.nack.failed_op_code.expert\" , PI_SEQUENCE , PI_WARN , \"SigComp NACK\" , EXPFILL }\n }\n , {\n & ei_sigcomp_invalid_instruction , {\n \"sigcomp.invalid_instruction\" , PI_PROTOCOL , PI_WARN , \"Invalid instruction\" , EXPFILL }\n }\n , {\n & ei_sigcomp_invalid_shift_value , {\n \"sigcomp.invalid_shift_value\" , PI_PROTOCOL , PI_WARN , \"Invalid shift value\" , EXPFILL }\n }\n , {\n & ei_sigcomp_sigcomp_message_decompression_failure , {\n \"sigcomp.message_decompression_failure\" , PI_PROTOCOL , PI_WARN , \"SigComp message Decompression failure\" , EXPFILL }\n }\n , {\n & ei_sigcomp_execution_of_this_instruction_is_not_implemented , {\n \"sigcomp.execution_of_this_instruction_is_not_implemented\" , PI_UNDECODED , PI_WARN , \"Execution of this instruction is NOT implemented\" , EXPFILL }\n }\n , {\n & ei_sigcomp_decompression_failure , {\n \"sigcomp.decompression_failure_expert\" , PI_PROTOCOL , PI_WARN , \"DECOMPRESSION FAILURE\" , EXPFILL }\n }\n , {\n & ei_sigcomp_tcp_fragment , {\n \"sigcomp.tcp_fragment\" , PI_MALFORMED , PI_ERROR , \"TCP Fragment\" , EXPFILL }\n }\n , {\n & ei_sigcomp_failed_to_access_state_wireshark_udvm_diagnostic , {\n \"sigcomp.failed_to_access_state_wireshark_udvm_diagnostic\" , PI_PROTOCOL , PI_WARN , \"Failed to Access state Wireshark UDVM diagnostic\" , EXPFILL }\n }\n , {\n & ei_sigcomp_all_remaining_parameters_zero , {\n \"sigcomp.all_remaining_parameters\" , PI_PROTOCOL , PI_NOTE , \"All remaining parameters = 0(Not in the uploaded code as UDVM buffer initialized to Zero\" , EXPFILL }\n }\n , }\n ;\n module_t * sigcomp_module ;\n expert_module_t * expert_sigcomp ;\n static const enum_val_t udvm_detail_vals [ ] = {\n {\n \"no-printout\" , \"No-Printout\" , 0 }\n , {\n \"low-detail\" , \"Low-detail\" , 1 }\n , {\n \"medium-detail\" , \"Medium-detail\" , 2 }\n , {\n \"high-detail\" , \"High-detail\" , 3 }\n , {\n NULL , NULL , - 1 }\n }\n ;\n proto_sigcomp = proto_register_protocol ( \"Signaling Compression\" , \"SIGCOMP\" , \"sigcomp\" ) ;\n proto_raw_sigcomp = proto_register_protocol ( \"Decompressed SigComp message as raw text\" , \"Raw_SigComp\" , \"raw_sigcomp\" ) ;\n register_dissector ( \"sigcomp\" , dissect_sigcomp , proto_sigcomp ) ;\n proto_register_field_array ( proto_sigcomp , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n proto_register_subtree_array ( ett_raw , array_length ( ett_raw ) ) ;\n expert_sigcomp = expert_register_protocol ( proto_sigcomp ) ;\n expert_register_field_array ( expert_sigcomp , ei , array_length ( ei ) ) ;\n sigcomp_module = prefs_register_protocol ( proto_sigcomp , proto_reg_handoff_sigcomp ) ;\n prefs_register_uint_preference ( sigcomp_module , \"udp.port\" , \"Sigcomp UDP Port 1\" , \"Set UDP port 1 for SigComp messages\" , 10 , & SigCompUDPPort1 ) ;\n prefs_register_uint_preference ( sigcomp_module , \"udp.port2\" , \"Sigcomp UDP Port 2\" , \"Set UDP port 2 for SigComp messages\" , 10 , & SigCompUDPPort2 ) ;\n prefs_register_uint_preference ( sigcomp_module , \"tcp.port\" , \"Sigcomp TCP Port 1\" , \"Set TCP port 1 for SigComp messages\" , 10 , & SigCompTCPPort1 ) ;\n prefs_register_uint_preference ( sigcomp_module , \"tcp.port2\" , \"Sigcomp TCP Port 2\" , \"Set TCP port 2 for SigComp messages\" , 10 , & SigCompTCPPort2 ) ;\n prefs_register_bool_preference ( sigcomp_module , \"display.udvm.code\" , \"Dissect the UDVM code\" , \"Preference whether to Dissect the UDVM code or not\" , & dissect_udvm_code ) ;\n prefs_register_bool_preference ( sigcomp_module , \"display.bytecode\" , \"Display the bytecode of operands\" , \"preference whether to display the bytecode in \" \"UDVM operands or not\" , & display_udvm_bytecode ) ;\n prefs_register_bool_preference ( sigcomp_module , \"decomp.msg\" , \"Decompress message\" , \"preference whether to decompress message or not\" , & decompress ) ;\n prefs_register_bool_preference ( sigcomp_module , \"display.decomp.msg.as.txt\" , \"Displays the decompressed message as text\" , \"preference whether to display the decompressed message \" \"as raw text or not\" , & display_raw_txt ) ;\n prefs_register_enum_preference ( sigcomp_module , \"show.udvm.execution\" , \"Level of detail of UDVM execution:\" , \"'No-Printout' = UDVM executes silently, then increasing detail \" \"about execution of UDVM instructions;\n \" \"Warning! CPU intense at high detail\" , & udvm_print_detail_level , udvm_detail_vals , FALSE ) ;\n register_init_routine ( & sigcomp_init_udvm ) ;\n register_cleanup_routine ( & sigcomp_cleanup_udvm ) ;\n }"}
{"idx": 16994, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers )"}
{"idx": 16995, "target": 0, "func": "static void imc_decode_level_coefficients ( IMCContext * q , int * levlCoeffBuf , float * flcoeffs1 , float * flcoeffs2 ) {\n int i , level ;\n float tmp , tmp2 ;\n flcoeffs1 [ 0 ] = 20000.0 / pow ( 2 , levlCoeffBuf [ 0 ] * 0.18945 ) ;\n flcoeffs2 [ 0 ] = log2f ( flcoeffs1 [ 0 ] ) ;\n tmp = flcoeffs1 [ 0 ] ;\n tmp2 = flcoeffs2 [ 0 ] ;\n for ( i = 1 ;\n i < BANDS ;\n i ++ ) {\n level = levlCoeffBuf [ i ] ;\n if ( level == 16 ) {\n flcoeffs1 [ i ] = 1.0 ;\n flcoeffs2 [ i ] = 0.0 ;\n }\n else {\n if ( level < 17 ) level -= 7 ;\n else if ( level <= 24 ) level -= 32 ;\n else level -= 16 ;\n tmp *= imc_exp_tab [ 15 + level ] ;\n tmp2 += 0.83048 * level ;\n flcoeffs1 [ i ] = tmp ;\n flcoeffs2 [ i ] = tmp2 ;\n }\n }\n }"}
{"idx": 16996, "target": 0, "func": "static int search_request_new ( int type , const char * const name , int flags , evdns_callback_type user_callback , void * user_arg ) {\n assert ( type == TYPE_A || type == TYPE_AAAA ) ;\n if ( ( ( flags & DNS_QUERY_NO_SEARCH ) == 0 ) && global_search_state && global_search_state -> num_domains ) {\n struct request * req ;\n if ( string_num_dots ( name ) >= global_search_state -> ndots ) {\n req = request_new ( type , name , flags , user_callback , user_arg ) ;\n if ( ! req ) return 1 ;\n req -> search_index = - 1 ;\n }\n else {\n char * const new_name = search_make_new ( global_search_state , 0 , name ) ;\n if ( ! new_name ) return 1 ;\n req = request_new ( type , new_name , flags , user_callback , user_arg ) ;\n free ( new_name ) ;\n if ( ! req ) return 1 ;\n req -> search_index = 0 ;\n }\n req -> search_origname = strdup ( name ) ;\n req -> search_state = global_search_state ;\n req -> search_flags = flags ;\n global_search_state -> refcount ++ ;\n request_submit ( req ) ;\n return 0 ;\n }\n else {\n struct request * const req = request_new ( type , name , flags , user_callback , user_arg ) ;\n if ( ! req ) return 1 ;\n request_submit ( req ) ;\n return 0 ;\n }\n }"}
{"idx": 16997, "target": 0, "func": "ssize_t ___strfmon_l ( char * s , size_t maxsize , __locale_t loc , const char * format , ... ) {\n va_list ap ;\n va_start ( ap , format ) ;\n ssize_t res = __vstrfmon_l ( s , maxsize , loc , format , ap ) ;\n va_end ( ap ) ;\n return res ;\n }"}
{"idx": 16998, "target": 0, "func": "void xps_measure_font_glyph ( xps_document * doc , fz_font * font , int gid , xps_glyph_metrics * mtx ) {\n int mask = FT_LOAD_NO_SCALE | FT_LOAD_IGNORE_TRANSFORM ;\n FT_Face face = font -> ft_face ;\n FT_Fixed hadv , vadv ;\n fz_context * ctx = doc -> ctx ;\n fz_lock ( ctx , FZ_LOCK_FREETYPE ) ;\n FT_Get_Advance ( face , gid , mask , & hadv ) ;\n FT_Get_Advance ( face , gid , mask | FT_LOAD_VERTICAL_LAYOUT , & vadv ) ;\n fz_unlock ( ctx , FZ_LOCK_FREETYPE ) ;\n mtx -> hadv = hadv / ( float ) face -> units_per_EM ;\n mtx -> vadv = vadv / ( float ) face -> units_per_EM ;\n mtx -> vorg = face -> ascender / ( float ) face -> units_per_EM ;\n }"}
{"idx": 16999, "target": 1, "func": "static void await_reference_mb_row ( H264Context * const h , Picture * ref , int mb_y ) {\n int ref_field = ref -> f . reference - 1 ;\n int ref_field_picture = ref -> field_picture ;\n int ref_height = 16 * h -> mb_height >> ref_field_picture ;\n if ( ! HAVE_THREADS || ! ( h -> avctx -> active_thread_type & FF_THREAD_FRAME ) ) return ;\n ff_thread_await_progress ( & ref -> f , FFMIN ( 16 * mb_y >> ref_field_picture , ref_height - 1 ) , ref_field_picture && ref_field ) ;\n }"}
{"idx": 17000, "target": 0, "func": "static int delta_cacheable ( unsigned long src_size , unsigned long trg_size , unsigned long delta_size ) {\n if ( max_delta_cache_size && delta_cache_size + delta_size > max_delta_cache_size ) return 0 ;\n if ( delta_size < cache_max_small_delta_size ) return 1 ;\n if ( ( src_size >> 20 ) + ( trg_size >> 21 ) > ( delta_size >> 10 ) ) return 1 ;\n return 0 ;\n }"}
{"idx": 17001, "target": 0, "func": "bool send_metakey ( connection_t * c ) {\n bool x ;\n int len = RSA_size ( c -> rsa_key ) ;\n char buffer [ 2 * len + 1 ] ;\n c -> outkey = xrealloc ( c -> outkey , len ) ;\n if ( ! c -> outctx ) {\n c -> outctx = EVP_CIPHER_CTX_new ( ) ;\n if ( ! c -> outctx ) {\n abort ( ) ;\n }\n }\n if ( 1 != RAND_bytes ( ( unsigned char * ) c -> outkey , len ) ) {\n int err = ERR_get_error ( ) ;\n logger ( LOG_ERR , \"Failed to generate meta key (%s)\" , ERR_error_string ( err , NULL ) ) ;\n return false ;\n }\n c -> outkey [ 0 ] &= 0x7F ;\n ifdebug ( SCARY_THINGS ) {\n bin2hex ( c -> outkey , buffer , len ) ;\n buffer [ len * 2 ] = '\\0' ;\n logger ( LOG_DEBUG , \"Generated random meta key (unencrypted): %s\" , buffer ) ;\n }\n if ( RSA_public_encrypt ( len , ( unsigned char * ) c -> outkey , ( unsigned char * ) buffer , c -> rsa_key , RSA_NO_PADDING ) != len ) {\n logger ( LOG_ERR , \"Error during encryption of meta key for %s (%s): %s\" , c -> name , c -> hostname , ERR_error_string ( ERR_get_error ( ) , NULL ) ) ;\n return false ;\n }\n bin2hex ( buffer , buffer , len ) ;\n buffer [ len * 2 ] = '\\0' ;\n x = send_request ( c , \"%d %d %d %d %d %s\" , METAKEY , c -> outcipher ? EVP_CIPHER_nid ( c -> outcipher ) : 0 , c -> outdigest ? EVP_MD_type ( c -> outdigest ) : 0 , c -> outmaclength , c -> outcompression , buffer ) ;\n if ( c -> outcipher ) {\n if ( ! EVP_EncryptInit ( c -> outctx , c -> outcipher , ( unsigned char * ) c -> outkey + len - EVP_CIPHER_key_length ( c -> outcipher ) , ( unsigned char * ) c -> outkey + len - EVP_CIPHER_key_length ( c -> outcipher ) - EVP_CIPHER_iv_length ( c -> outcipher ) ) ) {\n logger ( LOG_ERR , \"Error during initialisation of cipher for %s (%s): %s\" , c -> name , c -> hostname , ERR_error_string ( ERR_get_error ( ) , NULL ) ) ;\n return false ;\n }\n c -> outbudget = byte_budget ( c -> outcipher ) ;\n c -> status . encryptout = true ;\n }\n return x ;\n }"}
{"idx": 17002, "target": 0, "func": "static int restore_db_collation ( FILE * sql_file , const char * db_name , const char * delimiter , const char * db_cl_name ) {\n char quoted_db_buf [ NAME_LEN * 2 + 3 ] ;\n char * quoted_db_name = quote_name ( db_name , quoted_db_buf , FALSE ) ;\n CHARSET_INFO * db_cl = get_charset_by_name ( db_cl_name , MYF ( 0 ) ) ;\n if ( ! db_cl ) return 1 ;\n fprintf ( sql_file , \"ALTER DATABASE %s CHARACTER SET %s COLLATE %s %s\\n\" , ( const char * ) quoted_db_name , ( const char * ) db_cl -> csname , ( const char * ) db_cl -> name , ( const char * ) delimiter ) ;\n return 0 ;\n }"}
{"idx": 17003, "target": 0, "func": "TEST_F ( TemplateURLTest , ReplaceArbitrarySearchTerms ) {\n struct TestData {\n const std : : string encoding ;\n const base : : string16 search_term ;\n const std : : string url ;\n const std : : string expected_result ;\n }\n test_data [ ] = {\n {\n \"BIG5\" , base : : WideToUTF16 ( L\"\\x60BD\" ) , \"http://foo/?{\nsearchTerms}\n{\ninputEncoding}\n\" , \"http://foo/?%B1~BIG5\" }\n , {\n \"UTF-8\" , ASCIIToUTF16 ( \"blah\" ) , \"http://foo/?{\nsearchTerms}\n{\ninputEncoding}\n\" , \"http://foo/?blahUTF-8\" }\n , {\n \"Shift_JIS\" , base : : UTF8ToUTF16 ( \"\\xe3\\x81\\x82\" ) , \"http://foo/{\nsearchTerms}\n/bar\" , \"http://foo/%82%A0/bar\" }\n , {\n \"Shift_JIS\" , base : : UTF8ToUTF16 ( \"\\xe3\\x81\\x82 \\xe3\\x81\\x84\" ) , \"http://foo/{\nsearchTerms}\n/bar\" , \"http://foo/%82%A0%20%82%A2/bar\" }\n , }\n ;\n TemplateURLData data ;\n for ( size_t i = 0 ;\n i < arraysize ( test_data ) ;\n ++ i ) {\n data . SetURL ( test_data [ i ] . url ) ;\n data . input_encodings . clear ( ) ;\n data . input_encodings . push_back ( test_data [ i ] . encoding ) ;\n TemplateURL url ( data ) ;\n EXPECT_TRUE ( url . url_ref ( ) . IsValid ( search_terms_data_ ) ) ;\n ASSERT_TRUE ( url . url_ref ( ) . SupportsReplacement ( search_terms_data_ ) ) ;\n GURL result ( url . url_ref ( ) . ReplaceSearchTerms ( TemplateURLRef : : SearchTermsArgs ( test_data [ i ] . search_term ) , search_terms_data_ ) ) ;\n ASSERT_TRUE ( result . is_valid ( ) ) ;\n EXPECT_EQ ( test_data [ i ] . expected_result , result . spec ( ) ) ;\n }\n }"}
{"idx": 17004, "target": 0, "func": "server_info * create_sim_server ( address_node * addr , double server_offset , script_info_fifo * script ) {\n # ifndef SIM return NULL ;\n # else server_info * my_info ;\n my_info = emalloc_zero ( sizeof ( * my_info ) ) ;\n my_info -> server_time = server_offset ;\n my_info -> addr = get_next_address ( addr ) ;\n my_info -> script = script ;\n UNLINK_FIFO ( my_info -> curr_script , * my_info -> script , link ) ;\n return my_info ;\n # endif }"}
{"idx": 17005, "target": 0, "func": "u_long leap_month ( u_long sec ) {\n int leap ;\n int32 year , month ;\n u_int32 ndays ;\n ntpcal_split tmp ;\n vint64 tvl ;\n tvl = ntpcal_ntp_to_ntp ( sec , NULL ) ;\n tmp = ntpcal_daysplit ( & tvl ) ;\n tmp = ntpcal_split_eradays ( tmp . hi + DAY_NTP_STARTS - 1 , & leap ) ;\n year = tmp . hi ;\n tmp = ntpcal_split_yeardays ( tmp . lo , leap ) ;\n month = tmp . hi ;\n ndays = ntpcal_edate_to_eradays ( year , month + 1 , 0 ) + 1 - DAY_NTP_STARTS ;\n return ( u_int32 ) ( ndays * SECSPERDAY - sec ) ;\n }"}
{"idx": 17006, "target": 1, "func": "static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 17007, "target": 0, "func": "static int dissect_h245_H263Options ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_H263Options , H263Options_sequence ) ;\n return offset ;\n }"}
{"idx": 17008, "target": 0, "func": "static void test_view_sp_list_fields ( ) {\n int rc ;\n MYSQL_RES * res ;\n myheader ( \"test_view_sp_list_fields\" ) ;\n rc = mysql_query ( mysql , \"DROP FUNCTION IF EXISTS f1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS v1, t1, t2\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP VIEW IF EXISTS v1, t1, t2\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create function f1 () returns int return 5\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t1 (s1 char,s2 char)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t2 (s1 int);\n\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create view v1 as select s2,sum(s1) - \\ count(s2) as vx from t1 group by s2 having sum(s1) - count(s2) < (select f1() \\ from t2);\n\" ) ;\n myquery ( rc ) ;\n res = mysql_list_fields ( mysql , \"v1\" , NullS ) ;\n DIE_UNLESS ( res != 0 && mysql_num_fields ( res ) != 0 ) ;\n rc = mysql_query ( mysql , \"DROP FUNCTION f1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP VIEW v1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP TABLE t1, t2\" ) ;\n mysql_free_result ( res ) ;\n myquery ( rc ) ;\n }"}
{"idx": 17009, "target": 0, "func": "static void kadmin_free_tl_data ( krb5_int16 * n_tl_datap , krb5_tl_data * * tl_datap ) {\n krb5_tl_data * tl_data = * tl_datap , * next ;\n int n_tl_data = * n_tl_datap ;\n int i ;\n * n_tl_datap = 0 ;\n * tl_datap = NULL ;\n for ( i = 0 ;\n tl_data && ( i < n_tl_data ) ;\n i ++ ) {\n next = tl_data -> tl_data_next ;\n free ( tl_data -> tl_data_contents ) ;\n free ( tl_data ) ;\n tl_data = next ;\n }\n }"}
{"idx": 17010, "target": 0, "func": "static int dissect_h245_T_requestTerminalCertificate ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_requestTerminalCertificate , T_requestTerminalCertificate_sequence ) ;\n return offset ;\n }"}
{"idx": 17011, "target": 0, "func": "static void PREP_io_800_writeb ( void * opaque , uint32_t addr , uint32_t val ) {\n sysctrl_t * sysctrl = opaque ;\n PPC_IO_DPRINTF ( \"0x%08\" PRIx32 \" => 0x%02\" PRIx32 \"\\n\" , addr - PPC_IO_BASE , val ) ;\n switch ( addr ) {\n case 0x0092 : if ( val & 0x01 ) {\n qemu_irq_raise ( sysctrl -> reset_irq ) ;\n }\n else {\n qemu_irq_lower ( sysctrl -> reset_irq ) ;\n }\n if ( val & 0x02 ) {\n sysctrl -> endian = 1 ;\n }\n else {\n sysctrl -> endian = 0 ;\n }\n break ;\n case 0x0800 : break ;\n case 0x0802 : break ;\n case 0x0803 : break ;\n case 0x0808 : if ( val & 1 ) sysctrl -> state |= STATE_HARDFILE ;\n else sysctrl -> state &= ~ STATE_HARDFILE ;\n break ;\n case 0x0810 : if ( sysctrl -> nvram != NULL ) m48t59_toggle_lock ( sysctrl -> nvram , 1 ) ;\n break ;\n case 0x0812 : if ( sysctrl -> nvram != NULL ) m48t59_toggle_lock ( sysctrl -> nvram , 2 ) ;\n break ;\n case 0x0814 : break ;\n case 0x081C : sysctrl -> syscontrol = val & 0x0F ;\n break ;\n case 0x0850 : sysctrl -> contiguous_map = val & 0x01 ;\n break ;\n default : printf ( \"ERROR: unaffected IO port write: %04\" PRIx32 \" => %02\" PRIx32 \"\\n\" , addr , val ) ;\n break ;\n }\n }"}
{"idx": 17012, "target": 0, "func": "int dissect_ber_null ( gboolean implicit_tag , asn1_ctx_t * actx , proto_tree * tree , tvbuff_t * tvb , int offset , gint hf_id ) {\n gint8 ber_class ;\n gboolean pc ;\n gint32 tag ;\n guint32 len ;\n int offset_old ;\n proto_item * cause ;\n if ( ! implicit_tag ) {\n offset_old = offset ;\n offset = dissect_ber_identifier ( actx -> pinfo , tree , tvb , offset , & ber_class , & pc , & tag ) ;\n if ( pc || ( ! implicit_tag && ( ( ber_class != BER_CLASS_UNI ) || ( tag != BER_UNI_TAG_NULL ) ) ) ) {\n cause = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset_old , offset - offset_old , \"null_expected\" , \"NULL expected but class:%s(%d) %s tag:%d was unexpected\" , val_to_str_const ( ber_class , ber_class_codes , \"Unknown\" ) , ber_class , pc ? ber_pc_codes_short . true_string : ber_pc_codes_short . false_string , tag ) ;\n expert_add_info ( actx -> pinfo , cause , & ei_ber_expected_null ) ;\n }\n offset_old = offset ;\n offset = dissect_ber_length ( actx -> pinfo , tree , tvb , offset , & len , NULL ) ;\n if ( len ) {\n proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset_old , offset - offset_old , \"illegal_length\" , \"NULL expect zero length but Length=%d\" , len ) ;\n cause = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset , len , \"unexpected_data\" , \"unexpected data in NULL type\" ) ;\n expert_add_info ( actx -> pinfo , cause , & ei_ber_expected_null_zero_length ) ;\n offset += len ;\n }\n }\n if ( hf_id >= 0 ) proto_tree_add_item ( tree , hf_id , tvb , offset , 0 , ENC_BIG_ENDIAN ) ;\n return offset ;\n }"}
{"idx": 17013, "target": 0, "func": "static PyObject * string_islower ( PyStringObject * self ) {\n register const unsigned char * p = ( unsigned char * ) PyString_AS_STRING ( self ) ;\n register const unsigned char * e ;\n int cased ;\n if ( PyString_GET_SIZE ( self ) == 1 ) return PyBool_FromLong ( islower ( * p ) != 0 ) ;\n if ( PyString_GET_SIZE ( self ) == 0 ) return PyBool_FromLong ( 0 ) ;\n e = p + PyString_GET_SIZE ( self ) ;\n cased = 0 ;\n for ( ;\n p < e ;\n p ++ ) {\n if ( isupper ( * p ) ) return PyBool_FromLong ( 0 ) ;\n else if ( ! cased && islower ( * p ) ) cased = 1 ;\n }\n return PyBool_FromLong ( cased ) ;\n }"}
{"idx": 17014, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PrefsFunctionalTest , PRE_TestHomepagePrefs ) {\n GURL home_page_url ( \"http://www.google.com\" ) ;\n PrefService * prefs = browser ( ) -> profile ( ) -> GetPrefs ( ) ;\n prefs -> SetBoolean ( prefs : : kHomePageIsNewTabPage , false ) ;\n const PrefService : : Preference * pref = prefs -> FindPreference ( prefs : : kHomePage ) ;\n if ( pref && ! pref -> IsManaged ( ) ) {\n prefs -> SetString ( prefs : : kHomePage , home_page_url . spec ( ) ) ;\n }\n }"}
{"idx": 17015, "target": 0, "func": "static jboolean IsDownloadDangerous ( JNIEnv * env , const JavaParamRef < jclass > & clazz , const JavaParamRef < jstring > & filename ) {\n base : : FilePath path ( base : : android : : ConvertJavaStringToUTF8 ( env , filename ) ) ;\n return download_util : : GetFileDangerLevel ( path ) != download_util : : NOT_DANGEROUS ;\n }"}
{"idx": 17016, "target": 0, "func": "static int dissect_pvfs2_rmdirent_request ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n offset = dissect_pvfs_string ( tvb , tree , hf_pvfs_path , offset , NULL ) ;\n offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"handle\" , NULL ) ;\n offset = dissect_pvfs_fs_id ( tvb , tree , offset ) ;\n offset += 4 ;\n offset = dissect_pvfs_time ( tvb , tree , offset , hf_pvfs_atime , hf_pvfs_atime_sec , hf_pvfs_atime_nsec ) ;\n offset = dissect_pvfs_time ( tvb , tree , offset , hf_pvfs_mtime , hf_pvfs_mtime_sec , hf_pvfs_mtime_nsec ) ;\n offset = dissect_pvfs_time ( tvb , tree , offset , hf_pvfs_ctime , hf_pvfs_ctime_sec , hf_pvfs_ctime_nsec ) ;\n return offset ;\n }"}
{"idx": 17017, "target": 0, "func": "static int dissect_q931 ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n dissect_q931_pdu ( tvb , pinfo , tree , FALSE ) ;\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 17018, "target": 0, "func": "static void rv34_pred_mv ( RV34DecContext * r , int block_type , int subblock_no , int dmv_no ) {\n MpegEncContext * s = & r -> s ;\n int mv_pos = s -> mb_x * 2 + s -> mb_y * 2 * s -> b8_stride ;\n int A [ 2 ] = {\n 0 }\n , B [ 2 ] , C [ 2 ] ;\n int i , j ;\n int mx , my ;\n int * avail = r -> avail_cache + avail_indexes [ subblock_no ] ;\n int c_off = part_sizes_w [ block_type ] ;\n mv_pos += ( subblock_no & 1 ) + ( subblock_no >> 1 ) * s -> b8_stride ;\n if ( subblock_no == 3 ) c_off = - 1 ;\n if ( avail [ - 1 ] ) {\n A [ 0 ] = s -> current_picture_ptr -> motion_val [ 0 ] [ mv_pos - 1 ] [ 0 ] ;\n A [ 1 ] = s -> current_picture_ptr -> motion_val [ 0 ] [ mv_pos - 1 ] [ 1 ] ;\n }\n if ( avail [ - 4 ] ) {\n B [ 0 ] = s -> current_picture_ptr -> motion_val [ 0 ] [ mv_pos - s -> b8_stride ] [ 0 ] ;\n B [ 1 ] = s -> current_picture_ptr -> motion_val [ 0 ] [ mv_pos - s -> b8_stride ] [ 1 ] ;\n }\n else {\n B [ 0 ] = A [ 0 ] ;\n B [ 1 ] = A [ 1 ] ;\n }\n if ( ! avail [ c_off - 4 ] ) {\n if ( avail [ - 4 ] && ( avail [ - 1 ] || r -> rv30 ) ) {\n C [ 0 ] = s -> current_picture_ptr -> motion_val [ 0 ] [ mv_pos - s -> b8_stride - 1 ] [ 0 ] ;\n C [ 1 ] = s -> current_picture_ptr -> motion_val [ 0 ] [ mv_pos - s -> b8_stride - 1 ] [ 1 ] ;\n }\n else {\n C [ 0 ] = A [ 0 ] ;\n C [ 1 ] = A [ 1 ] ;\n }\n }\n else {\n C [ 0 ] = s -> current_picture_ptr -> motion_val [ 0 ] [ mv_pos - s -> b8_stride + c_off ] [ 0 ] ;\n C [ 1 ] = s -> current_picture_ptr -> motion_val [ 0 ] [ mv_pos - s -> b8_stride + c_off ] [ 1 ] ;\n }\n mx = mid_pred ( A [ 0 ] , B [ 0 ] , C [ 0 ] ) ;\n my = mid_pred ( A [ 1 ] , B [ 1 ] , C [ 1 ] ) ;\n mx += r -> dmv [ dmv_no ] [ 0 ] ;\n my += r -> dmv [ dmv_no ] [ 1 ] ;\n for ( j = 0 ;\n j < part_sizes_h [ block_type ] ;\n j ++ ) {\n for ( i = 0 ;\n i < part_sizes_w [ block_type ] ;\n i ++ ) {\n s -> current_picture_ptr -> motion_val [ 0 ] [ mv_pos + i + j * s -> b8_stride ] [ 0 ] = mx ;\n s -> current_picture_ptr -> motion_val [ 0 ] [ mv_pos + i + j * s -> b8_stride ] [ 1 ] = my ;\n }\n }\n }"}
{"idx": 17019, "target": 1, "func": "static int bink_decode_plane ( BinkContext * c , GetBitContext * gb , int plane_idx , int is_chroma ) {\n int blk , ret ;\n int i , j , bx , by ;\n uint8_t * dst , * prev , * ref , * ref_start , * ref_end ;\n int v , col [ 2 ] ;\n const uint8_t * scan ;\n int xoff , yoff ;\n LOCAL_ALIGNED_16 ( int16_t , block , [ 64 ] ) ;\n LOCAL_ALIGNED_16 ( uint8_t , ublock , [ 64 ] ) ;\n LOCAL_ALIGNED_16 ( int32_t , dctblock , [ 64 ] ) ;\n int coordmap [ 64 ] ;\n const int stride = c -> pic -> linesize [ plane_idx ] ;\n int bw = is_chroma ? ( c -> avctx -> width + 15 ) >> 4 : ( c -> avctx -> width + 7 ) >> 3 ;\n int bh = is_chroma ? ( c -> avctx -> height + 15 ) >> 4 : ( c -> avctx -> height + 7 ) >> 3 ;\n int width = c -> avctx -> width >> is_chroma ;\n init_lengths ( c , FFMAX ( width , 8 ) , bw ) ;\n for ( i = 0 ;\n i < BINK_NB_SRC ;\n i ++ ) read_bundle ( gb , c , i ) ;\n ref_start = c -> last -> data [ plane_idx ] ? c -> last -> data [ plane_idx ] : c -> pic -> data [ plane_idx ] ;\n ref_end = ref_start + ( bw - 1 + c -> last -> linesize [ plane_idx ] * ( bh - 1 ) ) * 8 ;\n for ( i = 0 ;\n i < 64 ;\n i ++ ) coordmap [ i ] = ( i & 7 ) + ( i >> 3 ) * stride ;\n for ( by = 0 ;\n by < bh ;\n by ++ ) {\n if ( ( ret = read_block_types ( c -> avctx , gb , & c -> bundle [ BINK_SRC_BLOCK_TYPES ] ) ) < 0 ) return ret ;\n if ( ( ret = read_block_types ( c -> avctx , gb , & c -> bundle [ BINK_SRC_SUB_BLOCK_TYPES ] ) ) < 0 ) return ret ;\n if ( ( ret = read_colors ( gb , & c -> bundle [ BINK_SRC_COLORS ] , c ) ) < 0 ) return ret ;\n if ( ( ret = read_patterns ( c -> avctx , gb , & c -> bundle [ BINK_SRC_PATTERN ] ) ) < 0 ) return ret ;\n if ( ( ret = read_motion_values ( c -> avctx , gb , & c -> bundle [ BINK_SRC_X_OFF ] ) ) < 0 ) return ret ;\n if ( ( ret = read_motion_values ( c -> avctx , gb , & c -> bundle [ BINK_SRC_Y_OFF ] ) ) < 0 ) return ret ;\n if ( ( ret = read_dcs ( c -> avctx , gb , & c -> bundle [ BINK_SRC_INTRA_DC ] , DC_START_BITS , 0 ) ) < 0 ) return ret ;\n if ( ( ret = read_dcs ( c -> avctx , gb , & c -> bundle [ BINK_SRC_INTER_DC ] , DC_START_BITS , 1 ) ) < 0 ) return ret ;\n if ( ( ret = read_runs ( c -> avctx , gb , & c -> bundle [ BINK_SRC_RUN ] ) ) < 0 ) return ret ;\n if ( by == bh ) break ;\n dst = c -> pic -> data [ plane_idx ] + 8 * by * stride ;\n prev = ( c -> last -> data [ plane_idx ] ? c -> last -> data [ plane_idx ] : c -> pic -> data [ plane_idx ] ) + 8 * by * stride ;\n for ( bx = 0 ;\n bx < bw ;\n bx ++ , dst += 8 , prev += 8 ) {\n blk = get_value ( c , BINK_SRC_BLOCK_TYPES ) ;\n if ( ( by & 1 ) && blk == SCALED_BLOCK ) {\n bx ++ ;\n dst += 8 ;\n prev += 8 ;\n continue ;\n }\n switch ( blk ) {\n case SKIP_BLOCK : c -> dsp . put_pixels_tab [ 1 ] [ 0 ] ( dst , prev , stride , 8 ) ;\n break ;\n case SCALED_BLOCK : blk = get_value ( c , BINK_SRC_SUB_BLOCK_TYPES ) ;\n switch ( blk ) {\n case RUN_BLOCK : scan = bink_patterns [ get_bits ( gb , 4 ) ] ;\n i = 0 ;\n do {\n int run = get_value ( c , BINK_SRC_RUN ) + 1 ;\n i += run ;\n if ( i > 64 ) {\n av_log ( c -> avctx , AV_LOG_ERROR , \"Run went out of bounds\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( get_bits1 ( gb ) ) {\n v = get_value ( c , BINK_SRC_COLORS ) ;\n for ( j = 0 ;\n j < run ;\n j ++ ) ublock [ * scan ++ ] = v ;\n }\n else {\n for ( j = 0 ;\n j < run ;\n j ++ ) ublock [ * scan ++ ] = get_value ( c , BINK_SRC_COLORS ) ;\n }\n }\n while ( i < 63 ) ;\n if ( i == 63 ) ublock [ * scan ++ ] = get_value ( c , BINK_SRC_COLORS ) ;\n break ;\n case INTRA_BLOCK : memset ( dctblock , 0 , sizeof ( * dctblock ) * 64 ) ;\n dctblock [ 0 ] = get_value ( c , BINK_SRC_INTRA_DC ) ;\n read_dct_coeffs ( gb , dctblock , bink_scan , bink_intra_quant , - 1 ) ;\n c -> bdsp . idct_put ( ublock , 8 , dctblock ) ;\n break ;\n case FILL_BLOCK : v = get_value ( c , BINK_SRC_COLORS ) ;\n c -> dsp . fill_block_tab [ 0 ] ( dst , v , stride , 16 ) ;\n break ;\n case PATTERN_BLOCK : for ( i = 0 ;\n i < 2 ;\n i ++ ) col [ i ] = get_value ( c , BINK_SRC_COLORS ) ;\n for ( j = 0 ;\n j < 8 ;\n j ++ ) {\n v = get_value ( c , BINK_SRC_PATTERN ) ;\n for ( i = 0 ;\n i < 8 ;\n i ++ , v >>= 1 ) ublock [ i + j * 8 ] = col [ v & 1 ] ;\n }\n break ;\n case RAW_BLOCK : for ( j = 0 ;\n j < 8 ;\n j ++ ) for ( i = 0 ;\n i < 8 ;\n i ++ ) ublock [ i + j * 8 ] = get_value ( c , BINK_SRC_COLORS ) ;\n break ;\n default : av_log ( c -> avctx , AV_LOG_ERROR , \"Incorrect 16x16 block type %d\\n\" , blk ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( blk != FILL_BLOCK ) c -> bdsp . scale_block ( ublock , dst , stride ) ;\n bx ++ ;\n dst += 8 ;\n prev += 8 ;\n break ;\n case MOTION_BLOCK : xoff = get_value ( c , BINK_SRC_X_OFF ) ;\n yoff = get_value ( c , BINK_SRC_Y_OFF ) ;\n ref = prev + xoff + yoff * stride ;\n if ( ref < ref_start || ref > ref_end ) {\n av_log ( c -> avctx , AV_LOG_ERROR , \"Copy out of bounds @%d, %d\\n\" , bx * 8 + xoff , by * 8 + yoff ) ;\n return AVERROR_INVALIDDATA ;\n }\n c -> dsp . put_pixels_tab [ 1 ] [ 0 ] ( dst , ref , stride , 8 ) ;\n break ;\n case RUN_BLOCK : scan = bink_patterns [ get_bits ( gb , 4 ) ] ;\n i = 0 ;\n do {\n int run = get_value ( c , BINK_SRC_RUN ) + 1 ;\n i += run ;\n if ( i > 64 ) {\n av_log ( c -> avctx , AV_LOG_ERROR , \"Run went out of bounds\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( get_bits1 ( gb ) ) {\n v = get_value ( c , BINK_SRC_COLORS ) ;\n for ( j = 0 ;\n j < run ;\n j ++ ) dst [ coordmap [ * scan ++ ] ] = v ;\n }\n else {\n for ( j = 0 ;\n j < run ;\n j ++ ) dst [ coordmap [ * scan ++ ] ] = get_value ( c , BINK_SRC_COLORS ) ;\n }\n }\n while ( i < 63 ) ;\n if ( i == 63 ) dst [ coordmap [ * scan ++ ] ] = get_value ( c , BINK_SRC_COLORS ) ;\n break ;\n case RESIDUE_BLOCK : xoff = get_value ( c , BINK_SRC_X_OFF ) ;\n yoff = get_value ( c , BINK_SRC_Y_OFF ) ;\n ref = prev + xoff + yoff * stride ;\n if ( ref < ref_start || ref > ref_end ) {\n av_log ( c -> avctx , AV_LOG_ERROR , \"Copy out of bounds @%d, %d\\n\" , bx * 8 + xoff , by * 8 + yoff ) ;\n return AVERROR_INVALIDDATA ;\n }\n c -> dsp . put_pixels_tab [ 1 ] [ 0 ] ( dst , ref , stride , 8 ) ;\n c -> dsp . clear_block ( block ) ;\n v = get_bits ( gb , 7 ) ;\n read_residue ( gb , block , v ) ;\n c -> dsp . add_pixels8 ( dst , block , stride ) ;\n break ;\n case INTRA_BLOCK : memset ( dctblock , 0 , sizeof ( * dctblock ) * 64 ) ;\n dctblock [ 0 ] = get_value ( c , BINK_SRC_INTRA_DC ) ;\n read_dct_coeffs ( gb , dctblock , bink_scan , bink_intra_quant , - 1 ) ;\n c -> bdsp . idct_put ( dst , stride , dctblock ) ;\n break ;\n case FILL_BLOCK : v = get_value ( c , BINK_SRC_COLORS ) ;\n c -> dsp . fill_block_tab [ 1 ] ( dst , v , stride , 8 ) ;\n break ;\n case INTER_BLOCK : xoff = get_value ( c , BINK_SRC_X_OFF ) ;\n yoff = get_value ( c , BINK_SRC_Y_OFF ) ;\n ref = prev + xoff + yoff * stride ;\n c -> dsp . put_pixels_tab [ 1 ] [ 0 ] ( dst , ref , stride , 8 ) ;\n memset ( dctblock , 0 , sizeof ( * dctblock ) * 64 ) ;\n dctblock [ 0 ] = get_value ( c , BINK_SRC_INTER_DC ) ;\n read_dct_coeffs ( gb , dctblock , bink_scan , bink_inter_quant , - 1 ) ;\n c -> bdsp . idct_add ( dst , stride , dctblock ) ;\n break ;\n case PATTERN_BLOCK : for ( i = 0 ;\n i < 2 ;\n i ++ ) col [ i ] = get_value ( c , BINK_SRC_COLORS ) ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n v = get_value ( c , BINK_SRC_PATTERN ) ;\n for ( j = 0 ;\n j < 8 ;\n j ++ , v >>= 1 ) dst [ i * stride + j ] = col [ v & 1 ] ;\n }\n break ;\n case RAW_BLOCK : for ( i = 0 ;\n i < 8 ;\n i ++ ) memcpy ( dst + i * stride , c -> bundle [ BINK_SRC_COLORS ] . cur_ptr + i * 8 , 8 ) ;\n c -> bundle [ BINK_SRC_COLORS ] . cur_ptr += 64 ;\n break ;\n default : av_log ( c -> avctx , AV_LOG_ERROR , \"Unknown block type %d\\n\" , blk ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n }\n if ( get_bits_count ( gb ) & 0x1F ) / ext plane data starts at 32 - bit boundary skip_bits_long ( gb , 32 - ( get_bits_count ( gb ) & 0x1F ) ) ;\n return 0 ;\n }"}
{"idx": 17020, "target": 0, "func": "int decode_and_write_pair ( PyObject * self , buffer_t buffer , PyObject * key , PyObject * value , unsigned char check_keys , unsigned char uuid_subtype , unsigned char top_level ) {\n PyObject * encoded ;\n if ( PyUnicode_Check ( key ) ) {\n result_t status ;\n encoded = PyUnicode_AsUTF8String ( key ) ;\n if ( ! encoded ) {\n return 0 ;\n }\n # if PY_MAJOR_VERSION >= 3 status = check_string ( ( const unsigned char * ) PyBytes_AsString ( encoded ) , PyBytes_Size ( encoded ) , 0 , 1 ) ;\n # else status = check_string ( ( const unsigned char * ) PyString_AsString ( encoded ) , PyString_Size ( encoded ) , 0 , 1 ) ;\n # endif if ( status == HAS_NULL ) {\n PyObject * InvalidDocument = _error ( \"InvalidDocument\" ) ;\n PyErr_SetString ( InvalidDocument , \"Key names must not contain the NULL byte\" ) ;\n Py_DECREF ( InvalidDocument ) ;\n return 0 ;\n }\n # if PY_MAJOR_VERSION < 3 }\n else if ( PyString_Check ( key ) ) {\n result_t status ;\n encoded = key ;\n Py_INCREF ( encoded ) ;\n status = check_string ( ( const unsigned char * ) PyString_AsString ( encoded ) , PyString_Size ( encoded ) , 1 , 1 ) ;\n if ( status == NOT_UTF_8 ) {\n PyObject * InvalidStringData = _error ( \"InvalidStringData\" ) ;\n PyErr_SetString ( InvalidStringData , \"strings in documents must be valid UTF-8\" ) ;\n Py_DECREF ( InvalidStringData ) ;\n return 0 ;\n }\n else if ( status == HAS_NULL ) {\n PyObject * InvalidDocument = _error ( \"InvalidDocument\" ) ;\n PyErr_SetString ( InvalidDocument , \"Key names must not contain the NULL byte\" ) ;\n Py_DECREF ( InvalidDocument ) ;\n return 0 ;\n }\n # endif }\n else {\n PyObject * InvalidDocument = _error ( \"InvalidDocument\" ) ;\n PyObject * repr = PyObject_Repr ( key ) ;\n # if PY_MAJOR_VERSION >= 3 PyObject * errmsg = PyUnicode_FromString ( \"documents must have only string keys, key was \" ) ;\n PyObject * error = PyUnicode_Concat ( errmsg , repr ) ;\n PyErr_SetObject ( InvalidDocument , error ) ;\n Py_DECREF ( error ) ;\n # else PyObject * errmsg = PyString_FromString ( \"documents must have only string keys, key was \" ) ;\n PyString_ConcatAndDel ( & errmsg , repr ) ;\n PyErr_SetString ( InvalidDocument , PyString_AsString ( errmsg ) ) ;\n # endif Py_DECREF ( InvalidDocument ) ;\n Py_DECREF ( errmsg ) ;\n return 0 ;\n }\n # if PY_MAJOR_VERSION >= 3 if ( ! write_pair ( self , buffer , PyBytes_AsString ( encoded ) , PyBytes_Size ( encoded ) , value , check_keys , uuid_subtype , ! top_level ) ) {\n # else if ( ! write_pair ( self , buffer , PyString_AsString ( encoded ) , PyString_Size ( encoded ) , value , check_keys , uuid_subtype , ! top_level ) ) {\n # endif Py_DECREF ( encoded ) ;\n return 0 ;\n }\n Py_DECREF ( encoded ) ;\n return 1 ;\n }"}
{"idx": 17021, "target": 0, "func": "int qemuAgentUpdateCPUInfo ( unsigned int nvcpus , qemuAgentCPUInfoPtr cpuinfo , int ncpuinfo ) {\n size_t i ;\n int nonline = 0 ;\n int nofflinable = 0 ;\n ssize_t cpu0 = - 1 ;\n for ( i = 0 ;\n i < ncpuinfo ;\n i ++ ) {\n if ( cpuinfo [ i ] . id == 0 ) cpu0 = i ;\n if ( cpuinfo [ i ] . online ) nonline ++ ;\n if ( cpuinfo [ i ] . offlinable && cpuinfo [ i ] . online ) nofflinable ++ ;\n if ( ! cpuinfo [ i ] . online && ! cpuinfo [ i ] . offlinable ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"Invalid data provided by guest agent\" ) ) ;\n return - 1 ;\n }\n }\n if ( nofflinable == nonline && cpu0 >= 0 && cpuinfo [ cpu0 ] . online ) {\n cpuinfo [ cpu0 ] . offlinable = false ;\n nofflinable -- ;\n }\n if ( nvcpus > ncpuinfo ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"guest agent reports less cpu than requested\" ) ) ;\n return - 1 ;\n }\n if ( nvcpus < nonline - nofflinable ) {\n virReportError ( VIR_ERR_INVALID_ARG , \"%s\" , _ ( \"Cannot offline enough CPUs\" ) ) ;\n return - 1 ;\n }\n for ( i = 0 ;\n i < ncpuinfo ;\n i ++ ) {\n if ( nvcpus < nonline ) {\n if ( cpuinfo [ i ] . offlinable && cpuinfo [ i ] . online ) {\n cpuinfo [ i ] . online = false ;\n cpuinfo [ i ] . modified = true ;\n nonline -- ;\n }\n }\n else if ( nvcpus > nonline ) {\n if ( ! cpuinfo [ i ] . online ) {\n cpuinfo [ i ] . online = true ;\n cpuinfo [ i ] . modified = true ;\n nonline ++ ;\n }\n }\n else {\n break ;\n }\n }\n return 0 ;\n }"}
{"idx": 17022, "target": 0, "func": "static void cred_init_security ( void ) {\n struct cred * cred = ( struct cred * ) current -> real_cred ;\n struct task_security_struct * tsec ;\n tsec = kzalloc ( sizeof ( struct task_security_struct ) , GFP_KERNEL ) ;\n if ( ! tsec ) panic ( \"SELinux: Failed to initialize initial task.\\n\" ) ;\n tsec -> osid = tsec -> sid = SECINITSID_KERNEL ;\n cred -> security = tsec ;\n }"}
{"idx": 17023, "target": 0, "func": "static void xps_draw_radial_gradient ( xps_document * doc , const fz_matrix * ctm , const fz_rect * area , struct stop * stops , int count , fz_xml * root , int spread ) {\n float x0 , y0 , r0 ;\n float x1 , y1 , r1 ;\n float xrad = 1 ;\n float yrad = 1 ;\n float invscale ;\n int i , ma = 1 ;\n fz_matrix local_ctm = * ctm ;\n fz_matrix inv ;\n fz_rect local_area = * area ;\n char * center_att = fz_xml_att ( root , \"Center\" ) ;\n char * origin_att = fz_xml_att ( root , \"GradientOrigin\" ) ;\n char * radius_x_att = fz_xml_att ( root , \"RadiusX\" ) ;\n char * radius_y_att = fz_xml_att ( root , \"RadiusY\" ) ;\n x0 = y0 = 0.0 ;\n x1 = y1 = 1.0 ;\n xrad = 1.0 ;\n yrad = 1.0 ;\n if ( origin_att ) xps_parse_point ( origin_att , & x0 , & y0 ) ;\n if ( center_att ) xps_parse_point ( center_att , & x1 , & y1 ) ;\n if ( radius_x_att ) xrad = fz_atof ( radius_x_att ) ;\n if ( radius_y_att ) yrad = fz_atof ( radius_y_att ) ;\n xrad = fz_max ( 0.01f , xrad ) ;\n yrad = fz_max ( 0.01f , yrad ) ;\n if ( fz_abs ( xrad ) > FLT_EPSILON ) {\n fz_pre_scale ( & local_ctm , 1 , yrad / xrad ) ;\n }\n if ( yrad != 0.0 ) {\n invscale = xrad / yrad ;\n y0 = y0 * invscale ;\n y1 = y1 * invscale ;\n }\n r0 = 0 ;\n r1 = xrad ;\n fz_transform_rect ( & local_area , fz_invert_matrix ( & inv , & local_ctm ) ) ;\n ma = fz_maxi ( ma , ceilf ( hypotf ( local_area . x0 - x0 , local_area . y0 - y0 ) / xrad ) ) ;\n ma = fz_maxi ( ma , ceilf ( hypotf ( local_area . x1 - x0 , local_area . y0 - y0 ) / xrad ) ) ;\n ma = fz_maxi ( ma , ceilf ( hypotf ( local_area . x0 - x0 , local_area . y1 - y0 ) / xrad ) ) ;\n ma = fz_maxi ( ma , ceilf ( hypotf ( local_area . x1 - x0 , local_area . y1 - y0 ) / xrad ) ) ;\n if ( spread == SPREAD_REPEAT ) {\n for ( i = ma - 1 ;\n i >= 0 ;\n i -- ) xps_draw_one_radial_gradient ( doc , & local_ctm , stops , count , 0 , x0 , y0 , r0 + i * xrad , x1 , y1 , r1 + i * xrad ) ;\n }\n else if ( spread == SPREAD_REFLECT ) {\n if ( ( ma % 2 ) != 0 ) ma ++ ;\n for ( i = ma - 2 ;\n i >= 0 ;\n i -= 2 ) {\n xps_draw_one_radial_gradient ( doc , & local_ctm , stops , count , 0 , x0 , y0 , r0 + i * xrad , x1 , y1 , r1 + i * xrad ) ;\n xps_draw_one_radial_gradient ( doc , & local_ctm , stops , count , 0 , x0 , y0 , r0 + ( i + 2 ) * xrad , x1 , y1 , r1 + i * xrad ) ;\n }\n }\n else {\n xps_draw_one_radial_gradient ( doc , & local_ctm , stops , count , 1 , x0 , y0 , r0 , x1 , y1 , r1 ) ;\n }\n }"}
{"idx": 17024, "target": 1, "func": "static void handle_null_request ( int tun_fd , int dns_fd , struct query * q , int domain_len ) {\n struct in_addr tempip ;\n char in [ 512 ] ;\n char logindata [ 16 ] ;\n char out [ 64 * 1024 ] ;\n char unpacked [ 64 * 1024 ] ;\n char * tmp [ 2 ] ;\n int userid ;\n int read ;\n userid = - 1 ;\n if ( domain_len < 2 ) return ;\n memcpy ( in , q -> name , MIN ( domain_len , sizeof ( in ) ) ) ;\n if ( in [ 0 ] == 'V' || in [ 0 ] == 'v' ) {\n int version = 0 ;\n read = unpack_data ( unpacked , sizeof ( unpacked ) , & ( in [ 1 ] ) , domain_len - 1 , b32 ) ;\n if ( read > 4 ) {\n version = ( ( ( unpacked [ 0 ] & 0xff ) << 24 ) | ( ( unpacked [ 1 ] & 0xff ) << 16 ) | ( ( unpacked [ 2 ] & 0xff ) << 8 ) | ( ( unpacked [ 3 ] & 0xff ) ) ) ;\n }\n if ( version == VERSION ) {\n userid = find_available_user ( ) ;\n if ( userid >= 0 ) {\n int i ;\n struct sockaddr_in * tempin ;\n users [ userid ] . seed = rand ( ) ;\n tempin = ( struct sockaddr_in * ) & ( q -> from ) ;\n memcpy ( & ( users [ userid ] . host ) , & ( tempin -> sin_addr ) , sizeof ( struct in_addr ) ) ;\n memcpy ( & ( users [ userid ] . q ) , q , sizeof ( struct query ) ) ;\n users [ userid ] . encoder = get_base32_encoder ( ) ;\n users [ userid ] . downenc = 'T' ;\n send_version_response ( dns_fd , VERSION_ACK , users [ userid ] . seed , userid , q ) ;\n syslog ( LOG_INFO , \"accepted version for user #%d from %s\" , userid , format_addr ( & q -> from , q -> fromlen ) ) ;\n users [ userid ] . q . id = 0 ;\n users [ userid ] . q . id2 = 0 ;\n users [ userid ] . q_sendrealsoon . id = 0 ;\n users [ userid ] . q_sendrealsoon . id2 = 0 ;\n users [ userid ] . q_sendrealsoon_new = 0 ;\n users [ userid ] . outpacket . len = 0 ;\n users [ userid ] . outpacket . offset = 0 ;\n users [ userid ] . outpacket . sentlen = 0 ;\n users [ userid ] . outpacket . seqno = 0 ;\n users [ userid ] . outpacket . fragment = 0 ;\n users [ userid ] . outfragresent = 0 ;\n users [ userid ] . inpacket . len = 0 ;\n users [ userid ] . inpacket . offset = 0 ;\n users [ userid ] . inpacket . seqno = 0 ;\n users [ userid ] . inpacket . fragment = 0 ;\n users [ userid ] . fragsize = 100 ;\n users [ userid ] . conn = CONN_DNS_NULL ;\n users [ userid ] . lazy = 0 ;\n # ifdef OUTPACKETQ_LEN users [ userid ] . outpacketq_nexttouse = 0 ;\n users [ userid ] . outpacketq_filled = 0 ;\n # endif # ifdef DNSCACHE_LEN {\n for ( i = 0 ;\n i < DNSCACHE_LEN ;\n i ++ ) {\n users [ userid ] . dnscache_q [ i ] . id = 0 ;\n users [ userid ] . dnscache_answerlen [ i ] = 0 ;\n }\n }\n users [ userid ] . dnscache_lastfilled = 0 ;\n # endif for ( i = 0 ;\n i < QMEMPING_LEN ;\n i ++ ) users [ userid ] . qmemping_type [ i ] = T_UNSET ;\n users [ userid ] . qmemping_lastfilled = 0 ;\n for ( i = 0 ;\n i < QMEMDATA_LEN ;\n i ++ ) users [ userid ] . qmemdata_type [ i ] = T_UNSET ;\n users [ userid ] . qmemdata_lastfilled = 0 ;\n }\n else {\n send_version_response ( dns_fd , VERSION_FULL , created_users , 0 , q ) ;\n syslog ( LOG_INFO , \"dropped user from %s, server full\" , format_addr ( & q -> from , q -> fromlen ) ) ;\n }\n }\n else {\n send_version_response ( dns_fd , VERSION_NACK , VERSION , 0 , q ) ;\n syslog ( LOG_INFO , \"dropped user from %s, sent bad version %08X\" , format_addr ( & q -> from , q -> fromlen ) , version ) ;\n }\n return ;\n }\n else if ( in [ 0 ] == 'L' || in [ 0 ] == 'l' ) {\n read = unpack_data ( unpacked , sizeof ( unpacked ) , & ( in [ 1 ] ) , domain_len - 1 , b32 ) ;\n if ( read < 17 ) {\n write_dns ( dns_fd , q , \"BADLEN\" , 6 , 'T' ) ;\n return ;\n }\n userid = unpacked [ 0 ] ;\n if ( check_user_and_ip ( userid , q ) != 0 ) {\n write_dns ( dns_fd , q , \"BADIP\" , 5 , 'T' ) ;\n syslog ( LOG_WARNING , \"dropped login request from user #%d from unexpected source %s\" , userid , format_addr ( & q -> from , q -> fromlen ) ) ;\n return ;\n }\n else {\n users [ userid ] . last_pkt = time ( NULL ) ;\n login_calculate ( logindata , 16 , password , users [ userid ] . seed ) ;\n if ( read >= 18 && ( memcmp ( logindata , unpacked + 1 , 16 ) == 0 ) ) {\n tempip . s_addr = my_ip ;\n tmp [ 0 ] = strdup ( inet_ntoa ( tempip ) ) ;\n tempip . s_addr = users [ userid ] . tun_ip ;\n tmp [ 1 ] = strdup ( inet_ntoa ( tempip ) ) ;\n read = snprintf ( out , sizeof ( out ) , \"%s-%s-%d-%d\" , tmp [ 0 ] , tmp [ 1 ] , my_mtu , netmask ) ;\n write_dns ( dns_fd , q , out , read , users [ userid ] . downenc ) ;\n q -> id = 0 ;\n syslog ( LOG_NOTICE , \"accepted password from user #%d, given IP %s\" , userid , tmp [ 1 ] ) ;\n free ( tmp [ 1 ] ) ;\n free ( tmp [ 0 ] ) ;\n }\n else {\n write_dns ( dns_fd , q , \"LNAK\" , 4 , 'T' ) ;\n syslog ( LOG_WARNING , \"rejected login request from user #%d from %s, bad password\" , userid , format_addr ( & q -> from , q -> fromlen ) ) ;\n }\n }\n return ;\n }\n else if ( in [ 0 ] == 'I' || in [ 0 ] == 'i' ) {\n in_addr_t replyaddr ;\n unsigned addr ;\n char reply [ 5 ] ;\n userid = b32_8to5 ( in [ 1 ] ) ;\n if ( check_user_and_ip ( userid , q ) != 0 ) {\n write_dns ( dns_fd , q , \"BADIP\" , 5 , 'T' ) ;\n return ;\n }\n if ( ns_ip != INADDR_ANY ) {\n replyaddr = ns_ip ;\n }\n else {\n memcpy ( & replyaddr , & q -> destination . s_addr , sizeof ( in_addr_t ) ) ;\n }\n addr = htonl ( replyaddr ) ;\n reply [ 0 ] = 'I' ;\n reply [ 1 ] = ( addr >> 24 ) & 0xFF ;\n reply [ 2 ] = ( addr >> 16 ) & 0xFF ;\n reply [ 3 ] = ( addr >> 8 ) & 0xFF ;\n reply [ 4 ] = ( addr >> 0 ) & 0xFF ;\n write_dns ( dns_fd , q , reply , sizeof ( reply ) , 'T' ) ;\n }\n else if ( in [ 0 ] == 'Z' || in [ 0 ] == 'z' ) {\n write_dns ( dns_fd , q , in , domain_len , 'T' ) ;\n return ;\n }\n else if ( in [ 0 ] == 'S' || in [ 0 ] == 's' ) {\n int codec ;\n struct encoder * enc ;\n if ( domain_len < 3 ) {\n write_dns ( dns_fd , q , \"BADLEN\" , 6 , 'T' ) ;\n return ;\n }\n userid = b32_8to5 ( in [ 1 ] ) ;\n if ( check_user_and_ip ( userid , q ) != 0 ) {\n write_dns ( dns_fd , q , \"BADIP\" , 5 , 'T' ) ;\n return ;\n }\n codec = b32_8to5 ( in [ 2 ] ) ;\n switch ( codec ) {\n case 5 : enc = get_base32_encoder ( ) ;\n user_switch_codec ( userid , enc ) ;\n write_dns ( dns_fd , q , enc -> name , strlen ( enc -> name ) , users [ userid ] . downenc ) ;\n break ;\n case 6 : enc = get_base64_encoder ( ) ;\n user_switch_codec ( userid , enc ) ;\n write_dns ( dns_fd , q , enc -> name , strlen ( enc -> name ) , users [ userid ] . downenc ) ;\n break ;\n case 26 : enc = get_base64u_encoder ( ) ;\n user_switch_codec ( userid , enc ) ;\n write_dns ( dns_fd , q , enc -> name , strlen ( enc -> name ) , users [ userid ] . downenc ) ;\n break ;\n case 7 : enc = get_base128_encoder ( ) ;\n user_switch_codec ( userid , enc ) ;\n write_dns ( dns_fd , q , enc -> name , strlen ( enc -> name ) , users [ userid ] . downenc ) ;\n break ;\n default : write_dns ( dns_fd , q , \"BADCODEC\" , 8 , users [ userid ] . downenc ) ;\n break ;\n }\n return ;\n }\n else if ( in [ 0 ] == 'O' || in [ 0 ] == 'o' ) {\n if ( domain_len < 3 ) {\n write_dns ( dns_fd , q , \"BADLEN\" , 6 , 'T' ) ;\n return ;\n }\n userid = b32_8to5 ( in [ 1 ] ) ;\n if ( check_user_and_ip ( userid , q ) != 0 ) {\n write_dns ( dns_fd , q , \"BADIP\" , 5 , 'T' ) ;\n return ;\n }\n switch ( in [ 2 ] ) {\n case 'T' : case 't' : users [ userid ] . downenc = 'T' ;\n write_dns ( dns_fd , q , \"Base32\" , 6 , users [ userid ] . downenc ) ;\n break ;\n case 'S' : case 's' : users [ userid ] . downenc = 'S' ;\n write_dns ( dns_fd , q , \"Base64\" , 6 , users [ userid ] . downenc ) ;\n break ;\n case 'U' : case 'u' : users [ userid ] . downenc = 'U' ;\n write_dns ( dns_fd , q , \"Base64u\" , 7 , users [ userid ] . downenc ) ;\n break ;\n case 'V' : case 'v' : users [ userid ] . downenc = 'V' ;\n write_dns ( dns_fd , q , \"Base128\" , 7 , users [ userid ] . downenc ) ;\n break ;\n case 'R' : case 'r' : users [ userid ] . downenc = 'R' ;\n write_dns ( dns_fd , q , \"Raw\" , 3 , users [ userid ] . downenc ) ;\n break ;\n case 'L' : case 'l' : users [ userid ] . lazy = 1 ;\n write_dns ( dns_fd , q , \"Lazy\" , 4 , users [ userid ] . downenc ) ;\n break ;\n case 'I' : case 'i' : users [ userid ] . lazy = 0 ;\n write_dns ( dns_fd , q , \"Immediate\" , 9 , users [ userid ] . downenc ) ;\n break ;\n default : write_dns ( dns_fd , q , \"BADCODEC\" , 8 , users [ userid ] . downenc ) ;\n break ;\n }\n return ;\n }\n else if ( in [ 0 ] == 'Y' || in [ 0 ] == 'y' ) {\n int i ;\n char * datap ;\n int datalen ;\n if ( domain_len < 6 ) {\n write_dns ( dns_fd , q , \"BADLEN\" , 6 , 'T' ) ;\n return ;\n }\n i = b32_8to5 ( in [ 2 ] ) ;\n switch ( i ) {\n case 1 : datap = DOWNCODECCHECK1 ;\n datalen = DOWNCODECCHECK1_LEN ;\n break ;\n default : write_dns ( dns_fd , q , \"BADLEN\" , 6 , 'T' ) ;\n return ;\n }\n switch ( in [ 1 ] ) {\n case 'T' : case 't' : if ( q -> type == T_TXT || q -> type == T_SRV || q -> type == T_MX || q -> type == T_CNAME || q -> type == T_A ) {\n write_dns ( dns_fd , q , datap , datalen , 'T' ) ;\n return ;\n }\n break ;\n case 'S' : case 's' : if ( q -> type == T_TXT || q -> type == T_SRV || q -> type == T_MX || q -> type == T_CNAME || q -> type == T_A ) {\n write_dns ( dns_fd , q , datap , datalen , 'S' ) ;\n return ;\n }\n break ;\n case 'U' : case 'u' : if ( q -> type == T_TXT || q -> type == T_SRV || q -> type == T_MX || q -> type == T_CNAME || q -> type == T_A ) {\n write_dns ( dns_fd , q , datap , datalen , 'U' ) ;\n return ;\n }\n break ;\n case 'V' : case 'v' : if ( q -> type == T_TXT || q -> type == T_SRV || q -> type == T_MX || q -> type == T_CNAME || q -> type == T_A ) {\n write_dns ( dns_fd , q , datap , datalen , 'V' ) ;\n return ;\n }\n break ;\n case 'R' : case 'r' : if ( q -> type == T_NULL || q -> type == T_TXT ) {\n write_dns ( dns_fd , q , datap , datalen , 'R' ) ;\n return ;\n }\n break ;\n }\n write_dns ( dns_fd , q , \"BADCODEC\" , 8 , 'T' ) ;\n return ;\n }\n else if ( in [ 0 ] == 'R' || in [ 0 ] == 'r' ) {\n int req_frag_size ;\n if ( domain_len < 16 ) {\n write_dns ( dns_fd , q , \"BADLEN\" , 6 , 'T' ) ;\n return ;\n }\n userid = ( b32_8to5 ( in [ 1 ] ) >> 1 ) & 15 ;\n if ( check_user_and_ip ( userid , q ) != 0 ) {\n write_dns ( dns_fd , q , \"BADIP\" , 5 , 'T' ) ;\n return ;\n }\n req_frag_size = ( ( b32_8to5 ( in [ 1 ] ) & 1 ) << 10 ) | ( ( b32_8to5 ( in [ 2 ] ) & 31 ) << 5 ) | ( b32_8to5 ( in [ 3 ] ) & 31 ) ;\n if ( req_frag_size < 2 || req_frag_size > 2047 ) {\n write_dns ( dns_fd , q , \"BADFRAG\" , 7 , users [ userid ] . downenc ) ;\n }\n else {\n char buf [ 2048 ] ;\n int i ;\n unsigned int v = ( ( unsigned int ) rand ( ) ) & 0xff ;\n memset ( buf , 0 , sizeof ( buf ) ) ;\n buf [ 0 ] = ( req_frag_size >> 8 ) & 0xff ;\n buf [ 1 ] = req_frag_size & 0xff ;\n buf [ 2 ] = 107 ;\n for ( i = 3 ;\n i < 2048 ;\n i ++ , v = ( v + 107 ) & 0xff ) buf [ i ] = v ;\n write_dns ( dns_fd , q , buf , req_frag_size , users [ userid ] . downenc ) ;\n }\n return ;\n }\n else if ( in [ 0 ] == 'N' || in [ 0 ] == 'n' ) {\n int max_frag_size ;\n read = unpack_data ( unpacked , sizeof ( unpacked ) , & ( in [ 1 ] ) , domain_len - 1 , b32 ) ;\n if ( read < 3 ) {\n write_dns ( dns_fd , q , \"BADLEN\" , 6 , 'T' ) ;\n return ;\n }\n userid = unpacked [ 0 ] ;\n if ( check_user_and_ip ( userid , q ) != 0 ) {\n write_dns ( dns_fd , q , \"BADIP\" , 5 , 'T' ) ;\n return ;\n }\n max_frag_size = ( ( unpacked [ 1 ] & 0xff ) << 8 ) | ( unpacked [ 2 ] & 0xff ) ;\n if ( max_frag_size < 2 ) {\n write_dns ( dns_fd , q , \"BADFRAG\" , 7 , users [ userid ] . downenc ) ;\n }\n else {\n users [ userid ] . fragsize = max_frag_size ;\n write_dns ( dns_fd , q , & unpacked [ 1 ] , 2 , users [ userid ] . downenc ) ;\n }\n return ;\n }\n else if ( in [ 0 ] == 'P' || in [ 0 ] == 'p' ) {\n int dn_seq ;\n int dn_frag ;\n int didsend = 0 ;\n if ( q -> id == 0 ) return ;\n read = unpack_data ( unpacked , sizeof ( unpacked ) , & ( in [ 1 ] ) , domain_len - 1 , b32 ) ;\n if ( read < 4 ) return ;\n userid = unpacked [ 0 ] ;\n if ( check_user_and_ip ( userid , q ) != 0 ) {\n write_dns ( dns_fd , q , \"BADIP\" , 5 , 'T' ) ;\n return ;\n }\n # ifdef DNSCACHE_LEN if ( answer_from_dnscache ( dns_fd , userid , q ) ) return ;\n # endif if ( answer_from_qmem ( dns_fd , q , users [ userid ] . qmemping_cmc , users [ userid ] . qmemping_type , QMEMPING_LEN , ( void * ) unpacked ) ) return ;\n if ( users [ userid ] . q . id != 0 && q -> type == users [ userid ] . q . type && ! strcmp ( q -> name , users [ userid ] . q . name ) && users [ userid ] . lazy ) {\n if ( debug >= 2 ) {\n fprintf ( stderr , \"PING pkt from user %d = dupe from impatient DNS server, remembering\\n\" , userid ) ;\n }\n users [ userid ] . q . id2 = q -> id ;\n users [ userid ] . q . fromlen2 = q -> fromlen ;\n memcpy ( & ( users [ userid ] . q . from2 ) , & ( q -> from ) , q -> fromlen ) ;\n return ;\n }\n if ( users [ userid ] . q_sendrealsoon . id != 0 && q -> type == users [ userid ] . q_sendrealsoon . type && ! strcmp ( q -> name , users [ userid ] . q_sendrealsoon . name ) ) {\n if ( debug >= 2 ) {\n fprintf ( stderr , \"PING pkt from user %d = dupe from impatient DNS server, remembering\\n\" , userid ) ;\n }\n users [ userid ] . q_sendrealsoon . id2 = q -> id ;\n users [ userid ] . q_sendrealsoon . fromlen2 = q -> fromlen ;\n memcpy ( & ( users [ userid ] . q_sendrealsoon . from2 ) , & ( q -> from ) , q -> fromlen ) ;\n return ;\n }\n dn_seq = unpacked [ 1 ] >> 4 ;\n dn_frag = unpacked [ 1 ] & 15 ;\n if ( debug >= 1 ) {\n fprintf ( stderr , \"PING pkt from user %d, ack for downstream %d/%d\\n\" , userid , dn_seq , dn_frag ) ;\n }\n process_downstream_ack ( userid , dn_seq , dn_frag ) ;\n if ( debug >= 3 ) {\n fprintf ( stderr , \"PINGret (if any) will ack upstream %d/%d\\n\" , users [ userid ] . inpacket . seqno , users [ userid ] . inpacket . fragment ) ;\n }\n if ( users [ userid ] . q_sendrealsoon . id != 0 ) {\n send_chunk_or_dataless ( dns_fd , userid , & users [ userid ] . q_sendrealsoon ) ;\n }\n if ( users [ userid ] . q . id != 0 ) {\n didsend = 1 ;\n if ( send_chunk_or_dataless ( dns_fd , userid , & users [ userid ] . q ) == 1 ) didsend = 0 ;\n }\n memcpy ( & ( users [ userid ] . q ) , q , sizeof ( struct query ) ) ;\n users [ userid ] . last_pkt = time ( NULL ) ;\n if ( ( ! didsend && users [ userid ] . outpacket . len > 0 ) || ! users [ userid ] . lazy ) send_chunk_or_dataless ( dns_fd , userid , & users [ userid ] . q ) ;\n }\n else if ( ( in [ 0 ] >= '0' && in [ 0 ] <= '9' ) || ( in [ 0 ] >= 'a' && in [ 0 ] <= 'f' ) || ( in [ 0 ] >= 'A' && in [ 0 ] <= 'F' ) ) {\n int up_seq , up_frag , dn_seq , dn_frag , lastfrag ;\n int upstream_ok = 1 ;\n int didsend = 0 ;\n int code = - 1 ;\n if ( domain_len < 6 ) return ;\n if ( q -> id == 0 ) return ;\n if ( ( in [ 0 ] >= '0' && in [ 0 ] <= '9' ) ) code = in [ 0 ] - '0' ;\n if ( ( in [ 0 ] >= 'a' && in [ 0 ] <= 'f' ) ) code = in [ 0 ] - 'a' + 10 ;\n if ( ( in [ 0 ] >= 'A' && in [ 0 ] <= 'F' ) ) code = in [ 0 ] - 'A' + 10 ;\n userid = code ;\n if ( check_user_and_ip ( userid , q ) != 0 ) {\n write_dns ( dns_fd , q , \"BADIP\" , 5 , 'T' ) ;\n return ;\n }\n # ifdef DNSCACHE_LEN if ( answer_from_dnscache ( dns_fd , userid , q ) ) return ;\n # endif if ( answer_from_qmem_data ( dns_fd , userid , q ) ) return ;\n if ( users [ userid ] . q . id != 0 && q -> type == users [ userid ] . q . type && ! strcmp ( q -> name , users [ userid ] . q . name ) && users [ userid ] . lazy ) {\n if ( debug >= 2 ) {\n fprintf ( stderr , \"IN pkt from user %d = dupe from impatient DNS server, remembering\\n\" , userid ) ;\n }\n users [ userid ] . q . id2 = q -> id ;\n users [ userid ] . q . fromlen2 = q -> fromlen ;\n memcpy ( & ( users [ userid ] . q . from2 ) , & ( q -> from ) , q -> fromlen ) ;\n return ;\n }\n if ( users [ userid ] . q_sendrealsoon . id != 0 && q -> type == users [ userid ] . q_sendrealsoon . type && ! strcmp ( q -> name , users [ userid ] . q_sendrealsoon . name ) ) {\n if ( debug >= 2 ) {\n fprintf ( stderr , \"IN pkt from user %d = dupe from impatient DNS server, remembering\\n\" , userid ) ;\n }\n users [ userid ] . q_sendrealsoon . id2 = q -> id ;\n users [ userid ] . q_sendrealsoon . fromlen2 = q -> fromlen ;\n memcpy ( & ( users [ userid ] . q_sendrealsoon . from2 ) , & ( q -> from ) , q -> fromlen ) ;\n return ;\n }\n up_seq = ( b32_8to5 ( in [ 1 ] ) >> 2 ) & 7 ;\n up_frag = ( ( b32_8to5 ( in [ 1 ] ) & 3 ) << 2 ) | ( ( b32_8to5 ( in [ 2 ] ) >> 3 ) & 3 ) ;\n dn_seq = ( b32_8to5 ( in [ 2 ] ) & 7 ) ;\n dn_frag = b32_8to5 ( in [ 3 ] ) >> 1 ;\n lastfrag = b32_8to5 ( in [ 3 ] ) & 1 ;\n process_downstream_ack ( userid , dn_seq , dn_frag ) ;\n if ( up_seq == users [ userid ] . inpacket . seqno && up_frag <= users [ userid ] . inpacket . fragment ) {\n if ( debug >= 1 ) {\n fprintf ( stderr , \"IN pkt seq# %d, frag %d, dropped duplicate frag\\n\" , up_seq , up_frag ) ;\n }\n upstream_ok = 0 ;\n }\n else if ( up_seq != users [ userid ] . inpacket . seqno && recent_seqno ( users [ userid ] . inpacket . seqno , up_seq ) ) {\n if ( debug >= 1 ) {\n fprintf ( stderr , \"IN pkt seq# %d, frag %d, dropped duplicate recent seqno\\n\" , up_seq , up_frag ) ;\n }\n upstream_ok = 0 ;\n }\n else if ( up_seq != users [ userid ] . inpacket . seqno ) {\n users [ userid ] . inpacket . seqno = up_seq ;\n users [ userid ] . inpacket . fragment = up_frag ;\n users [ userid ] . inpacket . len = 0 ;\n users [ userid ] . inpacket . offset = 0 ;\n }\n else {\n users [ userid ] . inpacket . fragment = up_frag ;\n }\n if ( debug >= 3 ) {\n fprintf ( stderr , \"INpack with upstream %d/%d, we are going to ack upstream %d/%d\\n\" , up_seq , up_frag , users [ userid ] . inpacket . seqno , users [ userid ] . inpacket . fragment ) ;\n }\n if ( upstream_ok ) {\n read = unpack_data ( unpacked , sizeof ( unpacked ) , & ( in [ 5 ] ) , domain_len - 5 , users [ userid ] . encoder ) ;\n read = MIN ( read , sizeof ( users [ userid ] . inpacket . data ) - users [ userid ] . inpacket . offset ) ;\n memcpy ( users [ userid ] . inpacket . data + users [ userid ] . inpacket . offset , unpacked , read ) ;\n users [ userid ] . inpacket . len += read ;\n users [ userid ] . inpacket . offset += read ;\n if ( debug >= 1 ) {\n fprintf ( stderr , \"IN pkt seq# %d, frag %d (last=%d), fragsize %d, total %d, from user %d\\n\" , up_seq , up_frag , lastfrag , read , users [ userid ] . inpacket . len , userid ) ;\n }\n }\n if ( upstream_ok && lastfrag ) {\n handle_full_packet ( tun_fd , dns_fd , userid ) ;\n }\n if ( users [ userid ] . q_sendrealsoon . id != 0 ) {\n didsend = 1 ;\n if ( send_chunk_or_dataless ( dns_fd , userid , & users [ userid ] . q_sendrealsoon ) == 1 ) didsend = 0 ;\n }\n if ( users [ userid ] . q . id != 0 ) {\n if ( ( users [ userid ] . outpacket . len > 0 && ! didsend ) || ( upstream_ok && ! lastfrag && ! didsend ) || ( ! upstream_ok && ! didsend ) || ! users [ userid ] . lazy ) {\n didsend = 1 ;\n if ( send_chunk_or_dataless ( dns_fd , userid , & users [ userid ] . q ) == 1 ) didsend = 0 ;\n }\n else {\n memcpy ( & ( users [ userid ] . q_sendrealsoon ) , & ( users [ userid ] . q ) , sizeof ( struct query ) ) ;\n users [ userid ] . q_sendrealsoon_new = 1 ;\n users [ userid ] . q . id = 0 ;\n didsend = 1 ;\n }\n }\n memcpy ( & ( users [ userid ] . q ) , q , sizeof ( struct query ) ) ;\n users [ userid ] . last_pkt = time ( NULL ) ;\n if ( users [ userid ] . outpacket . len > 0 && ! didsend ) send_chunk_or_dataless ( dns_fd , userid , & users [ userid ] . q ) ;\n else if ( ! didsend || ! users [ userid ] . lazy ) {\n if ( upstream_ok && lastfrag ) {\n memcpy ( & ( users [ userid ] . q_sendrealsoon ) , & ( users [ userid ] . q ) , sizeof ( struct query ) ) ;\n users [ userid ] . q_sendrealsoon_new = 1 ;\n users [ userid ] . q . id = 0 ;\n }\n else {\n send_chunk_or_dataless ( dns_fd , userid , & users [ userid ] . q ) ;\n }\n }\n }\n }"}
{"idx": 17025, "target": 0, "func": "sim_node * create_sim_node ( attr_val_fifo * init_opts , server_info_fifo * servers ) {\n sim_node * my_node ;\n my_node = emalloc ( sizeof ( * my_node ) ) ;\n my_node -> init_opts = init_opts ;\n my_node -> servers = servers ;\n return my_node ;\n }"}
{"idx": 17026, "target": 0, "func": "NewConverter * CnvExtOpen ( UCMFile * ucm ) {\n CnvExtData * extData ;\n extData = ( CnvExtData * ) uprv_malloc ( sizeof ( CnvExtData ) ) ;\n if ( extData == NULL ) {\n printf ( \"out of memory\\n\" ) ;\n exit ( U_MEMORY_ALLOCATION_ERROR ) ;\n }\n uprv_memset ( extData , 0 , sizeof ( CnvExtData ) ) ;\n extData -> ucm = ucm ;\n extData -> newConverter . close = CnvExtClose ;\n extData -> newConverter . isValid = CnvExtIsValid ;\n extData -> newConverter . addTable = CnvExtAddTable ;\n extData -> newConverter . write = CnvExtWrite ;\n return & extData -> newConverter ;\n }"}
{"idx": 17027, "target": 0, "func": "static int count_hq_slice ( SliceArgs * slice , int quant_idx ) {\n int x , y ;\n uint8_t quants [ MAX_DWT_LEVELS ] [ 4 ] ;\n int bits = 0 , p , level , orientation ;\n VC2EncContext * s = slice -> ctx ;\n if ( slice -> cache [ quant_idx ] ) return slice -> cache [ quant_idx ] ;\n bits += 8 * s -> prefix_bytes ;\n bits += 8 ;\n for ( level = 0 ;\n level < s -> wavelet_depth ;\n level ++ ) for ( orientation = ! ! level ;\n orientation < 4 ;\n orientation ++ ) quants [ level ] [ orientation ] = FFMAX ( quant_idx - s -> quant [ level ] [ orientation ] , 0 ) ;\n for ( p = 0 ;\n p < 3 ;\n p ++ ) {\n int bytes_start , bytes_len , pad_s , pad_c ;\n bytes_start = bits >> 3 ;\n bits += 8 ;\n for ( level = 0 ;\n level < s -> wavelet_depth ;\n level ++ ) {\n for ( orientation = ! ! level ;\n orientation < 4 ;\n orientation ++ ) {\n SubBand * b = & s -> plane [ p ] . band [ level ] [ orientation ] ;\n const int q_idx = quants [ level ] [ orientation ] ;\n const uint8_t * len_lut = & s -> coef_lut_len [ q_idx * COEF_LUT_TAB ] ;\n const int qfactor = ff_dirac_qscale_tab [ q_idx ] ;\n const int left = b -> width * slice -> x / s -> num_x ;\n const int right = b -> width * ( slice -> x + 1 ) / s -> num_x ;\n const int top = b -> height * slice -> y / s -> num_y ;\n const int bottom = b -> height * ( slice -> y + 1 ) / s -> num_y ;\n dwtcoef * buf = b -> buf + top * b -> stride ;\n for ( y = top ;\n y < bottom ;\n y ++ ) {\n for ( x = left ;\n x < right ;\n x ++ ) {\n uint32_t c_abs = FFABS ( buf [ x ] ) ;\n if ( c_abs < COEF_LUT_TAB ) {\n bits += len_lut [ c_abs ] ;\n }\n else {\n c_abs = QUANT ( c_abs , qfactor ) ;\n bits += count_vc2_ue_uint ( c_abs ) ;\n bits += ! ! c_abs ;\n }\n }\n buf += b -> stride ;\n }\n }\n }\n bits += FFALIGN ( bits , 8 ) - bits ;\n bytes_len = ( bits >> 3 ) - bytes_start - 1 ;\n pad_s = FFALIGN ( bytes_len , s -> size_scaler ) / s -> size_scaler ;\n pad_c = ( pad_s * s -> size_scaler ) - bytes_len ;\n bits += pad_c * 8 ;\n }\n slice -> cache [ quant_idx ] = bits ;\n return bits ;\n }"}
{"idx": 17028, "target": 0, "func": "int jpc_encode ( jas_image_t * image , jas_stream_t * out , const char * optstr ) {\n jpc_enc_t * enc ;\n jpc_enc_cp_t * cp ;\n enc = 0 ;\n cp = 0 ;\n jpc_initluts ( ) ;\n if ( ! ( cp = cp_create ( optstr , image ) ) ) {\n jas_eprintf ( \"invalid JP encoder options\\n\" ) ;\n goto error ;\n }\n if ( ! ( enc = jpc_enc_create ( cp , out , image ) ) ) {\n goto error ;\n }\n cp = 0 ;\n if ( jpc_enc_encodemainhdr ( enc ) ) {\n goto error ;\n }\n if ( jpc_enc_encodemainbody ( enc ) ) {\n goto error ;\n }\n if ( ! ( enc -> mrk = jpc_ms_create ( JPC_MS_EOC ) ) ) {\n goto error ;\n }\n if ( jpc_putms ( enc -> out , enc -> cstate , enc -> mrk ) ) {\n jas_eprintf ( \"cannot write EOI marker\\n\" ) ;\n goto error ;\n }\n jpc_ms_destroy ( enc -> mrk ) ;\n enc -> mrk = 0 ;\n if ( jas_stream_flush ( enc -> out ) ) {\n goto error ;\n }\n jpc_enc_destroy ( enc ) ;\n return 0 ;\n error : if ( cp ) {\n jpc_enc_cp_destroy ( cp ) ;\n }\n if ( enc ) {\n jpc_enc_destroy ( enc ) ;\n }\n return - 1 ;\n }"}
{"idx": 17029, "target": 0, "func": "static void cmd_window_move_dleft ( void ) {\n MAIN_WINDOW_REC * rec ;\n rec = mainwindows_find_left ( active_mainwin , FALSE ) ;\n if ( rec == NULL ) rec = mainwindows_find_left ( active_mainwin , TRUE ) ;\n if ( rec != NULL ) window_reparent ( active_win , rec ) ;\n }"}
{"idx": 17030, "target": 0, "func": "int dissect_h245_OpenLogicalChannel ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 129 \"../../asn1/h245/h245.cnf\" gint32 temp ;\n upcoming_olc = ( ! actx -> pinfo -> fd -> flags . visited ) ? wmem_new0 ( wmem_file_scope ( ) , olc_info_t ) : NULL ;\n h223_fw_lc_num = 0 ;\n h223_lc_params_temp = NULL ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_OpenLogicalChannel , OpenLogicalChannel_sequence ) ;\n if ( h223_fw_lc_num != 0 && h223_fw_lc_params ) {\n h223_pending_olc * pending = wmem_new ( wmem_file_scope ( ) , h223_pending_olc ) ;\n pending -> fw_channel_params = h223_fw_lc_params ;\n pending -> rev_channel_params = h223_rev_lc_params ;\n temp = h223_fw_lc_num ;\n if ( actx -> pinfo -> p2p_dir > - 1 ) g_hash_table_insert ( h223_pending_olc_reqs [ actx -> pinfo -> p2p_dir ] , GINT_TO_POINTER ( temp ) , pending ) ;\n }\n if ( upcoming_olc ) {\n if ( fast_start ) {\n h245_setup_channels ( actx -> pinfo , & upcoming_olc -> rev_lc ) ;\n }\n else {\n g_hash_table_insert ( h245_pending_olc_reqs , wmem_strdup ( wmem_file_scope ( ) , gen_olc_key ( upcoming_olc -> fwd_lc_num , & actx -> pinfo -> dst , & actx -> pinfo -> src ) ) , upcoming_olc ) ;\n }\n }\n upcoming_olc = NULL ;\n if ( h245_pi != NULL ) h245_pi -> msg_type = H245_OpenLogChn ;\n return offset ;\n }"}
{"idx": 17031, "target": 0, "func": "static void print_table_data_html ( MYSQL_RES * result ) {\n MYSQL_ROW cur ;\n MYSQL_FIELD * field ;\n mysql_field_seek ( result , 0 ) ;\n ( void ) tee_fputs ( \"<TABLE BORDER=1><TR>\" , PAGER ) ;\n if ( column_names ) {\n while ( ( field = mysql_fetch_field ( result ) ) ) {\n tee_fputs ( \"<TH>\" , PAGER ) ;\n if ( field -> name && field -> name [ 0 ] ) xmlencode_print ( field -> name , field -> name_length ) ;\n else tee_fputs ( field -> name ? \" &nbsp;\n \" : \"NULL\" , PAGER ) ;\n tee_fputs ( \"</TH>\" , PAGER ) ;\n }\n ( void ) tee_fputs ( \"</TR>\" , PAGER ) ;\n }\n while ( ( cur = mysql_fetch_row ( result ) ) ) {\n if ( interrupted_query ) break ;\n ulong * lengths = mysql_fetch_lengths ( result ) ;\n ( void ) tee_fputs ( \"<TR>\" , PAGER ) ;\n for ( uint i = 0 ;\n i < mysql_num_fields ( result ) ;\n i ++ ) {\n ( void ) tee_fputs ( \"<TD>\" , PAGER ) ;\n xmlencode_print ( cur [ i ] , lengths [ i ] ) ;\n ( void ) tee_fputs ( \"</TD>\" , PAGER ) ;\n }\n ( void ) tee_fputs ( \"</TR>\" , PAGER ) ;\n }\n ( void ) tee_fputs ( \"</TABLE>\" , PAGER ) ;\n }"}
{"idx": 17032, "target": 0, "func": "static void nelly_decode_block ( NellyMoserDecodeContext * s , const unsigned char block [ NELLY_BLOCK_LEN ] , float audio [ NELLY_SAMPLES ] ) {\n int i , j ;\n float buf [ NELLY_FILL_LEN ] , pows [ NELLY_FILL_LEN ] ;\n float * aptr , * bptr , * pptr , val , pval ;\n int bits [ NELLY_BUF_LEN ] ;\n unsigned char v ;\n init_get_bits ( & s -> gb , block , NELLY_BLOCK_LEN * 8 ) ;\n bptr = buf ;\n pptr = pows ;\n val = ff_nelly_init_table [ get_bits ( & s -> gb , 6 ) ] ;\n for ( i = 0 ;\n i < NELLY_BANDS ;\n i ++ ) {\n if ( i > 0 ) val += ff_nelly_delta_table [ get_bits ( & s -> gb , 5 ) ] ;\n pval = - pow ( 2 , val / 2048 ) * s -> scale_bias ;\n for ( j = 0 ;\n j < ff_nelly_band_sizes_table [ i ] ;\n j ++ ) {\n * bptr ++ = val ;\n * pptr ++ = pval ;\n }\n }\n ff_nelly_get_sample_bits ( buf , bits ) ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n aptr = audio + i * NELLY_BUF_LEN ;\n init_get_bits ( & s -> gb , block , NELLY_BLOCK_LEN * 8 ) ;\n skip_bits_long ( & s -> gb , NELLY_HEADER_BITS + i * NELLY_DETAIL_BITS ) ;\n for ( j = 0 ;\n j < NELLY_FILL_LEN ;\n j ++ ) {\n if ( bits [ j ] <= 0 ) {\n aptr [ j ] = M_SQRT1_2 * pows [ j ] ;\n if ( av_lfg_get ( & s -> random_state ) & 1 ) aptr [ j ] *= - 1.0 ;\n }\n else {\n v = get_bits ( & s -> gb , bits [ j ] ) ;\n aptr [ j ] = ff_nelly_dequantization_table [ ( 1 << bits [ j ] ) - 1 + v ] * pows [ j ] ;\n }\n }\n memset ( & aptr [ NELLY_FILL_LEN ] , 0 , ( NELLY_BUF_LEN - NELLY_FILL_LEN ) * sizeof ( float ) ) ;\n s -> imdct_ctx . imdct_half ( & s -> imdct_ctx , s -> imdct_out , aptr ) ;\n s -> fdsp . vector_fmul_window ( aptr , s -> imdct_prev + NELLY_BUF_LEN / 2 , s -> imdct_out , ff_sine_128 , NELLY_BUF_LEN / 2 ) ;\n FFSWAP ( float * , s -> imdct_out , s -> imdct_prev ) ;\n }\n }"}
{"idx": 17033, "target": 0, "func": "int32_t usArrayToRLEString ( const uint16_t * src , int32_t srcLen , uint16_t * buffer , int32_t bufLen , UErrorCode * status ) {\n uint16_t * bufLimit = buffer + bufLen ;\n uint16_t * saveBuffer = buffer ;\n if ( buffer < bufLimit ) {\n * buffer ++ = ( uint16_t ) ( srcLen >> 16 ) ;\n if ( buffer < bufLimit ) {\n uint16_t runValue = src [ 0 ] ;\n int32_t runLength = 1 ;\n int i = 1 ;\n * buffer ++ = ( uint16_t ) srcLen ;\n for ( ;\n i < srcLen ;\n ++ i ) {\n uint16_t s = src [ i ] ;\n if ( s == runValue && runLength < 0xFFFF ) {\n ++ runLength ;\n }\n else {\n buffer = encodeRunShort ( buffer , bufLimit , ( uint16_t ) runValue , runLength , status ) ;\n runValue = s ;\n runLength = 1 ;\n }\n }\n buffer = encodeRunShort ( buffer , bufLimit , ( uint16_t ) runValue , runLength , status ) ;\n }\n else {\n * status = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n else {\n * status = U_BUFFER_OVERFLOW_ERROR ;\n }\n return ( int32_t ) ( buffer - saveBuffer ) ;\n }"}
{"idx": 17034, "target": 0, "func": "static void write_codebooks ( RoqContext * enc , RoqTempdata * tempData ) {\n int i , j ;\n uint8_t * * outp = & enc -> out_buf ;\n if ( tempData -> numCB2 ) {\n bytestream_put_le16 ( outp , RoQ_QUAD_CODEBOOK ) ;\n bytestream_put_le32 ( outp , tempData -> numCB2 * 6 + tempData -> numCB4 * 4 ) ;\n bytestream_put_byte ( outp , tempData -> numCB4 ) ;\n bytestream_put_byte ( outp , tempData -> numCB2 ) ;\n for ( i = 0 ;\n i < tempData -> numCB2 ;\n i ++ ) {\n bytestream_put_buffer ( outp , enc -> cb2x2 [ tempData -> f2i2 [ i ] ] . y , 4 ) ;\n bytestream_put_byte ( outp , enc -> cb2x2 [ tempData -> f2i2 [ i ] ] . u ) ;\n bytestream_put_byte ( outp , enc -> cb2x2 [ tempData -> f2i2 [ i ] ] . v ) ;\n }\n for ( i = 0 ;\n i < tempData -> numCB4 ;\n i ++ ) for ( j = 0 ;\n j < 4 ;\n j ++ ) bytestream_put_byte ( outp , tempData -> i2f2 [ enc -> cb4x4 [ tempData -> f2i4 [ i ] ] . idx [ j ] ] ) ;\n }\n }"}
{"idx": 17035, "target": 0, "func": "static int key_notify_sa ( struct xfrm_state * x , const struct km_event * c ) {\n struct sk_buff * skb ;\n struct sadb_msg * hdr ;\n skb = pfkey_xfrm_state2msg ( x ) ;\n if ( IS_ERR ( skb ) ) return PTR_ERR ( skb ) ;\n hdr = ( struct sadb_msg * ) skb -> data ;\n hdr -> sadb_msg_version = PF_KEY_V2 ;\n hdr -> sadb_msg_type = event2keytype ( c -> event ) ;\n hdr -> sadb_msg_satype = pfkey_proto2satype ( x -> id . proto ) ;\n hdr -> sadb_msg_errno = 0 ;\n hdr -> sadb_msg_reserved = 0 ;\n hdr -> sadb_msg_seq = c -> seq ;\n hdr -> sadb_msg_pid = c -> portid ;\n pfkey_broadcast ( skb , GFP_ATOMIC , BROADCAST_ALL , NULL , xs_net ( x ) ) ;\n return 0 ;\n }"}
{"idx": 17036, "target": 1, "func": "void vp9_xform_quant_dc ( MACROBLOCK * x , int plane , int block , BLOCK_SIZE plane_bsize , TX_SIZE tx_size ) {\n MACROBLOCKD * const xd = & x -> e_mbd ;\n const struct macroblock_plane * const p = & x -> plane [ plane ] ;\n const struct macroblockd_plane * const pd = & xd -> plane [ plane ] ;\n int16_t * const coeff = BLOCK_OFFSET ( p -> coeff , block ) ;\n int16_t * const qcoeff = BLOCK_OFFSET ( p -> qcoeff , block ) ;\n int16_t * const dqcoeff = BLOCK_OFFSET ( pd -> dqcoeff , block ) ;\n uint16_t * const eob = & p -> eobs [ block ] ;\n const int diff_stride = 4 * num_4x4_blocks_wide_lookup [ plane_bsize ] ;\n int i , j ;\n const int16_t * src_diff ;\n txfrm_block_to_raster_xy ( plane_bsize , tx_size , block , & i , & j ) ;\n src_diff = & p -> src_diff [ 4 * ( j * diff_stride + i ) ] ;\n switch ( tx_size ) {\n case TX_32X32 : vp9_fdct32x32_1 ( src_diff , coeff , diff_stride ) ;\n vp9_quantize_dc_32x32 ( coeff , x -> skip_block , p -> round , p -> quant_fp [ 0 ] , qcoeff , dqcoeff , pd -> dequant [ 0 ] , eob ) ;\n break ;\n case TX_16X16 : vp9_fdct16x16_1 ( src_diff , coeff , diff_stride ) ;\n vp9_quantize_dc ( coeff , x -> skip_block , p -> round , p -> quant_fp [ 0 ] , qcoeff , dqcoeff , pd -> dequant [ 0 ] , eob ) ;\n break ;\n case TX_8X8 : vp9_fdct8x8_1 ( src_diff , coeff , diff_stride ) ;\n vp9_quantize_dc ( coeff , x -> skip_block , p -> round , p -> quant_fp [ 0 ] , qcoeff , dqcoeff , pd -> dequant [ 0 ] , eob ) ;\n break ;\n case TX_4X4 : x -> fwd_txm4x4 ( src_diff , coeff , diff_stride ) ;\n vp9_quantize_dc ( coeff , x -> skip_block , p -> round , p -> quant_fp [ 0 ] , qcoeff , dqcoeff , pd -> dequant [ 0 ] , eob ) ;\n break ;\n default : assert ( 0 ) ;\n break ;\n }\n }"}
{"idx": 17037, "target": 0, "func": "void vp9_foreach_transformed_block ( const MACROBLOCKD * const xd , BLOCK_SIZE bsize , foreach_transformed_block_visitor visit , void * arg ) {\n int plane ;\n for ( plane = 0 ;\n plane < MAX_MB_PLANE ;\n plane ++ ) vp9_foreach_transformed_block_in_plane ( xd , bsize , plane , visit , arg ) ;\n }"}
{"idx": 17038, "target": 0, "func": "static void tgq_idct_put_mb ( TgqContext * s , int16_t ( * block ) [ 64 ] , AVFrame * frame , int mb_x , int mb_y ) {\n int linesize = frame -> linesize [ 0 ] ;\n uint8_t * dest_y = frame -> data [ 0 ] + ( mb_y * 16 * linesize ) + mb_x * 16 ;\n uint8_t * dest_cb = frame -> data [ 1 ] + ( mb_y * 8 * frame -> linesize [ 1 ] ) + mb_x * 8 ;\n uint8_t * dest_cr = frame -> data [ 2 ] + ( mb_y * 8 * frame -> linesize [ 2 ] ) + mb_x * 8 ;\n ff_ea_idct_put_c ( dest_y , linesize , block [ 0 ] ) ;\n ff_ea_idct_put_c ( dest_y + 8 , linesize , block [ 1 ] ) ;\n ff_ea_idct_put_c ( dest_y + 8 * linesize , linesize , block [ 2 ] ) ;\n ff_ea_idct_put_c ( dest_y + 8 * linesize + 8 , linesize , block [ 3 ] ) ;\n if ( ! ( s -> avctx -> flags & CODEC_FLAG_GRAY ) ) {\n ff_ea_idct_put_c ( dest_cb , frame -> linesize [ 1 ] , block [ 4 ] ) ;\n ff_ea_idct_put_c ( dest_cr , frame -> linesize [ 2 ] , block [ 5 ] ) ;\n }\n }"}
{"idx": 17039, "target": 0, "func": "static inline void output_char ( hb_buffer_t * buffer , hb_codepoint_t unichar , hb_codepoint_t glyph ) {\n buffer -> cur ( ) . glyph_index ( ) = glyph ;\n buffer -> output_glyph ( unichar ) ;\n _hb_glyph_info_set_unicode_props ( & buffer -> prev ( ) , buffer -> unicode ) ;\n }"}
{"idx": 17040, "target": 0, "func": "static int dissect_h245_RequestMultiplexEntryRejectionDescriptions ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_RequestMultiplexEntryRejectionDescriptions , RequestMultiplexEntryRejectionDescriptions_sequence ) ;\n return offset ;\n }"}
{"idx": 17041, "target": 0, "func": "static int selinux_sem_associate ( struct sem_array * sma , int semflg ) {\n struct ipc_security_struct * isec ;\n struct common_audit_data ad ;\n u32 sid = current_sid ( ) ;\n isec = sma -> sem_perm . security ;\n ad . type = LSM_AUDIT_DATA_IPC ;\n ad . u . ipc_id = sma -> sem_perm . key ;\n return avc_has_perm ( sid , isec -> sid , SECCLASS_SEM , SEM__ASSOCIATE , & ad ) ;\n }"}
{"idx": 17042, "target": 0, "func": "int gs_to_exit ( const gs_memory_t * mem , int exit_status ) {\n return gs_to_exit_with_code ( mem , exit_status , 0 ) ;\n }"}
{"idx": 17043, "target": 0, "func": "static void add_h245_Address ( h323_calls_info_t * h323info , h245_address_t * h245_address ) {\n h323info -> h245_list = g_list_prepend ( h323info -> h245_list , h245_address ) ;\n }"}
{"idx": 17044, "target": 0, "func": "void proto_register_fields_section ( const int parent , header_field_info * hfi , const int num_records ) {\n int i ;\n protocol_t * proto ;\n proto = find_protocol_by_id ( parent ) ;\n for ( i = 0 ;\n i < num_records ;\n i ++ ) {\n if ( hfi [ i ] . id != - 1 ) {\n fprintf ( stderr , \"Duplicate field detected in call to proto_register_fields: %s is already registered\\n\" , hfi [ i ] . abbrev ) ;\n return ;\n }\n proto_register_field_common ( proto , & hfi [ i ] , parent ) ;\n }\n }"}
{"idx": 17045, "target": 0, "func": "afs_int32 listMax ( struct rx_call * call , afs_int32 * uid , afs_int32 * gid ) {\n afs_int32 code ;\n struct ubik_trans * tt ;\n code = Initdb ( ) ;\n if ( code != PRSUCCESS ) return code ;\n code = ubik_BeginTransReadAny ( dbase , UBIK_READTRANS , & tt ) ;\n if ( code ) return code ;\n code = ubik_SetLock ( tt , 1 , 1 , LOCKREAD ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = read_DbHeader ( tt ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = GetMax ( tt , uid , gid ) ;\n if ( code != PRSUCCESS ) ABORT_WITH ( tt , code ) ;\n code = ubik_EndTrans ( tt ) ;\n if ( code ) return code ;\n return PRSUCCESS ;\n }"}
{"idx": 17046, "target": 0, "func": "static int ivi_dec_tile_data_size ( GetBitContext * gb ) {\n int len ;\n len = 0 ;\n if ( get_bits1 ( gb ) ) {\n len = get_bits ( gb , 8 ) ;\n if ( len == 255 ) len = get_bits_long ( gb , 24 ) ;\n }\n align_get_bits ( gb ) ;\n return len ;\n }"}
{"idx": 17047, "target": 0, "func": "int mime_format_uint ( char * buf , uint32_t val , size_t buf_len ) {\n return ink_fast_uitoa ( val , buf , buf_len ) ;\n }"}
{"idx": 17048, "target": 0, "func": "static inline void scale_mv ( AVSContext * h , int * d_x , int * d_y , cavs_vector * src , int distp ) {\n int den = h -> scale_den [ src -> ref ] ;\n * d_x = ( src -> x * distp * den + 256 + ( src -> x >> 31 ) ) >> 9 ;\n * d_y = ( src -> y * distp * den + 256 + ( src -> y >> 31 ) ) >> 9 ;\n }"}
{"idx": 17049, "target": 1, "func": "static int _setup_resv_limits ( slurmdb_reservation_rec_t * resv , char * * cols , char * * vals , char * * extra ) {\n if ( resv -> assocs ) {\n int start = 0 ;\n int len = strlen ( resv -> assocs ) - 1 ;\n if ( strchr ( resv -> assocs , '-' ) ) {\n int i = 0 , i2 = 0 ;\n char * assocs = xmalloc ( sizeof ( char ) * len ) ;\n while ( i < len ) {\n if ( resv -> assocs [ i ] == ',' && resv -> assocs [ i + 1 ] == '-' ) {\n i += 2 ;\n while ( i < len ) {\n i ++ ;\n if ( resv -> assocs [ i ] == ',' ) break ;\n }\n continue ;\n }\n assocs [ i2 ++ ] = resv -> assocs [ i ++ ] ;\n }\n xfree ( resv -> assocs ) ;\n len = i2 - 1 ;\n resv -> assocs = assocs ;\n assocs = NULL ;\n }\n if ( resv -> assocs [ 0 ] == ',' ) start = 1 ;\n if ( resv -> assocs [ len ] == ',' ) resv -> assocs [ len ] = '\\0' ;\n xstrcat ( * cols , \", assoclist\" ) ;\n xstrfmtcat ( * vals , \", '%s'\" , resv -> assocs + start ) ;\n xstrfmtcat ( * extra , \", assoclist='%s'\" , resv -> assocs + start ) ;\n }\n if ( resv -> flags != NO_VAL ) {\n xstrcat ( * cols , \", flags\" ) ;\n xstrfmtcat ( * vals , \", %u\" , resv -> flags ) ;\n xstrfmtcat ( * extra , \", flags=%u\" , resv -> flags ) ;\n }\n if ( resv -> name ) {\n char * tmp_char = slurm_add_slash_to_quotes ( resv -> name ) ;\n xstrcat ( * cols , \", resv_name\" ) ;\n xstrfmtcat ( * vals , \", '%s'\" , tmp_char ) ;\n xstrfmtcat ( * extra , \", resv_name='%s'\" , tmp_char ) ;\n xfree ( tmp_char ) ;\n }\n if ( resv -> nodes ) {\n xstrcat ( * cols , \", nodelist\" ) ;\n xstrfmtcat ( * vals , \", '%s'\" , resv -> nodes ) ;\n xstrfmtcat ( * extra , \", nodelist='%s'\" , resv -> nodes ) ;\n }\n if ( resv -> node_inx ) {\n xstrcat ( * cols , \", node_inx\" ) ;\n xstrfmtcat ( * vals , \", '%s'\" , resv -> node_inx ) ;\n xstrfmtcat ( * extra , \", node_inx='%s'\" , resv -> node_inx ) ;\n }\n if ( resv -> time_end ) {\n xstrcat ( * cols , \", time_end\" ) ;\n xstrfmtcat ( * vals , \", %ld\" , resv -> time_end ) ;\n xstrfmtcat ( * extra , \", time_end=%ld\" , resv -> time_end ) ;\n }\n if ( resv -> time_start ) {\n xstrcat ( * cols , \", time_start\" ) ;\n xstrfmtcat ( * vals , \", %ld\" , resv -> time_start ) ;\n xstrfmtcat ( * extra , \", time_start=%ld\" , resv -> time_start ) ;\n }\n if ( resv -> tres_str ) {\n xstrcat ( * cols , \", tres\" ) ;\n xstrfmtcat ( * vals , \", '%s'\" , resv -> tres_str ) ;\n xstrfmtcat ( * extra , \", tres='%s'\" , resv -> tres_str ) ;\n }\n return SLURM_SUCCESS ;\n }"}
{"idx": 17050, "target": 1, "func": "static int decode ( MimicContext * ctx , int quality , int num_coeffs , int is_iframe ) {\n int ret , y , x , plane , cur_row = 0 ;\n for ( plane = 0 ;\n plane < 3 ;\n plane ++ ) {\n const int is_chroma = ! ! plane ;\n const int qscale = av_clip ( 10000 - quality , is_chroma ? 1000 : 2000 , 10000 ) << 2 ;\n const int stride = ctx -> flipped_ptrs [ ctx -> cur_index ] . linesize [ plane ] ;\n const uint8_t * src = ctx -> flipped_ptrs [ ctx -> prev_index ] . data [ plane ] ;\n uint8_t * dst = ctx -> flipped_ptrs [ ctx -> cur_index ] . data [ plane ] ;\n for ( y = 0 ;\n y < ctx -> num_vblocks [ plane ] ;\n y ++ ) {\n for ( x = 0 ;\n x < ctx -> num_hblocks [ plane ] ;\n x ++ ) {\n if ( is_iframe || get_bits1 ( & ctx -> gb ) == is_chroma ) {\n if ( is_chroma || is_iframe || ! get_bits1 ( & ctx -> gb ) ) {\n if ( ( ret = vlc_decode_block ( ctx , num_coeffs , qscale ) ) < 0 ) {\n av_log ( ctx -> avctx , AV_LOG_ERROR , \"Error decoding \" \"block.\\n\" ) ;\n return ret ;\n }\n ctx -> dsp . idct_put ( dst , stride , ctx -> dct_block ) ;\n }\n else {\n unsigned int backref = get_bits ( & ctx -> gb , 4 ) ;\n int index = ( ctx -> cur_index + backref ) & 15 ;\n uint8_t * p = ctx -> flipped_ptrs [ index ] . data [ 0 ] ;\n if ( index != ctx -> cur_index && p ) {\n ff_thread_await_progress ( & ctx -> buf_ptrs [ index ] , cur_row , 0 ) ;\n p += src - ctx -> flipped_ptrs [ ctx -> prev_index ] . data [ plane ] ;\n ctx -> dsp . put_pixels_tab [ 1 ] [ 0 ] ( dst , p , stride , 8 ) ;\n }\n else {\n av_log ( ctx -> avctx , AV_LOG_ERROR , \"No such backreference! Buggy sample.\\n\" ) ;\n }\n }\n }\n else {\n ff_thread_await_progress ( & ctx -> buf_ptrs [ ctx -> prev_index ] , cur_row , 0 ) ;\n ctx -> dsp . put_pixels_tab [ 1 ] [ 0 ] ( dst , src , stride , 8 ) ;\n }\n src += 8 ;\n dst += 8 ;\n }\n src += ( stride - ctx -> num_hblocks [ plane ] ) << 3 ;\n dst += ( stride - ctx -> num_hblocks [ plane ] ) << 3 ;\n ff_thread_report_progress ( & ctx -> buf_ptrs [ ctx -> cur_index ] , cur_row ++ , 0 ) ;\n }\n }\n return 0 ;\n }"}
{"idx": 17051, "target": 1, "func": "static void parse_content_disposition ( const char * content_disposition , const char * * filename_r ) {\n struct rfc822_parser_context parser ;\n const char * const * results , * filename2 ;\n string_t * str ;\n * filename_r = NULL ;\n if ( content_disposition == NULL ) return ;\n rfc822_parser_init ( & parser , ( const unsigned char * ) content_disposition , strlen ( content_disposition ) , NULL ) ;\n rfc822_skip_lwsp ( & parser ) ;\n str = t_str_new ( 32 ) ;\n if ( rfc822_parse_mime_token ( & parser , str ) < 0 ) return ;\n rfc2231_parse ( & parser , & results ) ;\n filename2 = NULL ;\n for ( ;\n * results != NULL ;\n results += 2 ) {\n if ( strcasecmp ( results [ 0 ] , \"filename\" ) == 0 ) {\n * filename_r = results [ 1 ] ;\n break ;\n }\n if ( strcasecmp ( results [ 0 ] , \"filename*\" ) == 0 ) filename2 = results [ 1 ] ;\n }\n if ( * filename_r == NULL ) {\n * filename_r = filename2 ;\n }\n }"}
{"idx": 17052, "target": 0, "func": "void select_connection ( struct st_command * command ) {\n DBUG_ENTER ( \"select_connection\" ) ;\n static DYNAMIC_STRING ds_connection ;\n const struct command_arg connection_args [ ] = {\n {\n \"connection_name\" , ARG_STRING , TRUE , & ds_connection , \"Name of the connection that we switch to.\" }\n }\n ;\n check_command_args ( command , command -> first_argument , connection_args , sizeof ( connection_args ) / sizeof ( struct command_arg ) , ' ' ) ;\n DBUG_PRINT ( \"info\" , ( \"changing connection: %s\" , ds_connection . str ) ) ;\n select_connection_name ( ds_connection . str ) ;\n dynstr_free ( & ds_connection ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 17053, "target": 0, "func": "static void xmessage_fork ( struct proclistlist * pll ) {\n char message [ 5000 ] ;\n set_pid_priority ( 0 , SCHED_FIFO , sched_get_priority_min ( SCHED_FIFO ) , \"Unable to set SCHED_FIFO for %d (\\\"%s\\\"). (%s)\" , \"the xmessage fork\" ) ;\n setenv ( \"DISPLAY\" , \":0.0\" , 1 ) ;\n if ( ! xmessage_found ) sprintf ( message , \"xmessage \\\"WARNING! das_watchdog pauses realtime operations for %d seconds.\\\"\" , waittime ) ;\n else sprintf ( message , \"%s \\\"WARNING! das_watchdog pauses realtime operations for %d seconds.\\\"\" , WHICH_XMESSAGE , waittime ) ;\n if ( send_xmessage_using_uids ( pll , message ) == 0 ) {\n set_pid_priority ( 0 , SCHED_OTHER , 0 , \"Unable to set SCHED_OTHER for %d (\\\"%s\\\"). (%s)\" , \"the xmessage fork\" ) ;\n send_xmessage_using_XAUTHORITY ( pll , 0 , message ) ;\n }\n pll_delete ( pll ) ;\n }"}
{"idx": 17054, "target": 0, "func": "static int send_certificate_request ( SSL * s ) {\n if ( s -> verify_mode & SSL_VERIFY_PEER && ( ( s -> session -> peer == NULL ) || ! ( s -> verify_mode & SSL_VERIFY_CLIENT_ONCE ) ) && ( ! ( s -> s3 -> tmp . new_cipher -> algorithm_auth & SSL_aNULL ) || ( s -> verify_mode & SSL_VERIFY_FAIL_IF_NO_PEER_CERT ) ) && ! ( s -> s3 -> tmp . new_cipher -> algorithm_auth & SSL_aSRP ) && ! ( s -> s3 -> tmp . new_cipher -> algorithm_auth & SSL_aPSK ) ) {\n return 1 ;\n }\n return 0 ;\n }"}
{"idx": 17055, "target": 1, "func": "static int32_t u_scanf_string_handler ( UFILE * input , u_scanf_spec_info * info , ufmt_args * args , const UChar * fmt , int32_t * fmtConsumed , int32_t * argConverted ) {\n const UChar * source ;\n UConverter * conv ;\n char * arg = ( char * ) ( args [ 0 ] . ptrValue ) ;\n char * alias = arg ;\n char * limit ;\n UErrorCode status = U_ZERO_ERROR ;\n int32_t count ;\n int32_t skipped = 0 ;\n UChar c ;\n UBool isNotEOF = FALSE ;\n if ( info -> fIsString ) {\n skipped = u_scanf_skip_leading_ws ( input , info -> fPadChar ) ;\n }\n count = 0 ;\n conv = u_getDefaultConverter ( & status ) ;\n if ( U_FAILURE ( status ) ) return - 1 ;\n while ( ( info -> fWidth == - 1 || count < info -> fWidth ) && ( isNotEOF = ufile_getch ( input , & c ) ) && ( ! info -> fIsString || ( c != info -> fPadChar && ! u_isWhitespace ( c ) ) ) ) {\n if ( ! info -> fSkipArg ) {\n source = & c ;\n if ( info -> fWidth > 0 ) {\n limit = alias + info -> fWidth - count ;\n }\n else {\n limit = alias + ucnv_getMaxCharSize ( conv ) ;\n }\n ucnv_fromUnicode ( conv , & alias , limit , & source , source + 1 , NULL , TRUE , & status ) ;\n if ( U_FAILURE ( status ) ) {\n u_releaseDefaultConverter ( conv ) ;\n return - 1 ;\n }\n }\n ++ count ;\n }\n if ( ! info -> fSkipArg ) {\n if ( ( info -> fWidth == - 1 || count < info -> fWidth ) && isNotEOF ) u_fungetc ( c , input ) ;\n if ( info -> fIsString ) {\n * alias = 0x00 ;\n }\n }\n u_releaseDefaultConverter ( conv ) ;\n * argConverted = ! info -> fSkipArg ;\n return count + skipped ;\n }"}
{"idx": 17056, "target": 0, "func": "void dtls1_stop_timer ( SSL * s ) {\n memset ( & s -> d1 -> timeout , 0 , sizeof ( s -> d1 -> timeout ) ) ;\n memset ( & s -> d1 -> next_timeout , 0 , sizeof ( s -> d1 -> next_timeout ) ) ;\n s -> d1 -> timeout_duration = 1 ;\n BIO_ctrl ( SSL_get_rbio ( s ) , BIO_CTRL_DGRAM_SET_NEXT_TIMEOUT , 0 , & ( s -> d1 -> next_timeout ) ) ;\n dtls1_clear_sent_buffer ( s ) ;\n }"}
{"idx": 17057, "target": 1, "func": "static PyObject * authGSSServerUserName ( PyObject * self , PyObject * args ) {\n gss_server_state * state ;\n PyObject * pystate ;\n if ( ! PyArg_ParseTuple ( args , \"O\" , & pystate ) ) return NULL ;\n # if PY_MAJOR_VERSION >= 3 if ( ! PyCapsule_CheckExact ( pystate ) ) {\n # else if ( ! PyCObject_Check ( pystate ) ) {\n # endif PyErr_SetString ( PyExc_TypeError , \"Expected a context object\" ) ;\n return NULL ;\n }\n # if PY_MAJOR_VERSION >= 3 state = PyCapsule_GetPointer ( pystate , NULL ) ;\n # else state = ( gss_client_state * ) PyCObject_AsVoidPtr ( pystate ) ;\n # endif if ( state == NULL ) return NULL ;\n return Py_BuildValue ( \"s\" , state -> username ) ;\n }"}
{"idx": 17058, "target": 0, "func": "TEST_F ( SSLErrorAssistantTest , DynamicInterstitialListNoOrganizationRegex ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n EXPECT_EQ ( 1u , ssl_info ( ) . public_key_hashes . size ( ) ) ;\n auto config_proto = std : : make_unique < chrome_browser_ssl : : SSLErrorAssistantConfig > ( ) ;\n config_proto -> set_version_id ( kLargeVersionId ) ;\n chrome_browser_ssl : : DynamicInterstitial * filter = config_proto -> add_dynamic_interstitial ( ) ;\n filter -> set_interstitial_type ( chrome_browser_ssl : : DynamicInterstitial : : INTERSTITIAL_PAGE_CAPTIVE_PORTAL ) ;\n filter -> set_cert_error ( chrome_browser_ssl : : DynamicInterstitial : : UNKNOWN_CERT_ERROR ) ;\n filter -> add_sha256_hash ( \"sha256ightjar\" ) ;\n filter -> add_sha256_hash ( \"sha256/frogmouth\" ) ;\n filter -> add_sha256_hash ( \"sha256/poorwill\" ) ;\n filter = config_proto -> add_dynamic_interstitial ( ) ;\n filter -> set_interstitial_type ( chrome_browser_ssl : : DynamicInterstitial : : INTERSTITIAL_PAGE_SSL ) ;\n filter -> set_cert_error ( chrome_browser_ssl : : DynamicInterstitial : : ERR_CERT_COMMON_NAME_INVALID ) ;\n filter -> add_sha256_hash ( \"sha256uthatch\" ) ;\n filter -> add_sha256_hash ( ssl_info ( ) . public_key_hashes [ 0 ] . ToString ( ) ) ;\n filter -> add_sha256_hash ( \"sha256/treecreeper\" ) ;\n filter -> set_issuer_common_name_regex ( issuer_common_name ( ) ) ;\n filter -> set_issuer_organization_regex ( std : : string ( ) ) ;\n filter -> set_mitm_software_name ( \"UwS\" ) ;\n error_assistant ( ) -> SetErrorAssistantProto ( std : : move ( config_proto ) ) ;\n base : : Optional < DynamicInterstitialInfo > dynamic_interstitial = error_assistant ( ) -> MatchDynamicInterstitial ( ssl_info ( ) ) ;\n ASSERT_TRUE ( dynamic_interstitial ) ;\n EXPECT_EQ ( chrome_browser_ssl : : DynamicInterstitial : : INTERSTITIAL_PAGE_SSL , dynamic_interstitial -> interstitial_type ) ;\n }"}
{"idx": 17059, "target": 0, "func": "void get_join_variables ( PlannerInfo * root , List * args , SpecialJoinInfo * sjinfo , VariableStatData * vardata1 , VariableStatData * vardata2 , bool * join_is_reversed ) {\n Node * left , * right ;\n if ( list_length ( args ) != 2 ) elog ( ERROR , \"join operator should take two arguments\" ) ;\n left = ( Node * ) linitial ( args ) ;\n right = ( Node * ) lsecond ( args ) ;\n examine_variable ( root , left , 0 , vardata1 ) ;\n examine_variable ( root , right , 0 , vardata2 ) ;\n if ( vardata1 -> rel && bms_is_subset ( vardata1 -> rel -> relids , sjinfo -> syn_righthand ) ) * join_is_reversed = true ;\n else if ( vardata2 -> rel && bms_is_subset ( vardata2 -> rel -> relids , sjinfo -> syn_lefthand ) ) * join_is_reversed = true ;\n else * join_is_reversed = false ;\n }"}
{"idx": 17060, "target": 0, "func": "static void proto_tree_free_node ( proto_node * node , gpointer data _U_ ) {\n field_info * finfo = PNODE_FINFO ( node ) ;\n proto_tree_children_foreach ( node , proto_tree_free_node , NULL ) ;\n FVALUE_CLEANUP ( & finfo -> value ) ;\n }"}
{"idx": 17061, "target": 0, "func": "static int ebml_read_binary ( AVIOContext * pb , int length , EbmlBin * bin ) {\n av_free ( bin -> data ) ;\n if ( ! ( bin -> data = av_mallocz ( length + FF_INPUT_BUFFER_PADDING_SIZE ) ) ) return AVERROR ( ENOMEM ) ;\n bin -> size = length ;\n bin -> pos = avio_tell ( pb ) ;\n if ( avio_read ( pb , bin -> data , length ) != length ) {\n av_freep ( & bin -> data ) ;\n return AVERROR ( EIO ) ;\n }\n return 0 ;\n }"}
{"idx": 17062, "target": 1, "func": "static int compress_bidder_init ( struct archive_read_filter * self ) {\n struct private_data * state ;\n static const size_t out_block_size = 64 * 1024 ;\n void * out_block ;\n int code ;\n self -> code = ARCHIVE_FILTER_COMPRESS ;\n self -> name = \"compress (.Z)\" ;\n state = ( struct private_data * ) calloc ( sizeof ( * state ) , 1 ) ;\n out_block = malloc ( out_block_size ) ;\n if ( state == NULL || out_block == NULL ) {\n free ( out_block ) ;\n free ( state ) ;\n archive_set_error ( & self -> archive -> archive , ENOMEM , \"Can't allocate data for %s decompression\" , self -> name ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n self -> data = state ;\n state -> out_block_size = out_block_size ;\n state -> out_block = out_block ;\n self -> read = compress_filter_read ;\n self -> skip = NULL ;\n self -> close = compress_filter_close ;\n ( void ) getbits ( self , 8 ) ;\n ( void ) getbits ( self , 8 ) ;\n code = getbits ( self , 8 ) ;\n state -> maxcode_bits = code & 0x1f ;\n state -> maxcode = ( 1 << state -> maxcode_bits ) ;\n state -> use_reset_code = code & 0x80 ;\n state -> free_ent = 256 ;\n state -> stackp = state -> stack ;\n if ( state -> use_reset_code ) state -> free_ent ++ ;\n state -> bits = 9 ;\n state -> section_end_code = ( 1 << state -> bits ) - 1 ;\n state -> oldcode = - 1 ;\n for ( code = 255 ;\n code >= 0 ;\n code -- ) {\n state -> prefix [ code ] = 0 ;\n state -> suffix [ code ] = code ;\n }\n next_code ( self ) ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 17063, "target": 0, "func": "static int dissect_q931_ie_cs7 ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n dissect_q931_IEs ( tvb , pinfo , NULL , tree , FALSE , 0 , 7 , NULL ) ;\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 17064, "target": 0, "func": "gcry_error_t gcry_pk_verify ( gcry_sexp_t s_sig , gcry_sexp_t s_hash , gcry_sexp_t s_pkey ) {\n gcry_module_t module_key = NULL , module_sig = NULL ;\n gcry_mpi_t * pkey = NULL , hash = NULL , * sig = NULL ;\n struct pk_encoding_ctx ctx ;\n gcry_err_code_t rc ;\n REGISTER_DEFAULT_PUBKEYS ;\n rc = sexp_to_key ( s_pkey , 0 , GCRY_PK_USAGE_SIGN , NULL , & pkey , & module_key , NULL ) ;\n if ( rc ) goto leave ;\n init_encoding_ctx ( & ctx , PUBKEY_OP_VERIFY , gcry_pk_get_nbits ( s_pkey ) ) ;\n rc = sexp_data_to_mpi ( s_hash , & hash , & ctx ) ;\n if ( rc ) goto leave ;\n rc = sexp_to_sig ( s_sig , & sig , & module_sig , ! ! ( ctx . flags & PUBKEY_FLAG_EDDSA ) ) ;\n if ( rc ) goto leave ;\n if ( module_key -> mod_id != module_sig -> mod_id ) {\n rc = GPG_ERR_CONFLICT ;\n goto leave ;\n }\n rc = pubkey_verify ( module_key -> mod_id , hash , sig , pkey , & ctx ) ;\n leave : if ( pkey ) {\n release_mpi_array ( pkey ) ;\n gcry_free ( pkey ) ;\n }\n if ( sig ) {\n release_mpi_array ( sig ) ;\n gcry_free ( sig ) ;\n }\n if ( hash ) mpi_free ( hash ) ;\n if ( module_key || module_sig ) {\n ath_mutex_lock ( & pubkeys_registered_lock ) ;\n if ( module_key ) _gcry_module_release ( module_key ) ;\n if ( module_sig ) _gcry_module_release ( module_sig ) ;\n ath_mutex_unlock ( & pubkeys_registered_lock ) ;\n }\n return gcry_error ( rc ) ;\n }"}
{"idx": 17065, "target": 0, "func": "static int php_uwsgi_startup ( sapi_module_struct * sapi_module ) {\n if ( php_module_startup ( & uwsgi_sapi_module , & uwsgi_module_entry , 1 ) == FAILURE ) {\n return FAILURE ;\n }\n else {\n return SUCCESS ;\n }\n }"}
{"idx": 17066, "target": 0, "func": "static int process_request ( http_message_t * req , enum resp_type * rtype , membuffer * headers , membuffer * filename , struct xml_alias_t * alias , struct SendInstruction * RespInstr ) {\n int code ;\n int err_code ;\n char * request_doc ;\n UpnpFileInfo * finfo ;\n time_t aux_LastModified ;\n int using_alias ;\n int using_virtual_dir ;\n uri_type * url ;\n const char * temp_str ;\n int resp_major ;\n int resp_minor ;\n int alias_grabbed ;\n size_t dummy ;\n const char * extra_headers = NULL ;\n print_http_headers ( req ) ;\n url = & req -> uri ;\n assert ( req -> method == HTTPMETHOD_GET || req -> method == HTTPMETHOD_HEAD || req -> method == HTTPMETHOD_POST || req -> method == HTTPMETHOD_SIMPLEGET ) ;\n memset ( & finfo , 0 , sizeof ( finfo ) ) ;\n request_doc = NULL ;\n finfo = UpnpFileInfo_new ( ) ;\n alias_grabbed = FALSE ;\n err_code = HTTP_INTERNAL_SERVER_ERROR ;\n using_virtual_dir = FALSE ;\n using_alias = FALSE ;\n http_CalcResponseVersion ( req -> major_version , req -> minor_version , & resp_major , & resp_minor ) ;\n request_doc = malloc ( url -> pathquery . size + 1 ) ;\n if ( request_doc == NULL ) {\n goto error_handler ;\n }\n memcpy ( request_doc , url -> pathquery . buff , url -> pathquery . size ) ;\n request_doc [ url -> pathquery . size ] = '\\0' ;\n dummy = url -> pathquery . size ;\n remove_escaped_chars ( request_doc , & dummy ) ;\n code = remove_dots ( request_doc , url -> pathquery . size ) ;\n if ( code != 0 ) {\n err_code = HTTP_FORBIDDEN ;\n goto error_handler ;\n }\n if ( * request_doc != '/' ) {\n err_code = HTTP_BAD_REQUEST ;\n goto error_handler ;\n }\n if ( isFileInVirtualDir ( request_doc ) ) {\n using_virtual_dir = TRUE ;\n RespInstr -> IsVirtualFile = 1 ;\n if ( membuffer_assign_str ( filename , request_doc ) != 0 ) {\n goto error_handler ;\n }\n }\n else {\n if ( is_valid_alias ( & gAliasDoc ) ) {\n alias_grab ( alias ) ;\n alias_grabbed = TRUE ;\n using_alias = get_alias ( request_doc , alias , finfo ) ;\n if ( using_alias == TRUE ) {\n UpnpFileInfo_set_ContentType ( finfo , \"text/xml;\n charset=\\\"utf-8\\\"\" ) ;\n if ( UpnpFileInfo_get_ContentType ( finfo ) == NULL ) {\n goto error_handler ;\n }\n }\n }\n }\n if ( using_virtual_dir ) {\n if ( req -> method != HTTPMETHOD_POST ) {\n if ( virtualDirCallback . get_info ( filename -> buf , finfo ) != 0 ) {\n err_code = HTTP_NOT_FOUND ;\n goto error_handler ;\n }\n if ( UpnpFileInfo_get_IsDirectory ( finfo ) ) {\n if ( filename -> buf [ filename -> length - 1 ] == '/' ) {\n temp_str = \"index.html\" ;\n }\n else {\n temp_str = \"/index.html\" ;\n }\n if ( membuffer_append_str ( filename , temp_str ) != 0 ) {\n goto error_handler ;\n }\n if ( virtualDirCallback . get_info ( filename -> buf , finfo ) != UPNP_E_SUCCESS || UpnpFileInfo_get_IsDirectory ( finfo ) ) {\n err_code = HTTP_NOT_FOUND ;\n goto error_handler ;\n }\n }\n if ( ! UpnpFileInfo_get_IsReadable ( finfo ) ) {\n err_code = HTTP_FORBIDDEN ;\n goto error_handler ;\n }\n }\n }\n else if ( ! using_alias ) {\n if ( gDocumentRootDir . length == 0 ) {\n goto error_handler ;\n }\n if ( membuffer_assign_str ( filename , gDocumentRootDir . buf ) != 0 || membuffer_append_str ( filename , request_doc ) != 0 ) {\n goto error_handler ;\n }\n while ( filename -> length > 0 && filename -> buf [ filename -> length - 1 ] == '/' ) {\n membuffer_delete ( filename , filename -> length - 1 , 1 ) ;\n }\n if ( req -> method != HTTPMETHOD_POST ) {\n if ( get_file_info ( filename -> buf , finfo ) != 0 ) {\n err_code = HTTP_NOT_FOUND ;\n goto error_handler ;\n }\n if ( UpnpFileInfo_get_IsDirectory ( finfo ) ) {\n if ( filename -> buf [ filename -> length - 1 ] == '/' ) {\n temp_str = \"index.html\" ;\n }\n else {\n temp_str = \"/index.html\" ;\n }\n if ( membuffer_append_str ( filename , temp_str ) != 0 ) {\n goto error_handler ;\n }\n if ( get_file_info ( filename -> buf , finfo ) != 0 || UpnpFileInfo_get_IsDirectory ( finfo ) ) {\n err_code = HTTP_NOT_FOUND ;\n goto error_handler ;\n }\n }\n if ( ! UpnpFileInfo_get_IsReadable ( finfo ) ) {\n err_code = HTTP_FORBIDDEN ;\n goto error_handler ;\n }\n }\n }\n RespInstr -> ReadSendSize = UpnpFileInfo_get_FileLength ( finfo ) ;\n code = CheckOtherHTTPHeaders ( req , RespInstr , UpnpFileInfo_get_FileLength ( finfo ) ) ;\n if ( code != HTTP_OK ) {\n err_code = code ;\n goto error_handler ;\n }\n if ( req -> method == HTTPMETHOD_POST ) {\n * rtype = RESP_POST ;\n err_code = HTTP_OK ;\n goto error_handler ;\n }\n extra_headers = UpnpFileInfo_get_ExtraHeaders ( finfo ) ;\n if ( ! extra_headers ) {\n extra_headers = \"\" ;\n }\n if ( using_virtual_dir && UpnpFileInfo_get_FileLength ( finfo ) == UPNP_USING_CHUNKED ) {\n if ( resp_major == 1 && resp_minor == 1 ) {\n RespInstr -> IsChunkActive = 1 ;\n }\n else {\n err_code = HTTP_NOT_ACCEPTABLE ;\n goto error_handler ;\n }\n }\n aux_LastModified = UpnpFileInfo_get_LastModified ( finfo ) ;\n if ( RespInstr -> IsRangeActive && RespInstr -> IsChunkActive ) {\n if ( http_MakeMessage ( headers , resp_major , resp_minor , \"R\" \"T\" \"GKLD\" \"s\" \"tcS\" \"Xc\" \"sCc\" , HTTP_PARTIAL_CONTENT , UpnpFileInfo_get_ContentType ( finfo ) , RespInstr , RespInstr , \"LAST-MODIFIED: \" , & aux_LastModified , X_USER_AGENT , extra_headers ) != 0 ) {\n goto error_handler ;\n }\n }\n else if ( RespInstr -> IsRangeActive && ! RespInstr -> IsChunkActive ) {\n if ( http_MakeMessage ( headers , resp_major , resp_minor , \"R\" \"N\" \"T\" \"GLD\" \"s\" \"tcS\" \"Xc\" \"sCc\" , HTTP_PARTIAL_CONTENT , RespInstr -> ReadSendSize , UpnpFileInfo_get_ContentType ( finfo ) , RespInstr , RespInstr , \"LAST-MODIFIED: \" , & aux_LastModified , X_USER_AGENT , extra_headers ) != 0 ) {\n goto error_handler ;\n }\n }\n else if ( ! RespInstr -> IsRangeActive && RespInstr -> IsChunkActive ) {\n if ( http_MakeMessage ( headers , resp_major , resp_minor , \"RK\" \"TLD\" \"s\" \"tcS\" \"Xc\" \"sCc\" , HTTP_OK , UpnpFileInfo_get_ContentType ( finfo ) , RespInstr , \"LAST-MODIFIED: \" , & aux_LastModified , X_USER_AGENT , extra_headers ) != 0 ) {\n goto error_handler ;\n }\n }\n else {\n if ( RespInstr -> ReadSendSize >= 0 ) {\n if ( http_MakeMessage ( headers , resp_major , resp_minor , \"R\" \"N\" \"TLD\" \"s\" \"tcS\" \"Xc\" \"sCc\" , HTTP_OK , RespInstr -> ReadSendSize , UpnpFileInfo_get_ContentType ( finfo ) , RespInstr , \"LAST-MODIFIED: \" , & aux_LastModified , X_USER_AGENT , extra_headers ) != 0 ) {\n goto error_handler ;\n }\n }\n else {\n if ( http_MakeMessage ( headers , resp_major , resp_minor , \"R\" \"TLD\" \"s\" \"tcS\" \"Xc\" \"sCc\" , HTTP_OK , UpnpFileInfo_get_ContentType ( finfo ) , RespInstr , \"LAST-MODIFIED: \" , & aux_LastModified , X_USER_AGENT , extra_headers ) != 0 ) {\n goto error_handler ;\n }\n }\n }\n if ( req -> method == HTTPMETHOD_HEAD ) {\n * rtype = RESP_HEADERS ;\n }\n else if ( using_alias ) {\n * rtype = RESP_XMLDOC ;\n }\n else if ( using_virtual_dir ) {\n * rtype = RESP_WEBDOC ;\n }\n else {\n * rtype = RESP_FILEDOC ;\n }\n if ( req -> method == HTTPMETHOD_SIMPLEGET ) {\n membuffer_destroy ( headers ) ;\n }\n err_code = HTTP_OK ;\n error_handler : free ( request_doc ) ;\n UpnpFileInfo_delete ( finfo ) ;\n if ( err_code != HTTP_OK && alias_grabbed ) {\n alias_release ( alias ) ;\n }\n return err_code ;\n }"}
{"idx": 17067, "target": 1, "func": "static void pdf_show_image ( fz_context * ctx , pdf_run_processor * pr , fz_image * image ) {\n pdf_gstate * gstate = pr -> gstate + pr -> gtop ;\n fz_matrix image_ctm ;\n fz_rect bbox ;\n softmask_save softmask = {\n NULL }\n ;\n if ( pr -> super . hidden ) return ;\n image_ctm = gstate -> ctm ;\n fz_pre_scale ( fz_pre_translate ( & image_ctm , 0 , 1 ) , 1 , - 1 ) ;\n bbox = fz_unit_rect ;\n fz_transform_rect ( & bbox , & image_ctm ) ;\n if ( image -> mask ) {\n if ( gstate -> blendmode ) fz_begin_group ( ctx , pr -> dev , & bbox , NULL , 0 , 0 , gstate -> blendmode , 1 ) ;\n fz_clip_image_mask ( ctx , pr -> dev , image -> mask , & image_ctm , & bbox ) ;\n }\n else gstate = pdf_begin_group ( ctx , pr , & bbox , & softmask ) ;\n if ( ! image -> colorspace ) {\n switch ( gstate -> fill . kind ) {\n case PDF_MAT_NONE : break ;\n case PDF_MAT_COLOR : fz_fill_image_mask ( ctx , pr -> dev , image , & image_ctm , gstate -> fill . colorspace , gstate -> fill . v , gstate -> fill . alpha , & gstate -> fill . color_params ) ;\n break ;\n case PDF_MAT_PATTERN : if ( gstate -> fill . pattern ) {\n fz_clip_image_mask ( ctx , pr -> dev , image , & image_ctm , & bbox ) ;\n pdf_show_pattern ( ctx , pr , gstate -> fill . pattern , & pr -> gstate [ gstate -> fill . gstate_num ] , & bbox , PDF_FILL ) ;\n fz_pop_clip ( ctx , pr -> dev ) ;\n }\n break ;\n case PDF_MAT_SHADE : if ( gstate -> fill . shade ) {\n fz_clip_image_mask ( ctx , pr -> dev , image , & image_ctm , & bbox ) ;\n fz_fill_shade ( ctx , pr -> dev , gstate -> fill . shade , & pr -> gstate [ gstate -> fill . gstate_num ] . ctm , gstate -> fill . alpha , & gstate -> fill . color_params ) ;\n fz_pop_clip ( ctx , pr -> dev ) ;\n }\n break ;\n }\n }\n else {\n fz_fill_image ( ctx , pr -> dev , image , & image_ctm , gstate -> fill . alpha , & gstate -> fill . color_params ) ;\n }\n if ( image -> mask ) {\n fz_pop_clip ( ctx , pr -> dev ) ;\n if ( gstate -> blendmode ) fz_end_group ( ctx , pr -> dev ) ;\n }\n else pdf_end_group ( ctx , pr , & softmask ) ;\n }"}
{"idx": 17068, "target": 0, "func": "gpg_error_t keydb_search_first ( KEYDB_HANDLE hd ) {\n gpg_error_t err ;\n KEYDB_SEARCH_DESC desc ;\n memset ( & desc , 0 , sizeof desc ) ;\n desc . mode = KEYDB_SEARCH_MODE_FIRST ;\n err = keydb_search ( hd , & desc , 1 , NULL ) ;\n if ( gpg_err_code ( err ) == GPG_ERR_LEGACY_KEY ) err = keydb_search_next ( hd ) ;\n return err ;\n }"}
{"idx": 17069, "target": 0, "func": "static int dissect_pvfs2_statfs_request ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo _U_ ) {\n offset = dissect_pvfs_fs_id ( tvb , tree , offset ) ;\n return offset ;\n }"}
{"idx": 17070, "target": 0, "func": "int gx_parse_output_file_name ( gs_parsed_file_name_t * pfn , const char * * pfmt , const char * fname , uint fnlen , gs_memory_t * memory ) {\n int code ;\n * pfmt = 0 ;\n pfn -> memory = 0 ;\n pfn -> iodev = NULL ;\n pfn -> fname = NULL ;\n pfn -> len = 0 ;\n if ( fnlen == 0 ) return 0 ;\n code = gs_parse_file_name ( pfn , fname , fnlen , memory ) ;\n if ( code < 0 ) {\n if ( fname [ 0 ] == '%' ) {\n pfn -> len = fnlen ;\n pfn -> fname = fname ;\n code = gx_parse_output_format ( pfn , pfmt ) ;\n }\n if ( code < 0 ) return code ;\n }\n if ( ! pfn -> iodev ) {\n if ( ( pfn -> len == 1 ) && ( pfn -> fname [ 0 ] == '-' ) ) {\n pfn -> iodev = gs_findiodevice ( memory , ( const byte * ) \"%stdout\" , 7 ) ;\n pfn -> fname = NULL ;\n }\n else if ( pfn -> fname [ 0 ] == '|' ) {\n pfn -> iodev = gs_findiodevice ( memory , ( const byte * ) \"%pipe\" , 5 ) ;\n pfn -> fname ++ , pfn -> len -- ;\n }\n else pfn -> iodev = iodev_default ( memory ) ;\n if ( ! pfn -> iodev ) return_error ( gs_error_undefinedfilename ) ;\n }\n if ( ! pfn -> fname ) return 0 ;\n code = gx_parse_output_format ( pfn , pfmt ) ;\n if ( code < 0 ) return code ;\n if ( strlen ( pfn -> iodev -> dname ) + pfn -> len + code >= gp_file_name_sizeof ) return_error ( gs_error_undefinedfilename ) ;\n return 0 ;\n }"}
{"idx": 17071, "target": 1, "func": "static void encode_frame_to_data_rate ( VP9_COMP * cpi , size_t * size , uint8_t * dest , unsigned int * frame_flags ) {\n VP9_COMMON * const cm = & cpi -> common ;\n const VP9EncoderConfig * const oxcf = & cpi -> oxcf ;\n struct segmentation * const seg = & cm -> seg ;\n TX_SIZE t ;\n int q ;\n int top_index ;\n int bottom_index ;\n set_ext_overrides ( cpi ) ;\n cpi -> Source = vp9_scale_if_required ( cm , cpi -> un_scaled_source , & cpi -> scaled_source ) ;\n if ( cpi -> unscaled_last_source != NULL ) cpi -> Last_Source = vp9_scale_if_required ( cm , cpi -> unscaled_last_source , & cpi -> scaled_last_source ) ;\n vp9_scale_references ( cpi ) ;\n vp9_clear_system_state ( ) ;\n cpi -> zbin_mode_boost = 0 ;\n cpi -> zbin_mode_boost_enabled = 0 ;\n set_arf_sign_bias ( cpi ) ;\n cm -> lf . mode_ref_delta_update = 0 ;\n set_mv_search_params ( cpi ) ;\n if ( cpi -> oxcf . pass == 2 && cpi -> sf . adaptive_interp_filter_search ) cpi -> sf . interp_filter_search_mask = setup_interp_filter_search_mask ( cpi ) ;\n if ( frame_is_intra_only ( cm ) ) {\n vp9_reset_segment_features ( & cm -> seg ) ;\n if ( seg -> enabled ) {\n seg -> update_map = 1 ;\n seg -> update_data = 1 ;\n }\n cpi -> rc . source_alt_ref_active = 0 ;\n cm -> error_resilient_mode = oxcf -> error_resilient_mode ;\n if ( cm -> error_resilient_mode ) {\n cm -> frame_parallel_decoding_mode = 1 ;\n cm -> reset_frame_context = 0 ;\n cm -> refresh_frame_context = 0 ;\n }\n else if ( cm -> intra_only ) {\n cm -> frame_parallel_decoding_mode = oxcf -> frame_parallel_decoding_mode ;\n cm -> reset_frame_context = 2 ;\n }\n }\n if ( is_two_pass_svc ( cpi ) && cm -> error_resilient_mode == 0 ) {\n cm -> frame_context_idx = cpi -> svc . spatial_layer_id * cpi -> svc . number_temporal_layers + cpi -> svc . temporal_layer_id ;\n if ( cpi -> svc . number_temporal_layers == 1 ) {\n if ( cpi -> svc . spatial_layer_id == 0 && cpi -> svc . layer_context [ 0 ] . last_frame_type == KEY_FRAME ) cm -> frame_parallel_decoding_mode = 1 ;\n else cm -> frame_parallel_decoding_mode = 0 ;\n }\n else if ( cpi -> svc . spatial_layer_id == 0 ) {\n int i ;\n for ( i = 0 ;\n i < cpi -> svc . number_temporal_layers ;\n ++ i ) {\n if ( cpi -> svc . layer_context [ 0 ] . frames_from_key_frame == 1 << i ) {\n cm -> frame_parallel_decoding_mode = 1 ;\n break ;\n }\n }\n if ( i == cpi -> svc . number_temporal_layers ) cm -> frame_parallel_decoding_mode = 0 ;\n }\n }\n if ( oxcf -> pass == 2 && cpi -> sf . static_segmentation ) configure_static_seg_features ( cpi ) ;\n if ( oxcf -> pass == 2 && ( ! cpi -> use_svc || is_two_pass_svc ( cpi ) ) ) {\n cpi -> skippable_frame = is_skippable_frame ( cpi ) ;\n }\n if ( oxcf -> pass == 0 && oxcf -> rc_mode == VPX_CBR && cm -> frame_type != KEY_FRAME ) {\n if ( vp9_rc_drop_frame ( cpi ) ) {\n vp9_rc_postencode_update_drop_frame ( cpi ) ;\n ++ cm -> current_video_frame ;\n return ;\n }\n }\n vp9_clear_system_state ( ) ;\n # if CONFIG_VP9_POSTPROC if ( oxcf -> noise_sensitivity > 0 ) {\n int l = 0 ;\n switch ( oxcf -> noise_sensitivity ) {\n case 1 : l = 20 ;\n break ;\n case 2 : l = 40 ;\n break ;\n case 3 : l = 60 ;\n break ;\n case 4 : case 5 : l = 100 ;\n break ;\n case 6 : l = 150 ;\n break ;\n }\n vp9_denoise ( cpi -> Source , cpi -> Source , l ) ;\n }\n # endif # if CONFIG_INTERNAL_STATS int i ;\n for ( i = 0 ;\n i < MAX_MODES ;\n ++ i ) cpi -> mode_chosen_counts [ i ] = 0 ;\n # endif vp9_set_speed_features ( cpi ) ;\n vp9_set_rd_speed_thresholds ( cpi ) ;\n vp9_set_rd_speed_thresholds_sub8x8 ( cpi ) ;\n q = vp9_rc_pick_q_and_bounds ( cpi , & bottom_index , & top_index ) ;\n if ( ! frame_is_intra_only ( cm ) ) {\n cm -> interp_filter = cpi -> sf . default_interp_filter ;\n vp9_set_high_precision_mv ( cpi , q < HIGH_PRECISION_MV_QTHRESH ) ;\n }\n if ( cpi -> sf . recode_loop == DISALLOW_RECODE ) {\n encode_without_recode_loop ( cpi , q ) ;\n }\n else {\n encode_with_recode_loop ( cpi , size , dest , q , bottom_index , top_index ) ;\n }\n # if CONFIG_VP9_TEMPORAL_DENOISING # ifdef OUTPUT_YUV_DENOISED if ( oxcf -> noise_sensitivity > 0 ) {\n vp9_write_yuv_frame_420 ( & cpi -> denoiser . running_avg_y [ INTRA_FRAME ] , yuv_denoised_file ) ;\n }\n # endif # endif if ( cpi -> rc . next_key_frame_forced && cpi -> rc . frames_to_key == 1 ) {\n cpi -> ambient_err = vp9_get_y_sse ( cpi -> Source , get_frame_new_buffer ( cm ) ) ;\n }\n if ( cm -> frame_type == KEY_FRAME ) cpi -> refresh_last_frame = 1 ;\n cm -> frame_to_show = get_frame_new_buffer ( cm ) ;\n loopfilter_frame ( cpi , cm ) ;\n vp9_pack_bitstream ( cpi , dest , size ) ;\n if ( cm -> seg . update_map ) update_reference_segmentation_map ( cpi ) ;\n release_scaled_references ( cpi ) ;\n vp9_update_reference_frames ( cpi ) ;\n for ( t = TX_4X4 ;\n t <= TX_32X32 ;\n t ++ ) full_to_model_counts ( cm -> counts . coef [ t ] , cpi -> coef_counts [ t ] ) ;\n if ( ! cm -> error_resilient_mode && ! cm -> frame_parallel_decoding_mode ) vp9_adapt_coef_probs ( cm ) ;\n if ( ! frame_is_intra_only ( cm ) ) {\n if ( ! cm -> error_resilient_mode && ! cm -> frame_parallel_decoding_mode ) {\n vp9_adapt_mode_probs ( cm ) ;\n vp9_adapt_mv_probs ( cm , cm -> allow_high_precision_mv ) ;\n }\n }\n if ( cpi -> refresh_golden_frame == 1 ) cpi -> frame_flags |= FRAMEFLAGS_GOLDEN ;\n else cpi -> frame_flags &= ~ FRAMEFLAGS_GOLDEN ;\n if ( cpi -> refresh_alt_ref_frame == 1 ) cpi -> frame_flags |= FRAMEFLAGS_ALTREF ;\n else cpi -> frame_flags &= ~ FRAMEFLAGS_ALTREF ;\n cpi -> ref_frame_flags = get_ref_frame_flags ( cpi ) ;\n cm -> last_frame_type = cm -> frame_type ;\n vp9_rc_postencode_update ( cpi , * size ) ;\n # if 0 output_frame_level_debug_stats ( cpi ) ;\n # endif if ( cm -> frame_type == KEY_FRAME ) {\n * frame_flags = cpi -> frame_flags | FRAMEFLAGS_KEY ;\n }\n else {\n * frame_flags = cpi -> frame_flags & ~ FRAMEFLAGS_KEY ;\n }\n cm -> seg . update_map = 0 ;\n cm -> seg . update_data = 0 ;\n cm -> lf . mode_ref_delta_update = 0 ;\n cm -> last_width = cm -> width ;\n cm -> last_height = cm -> height ;\n if ( ! cm -> show_existing_frame ) {\n if ( is_two_pass_svc ( cpi ) && cm -> error_resilient_mode == 0 ) cm -> last_show_frame = 0 ;\n else cm -> last_show_frame = cm -> show_frame ;\n }\n if ( cm -> show_frame ) {\n vp9_swap_mi_and_prev_mi ( cm ) ;\n ++ cm -> current_video_frame ;\n if ( cpi -> use_svc ) vp9_inc_frame_in_layer ( cpi ) ;\n }\n if ( is_two_pass_svc ( cpi ) ) cpi -> svc . layer_context [ cpi -> svc . spatial_layer_id ] . last_frame_type = cm -> frame_type ;\n }"}
{"idx": 17072, "target": 0, "func": "static int nntp_mbox_check ( struct Context * ctx , int * index_hint ) {\n int ret = check_mailbox ( ctx ) ;\n if ( ret == 0 ) {\n struct NntpData * nntp_data = ctx -> data ;\n struct NntpServer * nserv = nntp_data -> nserv ;\n nntp_newsrc_close ( nserv ) ;\n }\n return ret ;\n }"}
{"idx": 17073, "target": 0, "func": "proto_item * proto_tree_add_int64_format_value ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , gint64 value , const char * format , ... ) {\n proto_item * pi ;\n va_list ap ;\n pi = proto_tree_add_int64 ( tree , hfindex , tvb , start , length , value ) ;\n if ( pi != tree ) {\n va_start ( ap , format ) ;\n proto_tree_set_representation_value ( pi , format , ap ) ;\n va_end ( ap ) ;\n }\n return pi ;\n }"}
{"idx": 17074, "target": 0, "func": "static int avi_read_close ( AVFormatContext * s ) {\n int i ;\n AVIContext * avi = s -> priv_data ;\n for ( i = 0 ;\n i < s -> nb_streams ;\n i ++ ) {\n AVStream * st = s -> streams [ i ] ;\n AVIStream * ast = st -> priv_data ;\n if ( ast ) {\n if ( ast -> sub_ctx ) {\n av_freep ( & ast -> sub_ctx -> pb ) ;\n avformat_close_input ( & ast -> sub_ctx ) ;\n }\n av_freep ( & ast -> sub_buffer ) ;\n av_packet_unref ( & ast -> sub_pkt ) ;\n }\n }\n av_freep ( & avi -> dv_demux ) ;\n return 0 ;\n }"}
{"idx": 17075, "target": 0, "func": "static PGconn * connectDatabase ( const char * dbname , const char * connection_string , const char * pghost , const char * pgport , const char * pguser , trivalue prompt_password , bool fail_on_error ) {\n PGconn * conn ;\n bool new_pass ;\n const char * remoteversion_str ;\n int my_version ;\n static char * password = NULL ;\n const char * * keywords = NULL ;\n const char * * values = NULL ;\n PQconninfoOption * conn_opts = NULL ;\n if ( prompt_password == TRI_YES && ! password ) password = simple_prompt ( \"Password: \" , 100 , false ) ;\n do {\n int argcount = 6 ;\n PQconninfoOption * conn_opt ;\n char * err_msg = NULL ;\n int i = 0 ;\n if ( keywords ) free ( keywords ) ;\n if ( values ) free ( values ) ;\n if ( conn_opts ) PQconninfoFree ( conn_opts ) ;\n if ( connection_string ) {\n conn_opts = PQconninfoParse ( connection_string , & err_msg ) ;\n if ( conn_opts == NULL ) {\n fprintf ( stderr , \"%s: %s\" , progname , err_msg ) ;\n exit_nicely ( 1 ) ;\n }\n for ( conn_opt = conn_opts ;\n conn_opt -> keyword != NULL ;\n conn_opt ++ ) {\n if ( conn_opt -> val != NULL && conn_opt -> val [ 0 ] != '\\0' && strcmp ( conn_opt -> keyword , \"dbname\" ) != 0 ) argcount ++ ;\n }\n keywords = pg_malloc0 ( ( argcount + 1 ) * sizeof ( * keywords ) ) ;\n values = pg_malloc0 ( ( argcount + 1 ) * sizeof ( * values ) ) ;\n for ( conn_opt = conn_opts ;\n conn_opt -> keyword != NULL ;\n conn_opt ++ ) {\n if ( conn_opt -> val != NULL && conn_opt -> val [ 0 ] != '\\0' && strcmp ( conn_opt -> keyword , \"dbname\" ) != 0 ) {\n keywords [ i ] = conn_opt -> keyword ;\n values [ i ] = conn_opt -> val ;\n i ++ ;\n }\n }\n }\n else {\n keywords = pg_malloc0 ( ( argcount + 1 ) * sizeof ( * keywords ) ) ;\n values = pg_malloc0 ( ( argcount + 1 ) * sizeof ( * values ) ) ;\n }\n if ( pghost ) {\n keywords [ i ] = \"host\" ;\n values [ i ] = pghost ;\n i ++ ;\n }\n if ( pgport ) {\n keywords [ i ] = \"port\" ;\n values [ i ] = pgport ;\n i ++ ;\n }\n if ( pguser ) {\n keywords [ i ] = \"user\" ;\n values [ i ] = pguser ;\n i ++ ;\n }\n if ( password ) {\n keywords [ i ] = \"password\" ;\n values [ i ] = password ;\n i ++ ;\n }\n if ( dbname ) {\n keywords [ i ] = \"dbname\" ;\n values [ i ] = dbname ;\n i ++ ;\n }\n keywords [ i ] = \"fallback_application_name\" ;\n values [ i ] = progname ;\n i ++ ;\n new_pass = false ;\n conn = PQconnectdbParams ( keywords , values , true ) ;\n if ( ! conn ) {\n fprintf ( stderr , _ ( \"%s: could not connect to database \\\"%s\\\"\\n\" ) , progname , dbname ) ;\n exit_nicely ( 1 ) ;\n }\n if ( PQstatus ( conn ) == CONNECTION_BAD && PQconnectionNeedsPassword ( conn ) && password == NULL && prompt_password != TRI_NO ) {\n PQfinish ( conn ) ;\n password = simple_prompt ( \"Password: \" , 100 , false ) ;\n new_pass = true ;\n }\n }\n while ( new_pass ) ;\n if ( PQstatus ( conn ) == CONNECTION_BAD ) {\n if ( fail_on_error ) {\n fprintf ( stderr , _ ( \"%s: could not connect to database \\\"%s\\\": %s\\n\" ) , progname , dbname , PQerrorMessage ( conn ) ) ;\n exit_nicely ( 1 ) ;\n }\n else {\n PQfinish ( conn ) ;\n free ( keywords ) ;\n free ( values ) ;\n PQconninfoFree ( conn_opts ) ;\n return NULL ;\n }\n }\n connstr = constructConnStr ( keywords , values ) ;\n free ( keywords ) ;\n free ( values ) ;\n PQconninfoFree ( conn_opts ) ;\n remoteversion_str = PQparameterStatus ( conn , \"server_version\" ) ;\n if ( ! remoteversion_str ) {\n fprintf ( stderr , _ ( \"%s: could not get server version\\n\" ) , progname ) ;\n exit_nicely ( 1 ) ;\n }\n server_version = PQserverVersion ( conn ) ;\n if ( server_version == 0 ) {\n fprintf ( stderr , _ ( \"%s: could not parse server version \\\"%s\\\"\\n\" ) , progname , remoteversion_str ) ;\n exit_nicely ( 1 ) ;\n }\n my_version = PG_VERSION_NUM ;\n if ( my_version != server_version && ( server_version < 70000 || ( server_version / 100 ) > ( my_version / 100 ) ) ) {\n fprintf ( stderr , _ ( \"server version: %s;\n %s version: %s\\n\" ) , remoteversion_str , progname , PG_VERSION ) ;\n fprintf ( stderr , _ ( \"aborting because of server version mismatch\\n\" ) ) ;\n exit_nicely ( 1 ) ;\n }\n if ( server_version >= 70300 ) executeCommand ( conn , \"SET search_path = pg_catalog\" ) ;\n return conn ;\n }"}
{"idx": 17076, "target": 0, "func": "static int asf_write_index ( AVFormatContext * s , const ASFIndex * index , uint16_t max , uint32_t count ) {\n AVIOContext * pb = s -> pb ;\n int i ;\n ff_put_guid ( pb , & ff_asf_simple_index_header ) ;\n avio_wl64 ( pb , 24 + 16 + 8 + 4 + 4 + ( 4 + 2 ) * count ) ;\n ff_put_guid ( pb , & ff_asf_my_guid ) ;\n avio_wl64 ( pb , ASF_INDEXED_INTERVAL ) ;\n avio_wl32 ( pb , max ) ;\n avio_wl32 ( pb , count ) ;\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n avio_wl32 ( pb , index [ i ] . packet_number ) ;\n avio_wl16 ( pb , index [ i ] . packet_count ) ;\n }\n return 0 ;\n }"}
{"idx": 17077, "target": 0, "func": "static bool GetNaClVariantRoot ( const base : : FilePath : : StringType & variant , base : : FilePath * document_root ) {\n if ( ! ui_test_utils : : GetRelativeBuildDirectory ( document_root ) ) return false ;\n * document_root = document_root -> Append ( FILE_PATH_LITERAL ( \"nacl_test_data\" ) ) ;\n * document_root = document_root -> Append ( variant ) ;\n return true ;\n }"}
{"idx": 17078, "target": 1, "func": "static spl_filesystem_object * spl_filesystem_object_create_type ( int ht , spl_filesystem_object * source , int type , zend_class_entry * ce , zval * return_value TSRMLS_DC ) {\n spl_filesystem_object * intern ;\n zend_bool use_include_path = 0 ;\n zval * arg1 , * arg2 ;\n zend_error_handling error_handling ;\n zend_replace_error_handling ( EH_THROW , spl_ce_RuntimeException , & error_handling TSRMLS_CC ) ;\n switch ( source -> type ) {\n case SPL_FS_INFO : case SPL_FS_FILE : break ;\n case SPL_FS_DIR : if ( ! source -> u . dir . entry . d_name [ 0 ] ) {\n zend_throw_exception_ex ( spl_ce_RuntimeException , 0 TSRMLS_CC , \"Could not open file\" ) ;\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n return NULL ;\n }\n }\n switch ( type ) {\n case SPL_FS_INFO : ce = ce ? ce : source -> info_class ;\n zend_update_class_constants ( ce TSRMLS_CC ) ;\n return_value -> value . obj = spl_filesystem_object_new_ex ( ce , & intern TSRMLS_CC ) ;\n Z_TYPE_P ( return_value ) = IS_OBJECT ;\n spl_filesystem_object_get_file_name ( source TSRMLS_CC ) ;\n if ( ce -> constructor -> common . scope != spl_ce_SplFileInfo ) {\n MAKE_STD_ZVAL ( arg1 ) ;\n ZVAL_STRINGL ( arg1 , source -> file_name , source -> file_name_len , 1 ) ;\n zend_call_method_with_1_params ( & return_value , ce , & ce -> constructor , \"__construct\" , NULL , arg1 ) ;\n zval_ptr_dtor ( & arg1 ) ;\n }\n else {\n intern -> file_name = estrndup ( source -> file_name , source -> file_name_len ) ;\n intern -> file_name_len = source -> file_name_len ;\n intern -> _path = spl_filesystem_object_get_path ( source , & intern -> _path_len TSRMLS_CC ) ;\n intern -> _path = estrndup ( intern -> _path , intern -> _path_len ) ;\n }\n break ;\n case SPL_FS_FILE : ce = ce ? ce : source -> file_class ;\n zend_update_class_constants ( ce TSRMLS_CC ) ;\n return_value -> value . obj = spl_filesystem_object_new_ex ( ce , & intern TSRMLS_CC ) ;\n Z_TYPE_P ( return_value ) = IS_OBJECT ;\n spl_filesystem_object_get_file_name ( source TSRMLS_CC ) ;\n if ( ce -> constructor -> common . scope != spl_ce_SplFileObject ) {\n MAKE_STD_ZVAL ( arg1 ) ;\n MAKE_STD_ZVAL ( arg2 ) ;\n ZVAL_STRINGL ( arg1 , source -> file_name , source -> file_name_len , 1 ) ;\n ZVAL_STRINGL ( arg2 , \"r\" , 1 , 1 ) ;\n zend_call_method_with_2_params ( & return_value , ce , & ce -> constructor , \"__construct\" , NULL , arg1 , arg2 ) ;\n zval_ptr_dtor ( & arg1 ) ;\n zval_ptr_dtor ( & arg2 ) ;\n }\n else {\n intern -> file_name = source -> file_name ;\n intern -> file_name_len = source -> file_name_len ;\n intern -> _path = spl_filesystem_object_get_path ( source , & intern -> _path_len TSRMLS_CC ) ;\n intern -> _path = estrndup ( intern -> _path , intern -> _path_len ) ;\n intern -> u . file . open_mode = \"r\" ;\n intern -> u . file . open_mode_len = 1 ;\n if ( ht && zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"|sbr\" , & intern -> u . file . open_mode , & intern -> u . file . open_mode_len , & use_include_path , & intern -> u . file . zcontext ) == FAILURE ) {\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n intern -> u . file . open_mode = NULL ;\n intern -> file_name = NULL ;\n zval_dtor ( return_value ) ;\n Z_TYPE_P ( return_value ) = IS_NULL ;\n return NULL ;\n }\n if ( spl_filesystem_file_open ( intern , use_include_path , 0 TSRMLS_CC ) == FAILURE ) {\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n zval_dtor ( return_value ) ;\n Z_TYPE_P ( return_value ) = IS_NULL ;\n return NULL ;\n }\n }\n break ;\n case SPL_FS_DIR : zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n zend_throw_exception_ex ( spl_ce_RuntimeException , 0 TSRMLS_CC , \"Operation not supported\" ) ;\n return NULL ;\n }\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n return NULL ;\n }"}
{"idx": 17079, "target": 0, "func": "static void dissect_dns_common ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , gboolean is_tcp , gboolean is_mdns , gboolean is_llmnr ) {\n int offset = is_tcp ? 2 : 0 ;\n int dns_data_offset ;\n proto_tree * dns_tree = NULL , * field_tree ;\n proto_item * ti , * tf ;\n guint16 flags , opcode , rcode , quest , ans , auth , add ;\n guint id ;\n int cur_off ;\n gboolean isupdate ;\n conversation_t * conversation ;\n dns_conv_info_t * dns_info ;\n dns_transaction_t * dns_trans ;\n wmem_tree_key_t key [ 3 ] ;\n struct DnsTap * dns_stats ;\n guint qtype = 0 ;\n guint qclass = 0 ;\n const guchar * name ;\n int name_len ;\n dns_data_offset = offset ;\n col_clear ( pinfo -> cinfo , COL_INFO ) ;\n id = tvb_get_ntohs ( tvb , offset + DNS_ID ) ;\n flags = tvb_get_ntohs ( tvb , offset + DNS_FLAGS ) ;\n opcode = ( guint16 ) ( ( flags & F_OPCODE ) >> OPCODE_SHIFT ) ;\n rcode = ( guint16 ) ( flags & F_RCODE ) ;\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"%s%s 0x%04x \" , val_to_str ( opcode , opcode_vals , \"Unknown operation (%u)\" ) , ( flags & F_RESPONSE ) ? \" response\" : \"\" , id ) ;\n if ( flags & F_RESPONSE ) {\n if ( rcode != RCODE_NOERROR ) {\n col_append_str ( pinfo -> cinfo , COL_INFO , val_to_str ( rcode , rcode_vals , \"Unknown error (%u)\" ) ) ;\n }\n }\n if ( opcode == OPCODE_UPDATE ) {\n isupdate = TRUE ;\n }\n else {\n isupdate = FALSE ;\n }\n if ( tree ) {\n if ( is_llmnr ) {\n ti = proto_tree_add_protocol_format ( tree , proto_dns , tvb , 0 , - 1 , \"Link-local Multicast Name Resolution (%s)\" , ( flags & F_RESPONSE ) ? \"response\" : \"query\" ) ;\n }\n else {\n ti = proto_tree_add_protocol_format ( tree , proto_dns , tvb , 0 , - 1 , \"Domain Name System (%s)\" , ( flags & F_RESPONSE ) ? \"response\" : \"query\" ) ;\n }\n dns_tree = proto_item_add_subtree ( ti , ett_dns ) ;\n }\n conversation = find_or_create_conversation ( pinfo ) ;\n dns_info = ( dns_conv_info_t * ) conversation_get_proto_data ( conversation , proto_dns ) ;\n if ( ! dns_info ) {\n dns_info = wmem_new ( wmem_file_scope ( ) , dns_conv_info_t ) ;\n dns_info -> pdus = wmem_tree_new ( wmem_file_scope ( ) ) ;\n conversation_add_proto_data ( conversation , proto_dns , dns_info ) ;\n }\n key [ 0 ] . length = 1 ;\n key [ 0 ] . key = & id ;\n key [ 1 ] . length = 1 ;\n key [ 1 ] . key = & pinfo -> fd -> num ;\n key [ 2 ] . length = 0 ;\n key [ 2 ] . key = NULL ;\n if ( ! pinfo -> fd -> flags . visited ) {\n if ( ! ( flags & F_RESPONSE ) ) {\n dns_trans = wmem_new ( wmem_file_scope ( ) , dns_transaction_t ) ;\n dns_trans -> req_frame = pinfo -> fd -> num ;\n dns_trans -> rep_frame = 0 ;\n dns_trans -> req_time = pinfo -> fd -> abs_ts ;\n dns_trans -> id = id ;\n wmem_tree_insert32_array ( dns_info -> pdus , key , ( void * ) dns_trans ) ;\n }\n else {\n dns_trans = ( dns_transaction_t * ) wmem_tree_lookup32_array_le ( dns_info -> pdus , key ) ;\n if ( dns_trans ) {\n if ( dns_trans -> id != id ) {\n dns_trans = NULL ;\n }\n else {\n dns_trans -> rep_frame = pinfo -> fd -> num ;\n }\n }\n }\n }\n else {\n dns_trans = ( dns_transaction_t * ) wmem_tree_lookup32_array_le ( dns_info -> pdus , key ) ;\n if ( dns_trans && dns_trans -> id != id ) {\n dns_trans = NULL ;\n }\n }\n if ( ! dns_trans ) {\n dns_trans = wmem_new ( wmem_packet_scope ( ) , dns_transaction_t ) ;\n dns_trans -> req_frame = 0 ;\n dns_trans -> rep_frame = 0 ;\n dns_trans -> req_time = pinfo -> fd -> abs_ts ;\n }\n if ( ! ( flags & F_RESPONSE ) ) {\n if ( dns_trans -> rep_frame ) {\n proto_item * it ;\n it = proto_tree_add_uint ( dns_tree , hf_dns_response_in , tvb , 0 , 0 , dns_trans -> rep_frame ) ;\n PROTO_ITEM_SET_GENERATED ( it ) ;\n }\n }\n else {\n if ( dns_trans -> req_frame ) {\n proto_item * it ;\n nstime_t ns ;\n it = proto_tree_add_uint ( dns_tree , hf_dns_response_to , tvb , 0 , 0 , dns_trans -> req_frame ) ;\n PROTO_ITEM_SET_GENERATED ( it ) ;\n nstime_delta ( & ns , & pinfo -> fd -> abs_ts , & dns_trans -> req_time ) ;\n it = proto_tree_add_time ( dns_tree , hf_dns_time , tvb , 0 , 0 , & ns ) ;\n PROTO_ITEM_SET_GENERATED ( it ) ;\n }\n }\n if ( is_tcp ) {\n proto_tree_add_item ( dns_tree , hf_dns_length , tvb , offset - 2 , 2 , ENC_BIG_ENDIAN ) ;\n }\n proto_tree_add_uint ( dns_tree , hf_dns_transaction_id , tvb , offset + DNS_ID , 2 , id ) ;\n tf = proto_tree_add_item ( dns_tree , hf_dns_flags , tvb , offset + DNS_FLAGS , 2 , ENC_BIG_ENDIAN ) ;\n proto_item_append_text ( tf , \" %s\" , val_to_str_const ( opcode , opcode_vals , \"Unknown operation\" ) ) ;\n if ( flags & F_RESPONSE ) {\n proto_item_append_text ( tf , \" response, %s\" , val_to_str_const ( rcode , rcode_vals , \"Unknown error\" ) ) ;\n }\n field_tree = proto_item_add_subtree ( tf , ett_dns_flags ) ;\n proto_tree_add_item ( field_tree , hf_dns_flags_response , tvb , offset + DNS_FLAGS , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( field_tree , hf_dns_flags_opcode , tvb , offset + DNS_FLAGS , 2 , ENC_BIG_ENDIAN ) ;\n if ( is_llmnr ) {\n if ( flags & F_RESPONSE ) {\n proto_tree_add_item ( field_tree , hf_dns_flags_conflict_response , tvb , offset + DNS_FLAGS , 2 , ENC_BIG_ENDIAN ) ;\n }\n else {\n proto_tree_add_item ( field_tree , hf_dns_flags_conflict_query , tvb , offset + DNS_FLAGS , 2 , ENC_BIG_ENDIAN ) ;\n }\n proto_tree_add_item ( field_tree , hf_dns_flags_truncated , tvb , offset + DNS_FLAGS , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( field_tree , hf_dns_flags_tentative , tvb , offset + DNS_FLAGS , 2 , ENC_BIG_ENDIAN ) ;\n if ( flags & F_RESPONSE ) {\n proto_tree_add_item ( field_tree , hf_dns_flags_rcode , tvb , offset + DNS_FLAGS , 2 , ENC_BIG_ENDIAN ) ;\n }\n }\n else {\n if ( flags & F_RESPONSE ) {\n proto_tree_add_item ( field_tree , hf_dns_flags_authoritative , tvb , offset + DNS_FLAGS , 2 , ENC_BIG_ENDIAN ) ;\n }\n proto_tree_add_item ( field_tree , hf_dns_flags_truncated , tvb , offset + DNS_FLAGS , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( field_tree , hf_dns_flags_recdesired , tvb , offset + DNS_FLAGS , 2 , ENC_BIG_ENDIAN ) ;\n if ( flags & F_RESPONSE ) {\n proto_tree_add_item ( field_tree , hf_dns_flags_recavail , tvb , offset + DNS_FLAGS , 2 , ENC_BIG_ENDIAN ) ;\n }\n proto_tree_add_item ( field_tree , hf_dns_flags_z , tvb , offset + DNS_FLAGS , 2 , ENC_BIG_ENDIAN ) ;\n if ( flags & F_RESPONSE ) {\n proto_tree_add_item ( field_tree , hf_dns_flags_authenticated , tvb , offset + DNS_FLAGS , 2 , ENC_BIG_ENDIAN ) ;\n }\n else if ( flags & F_AUTHENTIC ) {\n proto_tree_add_item ( field_tree , hf_dns_flags_ad , tvb , offset + DNS_FLAGS , 2 , ENC_BIG_ENDIAN ) ;\n }\n proto_tree_add_item ( field_tree , hf_dns_flags_checkdisable , tvb , offset + DNS_FLAGS , 2 , ENC_BIG_ENDIAN ) ;\n if ( flags & F_RESPONSE ) {\n proto_tree_add_item ( field_tree , hf_dns_flags_rcode , tvb , offset + DNS_FLAGS , 2 , ENC_BIG_ENDIAN ) ;\n }\n }\n quest = tvb_get_ntohs ( tvb , offset + DNS_QUEST ) ;\n if ( tree ) {\n if ( isupdate ) {\n proto_tree_add_uint ( dns_tree , hf_dns_count_zones , tvb , offset + DNS_QUEST , 2 , quest ) ;\n }\n else {\n proto_tree_add_uint ( dns_tree , hf_dns_count_questions , tvb , offset + DNS_QUEST , 2 , quest ) ;\n }\n }\n ans = tvb_get_ntohs ( tvb , offset + DNS_ANS ) ;\n if ( tree ) {\n if ( isupdate ) {\n proto_tree_add_uint ( dns_tree , hf_dns_count_prerequisites , tvb , offset + DNS_ANS , 2 , ans ) ;\n }\n else {\n proto_tree_add_uint ( dns_tree , hf_dns_count_answers , tvb , offset + DNS_ANS , 2 , ans ) ;\n }\n }\n auth = tvb_get_ntohs ( tvb , offset + DNS_AUTH ) ;\n if ( tree ) {\n if ( isupdate ) {\n proto_tree_add_uint ( dns_tree , hf_dns_count_updates , tvb , offset + DNS_AUTH , 2 , auth ) ;\n }\n else {\n proto_tree_add_uint ( dns_tree , hf_dns_count_auth_rr , tvb , offset + DNS_AUTH , 2 , auth ) ;\n }\n }\n add = tvb_get_ntohs ( tvb , offset + DNS_ADD ) ;\n if ( tree ) {\n proto_tree_add_uint ( dns_tree , hf_dns_count_add_rr , tvb , offset + DNS_ADD , 2 , add ) ;\n }\n cur_off = offset + DNS_HDRLEN ;\n dns_stats = wmem_new0 ( wmem_packet_scope ( ) , struct DnsTap ) ;\n dns_stats -> packet_rcode = rcode ;\n dns_stats -> packet_opcode = opcode ;\n dns_stats -> packet_qr = flags >> 15 ;\n get_dns_name_type_class ( tvb , cur_off , dns_data_offset , & name , & name_len , & qtype , & qclass ) ;\n dns_stats -> packet_qtype = qtype ;\n dns_stats -> packet_qclass = qclass ;\n dns_stats -> payload_size = tvb_captured_length ( tvb ) ;\n dns_stats -> nquestions = quest ;\n dns_stats -> nanswers = ans ;\n dns_stats -> nauthorities = auth ;\n dns_stats -> nadditionals = add ;\n if ( quest > 0 ) {\n cur_off += dissect_query_records ( tvb , cur_off , dns_data_offset , quest , ( ! ( flags & F_RESPONSE ) ? pinfo -> cinfo : NULL ) , dns_tree , isupdate , is_mdns ) ;\n dns_stats -> qname_len = name_len ;\n dns_stats -> qname_labels = qname_labels_count ( name , name_len ) ;\n }\n if ( ans > 0 ) {\n cur_off += dissect_answer_records ( tvb , cur_off , dns_data_offset , ans , ( ( flags & F_RESPONSE ) ? pinfo -> cinfo : NULL ) , dns_tree , ( isupdate ? \"Prerequisites\" : \"Answers\" ) , pinfo , is_mdns ) ;\n }\n if ( auth > 0 ) {\n cur_off += dissect_answer_records ( tvb , cur_off , dns_data_offset , auth , NULL , dns_tree , ( isupdate ? \"Updates\" : \"Authoritative nameservers\" ) , pinfo , is_mdns ) ;\n }\n if ( add > 0 ) {\n dissect_answer_records ( tvb , cur_off , dns_data_offset , add , NULL , dns_tree , \"Additional records\" , pinfo , is_mdns ) ;\n }\n tap_queue_packet ( dns_tap , pinfo , dns_stats ) ;\n }"}
{"idx": 17080, "target": 0, "func": "static int dissect_dns_tcp_pdu ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"DNS\" ) ;\n dissect_dns_common ( tvb , pinfo , tree , TRUE , FALSE , FALSE ) ;\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 17081, "target": 0, "func": "inline static bool is_localhost ( const char * name , int len ) {\n static const char local [ ] = \"127.0.0.1\" ;\n return ( len == ( sizeof ( local ) - 1 ) ) && ( memcmp ( name , local , len ) == 0 ) ;\n }"}
{"idx": 17082, "target": 1, "func": "PGconn * GetConnection ( void ) {\n PGconn * tmpconn ;\n int argcount = 7 ;\n int i ;\n const char * * keywords ;\n const char * * values ;\n const char * tmpparam ;\n bool need_password ;\n PQconninfoOption * conn_opts = NULL ;\n PQconninfoOption * conn_opt ;\n char * err_msg = NULL ;\n i = 0 ;\n if ( connection_string ) {\n conn_opts = PQconninfoParse ( connection_string , & err_msg ) ;\n if ( conn_opts == NULL ) {\n fprintf ( stderr , \"%s: %s\" , progname , err_msg ) ;\n exit ( 1 ) ;\n }\n for ( conn_opt = conn_opts ;\n conn_opt -> keyword != NULL ;\n conn_opt ++ ) {\n if ( conn_opt -> val != NULL && conn_opt -> val [ 0 ] != '\\0' ) argcount ++ ;\n }\n keywords = pg_malloc0 ( ( argcount + 1 ) * sizeof ( * keywords ) ) ;\n values = pg_malloc0 ( ( argcount + 1 ) * sizeof ( * values ) ) ;\n for ( conn_opt = conn_opts ;\n conn_opt -> keyword != NULL ;\n conn_opt ++ ) {\n if ( conn_opt -> val != NULL && conn_opt -> val [ 0 ] != '\\0' ) {\n keywords [ i ] = conn_opt -> keyword ;\n values [ i ] = conn_opt -> val ;\n i ++ ;\n }\n }\n }\n else {\n keywords = pg_malloc0 ( ( argcount + 1 ) * sizeof ( * keywords ) ) ;\n values = pg_malloc0 ( ( argcount + 1 ) * sizeof ( * values ) ) ;\n }\n keywords [ i ] = \"dbname\" ;\n values [ i ] = dbname == NULL ? \"replication\" : dbname ;\n i ++ ;\n keywords [ i ] = \"replication\" ;\n values [ i ] = dbname == NULL ? \"true\" : \"database\" ;\n i ++ ;\n keywords [ i ] = \"fallback_application_name\" ;\n values [ i ] = progname ;\n i ++ ;\n if ( dbhost ) {\n keywords [ i ] = \"host\" ;\n values [ i ] = dbhost ;\n i ++ ;\n }\n if ( dbuser ) {\n keywords [ i ] = \"user\" ;\n values [ i ] = dbuser ;\n i ++ ;\n }\n if ( dbport ) {\n keywords [ i ] = \"port\" ;\n values [ i ] = dbport ;\n i ++ ;\n }\n need_password = ( dbgetpassword == 1 && dbpassword == NULL ) ;\n do {\n if ( need_password ) {\n if ( dbpassword ) free ( dbpassword ) ;\n dbpassword = simple_prompt ( _ ( \"Password: \" ) , 100 , false ) ;\n need_password = false ;\n }\n if ( dbpassword ) {\n keywords [ i ] = \"password\" ;\n values [ i ] = dbpassword ;\n }\n else {\n keywords [ i ] = NULL ;\n values [ i ] = NULL ;\n }\n tmpconn = PQconnectdbParams ( keywords , values , true ) ;\n if ( ! tmpconn ) {\n fprintf ( stderr , _ ( \"%s: could not connect to server\\n\" ) , progname ) ;\n exit ( 1 ) ;\n }\n if ( PQstatus ( tmpconn ) == CONNECTION_BAD && PQconnectionNeedsPassword ( tmpconn ) && dbgetpassword != - 1 ) {\n PQfinish ( tmpconn ) ;\n need_password = true ;\n }\n }\n while ( need_password ) ;\n if ( PQstatus ( tmpconn ) != CONNECTION_OK ) {\n fprintf ( stderr , _ ( \"%s: could not connect to server: %s\" ) , progname , PQerrorMessage ( tmpconn ) ) ;\n PQfinish ( tmpconn ) ;\n free ( values ) ;\n free ( keywords ) ;\n if ( conn_opts ) PQconninfoFree ( conn_opts ) ;\n return NULL ;\n }\n free ( values ) ;\n free ( keywords ) ;\n if ( conn_opts ) PQconninfoFree ( conn_opts ) ;\n tmpparam = PQparameterStatus ( tmpconn , \"integer_datetimes\" ) ;\n if ( ! tmpparam ) {\n fprintf ( stderr , _ ( \"%s: could not determine server setting for integer_datetimes\\n\" ) , progname ) ;\n PQfinish ( tmpconn ) ;\n exit ( 1 ) ;\n }\n # ifdef HAVE_INT64_TIMESTAMP if ( strcmp ( tmpparam , \"on\" ) != 0 ) # else if ( strcmp ( tmpparam , \"off\" ) != 0 ) # endif {\n fprintf ( stderr , _ ( \"%s: integer_datetimes compile flag does not match server\\n\" ) , progname ) ;\n PQfinish ( tmpconn ) ;\n exit ( 1 ) ;\n }\n return tmpconn ;\n }"}
{"idx": 17083, "target": 0, "func": "static int dissect_h225_AdmissionReject ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_AdmissionReject , AdmissionReject_sequence ) ;\n return offset ;\n }"}
{"idx": 17084, "target": 0, "func": "static char * yystpcpy ( char * yydest , const char * yysrc ) # else static char * yystpcpy ( yydest , yysrc ) char * yydest ;\n const char * yysrc ;\n # endif {\n char * yyd = yydest ;\n const char * yys = yysrc ;\n while ( ( * yyd ++ = * yys ++ ) != '\\0' ) continue ;\n return yyd - 1 ;\n }"}
{"idx": 17085, "target": 0, "func": "static inline u32 perc ( u32 count , u32 total ) {\n return ( count * 100 + ( total / 2 ) ) / total ;\n }"}
{"idx": 17086, "target": 0, "func": "void resolve_const_item ( THD * thd , Item * * ref , Item * comp_item ) {\n Item * item = * ref ;\n Item * new_item = NULL ;\n if ( item -> basic_const_item ( ) ) return ;\n Item_result res_type = item_cmp_type ( comp_item -> cmp_type ( ) , item -> cmp_type ( ) ) ;\n char * name = item -> name ;\n switch ( res_type ) {\n case TIME_RESULT : {\n bool is_null ;\n Item * * ref_copy = ref ;\n get_datetime_value ( thd , & ref_copy , & new_item , comp_item , & is_null ) ;\n if ( is_null ) new_item = new Item_null ( name ) ;\n break ;\n }\n case STRING_RESULT : {\n char buff [ MAX_FIELD_WIDTH ] ;\n String tmp ( buff , sizeof ( buff ) , & my_charset_bin ) , * result ;\n result = item -> val_str ( & tmp ) ;\n if ( item -> null_value ) new_item = new Item_null ( name ) ;\n else {\n uint length = result -> length ( ) ;\n char * tmp_str = sql_strmake ( result -> ptr ( ) , length ) ;\n new_item = new Item_string ( name , tmp_str , length , result -> charset ( ) ) ;\n }\n break ;\n }\n case INT_RESULT : {\n longlong result = item -> val_int ( ) ;\n uint length = item -> max_length ;\n bool null_value = item -> null_value ;\n new_item = ( null_value ? ( Item * ) new Item_null ( name ) : ( Item * ) new Item_int ( name , result , length ) ) ;\n break ;\n }\n case ROW_RESULT : if ( item -> type ( ) == Item : : ROW_ITEM && comp_item -> type ( ) == Item : : ROW_ITEM ) {\n Item_row * item_row = ( Item_row * ) item ;\n Item_row * comp_item_row = ( Item_row * ) comp_item ;\n uint col ;\n new_item = 0 ;\n DBUG_ASSERT ( item -> result_type ( ) == comp_item -> result_type ( ) ) ;\n DBUG_ASSERT ( item_row -> cols ( ) == comp_item_row -> cols ( ) ) ;\n col = item_row -> cols ( ) ;\n while ( col -- > 0 ) resolve_const_item ( thd , item_row -> addr ( col ) , comp_item_row -> element_index ( col ) ) ;\n break ;\n }\n case REAL_RESULT : {\n double result = item -> val_real ( ) ;\n uint length = item -> max_length , decimals = item -> decimals ;\n bool null_value = item -> null_value ;\n new_item = ( null_value ? ( Item * ) new Item_null ( name ) : ( Item * ) new Item_float ( name , result , decimals , length ) ) ;\n break ;\n }\n case DECIMAL_RESULT : {\n my_decimal decimal_value ;\n my_decimal * result = item -> val_decimal ( & decimal_value ) ;\n uint length = item -> max_length , decimals = item -> decimals ;\n bool null_value = item -> null_value ;\n new_item = ( null_value ? ( Item * ) new Item_null ( name ) : ( Item * ) new Item_decimal ( name , result , length , decimals ) ) ;\n break ;\n }\n case IMPOSSIBLE_RESULT : DBUG_ASSERT ( 0 ) ;\n break ;\n }\n if ( new_item ) thd -> change_item_tree ( ref , new_item ) ;\n }"}
{"idx": 17087, "target": 1, "func": "static inline void idct_put ( ASV1Context * a , int mb_x , int mb_y ) {\n int16_t ( * block ) [ 64 ] = a -> block ;\n int linesize = a -> picture . linesize [ 0 ] ;\n uint8_t * dest_y = a -> picture . data [ 0 ] + ( mb_y * 16 * linesize ) + mb_x * 16 ;\n uint8_t * dest_cb = a -> picture . data [ 1 ] + ( mb_y * 8 * a -> picture . linesize [ 1 ] ) + mb_x * 8 ;\n uint8_t * dest_cr = a -> picture . data [ 2 ] + ( mb_y * 8 * a -> picture . linesize [ 2 ] ) + mb_x * 8 ;\n a -> dsp . idct_put ( dest_y , linesize , block [ 0 ] ) ;\n a -> dsp . idct_put ( dest_y + 8 , linesize , block [ 1 ] ) ;\n a -> dsp . idct_put ( dest_y + 8 * linesize , linesize , block [ 2 ] ) ;\n a -> dsp . idct_put ( dest_y + 8 * linesize + 8 , linesize , block [ 3 ] ) ;\n if ( ! ( a -> avctx -> flags & CODEC_FLAG_GRAY ) ) {\n a -> dsp . idct_put ( dest_cb , a -> picture . linesize [ 1 ] , block [ 4 ] ) ;\n a -> dsp . idct_put ( dest_cr , a -> picture . linesize [ 2 ] , block [ 5 ] ) ;\n }\n }"}
{"idx": 17088, "target": 0, "func": "static int rawv6_bind ( struct sock * sk , struct sockaddr * uaddr , int addr_len ) {\n struct inet_sock * inet = inet_sk ( sk ) ;\n struct ipv6_pinfo * np = inet6_sk ( sk ) ;\n struct sockaddr_in6 * addr = ( struct sockaddr_in6 * ) uaddr ;\n __be32 v4addr = 0 ;\n int addr_type ;\n int err ;\n if ( addr_len < SIN6_LEN_RFC2133 ) return - EINVAL ;\n addr_type = ipv6_addr_type ( & addr -> sin6_addr ) ;\n if ( addr_type == IPV6_ADDR_MAPPED ) return - EADDRNOTAVAIL ;\n lock_sock ( sk ) ;\n err = - EINVAL ;\n if ( sk -> sk_state != TCP_CLOSE ) goto out ;\n rcu_read_lock ( ) ;\n if ( addr_type != IPV6_ADDR_ANY ) {\n struct net_device * dev = NULL ;\n if ( addr_type & IPV6_ADDR_LINKLOCAL ) {\n if ( addr_len >= sizeof ( struct sockaddr_in6 ) && addr -> sin6_scope_id ) {\n sk -> sk_bound_dev_if = addr -> sin6_scope_id ;\n }\n if ( ! sk -> sk_bound_dev_if ) goto out_unlock ;\n err = - ENODEV ;\n dev = dev_get_by_index_rcu ( sock_net ( sk ) , sk -> sk_bound_dev_if ) ;\n if ( ! dev ) goto out_unlock ;\n }\n v4addr = LOOPBACK4_IPV6 ;\n if ( ! ( addr_type & IPV6_ADDR_MULTICAST ) ) {\n err = - EADDRNOTAVAIL ;\n if ( ! ipv6_chk_addr ( sock_net ( sk ) , & addr -> sin6_addr , dev , 0 ) ) {\n goto out_unlock ;\n }\n }\n }\n inet -> inet_rcv_saddr = inet -> inet_saddr = v4addr ;\n ipv6_addr_copy ( & np -> rcv_saddr , & addr -> sin6_addr ) ;\n if ( ! ( addr_type & IPV6_ADDR_MULTICAST ) ) ipv6_addr_copy ( & np -> saddr , & addr -> sin6_addr ) ;\n err = 0 ;\n out_unlock : rcu_read_unlock ( ) ;\n out : release_sock ( sk ) ;\n return err ;\n }"}
{"idx": 17089, "target": 0, "func": "proto_item * proto_tree_add_text_internal ( proto_tree * tree , tvbuff_t * tvb , gint start , gint length , const char * format , ... ) {\n proto_item * pi ;\n va_list ap ;\n header_field_info * hfinfo ;\n if ( length == - 1 ) {\n length = 0 ;\n }\n tvb_ensure_bytes_exist ( tvb , start , length ) ;\n CHECK_FOR_NULL_TREE ( tree ) ;\n TRY_TO_FAKE_THIS_ITEM ( tree , hf_text_only , hfinfo ) ;\n pi = proto_tree_add_text_node ( tree , tvb , start , length ) ;\n TRY_TO_FAKE_THIS_REPR ( pi ) ;\n va_start ( ap , format ) ;\n proto_tree_set_representation ( pi , format , ap ) ;\n va_end ( ap ) ;\n return pi ;\n }"}
{"idx": 17090, "target": 0, "func": "static gpgme_error_t gpgsm_encrypt ( void * engine , gpgme_key_t recp [ ] , gpgme_encrypt_flags_t flags , gpgme_data_t plain , gpgme_data_t ciph , int use_armor ) {\n engine_gpgsm_t gpgsm = engine ;\n gpgme_error_t err ;\n if ( ! gpgsm ) return gpg_error ( GPG_ERR_INV_VALUE ) ;\n if ( ! recp ) return gpg_error ( GPG_ERR_NOT_IMPLEMENTED ) ;\n if ( flags & GPGME_ENCRYPT_NO_ENCRYPT_TO ) {\n err = gpgsm_assuan_simple_command ( gpgsm -> assuan_ctx , \"OPTION no-encrypt-to\" , NULL , NULL ) ;\n if ( err ) return err ;\n }\n gpgsm -> input_cb . data = plain ;\n err = gpgsm_set_fd ( gpgsm , INPUT_FD , map_data_enc ( gpgsm -> input_cb . data ) ) ;\n if ( err ) return err ;\n gpgsm -> output_cb . data = ciph ;\n err = gpgsm_set_fd ( gpgsm , OUTPUT_FD , use_armor ? \"--armor\" : map_data_enc ( gpgsm -> output_cb . data ) ) ;\n if ( err ) return err ;\n gpgsm_clear_fd ( gpgsm , MESSAGE_FD ) ;\n gpgsm -> inline_data = NULL ;\n err = set_recipients ( gpgsm , recp ) ;\n if ( ! err ) err = start ( gpgsm , \"ENCRYPT\" ) ;\n return err ;\n }"}
{"idx": 17091, "target": 0, "func": "static void http_bad_header_test ( void ) {\n struct evkeyvalq headers ;\n fprintf ( stdout , \"Testing HTTP Header filtering: \" ) ;\n TAILQ_INIT ( & headers ) ;\n if ( evhttp_add_header ( & headers , \"One\" , \"Two\" ) != 0 ) goto fail ;\n if ( evhttp_add_header ( & headers , \"One\\r\" , \"Two\" ) != - 1 ) goto fail ;\n if ( evhttp_add_header ( & headers , \"One\" , \"Two\" ) != 0 ) goto fail ;\n if ( evhttp_add_header ( & headers , \"One\" , \"Two\\r\\n Three\" ) != 0 ) goto fail ;\n if ( evhttp_add_header ( & headers , \"One\\r\" , \"Two\" ) != - 1 ) goto fail ;\n if ( evhttp_add_header ( & headers , \"One\\n\" , \"Two\" ) != - 1 ) goto fail ;\n if ( evhttp_add_header ( & headers , \"One\" , \"Two\\r\" ) != - 1 ) goto fail ;\n if ( evhttp_add_header ( & headers , \"One\" , \"Two\\n\" ) != - 1 ) goto fail ;\n evhttp_clear_headers ( & headers ) ;\n fprintf ( stdout , \"OK\\n\" ) ;\n return ;\n fail : fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }"}
{"idx": 17092, "target": 0, "func": "static void dissect_usb_vid_control_value ( proto_tree * tree , tvbuff_t * tvb , int offset , guint8 request ) {\n gint value_size ;\n const char * fallback_name ;\n int hf ;\n switch ( request ) {\n case USB_SETUP_GET_DEF : hf = hf_usb_vid_control_default ;\n fallback_name = \"Default Value\" ;\n break ;\n case USB_SETUP_GET_MIN : case CONTROL_CHANGE_MIN : hf = hf_usb_vid_control_min ;\n fallback_name = \"Min Value\" ;\n break ;\n case USB_SETUP_GET_MAX : case CONTROL_CHANGE_MAX : hf = hf_usb_vid_control_max ;\n fallback_name = \"Max Value\" ;\n break ;\n case USB_SETUP_GET_RES : hf = hf_usb_vid_control_res ;\n fallback_name = \"Resolution\" ;\n break ;\n case USB_SETUP_GET_CUR : case USB_SETUP_SET_CUR : case CONTROL_CHANGE_VALUE : hf = hf_usb_vid_control_cur ;\n fallback_name = \"Current Value\" ;\n break ;\n default : hf = - 1 ;\n fallback_name = \"Value\" ;\n break ;\n }\n value_size = tvb_reported_length_remaining ( tvb , offset ) ;\n if ( hf != - 1 ) {\n header_field_info * hfinfo ;\n hfinfo = proto_registrar_get_nth ( hf ) ;\n DISSECTOR_ASSERT ( IS_FT_INT ( hfinfo -> type ) || IS_FT_UINT ( hfinfo -> type ) ) ;\n }\n if ( ( hf != - 1 ) && ( value_size <= 4 ) ) {\n proto_tree_add_item ( tree , hf , tvb , offset , value_size , ENC_LITTLE_ENDIAN ) ;\n }\n else {\n proto_tree_add_bytes_format ( tree , hf_usb_vid_control_value , tvb , offset , value_size , NULL , \"%s\" , fallback_name ) ;\n }\n }"}
{"idx": 17093, "target": 1, "func": "static int ar_parse_gnu_filename_table ( struct archive_read * a ) {\n struct ar * ar ;\n char * p ;\n size_t size ;\n ar = ( struct ar * ) ( a -> format -> data ) ;\n size = ar -> strtab_size ;\n for ( p = ar -> strtab ;\n p < ar -> strtab + size - 1 ;\n ++ p ) {\n if ( * p == '/' ) {\n * p ++ = '\\0' ;\n if ( * p != '\\n' ) goto bad_string_table ;\n * p = '\\0' ;\n }\n }\n if ( p != ar -> strtab + size && * p != '\\n' && * p != '`' ) goto bad_string_table ;\n ar -> strtab [ size - 1 ] = '\\0' ;\n return ( ARCHIVE_OK ) ;\n bad_string_table : archive_set_error ( & a -> archive , EINVAL , \"Invalid string table\" ) ;\n free ( ar -> strtab ) ;\n ar -> strtab = NULL ;\n return ( ARCHIVE_WARN ) ;\n }"}
{"idx": 17094, "target": 0, "func": "static int dissect_h245_MultilinkIndication ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_MultilinkIndication , MultilinkIndication_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 17095, "target": 0, "func": "int test_exp ( BIO * bp , BN_CTX * ctx ) {\n BIGNUM * a , * b , * d , * e , * one ;\n int i ;\n a = BN_new ( ) ;\n b = BN_new ( ) ;\n d = BN_new ( ) ;\n e = BN_new ( ) ;\n one = BN_new ( ) ;\n BN_one ( one ) ;\n for ( i = 0 ;\n i < num2 ;\n i ++ ) {\n BN_bntest_rand ( a , 20 + i * 5 , 0 , 0 ) ;\n BN_bntest_rand ( b , 2 + i , 0 , 0 ) ;\n if ( BN_exp ( d , a , b , ctx ) <= 0 ) return ( 0 ) ;\n if ( bp != NULL ) {\n if ( ! results ) {\n BN_print ( bp , a ) ;\n BIO_puts ( bp , \" ^ \" ) ;\n BN_print ( bp , b ) ;\n BIO_puts ( bp , \" - \" ) ;\n }\n BN_print ( bp , d ) ;\n BIO_puts ( bp , \"\\n\" ) ;\n }\n BN_one ( e ) ;\n for ( ;\n ! BN_is_zero ( b ) ;\n BN_sub ( b , b , one ) ) BN_mul ( e , e , a , ctx ) ;\n BN_sub ( e , e , d ) ;\n if ( ! BN_is_zero ( e ) ) {\n fprintf ( stderr , \"Exponentiation test failed!\\n\" ) ;\n return 0 ;\n }\n }\n BN_free ( a ) ;\n BN_free ( b ) ;\n BN_free ( d ) ;\n BN_free ( e ) ;\n BN_free ( one ) ;\n return ( 1 ) ;\n }"}
{"idx": 17096, "target": 0, "func": "int * __xmlDoValidityCheckingDefaultValue ( void ) {\n if ( IS_MAIN_THREAD ) return ( & xmlDoValidityCheckingDefaultValue ) ;\n else return ( & xmlGetGlobalState ( ) -> xmlDoValidityCheckingDefaultValue ) ;\n }"}
{"idx": 17097, "target": 0, "func": "static int header_bin_le ( struct archive_read * a , struct cpio * cpio , struct archive_entry * entry , size_t * namelength , size_t * name_pad ) {\n const void * h ;\n const unsigned char * header ;\n a -> archive . archive_format = ARCHIVE_FORMAT_CPIO_BIN_LE ;\n a -> archive . archive_format_name = \"cpio (little-endian binary)\" ;\n h = __archive_read_ahead ( a , bin_header_size , NULL ) ;\n if ( h == NULL ) {\n archive_set_error ( & a -> archive , 0 , \"End of file trying to read next cpio header\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n header = ( const unsigned char * ) h ;\n archive_entry_set_dev ( entry , header [ bin_dev_offset ] + header [ bin_dev_offset + 1 ] * 256 ) ;\n archive_entry_set_ino ( entry , header [ bin_ino_offset ] + header [ bin_ino_offset + 1 ] * 256 ) ;\n archive_entry_set_mode ( entry , header [ bin_mode_offset ] + header [ bin_mode_offset + 1 ] * 256 ) ;\n archive_entry_set_uid ( entry , header [ bin_uid_offset ] + header [ bin_uid_offset + 1 ] * 256 ) ;\n archive_entry_set_gid ( entry , header [ bin_gid_offset ] + header [ bin_gid_offset + 1 ] * 256 ) ;\n archive_entry_set_nlink ( entry , header [ bin_nlink_offset ] + header [ bin_nlink_offset + 1 ] * 256 ) ;\n archive_entry_set_rdev ( entry , header [ bin_rdev_offset ] + header [ bin_rdev_offset + 1 ] * 256 ) ;\n archive_entry_set_mtime ( entry , le4 ( header + bin_mtime_offset ) , 0 ) ;\n * namelength = header [ bin_namesize_offset ] + header [ bin_namesize_offset + 1 ] * 256 ;\n * name_pad = * namelength & 1 ;\n cpio -> entry_bytes_remaining = le4 ( header + bin_filesize_offset ) ;\n archive_entry_set_size ( entry , cpio -> entry_bytes_remaining ) ;\n cpio -> entry_padding = cpio -> entry_bytes_remaining & 1 ;\n __archive_read_consume ( a , bin_header_size ) ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 17098, "target": 0, "func": "static void encode_with_recode_loop ( VP9_COMP * cpi , size_t * size , uint8_t * dest , int q , int bottom_index , int top_index ) {\n VP9_COMMON * const cm = & cpi -> common ;\n RATE_CONTROL * const rc = & cpi -> rc ;\n int loop_count = 0 ;\n int loop = 0 ;\n int overshoot_seen = 0 ;\n int undershoot_seen = 0 ;\n int q_low = bottom_index , q_high = top_index ;\n int frame_over_shoot_limit ;\n int frame_under_shoot_limit ;\n vp9_rc_compute_frame_size_bounds ( cpi , rc -> this_frame_target , & frame_under_shoot_limit , & frame_over_shoot_limit ) ;\n do {\n vp9_clear_system_state ( ) ;\n vp9_set_quantizer ( cm , q ) ;\n if ( loop_count == 0 ) setup_frame ( cpi ) ;\n if ( cpi -> oxcf . aq_mode == VARIANCE_AQ ) {\n vp9_vaq_frame_setup ( cpi ) ;\n }\n else if ( cpi -> oxcf . aq_mode == COMPLEXITY_AQ ) {\n vp9_setup_in_frame_q_adj ( cpi ) ;\n }\n vp9_encode_frame ( cpi ) ;\n vp9_clear_system_state ( ) ;\n if ( cpi -> sf . recode_loop >= ALLOW_RECODE_KFARFGF ) {\n save_coding_context ( cpi ) ;\n if ( ! cpi -> sf . use_nonrd_pick_mode ) vp9_pack_bitstream ( cpi , dest , size ) ;\n rc -> projected_frame_size = ( int ) ( * size ) << 3 ;\n restore_coding_context ( cpi ) ;\n if ( frame_over_shoot_limit == 0 ) frame_over_shoot_limit = 1 ;\n }\n if ( cpi -> oxcf . rc_mode == VPX_Q ) {\n loop = 0 ;\n }\n else {\n if ( ( cm -> frame_type == KEY_FRAME ) && rc -> this_key_frame_forced && ( rc -> projected_frame_size < rc -> max_frame_bandwidth ) ) {\n int last_q = q ;\n int kf_err = vp9_get_y_sse ( cpi -> Source , get_frame_new_buffer ( cm ) ) ;\n int high_err_target = cpi -> ambient_err ;\n int low_err_target = cpi -> ambient_err >> 1 ;\n kf_err += ! kf_err ;\n if ( ( kf_err > high_err_target && rc -> projected_frame_size <= frame_over_shoot_limit ) || ( kf_err > low_err_target && rc -> projected_frame_size <= frame_under_shoot_limit ) ) {\n q_high = q > q_low ? q - 1 : q_low ;\n q = ( q * high_err_target ) / kf_err ;\n q = MIN ( q , ( q_high + q_low ) >> 1 ) ;\n }\n else if ( kf_err < low_err_target && rc -> projected_frame_size >= frame_under_shoot_limit ) {\n q_low = q < q_high ? q + 1 : q_high ;\n q = ( q * low_err_target ) / kf_err ;\n q = MIN ( q , ( q_high + q_low + 1 ) >> 1 ) ;\n }\n q = clamp ( q , q_low , q_high ) ;\n loop = q != last_q ;\n }\n else if ( recode_loop_test ( cpi , frame_over_shoot_limit , frame_under_shoot_limit , q , MAX ( q_high , top_index ) , bottom_index ) ) {\n int last_q = q ;\n int retries = 0 ;\n if ( rc -> projected_frame_size > rc -> this_frame_target ) {\n if ( rc -> projected_frame_size >= rc -> max_frame_bandwidth ) q_high = rc -> worst_quality ;\n q_low = q < q_high ? q + 1 : q_high ;\n if ( undershoot_seen || loop_count > 1 ) {\n vp9_rc_update_rate_correction_factors ( cpi , 1 ) ;\n q = ( q_high + q_low + 1 ) / 2 ;\n }\n else {\n vp9_rc_update_rate_correction_factors ( cpi , 0 ) ;\n q = vp9_rc_regulate_q ( cpi , rc -> this_frame_target , bottom_index , MAX ( q_high , top_index ) ) ;\n while ( q < q_low && retries < 10 ) {\n vp9_rc_update_rate_correction_factors ( cpi , 0 ) ;\n q = vp9_rc_regulate_q ( cpi , rc -> this_frame_target , bottom_index , MAX ( q_high , top_index ) ) ;\n retries ++ ;\n }\n }\n overshoot_seen = 1 ;\n }\n else {\n q_high = q > q_low ? q - 1 : q_low ;\n if ( overshoot_seen || loop_count > 1 ) {\n vp9_rc_update_rate_correction_factors ( cpi , 1 ) ;\n q = ( q_high + q_low ) / 2 ;\n }\n else {\n vp9_rc_update_rate_correction_factors ( cpi , 0 ) ;\n q = vp9_rc_regulate_q ( cpi , rc -> this_frame_target , bottom_index , top_index ) ;\n if ( cpi -> oxcf . rc_mode == VPX_CQ && q < q_low ) {\n q_low = q ;\n }\n while ( q > q_high && retries < 10 ) {\n vp9_rc_update_rate_correction_factors ( cpi , 0 ) ;\n q = vp9_rc_regulate_q ( cpi , rc -> this_frame_target , bottom_index , top_index ) ;\n retries ++ ;\n }\n }\n undershoot_seen = 1 ;\n }\n q = clamp ( q , q_low , q_high ) ;\n loop = q != last_q ;\n }\n else {\n loop = 0 ;\n }\n }\n if ( rc -> is_src_frame_alt_ref && rc -> projected_frame_size < rc -> max_frame_bandwidth ) loop = 0 ;\n if ( loop ) {\n loop_count ++ ;\n # if CONFIG_INTERNAL_STATS cpi -> tot_recode_hits ++ ;\n # endif }\n }\n while ( loop ) ;\n }"}
{"idx": 17099, "target": 0, "func": "int evhttp_make_request ( struct evhttp_connection * evcon , struct evhttp_request * req , enum evhttp_cmd_type type , const char * uri ) {\n req -> kind = EVHTTP_REQUEST ;\n req -> type = type ;\n if ( req -> uri != NULL ) free ( req -> uri ) ;\n if ( ( req -> uri = strdup ( uri ) ) == NULL ) event_err ( 1 , \"%s: strdup\" , __func__ ) ;\n if ( ! req -> major && ! req -> minor ) {\n req -> major = 1 ;\n req -> minor = 1 ;\n }\n assert ( req -> evcon == NULL ) ;\n req -> evcon = evcon ;\n assert ( ! ( req -> flags & EVHTTP_REQ_OWN_CONNECTION ) ) ;\n TAILQ_INSERT_TAIL ( & evcon -> requests , req , next ) ;\n if ( ! evhttp_connected ( evcon ) ) return ( evhttp_connection_connect ( evcon ) ) ;\n if ( TAILQ_FIRST ( & evcon -> requests ) == req ) evhttp_request_dispatch ( evcon ) ;\n return ( 0 ) ;\n }"}
{"idx": 17100, "target": 1, "func": "static void nlm_register_unmatched_res ( packet_info * pinfo , tvbuff_t * tvb , int offset ) {\n nlm_msg_res_unmatched_data umd ;\n nlm_msg_res_unmatched_data * old_umd ;\n umd . cookie_len = tvb_get_ntohl ( tvb , offset ) ;\n umd . cookie = tvb_get_ptr ( tvb , offset + 4 , - 1 ) ;\n old_umd = ( nlm_msg_res_unmatched_data * ) g_hash_table_lookup ( nlm_msg_res_unmatched , ( gconstpointer ) & umd ) ;\n if ( old_umd ) {\n nlm_msg_res_matched_data * md ;\n md = ( nlm_msg_res_matched_data * ) g_malloc ( sizeof ( nlm_msg_res_matched_data ) ) ;\n md -> req_frame = old_umd -> req_frame ;\n md -> rep_frame = pinfo -> fd -> num ;\n md -> ns = old_umd -> ns ;\n g_hash_table_insert ( nlm_msg_res_matched , GINT_TO_POINTER ( md -> req_frame ) , ( gpointer ) md ) ;\n g_hash_table_insert ( nlm_msg_res_matched , GINT_TO_POINTER ( md -> rep_frame ) , ( gpointer ) md ) ;\n g_hash_table_remove ( nlm_msg_res_unmatched , ( gconstpointer ) old_umd ) ;\n g_free ( ( gpointer ) old_umd -> cookie ) ;\n g_free ( old_umd ) ;\n }\n }"}
{"idx": 17101, "target": 0, "func": "static void test_bad_union ( ) {\n MYSQL_STMT * stmt ;\n const char * query = \"SELECT 1, 2 union SELECT 1\" ;\n myheader ( \"test_bad_union\" ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n DIE_UNLESS ( stmt == 0 ) ;\n myerror ( NULL ) ;\n }"}
{"idx": 17102, "target": 0, "func": "static int check_secret_key ( ELG_secret_key * sk ) {\n int rc ;\n MPI y = mpi_alloc ( mpi_get_nlimbs ( sk -> y ) ) ;\n mpi_powm ( y , sk -> g , sk -> x , sk -> p ) ;\n rc = ! mpi_cmp ( y , sk -> y ) ;\n mpi_free ( y ) ;\n return rc ;\n }"}
{"idx": 17103, "target": 0, "func": "static gboolean can_delete_without_confirm ( GFile * file ) {\n if ( g_file_has_uri_scheme ( file , \"burn\" ) || g_file_has_uri_scheme ( file , \"recent\" ) || g_file_has_uri_scheme ( file , \"x-nautilus-desktop\" ) ) {\n return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 17104, "target": 0, "func": "static int tipc_nl_compat_media_set ( struct sk_buff * skb , struct tipc_nl_compat_msg * msg ) {\n struct nlattr * prop ;\n struct nlattr * media ;\n struct tipc_link_config * lc ;\n lc = ( struct tipc_link_config * ) TLV_DATA ( msg -> req ) ;\n media = nla_nest_start ( skb , TIPC_NLA_MEDIA ) ;\n if ( ! media ) return - EMSGSIZE ;\n if ( nla_put_string ( skb , TIPC_NLA_MEDIA_NAME , lc -> name ) ) return - EMSGSIZE ;\n prop = nla_nest_start ( skb , TIPC_NLA_MEDIA_PROP ) ;\n if ( ! prop ) return - EMSGSIZE ;\n __tipc_add_link_prop ( skb , msg , lc ) ;\n nla_nest_end ( skb , prop ) ;\n nla_nest_end ( skb , media ) ;\n return 0 ;\n }"}
{"idx": 17105, "target": 0, "func": "int dissect_h225_TimeToLive ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 4294967295U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 17106, "target": 0, "func": "static void raw6_destroy ( struct sock * sk ) {\n lock_sock ( sk ) ;\n ip6_flush_pending_frames ( sk ) ;\n release_sock ( sk ) ;\n inet6_destroy_sock ( sk ) ;\n }"}
{"idx": 17107, "target": 0, "func": "int gdev_mem_bits_size ( const gx_device_memory * dev , int width , int height , ulong * psize ) {\n int num_planes = dev -> is_planar ? dev -> color_info . num_components : 0 ;\n gx_render_plane_t plane1 ;\n const gx_render_plane_t * planes ;\n ulong size ;\n int pi ;\n if ( num_planes ) planes = dev -> planes ;\n else planes = & plane1 , plane1 . depth = dev -> color_info . depth , num_planes = 1 ;\n for ( size = 0 , pi = 0 ;\n pi < num_planes ;\n ++ pi ) size += bitmap_raster_pad_align ( width * planes [ pi ] . depth , dev -> pad , dev -> log2_align_mod ) ;\n if ( height != 0 ) if ( size > ( max_ulong - ARCH_ALIGN_PTR_MOD ) / ( ulong ) height ) return_error ( gs_error_VMerror ) ;\n size = ROUND_UP ( size * height , ARCH_ALIGN_PTR_MOD ) ;\n if ( dev -> log2_align_mod > log2_align_bitmap_mod ) size += 1 << dev -> log2_align_mod ;\n * psize = size ;\n return 0 ;\n }"}
{"idx": 17108, "target": 1, "func": "void srtp_add_address ( packet_info * pinfo , address * addr , int port , int other_port , const gchar * setup_method , guint32 setup_frame_number , gboolean is_video _U_ , GHashTable * rtp_dyn_payload , struct srtp_info * srtp_info ) {\n address null_addr ;\n conversation_t * p_conv ;\n struct _rtp_conversation_info * p_conv_data = NULL ;\n if ( ( pinfo -> fd -> flags . visited ) || ( rtp_handle == NULL ) ) {\n return ;\n }\n DPRINT ( ( \"#%u: %srtp_add_address(%s, %u, %u, %s, %u)\" , pinfo -> fd -> num , ( srtp_info ) ? \"s\" : \"\" , ep_address_to_str ( addr ) , port , other_port , setup_method , setup_frame_number ) ) ;\n DINDENT ( ) ;\n SET_ADDRESS ( & null_addr , AT_NONE , 0 , NULL ) ;\n p_conv = find_conversation ( setup_frame_number , addr , & null_addr , PT_UDP , port , other_port , NO_ADDR_B | ( ! other_port ? NO_PORT_B : 0 ) ) ;\n DENDENT ( ) ;\n DPRINT ( ( \"did %sfind conversation\" , p_conv ? \"\" : \"NOT \" ) ) ;\n if ( ! p_conv || p_conv -> setup_frame != setup_frame_number ) {\n p_conv = conversation_new ( setup_frame_number , addr , & null_addr , PT_UDP , ( guint32 ) port , ( guint32 ) other_port , NO_ADDR2 | ( ! other_port ? NO_PORT2 : 0 ) ) ;\n }\n conversation_set_dissector ( p_conv , rtp_handle ) ;\n p_conv_data = ( struct _rtp_conversation_info * ) conversation_get_proto_data ( p_conv , proto_rtp ) ;\n if ( ! p_conv_data ) {\n DPRINT ( ( \"creating new conversation data\" ) ) ;\n p_conv_data = wmem_new ( wmem_file_scope ( ) , struct _rtp_conversation_info ) ;\n p_conv_data -> rtp_dyn_payload = NULL ;\n p_conv_data -> extended_seqno = 0x10000 ;\n p_conv_data -> rtp_conv_info = wmem_new ( wmem_file_scope ( ) , rtp_private_conv_info ) ;\n p_conv_data -> rtp_conv_info -> multisegment_pdus = wmem_tree_new ( wmem_file_scope ( ) ) ;\n DINDENT ( ) ;\n conversation_add_proto_data ( p_conv , proto_rtp , p_conv_data ) ;\n DENDENT ( ) ;\n }\n # ifdef DEBUG_CONVERSATION else {\n DPRINT ( ( \"conversation already exists\" ) ) ;\n }\n # endif if ( p_conv_data -> rtp_dyn_payload != rtp_dyn_payload ) rtp_free_hash_dyn_payload ( p_conv_data -> rtp_dyn_payload ) ;\n g_strlcpy ( p_conv_data -> method , setup_method , MAX_RTP_SETUP_METHOD_SIZE + 1 ) ;\n p_conv_data -> frame_number = setup_frame_number ;\n p_conv_data -> is_video = is_video ;\n p_conv_data -> rtp_dyn_payload = rtp_dyn_payload ;\n p_conv_data -> srtp_info = srtp_info ;\n p_conv_data -> bta2dp_info = NULL ;\n p_conv_data -> btvdp_info = NULL ;\n }"}
{"idx": 17109, "target": 0, "func": "static int rv10_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n MpegEncContext * s = avctx -> priv_data ;\n int i , ret ;\n AVFrame * pict = data ;\n int slice_count ;\n const uint8_t * slices_hdr = NULL ;\n av_dlog ( avctx , \"*****frame %d size=%d\\n\" , avctx -> frame_number , buf_size ) ;\n if ( buf_size == 0 ) {\n return 0 ;\n }\n if ( ! avctx -> slice_count ) {\n slice_count = ( * buf ++ ) + 1 ;\n buf_size -- ;\n if ( ! slice_count || buf_size <= 8 * slice_count ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid slice count: %d.\\n\" , slice_count ) ;\n return AVERROR_INVALIDDATA ;\n }\n slices_hdr = buf + 4 ;\n buf += 8 * slice_count ;\n buf_size -= 8 * slice_count ;\n }\n else slice_count = avctx -> slice_count ;\n for ( i = 0 ;\n i < slice_count ;\n i ++ ) {\n unsigned offset = get_slice_offset ( avctx , slices_hdr , i ) ;\n int size , size2 ;\n if ( offset >= buf_size ) return AVERROR_INVALIDDATA ;\n if ( i + 1 == slice_count ) size = buf_size - offset ;\n else size = get_slice_offset ( avctx , slices_hdr , i + 1 ) - offset ;\n if ( i + 2 >= slice_count ) size2 = buf_size - offset ;\n else size2 = get_slice_offset ( avctx , slices_hdr , i + 2 ) - offset ;\n if ( size <= 0 || size2 <= 0 || offset + FFMAX ( size , size2 ) > buf_size ) return AVERROR_INVALIDDATA ;\n if ( rv10_decode_packet ( avctx , buf + offset , size , size2 ) > 8 * size ) i ++ ;\n }\n if ( s -> current_picture_ptr != NULL && s -> mb_y >= s -> mb_height ) {\n ff_er_frame_end ( & s -> er ) ;\n ff_MPV_frame_end ( s ) ;\n if ( s -> pict_type == AV_PICTURE_TYPE_B || s -> low_delay ) {\n if ( ( ret = av_frame_ref ( pict , & s -> current_picture_ptr -> f ) ) < 0 ) return ret ;\n ff_print_debug_info ( s , s -> current_picture_ptr ) ;\n }\n else if ( s -> last_picture_ptr != NULL ) {\n if ( ( ret = av_frame_ref ( pict , & s -> last_picture_ptr -> f ) ) < 0 ) return ret ;\n ff_print_debug_info ( s , s -> last_picture_ptr ) ;\n }\n if ( s -> last_picture_ptr || s -> low_delay ) {\n * got_frame = 1 ;\n }\n s -> current_picture_ptr = NULL ;\n }\n return avpkt -> size ;\n }"}
{"idx": 17110, "target": 0, "func": "void SFDefaultOS2SubSuper ( struct pfminfo * pfminfo , int emsize , double italic_angle ) {\n double s = sin ( italic_angle * 3.1415926535897932 / 180.0 ) ;\n pfminfo -> os2_supysize = pfminfo -> os2_subysize = .7 * emsize ;\n pfminfo -> os2_supxsize = pfminfo -> os2_subxsize = .65 * emsize ;\n pfminfo -> os2_subyoff = .14 * emsize ;\n pfminfo -> os2_supyoff = .48 * emsize ;\n pfminfo -> os2_supxoff = s * pfminfo -> os2_supyoff ;\n pfminfo -> os2_subxoff = - s * pfminfo -> os2_subyoff ;\n pfminfo -> os2_strikeysize = 102 * emsize / 2048 ;\n pfminfo -> os2_strikeypos = 530 * emsize / 2048 ;\n }"}
{"idx": 17111, "target": 0, "func": "static void new_files_cancel ( NautilusDirectory * directory ) {\n GList * l ;\n NewFilesState * state ;\n if ( directory -> details -> new_files_in_progress != NULL ) {\n for ( l = directory -> details -> new_files_in_progress ;\n l != NULL ;\n l = l -> next ) {\n state = l -> data ;\n g_cancellable_cancel ( state -> cancellable ) ;\n state -> directory = NULL ;\n }\n g_list_free ( directory -> details -> new_files_in_progress ) ;\n directory -> details -> new_files_in_progress = NULL ;\n }\n }"}
{"idx": 17112, "target": 0, "func": "static void test_bug17667 ( ) {\n int rc ;\n MYSQL_STMT * stmt ;\n enum query_type {\n QT_NORMAL , QT_PREPARED }\n ;\n struct buffer_and_length {\n enum query_type qt ;\n const char * buffer ;\n const uint length ;\n }\n statements [ ] = {\n {\n QT_NORMAL , \"drop table if exists bug17667\" , 29 }\n , {\n QT_NORMAL , \"create table bug17667 (c varchar(20))\" , 37 }\n , {\n QT_NORMAL , \"insert into bug17667 (c) values ('regular') /* NUL=\\0 with comment */\" , 68 }\n , {\n QT_PREPARED , \"insert into bug17667 (c) values ('prepared') /* NUL=\\0 with comment */\" , 69 , }\n , {\n QT_NORMAL , \"insert into bug17667 (c) values ('NUL=\\0 in value')\" , 50 }\n , {\n QT_NORMAL , \"insert into bug17667 (c) values ('5 NULs=\\0\\0\\0\\0\\0')\" , 48 }\n , {\n QT_PREPARED , \"insert into bug17667 (c) values ('6 NULs=\\0\\0\\0\\0\\0\\0')\" , 50 }\n , {\n QT_NORMAL , \"/* NUL=\\0 with comment */ insert into bug17667 (c) values ('encore')\" , 67 }\n , {\n QT_NORMAL , \"drop table bug17667\" , 19 }\n , {\n QT_NORMAL , NULL , 0 }\n }\n ;\n struct buffer_and_length * statement_cursor ;\n FILE * log_file ;\n char * master_log_filename ;\n myheader ( \"test_bug17667\" ) ;\n master_log_filename = ( char * ) malloc ( strlen ( opt_vardir ) + strlen ( \"/log/master.log\" ) + 1 ) ;\n strxmov ( master_log_filename , opt_vardir , \"/log/master.log\" , NullS ) ;\n if ( ! opt_silent ) printf ( \"Opening '%s'\\n\" , master_log_filename ) ;\n log_file = my_fopen ( master_log_filename , ( int ) ( O_RDONLY | O_BINARY ) , MYF ( 0 ) ) ;\n free ( master_log_filename ) ;\n if ( log_file == NULL ) {\n if ( ! opt_silent ) {\n printf ( \"Could not find the log file, VARDIR/log/master.log, so \" \"test_bug17667 is not run.\\n\" \"Run test from the mysql-test/mysql-test-run* program to set up \" \"correct environment for this test.\\n\\n\" ) ;\n }\n return ;\n }\n enable_query_logs ( 1 ) ;\n for ( statement_cursor = statements ;\n statement_cursor -> buffer != NULL ;\n statement_cursor ++ ) {\n if ( statement_cursor -> qt == QT_NORMAL ) {\n rc = mysql_real_query ( mysql , statement_cursor -> buffer , statement_cursor -> length ) ;\n myquery ( rc ) ;\n }\n else if ( statement_cursor -> qt == QT_PREPARED ) {\n stmt = mysql_stmt_init ( mysql ) ;\n rc = mysql_stmt_prepare ( stmt , statement_cursor -> buffer , statement_cursor -> length ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n mysql_stmt_close ( stmt ) ;\n }\n else {\n DIE_UNLESS ( 0 == 1 ) ;\n }\n }\n rc = mysql_query ( mysql , \"flush logs\" ) ;\n myquery ( rc ) ;\n for ( statement_cursor = statements ;\n statement_cursor -> buffer != NULL ;\n statement_cursor ++ ) {\n int expected_hits = 1 , hits = 0 ;\n char line_buffer [ MAX_TEST_QUERY_LENGTH * 2 ] ;\n if ( statement_cursor -> qt == QT_PREPARED ) expected_hits ++ ;\n do {\n do {\n memset ( line_buffer , '/' , MAX_TEST_QUERY_LENGTH * 2 ) ;\n if ( fgets ( line_buffer , MAX_TEST_QUERY_LENGTH * 2 , log_file ) == NULL ) {\n if ( feof ( log_file ) ) DIE ( \"Found EOF before all statements where found\" ) ;\n fprintf ( stderr , \"Got error %d while reading from file\\n\" , ferror ( log_file ) ) ;\n DIE ( \"Read error\" ) ;\n }\n }\n while ( my_memmem ( line_buffer , MAX_TEST_QUERY_LENGTH * 2 , statement_cursor -> buffer , statement_cursor -> length ) == NULL ) ;\n hits ++ ;\n }\n while ( hits < expected_hits ) ;\n if ( ! opt_silent ) printf ( \"Found statement starting with \\\"%s\\\"\\n\" , statement_cursor -> buffer ) ;\n }\n restore_query_logs ( ) ;\n if ( ! opt_silent ) printf ( \"success. All queries found intact in the log.\\n\" ) ;\n my_fclose ( log_file , MYF ( 0 ) ) ;\n }"}
{"idx": 17113, "target": 0, "func": "int curl_mvsnprintf ( char * buffer , size_t maxlength , const char * format , va_list ap_save ) {\n int retcode ;\n struct nsprintf info ;\n info . buffer = buffer ;\n info . length = 0 ;\n info . max = maxlength ;\n retcode = dprintf_formatf ( & info , addbyter , format , ap_save ) ;\n if ( ( retcode != - 1 ) && info . max ) {\n if ( info . max == info . length ) info . buffer [ - 1 ] = 0 ;\n else info . buffer [ 0 ] = 0 ;\n }\n return retcode ;\n }"}
{"idx": 17114, "target": 0, "func": "QEMU_BUILD_BUG_ON ( XSAVE_BYTE_OFFSET ( word_offset ) != offsetof ( X86XSaveArea , field ) ) ASSERT_OFFSET ( XSAVE_FCW_FSW , legacy . fcw ) ;\n ASSERT_OFFSET ( XSAVE_FTW_FOP , legacy . ftw ) ;\n ASSERT_OFFSET ( XSAVE_CWD_RIP , legacy . fpip ) ;\n ASSERT_OFFSET ( XSAVE_CWD_RDP , legacy . fpdp ) ;\n ASSERT_OFFSET ( XSAVE_MXCSR , legacy . mxcsr ) ;\n ASSERT_OFFSET ( XSAVE_ST_SPACE , legacy . fpregs ) ;\n ASSERT_OFFSET ( XSAVE_XMM_SPACE , legacy . xmm_regs ) ;\n ASSERT_OFFSET ( XSAVE_XSTATE_BV , header . xstate_bv ) ;\n ASSERT_OFFSET ( XSAVE_YMMH_SPACE , avx_state ) ;\n ASSERT_OFFSET ( XSAVE_BNDREGS , bndreg_state ) ;\n ASSERT_OFFSET ( XSAVE_BNDCSR , bndcsr_state ) ;\n ASSERT_OFFSET ( XSAVE_OPMASK , opmask_state ) ;\n ASSERT_OFFSET ( XSAVE_ZMM_Hi256 , zmm_hi256_state ) ;\n ASSERT_OFFSET ( XSAVE_Hi16_ZMM , hi16_zmm_state ) ;\n ASSERT_OFFSET ( XSAVE_PKRU , pkru_state )"}
{"idx": 17115, "target": 0, "func": "static void xhci_class_init ( ObjectClass * klass , void * data ) {\n PCIDeviceClass * k = PCI_DEVICE_CLASS ( klass ) ;\n DeviceClass * dc = DEVICE_CLASS ( klass ) ;\n dc -> vmsd = & vmstate_xhci ;\n dc -> props = xhci_properties ;\n dc -> reset = xhci_reset ;\n set_bit ( DEVICE_CATEGORY_USB , dc -> categories ) ;\n k -> realize = usb_xhci_realize ;\n k -> exit = usb_xhci_exit ;\n k -> vendor_id = PCI_VENDOR_ID_NEC ;\n k -> device_id = PCI_DEVICE_ID_NEC_UPD720200 ;\n k -> class_id = PCI_CLASS_SERIAL_USB ;\n k -> revision = 0x03 ;\n k -> is_express = 1 ;\n }"}
{"idx": 17116, "target": 1, "func": "static void iadst4 ( const int16_t * input , int16_t * output ) {\n int s0 , s1 , s2 , s3 , s4 , s5 , s6 , s7 ;\n int x0 = input [ 0 ] ;\n int x1 = input [ 1 ] ;\n int x2 = input [ 2 ] ;\n int x3 = input [ 3 ] ;\n if ( ! ( x0 | x1 | x2 | x3 ) ) {\n output [ 0 ] = output [ 1 ] = output [ 2 ] = output [ 3 ] = 0 ;\n return ;\n }\n s0 = sinpi_1_9 * x0 ;\n s1 = sinpi_2_9 * x0 ;\n s2 = sinpi_3_9 * x1 ;\n s3 = sinpi_4_9 * x2 ;\n s4 = sinpi_1_9 * x2 ;\n s5 = sinpi_2_9 * x3 ;\n s6 = sinpi_4_9 * x3 ;\n s7 = x0 - x2 + x3 ;\n x0 = s0 + s3 + s5 ;\n x1 = s1 - s4 - s6 ;\n x2 = sinpi_3_9 * s7 ;\n x3 = s2 ;\n s0 = x0 + x3 ;\n s1 = x1 + x3 ;\n s2 = x2 ;\n s3 = x0 + x1 - x3 ;\n output [ 0 ] = dct_const_round_shift ( s0 ) ;\n output [ 1 ] = dct_const_round_shift ( s1 ) ;\n output [ 2 ] = dct_const_round_shift ( s2 ) ;\n output [ 3 ] = dct_const_round_shift ( s3 ) ;\n }"}
{"idx": 17117, "target": 0, "func": "void pdf_tos_restore ( fz_context * ctx , pdf_text_object_state * tos , fz_matrix save [ 2 ] ) {\n tos -> tm = save [ 0 ] ;\n tos -> tlm = save [ 1 ] ;\n }"}
{"idx": 17118, "target": 0, "func": "static ulmbcs_byte_t FindLMBCSUniRange ( UChar uniChar ) {\n const struct _UniLMBCSGrpMap * pTable = UniLMBCSGrpMap ;\n while ( uniChar > pTable -> uniEndRange ) {\n pTable ++ ;\n }\n if ( uniChar >= pTable -> uniStartRange ) {\n return pTable -> GrpType ;\n }\n return ULMBCS_GRP_UNICODE ;\n }"}
{"idx": 17119, "target": 0, "func": "extern int main ( int argc , const char * argv [ ] ) {\n TestLenient8Iterator ( ) ;\n return 0 ;\n }"}
{"idx": 17120, "target": 0, "func": "static void real_proto_register_diameter ( void ) {\n module_t * diameter_module ;\n expert_module_t * expert_diameter ;\n guint i , ett_length ;\n hf_register_info hf_base [ ] = {\n {\n & hf_diameter_version , {\n \"Version\" , \"diameter.version\" , FT_UINT8 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_diameter_length , {\n \"Length\" , \"diameter.length\" , FT_UINT24 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_diameter_flags , {\n \"Flags\" , \"diameter.flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_diameter_flags_request , {\n \"Request\" , \"diameter.flags.request\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , DIAM_FLAGS_R , NULL , HFILL }\n }\n , {\n & hf_diameter_flags_proxyable , {\n \"Proxyable\" , \"diameter.flags.proxyable\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , DIAM_FLAGS_P , NULL , HFILL }\n }\n , {\n & hf_diameter_flags_error , {\n \"Error\" , \"diameter.flags.error\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , DIAM_FLAGS_E , NULL , HFILL }\n }\n , {\n & hf_diameter_flags_T , {\n \"T(Potentially re-transmitted message)\" , \"diameter.flags.T\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , DIAM_FLAGS_T , NULL , HFILL }\n }\n , {\n & hf_diameter_flags_reserved4 , {\n \"Reserved\" , \"diameter.flags.reserved4\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , DIAM_FLAGS_RESERVED4 , NULL , HFILL }\n }\n , {\n & hf_diameter_flags_reserved5 , {\n \"Reserved\" , \"diameter.flags.reserved5\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , DIAM_FLAGS_RESERVED5 , NULL , HFILL }\n }\n , {\n & hf_diameter_flags_reserved6 , {\n \"Reserved\" , \"diameter.flags.reserved6\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , DIAM_FLAGS_RESERVED6 , NULL , HFILL }\n }\n , {\n & hf_diameter_flags_reserved7 , {\n \"Reserved\" , \"diameter.flags.reserved7\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , DIAM_FLAGS_RESERVED7 , NULL , HFILL }\n }\n , {\n & hf_diameter_vendor_id , {\n \"VendorId\" , \"diameter.vendorId\" , FT_UINT32 , BASE_DEC | BASE_EXT_STRING , & sminmpec_values_ext , 0x0 , NULL , HFILL }\n }\n , {\n & hf_diameter_application_id , {\n \"ApplicationId\" , \"diameter.applicationId\" , FT_UINT32 , BASE_DEC | BASE_EXT_STRING , VALS_EXT_PTR ( dictionary . applications ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_diameter_hopbyhopid , {\n \"Hop-by-Hop Identifier\" , \"diameter.hopbyhopid\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_diameter_endtoendid , {\n \"End-to-End Identifier\" , \"diameter.endtoendid\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_diameter_avp , {\n \"AVP\" , \"diameter.avp\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_diameter_avp_len , {\n \"AVP Length\" , \"diameter.avp.len\" , FT_UINT24 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_diameter_avp_code , {\n \"AVP Code\" , \"diameter.avp.code\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_diameter_avp_flags , {\n \"AVP Flags\" , \"diameter.avp.flags\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_diameter_avp_flags_vendor_specific , {\n \"Vendor-Specific\" , \"diameter.flags.vendorspecific\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , AVP_FLAGS_V , NULL , HFILL }\n }\n , {\n & hf_diameter_avp_flags_mandatory , {\n \"Mandatory\" , \"diameter.flags.mandatory\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , AVP_FLAGS_M , NULL , HFILL }\n }\n , {\n & hf_diameter_avp_flags_protected , {\n \"Protected\" , \"diameter.avp.flags.protected\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , AVP_FLAGS_P , NULL , HFILL }\n }\n , {\n & hf_diameter_avp_flags_reserved3 , {\n \"Reserved\" , \"diameter.avp.flags.reserved3\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , AVP_FLAGS_RESERVED3 , NULL , HFILL }\n }\n , {\n & hf_diameter_avp_flags_reserved4 , {\n \"Reserved\" , \"diameter.avp.flags.reserved4\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , AVP_FLAGS_RESERVED4 , NULL , HFILL }\n }\n , {\n & hf_diameter_avp_flags_reserved5 , {\n \"Reserved\" , \"diameter.avp.flags.reserved5\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , AVP_FLAGS_RESERVED5 , NULL , HFILL }\n }\n , {\n & hf_diameter_avp_flags_reserved6 , {\n \"Reserved\" , \"diameter.avp.flags.reserved6\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , AVP_FLAGS_RESERVED6 , NULL , HFILL }\n }\n , {\n & hf_diameter_avp_flags_reserved7 , {\n \"Reserved\" , \"diameter.avp.flags.reserved7\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , AVP_FLAGS_RESERVED7 , NULL , HFILL }\n }\n , {\n & hf_diameter_avp_vendor_id , {\n \"AVP Vendor Id\" , \"diameter.avp.vendorId\" , FT_UINT32 , BASE_DEC | BASE_EXT_STRING , & sminmpec_values_ext , 0x0 , NULL , HFILL }\n }\n , {\n & ( unknown_avp . hf_value ) , {\n \"Value\" , \"diameter.avp.unknown\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_diameter_avp_data_wrong_length , {\n \"Data\" , \"diameter.avp.invalid-data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_diameter_avp_pad , {\n \"Padding\" , \"diameter.avp.pad\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_diameter_code , {\n \"Command Code\" , \"diameter.cmd.code\" , FT_UINT32 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_diameter_answer_in , {\n \"Answer In\" , \"diameter.answer_in\" , FT_FRAMENUM , BASE_NONE , FRAMENUM_TYPE ( FT_FRAMENUM_RESPONSE ) , 0x0 , \"The answer to this diameter request is in this frame\" , HFILL }\n }\n , {\n & hf_diameter_answer_to , {\n \"Request In\" , \"diameter.answer_to\" , FT_FRAMENUM , BASE_NONE , FRAMENUM_TYPE ( FT_FRAMENUM_REQUEST ) , 0x0 , \"This is an answer to the diameter request in this frame\" , HFILL }\n }\n , {\n & hf_diameter_answer_time , {\n \"Response Time\" , \"diameter.resp_time\" , FT_RELATIVE_TIME , BASE_NONE , NULL , 0x0 , \"The time between the request and the answer\" , HFILL }\n }\n , {\n & hf_framed_ipv6_prefix_reserved , {\n \"Framed IPv6 Prefix Reserved byte\" , \"diameter.framed_ipv6_prefix_reserved\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_framed_ipv6_prefix_length , {\n \"Framed IPv6 Prefix length (in bits)\" , \"diameter.framed_ipv6_prefix_length\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_framed_ipv6_prefix_bytes , {\n \"Framed IPv6 Prefix as a bytestring\" , \"diameter.framed_ipv6_prefix_bytes\" , FT_BYTES , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_framed_ipv6_prefix_ipv6 , {\n \"Framed IPv6 Prefix as an IPv6 address\" , \"diameter.framed_ipv6_prefix_ipv6\" , FT_IPv6 , BASE_NONE , NULL , 0 , \"This field is present only if the prefix length is 128\" , HFILL }\n }\n , {\n & hf_diameter_3gpp2_exp_res , {\n \"Experimental-Result-Code\" , \"diameter.3gpp2.exp_res\" , FT_UINT32 , BASE_DEC , VALS ( diameter_3gpp2_exp_res_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_diameter_other_vendor_exp_res , {\n \"Experimental-Result-Code\" , \"diameter.other_vendor.Experimental-Result-Code\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n }\n ;\n gint * ett_base [ ] = {\n & ett_diameter , & ett_diameter_flags , & ett_diameter_avp_flags , & ett_diameter_avpinfo , & ett_unknown , & ett_err , & ( unknown_avp . ett ) }\n ;\n static ei_register_info ei [ ] = {\n {\n & ei_diameter_reserved_bit_set , {\n \"diameter.reserved_bit_set\" , PI_MALFORMED , PI_WARN , \"Reserved bit set\" , EXPFILL }\n }\n , {\n & ei_diameter_avp_code , {\n \"diameter.avp.code.unknown\" , PI_UNDECODED , PI_WARN , \"Unknown AVP, if you know what this is you can add it to dictionary.xml\" , EXPFILL }\n }\n , {\n & ei_diameter_avp_vendor_id , {\n \"diameter.unknown_vendor\" , PI_UNDECODED , PI_WARN , \"Unknown Vendor, if you know whose this is you can add it to dictionary.xml\" , EXPFILL }\n }\n , {\n & ei_diameter_avp_no_data , {\n \"diameter.avp.no_data\" , PI_UNDECODED , PI_WARN , \"Data is empty\" , EXPFILL }\n }\n , {\n & ei_diameter_avp_pad , {\n \"diameter.avp.pad.non_zero\" , PI_MALFORMED , PI_NOTE , \"Padding is non-zero\" , EXPFILL }\n }\n , {\n & ei_diameter_avp_len , {\n \"diameter.avp.invalid-len\" , PI_MALFORMED , PI_WARN , \"Wrong length\" , EXPFILL }\n }\n , {\n & ei_diameter_application_id , {\n \"diameter.applicationId.unknown\" , PI_UNDECODED , PI_WARN , \"Unknown Application Id, if you know what this is you can add it to dictionary.xml\" , EXPFILL }\n }\n , {\n & ei_diameter_version , {\n \"diameter.version.unknown\" , PI_UNDECODED , PI_WARN , \"Unknown Diameter Version (decoding as RFC 3588)\" , EXPFILL }\n }\n , {\n & ei_diameter_code , {\n \"diameter.cmd.code.unknown\" , PI_UNDECODED , PI_WARN , \"Unknown command, if you know what this is you can add it to dictionary.xml\" , EXPFILL }\n }\n , {\n & ei_diameter_invalid_ipv6_prefix_len , {\n \"diameter.invalid_ipv6_prefix_len\" , PI_MALFORMED , PI_ERROR , \"Invalid IPv6 Prefix length\" , EXPFILL }\n }\n }\n ;\n wmem_array_append ( build_dict . hf , hf_base , array_length ( hf_base ) ) ;\n ett_length = array_length ( ett_base ) ;\n for ( i = 0 ;\n i < ett_length ;\n i ++ ) {\n g_ptr_array_add ( build_dict . ett , ett_base [ i ] ) ;\n }\n proto_diameter = proto_register_protocol ( \"Diameter Protocol\" , \"DIAMETER\" , \"diameter\" ) ;\n proto_register_field_array ( proto_diameter , ( hf_register_info * ) wmem_array_get_raw ( build_dict . hf ) , wmem_array_get_count ( build_dict . hf ) ) ;\n proto_register_subtree_array ( ( gint * * ) build_dict . ett -> pdata , build_dict . ett -> len ) ;\n expert_diameter = expert_register_protocol ( proto_diameter ) ;\n expert_register_field_array ( expert_diameter , ei , array_length ( ei ) ) ;\n g_ptr_array_free ( build_dict . ett , TRUE ) ;\n new_register_dissector ( \"diameter\" , dissect_diameter , proto_diameter ) ;\n diameter_dissector_table = register_dissector_table ( \"diameter.base\" , \"DIAMETER_BASE_AVPS\" , FT_UINT32 , BASE_DEC , DISSECTOR_TABLE_ALLOW_DUPLICATE ) ;\n diameter_3gpp_avp_dissector_table = register_dissector_table ( \"diameter.3gpp\" , \"DIAMETER_3GPP_AVPS\" , FT_UINT32 , BASE_DEC , DISSECTOR_TABLE_ALLOW_DUPLICATE ) ;\n diameter_ericsson_avp_dissector_table = register_dissector_table ( \"diameter.ericsson\" , \"DIAMETER_ERICSSON_AVPS\" , FT_UINT32 , BASE_DEC , DISSECTOR_TABLE_ALLOW_DUPLICATE ) ;\n diameter_expr_result_vnd_table = register_dissector_table ( \"diameter.vnd_exp_res\" , \"DIAMETER Experimental-Result-Code\" , FT_UINT32 , BASE_DEC , DISSECTOR_TABLE_ALLOW_DUPLICATE ) ;\n range_convert_str ( & global_diameter_tcp_port_range , DEFAULT_DIAMETER_PORT_RANGE , MAX_UDP_PORT ) ;\n range_convert_str ( & global_diameter_sctp_port_range , DEFAULT_DIAMETER_PORT_RANGE , MAX_SCTP_PORT ) ;\n range_convert_str ( & global_diameter_udp_port_range , \"\" , MAX_UDP_PORT ) ;\n diameter_module = prefs_register_protocol ( proto_diameter , proto_reg_handoff_diameter ) ;\n prefs_register_range_preference ( diameter_module , \"tcp.ports\" , \"Diameter TCP ports\" , \"TCP ports to be decoded as Diameter (default: \" DEFAULT_DIAMETER_PORT_RANGE \")\" , & global_diameter_tcp_port_range , MAX_UDP_PORT ) ;\n prefs_register_range_preference ( diameter_module , \"sctp.ports\" , \"Diameter SCTP Ports\" , \"SCTP ports to be decoded as Diameter (default: \" DEFAULT_DIAMETER_PORT_RANGE \")\" , & global_diameter_sctp_port_range , MAX_SCTP_PORT ) ;\n prefs_register_bool_preference ( diameter_module , \"desegment\" , \"Reassemble Diameter messages\\nspanning multiple TCP segments\" , \"Whether the Diameter dissector should reassemble messages spanning multiple TCP segments.\" \" To use this option, you must also enable \\\"Allow subdissectors to reassemble TCP streams\\\" in the TCP protocol settings.\" , & gbl_diameter_desegment ) ;\n prefs_register_range_preference ( diameter_module , \"udp.ports\" , \"Diameter UDP ports\" , \"UDP ports to be decoded as Diameter (default: 0 as Diameter over UDP is nonstandard)\" , & global_diameter_udp_port_range , MAX_UDP_PORT ) ;\n prefs_register_obsolete_preference ( diameter_module , \"version\" ) ;\n prefs_register_obsolete_preference ( diameter_module , \"tcp.port\" ) ;\n prefs_register_obsolete_preference ( diameter_module , \"sctp.port\" ) ;\n prefs_register_obsolete_preference ( diameter_module , \"command_in_header\" ) ;\n prefs_register_obsolete_preference ( diameter_module , \"dictionary.name\" ) ;\n prefs_register_obsolete_preference ( diameter_module , \"dictionary.use\" ) ;\n prefs_register_obsolete_preference ( diameter_module , \"allow_zero_as_app_id\" ) ;\n prefs_register_obsolete_preference ( diameter_module , \"suppress_console_output\" ) ;\n diameter_tap = register_tap ( \"diameter\" ) ;\n register_srt_table ( proto_diameter , NULL , 1 , diameterstat_packet , diameterstat_init , NULL ) ;\n }"}
{"idx": 17121, "target": 0, "func": "EVP_PKEY * d2i_PrivateKey_fp ( FILE * fp , EVP_PKEY * * a ) {\n return ASN1_d2i_fp_of ( EVP_PKEY , EVP_PKEY_new , d2i_AutoPrivateKey , fp , a ) ;\n }"}
{"idx": 17122, "target": 1, "func": "static ossl_inline unsigned long lh_ ## type ## _num_items ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_num_items ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _node_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _node_usage_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_usage_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING ) ;\n # ifdef _MSC_VER # pragma warning ( push ) # pragma warning ( disable : 4090 ) # endif DEFINE_LHASH_OF ( OPENSSL_CSTRING )"}
{"idx": 17123, "target": 0, "func": "static void fix_peer_address ( ngx_http_request_t * r ) {\n ngx_http_upstream_rr_peer_data_t * rrp ;\n ngx_http_upstream_rr_peers_t * peers ;\n ngx_http_upstream_rr_peer_t * peer ;\n unsigned int peer_index ;\n const char * request_socket_filename ;\n unsigned int request_socket_filename_len ;\n if ( r -> upstream -> peer . get != ngx_http_upstream_get_round_robin_peer ) {\n return ;\n }\n rrp = r -> upstream -> peer . data ;\n peers = rrp -> peers ;\n request_socket_filename = pp_agents_starter_get_request_socket_filename ( pp_agents_starter , & request_socket_filename_len ) ;\n while ( peers != NULL ) {\n if ( peers -> name ) {\n if ( peers -> name -> data == ( u_char * ) request_socket_filename ) {\n return ;\n }\n peers -> name -> data = ( u_char * ) request_socket_filename ;\n peers -> name -> len = request_socket_filename_len ;\n }\n peer_index = 0 ;\n while ( 1 ) {\n peer = & peers -> peer [ peer_index ] ;\n peer -> name . data = ( u_char * ) request_socket_filename ;\n peer -> name . len = request_socket_filename_len ;\n if ( peer -> down ) {\n peer_index ++ ;\n }\n else {\n break ;\n }\n }\n peers = peers -> next ;\n }\n }"}
{"idx": 17124, "target": 0, "func": "static cmsBool GetVal ( cmsIT8 * it8 , char * Buffer , cmsUInt32Number max , const char * ErrorTitle ) {\n switch ( it8 -> sy ) {\n case SEOLN : Buffer [ 0 ] = 0 ;\n break ;\n case SIDENT : strncpy ( Buffer , it8 -> id , max ) ;\n Buffer [ max - 1 ] = 0 ;\n break ;\n case SINUM : snprintf ( Buffer , max , \"%d\" , it8 -> inum ) ;\n break ;\n case SDNUM : snprintf ( Buffer , max , it8 -> DoubleFormatter , it8 -> dnum ) ;\n break ;\n case SSTRING : strncpy ( Buffer , it8 -> str , max ) ;\n Buffer [ max - 1 ] = 0 ;\n break ;\n default : return SynError ( it8 , \"%s\" , ErrorTitle ) ;\n }\n Buffer [ max ] = 0 ;\n return TRUE ;\n }"}
{"idx": 17125, "target": 0, "func": "static inline void ff_mpeg4_set_one_direct_mv ( MpegEncContext * s , int mx , int my , int i ) {\n int xy = s -> block_index [ i ] ;\n uint16_t time_pp = s -> pp_time ;\n uint16_t time_pb = s -> pb_time ;\n int p_mx , p_my ;\n p_mx = s -> next_picture . motion_val [ 0 ] [ xy ] [ 0 ] ;\n if ( ( unsigned ) ( p_mx + tab_bias ) < tab_size ) {\n s -> mv [ 0 ] [ i ] [ 0 ] = s -> direct_scale_mv [ 0 ] [ p_mx + tab_bias ] + mx ;\n s -> mv [ 1 ] [ i ] [ 0 ] = mx ? s -> mv [ 0 ] [ i ] [ 0 ] - p_mx : s -> direct_scale_mv [ 1 ] [ p_mx + tab_bias ] ;\n }\n else {\n s -> mv [ 0 ] [ i ] [ 0 ] = p_mx * time_pb / time_pp + mx ;\n s -> mv [ 1 ] [ i ] [ 0 ] = mx ? s -> mv [ 0 ] [ i ] [ 0 ] - p_mx : p_mx * ( time_pb - time_pp ) / time_pp ;\n }\n p_my = s -> next_picture . motion_val [ 0 ] [ xy ] [ 1 ] ;\n if ( ( unsigned ) ( p_my + tab_bias ) < tab_size ) {\n s -> mv [ 0 ] [ i ] [ 1 ] = s -> direct_scale_mv [ 0 ] [ p_my + tab_bias ] + my ;\n s -> mv [ 1 ] [ i ] [ 1 ] = my ? s -> mv [ 0 ] [ i ] [ 1 ] - p_my : s -> direct_scale_mv [ 1 ] [ p_my + tab_bias ] ;\n }\n else {\n s -> mv [ 0 ] [ i ] [ 1 ] = p_my * time_pb / time_pp + my ;\n s -> mv [ 1 ] [ i ] [ 1 ] = my ? s -> mv [ 0 ] [ i ] [ 1 ] - p_my : p_my * ( time_pb - time_pp ) / time_pp ;\n }\n }"}
{"idx": 17126, "target": 0, "func": "static clump_t * clump_splay_remove ( clump_t * cp , gs_ref_memory_t * imem ) {\n clump_t * replacement ;\n if ( cp -> left == NULL ) {\n replacement = cp -> right ;\n }\n else if ( cp -> right == NULL ) {\n replacement = cp -> left ;\n }\n else {\n replacement = cp -> left ;\n while ( replacement -> right ) replacement = replacement -> right ;\n ( void ) clump_splay_remove ( replacement , imem ) ;\n if ( cp -> left ) cp -> left -> parent = replacement ;\n cp -> right -> parent = replacement ;\n replacement -> left = cp -> left ;\n replacement -> right = cp -> right ;\n }\n if ( cp -> parent ) {\n if ( cp -> parent -> left == cp ) cp -> parent -> left = replacement ;\n else cp -> parent -> right = replacement ;\n }\n else imem -> root = replacement ;\n if ( replacement ) replacement -> parent = cp -> parent ;\n return replacement ;\n }"}
{"idx": 17127, "target": 0, "func": "TEST_F ( NativeBackendLibsecretTest , RemoveLoginActionMismatch ) {\n NativeBackendLibsecret backend ( 42 ) ;\n VerifiedAdd ( & backend , form_google_ ) ;\n EXPECT_EQ ( 1u , global_mock_libsecret_items -> size ( ) ) ;\n if ( ! global_mock_libsecret_items -> empty ( ) ) CheckMockSecretItem ( ( * global_mock_libsecret_items ) [ 0 ] , form_google_ , \"chrome-42\" ) ;\n form_google_ . action = GURL ( \"https://some.other.url.com/path\" ) ;\n VerifiedRemove ( & backend , form_google_ ) ;\n EXPECT_TRUE ( global_mock_libsecret_items -> empty ( ) ) ;\n }"}
{"idx": 17128, "target": 0, "func": "static void unlock_all ( KEYDB_HANDLE hd ) {\n int i ;\n if ( ! hd -> locked ) return ;\n for ( i = hd -> used - 1 ;\n i >= 0 ;\n i -- ) {\n switch ( hd -> active [ i ] . type ) {\n case KEYDB_RESOURCE_TYPE_NONE : break ;\n case KEYDB_RESOURCE_TYPE_KEYRING : keyring_lock ( hd -> active [ i ] . u . kr , 0 ) ;\n break ;\n case KEYDB_RESOURCE_TYPE_KEYBOX : keybox_lock ( hd -> active [ i ] . u . kb , 0 ) ;\n break ;\n }\n }\n hd -> locked = 0 ;\n }"}
{"idx": 17129, "target": 0, "func": "static void enlarge_roq_mb4 ( uint8_t base [ 3 * 16 ] , uint8_t u [ 3 * 64 ] ) {\n int x , y , cp ;\n for ( cp = 0 ;\n cp < 3 ;\n cp ++ ) for ( y = 0 ;\n y < 8 ;\n y ++ ) for ( x = 0 ;\n x < 8 ;\n x ++ ) * u ++ = base [ ( y / 2 ) * 4 + ( x / 2 ) + 16 * cp ] ;\n }"}
{"idx": 17130, "target": 0, "func": "Datum icnlikejoinsel ( PG_FUNCTION_ARGS ) {\n PG_RETURN_FLOAT8 ( patternjoinsel ( fcinfo , Pattern_Type_Like_IC , true ) ) ;\n }"}
{"idx": 17131, "target": 0, "func": "static void sig_message_own_public ( SERVER_REC * server , const char * msg , const char * target , const char * origtarget ) {\n CHANNEL_REC * channel ;\n NICK_REC * nick ;\n char * p , * msgnick ;\n g_return_if_fail ( server != NULL ) ;\n g_return_if_fail ( msg != NULL ) ;\n if ( target == NULL ) return ;\n channel = channel_find ( server , target ) ;\n if ( channel == NULL ) return ;\n p = strchr ( msg , ' ' ) ;\n if ( p != NULL && p != msg ) {\n msgnick = g_strndup ( msg , ( int ) ( p - msg ) ) ;\n nick = nicklist_find ( channel , msgnick ) ;\n if ( nick == NULL && msgnick [ 1 ] != '\\0' ) {\n msgnick [ strlen ( msgnick ) - 1 ] = '\\0' ;\n nick = nicklist_find ( channel , msgnick ) ;\n }\n g_free ( msgnick ) ;\n if ( nick != NULL && nick != channel -> ownnick ) CHANNEL_LAST_MSG_ADD ( channel , nick -> nick , TRUE ) ;\n }\n }"}
{"idx": 17132, "target": 0, "func": "bool cpu_is_stopped ( CPUState * cpu ) {\n return ! runstate_is_running ( ) || cpu -> stopped ;\n }"}
{"idx": 17133, "target": 0, "func": "static int SpoolssAddForm_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n proto_item * hidden_item ;\n hidden_item = proto_tree_add_uint ( tree , hf_form , tvb , offset , 0 , 1 ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 17134, "target": 0, "func": "static double eqjoinsel_semi ( Oid operator , VariableStatData * vardata1 , VariableStatData * vardata2 , RelOptInfo * inner_rel ) {\n double selec ;\n double nd1 ;\n double nd2 ;\n bool isdefault1 ;\n bool isdefault2 ;\n Oid opfuncoid ;\n Form_pg_statistic stats1 = NULL ;\n bool have_mcvs1 = false ;\n Datum * values1 = NULL ;\n int nvalues1 = 0 ;\n float4 * numbers1 = NULL ;\n int nnumbers1 = 0 ;\n bool have_mcvs2 = false ;\n Datum * values2 = NULL ;\n int nvalues2 = 0 ;\n float4 * numbers2 = NULL ;\n int nnumbers2 = 0 ;\n nd1 = get_variable_numdistinct ( vardata1 , & isdefault1 ) ;\n nd2 = get_variable_numdistinct ( vardata2 , & isdefault2 ) ;\n opfuncoid = OidIsValid ( operator ) ? get_opcode ( operator ) : InvalidOid ;\n if ( vardata2 -> rel ) nd2 = Min ( nd2 , vardata2 -> rel -> rows ) ;\n nd2 = Min ( nd2 , inner_rel -> rows ) ;\n if ( HeapTupleIsValid ( vardata1 -> statsTuple ) ) {\n stats1 = ( Form_pg_statistic ) GETSTRUCT ( vardata1 -> statsTuple ) ;\n if ( statistic_proc_security_check ( vardata1 , opfuncoid ) ) have_mcvs1 = get_attstatsslot ( vardata1 -> statsTuple , vardata1 -> atttype , vardata1 -> atttypmod , STATISTIC_KIND_MCV , InvalidOid , NULL , & values1 , & nvalues1 , & numbers1 , & nnumbers1 ) ;\n }\n if ( HeapTupleIsValid ( vardata2 -> statsTuple ) && statistic_proc_security_check ( vardata2 , opfuncoid ) ) {\n have_mcvs2 = get_attstatsslot ( vardata2 -> statsTuple , vardata2 -> atttype , vardata2 -> atttypmod , STATISTIC_KIND_MCV , InvalidOid , NULL , & values2 , & nvalues2 , & numbers2 , & nnumbers2 ) ;\n }\n if ( have_mcvs1 && have_mcvs2 && OidIsValid ( operator ) ) {\n FmgrInfo eqproc ;\n bool * hasmatch1 ;\n bool * hasmatch2 ;\n double nullfrac1 = stats1 -> stanullfrac ;\n double matchfreq1 , uncertainfrac , uncertain ;\n int i , nmatches , clamped_nvalues2 ;\n clamped_nvalues2 = Min ( nvalues2 , nd2 ) ;\n fmgr_info ( opfuncoid , & eqproc ) ;\n hasmatch1 = ( bool * ) palloc0 ( nvalues1 * sizeof ( bool ) ) ;\n hasmatch2 = ( bool * ) palloc0 ( clamped_nvalues2 * sizeof ( bool ) ) ;\n nmatches = 0 ;\n for ( i = 0 ;\n i < nvalues1 ;\n i ++ ) {\n int j ;\n for ( j = 0 ;\n j < clamped_nvalues2 ;\n j ++ ) {\n if ( hasmatch2 [ j ] ) continue ;\n if ( DatumGetBool ( FunctionCall2Coll ( & eqproc , DEFAULT_COLLATION_OID , values1 [ i ] , values2 [ j ] ) ) ) {\n hasmatch1 [ i ] = hasmatch2 [ j ] = true ;\n nmatches ++ ;\n break ;\n }\n }\n }\n matchfreq1 = 0.0 ;\n for ( i = 0 ;\n i < nvalues1 ;\n i ++ ) {\n if ( hasmatch1 [ i ] ) matchfreq1 += numbers1 [ i ] ;\n }\n CLAMP_PROBABILITY ( matchfreq1 ) ;\n pfree ( hasmatch1 ) ;\n pfree ( hasmatch2 ) ;\n if ( ! isdefault1 && ! isdefault2 ) {\n nd1 -= nmatches ;\n nd2 -= nmatches ;\n if ( nd1 <= nd2 || nd2 < 0 ) uncertainfrac = 1.0 ;\n else uncertainfrac = nd2 / nd1 ;\n }\n else uncertainfrac = 0.5 ;\n uncertain = 1.0 - matchfreq1 - nullfrac1 ;\n CLAMP_PROBABILITY ( uncertain ) ;\n selec = matchfreq1 + uncertainfrac * uncertain ;\n }\n else {\n double nullfrac1 = stats1 ? stats1 -> stanullfrac : 0.0 ;\n if ( ! isdefault1 && ! isdefault2 ) {\n if ( nd1 <= nd2 || nd2 < 0 ) selec = 1.0 - nullfrac1 ;\n else selec = ( nd2 / nd1 ) * ( 1.0 - nullfrac1 ) ;\n }\n else selec = 0.5 * ( 1.0 - nullfrac1 ) ;\n }\n if ( have_mcvs1 ) free_attstatsslot ( vardata1 -> atttype , values1 , nvalues1 , numbers1 , nnumbers1 ) ;\n if ( have_mcvs2 ) free_attstatsslot ( vardata2 -> atttype , values2 , nvalues2 , numbers2 , nnumbers2 ) ;\n return selec ;\n }"}
{"idx": 17135, "target": 0, "func": "void BrotliHuffmanTreeGroupRelease ( BrotliState * s , HuffmanTreeGroup * group ) {\n BROTLI_FREE ( s , group -> codes ) ;\n group -> htrees = NULL ;\n }"}
{"idx": 17136, "target": 0, "func": "int mvsnprintf ( char * buf , size_t bufsiz , const char * fmt , va_list ap ) {\n # ifndef VSNPRINTF_PERCENT_M char nfmt [ 256 ] ;\n # else const char * nfmt = fmt ;\n # endif int errval ;\n # ifdef SYS_WINNT errval = GetLastError ( ) ;\n if ( NO_ERROR == errval ) # endif errval = errno ;\n # ifndef VSNPRINTF_PERCENT_M format_errmsg ( nfmt , sizeof ( nfmt ) , fmt , errval ) ;\n # else errno = errval ;\n # endif return vsnprintf ( buf , bufsiz , nfmt , ap ) ;\n }"}
{"idx": 17137, "target": 0, "func": "static int opt_show_ ## section ( const char * opt , const char * arg ) {\n mark_section_show_entries ( SECTION_ID_ ## target_section_id , 1 , NULL ) ;\n return 0 ;\n }\n DEFINE_OPT_SHOW_SECTION ( chapters , CHAPTERS ) DEFINE_OPT_SHOW_SECTION ( error , ERROR ) DEFINE_OPT_SHOW_SECTION ( format , FORMAT ) DEFINE_OPT_SHOW_SECTION ( frames , FRAMES ) DEFINE_OPT_SHOW_SECTION ( library_versions , LIBRARY_VERSIONS ) DEFINE_OPT_SHOW_SECTION ( packets , PACKETS ) DEFINE_OPT_SHOW_SECTION ( pixel_formats , PIXEL_FORMATS )"}
{"idx": 17138, "target": 0, "func": "static int dissect_h245_OCTET_STRING_SIZE_1_20 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 1 , 20 , FALSE , NULL ) ;\n return offset ;\n }"}
{"idx": 17139, "target": 1, "func": "static int libopenjpeg_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n LibOpenJPEGContext * ctx = avctx -> priv_data ;\n AVFrame * picture = & ctx -> image , * output = data ;\n const AVPixFmtDescriptor * desc ;\n opj_dinfo_t * dec ;\n opj_cio_t * stream ;\n opj_image_t * image ;\n int width , height , ret = - 1 ;\n int pixel_size = 0 ;\n int ispacked = 0 ;\n int i ;\n * got_frame = 0 ;\n if ( ( AV_RB32 ( buf ) == 12 ) && ( AV_RB32 ( buf + 4 ) == JP2_SIG_TYPE ) && ( AV_RB32 ( buf + 8 ) == JP2_SIG_VALUE ) ) {\n dec = opj_create_decompress ( CODEC_JP2 ) ;\n }\n else {\n if ( AV_RB32 ( buf + 4 ) == AV_RB32 ( \"jp2c\" ) ) buf += 8 ;\n dec = opj_create_decompress ( CODEC_J2K ) ;\n }\n if ( ! dec ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error initializing decoder.\\n\" ) ;\n return - 1 ;\n }\n opj_set_event_mgr ( ( opj_common_ptr ) dec , NULL , NULL ) ;\n ctx -> dec_params . cp_limit_decoding = LIMIT_TO_MAIN_HEADER ;\n ctx -> dec_params . cp_reduce = ctx -> lowres ;\n ctx -> dec_params . cp_layer = ctx -> lowqual ;\n opj_setup_decoder ( dec , & ctx -> dec_params ) ;\n stream = opj_cio_open ( ( opj_common_ptr ) dec , buf , buf_size ) ;\n if ( ! stream ) {\n av_log ( avctx , AV_LOG_ERROR , \"Codestream could not be opened for reading.\\n\" ) ;\n opj_destroy_decompress ( dec ) ;\n return - 1 ;\n }\n image = opj_decode_with_info ( dec , stream , NULL ) ;\n opj_cio_close ( stream ) ;\n if ( ! image ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error decoding codestream.\\n\" ) ;\n opj_destroy_decompress ( dec ) ;\n return - 1 ;\n }\n width = image -> x1 - image -> x0 ;\n height = image -> y1 - image -> y0 ;\n if ( ctx -> lowres ) {\n width = ( width + ( 1 << ctx -> lowres ) - 1 ) >> ctx -> lowres ;\n height = ( height + ( 1 << ctx -> lowres ) - 1 ) >> ctx -> lowres ;\n }\n if ( av_image_check_size ( width , height , 0 , avctx ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"%dx%d dimension invalid.\\n\" , width , height ) ;\n goto done ;\n }\n avcodec_set_dimensions ( avctx , width , height ) ;\n if ( avctx -> pix_fmt != AV_PIX_FMT_NONE ) if ( ! libopenjpeg_matches_pix_fmt ( image , avctx -> pix_fmt ) ) avctx -> pix_fmt = AV_PIX_FMT_NONE ;\n if ( avctx -> pix_fmt == AV_PIX_FMT_NONE ) avctx -> pix_fmt = libopenjpeg_guess_pix_fmt ( image ) ;\n if ( avctx -> pix_fmt == AV_PIX_FMT_NONE ) {\n av_log ( avctx , AV_LOG_ERROR , \"Unable to determine pixel format\\n\" ) ;\n ret = AVERROR_INVALIDDATA ;\n goto done ;\n }\n for ( i = 0 ;\n i < image -> numcomps ;\n i ++ ) if ( image -> comps [ i ] . prec > avctx -> bits_per_raw_sample ) avctx -> bits_per_raw_sample = image -> comps [ i ] . prec ;\n if ( picture -> data [ 0 ] ) ff_thread_release_buffer ( avctx , picture ) ;\n if ( ff_thread_get_buffer ( avctx , picture ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"ff_thread_get_buffer() failed\\n\" ) ;\n goto done ;\n }\n ctx -> dec_params . cp_limit_decoding = NO_LIMITATION ;\n opj_setup_decoder ( dec , & ctx -> dec_params ) ;\n stream = opj_cio_open ( ( opj_common_ptr ) dec , buf , buf_size ) ;\n if ( ! stream ) {\n av_log ( avctx , AV_LOG_ERROR , \"Codestream could not be opened for reading.\\n\" ) ;\n goto done ;\n }\n opj_image_destroy ( image ) ;\n image = opj_decode_with_info ( dec , stream , NULL ) ;\n opj_cio_close ( stream ) ;\n if ( ! image ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error decoding codestream.\\n\" ) ;\n goto done ;\n }\n desc = av_pix_fmt_desc_get ( avctx -> pix_fmt ) ;\n pixel_size = desc -> comp [ 0 ] . step_minus1 + 1 ;\n ispacked = libopenjpeg_ispacked ( avctx -> pix_fmt ) ;\n switch ( pixel_size ) {\n case 1 : if ( ispacked ) {\n libopenjpeg_copy_to_packed8 ( picture , image ) ;\n }\n else {\n libopenjpeg_copyto8 ( picture , image ) ;\n }\n break ;\n case 2 : if ( ispacked ) {\n libopenjpeg_copy_to_packed8 ( picture , image ) ;\n }\n else {\n libopenjpeg_copyto16 ( picture , image ) ;\n }\n break ;\n case 3 : case 4 : if ( ispacked ) {\n libopenjpeg_copy_to_packed8 ( picture , image ) ;\n }\n break ;\n case 6 : case 8 : if ( ispacked ) {\n libopenjpeg_copy_to_packed16 ( picture , image ) ;\n }\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"unsupported pixel size %d\\n\" , pixel_size ) ;\n goto done ;\n }\n * output = ctx -> image ;\n * got_frame = 1 ;\n ret = buf_size ;\n done : opj_image_destroy ( image ) ;\n opj_destroy_decompress ( dec ) ;\n return ret ;\n }"}
{"idx": 17140, "target": 0, "func": "static void refresh_connections ( void ) {\n if ( ! ( wdg_connections -> flags & WDG_OBJ_FOCUSED ) ) return ;\n wdg_dynlist_refresh ( wdg_connections ) ;\n }"}
{"idx": 17141, "target": 0, "func": "static UBool action_reorder ( UBiDiTransform * pTransform , UErrorCode * pErrorCode ) {\n ubidi_writeReordered ( pTransform -> pBidi , pTransform -> dest , pTransform -> destSize , pTransform -> reorderingOptions , pErrorCode ) ;\n * pTransform -> pDestLength = pTransform -> srcLength ;\n pTransform -> reorderingOptions = UBIDI_REORDER_DEFAULT ;\n return TRUE ;\n }"}
{"idx": 17142, "target": 0, "func": "static int fpreg_pre_save ( void * opaque ) {\n x86_FPReg_tmp * tmp = opaque ;\n cpu_get_fp80 ( & tmp -> tmp_mant , & tmp -> tmp_exp , tmp -> parent -> d ) ;\n return 0 ;\n }"}
{"idx": 17143, "target": 0, "func": "static inline dma_addr_t xhci_mask64 ( uint64_t addr ) {\n if ( sizeof ( dma_addr_t ) == 4 ) {\n return addr & 0xffffffff ;\n }\n else {\n return addr ;\n }\n }"}
{"idx": 17144, "target": 0, "func": "void ff_MPV_decode_mb ( MpegEncContext * s , int16_t block [ 12 ] [ 64 ] ) {\n # if ! CONFIG_SMALL if ( s -> out_format == FMT_MPEG1 ) {\n MPV_decode_mb_internal ( s , block , 1 ) ;\n }\n else # endif MPV_decode_mb_internal ( s , block , 0 ) ;\n }"}
{"idx": 17145, "target": 0, "func": "xmlParserInputBufferCreateFilenameFunc * __xmlParserInputBufferCreateFilenameValue ( void ) {\n if ( IS_MAIN_THREAD ) return ( & xmlParserInputBufferCreateFilenameValue ) ;\n else return ( & xmlGetGlobalState ( ) -> xmlParserInputBufferCreateFilenameValue ) ;\n }"}
{"idx": 17146, "target": 0, "func": "static ossl_inline type * lh_ ## type ## _retrieve ( LHASH_OF ( type ) * lh , const type * d ) {\n return ( type * ) OPENSSL_LH_retrieve ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline int lh_ ## type ## _error ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_error ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _num_items ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_num_items ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _node_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _node_usage_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_usage_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING )"}
{"idx": 17147, "target": 0, "func": "const gx_device_memory * gdev_mem_device_for_bits ( int bits_per_pixel ) {\n return ( ( uint ) bits_per_pixel > 64 ? & mem_x_device : mem_devices [ bits_per_pixel ] ) ;\n }"}
{"idx": 17148, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( MimeHandlerViewTest , ResizeBeforeAttach ) {\n TestMimeHandlerViewGuest : : DelayNextCreateWebContents ( 500 ) ;\n RunTest ( \"test_resize_before_attach.html\" ) ;\n content : : WebContents * guest_web_contents = GetGuestViewManager ( ) -> WaitForSingleGuestCreated ( ) ;\n TestMimeHandlerViewGuest * guest = static_cast < TestMimeHandlerViewGuest * > ( MimeHandlerViewGuest : : FromWebContents ( guest_web_contents ) ) ;\n guest -> WaitForGuestAttached ( ) ;\n auto guest_size = guest -> size ( ) ;\n CHECK_EQ ( guest_size . width ( ) , 500 ) ;\n CHECK_EQ ( guest_size . height ( ) , 400 ) ;\n }"}
{"idx": 17149, "target": 0, "func": "unsigned int vp9_sub_pixel_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp2 , W , dst , dst_stride , sse ) ;\n \\ }\n # define SUBPIX_AVG_VAR ( W , H ) unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 )"}
{"idx": 17150, "target": 0, "func": "static gpgme_error_t default_inq_cb ( engine_gpgsm_t gpgsm , const char * line ) {\n if ( ! strncmp ( line , \"PINENTRY_LAUNCHED\" , 17 ) && ( line [ 17 ] == ' ' || ! line [ 17 ] ) ) {\n _gpgme_allow_set_foreground_window ( ( pid_t ) strtoul ( line + 17 , NULL , 10 ) ) ;\n }\n return 0 ;\n }"}
{"idx": 17151, "target": 0, "func": "static int jbig2_decode_generic_template1 ( Jbig2Ctx * ctx , Jbig2Segment * segment , const Jbig2GenericRegionParams * params , Jbig2ArithState * as , Jbig2Image * image , Jbig2ArithCx * GB_stats ) {\n const int GBW = image -> width ;\n const int GBH = image -> height ;\n const int rowstride = image -> stride ;\n int x , y ;\n byte * gbreg_line = ( byte * ) image -> data ;\n # ifdef OUTPUT_PBM printf ( \"P4\\n%d %d\\n\" , GBW , GBH ) ;\n # endif if ( GBW <= 0 ) return 0 ;\n for ( y = 0 ;\n y < GBH ;\n y ++ ) {\n uint32_t CONTEXT ;\n uint32_t line_m1 ;\n uint32_t line_m2 ;\n int padded_width = ( GBW + 7 ) & - 8 ;\n line_m1 = ( y >= 1 ) ? gbreg_line [ - rowstride ] : 0 ;\n line_m2 = ( y >= 2 ) ? gbreg_line [ - ( rowstride << 1 ) ] << 5 : 0 ;\n CONTEXT = ( ( line_m1 >> 1 ) & 0x1f8 ) | ( ( line_m2 >> 1 ) & 0x1e00 ) ;\n for ( x = 0 ;\n x < padded_width ;\n x += 8 ) {\n byte result = 0 ;\n int x_minor ;\n int minor_width = GBW - x > 8 ? 8 : GBW - x ;\n if ( y >= 1 ) line_m1 = ( line_m1 << 8 ) | ( x + 8 < GBW ? gbreg_line [ - rowstride + ( x >> 3 ) + 1 ] : 0 ) ;\n if ( y >= 2 ) line_m2 = ( line_m2 << 8 ) | ( x + 8 < GBW ? gbreg_line [ - ( rowstride << 1 ) + ( x >> 3 ) + 1 ] << 5 : 0 ) ;\n for ( x_minor = 0 ;\n x_minor < minor_width ;\n x_minor ++ ) {\n bool bit ;\n bit = jbig2_arith_decode ( as , & GB_stats [ CONTEXT ] ) ;\n if ( bit < 0 ) return - 1 ;\n result |= bit << ( 7 - x_minor ) ;\n CONTEXT = ( ( CONTEXT & 0xefb ) << 1 ) | bit | ( ( line_m1 >> ( 8 - x_minor ) ) & 0x8 ) | ( ( line_m2 >> ( 8 - x_minor ) ) & 0x200 ) ;\n }\n gbreg_line [ x >> 3 ] = result ;\n }\n # ifdef OUTPUT_PBM fwrite ( gbreg_line , 1 , rowstride , stdout ) ;\n # endif gbreg_line += rowstride ;\n }\n return 0 ;\n }"}
{"idx": 17152, "target": 0, "func": "void cpu_set_debug_excp_handler ( CPUDebugExcpHandler * handler ) {\n debug_excp_handler = handler ;\n }"}
{"idx": 17153, "target": 0, "func": "GList * completion_get_targets ( const char * word ) {\n CONFIG_NODE * node ;\n GList * list ;\n GSList * tmp ;\n int len ;\n g_return_val_if_fail ( word != NULL , NULL ) ;\n len = strlen ( word ) ;\n list = NULL ;\n node = iconfig_node_traverse ( \"conversions\" , FALSE ) ;\n tmp = node == NULL ? NULL : config_node_first ( node -> value ) ;\n for ( ;\n tmp != NULL ;\n tmp = config_node_next ( tmp ) ) {\n node = tmp -> data ;\n if ( node -> type != NODE_TYPE_KEY ) continue ;\n if ( len != 0 && g_ascii_strncasecmp ( node -> key , word , len ) != 0 ) continue ;\n list = g_list_append ( list , g_strdup ( node -> key ) ) ;\n }\n return list ;\n }"}
{"idx": 17154, "target": 0, "func": "ngx_int_t passenger_content_handler ( ngx_http_request_t * r ) {\n ngx_int_t rc ;\n ngx_http_upstream_t * u ;\n passenger_loc_conf_t * slcf ;\n ngx_str_t path , base_uri ;\n u_char * path_last , * end ;\n u_char root_path_str [ NGX_MAX_PATH + 1 ] ;\n ngx_str_t root_path ;\n size_t root_len , len ;\n u_char page_cache_file_str [ NGX_MAX_PATH + 1 ] ;\n ngx_str_t page_cache_file ;\n passenger_context_t * context ;\n PP_Error error ;\n if ( passenger_main_conf . root_dir . len == 0 ) {\n return NGX_DECLINED ;\n }\n else if ( r -> subrequest_in_memory ) {\n ngx_log_error ( NGX_LOG_ALERT , r -> connection -> log , 0 , \"ngx_http_passenger_module does not support \" \"subrequest in memory\" ) ;\n return NGX_HTTP_INTERNAL_SERVER_ERROR ;\n }\n slcf = ngx_http_get_module_loc_conf ( r , ngx_http_passenger_module ) ;\n if ( ! slcf -> enabled ) {\n return NGX_DECLINED ;\n }\n path_last = ngx_http_map_uri_to_path ( r , & path , & root_len , 0 ) ;\n if ( path_last != NULL && file_exists ( path . data , 0 ) ) {\n return NGX_DECLINED ;\n }\n end = ngx_copy ( root_path_str , path . data , root_len ) ;\n * end = '\\0' ;\n root_path . data = root_path_str ;\n root_path . len = root_len ;\n context = ngx_pcalloc ( r -> pool , sizeof ( passenger_context_t ) ) ;\n if ( context == NULL ) {\n return NGX_HTTP_INTERNAL_SERVER_ERROR ;\n }\n ngx_http_set_ctx ( r , context , ngx_http_passenger_module ) ;\n if ( find_base_uri ( r , slcf , & base_uri ) ) {\n if ( slcf -> document_root . data != NULL ) {\n len = slcf -> document_root . len + 1 ;\n context -> public_dir . data = ngx_palloc ( r -> pool , sizeof ( u_char ) * len ) ;\n end = ngx_copy ( context -> public_dir . data , slcf -> document_root . data , slcf -> document_root . len ) ;\n }\n else {\n len = root_path . len + base_uri . len + 1 ;\n context -> public_dir . data = ngx_palloc ( r -> pool , sizeof ( u_char ) * len ) ;\n end = ngx_copy ( context -> public_dir . data , root_path . data , root_path . len ) ;\n end = ngx_copy ( end , base_uri . data , base_uri . len ) ;\n }\n * end = '\\0' ;\n context -> public_dir . len = len - 1 ;\n context -> base_uri = base_uri ;\n }\n else {\n len = sizeof ( u_char * ) * ( root_path . len + 1 ) ;\n context -> public_dir . data = ngx_palloc ( r -> pool , len ) ;\n end = ngx_copy ( context -> public_dir . data , root_path . data , root_path . len ) ;\n * end = '\\0' ;\n context -> public_dir . len = root_path . len ;\n }\n page_cache_file . data = page_cache_file_str ;\n page_cache_file . len = sizeof ( page_cache_file_str ) ;\n if ( map_uri_to_page_cache_file ( r , & context -> public_dir , path . data , path_last - path . data , & page_cache_file ) ) {\n return passenger_static_content_handler ( r , & page_cache_file ) ;\n }\n if ( slcf -> app_type . data == NULL ) {\n pp_error_init ( & error ) ;\n if ( slcf -> app_root . data == NULL ) {\n context -> app_type = pp_app_type_detector_check_document_root ( pp_app_type_detector , ( const char * ) context -> public_dir . data , context -> public_dir . len , context -> base_uri . len != 0 , & error ) ;\n }\n else {\n context -> app_type = pp_app_type_detector_check_app_root ( pp_app_type_detector , ( const char * ) slcf -> app_root . data , slcf -> app_root . len , & error ) ;\n }\n if ( context -> app_type == PAT_NONE ) {\n return NGX_DECLINED ;\n }\n else if ( context -> app_type == PAT_ERROR ) {\n if ( error . errnoCode == EACCES ) {\n ngx_log_error ( NGX_LOG_ALERT , r -> connection -> log , 0 , \"%s;\n This error means that the Nginx worker process (PID %d, \" \"running as UID %d) does not have permission to access this file. \" \"Please read the manual to learn how to fix this problem: \" \"section 'Troubleshooting' -> 'Upon accessing the web app, Nginx \" \"reports a \\\"Permission denied\\\" error';\n Extra info\" , error . message , ( int ) getpid ( ) , ( int ) getuid ( ) ) ;\n }\n else {\n ngx_log_error ( NGX_LOG_ALERT , r -> connection -> log , ( error . errnoCode == PP_NO_ERRNO ) ? 0 : error . errnoCode , \"%s\" , error . message ) ;\n }\n pp_error_destroy ( & error ) ;\n return NGX_HTTP_INTERNAL_SERVER_ERROR ;\n }\n }\n else {\n context -> app_type = pp_get_app_type2 ( ( const char * ) slcf -> app_type . data , slcf -> app_type . len ) ;\n if ( context -> app_type == PAT_NONE ) {\n return NGX_DECLINED ;\n }\n }\n if ( ngx_http_upstream_create ( r ) != NGX_OK ) {\n return NGX_HTTP_INTERNAL_SERVER_ERROR ;\n }\n u = r -> upstream ;\n u -> schema = pp_schema_string ;\n u -> output . tag = ( ngx_buf_tag_t ) & ngx_http_passenger_module ;\n set_upstream_server_address ( u , & slcf -> upstream_config ) ;\n u -> conf = & slcf -> upstream_config ;\n # if ( NGX_HTTP_CACHE ) u -> create_key = create_key ;\n # endif u -> create_request = create_request ;\n u -> reinit_request = reinit_request ;\n u -> process_header = process_status_line ;\n u -> abort_request = abort_request ;\n u -> finalize_request = finalize_request ;\n r -> state = 0 ;\n u -> buffering = slcf -> upstream_config . buffering ;\n u -> pipe = ngx_pcalloc ( r -> pool , sizeof ( ngx_event_pipe_t ) ) ;\n if ( u -> pipe == NULL ) {\n return NGX_HTTP_INTERNAL_SERVER_ERROR ;\n }\n u -> pipe -> input_filter = ngx_event_pipe_copy_input_filter ;\n u -> pipe -> input_ctx = r ;\n rc = ngx_http_read_client_request_body ( r , ngx_http_upstream_init ) ;\n fix_peer_address ( r ) ;\n if ( rc >= NGX_HTTP_SPECIAL_RESPONSE ) {\n return rc ;\n }\n return NGX_DONE ;\n }"}
{"idx": 17155, "target": 0, "func": "static void record_recent_commit ( struct commit * commit , void * data ) {\n sha1_array_append ( & recent_objects , commit -> object . oid . hash ) ;\n }"}
{"idx": 17156, "target": 0, "func": "static int SpoolssAddForm_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ;\n guint32 level ;\n proto_item * hidden_item ;\n hidden_item = proto_tree_add_uint ( tree , hf_form , tvb , offset , 0 , 1 ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , NULL , NULL , FALSE , FALSE ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_form_level , & level ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", level %d\" , level ) ;\n if ( ! pinfo -> fd -> flags . visited ) {\n dcv -> se_data = GUINT_TO_POINTER ( ( int ) level ) ;\n }\n offset = dissect_FORM_CTR ( tvb , offset , pinfo , tree , di , drep ) ;\n return offset ;\n }"}
{"idx": 17157, "target": 0, "func": "int append_warnings ( DYNAMIC_STRING * ds , MYSQL * mysql ) {\n uint count ;\n MYSQL_RES * warn_res ;\n DBUG_ENTER ( \"append_warnings\" ) ;\n if ( ! ( count = mysql_warning_count ( mysql ) ) ) DBUG_RETURN ( 0 ) ;\n DBUG_ASSERT ( ! mysql_more_results ( mysql ) ) ;\n if ( mysql_real_query ( mysql , \"SHOW WARNINGS\" , 13 ) ) die ( \"Error running query \\\"SHOW WARNINGS\\\": %s\" , mysql_error ( mysql ) ) ;\n if ( ! ( warn_res = mysql_store_result ( mysql ) ) ) die ( \"Warning count is %u but didn't get any warnings\" , count ) ;\n append_result ( ds , warn_res ) ;\n mysql_free_result ( warn_res ) ;\n DBUG_PRINT ( \"warnings\" , ( \"%s\" , ds -> str ) ) ;\n DBUG_RETURN ( count ) ;\n }"}
{"idx": 17158, "target": 1, "func": "void vp9_encode_sb ( MACROBLOCK * x , BLOCK_SIZE bsize ) {\n MACROBLOCKD * const xd = & x -> e_mbd ;\n struct optimize_ctx ctx ;\n MB_MODE_INFO * mbmi = & xd -> mi [ 0 ] -> mbmi ;\n struct encode_b_args arg = {\n x , & ctx , & mbmi -> skip }\n ;\n int plane ;\n for ( plane = 0 ;\n plane < MAX_MB_PLANE ;\n ++ plane ) {\n if ( ! x -> skip_recode ) vp9_subtract_plane ( x , bsize , plane ) ;\n if ( x -> optimize && ( ! x -> skip_recode || ! x -> skip_optimize ) ) {\n const struct macroblockd_plane * const pd = & xd -> plane [ plane ] ;\n const TX_SIZE tx_size = plane ? get_uv_tx_size ( mbmi , pd ) : mbmi -> tx_size ;\n vp9_get_entropy_contexts ( bsize , tx_size , pd , ctx . ta [ plane ] , ctx . tl [ plane ] ) ;\n }\n vp9_foreach_transformed_block_in_plane ( xd , bsize , plane , encode_block , & arg ) ;\n }\n }"}
{"idx": 17159, "target": 0, "func": "hb_bool_t hb_set_next ( const hb_set_t * set , hb_codepoint_t * codepoint ) {\n return set -> next ( codepoint ) ;\n }"}
{"idx": 17160, "target": 0, "func": "static int dns_stats_tree_packet ( stats_tree * st , packet_info * pinfo _U_ , epan_dissect_t * edt _U_ , const void * p ) {\n struct DnsTap * pi = ( struct DnsTap * ) p ;\n tick_stat_node ( st , st_str_packets , 0 , FALSE ) ;\n stats_tree_tick_pivot ( st , st_node_packet_qr , val_to_str ( pi -> packet_qr , dns_qr_vals , \"Unknown qr (%d)\" ) ) ;\n stats_tree_tick_pivot ( st , st_node_packet_qtypes , val_to_str ( pi -> packet_qtype , dns_types_description_vals , \"Unknown packet type (%d)\" ) ) ;\n stats_tree_tick_pivot ( st , st_node_packet_qclasses , val_to_str ( pi -> packet_qclass , dns_classes , \"Unknown class (%d)\" ) ) ;\n stats_tree_tick_pivot ( st , st_node_packet_rcodes , val_to_str ( pi -> packet_rcode , rcode_vals , \"Unknown rcode (%d)\" ) ) ;\n stats_tree_tick_pivot ( st , st_node_packet_opcodes , val_to_str ( pi -> packet_opcode , opcode_vals , \"Unknown opcode (%d)\" ) ) ;\n avg_stat_node_add_value ( st , st_str_packets_avg_size , 0 , FALSE , pi -> payload_size ) ;\n if ( pi -> packet_qr == 0 ) {\n avg_stat_node_add_value ( st , st_str_query_qname_len , 0 , FALSE , pi -> qname_len ) ;\n switch ( pi -> qname_labels ) {\n case 1 : tick_stat_node ( st , st_str_query_domains_l1 , 0 , FALSE ) ;\n break ;\n case 2 : tick_stat_node ( st , st_str_query_domains_l2 , 0 , FALSE ) ;\n break ;\n case 3 : tick_stat_node ( st , st_str_query_domains_l3 , 0 , FALSE ) ;\n break ;\n default : tick_stat_node ( st , st_str_query_domains_lmore , 0 , FALSE ) ;\n break ;\n }\n }\n else {\n avg_stat_node_add_value ( st , st_str_response_nquestions , 0 , FALSE , pi -> nquestions ) ;\n avg_stat_node_add_value ( st , st_str_response_nanswers , 0 , FALSE , pi -> nanswers ) ;\n avg_stat_node_add_value ( st , st_str_response_nauthorities , 0 , FALSE , pi -> nauthorities ) ;\n avg_stat_node_add_value ( st , st_str_response_nadditionals , 0 , FALSE , pi -> nadditionals ) ;\n }\n return 1 ;\n }"}
{"idx": 17161, "target": 0, "func": "int PEM_write_ ## name ( FILE * fp , type * x ) ;\n # define DECLARE_PEM_write_fp_const ( name , type ) int PEM_write_ ## name ( FILE * fp , const type * x ) ;\n # define DECLARE_PEM_write_cb_fp ( name , type ) int PEM_write_ ## name ( FILE * fp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # endif # define DECLARE_PEM_read_bio ( name , type ) type * PEM_read_bio_ ## name ( BIO * bp , type * * x , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL ) DECLARE_PEM_rw ( PKCS7 , PKCS7 ) DECLARE_PEM_rw ( NETSCAPE_CERT_SEQUENCE , NETSCAPE_CERT_SEQUENCE ) DECLARE_PEM_rw ( PKCS8 , X509_SIG ) DECLARE_PEM_rw ( PKCS8_PRIV_KEY_INFO , PKCS8_PRIV_KEY_INFO ) # ifndef OPENSSL_NO_RSA DECLARE_PEM_rw_cb ( RSAPrivateKey , RSA ) DECLARE_PEM_rw_const ( RSAPublicKey , RSA ) DECLARE_PEM_rw ( RSA_PUBKEY , RSA )"}
{"idx": 17162, "target": 0, "func": "static int is_hex ( const char * p , size_t len ) {\n while ( len -- > 0 ) {\n if ( ( * p >= '0' && * p <= '9' ) || ( * p >= 'a' && * p <= 'f' ) || ( * p >= 'A' && * p <= 'F' ) ) ++ p ;\n else return ( 0 ) ;\n }\n return ( 1 ) ;\n }"}
{"idx": 17163, "target": 1, "func": "int ImagingFliDecode ( Imaging im , ImagingCodecState state , UINT8 * buf , int bytes ) {\n UINT8 * ptr ;\n int framesize ;\n int c , chunks ;\n int l , lines ;\n int i , j , x = 0 , y , ymax ;\n if ( bytes < 4 ) return 0 ;\n ptr = buf ;\n framesize = I32 ( ptr ) ;\n if ( framesize < I32 ( ptr ) ) return 0 ;\n if ( I16 ( ptr + 4 ) != 0xF1FA ) {\n state -> errcode = IMAGING_CODEC_UNKNOWN ;\n return - 1 ;\n }\n chunks = I16 ( ptr + 6 ) ;\n ptr += 16 ;\n for ( c = 0 ;\n c < chunks ;\n c ++ ) {\n UINT8 * data = ptr + 6 ;\n switch ( I16 ( ptr + 4 ) ) {\n case 4 : case 11 : break ;\n case 7 : lines = I16 ( data ) ;\n data += 2 ;\n for ( l = y = 0 ;\n l < lines && y < state -> ysize ;\n l ++ , y ++ ) {\n UINT8 * buf = ( UINT8 * ) im -> image [ y ] ;\n int p , packets ;\n packets = I16 ( data ) ;\n data += 2 ;\n while ( packets & 0x8000 ) {\n if ( packets & 0x4000 ) {\n y += 65536 - packets ;\n if ( y >= state -> ysize ) {\n state -> errcode = IMAGING_CODEC_OVERRUN ;\n return - 1 ;\n }\n buf = ( UINT8 * ) im -> image [ y ] ;\n }\n else {\n buf [ state -> xsize - 1 ] = ( UINT8 ) packets ;\n }\n packets = I16 ( data ) ;\n data += 2 ;\n }\n for ( p = x = 0 ;\n p < packets ;\n p ++ ) {\n x += data [ 0 ] ;\n if ( data [ 1 ] >= 128 ) {\n i = 256 - data [ 1 ] ;\n if ( x + i + i > state -> xsize ) break ;\n for ( j = 0 ;\n j < i ;\n j ++ ) {\n buf [ x ++ ] = data [ 2 ] ;\n buf [ x ++ ] = data [ 3 ] ;\n }\n data += 2 + 2 ;\n }\n else {\n i = 2 * ( int ) data [ 1 ] ;\n if ( x + i > state -> xsize ) break ;\n memcpy ( buf + x , data + 2 , i ) ;\n data += 2 + i ;\n x += i ;\n }\n }\n if ( p < packets ) break ;\n }\n if ( l < lines ) {\n state -> errcode = IMAGING_CODEC_OVERRUN ;\n return - 1 ;\n }\n break ;\n case 12 : y = I16 ( data ) ;\n ymax = y + I16 ( data + 2 ) ;\n data += 4 ;\n for ( ;\n y < ymax && y < state -> ysize ;\n y ++ ) {\n UINT8 * out = ( UINT8 * ) im -> image [ y ] ;\n int p , packets = * data ++ ;\n for ( p = x = 0 ;\n p < packets ;\n p ++ , x += i ) {\n x += data [ 0 ] ;\n if ( data [ 1 ] & 0x80 ) {\n i = 256 - data [ 1 ] ;\n if ( x + i > state -> xsize ) break ;\n memset ( out + x , data [ 2 ] , i ) ;\n data += 3 ;\n }\n else {\n i = data [ 1 ] ;\n if ( x + i > state -> xsize ) break ;\n memcpy ( out + x , data + 2 , i ) ;\n data += i + 2 ;\n }\n }\n if ( p < packets ) break ;\n }\n if ( y < ymax ) {\n state -> errcode = IMAGING_CODEC_OVERRUN ;\n return - 1 ;\n }\n break ;\n case 13 : for ( y = 0 ;\n y < state -> ysize ;\n y ++ ) memset ( im -> image [ y ] , 0 , state -> xsize ) ;\n break ;\n case 15 : for ( y = 0 ;\n y < state -> ysize ;\n y ++ ) {\n UINT8 * out = ( UINT8 * ) im -> image [ y ] ;\n data += 1 ;\n for ( x = 0 ;\n x < state -> xsize ;\n x += i ) {\n if ( data [ 0 ] & 0x80 ) {\n i = 256 - data [ 0 ] ;\n if ( x + i > state -> xsize ) break ;\n memcpy ( out + x , data + 1 , i ) ;\n data += i + 1 ;\n }\n else {\n i = data [ 0 ] ;\n if ( x + i > state -> xsize ) break ;\n memset ( out + x , data [ 1 ] , i ) ;\n data += 2 ;\n }\n }\n if ( x != state -> xsize ) {\n state -> errcode = IMAGING_CODEC_OVERRUN ;\n return - 1 ;\n }\n }\n break ;\n case 16 : for ( y = 0 ;\n y < state -> ysize ;\n y ++ ) {\n UINT8 * buf = ( UINT8 * ) im -> image [ y ] ;\n memcpy ( buf + x , data , state -> xsize ) ;\n data += state -> xsize ;\n }\n break ;\n case 18 : break ;\n default : state -> errcode = IMAGING_CODEC_UNKNOWN ;\n return - 1 ;\n }\n ptr += I32 ( ptr ) ;\n }\n return - 1 ;\n }"}
{"idx": 17164, "target": 0, "func": "static void purple_remove_buddy ( struct im_connection * ic , char * who , char * group ) {\n PurpleBuddy * pb ;\n struct purple_data * pd = ic -> proto_data ;\n pb = purple_find_buddy ( pd -> account , who ) ;\n if ( pb != NULL ) {\n PurpleGroup * group ;\n group = purple_buddy_get_group ( pb ) ;\n purple_account_remove_buddy ( pd -> account , pb , group ) ;\n purple_blist_remove_buddy ( pb ) ;\n }\n purple_gg_buddylist_export ( pd -> account -> gc ) ;\n }"}
{"idx": 17165, "target": 0, "func": "bool mysql_drop_user ( THD * thd , List < LEX_USER > & list ) {\n int result ;\n String wrong_users ;\n LEX_USER * user_name , * tmp_user_name ;\n List_iterator < LEX_USER > user_list ( list ) ;\n TABLE_LIST tables [ GRANT_TABLES ] ;\n bool some_users_deleted = FALSE ;\n ulong old_sql_mode = thd -> variables . sql_mode ;\n bool save_binlog_row_based ;\n DBUG_ENTER ( \"mysql_drop_user\" ) ;\n save_binlog_row_based = thd -> current_stmt_binlog_row_based ;\n thd -> clear_current_stmt_binlog_row_based ( ) ;\n if ( ( result = open_grant_tables ( thd , tables ) ) ) {\n thd -> current_stmt_binlog_row_based = save_binlog_row_based ;\n DBUG_RETURN ( result != 1 ) ;\n }\n thd -> variables . sql_mode &= ~ MODE_PAD_CHAR_TO_FULL_LENGTH ;\n rw_wrlock ( & LOCK_grant ) ;\n VOID ( pthread_mutex_lock ( & acl_cache -> lock ) ) ;\n while ( ( tmp_user_name = user_list ++ ) ) {\n if ( ! ( user_name = get_current_user ( thd , tmp_user_name ) ) ) {\n result = TRUE ;\n continue ;\n }\n if ( handle_grant_data ( tables , 1 , user_name , NULL ) <= 0 ) {\n append_user ( & wrong_users , user_name ) ;\n result = TRUE ;\n continue ;\n }\n some_users_deleted = TRUE ;\n }\n rebuild_check_host ( ) ;\n VOID ( pthread_mutex_unlock ( & acl_cache -> lock ) ) ;\n if ( result ) my_error ( ER_CANNOT_USER , MYF ( 0 ) , \"DROP USER\" , wrong_users . c_ptr_safe ( ) ) ;\n if ( some_users_deleted ) result |= write_bin_log ( thd , FALSE , thd -> query ( ) , thd -> query_length ( ) ) ;\n rw_unlock ( & LOCK_grant ) ;\n close_thread_tables ( thd ) ;\n thd -> variables . sql_mode = old_sql_mode ;\n thd -> current_stmt_binlog_row_based = save_binlog_row_based ;\n DBUG_RETURN ( result ) ;\n }"}
{"idx": 17166, "target": 0, "func": "static void alloc_util_frame_buffers ( VP9_COMP * cpi ) {\n VP9_COMMON * const cm = & cpi -> common ;\n if ( vp9_realloc_frame_buffer ( & cpi -> last_frame_uf , cm -> width , cm -> height , cm -> subsampling_x , cm -> subsampling_y , # if CONFIG_VP9_HIGHBITDEPTH cm -> use_highbitdepth , # endif VP9_ENC_BORDER_IN_PIXELS , NULL , NULL , NULL ) ) vpx_internal_error ( & cm -> error , VPX_CODEC_MEM_ERROR , \"Failed to allocate last frame buffer\" ) ;\n if ( vp9_realloc_frame_buffer ( & cpi -> scaled_source , cm -> width , cm -> height , cm -> subsampling_x , cm -> subsampling_y , # if CONFIG_VP9_HIGHBITDEPTH cm -> use_highbitdepth , # endif VP9_ENC_BORDER_IN_PIXELS , NULL , NULL , NULL ) ) vpx_internal_error ( & cm -> error , VPX_CODEC_MEM_ERROR , \"Failed to allocate scaled source buffer\" ) ;\n if ( vp9_realloc_frame_buffer ( & cpi -> scaled_last_source , cm -> width , cm -> height , cm -> subsampling_x , cm -> subsampling_y , # if CONFIG_VP9_HIGHBITDEPTH cm -> use_highbitdepth , # endif VP9_ENC_BORDER_IN_PIXELS , NULL , NULL , NULL ) ) vpx_internal_error ( & cm -> error , VPX_CODEC_MEM_ERROR , \"Failed to allocate scaled last source buffer\" ) ;\n }"}
{"idx": 17167, "target": 0, "func": "void PNGAPI png_set_tIME ( png_structp png_ptr , png_infop info_ptr , png_timep mod_time ) {\n png_debug1 ( 1 , \"in %s storage function\" , \"tIME\" ) ;\n if ( png_ptr == NULL || info_ptr == NULL || ( png_ptr -> mode & PNG_WROTE_tIME ) ) return ;\n if ( mod_time -> month == 0 || mod_time -> month > 12 || mod_time -> day == 0 || mod_time -> day > 31 || mod_time -> hour > 23 || mod_time -> minute > 59 || mod_time -> second > 60 ) {\n png_warning ( png_ptr , \"Ignoring invalid time value\" ) ;\n return ;\n }\n png_memcpy ( & ( info_ptr -> mod_time ) , mod_time , png_sizeof ( png_time ) ) ;\n info_ptr -> valid |= PNG_INFO_tIME ;\n }"}
{"idx": 17168, "target": 0, "func": "int ff_h263_decode_mba ( MpegEncContext * s ) {\n int i , mb_pos ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( s -> mb_num - 1 <= ff_mba_max [ i ] ) break ;\n }\n mb_pos = get_bits ( & s -> gb , ff_mba_length [ i ] ) ;\n s -> mb_x = mb_pos % s -> mb_width ;\n s -> mb_y = mb_pos / s -> mb_width ;\n return mb_pos ;\n }"}
{"idx": 17169, "target": 0, "func": "static int _write_path_table ( struct archive_write * a , int type_m , int depth , struct vdd * vdd ) {\n unsigned char * bp , * wb ;\n struct isoent * * ptbl ;\n size_t wbremaining ;\n int i , r , wsize ;\n if ( vdd -> pathtbl [ depth ] . cnt == 0 ) return ( 0 ) ;\n wsize = 0 ;\n wb = wb_buffptr ( a ) ;\n wbremaining = wb_remaining ( a ) ;\n bp = wb - 1 ;\n ptbl = vdd -> pathtbl [ depth ] . sorted ;\n for ( i = 0 ;\n i < vdd -> pathtbl [ depth ] . cnt ;\n i ++ ) {\n struct isoent * np ;\n size_t len ;\n np = ptbl [ i ] ;\n if ( np -> identifier == NULL ) len = 1 ;\n else len = np -> id_len ;\n if ( wbremaining - ( ( bp + 1 ) - wb ) < ( len + 1 + 8 ) ) {\n r = wb_consume ( a , ( bp + 1 ) - wb ) ;\n if ( r < 0 ) return ( r ) ;\n wb = wb_buffptr ( a ) ;\n wbremaining = wb_remaining ( a ) ;\n bp = wb - 1 ;\n }\n set_num_711 ( bp + 1 , ( unsigned char ) len ) ;\n set_num_711 ( bp + 2 , 0 ) ;\n if ( type_m ) set_num_732 ( bp + 3 , np -> dir_location ) ;\n else set_num_731 ( bp + 3 , np -> dir_location ) ;\n if ( type_m ) set_num_722 ( bp + 7 , np -> parent -> dir_number ) ;\n else set_num_721 ( bp + 7 , np -> parent -> dir_number ) ;\n if ( np -> identifier == NULL ) bp [ 9 ] = 0 ;\n else memcpy ( & bp [ 9 ] , np -> identifier , len ) ;\n if ( len & 0x01 ) {\n bp [ 9 + len ] = 0 ;\n len ++ ;\n }\n wsize += 8 + ( int ) len ;\n bp += 8 + len ;\n }\n if ( ( bp + 1 ) > wb ) {\n r = wb_consume ( a , ( bp + 1 ) - wb ) ;\n if ( r < 0 ) return ( r ) ;\n }\n return ( wsize ) ;\n }"}
{"idx": 17170, "target": 0, "func": "char * xmlrpc_integer ( char * buf , int value ) {\n * buf = '\\0' ;\n if ( ! xmlrpc . inttagstart || ! xmlrpc . inttagend ) {\n snprintf ( buf , XMLRPC_BUFSIZE , \"<i4>%d</i4>\" , value ) ;\n }\n else {\n snprintf ( buf , XMLRPC_BUFSIZE , \"%s%d%s\" , xmlrpc . inttagstart , value , xmlrpc . inttagend ) ;\n free ( xmlrpc . inttagstart ) ;\n if ( xmlrpc . inttagend ) {\n free ( xmlrpc . inttagend ) ;\n xmlrpc . inttagend = NULL ;\n }\n xmlrpc . inttagstart = NULL ;\n }\n return buf ;\n }"}
{"idx": 17171, "target": 0, "func": "static const char * cmd_geo_lookup_db ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n const char * filename = resolve_relative_path ( cmd -> pool , cmd -> directive -> filename , p1 ) ;\n char * error_msg ;\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n if ( dcfg == NULL ) return NULL ;\n if ( geo_init ( dcfg , filename , & error_msg ) <= 0 ) {\n return error_msg ;\n }\n return NULL ;\n }"}
{"idx": 17172, "target": 0, "func": "void proto_register_amf ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_amf_version , {\n \"AMF version\" , \"amf.version\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_amf_header_count , {\n \"Header count\" , \"amf.header_count\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_amf_header_name , {\n \"Name\" , \"amf.header.name\" , FT_UINT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_amf_header_must_understand , {\n \"Must understand\" , \"amf.header.must_understand\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_amf_header_length , {\n \"Length\" , \"amf.header.length\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , # if 0 {\n & hf_amf_header_value_type , {\n \"Value type\" , \"amf.header.value_type\" , FT_UINT32 , BASE_HEX , VALS ( rtmpt_type_vals ) , 0x0 , NULL , HFILL }\n }\n , # endif {\n & hf_amf_message_count , {\n \"Message count\" , \"amf.message_count\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_amf_message_target_uri , {\n \"Target URI\" , \"amf.message.target_uri\" , FT_UINT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_amf_message_response_uri , {\n \"Response URI\" , \"amf.message.response_uri\" , FT_UINT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_amf_message_length , {\n \"Length\" , \"amf.message.length\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_amf_amf0_type , {\n \"AMF0 type\" , \"amf.amf0_type\" , FT_UINT8 , BASE_HEX , VALS ( amf0_type_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_amf_amf3_type , {\n \"AMF3 type\" , \"amf.amf3_type\" , FT_UINT8 , BASE_HEX , VALS ( amf3_type_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_amf_number , {\n \"Number\" , \"amf.number\" , FT_DOUBLE , BASE_NONE , NULL , 0x0 , \"AMF number\" , HFILL }\n }\n , {\n & hf_amf_integer , {\n \"Integer\" , \"amf.integer\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"RTMPT AMF3 integer\" , HFILL }\n }\n , {\n & hf_amf_boolean , {\n \"Boolean\" , \"amf.boolean\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , \"AMF boolean\" , HFILL }\n }\n , {\n & hf_amf_stringlength , {\n \"String length\" , \"amf.stringlength\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"AMF string length\" , HFILL }\n }\n , {\n & hf_amf_string , {\n \"String\" , \"amf.string\" , FT_STRING , BASE_NONE , NULL , 0x0 , \"AMF string\" , HFILL }\n }\n , {\n & hf_amf_string_reference , {\n \"String reference\" , \"amf.string_reference\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"RTMPT AMF3 string reference\" , HFILL }\n }\n , {\n & hf_amf_object_reference , {\n \"Object reference\" , \"amf.object_reference\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"AMF object reference\" , HFILL }\n }\n , {\n & hf_amf_date , {\n \"Date\" , \"amf.date\" , FT_ABSOLUTE_TIME , ABSOLUTE_TIME_LOCAL , NULL , 0x0 , \"AMF date\" , HFILL }\n }\n , # if 0 {\n & hf_amf_longstringlength , {\n \"String length\" , \"amf.longstringlength\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"AMF long string length\" , HFILL }\n }\n , # endif {\n & hf_amf_longstring , {\n \"Long string\" , \"amf.longstring\" , FT_STRING , BASE_NONE , NULL , 0x0 , \"AMF long string\" , HFILL }\n }\n , {\n & hf_amf_xml_doc , {\n \"XML document\" , \"amf.xml_doc\" , FT_STRING , BASE_NONE , NULL , 0x0 , \"AMF XML document\" , HFILL }\n }\n , {\n & hf_amf_xmllength , {\n \"XML text length\" , \"amf.xmllength\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"AMF E4X XML length\" , HFILL }\n }\n , {\n & hf_amf_xml , {\n \"XML\" , \"amf.xml\" , FT_STRING , BASE_NONE , NULL , 0x0 , \"AMF E4X XML\" , HFILL }\n }\n , {\n & hf_amf_int64 , {\n \"Int64\" , \"amf.int64\" , FT_INT64 , BASE_DEC , NULL , 0x0 , \"AMF int64\" , HFILL }\n }\n , {\n & hf_amf_bytearraylength , {\n \"ByteArray length\" , \"amf.bytearraylength\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"RTMPT AMF3 ByteArray length\" , HFILL }\n }\n , {\n & hf_amf_bytearray , {\n \"ByteArray\" , \"amf.bytearray\" , FT_BYTES , BASE_NONE , NULL , 0x0 , \"RTMPT AMF3 ByteArray\" , HFILL }\n }\n , {\n & hf_amf_object , {\n \"Object\" , \"amf.object\" , FT_NONE , BASE_NONE , NULL , 0x0 , \"AMF object\" , HFILL }\n }\n , {\n & hf_amf_traitcount , {\n \"Trait count\" , \"amf.traitcount\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"AMF count of traits for an object\" , HFILL }\n }\n , {\n & hf_amf_classnamelength , {\n \"Class name length\" , \"amf.classnamelength\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"AMF class name length\" , HFILL }\n }\n , {\n & hf_amf_classname , {\n \"Class name\" , \"amf.classname\" , FT_STRING , BASE_NONE , NULL , 0x0 , \"AMF class name\" , HFILL }\n }\n , {\n & hf_amf_membernamelength , {\n \"Member name length\" , \"amf.membernamelength\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"AMF member name length\" , HFILL }\n }\n , {\n & hf_amf_membername , {\n \"Member name\" , \"amf.membername\" , FT_STRING , BASE_NONE , NULL , 0x0 , \"AMF member name\" , HFILL }\n }\n , {\n & hf_amf_trait_reference , {\n \"Trait reference\" , \"amf.trait_reference\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"AMF trait reference\" , HFILL }\n }\n , {\n & hf_amf_ecmaarray , {\n \"ECMA array\" , \"amf.ecmaarray\" , FT_NONE , BASE_NONE , NULL , 0x0 , \"AMF ECMA array\" , HFILL }\n }\n , {\n & hf_amf_strictarray , {\n \"Strict array\" , \"amf.strictarray\" , FT_NONE , BASE_NONE , NULL , 0x0 , \"AMF strict array\" , HFILL }\n }\n , {\n & hf_amf_array , {\n \"Array\" , \"amf.array\" , FT_NONE , BASE_NONE , NULL , 0x0 , \"RTMPT AMF3 array\" , HFILL }\n }\n , {\n & hf_amf_arraylength , {\n \"Array length\" , \"amf.arraylength\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"AMF array length\" , HFILL }\n }\n , {\n & hf_amf_arraydenselength , {\n \"Length of dense portion\" , \"amf.arraydenselength\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"AMF length of dense portion of array\" , HFILL }\n }\n , {\n & hf_amf_end_of_object_marker , {\n \"End Of Object Marker\" , \"amf.end_of_object_marker\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_amf_end_of_associative_part , {\n \"End of associative part\" , \"amf.end_of_associative_part\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_amf_end_of_dynamic_members , {\n \"End Of dynamic members\" , \"amf.end_of_dynamic_members\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , }\n ;\n static gint * ett [ ] = {\n & ett_amf , & ett_amf_headers , & ett_amf_messages , & ett_amf_value , & ett_amf_property , & ett_amf_string , & ett_amf_array_element , & ett_amf_traits , & ett_amf_trait_member , }\n ;\n proto_amf = proto_register_protocol ( \"Action Message Format\" , \"AMF\" , \"amf\" ) ;\n proto_register_field_array ( proto_amf , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n }"}
{"idx": 17173, "target": 0, "func": "static int evaluate_tpr_instruction ( VAPICROMState * s , CPUX86State * env , target_ulong * pip , TPRAccess access ) {\n const TPRInstruction * instr ;\n target_ulong ip = * pip ;\n uint8_t opcode [ 2 ] ;\n uint32_t real_tpr_addr ;\n int i ;\n if ( ( ip & 0xf0000000ULL ) != 0x80000000ULL && ( ip & 0xf0000000ULL ) != 0xe0000000ULL ) {\n return - 1 ;\n }\n if ( env -> regs [ R_ESP ] == 0 ) {\n return - 1 ;\n }\n if ( kvm_enabled ( ) && ! kvm_irqchip_in_kernel ( ) ) {\n for ( i = 0 ;\n i < ARRAY_SIZE ( tpr_instr ) ;\n i ++ ) {\n instr = & tpr_instr [ i ] ;\n if ( instr -> access != access ) {\n continue ;\n }\n if ( cpu_memory_rw_debug ( env , ip - instr -> length , opcode , sizeof ( opcode ) , 0 ) < 0 ) {\n return - 1 ;\n }\n if ( opcode_matches ( opcode , instr ) ) {\n ip -= instr -> length ;\n goto instruction_ok ;\n }\n }\n return - 1 ;\n }\n else {\n if ( cpu_memory_rw_debug ( env , ip , opcode , sizeof ( opcode ) , 0 ) < 0 ) {\n return - 1 ;\n }\n for ( i = 0 ;\n i < ARRAY_SIZE ( tpr_instr ) ;\n i ++ ) {\n instr = & tpr_instr [ i ] ;\n if ( opcode_matches ( opcode , instr ) ) {\n goto instruction_ok ;\n }\n }\n return - 1 ;\n }\n instruction_ok : if ( cpu_memory_rw_debug ( env , ip + instr -> addr_offset , ( void * ) & real_tpr_addr , sizeof ( real_tpr_addr ) , 0 ) < 0 ) {\n return - 1 ;\n }\n real_tpr_addr = le32_to_cpu ( real_tpr_addr ) ;\n if ( ( real_tpr_addr & 0xfff ) != 0x80 ) {\n return - 1 ;\n }\n s -> real_tpr_addr = real_tpr_addr ;\n update_guest_rom_state ( s ) ;\n * pip = ip ;\n return 0 ;\n }"}
{"idx": 17174, "target": 0, "func": "void evhttp_connection_set_local_port ( struct evhttp_connection * evcon , unsigned short port ) {\n assert ( evcon -> state == EVCON_DISCONNECTED ) ;\n evcon -> bind_port = port ;\n }"}
{"idx": 17175, "target": 0, "func": "int dissect_h245_H223LogicalChannelParameters ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_H223LogicalChannelParameters , H223LogicalChannelParameters_sequence ) ;\n return offset ;\n }"}
{"idx": 17176, "target": 0, "func": "void jpc_enc_dump ( jpc_enc_t * enc ) {\n jpc_enc_tile_t * tile ;\n jpc_enc_tcmpt_t * tcmpt ;\n jpc_enc_rlvl_t * rlvl ;\n jpc_enc_band_t * band ;\n jpc_enc_prc_t * prc ;\n jpc_enc_cblk_t * cblk ;\n uint_fast16_t cmptno ;\n uint_fast16_t rlvlno ;\n uint_fast16_t bandno ;\n uint_fast32_t prcno ;\n uint_fast32_t cblkno ;\n tile = enc -> curtile ;\n for ( cmptno = 0 , tcmpt = tile -> tcmpts ;\n cmptno < tile -> numtcmpts ;\n ++ cmptno , ++ tcmpt ) {\n jas_eprintf ( \" tcmpt %5d %5d %5d %5d\\n\" , jas_seq2d_xstart ( tcmpt -> data ) , jas_seq2d_ystart ( tcmpt -> data ) , jas_seq2d_xend ( tcmpt -> data ) , jas_seq2d_yend ( tcmpt -> data ) ) ;\n for ( rlvlno = 0 , rlvl = tcmpt -> rlvls ;\n rlvlno < tcmpt -> numrlvls ;\n ++ rlvlno , ++ rlvl ) {\n jas_eprintf ( \" rlvl %5d %5d %5d %5d\\n\" , rlvl -> tlx , rlvl -> tly , rlvl -> brx , rlvl -> bry ) ;\n for ( bandno = 0 , band = rlvl -> bands ;\n bandno < rlvl -> numbands ;\n ++ bandno , ++ band ) {\n if ( ! band -> data ) {\n continue ;\n }\n jas_eprintf ( \" band %5d %5d %5d %5d\\n\" , jas_seq2d_xstart ( band -> data ) , jas_seq2d_ystart ( band -> data ) , jas_seq2d_xend ( band -> data ) , jas_seq2d_yend ( band -> data ) ) ;\n for ( prcno = 0 , prc = band -> prcs ;\n prcno < rlvl -> numprcs ;\n ++ prcno , ++ prc ) {\n jas_eprintf ( \" prc %5d %5d %5d %5d (%5d %5d)\\n\" , prc -> tlx , prc -> tly , prc -> brx , prc -> bry , prc -> brx - prc -> tlx , prc -> bry - prc -> tly ) ;\n if ( ! prc -> cblks ) {\n continue ;\n }\n for ( cblkno = 0 , cblk = prc -> cblks ;\n cblkno < prc -> numcblks ;\n ++ cblkno , ++ cblk ) {\n jas_eprintf ( \" cblk %5d %5d %5d %5d\\n\" , jas_seq2d_xstart ( cblk -> data ) , jas_seq2d_ystart ( cblk -> data ) , jas_seq2d_xend ( cblk -> data ) , jas_seq2d_yend ( cblk -> data ) ) ;\n }\n }\n }\n }\n }\n }"}
{"idx": 17177, "target": 0, "func": "static int GetNextRange ( char * * SrcRangeStr , off_t * FirstByte , off_t * LastByte ) {\n char * Ptr ;\n char * Tok ;\n int i ;\n int64_t F = - 1 ;\n int64_t L = - 1 ;\n int Is_Suffix_byte_Range = 1 ;\n if ( * SrcRangeStr == NULL ) return - 1 ;\n Tok = StrTok ( SrcRangeStr , \",\" ) ;\n if ( ( Ptr = strstr ( Tok , \"-\" ) ) == NULL ) return - 1 ;\n * Ptr = ' ' ;\n sscanf ( Tok , \"%\" SCNd64 \"%\" SCNd64 , & F , & L ) ;\n if ( F == - 1 || L == - 1 ) {\n * Ptr = '-' ;\n for ( i = 0 ;\n i < ( int ) strlen ( Tok ) ;\n i ++ ) {\n if ( Tok [ i ] == '-' ) {\n break ;\n }\n else if ( isdigit ( Tok [ i ] ) ) {\n Is_Suffix_byte_Range = 0 ;\n break ;\n }\n }\n if ( Is_Suffix_byte_Range ) {\n * FirstByte = ( off_t ) L ;\n * LastByte = ( off_t ) F ;\n return 1 ;\n }\n }\n * FirstByte = ( off_t ) F ;\n * LastByte = ( off_t ) L ;\n return 1 ;\n }"}
{"idx": 17178, "target": 0, "func": "static void pdf_run_BMC ( fz_context * ctx , pdf_processor * proc , const char * tag ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n if ( ! tag ) tag = \"UnnamedLayer\" ;\n fz_begin_layer ( ctx , pr -> dev , tag ) ;\n }"}
{"idx": 17179, "target": 1, "func": "static const char * _UTF16BEGetName ( const UConverter * cnv ) {\n if ( UCNV_GET_VERSION ( cnv ) == 0 ) {\n return \"UTF-16BE\" ;\n }\n else {\n return \"UTF-16BE,version=1\" ;\n }\n }"}
{"idx": 17180, "target": 0, "func": "int event_base_set ( struct event_base * base , struct event * ev ) {\n if ( ev -> ev_flags != EVLIST_INIT ) return ( - 1 ) ;\n ev -> ev_base = base ;\n ev -> ev_pri = base -> nactivequeues / 2 ;\n return ( 0 ) ;\n }"}
{"idx": 17181, "target": 0, "func": "static void xps_parse_poly_line_segment ( fz_context * doc , fz_path * path , fz_xml * root , int stroking , int * skipped_stroke ) {\n char * points_att = fz_xml_att ( root , \"Points\" ) ;\n char * is_stroked_att = fz_xml_att ( root , \"IsStroked\" ) ;\n int is_stroked ;\n float x , y ;\n char * s ;\n if ( ! points_att ) {\n fz_warn ( doc , \"PolyLineSegment element has no points\" ) ;\n return ;\n }\n is_stroked = 1 ;\n if ( is_stroked_att && ! strcmp ( is_stroked_att , \"false\" ) ) is_stroked = 0 ;\n if ( ! is_stroked ) * skipped_stroke = 1 ;\n s = points_att ;\n while ( * s != 0 ) {\n while ( * s == ' ' ) s ++ ;\n s = xps_parse_point ( s , & x , & y ) ;\n if ( stroking && ! is_stroked ) fz_moveto ( doc , path , x , y ) ;\n else fz_lineto ( doc , path , x , y ) ;\n }\n }"}
{"idx": 17182, "target": 0, "func": "static int dissect_h245_RedundancyEncodingCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_RedundancyEncodingCapability , RedundancyEncodingCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 17183, "target": 0, "func": "static int key_notify_policy ( struct xfrm_policy * xp , int dir , const struct km_event * c ) {\n struct sk_buff * out_skb ;\n struct sadb_msg * out_hdr ;\n int err ;\n out_skb = pfkey_xfrm_policy2msg_prep ( xp ) ;\n if ( IS_ERR ( out_skb ) ) return PTR_ERR ( out_skb ) ;\n err = pfkey_xfrm_policy2msg ( out_skb , xp , dir ) ;\n if ( err < 0 ) return err ;\n out_hdr = ( struct sadb_msg * ) out_skb -> data ;\n out_hdr -> sadb_msg_version = PF_KEY_V2 ;\n if ( c -> data . byid && c -> event == XFRM_MSG_DELPOLICY ) out_hdr -> sadb_msg_type = SADB_X_SPDDELETE2 ;\n else out_hdr -> sadb_msg_type = event2poltype ( c -> event ) ;\n out_hdr -> sadb_msg_errno = 0 ;\n out_hdr -> sadb_msg_seq = c -> seq ;\n out_hdr -> sadb_msg_pid = c -> portid ;\n pfkey_broadcast ( out_skb , GFP_ATOMIC , BROADCAST_ALL , NULL , xp_net ( xp ) ) ;\n return 0 ;\n }"}
{"idx": 17184, "target": 0, "func": "static Expr * evaluate_expr ( Expr * expr , Oid result_type , int32 result_typmod , Oid result_collation ) {\n EState * estate ;\n ExprState * exprstate ;\n MemoryContext oldcontext ;\n Datum const_val ;\n bool const_is_null ;\n int16 resultTypLen ;\n bool resultTypByVal ;\n estate = CreateExecutorState ( ) ;\n oldcontext = MemoryContextSwitchTo ( estate -> es_query_cxt ) ;\n fix_opfuncids ( ( Node * ) expr ) ;\n exprstate = ExecInitExpr ( expr , NULL ) ;\n const_val = ExecEvalExprSwitchContext ( exprstate , GetPerTupleExprContext ( estate ) , & const_is_null , NULL ) ;\n get_typlenbyval ( result_type , & resultTypLen , & resultTypByVal ) ;\n MemoryContextSwitchTo ( oldcontext ) ;\n if ( ! const_is_null ) {\n if ( resultTypLen == - 1 ) const_val = PointerGetDatum ( PG_DETOAST_DATUM_COPY ( const_val ) ) ;\n else const_val = datumCopy ( const_val , resultTypByVal , resultTypLen ) ;\n }\n FreeExecutorState ( estate ) ;\n return ( Expr * ) makeConst ( result_type , result_typmod , result_collation , resultTypLen , const_val , const_is_null , resultTypByVal ) ;\n }"}
{"idx": 17185, "target": 0, "func": "static void evsignal_cb ( int fd , short what , void * arg ) {\n static char signals [ 1 ] ;\n # ifdef WIN32 SSIZE_T n ;\n # else ssize_t n ;\n # endif n = recv ( fd , signals , sizeof ( signals ) , 0 ) ;\n if ( n == - 1 ) {\n int err = EVUTIL_SOCKET_ERROR ( ) ;\n if ( ! error_is_eagain ( err ) ) event_err ( 1 , \"%s: read\" , __func__ ) ;\n }\n }"}
{"idx": 17186, "target": 0, "func": "TEST_F ( TemplateURLTest , ReplaceCursorPosition ) {\n struct TestData {\n const base : : string16 search_term ;\n size_t cursor_position ;\n const std : : string url ;\n const std : : string expected_result ;\n }\n test_data [ ] = {\n {\n ASCIIToUTF16 ( \"foo\" ) , base : : string16 : : npos , \"{\ngoogle:baseURL}\n?{\nsearchTerms}\n&{\ngoogle:cursorPosition}\n\" , \"http://www.google.com/?foo&\" }\n , {\n ASCIIToUTF16 ( \"foo\" ) , 2 , \"{\ngoogle:baseURL}\n?{\nsearchTerms}\n&{\ngoogle:cursorPosition}\n\" , \"http://www.google.com/?foo&cp=2&\" }\n , {\n ASCIIToUTF16 ( \"foo\" ) , 15 , \"{\ngoogle:baseURL}\n?{\nsearchTerms}\n&{\ngoogle:cursorPosition}\n\" , \"http://www.google.com/?foo&cp=15&\" }\n , }\n ;\n TemplateURLData data ;\n data . input_encodings . push_back ( \"UTF-8\" ) ;\n for ( size_t i = 0 ;\n i < arraysize ( test_data ) ;\n ++ i ) {\n data . SetURL ( test_data [ i ] . url ) ;\n TemplateURL url ( data ) ;\n EXPECT_TRUE ( url . url_ref ( ) . IsValid ( search_terms_data_ ) ) ;\n ASSERT_TRUE ( url . url_ref ( ) . SupportsReplacement ( search_terms_data_ ) ) ;\n TemplateURLRef : : SearchTermsArgs search_terms_args ( test_data [ i ] . search_term ) ;\n search_terms_args . cursor_position = test_data [ i ] . cursor_position ;\n GURL result ( url . url_ref ( ) . ReplaceSearchTerms ( search_terms_args , search_terms_data_ ) ) ;\n ASSERT_TRUE ( result . is_valid ( ) ) ;\n EXPECT_EQ ( test_data [ i ] . expected_result , result . spec ( ) ) ;\n }\n }"}
{"idx": 17187, "target": 1, "func": "static void test_read_format_mtree1 ( void ) {\n const char reffile [ ] = \"test_read_format_mtree.mtree\" ;\n char buff [ 16 ] ;\n struct archive_entry * ae ;\n struct archive * a ;\n FILE * f ;\n static const long long max_int64 = ( ( ( ( long long ) 1 ) << 62 ) - 1 ) + ( ( ( long long ) 1 ) << 62 ) ;\n time_t min_time ;\n volatile time_t t ;\n extract_reference_file ( reffile ) ;\n assertMakeDir ( \"dir\" , 0775 ) ;\n assertMakeDir ( \"dir2\" , 0775 ) ;\n assert ( ( a = archive_read_new ( ) ) != NULL ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_support_filter_all ( a ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_support_format_all ( a ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_set_options ( a , \"mtree:checkfs\" ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_open_filename ( a , reffile , 11 ) ) ;\n f = fopen ( \"file\" , \"wb\" ) ;\n assert ( f != NULL ) ;\n assertEqualInt ( 3 , fwrite ( \"hi\\n\" , 1 , 3 , f ) ) ;\n fclose ( f ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualInt ( archive_format ( a ) , ARCHIVE_FORMAT_MTREE ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"file\" ) ;\n assertEqualInt ( archive_entry_uid ( ae ) , 18 ) ;\n assertEqualInt ( AE_IFREG , archive_entry_filetype ( ae ) ) ;\n assertEqualInt ( archive_entry_mode ( ae ) , AE_IFREG | 0123 ) ;\n assertEqualInt ( archive_entry_size ( ae ) , 3 ) ;\n assertEqualInt ( 3 , archive_read_data ( a , buff , 3 ) ) ;\n assertEqualMem ( buff , \"hi\\n\" , 3 ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir\" ) ;\n assertEqualInt ( AE_IFDIR , archive_entry_filetype ( ae ) ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir/file with space\" ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"file with space\" ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2\" ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2/dir3a\" ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2/dir3a/indir3a\" ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2/fullindir2\" ) ;\n assertEqualInt ( archive_entry_mode ( ae ) , AE_IFREG | 0644 ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2/indir2\" ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2/dir3b\" ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2/dir3b/indir3b\" ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"notindir\" ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2/emptyfile\" ) ;\n assertEqualInt ( archive_entry_size ( ae ) , 0 ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2/smallfile\" ) ;\n assertEqualInt ( archive_entry_size ( ae ) , 1 ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2/toosmallfile\" ) ;\n assertEqualInt ( archive_entry_size ( ae ) , - 1 ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2/bigfile\" ) ;\n assertEqualInt ( archive_entry_size ( ae ) , max_int64 ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2/toobigfile\" ) ;\n assertEqualInt ( archive_entry_size ( ae ) , max_int64 ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2/veryoldfile\" ) ;\n min_time = archive_entry_mtime ( ae ) ;\n assert ( min_time <= 0 ) ;\n t = min_time - 1 ;\n assert ( t > 0 ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2/toooldfile\" ) ;\n assertEqualInt ( archive_entry_mtime ( ae ) , min_time ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_EOF , archive_read_next_header ( a , & ae ) ) ;\n assertEqualInt ( 19 , archive_file_count ( a ) ) ;\n assertEqualInt ( ARCHIVE_OK , archive_read_close ( a ) ) ;\n assertEqualInt ( ARCHIVE_OK , archive_read_free ( a ) ) ;\n }"}
{"idx": 17188, "target": 1, "func": "void simplestring_addn ( simplestring * target , const char * source , int add_len ) {\n if ( target && source ) {\n if ( ! target -> str ) {\n simplestring_init_str ( target ) ;\n }\n if ( target -> len + add_len + 1 > target -> size ) {\n int newsize = target -> len + add_len + 1 ;\n int incr = target -> size * 2 ;\n newsize = newsize - ( newsize % incr ) + incr ;\n target -> str = ( char * ) realloc ( target -> str , newsize ) ;\n target -> size = target -> str ? newsize : 0 ;\n }\n if ( target -> str ) {\n if ( add_len ) {\n memcpy ( target -> str + target -> len , source , add_len ) ;\n }\n target -> len += add_len ;\n target -> str [ target -> len ] = 0 ;\n }\n }\n }"}
{"idx": 17189, "target": 0, "func": "static inline void pfkey_exit_proc ( struct net * net ) {\n }"}
{"idx": 17190, "target": 0, "func": "TEST_F ( NotificationConversionHelperTest , NotificationToNotificationOptions ) {\n scoped_ptr < Notification > notification1 = CreateNotification ( message_center : : NOTIFICATION_TYPE_IMAGE ) ;\n scoped_ptr < extensions : : api : : notifications : : NotificationOptions > options1 ( new extensions : : api : : notifications : : NotificationOptions ( ) ) ;\n NotificationConversionHelper : : NotificationToNotificationOptions ( * ( notification1 ) , options1 . get ( ) ) ;\n EXPECT_EQ ( options1 -> type , extensions : : api : : notifications : : TEMPLATE_TYPE_IMAGE ) ;\n EXPECT_EQ ( * ( options1 -> title ) , \"Title\" ) ;\n EXPECT_EQ ( * ( options1 -> message ) , \"This is a message.\" ) ;\n EXPECT_EQ ( * ( options1 -> priority ) , 1 ) ;\n EXPECT_EQ ( * ( options1 -> context_message ) , \"I am a context message.\" ) ;\n EXPECT_FALSE ( * ( options1 -> is_clickable ) ) ;\n EXPECT_EQ ( * ( options1 -> event_time ) , 12345678.9 ) ;\n EXPECT_EQ ( options1 -> buttons -> at ( 0 ) -> title , \"Button 1\" ) ;\n EXPECT_EQ ( options1 -> buttons -> at ( 1 ) -> title , \"Button 2\" ) ;\n EXPECT_EQ ( options1 -> icon_bitmap -> width , 1 ) ;\n EXPECT_EQ ( options1 -> icon_bitmap -> height , 1 ) ;\n scoped_ptr < Notification > notification2 = CreateNotification ( message_center : : NOTIFICATION_TYPE_PROGRESS ) ;\n scoped_ptr < extensions : : api : : notifications : : NotificationOptions > options2 ( new extensions : : api : : notifications : : NotificationOptions ( ) ) ;\n NotificationConversionHelper : : NotificationToNotificationOptions ( * ( notification2 ) , options2 . get ( ) ) ;\n EXPECT_EQ ( options2 -> type , extensions : : api : : notifications : : TEMPLATE_TYPE_PROGRESS ) ;\n EXPECT_EQ ( * ( options2 -> progress ) , 50 ) ;\n scoped_ptr < Notification > notification3 = CreateNotification ( message_center : : NOTIFICATION_TYPE_MULTIPLE ) ;\n scoped_ptr < extensions : : api : : notifications : : NotificationOptions > options3 ( new extensions : : api : : notifications : : NotificationOptions ( ) ) ;\n NotificationConversionHelper : : NotificationToNotificationOptions ( * ( notification3 ) , options3 . get ( ) ) ;\n EXPECT_EQ ( options3 -> type , extensions : : api : : notifications : : TEMPLATE_TYPE_LIST ) ;\n EXPECT_EQ ( options3 -> items -> at ( 0 ) -> title , \"Item 1 Title\" ) ;\n EXPECT_EQ ( options3 -> items -> at ( 0 ) -> message , \"Item 1 Message\" ) ;\n EXPECT_EQ ( options3 -> items -> at ( 1 ) -> title , \"Item 2 Title\" ) ;\n EXPECT_EQ ( options3 -> items -> at ( 1 ) -> message , \"Item 2 Message\" ) ;\n }"}
{"idx": 17191, "target": 0, "func": "static void release_mpi_array ( gcry_mpi_t * array ) {\n for ( ;\n * array ;\n array ++ ) {\n mpi_free ( * array ) ;\n * array = NULL ;\n }\n }"}
{"idx": 17192, "target": 0, "func": "static void set_active_map ( const vpx_codec_enc_cfg_t * cfg , vpx_codec_ctx_t * codec ) {\n unsigned int i ;\n vpx_active_map_t map = {\n 0 , 0 , 0 }\n ;\n map . rows = ( cfg -> g_h + 15 ) / 16 ;\n map . cols = ( cfg -> g_w + 15 ) / 16 ;\n map . active_map = ( uint8_t * ) malloc ( map . rows * map . cols ) ;\n for ( i = 0 ;\n i < map . rows * map . cols ;\n ++ i ) map . active_map [ i ] = i % 2 ;\n if ( vpx_codec_control ( codec , VP8E_SET_ACTIVEMAP , & map ) ) die_codec ( codec , \"Failed to set active map\" ) ;\n free ( map . active_map ) ;\n }"}
{"idx": 17193, "target": 0, "func": "TEST_F ( HistoryQuickProviderTest , EncodingLimitMatch ) {\n std : : vector < std : : string > expected_urls ;\n std : : string url ( \"http://cda.com/Dogs%20Cats%20Gorillas%20Sea%20Slugs%20and%20Mice\" ) ;\n RunTest ( ASCIIToUTF16 ( \"ice\" ) , false , expected_urls , false , ASCIIToUTF16 ( \"cda.com/Dogs Cats Gorillas Sea Slugs and Mice\" ) , base : : string16 ( ) ) ;\n expected_urls . push_back ( url ) ;\n RunTest ( ASCIIToUTF16 ( \"Mice\" ) , false , expected_urls , false , ASCIIToUTF16 ( \"cda.com/Dogs Cats Gorillas Sea Slugs and Mice\" ) , base : : string16 ( ) ) ;\n ACMatchClassifications content ( ac_matches_ [ 0 ] . contents_class ) ;\n const size_t max_offset = url . length ( ) - ( ( 6 * 2 ) + 7 ) ;\n for ( ACMatchClassifications : : const_iterator citer = content . begin ( ) ;\n citer != content . end ( ) ;\n ++ citer ) EXPECT_LT ( citer -> offset , max_offset ) ;\n ACMatchClassifications description ( ac_matches_ [ 0 ] . description_class ) ;\n std : : string page_title ( \"Dogs & Cats & Mice & Other Animals\" ) ;\n for ( ACMatchClassifications : : const_iterator diter = description . begin ( ) ;\n diter != description . end ( ) ;\n ++ diter ) EXPECT_LT ( diter -> offset , page_title . length ( ) ) ;\n }"}
{"idx": 17194, "target": 0, "func": "static int dissect_h245_INTEGER_1_192400 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 192400U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 17195, "target": 0, "func": "static void initialize_encoder ( struct stream_state * stream , struct VpxEncoderConfig * global ) {\n int i ;\n int flags = 0 ;\n flags |= global -> show_psnr ? VPX_CODEC_USE_PSNR : 0 ;\n flags |= global -> out_part ? VPX_CODEC_USE_OUTPUT_PARTITION : 0 ;\n # if CONFIG_VP9 && CONFIG_VP9_HIGHBITDEPTH flags |= stream -> config . use_16bit_internal ? VPX_CODEC_USE_HIGHBITDEPTH : 0 ;\n # endif vpx_codec_enc_init ( & stream -> encoder , global -> codec -> codec_interface ( ) , & stream -> config . cfg , flags ) ;\n ctx_exit_on_error ( & stream -> encoder , \"Failed to initialize encoder\" ) ;\n for ( i = 0 ;\n i < stream -> config . arg_ctrl_cnt ;\n i ++ ) {\n int ctrl = stream -> config . arg_ctrls [ i ] [ 0 ] ;\n int value = stream -> config . arg_ctrls [ i ] [ 1 ] ;\n if ( vpx_codec_control_ ( & stream -> encoder , ctrl , value ) ) fprintf ( stderr , \"Error: Tried to set control %d = %d\\n\" , ctrl , value ) ;\n ctx_exit_on_error ( & stream -> encoder , \"Failed to control codec\" ) ;\n }\n # if CONFIG_DECODERS if ( global -> test_decode != TEST_DECODE_OFF ) {\n const VpxInterface * decoder = get_vpx_decoder_by_name ( global -> codec -> name ) ;\n vpx_codec_dec_init ( & stream -> decoder , decoder -> codec_interface ( ) , NULL , 0 ) ;\n }\n # endif }"}
{"idx": 17196, "target": 0, "func": "int ssl_get_client_min_max_version ( const SSL * s , int * min_version , int * max_version ) {\n int version ;\n int hole ;\n const SSL_METHOD * single = NULL ;\n const SSL_METHOD * method ;\n const version_info * table ;\n const version_info * vent ;\n switch ( s -> method -> version ) {\n default : * min_version = * max_version = s -> version ;\n return 0 ;\n case TLS_ANY_VERSION : table = tls_version_table ;\n break ;\n case DTLS_ANY_VERSION : table = dtls_version_table ;\n break ;\n }\n * min_version = version = 0 ;\n hole = 1 ;\n for ( vent = table ;\n vent -> version != 0 ;\n ++ vent ) {\n if ( vent -> cmeth == NULL ) {\n hole = 1 ;\n continue ;\n }\n method = vent -> cmeth ( ) ;\n if ( ssl_method_error ( s , method ) != 0 ) {\n hole = 1 ;\n }\n else if ( ! hole ) {\n single = NULL ;\n * min_version = method -> version ;\n }\n else {\n version = ( single = method ) -> version ;\n * min_version = version ;\n hole = 0 ;\n }\n }\n * max_version = version ;\n if ( version == 0 ) return SSL_R_NO_PROTOCOLS_AVAILABLE ;\n return 0 ;\n }"}
{"idx": 17197, "target": 0, "func": "static PageDesc * page_find_alloc ( tb_page_addr_t index , int alloc ) {\n PageDesc * pd ;\n void * * lp ;\n int i ;\n # if defined ( CONFIG_USER_ONLY ) # define ALLOC ( P , SIZE ) do {\n P = mmap ( NULL , SIZE , PROT_READ | PROT_WRITE , MAP_PRIVATE | MAP_ANONYMOUS , - 1 , 0 ) ;\n }\n while ( 0 ) # else # define ALLOC ( P , SIZE ) do {\n P = g_malloc0 ( SIZE ) ;\n }\n while ( 0 ) # endif lp = l1_map + ( ( index >> V_L1_SHIFT ) & ( V_L1_SIZE - 1 ) ) ;\n for ( i = V_L1_SHIFT / L2_BITS - 1 ;\n i > 0 ;\n i -- ) {\n void * * p = * lp ;\n if ( p == NULL ) {\n if ( ! alloc ) {\n return NULL ;\n }\n ALLOC ( p , sizeof ( void * ) * L2_SIZE ) ;\n * lp = p ;\n }\n lp = p + ( ( index >> ( i * L2_BITS ) ) & ( L2_SIZE - 1 ) ) ;\n }\n pd = * lp ;\n if ( pd == NULL ) {\n if ( ! alloc ) {\n return NULL ;\n }\n ALLOC ( pd , sizeof ( PageDesc ) * L2_SIZE ) ;\n * lp = pd ;\n }\n # undef ALLOC return pd + ( index & ( L2_SIZE - 1 ) ) ;\n }"}
{"idx": 17198, "target": 0, "func": "static inline void get_strl ( AVIOContext * pb , char * buf , int buf_size , int len ) {\n int i ;\n char * q , r ;\n q = buf ;\n for ( i = 0 ;\n i < len ;\n i ++ ) {\n r = avio_r8 ( pb ) ;\n if ( i < buf_size - 1 ) * q ++ = r ;\n }\n if ( buf_size > 0 ) * q = '\\0' ;\n }"}
{"idx": 17199, "target": 0, "func": "static void SetupOutput ( decoder_t * p_dec , block_t * p_block ) {\n decoder_sys_t * p_sys = p_dec -> p_sys ;\n if ( p_dec -> fmt_out . audio . i_rate != p_sys -> i_rate ) {\n msg_Info ( p_dec , \"AAC channels: %d samplerate: %d\" , p_sys -> i_channels , p_sys -> i_rate ) ;\n const mtime_t i_end_date = date_Get ( & p_sys -> end_date ) ;\n date_Init ( & p_sys -> end_date , p_sys -> i_rate , 1 ) ;\n date_Set ( & p_sys -> end_date , i_end_date ) ;\n }\n p_dec -> fmt_out . audio . i_rate = p_sys -> i_rate ;\n p_dec -> fmt_out . audio . i_channels = p_sys -> i_channels ;\n p_dec -> fmt_out . audio . i_bytes_per_frame = p_sys -> i_frame_size ;\n p_dec -> fmt_out . audio . i_frame_length = p_sys -> i_frame_length ;\n # if 0 p_dec -> fmt_out . audio . i_original_channels = p_sys -> i_channels_conf ;\n p_dec -> fmt_out . audio . i_physical_channels = p_sys -> i_channels_conf ;\n # endif p_block -> i_pts = p_block -> i_dts = date_Get ( & p_sys -> end_date ) ;\n p_block -> i_length = date_Increment ( & p_sys -> end_date , p_sys -> i_frame_length ) - p_block -> i_pts ;\n }"}
{"idx": 17200, "target": 1, "func": "static __always_inline __le32 __cpu_to_le32p ( const __u32 * p ) {\n return ( __le32 ) * p ;\n }"}
{"idx": 17201, "target": 0, "func": "static void cleanup_and_exit ( int exit_code ) {\n free_used_memory ( ) ;\n if ( server_initialized ) mysql_server_end ( ) ;\n fclose ( stderr ) ;\n my_end ( my_end_arg ) ;\n if ( ! silent ) {\n switch ( exit_code ) {\n case 1 : printf ( \"not ok\\n\" ) ;\n break ;\n case 0 : printf ( \"ok\\n\" ) ;\n break ;\n case 62 : printf ( \"skipped\\n\" ) ;\n break ;\n default : printf ( \"unknown exit code: %d\\n\" , exit_code ) ;\n DBUG_ASSERT ( 0 ) ;\n }\n }\n sf_leaking_memory = 0 ;\n exit ( exit_code ) ;\n }"}
{"idx": 17202, "target": 0, "func": "TEST_F ( HistoryQuickProviderTest , ContentsClass ) {\n std : : vector < std : : string > expected_urls ;\n expected_urls . push_back ( \"http://ja.wikipedia.org/wiki/%E7%AC%AC%E4%BA%8C%E6%AC%A1%E4%B8%96%E7\" \"%95%8C%E5%A4%A7%E6%88%A6#.E3.83.B4.E3.82.A7.E3.83.AB.E3.82.B5.E3.82.\" \"A4.E3.83.A6.E4.BD.93.E5.88.B6\" ) ;\n RunTest ( base : : UTF8ToUTF16 ( \"\u7b2c\u4e8c e3\" ) , false , expected_urls , false , base : : UTF8ToUTF16 ( \"ja.wikipedia.org/wiki/\u7b2c\u4e8c\u6b21\u4e16\u754c\u5927\u6226#.E3.83.B4.E3.\" \"82.A7.E3.83.AB.E3.82.B5.E3.82.A4.E3.83.A6.E4.BD.\" \"93.E5.88.B6\" ) , base : : string16 ( ) ) ;\n # ifndef NDEBUG ac_matches_ [ 0 ] . Validate ( ) ;\n # endif ACMatchClassifications contents_class ( ac_matches_ [ 0 ] . contents_class ) ;\n size_t expected_offsets [ ] = {\n 0 , 22 , 24 , 31 , 33 , 40 , 42 , 49 , 51 , 58 , 60 , 67 , 69 , 76 , 78 }\n ;\n EXPECT_LE ( contents_class . size ( ) , arraysize ( expected_offsets ) ) ;\n EXPECT_GE ( contents_class . size ( ) , 5u ) ;\n for ( size_t i = 0 ;\n i < contents_class . size ( ) ;\n ++ i ) EXPECT_EQ ( expected_offsets [ i ] , contents_class [ i ] . offset ) ;\n }"}
{"idx": 17203, "target": 0, "func": "static void fixup ( UScriptRun * scriptRun , UScriptCode scriptCode ) {\n int32_t fixupSP = DEC ( scriptRun -> parenSP , scriptRun -> fixupCount ) ;\n while ( scriptRun -> fixupCount -- > 0 ) {\n fixupSP = INC1 ( fixupSP ) ;\n scriptRun -> parenStack [ fixupSP ] . scriptCode = scriptCode ;\n }\n }"}
{"idx": 17204, "target": 0, "func": "inline static void _slurm_rpc_set_fs_dampening_factor ( slurm_msg_t * msg ) {\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n slurmctld_lock_t config_write_lock = {\n WRITE_LOCK , WRITE_LOCK , READ_LOCK , READ_LOCK , READ_LOCK }\n ;\n set_fs_dampening_factor_msg_t * request_msg = ( set_fs_dampening_factor_msg_t * ) msg -> data ;\n uint16_t factor ;\n debug2 ( \"Processing RPC: REQUEST_SET_FS_DAMPENING_FACTOR from uid=%d\" , uid ) ;\n if ( ! validate_super_user ( uid ) ) {\n error ( \"set FairShareDampeningFactor request from non-super user uid=%d\" , uid ) ;\n slurm_send_rc_msg ( msg , EACCES ) ;\n return ;\n }\n factor = request_msg -> dampening_factor ;\n lock_slurmctld ( config_write_lock ) ;\n slurm_set_fs_dampening_factor ( factor ) ;\n slurmctld_conf . last_update = time ( NULL ) ;\n priority_g_reconfig ( false ) ;\n unlock_slurmctld ( config_write_lock ) ;\n info ( \"Set FairShareDampeningFactor to %u\" , factor ) ;\n slurm_send_rc_msg ( msg , SLURM_SUCCESS ) ;\n }"}
{"idx": 17205, "target": 0, "func": "static int SpoolssGetForm_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ;\n BUFFER buffer ;\n guint32 level = GPOINTER_TO_UINT ( dcv -> se_data ) ;\n proto_item * hidden_item ;\n hidden_item = proto_tree_add_uint ( tree , hf_form , tvb , offset , 0 , 1 ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n offset = dissect_spoolss_buffer ( tvb , offset , pinfo , tree , di , drep , & buffer ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_needed , NULL ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", level %d\" , level ) ;\n if ( buffer . tvb ) {\n int buffer_offset = 0 ;\n switch ( level ) {\n case 1 : {\n int struct_start = buffer_offset ;\n dissect_FORM_REL ( buffer . tvb , buffer_offset , pinfo , tree , di , drep , struct_start ) ;\n break ;\n }\n default : proto_tree_add_expert_format ( buffer . tree , pinfo , & ei_form_level , buffer . tvb , buffer_offset , - 1 , \"Unknown form info level %d\" , level ) ;\n break ;\n }\n }\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 17206, "target": 0, "func": "static int calc_active_worst_quality_one_pass_cbr ( const VP9_COMP * cpi ) {\n const VP9_COMMON * const cm = & cpi -> common ;\n const RATE_CONTROL * rc = & cpi -> rc ;\n int64_t critical_level = rc -> optimal_buffer_level >> 2 ;\n int64_t buff_lvl_step = 0 ;\n int adjustment = 0 ;\n int active_worst_quality ;\n if ( cm -> frame_type == KEY_FRAME ) return rc -> worst_quality ;\n if ( cm -> current_video_frame > 1 ) active_worst_quality = MIN ( rc -> worst_quality , rc -> avg_frame_qindex [ INTER_FRAME ] * 5 / 4 ) ;\n else active_worst_quality = MIN ( rc -> worst_quality , rc -> avg_frame_qindex [ KEY_FRAME ] * 3 / 2 ) ;\n if ( rc -> buffer_level > rc -> optimal_buffer_level ) {\n int max_adjustment_down = active_worst_quality / 3 ;\n if ( max_adjustment_down ) {\n buff_lvl_step = ( ( rc -> maximum_buffer_size - rc -> optimal_buffer_level ) / max_adjustment_down ) ;\n if ( buff_lvl_step ) adjustment = ( int ) ( ( rc -> buffer_level - rc -> optimal_buffer_level ) / buff_lvl_step ) ;\n active_worst_quality -= adjustment ;\n }\n }\n else if ( rc -> buffer_level > critical_level ) {\n if ( critical_level ) {\n buff_lvl_step = ( rc -> optimal_buffer_level - critical_level ) ;\n if ( buff_lvl_step ) {\n adjustment = ( int ) ( ( rc -> worst_quality - rc -> avg_frame_qindex [ INTER_FRAME ] ) * ( rc -> optimal_buffer_level - rc -> buffer_level ) / buff_lvl_step ) ;\n }\n active_worst_quality = rc -> avg_frame_qindex [ INTER_FRAME ] + adjustment ;\n }\n }\n else {\n active_worst_quality = rc -> worst_quality ;\n }\n return active_worst_quality ;\n }"}
{"idx": 17207, "target": 0, "func": "static int archive_read_format_cpio_read_data ( struct archive_read * a , const void * * buff , size_t * size , int64_t * offset ) {\n ssize_t bytes_read ;\n struct cpio * cpio ;\n cpio = ( struct cpio * ) ( a -> format -> data ) ;\n if ( cpio -> entry_bytes_unconsumed ) {\n __archive_read_consume ( a , cpio -> entry_bytes_unconsumed ) ;\n cpio -> entry_bytes_unconsumed = 0 ;\n }\n if ( cpio -> entry_bytes_remaining > 0 ) {\n * buff = __archive_read_ahead ( a , 1 , & bytes_read ) ;\n if ( bytes_read <= 0 ) return ( ARCHIVE_FATAL ) ;\n if ( bytes_read > cpio -> entry_bytes_remaining ) bytes_read = ( ssize_t ) cpio -> entry_bytes_remaining ;\n * size = bytes_read ;\n cpio -> entry_bytes_unconsumed = bytes_read ;\n * offset = cpio -> entry_offset ;\n cpio -> entry_offset += bytes_read ;\n cpio -> entry_bytes_remaining -= bytes_read ;\n return ( ARCHIVE_OK ) ;\n }\n else {\n if ( cpio -> entry_padding != __archive_read_consume ( a , cpio -> entry_padding ) ) {\n return ( ARCHIVE_FATAL ) ;\n }\n cpio -> entry_padding = 0 ;\n * buff = NULL ;\n * size = 0 ;\n * offset = cpio -> entry_offset ;\n return ( ARCHIVE_EOF ) ;\n }\n }"}
{"idx": 17208, "target": 0, "func": "static gboolean gsm_a_dtap_ss_stat_packet ( void * tapdata , packet_info * pinfo _U_ , epan_dissect_t * edt _U_ , const void * gatr_ptr ) {\n return gsm_a_stat_packet ( tapdata , gatr_ptr , BSSAP_PDU_TYPE_DTAP , PD_SS ) ;\n }"}
{"idx": 17209, "target": 0, "func": "int32_t http_parse_version ( const char * start , const char * end ) {\n int maj ;\n int min ;\n if ( ( end - start ) < 8 ) {\n return HTTP_VERSION ( 0 , 9 ) ;\n }\n if ( ( ( start [ 0 ] == 'H' ) || ( start [ 0 ] == 'h' ) ) && ( ( start [ 1 ] == 'T' ) || ( start [ 1 ] == 't' ) ) && ( ( start [ 2 ] == 'T' ) || ( start [ 2 ] == 't' ) ) && ( ( start [ 3 ] == 'P' ) || ( start [ 3 ] == 'p' ) ) && ( start [ 4 ] == '/' ) ) {\n start += 5 ;\n maj = 0 ;\n min = 0 ;\n while ( ( start != end ) && ParseRules : : is_digit ( * start ) ) {\n maj = ( maj * 10 ) + ( * start - '0' ) ;\n start += 1 ;\n }\n if ( * start == '.' ) {\n start += 1 ;\n }\n while ( ( start != end ) && ParseRules : : is_digit ( * start ) ) {\n min = ( min * 10 ) + ( * start - '0' ) ;\n start += 1 ;\n }\n return HTTP_VERSION ( maj , min ) ;\n }\n return HTTP_VERSION ( 0 , 9 ) ;\n }"}
{"idx": 17210, "target": 0, "func": "static const char * virLogPriorityString ( virLogPriority lvl ) {\n switch ( lvl ) {\n case VIR_LOG_DEBUG : return \"debug\" ;\n case VIR_LOG_INFO : return \"info\" ;\n case VIR_LOG_WARN : return \"warning\" ;\n case VIR_LOG_ERROR : return \"error\" ;\n }\n return \"unknown\" ;\n }"}
{"idx": 17211, "target": 0, "func": "static VALUE cState_s_allocate ( VALUE klass ) {\n JSON_Generator_State * state ;\n return TypedData_Make_Struct ( klass , JSON_Generator_State , & JSON_Generator_State_type , state ) ;\n }"}
{"idx": 17212, "target": 0, "func": "static int detect_transition_to_still ( const TWO_PASS * twopass , int frame_interval , int still_interval , double loop_decay_rate , double last_decay_rate ) {\n if ( frame_interval > MIN_GF_INTERVAL && loop_decay_rate >= 0.999 && last_decay_rate < 0.9 ) {\n int j ;\n for ( j = 0 ;\n j < still_interval ;\n ++ j ) {\n const FIRSTPASS_STATS * stats = & twopass -> stats_in [ j ] ;\n if ( stats >= twopass -> stats_in_end ) break ;\n if ( stats -> pcnt_inter - stats -> pcnt_motion < 0.999 ) break ;\n }\n return j == still_interval ;\n }\n return 0 ;\n }"}
{"idx": 17213, "target": 0, "func": "static void generate_json_false ( FBuffer * buffer , VALUE Vstate , JSON_Generator_State * state , VALUE obj ) {\n fbuffer_append ( buffer , \"false\" , 5 ) ;\n }"}
{"idx": 17214, "target": 0, "func": "SplinePointList * SplinesFromEntities ( Entity * ent , int * flags , int is_stroked ) {\n EntityChar ec ;\n memset ( & ec , '\\0' , sizeof ( ec ) ) ;\n ec . splines = ent ;\n return ( SplinesFromEntityChar ( & ec , flags , is_stroked ) ) ;\n }"}
{"idx": 17215, "target": 0, "func": "int multi_reg_replace ( struct st_replace_regex * r , char * val ) {\n uint i ;\n char * in_buf , * out_buf ;\n int * buf_len_p ;\n in_buf = val ;\n out_buf = r -> even_buf ;\n buf_len_p = & r -> even_buf_len ;\n r -> buf = 0 ;\n for ( i = 0 ;\n i < r -> regex_arr . elements ;\n i ++ ) {\n struct st_regex re ;\n char * save_out_buf = out_buf ;\n get_dynamic ( & r -> regex_arr , ( uchar * ) & re , i ) ;\n if ( ! reg_replace ( & out_buf , buf_len_p , re . pattern , re . replace , in_buf , re . icase ) ) {\n if ( save_out_buf != out_buf ) {\n if ( save_out_buf == r -> even_buf ) r -> even_buf = out_buf ;\n else r -> odd_buf = out_buf ;\n }\n r -> buf = out_buf ;\n if ( in_buf == val ) in_buf = r -> odd_buf ;\n swap_variables ( char * , in_buf , out_buf ) ;\n buf_len_p = ( out_buf == r -> even_buf ) ? & r -> even_buf_len : & r -> odd_buf_len ;\n }\n }\n return ( r -> buf == 0 ) ;\n }"}
{"idx": 17216, "target": 0, "func": "static int dissect_h245_H2250MaximumSkewIndication ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_H2250MaximumSkewIndication , H2250MaximumSkewIndication_sequence ) ;\n return offset ;\n }"}
{"idx": 17217, "target": 0, "func": "static uint64_t xhci_mfindex_get ( XHCIState * xhci ) {\n int64_t now = qemu_clock_get_ns ( QEMU_CLOCK_VIRTUAL ) ;\n return ( now - xhci -> mfindex_start ) / 125000 ;\n }"}
{"idx": 17218, "target": 0, "func": "static fz_image * parse_inline_image ( fz_context * ctx , pdf_csi * csi , fz_stream * stm ) {\n pdf_document * doc = csi -> doc ;\n pdf_obj * rdb = csi -> rdb ;\n pdf_obj * obj = NULL ;\n fz_image * img = NULL ;\n int ch , found ;\n fz_var ( obj ) ;\n fz_var ( img ) ;\n fz_try ( ctx ) {\n obj = pdf_parse_dict ( ctx , doc , stm , & doc -> lexbuf . base ) ;\n ch = fz_read_byte ( ctx , stm ) ;\n if ( ch == '\\r' ) if ( fz_peek_byte ( ctx , stm ) == '\\n' ) fz_read_byte ( ctx , stm ) ;\n img = pdf_load_inline_image ( ctx , doc , rdb , obj , stm ) ;\n found = 0 ;\n ch = fz_read_byte ( ctx , stm ) ;\n do {\n while ( ch != 'E' && ch != EOF ) ch = fz_read_byte ( ctx , stm ) ;\n if ( ch == 'E' ) {\n ch = fz_read_byte ( ctx , stm ) ;\n if ( ch == 'I' ) {\n ch = fz_peek_byte ( ctx , stm ) ;\n if ( ch == ' ' || ch <= 32 || ch == EOF || ch == '<' || ch == '/' ) {\n found = 1 ;\n break ;\n }\n }\n }\n }\n while ( ch != EOF ) ;\n if ( ! found ) fz_throw ( ctx , FZ_ERROR_SYNTAX , \"syntax error after inline image\" ) ;\n }\n fz_always ( ctx ) {\n pdf_drop_obj ( ctx , obj ) ;\n }\n fz_catch ( ctx ) {\n fz_drop_image ( ctx , img ) ;\n fz_rethrow ( ctx ) ;\n }\n return img ;\n }"}
{"idx": 17219, "target": 0, "func": "static void dissect_rtmpt_body_aggregate ( tvbuff_t * tvb , gint offset , proto_tree * rtmpt_tree ) {\n proto_tree * tag_tree ;\n proto_tree * data_tree ;\n while ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n guint8 iTagType ;\n guint iDataSize ;\n iTagType = tvb_get_guint8 ( tvb , offset + 0 ) ;\n iDataSize = tvb_get_ntoh24 ( tvb , offset + 1 ) ;\n tag_tree = proto_tree_add_subtree ( rtmpt_tree , tvb , offset , 11 + iDataSize + 4 , ett_rtmpt_tag , NULL , val_to_str_const ( iTagType , rtmpt_tag_vals , \"Unknown Tag\" ) ) ;\n proto_tree_add_item ( tag_tree , hf_rtmpt_tag_type , tvb , offset + 0 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tag_tree , hf_rtmpt_tag_datasize , tvb , offset + 1 , 3 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tag_tree , hf_rtmpt_tag_timestamp , tvb , offset + 4 , 3 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tag_tree , hf_rtmpt_tag_ets , tvb , offset + 7 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tag_tree , hf_rtmpt_tag_streamid , tvb , offset + 8 , 3 , ENC_BIG_ENDIAN ) ;\n data_tree = proto_tree_add_subtree ( tag_tree , tvb , offset + 11 , iDataSize , ett_rtmpt_tag_data , NULL , \"Data\" ) ;\n switch ( iTagType ) {\n case 8 : dissect_rtmpt_body_audio ( tvb , offset + 11 , data_tree ) ;\n break ;\n case 9 : dissect_rtmpt_body_video ( tvb , offset + 11 , data_tree ) ;\n break ;\n case 18 : dissect_rtmpt_body_command ( tvb , offset + 11 , data_tree , FALSE ) ;\n break ;\n default : break ;\n }\n proto_tree_add_item ( tag_tree , hf_rtmpt_tag_tagsize , tvb , offset + 11 + iDataSize , 4 , ENC_BIG_ENDIAN ) ;\n offset += 11 + iDataSize + 4 ;\n }\n }"}
{"idx": 17220, "target": 0, "func": "static int gf2m_Madd ( const EC_GROUP * group , const BIGNUM * x , BIGNUM * x1 , BIGNUM * z1 , const BIGNUM * x2 , const BIGNUM * z2 , BN_CTX * ctx ) {\n BIGNUM * t1 , * t2 ;\n int ret = 0 ;\n BN_CTX_start ( ctx ) ;\n t1 = BN_CTX_get ( ctx ) ;\n t2 = BN_CTX_get ( ctx ) ;\n if ( t2 == NULL ) goto err ;\n if ( ! BN_copy ( t1 , x ) ) goto err ;\n if ( ! group -> meth -> field_mul ( group , x1 , x1 , z2 , ctx ) ) goto err ;\n if ( ! group -> meth -> field_mul ( group , z1 , z1 , x2 , ctx ) ) goto err ;\n if ( ! group -> meth -> field_mul ( group , t2 , x1 , z1 , ctx ) ) goto err ;\n if ( ! BN_GF2m_add ( z1 , z1 , x1 ) ) goto err ;\n if ( ! group -> meth -> field_sqr ( group , z1 , z1 , ctx ) ) goto err ;\n if ( ! group -> meth -> field_mul ( group , x1 , z1 , t1 , ctx ) ) goto err ;\n if ( ! BN_GF2m_add ( x1 , x1 , t2 ) ) goto err ;\n ret = 1 ;\n err : BN_CTX_end ( ctx ) ;\n return ret ;\n }"}
{"idx": 17221, "target": 0, "func": "static int dissect_h245_T_videoNotDecodedMBs ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_videoNotDecodedMBs , T_videoNotDecodedMBs_sequence ) ;\n return offset ;\n }"}
{"idx": 17222, "target": 0, "func": "void proto_register_zbee_zcl_scenes ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_zbee_zcl_scenes_attr_id , {\n \"Attribute\" , \"zbee_zcl_general.scenes.attr_id\" , FT_UINT16 , BASE_HEX , VALS ( zbee_zcl_scenes_attr_names ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_scenes_scene_list , {\n \"Scene List\" , \"zbee_zcl_general.groups.scene_list\" , FT_NONE , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_scenes_group_id , {\n \"Group ID\" , \"zbee_zcl_general.scenes.group_id\" , FT_UINT16 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_scenes_scene_id , {\n \"Scene ID\" , \"zbee_zcl_general.scenes.scene_id\" , FT_UINT8 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_scenes_transit_time , {\n \"Transition Time\" , \"zbee_zcl_general.scenes.transit_time\" , FT_UINT16 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_scenes_status , {\n \"Scenes Status\" , \"zbee_zcl_general.scenes.scenes_status\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_status_names ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_scenes_capacity , {\n \"Scene Capacity\" , \"zbee_zcl_general.scenes.scene_capacity\" , FT_UINT8 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_scenes_scene_count , {\n \"Scene Count\" , \"zbee_zcl_general.scenes.scene_count\" , FT_UINT8 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_scenes_attr_id_name_support , {\n \"Scene Name Support\" , \"zbee_zcl_general.scenes.attr.name_support\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_scenes_group_names_support_values ) , ZBEE_ZCL_CMD_ID_SCENES_NAME_SUPPORT_MASK , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_scenes_attr_id_scene_valid , {\n \"Scene Validity\" , \"zbee_zcl_general.scenes.scene_valid\" , FT_BOOLEAN , 8 , TFS ( & tfs_true_false ) , ZBEE_ZCL_CMD_ID_SCENES_SUPPORTED_MASK , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_scenes_attr_str_len , {\n \"Length\" , \"zbee_zcl_general.scenes.attr_str_len\" , FT_UINT8 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_scenes_attr_str , {\n \"String\" , \"zbee_zcl_general.scenes.attr_str\" , FT_STRING , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_scenes_extension_set_field , {\n \"Extension Set\" , \"zbee_zcl_general.scenes.extension_set\" , FT_BYTES , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_scenes_srv_rx_cmd_id , {\n \"Command\" , \"zbee_zcl_general.scenes.cmd.srv_rx.id\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_scenes_srv_rx_cmd_names ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_scenes_srv_tx_cmd_id , {\n \"Command\" , \"zbee_zcl_general.scenes.cmd.srv_tx.id\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_scenes_srv_tx_cmd_names ) , 0x00 , NULL , HFILL }\n }\n }\n ;\n static gint * ett [ ZBEE_ZCL_SCENES_NUM_ETT ] ;\n ett [ 0 ] = & ett_zbee_zcl_scenes ;\n ett [ 1 ] = & ett_zbee_zcl_scenes_scene_ctrl ;\n proto_zbee_zcl_scenes = proto_register_protocol ( \"ZigBee ZCL Scenes\" , \"ZCL Scenes\" , ZBEE_PROTOABBREV_ZCL_SCENES ) ;\n proto_register_field_array ( proto_zbee_zcl_scenes , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n register_dissector ( ZBEE_PROTOABBREV_ZCL_SCENES , dissect_zbee_zcl_scenes , proto_zbee_zcl_scenes ) ;\n }"}
{"idx": 17223, "target": 0, "func": "static int dissect_h225_T_cic_2_4 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_T_cic_2_4 , T_cic_2_4_sequence_of ) ;\n return offset ;\n }"}
{"idx": 17224, "target": 0, "func": "static int aes_gcm_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n if ( ! gctx -> key_set ) return - 1 ;\n if ( gctx -> tls_aad_len >= 0 ) return aes_gcm_tls_cipher ( ctx , out , in , len ) ;\n if ( ! gctx -> iv_set ) return - 1 ;\n if ( in ) {\n if ( out == NULL ) {\n if ( CRYPTO_gcm128_aad ( & gctx -> gcm , in , len ) ) return - 1 ;\n }\n else if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 32 && AES_GCM_ASM ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_encrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) return - 1 ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 32 && AES_GCM_ASM2 ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) return - 1 ;\n }\n }\n else {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 16 && AES_GCM_ASM ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_decrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) return - 1 ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 16 && AES_GCM_ASM2 ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) return - 1 ;\n }\n }\n return len ;\n }\n else {\n if ( ! EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> taglen < 0 ) return - 1 ;\n if ( CRYPTO_gcm128_finish ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , gctx -> taglen ) != 0 ) return - 1 ;\n gctx -> iv_set = 0 ;\n return 0 ;\n }\n CRYPTO_gcm128_tag ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , 16 ) ;\n gctx -> taglen = 16 ;\n gctx -> iv_set = 0 ;\n return 0 ;\n }\n }"}
{"idx": 17225, "target": 0, "func": "static void nameserver_up ( struct nameserver * const ns ) {\n if ( ns -> state ) return ;\n log ( EVDNS_LOG_WARN , \"Nameserver %s is back up\" , debug_ntoa ( ns -> address ) ) ;\n evtimer_del ( & ns -> timeout_event ) ;\n ns -> state = 1 ;\n ns -> failed_times = 0 ;\n ns -> timedout = 0 ;\n global_good_nameservers ++ ;\n }"}
{"idx": 17226, "target": 0, "func": "static int decrypt_nss_2_3 ( struct crypto_instance * instance , unsigned char * buf , int * buf_len ) {\n * buf_len -= sizeof ( struct crypto_config_header ) ;\n if ( decrypt_nss ( instance , buf + sizeof ( struct crypto_config_header ) , buf_len ) < 0 ) {\n return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 17227, "target": 0, "func": "void ber_reset ( BerElement * ber , int was_writing ) {\n assert ( ber != NULL ) ;\n assert ( LBER_VALID ( ber ) ) ;\n if ( was_writing ) {\n ber -> ber_end = ber -> ber_ptr ;\n ber -> ber_ptr = ber -> ber_buf ;\n }\n else {\n ber -> ber_ptr = ber -> ber_end ;\n }\n ber -> ber_rwptr = NULL ;\n }"}
{"idx": 17228, "target": 0, "func": "static int dissect_rsl_ie_full_bcch_inf ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_item * ti ;\n proto_tree * ie_tree ;\n tvbuff_t * next_tvb ;\n guint16 length ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_FULL_BCCH_INF ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_ie_full_bcch_inf , & ti , \"Full BCCH Information IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n length = tvb_get_guint8 ( tvb , offset ) ;\n proto_item_set_len ( ti , length + 2 ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_length , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_layer_3_message , tvb , offset , length , ENC_NA ) ;\n next_tvb = tvb_new_subset_length ( tvb , offset , length ) ;\n call_dissector ( gsm_a_ccch_handle , next_tvb , pinfo , top_tree ) ;\n offset = offset + length ;\n return offset ;\n }"}
{"idx": 17229, "target": 0, "func": "void virLogVMessage ( virLogSourcePtr source , virLogPriority priority , const char * filename , int linenr , const char * funcname , virLogMetadataPtr metadata , const char * fmt , va_list vargs ) {\n static bool logInitMessageStderr = true ;\n char * str = NULL ;\n char * msg = NULL ;\n char timestamp [ VIR_TIME_STRING_BUFLEN ] ;\n int ret ;\n size_t i ;\n int saved_errno = errno ;\n unsigned int filterflags = 0 ;\n if ( virLogInitialize ( ) < 0 ) return ;\n if ( fmt == NULL ) return ;\n if ( source -> serial < virLogFiltersSerial ) virLogSourceUpdate ( source ) ;\n if ( priority < source -> priority ) goto cleanup ;\n filterflags = source -> flags ;\n if ( virVasprintfQuiet ( & str , fmt , vargs ) < 0 ) goto cleanup ;\n ret = virLogFormatString ( & msg , linenr , funcname , priority , str ) ;\n if ( ret < 0 ) goto cleanup ;\n if ( virTimeStringNowRaw ( timestamp ) < 0 ) timestamp [ 0 ] = '\\0' ;\n virLogLock ( ) ;\n for ( i = 0 ;\n i < virLogNbOutputs ;\n i ++ ) {\n if ( priority >= virLogOutputs [ i ] -> priority ) {\n if ( virLogOutputs [ i ] -> logInitMessage ) {\n const char * rawinitmsg ;\n char * hoststr = NULL ;\n char * initmsg = NULL ;\n if ( virLogVersionString ( & rawinitmsg , & initmsg ) >= 0 ) virLogOutputs [ i ] -> f ( & virLogSelf , VIR_LOG_INFO , __FILE__ , __LINE__ , __func__ , timestamp , NULL , 0 , rawinitmsg , initmsg , virLogOutputs [ i ] -> data ) ;\n VIR_FREE ( initmsg ) ;\n if ( virLogHostnameString ( & hoststr , & initmsg ) >= 0 ) virLogOutputs [ i ] -> f ( & virLogSelf , VIR_LOG_INFO , __FILE__ , __LINE__ , __func__ , timestamp , NULL , 0 , hoststr , initmsg , virLogOutputs [ i ] -> data ) ;\n VIR_FREE ( hoststr ) ;\n VIR_FREE ( initmsg ) ;\n virLogOutputs [ i ] -> logInitMessage = false ;\n }\n virLogOutputs [ i ] -> f ( source , priority , filename , linenr , funcname , timestamp , metadata , filterflags , str , msg , virLogOutputs [ i ] -> data ) ;\n }\n }\n if ( virLogNbOutputs == 0 ) {\n if ( logInitMessageStderr ) {\n const char * rawinitmsg ;\n char * hoststr = NULL ;\n char * initmsg = NULL ;\n if ( virLogVersionString ( & rawinitmsg , & initmsg ) >= 0 ) virLogOutputToFd ( & virLogSelf , VIR_LOG_INFO , __FILE__ , __LINE__ , __func__ , timestamp , NULL , 0 , rawinitmsg , initmsg , ( void * ) STDERR_FILENO ) ;\n VIR_FREE ( initmsg ) ;\n if ( virLogHostnameString ( & hoststr , & initmsg ) >= 0 ) virLogOutputToFd ( & virLogSelf , VIR_LOG_INFO , __FILE__ , __LINE__ , __func__ , timestamp , NULL , 0 , hoststr , initmsg , ( void * ) STDERR_FILENO ) ;\n VIR_FREE ( hoststr ) ;\n VIR_FREE ( initmsg ) ;\n logInitMessageStderr = false ;\n }\n virLogOutputToFd ( source , priority , filename , linenr , funcname , timestamp , metadata , filterflags , str , msg , ( void * ) STDERR_FILENO ) ;\n }\n virLogUnlock ( ) ;\n cleanup : VIR_FREE ( str ) ;\n VIR_FREE ( msg ) ;\n errno = saved_errno ;\n }"}
{"idx": 17230, "target": 0, "func": "void vpx_svc_release ( SvcContext * svc_ctx ) {\n SvcInternal * si ;\n if ( svc_ctx == NULL ) return ;\n si = ( SvcInternal * ) svc_ctx -> internal ;\n if ( si != NULL ) {\n free ( si ) ;\n svc_ctx -> internal = NULL ;\n }\n }"}
{"idx": 17231, "target": 0, "func": "static const char * URLPartGet ( TSMBuffer bufp , TSMLoc obj , int * length , URLPartGetF url_f ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_url_handle ( obj ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) length ) == TS_SUCCESS ) ;\n URL u ;\n u . m_heap = ( ( HdrHeapSDKHandle * ) bufp ) -> m_heap ;\n u . m_url_impl = ( URLImpl * ) obj ;\n return ( u . * url_f ) ( length ) ;\n }"}
{"idx": 17232, "target": 0, "func": "SPL_METHOD ( SplFileObject , setCsvControl ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char delimiter = ',' , enclosure = '\"' , escape = '\\\\' ;\n char * delim = NULL , * enclo = NULL , * esc = NULL ;\n int d_len = 0 , e_len = 0 , esc_len = 0 ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"|sss\" , & delim , & d_len , & enclo , & e_len , & esc , & esc_len ) == SUCCESS ) {\n switch ( ZEND_NUM_ARGS ( ) ) {\n case 3 : if ( esc_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"escape must be a character\" ) ;\n RETURN_FALSE ;\n }\n escape = esc [ 0 ] ;\n case 2 : if ( e_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"enclosure must be a character\" ) ;\n RETURN_FALSE ;\n }\n enclosure = enclo [ 0 ] ;\n case 1 : if ( d_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"delimiter must be a character\" ) ;\n RETURN_FALSE ;\n }\n delimiter = delim [ 0 ] ;\n case 0 : break ;\n }\n intern -> u . file . delimiter = delimiter ;\n intern -> u . file . enclosure = enclosure ;\n intern -> u . file . escape = escape ;\n }\n }"}
{"idx": 17233, "target": 0, "func": "static struct inode_security_struct * backing_inode_security_novalidate ( struct dentry * dentry ) {\n struct inode * inode = d_backing_inode ( dentry ) ;\n return inode -> i_security ;\n }"}
{"idx": 17234, "target": 0, "func": "static int dissect_h225_IA5String_SIZE_1_128 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_IA5String ( tvb , offset , actx , tree , hf_index , 1 , 128 , FALSE ) ;\n return offset ;\n }"}
{"idx": 17235, "target": 0, "func": "static int xan_unpack_luma ( XanContext * s , uint8_t * dst , const int dst_size ) {\n int tree_size , eof ;\n int bits , mask ;\n int tree_root , node ;\n const uint8_t * dst_end = dst + dst_size ;\n GetByteContext tree = s -> gb ;\n int start_off = bytestream2_tell ( & tree ) ;\n tree_size = bytestream2_get_byte ( & s -> gb ) ;\n eof = bytestream2_get_byte ( & s -> gb ) ;\n tree_root = eof + tree_size ;\n bytestream2_skip ( & s -> gb , tree_size * 2 ) ;\n node = tree_root ;\n bits = bytestream2_get_byte ( & s -> gb ) ;\n mask = 0x80 ;\n for ( ;\n ;\n ) {\n int bit = ! ! ( bits & mask ) ;\n mask >>= 1 ;\n bytestream2_seek ( & tree , start_off + node * 2 + bit - eof * 2 , SEEK_SET ) ;\n node = bytestream2_get_byte ( & tree ) ;\n if ( node == eof ) break ;\n if ( node < eof ) {\n * dst ++ = node ;\n if ( dst > dst_end ) break ;\n node = tree_root ;\n }\n if ( ! mask ) {\n if ( bytestream2_get_bytes_left ( & s -> gb ) <= 0 ) break ;\n bits = bytestream2_get_byteu ( & s -> gb ) ;\n mask = 0x80 ;\n }\n }\n return dst != dst_end ? AVERROR_INVALIDDATA : 0 ;\n }"}
{"idx": 17236, "target": 1, "func": "void proto_register_rtp ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_rtp_version , {\n \"Version\" , \"rtp.version\" , FT_UINT8 , BASE_DEC , VALS ( rtp_version_vals ) , 0xC0 , NULL , HFILL }\n }\n , {\n & hf_rtp_padding , {\n \"Padding\" , \"rtp.padding\" , FT_BOOLEAN , 8 , NULL , 0x20 , NULL , HFILL }\n }\n , {\n & hf_rtp_extension , {\n \"Extension\" , \"rtp.ext\" , FT_BOOLEAN , 8 , NULL , 0x10 , NULL , HFILL }\n }\n , {\n & hf_rtp_csrc_count , {\n \"Contributing source identifiers count\" , \"rtp.cc\" , FT_UINT8 , BASE_DEC , NULL , 0x0F , NULL , HFILL }\n }\n , {\n & hf_rtp_marker , {\n \"Marker\" , \"rtp.marker\" , FT_BOOLEAN , 8 , NULL , 0x80 , NULL , HFILL }\n }\n , {\n & hf_rtp_payload_type , {\n \"Payload type\" , \"rtp.p_type\" , FT_UINT8 , BASE_DEC , NULL , 0x7F , NULL , HFILL }\n }\n , {\n & hf_rtp_seq_nr , {\n \"Sequence number\" , \"rtp.seq\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rtp_ext_seq_nr , {\n \"Extended sequence number\" , \"rtp.extseq\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rtp_timestamp , {\n \"Timestamp\" , \"rtp.timestamp\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rtp_ssrc , {\n \"Synchronization Source identifier\" , \"rtp.ssrc\" , FT_UINT32 , BASE_HEX_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rtp_prof_define , {\n \"Defined by profile\" , \"rtp.ext.profile\" , FT_UINT16 , BASE_HEX_DEC , VALS ( rtp_ext_profile_vals ) , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rtp_length , {\n \"Extension length\" , \"rtp.ext.len\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rtp_csrc_items , {\n \"Contributing Source identifiers\" , \"rtp.csrc.items\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rtp_csrc_item , {\n \"CSRC item\" , \"rtp.csrc.item\" , FT_UINT32 , BASE_HEX_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rtp_hdr_exts , {\n \"Header extensions\" , \"rtp.hdr_exts\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rtp_hdr_ed137s , {\n \"ED137 extensions\" , \"rtp.ext.ed137s\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rtp_hdr_ed137 , {\n \"ED137 extension\" , \"rtp.ext.ed137\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rtp_hdr_ed137_ptt_type , {\n \"PTT Type\" , \"rtp.ext.ed137.ptt_type\" , FT_UINT32 , BASE_DEC , VALS ( rtp_ext_ed137_ptt_type ) , 0xE0000000 , NULL , HFILL }\n }\n , {\n & hf_rtp_hdr_ed137_squ , {\n \"SQU\" , \"rtp.ext.ed137.squ\" , FT_UINT32 , BASE_DEC , VALS ( rtp_ext_ed137_squ ) , 0x10000000 , NULL , HFILL }\n }\n , {\n & hf_rtp_hdr_ed137_ptt_id , {\n \"PTT-id\" , \"rtp.ext.ed137.ptt_id\" , FT_UINT32 , BASE_DEC , NULL , 0x0F000000 , NULL , HFILL }\n }\n , {\n & hf_rtp_hdr_ed137_sct , {\n \"Simultaneous Call Transmissions\" , \"rtp.ext.ed137.sct\" , FT_UINT32 , BASE_DEC , NULL , 0x00800000 , NULL , HFILL }\n }\n , {\n & hf_rtp_hdr_ed137_x , {\n \"X\" , \"rtp.ext.ed137.x\" , FT_UINT32 , BASE_DEC , NULL , 0x00400000 , NULL , HFILL }\n }\n , {\n & hf_rtp_hdr_ed137_x_nu , {\n \"Not used\" , \"rtp.ext.ed137.x-nu\" , FT_UINT32 , BASE_DEC , NULL , 0x003FFFFE , NULL , HFILL }\n }\n , {\n & hf_rtp_hdr_ed137_ft_type , {\n \"Feature type\" , \"rtp.ext.ed137.ft.type\" , FT_UINT32 , BASE_HEX_DEC , VALS ( rtp_ext_ed137_ft_type ) , 0x003C0000 , NULL , HFILL }\n }\n , {\n & hf_rtp_hdr_ed137_ft_len , {\n \"Feature length\" , \"rtp.ext.ed137.ft.len\" , FT_UINT32 , BASE_DEC , NULL , 0x0003C000 , NULL , HFILL }\n }\n , {\n & hf_rtp_hdr_ed137_ft_value , {\n \"Feature value\" , \"rtp.ext.ed137.ft.value\" , FT_UINT32 , BASE_HEX_DEC , NULL , 0x00003FFE , NULL , HFILL }\n }\n , {\n & hf_rtp_hdr_ed137_vf , {\n \"VF\" , \"rtp.ext.ed137.vf\" , FT_UINT32 , BASE_DEC , VALS ( rtp_ext_ed137_vf ) , 0x00000001 , NULL , HFILL }\n }\n , {\n & hf_rtp_hdr_ed137_ft_bss_qidx , {\n \"BSS Quality Index\" , \"rtp.ext.ed137.ft.bss.qidx\" , FT_UINT32 , BASE_DEC , NULL , 0x00003FC0 , NULL , HFILL }\n }\n , {\n & hf_rtp_hdr_ed137_ft_bss_rssi_qidx , {\n \"BSS Quality Index\" , \"rtp.ext.ed137.ft.bss.qidx\" , FT_UINT32 , BASE_DEC , VALS ( rtp_ext_ed137_ft_bss_rssi_qidx ) , 0x00003FC0 , NULL , HFILL }\n }\n , {\n & hf_rtp_hdr_ed137_ft_bss_qidx_ml , {\n \"BSS Quality Index Method\" , \"rtp.ext.ed137.ft.bss.qidx-ml\" , FT_UINT32 , BASE_DEC , VALS ( rtp_ext_ed137_ft_bss_qidx_ml ) , 0x00000038 , NULL , HFILL }\n }\n , {\n & hf_rtp_hdr_ed137_ft_bss_nu , {\n \"Not used\" , \"rtp.ext.ed137.ft.bss-nu\" , FT_UINT32 , BASE_DEC , NULL , 0x00000006 , NULL , HFILL }\n }\n , {\n & hf_rtp_hdr_ed137a , {\n \"ED137A extension\" , \"rtp.ext.ed137A\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rtp_hdr_ed137a_ptt_type , {\n \"PTT Type\" , \"rtp.ext.ed137A.ptt_type\" , FT_UINT32 , BASE_DEC , VALS ( rtp_ext_ed137a_ptt_type ) , 0xE0000000 , NULL , HFILL }\n }\n , {\n & hf_rtp_hdr_ed137a_squ , {\n \"SQU\" , \"rtp.ext.ed137A.squ\" , FT_UINT32 , BASE_DEC , VALS ( rtp_ext_ed137a_squ ) , 0x10000000 , NULL , HFILL }\n }\n , {\n & hf_rtp_hdr_ed137a_ptt_id , {\n \"PTT-id\" , \"rtp.ext.ed137A.ptt_id\" , FT_UINT32 , BASE_DEC , NULL , 0x0FC00000 , NULL , HFILL }\n }\n , {\n & hf_rtp_hdr_ed137a_pm , {\n \"PTT Mute\" , \"rtp.ext.ed137A.pm\" , FT_UINT32 , BASE_DEC , NULL , 0x00200000 , NULL , HFILL }\n }\n , {\n & hf_rtp_hdr_ed137a_ptts , {\n \"PTT Summation\" , \"rtp.ext.ed137A.ptts\" , FT_UINT32 , BASE_DEC , NULL , 0x00100000 , NULL , HFILL }\n }\n , {\n & hf_rtp_hdr_ed137a_sct , {\n \"Simultaneous Call Transmissions\" , \"rtp.ext.ed137a.sct\" , FT_UINT32 , BASE_DEC , NULL , 0x00080000 , NULL , HFILL }\n }\n , {\n & hf_rtp_hdr_ed137a_reserved , {\n \"Reserved\" , \"rtp.ext.ed137A.reserved\" , FT_UINT32 , BASE_HEX_DEC , NULL , 0x00060000 , NULL , HFILL }\n }\n , {\n & hf_rtp_hdr_ed137a_x , {\n \"X\" , \"rtp.ext.ed137A.x\" , FT_UINT32 , BASE_DEC , NULL , 0x00010000 , NULL , HFILL }\n }\n , {\n & hf_rtp_hdr_ed137a_x_nu , {\n \"Not used\" , \"rtp.ext.ed137A.x-nu\" , FT_UINT32 , BASE_DEC , NULL , 0x0000FFFF , NULL , HFILL }\n }\n , {\n & hf_rtp_hdr_ed137a_ft_type , {\n \"Feature type\" , \"rtp.ext.ed137A.ft.type\" , FT_UINT32 , BASE_HEX_DEC , VALS ( rtp_ext_ed137a_ft_type ) , 0x0000F000 , NULL , HFILL }\n }\n , {\n & hf_rtp_hdr_ed137a_ft_len , {\n \"Feature length\" , \"rtp.ext.ed137A.ft.len\" , FT_UINT32 , BASE_DEC , NULL , 0x00000F00 , NULL , HFILL }\n }\n , {\n & hf_rtp_hdr_ed137a_ft_value , {\n \"Feature value\" , \"rtp.ext.ed137A.ft.value\" , FT_UINT32 , BASE_HEX_DEC , NULL , 0x000000FF , NULL , HFILL }\n }\n , {\n & hf_rtp_hdr_ext , {\n \"Header extension\" , \"rtp.hdr_ext\" , FT_UINT32 , BASE_HEX_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rtp_data , {\n \"Payload\" , \"rtp.payload\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rtp_padding_data , {\n \"Padding data\" , \"rtp.padding.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rtp_padding_count , {\n \"Padding count\" , \"rtp.padding.count\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rtp_setup , {\n \"Stream setup\" , \"rtp.setup\" , FT_STRING , BASE_NONE , NULL , 0x0 , \"Stream setup, method and frame number\" , HFILL }\n }\n , {\n & hf_rtp_setup_frame , {\n \"Setup frame\" , \"rtp.setup-frame\" , FT_FRAMENUM , BASE_NONE , NULL , 0x0 , \"Frame that set up this stream\" , HFILL }\n }\n , {\n & hf_rtp_setup_method , {\n \"Setup Method\" , \"rtp.setup-method\" , FT_STRING , BASE_NONE , NULL , 0x0 , \"Method used to set up this stream\" , HFILL }\n }\n , {\n & hf_rtp_rfc2198_follow , {\n \"Follow\" , \"rtp.follow\" , FT_BOOLEAN , 8 , TFS ( & tfs_set_notset ) , 0x80 , \"Next header follows\" , HFILL }\n }\n , {\n & hf_rtp_rfc2198_tm_off , {\n \"Timestamp offset\" , \"rtp.timestamp-offset\" , FT_UINT16 , BASE_DEC , NULL , 0xFFFC , NULL , HFILL }\n }\n , {\n & hf_rtp_rfc2198_bl_len , {\n \"Block length\" , \"rtp.block-length\" , FT_UINT16 , BASE_DEC , NULL , 0x03FF , NULL , HFILL }\n }\n , {\n & hf_rtp_ext_rfc5285_id , {\n \"Identifier\" , \"rtp.ext.rfc5285.id\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , \"RFC 5285 Header Extension Identifier\" , HFILL }\n }\n , {\n & hf_rtp_ext_rfc5285_length , {\n \"Length\" , \"rtp.ext.rfc5285.len\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , \"RFC 5285 Header Extension length\" , HFILL }\n }\n , {\n & hf_rtp_ext_rfc5285_appbits , {\n \"Application Bits\" , \"rtp.ext.rfc5285.appbits\" , FT_UINT8 , BASE_DEC , NULL , 0x0 , \"RFC 5285 2-bytes header application bits\" , HFILL }\n }\n , {\n & hf_rtp_ext_rfc5285_data , {\n \"Extension Data\" , \"rtp.ext.rfc5285.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , \"RFC 5285 Extension Data\" , HFILL }\n }\n , {\n & hf_rtp_fragments , {\n \"RTP Fragments\" , \"rtp.fragments\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rtp_fragment , {\n \"RTP Fragment data\" , \"rtp.fragment\" , FT_FRAMENUM , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rtp_fragment_overlap , {\n \"Fragment overlap\" , \"rtp.fragment.overlap\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , \"Fragment overlaps with other fragments\" , HFILL }\n }\n , {\n & hf_rtp_fragment_overlap_conflict , {\n \"Conflicting data in fragment overlap\" , \"rtp.fragment.overlap.conflict\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , \"Overlapping fragments contained conflicting data\" , HFILL }\n }\n , {\n & hf_rtp_fragment_multiple_tails , {\n \"Multiple tail fragments found\" , \"rtp.fragment.multipletails\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , \"Several tails were found when defragmenting the packet\" , HFILL }\n }\n , {\n & hf_rtp_fragment_too_long_fragment , {\n \"Fragment too long\" , \"rtp.fragment.toolongfragment\" , FT_BOOLEAN , BASE_NONE , NULL , 0x0 , \"Fragment contained data past end of packet\" , HFILL }\n }\n , {\n & hf_rtp_fragment_error , {\n \"Defragmentation error\" , \"rtp.fragment.error\" , FT_FRAMENUM , BASE_NONE , NULL , 0x0 , \"Defragmentation error due to illegal fragments\" , HFILL }\n }\n , {\n & hf_rtp_fragment_count , {\n \"Fragment count\" , \"rtp.fragment.count\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_rtp_reassembled_in , {\n \"RTP fragment, reassembled in frame\" , \"rtp.reassembled_in\" , FT_FRAMENUM , BASE_NONE , NULL , 0x0 , \"This RTP packet is reassembled in this frame\" , HFILL }\n }\n , {\n & hf_rtp_reassembled_length , {\n \"Reassembled RTP length\" , \"rtp.reassembled.length\" , FT_UINT32 , BASE_DEC , NULL , 0x0 , \"The total length of the reassembled payload\" , HFILL }\n }\n , {\n & hf_srtp_encrypted_payload , {\n \"SRTP Encrypted Payload\" , \"srtp.enc_payload\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_srtp_mki , {\n \"SRTP MKI\" , \"srtp.mki\" , FT_BYTES , BASE_NONE , NULL , 0x0 , \"SRTP Master Key Index\" , HFILL }\n }\n , {\n & hf_srtp_auth_tag , {\n \"SRTP Auth Tag\" , \"srtp.auth_tag\" , FT_BYTES , BASE_NONE , NULL , 0x0 , \"SRTP Authentication Tag\" , HFILL }\n }\n }\n ;\n static gint * ett [ ] = {\n & ett_rtp , & ett_csrc_list , & ett_hdr_ext , & ett_hdr_ext_rfc5285 , & ett_hdr_ext_ed137s , & ett_hdr_ext_ed137 , & ett_hdr_ext_ed137a , & ett_rtp_setup , & ett_rtp_rfc2198 , & ett_rtp_rfc2198_hdr , & ett_rtp_fragment , & ett_rtp_fragments }\n ;\n module_t * rtp_module ;\n proto_rtp = proto_register_protocol ( \"Real-Time Transport Protocol\" , \"RTP\" , \"rtp\" ) ;\n proto_register_field_array ( proto_rtp , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n new_register_dissector ( \"rtp\" , dissect_rtp , proto_rtp ) ;\n register_dissector ( \"rtp.rfc2198\" , dissect_rtp_rfc2198 , proto_rtp ) ;\n rtp_tap = register_tap ( \"rtp\" ) ;\n rtp_pt_dissector_table = register_dissector_table ( \"rtp.pt\" , \"RTP payload type\" , FT_UINT8 , BASE_DEC ) ;\n rtp_dyn_pt_dissector_table = register_dissector_table ( \"rtp_dyn_payload_type\" , \"Dynamic RTP payload type\" , FT_STRING , BASE_NONE ) ;\n rtp_hdr_ext_dissector_table = register_dissector_table ( \"rtp.hdr_ext\" , \"RTP header extension\" , FT_UINT32 , BASE_HEX ) ;\n rtp_hdr_ext_rfc5285_dissector_table = register_dissector_table ( \"rtp.ext.rfc5285.id\" , \"RTP Generic header extension (RFC 5285)\" , FT_UINT8 , BASE_DEC ) ;\n register_dissector ( \"rtp.ext.ed137\" , dissect_rtp_hdr_ext_ed137 , proto_rtp ) ;\n register_dissector ( \"rtp.ext.ed137a\" , dissect_rtp_hdr_ext_ed137a , proto_rtp ) ;\n rtp_module = prefs_register_protocol ( proto_rtp , proto_reg_handoff_rtp ) ;\n prefs_register_bool_preference ( rtp_module , \"show_setup_info\" , \"Show stream setup information\" , \"Where available, show which protocol and frame caused \" \"this RTP stream to be created\" , & global_rtp_show_setup_info ) ;\n prefs_register_bool_preference ( rtp_module , \"heuristic_rtp\" , \"Try to decode RTP outside of conversations\" , \"If call control SIP/H323/RTSP/.. messages are missing in the trace, \" \"RTP isn't decoded without this\" , & global_rtp_heur ) ;\n prefs_register_bool_preference ( rtp_module , \"desegment_rtp_streams\" , \"Allow subdissector to reassemble RTP streams\" , \"Whether subdissector can request RTP streams to be reassembled\" , & desegment_rtp ) ;\n prefs_register_enum_preference ( rtp_module , \"version0_type\" , \"Treat RTP version 0 packets as\" , \"If an RTP version 0 packet is encountered, it can be treated as \" \"an invalid or ZRTP packet, a CLASSIC-STUN packet, or a T.38 packet\" , & global_rtp_version0_type , rtp_version0_types , FALSE ) ;\n prefs_register_uint_preference ( rtp_module , \"rfc2198_payload_type\" , \"Payload Type for RFC2198\" , \"Payload Type for RFC2198 Redundant Audio Data\" , 10 , & rtp_rfc2198_pt ) ;\n register_init_routine ( rtp_fragment_init ) ;\n }"}
{"idx": 17237, "target": 1, "func": "static void dissect_coap_opt_object_security ( tvbuff_t * tvb , proto_item * head_item , proto_tree * subtree , gint offset , gint opt_length , packet_info * pinfo , coap_info * coinfo , coap_common_dissect_t * dissect_hf ) {\n guint8 flag_byte = 0 ;\n gboolean non_compressed = FALSE ;\n gboolean expand = FALSE ;\n gboolean signature_present = FALSE ;\n gboolean kid_context_present = FALSE ;\n gboolean kid_present = FALSE ;\n guint8 piv_len = 0 ;\n guint8 kid_context_len = 0 ;\n guint8 kid_len = 0 ;\n coinfo -> object_security = TRUE ;\n coinfo -> oscore_info -> piv = NULL ;\n coinfo -> oscore_info -> kid_context = NULL ;\n coinfo -> oscore_info -> kid = NULL ;\n if ( opt_length == 0 ) {\n proto_item_append_text ( head_item , \": 00 (no Flag Byte)\" ) ;\n }\n else {\n flag_byte = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( subtree , dissect_hf -> hf . opt_object_security_non_compressed , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n non_compressed = flag_byte & COAP_OBJECT_SECURITY_NON_COMPRESSED_MASK ;\n proto_tree_add_item ( subtree , dissect_hf -> hf . opt_object_security_expand , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n expand = flag_byte & COAP_OBJECT_SECURITY_EXPAND_MASK ;\n proto_tree_add_item ( subtree , dissect_hf -> hf . opt_object_security_signature , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n signature_present = flag_byte & COAP_OBJECT_SECURITY_SIGNATURE_MASK ;\n proto_tree_add_item ( subtree , dissect_hf -> hf . opt_object_security_kid_context_present , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n kid_context_present = flag_byte & COAP_OBJECT_SECURITY_KID_CONTEXT_MASK ;\n proto_tree_add_item ( subtree , dissect_hf -> hf . opt_object_security_kid_present , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n kid_present = flag_byte & COAP_OBJECT_SECURITY_KID_MASK ;\n proto_tree_add_item ( subtree , dissect_hf -> hf . opt_object_security_piv_len , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n piv_len = ( flag_byte & COAP_OBJECT_SECURITY_PIVLEN_MASK ) >> 0 ;\n kid_len = opt_length ;\n offset += 1 ;\n kid_len -= 1 ;\n if ( non_compressed || expand || signature_present ) {\n expert_add_info_format ( pinfo , subtree , & dissect_hf -> ei . opt_object_security_bad , \"Unsupported format\" ) ;\n }\n if ( piv_len > 0 ) {\n proto_tree_add_item ( subtree , dissect_hf -> hf . opt_object_security_piv , tvb , offset , piv_len , ENC_NA ) ;\n coinfo -> oscore_info -> piv = ( guint8 * ) tvb_memdup ( wmem_packet_scope ( ) , tvb , offset , piv_len ) ;\n coinfo -> oscore_info -> piv_len = piv_len ;\n offset += piv_len ;\n kid_len -= piv_len ;\n }\n if ( kid_context_present ) {\n proto_tree_add_item ( subtree , dissect_hf -> hf . opt_object_security_kid_context_len , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n kid_context_len = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n kid_len -= 1 ;\n proto_tree_add_item ( subtree , dissect_hf -> hf . opt_object_security_kid_context , tvb , offset , kid_context_len , ENC_NA ) ;\n coinfo -> oscore_info -> kid_context = ( guint8 * ) tvb_memdup ( wmem_packet_scope ( ) , tvb , offset , kid_context_len ) ;\n coinfo -> oscore_info -> kid_context_len = kid_context_len ;\n offset += kid_context_len ;\n kid_len -= kid_context_len ;\n }\n if ( kid_present ) {\n if ( kid_len > 0 ) {\n proto_tree_add_item ( subtree , dissect_hf -> hf . opt_object_security_kid , tvb , offset , kid_len , ENC_NA ) ;\n coinfo -> oscore_info -> kid = ( guint8 * ) tvb_memdup ( wmem_packet_scope ( ) , tvb , offset , kid_len ) ;\n coinfo -> oscore_info -> kid_len = kid_len ;\n }\n else {\n expert_add_info_format ( pinfo , subtree , & dissect_hf -> ei . opt_object_security_bad , \"Key ID flag is set but there are no remaining bytes to be processed\" ) ;\n }\n }\n proto_item_append_text ( head_item , \": Key ID:%s, Key ID Context:%s, Partial IV:%s\" , coinfo -> oscore_info -> kid == NULL ? nullstr : bytes_to_str ( wmem_packet_scope ( ) , coinfo -> oscore_info -> kid , coinfo -> oscore_info -> kid_len ) , coinfo -> oscore_info -> kid_context == NULL ? nullstr : bytes_to_str ( wmem_packet_scope ( ) , coinfo -> oscore_info -> kid_context , coinfo -> oscore_info -> kid_context_len ) , coinfo -> oscore_info -> piv == NULL ? nullstr : bytes_to_str ( wmem_packet_scope ( ) , coinfo -> oscore_info -> piv , coinfo -> oscore_info -> piv_len ) ) ;\n }\n }"}
{"idx": 17238, "target": 0, "func": "static void nb_resp_corrl ( tvbuff_t * tvb , int offset , proto_tree * tree ) {\n proto_tree_add_item ( tree , hf_netb_resp_corrl , tvb , offset + NB_RESP_CORL , 2 , ENC_LITTLE_ENDIAN ) ;\n }"}
{"idx": 17239, "target": 1, "func": "IN_PROC_BROWSER_TEST_P ( BrowserCloseManagerWithDownloadsBrowserTest , TestWithDownloadsFromDifferentProfiles ) {\n ProfileManager * profile_manager = g_browser_process -> profile_manager ( ) ;\n Profile * other_profile = nullptr ;\n {\n base : : FilePath path = profile_manager -> user_data_dir ( ) . AppendASCII ( \"test_profile\" ) ;\n base : : ScopedAllowBlockingForTesting allow_blocking ;\n if ( ! base : : PathExists ( path ) ) ASSERT_TRUE ( base : : CreateDirectory ( path ) ) ;\n other_profile = Profile : : CreateProfile ( path , NULL , Profile : : CREATE_MODE_SYNCHRONOUS ) ;\n }\n profile_manager -> RegisterTestingProfile ( other_profile , true , false ) ;\n Browser * other_profile_browser = CreateBrowser ( other_profile ) ;\n SetDownloadPathForProfile ( browser ( ) -> profile ( ) ) ;\n SetDownloadPathForProfile ( other_profile ) ;\n ASSERT_NO_FATAL_FAILURE ( CreateStalledDownload ( browser ( ) ) ) ;\n {\n RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , 1 ) ;\n browser ( ) -> window ( ) -> Close ( ) ;\n close_observer . Wait ( ) ;\n }\n ui_test_utils : : BrowserAddedObserver new_browser_observer ;\n TestBrowserCloseManager : : AttemptClose ( TestBrowserCloseManager : : USER_CHOICE_USER_CANCELS_CLOSE ) ;\n EXPECT_FALSE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n Browser * opened_browser = new_browser_observer . WaitForSingleNewBrowser ( ) ;\n EXPECT_EQ ( GURL ( chrome : : kChromeUIDownloadsURL ) , opened_browser -> tab_strip_model ( ) -> GetActiveWebContents ( ) -> GetURL ( ) ) ;\n EXPECT_EQ ( GURL ( \"about:blank\" ) , other_profile_browser -> tab_strip_model ( ) -> GetActiveWebContents ( ) -> GetURL ( ) ) ;\n RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , 2 ) ;\n TestBrowserCloseManager : : AttemptClose ( TestBrowserCloseManager : : USER_CHOICE_USER_ALLOWS_CLOSE ) ;\n close_observer . Wait ( ) ;\n EXPECT_TRUE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_TRUE ( BrowserList : : GetInstance ( ) -> empty ( ) ) ;\n if ( browser_defaults : : kBrowserAliveWithNoWindows ) EXPECT_EQ ( 1 , DownloadCoreService : : NonMaliciousDownloadCountAllProfiles ( ) ) ;\n else EXPECT_EQ ( 0 , DownloadCoreService : : NonMaliciousDownloadCountAllProfiles ( ) ) ;\n }"}
{"idx": 17240, "target": 0, "func": "static int dissect_pvfs2_mkdir_request ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n guint count , i ;\n offset = dissect_pvfs_fs_id ( tvb , tree , offset ) ;\n offset += 4 ;\n offset = dissect_pvfs_object_attr ( tvb , tree , offset , pinfo ) ;\n count = tvb_get_letohl ( tvb , offset ) ;\n offset += 4 ;\n for ( i = 0 ;\n i < count ;\n i ++ ) offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"handle\" , NULL ) ;\n return offset ;\n }"}
{"idx": 17241, "target": 0, "func": "static bool contain_nonstrict_functions_checker ( Oid func_id , void * context ) {\n return ! func_strict ( func_id ) ;\n }"}
{"idx": 17242, "target": 1, "func": "static void erase_screen ( AVCodecContext * avctx ) {\n AnsiContext * s = avctx -> priv_data ;\n int i ;\n for ( i = 0 ;\n i < avctx -> height ;\n i ++ ) memset ( s -> frame . data [ 0 ] + i * s -> frame . linesize [ 0 ] , DEFAULT_BG_COLOR , avctx -> width ) ;\n s -> x = s -> y = 0 ;\n }"}
{"idx": 17243, "target": 0, "func": "extern List as_mysql_get_cluster_events ( mysql_conn_t * mysql_conn , uint32_t uid , slurmdb_event_cond_t * event_cond ) {\n char * query = NULL ;\n char * extra = NULL ;\n char * tmp = NULL ;\n List ret_list = NULL ;\n ListIterator itr = NULL ;\n char * object = NULL ;\n int set = 0 ;\n int i = 0 ;\n MYSQL_RES * result = NULL ;\n MYSQL_ROW row ;\n time_t now = time ( NULL ) ;\n List use_cluster_list = as_mysql_cluster_list ;\n char * event_req_inx [ ] = {\n \"cluster_nodes\" , \"node_name\" , \"state\" , \"time_start\" , \"time_end\" , \"reason\" , \"reason_uid\" , \"tres\" , }\n ;\n enum {\n EVENT_REQ_CNODES , EVENT_REQ_NODE , EVENT_REQ_STATE , EVENT_REQ_START , EVENT_REQ_END , EVENT_REQ_REASON , EVENT_REQ_REASON_UID , EVENT_REQ_TRES , EVENT_REQ_COUNT }\n ;\n if ( check_connection ( mysql_conn ) != SLURM_SUCCESS ) return NULL ;\n if ( ! event_cond ) goto empty ;\n if ( event_cond -> cpus_min ) {\n if ( extra ) xstrcat ( extra , \" && (\" ) ;\n else xstrcat ( extra , \" where (\" ) ;\n if ( event_cond -> cpus_max ) {\n xstrfmtcat ( extra , \"count between %u and %u)\" , event_cond -> cpus_min , event_cond -> cpus_max ) ;\n }\n else {\n xstrfmtcat ( extra , \"count='%u')\" , event_cond -> cpus_min ) ;\n }\n }\n switch ( event_cond -> event_type ) {\n case SLURMDB_EVENT_ALL : break ;\n case SLURMDB_EVENT_CLUSTER : if ( extra ) xstrcat ( extra , \" && (\" ) ;\n else xstrcat ( extra , \" where (\" ) ;\n xstrcat ( extra , \"node_name = '')\" ) ;\n break ;\n case SLURMDB_EVENT_NODE : if ( extra ) xstrcat ( extra , \" && (\" ) ;\n else xstrcat ( extra , \" where (\" ) ;\n xstrcat ( extra , \"node_name != '')\" ) ;\n break ;\n default : error ( \"Unknown event %u doing all\" , event_cond -> event_type ) ;\n break ;\n }\n if ( event_cond -> node_list && list_count ( event_cond -> node_list ) ) {\n set = 0 ;\n if ( extra ) xstrcat ( extra , \" && (\" ) ;\n else xstrcat ( extra , \" where (\" ) ;\n itr = list_iterator_create ( event_cond -> node_list ) ;\n while ( ( object = list_next ( itr ) ) ) {\n if ( set ) xstrcat ( extra , \" || \" ) ;\n xstrfmtcat ( extra , \"node_name='%s'\" , object ) ;\n set = 1 ;\n }\n list_iterator_destroy ( itr ) ;\n xstrcat ( extra , \")\" ) ;\n }\n if ( event_cond -> period_start ) {\n if ( ! event_cond -> period_end ) event_cond -> period_end = now ;\n if ( extra ) xstrcat ( extra , \" && (\" ) ;\n else xstrcat ( extra , \" where (\" ) ;\n xstrfmtcat ( extra , \"(time_start < %ld) \" \"&& (time_end >= %ld || time_end = 0))\" , event_cond -> period_end , event_cond -> period_start ) ;\n }\n if ( event_cond -> reason_list && list_count ( event_cond -> reason_list ) ) {\n set = 0 ;\n if ( extra ) xstrcat ( extra , \" && (\" ) ;\n else xstrcat ( extra , \" where (\" ) ;\n itr = list_iterator_create ( event_cond -> reason_list ) ;\n while ( ( object = list_next ( itr ) ) ) {\n if ( set ) xstrcat ( extra , \" || \" ) ;\n xstrfmtcat ( extra , \"reason like '%%%s%%'\" , object ) ;\n set = 1 ;\n }\n list_iterator_destroy ( itr ) ;\n xstrcat ( extra , \")\" ) ;\n }\n if ( event_cond -> reason_uid_list && list_count ( event_cond -> reason_uid_list ) ) {\n set = 0 ;\n if ( extra ) xstrcat ( extra , \" && (\" ) ;\n else xstrcat ( extra , \" where (\" ) ;\n itr = list_iterator_create ( event_cond -> reason_uid_list ) ;\n while ( ( object = list_next ( itr ) ) ) {\n if ( set ) xstrcat ( extra , \" || \" ) ;\n xstrfmtcat ( extra , \"reason_uid='%s'\" , object ) ;\n set = 1 ;\n }\n list_iterator_destroy ( itr ) ;\n xstrcat ( extra , \")\" ) ;\n }\n if ( event_cond -> state_list && list_count ( event_cond -> state_list ) ) {\n set = 0 ;\n if ( extra ) xstrcat ( extra , \" && (\" ) ;\n else xstrcat ( extra , \" where (\" ) ;\n itr = list_iterator_create ( event_cond -> state_list ) ;\n while ( ( object = list_next ( itr ) ) ) {\n if ( set ) xstrcat ( extra , \" || \" ) ;\n xstrfmtcat ( extra , \"state='%s'\" , object ) ;\n set = 1 ;\n }\n list_iterator_destroy ( itr ) ;\n xstrcat ( extra , \")\" ) ;\n }\n if ( event_cond -> cluster_list && list_count ( event_cond -> cluster_list ) ) use_cluster_list = event_cond -> cluster_list ;\n empty : xfree ( tmp ) ;\n xstrfmtcat ( tmp , \"%s\" , event_req_inx [ 0 ] ) ;\n for ( i = 1 ;\n i < EVENT_REQ_COUNT ;\n i ++ ) {\n xstrfmtcat ( tmp , \", %s\" , event_req_inx [ i ] ) ;\n }\n if ( use_cluster_list == as_mysql_cluster_list ) slurm_mutex_lock ( & as_mysql_cluster_list_lock ) ;\n ret_list = list_create ( slurmdb_destroy_event_rec ) ;\n itr = list_iterator_create ( use_cluster_list ) ;\n while ( ( object = list_next ( itr ) ) ) {\n query = xstrdup_printf ( \"select %s from \\\"%s_%s\\\"\" , tmp , object , event_table ) ;\n if ( extra ) xstrfmtcat ( query , \" %s\" , extra ) ;\n if ( debug_flags & DEBUG_FLAG_DB_ASSOC ) DB_DEBUG ( mysql_conn -> conn , \"query\\n%s\" , query ) ;\n if ( ! ( result = mysql_db_query_ret ( mysql_conn , query , 0 ) ) ) {\n xfree ( query ) ;\n if ( mysql_errno ( mysql_conn -> db_conn ) != ER_NO_SUCH_TABLE ) {\n FREE_NULL_LIST ( ret_list ) ;\n ret_list = NULL ;\n }\n break ;\n }\n xfree ( query ) ;\n while ( ( row = mysql_fetch_row ( result ) ) ) {\n slurmdb_event_rec_t * event = xmalloc ( sizeof ( slurmdb_event_rec_t ) ) ;\n list_append ( ret_list , event ) ;\n event -> cluster = xstrdup ( object ) ;\n if ( row [ EVENT_REQ_NODE ] && row [ EVENT_REQ_NODE ] [ 0 ] ) {\n event -> node_name = xstrdup ( row [ EVENT_REQ_NODE ] ) ;\n event -> event_type = SLURMDB_EVENT_NODE ;\n }\n else event -> event_type = SLURMDB_EVENT_CLUSTER ;\n event -> state = slurm_atoul ( row [ EVENT_REQ_STATE ] ) ;\n event -> period_start = slurm_atoul ( row [ EVENT_REQ_START ] ) ;\n event -> period_end = slurm_atoul ( row [ EVENT_REQ_END ] ) ;\n if ( row [ EVENT_REQ_REASON ] && row [ EVENT_REQ_REASON ] [ 0 ] ) event -> reason = xstrdup ( row [ EVENT_REQ_REASON ] ) ;\n event -> reason_uid = slurm_atoul ( row [ EVENT_REQ_REASON_UID ] ) ;\n if ( row [ EVENT_REQ_CNODES ] && row [ EVENT_REQ_CNODES ] [ 0 ] ) event -> cluster_nodes = xstrdup ( row [ EVENT_REQ_CNODES ] ) ;\n if ( row [ EVENT_REQ_TRES ] && row [ EVENT_REQ_TRES ] [ 0 ] ) event -> tres_str = xstrdup ( row [ EVENT_REQ_TRES ] ) ;\n }\n mysql_free_result ( result ) ;\n }\n list_iterator_destroy ( itr ) ;\n xfree ( tmp ) ;\n xfree ( extra ) ;\n if ( use_cluster_list == as_mysql_cluster_list ) slurm_mutex_unlock ( & as_mysql_cluster_list_lock ) ;\n return ret_list ;\n }"}
{"idx": 17244, "target": 1, "func": "static void h245_setup_channels ( packet_info * pinfo , channel_info_t * upcoming_channel_lcl ) {\n gint * key ;\n GHashTable * rtp_dyn_payload = NULL ;\n struct srtp_info * dummy_srtp_info = NULL ;\n if ( ! upcoming_channel_lcl ) return ;\n if ( ! strcmp ( upcoming_channel_lcl -> data_type_str , \"t38fax\" ) ) {\n if ( upcoming_channel_lcl -> media_addr . addr . type != AT_NONE && upcoming_channel_lcl -> media_addr . port != 0 ) {\n t38_add_address ( pinfo , & upcoming_channel_lcl -> media_addr . addr , upcoming_channel_lcl -> media_addr . port , 0 , \"H245\" , pinfo -> fd -> num ) ;\n }\n return ;\n }\n if ( upcoming_channel_lcl -> rfc2198 > 0 ) {\n encoding_name_and_rate_t * encoding_name_and_rate = wmem_new ( wmem_file_scope ( ) , encoding_name_and_rate_t ) ;\n rtp_dyn_payload = g_hash_table_new ( g_int_hash , g_int_equal ) ;\n encoding_name_and_rate -> encoding_name = wmem_strdup ( wmem_file_scope ( ) , \"red\" ) ;\n encoding_name_and_rate -> sample_rate = 8000 ;\n key = wmem_new ( wmem_file_scope ( ) , gint ) ;\n * key = upcoming_channel_lcl -> rfc2198 ;\n g_hash_table_insert ( rtp_dyn_payload , key , encoding_name_and_rate ) ;\n }\n if ( upcoming_channel_lcl -> srtp_flag ) {\n dummy_srtp_info = wmem_new0 ( wmem_file_scope ( ) , struct srtp_info ) ;\n }\n if ( upcoming_channel_lcl -> media_addr . addr . type != AT_NONE && upcoming_channel_lcl -> media_addr . port != 0 ) {\n srtp_add_address ( pinfo , & upcoming_channel_lcl -> media_addr . addr , upcoming_channel_lcl -> media_addr . port , 0 , \"H245\" , pinfo -> fd -> num , upcoming_channel_lcl -> is_video , rtp_dyn_payload , dummy_srtp_info ) ;\n }\n if ( upcoming_channel_lcl -> media_control_addr . addr . type != AT_NONE && upcoming_channel_lcl -> media_control_addr . port != 0 && rtcp_handle ) {\n srtcp_add_address ( pinfo , & upcoming_channel_lcl -> media_control_addr . addr , upcoming_channel_lcl -> media_control_addr . port , 0 , \"H245\" , pinfo -> fd -> num , dummy_srtp_info ) ;\n }\n }"}
{"idx": 17245, "target": 0, "func": "int curl_msnprintf ( char * buffer , size_t maxlength , const char * format , ... ) {\n int retcode ;\n va_list ap_save ;\n va_start ( ap_save , format ) ;\n retcode = curl_mvsnprintf ( buffer , maxlength , format , ap_save ) ;\n va_end ( ap_save ) ;\n return retcode ;\n }"}
{"idx": 17246, "target": 0, "func": "TEST_F ( WebUsbDetectorTest , UsbDeviceWasThereBeforeAndThenRemoved ) {\n GURL landing_page ( kLandingPage_1 ) ;\n scoped_refptr < device : : MockUsbDevice > device ( new device : : MockUsbDevice ( 0 , 1 , \"Google\" , kProductName_1 , \"002\" , landing_page ) ) ;\n std : : string guid = device -> guid ( ) ;\n device_client_ . usb_service ( ) -> AddDevice ( device ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid ) == nullptr ) ;\n Initialize ( ) ;\n device_client_ . usb_service ( ) -> RemoveDevice ( device ) ;\n EXPECT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid ) == nullptr ) ;\n }"}
{"idx": 17247, "target": 0, "func": "static inline void e1000e_process_snap_option ( E1000ECore * core , uint32_t cmd_and_length ) {\n if ( cmd_and_length & E1000_TXD_CMD_SNAP ) {\n trace_e1000e_wrn_no_snap_support ( ) ;\n }\n }"}
{"idx": 17248, "target": 0, "func": "static void pdf_run_S ( fz_context * ctx , pdf_processor * proc ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_show_path ( ctx , pr , 0 , 0 , 1 , 0 ) ;\n }"}
{"idx": 17249, "target": 0, "func": "bool kvm_enable_x2apic ( void ) {\n return MEMORIZE ( kvm_x2apic_api_set_flags ( KVM_X2APIC_API_USE_32BIT_IDS | KVM_X2APIC_API_DISABLE_BROADCAST_QUIRK ) , has_x2apic_api ) ;\n }"}
{"idx": 17250, "target": 0, "func": "static guint pvfs2_io_tracking_hash ( gconstpointer k ) {\n const pvfs2_io_tracking_key_t * key = ( const pvfs2_io_tracking_key_t * ) k ;\n return ( guint ) ( ( key -> tag >> 32 ) ^ ( ( guint32 ) key -> tag ) ) ;\n }"}
{"idx": 17251, "target": 1, "func": "static ossl_inline LHASH_OF ( type ) * lh_ ## type ## _new ( unsigned long ( * hfn ) ( const type * ) , int ( * cfn ) ( const type * , const type * ) ) {\n return ( LHASH_OF ( type ) * ) OPENSSL_LH_new ( ( OPENSSL_LH_HASHFUNC ) hfn , ( OPENSSL_LH_COMPFUNC ) cfn ) ;\n }\n static ossl_inline void lh_ ## type ## _free ( LHASH_OF ( type ) * lh ) {\n OPENSSL_LH_free ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline type * lh_ ## type ## _insert ( LHASH_OF ( type ) * lh , type * d ) {\n return ( type * ) OPENSSL_LH_insert ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline type * lh_ ## type ## _delete ( LHASH_OF ( type ) * lh , const type * d ) {\n return ( type * ) OPENSSL_LH_delete ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline type * lh_ ## type ## _retrieve ( LHASH_OF ( type ) * lh , const type * d ) {\n return ( type * ) OPENSSL_LH_retrieve ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline int lh_ ## type ## _error ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_error ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _num_items ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_num_items ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _node_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _node_usage_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_usage_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING ) ;\n # ifdef _MSC_VER # pragma warning ( push ) # pragma warning ( disable : 4090 ) # endif DEFINE_LHASH_OF ( OPENSSL_CSTRING )"}
{"idx": 17252, "target": 0, "func": "static void data_destroy_hangul ( void * data ) {\n free ( data ) ;\n }"}
{"idx": 17253, "target": 0, "func": "void proto_register_btavdtp ( void ) {\n module_t * module ;\n static hf_register_info hf [ ] = {\n {\n & hf_btavdtp_signal , {\n \"Signal\" , \"btavdtp.signal\" , FT_NONE , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_message_type , {\n \"Message Type\" , \"btavdtp.message_type\" , FT_UINT8 , BASE_HEX , VALS ( message_type_vals ) , AVDTP_MESSAGE_TYPE_MASK , NULL , HFILL }\n }\n , {\n & hf_btavdtp_packet_type , {\n \"Packet Type\" , \"btavdtp.packet_type\" , FT_UINT8 , BASE_HEX , VALS ( packet_type_vals ) , AVDTP_PACKET_TYPE_MASK , NULL , HFILL }\n }\n , {\n & hf_btavdtp_transaction , {\n \"Transaction\" , \"btavdtp.transaction\" , FT_UINT8 , BASE_HEX , NULL , AVDTP_TRANSACTION_MASK , NULL , HFILL }\n }\n , {\n & hf_btavdtp_signal_id , {\n \"Signal\" , \"btavdtp.signal_id\" , FT_UINT8 , BASE_HEX , VALS ( signal_id_vals ) , AVDTP_SIGNAL_ID_MASK , NULL , HFILL }\n }\n , {\n & hf_btavdtp_rfa0 , {\n \"RFA\" , \"btavdtp.rfa0\" , FT_UINT8 , BASE_HEX , NULL , AVDTP_RFA0_MASK , NULL , HFILL }\n }\n , {\n & hf_btavdtp_number_of_signal_packets , {\n \"Number of signal packets\" , \"btavdtp.num_signal_packets\" , FT_UINT8 , BASE_DEC , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_error_code , {\n \"Error Code\" , \"btavdtp.error_code\" , FT_UINT8 , BASE_HEX , VALS ( error_code_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_sep_seid , {\n \"SEID\" , \"btavdtp.sep_seid\" , FT_UINT8 , BASE_DEC , NULL , 0xFC , NULL , HFILL }\n }\n , {\n & hf_btavdtp_sep_inuse , {\n \"In Use\" , \"btavdtp.sep_inuse\" , FT_UINT8 , BASE_HEX , VALS ( true_false ) , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_sep_rfa0 , {\n \"RFA0\" , \"btavdtp.sep_rfa0\" , FT_UINT8 , BASE_HEX , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_sep_media_type , {\n \"Media Type\" , \"btavdtp.sep_media_type\" , FT_UINT8 , BASE_HEX , VALS ( media_type_vals ) , 0xF0 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_sep_type , {\n \"Type\" , \"btavdtp.sep_type\" , FT_UINT8 , BASE_HEX , VALS ( sep_type_vals ) , 0x08 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_sep_rfa1 , {\n \"RFA1\" , \"btavdtp.sep_rfa1\" , FT_UINT8 , BASE_HEX , NULL , 0x07 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_acp_sep , {\n \"ACP SEP\" , \"btavdtp.acp_sep\" , FT_NONE , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_acp_seid_item , {\n \"ACP SEID\" , \"btavdtp.acp_seid_item\" , FT_NONE , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_int_seid_item , {\n \"INT SEID\" , \"btavdtp.int_seid_item\" , FT_NONE , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_acp_seid , {\n \"ACP SEID\" , \"btavdtp.acp_seid\" , FT_UINT8 , BASE_DEC , NULL , 0xFC , NULL , HFILL }\n }\n , {\n & hf_btavdtp_int_seid , {\n \"INT SEID\" , \"btavdtp.int_seid\" , FT_UINT8 , BASE_DEC , NULL , 0xFC , NULL , HFILL }\n }\n , {\n & hf_btavdtp_rfa_seid , {\n \"RFA\" , \"btavdtp.rfa_seid\" , FT_UINT8 , BASE_HEX , NULL , 0x03 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_service_category , {\n \"Service Category\" , \"btavdtp.service_category\" , FT_UINT8 , BASE_HEX , VALS ( service_category_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_length_of_service_category , {\n \"Length of Service Category\" , \"btavdtp.length_of_service_category\" , FT_UINT8 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_delay , {\n \"Delay\" , \"btavdtp.delay\" , FT_UINT16 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_recovery_type , {\n \"Service Category\" , \"btavdtp.recovery_type\" , FT_UINT8 , BASE_HEX , VALS ( recovery_type_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_maximum_recovery_window_size , {\n \"Service Category\" , \"btavdtp.maximum_recovery_window_size\" , FT_UINT8 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_maximum_number_of_media_packet_in_parity_code , {\n \"Service Category\" , \"btavdtp.maximum_number_of_media_packet_in_parity_code\" , FT_UINT8 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_multiplexing_fragmentation , {\n \"Fragmentation\" , \"btavdtp.multiplexing_fragmentation\" , FT_UINT8 , BASE_HEX , VALS ( true_false ) , 0x80 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_multiplexing_rfa , {\n \"RFA\" , \"btavdtp.multiplexing_rfa\" , FT_UINT8 , BASE_HEX , NULL , 0x7F , NULL , HFILL }\n }\n , {\n & hf_btavdtp_multiplexing_tsid , {\n \"TSID\" , \"btavdtp.multiplexing_tsid\" , FT_UINT8 , BASE_HEX , VALS ( multiplexing_tsid_vals ) , 0xF8 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_multiplexing_tcid , {\n \"TCID\" , \"btavdtp.multiplexing_tcid\" , FT_UINT8 , BASE_HEX , VALS ( multiplexing_tcid_vals ) , 0xF8 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_multiplexing_entry_rfa , {\n \"RFA\" , \"btavdtp.multiplexing_entry_rfa\" , FT_UINT8 , BASE_HEX , NULL , 0x07 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_header_compression_backch , {\n \"BackCh\" , \"btavdtp.header_compression_backch\" , FT_UINT8 , BASE_HEX , VALS ( true_false ) , 0x80 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_header_compression_media , {\n \"Media\" , \"btavdtp.header_compression_media\" , FT_UINT8 , BASE_HEX , VALS ( true_false ) , 0x40 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_header_compression_recovery , {\n \"Recovery\" , \"btavdtp.header_compression_recovery\" , FT_UINT8 , BASE_HEX , VALS ( true_false ) , 0x20 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_header_compression_rfa , {\n \"RFA\" , \"btavdtp.header_compression_rfa\" , FT_UINT8 , BASE_HEX , NULL , 0x1f , NULL , HFILL }\n }\n , {\n & hf_btavdtp_content_protection_type , {\n \"Type\" , \"btavdtp.content_protection_type\" , FT_UINT16 , BASE_HEX , VALS ( content_protection_type_vals ) , 0x0000 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_media_codec_media_type , {\n \"Media Type\" , \"btavdtp.media_codec_media_type\" , FT_UINT8 , BASE_HEX , VALS ( media_type_vals ) , 0xF0 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_media_codec_rfa , {\n \"RFA\" , \"btavdtp.media_codec_rfa\" , FT_UINT8 , BASE_HEX , NULL , 0x0F , NULL , HFILL }\n }\n , {\n & hf_btavdtp_media_codec_audio_type , {\n \"Media Codec Audio Type\" , \"btavdtp.media_codec_audio_type\" , FT_UINT8 , BASE_HEX , VALS ( media_codec_audio_type_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_media_codec_video_type , {\n \"Media Codec Video Type\" , \"btavdtp.media_codec_video_type\" , FT_UINT8 , BASE_HEX , VALS ( media_codec_video_type_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_media_codec_unknown_type , {\n \"Media Codec Unknown Type\" , \"btavdtp.media_codec_unknown_type\" , FT_UINT8 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_sbc_sampling_frequency_16000 , {\n \"Sampling Frequency 16000 Hz\" , \"btavdtp.codec.sbc.sampling_frequency.16000\" , FT_BOOLEAN , 8 , NULL , 0x80 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_sbc_sampling_frequency_32000 , {\n \"Sampling Frequency 32000 Hz\" , \"btavdtp.codec.sbc.sampling_frequency.32000\" , FT_BOOLEAN , 8 , NULL , 0x40 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_sbc_sampling_frequency_44100 , {\n \"Sampling Frequency 44100 Hz\" , \"btavdtp.codec.sbc.sampling_frequency.44100\" , FT_BOOLEAN , 8 , NULL , 0x20 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_sbc_sampling_frequency_48000 , {\n \"Sampling Frequency 48000 Hz\" , \"btavdtp.codec.sbc.sampling_frequency.48000\" , FT_BOOLEAN , 8 , NULL , 0x10 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_sbc_channel_mode_mono , {\n \"Channel Mode Mono\" , \"btavdtp.codec.sbc.channel_mode.mono\" , FT_BOOLEAN , 8 , NULL , 0x08 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_sbc_channel_mode_dual_channel , {\n \"Channel Mode Dual Channel\" , \"btavdtp.codec.sbc.channel_mode.dual_channel\" , FT_BOOLEAN , 8 , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_sbc_channel_mode_stereo , {\n \"Channel Mode Stereo\" , \"btavdtp.codec.sbc.channel_mode.stereo\" , FT_BOOLEAN , 8 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_sbc_channel_mode_joint_stereo , {\n \"Channel Mode Joint Stereo\" , \"btavdtp.codec.sbc.channel_mode.joint_stereo\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_sbc_block_4 , {\n \"Block Length 4\" , \"btavdtp.codec.sbc.block.4\" , FT_BOOLEAN , 8 , NULL , 0x80 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_sbc_block_8 , {\n \"Block Length 8\" , \"btavdtp.codec.sbc.block.8\" , FT_BOOLEAN , 8 , NULL , 0x40 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_sbc_block_12 , {\n \"Block Length 12\" , \"btavdtp.codec.sbc.block.12\" , FT_BOOLEAN , 8 , NULL , 0x20 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_sbc_block_16 , {\n \"Block Length 16\" , \"btavdtp.codec.sbc.block.16\" , FT_BOOLEAN , 8 , NULL , 0x10 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_sbc_subbands_4 , {\n \"Subbands 4\" , \"btavdtp.codec.sbc.subbands.4\" , FT_BOOLEAN , 8 , NULL , 0x08 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_sbc_subbands_8 , {\n \"Subbands 8\" , \"btavdtp.codec.sbc.subbands.8\" , FT_BOOLEAN , 8 , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_sbc_allocation_method_snr , {\n \"Allocation Method SNR\" , \"btavdtp.codec.sbc.allocation_method.snr\" , FT_BOOLEAN , 8 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_sbc_allocation_method_loudness , {\n \"Allocation Method Loudness\" , \"btavdtp.codec.sbc.allocation_method.loudness\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_sbc_min_bitpool , {\n \"Minimum Bitpool\" , \"btavdtp.codec.sbc.minimum_bitpool\" , FT_UINT8 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_sbc_max_bitpool , {\n \"Maximum Bitpool\" , \"btavdtp.codec.sbc.maximum_bitpool\" , FT_UINT8 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg12_layer_1 , {\n \"MP1\" , \"btavdtp.codec.mpeg12.layer_1\" , FT_BOOLEAN , 8 , NULL , 0x80 , \"MPEG Layer 1\" , HFILL }\n }\n , {\n & hf_btavdtp_mpeg12_layer_2 , {\n \"MP2\" , \"btavdtp.codec.mpeg12.layer_2\" , FT_BOOLEAN , 8 , NULL , 0x40 , \"MPEG Layer 2\" , HFILL }\n }\n , {\n & hf_btavdtp_mpeg12_layer_3 , {\n \"MP3\" , \"btavdtp.codec.mpeg12.layer_3\" , FT_BOOLEAN , 8 , NULL , 0x20 , \"MPEG Layer 3\" , HFILL }\n }\n , {\n & hf_btavdtp_mpeg12_crc_protection , {\n \"CRC Protection\" , \"btavdtp.codec.mpeg12.crc_protection\" , FT_BOOLEAN , 8 , NULL , 0x10 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg12_channel_mode_mono , {\n \"Channel Mode Mono\" , \"btavdtp.codec.mpeg12.channel_mode.mono\" , FT_BOOLEAN , 8 , NULL , 0x08 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg12_channel_mode_dual_channel , {\n \"Channel Mode Dual Channel\" , \"btavdtp.codec.mpeg12.channel_mode.dual_channel\" , FT_BOOLEAN , 8 , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg12_channel_mode_stereo , {\n \"Channel Mode Stereo\" , \"btavdtp.codec.mpeg12.channel_mode.stereo\" , FT_BOOLEAN , 8 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg12_channel_mode_joint_stereo , {\n \"Channel Mode Joint Stereo\" , \"btavdtp.codec.mpeg12.channel_mode.joint_stereo\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg12_rfa , {\n \"RFA\" , \"btavdtp.codec.mpeg12.rfa\" , FT_BOOLEAN , 8 , NULL , 0x80 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg12_mpf_2 , {\n \"Media Payload Format 2\" , \"btavdtp.codec.mpeg12.mpf_2\" , FT_BOOLEAN , 8 , NULL , 0x40 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg12_sampling_frequency_16000 , {\n \"Sampling Frequency 16000 Hz\" , \"btavdtp.codec.sbc.sampling_frequency.16000\" , FT_BOOLEAN , 8 , NULL , 0x20 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg12_sampling_frequency_22050 , {\n \"Sampling Frequency 22050 Hz\" , \"btavdtp.codec.sbc.sampling_frequency.22050\" , FT_BOOLEAN , 8 , NULL , 0x10 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg12_sampling_frequency_24000 , {\n \"Sampling Frequency 24000 Hz\" , \"btavdtp.codec.sbc.sampling_frequency.24000\" , FT_BOOLEAN , 8 , NULL , 0x08 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg12_sampling_frequency_32000 , {\n \"Sampling Frequency 32000 Hz\" , \"btavdtp.codec.sbc.sampling_frequency.32000\" , FT_BOOLEAN , 8 , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg12_sampling_frequency_44100 , {\n \"Sampling Frequency 44100 Hz\" , \"btavdtp.codec.sbc.sampling_frequency.44100\" , FT_BOOLEAN , 8 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg12_sampling_frequency_48000 , {\n \"Sampling Frequency 48000 Hz\" , \"btavdtp.codec.sbc.sampling_frequency.48000\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg12_vbr_supported , {\n \"VBR Supported\" , \"btavdtp.codec.mpeg12.vbr\" , FT_BOOLEAN , 16 , NULL , 0x8000 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg12_bit_rate , {\n \"Bit Rate\" , \"btavdtp.codec.mpeg12.bit_rate\" , FT_UINT16 , BASE_HEX , NULL , 0x7FFF , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg24_object_type_mpeg2_aac_lc , {\n \"MPEG2 AAC LC\" , \"btavdtp.codec.mpeg24.object_type.mpeg2_aac_lc\" , FT_BOOLEAN , 8 , NULL , 0x80 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg24_object_type_mpeg4_aac_lc , {\n \"MPEG4 AAC LC\" , \"btavdtp.codec.mpeg24.object_type.mpeg4_aac_lc\" , FT_BOOLEAN , 8 , NULL , 0x40 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg24_object_type_mpeg4_aac_ltp , {\n \"MPEG4 AAC LTP\" , \"btavdtp.codec.mpeg24.object_type.mpeg4_aac_ltp\" , FT_BOOLEAN , 8 , NULL , 0x20 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg24_object_type_mpeg4_aac_scalable , {\n \"MPEG4 AAC Scalable\" , \"btavdtp.codec.mpeg24.object_type.mpeg4_aac_scalable\" , FT_BOOLEAN , 8 , NULL , 0x10 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg24_object_type_rfa , {\n \"RFA\" , \"btavdtp.codec.mpeg24.object_type.rfa\" , FT_UINT8 , BASE_HEX , NULL , 0x0F , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg24_sampling_frequency_8000 , {\n \"Sampling Frequency 8000 Hz\" , \"btavdtp.codec.mpeg24.sampling_frequency.8000\" , FT_BOOLEAN , 8 , NULL , 0x80 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg24_sampling_frequency_11025 , {\n \"Sampling Frequency 11025 Hz\" , \"btavdtp.codec.mpeg24.sampling_frequency.11025\" , FT_BOOLEAN , 8 , NULL , 0x40 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg24_sampling_frequency_12000 , {\n \"Sampling Frequency 12000 Hz\" , \"btavdtp.codec.mpeg24.sampling_frequency.12000\" , FT_BOOLEAN , 8 , NULL , 0x20 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg24_sampling_frequency_16000 , {\n \"Sampling Frequency 16000 Hz\" , \"btavdtp.codec.mpeg24.sampling_frequency.16000\" , FT_BOOLEAN , 8 , NULL , 0x10 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg24_sampling_frequency_22050 , {\n \"Sampling Frequency 22050 Hz\" , \"btavdtp.codec.mpeg24.sampling_frequency.22050\" , FT_BOOLEAN , 8 , NULL , 0x08 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg24_sampling_frequency_24000 , {\n \"Sampling Frequency 24000 Hz\" , \"btavdtp.codec.mpeg24.sampling_frequency.24000\" , FT_BOOLEAN , 8 , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg24_sampling_frequency_32000 , {\n \"Sampling Frequency 32000 Hz\" , \"btavdtp.codec.mpeg24.sampling_frequency.32000\" , FT_BOOLEAN , 8 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg24_sampling_frequency_44100 , {\n \"Sampling Frequency 44100 Hz\" , \"btavdtp.codec.mpeg24.sampling_frequency.44100\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg24_sampling_frequency_48000 , {\n \"Sampling Frequency 48000 Hz\" , \"btavdtp.codec.mpeg24.sampling_frequency.48000\" , FT_BOOLEAN , 8 , NULL , 0x80 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg24_sampling_frequency_64000 , {\n \"Sampling Frequency 64000 Hz\" , \"btavdtp.codec.mpeg24.sampling_frequency.64000\" , FT_BOOLEAN , 8 , NULL , 0x40 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg24_sampling_frequency_88200 , {\n \"Sampling Frequency 88200 Hz\" , \"btavdtp.codec.mpeg24.sampling_frequency.88200\" , FT_BOOLEAN , 8 , NULL , 0x20 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg24_sampling_frequency_96000 , {\n \"Sampling Frequency 96000 Hz\" , \"btavdtp.codec.mpeg24.sampling_frequency.96000\" , FT_BOOLEAN , 8 , NULL , 0x10 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg24_channels_1 , {\n \"Channels 1\" , \"btavdtp.codec.mpeg24.channels.1\" , FT_BOOLEAN , 8 , NULL , 0x08 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg24_channels_2 , {\n \"Channels 2\" , \"btavdtp.codec.mpeg24.channels.2\" , FT_BOOLEAN , 8 , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg24_rfa , {\n \"RFA\" , \"btavdtp.codec.mpeg24.rfa\" , FT_UINT8 , BASE_HEX , NULL , 0x03 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg24_vbr_supported , {\n \"VBR Supported\" , \"btavdtp.codec.mpeg24.vbr\" , FT_BOOLEAN , 24 , NULL , 0x800000 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg24_bit_rate , {\n \"Bit Rate\" , \"btavdtp.codec.mpeg24.bit_rate\" , FT_UINT24 , BASE_HEX , NULL , 0x7FFFFF , NULL , HFILL }\n }\n , {\n & hf_btavdtp_atrac_version , {\n \"Version\" , \"btavdtp.codec.atrac.version\" , FT_UINT8 , BASE_DEC , NULL , 0xE0 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_atrac_channel_mode_single_channel , {\n \"Channel Mode Single Channel\" , \"btavdtp.codec.atrac.channel_mode.single_channel\" , FT_BOOLEAN , 8 , NULL , 0x10 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_atrac_channel_mode_dual_channel , {\n \"Channel Mode Dual Channel\" , \"btavdtp.codec.atrac.channel_mode.dual_channel\" , FT_BOOLEAN , 8 , NULL , 0x08 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_atrac_channel_mode_joint_stereo , {\n \"Channel Mode Joint Stereo\" , \"btavdtp.codec.atrac.channel_mode.joint_stereo\" , FT_BOOLEAN , 8 , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_atrac_rfa1 , {\n \"RFA\" , \"btavdtp.codec.atrac.rfa1\" , FT_UINT8 , BASE_HEX , NULL , 0x03 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_atrac_rfa2 , {\n \"RFA\" , \"btavdtp.codec.atrac.rfa2\" , FT_UINT24 , BASE_HEX , NULL , 0xC00000 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_atrac_sampling_frequency_44100 , {\n \"Sampling Frequency 44100 Hz\" , \"btavdtp.codec.sbc.sampling_frequency.44100\" , FT_BOOLEAN , 24 , NULL , 0x200000 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_atrac_sampling_frequency_48000 , {\n \"Sampling Frequency 48000 Hz\" , \"btavdtp.codec.sbc.sampling_frequency.48000\" , FT_BOOLEAN , 24 , NULL , 0x100000 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_atrac_vbr_supported , {\n \"VBR Supported\" , \"btavdtp.codec.atrac.vbr\" , FT_BOOLEAN , 24 , NULL , 0x080000 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_atrac_bit_rate , {\n \"Bit Rate\" , \"btavdtp.codec.atrac.bit_rate\" , FT_UINT24 , BASE_HEX , NULL , 0x07FFFF , NULL , HFILL }\n }\n , {\n & hf_btavdtp_atrac_maximum_sul , {\n \"Maximum SUL\" , \"btavdtp.codec.atrac.maximum_sul\" , FT_UINT8 , BASE_DEC , NULL , 0x00 , \"Sound Unit Length (SUL) is one of the parameters that determine bit rate of the audio stream.\" , HFILL }\n }\n , {\n & hf_btavdtp_atrac_rfa3 , {\n \"RFA\" , \"btavdtp.codec.atrac.rfa3\" , FT_UINT8 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_h263_level_10 , {\n \"H264 Level 10\" , \"btavdtp.codec.h264.level.10\" , FT_BOOLEAN , 8 , NULL , 0x80 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_h263_level_20 , {\n \"H264 Level 20\" , \"btavdtp.codec.h264.level.20\" , FT_BOOLEAN , 8 , NULL , 0x40 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_h263_level_30 , {\n \"H264 Level 30\" , \"btavdtp.codec.h264.level.30\" , FT_BOOLEAN , 8 , NULL , 0x20 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_h263_level_rfa , {\n \"H264 Level RFA\" , \"btavdtp.codec.h264.level.rfa\" , FT_UINT8 , BASE_HEX , NULL , 0x1F , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg4_level_0 , {\n \"MPEG Level 0\" , \"btavdtp.codec.mpeg4.level.0\" , FT_BOOLEAN , 8 , NULL , 0x80 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg4_level_1 , {\n \"MPEG Level 1\" , \"btavdtp.codec.mpeg4.level.1\" , FT_BOOLEAN , 8 , NULL , 0x40 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg4_level_2 , {\n \"MPEG Level 2\" , \"btavdtp.codec.mpeg4.level.2\" , FT_BOOLEAN , 8 , NULL , 0x20 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg4_level_3 , {\n \"MPEG4 Level 3\" , \"btavdtp.codec.mpeg4.level.3\" , FT_BOOLEAN , 8 , NULL , 0x10 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_mpeg4_level_rfa , {\n \"MPEG4 Level RFA\" , \"btavdtp.codec.mpeg4.level.rfa\" , FT_UINT8 , BASE_HEX , NULL , 0x0F , NULL , HFILL }\n }\n , {\n & hf_btavdtp_vendor_id , {\n \"Vendor ID\" , \"btavdtp.codec.vendor.vendor_id\" , FT_UINT32 , BASE_HEX | BASE_EXT_STRING , & bluetooth_company_id_vals_ext , 0x00 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_vendor_specific_codec_id , {\n \"Codec\" , \"btavdtp.codec.vendor.codec_id\" , FT_UINT16 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_vendor_specific_value , {\n \"Value\" , \"btavdtp.codec.vendor.value\" , FT_NONE , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_vendor_specific_apt_codec_id , {\n \"Codec\" , \"btavdtp.codec.vendor.codec_id\" , FT_UINT16 , BASE_HEX , VALS ( vendor_apt_codec_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_vendor_specific_aptx_sampling_frequency_16000 , {\n \"Sampling Frequency 16000 Hz\" , \"btavdtp.codec.aptx.sampling_frequency.16000\" , FT_BOOLEAN , 8 , NULL , 0x80 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_vendor_specific_aptx_sampling_frequency_32000 , {\n \"Sampling Frequency 32000 Hz\" , \"btavdtp.codec.aptx.sampling_frequency.32000\" , FT_BOOLEAN , 8 , NULL , 0x40 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_vendor_specific_aptx_sampling_frequency_44100 , {\n \"Sampling Frequency 44100 Hz\" , \"btavdtp.codec.aptx.sampling_frequency.44100\" , FT_BOOLEAN , 8 , NULL , 0x20 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_vendor_specific_aptx_sampling_frequency_48000 , {\n \"Sampling Frequency 48000 Hz\" , \"btavdtp.codec.aptx.sampling_frequency.48000\" , FT_BOOLEAN , 8 , NULL , 0x10 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_vendor_specific_aptx_channel_mode_mono , {\n \"Channel Mode Mono\" , \"btavdtp.codec.aptx.channel_mode.mono\" , FT_BOOLEAN , 8 , NULL , 0x08 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_vendor_specific_aptx_channel_mode_dual_channel , {\n \"Channel Mode Dual Channel\" , \"btavdtp.codec.aptx.channel_mode.dual_channel\" , FT_BOOLEAN , 8 , NULL , 0x04 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_vendor_specific_aptx_channel_mode_stereo , {\n \"Channel Mode Stereo\" , \"btavdtp.codec.aptx.channel_mode.stereo\" , FT_BOOLEAN , 8 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_vendor_specific_aptx_channel_mode_joint_stereo , {\n \"Channel Mode Joint Stereo\" , \"btavdtp.codec.aptx.channel_mode.joint_stereo\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_capabilities , {\n \"Capabilities\" , \"btavdtp.capabilities\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_service , {\n \"Service\" , \"btavdtp.service\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_service_multiplexing_entry , {\n \"Entry\" , \"btavdtp.service_multiplexing_entry\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_btavdtp_data , {\n \"Data\" , \"btavdtp.data\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n }\n ;\n static gint * ett [ ] = {\n & ett_btavdtp , & ett_btavdtp_sep , & ett_btavdtp_capabilities , & ett_btavdtp_service , }\n ;\n proto_btavdtp = proto_register_protocol ( \"Bluetooth AVDTP Protocol\" , \"BT AVDTP\" , \"btavdtp\" ) ;\n btavdtp_handle = register_dissector ( \"btavdtp\" , dissect_btavdtp , proto_btavdtp ) ;\n proto_register_field_array ( proto_btavdtp , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n module = prefs_register_protocol_subtree ( \"Bluetooth\" , proto_btavdtp , NULL ) ;\n prefs_register_static_text_preference ( module , \"avdtp.version\" , \"Bluetooth Protocol AVDTP version: 1.3\" , \"Version of protocol supported by this dissector.\" ) ;\n channels = wmem_tree_new_autoreset ( wmem_epan_scope ( ) , wmem_file_scope ( ) ) ;\n sep_list = wmem_tree_new_autoreset ( wmem_epan_scope ( ) , wmem_file_scope ( ) ) ;\n sep_open = wmem_tree_new_autoreset ( wmem_epan_scope ( ) , wmem_file_scope ( ) ) ;\n media_packet_times = wmem_tree_new_autoreset ( wmem_epan_scope ( ) , wmem_file_scope ( ) ) ;\n # if RTP_PLAYER_WORKAROUND == TRUE file_scope_stream_number = wmem_tree_new_autoreset ( wmem_epan_scope ( ) , wmem_file_scope ( ) ) ;\n # endif }"}
{"idx": 17254, "target": 0, "func": "int jas_stream_getc_func ( jas_stream_t * stream ) {\n assert ( stream -> ptr_ - stream -> bufbase_ <= stream -> bufsize_ + JAS_STREAM_MAXPUTBACK ) ;\n return jas_stream_getc_macro ( stream ) ;\n }"}
{"idx": 17255, "target": 0, "func": "void cpu_resume ( CPUState * cpu ) {\n cpu -> stop = false ;\n cpu -> stopped = false ;\n qemu_cpu_kick ( cpu ) ;\n }"}
{"idx": 17256, "target": 0, "func": "int qemuMonitorJSONAddHostNetwork ( qemuMonitorPtr mon , const char * netstr ) {\n int ret ;\n virJSONValuePtr cmd = qemuMonitorJSONMakeCommand ( \"host_net_add\" , \"s:device\" , netstr , NULL ) ;\n virJSONValuePtr reply = NULL ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 17257, "target": 0, "func": "guint16 de_cell_id ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len , gchar * add_string , int string_len ) {\n guint32 curr_offset ;\n curr_offset = offset ;\n curr_offset += be_cell_id_aux ( tvb , tree , pinfo , offset , len , add_string , string_len , 0x02 ) ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 17258, "target": 1, "func": "static void make_bands ( int16_t * bands , int start , int stop , int num_bands ) {\n int k , previous , present ;\n float base , prod ;\n base = powf ( ( float ) stop / start , 1.0f / num_bands ) ;\n prod = start ;\n previous = start ;\n for ( k = 0 ;\n k < num_bands - 1 ;\n k ++ ) {\n prod *= base ;\n present = lrintf ( prod ) ;\n bands [ k ] = present - previous ;\n previous = present ;\n }\n bands [ num_bands - 1 ] = stop - previous ;\n }"}
{"idx": 17259, "target": 1, "func": "static uint32_t vmport_cmd_get_version ( void * opaque , uint32_t addr ) {\n CPUX86State * env = cpu_single_env ;\n env -> regs [ R_EBX ] = VMPORT_MAGIC ;\n return 6 ;\n }"}
{"idx": 17260, "target": 0, "func": "void vp9_convolve8_avg_c ( const uint8_t * src , ptrdiff_t src_stride , uint8_t * dst , ptrdiff_t dst_stride , const int16_t * filter_x , int x_step_q4 , const int16_t * filter_y , int y_step_q4 , int w , int h ) {\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp , 64 * 64 ) ;\n assert ( w <= 64 ) ;\n assert ( h <= 64 ) ;\n vp9_convolve8_c ( src , src_stride , temp , 64 , filter_x , x_step_q4 , filter_y , y_step_q4 , w , h ) ;\n vp9_convolve_avg_c ( temp , 64 , dst , dst_stride , NULL , 0 , NULL , 0 , w , h ) ;\n }"}
{"idx": 17261, "target": 0, "func": "static inline int get_duration ( AVIStream * ast , int len ) {\n if ( ast -> sample_size ) return len ;\n else if ( ast -> dshow_block_align ) return ( len + ast -> dshow_block_align - 1 ) / ast -> dshow_block_align ;\n else return 1 ;\n }"}
{"idx": 17262, "target": 0, "func": "static void reconnect ( MYSQL * * mysql ) {\n mysql_close ( * mysql ) ;\n * mysql = mysql_client_init ( NULL ) ;\n DIE_UNLESS ( * mysql != 0 ) ;\n * mysql = mysql_real_connect ( * mysql , opt_host , opt_user , opt_password , current_db , opt_port , opt_unix_socket , 0 ) ;\n DIE_UNLESS ( * mysql != 0 ) ;\n }"}
{"idx": 17263, "target": 0, "func": "static void * Type_LUTA2B_Dup ( struct _cms_typehandler_struct * self , const void * Ptr , cmsUInt32Number n ) {\n return ( void * ) cmsPipelineDup ( ( cmsPipeline * ) Ptr ) ;\n cmsUNUSED_PARAMETER ( n ) ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 17264, "target": 0, "func": "static void cleanup_pam ( int retcode ) {\n int saved_errno = errno ;\n if ( _pam_session_opened ) pam_close_session ( pamh , 0 ) ;\n if ( _pam_cred_established ) pam_setcred ( pamh , PAM_DELETE_CRED | PAM_SILENT ) ;\n pam_end ( pamh , retcode ) ;\n errno = saved_errno ;\n }"}
{"idx": 17265, "target": 0, "func": "static void fill_vaapi_RefPicList ( VAPictureH264 RefPicList [ 32 ] , Picture * ref_list , unsigned int ref_count ) {\n unsigned int i , n = 0 ;\n for ( i = 0 ;\n i < ref_count ;\n i ++ ) if ( ref_list [ i ] . reference ) fill_vaapi_pic ( & RefPicList [ n ++ ] , & ref_list [ i ] , 0 ) ;\n for ( ;\n n < 32 ;\n n ++ ) init_vaapi_pic ( & RefPicList [ n ] ) ;\n }"}
{"idx": 17266, "target": 0, "func": "IN_PROC_BROWSER_TEST_P ( BrowserCloseManagerBrowserTest , TestSingleTabShutdown ) {\n ASSERT_NO_FATAL_FAILURE ( ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/beforeunload.html\" ) ) ) ;\n PrepareForDialog ( browser ( ) ) ;\n RepeatedNotificationObserver cancel_observer ( chrome : : NOTIFICATION_BROWSER_CLOSE_CANCELLED , 1 ) ;\n chrome : : CloseAllBrowsersAndQuit ( ) ;\n ASSERT_NO_FATAL_FAILURE ( CancelClose ( ) ) ;\n cancel_observer . Wait ( ) ;\n EXPECT_FALSE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_EQ ( 1 , browser ( ) -> tab_strip_model ( ) -> count ( ) ) ;\n RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , 1 ) ;\n chrome : : CloseAllBrowsersAndQuit ( ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n close_observer . Wait ( ) ;\n EXPECT_TRUE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_TRUE ( BrowserList : : GetInstance ( ) -> empty ( ) ) ;\n }"}
{"idx": 17267, "target": 0, "func": "void tb_flush ( CPUArchState * env1 ) {\n CPUArchState * env ;\n # if defined ( DEBUG_FLUSH ) printf ( \"qemu: flush code_size=%ld nb_tbs=%d avg_tb_size=%ld\\n\" , ( unsigned long ) ( tcg_ctx . code_gen_ptr - tcg_ctx . code_gen_buffer ) , tcg_ctx . tb_ctx . nb_tbs , tcg_ctx . tb_ctx . nb_tbs > 0 ? ( ( unsigned long ) ( tcg_ctx . code_gen_ptr - tcg_ctx . code_gen_buffer ) ) / tcg_ctx . tb_ctx . nb_tbs : 0 ) ;\n # endif if ( ( unsigned long ) ( tcg_ctx . code_gen_ptr - tcg_ctx . code_gen_buffer ) > tcg_ctx . code_gen_buffer_size ) {\n cpu_abort ( env1 , \"Internal error: code buffer overflow\\n\" ) ;\n }\n tcg_ctx . tb_ctx . nb_tbs = 0 ;\n for ( env = first_cpu ;\n env != NULL ;\n env = env -> next_cpu ) {\n memset ( env -> tb_jmp_cache , 0 , TB_JMP_CACHE_SIZE * sizeof ( void * ) ) ;\n }\n memset ( tcg_ctx . tb_ctx . tb_phys_hash , 0 , CODE_GEN_PHYS_HASH_SIZE * sizeof ( void * ) ) ;\n page_flush_tb ( ) ;\n tcg_ctx . code_gen_ptr = tcg_ctx . code_gen_buffer ;\n tcg_ctx . tb_ctx . tb_flush_count ++ ;\n }"}
{"idx": 17268, "target": 0, "func": "static int selinux_inet_conn_request ( struct sock * sk , struct sk_buff * skb , struct request_sock * req ) {\n struct sk_security_struct * sksec = sk -> sk_security ;\n int err ;\n u16 family = req -> rsk_ops -> family ;\n u32 connsid ;\n u32 peersid ;\n err = selinux_skb_peerlbl_sid ( skb , family , & peersid ) ;\n if ( err ) return err ;\n err = selinux_conn_sid ( sksec -> sid , peersid , & connsid ) ;\n if ( err ) return err ;\n req -> secid = connsid ;\n req -> peer_secid = peersid ;\n return selinux_netlbl_inet_conn_request ( req , family ) ;\n }"}
{"idx": 17269, "target": 0, "func": "int EC_GROUP_get_basis_type ( const EC_GROUP * group ) {\n int i = 0 ;\n if ( EC_METHOD_get_field_type ( EC_GROUP_method_of ( group ) ) != NID_X9_62_characteristic_two_field ) return 0 ;\n while ( group -> poly [ i ] != 0 ) i ++ ;\n if ( i == 4 ) return NID_X9_62_ppBasis ;\n else if ( i == 2 ) return NID_X9_62_tpBasis ;\n else return 0 ;\n }"}
{"idx": 17270, "target": 0, "func": "static int msmpeg4_decode_dc ( MpegEncContext * s , int n , int * dir_ptr ) {\n int level , pred ;\n if ( s -> msmpeg4_version <= 2 ) {\n if ( n < 4 ) {\n level = get_vlc2 ( & s -> gb , v2_dc_lum_vlc . table , DC_VLC_BITS , 3 ) ;\n }\n else {\n level = get_vlc2 ( & s -> gb , v2_dc_chroma_vlc . table , DC_VLC_BITS , 3 ) ;\n }\n if ( level < 0 ) return - 1 ;\n level -= 256 ;\n }\n else {\n if ( n < 4 ) {\n level = get_vlc2 ( & s -> gb , ff_msmp4_dc_luma_vlc [ s -> dc_table_index ] . table , DC_VLC_BITS , 3 ) ;\n }\n else {\n level = get_vlc2 ( & s -> gb , ff_msmp4_dc_chroma_vlc [ s -> dc_table_index ] . table , DC_VLC_BITS , 3 ) ;\n }\n if ( level < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"illegal dc vlc\\n\" ) ;\n return - 1 ;\n }\n if ( level == DC_MAX ) {\n level = get_bits ( & s -> gb , 8 ) ;\n if ( get_bits1 ( & s -> gb ) ) level = - level ;\n }\n else if ( level != 0 ) {\n if ( get_bits1 ( & s -> gb ) ) level = - level ;\n }\n }\n if ( s -> msmpeg4_version == 1 ) {\n int32_t * dc_val ;\n pred = msmpeg4v1_pred_dc ( s , n , & dc_val ) ;\n level += pred ;\n * dc_val = level ;\n }\n else {\n int16_t * dc_val ;\n pred = ff_msmpeg4_pred_dc ( s , n , & dc_val , dir_ptr ) ;\n level += pred ;\n if ( n < 4 ) {\n * dc_val = level * s -> y_dc_scale ;\n }\n else {\n * dc_val = level * s -> c_dc_scale ;\n }\n }\n return level ;\n }"}
{"idx": 17271, "target": 0, "func": "TEST_F ( ExtensionServiceSyncTest , GetSyncExtensionDataUserSettings ) {\n InitializeEmptyExtensionService ( ) ;\n InstallCRX ( data_dir ( ) . AppendASCII ( \"good.crx\" ) , INSTALL_NEW ) ;\n const Extension * extension = service ( ) -> GetInstalledExtension ( good_crx ) ;\n ASSERT_TRUE ( extension ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , syncer : : SyncDataList ( ) , base : : MakeUnique < syncer : : FakeSyncChangeProcessor > ( ) , base : : MakeUnique < syncer : : SyncErrorFactoryMock > ( ) ) ;\n {\n syncer : : SyncDataList list = extension_sync_service ( ) -> GetAllSyncData ( syncer : : EXTENSIONS ) ;\n ASSERT_EQ ( list . size ( ) , 1U ) ;\n std : : unique_ptr < ExtensionSyncData > data = ExtensionSyncData : : CreateFromSyncData ( list [ 0 ] ) ;\n ASSERT_TRUE ( data . get ( ) ) ;\n EXPECT_TRUE ( data -> enabled ( ) ) ;\n EXPECT_FALSE ( data -> incognito_enabled ( ) ) ;\n EXPECT_EQ ( ExtensionSyncData : : BOOLEAN_UNSET , data -> all_urls_enabled ( ) ) ;\n }\n service ( ) -> DisableExtension ( good_crx , extensions : : disable_reason : : DISABLE_USER_ACTION ) ;\n {\n syncer : : SyncDataList list = extension_sync_service ( ) -> GetAllSyncData ( syncer : : EXTENSIONS ) ;\n ASSERT_EQ ( list . size ( ) , 1U ) ;\n std : : unique_ptr < ExtensionSyncData > data = ExtensionSyncData : : CreateFromSyncData ( list [ 0 ] ) ;\n ASSERT_TRUE ( data . get ( ) ) ;\n EXPECT_FALSE ( data -> enabled ( ) ) ;\n EXPECT_FALSE ( data -> incognito_enabled ( ) ) ;\n EXPECT_EQ ( ExtensionSyncData : : BOOLEAN_UNSET , data -> all_urls_enabled ( ) ) ;\n }\n extensions : : util : : SetIsIncognitoEnabled ( good_crx , profile ( ) , true ) ;\n ScriptingPermissionsModifier permissions_modifier ( profile ( ) , registry ( ) -> GetExtensionById ( good_crx , extensions : : ExtensionRegistry : : EVERYTHING ) ) ;\n permissions_modifier . SetAllowedOnAllUrls ( false ) ;\n {\n syncer : : SyncDataList list = extension_sync_service ( ) -> GetAllSyncData ( syncer : : EXTENSIONS ) ;\n ASSERT_EQ ( list . size ( ) , 1U ) ;\n std : : unique_ptr < ExtensionSyncData > data = ExtensionSyncData : : CreateFromSyncData ( list [ 0 ] ) ;\n ASSERT_TRUE ( data . get ( ) ) ;\n EXPECT_FALSE ( data -> enabled ( ) ) ;\n EXPECT_TRUE ( data -> incognito_enabled ( ) ) ;\n EXPECT_EQ ( ExtensionSyncData : : BOOLEAN_FALSE , data -> all_urls_enabled ( ) ) ;\n }\n service ( ) -> EnableExtension ( good_crx ) ;\n permissions_modifier . SetAllowedOnAllUrls ( true ) ;\n {\n syncer : : SyncDataList list = extension_sync_service ( ) -> GetAllSyncData ( syncer : : EXTENSIONS ) ;\n ASSERT_EQ ( list . size ( ) , 1U ) ;\n std : : unique_ptr < ExtensionSyncData > data = ExtensionSyncData : : CreateFromSyncData ( list [ 0 ] ) ;\n ASSERT_TRUE ( data . get ( ) ) ;\n EXPECT_TRUE ( data -> enabled ( ) ) ;\n EXPECT_TRUE ( data -> incognito_enabled ( ) ) ;\n EXPECT_EQ ( ExtensionSyncData : : BOOLEAN_TRUE , data -> all_urls_enabled ( ) ) ;\n }\n }"}
{"idx": 17272, "target": 0, "func": "static void matroska_clear_queue ( MatroskaDemuxContext * matroska ) {\n matroska -> prev_pkt = NULL ;\n if ( matroska -> packets ) {\n int n ;\n for ( n = 0 ;\n n < matroska -> num_packets ;\n n ++ ) {\n av_free_packet ( matroska -> packets [ n ] ) ;\n av_free ( matroska -> packets [ n ] ) ;\n }\n av_freep ( & matroska -> packets ) ;\n matroska -> num_packets = 0 ;\n }\n }"}
{"idx": 17273, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( RegisterProtocolHandlerBrowserTest , ContextMenuEntryAppearsForHandledUrls ) {\n scoped_ptr < TestRenderViewContextMenu > menu ( CreateContextMenu ( GURL ( \"http://www.google.com/\" ) ) ) ;\n ASSERT_FALSE ( menu -> IsItemPresent ( IDC_CONTENT_CONTEXT_OPENLINKWITH ) ) ;\n AddProtocolHandler ( std : : string ( \"web+search\" ) , GURL ( \"http://www.google.com/%s\" ) , base : : UTF8ToUTF16 ( std : : string ( \"Test handler\" ) ) ) ;\n GURL url ( \"web+search:testing\" ) ;\n ProtocolHandlerRegistry * registry = ProtocolHandlerRegistryFactory : : GetForProfile ( browser ( ) -> profile ( ) ) ;\n ASSERT_EQ ( 1u , registry -> GetHandlersFor ( url . scheme ( ) ) . size ( ) ) ;\n menu . reset ( CreateContextMenu ( url ) ) ;\n ASSERT_TRUE ( menu -> IsItemPresent ( IDC_CONTENT_CONTEXT_OPENLINKWITH ) ) ;\n }"}
{"idx": 17274, "target": 1, "func": "static int bmv_aud_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n int blocks = 0 , total_blocks , i ;\n int ret ;\n int16_t * output_samples ;\n int scale [ 2 ] ;\n total_blocks = * buf ++ ;\n if ( buf_size < total_blocks * 65 + 1 ) {\n av_log ( avctx , AV_LOG_ERROR , \"expected %d bytes, got %d\\n\" , total_blocks * 65 + 1 , buf_size ) ;\n return AVERROR_INVALIDDATA ;\n }\n frame -> nb_samples = total_blocks * 32 ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n output_samples = ( int16_t * ) frame -> data [ 0 ] ;\n for ( blocks = 0 ;\n blocks < total_blocks ;\n blocks ++ ) {\n uint8_t code = * buf ++ ;\n code = ( code >> 1 ) | ( code << 7 ) ;\n scale [ 0 ] = bmv_aud_mults [ code & 0xF ] ;\n scale [ 1 ] = bmv_aud_mults [ code >> 4 ] ;\n for ( i = 0 ;\n i < 32 ;\n i ++ ) {\n * output_samples ++ = av_clip_int16 ( ( scale [ 0 ] * ( int8_t ) * buf ++ ) >> 5 ) ;\n * output_samples ++ = av_clip_int16 ( ( scale [ 1 ] * ( int8_t ) * buf ++ ) >> 5 ) ;\n }\n }\n * got_frame_ptr = 1 ;\n return buf_size ;\n }"}
{"idx": 17275, "target": 0, "func": "void ff_draw_horiz_band ( AVCodecContext * avctx , DSPContext * dsp , Picture * cur , Picture * last , int y , int h , int picture_structure , int first_field , int draw_edges , int low_delay , int v_edge_pos , int h_edge_pos ) {\n const AVPixFmtDescriptor * desc = av_pix_fmt_desc_get ( avctx -> pix_fmt ) ;\n int hshift = desc -> log2_chroma_w ;\n int vshift = desc -> log2_chroma_h ;\n const int field_pic = picture_structure != PICT_FRAME ;\n if ( field_pic ) {\n h <<= 1 ;\n y <<= 1 ;\n }\n if ( ! avctx -> hwaccel && ! ( avctx -> codec -> capabilities & CODEC_CAP_HWACCEL_VDPAU ) && draw_edges && cur -> reference && ! ( avctx -> flags & CODEC_FLAG_EMU_EDGE ) ) {\n int * linesize = cur -> f . linesize ;\n int sides = 0 , edge_h ;\n if ( y == 0 ) sides |= EDGE_TOP ;\n if ( y + h >= v_edge_pos ) sides |= EDGE_BOTTOM ;\n edge_h = FFMIN ( h , v_edge_pos - y ) ;\n dsp -> draw_edges ( cur -> f . data [ 0 ] + y * linesize [ 0 ] , linesize [ 0 ] , h_edge_pos , edge_h , EDGE_WIDTH , EDGE_WIDTH , sides ) ;\n dsp -> draw_edges ( cur -> f . data [ 1 ] + ( y >> vshift ) * linesize [ 1 ] , linesize [ 1 ] , h_edge_pos >> hshift , edge_h >> vshift , EDGE_WIDTH >> hshift , EDGE_WIDTH >> vshift , sides ) ;\n dsp -> draw_edges ( cur -> f . data [ 2 ] + ( y >> vshift ) * linesize [ 2 ] , linesize [ 2 ] , h_edge_pos >> hshift , edge_h >> vshift , EDGE_WIDTH >> hshift , EDGE_WIDTH >> vshift , sides ) ;\n }\n h = FFMIN ( h , avctx -> height - y ) ;\n if ( field_pic && first_field && ! ( avctx -> slice_flags & SLICE_FLAG_ALLOW_FIELD ) ) return ;\n if ( avctx -> draw_horiz_band ) {\n AVFrame * src ;\n int offset [ AV_NUM_DATA_POINTERS ] ;\n int i ;\n if ( cur -> f . pict_type == AV_PICTURE_TYPE_B || low_delay || ( avctx -> slice_flags & SLICE_FLAG_CODED_ORDER ) ) src = & cur -> f ;\n else if ( last ) src = & last -> f ;\n else return ;\n if ( cur -> f . pict_type == AV_PICTURE_TYPE_B && picture_structure == PICT_FRAME && avctx -> codec_id != AV_CODEC_ID_H264 && avctx -> codec_id != AV_CODEC_ID_SVQ3 ) {\n for ( i = 0 ;\n i < AV_NUM_DATA_POINTERS ;\n i ++ ) offset [ i ] = 0 ;\n }\n else {\n offset [ 0 ] = y * src -> linesize [ 0 ] ;\n offset [ 1 ] = offset [ 2 ] = ( y >> vshift ) * src -> linesize [ 1 ] ;\n for ( i = 3 ;\n i < AV_NUM_DATA_POINTERS ;\n i ++ ) offset [ i ] = 0 ;\n }\n emms_c ( ) ;\n avctx -> draw_horiz_band ( avctx , src , offset , y , picture_structure , h ) ;\n }\n }"}
{"idx": 17276, "target": 0, "func": "static void dissect_zcl_part_rdhandshakeparamrsp ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , guint * offset ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_part_partitioned_cluster_id , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n dissect_zcl_read_attr_resp ( tvb , pinfo , tree , offset , ZBEE_ZCL_CID_PARTITION ) ;\n }"}
{"idx": 17277, "target": 0, "func": "static void sbook_init ( QEMUMachineInitArgs * args ) {\n ram_addr_t RAM_size = args -> ram_size ;\n const char * cpu_model = args -> cpu_model ;\n const char * kernel_filename = args -> kernel_filename ;\n const char * kernel_cmdline = args -> kernel_cmdline ;\n const char * initrd_filename = args -> initrd_filename ;\n const char * boot_device = args -> boot_device ;\n sun4m_hw_init ( & sun4m_hwdefs [ 8 ] , RAM_size , boot_device , kernel_filename , kernel_cmdline , initrd_filename , cpu_model ) ;\n }"}
{"idx": 17278, "target": 1, "func": "gcry_error_t gcry_pk_verify ( gcry_sexp_t s_sig , gcry_sexp_t s_hash , gcry_sexp_t s_pkey ) {\n gcry_module_t module_key = NULL , module_sig = NULL ;\n gcry_mpi_t * pkey = NULL , hash = NULL , * sig = NULL ;\n struct pk_encoding_ctx ctx ;\n gcry_err_code_t rc ;\n REGISTER_DEFAULT_PUBKEYS ;\n rc = sexp_to_key ( s_pkey , 0 , GCRY_PK_USAGE_SIGN , NULL , & pkey , & module_key , NULL ) ;\n if ( rc ) goto leave ;\n rc = sexp_to_sig ( s_sig , & sig , & module_sig ) ;\n if ( rc ) goto leave ;\n if ( module_key -> mod_id != module_sig -> mod_id ) {\n rc = GPG_ERR_CONFLICT ;\n goto leave ;\n }\n init_encoding_ctx ( & ctx , PUBKEY_OP_VERIFY , gcry_pk_get_nbits ( s_pkey ) ) ;\n rc = sexp_data_to_mpi ( s_hash , & hash , & ctx ) ;\n if ( rc ) goto leave ;\n rc = pubkey_verify ( module_key -> mod_id , hash , sig , pkey , & ctx ) ;\n leave : if ( pkey ) {\n release_mpi_array ( pkey ) ;\n gcry_free ( pkey ) ;\n }\n if ( sig ) {\n release_mpi_array ( sig ) ;\n gcry_free ( sig ) ;\n }\n if ( hash ) mpi_free ( hash ) ;\n if ( module_key || module_sig ) {\n ath_mutex_lock ( & pubkeys_registered_lock ) ;\n if ( module_key ) _gcry_module_release ( module_key ) ;\n if ( module_sig ) _gcry_module_release ( module_sig ) ;\n ath_mutex_unlock ( & pubkeys_registered_lock ) ;\n }\n return gcry_error ( rc ) ;\n }"}
{"idx": 17279, "target": 0, "func": "inline TSReturnCode ink_sanity_check_stat_structure ( void * obj ) {\n if ( obj == nullptr ) {\n return TS_ERROR ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 17280, "target": 1, "func": "static void cirrus_mem_writeb_mode4and5_16bpp ( CirrusVGAState * s , unsigned mode , unsigned offset , uint32_t mem_value ) {\n int x ;\n unsigned val = mem_value ;\n uint8_t * dst ;\n dst = s -> vga . vram_ptr + ( offset &= s -> cirrus_addr_mask ) ;\n for ( x = 0 ;\n x < 8 ;\n x ++ ) {\n if ( val & 0x80 ) {\n * dst = s -> cirrus_shadow_gr1 ;\n * ( dst + 1 ) = s -> vga . gr [ 0x11 ] ;\n }\n else if ( mode == 5 ) {\n * dst = s -> cirrus_shadow_gr0 ;\n * ( dst + 1 ) = s -> vga . gr [ 0x10 ] ;\n }\n val <<= 1 ;\n dst += 2 ;\n }\n memory_region_set_dirty ( & s -> vga . vram , offset , 16 ) ;\n }"}
{"idx": 17281, "target": 1, "func": "static void handle_raw_login ( char * packet , int len , struct query * q , int fd , int userid ) {\n char myhash [ 16 ] ;\n if ( len < 16 ) return ;\n if ( userid < 0 || userid >= created_users ) return ;\n if ( ! users [ userid ] . active || users [ userid ] . disabled ) return ;\n if ( users [ userid ] . last_pkt + 60 < time ( NULL ) ) return ;\n if ( debug >= 1 ) {\n fprintf ( stderr , \"IN login raw, len %d, from user %d\\n\" , len , userid ) ;\n }\n login_calculate ( myhash , 16 , password , users [ userid ] . seed + 1 ) ;\n if ( memcmp ( packet , myhash , 16 ) == 0 ) {\n struct sockaddr_in * tempin ;\n users [ userid ] . last_pkt = time ( NULL ) ;\n memcpy ( & ( users [ userid ] . q ) , q , sizeof ( struct query ) ) ;\n tempin = ( struct sockaddr_in * ) & ( q -> from ) ;\n memcpy ( & ( users [ userid ] . host ) , & ( tempin -> sin_addr ) , sizeof ( struct in_addr ) ) ;\n user_set_conn_type ( userid , CONN_RAW_UDP ) ;\n login_calculate ( myhash , 16 , password , users [ userid ] . seed - 1 ) ;\n send_raw ( fd , myhash , 16 , userid , RAW_HDR_CMD_LOGIN , q ) ;\n }\n }"}
{"idx": 17282, "target": 0, "func": "static int run_error ( CommonJob * job , char * primary_text , char * secondary_text , const char * details_text , gboolean show_all , ... ) {\n va_list varargs ;\n int res ;\n va_start ( varargs , show_all ) ;\n res = run_simple_dialog_va ( job , FALSE , GTK_MESSAGE_ERROR , primary_text , secondary_text , details_text , show_all , varargs ) ;\n va_end ( varargs ) ;\n return res ;\n }"}
{"idx": 17283, "target": 0, "func": "static void mac_init ( void ) {\n mac_is_sdus = g_hash_table_new_full ( mac_is_channel_hash , mac_is_channel_equal , NULL , mac_is_sdus_hash_destroy ) ;\n mac_is_fragments = g_hash_table_new_full ( mac_is_channel_hash , mac_is_channel_equal , NULL , NULL ) ;\n if ( global_mac_tsn_size == MAC_TSN_6BITS ) {\n MAX_TSN = 64 ;\n mac_tsn_size = 6 ;\n }\n else {\n MAX_TSN = 16384 ;\n mac_tsn_size = 14 ;\n }\n }"}
{"idx": 17284, "target": 0, "func": "static void gx_ttfExport__MoveTo ( ttfExport * self , FloatPoint * p ) {\n gx_ttfExport * e = ( gx_ttfExport * ) self ;\n if ( ! e -> error ) e -> error = gx_path_add_point ( e -> path , float2fixed ( p -> x ) , float2fixed ( p -> y ) ) ;\n }"}
{"idx": 17285, "target": 1, "func": "kadm5_ret_t kadm5_get_policy ( void * server_handle , kadm5_policy_t name , kadm5_policy_ent_t entry ) {\n osa_policy_ent_t t ;\n kadm5_ret_t ret ;\n kadm5_server_handle_t handle = server_handle ;\n memset ( entry , 0 , sizeof ( * entry ) ) ;\n CHECK_HANDLE ( server_handle ) ;\n krb5_clear_error_message ( handle -> context ) ;\n if ( name == ( kadm5_policy_t ) NULL ) return EINVAL ;\n if ( strlen ( name ) == 0 ) return KADM5_BAD_POLICY ;\n ret = krb5_db_get_policy ( handle -> context , name , & t ) ;\n if ( ret == KRB5_KDB_NOENTRY ) return KADM5_UNK_POLICY ;\n else if ( ret ) return ret ;\n if ( ( entry -> policy = strdup ( t -> name ) ) == NULL ) {\n ret = ENOMEM ;\n goto cleanup ;\n }\n entry -> pw_min_life = t -> pw_min_life ;\n entry -> pw_max_life = t -> pw_max_life ;\n entry -> pw_min_length = t -> pw_min_length ;\n entry -> pw_min_classes = t -> pw_min_classes ;\n entry -> pw_history_num = t -> pw_history_num ;\n entry -> policy_refcnt = t -> policy_refcnt ;\n if ( handle -> api_version >= KADM5_API_VERSION_3 ) {\n entry -> pw_max_fail = t -> pw_max_fail ;\n entry -> pw_failcnt_interval = t -> pw_failcnt_interval ;\n entry -> pw_lockout_duration = t -> pw_lockout_duration ;\n }\n if ( handle -> api_version >= KADM5_API_VERSION_4 ) {\n entry -> attributes = t -> attributes ;\n entry -> max_life = t -> max_life ;\n entry -> max_renewable_life = t -> max_renewable_life ;\n if ( t -> allowed_keysalts ) {\n entry -> allowed_keysalts = strdup ( t -> allowed_keysalts ) ;\n if ( ! entry -> allowed_keysalts ) {\n ret = ENOMEM ;\n goto cleanup ;\n }\n }\n ret = copy_tl_data ( t -> n_tl_data , t -> tl_data , & entry -> tl_data ) ;\n if ( ret ) goto cleanup ;\n entry -> n_tl_data = t -> n_tl_data ;\n }\n ret = 0 ;\n cleanup : if ( ret ) kadm5_free_policy_ent ( handle , entry ) ;\n krb5_db_free_policy ( handle -> context , t ) ;\n return ret ;\n }"}
{"idx": 17286, "target": 0, "func": "static int free_context_frame ( MpegEncContext * s ) {\n int i , j , k ;\n av_freep ( & s -> mb_type ) ;\n av_freep ( & s -> p_mv_table_base ) ;\n av_freep ( & s -> b_forw_mv_table_base ) ;\n av_freep ( & s -> b_back_mv_table_base ) ;\n av_freep ( & s -> b_bidir_forw_mv_table_base ) ;\n av_freep ( & s -> b_bidir_back_mv_table_base ) ;\n av_freep ( & s -> b_direct_mv_table_base ) ;\n s -> p_mv_table = NULL ;\n s -> b_forw_mv_table = NULL ;\n s -> b_back_mv_table = NULL ;\n s -> b_bidir_forw_mv_table = NULL ;\n s -> b_bidir_back_mv_table = NULL ;\n s -> b_direct_mv_table = NULL ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n for ( k = 0 ;\n k < 2 ;\n k ++ ) {\n av_freep ( & s -> b_field_mv_table_base [ i ] [ j ] [ k ] ) ;\n s -> b_field_mv_table [ i ] [ j ] [ k ] = NULL ;\n }\n av_freep ( & s -> b_field_select_table [ i ] [ j ] ) ;\n av_freep ( & s -> p_field_mv_table_base [ i ] [ j ] ) ;\n s -> p_field_mv_table [ i ] [ j ] = NULL ;\n }\n av_freep ( & s -> p_field_select_table [ i ] ) ;\n }\n av_freep ( & s -> dc_val_base ) ;\n av_freep ( & s -> coded_block_base ) ;\n av_freep ( & s -> mbintra_table ) ;\n av_freep ( & s -> cbp_table ) ;\n av_freep ( & s -> pred_dir_table ) ;\n av_freep ( & s -> mbskip_table ) ;\n av_freep ( & s -> er . error_status_table ) ;\n av_freep ( & s -> er . er_temp_buffer ) ;\n av_freep ( & s -> mb_index2xy ) ;\n av_freep ( & s -> lambda_table ) ;\n av_freep ( & s -> cplx_tab ) ;\n av_freep ( & s -> bits_tab ) ;\n s -> linesize = s -> uvlinesize = 0 ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) av_freep ( & s -> visualization_buffer [ i ] ) ;\n return 0 ;\n }"}
{"idx": 17287, "target": 0, "func": "static void gtkui_connection_data_detach ( GtkWidget * child ) {\n data_window = gtk_window_new ( GTK_WINDOW_TOPLEVEL ) ;\n gtk_window_set_title ( GTK_WINDOW ( data_window ) , \"Connection data\" ) ;\n gtk_window_set_default_size ( GTK_WINDOW ( data_window ) , 600 , 400 ) ;\n gtk_container_set_border_width ( GTK_CONTAINER ( data_window ) , 5 ) ;\n g_signal_connect ( G_OBJECT ( data_window ) , \"delete_event\" , G_CALLBACK ( gtkui_destroy_conndata ) , NULL ) ;\n gtkui_page_attach_shortcut ( data_window , gtkui_connection_data_attach ) ;\n gtk_container_add ( GTK_CONTAINER ( data_window ) , child ) ;\n gtk_window_present ( GTK_WINDOW ( data_window ) ) ;\n }"}
{"idx": 17288, "target": 0, "func": "static int iso9660_finish_entry ( struct archive_write * a ) {\n struct iso9660 * iso9660 = a -> format_data ;\n if ( iso9660 -> cur_file == NULL ) return ( ARCHIVE_OK ) ;\n if ( archive_entry_filetype ( iso9660 -> cur_file -> entry ) != AE_IFREG ) return ( ARCHIVE_OK ) ;\n if ( iso9660 -> cur_file -> content . size == 0 ) return ( ARCHIVE_OK ) ;\n while ( iso9660 -> bytes_remaining > 0 ) {\n size_t s ;\n s = ( iso9660 -> bytes_remaining > a -> null_length ) ? a -> null_length : ( size_t ) iso9660 -> bytes_remaining ;\n if ( write_iso9660_data ( a , a -> nulls , s ) < 0 ) return ( ARCHIVE_FATAL ) ;\n iso9660 -> bytes_remaining -= s ;\n }\n if ( iso9660 -> zisofs . making && zisofs_finish_entry ( a ) != ARCHIVE_OK ) return ( ARCHIVE_FATAL ) ;\n if ( wb_write_padding_to_temp ( a , iso9660 -> cur_file -> cur_content -> size ) != ARCHIVE_OK ) return ( ARCHIVE_FATAL ) ;\n iso9660 -> cur_file -> cur_content -> blocks = ( int ) ( ( iso9660 -> cur_file -> cur_content -> size + LOGICAL_BLOCK_SIZE - 1 ) >> LOGICAL_BLOCK_BITS ) ;\n isofile_add_data_file ( iso9660 , iso9660 -> cur_file ) ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 17289, "target": 0, "func": "int pg_regcomp ( regex_t * re , const chr * string , size_t len , int flags , Oid collation ) {\n struct vars var ;\n struct vars * v = & var ;\n struct guts * g ;\n int i ;\n size_t j ;\n # ifdef REG_DEBUG FILE * debug = ( flags & REG_PROGRESS ) ? stdout : ( FILE * ) NULL ;\n # else FILE * debug = ( FILE * ) NULL ;\n # endif # define CNOERR ( ) {\n if ( ISERR ( ) ) return freev ( v , v -> err ) ;\n }\n if ( re == NULL || string == NULL ) return REG_INVARG ;\n if ( ( flags & REG_QUOTE ) && ( flags & ( REG_ADVANCED | REG_EXPANDED | REG_NEWLINE ) ) ) return REG_INVARG ;\n if ( ! ( flags & REG_EXTENDED ) && ( flags & REG_ADVF ) ) return REG_INVARG ;\n pg_set_regex_collation ( collation ) ;\n v -> re = re ;\n v -> now = string ;\n v -> stop = v -> now + len ;\n v -> savenow = v -> savestop = NULL ;\n v -> err = 0 ;\n v -> cflags = flags ;\n v -> nsubexp = 0 ;\n v -> subs = v -> sub10 ;\n v -> nsubs = 10 ;\n for ( j = 0 ;\n j < v -> nsubs ;\n j ++ ) v -> subs [ j ] = NULL ;\n v -> nfa = NULL ;\n v -> cm = NULL ;\n v -> nlcolor = COLORLESS ;\n v -> wordchrs = NULL ;\n v -> tree = NULL ;\n v -> treechain = NULL ;\n v -> treefree = NULL ;\n v -> cv = NULL ;\n v -> cv2 = NULL ;\n v -> lacons = NULL ;\n v -> nlacons = 0 ;\n v -> spaceused = 0 ;\n re -> re_magic = REMAGIC ;\n re -> re_info = 0 ;\n re -> re_csize = sizeof ( chr ) ;\n re -> re_collation = collation ;\n re -> re_guts = NULL ;\n re -> re_fns = VS ( & functions ) ;\n re -> re_guts = VS ( MALLOC ( sizeof ( struct guts ) ) ) ;\n if ( re -> re_guts == NULL ) return freev ( v , REG_ESPACE ) ;\n g = ( struct guts * ) re -> re_guts ;\n g -> tree = NULL ;\n initcm ( v , & g -> cmap ) ;\n v -> cm = & g -> cmap ;\n g -> lacons = NULL ;\n g -> nlacons = 0 ;\n ZAPCNFA ( g -> search ) ;\n v -> nfa = newnfa ( v , v -> cm , ( struct nfa * ) NULL ) ;\n CNOERR ( ) ;\n v -> cv = newcvec ( 100 , 20 ) ;\n if ( v -> cv == NULL ) return freev ( v , REG_ESPACE ) ;\n lexstart ( v ) ;\n if ( ( v -> cflags & REG_NLSTOP ) || ( v -> cflags & REG_NLANCH ) ) {\n v -> nlcolor = subcolor ( v -> cm , newline ( ) ) ;\n okcolors ( v -> nfa , v -> cm ) ;\n }\n CNOERR ( ) ;\n v -> tree = parse ( v , EOS , PLAIN , v -> nfa -> init , v -> nfa -> final ) ;\n assert ( SEE ( EOS ) ) ;\n CNOERR ( ) ;\n assert ( v -> tree != NULL ) ;\n specialcolors ( v -> nfa ) ;\n CNOERR ( ) ;\n # ifdef REG_DEBUG if ( debug != NULL ) {\n fprintf ( debug , \"\\n\\n\\n========= RAW ==========\\n\" ) ;\n dumpnfa ( v -> nfa , debug ) ;\n dumpst ( v -> tree , debug , 1 ) ;\n }\n # endif optst ( v , v -> tree ) ;\n v -> ntree = numst ( v -> tree , 1 ) ;\n markst ( v -> tree ) ;\n cleanst ( v ) ;\n # ifdef REG_DEBUG if ( debug != NULL ) {\n fprintf ( debug , \"\\n\\n\\n========= TREE FIXED ==========\\n\" ) ;\n dumpst ( v -> tree , debug , 1 ) ;\n }\n # endif re -> re_info |= nfatree ( v , v -> tree , debug ) ;\n CNOERR ( ) ;\n assert ( v -> nlacons == 0 || v -> lacons != NULL ) ;\n for ( i = 1 ;\n i < v -> nlacons ;\n i ++ ) {\n struct subre * lasub = & v -> lacons [ i ] ;\n # ifdef REG_DEBUG if ( debug != NULL ) fprintf ( debug , \"\\n\\n\\n========= LA%d ==========\\n\" , i ) ;\n # endif nfanode ( v , lasub , ! LATYPE_IS_AHEAD ( lasub -> subno ) , debug ) ;\n }\n CNOERR ( ) ;\n if ( v -> tree -> flags & SHORTER ) NOTE ( REG_USHORTEST ) ;\n # ifdef REG_DEBUG if ( debug != NULL ) fprintf ( debug , \"\\n\\n\\n========= SEARCH ==========\\n\" ) ;\n # endif ( DISCARD ) optimize ( v -> nfa , debug ) ;\n CNOERR ( ) ;\n makesearch ( v , v -> nfa ) ;\n CNOERR ( ) ;\n compact ( v -> nfa , & g -> search ) ;\n CNOERR ( ) ;\n re -> re_nsub = v -> nsubexp ;\n v -> re = NULL ;\n g -> magic = GUTSMAGIC ;\n g -> cflags = v -> cflags ;\n g -> info = re -> re_info ;\n g -> nsub = re -> re_nsub ;\n g -> tree = v -> tree ;\n v -> tree = NULL ;\n g -> ntree = v -> ntree ;\n g -> compare = ( v -> cflags & REG_ICASE ) ? casecmp : cmp ;\n g -> lacons = v -> lacons ;\n v -> lacons = NULL ;\n g -> nlacons = v -> nlacons ;\n # ifdef REG_DEBUG if ( flags & REG_DUMP ) dump ( re , stdout ) ;\n # endif assert ( v -> err == 0 ) ;\n return freev ( v , 0 ) ;\n }"}
{"idx": 17290, "target": 0, "func": "static void _slurm_rpc_job_ready ( slurm_msg_t * msg ) {\n int error_code , result ;\n job_id_msg_t * id_msg = ( job_id_msg_t * ) msg -> data ;\n DEF_TIMERS ;\n slurmctld_lock_t job_read_lock = {\n NO_LOCK , READ_LOCK , NO_LOCK , NO_LOCK , NO_LOCK }\n ;\n slurm_msg_t response_msg ;\n return_code_msg_t rc_msg ;\n START_TIMER ;\n lock_slurmctld ( job_read_lock ) ;\n error_code = job_node_ready ( id_msg -> job_id , & result ) ;\n unlock_slurmctld ( job_read_lock ) ;\n END_TIMER2 ( \"_slurm_rpc_job_ready\" ) ;\n if ( error_code ) {\n debug2 ( \"_slurm_rpc_job_ready: %s\" , slurm_strerror ( error_code ) ) ;\n slurm_send_rc_msg ( msg , error_code ) ;\n }\n else {\n debug2 ( \"_slurm_rpc_job_ready(%u)=%d %s\" , id_msg -> job_id , result , TIME_STR ) ;\n slurm_msg_t_init ( & response_msg ) ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . address = msg -> address ;\n response_msg . conn = msg -> conn ;\n rc_msg . return_code = result ;\n response_msg . data = & rc_msg ;\n if ( _is_prolog_finished ( id_msg -> job_id ) ) {\n response_msg . msg_type = RESPONSE_JOB_READY ;\n }\n else {\n response_msg . msg_type = RESPONSE_PROLOG_EXECUTING ;\n }\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n }\n }"}
{"idx": 17291, "target": 0, "func": "static void pdf_process_SC ( fz_context * ctx , pdf_processor * proc , pdf_csi * csi , int stroke ) {\n if ( csi -> name [ 0 ] ) {\n pdf_obj * patres , * patobj , * type ;\n patres = pdf_dict_get ( ctx , csi -> rdb , PDF_NAME_Pattern ) ;\n if ( ! patres ) fz_throw ( ctx , FZ_ERROR_SYNTAX , \"cannot find Pattern dictionary\" ) ;\n patobj = pdf_dict_gets ( ctx , patres , csi -> name ) ;\n if ( ! patobj ) fz_throw ( ctx , FZ_ERROR_SYNTAX , \"cannot find Pattern resource '%s'\" , csi -> name ) ;\n type = pdf_dict_get ( ctx , patobj , PDF_NAME_PatternType ) ;\n if ( pdf_to_int ( ctx , type ) == 1 ) {\n if ( proc -> op_SC_pattern && proc -> op_sc_pattern ) {\n pdf_pattern * pat = pdf_load_pattern ( ctx , csi -> doc , patobj ) ;\n fz_try ( ctx ) {\n if ( stroke ) proc -> op_SC_pattern ( ctx , proc , csi -> name , pat , csi -> top , csi -> stack ) ;\n else proc -> op_sc_pattern ( ctx , proc , csi -> name , pat , csi -> top , csi -> stack ) ;\n }\n fz_always ( ctx ) pdf_drop_pattern ( ctx , pat ) ;\n fz_catch ( ctx ) fz_rethrow ( ctx ) ;\n }\n }\n else if ( pdf_to_int ( ctx , type ) == 2 ) {\n if ( proc -> op_SC_shade && proc -> op_sc_shade ) {\n fz_shade * shade = pdf_load_shading ( ctx , csi -> doc , patobj ) ;\n fz_try ( ctx ) {\n if ( stroke ) proc -> op_SC_shade ( ctx , proc , csi -> name , shade ) ;\n else proc -> op_sc_shade ( ctx , proc , csi -> name , shade ) ;\n }\n fz_always ( ctx ) fz_drop_shade ( ctx , shade ) ;\n fz_catch ( ctx ) fz_rethrow ( ctx ) ;\n }\n }\n else {\n fz_throw ( ctx , FZ_ERROR_SYNTAX , \"unknown pattern type: %d\" , pdf_to_int ( ctx , type ) ) ;\n }\n }\n else {\n if ( proc -> op_SC_color && proc -> op_sc_color ) {\n if ( stroke ) proc -> op_SC_color ( ctx , proc , csi -> top , csi -> stack ) ;\n else proc -> op_sc_color ( ctx , proc , csi -> top , csi -> stack ) ;\n }\n }\n }"}
{"idx": 17292, "target": 0, "func": "static void update_mbgraph_mb_stats ( VP9_COMP * cpi , MBGRAPH_MB_STATS * stats , YV12_BUFFER_CONFIG * buf , int mb_y_offset , YV12_BUFFER_CONFIG * golden_ref , const MV * prev_golden_ref_mv , YV12_BUFFER_CONFIG * alt_ref , int mb_row , int mb_col ) {\n MACROBLOCK * const x = & cpi -> mb ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n int intra_error ;\n VP9_COMMON * cm = & cpi -> common ;\n x -> plane [ 0 ] . src . buf = buf -> y_buffer + mb_y_offset ;\n x -> plane [ 0 ] . src . stride = buf -> y_stride ;\n xd -> plane [ 0 ] . dst . buf = get_frame_new_buffer ( cm ) -> y_buffer + mb_y_offset ;\n xd -> plane [ 0 ] . dst . stride = get_frame_new_buffer ( cm ) -> y_stride ;\n intra_error = find_best_16x16_intra ( cpi , & stats -> ref [ INTRA_FRAME ] . m . mode ) ;\n if ( intra_error <= 0 ) intra_error = 1 ;\n stats -> ref [ INTRA_FRAME ] . err = intra_error ;\n if ( golden_ref ) {\n int g_motion_error ;\n xd -> plane [ 0 ] . pre [ 0 ] . buf = golden_ref -> y_buffer + mb_y_offset ;\n xd -> plane [ 0 ] . pre [ 0 ] . stride = golden_ref -> y_stride ;\n g_motion_error = do_16x16_motion_search ( cpi , prev_golden_ref_mv , & stats -> ref [ GOLDEN_FRAME ] . m . mv , mb_row , mb_col ) ;\n stats -> ref [ GOLDEN_FRAME ] . err = g_motion_error ;\n }\n else {\n stats -> ref [ GOLDEN_FRAME ] . err = INT_MAX ;\n stats -> ref [ GOLDEN_FRAME ] . m . mv . as_int = 0 ;\n }\n if ( alt_ref ) {\n int a_motion_error ;\n xd -> plane [ 0 ] . pre [ 0 ] . buf = alt_ref -> y_buffer + mb_y_offset ;\n xd -> plane [ 0 ] . pre [ 0 ] . stride = alt_ref -> y_stride ;\n a_motion_error = do_16x16_zerozero_search ( cpi , & stats -> ref [ ALTREF_FRAME ] . m . mv ) ;\n stats -> ref [ ALTREF_FRAME ] . err = a_motion_error ;\n }\n else {\n stats -> ref [ ALTREF_FRAME ] . err = INT_MAX ;\n stats -> ref [ ALTREF_FRAME ] . m . mv . as_int = 0 ;\n }\n }"}
{"idx": 17293, "target": 0, "func": "static PGresult * executeQuery ( PGconn * conn , const char * query ) {\n PGresult * res ;\n if ( verbose ) fprintf ( stderr , _ ( \"%s: executing %s\\n\" ) , progname , query ) ;\n res = PQexec ( conn , query ) ;\n if ( ! res || PQresultStatus ( res ) != PGRES_TUPLES_OK ) {\n fprintf ( stderr , _ ( \"%s: query failed: %s\" ) , progname , PQerrorMessage ( conn ) ) ;\n fprintf ( stderr , _ ( \"%s: query was: %s\\n\" ) , progname , query ) ;\n PQfinish ( conn ) ;\n exit_nicely ( 1 ) ;\n }\n return res ;\n }"}
{"idx": 17294, "target": 1, "func": "static __inline__ __u32 __arch_swab32 ( __u32 val ) {\n __asm__ ( \"bswapl %0\" : \"=r\" ( val ) : \"0\" ( val ) ) ;\n return val ;\n }"}
{"idx": 17295, "target": 0, "func": "static int dissect_CPMGetQueryStatus ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * parent_tree , gboolean in , void * data _U_ ) {\n gint offset = 16 ;\n proto_item * item ;\n proto_tree * tree ;\n item = proto_tree_add_item ( parent_tree , hf_mswsp_msg , tvb , offset , - 1 , ENC_NA ) ;\n tree = proto_item_add_subtree ( item , ett_mswsp_msg ) ;\n proto_item_set_text ( item , \"GetQueryStatus%s\" , in ? \"In\" : \"Out\" ) ;\n col_append_str ( pinfo -> cinfo , COL_INFO , \"GetQueryStatus\" ) ;\n if ( in ) {\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetquerystatus_hcursor , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n }\n else {\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmgetquerystatus_qstatus , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n }\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 17296, "target": 0, "func": "static void test_set_option ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_RES * result ;\n int rc ;\n myheader ( \"test_set_option\" ) ;\n mysql_autocommit ( mysql , TRUE ) ;\n rc = mysql_query ( mysql , \"SET SQL_SELECT_LIMIT= 2\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_limit\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_limit(a tinyint)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_limit VALUES(10), (20), (30), (40)\" ) ;\n myquery ( rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n with SQL_SELECT_LIMIT= 2 (direct)\" ) ;\n rc = mysql_query ( mysql , \"SELECT * FROM test_limit\" ) ;\n myquery ( rc ) ;\n result = mysql_store_result ( mysql ) ;\n mytest ( result ) ;\n rc = my_process_result_set ( result ) ;\n DIE_UNLESS ( rc == 2 ) ;\n mysql_free_result ( result ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n with SQL_SELECT_LIMIT=2 (prepare)\" ) ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT * FROM test_limit\" ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( rc == 2 ) ;\n mysql_stmt_close ( stmt ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n with SQL_SELECT_LIMIT=DEFAULT (prepare)\" ) ;\n rc = mysql_query ( mysql , \"SET SQL_SELECT_LIMIT=DEFAULT\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT * FROM test_limit\" ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( rc == 4 ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 17297, "target": 1, "func": "void do_exec ( struct st_command * command ) {\n int error ;\n char buf [ 512 ] ;\n FILE * res_file ;\n char * cmd = command -> first_argument ;\n DYNAMIC_STRING ds_cmd ;\n DYNAMIC_STRING ds_sorted , * ds_result ;\n DBUG_ENTER ( \"do_exec\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"cmd: '%s'\" , cmd ) ) ;\n while ( * cmd && my_isspace ( charset_info , * cmd ) ) cmd ++ ;\n if ( ! * cmd ) {\n report_or_die ( \"Missing argument in exec\" ) ;\n return ;\n }\n command -> last_argument = command -> end ;\n init_dynamic_string ( & ds_cmd , 0 , command -> query_len + 256 , 256 ) ;\n do_eval ( & ds_cmd , cmd , command -> end , ! is_windows ) ;\n if ( builtin_echo [ 0 ] && strncmp ( cmd , \"echo\" , 4 ) == 0 ) {\n replace ( & ds_cmd , \"echo\" , 4 , builtin_echo , strlen ( builtin_echo ) ) ;\n }\n # ifdef __WIN__ # ifndef USE_CYGWIN while ( replace ( & ds_cmd , \"/devull\" , 9 , \"NUL\" , 3 ) == 0 ) ;\n while ( replace ( & ds_cmd , \">&-\" , 3 , \">&4\" , 3 ) == 0 ) ;\n # endif # endif while ( replace ( & ds_cmd , \"\\n\" , 1 , \" \" , 1 ) == 0 ) ;\n DBUG_PRINT ( \"info\" , ( \"Executing '%s' as '%s'\" , command -> first_argument , ds_cmd . str ) ) ;\n if ( ! ( res_file = my_popen ( & ds_cmd , \"r\" ) ) ) {\n dynstr_free ( & ds_cmd ) ;\n if ( command -> abort_on_error ) report_or_die ( \"popen(\\\"%s\\\", \\\"r\\\") failed\" , command -> first_argument ) ;\n return ;\n }\n ds_result = & ds_res ;\n if ( display_result_sorted ) {\n init_dynamic_string ( & ds_sorted , \"\" , 1024 , 1024 ) ;\n ds_result = & ds_sorted ;\n }\n while ( fgets ( buf , sizeof ( buf ) , res_file ) ) {\n if ( disable_result_log ) {\n buf [ strlen ( buf ) - 1 ] = 0 ;\n DBUG_PRINT ( \"exec_result\" , ( \"%s\" , buf ) ) ;\n }\n else {\n replace_dynstr_append ( ds_result , buf ) ;\n }\n }\n error = pclose ( res_file ) ;\n if ( display_result_sorted ) {\n dynstr_append_sorted ( & ds_res , & ds_sorted , 0 ) ;\n dynstr_free ( & ds_sorted ) ;\n }\n if ( error > 0 ) {\n uint status = WEXITSTATUS ( error ) ;\n int i ;\n if ( command -> abort_on_error ) {\n report_or_die ( \"exec of '%s' failed, error: %d, status: %d, errno: %d\\n\" \"Output from before failure:\\n%s\\n\" , ds_cmd . str , error , status , errno , ds_res . str ) ;\n dynstr_free ( & ds_cmd ) ;\n return ;\n }\n DBUG_PRINT ( \"info\" , ( \"error: %d, status: %d\" , error , status ) ) ;\n i = match_expected_error ( command , status , NULL ) ;\n if ( i >= 0 ) DBUG_PRINT ( \"info\" , ( \"command \\\"%s\\\" failed with expected error: %d\" , command -> first_argument , status ) ) ;\n else {\n dynstr_free ( & ds_cmd ) ;\n if ( command -> expected_errors . count > 0 ) report_or_die ( \"command \\\"%s\\\" failed with wrong error: %d\" , command -> first_argument , status ) ;\n }\n }\n else if ( command -> expected_errors . err [ 0 ] . type == ERR_ERRNO && command -> expected_errors . err [ 0 ] . code . errnum != 0 ) {\n log_msg ( \"exec of '%s failed, error: %d, errno: %d\" , ds_cmd . str , error , errno ) ;\n dynstr_free ( & ds_cmd ) ;\n report_or_die ( \"command \\\"%s\\\" succeeded - should have failed with \" \"errno %d...\" , command -> first_argument , command -> expected_errors . err [ 0 ] . code . errnum ) ;\n }\n dynstr_free ( & ds_cmd ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 17298, "target": 0, "func": "static int ipvideo_decode_block_opcode_0x9 ( IpvideoContext * s , AVFrame * frame ) {\n int x , y ;\n unsigned char P [ 4 ] ;\n bytestream2_get_buffer ( & s -> stream_ptr , P , 4 ) ;\n if ( P [ 0 ] <= P [ 1 ] ) {\n if ( P [ 2 ] <= P [ 3 ] ) {\n for ( y = 0 ;\n y < 8 ;\n y ++ ) {\n int flags = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n for ( x = 0 ;\n x < 8 ;\n x ++ , flags >>= 2 ) * s -> pixel_ptr ++ = P [ flags & 0x03 ] ;\n s -> pixel_ptr += s -> line_inc ;\n }\n }\n else {\n uint32_t flags ;\n flags = bytestream2_get_le32 ( & s -> stream_ptr ) ;\n for ( y = 0 ;\n y < 8 ;\n y += 2 ) {\n for ( x = 0 ;\n x < 8 ;\n x += 2 , flags >>= 2 ) {\n s -> pixel_ptr [ x ] = s -> pixel_ptr [ x + 1 ] = s -> pixel_ptr [ x + s -> stride ] = s -> pixel_ptr [ x + 1 + s -> stride ] = P [ flags & 0x03 ] ;\n }\n s -> pixel_ptr += s -> stride * 2 ;\n }\n }\n }\n else {\n uint64_t flags ;\n flags = bytestream2_get_le64 ( & s -> stream_ptr ) ;\n if ( P [ 2 ] <= P [ 3 ] ) {\n for ( y = 0 ;\n y < 8 ;\n y ++ ) {\n for ( x = 0 ;\n x < 8 ;\n x += 2 , flags >>= 2 ) {\n s -> pixel_ptr [ x ] = s -> pixel_ptr [ x + 1 ] = P [ flags & 0x03 ] ;\n }\n s -> pixel_ptr += s -> stride ;\n }\n }\n else {\n for ( y = 0 ;\n y < 8 ;\n y += 2 ) {\n for ( x = 0 ;\n x < 8 ;\n x ++ , flags >>= 2 ) {\n s -> pixel_ptr [ x ] = s -> pixel_ptr [ x + s -> stride ] = P [ flags & 0x03 ] ;\n }\n s -> pixel_ptr += s -> stride * 2 ;\n }\n }\n }\n return 0 ;\n }"}
{"idx": 17299, "target": 0, "func": "TEST_F ( TemplateURLTest , URLRefTestCount ) {\n TemplateURLData data ;\n data . SetURL ( \"http://foo{\nsearchTerms}\n{\ncount?}\n\" ) ;\n TemplateURL url ( data ) ;\n EXPECT_TRUE ( url . url_ref ( ) . IsValid ( search_terms_data_ ) ) ;\n ASSERT_TRUE ( url . url_ref ( ) . SupportsReplacement ( search_terms_data_ ) ) ;\n GURL result ( url . url_ref ( ) . ReplaceSearchTerms ( TemplateURLRef : : SearchTermsArgs ( ASCIIToUTF16 ( \"X\" ) ) , search_terms_data_ ) ) ;\n ASSERT_TRUE ( result . is_valid ( ) ) ;\n EXPECT_EQ ( \"http://foox/\" , result . spec ( ) ) ;\n }"}
{"idx": 17300, "target": 0, "func": "static gboolean dissect_mpa_req_rep ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , gint message_type ) {\n proto_tree * mpa_tree = NULL ;\n proto_tree * mpa_header_tree = NULL ;\n proto_item * mpa_item = NULL ;\n proto_item * mpa_header_item = NULL ;\n guint16 pd_length ;\n guint32 offset = 0 ;\n mpa_packetlist ( pinfo , message_type ) ;\n if ( tree ) {\n mpa_item = proto_tree_add_item ( tree , proto_iwarp_mpa , tvb , 0 , - 1 , ENC_NA ) ;\n mpa_tree = proto_item_add_subtree ( mpa_item , ett_mpa ) ;\n if ( message_type == MPA_REQUEST_FRAME ) {\n mpa_header_item = proto_tree_add_item ( mpa_tree , hf_mpa_req , tvb , offset , - 1 , ENC_NA ) ;\n mpa_header_tree = proto_item_add_subtree ( mpa_header_item , ett_mpa ) ;\n proto_tree_add_item ( mpa_header_tree , hf_mpa_key_req , tvb , offset , MPA_REQ_REP_KEY_LEN , ENC_NA ) ;\n }\n if ( message_type == MPA_REPLY_FRAME ) {\n mpa_header_item = proto_tree_add_item ( mpa_tree , hf_mpa_rep , tvb , offset , - 1 , ENC_NA ) ;\n mpa_header_tree = proto_item_add_subtree ( mpa_header_item , ett_mpa ) ;\n proto_tree_add_item ( mpa_header_tree , hf_mpa_key_rep , tvb , offset , MPA_REQ_REP_KEY_LEN , ENC_NA ) ;\n }\n offset += MPA_REQ_REP_KEY_LEN ;\n proto_tree_add_item ( mpa_header_tree , hf_mpa_flag_m , tvb , offset , MPA_REQ_REP_FLAG_LEN , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( mpa_header_tree , hf_mpa_flag_c , tvb , offset , MPA_REQ_REP_FLAG_LEN , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( mpa_header_tree , hf_mpa_flag_r , tvb , offset , MPA_REQ_REP_FLAG_LEN , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( mpa_header_tree , hf_mpa_flag_res , tvb , offset , MPA_REQ_REP_FLAG_LEN , ENC_BIG_ENDIAN ) ;\n offset += MPA_REQ_REP_FLAG_LEN ;\n proto_tree_add_item ( mpa_header_tree , hf_mpa_rev , tvb , offset , MPA_REQ_REP_REV_LEN , ENC_BIG_ENDIAN ) ;\n offset += MPA_REQ_REP_REV_LEN ;\n pd_length = tvb_get_ntohs ( tvb , offset ) ;\n if ( pd_length > MPA_MAX_PD_LENGTH ) {\n proto_tree_add_expert_format ( tree , pinfo , & ei_mpa_bad_length , tvb , offset , 2 , \"[PD length field indicates more 512 bytes of Private Data]\" ) ;\n return FALSE ;\n }\n proto_tree_add_uint ( mpa_header_tree , hf_mpa_pd_length , tvb , offset , MPA_REQ_REP_PDLENGTH_LEN , pd_length ) ;\n offset += MPA_REQ_REP_PDLENGTH_LEN ;\n if ( pd_length ) {\n proto_tree_add_item ( mpa_header_tree , hf_mpa_private_data , tvb , offset , pd_length , ENC_NA ) ;\n }\n }\n return TRUE ;\n }"}
{"idx": 17301, "target": 0, "func": "static gpgme_error_t gpgsm_cancel ( void * engine ) {\n engine_gpgsm_t gpgsm = engine ;\n if ( ! gpgsm ) return gpg_error ( GPG_ERR_INV_VALUE ) ;\n if ( gpgsm -> status_cb . fd != - 1 ) _gpgme_io_close ( gpgsm -> status_cb . fd ) ;\n if ( gpgsm -> input_cb . fd != - 1 ) _gpgme_io_close ( gpgsm -> input_cb . fd ) ;\n if ( gpgsm -> output_cb . fd != - 1 ) _gpgme_io_close ( gpgsm -> output_cb . fd ) ;\n if ( gpgsm -> message_cb . fd != - 1 ) _gpgme_io_close ( gpgsm -> message_cb . fd ) ;\n if ( gpgsm -> assuan_ctx ) {\n assuan_release ( gpgsm -> assuan_ctx ) ;\n gpgsm -> assuan_ctx = NULL ;\n }\n return 0 ;\n }"}
{"idx": 17302, "target": 0, "func": "WORK_STATE tls_post_process_client_key_exchange ( SSL * s , WORK_STATE wst ) {\n # ifndef OPENSSL_NO_SCTP if ( wst == WORK_MORE_A ) {\n if ( SSL_IS_DTLS ( s ) ) {\n unsigned char sctpauthkey [ 64 ] ;\n char labelbuffer [ sizeof ( DTLS1_SCTP_AUTH_LABEL ) ] ;\n memcpy ( labelbuffer , DTLS1_SCTP_AUTH_LABEL , sizeof ( DTLS1_SCTP_AUTH_LABEL ) ) ;\n if ( SSL_export_keying_material ( s , sctpauthkey , sizeof ( sctpauthkey ) , labelbuffer , sizeof ( labelbuffer ) , NULL , 0 , 0 ) <= 0 ) {\n ossl_statem_set_error ( s ) ;\n return WORK_ERROR ;\n ;\n }\n BIO_ctrl ( SSL_get_wbio ( s ) , BIO_CTRL_DGRAM_SCTP_ADD_AUTH_KEY , sizeof ( sctpauthkey ) , sctpauthkey ) ;\n }\n wst = WORK_MORE_B ;\n }\n if ( ( wst == WORK_MORE_B ) && BIO_dgram_is_sctp ( SSL_get_wbio ( s ) ) && s -> renegotiate && ( s -> session -> peer == NULL || s -> statem . no_cert_verify ) && BIO_dgram_sctp_msg_waiting ( SSL_get_rbio ( s ) ) ) {\n s -> s3 -> in_read_app_data = 2 ;\n s -> rwstate = SSL_READING ;\n BIO_clear_retry_flags ( SSL_get_rbio ( s ) ) ;\n BIO_set_retry_read ( SSL_get_rbio ( s ) ) ;\n ossl_statem_set_sctp_read_sock ( s , 1 ) ;\n return WORK_MORE_B ;\n }\n else {\n ossl_statem_set_sctp_read_sock ( s , 0 ) ;\n }\n # endif if ( s -> statem . no_cert_verify || ! s -> session -> peer ) {\n if ( ! ssl3_digest_cached_records ( s , 0 ) ) {\n ossl_statem_set_error ( s ) ;\n return WORK_ERROR ;\n }\n return WORK_FINISHED_CONTINUE ;\n }\n else {\n if ( ! s -> s3 -> handshake_buffer ) {\n SSLerr ( SSL_F_TLS_POST_PROCESS_CLIENT_KEY_EXCHANGE , ERR_R_INTERNAL_ERROR ) ;\n ossl_statem_set_error ( s ) ;\n return WORK_ERROR ;\n }\n if ( ! ssl3_digest_cached_records ( s , 1 ) ) {\n ossl_statem_set_error ( s ) ;\n return WORK_ERROR ;\n }\n }\n return WORK_FINISHED_CONTINUE ;\n }"}
{"idx": 17303, "target": 0, "func": "static int dissect_pcp_message_pmns_ids ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , int offset ) {\n proto_item * pcp_pmns_ids_item ;\n proto_tree * pcp_pmns_ids_tree ;\n guint32 num_ids ;\n guint32 i ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"[%s]\" , val_to_str ( PCP_PDU_PMNS_IDS , packettypenames , \"Unknown Type:0x%02x\" ) ) ;\n pcp_pmns_ids_item = proto_tree_add_item ( tree , hf_pcp_pmns_ids , tvb , offset , - 1 , ENC_NA ) ;\n pcp_pmns_ids_tree = proto_item_add_subtree ( pcp_pmns_ids_item , ett_pcp ) ;\n proto_tree_add_item ( pcp_pmns_ids_tree , hf_pcp_pmns_ids_status , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( pcp_pmns_ids_tree , hf_pcp_pmns_ids_numids , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n num_ids = tvb_get_ntohl ( tvb , offset ) ;\n offset += 4 ;\n populate_pmids_to_names ( pinfo , tvb , offset , num_ids ) ;\n for ( i = 0 ;\n i < num_ids ;\n i ++ ) {\n offset = dissect_pcp_partial_pmid ( tvb , pinfo , pcp_pmns_ids_tree , offset ) ;\n }\n return offset ;\n }"}
{"idx": 17304, "target": 0, "func": "int vp9_read_sync_code ( struct vp9_read_bit_buffer * const rb ) {\n return vp9_rb_read_literal ( rb , 8 ) == VP9_SYNC_CODE_0 && vp9_rb_read_literal ( rb , 8 ) == VP9_SYNC_CODE_1 && vp9_rb_read_literal ( rb , 8 ) == VP9_SYNC_CODE_2 ;\n }"}
{"idx": 17305, "target": 0, "func": "static int dissect_pvfs2_mgmt_setparam_request ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n offset = dissect_pvfs_fs_id ( tvb , tree , offset ) ;\n offset = dissect_pvfs_server_param ( tvb , tree , offset , pinfo ) ;\n return offset ;\n }"}
{"idx": 17306, "target": 0, "func": "static void protobuf_seek_forward ( protobuf_desc_t * pb , gint len ) {\n pb -> offset += len ;\n pb -> bytes_left -= len ;\n }"}
{"idx": 17307, "target": 0, "func": "static int get_kf_active_quality ( const RATE_CONTROL * const rc , int q , vpx_bit_depth_t bit_depth ) {\n int * kf_low_motion_minq ;\n int * kf_high_motion_minq ;\n ASSIGN_MINQ_TABLE ( bit_depth , kf_low_motion_minq ) ;\n ASSIGN_MINQ_TABLE ( bit_depth , kf_high_motion_minq ) ;\n return get_active_quality ( q , rc -> kf_boost , kf_low , kf_high , kf_low_motion_minq , kf_high_motion_minq ) ;\n }"}
{"idx": 17308, "target": 0, "func": "void vp9_set_svc ( VP9_COMP * cpi , int use_svc ) {\n cpi -> use_svc = use_svc ;\n return ;\n }"}
{"idx": 17309, "target": 0, "func": "void msc_alert ( modsec_rec * msr , int level , msre_actionset * actionset , const char * action_message , const char * rule_message ) {\n const char * message = msc_alert_message ( msr , actionset , action_message , rule_message ) ;\n msr_log ( msr , level , \"%s\" , message ) ;\n }"}
{"idx": 17310, "target": 0, "func": "static void virtio_net_save ( QEMUFile * f , void * opaque ) {\n VirtIONet * n = opaque ;\n assert ( ! n -> vhost_started ) ;\n virtio_save ( & n -> vdev , f ) ;\n qemu_put_buffer ( f , n -> mac , ETH_ALEN ) ;\n qemu_put_be32 ( f , n -> tx_waiting ) ;\n qemu_put_be32 ( f , n -> mergeable_rx_bufs ) ;\n qemu_put_be16 ( f , n -> status ) ;\n qemu_put_byte ( f , n -> promisc ) ;\n qemu_put_byte ( f , n -> allmulti ) ;\n qemu_put_be32 ( f , n -> mac_table . in_use ) ;\n qemu_put_buffer ( f , n -> mac_table . macs , n -> mac_table . in_use * ETH_ALEN ) ;\n qemu_put_buffer ( f , ( uint8_t * ) n -> vlans , MAX_VLAN >> 3 ) ;\n qemu_put_be32 ( f , n -> has_vnet_hdr ) ;\n qemu_put_byte ( f , n -> mac_table . multi_overflow ) ;\n qemu_put_byte ( f , n -> mac_table . uni_overflow ) ;\n qemu_put_byte ( f , n -> alluni ) ;\n qemu_put_byte ( f , n -> nomulti ) ;\n qemu_put_byte ( f , n -> nouni ) ;\n qemu_put_byte ( f , n -> nobcast ) ;\n qemu_put_byte ( f , n -> has_ufo ) ;\n }"}
{"idx": 17311, "target": 1, "func": "TEST_F ( ProtocolHandlerRegistryTest , MAYBE_TestInstallDefaultHandler ) {\n RecreateRegistry ( false ) ;\n registry ( ) -> AddPredefinedHandler ( CreateProtocolHandler ( \"test\" , GURL ( \"http://test.com/%s\" ) , \"Test\" ) ) ;\n registry ( ) -> InitProtocolSettings ( ) ;\n std : : vector < std : : string > protocols ;\n registry ( ) -> GetRegisteredProtocols ( & protocols ) ;\n ASSERT_EQ ( static_cast < size_t > ( 1 ) , protocols . size ( ) ) ;\n }"}
{"idx": 17312, "target": 0, "func": "static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 17313, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( NewAvatarMenuButtonTest , MAYBE_SignOut ) {\n if ( ! profiles : : IsMultipleProfilesEnabled ( ) ) return ;\n CreateTestingProfile ( ) ;\n ASSERT_NO_FATAL_FAILURE ( StartAvatarMenu ( ) ) ;\n BrowserList * browser_list = BrowserList : : GetInstance ( chrome : : GetActiveDesktop ( ) ) ;\n EXPECT_EQ ( 1U , browser_list -> size ( ) ) ;\n content : : WindowedNotificationObserver window_close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , content : : Source < Browser > ( browser ( ) ) ) ;\n AvatarMenu * menu = ProfileChooserView : : profile_bubble_ -> avatar_menu_ . get ( ) ;\n const AvatarMenu : : Item & menu_item_before = menu -> GetItemAt ( menu -> GetActiveProfileIndex ( ) ) ;\n EXPECT_FALSE ( menu_item_before . signin_required ) ;\n ui : : MouseEvent mouse_ev ( ui : : ET_MOUSE_RELEASED , gfx : : Point ( ) , gfx : : Point ( ) , 0 , 0 ) ;\n ProfileChooserView : : profile_bubble_ -> ButtonPressed ( ProfileChooserView : : profile_bubble_ -> lock_button_ , mouse_ev ) ;\n EXPECT_TRUE ( menu -> GetItemAt ( menu -> GetActiveProfileIndex ( ) ) . signin_required ) ;\n window_close_observer . Wait ( ) ;\n EXPECT_TRUE ( browser_list -> empty ( ) ) ;\n if ( ! UserManagerView : : IsShowing ( ) ) base : : MessageLoop : : current ( ) -> RunUntilIdle ( ) ;\n chrome : : HideUserManager ( ) ;\n }"}
{"idx": 17314, "target": 0, "func": "void remove_tap_listener_q931_calls ( void ) {\n remove_tap_listener ( & ( the_tapinfo_struct . q931_dummy ) ) ;\n have_q931_tap_listener = FALSE ;\n }"}
{"idx": 17315, "target": 0, "func": "static int dissect_ber_INTEGER ( gboolean implicit_tag , tvbuff_t * tvb , int offset , asn1_ctx_t * actx , proto_tree * tree , int hf_index ) {\n offset = dissect_ber_integer ( implicit_tag , actx , tree , tvb , offset , hf_index , & actx -> external . indirect_reference ) ;\n actx -> external . indirect_ref_present = TRUE ;\n return offset ;\n }"}
{"idx": 17316, "target": 0, "func": "static void U_CALLCONV _LMBCSToUnicodeWithOffsets ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n char LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n UChar uniChar ;\n const char * saveSource ;\n const char * pStartLMBCS = args -> source ;\n const char * errSource = NULL ;\n int8_t savebytes = 0 ;\n while ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit > args -> target ) {\n saveSource = args -> source ;\n if ( args -> converter -> toULength ) {\n const char * saveSourceLimit ;\n size_t size_old = args -> converter -> toULength ;\n size_t size_new_maybe_1 = sizeof ( LMBCS ) - size_old ;\n size_t size_new_maybe_2 = args -> sourceLimit - args -> source ;\n size_t size_new = ( size_new_maybe_1 < size_new_maybe_2 ) ? size_new_maybe_1 : size_new_maybe_2 ;\n uprv_memcpy ( LMBCS , args -> converter -> toUBytes , size_old ) ;\n uprv_memcpy ( LMBCS + size_old , args -> source , size_new ) ;\n saveSourceLimit = args -> sourceLimit ;\n args -> source = errSource = LMBCS ;\n args -> sourceLimit = LMBCS + size_old + size_new ;\n savebytes = ( int8_t ) ( size_old + size_new ) ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n args -> source = saveSource + ( ( args -> source - LMBCS ) - size_old ) ;\n args -> sourceLimit = saveSourceLimit ;\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n args -> converter -> toULength = savebytes ;\n uprv_memcpy ( args -> converter -> toUBytes , LMBCS , savebytes ) ;\n args -> source = args -> sourceLimit ;\n * err = U_ZERO_ERROR ;\n return ;\n }\n else {\n args -> converter -> toULength = 0 ;\n }\n }\n else {\n errSource = saveSource ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n savebytes = ( int8_t ) ( args -> source - saveSource ) ;\n }\n if ( U_SUCCESS ( * err ) ) {\n if ( uniChar < 0xfffe ) {\n * ( args -> target ) ++ = uniChar ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = ( int32_t ) ( saveSource - pStartLMBCS ) ;\n }\n }\n else if ( uniChar == 0xfffe ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n }\n if ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit <= args -> target ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n else if ( U_FAILURE ( * err ) ) {\n args -> converter -> toULength = savebytes ;\n if ( savebytes > 0 ) {\n uprv_memcpy ( args -> converter -> toUBytes , errSource , savebytes ) ;\n }\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n * err = U_ZERO_ERROR ;\n }\n }\n }"}
{"idx": 17317, "target": 0, "func": "int xmlIsChar ( unsigned int ch ) {\n return ( xmlIsCharQ ( ch ) ) ;\n }"}
{"idx": 17318, "target": 0, "func": "void do_shutdown_server ( struct st_command * command ) {\n long timeout = 60 ;\n int pid ;\n DYNAMIC_STRING ds_pidfile_name ;\n MYSQL * mysql = cur_con -> mysql ;\n static DYNAMIC_STRING ds_timeout ;\n const struct command_arg shutdown_args [ ] = {\n {\n \"timeout\" , ARG_STRING , FALSE , & ds_timeout , \"Timeout before killing server\" }\n }\n ;\n DBUG_ENTER ( \"do_shutdown_server\" ) ;\n check_command_args ( command , command -> first_argument , shutdown_args , sizeof ( shutdown_args ) / sizeof ( struct command_arg ) , ' ' ) ;\n if ( ds_timeout . length ) {\n char * endptr ;\n timeout = strtol ( ds_timeout . str , & endptr , 10 ) ;\n if ( * endptr != '\\0' ) die ( \"Illegal argument for timeout: '%s'\" , ds_timeout . str ) ;\n }\n dynstr_free ( & ds_timeout ) ;\n if ( query_get_string ( mysql , \"SHOW VARIABLES LIKE 'pid_file'\" , 1 , & ds_pidfile_name ) ) die ( \"Failed to get pid_file from server\" ) ;\n {\n int fd ;\n char buff [ 32 ] ;\n if ( ( fd = my_open ( ds_pidfile_name . str , O_RDONLY , MYF ( 0 ) ) ) < 0 ) die ( \"Failed to open file '%s'\" , ds_pidfile_name . str ) ;\n dynstr_free ( & ds_pidfile_name ) ;\n if ( my_read ( fd , ( uchar * ) & buff , sizeof ( buff ) , MYF ( 0 ) ) <= 0 ) {\n my_close ( fd , MYF ( 0 ) ) ;\n die ( \"pid file was empty\" ) ;\n }\n my_close ( fd , MYF ( 0 ) ) ;\n pid = atoi ( buff ) ;\n if ( pid == 0 ) die ( \"Pidfile didn't contain a valid number\" ) ;\n }\n DBUG_PRINT ( \"info\" , ( \"Got pid %d\" , pid ) ) ;\n if ( timeout && mysql_shutdown ( mysql , SHUTDOWN_DEFAULT ) ) die ( \"mysql_shutdown failed\" ) ;\n while ( timeout -- ) {\n if ( my_kill ( pid , 0 ) < 0 ) {\n DBUG_PRINT ( \"info\" , ( \"Process %d does not exist anymore\" , pid ) ) ;\n DBUG_VOID_RETURN ;\n }\n DBUG_PRINT ( \"info\" , ( \"Sleeping, timeout: %ld\" , timeout ) ) ;\n my_sleep ( 1000000L ) ;\n }\n DBUG_PRINT ( \"info\" , ( \"Killing server, pid: %d\" , pid ) ) ;\n ( void ) my_kill ( pid , 9 ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 17319, "target": 0, "func": "static int tipc_nl_compat_link_reset_stats ( struct tipc_nl_compat_cmd_doit * cmd , struct sk_buff * skb , struct tipc_nl_compat_msg * msg ) {\n char * name ;\n struct nlattr * link ;\n name = ( char * ) TLV_DATA ( msg -> req ) ;\n link = nla_nest_start ( skb , TIPC_NLA_LINK ) ;\n if ( ! link ) return - EMSGSIZE ;\n if ( nla_put_string ( skb , TIPC_NLA_LINK_NAME , name ) ) return - EMSGSIZE ;\n nla_nest_end ( skb , link ) ;\n return 0 ;\n }"}
{"idx": 17320, "target": 0, "func": "static int dissect_opcua_message ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n FctParse pfctParse = NULL ;\n enum MessageType msgtype = MSG_INVALID ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"OpcUa\" ) ;\n if ( tvb_memeql ( tvb , 0 , \"HEL\" , 3 ) == 0 ) {\n msgtype = MSG_HELLO ;\n pfctParse = parseHello ;\n }\n else if ( tvb_memeql ( tvb , 0 , \"ACK\" , 3 ) == 0 ) {\n msgtype = MSG_ACKNOWLEDGE ;\n pfctParse = parseAcknowledge ;\n }\n else if ( tvb_memeql ( tvb , 0 , \"ERR\" , 3 ) == 0 ) {\n msgtype = MSG_ERROR ;\n pfctParse = parseError ;\n }\n else if ( tvb_memeql ( tvb , 0 , \"MSG\" , 3 ) == 0 ) {\n msgtype = MSG_MESSAGE ;\n pfctParse = parseMessage ;\n }\n else if ( tvb_memeql ( tvb , 0 , \"OPN\" , 3 ) == 0 ) {\n msgtype = MSG_OPENSECURECHANNEL ;\n pfctParse = parseOpenSecureChannel ;\n }\n else if ( tvb_memeql ( tvb , 0 , \"CLO\" , 3 ) == 0 ) {\n msgtype = MSG_CLOSESECURECHANNEL ;\n pfctParse = parseCloseSecureChannel ;\n }\n else {\n msgtype = MSG_INVALID ;\n }\n col_set_str ( pinfo -> cinfo , COL_INFO , g_szMessageTypes [ msgtype ] ) ;\n if ( pfctParse ) {\n gint offset = 0 ;\n int iServiceId = - 1 ;\n tvbuff_t * next_tvb = tvb ;\n gboolean bParseService = TRUE ;\n gboolean bIsLastFragment = FALSE ;\n proto_item * ti = NULL ;\n proto_tree * transport_tree = NULL ;\n ti = proto_tree_add_item ( tree , proto_opcua , tvb , 0 , - 1 , ENC_NA ) ;\n transport_tree = proto_item_add_subtree ( ti , ett_opcua_transport ) ;\n if ( msgtype == MSG_MESSAGE ) {\n guint8 chunkType = 0 ;\n guint32 opcua_seqid = 0 ;\n guint32 opcua_num = 0 ;\n guint32 opcua_seqnum = 0 ;\n fragment_head * frag_msg = NULL ;\n offset = 3 ;\n chunkType = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n offset += 4 ;\n offset += 4 ;\n offset += 4 ;\n opcua_num = tvb_get_letohl ( tvb , offset ) ;\n offset += 4 ;\n opcua_seqid = tvb_get_letohl ( tvb , offset ) ;\n offset += 4 ;\n if ( chunkType == 'A' ) {\n fragment_delete ( & opcua_reassembly_table , pinfo , opcua_seqid , NULL ) ;\n col_clear_fence ( pinfo -> cinfo , COL_INFO ) ;\n col_set_str ( pinfo -> cinfo , COL_INFO , \"Abort message\" ) ;\n offset = 0 ;\n ( * pfctParse ) ( transport_tree , tvb , pinfo , & offset ) ;\n parseAbort ( transport_tree , tvb , pinfo , & offset ) ;\n return tvb_reported_length ( tvb ) ;\n }\n frag_msg = fragment_get ( & opcua_reassembly_table , pinfo , opcua_seqid , NULL ) ;\n if ( frag_msg == NULL ) {\n frag_msg = fragment_get_reassembled_id ( & opcua_reassembly_table , pinfo , opcua_seqid ) ;\n }\n if ( frag_msg != NULL || chunkType != 'F' ) {\n gboolean bSaveFragmented = pinfo -> fragmented ;\n gboolean bMoreFragments = TRUE ;\n tvbuff_t * new_tvb = NULL ;\n pinfo -> fragmented = TRUE ;\n if ( frag_msg == NULL ) {\n opcua_seqnum = 0 ;\n }\n else {\n while ( frag_msg -> next ) {\n frag_msg = frag_msg -> next ;\n }\n opcua_seqnum = frag_msg -> offset + 1 ;\n if ( chunkType == 'F' ) {\n bMoreFragments = FALSE ;\n }\n }\n frag_msg = fragment_add_seq_check ( & opcua_reassembly_table , tvb , offset , pinfo , opcua_seqid , NULL , opcua_seqnum , tvb_captured_length_remaining ( tvb , offset ) , bMoreFragments ) ;\n new_tvb = process_reassembled_data ( tvb , offset , pinfo , \"Reassembled Message\" , frag_msg , & opcua_frag_items , NULL , transport_tree ) ;\n if ( new_tvb ) {\n bIsLastFragment = TRUE ;\n }\n else {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" (Message fragment %u)\" , opcua_num ) ;\n }\n if ( new_tvb ) {\n next_tvb = new_tvb ;\n }\n else {\n bParseService = FALSE ;\n next_tvb = tvb_new_subset_remaining ( tvb , 0 ) ;\n }\n pinfo -> fragmented = bSaveFragmented ;\n }\n }\n offset = 0 ;\n iServiceId = ( * pfctParse ) ( transport_tree , tvb , pinfo , & offset ) ;\n if ( msgtype == MSG_MESSAGE && bParseService ) {\n if ( bIsLastFragment != FALSE ) {\n offset = 0 ;\n }\n iServiceId = parseService ( transport_tree , next_tvb , pinfo , & offset ) ;\n }\n if ( iServiceId != - 1 ) {\n const gchar * szServiceName = val_to_str ( ( guint32 ) iServiceId , g_requesttypes , \"ServiceId %d\" ) ;\n if ( bIsLastFragment == FALSE ) {\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"%s: %s\" , g_szMessageTypes [ msgtype ] , szServiceName ) ;\n }\n else {\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"%s: %s (Message Reassembled)\" , g_szMessageTypes [ msgtype ] , szServiceName ) ;\n }\n }\n }\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 17321, "target": 0, "func": "void record_peer_stats ( sockaddr_u * addr , int status , double offset , double delay , double dispersion , double jitter ) {\n l_fp now ;\n u_long day ;\n if ( ! stats_control ) return ;\n get_systime ( & now ) ;\n filegen_setup ( & peerstats , now . l_ui ) ;\n day = now . l_ui / 86400 + MJD_1900 ;\n now . l_ui %= 86400 ;\n if ( peerstats . fp != NULL ) {\n fprintf ( peerstats . fp , \"%lu %s %s %x %.9f %.9f %.9f %.9f\\n\" , day , ulfptoa ( & now , 3 ) , stoa ( addr ) , status , offset , delay , dispersion , jitter ) ;\n fflush ( peerstats . fp ) ;\n }\n }"}
{"idx": 17322, "target": 0, "func": "static int dissect_h245_MultiplePayloadStreamElement ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MultiplePayloadStreamElement , MultiplePayloadStreamElement_sequence ) ;\n return offset ;\n }"}
{"idx": 17323, "target": 0, "func": "static uint64_t xhci_port_read ( void * ptr , hwaddr reg , unsigned size ) {\n XHCIPort * port = ptr ;\n uint32_t ret ;\n switch ( reg ) {\n case 0x00 : ret = port -> portsc ;\n break ;\n case 0x04 : case 0x08 : ret = 0 ;\n break ;\n case 0x0c : default : trace_usb_xhci_unimplemented ( \"port read\" , reg ) ;\n ret = 0 ;\n }\n trace_usb_xhci_port_read ( port -> portnr , reg , ret ) ;\n return ret ;\n }"}
{"idx": 17324, "target": 0, "func": "int gs_setdevice_no_erase ( gs_gstate * pgs , gx_device * dev ) {\n int open_code = 0 , code ;\n gs_lib_ctx_t * libctx = gs_lib_ctx_get_interp_instance ( pgs -> memory ) ;\n if ( libctx -> io_device_table != NULL ) {\n cmm_dev_profile_t * dev_profile ;\n if ( pgs -> icc_manager -> lab_profile == NULL ) {\n gsicc_init_iccmanager ( pgs ) ;\n }\n if ( dev -> procs . get_profile != NULL ) {\n code = dev_proc ( dev , get_profile ) ( dev , & dev_profile ) ;\n if ( code < 0 ) {\n return ( code ) ;\n }\n if ( dev_profile == NULL || dev_profile -> device_profile [ gsDEFAULTPROFILE ] == NULL ) {\n if ( ( code = gsicc_init_device_profile_struct ( dev , NULL , gsDEFAULTPROFILE ) ) < 0 ) return ( code ) ;\n if ( ( code = gsicc_set_device_profile_intent ( dev , gsRINOTSPECIFIED , gsDEFAULTPROFILE ) ) < 0 ) return ( code ) ;\n }\n }\n }\n if ( ! dev -> is_open ) {\n gx_device_fill_in_procs ( dev ) ;\n if ( libctx -> io_device_table != NULL ) {\n cmm_dev_profile_t * dev_profile ;\n if ( dev -> procs . get_profile != NULL ) {\n code = dev_proc ( dev , get_profile ) ( dev , & dev_profile ) ;\n if ( code < 0 ) {\n return ( code ) ;\n }\n if ( dev_profile == NULL || dev_profile -> device_profile [ gsDEFAULTPROFILE ] == NULL ) {\n if ( ( code = gsicc_init_device_profile_struct ( dev , NULL , gsDEFAULTPROFILE ) ) < 0 ) return ( code ) ;\n }\n }\n }\n if ( gs_device_is_memory ( dev ) ) {\n gx_device * odev = gs_currentdevice_inline ( pgs ) ;\n while ( odev != 0 && gs_device_is_memory ( odev ) ) odev = ( ( gx_device_memory * ) odev ) -> target ;\n gx_device_set_target ( ( ( gx_device_forward * ) dev ) , odev ) ;\n }\n code = open_code = gs_opendevice ( dev ) ;\n if ( code < 0 ) return code ;\n }\n gs_setdevice_no_init ( pgs , dev ) ;\n pgs -> ctm_default_set = false ;\n if ( ( code = gs_initmatrix ( pgs ) ) < 0 || ( code = gs_initclip ( pgs ) ) < 0 ) return code ;\n pgs -> in_cachedevice = 0 ;\n pgs -> in_charpath = ( gs_char_path_mode ) 0 ;\n return open_code ;\n }"}
{"idx": 17325, "target": 1, "func": "enum nss_status CONCAT ( _nss_files_set , ENTNAME ) ( int stayopen ) {\n enum nss_status status ;\n __libc_lock_lock ( lock ) ;\n status = internal_setent ( stayopen ) ;\n if ( status == NSS_STATUS_SUCCESS && fgetpos ( stream , & position ) < 0 ) {\n fclose ( stream ) ;\n stream = NULL ;\n status = NSS_STATUS_UNAVAIL ;\n }\n last_use = getent ;\n __libc_lock_unlock ( lock ) ;\n return status ;\n }"}
{"idx": 17326, "target": 0, "func": "static int decode_tag ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n NellyMoserDecodeContext * s = avctx -> priv_data ;\n int blocks , i , ret ;\n float * samples_flt ;\n blocks = buf_size / NELLY_BLOCK_LEN ;\n if ( blocks <= 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Packet is too small\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( buf_size % NELLY_BLOCK_LEN ) {\n av_log ( avctx , AV_LOG_WARNING , \"Leftover bytes: %d.\\n\" , buf_size % NELLY_BLOCK_LEN ) ;\n }\n frame -> nb_samples = NELLY_SAMPLES * blocks ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n samples_flt = ( float * ) frame -> data [ 0 ] ;\n for ( i = 0 ;\n i < blocks ;\n i ++ ) {\n nelly_decode_block ( s , buf , samples_flt ) ;\n samples_flt += NELLY_SAMPLES ;\n buf += NELLY_BLOCK_LEN ;\n }\n * got_frame_ptr = 1 ;\n return buf_size ;\n }"}
{"idx": 17327, "target": 0, "func": "TSVIO TSVConnWrite ( TSVConn connp , TSCont contp , TSIOBufferReader readerp , int64_t nbytes ) {\n sdk_assert ( sdk_sanity_check_iocore_structure ( connp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_iocore_structure ( contp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_iocore_structure ( readerp ) == TS_SUCCESS ) ;\n sdk_assert ( nbytes >= 0 ) ;\n FORCE_PLUGIN_SCOPED_MUTEX ( contp ) ;\n VConnection * vc = ( VConnection * ) connp ;\n return reinterpret_cast < TSVIO > ( vc -> do_io_write ( ( INKContInternal * ) contp , nbytes , ( IOBufferReader * ) readerp ) ) ;\n }"}
{"idx": 17328, "target": 0, "func": "static void U_CALLCONV _LMBCSOpen ## n ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err ) \\ {\n _LMBCSOpenWorker ( _this , pArgs , err , n ) ;\n }\n static void _LMBCSOpenWorker ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err , ulmbcs_byte_t OptGroup ) {\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) uprv_malloc ( sizeof ( UConverterDataLMBCS ) ) ;\n _this -> extraInfo = extraInfo ;\n if ( extraInfo != NULL ) {\n UConverterNamePieces stackPieces ;\n UConverterLoadArgs stackArgs = UCNV_LOAD_ARGS_INITIALIZER ;\n ulmbcs_byte_t i ;\n uprv_memset ( extraInfo , 0 , sizeof ( UConverterDataLMBCS ) ) ;\n stackArgs . onlyTestIsLoadable = pArgs -> onlyTestIsLoadable ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST && U_SUCCESS ( * err ) ;\n i ++ ) {\n if ( OptGroupByteToCPName [ i ] != NULL ) {\n extraInfo -> OptGrpConverter [ i ] = ucnv_loadSharedData ( OptGroupByteToCPName [ i ] , & stackPieces , & stackArgs , err ) ;\n }\n }\n if ( U_FAILURE ( * err ) || pArgs -> onlyTestIsLoadable ) {\n _LMBCSClose ( _this ) ;\n return ;\n }\n extraInfo -> OptGroup = OptGroup ;\n extraInfo -> localeConverterIndex = FindLMBCSLocale ( pArgs -> locale ) ;\n }\n else {\n * err = U_MEMORY_ALLOCATION_ERROR ;\n }\n }\n U_CDECL_BEGIN static void U_CALLCONV _LMBCSClose ( UConverter * _this ) {\n if ( _this -> extraInfo != NULL ) {\n ulmbcs_byte_t Ix ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) _this -> extraInfo ;\n for ( Ix = 0 ;\n Ix <= ULMBCS_GRP_LAST ;\n Ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ Ix ] != NULL ) ucnv_unloadSharedDataIfReady ( extraInfo -> OptGrpConverter [ Ix ] ) ;\n }\n if ( ! _this -> isExtraLocal ) {\n uprv_free ( _this -> extraInfo ) ;\n _this -> extraInfo = NULL ;\n }\n }\n }\n typedef struct LMBCSClone {\n UConverter cnv ;\n UConverterDataLMBCS lmbcs ;\n }\n LMBCSClone ;\n static UConverter * U_CALLCONV _LMBCSSafeClone ( const UConverter * cnv , void * stackBuffer , int32_t * pBufferSize , UErrorCode * status ) {\n ( void ) status ;\n LMBCSClone * newLMBCS ;\n UConverterDataLMBCS * extraInfo ;\n int32_t i ;\n if ( * pBufferSize <= 0 ) {\n * pBufferSize = ( int32_t ) sizeof ( LMBCSClone ) ;\n return NULL ;\n }\n extraInfo = ( UConverterDataLMBCS * ) cnv -> extraInfo ;\n newLMBCS = ( LMBCSClone * ) stackBuffer ;\n uprv_memcpy ( & newLMBCS -> lmbcs , extraInfo , sizeof ( UConverterDataLMBCS ) ) ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST ;\n ++ i ) {\n if ( extraInfo -> OptGrpConverter [ i ] != NULL ) {\n ucnv_incrementRefCount ( extraInfo -> OptGrpConverter [ i ] ) ;\n }\n }\n newLMBCS -> cnv . extraInfo = & newLMBCS -> lmbcs ;\n newLMBCS -> cnv . isExtraLocal = TRUE ;\n return & newLMBCS -> cnv ;\n }\n static size_t LMBCSConversionWorker ( UConverterDataLMBCS * extraInfo , ulmbcs_byte_t group , ulmbcs_byte_t * pStartLMBCS , UChar * pUniChar , ulmbcs_byte_t * lastConverterIndex , UBool * groups_tried ) {\n ulmbcs_byte_t * pLMBCS = pStartLMBCS ;\n UConverterSharedData * xcnv = extraInfo -> OptGrpConverter [ group ] ;\n int bytesConverted ;\n uint32_t value ;\n ulmbcs_byte_t firstByte ;\n U_ASSERT ( xcnv ) ;\n U_ASSERT ( group < ULMBCS_GRP_UNICODE ) ;\n bytesConverted = ucnv_MBCSFromUChar32 ( xcnv , * pUniChar , & value , FALSE ) ;\n if ( bytesConverted > 0 ) {\n firstByte = ( ulmbcs_byte_t ) ( value >> ( ( bytesConverted - 1 ) * 8 ) ) ;\n }\n else {\n groups_tried [ group ] = TRUE ;\n return 0 ;\n }\n * lastConverterIndex = group ;\n U_ASSERT ( ( firstByte <= ULMBCS_C0END ) || ( firstByte >= ULMBCS_C1START ) || ( group == ULMBCS_GRP_EXCEPT ) ) ;\n if ( group != ULMBCS_GRP_EXCEPT && extraInfo -> OptGroup != group ) {\n * pLMBCS ++ = group ;\n if ( bytesConverted == 1 && group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n * pLMBCS ++ = group ;\n }\n }\n if ( bytesConverted == 1 && firstByte < 0x20 ) return 0 ;\n switch ( bytesConverted ) {\n case 4 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 24 ) ;\n U_FALLTHROUGH ;\n case 3 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 16 ) ;\n U_FALLTHROUGH ;\n case 2 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 8 ) ;\n U_FALLTHROUGH ;\n case 1 : * pLMBCS ++ = ( ulmbcs_byte_t ) value ;\n U_FALLTHROUGH ;\n default : break ;\n }\n return ( pLMBCS - pStartLMBCS ) ;\n }\n static size_t LMBCSConvertUni ( ulmbcs_byte_t * pLMBCS , UChar uniChar ) {\n uint8_t LowCh = ( uint8_t ) ( uniChar & 0x00FF ) ;\n uint8_t HighCh = ( uint8_t ) ( uniChar >> 8 ) ;\n * pLMBCS ++ = ULMBCS_GRP_UNICODE ;\n if ( LowCh == 0 ) {\n * pLMBCS ++ = ULMBCS_UNICOMPATZERO ;\n * pLMBCS ++ = HighCh ;\n }\n else {\n * pLMBCS ++ = HighCh ;\n * pLMBCS ++ = LowCh ;\n }\n return ULMBCS_UNICODE_SIZE ;\n }\n static void U_CALLCONV _LMBCSFromUnicode ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n ulmbcs_byte_t lastConverterIndex = 0 ;\n UChar uniChar ;\n ulmbcs_byte_t LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n ulmbcs_byte_t * pLMBCS ;\n int32_t bytes_written ;\n UBool groups_tried [ ULMBCS_GRP_LAST + 1 ] ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n int sourceIndex = 0 ;\n ulmbcs_byte_t OldConverterIndex = 0 ;\n while ( args -> source < args -> sourceLimit && ! U_FAILURE ( * err ) ) {\n OldConverterIndex = extraInfo -> localeConverterIndex ;\n if ( args -> target >= args -> targetLimit ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n uniChar = * ( args -> source ) ;\n bytes_written = 0 ;\n pLMBCS = LMBCS ;\n if ( ( uniChar >= 0x80 ) && ( uniChar <= 0xff ) && ( uniChar != 0xB1 ) && ( uniChar != 0xD7 ) && ( uniChar != 0xF7 ) && ( uniChar != 0xB0 ) && ( uniChar != 0xB4 ) && ( uniChar != 0xB6 ) && ( uniChar != 0xA7 ) && ( uniChar != 0xA8 ) ) {\n extraInfo -> localeConverterIndex = ULMBCS_GRP_L1 ;\n }\n if ( ( ( uniChar > ULMBCS_C0END ) && ( uniChar < ULMBCS_C1START ) ) || uniChar == 0 || uniChar == ULMBCS_HT || uniChar == ULMBCS_CR || uniChar == ULMBCS_LF || uniChar == ULMBCS_123SYSTEMRANGE ) {\n * pLMBCS ++ = ( ulmbcs_byte_t ) uniChar ;\n bytes_written = 1 ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t group = FindLMBCSUniRange ( uniChar ) ;\n if ( group == ULMBCS_GRP_UNICODE ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group == ULMBCS_GRP_CTRL ) {\n if ( uniChar <= ULMBCS_C0END ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( ULMBCS_CTRLOFFSET + uniChar ) ;\n }\n else if ( uniChar >= ULMBCS_C1START && uniChar <= ULMBCS_C1START + ULMBCS_CTRLOFFSET ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( uniChar & 0x00FF ) ;\n }\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group < ULMBCS_GRP_UNICODE ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , group , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n uprv_memset ( groups_tried , 0 , sizeof ( groups_tried ) ) ;\n if ( ( extraInfo -> OptGroup != 1 ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> OptGroup ) ) ) {\n if ( extraInfo -> localeConverterIndex < ULMBCS_DOUBLEOPTGROUP_START ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_L1 , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n else {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && ( extraInfo -> localeConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> localeConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written && ( lastConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , lastConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , lastConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t grp_start ;\n ulmbcs_byte_t grp_end ;\n ulmbcs_byte_t grp_ix ;\n grp_start = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_DOUBLEOPTGROUP_START : ULMBCS_GRP_L1 ) ;\n grp_end = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_GRP_LAST : ULMBCS_GRP_TH ) ;\n if ( group == ULMBCS_AMBIGUOUS_ALL ) {\n grp_start = ULMBCS_GRP_L1 ;\n grp_end = ULMBCS_GRP_LAST ;\n }\n for ( grp_ix = grp_start ;\n grp_ix <= grp_end && ! bytes_written ;\n grp_ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ grp_ix ] && ! groups_tried [ grp_ix ] ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , grp_ix , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && grp_start == ULMBCS_GRP_L1 ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n }\n }\n args -> source ++ ;\n pLMBCS = LMBCS ;\n while ( args -> target < args -> targetLimit && bytes_written -- ) {\n * ( args -> target ) ++ = * pLMBCS ++ ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = sourceIndex ;\n }\n }\n sourceIndex ++ ;\n if ( bytes_written > 0 ) {\n uint8_t * pErrorBuffer = args -> converter -> charErrorBuffer ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n args -> converter -> charErrorBufferLength = ( int8_t ) bytes_written ;\n while ( bytes_written -- ) {\n * pErrorBuffer ++ = * pLMBCS ++ ;\n }\n }\n extraInfo -> localeConverterIndex = OldConverterIndex ;\n }\n }\n static UChar GetUniFromLMBCSUni ( char const * * ppLMBCSin ) {\n uint8_t HighCh = * ( * ppLMBCSin ) ++ ;\n uint8_t LowCh = * ( * ppLMBCSin ) ++ ;\n if ( HighCh == ULMBCS_UNICOMPATZERO ) {\n HighCh = LowCh ;\n LowCh = 0 ;\n }\n return ( UChar ) ( ( HighCh << 8 ) | LowCh ) ;\n }\n # define CHECK_SOURCE_LIMIT ( index ) if ( args -> source + index > args -> sourceLimit ) {\n * err = U_TRUNCATED_CHAR_FOUND ;\n args -> source = args -> sourceLimit ;\n return 0xffff ;\n }\n static UChar32 U_CALLCONV _LMBCSGetNextUCharWorker ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n UChar32 uniChar = 0 ;\n ulmbcs_byte_t CurByte ;\n if ( args -> source >= args -> sourceLimit ) {\n * err = U_ILLEGAL_ARGUMENT_ERROR ;\n return 0xffff ;\n }\n CurByte = * ( ( ulmbcs_byte_t * ) ( args -> source ++ ) ) ;\n if ( ( ( CurByte > ULMBCS_C0END ) && ( CurByte < ULMBCS_C1START ) ) || ( CurByte == 0 ) || CurByte == ULMBCS_HT || CurByte == ULMBCS_CR || CurByte == ULMBCS_LF || CurByte == ULMBCS_123SYSTEMRANGE ) {\n uniChar = CurByte ;\n }\n else {\n UConverterDataLMBCS * extraInfo ;\n ulmbcs_byte_t group ;\n UConverterSharedData * cnv ;\n if ( CurByte == ULMBCS_GRP_CTRL ) {\n ulmbcs_byte_t C0C1byte ;\n CHECK_SOURCE_LIMIT ( 1 ) ;\n C0C1byte = * ( args -> source ) ++ ;\n uniChar = ( C0C1byte < ULMBCS_C1START ) ? C0C1byte - ULMBCS_CTRLOFFSET : C0C1byte ;\n }\n else if ( CurByte == ULMBCS_GRP_UNICODE ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n return GetUniFromLMBCSUni ( & ( args -> source ) ) ;\n }\n else if ( CurByte <= ULMBCS_CTRLOFFSET ) {\n group = CurByte ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n if ( group > ULMBCS_GRP_LAST || ( cnv = extraInfo -> OptGrpConverter [ group ] ) == NULL ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n if ( * args -> source == group ) {\n ++ args -> source ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 1 , FALSE ) ;\n ++ args -> source ;\n }\n else {\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 2 , FALSE ) ;\n args -> source += 2 ;\n }\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n CurByte = * ( args -> source ) ++ ;\n if ( CurByte >= ULMBCS_C1START ) {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n else {\n char bytes [ 2 ] ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n cnv = extraInfo -> OptGrpConverter [ ULMBCS_GRP_EXCEPT ] ;\n bytes [ 0 ] = group ;\n bytes [ 1 ] = CurByte ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , bytes , 2 , FALSE ) ;\n }\n }\n }\n else if ( CurByte >= ULMBCS_C1START ) {\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n group = extraInfo -> OptGroup ;\n cnv = extraInfo -> OptGrpConverter [ group ] ;\n if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n if ( ! ucnv_MBCSIsLeadByte ( cnv , CurByte ) ) {\n CHECK_SOURCE_LIMIT ( 0 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 1 , FALSE ) ;\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 2 , FALSE ) ;\n ++ args -> source ;\n }\n }\n else {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n }\n }\n return uniChar ;\n }\n static void U_CALLCONV _LMBCSToUnicodeWithOffsets ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n char LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n UChar uniChar ;\n const char * saveSource ;\n const char * pStartLMBCS = args -> source ;\n const char * errSource = NULL ;\n int8_t savebytes = 0 ;\n while ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit > args -> target ) {\n saveSource = args -> source ;\n if ( args -> converter -> toULength ) {\n const char * saveSourceLimit ;\n size_t size_old = args -> converter -> toULength ;\n size_t size_new_maybe_1 = sizeof ( LMBCS ) - size_old ;\n size_t size_new_maybe_2 = args -> sourceLimit - args -> source ;\n size_t size_new = ( size_new_maybe_1 < size_new_maybe_2 ) ? size_new_maybe_1 : size_new_maybe_2 ;\n uprv_memcpy ( LMBCS , args -> converter -> toUBytes , size_old ) ;\n uprv_memcpy ( LMBCS + size_old , args -> source , size_new ) ;\n saveSourceLimit = args -> sourceLimit ;\n args -> source = errSource = LMBCS ;\n args -> sourceLimit = LMBCS + size_old + size_new ;\n savebytes = ( int8_t ) ( size_old + size_new ) ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n args -> source = saveSource + ( ( args -> source - LMBCS ) - size_old ) ;\n args -> sourceLimit = saveSourceLimit ;\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n args -> converter -> toULength = savebytes ;\n uprv_memcpy ( args -> converter -> toUBytes , LMBCS , savebytes ) ;\n args -> source = args -> sourceLimit ;\n * err = U_ZERO_ERROR ;\n return ;\n }\n else {\n args -> converter -> toULength = 0 ;\n }\n }\n else {\n errSource = saveSource ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n savebytes = ( int8_t ) ( args -> source - saveSource ) ;\n }\n if ( U_SUCCESS ( * err ) ) {\n if ( uniChar < 0xfffe ) {\n * ( args -> target ) ++ = uniChar ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = ( int32_t ) ( saveSource - pStartLMBCS ) ;\n }\n }\n else if ( uniChar == 0xfffe ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n }\n if ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit <= args -> target ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n else if ( U_FAILURE ( * err ) ) {\n args -> converter -> toULength = savebytes ;\n if ( savebytes > 0 ) {\n uprv_memcpy ( args -> converter -> toUBytes , errSource , savebytes ) ;\n }\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n * err = U_ZERO_ERROR ;\n }\n }\n }\n DEFINE_LMBCS_OPEN ( 1 ) DEFINE_LMBCS_OPEN ( 2 ) DEFINE_LMBCS_OPEN ( 3 ) DEFINE_LMBCS_OPEN ( 4 ) DEFINE_LMBCS_OPEN ( 5 ) DEFINE_LMBCS_OPEN ( 6 ) DEFINE_LMBCS_OPEN ( 8 ) DEFINE_LMBCS_OPEN ( 11 ) DEFINE_LMBCS_OPEN ( 16 )"}
{"idx": 17329, "target": 0, "func": "static void decSetMaxValue ( decNumber * dn , decContext * set ) {\n Unit * up ;\n Int count = set -> digits ;\n dn -> digits = count ;\n for ( up = dn -> lsu ;\n ;\n up ++ ) {\n if ( count > DECDPUN ) * up = DECDPUNMAX ;\n else {\n * up = ( Unit ) ( powers [ count ] - 1 ) ;\n break ;\n }\n count -= DECDPUN ;\n }\n dn -> bits = 0 ;\n dn -> exponent = set -> emax - set -> digits + 1 ;\n }"}
{"idx": 17330, "target": 0, "func": "inline static void _slurm_rpc_kill_job ( slurm_msg_t * msg ) {\n static int active_rpc_cnt = 0 ;\n DEF_TIMERS ;\n job_step_kill_msg_t * kill ;\n slurmctld_lock_t fed_job_read_lock = {\n NO_LOCK , READ_LOCK , NO_LOCK , NO_LOCK , READ_LOCK }\n ;\n slurmctld_lock_t lock = {\n READ_LOCK , WRITE_LOCK , WRITE_LOCK , NO_LOCK , READ_LOCK }\n ;\n uid_t uid ;\n int cc ;\n kill = ( job_step_kill_msg_t * ) msg -> data ;\n uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n lock_slurmctld ( fed_job_read_lock ) ;\n if ( fed_mgr_fed_rec ) {\n uint32_t job_id , origin_id ;\n struct job_record * job_ptr ;\n slurmdb_cluster_rec_t * origin ;\n job_id = strtol ( kill -> sjob_id , NULL , 10 ) ;\n origin_id = fed_mgr_get_cluster_id ( job_id ) ;\n origin = fed_mgr_get_cluster_by_id ( origin_id ) ;\n if ( origin && origin -> fed . send && ( ( ( slurm_persist_conn_t * ) origin -> fed . send ) -> fd != - 1 ) && ( origin != fed_mgr_cluster_rec ) && ( ! ( job_ptr = find_job_record ( job_id ) ) || ( job_ptr && job_ptr -> fed_details && ( job_ptr -> fed_details -> cluster_lock != fed_mgr_cluster_rec -> fed . id ) ) ) ) {\n slurmdb_cluster_rec_t * dst = fed_mgr_get_cluster_by_id ( origin_id ) ;\n if ( ! dst ) {\n error ( \"couldn't find cluster by cluster id %d\" , origin_id ) ;\n slurm_send_rc_msg ( msg , SLURM_ERROR ) ;\n }\n else {\n slurm_send_reroute_msg ( msg , dst ) ;\n info ( \"%s: REQUEST_KILL_JOB job %s uid %d routed to %s\" , __func__ , kill -> sjob_id , uid , dst -> name ) ;\n }\n unlock_slurmctld ( fed_job_read_lock ) ;\n return ;\n }\n }\n unlock_slurmctld ( fed_job_read_lock ) ;\n START_TIMER ;\n info ( \"%s: REQUEST_KILL_JOB job %s uid %d\" , __func__ , kill -> sjob_id , uid ) ;\n _throttle_start ( & active_rpc_cnt ) ;\n lock_slurmctld ( lock ) ;\n if ( kill -> sibling ) {\n uint32_t job_id = strtol ( kill -> sjob_id , NULL , 10 ) ;\n cc = fed_mgr_remove_active_sibling ( job_id , kill -> sibling ) ;\n }\n else {\n cc = job_str_signal ( kill -> sjob_id , kill -> signal , kill -> flags , uid , 0 ) ;\n }\n unlock_slurmctld ( lock ) ;\n _throttle_fini ( & active_rpc_cnt ) ;\n if ( cc == ESLURM_ALREADY_DONE ) {\n debug2 ( \"%s: job_str_signal() job %s sig %d returned %s\" , __func__ , kill -> sjob_id , kill -> signal , slurm_strerror ( cc ) ) ;\n }\n else if ( cc != SLURM_SUCCESS ) {\n info ( \"%s: job_str_signal() job %s sig %d returned %s\" , __func__ , kill -> sjob_id , kill -> signal , slurm_strerror ( cc ) ) ;\n }\n else {\n slurmctld_diag_stats . jobs_canceled ++ ;\n }\n slurm_send_rc_msg ( msg , cc ) ;\n END_TIMER2 ( \"_slurm_rpc_kill_job\" ) ;\n }"}
{"idx": 17331, "target": 0, "func": "static int dct_quantize_refine ( MpegEncContext * s , int16_t * block , int16_t * weight , int16_t * orig , int n , int qscale ) {\n int16_t rem [ 64 ] ;\n LOCAL_ALIGNED_16 ( int16_t , d1 , [ 64 ] ) ;\n const uint8_t * scantable = s -> intra_scantable . scantable ;\n const uint8_t * perm_scantable = s -> intra_scantable . permutated ;\n int run_tab [ 65 ] ;\n int prev_run = 0 ;\n int prev_level = 0 ;\n int qmul , qadd , start_i , last_non_zero , i , dc ;\n uint8_t * length ;\n uint8_t * last_length ;\n int lambda ;\n int rle_index , run , q = 1 , sum ;\n # ifdef REFINE_STATS static int count = 0 ;\n static int after_last = 0 ;\n static int to_zero = 0 ;\n static int from_zero = 0 ;\n static int raise = 0 ;\n static int lower = 0 ;\n static int messed_sign = 0 ;\n # endif if ( basis [ 0 ] [ 0 ] == 0 ) build_basis ( s -> dsp . idct_permutation ) ;\n qmul = qscale * 2 ;\n qadd = ( qscale - 1 ) | 1 ;\n if ( s -> mb_intra ) {\n if ( ! s -> h263_aic ) {\n if ( n < 4 ) q = s -> y_dc_scale ;\n else q = s -> c_dc_scale ;\n }\n else {\n q = 1 ;\n qadd = 0 ;\n }\n q <<= RECON_SHIFT - 3 ;\n dc = block [ 0 ] * q ;\n start_i = 1 ;\n length = s -> intra_ac_vlc_length ;\n last_length = s -> intra_ac_vlc_last_length ;\n }\n else {\n dc = 0 ;\n start_i = 0 ;\n length = s -> inter_ac_vlc_length ;\n last_length = s -> inter_ac_vlc_last_length ;\n }\n last_non_zero = s -> block_last_index [ n ] ;\n # ifdef REFINE_STATS {\n START_TIMER # endif dc += ( 1 << ( RECON_SHIFT - 1 ) ) ;\n for ( i = 0 ;\n i < 64 ;\n i ++ ) {\n rem [ i ] = dc - ( orig [ i ] << RECON_SHIFT ) ;\n }\n # ifdef REFINE_STATS STOP_TIMER ( \"memset rem[]\" ) }\n # endif sum = 0 ;\n for ( i = 0 ;\n i < 64 ;\n i ++ ) {\n int one = 36 ;\n int qns = 4 ;\n int w ;\n w = FFABS ( weight [ i ] ) + qns * one ;\n w = 15 + ( 48 * qns * one + w / 2 ) / w ;\n weight [ i ] = w ;\n assert ( w > 0 ) ;\n assert ( w < ( 1 << 6 ) ) ;\n sum += w * w ;\n }\n lambda = sum * ( uint64_t ) s -> lambda2 >> ( FF_LAMBDA_SHIFT - 6 + 6 + 6 + 6 ) ;\n # ifdef REFINE_STATS {\n START_TIMER # endif run = 0 ;\n rle_index = 0 ;\n for ( i = start_i ;\n i <= last_non_zero ;\n i ++ ) {\n int j = perm_scantable [ i ] ;\n const int level = block [ j ] ;\n int coeff ;\n if ( level ) {\n if ( level < 0 ) coeff = qmul * level - qadd ;\n else coeff = qmul * level + qadd ;\n run_tab [ rle_index ++ ] = run ;\n run = 0 ;\n s -> dsp . add_8x8basis ( rem , basis [ j ] , coeff ) ;\n }\n else {\n run ++ ;\n }\n }\n # ifdef REFINE_STATS if ( last_non_zero > 0 ) {\n STOP_TIMER ( \"init rem[]\" ) }\n }\n {\n START_TIMER # endif for ( ;\n ;\n ) {\n int best_score = s -> dsp . try_8x8basis ( rem , weight , basis [ 0 ] , 0 ) ;\n int best_coeff = 0 ;\n int best_change = 0 ;\n int run2 , best_unquant_change = 0 , analyze_gradient ;\n # ifdef REFINE_STATS {\n START_TIMER # endif analyze_gradient = last_non_zero > 2 || s -> quantizer_noise_shaping >= 3 ;\n if ( analyze_gradient ) {\n # ifdef REFINE_STATS {\n START_TIMER # endif for ( i = 0 ;\n i < 64 ;\n i ++ ) {\n int w = weight [ i ] ;\n d1 [ i ] = ( rem [ i ] * w * w + ( 1 << ( RECON_SHIFT + 12 - 1 ) ) ) >> ( RECON_SHIFT + 12 ) ;\n }\n # ifdef REFINE_STATS STOP_TIMER ( \"rem*w*w\" ) }\n {\n START_TIMER # endif s -> dsp . fdct ( d1 ) ;\n # ifdef REFINE_STATS STOP_TIMER ( \"dct\" ) }\n # endif }\n if ( start_i ) {\n const int level = block [ 0 ] ;\n int change , old_coeff ;\n assert ( s -> mb_intra ) ;\n old_coeff = q * level ;\n for ( change = - 1 ;\n change <= 1 ;\n change += 2 ) {\n int new_level = level + change ;\n int score , new_coeff ;\n new_coeff = q * new_level ;\n if ( new_coeff >= 2048 || new_coeff < 0 ) continue ;\n score = s -> dsp . try_8x8basis ( rem , weight , basis [ 0 ] , new_coeff - old_coeff ) ;\n if ( score < best_score ) {\n best_score = score ;\n best_coeff = 0 ;\n best_change = change ;\n best_unquant_change = new_coeff - old_coeff ;\n }\n }\n }\n run = 0 ;\n rle_index = 0 ;\n run2 = run_tab [ rle_index ++ ] ;\n prev_level = 0 ;\n prev_run = 0 ;\n for ( i = start_i ;\n i < 64 ;\n i ++ ) {\n int j = perm_scantable [ i ] ;\n const int level = block [ j ] ;\n int change , old_coeff ;\n if ( s -> quantizer_noise_shaping < 3 && i > last_non_zero + 1 ) break ;\n if ( level ) {\n if ( level < 0 ) old_coeff = qmul * level - qadd ;\n else old_coeff = qmul * level + qadd ;\n run2 = run_tab [ rle_index ++ ] ;\n }\n else {\n old_coeff = 0 ;\n run2 -- ;\n assert ( run2 >= 0 || i >= last_non_zero ) ;\n }\n for ( change = - 1 ;\n change <= 1 ;\n change += 2 ) {\n int new_level = level + change ;\n int score , new_coeff , unquant_change ;\n score = 0 ;\n if ( s -> quantizer_noise_shaping < 2 && FFABS ( new_level ) > FFABS ( level ) ) continue ;\n if ( new_level ) {\n if ( new_level < 0 ) new_coeff = qmul * new_level - qadd ;\n else new_coeff = qmul * new_level + qadd ;\n if ( new_coeff >= 2048 || new_coeff <= - 2048 ) continue ;\n if ( level ) {\n if ( level < 63 && level > - 63 ) {\n if ( i < last_non_zero ) score += length [ UNI_AC_ENC_INDEX ( run , new_level + 64 ) ] - length [ UNI_AC_ENC_INDEX ( run , level + 64 ) ] ;\n else score += last_length [ UNI_AC_ENC_INDEX ( run , new_level + 64 ) ] - last_length [ UNI_AC_ENC_INDEX ( run , level + 64 ) ] ;\n }\n }\n else {\n assert ( FFABS ( new_level ) == 1 ) ;\n if ( analyze_gradient ) {\n int g = d1 [ scantable [ i ] ] ;\n if ( g && ( g ^ new_level ) >= 0 ) continue ;\n }\n if ( i < last_non_zero ) {\n int next_i = i + run2 + 1 ;\n int next_level = block [ perm_scantable [ next_i ] ] + 64 ;\n if ( next_level & ( ~ 127 ) ) next_level = 0 ;\n if ( next_i < last_non_zero ) score += length [ UNI_AC_ENC_INDEX ( run , 65 ) ] + length [ UNI_AC_ENC_INDEX ( run2 , next_level ) ] - length [ UNI_AC_ENC_INDEX ( run + run2 + 1 , next_level ) ] ;\n else score += length [ UNI_AC_ENC_INDEX ( run , 65 ) ] + last_length [ UNI_AC_ENC_INDEX ( run2 , next_level ) ] - last_length [ UNI_AC_ENC_INDEX ( run + run2 + 1 , next_level ) ] ;\n }\n else {\n score += last_length [ UNI_AC_ENC_INDEX ( run , 65 ) ] ;\n if ( prev_level ) {\n score += length [ UNI_AC_ENC_INDEX ( prev_run , prev_level ) ] - last_length [ UNI_AC_ENC_INDEX ( prev_run , prev_level ) ] ;\n }\n }\n }\n }\n else {\n new_coeff = 0 ;\n assert ( FFABS ( level ) == 1 ) ;\n if ( i < last_non_zero ) {\n int next_i = i + run2 + 1 ;\n int next_level = block [ perm_scantable [ next_i ] ] + 64 ;\n if ( next_level & ( ~ 127 ) ) next_level = 0 ;\n if ( next_i < last_non_zero ) score += length [ UNI_AC_ENC_INDEX ( run + run2 + 1 , next_level ) ] - length [ UNI_AC_ENC_INDEX ( run2 , next_level ) ] - length [ UNI_AC_ENC_INDEX ( run , 65 ) ] ;\n else score += last_length [ UNI_AC_ENC_INDEX ( run + run2 + 1 , next_level ) ] - last_length [ UNI_AC_ENC_INDEX ( run2 , next_level ) ] - length [ UNI_AC_ENC_INDEX ( run , 65 ) ] ;\n }\n else {\n score += - last_length [ UNI_AC_ENC_INDEX ( run , 65 ) ] ;\n if ( prev_level ) {\n score += last_length [ UNI_AC_ENC_INDEX ( prev_run , prev_level ) ] - length [ UNI_AC_ENC_INDEX ( prev_run , prev_level ) ] ;\n }\n }\n }\n score *= lambda ;\n unquant_change = new_coeff - old_coeff ;\n assert ( ( score < 100 * lambda && score > - 100 * lambda ) || lambda == 0 ) ;\n score += s -> dsp . try_8x8basis ( rem , weight , basis [ j ] , unquant_change ) ;\n if ( score < best_score ) {\n best_score = score ;\n best_coeff = i ;\n best_change = change ;\n best_unquant_change = unquant_change ;\n }\n }\n if ( level ) {\n prev_level = level + 64 ;\n if ( prev_level & ( ~ 127 ) ) prev_level = 0 ;\n prev_run = run ;\n run = 0 ;\n }\n else {\n run ++ ;\n }\n }\n # ifdef REFINE_STATS STOP_TIMER ( \"iterative step\" ) }\n # endif if ( best_change ) {\n int j = perm_scantable [ best_coeff ] ;\n block [ j ] += best_change ;\n if ( best_coeff > last_non_zero ) {\n last_non_zero = best_coeff ;\n assert ( block [ j ] ) ;\n # ifdef REFINE_STATS after_last ++ ;\n # endif }\n else {\n # ifdef REFINE_STATS if ( block [ j ] ) {\n if ( block [ j ] - best_change ) {\n if ( FFABS ( block [ j ] ) > FFABS ( block [ j ] - best_change ) ) {\n raise ++ ;\n }\n else {\n lower ++ ;\n }\n }\n else {\n from_zero ++ ;\n }\n }\n else {\n to_zero ++ ;\n }\n # endif for ( ;\n last_non_zero >= start_i ;\n last_non_zero -- ) {\n if ( block [ perm_scantable [ last_non_zero ] ] ) break ;\n }\n }\n # ifdef REFINE_STATS count ++ ;\n if ( 256 * 256 * 256 * 64 % count == 0 ) {\n printf ( \"after_last:%d to_zero:%d from_zero:%d raise:%d lower:%d sign:%d xyp:%d/%d/%d\\n\" , after_last , to_zero , from_zero , raise , lower , messed_sign , s -> mb_x , s -> mb_y , s -> picture_number ) ;\n }\n # endif run = 0 ;\n rle_index = 0 ;\n for ( i = start_i ;\n i <= last_non_zero ;\n i ++ ) {\n int j = perm_scantable [ i ] ;\n const int level = block [ j ] ;\n if ( level ) {\n run_tab [ rle_index ++ ] = run ;\n run = 0 ;\n }\n else {\n run ++ ;\n }\n }\n s -> dsp . add_8x8basis ( rem , basis [ j ] , best_unquant_change ) ;\n }\n else {\n break ;\n }\n }\n # ifdef REFINE_STATS if ( last_non_zero > 0 ) {\n STOP_TIMER ( \"iterative search\" ) }\n }\n # endif return last_non_zero ;\n }"}
{"idx": 17332, "target": 0, "func": "static void pdf_run_F ( fz_context * ctx , pdf_processor * proc ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_show_path ( ctx , pr , 0 , 1 , 0 , 0 ) ;\n }"}
{"idx": 17333, "target": 0, "func": "static void steamdiscover_dissect_body_authrequest ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , gint offset , gint bytes_left ) {\n guint len ;\n gint64 value ;\n protobuf_desc_t pb = {\n tvb , offset , bytes_left }\n ;\n protobuf_tag_t tag = {\n 0 , 0 , 0 }\n ;\n guint8 * devicename ;\n while ( protobuf_iter_next ( & pb , & tag ) ) {\n switch ( tag . field_number ) {\n case STEAMDISCOVER_FN_AUTHREQUEST_DEVICETOKEN : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_LENGTHDELIMITED ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_item ( tree , hf_steam_ihs_discovery_body_authrequest_devicetoken , pb . tvb , pb . offset + len , ( gint ) value , ENC_NA ) ;\n len += ( gint ) value ;\n break ;\n case STEAMDISCOVER_FN_AUTHREQUEST_DEVICENAME : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_LENGTHDELIMITED ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_item ( tree , hf_steam_ihs_discovery_body_authrequest_devicename , pb . tvb , pb . offset + len , ( gint ) value , ENC_UTF_8 | ENC_NA ) ;\n devicename = tvb_get_string_enc ( wmem_packet_scope ( ) , pb . tvb , pb . offset + len , ( gint ) value , ENC_UTF_8 ) ;\n if ( devicename && strlen ( devicename ) ) {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" from %s\" , devicename ) ;\n }\n len += ( gint ) value ;\n break ;\n case STEAMDISCOVER_FN_AUTHREQUEST_ENCRYPTEDREQUEST : STEAMDISCOVER_ENSURE_WIRETYPE ( PROTOBUF_WIRETYPE_LENGTHDELIMITED ) ;\n value = get_varint64 ( pb . tvb , pb . offset , pb . bytes_left , & len ) ;\n proto_tree_add_item ( tree , hf_steam_ihs_discovery_body_authrequest_encryptedrequest , pb . tvb , pb . offset + len , ( gint ) value , ENC_NA ) ;\n len += ( gint ) value ;\n break ;\n default : len = protobuf_dissect_unknown_field ( & pb , & tag , pinfo , tree , NULL ) ;\n break ;\n }\n protobuf_seek_forward ( & pb , len ) ;\n }\n }"}
{"idx": 17334, "target": 0, "func": "static inline unsigned int decode_scalar ( GetBitContext * gb , int k , int bps ) {\n unsigned int x = get_unary_0_9 ( gb ) ;\n if ( x > 8 ) {\n x = get_bits_long ( gb , bps ) ;\n }\n else if ( k != 1 ) {\n int extrabits = show_bits ( gb , k ) ;\n x = ( x << k ) - x ;\n if ( extrabits > 1 ) {\n x += extrabits - 1 ;\n skip_bits ( gb , k ) ;\n }\n else skip_bits ( gb , k - 1 ) ;\n }\n return x ;\n }"}
{"idx": 17335, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( MediaStreamPermissionTest , TestSecureOriginAcceptIsSticky ) {\n content : : WebContents * tab_contents = LoadTestPageInTab ( ) ;\n EXPECT_TRUE ( content : : IsOriginSecure ( tab_contents -> GetLastCommittedURL ( ) ) ) ;\n EXPECT_TRUE ( GetUserMediaAndAccept ( tab_contents ) ) ;\n GetUserMediaAndExpectAutoAcceptWithoutPrompt ( tab_contents ) ;\n }"}
{"idx": 17336, "target": 0, "func": "static unsigned long get_logmask ( char * s ) {\n char * t ;\n unsigned long offset ;\n unsigned long mask ;\n t = s ;\n offset = get_pfxmatch ( & t , logcfg_class ) ;\n mask = get_match ( t , logcfg_item ) ;\n if ( mask ) return mask << offset ;\n else msyslog ( LOG_ERR , \"logconfig: illegal argument %s - ignored\" , s ) ;\n return 0 ;\n }"}
{"idx": 17337, "target": 0, "func": "static void decode_cabac_residual_dc_internal ( H264Context * h , int16_t * block , int cat , int n , const uint8_t * scantable , int max_coeff ) {\n decode_cabac_residual_internal ( h , block , cat , n , scantable , NULL , max_coeff , 1 , 0 ) ;\n }"}
{"idx": 17338, "target": 0, "func": "static guint32 number_of_markers ( mpa_state_t * state , struct tcpinfo * tcpinfo , guint8 endpoint ) {\n guint32 size ;\n guint32 offset ;\n size = fpdu_total_length ( tcpinfo ) ;\n offset = get_first_marker_offset ( state , tcpinfo , endpoint ) ;\n if ( offset < size ) {\n return ( ( size - offset ) / MPA_MARKER_INTERVAL ) + 1 ;\n }\n else {\n return 0 ;\n }\n }"}
{"idx": 17339, "target": 0, "func": "static __inline__ __u32 __arch_swab32 ( __u32 val ) {\n __asm__ ( \"bswapl %0\" : \"=r\" ( val ) : \"0\" ( val ) ) ;\n return val ;\n }"}
{"idx": 17340, "target": 0, "func": "int gs_main_run_string ( gs_main_instance * minst , const char * str , int user_errors , int * pexit_code , ref * perror_object ) {\n return gs_main_run_string_with_length ( minst , str , ( uint ) strlen ( str ) , user_errors , pexit_code , perror_object ) ;\n }"}
{"idx": 17341, "target": 0, "func": "static void CloseEncoder ( vlc_object_t * p_this ) {\n encoder_t * p_enc = ( encoder_t * ) p_this ;\n encoder_sys_t * p_sys = p_enc -> p_sys ;\n if ( p_sys -> p_schro ) schro_encoder_free ( p_sys -> p_schro ) ;\n free ( p_sys -> p_format ) ;\n if ( p_sys -> p_dts_fifo ) block_FifoRelease ( p_sys -> p_dts_fifo ) ;\n block_ChainRelease ( p_sys -> p_chain ) ;\n free ( p_sys ) ;\n }"}
{"idx": 17342, "target": 0, "func": "static void evtag_int_test ( void ) {\n struct evbuffer * tmp = evbuffer_new ( ) ;\n uint32_t integers [ TEST_MAX_INT ] = {\n 0xaf0 , 0x1000 , 0x1 , 0xdeadbeef , 0x00 , 0xbef000 }\n ;\n uint32_t integer ;\n int i ;\n for ( i = 0 ;\n i < TEST_MAX_INT ;\n i ++ ) {\n int oldlen , newlen ;\n oldlen = EVBUFFER_LENGTH ( tmp ) ;\n encode_int ( tmp , integers [ i ] ) ;\n newlen = EVBUFFER_LENGTH ( tmp ) ;\n fprintf ( stdout , \"\\t\\tencoded 0x%08x with %d bytes\\n\" , integers [ i ] , newlen - oldlen ) ;\n }\n for ( i = 0 ;\n i < TEST_MAX_INT ;\n i ++ ) {\n if ( evtag_decode_int ( & integer , tmp ) == - 1 ) {\n fprintf ( stderr , \"decode %d failed\" , i ) ;\n exit ( 1 ) ;\n }\n if ( integer != integers [ i ] ) {\n fprintf ( stderr , \"got %x, wanted %x\" , integer , integers [ i ] ) ;\n exit ( 1 ) ;\n }\n }\n if ( EVBUFFER_LENGTH ( tmp ) != 0 ) {\n fprintf ( stderr , \"trailing data\" ) ;\n exit ( 1 ) ;\n }\n evbuffer_free ( tmp ) ;\n fprintf ( stdout , \"\\t%s: OK\\n\" , __func__ ) ;\n }"}
{"idx": 17343, "target": 0, "func": "static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 17344, "target": 0, "func": "proto_item * proto_tree_add_uint64_format_value ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , guint64 value , const char * format , ... ) {\n proto_item * pi ;\n va_list ap ;\n pi = proto_tree_add_uint64 ( tree , hfindex , tvb , start , length , value ) ;\n if ( pi != tree ) {\n va_start ( ap , format ) ;\n proto_tree_set_representation_value ( pi , format , ap ) ;\n va_end ( ap ) ;\n }\n return pi ;\n }"}
{"idx": 17345, "target": 0, "func": "TSReturnCode TSCacheUrlSet ( TSHttpTxn txnp , const char * url , int length ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n Debug ( \"cache_url\" , \"[TSCacheUrlSet]\" ) ;\n if ( sm -> t_state . cache_info . lookup_url == nullptr ) {\n Debug ( \"cache_url\" , \"[TSCacheUrlSet] changing the cache url to: %s\" , url ) ;\n if ( length == - 1 ) {\n length = strlen ( url ) ;\n }\n sm -> t_state . cache_info . lookup_url_storage . create ( nullptr ) ;\n sm -> t_state . cache_info . lookup_url = & ( sm -> t_state . cache_info . lookup_url_storage ) ;\n sm -> t_state . cache_info . lookup_url -> parse ( url , length ) ;\n return TS_SUCCESS ;\n }\n return TS_ERROR ;\n }"}
{"idx": 17346, "target": 0, "func": "static int dissect_h245_RequestModeRejectCause ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_RequestModeRejectCause , RequestModeRejectCause_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 17347, "target": 0, "func": "void nautilus_file_operations_empty_trash ( GtkWidget * parent_view ) {\n GTask * task ;\n EmptyTrashJob * job ;\n GtkWindow * parent_window ;\n parent_window = NULL ;\n if ( parent_view ) {\n parent_window = ( GtkWindow * ) gtk_widget_get_ancestor ( parent_view , GTK_TYPE_WINDOW ) ;\n }\n job = op_job_new ( EmptyTrashJob , parent_window ) ;\n job -> trash_dirs = g_list_prepend ( job -> trash_dirs , g_file_new_for_uri ( \"trash:\" ) ) ;\n job -> should_confirm = TRUE ;\n inhibit_power_manager ( ( CommonJob * ) job , _ ( \"Emptying Trash\" ) ) ;\n task = g_task_new ( NULL , NULL , empty_trash_task_done , job ) ;\n g_task_set_task_data ( task , job , NULL ) ;\n g_task_run_in_thread ( task , empty_trash_thread_func ) ;\n g_object_unref ( task ) ;\n }"}
{"idx": 17348, "target": 0, "func": "void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 )"}
{"idx": 17349, "target": 0, "func": "static void xhci_wakeup ( USBPort * usbport ) {\n XHCIState * xhci = usbport -> opaque ;\n XHCIPort * port = xhci_lookup_port ( xhci , usbport ) ;\n if ( get_field ( port -> portsc , PORTSC_PLS ) != PLS_U3 ) {\n return ;\n }\n set_field ( & port -> portsc , PLS_RESUME , PORTSC_PLS ) ;\n xhci_port_notify ( port , PORTSC_PLC ) ;\n }"}
{"idx": 17350, "target": 0, "func": "gs_main_instance * get_minst_from_memory ( const gs_memory_t * mem ) {\n return ( gs_main_instance * ) mem -> gs_lib_ctx -> top_of_system ;\n }"}
{"idx": 17351, "target": 0, "func": "static inline MagickBooleanType IsPixelInfoMonochrome ( const PixelInfo * restrict pixel_info ) {\n if ( ( pixel_info -> colorspace != GRAYColorspace ) && ( pixel_info -> colorspace != RGBColorspace ) ) return ( MagickFalse ) ;\n if ( ( AbsolutePixelValue ( pixel_info -> red ) >= MagickEpsilon ) || ( AbsolutePixelValue ( pixel_info -> red - QuantumRange ) >= MagickEpsilon ) ) return ( MagickFalse ) ;\n if ( ( AbsolutePixelValue ( pixel_info -> red - pixel_info -> green ) < MagickEpsilon ) && ( AbsolutePixelValue ( pixel_info -> green - pixel_info -> blue ) < MagickEpsilon ) ) return ( MagickTrue ) ;\n return ( MagickFalse ) ;\n }"}
{"idx": 17352, "target": 0, "func": "static int dissect_h245_SET_SIZE_1_15_OF_MultiplexEntryRejectionDescriptions ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_set_of ( tvb , offset , actx , tree , hf_index , ett_h245_SET_SIZE_1_15_OF_MultiplexEntryRejectionDescriptions , SET_SIZE_1_15_OF_MultiplexEntryRejectionDescriptions_set_of , 1 , 15 , FALSE ) ;\n return offset ;\n }"}
{"idx": 17353, "target": 1, "func": "static int check_user_and_ip ( int userid , struct query * q ) {\n struct sockaddr_in * tempin ;\n if ( userid < 0 || userid >= created_users ) {\n return 1 ;\n }\n if ( ! users [ userid ] . active || users [ userid ] . disabled ) {\n return 1 ;\n }\n if ( users [ userid ] . last_pkt + 60 < time ( NULL ) ) {\n return 1 ;\n }\n if ( ! check_ip ) {\n return 0 ;\n }\n tempin = ( struct sockaddr_in * ) & ( q -> from ) ;\n return memcmp ( & ( users [ userid ] . host ) , & ( tempin -> sin_addr ) , sizeof ( struct in_addr ) ) ;\n }"}
{"idx": 17354, "target": 0, "func": "static guint8 * handle_message_header_fields ( tvbuff_t * tvb , packet_info * pinfo , proto_item * header_tree , guint encoding , gint offset , guint32 header_length , guint8 * signature_length ) {\n gint end_of_header ;\n proto_item * item ;\n proto_tree * tree ;\n guint8 * signature = NULL ;\n item = proto_tree_add_item ( header_tree , hf_alljoyn_mess_header_fields , tvb , offset , header_length , ENC_NA ) ;\n tree = proto_item_add_subtree ( item , ett_alljoyn_mess_header ) ;\n end_of_header = offset + header_length ;\n while ( offset < end_of_header ) {\n offset = handle_message_field ( tvb , pinfo , tree , encoding , offset , & signature , signature_length ) ;\n }\n return signature ;\n }"}
{"idx": 17355, "target": 1, "func": "static int dissect_h225_TBCD_STRING ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 900 \"./asn1/h225/h225.cnf\" int min_len , max_len ;\n gboolean has_extension ;\n get_size_constraint_from_stack ( actx , \"TBCD_STRING\" , & min_len , & max_len , & has_extension ) ;\n offset = dissect_per_restricted_character_string ( tvb , offset , actx , tree , hf_index , min_len , max_len , has_extension , \"0123456789#*abc\" , 15 , NULL ) ;\n return offset ;\n }"}
{"idx": 17356, "target": 0, "func": "static char * purple_get_account_prpl_id ( account_t * acc ) {\n if ( g_strcmp0 ( acc -> prpl -> name , \"oscar\" ) == 0 ) {\n return ( g_ascii_isdigit ( acc -> user [ 0 ] ) ) ? \"prpl-icq\" : \"prpl-aim\" ;\n }\n return acc -> prpl -> data ;\n }"}
{"idx": 17357, "target": 0, "func": "static Datum ExecMakeFunctionResult ( FuncExprState * fcache , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n List * arguments ;\n Datum result ;\n FunctionCallInfo fcinfo ;\n PgStat_FunctionCallUsage fcusage ;\n ReturnSetInfo rsinfo ;\n ExprDoneCond argDone ;\n bool hasSetArg ;\n int i ;\n restart : check_stack_depth ( ) ;\n if ( fcache -> funcResultStore ) {\n Assert ( isDone ) ;\n if ( tuplestore_gettupleslot ( fcache -> funcResultStore , true , false , fcache -> funcResultSlot ) ) {\n * isDone = ExprMultipleResult ;\n if ( fcache -> funcReturnsTuple ) {\n * isNull = false ;\n return ExecFetchSlotTupleDatum ( fcache -> funcResultSlot ) ;\n }\n else {\n return slot_getattr ( fcache -> funcResultSlot , 1 , isNull ) ;\n }\n }\n tuplestore_end ( fcache -> funcResultStore ) ;\n fcache -> funcResultStore = NULL ;\n if ( ! fcache -> setHasSetArg ) {\n * isDone = ExprEndResult ;\n * isNull = true ;\n return ( Datum ) 0 ;\n }\n Assert ( ! fcache -> setArgsValid ) ;\n }\n fcinfo = & fcache -> fcinfo_data ;\n arguments = fcache -> args ;\n if ( ! fcache -> setArgsValid ) {\n argDone = ExecEvalFuncArgs ( fcinfo , arguments , econtext ) ;\n if ( argDone == ExprEndResult ) {\n * isNull = true ;\n if ( isDone ) * isDone = ExprEndResult ;\n else ereport ( ERROR , ( errcode ( ERRCODE_FEATURE_NOT_SUPPORTED ) , errmsg ( \"set-valued function called in context that cannot accept a set\" ) ) ) ;\n return ( Datum ) 0 ;\n }\n hasSetArg = ( argDone != ExprSingleResult ) ;\n }\n else {\n hasSetArg = fcache -> setHasSetArg ;\n fcache -> setArgsValid = false ;\n }\n if ( fcache -> func . fn_retset || hasSetArg ) {\n if ( isDone == NULL ) ereport ( ERROR , ( errcode ( ERRCODE_FEATURE_NOT_SUPPORTED ) , errmsg ( \"set-valued function called in context that cannot accept a set\" ) ) ) ;\n if ( fcache -> func . fn_retset ) fcinfo -> resultinfo = ( Node * ) & rsinfo ;\n rsinfo . type = T_ReturnSetInfo ;\n rsinfo . econtext = econtext ;\n rsinfo . expectedDesc = fcache -> funcResultDesc ;\n rsinfo . allowedModes = ( int ) ( SFRM_ValuePerCall | SFRM_Materialize ) ;\n rsinfo . returnMode = SFRM_ValuePerCall ;\n rsinfo . setResult = NULL ;\n rsinfo . setDesc = NULL ;\n for ( ;\n ;\n ) {\n bool callit = true ;\n if ( fcache -> func . fn_strict ) {\n for ( i = 0 ;\n i < fcinfo -> nargs ;\n i ++ ) {\n if ( fcinfo -> argnull [ i ] ) {\n callit = false ;\n break ;\n }\n }\n }\n if ( callit ) {\n pgstat_init_function_usage ( fcinfo , & fcusage ) ;\n fcinfo -> isnull = false ;\n rsinfo . isDone = ExprSingleResult ;\n result = FunctionCallInvoke ( fcinfo ) ;\n * isNull = fcinfo -> isnull ;\n * isDone = rsinfo . isDone ;\n pgstat_end_function_usage ( & fcusage , rsinfo . isDone != ExprMultipleResult ) ;\n }\n else if ( fcache -> func . fn_retset ) {\n result = ( Datum ) 0 ;\n * isNull = true ;\n * isDone = ExprEndResult ;\n }\n else {\n result = ( Datum ) 0 ;\n * isNull = true ;\n * isDone = ExprSingleResult ;\n }\n if ( rsinfo . returnMode == SFRM_ValuePerCall ) {\n if ( * isDone != ExprEndResult ) {\n if ( fcache -> func . fn_retset && * isDone == ExprMultipleResult ) {\n fcache -> setHasSetArg = hasSetArg ;\n fcache -> setArgsValid = true ;\n if ( ! fcache -> shutdown_reg ) {\n RegisterExprContextCallback ( econtext , ShutdownFuncExpr , PointerGetDatum ( fcache ) ) ;\n fcache -> shutdown_reg = true ;\n }\n }\n if ( hasSetArg ) * isDone = ExprMultipleResult ;\n break ;\n }\n }\n else if ( rsinfo . returnMode == SFRM_Materialize ) {\n if ( rsinfo . isDone != ExprSingleResult ) ereport ( ERROR , ( errcode ( ERRCODE_E_R_I_E_SRF_PROTOCOL_VIOLATED ) , errmsg ( \"table-function protocol for materialize mode was not followed\" ) ) ) ;\n if ( rsinfo . setResult != NULL ) {\n ExecPrepareTuplestoreResult ( fcache , econtext , rsinfo . setResult , rsinfo . setDesc ) ;\n fcache -> setHasSetArg = hasSetArg ;\n goto restart ;\n }\n * isDone = ExprEndResult ;\n * isNull = true ;\n result = ( Datum ) 0 ;\n }\n else ereport ( ERROR , ( errcode ( ERRCODE_E_R_I_E_SRF_PROTOCOL_VIOLATED ) , errmsg ( \"unrecognized table-function returnMode: %d\" , ( int ) rsinfo . returnMode ) ) ) ;\n if ( ! hasSetArg ) break ;\n argDone = ExecEvalFuncArgs ( fcinfo , arguments , econtext ) ;\n if ( argDone != ExprMultipleResult ) {\n * isNull = true ;\n * isDone = ExprEndResult ;\n result = ( Datum ) 0 ;\n break ;\n }\n }\n }\n else {\n if ( isDone ) * isDone = ExprSingleResult ;\n if ( fcache -> func . fn_strict ) {\n for ( i = 0 ;\n i < fcinfo -> nargs ;\n i ++ ) {\n if ( fcinfo -> argnull [ i ] ) {\n * isNull = true ;\n return ( Datum ) 0 ;\n }\n }\n }\n pgstat_init_function_usage ( fcinfo , & fcusage ) ;\n fcinfo -> isnull = false ;\n result = FunctionCallInvoke ( fcinfo ) ;\n * isNull = fcinfo -> isnull ;\n pgstat_end_function_usage ( & fcusage , true ) ;\n }\n return result ;\n }"}
{"idx": 17358, "target": 0, "func": "static struct passwd * current_getpwuid ( void ) {\n uid_t ruid ;\n errno = 0 ;\n ruid = getuid ( ) ;\n return errno == 0 ? getpwuid ( ruid ) : NULL ;\n }"}
{"idx": 17359, "target": 1, "func": "static int truespeech_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n TSContext * c = avctx -> priv_data ;\n int i , j ;\n int16_t * samples ;\n int iterations , ret ;\n iterations = buf_size / 32 ;\n if ( ! iterations ) {\n av_log ( avctx , AV_LOG_ERROR , \"Too small input buffer (%d bytes), need at least 32 bytes\\n\" , buf_size ) ;\n return - 1 ;\n }\n frame -> nb_samples = iterations * 240 ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n samples = ( int16_t * ) frame -> data [ 0 ] ;\n memset ( samples , 0 , iterations * 240 * sizeof ( * samples ) ) ;\n for ( j = 0 ;\n j < iterations ;\n j ++ ) {\n truespeech_read_frame ( c , buf ) ;\n buf += 32 ;\n truespeech_correlate_filter ( c ) ;\n truespeech_filters_merge ( c ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n truespeech_apply_twopoint_filter ( c , i ) ;\n truespeech_place_pulses ( c , samples , i ) ;\n truespeech_update_filters ( c , samples , i ) ;\n truespeech_synth ( c , samples , i ) ;\n samples += 60 ;\n }\n truespeech_save_prevvec ( c ) ;\n }\n * got_frame_ptr = 1 ;\n return buf_size ;\n }"}
{"idx": 17360, "target": 0, "func": "int process_cgivars ( void ) {\n char * * variables ;\n char * temp_buffer = NULL ;\n int error = FALSE ;\n int x ;\n int z = 0 ;\n int sticky_ack_set = FALSE ;\n int send_notification_set = FALSE ;\n variables = getcgivars ( ) ;\n for ( x = 0 ;\n variables [ x ] != NULL ;\n x ++ ) {\n if ( strlen ( variables [ x ] ) >= MAX_INPUT_BUFFER - 1 ) continue ;\n else if ( ! strcmp ( variables [ x ] , \"cmd_typ\" ) ) {\n x ++ ;\n if ( variables [ x ] == NULL ) {\n error = TRUE ;\n break ;\n }\n command_type = atoi ( variables [ x ] ) ;\n }\n else if ( ! strcmp ( variables [ x ] , \"attr\" ) ) {\n x ++ ;\n if ( variables [ x ] == NULL ) {\n error = TRUE ;\n break ;\n }\n attr = strtoul ( variables [ x ] , NULL , 10 ) ;\n }\n else if ( ! strcmp ( variables [ x ] , \"cmd_mod\" ) ) {\n x ++ ;\n if ( variables [ x ] == NULL ) {\n error = TRUE ;\n break ;\n }\n command_mode = atoi ( variables [ x ] ) ;\n }\n else if ( ! strcmp ( variables [ x ] , \"com_id\" ) || ! strcmp ( variables [ x ] , \"down_id\" ) ) {\n x ++ ;\n if ( variables [ x ] == NULL ) {\n error = TRUE ;\n break ;\n }\n multi_ids [ z ] = strtoul ( variables [ x ] , NULL , 10 ) ;\n z ++ ;\n }\n else if ( ! strcmp ( variables [ x ] , \"not_dly\" ) ) {\n x ++ ;\n if ( variables [ x ] == NULL ) {\n error = TRUE ;\n break ;\n }\n notification_delay = atoi ( variables [ x ] ) ;\n }\n else if ( ! strcmp ( variables [ x ] , \"sched_dly\" ) ) {\n x ++ ;\n if ( variables [ x ] == NULL ) {\n error = TRUE ;\n break ;\n }\n schedule_delay = atoi ( variables [ x ] ) ;\n }\n else if ( ! strcmp ( variables [ x ] , \"com_author\" ) ) {\n x ++ ;\n if ( variables [ x ] == NULL ) {\n error = TRUE ;\n break ;\n }\n if ( ( comment_author = ( char * ) strdup ( variables [ x ] ) ) == NULL ) comment_author = \"\" ;\n strip_html_brackets ( comment_author ) ;\n }\n else if ( ! strcmp ( variables [ x ] , \"com_data\" ) ) {\n x ++ ;\n if ( variables [ x ] == NULL ) {\n error = TRUE ;\n break ;\n }\n if ( ( comment_data = ( char * ) strdup ( variables [ x ] ) ) == NULL ) comment_data = \"\" ;\n strip_html_brackets ( comment_data ) ;\n }\n else if ( ! strcmp ( variables [ x ] , \"host\" ) ) {\n x ++ ;\n if ( variables [ x ] == NULL ) {\n error = TRUE ;\n break ;\n }\n if ( ( host_name = ( char * ) strdup ( variables [ x ] ) ) == NULL ) host_name = \"\" ;\n else {\n strip_html_brackets ( host_name ) ;\n commands [ x ] . host_name = host_name ;\n }\n }\n else if ( ! strcmp ( variables [ x ] , \"hostgroup\" ) ) {\n x ++ ;\n if ( variables [ x ] == NULL ) {\n error = TRUE ;\n break ;\n }\n if ( ( hostgroup_name = ( char * ) strdup ( variables [ x ] ) ) == NULL ) hostgroup_name = \"\" ;\n strip_html_brackets ( hostgroup_name ) ;\n }\n else if ( ! strcmp ( variables [ x ] , \"service\" ) ) {\n x ++ ;\n if ( variables [ x ] == NULL ) {\n error = TRUE ;\n break ;\n }\n if ( ( service_desc = ( char * ) strdup ( variables [ x ] ) ) == NULL ) service_desc = \"\" ;\n else {\n strip_html_brackets ( service_desc ) ;\n commands [ ( x - 2 ) ] . description = service_desc ;\n }\n }\n else if ( ! strcmp ( variables [ x ] , \"hostservice\" ) ) {\n x ++ ;\n if ( variables [ x ] == NULL ) {\n error = TRUE ;\n break ;\n }\n temp_buffer = strtok ( variables [ x ] , \"^\" ) ;\n if ( ( host_name = ( char * ) strdup ( temp_buffer ) ) == NULL ) host_name = \"\" ;\n else {\n strip_html_brackets ( host_name ) ;\n commands [ x ] . host_name = host_name ;\n }\n temp_buffer = strtok ( NULL , \"\" ) ;\n if ( ( service_desc = ( char * ) strdup ( temp_buffer ) ) == NULL ) service_desc = \"\" ;\n else {\n strip_html_brackets ( service_desc ) ;\n commands [ x ] . description = service_desc ;\n }\n }\n else if ( ! strcmp ( variables [ x ] , \"servicegroup\" ) ) {\n x ++ ;\n if ( variables [ x ] == NULL ) {\n error = TRUE ;\n break ;\n }\n if ( ( servicegroup_name = ( char * ) strdup ( variables [ x ] ) ) == NULL ) servicegroup_name = \"\" ;\n strip_html_brackets ( servicegroup_name ) ;\n }\n else if ( ! strcmp ( variables [ x ] , \"persistent\" ) ) persistent_comment = TRUE ;\n else if ( ! strcmp ( variables [ x ] , \"send_notification\" ) ) send_notification_set = TRUE ;\n else if ( ! strcmp ( variables [ x ] , \"sticky_ack\" ) ) sticky_ack_set = TRUE ;\n else if ( ! strcmp ( variables [ x ] , \"use_ack_end_time\" ) ) use_ack_end_time = TRUE ;\n else if ( ! strcmp ( variables [ x ] , \"use_disabled_notif_end_time\" ) ) use_disabled_notif_end_time = TRUE ;\n else if ( ! strcmp ( variables [ x ] , \"force_check\" ) ) force_check = TRUE ;\n else if ( ! strcmp ( variables [ x ] , \"ahas\" ) ) affect_host_and_services = TRUE ;\n else if ( ! strcmp ( variables [ x ] , \"ptc\" ) ) propagate_to_children = TRUE ;\n else if ( ! strcmp ( variables [ x ] , \"fixed\" ) ) {\n x ++ ;\n if ( variables [ x ] == NULL ) {\n error = TRUE ;\n break ;\n }\n fixed = ( atoi ( variables [ x ] ) > 0 ) ? TRUE : FALSE ;\n }\n else if ( ! strcmp ( variables [ x ] , \"trigger\" ) ) {\n x ++ ;\n if ( variables [ x ] == NULL ) {\n error = TRUE ;\n break ;\n }\n triggered_by = strtoul ( variables [ x ] , NULL , 10 ) ;\n }\n else if ( ! strcmp ( variables [ x ] , \"childoptions\" ) ) {\n x ++ ;\n if ( variables [ x ] == NULL ) {\n error = TRUE ;\n break ;\n }\n child_options = atoi ( variables [ x ] ) ;\n }\n else if ( ! strcmp ( variables [ x ] , \"plugin_output\" ) ) {\n x ++ ;\n if ( variables [ x ] == NULL ) {\n error = TRUE ;\n break ;\n }\n if ( strlen ( variables [ x ] ) >= MAX_INPUT_BUFFER - 1 ) {\n error = TRUE ;\n break ;\n }\n else strcpy ( plugin_output , variables [ x ] ) ;\n }\n else if ( ! strcmp ( variables [ x ] , \"performance_data\" ) ) {\n x ++ ;\n if ( variables [ x ] == NULL ) {\n error = TRUE ;\n break ;\n }\n if ( strlen ( variables [ x ] ) >= MAX_INPUT_BUFFER - 1 ) {\n error = TRUE ;\n break ;\n }\n else strcpy ( performance_data , variables [ x ] ) ;\n }\n else if ( ! strcmp ( variables [ x ] , \"plugin_state\" ) ) {\n x ++ ;\n if ( variables [ x ] == NULL ) {\n error = TRUE ;\n break ;\n }\n plugin_state = atoi ( variables [ x ] ) ;\n }\n else if ( ! strcmp ( variables [ x ] , \"hours\" ) ) {\n x ++ ;\n if ( variables [ x ] == NULL ) {\n error = TRUE ;\n break ;\n }\n if ( atoi ( variables [ x ] ) < 0 ) {\n error = TRUE ;\n break ;\n }\n duration += ( unsigned long ) ( atoi ( variables [ x ] ) * 3600 ) ;\n }\n else if ( ! strcmp ( variables [ x ] , \"minutes\" ) ) {\n x ++ ;\n if ( variables [ x ] == NULL ) {\n error = TRUE ;\n break ;\n }\n if ( atoi ( variables [ x ] ) < 0 ) {\n error = TRUE ;\n break ;\n }\n duration += ( unsigned long ) ( atoi ( variables [ x ] ) * 60 ) ;\n }\n else if ( ! strcmp ( variables [ x ] , \"start_time\" ) ) {\n x ++ ;\n if ( variables [ x ] == NULL ) {\n error = TRUE ;\n break ;\n }\n start_time_string = ( char * ) malloc ( strlen ( variables [ x ] ) + 1 ) ;\n if ( start_time_string == NULL ) start_time_string = \"\" ;\n else strcpy ( start_time_string , variables [ x ] ) ;\n }\n else if ( ! strcmp ( variables [ x ] , \"end_time\" ) ) {\n x ++ ;\n if ( variables [ x ] == NULL ) {\n error = TRUE ;\n break ;\n }\n end_time_string = ( char * ) malloc ( strlen ( variables [ x ] ) + 1 ) ;\n if ( end_time_string == NULL ) end_time_string = \"\" ;\n else strcpy ( end_time_string , variables [ x ] ) ;\n }\n else if ( ! strcmp ( variables [ x ] , \"force_notification\" ) ) force_notification = NOTIFICATION_OPTION_FORCED ;\n else if ( ! strcmp ( variables [ x ] , \"broadcast_notification\" ) ) broadcast_notification = NOTIFICATION_OPTION_BROADCAST ;\n else if ( ! strcmp ( variables [ x ] , \"nodaemoncheck\" ) ) daemon_check = FALSE ;\n }\n if ( command_mode == CMDMODE_COMMIT ) {\n send_notification = send_notification_set ;\n sticky_ack = sticky_ack_set ;\n }\n free_cgivars ( variables ) ;\n return error ;\n }"}
{"idx": 17361, "target": 1, "func": "static int s_aes_process ( stream_state * ss , stream_cursor_read * pr , stream_cursor_write * pw , bool last ) {\n stream_aes_state * const state = ( stream_aes_state * ) ss ;\n const unsigned char * limit ;\n const long in_size = pr -> limit - pr -> ptr ;\n const long out_size = pw -> limit - pw -> ptr ;\n unsigned char temp [ 16 ] ;\n int status = 0 ;\n if ( in_size > out_size ) {\n limit = pr -> ptr + out_size ;\n status = 1 ;\n }\n else {\n limit = pr -> limit ;\n status = last ? EOFC : 0 ;\n }\n if ( state -> ctx == NULL ) {\n state -> ctx = ( aes_context * ) gs_alloc_bytes_immovable ( state -> memory , sizeof ( aes_context ) , \"aes context structure\" ) ;\n if ( state -> ctx == NULL ) {\n gs_throw ( gs_error_VMerror , \"could not allocate aes context\" ) ;\n return ERRC ;\n }\n if ( state -> keylength < 1 || state -> keylength > SAES_MAX_KEYLENGTH ) {\n gs_throw1 ( gs_error_rangecheck , \"invalid aes key length (%d bytes)\" , state -> keylength ) ;\n return ERRC ;\n }\n aes_setkey_dec ( state -> ctx , state -> key , state -> keylength * 8 ) ;\n }\n if ( ! state -> initialized ) {\n if ( in_size < 16 ) return 0 ;\n memcpy ( state -> iv , pr -> ptr + 1 , 16 ) ;\n state -> initialized = 1 ;\n pr -> ptr += 16 ;\n }\n while ( pr -> ptr + 16 <= limit ) {\n aes_crypt_cbc ( state -> ctx , AES_DECRYPT , 16 , state -> iv , pr -> ptr + 1 , temp ) ;\n pr -> ptr += 16 ;\n if ( last && pr -> ptr == pr -> limit ) {\n int pad ;\n if ( state -> use_padding ) {\n pad = temp [ 15 ] ;\n if ( pad < 1 || pad > 16 ) {\n gs_warn1 ( \"invalid aes padding byte (0x%02x)\" , ( unsigned char ) pad ) ;\n pad = 0 ;\n }\n }\n else {\n pad = 0 ;\n }\n memcpy ( pw -> ptr + 1 , temp , 16 - pad ) ;\n pw -> ptr += 16 - pad ;\n return EOFC ;\n }\n memcpy ( pw -> ptr + 1 , temp , 16 ) ;\n pw -> ptr += 16 ;\n }\n if ( status == EOFC ) {\n gs_throw ( gs_error_rangecheck , \"aes stream isn't a multiple of 16 bytes\" ) ;\n return 0 ;\n }\n return status ;\n }"}
{"idx": 17362, "target": 0, "func": "static GList * launch_locations_from_file_list ( GList * list ) {\n GList * new ;\n new = NULL ;\n while ( list ) {\n new = g_list_prepend ( new , launch_location_from_file ( list -> data ) ) ;\n list = list -> next ;\n }\n new = g_list_reverse ( new ) ;\n return new ;\n }"}
{"idx": 17363, "target": 0, "func": "static void Type_Text_Description_Free ( struct _cms_typehandler_struct * self , void * Ptr ) {\n cmsMLU * mlu = ( cmsMLU * ) Ptr ;\n cmsMLUfree ( mlu ) ;\n return ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 17364, "target": 0, "func": "static const char * create_index ( void ) {\n const char * tmpfile ;\n struct pack_idx_entry * * idx , * * c , * * last ;\n struct object_entry * e ;\n struct object_entry_pool * o ;\n idx = xmalloc ( object_count * sizeof ( * idx ) ) ;\n c = idx ;\n for ( o = blocks ;\n o ;\n o = o -> next_pool ) for ( e = o -> next_free ;\n e -- != o -> entries ;\n ) if ( pack_id == e -> pack_id ) * c ++ = & e -> idx ;\n last = idx + object_count ;\n if ( c != last ) die ( \"internal consistency error creating the index\" ) ;\n tmpfile = write_idx_file ( NULL , idx , object_count , & pack_idx_opts , pack_data -> sha1 ) ;\n free ( idx ) ;\n return tmpfile ;\n }"}
{"idx": 17365, "target": 0, "func": "static void remove_monitor ( NautilusDirectory * directory , NautilusFile * file , gconstpointer client ) {\n remove_monitor_link ( directory , find_monitor ( directory , file , client ) ) ;\n }"}
{"idx": 17366, "target": 0, "func": "PHP_FUNCTION ( uwsgi_cache_exists ) {\n char * key = NULL ;\n int keylen = 0 ;\n char * cache = NULL ;\n int cachelen = 0 ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"s|s\" , & key , & keylen , & cache , & cachelen ) == FAILURE ) {\n RETURN_NULL ( ) ;\n }\n if ( uwsgi_cache_magic_exists ( key , keylen , cache ) ) {\n RETURN_TRUE ;\n }\n RETURN_NULL ( ) ;\n }"}
{"idx": 17367, "target": 0, "func": "static void dissect_zcl_color_control_move_to_hue_and_saturation ( tvbuff_t * tvb , proto_tree * tree , guint * offset , gboolean enhanced ) {\n if ( enhanced ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_enhanced_hue , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n }\n else {\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_hue , tvb , * offset , 1 , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n }\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_saturation , tvb , * offset , 1 , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_transit_time , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n }"}
{"idx": 17368, "target": 0, "func": "static void test_bug11656 ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND my_bind [ 2 ] ;\n int rc ;\n const char * stmt_text ;\n char buf [ 2 ] [ 20 ] ;\n int i = 0 ;\n ulong type ;\n myheader ( \"test_bug11656\" ) ;\n mysql_query ( mysql , \"drop table if exists t1\" ) ;\n rc = mysql_query ( mysql , \"create table t1 (\" \"server varchar(40) not null, \" \"test_kind varchar(1) not null, \" \"test_id varchar(30) not null , \" \"primary key (server,test_kind,test_id))\" ) ;\n myquery ( rc ) ;\n stmt_text = \"select distinct test_kind, test_id from t1 \" \"where server in (?, ?)\" ;\n stmt = mysql_stmt_init ( mysql ) ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt , rc ) ;\n type = ( ulong ) CURSOR_TYPE_READ_ONLY ;\n mysql_stmt_attr_set ( stmt , STMT_ATTR_CURSOR_TYPE , ( const void * ) & type ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n strmov ( buf [ 0 ] , \"pcint502_MY2\" ) ;\n strmov ( buf [ 1 ] , \"*\" ) ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n my_bind [ i ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ i ] . buffer = ( uchar * * ) & buf [ i ] ;\n my_bind [ i ] . buffer_length = strlen ( buf [ i ] ) ;\n }\n mysql_stmt_bind_param ( stmt , my_bind ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"drop table t1\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 17369, "target": 0, "func": "gcry_sexp_t _gcry_ecc_get_param_sexp ( const char * name ) {\n gcry_mpi_t pkey [ 6 ] ;\n gcry_sexp_t result ;\n int i ;\n if ( _gcry_ecc_get_param ( name , pkey ) ) return NULL ;\n if ( gcry_sexp_build ( & result , NULL , \"(public-key(ecc(p%m)(a%m)(b%m)(g%m)(n%m)))\" , pkey [ 0 ] , pkey [ 1 ] , pkey [ 2 ] , pkey [ 3 ] , pkey [ 4 ] ) ) result = NULL ;\n for ( i = 0 ;\n pkey [ i ] ;\n i ++ ) gcry_mpi_release ( pkey [ i ] ) ;\n return result ;\n }"}
{"idx": 17370, "target": 0, "func": "bool LengthGreater ( const base : : string16 & string_a , const base : : string16 & string_b ) {\n return string_a . length ( ) > string_b . length ( ) ;\n }"}
{"idx": 17371, "target": 0, "func": "int kvm_device_msix_init_vectors ( KVMState * s , uint32_t dev_id , uint32_t nr_vectors ) {\n struct kvm_assigned_msix_nr msix_nr = {\n . assigned_dev_id = dev_id , . entry_nr = nr_vectors , }\n ;\n return kvm_vm_ioctl ( s , KVM_ASSIGN_SET_MSIX_NR , & msix_nr ) ;\n }"}
{"idx": 17372, "target": 0, "func": "static int temporal_filter_find_matching_mb_c ( VP9_COMP * cpi , uint8_t * arf_frame_buf , uint8_t * frame_ptr_buf , int stride ) {\n MACROBLOCK * const x = & cpi -> mb ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n const MV_SPEED_FEATURES * const mv_sf = & cpi -> sf . mv ;\n int step_param ;\n int sadpb = x -> sadperbit16 ;\n int bestsme = INT_MAX ;\n int distortion ;\n unsigned int sse ;\n int sad_list [ 5 ] ;\n MV best_ref_mv1 = {\n 0 , 0 }\n ;\n MV best_ref_mv1_full ;\n MV * ref_mv = & x -> e_mbd . mi [ 0 ] . src_mi -> bmi [ 0 ] . as_mv [ 0 ] . as_mv ;\n struct buf_2d src = x -> plane [ 0 ] . src ;\n struct buf_2d pre = xd -> plane [ 0 ] . pre [ 0 ] ;\n best_ref_mv1_full . col = best_ref_mv1 . col >> 3 ;\n best_ref_mv1_full . row = best_ref_mv1 . row >> 3 ;\n x -> plane [ 0 ] . src . buf = arf_frame_buf ;\n x -> plane [ 0 ] . src . stride = stride ;\n xd -> plane [ 0 ] . pre [ 0 ] . buf = frame_ptr_buf ;\n xd -> plane [ 0 ] . pre [ 0 ] . stride = stride ;\n step_param = mv_sf -> reduce_first_step_size ;\n step_param = MIN ( step_param , MAX_MVSEARCH_STEPS - 2 ) ;\n vp9_hex_search ( x , & best_ref_mv1_full , step_param , sadpb , 1 , cond_sad_list ( cpi , sad_list ) , & cpi -> fn_ptr [ BLOCK_16X16 ] , 0 , & best_ref_mv1 , ref_mv ) ;\n bestsme = cpi -> find_fractional_mv_step ( x , ref_mv , & best_ref_mv1 , cpi -> common . allow_high_precision_mv , x -> errorperbit , & cpi -> fn_ptr [ BLOCK_16X16 ] , 0 , mv_sf -> subpel_iters_per_step , cond_sad_list ( cpi , sad_list ) , NULL , NULL , & distortion , & sse , NULL , 0 , 0 ) ;\n x -> plane [ 0 ] . src = src ;\n xd -> plane [ 0 ] . pre [ 0 ] = pre ;\n return bestsme ;\n }"}
{"idx": 17373, "target": 1, "func": "static void add_range ( fz_context * ctx , pdf_cmap * cmap , unsigned int low , unsigned int high , unsigned int out , int check_for_overlap , int many ) {\n int current ;\n cmap_splay * tree ;\n if ( low > high ) {\n fz_warn ( ctx , \"range limits out of range in cmap %s\" , cmap -> cmap_name ) ;\n return ;\n }\n tree = cmap -> tree ;\n if ( cmap -> tlen ) {\n unsigned int move = cmap -> ttop ;\n unsigned int gt = EMPTY ;\n unsigned int lt = EMPTY ;\n if ( check_for_overlap ) {\n do {\n current = move ;\n if ( low <= tree [ current ] . low && tree [ current ] . low <= high ) {\n tree [ current ] . out += high + 1 - tree [ current ] . low ;\n tree [ current ] . low = high + 1 ;\n if ( tree [ current ] . low > tree [ current ] . high ) {\n move = delete_node ( cmap , current ) ;\n current = EMPTY ;\n continue ;\n }\n }\n else if ( low <= tree [ current ] . high && tree [ current ] . high <= high ) {\n tree [ current ] . high = low - 1 ;\n assert ( tree [ current ] . low <= tree [ current ] . high ) ;\n }\n else if ( tree [ current ] . low < low && high < tree [ current ] . high ) {\n int new_high = tree [ current ] . high ;\n tree [ current ] . high = low - 1 ;\n add_range ( ctx , cmap , high + 1 , new_high , tree [ current ] . out + high + 1 - tree [ current ] . low , 0 , many ) ;\n }\n if ( tree [ current ] . low > high ) {\n move = tree [ current ] . left ;\n gt = current ;\n }\n else {\n move = tree [ current ] . right ;\n lt = current ;\n }\n }\n while ( move != EMPTY ) ;\n }\n else {\n do {\n current = move ;\n if ( tree [ current ] . low > high ) {\n move = tree [ current ] . left ;\n gt = current ;\n }\n else {\n move = tree [ current ] . right ;\n lt = current ;\n }\n }\n while ( move != EMPTY ) ;\n }\n if ( ! many ) {\n if ( lt != EMPTY && ! tree [ lt ] . many && tree [ lt ] . high == low - 1 && tree [ lt ] . out - tree [ lt ] . low == out - low ) {\n tree [ lt ] . high = high ;\n if ( gt != EMPTY && ! tree [ gt ] . many && tree [ gt ] . low == high + 1 && tree [ gt ] . out - tree [ gt ] . low == out - low ) {\n tree [ lt ] . high = tree [ gt ] . high ;\n delete_node ( cmap , gt ) ;\n }\n goto exit ;\n }\n if ( gt != EMPTY && ! tree [ gt ] . many && tree [ gt ] . low == high + 1 && tree [ gt ] . out - tree [ gt ] . low == out - low ) {\n tree [ gt ] . low = low ;\n tree [ gt ] . out = out ;\n goto exit ;\n }\n }\n }\n else current = EMPTY ;\n if ( cmap -> tlen == cmap -> tcap ) {\n int new_cap = cmap -> tcap ? cmap -> tcap * 2 : 256 ;\n tree = cmap -> tree = fz_resize_array ( ctx , cmap -> tree , new_cap , sizeof * cmap -> tree ) ;\n cmap -> tcap = new_cap ;\n }\n tree [ cmap -> tlen ] . low = low ;\n tree [ cmap -> tlen ] . high = high ;\n tree [ cmap -> tlen ] . out = out ;\n tree [ cmap -> tlen ] . parent = current ;\n tree [ cmap -> tlen ] . left = EMPTY ;\n tree [ cmap -> tlen ] . right = EMPTY ;\n tree [ cmap -> tlen ] . many = many ;\n cmap -> tlen ++ ;\n if ( current == EMPTY ) cmap -> ttop = 0 ;\n else if ( tree [ current ] . low > high ) tree [ current ] . left = cmap -> tlen - 1 ;\n else {\n assert ( tree [ current ] . high < low ) ;\n tree [ current ] . right = cmap -> tlen - 1 ;\n }\n move_to_root ( tree , cmap -> tlen - 1 ) ;\n cmap -> ttop = cmap -> tlen - 1 ;\n exit : {\n }\n # ifdef CHECK_SPLAY check_splay ( cmap -> tree , cmap -> ttop , 0 ) ;\n # endif # ifdef DUMP_SPLAY dump_splay ( cmap -> tree , cmap -> ttop , 0 , \"\" ) ;\n # endif }"}
{"idx": 17374, "target": 0, "func": "static bool MakeTempFile ( const base : : FilePath & dir , const base : : FilePath & file_name , base : : FilePath * full_path ) {\n * full_path = dir . Append ( file_name ) ;\n return base : : WriteFile ( * full_path , \"\" , 0 ) == 0 ;\n }"}
{"idx": 17375, "target": 0, "func": "static int remoteStreamHandleWrite ( struct qemud_client * client , struct qemud_client_stream * stream ) {\n struct qemud_client_message * msg , * tmp ;\n VIR_DEBUG ( \"stream=%p\" , stream ) ;\n msg = stream -> rx ;\n while ( msg && ! stream -> closed ) {\n int ret ;\n switch ( msg -> hdr . status ) {\n case REMOTE_OK : ret = remoteStreamHandleFinish ( client , stream , msg ) ;\n break ;\n case REMOTE_CONTINUE : ret = remoteStreamHandleWriteData ( client , stream , msg ) ;\n break ;\n case REMOTE_ERROR : default : ret = remoteStreamHandleAbort ( client , stream , msg ) ;\n break ;\n }\n if ( ret == 0 ) qemudClientMessageQueueServe ( & stream -> rx ) ;\n else if ( ret < 0 ) return - 1 ;\n else break ;\n tmp = msg -> next ;\n qemudClientMessageRelease ( client , msg ) ;\n msg = tmp ;\n }\n return 0 ;\n }"}
{"idx": 17376, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , TestGetRegisteredProtocols ) {\n std : : vector < std : : string > protocols ;\n registry ( ) -> GetRegisteredProtocols ( & protocols ) ;\n ASSERT_EQ ( static_cast < size_t > ( 0 ) , protocols . size ( ) ) ;\n registry ( ) -> GetHandlersFor ( \"test\" ) ;\n protocols . clear ( ) ;\n registry ( ) -> GetRegisteredProtocols ( & protocols ) ;\n ASSERT_EQ ( static_cast < size_t > ( 0 ) , protocols . size ( ) ) ;\n }"}
{"idx": 17377, "target": 0, "func": "static int dissect_pcp_message_profile ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , int offset ) {\n proto_item * pcp_profile_item ;\n proto_tree * pcp_profile_tree ;\n proto_item * pcp_profile_profile_item ;\n proto_tree * pcp_profile_profile_tree ;\n guint32 num_prof ;\n guint32 i ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"[%s]\" , val_to_str ( PCP_PDU_PROFILE , packettypenames , \"Unknown Type:0x%02x\" ) ) ;\n pcp_profile_item = proto_tree_add_item ( tree , hf_pcp_profile , tvb , offset , - 1 , ENC_NA ) ;\n pcp_profile_tree = proto_item_add_subtree ( pcp_profile_item , ett_pcp ) ;\n proto_tree_add_item ( pcp_profile_tree , hf_pcp_ctxnum , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( pcp_profile_tree , hf_pcp_profile_g_state , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( pcp_profile_tree , hf_pcp_profile_numprof , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n num_prof = tvb_get_ntohl ( tvb , offset ) ;\n offset += 4 ;\n proto_tree_add_item ( pcp_profile_tree , hf_pcp_pdu_padding , tvb , offset , 4 , ENC_NA ) ;\n offset += 4 ;\n for ( i = 0 ;\n i < num_prof ;\n i ++ ) {\n pcp_profile_profile_item = proto_tree_add_item ( pcp_profile_tree , hf_pcp_profile_profile , tvb , offset , 32 , ENC_NA ) ;\n pcp_profile_profile_tree = proto_item_add_subtree ( pcp_profile_profile_item , ett_pcp ) ;\n proto_tree_add_item ( pcp_profile_profile_tree , hf_pcp_instance_indom , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( pcp_profile_profile_tree , hf_pcp_profile_profile_state , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( pcp_profile_profile_tree , hf_pcp_profile_profile_numinst , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( pcp_profile_tree , hf_pcp_pdu_padding , tvb , offset , 4 , ENC_NA ) ;\n offset += 4 ;\n }\n return offset ;\n }"}
{"idx": 17378, "target": 0, "func": "static int verify_address_len ( const void * p ) {\n const struct sadb_address * sp = p ;\n const struct sockaddr * addr = ( const struct sockaddr * ) ( sp + 1 ) ;\n const struct sockaddr_in * sin ;\n # if IS_ENABLED ( CONFIG_IPV6 ) const struct sockaddr_in6 * sin6 ;\n # endif int len ;\n switch ( addr -> sa_family ) {\n case AF_INET : len = DIV_ROUND_UP ( sizeof ( * sp ) + sizeof ( * sin ) , sizeof ( uint64_t ) ) ;\n if ( sp -> sadb_address_len != len || sp -> sadb_address_prefixlen > 32 ) return - EINVAL ;\n break ;\n # if IS_ENABLED ( CONFIG_IPV6 ) case AF_INET6 : len = DIV_ROUND_UP ( sizeof ( * sp ) + sizeof ( * sin6 ) , sizeof ( uint64_t ) ) ;\n if ( sp -> sadb_address_len != len || sp -> sadb_address_prefixlen > 128 ) return - EINVAL ;\n break ;\n # endif default : return - EINVAL ;\n break ;\n }\n return 0 ;\n }"}
{"idx": 17379, "target": 0, "func": "void vp9_init_quantizer ( VP9_COMP * cpi ) {\n VP9_COMMON * const cm = & cpi -> common ;\n QUANTS * const quants = & cpi -> quants ;\n int i , q , quant ;\n for ( q = 0 ;\n q < QINDEX_RANGE ;\n q ++ ) {\n const int qzbin_factor = get_qzbin_factor ( q , cm -> bit_depth ) ;\n const int qrounding_factor = q == 0 ? 64 : 48 ;\n for ( i = 0 ;\n i < 2 ;\n ++ i ) {\n int qrounding_factor_fp = i == 0 ? 48 : 42 ;\n if ( q == 0 ) qrounding_factor_fp = 64 ;\n quant = i == 0 ? vp9_dc_quant ( q , cm -> y_dc_delta_q , cm -> bit_depth ) : vp9_ac_quant ( q , 0 , cm -> bit_depth ) ;\n invert_quant ( & quants -> y_quant [ q ] [ i ] , & quants -> y_quant_shift [ q ] [ i ] , quant ) ;\n quants -> y_quant_fp [ q ] [ i ] = ( 1 << 16 ) / quant ;\n quants -> y_round_fp [ q ] [ i ] = ( qrounding_factor_fp * quant ) >> 7 ;\n quants -> y_zbin [ q ] [ i ] = ROUND_POWER_OF_TWO ( qzbin_factor * quant , 7 ) ;\n quants -> y_round [ q ] [ i ] = ( qrounding_factor * quant ) >> 7 ;\n cm -> y_dequant [ q ] [ i ] = quant ;\n quant = i == 0 ? vp9_dc_quant ( q , cm -> uv_dc_delta_q , cm -> bit_depth ) : vp9_ac_quant ( q , cm -> uv_ac_delta_q , cm -> bit_depth ) ;\n invert_quant ( & quants -> uv_quant [ q ] [ i ] , & quants -> uv_quant_shift [ q ] [ i ] , quant ) ;\n quants -> uv_quant_fp [ q ] [ i ] = ( 1 << 16 ) / quant ;\n quants -> uv_round_fp [ q ] [ i ] = ( qrounding_factor_fp * quant ) >> 7 ;\n quants -> uv_zbin [ q ] [ i ] = ROUND_POWER_OF_TWO ( qzbin_factor * quant , 7 ) ;\n quants -> uv_round [ q ] [ i ] = ( qrounding_factor * quant ) >> 7 ;\n cm -> uv_dequant [ q ] [ i ] = quant ;\n }\n for ( i = 2 ;\n i < 8 ;\n i ++ ) {\n quants -> y_quant [ q ] [ i ] = quants -> y_quant [ q ] [ 1 ] ;\n quants -> y_quant_fp [ q ] [ i ] = quants -> y_quant_fp [ q ] [ 1 ] ;\n quants -> y_round_fp [ q ] [ i ] = quants -> y_round_fp [ q ] [ 1 ] ;\n quants -> y_quant_shift [ q ] [ i ] = quants -> y_quant_shift [ q ] [ 1 ] ;\n quants -> y_zbin [ q ] [ i ] = quants -> y_zbin [ q ] [ 1 ] ;\n quants -> y_round [ q ] [ i ] = quants -> y_round [ q ] [ 1 ] ;\n cm -> y_dequant [ q ] [ i ] = cm -> y_dequant [ q ] [ 1 ] ;\n quants -> uv_quant [ q ] [ i ] = quants -> uv_quant [ q ] [ 1 ] ;\n quants -> uv_quant_fp [ q ] [ i ] = quants -> uv_quant_fp [ q ] [ 1 ] ;\n quants -> uv_round_fp [ q ] [ i ] = quants -> uv_round_fp [ q ] [ 1 ] ;\n quants -> uv_quant_shift [ q ] [ i ] = quants -> uv_quant_shift [ q ] [ 1 ] ;\n quants -> uv_zbin [ q ] [ i ] = quants -> uv_zbin [ q ] [ 1 ] ;\n quants -> uv_round [ q ] [ i ] = quants -> uv_round [ q ] [ 1 ] ;\n cm -> uv_dequant [ q ] [ i ] = cm -> uv_dequant [ q ] [ 1 ] ;\n }\n }\n }"}
{"idx": 17380, "target": 0, "func": "int ExecTargetListLength ( List * targetlist ) {\n return list_length ( targetlist ) ;\n }"}
{"idx": 17381, "target": 0, "func": "static int spl_filesystem_file_open ( spl_filesystem_object * intern , int use_include_path , int silent TSRMLS_DC ) {\n zval tmp ;\n intern -> type = SPL_FS_FILE ;\n php_stat ( intern -> file_name , intern -> file_name_len , FS_IS_DIR , & tmp TSRMLS_CC ) ;\n if ( Z_LVAL ( tmp ) ) {\n intern -> u . file . open_mode = NULL ;\n intern -> file_name = NULL ;\n zend_throw_exception_ex ( spl_ce_LogicException , 0 TSRMLS_CC , \"Cannot use SplFileObject with directories\" ) ;\n return FAILURE ;\n }\n intern -> u . file . context = php_stream_context_from_zval ( intern -> u . file . zcontext , 0 ) ;\n intern -> u . file . stream = php_stream_open_wrapper_ex ( intern -> file_name , intern -> u . file . open_mode , ( use_include_path ? USE_PATH : 0 ) | REPORT_ERRORS , NULL , intern -> u . file . context ) ;\n if ( ! intern -> file_name_len || ! intern -> u . file . stream ) {\n if ( ! EG ( exception ) ) {\n zend_throw_exception_ex ( spl_ce_RuntimeException , 0 TSRMLS_CC , \"Cannot open file '%s'\" , intern -> file_name_len ? intern -> file_name : \"\" ) ;\n }\n intern -> file_name = NULL ;\n intern -> u . file . open_mode = NULL ;\n return FAILURE ;\n }\n if ( intern -> u . file . zcontext ) {\n zend_list_addref ( Z_RESVAL_P ( intern -> u . file . zcontext ) ) ;\n }\n if ( intern -> file_name_len > 1 && IS_SLASH_AT ( intern -> file_name , intern -> file_name_len - 1 ) ) {\n intern -> file_name_len -- ;\n }\n intern -> orig_path = estrndup ( intern -> u . file . stream -> orig_path , strlen ( intern -> u . file . stream -> orig_path ) ) ;\n intern -> file_name = estrndup ( intern -> file_name , intern -> file_name_len ) ;\n intern -> u . file . open_mode = estrndup ( intern -> u . file . open_mode , intern -> u . file . open_mode_len ) ;\n ZVAL_RESOURCE ( & intern -> u . file . zresource , php_stream_get_resource_id ( intern -> u . file . stream ) ) ;\n Z_SET_REFCOUNT ( intern -> u . file . zresource , 1 ) ;\n intern -> u . file . delimiter = ',' ;\n intern -> u . file . enclosure = '\"' ;\n intern -> u . file . escape = '\\\\' ;\n zend_hash_find ( & intern -> std . ce -> function_table , \"getcurrentline\" , sizeof ( \"getcurrentline\" ) , ( void * * ) & intern -> u . file . func_getCurr ) ;\n return SUCCESS ;\n }"}
{"idx": 17382, "target": 0, "func": "static int jpc_pi_nextcprl ( register jpc_pi_t * pi ) {\n int rlvlno ;\n jpc_pirlvl_t * pirlvl ;\n jpc_pchg_t * pchg ;\n int prchind ;\n int prcvind ;\n int * prclyrno ;\n uint_fast32_t trx0 ;\n uint_fast32_t try0 ;\n uint_fast32_t r ;\n uint_fast32_t rpx ;\n uint_fast32_t rpy ;\n pchg = pi -> pchg ;\n if ( ! pi -> prgvolfirst ) {\n goto skip ;\n }\n else {\n pi -> prgvolfirst = 0 ;\n }\n for ( pi -> compno = pchg -> compnostart , pi -> picomp = & pi -> picomps [ pi -> compno ] ;\n pi -> compno < JAS_CAST ( int , pchg -> compnoend ) && pi -> compno < pi -> numcomps ;\n ++ pi -> compno , ++ pi -> picomp ) {\n pirlvl = pi -> picomp -> pirlvls ;\n pi -> xstep = pi -> picomp -> hsamp * ( JAS_CAST ( uint_fast32_t , 1 ) << ( pirlvl -> prcwidthexpn + pi -> picomp -> numrlvls - 1 ) ) ;\n pi -> ystep = pi -> picomp -> vsamp * ( JAS_CAST ( uint_fast32_t , 1 ) << ( pirlvl -> prcheightexpn + pi -> picomp -> numrlvls - 1 ) ) ;\n for ( rlvlno = 1 , pirlvl = & pi -> picomp -> pirlvls [ 1 ] ;\n rlvlno < pi -> picomp -> numrlvls ;\n ++ rlvlno , ++ pirlvl ) {\n pi -> xstep = JAS_MIN ( pi -> xstep , pi -> picomp -> hsamp * ( JAS_CAST ( uint_fast32_t , 1 ) << ( pirlvl -> prcwidthexpn + pi -> picomp -> numrlvls - rlvlno - 1 ) ) ) ;\n pi -> ystep = JAS_MIN ( pi -> ystep , pi -> picomp -> vsamp * ( JAS_CAST ( uint_fast32_t , 1 ) << ( pirlvl -> prcheightexpn + pi -> picomp -> numrlvls - rlvlno - 1 ) ) ) ;\n }\n for ( pi -> y = pi -> ystart ;\n pi -> y < pi -> yend ;\n pi -> y += pi -> ystep - ( pi -> y % pi -> ystep ) ) {\n for ( pi -> x = pi -> xstart ;\n pi -> x < pi -> xend ;\n pi -> x += pi -> xstep - ( pi -> x % pi -> xstep ) ) {\n for ( pi -> rlvlno = pchg -> rlvlnostart , pi -> pirlvl = & pi -> picomp -> pirlvls [ pi -> rlvlno ] ;\n pi -> rlvlno < pi -> picomp -> numrlvls && pi -> rlvlno < pchg -> rlvlnoend ;\n ++ pi -> rlvlno , ++ pi -> pirlvl ) {\n if ( pi -> pirlvl -> numprcs == 0 ) {\n continue ;\n }\n r = pi -> picomp -> numrlvls - 1 - pi -> rlvlno ;\n trx0 = JPC_CEILDIV ( pi -> xstart , pi -> picomp -> hsamp << r ) ;\n try0 = JPC_CEILDIV ( pi -> ystart , pi -> picomp -> vsamp << r ) ;\n rpx = r + pi -> pirlvl -> prcwidthexpn ;\n rpy = r + pi -> pirlvl -> prcheightexpn ;\n if ( ( ( pi -> x == pi -> xstart && ( ( trx0 << r ) % ( 1 << rpx ) ) ) || ! ( pi -> x % ( pi -> picomp -> hsamp << rpx ) ) ) && ( ( pi -> y == pi -> ystart && ( ( try0 << r ) % ( 1 << rpy ) ) ) || ! ( pi -> y % ( pi -> picomp -> vsamp << rpy ) ) ) ) {\n prchind = JPC_FLOORDIVPOW2 ( JPC_CEILDIV ( pi -> x , pi -> picomp -> hsamp << r ) , pi -> pirlvl -> prcwidthexpn ) - JPC_FLOORDIVPOW2 ( trx0 , pi -> pirlvl -> prcwidthexpn ) ;\n prcvind = JPC_FLOORDIVPOW2 ( JPC_CEILDIV ( pi -> y , pi -> picomp -> vsamp << r ) , pi -> pirlvl -> prcheightexpn ) - JPC_FLOORDIVPOW2 ( try0 , pi -> pirlvl -> prcheightexpn ) ;\n pi -> prcno = prcvind * pi -> pirlvl -> numhprcs + prchind ;\n assert ( pi -> prcno < pi -> pirlvl -> numprcs ) ;\n for ( pi -> lyrno = 0 ;\n pi -> lyrno < pi -> numlyrs && pi -> lyrno < JAS_CAST ( int , pchg -> lyrnoend ) ;\n ++ pi -> lyrno ) {\n prclyrno = & pi -> pirlvl -> prclyrnos [ pi -> prcno ] ;\n if ( pi -> lyrno >= * prclyrno ) {\n ++ ( * prclyrno ) ;\n return 0 ;\n }\n skip : ;\n }\n }\n }\n }\n }\n }\n return 1 ;\n }"}
{"idx": 17383, "target": 0, "func": "int jbig2_parse_segment ( Jbig2Ctx * ctx , Jbig2Segment * segment , const uint8_t * segment_data ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_INFO , segment -> number , \"Segment %d, flags=%x, type=%d, data_length=%d\" , segment -> number , segment -> flags , segment -> flags & 63 , segment -> data_length ) ;\n switch ( segment -> flags & 63 ) {\n case 0 : return jbig2_symbol_dictionary ( ctx , segment , segment_data ) ;\n case 4 : case 6 : case 7 : return jbig2_text_region ( ctx , segment , segment_data ) ;\n case 16 : return jbig2_pattern_dictionary ( ctx , segment , segment_data ) ;\n case 20 : case 22 : case 23 : return jbig2_halftone_region ( ctx , segment , segment_data ) ;\n case 36 : return jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"unhandled segment type 'intermediate generic region'\" ) ;\n case 38 : case 39 : return jbig2_immediate_generic_region ( ctx , segment , segment_data ) ;\n case 40 : case 42 : case 43 : return jbig2_refinement_region ( ctx , segment , segment_data ) ;\n case 48 : return jbig2_page_info ( ctx , segment , segment_data ) ;\n case 49 : return jbig2_end_of_page ( ctx , segment , segment_data ) ;\n case 50 : return jbig2_end_of_stripe ( ctx , segment , segment_data ) ;\n case 51 : ctx -> state = JBIG2_FILE_EOF ;\n return jbig2_error ( ctx , JBIG2_SEVERITY_INFO , segment -> number , \"end of file\" ) ;\n case 52 : return jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"unhandled segment type 'profile'\" ) ;\n case 53 : return jbig2_table ( ctx , segment , segment_data ) ;\n case 62 : return jbig2_parse_extension_segment ( ctx , segment , segment_data ) ;\n default : jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"unknown segment type %d\" , segment -> flags & 63 ) ;\n }\n return 0 ;\n }"}
{"idx": 17384, "target": 1, "func": "static void loop_filter_rows_mt ( const YV12_BUFFER_CONFIG * const frame_buffer , VP9_COMMON * const cm , struct macroblockd_plane planes [ MAX_MB_PLANE ] , int start , int stop , int y_only , VP9LfSync * const lf_sync , int num_lf_workers ) {\n const int num_planes = y_only ? 1 : MAX_MB_PLANE ;\n int r , c ;\n const int sb_cols = mi_cols_aligned_to_sb ( cm -> mi_cols ) >> MI_BLOCK_SIZE_LOG2 ;\n for ( r = start ;\n r < stop ;\n r += num_lf_workers ) {\n const int mi_row = r << MI_BLOCK_SIZE_LOG2 ;\n MODE_INFO * * const mi = cm -> mi_grid_visible + mi_row * cm -> mi_stride ;\n for ( c = 0 ;\n c < sb_cols ;\n ++ c ) {\n const int mi_col = c << MI_BLOCK_SIZE_LOG2 ;\n LOOP_FILTER_MASK lfm ;\n int plane ;\n sync_read ( lf_sync , r , c ) ;\n vp9_setup_dst_planes ( planes , frame_buffer , mi_row , mi_col ) ;\n vp9_setup_mask ( cm , mi_row , mi_col , mi + mi_col , cm -> mi_stride , & lfm ) ;\n for ( plane = 0 ;\n plane < num_planes ;\n ++ plane ) {\n vp9_filter_block_plane ( cm , & planes [ plane ] , mi_row , & lfm ) ;\n }\n sync_write ( lf_sync , r , c , sb_cols ) ;\n }\n }\n }"}
{"idx": 17385, "target": 0, "func": "static int dissect_h245_RequestModeReject ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_RequestModeReject , RequestModeReject_sequence ) ;\n return offset ;\n }"}
{"idx": 17386, "target": 0, "func": "static int test_make_inputs ( xd3_stream * stream , xoff_t * ss_out , xoff_t * ts_out ) {\n usize_t ts = ( mt_random ( & static_mtrand ) % TEST_FILE_MEAN ) + TEST_FILE_MEAN / 2 ;\n usize_t ss = ( mt_random ( & static_mtrand ) % TEST_FILE_MEAN ) + TEST_FILE_MEAN / 2 ;\n uint8_t * buf = ( uint8_t * ) malloc ( ts + ss ) , * sbuf = buf , * tbuf = buf + ss ;\n usize_t sadd = 0 , sadd_max = ( usize_t ) ( ss * TEST_ADD_RATIO ) ;\n FILE * tf = NULL , * sf = NULL ;\n usize_t i , j ;\n int ret ;\n if ( buf == NULL ) {\n return ENOMEM ;\n }\n if ( ( tf = fopen ( TEST_TARGET_FILE , \"w\" ) ) == NULL || ( ss_out != NULL && ( sf = fopen ( TEST_SOURCE_FILE , \"w\" ) ) == NULL ) ) {\n stream -> msg = \"write failed\" ;\n ret = get_errno ( ) ;\n goto failure ;\n }\n if ( ss_out != NULL ) {\n for ( i = 0 ;\n i < ss ;\n ) {\n sbuf [ i ++ ] = ( uint8_t ) mt_random ( & static_mtrand ) ;\n }\n }\n for ( i = 0 ;\n i < ts ;\n ) {\n usize_t left = ts - i ;\n usize_t next = mt_exp_rand ( ( uint32_t ) TEST_ADD_MEAN , ( uint32_t ) TEST_ADD_MAX ) ;\n usize_t add_left = sadd_max - sadd ;\n double add_prob = ( left == 0 ) ? 0 : ( add_left / ( double ) left ) ;\n int do_copy ;\n next = min ( left , next ) ;\n do_copy = ( next > add_left || ( mt_random ( & static_mtrand ) / ( double ) USIZE_T_MAX ) >= add_prob ) ;\n if ( ss_out == NULL ) {\n do_copy &= ( i > 0 ) ;\n }\n else {\n do_copy &= ( ss - next ) > 0 ;\n }\n if ( do_copy ) {\n size_t offset = mt_random ( & static_mtrand ) % ( ( ss_out == NULL ) ? i : ( ss - next ) ) ;\n for ( j = 0 ;\n j < next ;\n j += 1 ) {\n char c = ( ( ss_out == NULL ) ? tbuf : sbuf ) [ offset + j ] ;\n tbuf [ i ++ ] = c ;\n }\n }\n else {\n for ( j = 0 ;\n j < next ;\n j += 1 ) {\n char c = ( char ) mt_random ( & static_mtrand ) ;\n tbuf [ i ++ ] = c ;\n }\n sadd += next ;\n }\n }\n if ( ( fwrite ( tbuf , 1 , ts , tf ) != ts ) || ( ss_out != NULL && ( fwrite ( sbuf , 1 , ss , sf ) != ss ) ) ) {\n stream -> msg = \"write failed\" ;\n ret = get_errno ( ) ;\n goto failure ;\n }\n if ( ( ret = fclose ( tf ) ) || ( ss_out != NULL && ( ret = fclose ( sf ) ) ) ) {\n stream -> msg = \"close failed\" ;\n ret = get_errno ( ) ;\n goto failure ;\n }\n if ( ts_out ) {\n ( * ts_out ) = ts ;\n }\n if ( ss_out ) {\n ( * ss_out ) = ss ;\n }\n failure : free ( buf ) ;\n return ret ;\n }"}
{"idx": 17387, "target": 0, "func": "void xmlrpc_send_string ( const char * value ) {\n int len ;\n char buf [ 1024 ] ;\n const char * ss ;\n mowgli_string_t * s = mowgli_string_create ( ) ;\n char * s2 ;\n char * header ;\n if ( xmlrpc . encode ) {\n snprintf ( buf , sizeof buf , \"<?xml version=\\\"1.0\\\" encoding=\\\"%s\\\" ?>\\r\\n<methodResponse>\\r\\n<params>\\r\\n\" , xmlrpc . encode ) ;\n }\n else {\n snprintf ( buf , sizeof buf , \"<?xml version=\\\"1.0\\\"?>\\r\\n<methodResponse>\\r\\n<params>\\r\\n\" ) ;\n }\n s -> append ( s , buf , strlen ( buf ) ) ;\n ss = \" <param>\\r\\n <value>\\r\\n <string>\" ;\n s -> append ( s , ss , strlen ( ss ) ) ;\n xmlrpc_append_char_encode ( s , value ) ;\n ss = \"</string>\\r\\n </value>\\r\\n </param>\\r\\n\" ;\n s -> append ( s , ss , strlen ( ss ) ) ;\n ss = \"</params>\\r\\n</methodResponse>\" ;\n s -> append ( s , ss , strlen ( ss ) ) ;\n len = s -> pos ;\n if ( xmlrpc . httpheader ) {\n header = xmlrpc_write_header ( len ) ;\n s2 = smalloc ( strlen ( header ) + len + 1 ) ;\n strcpy ( s2 , header ) ;\n memcpy ( s2 + strlen ( header ) , s -> str , len ) ;\n xmlrpc . setbuffer ( s2 , len + strlen ( header ) ) ;\n free ( header ) ;\n free ( s2 ) ;\n xmlrpc . httpheader = 1 ;\n }\n else {\n xmlrpc . setbuffer ( s -> str , len ) ;\n }\n if ( xmlrpc . encode ) {\n free ( xmlrpc . encode ) ;\n xmlrpc . encode = NULL ;\n }\n s -> destroy ( s ) ;\n }"}
{"idx": 17388, "target": 0, "func": "static afs_int32 isAMemberOf ( struct rx_call * call , afs_int32 uid , afs_int32 gid , afs_int32 * flag , afs_int32 * cid ) {\n afs_int32 code ;\n struct ubik_trans * tt ;\n code = Initdb ( ) ;\n if ( code != PRSUCCESS ) return code ;\n code = ubik_BeginTransReadAny ( dbase , UBIK_READTRANS , & tt ) ;\n if ( code ) return code ;\n code = ubik_SetLock ( tt , 1 , 1 , LOCKREAD ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = read_DbHeader ( tt ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n {\n afs_int32 uloc = FindByID ( tt , uid ) ;\n afs_int32 gloc = FindByID ( tt , gid ) ;\n struct prentry uentry , gentry ;\n if ( ! uloc || ! gloc ) ABORT_WITH ( tt , PRNOENT ) ;\n code = WhoIsThis ( call , tt , cid ) ;\n if ( code ) ABORT_WITH ( tt , PRPERM ) ;\n code = pr_ReadEntry ( tt , 0 , uloc , & uentry ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = pr_ReadEntry ( tt , 0 , gloc , & gentry ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n # if ! defined ( SUPERGROUPS ) if ( ( uentry . flags & PRGRP ) || ! ( gentry . flags & PRGRP ) ) ABORT_WITH ( tt , PRBADARG ) ;\n # else if ( ! ( gentry . flags & PRGRP ) ) ABORT_WITH ( tt , PRBADARG ) ;\n # endif if ( ! AccessOK ( tt , * cid , & uentry , 0 , PRP_MEMBER_ANY ) && ! AccessOK ( tt , * cid , & gentry , PRP_MEMBER_MEM , PRP_MEMBER_ANY ) ) ABORT_WITH ( tt , PRPERM ) ;\n }\n * flag = IsAMemberOf ( tt , uid , gid ) ;\n code = ubik_EndTrans ( tt ) ;\n return code ;\n }"}
{"idx": 17389, "target": 0, "func": "static __inline__ void __swahb32s ( __u32 * p ) {\n # ifdef __arch_swahb32s __arch_swahb32s ( p ) ;\n # else * p = __swahb32p ( p ) ;\n # endif }"}
{"idx": 17390, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( DownloadExtensionTest , DownloadExtensionTest_OnDeterminingFilename_IllegalFilenameExtension ) {\n GoOnTheRecord ( ) ;\n LoadExtension ( \"downloads_split\" ) ;\n AddFilenameDeterminer ( ) ;\n ASSERT_TRUE ( StartEmbeddedTestServer ( ) ) ;\n std : : string download_url = embedded_test_server ( ) -> GetURL ( \"/slow?0\" ) . spec ( ) ;\n std : : unique_ptr < base : : Value > result ( RunFunctionAndReturnResult ( new DownloadsDownloadFunction ( ) , base : : StringPrintf ( \"[{\n\\\"url\\\": \\\"%s\\\"}\n]\" , download_url . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( result . get ( ) ) ;\n int result_id = - 1 ;\n ASSERT_TRUE ( result -> GetAsInteger ( & result_id ) ) ;\n DownloadItem * item = GetCurrentManager ( ) -> GetDownload ( result_id ) ;\n ASSERT_TRUE ( item ) ;\n ScopedCancellingItem canceller ( item ) ;\n ASSERT_EQ ( download_url , item -> GetOriginalUrl ( ) . spec ( ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnCreated : : kEventName , base : : StringPrintf ( \"[{\n\\\"danger\\\": \\\"safe\\\",\" \" \\\"incognito\\\": false,\" \" \\\"id\\\": %d,\" \" \\\"mime\\\": \\\"text/plain\\\",\" \" \\\"paused\\\": false,\" \" \\\"url\\\": \\\"%s\\\"}\n]\" , result_id , download_url . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnDeterminingFilename : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"filename\\\":\\\"slow.txt\\\"}\n]\" , result_id ) ) ) ;\n ASSERT_TRUE ( item -> GetTargetFilePath ( ) . empty ( ) ) ;\n ASSERT_EQ ( DownloadItem : : IN_PROGRESS , item -> GetState ( ) ) ;\n std : : string error ;\n ASSERT_FALSE ( ExtensionDownloadsEventRouter : : DetermineFilename ( browser ( ) -> profile ( ) , false , GetExtensionId ( ) , result_id , base : : FilePath ( FILE_PATH_LITERAL ( \"My Computer.{\n20D04FE0-3AEA-1069-A2D8-08002B30309D}\n/foo\" ) ) , downloads : : FILENAME_CONFLICT_ACTION_UNIQUIFY , & error ) ) ;\n EXPECT_STREQ ( errors : : kInvalidFilename , error . c_str ( ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnChanged : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"filename\\\": {\n\" \" \\\"previous\\\": \\\"\\\",\" \" \\\"current\\\": \\\"%s\\\"}\n}\n]\" , result_id , GetFilename ( \"slow.txt\" ) . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnChanged : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"state\\\": {\n\" \" \\\"previous\\\": \\\"in_progress\\\",\" \" \\\"current\\\": \\\"complete\\\"}\n}\n]\" , result_id ) ) ) ;\n }"}
{"idx": 17391, "target": 0, "func": "static inline int joliet_allowed_char ( unsigned char high , unsigned char low ) {\n int utf16 = ( high << 8 ) | low ;\n if ( utf16 <= 0x001F ) return ( 0 ) ;\n switch ( utf16 ) {\n case 0x002A : case 0x002F : case 0x003A : case 0x003B : case 0x003F : case 0x005C : return ( 0 ) ;\n }\n return ( 1 ) ;\n }"}
{"idx": 17392, "target": 0, "func": "static int kvm_put_xcrs ( X86CPU * cpu ) {\n CPUX86State * env = & cpu -> env ;\n struct kvm_xcrs xcrs = {\n }\n ;\n if ( ! has_xcrs ) {\n return 0 ;\n }\n xcrs . nr_xcrs = 1 ;\n xcrs . flags = 0 ;\n xcrs . xcrs [ 0 ] . xcr = 0 ;\n xcrs . xcrs [ 0 ] . value = env -> xcr0 ;\n return kvm_vcpu_ioctl ( CPU ( cpu ) , KVM_SET_XCRS , & xcrs ) ;\n }"}
{"idx": 17393, "target": 0, "func": "void parseDiagnosticInfo ( proto_tree * tree , tvbuff_t * tvb , packet_info * pinfo , gint * pOffset , const char * szFieldName ) {\n static const int * diag_mask [ ] = {\n & hf_opcua_diag_mask_symbolicflag , & hf_opcua_diag_mask_namespaceflag , & hf_opcua_diag_mask_localizedtextflag , & hf_opcua_diag_mask_localeflag , & hf_opcua_diag_mask_additionalinfoflag , & hf_opcua_diag_mask_innerstatuscodeflag , & hf_opcua_diag_mask_innerdiaginfoflag , NULL }\n ;\n gint iOffset = * pOffset ;\n guint8 EncodingMask ;\n proto_tree * subtree ;\n proto_item * ti ;\n guint opcua_nested_count ;\n subtree = proto_tree_add_subtree_format ( tree , tvb , * pOffset , - 1 , ett_opcua_diagnosticinfo , & ti , \"%s: DiagnosticInfo\" , szFieldName ) ;\n opcua_nested_count = GPOINTER_TO_UINT ( p_get_proto_data ( pinfo -> pool , pinfo , proto_opcua , 0 ) ) ;\n if ( ++ opcua_nested_count > MAX_NESTING_DEPTH ) {\n expert_add_info ( pinfo , ti , & ei_nesting_depth ) ;\n return ;\n }\n p_add_proto_data ( pinfo -> pool , pinfo , proto_opcua , 0 , GUINT_TO_POINTER ( opcua_nested_count ) ) ;\n EncodingMask = tvb_get_guint8 ( tvb , iOffset ) ;\n proto_tree_add_bitmask ( subtree , tvb , iOffset , hf_opcua_diag_mask , ett_opcua_diagnosticinfo_encodingmask , diag_mask , ENC_LITTLE_ENDIAN ) ;\n iOffset ++ ;\n if ( EncodingMask & DIAGNOSTICINFO_ENCODINGMASK_SYMBOLICID_FLAG ) {\n parseInt32 ( subtree , tvb , pinfo , & iOffset , hf_opcua_diag_symbolicid ) ;\n }\n if ( EncodingMask & DIAGNOSTICINFO_ENCODINGMASK_NAMESPACE_FLAG ) {\n parseInt32 ( subtree , tvb , pinfo , & iOffset , hf_opcua_diag_namespace ) ;\n }\n if ( EncodingMask & DIAGNOSTICINFO_ENCODINGMASK_LOCALIZEDTEXT_FLAG ) {\n parseInt32 ( subtree , tvb , pinfo , & iOffset , hf_opcua_diag_localizedtext ) ;\n }\n if ( EncodingMask & DIAGNOSTICINFO_ENCODINGMASK_LOCALE_FLAG ) {\n parseInt32 ( subtree , tvb , pinfo , & iOffset , hf_opcua_diag_locale ) ;\n }\n if ( EncodingMask & DIAGNOSTICINFO_ENCODINGMASK_ADDITIONALINFO_FLAG ) {\n parseString ( subtree , tvb , pinfo , & iOffset , hf_opcua_diag_additionalinfo ) ;\n }\n if ( EncodingMask & DIAGNOSTICINFO_ENCODINGMASK_INNERSTATUSCODE_FLAG ) {\n parseStatusCode ( subtree , tvb , pinfo , & iOffset , hf_opcua_diag_innerstatuscode ) ;\n }\n if ( EncodingMask & DIAGNOSTICINFO_ENCODINGMASK_INNERDIAGNOSTICINFO_FLAG ) {\n parseDiagnosticInfo ( subtree , tvb , pinfo , & iOffset , \"Inner DiagnosticInfo\" ) ;\n }\n proto_item_set_end ( ti , tvb , iOffset ) ;\n * pOffset = iOffset ;\n }"}
{"idx": 17394, "target": 0, "func": "static int parse_ipsecrequests ( struct xfrm_policy * xp , struct sadb_x_policy * pol ) {\n int err ;\n int len = pol -> sadb_x_policy_len * 8 - sizeof ( struct sadb_x_policy ) ;\n struct sadb_x_ipsecrequest * rq = ( void * ) ( pol + 1 ) ;\n if ( pol -> sadb_x_policy_len * 8 < sizeof ( struct sadb_x_policy ) ) return - EINVAL ;\n while ( len >= sizeof ( struct sadb_x_ipsecrequest ) ) {\n if ( ( err = parse_ipsecrequest ( xp , rq ) ) < 0 ) return err ;\n len -= rq -> sadb_x_ipsecrequest_len ;\n rq = ( void * ) ( ( u8 * ) rq + rq -> sadb_x_ipsecrequest_len ) ;\n }\n return 0 ;\n }"}
{"idx": 17395, "target": 0, "func": "static inline void take_option ( char * * to , char * from , int * first , int len ) {\n if ( ! * first ) {\n * * to = ',' ;\n * to += 1 ;\n }\n else * first = 0 ;\n memcpy ( * to , from , len ) ;\n * to += len ;\n }"}
{"idx": 17396, "target": 1, "func": "static int32_t u_printf_simple_percent_handler ( const u_printf_stream_handler * handler , void * context , ULocaleBundle * formatBundle , const u_printf_spec_info * info , const ufmt_args * args ) {\n static const UChar PERCENT [ ] = {\n UP_PERCENT }\n ;\n return handler -> write ( context , PERCENT , 1 ) ;\n }"}
{"idx": 17397, "target": 0, "func": "TSReturnCode TSHttpArgIndexNameLookup ( const char * name , int * arg_idx , const char * * description ) {\n sdk_assert ( sdk_sanity_check_null_ptr ( arg_idx ) == TS_SUCCESS ) ;\n size_t len = strlen ( name ) ;\n for ( int ix = 0 ;\n ix < next_argv_index ;\n ++ ix ) {\n if ( ( len == state_arg_table [ ix ] . name_len ) && ( 0 == strcmp ( name , state_arg_table [ ix ] . name ) ) ) {\n if ( description ) {\n * description = state_arg_table [ ix ] . description ;\n }\n * arg_idx = ix ;\n return TS_SUCCESS ;\n }\n }\n return TS_ERROR ;\n }"}
{"idx": 17398, "target": 0, "func": "int jbig2_page_add_result ( Jbig2Ctx * ctx , Jbig2Page * page , Jbig2Image * image , int x , int y , Jbig2ComposeOp op ) {\n if ( page -> image == NULL ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , - 1 , \"page info possibly missing, no image defined\" ) ;\n return 0 ;\n }\n if ( page -> striped ) {\n uint32_t new_height = y + image -> height + page -> end_row ;\n if ( page -> image -> height < new_height ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_DEBUG , - 1 , \"growing page buffer to %d rows \" \"to accomodate new stripe\" , new_height ) ;\n jbig2_image_resize ( ctx , page -> image , page -> image -> width , new_height ) ;\n }\n }\n jbig2_image_compose ( ctx , page -> image , image , x , y + page -> end_row , op ) ;\n return 0 ;\n }"}
{"idx": 17399, "target": 0, "func": "static int superblock_has_perm ( const struct cred * cred , struct super_block * sb , u32 perms , struct common_audit_data * ad ) {\n struct superblock_security_struct * sbsec ;\n u32 sid = cred_sid ( cred ) ;\n sbsec = sb -> s_security ;\n return avc_has_perm ( sid , sbsec -> sid , SECCLASS_FILESYSTEM , perms , ad ) ;\n }"}
{"idx": 17400, "target": 0, "func": "static vpx_codec_err_t encoder_init ( vpx_codec_ctx_t * ctx , vpx_codec_priv_enc_mr_cfg_t * data ) {\n vpx_codec_err_t res = VPX_CODEC_OK ;\n ( void ) data ;\n if ( ctx -> priv == NULL ) {\n vpx_codec_alg_priv_t * const priv = vpx_calloc ( 1 , sizeof ( * priv ) ) ;\n if ( priv == NULL ) return VPX_CODEC_MEM_ERROR ;\n ctx -> priv = ( vpx_codec_priv_t * ) priv ;\n ctx -> priv -> init_flags = ctx -> init_flags ;\n ctx -> priv -> enc . total_encoders = 1 ;\n if ( ctx -> config . enc ) {\n priv -> cfg = * ctx -> config . enc ;\n ctx -> config . enc = & priv -> cfg ;\n }\n priv -> extra_cfg = default_extra_cfg ;\n vp9_initialize_enc ( ) ;\n res = validate_config ( priv , & priv -> cfg , & priv -> extra_cfg ) ;\n if ( res == VPX_CODEC_OK ) {\n set_encoder_config ( & priv -> oxcf , & priv -> cfg , & priv -> extra_cfg ) ;\n # if CONFIG_VP9_HIGHBITDEPTH priv -> oxcf . use_highbitdepth = ( ctx -> init_flags & VPX_CODEC_USE_HIGHBITDEPTH ) ? 1 : 0 ;\n # endif priv -> cpi = vp9_create_compressor ( & priv -> oxcf ) ;\n if ( priv -> cpi == NULL ) res = VPX_CODEC_MEM_ERROR ;\n else priv -> cpi -> output_pkt_list = & priv -> pkt_list . head ;\n }\n }\n return res ;\n }"}
{"idx": 17401, "target": 0, "func": "void mime_field_value_insert_comma_val ( HdrHeap * heap , MIMEHdrImpl * mh , MIMEField * field , int idx , const char * new_piece_str , int new_piece_len ) {\n int len ;\n Str * cell , * prev ;\n StrList list ( false ) ;\n HttpCompat : : parse_tok_list ( & list , 0 , field -> m_ptr_value , field -> m_len_value , ',' ) ;\n if ( idx < 0 ) {\n idx = list . count ;\n }\n if ( idx > list . count ) {\n return ;\n }\n cell = list . new_cell ( new_piece_str , new_piece_len ) ;\n if ( idx == 0 ) {\n list . prepend ( cell ) ;\n }\n else {\n prev = list . get_idx ( idx - 1 ) ;\n list . add_after ( prev , cell ) ;\n }\n field -> m_ptr_value = mime_field_value_str_from_strlist ( heap , & len , & list ) ;\n field -> m_len_value = len ;\n field -> m_n_v_raw_printable = 0 ;\n if ( field -> is_live ( ) && field -> is_cooked ( ) ) {\n mh -> recompute_cooked_stuff ( field ) ;\n }\n }"}
{"idx": 17402, "target": 0, "func": "static void qbus_list_bus ( DeviceState * dev , char * dest , int len ) {\n BusState * child ;\n const char * sep = \" \" ;\n int pos = 0 ;\n pos += snprintf ( dest + pos , len - pos , \"child busses at \\\"%s\\\":\" , dev -> id ? dev -> id : dev -> info -> name ) ;\n QLIST_FOREACH ( child , & dev -> child_bus , sibling ) {\n pos += snprintf ( dest + pos , len - pos , \"%s\\\"%s\\\"\" , sep , child -> name ) ;\n sep = \", \" ;\n }\n }"}
{"idx": 17403, "target": 0, "func": "extern int name ( int , locale_t ) __THROW __exctype_l ( isalnum_l ) ;\n __exctype_l ( isalpha_l )"}
{"idx": 17404, "target": 0, "func": "sig_handler handle_sigint ( int sig ) {\n char kill_buffer [ 40 ] ;\n MYSQL * kill_mysql = NULL ;\n if ( ! executing_query || ( interrupted_query == 2 ) ) {\n tee_fprintf ( stdout , \"Ctrl-C -- exit!\\n\" ) ;\n goto err ;\n }\n kill_mysql = mysql_init ( kill_mysql ) ;\n if ( ! mysql_real_connect ( kill_mysql , current_host , current_user , opt_password , \"\" , opt_mysql_port , opt_mysql_unix_port , 0 ) ) {\n tee_fprintf ( stdout , \"Ctrl-C -- sorry, cannot connect to server to kill query, giving up ...\\n\" ) ;\n goto err ;\n }\n interrupted_query ++ ;\n if ( ( interrupted_query == 1 ) && ( mysql_get_server_version ( & mysql ) < 50000 ) ) interrupted_query = 2 ;\n sprintf ( kill_buffer , \"KILL %s%lu\" , ( interrupted_query == 1 ) ? \"QUERY \" : \"\" , mysql_thread_id ( & mysql ) ) ;\n if ( verbose ) tee_fprintf ( stdout , \"Ctrl-C -- sending \\\"%s\\\" to server ...\\n\" , kill_buffer ) ;\n mysql_real_query ( kill_mysql , kill_buffer , ( uint ) strlen ( kill_buffer ) ) ;\n mysql_close ( kill_mysql ) ;\n tee_fprintf ( stdout , \"Ctrl-C -- query killed. Continuing normally.\\n\" ) ;\n if ( in_com_source ) aborted = 1 ;\n return ;\n err : # ifdef _WIN32 mysql_thread_end ( ) ;\n # else mysql_end ( sig ) ;\n # endif }"}
{"idx": 17405, "target": 0, "func": "SPL_METHOD ( SplFileInfo , getFileInfo ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n zend_class_entry * ce = intern -> info_class ;\n zend_error_handling error_handling ;\n zend_replace_error_handling ( EH_THROW , spl_ce_UnexpectedValueException , & error_handling TSRMLS_CC ) ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"|C\" , & ce ) == SUCCESS ) {\n spl_filesystem_object_create_type ( ht , intern , SPL_FS_INFO , ce , return_value TSRMLS_CC ) ;\n }\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n }"}
{"idx": 17406, "target": 0, "func": "static void rm_read_metadata ( AVFormatContext * s , AVIOContext * pb , int wide ) {\n char buf [ 1024 ] ;\n int i ;\n for ( i = 0 ;\n i < FF_ARRAY_ELEMS ( ff_rm_metadata ) ;\n i ++ ) {\n int len = wide ? avio_rb16 ( pb ) : avio_r8 ( pb ) ;\n get_strl ( pb , buf , sizeof ( buf ) , len ) ;\n av_dict_set ( & s -> metadata , ff_rm_metadata [ i ] , buf , 0 ) ;\n }\n }"}
{"idx": 17407, "target": 0, "func": "static bfd_boolean srec_write_section ( bfd * abfd , tdata_type * tdata , srec_data_list_type * list ) {\n unsigned int octets_written = 0 ;\n bfd_byte * location = list -> data ;\n if ( Chunk == 0 ) Chunk = 1 ;\n else if ( Chunk > MAXCHUNK - tdata -> type - 2 ) Chunk = MAXCHUNK - tdata -> type - 2 ;\n while ( octets_written < list -> size ) {\n bfd_vma address ;\n unsigned int octets_this_chunk = list -> size - octets_written ;\n if ( octets_this_chunk > Chunk ) octets_this_chunk = Chunk ;\n address = list -> where + octets_written / bfd_octets_per_byte ( abfd ) ;\n if ( ! srec_write_record ( abfd , tdata -> type , address , location , location + octets_this_chunk ) ) return FALSE ;\n octets_written += octets_this_chunk ;\n location += octets_this_chunk ;\n }\n return TRUE ;\n }"}
{"idx": 17408, "target": 0, "func": "void vp9_idct4x4_add ( const tran_low_t * input , uint8_t * dest , int stride , int eob ) {\n if ( eob > 1 ) vp9_idct4x4_16_add ( input , dest , stride ) ;\n else vp9_idct4x4_1_add ( input , dest , stride ) ;\n }"}
{"idx": 17409, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n int h , w , ret ;\n AVFrame * pic = data ;\n const uint8_t * psrc = avpkt -> data ;\n uint16_t * y , * u , * v ;\n int aligned_width = ( ( avctx -> width + 47 ) / 48 ) * 48 ;\n int stride = aligned_width * 8 / 3 ;\n if ( avpkt -> size < stride * avctx -> height ) {\n av_log ( avctx , AV_LOG_ERROR , \"packet too small\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ( ret = ff_get_buffer ( avctx , pic , 0 ) ) < 0 ) return ret ;\n y = ( uint16_t * ) pic -> data [ 0 ] ;\n u = ( uint16_t * ) pic -> data [ 1 ] ;\n v = ( uint16_t * ) pic -> data [ 2 ] ;\n pic -> pict_type = AV_PICTURE_TYPE_I ;\n pic -> key_frame = 1 ;\n # define READ_PIXELS ( a , b , c ) do {\n val = av_le2ne32 ( * src ++ ) ;\n * a ++ = val & 0x3FF ;\n * b ++ = ( val >> 10 ) & 0x3FF ;\n * c ++ = ( val >> 20 ) & 0x3FF ;\n }\n while ( 0 ) for ( h = 0 ;\n h < avctx -> height ;\n h ++ ) {\n const uint32_t * src = ( const uint32_t * ) psrc ;\n uint32_t val ;\n for ( w = 0 ;\n w < avctx -> width - 5 ;\n w += 6 ) {\n READ_PIXELS ( u , y , v ) ;\n READ_PIXELS ( y , u , y ) ;\n READ_PIXELS ( v , y , u ) ;\n READ_PIXELS ( y , v , y ) ;\n }\n if ( w < avctx -> width - 1 ) {\n READ_PIXELS ( u , y , v ) ;\n val = av_le2ne32 ( * src ++ ) ;\n * y ++ = val & 0x3FF ;\n }\n if ( w < avctx -> width - 3 ) {\n * u ++ = ( val >> 10 ) & 0x3FF ;\n * y ++ = ( val >> 20 ) & 0x3FF ;\n val = av_le2ne32 ( * src ++ ) ;\n * v ++ = val & 0x3FF ;\n * y ++ = ( val >> 10 ) & 0x3FF ;\n }\n psrc += stride ;\n y += pic -> linesize [ 0 ] / 2 - avctx -> width ;\n u += pic -> linesize [ 1 ] / 2 - avctx -> width / 2 ;\n v += pic -> linesize [ 2 ] / 2 - avctx -> width / 2 ;\n }\n * got_frame = 1 ;\n return avpkt -> size ;\n }"}
{"idx": 17410, "target": 0, "func": "static void dissect_rsvp_record_route ( proto_item * ti , packet_info * pinfo , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class , int type ) {\n proto_item_set_text ( ti , \"RECORD ROUTE: \" ) ;\n switch ( type ) {\n case 1 : proto_tree_add_uint ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type ) ;\n dissect_rsvp_ero_rro_subobjects ( ti , pinfo , rsvp_object_tree , tvb , offset + 4 , obj_length , rsvp_class ) ;\n break ;\n default : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"Unknown (%u)\" , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_record_route_data , tvb , offset + 4 , obj_length - 4 , ENC_NA ) ;\n break ;\n }\n }"}
{"idx": 17411, "target": 0, "func": "static int bind_socket ( const char * address , u_short port , int reuse ) {\n int fd ;\n struct addrinfo * aitop = NULL ;\n if ( address == NULL && port == 0 ) return bind_socket_ai ( NULL , 0 ) ;\n aitop = make_addrinfo ( address , port ) ;\n if ( aitop == NULL ) return ( - 1 ) ;\n fd = bind_socket_ai ( aitop , reuse ) ;\n # ifdef HAVE_GETADDRINFO freeaddrinfo ( aitop ) ;\n # else fake_freeaddrinfo ( aitop ) ;\n # endif return ( fd ) ;\n }"}
{"idx": 17412, "target": 0, "func": "IN_PROC_BROWSER_TEST_P ( BrowserCloseManagerBrowserTest , TestCloseTabDuringShutdown ) {\n ASSERT_NO_FATAL_FAILURE ( ui_test_utils : : NavigateToURL ( browsers_ [ 0 ] , embedded_test_server ( ) -> GetURL ( \"/beforeunload.html\" ) ) ) ;\n PrepareForDialog ( browsers_ [ 0 ] ) ;\n RepeatedNotificationObserver cancel_observer ( chrome : : NOTIFICATION_BROWSER_CLOSE_CANCELLED , 1 ) ;\n chrome : : CloseAllBrowsersAndQuit ( ) ;\n browsers_ . push_back ( CreateBrowser ( browser ( ) -> profile ( ) ) ) ;\n ASSERT_NO_FATAL_FAILURE ( ui_test_utils : : NavigateToURL ( browsers_ [ 1 ] , embedded_test_server ( ) -> GetURL ( \"/beforeunload.html\" ) ) ) ;\n PrepareForDialog ( browsers_ [ 1 ] ) ;\n browsers_ [ 1 ] -> tab_strip_model ( ) -> CloseAllTabs ( ) ;\n ASSERT_NO_FATAL_FAILURE ( CancelClose ( ) ) ;\n ASSERT_NO_FATAL_FAILURE ( CancelClose ( ) ) ;\n cancel_observer . Wait ( ) ;\n EXPECT_FALSE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_EQ ( 1 , browsers_ [ 0 ] -> tab_strip_model ( ) -> count ( ) ) ;\n EXPECT_EQ ( 1 , browsers_ [ 1 ] -> tab_strip_model ( ) -> count ( ) ) ;\n RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , 2 ) ;\n chrome : : CloseAllBrowsersAndQuit ( ) ;\n browsers_ [ 1 ] -> tab_strip_model ( ) -> CloseAllTabs ( ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n ASSERT_NO_FATAL_FAILURE ( AcceptClose ( ) ) ;\n close_observer . Wait ( ) ;\n EXPECT_TRUE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_TRUE ( BrowserList : : GetInstance ( ) -> empty ( ) ) ;\n }"}
{"idx": 17413, "target": 0, "func": "int dtls1_new ( SSL * s ) {\n DTLS1_STATE * d1 ;\n if ( ! DTLS_RECORD_LAYER_new ( & s -> rlayer ) ) {\n return 0 ;\n }\n if ( ! ssl3_new ( s ) ) return ( 0 ) ;\n if ( ( d1 = OPENSSL_zalloc ( sizeof ( * d1 ) ) ) == NULL ) {\n ssl3_free ( s ) ;\n return ( 0 ) ;\n }\n d1 -> buffered_messages = pqueue_new ( ) ;\n d1 -> sent_messages = pqueue_new ( ) ;\n if ( s -> server ) {\n d1 -> cookie_len = sizeof ( s -> d1 -> cookie ) ;\n }\n d1 -> link_mtu = 0 ;\n d1 -> mtu = 0 ;\n if ( d1 -> buffered_messages == NULL || d1 -> sent_messages == NULL ) {\n pqueue_free ( d1 -> buffered_messages ) ;\n pqueue_free ( d1 -> sent_messages ) ;\n OPENSSL_free ( d1 ) ;\n ssl3_free ( s ) ;\n return ( 0 ) ;\n }\n s -> d1 = d1 ;\n s -> method -> ssl_clear ( s ) ;\n return ( 1 ) ;\n }"}
{"idx": 17414, "target": 0, "func": "static ossl_inline type * lh_ ## type ## _insert ( LHASH_OF ( type ) * lh , type * d ) {\n return ( type * ) OPENSSL_LH_insert ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline type * lh_ ## type ## _delete ( LHASH_OF ( type ) * lh , const type * d ) {\n return ( type * ) OPENSSL_LH_delete ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline type * lh_ ## type ## _retrieve ( LHASH_OF ( type ) * lh , const type * d ) {\n return ( type * ) OPENSSL_LH_retrieve ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline int lh_ ## type ## _error ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_error ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _num_items ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_num_items ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _node_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _node_usage_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_usage_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING )"}
{"idx": 17415, "target": 0, "func": "static int set_and_cost_bmi_mvs ( VP9_COMP * cpi , MACROBLOCKD * xd , int i , PREDICTION_MODE mode , int_mv this_mv [ 2 ] , int_mv frame_mv [ MB_MODE_COUNT ] [ MAX_REF_FRAMES ] , int_mv seg_mvs [ MAX_REF_FRAMES ] , int_mv * best_ref_mv [ 2 ] , const int * mvjcost , int * mvcost [ 2 ] ) {\n MODE_INFO * const mic = xd -> mi [ 0 ] . src_mi ;\n const MB_MODE_INFO * const mbmi = & mic -> mbmi ;\n int thismvcost = 0 ;\n int idx , idy ;\n const int num_4x4_blocks_wide = num_4x4_blocks_wide_lookup [ mbmi -> sb_type ] ;\n const int num_4x4_blocks_high = num_4x4_blocks_high_lookup [ mbmi -> sb_type ] ;\n const int is_compound = has_second_ref ( mbmi ) ;\n switch ( mode ) {\n case NEWMV : this_mv [ 0 ] . as_int = seg_mvs [ mbmi -> ref_frame [ 0 ] ] . as_int ;\n thismvcost += vp9_mv_bit_cost ( & this_mv [ 0 ] . as_mv , & best_ref_mv [ 0 ] -> as_mv , mvjcost , mvcost , MV_COST_WEIGHT_SUB ) ;\n if ( is_compound ) {\n this_mv [ 1 ] . as_int = seg_mvs [ mbmi -> ref_frame [ 1 ] ] . as_int ;\n thismvcost += vp9_mv_bit_cost ( & this_mv [ 1 ] . as_mv , & best_ref_mv [ 1 ] -> as_mv , mvjcost , mvcost , MV_COST_WEIGHT_SUB ) ;\n }\n break ;\n case NEARMV : case NEARESTMV : this_mv [ 0 ] . as_int = frame_mv [ mode ] [ mbmi -> ref_frame [ 0 ] ] . as_int ;\n if ( is_compound ) this_mv [ 1 ] . as_int = frame_mv [ mode ] [ mbmi -> ref_frame [ 1 ] ] . as_int ;\n break ;\n case ZEROMV : this_mv [ 0 ] . as_int = 0 ;\n if ( is_compound ) this_mv [ 1 ] . as_int = 0 ;\n break ;\n default : break ;\n }\n mic -> bmi [ i ] . as_mv [ 0 ] . as_int = this_mv [ 0 ] . as_int ;\n if ( is_compound ) mic -> bmi [ i ] . as_mv [ 1 ] . as_int = this_mv [ 1 ] . as_int ;\n mic -> bmi [ i ] . as_mode = mode ;\n for ( idy = 0 ;\n idy < num_4x4_blocks_high ;\n ++ idy ) for ( idx = 0 ;\n idx < num_4x4_blocks_wide ;\n ++ idx ) vpx_memcpy ( & mic -> bmi [ i + idy * 2 + idx ] , & mic -> bmi [ i ] , sizeof ( mic -> bmi [ i ] ) ) ;\n return cost_mv_ref ( cpi , mode , mbmi -> mode_context [ mbmi -> ref_frame [ 0 ] ] ) + thismvcost ;\n }"}
{"idx": 17416, "target": 0, "func": "void replace_dynstr_append_uint ( DYNAMIC_STRING * ds , uint val ) {\n char buff [ 22 ] ;\n char * end = longlong10_to_str ( val , buff , 10 ) ;\n replace_dynstr_append_mem ( ds , buff , end - buff ) ;\n }"}
{"idx": 17417, "target": 0, "func": "static int dissect_h245_T_extendedAlphanumeric ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_extendedAlphanumeric , T_extendedAlphanumeric_sequence ) ;\n return offset ;\n }"}
{"idx": 17418, "target": 0, "func": "static void cmd_window_stick ( const char * data ) {\n MAIN_WINDOW_REC * mainwin ;\n WINDOW_REC * win ;\n mainwin = active_mainwin ;\n win = active_mainwin -> active ;\n if ( is_numeric ( data , ' ' ) ) {\n win = window_find_refnum ( atoi ( data ) ) ;\n if ( win == NULL ) {\n printformat_window ( active_win , MSGLEVEL_CLIENTERROR , TXT_REFNUM_NOT_FOUND , data ) ;\n return ;\n }\n while ( * data != ' ' && * data != '\\0' ) data ++ ;\n while ( * data == ' ' ) data ++ ;\n }\n if ( g_ascii_strncasecmp ( data , \"OF\" , 2 ) == 0 || i_toupper ( * data ) == 'N' ) {\n if ( ! WINDOW_GUI ( win ) -> sticky ) {\n printformat_window ( win , MSGLEVEL_CLIENTERROR , TXT_WINDOW_NOT_STICKY ) ;\n }\n else {\n gui_window_set_unsticky ( win ) ;\n printformat_window ( win , MSGLEVEL_CLIENTNOTICE , TXT_WINDOW_UNSET_STICKY ) ;\n }\n }\n else {\n window_reparent ( win , mainwin ) ;\n gui_window_set_sticky ( win ) ;\n printformat_window ( active_win , MSGLEVEL_CLIENTNOTICE , TXT_WINDOW_SET_STICKY ) ;\n }\n }"}
{"idx": 17419, "target": 0, "func": "void StartRestoreBlob ( ArchiveHandle * AH , Oid oid , bool drop ) {\n bool old_blob_style = ( AH -> version < K_VERS_1_12 ) ;\n Oid loOid ;\n AH -> blobCount ++ ;\n AH -> lo_buf_used = 0 ;\n ahlog ( AH , 1 , \"restoring large object with OID %u\\n\" , oid ) ;\n if ( old_blob_style && drop ) DropBlobIfExists ( AH , oid ) ;\n if ( AH -> connection ) {\n if ( old_blob_style ) {\n loOid = lo_create ( AH -> connection , oid ) ;\n if ( loOid == 0 || loOid != oid ) exit_horribly ( modulename , \"could not create large object %u: %s\" , oid , PQerrorMessage ( AH -> connection ) ) ;\n }\n AH -> loFd = lo_open ( AH -> connection , oid , INV_WRITE ) ;\n if ( AH -> loFd == - 1 ) exit_horribly ( modulename , \"could not open large object %u: %s\" , oid , PQerrorMessage ( AH -> connection ) ) ;\n }\n else {\n if ( old_blob_style ) ahprintf ( AH , \"SELECT pg_catalog.lo_open(pg_catalog.lo_create('%u'), %d);\n\\n\" , oid , INV_WRITE ) ;\n else ahprintf ( AH , \"SELECT pg_catalog.lo_open('%u', %d);\n\\n\" , oid , INV_WRITE ) ;\n }\n AH -> writingBlob = 1 ;\n }"}
{"idx": 17420, "target": 0, "func": "static ASN1_OBJECT * obj_to_asn1obj ( VALUE obj ) {\n ASN1_OBJECT * a1obj ;\n StringValueCStr ( obj ) ;\n a1obj = OBJ_txt2obj ( RSTRING_PTR ( obj ) , 0 ) ;\n if ( ! a1obj ) a1obj = OBJ_txt2obj ( RSTRING_PTR ( obj ) , 1 ) ;\n if ( ! a1obj ) ossl_raise ( eASN1Error , \"invalid OBJECT ID %\" PRIsVALUE , obj ) ;\n return a1obj ;\n }"}
{"idx": 17421, "target": 0, "func": "static void CONCAT ( send_hextile_tile_ , NAME ) ( VncState * vs , int x , int y , int w , int h , void * last_bg_ , void * last_fg_ , int * has_bg , int * has_fg ) {\n uint8_t * row = ( ds_get_data ( vs -> ds ) + y * ds_get_linesize ( vs -> ds ) + x * ds_get_bytes_per_pixel ( vs -> ds ) ) ;\n pixel_t * irow = ( pixel_t * ) row ;\n int j , i ;\n pixel_t * last_bg = ( pixel_t * ) last_bg_ ;\n pixel_t * last_fg = ( pixel_t * ) last_fg_ ;\n pixel_t bg = 0 ;\n pixel_t fg = 0 ;\n int n_colors = 0 ;\n int bg_count = 0 ;\n int fg_count = 0 ;\n int flags = 0 ;\n uint8_t data [ ( vs -> clientds . pf . bytes_per_pixel + 2 ) * 16 * 16 ] ;\n int n_data = 0 ;\n int n_subtiles = 0 ;\n for ( j = 0 ;\n j < h ;\n j ++ ) {\n for ( i = 0 ;\n i < w ;\n i ++ ) {\n switch ( n_colors ) {\n case 0 : bg = irow [ i ] ;\n n_colors = 1 ;\n break ;\n case 1 : if ( irow [ i ] != bg ) {\n fg = irow [ i ] ;\n n_colors = 2 ;\n }\n break ;\n case 2 : if ( irow [ i ] != bg && irow [ i ] != fg ) {\n n_colors = 3 ;\n }\n else {\n if ( irow [ i ] == bg ) bg_count ++ ;\n else if ( irow [ i ] == fg ) fg_count ++ ;\n }\n break ;\n default : break ;\n }\n }\n if ( n_colors > 2 ) break ;\n irow += ds_get_linesize ( vs -> ds ) / sizeof ( pixel_t ) ;\n }\n if ( n_colors > 1 && fg_count > bg_count ) {\n pixel_t tmp = fg ;\n fg = bg ;\n bg = tmp ;\n }\n if ( ! * has_bg || * last_bg != bg ) {\n flags |= 0x02 ;\n * has_bg = 1 ;\n * last_bg = bg ;\n }\n if ( ! * has_fg || * last_fg != fg ) {\n flags |= 0x04 ;\n * has_fg = 1 ;\n * last_fg = fg ;\n }\n switch ( n_colors ) {\n case 1 : n_data = 0 ;\n break ;\n case 2 : flags |= 0x08 ;\n irow = ( pixel_t * ) row ;\n for ( j = 0 ;\n j < h ;\n j ++ ) {\n int min_x = - 1 ;\n for ( i = 0 ;\n i < w ;\n i ++ ) {\n if ( irow [ i ] == fg ) {\n if ( min_x == - 1 ) min_x = i ;\n }\n else if ( min_x != - 1 ) {\n hextile_enc_cord ( data + n_data , min_x , j , i - min_x , 1 ) ;\n n_data += 2 ;\n n_subtiles ++ ;\n min_x = - 1 ;\n }\n }\n if ( min_x != - 1 ) {\n hextile_enc_cord ( data + n_data , min_x , j , i - min_x , 1 ) ;\n n_data += 2 ;\n n_subtiles ++ ;\n }\n irow += ds_get_linesize ( vs -> ds ) / sizeof ( pixel_t ) ;\n }\n break ;\n case 3 : flags |= 0x18 ;\n irow = ( pixel_t * ) row ;\n if ( ! * has_bg || * last_bg != bg ) flags |= 0x02 ;\n for ( j = 0 ;\n j < h ;\n j ++ ) {\n int has_color = 0 ;\n int min_x = - 1 ;\n pixel_t color = 0 ;\n for ( i = 0 ;\n i < w ;\n i ++ ) {\n if ( ! has_color ) {\n if ( irow [ i ] == bg ) continue ;\n color = irow [ i ] ;\n min_x = i ;\n has_color = 1 ;\n }\n else if ( irow [ i ] != color ) {\n has_color = 0 ;\n # ifdef GENERIC vnc_convert_pixel ( vs , data + n_data , color ) ;\n n_data += vs -> clientds . pf . bytes_per_pixel ;\n # else memcpy ( data + n_data , & color , sizeof ( color ) ) ;\n n_data += sizeof ( pixel_t ) ;\n # endif hextile_enc_cord ( data + n_data , min_x , j , i - min_x , 1 ) ;\n n_data += 2 ;\n n_subtiles ++ ;\n min_x = - 1 ;\n if ( irow [ i ] != bg ) {\n color = irow [ i ] ;\n min_x = i ;\n has_color = 1 ;\n }\n }\n }\n if ( has_color ) {\n # ifdef GENERIC vnc_convert_pixel ( vs , data + n_data , color ) ;\n n_data += vs -> clientds . pf . bytes_per_pixel ;\n # else memcpy ( data + n_data , & color , sizeof ( color ) ) ;\n n_data += sizeof ( pixel_t ) ;\n # endif hextile_enc_cord ( data + n_data , min_x , j , i - min_x , 1 ) ;\n n_data += 2 ;\n n_subtiles ++ ;\n }\n irow += ds_get_linesize ( vs -> ds ) / sizeof ( pixel_t ) ;\n }\n * has_fg = 0 ;\n if ( n_data > ( w * h * sizeof ( pixel_t ) ) ) {\n n_colors = 4 ;\n flags = 0x01 ;\n * has_bg = 0 ;\n }\n default : break ;\n }\n if ( n_colors > 3 ) {\n flags = 0x01 ;\n * has_fg = 0 ;\n * has_bg = 0 ;\n n_colors = 4 ;\n }\n vnc_write_u8 ( vs , flags ) ;\n if ( n_colors < 4 ) {\n if ( flags & 0x02 ) vs -> write_pixels ( vs , last_bg , sizeof ( pixel_t ) ) ;\n if ( flags & 0x04 ) vs -> write_pixels ( vs , last_fg , sizeof ( pixel_t ) ) ;\n if ( n_subtiles ) {\n vnc_write_u8 ( vs , n_subtiles ) ;\n vnc_write ( vs , data , n_data ) ;\n }\n }\n else {\n for ( j = 0 ;\n j < h ;\n j ++ ) {\n vs -> write_pixels ( vs , row , w * ds_get_bytes_per_pixel ( vs -> ds ) ) ;\n row += ds_get_linesize ( vs -> ds ) ;\n }\n }\n }"}
{"idx": 17422, "target": 0, "func": "VirtIOS390Bus * s390_virtio_bus_init ( ram_addr_t * ram_size ) {\n VirtIOS390Bus * bus ;\n BusState * _bus ;\n DeviceState * dev ;\n dev = qdev_create ( NULL , \"s390-virtio-bridge\" ) ;\n qdev_init_nofail ( dev ) ;\n _bus = qbus_create ( & s390_virtio_bus_info , dev , \"s390-virtio\" ) ;\n bus = DO_UPCAST ( VirtIOS390Bus , bus , _bus ) ;\n bus -> dev_page = * ram_size ;\n bus -> dev_offs = bus -> dev_page ;\n bus -> next_ring = bus -> dev_page + TARGET_PAGE_SIZE ;\n * ram_size += S390_DEVICE_PAGES * TARGET_PAGE_SIZE ;\n return bus ;\n }"}
{"idx": 17423, "target": 0, "func": "proto_item * parseDouble ( proto_tree * tree , tvbuff_t * tvb , packet_info * pinfo _U_ , gint * pOffset , int hfIndex ) {\n proto_item * item = proto_tree_add_item ( tree , hfIndex , tvb , * pOffset , ( int ) sizeof ( gdouble ) , ENC_LITTLE_ENDIAN ) ;\n * pOffset += ( int ) sizeof ( gdouble ) ;\n return item ;\n }"}
{"idx": 17424, "target": 0, "func": "static void handle_bap ( netdissect_options * ndo _U_ , const u_char * p _U_ , int length _U_ ) {\n }"}
{"idx": 17425, "target": 1, "func": "static void sig_message_public ( SERVER_REC * server , const char * msg , const char * nick , const char * address , const char * target ) {\n CHANNEL_REC * channel ;\n int own ;\n channel = channel_find ( server , target ) ;\n if ( channel != NULL ) {\n own = nick_match_msg ( channel , msg , server -> nick ) ;\n CHANNEL_LAST_MSG_ADD ( channel , nick , own ) ;\n }\n }"}
{"idx": 17426, "target": 0, "func": "static char * xmlrpc_method ( char * buffer ) {\n char * data , * p , * name ;\n int namelen ;\n data = strstr ( buffer , \"<methodName>\" ) ;\n if ( data ) {\n data += 12 ;\n p = strchr ( data , '<' ) ;\n if ( p == NULL ) return NULL ;\n namelen = p - data ;\n name = smalloc ( namelen + 1 ) ;\n memcpy ( name , data , namelen ) ;\n name [ namelen ] = '\\0' ;\n return name ;\n }\n return NULL ;\n }"}
{"idx": 17427, "target": 0, "func": "static void cmd_window_show ( const char * data ) {\n _cmd_window_show_opt ( data , FALSE ) ;\n }"}
{"idx": 17428, "target": 0, "func": "static guint32 fpdu_total_length ( struct tcpinfo * tcpinfo ) {\n guint32 size = 0 ;\n if ( tcpinfo -> seq < tcpinfo -> nxtseq ) {\n size = tcpinfo -> nxtseq - tcpinfo -> seq ;\n }\n if ( tcpinfo -> seq >= tcpinfo -> nxtseq ) {\n size = tcpinfo -> nxtseq + ( TCP_MAX_SEQ - tcpinfo -> seq ) ;\n }\n return size ;\n }"}
{"idx": 17429, "target": 0, "func": "TSAction TSHttpSchedule ( TSCont contp , TSHttpTxn txnp , ink_hrtime timeout ) {\n sdk_assert ( sdk_sanity_check_iocore_structure ( contp ) == TS_SUCCESS ) ;\n FORCE_PLUGIN_SCOPED_MUTEX ( contp ) ;\n INKContInternal * i = ( INKContInternal * ) contp ;\n if ( ink_atomic_increment ( ( int * ) & i -> m_event_count , 1 ) < 0 ) {\n ink_assert ( ! \"not reached\" ) ;\n }\n TSAction action ;\n Continuation * cont = ( Continuation * ) contp ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n sm -> set_http_schedule ( cont ) ;\n if ( timeout == 0 ) {\n action = reinterpret_cast < TSAction > ( eventProcessor . schedule_imm ( sm , ET_NET ) ) ;\n }\n else {\n action = reinterpret_cast < TSAction > ( eventProcessor . schedule_in ( sm , HRTIME_MSECONDS ( timeout ) , ET_NET ) ) ;\n }\n action = ( TSAction ) ( ( uintptr_t ) action | 0x1 ) ;\n return action ;\n }"}
{"idx": 17430, "target": 0, "func": "static uint32_t openpic_iack ( OpenPICState * opp , IRQDest * dst , int cpu ) {\n IRQSource * src ;\n int retval , irq ;\n DPRINTF ( \"Lower OpenPIC INT output\\n\" ) ;\n qemu_irq_lower ( dst -> irqs [ OPENPIC_OUTPUT_INT ] ) ;\n irq = IRQ_get_next ( opp , & dst -> raised ) ;\n DPRINTF ( \"IACK: irq=%d\\n\" , irq ) ;\n if ( irq == - 1 ) {\n return opp -> spve ;\n }\n src = & opp -> src [ irq ] ;\n if ( ! ( src -> ivpr & IVPR_ACTIVITY_MASK ) || ! ( IVPR_PRIORITY ( src -> ivpr ) > dst -> ctpr ) ) {\n fprintf ( stderr , \"%s: bad raised IRQ %d ctpr %d ivpr 0x%08x\\n\" , __func__ , irq , dst -> ctpr , src -> ivpr ) ;\n openpic_update_irq ( opp , irq ) ;\n retval = opp -> spve ;\n }\n else {\n IRQ_setbit ( & dst -> servicing , irq ) ;\n retval = IVPR_VECTOR ( opp , src -> ivpr ) ;\n }\n if ( ! src -> level ) {\n src -> ivpr &= ~ IVPR_ACTIVITY_MASK ;\n src -> pending = 0 ;\n IRQ_resetbit ( & dst -> raised , irq ) ;\n }\n if ( ( irq >= opp -> irq_ipi0 ) && ( irq < ( opp -> irq_ipi0 + OPENPIC_MAX_IPI ) ) ) {\n src -> destmask &= ~ ( 1 << cpu ) ;\n if ( src -> destmask && ! src -> level ) {\n openpic_set_irq ( opp , irq , 1 ) ;\n openpic_set_irq ( opp , irq , 0 ) ;\n src -> ivpr |= IVPR_ACTIVITY_MASK ;\n }\n }\n return retval ;\n }"}
{"idx": 17431, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( UnloadTest , BrowserListCloseBeforeUnloadOK ) {\n NavigateToDataURL ( BEFORE_UNLOAD_HTML , \"beforeunload\" ) ;\n content : : WindowedNotificationObserver window_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , content : : NotificationService : : AllSources ( ) ) ;\n UnloadResults unload_results ;\n BrowserList : : CloseAllBrowsersWithProfile ( browser ( ) -> profile ( ) , base : : Bind ( & UnloadResults : : AddSuccess , base : : Unretained ( & unload_results ) ) , base : : Bind ( & UnloadResults : : AddAbort , base : : Unretained ( & unload_results ) ) , false ) ;\n ClickModalDialogButton ( true ) ;\n window_observer . Wait ( ) ;\n EXPECT_EQ ( 1 , unload_results . get_successes ( ) ) ;\n EXPECT_EQ ( 0 , unload_results . get_aborts ( ) ) ;\n }"}
{"idx": 17432, "target": 0, "func": "static cmsBool ReadEmbeddedText ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsMLU * * mlu , cmsUInt32Number SizeOfTag ) {\n cmsTagTypeSignature BaseType ;\n cmsUInt32Number nItems ;\n BaseType = _cmsReadTypeBase ( io ) ;\n switch ( BaseType ) {\n case cmsSigTextType : if ( * mlu ) cmsMLUfree ( * mlu ) ;\n * mlu = ( cmsMLU * ) Type_Text_Read ( self , io , & nItems , SizeOfTag ) ;\n return ( * mlu != NULL ) ;\n case cmsSigTextDescriptionType : if ( * mlu ) cmsMLUfree ( * mlu ) ;\n * mlu = ( cmsMLU * ) Type_Text_Description_Read ( self , io , & nItems , SizeOfTag ) ;\n return ( * mlu != NULL ) ;\n case cmsSigMultiLocalizedUnicodeType : if ( * mlu ) cmsMLUfree ( * mlu ) ;\n * mlu = ( cmsMLU * ) Type_MLU_Read ( self , io , & nItems , SizeOfTag ) ;\n return ( * mlu != NULL ) ;\n default : return FALSE ;\n }\n }"}
{"idx": 17433, "target": 0, "func": "static int file_read ( jas_stream_obj_t * obj , char * buf , int cnt ) {\n jas_stream_fileobj_t * fileobj = JAS_CAST ( jas_stream_fileobj_t * , obj ) ;\n return read ( fileobj -> fd , buf , cnt ) ;\n }"}
{"idx": 17434, "target": 0, "func": "static void lance_init ( NICInfo * nd , hwaddr leaddr , void * dma_opaque , qemu_irq irq ) {\n DeviceState * dev ;\n SysBusDevice * s ;\n qemu_irq reset ;\n qemu_check_nic_model ( & nd_table [ 0 ] , \"lance\" ) ;\n dev = qdev_create ( NULL , \"lance\" ) ;\n qdev_set_nic_properties ( dev , nd ) ;\n qdev_prop_set_ptr ( dev , \"dma\" , dma_opaque ) ;\n qdev_init_nofail ( dev ) ;\n s = SYS_BUS_DEVICE ( dev ) ;\n sysbus_mmio_map ( s , 0 , leaddr ) ;\n sysbus_connect_irq ( s , 0 , irq ) ;\n reset = qdev_get_gpio_in ( dev , 0 ) ;\n qdev_connect_gpio_out ( dma_opaque , 0 , reset ) ;\n }"}
{"idx": 17435, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FastUnloadTest , BrowserListForceCloseNoUnloadListenersWithFastUnload ) {\n NavigateToDataURL ( NOLISTENERS_HTML , \"nolisteners\" ) ;\n content : : WindowedNotificationObserver window_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , content : : NotificationService : : AllSources ( ) ) ;\n UnloadResults unload_results ;\n BrowserList : : CloseAllBrowsersWithProfile ( browser ( ) -> profile ( ) , base : : Bind ( & UnloadResults : : AddSuccess , base : : Unretained ( & unload_results ) ) , base : : Bind ( & UnloadResults : : AddAbort , base : : Unretained ( & unload_results ) ) , true ) ;\n window_observer . Wait ( ) ;\n EXPECT_EQ ( 1 , unload_results . get_successes ( ) ) ;\n EXPECT_EQ ( 0 , unload_results . get_aborts ( ) ) ;\n }"}
{"idx": 17436, "target": 0, "func": "static bool _sched_backfill ( void ) {\n static int backfill = - 1 ;\n if ( backfill == - 1 ) {\n char * sched_type = slurm_get_sched_type ( ) ;\n if ( ! xstrcmp ( sched_type , \"sched/backfill\" ) ) backfill = 1 ;\n else backfill = 0 ;\n xfree ( sched_type ) ;\n }\n if ( backfill ) return true ;\n return false ;\n }"}
{"idx": 17437, "target": 0, "func": "static guint16 de_clg_party_sub_addr ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ ) {\n gchar * extr_addr ;\n de_sub_addr ( tvb , tree , pinfo , offset , len , & extr_addr ) ;\n if ( extr_addr && add_string ) g_snprintf ( add_string , string_len , \" - (%s)\" , extr_addr ) ;\n return ( len ) ;\n }"}
{"idx": 17438, "target": 0, "func": "int xsltSecurityForbid ( xsltSecurityPrefsPtr sec ATTRIBUTE_UNUSED , xsltTransformContextPtr ctxt ATTRIBUTE_UNUSED , const char * value ATTRIBUTE_UNUSED ) {\n return ( 0 ) ;\n }"}
{"idx": 17439, "target": 0, "func": "static int dissect_h245_T_reverseLogicalChannelNumber ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_h245_LogicalChannelNumber ( tvb , offset , actx , tree , hf_index ) ;\n # line 288 \"../../asn1/h245/h245.cnf\" h223_rev_lc_num = h245_lc_temp ;\n return offset ;\n }"}
{"idx": 17440, "target": 0, "func": "static void tcmpt_destroy ( jpc_enc_tcmpt_t * tcmpt ) {\n jpc_enc_rlvl_t * rlvl ;\n uint_fast16_t rlvlno ;\n if ( tcmpt -> rlvls ) {\n for ( rlvlno = 0 , rlvl = tcmpt -> rlvls ;\n rlvlno < tcmpt -> numrlvls ;\n ++ rlvlno , ++ rlvl ) {\n rlvl_destroy ( rlvl ) ;\n }\n jas_free ( tcmpt -> rlvls ) ;\n tcmpt -> rlvls = NULL ;\n }\n if ( tcmpt -> data ) {\n jas_seq2d_destroy ( tcmpt -> data ) ;\n tcmpt -> data = NULL ;\n }\n if ( tcmpt -> tsfb ) {\n jpc_tsfb_destroy ( tcmpt -> tsfb ) ;\n tcmpt -> tsfb = NULL ;\n }\n }"}
{"idx": 17441, "target": 0, "func": "void vp9_idct32x32_1024_add_c ( const tran_low_t * input , uint8_t * dest , int stride ) {\n tran_low_t out [ 32 * 32 ] ;\n tran_low_t * outptr = out ;\n int i , j ;\n tran_low_t temp_in [ 32 ] , temp_out [ 32 ] ;\n for ( i = 0 ;\n i < 32 ;\n ++ i ) {\n int16_t zero_coeff [ 16 ] ;\n for ( j = 0 ;\n j < 16 ;\n ++ j ) zero_coeff [ j ] = input [ 2 * j ] | input [ 2 * j + 1 ] ;\n for ( j = 0 ;\n j < 8 ;\n ++ j ) zero_coeff [ j ] = zero_coeff [ 2 * j ] | zero_coeff [ 2 * j + 1 ] ;\n for ( j = 0 ;\n j < 4 ;\n ++ j ) zero_coeff [ j ] = zero_coeff [ 2 * j ] | zero_coeff [ 2 * j + 1 ] ;\n for ( j = 0 ;\n j < 2 ;\n ++ j ) zero_coeff [ j ] = zero_coeff [ 2 * j ] | zero_coeff [ 2 * j + 1 ] ;\n if ( zero_coeff [ 0 ] | zero_coeff [ 1 ] ) idct32 ( input , outptr ) ;\n else vpx_memset ( outptr , 0 , sizeof ( tran_low_t ) * 32 ) ;\n input += 32 ;\n outptr += 32 ;\n }\n for ( i = 0 ;\n i < 32 ;\n ++ i ) {\n for ( j = 0 ;\n j < 32 ;\n ++ j ) temp_in [ j ] = out [ j * 32 + i ] ;\n idct32 ( temp_in , temp_out ) ;\n for ( j = 0 ;\n j < 32 ;\n ++ j ) dest [ j * stride + i ] = clip_pixel ( ROUND_POWER_OF_TWO ( temp_out [ j ] , 6 ) + dest [ j * stride + i ] ) ;\n }\n }"}
{"idx": 17442, "target": 0, "func": "int ff_pnm_decode_header ( AVCodecContext * avctx , PNMContext * const s ) {\n char buf1 [ 32 ] , tuple_type [ 32 ] ;\n int h , w , depth , maxval ;\n pnm_get ( s , buf1 , sizeof ( buf1 ) ) ;\n s -> type = buf1 [ 1 ] - '0' ;\n if ( buf1 [ 0 ] != 'P' ) return AVERROR_INVALIDDATA ;\n if ( s -> type == 1 || s -> type == 4 ) {\n avctx -> pix_fmt = AV_PIX_FMT_MONOWHITE ;\n }\n else if ( s -> type == 2 || s -> type == 5 ) {\n if ( avctx -> codec_id == AV_CODEC_ID_PGMYUV ) avctx -> pix_fmt = AV_PIX_FMT_YUV420P ;\n else avctx -> pix_fmt = AV_PIX_FMT_GRAY8 ;\n }\n else if ( s -> type == 3 || s -> type == 6 ) {\n avctx -> pix_fmt = AV_PIX_FMT_RGB24 ;\n }\n else if ( s -> type == 7 ) {\n w = - 1 ;\n h = - 1 ;\n maxval = - 1 ;\n depth = - 1 ;\n tuple_type [ 0 ] = '\\0' ;\n for ( ;\n ;\n ) {\n pnm_get ( s , buf1 , sizeof ( buf1 ) ) ;\n if ( ! strcmp ( buf1 , \"WIDTH\" ) ) {\n pnm_get ( s , buf1 , sizeof ( buf1 ) ) ;\n w = strtol ( buf1 , NULL , 10 ) ;\n }\n else if ( ! strcmp ( buf1 , \"HEIGHT\" ) ) {\n pnm_get ( s , buf1 , sizeof ( buf1 ) ) ;\n h = strtol ( buf1 , NULL , 10 ) ;\n }\n else if ( ! strcmp ( buf1 , \"DEPTH\" ) ) {\n pnm_get ( s , buf1 , sizeof ( buf1 ) ) ;\n depth = strtol ( buf1 , NULL , 10 ) ;\n }\n else if ( ! strcmp ( buf1 , \"MAXVAL\" ) ) {\n pnm_get ( s , buf1 , sizeof ( buf1 ) ) ;\n maxval = strtol ( buf1 , NULL , 10 ) ;\n }\n else if ( ! strcmp ( buf1 , \"TUPLTYPE\" ) || ! strcmp ( buf1 , \"TUPLETYPE\" ) ) {\n pnm_get ( s , tuple_type , sizeof ( tuple_type ) ) ;\n }\n else if ( ! strcmp ( buf1 , \"ENDHDR\" ) ) {\n break ;\n }\n else {\n return AVERROR_INVALIDDATA ;\n }\n }\n if ( w <= 0 || h <= 0 || maxval <= 0 || depth <= 0 || tuple_type [ 0 ] == '\\0' || av_image_check_size ( w , h , 0 , avctx ) ) return AVERROR_INVALIDDATA ;\n avctx -> width = w ;\n avctx -> height = h ;\n if ( depth == 1 ) {\n if ( maxval == 1 ) avctx -> pix_fmt = AV_PIX_FMT_MONOWHITE ;\n else avctx -> pix_fmt = AV_PIX_FMT_GRAY8 ;\n }\n else if ( depth == 3 ) {\n if ( maxval < 256 ) {\n avctx -> pix_fmt = AV_PIX_FMT_RGB24 ;\n }\n else {\n av_log ( avctx , AV_LOG_ERROR , \"16-bit components are only supported for grayscale\\n\" ) ;\n avctx -> pix_fmt = AV_PIX_FMT_NONE ;\n return AVERROR_INVALIDDATA ;\n }\n }\n else if ( depth == 4 ) {\n avctx -> pix_fmt = AV_PIX_FMT_RGB32 ;\n }\n else {\n return AVERROR_INVALIDDATA ;\n }\n return 0 ;\n }\n else {\n return AVERROR_INVALIDDATA ;\n }\n pnm_get ( s , buf1 , sizeof ( buf1 ) ) ;\n avctx -> width = atoi ( buf1 ) ;\n if ( avctx -> width <= 0 ) return AVERROR_INVALIDDATA ;\n pnm_get ( s , buf1 , sizeof ( buf1 ) ) ;\n avctx -> height = atoi ( buf1 ) ;\n if ( av_image_check_size ( avctx -> width , avctx -> height , 0 , avctx ) ) return AVERROR_INVALIDDATA ;\n if ( avctx -> pix_fmt != AV_PIX_FMT_MONOWHITE ) {\n pnm_get ( s , buf1 , sizeof ( buf1 ) ) ;\n s -> maxval = atoi ( buf1 ) ;\n if ( s -> maxval <= 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid maxval: %d\\n\" , s -> maxval ) ;\n s -> maxval = 255 ;\n }\n if ( s -> maxval >= 256 ) {\n if ( avctx -> pix_fmt == AV_PIX_FMT_GRAY8 ) {\n avctx -> pix_fmt = AV_PIX_FMT_GRAY16BE ;\n if ( s -> maxval != 65535 ) avctx -> pix_fmt = AV_PIX_FMT_GRAY16 ;\n }\n else if ( avctx -> pix_fmt == AV_PIX_FMT_RGB24 ) {\n if ( s -> maxval > 255 ) avctx -> pix_fmt = AV_PIX_FMT_RGB48BE ;\n }\n else if ( avctx -> pix_fmt == AV_PIX_FMT_YUV420P && s -> maxval < 65536 ) {\n if ( s -> maxval < 512 ) avctx -> pix_fmt = AV_PIX_FMT_YUV420P9BE ;\n else if ( s -> maxval < 1024 ) avctx -> pix_fmt = AV_PIX_FMT_YUV420P10BE ;\n else avctx -> pix_fmt = AV_PIX_FMT_YUV420P16 ;\n }\n else {\n av_log ( avctx , AV_LOG_ERROR , \"Unsupported pixel format\\n\" ) ;\n avctx -> pix_fmt = AV_PIX_FMT_NONE ;\n return AVERROR_INVALIDDATA ;\n }\n }\n }\n else s -> maxval = 1 ;\n if ( av_pix_fmt_desc_get ( avctx -> pix_fmt ) -> flags & PIX_FMT_PLANAR ) {\n if ( ( avctx -> width & 1 ) != 0 ) return AVERROR_INVALIDDATA ;\n h = ( avctx -> height * 2 ) ;\n if ( ( h % 3 ) != 0 ) return AVERROR_INVALIDDATA ;\n h /= 3 ;\n avctx -> height = h ;\n }\n return 0 ;\n }"}
{"idx": 17443, "target": 0, "func": "static void k12_dump_src_setting ( gpointer k _U_ , gpointer v , gpointer p ) {\n k12_src_desc_t * src_desc = ( k12_src_desc_t * ) v ;\n wtap_dumper * wdh = ( wtap_dumper * ) p ;\n guint32 len ;\n guint offset ;\n guint i ;\n int errxxx ;\n union {\n guint8 buffer [ 8192 ] ;\n struct {\n guint32 len ;\n guint32 type ;\n guint32 unk32_1 ;\n guint32 input ;\n guint16 unk32_2 ;\n guint16 color ;\n guint32 unk32_3 ;\n guint32 unk32_4 ;\n guint16 unk16_1 ;\n guint16 hwpart_len ;\n guint16 name_len ;\n guint16 stack_len ;\n struct {\n guint32 type ;\n union {\n struct {\n guint32 unk32 ;\n guint8 mask [ 32 ] ;\n }\n ds0mask ;\n struct {\n guint8 unk_data [ 16 ] ;\n guint16 vp ;\n guint16 vc ;\n }\n atm ;\n guint32 unk ;\n }\n desc ;\n }\n extra ;\n }\n record ;\n }\n obj ;\n obj . record . type = g_htonl ( K12_REC_SRCDSC ) ;\n obj . record . unk32_1 = g_htonl ( 0x00000001 ) ;\n obj . record . input = g_htonl ( src_desc -> input ) ;\n obj . record . unk32_2 = g_htons ( 0x0000 ) ;\n obj . record . color = g_htons ( 0x060f ) ;\n obj . record . unk32_3 = g_htonl ( 0x00000003 ) ;\n switch ( src_desc -> input_type ) {\n case K12_PORT_ATMPVC : obj . record . unk32_4 = g_htonl ( 0x01001400 ) ;\n break ;\n default : obj . record . unk32_4 = g_htonl ( 0x01000100 ) ;\n }\n obj . record . unk16_1 = g_htons ( 0x0000 ) ;\n obj . record . name_len = ( guint16 ) strlen ( src_desc -> input_name ) + 1 ;\n obj . record . stack_len = ( guint16 ) strlen ( src_desc -> stack_file ) + 1 ;\n obj . record . extra . type = g_htonl ( src_desc -> input_type ) ;\n switch ( src_desc -> input_type ) {\n case K12_PORT_ATMPVC : obj . record . hwpart_len = g_htons ( 0x18 ) ;\n obj . record . extra . desc . atm . vp = g_htons ( src_desc -> input_info . atm . vp ) ;\n obj . record . extra . desc . atm . vc = g_htons ( src_desc -> input_info . atm . vc ) ;\n offset = 0x3c ;\n break ;\n case K12_PORT_DS0S : obj . record . hwpart_len = g_htons ( 0x18 ) ;\n for ( i = 0 ;\n i < 32 ;\n i ++ ) {\n obj . record . extra . desc . ds0mask . mask [ i ] = ( src_desc -> input_info . ds0mask & ( 1 << i ) ) ? 0xff : 0x00 ;\n }\n offset = 0x3c ;\n break ;\n default : obj . record . hwpart_len = g_htons ( 0x08 ) ;\n offset = 0x2c ;\n break ;\n }\n memcpy ( obj . buffer + offset , src_desc -> input_name , obj . record . name_len ) ;\n memcpy ( obj . buffer + offset + obj . record . name_len , src_desc -> stack_file , obj . record . stack_len ) ;\n len = offset + obj . record . name_len + obj . record . stack_len ;\n len += ( len % 4 ) ? 4 - ( len % 4 ) : 0 ;\n obj . record . len = g_htonl ( len ) ;\n obj . record . name_len = g_htons ( obj . record . name_len ) ;\n obj . record . stack_len = g_htons ( obj . record . stack_len ) ;\n k12_dump_record ( wdh , len , obj . buffer , & errxxx ) ;\n }"}
{"idx": 17444, "target": 0, "func": "static gboolean ng_read_bytes_or_eof ( wtap * wth , void * buffer , unsigned int nbytes , gboolean is_random , int * err , gchar * * err_info ) {\n ngsniffer_t * ngsniffer ;\n FILE_T infile ;\n ngsniffer_comp_stream_t * comp_stream ;\n unsigned char * outbuffer = ( unsigned char * ) buffer ;\n blob_info_t * blob ;\n unsigned int bytes_to_copy ;\n unsigned int bytes_left ;\n ngsniffer = ( ngsniffer_t * ) wth -> priv ;\n if ( is_random ) {\n infile = wth -> random_fh ;\n comp_stream = & ngsniffer -> rand ;\n }\n else {\n infile = wth -> fh ;\n comp_stream = & ngsniffer -> seq ;\n }\n if ( wth -> file_type_subtype == WTAP_FILE_TYPE_SUBTYPE_NGSNIFFER_UNCOMPRESSED ) {\n if ( ! wtap_read_bytes_or_eof ( infile , buffer , nbytes , err , err_info ) ) return FALSE ;\n comp_stream -> uncomp_offset += nbytes ;\n comp_stream -> comp_offset += nbytes ;\n return TRUE ;\n }\n if ( comp_stream -> buf == NULL ) {\n comp_stream -> buf = ( unsigned char * ) g_malloc ( OUTBUF_SIZE ) ;\n if ( is_random ) {\n ngsniffer -> current_blob = ngsniffer -> first_blob ;\n }\n else {\n if ( wth -> random_fh != NULL ) {\n g_assert ( ngsniffer -> first_blob == NULL ) ;\n blob = g_new ( blob_info_t , 1 ) ;\n blob -> blob_comp_offset = comp_stream -> comp_offset ;\n blob -> blob_uncomp_offset = comp_stream -> uncomp_offset ;\n ngsniffer -> first_blob = g_list_append ( ngsniffer -> first_blob , blob ) ;\n ngsniffer -> last_blob = ngsniffer -> first_blob ;\n }\n }\n if ( ! read_blob ( infile , comp_stream , err , err_info ) ) return FALSE ;\n }\n while ( nbytes > 0 ) {\n bytes_left = comp_stream -> nbytes - comp_stream -> nextout ;\n if ( bytes_left == 0 ) {\n if ( is_random ) {\n ngsniffer -> current_blob = g_list_next ( ngsniffer -> current_blob ) ;\n if ( ! ngsniffer -> current_blob ) {\n * err = WTAP_ERR_CANT_SEEK ;\n return FALSE ;\n }\n }\n else {\n if ( wth -> random_fh != NULL ) {\n blob = g_new ( blob_info_t , 1 ) ;\n blob -> blob_comp_offset = comp_stream -> comp_offset ;\n blob -> blob_uncomp_offset = comp_stream -> uncomp_offset ;\n ngsniffer -> last_blob = g_list_append ( ngsniffer -> last_blob , blob ) ;\n }\n }\n if ( ! read_blob ( infile , comp_stream , err , err_info ) ) return FALSE ;\n bytes_left = comp_stream -> nbytes - comp_stream -> nextout ;\n }\n bytes_to_copy = nbytes ;\n if ( bytes_to_copy > bytes_left ) bytes_to_copy = bytes_left ;\n memcpy ( outbuffer , & comp_stream -> buf [ comp_stream -> nextout ] , bytes_to_copy ) ;\n nbytes -= bytes_to_copy ;\n outbuffer += bytes_to_copy ;\n comp_stream -> nextout += bytes_to_copy ;\n comp_stream -> uncomp_offset += bytes_to_copy ;\n }\n return TRUE ;\n }"}
{"idx": 17445, "target": 0, "func": "static void roq_encode_video ( RoqContext * enc ) {\n RoqTempdata * tempData = enc -> tmpData ;\n int i ;\n memset ( tempData , 0 , sizeof ( * tempData ) ) ;\n create_cel_evals ( enc , tempData ) ;\n generate_new_codebooks ( enc , tempData ) ;\n if ( enc -> framesSinceKeyframe >= 1 ) {\n motion_search ( enc , 8 ) ;\n motion_search ( enc , 4 ) ;\n }\n retry_encode : for ( i = 0 ;\n i < enc -> width * enc -> height / 64 ;\n i ++ ) gather_data_for_cel ( tempData -> cel_evals + i , enc , tempData ) ;\n if ( tempData -> mainChunkSize / 8 > 65535 ) {\n av_log ( enc -> avctx , AV_LOG_ERROR , \"Warning, generated a frame too big (%d > 65535), \" \"try using a smaller qscale value.\\n\" , tempData -> mainChunkSize / 8 ) ;\n enc -> lambda *= 1.5 ;\n tempData -> mainChunkSize = 0 ;\n memset ( tempData -> used_option , 0 , sizeof ( tempData -> used_option ) ) ;\n memset ( tempData -> codebooks . usedCB4 , 0 , sizeof ( tempData -> codebooks . usedCB4 ) ) ;\n memset ( tempData -> codebooks . usedCB2 , 0 , sizeof ( tempData -> codebooks . usedCB2 ) ) ;\n goto retry_encode ;\n }\n remap_codebooks ( enc , tempData ) ;\n write_codebooks ( enc , tempData ) ;\n reconstruct_and_encode_image ( enc , tempData , enc -> width , enc -> height , enc -> width * enc -> height / 64 ) ;\n enc -> avctx -> coded_frame = enc -> current_frame ;\n FFSWAP ( AVFrame * , enc -> current_frame , enc -> last_frame ) ;\n FFSWAP ( motion_vect * , enc -> last_motion4 , enc -> this_motion4 ) ;\n FFSWAP ( motion_vect * , enc -> last_motion8 , enc -> this_motion8 ) ;\n av_free ( tempData -> cel_evals ) ;\n av_free ( tempData -> closest_cb2 ) ;\n enc -> framesSinceKeyframe ++ ;\n }"}
{"idx": 17446, "target": 0, "func": "void xsltFreeStyleDocuments ( xsltStylesheetPtr style ) {\n xsltDocumentPtr doc , cur ;\n # ifdef XSLT_REFACTORED_XSLT_NSCOMP xsltNsMapPtr nsMap ;\n # endif if ( style == NULL ) return ;\n # ifdef XSLT_REFACTORED_XSLT_NSCOMP if ( XSLT_HAS_INTERNAL_NSMAP ( style ) ) nsMap = XSLT_GET_INTERNAL_NSMAP ( style ) ;\n else nsMap = NULL ;\n # endif cur = style -> docList ;\n while ( cur != NULL ) {\n doc = cur ;\n cur = cur -> next ;\n # ifdef XSLT_REFACTORED_XSLT_NSCOMP if ( nsMap ) xsltRestoreDocumentNamespaces ( nsMap , doc -> doc ) ;\n # endif xsltFreeDocumentKeys ( doc ) ;\n if ( ! doc -> main ) xmlFreeDoc ( doc -> doc ) ;\n xmlFree ( doc ) ;\n }\n }"}
{"idx": 17447, "target": 0, "func": "static void virtio_net_set_status ( struct VirtIODevice * vdev , uint8_t status ) {\n VirtIONet * n = to_virtio_net ( vdev ) ;\n virtio_net_vhost_status ( n , status ) ;\n if ( ! n -> tx_waiting ) {\n return ;\n }\n if ( virtio_net_started ( n , status ) && ! n -> vhost_started ) {\n if ( n -> tx_timer ) {\n qemu_mod_timer ( n -> tx_timer , qemu_get_clock_ns ( vm_clock ) + n -> tx_timeout ) ;\n }\n else {\n qemu_bh_schedule ( n -> tx_bh ) ;\n }\n }\n else {\n if ( n -> tx_timer ) {\n qemu_del_timer ( n -> tx_timer ) ;\n }\n else {\n qemu_bh_cancel ( n -> tx_bh ) ;\n }\n }\n }"}
{"idx": 17448, "target": 0, "func": "static int getresponse ( int opcode , int associd , u_short * rstatus , int * rsize , const char * * rdata , int timeo ) {\n struct ntp_control rpkt ;\n struct sock_timeval tvo ;\n u_short offsets [ MAXFRAGS + 1 ] ;\n u_short counts [ MAXFRAGS + 1 ] ;\n u_short offset ;\n u_short count ;\n size_t numfrags ;\n size_t f ;\n size_t ff ;\n int seenlastfrag ;\n int shouldbesize ;\n fd_set fds ;\n int n ;\n int errcode ;\n * rsize = 0 ;\n if ( rstatus ) * rstatus = 0 ;\n * rdata = ( char * ) pktdata ;\n numfrags = 0 ;\n seenlastfrag = 0 ;\n FD_ZERO ( & fds ) ;\n for ( ;\n ;\n ) {\n if ( numfrags == 0 ) tvo = tvout ;\n else tvo = tvsout ;\n FD_SET ( sockfd , & fds ) ;\n n = select ( sockfd + 1 , & fds , NULL , NULL , & tvo ) ;\n if ( n == - 1 ) {\n warning ( \"select fails\" ) ;\n return - 1 ;\n }\n if ( n == 0 ) {\n if ( numfrags == 0 ) {\n if ( timeo ) fprintf ( stderr , \"%s: timed out, nothing received\\n\" , currenthost ) ;\n return ERR_TIMEOUT ;\n }\n if ( timeo ) fprintf ( stderr , \"%s: timed out with incomplete data\\n\" , currenthost ) ;\n if ( debug ) {\n fprintf ( stderr , \"ERR_INCOMPLETE: Received fragments:\\n\" ) ;\n for ( f = 0 ;\n f < numfrags ;\n f ++ ) fprintf ( stderr , \"%2u: %5d %5d\\t%3d octets\\n\" , ( u_int ) f , offsets [ f ] , offsets [ f ] + counts [ f ] , counts [ f ] ) ;\n fprintf ( stderr , \"last fragment %sreceived\\n\" , ( seenlastfrag ) ? \"\" : \"not \" ) ;\n }\n return ERR_INCOMPLETE ;\n }\n n = recv ( sockfd , ( char * ) & rpkt , sizeof ( rpkt ) , 0 ) ;\n if ( n == - 1 ) {\n warning ( \"read\" ) ;\n return - 1 ;\n }\n if ( debug >= 4 ) {\n printf ( \"Response packet:\\n\" ) ;\n dump_hex_printable ( & rpkt , n ) ;\n }\n if ( n < ( int ) CTL_HEADER_LEN ) {\n if ( debug ) printf ( \"Short (%d byte) packet received\\n\" , n ) ;\n continue ;\n }\n if ( PKT_VERSION ( rpkt . li_vn_mode ) > NTP_VERSION || PKT_VERSION ( rpkt . li_vn_mode ) < NTP_OLDVERSION ) {\n if ( debug ) printf ( \"Packet received with version %d\\n\" , PKT_VERSION ( rpkt . li_vn_mode ) ) ;\n continue ;\n }\n if ( PKT_MODE ( rpkt . li_vn_mode ) != MODE_CONTROL ) {\n if ( debug ) printf ( \"Packet received with mode %d\\n\" , PKT_MODE ( rpkt . li_vn_mode ) ) ;\n continue ;\n }\n if ( ! CTL_ISRESPONSE ( rpkt . r_m_e_op ) ) {\n if ( debug ) printf ( \"Received request packet, wanted response\\n\" ) ;\n continue ;\n }\n if ( ntohs ( rpkt . sequence ) != sequence ) {\n if ( debug ) printf ( \"Received sequnce number %d, wanted %d\\n\" , ntohs ( rpkt . sequence ) , sequence ) ;\n continue ;\n }\n if ( CTL_OP ( rpkt . r_m_e_op ) != opcode ) {\n if ( debug ) printf ( \"Received opcode %d, wanted %d (sequence number okay)\\n\" , CTL_OP ( rpkt . r_m_e_op ) , opcode ) ;\n continue ;\n }\n if ( CTL_ISERROR ( rpkt . r_m_e_op ) ) {\n errcode = ( ntohs ( rpkt . status ) >> 8 ) & 0xff ;\n if ( CTL_ISMORE ( rpkt . r_m_e_op ) ) TRACE ( 1 , ( \"Error code %d received on not-final packet\\n\" , errcode ) ) ;\n if ( errcode == CERR_UNSPEC ) return ERR_UNSPEC ;\n return errcode ;\n }\n if ( ntohs ( rpkt . associd ) != associd ) {\n TRACE ( 1 , ( \"Association ID %d doesn't match expected %d\\n\" , ntohs ( rpkt . associd ) , associd ) ) ;\n # ifdef notdef continue ;\n # endif }\n offset = ntohs ( rpkt . offset ) ;\n count = ntohs ( rpkt . count ) ;\n if ( n & 0x3 ) {\n TRACE ( 1 , ( \"Response packet not padded, size = %d\\n\" , n ) ) ;\n continue ;\n }\n shouldbesize = ( CTL_HEADER_LEN + count + 3 ) & ~ 3 ;\n if ( n < shouldbesize ) {\n printf ( \"Response packet claims %u octets payload, above %ld received\\n\" , count , ( long ) n - CTL_HEADER_LEN ) ;\n return ERR_INCOMPLETE ;\n }\n if ( debug >= 3 && shouldbesize > n ) {\n u_int32 key ;\n u_int32 * lpkt ;\n int maclen ;\n shouldbesize = ( shouldbesize + 7 ) & ~ 7 ;\n maclen = n - shouldbesize ;\n if ( maclen >= ( int ) MIN_MAC_LEN ) {\n printf ( \"Packet shows signs of authentication (total %d, data %d, mac %d)\\n\" , n , shouldbesize , maclen ) ;\n lpkt = ( u_int32 * ) & rpkt ;\n printf ( \"%08lx %08lx %08lx %08lx %08lx %08lx\\n\" , ( u_long ) ntohl ( lpkt [ ( n - maclen ) / sizeof ( u_int32 ) - 3 ] ) , ( u_long ) ntohl ( lpkt [ ( n - maclen ) / sizeof ( u_int32 ) - 2 ] ) , ( u_long ) ntohl ( lpkt [ ( n - maclen ) / sizeof ( u_int32 ) - 1 ] ) , ( u_long ) ntohl ( lpkt [ ( n - maclen ) / sizeof ( u_int32 ) ] ) , ( u_long ) ntohl ( lpkt [ ( n - maclen ) / sizeof ( u_int32 ) + 1 ] ) , ( u_long ) ntohl ( lpkt [ ( n - maclen ) / sizeof ( u_int32 ) + 2 ] ) ) ;\n key = ntohl ( lpkt [ ( n - maclen ) / sizeof ( u_int32 ) ] ) ;\n printf ( \"Authenticated with keyid %lu\\n\" , ( u_long ) key ) ;\n if ( key != 0 && key != info_auth_keyid ) {\n printf ( \"We don't know that key\\n\" ) ;\n }\n else {\n if ( authdecrypt ( key , ( u_int32 * ) & rpkt , n - maclen , maclen ) ) {\n printf ( \"Auth okay!\\n\" ) ;\n }\n else {\n printf ( \"Auth failed!\\n\" ) ;\n }\n }\n }\n }\n TRACE ( 2 , ( \"Got packet, size = %d\\n\" , n ) ) ;\n if ( count > ( n - CTL_HEADER_LEN ) ) {\n TRACE ( 1 , ( \"Received count of %u octets, data in packet is %ld\\n\" , count , ( long ) n - CTL_HEADER_LEN ) ) ;\n continue ;\n }\n if ( count == 0 && CTL_ISMORE ( rpkt . r_m_e_op ) ) {\n TRACE ( 1 , ( \"Received count of 0 in non-final fragment\\n\" ) ) ;\n continue ;\n }\n if ( offset + count > sizeof ( pktdata ) ) {\n TRACE ( 1 , ( \"Offset %u, count %u, too big for buffer\\n\" , offset , count ) ) ;\n return ERR_TOOMUCH ;\n }\n if ( seenlastfrag && ! CTL_ISMORE ( rpkt . r_m_e_op ) ) {\n TRACE ( 1 , ( \"Received second last fragment packet\\n\" ) ) ;\n continue ;\n }\n TRACE ( 2 , ( \"Packet okay\\n\" ) ) ;\n if ( numfrags > ( MAXFRAGS - 1 ) ) {\n TRACE ( 2 , ( \"Number of fragments exceeds maximum %d\\n\" , MAXFRAGS - 1 ) ) ;\n return ERR_TOOMUCH ;\n }\n for ( f = 0 ;\n f < numfrags && offsets [ f ] < offset ;\n f ++ ) {\n ;\n }\n if ( f < numfrags && offset == offsets [ f ] ) {\n TRACE ( 1 , ( \"duplicate %u octets at %u ignored, prior %u at %u\\n\" , count , offset , counts [ f ] , offsets [ f ] ) ) ;\n continue ;\n }\n if ( f > 0 && ( offsets [ f - 1 ] + counts [ f - 1 ] ) > offset ) {\n TRACE ( 1 , ( \"received frag at %u overlaps with %u octet frag at %u\\n\" , offset , counts [ f - 1 ] , offsets [ f - 1 ] ) ) ;\n continue ;\n }\n if ( f < numfrags && ( offset + count ) > offsets [ f ] ) {\n TRACE ( 1 , ( \"received %u octet frag at %u overlaps with frag at %u\\n\" , count , offset , offsets [ f ] ) ) ;\n continue ;\n }\n for ( ff = numfrags ;\n ff > f ;\n ff -- ) {\n offsets [ ff ] = offsets [ ff - 1 ] ;\n counts [ ff ] = counts [ ff - 1 ] ;\n }\n offsets [ f ] = offset ;\n counts [ f ] = count ;\n numfrags ++ ;\n if ( ! CTL_ISMORE ( rpkt . r_m_e_op ) ) {\n seenlastfrag = 1 ;\n if ( rstatus != 0 ) * rstatus = ntohs ( rpkt . status ) ;\n }\n memcpy ( ( char * ) pktdata + offset , & rpkt . u , count ) ;\n if ( seenlastfrag && offsets [ 0 ] == 0 ) {\n for ( f = 1 ;\n f < numfrags ;\n f ++ ) if ( offsets [ f - 1 ] + counts [ f - 1 ] != offsets [ f ] ) break ;\n if ( f == numfrags ) {\n * rsize = offsets [ f - 1 ] + counts [ f - 1 ] ;\n TRACE ( 1 , ( \"%lu packets reassembled into response\\n\" , ( u_long ) numfrags ) ) ;\n return 0 ;\n }\n }\n }\n }"}
{"idx": 17449, "target": 0, "func": "static int grow ( struct evport_data * epdp , int factor ) {\n struct fd_info * tmp ;\n int oldsize = epdp -> ed_nevents ;\n int newsize = factor * oldsize ;\n assert ( factor > 1 ) ;\n check_evportop ( epdp ) ;\n tmp = realloc ( epdp -> ed_fds , sizeof ( struct fd_info ) * newsize ) ;\n if ( NULL == tmp ) return - 1 ;\n epdp -> ed_fds = tmp ;\n memset ( ( char * ) ( epdp -> ed_fds + oldsize ) , 0 , ( newsize - oldsize ) * sizeof ( struct fd_info ) ) ;\n epdp -> ed_nevents = newsize ;\n check_evportop ( epdp ) ;\n return 0 ;\n }"}
{"idx": 17450, "target": 0, "func": "static int dissect_pvfs2_seteattr_request ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"handle\" , NULL ) ;\n offset = dissect_pvfs_fs_id ( tvb , tree , offset ) ;\n offset += 4 ;\n offset = dissect_ds_keyval_array ( tvb , tree , offset ) ;\n return offset ;\n }"}
{"idx": 17451, "target": 0, "func": "MIMEField * mime_hdr_field_get_slotnum ( MIMEHdrImpl * mh , int slotnum ) {\n return _mime_hdr_field_list_search_by_slotnum ( mh , slotnum ) ;\n }"}
{"idx": 17452, "target": 0, "func": "static uint32_t PREP_io_read ( void * opaque , uint32_t addr ) {\n PPC_IO_DPRINTF ( \"0x%08x <= 0x%08x\\n\" , addr - PPC_IO_BASE , PREP_fake_io [ addr - 0x0398 ] ) ;\n return PREP_fake_io [ addr - 0x0398 ] ;\n }"}
{"idx": 17453, "target": 1, "func": "int zrestore ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n alloc_save_t * asave ;\n bool last ;\n vm_save_t * vmsave ;\n int code = restore_check_operand ( op , & asave , idmemory ) ;\n if ( code < 0 ) return code ;\n if_debug2m ( 'u' , imemory , \"[u]vmrestore 0x%lx, id = %lu\\n\" , ( ulong ) alloc_save_client_data ( asave ) , ( ulong ) op -> value . saveid ) ;\n if ( I_VALIDATE_BEFORE_RESTORE ) ivalidate_clean_spaces ( i_ctx_p ) ;\n osp -- ;\n {\n int code ;\n if ( ( code = restore_check_stack ( i_ctx_p , & o_stack , asave , false ) ) < 0 || ( code = restore_check_stack ( i_ctx_p , & e_stack , asave , true ) ) < 0 || ( code = restore_check_stack ( i_ctx_p , & d_stack , asave , false ) ) < 0 ) {\n osp ++ ;\n return code ;\n }\n }\n restore_fix_stack ( i_ctx_p , & o_stack , asave , false ) ;\n restore_fix_stack ( i_ctx_p , & e_stack , asave , true ) ;\n restore_fix_stack ( i_ctx_p , & d_stack , asave , false ) ;\n do {\n vmsave = alloc_save_client_data ( alloc_save_current ( idmemory ) ) ;\n gs_grestoreall_for_restore ( igs , vmsave -> gsave ) ;\n vmsave -> gsave = 0 ;\n code = alloc_restore_step_in ( idmemory , asave ) ;\n if ( code < 0 ) return code ;\n last = code ;\n }\n while ( ! last ) ;\n {\n uint space = icurrent_space ;\n ialloc_set_space ( idmemory , avm_local ) ;\n ifree_object ( vmsave , \"zrestore\" ) ;\n ialloc_set_space ( idmemory , space ) ;\n }\n dict_set_top ( ) ;\n if ( I_VALIDATE_AFTER_RESTORE ) ivalidate_clean_spaces ( i_ctx_p ) ;\n i_ctx_p -> LockFilePermissions = false ;\n return 0 ;\n }"}
{"idx": 17454, "target": 0, "func": "static GHashTable * istr_set_new ( void ) {\n return g_hash_table_new_full ( istr_hash , istr_equal , g_free , NULL ) ;\n }"}
{"idx": 17455, "target": 0, "func": "void ufile_flush_translit ( UFILE * f ) {\n # if ! UCONFIG_NO_TRANSLITERATION if ( ( ! f ) || ( ! f -> fTranslit ) ) return ;\n # endif u_file_write_flush ( NULL , 0 , f , FALSE , TRUE ) ;\n }"}
{"idx": 17456, "target": 0, "func": "static StemInfo * HintNew ( double start , double width ) {\n StemInfo * h ;\n h = chunkalloc ( sizeof ( StemInfo ) ) ;\n h -> start = start ;\n h -> width = width ;\n return ( h ) ;\n }"}
{"idx": 17457, "target": 0, "func": "ber_slen_t ber_write ( BerElement * ber , LDAP_CONST char * buf , ber_len_t len , int zero ) {\n char * * p ;\n assert ( ber != NULL ) ;\n assert ( buf != NULL ) ;\n assert ( LBER_VALID ( ber ) ) ;\n if ( zero != 0 ) {\n ber_log_printf ( LDAP_DEBUG_ANY , ber -> ber_debug , \"%s\" , \"ber_write: nonzero 4th argument not supported\\n\" ) ;\n return ( - 1 ) ;\n }\n p = ber -> ber_sos_ptr == NULL ? & ber -> ber_ptr : & ber -> ber_sos_ptr ;\n if ( len > ( ber_len_t ) ( ber -> ber_end - * p ) ) {\n if ( ber_realloc ( ber , len ) != 0 ) return ( - 1 ) ;\n }\n AC_MEMCPY ( * p , buf , len ) ;\n * p += len ;\n return ( ( ber_slen_t ) len ) ;\n }"}
{"idx": 17458, "target": 0, "func": "static void gtkui_destroy_conndata ( void ) {\n DEBUG_MSG ( \"gtkui_destroy_conndata\" ) ;\n if ( curr_conn ) {\n conntrack_hook_conn_del ( curr_conn , split_print_po ) ;\n conntrack_hook_conn_del ( curr_conn , join_print_po ) ;\n curr_conn -> flags &= ~ CONN_VIEWING ;\n curr_conn = NULL ;\n }\n gtk_widget_destroy ( data_window ) ;\n textview1 = NULL ;\n textview2 = NULL ;\n textview3 = NULL ;\n data_window = NULL ;\n }"}
{"idx": 17459, "target": 0, "func": "static void setup_buffer_inter ( VP9_COMP * cpi , MACROBLOCK * x , const TileInfo * const tile , MV_REFERENCE_FRAME ref_frame , BLOCK_SIZE block_size , int mi_row , int mi_col , int_mv frame_nearest_mv [ MAX_REF_FRAMES ] , int_mv frame_near_mv [ MAX_REF_FRAMES ] , struct buf_2d yv12_mb [ 4 ] [ MAX_MB_PLANE ] ) {\n const VP9_COMMON * cm = & cpi -> common ;\n const YV12_BUFFER_CONFIG * yv12 = get_ref_frame_buffer ( cpi , ref_frame ) ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n MODE_INFO * const mi = xd -> mi [ 0 ] . src_mi ;\n int_mv * const candidates = mi -> mbmi . ref_mvs [ ref_frame ] ;\n const struct scale_factors * const sf = & cm -> frame_refs [ ref_frame - 1 ] . sf ;\n vp9_setup_pred_block ( xd , yv12_mb [ ref_frame ] , yv12 , mi_row , mi_col , sf , sf ) ;\n vp9_find_mv_refs ( cm , xd , tile , mi , ref_frame , candidates , mi_row , mi_col ) ;\n vp9_find_best_ref_mvs ( xd , cm -> allow_high_precision_mv , candidates , & frame_nearest_mv [ ref_frame ] , & frame_near_mv [ ref_frame ] ) ;\n if ( ! vp9_is_scaled ( sf ) && block_size >= BLOCK_8X8 ) vp9_mv_pred ( cpi , x , yv12_mb [ ref_frame ] [ 0 ] . buf , yv12 -> y_stride , ref_frame , block_size ) ;\n }"}
{"idx": 17460, "target": 0, "func": "static void U_CALLCONV _ISCIIReset ( UConverter * cnv , UConverterResetChoice choice ) {\n UConverterDataISCII * data = ( UConverterDataISCII * ) ( cnv -> extraInfo ) ;\n if ( choice <= UCNV_RESET_TO_UNICODE ) {\n cnv -> toUnicodeStatus = missingCharMarker ;\n cnv -> mode = 0 ;\n data -> currentDeltaToUnicode = data -> defDeltaToUnicode ;\n data -> currentMaskToUnicode = data -> defMaskToUnicode ;\n data -> contextCharToUnicode = NO_CHAR_MARKER ;\n data -> prevToUnicodeStatus = 0x0000 ;\n }\n if ( choice != UCNV_RESET_TO_UNICODE ) {\n cnv -> fromUChar32 = 0x0000 ;\n data -> contextCharFromUnicode = 0x00 ;\n data -> currentMaskFromUnicode = data -> defMaskToUnicode ;\n data -> currentDeltaFromUnicode = data -> defDeltaToUnicode ;\n data -> isFirstBuffer = TRUE ;\n data -> resetToDefaultToUnicode = FALSE ;\n }\n }"}
{"idx": 17461, "target": 0, "func": "SPL_METHOD ( SplFileInfo , func_name ) \\ {\n \\ spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n \\ zend_error_handling error_handling ;\n \\ if ( zend_parse_parameters_none ( ) == FAILURE ) {\n \\ return ;\n \\ }\n \\ \\ zend_replace_error_handling ( EH_THROW , spl_ce_RuntimeException , & error_handling TSRMLS_CC ) ;\n \\ spl_filesystem_object_get_file_name ( intern TSRMLS_CC ) ;\n \\ php_stat ( intern -> file_name , intern -> file_name_len , func_num , return_value TSRMLS_CC ) ;\n \\ zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n \\ }\n FileInfoFunction ( getPerms , FS_PERMS ) FileInfoFunction ( getInode , FS_INODE ) FileInfoFunction ( getSize , FS_SIZE ) FileInfoFunction ( getOwner , FS_OWNER ) FileInfoFunction ( getGroup , FS_GROUP ) FileInfoFunction ( getATime , FS_ATIME ) FileInfoFunction ( getMTime , FS_MTIME ) FileInfoFunction ( getCTime , FS_CTIME ) FileInfoFunction ( getType , FS_TYPE ) FileInfoFunction ( isWritable , FS_IS_W ) FileInfoFunction ( isReadable , FS_IS_R ) FileInfoFunction ( isExecutable , FS_IS_X ) FileInfoFunction ( isFile , FS_IS_FILE ) FileInfoFunction ( isDir , FS_IS_DIR ) FileInfoFunction ( isLink , FS_IS_LINK )"}
{"idx": 17462, "target": 0, "func": "static int dissect_h225_CallCapacity ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_CallCapacity , CallCapacity_sequence ) ;\n return offset ;\n }"}
{"idx": 17463, "target": 0, "func": "const char * archive_string_conversion_charset_name ( struct archive_string_conv * sc ) {\n if ( sc -> flag & SCONV_TO_CHARSET ) return ( sc -> to_charset ) ;\n else return ( sc -> from_charset ) ;\n }"}
{"idx": 17464, "target": 1, "func": "static void initial_reordering_syllable ( const hb_ot_shape_plan_t * plan , hb_face_t * face , hb_buffer_t * buffer , unsigned int start , unsigned int end ) {\n syllable_type_t syllable_type = ( syllable_type_t ) ( buffer -> info [ start ] . syllable ( ) & 0x0F ) ;\n switch ( syllable_type ) {\n case consonant_syllable : initial_reordering_consonant_syllable ( plan , face , buffer , start , end ) ;\n return ;\n case punctuation_cluster : initial_reordering_punctuation_cluster ( plan , face , buffer , start , end ) ;\n return ;\n case broken_cluster : initial_reordering_broken_cluster ( plan , face , buffer , start , end ) ;\n return ;\n case non_myanmar_cluster : initial_reordering_non_myanmar_cluster ( plan , face , buffer , start , end ) ;\n return ;\n }\n }"}
{"idx": 17465, "target": 0, "func": "static void short_usage_sub ( FILE * f ) {\n fprintf ( f , \"Usage: %s [OPTIONS] database [tables]\\n\" , my_progname_short ) ;\n fprintf ( f , \"OR %s [OPTIONS] --databases [OPTIONS] DB1 [DB2 DB3...]\\n\" , my_progname_short ) ;\n fprintf ( f , \"OR %s [OPTIONS] --all-databases [OPTIONS]\\n\" , my_progname_short ) ;\n }"}
{"idx": 17466, "target": 0, "func": "int kvm_has_pit_state2 ( void ) {\n return has_pit_state2 ;\n }"}
{"idx": 17467, "target": 0, "func": "void clean_comment_data ( char * buffer ) {\n int x ;\n int y ;\n y = ( int ) strlen ( buffer ) ;\n for ( x = 0 ;\n x < y ;\n x ++ ) {\n if ( buffer [ x ] == ';\n' || buffer [ x ] == '\\n' || buffer [ x ] == '\\r' ) buffer [ x ] = ' ' ;\n }\n return ;\n }"}
{"idx": 17468, "target": 0, "func": "static int finish_frame ( AVCodecContext * avctx , AVFrame * pict ) {\n RV34DecContext * r = avctx -> priv_data ;\n MpegEncContext * s = & r -> s ;\n int got_picture = 0 , ret ;\n ff_er_frame_end ( & s -> er ) ;\n ff_MPV_frame_end ( s ) ;\n s -> mb_num_left = 0 ;\n if ( HAVE_THREADS && ( s -> avctx -> active_thread_type & FF_THREAD_FRAME ) ) ff_thread_report_progress ( & s -> current_picture_ptr -> tf , INT_MAX , 0 ) ;\n if ( s -> pict_type == AV_PICTURE_TYPE_B || s -> low_delay ) {\n if ( ( ret = av_frame_ref ( pict , & s -> current_picture_ptr -> f ) ) < 0 ) return ret ;\n ff_print_debug_info ( s , s -> current_picture_ptr ) ;\n got_picture = 1 ;\n }\n else if ( s -> last_picture_ptr != NULL ) {\n if ( ( ret = av_frame_ref ( pict , & s -> last_picture_ptr -> f ) ) < 0 ) return ret ;\n ff_print_debug_info ( s , s -> last_picture_ptr ) ;\n got_picture = 1 ;\n }\n return got_picture ;\n }"}
{"idx": 17469, "target": 0, "func": "static int ReadBlobLZWByte ( LZWInfo * lzw_info ) {\n int code ;\n size_t one , value ;\n ssize_t count ;\n if ( lzw_info -> stack -> index != lzw_info -> stack -> codes ) return ( PopLZWStack ( lzw_info -> stack ) ) ;\n if ( lzw_info -> genesis != MagickFalse ) {\n lzw_info -> genesis = MagickFalse ;\n do {\n lzw_info -> first_code = ( size_t ) GetNextLZWCode ( lzw_info , lzw_info -> bits ) ;\n lzw_info -> last_code = lzw_info -> first_code ;\n }\n while ( lzw_info -> first_code == lzw_info -> clear_code ) ;\n return ( ( int ) lzw_info -> first_code ) ;\n }\n code = GetNextLZWCode ( lzw_info , lzw_info -> bits ) ;\n if ( code < 0 ) return ( code ) ;\n if ( ( size_t ) code == lzw_info -> clear_code ) {\n ResetLZWInfo ( lzw_info ) ;\n return ( ReadBlobLZWByte ( lzw_info ) ) ;\n }\n if ( ( size_t ) code == lzw_info -> end_code ) return ( - 1 ) ;\n if ( ( size_t ) code < lzw_info -> slot ) value = ( size_t ) code ;\n else {\n PushLZWStack ( lzw_info -> stack , lzw_info -> first_code ) ;\n value = lzw_info -> last_code ;\n }\n count = 0 ;\n while ( value > lzw_info -> maximum_data_value ) {\n if ( ( size_t ) count > MaximumLZWCode ) return ( - 1 ) ;\n count ++ ;\n if ( ( size_t ) value > MaximumLZWCode ) return ( - 1 ) ;\n PushLZWStack ( lzw_info -> stack , lzw_info -> table [ 1 ] [ value ] ) ;\n value = lzw_info -> table [ 0 ] [ value ] ;\n }\n lzw_info -> first_code = lzw_info -> table [ 1 ] [ value ] ;\n PushLZWStack ( lzw_info -> stack , lzw_info -> first_code ) ;\n one = 1 ;\n if ( lzw_info -> slot < MaximumLZWCode ) {\n lzw_info -> table [ 0 ] [ lzw_info -> slot ] = lzw_info -> last_code ;\n lzw_info -> table [ 1 ] [ lzw_info -> slot ] = lzw_info -> first_code ;\n lzw_info -> slot ++ ;\n if ( ( lzw_info -> slot >= lzw_info -> maximum_code ) && ( lzw_info -> bits < MaximumLZWBits ) ) {\n lzw_info -> bits ++ ;\n lzw_info -> maximum_code = one << lzw_info -> bits ;\n }\n }\n lzw_info -> last_code = ( size_t ) code ;\n return ( PopLZWStack ( lzw_info -> stack ) ) ;\n }"}
{"idx": 17470, "target": 0, "func": "void TSHttpSsnHookAdd ( TSHttpSsn ssnp , TSHttpHookID id , TSCont contp ) {\n sdk_assert ( sdk_sanity_check_http_ssn ( ssnp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_continuation ( contp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_hook_id ( id ) == TS_SUCCESS ) ;\n ProxyClientSession * cs = reinterpret_cast < ProxyClientSession * > ( ssnp ) ;\n cs -> ssn_hook_append ( id , ( INKContInternal * ) contp ) ;\n }"}
{"idx": 17471, "target": 0, "func": "static void get_bits_align32 ( GetBitContext * s ) {\n int n = ( - get_bits_count ( s ) ) & 31 ;\n if ( n ) skip_bits ( s , n ) ;\n }"}
{"idx": 17472, "target": 0, "func": "static bfd_boolean srec_write_header ( bfd * abfd ) {\n unsigned int len = strlen ( abfd -> filename ) ;\n if ( len > 40 ) len = 40 ;\n return srec_write_record ( abfd , 0 , ( bfd_vma ) 0 , ( bfd_byte * ) abfd -> filename , ( bfd_byte * ) abfd -> filename + len ) ;\n }"}
{"idx": 17473, "target": 0, "func": "static int show_program ( WriterContext * w , InputFile * ifile , AVProgram * program ) {\n AVFormatContext * fmt_ctx = ifile -> fmt_ctx ;\n int i , ret = 0 ;\n writer_print_section_header ( w , SECTION_ID_PROGRAM ) ;\n print_int ( \"program_id\" , program -> id ) ;\n print_int ( \"program_num\" , program -> program_num ) ;\n print_int ( \"nb_streams\" , program -> nb_stream_indexes ) ;\n print_int ( \"pmt_pid\" , program -> pmt_pid ) ;\n print_int ( \"pcr_pid\" , program -> pcr_pid ) ;\n print_ts ( \"start_pts\" , program -> start_time ) ;\n print_time ( \"start_time\" , program -> start_time , & AV_TIME_BASE_Q ) ;\n print_ts ( \"end_pts\" , program -> end_time ) ;\n print_time ( \"end_time\" , program -> end_time , & AV_TIME_BASE_Q ) ;\n if ( do_show_program_tags ) ret = show_tags ( w , program -> metadata , SECTION_ID_PROGRAM_TAGS ) ;\n if ( ret < 0 ) goto end ;\n writer_print_section_header ( w , SECTION_ID_PROGRAM_STREAMS ) ;\n for ( i = 0 ;\n i < program -> nb_stream_indexes ;\n i ++ ) {\n if ( selected_streams [ program -> stream_index [ i ] ] ) {\n ret = show_stream ( w , fmt_ctx , program -> stream_index [ i ] , & ifile -> streams [ program -> stream_index [ i ] ] , 1 ) ;\n if ( ret < 0 ) break ;\n }\n }\n writer_print_section_footer ( w ) ;\n end : writer_print_section_footer ( w ) ;\n return ret ;\n }"}
{"idx": 17474, "target": 1, "func": "static UConverter * _LMBCSSafeClone ( const UConverter * cnv , void * stackBuffer , int32_t * pBufferSize , UErrorCode * status ) {\n LMBCSClone * newLMBCS ;\n UConverterDataLMBCS * extraInfo ;\n int32_t i ;\n if ( * pBufferSize <= 0 ) {\n * pBufferSize = ( int32_t ) sizeof ( LMBCSClone ) ;\n return NULL ;\n }\n extraInfo = ( UConverterDataLMBCS * ) cnv -> extraInfo ;\n newLMBCS = ( LMBCSClone * ) stackBuffer ;\n uprv_memcpy ( & newLMBCS -> lmbcs , extraInfo , sizeof ( UConverterDataLMBCS ) ) ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST ;\n ++ i ) {\n if ( extraInfo -> OptGrpConverter [ i ] != NULL ) {\n ucnv_incrementRefCount ( extraInfo -> OptGrpConverter [ i ] ) ;\n }\n }\n newLMBCS -> cnv . extraInfo = & newLMBCS -> lmbcs ;\n newLMBCS -> cnv . isExtraLocal = TRUE ;\n return & newLMBCS -> cnv ;\n }"}
{"idx": 17475, "target": 1, "func": "int xmlListAppend ( xmlListPtr l , void * data ) {\n xmlLinkPtr lkPlace , lkNew ;\n if ( l == NULL ) return ( 1 ) ;\n lkPlace = xmlListHigherSearch ( l , data ) ;\n lkNew = ( xmlLinkPtr ) xmlMalloc ( sizeof ( xmlLink ) ) ;\n if ( lkNew == NULL ) {\n xmlGenericError ( xmlGenericErrorContext , \"Cannot initialize memory for new link\" ) ;\n return ( 1 ) ;\n }\n lkNew -> data = data ;\n lkNew -> next = lkPlace -> next ;\n ( lkPlace -> next ) -> prev = lkNew ;\n lkPlace -> next = lkNew ;\n lkNew -> prev = lkPlace ;\n return 0 ;\n }"}
{"idx": 17476, "target": 0, "func": "static void ps2_mouse_event ( DeviceState * dev , QemuConsole * src , InputEvent * evt ) {\n static const int bmap [ INPUT_BUTTON__MAX ] = {\n [ INPUT_BUTTON_LEFT ] = PS2_MOUSE_BUTTON_LEFT , [ INPUT_BUTTON_MIDDLE ] = PS2_MOUSE_BUTTON_MIDDLE , [ INPUT_BUTTON_RIGHT ] = PS2_MOUSE_BUTTON_RIGHT , [ INPUT_BUTTON_SIDE ] = PS2_MOUSE_BUTTON_SIDE , [ INPUT_BUTTON_EXTRA ] = PS2_MOUSE_BUTTON_EXTRA , }\n ;\n PS2MouseState * s = ( PS2MouseState * ) dev ;\n InputMoveEvent * move ;\n InputBtnEvent * btn ;\n if ( ! ( s -> mouse_status & MOUSE_STATUS_ENABLED ) ) return ;\n switch ( evt -> type ) {\n case INPUT_EVENT_KIND_REL : move = evt -> u . rel . data ;\n if ( move -> axis == INPUT_AXIS_X ) {\n s -> mouse_dx += move -> value ;\n }\n else if ( move -> axis == INPUT_AXIS_Y ) {\n s -> mouse_dy -= move -> value ;\n }\n break ;\n case INPUT_EVENT_KIND_BTN : btn = evt -> u . btn . data ;\n if ( btn -> down ) {\n s -> mouse_buttons |= bmap [ btn -> button ] ;\n if ( btn -> button == INPUT_BUTTON_WHEEL_UP ) {\n s -> mouse_dz -- ;\n }\n else if ( btn -> button == INPUT_BUTTON_WHEEL_DOWN ) {\n s -> mouse_dz ++ ;\n }\n }\n else {\n s -> mouse_buttons &= ~ bmap [ btn -> button ] ;\n }\n break ;\n default : break ;\n }\n }"}
{"idx": 17477, "target": 0, "func": "int i2d_ECPrivateKey_fp ( FILE * fp , EC_KEY * eckey ) {\n return ASN1_i2d_fp_of ( EC_KEY , i2d_ECPrivateKey , fp , eckey ) ;\n }"}
{"idx": 17478, "target": 0, "func": "static void cmd_window_move_left ( void ) {\n int refnum ;\n refnum = window_refnum_left ( active_win -> refnum , TRUE ) ;\n if ( refnum != - 1 ) window_set_refnum ( active_win , refnum ) ;\n }"}
{"idx": 17479, "target": 0, "func": "static int find_hw_breakpoint ( target_ulong addr , int len , int type ) {\n int n ;\n for ( n = 0 ;\n n < nb_hw_breakpoint ;\n n ++ ) {\n if ( hw_breakpoint [ n ] . addr == addr && hw_breakpoint [ n ] . type == type && ( hw_breakpoint [ n ] . len == len || len == - 1 ) ) {\n return n ;\n }\n }\n return - 1 ;\n }"}
{"idx": 17480, "target": 0, "func": "static int dissect_h225_QseriesOptions ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_QseriesOptions , QseriesOptions_sequence ) ;\n return offset ;\n }"}
{"idx": 17481, "target": 1, "func": "static int xan_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n XanContext * s = avctx -> priv_data ;\n int ftype ;\n int ret ;\n s -> pic . reference = 1 ;\n s -> pic . buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE ;\n if ( ( ret = avctx -> reget_buffer ( avctx , & s -> pic ) ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n bytestream2_init ( & s -> gb , avpkt -> data , avpkt -> size ) ;\n ftype = bytestream2_get_le32 ( & s -> gb ) ;\n switch ( ftype ) {\n case 0 : ret = xan_decode_frame_type0 ( avctx ) ;\n break ;\n case 1 : ret = xan_decode_frame_type1 ( avctx ) ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"Unknown frame type %d\\n\" , ftype ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ret ) return ret ;\n * got_frame = 1 ;\n * ( AVFrame * ) data = s -> pic ;\n return avpkt -> size ;\n }"}
{"idx": 17482, "target": 0, "func": "static void usage ( ) {\n fprintf ( stderr , _ ( \"Usage: %s [-r realm] [-p principal] [-q query] \" \"[clnt|local args]\\n\" \"\\tclnt args: [-s admin_server[:port]] \" \"[[-c ccache]|[-k [-t keytab]]]|[-n]\\n\" \"\\tlocal args: [-x db_args]* [-d dbname] \" \"[-e \\\"enc:salt ...\\\"] [-m]\\n\" \"where,\\n\\t[-x db_args]* - any number of database specific \" \"arguments.\\n\" \"\\t\\t\\tLook at each database documentation for supported \" \"arguments\\n\" ) , whoami ) ;\n exit ( 1 ) ;\n }"}
{"idx": 17483, "target": 1, "func": "CURLcode Curl_auth_create_plain_message ( struct Curl_easy * data , const char * userp , const char * passwdp , char * * outptr , size_t * outlen ) {\n CURLcode result ;\n char * plainauth ;\n size_t ulen ;\n size_t plen ;\n size_t plainlen ;\n * outlen = 0 ;\n * outptr = NULL ;\n ulen = strlen ( userp ) ;\n plen = strlen ( passwdp ) ;\n if ( ( ulen > SIZE_T_MAX / 2 ) || ( plen > ( SIZE_T_MAX / 2 - 2 ) ) ) return CURLE_OUT_OF_MEMORY ;\n plainlen = 2 * ulen + plen + 2 ;\n plainauth = malloc ( plainlen ) ;\n if ( ! plainauth ) return CURLE_OUT_OF_MEMORY ;\n memcpy ( plainauth , userp , ulen ) ;\n plainauth [ ulen ] = '\\0' ;\n memcpy ( plainauth + ulen + 1 , userp , ulen ) ;\n plainauth [ 2 * ulen + 1 ] = '\\0' ;\n memcpy ( plainauth + 2 * ulen + 2 , passwdp , plen ) ;\n result = Curl_base64_encode ( data , plainauth , plainlen , outptr , outlen ) ;\n free ( plainauth ) ;\n return result ;\n }"}
{"idx": 17484, "target": 0, "func": "static void sbr_qmf_post_shuffle_c ( float W [ 32 ] [ 2 ] , const float * z ) {\n const union av_intfloat32 * zi = ( const union av_intfloat32 * ) z ;\n union av_intfloat32 * Wi = ( union av_intfloat32 * ) W ;\n int k ;\n for ( k = 0 ;\n k < 32 ;\n k += 2 ) {\n Wi [ 2 * k + 0 ] . i = zi [ 63 - k ] . i ^ ( 1U << 31 ) ;\n Wi [ 2 * k + 1 ] . i = zi [ k + 0 ] . i ;\n Wi [ 2 * k + 2 ] . i = zi [ 62 - k ] . i ^ ( 1U << 31 ) ;\n Wi [ 2 * k + 3 ] . i = zi [ k + 1 ] . i ;\n }\n }"}
{"idx": 17485, "target": 0, "func": "static hb_bool_t hb_font_get_glyph_v_origin_nil ( hb_font_t * font , void * font_data HB_UNUSED , hb_codepoint_t glyph , hb_position_t * x , hb_position_t * y , void * user_data HB_UNUSED ) {\n if ( font -> parent ) {\n hb_bool_t ret = font -> parent -> get_glyph_v_origin ( glyph , x , y ) ;\n if ( ret ) font -> parent_scale_position ( x , y ) ;\n return ret ;\n }\n * x = * y = 0 ;\n return false ;\n }"}
{"idx": 17486, "target": 0, "func": "void copy_bits ( REP_SET * to , REP_SET * from ) {\n memcpy ( ( uchar * ) to -> bits , ( uchar * ) from -> bits , ( size_t ) ( sizeof ( uint ) * to -> size_of_bits ) ) ;\n }"}
{"idx": 17487, "target": 0, "func": "static void parse_feature ( const char * feature ) {\n if ( seen_data_command ) die ( \"Got feature command '%s' after data command\" , feature ) ;\n if ( parse_one_feature ( feature , 1 ) ) return ;\n die ( \"This version of fast-import does not support feature %s.\" , feature ) ;\n }"}
{"idx": 17488, "target": 0, "func": "static void * Type_vcgt_Read ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number * nItems , cmsUInt32Number SizeOfTag ) {\n cmsUInt32Number TagType , n , i ;\n cmsToneCurve * * Curves ;\n * nItems = 0 ;\n if ( ! _cmsReadUInt32Number ( io , & TagType ) ) return NULL ;\n Curves = ( cmsToneCurve * * ) _cmsCalloc ( self -> ContextID , 3 , sizeof ( cmsToneCurve * ) ) ;\n if ( Curves == NULL ) return NULL ;\n switch ( TagType ) {\n case cmsVideoCardGammaTableType : {\n cmsUInt16Number nChannels , nElems , nBytes ;\n if ( ! _cmsReadUInt16Number ( io , & nChannels ) ) goto Error ;\n if ( nChannels != 3 ) {\n cmsSignalError ( self -> ContextID , cmsERROR_UNKNOWN_EXTENSION , \"Unsupported number of channels for VCGT '%d'\" , nChannels ) ;\n goto Error ;\n }\n if ( ! _cmsReadUInt16Number ( io , & nElems ) ) goto Error ;\n if ( ! _cmsReadUInt16Number ( io , & nBytes ) ) goto Error ;\n if ( nElems == 256 && nBytes == 1 && SizeOfTag == 1576 ) nBytes = 2 ;\n for ( n = 0 ;\n n < 3 ;\n n ++ ) {\n Curves [ n ] = cmsBuildTabulatedToneCurve16 ( self -> ContextID , nElems , NULL ) ;\n if ( Curves [ n ] == NULL ) goto Error ;\n switch ( nBytes ) {\n case 1 : for ( i = 0 ;\n i < nElems ;\n i ++ ) {\n cmsUInt8Number v ;\n if ( ! _cmsReadUInt8Number ( io , & v ) ) goto Error ;\n Curves [ n ] -> Table16 [ i ] = FROM_8_TO_16 ( v ) ;\n }\n break ;\n case 2 : if ( ! _cmsReadUInt16Array ( io , nElems , Curves [ n ] -> Table16 ) ) goto Error ;\n break ;\n default : cmsSignalError ( self -> ContextID , cmsERROR_UNKNOWN_EXTENSION , \"Unsupported bit depth for VCGT '%d'\" , nBytes * 8 ) ;\n goto Error ;\n }\n }\n }\n break ;\n case cmsVideoCardGammaFormulaType : {\n _cmsVCGTGAMMA Colorant [ 3 ] ;\n for ( n = 0 ;\n n < 3 ;\n n ++ ) {\n double Params [ 10 ] ;\n if ( ! _cmsRead15Fixed16Number ( io , & Colorant [ n ] . Gamma ) ) goto Error ;\n if ( ! _cmsRead15Fixed16Number ( io , & Colorant [ n ] . Min ) ) goto Error ;\n if ( ! _cmsRead15Fixed16Number ( io , & Colorant [ n ] . Max ) ) goto Error ;\n Params [ 0 ] = Colorant [ n ] . Gamma ;\n Params [ 1 ] = pow ( ( Colorant [ n ] . Max - Colorant [ n ] . Min ) , ( 1.0 / Colorant [ n ] . Gamma ) ) ;\n Params [ 2 ] = 0 ;\n Params [ 3 ] = 0 ;\n Params [ 4 ] = 0 ;\n Params [ 5 ] = Colorant [ n ] . Min ;\n Params [ 6 ] = 0 ;\n Curves [ n ] = cmsBuildParametricToneCurve ( self -> ContextID , 5 , Params ) ;\n if ( Curves [ n ] == NULL ) goto Error ;\n }\n }\n break ;\n default : cmsSignalError ( self -> ContextID , cmsERROR_UNKNOWN_EXTENSION , \"Unsupported tag type for VCGT '%d'\" , TagType ) ;\n goto Error ;\n }\n * nItems = 1 ;\n return ( void * ) Curves ;\n Error : cmsFreeToneCurveTriple ( Curves ) ;\n _cmsFree ( self -> ContextID , Curves ) ;\n return NULL ;\n cmsUNUSED_PARAMETER ( SizeOfTag ) ;\n }"}
{"idx": 17489, "target": 0, "func": "static void skip_space ( char * * cpp ) {\n char * cp ;\n for ( cp = * cpp ;\n * cp == ' ' || * cp == '\\t' ;\n cp ++ ) ;\n * cpp = cp ;\n }"}
{"idx": 17490, "target": 0, "func": "static Selectivity regex_selectivity ( const char * patt , int pattlen , bool case_insensitive , int fixed_prefix_len ) {\n Selectivity sel ;\n if ( pattlen > 0 && patt [ pattlen - 1 ] == '$' && ( pattlen == 1 || patt [ pattlen - 2 ] != '\\\\' ) ) {\n sel = regex_selectivity_sub ( patt , pattlen - 1 , case_insensitive ) ;\n }\n else {\n sel = regex_selectivity_sub ( patt , pattlen , case_insensitive ) ;\n sel *= FULL_WILDCARD_SEL ;\n }\n if ( fixed_prefix_len > 0 ) sel /= pow ( FIXED_CHAR_SEL , fixed_prefix_len ) ;\n CLAMP_PROBABILITY ( sel ) ;\n return sel ;\n }"}
{"idx": 17491, "target": 0, "func": "void crypto_policy_set_aes_cm_256_hmac_sha1_80 ( crypto_policy_t * p ) {\n p -> cipher_type = AES_ICM ;\n p -> cipher_key_len = 46 ;\n p -> auth_type = HMAC_SHA1 ;\n p -> auth_key_len = 20 ;\n p -> auth_tag_len = 10 ;\n p -> sec_serv = sec_serv_conf_and_auth ;\n }"}
{"idx": 17492, "target": 0, "func": "static int dissect_h245_Ind_reverseParameters ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_Ind_reverseParameters , Ind_reverseParameters_sequence ) ;\n return offset ;\n }"}
{"idx": 17493, "target": 0, "func": "struct config_filter_context * config_filter_init ( pool_t pool ) {\n struct config_filter_context * ctx ;\n ctx = p_new ( pool , struct config_filter_context , 1 ) ;\n ctx -> pool = pool ;\n return ctx ;\n }"}
{"idx": 17494, "target": 0, "func": "static unsigned char * do_get_buffer ( gcry_mpi_t a , unsigned int fill_le , unsigned int * nbytes , int * sign , int force_secure ) {\n unsigned char * p , * buffer ;\n unsigned int length , tmp ;\n mpi_limb_t alimb ;\n int i ;\n size_t n ;\n if ( sign ) * sign = a -> sign ;\n * nbytes = a -> nlimbs * BYTES_PER_MPI_LIMB ;\n n = * nbytes ? * nbytes : 1 ;\n if ( n < fill_le ) n = fill_le ;\n p = buffer = ( force_secure || mpi_is_secure ( a ) ) ? gcry_malloc_secure ( n ) : gcry_malloc ( n ) ;\n if ( ! buffer ) return NULL ;\n for ( i = a -> nlimbs - 1 ;\n i >= 0 ;\n i -- ) {\n alimb = a -> d [ i ] ;\n # if BYTES_PER_MPI_LIMB == 4 * p ++ = alimb >> 24 ;\n * p ++ = alimb >> 16 ;\n * p ++ = alimb >> 8 ;\n * p ++ = alimb ;\n # elif BYTES_PER_MPI_LIMB == 8 * p ++ = alimb >> 56 ;\n * p ++ = alimb >> 48 ;\n * p ++ = alimb >> 40 ;\n * p ++ = alimb >> 32 ;\n * p ++ = alimb >> 24 ;\n * p ++ = alimb >> 16 ;\n * p ++ = alimb >> 8 ;\n * p ++ = alimb ;\n # else # error please implement for this limb size . # endif }\n if ( fill_le ) {\n length = * nbytes ;\n for ( i = 0 ;\n i < length / 2 ;\n i ++ ) {\n tmp = buffer [ i ] ;\n buffer [ i ] = buffer [ length - 1 - i ] ;\n buffer [ length - 1 - i ] = tmp ;\n }\n for ( p = buffer + length ;\n length < fill_le ;\n length ++ ) * p ++ = 0 ;\n * nbytes = length ;\n return buffer ;\n }\n for ( p = buffer ;\n * nbytes && ! * p ;\n p ++ , -- * nbytes ) ;\n if ( p != buffer ) memmove ( buffer , p , * nbytes ) ;\n return buffer ;\n }"}
{"idx": 17495, "target": 0, "func": "static void usb_ohci_reset_pci ( DeviceState * d ) {\n PCIDevice * dev = PCI_DEVICE ( d ) ;\n OHCIPCIState * ohci = PCI_OHCI ( dev ) ;\n OHCIState * s = & ohci -> state ;\n ohci_hard_reset ( s ) ;\n }"}
{"idx": 17496, "target": 0, "func": "static int virtio_net_can_receive ( VLANClientState * nc ) {\n VirtIONet * n = DO_UPCAST ( NICState , nc , nc ) -> opaque ;\n if ( ! n -> vdev . vm_running ) {\n return 0 ;\n }\n if ( ! virtio_queue_ready ( n -> rx_vq ) || ! ( n -> vdev . status & VIRTIO_CONFIG_S_DRIVER_OK ) ) return 0 ;\n return 1 ;\n }"}
{"idx": 17497, "target": 1, "func": "void vp9_rc_postencode_update ( VP9_COMP * cpi , uint64_t bytes_used ) {\n const VP9_COMMON * const cm = & cpi -> common ;\n const VP9EncoderConfig * const oxcf = & cpi -> oxcf ;\n RATE_CONTROL * const rc = & cpi -> rc ;\n const int qindex = cm -> base_qindex ;\n rc -> projected_frame_size = ( int ) ( bytes_used << 3 ) ;\n vp9_rc_update_rate_correction_factors ( cpi , ( cpi -> sf . recode_loop >= ALLOW_RECODE_KFARFGF || oxcf -> rc_mode == VPX_CBR ) ? 2 : 0 ) ;\n if ( cm -> frame_type == KEY_FRAME ) {\n rc -> last_q [ KEY_FRAME ] = qindex ;\n rc -> avg_frame_qindex [ KEY_FRAME ] = ROUND_POWER_OF_TWO ( 3 * rc -> avg_frame_qindex [ KEY_FRAME ] + qindex , 2 ) ;\n }\n else {\n if ( rc -> is_src_frame_alt_ref || ! ( cpi -> refresh_golden_frame || cpi -> refresh_alt_ref_frame ) || ( cpi -> use_svc && oxcf -> rc_mode == VPX_CBR ) ) {\n rc -> last_q [ INTER_FRAME ] = qindex ;\n rc -> avg_frame_qindex [ INTER_FRAME ] = ROUND_POWER_OF_TWO ( 3 * rc -> avg_frame_qindex [ INTER_FRAME ] + qindex , 2 ) ;\n rc -> ni_frames ++ ;\n rc -> tot_q += vp9_convert_qindex_to_q ( qindex ) ;\n rc -> avg_q = rc -> tot_q / rc -> ni_frames ;\n rc -> ni_tot_qi += qindex ;\n rc -> ni_av_qi = rc -> ni_tot_qi / rc -> ni_frames ;\n }\n }\n if ( ( qindex < rc -> last_boosted_qindex ) || ( ( cpi -> static_mb_pct < 100 ) && ( ( cm -> frame_type == KEY_FRAME ) || cpi -> refresh_alt_ref_frame || ( cpi -> refresh_golden_frame && ! rc -> is_src_frame_alt_ref ) ) ) ) {\n rc -> last_boosted_qindex = qindex ;\n }\n update_buffer_level ( cpi , rc -> projected_frame_size ) ;\n if ( cm -> frame_type != KEY_FRAME ) {\n rc -> rolling_target_bits = ROUND_POWER_OF_TWO ( rc -> rolling_target_bits * 3 + rc -> this_frame_target , 2 ) ;\n rc -> rolling_actual_bits = ROUND_POWER_OF_TWO ( rc -> rolling_actual_bits * 3 + rc -> projected_frame_size , 2 ) ;\n rc -> long_rolling_target_bits = ROUND_POWER_OF_TWO ( rc -> long_rolling_target_bits * 31 + rc -> this_frame_target , 5 ) ;\n rc -> long_rolling_actual_bits = ROUND_POWER_OF_TWO ( rc -> long_rolling_actual_bits * 31 + rc -> projected_frame_size , 5 ) ;\n }\n rc -> total_actual_bits += rc -> projected_frame_size ;\n rc -> total_target_bits += cm -> show_frame ? rc -> avg_frame_bandwidth : 0 ;\n rc -> total_target_vs_actual = rc -> total_actual_bits - rc -> total_target_bits ;\n if ( is_altref_enabled ( cpi ) && cpi -> refresh_alt_ref_frame && ( cm -> frame_type != KEY_FRAME ) ) update_alt_ref_frame_stats ( cpi ) ;\n else update_golden_frame_stats ( cpi ) ;\n if ( cm -> frame_type == KEY_FRAME ) rc -> frames_since_key = 0 ;\n if ( cm -> show_frame ) {\n rc -> frames_since_key ++ ;\n rc -> frames_to_key -- ;\n }\n }"}
{"idx": 17498, "target": 0, "func": "static unsigned int sse_thresh ( BLOCK_SIZE bs , int increase_denoising ) {\n return widths [ bs ] * heights [ bs ] * ( increase_denoising ? 60 : 40 ) ;\n }"}
{"idx": 17499, "target": 0, "func": "static const char * cgfs_get_cgroup ( void * hdata , const char * subsystem ) {\n struct cgfs_data * d = hdata ;\n if ( ! d ) return NULL ;\n return lxc_cgroup_get_hierarchy_path_data ( subsystem , d ) ;\n }"}
{"idx": 17500, "target": 0, "func": "static int selinux_sb_alloc_security ( struct super_block * sb ) {\n return superblock_alloc_security ( sb ) ;\n }"}
{"idx": 17501, "target": 0, "func": "static FILE * NeedsVariationSequenceTable ( SplineFont * sf , int * vslen ) {\n int gid , vs_cnt = 0 , vs_max = 512 , i , j , k , cnt , mingid , maxgid ;\n struct altuni * altuni , * au ;\n int32 vsbuf [ 512 ] , * vses = vsbuf ;\n FILE * format14 ;\n uint32 * avail = NULL ;\n enum vs_type {\n vs_default = ( 1 << 24 ) , vs_nondefault = ( 2 << 24 ) }\n ;\n SplineChar * sc ;\n uint32 here ;\n int any ;\n mingid = maxgid = - 1 ;\n for ( gid = 0 ;\n gid < sf -> glyphcnt ;\n ++ gid ) if ( ( sc = sf -> glyphs [ gid ] ) != NULL ) {\n for ( altuni = sc -> altuni ;\n altuni != NULL ;\n altuni = altuni -> next ) {\n if ( altuni -> unienc != - 1 && ( uint32 ) altuni -> unienc < unicode4_size && altuni -> vs != - 1 && altuni -> fid == 0 ) {\n for ( i = 0 ;\n i < vs_cnt ;\n ++ i ) if ( vses [ i ] == altuni -> vs ) break ;\n if ( i >= vs_cnt ) {\n if ( i >= vs_max ) {\n if ( vses == vsbuf ) {\n vses = malloc ( ( vs_max *= 2 ) * sizeof ( uint32 ) ) ;\n memcpy ( vses , vsbuf , sizeof ( vsbuf ) ) ;\n }\n else vses = realloc ( vses , ( vs_max += 512 ) * sizeof ( uint32 ) ) ;\n }\n vses [ vs_cnt ++ ] = altuni -> vs ;\n }\n if ( mingid == - 1 ) mingid = maxgid = gid ;\n else maxgid = gid ;\n }\n }\n }\n if ( vs_cnt == 0 ) {\n * vslen = 0 ;\n return ( NULL ) ;\n }\n for ( i = 0 ;\n i < vs_cnt ;\n ++ i ) for ( j = i + 1 ;\n j < vs_cnt ;\n ++ j ) {\n if ( vses [ i ] > vses [ j ] ) {\n int temp = vses [ i ] ;\n vses [ i ] = vses [ j ] ;\n vses [ j ] = temp ;\n }\n }\n avail = malloc ( unicode4_size * sizeof ( uint32 ) ) ;\n format14 = tmpfile ( ) ;\n putshort ( format14 , 14 ) ;\n putlong ( format14 , 0 ) ;\n putlong ( format14 , vs_cnt ) ;\n for ( i = 0 ;\n i < vs_cnt ;\n ++ i ) {\n putu24 ( format14 , vses [ i ] ) ;\n putlong ( format14 , 0 ) ;\n putlong ( format14 , 0 ) ;\n }\n for ( i = 0 ;\n i < vs_cnt ;\n ++ i ) {\n memset ( avail , 0 , unicode4_size * sizeof ( uint32 ) ) ;\n any = 0 ;\n for ( gid = mingid ;\n gid <= maxgid ;\n ++ gid ) if ( ( sc = sf -> glyphs [ gid ] ) != NULL ) {\n for ( altuni = sc -> altuni ;\n altuni != NULL ;\n altuni = altuni -> next ) {\n if ( altuni -> unienc != - 1 && altuni -> unienc < ( int ) unicode4_size && altuni -> vs == vses [ i ] && altuni -> fid == 0 ) {\n for ( au = sc -> altuni ;\n au != NULL ;\n au = au -> next ) if ( au -> unienc == altuni -> unienc && au -> vs == - 1 && au -> fid == 0 ) break ;\n if ( altuni -> unienc == sc -> unicodeenc || au != NULL ) {\n avail [ altuni -> unienc ] = gid | vs_default ;\n any |= vs_default ;\n }\n else {\n avail [ altuni -> unienc ] = gid | vs_nondefault ;\n any |= vs_nondefault ;\n }\n }\n }\n }\n if ( any & vs_default ) {\n here = ftell ( format14 ) ;\n fseek ( format14 , 10 + i * 11 + 3 , SEEK_SET ) ;\n putlong ( format14 , here ) ;\n fseek ( format14 , 0 , SEEK_END ) ;\n cnt = 0 ;\n for ( j = 0 ;\n ( unsigned ) j < unicode4_size ;\n ++ j ) if ( avail [ j ] & vs_default ) {\n for ( k = j + 1 ;\n ( unsigned ) k < unicode4_size && ( avail [ k ] & vs_default ) ;\n ++ k ) ;\n if ( k - j > 256 ) k = j + 256 ;\n ++ cnt ;\n j = k - 1 ;\n }\n putlong ( format14 , cnt ) ;\n for ( j = 0 ;\n ( unsigned ) j < unicode4_size ;\n ++ j ) if ( avail [ j ] & vs_default ) {\n for ( k = j + 1 ;\n ( unsigned ) k < unicode4_size && ( avail [ k ] & vs_default ) ;\n ++ k ) ;\n if ( k - j > 256 ) k = j + 256 ;\n putu24 ( format14 , j ) ;\n putc ( k - j - 1 , format14 ) ;\n j = k - 1 ;\n }\n }\n if ( any & vs_nondefault ) {\n here = ftell ( format14 ) ;\n fseek ( format14 , 10 + i * 11 + 7 , SEEK_SET ) ;\n putlong ( format14 , here ) ;\n fseek ( format14 , 0 , SEEK_END ) ;\n cnt = 0 ;\n for ( j = 0 ;\n ( unsigned ) j < unicode4_size ;\n ++ j ) if ( avail [ j ] & vs_nondefault ) ++ cnt ;\n putlong ( format14 , cnt ) ;\n for ( j = 0 ;\n ( unsigned ) j < unicode4_size ;\n ++ j ) if ( avail [ j ] & vs_nondefault ) {\n putu24 ( format14 , j ) ;\n putshort ( format14 , sf -> glyphs [ avail [ j ] & 0xffff ] -> ttf_glyph ) ;\n }\n }\n }\n here = ftell ( format14 ) ;\n fseek ( format14 , 2 , SEEK_SET ) ;\n putlong ( format14 , here ) ;\n fseek ( format14 , 0 , SEEK_END ) ;\n if ( here & 1 ) {\n putc ( '\\0' , format14 ) ;\n ++ here ;\n }\n if ( here & 2 ) {\n putshort ( format14 , 0 ) ;\n here += 2 ;\n }\n * vslen = here ;\n free ( avail ) ;\n if ( vses != vsbuf ) free ( vses ) ;\n return ( format14 ) ;\n }"}
{"idx": 17502, "target": 1, "func": "static ossl_inline unsigned long lh_ ## type ## _num_items ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_num_items ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _node_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _node_usage_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_usage_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING )"}
{"idx": 17503, "target": 0, "func": "Datum iclikesel ( PG_FUNCTION_ARGS ) {\n PG_RETURN_FLOAT8 ( patternsel ( fcinfo , Pattern_Type_Like_IC , false ) ) ;\n }"}
{"idx": 17504, "target": 0, "func": "void SortTocFromFile ( Archive * AHX ) {\n ArchiveHandle * AH = ( ArchiveHandle * ) AHX ;\n RestoreOptions * ropt = AH -> public . ropt ;\n FILE * fh ;\n char buf [ 100 ] ;\n bool incomplete_line ;\n ropt -> idWanted = ( bool * ) pg_malloc ( sizeof ( bool ) * AH -> maxDumpId ) ;\n memset ( ropt -> idWanted , 0 , sizeof ( bool ) * AH -> maxDumpId ) ;\n fh = fopen ( ropt -> tocFile , PG_BINARY_R ) ;\n if ( ! fh ) exit_horribly ( modulename , \"could not open TOC file \\\"%s\\\": %s\\n\" , ropt -> tocFile , strerror ( errno ) ) ;\n incomplete_line = false ;\n while ( fgets ( buf , sizeof ( buf ) , fh ) != NULL ) {\n bool prev_incomplete_line = incomplete_line ;\n int buflen ;\n char * cmnt ;\n char * endptr ;\n DumpId id ;\n TocEntry * te ;\n buflen = strlen ( buf ) ;\n if ( buflen > 0 && buf [ buflen - 1 ] == '\\n' ) incomplete_line = false ;\n else incomplete_line = true ;\n if ( prev_incomplete_line ) continue ;\n cmnt = strchr ( buf , ';\n' ) ;\n if ( cmnt != NULL ) cmnt [ 0 ] = '\\0' ;\n if ( strspn ( buf , \" \\t\\r\\n\" ) == strlen ( buf ) ) continue ;\n id = strtol ( buf , & endptr , 10 ) ;\n if ( endptr == buf || id <= 0 || id > AH -> maxDumpId || ropt -> idWanted [ id - 1 ] ) {\n write_msg ( modulename , \"WARNING: line ignored: %s\\n\" , buf ) ;\n continue ;\n }\n te = getTocEntryByDumpId ( AH , id ) ;\n if ( ! te ) exit_horribly ( modulename , \"could not find entry for ID %d\\n\" , id ) ;\n ropt -> idWanted [ id - 1 ] = true ;\n _moveBefore ( AH , AH -> toc , te ) ;\n }\n if ( fclose ( fh ) != 0 ) exit_horribly ( modulename , \"could not close TOC file: %s\\n\" , strerror ( errno ) ) ;\n }"}
{"idx": 17505, "target": 0, "func": "int vp9_compute_qdelta ( const RATE_CONTROL * rc , double qstart , double qtarget , vpx_bit_depth_t bit_depth ) {\n int start_index = rc -> worst_quality ;\n int target_index = rc -> worst_quality ;\n int i ;\n for ( i = rc -> best_quality ;\n i < rc -> worst_quality ;\n ++ i ) {\n start_index = i ;\n if ( vp9_convert_qindex_to_q ( i , bit_depth ) >= qstart ) break ;\n }\n for ( i = rc -> best_quality ;\n i < rc -> worst_quality ;\n ++ i ) {\n target_index = i ;\n if ( vp9_convert_qindex_to_q ( i , bit_depth ) >= qtarget ) break ;\n }\n return target_index - start_index ;\n }"}
{"idx": 17506, "target": 0, "func": "static int sdp_parse_fmtp_config_h264 ( AVFormatContext * s , AVStream * stream , PayloadContext * h264_data , const char * attr , const char * value ) {\n AVCodecParameters * par = stream -> codecpar ;\n if ( ! strcmp ( attr , \"packetization-mode\" ) ) {\n av_log ( s , AV_LOG_DEBUG , \"RTP Packetization Mode: %d\\n\" , atoi ( value ) ) ;\n h264_data -> packetization_mode = atoi ( value ) ;\n if ( h264_data -> packetization_mode > 1 ) av_log ( s , AV_LOG_ERROR , \"Interleaved RTP mode is not supported yet.\\n\" ) ;\n }\n else if ( ! strcmp ( attr , \"profile-level-id\" ) ) {\n if ( strlen ( value ) == 6 ) parse_profile_level_id ( s , h264_data , value ) ;\n }\n else if ( ! strcmp ( attr , \"sprop-parameter-sets\" ) ) {\n int ret ;\n if ( * value == 0 || value [ strlen ( value ) - 1 ] == ',' ) {\n av_log ( s , AV_LOG_WARNING , \"Missing PPS in sprop-parameter-sets, ignoring\\n\" ) ;\n return 0 ;\n }\n par -> extradata_size = 0 ;\n av_freep ( & par -> extradata ) ;\n ret = ff_h264_parse_sprop_parameter_sets ( s , & par -> extradata , & par -> extradata_size , value ) ;\n av_log ( s , AV_LOG_DEBUG , \"Extradata set to %p (size: %d)\\n\" , par -> extradata , par -> extradata_size ) ;\n return ret ;\n }\n return 0 ;\n }"}
{"idx": 17507, "target": 0, "func": "static int mpc8_get_mask ( GetBitContext * gb , int size , int t ) {\n int mask = 0 ;\n if ( t && t != size ) mask = mpc8_dec_enum ( gb , FFMIN ( t , size - t ) , size ) ;\n if ( ( t << 1 ) > size ) mask = ~ mask ;\n return mask ;\n }"}
{"idx": 17508, "target": 1, "func": "char * vpx_svc_get_rc_stats_buffer ( const SvcContext * svc_ctx ) {\n const SvcInternal * const si = get_const_svc_internal ( svc_ctx ) ;\n if ( svc_ctx == NULL || si == NULL ) return NULL ;\n return si -> rc_stats_buf ;\n }"}
{"idx": 17509, "target": 0, "func": "static bool async_pf_msr_needed ( void * opaque ) {\n X86CPU * cpu = opaque ;\n return cpu -> env . async_pf_en_msr != 0 ;\n }"}
{"idx": 17510, "target": 0, "func": "static socket_handle_t adb_connect ( const char * server_ip , unsigned short * server_tcp_port ) {\n socket_handle_t sock ;\n socklen_t length ;\n struct sockaddr_in server ;\n struct sockaddr_in client ;\n int status ;\n int tries = 0 ;\n memset ( & server , 0x0 , sizeof ( server ) ) ;\n server . sin_family = AF_INET ;\n server . sin_port = GINT16_TO_BE ( * server_tcp_port ) ;\n server . sin_addr . s_addr = inet_addr ( server_ip ) ;\n if ( ( sock = socket ( AF_INET , SOCK_STREAM , IPPROTO_TCP ) ) == INVALID_SOCKET ) {\n errmsg_print ( \"ERROR: Cannot open system TCP socket: %s\" , strerror ( errno ) ) ;\n return INVALID_SOCKET ;\n }\n useNonBlockingConnectTimeout ( sock ) ;\n while ( tries < SOCKET_CONNECT_TIMEOUT_TRIES ) {\n status = connect ( sock , ( struct sockaddr * ) & server , ( socklen_t ) sizeof ( server ) ) ;\n tries += 1 ;\n if ( status != SOCKET_ERROR ) break ;\n g_usleep ( SOCKET_CONNECT_DELAY_US ) ;\n }\n useNormalConnectTimeout ( sock ) ;\n if ( status == SOCKET_ERROR ) {\n # if 0 # ifdef _WIN32 if ( _execlp ( \"adb\" , \"adb\" , \"start-server\" , NULL ) ) {\n # else if ( execlp ( \"adb\" , \"adb\" , \"start-server\" , NULL ) ) {\n # endif errmsg ( \"WARNING: Cannot execute system command to start adb: %s\" , strerror ( errno ) ) ;\n closesocket ( sock ) ;\n return INVALID_SOCKET ;\n }\n ;\n if ( connect ( sock , ( struct sockaddr * ) & server , sizeof ( server ) ) == SOCKET_ERROR ) {\n errmsg_print ( \"ERROR: Cannot connect to ADB: <%s> Please check that adb daemon is running.\" , strerror ( errno ) ) ;\n closesocket ( sock ) ;\n return INVALID_SOCKET ;\n }\n # else verbose_print ( \"Cannot connect to ADB: <%s> Please check that adb daemon is running.\\n\" , strerror ( errno ) ) ;\n closesocket ( sock ) ;\n return INVALID_SOCKET ;\n # endif }\n if ( verbose ) {\n length = sizeof ( client ) ;\n if ( getsockname ( sock , ( struct sockaddr * ) & client , & length ) ) {\n errmsg_print ( \"ERROR getsockname: %s\" , strerror ( errno ) ) ;\n closesocket ( sock ) ;\n return INVALID_SOCKET ;\n }\n if ( length != sizeof ( client ) ) {\n errmsg_print ( \"ERROR: incorrect length\" ) ;\n closesocket ( sock ) ;\n return INVALID_SOCKET ;\n }\n verbose_print ( \"VERBOSE: Client port %u\\n\" , GUINT16_FROM_BE ( client . sin_port ) ) ;\n }\n return sock ;\n }"}
{"idx": 17511, "target": 0, "func": "void kadmin_getstrings ( int argc , char * argv [ ] ) {\n kadm5_ret_t retval ;\n char * pname , * canon = NULL ;\n krb5_principal princ = NULL ;\n krb5_string_attr * strings = NULL ;\n int count , i ;\n if ( argc != 2 ) {\n fprintf ( stderr , _ ( \"usage: get_strings principal\\n\" ) ) ;\n return ;\n }\n pname = argv [ 1 ] ;\n retval = kadmin_parse_name ( pname , & princ ) ;\n if ( retval ) {\n com_err ( \"get_strings\" , retval , _ ( \"while parsing principal\" ) ) ;\n return ;\n }\n retval = krb5_unparse_name ( context , princ , & canon ) ;\n if ( retval ) {\n com_err ( \"get_strings\" , retval , _ ( \"while canonicalizing principal\" ) ) ;\n goto cleanup ;\n }\n retval = kadm5_get_strings ( handle , princ , & strings , & count ) ;\n if ( retval ) {\n com_err ( \"get_strings\" , retval , _ ( \"while getting attributes for principal \\\"%s\\\"\" ) , canon ) ;\n goto cleanup ;\n }\n if ( count == 0 ) printf ( _ ( \"(No string attributes.)\\n\" ) ) ;\n for ( i = 0 ;\n i < count ;\n i ++ ) printf ( \"%s: %s\\n\" , strings [ i ] . key , strings [ i ] . value ) ;\n kadm5_free_strings ( handle , strings , count ) ;\n cleanup : krb5_free_principal ( context , princ ) ;\n free ( canon ) ;\n return ;\n }"}
{"idx": 17512, "target": 0, "func": "static void revert_acfilter ( WmallDecodeCtx * s , int tile_size ) {\n int ich , pred , i , j ;\n int64_t * filter_coeffs = s -> acfilter_coeffs ;\n int scaling = s -> acfilter_scaling ;\n int order = s -> acfilter_order ;\n for ( ich = 0 ;\n ich < s -> num_channels ;\n ich ++ ) {\n int * prevvalues = s -> acfilter_prevvalues [ ich ] ;\n for ( i = 0 ;\n i < order ;\n i ++ ) {\n pred = 0 ;\n for ( j = 0 ;\n j < order ;\n j ++ ) {\n if ( i <= j ) pred += filter_coeffs [ j ] * prevvalues [ j - i ] ;\n else pred += s -> channel_residues [ ich ] [ i - j - 1 ] * filter_coeffs [ j ] ;\n }\n pred >>= scaling ;\n s -> channel_residues [ ich ] [ i ] += pred ;\n }\n for ( i = order ;\n i < tile_size ;\n i ++ ) {\n pred = 0 ;\n for ( j = 0 ;\n j < order ;\n j ++ ) pred += s -> channel_residues [ ich ] [ i - j - 1 ] * filter_coeffs [ j ] ;\n pred >>= scaling ;\n s -> channel_residues [ ich ] [ i ] += pred ;\n }\n for ( j = 0 ;\n j < order ;\n j ++ ) prevvalues [ j ] = s -> channel_residues [ ich ] [ tile_size - j - 1 ] ;\n }\n }"}
{"idx": 17513, "target": 0, "func": "static void interpolate_lsf ( float lsf_q [ 4 ] [ LP_FILTER_ORDER ] , float * lsf_new ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) ff_weighted_vector_sumf ( lsf_q [ i ] , lsf_q [ 3 ] , lsf_new , 0.25 * ( 3 - i ) , 0.25 * ( i + 1 ) , LP_FILTER_ORDER ) ;\n }"}
{"idx": 17514, "target": 0, "func": "int dissect_ber_boolean ( gboolean implicit_tag , asn1_ctx_t * actx , proto_tree * tree , tvbuff_t * tvb , int offset , gint hf_id , gboolean * value ) {\n gint8 ber_class ;\n gboolean pc ;\n gint32 tag ;\n guint32 len ;\n guint8 val ;\n header_field_info * hfi ;\n if ( ! implicit_tag ) {\n offset = dissect_ber_identifier ( actx -> pinfo , tree , tvb , offset , & ber_class , & pc , & tag ) ;\n offset = dissect_ber_length ( actx -> pinfo , tree , tvb , offset , & len , NULL ) ;\n }\n else {\n }\n val = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n actx -> created_item = NULL ;\n if ( hf_id >= 0 ) {\n hfi = proto_registrar_get_nth ( hf_id ) ;\n if ( hfi -> type == FT_BOOLEAN ) actx -> created_item = proto_tree_add_boolean ( tree , hf_id , tvb , offset - 1 , 1 , val ) ;\n else actx -> created_item = proto_tree_add_uint ( tree , hf_id , tvb , offset - 1 , 1 , val ? 1 : 0 ) ;\n }\n if ( value ) {\n * value = ( val ? TRUE : FALSE ) ;\n }\n return offset ;\n }"}
{"idx": 17515, "target": 0, "func": "static afs_int32 getCPS ( struct rx_call * call , afs_int32 aid , prlist * alist , afs_int32 * over , afs_int32 * cid ) {\n afs_int32 code ;\n struct ubik_trans * tt ;\n afs_int32 temp ;\n struct prentry tentry ;\n * over = 0 ;\n alist -> prlist_len = 0 ;\n alist -> prlist_val = NULL ;\n code = Initdb ( ) ;\n if ( code != PRSUCCESS ) return code ;\n code = ubik_BeginTransReadAny ( dbase , UBIK_READTRANS , & tt ) ;\n if ( code ) return code ;\n code = ubik_SetLock ( tt , 1 , 1 , LOCKREAD ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = read_DbHeader ( tt ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n temp = FindByID ( tt , aid ) ;\n if ( ! temp ) ABORT_WITH ( tt , PRNOENT ) ;\n code = pr_ReadEntry ( tt , 0 , temp , & tentry ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = WhoIsThis ( call , tt , cid ) ;\n if ( code || ! AccessOK ( tt , * cid , & tentry , PRP_MEMBER_MEM , PRP_MEMBER_ANY ) ) ABORT_WITH ( tt , PRPERM ) ;\n code = GetList ( tt , & tentry , alist , 1 ) ;\n if ( code != PRSUCCESS ) ABORT_WITH ( tt , code ) ;\n code = ubik_EndTrans ( tt ) ;\n return code ;\n }"}
{"idx": 17516, "target": 0, "func": "static void xhci_intx_update ( XHCIState * xhci ) {\n PCIDevice * pci_dev = PCI_DEVICE ( xhci ) ;\n int level = 0 ;\n if ( msix_enabled ( pci_dev ) || msi_enabled ( pci_dev ) ) {\n return ;\n }\n if ( xhci -> intr [ 0 ] . iman & IMAN_IP && xhci -> intr [ 0 ] . iman & IMAN_IE && xhci -> usbcmd & USBCMD_INTE ) {\n level = 1 ;\n }\n trace_usb_xhci_irq_intx ( level ) ;\n pci_set_irq ( pci_dev , level ) ;\n }"}
{"idx": 17517, "target": 0, "func": "static void set_partial_b64x64_partition ( MODE_INFO * mi , int mis , int bh_in , int bw_in , int row8x8_remaining , int col8x8_remaining , BLOCK_SIZE bsize , MODE_INFO * mi_8x8 ) {\n int bh = bh_in ;\n int r , c ;\n for ( r = 0 ;\n r < MI_BLOCK_SIZE ;\n r += bh ) {\n int bw = bw_in ;\n for ( c = 0 ;\n c < MI_BLOCK_SIZE ;\n c += bw ) {\n const int index = r * mis + c ;\n mi_8x8 [ index ] . src_mi = mi + index ;\n mi_8x8 [ index ] . src_mi -> mbmi . sb_type = find_partition_size ( bsize , row8x8_remaining - r , col8x8_remaining - c , & bh , & bw ) ;\n }\n }\n }"}
{"idx": 17518, "target": 0, "func": "static int process_rec_header2_v2 ( wtap * wth , unsigned char * buffer , guint16 length , int * err , gchar * * err_info ) {\n static const char x_25_str [ ] = \"HDLC\\nX.25\\n\" ;\n if ( length < sizeof x_25_str - 1 ) {\n * err = WTAP_ERR_UNSUPPORTED ;\n * err_info = g_strdup_printf ( \"ngsniffer: WAN capture has too-short protocol list\" ) ;\n return - 1 ;\n }\n if ( strncmp ( ( char * ) buffer , x_25_str , sizeof x_25_str - 1 ) == 0 ) {\n wth -> file_encap = WTAP_ENCAP_LAPB ;\n }\n else {\n * err = WTAP_ERR_UNSUPPORTED ;\n * err_info = g_strdup_printf ( \"ngsniffer: WAN capture protocol string %.*s unknown\" , length , buffer ) ;\n return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 17519, "target": 0, "func": "char * evbuffer_readln ( struct evbuffer * buffer , size_t * n_read_out , enum evbuffer_eol_style eol_style ) {\n u_char * data = EVBUFFER_DATA ( buffer ) ;\n u_char * start_of_eol , * end_of_eol ;\n size_t len = EVBUFFER_LENGTH ( buffer ) ;\n char * line ;\n unsigned int i , n_to_copy , n_to_drain ;\n if ( n_read_out ) * n_read_out = 0 ;\n switch ( eol_style ) {\n case EVBUFFER_EOL_ANY : for ( i = 0 ;\n i < len ;\n i ++ ) {\n if ( data [ i ] == '\\r' || data [ i ] == '\\n' ) break ;\n }\n if ( i == len ) return ( NULL ) ;\n start_of_eol = data + i ;\n ++ i ;\n for ( ;\n i < len ;\n i ++ ) {\n if ( data [ i ] != '\\r' && data [ i ] != '\\n' ) break ;\n }\n end_of_eol = data + i ;\n break ;\n case EVBUFFER_EOL_CRLF : end_of_eol = memchr ( data , '\\n' , len ) ;\n if ( ! end_of_eol ) return ( NULL ) ;\n if ( end_of_eol > data && * ( end_of_eol - 1 ) == '\\r' ) start_of_eol = end_of_eol - 1 ;\n else start_of_eol = end_of_eol ;\n end_of_eol ++ ;\n break ;\n case EVBUFFER_EOL_CRLF_STRICT : {\n u_char * cp = data ;\n while ( ( cp = memchr ( cp , '\\r' , len - ( cp - data ) ) ) ) {\n if ( cp < data + len - 1 && * ( cp + 1 ) == '\\n' ) break ;\n if ( ++ cp >= data + len ) {\n cp = NULL ;\n break ;\n }\n }\n if ( ! cp ) return ( NULL ) ;\n start_of_eol = cp ;\n end_of_eol = cp + 2 ;\n break ;\n }\n case EVBUFFER_EOL_LF : start_of_eol = memchr ( data , '\\n' , len ) ;\n if ( ! start_of_eol ) return ( NULL ) ;\n end_of_eol = start_of_eol + 1 ;\n break ;\n default : return ( NULL ) ;\n }\n n_to_copy = start_of_eol - data ;\n n_to_drain = end_of_eol - data ;\n if ( ( line = malloc ( n_to_copy + 1 ) ) == NULL ) {\n event_warn ( \"%s: out of memory\\n\" , __func__ ) ;\n return ( NULL ) ;\n }\n memcpy ( line , data , n_to_copy ) ;\n line [ n_to_copy ] = '\\0' ;\n evbuffer_drain ( buffer , n_to_drain ) ;\n if ( n_read_out ) * n_read_out = ( size_t ) n_to_copy ;\n return ( line ) ;\n }"}
{"idx": 17520, "target": 0, "func": "static size_t LMBCSConversionWorker ( UConverterDataLMBCS * extraInfo , ulmbcs_byte_t group , ulmbcs_byte_t * pStartLMBCS , UChar * pUniChar , ulmbcs_byte_t * lastConverterIndex , UBool * groups_tried ) {\n ulmbcs_byte_t * pLMBCS = pStartLMBCS ;\n UConverterSharedData * xcnv = extraInfo -> OptGrpConverter [ group ] ;\n int bytesConverted ;\n uint32_t value ;\n ulmbcs_byte_t firstByte ;\n U_ASSERT ( xcnv ) ;\n U_ASSERT ( group < ULMBCS_GRP_UNICODE ) ;\n bytesConverted = ucnv_MBCSFromUChar32 ( xcnv , * pUniChar , & value , FALSE ) ;\n if ( bytesConverted > 0 ) {\n firstByte = ( ulmbcs_byte_t ) ( value >> ( ( bytesConverted - 1 ) * 8 ) ) ;\n }\n else {\n groups_tried [ group ] = TRUE ;\n return 0 ;\n }\n * lastConverterIndex = group ;\n U_ASSERT ( ( firstByte <= ULMBCS_C0END ) || ( firstByte >= ULMBCS_C1START ) || ( group == ULMBCS_GRP_EXCEPT ) ) ;\n if ( group != ULMBCS_GRP_EXCEPT && extraInfo -> OptGroup != group ) {\n * pLMBCS ++ = group ;\n if ( bytesConverted == 1 && group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n * pLMBCS ++ = group ;\n }\n }\n if ( bytesConverted == 1 && firstByte < 0x20 ) return 0 ;\n switch ( bytesConverted ) {\n case 4 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 24 ) ;\n U_FALLTHROUGH ;\n case 3 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 16 ) ;\n U_FALLTHROUGH ;\n case 2 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 8 ) ;\n U_FALLTHROUGH ;\n case 1 : * pLMBCS ++ = ( ulmbcs_byte_t ) value ;\n U_FALLTHROUGH ;\n default : break ;\n }\n return ( pLMBCS - pStartLMBCS ) ;\n }"}
{"idx": 17521, "target": 0, "func": "static void gsm_a_dtap_tp_stat_init ( new_stat_tap_ui * new_stat , new_stat_tap_gui_init_cb gui_callback , void * gui_data ) {\n gsm_a_stat_init ( new_stat , gui_callback , gui_data , \"GSM A-I/F DTAP Special Conformance Testing Functions\" , gsm_a_dtap_msg_tp_strings ) ;\n }"}
{"idx": 17522, "target": 0, "func": "int xmlListSize ( xmlListPtr l ) {\n xmlLinkPtr lk ;\n int count = 0 ;\n if ( l == NULL ) return ( - 1 ) ;\n for ( lk = l -> sentinel -> next ;\n lk != l -> sentinel ;\n lk = lk -> next , count ++ ) ;\n return count ;\n }"}
{"idx": 17523, "target": 1, "func": "static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 17524, "target": 1, "func": "static void ImportCbYCrYQuantum ( const Image * image , QuantumInfo * quantum_info , const MagickSizeType number_pixels , const unsigned char * magick_restrict p , Quantum * magick_restrict q , ExceptionInfo * exception ) {\n QuantumAny range ;\n register ssize_t x ;\n unsigned int pixel ;\n assert ( image != ( Image * ) NULL ) ;\n assert ( image -> signature == MagickCoreSignature ) ;\n switch ( quantum_info -> depth ) {\n case 10 : {\n Quantum cbcr [ 4 ] ;\n pixel = 0 ;\n if ( quantum_info -> pack == MagickFalse ) {\n register ssize_t i ;\n size_t quantum ;\n ssize_t n ;\n n = 0 ;\n quantum = 0 ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x += 2 ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n switch ( n % 3 ) {\n case 0 : {\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n quantum = ( size_t ) ( ScaleShortToQuantum ( ( unsigned short ) ( ( ( pixel >> 22 ) & 0x3ff ) << 6 ) ) ) ;\n break ;\n }\n case 1 : {\n quantum = ( size_t ) ( ScaleShortToQuantum ( ( unsigned short ) ( ( ( pixel >> 12 ) & 0x3ff ) << 6 ) ) ) ;\n break ;\n }\n case 2 : {\n quantum = ( size_t ) ( ScaleShortToQuantum ( ( unsigned short ) ( ( ( pixel >> 2 ) & 0x3ff ) << 6 ) ) ) ;\n break ;\n }\n }\n cbcr [ i ] = ( Quantum ) ( quantum ) ;\n n ++ ;\n }\n p += quantum_info -> pad ;\n SetPixelRed ( image , cbcr [ 1 ] , q ) ;\n SetPixelGreen ( image , cbcr [ 0 ] , q ) ;\n SetPixelBlue ( image , cbcr [ 2 ] , q ) ;\n q += GetPixelChannels ( image ) ;\n SetPixelRed ( image , cbcr [ 3 ] , q ) ;\n SetPixelGreen ( image , cbcr [ 0 ] , q ) ;\n SetPixelBlue ( image , cbcr [ 2 ] , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n default : {\n range = GetQuantumRange ( quantum_info -> depth ) ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n }"}
{"idx": 17525, "target": 0, "func": "static int jpc_pi_nextlrcp ( register jpc_pi_t * pi ) {\n jpc_pchg_t * pchg ;\n int * prclyrno ;\n pchg = pi -> pchg ;\n if ( ! pi -> prgvolfirst ) {\n prclyrno = & pi -> pirlvl -> prclyrnos [ pi -> prcno ] ;\n goto skip ;\n }\n else {\n pi -> prgvolfirst = false ;\n }\n for ( pi -> lyrno = 0 ;\n pi -> lyrno < pi -> numlyrs && pi -> lyrno < JAS_CAST ( int , pchg -> lyrnoend ) ;\n ++ pi -> lyrno ) {\n for ( pi -> rlvlno = pchg -> rlvlnostart ;\n pi -> rlvlno < pi -> maxrlvls && pi -> rlvlno < pchg -> rlvlnoend ;\n ++ pi -> rlvlno ) {\n for ( pi -> compno = pchg -> compnostart , pi -> picomp = & pi -> picomps [ pi -> compno ] ;\n pi -> compno < pi -> numcomps && pi -> compno < JAS_CAST ( int , pchg -> compnoend ) ;\n ++ pi -> compno , ++ pi -> picomp ) {\n if ( pi -> rlvlno >= pi -> picomp -> numrlvls ) {\n continue ;\n }\n pi -> pirlvl = & pi -> picomp -> pirlvls [ pi -> rlvlno ] ;\n for ( pi -> prcno = 0 , prclyrno = pi -> pirlvl -> prclyrnos ;\n pi -> prcno < pi -> pirlvl -> numprcs ;\n ++ pi -> prcno , ++ prclyrno ) {\n if ( pi -> lyrno >= * prclyrno ) {\n * prclyrno = pi -> lyrno ;\n ++ ( * prclyrno ) ;\n return 0 ;\n }\n skip : ;\n }\n }\n }\n }\n return 1 ;\n }"}
{"idx": 17526, "target": 0, "func": "void append_stmt_result ( DYNAMIC_STRING * ds , MYSQL_STMT * stmt , MYSQL_FIELD * fields , uint num_fields ) {\n MYSQL_BIND * my_bind ;\n my_bool * is_null ;\n ulong * length ;\n uint i ;\n int error ;\n my_bind = ( MYSQL_BIND * ) my_malloc ( num_fields * sizeof ( MYSQL_BIND ) , MYF ( MY_WME | MY_FAE | MY_ZEROFILL ) ) ;\n length = ( ulong * ) my_malloc ( num_fields * sizeof ( ulong ) , MYF ( MY_WME | MY_FAE ) ) ;\n is_null = ( my_bool * ) my_malloc ( num_fields * sizeof ( my_bool ) , MYF ( MY_WME | MY_FAE ) ) ;\n for ( i = 0 ;\n i < num_fields ;\n i ++ ) {\n uint max_length = fields [ i ] . max_length + 1 ;\n my_bind [ i ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ i ] . buffer = my_malloc ( max_length , MYF ( MY_WME | MY_FAE ) ) ;\n my_bind [ i ] . buffer_length = max_length ;\n my_bind [ i ] . is_null = & is_null [ i ] ;\n my_bind [ i ] . length = & length [ i ] ;\n DBUG_PRINT ( \"bind\" , ( \"col[%d]: buffer_type: %d, buffer_length: %lu\" , i , my_bind [ i ] . buffer_type , my_bind [ i ] . buffer_length ) ) ;\n }\n if ( mysql_stmt_bind_result ( stmt , my_bind ) ) die ( \"mysql_stmt_bind_result failed: %d: %s\" , mysql_stmt_errno ( stmt ) , mysql_stmt_error ( stmt ) ) ;\n while ( ( error = mysql_stmt_fetch ( stmt ) ) == 0 ) {\n for ( i = 0 ;\n i < num_fields ;\n i ++ ) append_field ( ds , i , & fields [ i ] , ( char * ) my_bind [ i ] . buffer , * my_bind [ i ] . length , * my_bind [ i ] . is_null ) ;\n if ( ! display_result_vertically ) dynstr_append_mem ( ds , \"\\n\" , 1 ) ;\n }\n if ( error != MYSQL_NO_DATA ) die ( \"mysql_fetch didn't end with MYSQL_NO_DATA from statement: \" \"error: %d\" , error ) ;\n if ( mysql_stmt_fetch ( stmt ) != MYSQL_NO_DATA ) die ( \"mysql_fetch didn't end with MYSQL_NO_DATA from statement: %d %s\" , mysql_stmt_errno ( stmt ) , mysql_stmt_error ( stmt ) ) ;\n for ( i = 0 ;\n i < num_fields ;\n i ++ ) {\n my_free ( my_bind [ i ] . buffer ) ;\n }\n my_free ( my_bind ) ;\n my_free ( length ) ;\n my_free ( is_null ) ;\n }"}
{"idx": 17527, "target": 0, "func": "int main ( int argc ATTRIBUTE_UNUSED , char * * argv ATTRIBUTE_UNUSED ) {\n printf ( \"%s : Regexp support not compiled in\\n\" , argv [ 0 ] ) ;\n return ( 0 ) ;\n }"}
{"idx": 17528, "target": 0, "func": "static int dissect_rsl_ie_nch_drx ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_tree * ie_tree ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_NCH_DRX_INF ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 2 , ett_ie_nch_drx , NULL , \"NCH DRX information IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n offset ++ ;\n return offset ;\n }"}
{"idx": 17529, "target": 0, "func": "static int selinux_inode_getsecctx ( struct inode * inode , void * * ctx , u32 * ctxlen ) {\n int len = 0 ;\n len = selinux_inode_getsecurity ( inode , XATTR_SELINUX_SUFFIX , ctx , true ) ;\n if ( len < 0 ) return len ;\n * ctxlen = len ;\n return 0 ;\n }"}
{"idx": 17530, "target": 0, "func": "static inline int sign_only ( int v ) {\n return v ? FFSIGN ( v ) : 0 ;\n }"}
{"idx": 17531, "target": 0, "func": "static void dissect_zcl_pwr_prof_getoverallschedpricersp ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_currency , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_price , tvb , * offset , 4 , ENC_LITTLE_ENDIAN ) ;\n * offset += 4 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_price_trailing_digit , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n }"}
{"idx": 17532, "target": 0, "func": "static void reset_fpf_position ( TWO_PASS * p , const FIRSTPASS_STATS * position ) {\n p -> stats_in = position ;\n }"}
{"idx": 17533, "target": 0, "func": "static struct cgroup_process_info * lxc_cgroupfs_create ( const char * name , const char * path_pattern , struct cgroup_meta_data * meta_data , const char * sub_pattern ) {\n char * * cgroup_path_components = NULL ;\n char * * p = NULL ;\n char * path_so_far = NULL ;\n char * * new_cgroup_paths = NULL ;\n char * * new_cgroup_paths_sub = NULL ;\n struct cgroup_mount_point * mp ;\n struct cgroup_hierarchy * h ;\n struct cgroup_process_info * base_info = NULL ;\n struct cgroup_process_info * info_ptr ;\n int saved_errno ;\n int r ;\n unsigned suffix = 0 ;\n bool had_sub_pattern = false ;\n size_t i ;\n if ( ! is_valid_cgroup ( name ) ) {\n ERROR ( \"Invalid cgroup name: '%s'\" , name ) ;\n errno = EINVAL ;\n return NULL ;\n }\n if ( ! strstr ( path_pattern , \"%n\" ) ) {\n ERROR ( \"Invalid cgroup path pattern: '%s';\n contains no %%n for specifying container name\" , path_pattern ) ;\n errno = EINVAL ;\n return NULL ;\n }\n base_info = ( path_pattern [ 0 ] == '/' ) ? lxc_cgroup_process_info_get_init ( meta_data ) : lxc_cgroup_process_info_get_self ( meta_data ) ;\n if ( ! base_info ) return NULL ;\n new_cgroup_paths = calloc ( meta_data -> maximum_hierarchy + 1 , sizeof ( char * ) ) ;\n if ( ! new_cgroup_paths ) goto out_initial_error ;\n new_cgroup_paths_sub = calloc ( meta_data -> maximum_hierarchy + 1 , sizeof ( char * ) ) ;\n if ( ! new_cgroup_paths_sub ) goto out_initial_error ;\n for ( info_ptr = base_info ;\n info_ptr ;\n info_ptr = info_ptr -> next ) {\n h = info_ptr -> hierarchy ;\n mp = lxc_cgroup_find_mount_point ( h , info_ptr -> cgroup_path , true ) ;\n if ( ! mp ) {\n ERROR ( \"Could not find writable mount point for cgroup hierarchy %d while trying to create cgroup.\" , h -> index ) ;\n goto out_initial_error ;\n }\n info_ptr -> designated_mount_point = mp ;\n if ( lxc_string_in_array ( \"ns\" , ( const char * * ) h -> subsystems ) ) continue ;\n if ( handle_cgroup_settings ( mp , info_ptr -> cgroup_path ) < 0 ) {\n ERROR ( \"Could not set clone_children to 1 for cpuset hierarchy in parent cgroup.\" ) ;\n goto out_initial_error ;\n }\n }\n cgroup_path_components = lxc_normalize_path ( path_pattern ) ;\n if ( ! cgroup_path_components ) goto out_initial_error ;\n for ( p = cgroup_path_components ;\n * p || ( sub_pattern && ! had_sub_pattern ) ;\n p ++ ) {\n char * p_eff = * p ? * p : ( char * ) sub_pattern ;\n bool contains_name = strstr ( p_eff , \"%n\" ) ;\n char * current_component = NULL ;\n char * current_subpath = NULL ;\n char * current_entire_path = NULL ;\n char * parts [ 3 ] ;\n size_t j = 0 ;\n i = 0 ;\n if ( ! * p ) {\n had_sub_pattern = true ;\n p -- ;\n }\n goto find_name_on_this_level ;\n cleanup_name_on_this_level : for ( j = 0 , info_ptr = base_info ;\n j < i && info_ptr ;\n info_ptr = info_ptr -> next , j ++ ) {\n r = remove_cgroup ( info_ptr -> designated_mount_point , info_ptr -> created_paths [ info_ptr -> created_paths_count - 1 ] , false ) ;\n if ( r < 0 ) WARN ( \"could not clean up cgroup we created when trying to create container\" ) ;\n free ( info_ptr -> created_paths [ info_ptr -> created_paths_count - 1 ] ) ;\n info_ptr -> created_paths [ -- info_ptr -> created_paths_count ] = NULL ;\n }\n if ( current_component != current_subpath ) free ( current_subpath ) ;\n if ( current_component != p_eff ) free ( current_component ) ;\n current_component = current_subpath = NULL ;\n ++ suffix ;\n find_name_on_this_level : if ( contains_name && suffix > 0 ) {\n char * buf = calloc ( strlen ( name ) + 32 , 1 ) ;\n if ( ! buf ) goto out_initial_error ;\n snprintf ( buf , strlen ( name ) + 32 , \"%s-%u\" , name , suffix ) ;\n current_component = lxc_string_replace ( \"%n\" , buf , p_eff ) ;\n free ( buf ) ;\n }\n else {\n current_component = contains_name ? lxc_string_replace ( \"%n\" , name , p_eff ) : p_eff ;\n }\n parts [ 0 ] = path_so_far ;\n parts [ 1 ] = current_component ;\n parts [ 2 ] = NULL ;\n current_subpath = path_so_far ? lxc_string_join ( \"/\" , ( const char * * ) parts , false ) : current_component ;\n for ( i = 0 , info_ptr = base_info ;\n info_ptr ;\n info_ptr = info_ptr -> next , i ++ ) {\n char * parts2 [ 3 ] ;\n if ( lxc_string_in_array ( \"ns\" , ( const char * * ) info_ptr -> hierarchy -> subsystems ) ) continue ;\n current_entire_path = NULL ;\n parts2 [ 0 ] = ! strcmp ( info_ptr -> cgroup_path , \"/\" ) ? \"\" : info_ptr -> cgroup_path ;\n parts2 [ 1 ] = current_subpath ;\n parts2 [ 2 ] = NULL ;\n current_entire_path = lxc_string_join ( \"/\" , ( const char * * ) parts2 , false ) ;\n if ( ! * p ) {\n free ( new_cgroup_paths_sub [ i ] ) ;\n new_cgroup_paths_sub [ i ] = strdup ( current_entire_path ) ;\n if ( ! new_cgroup_paths_sub [ i ] ) goto cleanup_from_error ;\n }\n else {\n free ( new_cgroup_paths [ i ] ) ;\n new_cgroup_paths [ i ] = strdup ( current_entire_path ) ;\n if ( ! new_cgroup_paths [ i ] ) goto cleanup_from_error ;\n }\n r = create_cgroup ( info_ptr -> designated_mount_point , current_entire_path ) ;\n if ( r < 0 && errno == EEXIST && contains_name ) {\n free ( current_entire_path ) ;\n current_entire_path = NULL ;\n goto cleanup_name_on_this_level ;\n }\n else if ( r < 0 && errno != EEXIST ) {\n SYSERROR ( \"Could not create cgroup '%s' in '%s'.\" , current_entire_path , info_ptr -> designated_mount_point -> mount_point ) ;\n goto cleanup_from_error ;\n }\n else if ( r == 0 ) {\n r = lxc_grow_array ( ( void * * * ) & info_ptr -> created_paths , & info_ptr -> created_paths_capacity , info_ptr -> created_paths_count + 1 , 8 ) ;\n if ( r < 0 ) goto cleanup_from_error ;\n if ( ! init_cpuset_if_needed ( info_ptr -> designated_mount_point , current_entire_path ) ) {\n ERROR ( \"Failed to initialize cpuset for '%s' in '%s'.\" , current_entire_path , info_ptr -> designated_mount_point -> mount_point ) ;\n goto cleanup_from_error ;\n }\n info_ptr -> created_paths [ info_ptr -> created_paths_count ++ ] = current_entire_path ;\n }\n else {\n if ( handle_cgroup_settings ( info_ptr -> designated_mount_point , info_ptr -> cgroup_path ) < 0 ) {\n ERROR ( \"Could not set clone_children to 1 for cpuset hierarchy in pre-existing cgroup.\" ) ;\n goto cleanup_from_error ;\n }\n if ( ! init_cpuset_if_needed ( info_ptr -> designated_mount_point , info_ptr -> cgroup_path ) ) {\n ERROR ( \"Failed to initialize cpuset in pre-existing '%s'.\" , info_ptr -> cgroup_path ) ;\n goto cleanup_from_error ;\n }\n free ( current_entire_path ) ;\n current_entire_path = NULL ;\n }\n }\n free ( path_so_far ) ;\n path_so_far = strdup ( current_subpath ) ;\n if ( ! path_so_far ) goto cleanup_from_error ;\n if ( current_component != current_subpath ) free ( current_subpath ) ;\n if ( current_component != p_eff ) free ( current_component ) ;\n current_component = current_subpath = NULL ;\n continue ;\n cleanup_from_error : saved_errno = errno ;\n if ( current_component != current_subpath ) free ( current_subpath ) ;\n if ( current_component != p_eff ) free ( current_component ) ;\n free ( current_entire_path ) ;\n errno = saved_errno ;\n goto out_initial_error ;\n }\n for ( i = 0 , info_ptr = base_info ;\n info_ptr ;\n info_ptr = info_ptr -> next , i ++ ) {\n if ( lxc_string_in_array ( \"ns\" , ( const char * * ) info_ptr -> hierarchy -> subsystems ) ) continue ;\n free ( info_ptr -> cgroup_path ) ;\n info_ptr -> cgroup_path = new_cgroup_paths [ i ] ;\n info_ptr -> cgroup_path_sub = new_cgroup_paths_sub [ i ] ;\n }\n free ( new_cgroup_paths ) ;\n free ( new_cgroup_paths_sub ) ;\n free ( path_so_far ) ;\n lxc_free_array ( ( void * * ) cgroup_path_components , free ) ;\n return base_info ;\n out_initial_error : saved_errno = errno ;\n free ( path_so_far ) ;\n lxc_cgroup_process_info_free_and_remove ( base_info ) ;\n lxc_free_array ( ( void * * ) new_cgroup_paths , free ) ;\n lxc_free_array ( ( void * * ) new_cgroup_paths_sub , free ) ;\n lxc_free_array ( ( void * * ) cgroup_path_components , free ) ;\n errno = saved_errno ;\n return NULL ;\n }"}
{"idx": 17534, "target": 0, "func": "int phar_open_or_create_tar ( char * fname , int fname_len , char * alias , int alias_len , int is_data , int options , phar_archive_data * * pphar , char * * error TSRMLS_DC ) {\n phar_archive_data * phar ;\n int ret = phar_create_or_parse_filename ( fname , fname_len , alias , alias_len , is_data , options , & phar , error TSRMLS_CC ) ;\n if ( FAILURE == ret ) {\n return FAILURE ;\n }\n if ( pphar ) {\n * pphar = phar ;\n }\n phar -> is_data = is_data ;\n if ( phar -> is_tar ) {\n return ret ;\n }\n if ( phar -> is_brandnew ) {\n phar -> is_tar = 1 ;\n phar -> is_zip = 0 ;\n phar -> internal_file_start = 0 ;\n return SUCCESS ;\n }\n if ( error ) {\n spprintf ( error , 4096 , \"phar tar error: \\\"%s\\\" already exists as a regular phar and must be deleted from disk prior to creating as a tar-based phar\" , fname ) ;\n }\n return FAILURE ;\n }"}
{"idx": 17535, "target": 0, "func": "static int dissect_h245_AL2HeaderFEC ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_AL2HeaderFEC , AL2HeaderFEC_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 17536, "target": 0, "func": "static void * cgfs_init ( const char * name ) {\n struct cgfs_data * d ;\n d = malloc ( sizeof ( * d ) ) ;\n if ( ! d ) return NULL ;\n memset ( d , 0 , sizeof ( * d ) ) ;\n d -> name = strdup ( name ) ;\n if ( ! d -> name ) goto err1 ;\n d -> cgroup_pattern = lxc_global_config_value ( \"lxc.cgroup.pattern\" ) ;\n d -> meta = lxc_cgroup_load_meta ( ) ;\n if ( ! d -> meta ) {\n ERROR ( \"cgroupfs failed to detect cgroup metadata\" ) ;\n goto err2 ;\n }\n return d ;\n err2 : free ( d -> name ) ;\n err1 : free ( d ) ;\n return NULL ;\n }"}
{"idx": 17537, "target": 0, "func": "int dissect_ber_constrained_set_of ( gboolean implicit_tag , asn1_ctx_t * actx , proto_tree * parent_tree , tvbuff_t * tvb , int offset , gint32 min_len , gint32 max_len , const ber_sequence_t * seq , gint hf_id , gint ett_id ) {\n return dissect_ber_sq_of ( implicit_tag , BER_UNI_TAG_SET , actx , parent_tree , tvb , offset , min_len , max_len , seq , hf_id , ett_id ) ;\n }"}
{"idx": 17538, "target": 0, "func": "int vp9_refining_search_sad_c ( const MACROBLOCK * x , MV * ref_mv , int error_per_bit , int search_range , const vp9_variance_fn_ptr_t * fn_ptr , const MV * center_mv ) {\n const MACROBLOCKD * const xd = & x -> e_mbd ;\n const MV neighbors [ 4 ] = {\n {\n - 1 , 0 }\n , {\n 0 , - 1 }\n , {\n 0 , 1 }\n , {\n 1 , 0 }\n }\n ;\n const struct buf_2d * const what = & x -> plane [ 0 ] . src ;\n const struct buf_2d * const in_what = & xd -> plane [ 0 ] . pre [ 0 ] ;\n const MV fcenter_mv = {\n center_mv -> row >> 3 , center_mv -> col >> 3 }\n ;\n const uint8_t * best_address = get_buf_from_mv ( in_what , ref_mv ) ;\n unsigned int best_sad = fn_ptr -> sdf ( what -> buf , what -> stride , best_address , in_what -> stride ) + mvsad_err_cost ( x , ref_mv , & fcenter_mv , error_per_bit ) ;\n int i , j ;\n for ( i = 0 ;\n i < search_range ;\n i ++ ) {\n int best_site = - 1 ;\n const int all_in = ( ( ref_mv -> row - 1 ) > x -> mv_row_min ) & ( ( ref_mv -> row + 1 ) < x -> mv_row_max ) & ( ( ref_mv -> col - 1 ) > x -> mv_col_min ) & ( ( ref_mv -> col + 1 ) < x -> mv_col_max ) ;\n if ( all_in ) {\n unsigned int sads [ 4 ] ;\n const uint8_t * const positions [ 4 ] = {\n best_address - in_what -> stride , best_address - 1 , best_address + 1 , best_address + in_what -> stride }\n ;\n fn_ptr -> sdx4df ( what -> buf , what -> stride , positions , in_what -> stride , sads ) ;\n for ( j = 0 ;\n j < 4 ;\n ++ j ) {\n if ( sads [ j ] < best_sad ) {\n const MV mv = {\n ref_mv -> row + neighbors [ j ] . row , ref_mv -> col + neighbors [ j ] . col }\n ;\n sads [ j ] += mvsad_err_cost ( x , & mv , & fcenter_mv , error_per_bit ) ;\n if ( sads [ j ] < best_sad ) {\n best_sad = sads [ j ] ;\n best_site = j ;\n }\n }\n }\n }\n else {\n for ( j = 0 ;\n j < 4 ;\n ++ j ) {\n const MV mv = {\n ref_mv -> row + neighbors [ j ] . row , ref_mv -> col + neighbors [ j ] . col }\n ;\n if ( is_mv_in ( x , & mv ) ) {\n unsigned int sad = fn_ptr -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , & mv ) , in_what -> stride ) ;\n if ( sad < best_sad ) {\n sad += mvsad_err_cost ( x , & mv , & fcenter_mv , error_per_bit ) ;\n if ( sad < best_sad ) {\n best_sad = sad ;\n best_site = j ;\n }\n }\n }\n }\n }\n if ( best_site == - 1 ) {\n break ;\n }\n else {\n ref_mv -> row += neighbors [ best_site ] . row ;\n ref_mv -> col += neighbors [ best_site ] . col ;\n best_address = get_buf_from_mv ( in_what , ref_mv ) ;\n }\n }\n return best_sad ;\n }"}
{"idx": 17539, "target": 0, "func": "int isprint ( int c ) {\n return ( ( c > 31 && c < 127 ) ? 1 : 0 ) ;\n }"}
{"idx": 17540, "target": 0, "func": "static void write_image_file ( const vpx_image_t * img , const int planes [ 3 ] , FILE * file ) {\n int i , y ;\n # if CONFIG_VP9 && CONFIG_VP9_HIGHBITDEPTH const int bytes_per_sample = ( ( img -> fmt & VPX_IMG_FMT_HIGHBITDEPTH ) ? 2 : 1 ) ;\n # else const int bytes_per_sample = 1 ;\n # endif for ( i = 0 ;\n i < 3 ;\n ++ i ) {\n const int plane = planes [ i ] ;\n const unsigned char * buf = img -> planes [ plane ] ;\n const int stride = img -> stride [ plane ] ;\n const int w = vpx_img_plane_width ( img , plane ) ;\n const int h = vpx_img_plane_height ( img , plane ) ;\n for ( y = 0 ;\n y < h ;\n ++ y ) {\n fwrite ( buf , bytes_per_sample , w , file ) ;\n buf += stride ;\n }\n }\n }"}
{"idx": 17541, "target": 0, "func": "void pdo_dbstmt_free_storage ( pdo_stmt_t * stmt TSRMLS_DC ) {\n php_pdo_stmt_delref ( stmt TSRMLS_CC ) ;\n }"}
{"idx": 17542, "target": 0, "func": "static int dissect_h225_T_t35CountryCode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 255U , & t35CountryCode , FALSE ) ;\n return offset ;\n }"}
{"idx": 17543, "target": 0, "func": "static MAIN_WINDOW_REC * find_window_with_room_right ( void ) {\n MAIN_WINDOW_REC * biggest_rec ;\n GSList * tmp ;\n int space , biggest ;\n biggest = 0 ;\n biggest_rec = NULL ;\n for ( tmp = mainwindows ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n MAIN_WINDOW_REC * rec = tmp -> data ;\n space = MAIN_WINDOW_TEXT_WIDTH ( rec ) ;\n if ( space >= 2 * NEW_WINDOW_WIDTH && space > biggest ) {\n biggest = space ;\n biggest_rec = rec ;\n }\n }\n return biggest_rec ;\n }"}
{"idx": 17544, "target": 0, "func": "static uint8_t vmxnet_tx_pkt_get_gso_type ( struct VmxnetTxPkt * pkt , bool tso_enable ) {\n uint8_t rc = VIRTIO_NET_HDR_GSO_NONE ;\n uint16_t l3_proto ;\n l3_proto = eth_get_l3_proto ( pkt -> vec [ VMXNET_TX_PKT_L2HDR_FRAG ] . iov_base , pkt -> vec [ VMXNET_TX_PKT_L2HDR_FRAG ] . iov_len ) ;\n if ( ! tso_enable ) {\n goto func_exit ;\n }\n rc = eth_get_gso_type ( l3_proto , pkt -> vec [ VMXNET_TX_PKT_L3HDR_FRAG ] . iov_base , pkt -> l4proto ) ;\n func_exit : return rc ;\n }"}
{"idx": 17545, "target": 0, "func": "static int dsa_pkey_ctrl ( EVP_PKEY * pkey , int op , long arg1 , void * arg2 ) {\n switch ( op ) {\n case ASN1_PKEY_CTRL_PKCS7_SIGN : if ( arg1 == 0 ) {\n int snid , hnid ;\n X509_ALGOR * alg1 , * alg2 ;\n PKCS7_SIGNER_INFO_get0_algs ( arg2 , NULL , & alg1 , & alg2 ) ;\n if ( alg1 == NULL || alg1 -> algorithm == NULL ) return - 1 ;\n hnid = OBJ_obj2nid ( alg1 -> algorithm ) ;\n if ( hnid == NID_undef ) return - 1 ;\n if ( ! OBJ_find_sigid_by_algs ( & snid , hnid , EVP_PKEY_id ( pkey ) ) ) return - 1 ;\n X509_ALGOR_set0 ( alg2 , OBJ_nid2obj ( snid ) , V_ASN1_UNDEF , 0 ) ;\n }\n return 1 ;\n # ifndef OPENSSL_NO_CMS case ASN1_PKEY_CTRL_CMS_SIGN : if ( arg1 == 0 ) {\n int snid , hnid ;\n X509_ALGOR * alg1 , * alg2 ;\n CMS_SignerInfo_get0_algs ( arg2 , NULL , NULL , & alg1 , & alg2 ) ;\n if ( alg1 == NULL || alg1 -> algorithm == NULL ) return - 1 ;\n hnid = OBJ_obj2nid ( alg1 -> algorithm ) ;\n if ( hnid == NID_undef ) return - 1 ;\n if ( ! OBJ_find_sigid_by_algs ( & snid , hnid , EVP_PKEY_id ( pkey ) ) ) return - 1 ;\n X509_ALGOR_set0 ( alg2 , OBJ_nid2obj ( snid ) , V_ASN1_UNDEF , 0 ) ;\n }\n return 1 ;\n case ASN1_PKEY_CTRL_CMS_RI_TYPE : * ( int * ) arg2 = CMS_RECIPINFO_NONE ;\n return 1 ;\n # endif case ASN1_PKEY_CTRL_DEFAULT_MD_NID : * ( int * ) arg2 = NID_sha256 ;\n return 2 ;\n default : return - 2 ;\n }\n }"}
{"idx": 17546, "target": 0, "func": "bool cmp_items ( Item * a , Item * b ) {\n return a -> eq ( b , FALSE ) ;\n }"}
{"idx": 17547, "target": 0, "func": "static int rv40_decode_intra_types ( RV34DecContext * r , GetBitContext * gb , int8_t * dst ) {\n MpegEncContext * s = & r -> s ;\n int i , j , k , v ;\n int A , B , C ;\n int pattern ;\n int8_t * ptr ;\n for ( i = 0 ;\n i < 4 ;\n i ++ , dst += r -> intra_types_stride ) {\n if ( ! i && s -> first_slice_line ) {\n pattern = get_vlc2 ( gb , aic_top_vlc . table , AIC_TOP_BITS , 1 ) ;\n dst [ 0 ] = ( pattern >> 2 ) & 2 ;\n dst [ 1 ] = ( pattern >> 1 ) & 2 ;\n dst [ 2 ] = pattern & 2 ;\n dst [ 3 ] = ( pattern << 1 ) & 2 ;\n continue ;\n }\n ptr = dst ;\n for ( j = 0 ;\n j < 4 ;\n j ++ ) {\n A = ptr [ - r -> intra_types_stride + 1 ] ;\n B = ptr [ - r -> intra_types_stride ] ;\n C = ptr [ - 1 ] ;\n pattern = A + ( B << 4 ) + ( C << 8 ) ;\n for ( k = 0 ;\n k < MODE2_PATTERNS_NUM ;\n k ++ ) if ( pattern == rv40_aic_table_index [ k ] ) break ;\n if ( j < 3 && k < MODE2_PATTERNS_NUM ) {\n v = get_vlc2 ( gb , aic_mode2_vlc [ k ] . table , AIC_MODE2_BITS , 2 ) ;\n * ptr ++ = v / 9 ;\n * ptr ++ = v % 9 ;\n j ++ ;\n }\n else {\n if ( B != - 1 && C != - 1 ) v = get_vlc2 ( gb , aic_mode1_vlc [ B + C * 10 ] . table , AIC_MODE1_BITS , 1 ) ;\n else {\n v = 0 ;\n switch ( C ) {\n case - 1 : if ( B < 2 ) v = get_bits1 ( gb ) ^ 1 ;\n break ;\n case 0 : case 2 : v = ( get_bits1 ( gb ) ^ 1 ) << 1 ;\n break ;\n }\n }\n * ptr ++ = v ;\n }\n }\n }\n return 0 ;\n }"}
{"idx": 17548, "target": 0, "func": "static uint32_t e1000e_mac_read_clr4 ( E1000ECore * core , int index ) {\n uint32_t ret = core -> mac [ index ] ;\n core -> mac [ index ] = 0 ;\n return ret ;\n }"}
{"idx": 17549, "target": 0, "func": "TSReturnCode TSHttpTxnCacheLookupUrlSet ( TSHttpTxn txnp , TSMBuffer bufp , TSMLoc obj ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_url_handle ( obj ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n URL u , * l_url ;\n u . m_heap = ( ( HdrHeapSDKHandle * ) bufp ) -> m_heap ;\n u . m_url_impl = ( URLImpl * ) obj ;\n if ( ! u . valid ( ) ) {\n return TS_ERROR ;\n }\n l_url = sm -> t_state . cache_info . lookup_url ;\n if ( ! l_url ) {\n sm -> t_state . cache_info . lookup_url_storage . create ( nullptr ) ;\n sm -> t_state . cache_info . lookup_url = & ( sm -> t_state . cache_info . lookup_url_storage ) ;\n l_url = sm -> t_state . cache_info . lookup_url ;\n }\n if ( ! l_url || ! l_url -> valid ( ) ) {\n return TS_ERROR ;\n }\n else {\n l_url -> copy ( & u ) ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 17550, "target": 0, "func": "static inline const unsigned char * PushDoublePixel ( QuantumInfo * quantum_info , const unsigned char * magick_restrict pixels , double * pixel ) {\n double * p ;\n unsigned char quantum [ 8 ] ;\n if ( quantum_info -> endian == LSBEndian ) {\n quantum [ 0 ] = ( * pixels ++ ) ;\n quantum [ 1 ] = ( * pixels ++ ) ;\n quantum [ 2 ] = ( * pixels ++ ) ;\n quantum [ 3 ] = ( * pixels ++ ) ;\n quantum [ 4 ] = ( * pixels ++ ) ;\n quantum [ 5 ] = ( * pixels ++ ) ;\n quantum [ 6 ] = ( * pixels ++ ) ;\n quantum [ 7 ] = ( * pixels ++ ) ;\n p = ( double * ) quantum ;\n * pixel = ( * p ) ;\n * pixel -= quantum_info -> minimum ;\n * pixel *= quantum_info -> scale ;\n return ( pixels ) ;\n }\n quantum [ 7 ] = ( * pixels ++ ) ;\n quantum [ 6 ] = ( * pixels ++ ) ;\n quantum [ 5 ] = ( * pixels ++ ) ;\n quantum [ 4 ] = ( * pixels ++ ) ;\n quantum [ 3 ] = ( * pixels ++ ) ;\n quantum [ 2 ] = ( * pixels ++ ) ;\n quantum [ 1 ] = ( * pixels ++ ) ;\n quantum [ 0 ] = ( * pixels ++ ) ;\n p = ( double * ) quantum ;\n * pixel = ( * p ) ;\n * pixel -= quantum_info -> minimum ;\n * pixel *= quantum_info -> scale ;\n return ( pixels ) ;\n }"}
{"idx": 17551, "target": 0, "func": "void unireg_end ( void ) {\n clean_up ( 1 ) ;\n my_thread_end ( ) ;\n # if defined ( SIGNALS_DONT_BREAK_READ ) exit ( 0 ) ;\n # else pthread_exit ( 0 ) ;\n # endif }"}
{"idx": 17552, "target": 0, "func": "int ImagingFliDecode ( Imaging im , ImagingCodecState state , UINT8 * buf , int bytes ) {\n UINT8 * ptr ;\n int framesize ;\n int c , chunks ;\n int l , lines ;\n int i , j , x = 0 , y , ymax ;\n if ( bytes < 4 ) return 0 ;\n ptr = buf ;\n framesize = I32 ( ptr ) ;\n if ( framesize < I32 ( ptr ) ) return 0 ;\n if ( I16 ( ptr + 4 ) != 0xF1FA ) {\n state -> errcode = IMAGING_CODEC_UNKNOWN ;\n return - 1 ;\n }\n chunks = I16 ( ptr + 6 ) ;\n ptr += 16 ;\n for ( c = 0 ;\n c < chunks ;\n c ++ ) {\n UINT8 * data = ptr + 6 ;\n switch ( I16 ( ptr + 4 ) ) {\n case 4 : case 11 : break ;\n case 7 : lines = I16 ( data ) ;\n data += 2 ;\n for ( l = y = 0 ;\n l < lines && y < state -> ysize ;\n l ++ , y ++ ) {\n UINT8 * buf = ( UINT8 * ) im -> image [ y ] ;\n int p , packets ;\n packets = I16 ( data ) ;\n data += 2 ;\n while ( packets & 0x8000 ) {\n if ( packets & 0x4000 ) {\n y += 65536 - packets ;\n if ( y >= state -> ysize ) {\n state -> errcode = IMAGING_CODEC_OVERRUN ;\n return - 1 ;\n }\n buf = ( UINT8 * ) im -> image [ y ] ;\n }\n else {\n buf [ state -> xsize - 1 ] = ( UINT8 ) packets ;\n }\n packets = I16 ( data ) ;\n data += 2 ;\n }\n for ( p = x = 0 ;\n p < packets ;\n p ++ ) {\n x += data [ 0 ] ;\n if ( data [ 1 ] >= 128 ) {\n i = 256 - data [ 1 ] ;\n if ( x + i + i > state -> xsize ) break ;\n for ( j = 0 ;\n j < i ;\n j ++ ) {\n buf [ x ++ ] = data [ 2 ] ;\n buf [ x ++ ] = data [ 3 ] ;\n }\n data += 2 + 2 ;\n }\n else {\n i = 2 * ( int ) data [ 1 ] ;\n if ( x + i > state -> xsize ) break ;\n memcpy ( buf + x , data + 2 , i ) ;\n data += 2 + i ;\n x += i ;\n }\n }\n if ( p < packets ) break ;\n }\n if ( l < lines ) {\n state -> errcode = IMAGING_CODEC_OVERRUN ;\n return - 1 ;\n }\n break ;\n case 12 : y = I16 ( data ) ;\n ymax = y + I16 ( data + 2 ) ;\n data += 4 ;\n for ( ;\n y < ymax && y < state -> ysize ;\n y ++ ) {\n UINT8 * out = ( UINT8 * ) im -> image [ y ] ;\n int p , packets = * data ++ ;\n for ( p = x = 0 ;\n p < packets ;\n p ++ , x += i ) {\n x += data [ 0 ] ;\n if ( data [ 1 ] & 0x80 ) {\n i = 256 - data [ 1 ] ;\n if ( x + i > state -> xsize ) break ;\n memset ( out + x , data [ 2 ] , i ) ;\n data += 3 ;\n }\n else {\n i = data [ 1 ] ;\n if ( x + i > state -> xsize ) break ;\n memcpy ( out + x , data + 2 , i ) ;\n data += i + 2 ;\n }\n }\n if ( p < packets ) break ;\n }\n if ( y < ymax ) {\n state -> errcode = IMAGING_CODEC_OVERRUN ;\n return - 1 ;\n }\n break ;\n case 13 : for ( y = 0 ;\n y < state -> ysize ;\n y ++ ) memset ( im -> image [ y ] , 0 , state -> xsize ) ;\n break ;\n case 15 : for ( y = 0 ;\n y < state -> ysize ;\n y ++ ) {\n UINT8 * out = ( UINT8 * ) im -> image [ y ] ;\n data += 1 ;\n for ( x = 0 ;\n x < state -> xsize ;\n x += i ) {\n if ( data [ 0 ] & 0x80 ) {\n i = 256 - data [ 0 ] ;\n if ( x + i > state -> xsize ) break ;\n memcpy ( out + x , data + 1 , i ) ;\n data += i + 1 ;\n }\n else {\n i = data [ 0 ] ;\n if ( x + i > state -> xsize ) break ;\n memset ( out + x , data [ 1 ] , i ) ;\n data += 2 ;\n }\n }\n if ( x != state -> xsize ) {\n state -> errcode = IMAGING_CODEC_OVERRUN ;\n return - 1 ;\n }\n }\n break ;\n case 16 : for ( y = 0 ;\n y < state -> ysize ;\n y ++ ) {\n UINT8 * buf = ( UINT8 * ) im -> image [ y ] ;\n memcpy ( buf , data , state -> xsize ) ;\n data += state -> xsize ;\n }\n break ;\n case 18 : break ;\n default : state -> errcode = IMAGING_CODEC_UNKNOWN ;\n return - 1 ;\n }\n ptr += I32 ( ptr ) ;\n }\n return - 1 ;\n }"}
{"idx": 17553, "target": 0, "func": "static int dissect_h225_AddressPattern ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_AddressPattern , AddressPattern_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 17554, "target": 0, "func": "TSMLoc TSMimeHdrFieldFind ( TSMBuffer bufp , TSMLoc hdr_obj , const char * name , int length ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( hdr_obj ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( hdr_obj ) == TS_SUCCESS ) ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) name ) == TS_SUCCESS ) ;\n if ( length == - 1 ) {\n length = strlen ( name ) ;\n }\n MIMEHdrImpl * mh = _hdr_mloc_to_mime_hdr_impl ( hdr_obj ) ;\n MIMEField * f = mime_hdr_field_find ( mh , name , length ) ;\n if ( f == nullptr ) {\n return TS_NULL_MLOC ;\n }\n MIMEFieldSDKHandle * h = sdk_alloc_field_handle ( bufp , mh ) ;\n h -> field_ptr = f ;\n return reinterpret_cast < TSMLoc > ( h ) ;\n }"}
{"idx": 17555, "target": 0, "func": "static void test_ps_query_cache ( ) {\n MYSQL * lmysql = mysql ;\n MYSQL_STMT * stmt ;\n int rc ;\n MYSQL_BIND p_bind [ 2 ] , r_bind [ 2 ] ;\n int32 p_int_data , r_int_data ;\n char p_str_data [ 32 ] , r_str_data [ 32 ] ;\n unsigned long p_str_length , r_str_length ;\n MYSQL_RES * r_metadata ;\n char query [ MAX_TEST_QUERY_LENGTH ] ;\n uint hits1 , hits2 ;\n enum enum_test_ps_query_cache {\n TEST_QCACHE_ON = 0 , TEST_QCACHE_ON_WITH_OTHER_CONN , TEST_QCACHE_OFF_ON , TEST_QCACHE_ON_OFF }\n ;\n enum enum_test_ps_query_cache iteration ;\n myheader ( \"test_ps_query_cache\" ) ;\n rc = mysql_query ( mysql , \"SET SQL_MODE=''\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"drop table if exists t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t1 (id1 int(11) NOT NULL default '0', \" \"value2 varchar(100), value1 varchar(100))\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t1 values (1, 'hh', 'hh'), \" \"(2, 'hh', 'hh'), (1, 'ii', 'ii'), (2, 'ii', 'ii')\" ) ;\n myquery ( rc ) ;\n for ( iteration = TEST_QCACHE_ON ;\n iteration <= TEST_QCACHE_ON_OFF ;\n iteration ++ ) {\n switch ( iteration ) {\n case TEST_QCACHE_ON : case TEST_QCACHE_ON_OFF : rc = mysql_query ( lmysql , \"set global query_cache_size=1000000\" ) ;\n myquery ( rc ) ;\n break ;\n case TEST_QCACHE_OFF_ON : rc = mysql_query ( lmysql , \"set global query_cache_size=0\" ) ;\n myquery ( rc ) ;\n break ;\n case TEST_QCACHE_ON_WITH_OTHER_CONN : if ( ! opt_silent ) fprintf ( stdout , \"\\n Establishing a test connection ...\" ) ;\n if ( ! ( lmysql = mysql_client_init ( NULL ) ) ) {\n printf ( \"mysql_client_init() failed\" ) ;\n DIE_UNLESS ( 0 ) ;\n }\n if ( ! ( mysql_real_connect ( lmysql , opt_host , opt_user , opt_password , current_db , opt_port , opt_unix_socket , 0 ) ) ) {\n printf ( \"connection failed\" ) ;\n mysql_close ( lmysql ) ;\n DIE_UNLESS ( 0 ) ;\n }\n rc = mysql_query ( lmysql , \"SET SQL_MODE=''\" ) ;\n myquery ( rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"OK\" ) ;\n }\n strmov ( query , \"select id1, value1 from t1 where id1= ? or \" \"CONVERT(value1 USING utf8)= ?\" ) ;\n stmt = mysql_simple_prepare ( lmysql , query ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 2 ) ;\n switch ( iteration ) {\n case TEST_QCACHE_OFF_ON : rc = mysql_query ( lmysql , \"set global query_cache_size=1000000\" ) ;\n myquery ( rc ) ;\n break ;\n case TEST_QCACHE_ON_OFF : rc = mysql_query ( lmysql , \"set global query_cache_size=0\" ) ;\n myquery ( rc ) ;\n default : break ;\n }\n memset ( p_bind , 0 , sizeof ( p_bind ) ) ;\n p_bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n p_bind [ 0 ] . buffer = ( void * ) & p_int_data ;\n p_bind [ 1 ] . buffer_type = MYSQL_TYPE_VAR_STRING ;\n p_bind [ 1 ] . buffer = ( void * ) p_str_data ;\n p_bind [ 1 ] . buffer_length = array_elements ( p_str_data ) ;\n p_bind [ 1 ] . length = & p_str_length ;\n rc = mysql_stmt_bind_param ( stmt , p_bind ) ;\n check_execute ( stmt , rc ) ;\n p_int_data = 1 ;\n strmov ( p_str_data , \"hh\" ) ;\n p_str_length = strlen ( p_str_data ) ;\n memset ( r_bind , 0 , sizeof ( r_bind ) ) ;\n r_bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n r_bind [ 0 ] . buffer = ( void * ) & r_int_data ;\n r_bind [ 1 ] . buffer_type = MYSQL_TYPE_VAR_STRING ;\n r_bind [ 1 ] . buffer = ( void * ) r_str_data ;\n r_bind [ 1 ] . buffer_length = array_elements ( r_str_data ) ;\n r_bind [ 1 ] . length = & r_str_length ;\n rc = mysql_stmt_bind_result ( stmt , r_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n test_ps_query_cache_result ( 1 , \"hh\" , 2 , 2 , \"hh\" , 2 , 1 , \"ii\" , 2 ) ;\n hits1 = query_cache_hits ( lmysql ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n test_ps_query_cache_result ( 1 , \"hh\" , 2 , 2 , \"hh\" , 2 , 1 , \"ii\" , 2 ) ;\n hits2 = query_cache_hits ( lmysql ) ;\n switch ( iteration ) {\n case TEST_QCACHE_ON_WITH_OTHER_CONN : case TEST_QCACHE_ON : DIE_UNLESS ( hits2 - hits1 == 1 ) ;\n break ;\n case TEST_QCACHE_OFF_ON : case TEST_QCACHE_ON_OFF : DIE_UNLESS ( hits2 - hits1 == 0 ) ;\n break ;\n }\n strmov ( p_str_data , \"ii\" ) ;\n p_str_length = strlen ( p_str_data ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n test_ps_query_cache_result ( 1 , \"hh\" , 2 , 1 , \"ii\" , 2 , 2 , \"ii\" , 2 ) ;\n hits1 = query_cache_hits ( lmysql ) ;\n switch ( iteration ) {\n case TEST_QCACHE_ON : case TEST_QCACHE_OFF_ON : case TEST_QCACHE_ON_OFF : DIE_UNLESS ( hits2 - hits1 == 0 ) ;\n break ;\n case TEST_QCACHE_ON_WITH_OTHER_CONN : DIE_UNLESS ( hits1 - hits2 == 1 ) ;\n break ;\n }\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n test_ps_query_cache_result ( 1 , \"hh\" , 2 , 1 , \"ii\" , 2 , 2 , \"ii\" , 2 ) ;\n hits2 = query_cache_hits ( lmysql ) ;\n mysql_stmt_close ( stmt ) ;\n switch ( iteration ) {\n case TEST_QCACHE_ON : DIE_UNLESS ( hits2 - hits1 == 1 ) ;\n break ;\n case TEST_QCACHE_OFF_ON : case TEST_QCACHE_ON_OFF : DIE_UNLESS ( hits2 - hits1 == 0 ) ;\n break ;\n case TEST_QCACHE_ON_WITH_OTHER_CONN : DIE_UNLESS ( hits2 - hits1 == 1 ) ;\n break ;\n }\n }\n if ( lmysql != mysql ) mysql_close ( lmysql ) ;\n rc = mysql_query ( mysql , \"set global query_cache_size=DEFAULT\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 17556, "target": 0, "func": "TSReturnCode TSHttpTxnCacheLookupStatusSet ( TSHttpTxn txnp , int cachelookup ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n HttpTransact : : CacheLookupResult_t * sm_status = & ( sm -> t_state . cache_lookup_result ) ;\n if ( * sm_status == HttpTransact : : CACHE_LOOKUP_MISS && cachelookup != TS_CACHE_LOOKUP_MISS ) {\n return TS_ERROR ;\n }\n if ( cachelookup == TS_CACHE_LOOKUP_MISS && * sm_status != HttpTransact : : CACHE_LOOKUP_MISS ) {\n sm -> t_state . api_cleanup_cache_read = true ;\n ink_assert ( sm -> t_state . transact_return_point != nullptr ) ;\n sm -> t_state . transact_return_point = HttpTransact : : HandleCacheOpenRead ;\n }\n switch ( cachelookup ) {\n case TS_CACHE_LOOKUP_MISS : * sm_status = HttpTransact : : CACHE_LOOKUP_MISS ;\n break ;\n case TS_CACHE_LOOKUP_HIT_STALE : * sm_status = HttpTransact : : CACHE_LOOKUP_HIT_STALE ;\n break ;\n case TS_CACHE_LOOKUP_HIT_FRESH : * sm_status = HttpTransact : : CACHE_LOOKUP_HIT_FRESH ;\n break ;\n default : return TS_ERROR ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 17557, "target": 1, "func": "void vmmouse_set_data ( const uint32_t * data ) {\n CPUX86State * env = cpu_single_env ;\n env -> regs [ R_EAX ] = data [ 0 ] ;\n env -> regs [ R_EBX ] = data [ 1 ] ;\n env -> regs [ R_ECX ] = data [ 2 ] ;\n env -> regs [ R_EDX ] = data [ 3 ] ;\n env -> regs [ R_ESI ] = data [ 4 ] ;\n env -> regs [ R_EDI ] = data [ 5 ] ;\n }"}
{"idx": 17558, "target": 0, "func": "char * xps_parse_point ( char * s_in , float * x , float * y ) {\n char * s_out = s_in ;\n float xy [ 2 ] ;\n s_out = xps_parse_float_array ( s_out , 2 , & xy [ 0 ] ) ;\n * x = xy [ 0 ] ;\n * y = xy [ 1 ] ;\n return s_out ;\n }"}
{"idx": 17559, "target": 1, "func": "static void output ( code_int code , GifCtx * ctx ) {\n ctx -> cur_accum &= masks [ ctx -> cur_bits ] ;\n if ( ctx -> cur_bits > 0 ) {\n ctx -> cur_accum |= ( ( long ) code << ctx -> cur_bits ) ;\n }\n else {\n ctx -> cur_accum = code ;\n }\n ctx -> cur_bits += ctx -> n_bits ;\n while ( ctx -> cur_bits >= 8 ) {\n char_out ( ( unsigned int ) ( ctx -> cur_accum & 0xff ) , ctx ) ;\n ctx -> cur_accum >>= 8 ;\n ctx -> cur_bits -= 8 ;\n }\n if ( ctx -> free_ent > ctx -> maxcode || ctx -> clear_flg ) {\n if ( ctx -> clear_flg ) {\n ctx -> maxcode = MAXCODE ( ctx -> n_bits = ctx -> g_init_bits ) ;\n ctx -> clear_flg = 0 ;\n }\n else {\n ++ ( ctx -> n_bits ) ;\n if ( ctx -> n_bits == maxbits ) {\n ctx -> maxcode = maxmaxcode ;\n }\n else {\n ctx -> maxcode = MAXCODE ( ctx -> n_bits ) ;\n }\n }\n }\n if ( code == ctx -> EOFCode ) {\n while ( ctx -> cur_bits > 0 ) {\n char_out ( ( unsigned int ) ( ctx -> cur_accum & 0xff ) , ctx ) ;\n ctx -> cur_accum >>= 8 ;\n ctx -> cur_bits -= 8 ;\n }\n flush_char ( ctx ) ;\n }\n }"}
{"idx": 17560, "target": 0, "func": "int ssl23_get_client_hello ( SSL * s ) {\n char buf_space [ 11 ] ;\n char * buf = & ( buf_space [ 0 ] ) ;\n unsigned char * p , * d , * d_len , * dd ;\n unsigned int i ;\n unsigned int csl , sil , cl ;\n int n = 0 , j ;\n int type = 0 ;\n int v [ 2 ] ;\n if ( s -> state == SSL23_ST_SR_CLNT_HELLO_A ) {\n v [ 0 ] = v [ 1 ] = 0 ;\n if ( ! ssl3_setup_buffers ( s ) ) goto err ;\n n = ssl23_read_bytes ( s , sizeof buf_space ) ;\n if ( n != sizeof buf_space ) return ( n ) ;\n p = s -> packet ;\n memcpy ( buf , p , n ) ;\n if ( ( p [ 0 ] & 0x80 ) && ( p [ 2 ] == SSL2_MT_CLIENT_HELLO ) ) {\n if ( ( p [ 3 ] == 0x00 ) && ( p [ 4 ] == 0x02 ) ) {\n v [ 0 ] = p [ 3 ] ;\n v [ 1 ] = p [ 4 ] ;\n if ( ! ( s -> options & SSL_OP_NO_SSLv2 ) ) type = 1 ;\n }\n else if ( p [ 3 ] == SSL3_VERSION_MAJOR ) {\n v [ 0 ] = p [ 3 ] ;\n v [ 1 ] = p [ 4 ] ;\n if ( p [ 4 ] >= TLS1_VERSION_MINOR ) {\n if ( p [ 4 ] >= TLS1_2_VERSION_MINOR && ! ( s -> options & SSL_OP_NO_TLSv1_2 ) ) {\n s -> version = TLS1_2_VERSION ;\n s -> state = SSL23_ST_SR_CLNT_HELLO_B ;\n }\n else if ( p [ 4 ] >= TLS1_1_VERSION_MINOR && ! ( s -> options & SSL_OP_NO_TLSv1_1 ) ) {\n s -> version = TLS1_1_VERSION ;\n s -> state = SSL23_ST_SR_CLNT_HELLO_B ;\n }\n else if ( ! ( s -> options & SSL_OP_NO_TLSv1 ) ) {\n s -> version = TLS1_VERSION ;\n s -> state = SSL23_ST_SR_CLNT_HELLO_B ;\n }\n else if ( ! ( s -> options & SSL_OP_NO_SSLv3 ) ) {\n s -> version = SSL3_VERSION ;\n s -> state = SSL23_ST_SR_CLNT_HELLO_B ;\n }\n else if ( ! ( s -> options & SSL_OP_NO_SSLv2 ) ) {\n type = 1 ;\n }\n }\n else if ( ! ( s -> options & SSL_OP_NO_SSLv3 ) ) {\n s -> version = SSL3_VERSION ;\n s -> state = SSL23_ST_SR_CLNT_HELLO_B ;\n }\n else if ( ! ( s -> options & SSL_OP_NO_SSLv2 ) ) type = 1 ;\n }\n }\n else if ( ( p [ 0 ] == SSL3_RT_HANDSHAKE ) && ( p [ 1 ] == SSL3_VERSION_MAJOR ) && ( p [ 5 ] == SSL3_MT_CLIENT_HELLO ) && ( ( p [ 3 ] == 0 && p [ 4 ] < 5 ) || ( p [ 9 ] >= p [ 1 ] ) ) ) {\n v [ 0 ] = p [ 1 ] ;\n if ( p [ 3 ] == 0 && p [ 4 ] < 6 ) {\n SSLerr ( SSL_F_SSL23_GET_CLIENT_HELLO , SSL_R_RECORD_TOO_SMALL ) ;\n goto err ;\n }\n if ( p [ 9 ] > SSL3_VERSION_MAJOR ) v [ 1 ] = 0xff ;\n else v [ 1 ] = p [ 10 ] ;\n if ( v [ 1 ] >= TLS1_VERSION_MINOR ) {\n if ( v [ 1 ] >= TLS1_2_VERSION_MINOR && ! ( s -> options & SSL_OP_NO_TLSv1_2 ) ) {\n s -> version = TLS1_2_VERSION ;\n type = 3 ;\n }\n else if ( v [ 1 ] >= TLS1_1_VERSION_MINOR && ! ( s -> options & SSL_OP_NO_TLSv1_1 ) ) {\n s -> version = TLS1_1_VERSION ;\n type = 3 ;\n }\n else if ( ! ( s -> options & SSL_OP_NO_TLSv1 ) ) {\n s -> version = TLS1_VERSION ;\n type = 3 ;\n }\n else if ( ! ( s -> options & SSL_OP_NO_SSLv3 ) ) {\n s -> version = SSL3_VERSION ;\n type = 3 ;\n }\n }\n else {\n if ( ! ( s -> options & SSL_OP_NO_SSLv3 ) ) {\n s -> version = SSL3_VERSION ;\n type = 3 ;\n }\n else if ( ! ( s -> options & SSL_OP_NO_TLSv1 ) ) {\n s -> version = TLS1_VERSION ;\n type = 3 ;\n }\n }\n }\n else if ( ( strncmp ( \"GET \" , ( char * ) p , 4 ) == 0 ) || ( strncmp ( \"POST \" , ( char * ) p , 5 ) == 0 ) || ( strncmp ( \"HEAD \" , ( char * ) p , 5 ) == 0 ) || ( strncmp ( \"PUT \" , ( char * ) p , 4 ) == 0 ) ) {\n SSLerr ( SSL_F_SSL23_GET_CLIENT_HELLO , SSL_R_HTTP_REQUEST ) ;\n goto err ;\n }\n else if ( strncmp ( \"CONNECT\" , ( char * ) p , 7 ) == 0 ) {\n SSLerr ( SSL_F_SSL23_GET_CLIENT_HELLO , SSL_R_HTTPS_PROXY_REQUEST ) ;\n goto err ;\n }\n }\n OPENSSL_assert ( s -> version <= TLS_MAX_VERSION ) ;\n # ifdef OPENSSL_FIPS if ( FIPS_mode ( ) && ( s -> version < TLS1_VERSION ) ) {\n SSLerr ( SSL_F_SSL23_GET_CLIENT_HELLO , SSL_R_ONLY_TLS_ALLOWED_IN_FIPS_MODE ) ;\n goto err ;\n }\n # endif if ( s -> state == SSL23_ST_SR_CLNT_HELLO_B ) {\n type = 2 ;\n p = s -> packet ;\n v [ 0 ] = p [ 3 ] ;\n v [ 1 ] = p [ 4 ] ;\n n = ( ( p [ 0 ] & 0x7f ) << 8 ) | p [ 1 ] ;\n if ( n > ( 1024 * 4 ) ) {\n SSLerr ( SSL_F_SSL23_GET_CLIENT_HELLO , SSL_R_RECORD_TOO_LARGE ) ;\n goto err ;\n }\n if ( n < 9 ) {\n SSLerr ( SSL_F_SSL23_GET_CLIENT_HELLO , SSL_R_RECORD_LENGTH_MISMATCH ) ;\n goto err ;\n }\n j = ssl23_read_bytes ( s , n + 2 ) ;\n if ( j <= 0 ) return ( j ) ;\n ssl3_finish_mac ( s , s -> packet + 2 , s -> packet_length - 2 ) ;\n if ( s -> msg_callback ) s -> msg_callback ( 0 , SSL2_VERSION , 0 , s -> packet + 2 , s -> packet_length - 2 , s , s -> msg_callback_arg ) ;\n p = s -> packet ;\n p += 5 ;\n n2s ( p , csl ) ;\n n2s ( p , sil ) ;\n n2s ( p , cl ) ;\n d = ( unsigned char * ) s -> init_buf -> data ;\n if ( ( csl + sil + cl + 11 ) != s -> packet_length ) {\n SSLerr ( SSL_F_SSL23_GET_CLIENT_HELLO , SSL_R_RECORD_LENGTH_MISMATCH ) ;\n goto err ;\n }\n * ( d ++ ) = SSL3_MT_CLIENT_HELLO ;\n d_len = d ;\n d += 3 ;\n * ( d ++ ) = SSL3_VERSION_MAJOR ;\n * ( d ++ ) = v [ 1 ] ;\n i = ( cl > SSL3_RANDOM_SIZE ) ? SSL3_RANDOM_SIZE : cl ;\n memset ( d , 0 , SSL3_RANDOM_SIZE ) ;\n memcpy ( & ( d [ SSL3_RANDOM_SIZE - i ] ) , & ( p [ csl + sil ] ) , i ) ;\n d += SSL3_RANDOM_SIZE ;\n * ( d ++ ) = 0 ;\n j = 0 ;\n dd = d ;\n d += 2 ;\n for ( i = 0 ;\n i < csl ;\n i += 3 ) {\n if ( p [ i ] != 0 ) continue ;\n * ( d ++ ) = p [ i + 1 ] ;\n * ( d ++ ) = p [ i + 2 ] ;\n j += 2 ;\n }\n s2n ( j , dd ) ;\n * ( d ++ ) = 1 ;\n * ( d ++ ) = 0 ;\n # if 0 p = p + csl + sil + cl ;\n while ( p < s -> packet + s -> packet_length ) {\n * ( d ++ ) = * ( p ++ ) ;\n }\n # endif i = ( d - ( unsigned char * ) s -> init_buf -> data ) - 4 ;\n l2n3 ( ( long ) i , d_len ) ;\n s -> s3 -> tmp . reuse_message = 1 ;\n s -> s3 -> tmp . message_type = SSL3_MT_CLIENT_HELLO ;\n s -> s3 -> tmp . message_size = i ;\n }\n if ( type == 1 ) {\n # ifdef OPENSSL_NO_SSL2 SSLerr ( SSL_F_SSL23_GET_CLIENT_HELLO , SSL_R_UNSUPPORTED_PROTOCOL ) ;\n goto err ;\n # else if ( s -> s2 == NULL ) {\n if ( ! ssl2_new ( s ) ) goto err ;\n }\n else ssl2_clear ( s ) ;\n if ( s -> s3 != NULL ) ssl3_free ( s ) ;\n if ( ! BUF_MEM_grow_clean ( s -> init_buf , SSL2_MAX_RECORD_LENGTH_3_BYTE_HEADER ) ) {\n goto err ;\n }\n s -> state = SSL2_ST_GET_CLIENT_HELLO_A ;\n if ( s -> options & SSL_OP_NO_TLSv1 && s -> options & SSL_OP_NO_SSLv3 ) s -> s2 -> ssl2_rollback = 0 ;\n else s -> s2 -> ssl2_rollback = 1 ;\n s -> rstate = SSL_ST_READ_HEADER ;\n s -> packet_length = n ;\n s -> packet = & ( s -> s2 -> rbuf [ 0 ] ) ;\n memcpy ( s -> packet , buf , n ) ;\n s -> s2 -> rbuf_left = n ;\n s -> s2 -> rbuf_offs = 0 ;\n s -> method = SSLv2_server_method ( ) ;\n s -> handshake_func = s -> method -> ssl_accept ;\n # endif }\n if ( ( type == 2 ) || ( type == 3 ) ) {\n const SSL_METHOD * new_method ;\n new_method = ssl23_get_server_method ( s -> version ) ;\n if ( new_method == NULL ) {\n SSLerr ( SSL_F_SSL23_GET_CLIENT_HELLO , SSL_R_UNSUPPORTED_PROTOCOL ) ;\n goto err ;\n }\n s -> method = new_method ;\n if ( ! ssl_init_wbio_buffer ( s , 1 ) ) goto err ;\n s -> state = SSL3_ST_SR_CLNT_HELLO_A ;\n if ( type == 3 ) {\n s -> rstate = SSL_ST_READ_HEADER ;\n s -> packet_length = n ;\n if ( s -> s3 -> rbuf . buf == NULL ) if ( ! ssl3_setup_read_buffer ( s ) ) goto err ;\n s -> packet = & ( s -> s3 -> rbuf . buf [ 0 ] ) ;\n memcpy ( s -> packet , buf , n ) ;\n s -> s3 -> rbuf . left = n ;\n s -> s3 -> rbuf . offset = 0 ;\n }\n else {\n s -> packet_length = 0 ;\n s -> s3 -> rbuf . left = 0 ;\n s -> s3 -> rbuf . offset = 0 ;\n }\n # if 0 s -> client_version = ( v [ 0 ] << 8 ) | v [ 1 ] ;\n # endif s -> handshake_func = s -> method -> ssl_accept ;\n }\n if ( ( type < 1 ) || ( type > 3 ) ) {\n SSLerr ( SSL_F_SSL23_GET_CLIENT_HELLO , SSL_R_UNKNOWN_PROTOCOL ) ;\n goto err ;\n }\n s -> init_num = 0 ;\n if ( buf != buf_space ) OPENSSL_free ( buf ) ;\n return ( SSL_accept ( s ) ) ;\n err : if ( buf != buf_space ) OPENSSL_free ( buf ) ;\n return ( - 1 ) ;\n }"}
{"idx": 17561, "target": 0, "func": "int main_file_exists ( main_file * xfile ) {\n struct stat sbuf ;\n return stat ( xfile -> filename , & sbuf ) == 0 && S_ISREG ( sbuf . st_mode ) ;\n }"}
{"idx": 17562, "target": 0, "func": "static void sbr_gain_calc ( AACContext * ac , SpectralBandReplication * sbr , SBRData * ch_data , const int e_a [ 2 ] ) {\n int e , k , m ;\n static const float limgain [ 4 ] = {\n 0.70795 , 1.0 , 1.41254 , 10000000000 }\n ;\n for ( e = 0 ;\n e < ch_data -> bs_num_env ;\n e ++ ) {\n int delta = ! ( ( e == e_a [ 1 ] ) || ( e == e_a [ 0 ] ) ) ;\n for ( k = 0 ;\n k < sbr -> n_lim ;\n k ++ ) {\n float gain_boost , gain_max ;\n float sum [ 2 ] = {\n 0.0f , 0.0f }\n ;\n for ( m = sbr -> f_tablelim [ k ] - sbr -> kx [ 1 ] ;\n m < sbr -> f_tablelim [ k + 1 ] - sbr -> kx [ 1 ] ;\n m ++ ) {\n const float temp = sbr -> e_origmapped [ e ] [ m ] / ( 1.0f + sbr -> q_mapped [ e ] [ m ] ) ;\n sbr -> q_m [ e ] [ m ] = sqrtf ( temp * sbr -> q_mapped [ e ] [ m ] ) ;\n sbr -> s_m [ e ] [ m ] = sqrtf ( temp * ch_data -> s_indexmapped [ e + 1 ] [ m ] ) ;\n if ( ! sbr -> s_mapped [ e ] [ m ] ) {\n sbr -> gain [ e ] [ m ] = sqrtf ( sbr -> e_origmapped [ e ] [ m ] / ( ( 1.0f + sbr -> e_curr [ e ] [ m ] ) * ( 1.0f + sbr -> q_mapped [ e ] [ m ] * delta ) ) ) ;\n }\n else {\n sbr -> gain [ e ] [ m ] = sqrtf ( sbr -> e_origmapped [ e ] [ m ] * sbr -> q_mapped [ e ] [ m ] / ( ( 1.0f + sbr -> e_curr [ e ] [ m ] ) * ( 1.0f + sbr -> q_mapped [ e ] [ m ] ) ) ) ;\n }\n }\n for ( m = sbr -> f_tablelim [ k ] - sbr -> kx [ 1 ] ;\n m < sbr -> f_tablelim [ k + 1 ] - sbr -> kx [ 1 ] ;\n m ++ ) {\n sum [ 0 ] += sbr -> e_origmapped [ e ] [ m ] ;\n sum [ 1 ] += sbr -> e_curr [ e ] [ m ] ;\n }\n gain_max = limgain [ sbr -> bs_limiter_gains ] * sqrtf ( ( FLT_EPSILON + sum [ 0 ] ) / ( FLT_EPSILON + sum [ 1 ] ) ) ;\n gain_max = FFMIN ( 100000.f , gain_max ) ;\n for ( m = sbr -> f_tablelim [ k ] - sbr -> kx [ 1 ] ;\n m < sbr -> f_tablelim [ k + 1 ] - sbr -> kx [ 1 ] ;\n m ++ ) {\n float q_m_max = sbr -> q_m [ e ] [ m ] * gain_max / sbr -> gain [ e ] [ m ] ;\n sbr -> q_m [ e ] [ m ] = FFMIN ( sbr -> q_m [ e ] [ m ] , q_m_max ) ;\n sbr -> gain [ e ] [ m ] = FFMIN ( sbr -> gain [ e ] [ m ] , gain_max ) ;\n }\n sum [ 0 ] = sum [ 1 ] = 0.0f ;\n for ( m = sbr -> f_tablelim [ k ] - sbr -> kx [ 1 ] ;\n m < sbr -> f_tablelim [ k + 1 ] - sbr -> kx [ 1 ] ;\n m ++ ) {\n sum [ 0 ] += sbr -> e_origmapped [ e ] [ m ] ;\n sum [ 1 ] += sbr -> e_curr [ e ] [ m ] * sbr -> gain [ e ] [ m ] * sbr -> gain [ e ] [ m ] + sbr -> s_m [ e ] [ m ] * sbr -> s_m [ e ] [ m ] + ( delta && ! sbr -> s_m [ e ] [ m ] ) * sbr -> q_m [ e ] [ m ] * sbr -> q_m [ e ] [ m ] ;\n }\n gain_boost = sqrtf ( ( FLT_EPSILON + sum [ 0 ] ) / ( FLT_EPSILON + sum [ 1 ] ) ) ;\n gain_boost = FFMIN ( 1.584893192f , gain_boost ) ;\n for ( m = sbr -> f_tablelim [ k ] - sbr -> kx [ 1 ] ;\n m < sbr -> f_tablelim [ k + 1 ] - sbr -> kx [ 1 ] ;\n m ++ ) {\n sbr -> gain [ e ] [ m ] *= gain_boost ;\n sbr -> q_m [ e ] [ m ] *= gain_boost ;\n sbr -> s_m [ e ] [ m ] *= gain_boost ;\n }\n }\n }\n }"}
{"idx": 17563, "target": 1, "func": "static gboolean k12_read ( wtap * wth , int * err , gchar * * err_info , gint64 * data_offset ) {\n k12_t * k12 = ( k12_t * ) wth -> priv ;\n k12_src_desc_t * src_desc ;\n guint8 * buffer ;\n gint64 offset ;\n gint len ;\n guint32 type ;\n guint32 src_id ;\n offset = file_tell ( wth -> fh ) ;\n do {\n if ( k12 -> num_of_records == 0 ) {\n * err = 0 ;\n return FALSE ;\n }\n K12_DBG ( 5 , ( \"k12_read: offset=%i\" , offset ) ) ;\n * data_offset = offset ;\n len = get_record ( k12 , wth -> fh , offset , FALSE , err , err_info ) ;\n if ( len < 0 ) {\n return FALSE ;\n }\n else if ( len == 0 ) {\n * err = WTAP_ERR_SHORT_READ ;\n return FALSE ;\n }\n else if ( len < K12_RECORD_SRC_ID + 4 ) {\n * err = WTAP_ERR_BAD_FILE ;\n * err_info = g_strdup_printf ( \"data record length %d too short\" , len ) ;\n return FALSE ;\n }\n k12 -> num_of_records -- ;\n buffer = k12 -> seq_read_buff ;\n type = pntoh32 ( buffer + K12_RECORD_TYPE ) ;\n src_id = pntoh32 ( buffer + K12_RECORD_SRC_ID ) ;\n if ( ! ( src_desc = ( k12_src_desc_t * ) g_hash_table_lookup ( k12 -> src_by_id , GUINT_TO_POINTER ( src_id ) ) ) ) {\n src_desc = ( k12_src_desc_t * ) g_hash_table_lookup ( k12 -> src_by_id , GUINT_TO_POINTER ( src_id & K12_RECORD_SRC_ID_MASK ) ) ;\n }\n K12_DBG ( 5 , ( \"k12_read: record type=%x src_id=%x\" , type , src_id ) ) ;\n offset += len ;\n }\n while ( ( ( type & K12_MASK_PACKET ) != K12_REC_PACKET && ( type & K12_MASK_PACKET ) != K12_REC_D0020 ) || ! src_id || ! src_desc ) ;\n process_packet_data ( & wth -> phdr , wth -> frame_buffer , buffer , len , k12 ) ;\n return TRUE ;\n }"}
{"idx": 17564, "target": 0, "func": "static guint call_list_length ( call_list * list ) {\n guint count = 0 ;\n for ( ;\n list ;\n list = list -> next ) {\n count ++ ;\n }\n return count ;\n }"}
{"idx": 17565, "target": 0, "func": "static int dissect_dns_tcp ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n tcp_dissect_pdus ( tvb , pinfo , tree , dns_desegment , 2 , get_dns_pdu_len , dissect_dns_tcp_pdu , data ) ;\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 17566, "target": 0, "func": "static TRBCCode xhci_get_port_bandwidth ( XHCIState * xhci , uint64_t pctx ) {\n dma_addr_t ctx ;\n uint8_t bw_ctx [ xhci -> numports + 1 ] ;\n DPRINTF ( \"xhci_get_port_bandwidth()\\n\" ) ;\n ctx = xhci_mask64 ( pctx ) ;\n DPRINTF ( \"xhci: bandwidth context at \" DMA_ADDR_FMT \"\\n\" , ctx ) ;\n bw_ctx [ 0 ] = 0 ;\n memset ( & bw_ctx [ 1 ] , 80 , xhci -> numports ) ;\n pci_dma_write ( PCI_DEVICE ( xhci ) , ctx , bw_ctx , sizeof ( bw_ctx ) ) ;\n return CC_SUCCESS ;\n }"}
{"idx": 17567, "target": 0, "func": "static int set_metadata_int ( AVDictionary * * dict , const char * key , int value , int allow_zero ) {\n if ( value || allow_zero ) {\n return av_dict_set_int ( dict , key , value , 0 ) ;\n }\n return 0 ;\n }"}
{"idx": 17568, "target": 0, "func": "static void ttfdumpmetrics ( SplineChar * sc , struct glyphinfo * gi , DBounds * b ) {\n int width = sc -> width ;\n int vwidth = sc -> vwidth ;\n if ( width < 0 ) width = 0 ;\n if ( vwidth < 0 ) vwidth = 0 ;\n if ( sc -> ttf_glyph <= gi -> lasthwidth ) putshort ( gi -> hmtx , width ) ;\n putshort ( gi -> hmtx , b -> minx ) ;\n if ( sc -> parent -> hasvmetrics ) {\n if ( sc -> ttf_glyph <= gi -> lastvwidth ) putshort ( gi -> vmtx , vwidth ) ;\n putshort ( gi -> vmtx , sc -> parent -> ascent - b -> maxy ) ;\n }\n if ( sc -> ttf_glyph == gi -> lasthwidth ) gi -> hfullcnt = sc -> ttf_glyph + 1 ;\n if ( sc -> ttf_glyph == gi -> lastvwidth ) gi -> vfullcnt = sc -> ttf_glyph + 1 ;\n }"}
{"idx": 17569, "target": 0, "func": "DSA * d2i_DSAPrivateKey_bio ( BIO * bp , DSA * * dsa ) {\n return ASN1_d2i_bio_of ( DSA , DSA_new , d2i_DSAPrivateKey , bp , dsa ) ;\n }"}
{"idx": 17570, "target": 0, "func": "static void usb_xhci_realize ( struct PCIDevice * dev , Error * * errp ) {\n int i , ret ;\n Error * err = NULL ;\n XHCIState * xhci = XHCI ( dev ) ;\n dev -> config [ PCI_CLASS_PROG ] = 0x30 ;\n dev -> config [ PCI_INTERRUPT_PIN ] = 0x01 ;\n dev -> config [ PCI_CACHE_LINE_SIZE ] = 0x10 ;\n dev -> config [ 0x60 ] = 0x30 ;\n if ( xhci -> numintrs > MAXINTRS ) {\n xhci -> numintrs = MAXINTRS ;\n }\n while ( xhci -> numintrs & ( xhci -> numintrs - 1 ) ) {\n xhci -> numintrs ++ ;\n }\n if ( xhci -> numintrs < 1 ) {\n xhci -> numintrs = 1 ;\n }\n if ( xhci -> numslots > MAXSLOTS ) {\n xhci -> numslots = MAXSLOTS ;\n }\n if ( xhci -> numslots < 1 ) {\n xhci -> numslots = 1 ;\n }\n if ( xhci_get_flag ( xhci , XHCI_FLAG_ENABLE_STREAMS ) ) {\n xhci -> max_pstreams_mask = 7 ;\n }\n else {\n xhci -> max_pstreams_mask = 0 ;\n }\n if ( xhci -> msi != ON_OFF_AUTO_OFF ) {\n ret = msi_init ( dev , 0x70 , xhci -> numintrs , true , false , & err ) ;\n assert ( ! ret || ret == - ENOTSUP ) ;\n if ( ret && xhci -> msi == ON_OFF_AUTO_ON ) {\n error_append_hint ( & err , \"You have to use msi=auto (default) or \" \"msi=off with this machine type.\\n\" ) ;\n error_propagate ( errp , err ) ;\n return ;\n }\n assert ( ! err || xhci -> msi == ON_OFF_AUTO_AUTO ) ;\n error_free ( err ) ;\n }\n usb_xhci_init ( xhci ) ;\n xhci -> mfwrap_timer = timer_new_ns ( QEMU_CLOCK_VIRTUAL , xhci_mfwrap_timer , xhci ) ;\n memory_region_init ( & xhci -> mem , OBJECT ( xhci ) , \"xhci\" , LEN_REGS ) ;\n memory_region_init_io ( & xhci -> mem_cap , OBJECT ( xhci ) , & xhci_cap_ops , xhci , \"capabilities\" , LEN_CAP ) ;\n memory_region_init_io ( & xhci -> mem_oper , OBJECT ( xhci ) , & xhci_oper_ops , xhci , \"operational\" , 0x400 ) ;\n memory_region_init_io ( & xhci -> mem_runtime , OBJECT ( xhci ) , & xhci_runtime_ops , xhci , \"runtime\" , LEN_RUNTIME ) ;\n memory_region_init_io ( & xhci -> mem_doorbell , OBJECT ( xhci ) , & xhci_doorbell_ops , xhci , \"doorbell\" , LEN_DOORBELL ) ;\n memory_region_add_subregion ( & xhci -> mem , 0 , & xhci -> mem_cap ) ;\n memory_region_add_subregion ( & xhci -> mem , OFF_OPER , & xhci -> mem_oper ) ;\n memory_region_add_subregion ( & xhci -> mem , OFF_RUNTIME , & xhci -> mem_runtime ) ;\n memory_region_add_subregion ( & xhci -> mem , OFF_DOORBELL , & xhci -> mem_doorbell ) ;\n for ( i = 0 ;\n i < xhci -> numports ;\n i ++ ) {\n XHCIPort * port = & xhci -> ports [ i ] ;\n uint32_t offset = OFF_OPER + 0x400 + 0x10 * i ;\n port -> xhci = xhci ;\n memory_region_init_io ( & port -> mem , OBJECT ( xhci ) , & xhci_port_ops , port , port -> name , 0x10 ) ;\n memory_region_add_subregion ( & xhci -> mem , offset , & port -> mem ) ;\n }\n pci_register_bar ( dev , 0 , PCI_BASE_ADDRESS_SPACE_MEMORY | PCI_BASE_ADDRESS_MEM_TYPE_64 , & xhci -> mem ) ;\n if ( pci_bus_is_express ( dev -> bus ) || xhci_get_flag ( xhci , XHCI_FLAG_FORCE_PCIE_ENDCAP ) ) {\n ret = pcie_endpoint_cap_init ( dev , 0xa0 ) ;\n assert ( ret >= 0 ) ;\n }\n if ( xhci -> msix != ON_OFF_AUTO_OFF ) {\n msix_init ( dev , xhci -> numintrs , & xhci -> mem , 0 , OFF_MSIX_TABLE , & xhci -> mem , 0 , OFF_MSIX_PBA , 0x90 , NULL ) ;\n }\n }"}
{"idx": 17571, "target": 0, "func": "static int spl_filesystem_file_read_csv ( spl_filesystem_object * intern , char delimiter , char enclosure , char escape , zval * return_value TSRMLS_DC ) {\n int ret = SUCCESS ;\n do {\n ret = spl_filesystem_file_read ( intern , 1 TSRMLS_CC ) ;\n }\n while ( ret == SUCCESS && ! intern -> u . file . current_line_len && SPL_HAS_FLAG ( intern -> flags , SPL_FILE_OBJECT_SKIP_EMPTY ) ) ;\n if ( ret == SUCCESS ) {\n size_t buf_len = intern -> u . file . current_line_len ;\n char * buf = estrndup ( intern -> u . file . current_line , buf_len ) ;\n if ( intern -> u . file . current_zval ) {\n zval_ptr_dtor ( & intern -> u . file . current_zval ) ;\n }\n ALLOC_INIT_ZVAL ( intern -> u . file . current_zval ) ;\n php_fgetcsv ( intern -> u . file . stream , delimiter , enclosure , escape , buf_len , buf , intern -> u . file . current_zval TSRMLS_CC ) ;\n if ( return_value ) {\n if ( Z_TYPE_P ( return_value ) != IS_NULL ) {\n zval_dtor ( return_value ) ;\n ZVAL_NULL ( return_value ) ;\n }\n ZVAL_ZVAL ( return_value , intern -> u . file . current_zval , 1 , 0 ) ;\n }\n }\n return ret ;\n }"}
{"idx": 17572, "target": 0, "func": "static gboolean confirm_multiple_windows ( GtkWindow * parent_window , int count , gboolean use_tabs ) {\n GtkDialog * dialog ;\n char * prompt ;\n char * detail ;\n int response ;\n if ( count <= SILENT_WINDOW_OPEN_LIMIT ) {\n return TRUE ;\n }\n prompt = _ ( \"Are you sure you want to open all files?\" ) ;\n if ( use_tabs ) {\n detail = g_strdup_printf ( ngettext ( \"This will open %d separate tab.\" , \"This will open %d separate tabs.\" , count ) , count ) ;\n }\n else {\n detail = g_strdup_printf ( ngettext ( \"This will open %d separate window.\" , \"This will open %d separate windows.\" , count ) , count ) ;\n }\n dialog = eel_show_yes_no_dialog ( prompt , detail , _ ( \"_OK\" ) , _ ( \"_Cancel\" ) , parent_window ) ;\n g_free ( detail ) ;\n response = gtk_dialog_run ( dialog ) ;\n gtk_widget_destroy ( GTK_WIDGET ( dialog ) ) ;\n return response == GTK_RESPONSE_YES ;\n }"}
{"idx": 17573, "target": 0, "func": "static void U_CALLCONV _HZReset ( UConverter * cnv , UConverterResetChoice choice ) {\n if ( choice <= UCNV_RESET_TO_UNICODE ) {\n cnv -> toUnicodeStatus = 0 ;\n cnv -> mode = 0 ;\n if ( cnv -> extraInfo != NULL ) {\n ( ( UConverterDataHZ * ) cnv -> extraInfo ) -> isStateDBCS = FALSE ;\n ( ( UConverterDataHZ * ) cnv -> extraInfo ) -> isEmptySegment = FALSE ;\n }\n }\n if ( choice != UCNV_RESET_TO_UNICODE ) {\n cnv -> fromUnicodeStatus = 0 ;\n cnv -> fromUChar32 = 0x0000 ;\n if ( cnv -> extraInfo != NULL ) {\n ( ( UConverterDataHZ * ) cnv -> extraInfo ) -> isEscapeAppended = FALSE ;\n ( ( UConverterDataHZ * ) cnv -> extraInfo ) -> targetIndex = 0 ;\n ( ( UConverterDataHZ * ) cnv -> extraInfo ) -> sourceIndex = 0 ;\n ( ( UConverterDataHZ * ) cnv -> extraInfo ) -> isTargetUCharDBCS = FALSE ;\n }\n }\n }"}
{"idx": 17574, "target": 0, "func": "static int dissect_h245_UserInputCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_UserInputCapability , UserInputCapability_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 17575, "target": 0, "func": "vpx_codec_err_t vpx_codec_enc_config_default ( vpx_codec_iface_t * iface , vpx_codec_enc_cfg_t * cfg , unsigned int usage ) {\n vpx_codec_err_t res ;\n vpx_codec_enc_cfg_map_t * map ;\n int i ;\n if ( ! iface || ! cfg || usage > INT_MAX ) res = VPX_CODEC_INVALID_PARAM ;\n else if ( ! ( iface -> caps & VPX_CODEC_CAP_ENCODER ) ) res = VPX_CODEC_INCAPABLE ;\n else {\n res = VPX_CODEC_INVALID_PARAM ;\n for ( i = 0 ;\n i < iface -> enc . cfg_map_count ;\n ++ i ) {\n map = iface -> enc . cfg_maps + i ;\n if ( map -> usage == ( int ) usage ) {\n * cfg = map -> cfg ;\n cfg -> g_usage = usage ;\n res = VPX_CODEC_OK ;\n break ;\n }\n }\n }\n return res ;\n }"}
{"idx": 17576, "target": 0, "func": "static void free_picture ( AVCodecContext * avctx , Picture * pic ) {\n int i ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n av_buffer_unref ( & pic -> motion_val_buf [ i ] ) ;\n av_buffer_unref ( & pic -> ref_index_buf [ i ] ) ;\n }\n av_buffer_unref ( & pic -> mb_type_buf ) ;\n av_frame_unref ( & pic -> f ) ;\n }"}
{"idx": 17577, "target": 0, "func": "static void x8_get_prediction_chroma ( IntraX8Context * const w ) {\n MpegEncContext * const s = w -> s ;\n w -> edges = 1 * ( ! ( s -> mb_x >> 1 ) ) ;\n w -> edges |= 2 * ( ! ( s -> mb_y >> 1 ) ) ;\n w -> edges |= 4 * ( s -> mb_x >= ( 2 * s -> mb_width - 1 ) ) ;\n w -> raw_orient = 0 ;\n if ( w -> edges & 3 ) {\n w -> chroma_orient = 4 << ( ( 0xCC >> w -> edges ) & 1 ) ;\n return ;\n }\n w -> chroma_orient = ( w -> prediction_table [ 2 * s -> mb_x - 2 ] & 0x03 ) << 2 ;\n }"}
{"idx": 17578, "target": 0, "func": "bool mysql_create_user ( THD * thd , List < LEX_USER > & list ) {\n int result ;\n String wrong_users ;\n LEX_USER * user_name , * tmp_user_name ;\n List_iterator < LEX_USER > user_list ( list ) ;\n TABLE_LIST tables [ GRANT_TABLES ] ;\n bool some_users_created = FALSE ;\n bool save_binlog_row_based ;\n DBUG_ENTER ( \"mysql_create_user\" ) ;\n save_binlog_row_based = thd -> current_stmt_binlog_row_based ;\n thd -> clear_current_stmt_binlog_row_based ( ) ;\n if ( ( result = open_grant_tables ( thd , tables ) ) ) {\n thd -> current_stmt_binlog_row_based = save_binlog_row_based ;\n DBUG_RETURN ( result != 1 ) ;\n }\n rw_wrlock ( & LOCK_grant ) ;\n VOID ( pthread_mutex_lock ( & acl_cache -> lock ) ) ;\n while ( ( tmp_user_name = user_list ++ ) ) {\n if ( ! ( user_name = get_current_user ( thd , tmp_user_name ) ) ) {\n result = TRUE ;\n continue ;\n }\n if ( handle_grant_data ( tables , 0 , user_name , NULL ) ) {\n append_user ( & wrong_users , user_name ) ;\n result = TRUE ;\n continue ;\n }\n some_users_created = TRUE ;\n if ( replace_user_table ( thd , tables [ 0 ] . table , * user_name , 0 , 0 , 1 , 0 ) ) {\n append_user ( & wrong_users , user_name ) ;\n result = TRUE ;\n }\n }\n VOID ( pthread_mutex_unlock ( & acl_cache -> lock ) ) ;\n if ( result ) my_error ( ER_CANNOT_USER , MYF ( 0 ) , \"CREATE USER\" , wrong_users . c_ptr_safe ( ) ) ;\n if ( some_users_created ) result |= write_bin_log ( thd , FALSE , thd -> query ( ) , thd -> query_length ( ) ) ;\n rw_unlock ( & LOCK_grant ) ;\n close_thread_tables ( thd ) ;\n thd -> current_stmt_binlog_row_based = save_binlog_row_based ;\n DBUG_RETURN ( result ) ;\n }"}
{"idx": 17579, "target": 0, "func": "static int dissect_h245_IS11172AudioMode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_IS11172AudioMode , IS11172AudioMode_sequence ) ;\n return offset ;\n }"}
{"idx": 17580, "target": 0, "func": "static int dissect_UDPTLPacket_PDU ( tvbuff_t * tvb _U_ , packet_info * pinfo _U_ , proto_tree * tree _U_ , void * data _U_ ) {\n int offset = 0 ;\n asn1_ctx_t asn1_ctx ;\n asn1_ctx_init ( & asn1_ctx , ASN1_ENC_PER , TRUE , pinfo ) ;\n offset = dissect_t38_UDPTLPacket ( tvb , offset , & asn1_ctx , tree , hf_t38_UDPTLPacket_PDU ) ;\n offset += 7 ;\n offset >>= 3 ;\n return offset ;\n }"}
{"idx": 17581, "target": 0, "func": "static int vp8_decode ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n VP8Context * ctx = avctx -> priv_data ;\n AVFrame * picture = data ;\n const void * iter = NULL ;\n struct vpx_image * img ;\n int ret ;\n if ( vpx_codec_decode ( & ctx -> decoder , avpkt -> data , avpkt -> size , NULL , 0 ) != VPX_CODEC_OK ) {\n const char * error = vpx_codec_error ( & ctx -> decoder ) ;\n const char * detail = vpx_codec_error_detail ( & ctx -> decoder ) ;\n av_log ( avctx , AV_LOG_ERROR , \"Failed to decode frame: %s\\n\" , error ) ;\n if ( detail ) av_log ( avctx , AV_LOG_ERROR , \" Additional information: %s\\n\" , detail ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ( img = vpx_codec_get_frame ( & ctx -> decoder , & iter ) ) ) {\n if ( img -> fmt != VPX_IMG_FMT_I420 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Unsupported output colorspace (%d)\\n\" , img -> fmt ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ( int ) img -> d_w != avctx -> width || ( int ) img -> d_h != avctx -> height ) {\n av_log ( avctx , AV_LOG_INFO , \"dimension change! %dx%d -> %dx%d\\n\" , avctx -> width , avctx -> height , img -> d_w , img -> d_h ) ;\n if ( av_image_check_size ( img -> d_w , img -> d_h , 0 , avctx ) ) return AVERROR_INVALIDDATA ;\n avcodec_set_dimensions ( avctx , img -> d_w , img -> d_h ) ;\n }\n if ( ( ret = ff_get_buffer ( avctx , picture , 0 ) ) < 0 ) return ret ;\n av_image_copy ( picture -> data , picture -> linesize , img -> planes , img -> stride , avctx -> pix_fmt , img -> d_w , img -> d_h ) ;\n * got_frame = 1 ;\n }\n return avpkt -> size ;\n }"}
{"idx": 17582, "target": 0, "func": "static int dissect_h225_H245TransportAddress ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 556 \"./asn1/h225/h225.cnf\" h225_packet_info * h225_pi ;\n ipv4_address = 0 ;\n ipv6_address = ipv6_address_zeros ;\n ip_port = 0 ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_H245TransportAddress , H245TransportAddress_choice , NULL ) ;\n # line 564 \"./asn1/h225/h225.cnf\" h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n if ( h225_pi ) {\n h225_pi -> is_h245 = TRUE ;\n h225_pi -> h245_address = ipv4_address ;\n h225_pi -> h245_port = ip_port ;\n }\n if ( ! actx -> pinfo -> fd -> flags . visited && h245_handle && ip_port != 0 ) {\n address src_addr ;\n conversation_t * conv = NULL ;\n if ( ipv4_address != 0 ) {\n set_address ( & src_addr , AT_IPv4 , 4 , & ipv4_address ) ;\n }\n else if ( memcmp ( ipv6_address . bytes , ipv6_address_zeros . bytes , sizeof ( ipv6_address . bytes ) ) != 0 ) {\n set_address ( & src_addr , AT_IPv6 , 16 , ipv6_address . bytes ) ;\n }\n else {\n return offset ;\n }\n conv = find_conversation ( actx -> pinfo -> num , & src_addr , & src_addr , PT_TCP , ip_port , ip_port , NO_ADDR_B | NO_PORT_B ) ;\n if ( ! conv ) {\n conv = conversation_new ( actx -> pinfo -> num , & src_addr , & src_addr , PT_TCP , ip_port , ip_port , NO_ADDR2 | NO_PORT2 ) ;\n conversation_set_dissector ( conv , h245_handle ) ;\n }\n }\n return offset ;\n }"}
{"idx": 17583, "target": 0, "func": "void dissect_zcl_on_off_attr_data ( proto_tree * tree , tvbuff_t * tvb , guint * offset , guint16 attr_id , guint data_type ) {\n switch ( attr_id ) {\n case ZBEE_ZCL_ON_OFF_ATTR_ID_ONOFF : proto_tree_add_item ( tree , hf_zbee_zcl_on_off_attr_onoff , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n break ;\n default : dissect_zcl_attr_data ( tvb , tree , offset , data_type ) ;\n break ;\n }\n }"}
{"idx": 17584, "target": 0, "func": "static int dissect_u3v ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n gint offset = 0 ;\n proto_tree * u3v_tree = NULL , * ccd_tree_flag , * u3v_telegram_tree = NULL , * ccd_tree = NULL ;\n gint data_length = 0 ;\n gint req_id = 0 ;\n gint command_id = - 1 ;\n gint status = 0 ;\n guint prefix = 0 ;\n proto_item * ti = NULL ;\n proto_item * item = NULL ;\n const char * command_string ;\n usb_conv_info_t * usb_conv_info ;\n gint stream_detected = FALSE ;\n gint control_detected = FALSE ;\n u3v_conv_info_t * u3v_conv_info = NULL ;\n gencp_transaction_t * gencp_trans = NULL ;\n usb_conv_info = ( usb_conv_info_t * ) data ;\n u3v_conv_info = ( u3v_conv_info_t * ) usb_conv_info -> class_data ;\n if ( ! u3v_conv_info ) {\n u3v_conv_info = wmem_new0 ( wmem_file_scope ( ) , u3v_conv_info_t ) ;\n usb_conv_info -> class_data = u3v_conv_info ;\n usb_conv_info -> class_data_type = USB_CONV_U3V ;\n }\n else if ( usb_conv_info -> class_data_type != USB_CONV_U3V ) {\n return 0 ;\n }\n prefix = tvb_get_letohl ( tvb , 0 ) ;\n if ( ( tvb_reported_length ( tvb ) >= 4 ) && ( ( U3V_CONTROL_PREFIX == prefix ) || ( U3V_EVENT_PREFIX == prefix ) ) ) {\n control_detected = TRUE ;\n }\n if ( ( ( tvb_reported_length ( tvb ) >= 4 ) && ( ( U3V_STREAM_LEADER_PREFIX == prefix ) || ( U3V_STREAM_TRAILER_PREFIX == prefix ) ) ) || ( usb_conv_info -> endpoint == u3v_conv_info -> ep_stream ) ) {\n stream_detected = TRUE ;\n }\n if ( control_detected || stream_detected ) {\n if ( usb_conv_info -> interfaceClass == IF_CLASS_UNKNOWN && usb_conv_info -> interfaceSubclass == IF_SUBCLASS_UNKNOWN ) {\n usb_conv_info -> interfaceClass = IF_CLASS_MISCELLANEOUS ;\n usb_conv_info -> interfaceSubclass = IF_SUBCLASS_MISC_U3V ;\n }\n }\n if ( control_detected ) {\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"U3V\" ) ;\n col_clear ( pinfo -> cinfo , COL_INFO ) ;\n ti = proto_tree_add_item ( tree , proto_u3v , tvb , offset , - 1 , ENC_NA ) ;\n u3v_tree = proto_item_add_subtree ( ti , ett_u3v ) ;\n prefix = tvb_get_letohl ( tvb , offset ) ;\n command_id = tvb_get_letohs ( tvb , offset + 6 ) ;\n if ( ( prefix == U3V_CONTROL_PREFIX || prefix == U3V_EVENT_PREFIX ) && ( ( command_id % 2 ) == 0 ) ) {\n command_string = val_to_str ( command_id , command_names , \"Unknown Command (0x%x)\" ) ;\n item = proto_tree_add_item ( u3v_tree , hf_u3v_ccd_cmd , tvb , offset , 8 , ENC_NA ) ;\n proto_item_append_text ( item , \": %s\" , command_string ) ;\n ccd_tree = proto_item_add_subtree ( item , ett_u3v_cmd ) ;\n proto_tree_add_item ( ccd_tree , hf_u3v_gencp_prefix , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n item = proto_tree_add_item ( ccd_tree , hf_u3v_flag , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n ccd_tree_flag = proto_item_add_subtree ( item , ett_u3v_flags ) ;\n proto_tree_add_item ( ccd_tree_flag , hf_u3v_acknowledge_required_flag , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"> %s \" , command_string ) ;\n }\n else if ( prefix == U3V_CONTROL_PREFIX && ( ( command_id % 2 ) == 1 ) ) {\n command_string = val_to_str ( command_id , command_names , \"Unknown Acknowledge (0x%x)\" ) ;\n item = proto_tree_add_item ( u3v_tree , hf_u3v_ccd_ack , tvb , offset , 8 , ENC_NA ) ;\n proto_item_append_text ( item , \": %s\" , command_string ) ;\n ccd_tree = proto_item_add_subtree ( item , ett_u3v_ack ) ;\n proto_tree_add_item ( ccd_tree , hf_u3v_gencp_prefix , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( ccd_tree , hf_u3v_status , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n status = tvb_get_letohs ( tvb , offset ) ;\n offset += 2 ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"< %s %s\" , command_string , val_to_str ( status , status_names_short , \"Unknown status (0x%04X)\" ) ) ;\n }\n else {\n return 0 ;\n }\n proto_tree_add_item ( ccd_tree , hf_u3v_command_id , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( ccd_tree , hf_u3v_length , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n data_length = tvb_get_letohs ( tvb , offset ) ;\n offset += 2 ;\n proto_tree_add_item ( ccd_tree , hf_u3v_request_id , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n req_id = tvb_get_letohs ( tvb , offset ) ;\n offset += 2 ;\n u3v_telegram_tree = proto_item_add_subtree ( u3v_tree , ett_u3v ) ;\n if ( ! PINFO_FD_VISITED ( pinfo ) ) {\n if ( ( command_id % 2 ) == 0 ) {\n gencp_trans = wmem_new ( wmem_file_scope ( ) , gencp_transaction_t ) ;\n gencp_trans -> cmd_frame = pinfo -> fd -> num ;\n gencp_trans -> ack_frame = 0 ;\n gencp_trans -> cmd_time = pinfo -> fd -> abs_ts ;\n p_add_proto_data ( wmem_file_scope ( ) , pinfo , proto_u3v , req_id , gencp_trans ) ;\n u3v_conv_info -> trans_info = gencp_trans ;\n }\n else {\n gencp_trans = u3v_conv_info -> trans_info ;\n if ( gencp_trans ) {\n gencp_trans -> ack_frame = pinfo -> fd -> num ;\n p_add_proto_data ( wmem_file_scope ( ) , pinfo , proto_u3v , req_id , gencp_trans ) ;\n }\n }\n }\n else {\n gencp_trans = ( gencp_transaction_t * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_u3v , req_id ) ;\n }\n if ( ! gencp_trans ) {\n gencp_trans = wmem_new ( wmem_packet_scope ( ) , gencp_transaction_t ) ;\n gencp_trans -> cmd_frame = 0 ;\n gencp_trans -> ack_frame = 0 ;\n gencp_trans -> cmd_time = pinfo -> fd -> abs_ts ;\n }\n switch ( command_id ) {\n case U3V_READMEM_CMD : dissect_u3v_read_mem_cmd ( u3v_telegram_tree , tvb , pinfo , offset , data_length , u3v_conv_info , gencp_trans ) ;\n break ;\n case U3V_WRITEMEM_CMD : dissect_u3v_write_mem_cmd ( u3v_telegram_tree , tvb , pinfo , offset , data_length , u3v_conv_info , gencp_trans ) ;\n break ;\n case U3V_EVENT_CMD : dissect_u3v_event_cmd ( u3v_telegram_tree , tvb , pinfo , offset , data_length ) ;\n break ;\n case U3V_READMEM_ACK : if ( U3V_STATUS_GENCP_SUCCESS == status ) {\n dissect_u3v_read_mem_ack ( u3v_telegram_tree , tvb , pinfo , offset , data_length , u3v_conv_info , gencp_trans ) ;\n }\n break ;\n case U3V_WRITEMEM_ACK : dissect_u3v_write_mem_ack ( u3v_telegram_tree , tvb , pinfo , offset , data_length , u3v_conv_info , gencp_trans ) ;\n break ;\n case U3V_PENDING_ACK : dissect_u3v_pending_ack ( u3v_telegram_tree , tvb , pinfo , offset , data_length , u3v_conv_info , gencp_trans ) ;\n break ;\n default : proto_tree_add_item ( u3v_telegram_tree , hf_u3v_payloaddata , tvb , offset , data_length , ENC_NA ) ;\n break ;\n }\n return data_length + 12 ;\n }\n else if ( stream_detected ) {\n u3v_conv_info = ( u3v_conv_info_t * ) usb_conv_info -> class_data ;\n u3v_conv_info -> ep_stream = usb_conv_info -> endpoint ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"U3V\" ) ;\n col_clear ( pinfo -> cinfo , COL_INFO ) ;\n ti = proto_tree_add_item ( tree , proto_u3v , tvb , offset , - 1 , ENC_NA ) ;\n u3v_tree = proto_item_add_subtree ( ti , ett_u3v ) ;\n if ( tvb_captured_length ( tvb ) >= 4 ) {\n prefix = tvb_get_letohl ( tvb , offset ) ;\n switch ( prefix ) {\n case U3V_STREAM_LEADER_PREFIX : dissect_u3v_stream_leader ( u3v_tree , tvb , pinfo , usb_conv_info ) ;\n break ;\n case U3V_STREAM_TRAILER_PREFIX : dissect_u3v_stream_trailer ( u3v_tree , tvb , pinfo , usb_conv_info ) ;\n break ;\n default : dissect_u3v_stream_payload ( u3v_tree , tvb , pinfo , usb_conv_info ) ;\n break ;\n }\n }\n return tvb_captured_length ( tvb ) ;\n }\n return 0 ;\n }"}
{"idx": 17585, "target": 0, "func": "static int dissect_h245_Q2931Address ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_Q2931Address , Q2931Address_sequence ) ;\n return offset ;\n }"}
{"idx": 17586, "target": 0, "func": "int ssl_cert_type ( const X509 * x , const EVP_PKEY * pk ) {\n if ( pk == NULL && ( pk = X509_get0_pubkey ( x ) ) == NULL ) return - 1 ;\n switch ( EVP_PKEY_id ( pk ) ) {\n default : return - 1 ;\n case EVP_PKEY_RSA : return SSL_PKEY_RSA_ENC ;\n case EVP_PKEY_DSA : return SSL_PKEY_DSA_SIGN ;\n # ifndef OPENSSL_NO_EC case EVP_PKEY_EC : return SSL_PKEY_ECC ;\n # endif # ifndef OPENSSL_NO_GOST case NID_id_GostR3410_2001 : return SSL_PKEY_GOST01 ;\n case NID_id_GostR3410_2012_256 : return SSL_PKEY_GOST12_256 ;\n case NID_id_GostR3410_2012_512 : return SSL_PKEY_GOST12_512 ;\n # endif }\n }"}
{"idx": 17587, "target": 0, "func": "static int main_recompress_output ( main_file * ofile ) {\n pid_t recomp_id ;\n int pipefd [ 2 ] ;\n int output_fd = - 1 ;\n int ret ;\n const main_extcomp * recomp = ofile -> compressor ;\n pipefd [ 0 ] = pipefd [ 1 ] = - 1 ;\n if ( pipe ( pipefd ) ) {\n XPR ( NT \"pipe failed: %s\\n\" , xd3_mainerror ( ret = get_errno ( ) ) ) ;\n goto pipe_cleanup ;\n }\n if ( ( recomp_id = fork ( ) ) < 0 ) {\n XPR ( NT \"fork failed: %s\\n\" , xd3_mainerror ( ret = get_errno ( ) ) ) ;\n goto pipe_cleanup ;\n }\n if ( recomp_id == 0 ) {\n if ( option_verbose > 2 ) {\n XPR ( NT \"external recompression pid %d\\n\" , getpid ( ) ) ;\n }\n if ( dup2 ( XFNO ( ofile ) , STDOUT_FILENO ) < 0 || dup2 ( pipefd [ PIPE_READ_FD ] , STDIN_FILENO ) < 0 || close ( pipefd [ PIPE_READ_FD ] ) || close ( pipefd [ PIPE_WRITE_FD ] ) || execlp ( recomp -> recomp_cmdname , recomp -> recomp_cmdname , recomp -> recomp_options , option_force2 ? \"-f\" : NULL , NULL ) ) {\n XPR ( NT \"child process %s failed to execute: %s\\n\" , recomp -> recomp_cmdname , xd3_mainerror ( get_errno ( ) ) ) ;\n }\n _exit ( 127 ) ;\n }\n XD3_ASSERT ( num_subprocs < MAX_SUBPROCS ) ;\n ext_subprocs [ num_subprocs ++ ] = recomp_id ;\n output_fd = dup ( pipefd [ PIPE_WRITE_FD ] ) ;\n if ( output_fd < 0 || main_file_close ( ofile ) || close ( pipefd [ PIPE_READ_FD ] ) || close ( pipefd [ PIPE_WRITE_FD ] ) ) {\n XPR ( NT \"close failed: %s\\n\" , xd3_mainerror ( ret = get_errno ( ) ) ) ;\n goto pipe_cleanup ;\n }\n # if XD3_STDIO if ( ( ofile -> file = fdopen ( output_fd , \"w\" ) ) == NULL ) {\n XPR ( NT \"fdopen failed: %s\\n\" , xd3_mainerror ( ret = get_errno ( ) ) ) ;\n goto pipe_cleanup ;\n }\n # elif XD3_POSIX ofile -> file = output_fd ;\n # endif return 0 ;\n pipe_cleanup : close ( output_fd ) ;\n close ( pipefd [ PIPE_READ_FD ] ) ;\n close ( pipefd [ PIPE_WRITE_FD ] ) ;\n return ret ;\n }"}
{"idx": 17588, "target": 0, "func": "int qemuMonitorJSONBlockJob ( qemuMonitorPtr mon , const char * device , unsigned long bandwidth , virDomainBlockJobInfoPtr info , int mode ) {\n int ret = - 1 ;\n virJSONValuePtr cmd = NULL ;\n virJSONValuePtr reply = NULL ;\n const char * cmd_name = NULL ;\n if ( mode == BLOCK_JOB_ABORT ) {\n cmd_name = \"block_job_cancel\" ;\n cmd = qemuMonitorJSONMakeCommand ( cmd_name , \"s:device\" , device , NULL ) ;\n }\n else if ( mode == BLOCK_JOB_INFO ) {\n cmd_name = \"query-block-jobs\" ;\n cmd = qemuMonitorJSONMakeCommand ( cmd_name , NULL ) ;\n }\n else if ( mode == BLOCK_JOB_SPEED ) {\n cmd_name = \"block_job_set_speed\" ;\n cmd = qemuMonitorJSONMakeCommand ( cmd_name , \"s:device\" , device , \"U:value\" , bandwidth * 1024ULL * 1024ULL , NULL ) ;\n }\n else if ( mode == BLOCK_JOB_PULL ) {\n cmd_name = \"block_stream\" ;\n cmd = qemuMonitorJSONMakeCommand ( cmd_name , \"s:device\" , device , NULL ) ;\n }\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 && virJSONValueObjectHasKey ( reply , \"error\" ) ) {\n if ( qemuMonitorJSONHasError ( reply , \"DeviceNotActive\" ) ) qemuReportError ( VIR_ERR_OPERATION_INVALID , _ ( \"No active operation on device: %s\" ) , device ) ;\n else if ( qemuMonitorJSONHasError ( reply , \"DeviceInUse\" ) ) qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"Device %s in use\" ) , device ) ;\n else if ( qemuMonitorJSONHasError ( reply , \"NotSupported\" ) ) qemuReportError ( VIR_ERR_OPERATION_INVALID , _ ( \"Operation is not supported for device: %s\" ) , device ) ;\n else if ( qemuMonitorJSONHasError ( reply , \"CommandNotFound\" ) ) qemuReportError ( VIR_ERR_OPERATION_INVALID , _ ( \"Command '%s' is not found\" ) , cmd_name ) ;\n else qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"Unexpected error\" ) ) ;\n ret = - 1 ;\n }\n if ( ret == 0 && mode == BLOCK_JOB_INFO ) ret = qemuMonitorJSONGetBlockJobInfo ( reply , device , info ) ;\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 17589, "target": 0, "func": "static void is_skippable ( int plane , int block , BLOCK_SIZE plane_bsize , TX_SIZE tx_size , void * argv ) {\n struct is_skippable_args * args = argv ;\n ( void ) plane_bsize ;\n ( void ) tx_size ;\n args -> skippable [ 0 ] &= ( ! args -> x -> plane [ plane ] . eobs [ block ] ) ;\n }"}
{"idx": 17590, "target": 0, "func": "static inline int ohci_put_hcca ( OHCIState * ohci , dma_addr_t addr , struct ohci_hcca * hcca ) {\n return dma_memory_write ( ohci -> as , addr + ohci -> localmem_base + HCCA_WRITEBACK_OFFSET , ( char * ) hcca + HCCA_WRITEBACK_OFFSET , HCCA_WRITEBACK_SIZE ) ;\n }"}
{"idx": 17591, "target": 0, "func": "static void PPC_io_writel ( target_phys_addr_t addr , uint32_t value ) {\n PPC_IO_DPRINTF ( \"0x%08x => 0x%08x\\n\" , addr - PPC_IO_BASE , value ) ;\n # ifdef TARGET_WORDS_BIGENDIAN value = bswap32 ( value ) ;\n # endif cpu_outl ( NULL , addr - PPC_IO_BASE , value ) ;\n }"}
{"idx": 17592, "target": 0, "func": "inline int32_t http_hdr_version_get ( HTTPHdrImpl * hh ) {\n return ( hh -> m_version ) ;\n }"}
{"idx": 17593, "target": 0, "func": "static int parse_video_var ( AVFormatContext * avctx , AVStream * st , const char * name , int size ) {\n AVIOContext * pb = avctx -> pb ;\n if ( ! strcmp ( name , \"__DIR_COUNT\" ) ) {\n st -> nb_frames = st -> duration = var_read_int ( pb , size ) ;\n }\n else if ( ! strcmp ( name , \"COMPRESSION\" ) ) {\n char * str = var_read_string ( pb , size ) ;\n if ( ! str ) return AVERROR_INVALIDDATA ;\n if ( ! strcmp ( str , \"1\" ) ) {\n st -> codecpar -> codec_id = AV_CODEC_ID_MVC1 ;\n }\n else if ( ! strcmp ( str , \"2\" ) ) {\n st -> codecpar -> format = AV_PIX_FMT_ABGR ;\n st -> codecpar -> codec_id = AV_CODEC_ID_RAWVIDEO ;\n }\n else if ( ! strcmp ( str , \"3\" ) ) {\n st -> codecpar -> codec_id = AV_CODEC_ID_SGIRLE ;\n }\n else if ( ! strcmp ( str , \"10\" ) ) {\n st -> codecpar -> codec_id = AV_CODEC_ID_MJPEG ;\n }\n else if ( ! strcmp ( str , \"MVC2\" ) ) {\n st -> codecpar -> codec_id = AV_CODEC_ID_MVC2 ;\n }\n else {\n avpriv_request_sample ( avctx , \"Video compression %s\" , str ) ;\n }\n av_free ( str ) ;\n }\n else if ( ! strcmp ( name , \"FPS\" ) ) {\n AVRational fps = var_read_float ( pb , size ) ;\n avpriv_set_pts_info ( st , 64 , fps . den , fps . num ) ;\n st -> avg_frame_rate = fps ;\n }\n else if ( ! strcmp ( name , \"HEIGHT\" ) ) {\n st -> codecpar -> height = var_read_int ( pb , size ) ;\n }\n else if ( ! strcmp ( name , \"PIXEL_ASPECT\" ) ) {\n st -> sample_aspect_ratio = var_read_float ( pb , size ) ;\n av_reduce ( & st -> sample_aspect_ratio . num , & st -> sample_aspect_ratio . den , st -> sample_aspect_ratio . num , st -> sample_aspect_ratio . den , INT_MAX ) ;\n }\n else if ( ! strcmp ( name , \"WIDTH\" ) ) {\n st -> codecpar -> width = var_read_int ( pb , size ) ;\n }\n else if ( ! strcmp ( name , \"ORIENTATION\" ) ) {\n if ( var_read_int ( pb , size ) == 1101 ) {\n st -> codecpar -> extradata = av_strdup ( \"BottomUp\" ) ;\n st -> codecpar -> extradata_size = 9 ;\n }\n }\n else if ( ! strcmp ( name , \"Q_SPATIAL\" ) || ! strcmp ( name , \"Q_TEMPORAL\" ) ) {\n var_read_metadata ( avctx , name , size ) ;\n }\n else if ( ! strcmp ( name , \"INTERLACING\" ) || ! strcmp ( name , \"PACKING\" ) ) {\n avio_skip ( pb , size ) ;\n }\n else return AVERROR_INVALIDDATA ;\n return 0 ;\n }"}
{"idx": 17594, "target": 0, "func": "static __inline__ __u64 ethtool_get_flow_spec_ring_vf ( __u64 ring_cookie ) {\n return ( ETHTOOL_RX_FLOW_SPEC_RING_VF & ring_cookie ) >> ETHTOOL_RX_FLOW_SPEC_RING_VF_OFF ;\n }"}
{"idx": 17595, "target": 0, "func": "int cmd_rev_list ( int argc , const char * * argv , const char * prefix ) {\n struct rev_info revs ;\n struct rev_list_info info ;\n int i ;\n int bisect_list = 0 ;\n int bisect_show_vars = 0 ;\n int bisect_find_all = 0 ;\n int use_bitmap_index = 0 ;\n git_config ( git_default_config , NULL ) ;\n init_revisions ( & revs , prefix ) ;\n revs . abbrev = DEFAULT_ABBREV ;\n revs . commit_format = CMIT_FMT_UNSPECIFIED ;\n argc = setup_revisions ( argc , argv , & revs , NULL ) ;\n memset ( & info , 0 , sizeof ( info ) ) ;\n info . revs = & revs ;\n if ( revs . bisect ) bisect_list = 1 ;\n if ( DIFF_OPT_TST ( & revs . diffopt , QUICK ) ) info . flags |= REV_LIST_QUIET ;\n for ( i = 1 ;\n i < argc ;\n i ++ ) {\n const char * arg = argv [ i ] ;\n if ( ! strcmp ( arg , \"--header\" ) ) {\n revs . verbose_header = 1 ;\n continue ;\n }\n if ( ! strcmp ( arg , \"--timestamp\" ) ) {\n info . show_timestamp = 1 ;\n continue ;\n }\n if ( ! strcmp ( arg , \"--bisect\" ) ) {\n bisect_list = 1 ;\n continue ;\n }\n if ( ! strcmp ( arg , \"--bisect-all\" ) ) {\n bisect_list = 1 ;\n bisect_find_all = 1 ;\n info . flags |= BISECT_SHOW_ALL ;\n revs . show_decorations = 1 ;\n continue ;\n }\n if ( ! strcmp ( arg , \"--bisect-vars\" ) ) {\n bisect_list = 1 ;\n bisect_show_vars = 1 ;\n continue ;\n }\n if ( ! strcmp ( arg , \"--use-bitmap-index\" ) ) {\n use_bitmap_index = 1 ;\n continue ;\n }\n if ( ! strcmp ( arg , \"--test-bitmap\" ) ) {\n test_bitmap_walk ( & revs ) ;\n return 0 ;\n }\n usage ( rev_list_usage ) ;\n }\n if ( revs . commit_format != CMIT_FMT_UNSPECIFIED ) {\n info . hdr_termination = '\\n' ;\n if ( revs . commit_format == CMIT_FMT_ONELINE ) info . header_prefix = \"\" ;\n else info . header_prefix = \"commit \" ;\n }\n else if ( revs . verbose_header ) revs . commit_format = CMIT_FMT_RAW ;\n if ( ( ! revs . commits && ( ! ( revs . tag_objects || revs . tree_objects || revs . blob_objects ) && ! revs . pending . nr ) ) || revs . diff ) usage ( rev_list_usage ) ;\n if ( revs . show_notes ) die ( _ ( \"rev-list does not support display of notes\" ) ) ;\n save_commit_buffer = ( revs . verbose_header || revs . grep_filter . pattern_list || revs . grep_filter . header_list ) ;\n if ( bisect_list ) revs . limited = 1 ;\n if ( use_bitmap_index && ! revs . prune ) {\n if ( revs . count && ! revs . left_right && ! revs . cherry_mark ) {\n uint32_t commit_count ;\n if ( ! prepare_bitmap_walk ( & revs ) ) {\n count_bitmap_commit_list ( & commit_count , NULL , NULL , NULL ) ;\n printf ( \"%d\\n\" , commit_count ) ;\n return 0 ;\n }\n }\n else if ( revs . tag_objects && revs . tree_objects && revs . blob_objects ) {\n if ( ! prepare_bitmap_walk ( & revs ) ) {\n traverse_bitmap_commit_list ( & show_object_fast ) ;\n return 0 ;\n }\n }\n }\n if ( prepare_revision_walk ( & revs ) ) die ( \"revision walk setup failed\" ) ;\n if ( revs . tree_objects ) mark_edges_uninteresting ( & revs , show_edge ) ;\n if ( bisect_list ) {\n int reaches = reaches , all = all ;\n revs . commits = find_bisection ( revs . commits , & reaches , & all , bisect_find_all ) ;\n if ( bisect_show_vars ) return show_bisect_vars ( & info , reaches , all ) ;\n }\n traverse_commit_list ( & revs , show_commit , show_object , & info ) ;\n if ( revs . count ) {\n if ( revs . left_right && revs . cherry_mark ) printf ( \"%d\\t%d\\t%d\\n\" , revs . count_left , revs . count_right , revs . count_same ) ;\n else if ( revs . left_right ) printf ( \"%d\\t%d\\n\" , revs . count_left , revs . count_right ) ;\n else if ( revs . cherry_mark ) printf ( \"%d\\t%d\\n\" , revs . count_left + revs . count_right , revs . count_same ) ;\n else printf ( \"%d\\n\" , revs . count_left + revs . count_right ) ;\n }\n return 0 ;\n }"}
{"idx": 17596, "target": 0, "func": "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_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 255U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 17597, "target": 0, "func": "static void test_nstmts ( ) {\n MYSQL_STMT * stmt ;\n char query [ 255 ] ;\n int rc ;\n static uint i , total_stmts = 2000 ;\n MYSQL_BIND my_bind [ 1 ] ;\n myheader ( \"test_nstmts\" ) ;\n mysql_autocommit ( mysql , TRUE ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_nstmts\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_nstmts(id int)\" ) ;\n myquery ( rc ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer = ( void * ) & i ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n for ( i = 0 ;\n i < total_stmts ;\n i ++ ) {\n if ( ! opt_silent ) fprintf ( stdout , \"\\r stmt: %d\" , i ) ;\n strmov ( query , \"insert into test_nstmts values(?)\" ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n mysql_stmt_close ( stmt ) ;\n }\n stmt = mysql_simple_prepare ( mysql , \" select count(*) from test_nstmts\" ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n i = 0 ;\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n total rows: %d\" , i ) ;\n DIE_UNLESS ( i == total_stmts ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"DROP TABLE test_nstmts\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 17598, "target": 0, "func": "chunk_t build_generalName ( identification_t * id ) {\n int context ;\n switch ( id -> get_type ( id ) ) {\n case ID_RFC822_ADDR : context = ASN1_CONTEXT_S_1 ;\n break ;\n case ID_FQDN : context = ASN1_CONTEXT_S_2 ;\n break ;\n case ID_DER_ASN1_DN : context = ASN1_CONTEXT_C_4 ;\n break ;\n case ID_IPV4_ADDR : case ID_IPV6_ADDR : context = ASN1_CONTEXT_S_7 ;\n break ;\n default : DBG1 ( DBG_ASN , \"encoding %N as generalName not supported\" , id_type_names , id -> get_type ( id ) ) ;\n return chunk_empty ;\n }\n return asn1_wrap ( context , \"c\" , id -> get_encoding ( id ) ) ;\n }"}
{"idx": 17599, "target": 0, "func": "double expression_returns_set_rows ( Node * clause ) {\n double result = 1 ;\n ( void ) expression_returns_set_rows_walker ( clause , & result ) ;\n return clamp_row_est ( result ) ;\n }"}
{"idx": 17600, "target": 0, "func": "static void ohci_async_cancel_device ( OHCIState * ohci , USBDevice * dev ) {\n if ( ohci -> async_td && usb_packet_is_inflight ( & ohci -> usb_packet ) && ohci -> usb_packet . ep -> dev == dev ) {\n usb_cancel_packet ( & ohci -> usb_packet ) ;\n ohci -> async_td = 0 ;\n }\n }"}
{"idx": 17601, "target": 0, "func": "static vpx_codec_err_t ctrl_get_reference ( vpx_codec_alg_priv_t * ctx , va_list args ) {\n vp9_ref_frame_t * const frame = va_arg ( args , vp9_ref_frame_t * ) ;\n if ( frame != NULL ) {\n YV12_BUFFER_CONFIG * fb = get_ref_frame ( & ctx -> cpi -> common , frame -> idx ) ;\n if ( fb == NULL ) return VPX_CODEC_ERROR ;\n yuvconfig2image ( & frame -> img , fb , NULL ) ;\n return VPX_CODEC_OK ;\n }\n else {\n return VPX_CODEC_INVALID_PARAM ;\n }\n }"}
{"idx": 17602, "target": 0, "func": "bool cephx_build_service_ticket_reply ( CephContext * cct , CryptoKey & principal_secret , vector < CephXSessionAuthInfo > ticket_info_vec , bool should_encrypt_ticket , CryptoKey & ticket_enc_key , bufferlist & reply ) {\n __u8 service_ticket_reply_v = 1 ;\n : : encode ( service_ticket_reply_v , reply ) ;\n uint32_t num = ticket_info_vec . size ( ) ;\n : : encode ( num , reply ) ;\n ldout ( cct , 10 ) << \"build_service_ticket_reply encoding \" << num << \" tickets with secret \" << principal_secret << dendl ;\n for ( vector < CephXSessionAuthInfo > : : iterator ticket_iter = ticket_info_vec . begin ( ) ;\n ticket_iter != ticket_info_vec . end ( ) ;\n ++ ticket_iter ) {\n CephXSessionAuthInfo & info = * ticket_iter ;\n : : encode ( info . service_id , reply ) ;\n __u8 service_ticket_v = 1 ;\n : : encode ( service_ticket_v , reply ) ;\n CephXServiceTicket msg_a ;\n msg_a . session_key = info . session_key ;\n msg_a . validity = info . validity ;\n std : : string error ;\n if ( encode_encrypt ( cct , msg_a , principal_secret , reply , error ) ) {\n ldout ( cct , - 1 ) << \"error encoding encrypted: \" << error << dendl ;\n return false ;\n }\n bufferlist service_ticket_bl ;\n CephXTicketBlob blob ;\n if ( ! cephx_build_service_ticket_blob ( cct , info , blob ) ) {\n return false ;\n }\n : : encode ( blob , service_ticket_bl ) ;\n ldout ( cct , 30 ) << \"service_ticket_blob is \" ;\n service_ticket_bl . hexdump ( * _dout ) ;\n * _dout << dendl ;\n : : encode ( ( __u8 ) should_encrypt_ticket , reply ) ;\n if ( should_encrypt_ticket ) {\n if ( encode_encrypt ( cct , service_ticket_bl , ticket_enc_key , reply , error ) ) {\n ldout ( cct , - 1 ) << \"error encoding encrypted ticket: \" << error << dendl ;\n return false ;\n }\n }\n else {\n : : encode ( service_ticket_bl , reply ) ;\n }\n }\n return true ;\n }"}
{"idx": 17603, "target": 0, "func": "static StkId callrethooks ( lua_State * L , StkId firstResult ) {\n ptrdiff_t fr = savestack ( L , firstResult ) ;\n luaD_callhook ( L , LUA_HOOKRET , - 1 ) ;\n if ( f_isLua ( L -> ci ) ) {\n while ( ( L -> hookmask & LUA_MASKRET ) && L -> ci -> tailcalls -- ) luaD_callhook ( L , LUA_HOOKTAILRET , - 1 ) ;\n }\n return restorestack ( L , fr ) ;\n }"}
{"idx": 17604, "target": 0, "func": "static Dwarf_Endianness dwarf_elf_object_access_get_byte_order ( void * obj_in ) {\n dwarf_elf_object_access_internals_t * obj = ( dwarf_elf_object_access_internals_t * ) obj_in ;\n return obj -> endianness ;\n }"}
{"idx": 17605, "target": 0, "func": "static void icmp_put ( struct seq_file * seq ) {\n int i ;\n struct net * net = seq -> private ;\n atomic_long_t * ptr = net -> mib . icmpmsg_statistics -> mibs ;\n seq_puts ( seq , \"\\nIcmp: InMsgs InErrors\" ) ;\n for ( i = 0 ;\n icmpmibmap [ i ] . name != NULL ;\n i ++ ) seq_printf ( seq , \" In%s\" , icmpmibmap [ i ] . name ) ;\n seq_printf ( seq , \" OutMsgs OutErrors\" ) ;\n for ( i = 0 ;\n icmpmibmap [ i ] . name != NULL ;\n i ++ ) seq_printf ( seq , \" Out%s\" , icmpmibmap [ i ] . name ) ;\n seq_printf ( seq , \"\\nIcmp: %lu %lu\" , snmp_fold_field ( ( void __percpu * * ) net -> mib . icmp_statistics , ICMP_MIB_INMSGS ) , snmp_fold_field ( ( void __percpu * * ) net -> mib . icmp_statistics , ICMP_MIB_INERRORS ) ) ;\n for ( i = 0 ;\n icmpmibmap [ i ] . name != NULL ;\n i ++ ) seq_printf ( seq , \" %lu\" , atomic_long_read ( ptr + icmpmibmap [ i ] . index ) ) ;\n seq_printf ( seq , \" %lu %lu\" , snmp_fold_field ( ( void __percpu * * ) net -> mib . icmp_statistics , ICMP_MIB_OUTMSGS ) , snmp_fold_field ( ( void __percpu * * ) net -> mib . icmp_statistics , ICMP_MIB_OUTERRORS ) ) ;\n for ( i = 0 ;\n icmpmibmap [ i ] . name != NULL ;\n i ++ ) seq_printf ( seq , \" %lu\" , atomic_long_read ( ptr + ( icmpmibmap [ i ] . index | 0x100 ) ) ) ;\n }"}
{"idx": 17606, "target": 0, "func": "static char * auto_complete ( CHANNEL_REC * channel , const char * line ) {\n GList * comp ;\n const char * p ;\n char * nick , * ret ;\n p = strstr ( line , completion_char ) ;\n if ( p == NULL ) return NULL ;\n nick = g_strndup ( line , ( int ) ( p - line ) ) ;\n ret = NULL ;\n if ( nicklist_find ( channel , nick ) == NULL ) {\n comp = completion_channel_nicks ( channel , nick , NULL ) ;\n if ( comp != NULL ) {\n ret = g_strconcat ( comp -> data , p , NULL ) ;\n g_list_foreach ( comp , ( GFunc ) g_free , NULL ) ;\n g_list_free ( comp ) ;\n }\n }\n g_free ( nick ) ;\n return ret ;\n }"}
{"idx": 17607, "target": 1, "func": "static # else auto # endif inline void __attribute__ ( ( unused , always_inline ) ) elf_get_dynamic_info ( struct link_map * l , ElfW ( Dyn ) * temp ) {\n ElfW ( Dyn ) * dyn = l -> l_ld ;\n ElfW ( Dyn ) * * info ;\n # ifndef RTLD_BOOTSTRAP if ( dyn == NULL ) return ;\n # endif info = l -> l_info ;\n while ( dyn -> d_tag != DT_NULL ) {\n if ( ( Elf32_Word ) dyn -> d_tag < DT_NUM ) info [ dyn -> d_tag ] = dyn ;\n else if ( dyn -> d_tag >= DT_LOPROC && dyn -> d_tag < DT_LOPROC + DT_THISPROCNUM ) info [ dyn -> d_tag - DT_LOPROC + DT_NUM ] = dyn ;\n else if ( ( Elf32_Word ) DT_VERSIONTAGIDX ( dyn -> d_tag ) < DT_VERSIONTAGNUM ) info [ VERSYMIDX ( dyn -> d_tag ) ] = dyn ;\n else if ( ( Elf32_Word ) DT_EXTRATAGIDX ( dyn -> d_tag ) < DT_EXTRANUM ) info [ DT_EXTRATAGIDX ( dyn -> d_tag ) + DT_NUM + DT_THISPROCNUM + DT_VERSIONTAGNUM ] = dyn ;\n else if ( ( Elf32_Word ) DT_VALTAGIDX ( dyn -> d_tag ) < DT_VALNUM ) info [ DT_VALTAGIDX ( dyn -> d_tag ) + DT_NUM + DT_THISPROCNUM + DT_VERSIONTAGNUM + DT_EXTRANUM ] = dyn ;\n else if ( ( Elf32_Word ) DT_ADDRTAGIDX ( dyn -> d_tag ) < DT_ADDRNUM ) info [ DT_ADDRTAGIDX ( dyn -> d_tag ) + DT_NUM + DT_THISPROCNUM + DT_VERSIONTAGNUM + DT_EXTRANUM + DT_VALNUM ] = dyn ;\n ++ dyn ;\n }\n # define DL_RO_DYN_TEMP_CNT 8 # ifndef DL_RO_DYN_SECTION if ( l -> l_addr != 0 ) {\n ElfW ( Addr ) l_addr = l -> l_addr ;\n int cnt = 0 ;\n # define ADJUST_DYN_INFO ( tag ) do if ( info [ tag ] != NULL ) {\n if ( temp ) {\n temp [ cnt ] . d_tag = info [ tag ] -> d_tag ;\n temp [ cnt ] . d_un . d_ptr = info [ tag ] -> d_un . d_ptr + l_addr ;\n info [ tag ] = temp + cnt ++ ;\n }\n else info [ tag ] -> d_un . d_ptr += l_addr ;\n }\n while ( 0 ) ADJUST_DYN_INFO ( DT_HASH ) ;\n ADJUST_DYN_INFO ( DT_PLTGOT ) ;\n ADJUST_DYN_INFO ( DT_STRTAB ) ;\n ADJUST_DYN_INFO ( DT_SYMTAB ) ;\n # if ! ELF_MACHINE_NO_RELA ADJUST_DYN_INFO ( DT_RELA ) ;\n # endif # if ! ELF_MACHINE_NO_REL ADJUST_DYN_INFO ( DT_REL ) ;\n # endif ADJUST_DYN_INFO ( DT_JMPREL ) ;\n ADJUST_DYN_INFO ( VERSYMIDX ( DT_VERSYM ) ) ;\n ADJUST_DYN_INFO ( DT_ADDRTAGIDX ( DT_GNU_HASH ) + DT_NUM + DT_THISPROCNUM + DT_VERSIONTAGNUM + DT_EXTRANUM + DT_VALNUM ) ;\n # undef ADJUST_DYN_INFO assert ( cnt <= DL_RO_DYN_TEMP_CNT ) ;\n }\n # endif if ( info [ DT_PLTREL ] != NULL ) {\n # if ELF_MACHINE_NO_RELA assert ( info [ DT_PLTREL ] -> d_un . d_val == DT_REL ) ;\n # elif ELF_MACHINE_NO_REL assert ( info [ DT_PLTREL ] -> d_un . d_val == DT_RELA ) ;\n # else assert ( info [ DT_PLTREL ] -> d_un . d_val == DT_REL || info [ DT_PLTREL ] -> d_un . d_val == DT_RELA ) ;\n # endif }\n # if ! ELF_MACHINE_NO_RELA if ( info [ DT_RELA ] != NULL ) assert ( info [ DT_RELAENT ] -> d_un . d_val == sizeof ( ElfW ( Rela ) ) ) ;\n # endif # if ! ELF_MACHINE_NO_REL if ( info [ DT_REL ] != NULL ) assert ( info [ DT_RELENT ] -> d_un . d_val == sizeof ( ElfW ( Rel ) ) ) ;\n # endif # ifdef RTLD_BOOTSTRAP assert ( info [ VERSYMIDX ( DT_FLAGS_1 ) ] == NULL || info [ VERSYMIDX ( DT_FLAGS_1 ) ] -> d_un . d_val == DF_1_NOW ) ;\n assert ( info [ DT_FLAGS ] == NULL || info [ DT_FLAGS ] -> d_un . d_val == DF_BIND_NOW ) ;\n assert ( info [ DT_RUNPATH ] == NULL ) ;\n assert ( info [ DT_RPATH ] == NULL ) ;\n # else if ( info [ DT_FLAGS ] != NULL ) {\n l -> l_flags = info [ DT_FLAGS ] -> d_un . d_val ;\n if ( l -> l_flags & DF_SYMBOLIC ) info [ DT_SYMBOLIC ] = info [ DT_FLAGS ] ;\n if ( l -> l_flags & DF_TEXTREL ) info [ DT_TEXTREL ] = info [ DT_FLAGS ] ;\n if ( l -> l_flags & DF_BIND_NOW ) info [ DT_BIND_NOW ] = info [ DT_FLAGS ] ;\n }\n if ( info [ VERSYMIDX ( DT_FLAGS_1 ) ] != NULL ) {\n l -> l_flags_1 = info [ VERSYMIDX ( DT_FLAGS_1 ) ] -> d_un . d_val ;\n if ( l -> l_flags_1 & DF_1_NOW ) info [ DT_BIND_NOW ] = info [ VERSYMIDX ( DT_FLAGS_1 ) ] ;\n }\n if ( info [ DT_RUNPATH ] != NULL ) info [ DT_RPATH ] = NULL ;\n # endif }"}
{"idx": 17608, "target": 1, "func": "static int stp_print_mstp_bpdu ( netdissect_options * ndo , const struct stp_bpdu_ * stp_bpdu , u_int length ) {\n const u_char * ptr ;\n uint16_t v3len ;\n uint16_t len ;\n uint16_t msti ;\n u_int offset ;\n ptr = ( const u_char * ) stp_bpdu ;\n ND_PRINT ( ( ndo , \", CIST Flags [%s], length %u\" , bittok2str ( stp_bpdu_flag_values , \"none\" , stp_bpdu -> flags ) , length ) ) ;\n if ( ! ndo -> ndo_vflag ) {\n return 1 ;\n }\n ND_PRINT ( ( ndo , \"\\n\\tport-role %s, \" , tok2str ( rstp_obj_port_role_values , \"Unknown\" , RSTP_EXTRACT_PORT_ROLE ( stp_bpdu -> flags ) ) ) ) ;\n ND_TCHECK ( stp_bpdu -> root_path_cost ) ;\n ND_PRINT ( ( ndo , \"CIST root-id %s, CIST ext-pathcost %u\" , stp_print_bridge_id ( ( const u_char * ) & stp_bpdu -> root_id ) , EXTRACT_32BITS ( & stp_bpdu -> root_path_cost ) ) ) ;\n ND_TCHECK ( stp_bpdu -> bridge_id ) ;\n ND_PRINT ( ( ndo , \"\\n\\tCIST regional-root-id %s, \" , stp_print_bridge_id ( ( const u_char * ) & stp_bpdu -> bridge_id ) ) ) ;\n ND_TCHECK ( stp_bpdu -> port_id ) ;\n ND_PRINT ( ( ndo , \"CIST port-id %04x,\" , EXTRACT_16BITS ( & stp_bpdu -> port_id ) ) ) ;\n ND_TCHECK ( stp_bpdu -> forward_delay ) ;\n ND_PRINT ( ( ndo , \"\\n\\tmessage-age %.2fs, max-age %.2fs\" \", hello-time %.2fs, forwarding-delay %.2fs\" , ( float ) EXTRACT_16BITS ( & stp_bpdu -> message_age ) / STP_TIME_BASE , ( float ) EXTRACT_16BITS ( & stp_bpdu -> max_age ) / STP_TIME_BASE , ( float ) EXTRACT_16BITS ( & stp_bpdu -> hello_time ) / STP_TIME_BASE , ( float ) EXTRACT_16BITS ( & stp_bpdu -> forward_delay ) / STP_TIME_BASE ) ) ;\n ND_TCHECK_16BITS ( ptr + MST_BPDU_VER3_LEN_OFFSET ) ;\n ND_PRINT ( ( ndo , \"\\n\\tv3len %d, \" , EXTRACT_16BITS ( ptr + MST_BPDU_VER3_LEN_OFFSET ) ) ) ;\n ND_TCHECK_32BITS ( ptr + MST_BPDU_CONFIG_DIGEST_OFFSET + 12 ) ;\n ND_PRINT ( ( ndo , \"MCID Name \" ) ) ;\n if ( fn_printzp ( ndo , ptr + MST_BPDU_CONFIG_NAME_OFFSET , 32 , ndo -> ndo_snapend ) ) goto trunc ;\n ND_PRINT ( ( ndo , \", rev %u,\" \"\\n\\t\\tdigest %08x%08x%08x%08x, \" , EXTRACT_16BITS ( ptr + MST_BPDU_CONFIG_NAME_OFFSET + 32 ) , EXTRACT_32BITS ( ptr + MST_BPDU_CONFIG_DIGEST_OFFSET ) , EXTRACT_32BITS ( ptr + MST_BPDU_CONFIG_DIGEST_OFFSET + 4 ) , EXTRACT_32BITS ( ptr + MST_BPDU_CONFIG_DIGEST_OFFSET + 8 ) , EXTRACT_32BITS ( ptr + MST_BPDU_CONFIG_DIGEST_OFFSET + 12 ) ) ) ;\n ND_TCHECK_32BITS ( ptr + MST_BPDU_CIST_INT_PATH_COST_OFFSET ) ;\n ND_PRINT ( ( ndo , \"CIST int-root-pathcost %u,\" , EXTRACT_32BITS ( ptr + MST_BPDU_CIST_INT_PATH_COST_OFFSET ) ) ) ;\n ND_TCHECK_BRIDGE_ID ( ptr + MST_BPDU_CIST_BRIDGE_ID_OFFSET ) ;\n ND_PRINT ( ( ndo , \"\\n\\tCIST bridge-id %s, \" , stp_print_bridge_id ( ptr + MST_BPDU_CIST_BRIDGE_ID_OFFSET ) ) ) ;\n ND_TCHECK ( ptr [ MST_BPDU_CIST_REMAIN_HOPS_OFFSET ] ) ;\n ND_PRINT ( ( ndo , \"CIST remaining-hops %d\" , ptr [ MST_BPDU_CIST_REMAIN_HOPS_OFFSET ] ) ) ;\n ND_TCHECK_16BITS ( ptr + MST_BPDU_VER3_LEN_OFFSET ) ;\n v3len = EXTRACT_16BITS ( ptr + MST_BPDU_VER3_LEN_OFFSET ) ;\n if ( v3len > MST_BPDU_CONFIG_INFO_LENGTH ) {\n len = v3len - MST_BPDU_CONFIG_INFO_LENGTH ;\n offset = MST_BPDU_MSTI_OFFSET ;\n while ( len >= MST_BPDU_MSTI_LENGTH ) {\n ND_TCHECK2 ( * ( ptr + offset ) , MST_BPDU_MSTI_LENGTH ) ;\n msti = EXTRACT_16BITS ( ptr + offset + MST_BPDU_MSTI_ROOT_PRIO_OFFSET ) ;\n msti = msti & 0x0FFF ;\n ND_PRINT ( ( ndo , \"\\n\\tMSTI %d, Flags [%s], port-role %s\" , msti , bittok2str ( stp_bpdu_flag_values , \"none\" , ptr [ offset ] ) , tok2str ( rstp_obj_port_role_values , \"Unknown\" , RSTP_EXTRACT_PORT_ROLE ( ptr [ offset ] ) ) ) ) ;\n ND_PRINT ( ( ndo , \"\\n\\t\\tMSTI regional-root-id %s, pathcost %u\" , stp_print_bridge_id ( ptr + offset + MST_BPDU_MSTI_ROOT_PRIO_OFFSET ) , EXTRACT_32BITS ( ptr + offset + MST_BPDU_MSTI_ROOT_PATH_COST_OFFSET ) ) ) ;\n ND_PRINT ( ( ndo , \"\\n\\t\\tMSTI bridge-prio %d, port-prio %d, hops %d\" , ptr [ offset + MST_BPDU_MSTI_BRIDGE_PRIO_OFFSET ] >> 4 , ptr [ offset + MST_BPDU_MSTI_PORT_PRIO_OFFSET ] >> 4 , ptr [ offset + MST_BPDU_MSTI_REMAIN_HOPS_OFFSET ] ) ) ;\n len -= MST_BPDU_MSTI_LENGTH ;\n offset += MST_BPDU_MSTI_LENGTH ;\n }\n }\n return 1 ;\n trunc : return 0 ;\n }"}
{"idx": 17609, "target": 1, "func": "static void mark_object ( struct object * obj , const struct name_path * path , const char * name , void * data ) {\n update_progress ( data ) ;\n }"}
{"idx": 17610, "target": 0, "func": "static int dissect_h225_T_invalidTerminalAliases ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_T_invalidTerminalAliases , T_invalidTerminalAliases_sequence ) ;\n return offset ;\n }"}
{"idx": 17611, "target": 0, "func": "int ssl3_do_write ( SSL * s , int type ) {\n int ret ;\n ret = ssl3_write_bytes ( s , type , & s -> init_buf -> data [ s -> init_off ] , s -> init_num ) ;\n if ( ret < 0 ) return ( - 1 ) ;\n if ( type == SSL3_RT_HANDSHAKE ) if ( ! ssl3_finish_mac ( s , ( unsigned char * ) & s -> init_buf -> data [ s -> init_off ] , ret ) ) return - 1 ;\n if ( ret == s -> init_num ) {\n if ( s -> msg_callback ) s -> msg_callback ( 1 , s -> version , type , s -> init_buf -> data , ( size_t ) ( s -> init_off + s -> init_num ) , s , s -> msg_callback_arg ) ;\n return ( 1 ) ;\n }\n s -> init_off += ret ;\n s -> init_num -= ret ;\n return ( 0 ) ;\n }"}
{"idx": 17612, "target": 0, "func": "void proto_init ( void ( register_all_protocols_func ) ( register_cb cb , gpointer client_data ) , void ( register_all_handoffs_func ) ( register_cb cb , gpointer client_data ) , register_cb cb , gpointer client_data ) {\n proto_cleanup ( ) ;\n proto_names = g_hash_table_new_full ( g_int_hash , g_int_equal , g_free , NULL ) ;\n proto_short_names = g_hash_table_new ( wrs_str_hash , g_str_equal ) ;\n proto_filter_names = g_hash_table_new ( wrs_str_hash , g_str_equal ) ;\n gpa_hfinfo . len = 0 ;\n gpa_hfinfo . allocated_len = 0 ;\n gpa_hfinfo . hfi = NULL ;\n gpa_name_map = g_hash_table_new_full ( g_str_hash , g_str_equal , NULL , save_same_name_hfinfo ) ;\n deregistered_fields = g_ptr_array_new ( ) ;\n deregistered_data = g_ptr_array_new ( ) ;\n ftypes_initialize ( ) ;\n address_types_initialize ( ) ;\n hf_text_only = proto_register_field_init ( & hfi_text_only , - 1 ) ;\n register_show_exception ( ) ;\n register_type_length_mismatch ( ) ;\n register_number_string_decoding_error ( ) ;\n register_all_protocols_func ( cb , client_data ) ;\n vines_address_type = address_type_get_by_name ( \"AT_VINES\" ) ;\n # ifdef HAVE_PLUGINS if ( cb ) ( * cb ) ( RA_PLUGIN_REGISTER , NULL , client_data ) ;\n g_slist_foreach ( dissector_plugins , register_dissector_plugin , NULL ) ;\n # endif register_all_handoffs_func ( cb , client_data ) ;\n # ifdef HAVE_PLUGINS if ( cb ) ( * cb ) ( RA_PLUGIN_HANDOFF , NULL , client_data ) ;\n g_slist_foreach ( dissector_plugins , reg_handoff_dissector_plugin , NULL ) ;\n # endif protocols = g_list_sort ( protocols , proto_compare_name ) ;\n tree_is_expanded = g_new0 ( guint32 , ( num_tree_types / 32 ) + 1 ) ;\n }"}
{"idx": 17613, "target": 0, "func": "int TSHttpTxnLookingUpTypeGet ( TSHttpTxn txnp ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n HttpTransact : : State * s = & ( sm -> t_state ) ;\n return ( int ) ( s -> current . request_to ) ;\n }"}
{"idx": 17614, "target": 0, "func": "static int dissect_btgatt_microbit_dfu_control ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , void * data ) {\n btatt_data_t * att_data = ( btatt_data_t * ) data ;\n gint offset = 0 ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) return - 1 ;\n proto_tree_add_item ( tree , hf_gatt_microbit_dfu_control , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n return offset ;\n }"}
{"idx": 17615, "target": 0, "func": "static int data_packets_seen ( const struct ogg * ogg ) {\n int i ;\n for ( i = 0 ;\n i < ogg -> nstreams ;\n i ++ ) if ( ogg -> streams [ i ] . got_data ) return 1 ;\n return 0 ;\n }"}
{"idx": 17616, "target": 0, "func": "static gboolean request_is_satisfied ( NautilusDirectory * directory , NautilusFile * file , Request request ) {\n if ( REQUEST_WANTS_TYPE ( request , REQUEST_FILE_LIST ) && ! ( directory -> details -> directory_loaded && directory -> details -> directory_loaded_sent_notification ) ) {\n return FALSE ;\n }\n if ( REQUEST_WANTS_TYPE ( request , REQUEST_DIRECTORY_COUNT ) ) {\n if ( has_problem ( directory , file , lacks_directory_count ) ) {\n return FALSE ;\n }\n }\n if ( REQUEST_WANTS_TYPE ( request , REQUEST_FILE_INFO ) ) {\n if ( has_problem ( directory , file , lacks_info ) ) {\n return FALSE ;\n }\n }\n if ( REQUEST_WANTS_TYPE ( request , REQUEST_FILESYSTEM_INFO ) ) {\n if ( has_problem ( directory , file , lacks_filesystem_info ) ) {\n return FALSE ;\n }\n }\n if ( REQUEST_WANTS_TYPE ( request , REQUEST_DEEP_COUNT ) ) {\n if ( has_problem ( directory , file , lacks_deep_count ) ) {\n return FALSE ;\n }\n }\n if ( REQUEST_WANTS_TYPE ( request , REQUEST_THUMBNAIL ) ) {\n if ( has_problem ( directory , file , lacks_thumbnail ) ) {\n return FALSE ;\n }\n }\n if ( REQUEST_WANTS_TYPE ( request , REQUEST_MOUNT ) ) {\n if ( has_problem ( directory , file , lacks_mount ) ) {\n return FALSE ;\n }\n }\n if ( REQUEST_WANTS_TYPE ( request , REQUEST_MIME_LIST ) ) {\n if ( has_problem ( directory , file , lacks_mime_list ) ) {\n return FALSE ;\n }\n }\n if ( REQUEST_WANTS_TYPE ( request , REQUEST_LINK_INFO ) ) {\n if ( has_problem ( directory , file , lacks_link_info ) ) {\n return FALSE ;\n }\n }\n return TRUE ;\n }"}
{"idx": 17617, "target": 0, "func": "static inline int show_tags ( WriterContext * w , AVDictionary * tags , int section_id ) {\n AVDictionaryEntry * tag = NULL ;\n int ret = 0 ;\n if ( ! tags ) return 0 ;\n writer_print_section_header ( w , section_id ) ;\n while ( ( tag = av_dict_get ( tags , \"\" , tag , AV_DICT_IGNORE_SUFFIX ) ) ) {\n if ( ( ret = print_str_validate ( tag -> key , tag -> value ) ) < 0 ) break ;\n }\n writer_print_section_footer ( w ) ;\n return ret ;\n }"}
{"idx": 17618, "target": 0, "func": "void vp9_convolve8_vert_c ( const uint8_t * src , ptrdiff_t src_stride , uint8_t * dst , ptrdiff_t dst_stride , const int16_t * filter_x , int x_step_q4 , const int16_t * filter_y , int y_step_q4 , int w , int h ) {\n const InterpKernel * const filters_y = get_filter_base ( filter_y ) ;\n const int y0_q4 = get_filter_offset ( filter_y , filters_y ) ;\n ( void ) filter_x ;\n ( void ) x_step_q4 ;\n convolve_vert ( src , src_stride , dst , dst_stride , filters_y , y0_q4 , y_step_q4 , w , h ) ;\n }"}
{"idx": 17619, "target": 0, "func": "void vp9_temporal_filter_init ( ) {\n int i ;\n fixed_divide [ 0 ] = 0 ;\n for ( i = 1 ;\n i < 512 ;\n ++ i ) fixed_divide [ i ] = 0x80000 / i ;\n }"}
{"idx": 17620, "target": 0, "func": "static void * init_tls ( void ) {\n GL ( dl_tls_static_nelem ) = GL ( dl_tls_max_dtv_idx ) ;\n if ( GL ( dl_initial_dtv ) != NULL ) return NULL ;\n size_t nelem = GL ( dl_tls_max_dtv_idx ) + 1 + TLS_SLOTINFO_SURPLUS ;\n GL ( dl_tls_dtv_slotinfo_list ) = ( struct dtv_slotinfo_list * ) calloc ( sizeof ( struct dtv_slotinfo_list ) + nelem * sizeof ( struct dtv_slotinfo ) , 1 ) ;\n struct dtv_slotinfo * slotinfo = GL ( dl_tls_dtv_slotinfo_list ) -> slotinfo ;\n GL ( dl_tls_dtv_slotinfo_list ) -> len = nelem ;\n GL ( dl_tls_dtv_slotinfo_list ) -> next = NULL ;\n assert ( GL ( dl_ns ) [ LM_ID_BASE + 1 ] . _ns_loaded == NULL ) ;\n int i = 0 ;\n for ( struct link_map * l = GL ( dl_ns ) [ LM_ID_BASE ] . _ns_loaded ;\n l != NULL ;\n l = l -> l_next ) if ( l -> l_tls_blocksize != 0 ) {\n slotinfo [ i ] . map = l ;\n ++ i ;\n }\n assert ( i == GL ( dl_tls_max_dtv_idx ) ) ;\n _dl_determine_tlsoffset ( ) ;\n void * tcbp = _dl_allocate_tls_storage ( ) ;\n if ( tcbp == NULL ) _dl_fatal_printf ( \"\\ cannot allocate TLS data structures for initial thread\" ) ;\n GL ( dl_initial_dtv ) = GET_DTV ( tcbp ) ;\n const char * lossage = TLS_INIT_TP ( tcbp ) ;\n if ( __glibc_unlikely ( lossage != NULL ) ) _dl_fatal_printf ( \"cannot set up thread-local storage: %s\\n\" , lossage ) ;\n tls_init_tp_called = true ;\n return tcbp ;\n }"}
{"idx": 17621, "target": 0, "func": "static void dsp_x8_put_solidcolor ( uint8_t const pix , uint8_t * dst , int const linesize ) {\n int k ;\n for ( k = 0 ;\n k < 8 ;\n k ++ ) {\n memset ( dst , pix , 8 ) ;\n dst += linesize ;\n }\n }"}
{"idx": 17622, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( MessageCenterNotificationsTest , BasicAddCancel ) {\n # if defined ( OS_WIN ) && defined ( USE_ASH ) if ( base : : CommandLine : : ForCurrentProcess ( ) -> HasSwitch ( switches : : kAshBrowserTests ) ) return ;\n # endif manager ( ) -> CancelAll ( ) ;\n manager ( ) -> Add ( CreateTestNotification ( \"hey\" ) , profile ( ) ) ;\n EXPECT_EQ ( 1u , message_center ( ) -> NotificationCount ( ) ) ;\n manager ( ) -> CancelById ( \"hey\" , NotificationUIManager : : GetProfileID ( profile ( ) ) ) ;\n EXPECT_EQ ( 0u , message_center ( ) -> NotificationCount ( ) ) ;\n }"}
{"idx": 17623, "target": 0, "func": "void __udp6_lib_err ( struct sk_buff * skb , struct inet6_skb_parm * opt , u8 type , u8 code , int offset , __be32 info , struct udp_table * udptable ) {\n struct ipv6_pinfo * np ;\n struct ipv6hdr * hdr = ( struct ipv6hdr * ) skb -> data ;\n struct in6_addr * saddr = & hdr -> saddr ;\n struct in6_addr * daddr = & hdr -> daddr ;\n struct udphdr * uh = ( struct udphdr * ) ( skb -> data + offset ) ;\n struct sock * sk ;\n int err ;\n sk = __udp6_lib_lookup ( dev_net ( skb -> dev ) , daddr , uh -> dest , saddr , uh -> source , inet6_iif ( skb ) , udptable ) ;\n if ( sk == NULL ) return ;\n np = inet6_sk ( sk ) ;\n if ( ! icmpv6_err_convert ( type , code , & err ) && ! np -> recverr ) goto out ;\n if ( sk -> sk_state != TCP_ESTABLISHED && ! np -> recverr ) goto out ;\n if ( np -> recverr ) ipv6_icmp_error ( sk , skb , err , uh -> dest , ntohl ( info ) , ( u8 * ) ( uh + 1 ) ) ;\n sk -> sk_err = err ;\n sk -> sk_error_report ( sk ) ;\n out : sock_put ( sk ) ;\n }"}
{"idx": 17624, "target": 0, "func": "static char * make_next_duplicate_name ( const char * base , const char * suffix , int count , int max_length ) {\n const char * format ;\n char * result ;\n int unshortened_length ;\n gboolean use_count ;\n if ( count < 1 ) {\n g_warning ( \"bad count %d in get_duplicate_name\" , count ) ;\n count = 1 ;\n }\n if ( count <= 2 ) {\n switch ( count ) {\n default : {\n g_assert_not_reached ( ) ;\n }\n case 1 : {\n format = FIRST_COPY_DUPLICATE_FORMAT ;\n }\n break ;\n case 2 : {\n format = SECOND_COPY_DUPLICATE_FORMAT ;\n }\n break ;\n }\n use_count = FALSE ;\n }\n else {\n switch ( count % 100 ) {\n case 11 : {\n format = X11TH_COPY_DUPLICATE_FORMAT ;\n }\n break ;\n case 12 : {\n format = X12TH_COPY_DUPLICATE_FORMAT ;\n }\n break ;\n case 13 : {\n format = X13TH_COPY_DUPLICATE_FORMAT ;\n }\n break ;\n default : {\n format = NULL ;\n }\n break ;\n }\n if ( format == NULL ) {\n switch ( count % 10 ) {\n case 1 : {\n format = ST_COPY_DUPLICATE_FORMAT ;\n }\n break ;\n case 2 : {\n format = ND_COPY_DUPLICATE_FORMAT ;\n }\n break ;\n case 3 : {\n format = RD_COPY_DUPLICATE_FORMAT ;\n }\n break ;\n default : {\n format = TH_COPY_DUPLICATE_FORMAT ;\n }\n break ;\n }\n }\n use_count = TRUE ;\n }\n # pragma GCC diagnostic push # pragma GCC diagnostic ignored \"-Wformat-nonliteral\" if ( use_count ) {\n result = g_strdup_printf ( format , base , count , suffix ) ;\n }\n else {\n result = g_strdup_printf ( format , base , suffix ) ;\n }\n if ( max_length > 0 && ( unshortened_length = strlen ( result ) ) > max_length ) {\n char * new_base ;\n new_base = shorten_utf8_string ( base , unshortened_length - max_length ) ;\n if ( new_base ) {\n g_free ( result ) ;\n if ( use_count ) {\n result = g_strdup_printf ( format , new_base , count , suffix ) ;\n }\n else {\n result = g_strdup_printf ( format , new_base , suffix ) ;\n }\n g_assert ( strlen ( result ) <= max_length ) ;\n g_free ( new_base ) ;\n }\n }\n # pragma GCC diagnostic pop return result ;\n }"}
{"idx": 17625, "target": 0, "func": "static int add_sorted ( Picture * * sorted , Picture * * src , int len , int limit , int dir ) {\n int i , best_poc ;\n int out_i = 0 ;\n for ( ;\n ;\n ) {\n best_poc = dir ? INT_MIN : INT_MAX ;\n for ( i = 0 ;\n i < len ;\n i ++ ) {\n const int poc = src [ i ] -> poc ;\n if ( ( ( poc > limit ) ^ dir ) && ( ( poc < best_poc ) ^ dir ) ) {\n best_poc = poc ;\n sorted [ out_i ] = src [ i ] ;\n }\n }\n if ( best_poc == ( dir ? INT_MIN : INT_MAX ) ) break ;\n limit = sorted [ out_i ++ ] -> poc - dir ;\n }\n return out_i ;\n }"}
{"idx": 17626, "target": 0, "func": "static int ffmpeg_va_GetFrameBuf ( struct AVCodecContext * p_context , AVFrame * p_ff_pic ) {\n decoder_t * p_dec = ( decoder_t * ) p_context -> opaque ;\n decoder_sys_t * p_sys = p_dec -> p_sys ;\n vlc_va_t * p_va = p_sys -> p_va ;\n if ( vlc_va_Setup ( p_va , & p_context -> hwaccel_context , & p_dec -> fmt_out . video . i_chroma , p_context -> coded_width , p_context -> coded_height ) ) {\n msg_Err ( p_dec , \"vlc_va_Setup failed\" ) ;\n return - 1 ;\n }\n if ( vlc_va_Get ( p_va , & p_ff_pic -> opaque , & p_ff_pic -> data [ 0 ] ) ) {\n msg_Err ( p_dec , \"vlc_va_Get failed\" ) ;\n return - 1 ;\n }\n p_ff_pic -> data [ 3 ] = p_ff_pic -> data [ 0 ] ;\n p_ff_pic -> type = FF_BUFFER_TYPE_USER ;\n return 0 ;\n }"}
{"idx": 17627, "target": 1, "func": "static Image * ReadVIFFImage ( const ImageInfo * image_info , ExceptionInfo * exception ) {\n # define VFF_CM_genericRGB 15 # define VFF_CM_ntscRGB 1 # define VFF_CM_NONE 0 # define VFF_DEP_DECORDER 0x4 # define VFF_DEP_NSORDER 0x8 # define VFF_DES_RAW 0 # define VFF_LOC_IMPLICIT 1 # define VFF_MAPTYP_NONE 0 # define VFF_MAPTYP_1_BYTE 1 # define VFF_MAPTYP_2_BYTE 2 # define VFF_MAPTYP_4_BYTE 4 # define VFF_MAPTYP_FLOAT 5 # define VFF_MAPTYP_DOUBLE 7 # define VFF_MS_NONE 0 # define VFF_MS_ONEPERBAND 1 # define VFF_MS_SHARED 3 # define VFF_TYP_BIT 0 # define VFF_TYP_1_BYTE 1 # define VFF_TYP_2_BYTE 2 # define VFF_TYP_4_BYTE 4 # define VFF_TYP_FLOAT 5 # define VFF_TYP_DOUBLE 9 typedef struct _ViffInfo {\n unsigned char identifier , file_type , release , version , machine_dependency , reserve [ 3 ] ;\n char comment [ 512 ] ;\n unsigned int rows , columns , subrows ;\n int x_offset , y_offset ;\n float x_bits_per_pixel , y_bits_per_pixel ;\n unsigned int location_type , location_dimension , number_of_images , number_data_bands , data_storage_type , data_encode_scheme , map_scheme , map_storage_type , map_rows , map_columns , map_subrows , map_enable , maps_per_cycle , color_space_model ;\n }\n ViffInfo ;\n double min_value , scale_factor , value ;\n Image * image ;\n int bit ;\n MagickBooleanType status ;\n MagickSizeType number_pixels ;\n register IndexPacket * indexes ;\n register ssize_t x ;\n register PixelPacket * q ;\n register ssize_t i ;\n register unsigned char * p ;\n size_t bytes_per_pixel , max_packets , quantum ;\n ssize_t count , y ;\n unsigned char * pixels ;\n unsigned long lsb_first ;\n ViffInfo viff_info ;\n assert ( image_info != ( const ImageInfo * ) NULL ) ;\n assert ( image_info -> signature == MagickSignature ) ;\n if ( image_info -> debug != MagickFalse ) ( void ) LogMagickEvent ( TraceEvent , GetMagickModule ( ) , \"%s\" , image_info -> filename ) ;\n assert ( exception != ( ExceptionInfo * ) NULL ) ;\n assert ( exception -> signature == MagickSignature ) ;\n image = AcquireImage ( image_info ) ;\n status = OpenBlob ( image_info , image , ReadBinaryBlobMode , exception ) ;\n if ( status == MagickFalse ) {\n image = DestroyImageList ( image ) ;\n return ( ( Image * ) NULL ) ;\n }\n count = ReadBlob ( image , 1 , & viff_info . identifier ) ;\n do {\n if ( ( count != 1 ) || ( ( unsigned char ) viff_info . identifier != 0xab ) ) ThrowReaderException ( CorruptImageError , \"NotAVIFFImage\" ) ;\n ( void ) ReadBlob ( image , sizeof ( viff_info . file_type ) , & viff_info . file_type ) ;\n ( void ) ReadBlob ( image , sizeof ( viff_info . release ) , & viff_info . release ) ;\n ( void ) ReadBlob ( image , sizeof ( viff_info . version ) , & viff_info . version ) ;\n ( void ) ReadBlob ( image , sizeof ( viff_info . machine_dependency ) , & viff_info . machine_dependency ) ;\n ( void ) ReadBlob ( image , sizeof ( viff_info . reserve ) , viff_info . reserve ) ;\n ( void ) ReadBlob ( image , 512 , ( unsigned char * ) viff_info . comment ) ;\n viff_info . comment [ 511 ] = '\\0' ;\n if ( strlen ( viff_info . comment ) > 4 ) ( void ) SetImageProperty ( image , \"comment\" , viff_info . comment ) ;\n if ( ( viff_info . machine_dependency == VFF_DEP_DECORDER ) || ( viff_info . machine_dependency == VFF_DEP_NSORDER ) ) image -> endian = LSBEndian ;\n else image -> endian = MSBEndian ;\n viff_info . rows = ReadBlobLong ( image ) ;\n viff_info . columns = ReadBlobLong ( image ) ;\n viff_info . subrows = ReadBlobLong ( image ) ;\n viff_info . x_offset = ( int ) ReadBlobLong ( image ) ;\n viff_info . y_offset = ( int ) ReadBlobLong ( image ) ;\n viff_info . x_bits_per_pixel = ( float ) ReadBlobLong ( image ) ;\n viff_info . y_bits_per_pixel = ( float ) ReadBlobLong ( image ) ;\n viff_info . location_type = ReadBlobLong ( image ) ;\n viff_info . location_dimension = ReadBlobLong ( image ) ;\n viff_info . number_of_images = ReadBlobLong ( image ) ;\n viff_info . number_data_bands = ReadBlobLong ( image ) ;\n viff_info . data_storage_type = ReadBlobLong ( image ) ;\n viff_info . data_encode_scheme = ReadBlobLong ( image ) ;\n viff_info . map_scheme = ReadBlobLong ( image ) ;\n viff_info . map_storage_type = ReadBlobLong ( image ) ;\n viff_info . map_rows = ReadBlobLong ( image ) ;\n viff_info . map_columns = ReadBlobLong ( image ) ;\n viff_info . map_subrows = ReadBlobLong ( image ) ;\n viff_info . map_enable = ReadBlobLong ( image ) ;\n viff_info . maps_per_cycle = ReadBlobLong ( image ) ;\n viff_info . color_space_model = ReadBlobLong ( image ) ;\n for ( i = 0 ;\n i < 420 ;\n i ++ ) ( void ) ReadBlobByte ( image ) ;\n if ( EOFBlob ( image ) != MagickFalse ) ThrowReaderException ( CorruptImageError , \"UnexpectedEndOfFile\" ) ;\n image -> columns = viff_info . rows ;\n image -> rows = viff_info . columns ;\n image -> depth = viff_info . x_bits_per_pixel <= 8 ? 8UL : MAGICKCORE_QUANTUM_DEPTH ;\n number_pixels = ( MagickSizeType ) viff_info . columns * viff_info . rows ;\n if ( number_pixels != ( size_t ) number_pixels ) ThrowReaderException ( ResourceLimitError , \"MemoryAllocationFailed\" ) ;\n if ( number_pixels == 0 ) ThrowReaderException ( CoderError , \"ImageColumnOrRowSizeIsNotSupported\" ) ;\n if ( ( viff_info . number_data_bands < 1 ) || ( viff_info . number_data_bands > 4 ) ) ThrowReaderException ( CorruptImageError , \"ImproperImageHeader\" ) ;\n if ( ( viff_info . data_storage_type != VFF_TYP_BIT ) && ( viff_info . data_storage_type != VFF_TYP_1_BYTE ) && ( viff_info . data_storage_type != VFF_TYP_2_BYTE ) && ( viff_info . data_storage_type != VFF_TYP_4_BYTE ) && ( viff_info . data_storage_type != VFF_TYP_FLOAT ) && ( viff_info . data_storage_type != VFF_TYP_DOUBLE ) ) ThrowReaderException ( CoderError , \"DataStorageTypeIsNotSupported\" ) ;\n if ( viff_info . data_encode_scheme != VFF_DES_RAW ) ThrowReaderException ( CoderError , \"DataEncodingSchemeIsNotSupported\" ) ;\n if ( ( viff_info . map_storage_type != VFF_MAPTYP_NONE ) && ( viff_info . map_storage_type != VFF_MAPTYP_1_BYTE ) && ( viff_info . map_storage_type != VFF_MAPTYP_2_BYTE ) && ( viff_info . map_storage_type != VFF_MAPTYP_4_BYTE ) && ( viff_info . map_storage_type != VFF_MAPTYP_FLOAT ) && ( viff_info . map_storage_type != VFF_MAPTYP_DOUBLE ) ) ThrowReaderException ( CoderError , \"MapStorageTypeIsNotSupported\" ) ;\n if ( ( viff_info . color_space_model != VFF_CM_NONE ) && ( viff_info . color_space_model != VFF_CM_ntscRGB ) && ( viff_info . color_space_model != VFF_CM_genericRGB ) ) ThrowReaderException ( CoderError , \"ColorspaceModelIsNotSupported\" ) ;\n if ( viff_info . location_type != VFF_LOC_IMPLICIT ) ThrowReaderException ( CoderError , \"LocationTypeIsNotSupported\" ) ;\n if ( viff_info . number_of_images != 1 ) ThrowReaderException ( CoderError , \"NumberOfImagesIsNotSupported\" ) ;\n if ( viff_info . map_rows == 0 ) viff_info . map_scheme = VFF_MS_NONE ;\n switch ( ( int ) viff_info . map_scheme ) {\n case VFF_MS_NONE : {\n if ( viff_info . number_data_bands < 3 ) {\n if ( viff_info . data_storage_type == VFF_TYP_BIT ) image -> colors = 2 ;\n else if ( viff_info . data_storage_type == VFF_MAPTYP_1_BYTE ) image -> colors = 256UL ;\n else image -> colors = image -> depth <= 8 ? 256UL : 65536UL ;\n if ( AcquireImageColormap ( image , image -> colors ) == MagickFalse ) ThrowReaderException ( ResourceLimitError , \"MemoryAllocationFailed\" ) ;\n }\n break ;\n }\n case VFF_MS_ONEPERBAND : case VFF_MS_SHARED : {\n unsigned char * viff_colormap ;\n switch ( ( int ) viff_info . map_storage_type ) {\n case VFF_MAPTYP_1_BYTE : bytes_per_pixel = 1 ;\n break ;\n case VFF_MAPTYP_2_BYTE : bytes_per_pixel = 2 ;\n break ;\n case VFF_MAPTYP_4_BYTE : bytes_per_pixel = 4 ;\n break ;\n case VFF_MAPTYP_FLOAT : bytes_per_pixel = 4 ;\n break ;\n case VFF_MAPTYP_DOUBLE : bytes_per_pixel = 8 ;\n break ;\n default : bytes_per_pixel = 1 ;\n break ;\n }\n image -> colors = viff_info . map_columns ;\n if ( AcquireImageColormap ( image , image -> colors ) == MagickFalse ) ThrowReaderException ( ResourceLimitError , \"MemoryAllocationFailed\" ) ;\n if ( viff_info . map_rows > ( viff_info . map_rows * bytes_per_pixel * sizeof ( * viff_colormap ) ) ) ThrowReaderException ( CorruptImageError , \"ImproperImageHeader\" ) ;\n viff_colormap = ( unsigned char * ) AcquireQuantumMemory ( image -> colors , viff_info . map_rows * bytes_per_pixel * sizeof ( * viff_colormap ) ) ;\n if ( viff_colormap == ( unsigned char * ) NULL ) ThrowReaderException ( ResourceLimitError , \"MemoryAllocationFailed\" ) ;\n ( void ) ReadBlob ( image , bytes_per_pixel * image -> colors * viff_info . map_rows , viff_colormap ) ;\n lsb_first = 1 ;\n if ( * ( char * ) & lsb_first && ( ( viff_info . machine_dependency != VFF_DEP_DECORDER ) && ( viff_info . machine_dependency != VFF_DEP_NSORDER ) ) ) switch ( ( int ) viff_info . map_storage_type ) {\n case VFF_MAPTYP_2_BYTE : {\n MSBOrderShort ( viff_colormap , ( bytes_per_pixel * image -> colors * viff_info . map_rows ) ) ;\n break ;\n }\n case VFF_MAPTYP_4_BYTE : case VFF_MAPTYP_FLOAT : {\n MSBOrderLong ( viff_colormap , ( bytes_per_pixel * image -> colors * viff_info . map_rows ) ) ;\n break ;\n }\n default : break ;\n }\n for ( i = 0 ;\n i < ( ssize_t ) ( viff_info . map_rows * image -> colors ) ;\n i ++ ) {\n switch ( ( int ) viff_info . map_storage_type ) {\n case VFF_MAPTYP_2_BYTE : value = 1.0 * ( ( short * ) viff_colormap ) [ i ] ;\n break ;\n case VFF_MAPTYP_4_BYTE : value = 1.0 * ( ( int * ) viff_colormap ) [ i ] ;\n break ;\n case VFF_MAPTYP_FLOAT : value = ( ( float * ) viff_colormap ) [ i ] ;\n break ;\n case VFF_MAPTYP_DOUBLE : value = ( ( double * ) viff_colormap ) [ i ] ;\n break ;\n default : value = 1.0 * viff_colormap [ i ] ;\n break ;\n }\n if ( i < ( ssize_t ) image -> colors ) {\n image -> colormap [ i ] . red = ScaleCharToQuantum ( ( unsigned char ) value ) ;\n image -> colormap [ i ] . green = ScaleCharToQuantum ( ( unsigned char ) value ) ;\n image -> colormap [ i ] . blue = ScaleCharToQuantum ( ( unsigned char ) value ) ;\n }\n else if ( i < ( ssize_t ) ( 2 * image -> colors ) ) image -> colormap [ i % image -> colors ] . green = ScaleCharToQuantum ( ( unsigned char ) value ) ;\n else if ( i < ( ssize_t ) ( 3 * image -> colors ) ) image -> colormap [ i % image -> colors ] . blue = ScaleCharToQuantum ( ( unsigned char ) value ) ;\n }\n viff_colormap = ( unsigned char * ) RelinquishMagickMemory ( viff_colormap ) ;\n break ;\n }\n default : ThrowReaderException ( CoderError , \"ColormapTypeNotSupported\" ) ;\n }\n image -> matte = viff_info . number_data_bands == 4 ? MagickTrue : MagickFalse ;\n image -> storage_class = ( viff_info . number_data_bands < 3 ? PseudoClass : DirectClass ) ;\n image -> columns = viff_info . rows ;\n image -> rows = viff_info . columns ;\n if ( ( image_info -> ping != MagickFalse ) && ( image_info -> number_scenes != 0 ) ) if ( image -> scene >= ( image_info -> scene + image_info -> number_scenes - 1 ) ) break ;\n status = SetImageExtent ( image , image -> columns , image -> rows ) ;\n if ( status == MagickFalse ) {\n InheritException ( exception , & image -> exception ) ;\n return ( DestroyImageList ( image ) ) ;\n }\n switch ( ( int ) viff_info . data_storage_type ) {\n case VFF_TYP_2_BYTE : bytes_per_pixel = 2 ;\n break ;\n case VFF_TYP_4_BYTE : bytes_per_pixel = 4 ;\n break ;\n case VFF_TYP_FLOAT : bytes_per_pixel = 4 ;\n break ;\n case VFF_TYP_DOUBLE : bytes_per_pixel = 8 ;\n break ;\n default : bytes_per_pixel = 1 ;\n break ;\n }\n if ( viff_info . data_storage_type == VFF_TYP_BIT ) max_packets = ( ( image -> columns + 7UL ) >> 3UL ) * image -> rows ;\n else max_packets = ( size_t ) ( number_pixels * viff_info . number_data_bands ) ;\n pixels = ( unsigned char * ) AcquireQuantumMemory ( max_packets , bytes_per_pixel * sizeof ( * pixels ) ) ;\n if ( pixels == ( unsigned char * ) NULL ) ThrowReaderException ( ResourceLimitError , \"MemoryAllocationFailed\" ) ;\n ( void ) ReadBlob ( image , bytes_per_pixel * max_packets , pixels ) ;\n lsb_first = 1 ;\n if ( * ( char * ) & lsb_first && ( ( viff_info . machine_dependency != VFF_DEP_DECORDER ) && ( viff_info . machine_dependency != VFF_DEP_NSORDER ) ) ) switch ( ( int ) viff_info . data_storage_type ) {\n case VFF_TYP_2_BYTE : {\n MSBOrderShort ( pixels , bytes_per_pixel * max_packets ) ;\n break ;\n }\n case VFF_TYP_4_BYTE : case VFF_TYP_FLOAT : {\n MSBOrderLong ( pixels , bytes_per_pixel * max_packets ) ;\n break ;\n }\n default : break ;\n }\n min_value = 0.0 ;\n scale_factor = 1.0 ;\n if ( ( viff_info . data_storage_type != VFF_TYP_1_BYTE ) && ( viff_info . map_scheme == VFF_MS_NONE ) ) {\n double max_value ;\n switch ( ( int ) viff_info . data_storage_type ) {\n case VFF_TYP_2_BYTE : value = 1.0 * ( ( short * ) pixels ) [ 0 ] ;\n break ;\n case VFF_TYP_4_BYTE : value = 1.0 * ( ( int * ) pixels ) [ 0 ] ;\n break ;\n case VFF_TYP_FLOAT : value = ( ( float * ) pixels ) [ 0 ] ;\n break ;\n case VFF_TYP_DOUBLE : value = ( ( double * ) pixels ) [ 0 ] ;\n break ;\n default : value = 1.0 * pixels [ 0 ] ;\n break ;\n }\n max_value = value ;\n min_value = value ;\n for ( i = 0 ;\n i < ( ssize_t ) max_packets ;\n i ++ ) {\n switch ( ( int ) viff_info . data_storage_type ) {\n case VFF_TYP_2_BYTE : value = 1.0 * ( ( short * ) pixels ) [ i ] ;\n break ;\n case VFF_TYP_4_BYTE : value = 1.0 * ( ( int * ) pixels ) [ i ] ;\n break ;\n case VFF_TYP_FLOAT : value = ( ( float * ) pixels ) [ i ] ;\n break ;\n case VFF_TYP_DOUBLE : value = ( ( double * ) pixels ) [ i ] ;\n break ;\n default : value = 1.0 * pixels [ i ] ;\n break ;\n }\n if ( value > max_value ) max_value = value ;\n else if ( value < min_value ) min_value = value ;\n }\n if ( ( min_value == 0 ) && ( max_value == 0 ) ) scale_factor = 0 ;\n else if ( min_value == max_value ) {\n scale_factor = ( MagickRealType ) QuantumRange / min_value ;\n min_value = 0 ;\n }\n else scale_factor = ( MagickRealType ) QuantumRange / ( max_value - min_value ) ;\n }\n p = ( unsigned char * ) pixels ;\n for ( i = 0 ;\n i < ( ssize_t ) max_packets ;\n i ++ ) {\n switch ( ( int ) viff_info . data_storage_type ) {\n case VFF_TYP_2_BYTE : value = 1.0 * ( ( short * ) pixels ) [ i ] ;\n break ;\n case VFF_TYP_4_BYTE : value = 1.0 * ( ( int * ) pixels ) [ i ] ;\n break ;\n case VFF_TYP_FLOAT : value = ( ( float * ) pixels ) [ i ] ;\n break ;\n case VFF_TYP_DOUBLE : value = ( ( double * ) pixels ) [ i ] ;\n break ;\n default : value = 1.0 * pixels [ i ] ;\n break ;\n }\n if ( viff_info . map_scheme == VFF_MS_NONE ) {\n value = ( value - min_value ) * scale_factor ;\n if ( value > QuantumRange ) value = QuantumRange ;\n else if ( value < 0 ) value = 0 ;\n }\n * p = ( unsigned char ) ( ( Quantum ) value ) ;\n p ++ ;\n }\n p = ( unsigned char * ) pixels ;\n if ( viff_info . data_storage_type == VFF_TYP_BIT ) {\n if ( image -> storage_class != PseudoClass ) ThrowReaderException ( CorruptImageError , \"ImproperImageHeader\" ) ;\n for ( y = 0 ;\n y < ( ssize_t ) image -> rows ;\n y ++ ) {\n q = QueueAuthenticPixels ( image , 0 , y , image -> columns , 1 , exception ) ;\n if ( q == ( PixelPacket * ) NULL ) break ;\n indexes = GetAuthenticIndexQueue ( image ) ;\n for ( x = 0 ;\n x < ( ssize_t ) ( image -> columns - 7 ) ;\n x += 8 ) {\n for ( bit = 0 ;\n bit < 8 ;\n bit ++ ) {\n quantum = ( size_t ) ( ( * p ) & ( 0x01 << bit ) ? 0 : 1 ) ;\n SetPixelRed ( q , quantum == 0 ? 0 : QuantumRange ) ;\n SetPixelGreen ( q , quantum == 0 ? 0 : QuantumRange ) ;\n SetPixelBlue ( q , quantum == 0 ? 0 : QuantumRange ) ;\n if ( image -> storage_class == PseudoClass ) SetPixelIndex ( indexes + x + bit , quantum ) ;\n }\n p ++ ;\n }\n if ( ( image -> columns % 8 ) != 0 ) {\n for ( bit = 0 ;\n bit < ( int ) ( image -> columns % 8 ) ;\n bit ++ ) {\n quantum = ( size_t ) ( ( * p ) & ( 0x01 << bit ) ? 0 : 1 ) ;\n SetPixelRed ( q , quantum == 0 ? 0 : QuantumRange ) ;\n SetPixelGreen ( q , quantum == 0 ? 0 : QuantumRange ) ;\n SetPixelBlue ( q , quantum == 0 ? 0 : QuantumRange ) ;\n if ( image -> storage_class == PseudoClass ) SetPixelIndex ( indexes + x + bit , quantum ) ;\n }\n p ++ ;\n }\n if ( SyncAuthenticPixels ( image , exception ) == MagickFalse ) break ;\n if ( image -> previous == ( Image * ) NULL ) {\n status = SetImageProgress ( image , LoadImageTag , ( MagickOffsetType ) y , image -> rows ) ;\n if ( status == MagickFalse ) break ;\n }\n }\n }\n else if ( image -> storage_class == PseudoClass ) for ( y = 0 ;\n y < ( ssize_t ) image -> rows ;\n y ++ ) {\n q = QueueAuthenticPixels ( image , 0 , y , image -> columns , 1 , exception ) ;\n if ( q == ( PixelPacket * ) NULL ) break ;\n indexes = GetAuthenticIndexQueue ( image ) ;\n for ( x = 0 ;\n x < ( ssize_t ) image -> columns ;\n x ++ ) SetPixelIndex ( indexes + x , * p ++ ) ;\n if ( SyncAuthenticPixels ( image , exception ) == MagickFalse ) break ;\n if ( image -> previous == ( Image * ) NULL ) {\n status = SetImageProgress ( image , LoadImageTag , ( MagickOffsetType ) y , image -> rows ) ;\n if ( status == MagickFalse ) break ;\n }\n }\n else {\n number_pixels = ( MagickSizeType ) image -> columns * image -> rows ;\n for ( y = 0 ;\n y < ( ssize_t ) image -> rows ;\n y ++ ) {\n q = QueueAuthenticPixels ( image , 0 , y , image -> columns , 1 , exception ) ;\n if ( q == ( PixelPacket * ) NULL ) break ;\n for ( x = 0 ;\n x < ( ssize_t ) image -> columns ;\n x ++ ) {\n SetPixelRed ( q , ScaleCharToQuantum ( * p ) ) ;\n SetPixelGreen ( q , ScaleCharToQuantum ( * ( p + number_pixels ) ) ) ;\n SetPixelBlue ( q , ScaleCharToQuantum ( * ( p + 2 * number_pixels ) ) ) ;\n if ( image -> colors != 0 ) {\n ssize_t index ;\n index = ( ssize_t ) GetPixelRed ( q ) ;\n SetPixelRed ( q , image -> colormap [ ( ssize_t ) ConstrainColormapIndex ( image , index ) ] . red ) ;\n index = ( ssize_t ) GetPixelGreen ( q ) ;\n SetPixelGreen ( q , image -> colormap [ ( ssize_t ) ConstrainColormapIndex ( image , index ) ] . green ) ;\n index = ( ssize_t ) GetPixelRed ( q ) ;\n SetPixelBlue ( q , image -> colormap [ ( ssize_t ) ConstrainColormapIndex ( image , index ) ] . blue ) ;\n }\n SetPixelOpacity ( q , image -> matte != MagickFalse ? QuantumRange - ScaleCharToQuantum ( * ( p + number_pixels * 3 ) ) : OpaqueOpacity ) ;\n p ++ ;\n q ++ ;\n }\n if ( SyncAuthenticPixels ( image , exception ) == MagickFalse ) break ;\n if ( image -> previous == ( Image * ) NULL ) {\n status = SetImageProgress ( image , LoadImageTag , ( MagickOffsetType ) y , image -> rows ) ;\n if ( status == MagickFalse ) break ;\n }\n }\n }\n pixels = ( unsigned char * ) RelinquishMagickMemory ( pixels ) ;\n if ( image -> storage_class == PseudoClass ) ( void ) SyncImage ( image ) ;\n if ( EOFBlob ( image ) != MagickFalse ) {\n ThrowFileException ( exception , CorruptImageError , \"UnexpectedEndOfFile\" , image -> filename ) ;\n break ;\n }\n if ( image_info -> number_scenes != 0 ) if ( image -> scene >= ( image_info -> scene + image_info -> number_scenes - 1 ) ) break ;\n count = ReadBlob ( image , 1 , & viff_info . identifier ) ;\n if ( ( count != 0 ) && ( viff_info . identifier == 0xab ) ) {\n AcquireNextImage ( image_info , image ) ;\n if ( GetNextImageInList ( image ) == ( Image * ) NULL ) {\n image = DestroyImageList ( image ) ;\n return ( ( Image * ) NULL ) ;\n }\n image = SyncNextImageInList ( image ) ;\n status = SetImageProgress ( image , LoadImagesTag , TellBlob ( image ) , GetBlobSize ( image ) ) ;\n if ( status == MagickFalse ) break ;\n }\n }\n while ( ( count != 0 ) && ( viff_info . identifier == 0xab ) ) ;\n ( void ) CloseBlob ( image ) ;\n return ( GetFirstImageInList ( image ) ) ;\n }"}
{"idx": 17628, "target": 0, "func": "static tvbuff_t * mac_is_add_fragment ( tvbuff_t * tvb _U_ , packet_info * pinfo , proto_tree * tree _U_ , guint8 lchid , guint ueid , int offset , guint8 ss , guint16 tsn , int sdu_no , guint8 no_sdus , guint16 maclength ) {\n mac_is_channel ch ;\n ch . lchid = lchid ;\n ch . ueid = ueid ;\n if ( pinfo -> fd -> flags . visited == FALSE ) {\n body_parts * * body_parts_array = get_body_parts ( & ch ) ;\n if ( no_sdus == 1 && ss == 3 ) {\n guint head_length , tail_length ;\n init_frag ( tvb , body_parts_array [ tsn ] , maclength , offset , pinfo -> num , tsn , MAC_IS_MIDDLE ) ;\n tail_length = find_tail ( body_parts_array , tsn ) ;\n if ( tail_length > 0 ) {\n head_length = find_head ( body_parts_array , & tsn ) ;\n if ( head_length > 0 ) {\n return reassemble ( tvb , body_parts_array , tsn , tail_length + head_length + maclength , & ch , pinfo -> num ) ;\n }\n }\n }\n else if ( sdu_no == 0 && ( ss & 1 ) == 1 ) {\n guint length = maclength ;\n init_frag ( tvb , body_parts_array [ tsn ] , maclength , offset , pinfo -> num , tsn , MAC_IS_TAIL ) ;\n length += find_head ( body_parts_array , & tsn ) ;\n if ( length > maclength ) {\n return reassemble ( tvb , body_parts_array , tsn , length , & ch , pinfo -> num ) ;\n }\n }\n else if ( sdu_no == no_sdus - 1 && ( ss & 2 ) == 2 ) {\n guint length = maclength ;\n init_frag ( tvb , body_parts_array [ tsn ] , maclength , offset , pinfo -> num , tsn , MAC_IS_HEAD ) ;\n length += find_tail ( body_parts_array , tsn ) ;\n if ( length > maclength ) {\n return reassemble ( tvb , body_parts_array , tsn , length , & ch , pinfo -> num ) ;\n }\n }\n else {\n DISSECTOR_ASSERT ( ( sdu_no == 0 ) ? ( ss & 1 ) == 0 : ( ( sdu_no == no_sdus - 1 ) ? ( ss & 2 ) == 0 : TRUE ) ) ;\n return tvb_new_subset ( tvb , offset , maclength , - 1 ) ;\n }\n }\n else {\n tvbuff_t * new_tvb = NULL ;\n if ( no_sdus == 1 && ss == 3 ) {\n mac_is_sdu * sdu = get_sdu ( pinfo -> num , tsn , MAC_IS_MIDDLE , & ch ) ;\n if ( sdu ) {\n return add_to_tree ( tvb , pinfo , tree , sdu , offset , maclength , MAC_IS_MIDDLE ) ;\n }\n }\n else if ( sdu_no == 0 && ( ss & 1 ) == 1 ) {\n mac_is_sdu * sdu = get_sdu ( pinfo -> num , tsn , MAC_IS_TAIL , & ch ) ;\n if ( sdu ) {\n return add_to_tree ( tvb , pinfo , tree , sdu , offset , maclength , MAC_IS_TAIL ) ;\n }\n }\n else if ( sdu_no == no_sdus - 1 && ( ss & 2 ) == 2 ) {\n mac_is_sdu * sdu = get_sdu ( pinfo -> num , tsn , MAC_IS_HEAD , & ch ) ;\n if ( sdu ) {\n return add_to_tree ( tvb , pinfo , tree , sdu , offset , maclength , MAC_IS_HEAD ) ;\n }\n }\n else {\n new_tvb = tvb_new_subset ( tvb , offset , maclength , - 1 ) ;\n proto_tree_add_expert ( tree , pinfo , & ei_mac_macis_sdu_complete , new_tvb , 0 , - 1 ) ;\n proto_tree_add_item ( tree , hf_mac_edch_type2_sdu_data , new_tvb , 0 , - 1 , ENC_NA ) ;\n return new_tvb ;\n }\n }\n return NULL ;\n }"}
{"idx": 17629, "target": 0, "func": "static void ff_compute_band_indexes ( MPADecodeContext * s , GranuleDef * g ) {\n if ( g -> block_type == 2 ) {\n if ( g -> switch_point ) {\n if ( s -> sample_rate_index <= 2 ) g -> long_end = 8 ;\n else g -> long_end = 6 ;\n g -> short_start = 3 ;\n }\n else {\n g -> long_end = 0 ;\n g -> short_start = 0 ;\n }\n }\n else {\n g -> short_start = 13 ;\n g -> long_end = 22 ;\n }\n }"}
{"idx": 17630, "target": 0, "func": "static void decode_mb_p ( AVSContext * h , enum cavs_mb mb_type ) {\n GetBitContext * gb = & h -> gb ;\n int ref [ 4 ] ;\n ff_cavs_init_mb ( h ) ;\n switch ( mb_type ) {\n case P_SKIP : ff_cavs_mv ( h , MV_FWD_X0 , MV_FWD_C2 , MV_PRED_PSKIP , BLK_16X16 , 0 ) ;\n break ;\n case P_16X16 : ref [ 0 ] = h -> ref_flag ? 0 : get_bits1 ( gb ) ;\n ff_cavs_mv ( h , MV_FWD_X0 , MV_FWD_C2 , MV_PRED_MEDIAN , BLK_16X16 , ref [ 0 ] ) ;\n break ;\n case P_16X8 : ref [ 0 ] = h -> ref_flag ? 0 : get_bits1 ( gb ) ;\n ref [ 2 ] = h -> ref_flag ? 0 : get_bits1 ( gb ) ;\n ff_cavs_mv ( h , MV_FWD_X0 , MV_FWD_C2 , MV_PRED_TOP , BLK_16X8 , ref [ 0 ] ) ;\n ff_cavs_mv ( h , MV_FWD_X2 , MV_FWD_A1 , MV_PRED_LEFT , BLK_16X8 , ref [ 2 ] ) ;\n break ;\n case P_8X16 : ref [ 0 ] = h -> ref_flag ? 0 : get_bits1 ( gb ) ;\n ref [ 1 ] = h -> ref_flag ? 0 : get_bits1 ( gb ) ;\n ff_cavs_mv ( h , MV_FWD_X0 , MV_FWD_B3 , MV_PRED_LEFT , BLK_8X16 , ref [ 0 ] ) ;\n ff_cavs_mv ( h , MV_FWD_X1 , MV_FWD_C2 , MV_PRED_TOPRIGHT , BLK_8X16 , ref [ 1 ] ) ;\n break ;\n case P_8X8 : ref [ 0 ] = h -> ref_flag ? 0 : get_bits1 ( gb ) ;\n ref [ 1 ] = h -> ref_flag ? 0 : get_bits1 ( gb ) ;\n ref [ 2 ] = h -> ref_flag ? 0 : get_bits1 ( gb ) ;\n ref [ 3 ] = h -> ref_flag ? 0 : get_bits1 ( gb ) ;\n ff_cavs_mv ( h , MV_FWD_X0 , MV_FWD_B3 , MV_PRED_MEDIAN , BLK_8X8 , ref [ 0 ] ) ;\n ff_cavs_mv ( h , MV_FWD_X1 , MV_FWD_C2 , MV_PRED_MEDIAN , BLK_8X8 , ref [ 1 ] ) ;\n ff_cavs_mv ( h , MV_FWD_X2 , MV_FWD_X1 , MV_PRED_MEDIAN , BLK_8X8 , ref [ 2 ] ) ;\n ff_cavs_mv ( h , MV_FWD_X3 , MV_FWD_X0 , MV_PRED_MEDIAN , BLK_8X8 , ref [ 3 ] ) ;\n }\n ff_cavs_inter ( h , mb_type ) ;\n set_intra_mode_default ( h ) ;\n store_mvs ( h ) ;\n if ( mb_type != P_SKIP ) decode_residual_inter ( h ) ;\n ff_cavs_filter ( h , mb_type ) ;\n h -> col_type_base [ h -> mbidx ] = mb_type ;\n }"}
{"idx": 17631, "target": 0, "func": "void internal_set_bit ( REP_SET * set , uint bit ) {\n set -> bits [ bit / WORD_BIT ] |= 1 << ( bit % WORD_BIT ) ;\n return ;\n }"}
{"idx": 17632, "target": 0, "func": "void vp9_idct32x32_1_add_c ( const tran_low_t * input , uint8_t * dest , int stride ) {\n int i , j ;\n tran_high_t a1 ;\n tran_low_t out = dct_const_round_shift ( input [ 0 ] * cospi_16_64 ) ;\n out = dct_const_round_shift ( out * cospi_16_64 ) ;\n a1 = ROUND_POWER_OF_TWO ( out , 6 ) ;\n for ( j = 0 ;\n j < 32 ;\n ++ j ) {\n for ( i = 0 ;\n i < 32 ;\n ++ i ) dest [ i ] = clip_pixel ( dest [ i ] + a1 ) ;\n dest += stride ;\n }\n }"}
{"idx": 17633, "target": 1, "func": "static inline void evhttp_send ( struct evhttp_request * req , struct evbuffer * databuf ) {\n struct evhttp_connection * evcon = req -> evcon ;\n assert ( TAILQ_FIRST ( & evcon -> requests ) == req ) ;\n if ( databuf != NULL ) evbuffer_add_buffer ( req -> output_buffer , databuf ) ;\n evhttp_make_header ( evcon , req ) ;\n evhttp_write_buffer ( evcon , evhttp_send_done , NULL ) ;\n }"}
{"idx": 17634, "target": 0, "func": "static const char * cmd_stream_outbody_inspection ( cmd_parms * cmd , void * _dcfg , int flag ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n if ( dcfg == NULL ) return NULL ;\n dcfg -> stream_outbody_inspection = flag ;\n return NULL ;\n }"}
{"idx": 17635, "target": 0, "func": "static const char * cmd_unicode_map ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n const char * filename = resolve_relative_path ( cmd -> pool , cmd -> directive -> filename , p1 ) ;\n char * error_msg ;\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n if ( dcfg == NULL ) return NULL ;\n if ( unicode_map_init ( dcfg , filename , & error_msg ) <= 0 ) {\n return error_msg ;\n }\n return NULL ;\n }"}
{"idx": 17636, "target": 0, "func": "static void audio_init ( PCIBus * pci_bus ) {\n vt82c686b_ac97_init ( pci_bus , PCI_DEVFN ( FULONG2E_VIA_SLOT , 5 ) ) ;\n vt82c686b_mc97_init ( pci_bus , PCI_DEVFN ( FULONG2E_VIA_SLOT , 6 ) ) ;\n }"}
{"idx": 17637, "target": 0, "func": "static PyObject * string_slice ( register PyStringObject * a , register Py_ssize_t i , register Py_ssize_t j ) {\n if ( i < 0 ) i = 0 ;\n if ( j < 0 ) j = 0 ;\n if ( j > Py_SIZE ( a ) ) j = Py_SIZE ( a ) ;\n if ( i == 0 && j == Py_SIZE ( a ) && PyString_CheckExact ( a ) ) {\n Py_INCREF ( a ) ;\n return ( PyObject * ) a ;\n }\n if ( j < i ) j = i ;\n return PyString_FromStringAndSize ( a -> ob_sval + i , j - i ) ;\n }"}
{"idx": 17638, "target": 0, "func": "char * fstostr ( time_t ntp_stamp ) {\n char * buf ;\n struct tm * tm ;\n time_t unix_stamp ;\n LIB_GETBUF ( buf ) ;\n unix_stamp = ntp_stamp - JAN_1970 ;\n tm = gmtime ( & unix_stamp ) ;\n if ( NULL == tm ) # ifdef WAIT_FOR_NTP_CRYPTO_C_CALLERS_ABLE_TO_HANDLE_MORE_THAN_20_CHARS msnprintf ( buf , LIB_BUFLENGTH , \"gmtime: %m\" ) ;\n # else strncpy ( buf , \"gmtime() error\" , LIB_BUFLENGTH ) ;\n # endif else snprintf ( buf , LIB_BUFLENGTH , \"%04d%02d%02d%02d%02d\" , tm -> tm_year + 1900 , tm -> tm_mon + 1 , tm -> tm_mday , tm -> tm_hour , tm -> tm_min ) ;\n return buf ;\n }"}
{"idx": 17639, "target": 0, "func": "static void U_CALLCONV _UTF16BEFromUnicodeWithOffsets ( UConverterFromUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n UConverter * cnv ;\n const UChar * source ;\n char * target ;\n int32_t * offsets ;\n uint32_t targetCapacity , length , sourceIndex ;\n UChar c , trail ;\n char overflow [ 4 ] ;\n source = pArgs -> source ;\n length = ( int32_t ) ( pArgs -> sourceLimit - source ) ;\n if ( length <= 0 ) {\n return ;\n }\n cnv = pArgs -> converter ;\n if ( cnv -> fromUnicodeStatus == UCNV_NEED_TO_WRITE_BOM ) {\n static const char bom [ ] = {\n ( char ) 0xfe , ( char ) 0xff }\n ;\n ucnv_fromUWriteBytes ( cnv , bom , 2 , & pArgs -> target , pArgs -> targetLimit , & pArgs -> offsets , - 1 , pErrorCode ) ;\n cnv -> fromUnicodeStatus = 0 ;\n }\n target = pArgs -> target ;\n if ( target >= pArgs -> targetLimit ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n return ;\n }\n targetCapacity = ( uint32_t ) ( pArgs -> targetLimit - target ) ;\n offsets = pArgs -> offsets ;\n sourceIndex = 0 ;\n if ( ( c = ( UChar ) cnv -> fromUChar32 ) != 0 && U16_IS_TRAIL ( trail = * source ) && targetCapacity >= 4 ) {\n ++ source ;\n -- length ;\n target [ 0 ] = ( uint8_t ) ( c >> 8 ) ;\n target [ 1 ] = ( uint8_t ) c ;\n target [ 2 ] = ( uint8_t ) ( trail >> 8 ) ;\n target [ 3 ] = ( uint8_t ) trail ;\n target += 4 ;\n targetCapacity -= 4 ;\n if ( offsets != NULL ) {\n * offsets ++ = - 1 ;\n * offsets ++ = - 1 ;\n * offsets ++ = - 1 ;\n * offsets ++ = - 1 ;\n }\n sourceIndex = 1 ;\n cnv -> fromUChar32 = c = 0 ;\n }\n if ( c == 0 ) {\n uint32_t count = 2 * length ;\n if ( count > targetCapacity ) {\n count = targetCapacity & ~ 1 ;\n }\n targetCapacity -= count ;\n count >>= 1 ;\n length -= count ;\n if ( offsets == NULL ) {\n while ( count > 0 ) {\n c = * source ++ ;\n if ( U16_IS_SINGLE ( c ) ) {\n target [ 0 ] = ( uint8_t ) ( c >> 8 ) ;\n target [ 1 ] = ( uint8_t ) c ;\n target += 2 ;\n }\n else if ( U16_IS_SURROGATE_LEAD ( c ) && count >= 2 && U16_IS_TRAIL ( trail = * source ) ) {\n ++ source ;\n -- count ;\n target [ 0 ] = ( uint8_t ) ( c >> 8 ) ;\n target [ 1 ] = ( uint8_t ) c ;\n target [ 2 ] = ( uint8_t ) ( trail >> 8 ) ;\n target [ 3 ] = ( uint8_t ) trail ;\n target += 4 ;\n }\n else {\n break ;\n }\n -- count ;\n }\n }\n else {\n while ( count > 0 ) {\n c = * source ++ ;\n if ( U16_IS_SINGLE ( c ) ) {\n target [ 0 ] = ( uint8_t ) ( c >> 8 ) ;\n target [ 1 ] = ( uint8_t ) c ;\n target += 2 ;\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ++ ;\n }\n else if ( U16_IS_SURROGATE_LEAD ( c ) && count >= 2 && U16_IS_TRAIL ( trail = * source ) ) {\n ++ source ;\n -- count ;\n target [ 0 ] = ( uint8_t ) ( c >> 8 ) ;\n target [ 1 ] = ( uint8_t ) c ;\n target [ 2 ] = ( uint8_t ) ( trail >> 8 ) ;\n target [ 3 ] = ( uint8_t ) trail ;\n target += 4 ;\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ;\n sourceIndex += 2 ;\n }\n else {\n break ;\n }\n -- count ;\n }\n }\n if ( count == 0 ) {\n if ( length > 0 && targetCapacity > 0 ) {\n if ( U16_IS_SINGLE ( c = * source ++ ) ) {\n overflow [ 0 ] = ( char ) ( c >> 8 ) ;\n overflow [ 1 ] = ( char ) c ;\n length = 2 ;\n c = 0 ;\n }\n }\n else {\n length = 0 ;\n c = 0 ;\n }\n }\n else {\n targetCapacity += 2 * count ;\n }\n }\n else {\n length = 0 ;\n }\n if ( c != 0 ) {\n length = 0 ;\n if ( U16_IS_SURROGATE_LEAD ( c ) ) {\n if ( source < pArgs -> sourceLimit ) {\n if ( U16_IS_TRAIL ( trail = * source ) ) {\n ++ source ;\n overflow [ 0 ] = ( char ) ( c >> 8 ) ;\n overflow [ 1 ] = ( char ) c ;\n overflow [ 2 ] = ( char ) ( trail >> 8 ) ;\n overflow [ 3 ] = ( char ) trail ;\n length = 4 ;\n c = 0 ;\n }\n else {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n else {\n }\n }\n else {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n }\n cnv -> fromUChar32 = c ;\n }\n if ( length > 0 ) {\n ucnv_fromUWriteBytes ( cnv , overflow , length , ( char * * ) & target , pArgs -> targetLimit , & offsets , sourceIndex , pErrorCode ) ;\n targetCapacity = ( uint32_t ) ( pArgs -> targetLimit - ( char * ) target ) ;\n }\n if ( U_SUCCESS ( * pErrorCode ) && source < pArgs -> sourceLimit && targetCapacity == 0 ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n pArgs -> source = source ;\n pArgs -> target = ( char * ) target ;\n pArgs -> offsets = offsets ;\n }"}
{"idx": 17640, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( ProfileBrowserTest , URLFetcherUsingMediaContextDuringShutdown ) {\n StartActiveFetcherDuringProfileShutdownTest ( content : : BrowserContext : : GetDefaultStoragePartition ( browser ( ) -> profile ( ) ) -> GetMediaURLRequestContext ( ) ) ;\n }"}
{"idx": 17641, "target": 0, "func": "static gpgme_error_t start ( engine_gpgsm_t gpgsm , const char * command ) {\n gpgme_error_t err ;\n assuan_fd_t afdlist [ 5 ] ;\n int fdlist [ 5 ] ;\n int nfds ;\n int i ;\n nfds = assuan_get_active_fds ( gpgsm -> assuan_ctx , 0 , afdlist , DIM ( afdlist ) ) ;\n if ( nfds < 1 ) return gpg_error ( GPG_ERR_GENERAL ) ;\n for ( i = 0 ;\n i < nfds ;\n i ++ ) fdlist [ i ] = ( int ) afdlist [ i ] ;\n gpgsm -> status_cb . fd = _gpgme_io_dup ( fdlist [ 0 ] ) ;\n if ( gpgsm -> status_cb . fd < 0 ) return gpg_error_from_syserror ( ) ;\n if ( _gpgme_io_set_close_notify ( gpgsm -> status_cb . fd , close_notify_handler , gpgsm ) ) {\n _gpgme_io_close ( gpgsm -> status_cb . fd ) ;\n gpgsm -> status_cb . fd = - 1 ;\n return gpg_error ( GPG_ERR_GENERAL ) ;\n }\n err = add_io_cb ( gpgsm , & gpgsm -> status_cb , status_handler ) ;\n if ( ! err && gpgsm -> input_cb . fd != - 1 ) err = add_io_cb ( gpgsm , & gpgsm -> input_cb , _gpgme_data_outbound_handler ) ;\n if ( ! err && gpgsm -> output_cb . fd != - 1 ) err = add_io_cb ( gpgsm , & gpgsm -> output_cb , _gpgme_data_inbound_handler ) ;\n if ( ! err && gpgsm -> message_cb . fd != - 1 ) err = add_io_cb ( gpgsm , & gpgsm -> message_cb , _gpgme_data_outbound_handler ) ;\n if ( ! err ) err = assuan_write_line ( gpgsm -> assuan_ctx , command ) ;\n if ( ! err ) gpgsm_io_event ( gpgsm , GPGME_EVENT_START , NULL ) ;\n return err ;\n }"}
{"idx": 17642, "target": 0, "func": "int * __xmlLineNumbersDefaultValue ( void ) {\n if ( IS_MAIN_THREAD ) return ( & xmlLineNumbersDefaultValue ) ;\n else return ( & xmlGetGlobalState ( ) -> xmlLineNumbersDefaultValue ) ;\n }"}
{"idx": 17643, "target": 0, "func": "vpx_codec_err_t vpx_svc_set_options ( SvcContext * svc_ctx , const char * options ) {\n SvcInternal * const si = get_svc_internal ( svc_ctx ) ;\n if ( svc_ctx == NULL || options == NULL || si == NULL ) {\n return VPX_CODEC_INVALID_PARAM ;\n }\n strncpy ( si -> options , options , sizeof ( si -> options ) ) ;\n si -> options [ sizeof ( si -> options ) - 1 ] = '\\0' ;\n return VPX_CODEC_OK ;\n }"}
{"idx": 17644, "target": 0, "func": "static int dissect_h245_RemoteMCRequest ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_RemoteMCRequest , RemoteMCRequest_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 17645, "target": 0, "func": "static inline bool cgfs_create ( void * hdata ) {\n struct cgfs_data * d = hdata ;\n struct cgroup_process_info * i ;\n struct cgroup_meta_data * md ;\n if ( ! d ) return false ;\n md = d -> meta ;\n i = lxc_cgroupfs_create ( d -> name , d -> cgroup_pattern , md , NULL ) ;\n if ( ! i ) return false ;\n d -> info = i ;\n return true ;\n }"}
{"idx": 17646, "target": 0, "func": "static int evport_add ( void * arg , struct event * ev ) {\n struct evport_data * evpd = arg ;\n struct fd_info * fdi ;\n int factor ;\n check_evportop ( evpd ) ;\n if ( ev -> ev_events & EV_SIGNAL ) return ( evsignal_add ( ev ) ) ;\n factor = 1 ;\n while ( ev -> ev_fd >= factor * evpd -> ed_nevents ) factor *= 2 ;\n if ( factor > 1 ) {\n if ( - 1 == grow ( evpd , factor ) ) {\n return ( - 1 ) ;\n }\n }\n fdi = & evpd -> ed_fds [ ev -> ev_fd ] ;\n if ( ev -> ev_events & EV_READ ) fdi -> fdi_revt = ev ;\n if ( ev -> ev_events & EV_WRITE ) fdi -> fdi_wevt = ev ;\n return reassociate ( evpd , fdi , ev -> ev_fd ) ;\n }"}
{"idx": 17647, "target": 0, "func": "gpg_error_t keydb_search_reset ( KEYDB_HANDLE hd ) {\n gpg_error_t rc = 0 ;\n int i ;\n if ( ! hd ) return gpg_error ( GPG_ERR_INV_ARG ) ;\n keyblock_cache_clear ( ) ;\n if ( DBG_CLOCK ) log_clock ( \"keydb_search_reset\" ) ;\n if ( DBG_CACHE ) log_debug ( \"keydb_search: reset (hd=%p)\" , hd ) ;\n hd -> skipped_long_blobs = 0 ;\n hd -> current = 0 ;\n hd -> found = - 1 ;\n for ( i = 0 ;\n ! rc && i < hd -> used ;\n i ++ ) {\n switch ( hd -> active [ i ] . type ) {\n case KEYDB_RESOURCE_TYPE_NONE : break ;\n case KEYDB_RESOURCE_TYPE_KEYRING : rc = keyring_search_reset ( hd -> active [ i ] . u . kr ) ;\n break ;\n case KEYDB_RESOURCE_TYPE_KEYBOX : rc = keybox_search_reset ( hd -> active [ i ] . u . kb ) ;\n break ;\n }\n }\n return rc ;\n }"}
{"idx": 17648, "target": 0, "func": "static void bgr2cmyk ( fz_context * ctx , fz_color_converter * cc , float * dv , const float * sv ) {\n float c = 1 - sv [ 2 ] ;\n float m = 1 - sv [ 1 ] ;\n float y = 1 - sv [ 0 ] ;\n float k = fz_min ( c , fz_min ( m , y ) ) ;\n dv [ 0 ] = c - k ;\n dv [ 1 ] = m - k ;\n dv [ 2 ] = y - k ;\n dv [ 3 ] = k ;\n }"}
{"idx": 17649, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( BookmarkBubbleSignInDelegateTest , OnSignInLinkClicked ) {\n ReplaceBlank ( browser ( ) ) ;\n int starting_tab_count = browser ( ) -> tab_strip_model ( ) -> count ( ) ;\n scoped_ptr < BookmarkBubbleDelegate > delegate ;\n delegate . reset ( new BookmarkBubbleSignInDelegate ( browser ( ) ) ) ;\n delegate -> OnSignInLinkClicked ( ) ;\n if ( kHasProfileChooser ) {\n EXPECT_TRUE ( ProfileChooserView : : IsShowing ( ) ) ;\n EXPECT_EQ ( starting_tab_count , browser ( ) -> tab_strip_model ( ) -> count ( ) ) ;\n }\n else {\n EXPECT_EQ ( starting_tab_count + 1 , browser ( ) -> tab_strip_model ( ) -> count ( ) ) ;\n }\n }"}
{"idx": 17650, "target": 0, "func": "int vp8_calc_ss_err ( YV12_BUFFER_CONFIG * source , YV12_BUFFER_CONFIG * dest ) {\n int i , j ;\n int Total = 0 ;\n unsigned char * src = source -> y_buffer ;\n unsigned char * dst = dest -> y_buffer ;\n for ( i = 0 ;\n i < source -> y_height ;\n i += 16 ) {\n for ( j = 0 ;\n j < source -> y_width ;\n j += 16 ) {\n unsigned int sse ;\n Total += vp8_mse16x16 ( src + j , source -> y_stride , dst + j , dest -> y_stride , & sse ) ;\n }\n src += 16 * source -> y_stride ;\n dst += 16 * dest -> y_stride ;\n }\n return Total ;\n }"}
{"idx": 17651, "target": 0, "func": "unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 ) VAR ( 8 , 4 ) SUBPIX_VAR ( 8 , 4 ) SUBPIX_AVG_VAR ( 8 , 4 ) VAR ( 8 , 8 ) SUBPIX_VAR ( 8 , 8 ) SUBPIX_AVG_VAR ( 8 , 8 ) VAR ( 8 , 16 ) SUBPIX_VAR ( 8 , 16 ) SUBPIX_AVG_VAR ( 8 , 16 ) VAR ( 16 , 8 ) SUBPIX_VAR ( 16 , 8 ) SUBPIX_AVG_VAR ( 16 , 8 ) VAR ( 16 , 16 ) SUBPIX_VAR ( 16 , 16 ) SUBPIX_AVG_VAR ( 16 , 16 ) VAR ( 16 , 32 ) SUBPIX_VAR ( 16 , 32 ) SUBPIX_AVG_VAR ( 16 , 32 ) VAR ( 32 , 16 ) SUBPIX_VAR ( 32 , 16 ) SUBPIX_AVG_VAR ( 32 , 16 ) VAR ( 32 , 32 ) SUBPIX_VAR ( 32 , 32 ) SUBPIX_AVG_VAR ( 32 , 32 ) VAR ( 32 , 64 ) SUBPIX_VAR ( 32 , 64 ) SUBPIX_AVG_VAR ( 32 , 64 )"}
{"idx": 17652, "target": 0, "func": "int ff_h264_get_slice_type ( const H264Context * h ) {\n switch ( h -> slice_type ) {\n case AV_PICTURE_TYPE_P : return 0 ;\n case AV_PICTURE_TYPE_B : return 1 ;\n case AV_PICTURE_TYPE_I : return 2 ;\n case AV_PICTURE_TYPE_SP : return 3 ;\n case AV_PICTURE_TYPE_SI : return 4 ;\n default : return AVERROR_INVALIDDATA ;\n }\n }"}
{"idx": 17653, "target": 0, "func": "static void gather_data_for_cel ( CelEvaluation * cel , RoqContext * enc , RoqTempdata * tempData ) {\n uint8_t mb8 [ 8 * 8 * 3 ] ;\n int index = cel -> sourceY * enc -> width / 64 + cel -> sourceX / 8 ;\n int i , j , best_dist , divide_bit_use ;\n int bitsUsed [ 4 ] = {\n 2 , 10 , 10 , 0 }\n ;\n if ( enc -> framesSinceKeyframe >= 1 ) {\n cel -> motion = enc -> this_motion8 [ index ] ;\n cel -> eval_dist [ RoQ_ID_FCC ] = eval_motion_dist ( enc , cel -> sourceX , cel -> sourceY , enc -> this_motion8 [ index ] , 8 ) ;\n }\n else cel -> eval_dist [ RoQ_ID_FCC ] = INT_MAX ;\n if ( enc -> framesSinceKeyframe >= 2 ) cel -> eval_dist [ RoQ_ID_MOT ] = block_sse ( enc -> frame_to_enc -> data , enc -> current_frame -> data , cel -> sourceX , cel -> sourceY , cel -> sourceX , cel -> sourceY , enc -> frame_to_enc -> linesize , enc -> current_frame -> linesize , 8 ) ;\n else cel -> eval_dist [ RoQ_ID_MOT ] = INT_MAX ;\n get_frame_mb ( enc -> frame_to_enc , cel -> sourceX , cel -> sourceY , mb8 , 8 ) ;\n cel -> eval_dist [ RoQ_ID_SLD ] = index_mb ( mb8 , tempData -> codebooks . unpacked_cb4_enlarged , tempData -> codebooks . numCB4 , & cel -> cbEntry , 8 ) ;\n gather_data_for_subcel ( cel -> subCels + 0 , cel -> sourceX + 0 , cel -> sourceY + 0 , enc , tempData ) ;\n gather_data_for_subcel ( cel -> subCels + 1 , cel -> sourceX + 4 , cel -> sourceY + 0 , enc , tempData ) ;\n gather_data_for_subcel ( cel -> subCels + 2 , cel -> sourceX + 0 , cel -> sourceY + 4 , enc , tempData ) ;\n gather_data_for_subcel ( cel -> subCels + 3 , cel -> sourceX + 4 , cel -> sourceY + 4 , enc , tempData ) ;\n cel -> eval_dist [ RoQ_ID_CCC ] = 0 ;\n divide_bit_use = 0 ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n cel -> eval_dist [ RoQ_ID_CCC ] += cel -> subCels [ i ] . eval_dist [ cel -> subCels [ i ] . best_coding ] ;\n divide_bit_use += cel -> subCels [ i ] . best_bit_use ;\n }\n best_dist = INT_MAX ;\n bitsUsed [ 3 ] = 2 + divide_bit_use ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) if ( ROQ_LAMBDA_SCALE * cel -> eval_dist [ i ] + enc -> lambda * bitsUsed [ i ] < best_dist ) {\n cel -> best_coding = i ;\n best_dist = ROQ_LAMBDA_SCALE * cel -> eval_dist [ i ] + enc -> lambda * bitsUsed [ i ] ;\n }\n tempData -> used_option [ cel -> best_coding ] ++ ;\n tempData -> mainChunkSize += bitsUsed [ cel -> best_coding ] ;\n if ( cel -> best_coding == RoQ_ID_SLD ) tempData -> codebooks . usedCB4 [ cel -> cbEntry ] ++ ;\n if ( cel -> best_coding == RoQ_ID_CCC ) for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n if ( cel -> subCels [ i ] . best_coding == RoQ_ID_SLD ) tempData -> codebooks . usedCB4 [ cel -> subCels [ i ] . cbEntry ] ++ ;\n else if ( cel -> subCels [ i ] . best_coding == RoQ_ID_CCC ) for ( j = 0 ;\n j < 4 ;\n j ++ ) tempData -> codebooks . usedCB2 [ cel -> subCels [ i ] . subCels [ j ] ] ++ ;\n }\n }"}
{"idx": 17654, "target": 0, "func": "int ssl3_send_finished ( SSL * s , int a , int b , const char * sender , int slen ) {\n unsigned char * p , * d ;\n int i ;\n unsigned long l ;\n if ( s -> state == a ) {\n d = ( unsigned char * ) s -> init_buf -> data ;\n p = & ( d [ 4 ] ) ;\n i = s -> method -> ssl3_enc -> final_finish_mac ( s , sender , slen , s -> s3 -> tmp . finish_md ) ;\n if ( i == 0 ) return 0 ;\n s -> s3 -> tmp . finish_md_len = i ;\n memcpy ( p , s -> s3 -> tmp . finish_md , i ) ;\n p += i ;\n l = i ;\n if ( s -> type == SSL_ST_CONNECT ) {\n OPENSSL_assert ( i <= EVP_MAX_MD_SIZE ) ;\n memcpy ( s -> s3 -> previous_client_finished , s -> s3 -> tmp . finish_md , i ) ;\n s -> s3 -> previous_client_finished_len = i ;\n }\n else {\n OPENSSL_assert ( i <= EVP_MAX_MD_SIZE ) ;\n memcpy ( s -> s3 -> previous_server_finished , s -> s3 -> tmp . finish_md , i ) ;\n s -> s3 -> previous_server_finished_len = i ;\n }\n # ifdef OPENSSL_SYS_WIN16 l &= 0xffff ;\n # endif * ( d ++ ) = SSL3_MT_FINISHED ;\n l2n3 ( l , d ) ;\n s -> init_num = ( int ) l + 4 ;\n s -> init_off = 0 ;\n s -> state = b ;\n }\n return ( ssl3_do_write ( s , SSL3_RT_HANDSHAKE ) ) ;\n }"}
{"idx": 17655, "target": 0, "func": "static VALUE decode_null ( unsigned char * der , long length ) {\n ASN1_NULL * null ;\n const unsigned char * p ;\n p = der ;\n if ( ! ( null = d2i_ASN1_NULL ( NULL , & p , length ) ) ) ossl_raise ( eASN1Error , NULL ) ;\n ASN1_NULL_free ( null ) ;\n return Qnil ;\n }"}
{"idx": 17656, "target": 1, "func": "static int ec_GF2m_montgomery_point_multiply ( const EC_GROUP * group , EC_POINT * r , const BIGNUM * scalar , const EC_POINT * point , BN_CTX * ctx ) {\n BIGNUM * x1 , * x2 , * z1 , * z2 ;\n int ret = 0 , i ;\n BN_ULONG mask , word ;\n if ( r == point ) {\n ECerr ( EC_F_EC_GF2M_MONTGOMERY_POINT_MULTIPLY , EC_R_INVALID_ARGUMENT ) ;\n return 0 ;\n }\n if ( ( scalar == NULL ) || BN_is_zero ( scalar ) || ( point == NULL ) || EC_POINT_is_at_infinity ( group , point ) ) {\n return EC_POINT_set_to_infinity ( group , r ) ;\n }\n if ( ! point -> Z_is_one ) return 0 ;\n BN_CTX_start ( ctx ) ;\n x1 = BN_CTX_get ( ctx ) ;\n z1 = BN_CTX_get ( ctx ) ;\n if ( z1 == NULL ) goto err ;\n x2 = & r -> X ;\n z2 = & r -> Y ;\n if ( ! BN_GF2m_mod_arr ( x1 , & point -> X , group -> poly ) ) goto err ;\n if ( ! BN_one ( z1 ) ) goto err ;\n if ( ! group -> meth -> field_sqr ( group , z2 , x1 , ctx ) ) goto err ;\n if ( ! group -> meth -> field_sqr ( group , x2 , z2 , ctx ) ) goto err ;\n if ( ! BN_GF2m_add ( x2 , x2 , & group -> b ) ) goto err ;\n i = scalar -> top - 1 ;\n mask = BN_TBIT ;\n word = scalar -> d [ i ] ;\n while ( ! ( word & mask ) ) mask >>= 1 ;\n mask >>= 1 ;\n if ( ! mask ) {\n i -- ;\n mask = BN_TBIT ;\n }\n for ( ;\n i >= 0 ;\n i -- ) {\n word = scalar -> d [ i ] ;\n while ( mask ) {\n if ( word & mask ) {\n if ( ! gf2m_Madd ( group , & point -> X , x1 , z1 , x2 , z2 , ctx ) ) goto err ;\n if ( ! gf2m_Mdouble ( group , x2 , z2 , ctx ) ) goto err ;\n }\n else {\n if ( ! gf2m_Madd ( group , & point -> X , x2 , z2 , x1 , z1 , ctx ) ) goto err ;\n if ( ! gf2m_Mdouble ( group , x1 , z1 , ctx ) ) goto err ;\n }\n mask >>= 1 ;\n }\n mask = BN_TBIT ;\n }\n i = gf2m_Mxy ( group , & point -> X , & point -> Y , x1 , z1 , x2 , z2 , ctx ) ;\n if ( i == 0 ) goto err ;\n else if ( i == 1 ) {\n if ( ! EC_POINT_set_to_infinity ( group , r ) ) goto err ;\n }\n else {\n if ( ! BN_one ( & r -> Z ) ) goto err ;\n r -> Z_is_one = 1 ;\n }\n BN_set_negative ( & r -> X , 0 ) ;\n BN_set_negative ( & r -> Y , 0 ) ;\n ret = 1 ;\n err : BN_CTX_end ( ctx ) ;\n return ret ;\n }"}
{"idx": 17657, "target": 0, "func": "static void mime_list_stop ( NautilusDirectory * directory ) {\n NautilusFile * file ;\n if ( directory -> details -> mime_list_in_progress != NULL ) {\n file = directory -> details -> mime_list_in_progress -> mime_list_file ;\n if ( file != NULL ) {\n g_assert ( NAUTILUS_IS_FILE ( file ) ) ;\n g_assert ( file -> details -> directory == directory ) ;\n if ( is_needy ( file , should_get_mime_list , REQUEST_MIME_LIST ) ) {\n return ;\n }\n }\n mime_list_cancel ( directory ) ;\n }\n }"}
{"idx": 17658, "target": 0, "func": "static int alac_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n ALACContext * alac = avctx -> priv_data ;\n AVFrame * frame = data ;\n enum AlacRawDataBlockType element ;\n int channels ;\n int ch , ret , got_end ;\n init_get_bits ( & alac -> gb , avpkt -> data , avpkt -> size * 8 ) ;\n got_end = 0 ;\n alac -> nb_samples = 0 ;\n ch = 0 ;\n while ( get_bits_left ( & alac -> gb ) >= 3 ) {\n element = get_bits ( & alac -> gb , 3 ) ;\n if ( element == TYPE_END ) {\n got_end = 1 ;\n break ;\n }\n if ( element > TYPE_CPE && element != TYPE_LFE ) {\n av_log ( avctx , AV_LOG_ERROR , \"syntax element unsupported: %d\" , element ) ;\n return AVERROR_PATCHWELCOME ;\n }\n channels = ( element == TYPE_CPE ) ? 2 : 1 ;\n if ( ch + channels > alac -> channels ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid element channel count\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n ret = decode_element ( avctx , frame , ff_alac_channel_layout_offsets [ alac -> channels - 1 ] [ ch ] , channels ) ;\n if ( ret < 0 && get_bits_left ( & alac -> gb ) ) return ret ;\n ch += channels ;\n }\n if ( ! got_end ) {\n av_log ( avctx , AV_LOG_ERROR , \"no end tag found. incomplete packet.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( avpkt -> size * 8 - get_bits_count ( & alac -> gb ) > 8 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error : %d bits left\\n\" , avpkt -> size * 8 - get_bits_count ( & alac -> gb ) ) ;\n }\n * got_frame_ptr = 1 ;\n return avpkt -> size ;\n }"}
{"idx": 17659, "target": 0, "func": "static inline void do_imdct ( AC3DecodeContext * s , int channels ) {\n int ch ;\n for ( ch = 1 ;\n ch <= channels ;\n ch ++ ) {\n if ( s -> block_switch [ ch ] ) {\n int i ;\n float * x = s -> tmp_output + 128 ;\n for ( i = 0 ;\n i < 128 ;\n i ++ ) x [ i ] = s -> transform_coeffs [ ch ] [ 2 * i ] ;\n s -> imdct_256 . imdct_half ( & s -> imdct_256 , s -> tmp_output , x ) ;\n s -> fdsp . vector_fmul_window ( s -> outptr [ ch - 1 ] , s -> delay [ ch - 1 ] , s -> tmp_output , s -> window , 128 ) ;\n for ( i = 0 ;\n i < 128 ;\n i ++ ) x [ i ] = s -> transform_coeffs [ ch ] [ 2 * i + 1 ] ;\n s -> imdct_256 . imdct_half ( & s -> imdct_256 , s -> delay [ ch - 1 ] , x ) ;\n }\n else {\n s -> imdct_512 . imdct_half ( & s -> imdct_512 , s -> tmp_output , s -> transform_coeffs [ ch ] ) ;\n s -> fdsp . vector_fmul_window ( s -> outptr [ ch - 1 ] , s -> delay [ ch - 1 ] , s -> tmp_output , s -> window , 128 ) ;\n memcpy ( s -> delay [ ch - 1 ] , s -> tmp_output + 128 , 128 * sizeof ( float ) ) ;\n }\n }\n }"}
{"idx": 17660, "target": 0, "func": "static const FIRSTPASS_STATS * read_frame_stats ( const TWO_PASS * p , int offset ) {\n if ( ( offset >= 0 && p -> stats_in + offset >= p -> stats_in_end ) || ( offset < 0 && p -> stats_in + offset < p -> stats_in_start ) ) {\n return NULL ;\n }\n return & p -> stats_in [ offset ] ;\n }"}
{"idx": 17661, "target": 0, "func": "void proto_reg_handoff_zbee_zcl_appl_idt ( void ) {\n 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 ) ;\n }"}
{"idx": 17662, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n C93DecoderContext * const c93 = avctx -> priv_data ;\n AVFrame * const newpic = & c93 -> pictures [ c93 -> currentpic ] ;\n AVFrame * const oldpic = & c93 -> pictures [ c93 -> currentpic ^ 1 ] ;\n GetByteContext gb ;\n uint8_t * out ;\n int stride , ret , i , x , y , b , bt = 0 ;\n c93 -> currentpic ^= 1 ;\n if ( ( ret = ff_reget_buffer ( avctx , newpic ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n stride = newpic -> linesize [ 0 ] ;\n bytestream2_init ( & gb , buf , buf_size ) ;\n b = bytestream2_get_byte ( & gb ) ;\n if ( b & C93_FIRST_FRAME ) {\n newpic -> pict_type = AV_PICTURE_TYPE_I ;\n newpic -> key_frame = 1 ;\n }\n else {\n newpic -> pict_type = AV_PICTURE_TYPE_P ;\n newpic -> key_frame = 0 ;\n }\n for ( y = 0 ;\n y < HEIGHT ;\n y += 8 ) {\n out = newpic -> data [ 0 ] + y * stride ;\n for ( x = 0 ;\n x < WIDTH ;\n x += 8 ) {\n uint8_t * copy_from = oldpic -> data [ 0 ] ;\n unsigned int offset , j ;\n uint8_t cols [ 4 ] , grps [ 4 ] ;\n C93BlockType block_type ;\n if ( ! bt ) bt = bytestream2_get_byte ( & gb ) ;\n block_type = bt & 0x0F ;\n switch ( block_type ) {\n case C93_8X8_FROM_PREV : offset = bytestream2_get_le16 ( & gb ) ;\n if ( ( ret = copy_block ( avctx , out , copy_from , offset , 8 , stride ) ) < 0 ) return ret ;\n break ;\n case C93_4X4_FROM_CURR : copy_from = newpic -> data [ 0 ] ;\n case C93_4X4_FROM_PREV : for ( j = 0 ;\n j < 8 ;\n j += 4 ) {\n for ( i = 0 ;\n i < 8 ;\n i += 4 ) {\n offset = bytestream2_get_le16 ( & gb ) ;\n if ( ( ret = copy_block ( avctx , & out [ j * stride + i ] , copy_from , offset , 4 , stride ) ) < 0 ) return ret ;\n }\n }\n break ;\n case C93_8X8_2COLOR : bytestream2_get_buffer ( & gb , cols , 2 ) ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n draw_n_color ( out + i * stride , stride , 8 , 1 , 1 , cols , NULL , bytestream2_get_byte ( & gb ) ) ;\n }\n break ;\n case C93_4X4_2COLOR : case C93_4X4_4COLOR : case C93_4X4_4COLOR_GRP : for ( j = 0 ;\n j < 8 ;\n j += 4 ) {\n for ( i = 0 ;\n i < 8 ;\n i += 4 ) {\n if ( block_type == C93_4X4_2COLOR ) {\n bytestream2_get_buffer ( & gb , cols , 2 ) ;\n draw_n_color ( out + i + j * stride , stride , 4 , 4 , 1 , cols , NULL , bytestream2_get_le16 ( & gb ) ) ;\n }\n else if ( block_type == C93_4X4_4COLOR ) {\n bytestream2_get_buffer ( & gb , cols , 4 ) ;\n draw_n_color ( out + i + j * stride , stride , 4 , 4 , 2 , cols , NULL , bytestream2_get_le32 ( & gb ) ) ;\n }\n else {\n bytestream2_get_buffer ( & gb , grps , 4 ) ;\n draw_n_color ( out + i + j * stride , stride , 4 , 4 , 1 , cols , grps , bytestream2_get_le16 ( & gb ) ) ;\n }\n }\n }\n break ;\n case C93_NOOP : break ;\n case C93_8X8_INTRA : for ( j = 0 ;\n j < 8 ;\n j ++ ) bytestream2_get_buffer ( & gb , out + j * stride , 8 ) ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"unexpected type %x at %dx%d\\n\" , block_type , x , y ) ;\n return AVERROR_INVALIDDATA ;\n }\n bt >>= 4 ;\n out += 8 ;\n }\n }\n if ( b & C93_HAS_PALETTE ) {\n uint32_t * palette = ( uint32_t * ) newpic -> data [ 1 ] ;\n for ( i = 0 ;\n i < 256 ;\n i ++ ) {\n palette [ i ] = bytestream2_get_be24 ( & gb ) ;\n }\n newpic -> palette_has_changed = 1 ;\n }\n else {\n if ( oldpic -> data [ 1 ] ) memcpy ( newpic -> data [ 1 ] , oldpic -> data [ 1 ] , 256 * 4 ) ;\n }\n if ( ( ret = av_frame_ref ( data , newpic ) ) < 0 ) return ret ;\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 17663, "target": 0, "func": "static int dissect_s_supervisor_exception_detail ( proto_tree * tree , proto_item * item , tvbuff_t * tvb , int offset , int hf_size , int hf_data ) {\n int size ;\n proto_tree_add_item ( tree , hf_size , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n size = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_data , tvb , offset + 1 , size , ENC_NA ) ;\n proto_item_set_len ( item , size + 1 ) ;\n return size + 1 ;\n }"}
{"idx": 17664, "target": 0, "func": "zend_object_iterator * spl_dllist_get_iterator ( zend_class_entry * ce , zval * object , int by_ref TSRMLS_DC ) {\n spl_dllist_it * iterator ;\n spl_dllist_object * dllist_object = ( spl_dllist_object * ) zend_object_store_get_object ( object TSRMLS_CC ) ;\n if ( by_ref ) {\n zend_throw_exception ( spl_ce_RuntimeException , \"An iterator cannot be used with foreach by reference\" , 0 TSRMLS_CC ) ;\n return NULL ;\n }\n Z_ADDREF_P ( object ) ;\n iterator = emalloc ( sizeof ( spl_dllist_it ) ) ;\n iterator -> intern . it . data = ( void * ) object ;\n iterator -> intern . it . funcs = & spl_dllist_it_funcs ;\n iterator -> intern . ce = ce ;\n iterator -> intern . value = NULL ;\n iterator -> traverse_position = dllist_object -> traverse_position ;\n iterator -> traverse_pointer = dllist_object -> traverse_pointer ;\n iterator -> flags = dllist_object -> flags & SPL_DLLIST_IT_MASK ;\n iterator -> object = dllist_object ;\n SPL_LLIST_CHECK_ADDREF ( iterator -> traverse_pointer ) ;\n return ( zend_object_iterator * ) iterator ;\n }"}
{"idx": 17665, "target": 0, "func": "static void backup_duplicate_context ( MpegEncContext * bak , MpegEncContext * src ) {\n # define COPY ( a ) bak -> a = src -> a COPY ( edge_emu_buffer ) ;\n COPY ( me . scratchpad ) ;\n COPY ( me . temp ) ;\n COPY ( rd_scratchpad ) ;\n COPY ( b_scratchpad ) ;\n COPY ( obmc_scratchpad ) ;\n COPY ( me . map ) ;\n COPY ( me . score_map ) ;\n COPY ( blocks ) ;\n COPY ( block ) ;\n COPY ( start_mb_y ) ;\n COPY ( end_mb_y ) ;\n COPY ( me . map_generation ) ;\n COPY ( pb ) ;\n COPY ( dct_error_sum ) ;\n COPY ( dct_count [ 0 ] ) ;\n COPY ( dct_count [ 1 ] ) ;\n COPY ( ac_val_base ) ;\n COPY ( ac_val [ 0 ] ) ;\n COPY ( ac_val [ 1 ] ) ;\n COPY ( ac_val [ 2 ] ) ;\n # undef COPY }"}
{"idx": 17666, "target": 0, "func": "static void selinux_sb_free_security ( struct super_block * sb ) {\n superblock_free_security ( sb ) ;\n }"}
{"idx": 17667, "target": 0, "func": "void run_on_cpu ( CPUState * cpu , void ( * func ) ( void * data ) , void * data ) {\n struct qemu_work_item wi ;\n if ( qemu_cpu_is_self ( cpu ) ) {\n func ( data ) ;\n return ;\n }\n wi . func = func ;\n wi . data = data ;\n if ( cpu -> queued_work_first == NULL ) {\n cpu -> queued_work_first = & wi ;\n }\n else {\n cpu -> queued_work_last -> next = & wi ;\n }\n cpu -> queued_work_last = & wi ;\n wi . next = NULL ;\n wi . done = false ;\n qemu_cpu_kick ( cpu ) ;\n while ( ! wi . done ) {\n CPUState * self_cpu = current_cpu ;\n qemu_cond_wait ( & qemu_work_cond , & qemu_global_mutex ) ;\n current_cpu = self_cpu ;\n }\n }"}
{"idx": 17668, "target": 0, "func": "static int dissect_h245_Req_mode_ack_response ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_Req_mode_ack_response , Req_mode_ack_response_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 17669, "target": 0, "func": "gx_ttfReader * gx_ttfReader__create ( gs_memory_t * mem ) {\n gx_ttfReader * r = gs_alloc_struct ( mem , gx_ttfReader , & st_gx_ttfReader , \"gx_ttfReader__create\" ) ;\n if ( r != NULL ) {\n r -> super . Eof = gx_ttfReader__Eof ;\n r -> super . Read = gx_ttfReader__Read ;\n r -> super . Seek = gx_ttfReader__Seek ;\n r -> super . Tell = gx_ttfReader__Tell ;\n r -> super . Error = gx_ttfReader__Error ;\n r -> super . LoadGlyph = gx_ttfReader__LoadGlyph ;\n r -> super . ReleaseGlyph = gx_ttfReader__ReleaseGlyph ;\n r -> pos = 0 ;\n r -> error = false ;\n r -> extra_glyph_index = - 1 ;\n memset ( & r -> glyph_data , 0 , sizeof ( r -> glyph_data ) ) ;\n r -> pfont = NULL ;\n r -> memory = mem ;\n gx_ttfReader__Reset ( r ) ;\n }\n return r ;\n }"}
{"idx": 17670, "target": 0, "func": "static void test_rfc822_parse_quoted_string ( void ) {\n const struct {\n const char * input , * output ;\n int ret ;\n }\n tests [ ] = {\n {\n \"\\\"\" , \"\" , - 1 }\n , {\n \"\\\"\\\"\" , \"\" , 0 }\n , {\n \"\\\"foo\\\"\" , \"foo\" , 0 }\n , {\n \"\\\"\\\"foo\" , \"\" , 1 }\n , {\n \"\\\"\\\"\\\"\" , \"\" , 1 }\n , {\n \"\\\"\\\\\\\"\\\"\" , \"\\\"\" , 0 }\n , {\n \"\\\"\\\\\\\\\\\"\" , \"\\\\\" , 0 }\n , {\n \"\\\"\\\\\\\\foo\\\\\\\\foo\\\\\\\\\\\"\" , \"\\\\foo\\\\foo\\\\\" , 0 }\n }\n ;\n struct rfc822_parser_context parser ;\n string_t * str = t_str_new ( 64 ) ;\n unsigned int i = 0 ;\n test_begin ( \"rfc822 parse quoted string\" ) ;\n for ( i = 0 ;\n i < N_ELEMENTS ( tests ) ;\n i ++ ) {\n rfc822_parser_init ( & parser , ( const void * ) tests [ i ] . input , strlen ( tests [ i ] . input ) , NULL ) ;\n test_assert_idx ( rfc822_parse_quoted_string ( & parser , str ) == tests [ i ] . ret , i ) ;\n test_assert_idx ( tests [ i ] . ret < 0 || strcmp ( tests [ i ] . output , str_c ( str ) ) == 0 , i ) ;\n rfc822_parser_deinit ( & parser ) ;\n str_truncate ( str , 0 ) ;\n }\n test_end ( ) ;\n }"}
{"idx": 17671, "target": 0, "func": "void nautilus_file_set_permissions_recursive ( const char * directory , guint32 file_permissions , guint32 file_mask , guint32 dir_permissions , guint32 dir_mask , NautilusOpCallback callback , gpointer callback_data ) {\n GTask * task ;\n SetPermissionsJob * job ;\n job = op_job_new ( SetPermissionsJob , NULL ) ;\n job -> file = g_file_new_for_uri ( directory ) ;\n job -> file_permissions = file_permissions ;\n job -> file_mask = file_mask ;\n job -> dir_permissions = dir_permissions ;\n job -> dir_mask = dir_mask ;\n job -> done_callback = callback ;\n job -> done_callback_data = callback_data ;\n if ( ! nautilus_file_undo_manager_is_operating ( ) ) {\n job -> common . undo_info = nautilus_file_undo_info_rec_permissions_new ( job -> file , file_permissions , file_mask , dir_permissions , dir_mask ) ;\n }\n task = g_task_new ( NULL , NULL , set_permissions_task_done , job ) ;\n g_task_set_task_data ( task , job , NULL ) ;\n g_task_run_in_thread ( task , set_permissions_thread_func ) ;\n g_object_unref ( task ) ;\n }"}
{"idx": 17672, "target": 0, "func": "static uint32_t gic_cpu_read ( GICState * s , int cpu , int offset ) {\n switch ( offset ) {\n case 0x00 : return s -> cpu_enabled [ cpu ] ;\n case 0x04 : return s -> priority_mask [ cpu ] ;\n case 0x08 : return 0 ;\n case 0x0c : return gic_acknowledge_irq ( s , cpu ) ;\n case 0x14 : return s -> running_priority [ cpu ] ;\n case 0x18 : return s -> current_pending [ cpu ] ;\n default : qemu_log_mask ( LOG_GUEST_ERROR , \"gic_cpu_read: Bad offset %x\\n\" , ( int ) offset ) ;\n return 0 ;\n }\n }"}
{"idx": 17673, "target": 0, "func": "MIMEField * _mime_hdr_field_list_search_by_wks ( MIMEHdrImpl * mh , int wks_idx ) {\n MIMEFieldBlockImpl * fblock ;\n MIMEField * field , * too_far_field ;\n ink_assert ( hdrtoken_is_valid_wks_idx ( wks_idx ) ) ;\n for ( fblock = & ( mh -> m_first_fblock ) ;\n fblock != nullptr ;\n fblock = fblock -> m_next ) {\n field = & ( fblock -> m_field_slots [ 0 ] ) ;\n too_far_field = & ( fblock -> m_field_slots [ fblock -> m_freetop ] ) ;\n while ( field < too_far_field ) {\n if ( field -> is_live ( ) && ( field -> m_wks_idx == wks_idx ) ) {\n return field ;\n }\n ++ field ;\n }\n }\n return nullptr ;\n }"}
{"idx": 17674, "target": 0, "func": "proto_item * proto_tree_add_uint64 ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , guint64 value ) {\n proto_item * pi = NULL ;\n header_field_info * hfinfo ;\n CHECK_FOR_NULL_TREE ( tree ) ;\n TRY_TO_FAKE_THIS_ITEM ( tree , hfindex , hfinfo ) ;\n switch ( hfinfo -> type ) {\n case FT_UINT40 : case FT_UINT48 : case FT_UINT56 : case FT_UINT64 : case FT_FRAMENUM : pi = proto_tree_add_pi ( tree , hfinfo , tvb , start , & length ) ;\n proto_tree_set_uint64 ( PNODE_FINFO ( pi ) , value ) ;\n break ;\n default : DISSECTOR_ASSERT_NOT_REACHED ( ) ;\n }\n return pi ;\n }"}
{"idx": 17675, "target": 0, "func": "TEST_F ( SyncBookmarkDataTypeControllerTest , StartHistoryServiceNotReady ) {\n CreateBookmarkModel ( LOAD_MODEL ) ;\n SetStartExpectations ( ) ;\n EXPECT_CALL ( * history_service_ . get ( ) , BackendLoaded ( ) ) . WillRepeatedly ( Return ( false ) ) ;\n bookmark_dtc_ -> LoadModels ( base : : Bind ( & ModelLoadCallbackMock : : Run , base : : Unretained ( & model_load_callback_ ) ) ) ;\n EXPECT_EQ ( DataTypeController : : MODEL_STARTING , bookmark_dtc_ -> state ( ) ) ;\n testing : : Mock : : VerifyAndClearExpectations ( history_service_ . get ( ) ) ;\n EXPECT_CALL ( * history_service_ . get ( ) , BackendLoaded ( ) ) . WillRepeatedly ( Return ( true ) ) ;\n NotifyHistoryServiceLoaded ( ) ;\n EXPECT_EQ ( DataTypeController : : MODEL_LOADED , bookmark_dtc_ -> state ( ) ) ;\n }"}
{"idx": 17676, "target": 0, "func": "static void fast_rgb_to_bgr ( fz_context * ctx , fz_pixmap * dst , fz_pixmap * src , fz_colorspace * prf , const fz_default_colorspaces * default_cs , const fz_color_params * color_params , int copy_spots ) {\n unsigned char * s = src -> samples ;\n unsigned char * d = dst -> samples ;\n size_t w = src -> w ;\n int h = src -> h ;\n int sn = src -> n ;\n int ss = src -> s ;\n int sa = src -> alpha ;\n int dn = dst -> n ;\n int ds = dst -> s ;\n int da = dst -> alpha ;\n ptrdiff_t d_line_inc = dst -> stride - w * dn ;\n ptrdiff_t s_line_inc = src -> stride - w * sn ;\n if ( ( copy_spots && ss != ds ) || ( ! da && sa ) ) {\n assert ( \"This should never happen\" == NULL ) ;\n fz_throw ( ctx , FZ_ERROR_GENERIC , \"Cannot convert between incompatible pixmaps\" ) ;\n }\n if ( ( int ) w < 0 || h < 0 ) return ;\n if ( d_line_inc == 0 && s_line_inc == 0 ) {\n w *= h ;\n h = 1 ;\n }\n if ( ss == 0 && ds == 0 ) {\n if ( da ) {\n if ( sa ) {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n d [ 0 ] = s [ 2 ] ;\n d [ 1 ] = s [ 1 ] ;\n d [ 2 ] = s [ 0 ] ;\n d [ 3 ] = s [ 3 ] ;\n s += 4 ;\n d += 4 ;\n }\n }\n }\n else {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n d [ 0 ] = s [ 2 ] ;\n d [ 1 ] = s [ 1 ] ;\n d [ 2 ] = s [ 0 ] ;\n d [ 3 ] = 255 ;\n s += 3 ;\n d += 4 ;\n }\n }\n }\n }\n else {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n d [ 0 ] = s [ 2 ] ;\n d [ 1 ] = s [ 1 ] ;\n d [ 2 ] = s [ 0 ] ;\n s += 3 ;\n d += 3 ;\n }\n }\n }\n }\n else if ( copy_spots ) {\n while ( h -- ) {\n int i ;\n size_t ww = w ;\n while ( ww -- ) {\n d [ 0 ] = s [ 2 ] ;\n d [ 1 ] = s [ 1 ] ;\n d [ 2 ] = s [ 0 ] ;\n s += 3 ;\n d += 3 ;\n for ( i = ss ;\n i > 0 ;\n i -- ) * d ++ = * s ++ ;\n if ( da ) * d ++ = sa ? * s ++ : 255 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n else {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n d [ 0 ] = s [ 2 ] ;\n d [ 1 ] = s [ 1 ] ;\n d [ 2 ] = s [ 0 ] ;\n s += sn ;\n d += dn ;\n if ( da ) d [ - 1 ] = sa ? s [ - 1 ] : 255 ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n }"}
{"idx": 17677, "target": 0, "func": "int ssl3_write_bytes ( SSL * s , int type , const void * buf_ , int len ) {\n const unsigned char * buf = buf_ ;\n int tot ;\n unsigned int n , split_send_fragment , maxpipes ;\n # if ! defined ( OPENSSL_NO_MULTIBLOCK ) && EVP_CIPH_FLAG_TLS1_1_MULTIBLOCK unsigned int max_send_fragment , nw ;\n unsigned int u_len = ( unsigned int ) len ;\n # endif SSL3_BUFFER * wb = & s -> rlayer . wbuf [ 0 ] ;\n int i ;\n if ( len < 0 ) {\n SSLerr ( SSL_F_SSL3_WRITE_BYTES , SSL_R_SSL_NEGATIVE_LENGTH ) ;\n return - 1 ;\n }\n s -> rwstate = SSL_NOTHING ;\n tot = s -> rlayer . wnum ;\n if ( ( unsigned int ) len < s -> rlayer . wnum ) {\n SSLerr ( SSL_F_SSL3_WRITE_BYTES , SSL_R_BAD_LENGTH ) ;\n return - 1 ;\n }\n s -> rlayer . wnum = 0 ;\n if ( SSL_in_init ( s ) && ! ossl_statem_get_in_handshake ( s ) ) {\n i = s -> handshake_func ( s ) ;\n if ( i < 0 ) return ( i ) ;\n if ( i == 0 ) {\n SSLerr ( SSL_F_SSL3_WRITE_BYTES , SSL_R_SSL_HANDSHAKE_FAILURE ) ;\n return - 1 ;\n }\n }\n if ( wb -> left != 0 ) {\n i = ssl3_write_pending ( s , type , & buf [ tot ] , s -> rlayer . wpend_tot ) ;\n if ( i <= 0 ) {\n s -> rlayer . wnum = tot ;\n return i ;\n }\n tot += i ;\n }\n # if ! defined ( OPENSSL_NO_MULTIBLOCK ) && EVP_CIPH_FLAG_TLS1_1_MULTIBLOCK if ( type == SSL3_RT_APPLICATION_DATA && u_len >= 4 * ( max_send_fragment = s -> max_send_fragment ) && s -> compress == NULL && s -> msg_callback == NULL && ! SSL_USE_ETM ( s ) && SSL_USE_EXPLICIT_IV ( s ) && EVP_CIPHER_flags ( EVP_CIPHER_CTX_cipher ( s -> enc_write_ctx ) ) & EVP_CIPH_FLAG_TLS1_1_MULTIBLOCK ) {\n unsigned char aad [ 13 ] ;\n EVP_CTRL_TLS1_1_MULTIBLOCK_PARAM mb_param ;\n int packlen ;\n if ( ( max_send_fragment & 0xfff ) == 0 ) max_send_fragment -= 512 ;\n if ( tot == 0 || wb -> buf == NULL ) {\n ssl3_release_write_buffer ( s ) ;\n packlen = EVP_CIPHER_CTX_ctrl ( s -> enc_write_ctx , EVP_CTRL_TLS1_1_MULTIBLOCK_MAX_BUFSIZE , max_send_fragment , NULL ) ;\n if ( u_len >= 8 * max_send_fragment ) packlen *= 8 ;\n else packlen *= 4 ;\n if ( ! ssl3_setup_write_buffer ( s , 1 , packlen ) ) {\n SSLerr ( SSL_F_SSL3_WRITE_BYTES , ERR_R_MALLOC_FAILURE ) ;\n return - 1 ;\n }\n }\n else if ( tot == len ) {\n ssl3_release_write_buffer ( s ) ;\n return tot ;\n }\n n = ( len - tot ) ;\n for ( ;\n ;\n ) {\n if ( n < 4 * max_send_fragment ) {\n ssl3_release_write_buffer ( s ) ;\n break ;\n }\n if ( s -> s3 -> alert_dispatch ) {\n i = s -> method -> ssl_dispatch_alert ( s ) ;\n if ( i <= 0 ) {\n s -> rlayer . wnum = tot ;\n return i ;\n }\n }\n if ( n >= 8 * max_send_fragment ) nw = max_send_fragment * ( mb_param . interleave = 8 ) ;\n else nw = max_send_fragment * ( mb_param . interleave = 4 ) ;\n memcpy ( aad , s -> rlayer . write_sequence , 8 ) ;\n aad [ 8 ] = type ;\n aad [ 9 ] = ( unsigned char ) ( s -> version >> 8 ) ;\n aad [ 10 ] = ( unsigned char ) ( s -> version ) ;\n aad [ 11 ] = 0 ;\n aad [ 12 ] = 0 ;\n mb_param . out = NULL ;\n mb_param . inp = aad ;\n mb_param . len = nw ;\n packlen = EVP_CIPHER_CTX_ctrl ( s -> enc_write_ctx , EVP_CTRL_TLS1_1_MULTIBLOCK_AAD , sizeof ( mb_param ) , & mb_param ) ;\n if ( packlen <= 0 || packlen > ( int ) wb -> len ) {\n ssl3_release_write_buffer ( s ) ;\n break ;\n }\n mb_param . out = wb -> buf ;\n mb_param . inp = & buf [ tot ] ;\n mb_param . len = nw ;\n if ( EVP_CIPHER_CTX_ctrl ( s -> enc_write_ctx , EVP_CTRL_TLS1_1_MULTIBLOCK_ENCRYPT , sizeof ( mb_param ) , & mb_param ) <= 0 ) return - 1 ;\n s -> rlayer . write_sequence [ 7 ] += mb_param . interleave ;\n if ( s -> rlayer . write_sequence [ 7 ] < mb_param . interleave ) {\n int j = 6 ;\n while ( j >= 0 && ( ++ s -> rlayer . write_sequence [ j -- ] ) == 0 ) ;\n }\n wb -> offset = 0 ;\n wb -> left = packlen ;\n s -> rlayer . wpend_tot = nw ;\n s -> rlayer . wpend_buf = & buf [ tot ] ;\n s -> rlayer . wpend_type = type ;\n s -> rlayer . wpend_ret = nw ;\n i = ssl3_write_pending ( s , type , & buf [ tot ] , nw ) ;\n if ( i <= 0 ) {\n if ( i < 0 && ( ! s -> wbio || ! BIO_should_retry ( s -> wbio ) ) ) {\n ssl3_release_write_buffer ( s ) ;\n }\n s -> rlayer . wnum = tot ;\n return i ;\n }\n if ( i == ( int ) n ) {\n ssl3_release_write_buffer ( s ) ;\n return tot + i ;\n }\n n -= i ;\n tot += i ;\n }\n }\n else # endif if ( tot == len ) {\n if ( s -> mode & SSL_MODE_RELEASE_BUFFERS && ! SSL_IS_DTLS ( s ) ) ssl3_release_write_buffer ( s ) ;\n return tot ;\n }\n n = ( len - tot ) ;\n split_send_fragment = s -> split_send_fragment ;\n maxpipes = s -> max_pipelines ;\n if ( maxpipes > SSL_MAX_PIPELINES ) {\n SSLerr ( SSL_F_SSL3_WRITE_BYTES , ERR_R_INTERNAL_ERROR ) ;\n return - 1 ;\n }\n if ( maxpipes == 0 || s -> enc_write_ctx == NULL || ! ( EVP_CIPHER_flags ( EVP_CIPHER_CTX_cipher ( s -> enc_write_ctx ) ) & EVP_CIPH_FLAG_PIPELINE ) || ! SSL_USE_EXPLICIT_IV ( s ) ) maxpipes = 1 ;\n if ( s -> max_send_fragment == 0 || split_send_fragment > s -> max_send_fragment || split_send_fragment == 0 ) {\n SSLerr ( SSL_F_SSL3_WRITE_BYTES , ERR_R_INTERNAL_ERROR ) ;\n return - 1 ;\n }\n for ( ;\n ;\n ) {\n unsigned int pipelens [ SSL_MAX_PIPELINES ] , tmppipelen , remain ;\n unsigned int numpipes , j ;\n if ( n == 0 ) numpipes = 1 ;\n else numpipes = ( ( n - 1 ) / split_send_fragment ) + 1 ;\n if ( numpipes > maxpipes ) numpipes = maxpipes ;\n if ( n / numpipes >= s -> max_send_fragment ) {\n for ( j = 0 ;\n j < numpipes ;\n j ++ ) {\n pipelens [ j ] = s -> max_send_fragment ;\n }\n }\n else {\n tmppipelen = n / numpipes ;\n remain = n % numpipes ;\n for ( j = 0 ;\n j < numpipes ;\n j ++ ) {\n pipelens [ j ] = tmppipelen ;\n if ( j < remain ) pipelens [ j ] ++ ;\n }\n }\n i = do_ssl3_write ( s , type , & ( buf [ tot ] ) , pipelens , numpipes , 0 ) ;\n if ( i <= 0 ) {\n s -> rlayer . wnum = tot ;\n return i ;\n }\n if ( ( i == ( int ) n ) || ( type == SSL3_RT_APPLICATION_DATA && ( s -> mode & SSL_MODE_ENABLE_PARTIAL_WRITE ) ) ) {\n s -> s3 -> empty_fragment_done = 0 ;\n if ( ( i == ( int ) n ) && s -> mode & SSL_MODE_RELEASE_BUFFERS && ! SSL_IS_DTLS ( s ) ) ssl3_release_write_buffer ( s ) ;\n return tot + i ;\n }\n n -= i ;\n tot += i ;\n }\n }"}
{"idx": 17678, "target": 0, "func": "string_node * create_string_node ( char * str ) {\n string_node * sn ;\n sn = emalloc_zero ( sizeof ( * sn ) ) ;\n sn -> s = str ;\n return sn ;\n }"}
{"idx": 17679, "target": 0, "func": "void remove_tap_listener_actrace_calls ( void ) {\n remove_tap_listener ( & ( the_tapinfo_struct . actrace_dummy ) ) ;\n have_actrace_tap_listener = FALSE ;\n }"}
{"idx": 17680, "target": 0, "func": "static int dissect_pvfs_handle_extent ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo , guint32 nCount ) {\n proto_tree * extent_tree ;\n extent_tree = proto_tree_add_subtree_format ( tree , tvb , offset , 8 , ett_pvfs_extent_item , NULL , \"Item %d\" , nCount ) ;\n offset = dissect_pvfs_fh ( tvb , offset , pinfo , extent_tree , \"first handle\" , NULL ) ;\n offset = dissect_pvfs_fh ( tvb , offset , pinfo , extent_tree , \"last handle\" , NULL ) ;\n return offset ;\n }"}
{"idx": 17681, "target": 0, "func": "static void dissect_rsvp_confirm ( proto_item * ti , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int type ) {\n int offset2 = offset + 4 ;\n switch ( type ) {\n case 1 : {\n proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"1 - IPv4\" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_confirm_receiver_address_ipv4 , tvb , offset2 , 4 , ENC_BIG_ENDIAN ) ;\n proto_item_set_text ( ti , \"CONFIRM: Receiver %s\" , tvb_ip_to_str ( tvb , offset2 ) ) ;\n break ;\n }\n case 2 : {\n proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"2 - IPv6\" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_confirm_receiver_address_ipv6 , tvb , offset2 , 16 , ENC_NA ) ;\n break ;\n }\n default : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"Unknown (%u)\" , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_confirm_data , tvb , offset2 , obj_length - 4 , ENC_NA ) ;\n break ;\n }\n }"}
{"idx": 17682, "target": 1, "func": "static int do_uncompress ( compress_filter_context_t * zfx , z_stream * zs , IOBUF a , size_t * ret_len ) {\n int zrc ;\n int rc = 0 ;\n size_t n ;\n int nread , count ;\n int refill = ! zs -> avail_in ;\n if ( DBG_FILTER ) log_debug ( \"begin inflate: avail_in=%u, avail_out=%u, inbuf=%u\\n\" , ( unsigned ) zs -> avail_in , ( unsigned ) zs -> avail_out , ( unsigned ) zfx -> inbufsize ) ;\n do {\n if ( zs -> avail_in < zfx -> inbufsize && refill ) {\n n = zs -> avail_in ;\n if ( ! n ) # ifndef __riscos__ zs -> next_in = zfx -> inbuf ;\n # else zs -> next_in = ( Bytef * ) zfx -> inbuf ;\n # endif count = zfx -> inbufsize - n ;\n nread = iobuf_read ( a , zfx -> inbuf + n , count ) ;\n if ( nread == - 1 ) nread = 0 ;\n n += nread ;\n if ( nread < count && zfx -> algo == 1 ) {\n * ( zfx -> inbuf + n ) = 0xFF ;\n zfx -> algo1hack = 1 ;\n n ++ ;\n }\n zs -> avail_in = n ;\n }\n refill = 1 ;\n if ( DBG_FILTER ) log_debug ( \"enter inflate: avail_in=%u, avail_out=%u\\n\" , ( unsigned ) zs -> avail_in , ( unsigned ) zs -> avail_out ) ;\n # ifdef Z_SYNC_FLUSH zrc = inflate ( zs , Z_SYNC_FLUSH ) ;\n # else zrc = inflate ( zs , Z_PARTIAL_FLUSH ) ;\n # endif if ( DBG_FILTER ) log_debug ( \"leave inflate: avail_in=%u, avail_out=%u, zrc=%d\\n\" , ( unsigned ) zs -> avail_in , ( unsigned ) zs -> avail_out , zrc ) ;\n if ( zrc == Z_STREAM_END ) rc = - 1 ;\n else if ( zrc != Z_OK && zrc != Z_BUF_ERROR ) {\n if ( zs -> msg ) log_fatal ( \"zlib inflate problem: %s\\n\" , zs -> msg ) ;\n else log_fatal ( \"zlib inflate problem: rc=%d\\n\" , zrc ) ;\n }\n }\n while ( zs -> avail_out && zrc != Z_STREAM_END && zrc != Z_BUF_ERROR ) ;\n * ret_len = zfx -> outbufsize - zs -> avail_out ;\n if ( DBG_FILTER ) log_debug ( \"do_uncompress: returning %u bytes\\n\" , ( unsigned ) * ret_len ) ;\n return rc ;\n }"}
{"idx": 17683, "target": 0, "func": "static int tak_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * pkt ) {\n TAKDecContext * s = avctx -> priv_data ;\n AVFrame * frame = data ;\n GetBitContext * gb = & s -> gb ;\n int chan , i , ret , hsize ;\n if ( pkt -> size < TAK_MIN_FRAME_HEADER_BYTES ) return AVERROR_INVALIDDATA ;\n init_get_bits ( gb , pkt -> data , pkt -> size * 8 ) ;\n if ( ( ret = ff_tak_decode_frame_header ( avctx , gb , & s -> ti , 0 ) ) < 0 ) return ret ;\n if ( s -> ti . flags & TAK_FRAME_FLAG_HAS_METADATA ) {\n av_log_missing_feature ( avctx , \"frame metadata\" , 1 ) ;\n return AVERROR_PATCHWELCOME ;\n }\n hsize = get_bits_count ( gb ) / 8 ;\n if ( avctx -> err_recognition & AV_EF_CRCCHECK ) {\n if ( ff_tak_check_crc ( pkt -> data , hsize ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"CRC error\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n if ( s -> ti . codec != TAK_CODEC_MONO_STEREO && s -> ti . codec != TAK_CODEC_MULTICHANNEL ) {\n av_log ( avctx , AV_LOG_ERROR , \"unsupported codec: %d\\n\" , s -> ti . codec ) ;\n return AVERROR_PATCHWELCOME ;\n }\n if ( s -> ti . data_type ) {\n av_log ( avctx , AV_LOG_ERROR , \"unsupported data type: %d\\n\" , s -> ti . data_type ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( s -> ti . codec == TAK_CODEC_MONO_STEREO && s -> ti . channels > 2 ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid number of channels: %d\\n\" , s -> ti . channels ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( s -> ti . channels > 6 ) {\n av_log ( avctx , AV_LOG_ERROR , \"unsupported number of channels: %d\\n\" , s -> ti . channels ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( s -> ti . frame_samples <= 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"unsupported/invalid number of samples\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( s -> ti . bps != avctx -> bits_per_coded_sample ) {\n avctx -> bits_per_coded_sample = s -> ti . bps ;\n if ( ( ret = set_bps_params ( avctx ) ) < 0 ) return ret ;\n }\n if ( s -> ti . sample_rate != avctx -> sample_rate ) {\n avctx -> sample_rate = s -> ti . sample_rate ;\n set_sample_rate_params ( avctx ) ;\n }\n if ( s -> ti . ch_layout ) avctx -> channel_layout = s -> ti . ch_layout ;\n avctx -> channels = s -> ti . channels ;\n s -> nb_samples = s -> ti . last_frame_samples ? s -> ti . last_frame_samples : s -> ti . frame_samples ;\n frame -> nb_samples = s -> nb_samples ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) return ret ;\n if ( avctx -> bits_per_coded_sample <= 16 ) {\n int buf_size = av_samples_get_buffer_size ( NULL , avctx -> channels , s -> nb_samples , AV_SAMPLE_FMT_S32P , 0 ) ;\n av_fast_malloc ( & s -> decode_buffer , & s -> decode_buffer_size , buf_size ) ;\n if ( ! s -> decode_buffer ) return AVERROR ( ENOMEM ) ;\n ret = av_samples_fill_arrays ( ( uint8_t * * ) s -> decoded , NULL , s -> decode_buffer , avctx -> channels , s -> nb_samples , AV_SAMPLE_FMT_S32P , 0 ) ;\n if ( ret < 0 ) return ret ;\n }\n else {\n for ( chan = 0 ;\n chan < avctx -> channels ;\n chan ++ ) s -> decoded [ chan ] = ( int32_t * ) frame -> extended_data [ chan ] ;\n }\n if ( s -> nb_samples < 16 ) {\n for ( chan = 0 ;\n chan < avctx -> channels ;\n chan ++ ) {\n int32_t * decoded = s -> decoded [ chan ] ;\n for ( i = 0 ;\n i < s -> nb_samples ;\n i ++ ) decoded [ i ] = get_sbits ( gb , avctx -> bits_per_coded_sample ) ;\n }\n }\n else {\n if ( s -> ti . codec == TAK_CODEC_MONO_STEREO ) {\n for ( chan = 0 ;\n chan < avctx -> channels ;\n chan ++ ) if ( ret = decode_channel ( s , chan ) ) return ret ;\n if ( avctx -> channels == 2 ) {\n if ( get_bits1 ( gb ) ) {\n skip_bits ( gb , 6 ) ;\n }\n s -> dmode = get_bits ( gb , 3 ) ;\n if ( ret = decorrelate ( s , 0 , 1 , s -> nb_samples - 1 ) ) return ret ;\n }\n }\n else if ( s -> ti . codec == TAK_CODEC_MULTICHANNEL ) {\n if ( get_bits1 ( gb ) ) {\n int ch_mask = 0 ;\n chan = get_bits ( gb , 4 ) + 1 ;\n if ( chan > avctx -> channels ) return AVERROR_INVALIDDATA ;\n for ( i = 0 ;\n i < chan ;\n i ++ ) {\n int nbit = get_bits ( gb , 4 ) ;\n if ( nbit >= avctx -> channels ) return AVERROR_INVALIDDATA ;\n if ( ch_mask & 1 << nbit ) return AVERROR_INVALIDDATA ;\n s -> mcdparams [ i ] . present = get_bits1 ( gb ) ;\n if ( s -> mcdparams [ i ] . present ) {\n s -> mcdparams [ i ] . index = get_bits ( gb , 2 ) ;\n s -> mcdparams [ i ] . chan2 = get_bits ( gb , 4 ) ;\n if ( s -> mcdparams [ i ] . index == 1 ) {\n if ( ( nbit == s -> mcdparams [ i ] . chan2 ) || ( ch_mask & 1 << s -> mcdparams [ i ] . chan2 ) ) return AVERROR_INVALIDDATA ;\n ch_mask |= 1 << s -> mcdparams [ i ] . chan2 ;\n }\n else if ( ! ( ch_mask & 1 << s -> mcdparams [ i ] . chan2 ) ) {\n return AVERROR_INVALIDDATA ;\n }\n }\n s -> mcdparams [ i ] . chan1 = nbit ;\n ch_mask |= 1 << nbit ;\n }\n }\n else {\n chan = avctx -> channels ;\n for ( i = 0 ;\n i < chan ;\n i ++ ) {\n s -> mcdparams [ i ] . present = 0 ;\n s -> mcdparams [ i ] . chan1 = i ;\n }\n }\n for ( i = 0 ;\n i < chan ;\n i ++ ) {\n if ( s -> mcdparams [ i ] . present && s -> mcdparams [ i ] . index == 1 ) if ( ret = decode_channel ( s , s -> mcdparams [ i ] . chan2 ) ) return ret ;\n if ( ret = decode_channel ( s , s -> mcdparams [ i ] . chan1 ) ) return ret ;\n if ( s -> mcdparams [ i ] . present ) {\n s -> dmode = mc_dmodes [ s -> mcdparams [ i ] . index ] ;\n if ( ret = decorrelate ( s , s -> mcdparams [ i ] . chan2 , s -> mcdparams [ i ] . chan1 , s -> nb_samples - 1 ) ) return ret ;\n }\n }\n }\n for ( chan = 0 ;\n chan < avctx -> channels ;\n chan ++ ) {\n int32_t * decoded = s -> decoded [ chan ] ;\n if ( s -> lpc_mode [ chan ] ) decode_lpc ( decoded , s -> lpc_mode [ chan ] , s -> nb_samples ) ;\n if ( s -> sample_shift [ chan ] > 0 ) for ( i = 0 ;\n i < s -> nb_samples ;\n i ++ ) decoded [ i ] <<= s -> sample_shift [ chan ] ;\n }\n }\n align_get_bits ( gb ) ;\n skip_bits ( gb , 24 ) ;\n if ( get_bits_left ( gb ) < 0 ) av_log ( avctx , AV_LOG_DEBUG , \"overread\\n\" ) ;\n else if ( get_bits_left ( gb ) > 0 ) av_log ( avctx , AV_LOG_DEBUG , \"underread\\n\" ) ;\n if ( avctx -> err_recognition & AV_EF_CRCCHECK ) {\n if ( ff_tak_check_crc ( pkt -> data + hsize , get_bits_count ( gb ) / 8 - hsize ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"CRC error\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n switch ( avctx -> sample_fmt ) {\n case AV_SAMPLE_FMT_U8P : for ( chan = 0 ;\n chan < avctx -> channels ;\n chan ++ ) {\n uint8_t * samples = ( uint8_t * ) frame -> extended_data [ chan ] ;\n int32_t * decoded = s -> decoded [ chan ] ;\n for ( i = 0 ;\n i < s -> nb_samples ;\n i ++ ) samples [ i ] = decoded [ i ] + 0x80 ;\n }\n break ;\n case AV_SAMPLE_FMT_S16P : for ( chan = 0 ;\n chan < avctx -> channels ;\n chan ++ ) {\n int16_t * samples = ( int16_t * ) frame -> extended_data [ chan ] ;\n int32_t * decoded = s -> decoded [ chan ] ;\n for ( i = 0 ;\n i < s -> nb_samples ;\n i ++ ) samples [ i ] = decoded [ i ] ;\n }\n break ;\n case AV_SAMPLE_FMT_S32P : for ( chan = 0 ;\n chan < avctx -> channels ;\n chan ++ ) {\n int32_t * samples = ( int32_t * ) frame -> extended_data [ chan ] ;\n for ( i = 0 ;\n i < s -> nb_samples ;\n i ++ ) samples [ i ] <<= 8 ;\n }\n break ;\n }\n * got_frame_ptr = 1 ;\n return pkt -> size ;\n }"}
{"idx": 17684, "target": 0, "func": "static char * sic10_opaque_binary_attr ( tvbuff_t * tvb , guint32 offset , guint8 token , guint8 codepage , guint32 * length ) {\n guint32 data_len = tvb_get_guintvar ( tvb , offset , length ) ;\n char * str = NULL ;\n switch ( codepage ) {\n case 0 : switch ( token ) {\n case 0x0A : case 0x10 : str = date_time_from_opaque ( tvb , offset + * length , data_len ) ;\n break ;\n default : break ;\n }\n break ;\n default : break ;\n }\n if ( str == NULL ) {\n str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"(%d bytes of unparsed opaque data)\" , data_len ) ;\n }\n * length += data_len ;\n return str ;\n }"}
{"idx": 17685, "target": 0, "func": "static inline bool ipv6_addr_equal ( const struct in6_addr * a1 , const struct in6_addr * a2 ) {\n # if defined ( CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS ) && BITS_PER_LONG == 64 const unsigned long * ul1 = ( const unsigned long * ) a1 ;\n const unsigned long * ul2 = ( const unsigned long * ) a2 ;\n return ( ( ul1 [ 0 ] ^ ul2 [ 0 ] ) | ( ul1 [ 1 ] ^ ul2 [ 1 ] ) ) == 0UL ;\n # else return ( ( a1 -> s6_addr32 [ 0 ] ^ a2 -> s6_addr32 [ 0 ] ) | ( a1 -> s6_addr32 [ 1 ] ^ a2 -> s6_addr32 [ 1 ] ) | ( a1 -> s6_addr32 [ 2 ] ^ a2 -> s6_addr32 [ 2 ] ) | ( a1 -> s6_addr32 [ 3 ] ^ a2 -> s6_addr32 [ 3 ] ) ) == 0 ;\n # endif }"}
{"idx": 17686, "target": 0, "func": "static inline void SetPixelChannelChannel ( const Image * restrict image , const PixelChannel channel , const ssize_t offset ) {\n image -> channel_map [ offset ] . channel = channel ;\n image -> channel_map [ channel ] . offset = offset ;\n }"}
{"idx": 17687, "target": 0, "func": "rfbBool rfbSendUpdateBuf ( rfbClientPtr cl ) {\n if ( cl -> sock < 0 ) return FALSE ;\n if ( rfbWriteExact ( cl , cl -> updateBuf , cl -> ublen ) < 0 ) {\n rfbLogPerror ( \"rfbSendUpdateBuf: write\" ) ;\n rfbCloseClient ( cl ) ;\n return FALSE ;\n }\n cl -> ublen = 0 ;\n return TRUE ;\n }"}
{"idx": 17688, "target": 0, "func": "static const char * cmd_audit_log_relevant_status ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = _dcfg ;\n dcfg -> auditlog_relevant_regex = msc_pregcomp ( cmd -> pool , p1 , PCRE_DOTALL , NULL , NULL ) ;\n if ( dcfg -> auditlog_relevant_regex == NULL ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid regular expression: %s\" , p1 ) ;\n }\n return NULL ;\n }"}
{"idx": 17689, "target": 0, "func": "static int answer_from_qmem ( int dns_fd , struct query * q , unsigned char * qmem_cmc , unsigned short * qmem_type , int qmem_len , unsigned char * cmc_to_check ) {\n int i ;\n for ( i = 0 ;\n i < qmem_len ;\n i ++ ) {\n if ( qmem_type [ i ] == T_UNSET ) continue ;\n if ( qmem_type [ i ] != q -> type ) continue ;\n if ( memcmp ( qmem_cmc + i * 4 , cmc_to_check , 4 ) ) continue ;\n if ( debug >= 1 ) fprintf ( stderr , \"OUT from qmem for %s == duplicate, sending illegal reply\\n\" , q -> name ) ;\n write_dns ( dns_fd , q , \"x\" , 1 , 'T' ) ;\n q -> id = 0 ;\n return 1 ;\n }\n return 0 ;\n }"}
{"idx": 17690, "target": 0, "func": "static int h263_decode_gob_header ( MpegEncContext * s ) {\n unsigned int val , gob_number ;\n int left ;\n val = show_bits ( & s -> gb , 16 ) ;\n if ( val ) return - 1 ;\n skip_bits ( & s -> gb , 16 ) ;\n left = get_bits_left ( & s -> gb ) ;\n for ( ;\n left > 13 ;\n left -- ) {\n if ( get_bits1 ( & s -> gb ) ) break ;\n }\n if ( left <= 13 ) return - 1 ;\n if ( s -> h263_slice_structured ) {\n if ( get_bits1 ( & s -> gb ) == 0 ) return - 1 ;\n ff_h263_decode_mba ( s ) ;\n if ( s -> mb_num > 1583 ) if ( get_bits1 ( & s -> gb ) == 0 ) return - 1 ;\n s -> qscale = get_bits ( & s -> gb , 5 ) ;\n if ( get_bits1 ( & s -> gb ) == 0 ) return - 1 ;\n skip_bits ( & s -> gb , 2 ) ;\n }\n else {\n gob_number = get_bits ( & s -> gb , 5 ) ;\n s -> mb_x = 0 ;\n s -> mb_y = s -> gob_index * gob_number ;\n skip_bits ( & s -> gb , 2 ) ;\n s -> qscale = get_bits ( & s -> gb , 5 ) ;\n }\n if ( s -> mb_y >= s -> mb_height ) return - 1 ;\n if ( s -> qscale == 0 ) return - 1 ;\n return 0 ;\n }"}
{"idx": 17691, "target": 1, "func": "static int mp_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n MotionPixelsContext * mp = avctx -> priv_data ;\n GetBitContext gb ;\n int i , count1 , count2 , sz ;\n mp -> frame . reference = 1 ;\n mp -> frame . buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE ;\n if ( avctx -> reget_buffer ( avctx , & mp -> frame ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return - 1 ;\n }\n av_fast_malloc ( & mp -> bswapbuf , & mp -> bswapbuf_size , buf_size + FF_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( ! mp -> bswapbuf ) return AVERROR ( ENOMEM ) ;\n mp -> dsp . bswap_buf ( ( uint32_t * ) mp -> bswapbuf , ( const uint32_t * ) buf , buf_size / 4 ) ;\n if ( buf_size & 3 ) memcpy ( mp -> bswapbuf + ( buf_size & ~ 3 ) , buf + ( buf_size & ~ 3 ) , buf_size & 3 ) ;\n memset ( mp -> bswapbuf + buf_size , 0 , FF_INPUT_BUFFER_PADDING_SIZE ) ;\n init_get_bits ( & gb , mp -> bswapbuf , buf_size * 8 ) ;\n memset ( mp -> changes_map , 0 , avctx -> width * avctx -> height ) ;\n for ( i = ! ( avctx -> extradata [ 1 ] & 2 ) ;\n i < 2 ;\n ++ i ) {\n count1 = get_bits ( & gb , 12 ) ;\n count2 = get_bits ( & gb , 12 ) ;\n mp_read_changes_map ( mp , & gb , count1 , 8 , i ) ;\n mp_read_changes_map ( mp , & gb , count2 , 4 , i ) ;\n }\n mp -> codes_count = get_bits ( & gb , 4 ) ;\n if ( mp -> codes_count == 0 ) goto end ;\n if ( mp -> changes_map [ 0 ] == 0 ) {\n * ( uint16_t * ) mp -> frame . data [ 0 ] = get_bits ( & gb , 15 ) ;\n mp -> changes_map [ 0 ] = 1 ;\n }\n mp_read_codes_table ( mp , & gb ) ;\n sz = get_bits ( & gb , 18 ) ;\n if ( avctx -> extradata [ 0 ] != 5 ) sz += get_bits ( & gb , 18 ) ;\n if ( sz == 0 ) goto end ;\n if ( mp -> max_codes_bits <= 0 ) goto end ;\n if ( init_vlc ( & mp -> vlc , mp -> max_codes_bits , mp -> codes_count , & mp -> codes [ 0 ] . size , sizeof ( HuffCode ) , 1 , & mp -> codes [ 0 ] . code , sizeof ( HuffCode ) , 4 , 0 ) ) goto end ;\n mp_decode_frame_helper ( mp , & gb ) ;\n ff_free_vlc ( & mp -> vlc ) ;\n end : * got_frame = 1 ;\n * ( AVFrame * ) data = mp -> frame ;\n return buf_size ;\n }"}
{"idx": 17692, "target": 0, "func": "int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) {\n if ( ! value || ( type == V_ASN1_BOOLEAN ) ) {\n void * p = ( void * ) value ;\n ASN1_TYPE_set ( a , type , p ) ;\n }\n else if ( type == V_ASN1_OBJECT ) {\n ASN1_OBJECT * odup ;\n odup = OBJ_dup ( value ) ;\n if ( ! odup ) return 0 ;\n ASN1_TYPE_set ( a , type , odup ) ;\n }\n else {\n ASN1_STRING * sdup ;\n sdup = ASN1_STRING_dup ( value ) ;\n if ( ! sdup ) return 0 ;\n ASN1_TYPE_set ( a , type , sdup ) ;\n }\n return 1 ;\n }"}
{"idx": 17693, "target": 0, "func": "static __always_inline void __swab32s ( __u32 * p ) {\n # ifdef __arch_swab32s __arch_swab32s ( p ) ;\n # else * p = __swab32p ( p ) ;\n # endif }"}
{"idx": 17694, "target": 1, "func": "static int rc_pick_q_and_bounds_one_pass_cbr ( const VP9_COMP * cpi , int * bottom_index , int * top_index ) {\n const VP9_COMMON * const cm = & cpi -> common ;\n const RATE_CONTROL * const rc = & cpi -> rc ;\n int active_best_quality ;\n int active_worst_quality = calc_active_worst_quality_one_pass_cbr ( cpi ) ;\n int q ;\n if ( frame_is_intra_only ( cm ) ) {\n active_best_quality = rc -> best_quality ;\n if ( rc -> this_key_frame_forced ) {\n int qindex = rc -> last_boosted_qindex ;\n double last_boosted_q = vp9_convert_qindex_to_q ( qindex ) ;\n int delta_qindex = vp9_compute_qdelta ( rc , last_boosted_q , ( last_boosted_q * 0.75 ) ) ;\n active_best_quality = MAX ( qindex + delta_qindex , rc -> best_quality ) ;\n }\n else if ( cm -> current_video_frame > 0 ) {\n double q_adj_factor = 1.0 ;\n double q_val ;\n active_best_quality = get_kf_active_quality ( rc , rc -> avg_frame_qindex [ KEY_FRAME ] ) ;\n if ( ( cm -> width * cm -> height ) <= ( 352 * 288 ) ) {\n q_adj_factor -= 0.25 ;\n }\n q_val = vp9_convert_qindex_to_q ( active_best_quality ) ;\n active_best_quality += vp9_compute_qdelta ( rc , q_val , q_val * q_adj_factor ) ;\n }\n }\n else if ( ! rc -> is_src_frame_alt_ref && ! cpi -> use_svc && ( cpi -> refresh_golden_frame || cpi -> refresh_alt_ref_frame ) ) {\n if ( rc -> frames_since_key > 1 && rc -> avg_frame_qindex [ INTER_FRAME ] < active_worst_quality ) {\n q = rc -> avg_frame_qindex [ INTER_FRAME ] ;\n }\n else {\n q = active_worst_quality ;\n }\n active_best_quality = get_gf_active_quality ( rc , q ) ;\n }\n else {\n if ( cm -> current_video_frame > 1 ) {\n if ( rc -> avg_frame_qindex [ INTER_FRAME ] < active_worst_quality ) active_best_quality = rtc_minq [ rc -> avg_frame_qindex [ INTER_FRAME ] ] ;\n else active_best_quality = rtc_minq [ active_worst_quality ] ;\n }\n else {\n if ( rc -> avg_frame_qindex [ KEY_FRAME ] < active_worst_quality ) active_best_quality = rtc_minq [ rc -> avg_frame_qindex [ KEY_FRAME ] ] ;\n else active_best_quality = rtc_minq [ active_worst_quality ] ;\n }\n }\n active_best_quality = clamp ( active_best_quality , rc -> best_quality , rc -> worst_quality ) ;\n active_worst_quality = clamp ( active_worst_quality , active_best_quality , rc -> worst_quality ) ;\n * top_index = active_worst_quality ;\n * bottom_index = active_best_quality ;\n # if LIMIT_QRANGE_FOR_ALTREF_AND_KEY if ( cm -> frame_type == KEY_FRAME && ! rc -> this_key_frame_forced && ! ( cm -> current_video_frame == 0 ) ) {\n int qdelta = 0 ;\n vp9_clear_system_state ( ) ;\n qdelta = vp9_compute_qdelta_by_rate ( & cpi -> rc , cm -> frame_type , active_worst_quality , 2.0 ) ;\n * top_index = active_worst_quality + qdelta ;\n * top_index = ( * top_index > * bottom_index ) ? * top_index : * bottom_index ;\n }\n # endif if ( cm -> frame_type == KEY_FRAME && rc -> this_key_frame_forced ) {\n q = rc -> last_boosted_qindex ;\n }\n else {\n q = vp9_rc_regulate_q ( cpi , rc -> this_frame_target , active_best_quality , active_worst_quality ) ;\n if ( q > * top_index ) {\n if ( rc -> this_frame_target >= rc -> max_frame_bandwidth ) * top_index = q ;\n else q = * top_index ;\n }\n }\n assert ( * top_index <= rc -> worst_quality && * top_index >= rc -> best_quality ) ;\n assert ( * bottom_index <= rc -> worst_quality && * bottom_index >= rc -> best_quality ) ;\n assert ( q <= rc -> worst_quality && q >= rc -> best_quality ) ;\n return q ;\n }"}
{"idx": 17695, "target": 0, "func": "void aes_crypt_ecb ( aes_context * ctx , int mode , const unsigned char input [ 16 ] , unsigned char output [ 16 ] ) {\n int i ;\n unsigned long * RK , X0 , X1 , X2 , X3 , Y0 , Y1 , Y2 , Y3 ;\n # if defined ( XYSSL_PADLOCK_C ) && defined ( XYSSL_HAVE_X86 ) if ( padlock_supports ( PADLOCK_ACE ) ) {\n if ( padlock_xcryptecb ( ctx , mode , input , output ) == 0 ) return ;\n }\n # endif if ( ctx == NULL || ctx -> rk == NULL ) return ;\n RK = ctx -> rk ;\n GET_ULONG_LE ( X0 , input , 0 ) ;\n X0 ^= * RK ++ ;\n GET_ULONG_LE ( X1 , input , 4 ) ;\n X1 ^= * RK ++ ;\n GET_ULONG_LE ( X2 , input , 8 ) ;\n X2 ^= * RK ++ ;\n GET_ULONG_LE ( X3 , input , 12 ) ;\n X3 ^= * RK ++ ;\n if ( mode == AES_DECRYPT ) {\n for ( i = ( ctx -> nr >> 1 ) - 1 ;\n i > 0 ;\n i -- ) {\n AES_RROUND ( Y0 , Y1 , Y2 , Y3 , X0 , X1 , X2 , X3 ) ;\n AES_RROUND ( X0 , X1 , X2 , X3 , Y0 , Y1 , Y2 , Y3 ) ;\n }\n AES_RROUND ( Y0 , Y1 , Y2 , Y3 , X0 , X1 , X2 , X3 ) ;\n X0 = * RK ++ ^ ( RSb [ ( Y0 ) & 0xFF ] ) ^ ( RSb [ ( Y3 >> 8 ) & 0xFF ] << 8 ) ^ ( RSb [ ( Y2 >> 16 ) & 0xFF ] << 16 ) ^ ( ( ( unsigned int ) RSb [ ( Y1 >> 24 ) & 0xFF ] ) << 24 ) ;\n X1 = * RK ++ ^ ( RSb [ ( Y1 ) & 0xFF ] ) ^ ( RSb [ ( Y0 >> 8 ) & 0xFF ] << 8 ) ^ ( RSb [ ( Y3 >> 16 ) & 0xFF ] << 16 ) ^ ( ( ( unsigned int ) RSb [ ( Y2 >> 24 ) & 0xFF ] ) << 24 ) ;\n X2 = * RK ++ ^ ( RSb [ ( Y2 ) & 0xFF ] ) ^ ( RSb [ ( Y1 >> 8 ) & 0xFF ] << 8 ) ^ ( RSb [ ( Y0 >> 16 ) & 0xFF ] << 16 ) ^ ( ( ( unsigned int ) RSb [ ( Y3 >> 24 ) & 0xFF ] ) << 24 ) ;\n X3 = * RK ++ ^ ( RSb [ ( Y3 ) & 0xFF ] ) ^ ( RSb [ ( Y2 >> 8 ) & 0xFF ] << 8 ) ^ ( RSb [ ( Y1 >> 16 ) & 0xFF ] << 16 ) ^ ( ( ( unsigned int ) RSb [ ( Y0 >> 24 ) & 0xFF ] ) << 24 ) ;\n }\n else {\n for ( i = ( ctx -> nr >> 1 ) - 1 ;\n i > 0 ;\n i -- ) {\n AES_FROUND ( Y0 , Y1 , Y2 , Y3 , X0 , X1 , X2 , X3 ) ;\n AES_FROUND ( X0 , X1 , X2 , X3 , Y0 , Y1 , Y2 , Y3 ) ;\n }\n AES_FROUND ( Y0 , Y1 , Y2 , Y3 , X0 , X1 , X2 , X3 ) ;\n X0 = * RK ++ ^ ( FSb [ ( Y0 ) & 0xFF ] ) ^ ( FSb [ ( Y1 >> 8 ) & 0xFF ] << 8 ) ^ ( FSb [ ( Y2 >> 16 ) & 0xFF ] << 16 ) ^ ( ( ( unsigned int ) FSb [ ( Y3 >> 24 ) & 0xFF ] ) << 24 ) ;\n X1 = * RK ++ ^ ( FSb [ ( Y1 ) & 0xFF ] ) ^ ( FSb [ ( Y2 >> 8 ) & 0xFF ] << 8 ) ^ ( FSb [ ( Y3 >> 16 ) & 0xFF ] << 16 ) ^ ( ( ( unsigned int ) FSb [ ( Y0 >> 24 ) & 0xFF ] ) << 24 ) ;\n X2 = * RK ++ ^ ( FSb [ ( Y2 ) & 0xFF ] ) ^ ( FSb [ ( Y3 >> 8 ) & 0xFF ] << 8 ) ^ ( FSb [ ( Y0 >> 16 ) & 0xFF ] << 16 ) ^ ( ( ( unsigned int ) FSb [ ( Y1 >> 24 ) & 0xFF ] ) << 24 ) ;\n X3 = * RK ++ ^ ( FSb [ ( Y3 ) & 0xFF ] ) ^ ( FSb [ ( Y0 >> 8 ) & 0xFF ] << 8 ) ^ ( FSb [ ( Y1 >> 16 ) & 0xFF ] << 16 ) ^ ( ( ( unsigned int ) FSb [ ( Y2 >> 24 ) & 0xFF ] ) << 24 ) ;\n }\n PUT_ULONG_LE ( X0 , output , 0 ) ;\n PUT_ULONG_LE ( X1 , output , 4 ) ;\n PUT_ULONG_LE ( X2 , output , 8 ) ;\n PUT_ULONG_LE ( X3 , output , 12 ) ;\n }"}
{"idx": 17696, "target": 0, "func": "int zcvr ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n switch ( r_type ( op ) ) {\n case t_integer : make_real ( op , ( float ) op -> value . intval ) ;\n case t_real : return 0 ;\n default : return_op_typecheck ( op ) ;\n case t_string : {\n ref str , token ;\n int code ;\n ref_assign ( & str , op ) ;\n code = gs_scan_string_token ( i_ctx_p , & str , & token ) ;\n if ( code > 0 ) code = gs_note_error ( gs_error_syntaxerror ) ;\n if ( code < 0 ) return code ;\n switch ( r_type ( & token ) ) {\n case t_integer : make_real ( op , ( float ) token . value . intval ) ;\n return 0 ;\n case t_real : * op = token ;\n return 0 ;\n default : return_error ( gs_error_typecheck ) ;\n }\n }\n }\n }"}
{"idx": 17697, "target": 0, "func": "static void sig_channel_destroyed ( CHANNEL_REC * channel ) {\n MODULE_CHANNEL_REC * mchannel ;\n g_return_if_fail ( channel != NULL ) ;\n mchannel = MODULE_DATA ( channel ) ;\n while ( mchannel -> lastmsgs != NULL ) {\n last_msg_destroy ( & mchannel -> lastmsgs , mchannel -> lastmsgs -> data ) ;\n }\n }"}
{"idx": 17698, "target": 0, "func": "static int pop_value ( i_ctx_t * i_ctx_p , ref * pvalue ) {\n if ( ! ref_stack_count ( & o_stack ) ) return_error ( gs_error_stackunderflow ) ;\n * pvalue = * ref_stack_index ( & o_stack , 0L ) ;\n return 0 ;\n }"}
{"idx": 17699, "target": 0, "func": "static int sort_get_next_record ( MI_SORT_PARAM * sort_param ) {\n int searching ;\n int parallel_flag ;\n uint found_record , b_type , left_length ;\n my_off_t pos ;\n uchar * UNINIT_VAR ( to ) ;\n MI_BLOCK_INFO block_info ;\n SORT_INFO * sort_info = sort_param -> sort_info ;\n MI_CHECK * param = sort_info -> param ;\n MI_INFO * info = sort_info -> info ;\n MYISAM_SHARE * share = info -> s ;\n char llbuff [ 22 ] , llbuff2 [ 22 ] ;\n DBUG_ENTER ( \"sort_get_next_record\" ) ;\n if ( * killed_ptr ( param ) ) DBUG_RETURN ( 1 ) ;\n switch ( share -> data_file_type ) {\n case STATIC_RECORD : for ( ;\n ;\n ) {\n if ( my_b_read ( & sort_param -> read_cache , sort_param -> record , share -> base . pack_reclength ) ) {\n if ( sort_param -> read_cache . error ) param -> out_flag |= O_DATA_LOST ;\n param -> retry_repair = 1 ;\n param -> testflag |= T_RETRY_WITHOUT_QUICK ;\n DBUG_RETURN ( - 1 ) ;\n }\n sort_param -> start_recpos = sort_param -> pos ;\n if ( ! sort_param -> fix_datafile ) {\n sort_param -> filepos = sort_param -> pos ;\n if ( sort_param -> master ) share -> state . split ++ ;\n }\n sort_param -> max_pos = ( sort_param -> pos += share -> base . pack_reclength ) ;\n if ( * sort_param -> record ) {\n if ( sort_param -> calc_checksum ) param -> glob_crc += ( info -> checksum = mi_static_checksum ( info , sort_param -> record ) ) ;\n DBUG_RETURN ( 0 ) ;\n }\n if ( ! sort_param -> fix_datafile && sort_param -> master ) {\n info -> state -> del ++ ;\n info -> state -> empty += share -> base . pack_reclength ;\n }\n }\n case DYNAMIC_RECORD : LINT_INIT ( to ) ;\n pos = sort_param -> pos ;\n searching = ( sort_param -> fix_datafile && ( param -> testflag & T_EXTEND ) ) ;\n parallel_flag = ( sort_param -> read_cache . file < 0 ) ? READING_NEXT : 0 ;\n for ( ;\n ;\n ) {\n found_record = block_info . second_read = 0 ;\n left_length = 1 ;\n if ( searching ) {\n pos = MY_ALIGN ( pos , MI_DYN_ALIGN_SIZE ) ;\n param -> testflag |= T_RETRY_WITHOUT_QUICK ;\n sort_param -> start_recpos = pos ;\n }\n do {\n if ( pos > sort_param -> max_pos ) sort_param -> max_pos = pos ;\n if ( pos & ( MI_DYN_ALIGN_SIZE - 1 ) ) {\n if ( ( param -> testflag & T_VERBOSE ) || searching == 0 ) mi_check_print_info ( param , \"Wrong aligned block at %s\" , llstr ( pos , llbuff ) ) ;\n if ( searching ) goto try_next ;\n }\n if ( found_record && pos == param -> search_after_block ) mi_check_print_info ( param , \"Block: %s used by record at %s\" , llstr ( param -> search_after_block , llbuff ) , llstr ( sort_param -> start_recpos , llbuff2 ) ) ;\n if ( _mi_read_cache ( & sort_param -> read_cache , ( uchar * ) block_info . header , pos , MI_BLOCK_INFO_HEADER_LENGTH , ( ! found_record ? READING_NEXT : 0 ) | parallel_flag | READING_HEADER ) ) {\n if ( found_record ) {\n mi_check_print_info ( param , \"Can't read whole record at %s (errno: %d)\" , llstr ( sort_param -> start_recpos , llbuff ) , errno ) ;\n goto try_next ;\n }\n DBUG_RETURN ( - 1 ) ;\n }\n if ( searching && ! sort_param -> fix_datafile ) {\n param -> error_printed = 1 ;\n param -> retry_repair = 1 ;\n param -> testflag |= T_RETRY_WITHOUT_QUICK ;\n DBUG_RETURN ( 1 ) ;\n }\n b_type = _mi_get_block_info ( & block_info , - 1 , pos ) ;\n if ( ( b_type & ( BLOCK_ERROR | BLOCK_FATAL_ERROR ) ) || ( ( b_type & BLOCK_FIRST ) && ( block_info . rec_len < ( uint ) share -> base . min_pack_length || block_info . rec_len > ( uint ) share -> base . max_pack_length ) ) ) {\n uint i ;\n if ( param -> testflag & T_VERBOSE || searching == 0 ) mi_check_print_info ( param , \"Wrong bytesec: %3d-%3d-%3d at %10s;\n Skipped\" , block_info . header [ 0 ] , block_info . header [ 1 ] , block_info . header [ 2 ] , llstr ( pos , llbuff ) ) ;\n if ( found_record ) goto try_next ;\n block_info . second_read = 0 ;\n searching = 1 ;\n for ( i = MI_DYN_ALIGN_SIZE ;\n i < MI_BLOCK_INFO_HEADER_LENGTH ;\n i += MI_DYN_ALIGN_SIZE ) if ( block_info . header [ i ] >= 1 && block_info . header [ i ] <= MI_MAX_DYN_HEADER_BYTE ) break ;\n pos += ( ulong ) i ;\n sort_param -> start_recpos = pos ;\n continue ;\n }\n if ( b_type & BLOCK_DELETED ) {\n my_bool error = 0 ;\n if ( block_info . block_len + ( uint ) ( block_info . filepos - pos ) < share -> base . min_block_length ) {\n if ( ! searching ) mi_check_print_info ( param , \"Deleted block with impossible length %u at %s\" , block_info . block_len , llstr ( pos , llbuff ) ) ;\n error = 1 ;\n }\n else {\n if ( ( block_info . next_filepos != HA_OFFSET_ERROR && block_info . next_filepos >= info -> state -> data_file_length ) || ( block_info . prev_filepos != HA_OFFSET_ERROR && block_info . prev_filepos >= info -> state -> data_file_length ) ) {\n if ( ! searching ) mi_check_print_info ( param , \"Delete link points outside datafile at %s\" , llstr ( pos , llbuff ) ) ;\n error = 1 ;\n }\n }\n if ( error ) {\n if ( found_record ) goto try_next ;\n searching = 1 ;\n pos += MI_DYN_ALIGN_SIZE ;\n sort_param -> start_recpos = pos ;\n block_info . second_read = 0 ;\n continue ;\n }\n }\n else {\n if ( block_info . block_len + ( uint ) ( block_info . filepos - pos ) < share -> base . min_block_length || block_info . block_len > ( uint ) share -> base . max_pack_length + MI_SPLIT_LENGTH ) {\n if ( ! searching ) mi_check_print_info ( param , \"Found block with impossible length %u at %s;\n Skipped\" , block_info . block_len + ( uint ) ( block_info . filepos - pos ) , llstr ( pos , llbuff ) ) ;\n if ( found_record ) goto try_next ;\n searching = 1 ;\n pos += MI_DYN_ALIGN_SIZE ;\n sort_param -> start_recpos = pos ;\n block_info . second_read = 0 ;\n continue ;\n }\n }\n if ( b_type & ( BLOCK_DELETED | BLOCK_SYNC_ERROR ) ) {\n if ( ! sort_param -> fix_datafile && sort_param -> master && ( b_type & BLOCK_DELETED ) ) {\n info -> state -> empty += block_info . block_len ;\n info -> state -> del ++ ;\n share -> state . split ++ ;\n }\n if ( found_record ) goto try_next ;\n if ( searching ) {\n pos += MI_DYN_ALIGN_SIZE ;\n sort_param -> start_recpos = pos ;\n }\n else pos = block_info . filepos + block_info . block_len ;\n block_info . second_read = 0 ;\n continue ;\n }\n if ( ! sort_param -> fix_datafile && sort_param -> master ) share -> state . split ++ ;\n if ( ! found_record ++ ) {\n sort_param -> find_length = left_length = block_info . rec_len ;\n sort_param -> start_recpos = pos ;\n if ( ! sort_param -> fix_datafile ) sort_param -> filepos = sort_param -> start_recpos ;\n if ( sort_param -> fix_datafile && ( param -> testflag & T_EXTEND ) ) sort_param -> pos = block_info . filepos + 1 ;\n else sort_param -> pos = block_info . filepos + block_info . block_len ;\n if ( share -> base . blobs ) {\n if ( ! ( to = mi_alloc_rec_buff ( info , block_info . rec_len , & ( sort_param -> rec_buff ) ) ) ) {\n if ( param -> max_record_length >= block_info . rec_len ) {\n mi_check_print_error ( param , \"Not enough memory for blob at %s (need %lu)\" , llstr ( sort_param -> start_recpos , llbuff ) , ( ulong ) block_info . rec_len ) ;\n DBUG_RETURN ( 1 ) ;\n }\n else {\n mi_check_print_info ( param , \"Not enough memory for blob at %s (need %lu);\n Row skipped\" , llstr ( sort_param -> start_recpos , llbuff ) , ( ulong ) block_info . rec_len ) ;\n goto try_next ;\n }\n }\n }\n else to = sort_param -> rec_buff ;\n }\n if ( left_length < block_info . data_len || ! block_info . data_len ) {\n mi_check_print_info ( param , \"Found block with too small length at %s;\n Skipped\" , llstr ( sort_param -> start_recpos , llbuff ) ) ;\n goto try_next ;\n }\n if ( block_info . filepos + block_info . data_len > sort_param -> read_cache . end_of_file ) {\n mi_check_print_info ( param , \"Found block that points outside data file at %s\" , llstr ( sort_param -> start_recpos , llbuff ) ) ;\n goto try_next ;\n }\n {\n uint header_len = ( uint ) ( block_info . filepos - pos ) ;\n uint prefetch_len = ( MI_BLOCK_INFO_HEADER_LENGTH - header_len ) ;\n if ( prefetch_len > block_info . data_len ) prefetch_len = block_info . data_len ;\n if ( prefetch_len ) {\n memcpy ( to , block_info . header + header_len , prefetch_len ) ;\n block_info . filepos += prefetch_len ;\n block_info . data_len -= prefetch_len ;\n left_length -= prefetch_len ;\n to += prefetch_len ;\n }\n }\n if ( block_info . data_len && _mi_read_cache ( & sort_param -> read_cache , to , block_info . filepos , block_info . data_len , ( found_record == 1 ? READING_NEXT : 0 ) | parallel_flag ) ) {\n mi_check_print_info ( param , \"Read error for block at: %s (error: %d);\n Skipped\" , llstr ( block_info . filepos , llbuff ) , my_errno ) ;\n goto try_next ;\n }\n left_length -= block_info . data_len ;\n to += block_info . data_len ;\n pos = block_info . next_filepos ;\n if ( pos == HA_OFFSET_ERROR && left_length ) {\n mi_check_print_info ( param , \"Wrong block with wrong total length starting at %s\" , llstr ( sort_param -> start_recpos , llbuff ) ) ;\n goto try_next ;\n }\n if ( pos + MI_BLOCK_INFO_HEADER_LENGTH > sort_param -> read_cache . end_of_file ) {\n mi_check_print_info ( param , \"Found link that points at %s (outside data file) at %s\" , llstr ( pos , llbuff2 ) , llstr ( sort_param -> start_recpos , llbuff ) ) ;\n goto try_next ;\n }\n }\n while ( left_length ) ;\n if ( _mi_rec_unpack ( info , sort_param -> record , sort_param -> rec_buff , sort_param -> find_length ) != MY_FILE_ERROR ) {\n if ( sort_param -> read_cache . error < 0 ) DBUG_RETURN ( 1 ) ;\n if ( sort_param -> calc_checksum ) info -> checksum = mi_checksum ( info , sort_param -> record ) ;\n if ( ( param -> testflag & ( T_EXTEND | T_REP ) ) || searching ) {\n if ( _mi_rec_check ( info , sort_param -> record , sort_param -> rec_buff , sort_param -> find_length , ( param -> testflag & T_QUICK ) && sort_param -> calc_checksum && test ( info -> s -> calc_checksum ) ) ) {\n mi_check_print_info ( param , \"Found wrong packed record at %s\" , llstr ( sort_param -> start_recpos , llbuff ) ) ;\n goto try_next ;\n }\n }\n if ( sort_param -> calc_checksum ) param -> glob_crc += info -> checksum ;\n DBUG_RETURN ( 0 ) ;\n }\n if ( ! searching ) mi_check_print_info ( param , \"Key %d - Found wrong stored record at %s\" , sort_param -> key + 1 , llstr ( sort_param -> start_recpos , llbuff ) ) ;\n try_next : pos = ( sort_param -> start_recpos += MI_DYN_ALIGN_SIZE ) ;\n searching = 1 ;\n }\n case COMPRESSED_RECORD : for ( searching = 0 ;\n ;\n searching = 1 , sort_param -> pos ++ ) {\n if ( _mi_read_cache ( & sort_param -> read_cache , ( uchar * ) block_info . header , sort_param -> pos , share -> pack . ref_length , READING_NEXT ) ) DBUG_RETURN ( - 1 ) ;\n if ( searching && ! sort_param -> fix_datafile ) {\n param -> error_printed = 1 ;\n param -> retry_repair = 1 ;\n param -> testflag |= T_RETRY_WITHOUT_QUICK ;\n DBUG_RETURN ( 1 ) ;\n }\n sort_param -> start_recpos = sort_param -> pos ;\n if ( _mi_pack_get_block_info ( info , & sort_param -> bit_buff , & block_info , & sort_param -> rec_buff , - 1 , sort_param -> pos ) ) DBUG_RETURN ( - 1 ) ;\n if ( ! block_info . rec_len && sort_param -> pos + MEMMAP_EXTRA_MARGIN == sort_param -> read_cache . end_of_file ) DBUG_RETURN ( - 1 ) ;\n if ( block_info . rec_len < ( uint ) share -> min_pack_length || block_info . rec_len > ( uint ) share -> max_pack_length ) {\n if ( ! searching ) mi_check_print_info ( param , \"Found block with wrong recordlength: %d at %s\\n\" , block_info . rec_len , llstr ( sort_param -> pos , llbuff ) ) ;\n continue ;\n }\n if ( _mi_read_cache ( & sort_param -> read_cache , ( uchar * ) sort_param -> rec_buff , block_info . filepos , block_info . rec_len , READING_NEXT ) ) {\n if ( ! searching ) mi_check_print_info ( param , \"Couldn't read whole record from %s\" , llstr ( sort_param -> pos , llbuff ) ) ;\n continue ;\n }\n if ( _mi_pack_rec_unpack ( info , & sort_param -> bit_buff , sort_param -> record , sort_param -> rec_buff , block_info . rec_len ) ) {\n if ( ! searching ) mi_check_print_info ( param , \"Found wrong record at %s\" , llstr ( sort_param -> pos , llbuff ) ) ;\n continue ;\n }\n if ( ! sort_param -> fix_datafile ) {\n sort_param -> filepos = sort_param -> pos ;\n if ( sort_param -> master ) share -> state . split ++ ;\n }\n sort_param -> max_pos = ( sort_param -> pos = block_info . filepos + block_info . rec_len ) ;\n info -> packed_length = block_info . rec_len ;\n if ( sort_param -> calc_checksum ) param -> glob_crc += ( info -> checksum = mi_checksum ( info , sort_param -> record ) ) ;\n DBUG_RETURN ( 0 ) ;\n }\n case BLOCK_RECORD : assert ( 0 ) ;\n }\n DBUG_RETURN ( 1 ) ;\n }"}
{"idx": 17700, "target": 0, "func": "int TSHttpTxnClientReqHdrBytesGet ( TSHttpTxn txnp ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n return sm -> client_request_hdr_bytes ;\n }"}
{"idx": 17701, "target": 0, "func": "int dissect_ber_integer ( gboolean implicit_tag , asn1_ctx_t * actx , proto_tree * tree , tvbuff_t * tvb , int offset , gint hf_id , guint32 * value ) {\n gint64 val ;\n offset = dissect_ber_integer64 ( implicit_tag , actx , tree , tvb , offset , hf_id , & val ) ;\n if ( value ) {\n * value = ( guint32 ) val ;\n }\n return offset ;\n }"}
{"idx": 17702, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FramebustBlockBrowserTest , DisallowRadioButtonSelected ) {\n const GURL url = embedded_test_server ( ) -> GetURL ( \"/iframe.html\" ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , url ) ;\n auto * helper = GetFramebustTabHelper ( ) ;\n helper -> AddBlockedUrl ( url , base : : BindOnce ( & FramebustBlockBrowserTest : : OnClick , base : : Unretained ( this ) ) ) ;\n EXPECT_TRUE ( helper -> HasBlockedUrls ( ) ) ;\n HostContentSettingsMap * settings_map = HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) ;\n EXPECT_EQ ( CONTENT_SETTING_BLOCK , settings_map -> GetContentSetting ( url , GURL ( ) , CONTENT_SETTINGS_TYPE_POPUPS , std : : string ( ) ) ) ;\n {\n ContentSettingFramebustBlockBubbleModel framebust_block_bubble_model ( browser ( ) -> content_setting_bubble_model_delegate ( ) , GetWebContents ( ) , browser ( ) -> profile ( ) ) ;\n framebust_block_bubble_model . OnRadioClicked ( kDisallowRadioButtonIndex ) ;\n }\n EXPECT_EQ ( CONTENT_SETTING_BLOCK , settings_map -> GetContentSetting ( url , GURL ( ) , CONTENT_SETTINGS_TYPE_POPUPS , std : : string ( ) ) ) ;\n }"}
{"idx": 17703, "target": 0, "func": "static body_parts * * get_body_parts ( mac_is_channel * ch ) {\n body_parts * * bpa = ( body_parts * * ) g_hash_table_lookup ( mac_is_fragments , ch ) ;\n if ( bpa == NULL ) {\n mac_is_channel * channel ;\n guint16 i ;\n bpa = wmem_alloc_array ( wmem_file_scope ( ) , body_parts * , MAX_TSN ) ;\n for ( i = 0 ;\n i < MAX_TSN ;\n i ++ ) {\n bpa [ i ] = wmem_new0 ( wmem_file_scope ( ) , body_parts ) ;\n }\n channel = wmem_new ( wmem_file_scope ( ) , mac_is_channel ) ;\n * channel = * ch ;\n g_hash_table_insert ( mac_is_fragments , channel , bpa ) ;\n }\n return bpa ;\n }"}
{"idx": 17704, "target": 0, "func": "sf_count_t psf_get_filelen ( SF_PRIVATE * psf ) {\n sf_count_t filelen ;\n if ( psf -> virtual_io ) return psf -> vio . get_filelen ( psf -> vio_user_data ) ;\n filelen = psf_get_filelen_fd ( psf -> file . filedes ) ;\n if ( filelen == - 1 ) {\n psf_log_syserr ( psf , errno ) ;\n return ( sf_count_t ) - 1 ;\n }\n ;\n if ( filelen == - SFE_BAD_STAT_SIZE ) {\n psf -> error = SFE_BAD_STAT_SIZE ;\n return ( sf_count_t ) - 1 ;\n }\n ;\n switch ( psf -> file . mode ) {\n case SFM_WRITE : filelen = filelen - psf -> fileoffset ;\n break ;\n case SFM_READ : if ( psf -> fileoffset > 0 && psf -> filelength > 0 ) filelen = psf -> filelength ;\n break ;\n case SFM_RDWR : break ;\n default : filelen = - 1 ;\n }\n ;\n return filelen ;\n }"}
{"idx": 17705, "target": 0, "func": "static int fetch_description ( char * line , void * data ) {\n struct NntpServer * nserv = data ;\n struct NntpData * nntp_data = NULL ;\n char * desc = NULL ;\n if ( ! line ) return 0 ;\n desc = strpbrk ( line , \" \\t\" ) ;\n if ( desc ) {\n * desc ++ = '\\0' ;\n desc += strspn ( desc , \" \\t\" ) ;\n }\n else desc = strchr ( line , '\\0' ) ;\n nntp_data = mutt_hash_find ( nserv -> groups_hash , line ) ;\n if ( nntp_data && ( mutt_str_strcmp ( desc , nntp_data -> desc ) != 0 ) ) {\n mutt_str_replace ( & nntp_data -> desc , desc ) ;\n mutt_debug ( 2 , \"group: %s, desc: %s\\n\" , line , desc ) ;\n }\n return 0 ;\n }"}
{"idx": 17706, "target": 0, "func": "void TSConfigRelease ( unsigned int id , TSConfig configp ) {\n configProcessor . release ( id , ( ConfigInfo * ) configp ) ;\n }"}
{"idx": 17707, "target": 0, "func": "static void search_stack_free ( void * key , void * data ) {\n ber_memfree_x ( data , NULL ) ;\n }"}
{"idx": 17708, "target": 0, "func": "static void arabic_fallback_shape ( const hb_ot_shape_plan_t * plan , hb_font_t * font , hb_buffer_t * buffer ) {\n const arabic_shape_plan_t * arabic_plan = ( const arabic_shape_plan_t * ) plan -> data ;\n if ( ! arabic_plan -> do_fallback ) return ;\n retry : arabic_fallback_plan_t * fallback_plan = ( arabic_fallback_plan_t * ) hb_atomic_ptr_get ( & arabic_plan -> fallback_plan ) ;\n if ( unlikely ( ! fallback_plan ) ) {\n fallback_plan = arabic_fallback_plan_create ( plan , font ) ;\n if ( unlikely ( ! hb_atomic_ptr_cmpexch ( & ( const_cast < arabic_shape_plan_t * > ( arabic_plan ) ) -> fallback_plan , NULL , fallback_plan ) ) ) {\n arabic_fallback_plan_destroy ( fallback_plan ) ;\n goto retry ;\n }\n }\n arabic_fallback_plan_shape ( fallback_plan , font , buffer ) ;\n }"}
{"idx": 17709, "target": 0, "func": "static void xhci_process_commands ( XHCIState * xhci ) {\n XHCITRB trb ;\n TRBType type ;\n XHCIEvent event = {\n ER_COMMAND_COMPLETE , CC_SUCCESS }\n ;\n dma_addr_t addr ;\n unsigned int i , slotid = 0 ;\n DPRINTF ( \"xhci_process_commands()\\n\" ) ;\n if ( ! xhci_running ( xhci ) ) {\n DPRINTF ( \"xhci_process_commands() called while xHC stopped or paused\\n\" ) ;\n return ;\n }\n xhci -> crcr_low |= CRCR_CRR ;\n while ( ( type = xhci_ring_fetch ( xhci , & xhci -> cmd_ring , & trb , & addr ) ) ) {\n event . ptr = addr ;\n switch ( type ) {\n case CR_ENABLE_SLOT : for ( i = 0 ;\n i < xhci -> numslots ;\n i ++ ) {\n if ( ! xhci -> slots [ i ] . enabled ) {\n break ;\n }\n }\n if ( i >= xhci -> numslots ) {\n DPRINTF ( \"xhci: no device slots available\\n\" ) ;\n event . ccode = CC_NO_SLOTS_ERROR ;\n }\n else {\n slotid = i + 1 ;\n event . ccode = xhci_enable_slot ( xhci , slotid ) ;\n }\n break ;\n case CR_DISABLE_SLOT : slotid = xhci_get_slot ( xhci , & event , & trb ) ;\n if ( slotid ) {\n event . ccode = xhci_disable_slot ( xhci , slotid ) ;\n }\n break ;\n case CR_ADDRESS_DEVICE : slotid = xhci_get_slot ( xhci , & event , & trb ) ;\n if ( slotid ) {\n event . ccode = xhci_address_slot ( xhci , slotid , trb . parameter , trb . control & TRB_CR_BSR ) ;\n }\n break ;\n case CR_CONFIGURE_ENDPOINT : slotid = xhci_get_slot ( xhci , & event , & trb ) ;\n if ( slotid ) {\n event . ccode = xhci_configure_slot ( xhci , slotid , trb . parameter , trb . control & TRB_CR_DC ) ;\n }\n break ;\n case CR_EVALUATE_CONTEXT : slotid = xhci_get_slot ( xhci , & event , & trb ) ;\n if ( slotid ) {\n event . ccode = xhci_evaluate_slot ( xhci , slotid , trb . parameter ) ;\n }\n break ;\n case CR_STOP_ENDPOINT : slotid = xhci_get_slot ( xhci , & event , & trb ) ;\n if ( slotid ) {\n unsigned int epid = ( trb . control >> TRB_CR_EPID_SHIFT ) & TRB_CR_EPID_MASK ;\n event . ccode = xhci_stop_ep ( xhci , slotid , epid ) ;\n }\n break ;\n case CR_RESET_ENDPOINT : slotid = xhci_get_slot ( xhci , & event , & trb ) ;\n if ( slotid ) {\n unsigned int epid = ( trb . control >> TRB_CR_EPID_SHIFT ) & TRB_CR_EPID_MASK ;\n event . ccode = xhci_reset_ep ( xhci , slotid , epid ) ;\n }\n break ;\n case CR_SET_TR_DEQUEUE : slotid = xhci_get_slot ( xhci , & event , & trb ) ;\n if ( slotid ) {\n unsigned int epid = ( trb . control >> TRB_CR_EPID_SHIFT ) & TRB_CR_EPID_MASK ;\n unsigned int streamid = ( trb . status >> 16 ) & 0xffff ;\n event . ccode = xhci_set_ep_dequeue ( xhci , slotid , epid , streamid , trb . parameter ) ;\n }\n break ;\n case CR_RESET_DEVICE : slotid = xhci_get_slot ( xhci , & event , & trb ) ;\n if ( slotid ) {\n event . ccode = xhci_reset_slot ( xhci , slotid ) ;\n }\n break ;\n case CR_GET_PORT_BANDWIDTH : event . ccode = xhci_get_port_bandwidth ( xhci , trb . parameter ) ;\n break ;\n case CR_VENDOR_VIA_CHALLENGE_RESPONSE : xhci_via_challenge ( xhci , trb . parameter ) ;\n break ;\n case CR_VENDOR_NEC_FIRMWARE_REVISION : event . type = 48 ;\n event . length = 0x3025 ;\n break ;\n case CR_VENDOR_NEC_CHALLENGE_RESPONSE : {\n uint32_t chi = trb . parameter >> 32 ;\n uint32_t clo = trb . parameter ;\n uint32_t val = xhci_nec_challenge ( chi , clo ) ;\n event . length = val & 0xFFFF ;\n event . epid = val >> 16 ;\n slotid = val >> 24 ;\n event . type = 48 ;\n }\n break ;\n default : trace_usb_xhci_unimplemented ( \"command\" , type ) ;\n event . ccode = CC_TRB_ERROR ;\n break ;\n }\n event . slotid = slotid ;\n xhci_event ( xhci , & event , 0 ) ;\n }\n }"}
{"idx": 17710, "target": 0, "func": "void vp9_idct4x4_16_add_c ( const tran_low_t * input , uint8_t * dest , int stride ) {\n tran_low_t out [ 4 * 4 ] ;\n tran_low_t * outptr = out ;\n int i , j ;\n tran_low_t temp_in [ 4 ] , temp_out [ 4 ] ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) {\n idct4 ( input , outptr ) ;\n input += 4 ;\n outptr += 4 ;\n }\n for ( i = 0 ;\n i < 4 ;\n ++ i ) {\n for ( j = 0 ;\n j < 4 ;\n ++ j ) temp_in [ j ] = out [ j * 4 + i ] ;\n idct4 ( temp_in , temp_out ) ;\n for ( j = 0 ;\n j < 4 ;\n ++ j ) dest [ j * stride + i ] = clip_pixel ( ROUND_POWER_OF_TWO ( temp_out [ j ] , 4 ) + dest [ j * stride + i ] ) ;\n }\n }"}
{"idx": 17711, "target": 0, "func": "const char * proto_registrar_get_name ( const int n ) {\n header_field_info * hfinfo ;\n PROTO_REGISTRAR_GET_NTH ( n , hfinfo ) ;\n return hfinfo -> name ;\n }"}
{"idx": 17712, "target": 0, "func": "void virtio_balloon_exit ( VirtIODevice * vdev ) {\n VirtIOBalloon * s = DO_UPCAST ( VirtIOBalloon , vdev , vdev ) ;\n qemu_remove_balloon_handler ( s ) ;\n unregister_savevm ( s -> qdev , \"virtio-balloon\" , s ) ;\n virtio_cleanup ( vdev ) ;\n }"}
{"idx": 17713, "target": 0, "func": "static int dissect_h245_OLC_forw_multiplexParameters ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_OLC_forw_multiplexParameters , OLC_forw_multiplexParameters_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 17714, "target": 0, "func": "static void kvm_mce_inject ( X86CPU * cpu , hwaddr paddr , int code ) {\n CPUState * cs = CPU ( cpu ) ;\n CPUX86State * env = & cpu -> env ;\n uint64_t status = MCI_STATUS_VAL | MCI_STATUS_UC | MCI_STATUS_EN | MCI_STATUS_MISCV | MCI_STATUS_ADDRV | MCI_STATUS_S ;\n uint64_t mcg_status = MCG_STATUS_MCIP ;\n int flags = 0 ;\n if ( code == BUS_MCEERR_AR ) {\n status |= MCI_STATUS_AR | 0x134 ;\n mcg_status |= MCG_STATUS_EIPV ;\n }\n else {\n status |= 0xc0 ;\n mcg_status |= MCG_STATUS_RIPV ;\n }\n flags = cpu_x86_support_mca_broadcast ( env ) ? MCE_INJECT_BROADCAST : 0 ;\n cpu_synchronize_state ( cs ) ;\n if ( env -> mcg_ext_ctl & MCG_EXT_CTL_LMCE_EN ) {\n mcg_status |= MCG_STATUS_LMCE ;\n flags = 0 ;\n }\n cpu_x86_inject_mce ( NULL , cpu , 9 , status , mcg_status , paddr , ( MCM_ADDR_PHYS << 6 ) | 0xc , flags ) ;\n }"}
{"idx": 17715, "target": 0, "func": "fz_colorspace * fz_new_icc_colorspace_from_stream ( fz_context * ctx , const char * name , fz_stream * in ) {\n fz_colorspace * cs = NULL ;\n fz_buffer * buffer = fz_read_all ( ctx , in , 1024 ) ;\n fz_try ( ctx ) cs = fz_new_icc_colorspace ( ctx , name , 0 , buffer ) ;\n fz_always ( ctx ) fz_drop_buffer ( ctx , buffer ) ;\n fz_catch ( ctx ) fz_rethrow ( ctx ) ;\n return cs ;\n }"}
{"idx": 17716, "target": 0, "func": "static void finish_commit ( struct commit * commit , void * data ) {\n if ( commit -> parents ) {\n free_commit_list ( commit -> parents ) ;\n commit -> parents = NULL ;\n }\n free_commit_buffer ( commit ) ;\n }"}
{"idx": 17717, "target": 0, "func": "static void test_decimal_bug ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND my_bind [ 1 ] ;\n char data [ 30 ] ;\n int rc ;\n my_bool is_null ;\n myheader ( \"test_decimal_bug\" ) ;\n mysql_autocommit ( mysql , TRUE ) ;\n rc = mysql_query ( mysql , \"drop table if exists test_decimal_bug\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table test_decimal_bug(c1 decimal(10, 2))\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into test_decimal_bug value(8), (10.22), (5.61)\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"select c1 from test_decimal_bug where c1= ?\" ) ;\n check_stmt ( stmt ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_NEWDECIMAL ;\n my_bind [ 0 ] . buffer = ( void * ) data ;\n my_bind [ 0 ] . buffer_length = 25 ;\n my_bind [ 0 ] . is_null = & is_null ;\n is_null = 0 ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n strmov ( data , \"8.0\" ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n data [ 0 ] = 0 ;\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n data: %s\" , data ) ;\n DIE_UNLESS ( strcmp ( data , \"8.00\" ) == 0 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n strmov ( data , \"5.61\" ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n data [ 0 ] = 0 ;\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n data: %s\" , data ) ;\n DIE_UNLESS ( strcmp ( data , \"5.61\" ) == 0 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n is_null = 1 ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n strmov ( data , \"10.22\" ) ;\n is_null = 0 ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n data [ 0 ] = 0 ;\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n data: %s\" , data ) ;\n DIE_UNLESS ( strcmp ( data , \"10.22\" ) == 0 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 17718, "target": 0, "func": "hb_bool_t hb_blob_is_immutable ( hb_blob_t * blob ) {\n return blob -> immutable ;\n }"}
{"idx": 17719, "target": 0, "func": "TSSslConnection TSVConnSSLConnectionGet ( TSVConn sslp ) {\n TSSslConnection ssl = nullptr ;\n NetVConnection * vc = reinterpret_cast < NetVConnection * > ( sslp ) ;\n SSLNetVConnection * ssl_vc = dynamic_cast < SSLNetVConnection * > ( vc ) ;\n if ( ssl_vc != nullptr ) {\n ssl = reinterpret_cast < TSSslConnection > ( ssl_vc -> ssl ) ;\n }\n return ssl ;\n }"}
{"idx": 17720, "target": 0, "func": "char * curl_maprintf ( const char * format , ... ) {\n va_list ap_save ;\n int retcode ;\n struct asprintf info ;\n info . buffer = NULL ;\n info . len = 0 ;\n info . alloc = 0 ;\n info . fail = 0 ;\n va_start ( ap_save , format ) ;\n retcode = dprintf_formatf ( & info , alloc_addbyter , format , ap_save ) ;\n va_end ( ap_save ) ;\n if ( ( - 1 == retcode ) || info . fail ) {\n if ( info . alloc ) free ( info . buffer ) ;\n return NULL ;\n }\n if ( info . alloc ) {\n info . buffer [ info . len ] = 0 ;\n return info . buffer ;\n }\n else return strdup ( \"\" ) ;\n }"}
{"idx": 17721, "target": 0, "func": "static int arith2_get_prob ( ArithCoder * c , int16_t * probs ) {\n int range = c -> high - c -> low + 1 , n = * probs ;\n int scale = av_log2 ( range ) - av_log2 ( n ) ;\n int i = 0 , val ;\n if ( n << scale > range ) scale -- ;\n n <<= scale ;\n val = arith2_get_scaled_value ( c -> value - c -> low , n , range ) >> scale ;\n while ( probs [ ++ i ] > val ) ;\n arith2_rescale_interval ( c , range , probs [ i ] << scale , probs [ i - 1 ] << scale , n ) ;\n return i ;\n }"}
{"idx": 17722, "target": 0, "func": "void evdns_search_add ( const char * domain ) {\n search_postfix_add ( domain ) ;\n }"}
{"idx": 17723, "target": 0, "func": "static char * suck_data ( char * data , int * store_len , Gif_Reader * grr ) {\n uint8_t len = gifgetbyte ( grr ) ;\n int total_len = 0 ;\n while ( len > 0 ) {\n Gif_ReArray ( data , char , total_len + len + 1 ) ;\n if ( ! data ) return 0 ;\n gifgetblock ( ( uint8_t * ) data + total_len , len , grr ) ;\n total_len += len ;\n data [ total_len ] = 0 ;\n len = gifgetbyte ( grr ) ;\n }\n if ( store_len ) * store_len = total_len ;\n return data ;\n }"}
{"idx": 17724, "target": 0, "func": "static __inline__ void * TLV_LIST_DATA ( struct tlv_list_desc * list ) {\n return TLV_DATA ( list -> tlv_ptr ) ;\n }"}
{"idx": 17725, "target": 1, "func": "void ff_h263_encode_mb ( MpegEncContext * s , int16_t block [ 6 ] [ 64 ] , int motion_x , int motion_y ) {\n int cbpc , cbpy , i , cbp , pred_x , pred_y ;\n int16_t pred_dc ;\n int16_t rec_intradc [ 6 ] ;\n int16_t * dc_ptr [ 6 ] ;\n const int interleaved_stats = ( s -> flags & CODEC_FLAG_PASS1 ) ;\n if ( ! s -> mb_intra ) {\n cbp = get_p_cbp ( s , block , motion_x , motion_y ) ;\n if ( ( cbp | motion_x | motion_y | s -> dquant | ( s -> mv_type - MV_TYPE_16X16 ) ) == 0 ) {\n put_bits ( & s -> pb , 1 , 1 ) ;\n if ( interleaved_stats ) {\n s -> misc_bits ++ ;\n s -> last_bits ++ ;\n }\n s -> skip_count ++ ;\n return ;\n }\n put_bits ( & s -> pb , 1 , 0 ) ;\n cbpc = cbp & 3 ;\n cbpy = cbp >> 2 ;\n if ( s -> alt_inter_vlc == 0 || cbpc != 3 ) cbpy ^= 0xF ;\n if ( s -> dquant ) cbpc += 8 ;\n if ( s -> mv_type == MV_TYPE_16X16 ) {\n put_bits ( & s -> pb , ff_h263_inter_MCBPC_bits [ cbpc ] , ff_h263_inter_MCBPC_code [ cbpc ] ) ;\n put_bits ( & s -> pb , ff_h263_cbpy_tab [ cbpy ] [ 1 ] , ff_h263_cbpy_tab [ cbpy ] [ 0 ] ) ;\n if ( s -> dquant ) put_bits ( & s -> pb , 2 , dquant_code [ s -> dquant + 2 ] ) ;\n if ( interleaved_stats ) {\n s -> misc_bits += get_bits_diff ( s ) ;\n }\n ff_h263_pred_motion ( s , 0 , 0 , & pred_x , & pred_y ) ;\n if ( ! s -> umvplus ) {\n ff_h263_encode_motion_vector ( s , motion_x - pred_x , motion_y - pred_y , 1 ) ;\n }\n else {\n h263p_encode_umotion ( s , motion_x - pred_x ) ;\n h263p_encode_umotion ( s , motion_y - pred_y ) ;\n if ( ( ( motion_x - pred_x ) == 1 ) && ( ( motion_y - pred_y ) == 1 ) ) put_bits ( & s -> pb , 1 , 1 ) ;\n }\n }\n else {\n put_bits ( & s -> pb , ff_h263_inter_MCBPC_bits [ cbpc + 16 ] , ff_h263_inter_MCBPC_code [ cbpc + 16 ] ) ;\n put_bits ( & s -> pb , ff_h263_cbpy_tab [ cbpy ] [ 1 ] , ff_h263_cbpy_tab [ cbpy ] [ 0 ] ) ;\n if ( s -> dquant ) put_bits ( & s -> pb , 2 , dquant_code [ s -> dquant + 2 ] ) ;\n if ( interleaved_stats ) {\n s -> misc_bits += get_bits_diff ( s ) ;\n }\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n ff_h263_pred_motion ( s , i , 0 , & pred_x , & pred_y ) ;\n motion_x = s -> current_picture . f . motion_val [ 0 ] [ s -> block_index [ i ] ] [ 0 ] ;\n motion_y = s -> current_picture . f . motion_val [ 0 ] [ s -> block_index [ i ] ] [ 1 ] ;\n if ( ! s -> umvplus ) {\n ff_h263_encode_motion_vector ( s , motion_x - pred_x , motion_y - pred_y , 1 ) ;\n }\n else {\n h263p_encode_umotion ( s , motion_x - pred_x ) ;\n h263p_encode_umotion ( s , motion_y - pred_y ) ;\n if ( ( ( motion_x - pred_x ) == 1 ) && ( ( motion_y - pred_y ) == 1 ) ) put_bits ( & s -> pb , 1 , 1 ) ;\n }\n }\n }\n if ( interleaved_stats ) {\n s -> mv_bits += get_bits_diff ( s ) ;\n }\n }\n else {\n assert ( s -> mb_intra ) ;\n cbp = 0 ;\n if ( s -> h263_aic ) {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n int16_t level = block [ i ] [ 0 ] ;\n int scale ;\n if ( i < 4 ) scale = s -> y_dc_scale ;\n else scale = s -> c_dc_scale ;\n pred_dc = ff_h263_pred_dc ( s , i , & dc_ptr [ i ] ) ;\n level -= pred_dc ;\n if ( level >= 0 ) level = ( level + ( scale >> 1 ) ) / scale ;\n else level = ( level - ( scale >> 1 ) ) / scale ;\n if ( level == 0 && s -> block_last_index [ i ] == 0 ) s -> block_last_index [ i ] = - 1 ;\n if ( ! s -> modified_quant ) {\n if ( level < - 127 ) level = - 127 ;\n else if ( level > 127 ) level = 127 ;\n }\n block [ i ] [ 0 ] = level ;\n rec_intradc [ i ] = scale * level + pred_dc ;\n rec_intradc [ i ] |= 1 ;\n if ( rec_intradc [ i ] < 0 ) rec_intradc [ i ] = 0 ;\n else if ( rec_intradc [ i ] > 2047 ) rec_intradc [ i ] = 2047 ;\n * dc_ptr [ i ] = rec_intradc [ i ] ;\n if ( s -> block_last_index [ i ] >= 0 ) cbp |= 1 << ( 5 - i ) ;\n }\n }\n else {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( s -> block_last_index [ i ] >= 1 ) cbp |= 1 << ( 5 - i ) ;\n }\n }\n cbpc = cbp & 3 ;\n if ( s -> pict_type == AV_PICTURE_TYPE_I ) {\n if ( s -> dquant ) cbpc += 4 ;\n put_bits ( & s -> pb , ff_h263_intra_MCBPC_bits [ cbpc ] , ff_h263_intra_MCBPC_code [ cbpc ] ) ;\n }\n else {\n if ( s -> dquant ) cbpc += 8 ;\n put_bits ( & s -> pb , 1 , 0 ) ;\n put_bits ( & s -> pb , ff_h263_inter_MCBPC_bits [ cbpc + 4 ] , ff_h263_inter_MCBPC_code [ cbpc + 4 ] ) ;\n }\n if ( s -> h263_aic ) {\n put_bits ( & s -> pb , 1 , 0 ) ;\n }\n cbpy = cbp >> 2 ;\n put_bits ( & s -> pb , ff_h263_cbpy_tab [ cbpy ] [ 1 ] , ff_h263_cbpy_tab [ cbpy ] [ 0 ] ) ;\n if ( s -> dquant ) put_bits ( & s -> pb , 2 , dquant_code [ s -> dquant + 2 ] ) ;\n if ( interleaved_stats ) {\n s -> misc_bits += get_bits_diff ( s ) ;\n }\n }\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n h263_encode_block ( s , block [ i ] , i ) ;\n if ( s -> h263_aic && s -> mb_intra ) {\n block [ i ] [ 0 ] = rec_intradc [ i ] ;\n }\n }\n if ( interleaved_stats ) {\n if ( ! s -> mb_intra ) {\n s -> p_tex_bits += get_bits_diff ( s ) ;\n s -> f_count ++ ;\n }\n else {\n s -> i_tex_bits += get_bits_diff ( s ) ;\n s -> i_count ++ ;\n }\n }\n }"}
{"idx": 17726, "target": 0, "func": "int curl_mfprintf ( FILE * whereto , const char * format , ... ) {\n int retcode ;\n va_list ap_save ;\n va_start ( ap_save , format ) ;\n retcode = dprintf_formatf ( whereto , fputc , format , ap_save ) ;\n va_end ( ap_save ) ;\n return retcode ;\n }"}
{"idx": 17727, "target": 0, "func": "int TSMimeHdrFieldLengthGet ( TSMBuffer bufp , TSMLoc hdr , TSMLoc field ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( hdr ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( hdr ) == TS_SUCCESS ) ) ;\n sdk_assert ( sdk_sanity_check_field_handle ( field , hdr ) == TS_SUCCESS ) ;\n MIMEFieldSDKHandle * handle = ( MIMEFieldSDKHandle * ) field ;\n return mime_field_length_get ( handle -> field_ptr ) ;\n }"}
{"idx": 17728, "target": 0, "func": "static int lbmpdm_get_segment_length ( tvbuff_t * tvb , int offset , int encoding , int * data_length ) {\n guint32 datalen = 0 ;\n int seglen = 0 ;\n datalen = lbmpdm_fetch_uint32_encoded ( tvb , offset + O_LBMPDM_SEG_HDR_T_LEN , encoding ) ;\n seglen = ( ( int ) datalen ) + L_LBMPDM_SEG_HDR_T ;\n * data_length = ( int ) datalen ;\n return ( seglen ) ;\n }"}
{"idx": 17729, "target": 0, "func": "bool get_typbyval ( Oid typid ) {\n HeapTuple tp ;\n tp = SearchSysCache1 ( TYPEOID , ObjectIdGetDatum ( typid ) ) ;\n if ( HeapTupleIsValid ( tp ) ) {\n Form_pg_type typtup = ( Form_pg_type ) GETSTRUCT ( tp ) ;\n bool result ;\n result = typtup -> typbyval ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }\n else return false ;\n }"}
{"idx": 17730, "target": 0, "func": "static void print_version ( void ) {\n set_server_version ( ) ;\n printf ( \"%s Ver %s for %s on %s (%s)\\n\" , my_progname , server_version , SYSTEM_TYPE , MACHINE_TYPE , MYSQL_COMPILATION_COMMENT ) ;\n }"}
{"idx": 17731, "target": 0, "func": "static int set_vt_partitioning ( VP9_COMP * cpi , void * data , BLOCK_SIZE bsize , int mi_row , int mi_col ) {\n VP9_COMMON * const cm = & cpi -> common ;\n variance_node vt ;\n const int block_width = num_8x8_blocks_wide_lookup [ bsize ] ;\n const int block_height = num_8x8_blocks_high_lookup [ bsize ] ;\n const int64_t threshold_multiplier = 25 ;\n int64_t threshold = threshold_multiplier * cpi -> common . base_qindex ;\n assert ( block_height == block_width ) ;\n tree_to_node ( data , bsize , & vt ) ;\n if ( mi_col + block_width / 2 < cm -> mi_cols && mi_row + block_height / 2 < cm -> mi_rows && vt . part_variances -> none . variance < threshold ) {\n set_block_size ( cpi , mi_row , mi_col , bsize ) ;\n return 1 ;\n }\n if ( mi_row + block_height / 2 < cm -> mi_rows && vt . part_variances -> vert [ 0 ] . variance < threshold && vt . part_variances -> vert [ 1 ] . variance < threshold ) {\n BLOCK_SIZE subsize = get_subsize ( bsize , PARTITION_VERT ) ;\n set_block_size ( cpi , mi_row , mi_col , subsize ) ;\n set_block_size ( cpi , mi_row , mi_col + block_width / 2 , subsize ) ;\n return 1 ;\n }\n if ( mi_col + block_width / 2 < cm -> mi_cols && vt . part_variances -> horz [ 0 ] . variance < threshold && vt . part_variances -> horz [ 1 ] . variance < threshold ) {\n BLOCK_SIZE subsize = get_subsize ( bsize , PARTITION_HORZ ) ;\n set_block_size ( cpi , mi_row , mi_col , subsize ) ;\n set_block_size ( cpi , mi_row + block_height / 2 , mi_col , subsize ) ;\n return 1 ;\n }\n return 0 ;\n }"}
{"idx": 17732, "target": 1, "func": "static int flac_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n FLACContext * s = avctx -> priv_data ;\n int bytes_read = 0 ;\n int ret ;\n * got_frame_ptr = 0 ;\n if ( s -> max_framesize == 0 ) {\n s -> max_framesize = ff_flac_get_max_frame_size ( s -> max_blocksize ? s -> max_blocksize : FLAC_MAX_BLOCKSIZE , FLAC_MAX_CHANNELS , 32 ) ;\n }\n if ( buf_size < FLAC_MIN_FRAME_SIZE ) return buf_size ;\n if ( AV_RB32 ( buf ) == MKBETAG ( 'f' , 'L' , 'a' , 'C' ) ) {\n if ( ! s -> got_streaminfo && parse_streaminfo ( s , buf , buf_size ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"invalid header\\n\" ) ;\n return - 1 ;\n }\n return get_metadata_size ( buf , buf_size ) ;\n }\n init_get_bits ( & s -> gb , buf , buf_size * 8 ) ;\n if ( decode_frame ( s ) < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"decode_frame() failed\\n\" ) ;\n return - 1 ;\n }\n bytes_read = ( get_bits_count ( & s -> gb ) + 7 ) / 8 ;\n frame -> nb_samples = s -> blocksize ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n s -> dsp . decorrelate [ s -> ch_mode ] ( frame -> data , s -> decoded , s -> channels , s -> blocksize , s -> sample_shift ) ;\n if ( bytes_read > buf_size ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"overread: %d\\n\" , bytes_read - buf_size ) ;\n return - 1 ;\n }\n if ( bytes_read < buf_size ) {\n av_log ( s -> avctx , AV_LOG_DEBUG , \"underread: %d orig size: %d\\n\" , buf_size - bytes_read , buf_size ) ;\n }\n * got_frame_ptr = 1 ;\n return bytes_read ;\n }"}
{"idx": 17733, "target": 0, "func": "static inline int compute_score ( struct sock * sk , struct net * net , unsigned short hnum , struct in6_addr * saddr , __be16 sport , struct in6_addr * daddr , __be16 dport , int dif ) {\n int score = - 1 ;\n if ( net_eq ( sock_net ( sk ) , net ) && udp_sk ( sk ) -> udp_port_hash == hnum && sk -> sk_family == PF_INET6 ) {\n struct ipv6_pinfo * np = inet6_sk ( sk ) ;\n struct inet_sock * inet = inet_sk ( sk ) ;\n score = 0 ;\n if ( inet -> inet_dport ) {\n if ( inet -> inet_dport != sport ) return - 1 ;\n score ++ ;\n }\n if ( ! ipv6_addr_any ( & np -> rcv_saddr ) ) {\n if ( ! ipv6_addr_equal ( & np -> rcv_saddr , daddr ) ) return - 1 ;\n score ++ ;\n }\n if ( ! ipv6_addr_any ( & np -> daddr ) ) {\n if ( ! ipv6_addr_equal ( & np -> daddr , saddr ) ) return - 1 ;\n score ++ ;\n }\n if ( sk -> sk_bound_dev_if ) {\n if ( sk -> sk_bound_dev_if != dif ) return - 1 ;\n score ++ ;\n }\n }\n return score ;\n }"}
{"idx": 17734, "target": 0, "func": "static void test_bug57058 ( ) {\n MYSQL_RES * res ;\n int rc ;\n DBUG_ENTER ( \"test_bug57058\" ) ;\n myheader ( \"test_bug57058\" ) ;\n rc = mysql_query ( mysql , \"set @@session.long_query_time=0.1\" ) ;\n myquery ( rc ) ;\n DIE_UNLESS ( ! ( mysql -> server_status & SERVER_QUERY_WAS_SLOW ) ) ;\n rc = mysql_query ( mysql , \"select sleep(1)\" ) ;\n myquery ( rc ) ;\n res = mysql_store_result ( mysql ) ;\n DIE_UNLESS ( mysql -> server_status & SERVER_QUERY_WAS_SLOW ) ;\n mysql_free_result ( res ) ;\n rc = mysql_query ( mysql , \"set @@session.long_query_time=default\" ) ;\n myquery ( rc ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 17735, "target": 0, "func": "void pdf_set_usecmap ( fz_context * ctx , pdf_cmap * cmap , pdf_cmap * usecmap ) {\n int i ;\n pdf_drop_cmap ( ctx , cmap -> usecmap ) ;\n cmap -> usecmap = pdf_keep_cmap ( ctx , usecmap ) ;\n if ( cmap -> codespace_len == 0 ) {\n cmap -> codespace_len = usecmap -> codespace_len ;\n for ( i = 0 ;\n i < usecmap -> codespace_len ;\n i ++ ) cmap -> codespace [ i ] = usecmap -> codespace [ i ] ;\n }\n }"}
{"idx": 17736, "target": 0, "func": "static int file_map_prot_check ( struct file * file , unsigned long prot , int shared ) {\n const struct cred * cred = current_cred ( ) ;\n int rc = 0 ;\n if ( default_noexec && ( prot & PROT_EXEC ) && ( ! file || IS_PRIVATE ( file_inode ( file ) ) || ( ! shared && ( prot & PROT_WRITE ) ) ) ) {\n rc = cred_has_perm ( cred , cred , PROCESS__EXECMEM ) ;\n if ( rc ) goto error ;\n }\n if ( file ) {\n u32 av = FILE__READ ;\n if ( shared && ( prot & PROT_WRITE ) ) av |= FILE__WRITE ;\n if ( prot & PROT_EXEC ) av |= FILE__EXECUTE ;\n return file_has_perm ( cred , file , av ) ;\n }\n error : return rc ;\n }"}
{"idx": 17737, "target": 0, "func": "static void purple_add_permit ( struct im_connection * ic , char * who ) {\n struct purple_data * pd = ic -> proto_data ;\n purple_privacy_permit_add ( pd -> account , who , FALSE ) ;\n }"}
{"idx": 17738, "target": 0, "func": "static int m_authenticate ( struct Client * client_p , struct Client * source_p , int parc , const char * parv [ ] ) {\n struct Client * agent_p = NULL ;\n struct Client * saslserv_p = NULL ;\n if ( ! IsCapable ( source_p , CLICAP_SASL ) ) return 0 ;\n if ( strlen ( client_p -> id ) == 3 ) {\n exit_client ( client_p , client_p , client_p , \"Mixing client and server protocol\" ) ;\n return 0 ;\n }\n if ( * parv [ 1 ] == ':' || strchr ( parv [ 1 ] , ' ' ) ) {\n exit_client ( client_p , client_p , client_p , \"Malformed AUTHENTICATE\" ) ;\n return 0 ;\n }\n saslserv_p = find_named_client ( ConfigFileEntry . sasl_service ) ;\n if ( saslserv_p == NULL || ! IsService ( saslserv_p ) ) {\n sendto_one ( source_p , form_str ( ERR_SASLABORTED ) , me . name , EmptyString ( source_p -> name ) ? \"*\" : source_p -> name ) ;\n return 0 ;\n }\n if ( source_p -> localClient -> sasl_complete ) {\n * source_p -> localClient -> sasl_agent = '\\0' ;\n source_p -> localClient -> sasl_complete = 0 ;\n }\n if ( strlen ( parv [ 1 ] ) > 400 ) {\n sendto_one ( source_p , form_str ( ERR_SASLTOOLONG ) , me . name , EmptyString ( source_p -> name ) ? \"*\" : source_p -> name ) ;\n return 0 ;\n }\n if ( ! * source_p -> id ) {\n strcpy ( source_p -> id , generate_uid ( ) ) ;\n add_to_id_hash ( source_p -> id , source_p ) ;\n }\n if ( * source_p -> localClient -> sasl_agent ) agent_p = find_id ( source_p -> localClient -> sasl_agent ) ;\n if ( agent_p == NULL ) {\n sendto_one ( saslserv_p , \":%s ENCAP %s SASL %s %s H %s %s\" , me . id , saslserv_p -> servptr -> name , source_p -> id , saslserv_p -> id , source_p -> host , source_p -> sockhost ) ;\n if ( ! strcmp ( parv [ 1 ] , \"EXTERNAL\" ) && source_p -> certfp != NULL ) sendto_one ( saslserv_p , \":%s ENCAP %s SASL %s %s S %s %s\" , me . id , saslserv_p -> servptr -> name , source_p -> id , saslserv_p -> id , parv [ 1 ] , source_p -> certfp ) ;\n else sendto_one ( saslserv_p , \":%s ENCAP %s SASL %s %s S %s\" , me . id , saslserv_p -> servptr -> name , source_p -> id , saslserv_p -> id , parv [ 1 ] ) ;\n rb_strlcpy ( source_p -> localClient -> sasl_agent , saslserv_p -> id , IDLEN ) ;\n }\n else sendto_one ( agent_p , \":%s ENCAP %s SASL %s %s C %s\" , me . id , agent_p -> servptr -> name , source_p -> id , agent_p -> id , parv [ 1 ] ) ;\n source_p -> localClient -> sasl_out ++ ;\n return 0 ;\n }"}
{"idx": 17739, "target": 0, "func": "static int dissect_h245_H235Mode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_H235Mode , H235Mode_sequence ) ;\n return offset ;\n }"}
{"idx": 17740, "target": 0, "func": "int util_query ( MYSQL * org_mysql , const char * query ) {\n MYSQL * mysql ;\n DBUG_ENTER ( \"util_query\" ) ;\n if ( ! ( mysql = cur_con -> util_mysql ) ) {\n DBUG_PRINT ( \"info\" , ( \"Creating util_mysql\" ) ) ;\n if ( ! ( mysql = mysql_init ( mysql ) ) ) die ( \"Failed in mysql_init()\" ) ;\n if ( opt_connect_timeout ) mysql_options ( mysql , MYSQL_OPT_CONNECT_TIMEOUT , ( void * ) & opt_connect_timeout ) ;\n mysql_options ( mysql , MYSQL_OPT_LOCAL_INFILE , 0 ) ;\n mysql_options ( mysql , MYSQL_OPT_NONBLOCK , 0 ) ;\n safe_connect ( mysql , \"util\" , org_mysql -> host , org_mysql -> user , org_mysql -> passwd , org_mysql -> db , org_mysql -> port , org_mysql -> unix_socket ) ;\n cur_con -> util_mysql = mysql ;\n }\n int ret = mysql_query ( mysql , query ) ;\n DBUG_RETURN ( ret ) ;\n }"}
{"idx": 17741, "target": 0, "func": "static int kex_agree_hostkey ( LIBSSH2_SESSION * session , unsigned long kex_flags , unsigned char * hostkey , unsigned long hostkey_len ) {\n const LIBSSH2_HOSTKEY_METHOD * * hostkeyp = libssh2_hostkey_methods ( ) ;\n unsigned char * s ;\n if ( session -> hostkey_prefs ) {\n s = ( unsigned char * ) session -> hostkey_prefs ;\n while ( s && * s ) {\n unsigned char * p = ( unsigned char * ) strchr ( ( char * ) s , ',' ) ;\n size_t method_len = ( p ? ( size_t ) ( p - s ) : strlen ( ( char * ) s ) ) ;\n if ( kex_agree_instr ( hostkey , hostkey_len , s , method_len ) ) {\n const LIBSSH2_HOSTKEY_METHOD * method = ( const LIBSSH2_HOSTKEY_METHOD * ) kex_get_method_by_name ( ( char * ) s , method_len , ( const LIBSSH2_COMMON_METHOD * * ) hostkeyp ) ;\n if ( ! method ) {\n return - 1 ;\n }\n if ( ( ( kex_flags & LIBSSH2_KEX_METHOD_FLAG_REQ_ENC_HOSTKEY ) == 0 ) || ( method -> encrypt ) ) {\n if ( ( ( kex_flags & LIBSSH2_KEX_METHOD_FLAG_REQ_SIGN_HOSTKEY ) == 0 ) || ( method -> sig_verify ) ) {\n session -> hostkey = method ;\n return 0 ;\n }\n }\n }\n s = p ? p + 1 : NULL ;\n }\n return - 1 ;\n }\n while ( hostkeyp && ( * hostkeyp ) && ( * hostkeyp ) -> name ) {\n s = kex_agree_instr ( hostkey , hostkey_len , ( unsigned char * ) ( * hostkeyp ) -> name , strlen ( ( * hostkeyp ) -> name ) ) ;\n if ( s ) {\n if ( ( ( kex_flags & LIBSSH2_KEX_METHOD_FLAG_REQ_ENC_HOSTKEY ) == 0 ) || ( ( * hostkeyp ) -> encrypt ) ) {\n if ( ( ( kex_flags & LIBSSH2_KEX_METHOD_FLAG_REQ_SIGN_HOSTKEY ) == 0 ) || ( ( * hostkeyp ) -> sig_verify ) ) {\n session -> hostkey = * hostkeyp ;\n return 0 ;\n }\n }\n }\n hostkeyp ++ ;\n }\n return - 1 ;\n }"}
{"idx": 17742, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( SessionRestorePageLoadMetricsBrowserTest , InitialVisibilityOfSingleRestoredTab ) {\n ui_test_utils : : NavigateToURL ( browser ( ) , GetTestURL ( ) ) ;\n histogram_tester_ . ExpectTotalCount ( page_load_metrics : : internal : : kPageLoadStartedInForeground , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( page_load_metrics : : internal : : kPageLoadStartedInForeground , true , 1 ) ;\n Browser * new_browser = QuitBrowserAndRestore ( browser ( ) ) ;\n ASSERT_NO_FATAL_FAILURE ( WaitForTabsToLoad ( new_browser ) ) ;\n histogram_tester_ . ExpectTotalCount ( page_load_metrics : : internal : : kPageLoadStartedInForeground , 2 ) ;\n histogram_tester_ . ExpectBucketCount ( page_load_metrics : : internal : : kPageLoadStartedInForeground , true , 2 ) ;\n }"}
{"idx": 17743, "target": 0, "func": "static void _slurm_rpc_update_job ( slurm_msg_t * msg ) {\n int error_code = SLURM_SUCCESS ;\n DEF_TIMERS ;\n job_desc_msg_t * job_desc_msg = ( job_desc_msg_t * ) msg -> data ;\n slurmctld_lock_t fed_read_lock = {\n NO_LOCK , NO_LOCK , NO_LOCK , NO_LOCK , READ_LOCK }\n ;\n slurmctld_lock_t job_write_lock = {\n READ_LOCK , WRITE_LOCK , WRITE_LOCK , READ_LOCK , READ_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n lock_slurmctld ( fed_read_lock ) ;\n if ( ! _route_msg_to_origin ( msg , job_desc_msg -> job_id_str , job_desc_msg -> job_id , uid ) ) {\n unlock_slurmctld ( fed_read_lock ) ;\n return ;\n }\n unlock_slurmctld ( fed_read_lock ) ;\n START_TIMER ;\n debug2 ( \"Processing RPC: REQUEST_UPDATE_JOB from uid=%d\" , uid ) ;\n if ( job_desc_msg -> user_id != NO_VAL ) {\n if ( ! validate_super_user ( uid ) ) {\n error_code = ESLURM_USER_ID_MISSING ;\n error ( \"Security violation, REQUEST_UPDATE_JOB RPC from uid=%d\" , uid ) ;\n slurm_send_rc_msg ( msg , error_code ) ;\n }\n else {\n uid = job_desc_msg -> user_id ;\n }\n }\n if ( error_code == SLURM_SUCCESS ) {\n int db_inx_max_cnt = 5 , i = 0 ;\n dump_job_desc ( job_desc_msg ) ;\n xstrtolower ( job_desc_msg -> account ) ;\n xstrtolower ( job_desc_msg -> wckey ) ;\n error_code = ESLURM_JOB_SETTING_DB_INX ;\n while ( error_code == ESLURM_JOB_SETTING_DB_INX ) {\n lock_slurmctld ( job_write_lock ) ;\n if ( job_desc_msg -> job_id_str ) error_code = update_job_str ( msg , uid ) ;\n else error_code = update_job ( msg , uid , true ) ;\n unlock_slurmctld ( job_write_lock ) ;\n if ( error_code == ESLURM_JOB_SETTING_DB_INX ) {\n if ( i >= db_inx_max_cnt ) {\n if ( job_desc_msg -> job_id_str ) {\n info ( \"%s: can't update job, waited %d seconds for job %s to get a db_index, but it hasn't happened yet. Giving up and informing the user\" , __func__ , db_inx_max_cnt , job_desc_msg -> job_id_str ) ;\n }\n else {\n info ( \"%s: can't update job, waited %d seconds for job %u to get a db_index, but it hasn't happened yet. Giving up and informing the user\" , __func__ , db_inx_max_cnt , job_desc_msg -> job_id ) ;\n }\n slurm_send_rc_msg ( msg , error_code ) ;\n break ;\n }\n i ++ ;\n if ( job_desc_msg -> job_id_str ) {\n debug ( \"%s: We cannot update job %s at the moment, we are setting the db index, waiting\" , __func__ , job_desc_msg -> job_id_str ) ;\n }\n else {\n debug ( \"%s: We cannot update job %u at the moment, we are setting the db index, waiting\" , __func__ , job_desc_msg -> job_id ) ;\n }\n sleep ( 1 ) ;\n }\n }\n }\n END_TIMER2 ( \"_slurm_rpc_update_job\" ) ;\n if ( error_code ) {\n if ( job_desc_msg -> job_id_str ) {\n info ( \"%s: JobId=%s uid=%d: %s\" , __func__ , job_desc_msg -> job_id_str , uid , slurm_strerror ( error_code ) ) ;\n }\n else {\n info ( \"%s: JobId=%u uid=%d: %s\" , __func__ , job_desc_msg -> job_id , uid , slurm_strerror ( error_code ) ) ;\n }\n }\n else {\n if ( job_desc_msg -> job_id_str ) {\n info ( \"%s: complete JobId=%s uid=%d %s\" , __func__ , job_desc_msg -> job_id_str , uid , TIME_STR ) ;\n }\n else {\n info ( \"%s: complete JobId=%u uid=%d %s\" , __func__ , job_desc_msg -> job_id , uid , TIME_STR ) ;\n }\n schedule_job_save ( ) ;\n schedule_node_save ( ) ;\n queue_job_scheduler ( ) ;\n }\n }"}
{"idx": 17744, "target": 0, "func": "static void proto_tree_set_ax25_tvb ( field_info * fi , tvbuff_t * tvb , gint start ) {\n proto_tree_set_ax25 ( fi , tvb_get_ptr ( tvb , start , 7 ) ) ;\n }"}
{"idx": 17745, "target": 0, "func": "void nautilus_file_operations_extract_files ( GList * files , GFile * destination_directory , GtkWindow * parent_window , NautilusExtractCallback done_callback , gpointer done_callback_data ) {\n ExtractJob * extract_job ;\n g_autoptr ( GTask ) task = NULL ;\n extract_job = op_job_new ( ExtractJob , parent_window ) ;\n extract_job -> source_files = g_list_copy_deep ( files , ( GCopyFunc ) g_object_ref , NULL ) ;\n extract_job -> destination_directory = g_object_ref ( destination_directory ) ;\n extract_job -> done_callback = done_callback ;\n extract_job -> done_callback_data = done_callback_data ;\n inhibit_power_manager ( ( CommonJob * ) extract_job , _ ( \"Extracting Files\" ) ) ;\n if ( ! nautilus_file_undo_manager_is_operating ( ) ) {\n extract_job -> common . undo_info = nautilus_file_undo_info_extract_new ( files , destination_directory ) ;\n }\n task = g_task_new ( NULL , extract_job -> common . cancellable , extract_task_done , extract_job ) ;\n g_task_set_task_data ( task , extract_job , NULL ) ;\n g_task_run_in_thread ( task , extract_task_thread_func ) ;\n }"}
{"idx": 17746, "target": 0, "func": "int xmlListPushBack ( xmlListPtr l , void * data ) {\n xmlLinkPtr lkPlace , lkNew ;\n if ( l == NULL ) return ( 0 ) ;\n lkPlace = l -> sentinel -> prev ;\n if ( NULL == ( lkNew = ( xmlLinkPtr ) xmlMalloc ( sizeof ( xmlLink ) ) ) ) {\n xmlGenericError ( xmlGenericErrorContext , \"Cannot initialize memory for new link\" ) ;\n return ( 0 ) ;\n }\n lkNew -> data = data ;\n lkNew -> next = lkPlace -> next ;\n ( lkPlace -> next ) -> prev = lkNew ;\n lkPlace -> next = lkNew ;\n lkNew -> prev = lkPlace ;\n return 1 ;\n }"}
{"idx": 17747, "target": 0, "func": "static int32_t u_scanf_char_handler ( UFILE * input , u_scanf_spec_info * info , ufmt_args * args , const UChar * fmt , int32_t * fmtConsumed , int32_t * argConverted ) {\n if ( info -> fWidth < 0 ) {\n info -> fWidth = 1 ;\n }\n info -> fIsString = FALSE ;\n return u_scanf_string_handler ( input , info , args , fmt , fmtConsumed , argConverted ) ;\n }"}
{"idx": 17748, "target": 0, "func": "static int dissect_h245_T_unsigned32Max ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 834 \"../../asn1/h245/h245.cnf\" guint32 value ;\n guint8 * buf ;\n tvbuff_t * value_tvb ;\n gef_ctx_t * gefx ;\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 4294967295U , & value , FALSE ) ;\n gefx = gef_ctx_get ( actx -> private_data ) ;\n if ( gefx ) {\n buf = ( guint8 * ) wmem_new ( actx -> pinfo -> pool , guint32 ) ;\n phton32 ( buf , value ) ;\n value_tvb = tvb_new_child_real_data ( tvb , buf , sizeof ( guint32 ) , sizeof ( guint32 ) ) ;\n add_new_data_source ( actx -> pinfo , value_tvb , \"unsigned32Max\" ) ;\n dissector_try_string ( gef_content_dissector_table , gefx -> key , value_tvb , actx -> pinfo , tree , actx ) ;\n }\n return offset ;\n }"}
{"idx": 17749, "target": 0, "func": "void jpc_quantize ( jas_matrix_t * data , jpc_fix_t stepsize ) {\n int i ;\n int j ;\n jpc_fix_t t ;\n if ( stepsize == jpc_inttofix ( 1 ) ) {\n return ;\n }\n for ( i = 0 ;\n i < jas_matrix_numrows ( data ) ;\n ++ i ) {\n for ( j = 0 ;\n j < jas_matrix_numcols ( data ) ;\n ++ j ) {\n t = jas_matrix_get ( data , i , j ) ;\n {\n if ( t < 0 ) {\n t = jpc_fix_neg ( jpc_fix_div ( jpc_fix_neg ( t ) , stepsize ) ) ;\n }\n else {\n t = jpc_fix_div ( t , stepsize ) ;\n }\n }\n jas_matrix_set ( data , i , j , t ) ;\n }\n }\n }"}
{"idx": 17750, "target": 0, "func": "int tm_dealloc ( tm_node_id node , tm_event_t * event ) {\n if ( ! init_done ) return TM_BADINIT ;\n return TM_ENOTIMPLEMENTED ;\n }"}
{"idx": 17751, "target": 0, "func": "static bool config_filter_match_service ( const struct config_filter * mask , const struct config_filter * filter ) {\n if ( mask -> service != NULL ) {\n if ( filter -> service == NULL ) return FALSE ;\n if ( mask -> service [ 0 ] == '!' ) {\n if ( strcmp ( filter -> service , mask -> service + 1 ) == 0 ) return FALSE ;\n }\n else {\n if ( strcmp ( filter -> service , mask -> service ) != 0 ) return FALSE ;\n }\n }\n return TRUE ;\n }"}
{"idx": 17752, "target": 0, "func": "ssize_t e1000e_receive_iov ( E1000ECore * core , const struct iovec * iov , int iovcnt ) {\n static const int maximum_ethernet_hdr_len = ( 14 + 4 ) ;\n static const int min_buf_size = 60 ;\n uint32_t n = 0 ;\n uint8_t min_buf [ min_buf_size ] ;\n struct iovec min_iov ;\n uint8_t * filter_buf ;\n size_t size , orig_size ;\n size_t iov_ofs = 0 ;\n E1000E_RxRing rxr ;\n E1000E_RSSInfo rss_info ;\n size_t total_size ;\n ssize_t retval ;\n bool rdmts_hit ;\n trace_e1000e_rx_receive_iov ( iovcnt ) ;\n if ( ! e1000x_hw_rx_enabled ( core -> mac ) ) {\n return - 1 ;\n }\n if ( core -> has_vnet ) {\n net_rx_pkt_set_vhdr_iovec ( core -> rx_pkt , iov , iovcnt ) ;\n iov_ofs = sizeof ( struct virtio_net_hdr ) ;\n }\n filter_buf = iov -> iov_base + iov_ofs ;\n orig_size = iov_size ( iov , iovcnt ) ;\n size = orig_size - iov_ofs ;\n if ( size < sizeof ( min_buf ) ) {\n iov_to_buf ( iov , iovcnt , iov_ofs , min_buf , size ) ;\n memset ( & min_buf [ size ] , 0 , sizeof ( min_buf ) - size ) ;\n e1000x_inc_reg_if_not_full ( core -> mac , RUC ) ;\n min_iov . iov_base = filter_buf = min_buf ;\n min_iov . iov_len = size = sizeof ( min_buf ) ;\n iovcnt = 1 ;\n iov = & min_iov ;\n iov_ofs = 0 ;\n }\n else if ( iov -> iov_len < maximum_ethernet_hdr_len ) {\n iov_to_buf ( iov , iovcnt , iov_ofs , min_buf , maximum_ethernet_hdr_len ) ;\n filter_buf = min_buf ;\n }\n if ( e1000x_is_oversized ( core -> mac , size ) ) {\n return orig_size ;\n }\n net_rx_pkt_set_packet_type ( core -> rx_pkt , get_eth_packet_type ( PKT_GET_ETH_HDR ( filter_buf ) ) ) ;\n if ( ! e1000e_receive_filter ( core , filter_buf , size ) ) {\n trace_e1000e_rx_flt_dropped ( ) ;\n return orig_size ;\n }\n net_rx_pkt_attach_iovec_ex ( core -> rx_pkt , iov , iovcnt , iov_ofs , e1000x_vlan_enabled ( core -> mac ) , core -> vet ) ;\n e1000e_rss_parse_packet ( core , core -> rx_pkt , & rss_info ) ;\n e1000e_rx_ring_init ( core , & rxr , rss_info . queue ) ;\n trace_e1000e_rx_rss_dispatched_to_queue ( rxr . i -> idx ) ;\n total_size = net_rx_pkt_get_total_len ( core -> rx_pkt ) + e1000x_fcs_len ( core -> mac ) ;\n if ( e1000e_has_rxbufs ( core , rxr . i , total_size ) ) {\n e1000e_rx_fix_l4_csum ( core , core -> rx_pkt ) ;\n e1000e_write_packet_to_guest ( core , core -> rx_pkt , & rxr , & rss_info ) ;\n retval = orig_size ;\n if ( total_size < core -> mac [ RSRPD ] ) {\n n |= E1000_ICS_SRPD ;\n }\n if ( ! ( core -> mac [ RFCTL ] & E1000_RFCTL_ACK_DIS ) && ( e1000e_is_tcp_ack ( core , core -> rx_pkt ) ) ) {\n n |= E1000_ICS_ACK ;\n }\n rdmts_hit = e1000e_rx_descr_threshold_hit ( core , rxr . i ) ;\n n |= e1000e_rx_wb_interrupt_cause ( core , rxr . i -> idx , rdmts_hit ) ;\n trace_e1000e_rx_written_to_guest ( n ) ;\n }\n else {\n n |= E1000_ICS_RXO ;\n retval = 0 ;\n trace_e1000e_rx_not_written_to_guest ( n ) ;\n }\n if ( ! e1000e_intrmgr_delay_rx_causes ( core , & n ) ) {\n trace_e1000e_rx_interrupt_set ( n ) ;\n e1000e_set_interrupt_cause ( core , n ) ;\n }\n else {\n trace_e1000e_rx_interrupt_delayed ( n ) ;\n }\n return retval ;\n }"}
{"idx": 17753, "target": 0, "func": "static int dissect_type_bitmap ( proto_tree * rr_tree , tvbuff_t * tvb , int cur_offset , int rr_len ) {\n int mask , blockbase , blocksize ;\n int i , initial_offset , rr_type ;\n guint8 bits ;\n initial_offset = cur_offset ;\n while ( rr_len != 0 ) {\n blockbase = tvb_get_guint8 ( tvb , cur_offset ) ;\n blocksize = tvb_get_guint8 ( tvb , cur_offset + 1 ) ;\n cur_offset += 2 ;\n rr_len -= 2 ;\n rr_type = blockbase * 256 ;\n for ( ;\n blocksize ;\n blocksize -- ) {\n bits = tvb_get_guint8 ( tvb , cur_offset ) ;\n mask = 1 << 7 ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n if ( bits & mask ) {\n proto_tree_add_uint_format ( rr_tree , hf_dns_rr_type , tvb , cur_offset , 1 , rr_type , \"RR type in bit map: %s\" , val_to_str_ext ( rr_type , & dns_types_description_vals_ext , \"Unknown (%d)\" ) ) ;\n }\n mask >>= 1 ;\n rr_type ++ ;\n }\n cur_offset += 1 ;\n rr_len -= 1 ;\n }\n }\n return ( initial_offset - cur_offset ) ;\n }"}
{"idx": 17754, "target": 0, "func": "static void clamp_lab ( const fz_colorspace * cs , const float * src , float * dst ) {\n int i ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) dst [ i ] = fz_clamp ( src [ i ] , i ? - 128 : 0 , i ? 127 : 100 ) ;\n }"}
{"idx": 17755, "target": 0, "func": "int event_priority_init ( int npriorities ) {\n return event_base_priority_init ( current_base , npriorities ) ;\n }"}
{"idx": 17756, "target": 0, "func": "int vp9_block_energy ( VP9_COMP * cpi , MACROBLOCK * x , BLOCK_SIZE bs ) {\n double energy ;\n unsigned int var = block_variance ( cpi , x , bs ) ;\n vp9_clear_system_state ( ) ;\n energy = 0.9 * ( log ( var + 1.0 ) - 10.0 ) ;\n return clamp ( ( int ) round ( energy ) , ENERGY_MIN , ENERGY_MAX ) ;\n }"}
{"idx": 17757, "target": 0, "func": "void proto_add_heuristic_dissector ( protocol_t * protocol , const char * short_name ) {\n heur_dtbl_entry_t * heuristic_dissector ;\n if ( protocol == NULL ) return ;\n heuristic_dissector = find_heur_dissector_by_unique_short_name ( short_name ) ;\n if ( heuristic_dissector != NULL ) {\n protocol -> heur_list = g_list_append ( protocol -> heur_list , heuristic_dissector ) ;\n }\n }"}
{"idx": 17758, "target": 0, "func": "static void vc1_decode_i_blocks ( VC1Context * v ) {\n int k , j ;\n MpegEncContext * s = & v -> s ;\n int cbp , val ;\n uint8_t * coded_val ;\n int mb_pos ;\n switch ( v -> y_ac_table_index ) {\n case 0 : v -> codingset = ( v -> pqindex <= 8 ) ? CS_HIGH_RATE_INTRA : CS_LOW_MOT_INTRA ;\n break ;\n case 1 : v -> codingset = CS_HIGH_MOT_INTRA ;\n break ;\n case 2 : v -> codingset = CS_MID_RATE_INTRA ;\n break ;\n }\n switch ( v -> c_ac_table_index ) {\n case 0 : v -> codingset2 = ( v -> pqindex <= 8 ) ? CS_HIGH_RATE_INTER : CS_LOW_MOT_INTER ;\n break ;\n case 1 : v -> codingset2 = CS_HIGH_MOT_INTER ;\n break ;\n case 2 : v -> codingset2 = CS_MID_RATE_INTER ;\n break ;\n }\n s -> y_dc_scale = s -> y_dc_scale_table [ v -> pq ] ;\n s -> c_dc_scale = s -> c_dc_scale_table [ v -> pq ] ;\n s -> mb_x = s -> mb_y = 0 ;\n s -> mb_intra = 1 ;\n s -> first_slice_line = 1 ;\n for ( s -> mb_y = 0 ;\n s -> mb_y < s -> end_mb_y ;\n s -> mb_y ++ ) {\n s -> mb_x = 0 ;\n ff_init_block_index ( s ) ;\n for ( ;\n s -> mb_x < v -> end_mb_x ;\n s -> mb_x ++ ) {\n uint8_t * dst [ 6 ] ;\n ff_update_block_index ( s ) ;\n dst [ 0 ] = s -> dest [ 0 ] ;\n dst [ 1 ] = dst [ 0 ] + 8 ;\n dst [ 2 ] = s -> dest [ 0 ] + s -> linesize * 8 ;\n dst [ 3 ] = dst [ 2 ] + 8 ;\n dst [ 4 ] = s -> dest [ 1 ] ;\n dst [ 5 ] = s -> dest [ 2 ] ;\n s -> dsp . clear_blocks ( s -> block [ 0 ] ) ;\n mb_pos = s -> mb_x + s -> mb_y * s -> mb_width ;\n s -> current_picture . mb_type [ mb_pos ] = MB_TYPE_INTRA ;\n s -> current_picture . qscale_table [ mb_pos ] = v -> pq ;\n s -> current_picture . motion_val [ 1 ] [ s -> block_index [ 0 ] ] [ 0 ] = 0 ;\n s -> current_picture . motion_val [ 1 ] [ s -> block_index [ 0 ] ] [ 1 ] = 0 ;\n cbp = get_vlc2 ( & v -> s . gb , ff_msmp4_mb_i_vlc . table , MB_INTRA_VLC_BITS , 2 ) ;\n v -> s . ac_pred = get_bits1 ( & v -> s . gb ) ;\n for ( k = 0 ;\n k < 6 ;\n k ++ ) {\n val = ( ( cbp >> ( 5 - k ) ) & 1 ) ;\n if ( k < 4 ) {\n int pred = vc1_coded_block_pred ( & v -> s , k , & coded_val ) ;\n val = val ^ pred ;\n * coded_val = val ;\n }\n cbp |= val << ( 5 - k ) ;\n vc1_decode_i_block ( v , s -> block [ k ] , k , val , ( k < 4 ) ? v -> codingset : v -> codingset2 ) ;\n if ( k > 3 && ( s -> flags & CODEC_FLAG_GRAY ) ) continue ;\n v -> vc1dsp . vc1_inv_trans_8x8 ( s -> block [ k ] ) ;\n if ( v -> pq >= 9 && v -> overlap ) {\n if ( v -> rangeredfrm ) for ( j = 0 ;\n j < 64 ;\n j ++ ) s -> block [ k ] [ j ] <<= 1 ;\n s -> dsp . put_signed_pixels_clamped ( s -> block [ k ] , dst [ k ] , k & 4 ? s -> uvlinesize : s -> linesize ) ;\n }\n else {\n if ( v -> rangeredfrm ) for ( j = 0 ;\n j < 64 ;\n j ++ ) s -> block [ k ] [ j ] = ( s -> block [ k ] [ j ] - 64 ) << 1 ;\n s -> dsp . put_pixels_clamped ( s -> block [ k ] , dst [ k ] , k & 4 ? s -> uvlinesize : s -> linesize ) ;\n }\n }\n if ( v -> pq >= 9 && v -> overlap ) {\n if ( s -> mb_x ) {\n v -> vc1dsp . vc1_h_overlap ( s -> dest [ 0 ] , s -> linesize ) ;\n v -> vc1dsp . vc1_h_overlap ( s -> dest [ 0 ] + 8 * s -> linesize , s -> linesize ) ;\n if ( ! ( s -> flags & CODEC_FLAG_GRAY ) ) {\n v -> vc1dsp . vc1_h_overlap ( s -> dest [ 1 ] , s -> uvlinesize ) ;\n v -> vc1dsp . vc1_h_overlap ( s -> dest [ 2 ] , s -> uvlinesize ) ;\n }\n }\n v -> vc1dsp . vc1_h_overlap ( s -> dest [ 0 ] + 8 , s -> linesize ) ;\n v -> vc1dsp . vc1_h_overlap ( s -> dest [ 0 ] + 8 * s -> linesize + 8 , s -> linesize ) ;\n if ( ! s -> first_slice_line ) {\n v -> vc1dsp . vc1_v_overlap ( s -> dest [ 0 ] , s -> linesize ) ;\n v -> vc1dsp . vc1_v_overlap ( s -> dest [ 0 ] + 8 , s -> linesize ) ;\n if ( ! ( s -> flags & CODEC_FLAG_GRAY ) ) {\n v -> vc1dsp . vc1_v_overlap ( s -> dest [ 1 ] , s -> uvlinesize ) ;\n v -> vc1dsp . vc1_v_overlap ( s -> dest [ 2 ] , s -> uvlinesize ) ;\n }\n }\n v -> vc1dsp . vc1_v_overlap ( s -> dest [ 0 ] + 8 * s -> linesize , s -> linesize ) ;\n v -> vc1dsp . vc1_v_overlap ( s -> dest [ 0 ] + 8 * s -> linesize + 8 , s -> linesize ) ;\n }\n if ( v -> s . loop_filter ) vc1_loop_filter_iblk ( v , v -> pq ) ;\n if ( get_bits_count ( & s -> gb ) > v -> bits ) {\n ff_er_add_slice ( & s -> er , 0 , 0 , s -> mb_x , s -> mb_y , ER_MB_ERROR ) ;\n av_log ( s -> avctx , AV_LOG_ERROR , \"Bits overconsumption: %i > %i\\n\" , get_bits_count ( & s -> gb ) , v -> bits ) ;\n return ;\n }\n }\n if ( ! v -> s . loop_filter ) ff_mpeg_draw_horiz_band ( s , s -> mb_y * 16 , 16 ) ;\n else if ( s -> mb_y ) ff_mpeg_draw_horiz_band ( s , ( s -> mb_y - 1 ) * 16 , 16 ) ;\n s -> first_slice_line = 0 ;\n }\n if ( v -> s . loop_filter ) ff_mpeg_draw_horiz_band ( s , ( s -> end_mb_y - 1 ) * 16 , 16 ) ;\n ff_er_add_slice ( & s -> er , 0 , 0 , s -> mb_width - 1 , s -> mb_height - 1 , ER_MB_END ) ;\n }"}
{"idx": 17759, "target": 0, "func": "static void advertise_sasl ( struct Client * client_p ) {\n if ( ! ConfigFileEntry . sasl_service ) return ;\n if ( irccmp ( client_p -> name , ConfigFileEntry . sasl_service ) ) return ;\n sendto_local_clients_with_capability ( CLICAP_CAP_NOTIFY , \":%s CAP * NEW :sasl\" , me . name ) ;\n }"}
{"idx": 17760, "target": 0, "func": "void decoder_UnlinkPicture ( decoder_t * p_decoder , picture_t * p_picture ) {\n p_decoder -> pf_picture_unlink ( p_decoder , p_picture ) ;\n }"}
{"idx": 17761, "target": 0, "func": "const char * irc_ctcp_get_default_reply ( const char * ctcp ) {\n int i ;\n for ( i = 0 ;\n irc_ctcp_default_reply [ i ] . name ;\n i ++ ) {\n if ( weechat_strcasecmp ( irc_ctcp_default_reply [ i ] . name , ctcp ) == 0 ) return irc_ctcp_default_reply [ i ] . reply ;\n }\n return NULL ;\n }"}
{"idx": 17762, "target": 0, "func": "static void config_phone ( config_tree * ptree ) {\n int i ;\n string_node * sn ;\n i = 0 ;\n sn = HEAD_PFIFO ( ptree -> phone ) ;\n for ( ;\n sn != NULL ;\n sn = sn -> link ) {\n if ( i < COUNTOF ( sys_phone ) - 1 ) {\n sys_phone [ i ++ ] = estrdup ( sn -> s ) ;\n sys_phone [ i ] = NULL ;\n }\n else {\n msyslog ( LOG_INFO , \"phone: Number of phone entries exceeds %lu. Ignoring phone %s...\" , ( u_long ) ( COUNTOF ( sys_phone ) - 1 ) , sn -> s ) ;\n }\n }\n }"}
{"idx": 17763, "target": 1, "func": "static void dissect_q931_cause_ie_unsafe ( tvbuff_t * tvb , int offset , int len , proto_tree * tree , int hf_cause_value , guint8 * cause_value , const value_string * ie_vals ) {\n guint8 octet ;\n guint8 coding_standard ;\n guint8 rejection_reason ;\n if ( len == 0 ) return ;\n octet = tvb_get_guint8 ( tvb , offset ) ;\n coding_standard = octet & 0x60 ;\n if ( coding_standard != Q931_ITU_STANDARDIZED_CODING && ! g931_iso_iec_cause && coding_standard != Q931_ISO_IEC_STANDARDIZED_CODING ) {\n proto_tree_add_uint ( tree , hf_q931_coding_standard , tvb , offset , 1 , octet ) ;\n proto_tree_add_item ( tree , hf_q931_cause_data , tvb , offset , len , ENC_NA ) ;\n return ;\n }\n proto_tree_add_uint ( tree , hf_q931_cause_location , tvb , offset , 1 , octet ) ;\n proto_tree_add_uint ( tree , hf_q931_coding_standard , tvb , offset , 1 , octet ) ;\n proto_tree_add_boolean ( tree , hf_q931_extension_ind , tvb , offset , 1 , octet ) ;\n offset += 1 ;\n len -= 1 ;\n if ( ! ( octet & Q931_IE_VL_EXTENSION ) ) {\n if ( len == 0 ) return ;\n octet = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_q931_cause_recommendation , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_boolean ( tree , hf_q931_extension_ind , tvb , offset , 1 , octet ) ;\n offset += 1 ;\n len -= 1 ;\n }\n if ( len == 0 ) return ;\n octet = tvb_get_guint8 ( tvb , offset ) ;\n * cause_value = octet & 0x7F ;\n if ( have_valid_q931_pi ) {\n q931_pi -> cause_value = * cause_value ;\n }\n proto_tree_add_uint ( tree , hf_cause_value , tvb , offset , 1 , * cause_value ) ;\n proto_tree_add_boolean ( tree , hf_q931_extension_ind , tvb , offset , 1 , octet ) ;\n offset += 1 ;\n len -= 1 ;\n if ( len == 0 ) return ;\n switch ( * cause_value ) {\n case Q931_CAUSE_UNALLOC_NUMBER : case Q931_CAUSE_NO_ROUTE_TO_DEST : case Q931_CAUSE_QOS_UNAVAILABLE : proto_tree_add_item ( tree , hf_q931_network_service , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_q931_extension_condition_type , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_q931_extension_condition , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n break ;\n case Q931_CAUSE_CALL_REJECTED : rejection_reason = octet & 0x7C ;\n proto_tree_add_item ( tree , hf_q931_cause_call_rejection_reason , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_q931_cause_call_condition , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset += 1 ;\n len -= 1 ;\n if ( len == 0 ) return ;\n switch ( rejection_reason ) {\n case Q931_REJ_USER_SPECIFIC : proto_tree_add_item ( tree , hf_q931_cause_call_user_specific_diagnostic , tvb , offset , len , ENC_NA ) ;\n break ;\n case Q931_REJ_IE_MISSING : proto_tree_add_uint_format_value ( tree , hf_q931_missing_info_element , tvb , offset , 1 , tvb_get_guint8 ( tvb , offset ) , \"%s\" , val_to_str ( tvb_get_guint8 ( tvb , offset ) , ie_vals , \"Unknown (0x%02X)\" ) ) ;\n break ;\n case Q931_REJ_IE_INSUFFICIENT : proto_tree_add_uint_format_value ( tree , hf_q931_insufficient_info_element , tvb , offset , 1 , tvb_get_guint8 ( tvb , offset ) , \"%s\" , val_to_str ( tvb_get_guint8 ( tvb , offset ) , ie_vals , \"Unknown (0x%02X)\" ) ) ;\n break ;\n default : proto_tree_add_item ( tree , hf_q931_cause_call_diagnostic , tvb , offset , len , ENC_NA ) ;\n break ;\n }\n break ;\n case Q931_CAUSE_ACCESS_INFO_DISC : case Q931_CAUSE_INCOMPATIBLE_DEST : case Q931_CAUSE_MAND_IE_MISSING : case Q931_CAUSE_IE_NONEX_OR_UNIMPL : case Q931_CAUSE_INVALID_IE_CONTENTS : do {\n proto_tree_add_uint_format_value ( tree , hf_q931_information_element , tvb , offset , 1 , tvb_get_guint8 ( tvb , offset ) , \"%s\" , val_to_str ( tvb_get_guint8 ( tvb , offset ) , ie_vals , \"Unknown (0x%02X)\" ) ) ;\n offset += 1 ;\n len -= 1 ;\n }\n while ( len != 0 ) ;\n break ;\n case Q931_CAUSE_MT_NONEX_OR_UNIMPL : case Q931_CAUSE_MSG_INCOMPAT_W_CS : proto_tree_add_item ( tree , hf_q931_cause_call_message_type , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n break ;\n case Q931_CAUSE_REC_TIMER_EXP : if ( len < 3 ) return ;\n proto_tree_add_item ( tree , hf_q931_cause_call_rec_timer , tvb , offset , 3 , ENC_NA | ENC_ASCII ) ;\n break ;\n default : proto_tree_add_item ( tree , hf_q931_cause_call_diagnostic , tvb , offset , len , ENC_NA ) ;\n }\n }"}
{"idx": 17764, "target": 0, "func": "static void release_unused_pictures ( H264Context * h , int remove_current ) {\n int i ;\n for ( i = 0 ;\n i < MAX_PICTURE_COUNT ;\n i ++ ) {\n if ( h -> DPB [ i ] . f . buf [ 0 ] && ! h -> DPB [ i ] . reference && ( remove_current || & h -> DPB [ i ] != h -> cur_pic_ptr ) ) {\n unref_picture ( h , & h -> DPB [ i ] ) ;\n }\n }\n }"}
{"idx": 17765, "target": 0, "func": "static int estimate_qp ( MpegEncContext * s , int dry_run ) {\n if ( s -> next_lambda ) {\n s -> current_picture_ptr -> f . quality = s -> current_picture . f . quality = s -> next_lambda ;\n if ( ! dry_run ) s -> next_lambda = 0 ;\n }\n else if ( ! s -> fixed_qscale ) {\n s -> current_picture_ptr -> f . quality = s -> current_picture . f . quality = ff_rate_estimate_qscale ( s , dry_run ) ;\n if ( s -> current_picture . f . quality < 0 ) return - 1 ;\n }\n if ( s -> adaptive_quant ) {\n switch ( s -> codec_id ) {\n case AV_CODEC_ID_MPEG4 : if ( CONFIG_MPEG4_ENCODER ) ff_clean_mpeg4_qscales ( s ) ;\n break ;\n case AV_CODEC_ID_H263 : case AV_CODEC_ID_H263P : case AV_CODEC_ID_FLV1 : if ( CONFIG_H263_ENCODER ) ff_clean_h263_qscales ( s ) ;\n break ;\n default : ff_init_qscale_tab ( s ) ;\n }\n s -> lambda = s -> lambda_table [ 0 ] ;\n }\n else s -> lambda = s -> current_picture . f . quality ;\n update_qscale ( s ) ;\n return 0 ;\n }"}
{"idx": 17766, "target": 0, "func": "bool get_compatible_hash_operators ( Oid opno , Oid * lhs_opno , Oid * rhs_opno ) {\n bool result = false ;\n CatCList * catlist ;\n int i ;\n if ( lhs_opno ) * lhs_opno = InvalidOid ;\n if ( rhs_opno ) * rhs_opno = InvalidOid ;\n catlist = SearchSysCacheList1 ( AMOPOPID , ObjectIdGetDatum ( opno ) ) ;\n for ( i = 0 ;\n i < catlist -> n_members ;\n i ++ ) {\n HeapTuple tuple = & catlist -> members [ i ] -> tuple ;\n Form_pg_amop aform = ( Form_pg_amop ) GETSTRUCT ( tuple ) ;\n if ( aform -> amopmethod == HASH_AM_OID && aform -> amopstrategy == HTEqualStrategyNumber ) {\n if ( aform -> amoplefttype == aform -> amoprighttype ) {\n if ( lhs_opno ) * lhs_opno = opno ;\n if ( rhs_opno ) * rhs_opno = opno ;\n result = true ;\n break ;\n }\n if ( lhs_opno ) {\n * lhs_opno = get_opfamily_member ( aform -> amopfamily , aform -> amoplefttype , aform -> amoplefttype , HTEqualStrategyNumber ) ;\n if ( ! OidIsValid ( * lhs_opno ) ) continue ;\n if ( ! rhs_opno ) {\n result = true ;\n break ;\n }\n }\n if ( rhs_opno ) {\n * rhs_opno = get_opfamily_member ( aform -> amopfamily , aform -> amoprighttype , aform -> amoprighttype , HTEqualStrategyNumber ) ;\n if ( ! OidIsValid ( * rhs_opno ) ) {\n if ( lhs_opno ) * lhs_opno = InvalidOid ;\n continue ;\n }\n result = true ;\n break ;\n }\n }\n }\n ReleaseSysCacheList ( catlist ) ;\n return result ;\n }"}
{"idx": 17767, "target": 0, "func": "Datum neqjoinsel ( PG_FUNCTION_ARGS ) {\n PlannerInfo * root = ( PlannerInfo * ) PG_GETARG_POINTER ( 0 ) ;\n Oid operator = PG_GETARG_OID ( 1 ) ;\n List * args = ( List * ) PG_GETARG_POINTER ( 2 ) ;\n JoinType jointype = ( JoinType ) PG_GETARG_INT16 ( 3 ) ;\n SpecialJoinInfo * sjinfo = ( SpecialJoinInfo * ) PG_GETARG_POINTER ( 4 ) ;\n Oid eqop ;\n float8 result ;\n eqop = get_negator ( operator ) ;\n if ( eqop ) {\n result = DatumGetFloat8 ( DirectFunctionCall5 ( eqjoinsel , PointerGetDatum ( root ) , ObjectIdGetDatum ( eqop ) , PointerGetDatum ( args ) , Int16GetDatum ( jointype ) , PointerGetDatum ( sjinfo ) ) ) ;\n }\n else {\n result = DEFAULT_EQ_SEL ;\n }\n result = 1.0 - result ;\n PG_RETURN_FLOAT8 ( result ) ;\n }"}
{"idx": 17768, "target": 0, "func": "static void qmf_32_subbands ( DCAContext * s , int chans , float samples_in [ 32 ] [ 8 ] , float * samples_out , float scale ) {\n const float * prCoeff ;\n int i ;\n int sb_act = s -> subband_activity [ chans ] ;\n int subindex ;\n scale *= sqrt ( 1 / 8.0 ) ;\n if ( ! s -> multirate_inter ) prCoeff = fir_32bands_nonperfect ;\n else prCoeff = fir_32bands_perfect ;\n for ( i = sb_act ;\n i < 32 ;\n i ++ ) s -> raXin [ i ] = 0.0 ;\n for ( subindex = 0 ;\n subindex < 8 ;\n subindex ++ ) {\n for ( i = 0 ;\n i < sb_act ;\n i ++ ) {\n unsigned sign = ( i - 1 ) & 2 ;\n uint32_t v = AV_RN32A ( & samples_in [ i ] [ subindex ] ) ^ sign << 30 ;\n AV_WN32A ( & s -> raXin [ i ] , v ) ;\n }\n s -> synth . synth_filter_float ( & s -> imdct , s -> subband_fir_hist [ chans ] , & s -> hist_index [ chans ] , s -> subband_fir_noidea [ chans ] , prCoeff , samples_out , s -> raXin , scale ) ;\n samples_out += 32 ;\n }\n }"}
{"idx": 17769, "target": 0, "func": "static void override_features_indic ( hb_ot_shape_planner_t * plan ) {\n if ( hb_options ( ) . uniscribe_bug_compatible ) {\n switch ( ( hb_tag_t ) plan -> props . script ) {\n case HB_SCRIPT_KHMER : plan -> map . add_feature ( HB_TAG ( 'k' , 'e' , 'r' , 'n' ) , 0 , F_GLOBAL ) ;\n break ;\n }\n }\n plan -> map . add_feature ( HB_TAG ( 'l' , 'i' , 'g' , 'a' ) , 0 , F_GLOBAL ) ;\n }"}
{"idx": 17770, "target": 0, "func": "static int SpoolssGetPrinterDriver2_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ;\n e_ctx_hnd policy_hnd ;\n char * pol_name ;\n guint32 level ;\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , & policy_hnd , NULL , FALSE , FALSE ) ;\n dcerpc_fetch_polhnd_data ( & policy_hnd , & pol_name , NULL , NULL , NULL , pinfo -> num ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , pol_name ) ;\n offset = dissect_ndr_str_pointer_item ( tvb , offset , pinfo , tree , di , drep , NDR_POINTER_UNIQUE , \"Environment\" , hf_environment , 0 ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_level , & level ) ;\n if ( ! pinfo -> fd -> flags . visited ) {\n dcv -> se_data = GUINT_TO_POINTER ( ( int ) level ) ;\n }\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", level %d\" , level ) ;\n offset = dissect_spoolss_buffer ( tvb , offset , pinfo , tree , di , drep , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_offered , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_clientmajorversion , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_clientminorversion , NULL ) ;\n return offset ;\n }"}
{"idx": 17771, "target": 0, "func": "static int chk_index_down ( MI_CHECK * param , MI_INFO * info , MI_KEYDEF * keyinfo , my_off_t page , uchar * buff , ha_rows * keys , ha_checksum * key_checksum , uint level ) {\n char llbuff [ 22 ] , llbuff2 [ 22 ] ;\n DBUG_ENTER ( \"chk_index_down\" ) ;\n if ( page + keyinfo -> block_length > info -> state -> key_file_length ) {\n my_off_t max_length = mysql_file_seek ( info -> s -> kfile , 0L , MY_SEEK_END , MYF ( MY_THREADSAFE ) ) ;\n mi_check_print_error ( param , \"Invalid key block position: %s \" \"key block size: %u file_length: %s\" , llstr ( page , llbuff ) , keyinfo -> block_length , llstr ( info -> state -> key_file_length , llbuff2 ) ) ;\n if ( page + keyinfo -> block_length > max_length ) goto err ;\n info -> state -> key_file_length = ( max_length & ~ ( my_off_t ) ( keyinfo -> block_length - 1 ) ) ;\n }\n if ( page & ( MI_MIN_KEY_BLOCK_LENGTH - 1 ) ) {\n mi_check_print_error ( param , \"Mis-aligned key block: %s \" \"minimum key block length: %u\" , llstr ( page , llbuff ) , MI_MIN_KEY_BLOCK_LENGTH ) ;\n goto err ;\n }\n if ( ! _mi_fetch_keypage ( info , keyinfo , page , DFLT_INIT_HITS , buff , 0 ) ) {\n mi_check_print_error ( param , \"Can't read key from filepos: %s\" , llstr ( page , llbuff ) ) ;\n goto err ;\n }\n param -> key_file_blocks += keyinfo -> block_length ;\n if ( chk_index ( param , info , keyinfo , page , buff , keys , key_checksum , level ) ) goto err ;\n DBUG_RETURN ( 0 ) ;\n err : DBUG_RETURN ( 1 ) ;\n }"}
{"idx": 17772, "target": 0, "func": "static int _discoverArchiveFormat ( ArchiveHandle * AH ) {\n FILE * fh ;\n char sig [ 6 ] ;\n size_t cnt ;\n int wantClose = 0 ;\n # if 0 write_msg ( modulename , \"attempting to ascertain archive format\\n\" ) ;\n # endif if ( AH -> lookahead ) free ( AH -> lookahead ) ;\n AH -> lookaheadSize = 512 ;\n AH -> lookahead = pg_malloc0 ( 512 ) ;\n AH -> lookaheadLen = 0 ;\n AH -> lookaheadPos = 0 ;\n if ( AH -> fSpec ) {\n struct stat st ;\n wantClose = 1 ;\n if ( stat ( AH -> fSpec , & st ) == 0 && S_ISDIR ( st . st_mode ) ) {\n char buf [ MAXPGPATH ] ;\n if ( snprintf ( buf , MAXPGPATH , \"%s/toc.dat\" , AH -> fSpec ) >= MAXPGPATH ) exit_horribly ( modulename , \"directory name too long: \\\"%s\\\"\\n\" , AH -> fSpec ) ;\n if ( stat ( buf , & st ) == 0 && S_ISREG ( st . st_mode ) ) {\n AH -> format = archDirectory ;\n return AH -> format ;\n }\n # ifdef HAVE_LIBZ if ( snprintf ( buf , MAXPGPATH , \"%s/toc.dat.gz\" , AH -> fSpec ) >= MAXPGPATH ) exit_horribly ( modulename , \"directory name too long: \\\"%s\\\"\\n\" , AH -> fSpec ) ;\n if ( stat ( buf , & st ) == 0 && S_ISREG ( st . st_mode ) ) {\n AH -> format = archDirectory ;\n return AH -> format ;\n }\n # endif exit_horribly ( modulename , \"directory \\\"%s\\\" does not appear to be a valid archive (\\\"toc.dat\\\" does not exist)\\n\" , AH -> fSpec ) ;\n fh = NULL ;\n }\n else {\n fh = fopen ( AH -> fSpec , PG_BINARY_R ) ;\n if ( ! fh ) exit_horribly ( modulename , \"could not open input file \\\"%s\\\": %s\\n\" , AH -> fSpec , strerror ( errno ) ) ;\n }\n }\n else {\n fh = stdin ;\n if ( ! fh ) exit_horribly ( modulename , \"could not open input file: %s\\n\" , strerror ( errno ) ) ;\n }\n if ( ( cnt = fread ( sig , 1 , 5 , fh ) ) != 5 ) {\n if ( ferror ( fh ) ) exit_horribly ( modulename , \"could not read input file: %s\\n\" , strerror ( errno ) ) ;\n else exit_horribly ( modulename , \"input file is too short (read %lu, expected 5)\\n\" , ( unsigned long ) cnt ) ;\n }\n memcpy ( & AH -> lookahead [ 0 ] , sig , 5 ) ;\n AH -> lookaheadLen = 5 ;\n if ( strncmp ( sig , \"PGDMP\" , 5 ) == 0 ) {\n int byteread ;\n if ( ( byteread = fgetc ( fh ) ) == EOF ) READ_ERROR_EXIT ( fh ) ;\n AH -> vmaj = byteread ;\n if ( ( byteread = fgetc ( fh ) ) == EOF ) READ_ERROR_EXIT ( fh ) ;\n AH -> vmin = byteread ;\n AH -> lookahead [ AH -> lookaheadLen ++ ] = AH -> vmaj ;\n AH -> lookahead [ AH -> lookaheadLen ++ ] = AH -> vmin ;\n if ( AH -> vmaj > 1 || ( ( AH -> vmaj == 1 ) && ( AH -> vmin > 0 ) ) ) {\n if ( ( byteread = fgetc ( fh ) ) == EOF ) READ_ERROR_EXIT ( fh ) ;\n AH -> vrev = byteread ;\n AH -> lookahead [ AH -> lookaheadLen ++ ] = AH -> vrev ;\n }\n else AH -> vrev = 0 ;\n AH -> version = ( ( AH -> vmaj * 256 + AH -> vmin ) * 256 + AH -> vrev ) * 256 + 0 ;\n if ( ( AH -> intSize = fgetc ( fh ) ) == EOF ) READ_ERROR_EXIT ( fh ) ;\n AH -> lookahead [ AH -> lookaheadLen ++ ] = AH -> intSize ;\n if ( AH -> version >= K_VERS_1_7 ) {\n if ( ( AH -> offSize = fgetc ( fh ) ) == EOF ) READ_ERROR_EXIT ( fh ) ;\n AH -> lookahead [ AH -> lookaheadLen ++ ] = AH -> offSize ;\n }\n else AH -> offSize = AH -> intSize ;\n if ( ( byteread = fgetc ( fh ) ) == EOF ) READ_ERROR_EXIT ( fh ) ;\n AH -> format = byteread ;\n AH -> lookahead [ AH -> lookaheadLen ++ ] = AH -> format ;\n }\n else {\n cnt = fread ( & AH -> lookahead [ AH -> lookaheadLen ] , 1 , 512 - AH -> lookaheadLen , fh ) ;\n AH -> lookaheadLen += cnt ;\n if ( AH -> lookaheadLen >= strlen ( TEXT_DUMPALL_HEADER ) && ( strncmp ( AH -> lookahead , TEXT_DUMP_HEADER , strlen ( TEXT_DUMP_HEADER ) ) == 0 || strncmp ( AH -> lookahead , TEXT_DUMPALL_HEADER , strlen ( TEXT_DUMPALL_HEADER ) ) == 0 ) ) {\n exit_horribly ( modulename , \"input file appears to be a text format dump. Please use psql.\\n\" ) ;\n }\n if ( AH -> lookaheadLen != 512 ) {\n if ( feof ( fh ) ) exit_horribly ( modulename , \"input file does not appear to be a valid archive (too short?)\\n\" ) ;\n else READ_ERROR_EXIT ( fh ) ;\n }\n if ( ! isValidTarHeader ( AH -> lookahead ) ) exit_horribly ( modulename , \"input file does not appear to be a valid archive\\n\" ) ;\n AH -> format = archTar ;\n }\n if ( fseeko ( fh , 0 , SEEK_SET ) != 0 ) {\n AH -> readHeader = 1 ;\n }\n else AH -> lookaheadLen = 0 ;\n if ( wantClose ) if ( fclose ( fh ) != 0 ) exit_horribly ( modulename , \"could not close input file: %s\\n\" , strerror ( errno ) ) ;\n return AH -> format ;\n }"}
{"idx": 17773, "target": 0, "func": "static void ttc_perfonttables ( struct alltabs * all , int me , int mainpos , enum fontformat format ) {\n struct alltabs * at = & all [ me ] ;\n struct alltabs * main = & all [ mainpos ] ;\n SplineFont * sf = at -> sf ;\n struct ttf_table * tab ;\n at -> gi . xmin = main -> gi . xmin ;\n at -> gi . xmax = main -> gi . xmax ;\n at -> gi . ymin = main -> gi . ymin ;\n at -> gi . ymax = main -> gi . ymax ;\n at -> gi . glyph_len = main -> gi . glyph_len ;\n at -> gi . gcnt = main -> maxp . numGlyphs ;\n sethead ( & at -> head , sf , at , format , NULL ) ;\n memcpy ( at -> head . modtime , main -> head . modtime , sizeof ( at -> head . modtime ) ) ;\n memcpy ( at -> head . createtime , at -> head . modtime , sizeof ( at -> head . modtime ) ) ;\n initATTables ( at , sf , format ) ;\n if ( format == ff_ttf ) {\n if ( sf -> gasp_cnt != 0 || ! SFHasInstructions ( sf ) ) dumpgasp ( at , sf ) ;\n at -> fpgmf = checkdupstoredtable ( sf , CHR ( 'f' , 'p' , 'g' , 'm' ) , & at -> fpgmlen , all , me ) ;\n at -> prepf = checkdupstoredtable ( sf , CHR ( 'p' , 'r' , 'e' , 'p' ) , & at -> preplen , all , me ) ;\n at -> cvtf = checkdupstoredtable ( sf , CHR ( 'c' , 'v' , 't' , ' ' ) , & at -> cvtlen , all , me ) ;\n }\n for ( tab = sf -> ttf_tab_saved ;\n tab != NULL ;\n tab = tab -> next ) tab -> temp = dumpsavedtable ( tab ) ;\n {\n int cnt = sf -> glyphcnt ;\n SplineChar * * g = sf -> glyphs ;\n int * bygid = at -> gi . bygid ;\n sf -> glyphcnt = main -> sf -> glyphcnt ;\n sf -> glyphs = main -> sf -> glyphs ;\n at -> gi . bygid = main -> gi . bygid ;\n dumppost ( at , sf , format ) ;\n sf -> glyphcnt = cnt ;\n sf -> glyphs = g ;\n at -> gi . bygid = bygid ;\n }\n dumpcmap ( at , sf , format ) ;\n redohead ( at ) ;\n pfed_dump ( at , sf ) ;\n tex_dump ( at , sf ) ;\n if ( format == ff_ttf ) {\n at -> loca = ( void * ) ( intpt ) - 1 ;\n at -> localen = mainpos ;\n at -> gi . glyphs = ( void * ) ( intpt ) - 1 ;\n at -> gi . glyph_len = mainpos ;\n }\n else {\n at -> cfff = ( void * ) ( intpt ) - 1 ;\n at -> cfflen = mainpos ;\n }\n at -> fftmf = ( void * ) ( intpt ) - 1 ;\n at -> fftmlen = mainpos ;\n at -> hheadf = ( void * ) ( intpt ) - 1 ;\n at -> hheadlen = mainpos ;\n at -> gi . hmtx = ( void * ) ( intpt ) - 1 ;\n at -> gi . hmtxlen = mainpos ;\n at -> maxpf = ( void * ) ( intpt ) - 1 ;\n at -> maxplen = mainpos ;\n if ( all [ mainpos ] . vheadf != NULL ) {\n at -> vheadf = ( void * ) ( intpt ) - 1 ;\n at -> vheadlen = mainpos ;\n at -> gi . vmtx = ( void * ) ( intpt ) - 1 ;\n at -> gi . vmtxlen = mainpos ;\n }\n free ( at -> gi . bygid ) ;\n }"}
{"idx": 17774, "target": 0, "func": "static void cancel_directory_count_for_file ( NautilusDirectory * directory , NautilusFile * file ) {\n if ( directory -> details -> count_in_progress != NULL && directory -> details -> count_in_progress -> count_file == file ) {\n directory_count_cancel ( directory ) ;\n }\n }"}
{"idx": 17775, "target": 0, "func": "static int qemuMonitorSendDiskPassphrase ( qemuMonitorPtr mon , qemuMonitorMessagePtr msg , const char * data , size_t len ATTRIBUTE_UNUSED , void * opaque ) {\n virConnectPtr conn = opaque ;\n char * path ;\n char * passphrase = NULL ;\n size_t passphrase_len = 0 ;\n int res ;\n const char * pathStart ;\n const char * pathEnd ;\n pathStart = strstr ( data , DISK_ENCRYPTION_PREFIX ) ;\n pathEnd = strstr ( data , DISK_ENCRYPTION_POSTFIX ) ;\n if ( ! pathStart || ! pathEnd || pathStart >= pathEnd ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"Unable to extract disk path from %s\" ) , data ) ;\n return - 1 ;\n }\n pathStart += strlen ( DISK_ENCRYPTION_PREFIX ) ;\n if ( ! ( path = strndup ( pathStart , pathEnd - pathStart ) ) ) {\n virReportOOMError ( ) ;\n return - 1 ;\n }\n res = qemuMonitorGetDiskSecret ( mon , conn , path , & passphrase , & passphrase_len ) ;\n VIR_FREE ( path ) ;\n if ( res < 0 ) return - 1 ;\n if ( VIR_REALLOC_N ( msg -> txBuffer , msg -> txLength + passphrase_len + 1 + 1 ) < 0 ) {\n memset ( passphrase , 0 , passphrase_len ) ;\n VIR_FREE ( passphrase ) ;\n virReportOOMError ( ) ;\n return - 1 ;\n }\n memcpy ( msg -> txBuffer + msg -> txLength , passphrase , passphrase_len ) ;\n msg -> txLength += passphrase_len ;\n msg -> txBuffer [ msg -> txLength ] = '\\r' ;\n msg -> txLength ++ ;\n msg -> txBuffer [ msg -> txLength ] = '\\0' ;\n memset ( passphrase , 0 , passphrase_len ) ;\n VIR_FREE ( passphrase ) ;\n return 0 ;\n }"}
{"idx": 17776, "target": 0, "func": "void usage_exit ( ) {\n int i ;\n fprintf ( stderr , \"Usage: %s <options> -o dst_filename src_filename \\n\" , exec_name ) ;\n fprintf ( stderr , \"\\nOptions:\\n\" ) ;\n arg_show_usage ( stderr , main_args ) ;\n fprintf ( stderr , \"\\nEncoder Global Options:\\n\" ) ;\n arg_show_usage ( stderr , global_args ) ;\n fprintf ( stderr , \"\\nRate Control Options:\\n\" ) ;\n arg_show_usage ( stderr , rc_args ) ;\n fprintf ( stderr , \"\\nTwopass Rate Control Options:\\n\" ) ;\n arg_show_usage ( stderr , rc_twopass_args ) ;\n fprintf ( stderr , \"\\nKeyframe Placement Options:\\n\" ) ;\n arg_show_usage ( stderr , kf_args ) ;\n # if CONFIG_VP8_ENCODER fprintf ( stderr , \"\\nVP8 Specific Options:\\n\" ) ;\n arg_show_usage ( stderr , vp8_args ) ;\n # endif # if CONFIG_VP9_ENCODER fprintf ( stderr , \"\\nVP9 Specific Options:\\n\" ) ;\n arg_show_usage ( stderr , vp9_args ) ;\n # endif fprintf ( stderr , \"\\nStream timebase (--timebase):\\n\" \" The desired precision of timestamps in the output, expressed\\n\" \" in fractional seconds. Default is 1/1000.\\n\" ) ;\n fprintf ( stderr , \"\\nIncluded encoders:\\n\\n\" ) ;\n for ( i = 0 ;\n i < get_vpx_encoder_count ( ) ;\n ++ i ) {\n const VpxInterface * const encoder = get_vpx_encoder_by_index ( i ) ;\n fprintf ( stderr , \" %-6s - %s\\n\" , encoder -> name , vpx_codec_iface_name ( encoder -> codec_interface ( ) ) ) ;\n }\n exit ( EXIT_FAILURE ) ;\n }"}
{"idx": 17777, "target": 0, "func": "static void U_CALLCONV _IMAPToUnicodeWithOffsets ( UConverterToUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n UConverter * cnv ;\n const uint8_t * source , * sourceLimit ;\n UChar * target ;\n const UChar * targetLimit ;\n int32_t * offsets ;\n uint8_t * bytes ;\n uint8_t byteIndex ;\n int32_t length , targetCapacity ;\n uint16_t bits ;\n int8_t base64Counter ;\n UBool inDirectMode ;\n int8_t base64Value ;\n int32_t sourceIndex , nextSourceIndex ;\n UChar c ;\n uint8_t b ;\n cnv = pArgs -> converter ;\n source = ( const uint8_t * ) pArgs -> source ;\n sourceLimit = ( const uint8_t * ) pArgs -> sourceLimit ;\n target = pArgs -> target ;\n targetLimit = pArgs -> targetLimit ;\n offsets = pArgs -> offsets ;\n {\n uint32_t status = cnv -> toUnicodeStatus ;\n inDirectMode = ( UBool ) ( ( status >> 24 ) & 1 ) ;\n base64Counter = ( int8_t ) ( status >> 16 ) ;\n bits = ( uint16_t ) status ;\n }\n bytes = cnv -> toUBytes ;\n byteIndex = cnv -> toULength ;\n sourceIndex = byteIndex == 0 ? 0 : - 1 ;\n nextSourceIndex = 0 ;\n if ( inDirectMode ) {\n directMode : byteIndex = 0 ;\n length = ( int32_t ) ( sourceLimit - source ) ;\n targetCapacity = ( int32_t ) ( targetLimit - target ) ;\n if ( length > targetCapacity ) {\n length = targetCapacity ;\n }\n while ( length > 0 ) {\n b = * source ++ ;\n if ( ! isLegalIMAP ( b ) ) {\n bytes [ 0 ] = b ;\n byteIndex = 1 ;\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n else if ( b != AMPERSAND ) {\n * target ++ = b ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ++ ;\n }\n }\n else {\n nextSourceIndex = ++ sourceIndex ;\n inDirectMode = FALSE ;\n byteIndex = 0 ;\n bits = 0 ;\n base64Counter = - 1 ;\n goto unicodeMode ;\n }\n -- length ;\n }\n if ( source < sourceLimit && target >= targetLimit ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n else {\n unicodeMode : while ( source < sourceLimit ) {\n if ( target < targetLimit ) {\n bytes [ byteIndex ++ ] = b = * source ++ ;\n ++ nextSourceIndex ;\n if ( b > 0x7e ) {\n inDirectMode = TRUE ;\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n else if ( ( base64Value = FROM_BASE64_IMAP ( b ) ) >= 0 ) {\n switch ( base64Counter ) {\n case - 1 : case 0 : bits = base64Value ;\n base64Counter = 1 ;\n break ;\n case 1 : case 3 : case 4 : case 6 : bits = ( uint16_t ) ( ( bits << 6 ) | base64Value ) ;\n ++ base64Counter ;\n break ;\n case 2 : c = ( UChar ) ( ( bits << 4 ) | ( base64Value >> 2 ) ) ;\n if ( isLegalIMAP ( c ) ) {\n inDirectMode = TRUE ;\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n goto endloop ;\n }\n * target ++ = c ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n sourceIndex = nextSourceIndex - 1 ;\n }\n bytes [ 0 ] = b ;\n byteIndex = 1 ;\n bits = ( uint16_t ) ( base64Value & 3 ) ;\n base64Counter = 3 ;\n break ;\n case 5 : c = ( UChar ) ( ( bits << 2 ) | ( base64Value >> 4 ) ) ;\n if ( isLegalIMAP ( c ) ) {\n inDirectMode = TRUE ;\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n goto endloop ;\n }\n * target ++ = c ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n sourceIndex = nextSourceIndex - 1 ;\n }\n bytes [ 0 ] = b ;\n byteIndex = 1 ;\n bits = ( uint16_t ) ( base64Value & 15 ) ;\n base64Counter = 6 ;\n break ;\n case 7 : c = ( UChar ) ( ( bits << 6 ) | base64Value ) ;\n if ( isLegalIMAP ( c ) ) {\n inDirectMode = TRUE ;\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n goto endloop ;\n }\n * target ++ = c ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n sourceIndex = nextSourceIndex ;\n }\n byteIndex = 0 ;\n bits = 0 ;\n base64Counter = 0 ;\n break ;\n default : break ;\n }\n }\n else if ( base64Value == - 2 ) {\n inDirectMode = TRUE ;\n if ( base64Counter == - 1 ) {\n * target ++ = AMPERSAND ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex - 1 ;\n }\n }\n else {\n if ( bits != 0 || ( base64Counter != 0 && base64Counter != 3 && base64Counter != 6 ) ) {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n }\n sourceIndex = nextSourceIndex ;\n goto directMode ;\n }\n else {\n if ( base64Counter == - 1 ) {\n -- sourceIndex ;\n bytes [ 0 ] = AMPERSAND ;\n bytes [ 1 ] = b ;\n byteIndex = 2 ;\n }\n inDirectMode = TRUE ;\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n }\n else {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n }\n endloop : if ( U_SUCCESS ( * pErrorCode ) && ! inDirectMode && byteIndex == 0 && pArgs -> flush && source >= sourceLimit ) {\n if ( base64Counter == - 1 ) {\n bytes [ 0 ] = AMPERSAND ;\n byteIndex = 1 ;\n }\n inDirectMode = TRUE ;\n * pErrorCode = U_TRUNCATED_CHAR_FOUND ;\n }\n cnv -> toUnicodeStatus = ( ( uint32_t ) inDirectMode << 24 ) | ( ( uint32_t ) ( ( uint8_t ) base64Counter ) << 16 ) | ( uint32_t ) bits ;\n cnv -> toULength = byteIndex ;\n pArgs -> source = ( const char * ) source ;\n pArgs -> target = target ;\n pArgs -> offsets = offsets ;\n return ;\n }"}
{"idx": 17778, "target": 0, "func": "int event_loopbreak ( void ) {\n return ( event_base_loopbreak ( current_base ) ) ;\n }"}
{"idx": 17779, "target": 0, "func": "static proto_item * proto_tree_add_text_node ( proto_tree * tree , tvbuff_t * tvb , gint start , gint length ) {\n proto_item * pi ;\n if ( tree == NULL ) return NULL ;\n pi = proto_tree_add_pi ( tree , & hfi_text_only , tvb , start , & length ) ;\n return pi ;\n }"}
{"idx": 17780, "target": 0, "func": "SPL_METHOD ( DirectoryIterator , getFilename ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n RETURN_STRING ( intern -> u . dir . entry . d_name , 1 ) ;\n }"}
{"idx": 17781, "target": 0, "func": "void mainwindow_set_rsize ( MAIN_WINDOW_REC * window , int width ) {\n width -= window -> width ;\n if ( width < 0 ) mainwindow_rshrink ( window , - width ) ;\n else mainwindow_rgrow ( window , width ) ;\n }"}
{"idx": 17782, "target": 0, "func": "err_status_t srtp_remove_stream ( srtp_t session , uint32_t ssrc ) {\n srtp_stream_ctx_t * stream , * last_stream ;\n err_status_t status ;\n if ( session == NULL ) return err_status_bad_param ;\n last_stream = stream = session -> stream_list ;\n while ( ( stream != NULL ) && ( ssrc != stream -> ssrc ) ) {\n last_stream = stream ;\n stream = stream -> next ;\n }\n if ( stream == NULL ) return err_status_no_ctx ;\n if ( last_stream == stream ) session -> stream_list = stream -> next ;\n else last_stream -> next = stream -> next ;\n status = srtp_stream_dealloc ( session , stream ) ;\n if ( status ) return status ;\n return err_status_ok ;\n }"}
{"idx": 17783, "target": 0, "func": "static void init_loop_filter ( Vp3DecodeContext * s ) {\n int * bounding_values = s -> bounding_values_array + 127 ;\n int filter_limit ;\n int x ;\n int value ;\n filter_limit = s -> filter_limit_values [ s -> qps [ 0 ] ] ;\n assert ( filter_limit < 128 ) ;\n memset ( s -> bounding_values_array , 0 , 256 * sizeof ( int ) ) ;\n for ( x = 0 ;\n x < filter_limit ;\n x ++ ) {\n bounding_values [ - x ] = - x ;\n bounding_values [ x ] = x ;\n }\n for ( x = value = filter_limit ;\n x < 128 && value ;\n x ++ , value -- ) {\n bounding_values [ x ] = value ;\n bounding_values [ - x ] = - value ;\n }\n if ( value ) bounding_values [ 128 ] = value ;\n bounding_values [ 129 ] = bounding_values [ 130 ] = filter_limit * 0x02020202 ;\n }"}
{"idx": 17784, "target": 0, "func": "static int dissect_h225_T_routing ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_T_routing , T_routing_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 17785, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( SessionRestorePageLoadMetricsBrowserTest , NavigationDuringSessionRestore ) {\n NavigateToUntrackedUrl ( ) ;\n Browser * new_browser = QuitBrowserAndRestore ( browser ( ) ) ;\n auto waiter = std : : make_unique < PageLoadMetricsWaiter > ( new_browser -> tab_strip_model ( ) -> GetActiveWebContents ( ) ) ;\n waiter -> AddPageExpectation ( TimingField : : FIRST_MEANINGFUL_PAINT ) ;\n ui_test_utils : : NavigateToURL ( new_browser , GetTestURL ( ) ) ;\n waiter -> Wait ( ) ;\n ExpectFirstPaintMetricsTotalCount ( 0 ) ;\n }"}
{"idx": 17786, "target": 0, "func": "PHP_NAMED_FUNCTION ( zif_locale_set_default ) {\n char * locale_name = NULL ;\n int len = 0 ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"s\" , & locale_name , & len ) == FAILURE ) {\n intl_error_set ( NULL , U_ILLEGAL_ARGUMENT_ERROR , \"locale_set_default: unable to parse input params\" , 0 TSRMLS_CC ) ;\n RETURN_FALSE ;\n }\n if ( len == 0 ) {\n locale_name = ( char * ) uloc_getDefault ( ) ;\n len = strlen ( locale_name ) ;\n }\n zend_alter_ini_entry ( LOCALE_INI_NAME , sizeof ( LOCALE_INI_NAME ) , locale_name , len , PHP_INI_USER , PHP_INI_STAGE_RUNTIME ) ;\n RETURN_TRUE ;\n }"}
{"idx": 17787, "target": 0, "func": "static int dissect_CPMCiState ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * parent_tree , gboolean in , void * data _U_ ) {\n gint offset = 16 ;\n proto_item * item ;\n proto_tree * tree ;\n col_append_str ( pinfo -> cinfo , COL_INFO , \"CiState\" ) ;\n if ( ! in ) {\n item = proto_tree_add_item ( parent_tree , hf_mswsp_msg , tvb , offset , - 1 , ENC_NA ) ;\n tree = proto_item_add_subtree ( item , ett_mswsp_msg ) ;\n proto_item_set_text ( item , \"CiStateOut\" ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcistate_cbstruct , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcistate_cwordlist , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcistate_cpersistindex , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcistate_cqueries , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcistate_cfreshtest , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcistate_cfreshtest , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcistate_dwmergeprogress , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcistate_estate , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcistate_cfiltereddocs , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcistate_ctotaldocs , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcistate_cpendingscans , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcistate_dwindexsize , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcistate_cuniquekeys , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcistate_csecqdocuments , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcistate_dwpropcachesize , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n }\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 17788, "target": 0, "func": "static char * ext_t_0_wml_10 ( tvbuff_t * tvb , guint32 value , guint32 str_tbl ) {\n char * str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"Variable substitution - escaped: '%s'\" , tvb_get_const_stringz ( tvb , str_tbl + value , NULL ) ) ;\n return str ;\n }"}
{"idx": 17789, "target": 0, "func": "static int parse_read_intervals ( const char * intervals_spec ) {\n int ret , n , i ;\n char * p , * spec = av_strdup ( intervals_spec ) ;\n if ( ! spec ) return AVERROR ( ENOMEM ) ;\n for ( n = 0 , p = spec ;\n * p ;\n p ++ ) if ( * p == ',' ) n ++ ;\n n ++ ;\n read_intervals = av_malloc_array ( n , sizeof ( * read_intervals ) ) ;\n if ( ! read_intervals ) {\n ret = AVERROR ( ENOMEM ) ;\n goto end ;\n }\n read_intervals_nb = n ;\n p = spec ;\n for ( i = 0 ;\n p ;\n i ++ ) {\n char * next ;\n av_assert0 ( i < read_intervals_nb ) ;\n next = strchr ( p , ',' ) ;\n if ( next ) * next ++ = 0 ;\n read_intervals [ i ] . id = i ;\n ret = parse_read_interval ( p , & read_intervals [ i ] ) ;\n if ( ret < 0 ) {\n av_log ( NULL , AV_LOG_ERROR , \"Error parsing read interval #%d '%s'\\n\" , i , p ) ;\n goto end ;\n }\n av_log ( NULL , AV_LOG_VERBOSE , \"Parsed log interval \" ) ;\n log_read_interval ( & read_intervals [ i ] , NULL , AV_LOG_VERBOSE ) ;\n p = next ;\n }\n av_assert0 ( i == read_intervals_nb ) ;\n end : av_free ( spec ) ;\n return ret ;\n }"}
{"idx": 17790, "target": 0, "func": "static int forgetstack ( struct psstack * stack , int forgets , int sp ) {\n int i ;\n for ( i = 0 ;\n i < forgets ;\n ++ i ) {\n if ( stack [ i ] . type == ps_string || stack [ i ] . type == ps_instr || stack [ i ] . type == ps_lit ) free ( stack [ i ] . u . str ) ;\n else if ( stack [ i ] . type == ps_array || stack [ i ] . type == ps_dict ) dictfree ( & stack [ i ] . u . dict ) ;\n }\n for ( i = forgets ;\n i < sp ;\n ++ i ) stack [ i - forgets ] = stack [ i ] ;\n return ( sp - forgets ) ;\n }"}
{"idx": 17791, "target": 0, "func": "const EVP_CIPHER * EVP_aes_ ## keylen ## _ ## mode ( void ) \\ {\n return & aes_ ## keylen ## _ ## mode ;\n }\n # 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_CAPABLE ( OPENSSL_armcap_P & ARMV7_NEON ) # endif # if defined ( VPAES_ASM ) # define VPAES_CAPABLE ( OPENSSL_armcap_P & ARMV7_NEON ) # endif # define HWAES_CAPABLE ( OPENSSL_armcap_P & ARMV8_AES ) # define HWAES_set_encrypt_key aes_v8_set_encrypt_key # define HWAES_set_decrypt_key aes_v8_set_decrypt_key # define HWAES_encrypt aes_v8_encrypt # define HWAES_decrypt aes_v8_decrypt # define HWAES_cbc_encrypt aes_v8_cbc_encrypt # define HWAES_ctr32_encrypt_blocks aes_v8_ctr32_encrypt_blocks # endif # endif # if defined ( HWAES_CAPABLE ) int HWAES_set_encrypt_key ( const unsigned char * userKey , const int bits , AES_KEY * key ) ;\n int HWAES_set_decrypt_key ( const unsigned char * userKey , const int bits , AES_KEY * key ) ;\n void HWAES_encrypt ( const unsigned char * in , unsigned char * out , const AES_KEY * key ) ;\n void HWAES_decrypt ( const unsigned char * in , unsigned char * out , const AES_KEY * key ) ;\n void HWAES_cbc_encrypt ( const unsigned char * in , unsigned char * out , size_t length , const AES_KEY * key , unsigned char * ivec , const int enc ) ;\n void HWAES_ctr32_encrypt_blocks ( const unsigned char * in , unsigned char * out , size_t len , const AES_KEY * key , const unsigned char ivec [ 16 ] ) ;\n void HWAES_xts_encrypt ( const unsigned char * inp , unsigned char * out , size_t len , const AES_KEY * key1 , const AES_KEY * key2 , const unsigned char iv [ 16 ] ) ;\n void HWAES_xts_decrypt ( const unsigned char * inp , unsigned char * out , size_t len , const AES_KEY * key1 , const AES_KEY * key2 , const unsigned char iv [ 16 ] ) ;\n # endif # define BLOCK_CIPHER_generic_pack ( nid , keylen , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 16 , 16 , cbc , cbc , CBC , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 16 , 0 , ecb , ecb , ECB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , ofb128 , ofb , OFB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb128 , cfb , CFB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb1 , cfb1 , CFB , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb8 , cfb8 , CFB , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , ctr , ctr , CTR , flags ) static int aes_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n int ret , mode ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n mode = EVP_CIPHER_CTX_mode ( ctx ) ;\n if ( ( mode == EVP_CIPH_ECB_MODE || mode == EVP_CIPH_CBC_MODE ) && ! enc ) {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_decrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n # endif }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CBC_MODE ) {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = ( cbc128_f ) bsaes_cbc_encrypt ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n }\n }\n else # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_encrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n else # endif # ifdef HWAES_ctr32_encrypt_blocks if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) HWAES_ctr32_encrypt_blocks ;\n else # endif ( void ) 0 ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CTR_MODE ) {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . ctr = ( ctr128_f ) bsaes_ctr32_encrypt_blocks ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n # ifdef AES_CTR_ASM if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) AES_ctr32_encrypt ;\n # endif }\n if ( ret < 0 ) {\n EVPerr ( EVP_F_AES_INIT_KEY , EVP_R_AES_KEY_SETUP_FAILED ) ;\n return 0 ;\n }\n return 1 ;\n }\n static int aes_cbc_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( dat -> stream . cbc ) ( * dat -> stream . cbc ) ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_encrypting ( ctx ) ) ;\n else if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) CRYPTO_cbc128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , dat -> block ) ;\n else CRYPTO_cbc128_decrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , dat -> block ) ;\n return 1 ;\n }\n static int aes_ecb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n size_t bl = EVP_CIPHER_CTX_block_size ( ctx ) ;\n size_t i ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( len < bl ) return 1 ;\n for ( i = 0 , len -= bl ;\n i <= len ;\n i += bl ) ( * dat -> block ) ( in + i , out + i , & dat -> ks ) ;\n return 1 ;\n }\n static int aes_ofb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_ofb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb8_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_8_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb1_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( EVP_CIPHER_CTX_test_flags ( ctx , EVP_CIPH_FLAG_LENGTH_BITS ) ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n while ( len >= MAXBITCHUNK ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , MAXBITCHUNK * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n len -= MAXBITCHUNK ;\n }\n if ( len ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n }\n return 1 ;\n }\n static int aes_ctr_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n unsigned int num = EVP_CIPHER_CTX_num ( ctx ) ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( dat -> stream . ctr ) CRYPTO_ctr128_encrypt_ctr32 ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> stream . ctr ) ;\n else CRYPTO_ctr128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n BLOCK_CIPHER_generic_pack ( NID_aes , 128 , 0 ) BLOCK_CIPHER_generic_pack ( NID_aes , 192 , 0 ) BLOCK_CIPHER_generic_pack ( NID_aes , 256 , 0 ) static int aes_gcm_cleanup ( EVP_CIPHER_CTX * c ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , c ) ;\n OPENSSL_cleanse ( & gctx -> gcm , sizeof ( gctx -> gcm ) ) ;\n if ( gctx -> iv != EVP_CIPHER_CTX_iv_noconst ( c ) ) OPENSSL_free ( gctx -> iv ) ;\n return 1 ;\n }\n static void ctr64_inc ( unsigned char * counter ) {\n int n = 8 ;\n unsigned char c ;\n do {\n -- n ;\n c = counter [ n ] ;\n ++ c ;\n counter [ n ] = c ;\n if ( c ) return ;\n }\n while ( n ) ;\n }\n static int aes_gcm_ctrl ( EVP_CIPHER_CTX * c , int type , int arg , void * ptr ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , c ) ;\n switch ( type ) {\n case EVP_CTRL_INIT : gctx -> key_set = 0 ;\n gctx -> iv_set = 0 ;\n gctx -> ivlen = EVP_CIPHER_CTX_iv_length ( c ) ;\n gctx -> iv = EVP_CIPHER_CTX_iv_noconst ( c ) ;\n gctx -> taglen = - 1 ;\n gctx -> iv_gen = 0 ;\n gctx -> tls_aad_len = - 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_IVLEN : if ( arg <= 0 ) return 0 ;\n if ( ( arg > EVP_MAX_IV_LENGTH ) && ( arg > gctx -> ivlen ) ) {\n if ( gctx -> iv != EVP_CIPHER_CTX_iv_noconst ( c ) ) OPENSSL_free ( gctx -> iv ) ;\n gctx -> iv = OPENSSL_malloc ( arg ) ;\n if ( gctx -> iv == NULL ) return 0 ;\n }\n gctx -> ivlen = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_TAG : if ( arg <= 0 || arg > 16 || EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n gctx -> taglen = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_GET_TAG : if ( arg <= 0 || arg > 16 || ! EVP_CIPHER_CTX_encrypting ( c ) || gctx -> taglen < 0 ) return 0 ;\n memcpy ( ptr , EVP_CIPHER_CTX_buf_noconst ( c ) , arg ) ;\n return 1 ;\n case EVP_CTRL_GCM_SET_IV_FIXED : if ( arg == - 1 ) {\n memcpy ( gctx -> iv , ptr , gctx -> ivlen ) ;\n gctx -> iv_gen = 1 ;\n return 1 ;\n }\n if ( ( arg < 4 ) || ( gctx -> ivlen - arg ) < 8 ) return 0 ;\n if ( arg ) memcpy ( gctx -> iv , ptr , arg ) ;\n if ( EVP_CIPHER_CTX_encrypting ( c ) && RAND_bytes ( gctx -> iv + arg , gctx -> ivlen - arg ) <= 0 ) return 0 ;\n gctx -> iv_gen = 1 ;\n return 1 ;\n case EVP_CTRL_GCM_IV_GEN : if ( gctx -> iv_gen == 0 || gctx -> key_set == 0 ) return 0 ;\n CRYPTO_gcm128_setiv ( & gctx -> gcm , gctx -> iv , gctx -> ivlen ) ;\n if ( arg <= 0 || arg > gctx -> ivlen ) arg = gctx -> ivlen ;\n memcpy ( ptr , gctx -> iv + gctx -> ivlen - arg , arg ) ;\n ctr64_inc ( gctx -> iv + gctx -> ivlen - 8 ) ;\n gctx -> iv_set = 1 ;\n return 1 ;\n case EVP_CTRL_GCM_SET_IV_INV : if ( gctx -> iv_gen == 0 || gctx -> key_set == 0 || EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( gctx -> iv + gctx -> ivlen - arg , ptr , arg ) ;\n CRYPTO_gcm128_setiv ( & gctx -> gcm , gctx -> iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_TLS1_AAD : if ( arg != EVP_AEAD_TLS1_AAD_LEN ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n gctx -> tls_aad_len = arg ;\n {\n unsigned int len = EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] << 8 | EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] ;\n if ( len < EVP_GCM_TLS_EXPLICIT_IV_LEN ) return 0 ;\n len -= EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n if ( ! EVP_CIPHER_CTX_encrypting ( c ) ) {\n if ( len < EVP_GCM_TLS_TAG_LEN ) return 0 ;\n len -= EVP_GCM_TLS_TAG_LEN ;\n }\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] = len >> 8 ;\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] = len & 0xff ;\n }\n return EVP_GCM_TLS_TAG_LEN ;\n case EVP_CTRL_COPY : {\n EVP_CIPHER_CTX * out = ptr ;\n EVP_AES_GCM_CTX * gctx_out = EVP_C_DATA ( EVP_AES_GCM_CTX , out ) ;\n if ( gctx -> gcm . key ) {\n if ( gctx -> gcm . key != & gctx -> ks ) return 0 ;\n gctx_out -> gcm . key = & gctx_out -> ks ;\n }\n if ( gctx -> iv == EVP_CIPHER_CTX_iv_noconst ( c ) ) gctx_out -> iv = EVP_CIPHER_CTX_iv_noconst ( out ) ;\n else {\n gctx_out -> iv = OPENSSL_malloc ( gctx -> ivlen ) ;\n if ( gctx_out -> iv == NULL ) return 0 ;\n memcpy ( gctx_out -> iv , gctx -> iv , gctx -> ivlen ) ;\n }\n return 1 ;\n }\n default : return - 1 ;\n }\n }\n static int aes_gcm_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n if ( ! iv && ! key ) return 1 ;\n if ( key ) {\n do {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) HWAES_encrypt ) ;\n # ifdef HWAES_ctr32_encrypt_blocks gctx -> ctr = ( ctr128_f ) HWAES_ctr32_encrypt_blocks ;\n # else gctx -> ctr = NULL ;\n # endif break ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE ) {\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) AES_encrypt ) ;\n gctx -> ctr = ( ctr128_f ) bsaes_ctr32_encrypt_blocks ;\n break ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) vpaes_encrypt ) ;\n gctx -> ctr = NULL ;\n break ;\n }\n else # endif ( void ) 0 ;\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) AES_encrypt ) ;\n # ifdef AES_CTR_ASM gctx -> ctr = ( ctr128_f ) AES_ctr32_encrypt ;\n # else gctx -> ctr = NULL ;\n # endif }\n while ( 0 ) ;\n if ( iv == NULL && gctx -> iv_set ) iv = gctx -> iv ;\n if ( iv ) {\n CRYPTO_gcm128_setiv ( & gctx -> gcm , iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n }\n gctx -> key_set = 1 ;\n }\n else {\n if ( gctx -> key_set ) CRYPTO_gcm128_setiv ( & gctx -> gcm , iv , gctx -> ivlen ) ;\n else memcpy ( gctx -> iv , iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n gctx -> iv_gen = 0 ;\n }\n return 1 ;\n }\n static int aes_gcm_tls_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n int rv = - 1 ;\n if ( out != in || len < ( EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ) ) return - 1 ;\n if ( EVP_CIPHER_CTX_ctrl ( ctx , EVP_CIPHER_CTX_encrypting ( ctx ) ? EVP_CTRL_GCM_IV_GEN : EVP_CTRL_GCM_SET_IV_INV , EVP_GCM_TLS_EXPLICIT_IV_LEN , out ) <= 0 ) goto err ;\n if ( CRYPTO_gcm128_aad ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , gctx -> tls_aad_len ) ) goto err ;\n in += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n out += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n len -= EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ;\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 32 && AES_GCM_ASM ( gctx ) ) {\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_encrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) goto err ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 32 && AES_GCM_ASM2 ( gctx ) ) {\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) goto err ;\n }\n out += len ;\n CRYPTO_gcm128_tag ( & gctx -> gcm , out , EVP_GCM_TLS_TAG_LEN ) ;\n rv = len + EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ;\n }\n else {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 16 && AES_GCM_ASM ( gctx ) ) {\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_decrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) goto err ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 16 && AES_GCM_ASM2 ( gctx ) ) {\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) goto err ;\n }\n CRYPTO_gcm128_tag ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , EVP_GCM_TLS_TAG_LEN ) ;\n if ( CRYPTO_memcmp ( EVP_CIPHER_CTX_buf_noconst ( ctx ) , in + len , EVP_GCM_TLS_TAG_LEN ) ) {\n OPENSSL_cleanse ( out , len ) ;\n goto err ;\n }\n rv = len ;\n }\n err : gctx -> iv_set = 0 ;\n gctx -> tls_aad_len = - 1 ;\n return rv ;\n }\n static int aes_gcm_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n if ( ! gctx -> key_set ) return - 1 ;\n if ( gctx -> tls_aad_len >= 0 ) return aes_gcm_tls_cipher ( ctx , out , in , len ) ;\n if ( ! gctx -> iv_set ) return - 1 ;\n if ( in ) {\n if ( out == NULL ) {\n if ( CRYPTO_gcm128_aad ( & gctx -> gcm , in , len ) ) return - 1 ;\n }\n else if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 32 && AES_GCM_ASM ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_encrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) return - 1 ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 32 && AES_GCM_ASM2 ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) return - 1 ;\n }\n }\n else {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 16 && AES_GCM_ASM ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_decrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) return - 1 ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 16 && AES_GCM_ASM2 ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) return - 1 ;\n }\n }\n return len ;\n }\n else {\n if ( ! EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> taglen < 0 ) return - 1 ;\n if ( CRYPTO_gcm128_finish ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , gctx -> taglen ) != 0 ) return - 1 ;\n gctx -> iv_set = 0 ;\n return 0 ;\n }\n CRYPTO_gcm128_tag ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , 16 ) ;\n gctx -> taglen = 16 ;\n gctx -> iv_set = 0 ;\n return 0 ;\n }\n }\n # define CUSTOM_FLAGS ( EVP_CIPH_FLAG_DEFAULT_ASN1 \\ | EVP_CIPH_CUSTOM_IV | EVP_CIPH_FLAG_CUSTOM_CIPHER \\ | EVP_CIPH_ALWAYS_CALL_INIT | EVP_CIPH_CTRL_INIT \\ | EVP_CIPH_CUSTOM_COPY ) BLOCK_CIPHER_custom ( NID_aes , 128 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 192 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 256 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) static int aes_xts_ctrl ( EVP_CIPHER_CTX * c , int type , int arg , void * ptr ) {\n EVP_AES_XTS_CTX * xctx = EVP_C_DATA ( EVP_AES_XTS_CTX , c ) ;\n if ( type == EVP_CTRL_COPY ) {\n EVP_CIPHER_CTX * out = ptr ;\n EVP_AES_XTS_CTX * xctx_out = EVP_C_DATA ( EVP_AES_XTS_CTX , out ) ;\n if ( xctx -> xts . key1 ) {\n if ( xctx -> xts . key1 != & xctx -> ks1 ) return 0 ;\n xctx_out -> xts . key1 = & xctx_out -> ks1 ;\n }\n if ( xctx -> xts . key2 ) {\n if ( xctx -> xts . key2 != & xctx -> ks2 ) return 0 ;\n xctx_out -> xts . key2 = & xctx_out -> ks2 ;\n }\n return 1 ;\n }\n else if ( type != EVP_CTRL_INIT ) return - 1 ;\n xctx -> xts . key1 = NULL ;\n xctx -> xts . key2 = NULL ;\n return 1 ;\n }\n static int aes_xts_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n EVP_AES_XTS_CTX * xctx = EVP_C_DATA ( EVP_AES_XTS_CTX , ctx ) ;\n if ( ! iv && ! key ) return 1 ;\n if ( key ) do {\n # ifdef AES_XTS_ASM xctx -> stream = enc ? AES_xts_encrypt : AES_xts_decrypt ;\n # else xctx -> stream = NULL ;\n # endif # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n if ( enc ) {\n HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) HWAES_encrypt ;\n # ifdef HWAES_xts_encrypt xctx -> stream = HWAES_xts_encrypt ;\n # endif }\n else {\n HWAES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) HWAES_decrypt ;\n # ifdef HWAES_xts_decrypt xctx -> stream = HWAES_xts_decrypt ;\n # endif }\n HWAES_set_encrypt_key ( key + EVP_CIPHER_CTX_key_length ( ctx ) / 2 , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks2 . ks ) ;\n xctx -> xts . block2 = ( block128_f ) HWAES_encrypt ;\n xctx -> xts . key1 = & xctx -> ks1 ;\n break ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE ) xctx -> stream = enc ? bsaes_xts_encrypt : bsaes_xts_decrypt ;\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n if ( enc ) {\n vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) vpaes_encrypt ;\n }\n else {\n vpaes_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) vpaes_decrypt ;\n }\n vpaes_set_encrypt_key ( key + EVP_CIPHER_CTX_key_length ( ctx ) / 2 , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks2 . ks ) ;\n xctx -> xts . block2 = ( block128_f ) vpaes_encrypt ;\n xctx -> xts . key1 = & xctx -> ks1 ;\n break ;\n }\n else # endif ( void ) 0 ;\n if ( enc ) {\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) AES_encrypt ;\n }\n else {\n AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) AES_decrypt ;\n }\n AES_set_encrypt_key ( key + EVP_CIPHER_CTX_key_length ( ctx ) / 2 , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks2 . ks ) ;\n xctx -> xts . block2 = ( block128_f ) AES_encrypt ;\n xctx -> xts . key1 = & xctx -> ks1 ;\n }\n while ( 0 ) ;\n if ( iv ) {\n xctx -> xts . key2 = & xctx -> ks2 ;\n memcpy ( EVP_CIPHER_CTX_iv_noconst ( ctx ) , iv , 16 ) ;\n }\n return 1 ;\n }\n static int aes_xts_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_XTS_CTX * xctx = EVP_C_DATA ( EVP_AES_XTS_CTX , ctx ) ;\n if ( ! xctx -> xts . key1 || ! xctx -> xts . key2 ) return 0 ;\n if ( ! out || ! in || len < AES_BLOCK_SIZE ) return 0 ;\n if ( xctx -> stream ) ( * xctx -> stream ) ( in , out , len , xctx -> xts . key1 , xctx -> xts . key2 , EVP_CIPHER_CTX_iv_noconst ( ctx ) ) ;\n else if ( CRYPTO_xts128_encrypt ( & xctx -> xts , EVP_CIPHER_CTX_iv_noconst ( ctx ) , in , out , len , EVP_CIPHER_CTX_encrypting ( ctx ) ) ) return 0 ;\n return 1 ;\n }\n # define aes_xts_cleanup NULL # define XTS_FLAGS ( EVP_CIPH_FLAG_DEFAULT_ASN1 | EVP_CIPH_CUSTOM_IV \\ | EVP_CIPH_ALWAYS_CALL_INIT | EVP_CIPH_CTRL_INIT \\ | EVP_CIPH_CUSTOM_COPY ) BLOCK_CIPHER_custom ( NID_aes , 128 , 1 , 16 , xts , XTS , XTS_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 256 , 1 , 16 , xts , XTS , XTS_FLAGS ) static int aes_ccm_ctrl ( EVP_CIPHER_CTX * c , int type , int arg , void * ptr ) {\n EVP_AES_CCM_CTX * cctx = EVP_C_DATA ( EVP_AES_CCM_CTX , c ) ;\n switch ( type ) {\n case EVP_CTRL_INIT : cctx -> key_set = 0 ;\n cctx -> iv_set = 0 ;\n cctx -> L = 8 ;\n cctx -> M = 12 ;\n cctx -> tag_set = 0 ;\n cctx -> len_set = 0 ;\n cctx -> tls_aad_len = - 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_TLS1_AAD : if ( arg != EVP_AEAD_TLS1_AAD_LEN ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n cctx -> tls_aad_len = arg ;\n {\n uint16_t len = EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] << 8 | EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] ;\n if ( len < EVP_CCM_TLS_EXPLICIT_IV_LEN ) return 0 ;\n len -= EVP_CCM_TLS_EXPLICIT_IV_LEN ;\n if ( ! EVP_CIPHER_CTX_encrypting ( c ) ) {\n if ( len < cctx -> M ) return 0 ;\n len -= cctx -> M ;\n }\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] = len >> 8 ;\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] = len & 0xff ;\n }\n return cctx -> M ;\n case EVP_CTRL_CCM_SET_IV_FIXED : if ( arg != EVP_CCM_TLS_FIXED_IV_LEN ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_iv_noconst ( c ) , ptr , arg ) ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_IVLEN : arg = 15 - arg ;\n case EVP_CTRL_CCM_SET_L : if ( arg < 2 || arg > 8 ) return 0 ;\n cctx -> L = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_TAG : if ( ( arg & 1 ) || arg < 4 || arg > 16 ) return 0 ;\n if ( EVP_CIPHER_CTX_encrypting ( c ) && ptr ) return 0 ;\n if ( ptr ) {\n cctx -> tag_set = 1 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n }\n cctx -> M = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_GET_TAG : if ( ! EVP_CIPHER_CTX_encrypting ( c ) || ! cctx -> tag_set ) return 0 ;\n if ( ! CRYPTO_ccm128_tag ( & cctx -> ccm , ptr , ( size_t ) arg ) ) return 0 ;\n cctx -> tag_set = 0 ;\n cctx -> iv_set = 0 ;\n cctx -> len_set = 0 ;\n return 1 ;\n case EVP_CTRL_COPY : {\n EVP_CIPHER_CTX * out = ptr ;\n EVP_AES_CCM_CTX * cctx_out = EVP_C_DATA ( EVP_AES_CCM_CTX , out ) ;\n if ( cctx -> ccm . key ) {\n if ( cctx -> ccm . key != & cctx -> ks ) return 0 ;\n cctx_out -> ccm . key = & cctx_out -> ks ;\n }\n return 1 ;\n }\n default : return - 1 ;\n }\n }\n static int aes_ccm_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n EVP_AES_CCM_CTX * cctx = EVP_C_DATA ( EVP_AES_CCM_CTX , ctx ) ;\n if ( ! iv && ! key ) return 1 ;\n if ( key ) do {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & cctx -> ks . ks ) ;\n CRYPTO_ccm128_init ( & cctx -> ccm , cctx -> M , cctx -> L , & cctx -> ks , ( block128_f ) HWAES_encrypt ) ;\n cctx -> str = NULL ;\n cctx -> key_set = 1 ;\n break ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & cctx -> ks . ks ) ;\n CRYPTO_ccm128_init ( & cctx -> ccm , cctx -> M , cctx -> L , & cctx -> ks , ( block128_f ) vpaes_encrypt ) ;\n cctx -> str = NULL ;\n cctx -> key_set = 1 ;\n break ;\n }\n # endif AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & cctx -> ks . ks ) ;\n CRYPTO_ccm128_init ( & cctx -> ccm , cctx -> M , cctx -> L , & cctx -> ks , ( block128_f ) AES_encrypt ) ;\n cctx -> str = NULL ;\n cctx -> key_set = 1 ;\n }\n while ( 0 ) ;\n if ( iv ) {\n memcpy ( EVP_CIPHER_CTX_iv_noconst ( ctx ) , iv , 15 - cctx -> L ) ;\n cctx -> iv_set = 1 ;\n }\n return 1 ;\n }\n static int aes_ccm_tls_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_CCM_CTX * cctx = EVP_C_DATA ( EVP_AES_CCM_CTX , ctx ) ;\n CCM128_CONTEXT * ccm = & cctx -> ccm ;\n if ( out != in || len < ( EVP_CCM_TLS_EXPLICIT_IV_LEN + ( size_t ) cctx -> M ) ) return - 1 ;\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) memcpy ( out , EVP_CIPHER_CTX_buf_noconst ( ctx ) , EVP_CCM_TLS_EXPLICIT_IV_LEN ) ;\n memcpy ( EVP_CIPHER_CTX_iv_noconst ( ctx ) + EVP_CCM_TLS_FIXED_IV_LEN , in , EVP_CCM_TLS_EXPLICIT_IV_LEN ) ;\n len -= EVP_CCM_TLS_EXPLICIT_IV_LEN + cctx -> M ;\n if ( CRYPTO_ccm128_setiv ( ccm , EVP_CIPHER_CTX_iv_noconst ( ctx ) , 15 - cctx -> L , len ) ) return - 1 ;\n CRYPTO_ccm128_aad ( ccm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , cctx -> tls_aad_len ) ;\n in += EVP_CCM_TLS_EXPLICIT_IV_LEN ;\n out += EVP_CCM_TLS_EXPLICIT_IV_LEN ;\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( cctx -> str ? CRYPTO_ccm128_encrypt_ccm64 ( ccm , in , out , len , cctx -> str ) : CRYPTO_ccm128_encrypt ( ccm , in , out , len ) ) return - 1 ;\n if ( ! CRYPTO_ccm128_tag ( ccm , out + len , cctx -> M ) ) return - 1 ;\n return len + EVP_CCM_TLS_EXPLICIT_IV_LEN + cctx -> M ;\n }\n else {\n if ( cctx -> str ? ! CRYPTO_ccm128_decrypt_ccm64 ( ccm , in , out , len , cctx -> str ) : ! CRYPTO_ccm128_decrypt ( ccm , in , out , len ) ) {\n unsigned char tag [ 16 ] ;\n if ( CRYPTO_ccm128_tag ( ccm , tag , cctx -> M ) ) {\n if ( ! CRYPTO_memcmp ( tag , in + len , cctx -> M ) ) return len ;\n }\n }\n OPENSSL_cleanse ( out , len ) ;\n return - 1 ;\n }\n }\n static int aes_ccm_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_CCM_CTX * cctx = EVP_C_DATA ( EVP_AES_CCM_CTX , ctx ) ;\n CCM128_CONTEXT * ccm = & cctx -> ccm ;\n if ( ! cctx -> key_set ) return - 1 ;\n if ( cctx -> tls_aad_len >= 0 ) return aes_ccm_tls_cipher ( ctx , out , in , len ) ;\n if ( ! cctx -> iv_set ) return - 1 ;\n if ( ! EVP_CIPHER_CTX_encrypting ( ctx ) && ! cctx -> tag_set ) return - 1 ;\n if ( ! out ) {\n if ( ! in ) {\n if ( CRYPTO_ccm128_setiv ( ccm , EVP_CIPHER_CTX_iv_noconst ( ctx ) , 15 - cctx -> L , len ) ) return - 1 ;\n cctx -> len_set = 1 ;\n return len ;\n }\n if ( ! cctx -> len_set && len ) return - 1 ;\n CRYPTO_ccm128_aad ( ccm , in , len ) ;\n return len ;\n }\n if ( ! in ) return 0 ;\n if ( ! cctx -> len_set ) {\n if ( CRYPTO_ccm128_setiv ( ccm , EVP_CIPHER_CTX_iv_noconst ( ctx ) , 15 - cctx -> L , len ) ) return - 1 ;\n cctx -> len_set = 1 ;\n }\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( cctx -> str ? CRYPTO_ccm128_encrypt_ccm64 ( ccm , in , out , len , cctx -> str ) : CRYPTO_ccm128_encrypt ( ccm , in , out , len ) ) return - 1 ;\n cctx -> tag_set = 1 ;\n return len ;\n }\n else {\n int rv = - 1 ;\n if ( cctx -> str ? ! CRYPTO_ccm128_decrypt_ccm64 ( ccm , in , out , len , cctx -> str ) : ! CRYPTO_ccm128_decrypt ( ccm , in , out , len ) ) {\n unsigned char tag [ 16 ] ;\n if ( CRYPTO_ccm128_tag ( ccm , tag , cctx -> M ) ) {\n if ( ! CRYPTO_memcmp ( tag , EVP_CIPHER_CTX_buf_noconst ( ctx ) , cctx -> M ) ) rv = len ;\n }\n }\n if ( rv == - 1 ) OPENSSL_cleanse ( out , len ) ;\n cctx -> iv_set = 0 ;\n cctx -> tag_set = 0 ;\n cctx -> len_set = 0 ;\n return rv ;\n }\n }\n # define aes_ccm_cleanup NULL BLOCK_CIPHER_custom ( NID_aes , 128 , 1 , 12 , ccm , CCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 192 , 1 , 12 , ccm , CCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS )"}
{"idx": 17792, "target": 0, "func": "guint16 de_cn_common_gsm_map_nas_sys_info ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n curr_offset = offset ;\n proto_tree_add_item ( tree , hf_gsm_a_lac , tvb , curr_offset , 2 , ENC_BIG_ENDIAN ) ;\n curr_offset += 2 ;\n EXTRANEOUS_DATA_CHECK ( len , curr_offset - offset , pinfo , & ei_gsm_a_extraneous_data ) ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 17793, "target": 0, "func": "static unsigned long sun4m_load_kernel ( const char * kernel_filename , const char * initrd_filename , ram_addr_t RAM_size ) {\n int linux_boot ;\n unsigned int i ;\n long initrd_size , kernel_size ;\n uint8_t * ptr ;\n linux_boot = ( kernel_filename != NULL ) ;\n kernel_size = 0 ;\n if ( linux_boot ) {\n int bswap_needed ;\n # ifdef BSWAP_NEEDED bswap_needed = 1 ;\n # else bswap_needed = 0 ;\n # endif kernel_size = load_elf ( kernel_filename , translate_kernel_address , NULL , NULL , NULL , NULL , 1 , ELF_MACHINE , 0 ) ;\n if ( kernel_size < 0 ) kernel_size = load_aout ( kernel_filename , KERNEL_LOAD_ADDR , RAM_size - KERNEL_LOAD_ADDR , bswap_needed , TARGET_PAGE_SIZE ) ;\n if ( kernel_size < 0 ) kernel_size = load_image_targphys ( kernel_filename , KERNEL_LOAD_ADDR , RAM_size - KERNEL_LOAD_ADDR ) ;\n if ( kernel_size < 0 ) {\n fprintf ( stderr , \"qemu: could not load kernel '%s'\\n\" , kernel_filename ) ;\n exit ( 1 ) ;\n }\n initrd_size = 0 ;\n if ( initrd_filename ) {\n initrd_size = load_image_targphys ( initrd_filename , INITRD_LOAD_ADDR , RAM_size - INITRD_LOAD_ADDR ) ;\n if ( initrd_size < 0 ) {\n fprintf ( stderr , \"qemu: could not load initial ram disk '%s'\\n\" , initrd_filename ) ;\n exit ( 1 ) ;\n }\n }\n if ( initrd_size > 0 ) {\n for ( i = 0 ;\n i < 64 * TARGET_PAGE_SIZE ;\n i += TARGET_PAGE_SIZE ) {\n ptr = rom_ptr ( KERNEL_LOAD_ADDR + i ) ;\n if ( ldl_p ( ptr ) == 0x48647253 ) {\n stl_p ( ptr + 16 , INITRD_LOAD_ADDR ) ;\n stl_p ( ptr + 20 , initrd_size ) ;\n break ;\n }\n }\n }\n }\n return kernel_size ;\n }"}
{"idx": 17794, "target": 0, "func": "static void gtkui_connection_purge ( void * conn ) {\n struct row_pairs * row , * nextrow , * list = connections ;\n ( void ) conn ;\n DEBUG_MSG ( \"gtkui_connection_purge\" ) ;\n connections = NULL ;\n for ( row = list ;\n row ;\n row = nextrow ) {\n nextrow = row -> next ;\n SAFE_FREE ( row ) ;\n }\n conntrack_purge ( ) ;\n gtk_list_store_clear ( GTK_LIST_STORE ( ls_conns ) ) ;\n }"}
{"idx": 17795, "target": 0, "func": "TEST_F ( SSLErrorAssistantTest , DynamicInterstitialListCommonNameMismatch ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n EXPECT_EQ ( 1u , ssl_info ( ) . public_key_hashes . size ( ) ) ;\n auto config_proto = std : : make_unique < chrome_browser_ssl : : SSLErrorAssistantConfig > ( ) ;\n config_proto -> set_version_id ( kLargeVersionId ) ;\n chrome_browser_ssl : : DynamicInterstitial * filter = config_proto -> add_dynamic_interstitial ( ) ;\n filter -> set_interstitial_type ( chrome_browser_ssl : : DynamicInterstitial : : INTERSTITIAL_PAGE_SSL ) ;\n filter -> set_cert_error ( chrome_browser_ssl : : DynamicInterstitial : : UNKNOWN_CERT_ERROR ) ;\n filter -> add_sha256_hash ( \"sha256uthatch\" ) ;\n filter -> add_sha256_hash ( ssl_info ( ) . public_key_hashes [ 0 ] . ToString ( ) ) ;\n filter -> add_sha256_hash ( \"sha256/treecreeper\" ) ;\n filter -> set_issuer_common_name_regex ( \"beeeater\" ) ;\n filter -> set_issuer_organization_regex ( issuer_organization_name ( ) ) ;\n filter -> set_mitm_software_name ( \"UwS\" ) ;\n error_assistant ( ) -> SetErrorAssistantProto ( std : : move ( config_proto ) ) ;\n EXPECT_FALSE ( error_assistant ( ) -> MatchDynamicInterstitial ( ssl_info ( ) ) ) ;\n }"}
{"idx": 17796, "target": 0, "func": "static void ossl_cipher_free ( void * ptr ) {\n EVP_CIPHER_CTX_free ( ptr ) ;\n }"}
{"idx": 17797, "target": 0, "func": "int qemuMonitorTextSetPassword ( qemuMonitorPtr mon , const char * protocol , const char * password , const char * action_if_connected ) {\n char * cmd = NULL ;\n char * reply = NULL ;\n int ret = - 1 ;\n if ( virAsprintf ( & cmd , \"set_password %s \\\"%s\\\" %s\" , protocol , password , action_if_connected ) < 0 ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , _ ( \"setting password failed\" ) ) ;\n goto cleanup ;\n }\n if ( strstr ( reply , \"unknown command:\" ) ) {\n ret = - 2 ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( reply ) ;\n VIR_FREE ( cmd ) ;\n return ret ;\n }"}
{"idx": 17798, "target": 1, "func": "static void untrusted_launcher_response_callback ( GtkDialog * dialog , int response_id , ActivateParametersDesktop * parameters ) {\n GdkScreen * screen ;\n char * uri ;\n GFile * file ;\n switch ( response_id ) {\n case RESPONSE_RUN : {\n screen = gtk_widget_get_screen ( GTK_WIDGET ( parameters -> parent_window ) ) ;\n uri = nautilus_file_get_uri ( parameters -> file ) ;\n DEBUG ( \"Launching untrusted launcher %s\" , uri ) ;\n nautilus_launch_desktop_file ( screen , uri , NULL , parameters -> parent_window ) ;\n g_free ( uri ) ;\n }\n break ;\n case RESPONSE_MARK_TRUSTED : {\n file = nautilus_file_get_location ( parameters -> file ) ;\n nautilus_file_mark_desktop_file_trusted ( file , parameters -> parent_window , TRUE , NULL , NULL ) ;\n g_object_unref ( file ) ;\n }\n break ;\n default : {\n }\n break ;\n }\n gtk_widget_destroy ( GTK_WIDGET ( dialog ) ) ;\n activate_parameters_desktop_free ( parameters ) ;\n }"}
{"idx": 17799, "target": 0, "func": "static void vapic_map_rom_writable ( VAPICROMState * s ) {\n hwaddr rom_paddr = s -> rom_state_paddr & ROM_BLOCK_MASK ;\n MemoryRegionSection section ;\n MemoryRegion * as ;\n size_t rom_size ;\n uint8_t * ram ;\n as = sysbus_address_space ( & s -> busdev ) ;\n if ( s -> rom_mapped_writable ) {\n memory_region_del_subregion ( as , & s -> rom ) ;\n memory_region_destroy ( & s -> rom ) ;\n }\n section = memory_region_find ( as , 0 , 1 ) ;\n ram = memory_region_get_ram_ptr ( section . mr ) ;\n rom_size = ram [ rom_paddr + 2 ] * ROM_BLOCK_SIZE ;\n s -> rom_size = rom_size ;\n rom_size += rom_paddr & ~ TARGET_PAGE_MASK ;\n rom_paddr &= TARGET_PAGE_MASK ;\n rom_size = TARGET_PAGE_ALIGN ( rom_size ) ;\n memory_region_init_alias ( & s -> rom , OBJECT ( s ) , \"kvmvapic-rom\" , section . mr , rom_paddr , rom_size ) ;\n memory_region_add_subregion_overlap ( as , rom_paddr , & s -> rom , 1000 ) ;\n s -> rom_mapped_writable = true ;\n memory_region_unref ( section . mr ) ;\n }"}
{"idx": 17800, "target": 0, "func": "static void handle_conv_msg ( PurpleConversation * conv , const char * who , const char * message_ , guint32 bee_flags , time_t mtime ) {\n struct im_connection * ic = purple_ic_by_pa ( conv -> account ) ;\n struct groupchat * gc = conv -> ui_data ;\n char * message = g_strdup ( message_ ) ;\n PurpleBuddy * buddy ;\n buddy = purple_find_buddy ( conv -> account , who ) ;\n if ( buddy != NULL ) {\n who = purple_buddy_get_name ( buddy ) ;\n }\n if ( conv -> type == PURPLE_CONV_TYPE_IM ) {\n imcb_buddy_msg ( ic , who , message , bee_flags , mtime ) ;\n }\n else if ( gc ) {\n imcb_chat_msg ( gc , who , message , bee_flags , mtime ) ;\n }\n g_free ( message ) ;\n }"}
{"idx": 17801, "target": 0, "func": "static void kadmin_modprinc_usage ( ) {\n fprintf ( stderr , _ ( \"usage: modify_principal [options] principal\\n\" ) ) ;\n fprintf ( stderr , _ ( \"\\toptions are:\\n\" ) ) ;\n fprintf ( stderr , _ ( \"\\t\\t[-x db_princ_args]* [-expire expdate] \" \"[-pwexpire pwexpdate] [-maxlife maxtixlife]\\n\" \"\\t\\t[-kvno kvno] [-policy policy] [-clearpolicy]\\n\" \"\\t\\t[-maxrenewlife maxrenewlife] [-unlock] \" \"[{\n+|-}\nattribute]\\n\" ) ) ;\n fprintf ( stderr , \"\\tattributes are:\\n\" ) ;\n fprintf ( stderr , _ ( \"\\t\\tallow_postdated allow_forwardable allow_tgs_req \" \"allow_renewable\\n\" \"\\t\\tallow_proxiable allow_dup_skey allow_tix \" \"requires_preauth\\n\" \"\\t\\trequires_hwauth needchange allow_svr \" \"password_changing_service\\n\" \"\\t\\tok_as_delegate ok_to_auth_as_delegate \" \"no_auth_data_required\\n\" \"\\nwhere,\\n\\t[-x db_princ_args]* - any number of database \" \"specific arguments.\\n\" \"\\t\\t\\tLook at each database documentation for supported \" \"arguments\\n\" ) ) ;\n }"}
{"idx": 17802, "target": 1, "func": "void pdo_stmt_init ( TSRMLS_D ) {\n zend_class_entry ce ;\n INIT_CLASS_ENTRY ( ce , \"PDOStatement\" , pdo_dbstmt_functions ) ;\n pdo_dbstmt_ce = zend_register_internal_class ( & ce TSRMLS_CC ) ;\n pdo_dbstmt_ce -> get_iterator = pdo_stmt_iter_get ;\n pdo_dbstmt_ce -> create_object = pdo_dbstmt_new ;\n zend_class_implements ( pdo_dbstmt_ce TSRMLS_CC , 1 , zend_ce_traversable ) ;\n zend_declare_property_null ( pdo_dbstmt_ce , \"queryString\" , sizeof ( \"queryString\" ) - 1 , ZEND_ACC_PUBLIC TSRMLS_CC ) ;\n memcpy ( & pdo_dbstmt_object_handlers , & std_object_handlers , sizeof ( zend_object_handlers ) ) ;\n pdo_dbstmt_object_handlers . write_property = dbstmt_prop_write ;\n pdo_dbstmt_object_handlers . unset_property = dbstmt_prop_delete ;\n pdo_dbstmt_object_handlers . get_method = dbstmt_method_get ;\n pdo_dbstmt_object_handlers . compare_objects = dbstmt_compare ;\n pdo_dbstmt_object_handlers . clone_obj = dbstmt_clone_obj ;\n INIT_CLASS_ENTRY ( ce , \"PDORow\" , pdo_row_functions ) ;\n pdo_row_ce = zend_register_internal_class ( & ce TSRMLS_CC ) ;\n pdo_row_ce -> ce_flags |= ZEND_ACC_FINAL_CLASS ;\n pdo_row_ce -> create_object = pdo_row_new ;\n pdo_row_ce -> serialize = pdo_row_serialize ;\n }"}
{"idx": 17803, "target": 0, "func": "VAR * var_init ( VAR * v , const char * name , int name_len , const char * val , int val_len ) {\n int val_alloc_len ;\n VAR * tmp_var ;\n if ( ! name_len && name ) name_len = strlen ( name ) ;\n if ( ! val_len && val ) val_len = strlen ( val ) ;\n if ( ! val ) val_len = 0 ;\n val_alloc_len = val_len + 16 ;\n if ( ! ( tmp_var = v ) && ! ( tmp_var = ( VAR * ) my_malloc ( sizeof ( * tmp_var ) + name_len + 2 , MYF ( MY_WME ) ) ) ) die ( \"Out of memory\" ) ;\n if ( name != NULL ) {\n tmp_var -> name = reinterpret_cast < char * > ( tmp_var ) + sizeof ( * tmp_var ) ;\n memcpy ( tmp_var -> name , name , name_len ) ;\n tmp_var -> name [ name_len ] = 0 ;\n }\n else tmp_var -> name = NULL ;\n tmp_var -> alloced = ( v == 0 ) ;\n if ( ! ( tmp_var -> str_val = ( char * ) my_malloc ( val_alloc_len + 1 , MYF ( MY_WME ) ) ) ) die ( \"Out of memory\" ) ;\n if ( val ) memcpy ( tmp_var -> str_val , val , val_len ) ;\n tmp_var -> str_val [ val_len ] = 0 ;\n var_check_int ( tmp_var ) ;\n tmp_var -> name_len = name_len ;\n tmp_var -> str_val_len = val_len ;\n tmp_var -> alloced_len = val_alloc_len ;\n return tmp_var ;\n }"}
{"idx": 17804, "target": 0, "func": "static int SpoolssSetPrinter_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 17805, "target": 0, "func": "ATF_TP_ADD_TCS ( tp ) {\n ATF_TP_ADD_TC ( tp , option_refcnt ) ;\n ATF_TP_ADD_TC ( tp , pretty_print_option ) ;\n return ( atf_no_error ( ) ) ;\n }"}
{"idx": 17806, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( DownloadExtensionTest , DownloadExtensionTest_SetShelfEnabled ) {\n LoadExtension ( \"downloads_split\" ) ;\n EXPECT_TRUE ( RunFunction ( new DownloadsSetShelfEnabledFunction ( ) , \"[false]\" ) ) ;\n EXPECT_FALSE ( DownloadCoreServiceFactory : : GetForBrowserContext ( browser ( ) -> profile ( ) ) -> IsShelfEnabled ( ) ) ;\n EXPECT_TRUE ( RunFunction ( new DownloadsSetShelfEnabledFunction ( ) , \"[true]\" ) ) ;\n EXPECT_TRUE ( DownloadCoreServiceFactory : : GetForBrowserContext ( browser ( ) -> profile ( ) ) -> IsShelfEnabled ( ) ) ;\n }"}
{"idx": 17807, "target": 1, "func": "static void vga_draw_line24_be ( VGACommonState * s1 , uint8_t * d , const uint8_t * s , int width ) {\n int w ;\n uint32_t r , g , b ;\n w = width ;\n do {\n r = s [ 0 ] ;\n g = s [ 1 ] ;\n b = s [ 2 ] ;\n ( ( uint32_t * ) d ) [ 0 ] = rgb_to_pixel32 ( r , g , b ) ;\n s += 3 ;\n d += 4 ;\n }\n while ( -- w != 0 ) ;\n }"}
{"idx": 17808, "target": 0, "func": "void close_statements ( ) {\n struct st_connection * con ;\n DBUG_ENTER ( \"close_statements\" ) ;\n for ( con = connections ;\n con < next_con ;\n con ++ ) {\n if ( con -> stmt ) mysql_stmt_close ( con -> stmt ) ;\n con -> stmt = 0 ;\n }\n DBUG_VOID_RETURN ;\n }"}
{"idx": 17809, "target": 0, "func": "static VALUE ossl_asn1cons_each ( VALUE self ) {\n rb_ary_each ( ossl_asn1_get_value ( self ) ) ;\n return self ;\n }"}
{"idx": 17810, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n int h , w ;\n AVFrame * pic = avctx -> coded_frame ;\n const uint8_t * src = avpkt -> data ;\n uint8_t * Y1 , * Y2 , * U , * V ;\n int ret ;\n if ( pic -> data [ 0 ] ) avctx -> release_buffer ( avctx , pic ) ;\n if ( avpkt -> size < avctx -> width * avctx -> height * 3 / 2 + 16 ) {\n av_log ( avctx , AV_LOG_ERROR , \"packet too small\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n pic -> reference = 0 ;\n if ( ( ret = ff_get_buffer ( avctx , pic ) ) < 0 ) return ret ;\n pic -> pict_type = AV_PICTURE_TYPE_I ;\n pic -> key_frame = 1 ;\n if ( AV_RL32 ( src ) != 0x01000002 ) {\n av_log_ask_for_sample ( avctx , \"Unknown frame header %X\\n\" , AV_RL32 ( src ) ) ;\n return AVERROR_PATCHWELCOME ;\n }\n src += 16 ;\n Y1 = pic -> data [ 0 ] ;\n Y2 = pic -> data [ 0 ] + pic -> linesize [ 0 ] ;\n U = pic -> data [ 1 ] ;\n V = pic -> data [ 2 ] ;\n for ( h = 0 ;\n h < avctx -> height ;\n h += 2 ) {\n for ( w = 0 ;\n w < avctx -> width ;\n w += 2 ) {\n AV_COPY16 ( Y1 + w , src ) ;\n AV_COPY16 ( Y2 + w , src + 2 ) ;\n U [ w >> 1 ] = src [ 4 ] + 0x80 ;\n V [ w >> 1 ] = src [ 5 ] + 0x80 ;\n src += 6 ;\n }\n Y1 += pic -> linesize [ 0 ] << 1 ;\n Y2 += pic -> linesize [ 0 ] << 1 ;\n U += pic -> linesize [ 1 ] ;\n V += pic -> linesize [ 2 ] ;\n }\n * got_frame = 1 ;\n * ( AVFrame * ) data = * pic ;\n return avpkt -> size ;\n }"}
{"idx": 17811, "target": 0, "func": "void SSL_CTX_set_default_read_buffer_len ( SSL_CTX * ctx , size_t len ) {\n ctx -> default_read_buf_len = len ;\n }"}
{"idx": 17812, "target": 0, "func": "static int dsa_pub_encode ( X509_PUBKEY * pk , const EVP_PKEY * pkey ) {\n DSA * dsa ;\n int ptype ;\n unsigned char * penc = NULL ;\n int penclen ;\n ASN1_STRING * str = NULL ;\n ASN1_INTEGER * pubint = NULL ;\n dsa = pkey -> pkey . dsa ;\n if ( pkey -> save_parameters && dsa -> p && dsa -> q && dsa -> g ) {\n str = ASN1_STRING_new ( ) ;\n if ( str == NULL ) {\n DSAerr ( DSA_F_DSA_PUB_ENCODE , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n str -> length = i2d_DSAparams ( dsa , & str -> data ) ;\n if ( str -> length <= 0 ) {\n DSAerr ( DSA_F_DSA_PUB_ENCODE , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n ptype = V_ASN1_SEQUENCE ;\n }\n else ptype = V_ASN1_UNDEF ;\n pubint = BN_to_ASN1_INTEGER ( dsa -> pub_key , NULL ) ;\n if ( pubint == NULL ) {\n DSAerr ( DSA_F_DSA_PUB_ENCODE , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n penclen = i2d_ASN1_INTEGER ( pubint , & penc ) ;\n ASN1_INTEGER_free ( pubint ) ;\n if ( penclen <= 0 ) {\n DSAerr ( DSA_F_DSA_PUB_ENCODE , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n if ( X509_PUBKEY_set0_param ( pk , OBJ_nid2obj ( EVP_PKEY_DSA ) , ptype , str , penc , penclen ) ) return 1 ;\n err : OPENSSL_free ( penc ) ;\n ASN1_STRING_free ( str ) ;\n return 0 ;\n }"}
{"idx": 17813, "target": 0, "func": "static void NextCh ( cmsIT8 * it8 ) {\n if ( it8 -> FileStack [ it8 -> IncludeSP ] -> Stream ) {\n it8 -> ch = fgetc ( it8 -> FileStack [ it8 -> IncludeSP ] -> Stream ) ;\n if ( feof ( it8 -> FileStack [ it8 -> IncludeSP ] -> Stream ) ) {\n if ( it8 -> IncludeSP > 0 ) {\n fclose ( it8 -> FileStack [ it8 -> IncludeSP -- ] -> Stream ) ;\n it8 -> ch = ' ' ;\n }\n else it8 -> ch = 0 ;\n }\n }\n else {\n it8 -> ch = * it8 -> Source ;\n if ( it8 -> ch ) it8 -> Source ++ ;\n }\n }"}
{"idx": 17814, "target": 0, "func": "int call_ber_oid_callback ( const char * oid , tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , void * data ) {\n tvbuff_t * next_tvb ;\n const char * syntax = NULL ;\n int len = 0 ;\n if ( ! tvb ) {\n return offset ;\n }\n next_tvb = tvb_new_subset_remaining ( tvb , offset ) ;\n if ( oid == NULL || ( ( ( ( syntax = get_ber_oid_syntax ( oid ) ) == NULL ) || ( len = dissector_try_string ( ber_syntax_dissector_table , syntax , next_tvb , pinfo , tree , data ) ) == 0 ) && ( len = dissector_try_string ( ber_oid_dissector_table , oid , next_tvb , pinfo , tree , data ) ) == 0 ) ) {\n proto_item * item = NULL ;\n proto_tree * next_tree = NULL ;\n gint length_remaining ;\n length_remaining = tvb_reported_length_remaining ( tvb , offset ) ;\n if ( oid == NULL ) {\n item = proto_tree_add_expert ( tree , pinfo , & ei_ber_no_oid , next_tvb , 0 , length_remaining ) ;\n }\n else if ( tvb_get_ntohs ( tvb , offset ) != 0x0500 ) {\n if ( syntax ) {\n item = proto_tree_add_expert_format ( tree , pinfo , & ei_ber_syntax_not_implemented , next_tvb , 0 , length_remaining , \"BER: Dissector for syntax:%s not implemented.\" \" Contact Wireshark developers if you want this supported\" , syntax ) ;\n }\n else {\n item = proto_tree_add_expert ( tree , pinfo , & ei_ber_oid_not_implemented , next_tvb , 0 , length_remaining ) ;\n }\n }\n else {\n next_tree = tree ;\n }\n if ( decode_unexpected ) {\n int ber_offset ;\n gint32 ber_len ;\n if ( item ) {\n next_tree = proto_item_add_subtree ( item , ett_ber_unknown ) ;\n }\n ber_offset = get_ber_identifier ( next_tvb , 0 , NULL , NULL , NULL ) ;\n ber_offset = get_ber_length ( next_tvb , ber_offset , & ber_len , NULL ) ;\n if ( ( ber_len + ber_offset ) == length_remaining ) {\n dissect_unknown_ber ( pinfo , next_tvb , 0 , next_tree ) ;\n }\n else {\n proto_tree_add_item ( next_tree , hf_ber_unknown_data , next_tvb , 0 , length_remaining , ENC_NA ) ;\n }\n }\n len = length_remaining ;\n }\n offset += len ;\n return offset ;\n }"}
{"idx": 17815, "target": 0, "func": "static int dissect_rsvp ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"RSVP\" ) ;\n dissect_rsvp_common ( tvb , pinfo , tree , FALSE ) ;\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 17816, "target": 0, "func": "static void copy_cell ( Indeo3DecodeContext * ctx , Plane * plane , Cell * cell ) {\n int h , w , mv_x , mv_y , offset , offset_dst ;\n uint8_t * src , * dst ;\n offset_dst = ( cell -> ypos << 2 ) * plane -> pitch + ( cell -> xpos << 2 ) ;\n dst = plane -> pixels [ ctx -> buf_sel ] + offset_dst ;\n mv_y = cell -> mv_ptr [ 0 ] ;\n mv_x = cell -> mv_ptr [ 1 ] ;\n offset = offset_dst + mv_y * plane -> pitch + mv_x ;\n src = plane -> pixels [ ctx -> buf_sel ^ 1 ] + offset ;\n h = cell -> height << 2 ;\n for ( w = cell -> width ;\n w > 0 ;\n ) {\n if ( ! ( ( cell -> xpos << 2 ) & 15 ) && w >= 4 ) {\n for ( ;\n w >= 4 ;\n src += 16 , dst += 16 , w -= 4 ) ctx -> dsp . put_no_rnd_pixels_tab [ 0 ] [ 0 ] ( dst , src , plane -> pitch , h ) ;\n }\n if ( ! ( ( cell -> xpos << 2 ) & 7 ) && w >= 2 ) {\n ctx -> dsp . put_no_rnd_pixels_tab [ 1 ] [ 0 ] ( dst , src , plane -> pitch , h ) ;\n w -= 2 ;\n src += 8 ;\n dst += 8 ;\n }\n if ( w >= 1 ) {\n ctx -> dsp . put_no_rnd_pixels_tab [ 2 ] [ 0 ] ( dst , src , plane -> pitch , h ) ;\n w -- ;\n src += 4 ;\n dst += 4 ;\n }\n }\n }"}
{"idx": 17817, "target": 0, "func": "int evdns_nameserver_ip_add ( const char * ip_as_string ) {\n struct in_addr ina ;\n int port ;\n char buf [ 20 ] ;\n const char * cp ;\n cp = strchr ( ip_as_string , ':' ) ;\n if ( ! cp ) {\n cp = ip_as_string ;\n port = 53 ;\n }\n else {\n port = strtoint ( cp + 1 ) ;\n if ( port < 0 || port > 65535 ) {\n return 4 ;\n }\n if ( ( cp - ip_as_string ) >= ( int ) sizeof ( buf ) ) {\n return 4 ;\n }\n memcpy ( buf , ip_as_string , cp - ip_as_string ) ;\n buf [ cp - ip_as_string ] = '\\0' ;\n cp = buf ;\n }\n if ( ! inet_aton ( cp , & ina ) ) {\n return 4 ;\n }\n return _evdns_nameserver_add_impl ( ina . s_addr , port ) ;\n }"}
{"idx": 17818, "target": 1, "func": "static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 17819, "target": 0, "func": "static void qio_channel_websock_class_init ( ObjectClass * klass , void * class_data G_GNUC_UNUSED ) {\n QIOChannelClass * ioc_klass = QIO_CHANNEL_CLASS ( klass ) ;\n ioc_klass -> io_writev = qio_channel_websock_writev ;\n ioc_klass -> io_readv = qio_channel_websock_readv ;\n ioc_klass -> io_set_blocking = qio_channel_websock_set_blocking ;\n ioc_klass -> io_set_cork = qio_channel_websock_set_cork ;\n ioc_klass -> io_set_delay = qio_channel_websock_set_delay ;\n ioc_klass -> io_close = qio_channel_websock_close ;\n ioc_klass -> io_shutdown = qio_channel_websock_shutdown ;\n ioc_klass -> io_create_watch = qio_channel_websock_create_watch ;\n }"}
{"idx": 17820, "target": 1, "func": "TEST_F ( ScoredHistoryMatchTest , Scoring ) {\n base : : Time now = base : : Time : : NowFromSystemTime ( ) ;\n history : : URLRow row_a ( MakeURLRow ( \"http://fedcba\" , \"abcd bcd\" , 3 , 30 , 1 ) ) ;\n RowWordStarts word_starts_a ;\n PopulateWordStarts ( row_a , & word_starts_a ) ;\n WordStarts one_word_no_offset ( 1 , 0u ) ;\n VisitInfoVector visits_a = CreateVisitInfoVector ( 3 , 30 , now ) ;\n visits_a [ 0 ] . second = ui : : PAGE_TRANSITION_TYPED ;\n ScoredHistoryMatch scored_a ( row_a , visits_a , std : : string ( ) , ASCIIToUTF16 ( \"abc\" ) , Make1Term ( \"abc\" ) , one_word_no_offset , word_starts_a , false , nullptr , now ) ;\n history : : URLRow row_b ( MakeURLRow ( \"http://abcdef\" , \"abcd bcd\" , 10 , 30 , 1 ) ) ;\n RowWordStarts word_starts_b ;\n PopulateWordStarts ( row_b , & word_starts_b ) ;\n VisitInfoVector visits_b = CreateVisitInfoVector ( 10 , 30 , now ) ;\n visits_b [ 0 ] . second = ui : : PAGE_TRANSITION_TYPED ;\n ScoredHistoryMatch scored_b ( row_b , visits_b , std : : string ( ) , ASCIIToUTF16 ( \"abc\" ) , Make1Term ( \"abc\" ) , one_word_no_offset , word_starts_b , false , nullptr , now ) ;\n EXPECT_GT ( scored_b . raw_score , scored_a . raw_score ) ;\n history : : URLRow row_c ( MakeURLRow ( \"http://abcdef\" , \"abcd bcd\" , 3 , 10 , 1 ) ) ;\n RowWordStarts word_starts_c ;\n PopulateWordStarts ( row_c , & word_starts_c ) ;\n VisitInfoVector visits_c = CreateVisitInfoVector ( 3 , 10 , now ) ;\n visits_c [ 0 ] . second = ui : : PAGE_TRANSITION_TYPED ;\n ScoredHistoryMatch scored_c ( row_c , visits_c , std : : string ( ) , ASCIIToUTF16 ( \"abc\" ) , Make1Term ( \"abc\" ) , one_word_no_offset , word_starts_c , false , nullptr , now ) ;\n EXPECT_GT ( scored_c . raw_score , scored_a . raw_score ) ;\n history : : URLRow row_d ( MakeURLRow ( \"http://abcdef\" , \"abcd bcd\" , 3 , 30 , 3 ) ) ;\n RowWordStarts word_starts_d ;\n PopulateWordStarts ( row_d , & word_starts_d ) ;\n VisitInfoVector visits_d = CreateVisitInfoVector ( 3 , 30 , now ) ;\n visits_d [ 0 ] . second = ui : : PAGE_TRANSITION_TYPED ;\n visits_d [ 1 ] . second = ui : : PAGE_TRANSITION_TYPED ;\n visits_d [ 2 ] . second = ui : : PAGE_TRANSITION_TYPED ;\n ScoredHistoryMatch scored_d ( row_d , visits_d , std : : string ( ) , ASCIIToUTF16 ( \"abc\" ) , Make1Term ( \"abc\" ) , one_word_no_offset , word_starts_d , false , nullptr , now ) ;\n EXPECT_GT ( scored_d . raw_score , scored_a . raw_score ) ;\n history : : URLRow row_e ( MakeURLRow ( \"http://csi.csi.csi/csi_csi\" , \"CSI Guide to CSI Las Vegas, CSI New York, CSI Provo\" , 3 , 30 , 3 ) ) ;\n RowWordStarts word_starts_e ;\n PopulateWordStarts ( row_e , & word_starts_e ) ;\n const VisitInfoVector visits_e = visits_d ;\n ScoredHistoryMatch scored_e ( row_e , visits_e , std : : string ( ) , ASCIIToUTF16 ( \"csi\" ) , Make1Term ( \"csi\" ) , one_word_no_offset , word_starts_e , false , nullptr , now ) ;\n EXPECT_LT ( scored_e . raw_score , 1400 ) ;\n ScoredHistoryMatch scored_f ( row_a , visits_a , std : : string ( ) , ASCIIToUTF16 ( \"cd\" ) , Make1Term ( \"cd\" ) , one_word_no_offset , word_starts_a , false , nullptr , now ) ;\n EXPECT_EQ ( scored_f . raw_score , 0 ) ;\n }"}
{"idx": 17821, "target": 0, "func": "GSList * mainwindows_get_sorted ( int reverse ) {\n GSList * tmp , * list ;\n list = NULL ;\n for ( tmp = mainwindows ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n list = g_slist_insert_sorted ( list , tmp -> data , ( GCompareFunc ) ( reverse ? mainwindows_compare_reverse : mainwindows_compare ) ) ;\n }\n return list ;\n }"}
{"idx": 17822, "target": 0, "func": "int sort_ft_buf_flush ( MI_SORT_PARAM * sort_param ) {\n SORT_INFO * sort_info = sort_param -> sort_info ;\n SORT_KEY_BLOCKS * key_block = sort_info -> key_block ;\n MYISAM_SHARE * share = sort_info -> info -> s ;\n uint val_off , val_len ;\n int error ;\n SORT_FT_BUF * ft_buf = sort_info -> ft_buf ;\n uchar * from , * to ;\n val_len = share -> ft2_keyinfo . keylength ;\n get_key_full_length_rdonly ( val_off , ft_buf -> lastkey ) ;\n to = ft_buf -> lastkey + val_off ;\n if ( ft_buf -> buf ) {\n error = sort_insert_key ( sort_param , key_block , ft_buf -> lastkey , HA_OFFSET_ERROR ) ;\n for ( from = to + val_len ;\n ! error && from < ft_buf -> buf ;\n from += val_len ) {\n memcpy ( to , from , val_len ) ;\n error = sort_insert_key ( sort_param , key_block , ft_buf -> lastkey , HA_OFFSET_ERROR ) ;\n }\n return error ;\n }\n error = flush_pending_blocks ( sort_param ) ;\n ft_intXstore ( ft_buf -> lastkey + val_off , - ft_buf -> count ) ;\n _mi_dpointer ( sort_info -> info , ft_buf -> lastkey + val_off + HA_FT_WLEN , share -> state . key_root [ sort_param -> key ] ) ;\n sort_info -> key_block = sort_info -> key_block_end - sort_info -> param -> sort_key_blocks ;\n sort_param -> keyinfo = share -> keyinfo + sort_param -> key ;\n share -> state . key_root [ sort_param -> key ] = HA_OFFSET_ERROR ;\n return error ? error : sort_insert_key ( sort_param , sort_info -> key_block , ft_buf -> lastkey , HA_OFFSET_ERROR ) ;\n }"}
{"idx": 17823, "target": 0, "func": "int remoteDecodeClientMessageHeader ( struct qemud_client_message * msg ) {\n XDR xdr ;\n int ret = - 1 ;\n msg -> bufferOffset = REMOTE_MESSAGE_HEADER_XDR_LEN ;\n xdrmem_create ( & xdr , msg -> buffer + msg -> bufferOffset , msg -> bufferLength - msg -> bufferOffset , XDR_DECODE ) ;\n if ( ! xdr_remote_message_header ( & xdr , & msg -> hdr ) ) goto cleanup ;\n msg -> bufferOffset += xdr_getpos ( & xdr ) ;\n ret = 0 ;\n cleanup : xdr_destroy ( & xdr ) ;\n return ret ;\n }"}
{"idx": 17824, "target": 0, "func": "static int get_flags ( MotionEstContext * c , int direct , int chroma ) {\n return ( ( c -> avctx -> flags & CODEC_FLAG_QPEL ) ? FLAG_QPEL : 0 ) + ( direct ? FLAG_DIRECT : 0 ) + ( chroma ? FLAG_CHROMA : 0 ) ;\n }"}
{"idx": 17825, "target": 0, "func": "static const char * json_escape_str ( AVBPrint * dst , const char * src , void * log_ctx ) {\n static const char json_escape [ ] = {\n '\"' , '\\\\' , '\\b' , '\\f' , '\\n' , '\\r' , '\\t' , 0 }\n ;\n static const char json_subst [ ] = {\n '\"' , '\\\\' , 'b' , 'f' , 'n' , 'r' , 't' , 0 }\n ;\n const char * p ;\n for ( p = src ;\n * p ;\n p ++ ) {\n char * s = strchr ( json_escape , * p ) ;\n if ( s ) {\n av_bprint_chars ( dst , '\\\\' , 1 ) ;\n av_bprint_chars ( dst , json_subst [ s - json_escape ] , 1 ) ;\n }\n else if ( ( unsigned char ) * p < 32 ) {\n av_bprintf ( dst , \"\\\\u00%02x\" , * p & 0xff ) ;\n }\n else {\n av_bprint_chars ( dst , * p , 1 ) ;\n }\n }\n return dst -> str ;\n }"}
{"idx": 17826, "target": 0, "func": "static int _compare_path_table ( const void * v1 , const void * v2 ) {\n const struct isoent * p1 , * p2 ;\n const char * s1 , * s2 ;\n int cmp , l ;\n p1 = * ( ( const struct isoent * * ) ( uintptr_t ) v1 ) ;\n p2 = * ( ( const struct isoent * * ) ( uintptr_t ) v2 ) ;\n cmp = p1 -> parent -> dir_number - p2 -> parent -> dir_number ;\n if ( cmp != 0 ) return ( cmp ) ;\n s1 = p1 -> identifier ;\n s2 = p2 -> identifier ;\n l = p1 -> ext_off ;\n if ( l > p2 -> ext_off ) l = p2 -> ext_off ;\n cmp = strncmp ( s1 , s2 , l ) ;\n if ( cmp != 0 ) return ( cmp ) ;\n if ( p1 -> ext_off < p2 -> ext_off ) {\n s2 += l ;\n l = p2 -> ext_off - p1 -> ext_off ;\n while ( l -- ) if ( 0x20 != * s2 ++ ) return ( 0x20 - * ( const unsigned char * ) ( s2 - 1 ) ) ;\n }\n else if ( p1 -> ext_off > p2 -> ext_off ) {\n s1 += l ;\n l = p1 -> ext_off - p2 -> ext_off ;\n while ( l -- ) if ( 0x20 != * s1 ++ ) return ( * ( const unsigned char * ) ( s1 - 1 ) - 0x20 ) ;\n }\n return ( 0 ) ;\n }"}
{"idx": 17827, "target": 0, "func": "static inline int get_amv ( MpegEncContext * s , int n ) {\n int x , y , mb_v , sum , dx , dy , shift ;\n int len = 1 << ( s -> f_code + 4 ) ;\n const int a = s -> sprite_warping_accuracy ;\n if ( s -> workaround_bugs & FF_BUG_AMV ) len >>= s -> quarter_sample ;\n if ( s -> real_sprite_warping_points == 1 ) {\n if ( s -> divx_version == 500 && s -> divx_build == 413 ) sum = s -> sprite_offset [ 0 ] [ n ] / ( 1 << ( a - s -> quarter_sample ) ) ;\n else sum = RSHIFT ( s -> sprite_offset [ 0 ] [ n ] << s -> quarter_sample , a ) ;\n }\n else {\n dx = s -> sprite_delta [ n ] [ 0 ] ;\n dy = s -> sprite_delta [ n ] [ 1 ] ;\n shift = s -> sprite_shift [ 0 ] ;\n if ( n ) dy -= 1 << ( shift + a + 1 ) ;\n else dx -= 1 << ( shift + a + 1 ) ;\n mb_v = s -> sprite_offset [ 0 ] [ n ] + dx * s -> mb_x * 16 + dy * s -> mb_y * 16 ;\n sum = 0 ;\n for ( y = 0 ;\n y < 16 ;\n y ++ ) {\n int v ;\n v = mb_v + dy * y ;\n for ( x = 0 ;\n x < 16 ;\n x ++ ) {\n sum += v >> shift ;\n v += dx ;\n }\n }\n sum = RSHIFT ( sum , a + 8 - s -> quarter_sample ) ;\n }\n if ( sum < - len ) sum = - len ;\n else if ( sum >= len ) sum = len - 1 ;\n return sum ;\n }"}
{"idx": 17828, "target": 0, "func": "static void cmd_server_modify ( const char * data ) {\n cmd_server_add_modify ( data , FALSE ) ;\n }"}
{"idx": 17829, "target": 0, "func": "void fe_channels_deinit ( void ) {\n signal_remove ( \"channel created\" , ( SIGNAL_FUNC ) signal_channel_created ) ;\n signal_remove ( \"channel destroyed\" , ( SIGNAL_FUNC ) signal_channel_destroyed ) ;\n signal_remove ( \"window item changed\" , ( SIGNAL_FUNC ) signal_window_item_changed ) ;\n signal_remove ( \"server disconnected\" , ( SIGNAL_FUNC ) sig_disconnected ) ;\n signal_remove ( \"channel joined\" , ( SIGNAL_FUNC ) sig_channel_joined ) ;\n command_unbind ( \"join\" , ( SIGNAL_FUNC ) cmd_join ) ;\n command_unbind ( \"channel\" , ( SIGNAL_FUNC ) cmd_channel ) ;\n command_unbind ( \"channel add\" , ( SIGNAL_FUNC ) cmd_channel_add ) ;\n command_unbind ( \"channel modify\" , ( SIGNAL_FUNC ) cmd_channel_modify ) ;\n command_unbind ( \"channel remove\" , ( SIGNAL_FUNC ) cmd_channel_remove ) ;\n command_unbind ( \"channel list\" , ( SIGNAL_FUNC ) cmd_channel_list ) ;\n command_unbind ( \"names\" , ( SIGNAL_FUNC ) cmd_names ) ;\n command_unbind ( \"cycle\" , ( SIGNAL_FUNC ) cmd_cycle ) ;\n }"}
{"idx": 17830, "target": 0, "func": "static PyObject * string_new ( PyTypeObject * type , PyObject * args , PyObject * kwds ) {\n PyObject * x = NULL ;\n static char * kwlist [ ] = {\n \"object\" , 0 }\n ;\n if ( type != & PyString_Type ) return str_subtype_new ( type , args , kwds ) ;\n if ( ! PyArg_ParseTupleAndKeywords ( args , kwds , \"|O:str\" , kwlist , & x ) ) return NULL ;\n if ( x == NULL ) return PyString_FromString ( \"\" ) ;\n return PyObject_Str ( x ) ;\n }"}
{"idx": 17831, "target": 1, "func": "int main ( int argc , char * * argv ) {\n struct event signal_int ;\n event_init ( ) ;\n event_set ( & signal_int , SIGINT , EV_SIGNAL | EV_PERSIST , signal_cb , & signal_int ) ;\n event_add ( & signal_int , NULL ) ;\n event_dispatch ( ) ;\n return ( 0 ) ;\n }"}
{"idx": 17832, "target": 0, "func": "static int dissect_h245_T_messageContent_item ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 646 \"../../asn1/h245/h245.cnf\" gef_ctx_t * parent_gefx ;\n parent_gefx = gef_ctx_get ( actx -> private_data ) ;\n actx -> private_data = gef_ctx_alloc ( parent_gefx , NULL ) ;\n offset = dissect_h245_GenericParameter ( tvb , offset , actx , tree , hf_index ) ;\n # line 651 \"../../asn1/h245/h245.cnf\" actx -> private_data = parent_gefx ;\n return offset ;\n }"}
{"idx": 17833, "target": 0, "func": "static void * U_CALLCONV myMemAlloc ( const void * context , size_t size ) {\n char * retPtr = ( char * ) malloc ( size + sizeof ( ctest_AlignedMemory ) ) ;\n if ( retPtr != NULL ) {\n retPtr += sizeof ( ctest_AlignedMemory ) ;\n }\n gBlockCount ++ ;\n return retPtr ;\n }"}
{"idx": 17834, "target": 0, "func": "static const char * cmd_conn_write_state_limit ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n long int limit ;\n if ( dcfg == NULL ) return NULL ;\n limit = strtol ( p1 , NULL , 10 ) ;\n if ( ( limit == LONG_MAX ) || ( limit == LONG_MIN ) || ( limit <= 0 ) ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid value for SecWriteStateLimit: %s\" , p1 ) ;\n }\n conn_write_state_limit = limit ;\n return NULL ;\n }"}
{"idx": 17835, "target": 0, "func": "void login_settings_deinit ( void ) {\n if ( set_cache != NULL ) master_service_settings_cache_deinit ( & set_cache ) ;\n }"}
{"idx": 17836, "target": 0, "func": "static int selinux_socket_unix_stream_connect ( struct sock * sock , struct sock * other , struct sock * newsk ) {\n struct sk_security_struct * sksec_sock = sock -> sk_security ;\n struct sk_security_struct * sksec_other = other -> sk_security ;\n struct sk_security_struct * sksec_new = newsk -> sk_security ;\n struct common_audit_data ad ;\n struct lsm_network_audit net = {\n 0 , }\n ;\n int err ;\n ad . type = LSM_AUDIT_DATA_NET ;\n ad . u . net = & net ;\n ad . u . net -> sk = other ;\n err = avc_has_perm ( sksec_sock -> sid , sksec_other -> sid , sksec_other -> sclass , UNIX_STREAM_SOCKET__CONNECTTO , & ad ) ;\n if ( err ) return err ;\n sksec_new -> peer_sid = sksec_sock -> sid ;\n err = security_sid_mls_copy ( sksec_other -> sid , sksec_sock -> sid , & sksec_new -> sid ) ;\n if ( err ) return err ;\n sksec_sock -> peer_sid = sksec_new -> sid ;\n return 0 ;\n }"}
{"idx": 17837, "target": 0, "func": "static int CreateHTTPRangeResponseHeader ( char * ByteRangeSpecifier , off_t FileLength , struct SendInstruction * Instr ) {\n off_t FirstByte , LastByte ;\n char * RangeInput ;\n char * Ptr ;\n int rc = 0 ;\n Instr -> IsRangeActive = 1 ;\n Instr -> ReadSendSize = FileLength ;\n if ( ! ByteRangeSpecifier ) return HTTP_BAD_REQUEST ;\n RangeInput = strdup ( ByteRangeSpecifier ) ;\n if ( ! RangeInput ) return HTTP_INTERNAL_SERVER_ERROR ;\n if ( StrStr ( RangeInput , \"bytes\" ) == NULL || ( Ptr = StrStr ( RangeInput , \"=\" ) ) == NULL ) {\n free ( RangeInput ) ;\n Instr -> IsRangeActive = 0 ;\n return HTTP_BAD_REQUEST ;\n }\n Ptr = Ptr + 1 ;\n if ( FileLength < 0 ) {\n free ( RangeInput ) ;\n return HTTP_REQUEST_RANGE_NOT_SATISFIABLE ;\n }\n if ( GetNextRange ( & Ptr , & FirstByte , & LastByte ) != - 1 ) {\n if ( FileLength < FirstByte ) {\n free ( RangeInput ) ;\n return HTTP_REQUEST_RANGE_NOT_SATISFIABLE ;\n }\n if ( FirstByte >= 0 && LastByte >= 0 && LastByte >= FirstByte ) {\n if ( LastByte >= FileLength ) LastByte = FileLength - 1 ;\n Instr -> RangeOffset = FirstByte ;\n Instr -> ReadSendSize = LastByte - FirstByte + 1 ;\n rc = snprintf ( Instr -> RangeHeader , sizeof ( Instr -> RangeHeader ) , \"CONTENT-RANGE: bytes %\" PRId64 \"-%\" PRId64 \"/%\" PRId64 \"\\r\\n\" , ( int64_t ) FirstByte , ( int64_t ) LastByte , ( int64_t ) FileLength ) ;\n if ( rc < 0 || ( unsigned int ) rc >= sizeof ( Instr -> RangeHeader ) ) {\n free ( RangeInput ) ;\n return HTTP_INTERNAL_SERVER_ERROR ;\n }\n }\n else if ( FirstByte >= 0 && LastByte == - 1 && FirstByte < FileLength ) {\n Instr -> RangeOffset = FirstByte ;\n Instr -> ReadSendSize = FileLength - FirstByte ;\n rc = snprintf ( Instr -> RangeHeader , sizeof ( Instr -> RangeHeader ) , \"CONTENT-RANGE: bytes %\" PRId64 \"-%\" PRId64 \"/%\" PRId64 \"\\r\\n\" , ( int64_t ) FirstByte , ( int64_t ) ( FileLength - 1 ) , ( int64_t ) FileLength ) ;\n if ( rc < 0 || ( unsigned int ) rc >= sizeof ( Instr -> RangeHeader ) ) {\n free ( RangeInput ) ;\n return HTTP_INTERNAL_SERVER_ERROR ;\n }\n }\n else if ( FirstByte == - 1 && LastByte > 0 ) {\n if ( LastByte >= FileLength ) {\n Instr -> RangeOffset = 0 ;\n Instr -> ReadSendSize = FileLength ;\n rc = snprintf ( Instr -> RangeHeader , sizeof ( Instr -> RangeHeader ) , \"CONTENT-RANGE: bytes 0-%\" PRId64 \"/%\" PRId64 \"\\r\\n\" , ( int64_t ) ( FileLength - 1 ) , ( int64_t ) FileLength ) ;\n }\n else {\n Instr -> RangeOffset = FileLength - LastByte ;\n Instr -> ReadSendSize = LastByte ;\n rc = snprintf ( Instr -> RangeHeader , sizeof ( Instr -> RangeHeader ) , \"CONTENT-RANGE: bytes %\" PRId64 \"-%\" PRId64 \"/%\" PRId64 \"\\r\\n\" , ( int64_t ) ( FileLength - LastByte ) , ( int64_t ) FileLength - 1 , ( int64_t ) FileLength ) ;\n }\n if ( rc < 0 || ( unsigned int ) rc >= sizeof ( Instr -> RangeHeader ) ) {\n free ( RangeInput ) ;\n return HTTP_INTERNAL_SERVER_ERROR ;\n }\n }\n else {\n free ( RangeInput ) ;\n return HTTP_REQUEST_RANGE_NOT_SATISFIABLE ;\n }\n }\n else {\n free ( RangeInput ) ;\n return HTTP_REQUEST_RANGE_NOT_SATISFIABLE ;\n }\n free ( RangeInput ) ;\n return HTTP_OK ;\n }"}
{"idx": 17838, "target": 0, "func": "static void do_output_subblock ( RA144Context * ractx , const uint16_t * lpc_coefs , int gval , GetBitContext * gb ) {\n int cba_idx = get_bits ( gb , 7 ) ;\n int gain = get_bits ( gb , 8 ) ;\n int cb1_idx = get_bits ( gb , 7 ) ;\n int cb2_idx = get_bits ( gb , 7 ) ;\n ff_subblock_synthesis ( ractx , lpc_coefs , cba_idx , cb1_idx , cb2_idx , gval , gain ) ;\n }"}
{"idx": 17839, "target": 0, "func": "static void pdf_run_Bstar ( fz_context * ctx , pdf_processor * proc ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_show_path ( ctx , pr , 0 , 1 , 1 , 1 ) ;\n }"}
{"idx": 17840, "target": 0, "func": "static int runPgDump ( const char * dbname ) {\n PQExpBuffer connstrbuf = createPQExpBuffer ( ) ;\n PQExpBuffer cmd = createPQExpBuffer ( ) ;\n int ret ;\n appendPQExpBuffer ( cmd , \"\\\"%s\\\" %s\" , pg_dump_bin , pgdumpopts -> data ) ;\n if ( filename ) appendPQExpBufferStr ( cmd , \" -Fa \" ) ;\n else appendPQExpBufferStr ( cmd , \" -Fp \" ) ;\n appendPQExpBuffer ( connstrbuf , \"%s dbname=\" , connstr ) ;\n appendConnStrVal ( connstrbuf , dbname ) ;\n appendShellString ( cmd , connstrbuf -> data ) ;\n if ( verbose ) fprintf ( stderr , _ ( \"%s: running \\\"%s\\\"\\n\" ) , progname , cmd -> data ) ;\n fflush ( stdout ) ;\n fflush ( stderr ) ;\n ret = system ( cmd -> data ) ;\n destroyPQExpBuffer ( cmd ) ;\n destroyPQExpBuffer ( connstrbuf ) ;\n return ret ;\n }"}
{"idx": 17841, "target": 0, "func": "TSReturnCode TSHttpTxnServerPacketDscpSet ( TSHttpTxn txnp , int dscp ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n if ( nullptr != sm -> ua_session ) {\n HttpServerSession * ssn = sm -> ua_session -> get_server_session ( ) ;\n if ( nullptr != ssn ) {\n NetVConnection * vc = ssn -> get_netvc ( ) ;\n if ( vc != nullptr ) {\n vc -> options . packet_tos = ( uint32_t ) dscp << 2 ;\n vc -> apply_options ( ) ;\n }\n }\n }\n TSHttpTxnConfigIntSet ( txnp , TS_CONFIG_NET_SOCK_PACKET_TOS_OUT , dscp << 2 ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 17842, "target": 0, "func": "static int get_gf_active_quality ( const RATE_CONTROL * const rc , int q , vpx_bit_depth_t bit_depth ) {\n int * arfgf_low_motion_minq ;\n int * arfgf_high_motion_minq ;\n ASSIGN_MINQ_TABLE ( bit_depth , arfgf_low_motion_minq ) ;\n ASSIGN_MINQ_TABLE ( bit_depth , arfgf_high_motion_minq ) ;\n return get_active_quality ( q , rc -> gfu_boost , gf_low , gf_high , arfgf_low_motion_minq , arfgf_high_motion_minq ) ;\n }"}
{"idx": 17843, "target": 1, "func": "static int dissect_h225_AdmissionRejectReason ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 657 \"./asn1/h225/h225.cnf\" gint32 value ;\n h225_packet_info * h225_pi ;\n h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_AdmissionRejectReason , AdmissionRejectReason_choice , & value ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> reason = value ;\n }\n return offset ;\n }"}
{"idx": 17844, "target": 0, "func": "static void mspack_fmap_copy ( void * src , void * dst , size_t num ) {\n memcpy ( dst , src , num ) ;\n }"}
{"idx": 17845, "target": 0, "func": "static void get_seg ( SegmentCache * lhs , const struct kvm_segment * rhs ) {\n lhs -> selector = rhs -> selector ;\n lhs -> base = rhs -> base ;\n lhs -> limit = rhs -> limit ;\n lhs -> flags = ( rhs -> type << DESC_TYPE_SHIFT ) | ( ( rhs -> present && ! rhs -> unusable ) * DESC_P_MASK ) | ( rhs -> dpl << DESC_DPL_SHIFT ) | ( rhs -> db << DESC_B_SHIFT ) | ( rhs -> s * DESC_S_MASK ) | ( rhs -> l << DESC_L_SHIFT ) | ( rhs -> g * DESC_G_MASK ) | ( rhs -> avl * DESC_AVL_MASK ) ;\n }"}
{"idx": 17846, "target": 0, "func": "static int dissect_spoolss_uint16uni ( tvbuff_t * tvb , int offset , packet_info * pinfo _U_ , proto_tree * tree , guint8 * drep _U_ , char * * data , int hf_name ) {\n gint len , remaining ;\n char * text ;\n if ( offset % 2 ) offset += 2 - ( offset % 2 ) ;\n remaining = tvb_reported_length_remaining ( tvb , offset ) ;\n if ( remaining <= 0 ) {\n if ( data ) * data = g_strdup ( \"\" ) ;\n return offset ;\n }\n text = tvb_get_string_enc ( NULL , tvb , offset , remaining , ENC_UTF_16 | ENC_LITTLE_ENDIAN ) ;\n len = ( int ) strlen ( text ) ;\n proto_tree_add_string ( tree , hf_name , tvb , offset , len * 2 , text ) ;\n if ( data ) * data = text ;\n else g_free ( text ) ;\n return offset + ( len + 1 ) * 2 ;\n }"}
{"idx": 17847, "target": 1, "func": "static int decode_cabac_mb_skip ( H264Context * h , int mb_x , int mb_y ) {\n int mba_xy , mbb_xy ;\n int ctx = 0 ;\n if ( FRAME_MBAFF ) {\n int mb_xy = mb_x + ( mb_y & ~ 1 ) * h -> mb_stride ;\n mba_xy = mb_xy - 1 ;\n if ( ( mb_y & 1 ) && h -> slice_table [ mba_xy ] == h -> slice_num && MB_FIELD == ! ! IS_INTERLACED ( h -> cur_pic . f . mb_type [ mba_xy ] ) ) mba_xy += h -> mb_stride ;\n if ( MB_FIELD ) {\n mbb_xy = mb_xy - h -> mb_stride ;\n if ( ! ( mb_y & 1 ) && h -> slice_table [ mbb_xy ] == h -> slice_num && IS_INTERLACED ( h -> cur_pic . f . mb_type [ mbb_xy ] ) ) mbb_xy -= h -> mb_stride ;\n }\n else mbb_xy = mb_x + ( mb_y - 1 ) * h -> mb_stride ;\n }\n else {\n int mb_xy = h -> mb_xy ;\n mba_xy = mb_xy - 1 ;\n mbb_xy = mb_xy - ( h -> mb_stride << FIELD_PICTURE ) ;\n }\n if ( h -> slice_table [ mba_xy ] == h -> slice_num && ! IS_SKIP ( h -> cur_pic . f . mb_type [ mba_xy ] ) ) ctx ++ ;\n if ( h -> slice_table [ mbb_xy ] == h -> slice_num && ! IS_SKIP ( h -> cur_pic . f . mb_type [ mbb_xy ] ) ) ctx ++ ;\n if ( h -> slice_type_nos == AV_PICTURE_TYPE_B ) ctx += 13 ;\n return get_cabac_noinline ( & h -> cabac , & h -> cabac_state [ 11 + ctx ] ) ;\n }"}
{"idx": 17848, "target": 0, "func": "static void matroska_convert_tags ( AVFormatContext * s ) {\n MatroskaDemuxContext * matroska = s -> priv_data ;\n MatroskaTags * tags = matroska -> tags . elem ;\n int i , j ;\n for ( i = 0 ;\n i < matroska -> tags . nb_elem ;\n i ++ ) {\n if ( tags [ i ] . target . attachuid ) {\n MatroskaAttachment * attachment = matroska -> attachments . elem ;\n for ( j = 0 ;\n j < matroska -> attachments . nb_elem ;\n j ++ ) if ( attachment [ j ] . uid == tags [ i ] . target . attachuid && attachment [ j ] . stream ) matroska_convert_tag ( s , & tags [ i ] . tag , & attachment [ j ] . stream -> metadata , NULL ) ;\n }\n else if ( tags [ i ] . target . chapteruid ) {\n MatroskaChapter * chapter = matroska -> chapters . elem ;\n for ( j = 0 ;\n j < matroska -> chapters . nb_elem ;\n j ++ ) if ( chapter [ j ] . uid == tags [ i ] . target . chapteruid && chapter [ j ] . chapter ) matroska_convert_tag ( s , & tags [ i ] . tag , & chapter [ j ] . chapter -> metadata , NULL ) ;\n }\n else if ( tags [ i ] . target . trackuid ) {\n MatroskaTrack * track = matroska -> tracks . elem ;\n for ( j = 0 ;\n j < matroska -> tracks . nb_elem ;\n j ++ ) if ( track [ j ] . uid == tags [ i ] . target . trackuid && track [ j ] . stream ) matroska_convert_tag ( s , & tags [ i ] . tag , & track [ j ] . stream -> metadata , NULL ) ;\n }\n else {\n matroska_convert_tag ( s , & tags [ i ] . tag , & s -> metadata , tags [ i ] . target . type ) ;\n }\n }\n }"}
{"idx": 17849, "target": 0, "func": "static void xmlrpc_append_char_encode ( mowgli_string_t * s , const char * s1 ) {\n long unsigned int i ;\n unsigned char c ;\n char buf2 [ 15 ] ;\n if ( ( ! ( s1 ) || ( * ( s1 ) == '\\0' ) ) ) {\n return ;\n }\n for ( i = 0 ;\n s1 [ i ] != '\\0' ;\n i ++ ) {\n c = s1 [ i ] ;\n if ( c > 127 ) {\n snprintf ( buf2 , sizeof buf2 , \"&#%d;\n\" , c ) ;\n s -> append ( s , buf2 , strlen ( buf2 ) ) ;\n }\n else if ( c == '&' ) {\n s -> append ( s , \"&amp;\n\" , 5 ) ;\n }\n else if ( c == '<' ) {\n s -> append ( s , \"&lt;\n\" , 4 ) ;\n }\n else if ( c == '>' ) {\n s -> append ( s , \"&gt;\n\" , 4 ) ;\n }\n else if ( c == '\"' ) {\n s -> append ( s , \"&quot;\n\" , 6 ) ;\n }\n else {\n s -> append_char ( s , c ) ;\n }\n }\n }"}
{"idx": 17850, "target": 0, "func": "static char * strtok_r ( char * s , const char * delim , char * * state ) {\n return strtok ( s , delim ) ;\n }"}
{"idx": 17851, "target": 0, "func": "static Datum ExecEvalRow ( RowExprState * rstate , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n HeapTuple tuple ;\n Datum * values ;\n bool * isnull ;\n int natts ;\n ListCell * arg ;\n int i ;\n * isNull = false ;\n if ( isDone ) * isDone = ExprSingleResult ;\n natts = rstate -> tupdesc -> natts ;\n values = ( Datum * ) palloc0 ( natts * sizeof ( Datum ) ) ;\n isnull = ( bool * ) palloc ( natts * sizeof ( bool ) ) ;\n memset ( isnull , true , natts * sizeof ( bool ) ) ;\n i = 0 ;\n foreach ( arg , rstate -> args ) {\n ExprState * e = ( ExprState * ) lfirst ( arg ) ;\n values [ i ] = ExecEvalExpr ( e , econtext , & isnull [ i ] , NULL ) ;\n i ++ ;\n }\n tuple = heap_form_tuple ( rstate -> tupdesc , values , isnull ) ;\n pfree ( values ) ;\n pfree ( isnull ) ;\n return HeapTupleGetDatum ( tuple ) ;\n }"}
{"idx": 17852, "target": 0, "func": "static void test_bug6081 ( ) {\n int rc ;\n myheader ( \"test_bug6081\" ) ;\n rc = simple_command ( mysql , COM_DROP_DB , ( uchar * ) current_db , ( ulong ) strlen ( current_db ) , 0 ) ;\n if ( rc == 0 && mysql_errno ( mysql ) != ER_UNKNOWN_COM_ERROR ) {\n myerror ( NULL ) ;\n die ( __FILE__ , __LINE__ , \"COM_DROP_DB failed\" ) ;\n }\n rc = simple_command ( mysql , COM_DROP_DB , ( uchar * ) current_db , ( ulong ) strlen ( current_db ) , 0 ) ;\n myquery_r ( rc ) ;\n rc = simple_command ( mysql , COM_CREATE_DB , ( uchar * ) current_db , ( ulong ) strlen ( current_db ) , 0 ) ;\n if ( rc == 0 && mysql_errno ( mysql ) != ER_UNKNOWN_COM_ERROR ) {\n myerror ( NULL ) ;\n die ( __FILE__ , __LINE__ , \"COM_CREATE_DB failed\" ) ;\n }\n rc = simple_command ( mysql , COM_CREATE_DB , ( uchar * ) current_db , ( ulong ) strlen ( current_db ) , 0 ) ;\n myquery_r ( rc ) ;\n rc = mysql_select_db ( mysql , current_db ) ;\n myquery ( rc ) ;\n }"}
{"idx": 17853, "target": 0, "func": "static int dissect_h245_CustomPictureClockFrequency ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_CustomPictureClockFrequency , CustomPictureClockFrequency_sequence ) ;\n return offset ;\n }"}
{"idx": 17854, "target": 0, "func": "static int selinux_task_kill ( struct task_struct * p , struct siginfo * info , int sig , u32 secid ) {\n u32 perm ;\n int rc ;\n if ( ! sig ) perm = PROCESS__SIGNULL ;\n else perm = signal_to_av ( sig ) ;\n if ( secid ) rc = avc_has_perm ( secid , task_sid ( p ) , SECCLASS_PROCESS , perm , NULL ) ;\n else rc = current_has_perm ( p , perm ) ;\n return rc ;\n }"}
{"idx": 17855, "target": 0, "func": "static void dissect_rsvp_explicit_route ( proto_item * ti , packet_info * pinfo , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class , int type ) {\n switch ( type ) {\n case 1 : proto_tree_add_uint ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type ) ;\n proto_item_set_text ( ti , \"EXPLICIT ROUTE: \" ) ;\n dissect_rsvp_ero_rro_subobjects ( ti , pinfo , rsvp_object_tree , tvb , offset + 4 , obj_length , rsvp_class ) ;\n break ;\n default : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"Unknown (%u)\" , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_explicit_route_data , tvb , offset + 4 , obj_length - 4 , ENC_NA ) ;\n break ;\n }\n }"}
{"idx": 17856, "target": 0, "func": "static uint32_t vmsvga_index_read ( void * opaque , uint32_t address ) {\n struct vmsvga_state_s * s = opaque ;\n return s -> index ;\n }"}
{"idx": 17857, "target": 0, "func": "void vp9_foreach_transformed_block_in_plane ( const MACROBLOCKD * const xd , BLOCK_SIZE bsize , int plane , foreach_transformed_block_visitor visit , void * arg ) {\n const struct macroblockd_plane * const pd = & xd -> plane [ plane ] ;\n const MB_MODE_INFO * mbmi = & xd -> mi [ 0 ] . src_mi -> mbmi ;\n const TX_SIZE tx_size = plane ? get_uv_tx_size ( mbmi , pd ) : mbmi -> tx_size ;\n const BLOCK_SIZE plane_bsize = get_plane_block_size ( bsize , pd ) ;\n const int num_4x4_w = num_4x4_blocks_wide_lookup [ plane_bsize ] ;\n const int num_4x4_h = num_4x4_blocks_high_lookup [ plane_bsize ] ;\n const int step = 1 << ( tx_size << 1 ) ;\n int i ;\n if ( xd -> mb_to_right_edge < 0 || xd -> mb_to_bottom_edge < 0 ) {\n int r , c ;\n int max_blocks_wide = num_4x4_w ;\n int max_blocks_high = num_4x4_h ;\n if ( xd -> mb_to_right_edge < 0 ) max_blocks_wide += ( xd -> mb_to_right_edge >> ( 5 + pd -> subsampling_x ) ) ;\n if ( xd -> mb_to_bottom_edge < 0 ) max_blocks_high += ( xd -> mb_to_bottom_edge >> ( 5 + pd -> subsampling_y ) ) ;\n i = 0 ;\n for ( r = 0 ;\n r < num_4x4_h ;\n r += ( 1 << tx_size ) ) {\n for ( c = 0 ;\n c < num_4x4_w ;\n c += ( 1 << tx_size ) ) {\n if ( r < max_blocks_high && c < max_blocks_wide ) visit ( plane , i , plane_bsize , tx_size , arg ) ;\n i += step ;\n }\n }\n }\n else {\n for ( i = 0 ;\n i < num_4x4_w * num_4x4_h ;\n i += step ) visit ( plane , i , plane_bsize , tx_size , arg ) ;\n }\n }"}
{"idx": 17858, "target": 0, "func": "static int vvalue_tvb_get8 ( tvbuff_t * tvb , int offset , void * val ) {\n guint64 * ui8 = ( guint64 * ) val ;\n * ui8 = tvb_get_letoh64 ( tvb , offset ) ;\n return 8 ;\n }"}
{"idx": 17859, "target": 0, "func": "static Datum ExecEvalArrayCoerceExpr ( ArrayCoerceExprState * astate , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n ArrayCoerceExpr * acoerce = ( ArrayCoerceExpr * ) astate -> xprstate . expr ;\n Datum result ;\n FunctionCallInfoData locfcinfo ;\n result = ExecEvalExpr ( astate -> arg , econtext , isNull , isDone ) ;\n if ( isDone && * isDone == ExprEndResult ) return result ;\n if ( * isNull ) return result ;\n if ( ! OidIsValid ( acoerce -> elemfuncid ) ) {\n ArrayType * array = DatumGetArrayTypePCopy ( result ) ;\n ARR_ELEMTYPE ( array ) = astate -> resultelemtype ;\n PG_RETURN_ARRAYTYPE_P ( array ) ;\n }\n if ( astate -> elemfunc . fn_oid == InvalidOid ) {\n AclResult aclresult ;\n aclresult = pg_proc_aclcheck ( acoerce -> elemfuncid , GetUserId ( ) , ACL_EXECUTE ) ;\n if ( aclresult != ACLCHECK_OK ) aclcheck_error ( aclresult , ACL_KIND_PROC , get_func_name ( acoerce -> elemfuncid ) ) ;\n InvokeFunctionExecuteHook ( acoerce -> elemfuncid ) ;\n fmgr_info_cxt ( acoerce -> elemfuncid , & ( astate -> elemfunc ) , econtext -> ecxt_per_query_memory ) ;\n fmgr_info_set_expr ( ( Node * ) acoerce , & ( astate -> elemfunc ) ) ;\n }\n InitFunctionCallInfoData ( locfcinfo , & ( astate -> elemfunc ) , 3 , InvalidOid , NULL , NULL ) ;\n locfcinfo . arg [ 0 ] = result ;\n locfcinfo . arg [ 1 ] = Int32GetDatum ( acoerce -> resulttypmod ) ;\n locfcinfo . arg [ 2 ] = BoolGetDatum ( acoerce -> isExplicit ) ;\n locfcinfo . argnull [ 0 ] = false ;\n locfcinfo . argnull [ 1 ] = false ;\n locfcinfo . argnull [ 2 ] = false ;\n return array_map ( & locfcinfo , astate -> resultelemtype , astate -> amstate ) ;\n }"}
{"idx": 17860, "target": 0, "func": "static void set_upstream_server_address ( ngx_http_upstream_t * upstream , ngx_http_upstream_conf_t * upstream_config ) {\n ngx_http_upstream_server_t * servers = upstream_config -> upstream -> servers -> elts ;\n ngx_addr_t * address = & servers [ 0 ] . addrs [ 0 ] ;\n const char * request_socket_filename ;\n unsigned int request_socket_filename_len ;\n struct sockaddr_un * sockaddr ;\n if ( address -> name . data == pp_placeholder_upstream_address . data ) {\n sockaddr = ( struct sockaddr_un * ) address -> sockaddr ;\n request_socket_filename = pp_agents_starter_get_request_socket_filename ( pp_agents_starter , & request_socket_filename_len ) ;\n address -> name . data = ( u_char * ) request_socket_filename ;\n address -> name . len = request_socket_filename_len ;\n strncpy ( sockaddr -> sun_path , request_socket_filename , sizeof ( sockaddr -> sun_path ) ) ;\n sockaddr -> sun_path [ sizeof ( sockaddr -> sun_path ) - 1 ] = '\\0' ;\n }\n }"}
{"idx": 17861, "target": 0, "func": "static void gsm_a_dtap_rr_stat_init ( new_stat_tap_ui * new_stat , new_stat_tap_gui_init_cb gui_callback , void * gui_data ) {\n gsm_a_stat_init ( new_stat , gui_callback , gui_data , \"GSM A-I/F DTAP Radio Resource Management Statistics\" , gsm_a_dtap_msg_rr_strings ) ;\n }"}
{"idx": 17862, "target": 0, "func": "static UBool CnvExtAddTable ( NewConverter * cnvData , UCMTable * table , UConverterStaticData * staticData ) {\n CnvExtData * extData ;\n if ( table -> unicodeMask & UCNV_HAS_SURROGATES ) {\n fprintf ( stderr , \"error: contains mappings for surrogate code points\\n\" ) ;\n return FALSE ;\n }\n staticData -> conversionType = UCNV_MBCS ;\n extData = ( CnvExtData * ) cnvData ;\n return makeToUTable ( extData , table ) && makeFromUTable ( extData , table ) ;\n }"}
{"idx": 17863, "target": 0, "func": "static int bink_decode_plane ( BinkContext * c , AVFrame * frame , GetBitContext * gb , int plane_idx , int is_chroma ) {\n int blk , ret ;\n int i , j , bx , by ;\n uint8_t * dst , * prev , * ref , * ref_start , * ref_end ;\n int v , col [ 2 ] ;\n const uint8_t * scan ;\n int xoff , yoff ;\n LOCAL_ALIGNED_16 ( int16_t , block , [ 64 ] ) ;\n LOCAL_ALIGNED_16 ( uint8_t , ublock , [ 64 ] ) ;\n LOCAL_ALIGNED_16 ( int32_t , dctblock , [ 64 ] ) ;\n int coordmap [ 64 ] ;\n const int stride = frame -> linesize [ plane_idx ] ;\n int bw = is_chroma ? ( c -> avctx -> width + 15 ) >> 4 : ( c -> avctx -> width + 7 ) >> 3 ;\n int bh = is_chroma ? ( c -> avctx -> height + 15 ) >> 4 : ( c -> avctx -> height + 7 ) >> 3 ;\n int width = c -> avctx -> width >> is_chroma ;\n init_lengths ( c , FFMAX ( width , 8 ) , bw ) ;\n for ( i = 0 ;\n i < BINK_NB_SRC ;\n i ++ ) read_bundle ( gb , c , i ) ;\n ref_start = c -> last -> data [ plane_idx ] ? c -> last -> data [ plane_idx ] : frame -> data [ plane_idx ] ;\n ref_end = ref_start + ( bw - 1 + c -> last -> linesize [ plane_idx ] * ( bh - 1 ) ) * 8 ;\n for ( i = 0 ;\n i < 64 ;\n i ++ ) coordmap [ i ] = ( i & 7 ) + ( i >> 3 ) * stride ;\n for ( by = 0 ;\n by < bh ;\n by ++ ) {\n if ( ( ret = read_block_types ( c -> avctx , gb , & c -> bundle [ BINK_SRC_BLOCK_TYPES ] ) ) < 0 ) return ret ;\n if ( ( ret = read_block_types ( c -> avctx , gb , & c -> bundle [ BINK_SRC_SUB_BLOCK_TYPES ] ) ) < 0 ) return ret ;\n if ( ( ret = read_colors ( gb , & c -> bundle [ BINK_SRC_COLORS ] , c ) ) < 0 ) return ret ;\n if ( ( ret = read_patterns ( c -> avctx , gb , & c -> bundle [ BINK_SRC_PATTERN ] ) ) < 0 ) return ret ;\n if ( ( ret = read_motion_values ( c -> avctx , gb , & c -> bundle [ BINK_SRC_X_OFF ] ) ) < 0 ) return ret ;\n if ( ( ret = read_motion_values ( c -> avctx , gb , & c -> bundle [ BINK_SRC_Y_OFF ] ) ) < 0 ) return ret ;\n if ( ( ret = read_dcs ( c -> avctx , gb , & c -> bundle [ BINK_SRC_INTRA_DC ] , DC_START_BITS , 0 ) ) < 0 ) return ret ;\n if ( ( ret = read_dcs ( c -> avctx , gb , & c -> bundle [ BINK_SRC_INTER_DC ] , DC_START_BITS , 1 ) ) < 0 ) return ret ;\n if ( ( ret = read_runs ( c -> avctx , gb , & c -> bundle [ BINK_SRC_RUN ] ) ) < 0 ) return ret ;\n if ( by == bh ) break ;\n dst = frame -> data [ plane_idx ] + 8 * by * stride ;\n prev = ( c -> last -> data [ plane_idx ] ? c -> last -> data [ plane_idx ] : frame -> data [ plane_idx ] ) + 8 * by * stride ;\n for ( bx = 0 ;\n bx < bw ;\n bx ++ , dst += 8 , prev += 8 ) {\n blk = get_value ( c , BINK_SRC_BLOCK_TYPES ) ;\n if ( ( by & 1 ) && blk == SCALED_BLOCK ) {\n bx ++ ;\n dst += 8 ;\n prev += 8 ;\n continue ;\n }\n switch ( blk ) {\n case SKIP_BLOCK : c -> dsp . put_pixels_tab [ 1 ] [ 0 ] ( dst , prev , stride , 8 ) ;\n break ;\n case SCALED_BLOCK : blk = get_value ( c , BINK_SRC_SUB_BLOCK_TYPES ) ;\n switch ( blk ) {\n case RUN_BLOCK : scan = bink_patterns [ get_bits ( gb , 4 ) ] ;\n i = 0 ;\n do {\n int run = get_value ( c , BINK_SRC_RUN ) + 1 ;\n i += run ;\n if ( i > 64 ) {\n av_log ( c -> avctx , AV_LOG_ERROR , \"Run went out of bounds\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( get_bits1 ( gb ) ) {\n v = get_value ( c , BINK_SRC_COLORS ) ;\n for ( j = 0 ;\n j < run ;\n j ++ ) ublock [ * scan ++ ] = v ;\n }\n else {\n for ( j = 0 ;\n j < run ;\n j ++ ) ublock [ * scan ++ ] = get_value ( c , BINK_SRC_COLORS ) ;\n }\n }\n while ( i < 63 ) ;\n if ( i == 63 ) ublock [ * scan ++ ] = get_value ( c , BINK_SRC_COLORS ) ;\n break ;\n case INTRA_BLOCK : memset ( dctblock , 0 , sizeof ( * dctblock ) * 64 ) ;\n dctblock [ 0 ] = get_value ( c , BINK_SRC_INTRA_DC ) ;\n read_dct_coeffs ( gb , dctblock , bink_scan , bink_intra_quant , - 1 ) ;\n c -> bdsp . idct_put ( ublock , 8 , dctblock ) ;\n break ;\n case FILL_BLOCK : v = get_value ( c , BINK_SRC_COLORS ) ;\n c -> dsp . fill_block_tab [ 0 ] ( dst , v , stride , 16 ) ;\n break ;\n case PATTERN_BLOCK : for ( i = 0 ;\n i < 2 ;\n i ++ ) col [ i ] = get_value ( c , BINK_SRC_COLORS ) ;\n for ( j = 0 ;\n j < 8 ;\n j ++ ) {\n v = get_value ( c , BINK_SRC_PATTERN ) ;\n for ( i = 0 ;\n i < 8 ;\n i ++ , v >>= 1 ) ublock [ i + j * 8 ] = col [ v & 1 ] ;\n }\n break ;\n case RAW_BLOCK : for ( j = 0 ;\n j < 8 ;\n j ++ ) for ( i = 0 ;\n i < 8 ;\n i ++ ) ublock [ i + j * 8 ] = get_value ( c , BINK_SRC_COLORS ) ;\n break ;\n default : av_log ( c -> avctx , AV_LOG_ERROR , \"Incorrect 16x16 block type %d\\n\" , blk ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( blk != FILL_BLOCK ) c -> bdsp . scale_block ( ublock , dst , stride ) ;\n bx ++ ;\n dst += 8 ;\n prev += 8 ;\n break ;\n case MOTION_BLOCK : xoff = get_value ( c , BINK_SRC_X_OFF ) ;\n yoff = get_value ( c , BINK_SRC_Y_OFF ) ;\n ref = prev + xoff + yoff * stride ;\n if ( ref < ref_start || ref > ref_end ) {\n av_log ( c -> avctx , AV_LOG_ERROR , \"Copy out of bounds @%d, %d\\n\" , bx * 8 + xoff , by * 8 + yoff ) ;\n return AVERROR_INVALIDDATA ;\n }\n c -> dsp . put_pixels_tab [ 1 ] [ 0 ] ( dst , ref , stride , 8 ) ;\n break ;\n case RUN_BLOCK : scan = bink_patterns [ get_bits ( gb , 4 ) ] ;\n i = 0 ;\n do {\n int run = get_value ( c , BINK_SRC_RUN ) + 1 ;\n i += run ;\n if ( i > 64 ) {\n av_log ( c -> avctx , AV_LOG_ERROR , \"Run went out of bounds\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( get_bits1 ( gb ) ) {\n v = get_value ( c , BINK_SRC_COLORS ) ;\n for ( j = 0 ;\n j < run ;\n j ++ ) dst [ coordmap [ * scan ++ ] ] = v ;\n }\n else {\n for ( j = 0 ;\n j < run ;\n j ++ ) dst [ coordmap [ * scan ++ ] ] = get_value ( c , BINK_SRC_COLORS ) ;\n }\n }\n while ( i < 63 ) ;\n if ( i == 63 ) dst [ coordmap [ * scan ++ ] ] = get_value ( c , BINK_SRC_COLORS ) ;\n break ;\n case RESIDUE_BLOCK : xoff = get_value ( c , BINK_SRC_X_OFF ) ;\n yoff = get_value ( c , BINK_SRC_Y_OFF ) ;\n ref = prev + xoff + yoff * stride ;\n if ( ref < ref_start || ref > ref_end ) {\n av_log ( c -> avctx , AV_LOG_ERROR , \"Copy out of bounds @%d, %d\\n\" , bx * 8 + xoff , by * 8 + yoff ) ;\n return AVERROR_INVALIDDATA ;\n }\n c -> dsp . put_pixels_tab [ 1 ] [ 0 ] ( dst , ref , stride , 8 ) ;\n c -> dsp . clear_block ( block ) ;\n v = get_bits ( gb , 7 ) ;\n read_residue ( gb , block , v ) ;\n c -> dsp . add_pixels8 ( dst , block , stride ) ;\n break ;\n case INTRA_BLOCK : memset ( dctblock , 0 , sizeof ( * dctblock ) * 64 ) ;\n dctblock [ 0 ] = get_value ( c , BINK_SRC_INTRA_DC ) ;\n read_dct_coeffs ( gb , dctblock , bink_scan , bink_intra_quant , - 1 ) ;\n c -> bdsp . idct_put ( dst , stride , dctblock ) ;\n break ;\n case FILL_BLOCK : v = get_value ( c , BINK_SRC_COLORS ) ;\n c -> dsp . fill_block_tab [ 1 ] ( dst , v , stride , 8 ) ;\n break ;\n case INTER_BLOCK : xoff = get_value ( c , BINK_SRC_X_OFF ) ;\n yoff = get_value ( c , BINK_SRC_Y_OFF ) ;\n ref = prev + xoff + yoff * stride ;\n c -> dsp . put_pixels_tab [ 1 ] [ 0 ] ( dst , ref , stride , 8 ) ;\n memset ( dctblock , 0 , sizeof ( * dctblock ) * 64 ) ;\n dctblock [ 0 ] = get_value ( c , BINK_SRC_INTER_DC ) ;\n read_dct_coeffs ( gb , dctblock , bink_scan , bink_inter_quant , - 1 ) ;\n c -> bdsp . idct_add ( dst , stride , dctblock ) ;\n break ;\n case PATTERN_BLOCK : for ( i = 0 ;\n i < 2 ;\n i ++ ) col [ i ] = get_value ( c , BINK_SRC_COLORS ) ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n v = get_value ( c , BINK_SRC_PATTERN ) ;\n for ( j = 0 ;\n j < 8 ;\n j ++ , v >>= 1 ) dst [ i * stride + j ] = col [ v & 1 ] ;\n }\n break ;\n case RAW_BLOCK : for ( i = 0 ;\n i < 8 ;\n i ++ ) memcpy ( dst + i * stride , c -> bundle [ BINK_SRC_COLORS ] . cur_ptr + i * 8 , 8 ) ;\n c -> bundle [ BINK_SRC_COLORS ] . cur_ptr += 64 ;\n break ;\n default : av_log ( c -> avctx , AV_LOG_ERROR , \"Unknown block type %d\\n\" , blk ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n }\n if ( get_bits_count ( gb ) & 0x1F ) / ext plane data starts at 32 - bit boundary skip_bits_long ( gb , 32 - ( get_bits_count ( gb ) & 0x1F ) ) ;\n return 0 ;\n }"}
{"idx": 17864, "target": 0, "func": "static int ssl3_record_app_data_waiting ( SSL * s ) {\n SSL3_BUFFER * rbuf ;\n int left , len ;\n unsigned char * p ;\n rbuf = RECORD_LAYER_get_rbuf ( & s -> rlayer ) ;\n p = SSL3_BUFFER_get_buf ( rbuf ) ;\n if ( p == NULL ) return 0 ;\n left = SSL3_BUFFER_get_left ( rbuf ) ;\n if ( left < SSL3_RT_HEADER_LENGTH ) return 0 ;\n p += SSL3_BUFFER_get_offset ( rbuf ) ;\n if ( * p != SSL3_RT_APPLICATION_DATA ) return 0 ;\n p += 3 ;\n n2s ( p , len ) ;\n if ( left < SSL3_RT_HEADER_LENGTH + len ) return 0 ;\n return 1 ;\n }"}
{"idx": 17865, "target": 1, "func": "int main ( int argc , char * * argv ) {\n char inputbuf [ 4096 ] ;\n unsigned char * buf ;\n size_t len ;\n gpg_error_t err ;\n if ( argc == 2 && ! strcmp ( argv [ 1 ] , \"--to-str\" ) ) {\n fread ( inputbuf , 1 , sizeof inputbuf , stdin ) ;\n if ( ! feof ( stdin ) ) fail ( \"read error or input too large\" ) ;\n fail ( \"no yet implemented\" ) ;\n }\n else if ( argc == 2 && ! strcmp ( argv [ 1 ] , \"--to-der\" ) ) {\n fread ( inputbuf , 1 , sizeof inputbuf , stdin ) ;\n if ( ! feof ( stdin ) ) fail ( \"read error or input too large\" ) ;\n err = ksba_dn_str2der ( inputbuf , & buf , & len ) ;\n fail_if_err ( err ) ;\n fwrite ( buf , len , 1 , stdout ) ;\n }\n else if ( argc == 1 ) {\n test_0 ( ) ;\n test_1 ( ) ;\n test_2 ( ) ;\n }\n else {\n fprintf ( stderr , \"usage: t-dnparser [--to-str|--to-der]\\n\" ) ;\n return 1 ;\n }\n return 0 ;\n }"}
{"idx": 17866, "target": 0, "func": "static int load_pack_bitmap ( void ) {\n assert ( bitmap_git . map && ! bitmap_git . loaded ) ;\n bitmap_git . bitmaps = kh_init_sha1 ( ) ;\n bitmap_git . ext_index . positions = kh_init_sha1_pos ( ) ;\n load_pack_revindex ( bitmap_git . pack ) ;\n if ( ! ( bitmap_git . commits = read_bitmap_1 ( & bitmap_git ) ) || ! ( bitmap_git . trees = read_bitmap_1 ( & bitmap_git ) ) || ! ( bitmap_git . blobs = read_bitmap_1 ( & bitmap_git ) ) || ! ( bitmap_git . tags = read_bitmap_1 ( & bitmap_git ) ) ) goto failed ;\n if ( load_bitmap_entries_v1 ( & bitmap_git ) < 0 ) goto failed ;\n bitmap_git . loaded = 1 ;\n return 0 ;\n failed : munmap ( bitmap_git . map , bitmap_git . map_size ) ;\n bitmap_git . map = NULL ;\n bitmap_git . map_size = 0 ;\n return - 1 ;\n }"}
{"idx": 17867, "target": 1, "func": "static UBool U_CALLCONV _enumPropertyStartsRange ( const void * context , UChar32 start , UChar32 end , uint32_t value ) {\n const USetAdder * sa = ( const USetAdder * ) context ;\n sa -> add ( sa -> set , start ) ;\n return TRUE ;\n }"}
{"idx": 17868, "target": 0, "func": "static void zero_stats ( FIRSTPASS_STATS * section ) {\n section -> frame = 0.0 ;\n section -> intra_error = 0.0 ;\n section -> coded_error = 0.0 ;\n section -> sr_coded_error = 0.0 ;\n section -> pcnt_inter = 0.0 ;\n section -> pcnt_motion = 0.0 ;\n section -> pcnt_second_ref = 0.0 ;\n section -> pcnt_neutral = 0.0 ;\n section -> MVr = 0.0 ;\n section -> mvr_abs = 0.0 ;\n section -> MVc = 0.0 ;\n section -> mvc_abs = 0.0 ;\n section -> MVrv = 0.0 ;\n section -> MVcv = 0.0 ;\n section -> mv_in_out_count = 0.0 ;\n section -> new_mv_count = 0.0 ;\n section -> count = 0.0 ;\n section -> duration = 1.0 ;\n section -> spatial_layer_id = 0 ;\n }"}
{"idx": 17869, "target": 0, "func": "CURLcode Curl_http_setup_conn ( struct connectdata * conn ) {\n struct HTTP * http ;\n DEBUGASSERT ( conn -> data -> req . protop == NULL ) ;\n http = calloc ( 1 , sizeof ( struct HTTP ) ) ;\n if ( ! http ) return CURLE_OUT_OF_MEMORY ;\n conn -> data -> req . protop = http ;\n Curl_http2_setup_conn ( conn ) ;\n Curl_http2_setup_req ( conn -> data ) ;\n return CURLE_OK ;\n }"}
{"idx": 17870, "target": 1, "func": "static int test_save_copy ( const char * origname ) {\n char buf [ TESTBUFSIZE ] ;\n int ret ;\n snprintf_func ( buf , TESTBUFSIZE , \"cp -f %s %s\" , origname , TEST_COPY_FILE ) ;\n if ( ( ret = system ( buf ) ) != 0 ) {\n return XD3_INTERNAL ;\n }\n return 0 ;\n }"}
{"idx": 17871, "target": 0, "func": "int xmlIsPubidChar ( unsigned int ch ) {\n return ( xmlIsPubidCharQ ( ch ) ) ;\n }"}
{"idx": 17872, "target": 1, "func": "static void cond_release_buffer ( AVFrame * pic ) {\n if ( pic -> data [ 0 ] ) {\n av_freep ( & pic -> data [ 0 ] ) ;\n av_free ( pic -> data [ 1 ] ) ;\n }\n }"}
{"idx": 17873, "target": 0, "func": "static int try_rgrow_right ( MAIN_WINDOW_REC * window , int count ) {\n MAIN_WINDOW_REC * grow_win ;\n grow_win = mainwindows_find_right ( window , FALSE ) ;\n if ( grow_win != NULL ) {\n grow_win -> first_column -= count ;\n window -> last_column -= count ;\n mainwindows_rresize_two ( grow_win , window , count ) ;\n return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 17874, "target": 0, "func": "TEST_F ( NativeBackendLibsecretTest , BasicAddLogin ) {\n NativeBackendLibsecret backend ( 42 ) ;\n VerifiedAdd ( & backend , form_google_ ) ;\n EXPECT_EQ ( 1u , global_mock_libsecret_items -> size ( ) ) ;\n if ( ! global_mock_libsecret_items -> empty ( ) ) CheckMockSecretItem ( ( * global_mock_libsecret_items ) [ 0 ] , form_google_ , \"chrome-42\" ) ;\n }"}
{"idx": 17875, "target": 0, "func": "int get_dns_name ( tvbuff_t * tvb , int offset , int max_len , int dns_data_offset , const guchar * * name ) {\n int len ;\n len = expand_dns_name ( tvb , offset , max_len , dns_data_offset , name ) ;\n if ( * * name == '\\0' ) {\n * name = \"<Root>\" ;\n }\n return len ;\n }"}
{"idx": 17876, "target": 0, "func": "void * prplcb_request_input ( const char * title , const char * primary , const char * secondary , const char * default_value , gboolean multiline , gboolean masked , gchar * hint , const char * ok_text , GCallback ok_cb , const char * cancel_text , GCallback cancel_cb , PurpleAccount * account , const char * who , PurpleConversation * conv , void * user_data ) {\n struct im_connection * ic = purple_ic_by_pa ( account ) ;\n struct purple_data * pd = ic -> proto_data ;\n struct request_input_data * ri ;\n guint id ;\n if ( pd -> chat_list_server && title && g_strcmp0 ( title , \"Enter a Conference Server\" ) == 0 ) {\n ( ( ri_callback_t ) ok_cb ) ( user_data , pd -> chat_list_server ) ;\n g_free ( pd -> chat_list_server ) ;\n pd -> chat_list_server = NULL ;\n return NULL ;\n }\n id = pd -> next_request_id ++ ;\n ri = g_new0 ( struct request_input_data , 1 ) ;\n ri -> id = id ;\n ri -> ic = ic ;\n ri -> buddy = g_strdup_printf ( \"%s_%u\" , PURPLE_REQUEST_HANDLE , id ) ;\n ri -> data_callback = ( ri_callback_t ) ok_cb ;\n ri -> user_data = user_data ;\n g_hash_table_insert ( pd -> input_requests , GUINT_TO_POINTER ( id ) , ri ) ;\n imcb_add_buddy ( ic , ri -> buddy , NULL ) ;\n if ( title && * title ) {\n imcb_buddy_msg ( ic , ri -> buddy , title , 0 , 0 ) ;\n }\n if ( primary && * primary ) {\n imcb_buddy_msg ( ic , ri -> buddy , primary , 0 , 0 ) ;\n }\n if ( secondary && * secondary ) {\n imcb_buddy_msg ( ic , ri -> buddy , secondary , 0 , 0 ) ;\n }\n return ri ;\n }"}
{"idx": 17877, "target": 0, "func": "static u_short create_keyword_scanner ( void ) {\n u_short scanner ;\n u_short i ;\n sst_highwater = 1 ;\n scanner = 0 ;\n for ( i = 0 ;\n i < COUNTOF ( ntp_keywords ) ;\n i ++ ) {\n current_keyword = ntp_keywords [ i ] . key ;\n scanner = create_scan_states ( ntp_keywords [ i ] . key , ntp_keywords [ i ] . token , ntp_keywords [ i ] . followedby , scanner ) ;\n }\n return scanner ;\n }"}
{"idx": 17878, "target": 0, "func": "void ff_cavs_mv ( AVSContext * h , enum cavs_mv_loc nP , enum cavs_mv_loc nC , enum cavs_mv_pred mode , enum cavs_block size , int ref ) {\n cavs_vector * mvP = & h -> mv [ nP ] ;\n cavs_vector * mvA = & h -> mv [ nP - 1 ] ;\n cavs_vector * mvB = & h -> mv [ nP - 4 ] ;\n cavs_vector * mvC = & h -> mv [ nC ] ;\n const cavs_vector * mvP2 = NULL ;\n mvP -> ref = ref ;\n mvP -> dist = h -> dist [ mvP -> ref ] ;\n if ( mvC -> ref == NOT_AVAIL ) mvC = & h -> mv [ nP - 5 ] ;\n if ( ( mode == MV_PRED_PSKIP ) && ( ( mvA -> ref == NOT_AVAIL ) || ( mvB -> ref == NOT_AVAIL ) || ( ( mvA -> x | mvA -> y | mvA -> ref ) == 0 ) || ( ( mvB -> x | mvB -> y | mvB -> ref ) == 0 ) ) ) {\n mvP2 = & un_mv ;\n }\n else if ( ( mvA -> ref >= 0 ) && ( mvB -> ref < 0 ) && ( mvC -> ref < 0 ) ) {\n mvP2 = mvA ;\n }\n else if ( ( mvA -> ref < 0 ) && ( mvB -> ref >= 0 ) && ( mvC -> ref < 0 ) ) {\n mvP2 = mvB ;\n }\n else if ( ( mvA -> ref < 0 ) && ( mvB -> ref < 0 ) && ( mvC -> ref >= 0 ) ) {\n mvP2 = mvC ;\n }\n else if ( mode == MV_PRED_LEFT && mvA -> ref == ref ) {\n mvP2 = mvA ;\n }\n else if ( mode == MV_PRED_TOP && mvB -> ref == ref ) {\n mvP2 = mvB ;\n }\n else if ( mode == MV_PRED_TOPRIGHT && mvC -> ref == ref ) {\n mvP2 = mvC ;\n }\n if ( mvP2 ) {\n mvP -> x = mvP2 -> x ;\n mvP -> y = mvP2 -> y ;\n }\n else mv_pred_median ( h , mvP , mvA , mvB , mvC ) ;\n if ( mode < MV_PRED_PSKIP ) {\n mvP -> x += get_se_golomb ( & h -> gb ) ;\n mvP -> y += get_se_golomb ( & h -> gb ) ;\n }\n set_mvs ( mvP , size ) ;\n }"}
{"idx": 17879, "target": 1, "func": "static void cmd_network_add_modify ( const char * data , gboolean add ) {\n GHashTable * optlist ;\n char * name , * value ;\n void * free_arg ;\n IRC_CHATNET_REC * rec ;\n if ( ! cmd_get_params ( data , & free_arg , 1 | PARAM_FLAG_OPTIONS , \"network add\" , & optlist , & name ) ) return ;\n if ( * name == '\\0' ) cmd_param_error ( CMDERR_NOT_ENOUGH_PARAMS ) ;\n rec = ircnet_find ( name ) ;\n if ( rec == NULL ) {\n if ( add == FALSE ) {\n cmd_params_free ( free_arg ) ;\n printformat ( NULL , NULL , MSGLEVEL_CLIENTNOTICE , IRCTXT_NETWORK_NOT_FOUND , name ) ;\n return ;\n }\n rec = g_new0 ( IRC_CHATNET_REC , 1 ) ;\n rec -> name = g_strdup ( name ) ;\n }\n else {\n if ( g_hash_table_lookup ( optlist , \"nick\" ) ) g_free_and_null ( rec -> nick ) ;\n if ( g_hash_table_lookup ( optlist , \"alternate_nick\" ) ) g_free_and_null ( rec -> alternate_nick ) ;\n if ( g_hash_table_lookup ( optlist , \"user\" ) ) g_free_and_null ( rec -> username ) ;\n if ( g_hash_table_lookup ( optlist , \"realname\" ) ) g_free_and_null ( rec -> realname ) ;\n if ( g_hash_table_lookup ( optlist , \"host\" ) ) {\n g_free_and_null ( rec -> own_host ) ;\n rec -> own_ip4 = rec -> own_ip6 = NULL ;\n }\n if ( g_hash_table_lookup ( optlist , \"usermode\" ) ) g_free_and_null ( rec -> usermode ) ;\n if ( g_hash_table_lookup ( optlist , \"autosendcmd\" ) ) g_free_and_null ( rec -> autosendcmd ) ;\n if ( g_hash_table_lookup ( optlist , \"sasl_mechanism\" ) ) g_free_and_null ( rec -> sasl_mechanism ) ;\n if ( g_hash_table_lookup ( optlist , \"sasl_username\" ) ) g_free_and_null ( rec -> sasl_username ) ;\n if ( g_hash_table_lookup ( optlist , \"sasl_password\" ) ) g_free_and_null ( rec -> sasl_password ) ;\n }\n value = g_hash_table_lookup ( optlist , \"kicks\" ) ;\n if ( value != NULL ) rec -> max_kicks = atoi ( value ) ;\n value = g_hash_table_lookup ( optlist , \"msgs\" ) ;\n if ( value != NULL ) rec -> max_msgs = atoi ( value ) ;\n value = g_hash_table_lookup ( optlist , \"modes\" ) ;\n if ( value != NULL ) rec -> max_modes = atoi ( value ) ;\n value = g_hash_table_lookup ( optlist , \"whois\" ) ;\n if ( value != NULL ) rec -> max_whois = atoi ( value ) ;\n value = g_hash_table_lookup ( optlist , \"cmdspeed\" ) ;\n if ( value != NULL ) rec -> cmd_queue_speed = atoi ( value ) ;\n value = g_hash_table_lookup ( optlist , \"cmdmax\" ) ;\n if ( value != NULL ) rec -> max_cmds_at_once = atoi ( value ) ;\n value = g_hash_table_lookup ( optlist , \"querychans\" ) ;\n if ( value != NULL ) rec -> max_query_chans = atoi ( value ) ;\n value = g_hash_table_lookup ( optlist , \"nick\" ) ;\n if ( value != NULL && * value != '\\0' ) rec -> nick = g_strdup ( value ) ;\n value = g_hash_table_lookup ( optlist , \"alternate_nick\" ) ;\n if ( value != NULL && * value != '\\0' ) rec -> alternate_nick = g_strdup ( value ) ;\n value = g_hash_table_lookup ( optlist , \"user\" ) ;\n if ( value != NULL && * value != '\\0' ) rec -> username = g_strdup ( value ) ;\n value = g_hash_table_lookup ( optlist , \"realname\" ) ;\n if ( value != NULL && * value != '\\0' ) rec -> realname = g_strdup ( value ) ;\n value = g_hash_table_lookup ( optlist , \"host\" ) ;\n if ( value != NULL && * value != '\\0' ) {\n rec -> own_host = g_strdup ( value ) ;\n rec -> own_ip4 = rec -> own_ip6 = NULL ;\n }\n value = g_hash_table_lookup ( optlist , \"usermode\" ) ;\n if ( value != NULL && * value != '\\0' ) rec -> usermode = g_strdup ( value ) ;\n value = g_hash_table_lookup ( optlist , \"autosendcmd\" ) ;\n if ( value != NULL && * value != '\\0' ) rec -> autosendcmd = g_strdup ( value ) ;\n value = g_hash_table_lookup ( optlist , \"sasl_mechanism\" ) ;\n if ( value != NULL ) rec -> sasl_mechanism = * value != '\\0' ? g_strdup ( value ) : NULL ;\n value = g_hash_table_lookup ( optlist , \"sasl_username\" ) ;\n if ( value != NULL ) rec -> sasl_username = * value != '\\0' ? g_strdup ( value ) : NULL ;\n value = g_hash_table_lookup ( optlist , \"sasl_password\" ) ;\n if ( value != NULL ) rec -> sasl_password = * value != '\\0' ? g_strdup ( value ) : NULL ;\n ircnet_create ( rec ) ;\n printformat ( NULL , NULL , MSGLEVEL_CLIENTNOTICE , IRCTXT_NETWORK_ADDED , name ) ;\n cmd_params_free ( free_arg ) ;\n }"}
{"idx": 17880, "target": 0, "func": "static Dwarf_Small dwarf_elf_object_access_get_length_size ( void * obj_in ) {\n dwarf_elf_object_access_internals_t * obj = ( dwarf_elf_object_access_internals_t * ) obj_in ;\n return obj -> length_size ;\n }"}
{"idx": 17881, "target": 0, "func": "static DeviceInfo * qdev_find_info ( BusInfo * bus_info , const char * name ) {\n DeviceInfo * info ;\n for ( info = device_info_list ;\n info != NULL ;\n info = info -> next ) {\n if ( bus_info && info -> bus_info != bus_info ) continue ;\n if ( strcmp ( info -> name , name ) != 0 ) continue ;\n return info ;\n }\n for ( info = device_info_list ;\n info != NULL ;\n info = info -> next ) {\n if ( bus_info && info -> bus_info != bus_info ) continue ;\n if ( ! info -> alias ) continue ;\n if ( strcmp ( info -> alias , name ) != 0 ) continue ;\n return info ;\n }\n return NULL ;\n }"}
{"idx": 17882, "target": 0, "func": "void dtls1_set_message_header ( SSL * s , unsigned char mt , unsigned long len , unsigned long frag_off , unsigned long frag_len ) {\n if ( frag_off == 0 ) {\n s -> d1 -> handshake_write_seq = s -> d1 -> next_handshake_write_seq ;\n s -> d1 -> next_handshake_write_seq ++ ;\n }\n dtls1_set_message_header_int ( s , mt , len , s -> d1 -> handshake_write_seq , frag_off , frag_len ) ;\n }"}
{"idx": 17883, "target": 0, "func": "static GstFlowReturn gst_asf_demux_process_header ( GstASFDemux * demux , guint8 * data , guint64 size ) {\n GstFlowReturn ret = GST_FLOW_OK ;\n guint32 i , num_objects ;\n guint8 unknown G_GNUC_UNUSED ;\n if ( size < ( 4 + 1 + 1 ) ) goto not_enough_data ;\n num_objects = gst_asf_demux_get_uint32 ( & data , & size ) ;\n unknown = gst_asf_demux_get_uint8 ( & data , & size ) ;\n unknown = gst_asf_demux_get_uint8 ( & data , & size ) ;\n GST_INFO_OBJECT ( demux , \"object is a header with %u parts\" , num_objects ) ;\n demux -> saw_file_header = FALSE ;\n for ( i = 0 ;\n i < num_objects ;\n ++ i ) {\n GST_INFO_OBJECT ( demux , \"reading header part %u\" , i ) ;\n ret = gst_asf_demux_process_object ( demux , & data , & size ) ;\n if ( ret != GST_FLOW_OK ) {\n GST_WARNING ( \"process_object returned %s\" , gst_asf_get_flow_name ( ret ) ) ;\n break ;\n }\n }\n if ( ! demux -> saw_file_header ) {\n GST_ELEMENT_ERROR ( demux , STREAM , DEMUX , ( NULL ) , ( \"Header does not have mandatory FILE section\" ) ) ;\n return GST_FLOW_ERROR ;\n }\n return ret ;\n not_enough_data : {\n GST_ELEMENT_ERROR ( demux , STREAM , DEMUX , ( NULL ) , ( \"short read parsing HEADER object\" ) ) ;\n return GST_FLOW_ERROR ;\n }\n }"}
{"idx": 17884, "target": 0, "func": "static gboolean gst_asf_demux_update_caps_from_payload ( GstASFDemux * demux , AsfStream * stream ) {\n GstTypeFindProbability prob = GST_TYPE_FIND_NONE ;\n GstCaps * caps = NULL ;\n int i ;\n GstAdapter * adapter = gst_adapter_new ( ) ;\n for ( i = 0 ;\n i < stream -> payloads -> len && prob < GST_TYPE_FIND_LIKELY ;\n ++ i ) {\n const guint8 * data ;\n AsfPayload * payload ;\n int len ;\n payload = & g_array_index ( stream -> payloads , AsfPayload , i ) ;\n gst_adapter_push ( adapter , gst_buffer_ref ( payload -> buf ) ) ;\n len = gst_adapter_available ( adapter ) ;\n data = gst_adapter_map ( adapter , len ) ;\n again : # define MIN_LENGTH 128 while ( TRUE ) {\n if ( len < MIN_LENGTH || ( data [ 0 ] == 0x0b && data [ 1 ] == 0x77 ) || ( data [ 0 ] == 0xFF && ( ( data [ 1 ] & 0xF0 ) >> 4 ) == 0xF ) ) break ;\n ++ data ;\n -- len ;\n }\n gst_caps_take ( & caps , gst_type_find_helper_for_data ( GST_OBJECT ( demux ) , data , len , & prob ) ) ;\n if ( prob < GST_TYPE_FIND_LIKELY ) {\n ++ data ;\n -- len ;\n if ( len > MIN_LENGTH ) goto again ;\n }\n gst_adapter_unmap ( adapter ) ;\n }\n gst_object_unref ( adapter ) ;\n if ( caps ) {\n gst_caps_take ( & stream -> caps , caps ) ;\n return TRUE ;\n }\n else {\n return FALSE ;\n }\n }"}
{"idx": 17885, "target": 0, "func": "static qcelp_packet_rate buf_size2bitrate ( const int buf_size ) {\n switch ( buf_size ) {\n case 35 : return RATE_FULL ;\n case 17 : return RATE_HALF ;\n case 8 : return RATE_QUARTER ;\n case 4 : return RATE_OCTAVE ;\n case 1 : return SILENCE ;\n }\n return I_F_Q ;\n }"}
{"idx": 17886, "target": 0, "func": "static void xml_start_tag ( void * userData , const char * name , const char * * atts ) {\n struct xml_ctx * ctx = ( struct xml_ctx * ) userData ;\n const char * c = strchr ( name , ':' ) ;\n int old_namelen , new_len ;\n if ( c == NULL ) c = name ;\n else c ++ ;\n old_namelen = strlen ( ctx -> name ) ;\n new_len = old_namelen + strlen ( c ) + 2 ;\n if ( new_len > ctx -> len ) {\n ctx -> name = xrealloc ( ctx -> name , new_len ) ;\n ctx -> len = new_len ;\n }\n xsnprintf ( ctx -> name + old_namelen , ctx -> len - old_namelen , \".%s\" , c ) ;\n free ( ctx -> cdata ) ;\n ctx -> cdata = NULL ;\n ctx -> userFunc ( ctx , 0 ) ;\n }"}
{"idx": 17887, "target": 0, "func": "static void e1000e_intrmgr_initialize_all_timers ( E1000ECore * core , bool create ) {\n int i ;\n core -> radv . delay_reg = RADV ;\n core -> rdtr . delay_reg = RDTR ;\n core -> raid . delay_reg = RAID ;\n core -> tadv . delay_reg = TADV ;\n core -> tidv . delay_reg = TIDV ;\n core -> radv . delay_resolution_ns = E1000_INTR_DELAY_NS_RES ;\n core -> rdtr . delay_resolution_ns = E1000_INTR_DELAY_NS_RES ;\n core -> raid . delay_resolution_ns = E1000_INTR_DELAY_NS_RES ;\n core -> tadv . delay_resolution_ns = E1000_INTR_DELAY_NS_RES ;\n core -> tidv . delay_resolution_ns = E1000_INTR_DELAY_NS_RES ;\n core -> radv . core = core ;\n core -> rdtr . core = core ;\n core -> raid . core = core ;\n core -> tadv . core = core ;\n core -> tidv . core = core ;\n core -> itr . core = core ;\n core -> itr . delay_reg = ITR ;\n core -> itr . delay_resolution_ns = E1000_INTR_THROTTLING_NS_RES ;\n for ( i = 0 ;\n i < E1000E_MSIX_VEC_NUM ;\n i ++ ) {\n core -> eitr [ i ] . core = core ;\n core -> eitr [ i ] . delay_reg = EITR + i ;\n core -> eitr [ i ] . delay_resolution_ns = E1000_INTR_THROTTLING_NS_RES ;\n }\n if ( ! create ) {\n return ;\n }\n core -> radv . timer = timer_new_ns ( QEMU_CLOCK_VIRTUAL , e1000e_intrmgr_on_timer , & core -> radv ) ;\n core -> rdtr . timer = timer_new_ns ( QEMU_CLOCK_VIRTUAL , e1000e_intrmgr_on_timer , & core -> rdtr ) ;\n core -> raid . timer = timer_new_ns ( QEMU_CLOCK_VIRTUAL , e1000e_intrmgr_on_timer , & core -> raid ) ;\n core -> tadv . timer = timer_new_ns ( QEMU_CLOCK_VIRTUAL , e1000e_intrmgr_on_timer , & core -> tadv ) ;\n core -> tidv . timer = timer_new_ns ( QEMU_CLOCK_VIRTUAL , e1000e_intrmgr_on_timer , & core -> tidv ) ;\n core -> itr . timer = timer_new_ns ( QEMU_CLOCK_VIRTUAL , e1000e_intrmgr_on_throttling_timer , & core -> itr ) ;\n for ( i = 0 ;\n i < E1000E_MSIX_VEC_NUM ;\n i ++ ) {\n core -> eitr [ i ] . timer = timer_new_ns ( QEMU_CLOCK_VIRTUAL , e1000e_intrmgr_on_msix_throttling_timer , & core -> eitr [ i ] ) ;\n }\n }"}
{"idx": 17888, "target": 0, "func": "int main_file_write ( main_file * ofile , uint8_t * buf , usize_t size , const char * msg ) {\n int ret = 0 ;\n # if XD3_STDIO usize_t result ;\n result = fwrite ( buf , 1 , size , ofile -> file ) ;\n if ( result != size ) {\n ret = get_errno ( ) ;\n }\n # elif XD3_POSIX ret = xd3_posix_io ( ofile -> file , buf , size , ( xd3_posix_func * ) & write , NULL ) ;\n # elif XD3_WIN32 ret = xd3_win32_io ( ofile -> file , buf , size , 0 , NULL ) ;\n # endif if ( ret ) {\n XPR ( NT \"%s: %s: %s\\n\" , msg , ofile -> filename , xd3_mainerror ( ret ) ) ;\n }\n else {\n if ( option_verbose > 5 ) {\n XPR ( NT \"write %s: %u bytes\\n\" , ofile -> filename , size ) ;\n }\n ofile -> nwrite += size ;\n }\n return ret ;\n }"}
{"idx": 17889, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , TestEnabledDisabled ) {\n registry ( ) -> Disable ( ) ;\n ASSERT_FALSE ( registry ( ) -> enabled ( ) ) ;\n registry ( ) -> Enable ( ) ;\n ASSERT_TRUE ( registry ( ) -> enabled ( ) ) ;\n }"}
{"idx": 17890, "target": 0, "func": "static inline void * alloc_code_gen_buffer ( void ) {\n int flags = MAP_PRIVATE | MAP_ANONYMOUS ;\n uintptr_t start = 0 ;\n void * buf ;\n # if defined ( __PIE__ ) || defined ( __PIC__ ) # elif defined ( __x86_64__ ) && defined ( MAP_32BIT ) flags |= MAP_32BIT ;\n if ( tcg_ctx . code_gen_buffer_size > 800u * 1024 * 1024 ) {\n tcg_ctx . code_gen_buffer_size = 800u * 1024 * 1024 ;\n }\n # elif defined ( __sparc__ ) start = 0x40000000ul ;\n # elif defined ( __s390x__ ) start = 0x90000000ul ;\n # endif buf = mmap ( ( void * ) start , tcg_ctx . code_gen_buffer_size , PROT_WRITE | PROT_READ | PROT_EXEC , flags , - 1 , 0 ) ;\n return buf == MAP_FAILED ? NULL : buf ;\n }"}
{"idx": 17891, "target": 1, "func": "int write_output ( void ) {\n int fd ;\n struct filter_op * fop ;\n struct filter_header fh ;\n size_t ninst , i ;\n u_char * data ;\n ninst = compile_tree ( & fop ) ;\n if ( fop == NULL ) return - E_NOTHANDLED ;\n fd = open ( EF_GBL_OPTIONS -> output_file , O_CREAT | O_RDWR | O_TRUNC | O_BINARY , 0644 ) ;\n ON_ERROR ( fd , - 1 , \"Can't create file %s\" , EF_GBL_OPTIONS -> output_file ) ;\n fprintf ( stdout , \" Writing output to \\'%s\\' \" , EF_GBL_OPTIONS -> output_file ) ;\n fflush ( stdout ) ;\n fh . magic = htons ( EC_FILTER_MAGIC ) ;\n strncpy ( fh . version , EC_VERSION , sizeof ( fh . version ) ) ;\n fh . data = sizeof ( fh ) ;\n data = create_data_segment ( & fh , fop , ninst ) ;\n write ( fd , & fh , sizeof ( struct filter_header ) ) ;\n write ( fd , data , fh . code - fh . data ) ;\n for ( i = 0 ;\n i <= ninst ;\n i ++ ) {\n print_progress_bar ( & fop [ i ] ) ;\n write ( fd , & fop [ i ] , sizeof ( struct filter_op ) ) ;\n }\n close ( fd ) ;\n fprintf ( stdout , \" done.\\n\\n\" ) ;\n fprintf ( stdout , \" -> Script encoded into %d instructions.\\n\\n\" , ( int ) ( i - 1 ) ) ;\n return E_SUCCESS ;\n }"}
{"idx": 17892, "target": 0, "func": "static void init_syntax_tree ( config_tree * ptree ) {\n memset ( ptree , 0 , sizeof ( * ptree ) ) ;\n }"}
{"idx": 17893, "target": 0, "func": "static void parseNormalizationCorrections ( const char * filename , UErrorCode * pErrorCode ) {\n char * fields [ 4 ] [ 2 ] ;\n if ( pErrorCode == NULL || U_FAILURE ( * pErrorCode ) ) {\n return ;\n }\n u_parseDelimitedFile ( filename , ';\n' , fields , 4 , normalizationCorrectionsLineFn , NULL , pErrorCode ) ;\n if ( U_FAILURE ( * pErrorCode ) && ( * pErrorCode != U_FILE_ACCESS_ERROR ) ) {\n fprintf ( stderr , \"gensprep error: u_parseDelimitedFile(\\\"%s\\\") failed - %s\\n\" , filename , u_errorName ( * pErrorCode ) ) ;\n exit ( * pErrorCode ) ;\n }\n }"}
{"idx": 17894, "target": 0, "func": "static uint32_t U_CALLCONV _enumTypeValue ( const void * context , uint32_t value ) {\n ( void ) context ;\n return GET_CATEGORY ( value ) ;\n }"}
{"idx": 17895, "target": 0, "func": "static void dealloc_compressor_data ( VP9_COMP * cpi ) {\n VP9_COMMON * const cm = & cpi -> common ;\n int i ;\n vpx_free ( cpi -> segmentation_map ) ;\n cpi -> segmentation_map = NULL ;\n vpx_free ( cm -> last_frame_seg_map ) ;\n cm -> last_frame_seg_map = NULL ;\n vpx_free ( cpi -> coding_context . last_frame_seg_map_copy ) ;\n cpi -> coding_context . last_frame_seg_map_copy = NULL ;\n vpx_free ( cpi -> complexity_map ) ;\n cpi -> complexity_map = NULL ;\n vpx_free ( cpi -> nmvcosts [ 0 ] ) ;\n vpx_free ( cpi -> nmvcosts [ 1 ] ) ;\n cpi -> nmvcosts [ 0 ] = NULL ;\n cpi -> nmvcosts [ 1 ] = NULL ;\n vpx_free ( cpi -> nmvcosts_hp [ 0 ] ) ;\n vpx_free ( cpi -> nmvcosts_hp [ 1 ] ) ;\n cpi -> nmvcosts_hp [ 0 ] = NULL ;\n cpi -> nmvcosts_hp [ 1 ] = NULL ;\n vpx_free ( cpi -> nmvsadcosts [ 0 ] ) ;\n vpx_free ( cpi -> nmvsadcosts [ 1 ] ) ;\n cpi -> nmvsadcosts [ 0 ] = NULL ;\n cpi -> nmvsadcosts [ 1 ] = NULL ;\n vpx_free ( cpi -> nmvsadcosts_hp [ 0 ] ) ;\n vpx_free ( cpi -> nmvsadcosts_hp [ 1 ] ) ;\n cpi -> nmvsadcosts_hp [ 0 ] = NULL ;\n cpi -> nmvsadcosts_hp [ 1 ] = NULL ;\n vp9_cyclic_refresh_free ( cpi -> cyclic_refresh ) ;\n cpi -> cyclic_refresh = NULL ;\n vp9_free_ref_frame_buffers ( cm ) ;\n vp9_free_context_buffers ( cm ) ;\n vp9_free_frame_buffer ( & cpi -> last_frame_uf ) ;\n vp9_free_frame_buffer ( & cpi -> scaled_source ) ;\n vp9_free_frame_buffer ( & cpi -> scaled_last_source ) ;\n vp9_free_frame_buffer ( & cpi -> alt_ref_buffer ) ;\n vp9_lookahead_destroy ( cpi -> lookahead ) ;\n vpx_free ( cpi -> tok ) ;\n cpi -> tok = 0 ;\n vp9_free_pc_tree ( cpi ) ;\n for ( i = 0 ;\n i < cpi -> svc . number_spatial_layers ;\n ++ i ) {\n LAYER_CONTEXT * const lc = & cpi -> svc . layer_context [ i ] ;\n vpx_free ( lc -> rc_twopass_stats_in . buf ) ;\n lc -> rc_twopass_stats_in . buf = NULL ;\n lc -> rc_twopass_stats_in . sz = 0 ;\n }\n if ( cpi -> source_diff_var != NULL ) {\n vpx_free ( cpi -> source_diff_var ) ;\n cpi -> source_diff_var = NULL ;\n }\n for ( i = 0 ;\n i < MAX_LAG_BUFFERS ;\n ++ i ) {\n vp9_free_frame_buffer ( & cpi -> svc . scaled_frames [ i ] ) ;\n }\n vpx_memset ( & cpi -> svc . scaled_frames [ 0 ] , 0 , MAX_LAG_BUFFERS * sizeof ( cpi -> svc . scaled_frames [ 0 ] ) ) ;\n }"}
{"idx": 17896, "target": 0, "func": "static char * ReadBlobStringWithLongSize ( Image * image , char * string , size_t max , ExceptionInfo * exception ) {\n int c ;\n MagickOffsetType offset ;\n register ssize_t i ;\n size_t length ;\n assert ( image != ( Image * ) NULL ) ;\n assert ( image -> signature == MagickCoreSignature ) ;\n assert ( max != 0 ) ;\n if ( image -> debug != MagickFalse ) ( void ) LogMagickEvent ( TraceEvent , GetMagickModule ( ) , \"%s\" , image -> filename ) ;\n length = ReadBlobMSBLong ( image ) ;\n for ( i = 0 ;\n i < ( ssize_t ) MagickMin ( length , max - 1 ) ;\n i ++ ) {\n c = ReadBlobByte ( image ) ;\n if ( c == EOF ) return ( ( char * ) NULL ) ;\n string [ i ] = ( char ) c ;\n }\n string [ i ] = '\\0' ;\n offset = SeekBlob ( image , ( MagickOffsetType ) ( length - i ) , SEEK_CUR ) ;\n if ( offset < 0 ) ( void ) ThrowMagickException ( exception , GetMagickModule ( ) , CorruptImageError , \"ImproperImageHeader\" , \"`%s'\" , image -> filename ) ;\n return ( string ) ;\n }"}
{"idx": 17897, "target": 0, "func": "static int _tiffCloseProc ( thandle_t fd ) {\n return ( CloseHandle ( fd ) ? 0 : - 1 ) ;\n }"}
{"idx": 17898, "target": 0, "func": "extern int as_mysql_register_ctld ( mysql_conn_t * mysql_conn , char * cluster , uint16_t port ) {\n char * query = NULL ;\n char * address = NULL ;\n char hostname [ 255 ] ;\n time_t now = time ( NULL ) ;\n uint32_t flags = slurmdb_setup_cluster_flags ( ) ;\n int rc = SLURM_SUCCESS ;\n if ( slurmdbd_conf ) fatal ( \"clusteracct_storage_g_register_ctld \" \"should never be called from the slurmdbd.\" ) ;\n if ( check_connection ( mysql_conn ) != SLURM_SUCCESS ) return ESLURM_DB_CONNECTION ;\n if ( ! mysql_conn -> cluster_name ) {\n error ( \"%s:%d no cluster name\" , THIS_FILE , __LINE__ ) ;\n return SLURM_ERROR ;\n }\n if ( ! mysql_conn -> cluster_name ) mysql_conn -> cluster_name = xstrdup ( cluster ) ;\n info ( \"Registering slurmctld for cluster %s at port %u in database.\" , cluster , port ) ;\n gethostname ( hostname , sizeof ( hostname ) ) ;\n if ( slurmctld_conf . backup_controller && ! xstrcmp ( slurmctld_conf . backup_controller , hostname ) ) {\n address = slurmctld_conf . backup_addr ;\n }\n else address = slurmctld_conf . control_addr ;\n query = xstrdup_printf ( \"update %s set deleted=0, mod_time=%ld, \" \"control_host='%s', control_port=%u, last_port=%u, \" \"rpc_version=%d, dimensions=%d, flags=%u, \" \"plugin_id_select=%d where name='%s';\n\" , cluster_table , now , address , port , port , SLURM_PROTOCOL_VERSION , SYSTEM_DIMENSIONS , flags , select_get_plugin_id ( ) , cluster ) ;\n xstrfmtcat ( query , \"insert into %s \" \"(timestamp, action, name, actor, info) \" \"values (%ld, %d, '%s', '%s', '%s %u %u %u %u');\n\" , txn_table , now , DBD_MODIFY_CLUSTERS , cluster , slurmctld_conf . slurm_user_name , address , port , SYSTEM_DIMENSIONS , flags , select_get_plugin_id ( ) ) ;\n if ( debug_flags & DEBUG_FLAG_DB_ASSOC ) DB_DEBUG ( mysql_conn -> conn , \"query\\n%s\" , query ) ;\n rc = mysql_db_query ( mysql_conn , query ) ;\n xfree ( query ) ;\n return rc ;\n }"}
{"idx": 17899, "target": 0, "func": "static int stp_print_spb_bpdu ( netdissect_options * ndo , const struct stp_bpdu_ * stp_bpdu , u_int offset ) {\n const u_char * ptr ;\n if ( ! ndo -> ndo_vflag ) {\n return 1 ;\n }\n ptr = ( const u_char * ) stp_bpdu ;\n ND_TCHECK_32BITS ( ptr + offset + SPB_BPDU_AGREEMENT_DIGEST_OFFSET + 16 ) ;\n ND_PRINT ( ( ndo , \"\\n\\tv4len %d, \" , EXTRACT_16BITS ( ptr + offset ) ) ) ;\n ND_PRINT ( ( ndo , \"AUXMCID Name \" ) ) ;\n if ( fn_printzp ( ndo , ptr + offset + SPB_BPDU_CONFIG_NAME_OFFSET , 32 , ndo -> ndo_snapend ) ) goto trunc ;\n ND_PRINT ( ( ndo , \", Rev %u,\\n\\t\\tdigest %08x%08x%08x%08x\" , EXTRACT_16BITS ( ptr + offset + SPB_BPDU_CONFIG_REV_OFFSET ) , EXTRACT_32BITS ( ptr + offset + SPB_BPDU_CONFIG_DIGEST_OFFSET ) , EXTRACT_32BITS ( ptr + offset + SPB_BPDU_CONFIG_DIGEST_OFFSET + 4 ) , EXTRACT_32BITS ( ptr + offset + SPB_BPDU_CONFIG_DIGEST_OFFSET + 8 ) , EXTRACT_32BITS ( ptr + offset + SPB_BPDU_CONFIG_DIGEST_OFFSET + 12 ) ) ) ;\n ND_PRINT ( ( ndo , \"\\n\\tAgreement num %d, Discarded Agreement num %d, Agreement valid-\" \"flag %d,\\n\\tRestricted role-flag: %d, Format id %d cap %d, \" \"Convention id %d cap %d,\\n\\tEdge count %d, \" \"Agreement digest %08x%08x%08x%08x%08x\\n\" , ptr [ offset + SPB_BPDU_AGREEMENT_OFFSET ] >> 6 , ptr [ offset + SPB_BPDU_AGREEMENT_OFFSET ] >> 4 & 0x3 , ptr [ offset + SPB_BPDU_AGREEMENT_OFFSET ] >> 3 & 0x1 , ptr [ offset + SPB_BPDU_AGREEMENT_OFFSET ] >> 2 & 0x1 , ptr [ offset + SPB_BPDU_AGREEMENT_FORMAT_OFFSET ] >> 4 , ptr [ offset + SPB_BPDU_AGREEMENT_FORMAT_OFFSET ] & 0x00ff , ptr [ offset + SPB_BPDU_AGREEMENT_CON_OFFSET ] >> 4 , ptr [ offset + SPB_BPDU_AGREEMENT_CON_OFFSET ] & 0x00ff , EXTRACT_16BITS ( ptr + offset + SPB_BPDU_AGREEMENT_EDGE_OFFSET ) , EXTRACT_32BITS ( ptr + offset + SPB_BPDU_AGREEMENT_DIGEST_OFFSET ) , EXTRACT_32BITS ( ptr + offset + SPB_BPDU_AGREEMENT_DIGEST_OFFSET + 4 ) , EXTRACT_32BITS ( ptr + offset + SPB_BPDU_AGREEMENT_DIGEST_OFFSET + 8 ) , EXTRACT_32BITS ( ptr + offset + SPB_BPDU_AGREEMENT_DIGEST_OFFSET + 12 ) , EXTRACT_32BITS ( ptr + offset + SPB_BPDU_AGREEMENT_DIGEST_OFFSET + 16 ) ) ) ;\n return 1 ;\n trunc : return 0 ;\n }"}
{"idx": 17900, "target": 0, "func": "static uint32_t e1000e_mac_low ## num ## _read ( E1000ECore * core , int index ) {\n return core -> mac [ index ] & ( BIT ( num ) - 1 ) ;\n }\n # define E1000E_LOW_BITS_READ ( num ) e1000e_mac_low ## num ## _read E1000E_LOW_BITS_READ_FUNC ( 4 )"}
{"idx": 17901, "target": 0, "func": "static int SpoolssGetJob_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ;\n guint32 level , jobid ;\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , NULL , NULL , FALSE , FALSE ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_job_id , & jobid ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_level , & level ) ;\n if ( ! pinfo -> fd -> flags . visited ) {\n dcv -> se_data = GUINT_TO_POINTER ( ( int ) level ) ;\n }\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", level %d, jobid %d\" , level , jobid ) ;\n offset = dissect_spoolss_buffer ( tvb , offset , pinfo , tree , di , drep , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_offered , NULL ) ;\n return offset ;\n }"}
{"idx": 17902, "target": 0, "func": "static int h261_decode_gob_header ( H261Context * h ) {\n unsigned int val ;\n MpegEncContext * const s = & h -> s ;\n if ( ! h -> gob_start_code_skipped ) {\n val = show_bits ( & s -> gb , 15 ) ;\n if ( val ) return - 1 ;\n skip_bits ( & s -> gb , 16 ) ;\n }\n h -> gob_start_code_skipped = 0 ;\n h -> gob_number = get_bits ( & s -> gb , 4 ) ;\n s -> qscale = get_bits ( & s -> gb , 5 ) ;\n if ( s -> mb_height == 18 ) {\n if ( ( h -> gob_number <= 0 ) || ( h -> gob_number > 12 ) ) return - 1 ;\n }\n else {\n if ( ( h -> gob_number != 1 ) && ( h -> gob_number != 3 ) && ( h -> gob_number != 5 ) ) return - 1 ;\n }\n while ( get_bits1 ( & s -> gb ) != 0 ) {\n skip_bits ( & s -> gb , 8 ) ;\n }\n if ( s -> qscale == 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"qscale has forbidden 0 value\\n\" ) ;\n if ( s -> avctx -> err_recognition & AV_EF_BITSTREAM ) return - 1 ;\n }\n h -> current_mba = 0 ;\n h -> mba_diff = 0 ;\n return 0 ;\n }"}
{"idx": 17903, "target": 0, "func": "static void std_conv_color ( fz_context * ctx , fz_color_converter * cc , float * dstv , const float * srcv ) {\n float rgb [ 3 ] ;\n int i ;\n const fz_colorspace * srcs = cc -> ss ;\n const fz_colorspace * dsts = cc -> ds ;\n if ( srcs == NULL ) srcs = fz_device_rgb ( ctx ) ;\n if ( dsts == NULL ) dsts = fz_device_rgb ( ctx ) ;\n if ( srcs != dsts ) {\n assert ( srcs -> to_ccs && dsts -> from_ccs ) ;\n srcs -> to_ccs ( ctx , srcs , srcv , rgb ) ;\n dsts -> from_ccs ( ctx , dsts , rgb , dstv ) ;\n for ( i = 0 ;\n i < dsts -> n ;\n i ++ ) dstv [ i ] = fz_clamp ( dstv [ i ] , 0 , 1 ) ;\n }\n else {\n for ( i = 0 ;\n i < srcs -> n ;\n i ++ ) dstv [ i ] = srcv [ i ] ;\n }\n }"}
{"idx": 17904, "target": 0, "func": "static void dissect_ack_byte ( proto_tree * tree , tvbuff_t * tvb , int offset , packet_info * pinfo _U_ ) {\n proto_item * ack_item ;\n proto_tree * ack_tree ;\n # if 0 guint8 ack_byte ;\n ack_byte = tvb_get_guint8 ( tvb , offset ) ;\n # endif if ( ! tree ) return ;\n ack_item = proto_tree_add_item ( tree , hf_cipsafety_ack_byte , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n ack_tree = proto_item_add_subtree ( ack_item , ett_cipsafety_ack_byte ) ;\n proto_tree_add_item ( ack_tree , hf_cipsafety_ack_byte_ping_count_reply , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( ack_tree , hf_cipsafety_ack_byte_reserved1 , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( ack_tree , hf_cipsafety_ack_byte_ping_response , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( ack_tree , hf_cipsafety_ack_byte_reserved2 , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( ack_tree , hf_cipsafety_ack_byte_parity_even , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n }"}
{"idx": 17905, "target": 0, "func": "void gincostestimate ( PlannerInfo * root , IndexPath * path , double loop_count , Cost * indexStartupCost , Cost * indexTotalCost , Selectivity * indexSelectivity , double * indexCorrelation ) {\n IndexOptInfo * index = path -> indexinfo ;\n List * indexQuals = path -> indexquals ;\n List * indexOrderBys = path -> indexorderbys ;\n List * qinfos ;\n ListCell * l ;\n List * selectivityQuals ;\n double numPages = index -> pages , numTuples = index -> tuples ;\n double numEntryPages , numDataPages , numPendingPages , numEntries ;\n GinQualCounts counts ;\n bool matchPossible ;\n double partialScale ;\n double entryPagesFetched , dataPagesFetched , dataPagesFetchedBySel ;\n double qual_op_cost , qual_arg_cost , spc_random_page_cost , outer_scans ;\n Relation indexRel ;\n GinStatsData ginStats ;\n qinfos = deconstruct_indexquals ( path ) ;\n if ( ! index -> hypothetical ) {\n indexRel = index_open ( index -> indexoid , AccessShareLock ) ;\n ginGetStats ( indexRel , & ginStats ) ;\n index_close ( indexRel , AccessShareLock ) ;\n }\n else {\n memset ( & ginStats , 0 , sizeof ( ginStats ) ) ;\n }\n if ( ginStats . nPendingPages < numPages ) numPendingPages = ginStats . nPendingPages ;\n else numPendingPages = 0 ;\n if ( numPages > 0 && ginStats . nTotalPages <= numPages && ginStats . nTotalPages > numPages / 4 && ginStats . nEntryPages > 0 && ginStats . nEntries > 0 ) {\n double scale = numPages / ginStats . nTotalPages ;\n numEntryPages = ceil ( ginStats . nEntryPages * scale ) ;\n numDataPages = ceil ( ginStats . nDataPages * scale ) ;\n numEntries = ceil ( ginStats . nEntries * scale ) ;\n numEntryPages = Min ( numEntryPages , numPages - numPendingPages ) ;\n numDataPages = Min ( numDataPages , numPages - numPendingPages - numEntryPages ) ;\n }\n else {\n numPages = Max ( numPages , 10 ) ;\n numEntryPages = floor ( ( numPages - numPendingPages ) * 0.90 ) ;\n numDataPages = numPages - numPendingPages - numEntryPages ;\n numEntries = floor ( numEntryPages * 100 ) ;\n }\n if ( numEntries < 1 ) numEntries = 1 ;\n if ( index -> indpred != NIL ) {\n List * predExtraQuals = NIL ;\n foreach ( l , index -> indpred ) {\n Node * predQual = ( Node * ) lfirst ( l ) ;\n List * oneQual = list_make1 ( predQual ) ;\n if ( ! predicate_implied_by ( oneQual , indexQuals ) ) predExtraQuals = list_concat ( predExtraQuals , oneQual ) ;\n }\n selectivityQuals = list_concat ( predExtraQuals , indexQuals ) ;\n }\n else selectivityQuals = indexQuals ;\n * indexSelectivity = clauselist_selectivity ( root , selectivityQuals , index -> rel -> relid , JOIN_INNER , NULL ) ;\n get_tablespace_page_costs ( index -> reltablespace , & spc_random_page_cost , NULL ) ;\n * indexCorrelation = 0.0 ;\n memset ( & counts , 0 , sizeof ( counts ) ) ;\n counts . arrayScans = 1 ;\n matchPossible = true ;\n foreach ( l , qinfos ) {\n IndexQualInfo * qinfo = ( IndexQualInfo * ) lfirst ( l ) ;\n Expr * clause = qinfo -> rinfo -> clause ;\n if ( IsA ( clause , OpExpr ) ) {\n matchPossible = gincost_opexpr ( root , index , qinfo , & counts ) ;\n if ( ! matchPossible ) break ;\n }\n else if ( IsA ( clause , ScalarArrayOpExpr ) ) {\n matchPossible = gincost_scalararrayopexpr ( root , index , qinfo , numEntries , & counts ) ;\n if ( ! matchPossible ) break ;\n }\n else {\n elog ( ERROR , \"unsupported GIN indexqual type: %d\" , ( int ) nodeTag ( clause ) ) ;\n }\n }\n if ( ! matchPossible ) {\n * indexStartupCost = 0 ;\n * indexTotalCost = 0 ;\n * indexSelectivity = 0 ;\n return ;\n }\n if ( counts . haveFullScan || indexQuals == NIL ) {\n counts . partialEntries = 0 ;\n counts . exactEntries = numEntries ;\n counts . searchEntries = numEntries ;\n }\n outer_scans = loop_count ;\n entryPagesFetched = numPendingPages ;\n entryPagesFetched += ceil ( counts . searchEntries * rint ( pow ( numEntryPages , 0.15 ) ) ) ;\n partialScale = counts . partialEntries / numEntries ;\n partialScale = Min ( partialScale , 1.0 ) ;\n entryPagesFetched += ceil ( numEntryPages * partialScale ) ;\n dataPagesFetched = ceil ( numDataPages * partialScale ) ;\n if ( outer_scans > 1 || counts . arrayScans > 1 ) {\n entryPagesFetched *= outer_scans * counts . arrayScans ;\n entryPagesFetched = index_pages_fetched ( entryPagesFetched , ( BlockNumber ) numEntryPages , numEntryPages , root ) ;\n entryPagesFetched /= outer_scans ;\n dataPagesFetched *= outer_scans * counts . arrayScans ;\n dataPagesFetched = index_pages_fetched ( dataPagesFetched , ( BlockNumber ) numDataPages , numDataPages , root ) ;\n dataPagesFetched /= outer_scans ;\n }\n * indexStartupCost = ( entryPagesFetched + dataPagesFetched ) * spc_random_page_cost ;\n dataPagesFetched = ceil ( numDataPages * counts . exactEntries / numEntries ) ;\n dataPagesFetchedBySel = ceil ( * indexSelectivity * ( numTuples / ( BLCKSZ / 3 ) ) ) ;\n if ( dataPagesFetchedBySel > dataPagesFetched ) dataPagesFetched = dataPagesFetchedBySel ;\n if ( outer_scans > 1 || counts . arrayScans > 1 ) {\n dataPagesFetched *= outer_scans * counts . arrayScans ;\n dataPagesFetched = index_pages_fetched ( dataPagesFetched , ( BlockNumber ) numDataPages , numDataPages , root ) ;\n dataPagesFetched /= outer_scans ;\n }\n * indexTotalCost = * indexStartupCost + dataPagesFetched * spc_random_page_cost ;\n qual_arg_cost = other_operands_eval_cost ( root , qinfos ) + orderby_operands_eval_cost ( root , path ) ;\n qual_op_cost = cpu_operator_cost * ( list_length ( indexQuals ) + list_length ( indexOrderBys ) ) ;\n * indexStartupCost += qual_arg_cost ;\n * indexTotalCost += qual_arg_cost ;\n * indexTotalCost += ( numTuples * * indexSelectivity ) * ( cpu_index_tuple_cost + qual_op_cost ) ;\n }"}
{"idx": 17906, "target": 0, "func": "static uint32_t _get_wckeyid ( mysql_conn_t * mysql_conn , char * * name , uid_t uid , char * cluster , uint32_t associd ) {\n uint32_t wckeyid = 0 ;\n if ( slurm_get_track_wckey ( ) ) {\n slurmdb_wckey_rec_t wckey_rec ;\n char * user = NULL ;\n if ( ! ( user = _get_user_from_associd ( mysql_conn , cluster , associd ) ) ) {\n error ( \"No user for associd %u\" , associd ) ;\n goto no_wckeyid ;\n }\n if ( ! * name ) {\n slurmdb_user_rec_t user_rec ;\n memset ( & user_rec , 0 , sizeof ( slurmdb_user_rec_t ) ) ;\n user_rec . uid = NO_VAL ;\n user_rec . name = user ;\n if ( assoc_mgr_fill_in_user ( mysql_conn , & user_rec , 1 , NULL ) != SLURM_SUCCESS ) {\n error ( \"No user by name of %s assoc %u\" , user , associd ) ;\n xfree ( user ) ;\n goto no_wckeyid ;\n }\n if ( user_rec . default_wckey ) * name = xstrdup_printf ( \"*%s\" , user_rec . default_wckey ) ;\n else * name = xstrdup_printf ( \"*\" ) ;\n }\n memset ( & wckey_rec , 0 , sizeof ( slurmdb_wckey_rec_t ) ) ;\n wckey_rec . name = ( * name ) ;\n wckey_rec . uid = NO_VAL ;\n wckey_rec . user = user ;\n wckey_rec . cluster = cluster ;\n if ( assoc_mgr_fill_in_wckey ( mysql_conn , & wckey_rec , ACCOUNTING_ENFORCE_WCKEYS , NULL ) != SLURM_SUCCESS ) {\n List wckey_list = NULL ;\n slurmdb_wckey_rec_t * wckey_ptr = NULL ;\n wckey_list = list_create ( slurmdb_destroy_wckey_rec ) ;\n wckey_ptr = xmalloc ( sizeof ( slurmdb_wckey_rec_t ) ) ;\n wckey_ptr -> name = xstrdup ( ( * name ) ) ;\n wckey_ptr -> user = xstrdup ( user ) ;\n wckey_ptr -> cluster = xstrdup ( cluster ) ;\n list_append ( wckey_list , wckey_ptr ) ;\n if ( * name [ 0 ] == '*' ) {\n wckey_rec . name = ( * name ) + 1 ;\n if ( assoc_mgr_fill_in_wckey ( mysql_conn , & wckey_rec , ACCOUNTING_ENFORCE_WCKEYS , NULL ) != SLURM_SUCCESS ) {\n wckey_ptr = xmalloc ( sizeof ( slurmdb_wckey_rec_t ) ) ;\n wckey_ptr -> name = xstrdup ( wckey_rec . name ) ;\n wckey_ptr -> user = xstrdup ( user ) ;\n wckey_ptr -> cluster = xstrdup ( cluster ) ;\n list_prepend ( wckey_list , wckey_ptr ) ;\n }\n wckey_rec . name = ( * name ) ;\n }\n if ( as_mysql_add_wckeys ( mysql_conn , slurm_get_slurm_user_id ( ) , wckey_list ) == SLURM_SUCCESS ) acct_storage_p_commit ( mysql_conn , 1 ) ;\n assoc_mgr_fill_in_wckey ( mysql_conn , & wckey_rec , ACCOUNTING_ENFORCE_WCKEYS , NULL ) ;\n FREE_NULL_LIST ( wckey_list ) ;\n }\n xfree ( user ) ;\n wckeyid = wckey_rec . id ;\n }\n no_wckeyid : return wckeyid ;\n }"}
{"idx": 17907, "target": 0, "func": "int ber_ptrlen ( BerElement * ber ) {\n return ( ber -> ber_ptr - ber -> ber_buf ) ;\n }"}
{"idx": 17908, "target": 0, "func": "TIFF * TIFFOpen ( const char * name , const char * mode ) {\n static const char module [ ] = \"TIFFOpen\" ;\n thandle_t fd ;\n int m ;\n DWORD dwMode ;\n TIFF * tif ;\n m = _TIFFgetMode ( mode , module ) ;\n switch ( m ) {\n case O_RDONLY : dwMode = OPEN_EXISTING ;\n break ;\n case O_RDWR : dwMode = OPEN_ALWAYS ;\n break ;\n case O_RDWR | O_CREAT : dwMode = OPEN_ALWAYS ;\n break ;\n case O_RDWR | O_TRUNC : dwMode = CREATE_ALWAYS ;\n break ;\n case O_RDWR | O_CREAT | O_TRUNC : dwMode = CREATE_ALWAYS ;\n break ;\n default : return ( ( TIFF * ) 0 ) ;\n }\n fd = ( thandle_t ) CreateFileA ( name , ( m == O_RDONLY ) ? GENERIC_READ : ( GENERIC_READ | GENERIC_WRITE ) , FILE_SHARE_READ | FILE_SHARE_WRITE , NULL , dwMode , ( m == O_RDONLY ) ? FILE_ATTRIBUTE_READONLY : FILE_ATTRIBUTE_NORMAL , NULL ) ;\n if ( fd == INVALID_HANDLE_VALUE ) {\n TIFFErrorExt ( 0 , module , \"%s: Cannot open\" , name ) ;\n return ( ( TIFF * ) 0 ) ;\n }\n tif = TIFFFdOpen ( ( int ) fd , name , mode ) ;\n if ( ! tif ) CloseHandle ( fd ) ;\n return tif ;\n }"}
{"idx": 17909, "target": 0, "func": "static int calc_iframe_target_size_one_pass_vbr ( const VP9_COMP * const cpi ) {\n static const int kf_ratio = 25 ;\n const RATE_CONTROL * rc = & cpi -> rc ;\n const int target = rc -> avg_frame_bandwidth * kf_ratio ;\n return vp9_rc_clamp_iframe_target_size ( cpi , target ) ;\n }"}
{"idx": 17910, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( UnloadTest , BrowserCloseTwoSecondUnloadAlert ) {\n LoadUrlAndQuitBrowser ( TWO_SECOND_UNLOAD_ALERT_HTML , \"twosecondunloadalert\" ) ;\n }"}
{"idx": 17911, "target": 0, "func": "void * ASN1_d2i_bio ( void * ( * xnew ) ( void ) , d2i_of_void * d2i , BIO * in , void * * x ) {\n BUF_MEM * b = NULL ;\n const unsigned char * p ;\n void * ret = NULL ;\n int len ;\n len = asn1_d2i_read_bio ( in , & b ) ;\n if ( len < 0 ) goto err ;\n p = ( unsigned char * ) b -> data ;\n ret = d2i ( x , & p , len ) ;\n err : BUF_MEM_free ( b ) ;\n return ( ret ) ;\n }"}
{"idx": 17912, "target": 0, "func": "void TSVConnClose ( TSVConn connp ) {\n sdk_assert ( sdk_sanity_check_iocore_structure ( connp ) == TS_SUCCESS ) ;\n VConnection * vc = ( VConnection * ) connp ;\n vc -> do_io_close ( ) ;\n }"}
{"idx": 17913, "target": 0, "func": "static DeviceState * slavio_intctl_init ( hwaddr addr , hwaddr addrg , qemu_irq * * parent_irq ) {\n DeviceState * dev ;\n SysBusDevice * s ;\n unsigned int i , j ;\n dev = qdev_create ( NULL , \"slavio_intctl\" ) ;\n qdev_init_nofail ( dev ) ;\n s = SYS_BUS_DEVICE ( dev ) ;\n for ( i = 0 ;\n i < MAX_CPUS ;\n i ++ ) {\n for ( j = 0 ;\n j < MAX_PILS ;\n j ++ ) {\n sysbus_connect_irq ( s , i * MAX_PILS + j , parent_irq [ i ] [ j ] ) ;\n }\n }\n sysbus_mmio_map ( s , 0 , addrg ) ;\n for ( i = 0 ;\n i < MAX_CPUS ;\n i ++ ) {\n sysbus_mmio_map ( s , i + 1 , addr + i * TARGET_PAGE_SIZE ) ;\n }\n return dev ;\n }"}
{"idx": 17914, "target": 1, "func": "mbfl_string * mbfl_strcut ( mbfl_string * string , mbfl_string * result , int from , int length ) {\n const mbfl_encoding * encoding ;\n mbfl_memory_device device ;\n if ( string == NULL || string -> val == NULL || result == NULL ) {\n return NULL ;\n }\n if ( from < 0 || length < 0 ) {\n return NULL ;\n }\n if ( from >= string -> len ) {\n from = string -> len ;\n }\n encoding = mbfl_no2encoding ( string -> no_encoding ) ;\n if ( encoding == NULL ) {\n return NULL ;\n }\n mbfl_string_init ( result ) ;\n result -> no_language = string -> no_language ;\n result -> no_encoding = string -> no_encoding ;\n if ( ( encoding -> flag & ( MBFL_ENCTYPE_SBCS | MBFL_ENCTYPE_WCS2BE | MBFL_ENCTYPE_WCS2LE | MBFL_ENCTYPE_WCS4BE | MBFL_ENCTYPE_WCS4LE ) ) || encoding -> mblen_table != NULL ) {\n const unsigned char * start = NULL ;\n const unsigned char * end = NULL ;\n unsigned char * w ;\n unsigned int sz ;\n if ( encoding -> flag & ( MBFL_ENCTYPE_WCS2BE | MBFL_ENCTYPE_WCS2LE ) ) {\n from &= - 2 ;\n if ( from + length >= string -> len ) {\n length = string -> len - from ;\n }\n start = string -> val + from ;\n end = start + ( length & - 2 ) ;\n }\n else if ( encoding -> flag & ( MBFL_ENCTYPE_WCS4BE | MBFL_ENCTYPE_WCS4LE ) ) {\n from &= - 4 ;\n if ( from + length >= string -> len ) {\n length = string -> len - from ;\n }\n start = string -> val + from ;\n end = start + ( length & - 4 ) ;\n }\n else if ( ( encoding -> flag & MBFL_ENCTYPE_SBCS ) ) {\n if ( from + length >= string -> len ) {\n length = string -> len - from ;\n }\n start = string -> val + from ;\n end = start + length ;\n }\n else if ( encoding -> mblen_table != NULL ) {\n const unsigned char * mbtab = encoding -> mblen_table ;\n const unsigned char * p , * q ;\n int m ;\n for ( m = 0 , p = string -> val , q = p + from ;\n p < q ;\n p += ( m = mbtab [ * p ] ) ) ;\n if ( p > q ) {\n p -= m ;\n }\n start = p ;\n if ( ( start - string -> val ) + length >= ( int ) string -> len ) {\n end = string -> val + string -> len ;\n }\n else {\n for ( q = p + length ;\n p < q ;\n p += ( m = mbtab [ * p ] ) ) ;\n if ( p > q ) {\n p -= m ;\n }\n end = p ;\n }\n }\n else {\n return NULL ;\n }\n sz = end - start ;\n if ( ( w = ( unsigned char * ) mbfl_calloc ( sz + 8 , sizeof ( unsigned char ) ) ) == NULL ) {\n return NULL ;\n }\n memcpy ( w , start , sz ) ;\n w [ sz ] = '\\0' ;\n w [ sz + 1 ] = '\\0' ;\n w [ sz + 2 ] = '\\0' ;\n w [ sz + 3 ] = '\\0' ;\n result -> val = w ;\n result -> len = sz ;\n }\n else {\n mbfl_convert_filter * encoder = NULL ;\n mbfl_convert_filter * decoder = NULL ;\n const unsigned char * p , * q , * r ;\n struct {\n mbfl_convert_filter encoder ;\n mbfl_convert_filter decoder ;\n const unsigned char * p ;\n int pos ;\n }\n bk , _bk ;\n if ( ! ( decoder = mbfl_convert_filter_new ( mbfl_no_encoding_wchar , string -> no_encoding , mbfl_memory_device_output , 0 , & device ) ) ) {\n return NULL ;\n }\n if ( ! ( encoder = mbfl_convert_filter_new ( string -> no_encoding , mbfl_no_encoding_wchar , mbfl_filter_output_null , NULL , NULL ) ) ) {\n mbfl_convert_filter_delete ( decoder ) ;\n return NULL ;\n }\n mbfl_memory_device_init ( & device , length + 8 , 0 ) ;\n p = string -> val ;\n for ( q = string -> val + from ;\n p < q ;\n p ++ ) {\n ( * encoder -> filter_function ) ( * p , encoder ) ;\n }\n encoder -> output_function = ( int ( * ) ( int , void * ) ) decoder -> filter_function ;\n encoder -> flush_function = ( int ( * ) ( void * ) ) decoder -> filter_flush ;\n encoder -> data = decoder ;\n q = string -> val + string -> len ;\n mbfl_convert_filter_copy ( decoder , & _bk . decoder ) ;\n mbfl_convert_filter_copy ( encoder , & _bk . encoder ) ;\n _bk . p = p ;\n _bk . pos = device . pos ;\n if ( length > q - p ) {\n length = q - p ;\n }\n if ( length >= 20 ) {\n for ( r = p + length - 20 ;\n p < r ;\n p ++ ) {\n ( * encoder -> filter_function ) ( * p , encoder ) ;\n }\n if ( device . pos > length ) {\n p = _bk . p ;\n device . pos = _bk . pos ;\n decoder -> filter_dtor ( decoder ) ;\n encoder -> filter_dtor ( encoder ) ;\n mbfl_convert_filter_copy ( & _bk . decoder , decoder ) ;\n mbfl_convert_filter_copy ( & _bk . encoder , encoder ) ;\n bk = _bk ;\n }\n else {\n mbfl_convert_filter_copy ( decoder , & bk . decoder ) ;\n mbfl_convert_filter_copy ( encoder , & bk . encoder ) ;\n bk . p = p ;\n bk . pos = device . pos ;\n ( * encoder -> filter_flush ) ( encoder ) ;\n if ( device . pos > length ) {\n bk . decoder . filter_dtor ( & bk . decoder ) ;\n bk . encoder . filter_dtor ( & bk . encoder ) ;\n p = _bk . p ;\n device . pos = _bk . pos ;\n decoder -> filter_dtor ( decoder ) ;\n encoder -> filter_dtor ( encoder ) ;\n mbfl_convert_filter_copy ( & _bk . decoder , decoder ) ;\n mbfl_convert_filter_copy ( & _bk . encoder , encoder ) ;\n bk = _bk ;\n }\n else {\n _bk . decoder . filter_dtor ( & _bk . decoder ) ;\n _bk . encoder . filter_dtor ( & _bk . encoder ) ;\n p = bk . p ;\n device . pos = bk . pos ;\n decoder -> filter_dtor ( decoder ) ;\n encoder -> filter_dtor ( encoder ) ;\n mbfl_convert_filter_copy ( & bk . decoder , decoder ) ;\n mbfl_convert_filter_copy ( & bk . encoder , encoder ) ;\n }\n }\n }\n else {\n bk = _bk ;\n }\n while ( p < q ) {\n ( * encoder -> filter_function ) ( * p , encoder ) ;\n if ( device . pos > length ) {\n p = bk . p ;\n device . pos = bk . pos ;\n decoder -> filter_dtor ( decoder ) ;\n encoder -> filter_dtor ( encoder ) ;\n mbfl_convert_filter_copy ( & bk . decoder , decoder ) ;\n mbfl_convert_filter_copy ( & bk . encoder , encoder ) ;\n break ;\n }\n p ++ ;\n mbfl_convert_filter_copy ( decoder , & _bk . decoder ) ;\n mbfl_convert_filter_copy ( encoder , & _bk . encoder ) ;\n _bk . pos = device . pos ;\n _bk . p = p ;\n ( * encoder -> filter_flush ) ( encoder ) ;\n if ( device . pos > length ) {\n _bk . decoder . filter_dtor ( & _bk . decoder ) ;\n _bk . encoder . filter_dtor ( & _bk . encoder ) ;\n p = bk . p ;\n device . pos = bk . pos ;\n decoder -> filter_dtor ( decoder ) ;\n encoder -> filter_dtor ( encoder ) ;\n mbfl_convert_filter_copy ( & bk . decoder , decoder ) ;\n mbfl_convert_filter_copy ( & bk . encoder , encoder ) ;\n break ;\n }\n bk . decoder . filter_dtor ( & bk . decoder ) ;\n bk . encoder . filter_dtor ( & bk . encoder ) ;\n p = _bk . p ;\n device . pos = _bk . pos ;\n decoder -> filter_dtor ( decoder ) ;\n encoder -> filter_dtor ( encoder ) ;\n mbfl_convert_filter_copy ( & _bk . decoder , decoder ) ;\n mbfl_convert_filter_copy ( & _bk . encoder , encoder ) ;\n bk = _bk ;\n }\n ( * encoder -> filter_flush ) ( encoder ) ;\n bk . decoder . filter_dtor ( & bk . decoder ) ;\n bk . encoder . filter_dtor ( & bk . encoder ) ;\n result = mbfl_memory_device_result ( & device , result ) ;\n mbfl_convert_filter_delete ( encoder ) ;\n mbfl_convert_filter_delete ( decoder ) ;\n }\n return result ;\n }"}
{"idx": 17915, "target": 0, "func": "fz_colorspace * fz_default_rgb ( fz_context * ctx , const fz_default_colorspaces * default_cs ) {\n if ( default_cs ) return default_cs -> rgb ;\n else return fz_device_rgb ( ctx ) ;\n }"}
{"idx": 17916, "target": 1, "func": "int i2d_ ## name ( type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;\n int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER )"}
{"idx": 17917, "target": 0, "func": "void vp8cx_init_quantizer ( VP8_COMP * cpi ) {\n int i ;\n int quant_val ;\n int Q ;\n int zbin_boost [ 16 ] = {\n 0 , 0 , 8 , 10 , 12 , 14 , 16 , 20 , 24 , 28 , 32 , 36 , 40 , 44 , 44 , 44 }\n ;\n for ( Q = 0 ;\n Q < QINDEX_RANGE ;\n Q ++ ) {\n quant_val = vp8_dc_quant ( Q , cpi -> common . y1dc_delta_q ) ;\n cpi -> Y1quant_fast [ Q ] [ 0 ] = ( 1 << 16 ) / quant_val ;\n invert_quant ( cpi -> sf . improved_quant , cpi -> Y1quant [ Q ] + 0 , cpi -> Y1quant_shift [ Q ] + 0 , quant_val ) ;\n cpi -> Y1zbin [ Q ] [ 0 ] = ( ( qzbin_factors [ Q ] * quant_val ) + 64 ) >> 7 ;\n cpi -> Y1round [ Q ] [ 0 ] = ( qrounding_factors [ Q ] * quant_val ) >> 7 ;\n cpi -> common . Y1dequant [ Q ] [ 0 ] = quant_val ;\n cpi -> zrun_zbin_boost_y1 [ Q ] [ 0 ] = ( quant_val * zbin_boost [ 0 ] ) >> 7 ;\n quant_val = vp8_dc2quant ( Q , cpi -> common . y2dc_delta_q ) ;\n cpi -> Y2quant_fast [ Q ] [ 0 ] = ( 1 << 16 ) / quant_val ;\n invert_quant ( cpi -> sf . improved_quant , cpi -> Y2quant [ Q ] + 0 , cpi -> Y2quant_shift [ Q ] + 0 , quant_val ) ;\n cpi -> Y2zbin [ Q ] [ 0 ] = ( ( qzbin_factors_y2 [ Q ] * quant_val ) + 64 ) >> 7 ;\n cpi -> Y2round [ Q ] [ 0 ] = ( qrounding_factors_y2 [ Q ] * quant_val ) >> 7 ;\n cpi -> common . Y2dequant [ Q ] [ 0 ] = quant_val ;\n cpi -> zrun_zbin_boost_y2 [ Q ] [ 0 ] = ( quant_val * zbin_boost [ 0 ] ) >> 7 ;\n quant_val = vp8_dc_uv_quant ( Q , cpi -> common . uvdc_delta_q ) ;\n cpi -> UVquant_fast [ Q ] [ 0 ] = ( 1 << 16 ) / quant_val ;\n invert_quant ( cpi -> sf . improved_quant , cpi -> UVquant [ Q ] + 0 , cpi -> UVquant_shift [ Q ] + 0 , quant_val ) ;\n cpi -> UVzbin [ Q ] [ 0 ] = ( ( qzbin_factors [ Q ] * quant_val ) + 64 ) >> 7 ;\n ;\n cpi -> UVround [ Q ] [ 0 ] = ( qrounding_factors [ Q ] * quant_val ) >> 7 ;\n cpi -> common . UVdequant [ Q ] [ 0 ] = quant_val ;\n cpi -> zrun_zbin_boost_uv [ Q ] [ 0 ] = ( quant_val * zbin_boost [ 0 ] ) >> 7 ;\n quant_val = vp8_ac_yquant ( Q ) ;\n cpi -> Y1quant_fast [ Q ] [ 1 ] = ( 1 << 16 ) / quant_val ;\n invert_quant ( cpi -> sf . improved_quant , cpi -> Y1quant [ Q ] + 1 , cpi -> Y1quant_shift [ Q ] + 1 , quant_val ) ;\n cpi -> Y1zbin [ Q ] [ 1 ] = ( ( qzbin_factors [ Q ] * quant_val ) + 64 ) >> 7 ;\n cpi -> Y1round [ Q ] [ 1 ] = ( qrounding_factors [ Q ] * quant_val ) >> 7 ;\n cpi -> common . Y1dequant [ Q ] [ 1 ] = quant_val ;\n cpi -> zrun_zbin_boost_y1 [ Q ] [ 1 ] = ( quant_val * zbin_boost [ 1 ] ) >> 7 ;\n quant_val = vp8_ac2quant ( Q , cpi -> common . y2ac_delta_q ) ;\n cpi -> Y2quant_fast [ Q ] [ 1 ] = ( 1 << 16 ) / quant_val ;\n invert_quant ( cpi -> sf . improved_quant , cpi -> Y2quant [ Q ] + 1 , cpi -> Y2quant_shift [ Q ] + 1 , quant_val ) ;\n cpi -> Y2zbin [ Q ] [ 1 ] = ( ( qzbin_factors_y2 [ Q ] * quant_val ) + 64 ) >> 7 ;\n cpi -> Y2round [ Q ] [ 1 ] = ( qrounding_factors_y2 [ Q ] * quant_val ) >> 7 ;\n cpi -> common . Y2dequant [ Q ] [ 1 ] = quant_val ;\n cpi -> zrun_zbin_boost_y2 [ Q ] [ 1 ] = ( quant_val * zbin_boost [ 1 ] ) >> 7 ;\n quant_val = vp8_ac_uv_quant ( Q , cpi -> common . uvac_delta_q ) ;\n cpi -> UVquant_fast [ Q ] [ 1 ] = ( 1 << 16 ) / quant_val ;\n invert_quant ( cpi -> sf . improved_quant , cpi -> UVquant [ Q ] + 1 , cpi -> UVquant_shift [ Q ] + 1 , quant_val ) ;\n cpi -> UVzbin [ Q ] [ 1 ] = ( ( qzbin_factors [ Q ] * quant_val ) + 64 ) >> 7 ;\n cpi -> UVround [ Q ] [ 1 ] = ( qrounding_factors [ Q ] * quant_val ) >> 7 ;\n cpi -> common . UVdequant [ Q ] [ 1 ] = quant_val ;\n cpi -> zrun_zbin_boost_uv [ Q ] [ 1 ] = ( quant_val * zbin_boost [ 1 ] ) >> 7 ;\n for ( i = 2 ;\n i < 16 ;\n i ++ ) {\n cpi -> Y1quant_fast [ Q ] [ i ] = cpi -> Y1quant_fast [ Q ] [ 1 ] ;\n cpi -> Y1quant [ Q ] [ i ] = cpi -> Y1quant [ Q ] [ 1 ] ;\n cpi -> Y1quant_shift [ Q ] [ i ] = cpi -> Y1quant_shift [ Q ] [ 1 ] ;\n cpi -> Y1zbin [ Q ] [ i ] = cpi -> Y1zbin [ Q ] [ 1 ] ;\n cpi -> Y1round [ Q ] [ i ] = cpi -> Y1round [ Q ] [ 1 ] ;\n cpi -> zrun_zbin_boost_y1 [ Q ] [ i ] = ( cpi -> common . Y1dequant [ Q ] [ 1 ] * zbin_boost [ i ] ) >> 7 ;\n cpi -> Y2quant_fast [ Q ] [ i ] = cpi -> Y2quant_fast [ Q ] [ 1 ] ;\n cpi -> Y2quant [ Q ] [ i ] = cpi -> Y2quant [ Q ] [ 1 ] ;\n cpi -> Y2quant_shift [ Q ] [ i ] = cpi -> Y2quant_shift [ Q ] [ 1 ] ;\n cpi -> Y2zbin [ Q ] [ i ] = cpi -> Y2zbin [ Q ] [ 1 ] ;\n cpi -> Y2round [ Q ] [ i ] = cpi -> Y2round [ Q ] [ 1 ] ;\n cpi -> zrun_zbin_boost_y2 [ Q ] [ i ] = ( cpi -> common . Y2dequant [ Q ] [ 1 ] * zbin_boost [ i ] ) >> 7 ;\n cpi -> UVquant_fast [ Q ] [ i ] = cpi -> UVquant_fast [ Q ] [ 1 ] ;\n cpi -> UVquant [ Q ] [ i ] = cpi -> UVquant [ Q ] [ 1 ] ;\n cpi -> UVquant_shift [ Q ] [ i ] = cpi -> UVquant_shift [ Q ] [ 1 ] ;\n cpi -> UVzbin [ Q ] [ i ] = cpi -> UVzbin [ Q ] [ 1 ] ;\n cpi -> UVround [ Q ] [ i ] = cpi -> UVround [ Q ] [ 1 ] ;\n cpi -> zrun_zbin_boost_uv [ Q ] [ i ] = ( cpi -> common . UVdequant [ Q ] [ 1 ] * zbin_boost [ i ] ) >> 7 ;\n }\n }\n }"}
{"idx": 17918, "target": 0, "func": "void fz_drop_cmm_context ( fz_context * ctx ) {\n fz_cmm_drop_instance ( ctx ) ;\n ctx -> cmm_instance = NULL ;\n }"}
{"idx": 17919, "target": 0, "func": "static void test_simple_delete ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n char szData [ 30 ] = {\n 0 }\n ;\n int nData = 1 ;\n MYSQL_RES * result ;\n MYSQL_BIND my_bind [ 2 ] ;\n ulong length [ 2 ] ;\n char query [ MAX_TEST_QUERY_LENGTH ] ;\n myheader ( \"test_simple_delete\" ) ;\n rc = mysql_autocommit ( mysql , TRUE ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_simple_delete\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_simple_delete(col1 int, \\ col2 varchar(50), col3 int )\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_simple_delete VALUES(1, 'MySQL', 100)\" ) ;\n myquery ( rc ) ;\n verify_affected_rows ( 1 ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n strmov ( query , \"DELETE FROM test_simple_delete WHERE col1= ? AND \" \"CONVERT(col2 USING utf8)= ? AND col3= 100\" ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 2 ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n nData = 1 ;\n strmov ( szData , \"MySQL\" ) ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 1 ] . buffer = szData ;\n my_bind [ 1 ] . buffer_length = sizeof ( szData ) ;\n my_bind [ 1 ] . length = & length [ 1 ] ;\n length [ 1 ] = 5 ;\n my_bind [ 0 ] . buffer = ( void * ) & nData ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n verify_affected_rows ( 1 ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"SELECT * FROM test_simple_delete\" ) ;\n myquery ( rc ) ;\n result = mysql_store_result ( mysql ) ;\n mytest ( result ) ;\n rc = my_process_result_set ( result ) ;\n DIE_UNLESS ( rc == 0 ) ;\n mysql_free_result ( result ) ;\n }"}
{"idx": 17920, "target": 0, "func": "void nautilus_file_operations_delete ( GList * files , GtkWindow * parent_window , NautilusDeleteCallback done_callback , gpointer done_callback_data ) {\n trash_or_delete_internal ( files , parent_window , FALSE , done_callback , done_callback_data ) ;\n }"}
{"idx": 17921, "target": 0, "func": "static int isoent_alloc_path_table ( struct archive_write * a , struct vdd * vdd , int max_depth ) {\n int i ;\n vdd -> max_depth = max_depth ;\n vdd -> pathtbl = malloc ( sizeof ( * vdd -> pathtbl ) * vdd -> max_depth ) ;\n if ( vdd -> pathtbl == NULL ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate memory\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n for ( i = 0 ;\n i < vdd -> max_depth ;\n i ++ ) {\n vdd -> pathtbl [ i ] . first = NULL ;\n vdd -> pathtbl [ i ] . last = & ( vdd -> pathtbl [ i ] . first ) ;\n vdd -> pathtbl [ i ] . sorted = NULL ;\n vdd -> pathtbl [ i ] . cnt = 0 ;\n }\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 17922, "target": 0, "func": "static void pdf_show_shade ( fz_context * ctx , pdf_run_processor * pr , fz_shade * shd ) {\n pdf_gstate * gstate = pr -> gstate + pr -> gtop ;\n fz_rect bbox ;\n softmask_save softmask = {\n NULL }\n ;\n if ( pr -> super . hidden ) return ;\n fz_bound_shade ( ctx , shd , & gstate -> ctm , & bbox ) ;\n gstate = pdf_begin_group ( ctx , pr , & bbox , & softmask ) ;\n fz_fill_shade ( ctx , pr -> dev , shd , & gstate -> ctm , gstate -> fill . alpha , & gstate -> fill . color_params ) ;\n pdf_end_group ( ctx , pr , & softmask ) ;\n }"}
{"idx": 17923, "target": 0, "func": "static int dissect_h245_SEQUENCE_OF_ParameterIdentifier ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h245_SEQUENCE_OF_ParameterIdentifier , SEQUENCE_OF_ParameterIdentifier_sequence_of ) ;\n return offset ;\n }"}
{"idx": 17924, "target": 0, "func": "const char * SSL_rstate_string_long ( const SSL * s ) {\n switch ( s -> rlayer . rstate ) {\n case SSL_ST_READ_HEADER : return \"read header\" ;\n case SSL_ST_READ_BODY : return \"read body\" ;\n case SSL_ST_READ_DONE : return \"read done\" ;\n default : return \"unknown\" ;\n }\n }"}
{"idx": 17925, "target": 0, "func": "static ossl_inline type * lh_ ## type ## _insert ( LHASH_OF ( type ) * lh , type * d ) {\n return ( type * ) OPENSSL_LH_insert ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline type * lh_ ## type ## _delete ( LHASH_OF ( type ) * lh , const type * d ) {\n return ( type * ) OPENSSL_LH_delete ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline type * lh_ ## type ## _retrieve ( LHASH_OF ( type ) * lh , const type * d ) {\n return ( type * ) OPENSSL_LH_retrieve ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline int lh_ ## type ## _error ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_error ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _num_items ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_num_items ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _node_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _node_usage_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_usage_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING ) ;\n # ifdef _MSC_VER # pragma warning ( push ) # pragma warning ( disable : 4090 ) # endif DEFINE_LHASH_OF ( OPENSSL_CSTRING )"}
{"idx": 17926, "target": 0, "func": "Node * get_leftop ( const Expr * clause ) {\n const OpExpr * expr = ( const OpExpr * ) clause ;\n if ( expr -> args != NIL ) return linitial ( expr -> args ) ;\n else return NULL ;\n }"}
{"idx": 17927, "target": 1, "func": "extern int name ( int , locale_t ) __THROW __exctype_l ( isalnum_l ) ;\n __exctype_l ( isalpha_l ) ;\n __exctype_l ( iscntrl_l )"}
{"idx": 17928, "target": 0, "func": "const char * get_ext_sys_var ( const char * tag ) {\n struct ctl_var * v ;\n size_t c ;\n const char * val ;\n val = NULL ;\n c = strlen ( tag ) ;\n for ( v = ext_sys_var ;\n ! ( EOV & v -> flags ) ;\n v ++ ) {\n if ( NULL != v -> text && ! memcmp ( tag , v -> text , c ) ) {\n if ( '=' == v -> text [ c ] ) {\n val = v -> text + c + 1 ;\n break ;\n }\n else if ( '\\0' == v -> text [ c ] ) {\n val = \"\" ;\n break ;\n }\n }\n }\n return val ;\n }"}
{"idx": 17929, "target": 0, "func": "Datum scalargtjoinsel ( PG_FUNCTION_ARGS ) {\n PG_RETURN_FLOAT8 ( DEFAULT_INEQ_SEL ) ;\n }"}
{"idx": 17930, "target": 0, "func": "const mbfl_encoding * mbfl_identify_encoding2 ( mbfl_string * string , const mbfl_encoding * * elist , int elistsz , int strict ) {\n int i , n , num , bad ;\n unsigned char * p ;\n mbfl_identify_filter * flist , * filter ;\n const mbfl_encoding * encoding ;\n flist = ( mbfl_identify_filter * ) mbfl_calloc ( elistsz , sizeof ( mbfl_identify_filter ) ) ;\n if ( flist == NULL ) {\n return NULL ;\n }\n num = 0 ;\n if ( elist != NULL ) {\n for ( i = 0 ;\n i < elistsz ;\n i ++ ) {\n if ( ! mbfl_identify_filter_init2 ( & flist [ num ] , elist [ i ] ) ) {\n num ++ ;\n }\n }\n }\n n = string -> len ;\n p = string -> val ;\n if ( p != NULL ) {\n bad = 0 ;\n while ( n > 0 ) {\n for ( i = 0 ;\n i < num ;\n i ++ ) {\n filter = & flist [ i ] ;\n if ( ! filter -> flag ) {\n ( * filter -> filter_function ) ( * p , filter ) ;\n if ( filter -> flag ) {\n bad ++ ;\n }\n }\n }\n if ( ( num - 1 ) <= bad && ! strict ) {\n break ;\n }\n p ++ ;\n n -- ;\n }\n }\n encoding = NULL ;\n for ( i = 0 ;\n i < num ;\n i ++ ) {\n filter = & flist [ i ] ;\n if ( ! filter -> flag ) {\n if ( strict && filter -> status ) {\n continue ;\n }\n encoding = filter -> encoding ;\n break ;\n }\n }\n if ( ! encoding ) {\n for ( i = 0 ;\n i < num ;\n i ++ ) {\n filter = & flist [ i ] ;\n if ( ! filter -> flag && ( ! strict || ! filter -> status ) ) {\n encoding = filter -> encoding ;\n break ;\n }\n }\n }\n i = num ;\n while ( -- i >= 0 ) {\n mbfl_identify_filter_cleanup ( & flist [ i ] ) ;\n }\n mbfl_free ( ( void * ) flist ) ;\n return encoding ;\n }"}
{"idx": 17931, "target": 0, "func": "static void isoent_setup_file_location ( struct iso9660 * iso9660 , int location ) {\n struct isoent * isoent ;\n struct isoent * np ;\n struct isofile * file ;\n size_t size ;\n int block ;\n int depth ;\n int joliet ;\n int symlocation ;\n int total_block ;\n iso9660 -> total_file_block = 0 ;\n if ( ( isoent = iso9660 -> el_torito . catalog ) != NULL ) {\n isoent -> file -> content . location = location ;\n block = ( int ) ( ( archive_entry_size ( isoent -> file -> entry ) + LOGICAL_BLOCK_SIZE - 1 ) >> LOGICAL_BLOCK_BITS ) ;\n location += block ;\n iso9660 -> total_file_block += block ;\n }\n if ( ( isoent = iso9660 -> el_torito . boot ) != NULL ) {\n isoent -> file -> content . location = location ;\n size = fd_boot_image_size ( iso9660 -> el_torito . media_type ) ;\n if ( size == 0 ) size = ( size_t ) archive_entry_size ( isoent -> file -> entry ) ;\n block = ( ( int ) size + LOGICAL_BLOCK_SIZE - 1 ) >> LOGICAL_BLOCK_BITS ;\n location += block ;\n iso9660 -> total_file_block += block ;\n isoent -> file -> content . blocks = block ;\n }\n depth = 0 ;\n symlocation = - 16 ;\n if ( ! iso9660 -> opt . rr && iso9660 -> opt . joliet ) {\n joliet = 1 ;\n np = iso9660 -> joliet . rootent ;\n }\n else {\n joliet = 0 ;\n np = iso9660 -> primary . rootent ;\n }\n do {\n _isoent_file_location ( iso9660 , np , & symlocation ) ;\n if ( np -> subdirs . first != NULL && ( joliet || ( ( iso9660 -> opt . rr == OPT_RR_DISABLED && depth + 2 < iso9660 -> primary . max_depth ) || ( iso9660 -> opt . rr && depth + 1 < iso9660 -> primary . max_depth ) ) ) ) {\n np = np -> subdirs . first ;\n depth ++ ;\n continue ;\n }\n while ( np != np -> parent ) {\n if ( np -> drnext == NULL ) {\n np = np -> parent ;\n depth -- ;\n }\n else {\n np = np -> drnext ;\n break ;\n }\n }\n }\n while ( np != np -> parent ) ;\n total_block = 0 ;\n for ( file = iso9660 -> data_file_list . first ;\n file != NULL ;\n file = file -> datanext ) {\n if ( ! file -> write_content ) continue ;\n file -> cur_content = & ( file -> content ) ;\n do {\n file -> cur_content -> location = location ;\n location += file -> cur_content -> blocks ;\n total_block += file -> cur_content -> blocks ;\n file -> cur_content = file -> cur_content -> next ;\n }\n while ( file -> cur_content != NULL ) ;\n }\n iso9660 -> total_file_block += total_block ;\n }"}
{"idx": 17932, "target": 0, "func": "void macio_ide_init_drives ( MACIOIDEState * s , DriveInfo * * hd_table ) {\n int i ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n if ( hd_table [ i ] ) {\n ide_create_drive ( & s -> bus , i , hd_table [ i ] ) ;\n }\n }\n }"}
{"idx": 17933, "target": 0, "func": "static int qio_channel_websock_close ( QIOChannel * ioc , Error * * errp ) {\n QIOChannelWebsock * wioc = QIO_CHANNEL_WEBSOCK ( ioc ) ;\n trace_qio_channel_websock_close ( ioc ) ;\n return qio_channel_close ( wioc -> master , errp ) ;\n }"}
{"idx": 17934, "target": 0, "func": "TSReturnCode TSMgmtCounterGet ( const char * var_name , TSMgmtCounter * result ) {\n return RecGetRecordCounter ( ( char * ) var_name , ( RecCounter * ) result ) == REC_ERR_OKAY ? TS_SUCCESS : TS_ERROR ;\n }"}
{"idx": 17935, "target": 0, "func": "static inline struct sk_buff * pfkey_xfrm_state2msg ( const struct xfrm_state * x ) {\n struct sk_buff * skb ;\n skb = __pfkey_xfrm_state2msg ( x , 1 , 3 ) ;\n return skb ;\n }"}
{"idx": 17936, "target": 0, "func": "static TRBCCode xhci_address_slot ( XHCIState * xhci , unsigned int slotid , uint64_t pictx , bool bsr ) {\n XHCISlot * slot ;\n USBPort * uport ;\n USBDevice * dev ;\n dma_addr_t ictx , octx , dcbaap ;\n uint64_t poctx ;\n uint32_t ictl_ctx [ 2 ] ;\n uint32_t slot_ctx [ 4 ] ;\n uint32_t ep0_ctx [ 5 ] ;\n int i ;\n TRBCCode res ;\n assert ( slotid >= 1 && slotid <= xhci -> numslots ) ;\n dcbaap = xhci_addr64 ( xhci -> dcbaap_low , xhci -> dcbaap_high ) ;\n poctx = ldq_le_pci_dma ( PCI_DEVICE ( xhci ) , dcbaap + 8 * slotid ) ;\n ictx = xhci_mask64 ( pictx ) ;\n octx = xhci_mask64 ( poctx ) ;\n DPRINTF ( \"xhci: input context at \" DMA_ADDR_FMT \"\\n\" , ictx ) ;\n DPRINTF ( \"xhci: output context at \" DMA_ADDR_FMT \"\\n\" , octx ) ;\n xhci_dma_read_u32s ( xhci , ictx , ictl_ctx , sizeof ( ictl_ctx ) ) ;\n if ( ictl_ctx [ 0 ] != 0x0 || ictl_ctx [ 1 ] != 0x3 ) {\n DPRINTF ( \"xhci: invalid input context control %08x %08x\\n\" , ictl_ctx [ 0 ] , ictl_ctx [ 1 ] ) ;\n return CC_TRB_ERROR ;\n }\n xhci_dma_read_u32s ( xhci , ictx + 32 , slot_ctx , sizeof ( slot_ctx ) ) ;\n xhci_dma_read_u32s ( xhci , ictx + 64 , ep0_ctx , sizeof ( ep0_ctx ) ) ;\n DPRINTF ( \"xhci: input slot context: %08x %08x %08x %08x\\n\" , slot_ctx [ 0 ] , slot_ctx [ 1 ] , slot_ctx [ 2 ] , slot_ctx [ 3 ] ) ;\n DPRINTF ( \"xhci: input ep0 context: %08x %08x %08x %08x %08x\\n\" , ep0_ctx [ 0 ] , ep0_ctx [ 1 ] , ep0_ctx [ 2 ] , ep0_ctx [ 3 ] , ep0_ctx [ 4 ] ) ;\n uport = xhci_lookup_uport ( xhci , slot_ctx ) ;\n if ( uport == NULL ) {\n DPRINTF ( \"xhci: port not found\\n\" ) ;\n return CC_TRB_ERROR ;\n }\n trace_usb_xhci_slot_address ( slotid , uport -> path ) ;\n dev = uport -> dev ;\n if ( ! dev || ! dev -> attached ) {\n DPRINTF ( \"xhci: port %s not connected\\n\" , uport -> path ) ;\n return CC_USB_TRANSACTION_ERROR ;\n }\n for ( i = 0 ;\n i < xhci -> numslots ;\n i ++ ) {\n if ( i == slotid - 1 ) {\n continue ;\n }\n if ( xhci -> slots [ i ] . uport == uport ) {\n DPRINTF ( \"xhci: port %s already assigned to slot %d\\n\" , uport -> path , i + 1 ) ;\n return CC_TRB_ERROR ;\n }\n }\n slot = & xhci -> slots [ slotid - 1 ] ;\n slot -> uport = uport ;\n slot -> ctx = octx ;\n usb_device_reset ( dev ) ;\n if ( bsr ) {\n slot_ctx [ 3 ] = SLOT_DEFAULT << SLOT_STATE_SHIFT ;\n }\n else {\n USBPacket p ;\n uint8_t buf [ 1 ] ;\n slot_ctx [ 3 ] = ( SLOT_ADDRESSED << SLOT_STATE_SHIFT ) | slotid ;\n memset ( & p , 0 , sizeof ( p ) ) ;\n usb_packet_addbuf ( & p , buf , sizeof ( buf ) ) ;\n usb_packet_setup ( & p , USB_TOKEN_OUT , usb_ep_get ( dev , USB_TOKEN_OUT , 0 ) , 0 , 0 , false , false ) ;\n usb_device_handle_control ( dev , & p , DeviceOutRequest | USB_REQ_SET_ADDRESS , slotid , 0 , 0 , NULL ) ;\n assert ( p . status != USB_RET_ASYNC ) ;\n }\n res = xhci_enable_ep ( xhci , slotid , 1 , octx + 32 , ep0_ctx ) ;\n DPRINTF ( \"xhci: output slot context: %08x %08x %08x %08x\\n\" , slot_ctx [ 0 ] , slot_ctx [ 1 ] , slot_ctx [ 2 ] , slot_ctx [ 3 ] ) ;\n DPRINTF ( \"xhci: output ep0 context: %08x %08x %08x %08x %08x\\n\" , ep0_ctx [ 0 ] , ep0_ctx [ 1 ] , ep0_ctx [ 2 ] , ep0_ctx [ 3 ] , ep0_ctx [ 4 ] ) ;\n xhci_dma_write_u32s ( xhci , octx , slot_ctx , sizeof ( slot_ctx ) ) ;\n xhci_dma_write_u32s ( xhci , octx + 32 , ep0_ctx , sizeof ( ep0_ctx ) ) ;\n xhci -> slots [ slotid - 1 ] . addressed = 1 ;\n return res ;\n }"}
{"idx": 17937, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( MessageCenterNotificationsTest , ButtonClickedDelegate ) {\n # if defined ( OS_WIN ) && defined ( USE_ASH ) if ( base : : CommandLine : : ForCurrentProcess ( ) -> HasSwitch ( switches : : kAshBrowserTests ) ) return ;\n # endif TestDelegate * delegate ;\n manager ( ) -> Add ( CreateTestNotification ( \"n\" , & delegate ) , profile ( ) ) ;\n const std : : string notification_id = manager ( ) -> GetMessageCenterNotificationIdForTest ( \"n\" , profile ( ) ) ;\n message_center ( ) -> ClickOnNotificationButton ( notification_id , 1 ) ;\n EXPECT_EQ ( \"Display_ButtonClick_1_\" , delegate -> log ( ) ) ;\n delegate -> Release ( ) ;\n }"}
{"idx": 17938, "target": 0, "func": "static int kvm_put_one_msr ( X86CPU * cpu , int index , uint64_t value ) {\n kvm_msr_buf_reset ( cpu ) ;\n kvm_msr_entry_add ( cpu , index , value ) ;\n return kvm_vcpu_ioctl ( CPU ( cpu ) , KVM_SET_MSRS , cpu -> kvm_msr_buf ) ;\n }"}
{"idx": 17939, "target": 0, "func": "Oid get_equality_op_for_ordering_op ( Oid opno , bool * reverse ) {\n Oid result = InvalidOid ;\n Oid opfamily ;\n Oid opcintype ;\n int16 strategy ;\n if ( get_ordering_op_properties ( opno , & opfamily , & opcintype , & strategy ) ) {\n result = get_opfamily_member ( opfamily , opcintype , opcintype , BTEqualStrategyNumber ) ;\n if ( reverse ) * reverse = ( strategy == BTGreaterStrategyNumber ) ;\n }\n return result ;\n }"}
{"idx": 17940, "target": 0, "func": "void dissect_zcl_met_idt_attr_data ( proto_tree * tree , tvbuff_t * tvb , guint * offset , guint16 attr_id , guint data_type ) {\n switch ( attr_id ) {\n case ZBEE_ZCL_ATTR_ID_MET_IDT_METER_TYPE_ID : proto_tree_add_item ( tree , hf_zbee_zcl_met_idt_meter_type_id , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_MET_IDT_DATA_QUALITY_ID : proto_tree_add_item ( tree , hf_zbee_zcl_met_idt_data_quality_id , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n break ;\n default : dissect_zcl_attr_data ( tvb , tree , offset , data_type ) ;\n break ;\n }\n }"}
{"idx": 17941, "target": 0, "func": "address_node * create_address_node ( char * addr , int type ) {\n address_node * my_node ;\n NTP_REQUIRE ( NULL != addr ) ;\n NTP_REQUIRE ( AF_INET == type || AF_INET6 == type || AF_UNSPEC == type ) ;\n my_node = emalloc_zero ( sizeof ( * my_node ) ) ;\n my_node -> address = addr ;\n my_node -> type = ( u_short ) type ;\n return my_node ;\n }"}
{"idx": 17942, "target": 0, "func": "static bool host_supports_vmx ( void ) {\n uint32_t ecx , unused ;\n host_cpuid ( 1 , 0 , & unused , & unused , & ecx , & unused ) ;\n return ecx & CPUID_EXT_VMX ;\n }"}
{"idx": 17943, "target": 0, "func": "static int sendrequest ( int opcode , associd_t associd , int auth , int qsize , const char * qdata ) {\n struct ntp_control qpkt ;\n int pktsize ;\n u_long key_id ;\n char * pass ;\n int maclen ;\n if ( qsize > CTL_MAX_DATA_LEN ) {\n fprintf ( stderr , \"***Internal error! qsize (%d) too large\\n\" , qsize ) ;\n return 1 ;\n }\n qpkt . li_vn_mode = PKT_LI_VN_MODE ( 0 , pktversion , MODE_CONTROL ) ;\n qpkt . r_m_e_op = ( u_char ) ( opcode & CTL_OP_MASK ) ;\n qpkt . sequence = htons ( sequence ) ;\n qpkt . status = 0 ;\n qpkt . associd = htons ( ( u_short ) associd ) ;\n qpkt . offset = 0 ;\n qpkt . count = htons ( ( u_short ) qsize ) ;\n pktsize = CTL_HEADER_LEN ;\n if ( qsize > 0 ) {\n memcpy ( & qpkt . u , qdata , ( size_t ) qsize ) ;\n pktsize += qsize ;\n while ( pktsize & ( sizeof ( u_int32 ) - 1 ) ) {\n qpkt . u . data [ qsize ++ ] = 0 ;\n pktsize ++ ;\n }\n }\n if ( ! auth && ! always_auth ) {\n return sendpkt ( & qpkt , pktsize ) ;\n }\n while ( pktsize & 7 ) {\n qpkt . u . data [ qsize ++ ] = 0 ;\n pktsize ++ ;\n }\n if ( info_auth_keyid == 0 ) {\n key_id = getkeyid ( \"Keyid: \" ) ;\n if ( key_id == 0 || key_id > NTP_MAXKEY ) {\n fprintf ( stderr , \"Invalid key identifier\\n\" ) ;\n return 1 ;\n }\n info_auth_keyid = key_id ;\n }\n if ( ! authistrusted ( info_auth_keyid ) ) {\n pass = getpass_keytype ( info_auth_keytype ) ;\n if ( '\\0' == pass [ 0 ] ) {\n fprintf ( stderr , \"Invalid password\\n\" ) ;\n return 1 ;\n }\n authusekey ( info_auth_keyid , info_auth_keytype , ( u_char * ) pass ) ;\n authtrust ( info_auth_keyid , 1 ) ;\n }\n maclen = authencrypt ( info_auth_keyid , ( void * ) & qpkt , pktsize ) ;\n if ( ! maclen ) {\n fprintf ( stderr , \"Key not found\\n\" ) ;\n return 1 ;\n }\n else if ( ( size_t ) maclen != ( info_auth_hashlen + sizeof ( keyid_t ) ) ) {\n fprintf ( stderr , \"%d octet MAC, %zu expected with %zu octet digest\\n\" , maclen , ( info_auth_hashlen + sizeof ( keyid_t ) ) , info_auth_hashlen ) ;\n return 1 ;\n }\n return sendpkt ( ( char * ) & qpkt , pktsize + maclen ) ;\n }"}
{"idx": 17944, "target": 0, "func": "void vmxnet_tx_pkt_update_ip_checksums ( struct VmxnetTxPkt * pkt ) {\n uint16_t csum ;\n uint32_t ph_raw_csum ;\n assert ( pkt ) ;\n uint8_t gso_type = pkt -> virt_hdr . gso_type & ~ VIRTIO_NET_HDR_GSO_ECN ;\n struct ip_header * ip_hdr ;\n if ( VIRTIO_NET_HDR_GSO_TCPV4 != gso_type && VIRTIO_NET_HDR_GSO_UDP != gso_type ) {\n return ;\n }\n ip_hdr = pkt -> vec [ VMXNET_TX_PKT_L3HDR_FRAG ] . iov_base ;\n if ( pkt -> payload_len + pkt -> vec [ VMXNET_TX_PKT_L3HDR_FRAG ] . iov_len > ETH_MAX_IP_DGRAM_LEN ) {\n return ;\n }\n ip_hdr -> ip_len = cpu_to_be16 ( pkt -> payload_len + pkt -> vec [ VMXNET_TX_PKT_L3HDR_FRAG ] . iov_len ) ;\n ip_hdr -> ip_sum = 0 ;\n csum = net_raw_checksum ( ( uint8_t * ) ip_hdr , pkt -> vec [ VMXNET_TX_PKT_L3HDR_FRAG ] . iov_len ) ;\n ip_hdr -> ip_sum = cpu_to_be16 ( csum ) ;\n ph_raw_csum = eth_calc_pseudo_hdr_csum ( ip_hdr , pkt -> payload_len ) ;\n csum = cpu_to_be16 ( ~ net_checksum_finish ( ph_raw_csum ) ) ;\n iov_from_buf ( & pkt -> vec [ VMXNET_TX_PKT_PL_START_FRAG ] , pkt -> payload_frags , pkt -> virt_hdr . csum_offset , & csum , sizeof ( csum ) ) ;\n }"}
{"idx": 17945, "target": 0, "func": "static void reset_codec ( WmallDecodeCtx * s ) {\n int ich , ilms ;\n s -> mclms_recent = s -> mclms_order * s -> num_channels ;\n for ( ich = 0 ;\n ich < s -> num_channels ;\n ich ++ ) {\n for ( ilms = 0 ;\n ilms < s -> cdlms_ttl [ ich ] ;\n ilms ++ ) s -> cdlms [ ich ] [ ilms ] . recent = s -> cdlms [ ich ] [ ilms ] . order ;\n s -> channel [ ich ] . transient_counter = s -> samples_per_frame ;\n s -> transient [ ich ] = 1 ;\n s -> transient_pos [ ich ] = 0 ;\n }\n }"}
{"idx": 17946, "target": 0, "func": "static int checkcmap ( int n , uint16 * r , uint16 * g , uint16 * b ) {\n while ( n -- > 0 ) if ( * r ++ >= 256 || * g ++ >= 256 || * b ++ >= 256 ) return ( 16 ) ;\n fprintf ( stderr , \"Warning, assuming 8-bit colormap.\\n\" ) ;\n return ( 8 ) ;\n }"}
{"idx": 17947, "target": 0, "func": "static void cancel_mount_for_file ( NautilusDirectory * directory , NautilusFile * file ) {\n if ( directory -> details -> mount_state != NULL && directory -> details -> mount_state -> file == file ) {\n mount_cancel ( directory ) ;\n }\n }"}
{"idx": 17948, "target": 0, "func": "static unsigned make_codepage_from_charset ( const char * charset ) {\n ( void ) charset ;\n return ( - 1 ) ;\n }"}
{"idx": 17949, "target": 0, "func": "static int show_stream ( WriterContext * w , AVFormatContext * fmt_ctx , int stream_idx , InputStream * ist , int in_program ) {\n AVStream * stream = ist -> st ;\n AVCodecParameters * par ;\n AVCodecContext * dec_ctx ;\n char val_str [ 128 ] ;\n const char * s ;\n AVRational sar , dar ;\n AVBPrint pbuf ;\n const AVCodecDescriptor * cd ;\n int ret = 0 ;\n const char * profile = NULL ;\n av_bprint_init ( & pbuf , 1 , AV_BPRINT_SIZE_UNLIMITED ) ;\n writer_print_section_header ( w , in_program ? SECTION_ID_PROGRAM_STREAM : SECTION_ID_STREAM ) ;\n print_int ( \"index\" , stream -> index ) ;\n par = stream -> codecpar ;\n dec_ctx = ist -> dec_ctx ;\n if ( cd = avcodec_descriptor_get ( par -> codec_id ) ) {\n print_str ( \"codec_name\" , cd -> name ) ;\n if ( ! do_bitexact ) {\n print_str ( \"codec_long_name\" , cd -> long_name ? cd -> long_name : \"unknown\" ) ;\n }\n }\n else {\n print_str_opt ( \"codec_name\" , \"unknown\" ) ;\n if ( ! do_bitexact ) {\n print_str_opt ( \"codec_long_name\" , \"unknown\" ) ;\n }\n }\n if ( ! do_bitexact && ( profile = avcodec_profile_name ( par -> codec_id , par -> profile ) ) ) print_str ( \"profile\" , profile ) ;\n else {\n if ( par -> profile != FF_PROFILE_UNKNOWN ) {\n char profile_num [ 12 ] ;\n snprintf ( profile_num , sizeof ( profile_num ) , \"%d\" , par -> profile ) ;\n print_str ( \"profile\" , profile_num ) ;\n }\n else print_str_opt ( \"profile\" , \"unknown\" ) ;\n }\n s = av_get_media_type_string ( par -> codec_type ) ;\n if ( s ) print_str ( \"codec_type\" , s ) ;\n else print_str_opt ( \"codec_type\" , \"unknown\" ) ;\n # if FF_API_LAVF_AVCTX if ( dec_ctx ) print_q ( \"codec_time_base\" , dec_ctx -> time_base , '/' ) ;\n # endif print_str ( \"codec_tag_string\" , av_fourcc2str ( par -> codec_tag ) ) ;\n print_fmt ( \"codec_tag\" , \"0x%04\" PRIx32 , par -> codec_tag ) ;\n switch ( par -> codec_type ) {\n case AVMEDIA_TYPE_VIDEO : print_int ( \"width\" , par -> width ) ;\n print_int ( \"height\" , par -> height ) ;\n if ( dec_ctx ) {\n print_int ( \"coded_width\" , dec_ctx -> coded_width ) ;\n print_int ( \"coded_height\" , dec_ctx -> coded_height ) ;\n }\n print_int ( \"has_b_frames\" , par -> video_delay ) ;\n sar = av_guess_sample_aspect_ratio ( fmt_ctx , stream , NULL ) ;\n if ( sar . den ) {\n print_q ( \"sample_aspect_ratio\" , sar , ':' ) ;\n av_reduce ( & dar . num , & dar . den , par -> width * sar . num , par -> height * sar . den , 1024 * 1024 ) ;\n print_q ( \"display_aspect_ratio\" , dar , ':' ) ;\n }\n else {\n print_str_opt ( \"sample_aspect_ratio\" , \"N/A\" ) ;\n print_str_opt ( \"display_aspect_ratio\" , \"N/A\" ) ;\n }\n s = av_get_pix_fmt_name ( par -> format ) ;\n if ( s ) print_str ( \"pix_fmt\" , s ) ;\n else print_str_opt ( \"pix_fmt\" , \"unknown\" ) ;\n print_int ( \"level\" , par -> level ) ;\n if ( par -> color_range != AVCOL_RANGE_UNSPECIFIED ) print_str ( \"color_range\" , av_color_range_name ( par -> color_range ) ) ;\n else print_str_opt ( \"color_range\" , \"N/A\" ) ;\n if ( par -> color_space != AVCOL_SPC_UNSPECIFIED ) print_str ( \"color_space\" , av_color_space_name ( par -> color_space ) ) ;\n else print_str_opt ( \"color_space\" , av_color_space_name ( par -> color_space ) ) ;\n if ( par -> color_trc != AVCOL_TRC_UNSPECIFIED ) print_str ( \"color_transfer\" , av_color_transfer_name ( par -> color_trc ) ) ;\n else print_str_opt ( \"color_transfer\" , av_color_transfer_name ( par -> color_trc ) ) ;\n print_primaries ( w , par -> color_primaries ) ;\n if ( par -> chroma_location != AVCHROMA_LOC_UNSPECIFIED ) print_str ( \"chroma_location\" , av_chroma_location_name ( par -> chroma_location ) ) ;\n else print_str_opt ( \"chroma_location\" , av_chroma_location_name ( par -> chroma_location ) ) ;\n if ( par -> field_order == AV_FIELD_PROGRESSIVE ) print_str ( \"field_order\" , \"progressive\" ) ;\n else if ( par -> field_order == AV_FIELD_TT ) print_str ( \"field_order\" , \"tt\" ) ;\n else if ( par -> field_order == AV_FIELD_BB ) print_str ( \"field_order\" , \"bb\" ) ;\n else if ( par -> field_order == AV_FIELD_TB ) print_str ( \"field_order\" , \"tb\" ) ;\n else if ( par -> field_order == AV_FIELD_BT ) print_str ( \"field_order\" , \"bt\" ) ;\n else print_str_opt ( \"field_order\" , \"unknown\" ) ;\n # if FF_API_PRIVATE_OPT if ( dec_ctx && dec_ctx -> timecode_frame_start >= 0 ) {\n char tcbuf [ AV_TIMECODE_STR_SIZE ] ;\n av_timecode_make_mpeg_tc_string ( tcbuf , dec_ctx -> timecode_frame_start ) ;\n print_str ( \"timecode\" , tcbuf ) ;\n }\n else {\n print_str_opt ( \"timecode\" , \"N/A\" ) ;\n }\n # endif if ( dec_ctx ) print_int ( \"refs\" , dec_ctx -> refs ) ;\n break ;\n case AVMEDIA_TYPE_AUDIO : s = av_get_sample_fmt_name ( par -> format ) ;\n if ( s ) print_str ( \"sample_fmt\" , s ) ;\n else print_str_opt ( \"sample_fmt\" , \"unknown\" ) ;\n print_val ( \"sample_rate\" , par -> sample_rate , unit_hertz_str ) ;\n print_int ( \"channels\" , par -> channels ) ;\n if ( par -> channel_layout ) {\n av_bprint_clear ( & pbuf ) ;\n av_bprint_channel_layout ( & pbuf , par -> channels , par -> channel_layout ) ;\n print_str ( \"channel_layout\" , pbuf . str ) ;\n }\n else {\n print_str_opt ( \"channel_layout\" , \"unknown\" ) ;\n }\n print_int ( \"bits_per_sample\" , av_get_bits_per_sample ( par -> codec_id ) ) ;\n break ;\n case AVMEDIA_TYPE_SUBTITLE : if ( par -> width ) print_int ( \"width\" , par -> width ) ;\n else print_str_opt ( \"width\" , \"N/A\" ) ;\n if ( par -> height ) print_int ( \"height\" , par -> height ) ;\n else print_str_opt ( \"height\" , \"N/A\" ) ;\n break ;\n }\n if ( dec_ctx && dec_ctx -> codec && dec_ctx -> codec -> priv_class && show_private_data ) {\n const AVOption * opt = NULL ;\n while ( opt = av_opt_next ( dec_ctx -> priv_data , opt ) ) {\n uint8_t * str ;\n if ( opt -> flags ) continue ;\n if ( av_opt_get ( dec_ctx -> priv_data , opt -> name , 0 , & str ) >= 0 ) {\n print_str ( opt -> name , str ) ;\n av_free ( str ) ;\n }\n }\n }\n if ( fmt_ctx -> iformat -> flags & AVFMT_SHOW_IDS ) print_fmt ( \"id\" , \"0x%x\" , stream -> id ) ;\n else print_str_opt ( \"id\" , \"N/A\" ) ;\n print_q ( \"r_frame_rate\" , stream -> r_frame_rate , '/' ) ;\n print_q ( \"avg_frame_rate\" , stream -> avg_frame_rate , '/' ) ;\n print_q ( \"time_base\" , stream -> time_base , '/' ) ;\n print_ts ( \"start_pts\" , stream -> start_time ) ;\n print_time ( \"start_time\" , stream -> start_time , & stream -> time_base ) ;\n print_ts ( \"duration_ts\" , stream -> duration ) ;\n print_time ( \"duration\" , stream -> duration , & stream -> time_base ) ;\n if ( par -> bit_rate > 0 ) print_val ( \"bit_rate\" , par -> bit_rate , unit_bit_per_second_str ) ;\n else print_str_opt ( \"bit_rate\" , \"N/A\" ) ;\n # if FF_API_LAVF_AVCTX if ( stream -> codec -> rc_max_rate > 0 ) print_val ( \"max_bit_rate\" , stream -> codec -> rc_max_rate , unit_bit_per_second_str ) ;\n else print_str_opt ( \"max_bit_rate\" , \"N/A\" ) ;\n # endif if ( dec_ctx && dec_ctx -> bits_per_raw_sample > 0 ) print_fmt ( \"bits_per_raw_sample\" , \"%d\" , dec_ctx -> bits_per_raw_sample ) ;\n else print_str_opt ( \"bits_per_raw_sample\" , \"N/A\" ) ;\n if ( stream -> nb_frames ) print_fmt ( \"nb_frames\" , \"%\" PRId64 , stream -> nb_frames ) ;\n else print_str_opt ( \"nb_frames\" , \"N/A\" ) ;\n if ( nb_streams_frames [ stream_idx ] ) print_fmt ( \"nb_read_frames\" , \"%\" PRIu64 , nb_streams_frames [ stream_idx ] ) ;\n else print_str_opt ( \"nb_read_frames\" , \"N/A\" ) ;\n if ( nb_streams_packets [ stream_idx ] ) print_fmt ( \"nb_read_packets\" , \"%\" PRIu64 , nb_streams_packets [ stream_idx ] ) ;\n else print_str_opt ( \"nb_read_packets\" , \"N/A\" ) ;\n if ( do_show_data ) writer_print_data ( w , \"extradata\" , par -> extradata , par -> extradata_size ) ;\n writer_print_data_hash ( w , \"extradata_hash\" , par -> extradata , par -> extradata_size ) ;\n # define PRINT_DISPOSITION ( flagname , name ) do {\n print_int ( name , ! ! ( stream -> disposition & AV_DISPOSITION_ ## flagname ) ) ;\n }\n while ( 0 ) if ( do_show_stream_disposition ) {\n writer_print_section_header ( w , in_program ? SECTION_ID_PROGRAM_STREAM_DISPOSITION : SECTION_ID_STREAM_DISPOSITION ) ;\n PRINT_DISPOSITION ( DEFAULT , \"default\" ) ;\n PRINT_DISPOSITION ( DUB , \"dub\" ) ;\n PRINT_DISPOSITION ( ORIGINAL , \"original\" ) ;\n PRINT_DISPOSITION ( COMMENT , \"comment\" ) ;\n PRINT_DISPOSITION ( LYRICS , \"lyrics\" ) ;\n PRINT_DISPOSITION ( KARAOKE , \"karaoke\" ) ;\n PRINT_DISPOSITION ( FORCED , \"forced\" ) ;\n PRINT_DISPOSITION ( HEARING_IMPAIRED , \"hearing_impaired\" ) ;\n PRINT_DISPOSITION ( VISUAL_IMPAIRED , \"visual_impaired\" ) ;\n PRINT_DISPOSITION ( CLEAN_EFFECTS , \"clean_effects\" ) ;\n PRINT_DISPOSITION ( ATTACHED_PIC , \"attached_pic\" ) ;\n PRINT_DISPOSITION ( TIMED_THUMBNAILS , \"timed_thumbnails\" ) ;\n writer_print_section_footer ( w ) ;\n }\n if ( do_show_stream_tags ) ret = show_tags ( w , stream -> metadata , in_program ? SECTION_ID_PROGRAM_STREAM_TAGS : SECTION_ID_STREAM_TAGS ) ;\n if ( stream -> nb_side_data ) {\n print_pkt_side_data ( w , stream -> codecpar , stream -> side_data , stream -> nb_side_data , SECTION_ID_STREAM_SIDE_DATA_LIST , SECTION_ID_STREAM_SIDE_DATA ) ;\n }\n writer_print_section_footer ( w ) ;\n av_bprint_finalize ( & pbuf , NULL ) ;\n fflush ( stdout ) ;\n return ret ;\n }"}
{"idx": 17950, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( HttpsEngagementPageLoadMetricsBrowserTest , MultipleUploads ) {\n StartHttpsServer ( false ) ;\n NavigateInForegroundAndCloseWithTiming ( https_test_server_ -> GetURL ( \"/\" ) ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementSessionPercentage , 0 ) ;\n FakeUserMetricsUpload ( ) ;\n FakeUserMetricsUpload ( ) ;\n FakeUserMetricsUpload ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementSessionPercentage , 1 ) ;\n }"}
{"idx": 17951, "target": 0, "func": "X509_ATTRIBUTE * X509_REQ_delete_attr ( X509_REQ * req , int loc ) {\n return X509at_delete_attr ( req -> req_info -> attributes , loc ) ;\n }"}
{"idx": 17952, "target": 0, "func": "void tee_fprintf ( FILE * file , const char * fmt , ... ) {\n va_list args ;\n va_start ( args , fmt ) ;\n ( void ) vfprintf ( file , fmt , args ) ;\n va_end ( args ) ;\n if ( opt_outfile ) {\n va_start ( args , fmt ) ;\n ( void ) vfprintf ( OUTFILE , fmt , args ) ;\n va_end ( args ) ;\n }\n }"}
{"idx": 17953, "target": 0, "func": "proto_item * proto_tree_add_bytes_with_length ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint tvbuff_length , const guint8 * start_ptr , gint ptr_length ) {\n proto_item * pi ;\n header_field_info * hfinfo ;\n gint item_length ;\n PROTO_REGISTRAR_GET_NTH ( hfindex , hfinfo ) ;\n get_hfi_length ( hfinfo , tvb , start , & tvbuff_length , & item_length ) ;\n test_length ( hfinfo , tvb , start , item_length ) ;\n CHECK_FOR_NULL_TREE ( tree ) ;\n TRY_TO_FAKE_THIS_ITEM ( tree , hfindex , hfinfo ) ;\n DISSECTOR_ASSERT_FIELD_TYPE ( hfinfo , FT_BYTES ) ;\n pi = proto_tree_add_pi ( tree , hfinfo , tvb , start , & tvbuff_length ) ;\n proto_tree_set_bytes ( PNODE_FINFO ( pi ) , start_ptr , ptr_length ) ;\n return pi ;\n }"}
{"idx": 17954, "target": 0, "func": "TEST_F ( TemplateURLTest , URLRefTestEncoding2 ) {\n TemplateURLData data ;\n data . SetURL ( \"http://foo{\nsearchTerms}\nx{\ninputEncoding}\ny{\noutputEncoding}\na\" ) ;\n TemplateURL url ( data ) ;\n EXPECT_TRUE ( url . url_ref ( ) . IsValid ( search_terms_data_ ) ) ;\n ASSERT_TRUE ( url . url_ref ( ) . SupportsReplacement ( search_terms_data_ ) ) ;\n GURL result ( url . url_ref ( ) . ReplaceSearchTerms ( TemplateURLRef : : SearchTermsArgs ( ASCIIToUTF16 ( \"X\" ) ) , search_terms_data_ ) ) ;\n ASSERT_TRUE ( result . is_valid ( ) ) ;\n EXPECT_EQ ( \"http://fooxxutf-8yutf-8a/\" , result . spec ( ) ) ;\n }"}
{"idx": 17955, "target": 0, "func": "static int dissect_rsl_ie_message_id ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_tree * ie_tree ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_MESSAGE_ID ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_ie_message_id , NULL , \"Message Identifier IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( tree , hf_rsl_msg_type , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n return offset ;\n }"}
{"idx": 17956, "target": 0, "func": "int * __xmlSaveNoEmptyTags ( void ) {\n if ( IS_MAIN_THREAD ) return ( & xmlSaveNoEmptyTags ) ;\n else return ( & xmlGetGlobalState ( ) -> xmlSaveNoEmptyTags ) ;\n }"}
{"idx": 17957, "target": 0, "func": "static void proto_tree_set_ax25 ( field_info * fi , const guint8 * value ) {\n fvalue_set_bytes ( & fi -> value , value ) ;\n }"}
{"idx": 17958, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( UnloadTest , BrowserCloseBeforeUnloadOK ) {\n NavigateToDataURL ( BEFORE_UNLOAD_HTML , \"beforeunload\" ) ;\n content : : WindowedNotificationObserver window_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , content : : NotificationService : : AllSources ( ) ) ;\n chrome : : CloseWindow ( browser ( ) ) ;\n ClickModalDialogButton ( true ) ;\n window_observer . Wait ( ) ;\n }"}
{"idx": 17959, "target": 0, "func": "static void DecoderDecodeAudio ( decoder_t * p_dec , block_t * p_block ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n block_t * p_aout_buf ;\n int i_decoded = 0 ;\n int i_lost = 0 ;\n int i_played = 0 ;\n if ( ! p_block ) {\n DecoderPlayAudio ( p_dec , NULL , & i_played , & i_lost ) ;\n }\n else while ( ( p_aout_buf = p_dec -> pf_decode_audio ( p_dec , & p_block ) ) ) {\n if ( DecoderIsExitRequested ( p_dec ) ) {\n block_Release ( p_aout_buf ) ;\n if ( p_block ) block_Release ( p_block ) ;\n break ;\n }\n i_decoded ++ ;\n if ( p_owner -> i_preroll_end > VLC_TS_INVALID && p_aout_buf -> i_pts < p_owner -> i_preroll_end ) {\n block_Release ( p_aout_buf ) ;\n continue ;\n }\n if ( p_owner -> i_preroll_end > VLC_TS_INVALID ) {\n msg_Dbg ( p_dec , \"End of audio preroll\" ) ;\n if ( p_owner -> p_aout ) aout_DecFlush ( p_owner -> p_aout ) ;\n p_owner -> i_preroll_end = VLC_TS_INVALID ;\n }\n DecoderPlayAudio ( p_dec , p_aout_buf , & i_played , & i_lost ) ;\n }\n input_thread_t * p_input = p_owner -> p_input ;\n if ( p_input != NULL && ( i_decoded > 0 || i_lost > 0 || i_played > 0 ) ) {\n vlc_mutex_lock ( & p_input -> p -> counters . counters_lock ) ;\n stats_Update ( p_input -> p -> counters . p_lost_abuffers , i_lost , NULL ) ;\n stats_Update ( p_input -> p -> counters . p_played_abuffers , i_played , NULL ) ;\n stats_Update ( p_input -> p -> counters . p_decoded_audio , i_decoded , NULL ) ;\n vlc_mutex_unlock ( & p_input -> p -> counters . counters_lock ) ;\n }\n }"}
{"idx": 17960, "target": 0, "func": "static int parse_CContentRestriction ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree , struct CContentRestriction * v , const char * fmt , ... ) {\n proto_tree * tree ;\n proto_item * item ;\n va_list ap ;\n guint32 cc ;\n const char * txt ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CContentRestriction , & item , txt ) ;\n offset = parse_CFullPropSpec ( tvb , offset , tree , pad_tree , & v -> property , \"Property\" ) ;\n offset = parse_padding ( tvb , offset , 4 , pad_tree , \"Padding1\" ) ;\n cc = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_ccontentrestrict_cc , tvb , offset , 4 , cc ) ;\n offset += 4 ;\n proto_tree_add_item_ret_string ( tree , hf_mswsp_ccontentrestrict_phrase , tvb , offset , 2 * cc , ENC_LITTLE_ENDIAN | ENC_UCS_2 , wmem_packet_scope ( ) , & v -> phrase ) ;\n offset += 2 * cc ;\n offset = parse_padding ( tvb , offset , 4 , pad_tree , \"Padding2\" ) ;\n v -> lcid = tvb_get_letohl ( tvb , offset ) ;\n offset = parse_lcid ( tvb , offset , tree , \"lcid\" ) ;\n v -> method = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_ccontentrestrict_method , tvb , offset , 4 , v -> method ) ;\n offset += 4 ;\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 17961, "target": 0, "func": "static char * get_link_name ( const char * name , int count , int max_length ) {\n const char * format ;\n char * result ;\n int unshortened_length ;\n gboolean use_count ;\n g_assert ( name != NULL ) ;\n if ( count < 0 ) {\n g_warning ( \"bad count in get_link_name\" ) ;\n count = 0 ;\n }\n if ( count <= 2 ) {\n switch ( count ) {\n default : {\n g_assert_not_reached ( ) ;\n }\n case 0 : {\n format = \"%s\" ;\n }\n break ;\n case 1 : {\n format = _ ( \"Link to %s\" ) ;\n }\n break ;\n case 2 : {\n format = _ ( \"Another link to %s\" ) ;\n }\n break ;\n }\n use_count = FALSE ;\n }\n else {\n switch ( count % 10 ) {\n case 1 : {\n format = _ ( \"%'dst link to %s\" ) ;\n }\n break ;\n case 2 : {\n format = _ ( \"%'dnd link to %s\" ) ;\n }\n break ;\n case 3 : {\n format = _ ( \"%'drd link to %s\" ) ;\n }\n break ;\n default : {\n format = _ ( \"%'dth link to %s\" ) ;\n }\n break ;\n }\n use_count = TRUE ;\n }\n # pragma GCC diagnostic push # pragma GCC diagnostic ignored \"-Wformat-nonliteral\" if ( use_count ) {\n result = g_strdup_printf ( format , count , name ) ;\n }\n else {\n result = g_strdup_printf ( format , name ) ;\n }\n if ( max_length > 0 && ( unshortened_length = strlen ( result ) ) > max_length ) {\n char * new_name ;\n new_name = shorten_utf8_string ( name , unshortened_length - max_length ) ;\n if ( new_name ) {\n g_free ( result ) ;\n if ( use_count ) {\n result = g_strdup_printf ( format , count , new_name ) ;\n }\n else {\n result = g_strdup_printf ( format , new_name ) ;\n }\n g_assert ( strlen ( result ) <= max_length ) ;\n g_free ( new_name ) ;\n }\n }\n # pragma GCC diagnostic pop return result ;\n }"}
{"idx": 17962, "target": 1, "func": "static void encode_superblock ( VP9_COMP * cpi , TOKENEXTRA * * t , int output_enabled , int mi_row , int mi_col , BLOCK_SIZE bsize , PICK_MODE_CONTEXT * ctx ) {\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCK * const x = & cpi -> mb ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n MODE_INFO * * mi_8x8 = xd -> mi ;\n MODE_INFO * mi = mi_8x8 [ 0 ] ;\n MB_MODE_INFO * mbmi = & mi -> mbmi ;\n const int seg_skip = vp9_segfeature_active ( & cm -> seg , mbmi -> segment_id , SEG_LVL_SKIP ) ;\n const int mis = cm -> mi_stride ;\n const int mi_width = num_8x8_blocks_wide_lookup [ bsize ] ;\n const int mi_height = num_8x8_blocks_high_lookup [ bsize ] ;\n x -> skip_recode = ! x -> select_tx_size && mbmi -> sb_type >= BLOCK_8X8 && cpi -> oxcf . aq_mode != COMPLEXITY_AQ && cpi -> oxcf . aq_mode != CYCLIC_REFRESH_AQ && cpi -> sf . allow_skip_recode ;\n if ( ! x -> skip_recode && ! cpi -> sf . use_nonrd_pick_mode ) vpx_memset ( x -> skip_txfm , 0 , sizeof ( x -> skip_txfm ) ) ;\n x -> skip_optimize = ctx -> is_coded ;\n ctx -> is_coded = 1 ;\n x -> use_lp32x32fdct = cpi -> sf . use_lp32x32fdct ;\n x -> skip_encode = ( ! output_enabled && cpi -> sf . skip_encode_frame && x -> q_index < QIDX_SKIP_THRESH ) ;\n if ( x -> skip_encode ) return ;\n set_ref_ptrs ( cm , xd , mbmi -> ref_frame [ 0 ] , mbmi -> ref_frame [ 1 ] ) ;\n cpi -> zbin_mode_boost = get_zbin_mode_boost ( mbmi , cpi -> zbin_mode_boost_enabled ) ;\n vp9_update_zbin_extra ( cpi , x ) ;\n if ( ! is_inter_block ( mbmi ) ) {\n int plane ;\n mbmi -> skip = 1 ;\n for ( plane = 0 ;\n plane < MAX_MB_PLANE ;\n ++ plane ) vp9_encode_intra_block_plane ( x , MAX ( bsize , BLOCK_8X8 ) , plane ) ;\n if ( output_enabled ) sum_intra_stats ( & cm -> counts , mi ) ;\n vp9_tokenize_sb ( cpi , t , ! output_enabled , MAX ( bsize , BLOCK_8X8 ) ) ;\n }\n else {\n int ref ;\n const int is_compound = has_second_ref ( mbmi ) ;\n for ( ref = 0 ;\n ref < 1 + is_compound ;\n ++ ref ) {\n YV12_BUFFER_CONFIG * cfg = get_ref_frame_buffer ( cpi , mbmi -> ref_frame [ ref ] ) ;\n vp9_setup_pre_planes ( xd , ref , cfg , mi_row , mi_col , & xd -> block_refs [ ref ] -> sf ) ;\n }\n if ( ! cpi -> sf . reuse_inter_pred_sby || seg_skip ) vp9_build_inter_predictors_sby ( xd , mi_row , mi_col , MAX ( bsize , BLOCK_8X8 ) ) ;\n vp9_build_inter_predictors_sbuv ( xd , mi_row , mi_col , MAX ( bsize , BLOCK_8X8 ) ) ;\n if ( ! x -> skip ) {\n mbmi -> skip = 1 ;\n vp9_encode_sb ( x , MAX ( bsize , BLOCK_8X8 ) ) ;\n vp9_tokenize_sb ( cpi , t , ! output_enabled , MAX ( bsize , BLOCK_8X8 ) ) ;\n }\n else {\n mbmi -> skip = 1 ;\n if ( output_enabled && ! seg_skip ) cm -> counts . skip [ vp9_get_skip_context ( xd ) ] [ 1 ] ++ ;\n reset_skip_context ( xd , MAX ( bsize , BLOCK_8X8 ) ) ;\n }\n }\n if ( output_enabled ) {\n if ( cm -> tx_mode == TX_MODE_SELECT && mbmi -> sb_type >= BLOCK_8X8 && ! ( is_inter_block ( mbmi ) && ( mbmi -> skip || seg_skip ) ) ) {\n ++ get_tx_counts ( max_txsize_lookup [ bsize ] , vp9_get_tx_size_context ( xd ) , & cm -> counts . tx ) [ mbmi -> tx_size ] ;\n }\n else {\n int x , y ;\n TX_SIZE tx_size ;\n if ( is_inter_block ( & mi -> mbmi ) ) {\n tx_size = MIN ( tx_mode_to_biggest_tx_size [ cm -> tx_mode ] , max_txsize_lookup [ bsize ] ) ;\n }\n else {\n tx_size = ( bsize >= BLOCK_8X8 ) ? mbmi -> tx_size : TX_4X4 ;\n }\n for ( y = 0 ;\n y < mi_height ;\n y ++ ) for ( x = 0 ;\n x < mi_width ;\n x ++ ) if ( mi_col + x < cm -> mi_cols && mi_row + y < cm -> mi_rows ) mi_8x8 [ mis * y + x ] -> mbmi . tx_size = tx_size ;\n }\n }\n }"}
{"idx": 17963, "target": 0, "func": "void mainwindows_recreate ( void ) {\n GSList * tmp ;\n for ( tmp = mainwindows ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n MAIN_WINDOW_REC * rec = tmp -> data ;\n rec -> screen_win = mainwindow_create_screen ( rec ) ;\n rec -> dirty = TRUE ;\n textbuffer_view_set_window ( WINDOW_GUI ( rec -> active ) -> view , rec -> screen_win ) ;\n }\n }"}
{"idx": 17964, "target": 0, "func": "static int create_history_entry ( krb5_context context , krb5_keyblock * hist_key , int n_key_data , krb5_key_data * key_data , osa_pw_hist_ent * hist ) {\n krb5_error_code ret ;\n krb5_keyblock key ;\n krb5_keysalt salt ;\n int i ;\n hist -> key_data = k5calloc ( n_key_data , sizeof ( krb5_key_data ) , & ret ) ;\n if ( hist -> key_data == NULL ) return ret ;\n for ( i = 0 ;\n i < n_key_data ;\n i ++ ) {\n ret = krb5_dbe_decrypt_key_data ( context , NULL , & key_data [ i ] , & key , & salt ) ;\n if ( ret ) return ret ;\n ret = krb5_dbe_encrypt_key_data ( context , hist_key , & key , & salt , key_data [ i ] . key_data_kvno , & hist -> key_data [ i ] ) ;\n if ( ret ) return ret ;\n krb5_free_keyblock_contents ( context , & key ) ;\n }\n hist -> n_key_data = n_key_data ;\n return 0 ;\n }"}
{"idx": 17965, "target": 0, "func": "BerElement * der_alloc ( void ) {\n return ber_alloc_t ( LBER_USE_DER ) ;\n }"}
{"idx": 17966, "target": 0, "func": "void myisamchk_init ( MI_CHECK * param ) {\n bzero ( ( uchar * ) param , sizeof ( * param ) ) ;\n param -> opt_follow_links = 1 ;\n param -> keys_in_use = ~ ( ulonglong ) 0 ;\n param -> search_after_block = HA_OFFSET_ERROR ;\n param -> auto_increment_value = 0 ;\n param -> use_buffers = USE_BUFFER_INIT ;\n param -> read_buffer_length = READ_BUFFER_INIT ;\n param -> write_buffer_length = READ_BUFFER_INIT ;\n param -> sort_buffer_length = SORT_BUFFER_INIT ;\n param -> sort_key_blocks = BUFFERS_WHEN_SORTING ;\n param -> tmpfile_createflag = O_RDWR | O_TRUNC | O_EXCL ;\n param -> myf_rw = MYF ( MY_NABP | MY_WME | MY_WAIT_IF_FULL ) ;\n param -> start_check_pos = 0 ;\n param -> max_record_length = LONGLONG_MAX ;\n param -> key_cache_block_size = KEY_CACHE_BLOCK_SIZE ;\n param -> stats_method = MI_STATS_METHOD_NULLS_NOT_EQUAL ;\n param -> need_print_msg_lock = 0 ;\n }"}
{"idx": 17967, "target": 0, "func": "void * ASN1_d2i_fp ( void * ( * xnew ) ( void ) , d2i_of_void * d2i , FILE * in , void * * x ) {\n BIO * b ;\n void * ret ;\n if ( ( b = BIO_new ( BIO_s_file ( ) ) ) == NULL ) {\n ASN1err ( ASN1_F_ASN1_D2I_FP , ERR_R_BUF_LIB ) ;\n return ( NULL ) ;\n }\n BIO_set_fp ( b , in , BIO_NOCLOSE ) ;\n ret = ASN1_d2i_bio ( xnew , d2i , b , x ) ;\n BIO_free ( b ) ;\n return ( ret ) ;\n }"}
{"idx": 17968, "target": 0, "func": "static bool peek_ipv6 ( const char * str , size_t * skip ) {\n size_t i = 0 ;\n size_t colons = 0 ;\n if ( str [ i ++ ] != '[' ) {\n return FALSE ;\n }\n for ( ;\n ;\n ) {\n const char c = str [ i ++ ] ;\n if ( ISALNUM ( c ) || c == '.' || c == '%' ) {\n }\n else if ( c == ':' ) {\n colons ++ ;\n }\n else if ( c == ']' ) {\n * skip = i ;\n return colons >= 2 ? TRUE : FALSE ;\n }\n else {\n return FALSE ;\n }\n }\n }"}
{"idx": 17969, "target": 0, "func": "static const char * file_type_to_string ( enum VideoFileType t ) {\n switch ( t ) {\n case FILE_TYPE_RAW : return \"RAW\" ;\n case FILE_TYPE_Y4M : return \"Y4M\" ;\n default : return \"Other\" ;\n }\n }"}
{"idx": 17970, "target": 0, "func": "static int ipvideo_decode_block_opcode_0x7 ( IpvideoContext * s , AVFrame * frame ) {\n int x , y ;\n unsigned char P [ 2 ] ;\n unsigned int flags ;\n P [ 0 ] = bytestream2_get_byte ( & s -> stream_ptr ) ;\n P [ 1 ] = bytestream2_get_byte ( & s -> stream_ptr ) ;\n if ( P [ 0 ] <= P [ 1 ] ) {\n for ( y = 0 ;\n y < 8 ;\n y ++ ) {\n flags = bytestream2_get_byte ( & s -> stream_ptr ) | 0x100 ;\n for ( ;\n flags != 1 ;\n flags >>= 1 ) * s -> pixel_ptr ++ = P [ flags & 1 ] ;\n s -> pixel_ptr += s -> line_inc ;\n }\n }\n else {\n flags = bytestream2_get_le16 ( & s -> stream_ptr ) ;\n for ( y = 0 ;\n y < 8 ;\n y += 2 ) {\n for ( x = 0 ;\n x < 8 ;\n x += 2 , flags >>= 1 ) {\n s -> pixel_ptr [ x ] = s -> pixel_ptr [ x + 1 ] = s -> pixel_ptr [ x + s -> stride ] = s -> pixel_ptr [ x + 1 + s -> stride ] = P [ flags & 1 ] ;\n }\n s -> pixel_ptr += s -> stride * 2 ;\n }\n }\n return 0 ;\n }"}
{"idx": 17971, "target": 0, "func": "size_t crypto_sec_header_size ( const char * crypto_cipher_type , const char * crypto_hash_type ) {\n int crypto_cipher = string_to_crypto_cipher_type ( crypto_cipher_type ) ;\n int crypto_hash = string_to_crypto_hash_type ( crypto_hash_type ) ;\n size_t hdr_size = 0 ;\n int block_size = 0 ;\n hdr_size = sizeof ( struct crypto_config_header ) ;\n if ( crypto_hash ) {\n hdr_size += hash_len [ crypto_hash ] ;\n }\n if ( crypto_cipher ) {\n hdr_size += SALT_SIZE ;\n if ( cypher_block_len [ crypto_cipher ] ) {\n block_size = cypher_block_len [ crypto_cipher ] ;\n }\n else {\n block_size = PK11_GetBlockSize ( crypto_cipher , NULL ) ;\n if ( block_size < 0 ) {\n block_size = 64 ;\n }\n }\n hdr_size += ( block_size * 2 ) ;\n }\n return hdr_size ;\n }"}
{"idx": 17972, "target": 0, "func": "static int isoent_cmp_joliet_identifier ( const struct isoent * p1 , const struct isoent * p2 ) {\n const unsigned char * s1 , * s2 ;\n int cmp ;\n int l ;\n s1 = ( const unsigned char * ) p1 -> identifier ;\n s2 = ( const unsigned char * ) p2 -> identifier ;\n l = p1 -> ext_off ;\n if ( l > p2 -> ext_off ) l = p2 -> ext_off ;\n cmp = memcmp ( s1 , s2 , l ) ;\n if ( cmp != 0 ) return ( cmp ) ;\n if ( p1 -> ext_off < p2 -> ext_off ) {\n s2 += l ;\n l = p2 -> ext_off - p1 -> ext_off ;\n while ( l -- ) if ( 0 != * s2 ++ ) return ( - * ( const unsigned char * ) ( s2 - 1 ) ) ;\n }\n else if ( p1 -> ext_off > p2 -> ext_off ) {\n s1 += l ;\n l = p1 -> ext_off - p2 -> ext_off ;\n while ( l -- ) if ( 0 != * s1 ++ ) return ( * ( const unsigned char * ) ( s1 - 1 ) ) ;\n }\n if ( p1 -> ext_len == 0 && p2 -> ext_len == 0 ) return ( 0 ) ;\n if ( p1 -> ext_len == 2 && p2 -> ext_len == 2 ) return ( 0 ) ;\n if ( p1 -> ext_len <= 2 ) return ( - 1 ) ;\n if ( p2 -> ext_len <= 2 ) return ( 1 ) ;\n l = p1 -> ext_len ;\n if ( l > p2 -> ext_len ) l = p2 -> ext_len ;\n s1 = ( unsigned char * ) ( p1 -> identifier + p1 -> ext_off ) ;\n s2 = ( unsigned char * ) ( p2 -> identifier + p2 -> ext_off ) ;\n if ( l > 1 ) {\n cmp = memcmp ( s1 , s2 , l ) ;\n if ( cmp != 0 ) return ( cmp ) ;\n }\n if ( p1 -> ext_len < p2 -> ext_len ) {\n s2 += l ;\n l = p2 -> ext_len - p1 -> ext_len ;\n while ( l -- ) if ( 0 != * s2 ++ ) return ( - * ( const unsigned char * ) ( s2 - 1 ) ) ;\n }\n else if ( p1 -> ext_len > p2 -> ext_len ) {\n s1 += l ;\n l = p1 -> ext_len - p2 -> ext_len ;\n while ( l -- ) if ( 0 != * s1 ++ ) return ( * ( const unsigned char * ) ( s1 - 1 ) ) ;\n }\n return ( cmp ) ;\n }"}
{"idx": 17973, "target": 0, "func": "int vp9_full_pixel_search ( VP9_COMP * cpi , MACROBLOCK * x , BLOCK_SIZE bsize , MV * mvp_full , int step_param , int error_per_bit , int * sad_list , const MV * ref_mv , MV * tmp_mv , int var_max , int rd ) {\n const SPEED_FEATURES * const sf = & cpi -> sf ;\n const SEARCH_METHODS method = sf -> mv . search_method ;\n vp9_variance_fn_ptr_t * fn_ptr = & cpi -> fn_ptr [ bsize ] ;\n int var = 0 ;\n if ( sad_list ) {\n sad_list [ 0 ] = INT_MAX ;\n sad_list [ 1 ] = INT_MAX ;\n sad_list [ 2 ] = INT_MAX ;\n sad_list [ 3 ] = INT_MAX ;\n sad_list [ 4 ] = INT_MAX ;\n }\n switch ( method ) {\n case FAST_DIAMOND : var = vp9_fast_dia_search ( x , mvp_full , step_param , error_per_bit , 0 , sad_list , fn_ptr , 1 , ref_mv , tmp_mv ) ;\n break ;\n case FAST_HEX : var = vp9_fast_hex_search ( x , mvp_full , step_param , error_per_bit , 0 , sad_list , fn_ptr , 1 , ref_mv , tmp_mv ) ;\n break ;\n case HEX : var = vp9_hex_search ( x , mvp_full , step_param , error_per_bit , 1 , sad_list , fn_ptr , 1 , ref_mv , tmp_mv ) ;\n break ;\n case SQUARE : var = vp9_square_search ( x , mvp_full , step_param , error_per_bit , 1 , sad_list , fn_ptr , 1 , ref_mv , tmp_mv ) ;\n break ;\n case BIGDIA : var = vp9_bigdia_search ( x , mvp_full , step_param , error_per_bit , 1 , sad_list , fn_ptr , 1 , ref_mv , tmp_mv ) ;\n break ;\n case NSTEP : var = vp9_full_pixel_diamond ( cpi , x , mvp_full , step_param , error_per_bit , MAX_MVSEARCH_STEPS - 1 - step_param , 1 , fn_ptr , ref_mv , tmp_mv ) ;\n break ;\n default : assert ( ! \"Invalid search method.\" ) ;\n }\n if ( method != NSTEP && rd && var < var_max ) var = vp9_get_mvpred_var ( x , tmp_mv , ref_mv , fn_ptr , 1 ) ;\n return var ;\n }"}
{"idx": 17974, "target": 1, "func": "static int yop_copy_previous_block ( YopDecContext * s , int copy_tag ) {\n uint8_t * bufptr ;\n bufptr = s -> dstptr + motion_vector [ copy_tag ] [ 0 ] + s -> frame . linesize [ 0 ] * motion_vector [ copy_tag ] [ 1 ] ;\n if ( bufptr < s -> dstbuf ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"YOP: cannot decode, file probably corrupt\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n s -> dstptr [ 0 ] = bufptr [ 0 ] ;\n s -> dstptr [ 1 ] = bufptr [ 1 ] ;\n s -> dstptr [ s -> frame . linesize [ 0 ] ] = bufptr [ s -> frame . linesize [ 0 ] ] ;\n s -> dstptr [ s -> frame . linesize [ 0 ] + 1 ] = bufptr [ s -> frame . linesize [ 0 ] + 1 ] ;\n return 0 ;\n }"}
{"idx": 17975, "target": 0, "func": "static int hfinfo_mask_bitwidth ( const header_field_info * hfinfo ) {\n if ( ! hfinfo -> bitmask ) {\n return 0 ;\n }\n return ws_ilog2 ( hfinfo -> bitmask ) - ws_ctz ( hfinfo -> bitmask ) + 1 ;\n }"}
{"idx": 17976, "target": 0, "func": "static vpx_codec_err_t ctrl_set_lossless ( vpx_codec_alg_priv_t * ctx , va_list args ) {\n struct vp9_extracfg extra_cfg = ctx -> extra_cfg ;\n extra_cfg . lossless = CAST ( VP9E_SET_LOSSLESS , args ) ;\n return update_extra_cfg ( ctx , & extra_cfg ) ;\n }"}
{"idx": 17977, "target": 0, "func": "void ssl3_free ( SSL * s ) {\n if ( s == NULL ) return ;\n # ifdef TLSEXT_TYPE_opaque_prf_input if ( s -> s3 -> client_opaque_prf_input != NULL ) OPENSSL_free ( s -> s3 -> client_opaque_prf_input ) ;\n if ( s -> s3 -> server_opaque_prf_input != NULL ) OPENSSL_free ( s -> s3 -> server_opaque_prf_input ) ;\n # endif ssl3_cleanup_key_block ( s ) ;\n if ( s -> s3 -> rbuf . buf != NULL ) ssl3_release_read_buffer ( s ) ;\n if ( s -> s3 -> wbuf . buf != NULL ) ssl3_release_write_buffer ( s ) ;\n if ( s -> s3 -> rrec . comp != NULL ) OPENSSL_free ( s -> s3 -> rrec . comp ) ;\n # ifndef OPENSSL_NO_DH if ( s -> s3 -> tmp . dh != NULL ) DH_free ( s -> s3 -> tmp . dh ) ;\n # endif # ifndef OPENSSL_NO_ECDH if ( s -> s3 -> tmp . ecdh != NULL ) EC_KEY_free ( s -> s3 -> tmp . ecdh ) ;\n # endif if ( s -> s3 -> tmp . ca_names != NULL ) sk_X509_NAME_pop_free ( s -> s3 -> tmp . ca_names , X509_NAME_free ) ;\n if ( s -> s3 -> handshake_buffer ) {\n BIO_free ( s -> s3 -> handshake_buffer ) ;\n }\n if ( s -> s3 -> handshake_dgst ) ssl3_free_digest_list ( s ) ;\n # ifndef OPENSSL_NO_SRP SSL_SRP_CTX_free ( s ) ;\n # endif OPENSSL_cleanse ( s -> s3 , sizeof * s -> s3 ) ;\n OPENSSL_free ( s -> s3 ) ;\n s -> s3 = NULL ;\n }"}
{"idx": 17978, "target": 0, "func": "static int dissect_nlm4_test ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n return dissect_nlm_test ( tvb , 0 , pinfo , tree , 4 , ( rpc_call_info_value * ) data ) ;\n }"}
{"idx": 17979, "target": 1, "func": "static int test_candidate_kf ( TWO_PASS * twopass , const FIRSTPASS_STATS * last_frame , const FIRSTPASS_STATS * this_frame , const FIRSTPASS_STATS * next_frame ) {\n int is_viable_kf = 0 ;\n if ( ( this_frame -> pcnt_second_ref < 0.10 ) && ( next_frame -> pcnt_second_ref < 0.10 ) && ( ( this_frame -> pcnt_inter < 0.05 ) || ( ( ( this_frame -> pcnt_inter - this_frame -> pcnt_neutral ) < 0.35 ) && ( ( this_frame -> intra_error / DOUBLE_DIVIDE_CHECK ( this_frame -> coded_error ) ) < 2.5 ) && ( ( fabs ( last_frame -> coded_error - this_frame -> coded_error ) / DOUBLE_DIVIDE_CHECK ( this_frame -> coded_error ) > 0.40 ) || ( fabs ( last_frame -> intra_error - this_frame -> intra_error ) / DOUBLE_DIVIDE_CHECK ( this_frame -> intra_error ) > 0.40 ) || ( ( next_frame -> intra_error / DOUBLE_DIVIDE_CHECK ( next_frame -> coded_error ) ) > 3.5 ) ) ) ) ) {\n int i ;\n const FIRSTPASS_STATS * start_pos = twopass -> stats_in ;\n FIRSTPASS_STATS local_next_frame = * next_frame ;\n double boost_score = 0.0 ;\n double old_boost_score = 0.0 ;\n double decay_accumulator = 1.0 ;\n for ( i = 0 ;\n i < 16 ;\n ++ i ) {\n double next_iiratio = ( IIKFACTOR1 * local_next_frame . intra_error / DOUBLE_DIVIDE_CHECK ( local_next_frame . coded_error ) ) ;\n if ( next_iiratio > RMAX ) next_iiratio = RMAX ;\n if ( local_next_frame . pcnt_inter > 0.85 ) decay_accumulator *= local_next_frame . pcnt_inter ;\n else decay_accumulator *= ( 0.85 + local_next_frame . pcnt_inter ) / 2.0 ;\n boost_score += ( decay_accumulator * next_iiratio ) ;\n if ( ( local_next_frame . pcnt_inter < 0.05 ) || ( next_iiratio < 1.5 ) || ( ( ( local_next_frame . pcnt_inter - local_next_frame . pcnt_neutral ) < 0.20 ) && ( next_iiratio < 3.0 ) ) || ( ( boost_score - old_boost_score ) < 3.0 ) || ( local_next_frame . intra_error < 200 ) ) {\n break ;\n }\n old_boost_score = boost_score ;\n if ( EOF == input_stats ( twopass , & local_next_frame ) ) break ;\n }\n if ( boost_score > 30.0 && ( i > 3 ) ) {\n is_viable_kf = 1 ;\n }\n else {\n reset_fpf_position ( twopass , start_pos ) ;\n is_viable_kf = 0 ;\n }\n }\n return is_viable_kf ;\n }"}
{"idx": 17980, "target": 0, "func": "int cat_file ( DYNAMIC_STRING * ds , const char * filename ) {\n int fd ;\n size_t len ;\n char buff [ 16384 ] ;\n if ( ( fd = my_open ( filename , O_RDONLY , MYF ( 0 ) ) ) < 0 ) return 1 ;\n while ( ( len = my_read ( fd , ( uchar * ) & buff , sizeof ( buff ) - 1 , MYF ( 0 ) ) ) > 0 ) {\n char * p = buff , * start = buff ;\n while ( p < buff + len ) {\n if ( * p == '\\r' && * ( p + 1 ) && * ( p + 1 ) == '\\n' ) {\n * p = '\\n' ;\n p ++ ;\n * p = 0 ;\n replace_dynstr_append_mem ( ds , start , p - start ) ;\n p ++ ;\n start = p ;\n }\n else p ++ ;\n }\n * p = 0 ;\n replace_dynstr_append_mem ( ds , start , p - start ) ;\n }\n my_close ( fd , MYF ( 0 ) ) ;\n return 0 ;\n }"}
{"idx": 17981, "target": 0, "func": "static int dissect_opcua ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n tcp_dissect_pdus ( tvb , pinfo , tree , TRUE , FRAME_HEADER_LEN , get_opcua_message_len , dissect_opcua_message , data ) ;\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 17982, "target": 0, "func": "static void read_bundle ( GetBitContext * gb , BinkContext * c , int bundle_num ) {\n int i ;\n if ( bundle_num == BINK_SRC_COLORS ) {\n for ( i = 0 ;\n i < 16 ;\n i ++ ) read_tree ( gb , & c -> col_high [ i ] ) ;\n c -> col_lastval = 0 ;\n }\n if ( bundle_num != BINK_SRC_INTRA_DC && bundle_num != BINK_SRC_INTER_DC ) read_tree ( gb , & c -> bundle [ bundle_num ] . tree ) ;\n c -> bundle [ bundle_num ] . cur_dec = c -> bundle [ bundle_num ] . cur_ptr = c -> bundle [ bundle_num ] . data ;\n }"}
{"idx": 17983, "target": 1, "func": "extern int name ( int ) __THROW __exctype ( isalnum ) ;\n __exctype ( isalpha )"}
{"idx": 17984, "target": 0, "func": "static void untrusted_launcher_response_callback ( GtkDialog * dialog , int response_id , ActivateParametersDesktop * parameters ) {\n GdkScreen * screen ;\n char * uri ;\n GFile * file ;\n switch ( response_id ) {\n case GTK_RESPONSE_OK : {\n file = nautilus_file_get_location ( parameters -> file ) ;\n nautilus_file_set_metadata ( parameters -> file , NAUTILUS_METADATA_KEY_DESKTOP_FILE_TRUSTED , NULL , \"yes\" ) ;\n nautilus_file_mark_desktop_file_executable ( file , parameters -> parent_window , TRUE , NULL , NULL ) ;\n nautilus_file_invalidate_all_attributes ( parameters -> file ) ;\n screen = gtk_widget_get_screen ( GTK_WIDGET ( parameters -> parent_window ) ) ;\n uri = nautilus_file_get_uri ( parameters -> file ) ;\n DEBUG ( \"Launching untrusted launcher %s\" , uri ) ;\n nautilus_launch_desktop_file ( screen , uri , NULL , parameters -> parent_window ) ;\n g_free ( uri ) ;\n g_object_unref ( file ) ;\n }\n break ;\n default : {\n }\n break ;\n }\n gtk_widget_destroy ( GTK_WIDGET ( dialog ) ) ;\n activate_parameters_desktop_free ( parameters ) ;\n }"}
{"idx": 17985, "target": 0, "func": "static void update_progress ( struct connectivity_progress * cp ) {\n cp -> count ++ ;\n if ( ( cp -> count & 1023 ) == 0 ) display_progress ( cp -> progress , cp -> count ) ;\n }"}
{"idx": 17986, "target": 0, "func": "static void virtio_balloon_save ( QEMUFile * f , void * opaque ) {\n VirtIOBalloon * s = opaque ;\n virtio_save ( & s -> vdev , f ) ;\n qemu_put_be32 ( f , s -> num_pages ) ;\n qemu_put_be32 ( f , s -> actual ) ;\n }"}
{"idx": 17987, "target": 0, "func": "bool one_thread_per_connection_end ( THD * thd , bool put_in_cache ) {\n DBUG_ENTER ( \"one_thread_per_connection_end\" ) ;\n unlink_thd ( thd ) ;\n my_pthread_setspecific_ptr ( THR_THD , 0 ) ;\n if ( put_in_cache ) {\n mysql_mutex_lock ( & LOCK_thread_count ) ;\n put_in_cache = cache_thread ( ) ;\n mysql_mutex_unlock ( & LOCK_thread_count ) ;\n if ( put_in_cache ) DBUG_RETURN ( 0 ) ;\n }\n DBUG_PRINT ( \"signal\" , ( \"Broadcasting COND_thread_count\" ) ) ;\n DBUG_LEAVE ;\n # if defined ( HAVE_OPENSSL ) && ! defined ( EMBEDDED_LIBRARY ) ERR_remove_state ( 0 ) ;\n # endif my_thread_end ( ) ;\n mysql_cond_broadcast ( & COND_thread_count ) ;\n pthread_exit ( 0 ) ;\n return 0 ;\n }"}
{"idx": 17988, "target": 0, "func": "TSReturnCode TSHttpTxnNewCacheLookupDo ( TSHttpTxn txnp , TSMBuffer bufp , TSMLoc url_loc ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_url_handle ( url_loc ) == TS_SUCCESS ) ;\n URL new_url , * client_url , * l_url , * o_url ;\n INK_MD5 md51 , md52 ;\n new_url . m_heap = ( ( HdrHeapSDKHandle * ) bufp ) -> m_heap ;\n new_url . m_url_impl = ( URLImpl * ) url_loc ;\n if ( ! new_url . valid ( ) ) {\n return TS_ERROR ;\n }\n HttpSM * sm = ( HttpSM * ) txnp ;\n HttpTransact : : State * s = & ( sm -> t_state ) ;\n client_url = s -> hdr_info . client_request . url_get ( ) ;\n if ( ! ( client_url -> valid ( ) ) ) {\n return TS_ERROR ;\n }\n l_url = s -> cache_info . lookup_url ;\n if ( ! l_url || ! l_url -> valid ( ) ) {\n s -> cache_info . lookup_url_storage . create ( nullptr ) ;\n s -> cache_info . lookup_url = & ( s -> cache_info . lookup_url_storage ) ;\n l_url = s -> cache_info . lookup_url ;\n }\n else {\n l_url -> hash_get ( & md51 ) ;\n new_url . hash_get ( & md52 ) ;\n if ( md51 == md52 ) {\n return TS_ERROR ;\n }\n o_url = & ( s -> cache_info . original_url ) ;\n if ( ! o_url -> valid ( ) ) {\n o_url -> create ( nullptr ) ;\n o_url -> copy ( l_url ) ;\n }\n }\n l_url -> copy ( & new_url ) ;\n s -> transact_return_point = HttpTransact : : DecideCacheLookup ;\n s -> cache_info . action = HttpTransact : : CACHE_DO_LOOKUP ;\n sm -> add_cache_sm ( ) ;\n s -> api_cleanup_cache_read = true ;\n return TS_SUCCESS ;\n }"}
{"idx": 17989, "target": 0, "func": "static inline void SetPixelCbTraits ( Image * image , const PixelTrait traits ) {\n image -> channel_map [ CbPixelChannel ] . traits = traits ;\n }"}
{"idx": 17990, "target": 0, "func": "static void gpgsm_set_io_cbs ( void * engine , gpgme_io_cbs_t io_cbs ) {\n engine_gpgsm_t gpgsm = engine ;\n gpgsm -> io_cbs = * io_cbs ;\n }"}
{"idx": 17991, "target": 0, "func": "static void setup_environment ( int argc , char * * argv , int * argc_out , char * * * argv_out , char * * * argv_free , char * * env_free ) {\n int n , i , i0 ;\n char * p , * v = getenv ( \"XDELTA\" ) ;\n if ( v == NULL ) {\n ( * argc_out ) = argc ;\n ( * argv_out ) = argv ;\n ( * argv_free ) = NULL ;\n ( * env_free ) = NULL ;\n return ;\n }\n ( * env_free ) = ( char * ) main_malloc ( ( usize_t ) strlen ( v ) + 1 ) ;\n strcpy ( * env_free , v ) ;\n n = argc + 1 ;\n for ( p = * env_free ;\n * p != 0 ;\n ) {\n if ( * p ++ == ' ' ) {\n n ++ ;\n }\n }\n ( * argv_free ) = ( char * * ) main_malloc ( sizeof ( char * ) * ( n + 1 ) ) ;\n ( * argv_out ) = ( * argv_free ) ;\n ( * argv_out ) [ 0 ] = argv [ 0 ] ;\n ( * argv_out ) [ n ] = NULL ;\n i = 1 ;\n for ( p = * env_free ;\n * p != 0 ;\n ) {\n ( * argv_out ) [ i ++ ] = p ;\n while ( * p != ' ' && * p != 0 ) {\n p ++ ;\n }\n while ( * p == ' ' ) {\n * p ++ = 0 ;\n }\n }\n for ( i0 = 1 ;\n i0 < argc ;\n i0 ++ ) {\n ( * argv_out ) [ i ++ ] = argv [ i0 ] ;\n }\n ( * argc_out ) = i ;\n while ( i <= n ) {\n ( * argv_out ) [ i ++ ] = NULL ;\n }\n }"}
{"idx": 17992, "target": 0, "func": "void config_filter_parsers_free ( struct config_module_parser * parsers ) {\n unsigned int i ;\n for ( i = 0 ;\n parsers [ i ] . root != NULL ;\n i ++ ) settings_parser_deinit ( & parsers [ i ] . parser ) ;\n }"}
{"idx": 17993, "target": 0, "func": "static void pdf_clear_stack ( fz_context * ctx , pdf_csi * csi ) {\n int i ;\n pdf_drop_obj ( ctx , csi -> obj ) ;\n csi -> obj = NULL ;\n csi -> name [ 0 ] = 0 ;\n csi -> string_len = 0 ;\n for ( i = 0 ;\n i < csi -> top ;\n i ++ ) csi -> stack [ i ] = 0 ;\n csi -> top = 0 ;\n }"}
{"idx": 17994, "target": 0, "func": "static gboolean ber_decode_as_reset ( const char * name _U_ , const gpointer pattern _U_ ) {\n ber_decode_as ( NULL ) ;\n return FALSE ;\n }"}
{"idx": 17995, "target": 0, "func": "static int isoent_rr_move ( struct archive_write * a ) {\n struct iso9660 * iso9660 = a -> format_data ;\n struct path_table * pt ;\n struct isoent * rootent , * rr_moved ;\n struct isoent * np , * last ;\n int r ;\n pt = & ( iso9660 -> primary . pathtbl [ MAX_DEPTH - 1 ] ) ;\n if ( pt -> cnt == 0 ) return ( ARCHIVE_OK ) ;\n rootent = iso9660 -> primary . rootent ;\n rr_moved = isoent_find_child ( rootent , \"rr_moved\" ) ;\n if ( rr_moved != NULL && rr_moved != rootent -> children . first ) {\n isoent_remove_child ( rootent , rr_moved ) ;\n isoent_add_child_head ( rootent , rr_moved ) ;\n }\n np = pt -> first ;\n while ( np != NULL ) {\n last = path_table_last_entry ( pt ) ;\n for ( ;\n np != NULL ;\n np = np -> ptnext ) {\n struct isoent * mvent ;\n struct isoent * newent ;\n if ( ! np -> dir ) continue ;\n for ( mvent = np -> subdirs . first ;\n mvent != NULL ;\n mvent = mvent -> drnext ) {\n r = isoent_rr_move_dir ( a , & rr_moved , mvent , & newent ) ;\n if ( r < 0 ) return ( r ) ;\n isoent_collect_dirs ( & ( iso9660 -> primary ) , newent , 2 ) ;\n }\n }\n np = last -> ptnext ;\n }\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 17996, "target": 0, "func": "static void gsm_a_dtap_sm_stat_init ( new_stat_tap_ui * new_stat , new_stat_tap_gui_init_cb gui_callback , void * gui_data ) {\n gsm_a_stat_init ( new_stat , gui_callback , gui_data , \"GSM A-I/F DTAP GPRS Session Management Statistics\" , gsm_a_dtap_msg_sm_strings ) ;\n }"}
{"idx": 17997, "target": 0, "func": "static subpicture_t * DecodeBlock ( decoder_t * p_dec , block_t * * pp_block ) {\n subpicture_t * p_spu ;\n block_t * p_block ;\n if ( ! pp_block || * pp_block == NULL ) return NULL ;\n p_block = * pp_block ;\n if ( p_block -> i_flags & ( BLOCK_FLAG_DISCONTINUITY | BLOCK_FLAG_CORRUPTED ) ) {\n block_Release ( p_block ) ;\n return NULL ;\n }\n p_spu = ParseText ( p_dec , p_block ) ;\n block_Release ( p_block ) ;\n * pp_block = NULL ;\n return p_spu ;\n }"}
{"idx": 17998, "target": 1, "func": "void * xmalloc ( size_t size ) {\n void * ptr = malloc ( size ) ;\n if ( ! ptr && ( size != 0 ) ) {\n perror ( \"xmalloc: Memory allocation failure\" ) ;\n abort ( ) ;\n }\n return ptr ;\n }"}
{"idx": 17999, "target": 0, "func": "static inline void uprv_arrayCopy ( const int16_t * src , int16_t * dst , int32_t count ) {\n uprv_memcpy ( dst , src , ( size_t ) count * sizeof ( * src ) ) ;\n }"}
{"idx": 18000, "target": 0, "func": "void mgs_hook_child_init ( apr_pool_t * p , server_rec * s ) {\n apr_status_t rv = APR_SUCCESS ;\n mgs_srvconf_rec * sc = ap_get_module_config ( s -> module_config , & gnutls_module ) ;\n _gnutls_log ( debug_log_fp , \"%s: %d\\n\" , __func__ , __LINE__ ) ;\n if ( sc -> cache_type != mgs_cache_none ) {\n rv = mgs_cache_child_init ( p , s , sc ) ;\n if ( rv != APR_SUCCESS ) {\n ap_log_error ( APLOG_MARK , APLOG_EMERG , rv , s , \"[GnuTLS] - Failed to run Cache Init\" ) ;\n }\n }\n rv = apr_signal_block ( SIGPIPE ) ;\n if ( rv != APR_SUCCESS ) {\n ap_log_error ( APLOG_MARK , APLOG_EMERG , rv , s , \"GnuTLS: Error Blocking SIGPIPE Signal!\" ) ;\n }\n }"}
{"idx": 18001, "target": 0, "func": "static void test_unlink ( char * file ) {\n int ret ;\n if ( ( ret = unlink ( file ) ) != 0 && errno != ENOENT ) {\n XPR ( NT \"unlink %s failed: %s\\n\" , file , strerror ( ret ) ) ;\n }\n }"}
{"idx": 18002, "target": 0, "func": "proto_item * parseStatusCode ( proto_tree * tree , tvbuff_t * tvb , packet_info * pinfo _U_ , gint * pOffset , int hfIndex ) {\n proto_item * item = NULL ;\n guint32 uStatusCode = 0 ;\n const gchar * szStatusCode = NULL ;\n item = proto_tree_add_item ( tree , hfIndex , tvb , * pOffset , 4 , ENC_LITTLE_ENDIAN ) ;\n uStatusCode = tvb_get_letohl ( tvb , * pOffset ) ;\n szStatusCode = val_to_str_const ( uStatusCode & 0xFFFF0000 , g_statusCodes , \"Unknown Status Code\" ) ;\n proto_item_append_text ( item , \" [%s]\" , szStatusCode ) ;\n if ( uStatusCode & 0x0000FFFF ) {\n gint iOffset = * pOffset ;\n proto_tree * flags_tree ;\n proto_item * ti_inner ;\n flags_tree = proto_item_add_subtree ( item , ett_opcua_statuscode ) ;\n proto_tree_add_item ( flags_tree , hf_opcua_status_StructureChanged , tvb , iOffset , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( flags_tree , hf_opcua_status_SemanticsChanged , tvb , iOffset , 2 , ENC_LITTLE_ENDIAN ) ;\n ti_inner = proto_tree_add_item ( flags_tree , hf_opcua_status_InfoType , tvb , iOffset , 2 , ENC_LITTLE_ENDIAN ) ;\n switch ( uStatusCode & 0x00000C00 ) {\n case STATUSCODE_INFOTYPE_DATAVALUE : {\n proto_tree * tree_inner ;\n tree_inner = proto_item_add_subtree ( ti_inner , ett_opcua_statuscode_info ) ;\n proto_tree_add_item ( tree_inner , hf_opcua_status_Limit , tvb , iOffset , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree_inner , hf_opcua_status_InfoBit_Limit_Overflow , tvb , iOffset , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree_inner , hf_opcua_status_InfoBit_Historian_MultiValue , tvb , iOffset , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree_inner , hf_opcua_status_InfoBit_Historian_ExtraData , tvb , iOffset , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree_inner , hf_opcua_status_InfoBit_Historian_Partial , tvb , iOffset , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree_inner , hf_opcua_status_Historian , tvb , iOffset , 2 , ENC_LITTLE_ENDIAN ) ;\n }\n default : break ;\n }\n }\n * pOffset += 4 ;\n return item ;\n }"}
{"idx": 18003, "target": 0, "func": "REGRESSION_TEST ( SDK_API_TSMgmtGet ) ( RegressionTest * test , int , int * pstatus ) {\n const char * CONFIG_PARAM_COUNTER_NAME = \"proxy.process.ssl.total_tickets_renewed\" ;\n int CONFIG_PARAM_COUNTER_VALUE = 0 ;\n const char * CONFIG_PARAM_FLOAT_NAME = \"proxy.config.http.background_fill_completed_threshold\" ;\n float CONFIG_PARAM_FLOAT_VALUE = 0.0 ;\n const char * CONFIG_PARAM_INT_NAME = \"proxy.config.http.cache.http\" ;\n int CONFIG_PARAM_INT_VALUE = 1 ;\n const char * CONFIG_PARAM_STRING_NAME = \"proxy.config.product_name\" ;\n const char * CONFIG_PARAM_STRING_VALUE = \"Traffic Server\" ;\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n int err = 0 ;\n TSMgmtCounter cvalue = 0 ;\n TSMgmtFloat fvalue = 0.0 ;\n TSMgmtInt ivalue = - 1 ;\n TSMgmtString svalue = nullptr ;\n if ( TS_SUCCESS != TSMgmtCounterGet ( CONFIG_PARAM_COUNTER_NAME , & cvalue ) ) {\n SDK_RPRINT ( test , \"TSMgmtCounterGet\" , \"TestCase1.1\" , TC_FAIL , \"can not get value of param %s\" , CONFIG_PARAM_COUNTER_NAME ) ;\n err = 1 ;\n }\n else if ( cvalue != CONFIG_PARAM_COUNTER_VALUE ) {\n SDK_RPRINT ( test , \"TSMgmtCounterGet\" , \"TestCase1.1\" , TC_FAIL , \"got incorrect value of param %s, should have been %d, found %d\" , CONFIG_PARAM_COUNTER_NAME , CONFIG_PARAM_COUNTER_VALUE , cvalue ) ;\n err = 1 ;\n }\n else {\n SDK_RPRINT ( test , \"TSMgmtCounterGet\" , \"TestCase1.1\" , TC_PASS , \"ok\" ) ;\n }\n if ( ( TS_SUCCESS != TSMgmtFloatGet ( CONFIG_PARAM_FLOAT_NAME , & fvalue ) ) || ( fvalue != CONFIG_PARAM_FLOAT_VALUE ) ) {\n SDK_RPRINT ( test , \"TSMgmtFloatGet\" , \"TestCase2\" , TC_FAIL , \"can not get value of param %s\" , CONFIG_PARAM_FLOAT_NAME ) ;\n err = 1 ;\n }\n else {\n SDK_RPRINT ( test , \"TSMgmtFloatGet\" , \"TestCase1.2\" , TC_PASS , \"ok\" ) ;\n }\n if ( ( TSMgmtIntGet ( CONFIG_PARAM_INT_NAME , & ivalue ) != TS_SUCCESS ) || ( ivalue != CONFIG_PARAM_INT_VALUE ) ) {\n SDK_RPRINT ( test , \"TSMgmtIntGet\" , \"TestCase1.3\" , TC_FAIL , \"can not get value of param %s\" , CONFIG_PARAM_INT_NAME ) ;\n err = 1 ;\n }\n else {\n SDK_RPRINT ( test , \"TSMgmtIntGet\" , \"TestCase1.3\" , TC_PASS , \"ok\" ) ;\n }\n if ( TS_SUCCESS != TSMgmtStringGet ( CONFIG_PARAM_STRING_NAME , & svalue ) ) {\n SDK_RPRINT ( test , \"TSMgmtStringGet\" , \"TestCase1.4\" , TC_FAIL , \"can not get value of param %s\" , CONFIG_PARAM_STRING_NAME ) ;\n err = 1 ;\n }\n else if ( strcmp ( svalue , CONFIG_PARAM_STRING_VALUE ) != 0 ) {\n SDK_RPRINT ( test , \"TSMgmtStringGet\" , \"TestCase1.4\" , TC_FAIL , R \"(got incorrect value of param %s, should have been \" % s \", found \" % s \")\" , CONFIG_PARAM_STRING_NAME , CONFIG_PARAM_STRING_VALUE , svalue ) ;\n err = 1 ;\n }\n else {\n SDK_RPRINT ( test , \"TSMgmtStringGet\" , \"TestCase1.4\" , TC_PASS , \"ok\" ) ;\n }\n if ( err ) {\n * pstatus = REGRESSION_TEST_FAILED ;\n return ;\n }\n * pstatus = REGRESSION_TEST_PASSED ;\n SDK_RPRINT ( test , \"TSMgmtGet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n return ;\n }"}
{"idx": 18004, "target": 0, "func": "END_TEST START_TEST ( test_find_user_by_ip ) {\n in_addr_t ip ;\n unsigned int testip ;\n ip = inet_addr ( \"127.0.0.1\" ) ;\n init_users ( ip , 27 ) ;\n users [ 0 ] . conn = CONN_DNS_NULL ;\n testip = ( unsigned int ) inet_addr ( \"10.0.0.1\" ) ;\n fail_unless ( find_user_by_ip ( testip ) == - 1 ) ;\n testip = ( unsigned int ) inet_addr ( \"127.0.0.2\" ) ;\n fail_unless ( find_user_by_ip ( testip ) == - 1 ) ;\n users [ 0 ] . active = 1 ;\n testip = ( unsigned int ) inet_addr ( \"127.0.0.2\" ) ;\n fail_unless ( find_user_by_ip ( testip ) == - 1 ) ;\n users [ 0 ] . last_pkt = time ( NULL ) ;\n testip = ( unsigned int ) inet_addr ( \"127.0.0.2\" ) ;\n fail_unless ( find_user_by_ip ( testip ) == - 1 ) ;\n users [ 0 ] . authenticated = 1 ;\n testip = ( unsigned int ) inet_addr ( \"127.0.0.2\" ) ;\n fail_unless ( find_user_by_ip ( testip ) == 0 ) ;\n }"}
{"idx": 18005, "target": 0, "func": "static int tipc_nl_compat_link_set ( struct tipc_nl_compat_cmd_doit * cmd , struct sk_buff * skb , struct tipc_nl_compat_msg * msg ) {\n struct tipc_link_config * lc ;\n struct tipc_bearer * bearer ;\n struct tipc_media * media ;\n lc = ( struct tipc_link_config * ) TLV_DATA ( msg -> req ) ;\n media = tipc_media_find ( lc -> name ) ;\n if ( media ) {\n cmd -> doit = & tipc_nl_media_set ;\n return tipc_nl_compat_media_set ( skb , msg ) ;\n }\n bearer = tipc_bearer_find ( msg -> net , lc -> name ) ;\n if ( bearer ) {\n cmd -> doit = & tipc_nl_bearer_set ;\n return tipc_nl_compat_bearer_set ( skb , msg ) ;\n }\n return __tipc_nl_compat_link_set ( skb , msg ) ;\n }"}
{"idx": 18006, "target": 1, "func": "void ff_MPV_report_decode_progress ( MpegEncContext * s ) {\n if ( s -> pict_type != AV_PICTURE_TYPE_B && ! s -> partitioned_frame && ! s -> er . error_occurred ) ff_thread_report_progress ( & s -> current_picture_ptr -> f , s -> mb_y , 0 ) ;\n }"}
{"idx": 18007, "target": 0, "func": "static void srec_bad_byte ( bfd * abfd , unsigned int lineno , int c , bfd_boolean error ) {\n if ( c == EOF ) {\n if ( ! error ) bfd_set_error ( bfd_error_file_truncated ) ;\n }\n else {\n char buf [ 10 ] ;\n if ( ! ISPRINT ( c ) ) sprintf ( buf , \"\\\\%03o\" , ( unsigned int ) c ) ;\n else {\n buf [ 0 ] = c ;\n buf [ 1 ] = '\\0' ;\n }\n ( * _bfd_error_handler ) ( _ ( \"%B:%d: Unexpected character `%s' in S-record file\\n\" ) , abfd , lineno , buf ) ;\n bfd_set_error ( bfd_error_bad_value ) ;\n }\n }"}
{"idx": 18008, "target": 0, "func": "static void e1000e_set_ics ( E1000ECore * core , int index , uint32_t val ) {\n trace_e1000e_irq_write_ics ( val ) ;\n e1000e_set_interrupt_cause ( core , val ) ;\n }"}
{"idx": 18009, "target": 0, "func": "void dissect_q931_progress_indicator_ie ( tvbuff_t * tvb , int offset , int len , proto_tree * tree ) {\n guint8 octet ;\n guint8 coding_standard ;\n if ( len == 0 ) return ;\n octet = tvb_get_guint8 ( tvb , offset ) ;\n coding_standard = octet & 0x60 ;\n proto_tree_add_uint ( tree , hf_q931_coding_standard , tvb , offset , 1 , octet ) ;\n if ( coding_standard != Q931_ITU_STANDARDIZED_CODING ) {\n proto_tree_add_item ( tree , hf_q931_progress_indicator_data , tvb , offset , len , ENC_NA ) ;\n return ;\n }\n proto_tree_add_item ( tree , hf_q931_progress_indicator_location , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset += 1 ;\n len -= 1 ;\n if ( len == 0 ) return ;\n proto_tree_add_item ( tree , hf_q931_progress_indicator_description , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n }"}
{"idx": 18010, "target": 1, "func": "static double eqjoinsel_semi ( Oid operator , VariableStatData * vardata1 , VariableStatData * vardata2 , RelOptInfo * inner_rel ) {\n double selec ;\n double nd1 ;\n double nd2 ;\n bool isdefault1 ;\n bool isdefault2 ;\n Form_pg_statistic stats1 = NULL ;\n bool have_mcvs1 = false ;\n Datum * values1 = NULL ;\n int nvalues1 = 0 ;\n float4 * numbers1 = NULL ;\n int nnumbers1 = 0 ;\n bool have_mcvs2 = false ;\n Datum * values2 = NULL ;\n int nvalues2 = 0 ;\n float4 * numbers2 = NULL ;\n int nnumbers2 = 0 ;\n nd1 = get_variable_numdistinct ( vardata1 , & isdefault1 ) ;\n nd2 = get_variable_numdistinct ( vardata2 , & isdefault2 ) ;\n if ( vardata2 -> rel ) nd2 = Min ( nd2 , vardata2 -> rel -> rows ) ;\n nd2 = Min ( nd2 , inner_rel -> rows ) ;\n if ( HeapTupleIsValid ( vardata1 -> statsTuple ) ) {\n stats1 = ( Form_pg_statistic ) GETSTRUCT ( vardata1 -> statsTuple ) ;\n have_mcvs1 = get_attstatsslot ( vardata1 -> statsTuple , vardata1 -> atttype , vardata1 -> atttypmod , STATISTIC_KIND_MCV , InvalidOid , NULL , & values1 , & nvalues1 , & numbers1 , & nnumbers1 ) ;\n }\n if ( HeapTupleIsValid ( vardata2 -> statsTuple ) ) {\n have_mcvs2 = get_attstatsslot ( vardata2 -> statsTuple , vardata2 -> atttype , vardata2 -> atttypmod , STATISTIC_KIND_MCV , InvalidOid , NULL , & values2 , & nvalues2 , & numbers2 , & nnumbers2 ) ;\n }\n if ( have_mcvs1 && have_mcvs2 && OidIsValid ( operator ) ) {\n FmgrInfo eqproc ;\n bool * hasmatch1 ;\n bool * hasmatch2 ;\n double nullfrac1 = stats1 -> stanullfrac ;\n double matchfreq1 , uncertainfrac , uncertain ;\n int i , nmatches , clamped_nvalues2 ;\n clamped_nvalues2 = Min ( nvalues2 , nd2 ) ;\n fmgr_info ( get_opcode ( operator ) , & eqproc ) ;\n hasmatch1 = ( bool * ) palloc0 ( nvalues1 * sizeof ( bool ) ) ;\n hasmatch2 = ( bool * ) palloc0 ( clamped_nvalues2 * sizeof ( bool ) ) ;\n nmatches = 0 ;\n for ( i = 0 ;\n i < nvalues1 ;\n i ++ ) {\n int j ;\n for ( j = 0 ;\n j < clamped_nvalues2 ;\n j ++ ) {\n if ( hasmatch2 [ j ] ) continue ;\n if ( DatumGetBool ( FunctionCall2Coll ( & eqproc , DEFAULT_COLLATION_OID , values1 [ i ] , values2 [ j ] ) ) ) {\n hasmatch1 [ i ] = hasmatch2 [ j ] = true ;\n nmatches ++ ;\n break ;\n }\n }\n }\n matchfreq1 = 0.0 ;\n for ( i = 0 ;\n i < nvalues1 ;\n i ++ ) {\n if ( hasmatch1 [ i ] ) matchfreq1 += numbers1 [ i ] ;\n }\n CLAMP_PROBABILITY ( matchfreq1 ) ;\n pfree ( hasmatch1 ) ;\n pfree ( hasmatch2 ) ;\n if ( ! isdefault1 && ! isdefault2 ) {\n nd1 -= nmatches ;\n nd2 -= nmatches ;\n if ( nd1 <= nd2 || nd2 < 0 ) uncertainfrac = 1.0 ;\n else uncertainfrac = nd2 / nd1 ;\n }\n else uncertainfrac = 0.5 ;\n uncertain = 1.0 - matchfreq1 - nullfrac1 ;\n CLAMP_PROBABILITY ( uncertain ) ;\n selec = matchfreq1 + uncertainfrac * uncertain ;\n }\n else {\n double nullfrac1 = stats1 ? stats1 -> stanullfrac : 0.0 ;\n if ( ! isdefault1 && ! isdefault2 ) {\n if ( nd1 <= nd2 || nd2 < 0 ) selec = 1.0 - nullfrac1 ;\n else selec = ( nd2 / nd1 ) * ( 1.0 - nullfrac1 ) ;\n }\n else selec = 0.5 * ( 1.0 - nullfrac1 ) ;\n }\n if ( have_mcvs1 ) free_attstatsslot ( vardata1 -> atttype , values1 , nvalues1 , numbers1 , nnumbers1 ) ;\n if ( have_mcvs2 ) free_attstatsslot ( vardata2 -> atttype , values2 , nvalues2 , numbers2 , nnumbers2 ) ;\n return selec ;\n }"}
{"idx": 18011, "target": 0, "func": "static int dissect_h245_SEQUENCE_OF_GenericInformation ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h245_SEQUENCE_OF_GenericInformation , SEQUENCE_OF_GenericInformation_sequence_of ) ;\n return offset ;\n }"}
{"idx": 18012, "target": 1, "func": "static gboolean is_link_trusted ( NautilusFile * file , gboolean is_launcher ) {\n GFile * location ;\n gboolean res ;\n if ( ! is_launcher ) {\n return TRUE ;\n }\n if ( nautilus_file_can_execute ( file ) ) {\n return TRUE ;\n }\n res = FALSE ;\n if ( nautilus_file_is_local ( file ) ) {\n location = nautilus_file_get_location ( file ) ;\n res = nautilus_is_in_system_dir ( location ) ;\n g_object_unref ( location ) ;\n }\n return res ;\n }"}
{"idx": 18013, "target": 0, "func": "static void link_info_nautilus_link_read_callback ( GObject * source_object , GAsyncResult * res , gpointer user_data ) {\n LinkInfoReadState * state ;\n gsize file_size ;\n char * file_contents ;\n gboolean result ;\n NautilusDirectory * directory ;\n state = user_data ;\n if ( state -> directory == NULL ) {\n link_info_read_state_free ( state ) ;\n return ;\n }\n directory = nautilus_directory_ref ( state -> directory ) ;\n result = g_file_load_contents_finish ( G_FILE ( source_object ) , res , & file_contents , & file_size , NULL , NULL ) ;\n state -> directory -> details -> link_info_read_state = NULL ;\n async_job_end ( state -> directory , \"link info\" ) ;\n link_info_got_data ( state -> directory , state -> file , result , file_size , file_contents ) ;\n if ( result ) {\n g_free ( file_contents ) ;\n }\n link_info_read_state_free ( state ) ;\n nautilus_directory_unref ( directory ) ;\n }"}
{"idx": 18014, "target": 0, "func": "static int virtio_serial_init_pci ( PCIDevice * pci_dev ) {\n VirtIOPCIProxy * proxy = DO_UPCAST ( VirtIOPCIProxy , pci_dev , pci_dev ) ;\n VirtIODevice * vdev ;\n if ( proxy -> class_code != PCI_CLASS_COMMUNICATION_OTHER && proxy -> class_code != PCI_CLASS_DISPLAY_OTHER && proxy -> class_code != PCI_CLASS_OTHERS ) proxy -> class_code = PCI_CLASS_COMMUNICATION_OTHER ;\n vdev = virtio_serial_init ( & pci_dev -> qdev , proxy -> max_virtserial_ports ) ;\n if ( ! vdev ) {\n return - 1 ;\n }\n virtio_init_pci ( proxy , vdev , PCI_VENDOR_ID_REDHAT_QUMRANET , PCI_DEVICE_ID_VIRTIO_CONSOLE , proxy -> class_code , 0x00 ) ;\n return 0 ;\n }"}
{"idx": 18015, "target": 0, "func": "static bool _try_writable ( hb_blob_t * blob ) {\n if ( blob -> immutable ) return false ;\n if ( blob -> mode == HB_MEMORY_MODE_WRITABLE ) return true ;\n if ( blob -> mode == HB_MEMORY_MODE_READONLY_MAY_MAKE_WRITABLE && _try_writable_inplace ( blob ) ) return true ;\n if ( blob -> mode == HB_MEMORY_MODE_WRITABLE ) return true ;\n DEBUG_MSG_FUNC ( BLOB , blob , \"current data is -> %p\\n\" , blob -> data ) ;\n char * new_data ;\n new_data = ( char * ) malloc ( blob -> length ) ;\n if ( unlikely ( ! new_data ) ) return false ;\n DEBUG_MSG_FUNC ( BLOB , blob , \"dupped successfully -> %p\\n\" , blob -> data ) ;\n memcpy ( new_data , blob -> data , blob -> length ) ;\n _hb_blob_destroy_user_data ( blob ) ;\n blob -> mode = HB_MEMORY_MODE_WRITABLE ;\n blob -> data = new_data ;\n blob -> user_data = new_data ;\n blob -> destroy = free ;\n return true ;\n }"}
{"idx": 18016, "target": 0, "func": "static void dissect_zcl_groups_get_group_membership ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_item * grp_list ;\n proto_tree * grp_list_tree ;\n guint8 count , i ;\n count = tvb_get_guint8 ( tvb , * offset ) ;\n proto_tree_add_uint ( tree , hf_zbee_zcl_groups_group_count , tvb , * offset , 1 , count ) ;\n * offset += 1 ;\n if ( count > 0 ) {\n grp_list = proto_tree_add_item ( tree , hf_zbee_zcl_groups_group_list , tvb , * offset , 2 * count , ENC_NA ) ;\n grp_list_tree = proto_item_add_subtree ( grp_list , ett_zbee_zcl_groups_grp_ctrl ) ;\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n proto_tree_add_item ( grp_list_tree , hf_zbee_zcl_groups_group_id , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n }\n }\n }"}
{"idx": 18017, "target": 0, "func": "static int dissect_h225_AlternateGK ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_AlternateGK , AlternateGK_sequence ) ;\n return offset ;\n }"}
{"idx": 18018, "target": 1, "func": "static void process_rtp_payload ( tvbuff_t * newtvb , packet_info * pinfo , proto_tree * tree , proto_tree * rtp_tree , unsigned int payload_type ) {\n struct _rtp_conversation_info * p_conv_data = NULL ;\n gboolean found_match = FALSE ;\n int payload_len ;\n struct srtp_info * srtp_info ;\n int offset = 0 ;\n payload_len = tvb_length_remaining ( newtvb , offset ) ;\n p_conv_data = ( struct _rtp_conversation_info * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_rtp , 0 ) ;\n if ( p_conv_data && p_conv_data -> srtp_info ) {\n srtp_info = p_conv_data -> srtp_info ;\n payload_len -= srtp_info -> mki_len + srtp_info -> auth_tag_len ;\n # if 0 # error Currently the srtp_info structure contains no cipher data , see packet - sdp . c adding dummy_srtp_info structure if ( p_conv_data -> srtp_info -> encryption_algorithm == SRTP_ENC_ALG_NULL ) {\n if ( rtp_tree ) proto_tree_add_text ( rtp_tree , newtvb , offset , payload_len , \"SRTP Payload with NULL encryption\" ) ;\n }\n else # endif {\n if ( rtp_tree ) proto_tree_add_item ( rtp_tree , hf_srtp_encrypted_payload , newtvb , offset , payload_len , ENC_NA ) ;\n found_match = TRUE ;\n }\n offset += payload_len ;\n if ( srtp_info -> mki_len ) {\n proto_tree_add_item ( rtp_tree , hf_srtp_mki , newtvb , offset , srtp_info -> mki_len , ENC_NA ) ;\n offset += srtp_info -> mki_len ;\n }\n if ( srtp_info -> auth_tag_len ) {\n proto_tree_add_item ( rtp_tree , hf_srtp_auth_tag , newtvb , offset , srtp_info -> auth_tag_len , ENC_NA ) ;\n }\n }\n else if ( p_conv_data && ! p_conv_data -> bta2dp_info && ! p_conv_data -> btvdp_info && payload_type >= PT_UNDF_96 && payload_type <= PT_UNDF_127 ) {\n if ( p_conv_data && p_conv_data -> rtp_dyn_payload ) {\n gchar * payload_type_str = NULL ;\n encoding_name_and_rate_t * encoding_name_and_rate_pt = NULL ;\n encoding_name_and_rate_pt = ( encoding_name_and_rate_t * ) g_hash_table_lookup ( p_conv_data -> rtp_dyn_payload , & payload_type ) ;\n if ( encoding_name_and_rate_pt ) {\n payload_type_str = encoding_name_and_rate_pt -> encoding_name ;\n }\n if ( payload_type_str ) {\n found_match = dissector_try_string ( rtp_dyn_pt_dissector_table , payload_type_str , newtvb , pinfo , tree , NULL ) ;\n if ( found_match == FALSE ) proto_tree_add_item ( rtp_tree , hf_rtp_data , newtvb , 0 , - 1 , ENC_NA ) ;\n return ;\n }\n }\n }\n else if ( p_conv_data && p_conv_data -> bta2dp_info ) {\n tvbuff_t * nexttvb ;\n gint suboffset = 0 ;\n found_match = TRUE ;\n if ( p_conv_data -> bta2dp_info -> content_protection_type == BTAVDTP_CONTENT_PROTECTION_TYPE_SCMS_T ) {\n nexttvb = tvb_new_subset ( newtvb , 0 , 1 , 1 ) ;\n call_dissector ( bta2dp_content_protection_header_scms_t , nexttvb , pinfo , tree ) ;\n suboffset = 1 ;\n }\n nexttvb = tvb_new_subset_remaining ( newtvb , suboffset ) ;\n if ( p_conv_data -> bta2dp_info -> codec_dissector ) call_dissector ( p_conv_data -> bta2dp_info -> codec_dissector , nexttvb , pinfo , tree ) ;\n else call_dissector ( data_handle , nexttvb , pinfo , tree ) ;\n }\n else if ( p_conv_data && p_conv_data -> btvdp_info ) {\n tvbuff_t * nexttvb ;\n gint suboffset = 0 ;\n found_match = TRUE ;\n if ( p_conv_data -> btvdp_info -> content_protection_type == BTAVDTP_CONTENT_PROTECTION_TYPE_SCMS_T ) {\n nexttvb = tvb_new_subset ( newtvb , 0 , 1 , 1 ) ;\n call_dissector ( bta2dp_content_protection_header_scms_t , nexttvb , pinfo , tree ) ;\n suboffset = 1 ;\n }\n nexttvb = tvb_new_subset_remaining ( newtvb , suboffset ) ;\n if ( p_conv_data -> btvdp_info -> codec_dissector ) call_dissector ( p_conv_data -> btvdp_info -> codec_dissector , nexttvb , pinfo , tree ) ;\n else call_dissector ( data_handle , nexttvb , pinfo , tree ) ;\n }\n if ( ! found_match && ! dissector_try_uint ( rtp_pt_dissector_table , payload_type , newtvb , pinfo , tree ) ) proto_tree_add_item ( rtp_tree , hf_rtp_data , newtvb , 0 , - 1 , ENC_NA ) ;\n }"}
{"idx": 18019, "target": 0, "func": "static inline PixelTrait GetPixelBlueTraits ( const Image * restrict image ) {\n return ( image -> channel_map [ BluePixelChannel ] . traits ) ;\n }"}
{"idx": 18020, "target": 0, "func": "static int dissect_h225_T_conferenceGoal ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_T_conferenceGoal , T_conferenceGoal_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 18021, "target": 0, "func": "static ossl_inline t2 * sk_ ## t1 ## _value ( const STACK_OF ( t1 ) * sk , int idx ) {\n return ( t2 * ) OPENSSL_sk_value ( ( const OPENSSL_STACK * ) sk , idx ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new ( sk_ ## t1 ## _compfunc compare ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new ( ( OPENSSL_sk_compfunc ) compare ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_null ( void ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_null ( ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_reserve ( sk_ ## t1 ## _compfunc compare , int n ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_reserve ( ( OPENSSL_sk_compfunc ) compare , n ) ;\n }\n static ossl_inline int sk_ ## t1 ## _reserve ( STACK_OF ( t1 ) * sk , int n ) {\n return OPENSSL_sk_reserve ( ( OPENSSL_STACK * ) sk , n ) ;\n }\n static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 18022, "target": 0, "func": "static uint32_t virtio_balloon_get_features ( VirtIODevice * vdev , uint32_t f ) {\n f |= ( 1 << VIRTIO_BALLOON_F_STATS_VQ ) ;\n return f ;\n }"}
{"idx": 18023, "target": 0, "func": "int64_t TSMimeHdrFieldValueInt64Get ( TSMBuffer bufp , TSMLoc hdr , TSMLoc field , int idx ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( hdr ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( hdr ) == TS_SUCCESS ) ) ;\n sdk_assert ( sdk_sanity_check_field_handle ( field , hdr ) == TS_SUCCESS ) ;\n int value_len ;\n const char * value_str = TSMimeFieldValueGet ( bufp , field , idx , & value_len ) ;\n if ( value_str == nullptr ) {\n return 0 ;\n }\n return mime_parse_int64 ( value_str , value_str + value_len ) ;\n }"}
{"idx": 18024, "target": 0, "func": "void pdo_stmt_init ( TSRMLS_D ) {\n zend_class_entry ce ;\n INIT_CLASS_ENTRY ( ce , \"PDOStatement\" , pdo_dbstmt_functions ) ;\n pdo_dbstmt_ce = zend_register_internal_class ( & ce TSRMLS_CC ) ;\n pdo_dbstmt_ce -> get_iterator = pdo_stmt_iter_get ;\n pdo_dbstmt_ce -> create_object = pdo_dbstmt_new ;\n zend_class_implements ( pdo_dbstmt_ce TSRMLS_CC , 1 , zend_ce_traversable ) ;\n zend_declare_property_null ( pdo_dbstmt_ce , \"queryString\" , sizeof ( \"queryString\" ) - 1 , ZEND_ACC_PUBLIC TSRMLS_CC ) ;\n memcpy ( & pdo_dbstmt_object_handlers , & std_object_handlers , sizeof ( zend_object_handlers ) ) ;\n pdo_dbstmt_object_handlers . write_property = dbstmt_prop_write ;\n pdo_dbstmt_object_handlers . unset_property = dbstmt_prop_delete ;\n pdo_dbstmt_object_handlers . get_method = dbstmt_method_get ;\n pdo_dbstmt_object_handlers . compare_objects = dbstmt_compare ;\n pdo_dbstmt_object_handlers . clone_obj = dbstmt_clone_obj ;\n INIT_CLASS_ENTRY ( ce , \"PDORow\" , pdo_row_functions ) ;\n pdo_row_ce = zend_register_internal_class ( & ce TSRMLS_CC ) ;\n pdo_row_ce -> ce_flags |= ZEND_ACC_FINAL_CLASS ;\n pdo_row_ce -> create_object = pdo_row_new ;\n pdo_row_ce -> serialize = pdo_row_serialize ;\n pdo_row_ce -> unserialize = zend_class_unserialize_deny ;\n }"}
{"idx": 18025, "target": 0, "func": "int libevt_record_values_initialize ( libevt_record_values_t * * record_values , libcerror_error_t * * error ) {\n static char * function = \"libevt_record_values_initialize\" ;\n if ( record_values == NULL ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_ARGUMENTS , LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE , \"%s: invalid record values.\" , function ) ;\n return ( - 1 ) ;\n }\n if ( * record_values != NULL ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_RUNTIME , LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET , \"%s: invalid record values value already set.\" , function ) ;\n return ( - 1 ) ;\n }\n * record_values = memory_allocate_structure ( libevt_record_values_t ) ;\n if ( * record_values == NULL ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_MEMORY , LIBCERROR_MEMORY_ERROR_INSUFFICIENT , \"%s: unable to create record values.\" , function ) ;\n goto on_error ;\n }\n if ( memory_set ( * record_values , 0 , sizeof ( libevt_record_values_t ) ) == NULL ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_MEMORY , LIBCERROR_MEMORY_ERROR_SET_FAILED , \"%s: unable to clear record values.\" , function ) ;\n goto on_error ;\n }\n return ( 1 ) ;\n on_error : if ( * record_values != NULL ) {\n memory_free ( * record_values ) ;\n * record_values = NULL ;\n }\n return ( - 1 ) ;\n }"}
{"idx": 18026, "target": 0, "func": "static void gui_windows_remove_parent ( MAIN_WINDOW_REC * window ) {\n MAIN_WINDOW_REC * new_parent ;\n GSList * tmp ;\n new_parent = mainwindows -> data ;\n for ( tmp = windows ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n WINDOW_REC * rec = tmp -> data ;\n if ( rec -> gui_data != NULL && WINDOW_MAIN ( rec ) == window ) gui_window_reparent ( rec , new_parent ) ;\n }\n }"}
{"idx": 18027, "target": 0, "func": "static void qemu_spice_display_init_one ( QemuConsole * con ) {\n SimpleSpiceDisplay * ssd = g_new0 ( SimpleSpiceDisplay , 1 ) ;\n qemu_spice_display_init_common ( ssd ) ;\n ssd -> qxl . base . sif = & dpy_interface . base ;\n qemu_spice_add_display_interface ( & ssd -> qxl , con ) ;\n assert ( ssd -> worker ) ;\n qemu_spice_create_host_memslot ( ssd ) ;\n ssd -> dcl . ops = & display_listener_ops ;\n ssd -> dcl . con = con ;\n register_displaychangelistener ( & ssd -> dcl ) ;\n }"}
{"idx": 18028, "target": 0, "func": "static void test_select_show_table ( ) {\n MYSQL_STMT * stmt ;\n int rc , i ;\n myheader ( \"test_select_show_table\" ) ;\n stmt = mysql_simple_prepare ( mysql , \"SHOW TABLES FROM mysql\" ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 0 ) ;\n for ( i = 1 ;\n i < 3 ;\n i ++ ) {\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n }\n my_process_stmt_result ( stmt ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 18029, "target": 0, "func": "static char * wv_csp10_opaque_binary_tag ( tvbuff_t * tvb , guint32 offset , guint8 token , guint8 codepage , guint32 * length ) {\n guint32 data_len = tvb_get_guintvar ( tvb , offset , length ) ;\n char * str = NULL ;\n switch ( codepage ) {\n case 0 : switch ( token ) {\n case 0x0B : case 0x0F : case 0x1A : case 0x3C : str = wv_integer_from_opaque ( tvb , offset + * length , data_len ) ;\n break ;\n case 0x11 : str = wv_datetime_from_opaque ( tvb , offset + * length , data_len ) ;\n break ;\n default : break ;\n }\n break ;\n case 1 : switch ( token ) {\n case 0x1C : case 0x32 : str = wv_integer_from_opaque ( tvb , offset + * length , data_len ) ;\n break ;\n default : break ;\n }\n break ;\n case 3 : switch ( token ) {\n case 0x06 : case 0x0C : case 0x0D : case 0x0E : case 0x11 : case 0x12 : case 0x13 : str = wv_integer_from_opaque ( tvb , offset + * length , data_len ) ;\n break ;\n default : break ;\n }\n break ;\n default : break ;\n }\n if ( str == NULL ) {\n str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"(%d bytes of unparsed opaque data)\" , data_len ) ;\n }\n * length += data_len ;\n return str ;\n }"}
{"idx": 18030, "target": 0, "func": "static int ram_init1 ( SysBusDevice * dev ) {\n RamDevice * d = FROM_SYSBUS ( RamDevice , dev ) ;\n memory_region_init_ram ( & d -> ram , OBJECT ( d ) , \"sun4m.ram\" , d -> size ) ;\n vmstate_register_ram_global ( & d -> ram ) ;\n sysbus_init_mmio ( dev , & d -> ram ) ;\n return 0 ;\n }"}
{"idx": 18031, "target": 0, "func": "static const char * array_value ( const char * * array , char key ) {\n for ( ;\n * array ;\n array += 2 ) if ( * * array == key ) return array [ 1 ] ;\n return 0 ;\n }"}
{"idx": 18032, "target": 0, "func": "static char * ini_escape_str ( AVBPrint * dst , const char * src ) {\n int i = 0 ;\n char c = 0 ;\n while ( c = src [ i ++ ] ) {\n switch ( c ) {\n case '\\b' : av_bprintf ( dst , \"%s\" , \"\\\\b\" ) ;\n break ;\n case '\\f' : av_bprintf ( dst , \"%s\" , \"\\\\f\" ) ;\n break ;\n case '\\n' : av_bprintf ( dst , \"%s\" , \"\\\\n\" ) ;\n break ;\n case '\\r' : av_bprintf ( dst , \"%s\" , \"\\\\r\" ) ;\n break ;\n case '\\t' : av_bprintf ( dst , \"%s\" , \"\\\\t\" ) ;\n break ;\n case '\\\\' : case '#' : case '=' : case ':' : av_bprint_chars ( dst , '\\\\' , 1 ) ;\n default : if ( ( unsigned char ) c < 32 ) av_bprintf ( dst , \"\\\\x00%02x\" , c & 0xff ) ;\n else av_bprint_chars ( dst , c , 1 ) ;\n break ;\n }\n }\n return dst -> str ;\n }"}
{"idx": 18033, "target": 0, "func": "void usage_exit ( ) {\n fprintf ( stderr , \"Usage: %s <width> <height> <infile> <outfile> <frame>\\n\" , exec_name ) ;\n exit ( EXIT_FAILURE ) ;\n }"}
{"idx": 18034, "target": 0, "func": "static int amrnb_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AMRContext * p = avctx -> priv_data ;\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n float * buf_out ;\n int i , subframe , ret ;\n float fixed_gain_factor ;\n AMRFixed fixed_sparse = {\n 0 }\n ;\n float spare_vector [ AMR_SUBFRAME_SIZE ] ;\n float synth_fixed_gain ;\n const float * synth_fixed_vector ;\n frame -> nb_samples = AMR_BLOCK_SIZE ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n buf_out = ( float * ) frame -> data [ 0 ] ;\n p -> cur_frame_mode = unpack_bitstream ( p , buf , buf_size ) ;\n if ( p -> cur_frame_mode == NO_DATA ) {\n av_log ( avctx , AV_LOG_ERROR , \"Corrupt bitstream\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( p -> cur_frame_mode == MODE_DTX ) {\n av_log_missing_feature ( avctx , \"dtx mode\" , 1 ) ;\n return AVERROR_PATCHWELCOME ;\n }\n if ( p -> cur_frame_mode == MODE_12k2 ) {\n lsf2lsp_5 ( p ) ;\n }\n else lsf2lsp_3 ( p ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) ff_acelp_lspd2lpc ( p -> lsp [ i ] , p -> lpc [ i ] , 5 ) ;\n for ( subframe = 0 ;\n subframe < 4 ;\n subframe ++ ) {\n const AMRNBSubframe * amr_subframe = & p -> frame . subframe [ subframe ] ;\n decode_pitch_vector ( p , amr_subframe , subframe ) ;\n decode_fixed_sparse ( & fixed_sparse , amr_subframe -> pulses , p -> cur_frame_mode , subframe ) ;\n decode_gains ( p , amr_subframe , p -> cur_frame_mode , subframe , & fixed_gain_factor ) ;\n pitch_sharpening ( p , subframe , p -> cur_frame_mode , & fixed_sparse ) ;\n if ( fixed_sparse . pitch_lag == 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"The file is corrupted, pitch_lag = 0 is not allowed\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n ff_set_fixed_vector ( p -> fixed_vector , & fixed_sparse , 1.0 , AMR_SUBFRAME_SIZE ) ;\n p -> fixed_gain [ 4 ] = ff_amr_set_fixed_gain ( fixed_gain_factor , avpriv_scalarproduct_float_c ( p -> fixed_vector , p -> fixed_vector , AMR_SUBFRAME_SIZE ) / AMR_SUBFRAME_SIZE , p -> prediction_error , energy_mean [ p -> cur_frame_mode ] , energy_pred_fac ) ;\n for ( i = 0 ;\n i < AMR_SUBFRAME_SIZE ;\n i ++ ) p -> excitation [ i ] *= p -> pitch_gain [ 4 ] ;\n ff_set_fixed_vector ( p -> excitation , & fixed_sparse , p -> fixed_gain [ 4 ] , AMR_SUBFRAME_SIZE ) ;\n for ( i = 0 ;\n i < AMR_SUBFRAME_SIZE ;\n i ++ ) p -> excitation [ i ] = truncf ( p -> excitation [ i ] ) ;\n synth_fixed_gain = fixed_gain_smooth ( p , p -> lsf_q [ subframe ] , p -> lsf_avg , p -> cur_frame_mode ) ;\n synth_fixed_vector = anti_sparseness ( p , & fixed_sparse , p -> fixed_vector , synth_fixed_gain , spare_vector ) ;\n if ( synthesis ( p , p -> lpc [ subframe ] , synth_fixed_gain , synth_fixed_vector , & p -> samples_in [ LP_FILTER_ORDER ] , 0 ) ) synthesis ( p , p -> lpc [ subframe ] , synth_fixed_gain , synth_fixed_vector , & p -> samples_in [ LP_FILTER_ORDER ] , 1 ) ;\n postfilter ( p , p -> lpc [ subframe ] , buf_out + subframe * AMR_SUBFRAME_SIZE ) ;\n ff_clear_fixed_vector ( p -> fixed_vector , & fixed_sparse , AMR_SUBFRAME_SIZE ) ;\n update_state ( p ) ;\n }\n ff_acelp_apply_order_2_transfer_function ( buf_out , buf_out , highpass_zeros , highpass_poles , highpass_gain * AMR_SAMPLE_SCALE , p -> high_pass_mem , AMR_BLOCK_SIZE ) ;\n ff_weighted_vector_sumf ( p -> lsf_avg , p -> lsf_avg , p -> lsf_q [ 3 ] , 0.84 , 0.16 , LP_FILTER_ORDER ) ;\n * got_frame_ptr = 1 ;\n return frame_sizes_nb [ p -> cur_frame_mode ] + 1 ;\n }"}
{"idx": 18035, "target": 0, "func": "static int read_header ( ShortenContext * s ) {\n int i , ret ;\n int maxnlpc = 0 ;\n if ( get_bits_long ( & s -> gb , 32 ) != AV_RB32 ( \"ajkg\" ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"missing shorten magic 'ajkg'\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n s -> lpcqoffset = 0 ;\n s -> blocksize = DEFAULT_BLOCK_SIZE ;\n s -> nmean = - 1 ;\n s -> version = get_bits ( & s -> gb , 8 ) ;\n s -> internal_ftype = get_uint ( s , TYPESIZE ) ;\n s -> channels = get_uint ( s , CHANSIZE ) ;\n if ( ! s -> channels ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"No channels reported\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( s -> channels > MAX_CHANNELS ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"too many channels: %d\\n\" , s -> channels ) ;\n s -> channels = 0 ;\n return AVERROR_INVALIDDATA ;\n }\n s -> avctx -> channels = s -> channels ;\n if ( s -> version > 0 ) {\n int skip_bytes ;\n unsigned blocksize ;\n blocksize = get_uint ( s , av_log2 ( DEFAULT_BLOCK_SIZE ) ) ;\n if ( ! blocksize || blocksize > MAX_BLOCKSIZE ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"invalid or unsupported block size: %d\\n\" , blocksize ) ;\n return AVERROR ( EINVAL ) ;\n }\n s -> blocksize = blocksize ;\n maxnlpc = get_uint ( s , LPCQSIZE ) ;\n s -> nmean = get_uint ( s , 0 ) ;\n skip_bytes = get_uint ( s , NSKIPSIZE ) ;\n for ( i = 0 ;\n i < skip_bytes ;\n i ++ ) skip_bits ( & s -> gb , 8 ) ;\n }\n s -> nwrap = FFMAX ( NWRAP , maxnlpc ) ;\n if ( ( ret = allocate_buffers ( s ) ) < 0 ) return ret ;\n if ( ( ret = init_offset ( s ) ) < 0 ) return ret ;\n if ( s -> version > 1 ) s -> lpcqoffset = V2LPCQOFFSET ;\n if ( get_ur_golomb_shorten ( & s -> gb , FNSIZE ) != FN_VERBATIM ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"missing verbatim section at beginning of stream\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n s -> header_size = get_ur_golomb_shorten ( & s -> gb , VERBATIM_CKSIZE_SIZE ) ;\n if ( s -> header_size >= OUT_BUFFER_SIZE || s -> header_size < CANONICAL_HEADER_SIZE ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"header is wrong size: %d\\n\" , s -> header_size ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( i = 0 ;\n i < s -> header_size ;\n i ++ ) s -> header [ i ] = ( char ) get_ur_golomb_shorten ( & s -> gb , VERBATIM_BYTE_SIZE ) ;\n if ( ( ret = decode_wave_header ( s -> avctx , s -> header , s -> header_size ) ) < 0 ) return ret ;\n s -> cur_chan = 0 ;\n s -> bitshift = 0 ;\n s -> got_header = 1 ;\n return 0 ;\n }"}
{"idx": 18036, "target": 0, "func": "void TSVConnReenable ( TSVConn vconn ) {\n NetVConnection * vc = reinterpret_cast < NetVConnection * > ( vconn ) ;\n SSLNetVConnection * ssl_vc = dynamic_cast < SSLNetVConnection * > ( vc ) ;\n if ( ssl_vc != nullptr ) {\n EThread * eth = this_ethread ( ) ;\n bool reschedule = eth != ssl_vc -> thread ;\n if ( ! reschedule ) {\n MUTEX_TRY_LOCK ( trylock , ssl_vc -> mutex , eth ) ;\n if ( trylock . is_locked ( ) ) {\n ssl_vc -> reenable ( ssl_vc -> nh ) ;\n }\n else {\n reschedule = true ;\n }\n }\n if ( reschedule ) {\n ssl_vc -> thread -> schedule_imm ( new TSSslCallback ( ssl_vc ) ) ;\n }\n }\n }"}
{"idx": 18037, "target": 0, "func": "byte * _gcry_mpi_get_buffer ( gcry_mpi_t a , unsigned int fill_le , unsigned int * r_nbytes , int * sign ) {\n return do_get_buffer ( a , fill_le , r_nbytes , sign , 0 ) ;\n }"}
{"idx": 18038, "target": 0, "func": "void ff_add_png_paeth_prediction ( uint8_t * dst , uint8_t * src , uint8_t * top , int w , int bpp ) {\n int i ;\n for ( i = 0 ;\n i < w ;\n i ++ ) {\n int a , b , c , p , pa , pb , pc ;\n a = dst [ i - bpp ] ;\n b = top [ i ] ;\n c = top [ i - bpp ] ;\n p = b - c ;\n pc = a - c ;\n pa = abs ( p ) ;\n pb = abs ( pc ) ;\n pc = abs ( p + pc ) ;\n if ( pa <= pb && pa <= pc ) p = a ;\n else if ( pb <= pc ) p = b ;\n else p = c ;\n dst [ i ] = p + src [ i ] ;\n }\n }"}
{"idx": 18039, "target": 0, "func": "void TSFetchHeaderAdd ( TSFetchSM fetch_sm , const char * name , int name_len , const char * value , int value_len ) {\n sdk_assert ( sdk_sanity_check_fetch_sm ( fetch_sm ) == TS_SUCCESS ) ;\n ( ( FetchSM * ) fetch_sm ) -> ext_add_header ( name , name_len , value , value_len ) ;\n }"}
{"idx": 18040, "target": 0, "func": "static hb_ ## name ## _t * _hb_ ## name ## _reference ( const hb_ ## name ## _t * l ) {\n hb_ ## name ## _t * c = ( hb_ ## name ## _t * ) calloc ( 1 , sizeof ( hb_ ## name ## _t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * l ;\n return c ;\n }\n static void _hb_ ## name ## _destroy ( hb_ ## name ## _t * l ) {\n free ( l ) ;\n }\n HB_DEFINE_BOXED_TYPE ( name , _hb_ ## name ## _reference , _hb_ ## name ## _destroy ) ;\n HB_DEFINE_OBJECT_TYPE ( buffer ) HB_DEFINE_OBJECT_TYPE ( blob ) HB_DEFINE_OBJECT_TYPE ( face ) HB_DEFINE_OBJECT_TYPE ( font ) HB_DEFINE_OBJECT_TYPE ( font_funcs ) HB_DEFINE_OBJECT_TYPE ( set ) HB_DEFINE_OBJECT_TYPE ( shape_plan ) HB_DEFINE_OBJECT_TYPE ( unicode_funcs ) HB_DEFINE_VALUE_TYPE ( feature )"}
{"idx": 18041, "target": 1, "func": "void vp9_encode_intra_block_plane ( MACROBLOCK * x , BLOCK_SIZE bsize , int plane ) {\n const MACROBLOCKD * const xd = & x -> e_mbd ;\n struct encode_b_args arg = {\n x , NULL , & xd -> mi [ 0 ] -> mbmi . skip }\n ;\n vp9_foreach_transformed_block_in_plane ( xd , bsize , plane , encode_block_intra , & arg ) ;\n }"}
{"idx": 18042, "target": 0, "func": "void ps2_keyboard_set_translation ( void * opaque , int mode ) {\n PS2KbdState * s = ( PS2KbdState * ) opaque ;\n trace_ps2_keyboard_set_translation ( opaque , mode ) ;\n s -> translate = mode ;\n }"}
{"idx": 18043, "target": 0, "func": "static int read_compressed_image ( Gif_Image * gfi , Gif_Reader * grr , int read_flags ) {\n if ( grr -> is_record ) {\n const uint32_t image_pos = grr -> pos ;\n ++ grr -> pos ;\n while ( grr -> pos < grr -> length ) {\n int amt = grr -> v [ grr -> pos ] ;\n grr -> pos += amt + 1 ;\n if ( amt == 0 ) break ;\n }\n if ( grr -> pos > grr -> length ) grr -> pos = grr -> length ;\n gfi -> compressed_len = grr -> pos - image_pos ;\n gfi -> compressed_errors = 0 ;\n if ( read_flags & GIF_READ_CONST_RECORD ) {\n gfi -> compressed = ( uint8_t * ) & grr -> v [ image_pos ] ;\n gfi -> free_compressed = 0 ;\n }\n else {\n gfi -> compressed = Gif_NewArray ( uint8_t , gfi -> compressed_len ) ;\n gfi -> free_compressed = Gif_Free ;\n if ( ! gfi -> compressed ) return 0 ;\n memcpy ( gfi -> compressed , & grr -> v [ image_pos ] , gfi -> compressed_len ) ;\n }\n }\n else {\n uint32_t comp_cap = 1024 ;\n uint32_t comp_len ;\n uint8_t * comp = Gif_NewArray ( uint8_t , comp_cap ) ;\n int i ;\n if ( ! comp ) return 0 ;\n i = gifgetbyte ( grr ) ;\n comp [ 0 ] = i ;\n comp_len = 1 ;\n i = gifgetbyte ( grr ) ;\n while ( i > 0 ) {\n if ( comp_len + i + 2 > comp_cap ) {\n comp_cap *= 2 ;\n Gif_ReArray ( comp , uint8_t , comp_cap ) ;\n if ( ! comp ) return 0 ;\n }\n comp [ comp_len ] = i ;\n gifgetblock ( comp + comp_len + 1 , i , grr ) ;\n comp_len += i + 1 ;\n i = gifgetbyte ( grr ) ;\n }\n comp [ comp_len ++ ] = 0 ;\n gfi -> compressed_len = comp_len ;\n gfi -> compressed_errors = 0 ;\n gfi -> compressed = comp ;\n gfi -> free_compressed = Gif_Free ;\n }\n return 1 ;\n }"}
{"idx": 18044, "target": 0, "func": "static void imc_read_level_coeffs ( IMCContext * q , int stream_format_code , int * levlCoeffs ) {\n int i ;\n VLC * hufftab [ 4 ] ;\n int start = 0 ;\n const uint8_t * cb_sel ;\n int s ;\n s = stream_format_code >> 1 ;\n hufftab [ 0 ] = & huffman_vlc [ s ] [ 0 ] ;\n hufftab [ 1 ] = & huffman_vlc [ s ] [ 1 ] ;\n hufftab [ 2 ] = & huffman_vlc [ s ] [ 2 ] ;\n hufftab [ 3 ] = & huffman_vlc [ s ] [ 3 ] ;\n cb_sel = imc_cb_select [ s ] ;\n if ( stream_format_code & 4 ) start = 1 ;\n if ( start ) levlCoeffs [ 0 ] = get_bits ( & q -> gb , 7 ) ;\n for ( i = start ;\n i < BANDS ;\n i ++ ) {\n levlCoeffs [ i ] = get_vlc2 ( & q -> gb , hufftab [ cb_sel [ i ] ] -> table , hufftab [ cb_sel [ i ] ] -> bits , 2 ) ;\n if ( levlCoeffs [ i ] == 17 ) levlCoeffs [ i ] += get_bits ( & q -> gb , 4 ) ;\n }\n }"}
{"idx": 18045, "target": 0, "func": "void tvb_composite_prepend ( tvbuff_t * tvb , tvbuff_t * member ) {\n struct tvb_composite * composite_tvb = ( struct tvb_composite * ) tvb ;\n tvb_comp_t * composite ;\n DISSECTOR_ASSERT ( tvb && ! tvb -> initialized ) ;\n DISSECTOR_ASSERT ( tvb -> ops == & tvb_composite_ops ) ;\n DISSECTOR_ASSERT ( member -> length ) ;\n composite = & composite_tvb -> composite ;\n composite -> tvbs = g_slist_prepend ( composite -> tvbs , member ) ;\n }"}
{"idx": 18046, "target": 0, "func": "static int dissect_h225_FeatureDescriptor ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 852 \"./asn1/h225/h225.cnf\" void * priv_data = actx -> private_data ;\n actx -> private_data = gef_ctx_alloc ( NULL , \"FeatureDescriptor\" ) ;\n offset = dissect_h225_GenericData ( tvb , offset , actx , tree , hf_index ) ;\n # line 855 \"./asn1/h225/h225.cnf\" actx -> private_data = priv_data ;\n return offset ;\n }"}
{"idx": 18047, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PrefsFunctionalTest , TestImageContentSettings ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/settings/image_page.html\" ) ) ;\n bool result = false ;\n std : : string script = \"for (i=0;\n i < document.images.length;\n i++) {\n\" \" if ((document.images[i].naturalWidth != 0) &&\" \" (document.images[i].naturalHeight != 0)) {\n\" \" window.domAutomationController.send(true);\n\" \" }\n\" \"}\n\" \"window.domAutomationController.send(false);\n\" ;\n EXPECT_TRUE ( content : : ExecuteScriptAndExtractBool ( browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) , script , & result ) ) ;\n EXPECT_TRUE ( result ) ;\n browser ( ) -> profile ( ) -> GetPrefs ( ) -> SetInteger ( content_settings : : WebsiteSettingsRegistry : : GetInstance ( ) -> Get ( CONTENT_SETTINGS_TYPE_IMAGES ) -> default_value_pref_name ( ) , CONTENT_SETTING_BLOCK ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/settings/image_page.html\" ) ) ;\n result = false ;\n EXPECT_TRUE ( content : : ExecuteScriptAndExtractBool ( browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) , script , & result ) ) ;\n EXPECT_FALSE ( result ) ;\n }"}
{"idx": 18048, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ClientHintsBrowserTest , ClientHintsLifetimeNotPersistedJavaScriptBlocked ) {\n ContentSettingsForOneType host_settings ;\n ui_test_utils : : NavigateToURL ( browser ( ) , without_accept_ch_without_lifetime_url ( ) ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> SetContentSettingDefaultScope ( accept_ch_with_lifetime_url ( ) , GURL ( ) , CONTENT_SETTINGS_TYPE_JAVASCRIPT , std : : string ( ) , CONTENT_SETTING_BLOCK ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , accept_ch_with_lifetime_url ( ) ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> GetSettingsForOneType ( CONTENT_SETTINGS_TYPE_CLIENT_HINTS , std : : string ( ) , & host_settings ) ;\n EXPECT_EQ ( 0u , host_settings . size ( ) ) ;\n VerifyContentSettingsNotNotified ( ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> SetContentSettingDefaultScope ( accept_ch_with_lifetime_url ( ) , GURL ( ) , CONTENT_SETTINGS_TYPE_JAVASCRIPT , std : : string ( ) , CONTENT_SETTING_ALLOW ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , accept_ch_with_lifetime_url ( ) ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> GetSettingsForOneType ( CONTENT_SETTINGS_TYPE_CLIENT_HINTS , std : : string ( ) , & host_settings ) ;\n EXPECT_EQ ( 1u , host_settings . size ( ) ) ;\n }"}
{"idx": 18049, "target": 0, "func": "static inline void e1000e_read_ext_rx_descr ( E1000ECore * core , uint8_t * desc , hwaddr * buff_addr ) {\n union e1000_rx_desc_extended * d = ( union e1000_rx_desc_extended * ) desc ;\n * buff_addr = le64_to_cpu ( d -> read . buffer_addr ) ;\n }"}
{"idx": 18050, "target": 0, "func": "static inline int wmv2_decode_inter_block ( Wmv2Context * w , int16_t * block , int n , int cbp ) {\n MpegEncContext * const s = & w -> s ;\n static const int sub_cbp_table [ 3 ] = {\n 2 , 3 , 1 }\n ;\n int sub_cbp ;\n if ( ! cbp ) {\n s -> block_last_index [ n ] = - 1 ;\n return 0 ;\n }\n if ( w -> per_block_abt ) w -> abt_type = decode012 ( & s -> gb ) ;\n w -> abt_type_table [ n ] = w -> abt_type ;\n if ( w -> abt_type ) {\n const uint8_t * scantable = w -> abt_scantable [ w -> abt_type - 1 ] . scantable ;\n sub_cbp = sub_cbp_table [ decode012 ( & s -> gb ) ] ;\n if ( sub_cbp & 1 ) {\n if ( ff_msmpeg4_decode_block ( s , block , n , 1 , scantable ) < 0 ) return - 1 ;\n }\n if ( sub_cbp & 2 ) {\n if ( ff_msmpeg4_decode_block ( s , w -> abt_block2 [ n ] , n , 1 , scantable ) < 0 ) return - 1 ;\n }\n s -> block_last_index [ n ] = 63 ;\n return 0 ;\n }\n else {\n return ff_msmpeg4_decode_block ( s , block , n , 1 , s -> inter_scantable . permutated ) ;\n }\n }"}
{"idx": 18051, "target": 0, "func": "void mct_close_log ( ) {\n if ( ! mct_log_file ) return ;\n my_fclose ( mct_log_file , MYF ( 0 ) ) ;\n mct_log_file = NULL ;\n }"}
{"idx": 18052, "target": 0, "func": "int X509_verify ( X509 * a , EVP_PKEY * r ) {\n if ( X509_ALGOR_cmp ( a -> sig_alg , a -> cert_info -> signature ) ) return 0 ;\n return ( ASN1_item_verify ( ASN1_ITEM_rptr ( X509_CINF ) , a -> sig_alg , a -> signature , a -> cert_info , r ) ) ;\n }"}
{"idx": 18053, "target": 0, "func": "static void arm_mptimer_class_init ( ObjectClass * klass , void * data ) {\n DeviceClass * dc = DEVICE_CLASS ( klass ) ;\n SysBusDeviceClass * sbc = SYS_BUS_DEVICE_CLASS ( klass ) ;\n sbc -> init = arm_mptimer_init ;\n dc -> vmsd = & vmstate_arm_mptimer ;\n dc -> reset = arm_mptimer_reset ;\n dc -> no_user = 1 ;\n dc -> props = arm_mptimer_properties ;\n }"}
{"idx": 18054, "target": 0, "func": "uint32_t pcnet_ioport_readl ( void * opaque , uint32_t addr ) {\n PCNetState * s = opaque ;\n uint32_t val = - 1 ;\n pcnet_poll_timer ( s ) ;\n if ( BCR_DWIO ( s ) ) {\n switch ( addr & 0x0f ) {\n case 0x00 : val = pcnet_csr_readw ( s , s -> rap ) ;\n break ;\n case 0x04 : val = s -> rap ;\n break ;\n case 0x08 : pcnet_s_reset ( s ) ;\n val = 0 ;\n break ;\n case 0x0c : val = pcnet_bcr_readw ( s , s -> rap ) ;\n break ;\n }\n }\n pcnet_update_irq ( s ) ;\n # ifdef PCNET_DEBUG_IO printf ( \"pcnet_ioport_readl addr=0x%08x val=0x%08x\\n\" , addr , val ) ;\n # endif return val ;\n }"}
{"idx": 18055, "target": 1, "func": "static inline void free_static_shapers ( void ) {\n if ( unlikely ( static_shapers != all_shapers ) ) free ( ( void * ) static_shapers ) ;\n }"}
{"idx": 18056, "target": 0, "func": "static cmsBool Type_CrdInfo_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) {\n cmsMLU * mlu = ( cmsMLU * ) Ptr ;\n if ( ! WriteCountAndSting ( self , io , mlu , \"nm\" ) ) goto Error ;\n if ( ! WriteCountAndSting ( self , io , mlu , \"#0\" ) ) goto Error ;\n if ( ! WriteCountAndSting ( self , io , mlu , \"#1\" ) ) goto Error ;\n if ( ! WriteCountAndSting ( self , io , mlu , \"#2\" ) ) goto Error ;\n if ( ! WriteCountAndSting ( self , io , mlu , \"#3\" ) ) goto Error ;\n return TRUE ;\n Error : return FALSE ;\n cmsUNUSED_PARAMETER ( nItems ) ;\n }"}
{"idx": 18057, "target": 1, "func": "extern int name ( int , locale_t ) __THROW __exctype_l ( isalnum_l ) ;\n __exctype_l ( isalpha_l )"}
{"idx": 18058, "target": 0, "func": "SPL_METHOD ( SplFileObject , fputcsv ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char delimiter = intern -> u . file . delimiter , enclosure = intern -> u . file . enclosure , escape = intern -> u . file . escape ;\n char * delim = NULL , * enclo = NULL , * esc = NULL ;\n int d_len = 0 , e_len = 0 , esc_len = 0 , ret ;\n zval * fields = NULL ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"a|sss\" , & fields , & delim , & d_len , & enclo , & e_len , & esc , & esc_len ) == SUCCESS ) {\n switch ( ZEND_NUM_ARGS ( ) ) {\n case 4 : if ( esc_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"escape must be a character\" ) ;\n RETURN_FALSE ;\n }\n escape = esc [ 0 ] ;\n case 3 : if ( e_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"enclosure must be a character\" ) ;\n RETURN_FALSE ;\n }\n enclosure = enclo [ 0 ] ;\n case 2 : if ( d_len != 1 ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"delimiter must be a character\" ) ;\n RETURN_FALSE ;\n }\n delimiter = delim [ 0 ] ;\n case 1 : case 0 : break ;\n }\n ret = php_fputcsv ( intern -> u . file . stream , fields , delimiter , enclosure , escape TSRMLS_CC ) ;\n RETURN_LONG ( ret ) ;\n }\n }"}
{"idx": 18059, "target": 0, "func": "static void test_cursors_with_procedure ( ) {\n const char * queries [ ] = {\n \"SELECT * FROM t1 procedure analyse()\" }\n ;\n myheader ( \"test_cursors_with_procedure\" ) ;\n fetch_n ( queries , sizeof ( queries ) / sizeof ( * queries ) , USE_ROW_BY_ROW_FETCH ) ;\n fetch_n ( queries , sizeof ( queries ) / sizeof ( * queries ) , USE_STORE_RESULT ) ;\n }"}
{"idx": 18060, "target": 0, "func": "static int dissect_h225_FacilityReason ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 593 \"./asn1/h225/h225.cnf\" gint32 value ;\n h225_packet_info * h225_pi ;\n h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_FacilityReason , FacilityReason_choice , & value ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> reason = value ;\n }\n return offset ;\n }"}
{"idx": 18061, "target": 0, "func": "vpx_codec_err_t vp9_set_reference_dec ( VP9_COMMON * cm , VP9_REFFRAME ref_frame_flag , YV12_BUFFER_CONFIG * sd ) {\n RefBuffer * ref_buf = NULL ;\n if ( ref_frame_flag == VP9_LAST_FLAG ) {\n ref_buf = & cm -> frame_refs [ 0 ] ;\n }\n else if ( ref_frame_flag == VP9_GOLD_FLAG ) {\n ref_buf = & cm -> frame_refs [ 1 ] ;\n }\n else if ( ref_frame_flag == VP9_ALT_FLAG ) {\n ref_buf = & cm -> frame_refs [ 2 ] ;\n }\n else {\n vpx_internal_error ( & cm -> error , VPX_CODEC_ERROR , \"Invalid reference frame\" ) ;\n return cm -> error . error_code ;\n }\n if ( ! equal_dimensions ( ref_buf -> buf , sd ) ) {\n vpx_internal_error ( & cm -> error , VPX_CODEC_ERROR , \"Incorrect buffer dimensions\" ) ;\n }\n else {\n int * ref_fb_ptr = & ref_buf -> idx ;\n const int free_fb = get_free_fb ( cm ) ;\n cm -> frame_bufs [ free_fb ] . ref_count -- ;\n ref_cnt_fb ( cm -> frame_bufs , ref_fb_ptr , free_fb ) ;\n ref_buf -> buf = & cm -> frame_bufs [ * ref_fb_ptr ] . buf ;\n vp8_yv12_copy_frame ( sd , ref_buf -> buf ) ;\n }\n return cm -> error . error_code ;\n }"}
{"idx": 18062, "target": 0, "func": "PyObject * PyString_Encode ( const char * s , Py_ssize_t size , const char * encoding , const char * errors ) {\n PyObject * v , * str ;\n str = PyString_FromStringAndSize ( s , size ) ;\n if ( str == NULL ) return NULL ;\n v = PyString_AsEncodedString ( str , encoding , errors ) ;\n Py_DECREF ( str ) ;\n return v ;\n }"}
{"idx": 18063, "target": 0, "func": "static void update_alt_ref_frame_stats ( VP8_COMP * cpi ) {\n VP8_COMMON * cm = & cpi -> common ;\n if ( ! cpi -> auto_gold ) cpi -> frames_till_gf_update_due = DEFAULT_GF_INTERVAL ;\n if ( ( cpi -> pass != 2 ) && cpi -> frames_till_gf_update_due ) {\n cpi -> current_gf_interval = cpi -> frames_till_gf_update_due ;\n cpi -> gf_overspend_bits += cpi -> projected_frame_size ;\n cpi -> non_gf_bitrate_adjustment = cpi -> gf_overspend_bits / cpi -> frames_till_gf_update_due ;\n }\n vpx_memset ( cpi -> gf_active_flags , 1 , ( cm -> mb_rows * cm -> mb_cols ) ) ;\n cpi -> gf_active_count = cm -> mb_rows * cm -> mb_cols ;\n cpi -> frames_since_golden = 0 ;\n cpi -> source_alt_ref_pending = 0 ;\n cpi -> source_alt_ref_active = 1 ;\n }"}
{"idx": 18064, "target": 0, "func": "void proto_reg_handoff_zbee_zcl_ota ( void ) {\n dissector_handle_t ota_handle ;\n ota_handle = find_dissector ( ZBEE_PROTOABBREV_ZCL_OTA ) ;\n dissector_add_uint ( \"zbee.zcl.cluster\" , ZBEE_ZCL_CID_OTA_UPGRADE , ota_handle ) ;\n zbee_zcl_init_cluster ( proto_zbee_zcl_ota , ett_zbee_zcl_ota , ZBEE_ZCL_CID_OTA_UPGRADE , hf_zbee_zcl_ota_attr_id , hf_zbee_zcl_ota_srv_rx_cmd_id , hf_zbee_zcl_ota_srv_tx_cmd_id , ( zbee_zcl_fn_attr_data ) dissect_zcl_ota_attr_data ) ;\n }"}
{"idx": 18065, "target": 0, "func": "static int parse_stream_params ( struct VpxEncoderConfig * global , struct stream_state * stream , char * * argv ) {\n char * * argi , * * argj ;\n struct arg arg ;\n static const arg_def_t * * ctrl_args = no_args ;\n static const int * ctrl_args_map = NULL ;\n struct stream_config * config = & stream -> config ;\n int eos_mark_found = 0 ;\n # if CONFIG_VP9 && CONFIG_VP9_HIGHBITDEPTH int test_16bit_internal = 0 ;\n # endif if ( 0 ) {\n # if CONFIG_VP8_ENCODER }\n else if ( strcmp ( global -> codec -> name , \"vp8\" ) == 0 ) {\n ctrl_args = vp8_args ;\n ctrl_args_map = vp8_arg_ctrl_map ;\n # endif # if CONFIG_VP9_ENCODER }\n else if ( strcmp ( global -> codec -> name , \"vp9\" ) == 0 ) {\n ctrl_args = vp9_args ;\n ctrl_args_map = vp9_arg_ctrl_map ;\n # endif }\n for ( argi = argj = argv ;\n ( * argj = * argi ) ;\n argi += arg . argv_step ) {\n arg . argv_step = 1 ;\n if ( eos_mark_found ) {\n argj ++ ;\n continue ;\n }\n else if ( ! strcmp ( * argj , \"--\" ) ) {\n eos_mark_found = 1 ;\n continue ;\n }\n if ( 0 ) {\n }\n else if ( arg_match ( & arg , & outputfile , argi ) ) {\n config -> out_fn = arg . val ;\n }\n else if ( arg_match ( & arg , & fpf_name , argi ) ) {\n config -> stats_fn = arg . val ;\n # if CONFIG_FP_MB_STATS }\n else if ( arg_match ( & arg , & fpmbf_name , argi ) ) {\n config -> fpmb_stats_fn = arg . val ;\n # endif }\n else if ( arg_match ( & arg , & use_ivf , argi ) ) {\n config -> write_webm = 0 ;\n }\n else if ( arg_match ( & arg , & threads , argi ) ) {\n config -> cfg . g_threads = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & profile , argi ) ) {\n config -> cfg . g_profile = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & width , argi ) ) {\n config -> cfg . g_w = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & height , argi ) ) {\n config -> cfg . g_h = arg_parse_uint ( & arg ) ;\n # if CONFIG_VP9 && CONFIG_VP9_HIGHBITDEPTH }\n else if ( arg_match ( & arg , & bitdeptharg , argi ) ) {\n config -> cfg . g_bit_depth = arg_parse_enum_or_int ( & arg ) ;\n }\n else if ( arg_match ( & arg , & inbitdeptharg , argi ) ) {\n config -> cfg . g_input_bit_depth = arg_parse_uint ( & arg ) ;\n # endif # if CONFIG_WEBM_IO }\n else if ( arg_match ( & arg , & stereo_mode , argi ) ) {\n config -> stereo_fmt = arg_parse_enum_or_int ( & arg ) ;\n # endif }\n else if ( arg_match ( & arg , & timebase , argi ) ) {\n config -> cfg . g_timebase = arg_parse_rational ( & arg ) ;\n validate_positive_rational ( arg . name , & config -> cfg . g_timebase ) ;\n }\n else if ( arg_match ( & arg , & error_resilient , argi ) ) {\n config -> cfg . g_error_resilient = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & lag_in_frames , argi ) ) {\n config -> cfg . g_lag_in_frames = arg_parse_uint ( & arg ) ;\n if ( global -> deadline == VPX_DL_REALTIME && config -> cfg . g_lag_in_frames != 0 ) {\n warn ( \"non-zero %s option ignored in realtime mode.\\n\" , arg . name ) ;\n config -> cfg . g_lag_in_frames = 0 ;\n }\n }\n else if ( arg_match ( & arg , & dropframe_thresh , argi ) ) {\n config -> cfg . rc_dropframe_thresh = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & resize_allowed , argi ) ) {\n config -> cfg . rc_resize_allowed = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & resize_width , argi ) ) {\n config -> cfg . rc_scaled_width = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & resize_height , argi ) ) {\n config -> cfg . rc_scaled_height = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & resize_up_thresh , argi ) ) {\n config -> cfg . rc_resize_up_thresh = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & resize_down_thresh , argi ) ) {\n config -> cfg . rc_resize_down_thresh = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & end_usage , argi ) ) {\n config -> cfg . rc_end_usage = arg_parse_enum_or_int ( & arg ) ;\n }\n else if ( arg_match ( & arg , & target_bitrate , argi ) ) {\n config -> cfg . rc_target_bitrate = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & min_quantizer , argi ) ) {\n config -> cfg . rc_min_quantizer = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & max_quantizer , argi ) ) {\n config -> cfg . rc_max_quantizer = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & undershoot_pct , argi ) ) {\n config -> cfg . rc_undershoot_pct = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & overshoot_pct , argi ) ) {\n config -> cfg . rc_overshoot_pct = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & buf_sz , argi ) ) {\n config -> cfg . rc_buf_sz = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & buf_initial_sz , argi ) ) {\n config -> cfg . rc_buf_initial_sz = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & buf_optimal_sz , argi ) ) {\n config -> cfg . rc_buf_optimal_sz = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & bias_pct , argi ) ) {\n config -> cfg . rc_2pass_vbr_bias_pct = arg_parse_uint ( & arg ) ;\n if ( global -> passes < 2 ) warn ( \"option %s ignored in one-pass mode.\\n\" , arg . name ) ;\n }\n else if ( arg_match ( & arg , & minsection_pct , argi ) ) {\n config -> cfg . rc_2pass_vbr_minsection_pct = arg_parse_uint ( & arg ) ;\n if ( global -> passes < 2 ) warn ( \"option %s ignored in one-pass mode.\\n\" , arg . name ) ;\n }\n else if ( arg_match ( & arg , & maxsection_pct , argi ) ) {\n config -> cfg . rc_2pass_vbr_maxsection_pct = arg_parse_uint ( & arg ) ;\n if ( global -> passes < 2 ) warn ( \"option %s ignored in one-pass mode.\\n\" , arg . name ) ;\n }\n else if ( arg_match ( & arg , & kf_min_dist , argi ) ) {\n config -> cfg . kf_min_dist = arg_parse_uint ( & arg ) ;\n }\n else if ( arg_match ( & arg , & kf_max_dist , argi ) ) {\n config -> cfg . kf_max_dist = arg_parse_uint ( & arg ) ;\n config -> have_kf_max_dist = 1 ;\n }\n else if ( arg_match ( & arg , & kf_disabled , argi ) ) {\n config -> cfg . kf_mode = VPX_KF_DISABLED ;\n # if CONFIG_VP9 && CONFIG_VP9_HIGHBITDEPTH }\n else if ( arg_match ( & arg , & test16bitinternalarg , argi ) ) {\n if ( strcmp ( global -> codec -> name , \"vp9\" ) == 0 ) {\n test_16bit_internal = 1 ;\n }\n # endif }\n else {\n int i , match = 0 ;\n for ( i = 0 ;\n ctrl_args [ i ] ;\n i ++ ) {\n if ( arg_match ( & arg , ctrl_args [ i ] , argi ) ) {\n int j ;\n match = 1 ;\n for ( j = 0 ;\n j < config -> arg_ctrl_cnt ;\n j ++ ) if ( ctrl_args_map != NULL && config -> arg_ctrls [ j ] [ 0 ] == ctrl_args_map [ i ] ) break ;\n assert ( j < ( int ) ARG_CTRL_CNT_MAX ) ;\n if ( ctrl_args_map != NULL && j < ( int ) ARG_CTRL_CNT_MAX ) {\n config -> arg_ctrls [ j ] [ 0 ] = ctrl_args_map [ i ] ;\n config -> arg_ctrls [ j ] [ 1 ] = arg_parse_enum_or_int ( & arg ) ;\n if ( j == config -> arg_ctrl_cnt ) config -> arg_ctrl_cnt ++ ;\n }\n }\n }\n if ( ! match ) argj ++ ;\n }\n }\n # if CONFIG_VP9 && CONFIG_VP9_HIGHBITDEPTH if ( strcmp ( global -> codec -> name , \"vp9\" ) == 0 ) {\n config -> use_16bit_internal = test_16bit_internal | ( config -> cfg . g_profile > 1 ) ;\n }\n # endif return eos_mark_found ;\n }"}
{"idx": 18066, "target": 0, "func": "int main ( ) {\n fprintf ( stderr , \"libxml was not compiled with thread or catalog support\\n\" ) ;\n return ( 0 ) ;\n }"}
{"idx": 18067, "target": 0, "func": "int event_haveevents ( struct event_base * base ) {\n return ( base -> event_count > 0 ) ;\n }"}
{"idx": 18068, "target": 0, "func": "gboolean logcat_text_thread_dump_open ( wtap_dumper * wdh , int * err _U_ ) {\n struct dumper_t * dumper ;\n dumper = ( struct dumper_t * ) g_malloc ( sizeof ( struct dumper_t ) ) ;\n dumper -> type = DUMP_THREAD ;\n wdh -> priv = dumper ;\n wdh -> subtype_write = logcat_dump_text ;\n wdh -> subtype_close = NULL ;\n return TRUE ;\n }"}
{"idx": 18069, "target": 0, "func": "ECPKPARAMETERS * ec_asn1_group2pkparameters ( const EC_GROUP * group , ECPKPARAMETERS * params ) {\n int ok = 1 , tmp ;\n ECPKPARAMETERS * ret = params ;\n if ( ret == NULL ) {\n if ( ( ret = ECPKPARAMETERS_new ( ) ) == NULL ) {\n ECerr ( EC_F_EC_ASN1_GROUP2PKPARAMETERS , ERR_R_MALLOC_FAILURE ) ;\n return NULL ;\n }\n }\n else {\n if ( ret -> type == 0 && ret -> value . named_curve ) ASN1_OBJECT_free ( ret -> value . named_curve ) ;\n else if ( ret -> type == 1 && ret -> value . parameters ) ECPARAMETERS_free ( ret -> value . parameters ) ;\n }\n if ( EC_GROUP_get_asn1_flag ( group ) ) {\n tmp = EC_GROUP_get_curve_name ( group ) ;\n if ( tmp ) {\n ret -> type = 0 ;\n if ( ( ret -> value . named_curve = OBJ_nid2obj ( tmp ) ) == NULL ) ok = 0 ;\n }\n else ok = 0 ;\n }\n else {\n ret -> type = 1 ;\n if ( ( ret -> value . parameters = ec_asn1_group2parameters ( group , NULL ) ) == NULL ) ok = 0 ;\n }\n if ( ! ok ) {\n ECPKPARAMETERS_free ( ret ) ;\n return NULL ;\n }\n return ret ;\n }"}
{"idx": 18070, "target": 0, "func": "static int32_t U_CALLCONV compareFallbacks ( const void * context , const void * fb1 , const void * fb2 ) {\n ( void ) context ;\n return ( ( const _MBCSToUFallback * ) fb1 ) -> offset - ( ( const _MBCSToUFallback * ) fb2 ) -> offset ;\n }"}
{"idx": 18071, "target": 0, "func": "int file_is_raw ( struct VpxInputContext * input ) {\n uint8_t buf [ 32 ] ;\n int is_raw = 0 ;\n vpx_codec_stream_info_t si ;\n si . sz = sizeof ( si ) ;\n if ( fread ( buf , 1 , 32 , input -> file ) == 32 ) {\n int i ;\n if ( mem_get_le32 ( buf ) < 256 * 1024 * 1024 ) {\n for ( i = 0 ;\n i < get_vpx_decoder_count ( ) ;\n ++ i ) {\n const VpxInterface * const decoder = get_vpx_decoder_by_index ( i ) ;\n if ( ! vpx_codec_peek_stream_info ( decoder -> codec_interface ( ) , buf + 4 , 32 - 4 , & si ) ) {\n is_raw = 1 ;\n input -> fourcc = decoder -> fourcc ;\n input -> width = si . w ;\n input -> height = si . h ;\n input -> framerate . numerator = 30 ;\n input -> framerate . denominator = 1 ;\n break ;\n }\n }\n }\n }\n rewind ( input -> file ) ;\n return is_raw ;\n }"}
{"idx": 18072, "target": 0, "func": "int xmlIsIdeographic ( unsigned int ch ) {\n return ( xmlIsIdeographicQ ( ch ) ) ;\n }"}
{"idx": 18073, "target": 0, "func": "int xmlHashRemoveEntry2 ( xmlHashTablePtr table , const xmlChar * name , const xmlChar * name2 , xmlHashDeallocator f ) {\n return ( xmlHashRemoveEntry3 ( table , name , name2 , NULL , f ) ) ;\n }"}
{"idx": 18074, "target": 0, "func": "TEST_F ( SoundContentSettingObserverTest , MuteByDefaultRecordsCorrectly ) {\n ChangeDefaultSoundContentSettingTo ( CONTENT_SETTING_BLOCK ) ;\n SimulateAudioStarting ( ) ;\n EXPECT_TRUE ( RecordedSiteMuted ( ) ) ;\n ExpectRecordedForReason ( SoundContentSettingObserver : : MuteReason : : kMuteByDefault ) ;\n }"}
{"idx": 18075, "target": 0, "func": "static void bug20023_change_user ( MYSQL * con ) {\n DIE_IF ( mysql_change_user ( con , opt_user , opt_password , opt_db ? opt_db : \"test\" ) ) ;\n }"}
{"idx": 18076, "target": 0, "func": "static int dissect_pvfs_fh ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , const char * name , guint32 * hash ) {\n proto_tree * ftree ;\n ftree = proto_tree_add_subtree ( tree , tvb , offset , PVFS2_FH_LENGTH , ett_pvfs_fh , NULL , name ) ;\n proto_tree_add_uint ( ftree , hf_pvfs_fh_length , tvb , offset , 0 , PVFS2_FH_LENGTH ) ;\n dissect_fhandle_data ( tvb , offset , pinfo , ftree , hash ) ;\n offset += PVFS2_FH_LENGTH ;\n return offset ;\n }"}
{"idx": 18077, "target": 0, "func": "static void disable_pubkey_algo ( int algorithm ) {\n gcry_module_t pubkey ;\n ath_mutex_lock ( & pubkeys_registered_lock ) ;\n pubkey = _gcry_module_lookup_id ( pubkeys_registered , algorithm ) ;\n if ( pubkey ) {\n if ( ! ( pubkey -> flags & FLAG_MODULE_DISABLED ) ) pubkey -> flags |= FLAG_MODULE_DISABLED ;\n _gcry_module_release ( pubkey ) ;\n }\n ath_mutex_unlock ( & pubkeys_registered_lock ) ;\n }"}
{"idx": 18078, "target": 0, "func": "static UHashTok _uhash_remove ( UHashtable * hash , UHashTok key ) {\n UHashTok result ;\n UHashElement * e = _uhash_find ( hash , key , hash -> keyHasher ( key ) ) ;\n U_ASSERT ( e != NULL ) ;\n result . pointer = NULL ;\n result . integer = 0 ;\n if ( ! IS_EMPTY_OR_DELETED ( e -> hashcode ) ) {\n result = _uhash_internalRemoveElement ( hash , e ) ;\n if ( hash -> count < hash -> lowWaterMark ) {\n UErrorCode status = U_ZERO_ERROR ;\n _uhash_rehash ( hash , & status ) ;\n }\n }\n return result ;\n }"}
{"idx": 18079, "target": 0, "func": "void xps_parse_radial_gradient_brush ( xps_document * doc , const fz_matrix * ctm , const fz_rect * area , char * base_uri , xps_resource * dict , fz_xml * root ) {\n xps_parse_gradient_brush ( doc , ctm , area , base_uri , dict , root , xps_draw_radial_gradient ) ;\n }"}
{"idx": 18080, "target": 0, "func": "int udpv6_setsockopt ( struct sock * sk , int level , int optname , char __user * optval , unsigned int optlen ) {\n if ( level == SOL_UDP || level == SOL_UDPLITE ) return udp_lib_setsockopt ( sk , level , optname , optval , optlen , udp_v6_push_pending_frames ) ;\n return ipv6_setsockopt ( sk , level , optname , optval , optlen ) ;\n }"}
{"idx": 18081, "target": 0, "func": "static void setup_token_decoder ( const uint8_t * data , const uint8_t * data_end , size_t read_size , struct vpx_internal_error_info * error_info , vp9_reader * r , vpx_decrypt_cb decrypt_cb , void * decrypt_state ) {\n if ( ! read_is_valid ( data , read_size , data_end ) ) vpx_internal_error ( error_info , VPX_CODEC_CORRUPT_FRAME , \"Truncated packet or corrupt tile length\" ) ;\n if ( vp9_reader_init ( r , data , read_size , decrypt_cb , decrypt_state ) ) vpx_internal_error ( error_info , VPX_CODEC_MEM_ERROR , \"Failed to allocate bool decoder %d\" , 1 ) ;\n }"}
{"idx": 18082, "target": 0, "func": "const char * mime_field_value_str_from_strlist ( HdrHeap * heap , int * new_str_len_return , StrList * list ) {\n Str * cell ;\n char * new_value , * dest ;\n int i , new_value_len ;\n HdrHeap : : HeapGuard guard ( heap , list -> head -> str ) ;\n new_value_len = 0 ;\n cell = list -> head ;\n for ( i = 0 ;\n i < list -> count ;\n i ++ ) {\n new_value_len += cell -> len ;\n cell = cell -> next ;\n }\n if ( list -> count > 1 ) {\n new_value_len += ( 2 * ( list -> count - 1 ) ) ;\n }\n new_value = heap -> allocate_str ( new_value_len ) ;\n dest = new_value ;\n cell = list -> head ;\n for ( i = 0 ;\n i < list -> count ;\n i ++ ) {\n if ( i != 0 ) {\n * dest ++ = ',' ;\n * dest ++ = ' ' ;\n }\n memcpy ( dest , cell -> str , cell -> len ) ;\n dest += cell -> len ;\n cell = cell -> next ;\n }\n ink_assert ( dest - new_value == new_value_len ) ;\n * new_str_len_return = new_value_len ;\n return new_value ;\n }"}
{"idx": 18083, "target": 0, "func": "static ulong get_sort ( uint count , ... ) {\n va_list args ;\n va_start ( args , count ) ;\n ulong sort = 0 ;\n DBUG_ASSERT ( count <= 4 ) ;\n while ( count -- ) {\n char * start , * str = va_arg ( args , char * ) ;\n uint chars = 0 ;\n uint wild_pos = 0 ;\n if ( ( start = str ) ) {\n for ( ;\n * str ;\n str ++ ) {\n if ( * str == wild_prefix && str [ 1 ] ) str ++ ;\n else if ( * str == wild_many || * str == wild_one ) {\n wild_pos = ( uint ) ( str - start ) + 1 ;\n if ( ! ( wild_pos == 1 && * str == wild_many && * ( ++ str ) == '\\0' ) ) wild_pos ++ ;\n break ;\n }\n chars = 128 ;\n }\n }\n sort = ( sort << 8 ) + ( wild_pos ? min ( wild_pos , 127 ) : chars ) ;\n }\n va_end ( args ) ;\n return sort ;\n }"}
{"idx": 18084, "target": 0, "func": "TEST_F ( SoundContentSettingObserverTest , DontMuteWhenUnmutedByExtension ) {\n EXPECT_FALSE ( web_contents ( ) -> IsAudioMuted ( ) ) ;\n ChangeSoundContentSettingTo ( CONTENT_SETTING_BLOCK ) ;\n EXPECT_TRUE ( web_contents ( ) -> IsAudioMuted ( ) ) ;\n SetMuteStateForReason ( false , TabMutedReason : : EXTENSION ) ;\n EXPECT_FALSE ( web_contents ( ) -> IsAudioMuted ( ) ) ;\n NavigateAndCommit ( GURL ( kURL2 ) ) ;\n EXPECT_FALSE ( web_contents ( ) -> IsAudioMuted ( ) ) ;\n NavigateAndCommit ( GURL ( kURL1 ) ) ;\n EXPECT_FALSE ( web_contents ( ) -> IsAudioMuted ( ) ) ;\n }"}
{"idx": 18085, "target": 0, "func": "const char * proto_get_protocol_filter_name ( const int proto_id ) {\n protocol_t * protocol ;\n protocol = find_protocol_by_id ( proto_id ) ;\n if ( protocol == NULL ) return \"(none)\" ;\n return protocol -> filter_name ;\n }"}
{"idx": 18086, "target": 0, "func": "static void test_parse_error_and_bad_length ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n myheader ( \"test_parse_error_and_bad_length\" ) ;\n rc = mysql_query ( mysql , \"SHOW DATABAAAA\" ) ;\n DIE_UNLESS ( rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"Got error (as expected): '%s'\\n\" , mysql_error ( mysql ) ) ;\n rc = mysql_real_query ( mysql , \"SHOW DATABASES\" , 12 ) ;\n DIE_UNLESS ( rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"Got error (as expected): '%s'\\n\" , mysql_error ( mysql ) ) ;\n stmt = mysql_simple_prepare ( mysql , \"SHOW DATABAAAA\" ) ;\n DIE_UNLESS ( ! stmt ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"Got error (as expected): '%s'\\n\" , mysql_error ( mysql ) ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n DIE_UNLESS ( stmt ) ;\n rc = mysql_stmt_prepare ( stmt , \"SHOW DATABASES\" , 12 ) ;\n DIE_UNLESS ( rc != 0 ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"Got error (as expected): '%s'\\n\" , mysql_stmt_error ( stmt ) ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 18087, "target": 0, "func": "int _zip_cdir_grow ( struct zip_cdir * cd , int nentry , struct zip_error * error ) {\n struct zip_dirent * entry ;\n if ( nentry < cd -> nentry ) {\n _zip_error_set ( error , ZIP_ER_INTERNAL , 0 ) ;\n return - 1 ;\n }\n if ( ( entry = ( ( struct zip_dirent * ) realloc ( cd -> entry , sizeof ( * ( cd -> entry ) ) * nentry ) ) ) == NULL ) {\n _zip_error_set ( error , ZIP_ER_MEMORY , 0 ) ;\n return - 1 ;\n }\n cd -> nentry = nentry ;\n cd -> entry = entry ;\n return 0 ;\n }"}
{"idx": 18088, "target": 1, "func": "static int cert_status_cb ( SSL * s , void * arg ) {\n tlsextstatusctx * srctx = arg ;\n BIO * err = srctx -> err ;\n char * host , * port , * path ;\n int use_ssl ;\n unsigned char * rspder = NULL ;\n int rspderlen ;\n STACK_OF ( OPENSSL_STRING ) * aia = NULL ;\n X509 * x = NULL ;\n X509_STORE_CTX inctx ;\n X509_OBJECT obj ;\n OCSP_REQUEST * req = NULL ;\n OCSP_RESPONSE * resp = NULL ;\n OCSP_CERTID * id = NULL ;\n STACK_OF ( X509_EXTENSION ) * exts ;\n int ret = SSL_TLSEXT_ERR_NOACK ;\n int i ;\n # if 0 STACK_OF ( OCSP_RESPID ) * ids ;\n SSL_get_tlsext_status_ids ( s , & ids ) ;\n BIO_printf ( err , \"cert_status: received %d ids\\n\" , sk_OCSP_RESPID_num ( ids ) ) ;\n # endif if ( srctx -> verbose ) BIO_puts ( err , \"cert_status: callback called\\n\" ) ;\n x = SSL_get_certificate ( s ) ;\n aia = X509_get1_ocsp ( x ) ;\n if ( aia ) {\n if ( ! OCSP_parse_url ( sk_OPENSSL_STRING_value ( aia , 0 ) , & host , & port , & path , & use_ssl ) ) {\n BIO_puts ( err , \"cert_status: can't parse AIA URL\\n\" ) ;\n goto err ;\n }\n if ( srctx -> verbose ) BIO_printf ( err , \"cert_status: AIA URL: %s\\n\" , sk_OPENSSL_STRING_value ( aia , 0 ) ) ;\n }\n else {\n if ( ! srctx -> host ) {\n BIO_puts ( srctx -> err , \"cert_status: no AIA and no default responder URL\\n\" ) ;\n goto done ;\n }\n host = srctx -> host ;\n path = srctx -> path ;\n port = srctx -> port ;\n use_ssl = srctx -> use_ssl ;\n }\n if ( ! X509_STORE_CTX_init ( & inctx , SSL_CTX_get_cert_store ( SSL_get_SSL_CTX ( s ) ) , NULL , NULL ) ) goto err ;\n if ( X509_STORE_get_by_subject ( & inctx , X509_LU_X509 , X509_get_issuer_name ( x ) , & obj ) <= 0 ) {\n BIO_puts ( err , \"cert_status: Can't retrieve issuer certificate.\\n\" ) ;\n X509_STORE_CTX_cleanup ( & inctx ) ;\n goto done ;\n }\n req = OCSP_REQUEST_new ( ) ;\n if ( ! req ) goto err ;\n id = OCSP_cert_to_id ( NULL , x , obj . data . x509 ) ;\n X509_free ( obj . data . x509 ) ;\n X509_STORE_CTX_cleanup ( & inctx ) ;\n if ( ! id ) goto err ;\n if ( ! OCSP_request_add0_id ( req , id ) ) goto err ;\n id = NULL ;\n SSL_get_tlsext_status_exts ( s , & exts ) ;\n for ( i = 0 ;\n i < sk_X509_EXTENSION_num ( exts ) ;\n i ++ ) {\n X509_EXTENSION * ext = sk_X509_EXTENSION_value ( exts , i ) ;\n if ( ! OCSP_REQUEST_add_ext ( req , ext , - 1 ) ) goto err ;\n }\n resp = process_responder ( err , req , host , path , port , use_ssl , NULL , srctx -> timeout ) ;\n if ( ! resp ) {\n BIO_puts ( err , \"cert_status: error querying responder\\n\" ) ;\n goto done ;\n }\n rspderlen = i2d_OCSP_RESPONSE ( resp , & rspder ) ;\n if ( rspderlen <= 0 ) goto err ;\n SSL_set_tlsext_status_ocsp_resp ( s , rspder , rspderlen ) ;\n if ( srctx -> verbose ) {\n BIO_puts ( err , \"cert_status: ocsp response sent:\\n\" ) ;\n OCSP_RESPONSE_print ( err , resp , 2 ) ;\n }\n ret = SSL_TLSEXT_ERR_OK ;\n done : if ( ret != SSL_TLSEXT_ERR_OK ) ERR_print_errors ( err ) ;\n if ( aia ) {\n OPENSSL_free ( host ) ;\n OPENSSL_free ( path ) ;\n OPENSSL_free ( port ) ;\n X509_email_free ( aia ) ;\n }\n if ( id ) OCSP_CERTID_free ( id ) ;\n if ( req ) OCSP_REQUEST_free ( req ) ;\n if ( resp ) OCSP_RESPONSE_free ( resp ) ;\n return ret ;\n err : ret = SSL_TLSEXT_ERR_ALERT_FATAL ;\n goto done ;\n }\n # ifndef OPENSSL_NO_NEXTPROTONEG typedef struct tlsextnextprotoctx_st {\n unsigned char * data ;\n unsigned int len ;\n }\n tlsextnextprotoctx ;\n static int next_proto_cb ( SSL * s , const unsigned char * * data , unsigned int * len , void * arg ) {\n tlsextnextprotoctx * next_proto = arg ;\n * data = next_proto -> data ;\n * len = next_proto -> len ;\n return SSL_TLSEXT_ERR_OK ;\n }\n # endif # endif int MAIN ( int , char * * ) ;\n # ifndef OPENSSL_NO_JPAKE static char * jpake_secret = NULL ;\n # endif # ifndef OPENSSL_NO_SRP static srpsrvparm srp_callback_parm ;\n # endif # ifndef OPENSSL_NO_SRTP static char * srtp_profiles = NULL ;\n # endif int MAIN ( int argc , char * argv [ ] ) {\n X509_VERIFY_PARAM * vpm = NULL ;\n int badarg = 0 ;\n short port = PORT ;\n char * CApath = NULL , * CAfile = NULL ;\n unsigned char * context = NULL ;\n char * dhfile = NULL ;\n # ifndef OPENSSL_NO_ECDH char * named_curve = NULL ;\n # endif int badop = 0 , bugs = 0 ;\n int ret = 1 ;\n int off = 0 ;\n int no_tmp_rsa = 0 , no_dhe = 0 , nocert = 0 ;\n # ifndef OPENSSL_NO_ECDH int no_ecdhe = 0 ;\n # endif int state = 0 ;\n const SSL_METHOD * meth = NULL ;\n int socket_type = SOCK_STREAM ;\n ENGINE * e = NULL ;\n char * inrand = NULL ;\n int s_cert_format = FORMAT_PEM , s_key_format = FORMAT_PEM ;\n char * passarg = NULL , * pass = NULL ;\n char * dpassarg = NULL , * dpass = NULL ;\n int s_dcert_format = FORMAT_PEM , s_dkey_format = FORMAT_PEM ;\n X509 * s_cert = NULL , * s_dcert = NULL ;\n EVP_PKEY * s_key = NULL , * s_dkey = NULL ;\n int no_cache = 0 ;\n # ifndef OPENSSL_NO_TLSEXT EVP_PKEY * s_key2 = NULL ;\n X509 * s_cert2 = NULL ;\n tlsextctx tlsextcbp = {\n NULL , NULL , SSL_TLSEXT_ERR_ALERT_WARNING }\n ;\n # ifndef OPENSSL_NO_NEXTPROTONEG const char * next_proto_neg_in = NULL ;\n tlsextnextprotoctx next_proto ;\n # endif # endif # ifndef OPENSSL_NO_PSK static char * psk_identity_hint = NULL ;\n # endif # ifndef OPENSSL_NO_SRP char * srpuserseed = NULL ;\n char * srp_verifier_file = NULL ;\n # endif meth = SSLv23_server_method ( ) ;\n local_argc = argc ;\n local_argv = argv ;\n apps_startup ( ) ;\n # ifdef MONOLITH s_server_init ( ) ;\n # endif if ( bio_err == NULL ) bio_err = BIO_new_fp ( stderr , BIO_NOCLOSE ) ;\n if ( ! load_config ( bio_err , NULL ) ) goto end ;\n verify_depth = 0 ;\n # ifdef FIONBIO s_nbio = 0 ;\n # endif s_nbio_test = 0 ;\n argc -- ;\n argv ++ ;\n while ( argc >= 1 ) {\n if ( ( strcmp ( * argv , \"-port\" ) == 0 ) || ( strcmp ( * argv , \"-accept\" ) == 0 ) ) {\n if ( -- argc < 1 ) goto bad ;\n if ( ! extract_port ( * ( ++ argv ) , & port ) ) goto bad ;\n }\n else if ( strcmp ( * argv , \"-verify\" ) == 0 ) {\n s_server_verify = SSL_VERIFY_PEER | SSL_VERIFY_CLIENT_ONCE ;\n if ( -- argc < 1 ) goto bad ;\n verify_depth = atoi ( * ( ++ argv ) ) ;\n BIO_printf ( bio_err , \"verify depth is %d\\n\" , verify_depth ) ;\n }\n else if ( strcmp ( * argv , \"-Verify\" ) == 0 ) {\n s_server_verify = SSL_VERIFY_PEER | SSL_VERIFY_FAIL_IF_NO_PEER_CERT | SSL_VERIFY_CLIENT_ONCE ;\n if ( -- argc < 1 ) goto bad ;\n verify_depth = atoi ( * ( ++ argv ) ) ;\n BIO_printf ( bio_err , \"verify depth is %d, must return a certificate\\n\" , verify_depth ) ;\n }\n else if ( strcmp ( * argv , \"-context\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n context = ( unsigned char * ) * ( ++ argv ) ;\n }\n else if ( strcmp ( * argv , \"-cert\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n s_cert_file = * ( ++ argv ) ;\n }\n else if ( strcmp ( * argv , \"-certform\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n s_cert_format = str2fmt ( * ( ++ argv ) ) ;\n }\n else if ( strcmp ( * argv , \"-key\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n s_key_file = * ( ++ argv ) ;\n }\n else if ( strcmp ( * argv , \"-keyform\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n s_key_format = str2fmt ( * ( ++ argv ) ) ;\n }\n else if ( strcmp ( * argv , \"-pass\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n passarg = * ( ++ argv ) ;\n }\n else if ( strcmp ( * argv , \"-dhparam\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n dhfile = * ( ++ argv ) ;\n }\n # ifndef OPENSSL_NO_ECDH else if ( strcmp ( * argv , \"-named_curve\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n named_curve = * ( ++ argv ) ;\n }\n # endif else if ( strcmp ( * argv , \"-dcertform\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n s_dcert_format = str2fmt ( * ( ++ argv ) ) ;\n }\n else if ( strcmp ( * argv , \"-dcert\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n s_dcert_file = * ( ++ argv ) ;\n }\n else if ( strcmp ( * argv , \"-dkeyform\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n s_dkey_format = str2fmt ( * ( ++ argv ) ) ;\n }\n else if ( strcmp ( * argv , \"-dpass\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n dpassarg = * ( ++ argv ) ;\n }\n else if ( strcmp ( * argv , \"-dkey\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n s_dkey_file = * ( ++ argv ) ;\n }\n else if ( strcmp ( * argv , \"-nocert\" ) == 0 ) {\n nocert = 1 ;\n }\n else if ( strcmp ( * argv , \"-CApath\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n CApath = * ( ++ argv ) ;\n }\n else if ( strcmp ( * argv , \"-no_cache\" ) == 0 ) no_cache = 1 ;\n else if ( args_verify ( & argv , & argc , & badarg , bio_err , & vpm ) ) {\n if ( badarg ) goto bad ;\n continue ;\n }\n else if ( strcmp ( * argv , \"-verify_return_error\" ) == 0 ) verify_return_error = 1 ;\n else if ( strcmp ( * argv , \"-serverpref\" ) == 0 ) {\n off |= SSL_OP_CIPHER_SERVER_PREFERENCE ;\n }\n else if ( strcmp ( * argv , \"-legacy_renegotiation\" ) == 0 ) off |= SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION ;\n else if ( strcmp ( * argv , \"-cipher\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n cipher = * ( ++ argv ) ;\n }\n else if ( strcmp ( * argv , \"-CAfile\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n CAfile = * ( ++ argv ) ;\n }\n # ifdef FIONBIO else if ( strcmp ( * argv , \"-nbio\" ) == 0 ) {\n s_nbio = 1 ;\n }\n # endif else if ( strcmp ( * argv , \"-nbio_test\" ) == 0 ) {\n # ifdef FIONBIO s_nbio = 1 ;\n # endif s_nbio_test = 1 ;\n }\n else if ( strcmp ( * argv , \"-debug\" ) == 0 ) {\n s_debug = 1 ;\n }\n # ifndef OPENSSL_NO_TLSEXT else if ( strcmp ( * argv , \"-tlsextdebug\" ) == 0 ) s_tlsextdebug = 1 ;\n else if ( strcmp ( * argv , \"-status\" ) == 0 ) s_tlsextstatus = 1 ;\n else if ( strcmp ( * argv , \"-status_verbose\" ) == 0 ) {\n s_tlsextstatus = 1 ;\n tlscstatp . verbose = 1 ;\n }\n else if ( ! strcmp ( * argv , \"-status_timeout\" ) ) {\n s_tlsextstatus = 1 ;\n if ( -- argc < 1 ) goto bad ;\n tlscstatp . timeout = atoi ( * ( ++ argv ) ) ;\n }\n else if ( ! strcmp ( * argv , \"-status_url\" ) ) {\n s_tlsextstatus = 1 ;\n if ( -- argc < 1 ) goto bad ;\n if ( ! OCSP_parse_url ( * ( ++ argv ) , & tlscstatp . host , & tlscstatp . port , & tlscstatp . path , & tlscstatp . use_ssl ) ) {\n BIO_printf ( bio_err , \"Error parsing URL\\n\" ) ;\n goto bad ;\n }\n }\n # endif else if ( strcmp ( * argv , \"-msg\" ) == 0 ) {\n s_msg = 1 ;\n }\n else if ( strcmp ( * argv , \"-hack\" ) == 0 ) {\n hack = 1 ;\n }\n else if ( strcmp ( * argv , \"-state\" ) == 0 ) {\n state = 1 ;\n }\n else if ( strcmp ( * argv , \"-crlf\" ) == 0 ) {\n s_crlf = 1 ;\n }\n else if ( strcmp ( * argv , \"-quiet\" ) == 0 ) {\n s_quiet = 1 ;\n }\n else if ( strcmp ( * argv , \"-bugs\" ) == 0 ) {\n bugs = 1 ;\n }\n else if ( strcmp ( * argv , \"-no_tmp_rsa\" ) == 0 ) {\n no_tmp_rsa = 1 ;\n }\n else if ( strcmp ( * argv , \"-no_dhe\" ) == 0 ) {\n no_dhe = 1 ;\n }\n # ifndef OPENSSL_NO_ECDH else if ( strcmp ( * argv , \"-no_ecdhe\" ) == 0 ) {\n no_ecdhe = 1 ;\n }\n # endif # ifndef OPENSSL_NO_PSK else if ( strcmp ( * argv , \"-psk_hint\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n psk_identity_hint = * ( ++ argv ) ;\n }\n else if ( strcmp ( * argv , \"-psk\" ) == 0 ) {\n size_t i ;\n if ( -- argc < 1 ) goto bad ;\n psk_key = * ( ++ argv ) ;\n for ( i = 0 ;\n i < strlen ( psk_key ) ;\n i ++ ) {\n if ( isxdigit ( ( unsigned char ) psk_key [ i ] ) ) continue ;\n BIO_printf ( bio_err , \"Not a hex number '%s'\\n\" , * argv ) ;\n goto bad ;\n }\n }\n # endif # ifndef OPENSSL_NO_SRP else if ( strcmp ( * argv , \"-srpvfile\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n srp_verifier_file = * ( ++ argv ) ;\n meth = TLSv1_server_method ( ) ;\n }\n else if ( strcmp ( * argv , \"-srpuserseed\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n srpuserseed = * ( ++ argv ) ;\n meth = TLSv1_server_method ( ) ;\n }\n # endif else if ( strcmp ( * argv , \"-www\" ) == 0 ) {\n www = 1 ;\n }\n else if ( strcmp ( * argv , \"-WWW\" ) == 0 ) {\n www = 2 ;\n }\n else if ( strcmp ( * argv , \"-HTTP\" ) == 0 ) {\n www = 3 ;\n }\n else if ( strcmp ( * argv , \"-no_ssl2\" ) == 0 ) {\n off |= SSL_OP_NO_SSLv2 ;\n }\n else if ( strcmp ( * argv , \"-no_ssl3\" ) == 0 ) {\n off |= SSL_OP_NO_SSLv3 ;\n }\n else if ( strcmp ( * argv , \"-no_tls1\" ) == 0 ) {\n off |= SSL_OP_NO_TLSv1 ;\n }\n else if ( strcmp ( * argv , \"-no_tls1_1\" ) == 0 ) {\n off |= SSL_OP_NO_TLSv1_1 ;\n }\n else if ( strcmp ( * argv , \"-no_tls1_2\" ) == 0 ) {\n off |= SSL_OP_NO_TLSv1_2 ;\n }\n else if ( strcmp ( * argv , \"-no_comp\" ) == 0 ) {\n off |= SSL_OP_NO_COMPRESSION ;\n }\n # ifndef OPENSSL_NO_TLSEXT else if ( strcmp ( * argv , \"-no_ticket\" ) == 0 ) {\n off |= SSL_OP_NO_TICKET ;\n }\n # endif # ifndef OPENSSL_NO_SSL2 else if ( strcmp ( * argv , \"-ssl2\" ) == 0 ) {\n meth = SSLv2_server_method ( ) ;\n }\n # endif # ifndef OPENSSL_NO_SSL3_METHOD else if ( strcmp ( * argv , \"-ssl3\" ) == 0 ) {\n meth = SSLv3_server_method ( ) ;\n }\n # endif # ifndef OPENSSL_NO_TLS1 else if ( strcmp ( * argv , \"-tls1\" ) == 0 ) {\n meth = TLSv1_server_method ( ) ;\n }\n else if ( strcmp ( * argv , \"-tls1_1\" ) == 0 ) {\n meth = TLSv1_1_server_method ( ) ;\n }\n else if ( strcmp ( * argv , \"-tls1_2\" ) == 0 ) {\n meth = TLSv1_2_server_method ( ) ;\n }\n # endif # ifndef OPENSSL_NO_DTLS1 else if ( strcmp ( * argv , \"-dtls1\" ) == 0 ) {\n meth = DTLSv1_server_method ( ) ;\n socket_type = SOCK_DGRAM ;\n }\n else if ( strcmp ( * argv , \"-timeout\" ) == 0 ) enable_timeouts = 1 ;\n else if ( strcmp ( * argv , \"-mtu\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n socket_mtu = atol ( * ( ++ argv ) ) ;\n }\n else if ( strcmp ( * argv , \"-chain\" ) == 0 ) cert_chain = 1 ;\n # endif else if ( strcmp ( * argv , \"-id_prefix\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n session_id_prefix = * ( ++ argv ) ;\n }\n # ifndef OPENSSL_NO_ENGINE else if ( strcmp ( * argv , \"-engine\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n engine_id = * ( ++ argv ) ;\n }\n # endif else if ( strcmp ( * argv , \"-rand\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n inrand = * ( ++ argv ) ;\n }\n # ifndef OPENSSL_NO_TLSEXT else if ( strcmp ( * argv , \"-servername\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n tlsextcbp . servername = * ( ++ argv ) ;\n }\n else if ( strcmp ( * argv , \"-servername_fatal\" ) == 0 ) {\n tlsextcbp . extension_error = SSL_TLSEXT_ERR_ALERT_FATAL ;\n }\n else if ( strcmp ( * argv , \"-cert2\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n s_cert_file2 = * ( ++ argv ) ;\n }\n else if ( strcmp ( * argv , \"-key2\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n s_key_file2 = * ( ++ argv ) ;\n }\n # ifndef OPENSSL_NO_NEXTPROTONEG else if ( strcmp ( * argv , \"-nextprotoneg\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n next_proto_neg_in = * ( ++ argv ) ;\n }\n # endif # endif # if ! defined ( OPENSSL_NO_JPAKE ) && ! defined ( OPENSSL_NO_PSK ) else if ( strcmp ( * argv , \"-jpake\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n jpake_secret = * ( ++ argv ) ;\n }\n # endif # ifndef OPENSSL_NO_SRTP else if ( strcmp ( * argv , \"-use_srtp\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n srtp_profiles = * ( ++ argv ) ;\n }\n # endif else if ( strcmp ( * argv , \"-keymatexport\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n keymatexportlabel = * ( ++ argv ) ;\n }\n else if ( strcmp ( * argv , \"-keymatexportlen\" ) == 0 ) {\n if ( -- argc < 1 ) goto bad ;\n keymatexportlen = atoi ( * ( ++ argv ) ) ;\n if ( keymatexportlen == 0 ) goto bad ;\n }\n else {\n BIO_printf ( bio_err , \"unknown option %s\\n\" , * argv ) ;\n badop = 1 ;\n break ;\n }\n argc -- ;\n argv ++ ;\n }\n if ( badop ) {\n bad : sv_usage ( ) ;\n goto end ;\n }\n # ifndef OPENSSL_NO_DTLS1 if ( www && socket_type == SOCK_DGRAM ) {\n BIO_printf ( bio_err , \"Can't use -HTTP, -www or -WWW with DTLS\\n\" ) ;\n goto end ;\n }\n # endif # if ! defined ( OPENSSL_NO_JPAKE ) && ! defined ( OPENSSL_NO_PSK ) if ( jpake_secret ) {\n if ( psk_key ) {\n BIO_printf ( bio_err , \"Can't use JPAKE and PSK together\\n\" ) ;\n goto end ;\n }\n psk_identity = \"JPAKE\" ;\n if ( cipher ) {\n BIO_printf ( bio_err , \"JPAKE sets cipher to PSK\\n\" ) ;\n goto end ;\n }\n cipher = \"PSK\" ;\n }\n # endif SSL_load_error_strings ( ) ;\n OpenSSL_add_ssl_algorithms ( ) ;\n # ifndef OPENSSL_NO_ENGINE e = setup_engine ( bio_err , engine_id , 1 ) ;\n # endif if ( ! app_passwd ( bio_err , passarg , dpassarg , & pass , & dpass ) ) {\n BIO_printf ( bio_err , \"Error getting password\\n\" ) ;\n goto end ;\n }\n if ( s_key_file == NULL ) s_key_file = s_cert_file ;\n # ifndef OPENSSL_NO_TLSEXT if ( s_key_file2 == NULL ) s_key_file2 = s_cert_file2 ;\n # endif if ( nocert == 0 ) {\n s_key = load_key ( bio_err , s_key_file , s_key_format , 0 , pass , e , \"server certificate private key file\" ) ;\n if ( ! s_key ) {\n ERR_print_errors ( bio_err ) ;\n goto end ;\n }\n s_cert = load_cert ( bio_err , s_cert_file , s_cert_format , NULL , e , \"server certificate file\" ) ;\n if ( ! s_cert ) {\n ERR_print_errors ( bio_err ) ;\n goto end ;\n }\n # ifndef OPENSSL_NO_TLSEXT if ( tlsextcbp . servername ) {\n s_key2 = load_key ( bio_err , s_key_file2 , s_key_format , 0 , pass , e , \"second server certificate private key file\" ) ;\n if ( ! s_key2 ) {\n ERR_print_errors ( bio_err ) ;\n goto end ;\n }\n s_cert2 = load_cert ( bio_err , s_cert_file2 , s_cert_format , NULL , e , \"second server certificate file\" ) ;\n if ( ! s_cert2 ) {\n ERR_print_errors ( bio_err ) ;\n goto end ;\n }\n }\n # endif }\n # if ! defined ( OPENSSL_NO_TLSEXT ) && ! defined ( OPENSSL_NO_NEXTPROTONEG ) if ( next_proto_neg_in ) {\n unsigned short len ;\n next_proto . data = next_protos_parse ( & len , next_proto_neg_in ) ;\n if ( next_proto . data == NULL ) goto end ;\n next_proto . len = len ;\n }\n else {\n next_proto . data = NULL ;\n }\n # endif if ( s_dcert_file ) {\n if ( s_dkey_file == NULL ) s_dkey_file = s_dcert_file ;\n s_dkey = load_key ( bio_err , s_dkey_file , s_dkey_format , 0 , dpass , e , \"second certificate private key file\" ) ;\n if ( ! s_dkey ) {\n ERR_print_errors ( bio_err ) ;\n goto end ;\n }\n s_dcert = load_cert ( bio_err , s_dcert_file , s_dcert_format , NULL , e , \"second server certificate file\" ) ;\n if ( ! s_dcert ) {\n ERR_print_errors ( bio_err ) ;\n goto end ;\n }\n }\n if ( ! app_RAND_load_file ( NULL , bio_err , 1 ) && inrand == NULL && ! RAND_status ( ) ) {\n BIO_printf ( bio_err , \"warning, not much extra random data, consider using the -rand option\\n\" ) ;\n }\n if ( inrand != NULL ) BIO_printf ( bio_err , \"%ld semi-random bytes loaded\\n\" , app_RAND_load_files ( inrand ) ) ;\n if ( bio_s_out == NULL ) {\n if ( s_quiet && ! s_debug && ! s_msg ) {\n bio_s_out = BIO_new ( BIO_s_null ( ) ) ;\n }\n else {\n if ( bio_s_out == NULL ) bio_s_out = BIO_new_fp ( stdout , BIO_NOCLOSE ) ;\n }\n }\n # if ! defined ( OPENSSL_NO_RSA ) || ! defined ( OPENSSL_NO_DSA ) || ! defined ( OPENSSL_NO_ECDSA ) if ( nocert ) # endif {\n s_cert_file = NULL ;\n s_key_file = NULL ;\n s_dcert_file = NULL ;\n s_dkey_file = NULL ;\n # ifndef OPENSSL_NO_TLSEXT s_cert_file2 = NULL ;\n s_key_file2 = NULL ;\n # endif }\n ctx = SSL_CTX_new ( meth ) ;\n if ( ctx == NULL ) {\n ERR_print_errors ( bio_err ) ;\n goto end ;\n }\n if ( session_id_prefix ) {\n if ( strlen ( session_id_prefix ) >= 32 ) BIO_printf ( bio_err , \"warning: id_prefix is too long, only one new session will be possible\\n\" ) ;\n else if ( strlen ( session_id_prefix ) >= 16 ) BIO_printf ( bio_err , \"warning: id_prefix is too long if you use SSLv2\\n\" ) ;\n if ( ! SSL_CTX_set_generate_session_id ( ctx , generate_session_id ) ) {\n BIO_printf ( bio_err , \"error setting 'id_prefix'\\n\" ) ;\n ERR_print_errors ( bio_err ) ;\n goto end ;\n }\n BIO_printf ( bio_err , \"id_prefix '%s' set.\\n\" , session_id_prefix ) ;\n }\n SSL_CTX_set_quiet_shutdown ( ctx , 1 ) ;\n if ( bugs ) SSL_CTX_set_options ( ctx , SSL_OP_ALL ) ;\n if ( hack ) SSL_CTX_set_options ( ctx , SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG ) ;\n SSL_CTX_set_options ( ctx , off ) ;\n if ( state ) SSL_CTX_set_info_callback ( ctx , apps_ssl_info_callback ) ;\n if ( no_cache ) SSL_CTX_set_session_cache_mode ( ctx , SSL_SESS_CACHE_OFF ) ;\n else SSL_CTX_sess_set_cache_size ( ctx , 128 ) ;\n # ifndef OPENSSL_NO_SRTP if ( srtp_profiles != NULL ) SSL_CTX_set_tlsext_use_srtp ( ctx , srtp_profiles ) ;\n # endif # if 0 if ( cipher == NULL ) cipher = getenv ( \"SSL_CIPHER\" ) ;\n # endif # if 0 if ( s_cert_file == NULL ) {\n BIO_printf ( bio_err , \"You must specify a certificate file for the server to use\\n\" ) ;\n goto end ;\n }\n # endif if ( ( ! SSL_CTX_load_verify_locations ( ctx , CAfile , CApath ) ) || ( ! SSL_CTX_set_default_verify_paths ( ctx ) ) ) {\n ERR_print_errors ( bio_err ) ;\n }\n if ( vpm ) SSL_CTX_set1_param ( ctx , vpm ) ;\n # ifndef OPENSSL_NO_TLSEXT if ( s_cert2 ) {\n ctx2 = SSL_CTX_new ( meth ) ;\n if ( ctx2 == NULL ) {\n ERR_print_errors ( bio_err ) ;\n goto end ;\n }\n }\n if ( ctx2 ) {\n BIO_printf ( bio_s_out , \"Setting secondary ctx parameters\\n\" ) ;\n if ( session_id_prefix ) {\n if ( strlen ( session_id_prefix ) >= 32 ) BIO_printf ( bio_err , \"warning: id_prefix is too long, only one new session will be possible\\n\" ) ;\n else if ( strlen ( session_id_prefix ) >= 16 ) BIO_printf ( bio_err , \"warning: id_prefix is too long if you use SSLv2\\n\" ) ;\n if ( ! SSL_CTX_set_generate_session_id ( ctx2 , generate_session_id ) ) {\n BIO_printf ( bio_err , \"error setting 'id_prefix'\\n\" ) ;\n ERR_print_errors ( bio_err ) ;\n goto end ;\n }\n BIO_printf ( bio_err , \"id_prefix '%s' set.\\n\" , session_id_prefix ) ;\n }\n SSL_CTX_set_quiet_shutdown ( ctx2 , 1 ) ;\n if ( bugs ) SSL_CTX_set_options ( ctx2 , SSL_OP_ALL ) ;\n if ( hack ) SSL_CTX_set_options ( ctx2 , SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG ) ;\n SSL_CTX_set_options ( ctx2 , off ) ;\n if ( state ) SSL_CTX_set_info_callback ( ctx2 , apps_ssl_info_callback ) ;\n if ( no_cache ) SSL_CTX_set_session_cache_mode ( ctx2 , SSL_SESS_CACHE_OFF ) ;\n else SSL_CTX_sess_set_cache_size ( ctx2 , 128 ) ;\n if ( ( ! SSL_CTX_load_verify_locations ( ctx2 , CAfile , CApath ) ) || ( ! SSL_CTX_set_default_verify_paths ( ctx2 ) ) ) {\n ERR_print_errors ( bio_err ) ;\n }\n if ( vpm ) SSL_CTX_set1_param ( ctx2 , vpm ) ;\n }\n # ifndef OPENSSL_NO_NEXTPROTONEG if ( next_proto . data ) SSL_CTX_set_next_protos_advertised_cb ( ctx , next_proto_cb , & next_proto ) ;\n # endif # endif # ifndef OPENSSL_NO_DH if ( ! no_dhe ) {\n DH * dh = NULL ;\n if ( dhfile ) dh = load_dh_param ( dhfile ) ;\n else if ( s_cert_file ) dh = load_dh_param ( s_cert_file ) ;\n if ( dh != NULL ) {\n BIO_printf ( bio_s_out , \"Setting temp DH parameters\\n\" ) ;\n }\n else {\n BIO_printf ( bio_s_out , \"Using default temp DH parameters\\n\" ) ;\n dh = get_dh2048 ( ) ;\n if ( dh == NULL ) {\n ERR_print_errors ( bio_err ) ;\n goto end ;\n }\n }\n ( void ) BIO_flush ( bio_s_out ) ;\n SSL_CTX_set_tmp_dh ( ctx , dh ) ;\n # ifndef OPENSSL_NO_TLSEXT if ( ctx2 ) {\n if ( ! dhfile ) {\n DH * dh2 = load_dh_param ( s_cert_file2 ) ;\n if ( dh2 != NULL ) {\n BIO_printf ( bio_s_out , \"Setting temp DH parameters\\n\" ) ;\n ( void ) BIO_flush ( bio_s_out ) ;\n DH_free ( dh ) ;\n dh = dh2 ;\n }\n }\n SSL_CTX_set_tmp_dh ( ctx2 , dh ) ;\n }\n # endif DH_free ( dh ) ;\n }\n # endif # ifndef OPENSSL_NO_ECDH if ( ! no_ecdhe ) {\n EC_KEY * ecdh = NULL ;\n if ( named_curve ) {\n int nid = OBJ_sn2nid ( named_curve ) ;\n if ( nid == 0 ) {\n BIO_printf ( bio_err , \"unknown curve name (%s)\\n\" , named_curve ) ;\n goto end ;\n }\n ecdh = EC_KEY_new_by_curve_name ( nid ) ;\n if ( ecdh == NULL ) {\n BIO_printf ( bio_err , \"unable to create curve (%s)\\n\" , named_curve ) ;\n goto end ;\n }\n }\n if ( ecdh != NULL ) {\n BIO_printf ( bio_s_out , \"Setting temp ECDH parameters\\n\" ) ;\n }\n else {\n BIO_printf ( bio_s_out , \"Using default temp ECDH parameters\\n\" ) ;\n ecdh = EC_KEY_new_by_curve_name ( NID_X9_62_prime256v1 ) ;\n if ( ecdh == NULL ) {\n BIO_printf ( bio_err , \"unable to create curve (nistp256)\\n\" ) ;\n goto end ;\n }\n }\n ( void ) BIO_flush ( bio_s_out ) ;\n SSL_CTX_set_tmp_ecdh ( ctx , ecdh ) ;\n # ifndef OPENSSL_NO_TLSEXT if ( ctx2 ) SSL_CTX_set_tmp_ecdh ( ctx2 , ecdh ) ;\n # endif EC_KEY_free ( ecdh ) ;\n }\n # endif if ( ! set_cert_key_stuff ( ctx , s_cert , s_key ) ) goto end ;\n # ifndef OPENSSL_NO_TLSEXT if ( ctx2 && ! set_cert_key_stuff ( ctx2 , s_cert2 , s_key2 ) ) goto end ;\n # endif if ( s_dcert != NULL ) {\n if ( ! set_cert_key_stuff ( ctx , s_dcert , s_dkey ) ) goto end ;\n }\n # ifndef OPENSSL_NO_RSA # if 1 if ( ! no_tmp_rsa ) {\n SSL_CTX_set_tmp_rsa_callback ( ctx , tmp_rsa_cb ) ;\n # ifndef OPENSSL_NO_TLSEXT if ( ctx2 ) SSL_CTX_set_tmp_rsa_callback ( ctx2 , tmp_rsa_cb ) ;\n # endif }\n # else if ( ! no_tmp_rsa && SSL_CTX_need_tmp_RSA ( ctx ) ) {\n RSA * rsa ;\n BIO_printf ( bio_s_out , \"Generating temp (512 bit) RSA key...\" ) ;\n BIO_flush ( bio_s_out ) ;\n rsa = RSA_generate_key ( 512 , RSA_F4 , NULL ) ;\n if ( ! SSL_CTX_set_tmp_rsa ( ctx , rsa ) ) {\n ERR_print_errors ( bio_err ) ;\n goto end ;\n }\n # ifndef OPENSSL_NO_TLSEXT if ( ctx2 ) {\n if ( ! SSL_CTX_set_tmp_rsa ( ctx2 , rsa ) ) {\n ERR_print_errors ( bio_err ) ;\n goto end ;\n }\n }\n # endif RSA_free ( rsa ) ;\n BIO_printf ( bio_s_out , \"\\n\" ) ;\n }\n # endif # endif # ifndef OPENSSL_NO_PSK # ifdef OPENSSL_NO_JPAKE if ( psk_key != NULL ) # else if ( psk_key != NULL || jpake_secret ) # endif {\n if ( s_debug ) BIO_printf ( bio_s_out , \"PSK key given or JPAKE in use, setting server callback\\n\" ) ;\n SSL_CTX_set_psk_server_callback ( ctx , psk_server_cb ) ;\n }\n if ( ! SSL_CTX_use_psk_identity_hint ( ctx , psk_identity_hint ) ) {\n BIO_printf ( bio_err , \"error setting PSK identity hint to context\\n\" ) ;\n ERR_print_errors ( bio_err ) ;\n goto end ;\n }\n # endif if ( cipher != NULL ) {\n if ( ! SSL_CTX_set_cipher_list ( ctx , cipher ) ) {\n BIO_printf ( bio_err , \"error setting cipher list\\n\" ) ;\n ERR_print_errors ( bio_err ) ;\n goto end ;\n }\n # ifndef OPENSSL_NO_TLSEXT if ( ctx2 && ! SSL_CTX_set_cipher_list ( ctx2 , cipher ) ) {\n BIO_printf ( bio_err , \"error setting cipher list\\n\" ) ;\n ERR_print_errors ( bio_err ) ;\n goto end ;\n }\n # endif }\n SSL_CTX_set_verify ( ctx , s_server_verify , verify_callback ) ;\n SSL_CTX_set_session_id_context ( ctx , ( void * ) & s_server_session_id_context , sizeof s_server_session_id_context ) ;\n SSL_CTX_set_cookie_generate_cb ( ctx , generate_cookie_callback ) ;\n SSL_CTX_set_cookie_verify_cb ( ctx , verify_cookie_callback ) ;\n # ifndef OPENSSL_NO_TLSEXT if ( ctx2 ) {\n SSL_CTX_set_verify ( ctx2 , s_server_verify , verify_callback ) ;\n SSL_CTX_set_session_id_context ( ctx2 , ( void * ) & s_server_session_id_context , sizeof s_server_session_id_context ) ;\n tlsextcbp . biodebug = bio_s_out ;\n SSL_CTX_set_tlsext_servername_callback ( ctx2 , ssl_servername_cb ) ;\n SSL_CTX_set_tlsext_servername_arg ( ctx2 , & tlsextcbp ) ;\n SSL_CTX_set_tlsext_servername_callback ( ctx , ssl_servername_cb ) ;\n SSL_CTX_set_tlsext_servername_arg ( ctx , & tlsextcbp ) ;\n }\n # endif # ifndef OPENSSL_NO_SRP if ( srp_verifier_file != NULL ) {\n srp_callback_parm . vb = SRP_VBASE_new ( srpuserseed ) ;\n srp_callback_parm . user = NULL ;\n srp_callback_parm . login = NULL ;\n if ( ( ret = SRP_VBASE_init ( srp_callback_parm . vb , srp_verifier_file ) ) != SRP_NO_ERROR ) {\n BIO_printf ( bio_err , \"Cannot initialize SRP verifier file \\\"%s\\\":ret=%d\\n\" , srp_verifier_file , ret ) ;\n goto end ;\n }\n SSL_CTX_set_verify ( ctx , SSL_VERIFY_NONE , verify_callback ) ;\n SSL_CTX_set_srp_cb_arg ( ctx , & srp_callback_parm ) ;\n SSL_CTX_set_srp_username_callback ( ctx , ssl_srp_server_param_cb ) ;\n }\n else # endif if ( CAfile != NULL ) {\n SSL_CTX_set_client_CA_list ( ctx , SSL_load_client_CA_file ( CAfile ) ) ;\n # ifndef OPENSSL_NO_TLSEXT if ( ctx2 ) SSL_CTX_set_client_CA_list ( ctx2 , SSL_load_client_CA_file ( CAfile ) ) ;\n # endif }\n BIO_printf ( bio_s_out , \"ACCEPT\\n\" ) ;\n ( void ) BIO_flush ( bio_s_out ) ;\n if ( www ) do_server ( port , socket_type , & accept_socket , www_body , context ) ;\n else do_server ( port , socket_type , & accept_socket , sv_body , context ) ;\n print_stats ( bio_s_out , ctx ) ;\n ret = 0 ;\n end : if ( ctx != NULL ) SSL_CTX_free ( ctx ) ;\n if ( s_cert ) X509_free ( s_cert ) ;\n if ( s_dcert ) X509_free ( s_dcert ) ;\n if ( s_key ) EVP_PKEY_free ( s_key ) ;\n if ( s_dkey ) EVP_PKEY_free ( s_dkey ) ;\n if ( pass ) OPENSSL_free ( pass ) ;\n if ( dpass ) OPENSSL_free ( dpass ) ;\n if ( vpm ) X509_VERIFY_PARAM_free ( vpm ) ;\n # ifndef OPENSSL_NO_TLSEXT if ( tlscstatp . host ) OPENSSL_free ( tlscstatp . host ) ;\n if ( tlscstatp . port ) OPENSSL_free ( tlscstatp . port ) ;\n if ( tlscstatp . path ) OPENSSL_free ( tlscstatp . path ) ;\n if ( ctx2 != NULL ) SSL_CTX_free ( ctx2 ) ;\n if ( s_cert2 ) X509_free ( s_cert2 ) ;\n if ( s_key2 ) EVP_PKEY_free ( s_key2 ) ;\n # endif if ( bio_s_out != NULL ) {\n BIO_free ( bio_s_out ) ;\n bio_s_out = NULL ;\n }\n apps_shutdown ( ) ;\n OPENSSL_EXIT ( ret ) ;\n }\n static void print_stats ( BIO * bio , SSL_CTX * ssl_ctx ) {\n BIO_printf ( bio , \"%4ld items in the session cache\\n\" , SSL_CTX_sess_number ( ssl_ctx ) ) ;\n BIO_printf ( bio , \"%4ld client connects (SSL_connect())\\n\" , SSL_CTX_sess_connect ( ssl_ctx ) ) ;\n BIO_printf ( bio , \"%4ld client renegotiates (SSL_connect())\\n\" , SSL_CTX_sess_connect_renegotiate ( ssl_ctx ) ) ;\n BIO_printf ( bio , \"%4ld client connects that finished\\n\" , SSL_CTX_sess_connect_good ( ssl_ctx ) ) ;\n BIO_printf ( bio , \"%4ld server accepts (SSL_accept())\\n\" , SSL_CTX_sess_accept ( ssl_ctx ) ) ;\n BIO_printf ( bio , \"%4ld server renegotiates (SSL_accept())\\n\" , SSL_CTX_sess_accept_renegotiate ( ssl_ctx ) ) ;\n BIO_printf ( bio , \"%4ld server accepts that finished\\n\" , SSL_CTX_sess_accept_good ( ssl_ctx ) ) ;\n BIO_printf ( bio , \"%4ld session cache hits\\n\" , SSL_CTX_sess_hits ( ssl_ctx ) ) ;\n BIO_printf ( bio , \"%4ld session cache misses\\n\" , SSL_CTX_sess_misses ( ssl_ctx ) ) ;\n BIO_printf ( bio , \"%4ld session cache timeouts\\n\" , SSL_CTX_sess_timeouts ( ssl_ctx ) ) ;\n BIO_printf ( bio , \"%4ld callback cache hits\\n\" , SSL_CTX_sess_cb_hits ( ssl_ctx ) ) ;\n BIO_printf ( bio , \"%4ld cache full overflows (%ld allowed)\\n\" , SSL_CTX_sess_cache_full ( ssl_ctx ) , SSL_CTX_sess_get_cache_size ( ssl_ctx ) ) ;\n }\n static int sv_body ( char * hostname , int s , unsigned char * context ) {\n char * buf = NULL ;\n fd_set readfds ;\n int ret = 1 , width ;\n int k , i ;\n unsigned long l ;\n SSL * con = NULL ;\n BIO * sbio ;\n # ifndef OPENSSL_NO_KRB5 KSSL_CTX * kctx ;\n # endif struct timeval timeout ;\n # if defined ( OPENSSL_SYS_WINDOWS ) || defined ( OPENSSL_SYS_MSDOS ) || defined ( OPENSSL_SYS_NETWARE ) || defined ( OPENSSL_SYS_BEOS_R5 ) struct timeval tv ;\n # else struct timeval * timeoutp ;\n # endif if ( ( buf = OPENSSL_malloc ( bufsize ) ) == NULL ) {\n BIO_printf ( bio_err , \"out of memory\\n\" ) ;\n goto err ;\n }\n # ifdef FIONBIO if ( s_nbio ) {\n unsigned long sl = 1 ;\n if ( ! s_quiet ) BIO_printf ( bio_err , \"turning on non blocking io\\n\" ) ;\n if ( BIO_socket_ioctl ( s , FIONBIO , & sl ) < 0 ) ERR_print_errors ( bio_err ) ;\n }\n # endif if ( con == NULL ) {\n con = SSL_new ( ctx ) ;\n # ifndef OPENSSL_NO_TLSEXT if ( s_tlsextdebug ) {\n SSL_set_tlsext_debug_callback ( con , tlsext_cb ) ;\n SSL_set_tlsext_debug_arg ( con , bio_s_out ) ;\n }\n if ( s_tlsextstatus ) {\n SSL_CTX_set_tlsext_status_cb ( ctx , cert_status_cb ) ;\n tlscstatp . err = bio_err ;\n SSL_CTX_set_tlsext_status_arg ( ctx , & tlscstatp ) ;\n }\n # endif # ifndef OPENSSL_NO_KRB5 if ( ( kctx = kssl_ctx_new ( ) ) != NULL ) {\n SSL_set0_kssl_ctx ( con , kctx ) ;\n kssl_ctx_setstring ( kctx , KSSL_SERVICE , KRB5SVC ) ;\n kssl_ctx_setstring ( kctx , KSSL_KEYTAB , KRB5KEYTAB ) ;\n }\n # endif if ( context ) SSL_set_session_id_context ( con , context , strlen ( ( char * ) context ) ) ;\n }\n SSL_clear ( con ) ;\n # if 0 # ifdef TLSEXT_TYPE_opaque_prf_input SSL_set_tlsext_opaque_prf_input ( con , \"Test server\" , 11 ) ;\n # endif # endif if ( SSL_version ( con ) == DTLS1_VERSION ) {\n sbio = BIO_new_dgram ( s , BIO_NOCLOSE ) ;\n if ( enable_timeouts ) {\n timeout . tv_sec = 0 ;\n timeout . tv_usec = DGRAM_RCV_TIMEOUT ;\n BIO_ctrl ( sbio , BIO_CTRL_DGRAM_SET_RECV_TIMEOUT , 0 , & timeout ) ;\n timeout . tv_sec = 0 ;\n timeout . tv_usec = DGRAM_SND_TIMEOUT ;\n BIO_ctrl ( sbio , BIO_CTRL_DGRAM_SET_SEND_TIMEOUT , 0 , & timeout ) ;\n }\n if ( socket_mtu ) {\n if ( socket_mtu < DTLS_get_link_min_mtu ( con ) ) {\n BIO_printf ( bio_err , \"MTU too small. Must be at least %ld\\n\" , DTLS_get_link_min_mtu ( con ) ) ;\n ret = - 1 ;\n BIO_free ( sbio ) ;\n goto err ;\n }\n SSL_set_options ( con , SSL_OP_NO_QUERY_MTU ) ;\n if ( ! DTLS_set_link_mtu ( con , socket_mtu ) ) {\n BIO_printf ( bio_err , \"Failed to set MTU\\n\" ) ;\n ret = - 1 ;\n BIO_free ( sbio ) ;\n goto err ;\n }\n }\n else BIO_ctrl ( sbio , BIO_CTRL_DGRAM_MTU_DISCOVER , 0 , NULL ) ;\n SSL_set_options ( con , SSL_OP_COOKIE_EXCHANGE ) ;\n }\n else sbio = BIO_new_socket ( s , BIO_NOCLOSE ) ;\n if ( s_nbio_test ) {\n BIO * test ;\n test = BIO_new ( BIO_f_nbio_test ( ) ) ;\n sbio = BIO_push ( test , sbio ) ;\n }\n # ifndef OPENSSL_NO_JPAKE if ( jpake_secret ) jpake_server_auth ( bio_s_out , sbio , jpake_secret ) ;\n # endif SSL_set_bio ( con , sbio , sbio ) ;\n SSL_set_accept_state ( con ) ;\n if ( s_debug ) {\n SSL_set_debug ( con , 1 ) ;\n BIO_set_callback ( SSL_get_rbio ( con ) , bio_dump_callback ) ;\n BIO_set_callback_arg ( SSL_get_rbio ( con ) , ( char * ) bio_s_out ) ;\n }\n if ( s_msg ) {\n SSL_set_msg_callback ( con , msg_cb ) ;\n SSL_set_msg_callback_arg ( con , bio_s_out ) ;\n }\n # ifndef OPENSSL_NO_TLSEXT if ( s_tlsextdebug ) {\n SSL_set_tlsext_debug_callback ( con , tlsext_cb ) ;\n SSL_set_tlsext_debug_arg ( con , bio_s_out ) ;\n }\n # endif width = s + 1 ;\n for ( ;\n ;\n ) {\n int read_from_terminal ;\n int read_from_sslcon ;\n read_from_terminal = 0 ;\n read_from_sslcon = SSL_pending ( con ) ;\n if ( ! read_from_sslcon ) {\n FD_ZERO ( & readfds ) ;\n # if ! defined ( OPENSSL_SYS_WINDOWS ) && ! defined ( OPENSSL_SYS_MSDOS ) && ! defined ( OPENSSL_SYS_NETWARE ) && ! defined ( OPENSSL_SYS_BEOS_R5 ) openssl_fdset ( fileno ( stdin ) , & readfds ) ;\n # endif openssl_fdset ( s , & readfds ) ;\n # if defined ( OPENSSL_SYS_WINDOWS ) || defined ( OPENSSL_SYS_MSDOS ) || defined ( OPENSSL_SYS_NETWARE ) tv . tv_sec = 1 ;\n tv . tv_usec = 0 ;\n i = select ( width , ( void * ) & readfds , NULL , NULL , & tv ) ;\n if ( ( i < 0 ) || ( ! i && ! _kbhit ( ) ) ) continue ;\n if ( _kbhit ( ) ) read_from_terminal = 1 ;\n # elif defined ( OPENSSL_SYS_BEOS_R5 ) tv . tv_sec = 1 ;\n tv . tv_usec = 0 ;\n ( void ) fcntl ( fileno ( stdin ) , F_SETFL , O_NONBLOCK ) ;\n i = select ( width , ( void * ) & readfds , NULL , NULL , & tv ) ;\n if ( ( i < 0 ) || ( ! i && read ( fileno ( stdin ) , buf , 0 ) < 0 ) ) continue ;\n if ( read ( fileno ( stdin ) , buf , 0 ) >= 0 ) read_from_terminal = 1 ;\n ( void ) fcntl ( fileno ( stdin ) , F_SETFL , 0 ) ;\n # else if ( ( SSL_version ( con ) == DTLS1_VERSION ) && DTLSv1_get_timeout ( con , & timeout ) ) timeoutp = & timeout ;\n else timeoutp = NULL ;\n i = select ( width , ( void * ) & readfds , NULL , NULL , timeoutp ) ;\n if ( ( SSL_version ( con ) == DTLS1_VERSION ) && DTLSv1_handle_timeout ( con ) > 0 ) {\n BIO_printf ( bio_err , \"TIMEOUT occured\\n\" ) ;\n }\n if ( i <= 0 ) continue ;\n if ( FD_ISSET ( fileno ( stdin ) , & readfds ) ) read_from_terminal = 1 ;\n # endif if ( FD_ISSET ( s , & readfds ) ) read_from_sslcon = 1 ;\n }\n if ( read_from_terminal ) {\n if ( s_crlf ) {\n int j , lf_num ;\n i = raw_read_stdin ( buf , bufsize / 2 ) ;\n lf_num = 0 ;\n for ( j = 0 ;\n j < i ;\n j ++ ) if ( buf [ j ] == '\\n' ) lf_num ++ ;\n for ( j = i - 1 ;\n j >= 0 ;\n j -- ) {\n buf [ j + lf_num ] = buf [ j ] ;\n if ( buf [ j ] == '\\n' ) {\n lf_num -- ;\n i ++ ;\n buf [ j + lf_num ] = '\\r' ;\n }\n }\n assert ( lf_num == 0 ) ;\n }\n else i = raw_read_stdin ( buf , bufsize ) ;\n if ( ! s_quiet ) {\n if ( ( i <= 0 ) || ( buf [ 0 ] == 'Q' ) ) {\n BIO_printf ( bio_s_out , \"DONE\\n\" ) ;\n SHUTDOWN ( s ) ;\n close_accept_socket ( ) ;\n ret = - 11 ;\n goto err ;\n }\n if ( ( i <= 0 ) || ( buf [ 0 ] == 'q' ) ) {\n BIO_printf ( bio_s_out , \"DONE\\n\" ) ;\n if ( SSL_version ( con ) != DTLS1_VERSION ) SHUTDOWN ( s ) ;\n goto err ;\n }\n # ifndef OPENSSL_NO_HEARTBEATS if ( ( buf [ 0 ] == 'B' ) && ( ( buf [ 1 ] == '\\n' ) || ( buf [ 1 ] == '\\r' ) ) ) {\n BIO_printf ( bio_err , \"HEARTBEATING\\n\" ) ;\n SSL_heartbeat ( con ) ;\n i = 0 ;\n continue ;\n }\n # endif if ( ( buf [ 0 ] == 'r' ) && ( ( buf [ 1 ] == '\\n' ) || ( buf [ 1 ] == '\\r' ) ) ) {\n SSL_renegotiate ( con ) ;\n i = SSL_do_handshake ( con ) ;\n printf ( \"SSL_do_handshake -> %d\\n\" , i ) ;\n i = 0 ;\n continue ;\n }\n if ( ( buf [ 0 ] == 'R' ) && ( ( buf [ 1 ] == '\\n' ) || ( buf [ 1 ] == '\\r' ) ) ) {\n SSL_set_verify ( con , SSL_VERIFY_PEER | SSL_VERIFY_CLIENT_ONCE , NULL ) ;\n SSL_renegotiate ( con ) ;\n i = SSL_do_handshake ( con ) ;\n printf ( \"SSL_do_handshake -> %d\\n\" , i ) ;\n i = 0 ;\n continue ;\n }\n if ( buf [ 0 ] == 'P' ) {\n static const char * str = \"Lets print some clear text\\n\" ;\n BIO_write ( SSL_get_wbio ( con ) , str , strlen ( str ) ) ;\n }\n if ( buf [ 0 ] == 'S' ) {\n print_stats ( bio_s_out , SSL_get_SSL_CTX ( con ) ) ;\n }\n }\n # ifdef CHARSET_EBCDIC ebcdic2ascii ( buf , buf , i ) ;\n # endif l = k = 0 ;\n for ( ;\n ;\n ) {\n # ifdef RENEG {\n static count = 0 ;\n if ( ++ count == 100 ) {\n count = 0 ;\n SSL_renegotiate ( con ) ;\n }\n }\n # endif k = SSL_write ( con , & ( buf [ l ] ) , ( unsigned int ) i ) ;\n # ifndef OPENSSL_NO_SRP while ( SSL_get_error ( con , k ) == SSL_ERROR_WANT_X509_LOOKUP ) {\n BIO_printf ( bio_s_out , \"LOOKUP renego during write\\n\" ) ;\n srp_callback_parm . user = SRP_VBASE_get_by_user ( srp_callback_parm . vb , srp_callback_parm . login ) ;\n if ( srp_callback_parm . user ) BIO_printf ( bio_s_out , \"LOOKUP done %s\\n\" , srp_callback_parm . user -> info ) ;\n else BIO_printf ( bio_s_out , \"LOOKUP not successful\\n\" ) ;\n k = SSL_write ( con , & ( buf [ l ] ) , ( unsigned int ) i ) ;\n }\n # endif switch ( SSL_get_error ( con , k ) ) {\n case SSL_ERROR_NONE : break ;\n case SSL_ERROR_WANT_WRITE : case SSL_ERROR_WANT_READ : case SSL_ERROR_WANT_X509_LOOKUP : BIO_printf ( bio_s_out , \"Write BLOCK\\n\" ) ;\n break ;\n case SSL_ERROR_SYSCALL : case SSL_ERROR_SSL : BIO_printf ( bio_s_out , \"ERROR\\n\" ) ;\n ERR_print_errors ( bio_err ) ;\n ret = 1 ;\n goto err ;\n case SSL_ERROR_ZERO_RETURN : BIO_printf ( bio_s_out , \"DONE\\n\" ) ;\n ret = 1 ;\n goto err ;\n }\n if ( k > 0 ) {\n l += k ;\n i -= k ;\n }\n if ( i <= 0 ) break ;\n }\n }\n if ( read_from_sslcon ) {\n if ( ! SSL_is_init_finished ( con ) ) {\n i = init_ssl_connection ( con ) ;\n if ( i < 0 ) {\n ret = 0 ;\n goto err ;\n }\n else if ( i == 0 ) {\n ret = 1 ;\n goto err ;\n }\n }\n else {\n again : i = SSL_read ( con , ( char * ) buf , bufsize ) ;\n # ifndef OPENSSL_NO_SRP while ( SSL_get_error ( con , i ) == SSL_ERROR_WANT_X509_LOOKUP ) {\n BIO_printf ( bio_s_out , \"LOOKUP renego during read\\n\" ) ;\n srp_callback_parm . user = SRP_VBASE_get_by_user ( srp_callback_parm . vb , srp_callback_parm . login ) ;\n if ( srp_callback_parm . user ) BIO_printf ( bio_s_out , \"LOOKUP done %s\\n\" , srp_callback_parm . user -> info ) ;\n else BIO_printf ( bio_s_out , \"LOOKUP not successful\\n\" ) ;\n i = SSL_read ( con , ( char * ) buf , bufsize ) ;\n }\n # endif switch ( SSL_get_error ( con , i ) ) {\n case SSL_ERROR_NONE : # ifdef CHARSET_EBCDIC ascii2ebcdic ( buf , buf , i ) ;\n # endif raw_write_stdout ( buf , ( unsigned int ) i ) ;\n if ( SSL_pending ( con ) ) goto again ;\n break ;\n case SSL_ERROR_WANT_WRITE : case SSL_ERROR_WANT_READ : BIO_printf ( bio_s_out , \"Read BLOCK\\n\" ) ;\n break ;\n case SSL_ERROR_SYSCALL : case SSL_ERROR_SSL : BIO_printf ( bio_s_out , \"ERROR\\n\" ) ;\n ERR_print_errors ( bio_err ) ;\n ret = 1 ;\n goto err ;\n case SSL_ERROR_ZERO_RETURN : BIO_printf ( bio_s_out , \"DONE\\n\" ) ;\n ret = 1 ;\n goto err ;\n }\n }\n }\n }\n err : if ( con != NULL ) {\n BIO_printf ( bio_s_out , \"shutting down SSL\\n\" ) ;\n # if 1 SSL_set_shutdown ( con , SSL_SENT_SHUTDOWN | SSL_RECEIVED_SHUTDOWN ) ;\n # else SSL_shutdown ( con ) ;\n # endif SSL_free ( con ) ;\n }\n BIO_printf ( bio_s_out , \"CONNECTION CLOSED\\n\" ) ;\n if ( buf != NULL ) {\n OPENSSL_cleanse ( buf , bufsize ) ;\n OPENSSL_free ( buf ) ;\n }\n if ( ret >= 0 ) BIO_printf ( bio_s_out , \"ACCEPT\\n\" ) ;\n return ( ret ) ;\n }\n static void close_accept_socket ( void ) {\n BIO_printf ( bio_err , \"shutdown accept socket\\n\" ) ;\n if ( accept_socket >= 0 ) {\n SHUTDOWN2 ( accept_socket ) ;\n }\n }\n static int init_ssl_connection ( SSL * con ) {\n int i ;\n const char * str ;\n X509 * peer ;\n long verify_error ;\n MS_STATIC char buf [ BUFSIZ ] ;\n # ifndef OPENSSL_NO_KRB5 char * client_princ ;\n # endif # if ! defined ( OPENSSL_NO_TLSEXT ) && ! defined ( OPENSSL_NO_NEXTPROTONEG ) const unsigned char * next_proto_neg ;\n unsigned next_proto_neg_len ;\n # endif unsigned char * exportedkeymat ;\n i = SSL_accept ( con ) ;\n # ifndef OPENSSL_NO_SRP while ( i <= 0 && SSL_get_error ( con , i ) == SSL_ERROR_WANT_X509_LOOKUP ) {\n BIO_printf ( bio_s_out , \"LOOKUP during accept %s\\n\" , srp_callback_parm . login ) ;\n srp_callback_parm . user = SRP_VBASE_get_by_user ( srp_callback_parm . vb , srp_callback_parm . login ) ;\n if ( srp_callback_parm . user ) BIO_printf ( bio_s_out , \"LOOKUP done %s\\n\" , srp_callback_parm . user -> info ) ;\n else BIO_printf ( bio_s_out , \"LOOKUP not successful\\n\" ) ;\n i = SSL_accept ( con ) ;\n }\n # endif if ( i <= 0 ) {\n if ( BIO_sock_should_retry ( i ) ) {\n BIO_printf ( bio_s_out , \"DELAY\\n\" ) ;\n return ( 1 ) ;\n }\n BIO_printf ( bio_err , \"ERROR\\n\" ) ;\n verify_error = SSL_get_verify_result ( con ) ;\n if ( verify_error != X509_V_OK ) {\n BIO_printf ( bio_err , \"verify error:%s\\n\" , X509_verify_cert_error_string ( verify_error ) ) ;\n }\n else ERR_print_errors ( bio_err ) ;\n return ( 0 ) ;\n }\n PEM_write_bio_SSL_SESSION ( bio_s_out , SSL_get_session ( con ) ) ;\n peer = SSL_get_peer_certificate ( con ) ;\n if ( peer != NULL ) {\n BIO_printf ( bio_s_out , \"Client certificate\\n\" ) ;\n PEM_write_bio_X509 ( bio_s_out , peer ) ;\n X509_NAME_oneline ( X509_get_subject_name ( peer ) , buf , sizeof buf ) ;\n BIO_printf ( bio_s_out , \"subject=%s\\n\" , buf ) ;\n X509_NAME_oneline ( X509_get_issuer_name ( peer ) , buf , sizeof buf ) ;\n BIO_printf ( bio_s_out , \"issuer=%s\\n\" , buf ) ;\n X509_free ( peer ) ;\n }\n if ( SSL_get_shared_ciphers ( con , buf , sizeof buf ) != NULL ) BIO_printf ( bio_s_out , \"Shared ciphers:%s\\n\" , buf ) ;\n str = SSL_CIPHER_get_name ( SSL_get_current_cipher ( con ) ) ;\n BIO_printf ( bio_s_out , \"CIPHER is %s\\n\" , ( str != NULL ) ? str : \"(NONE)\" ) ;\n # if ! defined ( OPENSSL_NO_TLSEXT ) && ! defined ( OPENSSL_NO_NEXTPROTONEG ) SSL_get0_next_proto_negotiated ( con , & next_proto_neg , & next_proto_neg_len ) ;\n if ( next_proto_neg ) {\n BIO_printf ( bio_s_out , \"NEXTPROTO is \" ) ;\n BIO_write ( bio_s_out , next_proto_neg , next_proto_neg_len ) ;\n BIO_printf ( bio_s_out , \"\\n\" ) ;\n }\n # endif # ifndef OPENSSL_NO_SRTP {\n SRTP_PROTECTION_PROFILE * srtp_profile = SSL_get_selected_srtp_profile ( con ) ;\n if ( srtp_profile ) BIO_printf ( bio_s_out , \"SRTP Extension negotiated, profile=%s\\n\" , srtp_profile -> name ) ;\n }\n # endif if ( SSL_cache_hit ( con ) ) BIO_printf ( bio_s_out , \"Reused session-id\\n\" ) ;\n if ( SSL_ctrl ( con , SSL_CTRL_GET_FLAGS , 0 , NULL ) & TLS1_FLAGS_TLS_PADDING_BUG ) BIO_printf ( bio_s_out , \"Peer has incorrect TLSv1 block padding\\n\" ) ;\n # ifndef OPENSSL_NO_KRB5 client_princ = kssl_ctx_get0_client_princ ( SSL_get0_kssl_ctx ( con ) ) ;\n if ( client_princ != NULL ) {\n BIO_printf ( bio_s_out , \"Kerberos peer principal is %s\\n\" , client_princ ) ;\n }\n # endif BIO_printf ( bio_s_out , \"Secure Renegotiation IS%s supported\\n\" , SSL_get_secure_renegotiation_support ( con ) ? \"\" : \" NOT\" ) ;\n if ( keymatexportlabel != NULL ) {\n BIO_printf ( bio_s_out , \"Keying material exporter:\\n\" ) ;\n BIO_printf ( bio_s_out , \" Label: '%s'\\n\" , keymatexportlabel ) ;\n BIO_printf ( bio_s_out , \" Length: %i bytes\\n\" , keymatexportlen ) ;\n exportedkeymat = OPENSSL_malloc ( keymatexportlen ) ;\n if ( exportedkeymat != NULL ) {\n if ( ! SSL_export_keying_material ( con , exportedkeymat , keymatexportlen , keymatexportlabel , strlen ( keymatexportlabel ) , NULL , 0 , 0 ) ) {\n BIO_printf ( bio_s_out , \" Error\\n\" ) ;\n }\n else {\n BIO_printf ( bio_s_out , \" Keying material: \" ) ;\n for ( i = 0 ;\n i < keymatexportlen ;\n i ++ ) BIO_printf ( bio_s_out , \"%02X\" , exportedkeymat [ i ] ) ;\n BIO_printf ( bio_s_out , \"\\n\" ) ;\n }\n OPENSSL_free ( exportedkeymat ) ;\n }\n }\n return ( 1 ) ;\n }\n # ifndef OPENSSL_NO_DH static DH * load_dh_param ( const char * dhfile ) {\n DH * ret = NULL ;\n BIO * bio ;\n if ( ( bio = BIO_new_file ( dhfile , \"r\" ) ) == NULL ) goto err ;\n ret = PEM_read_bio_DHparams ( bio , NULL , NULL , NULL ) ;\n err : if ( bio != NULL ) BIO_free ( bio ) ;\n return ( ret ) ;\n }\n # endif # ifndef OPENSSL_NO_KRB5 char * client_princ ;\n # endif # if 0 static int load_CA ( SSL_CTX * ctx , char * file ) {\n FILE * in ;\n X509 * x = NULL ;\n if ( ( in = fopen ( file , \"r\" ) ) == NULL ) return ( 0 ) ;\n for ( ;\n ;\n ) {\n if ( PEM_read_X509 ( in , & x , NULL ) == NULL ) break ;\n SSL_CTX_add_client_CA ( ctx , x ) ;\n }\n if ( x != NULL ) X509_free ( x ) ;\n fclose ( in ) ;\n return ( 1 ) ;\n }\n # endif static int www_body ( char * hostname , int s , unsigned char * context ) {\n char * buf = NULL ;\n int ret = 1 ;\n int i , j , k , dot ;\n SSL * con ;\n const SSL_CIPHER * c ;\n BIO * io , * ssl_bio , * sbio ;\n # ifndef OPENSSL_NO_KRB5 KSSL_CTX * kctx ;\n # endif buf = OPENSSL_malloc ( bufsize ) ;\n if ( buf == NULL ) return ( 0 ) ;\n io = BIO_new ( BIO_f_buffer ( ) ) ;\n ssl_bio = BIO_new ( BIO_f_ssl ( ) ) ;\n if ( ( io == NULL ) || ( ssl_bio == NULL ) ) goto err ;\n # ifdef FIONBIO if ( s_nbio ) {\n unsigned long sl = 1 ;\n if ( ! s_quiet ) BIO_printf ( bio_err , \"turning on non blocking io\\n\" ) ;\n if ( BIO_socket_ioctl ( s , FIONBIO , & sl ) < 0 ) ERR_print_errors ( bio_err ) ;\n }\n # endif if ( ! BIO_set_write_buffer_size ( io , bufsize ) ) goto err ;\n if ( ( con = SSL_new ( ctx ) ) == NULL ) goto err ;\n # ifndef OPENSSL_NO_TLSEXT if ( s_tlsextdebug ) {\n SSL_set_tlsext_debug_callback ( con , tlsext_cb ) ;\n SSL_set_tlsext_debug_arg ( con , bio_s_out ) ;\n }\n # endif # ifndef OPENSSL_NO_KRB5 if ( ( kctx = kssl_ctx_new ( ) ) != NULL ) {\n kssl_ctx_setstring ( kctx , KSSL_SERVICE , KRB5SVC ) ;\n kssl_ctx_setstring ( kctx , KSSL_KEYTAB , KRB5KEYTAB ) ;\n }\n # endif if ( context ) SSL_set_session_id_context ( con , context , strlen ( ( char * ) context ) ) ;\n sbio = BIO_new_socket ( s , BIO_NOCLOSE ) ;\n if ( s_nbio_test ) {\n BIO * test ;\n test = BIO_new ( BIO_f_nbio_test ( ) ) ;\n sbio = BIO_push ( test , sbio ) ;\n }\n SSL_set_bio ( con , sbio , sbio ) ;\n SSL_set_accept_state ( con ) ;\n BIO_set_ssl ( ssl_bio , con , BIO_CLOSE ) ;\n BIO_push ( io , ssl_bio ) ;\n # ifdef CHARSET_EBCDIC io = BIO_push ( BIO_new ( BIO_f_ebcdic_filter ( ) ) , io ) ;\n # endif if ( s_debug ) {\n SSL_set_debug ( con , 1 ) ;\n BIO_set_callback ( SSL_get_rbio ( con ) , bio_dump_callback ) ;\n BIO_set_callback_arg ( SSL_get_rbio ( con ) , ( char * ) bio_s_out ) ;\n }\n if ( s_msg ) {\n SSL_set_msg_callback ( con , msg_cb ) ;\n SSL_set_msg_callback_arg ( con , bio_s_out ) ;\n }\n for ( ;\n ;\n ) {\n if ( hack ) {\n i = SSL_accept ( con ) ;\n # ifndef OPENSSL_NO_SRP while ( i <= 0 && SSL_get_error ( con , i ) == SSL_ERROR_WANT_X509_LOOKUP ) {\n BIO_printf ( bio_s_out , \"LOOKUP during accept %s\\n\" , srp_callback_parm . login ) ;\n srp_callback_parm . user = SRP_VBASE_get_by_user ( srp_callback_parm . vb , srp_callback_parm . login ) ;\n if ( srp_callback_parm . user ) BIO_printf ( bio_s_out , \"LOOKUP done %s\\n\" , srp_callback_parm . user -> info ) ;\n else BIO_printf ( bio_s_out , \"LOOKUP not successful\\n\" ) ;\n i = SSL_accept ( con ) ;\n }\n # endif switch ( SSL_get_error ( con , i ) ) {\n case SSL_ERROR_NONE : break ;\n case SSL_ERROR_WANT_WRITE : case SSL_ERROR_WANT_READ : case SSL_ERROR_WANT_X509_LOOKUP : continue ;\n case SSL_ERROR_SYSCALL : case SSL_ERROR_SSL : case SSL_ERROR_ZERO_RETURN : ret = 1 ;\n goto err ;\n }\n SSL_renegotiate ( con ) ;\n SSL_write ( con , NULL , 0 ) ;\n }\n i = BIO_gets ( io , buf , bufsize - 1 ) ;\n if ( i < 0 ) {\n if ( ! BIO_should_retry ( io ) ) {\n if ( ! s_quiet ) ERR_print_errors ( bio_err ) ;\n goto err ;\n }\n else {\n BIO_printf ( bio_s_out , \"read R BLOCK\\n\" ) ;\n # ifndef OPENSSL_NO_SRP if ( BIO_should_io_special ( io ) && BIO_get_retry_reason ( io ) == BIO_RR_SSL_X509_LOOKUP ) {\n BIO_printf ( bio_s_out , \"LOOKUP renego during read\\n\" ) ;\n srp_callback_parm . user = SRP_VBASE_get_by_user ( srp_callback_parm . vb , srp_callback_parm . login ) ;\n if ( srp_callback_parm . user ) BIO_printf ( bio_s_out , \"LOOKUP done %s\\n\" , srp_callback_parm . user -> info ) ;\n else BIO_printf ( bio_s_out , \"LOOKUP not successful\\n\" ) ;\n continue ;\n }\n # endif # if defined ( OPENSSL_SYS_NETWARE ) delay ( 1000 ) ;\n # elif ! defined ( OPENSSL_SYS_MSDOS ) && ! defined ( __DJGPP__ ) sleep ( 1 ) ;\n # endif continue ;\n }\n }\n else if ( i == 0 ) {\n ret = 1 ;\n goto end ;\n }\n if ( ( ( www == 1 ) && ( strncmp ( \"GET \" , buf , 4 ) == 0 ) ) || ( ( www == 2 ) && ( strncmp ( \"GET /stats \" , buf , 11 ) == 0 ) ) ) {\n char * p ;\n X509 * peer ;\n STACK_OF ( SSL_CIPHER ) * sk ;\n static const char * space = \" \" ;\n BIO_puts ( io , \"HTTP/1.0 200 ok\\r\\nContent-type: text/html\\r\\n\\r\\n\" ) ;\n BIO_puts ( io , \"<HTML><BODY BGCOLOR=\\\"#ffffff\\\">\\n\" ) ;\n BIO_puts ( io , \"<pre>\\n\" ) ;\n BIO_puts ( io , \"\\n\" ) ;\n for ( i = 0 ;\n i < local_argc ;\n i ++ ) {\n BIO_puts ( io , local_argv [ i ] ) ;\n BIO_write ( io , \" \" , 1 ) ;\n }\n BIO_puts ( io , \"\\n\" ) ;\n BIO_printf ( io , \"Secure Renegotiation IS%s supported\\n\" , SSL_get_secure_renegotiation_support ( con ) ? \"\" : \" NOT\" ) ;\n BIO_printf ( io , \"Ciphers supported in s_server binary\\n\" ) ;\n sk = SSL_get_ciphers ( con ) ;\n j = sk_SSL_CIPHER_num ( sk ) ;\n for ( i = 0 ;\n i < j ;\n i ++ ) {\n c = sk_SSL_CIPHER_value ( sk , i ) ;\n BIO_printf ( io , \"%-11s:%-25s\" , SSL_CIPHER_get_version ( c ) , SSL_CIPHER_get_name ( c ) ) ;\n if ( ( ( ( i + 1 ) % 2 ) == 0 ) && ( i + 1 != j ) ) BIO_puts ( io , \"\\n\" ) ;\n }\n BIO_puts ( io , \"\\n\" ) ;\n p = SSL_get_shared_ciphers ( con , buf , bufsize ) ;\n if ( p != NULL ) {\n BIO_printf ( io , \"---\\nCiphers common between both SSL end points:\\n\" ) ;\n j = i = 0 ;\n while ( * p ) {\n if ( * p == ':' ) {\n BIO_write ( io , space , 26 - j ) ;\n i ++ ;\n j = 0 ;\n BIO_write ( io , ( ( i % 3 ) ? \" \" : \"\\n\" ) , 1 ) ;\n }\n else {\n BIO_write ( io , p , 1 ) ;\n j ++ ;\n }\n p ++ ;\n }\n BIO_puts ( io , \"\\n\" ) ;\n }\n BIO_printf ( io , ( SSL_cache_hit ( con ) ? \"---\\nReused, \" : \"---\\nNew, \" ) ) ;\n c = SSL_get_current_cipher ( con ) ;\n BIO_printf ( io , \"%s, Cipher is %s\\n\" , SSL_CIPHER_get_version ( c ) , SSL_CIPHER_get_name ( c ) ) ;\n SSL_SESSION_print ( io , SSL_get_session ( con ) ) ;\n BIO_printf ( io , \"---\\n\" ) ;\n print_stats ( io , SSL_get_SSL_CTX ( con ) ) ;\n BIO_printf ( io , \"---\\n\" ) ;\n peer = SSL_get_peer_certificate ( con ) ;\n if ( peer != NULL ) {\n BIO_printf ( io , \"Client certificate\\n\" ) ;\n X509_print ( io , peer ) ;\n PEM_write_bio_X509 ( io , peer ) ;\n }\n else BIO_puts ( io , \"no client certificate available\\n\" ) ;\n BIO_puts ( io , \"</BODY></HTML>\\r\\n\\r\\n\" ) ;\n break ;\n }\n else if ( ( www == 2 || www == 3 ) && ( strncmp ( \"GET /\" , buf , 5 ) == 0 ) ) {\n BIO * file ;\n char * p , * e ;\n static const char * text = \"HTTP/1.0 200 ok\\r\\nContent-type: text/plain\\r\\n\\r\\n\" ;\n p = & ( buf [ 5 ] ) ;\n dot = 1 ;\n for ( e = p ;\n * e != '\\0' ;\n e ++ ) {\n if ( e [ 0 ] == ' ' ) break ;\n switch ( dot ) {\n case 1 : dot = ( e [ 0 ] == '.' ) ? 2 : 0 ;\n break ;\n case 2 : dot = ( e [ 0 ] == '.' ) ? 3 : 0 ;\n break ;\n case 3 : dot = ( e [ 0 ] == '/' ) ? - 1 : 0 ;\n break ;\n }\n if ( dot == 0 ) dot = ( e [ 0 ] == '/' ) ? 1 : 0 ;\n }\n dot = ( dot == 3 ) || ( dot == - 1 ) ;\n if ( * e == '\\0' ) {\n BIO_puts ( io , text ) ;\n BIO_printf ( io , \"'%s' is an invalid file name\\r\\n\" , p ) ;\n break ;\n }\n * e = '\\0' ;\n if ( dot ) {\n BIO_puts ( io , text ) ;\n BIO_printf ( io , \"'%s' contains '..' reference\\r\\n\" , p ) ;\n break ;\n }\n if ( * p == '/' ) {\n BIO_puts ( io , text ) ;\n BIO_printf ( io , \"'%s' is an invalid path\\r\\n\" , p ) ;\n break ;\n }\n # if 0 if ( e [ - 1 ] == '/' ) strcat ( p , \"index.html\" ) ;\n # endif if ( app_isdir ( p ) > 0 ) {\n # if 0 strcat ( p , \"/index.html\" ) ;\n # else BIO_puts ( io , text ) ;\n BIO_printf ( io , \"'%s' is a directory\\r\\n\" , p ) ;\n break ;\n # endif }\n if ( ( file = BIO_new_file ( p , \"r\" ) ) == NULL ) {\n BIO_puts ( io , text ) ;\n BIO_printf ( io , \"Error opening '%s'\\r\\n\" , p ) ;\n ERR_print_errors ( io ) ;\n break ;\n }\n if ( ! s_quiet ) BIO_printf ( bio_err , \"FILE:%s\\n\" , p ) ;\n if ( www == 2 ) {\n i = strlen ( p ) ;\n if ( ( ( i > 5 ) && ( strcmp ( & ( p [ i - 5 ] ) , \".html\" ) == 0 ) ) || ( ( i > 4 ) && ( strcmp ( & ( p [ i - 4 ] ) , \".php\" ) == 0 ) ) || ( ( i > 4 ) && ( strcmp ( & ( p [ i - 4 ] ) , \".htm\" ) == 0 ) ) ) BIO_puts ( io , \"HTTP/1.0 200 ok\\r\\nContent-type: text/html\\r\\n\\r\\n\" ) ;\n else BIO_puts ( io , \"HTTP/1.0 200 ok\\r\\nContent-type: text/plain\\r\\n\\r\\n\" ) ;\n }\n for ( ;\n ;\n ) {\n i = BIO_read ( file , buf , bufsize ) ;\n if ( i <= 0 ) break ;\n # ifdef RENEG total_bytes += i ;\n fprintf ( stderr , \"%d\\n\" , i ) ;\n if ( total_bytes > 3 * 1024 ) {\n total_bytes = 0 ;\n fprintf ( stderr , \"RENEGOTIATE\\n\" ) ;\n SSL_renegotiate ( con ) ;\n }\n # endif for ( j = 0 ;\n j < i ;\n ) {\n # ifdef RENEG {\n static count = 0 ;\n if ( ++ count == 13 ) {\n SSL_renegotiate ( con ) ;\n }\n }\n # endif k = BIO_write ( io , & ( buf [ j ] ) , i - j ) ;\n if ( k <= 0 ) {\n if ( ! BIO_should_retry ( io ) ) goto write_error ;\n else {\n BIO_printf ( bio_s_out , \"rwrite W BLOCK\\n\" ) ;\n }\n }\n else {\n j += k ;\n }\n }\n }\n write_error : BIO_free ( file ) ;\n break ;\n }\n }\n for ( ;\n ;\n ) {\n i = ( int ) BIO_flush ( io ) ;\n if ( i <= 0 ) {\n if ( ! BIO_should_retry ( io ) ) break ;\n }\n else break ;\n }\n end : # if 1 SSL_set_shutdown ( con , SSL_SENT_SHUTDOWN | SSL_RECEIVED_SHUTDOWN ) ;\n # else # endif err : if ( ret >= 0 ) BIO_printf ( bio_s_out , \"ACCEPT\\n\" ) ;\n if ( buf != NULL ) OPENSSL_free ( buf ) ;\n if ( io != NULL ) BIO_free_all ( io ) ;\n return ( ret ) ;\n }\n # ifndef OPENSSL_NO_RSA static RSA MS_CALLBACK * tmp_rsa_cb ( SSL * s , int is_export , int keylength ) {\n BIGNUM * bn = NULL ;\n static RSA * rsa_tmp = NULL ;\n if ( ! rsa_tmp && ( ( bn = BN_new ( ) ) == NULL ) ) BIO_printf ( bio_err , \"Allocation error in generating RSA key\\n\" ) ;\n if ( ! rsa_tmp && bn ) {\n if ( ! s_quiet ) {\n BIO_printf ( bio_err , \"Generating temp (%d bit) RSA key...\" , keylength ) ;\n ( void ) BIO_flush ( bio_err ) ;\n }\n if ( ! BN_set_word ( bn , RSA_F4 ) || ( ( rsa_tmp = RSA_new ( ) ) == NULL ) || ! RSA_generate_key_ex ( rsa_tmp , keylength , bn , NULL ) ) {\n if ( rsa_tmp ) RSA_free ( rsa_tmp ) ;\n rsa_tmp = NULL ;\n }\n if ( ! s_quiet ) {\n BIO_printf ( bio_err , \"\\n\" ) ;\n ( void ) BIO_flush ( bio_err ) ;\n }\n BN_free ( bn ) ;\n }\n return ( rsa_tmp ) ;\n }\n # endif # define MAX_SESSION_ID_ATTEMPTS 10 static int generate_session_id ( const SSL * ssl , unsigned char * id , unsigned int * id_len ) {\n unsigned int count = 0 ;\n do {\n if ( RAND_pseudo_bytes ( id , * id_len ) < 0 ) return 0 ;\n memcpy ( id , session_id_prefix , ( strlen ( session_id_prefix ) < * id_len ) ? strlen ( session_id_prefix ) : * id_len ) ;\n }\n while ( SSL_has_matching_session_id ( ssl , id , * id_len ) && ( ++ count < MAX_SESSION_ID_ATTEMPTS ) ) ;\n if ( count >= MAX_SESSION_ID_ATTEMPTS ) return 0 ;\n return 1 ;\n }"}
{"idx": 18089, "target": 0, "func": "static int cirrus_do_copy ( CirrusVGAState * s , int dst , int src , int w , int h ) {\n int sx = 0 , sy = 0 ;\n int dx = 0 , dy = 0 ;\n int depth = 0 ;\n int notify = 0 ;\n if ( * s -> cirrus_rop == cirrus_bitblt_rop_fwd_src || * s -> cirrus_rop == cirrus_bitblt_rop_bkwd_src ) {\n int width , height ;\n depth = s -> vga . get_bpp ( & s -> vga ) / 8 ;\n if ( ! depth ) {\n return 0 ;\n }\n s -> vga . get_resolution ( & s -> vga , & width , & height ) ;\n sx = ( src % ABS ( s -> cirrus_blt_srcpitch ) ) / depth ;\n sy = ( src / ABS ( s -> cirrus_blt_srcpitch ) ) ;\n dx = ( dst % ABS ( s -> cirrus_blt_dstpitch ) ) / depth ;\n dy = ( dst / ABS ( s -> cirrus_blt_dstpitch ) ) ;\n w /= depth ;\n if ( s -> cirrus_blt_dstpitch < 0 ) {\n sx -= ( s -> cirrus_blt_width / depth ) - 1 ;\n dx -= ( s -> cirrus_blt_width / depth ) - 1 ;\n sy -= s -> cirrus_blt_height - 1 ;\n dy -= s -> cirrus_blt_height - 1 ;\n }\n if ( sx >= 0 && sy >= 0 && dx >= 0 && dy >= 0 && ( sx + w ) <= width && ( sy + h ) <= height && ( dx + w ) <= width && ( dy + h ) <= height ) {\n notify = 1 ;\n }\n }\n ( * s -> cirrus_rop ) ( s , s -> cirrus_blt_dstaddr , s -> cirrus_blt_srcaddr , s -> cirrus_blt_dstpitch , s -> cirrus_blt_srcpitch , s -> cirrus_blt_width , s -> cirrus_blt_height ) ;\n if ( notify ) {\n dpy_gfx_update ( s -> vga . con , dx , dy , s -> cirrus_blt_width / depth , s -> cirrus_blt_height ) ;\n }\n cirrus_invalidate_region ( s , s -> cirrus_blt_dstaddr , s -> cirrus_blt_dstpitch , s -> cirrus_blt_width , s -> cirrus_blt_height ) ;\n return 1 ;\n }"}
{"idx": 18090, "target": 0, "func": "static void dissect_zcl_ota_upgradeendrsp ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_manufacturer_code , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_image_type , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n dissect_zcl_ota_file_version_field ( tvb , tree , offset ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_current_time , tvb , * offset , 4 , ENC_LITTLE_ENDIAN ) ;\n * offset += 4 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_ota_upgrade_time , tvb , * offset , 4 , ENC_LITTLE_ENDIAN ) ;\n * offset += 4 ;\n }"}
{"idx": 18091, "target": 0, "func": "static uint32_t get_le32 ( void * addr ) {\n return le32_to_cpu ( * ( ( uint32_t * ) addr ) ) ;\n }"}
{"idx": 18092, "target": 0, "func": "static int may_create ( struct inode * dir , struct dentry * dentry , u16 tclass ) {\n const struct task_security_struct * tsec = current_security ( ) ;\n struct inode_security_struct * dsec ;\n struct superblock_security_struct * sbsec ;\n u32 sid , newsid ;\n struct common_audit_data ad ;\n int rc ;\n dsec = inode_security ( dir ) ;\n sbsec = dir -> i_sb -> s_security ;\n sid = tsec -> sid ;\n ad . type = LSM_AUDIT_DATA_DENTRY ;\n ad . u . dentry = dentry ;\n rc = avc_has_perm ( sid , dsec -> sid , SECCLASS_DIR , DIR__ADD_NAME | DIR__SEARCH , & ad ) ;\n if ( rc ) return rc ;\n rc = selinux_determine_inode_label ( current_security ( ) , dir , & dentry -> d_name , tclass , & newsid ) ;\n if ( rc ) return rc ;\n rc = avc_has_perm ( sid , newsid , tclass , FILE__CREATE , & ad ) ;\n if ( rc ) return rc ;\n return avc_has_perm ( newsid , sbsec -> sid , SECCLASS_FILESYSTEM , FILESYSTEM__ASSOCIATE , & ad ) ;\n }"}
{"idx": 18093, "target": 0, "func": "const EVP_CIPHER * EVP_aes_128_wrap_pad ( void ) {\n return & aes_128_wrap_pad ;\n }"}
{"idx": 18094, "target": 0, "func": "X509_REQ * X509_to_X509_REQ ( X509 * x , EVP_PKEY * pkey , const EVP_MD * md ) {\n X509_REQ * ret ;\n X509_REQ_INFO * ri ;\n int i ;\n EVP_PKEY * pktmp ;\n ret = X509_REQ_new ( ) ;\n if ( ret == NULL ) {\n X509err ( X509_F_X509_TO_X509_REQ , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n ri = ret -> req_info ;\n ri -> version -> length = 1 ;\n ri -> version -> data = ( unsigned char * ) OPENSSL_malloc ( 1 ) ;\n if ( ri -> version -> data == NULL ) goto err ;\n ri -> version -> data [ 0 ] = 0 ;\n if ( ! X509_REQ_set_subject_name ( ret , X509_get_subject_name ( x ) ) ) goto err ;\n pktmp = X509_get_pubkey ( x ) ;\n if ( pktmp == NULL ) goto err ;\n i = X509_REQ_set_pubkey ( ret , pktmp ) ;\n EVP_PKEY_free ( pktmp ) ;\n if ( ! i ) goto err ;\n if ( pkey != NULL ) {\n if ( ! X509_REQ_sign ( ret , pkey , md ) ) goto err ;\n }\n return ( ret ) ;\n err : X509_REQ_free ( ret ) ;\n return ( NULL ) ;\n }"}
{"idx": 18095, "target": 0, "func": "static int dissect_h245_T_t38fax ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_t38fax , T_t38fax_sequence ) ;\n return offset ;\n }"}
{"idx": 18096, "target": 0, "func": "static int com_server_help ( String * buffer __attribute__ ( ( unused ) ) , char * line __attribute__ ( ( unused ) ) , char * help_arg ) {\n MYSQL_ROW cur ;\n const char * server_cmd ;\n char cmd_buf [ 100 + 1 ] ;\n MYSQL_RES * result ;\n int error ;\n if ( help_arg [ 0 ] != '\\'' ) {\n char * end_arg = strend ( help_arg ) ;\n if ( -- end_arg ) {\n while ( my_isspace ( charset_info , * end_arg ) ) end_arg -- ;\n * ++ end_arg = '\\0' ;\n }\n ( void ) strxnmov ( cmd_buf , sizeof ( cmd_buf ) , \"help '\" , help_arg , \"'\" , NullS ) ;\n }\n else ( void ) strxnmov ( cmd_buf , sizeof ( cmd_buf ) , \"help \" , help_arg , NullS ) ;\n server_cmd = cmd_buf ;\n if ( ! status . batch ) {\n old_buffer = * buffer ;\n old_buffer . copy ( ) ;\n }\n if ( ! connected && reconnect ( ) ) return 1 ;\n if ( ( error = mysql_real_query_for_lazy ( server_cmd , ( int ) strlen ( server_cmd ) ) ) || ( error = mysql_store_result_for_lazy ( & result ) ) ) return error ;\n if ( result ) {\n unsigned int num_fields = mysql_num_fields ( result ) ;\n my_ulonglong num_rows = mysql_num_rows ( result ) ;\n mysql_fetch_fields ( result ) ;\n if ( num_fields == 3 && num_rows == 1 ) {\n if ( ! ( cur = mysql_fetch_row ( result ) ) ) {\n error = - 1 ;\n goto err ;\n }\n init_pager ( ) ;\n tee_fprintf ( PAGER , \"Name: \\'%s\\'\\n\" , cur [ 0 ] ) ;\n tee_fprintf ( PAGER , \"Description:\\n%s\" , cur [ 1 ] ) ;\n if ( cur [ 2 ] && * ( ( char * ) cur [ 2 ] ) ) tee_fprintf ( PAGER , \"Examples:\\n%s\" , cur [ 2 ] ) ;\n tee_fprintf ( PAGER , \"\\n\" ) ;\n end_pager ( ) ;\n }\n else if ( num_fields >= 2 && num_rows ) {\n init_pager ( ) ;\n char last_char = 0 ;\n int num_name = 0 , num_cat = 0 ;\n LINT_INIT ( num_name ) ;\n LINT_INIT ( num_cat ) ;\n if ( num_fields == 2 ) {\n put_info ( \"Many help items for your request exist.\" , INFO_INFO ) ;\n put_info ( \"To make a more specific request, please type 'help <item>',\\nwhere <item> is one of the following\" , INFO_INFO ) ;\n num_name = 0 ;\n num_cat = 1 ;\n }\n else if ( ( cur = mysql_fetch_row ( result ) ) ) {\n tee_fprintf ( PAGER , \"You asked for help about help category: \\\"%s\\\"\\n\" , cur [ 0 ] ) ;\n put_info ( \"For more information, type 'help <item>', where <item> is one of the following\" , INFO_INFO ) ;\n num_name = 1 ;\n num_cat = 2 ;\n print_help_item ( & cur , 1 , 2 , & last_char ) ;\n }\n while ( ( cur = mysql_fetch_row ( result ) ) ) print_help_item ( & cur , num_name , num_cat , & last_char ) ;\n tee_fprintf ( PAGER , \"\\n\" ) ;\n end_pager ( ) ;\n }\n else {\n put_info ( \"\\nNothing found\" , INFO_INFO ) ;\n if ( strncasecmp ( server_cmd , \"help 'contents'\" , 15 ) == 0 ) {\n put_info ( \"\\nPlease check if 'help tables' are loaded.\\n\" , INFO_INFO ) ;\n goto err ;\n }\n put_info ( \"Please try to run 'help contents' for a list of all accessible topics\\n\" , INFO_INFO ) ;\n }\n }\n err : mysql_free_result ( result ) ;\n return error ;\n }"}
{"idx": 18097, "target": 0, "func": "static int decode_pal ( MSS12Context * ctx , ArithCoder * acoder ) {\n int i , ncol , r , g , b ;\n uint32_t * pal = ctx -> pal + 256 - ctx -> free_colours ;\n if ( ! ctx -> free_colours ) return 0 ;\n ncol = arith_get_number ( acoder , ctx -> free_colours + 1 ) ;\n for ( i = 0 ;\n i < ncol ;\n i ++ ) {\n r = arith_get_bits ( acoder , 8 ) ;\n g = arith_get_bits ( acoder , 8 ) ;\n b = arith_get_bits ( acoder , 8 ) ;\n * pal ++ = ( r << 16 ) | ( g << 8 ) | b ;\n }\n return ! ! ncol ;\n }"}
{"idx": 18098, "target": 0, "func": "int EC_GROUP_get_trinomial_basis ( const EC_GROUP * group , unsigned int * k ) {\n if ( group == NULL ) return 0 ;\n if ( EC_GROUP_method_of ( group ) -> group_set_curve != ec_GF2m_simple_group_set_curve || ! ( ( group -> poly [ 0 ] != 0 ) && ( group -> poly [ 1 ] != 0 ) && ( group -> poly [ 2 ] == 0 ) ) ) {\n ECerr ( EC_F_EC_GROUP_GET_TRINOMIAL_BASIS , ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED ) ;\n return 0 ;\n }\n if ( k ) * k = group -> poly [ 1 ] ;\n return 1 ;\n }"}
{"idx": 18099, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( DownloadNotificationTest , CloseNotificationAfterDownload ) {\n CreateDownload ( ) ;\n CompleteTheDownload ( ) ;\n CloseNotification ( ) ;\n VerifyDownloadState ( download : : DownloadItem : : COMPLETE ) ;\n }"}
{"idx": 18100, "target": 0, "func": "char func_volatile ( Oid funcid ) {\n HeapTuple tp ;\n char result ;\n tp = SearchSysCache1 ( PROCOID , ObjectIdGetDatum ( funcid ) ) ;\n if ( ! HeapTupleIsValid ( tp ) ) elog ( ERROR , \"cache lookup failed for function %u\" , funcid ) ;\n result = ( ( Form_pg_proc ) GETSTRUCT ( tp ) ) -> provolatile ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }"}
{"idx": 18101, "target": 0, "func": "void xsltSetDefaultSecurityPrefs ( xsltSecurityPrefsPtr sec ) {\n xsltDefaultSecurityPrefs = sec ;\n }"}
{"idx": 18102, "target": 0, "func": "static List * add_predicate_to_quals ( IndexOptInfo * index , List * indexQuals ) {\n List * predExtraQuals = NIL ;\n ListCell * lc ;\n if ( index -> indpred == NIL ) return indexQuals ;\n foreach ( lc , index -> indpred ) {\n Node * predQual = ( Node * ) lfirst ( lc ) ;\n List * oneQual = list_make1 ( predQual ) ;\n if ( ! predicate_implied_by ( oneQual , indexQuals ) ) predExtraQuals = list_concat ( predExtraQuals , oneQual ) ;\n }\n return list_concat ( predExtraQuals , indexQuals ) ;\n }"}
{"idx": 18103, "target": 0, "func": "static void _slurm_rpc_job_step_create ( slurm_msg_t * msg ) {\n static int active_rpc_cnt = 0 ;\n int error_code = SLURM_SUCCESS ;\n DEF_TIMERS ;\n slurm_msg_t resp ;\n struct step_record * step_rec ;\n job_step_create_response_msg_t job_step_resp ;\n job_step_create_request_msg_t * req_step_msg = ( job_step_create_request_msg_t * ) msg -> data ;\n slurm_cred_t * slurm_cred = ( slurm_cred_t * ) NULL ;\n slurmctld_lock_t job_write_lock = {\n NO_LOCK , WRITE_LOCK , READ_LOCK , NO_LOCK , NO_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n START_TIMER ;\n if ( slurmctld_conf . debug_flags & DEBUG_FLAG_STEPS ) info ( \"Processing RPC: REQUEST_JOB_STEP_CREATE from uid=%d\" , uid ) ;\n dump_step_desc ( req_step_msg ) ;\n if ( uid && ( uid != req_step_msg -> user_id ) ) {\n error ( \"Security violation, JOB_STEP_CREATE RPC from uid=%d \" \"to run as uid %u\" , uid , req_step_msg -> user_id ) ;\n slurm_send_rc_msg ( msg , ESLURM_USER_ID_MISSING ) ;\n return ;\n }\n # if defined HAVE_FRONT_END && ! defined HAVE_BGQ && ! defined HAVE_ALPS_CRAY if ( ! validate_slurm_user ( uid ) ) {\n info ( \"Attempt to execute job step by uid=%d\" , uid ) ;\n slurm_send_rc_msg ( msg , ESLURM_NO_STEPS ) ;\n return ;\n }\n # endif # if defined HAVE_NATIVE_CRAY if ( LOTS_OF_AGENTS || ( slurmctld_config . server_thread_count >= 128 ) ) {\n slurm_send_rc_msg ( msg , EAGAIN ) ;\n return ;\n }\n # endif _throttle_start ( & active_rpc_cnt ) ;\n lock_slurmctld ( job_write_lock ) ;\n error_code = step_create ( req_step_msg , & step_rec , false , msg -> protocol_version ) ;\n if ( error_code == SLURM_SUCCESS ) {\n error_code = _make_step_cred ( step_rec , & slurm_cred , step_rec -> start_protocol_ver ) ;\n ext_sensors_g_get_stepstartdata ( step_rec ) ;\n }\n END_TIMER2 ( \"_slurm_rpc_job_step_create\" ) ;\n if ( error_code ) {\n unlock_slurmctld ( job_write_lock ) ;\n _throttle_fini ( & active_rpc_cnt ) ;\n if ( slurmctld_conf . debug_flags & DEBUG_FLAG_STEPS ) {\n if ( ( error_code == ESLURM_PROLOG_RUNNING ) || ( error_code == ESLURM_DISABLED ) ) {\n debug ( \"%s for suspended job %u: %s\" , __func__ , req_step_msg -> job_id , slurm_strerror ( error_code ) ) ;\n }\n else {\n info ( \"%s for job %u: %s\" , __func__ , req_step_msg -> job_id , slurm_strerror ( error_code ) ) ;\n }\n }\n slurm_send_rc_msg ( msg , error_code ) ;\n }\n else {\n slurm_step_layout_t * layout = step_rec -> step_layout ;\n if ( slurmctld_conf . debug_flags & DEBUG_FLAG_STEPS ) info ( \"sched: %s: StepId=%u.%u %s %s\" , __func__ , step_rec -> job_ptr -> job_id , step_rec -> step_id , req_step_msg -> node_list , TIME_STR ) ;\n job_step_resp . job_step_id = step_rec -> step_id ;\n job_step_resp . resv_ports = step_rec -> resv_ports ;\n job_step_resp . step_layout = layout ;\n # ifdef HAVE_FRONT_END if ( step_rec -> job_ptr -> batch_host ) {\n job_step_resp . step_layout -> front_end = xstrdup ( step_rec -> job_ptr -> batch_host ) ;\n }\n # endif job_step_resp . cred = slurm_cred ;\n job_step_resp . use_protocol_ver = step_rec -> start_protocol_ver ;\n job_step_resp . select_jobinfo = step_rec -> select_jobinfo ;\n job_step_resp . switch_job = step_rec -> switch_job ;\n unlock_slurmctld ( job_write_lock ) ;\n _throttle_fini ( & active_rpc_cnt ) ;\n slurm_msg_t_init ( & resp ) ;\n resp . flags = msg -> flags ;\n resp . protocol_version = msg -> protocol_version ;\n resp . address = msg -> address ;\n resp . conn = msg -> conn ;\n resp . msg_type = RESPONSE_JOB_STEP_CREATE ;\n resp . data = & job_step_resp ;\n slurm_send_node_msg ( msg -> conn_fd , & resp ) ;\n slurm_cred_destroy ( slurm_cred ) ;\n schedule_job_save ( ) ;\n }\n }"}
{"idx": 18104, "target": 0, "func": "static void sun4m_hw_init ( const struct sun4m_hwdef * hwdef , ram_addr_t RAM_size , const char * boot_device , const char * kernel_filename , const char * kernel_cmdline , const char * initrd_filename , const char * cpu_model ) {\n unsigned int i ;\n void * iommu , * espdma , * ledma , * nvram ;\n qemu_irq * cpu_irqs [ MAX_CPUS ] , slavio_irq [ 32 ] , slavio_cpu_irq [ MAX_CPUS ] , espdma_irq , ledma_irq ;\n qemu_irq esp_reset , dma_enable ;\n qemu_irq fdc_tc ;\n qemu_irq * cpu_halt ;\n unsigned long kernel_size ;\n DriveInfo * fd [ MAX_FD ] ;\n FWCfgState * fw_cfg ;\n unsigned int num_vsimms ;\n if ( ! cpu_model ) cpu_model = hwdef -> default_cpu_model ;\n for ( i = 0 ;\n i < smp_cpus ;\n i ++ ) {\n cpu_devinit ( cpu_model , i , hwdef -> slavio_base , & cpu_irqs [ i ] ) ;\n }\n for ( i = smp_cpus ;\n i < MAX_CPUS ;\n i ++ ) cpu_irqs [ i ] = qemu_allocate_irqs ( dummy_cpu_set_irq , NULL , MAX_PILS ) ;\n ram_init ( 0 , RAM_size , hwdef -> max_mem ) ;\n if ( ! hwdef -> ecc_base ) {\n empty_slot_init ( RAM_size , hwdef -> max_mem - RAM_size ) ;\n }\n prom_init ( hwdef -> slavio_base , bios_name ) ;\n slavio_intctl = slavio_intctl_init ( hwdef -> intctl_base , hwdef -> intctl_base + 0x10000ULL , cpu_irqs ) ;\n for ( i = 0 ;\n i < 32 ;\n i ++ ) {\n slavio_irq [ i ] = qdev_get_gpio_in ( slavio_intctl , i ) ;\n }\n for ( i = 0 ;\n i < MAX_CPUS ;\n i ++ ) {\n slavio_cpu_irq [ i ] = qdev_get_gpio_in ( slavio_intctl , 32 + i ) ;\n }\n if ( hwdef -> idreg_base ) {\n idreg_init ( hwdef -> idreg_base ) ;\n }\n if ( hwdef -> afx_base ) {\n afx_init ( hwdef -> afx_base ) ;\n }\n iommu = iommu_init ( hwdef -> iommu_base , hwdef -> iommu_version , slavio_irq [ 30 ] ) ;\n if ( hwdef -> iommu_pad_base ) {\n empty_slot_init ( hwdef -> iommu_pad_base , hwdef -> iommu_pad_len ) ;\n }\n espdma = sparc32_dma_init ( hwdef -> dma_base , slavio_irq [ 18 ] , iommu , & espdma_irq , 0 ) ;\n ledma = sparc32_dma_init ( hwdef -> dma_base + 16ULL , slavio_irq [ 16 ] , iommu , & ledma_irq , 1 ) ;\n if ( graphic_depth != 8 && graphic_depth != 24 ) {\n fprintf ( stderr , \"qemu: Unsupported depth: %d\\n\" , graphic_depth ) ;\n exit ( 1 ) ;\n }\n num_vsimms = 0 ;\n if ( num_vsimms == 0 ) {\n tcx_init ( hwdef -> tcx_base , 0x00100000 , graphic_width , graphic_height , graphic_depth ) ;\n }\n for ( i = num_vsimms ;\n i < MAX_VSIMMS ;\n i ++ ) {\n if ( hwdef -> vsimm [ i ] . reg_base ) {\n empty_slot_init ( hwdef -> vsimm [ i ] . reg_base , 0x2000 ) ;\n }\n }\n if ( hwdef -> sx_base ) {\n empty_slot_init ( hwdef -> sx_base , 0x2000 ) ;\n }\n lance_init ( & nd_table [ 0 ] , hwdef -> le_base , ledma , ledma_irq ) ;\n nvram = m48t59_init ( slavio_irq [ 0 ] , hwdef -> nvram_base , 0 , 0x2000 , 8 ) ;\n slavio_timer_init_all ( hwdef -> counter_base , slavio_irq [ 19 ] , slavio_cpu_irq , smp_cpus ) ;\n slavio_serial_ms_kbd_init ( hwdef -> ms_kb_base , slavio_irq [ 14 ] , display_type == DT_NOGRAPHIC , ESCC_CLOCK , 1 ) ;\n escc_init ( hwdef -> serial_base , slavio_irq [ 15 ] , slavio_irq [ 15 ] , serial_hds [ 0 ] , serial_hds [ 1 ] , ESCC_CLOCK , 1 ) ;\n cpu_halt = qemu_allocate_irqs ( cpu_halt_signal , NULL , 1 ) ;\n if ( hwdef -> apc_base ) {\n apc_init ( hwdef -> apc_base , cpu_halt [ 0 ] ) ;\n }\n if ( hwdef -> fd_base ) {\n memset ( fd , 0 , sizeof ( fd ) ) ;\n fd [ 0 ] = drive_get ( IF_FLOPPY , 0 , 0 ) ;\n sun4m_fdctrl_init ( slavio_irq [ 22 ] , hwdef -> fd_base , fd , & fdc_tc ) ;\n }\n else {\n fdc_tc = * qemu_allocate_irqs ( dummy_fdc_tc , NULL , 1 ) ;\n }\n slavio_misc_init ( hwdef -> slavio_base , hwdef -> aux1_base , hwdef -> aux2_base , slavio_irq [ 30 ] , fdc_tc ) ;\n if ( drive_get_max_bus ( IF_SCSI ) > 0 ) {\n fprintf ( stderr , \"qemu: too many SCSI bus\\n\" ) ;\n exit ( 1 ) ;\n }\n esp_init ( hwdef -> esp_base , 2 , espdma_memory_read , espdma_memory_write , espdma , espdma_irq , & esp_reset , & dma_enable ) ;\n qdev_connect_gpio_out ( espdma , 0 , esp_reset ) ;\n qdev_connect_gpio_out ( espdma , 1 , dma_enable ) ;\n if ( hwdef -> cs_base ) {\n sysbus_create_simple ( \"SUNW,CS4231\" , hwdef -> cs_base , slavio_irq [ 5 ] ) ;\n }\n if ( hwdef -> dbri_base ) {\n empty_slot_init ( hwdef -> dbri_base + 0x1000 , 0x30 ) ;\n empty_slot_init ( hwdef -> dbri_base + 0x10000 , 0x100 ) ;\n }\n if ( hwdef -> bpp_base ) {\n empty_slot_init ( hwdef -> bpp_base , 0x20 ) ;\n }\n kernel_size = sun4m_load_kernel ( kernel_filename , initrd_filename , RAM_size ) ;\n nvram_init ( nvram , ( uint8_t * ) & nd_table [ 0 ] . macaddr , kernel_cmdline , boot_device , RAM_size , kernel_size , graphic_width , graphic_height , graphic_depth , hwdef -> nvram_machine_id , \"Sun4m\" ) ;\n if ( hwdef -> ecc_base ) ecc_init ( hwdef -> ecc_base , slavio_irq [ 28 ] , hwdef -> ecc_version ) ;\n fw_cfg = fw_cfg_init ( 0 , 0 , CFG_ADDR , CFG_ADDR + 2 ) ;\n fw_cfg_add_i16 ( fw_cfg , FW_CFG_MAX_CPUS , ( uint16_t ) max_cpus ) ;\n fw_cfg_add_i32 ( fw_cfg , FW_CFG_ID , 1 ) ;\n fw_cfg_add_i64 ( fw_cfg , FW_CFG_RAM_SIZE , ( uint64_t ) ram_size ) ;\n fw_cfg_add_i16 ( fw_cfg , FW_CFG_MACHINE_ID , hwdef -> machine_id ) ;\n fw_cfg_add_i16 ( fw_cfg , FW_CFG_SUN4M_DEPTH , graphic_depth ) ;\n fw_cfg_add_i32 ( fw_cfg , FW_CFG_KERNEL_ADDR , KERNEL_LOAD_ADDR ) ;\n fw_cfg_add_i32 ( fw_cfg , FW_CFG_KERNEL_SIZE , kernel_size ) ;\n if ( kernel_cmdline ) {\n fw_cfg_add_i32 ( fw_cfg , FW_CFG_KERNEL_CMDLINE , CMDLINE_ADDR ) ;\n pstrcpy_targphys ( \"cmdline\" , CMDLINE_ADDR , TARGET_PAGE_SIZE , kernel_cmdline ) ;\n fw_cfg_add_string ( fw_cfg , FW_CFG_CMDLINE_DATA , kernel_cmdline ) ;\n fw_cfg_add_i32 ( fw_cfg , FW_CFG_CMDLINE_SIZE , strlen ( kernel_cmdline ) + 1 ) ;\n }\n else {\n fw_cfg_add_i32 ( fw_cfg , FW_CFG_KERNEL_CMDLINE , 0 ) ;\n fw_cfg_add_i32 ( fw_cfg , FW_CFG_CMDLINE_SIZE , 0 ) ;\n }\n fw_cfg_add_i32 ( fw_cfg , FW_CFG_INITRD_ADDR , INITRD_LOAD_ADDR ) ;\n fw_cfg_add_i32 ( fw_cfg , FW_CFG_INITRD_SIZE , 0 ) ;\n fw_cfg_add_i16 ( fw_cfg , FW_CFG_BOOT_DEVICE , boot_device [ 0 ] ) ;\n qemu_register_boot_set ( fw_cfg_boot_set , fw_cfg ) ;\n }"}
{"idx": 18105, "target": 0, "func": "void proto_register_umts_mac ( void ) {\n module_t * mac_module ;\n static gint * ett [ ] = {\n & 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 }\n ;\n static hf_register_info hf [ ] = {\n {\n & hf_mac_rach_fdd_tctf , {\n \"Target Channel Type Field\" , \"mac.tctf\" , FT_UINT8 , BASE_HEX , VALS ( rach_fdd_tctf_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_mac_fach_fdd_tctf , {\n \"Target Channel Type Field\" , \"mac.tctf\" , FT_UINT8 , BASE_HEX , VALS ( fach_fdd_tctf_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_mac_ct , {\n \"C/T\" , \"mac.ct\" , FT_UINT8 , BASE_HEX , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mac_ueid_type , {\n \"UEID Type\" , \"mac.ueid_type\" , FT_UINT8 , BASE_DEC , VALS ( ueid_type_vals ) , 0 , NULL , HFILL }\n }\n , {\n & hf_mac_crnti , {\n \"C-RNTI (UEID)\" , \"mac.ueid\" , FT_UINT16 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_mac_urnti , {\n \"U-RNTI (UEID)\" , \"mac.ueid\" , FT_UINT32 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_mac_channel , {\n \"Logical Channel Type\" , \"mac.logical_channel\" , FT_UINT16 , BASE_DEC , VALS ( mac_logical_channel_vals ) , 0 , NULL , HFILL }\n }\n , # if 0 {\n & hf_mac_channel_str , {\n \"Logical Channel\" , \"mac.logical_channel\" , FT_STRING , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , # endif # if 0 {\n & hf_mac_channel_hsdsch , {\n \"MACd-FlowID\" , \"mac.macd_flowid\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , # endif {\n & hf_mac_macdflowd_id , {\n \"MACd-FlowID\" , \"mac.macd_flowid\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_mac_lch_id , {\n \"Logical Channel ID\" , \"mac.logical_channel_id\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_mac_trch_id , {\n \"Transport Channel ID\" , \"mac.transport_channel_id\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , # if 0 {\n & hf_mac_edch_type2_descriptors , {\n \"MAC-is Descriptors\" , \"mac.edch.type2.descriptors\" , FT_STRING , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , # endif # if 0 {\n & hf_mac_edch_type2_lchid , {\n \"LCH-ID\" , \"mac.logical_channel_id\" , FT_UINT8 , BASE_HEX , NULL , 0xf0 , NULL , HFILL }\n }\n , # endif # if 0 {\n & hf_mac_edch_type2_length , {\n \"Length\" , \"mac.edch.type2.length\" , FT_UINT16 , BASE_DEC , NULL , 0x0ffe , NULL , HFILL }\n }\n , # endif # if 0 {\n & hf_mac_edch_type2_flag , {\n \"Flag\" , \"mac.edch.type2.lchid\" , FT_UINT8 , BASE_HEX , NULL , 0x01 , \"Indicates if another entry follows\" , HFILL }\n }\n , # endif {\n & hf_mac_edch_type2_ss , {\n \"SS\" , \"mac.edch.type2.ss\" , FT_UINT8 , BASE_HEX , NULL , 0xc0 , \"Segmentation Status\" , HFILL }\n }\n , {\n & hf_mac_edch_type2_ss_interpretation , {\n \"SS interpretation\" , \"mac.edch.type2.ss_interpretation\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_mac_edch_type2_tsn , {\n \"TSN\" , \"mac.edch.type2.tsn\" , FT_UINT16 , BASE_DEC , NULL , 0 , \"Transmission Sequence Number\" , HFILL }\n }\n , {\n & hf_mac_edch_type2_sdu , {\n \"MAC-is SDU\" , \"mac.edch.type2.sdu\" , FT_NONE , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_mac_edch_type2_sdu_data , {\n \"Data\" , \"mac.edch.type2.sdu.data\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , # if 0 {\n & hf_mac_edch_type2_subframe_header , {\n \"Subframe header\" , \"mac.edch.type2.subframeheader\" , FT_STRING , BASE_NONE , NULL , 0x0 , \"EDCH Subframe header\" , HFILL }\n }\n , # endif {\n & hf_mac_is_reasmin , {\n \"Reassembled in frame\" , \"mac.is.reasmin\" , FT_FRAMENUM , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n , {\n & hf_mac_is_fraglink , {\n \"Frame\" , \"mac.is.fraglink\" , FT_FRAMENUM , BASE_NONE , NULL , 0 , NULL , HFILL }\n }\n }\n ;\n static ei_register_info ei [ ] = {\n {\n & ei_mac_per_frame_info_missing , {\n \"mac.per_frame_info_missing\" , PI_MALFORMED , PI_ERROR , \"Cannot dissect MAC frame because per-frame info is missing\" , EXPFILL }\n }\n , {\n & ei_mac_unknown_content , {\n \"mac.unknown_content\" , PI_MALFORMED , PI_ERROR , \"Unknown RACH DCCH/DTCH Content\" , EXPFILL }\n }\n , {\n & ei_mac_rach_tctf_unknown , {\n \"mac.rach_tctf.unknown\" , PI_MALFORMED , PI_ERROR , \"Unknown RACH TCTF\" , EXPFILL }\n }\n , {\n & ei_mac_cs_dtch_not_implemented , {\n \"mac.cs_dtch.not_implemented\" , PI_DEBUG , PI_ERROR , \"CS DTCH Is not implemented\" , EXPFILL }\n }\n , {\n & ei_mac_fach_content_type_unknown , {\n \"mac.fach_content_type.unknown\" , PI_UNDECODED , PI_WARN , \" Unimplemented FACH Content type!\" , EXPFILL }\n }\n , {\n & ei_mac_no_logical_channel , {\n \"mac.no_logical_channel\" , PI_PROTOCOL , PI_WARN , \"Frame is missing logical channel\" , EXPFILL }\n }\n , {\n & ei_mac_faked_logical_channel_id , {\n \"mac.faked_logical_channel_id\" , PI_PROTOCOL , PI_WARN , \"This is a faked logical channel id!\" , EXPFILL }\n }\n , {\n & ei_mac_macis_sdu_reassembled , {\n \"mac.macis_sdu.reassembled\" , PI_REASSEMBLE , PI_CHAT , \"Reassembled MAC-is SDU\" , EXPFILL }\n }\n , {\n & ei_mac_macis_sdu_first , {\n \"mac.macis_sdu.first\" , PI_REASSEMBLE , PI_CHAT , \"This MAC-is SDU is the first segment of a MAC-d PDU or MAC-c PDU\" , EXPFILL }\n }\n , {\n & ei_mac_macis_sdu_middle , {\n \"mac.macis_sdu.middle\" , PI_REASSEMBLE , PI_CHAT , \"This MAC-is SDU is a middle segment of a MAC-d PDU or MAC-c PDU\" , EXPFILL }\n }\n , {\n & ei_mac_macis_sdu_last , {\n \"mac.macis_sdu.last\" , PI_REASSEMBLE , PI_CHAT , \"This MAC-is SDU is the last segment of a MAC-d PDU or MAC-c PDU\" , EXPFILL }\n }\n , {\n & ei_mac_macis_sdu_complete , {\n \"mac.macis_sdu.complete\" , PI_REASSEMBLE , PI_CHAT , \"This MAC-is SDU is a complete MAC-d PDU or MAC-c PDU\" , EXPFILL }\n }\n , {\n & ei_mac_reserved_c_t , {\n \"mac.reserved_ct\" , PI_PROTOCOL , PI_WARN , \"C/T has a reserved value, PDU is discarded\" , EXPFILL }\n }\n }\n ;\n expert_module_t * expert_umts_mac ;\n proto_umts_mac = proto_register_protocol ( \"MAC\" , \"MAC\" , \"mac\" ) ;\n proto_register_field_array ( proto_umts_mac , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n expert_umts_mac = expert_register_protocol ( proto_umts_mac ) ;\n expert_register_field_array ( expert_umts_mac , ei , array_length ( ei ) ) ;\n register_dissector ( \"mac.fdd.rach\" , dissect_mac_fdd_rach , proto_umts_mac ) ;\n register_dissector ( \"mac.fdd.fach\" , dissect_mac_fdd_fach , proto_umts_mac ) ;\n register_dissector ( \"mac.fdd.pch\" , dissect_mac_fdd_pch , proto_umts_mac ) ;\n register_dissector ( \"mac.fdd.dch\" , dissect_mac_fdd_dch , proto_umts_mac ) ;\n register_dissector ( \"mac.fdd.edch\" , dissect_mac_fdd_edch , proto_umts_mac ) ;\n register_dissector ( \"mac.fdd.edch.type2\" , dissect_mac_fdd_edch_type2 , proto_umts_mac ) ;\n register_dissector ( \"mac.fdd.hsdsch\" , dissect_mac_fdd_hsdsch , proto_umts_mac ) ;\n register_init_routine ( mac_init ) ;\n register_cleanup_routine ( mac_cleanup ) ;\n mac_module = prefs_register_protocol ( proto_umts_mac , NULL ) ;\n prefs_register_enum_preference ( mac_module , \"tsn_size\" , \"TSN size\" , \"TSN size in bits, either 6 or 14 bit\" , & global_mac_tsn_size , tsn_size_enumvals , FALSE ) ;\n }"}
{"idx": 18106, "target": 0, "func": "static int32_t ide_nop_int32 ( IDEDMA * dma , int x ) {\n return 0 ;\n }"}
{"idx": 18107, "target": 0, "func": "static block_t * Encode ( encoder_t * p_enc , picture_t * p_pic ) {\n encoder_sys_t * p_sys = p_enc -> p_sys ;\n block_t * p_block , * p_output_chain = NULL ;\n SchroFrame * p_frame ;\n bool b_go = true ;\n if ( ! p_pic ) {\n if ( ! p_sys -> started || p_sys -> b_eos_pulled ) return NULL ;\n if ( ! p_sys -> b_eos_signalled ) {\n p_sys -> b_eos_signalled = 1 ;\n schro_encoder_end_of_stream ( p_sys -> p_schro ) ;\n }\n }\n else {\n p_sys -> p_format -> interlaced = ! p_pic -> b_progressive ;\n p_sys -> p_format -> top_field_first = p_pic -> b_top_field_first ;\n if ( p_sys -> b_auto_field_coding ) schro_encoder_setting_set_double ( p_sys -> p_schro , \"interlaced_coding\" , ! p_pic -> b_progressive ) ;\n }\n if ( ! p_sys -> started ) {\n date_t date ;\n if ( p_pic -> format . i_chroma != p_enc -> fmt_in . i_codec ) {\n char chroma_in [ 5 ] , chroma_out [ 5 ] ;\n vlc_fourcc_to_char ( p_pic -> format . i_chroma , chroma_in ) ;\n chroma_in [ 4 ] = '\\0' ;\n chroma_out [ 4 ] = '\\0' ;\n vlc_fourcc_to_char ( p_enc -> fmt_in . i_codec , chroma_out ) ;\n msg_Warn ( p_enc , \"Resetting chroma from %s to %s\" , chroma_out , chroma_in ) ;\n if ( ! SetEncChromaFormat ( p_enc , p_pic -> format . i_chroma ) ) {\n msg_Err ( p_enc , \"Could not reset chroma format to %s\" , chroma_in ) ;\n return NULL ;\n }\n }\n date_Init ( & date , p_enc -> fmt_in . video . i_frame_rate , p_enc -> fmt_in . video . i_frame_rate_base ) ;\n date_Increment ( & date , 1 ) ;\n p_sys -> i_pts_offset = date_Get ( & date ) ;\n if ( schro_encoder_setting_get_double ( p_sys -> p_schro , \"interlaced_coding\" ) > 0.0 ) {\n date_Set ( & date , 0 ) ;\n date_Increment ( & date , 1 ) ;\n p_sys -> i_field_time = date_Get ( & date ) / 2 ;\n }\n schro_video_format_set_std_signal_range ( p_sys -> p_format , SCHRO_SIGNAL_RANGE_8BIT_VIDEO ) ;\n schro_encoder_set_video_format ( p_sys -> p_schro , p_sys -> p_format ) ;\n schro_encoder_start ( p_sys -> p_schro ) ;\n p_sys -> started = 1 ;\n }\n if ( ! p_sys -> b_eos_signalled ) {\n picture_Hold ( p_pic ) ;\n p_frame = CreateSchroFrameFromInputPic ( p_enc , p_pic ) ;\n if ( ! p_frame ) return NULL ;\n schro_encoder_push_frame ( p_sys -> p_schro , p_frame ) ;\n StorePicturePTS ( p_enc , p_sys -> i_input_picnum , p_pic -> date ) ;\n p_sys -> i_input_picnum ++ ;\n p_block = block_Alloc ( 1 ) ;\n if ( ! p_block ) return NULL ;\n p_block -> i_dts = p_pic -> date - p_sys -> i_pts_offset ;\n block_FifoPut ( p_sys -> p_dts_fifo , p_block ) ;\n p_block = NULL ;\n if ( schro_encoder_setting_get_double ( p_sys -> p_schro , \"interlaced_coding\" ) > 0.0 ) {\n StorePicturePTS ( p_enc , p_sys -> i_input_picnum , p_pic -> date + p_sys -> i_field_time ) ;\n p_sys -> i_input_picnum ++ ;\n p_block = block_Alloc ( 1 ) ;\n if ( ! p_block ) return NULL ;\n p_block -> i_dts = p_pic -> date - p_sys -> i_pts_offset + p_sys -> i_field_time ;\n block_FifoPut ( p_sys -> p_dts_fifo , p_block ) ;\n p_block = NULL ;\n }\n }\n do {\n SchroStateEnum state ;\n state = schro_encoder_wait ( p_sys -> p_schro ) ;\n switch ( state ) {\n case SCHRO_STATE_NEED_FRAME : b_go = false ;\n break ;\n case SCHRO_STATE_AGAIN : break ;\n case SCHRO_STATE_END_OF_STREAM : p_sys -> b_eos_pulled = 1 ;\n b_go = false ;\n break ;\n case SCHRO_STATE_HAVE_BUFFER : {\n SchroBuffer * p_enc_buf ;\n uint32_t u_pic_num ;\n int i_presentation_frame ;\n p_enc_buf = schro_encoder_pull ( p_sys -> p_schro , & i_presentation_frame ) ;\n p_block = block_Alloc ( p_enc_buf -> length ) ;\n if ( ! p_block ) return NULL ;\n memcpy ( p_block -> p_buffer , p_enc_buf -> data , p_enc_buf -> length ) ;\n schro_buffer_unref ( p_enc_buf ) ;\n if ( 0 == p_block -> p_buffer [ 4 ] ) {\n p_block -> i_flags |= BLOCK_FLAG_TYPE_I ;\n if ( ! p_enc -> fmt_out . p_extra ) {\n const uint8_t eos [ ] = {\n 'B' , 'B' , 'C' , 'D' , 0x10 , 0 , 0 , 0 , 13 , 0 , 0 , 0 , 0 }\n ;\n uint32_t len = GetDWBE ( p_block -> p_buffer + 5 ) ;\n if ( len > UINT32_MAX - sizeof ( eos ) ) return NULL ;\n p_enc -> fmt_out . p_extra = malloc ( len + sizeof ( eos ) ) ;\n if ( ! p_enc -> fmt_out . p_extra ) return NULL ;\n memcpy ( p_enc -> fmt_out . p_extra , p_block -> p_buffer , len ) ;\n memcpy ( ( uint8_t * ) p_enc -> fmt_out . p_extra + len , eos , sizeof ( eos ) ) ;\n SetDWBE ( ( uint8_t * ) p_enc -> fmt_out . p_extra + len + sizeof ( eos ) - 4 , len ) ;\n p_enc -> fmt_out . i_extra = len + sizeof ( eos ) ;\n }\n }\n if ( ReadDiracPictureNumber ( & u_pic_num , p_block ) ) {\n block_t * p_dts_block = block_FifoGet ( p_sys -> p_dts_fifo ) ;\n p_block -> i_dts = p_dts_block -> i_dts ;\n p_block -> i_pts = GetPicturePTS ( p_enc , u_pic_num ) ;\n block_Release ( p_dts_block ) ;\n block_ChainAppend ( & p_output_chain , p_block ) ;\n }\n else {\n block_ChainAppend ( & p_output_chain , p_block ) ;\n }\n break ;\n }\n default : break ;\n }\n }\n while ( b_go ) ;\n return p_output_chain ;\n }"}
{"idx": 18108, "target": 0, "func": "static void rgb_to_rgb ( fz_context * ctx , const fz_colorspace * cs , const float * rgb , float * xyz ) {\n xyz [ 0 ] = rgb [ 0 ] ;\n xyz [ 1 ] = rgb [ 1 ] ;\n xyz [ 2 ] = rgb [ 2 ] ;\n }"}
{"idx": 18109, "target": 0, "func": "gcry_mpi_point_t make_point ( const char * x , const char * y , const char * z ) {\n gcry_mpi_point_t point ;\n point = gcry_mpi_point_new ( 0 ) ;\n gcry_mpi_point_snatch_set ( point , hex2mpi ( x ) , hex2mpi ( y ) , hex2mpi ( z ) ) ;\n return point ;\n }"}
{"idx": 18110, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( MediaStreamPermissionTest , TestDismissIsNotSticky ) {\n content : : WebContents * tab_contents = LoadTestPageInTab ( ) ;\n GetUserMediaAndDismiss ( tab_contents ) ;\n GetUserMediaAndDismiss ( tab_contents ) ;\n }"}
{"idx": 18111, "target": 0, "func": "static void sigcomp_init_udvm ( void ) {\n gchar * partial_state_str ;\n guint8 * sip_sdp_buff , * presence_buff ;\n state_buffer_table = g_hash_table_new_full ( g_str_hash , g_str_equal , g_free , g_free ) ;\n sip_sdp_buff = ( guint8 * ) g_malloc ( SIP_SDP_STATE_LENGTH + 8 ) ;\n partial_state_str = bytes_to_str ( NULL , sip_sdp_state_identifier , 6 ) ;\n memset ( sip_sdp_buff , 0 , 8 ) ;\n sip_sdp_buff [ 0 ] = SIP_SDP_STATE_LENGTH >> 8 ;\n sip_sdp_buff [ 1 ] = SIP_SDP_STATE_LENGTH & 0xff ;\n memcpy ( sip_sdp_buff + 8 , sip_sdp_static_dictionaty_for_sigcomp , SIP_SDP_STATE_LENGTH ) ;\n g_hash_table_insert ( state_buffer_table , g_strdup ( partial_state_str ) , sip_sdp_buff ) ;\n wmem_free ( NULL , partial_state_str ) ;\n presence_buff = ( guint8 * ) g_malloc ( PRESENCE_STATE_LENGTH + 8 ) ;\n partial_state_str = bytes_to_str ( NULL , presence_state_identifier , 6 ) ;\n memset ( presence_buff , 0 , 8 ) ;\n presence_buff [ 0 ] = PRESENCE_STATE_LENGTH >> 8 ;\n presence_buff [ 1 ] = PRESENCE_STATE_LENGTH & 0xff ;\n memcpy ( presence_buff + 8 , presence_static_dictionary_for_sigcomp , PRESENCE_STATE_LENGTH ) ;\n g_hash_table_insert ( state_buffer_table , g_strdup ( partial_state_str ) , presence_buff ) ;\n wmem_free ( NULL , partial_state_str ) ;\n }"}
{"idx": 18112, "target": 0, "func": "static void avi_metadata_creation_time ( AVDictionary * * metadata , char * date ) {\n char month [ 4 ] , time [ 9 ] , buffer [ 64 ] ;\n int i , day , year ;\n if ( sscanf ( date , \"%*3s%*[ ]%3s%*[ ]%2d%*[ ]%8s%*[ ]%4d\" , month , & day , time , & year ) == 4 ) {\n for ( i = 0 ;\n i < 12 ;\n i ++ ) if ( ! av_strcasecmp ( month , months [ i ] ) ) {\n snprintf ( buffer , sizeof ( buffer ) , \"%.4d-%.2d-%.2d %s\" , year , i + 1 , day , time ) ;\n av_dict_set ( metadata , \"creation_time\" , buffer , 0 ) ;\n }\n }\n else if ( date [ 4 ] == '/' && date [ 7 ] == '/' ) {\n date [ 4 ] = date [ 7 ] = '-' ;\n av_dict_set ( metadata , \"creation_time\" , date , 0 ) ;\n }\n }"}
{"idx": 18113, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PrefsFunctionalTest , TestHomepagePrefs ) {\n GURL home_page_url ( \"http://www.google.com\" ) ;\n PrefService * prefs = browser ( ) -> profile ( ) -> GetPrefs ( ) ;\n EXPECT_FALSE ( prefs -> GetBoolean ( prefs : : kHomePageIsNewTabPage ) ) ;\n EXPECT_EQ ( home_page_url . spec ( ) , prefs -> GetString ( prefs : : kHomePage ) ) ;\n }"}
{"idx": 18114, "target": 0, "func": "static void http_chunked_request_done ( struct evhttp_request * req , void * arg ) {\n if ( req -> response_code != HTTP_OK ) {\n fprintf ( stderr , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n if ( evhttp_find_header ( req -> input_headers , \"Transfer-Encoding\" ) == NULL ) {\n fprintf ( stderr , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n if ( EVBUFFER_LENGTH ( req -> input_buffer ) != 13 + 18 + 8 ) {\n fprintf ( stderr , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n if ( strncmp ( ( char * ) EVBUFFER_DATA ( req -> input_buffer ) , \"This is funnybut not hilarious.bwv 1052\" , + 18 + 8 ) ) {\n fprintf ( stderr , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n test_ok = 1 ;\n event_loopexit ( NULL ) ;\n }"}
{"idx": 18115, "target": 0, "func": "static inline bool e1000e_rx_descr_threshold_hit ( E1000ECore * core , const E1000E_RingInfo * rxi ) {\n return e1000e_ring_free_descr_num ( core , rxi ) == e1000e_ring_len ( core , rxi ) >> core -> rxbuf_min_shift ;\n }"}
{"idx": 18116, "target": 0, "func": "void aes_setkey_dec ( aes_context * ctx , const unsigned char * key , int keysize ) {\n int i , j ;\n aes_context cty ;\n unsigned long * RK ;\n unsigned long * SK ;\n switch ( keysize ) {\n case 128 : ctx -> nr = 10 ;\n break ;\n case 192 : ctx -> nr = 12 ;\n break ;\n case 256 : ctx -> nr = 14 ;\n break ;\n default : return ;\n }\n # if defined ( PADLOCK_ALIGN16 ) ctx -> rk = RK = PADLOCK_ALIGN16 ( ctx -> buf ) ;\n # else ctx -> rk = RK = ctx -> buf ;\n # endif aes_setkey_enc ( & cty , key , keysize ) ;\n SK = cty . rk + cty . nr * 4 ;\n * RK ++ = * SK ++ ;\n * RK ++ = * SK ++ ;\n * RK ++ = * SK ++ ;\n * RK ++ = * SK ++ ;\n for ( i = ctx -> nr - 1 , SK -= 8 ;\n i > 0 ;\n i -- , SK -= 8 ) {\n for ( j = 0 ;\n j < 4 ;\n j ++ , SK ++ ) {\n * RK ++ = RT0 [ FSb [ ( * SK ) & 0xFF ] ] ^ RT1 [ FSb [ ( * SK >> 8 ) & 0xFF ] ] ^ RT2 [ FSb [ ( * SK >> 16 ) & 0xFF ] ] ^ RT3 [ FSb [ ( * SK >> 24 ) & 0xFF ] ] ;\n }\n }\n * RK ++ = * SK ++ ;\n * RK ++ = * SK ++ ;\n * RK ++ = * SK ++ ;\n * RK ++ = * SK ++ ;\n memset ( & cty , 0 , sizeof ( aes_context ) ) ;\n }"}
{"idx": 18117, "target": 0, "func": "static void sig_message_own_private ( SERVER_REC * server , const char * msg , const char * target , const char * origtarget ) {\n g_return_if_fail ( server != NULL ) ;\n if ( target != NULL && query_find ( server , target ) == NULL ) SERVER_LAST_MSG_ADD ( server , target ) ;\n }"}
{"idx": 18118, "target": 0, "func": "static int dissect_pcp_message_instance_req ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , int offset ) {\n proto_item * pcp_instance_req_item ;\n proto_tree * pcp_instance_req_tree ;\n guint32 name_len ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"[%s]\" , val_to_str ( PCP_PDU_INSTANCE_REQ , packettypenames , \"Unknown Type:0x%02x\" ) ) ;\n pcp_instance_req_item = proto_tree_add_item ( tree , hf_pcp_instance_req , tvb , offset , - 1 , ENC_NA ) ;\n pcp_instance_req_tree = proto_item_add_subtree ( pcp_instance_req_item , ett_pcp ) ;\n proto_tree_add_item ( pcp_instance_req_tree , hf_pcp_instance_indom , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n offset = dissect_pcp_partial_when ( tvb , pinfo , pcp_instance_req_tree , offset ) ;\n proto_tree_add_item ( pcp_instance_req_tree , hf_pcp_pmid_inst , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( pcp_instance_req_tree , hf_pcp_instance_namelen , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n name_len = tvb_get_ntohl ( tvb , offset ) ;\n offset += 4 ;\n if ( name_len > 0 ) {\n proto_tree_add_item ( pcp_instance_req_tree , hf_pcp_instance_name , tvb , offset , name_len , ENC_ASCII | ENC_NA ) ;\n offset += name_len ;\n }\n return offset ;\n }"}
{"idx": 18119, "target": 0, "func": "void proto_reg_handoff_netbios ( void ) {\n dissector_handle_t netbios_handle ;\n netbios_handle = create_dissector_handle ( dissect_netbios , proto_netbios ) ;\n dissector_add_uint ( \"llc.dsap\" , SAP_NETBIOS , netbios_handle ) ;\n register_capture_dissector ( \"llc.dsap\" , SAP_NETBIOS , capture_netbios , proto_netbios ) ;\n }"}
{"idx": 18120, "target": 0, "func": "int archive_mstring_get_wcs ( struct archive * a , struct archive_mstring * aes , const wchar_t * * wp ) {\n int r , ret = 0 ;\n ( void ) a ;\n if ( aes -> aes_set & AES_SET_WCS ) {\n * wp = aes -> aes_wcs . s ;\n return ( ret ) ;\n }\n * wp = NULL ;\n if ( aes -> aes_set & AES_SET_MBS ) {\n archive_wstring_empty ( & ( aes -> aes_wcs ) ) ;\n r = archive_wstring_append_from_mbs ( & ( aes -> aes_wcs ) , aes -> aes_mbs . s , aes -> aes_mbs . length ) ;\n if ( r == 0 ) {\n aes -> aes_set |= AES_SET_WCS ;\n * wp = aes -> aes_wcs . s ;\n }\n else ret = - 1 ;\n }\n return ( ret ) ;\n }"}
{"idx": 18121, "target": 0, "func": "static bool all_cpu_threads_idle ( void ) {\n CPUArchState * env ;\n for ( env = first_cpu ;\n env != NULL ;\n env = env -> next_cpu ) {\n if ( ! cpu_thread_is_idle ( ENV_GET_CPU ( env ) ) ) {\n return false ;\n }\n }\n return true ;\n }"}
{"idx": 18122, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , TestClearDefault ) {\n ProtocolHandler ph1 = CreateProtocolHandler ( \"test\" , \"test1\" ) ;\n ProtocolHandler ph2 = CreateProtocolHandler ( \"test\" , \"test2\" ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph2 ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ;\n registry ( ) -> ClearDefault ( \"test\" ) ;\n ASSERT_FALSE ( registry ( ) -> IsDefault ( ph1 ) ) ;\n ASSERT_FALSE ( registry ( ) -> IsDefault ( ph2 ) ) ;\n }"}
{"idx": 18123, "target": 0, "func": "static int dissect_h245_INTEGER_0_16 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 16U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 18124, "target": 0, "func": "proto_item * proto_tree_add_format_wsp_text ( proto_tree * tree , tvbuff_t * tvb , gint start , gint length ) {\n proto_item * pi ;\n header_field_info * hfinfo ;\n CHECK_FOR_NULL_TREE ( tree ) ;\n TRY_TO_FAKE_THIS_ITEM ( tree , hf_text_only , hfinfo ) ;\n pi = proto_tree_add_text_node ( tree , tvb , start , length ) ;\n TRY_TO_FAKE_THIS_REPR ( pi ) ;\n proto_item_set_text ( pi , \"%s\" , tvb_format_text_wsp ( tvb , start , length ) ) ;\n return pi ;\n }"}
{"idx": 18125, "target": 0, "func": "long jas_stream_seek ( jas_stream_t * stream , long offset , int origin ) {\n long newpos ;\n assert ( ! ( ( stream -> bufmode_ & JAS_STREAM_RDBUF ) && ( stream -> bufmode_ & JAS_STREAM_WRBUF ) ) ) ;\n stream -> flags_ &= ~ JAS_STREAM_EOF ;\n if ( stream -> bufmode_ & JAS_STREAM_RDBUF ) {\n if ( origin == SEEK_CUR ) {\n offset -= stream -> cnt_ ;\n }\n }\n else if ( stream -> bufmode_ & JAS_STREAM_WRBUF ) {\n if ( jas_stream_flush ( stream ) ) {\n return - 1 ;\n }\n }\n stream -> cnt_ = 0 ;\n stream -> ptr_ = stream -> bufstart_ ;\n stream -> bufmode_ &= ~ ( JAS_STREAM_RDBUF | JAS_STREAM_WRBUF ) ;\n if ( ( newpos = ( * stream -> ops_ -> seek_ ) ( stream -> obj_ , offset , origin ) ) < 0 ) {\n return - 1 ;\n }\n return newpos ;\n }"}
{"idx": 18126, "target": 0, "func": "static inline PixelTrait GetPixelMagentaTraits ( const Image * restrict image ) {\n return ( image -> channel_map [ MagentaPixelChannel ] . traits ) ;\n }"}
{"idx": 18127, "target": 0, "func": "static int dissect_h225_INTEGER_0_4294967295 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 4294967295U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 18128, "target": 0, "func": "TEST_F ( AccountChooserDialogAndroidTest , CheckHistogramsReportingOneAccountChoosenViaSigninButton ) {\n base : : HistogramTester histogram_tester ;\n AccountChooserDialogAndroid * dialog = CreateDialogOneAccount ( ) ;\n dialog -> OnCredentialClicked ( base : : android : : AttachCurrentThread ( ) , nullptr , , static_cast < int > ( password_manager : : CredentialType : : CREDENTIAL_TYPE_PASSWORD ) , true ) ;\n dialog -> Destroy ( base : : android : : AttachCurrentThread ( ) , nullptr ) ;\n histogram_tester . ExpectUniqueSample ( \"PasswordManager.AccountChooserDialog\" , password_manager : : metrics_util : : ACCOUNT_CHOOSER_SIGN_IN , 1 ) ;\n histogram_tester . ExpectUniqueSample ( \"PasswordManager.AccountChooserDialogOneAccount\" , password_manager : : metrics_util : : ACCOUNT_CHOOSER_SIGN_IN , 1 ) ;\n histogram_tester . ExpectTotalCount ( \"PasswordManager.AccountChooserDialogMultipleAccounts\" , 0 ) ;\n }"}
{"idx": 18129, "target": 0, "func": "TEST ( ExtensionCSPValidator , EffectiveSandboxedPageCSP ) {\n EXPECT_TRUE ( CheckCSP ( SanitizeSandboxPageCSP ( \"\" ) , \"child-src 'self';\n script-src 'self' 'unsafe-inline' 'unsafe-eval';\n\" ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeSandboxPageCSP ( \"child-src http://www.google.com\" ) , \"child-src 'self';\n script-src 'self' 'unsafe-inline' 'unsafe-eval';\n\" , InsecureValueWarning ( \"child-src\" , \"http://www.google.com\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeSandboxPageCSP ( \"child-src *\" ) , \"child-src 'self';\n script-src 'self' 'unsafe-inline' 'unsafe-eval';\n\" , InsecureValueWarning ( \"child-src\" , \"*\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeSandboxPageCSP ( \"child-src 'none'\" ) , \"child-src 'none';\n script-src 'self' 'unsafe-inline' 'unsafe-eval';\n\" ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeSandboxPageCSP ( \"script-src 'none';\n frame-src 'self';\n\" ) , \"frame-src 'self';\n script-src 'none';\n\" ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeSandboxPageCSP ( \"script-src 'none';\n frame-src 'self' http://www.google.com;\n\" ) , \"frame-src 'self';\n script-src 'none';\n\" , InsecureValueWarning ( \"frame-src\" , \"http://www.google.com\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeSandboxPageCSP ( \"script-src 'self'\" ) , \"script-src 'self';\n child-src 'self'\" ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeSandboxPageCSP ( \"script-src 'self' 'unsafe-inline';\n child-src 'self';\n\" ) , \"child-src 'self';\n script-src 'self' 'unsafe-inline';\n\" ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeSandboxPageCSP ( \"script-src 'self' 'unsafe-eval';\n child-src 'self';\n\" ) , \"child-src 'self';\n script-src 'self' 'unsafe-eval';\n\" ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeSandboxPageCSP ( \"script-src 'none';\n frame-src 'self' http://www.google.com;\n\" ) , \"frame-src 'self';\n script-src 'none';\n\" , InsecureValueWarning ( \"frame-src\" , \"http://www.google.com\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeSandboxPageCSP ( \"script-src 'none';\n child-src 'self' http://www.google.com;\n\" ) , \"child-src 'self';\n script-src 'none';\n\" , InsecureValueWarning ( \"child-src\" , \"http://www.google.com\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeSandboxPageCSP ( \"script-src 'none';\n child-src http://bar.com 'self' http://foo.com;\n\" ) , \"child-src 'self';\n script-src 'none';\n\" , InsecureValueWarning ( \"child-src\" , \"http://bar.com\" ) , InsecureValueWarning ( \"child-src\" , \"http://foo.com\" ) ) ) ;\n }"}
{"idx": 18130, "target": 1, "func": "IN_PROC_BROWSER_TEST_P ( BrowserCloseManagerWithDownloadsBrowserTest , TestWithOffTheRecordWindowAndRegularDownload ) {\n Profile * otr_profile = browser ( ) -> profile ( ) -> GetOffTheRecordProfile ( ) ;\n SetDownloadPathForProfile ( otr_profile ) ;\n Browser * otr_browser = CreateBrowser ( otr_profile ) ;\n ASSERT_NO_FATAL_FAILURE ( CreateStalledDownload ( browser ( ) ) ) ;\n content : : TestNavigationObserver navigation_observer ( otr_browser -> tab_strip_model ( ) -> GetActiveWebContents ( ) , 1 ) ;\n ui_test_utils : : NavigateToURL ( otr_browser , GURL ( \"about:blank\" ) ) ;\n navigation_observer . Wait ( ) ;\n int num_downloads_blocking = 0 ;\n ASSERT_EQ ( Browser : : DOWNLOAD_CLOSE_OK , otr_browser -> OkToCloseWithInProgressDownloads ( & num_downloads_blocking ) ) ;\n ASSERT_EQ ( 0 , num_downloads_blocking ) ;\n {\n RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , 1 ) ;\n otr_browser -> window ( ) -> Close ( ) ;\n close_observer . Wait ( ) ;\n }\n ASSERT_EQ ( Browser : : DOWNLOAD_CLOSE_BROWSER_SHUTDOWN , browser ( ) -> OkToCloseWithInProgressDownloads ( & num_downloads_blocking ) ) ;\n ASSERT_EQ ( 1 , num_downloads_blocking ) ;\n {\n RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , 2 ) ;\n TestBrowserCloseManager : : AttemptClose ( TestBrowserCloseManager : : USER_CHOICE_USER_ALLOWS_CLOSE ) ;\n close_observer . Wait ( ) ;\n }\n EXPECT_TRUE ( browser_shutdown : : IsTryingToQuit ( ) ) ;\n EXPECT_TRUE ( BrowserList : : GetInstance ( ) -> empty ( ) ) ;\n if ( browser_defaults : : kBrowserAliveWithNoWindows ) EXPECT_EQ ( 1 , DownloadCoreService : : NonMaliciousDownloadCountAllProfiles ( ) ) ;\n else EXPECT_EQ ( 0 , DownloadCoreService : : NonMaliciousDownloadCountAllProfiles ( ) ) ;\n }"}
{"idx": 18131, "target": 0, "func": "static int do_cmd ( xd3_stream * stream , const char * buf ) {\n int ret ;\n if ( ( ret = system ( buf ) ) != 0 ) {\n if ( WIFEXITED ( ret ) ) {\n stream -> msg = \"command exited non-zero\" ;\n IF_DEBUG1 ( XPR ( NT \"command was: %s\\n\" , buf ) ) ;\n }\n else {\n stream -> msg = \"abnormal command termination\" ;\n }\n return ret ;\n }\n return 0 ;\n }"}
{"idx": 18132, "target": 0, "func": "static int ebml_read_float ( AVIOContext * pb , int size , double * num ) {\n if ( size == 0 ) * num = 0 ;\n else if ( size == 4 ) * num = av_int2float ( avio_rb32 ( pb ) ) ;\n else if ( size == 8 ) * num = av_int2double ( avio_rb64 ( pb ) ) ;\n else return AVERROR_INVALIDDATA ;\n return 0 ;\n }"}
{"idx": 18133, "target": 0, "func": "void mainwindows_resize ( int width , int height ) {\n int xdiff , ydiff ;\n xdiff = width - screen_width ;\n ydiff = height - screen_height ;\n screen_width = width ;\n screen_height = height ;\n if ( ydiff > 0 ) {\n MAIN_WINDOW_REC * rec ;\n GSList * line , * tmp ;\n line = mainwindows_get_line ( mainwindows_find_upper ( NULL ) ) ;\n for ( tmp = line ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n rec = tmp -> data ;\n rec -> last_line += ydiff ;\n mainwindow_resize ( rec , 0 , ydiff ) ;\n }\n g_slist_free ( line ) ;\n }\n if ( xdiff > 0 ) {\n MAIN_WINDOW_REC * win ;\n for ( win = mainwindows_find_lower ( NULL ) ;\n win != NULL ;\n win = mainwindows_find_lower ( win ) ) {\n mainwindows_rresize_line ( xdiff , win ) ;\n }\n }\n if ( xdiff < 0 ) {\n MAIN_WINDOW_REC * win ;\n for ( win = mainwindows_find_lower ( NULL ) ;\n win != NULL ;\n win = mainwindows_find_lower ( win ) ) {\n int max_windows , i , last_column ;\n GSList * line , * tmp ;\n line = mainwindows_get_line ( win ) ;\n max_windows = ( screen_width + 1 ) / ( NEW_WINDOW_WIDTH + 1 ) ;\n if ( max_windows < 1 ) max_windows = 1 ;\n last_column = screen_width - 1 ;\n for ( tmp = line , i = 0 ;\n tmp != NULL ;\n tmp = tmp -> next , i ++ ) {\n MAIN_WINDOW_REC * rec = tmp -> data ;\n if ( i >= max_windows ) mainwindow_destroy_half ( rec ) ;\n else last_column = rec -> last_column ;\n }\n win = line -> data ;\n g_slist_free ( line ) ;\n mainwindows_rresize_line ( screen_width - last_column + 1 , win ) ;\n }\n }\n if ( ydiff < 0 ) {\n mainwindows_resize_smaller ( ydiff ) ;\n }\n signal_emit ( \"terminal resized\" , 0 ) ;\n irssi_redraw ( ) ;\n }"}
{"idx": 18134, "target": 0, "func": "static int string_buffer_getbuffer ( PyStringObject * self , Py_buffer * view , int flags ) {\n return PyBuffer_FillInfo ( view , ( PyObject * ) self , ( void * ) self -> ob_sval , Py_SIZE ( self ) , 1 , flags ) ;\n }"}
{"idx": 18135, "target": 1, "func": "static void auto_partition_range ( VP9_COMP * cpi , const TileInfo * const tile , int mi_row , int mi_col , BLOCK_SIZE * min_block_size , BLOCK_SIZE * max_block_size ) {\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCKD * const xd = & cpi -> mb . e_mbd ;\n MODE_INFO * * mi_8x8 = xd -> mi ;\n const int left_in_image = xd -> left_available && mi_8x8 [ - 1 ] ;\n const int above_in_image = xd -> up_available && mi_8x8 [ - xd -> mi_stride ] ;\n int row8x8_remaining = tile -> mi_row_end - mi_row ;\n int col8x8_remaining = tile -> mi_col_end - mi_col ;\n int bh , bw ;\n BLOCK_SIZE min_size = BLOCK_32X32 ;\n BLOCK_SIZE max_size = BLOCK_8X8 ;\n int bsl = mi_width_log2 ( BLOCK_64X64 ) ;\n const int search_range_ctrl = ( ( ( mi_row + mi_col ) >> bsl ) + get_chessboard_index ( cm -> current_video_frame ) ) & 0x1 ;\n if ( search_range_ctrl && ( left_in_image || above_in_image || cm -> frame_type != KEY_FRAME ) ) {\n int block ;\n MODE_INFO * * mi ;\n BLOCK_SIZE sb_type ;\n if ( left_in_image ) {\n MODE_INFO * cur_mi ;\n mi = & mi_8x8 [ - 1 ] ;\n for ( block = 0 ;\n block < MI_BLOCK_SIZE ;\n ++ block ) {\n cur_mi = mi [ block * xd -> mi_stride ] ;\n sb_type = cur_mi ? cur_mi -> mbmi . sb_type : 0 ;\n min_size = MIN ( min_size , sb_type ) ;\n max_size = MAX ( max_size , sb_type ) ;\n }\n }\n if ( above_in_image ) {\n mi = & mi_8x8 [ - xd -> mi_stride * MI_BLOCK_SIZE ] ;\n for ( block = 0 ;\n block < MI_BLOCK_SIZE ;\n ++ block ) {\n sb_type = mi [ block ] ? mi [ block ] -> mbmi . sb_type : 0 ;\n min_size = MIN ( min_size , sb_type ) ;\n max_size = MAX ( max_size , sb_type ) ;\n }\n }\n min_size = min_partition_size [ min_size ] ;\n max_size = find_partition_size ( max_size , row8x8_remaining , col8x8_remaining , & bh , & bw ) ;\n min_size = MIN ( min_size , max_size ) ;\n min_size = MAX ( min_size , BLOCK_8X8 ) ;\n max_size = MIN ( max_size , BLOCK_32X32 ) ;\n }\n else {\n min_size = BLOCK_8X8 ;\n max_size = BLOCK_32X32 ;\n }\n * min_block_size = min_size ;\n * max_block_size = max_size ;\n }"}
{"idx": 18136, "target": 0, "func": "static void mips_fulong2e_init ( QEMUMachineInitArgs * args ) {\n ram_addr_t ram_size = args -> ram_size ;\n const char * cpu_model = args -> cpu_model ;\n const char * kernel_filename = args -> kernel_filename ;\n const char * kernel_cmdline = args -> kernel_cmdline ;\n const char * initrd_filename = args -> initrd_filename ;\n char * filename ;\n MemoryRegion * address_space_mem = get_system_memory ( ) ;\n MemoryRegion * ram = g_new ( MemoryRegion , 1 ) ;\n MemoryRegion * bios = g_new ( MemoryRegion , 1 ) ;\n long bios_size ;\n int64_t kernel_entry ;\n qemu_irq * i8259 ;\n qemu_irq * cpu_exit_irq ;\n PCIBus * pci_bus ;\n ISABus * isa_bus ;\n i2c_bus * smbus ;\n int i ;\n DriveInfo * hd [ MAX_IDE_BUS * MAX_IDE_DEVS ] ;\n MIPSCPU * cpu ;\n CPUMIPSState * env ;\n if ( cpu_model == NULL ) {\n cpu_model = \"Loongson-2E\" ;\n }\n cpu = cpu_mips_init ( cpu_model ) ;\n if ( cpu == NULL ) {\n fprintf ( stderr , \"Unable to find CPU definition\\n\" ) ;\n exit ( 1 ) ;\n }\n env = & cpu -> env ;\n qemu_register_reset ( main_cpu_reset , cpu ) ;\n ram_size = 256 * 1024 * 1024 ;\n bios_size = 1024 * 1024 ;\n memory_region_init_ram ( ram , NULL , \"fulong2e.ram\" , ram_size ) ;\n vmstate_register_ram_global ( ram ) ;\n memory_region_init_ram ( bios , NULL , \"fulong2e.bios\" , bios_size ) ;\n vmstate_register_ram_global ( bios ) ;\n memory_region_set_readonly ( bios , true ) ;\n memory_region_add_subregion ( address_space_mem , 0 , ram ) ;\n memory_region_add_subregion ( address_space_mem , 0x1fc00000LL , bios ) ;\n if ( kernel_filename ) {\n loaderparams . ram_size = ram_size ;\n loaderparams . kernel_filename = kernel_filename ;\n loaderparams . kernel_cmdline = kernel_cmdline ;\n loaderparams . initrd_filename = initrd_filename ;\n kernel_entry = load_kernel ( env ) ;\n write_bootloader ( env , memory_region_get_ram_ptr ( bios ) , kernel_entry ) ;\n }\n else {\n if ( bios_name == NULL ) {\n bios_name = FULONG_BIOSNAME ;\n }\n filename = qemu_find_file ( QEMU_FILE_TYPE_BIOS , bios_name ) ;\n if ( filename ) {\n bios_size = load_image_targphys ( filename , 0x1fc00000LL , BIOS_SIZE ) ;\n g_free ( filename ) ;\n }\n else {\n bios_size = - 1 ;\n }\n if ( ( bios_size < 0 || bios_size > BIOS_SIZE ) && ! kernel_filename ) {\n fprintf ( stderr , \"qemu: Could not load MIPS bios '%s'\\n\" , bios_name ) ;\n exit ( 1 ) ;\n }\n }\n cpu_mips_irq_init_cpu ( env ) ;\n cpu_mips_clock_init ( env ) ;\n pci_bus = bonito_init ( ( qemu_irq * ) & ( env -> irq [ 2 ] ) ) ;\n ide_drive_get ( hd , MAX_IDE_BUS ) ;\n isa_bus = vt82c686b_init ( pci_bus , PCI_DEVFN ( FULONG2E_VIA_SLOT , 0 ) ) ;\n if ( ! isa_bus ) {\n fprintf ( stderr , \"vt82c686b_init error\\n\" ) ;\n exit ( 1 ) ;\n }\n i8259 = i8259_init ( isa_bus , env -> irq [ 5 ] ) ;\n isa_bus_irqs ( isa_bus , i8259 ) ;\n vt82c686b_ide_init ( pci_bus , hd , PCI_DEVFN ( FULONG2E_VIA_SLOT , 1 ) ) ;\n pci_create_simple ( pci_bus , PCI_DEVFN ( FULONG2E_VIA_SLOT , 2 ) , \"vt82c686b-usb-uhci\" ) ;\n pci_create_simple ( pci_bus , PCI_DEVFN ( FULONG2E_VIA_SLOT , 3 ) , \"vt82c686b-usb-uhci\" ) ;\n smbus = vt82c686b_pm_init ( pci_bus , PCI_DEVFN ( FULONG2E_VIA_SLOT , 4 ) , 0xeee1 , NULL ) ;\n smbus_eeprom_init ( smbus , 1 , eeprom_spd , sizeof ( eeprom_spd ) ) ;\n pit = pit_init ( isa_bus , 0x40 , 0 , NULL ) ;\n cpu_exit_irq = qemu_allocate_irqs ( cpu_request_exit , NULL , 1 ) ;\n DMA_init ( 0 , cpu_exit_irq ) ;\n isa_create_simple ( isa_bus , \"i8042\" ) ;\n rtc_init ( isa_bus , 2000 , NULL ) ;\n for ( i = 0 ;\n i < MAX_SERIAL_PORTS ;\n i ++ ) {\n if ( serial_hds [ i ] ) {\n serial_isa_init ( isa_bus , i , serial_hds [ i ] ) ;\n }\n }\n if ( parallel_hds [ 0 ] ) {\n parallel_init ( isa_bus , 0 , parallel_hds [ 0 ] ) ;\n }\n audio_init ( pci_bus ) ;\n network_init ( pci_bus ) ;\n }"}
{"idx": 18137, "target": 0, "func": "static inline MagickRealType AbsolutePixelValue ( const MagickRealType x ) {\n return ( x < 0.0f ? - x : x ) ;\n }"}
{"idx": 18138, "target": 0, "func": "void mime_hdr_presence_set ( MIMEHdrImpl * h , const char * well_known_str ) {\n uint64_t mask = mime_field_presence_mask ( well_known_str ) ;\n if ( mask != 0 ) {\n h -> m_presence_bits |= mask ;\n }\n }"}
{"idx": 18139, "target": 0, "func": "static int dissect_h245_G7231AnnexCCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_G7231AnnexCCapability , G7231AnnexCCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 18140, "target": 0, "func": "static long timelib_parse_tz_cor ( char * * ptr ) {\n char * begin = * ptr , * end ;\n long tmp ;\n while ( isdigit ( * * ptr ) || * * ptr == ':' ) {\n ++ * ptr ;\n }\n end = * ptr ;\n switch ( end - begin ) {\n case 1 : case 2 : return HOUR ( strtol ( begin , NULL , 10 ) ) ;\n break ;\n case 3 : case 4 : if ( begin [ 1 ] == ':' ) {\n tmp = HOUR ( strtol ( begin , NULL , 10 ) ) + strtol ( begin + 2 , NULL , 10 ) ;\n return tmp ;\n }\n else if ( begin [ 2 ] == ':' ) {\n tmp = HOUR ( strtol ( begin , NULL , 10 ) ) + strtol ( begin + 3 , NULL , 10 ) ;\n return tmp ;\n }\n else {\n tmp = strtol ( begin , NULL , 10 ) ;\n return HOUR ( tmp / 100 ) + tmp % 100 ;\n }\n case 5 : tmp = HOUR ( strtol ( begin , NULL , 10 ) ) + strtol ( begin + 3 , NULL , 10 ) ;\n return tmp ;\n }\n return 0 ;\n }"}
{"idx": 18141, "target": 0, "func": "int archive_mstring_get_mbs_l ( struct archive_mstring * aes , const char * * p , size_t * length , struct archive_string_conv * sc ) {\n int r , ret = 0 ;\n # if defined ( _WIN32 ) && ! defined ( __CYGWIN__ ) if ( sc != NULL && ( aes -> aes_set & AES_SET_WCS ) != 0 ) {\n archive_string_empty ( & ( aes -> aes_mbs_in_locale ) ) ;\n r = archive_string_append_from_wcs_in_codepage ( & ( aes -> aes_mbs_in_locale ) , aes -> aes_wcs . s , aes -> aes_wcs . length , sc ) ;\n if ( r == 0 ) {\n * p = aes -> aes_mbs_in_locale . s ;\n if ( length != NULL ) * length = aes -> aes_mbs_in_locale . length ;\n return ( 0 ) ;\n }\n else if ( errno == ENOMEM ) return ( - 1 ) ;\n else ret = - 1 ;\n }\n # endif if ( ( aes -> aes_set & AES_SET_MBS ) == 0 && ( aes -> aes_set & AES_SET_WCS ) != 0 ) {\n archive_string_empty ( & ( aes -> aes_mbs ) ) ;\n r = archive_string_append_from_wcs ( & ( aes -> aes_mbs ) , aes -> aes_wcs . s , aes -> aes_wcs . length ) ;\n if ( r == 0 ) aes -> aes_set |= AES_SET_MBS ;\n else if ( errno == ENOMEM ) return ( - 1 ) ;\n else ret = - 1 ;\n }\n if ( aes -> aes_set & AES_SET_MBS ) {\n if ( sc == NULL ) {\n * p = aes -> aes_mbs . s ;\n if ( length != NULL ) * length = aes -> aes_mbs . length ;\n return ( 0 ) ;\n }\n ret = archive_strncpy_l ( & ( aes -> aes_mbs_in_locale ) , aes -> aes_mbs . s , aes -> aes_mbs . length , sc ) ;\n * p = aes -> aes_mbs_in_locale . s ;\n if ( length != NULL ) * length = aes -> aes_mbs_in_locale . length ;\n }\n else {\n * p = NULL ;\n if ( length != NULL ) * length = 0 ;\n }\n return ( ret ) ;\n }"}
{"idx": 18142, "target": 0, "func": "TEST ( IdlCompiler , OptionalArguments ) {\n base : : ListValue list ;\n std : : unique_ptr < Function7 : : Params > f7_params = Function7 : : Params : : Create ( list ) ;\n EXPECT_EQ ( NULL , f7_params -> arg . get ( ) ) ;\n list . AppendInteger ( 7 ) ;\n f7_params = Function7 : : Params : : Create ( list ) ;\n EXPECT_EQ ( 7 , * ( f7_params -> arg ) ) ;\n list . Clear ( ) ;\n list . AppendInteger ( 8 ) ;\n std : : unique_ptr < Function8 : : Params > f8_params = Function8 : : Params : : Create ( list ) ;\n EXPECT_EQ ( 8 , f8_params -> arg1 ) ;\n EXPECT_EQ ( NULL , f8_params -> arg2 . get ( ) ) ;\n list . AppendString ( \"foo\" ) ;\n f8_params = Function8 : : Params : : Create ( list ) ;\n EXPECT_EQ ( 8 , f8_params -> arg1 ) ;\n EXPECT_EQ ( \"foo\" , * ( f8_params -> arg2 ) ) ;\n list . Clear ( ) ;\n std : : unique_ptr < Function9 : : Params > f9_params = Function9 : : Params : : Create ( list ) ;\n EXPECT_EQ ( NULL , f9_params -> arg . get ( ) ) ;\n list . Clear ( ) ;\n std : : unique_ptr < base : : DictionaryValue > tmp ( new base : : DictionaryValue ( ) ) ;\n tmp -> SetInteger ( \"x\" , 17 ) ;\n tmp -> SetString ( \"y\" , \"hello\" ) ;\n tmp -> SetString ( \"z\" , \"zstring\" ) ;\n tmp -> SetString ( \"a\" , \"astring\" ) ;\n tmp -> SetString ( \"b\" , \"bstring\" ) ;\n tmp -> SetString ( \"c\" , \"cstring\" ) ;\n list . Append ( std : : move ( tmp ) ) ;\n f9_params = Function9 : : Params : : Create ( list ) ;\n ASSERT_TRUE ( f9_params -> arg . get ( ) != NULL ) ;\n MyType1 * t1 = f9_params -> arg . get ( ) ;\n EXPECT_EQ ( 17 , t1 -> x ) ;\n EXPECT_EQ ( \"hello\" , t1 -> y ) ;\n }"}
{"idx": 18143, "target": 0, "func": "static void dtap_tp_epc_close_ue_test_loop ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_len = len ;\n curr_offset = offset ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_TP_EPC_UE_TEST_LOOP_MODE , NULL ) ;\n switch ( epc_test_loop_mode ) {\n case 0 : ELEM_MAND_LV ( GSM_A_PDU_TYPE_DTAP , DE_TP_EPC_UE_TL_A_LB_SETUP , NULL ) ;\n break ;\n case 1 : ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_TP_EPC_UE_TL_B_LB_SETUP , NULL ) ;\n break ;\n case 2 : ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_TP_EPC_UE_TL_C_SETUP , NULL ) ;\n break ;\n default : break ;\n }\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 18144, "target": 0, "func": "static void dump_string ( const byte * p , size_t n , int delim ) {\n for ( ;\n n ;\n n -- , p ++ ) {\n if ( ( * p & 0x80 ) || iscntrl ( * p ) || * p == delim ) {\n if ( * p == '\\n' ) log_printf ( \"\\\\n\" ) ;\n else if ( * p == '\\r' ) log_printf ( \"\\\\r\" ) ;\n else if ( * p == '\\f' ) log_printf ( \"\\\\f\" ) ;\n else if ( * p == '\\v' ) log_printf ( \"\\\\v\" ) ;\n else if ( * p == '\\b' ) log_printf ( \"\\\\b\" ) ;\n else if ( ! * p ) log_printf ( \"\\\\0\" ) ;\n else log_printf ( \"\\\\x%02x\" , * p ) ;\n }\n else log_printf ( \"%c\" , * p ) ;\n }\n }"}
{"idx": 18145, "target": 0, "func": "DEFINE_TEST ( test_read_format_mtree_nomagic_v1_form ) {\n const char reffile [ ] = \"test_read_format_mtree_nomagic.mtree\" ;\n char buff [ 16 ] ;\n struct archive_entry * ae ;\n struct archive * a ;\n FILE * f ;\n extract_reference_file ( reffile ) ;\n assert ( ( a = archive_read_new ( ) ) != NULL ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_support_filter_all ( a ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_support_format_all ( a ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_set_options ( a , \"mtree:checkfs\" ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_open_filename ( a , reffile , 11 ) ) ;\n f = fopen ( \"file\" , \"wb\" ) ;\n assert ( f != NULL ) ;\n assertEqualInt ( 3 , fwrite ( \"hi\\n\" , 1 , 3 , f ) ) ;\n fclose ( f ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualInt ( archive_format ( a ) , ARCHIVE_FORMAT_MTREE ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"file\" ) ;\n assertEqualInt ( archive_entry_uid ( ae ) , 18 ) ;\n assertEqualInt ( AE_IFREG , archive_entry_filetype ( ae ) ) ;\n assertEqualInt ( archive_entry_mode ( ae ) , AE_IFREG | 0123 ) ;\n assertEqualInt ( archive_entry_size ( ae ) , 3 ) ;\n assertEqualInt ( 3 , archive_read_data ( a , buff , 3 ) ) ;\n assertEqualMem ( buff , \"hi\\n\" , 3 ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir\" ) ;\n assertEqualInt ( AE_IFDIR , archive_entry_filetype ( ae ) ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir/file with space\" ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"file with space\" ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2\" ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2/dir3a\" ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2/dir3a/indir3a\" ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2/fullindir2\" ) ;\n assertEqualInt ( archive_entry_mode ( ae ) , AE_IFREG | 0644 ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2/indir2\" ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2/dir3b\" ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"dir2/dir3b/indir3b\" ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"notindir\" ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_EOF , archive_read_next_header ( a , & ae ) ) ;\n assertEqualInt ( 12 , archive_file_count ( a ) ) ;\n assertEqualInt ( ARCHIVE_OK , archive_read_close ( a ) ) ;\n assertEqualInt ( ARCHIVE_OK , archive_read_free ( a ) ) ;\n }"}
{"idx": 18146, "target": 0, "func": "TSReturnCode sdk_sanity_check_alt_info ( TSHttpAltInfo info ) {\n if ( info == nullptr ) {\n return TS_ERROR ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 18147, "target": 0, "func": "static void pdf_run_BT ( fz_context * ctx , pdf_processor * proc ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pr -> tos . tm = fz_identity ;\n pr -> tos . tlm = fz_identity ;\n }"}
{"idx": 18148, "target": 0, "func": "static UBool U_CALLCONV _enumPropertyStartsRange ( const void * context , UChar32 start , UChar32 end , uint32_t value ) {\n ( void ) end ;\n ( void ) value ;\n const USetAdder * sa = ( const USetAdder * ) context ;\n sa -> add ( sa -> set , start ) ;\n return TRUE ;\n }"}
{"idx": 18149, "target": 0, "func": "static void pdf_process_stream ( fz_context * ctx , pdf_processor * proc , pdf_csi * csi , fz_stream * stm ) {\n pdf_document * doc = csi -> doc ;\n pdf_lexbuf * buf = csi -> buf ;\n fz_cookie * cookie = csi -> cookie ;\n pdf_token tok = PDF_TOK_ERROR ;\n int in_text_array = 0 ;\n int syntax_errors = 0 ;\n pdf_clear_stack ( ctx , csi ) ;\n fz_var ( in_text_array ) ;\n fz_var ( tok ) ;\n if ( cookie ) {\n cookie -> progress_max = - 1 ;\n cookie -> progress = 0 ;\n }\n do {\n fz_try ( ctx ) {\n do {\n if ( cookie ) {\n if ( cookie -> abort ) {\n tok = PDF_TOK_EOF ;\n break ;\n }\n cookie -> progress ++ ;\n }\n tok = pdf_lex ( ctx , stm , buf ) ;\n if ( in_text_array ) {\n switch ( tok ) {\n case PDF_TOK_CLOSE_ARRAY : in_text_array = 0 ;\n break ;\n case PDF_TOK_REAL : pdf_array_push_drop ( ctx , csi -> obj , pdf_new_real ( ctx , doc , buf -> f ) ) ;\n break ;\n case PDF_TOK_INT : pdf_array_push_drop ( ctx , csi -> obj , pdf_new_int ( ctx , doc , buf -> i ) ) ;\n break ;\n case PDF_TOK_STRING : pdf_array_push_drop ( ctx , csi -> obj , pdf_new_string ( ctx , doc , buf -> scratch , buf -> len ) ) ;\n break ;\n case PDF_TOK_EOF : break ;\n case PDF_TOK_KEYWORD : if ( buf -> scratch [ 0 ] == 'T' && ( buf -> scratch [ 1 ] == 'w' || buf -> scratch [ 1 ] == 'c' ) && buf -> scratch [ 2 ] == 0 ) {\n int n = pdf_array_len ( ctx , csi -> obj ) ;\n if ( n > 0 ) {\n pdf_obj * o = pdf_array_get ( ctx , csi -> obj , n - 1 ) ;\n if ( pdf_is_number ( ctx , o ) ) {\n csi -> stack [ 0 ] = pdf_to_real ( ctx , o ) ;\n pdf_array_delete ( ctx , csi -> obj , n - 1 ) ;\n pdf_process_keyword ( ctx , proc , csi , stm , buf -> scratch ) ;\n }\n }\n }\n default : fz_throw ( ctx , FZ_ERROR_SYNTAX , \"syntax error in array\" ) ;\n }\n }\n else switch ( tok ) {\n case PDF_TOK_ENDSTREAM : case PDF_TOK_EOF : tok = PDF_TOK_EOF ;\n break ;\n case PDF_TOK_OPEN_ARRAY : if ( csi -> obj ) {\n pdf_drop_obj ( ctx , csi -> obj ) ;\n csi -> obj = NULL ;\n }\n if ( csi -> in_text ) {\n in_text_array = 1 ;\n csi -> obj = pdf_new_array ( ctx , doc , 4 ) ;\n }\n else {\n csi -> obj = pdf_parse_array ( ctx , doc , stm , buf ) ;\n }\n break ;\n case PDF_TOK_OPEN_DICT : if ( csi -> obj ) {\n pdf_drop_obj ( ctx , csi -> obj ) ;\n csi -> obj = NULL ;\n }\n csi -> obj = pdf_parse_dict ( ctx , doc , stm , buf ) ;\n break ;\n case PDF_TOK_NAME : if ( csi -> name [ 0 ] ) {\n pdf_drop_obj ( ctx , csi -> obj ) ;\n csi -> obj = NULL ;\n csi -> obj = pdf_new_name ( ctx , doc , buf -> scratch ) ;\n }\n else fz_strlcpy ( csi -> name , buf -> scratch , sizeof ( csi -> name ) ) ;\n break ;\n case PDF_TOK_INT : if ( csi -> top < nelem ( csi -> stack ) ) {\n csi -> stack [ csi -> top ] = buf -> i ;\n csi -> top ++ ;\n }\n else fz_throw ( ctx , FZ_ERROR_SYNTAX , \"stack overflow\" ) ;\n break ;\n case PDF_TOK_REAL : if ( csi -> top < nelem ( csi -> stack ) ) {\n csi -> stack [ csi -> top ] = buf -> f ;\n csi -> top ++ ;\n }\n else fz_throw ( ctx , FZ_ERROR_SYNTAX , \"stack overflow\" ) ;\n break ;\n case PDF_TOK_STRING : if ( buf -> len <= sizeof ( csi -> string ) ) {\n memcpy ( csi -> string , buf -> scratch , buf -> len ) ;\n csi -> string_len = buf -> len ;\n }\n else {\n if ( csi -> obj ) {\n pdf_drop_obj ( ctx , csi -> obj ) ;\n csi -> obj = NULL ;\n }\n csi -> obj = pdf_new_string ( ctx , doc , buf -> scratch , buf -> len ) ;\n }\n break ;\n case PDF_TOK_KEYWORD : pdf_process_keyword ( ctx , proc , csi , stm , buf -> scratch ) ;\n pdf_clear_stack ( ctx , csi ) ;\n break ;\n default : fz_throw ( ctx , FZ_ERROR_SYNTAX , \"syntax error in content stream\" ) ;\n }\n }\n while ( tok != PDF_TOK_EOF ) ;\n }\n fz_always ( ctx ) {\n pdf_clear_stack ( ctx , csi ) ;\n }\n fz_catch ( ctx ) {\n int caught = fz_caught ( ctx ) ;\n if ( cookie ) {\n if ( caught == FZ_ERROR_TRYLATER ) {\n if ( cookie -> incomplete_ok ) cookie -> incomplete ++ ;\n else fz_rethrow ( ctx ) ;\n }\n else if ( caught == FZ_ERROR_ABORT ) {\n fz_rethrow ( ctx ) ;\n }\n else if ( caught == FZ_ERROR_SYNTAX ) {\n cookie -> errors ++ ;\n if ( ++ syntax_errors >= MAX_SYNTAX_ERRORS ) {\n fz_warn ( ctx , \"too many syntax errors;\n ignoring rest of page\" ) ;\n tok = PDF_TOK_EOF ;\n }\n }\n else {\n cookie -> errors ++ ;\n fz_warn ( ctx , \"unrecoverable error;\n ignoring rest of page\" ) ;\n tok = PDF_TOK_EOF ;\n }\n }\n else {\n if ( caught == FZ_ERROR_TRYLATER ) fz_rethrow ( ctx ) ;\n else if ( caught == FZ_ERROR_ABORT ) fz_rethrow ( ctx ) ;\n else if ( caught == FZ_ERROR_SYNTAX ) {\n if ( ++ syntax_errors >= MAX_SYNTAX_ERRORS ) {\n fz_warn ( ctx , \"too many syntax errors;\n ignoring rest of page\" ) ;\n tok = PDF_TOK_EOF ;\n }\n }\n else {\n fz_warn ( ctx , \"unrecoverable error;\n ignoring rest of page\" ) ;\n tok = PDF_TOK_EOF ;\n }\n }\n in_text_array = 0 ;\n }\n }\n while ( tok != PDF_TOK_EOF ) ;\n }"}
{"idx": 18150, "target": 0, "func": "TEST ( IdlCompiler , Basics ) {\n MyType1 a ;\n a . x = 5 ;\n a . y = std : : string ( \"foo\" ) ;\n std : : unique_ptr < base : : DictionaryValue > serialized = a . ToValue ( ) ;\n MyType1 b ;\n EXPECT_TRUE ( MyType1 : : Populate ( * serialized . get ( ) , & b ) ) ;\n EXPECT_EQ ( a . x , b . x ) ;\n EXPECT_EQ ( a . y , b . y ) ;\n base : : ListValue list ;\n list . AppendInteger ( 5 ) ;\n std : : unique_ptr < Function2 : : Params > f2_params = Function2 : : Params : : Create ( list ) ;\n EXPECT_EQ ( 5 , f2_params -> x ) ;\n list . Clear ( ) ;\n std : : unique_ptr < base : : DictionaryValue > tmp ( new base : : DictionaryValue ( ) ) ;\n tmp -> SetInteger ( \"x\" , 17 ) ;\n tmp -> SetString ( \"y\" , \"hello\" ) ;\n tmp -> SetString ( \"z\" , \"zstring\" ) ;\n tmp -> SetString ( \"a\" , \"astring\" ) ;\n tmp -> SetString ( \"b\" , \"bstring\" ) ;\n tmp -> SetString ( \"c\" , \"cstring\" ) ;\n list . Append ( std : : move ( tmp ) ) ;\n std : : unique_ptr < Function3 : : Params > f3_params = Function3 : : Params : : Create ( list ) ;\n EXPECT_EQ ( 17 , f3_params -> arg . x ) ;\n EXPECT_EQ ( \"hello\" , f3_params -> arg . y ) ;\n std : : unique_ptr < base : : ListValue > f4_results = Function4 : : Results : : Create ( ) ;\n base : : ListValue expected ;\n EXPECT_TRUE ( f4_results -> Equals ( & expected ) ) ;\n std : : unique_ptr < base : : ListValue > f5_results ( Function5 : : Results : : Create ( 13 ) ) ;\n base : : Value * f5_result_int = NULL ;\n ASSERT_TRUE ( f5_results -> Get ( 0 , & f5_result_int ) ) ;\n EXPECT_TRUE ( f5_result_int -> is_int ( ) ) ;\n std : : unique_ptr < base : : ListValue > f6_results ( Function6 : : Results : : Create ( a ) ) ;\n base : : Value * f6_result_dict = NULL ;\n ASSERT_TRUE ( f6_results -> Get ( 0 , & f6_result_dict ) ) ;\n MyType1 c ;\n EXPECT_TRUE ( MyType1 : : Populate ( * f6_result_dict , & c ) ) ;\n EXPECT_EQ ( a . x , c . x ) ;\n EXPECT_EQ ( a . y , c . y ) ;\n }"}
{"idx": 18151, "target": 0, "func": "static int nb_add_time ( char * * ret_buffer , size_t * ret_buffer_len , uint16_t type , double value ) {\n uint64_t cdtime_value = ( uint64_t ) ( value * 1073741824.0 ) ;\n return ( nb_add_number ( ret_buffer , ret_buffer_len , type , cdtime_value ) ) ;\n }"}
{"idx": 18152, "target": 0, "func": "int i2d_ ## name ( type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;\n int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE )"}
{"idx": 18153, "target": 1, "func": "int jbig2_decode_halftone_mmr ( Jbig2Ctx * ctx , const Jbig2GenericRegionParams * params , const byte * data , size_t size , Jbig2Image * image , size_t * consumed_bytes ) {\n Jbig2MmrCtx mmr ;\n const int rowstride = image -> stride ;\n byte * dst = image -> data ;\n byte * ref = NULL ;\n int y ;\n int code = 0 ;\n const uint32_t EOFB = 0x001001 ;\n jbig2_decode_mmr_init ( & mmr , image -> width , image -> height , data , size ) ;\n for ( y = 0 ;\n y < image -> height ;\n y ++ ) {\n memset ( dst , 0 , rowstride ) ;\n code = jbig2_decode_mmr_line ( & mmr , ref , dst ) ;\n if ( code < 0 ) return code ;\n ref = dst ;\n dst += rowstride ;\n }\n if ( mmr . word >> 8 == EOFB ) {\n mmr . data_index += 3 ;\n }\n * consumed_bytes += mmr . data_index + ( mmr . bit_index >> 3 ) + ( mmr . bit_index > 0 ? 1 : 0 ) ;\n return code ;\n }"}
{"idx": 18154, "target": 0, "func": "static vpx_codec_err_t ctrl_get_quantizer ( vpx_codec_alg_priv_t * ctx , va_list args ) {\n int * const arg = va_arg ( args , int * ) ;\n if ( arg == NULL ) return VPX_CODEC_INVALID_PARAM ;\n * arg = vp9_get_quantizer ( ctx -> cpi ) ;\n return VPX_CODEC_OK ;\n }"}
{"idx": 18155, "target": 0, "func": "CURLcode Curl_add_timecondition ( struct Curl_easy * data , Curl_send_buffer * req_buffer ) {\n const struct tm * tm ;\n char * buf = data -> state . buffer ;\n struct tm keeptime ;\n CURLcode result ;\n if ( data -> set . timecondition == CURL_TIMECOND_NONE ) return CURLE_OK ;\n result = Curl_gmtime ( data -> set . timevalue , & keeptime ) ;\n if ( result ) {\n failf ( data , \"Invalid TIMEVALUE\" ) ;\n return result ;\n }\n tm = & keeptime ;\n snprintf ( buf , BUFSIZE - 1 , \"%s, %02d %s %4d %02d:%02d:%02d GMT\" , Curl_wkday [ tm -> tm_wday ? tm -> tm_wday - 1 : 6 ] , tm -> tm_mday , Curl_month [ tm -> tm_mon ] , tm -> tm_year + 1900 , tm -> tm_hour , tm -> tm_min , tm -> tm_sec ) ;\n switch ( data -> set . timecondition ) {\n default : break ;\n case CURL_TIMECOND_IFMODSINCE : result = Curl_add_bufferf ( req_buffer , \"If-Modified-Since: %s\\r\\n\" , buf ) ;\n break ;\n case CURL_TIMECOND_IFUNMODSINCE : result = Curl_add_bufferf ( req_buffer , \"If-Unmodified-Since: %s\\r\\n\" , buf ) ;\n break ;\n case CURL_TIMECOND_LASTMOD : result = Curl_add_bufferf ( req_buffer , \"Last-Modified: %s\\r\\n\" , buf ) ;\n break ;\n }\n return result ;\n }"}
{"idx": 18156, "target": 0, "func": "static inline guint8 gst_asf_demux_get_uint8 ( guint8 * * p_data , guint64 * p_size ) {\n guint8 ret ;\n g_assert ( * p_size >= 1 ) ;\n ret = GST_READ_UINT8 ( * p_data ) ;\n * p_data += sizeof ( guint8 ) ;\n * p_size -= sizeof ( guint8 ) ;\n return ret ;\n }"}
{"idx": 18157, "target": 0, "func": "static int dissect_pvfs2_readdir_response ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n guint32 dirent_count = 0 ;\n guint32 nCount = 0 ;\n proto_tree_add_item ( tree , hf_pvfs_ds_position , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_pvfs_directory_version , tvb , offset , 8 , ENC_LITTLE_ENDIAN ) ;\n offset += 8 ;\n offset += 4 ;\n dirent_count = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_pvfs_dirent_count , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n for ( nCount = 0 ;\n nCount < dirent_count ;\n nCount ++ ) {\n offset = dissect_pvfs_string ( tvb , tree , hf_pvfs_path , offset , NULL ) ;\n offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"handle\" , NULL ) ;\n }\n return offset ;\n }"}
{"idx": 18158, "target": 0, "func": "char * convert_http_hdr_to_string ( TSMBuffer bufp , TSMLoc hdr_loc ) {\n TSIOBuffer output_buffer ;\n TSIOBufferReader reader ;\n int64_t total_avail ;\n TSIOBufferBlock block ;\n const char * block_start ;\n int64_t block_avail ;\n char * output_string ;\n int output_len ;\n output_buffer = TSIOBufferCreate ( ) ;\n if ( ! output_buffer ) {\n TSError ( \"[InkAPITest] couldn't allocate IOBuffer\" ) ;\n }\n reader = TSIOBufferReaderAlloc ( output_buffer ) ;\n TSHttpHdrPrint ( bufp , hdr_loc , output_buffer ) ;\n total_avail = TSIOBufferReaderAvail ( reader ) ;\n output_string = ( char * ) TSmalloc ( total_avail + 1 ) ;\n output_len = 0 ;\n block = TSIOBufferReaderStart ( reader ) ;\n while ( block ) {\n block_start = TSIOBufferBlockReadStart ( block , reader , & block_avail ) ;\n if ( block_avail == 0 ) {\n break ;\n }\n memcpy ( output_string + output_len , block_start , block_avail ) ;\n output_len += block_avail ;\n TSIOBufferReaderConsume ( reader , block_avail ) ;\n block = TSIOBufferReaderStart ( reader ) ;\n }\n output_string [ output_len ] = '\\0' ;\n output_len ++ ;\n TSIOBufferReaderFree ( reader ) ;\n TSIOBufferDestroy ( output_buffer ) ;\n return output_string ;\n }"}
{"idx": 18159, "target": 0, "func": "void proto_register_coap ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_coap_version , {\n \"Version\" , \"coap.version\" , FT_UINT8 , BASE_DEC , NULL , COAP_VERSION_MASK , NULL , HFILL }\n }\n , {\n & hf_coap_ttype , {\n \"Type\" , \"coap.type\" , FT_UINT8 , BASE_DEC , VALS ( vals_ttype ) , COAP_TYPE_MASK , NULL , HFILL }\n }\n , {\n & hf_coap_token_len , {\n \"Token Length\" , \"coap.token_len\" , FT_UINT8 , BASE_DEC , NULL , COAP_TOKEN_LEN_MASK , NULL , HFILL }\n }\n , {\n & hf_coap_token , {\n \"Token\" , \"coap.token\" , FT_BYTES , BASE_NONE , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_coap_mid , {\n \"Message ID\" , \"coap.mid\" , FT_UINT16 , BASE_DEC , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_coap_response_in , {\n \"Response In\" , \"coap.response_in\" , FT_FRAMENUM , BASE_NONE , NULL , 0x0 , \"The response to this CoAP request is in this frame\" , HFILL }\n }\n , {\n & hf_coap_response_to , {\n \"Request In\" , \"coap.response_to\" , FT_FRAMENUM , BASE_NONE , NULL , 0x0 , \"This is a response to the CoAP request in this frame\" , HFILL }\n }\n , {\n & hf_coap_response_time , {\n \"Response Time\" , \"coap.response_time\" , FT_RELATIVE_TIME , BASE_NONE , NULL , 0x0 , \"The time between the Call and the Reply\" , HFILL }\n }\n , {\n & hf_coap_oscore_kid , {\n \"OSCORE Key ID\" , \"coap.oscore_kid\" , FT_BYTES , BASE_NONE , NULL , 0x0 , \"Matched OSCORE Key ID\" , HFILL }\n }\n , {\n & hf_coap_oscore_kid_context , {\n \"OSCORE Key ID Context\" , \"coap.oscore_kid_context\" , FT_BYTES , BASE_NONE , NULL , 0x0 , \"Matched OSCORE Key ID Context\" , HFILL }\n }\n , {\n & hf_coap_oscore_piv , {\n \"OSCORE Partial IV\" , \"coap.oscore_piv\" , FT_BYTES , BASE_NONE , NULL , 0x0 , \"Matched OSCORE Partial IV\" , HFILL }\n }\n , COAP_COMMON_HF_LIST ( dissect_coap_hf , \"coap\" ) }\n ;\n static gint * ett [ ] = {\n & ett_coap , COAP_COMMON_ETT_LIST ( dissect_coap_hf ) }\n ;\n static ei_register_info ei [ ] = {\n COAP_COMMON_EI_LIST ( dissect_coap_hf , \"coap\" ) }\n ;\n expert_module_t * expert_coap ;\n proto_coap = proto_register_protocol ( \"Constrained Application Protocol\" , \"CoAP\" , \"coap\" ) ;\n proto_register_field_array ( proto_coap , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n expert_coap = expert_register_protocol ( proto_coap ) ;\n expert_register_field_array ( expert_coap , ei , array_length ( ei ) ) ;\n coap_handle = register_dissector ( \"coap\" , dissect_coap , proto_coap ) ;\n }"}
{"idx": 18160, "target": 0, "func": "static vpx_codec_err_t ctrl_set_arnr_strength ( vpx_codec_alg_priv_t * ctx , va_list args ) {\n struct vp9_extracfg extra_cfg = ctx -> extra_cfg ;\n extra_cfg . arnr_strength = CAST ( VP8E_SET_ARNR_STRENGTH , args ) ;\n return update_extra_cfg ( ctx , & extra_cfg ) ;\n }"}
{"idx": 18161, "target": 0, "func": "static int dissect_pcp_message_result ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , int offset ) {\n proto_item * pcp_results_item ;\n proto_tree * pcp_results_tree ;\n proto_item * pcp_result_item ;\n proto_tree * pcp_result_tree ;\n proto_item * pcp_result_instance_item ;\n proto_tree * pcp_result_instance_tree ;\n guint32 num_pmid ;\n guint32 num_val ;\n guint32 offset_start ;\n guint32 valfmt_type ;\n guint32 value_type ;\n guint32 pmvalueblock_offset ;\n guint32 pmvalueblock_value_length ;\n guint32 i ;\n guint32 j ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"[%s]\" , val_to_str ( PCP_PDU_RESULT , packettypenames , \"Unknown Type:0x%02x\" ) ) ;\n pcp_results_item = proto_tree_add_item ( tree , hf_pcp_results , tvb , offset , - 1 , ENC_NA ) ;\n pcp_results_tree = proto_item_add_subtree ( pcp_results_item , ett_pcp ) ;\n offset = dissect_pcp_partial_when ( tvb , pinfo , pcp_results_tree , offset ) ;\n proto_tree_add_item ( pcp_results_tree , hf_pcp_results_numpmid , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n num_pmid = tvb_get_ntohl ( tvb , offset ) ;\n offset += 4 ;\n for ( i = 0 ;\n i < num_pmid ;\n i ++ ) {\n offset_start = offset ;\n pcp_result_item = proto_tree_add_item ( pcp_results_tree , hf_pcp_result , tvb , offset , - 1 , ENC_NA ) ;\n pcp_result_tree = proto_item_add_subtree ( pcp_result_item , ett_pcp ) ;\n offset = dissect_pcp_partial_pmid ( tvb , pinfo , pcp_result_tree , offset ) ;\n proto_tree_add_item ( pcp_result_tree , hf_pcp_result_numval , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n num_val = tvb_get_ntohl ( tvb , offset ) ;\n offset += 4 ;\n if ( num_val > 0 ) {\n proto_tree_add_item ( pcp_result_tree , hf_pcp_result_valfmt , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n valfmt_type = tvb_get_ntohl ( tvb , offset ) ;\n offset += 4 ;\n for ( j = 0 ;\n j < num_val ;\n j ++ ) {\n pcp_result_instance_item = proto_tree_add_item ( pcp_result_tree , hf_pcp_instance , tvb , offset , 8 , ENC_NA ) ;\n pcp_result_instance_tree = proto_item_add_subtree ( pcp_result_instance_item , ett_pcp ) ;\n proto_tree_add_item ( pcp_result_instance_tree , hf_pcp_pmid_inst , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n if ( valfmt_type == PM_VAL_INSITU ) {\n proto_tree_add_item ( pcp_result_instance_tree , hf_pcp_instance_value_insitu , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n }\n else {\n proto_tree_add_item ( pcp_result_instance_tree , hf_pcp_instance_valoffset , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n pmvalueblock_offset = tvb_get_ntohl ( tvb , offset ) ;\n pmvalueblock_offset = pmvalueblock_offset * 4 ;\n value_type = tvb_get_guint8 ( tvb , pmvalueblock_offset ) ;\n proto_tree_add_item ( pcp_result_instance_tree , hf_pcp_pmid_type , tvb , pmvalueblock_offset , 1 , ENC_BIG_ENDIAN ) ;\n pmvalueblock_offset += 1 ;\n pmvalueblock_value_length = tvb_get_ntoh24 ( tvb , pmvalueblock_offset ) ;\n proto_tree_add_item ( pcp_result_instance_tree , hf_pcp_instance_vallength , tvb , pmvalueblock_offset , 3 , ENC_BIG_ENDIAN ) ;\n pmvalueblock_offset += 3 ;\n switch ( value_type ) {\n case PM_TYPE_32 : proto_tree_add_item ( pcp_result_instance_tree , hf_pcp_instance_value_int , tvb , pmvalueblock_offset , pmvalueblock_value_length - 4 , ENC_BIG_ENDIAN ) ;\n break ;\n case PM_TYPE_U32 : proto_tree_add_item ( pcp_result_instance_tree , hf_pcp_instance_value_uint , tvb , pmvalueblock_offset , pmvalueblock_value_length - 4 , ENC_BIG_ENDIAN ) ;\n break ;\n case PM_TYPE_64 : proto_tree_add_item ( pcp_result_instance_tree , hf_pcp_instance_value_int64 , tvb , pmvalueblock_offset , pmvalueblock_value_length - 4 , ENC_BIG_ENDIAN ) ;\n break ;\n case PM_TYPE_U64 : proto_tree_add_item ( pcp_result_instance_tree , hf_pcp_instance_value_uint64 , tvb , pmvalueblock_offset , pmvalueblock_value_length - 4 , ENC_BIG_ENDIAN ) ;\n break ;\n case PM_TYPE_FLOAT : proto_tree_add_item ( pcp_result_instance_tree , hf_pcp_instance_value_float , tvb , pmvalueblock_offset , pmvalueblock_value_length - 4 , ENC_BIG_ENDIAN ) ;\n break ;\n case PM_TYPE_DOUBLE : proto_tree_add_item ( pcp_result_instance_tree , hf_pcp_instance_value_double , tvb , pmvalueblock_offset , pmvalueblock_value_length - 4 , ENC_BIG_ENDIAN ) ;\n break ;\n case PM_TYPE_STRING : proto_tree_add_item ( pcp_result_instance_tree , hf_pcp_instance_value_ptr , tvb , pmvalueblock_offset , pmvalueblock_value_length - 4 , ENC_ASCII | ENC_NA ) ;\n break ;\n case PM_TYPE_AGGREGATE : case PM_TYPE_AGGREGATE_STATIC : proto_tree_add_item ( pcp_result_instance_tree , hf_pcp_instance_value_aggr , tvb , pmvalueblock_offset , pmvalueblock_value_length - 4 , ENC_NA ) ;\n break ;\n case PM_TYPE_EVENT : expert_add_info ( pinfo , pcp_result_instance_tree , & ei_pcp_type_event_unimplemented ) ;\n break ;\n case PM_TYPE_NOSUPPORT : expert_add_info ( pinfo , pcp_result_instance_tree , & ei_pcp_type_nosupport_unsupported ) ;\n break ;\n case PM_TYPE_UNKNOWN : expert_add_info ( pinfo , pcp_result_instance_tree , & ei_pcp_type_unknown_unknown_value ) ;\n break ;\n default : expert_add_info ( pinfo , pcp_result_instance_tree , & ei_pcp_unimplemented_value ) ;\n break ;\n }\n }\n offset += 4 ;\n }\n }\n proto_item_set_len ( pcp_result_tree , offset - offset_start ) ;\n }\n return offset ;\n }"}
{"idx": 18162, "target": 0, "func": "static Node * substitute_actual_parameters_mutator ( Node * node , substitute_actual_parameters_context * context ) {\n if ( node == NULL ) return NULL ;\n if ( IsA ( node , Param ) ) {\n Param * param = ( Param * ) node ;\n if ( param -> paramkind != PARAM_EXTERN ) elog ( ERROR , \"unexpected paramkind: %d\" , ( int ) param -> paramkind ) ;\n if ( param -> paramid <= 0 || param -> paramid > context -> nargs ) elog ( ERROR , \"invalid paramid: %d\" , param -> paramid ) ;\n context -> usecounts [ param -> paramid - 1 ] ++ ;\n return list_nth ( context -> args , param -> paramid - 1 ) ;\n }\n return expression_tree_mutator ( node , substitute_actual_parameters_mutator , ( void * ) context ) ;\n }"}
{"idx": 18163, "target": 0, "func": "void X509_REQ_set_extension_nids ( int * nids ) {\n ext_nids = nids ;\n }"}
{"idx": 18164, "target": 0, "func": "int TSUrlFtpTypeGet ( TSMBuffer bufp , TSMLoc obj ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_url_handle ( obj ) == TS_SUCCESS ) ;\n URL u ;\n u . m_heap = ( ( HdrHeapSDKHandle * ) bufp ) -> m_heap ;\n u . m_url_impl = ( URLImpl * ) obj ;\n return u . type_get ( ) ;\n }"}
{"idx": 18165, "target": 0, "func": "static int dissect_h245_RoundTripDelayRequest ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_RoundTripDelayRequest , RoundTripDelayRequest_sequence ) ;\n return offset ;\n }"}
{"idx": 18166, "target": 0, "func": "size_t TSfread ( TSFile filep , void * buf , size_t length ) {\n FileImpl * file = ( FileImpl * ) filep ;\n return file -> fread ( buf , length ) ;\n }"}
{"idx": 18167, "target": 0, "func": "int dtls_get_message ( SSL * s , int * mt , unsigned long * len ) {\n struct hm_header_st * msg_hdr ;\n unsigned char * p ;\n unsigned long msg_len ;\n int ok ;\n long tmplen ;\n msg_hdr = & s -> d1 -> r_msg_hdr ;\n memset ( msg_hdr , 0 , sizeof ( * msg_hdr ) ) ;\n again : ok = dtls_get_reassembled_message ( s , & tmplen ) ;\n if ( tmplen == DTLS1_HM_BAD_FRAGMENT || tmplen == DTLS1_HM_FRAGMENT_RETRY ) {\n goto again ;\n }\n else if ( tmplen <= 0 && ! ok ) {\n return 0 ;\n }\n * mt = s -> s3 -> tmp . message_type ;\n p = ( unsigned char * ) s -> init_buf -> data ;\n if ( * mt == SSL3_MT_CHANGE_CIPHER_SPEC ) {\n if ( s -> msg_callback ) {\n s -> msg_callback ( 0 , s -> version , SSL3_RT_CHANGE_CIPHER_SPEC , p , 1 , s , s -> msg_callback_arg ) ;\n }\n * len = ( unsigned long ) tmplen ;\n return 1 ;\n }\n msg_len = msg_hdr -> msg_len ;\n * ( p ++ ) = msg_hdr -> type ;\n l2n3 ( msg_len , p ) ;\n s2n ( msg_hdr -> seq , p ) ;\n l2n3 ( 0 , p ) ;\n l2n3 ( msg_len , p ) ;\n if ( s -> version != DTLS1_BAD_VER ) {\n p -= DTLS1_HM_HEADER_LENGTH ;\n msg_len += DTLS1_HM_HEADER_LENGTH ;\n }\n if ( ! ssl3_finish_mac ( s , p , msg_len ) ) return 0 ;\n if ( s -> msg_callback ) s -> msg_callback ( 0 , s -> version , SSL3_RT_HANDSHAKE , p , msg_len , s , s -> msg_callback_arg ) ;\n memset ( msg_hdr , 0 , sizeof ( * msg_hdr ) ) ;\n s -> d1 -> handshake_read_seq ++ ;\n s -> init_msg = s -> init_buf -> data + DTLS1_HM_HEADER_LENGTH ;\n * len = s -> init_num ;\n return 1 ;\n }"}
{"idx": 18168, "target": 0, "func": "static int nntp_attempt_features ( struct NntpServer * nserv ) {\n struct Connection * conn = nserv -> conn ;\n char buf [ LONG_STRING ] ;\n if ( ! nserv -> hasCAPABILITIES ) {\n if ( mutt_socket_send ( conn , \"DATE\\r\\n\" ) < 0 || mutt_socket_readln ( buf , sizeof ( buf ) , conn ) < 0 ) {\n return nntp_connect_error ( nserv ) ;\n }\n if ( mutt_str_strncmp ( \"500\" , buf , 3 ) != 0 ) nserv -> hasDATE = true ;\n if ( mutt_socket_send ( conn , \"LISTGROUP\\r\\n\" ) < 0 || mutt_socket_readln ( buf , sizeof ( buf ) , conn ) < 0 ) {\n return nntp_connect_error ( nserv ) ;\n }\n if ( mutt_str_strncmp ( \"500\" , buf , 3 ) != 0 ) nserv -> hasLISTGROUP = true ;\n if ( mutt_socket_send ( conn , \"LIST NEWSGROUPS +\\r\\n\" ) < 0 || mutt_socket_readln ( buf , sizeof ( buf ) , conn ) < 0 ) {\n return nntp_connect_error ( nserv ) ;\n }\n if ( mutt_str_strncmp ( \"500\" , buf , 3 ) != 0 ) nserv -> hasLIST_NEWSGROUPS = true ;\n if ( mutt_str_strncmp ( \"215\" , buf , 3 ) == 0 ) {\n do {\n if ( mutt_socket_readln ( buf , sizeof ( buf ) , conn ) < 0 ) return nntp_connect_error ( nserv ) ;\n }\n while ( mutt_str_strcmp ( \".\" , buf ) != 0 ) ;\n }\n }\n if ( ! nserv -> hasLIST_NEWSGROUPS ) {\n if ( mutt_socket_send ( conn , \"XGTITLE\\r\\n\" ) < 0 || mutt_socket_readln ( buf , sizeof ( buf ) , conn ) < 0 ) {\n return nntp_connect_error ( nserv ) ;\n }\n if ( mutt_str_strncmp ( \"500\" , buf , 3 ) != 0 ) nserv -> hasXGTITLE = true ;\n }\n if ( ! nserv -> hasOVER ) {\n if ( mutt_socket_send ( conn , \"XOVER\\r\\n\" ) < 0 || mutt_socket_readln ( buf , sizeof ( buf ) , conn ) < 0 ) {\n return nntp_connect_error ( nserv ) ;\n }\n if ( mutt_str_strncmp ( \"500\" , buf , 3 ) != 0 ) nserv -> hasXOVER = true ;\n }\n if ( nserv -> hasOVER || nserv -> hasXOVER ) {\n if ( mutt_socket_send ( conn , \"LIST OVERVIEW.FMT\\r\\n\" ) < 0 || mutt_socket_readln ( buf , sizeof ( buf ) , conn ) < 0 ) {\n return nntp_connect_error ( nserv ) ;\n }\n if ( mutt_str_strncmp ( \"215\" , buf , 3 ) != 0 ) nserv -> overview_fmt = OverviewFmt ;\n else {\n int cont = 0 ;\n size_t buflen = 2 * LONG_STRING , off = 0 , b = 0 ;\n if ( nserv -> overview_fmt ) FREE ( & nserv -> overview_fmt ) ;\n nserv -> overview_fmt = mutt_mem_malloc ( buflen ) ;\n while ( true ) {\n if ( buflen - off < LONG_STRING ) {\n buflen *= 2 ;\n mutt_mem_realloc ( & nserv -> overview_fmt , buflen ) ;\n }\n const int chunk = mutt_socket_readln ( nserv -> overview_fmt + off , buflen - off , conn ) ;\n if ( chunk < 0 ) {\n FREE ( & nserv -> overview_fmt ) ;\n return nntp_connect_error ( nserv ) ;\n }\n if ( ! cont && ( mutt_str_strcmp ( \".\" , nserv -> overview_fmt + off ) == 0 ) ) break ;\n cont = chunk >= buflen - off ? 1 : 0 ;\n off += strlen ( nserv -> overview_fmt + off ) ;\n if ( ! cont ) {\n char * colon = NULL ;\n if ( nserv -> overview_fmt [ b ] == ':' ) {\n memmove ( nserv -> overview_fmt + b , nserv -> overview_fmt + b + 1 , off - b - 1 ) ;\n nserv -> overview_fmt [ off - 1 ] = ':' ;\n }\n colon = strchr ( nserv -> overview_fmt + b , ':' ) ;\n if ( ! colon ) nserv -> overview_fmt [ off ++ ] = ':' ;\n else if ( strcmp ( colon + 1 , \"full\" ) != 0 ) off = colon + 1 - nserv -> overview_fmt ;\n if ( strcasecmp ( nserv -> overview_fmt + b , \"Bytes:\" ) == 0 ) {\n size_t len = strlen ( nserv -> overview_fmt + b ) ;\n mutt_str_strfcpy ( nserv -> overview_fmt + b , \"Content-Length:\" , len + 1 ) ;\n off = b + len ;\n }\n nserv -> overview_fmt [ off ++ ] = '\\0' ;\n b = off ;\n }\n }\n nserv -> overview_fmt [ off ++ ] = '\\0' ;\n mutt_mem_realloc ( & nserv -> overview_fmt , off ) ;\n }\n }\n return 0 ;\n }"}
{"idx": 18169, "target": 1, "func": "kadm5_ret_t kadm5_modify_policy_internal ( void * server_handle , kadm5_policy_ent_t entry , long mask ) {\n kadm5_server_handle_t handle = server_handle ;\n krb5_tl_data * tl ;\n osa_policy_ent_t p ;\n int ret ;\n size_t len ;\n CHECK_HANDLE ( server_handle ) ;\n if ( ( entry == ( kadm5_policy_ent_t ) NULL ) || ( entry -> policy == NULL ) ) return EINVAL ;\n if ( strlen ( entry -> policy ) == 0 ) return KADM5_BAD_POLICY ;\n if ( ( mask & KADM5_POLICY ) ) return KADM5_BAD_MASK ;\n if ( ( mask & KADM5_POLICY_ALLOWED_KEYSALTS ) && entry -> allowed_keysalts != NULL ) {\n ret = validate_allowed_keysalts ( entry -> allowed_keysalts ) ;\n if ( ret ) return ret ;\n }\n if ( ( mask & KADM5_POLICY_TL_DATA ) ) {\n tl = entry -> tl_data ;\n while ( tl != NULL ) {\n if ( tl -> tl_data_type < 256 ) return KADM5_BAD_TL_TYPE ;\n tl = tl -> tl_data_next ;\n }\n }\n ret = krb5_db_get_policy ( handle -> context , entry -> policy , & p ) ;\n if ( ret == KRB5_KDB_NOENTRY ) return KADM5_UNK_POLICY ;\n else if ( ret ) return ret ;\n if ( ( mask & KADM5_PW_MAX_LIFE ) ) p -> pw_max_life = entry -> pw_max_life ;\n if ( ( mask & KADM5_PW_MIN_LIFE ) ) {\n if ( entry -> pw_min_life > p -> pw_max_life && p -> pw_max_life != 0 ) {\n krb5_db_free_policy ( handle -> context , p ) ;\n return KADM5_BAD_MIN_PASS_LIFE ;\n }\n p -> pw_min_life = entry -> pw_min_life ;\n }\n if ( ( mask & KADM5_PW_MIN_LENGTH ) ) {\n if ( entry -> pw_min_length < MIN_PW_LENGTH ) {\n krb5_db_free_policy ( handle -> context , p ) ;\n return KADM5_BAD_LENGTH ;\n }\n p -> pw_min_length = entry -> pw_min_length ;\n }\n if ( ( mask & KADM5_PW_MIN_CLASSES ) ) {\n if ( entry -> pw_min_classes > MAX_PW_CLASSES || entry -> pw_min_classes < MIN_PW_CLASSES ) {\n krb5_db_free_policy ( handle -> context , p ) ;\n return KADM5_BAD_CLASS ;\n }\n p -> pw_min_classes = entry -> pw_min_classes ;\n }\n if ( ( mask & KADM5_PW_HISTORY_NUM ) ) {\n if ( entry -> pw_history_num < MIN_PW_HISTORY ) {\n krb5_db_free_policy ( handle -> context , p ) ;\n return KADM5_BAD_HISTORY ;\n }\n p -> pw_history_num = entry -> pw_history_num ;\n }\n if ( ( mask & KADM5_REF_COUNT ) ) p -> policy_refcnt = entry -> policy_refcnt ;\n if ( handle -> api_version >= KADM5_API_VERSION_3 ) {\n if ( ( mask & KADM5_PW_MAX_FAILURE ) ) p -> pw_max_fail = entry -> pw_max_fail ;\n if ( ( mask & KADM5_PW_FAILURE_COUNT_INTERVAL ) ) p -> pw_failcnt_interval = entry -> pw_failcnt_interval ;\n if ( ( mask & KADM5_PW_LOCKOUT_DURATION ) ) p -> pw_lockout_duration = entry -> pw_lockout_duration ;\n }\n if ( handle -> api_version >= KADM5_API_VERSION_4 ) {\n if ( ( mask & KADM5_POLICY_ATTRIBUTES ) ) p -> attributes = entry -> attributes ;\n if ( ( mask & KADM5_POLICY_MAX_LIFE ) ) p -> max_life = entry -> max_life ;\n if ( ( mask & KADM5_POLICY_MAX_RLIFE ) ) p -> max_renewable_life = entry -> max_renewable_life ;\n if ( ( mask & KADM5_POLICY_ALLOWED_KEYSALTS ) ) {\n krb5_db_free ( handle -> context , p -> allowed_keysalts ) ;\n p -> allowed_keysalts = NULL ;\n if ( entry -> allowed_keysalts != NULL ) {\n len = strlen ( entry -> allowed_keysalts ) + 1 ;\n p -> allowed_keysalts = krb5_db_alloc ( handle -> context , NULL , len ) ;\n if ( p -> allowed_keysalts == NULL ) {\n ret = ENOMEM ;\n goto cleanup ;\n }\n memcpy ( p -> allowed_keysalts , entry -> allowed_keysalts , len ) ;\n }\n }\n if ( ( mask & KADM5_POLICY_TL_DATA ) ) {\n for ( tl = entry -> tl_data ;\n tl != NULL ;\n tl = tl -> tl_data_next ) {\n ret = krb5_db_update_tl_data ( handle -> context , & p -> n_tl_data , & p -> tl_data , tl ) ;\n if ( ret ) goto cleanup ;\n }\n }\n }\n ret = krb5_db_put_policy ( handle -> context , p ) ;\n cleanup : krb5_db_free_policy ( handle -> context , p ) ;\n return ret ;\n }"}
{"idx": 18170, "target": 0, "func": "gpg_error_t keydb_search_fpr ( KEYDB_HANDLE hd , const byte * fpr ) {\n KEYDB_SEARCH_DESC desc ;\n memset ( & desc , 0 , sizeof desc ) ;\n desc . mode = KEYDB_SEARCH_MODE_FPR ;\n memcpy ( desc . u . fpr , fpr , MAX_FINGERPRINT_LEN ) ;\n return keydb_search ( hd , & desc , 1 , NULL ) ;\n }"}
{"idx": 18171, "target": 0, "func": "void xps_parse_render_transform ( xps_document * doc , char * transform , fz_matrix * matrix ) {\n float args [ 6 ] ;\n char * s = transform ;\n int i ;\n args [ 0 ] = 1 ;\n args [ 1 ] = 0 ;\n args [ 2 ] = 0 ;\n args [ 3 ] = 1 ;\n args [ 4 ] = 0 ;\n args [ 5 ] = 0 ;\n for ( i = 0 ;\n i < 6 && * s ;\n i ++ ) {\n args [ i ] = fz_atof ( s ) ;\n while ( * s && * s != ',' ) s ++ ;\n if ( * s == ',' ) s ++ ;\n }\n matrix -> a = args [ 0 ] ;\n matrix -> b = args [ 1 ] ;\n matrix -> c = args [ 2 ] ;\n matrix -> d = args [ 3 ] ;\n matrix -> e = args [ 4 ] ;\n matrix -> f = args [ 5 ] ;\n }"}
{"idx": 18172, "target": 0, "func": "static void test_bug44495 ( ) {\n int rc ;\n MYSQL con ;\n MYSQL_STMT * stmt ;\n DBUG_ENTER ( \"test_bug44495\" ) ;\n myheader ( \"test_44495\" ) ;\n rc = mysql_query ( mysql , \"DROP PROCEDURE IF EXISTS p1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE PROCEDURE p1(IN arg VARCHAR(25))\" \" BEGIN SET @stmt = CONCAT('SELECT \\\"', arg, '\\\"');\n\" \" PREPARE ps1 FROM @stmt;\n\" \" EXECUTE ps1;\n\" \" DROP PREPARE ps1;\n\" \"END;\n\" ) ;\n myquery ( rc ) ;\n DIE_UNLESS ( mysql_client_init ( & con ) ) ;\n DIE_UNLESS ( mysql_real_connect ( & con , opt_host , opt_user , opt_password , current_db , opt_port , opt_unix_socket , CLIENT_MULTI_RESULTS ) ) ;\n stmt = mysql_simple_prepare ( & con , \"CALL p1('abc')\" ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( rc == 1 ) ;\n mysql_stmt_close ( stmt ) ;\n mysql_close ( & con ) ;\n rc = mysql_query ( mysql , \"DROP PROCEDURE p1\" ) ;\n myquery ( rc ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 18173, "target": 0, "func": "static VALUE ossl_cipher_final ( VALUE self ) {\n EVP_CIPHER_CTX * ctx ;\n int out_len ;\n VALUE str ;\n GetCipher ( self , ctx ) ;\n str = rb_str_new ( 0 , EVP_CIPHER_CTX_block_size ( ctx ) ) ;\n if ( ! EVP_CipherFinal_ex ( ctx , ( unsigned char * ) RSTRING_PTR ( str ) , & out_len ) ) ossl_raise ( eCipherError , NULL ) ;\n assert ( out_len <= RSTRING_LEN ( str ) ) ;\n rb_str_set_len ( str , out_len ) ;\n return str ;\n }"}
{"idx": 18174, "target": 0, "func": "static gpgme_error_t set_recipients ( engine_uiserver_t uiserver , gpgme_key_t recp [ ] ) {\n gpgme_error_t err = 0 ;\n assuan_context_t ctx = uiserver -> assuan_ctx ;\n char * line ;\n int linelen ;\n int invalid_recipients = 0 ;\n int i ;\n linelen = 10 + 40 + 1 ;\n line = malloc ( 10 + 40 + 1 ) ;\n if ( ! line ) return gpg_error_from_syserror ( ) ;\n strcpy ( line , \"RECIPIENT \" ) ;\n for ( i = 0 ;\n ! err && recp [ i ] ;\n i ++ ) {\n char * uid ;\n int newlen ;\n if ( ! recp [ i ] -> uids || ! ( uid = recp [ i ] -> uids -> uid ) || ! * uid ) {\n invalid_recipients ++ ;\n continue ;\n }\n newlen = 11 + strlen ( uid ) ;\n if ( linelen < newlen ) {\n char * newline = realloc ( line , newlen ) ;\n if ( ! newline ) {\n int saved_err = gpg_error_from_syserror ( ) ;\n free ( line ) ;\n return saved_err ;\n }\n line = newline ;\n linelen = newlen ;\n }\n strcpy ( & line [ 10 ] , uid ) ;\n err = uiserver_assuan_simple_command ( ctx , line , uiserver -> status . fnc , uiserver -> status . fnc_value ) ;\n if ( gpg_err_code ( err ) == GPG_ERR_NO_PUBKEY ) invalid_recipients ++ ;\n else if ( err ) {\n free ( line ) ;\n return err ;\n }\n }\n free ( line ) ;\n return gpg_error ( invalid_recipients ? GPG_ERR_UNUSABLE_PUBKEY : GPG_ERR_NO_ERROR ) ;\n }"}
{"idx": 18175, "target": 0, "func": "MPI # ifdef M_DEBUG mpi_debug_copy ( MPI a , const char * info ) # else mpi_copy ( MPI a ) # endif {\n int i ;\n MPI b ;\n if ( a && ( a -> flags & 4 ) ) {\n void * p = m_is_secure ( a -> d ) ? xmalloc_secure ( a -> nbits ) : xmalloc ( a -> nbits ) ;\n memcpy ( p , a -> d , a -> nbits ) ;\n b = mpi_set_opaque ( NULL , p , a -> nbits ) ;\n }\n else if ( a ) {\n # ifdef M_DEBUG b = mpi_is_secure ( a ) ? mpi_debug_alloc_secure ( a -> nlimbs , info ) : mpi_debug_alloc ( a -> nlimbs , info ) ;\n # else b = mpi_is_secure ( a ) ? mpi_alloc_secure ( a -> nlimbs ) : mpi_alloc ( a -> nlimbs ) ;\n # endif b -> nlimbs = a -> nlimbs ;\n b -> sign = a -> sign ;\n b -> flags = a -> flags ;\n b -> nbits = a -> nbits ;\n for ( i = 0 ;\n i < b -> nlimbs ;\n i ++ ) b -> d [ i ] = a -> d [ i ] ;\n }\n else b = NULL ;\n return b ;\n }"}
{"idx": 18176, "target": 1, "func": "static inline void set_p_mv_tables ( MpegEncContext * s , int mx , int my , int mv4 ) {\n const int xy = s -> mb_x + s -> mb_y * s -> mb_stride ;\n s -> p_mv_table [ xy ] [ 0 ] = mx ;\n s -> p_mv_table [ xy ] [ 1 ] = my ;\n if ( mv4 ) {\n int mot_xy = s -> block_index [ 0 ] ;\n s -> current_picture . f . motion_val [ 0 ] [ mot_xy ] [ 0 ] = mx ;\n s -> current_picture . f . motion_val [ 0 ] [ mot_xy ] [ 1 ] = my ;\n s -> current_picture . f . motion_val [ 0 ] [ mot_xy + 1 ] [ 0 ] = mx ;\n s -> current_picture . f . motion_val [ 0 ] [ mot_xy + 1 ] [ 1 ] = my ;\n mot_xy += s -> b8_stride ;\n s -> current_picture . f . motion_val [ 0 ] [ mot_xy ] [ 0 ] = mx ;\n s -> current_picture . f . motion_val [ 0 ] [ mot_xy ] [ 1 ] = my ;\n s -> current_picture . f . motion_val [ 0 ] [ mot_xy + 1 ] [ 0 ] = mx ;\n s -> current_picture . f . motion_val [ 0 ] [ mot_xy + 1 ] [ 1 ] = my ;\n }\n }"}
{"idx": 18177, "target": 0, "func": "static inline void set_num_712 ( unsigned char * p , char value ) {\n * ( ( char * ) p ) = value ;\n }"}
{"idx": 18178, "target": 0, "func": "static int dissect_pvfs2_response ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo , guint32 server_op ) {\n offset = dissect_pvfs2_error ( tvb , tree , offset , pinfo ) ;\n switch ( server_op ) {\n case PVFS_SERV_CREATE : offset = dissect_pvfs2_create_response ( tvb , tree , offset , pinfo ) ;\n break ;\n # if 0 case PVFS_SERV_REMOVE : break ;\n # endif case PVFS_SERV_IO : offset = dissect_pvfs2_io_response ( tvb , tree , offset ) ;\n break ;\n case PVFS_SERV_GETATTR : offset = dissect_pvfs2_getattr_response ( tvb , tree , offset , pinfo ) ;\n break ;\n case PVFS_SERV_SETATTR : break ;\n case PVFS_SERV_LOOKUP_PATH : offset = dissect_pvfs2_lookup_path_response ( tvb , tree , offset , pinfo ) ;\n break ;\n # if 0 case PVFS_SERV_CRDIRENT : break ;\n # endif case PVFS_SERV_RMDIRENT : offset = dissect_pvfs2_rmdirent_response ( tvb , tree , offset , pinfo ) ;\n break ;\n case PVFS_SERV_CHDIRENT : offset = dissect_pvfs2_chdirent_response ( tvb , tree , offset , pinfo ) ;\n break ;\n # if 0 case PVFS_SERV_TRUNCATE : break ;\n # endif case PVFS_SERV_MKDIR : offset = dissect_pvfs2_mkdir_response ( tvb , tree , offset , pinfo ) ;\n break ;\n case PVFS_SERV_READDIR : offset = dissect_pvfs2_readdir_response ( tvb , tree , offset , pinfo ) ;\n break ;\n case PVFS_SERV_GETCONFIG : offset = dissect_pvfs2_getconfig_response ( tvb , tree , offset , pinfo ) ;\n break ;\n case PVFS_SERV_WRITE_COMPLETION : offset = dissect_pvfs2_write_completion_response ( tvb , tree , offset ) ;\n break ;\n # if 0 case PVFS_SERV_FLUSH : break ;\n # endif case PVFS_SERV_MGMT_SETPARAM : offset = dissect_pvfs2_mgmt_setparam_response ( tvb , tree , offset ) ;\n break ;\n # if 0 case PVFS_SERV_MGMT_NOOP : break ;\n # endif case PVFS_SERV_STATFS : offset = dissect_pvfs2_statfs_response ( tvb , tree , offset ) ;\n break ;\n # if 0 case PVFS_SERV_PERF_UPDATE : break ;\n # endif case PVFS_SERV_MGMT_PERF_MON : offset = dissect_pvfs2_mgmt_perf_mon_response ( tvb , tree , offset ) ;\n break ;\n case PVFS_SERV_MGMT_ITERATE_HANDLES : offset = dissect_pvfs2_mgmt_iterate_handles_response ( tvb , tree , offset , pinfo ) ;\n break ;\n case PVFS_SERV_MGMT_DSPACE_INFO_LIST : offset = dissect_pvfs2_mgmt_dspace_info_list_response ( tvb , tree , offset , pinfo ) ;\n break ;\n case PVFS_SERV_MGMT_EVENT_MON : offset = dissect_pvfs2_mgmt_event_mon_response ( tvb , tree , offset ) ;\n break ;\n case PVFS_SERV_MGMT_REMOVE_OBJECT : offset = dissect_pvfs2_mgmt_remove_object_response ( tvb , tree , offset , pinfo ) ;\n break ;\n # if 0 case PVFS_SERV_MGMT_REMOVE_DIRENT : break ;\n # endif case PVFS_SERV_MGMT_GET_DIRDATA_HANDLE : offset = dissect_pvfs2_mgmt_get_dirdata_handle_response ( tvb , tree , offset , pinfo ) ;\n break ;\n # if 0 case PVFS_SERV_JOB_TIMER : break ;\n # endif case PVFS_SERV_PROTO_ERROR : break ;\n case PVFS_SERV_GETEATTR : offset = dissect_pvfs2_geteattr_response ( tvb , tree , offset , pinfo ) ;\n break ;\n # if 0 case PVFS_SERV_SETEATTR : break ;\n # endif # if 0 case PVFS_SERV_DELEATTR : break ;\n # endif default : break ;\n }\n return offset ;\n }"}
{"idx": 18179, "target": 0, "func": "static void _slurm_rpc_complete_prolog ( slurm_msg_t * msg ) {\n int error_code = SLURM_SUCCESS ;\n DEF_TIMERS ;\n complete_prolog_msg_t * comp_msg = ( complete_prolog_msg_t * ) msg -> data ;\n slurmctld_lock_t job_write_lock = {\n NO_LOCK , WRITE_LOCK , NO_LOCK , NO_LOCK , NO_LOCK }\n ;\n START_TIMER ;\n debug2 ( \"Processing RPC: REQUEST_COMPLETE_PROLOG from JobId=%u\" , comp_msg -> job_id ) ;\n lock_slurmctld ( job_write_lock ) ;\n error_code = prolog_complete ( comp_msg -> job_id , comp_msg -> prolog_rc ) ;\n unlock_slurmctld ( job_write_lock ) ;\n END_TIMER2 ( \"_slurm_rpc_complete_prolog\" ) ;\n if ( error_code ) {\n info ( \"_slurm_rpc_complete_prolog JobId=%u: %s \" , comp_msg -> job_id , slurm_strerror ( error_code ) ) ;\n slurm_send_rc_msg ( msg , error_code ) ;\n }\n else {\n debug2 ( \"_slurm_rpc_complete_prolog JobId=%u %s\" , comp_msg -> job_id , TIME_STR ) ;\n slurm_send_rc_msg ( msg , SLURM_SUCCESS ) ;\n }\n }"}
{"idx": 18180, "target": 0, "func": "static int dissect_rsl_ie_paging_grp ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_tree * ie_tree ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_PAGING_GRP ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 2 , ett_ie_paging_grp , NULL , \"Paging Group IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_paging_grp , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n return offset ;\n }"}
{"idx": 18181, "target": 0, "func": "static void dtap_tp_test_interface ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_len = len ;\n curr_offset = offset ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_TP_TESTED_DEVICE , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 18182, "target": 0, "func": "static void gsm_a_dtap_mm_stat_init ( new_stat_tap_ui * new_stat , new_stat_tap_gui_init_cb gui_callback , void * gui_data ) {\n gsm_a_stat_init ( new_stat , gui_callback , gui_data , \"GSM A-I/F DTAP Mobility Management Statistics\" , gsm_a_dtap_msg_mm_strings ) ;\n }"}
{"idx": 18183, "target": 0, "func": "static void link_info_got_data ( NautilusDirectory * directory , NautilusFile * file , gboolean result , goffset bytes_read , char * file_contents ) {\n char * link_uri , * uri , * name ;\n GIcon * icon ;\n gboolean is_launcher ;\n gboolean is_foreign ;\n nautilus_directory_ref ( directory ) ;\n uri = NULL ;\n name = NULL ;\n icon = NULL ;\n is_launcher = FALSE ;\n is_foreign = FALSE ;\n if ( result ) {\n link_uri = nautilus_file_get_uri ( file ) ;\n nautilus_link_get_link_info_given_file_contents ( file_contents , bytes_read , link_uri , & uri , & name , & icon , & is_launcher , & is_foreign ) ;\n g_free ( link_uri ) ;\n }\n else {\n }\n nautilus_file_ref ( file ) ;\n link_info_done ( directory , file , uri , name , icon , is_launcher , is_foreign ) ;\n nautilus_file_changed ( file ) ;\n nautilus_file_unref ( file ) ;\n g_free ( uri ) ;\n g_free ( name ) ;\n if ( icon != NULL ) {\n g_object_unref ( icon ) ;\n }\n nautilus_directory_unref ( directory ) ;\n }"}
{"idx": 18184, "target": 0, "func": "Datum arraycontjoinsel ( PG_FUNCTION_ARGS ) {\n Oid operator = PG_GETARG_OID ( 1 ) ;\n PG_RETURN_FLOAT8 ( DEFAULT_SEL ( operator ) ) ;\n }"}
{"idx": 18185, "target": 0, "func": "static void Type_Curve_Free ( struct _cms_typehandler_struct * self , void * Ptr ) {\n cmsToneCurve * gamma = ( cmsToneCurve * ) Ptr ;\n cmsFreeToneCurve ( gamma ) ;\n return ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 18186, "target": 0, "func": "static int hyperv_handle_properties ( CPUState * cs ) {\n X86CPU * cpu = X86_CPU ( cs ) ;\n CPUX86State * env = & cpu -> env ;\n if ( cpu -> hyperv_relaxed_timing ) {\n env -> features [ FEAT_HYPERV_EAX ] |= HV_HYPERCALL_AVAILABLE ;\n }\n if ( cpu -> hyperv_vapic ) {\n env -> features [ FEAT_HYPERV_EAX ] |= HV_HYPERCALL_AVAILABLE ;\n env -> features [ FEAT_HYPERV_EAX ] |= HV_APIC_ACCESS_AVAILABLE ;\n }\n if ( cpu -> hyperv_time ) {\n if ( kvm_check_extension ( cs -> kvm_state , KVM_CAP_HYPERV_TIME ) <= 0 ) {\n fprintf ( stderr , \"Hyper-V clocksources \" \"(requested by 'hv-time' cpu flag) \" \"are not supported by kernel\\n\" ) ;\n return - ENOSYS ;\n }\n env -> features [ FEAT_HYPERV_EAX ] |= HV_HYPERCALL_AVAILABLE ;\n env -> features [ FEAT_HYPERV_EAX ] |= HV_TIME_REF_COUNT_AVAILABLE ;\n env -> features [ FEAT_HYPERV_EAX ] |= HV_REFERENCE_TSC_AVAILABLE ;\n }\n if ( cpu -> hyperv_frequencies ) {\n if ( ! has_msr_hv_frequencies ) {\n fprintf ( stderr , \"Hyper-V frequency MSRs \" \"(requested by 'hv-frequencies' cpu flag) \" \"are not supported by kernel\\n\" ) ;\n return - ENOSYS ;\n }\n env -> features [ FEAT_HYPERV_EAX ] |= HV_ACCESS_FREQUENCY_MSRS ;\n env -> features [ FEAT_HYPERV_EDX ] |= HV_FREQUENCY_MSRS_AVAILABLE ;\n }\n if ( cpu -> hyperv_crash ) {\n if ( ! has_msr_hv_crash ) {\n fprintf ( stderr , \"Hyper-V crash MSRs \" \"(requested by 'hv-crash' cpu flag) \" \"are not supported by kernel\\n\" ) ;\n return - ENOSYS ;\n }\n env -> features [ FEAT_HYPERV_EDX ] |= HV_GUEST_CRASH_MSR_AVAILABLE ;\n }\n if ( cpu -> hyperv_reenlightenment ) {\n if ( ! has_msr_hv_reenlightenment ) {\n fprintf ( stderr , \"Hyper-V Reenlightenment MSRs \" \"(requested by 'hv-reenlightenment' cpu flag) \" \"are not supported by kernel\\n\" ) ;\n return - ENOSYS ;\n }\n env -> features [ FEAT_HYPERV_EAX ] |= HV_ACCESS_REENLIGHTENMENTS_CONTROL ;\n }\n env -> features [ FEAT_HYPERV_EDX ] |= HV_CPU_DYNAMIC_PARTITIONING_AVAILABLE ;\n if ( cpu -> hyperv_reset ) {\n if ( ! has_msr_hv_reset ) {\n fprintf ( stderr , \"Hyper-V reset MSR \" \"(requested by 'hv-reset' cpu flag) \" \"is not supported by kernel\\n\" ) ;\n return - ENOSYS ;\n }\n env -> features [ FEAT_HYPERV_EAX ] |= HV_RESET_AVAILABLE ;\n }\n if ( cpu -> hyperv_vpindex ) {\n if ( ! has_msr_hv_vpindex ) {\n fprintf ( stderr , \"Hyper-V VP_INDEX MSR \" \"(requested by 'hv-vpindex' cpu flag) \" \"is not supported by kernel\\n\" ) ;\n return - ENOSYS ;\n }\n env -> features [ FEAT_HYPERV_EAX ] |= HV_VP_INDEX_AVAILABLE ;\n }\n if ( cpu -> hyperv_runtime ) {\n if ( ! has_msr_hv_runtime ) {\n fprintf ( stderr , \"Hyper-V VP_RUNTIME MSR \" \"(requested by 'hv-runtime' cpu flag) \" \"is not supported by kernel\\n\" ) ;\n return - ENOSYS ;\n }\n env -> features [ FEAT_HYPERV_EAX ] |= HV_VP_RUNTIME_AVAILABLE ;\n }\n if ( cpu -> hyperv_synic ) {\n if ( ! has_msr_hv_synic || kvm_vcpu_enable_cap ( cs , KVM_CAP_HYPERV_SYNIC , 0 ) ) {\n fprintf ( stderr , \"Hyper-V SynIC is not supported by kernel\\n\" ) ;\n return - ENOSYS ;\n }\n env -> features [ FEAT_HYPERV_EAX ] |= HV_SYNIC_AVAILABLE ;\n }\n if ( cpu -> hyperv_stimer ) {\n if ( ! has_msr_hv_stimer ) {\n fprintf ( stderr , \"Hyper-V timers aren't supported by kernel\\n\" ) ;\n return - ENOSYS ;\n }\n env -> features [ FEAT_HYPERV_EAX ] |= HV_SYNTIMERS_AVAILABLE ;\n }\n return 0 ;\n }"}
{"idx": 18187, "target": 0, "func": "static inline uint32_t tswap32 ( uint32_t s ) {\n return s ;\n }"}
{"idx": 18188, "target": 0, "func": "int virLogFindOutput ( virLogOutputPtr * outputs , size_t noutputs , virLogDestination dest , const void * opaque ) {\n size_t i ;\n const char * name = opaque ;\n for ( i = 0 ;\n i < noutputs ;\n i ++ ) {\n if ( dest == outputs [ i ] -> dest && ( STREQ_NULLABLE ( outputs [ i ] -> name , name ) ) ) return i ;\n }\n return - 1 ;\n }"}
{"idx": 18189, "target": 1, "func": "static void vmport_ioport_write ( void * opaque , hwaddr addr , uint64_t val , unsigned size ) {\n CPUX86State * env = cpu_single_env ;\n env -> regs [ R_EAX ] = vmport_ioport_read ( opaque , addr , 4 ) ;\n }"}
{"idx": 18190, "target": 0, "func": "static gint dissect_codec ( tvbuff_t * tvb , packet_info * pinfo , proto_item * service_item , proto_tree * tree , gint offset , guint losc , gint media_type , gint media_codec_type , guint32 * vendor_id , guint16 * vendor_codec ) {\n proto_item * pitem ;\n guint32 value ;\n guint8 * value8 = ( guint8 * ) & value ;\n switch ( media_type ) {\n case MEDIA_TYPE_AUDIO : switch ( media_codec_type ) {\n case CODEC_SBC : proto_tree_add_item ( tree , hf_btavdtp_sbc_sampling_frequency_16000 , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_sbc_sampling_frequency_32000 , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_sbc_sampling_frequency_44100 , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_sbc_sampling_frequency_48000 , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_sbc_channel_mode_mono , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_sbc_channel_mode_dual_channel , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_sbc_channel_mode_stereo , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_sbc_channel_mode_joint_stereo , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_sbc_block_4 , tvb , offset + 1 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_sbc_block_8 , tvb , offset + 1 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_sbc_block_12 , tvb , offset + 1 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_sbc_block_16 , tvb , offset + 1 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_sbc_subbands_4 , tvb , offset + 1 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_sbc_subbands_8 , tvb , offset + 1 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_sbc_allocation_method_snr , tvb , offset + 1 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_sbc_allocation_method_loudness , tvb , offset + 1 , 1 , ENC_NA ) ;\n pitem = proto_tree_add_item ( tree , hf_btavdtp_sbc_min_bitpool , tvb , offset + 2 , 1 , ENC_NA ) ;\n value = tvb_get_guint8 ( tvb , offset + 2 ) ;\n if ( value < 2 || value > 250 ) {\n expert_add_info ( pinfo , pitem , & ei_btavdtp_sbc_min_bitpool_out_of_range ) ;\n }\n pitem = proto_tree_add_item ( tree , hf_btavdtp_sbc_max_bitpool , tvb , offset + 3 , 1 , ENC_NA ) ;\n value = tvb_get_guint8 ( tvb , offset + 3 ) ;\n if ( value < 2 || value > 250 ) {\n expert_add_info ( pinfo , pitem , & ei_btavdtp_sbc_max_bitpool_out_of_range ) ;\n }\n value = tvb_get_h_guint32 ( tvb , offset ) ;\n if ( value ) {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" (%s%s%s%s%s| %s%s%s%s%s| block: %s%s%s%s%s| subbands: %s%s%s| allocation: %s%s%s| bitpool: %u..%u)\" , ( value8 [ 0 ] & 0x80 ) ? \"16000 \" : \"\" , ( value8 [ 0 ] & 0x40 ) ? \"32000 \" : \"\" , ( value8 [ 0 ] & 0x20 ) ? \"44100 \" : \"\" , ( value8 [ 0 ] & 0x10 ) ? \"48000 \" : \"\" , ( value8 [ 0 ] & 0xF0 ) ? \"\" : \"not set \" , ( value8 [ 0 ] & 0x08 ) ? \"Mono \" : \"\" , ( value8 [ 0 ] & 0x04 ) ? \"DualChannel \" : \"\" , ( value8 [ 0 ] & 0x02 ) ? \"Stereo \" : \"\" , ( value8 [ 0 ] & 0x01 ) ? \"JointStereo \" : \"\" , ( value8 [ 0 ] & 0x0F ) ? \"\" : \"not set \" , ( value8 [ 1 ] & 0x80 ) ? \"4 \" : \"\" , ( value8 [ 1 ] & 0x40 ) ? \"8 \" : \"\" , ( value8 [ 1 ] & 0x20 ) ? \"12 \" : \"\" , ( value8 [ 1 ] & 0x10 ) ? \"16 \" : \"\" , ( value8 [ 1 ] & 0xF0 ) ? \"\" : \"not set \" , ( value8 [ 1 ] & 0x08 ) ? \"4 \" : \"\" , ( value8 [ 1 ] & 0x04 ) ? \"8 \" : \"\" , ( value8 [ 1 ] & 0x0C ) ? \"\" : \"not set \" , ( value8 [ 1 ] & 0x02 ) ? \"SNR \" : \"\" , ( value8 [ 1 ] & 0x01 ) ? \"Loudness \" : \"\" , ( value8 [ 0 ] & 0x03 ) ? \"\" : \"not set \" , value8 [ 2 ] , value8 [ 3 ] ) ;\n proto_item_append_text ( service_item , \" (%s%s%s%s%s| %s%s%s%s%s| block: %s%s%s%s%s| subbands: %s%s%s| allocation: %s%s%s| bitpool: %u..%u)\" , ( value8 [ 0 ] & 0x80 ) ? \"16000 \" : \"\" , ( value8 [ 0 ] & 0x40 ) ? \"32000 \" : \"\" , ( value8 [ 0 ] & 0x20 ) ? \"44100 \" : \"\" , ( value8 [ 0 ] & 0x10 ) ? \"48000 \" : \"\" , ( value8 [ 0 ] & 0xF0 ) ? \"\" : \"not set \" , ( value8 [ 0 ] & 0x08 ) ? \"Mono \" : \"\" , ( value8 [ 0 ] & 0x04 ) ? \"DualChannel \" : \"\" , ( value8 [ 0 ] & 0x02 ) ? \"Stereo \" : \"\" , ( value8 [ 0 ] & 0x01 ) ? \"JointStereo \" : \"\" , ( value8 [ 0 ] & 0x0F ) ? \"\" : \"not set \" , ( value8 [ 1 ] & 0x80 ) ? \"4 \" : \"\" , ( value8 [ 1 ] & 0x40 ) ? \"8 \" : \"\" , ( value8 [ 1 ] & 0x20 ) ? \"12 \" : \"\" , ( value8 [ 1 ] & 0x10 ) ? \"16 \" : \"\" , ( value8 [ 1 ] & 0xF0 ) ? \"\" : \"not set \" , ( value8 [ 1 ] & 0x08 ) ? \"4 \" : \"\" , ( value8 [ 1 ] & 0x04 ) ? \"8 \" : \"\" , ( value8 [ 1 ] & 0x0C ) ? \"\" : \"not set \" , ( value8 [ 1 ] & 0x02 ) ? \"SNR \" : \"\" , ( value8 [ 1 ] & 0x01 ) ? \"Loudness \" : \"\" , ( value8 [ 0 ] & 0x03 ) ? \"\" : \"not set \" , value8 [ 2 ] , value8 [ 3 ] ) ;\n }\n else {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" (none)\" ) ;\n proto_item_append_text ( service_item , \" (none)\" ) ;\n }\n break ;\n case CODEC_MPEG12_AUDIO : proto_tree_add_item ( tree , hf_btavdtp_mpeg12_layer_1 , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg12_layer_2 , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg12_layer_3 , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg12_crc_protection , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg12_channel_mode_mono , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg12_channel_mode_dual_channel , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg12_channel_mode_stereo , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg12_channel_mode_joint_stereo , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg12_rfa , tvb , offset + 1 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg12_mpf_2 , tvb , offset + 1 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg12_sampling_frequency_16000 , tvb , offset + 1 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg12_sampling_frequency_22050 , tvb , offset + 1 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg12_sampling_frequency_24000 , tvb , offset + 1 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg12_sampling_frequency_32000 , tvb , offset + 1 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg12_sampling_frequency_44100 , tvb , offset + 1 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg12_sampling_frequency_48000 , tvb , offset + 1 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg12_vbr_supported , tvb , offset + 2 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg12_bit_rate , tvb , offset + 2 , 2 , ENC_BIG_ENDIAN ) ;\n break ;\n case CODEC_MPEG24_AAC : proto_tree_add_item ( tree , hf_btavdtp_mpeg24_object_type_mpeg2_aac_lc , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg24_object_type_mpeg4_aac_lc , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg24_object_type_mpeg4_aac_ltp , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg24_object_type_mpeg4_aac_scalable , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg24_object_type_rfa , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg24_sampling_frequency_8000 , tvb , offset + 1 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg24_sampling_frequency_11025 , tvb , offset + 1 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg24_sampling_frequency_12000 , tvb , offset + 1 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg24_sampling_frequency_16000 , tvb , offset + 1 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg24_sampling_frequency_22050 , tvb , offset + 1 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg24_sampling_frequency_24000 , tvb , offset + 1 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg24_sampling_frequency_32000 , tvb , offset + 1 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg24_sampling_frequency_44100 , tvb , offset + 1 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg24_sampling_frequency_48000 , tvb , offset + 2 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg24_sampling_frequency_64000 , tvb , offset + 2 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg24_sampling_frequency_88200 , tvb , offset + 2 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg24_sampling_frequency_96000 , tvb , offset + 2 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg24_channels_1 , tvb , offset + 2 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg24_channels_2 , tvb , offset + 2 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg24_rfa , tvb , offset + 2 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg24_vbr_supported , tvb , offset + 3 , 3 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg24_bit_rate , tvb , offset + 3 , 3 , ENC_BIG_ENDIAN ) ;\n break ;\n case CODEC_ATRAC : proto_tree_add_item ( tree , hf_btavdtp_atrac_version , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_atrac_channel_mode_single_channel , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_atrac_channel_mode_dual_channel , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_atrac_channel_mode_joint_stereo , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_atrac_rfa1 , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_atrac_rfa2 , tvb , offset + 1 , 3 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_btavdtp_atrac_sampling_frequency_44100 , tvb , offset + 1 , 3 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_btavdtp_atrac_sampling_frequency_48000 , tvb , offset + 1 , 3 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_btavdtp_atrac_vbr_supported , tvb , offset + 3 , 3 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_btavdtp_atrac_bit_rate , tvb , offset + 3 , 3 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_btavdtp_atrac_maximum_sul , tvb , offset + 4 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_btavdtp_atrac_rfa3 , tvb , offset + 6 , 1 , ENC_NA ) ;\n break ;\n case CODEC_VENDOR : proto_tree_add_item ( tree , hf_btavdtp_vendor_id , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n if ( vendor_id ) * vendor_id = tvb_get_letohl ( tvb , offset ) ;\n if ( vendor_codec ) * vendor_codec = tvb_get_letohs ( tvb , offset + 4 ) ;\n switch ( tvb_get_letohl ( tvb , offset ) ) {\n case 0x004F : proto_tree_add_item ( tree , hf_btavdtp_vendor_specific_apt_codec_id , tvb , offset + 4 , 2 , ENC_LITTLE_ENDIAN ) ;\n value = tvb_get_letohs ( tvb , offset + 4 ) ;\n if ( value == 0x0001 ) {\n proto_tree_add_item ( tree , hf_btavdtp_vendor_specific_aptx_sampling_frequency_16000 , tvb , offset + 6 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_vendor_specific_aptx_sampling_frequency_32000 , tvb , offset + 6 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_vendor_specific_aptx_sampling_frequency_44100 , tvb , offset + 6 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_vendor_specific_aptx_sampling_frequency_48000 , tvb , offset + 6 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_vendor_specific_aptx_channel_mode_mono , tvb , offset + 6 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_vendor_specific_aptx_channel_mode_dual_channel , tvb , offset + 6 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_vendor_specific_aptx_channel_mode_stereo , tvb , offset + 6 , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_vendor_specific_aptx_channel_mode_joint_stereo , tvb , offset + 6 , 1 , ENC_NA ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" (%s -\" , val_to_str_const ( value , vendor_apt_codec_vals , \"unknown codec\" ) ) ;\n proto_item_append_text ( service_item , \" (%s -\" , val_to_str_const ( value , vendor_apt_codec_vals , \"unknown codec\" ) ) ;\n value = tvb_get_guint8 ( tvb , offset + 6 ) ;\n if ( value ) {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"%s%s%s%s%s,%s%s%s%s%s)\" , ( value & 0x80 ) ? \" 16000\" : \"\" , ( value & 0x40 ) ? \" 32000\" : \"\" , ( value & 0x20 ) ? \" 44100\" : \"\" , ( value & 0x10 ) ? \" 48000\" : \"\" , ( value & 0xF0 ) ? \"\" : \"not set \" , ( value & 0x08 ) ? \" Mono\" : \"\" , ( value & 0x04 ) ? \" DualChannel\" : \"\" , ( value & 0x02 ) ? \" Stereo\" : \"\" , ( value & 0x01 ) ? \" JointStereo\" : \"\" , ( value & 0x0F ) ? \"\" : \"not set \" ) ;\n proto_item_append_text ( service_item , \"%s%s%s%s%s,%s%s%s%s%s)\" , ( value & 0x80 ) ? \" 16000\" : \"\" , ( value & 0x40 ) ? \" 32000\" : \"\" , ( value & 0x20 ) ? \" 44100\" : \"\" , ( value & 0x10 ) ? \" 48000\" : \"\" , ( value & 0xF0 ) ? \"\" : \"not set \" , ( value & 0x08 ) ? \" Mono\" : \"\" , ( value & 0x04 ) ? \" DualChannel\" : \"\" , ( value & 0x02 ) ? \" Stereo\" : \"\" , ( value & 0x01 ) ? \" JointStereo\" : \"\" , ( value & 0x0F ) ? \"\" : \"not set \" ) ;\n }\n else {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" none)\" ) ;\n proto_item_append_text ( service_item , \" none)\" ) ;\n }\n }\n else {\n proto_tree_add_item ( tree , hf_btavdtp_vendor_specific_value , tvb , offset + 6 , losc - 6 , ENC_NA ) ;\n }\n break ;\n default : proto_tree_add_item ( tree , hf_btavdtp_vendor_specific_codec_id , tvb , offset + 4 , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_btavdtp_vendor_specific_value , tvb , offset + 6 , losc - 6 , ENC_NA ) ;\n }\n break ;\n default : proto_tree_add_item ( tree , hf_btavdtp_data , tvb , offset , losc , ENC_NA ) ;\n }\n break ;\n case MEDIA_TYPE_VIDEO : switch ( media_codec_type ) {\n case CODEC_H263_BASELINE : case CODEC_H263_PROFILE_3 : case CODEC_H263_PROFILE_8 : proto_tree_add_item ( tree , hf_btavdtp_h263_level_10 , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_h263_level_20 , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_h263_level_30 , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_h263_level_rfa , tvb , offset , 1 , ENC_NA ) ;\n break ;\n case CODEC_MPEG4_VSP : proto_tree_add_item ( tree , hf_btavdtp_mpeg4_level_0 , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg4_level_1 , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg4_level_2 , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg4_level_3 , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_btavdtp_mpeg4_level_rfa , tvb , offset , 1 , ENC_NA ) ;\n break ;\n case CODEC_VENDOR : proto_tree_add_item ( tree , hf_btavdtp_vendor_id , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_btavdtp_vendor_specific_codec_id , tvb , offset + 4 , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_btavdtp_vendor_specific_value , tvb , offset + 6 , losc - 6 , ENC_NA ) ;\n break ;\n default : proto_tree_add_item ( tree , hf_btavdtp_data , tvb , offset , losc , ENC_NA ) ;\n }\n break ;\n default : proto_tree_add_item ( tree , hf_btavdtp_data , tvb , offset , losc , ENC_NA ) ;\n }\n offset += losc ;\n return offset ;\n }"}
{"idx": 18191, "target": 0, "func": "static int ipvideo_decode_block_opcode_0xB ( IpvideoContext * s , AVFrame * frame ) {\n int y ;\n for ( y = 0 ;\n y < 8 ;\n y ++ ) {\n bytestream2_get_buffer ( & s -> stream_ptr , s -> pixel_ptr , 8 ) ;\n s -> pixel_ptr += s -> stride ;\n }\n return 0 ;\n }"}
{"idx": 18192, "target": 0, "func": "static int replace ( DYNAMIC_STRING * ds_str , const char * search_str , ulong search_len , const char * replace_str , ulong replace_len ) {\n DYNAMIC_STRING ds_tmp ;\n const char * start = strstr ( ds_str -> str , search_str ) ;\n if ( ! start ) return 1 ;\n init_dynamic_string_checked ( & ds_tmp , \"\" , ds_str -> length + replace_len , 256 ) ;\n dynstr_append_mem_checked ( & ds_tmp , ds_str -> str , start - ds_str -> str ) ;\n dynstr_append_mem_checked ( & ds_tmp , replace_str , replace_len ) ;\n dynstr_append_checked ( & ds_tmp , start + search_len ) ;\n dynstr_set_checked ( ds_str , ds_tmp . str ) ;\n dynstr_free ( & ds_tmp ) ;\n return 0 ;\n }"}
{"idx": 18193, "target": 0, "func": "static __always_inline void __swab64s ( __u64 * p ) {\n # ifdef __arch_swab64s __arch_swab64s ( p ) ;\n # else * p = __swab64p ( p ) ;\n # endif }"}
{"idx": 18194, "target": 0, "func": "int ztoken_handle_comment ( i_ctx_t * i_ctx_p , scanner_state * sstate , const ref * ptoken , int scan_code , bool save , bool push_file , op_proc_t cont ) {\n const char * proc_name ;\n scanner_state * pstate ;\n os_ptr op ;\n ref * ppcproc ;\n int code ;\n switch ( scan_code ) {\n case scan_Comment : proc_name = \"%ProcessComment\" ;\n break ;\n case scan_DSC_Comment : proc_name = \"%ProcessDSCComment\" ;\n break ;\n default : return_error ( gs_error_Fatal ) ;\n }\n if ( ostop - osp < 2 ) {\n code = ref_stack_extend ( & o_stack , 2 ) ;\n if ( code < 0 ) return code ;\n }\n check_estack ( 3 ) ;\n code = name_enter_string ( imemory , proc_name , esp + 3 ) ;\n if ( code < 0 ) return code ;\n if ( save ) {\n pstate = ( scanner_state * ) ialloc_struct ( scanner_state_dynamic , & st_scanner_state_dynamic , \"ztoken_handle_comment\" ) ;\n if ( pstate == 0 ) return_error ( gs_error_VMerror ) ;\n ( ( scanner_state_dynamic * ) pstate ) -> mem = imemory ;\n * pstate = * sstate ;\n }\n else pstate = sstate ;\n if ( ! pstate -> s_pstack ) osp [ 2 ] = * ptoken ;\n make_op_estack ( esp + 1 , cont ) ;\n make_istruct ( esp + 2 , 0 , pstate ) ;\n ppcproc = dict_find_name ( esp + 3 ) ;\n if ( ppcproc == 0 ) {\n if ( pstate -> s_pstack ) -- osp ;\n esp += 2 ;\n }\n else {\n if ( pstate -> s_pstack ) {\n op = ++ osp ;\n * op = op [ - 1 ] ;\n }\n else {\n op = osp += 2 ;\n }\n op [ - 1 ] = pstate -> s_file ;\n esp [ 3 ] = * ppcproc ;\n esp += 3 ;\n }\n return o_push_estack ;\n }"}
{"idx": 18195, "target": 0, "func": "bool isWriteable ( TSMBuffer bufp ) {\n if ( bufp != nullptr ) {\n return ( ( HdrHeapSDKHandle * ) bufp ) -> m_heap -> m_writeable ;\n }\n return false ;\n }"}
{"idx": 18196, "target": 1, "func": "static int ipvideo_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n IpvideoContext * s = avctx -> priv_data ;\n int ret ;\n s -> decoding_map_size = avctx -> width * avctx -> height / ( 8 * 8 * 2 ) ;\n if ( buf_size < s -> decoding_map_size ) return buf_size ;\n s -> decoding_map = buf ;\n bytestream2_init ( & s -> stream_ptr , buf + s -> decoding_map_size , buf_size - s -> decoding_map_size ) ;\n s -> current_frame . reference = 3 ;\n if ( ( ret = ff_get_buffer ( avctx , & s -> current_frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \" Interplay Video: get_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( ! s -> is_16bpp ) {\n const uint8_t * pal = av_packet_get_side_data ( avpkt , AV_PKT_DATA_PALETTE , NULL ) ;\n if ( pal ) {\n s -> current_frame . palette_has_changed = 1 ;\n memcpy ( s -> pal , pal , AVPALETTE_SIZE ) ;\n }\n }\n ipvideo_decode_opcodes ( s ) ;\n * got_frame = 1 ;\n * ( AVFrame * ) data = s -> current_frame ;\n if ( s -> second_last_frame . data [ 0 ] ) avctx -> release_buffer ( avctx , & s -> second_last_frame ) ;\n s -> second_last_frame = s -> last_frame ;\n s -> last_frame = s -> current_frame ;\n s -> current_frame . data [ 0 ] = NULL ;\n return buf_size ;\n }"}
{"idx": 18197, "target": 0, "func": "static int nntp_connect_error ( struct NntpServer * nserv ) {\n nserv -> status = NNTP_NONE ;\n mutt_error ( _ ( \"Server closed connection!\" ) ) ;\n return - 1 ;\n }"}
{"idx": 18198, "target": 0, "func": "static int isoent_traverse_tree ( struct archive_write * a , struct vdd * vdd ) {\n struct iso9660 * iso9660 = a -> format_data ;\n struct isoent * np ;\n struct idr idr ;\n int depth ;\n int r ;\n int ( * genid ) ( struct archive_write * , struct isoent * , struct idr * ) ;\n idr_init ( iso9660 , vdd , & idr ) ;\n np = vdd -> rootent ;\n depth = 0 ;\n if ( vdd -> vdd_type == VDD_JOLIET ) genid = isoent_gen_joliet_identifier ;\n else genid = isoent_gen_iso9660_identifier ;\n do {\n if ( np -> virtual && ! archive_entry_mtime_is_set ( np -> file -> entry ) ) {\n archive_entry_set_mtime ( np -> file -> entry , iso9660 -> birth_time , 0 ) ;\n archive_entry_set_atime ( np -> file -> entry , iso9660 -> birth_time , 0 ) ;\n archive_entry_set_ctime ( np -> file -> entry , iso9660 -> birth_time , 0 ) ;\n }\n if ( np -> children . first != NULL ) {\n if ( vdd -> vdd_type != VDD_JOLIET && ! iso9660 -> opt . rr && depth + 1 >= vdd -> max_depth ) {\n if ( np -> children . cnt > 0 ) iso9660 -> directories_too_deep = np ;\n }\n else {\n r = genid ( a , np , & idr ) ;\n if ( r < 0 ) goto exit_traverse_tree ;\n r = isoent_make_sorted_files ( a , np , & idr ) ;\n if ( r < 0 ) goto exit_traverse_tree ;\n if ( np -> subdirs . first != NULL && depth + 1 < vdd -> max_depth ) {\n np = np -> subdirs . first ;\n depth ++ ;\n continue ;\n }\n }\n }\n while ( np != np -> parent ) {\n if ( np -> drnext == NULL ) {\n np = np -> parent ;\n depth -- ;\n }\n else {\n np = np -> drnext ;\n break ;\n }\n }\n }\n while ( np != np -> parent ) ;\n r = ARCHIVE_OK ;\n exit_traverse_tree : idr_cleanup ( & idr ) ;\n return ( r ) ;\n }"}
{"idx": 18199, "target": 0, "func": "PGresult * ExecuteSqlQueryForSingleRow ( Archive * fout , char * query ) {\n PGresult * res ;\n int ntups ;\n res = ExecuteSqlQuery ( fout , query , PGRES_TUPLES_OK ) ;\n ntups = PQntuples ( res ) ;\n if ( ntups != 1 ) exit_horribly ( NULL , ngettext ( \"query returned %d row instead of one: %s\\n\" , \"query returned %d rows instead of one: %s\\n\" , ntups ) , ntups , query ) ;\n return res ;\n }"}
{"idx": 18200, "target": 0, "func": "static void sig_complete_alias ( GList * * list , WINDOW_REC * window , const char * word , const char * line , int * want_space ) {\n const char * definition ;\n g_return_if_fail ( list != NULL ) ;\n g_return_if_fail ( word != NULL ) ;\n g_return_if_fail ( line != NULL ) ;\n if ( * line != '\\0' ) {\n if ( ( definition = alias_find ( line ) ) != NULL ) {\n * list = g_list_append ( NULL , g_strdup ( definition ) ) ;\n signal_stop ( ) ;\n }\n }\n else {\n * list = completion_get_aliases ( word ) ;\n if ( * list != NULL ) signal_stop ( ) ;\n }\n }"}
{"idx": 18201, "target": 1, "func": "static Datum ExecEvalCase ( CaseExprState * caseExpr , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n List * clauses = caseExpr -> args ;\n ListCell * clause ;\n Datum save_datum ;\n bool save_isNull ;\n if ( isDone ) * isDone = ExprSingleResult ;\n save_datum = econtext -> caseValue_datum ;\n save_isNull = econtext -> caseValue_isNull ;\n if ( caseExpr -> arg ) {\n econtext -> caseValue_datum = ExecEvalExpr ( caseExpr -> arg , econtext , & econtext -> caseValue_isNull , NULL ) ;\n }\n foreach ( clause , clauses ) {\n CaseWhenState * wclause = lfirst ( clause ) ;\n Datum clause_value ;\n clause_value = ExecEvalExpr ( wclause -> expr , econtext , isNull , NULL ) ;\n if ( DatumGetBool ( clause_value ) && ! * isNull ) {\n econtext -> caseValue_datum = save_datum ;\n econtext -> caseValue_isNull = save_isNull ;\n return ExecEvalExpr ( wclause -> result , econtext , isNull , isDone ) ;\n }\n }\n econtext -> caseValue_datum = save_datum ;\n econtext -> caseValue_isNull = save_isNull ;\n if ( caseExpr -> defresult ) {\n return ExecEvalExpr ( caseExpr -> defresult , econtext , isNull , isDone ) ;\n }\n * isNull = true ;\n return ( Datum ) 0 ;\n }"}
{"idx": 18202, "target": 0, "func": "static hb_face_for_data_closure_t * _hb_face_for_data_closure_create ( hb_blob_t * blob , unsigned int index ) {\n hb_face_for_data_closure_t * closure ;\n closure = ( hb_face_for_data_closure_t * ) malloc ( sizeof ( hb_face_for_data_closure_t ) ) ;\n if ( unlikely ( ! closure ) ) return NULL ;\n closure -> blob = blob ;\n closure -> index = index ;\n return closure ;\n }"}
{"idx": 18203, "target": 0, "func": "static void read_mru_list ( struct recvbuf * rbufp , int restrict_mask ) {\n const char nonce_text [ ] = \"nonce\" ;\n const char frags_text [ ] = \"frags\" ;\n const char limit_text [ ] = \"limit\" ;\n const char mincount_text [ ] = \"mincount\" ;\n const char resall_text [ ] = \"resall\" ;\n const char resany_text [ ] = \"resany\" ;\n const char maxlstint_text [ ] = \"maxlstint\" ;\n const char laddr_text [ ] = \"laddr\" ;\n const char resaxx_fmt [ ] = \"0x%hx\" ;\n u_int limit ;\n u_short frags ;\n u_short resall ;\n u_short resany ;\n int mincount ;\n u_int maxlstint ;\n sockaddr_u laddr ;\n struct interface * lcladr ;\n u_int count ;\n u_int ui ;\n u_int uf ;\n l_fp last [ 16 ] ;\n sockaddr_u addr [ COUNTOF ( last ) ] ;\n char buf [ 128 ] ;\n struct ctl_var * in_parms ;\n const struct ctl_var * v ;\n char * val ;\n const char * pch ;\n char * pnonce ;\n int nonce_valid ;\n size_t i ;\n int priors ;\n u_short hash ;\n mon_entry * mon ;\n mon_entry * prior_mon ;\n l_fp now ;\n if ( RES_NOMRULIST & restrict_mask ) {\n ctl_error ( CERR_PERMISSION ) ;\n NLOG ( NLOG_SYSINFO ) msyslog ( LOG_NOTICE , \"mrulist from %s rejected due to nomrulist restriction\" , stoa ( & rbufp -> recv_srcadr ) ) ;\n sys_restricted ++ ;\n return ;\n }\n in_parms = NULL ;\n set_var ( & in_parms , nonce_text , sizeof ( nonce_text ) , 0 ) ;\n set_var ( & in_parms , frags_text , sizeof ( frags_text ) , 0 ) ;\n set_var ( & in_parms , limit_text , sizeof ( limit_text ) , 0 ) ;\n set_var ( & in_parms , mincount_text , sizeof ( mincount_text ) , 0 ) ;\n set_var ( & in_parms , resall_text , sizeof ( resall_text ) , 0 ) ;\n set_var ( & in_parms , resany_text , sizeof ( resany_text ) , 0 ) ;\n set_var ( & in_parms , maxlstint_text , sizeof ( maxlstint_text ) , 0 ) ;\n set_var ( & in_parms , laddr_text , sizeof ( laddr_text ) , 0 ) ;\n for ( i = 0 ;\n i < COUNTOF ( last ) ;\n i ++ ) {\n snprintf ( buf , sizeof ( buf ) , last_fmt , ( int ) i ) ;\n set_var ( & in_parms , buf , strlen ( buf ) + 1 , 0 ) ;\n snprintf ( buf , sizeof ( buf ) , addr_fmt , ( int ) i ) ;\n set_var ( & in_parms , buf , strlen ( buf ) + 1 , 0 ) ;\n }\n pnonce = NULL ;\n frags = 0 ;\n limit = 0 ;\n mincount = 0 ;\n resall = 0 ;\n resany = 0 ;\n maxlstint = 0 ;\n lcladr = NULL ;\n priors = 0 ;\n ZERO ( last ) ;\n ZERO ( addr ) ;\n while ( NULL != ( v = ctl_getitem ( in_parms , & val ) ) && ! ( EOV & v -> flags ) ) {\n int si ;\n if ( ! strcmp ( nonce_text , v -> text ) ) {\n if ( NULL != pnonce ) free ( pnonce ) ;\n pnonce = estrdup ( val ) ;\n }\n else if ( ! strcmp ( frags_text , v -> text ) ) {\n sscanf ( val , \"%hu\" , & frags ) ;\n }\n else if ( ! strcmp ( limit_text , v -> text ) ) {\n sscanf ( val , \"%u\" , & limit ) ;\n }\n else if ( ! strcmp ( mincount_text , v -> text ) ) {\n if ( 1 != sscanf ( val , \"%d\" , & mincount ) || mincount < 0 ) mincount = 0 ;\n }\n else if ( ! strcmp ( resall_text , v -> text ) ) {\n sscanf ( val , resaxx_fmt , & resall ) ;\n }\n else if ( ! strcmp ( resany_text , v -> text ) ) {\n sscanf ( val , resaxx_fmt , & resany ) ;\n }\n else if ( ! strcmp ( maxlstint_text , v -> text ) ) {\n sscanf ( val , \"%u\" , & maxlstint ) ;\n }\n else if ( ! strcmp ( laddr_text , v -> text ) ) {\n if ( decodenetnum ( val , & laddr ) ) lcladr = getinterface ( & laddr , 0 ) ;\n }\n else if ( 1 == sscanf ( v -> text , last_fmt , & si ) && ( size_t ) si < COUNTOF ( last ) ) {\n if ( 2 == sscanf ( val , \"0x%08x.%08x\" , & ui , & uf ) ) {\n last [ si ] . l_ui = ui ;\n last [ si ] . l_uf = uf ;\n if ( ! SOCK_UNSPEC ( & addr [ si ] ) && si == priors ) priors ++ ;\n }\n }\n else if ( 1 == sscanf ( v -> text , addr_fmt , & si ) && ( size_t ) si < COUNTOF ( addr ) ) {\n if ( decodenetnum ( val , & addr [ si ] ) && last [ si ] . l_ui && last [ si ] . l_uf && si == priors ) priors ++ ;\n }\n }\n free_varlist ( in_parms ) ;\n in_parms = NULL ;\n if ( NULL == pnonce ) return ;\n nonce_valid = validate_nonce ( pnonce , rbufp ) ;\n free ( pnonce ) ;\n if ( ! nonce_valid ) return ;\n if ( ( 0 == frags && ! ( 0 < limit && limit <= MRU_ROW_LIMIT ) ) || frags > MRU_FRAGS_LIMIT ) {\n ctl_error ( CERR_BADVALUE ) ;\n return ;\n }\n if ( 0 != frags && 0 == limit ) limit = UINT_MAX ;\n else if ( 0 != limit && 0 == frags ) frags = MRU_FRAGS_LIMIT ;\n mon = NULL ;\n for ( i = 0 ;\n i < ( size_t ) priors ;\n i ++ ) {\n hash = MON_HASH ( & addr [ i ] ) ;\n for ( mon = mon_hash [ hash ] ;\n mon != NULL ;\n mon = mon -> hash_next ) if ( ADDR_PORT_EQ ( & mon -> rmtadr , & addr [ i ] ) ) break ;\n if ( mon != NULL ) {\n if ( L_ISEQU ( & mon -> last , & last [ i ] ) ) break ;\n mon = NULL ;\n }\n }\n if ( priors ) {\n if ( NULL == mon ) {\n ctl_error ( CERR_UNKNOWNVAR ) ;\n return ;\n }\n ctl_putts ( \"last.older\" , & mon -> last ) ;\n pch = sptoa ( & mon -> rmtadr ) ;\n ctl_putunqstr ( \"addr.older\" , pch , strlen ( pch ) ) ;\n if ( limit > 1 ) mon = PREV_DLIST ( mon_mru_list , mon , mru ) ;\n }\n else {\n mon = TAIL_DLIST ( mon_mru_list , mru ) ;\n }\n get_systime ( & now ) ;\n generate_nonce ( rbufp , buf , sizeof ( buf ) ) ;\n ctl_putunqstr ( \"nonce\" , buf , strlen ( buf ) ) ;\n prior_mon = NULL ;\n for ( count = 0 ;\n mon != NULL && res_frags < frags && count < limit ;\n mon = PREV_DLIST ( mon_mru_list , mon , mru ) ) {\n if ( mon -> count < mincount ) continue ;\n if ( resall && resall != ( resall & mon -> flags ) ) continue ;\n if ( resany && ! ( resany & mon -> flags ) ) continue ;\n if ( maxlstint > 0 && now . l_ui - mon -> last . l_ui > maxlstint ) continue ;\n if ( lcladr != NULL && mon -> lcladr != lcladr ) continue ;\n send_mru_entry ( mon , count ) ;\n if ( ! count ) send_random_tag_value ( 0 ) ;\n count ++ ;\n prior_mon = mon ;\n }\n if ( NULL == mon ) {\n if ( count > 1 ) send_random_tag_value ( count - 1 ) ;\n ctl_putts ( \"now\" , & now ) ;\n if ( prior_mon != NULL ) ctl_putts ( \"last.newest\" , & prior_mon -> last ) ;\n }\n ctl_flushpkt ( 0 ) ;\n }"}
{"idx": 18204, "target": 0, "func": "static fz_text * xps_parse_glyphs_imp ( xps_document * doc , const fz_matrix * ctm , fz_font * font , float size , float originx , float originy , int is_sideways , int bidi_level , char * indices , char * unicode ) {\n xps_glyph_metrics mtx ;\n fz_text * text ;\n fz_matrix tm ;\n float e , f ;\n float x = originx ;\n float y = originy ;\n char * us = unicode ;\n char * is = indices ;\n int un = 0 ;\n if ( ! unicode && ! indices ) fz_warn ( doc -> ctx , \"glyphs element with neither characters nor indices\" ) ;\n if ( us ) {\n if ( us [ 0 ] == '{\n' && us [ 1 ] == '}\n' ) us = us + 2 ;\n un = strlen ( us ) ;\n }\n if ( is_sideways ) {\n fz_pre_scale ( fz_rotate ( & tm , 90 ) , - size , size ) ;\n }\n else fz_scale ( & tm , size , - size ) ;\n text = fz_new_text ( doc -> ctx , font , & tm , is_sideways ) ;\n while ( ( us && un > 0 ) || ( is && * is ) ) {\n int char_code = '?' ;\n int code_count = 1 ;\n int glyph_count = 1 ;\n if ( is && * is ) {\n is = xps_parse_cluster_mapping ( is , & code_count , & glyph_count ) ;\n }\n if ( code_count < 1 ) code_count = 1 ;\n if ( glyph_count < 1 ) glyph_count = 1 ;\n while ( code_count -- ) {\n if ( us && un > 0 ) {\n int t = fz_chartorune ( & char_code , us ) ;\n us += t ;\n un -= t ;\n }\n }\n while ( glyph_count -- ) {\n int glyph_index = - 1 ;\n float u_offset = 0 ;\n float v_offset = 0 ;\n float advance ;\n if ( is && * is ) is = xps_parse_glyph_index ( is , & glyph_index ) ;\n if ( glyph_index == - 1 ) glyph_index = xps_encode_font_char ( font , char_code ) ;\n xps_measure_font_glyph ( doc , font , glyph_index , & mtx ) ;\n if ( is_sideways ) advance = mtx . vadv * 100 ;\n else if ( bidi_level & 1 ) advance = - mtx . hadv * 100 ;\n else advance = mtx . hadv * 100 ;\n if ( font -> ft_bold ) advance *= 1.02f ;\n if ( is && * is ) {\n is = xps_parse_glyph_metrics ( is , & advance , & u_offset , & v_offset ) ;\n if ( * is == ';\n' ) is ++ ;\n }\n if ( bidi_level & 1 ) u_offset = - mtx . hadv * 100 - u_offset ;\n u_offset = u_offset * 0.01f * size ;\n v_offset = v_offset * 0.01f * size ;\n if ( is_sideways ) {\n e = x + u_offset + ( mtx . vorg * size ) ;\n f = y - v_offset + ( mtx . hadv * 0.5f * size ) ;\n }\n else {\n e = x + u_offset ;\n f = y - v_offset ;\n }\n fz_add_text ( doc -> ctx , text , glyph_index , char_code , e , f ) ;\n x += advance * 0.01f * size ;\n }\n }\n return text ;\n }"}
{"idx": 18205, "target": 0, "func": "static void mark_work_done ( ArchiveHandle * AH , TocEntry * ready_list , int worker , int status , ParallelState * pstate ) {\n TocEntry * te = NULL ;\n te = pstate -> parallelSlot [ worker ] . args -> te ;\n if ( te == NULL ) exit_horribly ( modulename , \"could not find slot of finished worker\\n\" ) ;\n ahlog ( AH , 1 , \"finished item %d %s %s\\n\" , te -> dumpId , te -> desc , te -> tag ) ;\n if ( status == WORKER_CREATE_DONE ) mark_create_done ( AH , te ) ;\n else if ( status == WORKER_INHIBIT_DATA ) {\n inhibit_data_for_failed_table ( AH , te ) ;\n AH -> public . n_errors ++ ;\n }\n else if ( status == WORKER_IGNORED_ERRORS ) AH -> public . n_errors ++ ;\n else if ( status != 0 ) exit_horribly ( modulename , \"worker process failed: exit code %d\\n\" , status ) ;\n reduce_dependencies ( AH , te , ready_list ) ;\n }"}
{"idx": 18206, "target": 0, "func": "static void test_wl4435_3 ( ) {\n char tmp [ 255 ] ;\n puts ( \"\" ) ;\n WL4435_TEST ( \"TINYINT\" , \"127\" , MYSQL_TYPE_TINY , MYSQL_TYPE_TINY , char , , ( \" - TINYINT / char / MYSQL_TYPE_TINY:\\t\\t\\t %d\" , ( int ) pspv ) , pspv == 127 ) ;\n WL4435_TEST ( \"SMALLINT\" , \"32767\" , MYSQL_TYPE_SHORT , MYSQL_TYPE_SHORT , short , , ( \" - SMALLINT / short / MYSQL_TYPE_SHORT:\\t\\t %d\" , ( int ) pspv ) , pspv == 32767 ) ;\n WL4435_TEST ( \"INT\" , \"2147483647\" , MYSQL_TYPE_LONG , MYSQL_TYPE_LONG , int , , ( \" - INT / int / MYSQL_TYPE_LONG:\\t\\t\\t %d\" , pspv ) , pspv == 2147483647l ) ;\n WL4435_TEST ( \"BIGINT\" , \"9223372036854775807\" , MYSQL_TYPE_LONGLONG , MYSQL_TYPE_LONGLONG , long long , , ( \" - BIGINT / long long / MYSQL_TYPE_LONGLONG:\\t\\t %lld\" , pspv ) , pspv == 9223372036854775807ll ) ;\n WL4435_TEST ( \"TIMESTAMP\" , \"'2007-11-18 15:01:02'\" , MYSQL_TYPE_TIMESTAMP , MYSQL_TYPE_TIMESTAMP , MYSQL_TIME , , ( \" - TIMESTAMP / MYSQL_TIME / MYSQL_TYPE_TIMESTAMP:\\t \" \"%.4d-%.2d-%.2d %.2d:%.2d:%.2d\" , ( int ) pspv . year , ( int ) pspv . month , ( int ) pspv . day , ( int ) pspv . hour , ( int ) pspv . minute , ( int ) pspv . second ) , pspv . year == 2007 && pspv . month == 11 && pspv . day == 18 && pspv . hour == 15 && pspv . minute == 1 && pspv . second == 2 ) ;\n WL4435_TEST ( \"DATETIME\" , \"'1234-11-12 12:34:59'\" , MYSQL_TYPE_DATETIME , MYSQL_TYPE_DATETIME , MYSQL_TIME , , ( \" - DATETIME / MYSQL_TIME / MYSQL_TYPE_DATETIME:\\t \" \"%.4d-%.2d-%.2d %.2d:%.2d:%.2d\" , ( int ) pspv . year , ( int ) pspv . month , ( int ) pspv . day , ( int ) pspv . hour , ( int ) pspv . minute , ( int ) pspv . second ) , pspv . year == 1234 && pspv . month == 11 && pspv . day == 12 && pspv . hour == 12 && pspv . minute == 34 && pspv . second == 59 ) ;\n WL4435_TEST ( \"TIME\" , \"'123:45:01'\" , MYSQL_TYPE_TIME , MYSQL_TYPE_TIME , MYSQL_TIME , , ( \" - TIME / MYSQL_TIME / MYSQL_TYPE_TIME:\\t\\t \" \"%.3d:%.2d:%.2d\" , ( int ) pspv . hour , ( int ) pspv . minute , ( int ) pspv . second ) , pspv . hour == 123 && pspv . minute == 45 && pspv . second == 1 ) ;\n WL4435_TEST ( \"DATE\" , \"'1234-11-12'\" , MYSQL_TYPE_DATE , MYSQL_TYPE_DATE , MYSQL_TIME , , ( \" - DATE / MYSQL_TIME / MYSQL_TYPE_DATE:\\t\\t \" \"%.4d-%.2d-%.2d\" , ( int ) pspv . year , ( int ) pspv . month , ( int ) pspv . day ) , pspv . year == 1234 && pspv . month == 11 && pspv . day == 12 ) ;\n WL4435_TEST ( \"YEAR\" , \"'2010'\" , MYSQL_TYPE_SHORT , MYSQL_TYPE_YEAR , short , , ( \" - YEAR / short / MYSQL_TYPE_SHORT:\\t\\t\\t %.4d\" , ( int ) pspv ) , pspv == 2010 ) ;\n WL4435_TEST ( \"FLOAT(7, 4)\" , \"123.4567\" , MYSQL_TYPE_FLOAT , MYSQL_TYPE_FLOAT , float , , ( \" - FLOAT / float / MYSQL_TYPE_FLOAT:\\t\\t\\t %g\" , ( double ) pspv ) , pspv - 123.4567 < 0.0001 ) ;\n WL4435_TEST ( \"DOUBLE(8, 5)\" , \"123.45678\" , MYSQL_TYPE_DOUBLE , MYSQL_TYPE_DOUBLE , double , , ( \" - DOUBLE / double / MYSQL_TYPE_DOUBLE:\\t\\t %g\" , ( double ) pspv ) , pspv - 123.45678 < 0.00001 ) ;\n WL4435_TEST ( \"DECIMAL(9, 6)\" , \"123.456789\" , MYSQL_TYPE_NEWDECIMAL , MYSQL_TYPE_NEWDECIMAL , char , [ 255 ] , ( \" - DECIMAL / char[] / MYSQL_TYPE_NEWDECIMAL:\\t\\t '%s'\" , ( char * ) pspv ) , ! strcmp ( pspv , \"123.456789\" ) ) ;\n WL4435_TEST ( \"CHAR(32)\" , \"REPEAT('C', 16)\" , MYSQL_TYPE_STRING , MYSQL_TYPE_STRING , char , [ 255 ] , ( \" - CHAR(32) / char[] / MYSQL_TYPE_STRING:\\t\\t '%s'\" , ( char * ) pspv ) , ! strcmp ( pspv , \"CCCCCCCCCCCCCCCC\" ) ) ;\n WL4435_TEST ( \"VARCHAR(32)\" , \"REPEAT('V', 16)\" , MYSQL_TYPE_VAR_STRING , MYSQL_TYPE_VAR_STRING , char , [ 255 ] , ( \" - VARCHAR(32) / char[] / MYSQL_TYPE_VAR_STRING:\\t '%s'\" , ( char * ) pspv ) , ! strcmp ( pspv , \"VVVVVVVVVVVVVVVV\" ) ) ;\n WL4435_TEST ( \"TINYTEXT\" , \"REPEAT('t', 16)\" , MYSQL_TYPE_TINY_BLOB , MYSQL_TYPE_BLOB , char , [ 255 ] , ( \" - TINYTEXT / char[] / MYSQL_TYPE_TINY_BLOB:\\t\\t '%s'\" , ( char * ) pspv ) , ! strcmp ( pspv , \"tttttttttttttttt\" ) ) ;\n WL4435_TEST ( \"TEXT\" , \"REPEAT('t', 16)\" , MYSQL_TYPE_BLOB , MYSQL_TYPE_BLOB , char , [ 255 ] , ( \" - TEXT / char[] / MYSQL_TYPE_BLOB:\\t\\t\\t '%s'\" , ( char * ) pspv ) , ! strcmp ( pspv , \"tttttttttttttttt\" ) ) ;\n WL4435_TEST ( \"MEDIUMTEXT\" , \"REPEAT('t', 16)\" , MYSQL_TYPE_MEDIUM_BLOB , MYSQL_TYPE_BLOB , char , [ 255 ] , ( \" - MEDIUMTEXT / char[] / MYSQL_TYPE_MEDIUM_BLOB:\\t '%s'\" , ( char * ) pspv ) , ! strcmp ( pspv , \"tttttttttttttttt\" ) ) ;\n WL4435_TEST ( \"LONGTEXT\" , \"REPEAT('t', 16)\" , MYSQL_TYPE_LONG_BLOB , MYSQL_TYPE_BLOB , char , [ 255 ] , ( \" - LONGTEXT / char[] / MYSQL_TYPE_LONG_BLOB:\\t\\t '%s'\" , ( char * ) pspv ) , ! strcmp ( pspv , \"tttttttttttttttt\" ) ) ;\n WL4435_TEST ( \"BINARY(32)\" , \"REPEAT('\\1', 16)\" , MYSQL_TYPE_STRING , MYSQL_TYPE_STRING , char , [ 255 ] , ( \" - BINARY(32) / char[] / MYSQL_TYPE_STRING:\\t\\t '%s'\" , ( char * ) pspv ) , memset ( tmp , 1 , 16 ) && ! memcmp ( tmp , pspv , 16 ) ) ;\n WL4435_TEST ( \"VARBINARY(32)\" , \"REPEAT('\\1', 16)\" , MYSQL_TYPE_VAR_STRING , MYSQL_TYPE_VAR_STRING , char , [ 255 ] , ( \" - VARBINARY(32) / char[] / MYSQL_TYPE_VAR_STRING:\\t '%s'\" , ( char * ) pspv ) , memset ( tmp , 1 , 16 ) && ! memcmp ( tmp , pspv , 16 ) ) ;\n WL4435_TEST ( \"TINYBLOB\" , \"REPEAT('\\2', 16)\" , MYSQL_TYPE_TINY_BLOB , MYSQL_TYPE_BLOB , char , [ 255 ] , ( \" - TINYBLOB / char[] / MYSQL_TYPE_TINY_BLOB:\\t\\t '%s'\" , ( char * ) pspv ) , memset ( tmp , 2 , 16 ) && ! memcmp ( tmp , pspv , 16 ) ) ;\n WL4435_TEST ( \"BLOB\" , \"REPEAT('\\2', 16)\" , MYSQL_TYPE_BLOB , MYSQL_TYPE_BLOB , char , [ 255 ] , ( \" - BLOB / char[] / MYSQL_TYPE_BLOB:\\t\\t\\t '%s'\" , ( char * ) pspv ) , memset ( tmp , 2 , 16 ) && ! memcmp ( tmp , pspv , 16 ) ) ;\n WL4435_TEST ( \"MEDIUMBLOB\" , \"REPEAT('\\2', 16)\" , MYSQL_TYPE_MEDIUM_BLOB , MYSQL_TYPE_BLOB , char , [ 255 ] , ( \" - MEDIUMBLOB / char[] / MYSQL_TYPE_MEDIUM_BLOB:\\t '%s'\" , ( char * ) pspv ) , memset ( tmp , 2 , 16 ) && ! memcmp ( tmp , pspv , 16 ) ) ;\n WL4435_TEST ( \"LONGBLOB\" , \"REPEAT('\\2', 16)\" , MYSQL_TYPE_LONG_BLOB , MYSQL_TYPE_BLOB , char , [ 255 ] , ( \" - LONGBLOB / char[] / MYSQL_TYPE_LONG_BLOB:\\t\\t '%s'\" , ( char * ) pspv ) , memset ( tmp , 2 , 16 ) && ! memcmp ( tmp , pspv , 16 ) ) ;\n }"}
{"idx": 18207, "target": 1, "func": "static struct object_list * * process_blob ( struct blob * blob , struct object_list * * p , struct name_path * path , const char * name ) {\n struct object * obj = & blob -> object ;\n obj -> flags |= LOCAL ;\n if ( obj -> flags & ( UNINTERESTING | SEEN ) ) return p ;\n obj -> flags |= SEEN ;\n return add_one_object ( obj , p ) ;\n }"}
{"idx": 18208, "target": 0, "func": "static int asf_write_trailer ( AVFormatContext * s ) {\n ASFContext * asf = s -> priv_data ;\n int64_t file_size , data_size ;\n int ret ;\n if ( asf -> pb . buf_ptr > asf -> pb . buffer ) flush_packet ( s ) ;\n data_size = avio_tell ( s -> pb ) ;\n if ( ! asf -> is_streamed && asf -> next_start_sec ) {\n if ( ( ret = update_index ( s , asf -> end_sec + 1 , 0 , 0 , 0 ) ) < 0 ) return ret ;\n asf_write_index ( s , asf -> index_ptr , asf -> maximum_packet , asf -> next_start_sec ) ;\n }\n avio_flush ( s -> pb ) ;\n if ( asf -> is_streamed || ! s -> pb -> seekable ) {\n put_chunk ( s , 0x4524 , 0 , 0 ) ;\n }\n else {\n file_size = avio_tell ( s -> pb ) ;\n avio_seek ( s -> pb , 0 , SEEK_SET ) ;\n asf_write_header1 ( s , file_size , data_size - asf -> data_offset ) ;\n }\n av_freep ( & asf -> index_ptr ) ;\n return 0 ;\n }"}
{"idx": 18209, "target": 0, "func": "static void error_handler ( void * data ) {\n VP9_COMMON * const cm = ( VP9_COMMON * ) data ;\n vpx_internal_error ( & cm -> error , VPX_CODEC_CORRUPT_FRAME , \"Truncated packet\" ) ;\n }"}
{"idx": 18210, "target": 0, "func": "const char * mime_field_value_get_comma_val ( const MIMEField * field , int * length , int idx ) {\n if ( ! field -> supports_commas ( ) ) {\n if ( idx == 0 ) {\n return mime_field_value_get ( field , length ) ;\n }\n else {\n return nullptr ;\n }\n }\n else {\n Str * str ;\n StrList list ( false ) ;\n mime_field_value_get_comma_list ( field , & list ) ;\n str = list . get_idx ( idx ) ;\n if ( str != nullptr ) {\n * length = ( int ) ( str -> len ) ;\n return str -> str ;\n }\n else {\n * length = 0 ;\n return nullptr ;\n }\n }\n }"}
{"idx": 18211, "target": 1, "func": "static void erase_line ( AVCodecContext * avctx , int xoffset , int xlength ) {\n AnsiContext * s = avctx -> priv_data ;\n int i ;\n for ( i = 0 ;\n i < s -> font_height ;\n i ++ ) memset ( s -> frame . data [ 0 ] + ( s -> y + i ) * s -> frame . linesize [ 0 ] + xoffset , DEFAULT_BG_COLOR , xlength ) ;\n }"}
{"idx": 18212, "target": 0, "func": "void fz_cmm_fin_link ( fz_context * ctx , fz_icclink * link ) {\n if ( ctx && ctx -> colorspace && ctx -> colorspace -> cmm && ctx -> cmm_instance ) ctx -> colorspace -> cmm -> fin_link ( ctx -> cmm_instance , link ) ;\n }"}
{"idx": 18213, "target": 0, "func": "static long long millis_from_datetime ( PyObject * datetime ) {\n struct TM timeinfo ;\n long long millis ;\n timeinfo . tm_year = PyDateTime_GET_YEAR ( datetime ) - 1900 ;\n timeinfo . tm_mon = PyDateTime_GET_MONTH ( datetime ) - 1 ;\n timeinfo . tm_mday = PyDateTime_GET_DAY ( datetime ) ;\n timeinfo . tm_hour = PyDateTime_DATE_GET_HOUR ( datetime ) ;\n timeinfo . tm_min = PyDateTime_DATE_GET_MINUTE ( datetime ) ;\n timeinfo . tm_sec = PyDateTime_DATE_GET_SECOND ( datetime ) ;\n millis = timegm64 ( & timeinfo ) * 1000 ;\n millis += PyDateTime_DATE_GET_MICROSECOND ( datetime ) / 1000 ;\n return millis ;\n }"}
{"idx": 18214, "target": 0, "func": "int vp9_get_compressed_data ( VP9_COMP * cpi , unsigned int * frame_flags , size_t * size , uint8_t * dest , int64_t * time_stamp , int64_t * time_end , int flush ) {\n const VP9EncoderConfig * const oxcf = & cpi -> oxcf ;\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCKD * const xd = & cpi -> mb . e_mbd ;\n RATE_CONTROL * const rc = & cpi -> rc ;\n struct vpx_usec_timer cmptimer ;\n YV12_BUFFER_CONFIG * force_src_buffer = NULL ;\n struct lookahead_entry * last_source = NULL ;\n struct lookahead_entry * source = NULL ;\n MV_REFERENCE_FRAME ref_frame ;\n int arf_src_index ;\n if ( is_two_pass_svc ( cpi ) ) {\n # if CONFIG_SPATIAL_SVC vp9_svc_start_frame ( cpi ) ;\n # endif if ( oxcf -> pass == 2 ) vp9_restore_layer_context ( cpi ) ;\n }\n vpx_usec_timer_start ( & cmptimer ) ;\n vp9_set_high_precision_mv ( cpi , ALTREF_HIGH_PRECISION_MV ) ;\n cm -> reset_frame_context = 0 ;\n cm -> refresh_frame_context = 1 ;\n cpi -> refresh_last_frame = 1 ;\n cpi -> refresh_golden_frame = 0 ;\n cpi -> refresh_alt_ref_frame = 0 ;\n arf_src_index = get_arf_src_index ( cpi ) ;\n if ( arf_src_index ) {\n assert ( arf_src_index <= rc -> frames_to_key ) ;\n if ( ( source = vp9_lookahead_peek ( cpi -> lookahead , arf_src_index ) ) != NULL ) {\n cpi -> alt_ref_source = source ;\n # if CONFIG_SPATIAL_SVC if ( is_two_pass_svc ( cpi ) && cpi -> svc . spatial_layer_id > 0 ) {\n int i ;\n for ( i = cpi -> svc . spatial_layer_id - 1 ;\n i >= 0 ;\n -- i ) {\n if ( oxcf -> ss_play_alternate [ i ] ) {\n cpi -> gld_fb_idx = cpi -> svc . layer_context [ i ] . alt_ref_idx ;\n break ;\n }\n }\n }\n cpi -> svc . layer_context [ cpi -> svc . spatial_layer_id ] . has_alt_frame = 1 ;\n # endif if ( oxcf -> arnr_max_frames > 0 ) {\n vp9_temporal_filter ( cpi , arf_src_index ) ;\n vp9_extend_frame_borders ( & cpi -> alt_ref_buffer ) ;\n force_src_buffer = & cpi -> alt_ref_buffer ;\n }\n cm -> show_frame = 0 ;\n cpi -> refresh_alt_ref_frame = 1 ;\n cpi -> refresh_golden_frame = 0 ;\n cpi -> refresh_last_frame = 0 ;\n rc -> is_src_frame_alt_ref = 0 ;\n rc -> source_alt_ref_pending = 0 ;\n }\n else {\n rc -> source_alt_ref_pending = 0 ;\n }\n }\n if ( ! source ) {\n if ( cm -> current_video_frame > 0 ) {\n if ( ( last_source = vp9_lookahead_peek ( cpi -> lookahead , - 1 ) ) == NULL ) return - 1 ;\n }\n # if CONFIG_SPATIAL_SVC if ( is_two_pass_svc ( cpi ) ) source = vp9_svc_lookahead_pop ( cpi , cpi -> lookahead , flush ) ;\n else # endif source = vp9_lookahead_pop ( cpi -> lookahead , flush ) ;\n if ( source != NULL ) {\n cm -> show_frame = 1 ;\n cm -> intra_only = 0 ;\n check_src_altref ( cpi , source ) ;\n }\n }\n if ( source ) {\n cpi -> un_scaled_source = cpi -> Source = force_src_buffer ? force_src_buffer : & source -> img ;\n cpi -> unscaled_last_source = last_source != NULL ? & last_source -> img : NULL ;\n * time_stamp = source -> ts_start ;\n * time_end = source -> ts_end ;\n * frame_flags = ( source -> flags & VPX_EFLAG_FORCE_KF ) ? FRAMEFLAGS_KEY : 0 ;\n }\n else {\n * size = 0 ;\n if ( flush && oxcf -> pass == 1 && ! cpi -> twopass . first_pass_done ) {\n vp9_end_first_pass ( cpi ) ;\n cpi -> twopass . first_pass_done = 1 ;\n }\n return - 1 ;\n }\n if ( source -> ts_start < cpi -> first_time_stamp_ever ) {\n cpi -> first_time_stamp_ever = source -> ts_start ;\n cpi -> last_end_time_stamp_seen = source -> ts_start ;\n }\n vp9_clear_system_state ( ) ;\n if ( cm -> show_frame ) {\n adjust_frame_rate ( cpi , source ) ;\n }\n if ( cpi -> svc . number_temporal_layers > 1 && oxcf -> rc_mode == VPX_CBR ) {\n vp9_update_temporal_layer_framerate ( cpi ) ;\n vp9_restore_layer_context ( cpi ) ;\n }\n * size = 0 ;\n cm -> frame_bufs [ cm -> new_fb_idx ] . ref_count -- ;\n cm -> new_fb_idx = get_free_fb ( cm ) ;\n if ( ( oxcf -> pass == 2 ) && ( ! cpi -> use_svc || is_two_pass_svc ( cpi ) ) ) {\n vp9_rc_get_second_pass_params ( cpi ) ;\n }\n if ( ! cpi -> use_svc && cpi -> multi_arf_allowed ) {\n if ( cm -> frame_type == KEY_FRAME ) {\n init_buffer_indices ( cpi ) ;\n }\n else if ( oxcf -> pass == 2 ) {\n const GF_GROUP * const gf_group = & cpi -> twopass . gf_group ;\n cpi -> alt_fb_idx = gf_group -> arf_ref_idx [ gf_group -> index ] ;\n }\n }\n cpi -> frame_flags = * frame_flags ;\n if ( oxcf -> pass == 2 && cm -> current_video_frame == 0 && oxcf -> allow_spatial_resampling && oxcf -> rc_mode == VPX_VBR ) {\n vp9_set_size_literal ( cpi , oxcf -> scaled_frame_width , oxcf -> scaled_frame_height ) ;\n }\n vp9_realloc_frame_buffer ( get_frame_new_buffer ( cm ) , cm -> width , cm -> height , cm -> subsampling_x , cm -> subsampling_y , # if CONFIG_VP9_HIGHBITDEPTH cm -> use_highbitdepth , # endif VP9_ENC_BORDER_IN_PIXELS , NULL , NULL , NULL ) ;\n alloc_util_frame_buffers ( cpi ) ;\n init_motion_estimation ( cpi ) ;\n for ( ref_frame = LAST_FRAME ;\n ref_frame <= ALTREF_FRAME ;\n ++ ref_frame ) {\n const int idx = cm -> ref_frame_map [ get_ref_frame_idx ( cpi , ref_frame ) ] ;\n YV12_BUFFER_CONFIG * const buf = & cm -> frame_bufs [ idx ] . buf ;\n RefBuffer * const ref_buf = & cm -> frame_refs [ ref_frame - 1 ] ;\n ref_buf -> buf = buf ;\n ref_buf -> idx = idx ;\n # if CONFIG_VP9_HIGHBITDEPTH vp9_setup_scale_factors_for_frame ( & ref_buf -> sf , buf -> y_crop_width , buf -> y_crop_height , cm -> width , cm -> height , ( buf -> flags & YV12_FLAG_HIGHBITDEPTH ) ? : 0 ) ;\n # else vp9_setup_scale_factors_for_frame ( & ref_buf -> sf , buf -> y_crop_width , buf -> y_crop_height , cm -> width , cm -> height ) ;\n # endif if ( vp9_is_scaled ( & ref_buf -> sf ) ) vp9_extend_frame_borders ( buf ) ;\n }\n set_ref_ptrs ( cm , xd , LAST_FRAME , LAST_FRAME ) ;\n if ( oxcf -> aq_mode == VARIANCE_AQ ) {\n vp9_vaq_init ( ) ;\n }\n if ( oxcf -> pass == 1 && ( ! cpi -> use_svc || is_two_pass_svc ( cpi ) ) ) {\n const int lossless = is_lossless_requested ( oxcf ) ;\n # if CONFIG_VP9_HIGHBITDEPTH if ( cpi -> oxcf . use_highbitdepth ) cpi -> mb . fwd_txm4x4 = lossless ? vp9_high_fwht4x4 : vp9_high_fdct4x4 ;\n else cpi -> mb . fwd_txm4x4 = lossless ? vp9_fwht4x4 : vp9_fdct4x4 ;\n cpi -> mb . high_itxm_add = lossless ? vp9_high_iwht4x4_add : vp9_high_idct4x4_add ;\n # else cpi -> mb . fwd_txm4x4 = lossless ? vp9_fwht4x4 : vp9_fdct4x4 ;\n # endif cpi -> mb . itxm_add = lossless ? vp9_iwht4x4_add : vp9_idct4x4_add ;\n vp9_first_pass ( cpi , source ) ;\n }\n else if ( oxcf -> pass == 2 && ( ! cpi -> use_svc || is_two_pass_svc ( cpi ) ) ) {\n Pass2Encode ( cpi , size , dest , frame_flags ) ;\n }\n else if ( cpi -> use_svc ) {\n SvcEncode ( cpi , size , dest , frame_flags ) ;\n }\n else {\n Pass0Encode ( cpi , size , dest , frame_flags ) ;\n }\n if ( cm -> refresh_frame_context ) cm -> frame_contexts [ cm -> frame_context_idx ] = cm -> fc ;\n if ( * size == 0 ) {\n release_scaled_references ( cpi ) ;\n }\n if ( * size > 0 ) {\n cpi -> droppable = ! frame_is_reference ( cpi ) ;\n }\n if ( ( cpi -> svc . number_temporal_layers > 1 && oxcf -> rc_mode == VPX_CBR ) || ( ( cpi -> svc . number_temporal_layers > 1 || cpi -> svc . number_spatial_layers > 1 ) && oxcf -> pass == 2 ) ) {\n vp9_save_layer_context ( cpi ) ;\n }\n vpx_usec_timer_mark ( & cmptimer ) ;\n cpi -> time_compress_data += vpx_usec_timer_elapsed ( & cmptimer ) ;\n if ( cpi -> b_calculate_psnr && oxcf -> pass != 1 && cm -> show_frame ) generate_psnr_packet ( cpi ) ;\n # if CONFIG_INTERNAL_STATS if ( oxcf -> pass != 1 ) {\n cpi -> bytes += ( int ) ( * size ) ;\n if ( cm -> show_frame ) {\n cpi -> count ++ ;\n if ( cpi -> b_calculate_psnr ) {\n YV12_BUFFER_CONFIG * orig = cpi -> Source ;\n YV12_BUFFER_CONFIG * recon = cpi -> common . frame_to_show ;\n YV12_BUFFER_CONFIG * pp = & cm -> post_proc_buffer ;\n PSNR_STATS psnr ;\n calc_psnr ( orig , recon , & psnr ) ;\n cpi -> total += psnr . psnr [ 0 ] ;\n cpi -> total_y += psnr . psnr [ 1 ] ;\n cpi -> total_u += psnr . psnr [ 2 ] ;\n cpi -> total_v += psnr . psnr [ 3 ] ;\n cpi -> total_sq_error += psnr . sse [ 0 ] ;\n cpi -> total_samples += psnr . samples [ 0 ] ;\n {\n PSNR_STATS psnr2 ;\n double frame_ssim2 = 0 , weight = 0 ;\n # if CONFIG_VP9_POSTPROC vp9_deblock ( cm -> frame_to_show , & cm -> post_proc_buffer , cm -> lf . filter_level * 10 / 6 ) ;\n # endif vp9_clear_system_state ( ) ;\n calc_psnr ( orig , pp , & psnr2 ) ;\n cpi -> totalp += psnr2 . psnr [ 0 ] ;\n cpi -> totalp_y += psnr2 . psnr [ 1 ] ;\n cpi -> totalp_u += psnr2 . psnr [ 2 ] ;\n cpi -> totalp_v += psnr2 . psnr [ 3 ] ;\n cpi -> totalp_sq_error += psnr2 . sse [ 0 ] ;\n cpi -> totalp_samples += psnr2 . samples [ 0 ] ;\n frame_ssim2 = vp9_calc_ssim ( orig , recon , & weight ) ;\n cpi -> summed_quality += frame_ssim2 * weight ;\n cpi -> summed_weights += weight ;\n frame_ssim2 = vp9_calc_ssim ( orig , & cm -> post_proc_buffer , & weight ) ;\n cpi -> summedp_quality += frame_ssim2 * weight ;\n cpi -> summedp_weights += weight ;\n # if 0 {\n FILE * f = fopen ( \"q_used.stt\" , \"a\" ) ;\n fprintf ( f , \"%5d : Y%f7.3:U%f7.3:V%f7.3:F%f7.3:S%7.3f\\n\" , cpi -> common . current_video_frame , y2 , u2 , v2 , frame_psnr2 , frame_ssim2 ) ;\n fclose ( f ) ;\n }\n # endif }\n }\n if ( cpi -> b_calculate_ssimg ) {\n double y , u , v , frame_all ;\n frame_all = vp9_calc_ssimg ( cpi -> Source , cm -> frame_to_show , & y , & u , & v ) ;\n cpi -> total_ssimg_y += y ;\n cpi -> total_ssimg_u += u ;\n cpi -> total_ssimg_v += v ;\n cpi -> total_ssimg_all += frame_all ;\n }\n }\n }\n # endif if ( is_two_pass_svc ( cpi ) && cm -> show_frame ) {\n ++ cpi -> svc . spatial_layer_to_encode ;\n if ( cpi -> svc . spatial_layer_to_encode >= cpi -> svc . number_spatial_layers ) cpi -> svc . spatial_layer_to_encode = 0 ;\n }\n return 0 ;\n }"}
{"idx": 18215, "target": 0, "func": "static int dissect_h245_T_forwardLogicalChannelParameters ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 168 \"../../asn1/h245/h245.cnf\" upcoming_channel = ( upcoming_olc ) ? & upcoming_olc -> fwd_lc : NULL ;\n h245_lc_dissector = NULL ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_forwardLogicalChannelParameters , T_forwardLogicalChannelParameters_sequence ) ;\n if ( h223_lc_params_temp && h245_lc_dissector ) h223_lc_params_temp -> subdissector = h245_lc_dissector ;\n else if ( h223_lc_params_temp ) h223_lc_params_temp -> subdissector = data_handle ;\n if ( upcoming_channel && codec_type ) {\n g_strlcpy ( upcoming_channel -> data_type_str , codec_type , sizeof ( upcoming_channel -> data_type_str ) ) ;\n }\n upcoming_channel = NULL ;\n return offset ;\n }"}
{"idx": 18216, "target": 0, "func": "TSReturnCode TSHttpTxnCacheLookupCountGet ( TSHttpTxn txnp , int * lookup_count ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) lookup_count ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n * lookup_count = sm -> t_state . cache_info . lookup_count ;\n return TS_SUCCESS ;\n }"}
{"idx": 18217, "target": 0, "func": "static int dissect_h225_UUIEsRequested ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_UUIEsRequested , UUIEsRequested_sequence ) ;\n return offset ;\n }"}
{"idx": 18218, "target": 0, "func": "int dtls1_handle_timeout ( SSL * s ) {\n if ( ! dtls1_is_timer_expired ( s ) ) {\n return 0 ;\n }\n dtls1_double_timeout ( s ) ;\n if ( dtls1_check_timeout_num ( s ) < 0 ) return - 1 ;\n s -> d1 -> timeout . read_timeouts ++ ;\n if ( s -> d1 -> timeout . read_timeouts > DTLS1_TMO_READ_COUNT ) {\n s -> d1 -> timeout . read_timeouts = 1 ;\n }\n # ifndef OPENSSL_NO_HEARTBEATS if ( s -> tlsext_hb_pending ) {\n s -> tlsext_hb_pending = 0 ;\n return dtls1_heartbeat ( s ) ;\n }\n # endif dtls1_start_timer ( s ) ;\n return dtls1_retransmit_buffered_messages ( s ) ;\n }"}
{"idx": 18219, "target": 0, "func": "void * srtp_get_user_data ( srtp_t ctx ) {\n return ctx -> user_data ;\n }"}
{"idx": 18220, "target": 0, "func": "static int parse_traffic ( char * buf , int len , char * port , uint64_t * traffic ) {\n char * data = get_data ( buf , len ) ;\n char error_buf [ 512 ] ;\n json_settings settings = {\n 0 }\n ;\n if ( data == NULL ) {\n LOGE ( \"No data found\" ) ;\n return - 1 ;\n }\n json_value * obj = json_parse_ex ( & settings , data , strlen ( data ) , error_buf ) ;\n if ( obj == NULL ) {\n LOGE ( \"%s\" , error_buf ) ;\n return - 1 ;\n }\n if ( obj -> type == json_object ) {\n int i = 0 ;\n for ( i = 0 ;\n i < obj -> u . object . length ;\n i ++ ) {\n char * name = obj -> u . object . values [ i ] . name ;\n json_value * value = obj -> u . object . values [ i ] . value ;\n if ( value -> type == json_integer ) {\n strncpy ( port , name , 8 ) ;\n * traffic = value -> u . integer ;\n }\n }\n }\n json_value_free ( obj ) ;\n return 0 ;\n }"}
{"idx": 18221, "target": 0, "func": "static SplinePointList * EraseStroke ( SplineChar * sc , SplinePointList * head , SplinePointList * erase ) {\n SplineSet * spl , * last ;\n SplinePoint * sp ;\n if ( head == NULL ) {\n SplinePointListsFree ( erase ) ;\n return ( NULL ) ;\n }\n last = NULL ;\n for ( spl = head ;\n spl != NULL ;\n spl = spl -> next ) {\n for ( sp = spl -> first ;\n sp != NULL ;\n ) {\n sp -> selected = false ;\n if ( sp -> next == NULL ) break ;\n sp = sp -> next -> to ;\n if ( sp == spl -> first ) break ;\n }\n last = spl ;\n }\n for ( spl = erase ;\n spl != NULL ;\n spl = spl -> next ) {\n for ( sp = spl -> first ;\n sp != NULL ;\n ) {\n sp -> selected = true ;\n if ( sp -> next == NULL ) break ;\n sp = sp -> next -> to ;\n if ( sp == spl -> first ) break ;\n }\n }\n last -> next = erase ;\n return ( SplineSetRemoveOverlap ( sc , head , over_exclude ) ) ;\n }"}
{"idx": 18222, "target": 1, "func": "static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 18223, "target": 0, "func": "static void safe_put_field ( const char * pos , ulong length ) {\n if ( ! pos ) tee_fputs ( \"NULL\" , PAGER ) ;\n else {\n if ( opt_raw_data ) {\n unsigned long i ;\n for ( i = 0 ;\n i < length ;\n i ++ , pos ++ ) tee_putc ( * pos , PAGER ) ;\n }\n else for ( const char * end = pos + length ;\n pos != end ;\n pos ++ ) {\n # ifdef USE_MB int l ;\n if ( use_mb ( charset_info ) && ( l = my_ismbchar ( charset_info , pos , end ) ) ) {\n while ( l -- ) tee_putc ( * pos ++ , PAGER ) ;\n pos -- ;\n continue ;\n }\n # endif if ( ! * pos ) tee_fputs ( \"\\\\0\" , PAGER ) ;\n else if ( * pos == '\\t' ) tee_fputs ( \"\\\\t\" , PAGER ) ;\n else if ( * pos == '\\n' ) tee_fputs ( \"\\\\n\" , PAGER ) ;\n else if ( * pos == '\\\\' ) tee_fputs ( \"\\\\\\\\\" , PAGER ) ;\n else tee_putc ( * pos , PAGER ) ;\n }\n }\n }"}
{"idx": 18224, "target": 0, "func": "int xmlThrDefPedanticParserDefaultValue ( int v ) {\n int ret ;\n xmlMutexLock ( xmlThrDefMutex ) ;\n ret = xmlPedanticParserDefaultValueThrDef ;\n xmlPedanticParserDefaultValueThrDef = v ;\n xmlMutexUnlock ( xmlThrDefMutex ) ;\n return ret ;\n }"}
{"idx": 18225, "target": 0, "func": "static void generate_joint_tables ( HYuvContext * s ) {\n uint16_t symbols [ 1 << VLC_BITS ] ;\n uint16_t bits [ 1 << VLC_BITS ] ;\n uint8_t len [ 1 << VLC_BITS ] ;\n if ( s -> bitstream_bpp < 24 ) {\n int p , i , y , u ;\n for ( p = 0 ;\n p < 3 ;\n p ++ ) {\n for ( i = y = 0 ;\n y < 256 ;\n y ++ ) {\n int len0 = s -> len [ 0 ] [ y ] ;\n int limit = VLC_BITS - len0 ;\n if ( limit <= 0 ) continue ;\n for ( u = 0 ;\n u < 256 ;\n u ++ ) {\n int len1 = s -> len [ p ] [ u ] ;\n if ( len1 > limit ) continue ;\n len [ i ] = len0 + len1 ;\n bits [ i ] = ( s -> bits [ 0 ] [ y ] << len1 ) + s -> bits [ p ] [ u ] ;\n symbols [ i ] = ( y << 8 ) + u ;\n if ( symbols [ i ] != 0xffff ) i ++ ;\n }\n }\n ff_free_vlc ( & s -> vlc [ 3 + p ] ) ;\n ff_init_vlc_sparse ( & s -> vlc [ 3 + p ] , VLC_BITS , i , len , 1 , 1 , bits , 2 , 2 , symbols , 2 , 2 , 0 ) ;\n }\n }\n else {\n uint8_t ( * map ) [ 4 ] = ( uint8_t ( * ) [ 4 ] ) s -> pix_bgr_map ;\n int i , b , g , r , code ;\n int p0 = s -> decorrelate ;\n int p1 = ! s -> decorrelate ;\n for ( i = 0 , g = - 16 ;\n g < 16 ;\n g ++ ) {\n int len0 = s -> len [ p0 ] [ g & 255 ] ;\n int limit0 = VLC_BITS - len0 ;\n if ( limit0 < 2 ) continue ;\n for ( b = - 16 ;\n b < 16 ;\n b ++ ) {\n int len1 = s -> len [ p1 ] [ b & 255 ] ;\n int limit1 = limit0 - len1 ;\n if ( limit1 < 1 ) continue ;\n code = ( s -> bits [ p0 ] [ g & 255 ] << len1 ) + s -> bits [ p1 ] [ b & 255 ] ;\n for ( r = - 16 ;\n r < 16 ;\n r ++ ) {\n int len2 = s -> len [ 2 ] [ r & 255 ] ;\n if ( len2 > limit1 ) continue ;\n len [ i ] = len0 + len1 + len2 ;\n bits [ i ] = ( code << len2 ) + s -> bits [ 2 ] [ r & 255 ] ;\n if ( s -> decorrelate ) {\n map [ i ] [ G ] = g ;\n map [ i ] [ B ] = g + b ;\n map [ i ] [ R ] = g + r ;\n }\n else {\n map [ i ] [ B ] = g ;\n map [ i ] [ G ] = b ;\n map [ i ] [ R ] = r ;\n }\n i ++ ;\n }\n }\n }\n ff_free_vlc ( & s -> vlc [ 3 ] ) ;\n init_vlc ( & s -> vlc [ 3 ] , VLC_BITS , i , len , 1 , 1 , bits , 2 , 2 , 0 ) ;\n }\n }"}
{"idx": 18226, "target": 0, "func": "static const struct var_expand_table * login_set_var_expand_table ( const struct master_service_settings_input * input ) {\n static struct var_expand_table static_tab [ ] = {\n {\n 'l' , NULL , \"lip\" }\n , {\n 'r' , NULL , \"rip\" }\n , {\n 'p' , NULL , \"pid\" }\n , {\n 's' , NULL , \"service\" }\n , {\n '\\0' , NULL , \"local_name\" }\n , {\n '\\0' , NULL , NULL }\n }\n ;\n struct var_expand_table * tab ;\n tab = t_malloc ( sizeof ( static_tab ) ) ;\n memcpy ( tab , static_tab , sizeof ( static_tab ) ) ;\n tab [ 0 ] . value = net_ip2addr ( & input -> local_ip ) ;\n tab [ 1 ] . value = net_ip2addr ( & input -> remote_ip ) ;\n tab [ 2 ] . value = my_pid ;\n tab [ 3 ] . value = input -> service ;\n tab [ 4 ] . value = input -> local_name ;\n return tab ;\n }"}
{"idx": 18227, "target": 0, "func": "static int ir2_decode_plane ( Ir2Context * ctx , int width , int height , uint8_t * dst , int stride , const uint8_t * table ) {\n int i ;\n int j ;\n int out = 0 ;\n int c ;\n int t ;\n if ( width & 1 ) return AVERROR_INVALIDDATA ;\n while ( out < width ) {\n c = ir2_get_code ( & ctx -> gb ) ;\n if ( c >= 0x80 ) {\n c -= 0x7F ;\n if ( out + c * 2 > width ) return AVERROR_INVALIDDATA ;\n for ( i = 0 ;\n i < c * 2 ;\n i ++ ) dst [ out ++ ] = 0x80 ;\n }\n else {\n dst [ out ++ ] = table [ c * 2 ] ;\n dst [ out ++ ] = table [ ( c * 2 ) + 1 ] ;\n }\n }\n dst += stride ;\n for ( j = 1 ;\n j < height ;\n j ++ ) {\n out = 0 ;\n while ( out < width ) {\n c = ir2_get_code ( & ctx -> gb ) ;\n if ( c >= 0x80 ) {\n c -= 0x7F ;\n if ( out + c * 2 > width ) return AVERROR_INVALIDDATA ;\n for ( i = 0 ;\n i < c * 2 ;\n i ++ ) {\n dst [ out ] = dst [ out - stride ] ;\n out ++ ;\n }\n }\n else {\n t = dst [ out - stride ] + ( table [ c * 2 ] - 128 ) ;\n t = av_clip_uint8 ( t ) ;\n dst [ out ] = t ;\n out ++ ;\n t = dst [ out - stride ] + ( table [ ( c * 2 ) + 1 ] - 128 ) ;\n t = av_clip_uint8 ( t ) ;\n dst [ out ] = t ;\n out ++ ;\n }\n }\n dst += stride ;\n }\n return 0 ;\n }"}
{"idx": 18228, "target": 0, "func": "static UBool _isScriptSubtag ( const char * s , int32_t len ) {\n if ( len < 0 ) {\n len = ( int32_t ) uprv_strlen ( s ) ;\n }\n if ( len == 4 && _isAlphaString ( s , len ) ) {\n return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 18229, "target": 0, "func": "static void complete_from_nicklist ( GList * * outlist , CHANNEL_REC * channel , const char * nick , const char * suffix , const int match_case ) {\n MODULE_CHANNEL_REC * mchannel ;\n GSList * tmp ;\n GList * ownlist ;\n char * str ;\n int len ;\n ownlist = NULL ;\n len = strlen ( nick ) ;\n mchannel = MODULE_DATA ( channel ) ;\n for ( tmp = mchannel -> lastmsgs ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n LAST_MSG_REC * rec = tmp -> data ;\n if ( ( match_case ? strncmp ( rec -> nick , nick , len ) : g_ascii_strncasecmp ( rec -> nick , nick , len ) ) == 0 && ( match_case ? glist_find_string ( * outlist , rec -> nick ) : glist_find_icase_string ( * outlist , rec -> nick ) ) == NULL ) {\n str = g_strconcat ( rec -> nick , suffix , NULL ) ;\n if ( completion_lowercase ) ascii_strdown ( str ) ;\n if ( rec -> own ) ownlist = g_list_append ( ownlist , str ) ;\n else * outlist = g_list_append ( * outlist , str ) ;\n }\n }\n * outlist = g_list_concat ( ownlist , * outlist ) ;\n }"}
{"idx": 18230, "target": 0, "func": "static void WarnBadInstruction ( gs_font_type42 * pfont , int glyph_index ) {\n char buf [ gs_font_name_max + 1 ] ;\n int l ;\n gs_font_type42 * base_font = pfont ;\n while ( ( gs_font_type42 * ) base_font -> base != base_font ) base_font = ( gs_font_type42 * ) base_font -> base ;\n if ( ! base_font -> data . warning_bad_instruction ) {\n l = min ( sizeof ( buf ) - 1 , base_font -> font_name . size ) ;\n memcpy ( buf , base_font -> font_name . chars , l ) ;\n buf [ l ] = 0 ;\n if ( glyph_index >= 0 ) emprintf2 ( pfont -> memory , \"Failed to interpret TT instructions for glyph index %d of font %s. \" \"Continue ignoring instructions of the font.\\n\" , glyph_index , buf ) ;\n else emprintf1 ( pfont -> memory , \"Failed to interpret TT instructions in font %s. \" \"Continue ignoring instructions of the font.\\n\" , buf ) ;\n base_font -> data . warning_bad_instruction = true ;\n }\n }"}
{"idx": 18231, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , PayloadSizeIgnoresDownloads ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n content : : DownloadTestObserverTerminal downloads_observer ( content : : BrowserContext : : GetDownloadManager ( browser ( ) -> profile ( ) ) , 1 , content : : DownloadTestObserver : : ON_DANGEROUS_DOWNLOAD_FAIL ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/page_load_metrics/download_anchor_click.html\" ) ) ;\n downloads_observer . WaitForFinished ( ) ;\n NavigateToUntrackedUrl ( ) ;\n histogram_tester_ . ExpectUniqueSample ( internal : : kHistogramPageLoadTotalBytes , 0 , 1 ) ;\n }"}
{"idx": 18232, "target": 0, "func": "void jpc_qmfb_join_row ( jpc_fix_t * a , int numcols , int parity ) {\n int bufsize = JPC_CEILDIVPOW2 ( numcols , 1 ) ;\n jpc_fix_t joinbuf [ QMFB_JOINBUFSIZE ] ;\n jpc_fix_t * buf = joinbuf ;\n register jpc_fix_t * srcptr ;\n register jpc_fix_t * dstptr ;\n register int n ;\n int hstartcol ;\n if ( bufsize > QMFB_JOINBUFSIZE ) {\n if ( ! ( buf = jas_alloc2 ( bufsize , sizeof ( jpc_fix_t ) ) ) ) {\n abort ( ) ;\n }\n }\n hstartcol = ( numcols + 1 - parity ) >> 1 ;\n n = hstartcol ;\n srcptr = & a [ 0 ] ;\n dstptr = buf ;\n while ( n -- > 0 ) {\n * dstptr = * srcptr ;\n ++ srcptr ;\n ++ dstptr ;\n }\n srcptr = & a [ hstartcol ] ;\n dstptr = & a [ 1 - parity ] ;\n n = numcols - hstartcol ;\n while ( n -- > 0 ) {\n * dstptr = * srcptr ;\n dstptr += 2 ;\n ++ srcptr ;\n }\n srcptr = buf ;\n dstptr = & a [ parity ] ;\n n = hstartcol ;\n while ( n -- > 0 ) {\n * dstptr = * srcptr ;\n dstptr += 2 ;\n ++ srcptr ;\n }\n if ( buf != joinbuf ) {\n jas_free ( buf ) ;\n }\n }"}
{"idx": 18233, "target": 0, "func": "static void dissect_applemidi_common ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , guint16 command ) {\n guint16 seq_num ;\n guint8 count ;\n guint8 * name ;\n gint offset = 0 ;\n gint len ;\n gint string_size ;\n proto_tree * applemidi_tree ;\n proto_tree * applemidi_tree_seq_num ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , APPLEMIDI_DISSECTOR_SHORTNAME ) ;\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"%s\" , val_to_str ( command , applemidi_commands , applemidi_unknown_command ) ) ;\n if ( tree ) {\n proto_item * ti ;\n ti = proto_tree_add_item ( tree , proto_applemidi , tvb , 0 , - 1 , ENC_NA ) ;\n applemidi_tree = proto_item_add_subtree ( ti , ett_applemidi ) ;\n proto_tree_add_item ( applemidi_tree , hf_applemidi_signature , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n offset += 2 ;\n proto_tree_add_item ( applemidi_tree , hf_applemidi_command , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n offset += 2 ;\n if ( ( APPLEMIDI_COMMAND_INVITATION == command ) || ( APPLEMIDI_COMMAND_INVITATION_REJECTED == command ) || ( APLLEMIDI_COMMAND_INVITATION_ACCEPTED == command ) || ( APPLEMIDI_COMMAND_ENDSESSION == command ) ) {\n proto_tree_add_item ( applemidi_tree , hf_applemidi_protocol_version , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( applemidi_tree , hf_applemidi_token , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( applemidi_tree , hf_applemidi_ssrc , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n len = tvb_reported_length ( tvb ) - offset ;\n if ( len > 0 ) {\n name = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset , len , ENC_UTF_8 | ENC_NA ) ;\n string_size = ( gint ) ( strlen ( name ) + 1 ) ;\n proto_tree_add_item ( applemidi_tree , hf_applemidi_name , tvb , offset , string_size , ENC_UTF_8 | ENC_NA ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \": peer = \\\"%s\\\"\" , name ) ;\n offset += string_size ;\n }\n }\n else if ( APPLEMIDI_COMMAND_SYNCHRONIZATION == command ) {\n proto_tree_add_item ( applemidi_tree , hf_applemidi_ssrc , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n count = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( applemidi_tree , hf_applemidi_count , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \": count = %u\" , count ) ;\n offset += 1 ;\n proto_tree_add_item ( applemidi_tree , hf_applemidi_padding , tvb , offset , 3 , ENC_BIG_ENDIAN ) ;\n offset += 3 ;\n proto_tree_add_item ( applemidi_tree , hf_applemidi_timestamp1 , tvb , offset , 8 , ENC_BIG_ENDIAN ) ;\n offset += 8 ;\n proto_tree_add_item ( applemidi_tree , hf_applemidi_timestamp2 , tvb , offset , 8 , ENC_BIG_ENDIAN ) ;\n offset += 8 ;\n proto_tree_add_item ( applemidi_tree , hf_applemidi_timestamp3 , tvb , offset , 8 , ENC_BIG_ENDIAN ) ;\n offset += 8 ;\n }\n else if ( APPLEMIDI_COMMAND_RECEIVER_FEEDBACK == command ) {\n proto_tree_add_item ( applemidi_tree , hf_applemidi_ssrc , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n ti = proto_tree_add_item ( applemidi_tree , hf_applemidi_sequence_num , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n applemidi_tree_seq_num = proto_item_add_subtree ( ti , ett_applemidi_seq_num ) ;\n seq_num = tvb_get_ntohs ( tvb , offset ) ;\n proto_tree_add_uint ( applemidi_tree_seq_num , hf_applemidi_rtp_sequence_num , tvb , offset , 2 , seq_num ) ;\n offset += 4 ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \": seq = %u\" , seq_num ) ;\n }\n else if ( APPLEMIDI_COMMAND_BITRATE_RECEIVE_LIMIT == command ) {\n proto_tree_add_item ( applemidi_tree , hf_applemidi_ssrc , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( applemidi_tree , hf_applemidi_rtp_bitrate_limit , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n }\n len = tvb_length_remaining ( tvb , offset ) ;\n if ( len > 0 ) {\n proto_tree_add_item ( applemidi_tree , hf_applemidi_unknown_data , tvb , offset , len , ENC_NA ) ;\n }\n }\n }"}
{"idx": 18234, "target": 0, "func": "TEST_F ( SyncBookmarkDataTypeControllerTest , StartOk ) {\n CreateBookmarkModel ( LOAD_MODEL ) ;\n SetStartExpectations ( ) ;\n SetAssociateExpectations ( ) ;\n EXPECT_CALL ( * model_associator_ , SyncModelHasUserCreatedNodes ( _ ) ) . WillRepeatedly ( DoAll ( SetArgumentPointee < 0 > ( true ) , Return ( true ) ) ) ;\n EXPECT_CALL ( start_callback_ , Run ( DataTypeController : : OK , _ , _ ) ) ;\n Start ( ) ;\n }"}
{"idx": 18235, "target": 0, "func": "int vp9_full_search_sadx8 ( const MACROBLOCK * x , const MV * ref_mv , int sad_per_bit , int distance , const vp9_variance_fn_ptr_t * fn_ptr , const MV * center_mv , MV * best_mv ) {\n int r ;\n const MACROBLOCKD * const xd = & x -> e_mbd ;\n const struct buf_2d * const what = & x -> plane [ 0 ] . src ;\n const struct buf_2d * const in_what = & xd -> plane [ 0 ] . pre [ 0 ] ;\n const int row_min = MAX ( ref_mv -> row - distance , x -> mv_row_min ) ;\n const int row_max = MIN ( ref_mv -> row + distance , x -> mv_row_max ) ;\n const int col_min = MAX ( ref_mv -> col - distance , x -> mv_col_min ) ;\n const int col_max = MIN ( ref_mv -> col + distance , x -> mv_col_max ) ;\n const MV fcenter_mv = {\n center_mv -> row >> 3 , center_mv -> col >> 3 }\n ;\n unsigned int best_sad = fn_ptr -> sdf ( what -> buf , what -> stride , get_buf_from_mv ( in_what , ref_mv ) , in_what -> stride ) + mvsad_err_cost ( x , ref_mv , & fcenter_mv , sad_per_bit ) ;\n * best_mv = * ref_mv ;\n for ( r = row_min ;\n r < row_max ;\n ++ r ) {\n int c = col_min ;\n const uint8_t * check_here = & in_what -> buf [ r * in_what -> stride + c ] ;\n if ( fn_ptr -> sdx8f != NULL ) {\n while ( ( c + 7 ) < col_max ) {\n int i ;\n unsigned int sads [ 8 ] ;\n fn_ptr -> sdx8f ( what -> buf , what -> stride , check_here , in_what -> stride , sads ) ;\n for ( i = 0 ;\n i < 8 ;\n ++ i ) {\n unsigned int sad = sads [ i ] ;\n if ( sad < best_sad ) {\n const MV mv = {\n r , c }\n ;\n sad += mvsad_err_cost ( x , & mv , & fcenter_mv , sad_per_bit ) ;\n if ( sad < best_sad ) {\n best_sad = sad ;\n * best_mv = mv ;\n }\n }\n ++ check_here ;\n ++ c ;\n }\n }\n }\n if ( fn_ptr -> sdx3f != NULL ) {\n while ( ( c + 2 ) < col_max ) {\n int i ;\n unsigned int sads [ 3 ] ;\n fn_ptr -> sdx3f ( what -> buf , what -> stride , check_here , in_what -> stride , sads ) ;\n for ( i = 0 ;\n i < 3 ;\n ++ i ) {\n unsigned int sad = sads [ i ] ;\n if ( sad < best_sad ) {\n const MV mv = {\n r , c }\n ;\n sad += mvsad_err_cost ( x , & mv , & fcenter_mv , sad_per_bit ) ;\n if ( sad < best_sad ) {\n best_sad = sad ;\n * best_mv = mv ;\n }\n }\n ++ check_here ;\n ++ c ;\n }\n }\n }\n while ( c < col_max ) {\n unsigned int sad = fn_ptr -> sdf ( what -> buf , what -> stride , check_here , in_what -> stride ) ;\n if ( sad < best_sad ) {\n const MV mv = {\n r , c }\n ;\n sad += mvsad_err_cost ( x , & mv , & fcenter_mv , sad_per_bit ) ;\n if ( sad < best_sad ) {\n best_sad = sad ;\n * best_mv = mv ;\n }\n }\n ++ check_here ;\n ++ c ;\n }\n }\n return best_sad ;\n }"}
{"idx": 18236, "target": 0, "func": "static int filter_count_width ( int c , void * data ) {\n ( * ( int * ) data ) += ( is_fullwidth ( c ) ? 2 : 1 ) ;\n return c ;\n }"}
{"idx": 18237, "target": 0, "func": "static void pcnet_rdte_poll ( PCNetState * s ) {\n s -> csr [ 28 ] = s -> csr [ 29 ] = 0 ;\n if ( s -> rdra ) {\n int bad = 0 ;\n # if 1 hwaddr crda = pcnet_rdra_addr ( s , CSR_RCVRC ( s ) ) ;\n hwaddr nrda = pcnet_rdra_addr ( s , - 1 + CSR_RCVRC ( s ) ) ;\n hwaddr nnrd = pcnet_rdra_addr ( s , - 2 + CSR_RCVRC ( s ) ) ;\n # else hwaddr crda = s -> rdra + ( CSR_RCVRL ( s ) - CSR_RCVRC ( s ) ) * ( BCR_SWSTYLE ( s ) ? 16 : 8 ) ;\n int nrdc = CSR_RCVRC ( s ) <= 1 ? CSR_RCVRL ( s ) : CSR_RCVRC ( s ) - 1 ;\n hwaddr nrda = s -> rdra + ( CSR_RCVRL ( s ) - nrdc ) * ( BCR_SWSTYLE ( s ) ? 16 : 8 ) ;\n int nnrc = nrdc <= 1 ? CSR_RCVRL ( s ) : nrdc - 1 ;\n hwaddr nnrd = s -> rdra + ( CSR_RCVRL ( s ) - nnrc ) * ( BCR_SWSTYLE ( s ) ? 16 : 8 ) ;\n # endif CHECK_RMD ( crda , bad ) ;\n if ( ! bad ) {\n CHECK_RMD ( nrda , bad ) ;\n if ( bad || ( nrda == crda ) ) nrda = 0 ;\n CHECK_RMD ( nnrd , bad ) ;\n if ( bad || ( nnrd == crda ) ) nnrd = 0 ;\n s -> csr [ 28 ] = crda & 0xffff ;\n s -> csr [ 29 ] = crda >> 16 ;\n s -> csr [ 26 ] = nrda & 0xffff ;\n s -> csr [ 27 ] = nrda >> 16 ;\n s -> csr [ 36 ] = nnrd & 0xffff ;\n s -> csr [ 37 ] = nnrd >> 16 ;\n # ifdef PCNET_DEBUG if ( bad ) {\n printf ( \"pcnet: BAD RMD RECORDS AFTER 0x\" TARGET_FMT_plx \"\\n\" , crda ) ;\n }\n }\n else {\n printf ( \"pcnet: BAD RMD RDA=0x\" TARGET_FMT_plx \"\\n\" , crda ) ;\n # endif }\n }\n if ( CSR_CRDA ( s ) ) {\n struct pcnet_RMD rmd ;\n RMDLOAD ( & rmd , PHYSADDR ( s , CSR_CRDA ( s ) ) ) ;\n CSR_CRBC ( s ) = GET_FIELD ( rmd . buf_length , RMDL , BCNT ) ;\n CSR_CRST ( s ) = rmd . status ;\n # ifdef PCNET_DEBUG_RMD_X printf ( \"CRDA=0x%08x CRST=0x%04x RCVRC=%d RMDL=0x%04x RMDS=0x%04x RMDM=0x%08x\\n\" , PHYSADDR ( s , CSR_CRDA ( s ) ) , CSR_CRST ( s ) , CSR_RCVRC ( s ) , rmd . buf_length , rmd . status , rmd . msg_length ) ;\n PRINT_RMD ( & rmd ) ;\n # endif }\n else {\n CSR_CRBC ( s ) = CSR_CRST ( s ) = 0 ;\n }\n if ( CSR_NRDA ( s ) ) {\n struct pcnet_RMD rmd ;\n RMDLOAD ( & rmd , PHYSADDR ( s , CSR_NRDA ( s ) ) ) ;\n CSR_NRBC ( s ) = GET_FIELD ( rmd . buf_length , RMDL , BCNT ) ;\n CSR_NRST ( s ) = rmd . status ;\n }\n else {\n CSR_NRBC ( s ) = CSR_NRST ( s ) = 0 ;\n }\n }"}
{"idx": 18238, "target": 0, "func": "static int dissect_pvfs2_readdir_request ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"handle\" , NULL ) ;\n offset = dissect_pvfs_fs_id ( tvb , tree , offset ) ;\n proto_tree_add_item ( tree , hf_pvfs_ds_position , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_pvfs_dirent_limit , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n return offset ;\n }"}
{"idx": 18239, "target": 0, "func": "struct timeval * dtls1_get_timeout ( SSL * s , struct timeval * timeleft ) {\n struct timeval timenow ;\n if ( s -> d1 -> next_timeout . tv_sec == 0 && s -> d1 -> next_timeout . tv_usec == 0 ) {\n return NULL ;\n }\n get_current_time ( & timenow ) ;\n if ( s -> d1 -> next_timeout . tv_sec < timenow . tv_sec || ( s -> d1 -> next_timeout . tv_sec == timenow . tv_sec && s -> d1 -> next_timeout . tv_usec <= timenow . tv_usec ) ) {\n memset ( timeleft , 0 , sizeof ( * timeleft ) ) ;\n return timeleft ;\n }\n memcpy ( timeleft , & ( s -> d1 -> next_timeout ) , sizeof ( struct timeval ) ) ;\n timeleft -> tv_sec -= timenow . tv_sec ;\n timeleft -> tv_usec -= timenow . tv_usec ;\n if ( timeleft -> tv_usec < 0 ) {\n timeleft -> tv_sec -- ;\n timeleft -> tv_usec += 1000000 ;\n }\n if ( timeleft -> tv_sec == 0 && timeleft -> tv_usec < 15000 ) {\n memset ( timeleft , 0 , sizeof ( * timeleft ) ) ;\n }\n return timeleft ;\n }"}
{"idx": 18240, "target": 0, "func": "TSReturnCode TSUrlSchemeSet ( TSMBuffer bufp , TSMLoc obj , const char * value , int length ) {\n return URLPartSet ( bufp , obj , value , length , & URL : : scheme_set ) ;\n }"}
{"idx": 18241, "target": 0, "func": "static gint dissect_u3v_descriptors ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , void * data _U_ ) {\n guint8 type ;\n gint offset = 0 ;\n proto_item * ti ;\n proto_tree * sub_tree ;\n guint32 version ;\n if ( tvb_reported_length ( tvb ) < 2 ) {\n return 0 ;\n }\n type = tvb_get_guint8 ( tvb , 1 ) ;\n if ( type != DESCRIPTOR_TYPE_U3V_INTERFACE ) {\n return 0 ;\n }\n ti = proto_tree_add_item ( tree , hf_u3v_device_info_descriptor , tvb , offset , - 1 , ENC_NA ) ;\n tree = proto_item_add_subtree ( ti , ett_u3v_device_info_descriptor ) ;\n proto_tree_add_item ( tree , hf_u3v_device_info_descriptor_bLength , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset ++ ;\n ti = proto_tree_add_item ( tree , hf_u3v_device_info_descriptor_bDescriptorType , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_item_append_text ( ti , \" (U3V INTERFACE)\" ) ;\n offset ++ ;\n proto_tree_add_item ( tree , hf_u3v_device_info_descriptor_bDescriptorSubtype , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset ++ ;\n if ( ! tvb_bytes_exist ( tvb , offset , 4 ) ) {\n return offset ;\n }\n version = tvb_get_letohl ( tvb , offset ) ;\n ti = proto_tree_add_item ( tree , hf_u3v_device_info_descriptor_bGenCPVersion , tvb , offset , 4 , ENC_NA ) ;\n proto_item_append_text ( ti , \": %u.%u\" , version >> 16 , version & 0xFFFF ) ;\n sub_tree = proto_item_add_subtree ( ti , ett_u3v_device_info_descriptor_gencp_version ) ;\n proto_tree_add_item ( sub_tree , hf_u3v_device_info_descriptor_bGenCPVersion_minor , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( sub_tree , hf_u3v_device_info_descriptor_bGenCPVersion_major , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n if ( ! tvb_bytes_exist ( tvb , offset , 4 ) ) {\n return offset ;\n }\n version = tvb_get_letohl ( tvb , offset ) ;\n ti = proto_tree_add_item ( tree , hf_u3v_device_info_descriptor_bU3VVersion , tvb , offset , 4 , ENC_NA ) ;\n proto_item_append_text ( ti , \": %u.%u\" , version >> 16 , version & 0xFFFF ) ;\n sub_tree = proto_item_add_subtree ( ti , ett_u3v_device_info_descriptor_u3v_version ) ;\n proto_tree_add_item ( sub_tree , hf_u3v_device_info_descriptor_bU3VVersion_minor , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( sub_tree , hf_u3v_device_info_descriptor_bU3VVersion_major , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_u3v_device_info_descriptor_iDeviceGUID , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( tree , hf_u3v_device_info_descriptor_iVendorName , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( tree , hf_u3v_device_info_descriptor_iModelName , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( tree , hf_u3v_device_info_descriptor_iFamilyName , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( tree , hf_u3v_device_info_descriptor_iDeviceVersion , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( tree , hf_u3v_device_info_descriptor_iManufacturerInfo , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( tree , hf_u3v_device_info_descriptor_iSerialNumber , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( tree , hf_u3v_device_info_descriptor_iUserDefinedName , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_u3v_device_info_descriptor_bmSpeedSupport , ett_u3v_device_info_descriptor_speed_support , speed_support_fields , ENC_LITTLE_ENDIAN ) ;\n offset ++ ;\n return offset ;\n }"}
{"idx": 18242, "target": 1, "func": "static int tgq_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n TgqContext * s = avctx -> priv_data ;\n int x , y , ret ;\n int big_endian = AV_RL32 ( & buf [ 4 ] ) > 0x000FFFFF ;\n if ( buf_size < 16 ) {\n av_log ( avctx , AV_LOG_WARNING , \"truncated header\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n bytestream2_init ( & s -> gb , buf + 8 , buf_size - 8 ) ;\n if ( big_endian ) {\n s -> width = bytestream2_get_be16u ( & s -> gb ) ;\n s -> height = bytestream2_get_be16u ( & s -> gb ) ;\n }\n else {\n s -> width = bytestream2_get_le16u ( & s -> gb ) ;\n s -> height = bytestream2_get_le16u ( & s -> gb ) ;\n }\n if ( s -> avctx -> width != s -> width || s -> avctx -> height != s -> height ) {\n avcodec_set_dimensions ( s -> avctx , s -> width , s -> height ) ;\n if ( s -> frame . data [ 0 ] ) avctx -> release_buffer ( avctx , & s -> frame ) ;\n }\n tgq_calculate_qtable ( s , bytestream2_get_byteu ( & s -> gb ) ) ;\n bytestream2_skip ( & s -> gb , 3 ) ;\n if ( ! s -> frame . data [ 0 ] ) {\n s -> frame . key_frame = 1 ;\n s -> frame . pict_type = AV_PICTURE_TYPE_I ;\n s -> frame . buffer_hints = FF_BUFFER_HINTS_VALID ;\n if ( ( ret = ff_get_buffer ( avctx , & s -> frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n }\n for ( y = 0 ;\n y < FFALIGN ( avctx -> height , 16 ) >> 4 ;\n y ++ ) for ( x = 0 ;\n x < FFALIGN ( avctx -> width , 16 ) >> 4 ;\n x ++ ) tgq_decode_mb ( s , y , x ) ;\n * got_frame = 1 ;\n * ( AVFrame * ) data = s -> frame ;\n return avpkt -> size ;\n }"}
{"idx": 18243, "target": 0, "func": "static void cmd_dcc_resume ( const char * data ) {\n cmd_dcc_receive ( data , dcc_send_resume , dcc_send_resume ) ;\n }"}
{"idx": 18244, "target": 0, "func": "static void xhci_via_challenge ( XHCIState * xhci , uint64_t addr ) {\n PCIDevice * pci_dev = PCI_DEVICE ( xhci ) ;\n uint32_t buf [ 8 ] ;\n uint32_t obuf [ 8 ] ;\n dma_addr_t paddr = xhci_mask64 ( addr ) ;\n pci_dma_read ( pci_dev , paddr , & buf , 32 ) ;\n memcpy ( obuf , buf , sizeof ( obuf ) ) ;\n if ( ( buf [ 0 ] & 0xff ) == 2 ) {\n obuf [ 0 ] = 0x49932000 + 0x54dc200 * buf [ 2 ] + 0x7429b578 * buf [ 3 ] ;\n obuf [ 0 ] |= ( buf [ 2 ] * buf [ 3 ] ) & 0xff ;\n obuf [ 1 ] = 0x0132bb37 + 0xe89 * buf [ 2 ] + 0xf09 * buf [ 3 ] ;\n obuf [ 2 ] = 0x0066c2e9 + 0x2091 * buf [ 2 ] + 0x19bd * buf [ 3 ] ;\n obuf [ 3 ] = 0xd5281342 + 0x2cc9691 * buf [ 2 ] + 0x2367662 * buf [ 3 ] ;\n obuf [ 4 ] = 0x0123c75c + 0x1595 * buf [ 2 ] + 0x19ec * buf [ 3 ] ;\n obuf [ 5 ] = 0x00f695de + 0x26fd * buf [ 2 ] + 0x3e9 * buf [ 3 ] ;\n obuf [ 6 ] = obuf [ 2 ] ^ obuf [ 3 ] ^ 0x29472956 ;\n obuf [ 7 ] = obuf [ 2 ] ^ obuf [ 3 ] ^ 0x65866593 ;\n }\n pci_dma_write ( pci_dev , paddr , & obuf , 32 ) ;\n }"}
{"idx": 18245, "target": 0, "func": "static void U_CALLCONV _IMAPFromUnicodeWithOffsets ( UConverterFromUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n UConverter * cnv ;\n const UChar * source , * sourceLimit ;\n uint8_t * target , * targetLimit ;\n int32_t * offsets ;\n int32_t length , targetCapacity , sourceIndex ;\n UChar c ;\n uint8_t b ;\n uint8_t bits ;\n int8_t base64Counter ;\n UBool inDirectMode ;\n cnv = pArgs -> converter ;\n source = pArgs -> source ;\n sourceLimit = pArgs -> sourceLimit ;\n target = ( uint8_t * ) pArgs -> target ;\n targetLimit = ( uint8_t * ) pArgs -> targetLimit ;\n offsets = pArgs -> offsets ;\n {\n uint32_t status = cnv -> fromUnicodeStatus ;\n inDirectMode = ( UBool ) ( ( status >> 24 ) & 1 ) ;\n base64Counter = ( int8_t ) ( status >> 16 ) ;\n bits = ( uint8_t ) status ;\n }\n sourceIndex = 0 ;\n if ( inDirectMode ) {\n directMode : length = ( int32_t ) ( sourceLimit - source ) ;\n targetCapacity = ( int32_t ) ( targetLimit - target ) ;\n if ( length > targetCapacity ) {\n length = targetCapacity ;\n }\n while ( length > 0 ) {\n c = * source ++ ;\n if ( inSetDIMAP ( c ) ) {\n * target ++ = ( uint8_t ) c ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ++ ;\n }\n }\n else if ( c == AMPERSAND ) {\n * target ++ = AMPERSAND ;\n if ( target < targetLimit ) {\n * target ++ = MINUS ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ++ ;\n }\n goto directMode ;\n }\n else {\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ++ ;\n }\n cnv -> charErrorBuffer [ 0 ] = MINUS ;\n cnv -> charErrorBufferLength = 1 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n else {\n -- source ;\n * target ++ = AMPERSAND ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n inDirectMode = FALSE ;\n base64Counter = 0 ;\n goto unicodeMode ;\n }\n -- length ;\n }\n if ( source < sourceLimit && target >= targetLimit ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n else {\n unicodeMode : while ( source < sourceLimit ) {\n if ( target < targetLimit ) {\n c = * source ++ ;\n if ( isLegalIMAP ( c ) ) {\n inDirectMode = TRUE ;\n -- source ;\n if ( base64Counter != 0 ) {\n * target ++ = TO_BASE64_IMAP ( bits ) ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex - 1 ;\n }\n }\n if ( target < targetLimit ) {\n * target ++ = MINUS ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex - 1 ;\n }\n }\n else {\n cnv -> charErrorBuffer [ 0 ] = MINUS ;\n cnv -> charErrorBufferLength = 1 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n goto directMode ;\n }\n else {\n switch ( base64Counter ) {\n case 0 : b = ( uint8_t ) ( c >> 10 ) ;\n * target ++ = TO_BASE64_IMAP ( b ) ;\n if ( target < targetLimit ) {\n b = ( uint8_t ) ( ( c >> 4 ) & 0x3f ) ;\n * target ++ = TO_BASE64_IMAP ( b ) ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ++ ;\n }\n }\n else {\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ++ ;\n }\n b = ( uint8_t ) ( ( c >> 4 ) & 0x3f ) ;\n cnv -> charErrorBuffer [ 0 ] = TO_BASE64_IMAP ( b ) ;\n cnv -> charErrorBufferLength = 1 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n bits = ( uint8_t ) ( ( c & 15 ) << 2 ) ;\n base64Counter = 1 ;\n break ;\n case 1 : b = ( uint8_t ) ( bits | ( c >> 14 ) ) ;\n * target ++ = TO_BASE64_IMAP ( b ) ;\n if ( target < targetLimit ) {\n b = ( uint8_t ) ( ( c >> 8 ) & 0x3f ) ;\n * target ++ = TO_BASE64_IMAP ( b ) ;\n if ( target < targetLimit ) {\n b = ( uint8_t ) ( ( c >> 2 ) & 0x3f ) ;\n * target ++ = TO_BASE64_IMAP ( b ) ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ++ ;\n }\n }\n else {\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ++ ;\n }\n b = ( uint8_t ) ( ( c >> 2 ) & 0x3f ) ;\n cnv -> charErrorBuffer [ 0 ] = TO_BASE64_IMAP ( b ) ;\n cnv -> charErrorBufferLength = 1 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n else {\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ++ ;\n }\n b = ( uint8_t ) ( ( c >> 8 ) & 0x3f ) ;\n cnv -> charErrorBuffer [ 0 ] = TO_BASE64_IMAP ( b ) ;\n b = ( uint8_t ) ( ( c >> 2 ) & 0x3f ) ;\n cnv -> charErrorBuffer [ 1 ] = TO_BASE64_IMAP ( b ) ;\n cnv -> charErrorBufferLength = 2 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n bits = ( uint8_t ) ( ( c & 3 ) << 4 ) ;\n base64Counter = 2 ;\n break ;\n case 2 : b = ( uint8_t ) ( bits | ( c >> 12 ) ) ;\n * target ++ = TO_BASE64_IMAP ( b ) ;\n if ( target < targetLimit ) {\n b = ( uint8_t ) ( ( c >> 6 ) & 0x3f ) ;\n * target ++ = TO_BASE64_IMAP ( b ) ;\n if ( target < targetLimit ) {\n b = ( uint8_t ) ( c & 0x3f ) ;\n * target ++ = TO_BASE64_IMAP ( b ) ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ++ ;\n }\n }\n else {\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ++ ;\n }\n b = ( uint8_t ) ( c & 0x3f ) ;\n cnv -> charErrorBuffer [ 0 ] = TO_BASE64_IMAP ( b ) ;\n cnv -> charErrorBufferLength = 1 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n else {\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ++ ;\n }\n b = ( uint8_t ) ( ( c >> 6 ) & 0x3f ) ;\n cnv -> charErrorBuffer [ 0 ] = TO_BASE64_IMAP ( b ) ;\n b = ( uint8_t ) ( c & 0x3f ) ;\n cnv -> charErrorBuffer [ 1 ] = TO_BASE64_IMAP ( b ) ;\n cnv -> charErrorBufferLength = 2 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n bits = 0 ;\n base64Counter = 0 ;\n break ;\n default : break ;\n }\n }\n }\n else {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n }\n if ( pArgs -> flush && source >= sourceLimit ) {\n if ( ! inDirectMode ) {\n if ( base64Counter != 0 ) {\n if ( target < targetLimit ) {\n * target ++ = TO_BASE64_IMAP ( bits ) ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex - 1 ;\n }\n }\n else {\n cnv -> charErrorBuffer [ cnv -> charErrorBufferLength ++ ] = TO_BASE64_IMAP ( bits ) ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n if ( target < targetLimit ) {\n * target ++ = MINUS ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex - 1 ;\n }\n }\n else {\n cnv -> charErrorBuffer [ cnv -> charErrorBufferLength ++ ] = MINUS ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n cnv -> fromUnicodeStatus = ( cnv -> fromUnicodeStatus & 0xf0000000 ) | 0x1000000 ;\n }\n else {\n cnv -> fromUnicodeStatus = ( cnv -> fromUnicodeStatus & 0xf0000000 ) | ( ( uint32_t ) inDirectMode << 24 ) | ( ( uint32_t ) base64Counter << 16 ) | ( uint32_t ) bits ;\n }\n pArgs -> source = source ;\n pArgs -> target = ( char * ) target ;\n pArgs -> offsets = offsets ;\n return ;\n }"}
{"idx": 18246, "target": 0, "func": "TEST_F ( IconLabelBubbleViewTest , GestureInkDropState ) {\n AttachInkDrop ( ) ;\n generator ( ) -> GestureTapAt ( gfx : : Point ( ) ) ;\n EXPECT_EQ ( views : : InkDropState : : ACTIVATED , ink_drop ( ) -> GetTargetInkDropState ( ) ) ;\n view ( ) -> HideBubble ( ) ;\n EXPECT_EQ ( views : : InkDropState : : HIDDEN , ink_drop ( ) -> GetTargetInkDropState ( ) ) ;\n generator ( ) -> GestureTapAt ( gfx : : Point ( ) ) ;\n EXPECT_EQ ( views : : InkDropState : : ACTIVATED , ink_drop ( ) -> GetTargetInkDropState ( ) ) ;\n generator ( ) -> GestureTapAt ( gfx : : Point ( ) ) ;\n view ( ) -> HideBubble ( ) ;\n EXPECT_EQ ( views : : InkDropState : : HIDDEN , ink_drop ( ) -> GetTargetInkDropState ( ) ) ;\n }"}
{"idx": 18247, "target": 0, "func": "static int kvm_handle_tpr_access ( X86CPU * cpu ) {\n CPUState * cs = CPU ( cpu ) ;\n struct kvm_run * run = cs -> kvm_run ;\n apic_handle_tpr_access_report ( cpu -> apic_state , run -> tpr_access . rip , run -> tpr_access . is_write ? TPR_ACCESS_WRITE : TPR_ACCESS_READ ) ;\n return 1 ;\n }"}
{"idx": 18248, "target": 0, "func": "static int opt_show_ ## section ( const char * opt , const char * arg ) {\n mark_section_show_entries ( SECTION_ID_ ## target_section_id , 1 , NULL ) ;\n return 0 ;\n }\n DEFINE_OPT_SHOW_SECTION ( chapters , CHAPTERS ) DEFINE_OPT_SHOW_SECTION ( error , ERROR ) DEFINE_OPT_SHOW_SECTION ( format , FORMAT ) DEFINE_OPT_SHOW_SECTION ( frames , FRAMES ) DEFINE_OPT_SHOW_SECTION ( library_versions , LIBRARY_VERSIONS ) DEFINE_OPT_SHOW_SECTION ( packets , PACKETS )"}
{"idx": 18249, "target": 0, "func": "static int32_t compareMappings ( UCMTable * lTable , const UCMapping * l , UCMTable * rTable , const UCMapping * r , UBool uFirst ) {\n int32_t result ;\n if ( uFirst ) {\n result = compareUnicode ( lTable , l , rTable , r ) ;\n if ( result == 0 ) {\n result = compareBytes ( lTable , l , rTable , r , FALSE ) ;\n }\n }\n else {\n result = compareBytes ( lTable , l , rTable , r , TRUE ) ;\n if ( result == 0 ) {\n result = compareUnicode ( lTable , l , rTable , r ) ;\n }\n }\n if ( result != 0 ) {\n return result ;\n }\n return l -> f - r -> f ;\n }"}
{"idx": 18250, "target": 0, "func": "static void cirrus_mmio_blt_write ( CirrusVGAState * s , unsigned address , uint8_t value ) {\n trace_vga_cirrus_write_blt ( address , value ) ;\n switch ( address ) {\n case ( CIRRUS_MMIO_BLTBGCOLOR + 0 ) : cirrus_vga_write_gr ( s , 0x00 , value ) ;\n break ;\n case ( CIRRUS_MMIO_BLTBGCOLOR + 1 ) : cirrus_vga_write_gr ( s , 0x10 , value ) ;\n break ;\n case ( CIRRUS_MMIO_BLTBGCOLOR + 2 ) : cirrus_vga_write_gr ( s , 0x12 , value ) ;\n break ;\n case ( CIRRUS_MMIO_BLTBGCOLOR + 3 ) : cirrus_vga_write_gr ( s , 0x14 , value ) ;\n break ;\n case ( CIRRUS_MMIO_BLTFGCOLOR + 0 ) : cirrus_vga_write_gr ( s , 0x01 , value ) ;\n break ;\n case ( CIRRUS_MMIO_BLTFGCOLOR + 1 ) : cirrus_vga_write_gr ( s , 0x11 , value ) ;\n break ;\n case ( CIRRUS_MMIO_BLTFGCOLOR + 2 ) : cirrus_vga_write_gr ( s , 0x13 , value ) ;\n break ;\n case ( CIRRUS_MMIO_BLTFGCOLOR + 3 ) : cirrus_vga_write_gr ( s , 0x15 , value ) ;\n break ;\n case ( CIRRUS_MMIO_BLTWIDTH + 0 ) : cirrus_vga_write_gr ( s , 0x20 , value ) ;\n break ;\n case ( CIRRUS_MMIO_BLTWIDTH + 1 ) : cirrus_vga_write_gr ( s , 0x21 , value ) ;\n break ;\n case ( CIRRUS_MMIO_BLTHEIGHT + 0 ) : cirrus_vga_write_gr ( s , 0x22 , value ) ;\n break ;\n case ( CIRRUS_MMIO_BLTHEIGHT + 1 ) : cirrus_vga_write_gr ( s , 0x23 , value ) ;\n break ;\n case ( CIRRUS_MMIO_BLTDESTPITCH + 0 ) : cirrus_vga_write_gr ( s , 0x24 , value ) ;\n break ;\n case ( CIRRUS_MMIO_BLTDESTPITCH + 1 ) : cirrus_vga_write_gr ( s , 0x25 , value ) ;\n break ;\n case ( CIRRUS_MMIO_BLTSRCPITCH + 0 ) : cirrus_vga_write_gr ( s , 0x26 , value ) ;\n break ;\n case ( CIRRUS_MMIO_BLTSRCPITCH + 1 ) : cirrus_vga_write_gr ( s , 0x27 , value ) ;\n break ;\n case ( CIRRUS_MMIO_BLTDESTADDR + 0 ) : cirrus_vga_write_gr ( s , 0x28 , value ) ;\n break ;\n case ( CIRRUS_MMIO_BLTDESTADDR + 1 ) : cirrus_vga_write_gr ( s , 0x29 , value ) ;\n break ;\n case ( CIRRUS_MMIO_BLTDESTADDR + 2 ) : cirrus_vga_write_gr ( s , 0x2a , value ) ;\n break ;\n case ( CIRRUS_MMIO_BLTDESTADDR + 3 ) : break ;\n case ( CIRRUS_MMIO_BLTSRCADDR + 0 ) : cirrus_vga_write_gr ( s , 0x2c , value ) ;\n break ;\n case ( CIRRUS_MMIO_BLTSRCADDR + 1 ) : cirrus_vga_write_gr ( s , 0x2d , value ) ;\n break ;\n case ( CIRRUS_MMIO_BLTSRCADDR + 2 ) : cirrus_vga_write_gr ( s , 0x2e , value ) ;\n break ;\n case CIRRUS_MMIO_BLTWRITEMASK : cirrus_vga_write_gr ( s , 0x2f , value ) ;\n break ;\n case CIRRUS_MMIO_BLTMODE : cirrus_vga_write_gr ( s , 0x30 , value ) ;\n break ;\n case CIRRUS_MMIO_BLTROP : cirrus_vga_write_gr ( s , 0x32 , value ) ;\n break ;\n case CIRRUS_MMIO_BLTMODEEXT : cirrus_vga_write_gr ( s , 0x33 , value ) ;\n break ;\n case ( CIRRUS_MMIO_BLTTRANSPARENTCOLOR + 0 ) : cirrus_vga_write_gr ( s , 0x34 , value ) ;\n break ;\n case ( CIRRUS_MMIO_BLTTRANSPARENTCOLOR + 1 ) : cirrus_vga_write_gr ( s , 0x35 , value ) ;\n break ;\n case ( CIRRUS_MMIO_BLTTRANSPARENTCOLORMASK + 0 ) : cirrus_vga_write_gr ( s , 0x38 , value ) ;\n break ;\n case ( CIRRUS_MMIO_BLTTRANSPARENTCOLORMASK + 1 ) : cirrus_vga_write_gr ( s , 0x39 , value ) ;\n break ;\n case CIRRUS_MMIO_BLTSTATUS : cirrus_vga_write_gr ( s , 0x31 , value ) ;\n break ;\n default : # ifdef DEBUG_CIRRUS printf ( \"cirrus: mmio write - addr 0x%04x val 0x%02x (ignored)\\n\" , address , value ) ;\n # endif break ;\n }\n }"}
{"idx": 18251, "target": 0, "func": "const char * TSInstallDirGet ( void ) {\n static std : : string prefix = Layout : : get ( ) -> prefix ;\n return prefix . c_str ( ) ;\n }"}
{"idx": 18252, "target": 0, "func": "teReqs TocIDRequired ( ArchiveHandle * AH , DumpId id ) {\n TocEntry * te = getTocEntryByDumpId ( AH , id ) ;\n if ( ! te ) return 0 ;\n return te -> reqs ;\n }"}
{"idx": 18253, "target": 0, "func": "static void add_remote_info_ref ( struct remote_ls_ctx * ls ) {\n struct strbuf * buf = ( struct strbuf * ) ls -> userData ;\n struct object * o ;\n struct ref * ref ;\n ref = alloc_ref ( ls -> dentry_name ) ;\n if ( http_fetch_ref ( repo -> url , ref ) != 0 ) {\n fprintf ( stderr , \"Unable to fetch ref %s from %s\\n\" , ls -> dentry_name , repo -> url ) ;\n aborted = 1 ;\n free ( ref ) ;\n return ;\n }\n o = parse_object ( ref -> old_oid . hash ) ;\n if ( ! o ) {\n fprintf ( stderr , \"Unable to parse object %s for remote ref %s\\n\" , oid_to_hex ( & ref -> old_oid ) , ls -> dentry_name ) ;\n aborted = 1 ;\n free ( ref ) ;\n return ;\n }\n strbuf_addf ( buf , \"%s\\t%s\\n\" , oid_to_hex ( & ref -> old_oid ) , ls -> dentry_name ) ;\n if ( o -> type == OBJ_TAG ) {\n o = deref_tag ( o , ls -> dentry_name , 0 ) ;\n if ( o ) strbuf_addf ( buf , \"%s\\t%s^{\n}\n\\n\" , oid_to_hex ( & o -> oid ) , ls -> dentry_name ) ;\n }\n free ( ref ) ;\n }"}
{"idx": 18254, "target": 0, "func": "static int decode_bmv_frame ( const uint8_t * source , int src_len , uint8_t * frame , int frame_off ) {\n unsigned val , saved_val = 0 ;\n int tmplen = src_len ;\n const uint8_t * src , * source_end = source + src_len ;\n uint8_t * frame_end = frame + SCREEN_WIDE * SCREEN_HIGH ;\n uint8_t * dst , * dst_end ;\n int len , mask ;\n int forward = ( frame_off <= - SCREEN_WIDE ) || ( frame_off >= 0 ) ;\n int read_two_nibbles , flag ;\n int advance_mode ;\n int mode = 0 ;\n int i ;\n if ( src_len <= 0 ) return AVERROR_INVALIDDATA ;\n if ( forward ) {\n src = source ;\n dst = frame ;\n dst_end = frame_end ;\n }\n else {\n src = source + src_len - 1 ;\n dst = frame_end - 1 ;\n dst_end = frame - 1 ;\n }\n for ( ;\n ;\n ) {\n int shift = 0 ;\n flag = 0 ;\n if ( ! mode || ( tmplen == 4 ) ) {\n if ( src < source || src >= source_end ) return AVERROR_INVALIDDATA ;\n val = * src ;\n read_two_nibbles = 1 ;\n }\n else {\n val = saved_val ;\n read_two_nibbles = 0 ;\n }\n if ( ! ( val & 0xC ) ) {\n for ( ;\n ;\n ) {\n if ( ! read_two_nibbles ) {\n if ( src < source || src >= source_end ) return AVERROR_INVALIDDATA ;\n shift += 2 ;\n val |= * src << shift ;\n if ( * src & 0xC ) break ;\n }\n read_two_nibbles = 0 ;\n shift += 2 ;\n mask = ( 1 << shift ) - 1 ;\n val = ( ( val >> 2 ) & ~ mask ) | ( val & mask ) ;\n NEXT_BYTE ( src ) ;\n if ( ( val & ( 0xC << shift ) ) ) {\n flag = 1 ;\n break ;\n }\n }\n }\n else if ( mode ) {\n flag = tmplen != 4 ;\n }\n if ( flag ) {\n tmplen = 4 ;\n }\n else {\n saved_val = val >> ( 4 + shift ) ;\n tmplen = 0 ;\n val &= ( 1 << ( shift + 4 ) ) - 1 ;\n NEXT_BYTE ( src ) ;\n }\n advance_mode = val & 1 ;\n len = ( val >> 1 ) - 1 ;\n mode += 1 + advance_mode ;\n if ( mode >= 4 ) mode -= 3 ;\n if ( FFABS ( dst_end - dst ) < len ) return AVERROR_INVALIDDATA ;\n switch ( mode ) {\n case 1 : if ( forward ) {\n if ( dst - frame + SCREEN_WIDE < frame_off || dst - frame + SCREEN_WIDE + frame_off < 0 || frame_end - dst < frame_off + len || frame_end - dst < len ) return AVERROR_INVALIDDATA ;\n for ( i = 0 ;\n i < len ;\n i ++ ) dst [ i ] = dst [ frame_off + i ] ;\n dst += len ;\n }\n else {\n dst -= len ;\n if ( dst - frame + SCREEN_WIDE < frame_off || dst - frame + SCREEN_WIDE + frame_off < 0 || frame_end - dst < frame_off + len || frame_end - dst < len ) return AVERROR_INVALIDDATA ;\n for ( i = len - 1 ;\n i >= 0 ;\n i -- ) dst [ i ] = dst [ frame_off + i ] ;\n }\n break ;\n case 2 : if ( forward ) {\n if ( source + src_len - src < len ) return AVERROR_INVALIDDATA ;\n memcpy ( dst , src , len ) ;\n dst += len ;\n src += len ;\n }\n else {\n if ( src - source < len ) return AVERROR_INVALIDDATA ;\n dst -= len ;\n src -= len ;\n memcpy ( dst , src , len ) ;\n }\n break ;\n case 3 : val = forward ? dst [ - 1 ] : dst [ 1 ] ;\n if ( forward ) {\n memset ( dst , val , len ) ;\n dst += len ;\n }\n else {\n dst -= len ;\n memset ( dst , val , len ) ;\n }\n break ;\n default : break ;\n }\n if ( dst == dst_end ) return 0 ;\n }\n return 0 ;\n }"}
{"idx": 18255, "target": 0, "func": "static gpg_err_code_t point_from_keyparam ( gcry_mpi_point_t * r_a , gcry_sexp_t keyparam , const char * name ) {\n gcry_err_code_t ec ;\n gcry_mpi_t a = NULL ;\n gcry_mpi_point_t point ;\n ec = mpi_from_keyparam ( & a , keyparam , name ) ;\n if ( ec ) return ec ;\n if ( a ) {\n point = gcry_mpi_point_new ( 0 ) ;\n ec = _gcry_ecc_os2ec ( point , a ) ;\n mpi_free ( a ) ;\n if ( ec ) {\n gcry_mpi_point_release ( point ) ;\n return ec ;\n }\n }\n else {\n char * tmpname ;\n gcry_mpi_t x = NULL ;\n gcry_mpi_t y = NULL ;\n gcry_mpi_t z = NULL ;\n tmpname = gcry_malloc ( strlen ( name ) + 2 + 1 ) ;\n if ( ! tmpname ) return gpg_err_code_from_syserror ( ) ;\n strcpy ( stpcpy ( tmpname , name ) , \".x\" ) ;\n ec = mpi_from_keyparam ( & x , keyparam , tmpname ) ;\n if ( ec ) {\n gcry_free ( tmpname ) ;\n return ec ;\n }\n strcpy ( stpcpy ( tmpname , name ) , \".y\" ) ;\n ec = mpi_from_keyparam ( & y , keyparam , tmpname ) ;\n if ( ec ) {\n mpi_free ( x ) ;\n gcry_free ( tmpname ) ;\n return ec ;\n }\n strcpy ( stpcpy ( tmpname , name ) , \".z\" ) ;\n ec = mpi_from_keyparam ( & z , keyparam , tmpname ) ;\n if ( ec ) {\n mpi_free ( y ) ;\n mpi_free ( x ) ;\n gcry_free ( tmpname ) ;\n return ec ;\n }\n if ( ! z ) z = mpi_set_ui ( NULL , 1 ) ;\n if ( x && y ) point = gcry_mpi_point_snatch_set ( NULL , x , y , z ) ;\n else {\n mpi_free ( x ) ;\n mpi_free ( y ) ;\n mpi_free ( z ) ;\n point = NULL ;\n }\n gcry_free ( tmpname ) ;\n }\n if ( point ) * r_a = point ;\n return 0 ;\n }"}
{"idx": 18256, "target": 0, "func": "static void _slurm_rpc_update_front_end ( slurm_msg_t * msg ) {\n int error_code = SLURM_SUCCESS ;\n DEF_TIMERS ;\n update_front_end_msg_t * update_front_end_msg_ptr = ( update_front_end_msg_t * ) msg -> data ;\n slurmctld_lock_t node_write_lock = {\n NO_LOCK , NO_LOCK , WRITE_LOCK , NO_LOCK , NO_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n START_TIMER ;\n debug2 ( \"Processing RPC: REQUEST_UPDATE_FRONT_END from uid=%d\" , uid ) ;\n if ( ! validate_super_user ( uid ) ) {\n error_code = ESLURM_USER_ID_MISSING ;\n error ( \"Security violation, UPDATE_FRONT_END RPC from uid=%d\" , uid ) ;\n }\n if ( error_code == SLURM_SUCCESS ) {\n lock_slurmctld ( node_write_lock ) ;\n error_code = update_front_end ( update_front_end_msg_ptr ) ;\n unlock_slurmctld ( node_write_lock ) ;\n END_TIMER2 ( \"_slurm_rpc_update_front_end\" ) ;\n }\n if ( error_code ) {\n info ( \"_slurm_rpc_update_front_end for %s: %s\" , update_front_end_msg_ptr -> name , slurm_strerror ( error_code ) ) ;\n slurm_send_rc_msg ( msg , error_code ) ;\n }\n else {\n debug2 ( \"_slurm_rpc_update_front_end complete for %s %s\" , update_front_end_msg_ptr -> name , TIME_STR ) ;\n slurm_send_rc_msg ( msg , SLURM_SUCCESS ) ;\n }\n }"}
{"idx": 18257, "target": 1, "func": "int main ( int argc , const char * * argv ) {\n AppInput app_input = {\n 0 }\n ;\n VpxVideoWriter * writer = NULL ;\n VpxVideoInfo info = {\n 0 }\n ;\n vpx_codec_ctx_t codec ;\n vpx_codec_enc_cfg_t enc_cfg ;\n SvcContext svc_ctx ;\n uint32_t i ;\n uint32_t frame_cnt = 0 ;\n vpx_image_t raw ;\n vpx_codec_err_t res ;\n int pts = 0 ;\n int frame_duration = 1 ;\n FILE * infile = NULL ;\n int end_of_stream = 0 ;\n int frame_size ;\n memset ( & svc_ctx , 0 , sizeof ( svc_ctx ) ) ;\n svc_ctx . log_print = 1 ;\n exec_name = argv [ 0 ] ;\n parse_command_line ( argc , argv , & app_input , & svc_ctx , & enc_cfg ) ;\n if ( ! vpx_img_alloc ( & raw , VPX_IMG_FMT_I420 , enc_cfg . g_w , enc_cfg . g_h , 32 ) ) die ( \"Failed to allocate image %dx%d\\n\" , enc_cfg . g_w , enc_cfg . g_h ) ;\n if ( ! ( infile = fopen ( app_input . input_filename , \"rb\" ) ) ) die ( \"Failed to open %s for reading\\n\" , app_input . input_filename ) ;\n if ( vpx_svc_init ( & svc_ctx , & codec , vpx_codec_vp9_cx ( ) , & enc_cfg ) != VPX_CODEC_OK ) die ( \"Failed to initialize encoder\\n\" ) ;\n info . codec_fourcc = VP9_FOURCC ;\n info . time_base . numerator = enc_cfg . g_timebase . num ;\n info . time_base . denominator = enc_cfg . g_timebase . den ;\n if ( vpx_svc_get_layer_resolution ( & svc_ctx , svc_ctx . spatial_layers - 1 , ( unsigned int * ) & info . frame_width , ( unsigned int * ) & info . frame_height ) != VPX_CODEC_OK ) {\n die ( \"Failed to get output resolution\" ) ;\n }\n if ( ! ( app_input . passes == 2 && app_input . pass == 1 ) ) {\n writer = vpx_video_writer_open ( app_input . output_filename , kContainerIVF , & info ) ;\n if ( ! writer ) die ( \"Failed to open %s for writing\\n\" , app_input . output_filename ) ;\n }\n for ( i = 0 ;\n i < app_input . frames_to_skip ;\n ++ i ) vpx_img_read ( & raw , infile ) ;\n while ( ! end_of_stream ) {\n if ( frame_cnt >= app_input . frames_to_code || ! vpx_img_read ( & raw , infile ) ) {\n end_of_stream = 1 ;\n }\n res = vpx_svc_encode ( & svc_ctx , & codec , ( end_of_stream ? NULL : & raw ) , pts , frame_duration , VPX_DL_GOOD_QUALITY ) ;\n printf ( \"%s\" , vpx_svc_get_message ( & svc_ctx ) ) ;\n if ( res != VPX_CODEC_OK ) {\n die_codec ( & codec , \"Failed to encode frame\" ) ;\n }\n if ( ! ( app_input . passes == 2 && app_input . pass == 1 ) ) {\n while ( ( frame_size = vpx_svc_get_frame_size ( & svc_ctx ) ) > 0 ) {\n vpx_video_writer_write_frame ( writer , vpx_svc_get_buffer ( & svc_ctx ) , frame_size , pts ) ;\n }\n }\n if ( vpx_svc_get_rc_stats_buffer_size ( & svc_ctx ) > 0 ) {\n stats_write ( & app_input . rc_stats , vpx_svc_get_rc_stats_buffer ( & svc_ctx ) , vpx_svc_get_rc_stats_buffer_size ( & svc_ctx ) ) ;\n }\n if ( ! end_of_stream ) {\n ++ frame_cnt ;\n pts += frame_duration ;\n }\n }\n printf ( \"Processed %d frames\\n\" , frame_cnt ) ;\n fclose ( infile ) ;\n if ( vpx_codec_destroy ( & codec ) ) die_codec ( & codec , \"Failed to destroy codec\" ) ;\n if ( app_input . passes == 2 ) stats_close ( & app_input . rc_stats , 1 ) ;\n if ( writer ) {\n vpx_video_writer_close ( writer ) ;\n }\n vpx_img_free ( & raw ) ;\n printf ( \"%s\" , vpx_svc_dump_statistics ( & svc_ctx ) ) ;\n vpx_svc_release ( & svc_ctx ) ;\n return EXIT_SUCCESS ;\n }"}
{"idx": 18258, "target": 0, "func": "static int dissect_h245_T_extendedPAR_item ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_extendedPAR_item , T_extendedPAR_item_sequence ) ;\n return offset ;\n }"}
{"idx": 18259, "target": 0, "func": "void vp9_restore_layer_context ( VP9_COMP * const cpi ) {\n LAYER_CONTEXT * const lc = get_layer_context ( cpi ) ;\n const int old_frame_since_key = cpi -> rc . frames_since_key ;\n const int old_frame_to_key = cpi -> rc . frames_to_key ;\n cpi -> rc = lc -> rc ;\n cpi -> twopass = lc -> twopass ;\n cpi -> oxcf . target_bandwidth = lc -> target_bandwidth ;\n cpi -> alt_ref_source = lc -> alt_ref_source ;\n if ( cpi -> svc . number_temporal_layers > 1 ) {\n cpi -> rc . frames_since_key = old_frame_since_key ;\n cpi -> rc . frames_to_key = old_frame_to_key ;\n }\n }"}
{"idx": 18260, "target": 0, "func": "static u_int parse_constraint ( chunk_t object ) {\n switch ( object . len ) {\n case 0 : return 0 ;\n case 1 : return ( object . ptr [ 0 ] & 0x80 ) ? X509_NO_CONSTRAINT : object . ptr [ 0 ] ;\n default : return X509_NO_CONSTRAINT ;\n }\n }"}
{"idx": 18261, "target": 0, "func": "TEST_F ( BudgetDatabaseTest , CheckEngagementHistograms ) {\n base : : SimpleTestClock * clock = SetClockForTesting ( ) ;\n double cost = 2 ;\n double engagement = 2 * cost * SiteEngagementScore : : kMaxPoints / kDefaultExpirationInDays / kMaxDailyBudget ;\n SetSiteEngagementScore ( engagement ) ;\n GetBudgetDetails ( ) ;\n ASSERT_TRUE ( SpendBudget ( cost ) ) ;\n ASSERT_TRUE ( SpendBudget ( cost ) ) ;\n ASSERT_FALSE ( SpendBudget ( cost ) ) ;\n clock -> Advance ( base : : TimeDelta : : FromDays ( 12 ) ) ;\n GetBudgetDetails ( ) ;\n SetSiteEngagementScore ( engagement * 2 ) ;\n ASSERT_TRUE ( SpendBudget ( cost ) ) ;\n ASSERT_TRUE ( SpendBudget ( cost ) ) ;\n ASSERT_FALSE ( SpendBudget ( cost ) ) ;\n std : : vector < base : : Bucket > no_budget_buckets = GetHistogramTester ( ) -> GetAllSamples ( \"PushMessaging.SESForNoBudgetOrigin\" ) ;\n ASSERT_EQ ( 2U , no_budget_buckets . size ( ) ) ;\n EXPECT_EQ ( floor ( engagement ) , no_budget_buckets [ 0 ] . min ) ;\n EXPECT_EQ ( 1 , no_budget_buckets [ 0 ] . count ) ;\n EXPECT_EQ ( floor ( engagement * 2 ) , no_budget_buckets [ 1 ] . min ) ;\n EXPECT_EQ ( 1 , no_budget_buckets [ 1 ] . count ) ;\n std : : vector < base : : Bucket > low_budget_buckets = GetHistogramTester ( ) -> GetAllSamples ( \"PushMessaging.SESForLowBudgetOrigin\" ) ;\n ASSERT_EQ ( 2U , low_budget_buckets . size ( ) ) ;\n EXPECT_EQ ( floor ( engagement ) , low_budget_buckets [ 0 ] . min ) ;\n EXPECT_EQ ( 1 , low_budget_buckets [ 0 ] . count ) ;\n EXPECT_EQ ( floor ( engagement * 2 ) , low_budget_buckets [ 1 ] . min ) ;\n EXPECT_EQ ( 1 , low_budget_buckets [ 1 ] . count ) ;\n }"}
{"idx": 18262, "target": 0, "func": "void TSHttpTxnTransformedRespCache ( TSHttpTxn txnp , int on ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n sm -> t_state . api_info . cache_transformed = ( on ? true : false ) ;\n }"}
{"idx": 18263, "target": 0, "func": "static void verbose_msg ( const char * fmt , ... ) {\n va_list args ;\n DBUG_ENTER ( \"verbose_msg\" ) ;\n if ( ! verbose ) DBUG_VOID_RETURN ;\n va_start ( args , fmt ) ;\n vfprintf ( stderr , fmt , args ) ;\n va_end ( args ) ;\n fflush ( stderr ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 18264, "target": 0, "func": "static void decode_gray_bitstream ( HYuvContext * s , int count ) {\n int i ;\n count /= 2 ;\n if ( count >= ( get_bits_left ( & s -> gb ) ) / ( 31 * 2 ) ) {\n for ( i = 0 ;\n i < count && get_bits_left ( & s -> gb ) > 0 ;\n i ++ ) {\n READ_2PIX ( s -> temp [ 0 ] [ 2 * i ] , s -> temp [ 0 ] [ 2 * i + 1 ] , 0 ) ;\n }\n }\n else {\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n READ_2PIX ( s -> temp [ 0 ] [ 2 * i ] , s -> temp [ 0 ] [ 2 * i + 1 ] , 0 ) ;\n }\n }\n }"}
{"idx": 18265, "target": 1, "func": "enum message_cte message_decoder_parse_cte ( struct message_header_line * hdr ) {\n struct rfc822_parser_context parser ;\n enum message_cte message_cte ;\n string_t * value ;\n value = t_str_new ( 64 ) ;\n rfc822_parser_init ( & parser , hdr -> full_value , hdr -> full_value_len , NULL ) ;\n rfc822_skip_lwsp ( & parser ) ;\n ( void ) rfc822_parse_mime_token ( & parser , value ) ;\n message_cte = MESSAGE_CTE_UNKNOWN ;\n switch ( str_len ( value ) ) {\n case 4 : if ( i_memcasecmp ( str_data ( value ) , \"7bit\" , 4 ) == 0 || i_memcasecmp ( str_data ( value ) , \"8bit\" , 4 ) == 0 ) message_cte = MESSAGE_CTE_78BIT ;\n break ;\n case 6 : if ( i_memcasecmp ( str_data ( value ) , \"base64\" , 6 ) == 0 ) message_cte = MESSAGE_CTE_BASE64 ;\n else if ( i_memcasecmp ( str_data ( value ) , \"binary\" , 6 ) == 0 ) message_cte = MESSAGE_CTE_BINARY ;\n break ;\n case 16 : if ( i_memcasecmp ( str_data ( value ) , \"quoted-printable\" , 16 ) == 0 ) message_cte = MESSAGE_CTE_QP ;\n break ;\n }\n return message_cte ;\n }"}
{"idx": 18266, "target": 1, "func": "static uint dump_events_for_db ( char * db ) {\n char query_buff [ QUERY_LENGTH ] ;\n char db_name_buff [ NAME_LEN * 2 + 3 ] , name_buff [ NAME_LEN * 2 + 3 ] ;\n char * event_name ;\n char delimiter [ QUERY_LENGTH ] ;\n FILE * sql_file = md_result_file ;\n MYSQL_RES * event_res , * event_list_res ;\n MYSQL_ROW row , event_list_row ;\n char db_cl_name [ MY_CS_NAME_SIZE ] ;\n int db_cl_altered = FALSE ;\n DBUG_ENTER ( \"dump_events_for_db\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"db: '%s'\" , db ) ) ;\n mysql_real_escape_string ( mysql , db_name_buff , db , ( ulong ) strlen ( db ) ) ;\n print_comment ( sql_file , 0 , \"\\n--\\n-- Dumping events for database '%s'\\n--\\n\" , db ) ;\n if ( lock_tables ) mysql_query ( mysql , \"LOCK TABLES mysql.event READ\" ) ;\n if ( mysql_query_with_error_report ( mysql , & event_list_res , \"show events\" ) ) DBUG_RETURN ( 0 ) ;\n strcpy ( delimiter , \";\n\" ) ;\n if ( mysql_num_rows ( event_list_res ) > 0 ) {\n if ( opt_xml ) fputs ( \"\\t<events>\\n\" , sql_file ) ;\n else {\n fprintf ( sql_file , \"/*!50106 SET @save_time_zone= @@TIME_ZONE */ ;\n\\n\" ) ;\n if ( fetch_db_collation ( db_name_buff , db_cl_name , sizeof ( db_cl_name ) ) ) DBUG_RETURN ( 1 ) ;\n }\n if ( switch_character_set_results ( mysql , \"binary\" ) ) DBUG_RETURN ( 1 ) ;\n while ( ( event_list_row = mysql_fetch_row ( event_list_res ) ) != NULL ) {\n event_name = quote_name ( event_list_row [ 1 ] , name_buff , 0 ) ;\n DBUG_PRINT ( \"info\" , ( \"retrieving CREATE EVENT for %s\" , name_buff ) ) ;\n my_snprintf ( query_buff , sizeof ( query_buff ) , \"SHOW CREATE EVENT %s\" , event_name ) ;\n if ( mysql_query_with_error_report ( mysql , & event_res , query_buff ) ) DBUG_RETURN ( 1 ) ;\n while ( ( row = mysql_fetch_row ( event_res ) ) != NULL ) {\n if ( opt_xml ) {\n print_xml_row ( sql_file , \"event\" , event_res , & row , \"Create Event\" ) ;\n continue ;\n }\n if ( strlen ( row [ 3 ] ) != 0 ) {\n char * query_str ;\n if ( opt_drop ) fprintf ( sql_file , \"/*!50106 DROP EVENT IF EXISTS %s */%s\\n\" , event_name , delimiter ) ;\n if ( create_delimiter ( row [ 3 ] , delimiter , sizeof ( delimiter ) ) == NULL ) {\n fprintf ( stderr , \"%s: Warning: Can't create delimiter for event '%s'\\n\" , my_progname_short , event_name ) ;\n DBUG_RETURN ( 1 ) ;\n }\n fprintf ( sql_file , \"DELIMITER %s\\n\" , delimiter ) ;\n if ( mysql_num_fields ( event_res ) >= 7 ) {\n if ( switch_db_collation ( sql_file , db_name_buff , delimiter , db_cl_name , row [ 6 ] , & db_cl_altered ) ) {\n DBUG_RETURN ( 1 ) ;\n }\n switch_cs_variables ( sql_file , delimiter , row [ 4 ] , row [ 4 ] , row [ 5 ] ) ;\n }\n else {\n fprintf ( sql_file , \"--\\n\" \"-- WARNING: old server version. \" \"The following dump may be incomplete.\\n\" \"--\\n\" ) ;\n }\n switch_sql_mode ( sql_file , delimiter , row [ 1 ] ) ;\n switch_time_zone ( sql_file , delimiter , row [ 2 ] ) ;\n query_str = cover_definer_clause ( row [ 3 ] , strlen ( row [ 3 ] ) , C_STRING_WITH_LEN ( \"50117\" ) , C_STRING_WITH_LEN ( \"50106\" ) , C_STRING_WITH_LEN ( \" EVENT\" ) ) ;\n fprintf ( sql_file , \"/*!50106 %s */ %s\\n\" , ( const char * ) ( query_str != NULL ? query_str : row [ 3 ] ) , ( const char * ) delimiter ) ;\n my_free ( query_str ) ;\n restore_time_zone ( sql_file , delimiter ) ;\n restore_sql_mode ( sql_file , delimiter ) ;\n if ( mysql_num_fields ( event_res ) >= 7 ) {\n restore_cs_variables ( sql_file , delimiter ) ;\n if ( db_cl_altered ) {\n if ( restore_db_collation ( sql_file , db_name_buff , delimiter , db_cl_name ) ) DBUG_RETURN ( 1 ) ;\n }\n }\n }\n }\n mysql_free_result ( event_res ) ;\n }\n if ( opt_xml ) {\n fputs ( \"\\t</events>\\n\" , sql_file ) ;\n check_io ( sql_file ) ;\n }\n else {\n fprintf ( sql_file , \"DELIMITER ;\n\\n\" ) ;\n fprintf ( sql_file , \"/*!50106 SET TIME_ZONE= @save_time_zone */ ;\n\\n\" ) ;\n }\n if ( switch_character_set_results ( mysql , default_charset ) ) DBUG_RETURN ( 1 ) ;\n }\n mysql_free_result ( event_list_res ) ;\n if ( lock_tables ) ( void ) mysql_query_with_error_report ( mysql , 0 , \"UNLOCK TABLES\" ) ;\n DBUG_RETURN ( 0 ) ;\n }"}
{"idx": 18267, "target": 0, "func": "static int dissect_h245_T_status ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_status , T_status_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 18268, "target": 0, "func": "static void evhttp_maybe_add_content_length_header ( struct evkeyvalq * headers , long content_length ) {\n if ( evhttp_find_header ( headers , \"Transfer-Encoding\" ) == NULL && evhttp_find_header ( headers , \"Content-Length\" ) == NULL ) {\n char len [ 22 ] ;\n evutil_snprintf ( len , sizeof ( len ) , \"%ld\" , content_length ) ;\n evhttp_add_header ( headers , \"Content-Length\" , len ) ;\n }\n }"}
{"idx": 18269, "target": 0, "func": "static int name_cmp_len ( const char * name ) {\n int i ;\n for ( i = 0 ;\n name [ i ] && name [ i ] != '\\n' && name [ i ] != '/' ;\n i ++ ) ;\n return i ;\n }"}
{"idx": 18270, "target": 0, "func": "static int selinux_sem_alloc_security ( struct sem_array * sma ) {\n struct ipc_security_struct * isec ;\n struct common_audit_data ad ;\n u32 sid = current_sid ( ) ;\n int rc ;\n rc = ipc_alloc_security ( current , & sma -> sem_perm , SECCLASS_SEM ) ;\n if ( rc ) return rc ;\n isec = sma -> sem_perm . security ;\n ad . type = LSM_AUDIT_DATA_IPC ;\n ad . u . ipc_id = sma -> sem_perm . key ;\n rc = avc_has_perm ( sid , isec -> sid , SECCLASS_SEM , SEM__CREATE , & ad ) ;\n if ( rc ) {\n ipc_free_security ( & sma -> sem_perm ) ;\n return rc ;\n }\n return 0 ;\n }"}
{"idx": 18271, "target": 0, "func": "static void test_bug11904 ( ) {\n MYSQL_STMT * stmt1 ;\n int rc ;\n const char * stmt_text ;\n const ulong type = ( ulong ) CURSOR_TYPE_READ_ONLY ;\n MYSQL_BIND my_bind [ 2 ] ;\n int country_id = 0 ;\n char row_data [ 11 ] = {\n 0 }\n ;\n myheader ( \"test_bug11904\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS bug11904b\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE bug11904b (id int, name char(10), primary key(id, name))\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO bug11904b VALUES (1, 'sofia'), (1,'plovdiv'),\" \" (1,'varna'), (2,'LA'), (2,'new york'), (3,'heidelberg'),\" \" (3,'berlin'), (3, 'frankfurt')\" ) ;\n myquery ( rc ) ;\n mysql_commit ( mysql ) ;\n stmt1 = mysql_stmt_init ( mysql ) ;\n mysql_stmt_attr_set ( stmt1 , STMT_ATTR_CURSOR_TYPE , ( const void * ) & type ) ;\n stmt_text = \"SELECT id, MIN(name) FROM bug11904b GROUP BY id\" ;\n rc = mysql_stmt_prepare ( stmt1 , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt1 , rc ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 0 ] . buffer = & country_id ;\n my_bind [ 0 ] . buffer_length = 0 ;\n my_bind [ 0 ] . length = 0 ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 1 ] . buffer = & row_data ;\n my_bind [ 1 ] . buffer_length = sizeof ( row_data ) - 1 ;\n my_bind [ 1 ] . length = 0 ;\n rc = mysql_stmt_bind_result ( stmt1 , my_bind ) ;\n check_execute ( stmt1 , rc ) ;\n rc = mysql_stmt_execute ( stmt1 ) ;\n check_execute ( stmt1 , rc ) ;\n rc = mysql_stmt_fetch ( stmt1 ) ;\n check_execute ( stmt1 , rc ) ;\n DIE_UNLESS ( country_id == 1 ) ;\n DIE_UNLESS ( memcmp ( row_data , \"plovdiv\" , 7 ) == 0 ) ;\n rc = mysql_stmt_fetch ( stmt1 ) ;\n check_execute ( stmt1 , rc ) ;\n DIE_UNLESS ( country_id == 2 ) ;\n DIE_UNLESS ( memcmp ( row_data , \"LA\" , 2 ) == 0 ) ;\n rc = mysql_stmt_fetch ( stmt1 ) ;\n check_execute ( stmt1 , rc ) ;\n DIE_UNLESS ( country_id == 3 ) ;\n DIE_UNLESS ( memcmp ( row_data , \"berlin\" , 6 ) == 0 ) ;\n rc = mysql_stmt_close ( stmt1 ) ;\n check_execute ( stmt1 , rc ) ;\n rc = mysql_query ( mysql , \"drop table bug11904b\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 18272, "target": 0, "func": "static float find_hb_gain ( AMRWBContext * ctx , const float * synth , uint16_t hb_idx , uint8_t vad ) {\n int wsp = ( vad > 0 ) ;\n float tilt ;\n if ( ctx -> fr_cur_mode == MODE_23k85 ) return qua_hb_gain [ hb_idx ] * ( 1.0f / ( 1 << 14 ) ) ;\n tilt = avpriv_scalarproduct_float_c ( synth , synth + 1 , AMRWB_SFR_SIZE - 1 ) / avpriv_scalarproduct_float_c ( synth , synth , AMRWB_SFR_SIZE ) ;\n return av_clipf ( ( 1.0 - FFMAX ( 0.0 , tilt ) ) * ( 1.25 - 0.25 * wsp ) , 0.1 , 1.0 ) ;\n }"}
{"idx": 18273, "target": 0, "func": "static void report_trash_progress ( CommonJob * job , SourceInfo * source_info , TransferInfo * transfer_info ) {\n int files_left ;\n double elapsed , transfer_rate ;\n int remaining_time ;\n gint64 now ;\n char * details ;\n char * status ;\n DeleteJob * delete_job ;\n delete_job = ( DeleteJob * ) job ;\n now = g_get_monotonic_time ( ) ;\n files_left = source_info -> num_files - transfer_info -> num_files ;\n if ( files_left < 0 ) {\n files_left = 0 ;\n }\n if ( transfer_info -> last_report_time != 0 && ABS ( ( gint64 ) ( transfer_info -> last_report_time - now ) ) < 100 * NSEC_PER_MICROSEC && files_left > 0 ) {\n return ;\n }\n transfer_info -> last_report_time = now ;\n if ( source_info -> num_files == 1 ) {\n if ( files_left > 0 ) {\n status = _ ( \"Trashing \u201c%B\u201d\" ) ;\n }\n else {\n status = _ ( \"Trashed \u201c%B\u201d\" ) ;\n }\n nautilus_progress_info_take_status ( job -> progress , f ( status , ( GFile * ) delete_job -> files -> data ) ) ;\n }\n else {\n if ( files_left > 0 ) {\n status = ngettext ( \"Trashing %'d file\" , \"Trashing %'d files\" , source_info -> num_files ) ;\n }\n else {\n status = ngettext ( \"Trashed %'d file\" , \"Trashed %'d files\" , source_info -> num_files ) ;\n }\n nautilus_progress_info_take_status ( job -> progress , f ( status , source_info -> num_files ) ) ;\n }\n elapsed = g_timer_elapsed ( job -> time , NULL ) ;\n transfer_rate = 0 ;\n remaining_time = INT_MAX ;\n if ( elapsed > 0 ) {\n transfer_rate = transfer_info -> num_files / elapsed ;\n if ( transfer_rate > 0 ) {\n remaining_time = ( source_info -> num_files - transfer_info -> num_files ) / transfer_rate ;\n }\n }\n if ( elapsed < SECONDS_NEEDED_FOR_RELIABLE_TRANSFER_RATE ) {\n if ( files_left > 0 ) {\n details = f ( _ ( \"%'d / %'d\" ) , transfer_info -> num_files + 1 , source_info -> num_files ) ;\n }\n else {\n details = f ( _ ( \"%'d / %'d\" ) , transfer_info -> num_files , source_info -> num_files ) ;\n }\n }\n else {\n if ( files_left > 0 ) {\n gchar * time_left_message ;\n gchar * files_per_second_message ;\n gchar * concat_detail ;\n time_left_message = ngettext ( \"%'d / %'d \\xE2\\x80\\x94 %T left\" , \"%'d / %'d \\xE2\\x80\\x94 %T left\" , seconds_count_format_time_units ( remaining_time ) ) ;\n files_per_second_message = ngettext ( \"(%d file/sec)\" , \"(%d files/sec)\" , ( int ) ( transfer_rate + 0.5 ) ) ;\n concat_detail = g_strconcat ( time_left_message , \" \" , files_per_second_message , NULL ) ;\n details = f ( concat_detail , transfer_info -> num_files + 1 , source_info -> num_files , remaining_time , ( int ) transfer_rate + 0.5 ) ;\n g_free ( concat_detail ) ;\n }\n else {\n details = f ( _ ( \"%'d / %'d\" ) , transfer_info -> num_files , source_info -> num_files ) ;\n }\n }\n nautilus_progress_info_set_details ( job -> progress , details ) ;\n if ( elapsed > SECONDS_NEEDED_FOR_APROXIMATE_TRANSFER_RATE ) {\n nautilus_progress_info_set_remaining_time ( job -> progress , remaining_time ) ;\n nautilus_progress_info_set_elapsed_time ( job -> progress , elapsed ) ;\n }\n if ( source_info -> num_files != 0 ) {\n nautilus_progress_info_set_progress ( job -> progress , transfer_info -> num_files , source_info -> num_files ) ;\n }\n }"}
{"idx": 18274, "target": 1, "func": "SPL_METHOD ( RecursiveDirectoryIterator , getSubPathname ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char * sub_name ;\n int len ;\n char slash = SPL_HAS_FLAG ( intern -> flags , SPL_FILE_DIR_UNIXPATHS ) ? '/' : DEFAULT_SLASH ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n if ( intern -> u . dir . sub_path ) {\n len = spprintf ( & sub_name , 0 , \"%s%c%s\" , intern -> u . dir . sub_path , slash , intern -> u . dir . entry . d_name ) ;\n RETURN_STRINGL ( sub_name , len , 0 ) ;\n }\n else {\n RETURN_STRING ( intern -> u . dir . entry . d_name , 1 ) ;\n }\n }"}
{"idx": 18275, "target": 0, "func": "TSAction TSNetAccept ( TSCont contp , int port , int domain , int accept_threads ) {\n NetProcessor : : AcceptOptions opt ;\n sdk_assert ( sdk_sanity_check_continuation ( contp ) == TS_SUCCESS ) ;\n sdk_assert ( port > 0 ) ;\n sdk_assert ( accept_threads >= - 1 ) ;\n FORCE_PLUGIN_SCOPED_MUTEX ( contp ) ;\n opt = make_net_accept_options ( nullptr , accept_threads ) ;\n opt . ip_family = domain == AF_INET6 ? AF_INET6 : AF_INET ;\n opt . local_port = port ;\n opt . frequent_accept = false ;\n INKContInternal * i = reinterpret_cast < INKContInternal * > ( contp ) ;\n return reinterpret_cast < TSAction > ( netProcessor . accept ( i , opt ) ) ;\n }"}
{"idx": 18276, "target": 0, "func": "static int dissect_pvfs_opaque_data ( tvbuff_t * tvb , int offset , proto_tree * tree , packet_info * pinfo _U_ , int hfindex , gboolean fixed_length , guint32 length , gboolean string_data , const char * * string_buffer_ret ) {\n int data_offset ;\n proto_item * string_item = NULL ;\n proto_tree * string_tree = NULL ;\n guint32 string_length ;\n guint32 string_length_full ;\n guint32 string_length_packet ;\n guint32 string_length_captured ;\n guint32 string_length_copy ;\n int fill_truncated ;\n guint32 fill_length ;\n guint32 fill_length_packet ;\n guint32 fill_length_captured ;\n guint32 fill_length_copy ;\n int exception = 0 ;\n char * string_buffer = NULL ;\n const char * string_buffer_print = NULL ;\n if ( fixed_length ) {\n string_length = length ;\n data_offset = offset ;\n }\n else {\n string_length = tvb_get_letohl ( tvb , offset + 0 ) ;\n data_offset = offset + 4 ;\n if ( string_data ) string_length += 1 ;\n }\n string_length_captured = tvb_captured_length_remaining ( tvb , data_offset ) ;\n string_length_packet = tvb_reported_length_remaining ( tvb , data_offset ) ;\n if ( ! string_data ) string_length_full = roundup4 ( string_length ) ;\n else string_length_full = roundup8 ( 4 + string_length ) ;\n if ( string_length_captured < string_length ) {\n string_length_copy = string_length_captured ;\n fill_truncated = 2 ;\n fill_length = 0 ;\n fill_length_copy = 0 ;\n if ( string_length_packet < string_length ) exception = ReportedBoundsError ;\n else exception = BoundsError ;\n }\n else {\n string_length_copy = string_length ;\n if ( ! string_data ) fill_length = string_length_full - string_length ;\n else fill_length = string_length_full - string_length - 4 ;\n fill_length_captured = tvb_captured_length_remaining ( tvb , data_offset + string_length ) ;\n fill_length_packet = tvb_reported_length_remaining ( tvb , data_offset + string_length ) ;\n if ( fill_length_captured < fill_length ) {\n fill_length_copy = fill_length_packet ;\n fill_truncated = 1 ;\n if ( fill_length_packet < fill_length ) exception = ReportedBoundsError ;\n else exception = BoundsError ;\n }\n else {\n fill_length_copy = fill_length ;\n fill_truncated = 0 ;\n }\n }\n if ( string_data ) {\n char * tmpstr ;\n tmpstr = ( char * ) tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , data_offset , string_length_copy , ENC_ASCII ) ;\n string_buffer = ( char * ) memcpy ( wmem_alloc ( wmem_packet_scope ( ) , string_length_copy + 1 ) , tmpstr , string_length_copy ) ;\n }\n else {\n string_buffer = ( char * ) tvb_memcpy ( tvb , wmem_alloc ( wmem_packet_scope ( ) , string_length_copy + 1 ) , data_offset , string_length_copy ) ;\n }\n string_buffer [ string_length_copy ] = '\\0' ;\n if ( string_length ) {\n if ( string_length != string_length_copy ) {\n if ( string_data ) {\n char * formatted ;\n size_t string_buffer_size = 0 ;\n char * string_buffer_temp ;\n formatted = format_text ( wmem_packet_scope ( ) , ( guint8 * ) string_buffer , ( int ) strlen ( string_buffer ) ) ;\n string_buffer_size = strlen ( formatted ) + 12 + 1 ;\n string_buffer_temp = ( char * ) wmem_alloc ( wmem_packet_scope ( ) , string_buffer_size ) ;\n g_snprintf ( string_buffer_temp , ( gulong ) string_buffer_size , \"%s<TRUNCATED>\" , formatted ) ;\n string_buffer_print = string_buffer_temp ;\n }\n else {\n string_buffer_print = \"<DATA><TRUNCATED>\" ;\n }\n }\n else {\n if ( string_data ) {\n string_buffer_print = format_text ( wmem_packet_scope ( ) , ( guint8 * ) string_buffer , ( int ) strlen ( string_buffer ) ) ;\n }\n else {\n string_buffer_print = \"<DATA>\" ;\n }\n }\n }\n else {\n string_buffer_print = \"<EMPTY>\" ;\n }\n string_item = proto_tree_add_string ( tree , hfindex , tvb , offset + 0 , - 1 , string_buffer_print ) ;\n string_tree = proto_item_add_subtree ( string_item , ett_pvfs_string ) ;\n if ( ! fixed_length ) {\n proto_tree_add_uint_format_value ( string_tree , hf_pvfs_opaque_length , tvb , offset , 4 , string_length - 1 , \"%u (excl. NULL terminator)\" , string_length - 1 ) ;\n offset += 4 ;\n }\n if ( string_data ) {\n proto_tree_add_string_format ( string_tree , hfindex , tvb , offset , string_length_copy , string_buffer , \"contents: %s\" , string_buffer_print ) ;\n }\n else {\n proto_tree_add_bytes_format ( string_tree , hfindex , tvb , offset , string_length_copy , ( guint8 * ) string_buffer , \"contents: %s\" , string_buffer_print ) ;\n }\n offset += string_length_copy ;\n if ( fill_length ) {\n if ( string_tree ) {\n if ( fill_truncated ) {\n proto_tree_add_bytes_format_value ( string_tree , hf_pvfs_fill_bytes , tvb , offset , fill_length_copy , NULL , \"opaque data <TRUNCATED>\" ) ;\n }\n else {\n proto_tree_add_bytes_format_value ( string_tree , hf_pvfs_fill_bytes , tvb , offset , fill_length_copy , NULL , \"opaque data\" ) ;\n }\n }\n offset += fill_length_copy ;\n }\n if ( string_item ) proto_item_set_end ( string_item , tvb , offset ) ;\n if ( string_buffer_ret != NULL ) * string_buffer_ret = string_buffer_print ;\n if ( exception != 0 ) THROW ( exception ) ;\n return offset ;\n }"}
{"idx": 18277, "target": 0, "func": "static int s_aos_flush ( stream * s ) {\n s -> position = ( ( aos_state_t * ) s -> state ) -> file_sz ;\n s -> srptr = s -> srlimit = s -> cbuf - 1 ;\n return 0 ;\n }"}
{"idx": 18278, "target": 0, "func": "static void inverse_transform_block ( MACROBLOCKD * xd , int plane , int block , TX_SIZE tx_size , uint8_t * dst , int stride , int eob ) {\n struct macroblockd_plane * const pd = & xd -> plane [ plane ] ;\n if ( eob > 0 ) {\n TX_TYPE tx_type = DCT_DCT ;\n tran_low_t * const dqcoeff = BLOCK_OFFSET ( pd -> dqcoeff , block ) ;\n if ( xd -> lossless ) {\n tx_type = DCT_DCT ;\n vp9_iwht4x4_add ( dqcoeff , dst , stride , eob ) ;\n }\n else {\n const PLANE_TYPE plane_type = pd -> plane_type ;\n switch ( tx_size ) {\n case TX_4X4 : tx_type = get_tx_type_4x4 ( plane_type , xd , block ) ;\n vp9_iht4x4_add ( tx_type , dqcoeff , dst , stride , eob ) ;\n break ;\n case TX_8X8 : tx_type = get_tx_type ( plane_type , xd ) ;\n vp9_iht8x8_add ( tx_type , dqcoeff , dst , stride , eob ) ;\n break ;\n case TX_16X16 : tx_type = get_tx_type ( plane_type , xd ) ;\n vp9_iht16x16_add ( tx_type , dqcoeff , dst , stride , eob ) ;\n break ;\n case TX_32X32 : tx_type = DCT_DCT ;\n vp9_idct32x32_add ( dqcoeff , dst , stride , eob ) ;\n break ;\n default : assert ( 0 && \"Invalid transform size\" ) ;\n }\n }\n if ( eob == 1 ) {\n vpx_memset ( dqcoeff , 0 , 2 * sizeof ( dqcoeff [ 0 ] ) ) ;\n }\n else {\n if ( tx_type == DCT_DCT && tx_size <= TX_16X16 && eob <= 10 ) vpx_memset ( dqcoeff , 0 , 4 * ( 4 << tx_size ) * sizeof ( dqcoeff [ 0 ] ) ) ;\n else if ( tx_size == TX_32X32 && eob <= 34 ) vpx_memset ( dqcoeff , 0 , 256 * sizeof ( dqcoeff [ 0 ] ) ) ;\n else vpx_memset ( dqcoeff , 0 , ( 16 << ( tx_size << 1 ) ) * sizeof ( dqcoeff [ 0 ] ) ) ;\n }\n }\n }"}
{"idx": 18279, "target": 0, "func": "jas_stream_t * jas_stream_fopen ( const char * filename , const char * mode ) {\n jas_stream_t * stream ;\n jas_stream_fileobj_t * obj ;\n int openflags ;\n if ( ! ( stream = jas_stream_create ( ) ) ) {\n return 0 ;\n }\n stream -> openmode_ = jas_strtoopenmode ( mode ) ;\n if ( ( stream -> openmode_ & JAS_STREAM_READ ) && ( stream -> openmode_ & JAS_STREAM_WRITE ) ) {\n openflags = O_RDWR ;\n }\n else if ( stream -> openmode_ & JAS_STREAM_READ ) {\n openflags = O_RDONLY ;\n }\n else if ( stream -> openmode_ & JAS_STREAM_WRITE ) {\n openflags = O_WRONLY ;\n }\n else {\n openflags = 0 ;\n }\n if ( stream -> openmode_ & JAS_STREAM_APPEND ) {\n openflags |= O_APPEND ;\n }\n if ( stream -> openmode_ & JAS_STREAM_BINARY ) {\n openflags |= O_BINARY ;\n }\n if ( stream -> openmode_ & JAS_STREAM_CREATE ) {\n openflags |= O_CREAT | O_TRUNC ;\n }\n if ( ! ( obj = jas_malloc ( sizeof ( jas_stream_fileobj_t ) ) ) ) {\n jas_stream_destroy ( stream ) ;\n return 0 ;\n }\n obj -> fd = - 1 ;\n obj -> flags = 0 ;\n obj -> pathname [ 0 ] = '\\0' ;\n stream -> obj_ = ( void * ) obj ;\n stream -> ops_ = & jas_stream_fileops ;\n if ( ( obj -> fd = open ( filename , openflags , JAS_STREAM_PERMS ) ) < 0 ) {\n jas_stream_destroy ( stream ) ;\n return 0 ;\n }\n jas_stream_initbuf ( stream , JAS_STREAM_FULLBUF , 0 , 0 ) ;\n return stream ;\n }"}
{"idx": 18280, "target": 0, "func": "static void remoteStreamEvent ( virStreamPtr st , int events , void * opaque ) {\n struct qemud_client * client = opaque ;\n struct qemud_client_stream * stream ;\n virMutexLock ( & client -> lock ) ;\n stream = remoteFindClientStream ( client , st ) ;\n if ( ! stream ) {\n VIR_WARN ( \"event for client=%p stream st=%p, but missing stream state\" , client , st ) ;\n virStreamEventRemoveCallback ( st ) ;\n goto cleanup ;\n }\n VIR_DEBUG ( \"st=%p events=%d\" , st , events ) ;\n if ( events & VIR_STREAM_EVENT_WRITABLE ) {\n if ( remoteStreamHandleWrite ( client , stream ) < 0 ) {\n remoteRemoveClientStream ( client , stream ) ;\n qemudDispatchClientFailure ( client ) ;\n goto cleanup ;\n }\n }\n if ( ! stream -> recvEOF && ( events & ( VIR_STREAM_EVENT_READABLE | VIR_STREAM_EVENT_HANGUP ) ) ) {\n events = events & ~ ( VIR_STREAM_EVENT_READABLE | VIR_STREAM_EVENT_HANGUP ) ;\n if ( remoteStreamHandleRead ( client , stream ) < 0 ) {\n remoteRemoveClientStream ( client , stream ) ;\n qemudDispatchClientFailure ( client ) ;\n goto cleanup ;\n }\n }\n if ( ! stream -> closed && ( events & ( VIR_STREAM_EVENT_ERROR | VIR_STREAM_EVENT_HANGUP ) ) ) {\n int ret ;\n remote_error rerr ;\n memset ( & rerr , 0 , sizeof rerr ) ;\n stream -> closed = 1 ;\n virStreamEventRemoveCallback ( stream -> st ) ;\n virStreamAbort ( stream -> st ) ;\n if ( events & VIR_STREAM_EVENT_HANGUP ) remoteDispatchFormatError ( & rerr , \"%s\" , _ ( \"stream had unexpected termination\" ) ) ;\n else remoteDispatchFormatError ( & rerr , \"%s\" , _ ( \"stream had I/O failure\" ) ) ;\n ret = remoteSerializeStreamError ( client , & rerr , stream -> procedure , stream -> serial ) ;\n remoteRemoveClientStream ( client , stream ) ;\n if ( ret < 0 ) qemudDispatchClientFailure ( client ) ;\n goto cleanup ;\n }\n if ( stream -> closed ) {\n remoteRemoveClientStream ( client , stream ) ;\n }\n else {\n remoteStreamUpdateEvents ( stream ) ;\n }\n cleanup : virMutexUnlock ( & client -> lock ) ;\n }"}
{"idx": 18281, "target": 0, "func": "static int kvm_get_tsc ( CPUState * cs ) {\n X86CPU * cpu = X86_CPU ( cs ) ;\n CPUX86State * env = & cpu -> env ;\n struct {\n struct kvm_msrs info ;\n struct kvm_msr_entry entries [ 1 ] ;\n }\n msr_data ;\n int ret ;\n if ( env -> tsc_valid ) {\n return 0 ;\n }\n msr_data . info . nmsrs = 1 ;\n msr_data . entries [ 0 ] . index = MSR_IA32_TSC ;\n env -> tsc_valid = ! runstate_is_running ( ) ;\n ret = kvm_vcpu_ioctl ( CPU ( cpu ) , KVM_GET_MSRS , & msr_data ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n assert ( ret == 1 ) ;\n env -> tsc = msr_data . entries [ 0 ] . data ;\n return 0 ;\n }"}
{"idx": 18282, "target": 0, "func": "static xmlNodeSetPtr exsltMathLowest ( xmlNodeSetPtr ns ) {\n xmlNodeSetPtr ret = xmlXPathNodeSetCreate ( NULL ) ;\n double min , cur ;\n int i ;\n if ( ( ns == NULL ) || ( ns -> nodeNr == 0 ) ) return ( ret ) ;\n min = xmlXPathCastNodeToNumber ( ns -> nodeTab [ 0 ] ) ;\n if ( xmlXPathIsNaN ( min ) ) return ( ret ) ;\n else xmlXPathNodeSetAddUnique ( ret , ns -> nodeTab [ 0 ] ) ;\n for ( i = 1 ;\n i < ns -> nodeNr ;\n i ++ ) {\n cur = xmlXPathCastNodeToNumber ( ns -> nodeTab [ i ] ) ;\n if ( xmlXPathIsNaN ( cur ) ) {\n xmlXPathEmptyNodeSet ( ret ) ;\n return ( ret ) ;\n }\n if ( cur > min ) continue ;\n if ( cur < min ) {\n min = cur ;\n xmlXPathEmptyNodeSet ( ret ) ;\n xmlXPathNodeSetAddUnique ( ret , ns -> nodeTab [ i ] ) ;\n continue ;\n }\n xmlXPathNodeSetAddUnique ( ret , ns -> nodeTab [ i ] ) ;\n }\n return ( ret ) ;\n }"}
{"idx": 18283, "target": 0, "func": "static void show_error ( WriterContext * w , int err ) {\n char errbuf [ 128 ] ;\n const char * errbuf_ptr = errbuf ;\n if ( av_strerror ( err , errbuf , sizeof ( errbuf ) ) < 0 ) errbuf_ptr = strerror ( AVUNERROR ( err ) ) ;\n writer_print_section_header ( w , SECTION_ID_ERROR ) ;\n print_int ( \"code\" , err ) ;\n print_str ( \"string\" , errbuf_ptr ) ;\n writer_print_section_footer ( w ) ;\n }"}
{"idx": 18284, "target": 0, "func": "int decodets ( char * str , l_fp * lfp ) {\n char * cp ;\n char buf [ 30 ] ;\n size_t b ;\n if ( * str == '0' && ( * ( str + 1 ) == 'x' || * ( str + 1 ) == 'X' ) ) return hextolfp ( str + 2 , lfp ) ;\n if ( * str == '\"' ) {\n cp = str + 1 ;\n b = 0 ;\n while ( '\"' != * cp && '\\0' != * cp && b < COUNTOF ( buf ) - 1 ) buf [ b ++ ] = * cp ++ ;\n buf [ b ] = '\\0' ;\n return rtdatetolfp ( buf , lfp ) ;\n }\n if ( ( * str >= 'A' && * str <= 'F' ) || ( * str >= 'a' && * str <= 'f' ) ) return hextolfp ( str , lfp ) ;\n if ( atolfp ( str , lfp ) ) return 1 ;\n return rtdatetolfp ( str , lfp ) ;\n }"}
{"idx": 18285, "target": 0, "func": "static hb_unicode_general_category_t hb_icu_unicode_general_category ( hb_unicode_funcs_t * ufuncs HB_UNUSED , hb_codepoint_t unicode , void * user_data HB_UNUSED ) {\n switch ( u_getIntPropertyValue ( unicode , UCHAR_GENERAL_CATEGORY ) ) {\n case U_UNASSIGNED : return HB_UNICODE_GENERAL_CATEGORY_UNASSIGNED ;\n case U_UPPERCASE_LETTER : return HB_UNICODE_GENERAL_CATEGORY_UPPERCASE_LETTER ;\n case U_LOWERCASE_LETTER : return HB_UNICODE_GENERAL_CATEGORY_LOWERCASE_LETTER ;\n case U_TITLECASE_LETTER : return HB_UNICODE_GENERAL_CATEGORY_TITLECASE_LETTER ;\n case U_MODIFIER_LETTER : return HB_UNICODE_GENERAL_CATEGORY_MODIFIER_LETTER ;\n case U_OTHER_LETTER : return HB_UNICODE_GENERAL_CATEGORY_OTHER_LETTER ;\n case U_NON_SPACING_MARK : return HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK ;\n case U_ENCLOSING_MARK : return HB_UNICODE_GENERAL_CATEGORY_ENCLOSING_MARK ;\n case U_COMBINING_SPACING_MARK : return HB_UNICODE_GENERAL_CATEGORY_SPACING_MARK ;\n case U_DECIMAL_DIGIT_NUMBER : return HB_UNICODE_GENERAL_CATEGORY_DECIMAL_NUMBER ;\n case U_LETTER_NUMBER : return HB_UNICODE_GENERAL_CATEGORY_LETTER_NUMBER ;\n case U_OTHER_NUMBER : return HB_UNICODE_GENERAL_CATEGORY_OTHER_NUMBER ;\n case U_SPACE_SEPARATOR : return HB_UNICODE_GENERAL_CATEGORY_SPACE_SEPARATOR ;\n case U_LINE_SEPARATOR : return HB_UNICODE_GENERAL_CATEGORY_LINE_SEPARATOR ;\n case U_PARAGRAPH_SEPARATOR : return HB_UNICODE_GENERAL_CATEGORY_PARAGRAPH_SEPARATOR ;\n case U_CONTROL_CHAR : return HB_UNICODE_GENERAL_CATEGORY_CONTROL ;\n case U_FORMAT_CHAR : return HB_UNICODE_GENERAL_CATEGORY_FORMAT ;\n case U_PRIVATE_USE_CHAR : return HB_UNICODE_GENERAL_CATEGORY_PRIVATE_USE ;\n case U_SURROGATE : return HB_UNICODE_GENERAL_CATEGORY_SURROGATE ;\n case U_DASH_PUNCTUATION : return HB_UNICODE_GENERAL_CATEGORY_DASH_PUNCTUATION ;\n case U_START_PUNCTUATION : return HB_UNICODE_GENERAL_CATEGORY_OPEN_PUNCTUATION ;\n case U_END_PUNCTUATION : return HB_UNICODE_GENERAL_CATEGORY_CLOSE_PUNCTUATION ;\n case U_CONNECTOR_PUNCTUATION : return HB_UNICODE_GENERAL_CATEGORY_CONNECT_PUNCTUATION ;\n case U_OTHER_PUNCTUATION : return HB_UNICODE_GENERAL_CATEGORY_OTHER_PUNCTUATION ;\n case U_MATH_SYMBOL : return HB_UNICODE_GENERAL_CATEGORY_MATH_SYMBOL ;\n case U_CURRENCY_SYMBOL : return HB_UNICODE_GENERAL_CATEGORY_CURRENCY_SYMBOL ;\n case U_MODIFIER_SYMBOL : return HB_UNICODE_GENERAL_CATEGORY_MODIFIER_SYMBOL ;\n case U_OTHER_SYMBOL : return HB_UNICODE_GENERAL_CATEGORY_OTHER_SYMBOL ;\n case U_INITIAL_PUNCTUATION : return HB_UNICODE_GENERAL_CATEGORY_INITIAL_PUNCTUATION ;\n case U_FINAL_PUNCTUATION : return HB_UNICODE_GENERAL_CATEGORY_FINAL_PUNCTUATION ;\n }\n return HB_UNICODE_GENERAL_CATEGORY_UNASSIGNED ;\n }"}
{"idx": 18286, "target": 1, "func": "static int skip_check ( MpegEncContext * s , Picture * p , Picture * ref ) {\n int x , y , plane ;\n int score = 0 ;\n int64_t score64 = 0 ;\n for ( plane = 0 ;\n plane < 3 ;\n plane ++ ) {\n const int stride = p -> f . linesize [ plane ] ;\n const int bw = plane ? 1 : 2 ;\n for ( y = 0 ;\n y < s -> mb_height * bw ;\n y ++ ) {\n for ( x = 0 ;\n x < s -> mb_width * bw ;\n x ++ ) {\n int off = p -> f . type == FF_BUFFER_TYPE_SHARED ? 0 : 16 ;\n uint8_t * dptr = p -> f . data [ plane ] + 8 * ( x + y * stride ) + off ;\n uint8_t * rptr = ref -> f . data [ plane ] + 8 * ( x + y * stride ) ;\n int v = s -> dsp . frame_skip_cmp [ 1 ] ( s , dptr , rptr , stride , 8 ) ;\n switch ( s -> avctx -> frame_skip_exp ) {\n case 0 : score = FFMAX ( score , v ) ;\n break ;\n case 1 : score += FFABS ( v ) ;\n break ;\n case 2 : score += v * v ;\n break ;\n case 3 : score64 += FFABS ( v * v * ( int64_t ) v ) ;\n break ;\n case 4 : score64 += v * v * ( int64_t ) ( v * v ) ;\n break ;\n }\n }\n }\n }\n if ( score ) score64 = score ;\n if ( score64 < s -> avctx -> frame_skip_threshold ) return 1 ;\n if ( score64 < ( ( s -> avctx -> frame_skip_factor * ( int64_t ) s -> lambda ) >> 8 ) ) return 1 ;\n return 0 ;\n }"}
{"idx": 18287, "target": 0, "func": "proto_tree * proto_tree_get_root ( proto_tree * tree ) {\n if ( ! tree ) return NULL ;\n while ( tree -> parent ) {\n tree = tree -> parent ;\n }\n return tree ;\n }"}
{"idx": 18288, "target": 0, "func": "static gboolean is_link_trusted ( NautilusFile * file , gboolean is_launcher ) {\n GFile * location ;\n gboolean res ;\n g_autofree gchar * trusted = NULL ;\n if ( ! is_launcher ) {\n return TRUE ;\n }\n trusted = nautilus_file_get_metadata ( file , NAUTILUS_METADATA_KEY_DESKTOP_FILE_TRUSTED , NULL ) ;\n if ( nautilus_file_can_execute ( file ) && trusted != NULL ) {\n return TRUE ;\n }\n res = FALSE ;\n if ( nautilus_file_is_local ( file ) ) {\n location = nautilus_file_get_location ( file ) ;\n res = nautilus_is_in_system_dir ( location ) ;\n g_object_unref ( location ) ;\n }\n return res ;\n }"}
{"idx": 18289, "target": 0, "func": "static void dnslabel_clear ( struct dnslabel_table * table ) {\n int i ;\n for ( i = 0 ;\n i < table -> n_labels ;\n ++ i ) free ( table -> labels [ i ] . v ) ;\n table -> n_labels = 0 ;\n }"}
{"idx": 18290, "target": 0, "func": "static int dissect_h225_RequestInProgress ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_RequestInProgress , RequestInProgress_sequence ) ;\n return offset ;\n }"}
{"idx": 18291, "target": 0, "func": "static AsfStream * gst_asf_demux_add_audio_stream ( GstASFDemux * demux , asf_stream_audio * audio , guint16 id , guint8 * * p_data , guint64 * p_size ) {\n GstTagList * tags = NULL ;\n GstBuffer * extradata = NULL ;\n GstPad * src_pad ;\n GstCaps * caps ;\n guint16 size_left = 0 ;\n gchar * codec_name = NULL ;\n gchar * name = NULL ;\n size_left = audio -> size ;\n name = g_strdup_printf ( \"audio_%u\" , demux -> num_audio_streams ) ;\n src_pad = gst_pad_new_from_static_template ( & audio_src_template , name ) ;\n g_free ( name ) ;\n if ( size_left ) {\n GST_INFO_OBJECT ( demux , \"Audio header contains %d bytes of \" \"codec specific data\" , size_left ) ;\n g_assert ( size_left <= * p_size ) ;\n gst_asf_demux_get_buffer ( & extradata , size_left , p_data , p_size ) ;\n }\n caps = gst_riff_create_audio_caps ( audio -> codec_tag , NULL , ( gst_riff_strf_auds * ) audio , extradata , NULL , & codec_name , NULL ) ;\n if ( caps == NULL ) {\n caps = gst_caps_new_simple ( \"audio/x-asf-unknown\" , \"codec_id\" , G_TYPE_INT , ( gint ) audio -> codec_tag , NULL ) ;\n }\n if ( codec_name ) {\n tags = gst_tag_list_new ( GST_TAG_AUDIO_CODEC , codec_name , NULL ) ;\n g_free ( codec_name ) ;\n }\n if ( audio -> byte_rate > 0 ) {\n guint bitrate = audio -> byte_rate * 8 ;\n if ( tags == NULL ) tags = gst_tag_list_new_empty ( ) ;\n gst_tag_list_add ( tags , GST_TAG_MERGE_KEEP , GST_TAG_BITRATE , bitrate , NULL ) ;\n }\n if ( extradata ) gst_buffer_unref ( extradata ) ;\n GST_INFO ( \"Adding audio stream #%u, id %u codec %u (0x%04x), tags=%\" GST_PTR_FORMAT , demux -> num_audio_streams , id , audio -> codec_tag , audio -> codec_tag , tags ) ;\n ++ demux -> num_audio_streams ;\n return gst_asf_demux_setup_pad ( demux , src_pad , caps , id , FALSE , NULL , tags ) ;\n }"}
{"idx": 18292, "target": 0, "func": "static void _slurm_rpc_dump_job_single ( slurm_msg_t * msg ) {\n DEF_TIMERS ;\n char * dump = NULL ;\n int dump_size , rc ;\n slurm_msg_t response_msg ;\n job_id_msg_t * job_id_msg = ( job_id_msg_t * ) msg -> data ;\n slurmctld_lock_t job_read_lock = {\n READ_LOCK , READ_LOCK , NO_LOCK , READ_LOCK , READ_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n START_TIMER ;\n debug3 ( \"Processing RPC: REQUEST_JOB_INFO_SINGLE from uid=%d\" , uid ) ;\n lock_slurmctld ( job_read_lock ) ;\n rc = pack_one_job ( & dump , & dump_size , job_id_msg -> job_id , job_id_msg -> show_flags , uid , msg -> protocol_version ) ;\n unlock_slurmctld ( job_read_lock ) ;\n END_TIMER2 ( \"_slurm_rpc_dump_job_single\" ) ;\n # if 0 info ( \"_slurm_rpc_dump_job_single, size=%d %s\" , dump_size , TIME_STR ) ;\n # endif if ( rc != SLURM_SUCCESS ) {\n slurm_send_rc_msg ( msg , rc ) ;\n }\n else {\n slurm_msg_t_init ( & response_msg ) ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . address = msg -> address ;\n response_msg . conn = msg -> conn ;\n response_msg . msg_type = RESPONSE_JOB_INFO ;\n response_msg . data = dump ;\n response_msg . data_size = dump_size ;\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n }\n xfree ( dump ) ;\n }"}
{"idx": 18293, "target": 0, "func": "static int dissect_h245_MultiplexEntrySendAck ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MultiplexEntrySendAck , MultiplexEntrySendAck_sequence ) ;\n return offset ;\n }"}
{"idx": 18294, "target": 1, "func": "mbfl_buffer_converter * mbfl_buffer_converter_new2 ( const mbfl_encoding * from , const mbfl_encoding * to , int buf_initsz ) {\n mbfl_buffer_converter * convd ;\n convd = ( mbfl_buffer_converter * ) mbfl_malloc ( sizeof ( mbfl_buffer_converter ) ) ;\n if ( convd == NULL ) {\n return NULL ;\n }\n convd -> from = from ;\n convd -> to = to ;\n convd -> filter1 = NULL ;\n convd -> filter2 = NULL ;\n if ( mbfl_convert_filter_get_vtbl ( convd -> from -> no_encoding , convd -> to -> no_encoding ) != NULL ) {\n convd -> filter1 = mbfl_convert_filter_new ( convd -> from -> no_encoding , convd -> to -> no_encoding , mbfl_memory_device_output , NULL , & convd -> device ) ;\n }\n else {\n convd -> filter2 = mbfl_convert_filter_new ( mbfl_no_encoding_wchar , convd -> to -> no_encoding , mbfl_memory_device_output , NULL , & convd -> device ) ;\n if ( convd -> filter2 != NULL ) {\n convd -> filter1 = mbfl_convert_filter_new ( convd -> from -> no_encoding , mbfl_no_encoding_wchar , ( int ( * ) ( int , void * ) ) convd -> filter2 -> filter_function , ( int ( * ) ( void * ) ) convd -> filter2 -> filter_flush , convd -> filter2 ) ;\n if ( convd -> filter1 == NULL ) {\n mbfl_convert_filter_delete ( convd -> filter2 ) ;\n }\n }\n }\n if ( convd -> filter1 == NULL ) {\n return NULL ;\n }\n mbfl_memory_device_init ( & convd -> device , buf_initsz , buf_initsz / 4 ) ;\n return convd ;\n }"}
{"idx": 18295, "target": 0, "func": "static vpx_codec_err_t ctrl_copy_reference ( vpx_codec_alg_priv_t * ctx , va_list args ) {\n vpx_ref_frame_t * const frame = va_arg ( args , vpx_ref_frame_t * ) ;\n if ( frame != NULL ) {\n YV12_BUFFER_CONFIG sd ;\n image2yuvconfig ( & frame -> img , & sd ) ;\n vp9_copy_reference_enc ( ctx -> cpi , ref_frame_to_vp9_reframe ( frame -> frame_type ) , & sd ) ;\n return VPX_CODEC_OK ;\n }\n else {\n return VPX_CODEC_INVALID_PARAM ;\n }\n }"}
{"idx": 18296, "target": 0, "func": "static void scaled_hb_excitation ( AMRWBContext * ctx , float * hb_exc , const float * synth_exc , float hb_gain ) {\n int i ;\n float energy = avpriv_scalarproduct_float_c ( synth_exc , synth_exc , AMRWB_SFR_SIZE ) ;\n for ( i = 0 ;\n i < AMRWB_SFR_SIZE_16k ;\n i ++ ) hb_exc [ i ] = 32768.0 - ( uint16_t ) av_lfg_get ( & ctx -> prng ) ;\n ff_scale_vector_to_given_sum_of_squares ( hb_exc , hb_exc , energy * hb_gain * hb_gain , AMRWB_SFR_SIZE_16k ) ;\n }"}
{"idx": 18297, "target": 0, "func": "static gboolean k12_dump ( wtap_dumper * wdh , const struct wtap_pkthdr * phdr , const guint8 * pd , int * err , gchar * * err_info _U_ ) {\n const union wtap_pseudo_header * pseudo_header = & phdr -> pseudo_header ;\n k12_dump_t * k12 = ( k12_dump_t * ) wdh -> priv ;\n guint32 len ;\n union {\n guint8 buffer [ 8192 ] ;\n struct {\n guint32 len ;\n guint32 type ;\n guint32 frame_len ;\n guint32 input ;\n guint32 datum_1 ;\n guint32 datum_2 ;\n guint64 ts ;\n guint8 frame [ 0x1fc0 ] ;\n }\n record ;\n }\n obj ;\n if ( phdr -> rec_type != REC_TYPE_PACKET ) {\n * err = WTAP_ERR_UNWRITABLE_REC_TYPE ;\n return FALSE ;\n }\n if ( k12 -> num_of_records == 0 ) {\n k12_t * file_data = ( k12_t * ) pseudo_header -> k12 . stuff ;\n g_hash_table_foreach ( file_data -> src_by_id , k12_dump_src_setting , wdh ) ;\n }\n obj . record . len = 0x20 + phdr -> caplen ;\n obj . record . len += ( obj . record . len % 4 ) ? 4 - obj . record . len % 4 : 0 ;\n len = obj . record . len ;\n obj . record . len = g_htonl ( obj . record . len ) ;\n obj . record . type = g_htonl ( K12_REC_PACKET ) ;\n obj . record . frame_len = g_htonl ( phdr -> caplen ) ;\n obj . record . input = g_htonl ( pseudo_header -> k12 . input ) ;\n obj . record . ts = GUINT64_TO_BE ( ( ( ( guint64 ) phdr -> ts . secs - 631152000 ) * 2000000 ) + ( phdr -> ts . nsecs / 1000 * 2 ) ) ;\n memcpy ( obj . record . frame , pd , phdr -> caplen ) ;\n return k12_dump_record ( wdh , len , obj . buffer , err ) ;\n }"}
{"idx": 18298, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( SafeJsonParserImplTest , Isolation ) {\n for ( int i = 0 ;\n i < 5 ;\n i ++ ) {\n base : : RunLoop run_loop ;\n ParseCallback parse_callback ( run_loop . QuitClosure ( ) ) ;\n SafeJsonParser : : Parse ( connector ( ) , \"[\\\"awesome\\\", \\\"possum\\\"]\" , base : : Bind ( & ParseCallback : : OnSuccess , base : : Unretained ( & parse_callback ) ) , base : : Bind ( & ParseCallback : : OnError , base : : Unretained ( & parse_callback ) ) ) ;\n run_loop . Run ( ) ;\n EXPECT_TRUE ( parse_callback . success ( ) ) ;\n EXPECT_EQ ( 2U + i , GetServiceStartCount ( data_decoder : : mojom : : kServiceName ) ) ;\n }\n }"}
{"idx": 18299, "target": 0, "func": "TEST_F ( SoundContentSettingObserverTest , DontUnmuteWhenMutedForMediaCapture ) {\n EXPECT_FALSE ( web_contents ( ) -> IsAudioMuted ( ) ) ;\n SetMuteStateForReason ( true , TabMutedReason : : MEDIA_CAPTURE ) ;\n EXPECT_TRUE ( web_contents ( ) -> IsAudioMuted ( ) ) ;\n NavigateAndCommit ( GURL ( kURL2 ) ) ;\n EXPECT_TRUE ( web_contents ( ) -> IsAudioMuted ( ) ) ;\n }"}
{"idx": 18300, "target": 0, "func": "void ff_h263_encode_gob_header ( MpegEncContext * s , int mb_line ) {\n put_bits ( & s -> pb , 17 , 1 ) ;\n if ( s -> h263_slice_structured ) {\n put_bits ( & s -> pb , 1 , 1 ) ;\n ff_h263_encode_mba ( s ) ;\n if ( s -> mb_num > 1583 ) put_bits ( & s -> pb , 1 , 1 ) ;\n put_bits ( & s -> pb , 5 , s -> qscale ) ;\n put_bits ( & s -> pb , 1 , 1 ) ;\n put_bits ( & s -> pb , 2 , s -> pict_type == AV_PICTURE_TYPE_I ) ;\n }\n else {\n int gob_number = mb_line / s -> gob_index ;\n put_bits ( & s -> pb , 5 , gob_number ) ;\n put_bits ( & s -> pb , 2 , s -> pict_type == AV_PICTURE_TYPE_I ) ;\n put_bits ( & s -> pb , 5 , s -> qscale ) ;\n }\n }"}
{"idx": 18301, "target": 0, "func": "static struct kvm_cpuid2 * get_supported_cpuid ( KVMState * s ) {\n struct kvm_cpuid2 * cpuid ;\n int max = 1 ;\n if ( cpuid_cache != NULL ) {\n return cpuid_cache ;\n }\n while ( ( cpuid = try_get_cpuid ( s , max ) ) == NULL ) {\n max *= 2 ;\n }\n cpuid_cache = cpuid ;\n return cpuid ;\n }"}
{"idx": 18302, "target": 0, "func": "static pdf_gstate * pdf_flush_text ( fz_context * ctx , pdf_run_processor * pr ) {\n pdf_gstate * gstate = pr -> gstate + pr -> gtop ;\n fz_text * text ;\n int dofill ;\n int dostroke ;\n int doclip ;\n int doinvisible ;\n softmask_save softmask = {\n NULL }\n ;\n int knockout_group = 0 ;\n text = pdf_tos_get_text ( ctx , & pr -> tos ) ;\n if ( ! text ) return gstate ;\n dofill = dostroke = doclip = doinvisible = 0 ;\n switch ( pr -> tos . text_mode ) {\n case 0 : dofill = 1 ;\n break ;\n case 1 : dostroke = 1 ;\n break ;\n case 2 : dofill = dostroke = 1 ;\n break ;\n case 3 : doinvisible = 1 ;\n break ;\n case 4 : dofill = doclip = 1 ;\n break ;\n case 5 : dostroke = doclip = 1 ;\n break ;\n case 6 : dofill = dostroke = doclip = 1 ;\n break ;\n case 7 : doclip = 1 ;\n break ;\n }\n if ( pr -> super . hidden ) dostroke = dofill = 0 ;\n fz_try ( ctx ) {\n fz_rect tb = pr -> tos . text_bbox ;\n fz_transform_rect ( & tb , & gstate -> ctm ) ;\n if ( dostroke ) fz_adjust_rect_for_stroke ( ctx , & tb , gstate -> stroke_state , & gstate -> ctm ) ;\n if ( ! text -> head ) break ;\n if ( dofill || dostroke ) gstate = pdf_begin_group ( ctx , pr , & tb , & softmask ) ;\n if ( dofill && dostroke ) {\n if ( gstate -> stroke . alpha == 0 ) {\n }\n else if ( gstate -> stroke . alpha == 1.0f && gstate -> blendmode == FZ_BLEND_NORMAL ) {\n }\n else {\n knockout_group = 1 ;\n fz_begin_group ( ctx , pr -> dev , & tb , NULL , 0 , 1 , FZ_BLEND_NORMAL , 1 ) ;\n }\n }\n if ( doinvisible ) fz_ignore_text ( ctx , pr -> dev , text , & gstate -> ctm ) ;\n if ( dofill ) {\n switch ( gstate -> fill . kind ) {\n case PDF_MAT_NONE : break ;\n case PDF_MAT_COLOR : fz_fill_text ( ctx , pr -> dev , text , & gstate -> ctm , gstate -> fill . colorspace , gstate -> fill . v , gstate -> fill . alpha , & gstate -> fill . color_params ) ;\n break ;\n case PDF_MAT_PATTERN : if ( gstate -> fill . pattern ) {\n fz_clip_text ( ctx , pr -> dev , text , & gstate -> ctm , & tb ) ;\n pdf_show_pattern ( ctx , pr , gstate -> fill . pattern , & pr -> gstate [ gstate -> fill . gstate_num ] , & tb , PDF_FILL ) ;\n fz_pop_clip ( ctx , pr -> dev ) ;\n }\n break ;\n case PDF_MAT_SHADE : if ( gstate -> fill . shade ) {\n fz_clip_text ( ctx , pr -> dev , text , & gstate -> ctm , & tb ) ;\n fz_fill_shade ( ctx , pr -> dev , gstate -> fill . shade , & pr -> gstate [ gstate -> fill . gstate_num ] . ctm , gstate -> fill . alpha , & gstate -> fill . color_params ) ;\n fz_pop_clip ( ctx , pr -> dev ) ;\n }\n break ;\n }\n }\n if ( dostroke ) {\n switch ( gstate -> stroke . kind ) {\n case PDF_MAT_NONE : break ;\n case PDF_MAT_COLOR : fz_stroke_text ( ctx , pr -> dev , text , gstate -> stroke_state , & gstate -> ctm , gstate -> stroke . colorspace , gstate -> stroke . v , gstate -> stroke . alpha , & gstate -> stroke . color_params ) ;\n break ;\n case PDF_MAT_PATTERN : if ( gstate -> stroke . pattern ) {\n fz_clip_stroke_text ( ctx , pr -> dev , text , gstate -> stroke_state , & gstate -> ctm , & tb ) ;\n pdf_show_pattern ( ctx , pr , gstate -> stroke . pattern , & pr -> gstate [ gstate -> stroke . gstate_num ] , & tb , PDF_STROKE ) ;\n fz_pop_clip ( ctx , pr -> dev ) ;\n }\n break ;\n case PDF_MAT_SHADE : if ( gstate -> stroke . shade ) {\n fz_clip_stroke_text ( ctx , pr -> dev , text , gstate -> stroke_state , & gstate -> ctm , & tb ) ;\n fz_fill_shade ( ctx , pr -> dev , gstate -> stroke . shade , & pr -> gstate [ gstate -> stroke . gstate_num ] . ctm , gstate -> stroke . alpha , & gstate -> stroke . color_params ) ;\n fz_pop_clip ( ctx , pr -> dev ) ;\n }\n break ;\n }\n }\n if ( knockout_group ) fz_end_group ( ctx , pr -> dev ) ;\n if ( dofill || dostroke ) pdf_end_group ( ctx , pr , & softmask ) ;\n if ( doclip ) {\n gstate -> clip_depth ++ ;\n fz_clip_text ( ctx , pr -> dev , text , & gstate -> ctm , & tb ) ;\n }\n }\n fz_always ( ctx ) {\n fz_drop_text ( ctx , text ) ;\n }\n fz_catch ( ctx ) {\n fz_rethrow ( ctx ) ;\n }\n return pr -> gstate + pr -> gtop ;\n }"}
{"idx": 18303, "target": 0, "func": "static int compareFiles ( const void * file1 , const void * file2 ) {\n return uprv_strcmp ( ( ( File * ) file1 ) -> basename , ( ( File * ) file2 ) -> basename ) ;\n }"}
{"idx": 18304, "target": 0, "func": "static void collect_features_myanmar ( hb_ot_shape_planner_t * plan ) {\n hb_ot_map_builder_t * map = & plan -> map ;\n map -> add_gsub_pause ( setup_syllables ) ;\n map -> add_global_bool_feature ( HB_TAG ( 'l' , 'o' , 'c' , 'l' ) ) ;\n map -> add_global_bool_feature ( HB_TAG ( 'c' , 'c' , 'm' , 'p' ) ) ;\n map -> add_gsub_pause ( initial_reordering ) ;\n for ( unsigned int i = 0 ;\n i < ARRAY_LENGTH ( basic_features ) ;\n i ++ ) {\n map -> add_feature ( basic_features [ i ] , 1 , F_GLOBAL | F_MANUAL_ZWJ ) ;\n map -> add_gsub_pause ( NULL ) ;\n }\n map -> add_gsub_pause ( final_reordering ) ;\n for ( unsigned int i = 0 ;\n i < ARRAY_LENGTH ( other_features ) ;\n i ++ ) map -> add_feature ( other_features [ i ] , 1 , F_GLOBAL | F_MANUAL_ZWJ ) ;\n }"}
{"idx": 18305, "target": 0, "func": "void kadmin_getprivs ( int argc , char * argv [ ] ) {\n static char * privs [ ] = {\n \"INQUIRE\" , \"ADD\" , \"MODIFY\" , \"DELETE\" }\n ;\n krb5_error_code retval ;\n size_t i ;\n long plist ;\n if ( argc != 1 ) {\n fprintf ( stderr , _ ( \"usage: get_privs\\n\" ) ) ;\n return ;\n }\n retval = kadm5_get_privs ( handle , & plist ) ;\n if ( retval ) {\n com_err ( \"get_privs\" , retval , _ ( \"while retrieving privileges\" ) ) ;\n return ;\n }\n printf ( _ ( \"current privileges:\" ) ) ;\n for ( i = 0 ;\n i < sizeof ( privs ) / sizeof ( char * ) ;\n i ++ ) {\n if ( plist & 1 << i ) printf ( \" %s\" , privs [ i ] ) ;\n }\n printf ( \"\\n\" ) ;\n }"}
{"idx": 18306, "target": 0, "func": "static int proc_connectinfo ( struct usb_dev_state * ps , void __user * arg ) {\n struct usbdevfs_connectinfo ci ;\n memset ( & ci , 0 , sizeof ( ci ) ) ;\n ci . devnum = ps -> dev -> devnum ;\n ci . slow = ps -> dev -> speed == USB_SPEED_LOW ;\n if ( copy_to_user ( arg , & ci , sizeof ( ci ) ) ) return - EFAULT ;\n return 0 ;\n }"}
{"idx": 18307, "target": 0, "func": "static proto_item * proto_tree_add_boolean64 ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , guint64 value ) {\n proto_item * pi ;\n header_field_info * hfinfo ;\n CHECK_FOR_NULL_TREE ( tree ) ;\n TRY_TO_FAKE_THIS_ITEM ( tree , hfindex , hfinfo ) ;\n DISSECTOR_ASSERT_FIELD_TYPE ( hfinfo , FT_BOOLEAN ) ;\n pi = proto_tree_add_pi ( tree , hfinfo , tvb , start , & length ) ;\n proto_tree_set_boolean ( PNODE_FINFO ( pi ) , value ) ;\n return pi ;\n }"}
{"idx": 18308, "target": 0, "func": "static int dissect_h245_RequestMultiplexEntryAck ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_RequestMultiplexEntryAck , RequestMultiplexEntryAck_sequence ) ;\n return offset ;\n }"}
{"idx": 18309, "target": 0, "func": "static void xhci_cap_write ( void * opaque , hwaddr addr , uint64_t val , unsigned width ) {\n }"}
{"idx": 18310, "target": 0, "func": "gboolean tree_expanded ( int tree_type ) {\n g_assert ( tree_type >= 0 && tree_type < num_tree_types ) ;\n return tree_is_expanded [ tree_type >> 5 ] & ( 1U << ( tree_type & 31 ) ) ;\n }"}
{"idx": 18311, "target": 0, "func": "static const char * cmd_response_body_mime_types_clear ( cmd_parms * cmd , void * _dcfg ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n if ( dcfg == NULL ) return NULL ;\n dcfg -> of_mime_types_cleared = 1 ;\n if ( ( dcfg -> of_mime_types != NULL ) && ( dcfg -> of_mime_types != NOT_SET_P ) ) {\n apr_table_clear ( dcfg -> of_mime_types ) ;\n }\n return NULL ;\n }"}
{"idx": 18312, "target": 0, "func": "void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 ) sadMxN ( 16 , 32 ) sadMxNx4D ( 16 , 32 ) sadMxN ( 16 , 16 ) sadMxNxK ( 16 , 16 , 3 ) sadMxNxK ( 16 , 16 , 8 ) sadMxNx4D ( 16 , 16 ) sadMxN ( 16 , 8 ) sadMxNxK ( 16 , 8 , 3 ) sadMxNxK ( 16 , 8 , 8 )"}
{"idx": 18313, "target": 0, "func": "static void delta_decode ( uint8_t * dst , const uint8_t * src , int src_size , uint8_t * state , const int8_t * table ) {\n uint8_t val = * state ;\n while ( src_size -- ) {\n uint8_t d = * src ++ ;\n val = av_clip_uint8 ( val + table [ d & 0xF ] ) ;\n * dst ++ = val ;\n val = av_clip_uint8 ( val + table [ d >> 4 ] ) ;\n * dst ++ = val ;\n }\n * state = val ;\n }"}
{"idx": 18314, "target": 0, "func": "static uint32_t gic_dist_readl ( void * opaque , hwaddr offset ) {\n uint32_t val ;\n val = gic_dist_readw ( opaque , offset ) ;\n val |= gic_dist_readw ( opaque , offset + 2 ) << 16 ;\n return val ;\n }"}
{"idx": 18315, "target": 0, "func": "static int dissect_h245_SEQUENCE_OF_MultiplePayloadStreamElement ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h245_SEQUENCE_OF_MultiplePayloadStreamElement , SEQUENCE_OF_MultiplePayloadStreamElement_sequence_of ) ;\n return offset ;\n }"}
{"idx": 18316, "target": 0, "func": "BusState * qdev_get_parent_bus ( DeviceState * dev ) {\n return dev -> parent_bus ;\n }"}
{"idx": 18317, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( AppApiTest , NavigateIntoAppProcess ) {\n extensions : : ProcessMap * process_map = extensions : : ProcessMap : : Get ( browser ( ) -> profile ( ) ) ;\n GURL base_url = GetTestBaseURL ( \"app_process\" ) ;\n LOG ( INFO ) << \"Loading path1/empty.html.\" ;\n ui_test_utils : : NavigateToURL ( browser ( ) , base_url . Resolve ( \"path1/empty.html\" ) ) ;\n LOG ( INFO ) << \"Loading path1/empty.html - done.\" ;\n WebContents * contents = browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 0 ) ;\n EXPECT_FALSE ( process_map -> Contains ( contents -> GetRenderProcessHost ( ) -> GetID ( ) ) ) ;\n LOG ( INFO ) << \"Loading extension.\" ;\n const Extension * app = LoadExtension ( test_data_dir_ . AppendASCII ( \"app_process\" ) ) ;\n LOG ( INFO ) << \"Loading extension - done.\" ;\n ASSERT_TRUE ( app ) ;\n LOG ( INFO ) << \"Loading path1/empty.html.\" ;\n ui_test_utils : : NavigateToURL ( browser ( ) , base_url . Resolve ( \"path1/empty.html\" ) ) ;\n LOG ( INFO ) << \"Loading path1/empty.html - done.\" ;\n EXPECT_TRUE ( process_map -> Contains ( contents -> GetRenderProcessHost ( ) -> GetID ( ) ) ) ;\n LOG ( INFO ) << \"Disabling extension.\" ;\n DisableExtension ( app -> id ( ) ) ;\n LOG ( INFO ) << \"Disabling extension - done.\" ;\n LOG ( INFO ) << \"Loading path1/empty.html.\" ;\n ui_test_utils : : NavigateToURL ( browser ( ) , base_url . Resolve ( \"path1/empty.html\" ) ) ;\n LOG ( INFO ) << \"Loading path1/empty.html - done.\" ;\n EXPECT_FALSE ( process_map -> Contains ( contents -> GetRenderProcessHost ( ) -> GetID ( ) ) ) ;\n }"}
{"idx": 18318, "target": 0, "func": "static int _evdns_nameserver_add_impl ( unsigned long int address , int port ) {\n const struct nameserver * server = server_head , * const started_at = server_head ;\n struct nameserver * ns ;\n int err = 0 ;\n if ( server ) {\n do {\n if ( server -> address == address ) return 3 ;\n server = server -> next ;\n }\n while ( server != started_at ) ;\n }\n ns = ( struct nameserver * ) malloc ( sizeof ( struct nameserver ) ) ;\n if ( ! ns ) return - 1 ;\n memset ( ns , 0 , sizeof ( struct nameserver ) ) ;\n evtimer_set ( & ns -> timeout_event , nameserver_prod_callback , ns ) ;\n ns -> socket = socket ( PF_INET , SOCK_DGRAM , 0 ) ;\n if ( ns -> socket < 0 ) {\n err = 1 ;\n goto out1 ;\n }\n FD_CLOSEONEXEC ( ns -> socket ) ;\n evutil_make_socket_nonblocking ( ns -> socket ) ;\n ns -> address = address ;\n ns -> port = htons ( port ) ;\n ns -> state = 1 ;\n event_set ( & ns -> event , ns -> socket , EV_READ | EV_PERSIST , nameserver_ready_callback , ns ) ;\n if ( event_add ( & ns -> event , NULL ) < 0 ) {\n err = 2 ;\n goto out2 ;\n }\n log ( EVDNS_LOG_DEBUG , \"Added nameserver %s\" , debug_ntoa ( address ) ) ;\n if ( ! server_head ) {\n ns -> next = ns -> prev = ns ;\n server_head = ns ;\n }\n else {\n ns -> next = server_head -> next ;\n ns -> prev = server_head ;\n server_head -> next = ns ;\n if ( server_head -> prev == server_head ) {\n server_head -> prev = ns ;\n }\n }\n global_good_nameservers ++ ;\n return 0 ;\n out2 : CLOSE_SOCKET ( ns -> socket ) ;\n out1 : free ( ns ) ;\n log ( EVDNS_LOG_WARN , \"Unable to add nameserver %s: error %d\" , debug_ntoa ( address ) , err ) ;\n return err ;\n }"}
{"idx": 18319, "target": 0, "func": "static inline Quantum GetPixelBlack ( const Image * restrict image , const Quantum * restrict pixel ) {\n if ( image -> channel_map [ BlackPixelChannel ] . traits == UndefinedPixelTrait ) return ( ( Quantum ) 0 ) ;\n return ( pixel [ image -> channel_map [ BlackPixelChannel ] . offset ] ) ;\n }"}
{"idx": 18320, "target": 0, "func": "static void remove_server ( char * prefix , char * port ) {\n char * old_port = NULL ;\n struct server * old_server = NULL ;\n cork_hash_table_delete ( server_table , ( void * ) port , ( void * * ) & old_port , ( void * * ) & old_server ) ;\n if ( old_server != NULL ) {\n destroy_server ( old_server ) ;\n ss_free ( old_server ) ;\n }\n stop_server ( prefix , port ) ;\n }"}
{"idx": 18321, "target": 0, "func": "int jbig2_release_page ( Jbig2Ctx * ctx , Jbig2Image * image ) {\n int index ;\n for ( index = 0 ;\n index < ctx -> max_page_index ;\n index ++ ) {\n if ( ctx -> pages [ index ] . image == image ) {\n jbig2_image_release ( ctx , image ) ;\n ctx -> pages [ index ] . state = JBIG2_PAGE_RELEASED ;\n jbig2_error ( ctx , JBIG2_SEVERITY_DEBUG , - 1 , \"page %d released by the client\" , ctx -> pages [ index ] . number ) ;\n return 0 ;\n }\n }\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , - 1 , \"jbig2_release_page called on unknown page\" ) ;\n return 1 ;\n }"}
{"idx": 18322, "target": 0, "func": "static void * i_alloc_struct_immovable ( gs_memory_t * mem , gs_memory_type_ptr_t pstype , client_name_t cname ) {\n gs_ref_memory_t * const imem = ( gs_ref_memory_t * ) mem ;\n uint size = pstype -> ssize ;\n obj_header_t * obj ;\n # ifdef MEMENTO if ( Memento_failThisEvent ( ) ) return NULL ;\n # endif ALLOC_CHECK_SIZE ( mem , pstype ) ;\n obj = alloc_obj ( imem , size , pstype , ALLOC_IMMOVABLE | ALLOC_DIRECT , cname ) ;\n alloc_trace ( \"|+<.\" , imem , cname , pstype , size , obj ) ;\n return obj ;\n }"}
{"idx": 18323, "target": 0, "func": "TEST_F ( OmniboxViewViewsTest , UpdatePopupCall ) {\n ui : : KeyEvent char_event ( ui : : ET_KEY_PRESSED , ui : : VKEY_A , ui : : DomCode : : US_A , 0 , ui : : DomKey : : FromCharacter ( 'a' ) , ui : : EventTimeForNow ( ) ) ;\n omnibox_textfield ( ) -> InsertChar ( char_event ) ;\n omnibox_view ( ) -> CheckUpdatePopupCallInfo ( 1 , base : : ASCIIToUTF16 ( \"a\" ) , Range ( 1 ) ) ;\n char_event = ui : : KeyEvent ( ui : : ET_KEY_PRESSED , ui : : VKEY_B , ui : : DomCode : : US_B , 0 , ui : : DomKey : : FromCharacter ( 'b' ) , ui : : EventTimeForNow ( ) ) ;\n omnibox_textfield ( ) -> InsertChar ( char_event ) ;\n omnibox_view ( ) -> CheckUpdatePopupCallInfo ( 2 , base : : ASCIIToUTF16 ( \"ab\" ) , Range ( 2 ) ) ;\n ui : : KeyEvent pressed ( ui : : ET_KEY_PRESSED , ui : : VKEY_BACK , 0 ) ;\n omnibox_textfield ( ) -> OnKeyEvent ( & pressed ) ;\n omnibox_view ( ) -> CheckUpdatePopupCallInfo ( 3 , base : : ASCIIToUTF16 ( \"a\" ) , Range ( 1 ) ) ;\n }"}
{"idx": 18324, "target": 0, "func": "static void write_bitdepth_colorspace_sampling ( VP9_COMMON * const cm , struct vp9_write_bit_buffer * wb ) {\n if ( cm -> profile >= PROFILE_2 ) {\n assert ( cm -> bit_depth > VPX_BITS_8 ) ;\n vp9_wb_write_bit ( wb , cm -> bit_depth == VPX_BITS_10 ? 0 : 1 ) ;\n }\n vp9_wb_write_literal ( wb , cm -> color_space , 3 ) ;\n if ( cm -> color_space != SRGB ) {\n vp9_wb_write_bit ( wb , 0 ) ;\n if ( cm -> profile == PROFILE_1 || cm -> profile == PROFILE_3 ) {\n assert ( cm -> subsampling_x != 1 || cm -> subsampling_y != 1 ) ;\n vp9_wb_write_bit ( wb , cm -> subsampling_x ) ;\n vp9_wb_write_bit ( wb , cm -> subsampling_y ) ;\n vp9_wb_write_bit ( wb , 0 ) ;\n }\n else {\n assert ( cm -> subsampling_x == 1 && cm -> subsampling_y == 1 ) ;\n }\n }\n else {\n assert ( cm -> profile == PROFILE_1 || cm -> profile == PROFILE_3 ) ;\n vp9_wb_write_bit ( wb , 0 ) ;\n }\n }"}
{"idx": 18325, "target": 0, "func": "static void test_logs ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND my_bind [ 2 ] ;\n char data [ 255 ] ;\n ulong length ;\n int rc ;\n short id ;\n myheader ( \"test_logs\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_logs\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_logs(id smallint, name varchar(20))\" ) ;\n myquery ( rc ) ;\n strmov ( ( char * ) data , \"INSERT INTO test_logs VALUES(?, ?)\" ) ;\n stmt = mysql_simple_prepare ( mysql , data ) ;\n check_stmt ( stmt ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_SHORT ;\n my_bind [ 0 ] . buffer = ( void * ) & id ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 1 ] . buffer = ( void * ) & data ;\n my_bind [ 1 ] . buffer_length = 255 ;\n my_bind [ 1 ] . length = & length ;\n id = 9876 ;\n length = ( ulong ) ( strmov ( ( char * ) data , \"MySQL - Open Source Database\" ) - data ) ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n strmov ( ( char * ) data , \"'\" ) ;\n length = 1 ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n strmov ( ( char * ) data , \"\\\"\" ) ;\n length = 1 ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n length = ( ulong ) ( strmov ( ( char * ) data , \"my\\'sql\\'\" ) - data ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n length = ( ulong ) ( strmov ( ( char * ) data , \"my\\\"sql\\\"\" ) - data ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n mysql_stmt_close ( stmt ) ;\n strmov ( ( char * ) data , \"INSERT INTO test_logs VALUES(20, 'mysql')\" ) ;\n stmt = mysql_simple_prepare ( mysql , data ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n mysql_stmt_close ( stmt ) ;\n strmov ( ( char * ) data , \"SELECT * FROM test_logs WHERE id=?\" ) ;\n stmt = mysql_simple_prepare ( mysql , data ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n my_bind [ 1 ] . buffer_length = 255 ;\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) {\n fprintf ( stdout , \"id : %d\\n\" , id ) ;\n fprintf ( stdout , \"name : %s(%ld)\\n\" , data , length ) ;\n }\n DIE_UNLESS ( id == 9876 ) ;\n DIE_UNLESS ( length == 19 || length == 20 ) ;\n DIE_UNLESS ( is_prefix ( data , \"MySQL - Open Source\" ) == 1 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n name : %s(%ld)\" , data , length ) ;\n DIE_UNLESS ( length == 1 ) ;\n DIE_UNLESS ( strcmp ( data , \"'\" ) == 0 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n name : %s(%ld)\" , data , length ) ;\n DIE_UNLESS ( length == 1 ) ;\n DIE_UNLESS ( strcmp ( data , \"\\\"\" ) == 0 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n name : %s(%ld)\" , data , length ) ;\n DIE_UNLESS ( length == 7 ) ;\n DIE_UNLESS ( strcmp ( data , \"my\\'sql\\'\" ) == 0 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n name : %s(%ld)\" , data , length ) ;\n DIE_UNLESS ( length == 7 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"DROP TABLE test_logs\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 18326, "target": 0, "func": "protocol_t * find_protocol_by_id ( const int proto_id ) {\n header_field_info * hfinfo ;\n if ( proto_id < 0 ) return NULL ;\n PROTO_REGISTRAR_GET_NTH ( proto_id , hfinfo ) ;\n DISSECTOR_ASSERT_FIELD_TYPE ( hfinfo , FT_PROTOCOL ) ;\n return ( protocol_t * ) hfinfo -> strings ;\n }"}
{"idx": 18327, "target": 1, "func": "SPL_METHOD ( FilesystemIterator , current ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n if ( SPL_FILE_DIR_CURRENT ( intern , SPL_FILE_DIR_CURRENT_AS_PATHNAME ) ) {\n spl_filesystem_object_get_file_name ( intern TSRMLS_CC ) ;\n RETURN_STRINGL ( intern -> file_name , intern -> file_name_len , 1 ) ;\n }\n else if ( SPL_FILE_DIR_CURRENT ( intern , SPL_FILE_DIR_CURRENT_AS_FILEINFO ) ) {\n spl_filesystem_object_get_file_name ( intern TSRMLS_CC ) ;\n spl_filesystem_object_create_type ( 0 , intern , SPL_FS_INFO , NULL , return_value TSRMLS_CC ) ;\n }\n else {\n RETURN_ZVAL ( getThis ( ) , 1 , 0 ) ;\n }\n }"}
{"idx": 18328, "target": 0, "func": "extern int name ( int , locale_t ) __THROW __exctype_l ( isalnum_l ) ;\n __exctype_l ( isalpha_l ) ;\n __exctype_l ( iscntrl_l ) ;\n __exctype_l ( isdigit_l ) ;\n __exctype_l ( islower_l ) ;\n __exctype_l ( isgraph_l ) ;\n __exctype_l ( isprint_l ) ;\n __exctype_l ( ispunct_l ) ;\n __exctype_l ( isspace_l ) ;\n __exctype_l ( isupper_l ) ;\n __exctype_l ( isxdigit_l )"}
{"idx": 18329, "target": 0, "func": "static void purple_add_deny ( struct im_connection * ic , char * who ) {\n struct purple_data * pd = ic -> proto_data ;\n purple_privacy_deny_add ( pd -> account , who , FALSE ) ;\n }"}
{"idx": 18330, "target": 0, "func": "void ivalidate_clean_spaces ( i_ctx_t * i_ctx_p ) {\n if ( gs_debug_c ( '?' ) ) {\n ref_stack_cleanup ( & d_stack ) ;\n ref_stack_cleanup ( & e_stack ) ;\n ref_stack_cleanup ( & o_stack ) ;\n ivalidate_spaces ( ) ;\n }\n }"}
{"idx": 18331, "target": 0, "func": "static xmlParserInputBufferPtr xml_unload_external_entity ( const char * URI , xmlCharEncoding enc ) {\n return NULL ;\n }"}
{"idx": 18332, "target": 0, "func": "static void dtap_gcc_set_param ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , curr_offset << 3 , 4 , ENC_NA ) ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_GCC_STATE_ATTR , NULL ) ;\n }"}
{"idx": 18333, "target": 1, "func": "extern int name ( int ) __THROW __exctype ( isalnum ) ;\n __exctype ( isalpha ) ;\n __exctype ( iscntrl ) ;\n __exctype ( isdigit ) ;\n __exctype ( islower ) ;\n __exctype ( isgraph ) ;\n __exctype ( isprint ) ;\n __exctype ( ispunct ) ;\n __exctype ( isspace )"}
{"idx": 18334, "target": 0, "func": "static void pimv2_print ( netdissect_options * ndo , register const u_char * bp , register u_int len , const u_char * bp2 ) {\n register const u_char * ep ;\n register const struct pim * pim = ( const struct pim * ) bp ;\n int advance ;\n enum checksum_status cksum_status ;\n ep = ( const u_char * ) ndo -> ndo_snapend ;\n if ( bp >= ep ) return ;\n if ( ep > bp + len ) ep = bp + len ;\n ND_TCHECK ( pim -> pim_rsv ) ;\n pimv2_addr_len = pim -> pim_rsv ;\n if ( pimv2_addr_len != 0 ) ND_PRINT ( ( ndo , \", RFC2117-encoding\" ) ) ;\n ND_PRINT ( ( ndo , \", cksum 0x%04x \" , EXTRACT_16BITS ( & pim -> pim_cksum ) ) ) ;\n if ( EXTRACT_16BITS ( & pim -> pim_cksum ) == 0 ) {\n ND_PRINT ( ( ndo , \"(unverified)\" ) ) ;\n }\n else {\n if ( PIM_TYPE ( pim -> pim_typever ) == PIMV2_TYPE_REGISTER ) {\n cksum_status = pimv2_check_checksum ( ndo , bp , bp2 , 8 ) ;\n if ( cksum_status == INCORRECT ) {\n cksum_status = pimv2_check_checksum ( ndo , bp , bp2 , len ) ;\n }\n }\n else {\n cksum_status = pimv2_check_checksum ( ndo , bp , bp2 , len ) ;\n }\n switch ( cksum_status ) {\n case CORRECT : ND_PRINT ( ( ndo , \"(correct)\" ) ) ;\n break ;\n case INCORRECT : ND_PRINT ( ( ndo , \"(incorrect)\" ) ) ;\n break ;\n case UNVERIFIED : ND_PRINT ( ( ndo , \"(unverified)\" ) ) ;\n break ;\n }\n }\n switch ( PIM_TYPE ( pim -> pim_typever ) ) {\n case PIMV2_TYPE_HELLO : {\n uint16_t otype , olen ;\n bp += 4 ;\n while ( bp < ep ) {\n ND_TCHECK2 ( bp [ 0 ] , 4 ) ;\n otype = EXTRACT_16BITS ( & bp [ 0 ] ) ;\n olen = EXTRACT_16BITS ( & bp [ 2 ] ) ;\n ND_TCHECK2 ( bp [ 0 ] , 4 + olen ) ;\n ND_PRINT ( ( ndo , \"\\n\\t %s Option (%u), length %u, Value: \" , tok2str ( pimv2_hello_option_values , \"Unknown\" , otype ) , otype , olen ) ) ;\n bp += 4 ;\n switch ( otype ) {\n case PIMV2_HELLO_OPTION_HOLDTIME : unsigned_relts_print ( ndo , EXTRACT_16BITS ( bp ) ) ;\n break ;\n case PIMV2_HELLO_OPTION_LANPRUNEDELAY : if ( olen != 4 ) {\n ND_PRINT ( ( ndo , \"ERROR: Option Length != 4 Bytes (%u)\" , olen ) ) ;\n }\n else {\n char t_bit ;\n uint16_t lan_delay , override_interval ;\n lan_delay = EXTRACT_16BITS ( bp ) ;\n override_interval = EXTRACT_16BITS ( bp + 2 ) ;\n t_bit = ( lan_delay & 0x8000 ) ? 1 : 0 ;\n lan_delay &= ~ 0x8000 ;\n ND_PRINT ( ( ndo , \"\\n\\t T-bit=%d, LAN delay %dms, Override interval %dms\" , t_bit , lan_delay , override_interval ) ) ;\n }\n break ;\n case PIMV2_HELLO_OPTION_DR_PRIORITY_OLD : case PIMV2_HELLO_OPTION_DR_PRIORITY : switch ( olen ) {\n case 0 : ND_PRINT ( ( ndo , \"Bi-Directional Capability (Old)\" ) ) ;\n break ;\n case 4 : ND_PRINT ( ( ndo , \"%u\" , EXTRACT_32BITS ( bp ) ) ) ;\n break ;\n default : ND_PRINT ( ( ndo , \"ERROR: Option Length != 4 Bytes (%u)\" , olen ) ) ;\n break ;\n }\n break ;\n case PIMV2_HELLO_OPTION_GENID : ND_PRINT ( ( ndo , \"0x%08x\" , EXTRACT_32BITS ( bp ) ) ) ;\n break ;\n case PIMV2_HELLO_OPTION_REFRESH_CAP : ND_PRINT ( ( ndo , \"v%d\" , * bp ) ) ;\n if ( * ( bp + 1 ) != 0 ) {\n ND_PRINT ( ( ndo , \", interval \" ) ) ;\n unsigned_relts_print ( ndo , * ( bp + 1 ) ) ;\n }\n if ( EXTRACT_16BITS ( bp + 2 ) != 0 ) {\n ND_PRINT ( ( ndo , \" ?0x%04x?\" , EXTRACT_16BITS ( bp + 2 ) ) ) ;\n }\n break ;\n case PIMV2_HELLO_OPTION_BIDIR_CAP : break ;\n case PIMV2_HELLO_OPTION_ADDRESS_LIST_OLD : case PIMV2_HELLO_OPTION_ADDRESS_LIST : if ( ndo -> ndo_vflag > 1 ) {\n const u_char * ptr = bp ;\n while ( ptr < ( bp + olen ) ) {\n ND_PRINT ( ( ndo , \"\\n\\t \" ) ) ;\n advance = pimv2_addr_print ( ndo , ptr , pimv2_unicast , 0 ) ;\n if ( advance < 0 ) {\n ND_PRINT ( ( ndo , \"...\" ) ) ;\n break ;\n }\n ptr += advance ;\n }\n }\n break ;\n default : if ( ndo -> ndo_vflag <= 1 ) print_unknown_data ( ndo , bp , \"\\n\\t \" , olen ) ;\n break ;\n }\n if ( ndo -> ndo_vflag > 1 ) print_unknown_data ( ndo , bp , \"\\n\\t \" , olen ) ;\n bp += olen ;\n }\n break ;\n }\n case PIMV2_TYPE_REGISTER : {\n const struct ip * ip ;\n ND_TCHECK2 ( * ( bp + 4 ) , PIMV2_REGISTER_FLAG_LEN ) ;\n ND_PRINT ( ( ndo , \", Flags [ %s ]\\n\\t\" , tok2str ( pimv2_register_flag_values , \"none\" , EXTRACT_32BITS ( bp + 4 ) ) ) ) ;\n bp += 8 ;\n len -= 8 ;\n ip = ( const struct ip * ) bp ;\n switch ( IP_V ( ip ) ) {\n case 0 : ND_PRINT ( ( ndo , \"IP-Null-header %s > %s\" , ipaddr_string ( ndo , & ip -> ip_src ) , ipaddr_string ( ndo , & ip -> ip_dst ) ) ) ;\n break ;\n case 4 : ip_print ( ndo , bp , len ) ;\n break ;\n case 6 : ip6_print ( ndo , bp , len ) ;\n break ;\n default : ND_PRINT ( ( ndo , \"IP ver %d\" , IP_V ( ip ) ) ) ;\n break ;\n }\n break ;\n }\n case PIMV2_TYPE_REGISTER_STOP : bp += 4 ;\n len -= 4 ;\n if ( bp >= ep ) break ;\n ND_PRINT ( ( ndo , \" group=\" ) ) ;\n if ( ( advance = pimv2_addr_print ( ndo , bp , pimv2_group , 0 ) ) < 0 ) {\n ND_PRINT ( ( ndo , \"...\" ) ) ;\n break ;\n }\n bp += advance ;\n len -= advance ;\n if ( bp >= ep ) break ;\n ND_PRINT ( ( ndo , \" source=\" ) ) ;\n if ( ( advance = pimv2_addr_print ( ndo , bp , pimv2_unicast , 0 ) ) < 0 ) {\n ND_PRINT ( ( ndo , \"...\" ) ) ;\n break ;\n }\n bp += advance ;\n len -= advance ;\n break ;\n case PIMV2_TYPE_JOIN_PRUNE : case PIMV2_TYPE_GRAFT : case PIMV2_TYPE_GRAFT_ACK : {\n uint8_t ngroup ;\n uint16_t holdtime ;\n uint16_t njoin ;\n uint16_t nprune ;\n int i , j ;\n bp += 4 ;\n len -= 4 ;\n if ( PIM_TYPE ( pim -> pim_typever ) != 7 ) {\n if ( bp >= ep ) break ;\n ND_PRINT ( ( ndo , \", upstream-neighbor: \" ) ) ;\n if ( ( advance = pimv2_addr_print ( ndo , bp , pimv2_unicast , 0 ) ) < 0 ) {\n ND_PRINT ( ( ndo , \"...\" ) ) ;\n break ;\n }\n bp += advance ;\n len -= advance ;\n }\n if ( bp + 4 > ep ) break ;\n ngroup = bp [ 1 ] ;\n holdtime = EXTRACT_16BITS ( & bp [ 2 ] ) ;\n ND_PRINT ( ( ndo , \"\\n\\t %u group(s)\" , ngroup ) ) ;\n if ( PIM_TYPE ( pim -> pim_typever ) != 7 ) {\n ND_PRINT ( ( ndo , \", holdtime: \" ) ) ;\n if ( holdtime == 0xffff ) ND_PRINT ( ( ndo , \"infinite\" ) ) ;\n else unsigned_relts_print ( ndo , holdtime ) ;\n }\n bp += 4 ;\n len -= 4 ;\n for ( i = 0 ;\n i < ngroup ;\n i ++ ) {\n if ( bp >= ep ) goto jp_done ;\n ND_PRINT ( ( ndo , \"\\n\\t group #%u: \" , i + 1 ) ) ;\n if ( ( advance = pimv2_addr_print ( ndo , bp , pimv2_group , 0 ) ) < 0 ) {\n ND_PRINT ( ( ndo , \"...)\" ) ) ;\n goto jp_done ;\n }\n bp += advance ;\n len -= advance ;\n if ( bp + 4 > ep ) {\n ND_PRINT ( ( ndo , \"...)\" ) ) ;\n goto jp_done ;\n }\n njoin = EXTRACT_16BITS ( & bp [ 0 ] ) ;\n nprune = EXTRACT_16BITS ( & bp [ 2 ] ) ;\n ND_PRINT ( ( ndo , \", joined sources: %u, pruned sources: %u\" , njoin , nprune ) ) ;\n bp += 4 ;\n len -= 4 ;\n for ( j = 0 ;\n j < njoin ;\n j ++ ) {\n ND_PRINT ( ( ndo , \"\\n\\t joined source #%u: \" , j + 1 ) ) ;\n if ( ( advance = pimv2_addr_print ( ndo , bp , pimv2_source , 0 ) ) < 0 ) {\n ND_PRINT ( ( ndo , \"...)\" ) ) ;\n goto jp_done ;\n }\n bp += advance ;\n len -= advance ;\n }\n for ( j = 0 ;\n j < nprune ;\n j ++ ) {\n ND_PRINT ( ( ndo , \"\\n\\t pruned source #%u: \" , j + 1 ) ) ;\n if ( ( advance = pimv2_addr_print ( ndo , bp , pimv2_source , 0 ) ) < 0 ) {\n ND_PRINT ( ( ndo , \"...)\" ) ) ;\n goto jp_done ;\n }\n bp += advance ;\n len -= advance ;\n }\n }\n jp_done : break ;\n }\n case PIMV2_TYPE_BOOTSTRAP : {\n int i , j , frpcnt ;\n bp += 4 ;\n if ( bp + sizeof ( uint16_t ) >= ep ) break ;\n ND_PRINT ( ( ndo , \" tag=%x\" , EXTRACT_16BITS ( bp ) ) ) ;\n bp += sizeof ( uint16_t ) ;\n if ( bp >= ep ) break ;\n ND_PRINT ( ( ndo , \" hashmlen=%d\" , bp [ 0 ] ) ) ;\n if ( bp + 1 >= ep ) break ;\n ND_PRINT ( ( ndo , \" BSRprio=%d\" , bp [ 1 ] ) ) ;\n bp += 2 ;\n if ( bp >= ep ) break ;\n ND_PRINT ( ( ndo , \" BSR=\" ) ) ;\n if ( ( advance = pimv2_addr_print ( ndo , bp , pimv2_unicast , 0 ) ) < 0 ) {\n ND_PRINT ( ( ndo , \"...\" ) ) ;\n break ;\n }\n bp += advance ;\n for ( i = 0 ;\n bp < ep ;\n i ++ ) {\n ND_PRINT ( ( ndo , \" (group%d: \" , i ) ) ;\n if ( ( advance = pimv2_addr_print ( ndo , bp , pimv2_group , 0 ) ) < 0 ) {\n ND_PRINT ( ( ndo , \"...)\" ) ) ;\n goto bs_done ;\n }\n bp += advance ;\n if ( bp >= ep ) {\n ND_PRINT ( ( ndo , \"...)\" ) ) ;\n goto bs_done ;\n }\n ND_PRINT ( ( ndo , \" RPcnt=%d\" , bp [ 0 ] ) ) ;\n if ( bp + 1 >= ep ) {\n ND_PRINT ( ( ndo , \"...)\" ) ) ;\n goto bs_done ;\n }\n ND_PRINT ( ( ndo , \" FRPcnt=%d\" , frpcnt = bp [ 1 ] ) ) ;\n bp += 4 ;\n for ( j = 0 ;\n j < frpcnt && bp < ep ;\n j ++ ) {\n ND_PRINT ( ( ndo , \" RP%d=\" , j ) ) ;\n if ( ( advance = pimv2_addr_print ( ndo , bp , pimv2_unicast , 0 ) ) < 0 ) {\n ND_PRINT ( ( ndo , \"...)\" ) ) ;\n goto bs_done ;\n }\n bp += advance ;\n if ( bp + 1 >= ep ) {\n ND_PRINT ( ( ndo , \"...)\" ) ) ;\n goto bs_done ;\n }\n ND_PRINT ( ( ndo , \",holdtime=\" ) ) ;\n unsigned_relts_print ( ndo , EXTRACT_16BITS ( bp ) ) ;\n if ( bp + 2 >= ep ) {\n ND_PRINT ( ( ndo , \"...)\" ) ) ;\n goto bs_done ;\n }\n ND_PRINT ( ( ndo , \",prio=%d\" , bp [ 2 ] ) ) ;\n bp += 4 ;\n }\n ND_PRINT ( ( ndo , \")\" ) ) ;\n }\n bs_done : break ;\n }\n case PIMV2_TYPE_ASSERT : bp += 4 ;\n len -= 4 ;\n if ( bp >= ep ) break ;\n ND_PRINT ( ( ndo , \" group=\" ) ) ;\n if ( ( advance = pimv2_addr_print ( ndo , bp , pimv2_group , 0 ) ) < 0 ) {\n ND_PRINT ( ( ndo , \"...\" ) ) ;\n break ;\n }\n bp += advance ;\n len -= advance ;\n if ( bp >= ep ) break ;\n ND_PRINT ( ( ndo , \" src=\" ) ) ;\n if ( ( advance = pimv2_addr_print ( ndo , bp , pimv2_unicast , 0 ) ) < 0 ) {\n ND_PRINT ( ( ndo , \"...\" ) ) ;\n break ;\n }\n bp += advance ;\n len -= advance ;\n if ( bp + 8 > ep ) break ;\n if ( bp [ 0 ] & 0x80 ) ND_PRINT ( ( ndo , \" RPT\" ) ) ;\n ND_PRINT ( ( ndo , \" pref=%u\" , EXTRACT_32BITS ( & bp [ 0 ] ) & 0x7fffffff ) ) ;\n ND_PRINT ( ( ndo , \" metric=%u\" , EXTRACT_32BITS ( & bp [ 4 ] ) ) ) ;\n break ;\n case PIMV2_TYPE_CANDIDATE_RP : {\n int i , pfxcnt ;\n bp += 4 ;\n if ( bp >= ep ) break ;\n ND_PRINT ( ( ndo , \" prefix-cnt=%d\" , bp [ 0 ] ) ) ;\n pfxcnt = bp [ 0 ] ;\n if ( bp + 1 >= ep ) break ;\n ND_PRINT ( ( ndo , \" prio=%d\" , bp [ 1 ] ) ) ;\n if ( bp + 3 >= ep ) break ;\n ND_PRINT ( ( ndo , \" holdtime=\" ) ) ;\n unsigned_relts_print ( ndo , EXTRACT_16BITS ( & bp [ 2 ] ) ) ;\n bp += 4 ;\n if ( bp >= ep ) break ;\n ND_PRINT ( ( ndo , \" RP=\" ) ) ;\n if ( ( advance = pimv2_addr_print ( ndo , bp , pimv2_unicast , 0 ) ) < 0 ) {\n ND_PRINT ( ( ndo , \"...\" ) ) ;\n break ;\n }\n bp += advance ;\n for ( i = 0 ;\n i < pfxcnt && bp < ep ;\n i ++ ) {\n ND_PRINT ( ( ndo , \" Group%d=\" , i ) ) ;\n if ( ( advance = pimv2_addr_print ( ndo , bp , pimv2_group , 0 ) ) < 0 ) {\n ND_PRINT ( ( ndo , \"...\" ) ) ;\n break ;\n }\n bp += advance ;\n }\n break ;\n }\n case PIMV2_TYPE_PRUNE_REFRESH : ND_PRINT ( ( ndo , \" src=\" ) ) ;\n if ( ( advance = pimv2_addr_print ( ndo , bp , pimv2_unicast , 0 ) ) < 0 ) {\n ND_PRINT ( ( ndo , \"...\" ) ) ;\n break ;\n }\n bp += advance ;\n ND_PRINT ( ( ndo , \" grp=\" ) ) ;\n if ( ( advance = pimv2_addr_print ( ndo , bp , pimv2_group , 0 ) ) < 0 ) {\n ND_PRINT ( ( ndo , \"...\" ) ) ;\n break ;\n }\n bp += advance ;\n ND_PRINT ( ( ndo , \" forwarder=\" ) ) ;\n if ( ( advance = pimv2_addr_print ( ndo , bp , pimv2_unicast , 0 ) ) < 0 ) {\n ND_PRINT ( ( ndo , \"...\" ) ) ;\n break ;\n }\n bp += advance ;\n ND_TCHECK2 ( bp [ 0 ] , 2 ) ;\n ND_PRINT ( ( ndo , \" TUNR \" ) ) ;\n unsigned_relts_print ( ndo , EXTRACT_16BITS ( bp ) ) ;\n break ;\n default : ND_PRINT ( ( ndo , \" [type %d]\" , PIM_TYPE ( pim -> pim_typever ) ) ) ;\n break ;\n }\n return ;\n trunc : ND_PRINT ( ( ndo , \"[|pim]\" ) ) ;\n }"}
{"idx": 18335, "target": 0, "func": "size_t _TSstrlcpy ( char * dst , const char * str , size_t siz ) {\n return ink_strlcpy ( dst , str , siz ) ;\n }"}
{"idx": 18336, "target": 1, "func": "void ff_h263_update_motion_val ( MpegEncContext * s ) {\n const int mb_xy = s -> mb_y * s -> mb_stride + s -> mb_x ;\n const int wrap = s -> b8_stride ;\n const int xy = s -> block_index [ 0 ] ;\n s -> current_picture . f . mbskip_table [ mb_xy ] = s -> mb_skipped ;\n if ( s -> mv_type != MV_TYPE_8X8 ) {\n int motion_x , motion_y ;\n if ( s -> mb_intra ) {\n motion_x = 0 ;\n motion_y = 0 ;\n }\n else if ( s -> mv_type == MV_TYPE_16X16 ) {\n motion_x = s -> mv [ 0 ] [ 0 ] [ 0 ] ;\n motion_y = s -> mv [ 0 ] [ 0 ] [ 1 ] ;\n }\n else {\n int i ;\n motion_x = s -> mv [ 0 ] [ 0 ] [ 0 ] + s -> mv [ 0 ] [ 1 ] [ 0 ] ;\n motion_y = s -> mv [ 0 ] [ 0 ] [ 1 ] + s -> mv [ 0 ] [ 1 ] [ 1 ] ;\n motion_x = ( motion_x >> 1 ) | ( motion_x & 1 ) ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n s -> p_field_mv_table [ i ] [ 0 ] [ mb_xy ] [ 0 ] = s -> mv [ 0 ] [ i ] [ 0 ] ;\n s -> p_field_mv_table [ i ] [ 0 ] [ mb_xy ] [ 1 ] = s -> mv [ 0 ] [ i ] [ 1 ] ;\n }\n s -> current_picture . f . ref_index [ 0 ] [ 4 * mb_xy ] = s -> current_picture . f . ref_index [ 0 ] [ 4 * mb_xy + 1 ] = s -> field_select [ 0 ] [ 0 ] ;\n s -> current_picture . f . ref_index [ 0 ] [ 4 * mb_xy + 2 ] = s -> current_picture . f . ref_index [ 0 ] [ 4 * mb_xy + 3 ] = s -> field_select [ 0 ] [ 1 ] ;\n }\n s -> current_picture . f . motion_val [ 0 ] [ xy ] [ 0 ] = motion_x ;\n s -> current_picture . f . motion_val [ 0 ] [ xy ] [ 1 ] = motion_y ;\n s -> current_picture . f . motion_val [ 0 ] [ xy + 1 ] [ 0 ] = motion_x ;\n s -> current_picture . f . motion_val [ 0 ] [ xy + 1 ] [ 1 ] = motion_y ;\n s -> current_picture . f . motion_val [ 0 ] [ xy + wrap ] [ 0 ] = motion_x ;\n s -> current_picture . f . motion_val [ 0 ] [ xy + wrap ] [ 1 ] = motion_y ;\n s -> current_picture . f . motion_val [ 0 ] [ xy + 1 + wrap ] [ 0 ] = motion_x ;\n s -> current_picture . f . motion_val [ 0 ] [ xy + 1 + wrap ] [ 1 ] = motion_y ;\n }\n if ( s -> encoding ) {\n if ( s -> mv_type == MV_TYPE_8X8 ) s -> current_picture . f . mb_type [ mb_xy ] = MB_TYPE_L0 | MB_TYPE_8x8 ;\n else if ( s -> mb_intra ) s -> current_picture . f . mb_type [ mb_xy ] = MB_TYPE_INTRA ;\n else s -> current_picture . f . mb_type [ mb_xy ] = MB_TYPE_L0 | MB_TYPE_16x16 ;\n }\n }"}
{"idx": 18337, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize ) ;\n DECL_PIOCTL ( PGetCacheSize ) ;\n DECL_PIOCTL ( PRemoveCallBack )"}
{"idx": 18338, "target": 0, "func": "bool TestSelectAll ( const std : : string & html ) {\n ContextMenuWebFrameClient frame ;\n FrameTestHelpers : : WebViewHelper web_view_helper ;\n WebViewImpl * web_view = web_view_helper . Initialize ( & frame ) ;\n FrameTestHelpers : : LoadHTMLString ( web_view -> MainFrameImpl ( ) , html , ToKURL ( \"about:blank\" ) ) ;\n web_view -> Resize ( WebSize ( 500 , 300 ) ) ;\n web_view -> UpdateAllLifecyclePhases ( ) ;\n RunPendingTasks ( ) ;\n web_view -> SetInitialFocus ( false ) ;\n RunPendingTasks ( ) ;\n WebMouseEvent mouse_event ( WebInputEvent : : kMouseDown , WebInputEvent : : kNoModifiers , WebInputEvent : : GetStaticTimeStampForTests ( ) ) ;\n mouse_event . button = WebMouseEvent : : Button : : kRight ;\n mouse_event . SetPositionInWidget ( 8 , 8 ) ;\n mouse_event . click_count = 1 ;\n web_view -> HandleInputEvent ( WebCoalescedInputEvent ( mouse_event ) ) ;\n RunPendingTasks ( ) ;\n web_view_helper . Reset ( ) ;\n return frame . GetMenuData ( ) . edit_flags & WebContextMenuData : : kCanSelectAll ;\n }"}
{"idx": 18339, "target": 0, "func": "static int infer_pkt_encap ( const guint8 * pd , int len ) {\n int i ;\n if ( len <= 0 ) {\n return WTAP_ENCAP_PPP_WITH_PHDR ;\n }\n if ( pd [ 0 ] == 0xFF ) {\n return WTAP_ENCAP_PPP_WITH_PHDR ;\n }\n if ( len >= 2 ) {\n if ( pd [ 0 ] == 0x07 && pd [ 1 ] == 0x03 ) {\n return WTAP_ENCAP_WFLEET_HDLC ;\n }\n else if ( ( pd [ 0 ] == 0x0F && pd [ 1 ] == 0x00 ) || ( pd [ 0 ] == 0x8F && pd [ 1 ] == 0x00 ) ) {\n return WTAP_ENCAP_CHDLC_WITH_PHDR ;\n }\n for ( i = 0 ;\n i < len && ( pd [ i ] & 0x01 ) == 0 ;\n i ++ ) ;\n i ++ ;\n if ( i == len ) {\n return WTAP_ENCAP_LAPB ;\n }\n if ( pd [ i ] == 0x03 ) return WTAP_ENCAP_FRELAY_WITH_PHDR ;\n }\n return WTAP_ENCAP_LAPB ;\n }"}
{"idx": 18340, "target": 0, "func": "static size_t readmoredata ( char * buffer , size_t size , size_t nitems , void * userp ) {\n struct connectdata * conn = ( struct connectdata * ) userp ;\n struct HTTP * http = conn -> data -> req . protop ;\n size_t fullsize = size * nitems ;\n if ( ! http -> postsize ) return 0 ;\n conn -> data -> req . forbidchunk = ( http -> sending == HTTPSEND_REQUEST ) ? TRUE : FALSE ;\n if ( http -> postsize <= ( curl_off_t ) fullsize ) {\n memcpy ( buffer , http -> postdata , ( size_t ) http -> postsize ) ;\n fullsize = ( size_t ) http -> postsize ;\n if ( http -> backup . postsize ) {\n http -> postdata = http -> backup . postdata ;\n http -> postsize = http -> backup . postsize ;\n conn -> data -> state . fread_func = http -> backup . fread_func ;\n conn -> data -> state . in = http -> backup . fread_in ;\n http -> sending ++ ;\n http -> backup . postsize = 0 ;\n }\n else http -> postsize = 0 ;\n return fullsize ;\n }\n memcpy ( buffer , http -> postdata , fullsize ) ;\n http -> postdata += fullsize ;\n http -> postsize -= fullsize ;\n return fullsize ;\n }"}
{"idx": 18341, "target": 0, "func": "int PEM_write_ ## name ( FILE * fp , type * x ) ;\n # define DECLARE_PEM_write_fp_const ( name , type ) int PEM_write_ ## name ( FILE * fp , const type * x ) ;\n # define DECLARE_PEM_write_cb_fp ( name , type ) int PEM_write_ ## name ( FILE * fp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # endif # define DECLARE_PEM_read_bio ( name , type ) type * PEM_read_bio_ ## name ( BIO * bp , type * * x , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL ) DECLARE_PEM_rw ( PKCS7 , PKCS7 ) DECLARE_PEM_rw ( NETSCAPE_CERT_SEQUENCE , NETSCAPE_CERT_SEQUENCE ) DECLARE_PEM_rw ( PKCS8 , X509_SIG ) DECLARE_PEM_rw ( PKCS8_PRIV_KEY_INFO , PKCS8_PRIV_KEY_INFO ) # ifndef OPENSSL_NO_RSA DECLARE_PEM_rw_cb ( RSAPrivateKey , RSA ) DECLARE_PEM_rw_const ( RSAPublicKey , RSA ) DECLARE_PEM_rw ( RSA_PUBKEY , RSA ) # endif # ifndef OPENSSL_NO_DSA DECLARE_PEM_rw_cb ( DSAPrivateKey , DSA ) DECLARE_PEM_rw ( DSA_PUBKEY , DSA )"}
{"idx": 18342, "target": 0, "func": "static uint32_t e1000e_mac_low ## num ## _read ( E1000ECore * core , int index ) {\n return core -> mac [ index ] & ( BIT ( num ) - 1 ) ;\n }\n # define E1000E_LOW_BITS_READ ( num ) e1000e_mac_low ## num ## _read E1000E_LOW_BITS_READ_FUNC ( 4 ) ;\n E1000E_LOW_BITS_READ_FUNC ( 6 )"}
{"idx": 18343, "target": 1, "func": "static char * CreateHtmlSubtitle ( int * pi_align , char * psz_subtitle ) {\n char * psz_tag = malloc ( 1 ) ;\n if ( psz_tag == NULL ) return NULL ;\n char * psz_html = malloc ( 1 ) ;\n if ( psz_html == NULL ) {\n free ( psz_tag ) ;\n return NULL ;\n }\n psz_tag [ 0 ] = '\\0' ;\n psz_html [ 0 ] = '\\0' ;\n bool b_has_align = false ;\n HtmlPut ( & psz_html , \"<text>\" ) ;\n while ( * psz_subtitle ) {\n if ( * psz_subtitle == '\\n' ) {\n HtmlPut ( & psz_html , \"<br/>\" ) ;\n psz_subtitle ++ ;\n }\n else if ( * psz_subtitle == '<' ) {\n if ( ! strncasecmp ( psz_subtitle , \"<br/>\" , 5 ) ) {\n HtmlCopy ( & psz_html , & psz_subtitle , \"<br/>\" ) ;\n }\n else if ( ! strncasecmp ( psz_subtitle , \"<b>\" , 3 ) ) {\n HtmlCopy ( & psz_html , & psz_subtitle , \"<b>\" ) ;\n HtmlPut ( & psz_tag , \"b\" ) ;\n }\n else if ( ! strncasecmp ( psz_subtitle , \"<i>\" , 3 ) ) {\n HtmlCopy ( & psz_html , & psz_subtitle , \"<i>\" ) ;\n HtmlPut ( & psz_tag , \"i\" ) ;\n }\n else if ( ! strncasecmp ( psz_subtitle , \"<u>\" , 3 ) ) {\n HtmlCopy ( & psz_html , & psz_subtitle , \"<u>\" ) ;\n HtmlPut ( & psz_tag , \"u\" ) ;\n }\n else if ( ! strncasecmp ( psz_subtitle , \"<s>\" , 3 ) ) {\n HtmlCopy ( & psz_html , & psz_subtitle , \"<s>\" ) ;\n HtmlPut ( & psz_tag , \"s\" ) ;\n }\n else if ( ! strncasecmp ( psz_subtitle , \"<font \" , 6 ) ) {\n const char * psz_attribs [ ] = {\n \"face=\" , \"family=\" , \"size=\" , \"color=\" , \"outline-color=\" , \"shadow-color=\" , \"outline-level=\" , \"shadow-level=\" , \"back-color=\" , \"alpha=\" , NULL }\n ;\n HtmlCopy ( & psz_html , & psz_subtitle , \"<font \" ) ;\n HtmlPut ( & psz_tag , \"f\" ) ;\n while ( * psz_subtitle != '>' ) {\n int k ;\n while ( * psz_subtitle == ' ' ) psz_subtitle ++ ;\n for ( k = 0 ;\n psz_attribs [ k ] ;\n k ++ ) {\n int i_len = strlen ( psz_attribs [ k ] ) ;\n if ( ! strncasecmp ( psz_subtitle , psz_attribs [ k ] , i_len ) ) {\n HtmlPut ( & psz_html , psz_attribs [ k ] ) ;\n psz_subtitle += i_len ;\n while ( * psz_subtitle == ' ' ) psz_subtitle ++ ;\n if ( * psz_subtitle == '\"' ) {\n psz_subtitle ++ ;\n i_len = strcspn ( psz_subtitle , \"\\\"\" ) ;\n }\n else if ( * psz_subtitle == '\\'' ) {\n psz_subtitle ++ ;\n i_len = strcspn ( psz_subtitle , \"'\" ) ;\n }\n else {\n i_len = strcspn ( psz_subtitle , \" \\t>\" ) ;\n }\n HtmlPut ( & psz_html , \"\\\"\" ) ;\n HtmlNPut ( & psz_html , psz_subtitle , i_len ) ;\n HtmlPut ( & psz_html , \"\\\"\" ) ;\n psz_subtitle += i_len ;\n if ( * psz_subtitle == '\\\"' || * psz_subtitle == '\\'' ) psz_subtitle ++ ;\n break ;\n }\n }\n if ( psz_attribs [ k ] == NULL ) {\n int i_len = strcspn ( psz_subtitle , \"\\\"\" ) ;\n if ( psz_subtitle [ i_len ] == '\\\"' ) {\n i_len += 1 + strcspn ( & psz_subtitle [ i_len + 1 ] , \"\\\"\" ) ;\n if ( psz_subtitle [ i_len ] == '\\\"' ) i_len ++ ;\n }\n if ( i_len == 0 ) psz_subtitle ++ ;\n psz_subtitle += i_len ;\n }\n HtmlNPut ( & psz_html , psz_subtitle , strspn ( psz_subtitle , \" \" ) ) ;\n }\n HtmlPut ( & psz_html , \">\" ) ;\n psz_subtitle ++ ;\n }\n else if ( ! strncmp ( psz_subtitle , \"</\" , 2 ) ) {\n bool b_match = false ;\n bool b_ignore = false ;\n int i_len = ( psz_tag ? strlen ( psz_tag ) : 0 ) - 1 ;\n char * psz_lastTag = NULL ;\n if ( i_len >= 0 ) {\n psz_lastTag = psz_tag + i_len ;\n i_len = 0 ;\n switch ( * psz_lastTag ) {\n case 'b' : b_match = ! strncasecmp ( psz_subtitle , \"</b>\" , 4 ) ;\n i_len = 4 ;\n break ;\n case 'i' : b_match = ! strncasecmp ( psz_subtitle , \"</i>\" , 4 ) ;\n i_len = 4 ;\n break ;\n case 'u' : b_match = ! strncasecmp ( psz_subtitle , \"</u>\" , 4 ) ;\n i_len = 4 ;\n break ;\n case 's' : b_match = ! strncasecmp ( psz_subtitle , \"</s>\" , 4 ) ;\n i_len = 4 ;\n break ;\n case 'f' : b_match = ! strncasecmp ( psz_subtitle , \"</font>\" , 7 ) ;\n i_len = 7 ;\n break ;\n case 'I' : i_len = strcspn ( psz_subtitle , \">\" ) ;\n b_match = psz_subtitle [ i_len ] == '>' ;\n b_ignore = true ;\n if ( b_match ) i_len ++ ;\n break ;\n }\n }\n if ( ! b_match ) {\n free ( psz_html ) ;\n psz_html = NULL ;\n break ;\n }\n * psz_lastTag = '\\0' ;\n if ( ! b_ignore ) HtmlNPut ( & psz_html , psz_subtitle , i_len ) ;\n psz_subtitle += i_len ;\n }\n else if ( ( psz_subtitle [ 1 ] < 'a' || psz_subtitle [ 1 ] > 'z' ) && ( psz_subtitle [ 1 ] < 'A' || psz_subtitle [ 1 ] > 'Z' ) ) {\n HtmlPut ( & psz_html , \"&lt;\n\" ) ;\n psz_subtitle ++ ;\n }\n else {\n char * psz_stop = psz_subtitle + 1 + strcspn ( & psz_subtitle [ 1 ] , \"<>\" ) ;\n char * psz_closing = strstr ( psz_subtitle , \"/>\" ) ;\n if ( psz_closing && psz_closing < psz_stop ) {\n psz_subtitle = & psz_closing [ 2 ] ;\n }\n else if ( * psz_stop == '>' ) {\n char psz_match [ 256 ] ;\n snprintf ( psz_match , sizeof ( psz_match ) , \"</%s\" , & psz_subtitle [ 1 ] ) ;\n psz_match [ strcspn ( psz_match , \" \\t>\" ) ] = '\\0' ;\n if ( strstr ( psz_subtitle , psz_match ) ) {\n psz_subtitle = & psz_stop [ 1 ] ;\n HtmlPut ( & psz_tag , \"I\" ) ;\n }\n else {\n int i_len = psz_stop + 1 - psz_subtitle ;\n for ( ;\n i_len > 0 ;\n i_len -- , psz_subtitle ++ ) {\n if ( * psz_subtitle == '<' ) HtmlPut ( & psz_html , \"&lt;\n\" ) ;\n else if ( * psz_subtitle == '>' ) HtmlPut ( & psz_html , \"&gt;\n\" ) ;\n else HtmlNPut ( & psz_html , psz_subtitle , 1 ) ;\n }\n }\n }\n else {\n HtmlPut ( & psz_html , \"&lt;\n\" ) ;\n psz_subtitle ++ ;\n }\n }\n }\n else if ( * psz_subtitle == '&' ) {\n if ( ! strncasecmp ( psz_subtitle , \"&lt;\n\" , 4 ) ) {\n HtmlCopy ( & psz_html , & psz_subtitle , \"&lt;\n\" ) ;\n }\n else if ( ! strncasecmp ( psz_subtitle , \"&gt;\n\" , 4 ) ) {\n HtmlCopy ( & psz_html , & psz_subtitle , \"&gt;\n\" ) ;\n }\n else if ( ! strncasecmp ( psz_subtitle , \"&amp;\n\" , 5 ) ) {\n HtmlCopy ( & psz_html , & psz_subtitle , \"&amp;\n\" ) ;\n }\n else {\n HtmlPut ( & psz_html , \"&amp;\n\" ) ;\n psz_subtitle ++ ;\n }\n }\n else if ( * psz_subtitle == '>' ) {\n HtmlPut ( & psz_html , \"&gt;\n\" ) ;\n psz_subtitle ++ ;\n }\n else if ( psz_subtitle [ 0 ] == '{\n' && psz_subtitle [ 1 ] == '\\\\' && strchr ( psz_subtitle , '}\n' ) ) {\n if ( ! b_has_align && ! strncmp ( psz_subtitle , \"{\n\\\\an\" , 4 ) && psz_subtitle [ 4 ] >= '1' && psz_subtitle [ 4 ] <= '9' && psz_subtitle [ 5 ] == '}\n' ) {\n static const int pi_vertical [ 3 ] = {\n SUBPICTURE_ALIGN_BOTTOM , 0 , SUBPICTURE_ALIGN_TOP }\n ;\n static const int pi_horizontal [ 3 ] = {\n SUBPICTURE_ALIGN_LEFT , 0 , SUBPICTURE_ALIGN_RIGHT }\n ;\n const int i_id = psz_subtitle [ 4 ] - '1' ;\n b_has_align = true ;\n * pi_align = pi_vertical [ i_id / 3 ] | pi_horizontal [ i_id % 3 ] ;\n }\n psz_subtitle = strchr ( psz_subtitle , '}\n' ) + 1 ;\n }\n else if ( psz_subtitle [ 0 ] == '{\n' && ( psz_subtitle [ 1 ] == 'Y' || psz_subtitle [ 1 ] == 'y' ) && psz_subtitle [ 2 ] == ':' && strchr ( psz_subtitle , '}\n' ) ) {\n if ( psz_subtitle [ 3 ] == 'i' ) {\n HtmlPut ( & psz_html , \"<i>\" ) ;\n HtmlPut ( & psz_tag , \"i\" ) ;\n }\n if ( psz_subtitle [ 3 ] == 'b' ) {\n HtmlPut ( & psz_html , \"<b>\" ) ;\n HtmlPut ( & psz_tag , \"b\" ) ;\n }\n if ( psz_subtitle [ 3 ] == 'u' ) {\n HtmlPut ( & psz_html , \"<u>\" ) ;\n HtmlPut ( & psz_tag , \"u\" ) ;\n }\n psz_subtitle = strchr ( psz_subtitle , '}\n' ) + 1 ;\n }\n else if ( psz_subtitle [ 0 ] == '{\n' && psz_subtitle [ 2 ] == ':' && strchr ( psz_subtitle , '}\n' ) ) {\n psz_subtitle = strchr ( psz_subtitle , '}\n' ) + 1 ;\n }\n else if ( psz_subtitle [ 0 ] == '\\\\' && psz_subtitle [ 1 ] ) {\n if ( psz_subtitle [ 1 ] == 'N' || psz_subtitle [ 1 ] == 'n' ) {\n HtmlPut ( & psz_html , \"<br/>\" ) ;\n psz_subtitle += 2 ;\n }\n else if ( psz_subtitle [ 1 ] == 'h' ) {\n HtmlPut ( & psz_html , NO_BREAKING_SPACE ) ;\n psz_subtitle += 2 ;\n }\n else {\n HtmlPut ( & psz_html , \"\\\\\" ) ;\n psz_subtitle ++ ;\n }\n }\n else {\n HtmlNPut ( & psz_html , psz_subtitle , 1 ) ;\n # if 0 if ( * psz_html ) {\n # error This test does not make sense . if ( ( * psz_html == ' ' || * psz_html == '\\t' ) && ( * ( psz_html - 1 ) == ' ' || * ( psz_html - 1 ) == '\\t' ) ) {\n HtmlPut ( & psz_html , NO_BREAKING_SPACE ) ;\n psz_html -- ;\n }\n }\n # endif psz_subtitle ++ ;\n }\n }\n while ( psz_tag && * psz_tag ) {\n char * psz_last = & psz_tag [ strlen ( psz_tag ) - 1 ] ;\n switch ( * psz_last ) {\n case 'b' : HtmlPut ( & psz_html , \"</b>\" ) ;\n break ;\n case 'i' : HtmlPut ( & psz_html , \"</i>\" ) ;\n break ;\n case 'u' : HtmlPut ( & psz_html , \"</u>\" ) ;\n break ;\n case 's' : HtmlPut ( & psz_html , \"</s>\" ) ;\n break ;\n case 'f' : HtmlPut ( & psz_html , \"</font>\" ) ;\n break ;\n case 'I' : break ;\n }\n * psz_last = '\\0' ;\n }\n HtmlPut ( & psz_html , \"</text>\" ) ;\n free ( psz_tag ) ;\n return psz_html ;\n }"}
{"idx": 18344, "target": 0, "func": "int ff_mpeg4_get_video_packet_prefix_length ( MpegEncContext * s ) {\n switch ( s -> pict_type ) {\n case AV_PICTURE_TYPE_I : return 16 ;\n case AV_PICTURE_TYPE_P : case AV_PICTURE_TYPE_S : return s -> f_code + 15 ;\n case AV_PICTURE_TYPE_B : return FFMAX3 ( s -> f_code , s -> b_code , 2 ) + 15 ;\n default : return - 1 ;\n }\n }"}
{"idx": 18345, "target": 0, "func": "void input_DecoderStartWait ( decoder_t * p_dec ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n vlc_mutex_lock ( & p_owner -> lock ) ;\n DecoderFlush ( p_dec ) ;\n p_owner -> b_first = true ;\n p_owner -> b_has_data = false ;\n p_owner -> b_waiting = true ;\n vlc_cond_signal ( & p_owner -> wait_request ) ;\n vlc_mutex_unlock ( & p_owner -> lock ) ;\n }"}
{"idx": 18346, "target": 0, "func": "static CURLcode AddFormDataf ( struct FormData * * formp , curl_off_t * size , const char * fmt , ... ) {\n char s [ 4096 ] ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n vsnprintf ( s , sizeof ( s ) , fmt , ap ) ;\n va_end ( ap ) ;\n return AddFormData ( formp , FORM_DATA , s , 0 , size ) ;\n }"}
{"idx": 18347, "target": 1, "func": "static int encode_picture_lossless ( AVCodecContext * avctx , AVPacket * pkt , const AVFrame * pict , int * got_packet ) {\n MpegEncContext * const s = avctx -> priv_data ;\n MJpegContext * const m = s -> mjpeg_ctx ;\n const int width = s -> width ;\n const int height = s -> height ;\n AVFrame * const p = & s -> current_picture . f ;\n const int predictor = avctx -> prediction_method + 1 ;\n const int mb_width = ( width + s -> mjpeg_hsample [ 0 ] - 1 ) / s -> mjpeg_hsample [ 0 ] ;\n const int mb_height = ( height + s -> mjpeg_vsample [ 0 ] - 1 ) / s -> mjpeg_vsample [ 0 ] ;\n int ret , max_pkt_size = FF_MIN_BUFFER_SIZE ;\n if ( avctx -> pix_fmt == AV_PIX_FMT_BGRA ) max_pkt_size += width * height * 3 * 4 ;\n else {\n max_pkt_size += mb_width * mb_height * 3 * 4 * s -> mjpeg_hsample [ 0 ] * s -> mjpeg_vsample [ 0 ] ;\n }\n if ( ( ret = ff_alloc_packet ( pkt , max_pkt_size ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error getting output packet of size %d.\\n\" , max_pkt_size ) ;\n return ret ;\n }\n init_put_bits ( & s -> pb , pkt -> data , pkt -> size ) ;\n * p = * pict ;\n p -> pict_type = AV_PICTURE_TYPE_I ;\n p -> key_frame = 1 ;\n ff_mjpeg_encode_picture_header ( s ) ;\n s -> header_bits = put_bits_count ( & s -> pb ) ;\n if ( avctx -> pix_fmt == AV_PIX_FMT_BGRA ) {\n int x , y , i ;\n const int linesize = p -> linesize [ 0 ] ;\n uint16_t ( * buffer ) [ 4 ] = ( void * ) s -> rd_scratchpad ;\n int left [ 3 ] , top [ 3 ] , topleft [ 3 ] ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n buffer [ 0 ] [ i ] = 1 << ( 9 - 1 ) ;\n }\n for ( y = 0 ;\n y < height ;\n y ++ ) {\n const int modified_predictor = y ? predictor : 1 ;\n uint8_t * ptr = p -> data [ 0 ] + ( linesize * y ) ;\n if ( s -> pb . buf_end - s -> pb . buf - ( put_bits_count ( & s -> pb ) >> 3 ) < width * 3 * 4 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"encoded frame too large\\n\" ) ;\n return - 1 ;\n }\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n top [ i ] = left [ i ] = topleft [ i ] = buffer [ 0 ] [ i ] ;\n }\n for ( x = 0 ;\n x < width ;\n x ++ ) {\n buffer [ x ] [ 1 ] = ptr [ 4 * x + 0 ] - ptr [ 4 * x + 1 ] + 0x100 ;\n buffer [ x ] [ 2 ] = ptr [ 4 * x + 2 ] - ptr [ 4 * x + 1 ] + 0x100 ;\n buffer [ x ] [ 0 ] = ( ptr [ 4 * x + 0 ] + 2 * ptr [ 4 * x + 1 ] + ptr [ 4 * x + 2 ] ) >> 2 ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n int pred , diff ;\n PREDICT ( pred , topleft [ i ] , top [ i ] , left [ i ] , modified_predictor ) ;\n topleft [ i ] = top [ i ] ;\n top [ i ] = buffer [ x + 1 ] [ i ] ;\n left [ i ] = buffer [ x ] [ i ] ;\n diff = ( ( left [ i ] - pred + 0x100 ) & 0x1FF ) - 0x100 ;\n if ( i == 0 ) ff_mjpeg_encode_dc ( s , diff , m -> huff_size_dc_luminance , m -> huff_code_dc_luminance ) ;\n else ff_mjpeg_encode_dc ( s , diff , m -> huff_size_dc_chrominance , m -> huff_code_dc_chrominance ) ;\n }\n }\n }\n }\n else {\n int mb_x , mb_y , i ;\n for ( mb_y = 0 ;\n mb_y < mb_height ;\n mb_y ++ ) {\n if ( s -> pb . buf_end - s -> pb . buf - ( put_bits_count ( & s -> pb ) >> 3 ) < mb_width * 4 * 3 * s -> mjpeg_hsample [ 0 ] * s -> mjpeg_vsample [ 0 ] ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"encoded frame too large\\n\" ) ;\n return - 1 ;\n }\n for ( mb_x = 0 ;\n mb_x < mb_width ;\n mb_x ++ ) {\n if ( mb_x == 0 || mb_y == 0 ) {\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n uint8_t * ptr ;\n int x , y , h , v , linesize ;\n h = s -> mjpeg_hsample [ i ] ;\n v = s -> mjpeg_vsample [ i ] ;\n linesize = p -> linesize [ i ] ;\n for ( y = 0 ;\n y < v ;\n y ++ ) {\n for ( x = 0 ;\n x < h ;\n x ++ ) {\n int pred ;\n ptr = p -> data [ i ] + ( linesize * ( v * mb_y + y ) ) + ( h * mb_x + x ) ;\n if ( y == 0 && mb_y == 0 ) {\n if ( x == 0 && mb_x == 0 ) {\n pred = 128 ;\n }\n else {\n pred = ptr [ - 1 ] ;\n }\n }\n else {\n if ( x == 0 && mb_x == 0 ) {\n pred = ptr [ - linesize ] ;\n }\n else {\n PREDICT ( pred , ptr [ - linesize - 1 ] , ptr [ - linesize ] , ptr [ - 1 ] , predictor ) ;\n }\n }\n if ( i == 0 ) ff_mjpeg_encode_dc ( s , * ptr - pred , m -> huff_size_dc_luminance , m -> huff_code_dc_luminance ) ;\n else ff_mjpeg_encode_dc ( s , * ptr - pred , m -> huff_size_dc_chrominance , m -> huff_code_dc_chrominance ) ;\n }\n }\n }\n }\n else {\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n uint8_t * ptr ;\n int x , y , h , v , linesize ;\n h = s -> mjpeg_hsample [ i ] ;\n v = s -> mjpeg_vsample [ i ] ;\n linesize = p -> linesize [ i ] ;\n for ( y = 0 ;\n y < v ;\n y ++ ) {\n for ( x = 0 ;\n x < h ;\n x ++ ) {\n int pred ;\n ptr = p -> data [ i ] + ( linesize * ( v * mb_y + y ) ) + ( h * mb_x + x ) ;\n PREDICT ( pred , ptr [ - linesize - 1 ] , ptr [ - linesize ] , ptr [ - 1 ] , predictor ) ;\n if ( i == 0 ) ff_mjpeg_encode_dc ( s , * ptr - pred , m -> huff_size_dc_luminance , m -> huff_code_dc_luminance ) ;\n else ff_mjpeg_encode_dc ( s , * ptr - pred , m -> huff_size_dc_chrominance , m -> huff_code_dc_chrominance ) ;\n }\n }\n }\n }\n }\n }\n }\n emms_c ( ) ;\n ff_mjpeg_encode_picture_trailer ( s ) ;\n s -> picture_number ++ ;\n flush_put_bits ( & s -> pb ) ;\n pkt -> size = put_bits_ptr ( & s -> pb ) - s -> pb . buf ;\n pkt -> flags |= AV_PKT_FLAG_KEY ;\n * got_packet = 1 ;\n return 0 ;\n }"}
{"idx": 18348, "target": 0, "func": "TSCacheHttpInfo TSCacheHttpInfoCreate ( void ) {\n CacheHTTPInfo * info = new CacheHTTPInfo ;\n info -> create ( ) ;\n return reinterpret_cast < TSCacheHttpInfo > ( info ) ;\n }"}
{"idx": 18349, "target": 0, "func": "MPI mpi_set_opaque ( MPI a , void * p , unsigned int len ) {\n if ( ! a ) {\n # ifdef M_DEBUG a = mpi_debug_alloc ( 0 , \"alloc_opaque\" ) ;\n # else a = mpi_alloc ( 0 ) ;\n # endif }\n if ( a -> flags & 4 ) xfree ( a -> d ) ;\n else {\n # ifdef M_DEBUG mpi_debug_free_limb_space ( a -> d , \"alloc_opaque\" ) ;\n # else mpi_free_limb_space ( a -> d ) ;\n # endif }\n a -> d = p ;\n a -> alloced = 0 ;\n a -> nlimbs = 0 ;\n a -> nbits = len ;\n a -> flags = 4 ;\n return a ;\n }"}
{"idx": 18350, "target": 0, "func": "static int dissect_zbee_zcl_basic ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n zbee_zcl_packet * zcl ;\n guint offset = 0 ;\n guint8 cmd_id ;\n if ( data == NULL ) return 0 ;\n zcl = ( zbee_zcl_packet * ) data ;\n cmd_id = zcl -> cmd_id ;\n if ( zcl -> direction == ZBEE_ZCL_FCF_TO_SERVER ) {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"%s, Seq: %u\" , val_to_str_const ( cmd_id , zbee_zcl_basic_srv_rx_cmd_names , \"Unknown Command\" ) , zcl -> tran_seqno ) ;\n if ( tree ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_basic_srv_rx_cmd_id , tvb , offset , 1 , cmd_id ) ;\n }\n switch ( cmd_id ) {\n case ZBEE_ZCL_CMD_ID_BASIC_RESET_FACTORY_DEFAULTS : break ;\n default : break ;\n }\n }\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 18351, "target": 0, "func": "static int parse_exthdrs ( struct sk_buff * skb , const struct sadb_msg * hdr , void * * ext_hdrs ) {\n const char * p = ( char * ) hdr ;\n int len = skb -> len ;\n len -= sizeof ( * hdr ) ;\n p += sizeof ( * hdr ) ;\n while ( len > 0 ) {\n const struct sadb_ext * ehdr = ( const struct sadb_ext * ) p ;\n uint16_t ext_type ;\n int ext_len ;\n ext_len = ehdr -> sadb_ext_len ;\n ext_len *= sizeof ( uint64_t ) ;\n ext_type = ehdr -> sadb_ext_type ;\n if ( ext_len < sizeof ( uint64_t ) || ext_len > len || ext_type == SADB_EXT_RESERVED ) return - EINVAL ;\n if ( ext_type <= SADB_EXT_MAX ) {\n int min = ( int ) sadb_ext_min_len [ ext_type ] ;\n if ( ext_len < min ) return - EINVAL ;\n if ( ext_hdrs [ ext_type - 1 ] != NULL ) return - EINVAL ;\n if ( ext_type == SADB_EXT_ADDRESS_SRC || ext_type == SADB_EXT_ADDRESS_DST || ext_type == SADB_EXT_ADDRESS_PROXY || ext_type == SADB_X_EXT_NAT_T_OA ) {\n if ( verify_address_len ( p ) ) return - EINVAL ;\n }\n if ( ext_type == SADB_X_EXT_SEC_CTX ) {\n if ( verify_sec_ctx_len ( p ) ) return - EINVAL ;\n }\n ext_hdrs [ ext_type - 1 ] = ( void * ) p ;\n }\n p += ext_len ;\n len -= ext_len ;\n }\n return 0 ;\n }"}
{"idx": 18352, "target": 0, "func": "int qemuMonitorTextAddDrive ( qemuMonitorPtr mon , const char * drivestr ) {\n char * cmd = NULL ;\n char * reply = NULL ;\n int ret = - 1 ;\n char * safe_str ;\n safe_str = qemuMonitorEscapeArg ( drivestr ) ;\n if ( ! safe_str ) {\n virReportOOMError ( ) ;\n return - 1 ;\n }\n if ( virAsprintf ( & cmd , \"drive_add dummy %s\" , safe_str ) < 0 ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"failed to add drive '%s'\" ) , drivestr ) ;\n goto cleanup ;\n }\n if ( strstr ( reply , \"unknown command:\" ) ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , _ ( \"drive hotplug is not supported\" ) ) ;\n goto cleanup ;\n }\n if ( strstr ( reply , \"could not open disk image\" ) ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , _ ( \"open disk image file failed\" ) ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( cmd ) ;\n VIR_FREE ( reply ) ;\n VIR_FREE ( safe_str ) ;\n return ret ;\n }"}
{"idx": 18353, "target": 0, "func": "static FT_Error parse_dict ( T1_Face face , T1_Loader loader , FT_Byte * base , FT_Long size ) {\n T1_Parser parser = & loader -> parser ;\n FT_Byte * limit , * start_binary = NULL ;\n FT_Bool have_integer = 0 ;\n parser -> root . cursor = base ;\n parser -> root . limit = base + size ;\n parser -> root . error = FT_Err_Ok ;\n limit = parser -> root . limit ;\n T1_Skip_Spaces ( parser ) ;\n while ( parser -> root . cursor < limit ) {\n FT_Byte * cur ;\n cur = parser -> root . cursor ;\n if ( IS_PS_TOKEN ( cur , limit , \"eexec\" ) ) break ;\n else if ( IS_PS_TOKEN ( cur , limit , \"closefile\" ) ) break ;\n else if ( IS_PS_TOKEN ( cur , limit , \"FontDirectory\" ) ) {\n if ( loader -> keywords_encountered & T1_PRIVATE ) loader -> keywords_encountered |= T1_FONTDIR_AFTER_PRIVATE ;\n parser -> root . cursor += 13 ;\n }\n else if ( ft_isdigit ( * cur ) ) {\n start_binary = cur ;\n T1_Skip_PS_Token ( parser ) ;\n if ( parser -> root . error ) goto Exit ;\n have_integer = 1 ;\n }\n else if ( * cur == 'R' && cur + 6 < limit && * ( cur + 1 ) == 'D' && have_integer ) {\n FT_Long s ;\n FT_Byte * b ;\n parser -> root . cursor = start_binary ;\n if ( ! read_binary_data ( parser , & s , & b , IS_INCREMENTAL ) ) return FT_THROW ( Invalid_File_Format ) ;\n have_integer = 0 ;\n }\n else if ( * cur == '-' && cur + 6 < limit && * ( cur + 1 ) == '|' && have_integer ) {\n FT_Long s ;\n FT_Byte * b ;\n parser -> root . cursor = start_binary ;\n if ( ! read_binary_data ( parser , & s , & b , IS_INCREMENTAL ) ) return FT_THROW ( Invalid_File_Format ) ;\n have_integer = 0 ;\n }\n else if ( * cur == '/' && cur + 2 < limit ) {\n FT_PtrDist len ;\n cur ++ ;\n parser -> root . cursor = cur ;\n T1_Skip_PS_Token ( parser ) ;\n if ( parser -> root . error ) goto Exit ;\n len = parser -> root . cursor - cur ;\n if ( len > 0 && len < 22 && parser -> root . cursor < limit ) {\n T1_Field keyword = ( T1_Field ) t1_keywords ;\n for ( ;\n ;\n ) {\n FT_Byte * name ;\n name = ( FT_Byte * ) keyword -> ident ;\n if ( ! name ) break ;\n if ( cur [ 0 ] == name [ 0 ] && len == ( FT_PtrDist ) ft_strlen ( ( const char * ) name ) && ft_memcmp ( cur , name , len ) == 0 ) {\n const FT_UInt dict = ( loader -> keywords_encountered & T1_PRIVATE ) ? T1_FIELD_DICT_PRIVATE : T1_FIELD_DICT_FONTDICT ;\n if ( ! ( dict & keyword -> dict ) ) {\n FT_TRACE1 ( ( \"parse_dict: found `%s' but ignoring it\" \" since it is in the wrong dictionary\\n\" , keyword -> ident ) ) ;\n break ;\n }\n if ( ! ( loader -> keywords_encountered & T1_FONTDIR_AFTER_PRIVATE ) || ft_strcmp ( ( const char * ) name , \"CharStrings\" ) == 0 ) {\n parser -> root . error = t1_load_keyword ( face , loader , keyword ) ;\n if ( parser -> root . error != FT_Err_Ok ) {\n if ( FT_ERR_EQ ( parser -> root . error , Ignore ) ) parser -> root . error = FT_Err_Ok ;\n else return parser -> root . error ;\n }\n }\n break ;\n }\n keyword ++ ;\n }\n }\n have_integer = 0 ;\n }\n else {\n T1_Skip_PS_Token ( parser ) ;\n if ( parser -> root . error ) goto Exit ;\n have_integer = 0 ;\n }\n T1_Skip_Spaces ( parser ) ;\n }\n Exit : return parser -> root . error ;\n }"}
{"idx": 18354, "target": 0, "func": "static int32_t u_scanf_count_handler ( UFILE * input , u_scanf_spec_info * info , ufmt_args * args , const UChar * fmt , int32_t * fmtConsumed , int32_t * argConverted ) {\n ( void ) input ;\n ( void ) fmt ;\n ( void ) fmtConsumed ;\n if ( ! info -> fSkipArg ) {\n if ( info -> fIsShort ) * ( int16_t * ) ( args [ 0 ] . ptrValue ) = ( int16_t ) ( UINT16_MAX & info -> fWidth ) ;\n else if ( info -> fIsLongLong ) * ( int64_t * ) ( args [ 0 ] . ptrValue ) = info -> fWidth ;\n else * ( int32_t * ) ( args [ 0 ] . ptrValue ) = ( int32_t ) ( UINT32_MAX & info -> fWidth ) ;\n }\n * argConverted = 0 ;\n return 0 ;\n }"}
{"idx": 18355, "target": 0, "func": "static void stroke_config ( private_stroke_socket_t * this , stroke_msg_t * msg , FILE * out ) {\n this -> cred -> cachecrl ( this -> cred , msg -> config . cachecrl ) ;\n }"}
{"idx": 18356, "target": 1, "func": "int TS_OBJ_print_bio ( BIO * bio , const ASN1_OBJECT * obj ) {\n char obj_txt [ 128 ] ;\n int len = OBJ_obj2txt ( obj_txt , sizeof ( obj_txt ) , obj , 0 ) ;\n BIO_write ( bio , obj_txt , len ) ;\n BIO_write ( bio , \"\\n\" , 1 ) ;\n return 1 ;\n }"}
{"idx": 18357, "target": 0, "func": "const char * http_hdr_reason_lookup ( unsigned status ) {\n # define HTTP_STATUS_ENTRY ( value , reason ) case value : return # reason switch ( status ) {\n HTTP_STATUS_ENTRY ( 0 , None ) ;\n HTTP_STATUS_ENTRY ( 100 , Continue ) ;\n HTTP_STATUS_ENTRY ( 101 , Switching Protocols ) ;\n HTTP_STATUS_ENTRY ( 102 , Processing ) ;\n HTTP_STATUS_ENTRY ( 103 , Early Hints ) ;\n HTTP_STATUS_ENTRY ( 200 , OK ) ;\n HTTP_STATUS_ENTRY ( 201 , Created ) ;\n HTTP_STATUS_ENTRY ( 202 , Accepted ) ;\n HTTP_STATUS_ENTRY ( 203 , Non - Authoritative Information ) ;\n HTTP_STATUS_ENTRY ( 204 , No Content ) ;\n HTTP_STATUS_ENTRY ( 205 , Reset Content ) ;\n HTTP_STATUS_ENTRY ( 206 , Partial Content ) ;\n HTTP_STATUS_ENTRY ( 207 , Multi - Status ) ;\n HTTP_STATUS_ENTRY ( 208 , Already Reported ) ;\n HTTP_STATUS_ENTRY ( 226 , IM Used ) ;\n HTTP_STATUS_ENTRY ( 300 , Multiple Choices ) ;\n HTTP_STATUS_ENTRY ( 301 , Moved Permanently ) ;\n HTTP_STATUS_ENTRY ( 302 , Found ) ;\n HTTP_STATUS_ENTRY ( 303 , See Other ) ;\n HTTP_STATUS_ENTRY ( 304 , Not Modified ) ;\n HTTP_STATUS_ENTRY ( 305 , Use Proxy ) ;\n HTTP_STATUS_ENTRY ( 307 , Temporary Redirect ) ;\n HTTP_STATUS_ENTRY ( 308 , Permanent Redirect ) ;\n HTTP_STATUS_ENTRY ( 400 , Bad Request ) ;\n HTTP_STATUS_ENTRY ( 401 , Unauthorized ) ;\n HTTP_STATUS_ENTRY ( 402 , Payment Required ) ;\n HTTP_STATUS_ENTRY ( 403 , Forbidden ) ;\n HTTP_STATUS_ENTRY ( 404 , Not Found ) ;\n HTTP_STATUS_ENTRY ( 405 , Method Not Allowed ) ;\n HTTP_STATUS_ENTRY ( 406 , Not Acceptable ) ;\n HTTP_STATUS_ENTRY ( 407 , Proxy Authentication Required ) ;\n HTTP_STATUS_ENTRY ( 408 , Request Timeout ) ;\n HTTP_STATUS_ENTRY ( 409 , Conflict ) ;\n HTTP_STATUS_ENTRY ( 410 , Gone ) ;\n HTTP_STATUS_ENTRY ( 411 , Length Required ) ;\n HTTP_STATUS_ENTRY ( 412 , Precondition Failed ) ;\n HTTP_STATUS_ENTRY ( 413 , Request Entity Too Large ) ;\n HTTP_STATUS_ENTRY ( 414 , Request - URI Too Long ) ;\n HTTP_STATUS_ENTRY ( 415 , Unsupported Media Type ) ;\n HTTP_STATUS_ENTRY ( 416 , Requested Range Not Satisfiable ) ;\n HTTP_STATUS_ENTRY ( 417 , Expectation Failed ) ;\n HTTP_STATUS_ENTRY ( 422 , Unprocessable Entity ) ;\n HTTP_STATUS_ENTRY ( 423 , Locked ) ;\n HTTP_STATUS_ENTRY ( 424 , Failed Dependency ) ;\n HTTP_STATUS_ENTRY ( 426 , Upgrade Required ) ;\n HTTP_STATUS_ENTRY ( 428 , Precondition Required ) ;\n HTTP_STATUS_ENTRY ( 429 , Too Many Requests ) ;\n HTTP_STATUS_ENTRY ( 431 , Request Header Fields Too Large ) ;\n HTTP_STATUS_ENTRY ( 500 , Internal Server Error ) ;\n HTTP_STATUS_ENTRY ( 501 , Not Implemented ) ;\n HTTP_STATUS_ENTRY ( 502 , Bad Gateway ) ;\n HTTP_STATUS_ENTRY ( 503 , Service Unavailable ) ;\n HTTP_STATUS_ENTRY ( 504 , Gateway Timeout ) ;\n HTTP_STATUS_ENTRY ( 505 , HTTP Version Not Supported ) ;\n HTTP_STATUS_ENTRY ( 506 , Variant Also Negotiates ) ;\n HTTP_STATUS_ENTRY ( 507 , Insufficient Storage ) ;\n HTTP_STATUS_ENTRY ( 508 , Loop Detected ) ;\n HTTP_STATUS_ENTRY ( 510 , Not Extended ) ;\n HTTP_STATUS_ENTRY ( 511 , Network Authentication Required ) ;\n }\n # undef HTTP_STATUS_ENTRY return nullptr ;\n }"}
{"idx": 18358, "target": 1, "func": "static PHP_MINIT_FUNCTION ( zip ) {\n # ifdef PHP_ZIP_USE_OO zend_class_entry ce ;\n memcpy ( & zip_object_handlers , zend_get_std_object_handlers ( ) , sizeof ( zend_object_handlers ) ) ;\n zip_object_handlers . clone_obj = NULL ;\n zip_object_handlers . get_property_ptr_ptr = php_zip_get_property_ptr_ptr ;\n zip_object_handlers . get_properties = php_zip_get_properties ;\n zip_object_handlers . read_property = php_zip_read_property ;\n zip_object_handlers . has_property = php_zip_has_property ;\n INIT_CLASS_ENTRY ( ce , \"ZipArchive\" , zip_class_functions ) ;\n ce . create_object = php_zip_object_new ;\n zip_class_entry = zend_register_internal_class ( & ce TSRMLS_CC ) ;\n zend_hash_init ( & zip_prop_handlers , 0 , NULL , NULL , 1 ) ;\n php_zip_register_prop_handler ( & zip_prop_handlers , \"status\" , php_zip_status , NULL , NULL , IS_LONG TSRMLS_CC ) ;\n php_zip_register_prop_handler ( & zip_prop_handlers , \"statusSys\" , php_zip_status_sys , NULL , NULL , IS_LONG TSRMLS_CC ) ;\n php_zip_register_prop_handler ( & zip_prop_handlers , \"numFiles\" , php_zip_get_num_files , NULL , NULL , IS_LONG TSRMLS_CC ) ;\n php_zip_register_prop_handler ( & zip_prop_handlers , \"filename\" , NULL , NULL , php_zipobj_get_filename , IS_STRING TSRMLS_CC ) ;\n php_zip_register_prop_handler ( & zip_prop_handlers , \"comment\" , NULL , php_zipobj_get_zip_comment , NULL , IS_STRING TSRMLS_CC ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CREATE\" , ZIP_CREATE ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"EXCL\" , ZIP_EXCL ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CHECKCONS\" , ZIP_CHECKCONS ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"OVERWRITE\" , ZIP_OVERWRITE ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"FL_NOCASE\" , ZIP_FL_NOCASE ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"FL_NODIR\" , ZIP_FL_NODIR ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"FL_COMPRESSED\" , ZIP_FL_COMPRESSED ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"FL_UNCHANGED\" , ZIP_FL_UNCHANGED ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_DEFAULT\" , ZIP_CM_DEFAULT ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_STORE\" , ZIP_CM_STORE ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_SHRINK\" , ZIP_CM_SHRINK ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_REDUCE_1\" , ZIP_CM_REDUCE_1 ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_REDUCE_2\" , ZIP_CM_REDUCE_2 ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_REDUCE_3\" , ZIP_CM_REDUCE_3 ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_REDUCE_4\" , ZIP_CM_REDUCE_4 ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_IMPLODE\" , ZIP_CM_IMPLODE ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_DEFLATE\" , ZIP_CM_DEFLATE ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_DEFLATE64\" , ZIP_CM_DEFLATE64 ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_PKWARE_IMPLODE\" , ZIP_CM_PKWARE_IMPLODE ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_BZIP2\" , ZIP_CM_BZIP2 ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_LZMA\" , ZIP_CM_LZMA ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_TERSE\" , ZIP_CM_TERSE ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_LZ77\" , ZIP_CM_LZ77 ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_WAVPACK\" , ZIP_CM_WAVPACK ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"CM_PPMD\" , ZIP_CM_PPMD ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_OK\" , ZIP_ER_OK ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_MULTIDISK\" , ZIP_ER_MULTIDISK ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_RENAME\" , ZIP_ER_RENAME ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_CLOSE\" , ZIP_ER_CLOSE ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_SEEK\" , ZIP_ER_SEEK ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_READ\" , ZIP_ER_READ ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_WRITE\" , ZIP_ER_WRITE ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_CRC\" , ZIP_ER_CRC ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_ZIPCLOSED\" , ZIP_ER_ZIPCLOSED ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_NOENT\" , ZIP_ER_NOENT ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_EXISTS\" , ZIP_ER_EXISTS ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_OPEN\" , ZIP_ER_OPEN ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_TMPOPEN\" , ZIP_ER_TMPOPEN ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_ZLIB\" , ZIP_ER_ZLIB ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_MEMORY\" , ZIP_ER_MEMORY ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_CHANGED\" , ZIP_ER_CHANGED ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_COMPNOTSUPP\" , ZIP_ER_COMPNOTSUPP ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_EOF\" , ZIP_ER_EOF ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_INVAL\" , ZIP_ER_INVAL ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_NOZIP\" , ZIP_ER_NOZIP ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_INTERNAL\" , ZIP_ER_INTERNAL ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_INCONS\" , ZIP_ER_INCONS ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_REMOVE\" , ZIP_ER_REMOVE ) ;\n REGISTER_ZIP_CLASS_CONST_LONG ( \"ER_DELETED\" , ZIP_ER_DELETED ) ;\n php_register_url_stream_wrapper ( \"zip\" , & php_stream_zip_wrapper TSRMLS_CC ) ;\n # endif le_zip_dir = zend_register_list_destructors_ex ( php_zip_free_dir , NULL , le_zip_dir_name , module_number ) ;\n le_zip_entry = zend_register_list_destructors_ex ( php_zip_free_entry , NULL , le_zip_entry_name , module_number ) ;\n return SUCCESS ;\n }"}
{"idx": 18359, "target": 0, "func": "static picture_t * vout_new_buffer ( decoder_t * p_dec ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n if ( p_owner -> p_vout == NULL || p_dec -> fmt_out . video . i_width != p_owner -> video . i_width || p_dec -> fmt_out . video . i_height != p_owner -> video . i_height || p_dec -> fmt_out . video . i_visible_width != p_owner -> video . i_visible_width || p_dec -> fmt_out . video . i_visible_height != p_owner -> video . i_visible_height || p_dec -> fmt_out . video . i_x_offset != p_owner -> video . i_x_offset || p_dec -> fmt_out . video . i_y_offset != p_owner -> video . i_y_offset || p_dec -> fmt_out . i_codec != p_owner -> video . i_chroma || ( int64_t ) p_dec -> fmt_out . video . i_sar_num * p_owner -> video . i_sar_den != ( int64_t ) p_dec -> fmt_out . video . i_sar_den * p_owner -> video . i_sar_num || p_dec -> fmt_out . video . orientation != p_owner -> video . orientation ) {\n vout_thread_t * p_vout ;\n if ( ! p_dec -> fmt_out . video . i_width || ! p_dec -> fmt_out . video . i_height || p_dec -> fmt_out . video . i_width < p_dec -> fmt_out . video . i_visible_width || p_dec -> fmt_out . video . i_height < p_dec -> fmt_out . video . i_visible_height ) {\n return NULL ;\n }\n video_format_t fmt = p_dec -> fmt_out . video ;\n fmt . i_chroma = p_dec -> fmt_out . i_codec ;\n p_owner -> video = fmt ;\n if ( vlc_fourcc_IsYUV ( fmt . i_chroma ) ) {\n const vlc_chroma_description_t * dsc = vlc_fourcc_GetChromaDescription ( fmt . i_chroma ) ;\n for ( unsigned int i = 0 ;\n dsc && i < dsc -> plane_count ;\n i ++ ) {\n while ( fmt . i_width % dsc -> p [ i ] . w . den ) fmt . i_width ++ ;\n while ( fmt . i_height % dsc -> p [ i ] . h . den ) fmt . i_height ++ ;\n }\n }\n if ( ! fmt . i_visible_width || ! fmt . i_visible_height ) {\n if ( p_dec -> fmt_in . video . i_visible_width && p_dec -> fmt_in . video . i_visible_height ) {\n fmt . i_visible_width = p_dec -> fmt_in . video . i_visible_width ;\n fmt . i_visible_height = p_dec -> fmt_in . video . i_visible_height ;\n fmt . i_x_offset = p_dec -> fmt_in . video . i_x_offset ;\n fmt . i_y_offset = p_dec -> fmt_in . video . i_y_offset ;\n }\n else {\n fmt . i_visible_width = fmt . i_width ;\n fmt . i_visible_height = fmt . i_height ;\n fmt . i_x_offset = 0 ;\n fmt . i_y_offset = 0 ;\n }\n }\n if ( fmt . i_visible_height == 1088 && var_CreateGetBool ( p_dec , \"hdtv-fix\" ) ) {\n fmt . i_visible_height = 1080 ;\n if ( ! ( fmt . i_sar_num % 136 ) ) {\n fmt . i_sar_num *= 135 ;\n fmt . i_sar_den *= 136 ;\n }\n msg_Warn ( p_dec , \"Fixing broken HDTV stream (display_height=1088)\" ) ;\n }\n if ( ! fmt . i_sar_num || ! fmt . i_sar_den ) {\n fmt . i_sar_num = 1 ;\n fmt . i_sar_den = 1 ;\n }\n vlc_ureduce ( & fmt . i_sar_num , & fmt . i_sar_den , fmt . i_sar_num , fmt . i_sar_den , 50000 ) ;\n vlc_mutex_lock ( & p_owner -> lock ) ;\n p_vout = p_owner -> p_vout ;\n p_owner -> p_vout = NULL ;\n vlc_mutex_unlock ( & p_owner -> lock ) ;\n unsigned dpb_size ;\n switch ( p_dec -> fmt_in . i_codec ) {\n case VLC_CODEC_HEVC : case VLC_CODEC_H264 : case VLC_CODEC_DIRAC : dpb_size = 18 ;\n break ;\n case VLC_CODEC_VP5 : case VLC_CODEC_VP6 : case VLC_CODEC_VP6F : case VLC_CODEC_VP8 : dpb_size = 3 ;\n break ;\n default : dpb_size = 2 ;\n break ;\n }\n p_vout = input_resource_RequestVout ( p_owner -> p_resource , p_vout , & fmt , dpb_size + p_dec -> i_extra_picture_buffers + 1 , true ) ;\n vlc_mutex_lock ( & p_owner -> lock ) ;\n p_owner -> p_vout = p_vout ;\n DecoderUpdateFormatLocked ( p_dec ) ;\n vlc_mutex_unlock ( & p_owner -> lock ) ;\n if ( p_owner -> p_input != NULL ) input_SendEventVout ( p_owner -> p_input ) ;\n if ( p_vout == NULL ) {\n msg_Err ( p_dec , \"failed to create video output\" ) ;\n p_dec -> b_error = true ;\n return NULL ;\n }\n }\n for ( ;\n ;\n ) {\n if ( DecoderIsExitRequested ( p_dec ) || p_dec -> b_error ) return NULL ;\n picture_t * p_picture = vout_GetPicture ( p_owner -> p_vout ) ;\n if ( p_picture ) return p_picture ;\n if ( DecoderIsFlushing ( p_dec ) ) return NULL ;\n DecoderSignalWait ( p_dec , true ) ;\n vout_FixLeaks ( p_owner -> p_vout ) ;\n msleep ( VOUT_OUTMEM_SLEEP ) ;\n }\n }"}
{"idx": 18360, "target": 0, "func": "static int altinfo_hook_handler ( TSCont contp , TSEvent event , void * edata ) {\n AltInfoTestData * data = nullptr ;\n TSHttpTxn txnp = nullptr ;\n CHECK_SPURIOUS_EVENT ( contp , event , edata ) ;\n data = ( AltInfoTestData * ) TSContDataGet ( contp ) ;\n switch ( event ) {\n case TS_EVENT_HTTP_READ_REQUEST_HDR : txnp = ( TSHttpTxn ) edata ;\n TSSkipRemappingSet ( txnp , 1 ) ;\n TSHttpTxnReenable ( txnp , TS_EVENT_HTTP_CONTINUE ) ;\n break ;\n case TS_EVENT_HTTP_SELECT_ALT : {\n TSMBuffer clientreqbuf ;\n TSMBuffer cachereqbuf ;\n TSMBuffer cacherespbuf ;\n TSMLoc clientreqhdr ;\n TSMLoc cachereqhdr ;\n TSMLoc cacheresphdr ;\n TSHttpAltInfo infop = ( TSHttpAltInfo ) edata ;\n data -> run_at_least_once = true ;\n if ( TSHttpAltInfoClientReqGet ( infop , & clientreqbuf , & clientreqhdr ) != TS_SUCCESS ) {\n SDK_RPRINT ( data -> test , \"TSHttpAltInfoClientReqGet\" , \"TestCase\" , TC_FAIL , \"TSHttpAltInfoClientReqGet doesn't return TS_SUCCESS\" ) ;\n data -> test_passed_txn_alt_info_client_req_get = false ;\n }\n else {\n if ( ( clientreqbuf == reinterpret_cast < TSMBuffer > ( & ( ( ( HttpAltInfo * ) infop ) -> m_client_req ) ) ) && ( clientreqhdr == reinterpret_cast < TSMLoc > ( ( ( HttpAltInfo * ) infop ) -> m_client_req . m_http ) ) ) {\n SDK_RPRINT ( data -> test , \"TSHttpAltInfoClientReqGet\" , \"TestCase\" , TC_PASS , \"ok\" ) ;\n }\n else {\n SDK_RPRINT ( data -> test , \"TSHttpAltInfoClientReqGet\" , \"TestCase\" , TC_FAIL , \"Value's Mismatch\" ) ;\n data -> test_passed_txn_alt_info_client_req_get = false ;\n }\n }\n if ( TSHttpAltInfoCachedReqGet ( infop , & cachereqbuf , & cachereqhdr ) != TS_SUCCESS ) {\n SDK_RPRINT ( data -> test , \"TSHttpAltInfoCachedReqGet\" , \"TestCase\" , TC_FAIL , \"TSHttpAltInfoCachedReqGet doesn't return TS_SUCCESS\" ) ;\n data -> test_passed_txn_alt_info_cached_req_get = false ;\n }\n else {\n if ( ( cachereqbuf == reinterpret_cast < TSMBuffer > ( & ( ( ( HttpAltInfo * ) infop ) -> m_cached_req ) ) ) && ( cachereqhdr == reinterpret_cast < TSMLoc > ( ( ( HttpAltInfo * ) infop ) -> m_cached_req . m_http ) ) ) {\n SDK_RPRINT ( data -> test , \"TSHttpAltInfoCachedReqGet\" , \"TestCase\" , TC_PASS , \"ok\" ) ;\n }\n else {\n SDK_RPRINT ( data -> test , \"TSHttpAltInfoCachedReqGet\" , \"TestCase\" , TC_FAIL , \"Value's Mismatch\" ) ;\n data -> test_passed_txn_alt_info_cached_req_get = false ;\n }\n }\n if ( TSHttpAltInfoCachedRespGet ( infop , & cacherespbuf , & cacheresphdr ) != TS_SUCCESS ) {\n SDK_RPRINT ( data -> test , \"TSHttpAltInfoCachedRespGet\" , \"TestCase\" , TC_FAIL , \"TSHttpAltInfoCachedRespGet doesn't return TS_SUCCESS\" ) ;\n data -> test_passed_txn_alt_info_cached_resp_get = false ;\n }\n else {\n if ( ( cacherespbuf == reinterpret_cast < TSMBuffer > ( & ( ( ( HttpAltInfo * ) infop ) -> m_cached_resp ) ) ) && ( cacheresphdr == reinterpret_cast < TSMLoc > ( ( ( HttpAltInfo * ) infop ) -> m_cached_resp . m_http ) ) ) {\n SDK_RPRINT ( data -> test , \"TSHttpAltInfoCachedRespGet\" , \"TestCase\" , TC_PASS , \"ok\" ) ;\n }\n else {\n SDK_RPRINT ( data -> test , \"TSHttpAltInfoCachedRespGet\" , \"TestCase\" , TC_FAIL , \"Value's Mismatch\" ) ;\n data -> test_passed_txn_alt_info_cached_resp_get = false ;\n }\n }\n TSHttpAltInfoQualitySet ( infop , 0.5 ) ;\n SDK_RPRINT ( data -> test , \"TSHttpAltInfoQualitySet\" , \"TestCase\" , TC_PASS , \"ok\" ) ;\n }\n break ;\n case TS_EVENT_IMMEDIATE : case TS_EVENT_TIMEOUT : if ( data -> first_time == true ) {\n if ( ( data -> browser1 -> status == REQUEST_INPROGRESS ) || ( data -> browser2 -> status == REQUEST_INPROGRESS ) ) {\n TSContSchedule ( contp , 25 , TS_THREAD_POOL_DEFAULT ) ;\n return 0 ;\n }\n }\n else {\n if ( data -> browser3 -> status == REQUEST_INPROGRESS ) {\n TSContSchedule ( contp , 25 , TS_THREAD_POOL_DEFAULT ) ;\n return 0 ;\n }\n }\n {\n if ( data -> first_time == true ) {\n data -> first_time = false ;\n synserver_delete ( data -> os ) ;\n data -> os = nullptr ;\n synclient_txn_send_request ( data -> browser3 , data -> request3 ) ;\n TSHttpHookAdd ( TS_HTTP_SELECT_ALT_HOOK , contp ) ;\n TSContSchedule ( contp , 25 , TS_THREAD_POOL_DEFAULT ) ;\n return 0 ;\n }\n if ( ( data -> browser3 -> status == REQUEST_SUCCESS ) && ( data -> test_passed_txn_alt_info_client_req_get == true ) && ( data -> test_passed_txn_alt_info_cached_req_get == true ) && ( data -> test_passed_txn_alt_info_cached_resp_get == true ) && ( data -> test_passed_txn_alt_info_quality_set == true ) && ( data -> run_at_least_once == true ) ) {\n * ( data -> pstatus ) = REGRESSION_TEST_PASSED ;\n }\n else {\n if ( data -> run_at_least_once == false ) {\n SDK_RPRINT ( data -> test , \"TSHttpAltInfo\" , \"All\" , TC_FAIL , \"Test not executed even once\" ) ;\n }\n * ( data -> pstatus ) = REGRESSION_TEST_FAILED ;\n }\n synclient_txn_delete ( data -> browser1 ) ;\n synclient_txn_delete ( data -> browser2 ) ;\n synclient_txn_delete ( data -> browser3 ) ;\n TSfree ( data -> request1 ) ;\n TSfree ( data -> request2 ) ;\n TSfree ( data -> request3 ) ;\n data -> magic = MAGIC_DEAD ;\n TSfree ( data ) ;\n TSContDataSet ( contp , nullptr ) ;\n }\n break ;\n default : * ( data -> pstatus ) = REGRESSION_TEST_FAILED ;\n SDK_RPRINT ( data -> test , \"TSHttpTxnCache\" , \"TestCase1\" , TC_FAIL , \"Unexpected event %d\" , event ) ;\n break ;\n }\n return 0 ;\n }"}
{"idx": 18361, "target": 0, "func": "unsigned int vp9_sub_pixel_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp2 , W , dst , dst_stride , sse ) ;\n \\ }\n # define SUBPIX_AVG_VAR ( W , H ) unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 ) VAR ( 8 , 4 ) SUBPIX_VAR ( 8 , 4 ) SUBPIX_AVG_VAR ( 8 , 4 ) VAR ( 8 , 8 ) SUBPIX_VAR ( 8 , 8 )"}
{"idx": 18362, "target": 0, "func": "hb_bool_t hb_set_allocation_successful ( const hb_set_t * set HB_UNUSED ) {\n return ! set -> in_error ;\n }"}
{"idx": 18363, "target": 0, "func": "void remove_tap_listener_mgcp_calls ( void ) {\n remove_tap_listener ( & ( the_tapinfo_struct . mgcp_dummy ) ) ;\n have_MGCP_tap_listener = FALSE ;\n }"}
{"idx": 18364, "target": 0, "func": "static inline void SetPixelWriteMask ( const Image * restrict image , const Quantum mask , Quantum * restrict pixel ) {\n if ( image -> channel_map [ WriteMaskPixelChannel ] . traits != UndefinedPixelTrait ) pixel [ image -> channel_map [ WriteMaskPixelChannel ] . offset ] = mask ;\n }"}
{"idx": 18365, "target": 0, "func": "static void make_data_reader ( Gif_Reader * grr , const uint8_t * data , uint32_t length ) {\n grr -> v = data ;\n grr -> pos = 0 ;\n grr -> length = length ;\n grr -> is_record = 1 ;\n grr -> byte_getter = record_byte_getter ;\n grr -> block_getter = record_block_getter ;\n grr -> eofer = record_eofer ;\n }"}
{"idx": 18366, "target": 0, "func": "int test_div_recp ( BIO * bp , BN_CTX * ctx ) {\n BIGNUM a , b , c , d , e ;\n BN_RECP_CTX recp ;\n int i ;\n BN_RECP_CTX_init ( & recp ) ;\n BN_init ( & a ) ;\n BN_init ( & b ) ;\n BN_init ( & c ) ;\n BN_init ( & d ) ;\n BN_init ( & e ) ;\n for ( i = 0 ;\n i < num0 + num1 ;\n i ++ ) {\n if ( i < num1 ) {\n BN_bntest_rand ( & a , 400 , 0 , 0 ) ;\n BN_copy ( & b , & a ) ;\n BN_lshift ( & a , & a , i ) ;\n BN_add_word ( & a , i ) ;\n }\n else BN_bntest_rand ( & b , 50 + 3 * ( i - num1 ) , 0 , 0 ) ;\n a . neg = rand_neg ( ) ;\n b . neg = rand_neg ( ) ;\n BN_RECP_CTX_set ( & recp , & b , ctx ) ;\n BN_div_recp ( & d , & c , & a , & recp , ctx ) ;\n if ( bp != NULL ) {\n if ( ! results ) {\n BN_print ( bp , & a ) ;\n BIO_puts ( bp , \" / \" ) ;\n BN_print ( bp , & b ) ;\n BIO_puts ( bp , \" - \" ) ;\n }\n BN_print ( bp , & d ) ;\n BIO_puts ( bp , \"\\n\" ) ;\n if ( ! results ) {\n BN_print ( bp , & a ) ;\n BIO_puts ( bp , \" % \" ) ;\n BN_print ( bp , & b ) ;\n BIO_puts ( bp , \" - \" ) ;\n }\n BN_print ( bp , & c ) ;\n BIO_puts ( bp , \"\\n\" ) ;\n }\n BN_mul ( & e , & d , & b , ctx ) ;\n BN_add ( & d , & e , & c ) ;\n BN_sub ( & d , & d , & a ) ;\n if ( ! BN_is_zero ( & d ) ) {\n fprintf ( stderr , \"Reciprocal division test failed!\\n\" ) ;\n fprintf ( stderr , \"a=\" ) ;\n BN_print_fp ( stderr , & a ) ;\n fprintf ( stderr , \"\\nb=\" ) ;\n BN_print_fp ( stderr , & b ) ;\n fprintf ( stderr , \"\\n\" ) ;\n return 0 ;\n }\n }\n BN_free ( & a ) ;\n BN_free ( & b ) ;\n BN_free ( & c ) ;\n BN_free ( & d ) ;\n BN_free ( & e ) ;\n BN_RECP_CTX_free ( & recp ) ;\n return ( 1 ) ;\n }"}
{"idx": 18367, "target": 0, "func": "static int dissect_pcp_message_user_auth ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , int offset ) {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"[%s]\" , val_to_str ( PCP_PDU_USER_AUTH , packettypenames , \"Unknown Type:0x%02x\" ) ) ;\n proto_tree_add_item ( tree , hf_pcp_user_auth_payload , tvb , offset , - 1 , ENC_NA ) ;\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 18368, "target": 0, "func": "static int capture_android_logcat ( char * interface , char * fifo , const char * adb_server_ip , unsigned short * adb_server_tcp_port ) {\n struct extcap_dumper extcap_dumper ;\n static char packet [ PACKET_LENGTH ] ;\n static char helper_packet [ PACKET_LENGTH ] ;\n gssize length ;\n size_t used_buffer_length = 0 ;\n socket_handle_t sock ;\n const char * protocol_name ;\n size_t exported_pdu_headers_size = 0 ;\n struct exported_pdu_header exported_pdu_header_protocol_events ;\n struct exported_pdu_header exported_pdu_header_protocol_normal ;\n struct exported_pdu_header * exported_pdu_header_protocol ;\n struct exported_pdu_header exported_pdu_header_end = {\n 0 , 0 }\n ;\n static const char * wireshark_protocol_logcat = \"logcat\" ;\n static const char * wireshark_protocol_logcat_events = \"logcat_events\" ;\n const char * adb_transport = \"0012\" \"host:transport-any\" ;\n const char * adb_log_main = \"0008\" \"log:main\" ;\n const char * adb_log_system = \"000A\" \"log:system\" ;\n const char * adb_log_radio = \"0009\" \"log:radio\" ;\n const char * adb_log_events = \"000A\" \"log:events\" ;\n const char * adb_transport_serial_templace = \"%04x\" \"host:transport:%s\" ;\n const char * adb_command ;\n uint16_t * payload_length ;\n uint16_t * try_header_size ;\n uint32_t * timestamp_secs ;\n uint32_t * timestamp_nsecs ;\n uint16_t header_size ;\n int result ;\n char * serial_number = NULL ;\n size_t serial_number_length = 0 ;\n extcap_dumper = extcap_dumper_open ( fifo , EXTCAP_ENCAP_WIRESHARK_UPPER_PDU ) ;\n exported_pdu_header_protocol_events . tag = GUINT16_TO_BE ( WIRESHARK_UPPER_PDU_TAG_DISSECTOR_NAME ) ;\n exported_pdu_header_protocol_events . length = GUINT16_TO_BE ( strlen ( wireshark_protocol_logcat_events ) + 2 ) ;\n exported_pdu_header_protocol_normal . tag = GUINT16_TO_BE ( WIRESHARK_UPPER_PDU_TAG_DISSECTOR_NAME ) ;\n exported_pdu_header_protocol_normal . length = GUINT16_TO_BE ( strlen ( wireshark_protocol_logcat ) + 2 ) ;\n sock = adb_connect ( adb_server_ip , adb_server_tcp_port ) ;\n if ( sock == INVALID_SOCKET ) return EXIT_CODE_INVALID_SOCKET_9 ;\n if ( is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_MAIN ) && strlen ( interface ) > strlen ( INTERFACE_ANDROID_LOGCAT_MAIN ) + 1 ) {\n serial_number = interface + strlen ( INTERFACE_ANDROID_LOGCAT_MAIN ) + 1 ;\n }\n else if ( is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_SYSTEM ) && strlen ( interface ) > strlen ( INTERFACE_ANDROID_LOGCAT_SYSTEM ) + 1 ) {\n serial_number = interface + strlen ( INTERFACE_ANDROID_LOGCAT_SYSTEM ) + 1 ;\n }\n else if ( is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_RADIO ) && strlen ( interface ) > strlen ( INTERFACE_ANDROID_LOGCAT_RADIO ) + 1 ) {\n serial_number = interface + strlen ( INTERFACE_ANDROID_LOGCAT_RADIO ) + 1 ;\n }\n else if ( is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_EVENTS ) && strlen ( interface ) > strlen ( INTERFACE_ANDROID_LOGCAT_EVENTS ) + 1 ) {\n serial_number = interface + strlen ( INTERFACE_ANDROID_LOGCAT_EVENTS ) + 1 ;\n }\n if ( ! serial_number ) {\n result = adb_send ( sock , adb_transport ) ;\n if ( result ) {\n errmsg_print ( \"ERROR: Error while setting adb transport\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n }\n else {\n serial_number_length = strlen ( serial_number ) ;\n result = g_snprintf ( packet , PACKET_LENGTH , adb_transport_serial_templace , 15 + serial_number_length , serial_number ) ;\n if ( result <= 0 || result > PACKET_LENGTH ) {\n errmsg_print ( \"ERROR: Error while completing adb packet\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_BAD_SIZE_OF_ASSEMBLED_ADB_PACKET_18 ;\n }\n result = adb_send ( sock , packet ) ;\n if ( result ) {\n errmsg_print ( \"ERROR: Error while setting adb transport\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n }\n if ( is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_MAIN ) ) adb_command = adb_log_main ;\n else if ( is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_SYSTEM ) ) adb_command = adb_log_system ;\n else if ( is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_RADIO ) ) adb_command = adb_log_radio ;\n else if ( is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_EVENTS ) ) adb_command = adb_log_events ;\n else {\n errmsg_print ( \"ERROR: Unknown interface: <%s>\" , interface ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n result = adb_send ( sock , adb_command ) ;\n if ( result ) {\n errmsg_print ( \"ERROR: Error while sending command <%s>\" , adb_command ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_ERROR_WHILE_SENDING_ADB_PACKET_4 ;\n }\n if ( is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_EVENTS ) ) {\n protocol_name = wireshark_protocol_logcat_events ;\n exported_pdu_header_protocol = & exported_pdu_header_protocol_events ;\n }\n else {\n protocol_name = wireshark_protocol_logcat ;\n exported_pdu_header_protocol = & exported_pdu_header_protocol_normal ;\n }\n memcpy ( packet , exported_pdu_header_protocol , sizeof ( struct exported_pdu_header ) ) ;\n exported_pdu_headers_size += sizeof ( struct exported_pdu_header ) ;\n memcpy ( packet + exported_pdu_headers_size , protocol_name , GUINT16_FROM_BE ( exported_pdu_header_protocol -> length ) - 2 ) ;\n exported_pdu_headers_size += GUINT16_FROM_BE ( exported_pdu_header_protocol -> length ) ;\n packet [ exported_pdu_headers_size - 1 ] = 0 ;\n packet [ exported_pdu_headers_size - 2 ] = 0 ;\n memcpy ( packet + exported_pdu_headers_size , & exported_pdu_header_end , sizeof ( struct exported_pdu_header ) ) ;\n exported_pdu_headers_size += sizeof ( struct exported_pdu_header ) + GUINT16_FROM_BE ( exported_pdu_header_end . length ) ;\n SET_DATA ( payload_length , value_u16 , packet + exported_pdu_headers_size + 0 ) ;\n SET_DATA ( try_header_size , value_u16 , packet + exported_pdu_headers_size + 2 ) ;\n SET_DATA ( timestamp_secs , value_u32 , packet + exported_pdu_headers_size + 12 ) ;\n SET_DATA ( timestamp_nsecs , value_u32 , packet + exported_pdu_headers_size + 16 ) ;\n while ( endless_loop ) {\n errno = 0 ;\n length = recv ( sock , packet + exported_pdu_headers_size + used_buffer_length , ( int ) ( PACKET_LENGTH - exported_pdu_headers_size - used_buffer_length ) , 0 ) ;\n if ( errno == EAGAIN # if EWOULDBLOCK != EAGAIN || errno == EWOULDBLOCK # endif ) {\n continue ;\n }\n else if ( errno != 0 ) {\n errmsg_print ( \"ERROR capture: %s\" , strerror ( errno ) ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n if ( length <= 0 ) {\n while ( endless_loop ) {\n verbose_print ( \"WARNING: Broken socket connection. Try reconnect.\\n\" ) ;\n used_buffer_length = 0 ;\n closesocket ( sock ) ;\n sock = adb_connect ( adb_server_ip , adb_server_tcp_port ) ;\n if ( sock == INVALID_SOCKET ) return EXIT_CODE_INVALID_SOCKET_10 ;\n if ( ! serial_number ) {\n result = adb_send ( sock , adb_transport ) ;\n if ( result ) {\n errmsg_print ( \"ERROR: Error while setting adb transport for <%s>\" , adb_transport ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n }\n else {\n result = g_snprintf ( ( char * ) helper_packet , PACKET_LENGTH , adb_transport_serial_templace , 15 + serial_number_length , serial_number ) ;\n if ( result <= 0 || result > PACKET_LENGTH ) {\n errmsg_print ( \"ERROR: Error while completing adb packet\" ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_BAD_SIZE_OF_ASSEMBLED_ADB_PACKET_19 ;\n }\n result = adb_send ( sock , helper_packet ) ;\n if ( result ) {\n errmsg_print ( \"ERROR: Error while setting adb transport for <%s>\" , helper_packet ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n }\n if ( is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_MAIN ) ) adb_command = adb_log_main ;\n else if ( is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_SYSTEM ) ) adb_command = adb_log_system ;\n else if ( is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_RADIO ) ) adb_command = adb_log_radio ;\n else if ( is_specified_interface ( interface , INTERFACE_ANDROID_LOGCAT_EVENTS ) ) adb_command = adb_log_events ;\n else {\n errmsg_print ( \"ERROR: Unknown interface: <%s>\" , interface ) ;\n closesocket ( sock ) ;\n return EXIT_CODE_GENERIC ;\n }\n result = adb_send ( sock , adb_command ) ;\n if ( result ) {\n errmsg_print ( \"WARNIG: Error while sending command <%s>\" , adb_command ) ;\n continue ;\n }\n break ;\n }\n }\n used_buffer_length += length + exported_pdu_headers_size ;\n if ( * try_header_size != 24 ) header_size = 20 ;\n else header_size = * try_header_size ;\n length = ( * payload_length ) + header_size + ( gssize ) exported_pdu_headers_size ;\n while ( used_buffer_length >= exported_pdu_headers_size + header_size && ( size_t ) length <= used_buffer_length ) {\n endless_loop = extcap_dumper_dump ( extcap_dumper , packet , length , length , * timestamp_secs , * timestamp_nsecs ) ;\n memmove ( packet + exported_pdu_headers_size , packet + length , used_buffer_length - length ) ;\n used_buffer_length -= length ;\n used_buffer_length += exported_pdu_headers_size ;\n length = ( * payload_length ) + header_size + ( gssize ) exported_pdu_headers_size ;\n if ( * try_header_size != 24 ) header_size = 20 ;\n else header_size = * try_header_size ;\n }\n used_buffer_length -= exported_pdu_headers_size ;\n }\n closesocket ( sock ) ;\n return EXIT_CODE_SUCCESS ;\n }"}
{"idx": 18369, "target": 0, "func": "static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 18370, "target": 0, "func": "static void U_CALLCONV _UTF16BEToUnicodeWithOffsets ( UConverterToUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n UConverter * cnv ;\n const uint8_t * source ;\n UChar * target ;\n int32_t * offsets ;\n uint32_t targetCapacity , length , count , sourceIndex ;\n UChar c , trail ;\n if ( pArgs -> converter -> mode < 8 ) {\n _UTF16ToUnicodeWithOffsets ( pArgs , pErrorCode ) ;\n return ;\n }\n cnv = pArgs -> converter ;\n source = ( const uint8_t * ) pArgs -> source ;\n length = ( int32_t ) ( ( const uint8_t * ) pArgs -> sourceLimit - source ) ;\n if ( length <= 0 && cnv -> toUnicodeStatus == 0 ) {\n return ;\n }\n target = pArgs -> target ;\n if ( target >= pArgs -> targetLimit ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n return ;\n }\n targetCapacity = ( uint32_t ) ( pArgs -> targetLimit - target ) ;\n offsets = pArgs -> offsets ;\n sourceIndex = 0 ;\n c = 0 ;\n if ( cnv -> toUnicodeStatus != 0 ) {\n cnv -> toUBytes [ 0 ] = ( uint8_t ) cnv -> toUnicodeStatus ;\n cnv -> toULength = 1 ;\n cnv -> toUnicodeStatus = 0 ;\n }\n if ( ( count = cnv -> toULength ) != 0 ) {\n uint8_t * p = cnv -> toUBytes ;\n do {\n p [ count ++ ] = * source ++ ;\n ++ sourceIndex ;\n -- length ;\n if ( count == 2 ) {\n c = ( ( UChar ) p [ 0 ] << 8 ) | p [ 1 ] ;\n if ( U16_IS_SINGLE ( c ) ) {\n * target ++ = c ;\n if ( offsets != NULL ) {\n * offsets ++ = - 1 ;\n }\n -- targetCapacity ;\n count = 0 ;\n c = 0 ;\n break ;\n }\n else if ( U16_IS_SURROGATE_LEAD ( c ) ) {\n c = 0 ;\n }\n else {\n break ;\n }\n }\n else if ( count == 4 ) {\n c = ( ( UChar ) p [ 0 ] << 8 ) | p [ 1 ] ;\n trail = ( ( UChar ) p [ 2 ] << 8 ) | p [ 3 ] ;\n if ( U16_IS_TRAIL ( trail ) ) {\n * target ++ = c ;\n if ( targetCapacity >= 2 ) {\n * target ++ = trail ;\n if ( offsets != NULL ) {\n * offsets ++ = - 1 ;\n * offsets ++ = - 1 ;\n }\n targetCapacity -= 2 ;\n }\n else {\n targetCapacity = 0 ;\n cnv -> UCharErrorBuffer [ 0 ] = trail ;\n cnv -> UCharErrorBufferLength = 1 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n count = 0 ;\n c = 0 ;\n break ;\n }\n else {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n if ( ( ( const uint8_t * ) pArgs -> source - source ) >= 2 ) {\n source -= 2 ;\n }\n else {\n cnv -> toUnicodeStatus = 0x100 | p [ 2 ] ;\n -- source ;\n }\n cnv -> toULength = 2 ;\n pArgs -> source = ( const char * ) source ;\n pArgs -> target = target ;\n pArgs -> offsets = offsets ;\n return ;\n }\n }\n }\n while ( length > 0 ) ;\n cnv -> toULength = ( int8_t ) count ;\n }\n count = 2 * targetCapacity ;\n if ( count > length ) {\n count = length & ~ 1 ;\n }\n if ( c == 0 && count > 0 ) {\n length -= count ;\n count >>= 1 ;\n targetCapacity -= count ;\n if ( offsets == NULL ) {\n do {\n c = ( ( UChar ) source [ 0 ] << 8 ) | source [ 1 ] ;\n source += 2 ;\n if ( U16_IS_SINGLE ( c ) ) {\n * target ++ = c ;\n }\n else if ( U16_IS_SURROGATE_LEAD ( c ) && count >= 2 && U16_IS_TRAIL ( trail = ( ( UChar ) source [ 0 ] << 8 ) | source [ 1 ] ) ) {\n source += 2 ;\n -- count ;\n * target ++ = c ;\n * target ++ = trail ;\n }\n else {\n break ;\n }\n }\n while ( -- count > 0 ) ;\n }\n else {\n do {\n c = ( ( UChar ) source [ 0 ] << 8 ) | source [ 1 ] ;\n source += 2 ;\n if ( U16_IS_SINGLE ( c ) ) {\n * target ++ = c ;\n * offsets ++ = sourceIndex ;\n sourceIndex += 2 ;\n }\n else if ( U16_IS_SURROGATE_LEAD ( c ) && count >= 2 && U16_IS_TRAIL ( trail = ( ( UChar ) source [ 0 ] << 8 ) | source [ 1 ] ) ) {\n source += 2 ;\n -- count ;\n * target ++ = c ;\n * target ++ = trail ;\n * offsets ++ = sourceIndex ;\n * offsets ++ = sourceIndex ;\n sourceIndex += 4 ;\n }\n else {\n break ;\n }\n }\n while ( -- count > 0 ) ;\n }\n if ( count == 0 ) {\n c = 0 ;\n }\n else {\n length += 2 * ( count - 1 ) ;\n targetCapacity += count ;\n }\n }\n if ( c != 0 ) {\n cnv -> toUBytes [ 0 ] = ( uint8_t ) ( c >> 8 ) ;\n cnv -> toUBytes [ 1 ] = ( uint8_t ) c ;\n cnv -> toULength = 2 ;\n if ( U16_IS_SURROGATE_LEAD ( c ) ) {\n if ( length >= 2 ) {\n if ( U16_IS_TRAIL ( trail = ( ( UChar ) source [ 0 ] << 8 ) | source [ 1 ] ) ) {\n source += 2 ;\n length -= 2 ;\n * target ++ = c ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n }\n cnv -> UCharErrorBuffer [ 0 ] = trail ;\n cnv -> UCharErrorBufferLength = 1 ;\n cnv -> toULength = 0 ;\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n else {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n else {\n }\n }\n else {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n if ( U_SUCCESS ( * pErrorCode ) ) {\n if ( length > 0 ) {\n if ( targetCapacity == 0 ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n else {\n cnv -> toUBytes [ cnv -> toULength ++ ] = * source ++ ;\n }\n }\n }\n pArgs -> source = ( const char * ) source ;\n pArgs -> target = target ;\n pArgs -> offsets = offsets ;\n }"}
{"idx": 18371, "target": 0, "func": "static void libschroedinger_decode_buffer_free ( SchroBuffer * schro_buf , void * priv ) {\n av_freep ( & priv ) ;\n }"}
{"idx": 18372, "target": 0, "func": "static int do_cgroup_get ( const char * cgroup_path , const char * sub_filename , char * value , size_t len ) {\n const char * parts [ 3 ] = {\n cgroup_path , sub_filename , NULL }\n ;\n char * filename ;\n int ret , saved_errno ;\n filename = lxc_string_join ( \"/\" , parts , false ) ;\n if ( ! filename ) return - 1 ;\n ret = lxc_read_from_file ( filename , value , len ) ;\n saved_errno = errno ;\n free ( filename ) ;\n errno = saved_errno ;\n return ret ;\n }"}
{"idx": 18373, "target": 0, "func": "static int dissect_h245_T_mediaChannel ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 896 \"../../asn1/h245/h245.cnf\" if ( upcoming_channel ) upcoming_channel -> upcoming_addr = & upcoming_channel -> media_addr ;\n offset = dissect_h245_TransportAddress ( tvb , offset , actx , tree , hf_index ) ;\n # line 900 \"../../asn1/h245/h245.cnf\" if ( upcoming_channel ) upcoming_channel -> upcoming_addr = NULL ;\n return offset ;\n }"}
{"idx": 18374, "target": 0, "func": "void proto_register_bta2dp ( void ) {\n module_t * module ;\n static hf_register_info hf [ ] = {\n {\n & hf_bta2dp_acp_seid , {\n \"ACP SEID\" , \"bta2dp.acp_seid\" , FT_UINT8 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_bta2dp_int_seid , {\n \"INT SEID\" , \"bta2dp.int_seid\" , FT_UINT8 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_bta2dp_codec , {\n \"Codec\" , \"bta2dp.codec\" , FT_UINT8 , BASE_HEX , VALS ( media_codec_audio_type_vals ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_bta2dp_vendor_id , {\n \"Vendor ID\" , \"bta2dp.codec.vendor.vendor_id\" , FT_UINT32 , BASE_HEX | BASE_EXT_STRING , & bluetooth_company_id_vals_ext , 0x00 , NULL , HFILL }\n }\n , {\n & hf_bta2dp_vendor_codec_id , {\n \"Vendor Codec\" , \"bta2dp.codec.vendor.codec_id\" , FT_UINT16 , BASE_HEX , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_bta2dp_content_protection , {\n \"Content Protection\" , \"bta2dp.content_protection\" , FT_UINT16 , BASE_HEX , VALS ( content_protection_type_vals ) , 0x0000 , NULL , HFILL }\n }\n , {\n & hf_bta2dp_stream_start_in_frame , {\n \"Stream Start in Frame\" , \"bta2dp.stream_start_in_frame\" , FT_FRAMENUM , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_bta2dp_stream_end_in_frame , {\n \"Stream End in Frame\" , \"bta2dp.stream_end_in_frame\" , FT_FRAMENUM , BASE_NONE , NULL , 0x00 , NULL , HFILL }\n }\n , {\n & hf_bta2dp_stream_number , {\n \"Stream Number\" , \"bta2dp.stream_number\" , FT_UINT32 , BASE_DEC , NULL , 0x00 , NULL , HFILL }\n }\n }\n ;\n static gint * ett [ ] = {\n & ett_bta2dp }\n ;\n proto_bta2dp = proto_register_protocol ( \"Bluetooth A2DP Profile\" , \"BT A2DP\" , \"bta2dp\" ) ;\n proto_register_field_array ( proto_bta2dp , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n bta2dp_handle = register_dissector ( \"bta2dp\" , dissect_bta2dp , proto_bta2dp ) ;\n module = prefs_register_protocol_subtree ( \"Bluetooth\" , proto_bta2dp , NULL ) ;\n prefs_register_static_text_preference ( module , \"a2dp.version\" , \"Bluetooth Profile A2DP version: 1.3\" , \"Version of profile supported by this dissector.\" ) ;\n prefs_register_bool_preference ( module , \"a2dp.content_protection.scms_t\" , \"Force SCMS-T decoding\" , \"Force decoding stream as A2DP with Content Protection SCMS-T \" , & force_a2dp_scms_t ) ;\n prefs_register_enum_preference ( module , \"a2dp.codec\" , \"Force codec\" , \"Force decoding stream as A2DP with specified codec\" , & force_a2dp_codec , pref_a2dp_codec , FALSE ) ;\n }"}
{"idx": 18375, "target": 0, "func": "mbfl_string * mime_header_decoder_result ( struct mime_header_decoder_data * pd , mbfl_string * result ) {\n switch ( pd -> status ) {\n case 1 : case 2 : case 3 : case 4 : case 7 : case 8 : case 9 : mbfl_convert_filter_devcat ( pd -> conv1_filter , & pd -> tmpdev ) ;\n break ;\n case 5 : case 6 : ( * pd -> deco_filter -> filter_flush ) ( pd -> deco_filter ) ;\n ( * pd -> conv1_filter -> filter_flush ) ( pd -> conv1_filter ) ;\n break ;\n }\n ( * pd -> conv2_filter -> filter_flush ) ( pd -> conv2_filter ) ;\n mbfl_memory_device_reset ( & pd -> tmpdev ) ;\n pd -> status = 0 ;\n return mbfl_memory_device_result ( & pd -> outdev , result ) ;\n }"}
{"idx": 18376, "target": 0, "func": "void xmlListMerge ( xmlListPtr l1 , xmlListPtr l2 ) {\n xmlListCopy ( l1 , l2 ) ;\n xmlListClear ( l2 ) ;\n }"}
{"idx": 18377, "target": 0, "func": "static int detect_flash ( const TWO_PASS * twopass , int offset ) {\n const FIRSTPASS_STATS * const next_frame = read_frame_stats ( twopass , offset ) ;\n return next_frame != NULL && next_frame -> pcnt_second_ref > next_frame -> pcnt_inter && next_frame -> pcnt_second_ref >= 0.5 ;\n }"}
{"idx": 18378, "target": 0, "func": "int X509_REQ_add_extensions ( X509_REQ * req , STACK_OF ( X509_EXTENSION ) * exts ) {\n return X509_REQ_add_extensions_nid ( req , exts , NID_ext_req ) ;\n }"}
{"idx": 18379, "target": 0, "func": "static my_socket activate_tcp_port ( uint port ) {\n struct addrinfo * ai , * a ;\n struct addrinfo hints ;\n int error ;\n int arg ;\n char port_buf [ NI_MAXSERV ] ;\n my_socket ip_sock = INVALID_SOCKET ;\n DBUG_ENTER ( \"activate_tcp_port\" ) ;\n DBUG_PRINT ( \"general\" , ( \"IP Socket is %d\" , port ) ) ;\n bzero ( & hints , sizeof ( hints ) ) ;\n hints . ai_flags = AI_PASSIVE ;\n hints . ai_socktype = SOCK_STREAM ;\n hints . ai_family = AF_UNSPEC ;\n my_snprintf ( port_buf , NI_MAXSERV , \"%d\" , port ) ;\n error = getaddrinfo ( my_bind_addr_str , port_buf , & hints , & ai ) ;\n if ( error != 0 ) {\n DBUG_PRINT ( \"error\" , ( \"Got error: %d from getaddrinfo()\" , error ) ) ;\n sql_perror ( ER_DEFAULT ( ER_IPSOCK_ERROR ) ) ;\n unireg_abort ( 1 ) ;\n }\n for ( a = ai ;\n a != NULL ;\n a = a -> ai_next ) {\n ip_sock = socket ( a -> ai_family , a -> ai_socktype , a -> ai_protocol ) ;\n char ip_addr [ INET6_ADDRSTRLEN ] ;\n if ( vio_get_normalized_ip_string ( a -> ai_addr , a -> ai_addrlen , ip_addr , sizeof ( ip_addr ) ) ) {\n ip_addr [ 0 ] = 0 ;\n }\n if ( ip_sock == INVALID_SOCKET ) {\n sql_print_error ( \"Failed to create a socket for %s '%s': errno: %d.\" , ( a -> ai_family == AF_INET ) ? \"IPv4\" : \"IPv6\" , ( const char * ) ip_addr , ( int ) socket_errno ) ;\n }\n else {\n sql_print_information ( \"Server socket created on IP: '%s'.\" , ( const char * ) ip_addr ) ;\n break ;\n }\n }\n if ( ip_sock == INVALID_SOCKET ) {\n DBUG_PRINT ( \"error\" , ( \"Got error: %d from socket()\" , socket_errno ) ) ;\n sql_perror ( ER_DEFAULT ( ER_IPSOCK_ERROR ) ) ;\n unireg_abort ( 1 ) ;\n }\n # ifndef __WIN__ arg = 1 ;\n ( void ) setsockopt ( ip_sock , SOL_SOCKET , SO_REUSEADDR , ( char * ) & arg , sizeof ( arg ) ) ;\n # endif # ifdef IPV6_V6ONLY if ( a -> ai_family == AF_INET6 ) {\n arg = 0 ;\n ( void ) setsockopt ( ip_sock , IPPROTO_IPV6 , IPV6_V6ONLY , ( char * ) & arg , sizeof ( arg ) ) ;\n }\n # endif int ret ;\n uint waited , retry , this_wait ;\n for ( waited = 0 , retry = 1 ;\n ;\n retry ++ , waited += this_wait ) {\n if ( ( ( ret = bind ( ip_sock , a -> ai_addr , a -> ai_addrlen ) ) >= 0 ) || ( socket_errno != SOCKET_EADDRINUSE ) || ( waited >= mysqld_port_timeout ) ) break ;\n sql_print_information ( \"Retrying bind on TCP/IP port %u\" , port ) ;\n this_wait = retry * retry / 3 + 1 ;\n sleep ( this_wait ) ;\n }\n freeaddrinfo ( ai ) ;\n if ( ret < 0 ) {\n char buff [ 100 ] ;\n sprintf ( buff , \"Can't start server: Bind on TCP/IP port. Got error: %d\" , ( int ) socket_errno ) ;\n sql_perror ( buff ) ;\n sql_print_error ( \"Do you already have another mysqld server running on \" \"port: %u ?\" , port ) ;\n unireg_abort ( 1 ) ;\n }\n if ( listen ( ip_sock , ( int ) back_log ) < 0 ) {\n sql_perror ( \"Can't start server: listen() on TCP/IP port\" ) ;\n sql_print_error ( \"listen() on TCP/IP failed with error %d\" , socket_errno ) ;\n unireg_abort ( 1 ) ;\n }\n DBUG_RETURN ( ip_sock ) ;\n }"}
{"idx": 18380, "target": 1, "func": "TEST_P ( GLES2DecoderTestWithCHROMIUMPathRendering , MatrixLoadfCHROMIUMImmediateValidArgs ) {\n cmds : : MatrixLoadfCHROMIUMImmediate & cmd = * GetImmediateAs < cmds : : MatrixLoadfCHROMIUMImmediate > ( ) ;\n SpecializedSetup < cmds : : MatrixLoadfCHROMIUMImmediate , 0 > ( true ) ;\n GLfloat temp [ 16 ] = {\n 0 , }\n ;\n cmd . Init ( GL_PATH_PROJECTION_CHROMIUM , & temp [ 0 ] ) ;\n EXPECT_CALL ( * gl_ , MatrixLoadfEXT ( GL_PATH_PROJECTION_CHROMIUM , reinterpret_cast < GLfloat * > ( ImmediateDataAddress ( & cmd ) ) ) ) ;\n EXPECT_EQ ( error : : kNoError , ExecuteImmediateCmd ( cmd , sizeof ( temp ) ) ) ;\n EXPECT_EQ ( GL_NO_ERROR , GetGLError ( ) ) ;\n }"}
{"idx": 18381, "target": 0, "func": "Asn1Generic * DecodeDer ( const unsigned char * buffer , uint32_t size , uint32_t * errcode ) {\n const unsigned char * d_ptr = buffer ;\n uint32_t d_length , numbytes ;\n Asn1Generic * cert ;\n uint8_t c ;\n if ( d_ptr [ 0 ] != 0x30 && d_ptr [ 1 ] != 0x82 ) return NULL ;\n c = d_ptr [ 1 ] ;\n if ( ( c & ( 1 << 7 ) ) >> 7 != 1 ) return NULL ;\n numbytes = c & 0x7f ;\n d_ptr += 2 ;\n if ( DecodeAsn1BuildValue ( & d_ptr , & d_length , numbytes , errcode ) == - 1 ) {\n return NULL ;\n }\n if ( d_length + ( d_ptr - buffer ) != size ) return NULL ;\n if ( errcode ) * errcode = 0 ;\n cert = DecodeAsn1DerGeneric ( buffer , size , 0 , 0 , errcode ) ;\n return cert ;\n }"}
{"idx": 18382, "target": 0, "func": "static StemInfo * SameH ( StemInfo * old , real start , real width , real unblended [ 2 ] [ MmMax ] , int instance_count ) {\n StemInfo * sameh ;\n if ( instance_count == 0 ) {\n for ( sameh = old ;\n sameh != NULL ;\n sameh = sameh -> next ) if ( sameh -> start == start && sameh -> width == width ) break ;\n }\n else {\n int j ;\n for ( j = 1 ;\n j < instance_count ;\n ++ j ) {\n unblended [ 0 ] [ j ] += unblended [ 0 ] [ j - 1 ] ;\n unblended [ 1 ] [ j ] += unblended [ 1 ] [ j - 1 ] ;\n }\n for ( sameh = old ;\n sameh != NULL ;\n sameh = sameh -> next ) {\n if ( ( * sameh -> u . unblended ) [ 0 ] == NULL || ( * sameh -> u . unblended ) [ 1 ] == NULL ) continue ;\n if ( UnblendedCompare ( ( * sameh -> u . unblended ) [ 0 ] , unblended [ 0 ] , instance_count ) == 0 && UnblendedCompare ( ( * sameh -> u . unblended ) [ 1 ] , unblended [ 1 ] , instance_count ) == 0 ) break ;\n }\n }\n return ( sameh ) ;\n }"}
{"idx": 18383, "target": 1, "func": "static void evhttp_make_header_request ( struct evhttp_connection * evcon , struct evhttp_request * req ) {\n const char * method ;\n evhttp_remove_header ( req -> output_headers , \"Proxy-Connection\" ) ;\n method = evhttp_method ( req -> type ) ;\n evbuffer_add_printf ( evcon -> output_buffer , \"%s %s HTTP/%d.%d\\r\\n\" , method , req -> uri , req -> major , req -> minor ) ;\n if ( req -> type == EVHTTP_REQ_POST && evhttp_find_header ( req -> output_headers , \"Content-Length\" ) == NULL ) {\n char size [ 12 ] ;\n evutil_snprintf ( size , sizeof ( size ) , \"%ld\" , ( long ) EVBUFFER_LENGTH ( req -> output_buffer ) ) ;\n evhttp_add_header ( req -> output_headers , \"Content-Length\" , size ) ;\n }\n }"}
{"idx": 18384, "target": 0, "func": "static int send_xmessage_using_XAUTHORITY ( struct proclistlist * pll , int lokke , char * message ) {\n if ( lokke == pll -> length ) return 0 ;\n {\n char * xa_filename = get_pid_environ_val ( pll -> proclist [ lokke ] . pid , \"XAUTHORITY\" ) ;\n if ( xa_filename != NULL ) {\n if ( send_xmessage ( xa_filename , message ) == 1 ) {\n free ( xa_filename ) ;\n return 1 ;\n }\n }\n free ( xa_filename ) ;\n }\n return send_xmessage_using_XAUTHORITY ( pll , lokke + 1 , message ) ;\n }"}
{"idx": 18385, "target": 0, "func": "static void * Type_Signature_Dup ( struct _cms_typehandler_struct * self , const void * Ptr , cmsUInt32Number n ) {\n return _cmsDupMem ( self -> ContextID , Ptr , n * sizeof ( cmsSignature ) ) ;\n }"}
{"idx": 18386, "target": 0, "func": "static int dissect_pkt_ccc ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n proto_item * ti = NULL ;\n proto_tree * pkt_ccc_tree = NULL ;\n if ( tree ) {\n ti = proto_tree_add_item ( tree , proto_pkt_ccc , tvb , 0 , 12 , ENC_NA ) ;\n pkt_ccc_tree = proto_item_add_subtree ( ti , ett_pkt_ccc ) ;\n proto_tree_add_item ( pkt_ccc_tree , hf_pkt_ccc_id , tvb , 0 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( pkt_ccc_tree , hf_pkt_ccc_ts , tvb , 4 , 8 , ENC_TIME_NTP | ENC_BIG_ENDIAN ) ;\n }\n return dissect_rtp ( tvb , pinfo , tree , data ) ;\n }"}
{"idx": 18387, "target": 0, "func": "static void e1000e_set_ims ( E1000ECore * core , int index , uint32_t val ) {\n static const uint32_t ims_ext_mask = E1000_IMS_RXQ0 | E1000_IMS_RXQ1 | E1000_IMS_TXQ0 | E1000_IMS_TXQ1 | E1000_IMS_OTHER ;\n static const uint32_t ims_valid_mask = E1000_IMS_TXDW | E1000_IMS_TXQE | E1000_IMS_LSC | E1000_IMS_RXDMT0 | E1000_IMS_RXO | E1000_IMS_RXT0 | E1000_IMS_MDAC | E1000_IMS_TXD_LOW | E1000_IMS_SRPD | E1000_IMS_ACK | E1000_IMS_MNG | E1000_IMS_RXQ0 | E1000_IMS_RXQ1 | E1000_IMS_TXQ0 | E1000_IMS_TXQ1 | E1000_IMS_OTHER ;\n uint32_t valid_val = val & ims_valid_mask ;\n trace_e1000e_irq_set_ims ( val , core -> mac [ IMS ] , core -> mac [ IMS ] | valid_val ) ;\n core -> mac [ IMS ] |= valid_val ;\n if ( ( valid_val & ims_ext_mask ) && ( core -> mac [ CTRL_EXT ] & E1000_CTRL_EXT_PBA_CLR ) && msix_enabled ( core -> owner ) ) {\n e1000e_msix_clear ( core , valid_val ) ;\n }\n if ( ( valid_val == ims_valid_mask ) && ( core -> mac [ CTRL_EXT ] & E1000_CTRL_EXT_INT_TIMERS_CLEAR_ENA ) ) {\n trace_e1000e_irq_fire_all_timers ( val ) ;\n e1000e_intrmgr_fire_all_timers ( core ) ;\n }\n e1000e_update_interrupt_state ( core ) ;\n }"}
{"idx": 18388, "target": 0, "func": "int ssl3_enc ( SSL * s , SSL3_RECORD * inrecs , unsigned int n_recs , int send ) {\n SSL3_RECORD * rec ;\n EVP_CIPHER_CTX * ds ;\n unsigned long l ;\n int bs , i , mac_size = 0 ;\n const EVP_CIPHER * enc ;\n rec = inrecs ;\n if ( n_recs != 1 ) return 0 ;\n if ( send ) {\n ds = s -> enc_write_ctx ;\n if ( s -> enc_write_ctx == NULL ) enc = NULL ;\n else enc = EVP_CIPHER_CTX_cipher ( s -> enc_write_ctx ) ;\n }\n else {\n ds = s -> enc_read_ctx ;\n if ( s -> enc_read_ctx == NULL ) enc = NULL ;\n else enc = EVP_CIPHER_CTX_cipher ( s -> enc_read_ctx ) ;\n }\n if ( ( s -> session == NULL ) || ( ds == NULL ) || ( enc == NULL ) ) {\n memmove ( rec -> data , rec -> input , rec -> length ) ;\n rec -> input = rec -> data ;\n }\n else {\n l = rec -> length ;\n bs = EVP_CIPHER_CTX_block_size ( ds ) ;\n if ( ( bs != 1 ) && send ) {\n i = bs - ( ( int ) l % bs ) ;\n l += i ;\n memset ( & rec -> input [ rec -> length ] , 0 , i ) ;\n rec -> length += i ;\n rec -> input [ l - 1 ] = ( i - 1 ) ;\n }\n if ( ! send ) {\n if ( l == 0 || l % bs != 0 ) return 0 ;\n }\n if ( EVP_Cipher ( ds , rec -> data , rec -> input , l ) < 1 ) return - 1 ;\n if ( EVP_MD_CTX_md ( s -> read_hash ) != NULL ) mac_size = EVP_MD_CTX_size ( s -> read_hash ) ;\n if ( ( bs != 1 ) && ! send ) return ssl3_cbc_remove_padding ( rec , bs , mac_size ) ;\n }\n return ( 1 ) ;\n }"}
{"idx": 18389, "target": 0, "func": "static jpc_enc_cp_t * cp_create ( const char * optstr , jas_image_t * image ) {\n jpc_enc_cp_t * cp ;\n jas_tvparser_t * tvp ;\n int ret ;\n int numilyrrates ;\n double * ilyrrates ;\n int i ;\n int tagid ;\n jpc_enc_tcp_t * tcp ;\n jpc_enc_tccp_t * tccp ;\n jpc_enc_ccp_t * ccp ;\n int cmptno ;\n uint_fast16_t rlvlno ;\n uint_fast16_t prcwidthexpn ;\n uint_fast16_t prcheightexpn ;\n bool enablemct ;\n uint_fast32_t jp2overhead ;\n uint_fast16_t lyrno ;\n uint_fast32_t hsteplcm ;\n uint_fast32_t vsteplcm ;\n bool mctvalid ;\n tvp = 0 ;\n cp = 0 ;\n ilyrrates = 0 ;\n numilyrrates = 0 ;\n if ( ! ( cp = jas_malloc ( sizeof ( jpc_enc_cp_t ) ) ) ) {\n goto error ;\n }\n prcwidthexpn = 15 ;\n prcheightexpn = 15 ;\n enablemct = true ;\n jp2overhead = 0 ;\n cp -> ccps = 0 ;\n cp -> debug = 0 ;\n cp -> imgareatlx = UINT_FAST32_MAX ;\n cp -> imgareatly = UINT_FAST32_MAX ;\n cp -> refgrdwidth = 0 ;\n cp -> refgrdheight = 0 ;\n cp -> tilegrdoffx = UINT_FAST32_MAX ;\n cp -> tilegrdoffy = UINT_FAST32_MAX ;\n cp -> tilewidth = 0 ;\n cp -> tileheight = 0 ;\n cp -> numcmpts = jas_image_numcmpts ( image ) ;\n hsteplcm = 1 ;\n vsteplcm = 1 ;\n for ( cmptno = 0 ;\n cmptno < jas_image_numcmpts ( image ) ;\n ++ cmptno ) {\n if ( jas_image_cmptbrx ( image , cmptno ) + jas_image_cmpthstep ( image , cmptno ) <= jas_image_brx ( image ) || jas_image_cmptbry ( image , cmptno ) + jas_image_cmptvstep ( image , cmptno ) <= jas_image_bry ( image ) ) {\n jas_eprintf ( \"unsupported image type\\n\" ) ;\n goto error ;\n }\n hsteplcm *= jas_image_cmpthstep ( image , cmptno ) ;\n vsteplcm *= jas_image_cmptvstep ( image , cmptno ) ;\n }\n if ( ! ( cp -> ccps = jas_alloc2 ( cp -> numcmpts , sizeof ( jpc_enc_ccp_t ) ) ) ) {\n goto error ;\n }\n for ( cmptno = 0 , ccp = cp -> ccps ;\n cmptno < JAS_CAST ( int , cp -> numcmpts ) ;\n ++ cmptno , ++ ccp ) {\n ccp -> sampgrdstepx = jas_image_cmpthstep ( image , cmptno ) ;\n ccp -> sampgrdstepy = jas_image_cmptvstep ( image , cmptno ) ;\n ccp -> sampgrdsubstepx = 0 ;\n ccp -> sampgrdsubstepx = 0 ;\n ccp -> prec = jas_image_cmptprec ( image , cmptno ) ;\n ccp -> sgnd = jas_image_cmptsgnd ( image , cmptno ) ;\n ccp -> numstepsizes = 0 ;\n memset ( ccp -> stepsizes , 0 , sizeof ( ccp -> stepsizes ) ) ;\n }\n cp -> rawsize = jas_image_rawsize ( image ) ;\n cp -> totalsize = UINT_FAST32_MAX ;\n tcp = & cp -> tcp ;\n tcp -> csty = 0 ;\n tcp -> intmode = true ;\n tcp -> prg = JPC_COD_LRCPPRG ;\n tcp -> numlyrs = 1 ;\n tcp -> ilyrrates = 0 ;\n tccp = & cp -> tccp ;\n tccp -> csty = 0 ;\n tccp -> maxrlvls = 6 ;\n tccp -> cblkwidthexpn = 6 ;\n tccp -> cblkheightexpn = 6 ;\n tccp -> cblksty = 0 ;\n tccp -> numgbits = 2 ;\n if ( ! ( tvp = jas_tvparser_create ( optstr ? optstr : \"\" ) ) ) {\n goto error ;\n }\n while ( ! ( ret = jas_tvparser_next ( tvp ) ) ) {\n switch ( jas_taginfo_nonull ( jas_taginfos_lookup ( encopts , jas_tvparser_gettag ( tvp ) ) ) -> id ) {\n case OPT_DEBUG : cp -> debug = atoi ( jas_tvparser_getval ( tvp ) ) ;\n break ;\n case OPT_IMGAREAOFFX : cp -> imgareatlx = atoi ( jas_tvparser_getval ( tvp ) ) ;\n break ;\n case OPT_IMGAREAOFFY : cp -> imgareatly = atoi ( jas_tvparser_getval ( tvp ) ) ;\n break ;\n case OPT_TILEGRDOFFX : cp -> tilegrdoffx = atoi ( jas_tvparser_getval ( tvp ) ) ;\n break ;\n case OPT_TILEGRDOFFY : cp -> tilegrdoffy = atoi ( jas_tvparser_getval ( tvp ) ) ;\n break ;\n case OPT_TILEWIDTH : cp -> tilewidth = atoi ( jas_tvparser_getval ( tvp ) ) ;\n break ;\n case OPT_TILEHEIGHT : cp -> tileheight = atoi ( jas_tvparser_getval ( tvp ) ) ;\n break ;\n case OPT_PRCWIDTH : prcwidthexpn = jpc_floorlog2 ( atoi ( jas_tvparser_getval ( tvp ) ) ) ;\n break ;\n case OPT_PRCHEIGHT : prcheightexpn = jpc_floorlog2 ( atoi ( jas_tvparser_getval ( tvp ) ) ) ;\n break ;\n case OPT_CBLKWIDTH : tccp -> cblkwidthexpn = jpc_floorlog2 ( atoi ( jas_tvparser_getval ( tvp ) ) ) ;\n break ;\n case OPT_CBLKHEIGHT : tccp -> cblkheightexpn = jpc_floorlog2 ( atoi ( jas_tvparser_getval ( tvp ) ) ) ;\n break ;\n case OPT_MODE : if ( ( tagid = jas_taginfo_nonull ( jas_taginfos_lookup ( modetab , jas_tvparser_getval ( tvp ) ) ) -> id ) < 0 ) {\n jas_eprintf ( \"ignoring invalid mode %s\\n\" , jas_tvparser_getval ( tvp ) ) ;\n }\n else {\n tcp -> intmode = ( tagid == MODE_INT ) ;\n }\n break ;\n case OPT_PRG : if ( ( tagid = jas_taginfo_nonull ( jas_taginfos_lookup ( prgordtab , jas_tvparser_getval ( tvp ) ) ) -> id ) < 0 ) {\n jas_eprintf ( \"ignoring invalid progression order %s\\n\" , jas_tvparser_getval ( tvp ) ) ;\n }\n else {\n tcp -> prg = tagid ;\n }\n break ;\n case OPT_NOMCT : enablemct = false ;\n break ;\n case OPT_MAXRLVLS : tccp -> maxrlvls = atoi ( jas_tvparser_getval ( tvp ) ) ;\n break ;\n case OPT_SOP : cp -> tcp . csty |= JPC_COD_SOP ;\n break ;\n case OPT_EPH : cp -> tcp . csty |= JPC_COD_EPH ;\n break ;\n case OPT_LAZY : tccp -> cblksty |= JPC_COX_LAZY ;\n break ;\n case OPT_TERMALL : tccp -> cblksty |= JPC_COX_TERMALL ;\n break ;\n case OPT_SEGSYM : tccp -> cblksty |= JPC_COX_SEGSYM ;\n break ;\n case OPT_VCAUSAL : tccp -> cblksty |= JPC_COX_VSC ;\n break ;\n case OPT_RESET : tccp -> cblksty |= JPC_COX_RESET ;\n break ;\n case OPT_PTERM : tccp -> cblksty |= JPC_COX_PTERM ;\n break ;\n case OPT_NUMGBITS : cp -> tccp . numgbits = atoi ( jas_tvparser_getval ( tvp ) ) ;\n break ;\n case OPT_RATE : if ( ratestrtosize ( jas_tvparser_getval ( tvp ) , cp -> rawsize , & cp -> totalsize ) ) {\n jas_eprintf ( \"ignoring bad rate specifier %s\\n\" , jas_tvparser_getval ( tvp ) ) ;\n }\n break ;\n case OPT_ILYRRATES : if ( jpc_atoaf ( jas_tvparser_getval ( tvp ) , & numilyrrates , & ilyrrates ) ) {\n jas_eprintf ( \"warning: invalid intermediate layer rates specifier ignored (%s)\\n\" , jas_tvparser_getval ( tvp ) ) ;\n }\n break ;\n case OPT_JP2OVERHEAD : jp2overhead = atoi ( jas_tvparser_getval ( tvp ) ) ;\n break ;\n default : jas_eprintf ( \"warning: ignoring invalid option %s\\n\" , jas_tvparser_gettag ( tvp ) ) ;\n break ;\n }\n }\n jas_tvparser_destroy ( tvp ) ;\n tvp = 0 ;\n if ( cp -> totalsize != UINT_FAST32_MAX ) {\n cp -> totalsize = ( cp -> totalsize > jp2overhead ) ? ( cp -> totalsize - jp2overhead ) : 0 ;\n }\n if ( cp -> imgareatlx == UINT_FAST32_MAX ) {\n cp -> imgareatlx = 0 ;\n }\n else {\n if ( hsteplcm != 1 ) {\n jas_eprintf ( \"warning: overriding imgareatlx value\\n\" ) ;\n }\n cp -> imgareatlx *= hsteplcm ;\n }\n if ( cp -> imgareatly == UINT_FAST32_MAX ) {\n cp -> imgareatly = 0 ;\n }\n else {\n if ( vsteplcm != 1 ) {\n jas_eprintf ( \"warning: overriding imgareatly value\\n\" ) ;\n }\n cp -> imgareatly *= vsteplcm ;\n }\n cp -> refgrdwidth = cp -> imgareatlx + jas_image_width ( image ) ;\n cp -> refgrdheight = cp -> imgareatly + jas_image_height ( image ) ;\n if ( cp -> tilegrdoffx == UINT_FAST32_MAX ) {\n cp -> tilegrdoffx = cp -> imgareatlx ;\n }\n if ( cp -> tilegrdoffy == UINT_FAST32_MAX ) {\n cp -> tilegrdoffy = cp -> imgareatly ;\n }\n if ( ! cp -> tilewidth ) {\n cp -> tilewidth = cp -> refgrdwidth - cp -> tilegrdoffx ;\n }\n if ( ! cp -> tileheight ) {\n cp -> tileheight = cp -> refgrdheight - cp -> tilegrdoffy ;\n }\n if ( cp -> numcmpts == 3 ) {\n mctvalid = true ;\n for ( cmptno = 0 ;\n cmptno < jas_image_numcmpts ( image ) ;\n ++ cmptno ) {\n if ( jas_image_cmptprec ( image , cmptno ) != jas_image_cmptprec ( image , 0 ) || jas_image_cmptsgnd ( image , cmptno ) != jas_image_cmptsgnd ( image , 0 ) || jas_image_cmptwidth ( image , cmptno ) != jas_image_cmptwidth ( image , 0 ) || jas_image_cmptheight ( image , cmptno ) != jas_image_cmptheight ( image , 0 ) ) {\n mctvalid = false ;\n }\n }\n }\n else {\n mctvalid = false ;\n }\n if ( mctvalid && enablemct && jas_clrspc_fam ( jas_image_clrspc ( image ) ) != JAS_CLRSPC_FAM_RGB ) {\n jas_eprintf ( \"warning: color space apparently not RGB\\n\" ) ;\n }\n if ( mctvalid && enablemct && jas_clrspc_fam ( jas_image_clrspc ( image ) ) == JAS_CLRSPC_FAM_RGB ) {\n tcp -> mctid = ( tcp -> intmode ) ? ( JPC_MCT_RCT ) : ( JPC_MCT_ICT ) ;\n }\n else {\n tcp -> mctid = JPC_MCT_NONE ;\n }\n tccp -> qmfbid = ( tcp -> intmode ) ? ( JPC_COX_RFT ) : ( JPC_COX_INS ) ;\n for ( rlvlno = 0 ;\n rlvlno < tccp -> maxrlvls ;\n ++ rlvlno ) {\n tccp -> prcwidthexpns [ rlvlno ] = prcwidthexpn ;\n tccp -> prcheightexpns [ rlvlno ] = prcheightexpn ;\n }\n if ( prcwidthexpn != 15 || prcheightexpn != 15 ) {\n tccp -> csty |= JPC_COX_PRT ;\n }\n if ( ! cp -> tilewidth ) {\n jas_eprintf ( \"invalid tile width %lu\\n\" , ( unsigned long ) cp -> tilewidth ) ;\n goto error ;\n }\n if ( ! cp -> tileheight ) {\n jas_eprintf ( \"invalid tile height %lu\\n\" , ( unsigned long ) cp -> tileheight ) ;\n goto error ;\n }\n if ( cp -> tilegrdoffx > cp -> imgareatlx || cp -> tilegrdoffy > cp -> imgareatly || cp -> tilegrdoffx + cp -> tilewidth < cp -> imgareatlx || cp -> tilegrdoffy + cp -> tileheight < cp -> imgareatly ) {\n jas_eprintf ( \"invalid tile grid offset (%lu, %lu)\\n\" , ( unsigned long ) cp -> tilegrdoffx , ( unsigned long ) cp -> tilegrdoffy ) ;\n goto error ;\n }\n cp -> numhtiles = JPC_CEILDIV ( cp -> refgrdwidth - cp -> tilegrdoffx , cp -> tilewidth ) ;\n cp -> numvtiles = JPC_CEILDIV ( cp -> refgrdheight - cp -> tilegrdoffy , cp -> tileheight ) ;\n cp -> numtiles = cp -> numhtiles * cp -> numvtiles ;\n if ( ilyrrates && numilyrrates > 0 ) {\n tcp -> numlyrs = numilyrrates + 1 ;\n if ( ! ( tcp -> ilyrrates = jas_alloc2 ( ( tcp -> numlyrs - 1 ) , sizeof ( jpc_fix_t ) ) ) ) {\n goto error ;\n }\n for ( i = 0 ;\n i < JAS_CAST ( int , tcp -> numlyrs - 1 ) ;\n ++ i ) {\n tcp -> ilyrrates [ i ] = jpc_dbltofix ( ilyrrates [ i ] ) ;\n }\n }\n if ( cp -> totalsize == UINT_FAST32_MAX && ( ! cp -> tcp . intmode ) ) {\n jas_eprintf ( \"cannot use real mode for lossless coding\\n\" ) ;\n goto error ;\n }\n if ( prcwidthexpn > 15 ) {\n jas_eprintf ( \"invalid precinct width\\n\" ) ;\n goto error ;\n }\n if ( prcheightexpn > 15 ) {\n jas_eprintf ( \"invalid precinct height\\n\" ) ;\n goto error ;\n }\n if ( cp -> tccp . cblkwidthexpn < 2 || cp -> tccp . cblkwidthexpn > 12 ) {\n jas_eprintf ( \"invalid code block width %d\\n\" , JPC_POW2 ( cp -> tccp . cblkwidthexpn ) ) ;\n goto error ;\n }\n if ( cp -> tccp . cblkheightexpn < 2 || cp -> tccp . cblkheightexpn > 12 ) {\n jas_eprintf ( \"invalid code block height %d\\n\" , JPC_POW2 ( cp -> tccp . cblkheightexpn ) ) ;\n goto error ;\n }\n if ( cp -> tccp . cblkwidthexpn + cp -> tccp . cblkheightexpn > 12 ) {\n jas_eprintf ( \"code block size too large\\n\" ) ;\n goto error ;\n }\n if ( cp -> tcp . numlyrs > 16384 ) {\n jas_eprintf ( \"too many layers\\n\" ) ;\n goto error ;\n }\n if ( cp -> tccp . maxrlvls < 1 ) {\n jas_eprintf ( \"must be at least one resolution level\\n\" ) ;\n goto error ;\n }\n if ( cp -> tccp . numgbits > 8 ) {\n jas_eprintf ( \"invalid number of guard bits\\n\" ) ;\n goto error ;\n }\n if ( cp -> totalsize != UINT_FAST32_MAX && cp -> totalsize > cp -> rawsize ) {\n jas_eprintf ( \"warning: specified rate is unreasonably large (%lu > %lu)\\n\" , ( unsigned long ) cp -> totalsize , ( unsigned long ) cp -> rawsize ) ;\n }\n if ( tcp -> numlyrs > 1 ) {\n for ( lyrno = 0 ;\n lyrno + 2 < tcp -> numlyrs ;\n ++ lyrno ) {\n if ( tcp -> ilyrrates [ lyrno ] >= tcp -> ilyrrates [ lyrno + 1 ] ) {\n jas_eprintf ( \"intermediate layer rates must increase monotonically\\n\" ) ;\n goto error ;\n }\n }\n if ( cp -> totalsize != UINT_FAST32_MAX ) {\n for ( lyrno = 0 ;\n lyrno < tcp -> numlyrs - 1 ;\n ++ lyrno ) {\n if ( jpc_fixtodbl ( tcp -> ilyrrates [ lyrno ] ) > ( ( double ) cp -> totalsize ) / cp -> rawsize ) {\n jas_eprintf ( \"warning: intermediate layer rates must be less than overall rate\\n\" ) ;\n goto error ;\n }\n }\n }\n }\n if ( ilyrrates ) {\n jas_free ( ilyrrates ) ;\n }\n return cp ;\n error : if ( ilyrrates ) {\n jas_free ( ilyrrates ) ;\n }\n if ( tvp ) {\n jas_tvparser_destroy ( tvp ) ;\n }\n if ( cp ) {\n jpc_enc_cp_destroy ( cp ) ;\n }\n return 0 ;\n }"}
{"idx": 18390, "target": 0, "func": "static int dissect_btgatt_microbit_pwm_control ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , void * data ) {\n btatt_data_t * att_data = ( btatt_data_t * ) data ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) return - 1 ;\n proto_tree_add_item ( tree , hf_gatt_microbit_pwm_control , tvb , 0 , tvb_captured_length ( tvb ) , ENC_UTF_8 ) ;\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 18391, "target": 1, "func": "static void mark_commit ( struct commit * c , void * data ) {\n mark_object ( & c -> object , NULL , NULL , data ) ;\n }"}
{"idx": 18392, "target": 0, "func": "static gpgme_error_t uiserver_encrypt ( void * engine , gpgme_key_t recp [ ] , gpgme_encrypt_flags_t flags , gpgme_data_t plain , gpgme_data_t ciph , int use_armor ) {\n engine_uiserver_t uiserver = engine ;\n gpgme_error_t err ;\n const char * protocol ;\n char * cmd ;\n if ( ! uiserver ) return gpg_error ( GPG_ERR_INV_VALUE ) ;\n if ( uiserver -> protocol == GPGME_PROTOCOL_DEFAULT ) protocol = \"\" ;\n else if ( uiserver -> protocol == GPGME_PROTOCOL_OpenPGP ) protocol = \" --protocol=OpenPGP\" ;\n else if ( uiserver -> protocol == GPGME_PROTOCOL_CMS ) protocol = \" --protocol=CMS\" ;\n else return gpgme_error ( GPG_ERR_UNSUPPORTED_PROTOCOL ) ;\n if ( flags & GPGME_ENCRYPT_PREPARE ) {\n if ( ! recp || plain || ciph ) return gpg_error ( GPG_ERR_INV_VALUE ) ;\n if ( asprintf ( & cmd , \"PREP_ENCRYPT%s%s\" , protocol , ( flags & GPGME_ENCRYPT_EXPECT_SIGN ) ? \" --expect-sign\" : \"\" ) < 0 ) return gpg_error_from_syserror ( ) ;\n }\n else {\n if ( ! plain || ! ciph ) return gpg_error ( GPG_ERR_INV_VALUE ) ;\n if ( asprintf ( & cmd , \"ENCRYPT%s\" , protocol ) < 0 ) return gpg_error_from_syserror ( ) ;\n }\n if ( plain ) {\n uiserver -> input_cb . data = plain ;\n err = uiserver_set_fd ( uiserver , INPUT_FD , map_data_enc ( uiserver -> input_cb . data ) ) ;\n if ( err ) {\n free ( cmd ) ;\n return err ;\n }\n }\n if ( ciph ) {\n uiserver -> output_cb . data = ciph ;\n err = uiserver_set_fd ( uiserver , OUTPUT_FD , use_armor ? \"--armor\" : map_data_enc ( uiserver -> output_cb . data ) ) ;\n if ( err ) {\n free ( cmd ) ;\n return err ;\n }\n }\n uiserver -> inline_data = NULL ;\n if ( recp ) {\n err = set_recipients ( uiserver , recp ) ;\n if ( err ) {\n free ( cmd ) ;\n return err ;\n }\n }\n err = start ( uiserver , cmd ) ;\n free ( cmd ) ;\n return err ;\n }"}
{"idx": 18393, "target": 0, "func": "void kadmin_modpol ( int argc , char * argv [ ] ) {\n krb5_error_code retval ;\n long mask ;\n kadm5_policy_ent_rec policy ;\n memset ( & policy , 0 , sizeof ( policy ) ) ;\n if ( kadmin_parse_policy_args ( argc , argv , & policy , & mask , \"modify_policy\" ) ) {\n kadmin_addmodpol_usage ( \"modify_policy\" ) ;\n return ;\n }\n policy . policy = argv [ argc - 1 ] ;\n retval = kadm5_modify_policy ( handle , & policy , mask ) ;\n if ( retval ) {\n com_err ( \"modify_policy\" , retval , _ ( \"while modifying policy \\\"%s\\\".\" ) , policy . policy ) ;\n }\n }"}
{"idx": 18394, "target": 0, "func": "double mcv_selectivity ( VariableStatData * vardata , FmgrInfo * opproc , Datum constval , bool varonleft , double * sumcommonp ) {\n double mcv_selec , sumcommon ;\n Datum * values ;\n int nvalues ;\n float4 * numbers ;\n int nnumbers ;\n int i ;\n mcv_selec = 0.0 ;\n sumcommon = 0.0 ;\n if ( HeapTupleIsValid ( vardata -> statsTuple ) && statistic_proc_security_check ( vardata , opproc -> fn_oid ) && get_attstatsslot ( vardata -> statsTuple , vardata -> atttype , vardata -> atttypmod , STATISTIC_KIND_MCV , InvalidOid , NULL , & values , & nvalues , & numbers , & nnumbers ) ) {\n for ( i = 0 ;\n i < nvalues ;\n i ++ ) {\n if ( varonleft ? DatumGetBool ( FunctionCall2Coll ( opproc , DEFAULT_COLLATION_OID , values [ i ] , constval ) ) : DatumGetBool ( FunctionCall2Coll ( opproc , DEFAULT_COLLATION_OID , constval , values [ i ] ) ) ) mcv_selec += numbers [ i ] ;\n sumcommon += numbers [ i ] ;\n }\n free_attstatsslot ( vardata -> atttype , values , nvalues , numbers , nnumbers ) ;\n }\n * sumcommonp = sumcommon ;\n return mcv_selec ;\n }"}
{"idx": 18395, "target": 1, "func": "static int eightsvx_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n EightSvxContext * esc = avctx -> priv_data ;\n AVFrame * frame = data ;\n int buf_size ;\n int ch , ret ;\n int is_compr = ( avctx -> codec_id != AV_CODEC_ID_PCM_S8_PLANAR ) ;\n if ( avpkt -> data ) {\n int hdr_size = is_compr ? 2 : 0 ;\n int chan_size = ( avpkt -> size - hdr_size * avctx -> channels ) / avctx -> channels ;\n if ( avpkt -> size < hdr_size * avctx -> channels ) {\n av_log ( avctx , AV_LOG_ERROR , \"packet size is too small\\n\" ) ;\n return AVERROR ( EINVAL ) ;\n }\n if ( esc -> data [ 0 ] ) {\n av_log ( avctx , AV_LOG_ERROR , \"unexpected data after first packet\\n\" ) ;\n return AVERROR ( EINVAL ) ;\n }\n if ( is_compr ) {\n esc -> fib_acc [ 0 ] = avpkt -> data [ 1 ] + 128 ;\n if ( avctx -> channels == 2 ) esc -> fib_acc [ 1 ] = avpkt -> data [ 2 + chan_size + 1 ] + 128 ;\n }\n esc -> data_idx = 0 ;\n esc -> data_size = chan_size ;\n if ( ! ( esc -> data [ 0 ] = av_malloc ( chan_size ) ) ) return AVERROR ( ENOMEM ) ;\n if ( avctx -> channels == 2 ) {\n if ( ! ( esc -> data [ 1 ] = av_malloc ( chan_size ) ) ) {\n av_freep ( & esc -> data [ 0 ] ) ;\n return AVERROR ( ENOMEM ) ;\n }\n }\n memcpy ( esc -> data [ 0 ] , & avpkt -> data [ hdr_size ] , chan_size ) ;\n if ( avctx -> channels == 2 ) memcpy ( esc -> data [ 1 ] , & avpkt -> data [ 2 * hdr_size + chan_size ] , chan_size ) ;\n }\n if ( ! esc -> data [ 0 ] ) {\n av_log ( avctx , AV_LOG_ERROR , \"unexpected empty packet\\n\" ) ;\n return AVERROR ( EINVAL ) ;\n }\n buf_size = FFMIN ( MAX_FRAME_SIZE , esc -> data_size - esc -> data_idx ) ;\n if ( buf_size <= 0 ) {\n * got_frame_ptr = 0 ;\n return avpkt -> size ;\n }\n frame -> nb_samples = buf_size * ( is_compr + 1 ) ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n for ( ch = 0 ;\n ch < avctx -> channels ;\n ch ++ ) {\n if ( is_compr ) {\n delta_decode ( frame -> data [ ch ] , & esc -> data [ ch ] [ esc -> data_idx ] , buf_size , & esc -> fib_acc [ ch ] , esc -> table ) ;\n }\n else {\n raw_decode ( frame -> data [ ch ] , & esc -> data [ ch ] [ esc -> data_idx ] , buf_size ) ;\n }\n }\n esc -> data_idx += buf_size ;\n * got_frame_ptr = 1 ;\n return avpkt -> size ;\n }"}
{"idx": 18396, "target": 0, "func": "static void tokenize_b ( int plane , int block , BLOCK_SIZE plane_bsize , TX_SIZE tx_size , void * arg ) {\n struct tokenize_b_args * const args = arg ;\n VP9_COMP * cpi = args -> cpi ;\n MACROBLOCKD * xd = args -> xd ;\n TOKENEXTRA * * tp = args -> tp ;\n uint8_t token_cache [ 32 * 32 ] ;\n struct macroblock_plane * p = & cpi -> mb . plane [ plane ] ;\n struct macroblockd_plane * pd = & xd -> plane [ plane ] ;\n MB_MODE_INFO * mbmi = & xd -> mi [ 0 ] . src_mi -> mbmi ;\n int pt ;\n int c ;\n TOKENEXTRA * t = * tp ;\n int eob = p -> eobs [ block ] ;\n const PLANE_TYPE type = pd -> plane_type ;\n const tran_low_t * qcoeff = BLOCK_OFFSET ( p -> qcoeff , block ) ;\n const int segment_id = mbmi -> segment_id ;\n const int16_t * scan , * nb ;\n const scan_order * so ;\n const int ref = is_inter_block ( mbmi ) ;\n unsigned int ( * const counts ) [ COEFF_CONTEXTS ] [ ENTROPY_TOKENS ] = cpi -> coef_counts [ tx_size ] [ type ] [ ref ] ;\n vp9_prob ( * const coef_probs ) [ COEFF_CONTEXTS ] [ UNCONSTRAINED_NODES ] = cpi -> common . fc . coef_probs [ tx_size ] [ type ] [ ref ] ;\n unsigned int ( * const eob_branch ) [ COEFF_CONTEXTS ] = cpi -> common . counts . eob_branch [ tx_size ] [ type ] [ ref ] ;\n const uint8_t * const band = get_band_translate ( tx_size ) ;\n const int seg_eob = get_tx_eob ( & cpi -> common . seg , segment_id , tx_size ) ;\n const TOKENVALUE * dct_value_tokens ;\n int aoff , loff ;\n txfrm_block_to_raster_xy ( plane_bsize , tx_size , block , & aoff , & loff ) ;\n pt = get_entropy_context ( tx_size , pd -> above_context + aoff , pd -> left_context + loff ) ;\n so = get_scan ( xd , tx_size , type , block ) ;\n scan = so -> scan ;\n nb = so -> neighbors ;\n c = 0 ;\n # if CONFIG_VP9_HIGH && CONFIG_HIGH_QUANT if ( cpi -> common . profile >= PROFILE_2 ) {\n dct_value_tokens = ( cpi -> common . bit_depth == VPX_BITS_10 ? vp9_dct_value_tokens_high10_ptr : vp9_dct_value_tokens_high12_ptr ) ;\n }\n else {\n dct_value_tokens = vp9_dct_value_tokens_ptr ;\n }\n # else dct_value_tokens = vp9_dct_value_tokens_ptr ;\n # endif while ( c < eob ) {\n int v = 0 ;\n int skip_eob = 0 ;\n v = qcoeff [ scan [ c ] ] ;\n while ( ! v ) {\n add_token_no_extra ( & t , coef_probs [ band [ c ] ] [ pt ] , ZERO_TOKEN , skip_eob , counts [ band [ c ] ] [ pt ] ) ;\n eob_branch [ band [ c ] ] [ pt ] += ! skip_eob ;\n skip_eob = 1 ;\n token_cache [ scan [ c ] ] = 0 ;\n ++ c ;\n pt = get_coef_context ( nb , token_cache , c ) ;\n v = qcoeff [ scan [ c ] ] ;\n }\n add_token ( & t , coef_probs [ band [ c ] ] [ pt ] , dct_value_tokens [ v ] . extra , ( uint8_t ) dct_value_tokens [ v ] . token , ( uint8_t ) skip_eob , counts [ band [ c ] ] [ pt ] ) ;\n eob_branch [ band [ c ] ] [ pt ] += ! skip_eob ;\n token_cache [ scan [ c ] ] = vp9_pt_energy_class [ dct_value_tokens [ v ] . token ] ;\n ++ c ;\n pt = get_coef_context ( nb , token_cache , c ) ;\n }\n if ( c < seg_eob ) {\n add_token_no_extra ( & t , coef_probs [ band [ c ] ] [ pt ] , EOB_TOKEN , 0 , counts [ band [ c ] ] [ pt ] ) ;\n ++ eob_branch [ band [ c ] ] [ pt ] ;\n }\n * tp = t ;\n vp9_set_contexts ( xd , pd , plane_bsize , tx_size , c > 0 , aoff , loff ) ;\n }"}
{"idx": 18397, "target": 1, "func": "static void cpu_signal ( int sig ) {\n if ( cpu_single_env ) {\n cpu_exit ( ENV_GET_CPU ( cpu_single_env ) ) ;\n }\n exit_request = 1 ;\n }"}
{"idx": 18398, "target": 0, "func": "static int rac_get_bits ( RangeCoder * c , int nbits ) {\n int val ;\n c -> range >>= nbits ;\n val = c -> low / c -> range ;\n c -> low -= c -> range * val ;\n if ( c -> range < RAC_BOTTOM ) rac_normalise ( c ) ;\n return val ;\n }"}
{"idx": 18399, "target": 0, "func": "int parse_CColumnSet ( tvbuff_t * tvb , int offset , proto_tree * tree , const char * fmt , ... ) {\n guint32 count , v , i ;\n proto_item * item ;\n const char * txt ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n count = tvb_get_letohl ( tvb , offset ) ;\n offset += 4 ;\n proto_tree_add_subtree ( tree , tvb , offset , count * 4 , ett_mswsp_uin32_array , & item , txt ) ;\n proto_item_append_text ( item , \" Count %u [\" , count ) ;\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n v = tvb_get_letohl ( tvb , offset ) ;\n offset += 4 ;\n if ( i > 0 ) {\n proto_item_append_text ( item , \",%u\" , v ) ;\n }\n else {\n proto_item_append_text ( item , \"%u\" , v ) ;\n }\n }\n proto_item_append_text ( item , \"]\" ) ;\n return offset ;\n }"}
{"idx": 18400, "target": 0, "func": "static int file_write ( jas_stream_obj_t * obj , char * buf , int cnt ) {\n jas_stream_fileobj_t * fileobj = JAS_CAST ( jas_stream_fileobj_t * , obj ) ;\n return write ( fileobj -> fd , buf , cnt ) ;\n }"}
{"idx": 18401, "target": 0, "func": "static void y4m_convert_444_420jpeg ( y4m_input * _y4m , unsigned char * _dst , unsigned char * _aux ) {\n unsigned char * tmp ;\n int c_w ;\n int c_h ;\n int c_sz ;\n int dst_c_w ;\n int dst_c_h ;\n int dst_c_sz ;\n int tmp_sz ;\n int pli ;\n int y ;\n int x ;\n _dst += _y4m -> pic_w * _y4m -> pic_h ;\n c_w = ( _y4m -> pic_w + _y4m -> src_c_dec_h - 1 ) / _y4m -> src_c_dec_h ;\n c_h = _y4m -> pic_h ;\n dst_c_w = ( _y4m -> pic_w + _y4m -> dst_c_dec_h - 1 ) / _y4m -> dst_c_dec_h ;\n dst_c_h = ( _y4m -> pic_h + _y4m -> dst_c_dec_v - 1 ) / _y4m -> dst_c_dec_v ;\n c_sz = c_w * c_h ;\n dst_c_sz = dst_c_w * dst_c_h ;\n tmp_sz = dst_c_w * c_h ;\n tmp = _aux + 2 * c_sz ;\n for ( pli = 1 ;\n pli < 3 ;\n pli ++ ) {\n for ( y = 0 ;\n y < c_h ;\n y ++ ) {\n for ( x = 0 ;\n x < OC_MINI ( c_w , 2 ) ;\n x += 2 ) {\n tmp [ x >> 1 ] = OC_CLAMPI ( 0 , ( 64 * _aux [ 0 ] + 78 * _aux [ OC_MINI ( 1 , c_w - 1 ) ] - 17 * _aux [ OC_MINI ( 2 , c_w - 1 ) ] + 3 * _aux [ OC_MINI ( 3 , c_w - 1 ) ] + 64 ) >> 7 , 255 ) ;\n }\n for ( ;\n x < c_w - 3 ;\n x += 2 ) {\n tmp [ x >> 1 ] = OC_CLAMPI ( 0 , ( 3 * ( _aux [ x - 2 ] + _aux [ x + 3 ] ) - 17 * ( _aux [ x - 1 ] + _aux [ x + 2 ] ) + 78 * ( _aux [ x ] + _aux [ x + 1 ] ) + 64 ) >> 7 , 255 ) ;\n }\n for ( ;\n x < c_w ;\n x += 2 ) {\n tmp [ x >> 1 ] = OC_CLAMPI ( 0 , ( 3 * ( _aux [ x - 2 ] + _aux [ c_w - 1 ] ) - * ( _aux [ x - 1 ] + _aux [ OC_MINI ( x + 2 , c_w - 1 ) ] ) + * ( _aux [ x ] + _aux [ OC_MINI ( x + 1 , c_w - 1 ) ] ) + 64 ) >> 7 , 255 ) ;\n }\n tmp += dst_c_w ;\n _aux += c_w ;\n }\n tmp -= tmp_sz ;\n y4m_422jpeg_420jpeg_helper ( _dst , tmp , dst_c_w , c_h ) ;\n _dst += dst_c_sz ;\n }\n }"}
{"idx": 18402, "target": 0, "func": "static int dissect_h225_RasUsageSpecification ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_RasUsageSpecification , RasUsageSpecification_sequence ) ;\n return offset ;\n }"}
{"idx": 18403, "target": 0, "func": "static int dissect_nlm1_cancel ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n return dissect_nlm_cancel ( tvb , 0 , pinfo , tree , 1 , ( rpc_call_info_value * ) data ) ;\n }"}
{"idx": 18404, "target": 1, "func": "static void _LMBCSOpen ## n ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err ) \\ {\n _LMBCSOpenWorker ( _this , pArgs , err , n ) ;\n }\n static void _LMBCSOpenWorker ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err , ulmbcs_byte_t OptGroup ) {\n UConverterDataLMBCS * extraInfo = _this -> extraInfo = ( UConverterDataLMBCS * ) uprv_malloc ( sizeof ( UConverterDataLMBCS ) ) ;\n if ( extraInfo != NULL ) {\n UConverterNamePieces stackPieces ;\n UConverterLoadArgs stackArgs = {\n ( int32_t ) sizeof ( UConverterLoadArgs ) }\n ;\n ulmbcs_byte_t i ;\n uprv_memset ( extraInfo , 0 , sizeof ( UConverterDataLMBCS ) ) ;\n stackArgs . onlyTestIsLoadable = pArgs -> onlyTestIsLoadable ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST && U_SUCCESS ( * err ) ;\n i ++ ) {\n if ( OptGroupByteToCPName [ i ] != NULL ) {\n extraInfo -> OptGrpConverter [ i ] = ucnv_loadSharedData ( OptGroupByteToCPName [ i ] , & stackPieces , & stackArgs , err ) ;\n }\n }\n if ( U_FAILURE ( * err ) || pArgs -> onlyTestIsLoadable ) {\n _LMBCSClose ( _this ) ;\n return ;\n }\n extraInfo -> OptGroup = OptGroup ;\n extraInfo -> localeConverterIndex = FindLMBCSLocale ( pArgs -> locale ) ;\n }\n else {\n * err = U_MEMORY_ALLOCATION_ERROR ;\n }\n }\n static void _LMBCSClose ( UConverter * _this ) {\n if ( _this -> extraInfo != NULL ) {\n ulmbcs_byte_t Ix ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) _this -> extraInfo ;\n for ( Ix = 0 ;\n Ix <= ULMBCS_GRP_LAST ;\n Ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ Ix ] != NULL ) ucnv_unloadSharedDataIfReady ( extraInfo -> OptGrpConverter [ Ix ] ) ;\n }\n if ( ! _this -> isExtraLocal ) {\n uprv_free ( _this -> extraInfo ) ;\n _this -> extraInfo = NULL ;\n }\n }\n }\n typedef struct LMBCSClone {\n UConverter cnv ;\n UConverterDataLMBCS lmbcs ;\n }\n LMBCSClone ;\n static UConverter * _LMBCSSafeClone ( const UConverter * cnv , void * stackBuffer , int32_t * pBufferSize , UErrorCode * status ) {\n LMBCSClone * newLMBCS ;\n UConverterDataLMBCS * extraInfo ;\n int32_t i ;\n if ( * pBufferSize <= 0 ) {\n * pBufferSize = ( int32_t ) sizeof ( LMBCSClone ) ;\n return NULL ;\n }\n extraInfo = ( UConverterDataLMBCS * ) cnv -> extraInfo ;\n newLMBCS = ( LMBCSClone * ) stackBuffer ;\n uprv_memcpy ( & newLMBCS -> lmbcs , extraInfo , sizeof ( UConverterDataLMBCS ) ) ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST ;\n ++ i ) {\n if ( extraInfo -> OptGrpConverter [ i ] != NULL ) {\n ucnv_incrementRefCount ( extraInfo -> OptGrpConverter [ i ] ) ;\n }\n }\n newLMBCS -> cnv . extraInfo = & newLMBCS -> lmbcs ;\n newLMBCS -> cnv . isExtraLocal = TRUE ;\n return & newLMBCS -> cnv ;\n }\n static size_t LMBCSConversionWorker ( UConverterDataLMBCS * extraInfo , ulmbcs_byte_t group , ulmbcs_byte_t * pStartLMBCS , UChar * pUniChar , ulmbcs_byte_t * lastConverterIndex , UBool * groups_tried ) {\n ulmbcs_byte_t * pLMBCS = pStartLMBCS ;\n UConverterSharedData * xcnv = extraInfo -> OptGrpConverter [ group ] ;\n int bytesConverted ;\n uint32_t value ;\n ulmbcs_byte_t firstByte ;\n U_ASSERT ( xcnv ) ;\n U_ASSERT ( group < ULMBCS_GRP_UNICODE ) ;\n bytesConverted = ucnv_MBCSFromUChar32 ( xcnv , * pUniChar , & value , FALSE ) ;\n if ( bytesConverted > 0 ) {\n firstByte = ( ulmbcs_byte_t ) ( value >> ( ( bytesConverted - 1 ) * 8 ) ) ;\n }\n else {\n groups_tried [ group ] = TRUE ;\n return 0 ;\n }\n * lastConverterIndex = group ;\n U_ASSERT ( ( firstByte <= ULMBCS_C0END ) || ( firstByte >= ULMBCS_C1START ) || ( group == ULMBCS_GRP_EXCEPT ) ) ;\n if ( group != ULMBCS_GRP_EXCEPT && extraInfo -> OptGroup != group ) {\n * pLMBCS ++ = group ;\n if ( bytesConverted == 1 && group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n * pLMBCS ++ = group ;\n }\n }\n if ( bytesConverted == 1 && firstByte < 0x20 ) return 0 ;\n switch ( bytesConverted ) {\n case 4 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 24 ) ;\n U_FALLTHROUGH ;\n case 3 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 16 ) ;\n U_FALLTHROUGH ;\n case 2 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 8 ) ;\n U_FALLTHROUGH ;\n case 1 : * pLMBCS ++ = ( ulmbcs_byte_t ) value ;\n U_FALLTHROUGH ;\n default : break ;\n }\n return ( pLMBCS - pStartLMBCS ) ;\n }\n static size_t LMBCSConvertUni ( ulmbcs_byte_t * pLMBCS , UChar uniChar ) {\n uint8_t LowCh = ( uint8_t ) ( uniChar & 0x00FF ) ;\n uint8_t HighCh = ( uint8_t ) ( uniChar >> 8 ) ;\n * pLMBCS ++ = ULMBCS_GRP_UNICODE ;\n if ( LowCh == 0 ) {\n * pLMBCS ++ = ULMBCS_UNICOMPATZERO ;\n * pLMBCS ++ = HighCh ;\n }\n else {\n * pLMBCS ++ = HighCh ;\n * pLMBCS ++ = LowCh ;\n }\n return ULMBCS_UNICODE_SIZE ;\n }\n static void _LMBCSFromUnicode ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n ulmbcs_byte_t lastConverterIndex = 0 ;\n UChar uniChar ;\n ulmbcs_byte_t LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n ulmbcs_byte_t * pLMBCS ;\n int32_t bytes_written ;\n UBool groups_tried [ ULMBCS_GRP_LAST + 1 ] ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n int sourceIndex = 0 ;\n ulmbcs_byte_t OldConverterIndex = 0 ;\n while ( args -> source < args -> sourceLimit && ! U_FAILURE ( * err ) ) {\n OldConverterIndex = extraInfo -> localeConverterIndex ;\n if ( args -> target >= args -> targetLimit ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n uniChar = * ( args -> source ) ;\n bytes_written = 0 ;\n pLMBCS = LMBCS ;\n if ( ( uniChar >= 0x80 ) && ( uniChar <= 0xff ) && ( uniChar != 0xB1 ) && ( uniChar != 0xD7 ) && ( uniChar != 0xF7 ) && ( uniChar != 0xB0 ) && ( uniChar != 0xB4 ) && ( uniChar != 0xB6 ) && ( uniChar != 0xA7 ) && ( uniChar != 0xA8 ) ) {\n extraInfo -> localeConverterIndex = ULMBCS_GRP_L1 ;\n }\n if ( ( ( uniChar > ULMBCS_C0END ) && ( uniChar < ULMBCS_C1START ) ) || uniChar == 0 || uniChar == ULMBCS_HT || uniChar == ULMBCS_CR || uniChar == ULMBCS_LF || uniChar == ULMBCS_123SYSTEMRANGE ) {\n * pLMBCS ++ = ( ulmbcs_byte_t ) uniChar ;\n bytes_written = 1 ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t group = FindLMBCSUniRange ( uniChar ) ;\n if ( group == ULMBCS_GRP_UNICODE ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group == ULMBCS_GRP_CTRL ) {\n if ( uniChar <= ULMBCS_C0END ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( ULMBCS_CTRLOFFSET + uniChar ) ;\n }\n else if ( uniChar >= ULMBCS_C1START && uniChar <= ULMBCS_C1START + ULMBCS_CTRLOFFSET ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( uniChar & 0x00FF ) ;\n }\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group < ULMBCS_GRP_UNICODE ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , group , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n uprv_memset ( groups_tried , 0 , sizeof ( groups_tried ) ) ;\n if ( ( extraInfo -> OptGroup != 1 ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> OptGroup ) ) ) {\n if ( extraInfo -> localeConverterIndex < ULMBCS_DOUBLEOPTGROUP_START ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_L1 , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n else {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && ( extraInfo -> localeConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> localeConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written && ( lastConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , lastConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , lastConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t grp_start ;\n ulmbcs_byte_t grp_end ;\n ulmbcs_byte_t grp_ix ;\n grp_start = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_DOUBLEOPTGROUP_START : ULMBCS_GRP_L1 ) ;\n grp_end = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_GRP_LAST : ULMBCS_GRP_TH ) ;\n if ( group == ULMBCS_AMBIGUOUS_ALL ) {\n grp_start = ULMBCS_GRP_L1 ;\n grp_end = ULMBCS_GRP_LAST ;\n }\n for ( grp_ix = grp_start ;\n grp_ix <= grp_end && ! bytes_written ;\n grp_ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ grp_ix ] && ! groups_tried [ grp_ix ] ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , grp_ix , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && grp_start == ULMBCS_GRP_L1 ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n }\n }\n args -> source ++ ;\n pLMBCS = LMBCS ;\n while ( args -> target < args -> targetLimit && bytes_written -- ) {\n * ( args -> target ) ++ = * pLMBCS ++ ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = sourceIndex ;\n }\n }\n sourceIndex ++ ;\n if ( bytes_written > 0 ) {\n uint8_t * pErrorBuffer = args -> converter -> charErrorBuffer ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n args -> converter -> charErrorBufferLength = ( int8_t ) bytes_written ;\n while ( bytes_written -- ) {\n * pErrorBuffer ++ = * pLMBCS ++ ;\n }\n }\n extraInfo -> localeConverterIndex = OldConverterIndex ;\n }\n }\n static UChar GetUniFromLMBCSUni ( char const * * ppLMBCSin ) {\n uint8_t HighCh = * ( * ppLMBCSin ) ++ ;\n uint8_t LowCh = * ( * ppLMBCSin ) ++ ;\n if ( HighCh == ULMBCS_UNICOMPATZERO ) {\n HighCh = LowCh ;\n LowCh = 0 ;\n }\n return ( UChar ) ( ( HighCh << 8 ) | LowCh ) ;\n }\n # define CHECK_SOURCE_LIMIT ( index ) if ( args -> source + index > args -> sourceLimit ) {\n * err = U_TRUNCATED_CHAR_FOUND ;\n args -> source = args -> sourceLimit ;\n return 0xffff ;\n }\n static UChar32 _LMBCSGetNextUCharWorker ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n UChar32 uniChar = 0 ;\n ulmbcs_byte_t CurByte ;\n if ( args -> source >= args -> sourceLimit ) {\n * err = U_ILLEGAL_ARGUMENT_ERROR ;\n return 0xffff ;\n }\n CurByte = * ( ( ulmbcs_byte_t * ) ( args -> source ++ ) ) ;\n if ( ( ( CurByte > ULMBCS_C0END ) && ( CurByte < ULMBCS_C1START ) ) || ( CurByte == 0 ) || CurByte == ULMBCS_HT || CurByte == ULMBCS_CR || CurByte == ULMBCS_LF || CurByte == ULMBCS_123SYSTEMRANGE ) {\n uniChar = CurByte ;\n }\n else {\n UConverterDataLMBCS * extraInfo ;\n ulmbcs_byte_t group ;\n UConverterSharedData * cnv ;\n if ( CurByte == ULMBCS_GRP_CTRL ) {\n ulmbcs_byte_t C0C1byte ;\n CHECK_SOURCE_LIMIT ( 1 ) ;\n C0C1byte = * ( args -> source ) ++ ;\n uniChar = ( C0C1byte < ULMBCS_C1START ) ? C0C1byte - ULMBCS_CTRLOFFSET : C0C1byte ;\n }\n else if ( CurByte == ULMBCS_GRP_UNICODE ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n return GetUniFromLMBCSUni ( & ( args -> source ) ) ;\n }\n else if ( CurByte <= ULMBCS_CTRLOFFSET ) {\n group = CurByte ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n if ( group > ULMBCS_GRP_LAST || ( cnv = extraInfo -> OptGrpConverter [ group ] ) == NULL ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n if ( * args -> source == group ) {\n ++ args -> source ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 1 , FALSE ) ;\n ++ args -> source ;\n }\n else {\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 2 , FALSE ) ;\n args -> source += 2 ;\n }\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n CurByte = * ( args -> source ) ++ ;\n if ( CurByte >= ULMBCS_C1START ) {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n else {\n char bytes [ 2 ] ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n cnv = extraInfo -> OptGrpConverter [ ULMBCS_GRP_EXCEPT ] ;\n bytes [ 0 ] = group ;\n bytes [ 1 ] = CurByte ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , bytes , 2 , FALSE ) ;\n }\n }\n }\n else if ( CurByte >= ULMBCS_C1START ) {\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n group = extraInfo -> OptGroup ;\n cnv = extraInfo -> OptGrpConverter [ group ] ;\n if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n if ( ! ucnv_MBCSIsLeadByte ( cnv , CurByte ) ) {\n CHECK_SOURCE_LIMIT ( 0 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 1 , FALSE ) ;\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 2 , FALSE ) ;\n ++ args -> source ;\n }\n }\n else {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n }\n }\n return uniChar ;\n }\n static void _LMBCSToUnicodeWithOffsets ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n char LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n UChar uniChar ;\n const char * saveSource ;\n const char * pStartLMBCS = args -> source ;\n const char * errSource = NULL ;\n int8_t savebytes = 0 ;\n while ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit > args -> target ) {\n saveSource = args -> source ;\n if ( args -> converter -> toULength ) {\n const char * saveSourceLimit ;\n size_t size_old = args -> converter -> toULength ;\n size_t size_new_maybe_1 = sizeof ( LMBCS ) - size_old ;\n size_t size_new_maybe_2 = args -> sourceLimit - args -> source ;\n size_t size_new = ( size_new_maybe_1 < size_new_maybe_2 ) ? size_new_maybe_1 : size_new_maybe_2 ;\n uprv_memcpy ( LMBCS , args -> converter -> toUBytes , size_old ) ;\n uprv_memcpy ( LMBCS + size_old , args -> source , size_new ) ;\n saveSourceLimit = args -> sourceLimit ;\n args -> source = errSource = LMBCS ;\n args -> sourceLimit = LMBCS + size_old + size_new ;\n savebytes = ( int8_t ) ( size_old + size_new ) ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n args -> source = saveSource + ( ( args -> source - LMBCS ) - size_old ) ;\n args -> sourceLimit = saveSourceLimit ;\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n args -> converter -> toULength = savebytes ;\n uprv_memcpy ( args -> converter -> toUBytes , LMBCS , savebytes ) ;\n args -> source = args -> sourceLimit ;\n * err = U_ZERO_ERROR ;\n return ;\n }\n else {\n args -> converter -> toULength = 0 ;\n }\n }\n else {\n errSource = saveSource ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n savebytes = ( int8_t ) ( args -> source - saveSource ) ;\n }\n if ( U_SUCCESS ( * err ) ) {\n if ( uniChar < 0xfffe ) {\n * ( args -> target ) ++ = uniChar ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = ( int32_t ) ( saveSource - pStartLMBCS ) ;\n }\n }\n else if ( uniChar == 0xfffe ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n }\n if ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit <= args -> target ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n else if ( U_FAILURE ( * err ) ) {\n args -> converter -> toULength = savebytes ;\n if ( savebytes > 0 ) {\n uprv_memcpy ( args -> converter -> toUBytes , errSource , savebytes ) ;\n }\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n * err = U_ZERO_ERROR ;\n }\n }\n }\n DEFINE_LMBCS_OPEN ( 1 ) DEFINE_LMBCS_OPEN ( 2 ) DEFINE_LMBCS_OPEN ( 3 ) DEFINE_LMBCS_OPEN ( 4 ) DEFINE_LMBCS_OPEN ( 5 ) DEFINE_LMBCS_OPEN ( 6 ) DEFINE_LMBCS_OPEN ( 8 ) DEFINE_LMBCS_OPEN ( 11 ) DEFINE_LMBCS_OPEN ( 16 ) DEFINE_LMBCS_OPEN ( 17 ) DEFINE_LMBCS_OPEN ( 18 )"}
{"idx": 18405, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( CrossOriginXHR , AllURLs ) {\n ASSERT_TRUE ( RunExtensionTest ( \"cross_origin_xhr/all_urls\" ) ) << message_ ;\n }"}
{"idx": 18406, "target": 1, "func": "static vpx_codec_err_t parse_auto_alt_ref ( SvcContext * svc_ctx , const char * alt_ref_options ) {\n char * input_string ;\n char * token ;\n const char * delim = \",\" ;\n char * save_ptr ;\n int found = 0 , enabled = 0 ;\n int i , value ;\n vpx_codec_err_t res = VPX_CODEC_OK ;\n SvcInternal * const si = get_svc_internal ( svc_ctx ) ;\n if ( alt_ref_options == NULL || strlen ( alt_ref_options ) == 0 ) {\n return VPX_CODEC_INVALID_PARAM ;\n }\n else {\n input_string = strdup ( alt_ref_options ) ;\n }\n token = strtok_r ( input_string , delim , & save_ptr ) ;\n for ( i = 0 ;\n i < svc_ctx -> spatial_layers ;\n ++ i ) {\n if ( token != NULL ) {\n value = atoi ( token ) ;\n if ( value < 0 || value > 1 ) {\n svc_log ( svc_ctx , SVC_LOG_ERROR , \"enable auto alt ref values: invalid value %s\\n\" , token ) ;\n res = VPX_CODEC_INVALID_PARAM ;\n break ;\n }\n token = strtok_r ( NULL , delim , & save_ptr ) ;\n found = i + 1 ;\n }\n else {\n value = 0 ;\n }\n si -> enable_auto_alt_ref [ i ] = value ;\n if ( value > 0 ) ++ enabled ;\n }\n if ( res == VPX_CODEC_OK && found != svc_ctx -> spatial_layers ) {\n svc_log ( svc_ctx , SVC_LOG_ERROR , \"svc: quantizers: %d values required, but only %d specified\\n\" , svc_ctx -> spatial_layers , found ) ;\n res = VPX_CODEC_INVALID_PARAM ;\n }\n if ( enabled > REF_FRAMES - svc_ctx -> spatial_layers ) {\n svc_log ( svc_ctx , SVC_LOG_ERROR , \"svc: auto alt ref: Maxinum %d(REF_FRAMES - layers) layers could\" \"enabled auto alt reference frame, but % layers are enabled\\n\" , REF_FRAMES - svc_ctx -> spatial_layers , enabled ) ;\n res = VPX_CODEC_INVALID_PARAM ;\n }\n free ( input_string ) ;\n return res ;\n }"}
{"idx": 18407, "target": 0, "func": "fz_rect * pdf_xobject_bbox ( fz_context * ctx , pdf_xobject * xobj , fz_rect * bbox ) {\n return pdf_to_rect ( ctx , pdf_dict_get ( ctx , xobj -> obj , PDF_NAME_BBox ) , bbox ) ;\n }"}
{"idx": 18408, "target": 0, "func": "static int tls_process_cke_gost ( SSL * s , PACKET * pkt , int * al ) {\n # ifndef OPENSSL_NO_GOST EVP_PKEY_CTX * pkey_ctx ;\n EVP_PKEY * client_pub_pkey = NULL , * pk = NULL ;\n unsigned char premaster_secret [ 32 ] ;\n const unsigned char * start ;\n size_t outlen = 32 , inlen ;\n unsigned long alg_a ;\n int Ttag , Tclass ;\n long Tlen ;\n long sess_key_len ;\n const unsigned char * data ;\n int ret = 0 ;\n alg_a = s -> s3 -> tmp . new_cipher -> algorithm_auth ;\n if ( alg_a & SSL_aGOST12 ) {\n pk = s -> cert -> pkeys [ SSL_PKEY_GOST12_512 ] . privatekey ;\n if ( pk == NULL ) {\n pk = s -> cert -> pkeys [ SSL_PKEY_GOST12_256 ] . privatekey ;\n }\n if ( pk == NULL ) {\n pk = s -> cert -> pkeys [ SSL_PKEY_GOST01 ] . privatekey ;\n }\n }\n else if ( alg_a & SSL_aGOST01 ) {\n pk = s -> cert -> pkeys [ SSL_PKEY_GOST01 ] . privatekey ;\n }\n pkey_ctx = EVP_PKEY_CTX_new ( pk , NULL ) ;\n if ( pkey_ctx == NULL ) {\n * al = SSL_AD_INTERNAL_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_GOST , ERR_R_MALLOC_FAILURE ) ;\n return 0 ;\n }\n if ( EVP_PKEY_decrypt_init ( pkey_ctx ) <= 0 ) {\n * al = SSL_AD_INTERNAL_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_GOST , ERR_R_INTERNAL_ERROR ) ;\n return 0 ;\n }\n client_pub_pkey = X509_get0_pubkey ( s -> session -> peer ) ;\n if ( client_pub_pkey ) {\n if ( EVP_PKEY_derive_set_peer ( pkey_ctx , client_pub_pkey ) <= 0 ) ERR_clear_error ( ) ;\n }\n sess_key_len = PACKET_remaining ( pkt ) ;\n if ( ! PACKET_get_bytes ( pkt , & data , sess_key_len ) ) {\n * al = SSL_AD_INTERNAL_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_GOST , ERR_R_INTERNAL_ERROR ) ;\n goto err ;\n }\n if ( ASN1_get_object ( ( const unsigned char * * ) & data , & Tlen , & Ttag , & Tclass , sess_key_len ) != V_ASN1_CONSTRUCTED || Ttag != V_ASN1_SEQUENCE || Tclass != V_ASN1_UNIVERSAL ) {\n * al = SSL_AD_DECODE_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_GOST , SSL_R_DECRYPTION_FAILED ) ;\n goto err ;\n }\n start = data ;\n inlen = Tlen ;\n if ( EVP_PKEY_decrypt ( pkey_ctx , premaster_secret , & outlen , start , inlen ) <= 0 ) {\n * al = SSL_AD_DECODE_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_GOST , SSL_R_DECRYPTION_FAILED ) ;\n goto err ;\n }\n if ( ! ssl_generate_master_secret ( s , premaster_secret , sizeof ( premaster_secret ) , 0 ) ) {\n * al = SSL_AD_INTERNAL_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_GOST , ERR_R_INTERNAL_ERROR ) ;\n goto err ;\n }\n if ( EVP_PKEY_CTX_ctrl ( pkey_ctx , - 1 , - 1 , EVP_PKEY_CTRL_PEER_KEY , 2 , NULL ) > 0 ) s -> statem . no_cert_verify = 1 ;\n ret = 1 ;\n err : EVP_PKEY_CTX_free ( pkey_ctx ) ;\n return ret ;\n # else * al = SSL_AD_INTERNAL_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_GOST , ERR_R_INTERNAL_ERROR ) ;\n return 0 ;\n # endif }"}
{"idx": 18409, "target": 0, "func": "void mark_select_range_as_dependent ( THD * thd , SELECT_LEX * last_select , SELECT_LEX * current_sel , Field * found_field , Item * found_item , Item_ident * resolved_item ) {\n SELECT_LEX * previous_select = current_sel ;\n for ( ;\n previous_select -> outer_select ( ) != last_select ;\n previous_select = previous_select -> outer_select ( ) ) {\n Item_subselect * prev_subselect_item = previous_select -> master_unit ( ) -> item ;\n prev_subselect_item -> used_tables_cache |= OUTER_REF_TABLE_BIT ;\n prev_subselect_item -> const_item_cache = 0 ;\n }\n {\n Item_subselect * prev_subselect_item = previous_select -> master_unit ( ) -> item ;\n Item_ident * dependent = resolved_item ;\n if ( found_field == view_ref_found ) {\n Item : : Type type = found_item -> type ( ) ;\n prev_subselect_item -> used_tables_cache |= found_item -> used_tables ( ) ;\n dependent = ( ( type == Item : : REF_ITEM || type == Item : : FIELD_ITEM ) ? ( Item_ident * ) found_item : 0 ) ;\n }\n else prev_subselect_item -> used_tables_cache |= found_field -> table -> map ;\n prev_subselect_item -> const_item_cache = 0 ;\n mark_as_dependent ( thd , last_select , current_sel , resolved_item , dependent ) ;\n }\n }"}
{"idx": 18410, "target": 0, "func": "static void extended_com_err_fn ( const char * myprog , errcode_t code , const char * fmt , va_list args ) {\n const char * emsg ;\n if ( code ) {\n emsg = krb5_get_error_message ( context , code ) ;\n fprintf ( stderr , \"%s: %s \" , myprog , emsg ) ;\n krb5_free_error_message ( context , emsg ) ;\n }\n else {\n fprintf ( stderr , \"%s: \" , myprog ) ;\n }\n vfprintf ( stderr , fmt , args ) ;\n fprintf ( stderr , \"\\n\" ) ;\n }"}
{"idx": 18411, "target": 0, "func": "static int com_go ( String * buffer , char * line __attribute__ ( ( unused ) ) ) {\n char buff [ 200 ] ;\n char time_buff [ 52 + 3 + 1 ] ;\n MYSQL_RES * result ;\n ulong timer , warnings = 0 ;\n uint error = 0 ;\n int err = 0 ;\n interrupted_query = 0 ;\n if ( ! status . batch ) {\n old_buffer = * buffer ;\n old_buffer . copy ( ) ;\n }\n LINT_INIT ( buff [ 0 ] ) ;\n remove_cntrl ( * buffer ) ;\n if ( buffer -> is_empty ( ) ) {\n if ( status . batch ) return 0 ;\n return put_info ( \"No query specified\\n\" , INFO_ERROR ) ;\n }\n if ( ! connected && reconnect ( ) ) {\n buffer -> length ( 0 ) ;\n return opt_reconnect ? - 1 : 1 ;\n }\n if ( verbose ) ( void ) com_print ( buffer , 0 ) ;\n if ( skip_updates && ( buffer -> length ( ) < 4 || my_strnncoll ( charset_info , ( const uchar * ) buffer -> ptr ( ) , 4 , ( const uchar * ) \"SET \" , 4 ) ) ) {\n ( void ) put_info ( \"Ignoring query to other database\" , INFO_INFO ) ;\n return 0 ;\n }\n timer = start_timer ( ) ;\n executing_query = 1 ;\n error = mysql_real_query_for_lazy ( buffer -> ptr ( ) , buffer -> length ( ) ) ;\n report_progress_end ( ) ;\n # ifdef HAVE_READLINE if ( status . add_to_history ) {\n buffer -> append ( vertical ? \"\\\\G\" : delimiter ) ;\n fix_history ( buffer ) ;\n }\n # endif buffer -> length ( 0 ) ;\n if ( error ) goto end ;\n do {\n char * pos ;\n if ( quick ) {\n if ( ! ( result = mysql_use_result ( & mysql ) ) && mysql_field_count ( & mysql ) ) {\n error = put_error ( & mysql ) ;\n goto end ;\n }\n }\n else {\n error = mysql_store_result_for_lazy ( & result ) ;\n if ( error ) goto end ;\n }\n if ( verbose >= 3 || ! opt_silent ) mysql_end_timer ( timer , time_buff ) ;\n else time_buff [ 0 ] = '\\0' ;\n if ( result ) {\n if ( ! mysql_num_rows ( result ) && ! quick && ! column_types_flag ) {\n strmov ( buff , \"Empty set\" ) ;\n if ( opt_xml ) {\n init_pager ( ) ;\n print_table_data_xml ( result ) ;\n end_pager ( ) ;\n }\n }\n else {\n init_pager ( ) ;\n if ( opt_html ) print_table_data_html ( result ) ;\n else if ( opt_xml ) print_table_data_xml ( result ) ;\n else if ( vertical || ( auto_vertical_output && ( terminal_width < get_result_width ( result ) ) ) ) print_table_data_vertically ( result ) ;\n else if ( opt_silent && verbose <= 2 && ! output_tables ) print_tab_data ( result ) ;\n else print_table_data ( result ) ;\n sprintf ( buff , \"%ld %s in set\" , ( long ) mysql_num_rows ( result ) , ( long ) mysql_num_rows ( result ) == 1 ? \"row\" : \"rows\" ) ;\n end_pager ( ) ;\n if ( mysql_errno ( & mysql ) ) error = put_error ( & mysql ) ;\n }\n }\n else if ( mysql_affected_rows ( & mysql ) == ~ ( ulonglong ) 0 ) strmov ( buff , \"Query OK\" ) ;\n else sprintf ( buff , \"Query OK, %ld %s affected\" , ( long ) mysql_affected_rows ( & mysql ) , ( long ) mysql_affected_rows ( & mysql ) == 1 ? \"row\" : \"rows\" ) ;\n pos = strend ( buff ) ;\n if ( ( warnings = mysql_warning_count ( & mysql ) ) ) {\n * pos ++ = ',' ;\n * pos ++ = ' ' ;\n pos = int10_to_str ( warnings , pos , 10 ) ;\n pos = strmov ( pos , \" warning\" ) ;\n if ( warnings != 1 ) * pos ++ = 's' ;\n }\n strmov ( pos , time_buff ) ;\n put_info ( buff , INFO_RESULT ) ;\n if ( mysql_info ( & mysql ) ) put_info ( mysql_info ( & mysql ) , INFO_RESULT ) ;\n put_info ( \"\" , INFO_RESULT ) ;\n if ( result && ! mysql_eof ( result ) ) error = put_error ( & mysql ) ;\n else if ( unbuffered ) fflush ( stdout ) ;\n mysql_free_result ( result ) ;\n }\n while ( ! ( err = mysql_next_result ( & mysql ) ) ) ;\n if ( err >= 1 ) error = put_error ( & mysql ) ;\n end : if ( show_warnings == 1 && ( warnings >= 1 || error ) ) print_warnings ( ) ;\n if ( ! error && ! status . batch && ( mysql . server_status & SERVER_STATUS_DB_DROPPED ) ) get_current_db ( ) ;\n executing_query = 0 ;\n return error ;\n }"}
{"idx": 18412, "target": 0, "func": "static void calc_input_response ( WMAVoiceContext * s , float * lpcs , int fcb_type , float * coeffs , int remainder ) {\n float last_coeff , min = 15.0 , max = - 15.0 ;\n float irange , angle_mul , gain_mul , range , sq ;\n int n , idx ;\n s -> rdft . rdft_calc ( & s -> rdft , lpcs ) ;\n # define log_range ( var , assign ) do {\n float tmp = log10f ( assign ) ;\n var = tmp ;\n max = FFMAX ( max , tmp ) ;\n min = FFMIN ( min , tmp ) ;\n }\n while ( 0 ) log_range ( last_coeff , lpcs [ 1 ] * lpcs [ 1 ] ) ;\n for ( n = 1 ;\n n < 64 ;\n n ++ ) log_range ( lpcs [ n ] , lpcs [ n * 2 ] * lpcs [ n * 2 ] + lpcs [ n * 2 + 1 ] * lpcs [ n * 2 + 1 ] ) ;\n log_range ( lpcs [ 0 ] , lpcs [ 0 ] * lpcs [ 0 ] ) ;\n # undef log_range range = max - min ;\n lpcs [ 64 ] = last_coeff ;\n irange = 64.0 / range ;\n gain_mul = range * ( fcb_type == FCB_TYPE_HARDCODED ? ( 5.0 / 13.0 ) : ( 5.0 / 14.7 ) ) ;\n angle_mul = gain_mul * ( 8.0 * M_LN10 / M_PI ) ;\n for ( n = 0 ;\n n <= 64 ;\n n ++ ) {\n float pwr ;\n idx = FFMAX ( 0 , lrint ( ( max - lpcs [ n ] ) * irange ) - 1 ) ;\n pwr = wmavoice_denoise_power_table [ s -> denoise_strength ] [ idx ] ;\n lpcs [ n ] = angle_mul * pwr ;\n idx = ( pwr * gain_mul - 0.0295 ) * 70.570526123 ;\n if ( idx > 127 ) {\n coeffs [ n ] = wmavoice_energy_table [ 127 ] * powf ( 1.0331663 , idx - 127 ) ;\n }\n else coeffs [ n ] = wmavoice_energy_table [ FFMAX ( 0 , idx ) ] ;\n }\n s -> dct . dct_calc ( & s -> dct , lpcs ) ;\n s -> dst . dct_calc ( & s -> dst , lpcs ) ;\n idx = 255 + av_clip ( lpcs [ 64 ] , - 255 , 255 ) ;\n coeffs [ 0 ] = coeffs [ 0 ] * s -> cos [ idx ] ;\n idx = 255 + av_clip ( lpcs [ 64 ] - 2 * lpcs [ 63 ] , - 255 , 255 ) ;\n last_coeff = coeffs [ 64 ] * s -> cos [ idx ] ;\n for ( n = 63 ;\n ;\n n -- ) {\n idx = 255 + av_clip ( - lpcs [ 64 ] - 2 * lpcs [ n - 1 ] , - 255 , 255 ) ;\n coeffs [ n * 2 + 1 ] = coeffs [ n ] * s -> sin [ idx ] ;\n coeffs [ n * 2 ] = coeffs [ n ] * s -> cos [ idx ] ;\n if ( ! -- n ) break ;\n idx = 255 + av_clip ( lpcs [ 64 ] - 2 * lpcs [ n - 1 ] , - 255 , 255 ) ;\n coeffs [ n * 2 + 1 ] = coeffs [ n ] * s -> sin [ idx ] ;\n coeffs [ n * 2 ] = coeffs [ n ] * s -> cos [ idx ] ;\n }\n coeffs [ 1 ] = last_coeff ;\n s -> irdft . rdft_calc ( & s -> irdft , coeffs ) ;\n memset ( & coeffs [ remainder ] , 0 , sizeof ( coeffs [ 0 ] ) * ( 128 - remainder ) ) ;\n if ( s -> denoise_tilt_corr ) {\n float tilt_mem = 0 ;\n coeffs [ remainder - 1 ] = 0 ;\n ff_tilt_compensation ( & tilt_mem , - 1.8 * tilt_factor ( coeffs , remainder - 1 ) , coeffs , remainder ) ;\n }\n sq = ( 1.0 / 64.0 ) * sqrtf ( 1 / avpriv_scalarproduct_float_c ( coeffs , coeffs , remainder ) ) ;\n for ( n = 0 ;\n n < remainder ;\n n ++ ) coeffs [ n ] *= sq ;\n }"}
{"idx": 18413, "target": 0, "func": "static int prefix_array ( const char * dirname , char * * array , size_t n ) {\n register size_t i ;\n size_t dirlen = strlen ( dirname ) ;\n # if defined __MSDOS__ || defined WINDOWS32 int sep_char = '/' ;\n # define DIRSEP_CHAR sep_char # else # define DIRSEP_CHAR '/' # endif if ( dirlen == 1 && dirname [ 0 ] == '/' ) dirlen = 0 ;\n # if defined __MSDOS__ || defined WINDOWS32 else if ( dirlen > 1 ) {\n if ( dirname [ dirlen - 1 ] == '/' && dirname [ dirlen - 2 ] == ':' ) -- dirlen ;\n else if ( dirname [ dirlen - 1 ] == ':' ) {\n -- dirlen ;\n sep_char = ':' ;\n }\n }\n # endif for ( i = 0 ;\n i < n ;\n ++ i ) {\n size_t eltlen = strlen ( array [ i ] ) + 1 ;\n char * new = ( char * ) malloc ( dirlen + 1 + eltlen ) ;\n if ( new == NULL ) {\n while ( i > 0 ) free ( array [ -- i ] ) ;\n return 1 ;\n }\n {\n char * endp = mempcpy ( new , dirname , dirlen ) ;\n * endp ++ = DIRSEP_CHAR ;\n mempcpy ( endp , array [ i ] , eltlen ) ;\n }\n free ( array [ i ] ) ;\n array [ i ] = new ;\n }\n return 0 ;\n }"}
{"idx": 18414, "target": 0, "func": "guint16 de_cs_domain_spec_sys_info ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n curr_offset = offset ;\n proto_tree_add_item ( tree , hf_gsm_a_rr_t3212 , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( curr_offset << 3 ) , 7 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_att , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n EXTRANEOUS_DATA_CHECK ( len , curr_offset - offset , pinfo , & ei_gsm_a_extraneous_data ) ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 18415, "target": 1, "func": "static int64_t rd_pick_intra4x4block ( VP9_COMP * cpi , MACROBLOCK * x , int ib , PREDICTION_MODE * best_mode , const int * bmode_costs , ENTROPY_CONTEXT * a , ENTROPY_CONTEXT * l , int * bestrate , int * bestratey , int64_t * bestdistortion , BLOCK_SIZE bsize , int64_t rd_thresh ) {\n PREDICTION_MODE mode ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n int64_t best_rd = rd_thresh ;\n struct macroblock_plane * p = & x -> plane [ 0 ] ;\n struct macroblockd_plane * pd = & xd -> plane [ 0 ] ;\n const int src_stride = p -> src . stride ;\n const int dst_stride = pd -> dst . stride ;\n const uint8_t * src_init = & p -> src . buf [ raster_block_offset ( BLOCK_8X8 , ib , src_stride ) ] ;\n uint8_t * dst_init = & pd -> dst . buf [ raster_block_offset ( BLOCK_8X8 , ib , dst_stride ) ] ;\n ENTROPY_CONTEXT ta [ 2 ] , tempa [ 2 ] ;\n ENTROPY_CONTEXT tl [ 2 ] , templ [ 2 ] ;\n const int num_4x4_blocks_wide = num_4x4_blocks_wide_lookup [ bsize ] ;\n const int num_4x4_blocks_high = num_4x4_blocks_high_lookup [ bsize ] ;\n int idx , idy ;\n uint8_t best_dst [ 8 * 8 ] ;\n assert ( ib < 4 ) ;\n vpx_memcpy ( ta , a , sizeof ( ta ) ) ;\n vpx_memcpy ( tl , l , sizeof ( tl ) ) ;\n xd -> mi [ 0 ] -> mbmi . tx_size = TX_4X4 ;\n for ( mode = DC_PRED ;\n mode <= TM_PRED ;\n ++ mode ) {\n int64_t this_rd ;\n int ratey = 0 ;\n int64_t distortion = 0 ;\n int rate = bmode_costs [ mode ] ;\n if ( ! ( cpi -> sf . intra_y_mode_mask [ TX_4X4 ] & ( 1 << mode ) ) ) continue ;\n if ( cpi -> sf . mode_search_skip_flags & FLAG_SKIP_INTRA_DIRMISMATCH ) {\n if ( conditional_skipintra ( mode , * best_mode ) ) continue ;\n }\n vpx_memcpy ( tempa , ta , sizeof ( ta ) ) ;\n vpx_memcpy ( templ , tl , sizeof ( tl ) ) ;\n for ( idy = 0 ;\n idy < num_4x4_blocks_high ;\n ++ idy ) {\n for ( idx = 0 ;\n idx < num_4x4_blocks_wide ;\n ++ idx ) {\n const int block = ib + idy * 2 + idx ;\n const uint8_t * const src = & src_init [ idx * 4 + idy * 4 * src_stride ] ;\n uint8_t * const dst = & dst_init [ idx * 4 + idy * 4 * dst_stride ] ;\n int16_t * const src_diff = raster_block_offset_int16 ( BLOCK_8X8 , block , p -> src_diff ) ;\n int16_t * const coeff = BLOCK_OFFSET ( x -> plane [ 0 ] . coeff , block ) ;\n xd -> mi [ 0 ] -> bmi [ block ] . as_mode = mode ;\n vp9_predict_intra_block ( xd , block , 1 , TX_4X4 , mode , x -> skip_encode ? src : dst , x -> skip_encode ? src_stride : dst_stride , dst , dst_stride , idx , idy , 0 ) ;\n vp9_subtract_block ( 4 , 4 , src_diff , 8 , src , src_stride , dst , dst_stride ) ;\n if ( xd -> lossless ) {\n const scan_order * so = & vp9_default_scan_orders [ TX_4X4 ] ;\n vp9_fwht4x4 ( src_diff , coeff , 8 ) ;\n vp9_regular_quantize_b_4x4 ( x , 0 , block , so -> scan , so -> iscan ) ;\n ratey += cost_coeffs ( x , 0 , block , tempa + idx , templ + idy , TX_4X4 , so -> scan , so -> neighbors , cpi -> sf . use_fast_coef_costing ) ;\n if ( RDCOST ( x -> rdmult , x -> rddiv , ratey , distortion ) >= best_rd ) goto next ;\n vp9_iwht4x4_add ( BLOCK_OFFSET ( pd -> dqcoeff , block ) , dst , dst_stride , p -> eobs [ block ] ) ;\n }\n else {\n int64_t unused ;\n const TX_TYPE tx_type = get_tx_type_4x4 ( PLANE_TYPE_Y , xd , block ) ;\n const scan_order * so = & vp9_scan_orders [ TX_4X4 ] [ tx_type ] ;\n vp9_fht4x4 ( src_diff , coeff , 8 , tx_type ) ;\n vp9_regular_quantize_b_4x4 ( x , 0 , block , so -> scan , so -> iscan ) ;\n ratey += cost_coeffs ( x , 0 , block , tempa + idx , templ + idy , TX_4X4 , so -> scan , so -> neighbors , cpi -> sf . use_fast_coef_costing ) ;\n distortion += vp9_block_error ( coeff , BLOCK_OFFSET ( pd -> dqcoeff , block ) , 16 , & unused ) >> 2 ;\n if ( RDCOST ( x -> rdmult , x -> rddiv , ratey , distortion ) >= best_rd ) goto next ;\n vp9_iht4x4_add ( tx_type , BLOCK_OFFSET ( pd -> dqcoeff , block ) , dst , dst_stride , p -> eobs [ block ] ) ;\n }\n }\n }\n rate += ratey ;\n this_rd = RDCOST ( x -> rdmult , x -> rddiv , rate , distortion ) ;\n if ( this_rd < best_rd ) {\n * bestrate = rate ;\n * bestratey = ratey ;\n * bestdistortion = distortion ;\n best_rd = this_rd ;\n * best_mode = mode ;\n vpx_memcpy ( a , tempa , sizeof ( tempa ) ) ;\n vpx_memcpy ( l , templ , sizeof ( templ ) ) ;\n for ( idy = 0 ;\n idy < num_4x4_blocks_high * 4 ;\n ++ idy ) vpx_memcpy ( best_dst + idy * 8 , dst_init + idy * dst_stride , num_4x4_blocks_wide * 4 ) ;\n }\n next : {\n }\n }\n if ( best_rd >= rd_thresh || x -> skip_encode ) return best_rd ;\n for ( idy = 0 ;\n idy < num_4x4_blocks_high * 4 ;\n ++ idy ) vpx_memcpy ( dst_init + idy * dst_stride , best_dst + idy * 8 , num_4x4_blocks_wide * 4 ) ;\n return best_rd ;\n }"}
{"idx": 18416, "target": 0, "func": "static inline size_t GetPixelChannels ( const Image * restrict image ) {\n return ( image -> number_channels ) ;\n }"}
{"idx": 18417, "target": 0, "func": "static inline double U_EXPORT2 utimer_getDeltaSeconds ( UTimer * timer1 , UTimer * timer2 ) {\n if ( uprv_compareFrequency ( timer1 , timer2 ) ) {\n return uprv_delta ( timer1 , timer2 ) ;\n }\n return - 1 ;\n }"}
{"idx": 18418, "target": 0, "func": "static gboolean ngsniffer_seek_read ( wtap * wth , gint64 seek_off , struct wtap_pkthdr * phdr , Buffer * buf , int * err , gchar * * err_info ) {\n int ret ;\n if ( ! ng_file_seek_rand ( wth , seek_off , err , err_info ) ) return FALSE ;\n ret = ngsniffer_process_record ( wth , TRUE , NULL , phdr , buf , err , err_info ) ;\n if ( ret < 0 ) {\n return FALSE ;\n }\n switch ( ret ) {\n case REC_FRAME2 : case REC_FRAME4 : case REC_FRAME6 : break ;\n default : g_assert_not_reached ( ) ;\n return FALSE ;\n }\n return TRUE ;\n }"}
{"idx": 18419, "target": 0, "func": "int open_grant_tables ( THD * thd , TABLE_LIST * tables ) {\n DBUG_ENTER ( \"open_grant_tables\" ) ;\n if ( ! initialized ) {\n my_error ( ER_OPTION_PREVENTS_STATEMENT , MYF ( 0 ) , \"--skip-grant-tables\" ) ;\n DBUG_RETURN ( - 1 ) ;\n }\n bzero ( ( char * ) tables , GRANT_TABLES * sizeof ( * tables ) ) ;\n tables -> alias = tables -> table_name = ( char * ) \"user\" ;\n ( tables + 1 ) -> alias = ( tables + 1 ) -> table_name = ( char * ) \"db\" ;\n ( tables + 2 ) -> alias = ( tables + 2 ) -> table_name = ( char * ) \"tables_priv\" ;\n ( tables + 3 ) -> alias = ( tables + 3 ) -> table_name = ( char * ) \"columns_priv\" ;\n ( tables + 4 ) -> alias = ( tables + 4 ) -> table_name = ( char * ) \"procs_priv\" ;\n tables -> next_local = tables -> next_global = tables + 1 ;\n ( tables + 1 ) -> next_local = ( tables + 1 ) -> next_global = tables + 2 ;\n ( tables + 2 ) -> next_local = ( tables + 2 ) -> next_global = tables + 3 ;\n ( tables + 3 ) -> next_local = ( tables + 3 ) -> next_global = tables + 4 ;\n tables -> lock_type = ( tables + 1 ) -> lock_type = ( tables + 2 ) -> lock_type = ( tables + 3 ) -> lock_type = ( tables + 4 ) -> lock_type = TL_WRITE ;\n tables -> db = ( tables + 1 ) -> db = ( tables + 2 ) -> db = ( tables + 3 ) -> db = ( tables + 4 ) -> db = ( char * ) \"mysql\" ;\n # ifdef HAVE_REPLICATION if ( thd -> slave_thread && rpl_filter -> is_on ( ) ) {\n tables [ 0 ] . updating = tables [ 1 ] . updating = tables [ 2 ] . updating = tables [ 3 ] . updating = tables [ 4 ] . updating = 1 ;\n if ( ! ( thd -> spcont || rpl_filter -> tables_ok ( 0 , tables ) ) ) DBUG_RETURN ( 1 ) ;\n tables [ 0 ] . updating = tables [ 1 ] . updating = tables [ 2 ] . updating = tables [ 3 ] . updating = tables [ 4 ] . updating = 0 ;\n ;\n }\n # endif if ( simple_open_n_lock_tables ( thd , tables ) ) {\n close_thread_tables ( thd ) ;\n DBUG_RETURN ( - 1 ) ;\n }\n DBUG_RETURN ( 0 ) ;\n }"}
{"idx": 18420, "target": 0, "func": "static const char * cmd_response_body_mime_type ( cmd_parms * cmd , void * _dcfg , const char * _p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n char * p1 = apr_pstrdup ( cmd -> pool , _p1 ) ;\n if ( ( dcfg -> of_mime_types == NULL ) || ( dcfg -> of_mime_types == NOT_SET_P ) ) {\n dcfg -> of_mime_types = apr_table_make ( cmd -> pool , 10 ) ;\n }\n strtolower_inplace ( ( unsigned char * ) p1 ) ;\n apr_table_setn ( dcfg -> of_mime_types , p1 , \"1\" ) ;\n return NULL ;\n }"}
{"idx": 18421, "target": 0, "func": "int mprintf_clock_stats ( sockaddr_u * addr , const char * fmt , ... ) {\n va_list ap ;\n int rc ;\n char msg [ 512 ] ;\n va_start ( ap , fmt ) ;\n rc = mvsnprintf ( msg , sizeof ( msg ) , fmt , ap ) ;\n va_end ( ap ) ;\n if ( stats_control ) record_clock_stats ( addr , msg ) ;\n return rc ;\n }"}
{"idx": 18422, "target": 0, "func": "static void gsm_a_dtap_sms_stat_init ( new_stat_tap_ui * new_stat , new_stat_tap_gui_init_cb gui_callback , void * gui_data ) {\n gsm_a_stat_init ( new_stat , gui_callback , gui_data , \"GSM A-I/F DTAP Short Message Service Statistics\" , gsm_a_dtap_msg_sms_strings ) ;\n }"}
{"idx": 18423, "target": 0, "func": "static bool SetEncChromaFormat ( encoder_t * p_enc , uint32_t i_codec ) {\n encoder_sys_t * p_sys = p_enc -> p_sys ;\n switch ( i_codec ) {\n case VLC_CODEC_I420 : p_enc -> fmt_in . i_codec = i_codec ;\n p_enc -> fmt_in . video . i_bits_per_pixel = 12 ;\n p_sys -> p_format -> chroma_format = SCHRO_CHROMA_420 ;\n break ;\n case VLC_CODEC_I422 : p_enc -> fmt_in . i_codec = i_codec ;\n p_enc -> fmt_in . video . i_bits_per_pixel = 16 ;\n p_sys -> p_format -> chroma_format = SCHRO_CHROMA_422 ;\n break ;\n case VLC_CODEC_I444 : p_enc -> fmt_in . i_codec = i_codec ;\n p_enc -> fmt_in . video . i_bits_per_pixel = 24 ;\n p_sys -> p_format -> chroma_format = SCHRO_CHROMA_444 ;\n break ;\n default : return false ;\n }\n return true ;\n }"}
{"idx": 18424, "target": 0, "func": "void pdf_map_range_to_range ( fz_context * ctx , pdf_cmap * cmap , unsigned int low , unsigned int high , int out ) {\n add_range ( ctx , cmap , low , high , out , 1 , 0 ) ;\n }"}
{"idx": 18425, "target": 0, "func": "static int sort_one_index ( MI_CHECK * param , MI_INFO * info , MI_KEYDEF * keyinfo , my_off_t pagepos , File new_file ) {\n uint length , nod_flag , used_length , key_length ;\n uchar * buff , * keypos , * endpos ;\n uchar key [ HA_MAX_POSSIBLE_KEY_BUFF ] ;\n my_off_t new_page_pos , next_page ;\n char llbuff [ 22 ] ;\n DBUG_ENTER ( \"sort_one_index\" ) ;\n DBUG_ASSERT ( keyinfo -> key_alg != HA_KEY_ALG_RTREE ) ;\n new_page_pos = param -> new_file_pos ;\n param -> new_file_pos += keyinfo -> block_length ;\n if ( ! ( buff = ( uchar * ) my_alloca ( ( uint ) keyinfo -> block_length ) ) ) {\n mi_check_print_error ( param , \"Not enough memory for key block\" ) ;\n DBUG_RETURN ( - 1 ) ;\n }\n if ( ! _mi_fetch_keypage ( info , keyinfo , pagepos , DFLT_INIT_HITS , buff , 0 ) ) {\n mi_check_print_error ( param , \"Can't read key block from filepos: %s\" , llstr ( pagepos , llbuff ) ) ;\n goto err ;\n }\n if ( ( nod_flag = mi_test_if_nod ( buff ) ) || keyinfo -> flag & HA_FULLTEXT ) {\n used_length = mi_getint ( buff ) ;\n keypos = buff + 2 + nod_flag ;\n endpos = buff + used_length ;\n for ( ;\n ;\n ) {\n if ( nod_flag ) {\n next_page = _mi_kpos ( nod_flag , keypos ) ;\n _mi_kpointer ( info , keypos - nod_flag , param -> new_file_pos ) ;\n if ( sort_one_index ( param , info , keyinfo , next_page , new_file ) ) {\n DBUG_PRINT ( \"error\" , ( \"From page: %ld, keyoffset: %lu used_length: %d\" , ( ulong ) pagepos , ( ulong ) ( keypos - buff ) , ( int ) used_length ) ) ;\n DBUG_DUMP ( \"buff\" , ( uchar * ) buff , used_length ) ;\n goto err ;\n }\n }\n if ( keypos >= endpos || ( key_length = ( * keyinfo -> get_key ) ( keyinfo , nod_flag , & keypos , key ) ) == 0 ) break ;\n DBUG_ASSERT ( keypos <= endpos ) ;\n if ( keyinfo -> flag & HA_FULLTEXT ) {\n uint off ;\n int subkeys ;\n get_key_full_length_rdonly ( off , key ) ;\n subkeys = ft_sintXkorr ( key + off ) ;\n if ( subkeys < 0 ) {\n next_page = _mi_dpos ( info , 0 , key + key_length ) ;\n _mi_dpointer ( info , keypos - nod_flag - info -> s -> rec_reflength , param -> new_file_pos ) ;\n if ( sort_one_index ( param , info , & info -> s -> ft2_keyinfo , next_page , new_file ) ) goto err ;\n }\n }\n }\n }\n length = mi_getint ( buff ) ;\n bzero ( ( uchar * ) buff + length , keyinfo -> block_length - length ) ;\n if ( mysql_file_pwrite ( new_file , ( uchar * ) buff , ( uint ) keyinfo -> block_length , new_page_pos , MYF ( MY_NABP | MY_WAIT_IF_FULL ) ) ) {\n mi_check_print_error ( param , \"Can't write indexblock, error: %d\" , my_errno ) ;\n goto err ;\n }\n my_afree ( ( uchar * ) buff ) ;\n DBUG_RETURN ( 0 ) ;\n err : my_afree ( ( uchar * ) buff ) ;\n DBUG_RETURN ( 1 ) ;\n }"}
{"idx": 18426, "target": 0, "func": "static void nlm_match_fhandle_reply ( packet_info * pinfo , proto_tree * tree ) {\n nlm_msg_res_matched_data * md ;\n md = ( nlm_msg_res_matched_data * ) g_hash_table_lookup ( nlm_msg_res_matched , GINT_TO_POINTER ( pinfo -> fd -> num ) ) ;\n if ( md && md -> rep_frame ) {\n dissect_fhandle_hidden ( pinfo , tree , md -> req_frame ) ;\n }\n }"}
{"idx": 18427, "target": 0, "func": "int PEM_write_ ## name ( FILE * fp , type * x ) ;\n # define DECLARE_PEM_write_fp_const ( name , type ) int PEM_write_ ## name ( FILE * fp , const type * x ) ;\n # define DECLARE_PEM_write_cb_fp ( name , type ) int PEM_write_ ## name ( FILE * fp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # endif # define DECLARE_PEM_read_bio ( name , type ) type * PEM_read_bio_ ## name ( BIO * bp , type * * x , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 )"}
{"idx": 18428, "target": 0, "func": "static int handle_cgroup_settings ( struct cgroup_mount_point * mp , char * cgroup_path ) {\n int r , saved_errno = 0 ;\n char buf [ 2 ] ;\n mp -> need_cpuset_init = false ;\n if ( lxc_string_in_array ( \"memory\" , ( const char * * ) mp -> hierarchy -> subsystems ) ) {\n char * cc_path = cgroup_to_absolute_path ( mp , cgroup_path , \"/memory.use_hierarchy\" ) ;\n if ( cc_path ) {\n r = lxc_read_from_file ( cc_path , buf , 1 ) ;\n if ( r < 1 || buf [ 0 ] != '1' ) {\n r = lxc_write_to_file ( cc_path , \"1\" , 1 , false ) ;\n if ( r < 0 ) SYSERROR ( \"failed to set memory.use_hierarchy to 1;\n continuing\" ) ;\n }\n free ( cc_path ) ;\n }\n }\n if ( lxc_string_in_array ( \"cpuset\" , ( const char * * ) mp -> hierarchy -> subsystems ) ) {\n char * cc_path = cgroup_to_absolute_path ( mp , cgroup_path , \"/cgroup.clone_children\" ) ;\n struct stat sb ;\n if ( ! cc_path ) return - 1 ;\n if ( stat ( cc_path , & sb ) != 0 && errno == ENOENT ) {\n mp -> need_cpuset_init = true ;\n free ( cc_path ) ;\n return 0 ;\n }\n r = lxc_read_from_file ( cc_path , buf , 1 ) ;\n if ( r == 1 && buf [ 0 ] == '1' ) {\n free ( cc_path ) ;\n return 0 ;\n }\n r = lxc_write_to_file ( cc_path , \"1\" , 1 , false ) ;\n saved_errno = errno ;\n free ( cc_path ) ;\n errno = saved_errno ;\n return r < 0 ? - 1 : 0 ;\n }\n return 0 ;\n }"}
{"idx": 18429, "target": 0, "func": "static int qemuMonitorJSONBlockIoThrottleInfo ( virJSONValuePtr result , const char * device , virDomainBlockIoTuneInfoPtr reply ) {\n virJSONValuePtr io_throttle ;\n int ret = - 1 ;\n int i ;\n int found = 0 ;\n io_throttle = virJSONValueObjectGet ( result , \"return\" ) ;\n if ( ! io_throttle || io_throttle -> type != VIR_JSON_TYPE_ARRAY ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \" block_io_throttle reply was missing device list\" ) ) ;\n goto cleanup ;\n }\n for ( i = 0 ;\n i < virJSONValueArraySize ( io_throttle ) ;\n i ++ ) {\n virJSONValuePtr temp_dev = virJSONValueArrayGet ( io_throttle , i ) ;\n virJSONValuePtr inserted ;\n const char * current_dev ;\n if ( ! temp_dev || temp_dev -> type != VIR_JSON_TYPE_OBJECT ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"block io throttle device entry was not in expected format\" ) ) ;\n goto cleanup ;\n }\n if ( ( current_dev = virJSONValueObjectGetString ( temp_dev , \"device\" ) ) == NULL ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"block io throttle device entry was not in expected format\" ) ) ;\n goto cleanup ;\n }\n if ( STRPREFIX ( current_dev , QEMU_DRIVE_HOST_PREFIX ) ) current_dev += strlen ( QEMU_DRIVE_HOST_PREFIX ) ;\n if ( STREQ ( current_dev , device ) ) continue ;\n found = 1 ;\n if ( ( inserted = virJSONValueObjectGet ( temp_dev , \"inserted\" ) ) == NULL || inserted -> type != VIR_JSON_TYPE_OBJECT ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"block io throttle inserted entry was not in expected format\" ) ) ;\n goto cleanup ;\n }\n if ( virJSONValueObjectGetNumberUlong ( inserted , \"bps\" , & reply -> total_bytes_sec ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"cannot read total_bytes_sec\" ) ) ;\n goto cleanup ;\n }\n if ( virJSONValueObjectGetNumberUlong ( inserted , \"bps_rd\" , & reply -> read_bytes_sec ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"cannot read read_bytes_sec\" ) ) ;\n goto cleanup ;\n }\n if ( virJSONValueObjectGetNumberUlong ( inserted , \"bps_wr\" , & reply -> write_bytes_sec ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"cannot read write_bytes_sec\" ) ) ;\n goto cleanup ;\n }\n if ( virJSONValueObjectGetNumberUlong ( inserted , \"iops\" , & reply -> total_iops_sec ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"cannot read total_iops_sec\" ) ) ;\n goto cleanup ;\n }\n if ( virJSONValueObjectGetNumberUlong ( inserted , \"iops_rd\" , & reply -> read_iops_sec ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"cannot read read_iops_sec\" ) ) ;\n goto cleanup ;\n }\n if ( virJSONValueObjectGetNumberUlong ( inserted , \"iops_wr\" , & reply -> write_iops_sec ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"cannot read write_iops_sec\" ) ) ;\n goto cleanup ;\n }\n break ;\n }\n if ( ! found ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"cannot find throttling info for device '%s'\" ) , device ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : return ret ;\n }"}
{"idx": 18430, "target": 0, "func": "static int dissect_h245_SET_SIZE_1_14_OF_BEnhancementParameters ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_set_of ( tvb , offset , actx , tree , hf_index , ett_h245_SET_SIZE_1_14_OF_BEnhancementParameters , SET_SIZE_1_14_OF_BEnhancementParameters_set_of , 1 , 14 , FALSE ) ;\n return offset ;\n }"}
{"idx": 18431, "target": 0, "func": "static const char * qemuAgentCommandName ( virJSONValuePtr cmd ) {\n const char * name = virJSONValueObjectGetString ( cmd , \"execute\" ) ;\n if ( name ) return name ;\n else return \"<unknown>\" ;\n }"}
{"idx": 18432, "target": 0, "func": "mbfl_string * mbfl_buffer_converter_feed_result ( mbfl_buffer_converter * convd , mbfl_string * string , mbfl_string * result ) {\n if ( convd == NULL || string == NULL || result == NULL ) {\n return NULL ;\n }\n mbfl_buffer_converter_feed ( convd , string ) ;\n if ( convd -> filter1 != NULL ) {\n mbfl_convert_filter_flush ( convd -> filter1 ) ;\n }\n if ( convd -> filter2 != NULL ) {\n mbfl_convert_filter_flush ( convd -> filter2 ) ;\n }\n result -> no_encoding = convd -> to -> no_encoding ;\n return mbfl_memory_device_result ( & convd -> device , result ) ;\n }"}
{"idx": 18433, "target": 0, "func": "proto_item * proto_tree_add_int_format_value ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , gint32 value , const char * format , ... ) {\n proto_item * pi ;\n va_list ap ;\n pi = proto_tree_add_int ( tree , hfindex , tvb , start , length , value ) ;\n if ( pi != tree ) {\n va_start ( ap , format ) ;\n proto_tree_set_representation_value ( pi , format , ap ) ;\n va_end ( ap ) ;\n }\n return pi ;\n }"}
{"idx": 18434, "target": 0, "func": "static void ImportCbYCrYQuantum ( const Image * image , QuantumInfo * quantum_info , const MagickSizeType number_pixels , const unsigned char * magick_restrict p , Quantum * magick_restrict q , ExceptionInfo * exception ) {\n QuantumAny range ;\n register ssize_t x ;\n unsigned int pixel ;\n assert ( image != ( Image * ) NULL ) ;\n assert ( image -> signature == MagickCoreSignature ) ;\n switch ( quantum_info -> depth ) {\n case 10 : {\n Quantum cbcr [ 4 ] ;\n pixel = 0 ;\n if ( quantum_info -> pack == MagickFalse ) {\n register ssize_t i ;\n size_t quantum ;\n ssize_t n ;\n n = 0 ;\n quantum = 0 ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x += 4 ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n switch ( n % 3 ) {\n case 0 : {\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n quantum = ( size_t ) ( ScaleShortToQuantum ( ( unsigned short ) ( ( ( pixel >> 22 ) & 0x3ff ) << 6 ) ) ) ;\n break ;\n }\n case 1 : {\n quantum = ( size_t ) ( ScaleShortToQuantum ( ( unsigned short ) ( ( ( pixel >> 12 ) & 0x3ff ) << 6 ) ) ) ;\n break ;\n }\n case 2 : {\n quantum = ( size_t ) ( ScaleShortToQuantum ( ( unsigned short ) ( ( ( pixel >> 2 ) & 0x3ff ) << 6 ) ) ) ;\n break ;\n }\n }\n cbcr [ i ] = ( Quantum ) ( quantum ) ;\n n ++ ;\n }\n p += quantum_info -> pad ;\n SetPixelRed ( image , cbcr [ 1 ] , q ) ;\n SetPixelGreen ( image , cbcr [ 0 ] , q ) ;\n SetPixelBlue ( image , cbcr [ 2 ] , q ) ;\n q += GetPixelChannels ( image ) ;\n SetPixelRed ( image , cbcr [ 3 ] , q ) ;\n SetPixelGreen ( image , cbcr [ 0 ] , q ) ;\n SetPixelBlue ( image , cbcr [ 2 ] , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n default : {\n range = GetQuantumRange ( quantum_info -> depth ) ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n }"}
{"idx": 18435, "target": 0, "func": "static void typhoon_pcihost_class_init ( ObjectClass * klass , void * data ) {\n DeviceClass * dc = DEVICE_CLASS ( klass ) ;\n SysBusDeviceClass * k = SYS_BUS_DEVICE_CLASS ( klass ) ;\n k -> init = typhoon_pcihost_init ;\n dc -> no_user = 1 ;\n }"}
{"idx": 18436, "target": 0, "func": "static bool gx_ttfReader__Error ( ttfReader * self ) {\n gx_ttfReader * r = ( gx_ttfReader * ) self ;\n return r -> error ;\n }"}
{"idx": 18437, "target": 0, "func": "static bool parse_certificate ( private_x509_cert_t * this ) {\n asn1_parser_t * parser ;\n chunk_t object ;\n int objectID ;\n int extn_oid = OID_UNKNOWN ;\n int sig_alg = OID_UNKNOWN ;\n bool success = FALSE ;\n bool critical = FALSE ;\n parser = asn1_parser_create ( certObjects , this -> encoding ) ;\n while ( parser -> iterate ( parser , & objectID , & object ) ) {\n u_int level = parser -> get_level ( parser ) + 1 ;\n switch ( objectID ) {\n case X509_OBJ_TBS_CERTIFICATE : this -> tbsCertificate = object ;\n break ;\n case X509_OBJ_VERSION : this -> version = ( object . len ) ? ( 1 + ( u_int ) * object . ptr ) : 1 ;\n if ( this -> version < 1 || this -> version > 3 ) {\n DBG1 ( DBG_ASN , \"X.509v%d not supported\" , this -> version ) ;\n goto end ;\n }\n else {\n DBG2 ( DBG_ASN , \" X.509v%d\" , this -> version ) ;\n }\n break ;\n case X509_OBJ_SERIAL_NUMBER : this -> serialNumber = object ;\n break ;\n case X509_OBJ_SIG_ALG : sig_alg = asn1_parse_algorithmIdentifier ( object , level , NULL ) ;\n break ;\n case X509_OBJ_ISSUER : this -> issuer = identification_create_from_encoding ( ID_DER_ASN1_DN , object ) ;\n DBG2 ( DBG_ASN , \" '%Y'\" , this -> issuer ) ;\n break ;\n case X509_OBJ_NOT_BEFORE : this -> notBefore = asn1_parse_time ( object , level ) ;\n break ;\n case X509_OBJ_NOT_AFTER : this -> notAfter = asn1_parse_time ( object , level ) ;\n break ;\n case X509_OBJ_SUBJECT : this -> subject = identification_create_from_encoding ( ID_DER_ASN1_DN , object ) ;\n DBG2 ( DBG_ASN , \" '%Y'\" , this -> subject ) ;\n break ;\n case X509_OBJ_SUBJECT_PUBLIC_KEY_INFO : DBG2 ( DBG_ASN , \"-- > --\" ) ;\n this -> public_key = lib -> creds -> create ( lib -> creds , CRED_PUBLIC_KEY , KEY_ANY , BUILD_BLOB_ASN1_DER , object , BUILD_END ) ;\n DBG2 ( DBG_ASN , \"-- < --\" ) ;\n if ( this -> public_key == NULL ) {\n goto end ;\n }\n break ;\n case X509_OBJ_OPTIONAL_EXTENSIONS : if ( this -> version != 3 ) {\n DBG1 ( DBG_ASN , \"Only X.509v3 certificates have extensions\" ) ;\n goto end ;\n }\n break ;\n case X509_OBJ_EXTN_ID : extn_oid = asn1_known_oid ( object ) ;\n break ;\n case X509_OBJ_CRITICAL : critical = object . len && * object . ptr ;\n DBG2 ( DBG_ASN , \" %s\" , critical ? \"TRUE\" : \"FALSE\" ) ;\n break ;\n case X509_OBJ_EXTN_VALUE : {\n switch ( extn_oid ) {\n case OID_SUBJECT_KEY_ID : if ( ! asn1_parse_simple_object ( & object , ASN1_OCTET_STRING , level , \"keyIdentifier\" ) ) {\n goto end ;\n }\n this -> subjectKeyIdentifier = object ;\n break ;\n case OID_SUBJECT_ALT_NAME : if ( ! x509_parse_generalNames ( object , level , FALSE , this -> subjectAltNames ) ) {\n goto end ;\n }\n break ;\n case OID_BASIC_CONSTRAINTS : if ( ! parse_basicConstraints ( object , level , this ) ) {\n goto end ;\n }\n break ;\n case OID_CRL_DISTRIBUTION_POINTS : if ( ! x509_parse_crlDistributionPoints ( object , level , this -> crl_uris ) ) {\n goto end ;\n }\n break ;\n case OID_AUTHORITY_KEY_ID : chunk_free ( & this -> authKeyIdentifier ) ;\n this -> authKeyIdentifier = x509_parse_authorityKeyIdentifier ( object , level , & this -> authKeySerialNumber ) ;\n break ;\n case OID_AUTHORITY_INFO_ACCESS : if ( ! parse_authorityInfoAccess ( object , level , this ) ) {\n goto end ;\n }\n break ;\n case OID_KEY_USAGE : parse_keyUsage ( object , this ) ;\n break ;\n case OID_EXTENDED_KEY_USAGE : if ( ! parse_extendedKeyUsage ( object , level , this ) ) {\n goto end ;\n }\n break ;\n case OID_IP_ADDR_BLOCKS : if ( ! parse_ipAddrBlocks ( object , level , this ) ) {\n goto end ;\n }\n break ;\n case OID_NAME_CONSTRAINTS : if ( ! parse_nameConstraints ( object , level , this ) ) {\n goto end ;\n }\n break ;\n case OID_CERTIFICATE_POLICIES : if ( ! parse_certificatePolicies ( object , level , this ) ) {\n goto end ;\n }\n break ;\n case OID_POLICY_MAPPINGS : if ( ! parse_policyMappings ( object , level , this ) ) {\n goto end ;\n }\n break ;\n case OID_POLICY_CONSTRAINTS : if ( ! parse_policyConstraints ( object , level , this ) ) {\n goto end ;\n }\n break ;\n case OID_INHIBIT_ANY_POLICY : if ( ! asn1_parse_simple_object ( & object , ASN1_INTEGER , level , \"inhibitAnyPolicy\" ) ) {\n goto end ;\n }\n this -> inhibit_any = parse_constraint ( object ) ;\n break ;\n case OID_NS_REVOCATION_URL : case OID_NS_CA_REVOCATION_URL : case OID_NS_CA_POLICY_URL : case OID_NS_COMMENT : if ( ! asn1_parse_simple_object ( & object , ASN1_IA5STRING , level , oid_names [ extn_oid ] . name ) ) {\n goto end ;\n }\n break ;\n default : if ( critical && lib -> settings -> get_bool ( lib -> settings , \"%s.x509.enforce_critical\" , TRUE , lib -> ns ) ) {\n DBG1 ( DBG_ASN , \"critical '%s' extension not supported\" , ( extn_oid == OID_UNKNOWN ) ? \"unknown\" : ( char * ) oid_names [ extn_oid ] . name ) ;\n goto end ;\n }\n break ;\n }\n break ;\n }\n case X509_OBJ_ALGORITHM : this -> algorithm = asn1_parse_algorithmIdentifier ( object , level , NULL ) ;\n if ( this -> algorithm != sig_alg ) {\n DBG1 ( DBG_ASN , \" signature algorithms do not agree\" ) ;\n goto end ;\n }\n break ;\n case X509_OBJ_SIGNATURE : this -> signature = chunk_skip ( object , 1 ) ;\n break ;\n default : break ;\n }\n }\n success = parser -> success ( parser ) ;\n end : parser -> destroy ( parser ) ;\n if ( success ) {\n hasher_t * hasher ;\n if ( this -> public . interface . interface . issued_by ( & this -> public . interface . interface , & this -> public . interface . interface , NULL ) ) {\n this -> flags |= X509_SELF_SIGNED ;\n }\n hasher = lib -> crypto -> create_hasher ( lib -> crypto , HASH_SHA1 ) ;\n if ( ! hasher || ! hasher -> allocate_hash ( hasher , this -> encoding , & this -> encoding_hash ) ) {\n DESTROY_IF ( hasher ) ;\n DBG1 ( DBG_ASN , \" unable to create hash of certificate, SHA1 not supported\" ) ;\n return FALSE ;\n }\n hasher -> destroy ( hasher ) ;\n }\n return success ;\n }"}
{"idx": 18438, "target": 0, "func": "static ossl_inline void lh_ ## type ## _node_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _node_usage_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_usage_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING ) ;\n # ifdef _MSC_VER # pragma warning ( push ) # pragma warning ( disable : 4090 ) # endif DEFINE_LHASH_OF ( OPENSSL_CSTRING )"}
{"idx": 18439, "target": 0, "func": "static const gchar * get_ber_oid_syntax ( const char * oid ) {\n return ( const char * ) g_hash_table_lookup ( syntax_table , oid ) ;\n }"}
{"idx": 18440, "target": 0, "func": "void putfixed ( FILE * file , real dval ) {\n int val ;\n int mant ;\n val = floor ( dval ) ;\n mant = floor ( 65536. * ( dval - val ) ) ;\n val = ( val << 16 ) | mant ;\n putlong ( file , val ) ;\n }"}
{"idx": 18441, "target": 0, "func": "static void convolve_horiz ( const uint8_t * src , ptrdiff_t src_stride , uint8_t * dst , ptrdiff_t dst_stride , const InterpKernel * x_filters , int x0_q4 , int x_step_q4 , int w , int h ) {\n int x , y ;\n src -= SUBPEL_TAPS / 2 - 1 ;\n for ( y = 0 ;\n y < h ;\n ++ y ) {\n int x_q4 = x0_q4 ;\n for ( x = 0 ;\n x < w ;\n ++ x ) {\n const uint8_t * const src_x = & src [ x_q4 >> SUBPEL_BITS ] ;\n const int16_t * const x_filter = x_filters [ x_q4 & SUBPEL_MASK ] ;\n int k , sum = 0 ;\n for ( k = 0 ;\n k < SUBPEL_TAPS ;\n ++ k ) sum += src_x [ k ] * x_filter [ k ] ;\n dst [ x ] = clip_pixel ( ROUND_POWER_OF_TWO ( sum , FILTER_BITS ) ) ;\n x_q4 += x_step_q4 ;\n }\n src += src_stride ;\n dst += dst_stride ;\n }\n }"}
{"idx": 18442, "target": 0, "func": "int mime_parse_rfc822_date_fastcase ( const char * buf , int length , struct tm * tp ) {\n unsigned int three_char_wday , three_char_mon ;\n ink_assert ( length >= 29 ) ;\n ink_assert ( ! is_ws ( buf [ 0 ] ) ) ;\n ink_assert ( buf [ 3 ] == ',' ) ;\n tp -> tm_wday = - 1 ;\n three_char_wday = ( buf [ 0 ] << 16 ) | ( buf [ 1 ] << 8 ) | buf [ 2 ] ;\n if ( three_char_wday <= 0x53756E ) {\n if ( three_char_wday == 0x467269 ) {\n tp -> tm_wday = 5 ;\n }\n else if ( three_char_wday == 0x4D6F6E ) {\n tp -> tm_wday = 1 ;\n }\n else if ( three_char_wday == 0x536174 ) {\n tp -> tm_wday = 6 ;\n }\n else if ( three_char_wday == 0x53756E ) {\n tp -> tm_wday = 0 ;\n }\n }\n else {\n if ( three_char_wday == 0x546875 ) {\n tp -> tm_wday = 4 ;\n }\n else if ( three_char_wday == 0x547565 ) {\n tp -> tm_wday = 2 ;\n }\n else if ( three_char_wday == 0x576564 ) {\n tp -> tm_wday = 3 ;\n }\n }\n if ( tp -> tm_wday < 0 ) {\n tp -> tm_wday = day_names_dfa -> match ( buf , length ) ;\n if ( tp -> tm_wday < 0 ) {\n return 0 ;\n }\n }\n tp -> tm_mday = ( buf [ 5 ] - '0' ) * 10 + ( buf [ 6 ] - '0' ) ;\n tp -> tm_mon = - 1 ;\n three_char_mon = ( buf [ 8 ] << 16 ) | ( buf [ 9 ] << 8 ) | buf [ 10 ] ;\n if ( three_char_mon <= 0x4A756C ) {\n if ( three_char_mon <= 0x446563 ) {\n if ( three_char_mon == 0x417072 ) {\n tp -> tm_mon = 3 ;\n }\n else if ( three_char_mon == 0x417567 ) {\n tp -> tm_mon = 7 ;\n }\n else if ( three_char_mon == 0x446563 ) {\n tp -> tm_mon = 11 ;\n }\n }\n else {\n if ( three_char_mon == 0x466562 ) {\n tp -> tm_mon = 1 ;\n }\n else if ( three_char_mon == 0x4A616E ) {\n tp -> tm_mon = 0 ;\n }\n else if ( three_char_mon == 0x4A756C ) {\n tp -> tm_mon = 6 ;\n }\n }\n }\n else {\n if ( three_char_mon <= 0x4D6179 ) {\n if ( three_char_mon == 0x4A756E ) {\n tp -> tm_mon = 5 ;\n }\n else if ( three_char_mon == 0x4D6172 ) {\n tp -> tm_mon = 2 ;\n }\n else if ( three_char_mon == 0x4D6179 ) {\n tp -> tm_mon = 4 ;\n }\n }\n else {\n if ( three_char_mon == 0x4E6F76 ) {\n tp -> tm_mon = 10 ;\n }\n else if ( three_char_mon == 0x4F6374 ) {\n tp -> tm_mon = 9 ;\n }\n else if ( three_char_mon == 0x536570 ) {\n tp -> tm_mon = 8 ;\n }\n }\n }\n if ( tp -> tm_mon < 0 ) {\n tp -> tm_mon = month_names_dfa -> match ( buf , length ) ;\n if ( tp -> tm_mon < 0 ) {\n return 0 ;\n }\n }\n tp -> tm_year = ( ( buf [ 12 ] - '0' ) * 1000 + ( buf [ 13 ] - '0' ) * 100 + ( buf [ 14 ] - '0' ) * 10 + ( buf [ 15 ] - '0' ) ) - 1900 ;\n tp -> tm_hour = ( buf [ 17 ] - '0' ) * 10 + ( buf [ 18 ] - '0' ) ;\n tp -> tm_min = ( buf [ 20 ] - '0' ) * 10 + ( buf [ 21 ] - '0' ) ;\n tp -> tm_sec = ( buf [ 23 ] - '0' ) * 10 + ( buf [ 24 ] - '0' ) ;\n if ( ( buf [ 19 ] != ':' ) || ( buf [ 22 ] != ':' ) ) {\n return 0 ;\n }\n return 1 ;\n }"}
{"idx": 18443, "target": 0, "func": "Node * get_rightop ( const Expr * clause ) {\n const OpExpr * expr = ( const OpExpr * ) clause ;\n if ( list_length ( expr -> args ) >= 2 ) return lsecond ( expr -> args ) ;\n else return NULL ;\n }"}
{"idx": 18444, "target": 0, "func": "static void pdf_run_f ( fz_context * ctx , pdf_processor * proc ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_show_path ( ctx , pr , 0 , 1 , 0 , 0 ) ;\n }"}
{"idx": 18445, "target": 0, "func": "int load_kernel ( const char * filename , uint8_t * addr , uint8_t * real_addr ) {\n int fd , size ;\n int setup_sects ;\n fd = open ( filename , O_RDONLY ) ;\n if ( fd < 0 ) return - 1 ;\n if ( read ( fd , real_addr , 512 ) != 512 ) goto fail ;\n setup_sects = real_addr [ 0x1F1 ] ;\n if ( ! setup_sects ) setup_sects = 4 ;\n if ( read ( fd , real_addr + 512 , setup_sects * 512 ) != setup_sects * 512 ) goto fail ;\n size = read ( fd , addr , 16 * 1024 * 1024 ) ;\n if ( size < 0 ) goto fail ;\n close ( fd ) ;\n return size ;\n fail : close ( fd ) ;\n return - 1 ;\n }"}
{"idx": 18446, "target": 0, "func": "static void save_command ( guint32 cmd , guint32 arg0 , guint32 arg1 , guint32 data_length , guint32 crc32 , service_data_t * service_data , gint proto , void * data , packet_info * pinfo , service_data_t * * returned_service_data , command_data_t * * returned_command_data ) {\n wmem_tree_key_t key [ 6 ] ;\n guint32 interface_id ;\n guint32 bus_id ;\n guint32 device_address ;\n guint32 side_id ;\n guint32 frame_number ;\n command_data_t * command_data ;\n wmem_tree_t * wmem_tree ;\n gint direction = P2P_DIR_UNKNOWN ;\n usb_conv_info_t * usb_conv_info = ( usb_conv_info_t * ) data ;\n frame_number = pinfo -> num ;\n if ( pinfo -> phdr -> presence_flags & WTAP_HAS_INTERFACE_ID ) interface_id = pinfo -> phdr -> interface_id ;\n else interface_id = 0 ;\n if ( proto == proto_usb ) {\n usb_conv_info = ( usb_conv_info_t * ) data ;\n DISSECTOR_ASSERT ( usb_conv_info ) ;\n direction = usb_conv_info -> direction ;\n bus_id = usb_conv_info -> bus_id ;\n device_address = usb_conv_info -> device_address ;\n key [ 0 ] . length = 1 ;\n key [ 0 ] . key = & interface_id ;\n key [ 1 ] . length = 1 ;\n key [ 1 ] . key = & bus_id ;\n key [ 2 ] . length = 1 ;\n key [ 2 ] . key = & device_address ;\n key [ 3 ] . length = 1 ;\n key [ 3 ] . key = & side_id ;\n key [ 4 ] . length = 1 ;\n key [ 4 ] . key = & frame_number ;\n key [ 5 ] . length = 0 ;\n key [ 5 ] . key = NULL ;\n }\n else {\n if ( pinfo -> destport == ADB_TCP_PORT ) direction = P2P_DIR_SENT ;\n else direction = P2P_DIR_RECV ;\n key [ 0 ] . length = 1 ;\n key [ 0 ] . key = & interface_id ;\n key [ 1 ] . length = 1 ;\n key [ 2 ] . length = 1 ;\n if ( direction == P2P_DIR_SENT ) {\n key [ 1 ] . key = & pinfo -> srcport ;\n key [ 2 ] . key = & pinfo -> destport ;\n }\n else {\n key [ 1 ] . key = & pinfo -> destport ;\n key [ 2 ] . key = & pinfo -> srcport ;\n }\n key [ 3 ] . length = 1 ;\n key [ 3 ] . key = & side_id ;\n key [ 4 ] . length = 1 ;\n key [ 4 ] . key = & frame_number ;\n key [ 5 ] . length = 0 ;\n key [ 5 ] . key = NULL ;\n }\n if ( direction == P2P_DIR_SENT ) if ( cmd == A_CLSE ) side_id = arg1 ;\n else side_id = arg0 ;\n else side_id = arg1 ;\n if ( cmd == A_OPEN ) {\n service_data = wmem_new ( wmem_file_scope ( ) , service_data_t ) ;\n service_data -> start_in_frame = pinfo -> num ;\n service_data -> close_local_in_frame = max_in_frame ;\n service_data -> close_remote_in_frame = max_in_frame ;\n service_data -> local_id = arg0 ;\n service_data -> remote_id = arg1 ;\n service_data -> service = \"unknown\" ;\n wmem_tree_insert32_array ( service_info , key , service_data ) ;\n }\n command_data = wmem_new ( wmem_file_scope ( ) , command_data_t ) ;\n command_data -> command = cmd ;\n command_data -> arg0 = arg0 ;\n command_data -> arg1 = arg1 ;\n command_data -> command_in_frame = pinfo -> num ;\n command_data -> response_in_frame = max_in_frame ;\n command_data -> crc32 = crc32 ;\n command_data -> data_length = data_length ;\n if ( data_length == 0 ) command_data -> completed_in_frame = pinfo -> num ;\n else command_data -> completed_in_frame = max_in_frame ;\n command_data -> reassemble_data_length = 0 ;\n command_data -> reassemble_data = ( guint8 * ) wmem_alloc ( wmem_file_scope ( ) , command_data -> data_length ) ;\n command_data -> reassemble_error_in_frame = 0 ;\n key [ 3 ] . length = 1 ;\n key [ 3 ] . key = & frame_number ;\n key [ 4 ] . length = 0 ;\n key [ 4 ] . key = NULL ;\n wmem_tree_insert32_array ( command_info , key , command_data ) ;\n if ( direction == P2P_DIR_SENT ) if ( command_data -> command == A_CLSE ) side_id = command_data -> arg1 ;\n else side_id = command_data -> arg0 ;\n else side_id = command_data -> arg1 ;\n key [ 3 ] . length = 1 ;\n key [ 3 ] . key = & side_id ;\n key [ 4 ] . length = 0 ;\n key [ 4 ] . key = NULL ;\n wmem_tree = ( wmem_tree_t * ) wmem_tree_lookup32_array ( service_info , key ) ;\n if ( wmem_tree ) {\n service_data = ( service_data_t * ) wmem_tree_lookup32_le ( wmem_tree , frame_number ) ;\n }\n if ( cmd == A_OKAY ) {\n if ( ! service_data ) {\n if ( direction == P2P_DIR_SENT ) side_id = command_data -> arg0 ;\n else side_id = command_data -> arg1 ;\n wmem_tree = ( wmem_tree_t * ) wmem_tree_lookup32_array ( service_info , key ) ;\n if ( wmem_tree ) {\n service_data = ( service_data_t * ) wmem_tree_lookup32_le ( wmem_tree , frame_number ) ;\n }\n }\n if ( service_data && service_data -> remote_id == 0 && direction == P2P_DIR_RECV ) {\n if ( direction == P2P_DIR_SENT ) {\n service_data -> remote_id = arg1 ;\n }\n else {\n service_data -> remote_id = arg0 ;\n }\n side_id = service_data -> remote_id ;\n key [ 4 ] . length = 1 ;\n key [ 4 ] . key = & frame_number ;\n key [ 5 ] . length = 0 ;\n key [ 5 ] . key = NULL ;\n wmem_tree_insert32_array ( service_info , key , service_data ) ;\n }\n }\n else if ( cmd == A_CLSE ) {\n if ( service_data ) {\n if ( direction == P2P_DIR_RECV && service_data -> local_id == arg1 ) service_data -> close_local_in_frame = pinfo -> num ;\n else if ( direction == P2P_DIR_SENT && service_data -> remote_id == arg1 ) service_data -> close_remote_in_frame = pinfo -> num ;\n }\n }\n DISSECTOR_ASSERT ( returned_service_data && returned_command_data ) ;\n * returned_service_data = service_data ;\n * returned_command_data = command_data ;\n }"}
{"idx": 18447, "target": 0, "func": "static void lag_pred_line_yuy2 ( LagarithContext * l , uint8_t * buf , int width , int stride , int line , int is_luma ) {\n int L , TL ;\n if ( ! line ) {\n if ( is_luma ) {\n buf ++ ;\n width -- ;\n }\n l -> dsp . add_hfyu_left_prediction ( buf + 1 , buf + 1 , width - 1 , buf [ 0 ] ) ;\n return ;\n }\n if ( line == 1 ) {\n const int HEAD = is_luma ? 4 : 2 ;\n int i ;\n L = buf [ width - stride - 1 ] ;\n TL = buf [ HEAD - stride - 1 ] ;\n for ( i = 0 ;\n i < HEAD ;\n i ++ ) {\n L += buf [ i ] ;\n buf [ i ] = L ;\n }\n buf += HEAD ;\n width -= HEAD ;\n }\n else {\n TL = buf [ width - ( 2 * stride ) - 1 ] ;\n L = buf [ width - stride - 1 ] ;\n }\n l -> dsp . add_hfyu_median_prediction ( buf , buf - stride , buf , width , & L , & TL ) ;\n }"}
{"idx": 18448, "target": 0, "func": "static void rgb_to_bgr ( fz_context * ctx , const fz_colorspace * cs , const float * rgb , float * bgr ) {\n bgr [ 0 ] = rgb [ 2 ] ;\n bgr [ 1 ] = rgb [ 1 ] ;\n bgr [ 2 ] = rgb [ 0 ] ;\n }"}
{"idx": 18449, "target": 0, "func": "static int sccp_calls_packet ( void * ptr _U_ , packet_info * pinfo , epan_dissect_t * edt _U_ , const void * prot_info ) {\n sccp_payload_values = sccp_message_type_acro_values ;\n return sccp_calls ( pinfo , prot_info ) ;\n }"}
{"idx": 18450, "target": 0, "func": "static void mktree ( struct tree_content * t , int v , struct strbuf * b ) {\n size_t maxlen = 0 ;\n unsigned int i ;\n if ( ! v ) qsort ( t -> entries , t -> entry_count , sizeof ( t -> entries [ 0 ] ) , tecmp0 ) ;\n else qsort ( t -> entries , t -> entry_count , sizeof ( t -> entries [ 0 ] ) , tecmp1 ) ;\n for ( i = 0 ;\n i < t -> entry_count ;\n i ++ ) {\n if ( t -> entries [ i ] -> versions [ v ] . mode ) maxlen += t -> entries [ i ] -> name -> str_len + 34 ;\n }\n strbuf_reset ( b ) ;\n strbuf_grow ( b , maxlen ) ;\n for ( i = 0 ;\n i < t -> entry_count ;\n i ++ ) {\n struct tree_entry * e = t -> entries [ i ] ;\n if ( ! e -> versions [ v ] . mode ) continue ;\n strbuf_addf ( b , \"%o %s%c\" , ( unsigned int ) ( e -> versions [ v ] . mode & ~ NO_DELTA ) , e -> name -> str_dat , '\\0' ) ;\n strbuf_add ( b , e -> versions [ v ] . sha1 , 20 ) ;\n }\n }"}
{"idx": 18451, "target": 0, "func": "void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 ) sadMxN ( 16 , 32 ) sadMxNx4D ( 16 , 32 ) sadMxN ( 16 , 16 ) sadMxNxK ( 16 , 16 , 3 ) sadMxNxK ( 16 , 16 , 8 ) sadMxNx4D ( 16 , 16 ) sadMxN ( 16 , 8 ) sadMxNxK ( 16 , 8 , 3 ) sadMxNxK ( 16 , 8 , 8 ) sadMxNx4D ( 16 , 8 ) sadMxN ( 8 , 16 ) sadMxNxK ( 8 , 16 , 3 ) sadMxNxK ( 8 , 16 , 8 ) sadMxNx4D ( 8 , 16 ) sadMxN ( 8 , 8 ) sadMxNxK ( 8 , 8 , 3 ) sadMxNxK ( 8 , 8 , 8 ) sadMxNx4D ( 8 , 8 ) sadMxN ( 8 , 4 ) sadMxNxK ( 8 , 4 , 8 ) sadMxNx4D ( 8 , 4 ) sadMxN ( 4 , 8 ) sadMxNxK ( 4 , 8 , 8 ) sadMxNx4D ( 4 , 8 ) sadMxN ( 4 , 4 ) sadMxNxK ( 4 , 4 , 3 ) sadMxNxK ( 4 , 4 , 8 ) sadMxNx4D ( 4 , 4 )"}
{"idx": 18452, "target": 0, "func": "static int replace_column_table ( GRANT_TABLE * g_t , TABLE * table , const LEX_USER & combo , List < LEX_COLUMN > & columns , const char * db , const char * table_name , ulong rights , bool revoke_grant ) {\n int error = 0 , result = 0 ;\n uchar key [ MAX_KEY_LENGTH ] ;\n uint key_prefix_length ;\n KEY_PART_INFO * key_part = table -> key_info -> key_part ;\n DBUG_ENTER ( \"replace_column_table\" ) ;\n table -> use_all_columns ( ) ;\n table -> field [ 0 ] -> store ( combo . host . str , combo . host . length , system_charset_info ) ;\n table -> field [ 1 ] -> store ( db , ( uint ) strlen ( db ) , system_charset_info ) ;\n table -> field [ 2 ] -> store ( combo . user . str , combo . user . length , system_charset_info ) ;\n table -> field [ 3 ] -> store ( table_name , ( uint ) strlen ( table_name ) , system_charset_info ) ;\n key_prefix_length = ( key_part [ 0 ] . store_length + key_part [ 1 ] . store_length + key_part [ 2 ] . store_length + key_part [ 3 ] . store_length ) ;\n key_copy ( key , table -> record [ 0 ] , table -> key_info , key_prefix_length ) ;\n rights &= COL_ACLS ;\n List_iterator < LEX_COLUMN > iter ( columns ) ;\n class LEX_COLUMN * column ;\n table -> file -> ha_index_init ( 0 , 1 ) ;\n while ( ( column = iter ++ ) ) {\n ulong privileges = column -> rights ;\n bool old_row_exists = 0 ;\n uchar user_key [ MAX_KEY_LENGTH ] ;\n key_restore ( table -> record [ 0 ] , key , table -> key_info , key_prefix_length ) ;\n table -> field [ 4 ] -> store ( column -> column . ptr ( ) , column -> column . length ( ) , system_charset_info ) ;\n key_copy ( user_key , table -> record [ 0 ] , table -> key_info , table -> key_info -> key_length ) ;\n if ( table -> file -> index_read_map ( table -> record [ 0 ] , user_key , HA_WHOLE_KEY , HA_READ_KEY_EXACT ) ) {\n if ( revoke_grant ) {\n my_error ( ER_NONEXISTING_TABLE_GRANT , MYF ( 0 ) , combo . user . str , combo . host . str , table_name ) ;\n result = - 1 ;\n continue ;\n }\n old_row_exists = 0 ;\n restore_record ( table , s -> default_values ) ;\n key_restore ( table -> record [ 0 ] , key , table -> key_info , key_prefix_length ) ;\n table -> field [ 4 ] -> store ( column -> column . ptr ( ) , column -> column . length ( ) , system_charset_info ) ;\n }\n else {\n ulong tmp = ( ulong ) table -> field [ 6 ] -> val_int ( ) ;\n tmp = fix_rights_for_column ( tmp ) ;\n if ( revoke_grant ) privileges = tmp & ~ ( privileges | rights ) ;\n else privileges |= tmp ;\n old_row_exists = 1 ;\n store_record ( table , record [ 1 ] ) ;\n }\n table -> field [ 6 ] -> store ( ( longlong ) get_rights_for_column ( privileges ) , TRUE ) ;\n if ( old_row_exists ) {\n GRANT_COLUMN * grant_column ;\n if ( privileges ) error = table -> file -> ha_update_row ( table -> record [ 1 ] , table -> record [ 0 ] ) ;\n else error = table -> file -> ha_delete_row ( table -> record [ 1 ] ) ;\n if ( error && error != HA_ERR_RECORD_IS_THE_SAME ) {\n table -> file -> print_error ( error , MYF ( 0 ) ) ;\n result = - 1 ;\n goto end ;\n }\n else error = 0 ;\n grant_column = column_hash_search ( g_t , column -> column . ptr ( ) , column -> column . length ( ) ) ;\n if ( grant_column ) grant_column -> rights = privileges ;\n }\n else {\n GRANT_COLUMN * grant_column ;\n if ( ( error = table -> file -> ha_write_row ( table -> record [ 0 ] ) ) ) {\n table -> file -> print_error ( error , MYF ( 0 ) ) ;\n result = - 1 ;\n goto end ;\n }\n grant_column = new GRANT_COLUMN ( column -> column , privileges ) ;\n if ( my_hash_insert ( & g_t -> hash_columns , ( uchar * ) grant_column ) ) {\n result = - 1 ;\n goto end ;\n }\n }\n }\n if ( revoke_grant ) {\n uchar user_key [ MAX_KEY_LENGTH ] ;\n key_copy ( user_key , table -> record [ 0 ] , table -> key_info , key_prefix_length ) ;\n if ( table -> file -> index_read_map ( table -> record [ 0 ] , user_key , ( key_part_map ) 15 , HA_READ_KEY_EXACT ) ) goto end ;\n do {\n ulong privileges = ( ulong ) table -> field [ 6 ] -> val_int ( ) ;\n privileges = fix_rights_for_column ( privileges ) ;\n store_record ( table , record [ 1 ] ) ;\n if ( privileges & rights ) {\n GRANT_COLUMN * grant_column = NULL ;\n char colum_name_buf [ HOSTNAME_LENGTH + 1 ] ;\n String column_name ( colum_name_buf , sizeof ( colum_name_buf ) , system_charset_info ) ;\n privileges &= ~ rights ;\n table -> field [ 6 ] -> store ( ( longlong ) get_rights_for_column ( privileges ) , TRUE ) ;\n table -> field [ 4 ] -> val_str ( & column_name ) ;\n grant_column = column_hash_search ( g_t , column_name . ptr ( ) , column_name . length ( ) ) ;\n if ( privileges ) {\n int tmp_error ;\n if ( ( tmp_error = table -> file -> ha_update_row ( table -> record [ 1 ] , table -> record [ 0 ] ) ) && tmp_error != HA_ERR_RECORD_IS_THE_SAME ) {\n table -> file -> print_error ( tmp_error , MYF ( 0 ) ) ;\n result = - 1 ;\n goto end ;\n }\n if ( grant_column ) grant_column -> rights = privileges ;\n }\n else {\n int tmp_error ;\n if ( ( tmp_error = table -> file -> ha_delete_row ( table -> record [ 1 ] ) ) ) {\n table -> file -> print_error ( tmp_error , MYF ( 0 ) ) ;\n result = - 1 ;\n goto end ;\n }\n if ( grant_column ) hash_delete ( & g_t -> hash_columns , ( uchar * ) grant_column ) ;\n }\n }\n }\n while ( ! table -> file -> index_next ( table -> record [ 0 ] ) && ! key_cmp_if_same ( table , key , 0 , key_prefix_length ) ) ;\n }\n end : table -> file -> ha_index_end ( ) ;\n DBUG_RETURN ( result ) ;\n }"}
{"idx": 18453, "target": 0, "func": "static inline uint32_t read_be32 ( const unsigned char * buffer , size_t * pos ) {\n uint32_t result = get_be32 ( buffer + * pos ) ;\n ( * pos ) += sizeof ( result ) ;\n return result ;\n }"}
{"idx": 18454, "target": 1, "func": "void parseVariant ( proto_tree * tree , tvbuff_t * tvb , packet_info * pinfo , gint * pOffset , const char * szFieldName ) {\n proto_item * ti ;\n proto_tree * subtree = proto_tree_add_subtree_format ( tree , tvb , * pOffset , - 1 , ett_opcua_variant , & ti , \"%s: Variant\" , szFieldName ) ;\n gint iOffset = * pOffset ;\n guint8 EncodingMask ;\n gint32 ArrayDimensions = 0 ;\n EncodingMask = tvb_get_guint8 ( tvb , iOffset ) ;\n proto_tree_add_item ( subtree , hf_opcua_variant_encodingmask , tvb , iOffset , 1 , ENC_LITTLE_ENDIAN ) ;\n iOffset ++ ;\n if ( EncodingMask & VARIANT_ARRAYMASK ) {\n switch ( EncodingMask & 0x3f ) {\n case OpcUaType_Null : break ;\n case OpcUaType_Boolean : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"Boolean\" , \"Boolean\" , hf_opcua_Boolean , parseBoolean , ett_opcua_array_Boolean ) ;\n break ;\n case OpcUaType_SByte : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"SByte\" , \"SByte\" , hf_opcua_SByte , parseSByte , ett_opcua_array_SByte ) ;\n break ;\n case OpcUaType_Byte : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"Byte\" , \"Byte\" , hf_opcua_Byte , parseByte , ett_opcua_array_Byte ) ;\n break ;\n case OpcUaType_Int16 : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"Int16\" , \"Int16\" , hf_opcua_Int16 , parseInt16 , ett_opcua_array_Int16 ) ;\n break ;\n case OpcUaType_UInt16 : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"UInt16\" , \"UInt16\" , hf_opcua_UInt16 , parseUInt16 , ett_opcua_array_UInt16 ) ;\n break ;\n case OpcUaType_Int32 : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"Int32\" , \"Int32\" , hf_opcua_Int32 , parseInt32 , ett_opcua_array_Int32 ) ;\n break ;\n case OpcUaType_UInt32 : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"UInt32\" , \"UInt32\" , hf_opcua_UInt32 , parseUInt32 , ett_opcua_array_UInt32 ) ;\n break ;\n case OpcUaType_Int64 : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"Int64\" , \"Int64\" , hf_opcua_Int64 , parseInt64 , ett_opcua_array_Int64 ) ;\n break ;\n case OpcUaType_UInt64 : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"UInt64\" , \"UInt64\" , hf_opcua_UInt64 , parseUInt64 , ett_opcua_array_UInt64 ) ;\n break ;\n case OpcUaType_Float : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"Float\" , \"Float\" , hf_opcua_Float , parseFloat , ett_opcua_array_Float ) ;\n break ;\n case OpcUaType_Double : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"Double\" , \"Double\" , hf_opcua_Double , parseDouble , ett_opcua_array_Double ) ;\n break ;\n case OpcUaType_String : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"String\" , \"String\" , hf_opcua_String , parseString , ett_opcua_array_String ) ;\n break ;\n case OpcUaType_DateTime : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"DateTime\" , \"DateTime\" , hf_opcua_DateTime , parseDateTime , ett_opcua_array_DateTime ) ;\n break ;\n case OpcUaType_Guid : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"Guid\" , \"Guid\" , hf_opcua_Guid , parseGuid , ett_opcua_array_Guid ) ;\n break ;\n case OpcUaType_ByteString : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"ByteString\" , \"ByteString\" , hf_opcua_ByteString , parseByteString , ett_opcua_array_ByteString ) ;\n break ;\n case OpcUaType_XmlElement : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"XmlElement\" , \"XmlElement\" , hf_opcua_XmlElement , parseXmlElement , ett_opcua_array_XmlElement ) ;\n break ;\n case OpcUaType_NodeId : parseArrayComplex ( subtree , tvb , pinfo , & iOffset , \"NodeId\" , \"NodeId\" , parseNodeId , ett_opcua_array_NodeId ) ;\n break ;\n case OpcUaType_ExpandedNodeId : parseArrayComplex ( subtree , tvb , pinfo , & iOffset , \"ExpandedNodeId\" , \"ExpandedNodeId\" , parseExpandedNodeId , ett_opcua_array_ExpandedNodeId ) ;\n break ;\n case OpcUaType_StatusCode : parseArraySimple ( subtree , tvb , pinfo , & iOffset , \"StatusCode\" , \"StatusCode\" , hf_opcua_StatusCode , parseStatusCode , ett_opcua_array_StatusCode ) ;\n break ;\n case OpcUaType_DiagnosticInfo : parseArrayComplex ( subtree , tvb , pinfo , & iOffset , \"DiagnosticInfo\" , \"DiagnosticInfo\" , parseDiagnosticInfo , ett_opcua_array_DiagnosticInfo ) ;\n break ;\n case OpcUaType_QualifiedName : parseArrayComplex ( subtree , tvb , pinfo , & iOffset , \"QualifiedName\" , \"QualifiedName\" , parseQualifiedName , ett_opcua_array_QualifiedName ) ;\n break ;\n case OpcUaType_LocalizedText : parseArrayComplex ( subtree , tvb , pinfo , & iOffset , \"LocalizedText\" , \"LocalizedText\" , parseLocalizedText , ett_opcua_array_LocalizedText ) ;\n break ;\n case OpcUaType_ExtensionObject : parseArrayComplex ( subtree , tvb , pinfo , & iOffset , \"ExtensionObject\" , \"ExtensionObject\" , parseExtensionObject , ett_opcua_array_ExtensionObject ) ;\n break ;\n case OpcUaType_DataValue : parseArrayComplex ( subtree , tvb , pinfo , & iOffset , \"DataValue\" , \"DataValue\" , parseDataValue , ett_opcua_array_DataValue ) ;\n break ;\n case OpcUaType_Variant : parseArrayComplex ( subtree , tvb , pinfo , & iOffset , \"Variant\" , \"Variant\" , parseVariant , ett_opcua_array_Variant ) ;\n break ;\n }\n if ( EncodingMask & VARIANT_ARRAYDIMENSIONS ) {\n proto_item * ti_2 ;\n proto_tree * subtree_2 = proto_tree_add_subtree ( subtree , tvb , iOffset , - 1 , ett_opcua_variant_arraydims , & ti_2 , \"ArrayDimensions\" ) ;\n int i ;\n ArrayDimensions = tvb_get_letohl ( tvb , iOffset ) ;\n proto_tree_add_item ( subtree_2 , hf_opcua_ArraySize , tvb , iOffset , 4 , ENC_LITTLE_ENDIAN ) ;\n if ( ArrayDimensions > MAX_ARRAY_LEN ) {\n proto_tree_add_expert_format ( subtree_2 , pinfo , & ei_array_length , tvb , iOffset , 4 , \"ArrayDimensions length %d too large to process\" , ArrayDimensions ) ;\n return ;\n }\n iOffset += 4 ;\n for ( i = 0 ;\n i < ArrayDimensions ;\n i ++ ) {\n parseInt32 ( subtree_2 , tvb , pinfo , & iOffset , hf_opcua_Int32 ) ;\n }\n proto_item_set_end ( ti_2 , tvb , iOffset ) ;\n }\n }\n else {\n switch ( EncodingMask & 0x3f ) {\n case OpcUaType_Null : break ;\n case OpcUaType_Boolean : parseBoolean ( subtree , tvb , pinfo , & iOffset , hf_opcua_Boolean ) ;\n break ;\n case OpcUaType_SByte : parseSByte ( subtree , tvb , pinfo , & iOffset , hf_opcua_SByte ) ;\n break ;\n case OpcUaType_Byte : parseByte ( subtree , tvb , pinfo , & iOffset , hf_opcua_Byte ) ;\n break ;\n case OpcUaType_Int16 : parseInt16 ( subtree , tvb , pinfo , & iOffset , hf_opcua_Int16 ) ;\n break ;\n case OpcUaType_UInt16 : parseUInt16 ( subtree , tvb , pinfo , & iOffset , hf_opcua_UInt16 ) ;\n break ;\n case OpcUaType_Int32 : parseInt32 ( subtree , tvb , pinfo , & iOffset , hf_opcua_Int32 ) ;\n break ;\n case OpcUaType_UInt32 : parseUInt32 ( subtree , tvb , pinfo , & iOffset , hf_opcua_UInt32 ) ;\n break ;\n case OpcUaType_Int64 : parseInt64 ( subtree , tvb , pinfo , & iOffset , hf_opcua_Int64 ) ;\n break ;\n case OpcUaType_UInt64 : parseUInt64 ( subtree , tvb , pinfo , & iOffset , hf_opcua_UInt64 ) ;\n break ;\n case OpcUaType_Float : parseFloat ( subtree , tvb , pinfo , & iOffset , hf_opcua_Float ) ;\n break ;\n case OpcUaType_Double : parseDouble ( subtree , tvb , pinfo , & iOffset , hf_opcua_Double ) ;\n break ;\n case OpcUaType_String : parseString ( subtree , tvb , pinfo , & iOffset , hf_opcua_String ) ;\n break ;\n case OpcUaType_DateTime : parseDateTime ( subtree , tvb , pinfo , & iOffset , hf_opcua_DateTime ) ;\n break ;\n case OpcUaType_Guid : parseGuid ( subtree , tvb , pinfo , & iOffset , hf_opcua_Guid ) ;\n break ;\n case OpcUaType_ByteString : parseByteString ( subtree , tvb , pinfo , & iOffset , hf_opcua_ByteString ) ;\n break ;\n case OpcUaType_XmlElement : parseXmlElement ( subtree , tvb , pinfo , & iOffset , hf_opcua_XmlElement ) ;\n break ;\n case OpcUaType_NodeId : parseNodeId ( subtree , tvb , pinfo , & iOffset , \"Value\" ) ;\n break ;\n case OpcUaType_ExpandedNodeId : parseExpandedNodeId ( subtree , tvb , pinfo , & iOffset , \"Value\" ) ;\n break ;\n case OpcUaType_StatusCode : parseStatusCode ( subtree , tvb , pinfo , & iOffset , hf_opcua_StatusCode ) ;\n break ;\n case OpcUaType_DiagnosticInfo : parseDiagnosticInfo ( subtree , tvb , pinfo , & iOffset , \"Value\" ) ;\n break ;\n case OpcUaType_QualifiedName : parseQualifiedName ( subtree , tvb , pinfo , & iOffset , \"Value\" ) ;\n break ;\n case OpcUaType_LocalizedText : parseLocalizedText ( subtree , tvb , pinfo , & iOffset , \"Value\" ) ;\n break ;\n case OpcUaType_ExtensionObject : parseExtensionObject ( subtree , tvb , pinfo , & iOffset , \"Value\" ) ;\n break ;\n case OpcUaType_DataValue : parseDataValue ( subtree , tvb , pinfo , & iOffset , \"Value\" ) ;\n break ;\n case OpcUaType_Variant : parseVariant ( subtree , tvb , pinfo , & iOffset , \"Value\" ) ;\n break ;\n }\n }\n proto_item_set_end ( ti , tvb , iOffset ) ;\n * pOffset = iOffset ;\n }"}
{"idx": 18455, "target": 1, "func": "static void virtio_balloon_receive_stats ( VirtIODevice * vdev , VirtQueue * vq ) {\n VirtIOBalloon * s = DO_UPCAST ( VirtIOBalloon , vdev , vdev ) ;\n VirtQueueElement * elem = & s -> stats_vq_elem ;\n VirtIOBalloonStat stat ;\n size_t offset = 0 ;\n if ( ! virtqueue_pop ( vq , elem ) ) {\n return ;\n }\n reset_stats ( s ) ;\n while ( iov_to_buf ( elem -> out_sg , elem -> out_num , & stat , offset , sizeof ( stat ) ) == sizeof ( stat ) ) {\n uint16_t tag = tswap16 ( stat . tag ) ;\n uint64_t val = tswap64 ( stat . val ) ;\n offset += sizeof ( stat ) ;\n if ( tag < VIRTIO_BALLOON_S_NR ) s -> stats [ tag ] = val ;\n }\n s -> stats_vq_offset = offset ;\n }"}
{"idx": 18456, "target": 0, "func": "static int rds_cmsg_recv ( struct rds_incoming * inc , struct msghdr * msg , struct rds_sock * rs ) {\n int ret = 0 ;\n if ( inc -> i_rdma_cookie ) {\n ret = put_cmsg ( msg , SOL_RDS , RDS_CMSG_RDMA_DEST , sizeof ( inc -> i_rdma_cookie ) , & inc -> i_rdma_cookie ) ;\n if ( ret ) return ret ;\n }\n if ( ( inc -> i_rx_tstamp . tv_sec != 0 ) && sock_flag ( rds_rs_to_sk ( rs ) , SOCK_RCVTSTAMP ) ) {\n ret = put_cmsg ( msg , SOL_SOCKET , SCM_TIMESTAMP , sizeof ( struct timeval ) , & inc -> i_rx_tstamp ) ;\n if ( ret ) return ret ;\n }\n return 0 ;\n }"}
{"idx": 18457, "target": 0, "func": "inline static bool is_request_conditional ( HTTPHdr * header ) {\n uint64_t mask = ( MIME_PRESENCE_IF_UNMODIFIED_SINCE | MIME_PRESENCE_IF_MODIFIED_SINCE | MIME_PRESENCE_IF_RANGE | MIME_PRESENCE_IF_MATCH | MIME_PRESENCE_IF_NONE_MATCH ) ;\n return ( header -> presence ( mask ) && ( header -> method_get_wksidx ( ) == HTTP_WKSIDX_GET || header -> method_get_wksidx ( ) == HTTP_WKSIDX_HEAD ) ) ;\n }"}
{"idx": 18458, "target": 0, "func": "SPL_METHOD ( SplFileInfo , getPathname ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char * path ;\n int path_len ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n path = spl_filesystem_object_get_pathname ( intern , & path_len TSRMLS_CC ) ;\n if ( path != NULL ) {\n RETURN_STRINGL ( path , path_len , 1 ) ;\n }\n else {\n RETURN_FALSE ;\n }\n }"}
{"idx": 18459, "target": 0, "func": "static void mpeg_decode_picture_coding_extension ( Mpeg1Context * s1 ) {\n MpegEncContext * s = & s1 -> mpeg_enc_ctx ;\n s -> full_pel [ 0 ] = s -> full_pel [ 1 ] = 0 ;\n s -> mpeg_f_code [ 0 ] [ 0 ] = get_bits ( & s -> gb , 4 ) ;\n s -> mpeg_f_code [ 0 ] [ 1 ] = get_bits ( & s -> gb , 4 ) ;\n s -> mpeg_f_code [ 1 ] [ 0 ] = get_bits ( & s -> gb , 4 ) ;\n s -> mpeg_f_code [ 1 ] [ 1 ] = get_bits ( & s -> gb , 4 ) ;\n if ( ! s -> pict_type && s1 -> mpeg_enc_ctx_allocated ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Missing picture start code, guessing missing values\\n\" ) ;\n if ( s -> mpeg_f_code [ 1 ] [ 0 ] == 15 && s -> mpeg_f_code [ 1 ] [ 1 ] == 15 ) {\n if ( s -> mpeg_f_code [ 0 ] [ 0 ] == 15 && s -> mpeg_f_code [ 0 ] [ 1 ] == 15 ) s -> pict_type = AV_PICTURE_TYPE_I ;\n else s -> pict_type = AV_PICTURE_TYPE_P ;\n }\n else s -> pict_type = AV_PICTURE_TYPE_B ;\n s -> current_picture . f . pict_type = s -> pict_type ;\n s -> current_picture . f . key_frame = s -> pict_type == AV_PICTURE_TYPE_I ;\n }\n s -> intra_dc_precision = get_bits ( & s -> gb , 2 ) ;\n s -> picture_structure = get_bits ( & s -> gb , 2 ) ;\n s -> top_field_first = get_bits1 ( & s -> gb ) ;\n s -> frame_pred_frame_dct = get_bits1 ( & s -> gb ) ;\n s -> concealment_motion_vectors = get_bits1 ( & s -> gb ) ;\n s -> q_scale_type = get_bits1 ( & s -> gb ) ;\n s -> intra_vlc_format = get_bits1 ( & s -> gb ) ;\n s -> alternate_scan = get_bits1 ( & s -> gb ) ;\n s -> repeat_first_field = get_bits1 ( & s -> gb ) ;\n s -> chroma_420_type = get_bits1 ( & s -> gb ) ;\n s -> progressive_frame = get_bits1 ( & s -> gb ) ;\n if ( s -> progressive_sequence && ! s -> progressive_frame ) {\n s -> progressive_frame = 1 ;\n av_log ( s -> avctx , AV_LOG_ERROR , \"interlaced frame in progressive sequence, ignoring\\n\" ) ;\n }\n if ( s -> picture_structure == 0 || ( s -> progressive_frame && s -> picture_structure != PICT_FRAME ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"picture_structure %d invalid, ignoring\\n\" , s -> picture_structure ) ;\n s -> picture_structure = PICT_FRAME ;\n }\n if ( s -> progressive_sequence && ! s -> frame_pred_frame_dct ) {\n av_log ( s -> avctx , AV_LOG_WARNING , \"invalid frame_pred_frame_dct\\n\" ) ;\n }\n if ( s -> picture_structure == PICT_FRAME ) {\n s -> first_field = 0 ;\n s -> v_edge_pos = 16 * s -> mb_height ;\n }\n else {\n s -> first_field ^= 1 ;\n s -> v_edge_pos = 8 * s -> mb_height ;\n memset ( s -> mbskip_table , 0 , s -> mb_stride * s -> mb_height ) ;\n }\n if ( s -> alternate_scan ) {\n ff_init_scantable ( s -> dsp . idct_permutation , & s -> inter_scantable , ff_alternate_vertical_scan ) ;\n ff_init_scantable ( s -> dsp . idct_permutation , & s -> intra_scantable , ff_alternate_vertical_scan ) ;\n }\n else {\n ff_init_scantable ( s -> dsp . idct_permutation , & s -> inter_scantable , ff_zigzag_direct ) ;\n ff_init_scantable ( s -> dsp . idct_permutation , & s -> intra_scantable , ff_zigzag_direct ) ;\n }\n av_dlog ( s -> avctx , \"intra_dc_precision=%d\\n\" , s -> intra_dc_precision ) ;\n av_dlog ( s -> avctx , \"picture_structure=%d\\n\" , s -> picture_structure ) ;\n av_dlog ( s -> avctx , \"top field first=%d\\n\" , s -> top_field_first ) ;\n av_dlog ( s -> avctx , \"repeat first field=%d\\n\" , s -> repeat_first_field ) ;\n av_dlog ( s -> avctx , \"conceal=%d\\n\" , s -> concealment_motion_vectors ) ;\n av_dlog ( s -> avctx , \"intra_vlc_format=%d\\n\" , s -> intra_vlc_format ) ;\n av_dlog ( s -> avctx , \"alternate_scan=%d\\n\" , s -> alternate_scan ) ;\n av_dlog ( s -> avctx , \"frame_pred_frame_dct=%d\\n\" , s -> frame_pred_frame_dct ) ;\n av_dlog ( s -> avctx , \"progressive_frame=%d\\n\" , s -> progressive_frame ) ;\n }"}
{"idx": 18460, "target": 0, "func": "static void U_CALLCONV _ISCIIClose ( UConverter * cnv ) {\n if ( cnv -> extraInfo != NULL ) {\n if ( ! cnv -> isExtraLocal ) {\n uprv_free ( cnv -> extraInfo ) ;\n }\n cnv -> extraInfo = NULL ;\n }\n }"}
{"idx": 18461, "target": 0, "func": "static int parse_UInt32Array ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , guint32 count , const char * item_name , const char * fmt , ... ) {\n guint32 v , i ;\n proto_tree * tree ;\n proto_item * item ;\n const char * txt ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_Array , & item , txt ) ;\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n v = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint_format ( tree , hf_mswsp_int32array_value , tvb , offset , 4 , v , \"%s[%u] = %u\" , item_name , i , v ) ;\n offset += 4 ;\n }\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 18462, "target": 0, "func": "double double_from_string_with_check ( CHARSET_INFO * cs , const char * cptr , const char * end ) {\n int error ;\n char * end_of_num = ( char * ) end ;\n double tmp ;\n tmp = my_strntod ( cs , ( char * ) cptr , end - cptr , & end_of_num , & error ) ;\n if ( error || ( end != end_of_num && ! check_if_only_end_space ( cs , end_of_num , end ) ) ) {\n ErrConvString err ( cptr , end - cptr , cs ) ;\n push_warning_printf ( current_thd , MYSQL_ERROR : : WARN_LEVEL_WARN , ER_TRUNCATED_WRONG_VALUE , ER ( ER_TRUNCATED_WRONG_VALUE ) , \"DOUBLE\" , err . ptr ( ) ) ;\n }\n return tmp ;\n }"}
{"idx": 18463, "target": 0, "func": "static gint handle_message_connect ( tvbuff_t * tvb , packet_info * pinfo , gint offset , proto_tree * message_tree ) {\n guint8 the_one_byte ;\n the_one_byte = tvb_get_guint8 ( tvb , offset ) ;\n if ( 0 == the_one_byte ) {\n col_set_str ( pinfo -> cinfo , COL_INFO , \"CONNECT-initial byte\" ) ;\n proto_tree_add_item ( message_tree , hf_alljoyn_connect_byte_value , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n }\n return offset ;\n }"}
{"idx": 18464, "target": 0, "func": "static void generate_nonce ( struct recvbuf * rbufp , char * nonce , size_t nonce_octets ) {\n u_int32 derived ;\n derived = derive_nonce ( & rbufp -> recv_srcadr , rbufp -> recv_time . l_ui , rbufp -> recv_time . l_uf ) ;\n snprintf ( nonce , nonce_octets , \"%08x%08x%08x\" , rbufp -> recv_time . l_ui , rbufp -> recv_time . l_uf , derived ) ;\n }"}
{"idx": 18465, "target": 0, "func": "static int element_compare ( const void * key1 , const void * key2 , void * arg ) {\n Datum d1 = * ( ( const Datum * ) key1 ) ;\n Datum d2 = * ( ( const Datum * ) key2 ) ;\n FmgrInfo * cmpfunc = ( FmgrInfo * ) arg ;\n Datum c ;\n c = FunctionCall2Coll ( cmpfunc , DEFAULT_COLLATION_OID , d1 , d2 ) ;\n return DatumGetInt32 ( c ) ;\n }"}
{"idx": 18466, "target": 0, "func": "int ngsniffer_dump_can_write_encap ( int encap ) {\n if ( encap == WTAP_ENCAP_PER_PACKET ) return WTAP_ERR_ENCAP_PER_PACKET_UNSUPPORTED ;\n if ( encap < 0 || ( unsigned ) encap >= NUM_WTAP_ENCAPS || wtap_encap [ encap ] == - 1 ) return WTAP_ERR_UNWRITABLE_ENCAP ;\n return 0 ;\n }"}
{"idx": 18467, "target": 0, "func": "static MagickBooleanType ReadOneLayer ( const ImageInfo * image_info , Image * image , XCFDocInfo * inDocInfo , XCFLayerInfo * outLayer , const ssize_t layer , ExceptionInfo * exception ) {\n MagickOffsetType offset ;\n unsigned int foundPropEnd = 0 ;\n size_t hierarchy_offset , layer_mask_offset ;\n ( void ) ResetMagickMemory ( outLayer , 0 , sizeof ( XCFLayerInfo ) ) ;\n outLayer -> width = ReadBlobMSBLong ( image ) ;\n outLayer -> height = ReadBlobMSBLong ( image ) ;\n outLayer -> type = ReadBlobMSBLong ( image ) ;\n ( void ) ReadBlobStringWithLongSize ( image , outLayer -> name , sizeof ( outLayer -> name ) , exception ) ;\n foundPropEnd = 0 ;\n while ( ( foundPropEnd == MagickFalse ) && ( EOFBlob ( image ) == MagickFalse ) ) {\n PropType prop_type = ( PropType ) ReadBlobMSBLong ( image ) ;\n size_t prop_size = ReadBlobMSBLong ( image ) ;\n switch ( prop_type ) {\n case PROP_END : foundPropEnd = 1 ;\n break ;\n case PROP_ACTIVE_LAYER : outLayer -> active = 1 ;\n break ;\n case PROP_FLOATING_SELECTION : outLayer -> floating_offset = ReadBlobMSBLong ( image ) ;\n break ;\n case PROP_OPACITY : outLayer -> alpha = ReadBlobMSBLong ( image ) ;\n break ;\n case PROP_VISIBLE : outLayer -> visible = ReadBlobMSBLong ( image ) ;\n break ;\n case PROP_LINKED : outLayer -> linked = ReadBlobMSBLong ( image ) ;\n break ;\n case PROP_PRESERVE_TRANSPARENCY : outLayer -> preserve_trans = ReadBlobMSBLong ( image ) ;\n break ;\n case PROP_APPLY_MASK : outLayer -> apply_mask = ReadBlobMSBLong ( image ) ;\n break ;\n case PROP_EDIT_MASK : outLayer -> edit_mask = ReadBlobMSBLong ( image ) ;\n break ;\n case PROP_SHOW_MASK : outLayer -> show_mask = ReadBlobMSBLong ( image ) ;\n break ;\n case PROP_OFFSETS : outLayer -> offset_x = ( int ) ReadBlobMSBLong ( image ) ;\n outLayer -> offset_y = ( int ) ReadBlobMSBLong ( image ) ;\n break ;\n case PROP_MODE : outLayer -> mode = ReadBlobMSBLong ( image ) ;\n break ;\n case PROP_TATTOO : outLayer -> preserve_trans = ReadBlobMSBLong ( image ) ;\n break ;\n case PROP_PARASITES : {\n if ( DiscardBlobBytes ( image , prop_size ) == MagickFalse ) ThrowFileException ( exception , CorruptImageError , \"UnexpectedEndOfFile\" , image -> filename ) ;\n }\n break ;\n default : {\n int buf [ 16 ] ;\n ssize_t amount ;\n while ( ( prop_size > 0 ) && ( EOFBlob ( image ) == MagickFalse ) ) {\n amount = ( ssize_t ) MagickMin ( 16 , prop_size ) ;\n amount = ReadBlob ( image , ( size_t ) amount , ( unsigned char * ) & buf ) ;\n if ( ! amount ) ThrowBinaryException ( CorruptImageError , \"CorruptImage\" , image -> filename ) ;\n prop_size -= ( size_t ) MagickMin ( 16 , ( size_t ) amount ) ;\n }\n }\n break ;\n }\n }\n if ( foundPropEnd == MagickFalse ) return ( MagickFalse ) ;\n if ( image_info -> number_scenes != 0 ) {\n ssize_t scene ;\n scene = inDocInfo -> number_layers - layer - 1 ;\n if ( scene > ( ssize_t ) ( image_info -> scene + image_info -> number_scenes - 1 ) ) {\n outLayer -> image = CloneImage ( image , 0 , 0 , MagickTrue , exception ) ;\n if ( outLayer -> image == ( Image * ) NULL ) return ( MagickFalse ) ;\n InitXCFImage ( outLayer , exception ) ;\n return ( MagickTrue ) ;\n }\n }\n outLayer -> image = CloneImage ( image , outLayer -> width , outLayer -> height , MagickTrue , exception ) ;\n if ( outLayer -> image == ( Image * ) NULL ) return ( MagickFalse ) ;\n outLayer -> image -> background_color . alpha = ScaleCharToQuantum ( ( unsigned char ) outLayer -> alpha ) ;\n ( void ) SetImageBackgroundColor ( outLayer -> image , exception ) ;\n InitXCFImage ( outLayer , exception ) ;\n outLayer -> image -> compose = GIMPBlendModeToCompositeOperator ( outLayer -> mode ) ;\n if ( outLayer -> visible == MagickFalse ) {\n outLayer -> image -> compose = NoCompositeOp ;\n }\n hierarchy_offset = ReadBlobMSBLong ( image ) ;\n layer_mask_offset = ReadBlobMSBLong ( image ) ;\n offset = SeekBlob ( image , ( MagickOffsetType ) hierarchy_offset , SEEK_SET ) ;\n if ( offset < 0 ) ( void ) ThrowMagickException ( exception , GetMagickModule ( ) , CorruptImageError , \"InvalidImageHeader\" , \"`%s'\" , image -> filename ) ;\n if ( load_hierarchy ( image , inDocInfo , outLayer , exception ) == 0 ) return ( MagickFalse ) ;\n if ( layer_mask_offset != 0 ) {\n offset = SeekBlob ( image , ( MagickOffsetType ) layer_mask_offset , SEEK_SET ) ;\n # if 0 layer_mask = xcf_load_layer_mask ( info , gimage ) ;\n if ( layer_mask == 0 ) goto error ;\n GIMP_DRAWABLE ( layer_mask ) -> offset_x = GIMP_DRAWABLE ( layer ) -> offset_x ;\n GIMP_DRAWABLE ( layer_mask ) -> offset_y = GIMP_DRAWABLE ( layer ) -> offset_y ;\n gimp_layer_add_mask ( layer , layer_mask , MagickFalse ) ;\n layer -> mask -> apply_mask = apply_mask ;\n layer -> mask -> edit_mask = edit_mask ;\n layer -> mask -> show_mask = show_mask ;\n # endif }\n # if 0 if ( add_floating_sel ) {\n GimpLayer * floating_sel ;\n floating_sel = info -> floating_sel ;\n floating_sel_attach ( floating_sel , GIMP_DRAWABLE ( layer ) ) ;\n }\n # endif return MagickTrue ;\n }"}
{"idx": 18468, "target": 0, "func": "void vp9_temporal_filter_apply_c ( uint8_t * frame1 , unsigned int stride , uint8_t * frame2 , unsigned int block_width , unsigned int block_height , int strength , int filter_weight , unsigned int * accumulator , uint16_t * count ) {\n unsigned int i , j , k ;\n int modifier ;\n int byte = 0 ;\n const int rounding = strength > 0 ? 1 << ( strength - 1 ) : 0 ;\n for ( i = 0 , k = 0 ;\n i < block_height ;\n i ++ ) {\n for ( j = 0 ;\n j < block_width ;\n j ++ , k ++ ) {\n int src_byte = frame1 [ byte ] ;\n int pixel_value = * frame2 ++ ;\n modifier = src_byte - pixel_value ;\n modifier *= modifier ;\n modifier *= 3 ;\n modifier += rounding ;\n modifier >>= strength ;\n if ( modifier > 16 ) modifier = 16 ;\n modifier = 16 - modifier ;\n modifier *= filter_weight ;\n count [ k ] += modifier ;\n accumulator [ k ] += modifier * pixel_value ;\n byte ++ ;\n }\n byte += stride - block_width ;\n }\n }"}
{"idx": 18469, "target": 0, "func": "static int fake_magic_space ( const char * , int ) # endif {\n rl_insert ( 1 , ' ' ) ;\n return 0 ;\n }"}
{"idx": 18470, "target": 0, "func": "void usage ( ) {\n print_version ( ) ;\n puts ( ORACLE_WELCOME_COPYRIGHT_NOTICE ( \"2000\" ) ) ;\n printf ( \"Runs a test against the mysql server and compares output with a results file.\\n\\n\" ) ;\n printf ( \"Usage: %s [OPTIONS] [database] < test_file\\n\" , my_progname ) ;\n print_defaults ( \"my\" , load_default_groups ) ;\n puts ( \"\" ) ;\n my_print_help ( my_long_options ) ;\n my_print_variables ( my_long_options ) ;\n }"}
{"idx": 18471, "target": 0, "func": "static int encode_picture ( MpegEncContext * s , int picture_number ) {\n int i , ret ;\n int bits ;\n int context_count = s -> slice_context_count ;\n s -> picture_number = picture_number ;\n s -> me . mb_var_sum_temp = s -> me . mc_mb_var_sum_temp = 0 ;\n if ( s -> codec_id == AV_CODEC_ID_MPEG1VIDEO || s -> codec_id == AV_CODEC_ID_MPEG2VIDEO || ( s -> h263_pred && ! s -> msmpeg4_version ) ) set_frame_distances ( s ) ;\n if ( CONFIG_MPEG4_ENCODER && s -> codec_id == AV_CODEC_ID_MPEG4 ) ff_set_mpeg4_time ( s ) ;\n s -> me . scene_change_score = 0 ;\n if ( s -> pict_type == AV_PICTURE_TYPE_I ) {\n if ( s -> msmpeg4_version >= 3 ) s -> no_rounding = 1 ;\n else s -> no_rounding = 0 ;\n }\n else if ( s -> pict_type != AV_PICTURE_TYPE_B ) {\n if ( s -> flipflop_rounding || s -> codec_id == AV_CODEC_ID_H263P || s -> codec_id == AV_CODEC_ID_MPEG4 ) s -> no_rounding ^= 1 ;\n }\n if ( s -> flags & CODEC_FLAG_PASS2 ) {\n if ( estimate_qp ( s , 1 ) < 0 ) return - 1 ;\n ff_get_2pass_fcode ( s ) ;\n }\n else if ( ! ( s -> flags & CODEC_FLAG_QSCALE ) ) {\n if ( s -> pict_type == AV_PICTURE_TYPE_B ) s -> lambda = s -> last_lambda_for [ s -> pict_type ] ;\n else s -> lambda = s -> last_lambda_for [ s -> last_non_b_pict_type ] ;\n update_qscale ( s ) ;\n }\n s -> mb_intra = 0 ;\n for ( i = 1 ;\n i < context_count ;\n i ++ ) {\n ret = ff_update_duplicate_context ( s -> thread_context [ i ] , s ) ;\n if ( ret < 0 ) return ret ;\n }\n if ( ff_init_me ( s ) < 0 ) return - 1 ;\n if ( s -> pict_type != AV_PICTURE_TYPE_I ) {\n s -> lambda = ( s -> lambda * s -> avctx -> me_penalty_compensation + 128 ) >> 8 ;\n s -> lambda2 = ( s -> lambda2 * ( int64_t ) s -> avctx -> me_penalty_compensation + 128 ) >> 8 ;\n if ( s -> pict_type != AV_PICTURE_TYPE_B ) {\n if ( ( s -> avctx -> pre_me && s -> last_non_b_pict_type == AV_PICTURE_TYPE_I ) || s -> avctx -> pre_me == 2 ) {\n s -> avctx -> execute ( s -> avctx , pre_estimate_motion_thread , & s -> thread_context [ 0 ] , NULL , context_count , sizeof ( void * ) ) ;\n }\n }\n s -> avctx -> execute ( s -> avctx , estimate_motion_thread , & s -> thread_context [ 0 ] , NULL , context_count , sizeof ( void * ) ) ;\n }\n else {\n for ( i = 0 ;\n i < s -> mb_stride * s -> mb_height ;\n i ++ ) s -> mb_type [ i ] = CANDIDATE_MB_TYPE_INTRA ;\n if ( ! s -> fixed_qscale ) {\n s -> avctx -> execute ( s -> avctx , mb_var_thread , & s -> thread_context [ 0 ] , NULL , context_count , sizeof ( void * ) ) ;\n }\n }\n for ( i = 1 ;\n i < context_count ;\n i ++ ) {\n merge_context_after_me ( s , s -> thread_context [ i ] ) ;\n }\n s -> current_picture . mc_mb_var_sum = s -> current_picture_ptr -> mc_mb_var_sum = s -> me . mc_mb_var_sum_temp ;\n s -> current_picture . mb_var_sum = s -> current_picture_ptr -> mb_var_sum = s -> me . mb_var_sum_temp ;\n emms_c ( ) ;\n if ( s -> me . scene_change_score > s -> avctx -> scenechange_threshold && s -> pict_type == AV_PICTURE_TYPE_P ) {\n s -> pict_type = AV_PICTURE_TYPE_I ;\n for ( i = 0 ;\n i < s -> mb_stride * s -> mb_height ;\n i ++ ) s -> mb_type [ i ] = CANDIDATE_MB_TYPE_INTRA ;\n av_dlog ( s , \"Scene change detected, encoding as I Frame %d %d\\n\" , s -> current_picture . mb_var_sum , s -> current_picture . mc_mb_var_sum ) ;\n }\n if ( ! s -> umvplus ) {\n if ( s -> pict_type == AV_PICTURE_TYPE_P || s -> pict_type == AV_PICTURE_TYPE_S ) {\n s -> f_code = ff_get_best_fcode ( s , s -> p_mv_table , CANDIDATE_MB_TYPE_INTER ) ;\n if ( s -> flags & CODEC_FLAG_INTERLACED_ME ) {\n int a , b ;\n a = ff_get_best_fcode ( s , s -> p_field_mv_table [ 0 ] [ 0 ] , CANDIDATE_MB_TYPE_INTER_I ) ;\n b = ff_get_best_fcode ( s , s -> p_field_mv_table [ 1 ] [ 1 ] , CANDIDATE_MB_TYPE_INTER_I ) ;\n s -> f_code = FFMAX3 ( s -> f_code , a , b ) ;\n }\n ff_fix_long_p_mvs ( s ) ;\n ff_fix_long_mvs ( s , NULL , 0 , s -> p_mv_table , s -> f_code , CANDIDATE_MB_TYPE_INTER , 0 ) ;\n if ( s -> flags & CODEC_FLAG_INTERLACED_ME ) {\n int j ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n for ( j = 0 ;\n j < 2 ;\n j ++ ) ff_fix_long_mvs ( s , s -> p_field_select_table [ i ] , j , s -> p_field_mv_table [ i ] [ j ] , s -> f_code , CANDIDATE_MB_TYPE_INTER_I , 0 ) ;\n }\n }\n }\n if ( s -> pict_type == AV_PICTURE_TYPE_B ) {\n int a , b ;\n a = ff_get_best_fcode ( s , s -> b_forw_mv_table , CANDIDATE_MB_TYPE_FORWARD ) ;\n b = ff_get_best_fcode ( s , s -> b_bidir_forw_mv_table , CANDIDATE_MB_TYPE_BIDIR ) ;\n s -> f_code = FFMAX ( a , b ) ;\n a = ff_get_best_fcode ( s , s -> b_back_mv_table , CANDIDATE_MB_TYPE_BACKWARD ) ;\n b = ff_get_best_fcode ( s , s -> b_bidir_back_mv_table , CANDIDATE_MB_TYPE_BIDIR ) ;\n s -> b_code = FFMAX ( a , b ) ;\n ff_fix_long_mvs ( s , NULL , 0 , s -> b_forw_mv_table , s -> f_code , CANDIDATE_MB_TYPE_FORWARD , 1 ) ;\n ff_fix_long_mvs ( s , NULL , 0 , s -> b_back_mv_table , s -> b_code , CANDIDATE_MB_TYPE_BACKWARD , 1 ) ;\n ff_fix_long_mvs ( s , NULL , 0 , s -> b_bidir_forw_mv_table , s -> f_code , CANDIDATE_MB_TYPE_BIDIR , 1 ) ;\n ff_fix_long_mvs ( s , NULL , 0 , s -> b_bidir_back_mv_table , s -> b_code , CANDIDATE_MB_TYPE_BIDIR , 1 ) ;\n if ( s -> flags & CODEC_FLAG_INTERLACED_ME ) {\n int dir , j ;\n for ( dir = 0 ;\n dir < 2 ;\n dir ++ ) {\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n int type = dir ? ( CANDIDATE_MB_TYPE_BACKWARD_I | CANDIDATE_MB_TYPE_BIDIR_I ) : ( CANDIDATE_MB_TYPE_FORWARD_I | CANDIDATE_MB_TYPE_BIDIR_I ) ;\n ff_fix_long_mvs ( s , s -> b_field_select_table [ dir ] [ i ] , j , s -> b_field_mv_table [ dir ] [ i ] [ j ] , dir ? s -> b_code : s -> f_code , type , 1 ) ;\n }\n }\n }\n }\n }\n }\n if ( estimate_qp ( s , 0 ) < 0 ) return - 1 ;\n if ( s -> qscale < 3 && s -> max_qcoeff <= 128 && s -> pict_type == AV_PICTURE_TYPE_I && ! ( s -> flags & CODEC_FLAG_QSCALE ) ) s -> qscale = 3 ;\n if ( s -> out_format == FMT_MJPEG ) {\n for ( i = 1 ;\n i < 64 ;\n i ++ ) {\n int j = s -> dsp . idct_permutation [ i ] ;\n s -> intra_matrix [ j ] = av_clip_uint8 ( ( ff_mpeg1_default_intra_matrix [ i ] * s -> qscale ) >> 3 ) ;\n }\n s -> y_dc_scale_table = s -> c_dc_scale_table = ff_mpeg2_dc_scale_table [ s -> intra_dc_precision ] ;\n s -> intra_matrix [ 0 ] = ff_mpeg2_dc_scale_table [ s -> intra_dc_precision ] [ 8 ] ;\n ff_convert_matrix ( & s -> dsp , s -> q_intra_matrix , s -> q_intra_matrix16 , s -> intra_matrix , s -> intra_quant_bias , 8 , 8 , 1 ) ;\n s -> qscale = 8 ;\n }\n s -> current_picture_ptr -> f . key_frame = s -> current_picture . f . key_frame = s -> pict_type == AV_PICTURE_TYPE_I ;\n s -> current_picture_ptr -> f . pict_type = s -> current_picture . f . pict_type = s -> pict_type ;\n if ( s -> current_picture . f . key_frame ) s -> picture_in_gop_number = 0 ;\n s -> last_bits = put_bits_count ( & s -> pb ) ;\n switch ( s -> out_format ) {\n case FMT_MJPEG : if ( CONFIG_MJPEG_ENCODER ) ff_mjpeg_encode_picture_header ( s ) ;\n break ;\n case FMT_H261 : if ( CONFIG_H261_ENCODER ) ff_h261_encode_picture_header ( s , picture_number ) ;\n break ;\n case FMT_H263 : if ( CONFIG_WMV2_ENCODER && s -> codec_id == AV_CODEC_ID_WMV2 ) ff_wmv2_encode_picture_header ( s , picture_number ) ;\n else if ( CONFIG_MSMPEG4_ENCODER && s -> msmpeg4_version ) ff_msmpeg4_encode_picture_header ( s , picture_number ) ;\n else if ( CONFIG_MPEG4_ENCODER && s -> h263_pred ) ff_mpeg4_encode_picture_header ( s , picture_number ) ;\n else if ( CONFIG_RV10_ENCODER && s -> codec_id == AV_CODEC_ID_RV10 ) ff_rv10_encode_picture_header ( s , picture_number ) ;\n else if ( CONFIG_RV20_ENCODER && s -> codec_id == AV_CODEC_ID_RV20 ) ff_rv20_encode_picture_header ( s , picture_number ) ;\n else if ( CONFIG_FLV_ENCODER && s -> codec_id == AV_CODEC_ID_FLV1 ) ff_flv_encode_picture_header ( s , picture_number ) ;\n else if ( CONFIG_H263_ENCODER ) ff_h263_encode_picture_header ( s , picture_number ) ;\n break ;\n case FMT_MPEG1 : if ( CONFIG_MPEG1VIDEO_ENCODER || CONFIG_MPEG2VIDEO_ENCODER ) ff_mpeg1_encode_picture_header ( s , picture_number ) ;\n break ;\n case FMT_H264 : break ;\n default : assert ( 0 ) ;\n }\n bits = put_bits_count ( & s -> pb ) ;\n s -> header_bits = bits - s -> last_bits ;\n for ( i = 1 ;\n i < context_count ;\n i ++ ) {\n update_duplicate_context_after_me ( s -> thread_context [ i ] , s ) ;\n }\n s -> avctx -> execute ( s -> avctx , encode_thread , & s -> thread_context [ 0 ] , NULL , context_count , sizeof ( void * ) ) ;\n for ( i = 1 ;\n i < context_count ;\n i ++ ) {\n merge_context_after_encode ( s , s -> thread_context [ i ] ) ;\n }\n emms_c ( ) ;\n return 0 ;\n }"}
{"idx": 18472, "target": 0, "func": "static inline void e1000e_write_ps_rx_descr ( E1000ECore * core , uint8_t * desc , struct NetRxPkt * pkt , const E1000E_RSSInfo * rss_info , size_t ps_hdr_len , uint16_t ( * written ) [ MAX_PS_BUFFERS ] ) {\n int i ;\n union e1000_rx_desc_packet_split * d = ( union e1000_rx_desc_packet_split * ) desc ;\n memset ( & d -> wb , 0 , sizeof ( d -> wb ) ) ;\n d -> wb . middle . length0 = cpu_to_le16 ( ( * written ) [ 0 ] ) ;\n for ( i = 0 ;\n i < PS_PAGE_BUFFERS ;\n i ++ ) {\n d -> wb . upper . length [ i ] = cpu_to_le16 ( ( * written ) [ i + 1 ] ) ;\n }\n e1000e_build_rx_metadata ( core , pkt , pkt != NULL , rss_info , & d -> wb . lower . hi_dword . rss , & d -> wb . lower . mrq , & d -> wb . middle . status_error , & d -> wb . lower . hi_dword . csum_ip . ip_id , & d -> wb . middle . vlan ) ;\n d -> wb . upper . header_status = cpu_to_le16 ( ps_hdr_len | ( ps_hdr_len ? E1000_RXDPS_HDRSTAT_HDRSP : 0 ) ) ;\n trace_e1000e_rx_desc_ps_write ( ( * written ) [ 0 ] , ( * written ) [ 1 ] , ( * written ) [ 2 ] , ( * written ) [ 3 ] ) ;\n }"}
{"idx": 18473, "target": 0, "func": "METHOD ( asn1_parser_t , get_level , u_int , private_asn1_parser_t * this ) {\n return this -> level0 + this -> objects [ this -> line ] . level ;\n }"}
{"idx": 18474, "target": 1, "func": "static int dissect_h225_ParallelH245Control_item ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 361 \"./asn1/h225/h225.cnf\" tvbuff_t * h245_tvb = NULL ;\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , NO_BOUND , NO_BOUND , FALSE , & h245_tvb ) ;\n next_tvb_add_handle ( & h245_list , h245_tvb , ( h225_h245_in_tree ) ? tree : NULL , h245dg_handle ) ;\n return offset ;\n }"}
{"idx": 18475, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( HttpsEngagementPageLoadMetricsBrowserTest , UncommittedLoadWithError ) {\n StartHttpsServer ( true ) ;\n TabStripModel * tab_strip_model = browser ( ) -> tab_strip_model ( ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , https_test_server_ -> GetURL ( \"/simple.html\" ) ) ;\n content : : WebContentsDestroyedWatcher destroyed_watcher ( tab_strip_model -> GetActiveWebContents ( ) ) ;\n EXPECT_TRUE ( tab_strip_model -> CloseWebContentsAt ( tab_strip_model -> active_index ( ) , 0 ) ) ;\n destroyed_watcher . Wait ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpEngagementHistogram , 0 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementHistogram , 0 ) ;\n FakeUserMetricsUpload ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHttpsEngagementSessionPercentage , 0 ) ;\n }"}
{"idx": 18476, "target": 0, "func": "static int encode_frame ( VC2EncContext * s , AVPacket * avpkt , const AVFrame * frame , const char * aux_data , const int header_size , int field ) {\n int i , ret ;\n int64_t max_frame_bytes ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n s -> transform_args [ i ] . ctx = s ;\n s -> transform_args [ i ] . field = field ;\n s -> transform_args [ i ] . plane = & s -> plane [ i ] ;\n s -> transform_args [ i ] . idata = frame -> data [ i ] ;\n s -> transform_args [ i ] . istride = frame -> linesize [ i ] ;\n }\n s -> avctx -> execute ( s -> avctx , dwt_plane , s -> transform_args , NULL , 3 , sizeof ( TransformArgs ) ) ;\n max_frame_bytes = header_size + calc_slice_sizes ( s ) ;\n if ( field < 2 ) {\n ret = ff_alloc_packet2 ( s -> avctx , avpkt , max_frame_bytes << s -> interlaced , max_frame_bytes << s -> interlaced ) ;\n if ( ret ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Error getting output packet.\\n\" ) ;\n return ret ;\n }\n init_put_bits ( & s -> pb , avpkt -> data , avpkt -> size ) ;\n }\n encode_parse_info ( s , DIRAC_PCODE_SEQ_HEADER ) ;\n encode_seq_header ( s ) ;\n if ( aux_data ) {\n encode_parse_info ( s , DIRAC_PCODE_AUX ) ;\n avpriv_put_string ( & s -> pb , aux_data , 1 ) ;\n }\n encode_parse_info ( s , DIRAC_PCODE_PICTURE_HQ ) ;\n encode_picture_start ( s ) ;\n encode_slices ( s ) ;\n encode_parse_info ( s , DIRAC_PCODE_END_SEQ ) ;\n return 0 ;\n }"}
{"idx": 18477, "target": 0, "func": "const EVP_CIPHER * EVP_aes_ ## keylen ## _ ## mode ( void ) \\ {\n return & aes_ ## keylen ## _ ## mode ;\n }\n # 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_CAPABLE ( OPENSSL_armcap_P & ARMV7_NEON ) # endif # if defined ( VPAES_ASM ) # define VPAES_CAPABLE ( OPENSSL_armcap_P & ARMV7_NEON ) # endif # define HWAES_CAPABLE ( OPENSSL_armcap_P & ARMV8_AES ) # define HWAES_set_encrypt_key aes_v8_set_encrypt_key # define HWAES_set_decrypt_key aes_v8_set_decrypt_key # define HWAES_encrypt aes_v8_encrypt # define HWAES_decrypt aes_v8_decrypt # define HWAES_cbc_encrypt aes_v8_cbc_encrypt # define HWAES_ctr32_encrypt_blocks aes_v8_ctr32_encrypt_blocks # endif # endif # if defined ( HWAES_CAPABLE ) int HWAES_set_encrypt_key ( const unsigned char * userKey , const int bits , AES_KEY * key ) ;\n int HWAES_set_decrypt_key ( const unsigned char * userKey , const int bits , AES_KEY * key ) ;\n void HWAES_encrypt ( const unsigned char * in , unsigned char * out , const AES_KEY * key ) ;\n void HWAES_decrypt ( const unsigned char * in , unsigned char * out , const AES_KEY * key ) ;\n void HWAES_cbc_encrypt ( const unsigned char * in , unsigned char * out , size_t length , const AES_KEY * key , unsigned char * ivec , const int enc ) ;\n void HWAES_ctr32_encrypt_blocks ( const unsigned char * in , unsigned char * out , size_t len , const AES_KEY * key , const unsigned char ivec [ 16 ] ) ;\n void HWAES_xts_encrypt ( const unsigned char * inp , unsigned char * out , size_t len , const AES_KEY * key1 , const AES_KEY * key2 , const unsigned char iv [ 16 ] ) ;\n void HWAES_xts_decrypt ( const unsigned char * inp , unsigned char * out , size_t len , const AES_KEY * key1 , const AES_KEY * key2 , const unsigned char iv [ 16 ] ) ;\n # endif # define BLOCK_CIPHER_generic_pack ( nid , keylen , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 16 , 16 , cbc , cbc , CBC , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 16 , 0 , ecb , ecb , ECB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , ofb128 , ofb , OFB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb128 , cfb , CFB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb1 , cfb1 , CFB , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb8 , cfb8 , CFB , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , ctr , ctr , CTR , flags ) static int aes_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n int ret , mode ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n mode = EVP_CIPHER_CTX_mode ( ctx ) ;\n if ( ( mode == EVP_CIPH_ECB_MODE || mode == EVP_CIPH_CBC_MODE ) && ! enc ) {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_decrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n # endif }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CBC_MODE ) {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = ( cbc128_f ) bsaes_cbc_encrypt ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n }\n }\n else # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_encrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n else # endif # ifdef HWAES_ctr32_encrypt_blocks if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) HWAES_ctr32_encrypt_blocks ;\n else # endif ( void ) 0 ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CTR_MODE ) {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . ctr = ( ctr128_f ) bsaes_ctr32_encrypt_blocks ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n # ifdef AES_CTR_ASM if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) AES_ctr32_encrypt ;\n # endif }\n if ( ret < 0 ) {\n EVPerr ( EVP_F_AES_INIT_KEY , EVP_R_AES_KEY_SETUP_FAILED ) ;\n return 0 ;\n }\n return 1 ;\n }\n static int aes_cbc_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( dat -> stream . cbc ) ( * dat -> stream . cbc ) ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_encrypting ( ctx ) ) ;\n else if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) CRYPTO_cbc128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , dat -> block ) ;\n else CRYPTO_cbc128_decrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , dat -> block ) ;\n return 1 ;\n }\n static int aes_ecb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n size_t bl = EVP_CIPHER_CTX_block_size ( ctx ) ;\n size_t i ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( len < bl ) return 1 ;\n for ( i = 0 , len -= bl ;\n i <= len ;\n i += bl ) ( * dat -> block ) ( in + i , out + i , & dat -> ks ) ;\n return 1 ;\n }\n static int aes_ofb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_ofb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb8_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_8_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb1_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( EVP_CIPHER_CTX_test_flags ( ctx , EVP_CIPH_FLAG_LENGTH_BITS ) ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n while ( len >= MAXBITCHUNK ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , MAXBITCHUNK * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n len -= MAXBITCHUNK ;\n }\n if ( len ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n }\n return 1 ;\n }\n static int aes_ctr_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n unsigned int num = EVP_CIPHER_CTX_num ( ctx ) ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( dat -> stream . ctr ) CRYPTO_ctr128_encrypt_ctr32 ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> stream . ctr ) ;\n else CRYPTO_ctr128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n BLOCK_CIPHER_generic_pack ( NID_aes , 128 , 0 ) BLOCK_CIPHER_generic_pack ( NID_aes , 192 , 0 ) BLOCK_CIPHER_generic_pack ( NID_aes , 256 , 0 ) static int aes_gcm_cleanup ( EVP_CIPHER_CTX * c ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , c ) ;\n OPENSSL_cleanse ( & gctx -> gcm , sizeof ( gctx -> gcm ) ) ;\n if ( gctx -> iv != EVP_CIPHER_CTX_iv_noconst ( c ) ) OPENSSL_free ( gctx -> iv ) ;\n return 1 ;\n }\n static void ctr64_inc ( unsigned char * counter ) {\n int n = 8 ;\n unsigned char c ;\n do {\n -- n ;\n c = counter [ n ] ;\n ++ c ;\n counter [ n ] = c ;\n if ( c ) return ;\n }\n while ( n ) ;\n }\n static int aes_gcm_ctrl ( EVP_CIPHER_CTX * c , int type , int arg , void * ptr ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , c ) ;\n switch ( type ) {\n case EVP_CTRL_INIT : gctx -> key_set = 0 ;\n gctx -> iv_set = 0 ;\n gctx -> ivlen = EVP_CIPHER_CTX_iv_length ( c ) ;\n gctx -> iv = EVP_CIPHER_CTX_iv_noconst ( c ) ;\n gctx -> taglen = - 1 ;\n gctx -> iv_gen = 0 ;\n gctx -> tls_aad_len = - 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_IVLEN : if ( arg <= 0 ) return 0 ;\n if ( ( arg > EVP_MAX_IV_LENGTH ) && ( arg > gctx -> ivlen ) ) {\n if ( gctx -> iv != EVP_CIPHER_CTX_iv_noconst ( c ) ) OPENSSL_free ( gctx -> iv ) ;\n gctx -> iv = OPENSSL_malloc ( arg ) ;\n if ( gctx -> iv == NULL ) return 0 ;\n }\n gctx -> ivlen = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_TAG : if ( arg <= 0 || arg > 16 || EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n gctx -> taglen = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_GET_TAG : if ( arg <= 0 || arg > 16 || ! EVP_CIPHER_CTX_encrypting ( c ) || gctx -> taglen < 0 ) return 0 ;\n memcpy ( ptr , EVP_CIPHER_CTX_buf_noconst ( c ) , arg ) ;\n return 1 ;\n case EVP_CTRL_GCM_SET_IV_FIXED : if ( arg == - 1 ) {\n memcpy ( gctx -> iv , ptr , gctx -> ivlen ) ;\n gctx -> iv_gen = 1 ;\n return 1 ;\n }\n if ( ( arg < 4 ) || ( gctx -> ivlen - arg ) < 8 ) return 0 ;\n if ( arg ) memcpy ( gctx -> iv , ptr , arg ) ;\n if ( EVP_CIPHER_CTX_encrypting ( c ) && RAND_bytes ( gctx -> iv + arg , gctx -> ivlen - arg ) <= 0 ) return 0 ;\n gctx -> iv_gen = 1 ;\n return 1 ;\n case EVP_CTRL_GCM_IV_GEN : if ( gctx -> iv_gen == 0 || gctx -> key_set == 0 ) return 0 ;\n CRYPTO_gcm128_setiv ( & gctx -> gcm , gctx -> iv , gctx -> ivlen ) ;\n if ( arg <= 0 || arg > gctx -> ivlen ) arg = gctx -> ivlen ;\n memcpy ( ptr , gctx -> iv + gctx -> ivlen - arg , arg ) ;\n ctr64_inc ( gctx -> iv + gctx -> ivlen - 8 ) ;\n gctx -> iv_set = 1 ;\n return 1 ;\n case EVP_CTRL_GCM_SET_IV_INV : if ( gctx -> iv_gen == 0 || gctx -> key_set == 0 || EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( gctx -> iv + gctx -> ivlen - arg , ptr , arg ) ;\n CRYPTO_gcm128_setiv ( & gctx -> gcm , gctx -> iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_TLS1_AAD : if ( arg != EVP_AEAD_TLS1_AAD_LEN ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n gctx -> tls_aad_len = arg ;\n {\n unsigned int len = EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] << 8 | EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] ;\n if ( len < EVP_GCM_TLS_EXPLICIT_IV_LEN ) return 0 ;\n len -= EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n if ( ! EVP_CIPHER_CTX_encrypting ( c ) ) {\n if ( len < EVP_GCM_TLS_TAG_LEN ) return 0 ;\n len -= EVP_GCM_TLS_TAG_LEN ;\n }\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] = len >> 8 ;\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] = len & 0xff ;\n }\n return EVP_GCM_TLS_TAG_LEN ;\n case EVP_CTRL_COPY : {\n EVP_CIPHER_CTX * out = ptr ;\n EVP_AES_GCM_CTX * gctx_out = EVP_C_DATA ( EVP_AES_GCM_CTX , out ) ;\n if ( gctx -> gcm . key ) {\n if ( gctx -> gcm . key != & gctx -> ks ) return 0 ;\n gctx_out -> gcm . key = & gctx_out -> ks ;\n }\n if ( gctx -> iv == EVP_CIPHER_CTX_iv_noconst ( c ) ) gctx_out -> iv = EVP_CIPHER_CTX_iv_noconst ( out ) ;\n else {\n gctx_out -> iv = OPENSSL_malloc ( gctx -> ivlen ) ;\n if ( gctx_out -> iv == NULL ) return 0 ;\n memcpy ( gctx_out -> iv , gctx -> iv , gctx -> ivlen ) ;\n }\n return 1 ;\n }\n default : return - 1 ;\n }\n }\n static int aes_gcm_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n if ( ! iv && ! key ) return 1 ;\n if ( key ) {\n do {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) HWAES_encrypt ) ;\n # ifdef HWAES_ctr32_encrypt_blocks gctx -> ctr = ( ctr128_f ) HWAES_ctr32_encrypt_blocks ;\n # else gctx -> ctr = NULL ;\n # endif break ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE ) {\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) AES_encrypt ) ;\n gctx -> ctr = ( ctr128_f ) bsaes_ctr32_encrypt_blocks ;\n break ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) vpaes_encrypt ) ;\n gctx -> ctr = NULL ;\n break ;\n }\n else # endif ( void ) 0 ;\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) AES_encrypt ) ;\n # ifdef AES_CTR_ASM gctx -> ctr = ( ctr128_f ) AES_ctr32_encrypt ;\n # else gctx -> ctr = NULL ;\n # endif }\n while ( 0 ) ;\n if ( iv == NULL && gctx -> iv_set ) iv = gctx -> iv ;\n if ( iv ) {\n CRYPTO_gcm128_setiv ( & gctx -> gcm , iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n }\n gctx -> key_set = 1 ;\n }\n else {\n if ( gctx -> key_set ) CRYPTO_gcm128_setiv ( & gctx -> gcm , iv , gctx -> ivlen ) ;\n else memcpy ( gctx -> iv , iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n gctx -> iv_gen = 0 ;\n }\n return 1 ;\n }\n static int aes_gcm_tls_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n int rv = - 1 ;\n if ( out != in || len < ( EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ) ) return - 1 ;\n if ( EVP_CIPHER_CTX_ctrl ( ctx , EVP_CIPHER_CTX_encrypting ( ctx ) ? EVP_CTRL_GCM_IV_GEN : EVP_CTRL_GCM_SET_IV_INV , EVP_GCM_TLS_EXPLICIT_IV_LEN , out ) <= 0 ) goto err ;\n if ( CRYPTO_gcm128_aad ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , gctx -> tls_aad_len ) ) goto err ;\n in += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n out += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n len -= EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ;\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 32 && AES_GCM_ASM ( gctx ) ) {\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_encrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) goto err ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 32 && AES_GCM_ASM2 ( gctx ) ) {\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) goto err ;\n }\n out += len ;\n CRYPTO_gcm128_tag ( & gctx -> gcm , out , EVP_GCM_TLS_TAG_LEN ) ;\n rv = len + EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ;\n }\n else {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 16 && AES_GCM_ASM ( gctx ) ) {\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_decrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) goto err ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 16 && AES_GCM_ASM2 ( gctx ) ) {\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) goto err ;\n }\n CRYPTO_gcm128_tag ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , EVP_GCM_TLS_TAG_LEN ) ;\n if ( CRYPTO_memcmp ( EVP_CIPHER_CTX_buf_noconst ( ctx ) , in + len , EVP_GCM_TLS_TAG_LEN ) ) {\n OPENSSL_cleanse ( out , len ) ;\n goto err ;\n }\n rv = len ;\n }\n err : gctx -> iv_set = 0 ;\n gctx -> tls_aad_len = - 1 ;\n return rv ;\n }\n static int aes_gcm_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n if ( ! gctx -> key_set ) return - 1 ;\n if ( gctx -> tls_aad_len >= 0 ) return aes_gcm_tls_cipher ( ctx , out , in , len ) ;\n if ( ! gctx -> iv_set ) return - 1 ;\n if ( in ) {\n if ( out == NULL ) {\n if ( CRYPTO_gcm128_aad ( & gctx -> gcm , in , len ) ) return - 1 ;\n }\n else if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 32 && AES_GCM_ASM ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_encrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) return - 1 ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 32 && AES_GCM_ASM2 ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) return - 1 ;\n }\n }\n else {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 16 && AES_GCM_ASM ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_decrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) return - 1 ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 16 && AES_GCM_ASM2 ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) return - 1 ;\n }\n }\n return len ;\n }\n else {\n if ( ! EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> taglen < 0 ) return - 1 ;\n if ( CRYPTO_gcm128_finish ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , gctx -> taglen ) != 0 ) return - 1 ;\n gctx -> iv_set = 0 ;\n return 0 ;\n }\n CRYPTO_gcm128_tag ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , 16 ) ;\n gctx -> taglen = 16 ;\n gctx -> iv_set = 0 ;\n return 0 ;\n }\n }\n # define CUSTOM_FLAGS ( EVP_CIPH_FLAG_DEFAULT_ASN1 \\ | EVP_CIPH_CUSTOM_IV | EVP_CIPH_FLAG_CUSTOM_CIPHER \\ | EVP_CIPH_ALWAYS_CALL_INIT | EVP_CIPH_CTRL_INIT \\ | EVP_CIPH_CUSTOM_COPY ) BLOCK_CIPHER_custom ( NID_aes , 128 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 192 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 256 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) static int aes_xts_ctrl ( EVP_CIPHER_CTX * c , int type , int arg , void * ptr ) {\n EVP_AES_XTS_CTX * xctx = EVP_C_DATA ( EVP_AES_XTS_CTX , c ) ;\n if ( type == EVP_CTRL_COPY ) {\n EVP_CIPHER_CTX * out = ptr ;\n EVP_AES_XTS_CTX * xctx_out = EVP_C_DATA ( EVP_AES_XTS_CTX , out ) ;\n if ( xctx -> xts . key1 ) {\n if ( xctx -> xts . key1 != & xctx -> ks1 ) return 0 ;\n xctx_out -> xts . key1 = & xctx_out -> ks1 ;\n }\n if ( xctx -> xts . key2 ) {\n if ( xctx -> xts . key2 != & xctx -> ks2 ) return 0 ;\n xctx_out -> xts . key2 = & xctx_out -> ks2 ;\n }\n return 1 ;\n }\n else if ( type != EVP_CTRL_INIT ) return - 1 ;\n xctx -> xts . key1 = NULL ;\n xctx -> xts . key2 = NULL ;\n return 1 ;\n }\n static int aes_xts_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n EVP_AES_XTS_CTX * xctx = EVP_C_DATA ( EVP_AES_XTS_CTX , ctx ) ;\n if ( ! iv && ! key ) return 1 ;\n if ( key ) do {\n # ifdef AES_XTS_ASM xctx -> stream = enc ? AES_xts_encrypt : AES_xts_decrypt ;\n # else xctx -> stream = NULL ;\n # endif # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n if ( enc ) {\n HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) HWAES_encrypt ;\n # ifdef HWAES_xts_encrypt xctx -> stream = HWAES_xts_encrypt ;\n # endif }\n else {\n HWAES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) HWAES_decrypt ;\n # ifdef HWAES_xts_decrypt xctx -> stream = HWAES_xts_decrypt ;\n # endif }\n HWAES_set_encrypt_key ( key + EVP_CIPHER_CTX_key_length ( ctx ) / 2 , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks2 . ks ) ;\n xctx -> xts . block2 = ( block128_f ) HWAES_encrypt ;\n xctx -> xts . key1 = & xctx -> ks1 ;\n break ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE ) xctx -> stream = enc ? bsaes_xts_encrypt : bsaes_xts_decrypt ;\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n if ( enc ) {\n vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) vpaes_encrypt ;\n }\n else {\n vpaes_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) vpaes_decrypt ;\n }\n vpaes_set_encrypt_key ( key + EVP_CIPHER_CTX_key_length ( ctx ) / 2 , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks2 . ks ) ;\n xctx -> xts . block2 = ( block128_f ) vpaes_encrypt ;\n xctx -> xts . key1 = & xctx -> ks1 ;\n break ;\n }\n else # endif ( void ) 0 ;\n if ( enc ) {\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) AES_encrypt ;\n }\n else {\n AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) AES_decrypt ;\n }\n AES_set_encrypt_key ( key + EVP_CIPHER_CTX_key_length ( ctx ) / 2 , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks2 . ks ) ;\n xctx -> xts . block2 = ( block128_f ) AES_encrypt ;\n xctx -> xts . key1 = & xctx -> ks1 ;\n }\n while ( 0 ) ;\n if ( iv ) {\n xctx -> xts . key2 = & xctx -> ks2 ;\n memcpy ( EVP_CIPHER_CTX_iv_noconst ( ctx ) , iv , 16 ) ;\n }\n return 1 ;\n }\n static int aes_xts_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_XTS_CTX * xctx = EVP_C_DATA ( EVP_AES_XTS_CTX , ctx ) ;\n if ( ! xctx -> xts . key1 || ! xctx -> xts . key2 ) return 0 ;\n if ( ! out || ! in || len < AES_BLOCK_SIZE ) return 0 ;\n if ( xctx -> stream ) ( * xctx -> stream ) ( in , out , len , xctx -> xts . key1 , xctx -> xts . key2 , EVP_CIPHER_CTX_iv_noconst ( ctx ) ) ;\n else if ( CRYPTO_xts128_encrypt ( & xctx -> xts , EVP_CIPHER_CTX_iv_noconst ( ctx ) , in , out , len , EVP_CIPHER_CTX_encrypting ( ctx ) ) ) return 0 ;\n return 1 ;\n }\n # define aes_xts_cleanup NULL # define XTS_FLAGS ( EVP_CIPH_FLAG_DEFAULT_ASN1 | EVP_CIPH_CUSTOM_IV \\ | EVP_CIPH_ALWAYS_CALL_INIT | EVP_CIPH_CTRL_INIT \\ | EVP_CIPH_CUSTOM_COPY ) BLOCK_CIPHER_custom ( NID_aes , 128 , 1 , 16 , xts , XTS , XTS_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 256 , 1 , 16 , xts , XTS , XTS_FLAGS )"}
{"idx": 18478, "target": 0, "func": "static long roundv ( LDOUBLE value ) {\n long intpart ;\n intpart = ( long ) value ;\n value = value - intpart ;\n if ( value >= 0.5 ) intpart ++ ;\n return intpart ;\n }"}
{"idx": 18479, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize ) ;\n DECL_PIOCTL ( PGetCacheSize ) ;\n DECL_PIOCTL ( PRemoveCallBack ) ;\n DECL_PIOCTL ( PNewCell ) ;\n DECL_PIOCTL ( PNewAlias ) ;\n DECL_PIOCTL ( PListCells ) ;\n DECL_PIOCTL ( PListAliases ) ;\n DECL_PIOCTL ( PRemoveMount ) ;\n DECL_PIOCTL ( PGetCellStatus ) ;\n DECL_PIOCTL ( PSetCellStatus ) ;\n DECL_PIOCTL ( PFlushVolumeData ) ;\n DECL_PIOCTL ( PFlushAllVolumeData ) ;\n DECL_PIOCTL ( PGetVnodeXStatus ) ;\n DECL_PIOCTL ( PGetVnodeXStatus2 ) ;\n DECL_PIOCTL ( PSetSysName ) ;\n DECL_PIOCTL ( PSetSPrefs ) ;\n DECL_PIOCTL ( PSetSPrefs33 ) ;\n DECL_PIOCTL ( PGetSPrefs ) ;\n DECL_PIOCTL ( PExportAfs ) ;\n DECL_PIOCTL ( PGag )"}
{"idx": 18480, "target": 0, "func": "static int selinux_secmark_relabel_packet ( u32 sid ) {\n const struct task_security_struct * __tsec ;\n u32 tsid ;\n __tsec = current_security ( ) ;\n tsid = __tsec -> sid ;\n return avc_has_perm ( tsid , sid , SECCLASS_PACKET , PACKET__RELABELTO , NULL ) ;\n }"}
{"idx": 18481, "target": 0, "func": "static void SvcEncode ( VP9_COMP * cpi , size_t * size , uint8_t * dest , unsigned int * frame_flags ) {\n vp9_rc_get_svc_params ( cpi ) ;\n encode_frame_to_data_rate ( cpi , size , dest , frame_flags ) ;\n }"}
{"idx": 18482, "target": 0, "func": "static char * lxc_cgroup_get_hierarchy_abs_path ( const char * subsystem , const char * name , const char * lxcpath ) {\n struct cgroup_meta_data * meta ;\n struct cgroup_process_info * base_info , * info ;\n struct cgroup_mount_point * mp ;\n char * result = NULL ;\n meta = lxc_cgroup_load_meta ( ) ;\n if ( ! meta ) return NULL ;\n base_info = lxc_cgroup_get_container_info ( name , lxcpath , meta ) ;\n if ( ! base_info ) goto out1 ;\n info = find_info_for_subsystem ( base_info , subsystem ) ;\n if ( ! info ) goto out2 ;\n if ( info -> designated_mount_point ) {\n mp = info -> designated_mount_point ;\n }\n else {\n mp = lxc_cgroup_find_mount_point ( info -> hierarchy , info -> cgroup_path , true ) ;\n if ( ! mp ) goto out3 ;\n }\n result = cgroup_to_absolute_path ( mp , info -> cgroup_path , NULL ) ;\n out3 : out2 : lxc_cgroup_process_info_free ( base_info ) ;\n out1 : lxc_cgroup_put_meta ( meta ) ;\n return result ;\n }"}
{"idx": 18483, "target": 0, "func": "int find_found ( FOUND_SET * found_set , uint table_offset , int found_offset ) {\n int i ;\n for ( i = 0 ;\n ( uint ) i < found_sets ;\n i ++ ) if ( found_set [ i ] . table_offset == table_offset && found_set [ i ] . found_offset == found_offset ) return - i - 2 ;\n found_set [ i ] . table_offset = table_offset ;\n found_set [ i ] . found_offset = found_offset ;\n found_sets ++ ;\n return - i - 2 ;\n }"}
{"idx": 18484, "target": 0, "func": "static char * summary_session ( tvbuff_t * tvb , int offset ) {\n switch ( tvb_get_guint8 ( tvb , offset + 3 ) ) {\n case RSVP_SESSION_TYPE_IPV4 : return wmem_strdup_printf ( wmem_packet_scope ( ) , \"SESSION: IPv4, Destination %s, Protocol %d, Port %d. \" , tvb_ip_to_str ( tvb , offset + 4 ) , tvb_get_guint8 ( tvb , offset + 8 ) , tvb_get_ntohs ( tvb , offset + 10 ) ) ;\n break ;\n case RSVP_SESSION_TYPE_IPV4_LSP : return wmem_strdup_printf ( wmem_packet_scope ( ) , \"SESSION: IPv4-LSP, Destination %s, Short Call ID %d, Tunnel ID %d, Ext ID %0x. \" , tvb_ip_to_str ( tvb , offset + 4 ) , tvb_get_ntohs ( tvb , offset + 8 ) , tvb_get_ntohs ( tvb , offset + 10 ) , tvb_get_ntohl ( tvb , offset + 12 ) ) ;\n break ;\n case RSVP_SESSION_TYPE_IPV6_LSP : return wmem_strdup_printf ( wmem_packet_scope ( ) , \"SESSION: IPv6-LSP, Destination %s, Short Call ID %d, Tunnel ID %d, Ext ID %0x%0x%0x%0x. \" , tvb_ip6_to_str ( tvb , offset + 4 ) , tvb_get_ntohs ( tvb , offset + 20 ) , tvb_get_ntohs ( tvb , offset + 22 ) , tvb_get_ntohl ( tvb , offset + 24 ) , tvb_get_ntohl ( tvb , offset + 28 ) , tvb_get_ntohl ( tvb , offset + 32 ) , tvb_get_ntohl ( tvb , offset + 36 ) ) ;\n case RSVP_SESSION_TYPE_AGGREGATE_IPV4 : return wmem_strdup_printf ( wmem_packet_scope ( ) , \"SESSION: IPv4-Aggregate, Destination %s, DSCP %d. \" , tvb_ip_to_str ( tvb , offset + 4 ) , tvb_get_guint8 ( tvb , offset + 11 ) ) ;\n break ;\n case RSVP_SESSION_TYPE_IPV4_UNI : return wmem_strdup_printf ( wmem_packet_scope ( ) , \"SESSION: IPv4-UNI, Destination %s, Tunnel ID %d, Ext Address %s. \" , tvb_ip_to_str ( tvb , offset + 4 ) , tvb_get_ntohs ( tvb , offset + 10 ) , tvb_ip_to_str ( tvb , offset + 12 ) ) ;\n break ;\n case RSVP_SESSION_TYPE_P2MP_LSP_TUNNEL_IPV4 : return wmem_strdup_printf ( wmem_packet_scope ( ) , \"SESSION: IPv4-P2MP LSP TUNNEL, PSMP ID %d, Tunnel ID %d, Ext Tunnel %s. \" , tvb_get_ntohl ( tvb , offset + 4 ) , tvb_get_ntohs ( tvb , offset + 10 ) , tvb_ip_to_str ( tvb , offset + 12 ) ) ;\n break ;\n case RSVP_SESSION_TYPE_P2MP_LSP_TUNNEL_IPV6 : return wmem_strdup_printf ( wmem_packet_scope ( ) , \"SESSION: IPv6-P2MP LSP TUNNEL, PSMP ID %d, Tunnel ID %d, Ext Tunnel %s. \" , tvb_get_ntohl ( tvb , offset + 4 ) , tvb_get_ntohs ( tvb , offset + 10 ) , tvb_ip6_to_str ( tvb , offset + 12 ) ) ;\n break ;\n case RSVP_SESSION_TYPE_IPV4_E_NNI : return wmem_strdup_printf ( wmem_packet_scope ( ) , \"SESSION: IPv4-E-NNI, Destination %s, Tunnel ID %d, Ext Address %s. \" , tvb_ip_to_str ( tvb , offset + 4 ) , tvb_get_ntohs ( tvb , offset + 10 ) , tvb_ip_to_str ( tvb , offset + 12 ) ) ;\n break ;\n default : return wmem_strdup_printf ( wmem_packet_scope ( ) , \"SESSION: Type %d. \" , tvb_get_guint8 ( tvb , offset + 3 ) ) ;\n break ;\n }\n DISSECTOR_ASSERT_NOT_REACHED ( ) ;\n }"}
{"idx": 18485, "target": 0, "func": "int qemuMonitorJSONAddUSBDisk ( qemuMonitorPtr mon ATTRIBUTE_UNUSED , const char * path ATTRIBUTE_UNUSED ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"usb_add not suppported in JSON mode\" ) ) ;\n return - 1 ;\n }"}
{"idx": 18486, "target": 1, "func": "static int read_sbr_single_channel_element ( AACContext * ac , SpectralBandReplication * sbr , GetBitContext * gb ) {\n if ( get_bits1 ( gb ) ) skip_bits ( gb , 4 ) ;\n if ( read_sbr_grid ( ac , sbr , gb , & sbr -> data [ 0 ] ) ) return - 1 ;\n read_sbr_dtdf ( sbr , gb , & sbr -> data [ 0 ] ) ;\n read_sbr_invf ( sbr , gb , & sbr -> data [ 0 ] ) ;\n read_sbr_envelope ( sbr , gb , & sbr -> data [ 0 ] , 0 ) ;\n read_sbr_noise ( sbr , gb , & sbr -> data [ 0 ] , 0 ) ;\n if ( ( sbr -> data [ 0 ] . bs_add_harmonic_flag = get_bits1 ( gb ) ) ) get_bits1_vector ( gb , sbr -> data [ 0 ] . bs_add_harmonic , sbr -> n [ 1 ] ) ;\n return 0 ;\n }"}
{"idx": 18487, "target": 1, "func": "int jbig2_decode_generic_mmr ( Jbig2Ctx * ctx , Jbig2Segment * segment , const Jbig2GenericRegionParams * params , const byte * data , size_t size , Jbig2Image * image ) {\n Jbig2MmrCtx mmr ;\n const int rowstride = image -> stride ;\n byte * dst = image -> data ;\n byte * ref = NULL ;\n int y ;\n int code = 0 ;\n jbig2_decode_mmr_init ( & mmr , image -> width , image -> height , data , size ) ;\n for ( y = 0 ;\n y < image -> height ;\n y ++ ) {\n memset ( dst , 0 , rowstride ) ;\n code = jbig2_decode_mmr_line ( & mmr , ref , dst ) ;\n if ( code < 0 ) return code ;\n ref = dst ;\n dst += rowstride ;\n }\n return code ;\n }"}
{"idx": 18488, "target": 0, "func": "Datum scalargtsel ( PG_FUNCTION_ARGS ) {\n PlannerInfo * root = ( PlannerInfo * ) PG_GETARG_POINTER ( 0 ) ;\n Oid operator = PG_GETARG_OID ( 1 ) ;\n List * args = ( List * ) PG_GETARG_POINTER ( 2 ) ;\n int varRelid = PG_GETARG_INT32 ( 3 ) ;\n VariableStatData vardata ;\n Node * other ;\n bool varonleft ;\n Datum constval ;\n Oid consttype ;\n bool isgt ;\n double selec ;\n if ( ! get_restriction_variable ( root , args , varRelid , & vardata , & other , & varonleft ) ) PG_RETURN_FLOAT8 ( DEFAULT_INEQ_SEL ) ;\n if ( ! IsA ( other , Const ) ) {\n ReleaseVariableStats ( vardata ) ;\n PG_RETURN_FLOAT8 ( DEFAULT_INEQ_SEL ) ;\n }\n if ( ( ( Const * ) other ) -> constisnull ) {\n ReleaseVariableStats ( vardata ) ;\n PG_RETURN_FLOAT8 ( 0.0 ) ;\n }\n constval = ( ( Const * ) other ) -> constvalue ;\n consttype = ( ( Const * ) other ) -> consttype ;\n if ( varonleft ) {\n isgt = true ;\n }\n else {\n operator = get_commutator ( operator ) ;\n if ( ! operator ) {\n ReleaseVariableStats ( vardata ) ;\n PG_RETURN_FLOAT8 ( DEFAULT_INEQ_SEL ) ;\n }\n isgt = false ;\n }\n selec = scalarineqsel ( root , operator , isgt , & vardata , constval , consttype ) ;\n ReleaseVariableStats ( vardata ) ;\n PG_RETURN_FLOAT8 ( ( float8 ) selec ) ;\n }"}
{"idx": 18489, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize ) ;\n DECL_PIOCTL ( PGetCacheSize ) ;\n DECL_PIOCTL ( PRemoveCallBack ) ;\n DECL_PIOCTL ( PNewCell ) ;\n DECL_PIOCTL ( PNewAlias ) ;\n DECL_PIOCTL ( PListCells ) ;\n DECL_PIOCTL ( PListAliases ) ;\n DECL_PIOCTL ( PRemoveMount ) ;\n DECL_PIOCTL ( PGetCellStatus ) ;\n DECL_PIOCTL ( PSetCellStatus ) ;\n DECL_PIOCTL ( PFlushVolumeData ) ;\n DECL_PIOCTL ( PFlushAllVolumeData ) ;\n DECL_PIOCTL ( PGetVnodeXStatus ) ;\n DECL_PIOCTL ( PGetVnodeXStatus2 ) ;\n DECL_PIOCTL ( PSetSysName ) ;\n DECL_PIOCTL ( PSetSPrefs ) ;\n DECL_PIOCTL ( PSetSPrefs33 ) ;\n DECL_PIOCTL ( PGetSPrefs ) ;\n DECL_PIOCTL ( PExportAfs ) ;\n DECL_PIOCTL ( PGag ) ;\n DECL_PIOCTL ( PTwiddleRx ) ;\n DECL_PIOCTL ( PGetInitParams ) ;\n DECL_PIOCTL ( PGetRxkcrypt ) ;\n DECL_PIOCTL ( PSetRxkcrypt ) ;\n DECL_PIOCTL ( PGetCPrefs ) ;\n DECL_PIOCTL ( PSetCPrefs ) ;\n DECL_PIOCTL ( PFlushMount ) ;\n DECL_PIOCTL ( PRxStatProc ) ;\n DECL_PIOCTL ( PRxStatPeer ) ;\n DECL_PIOCTL ( PPrefetchFromTape ) ;\n DECL_PIOCTL ( PFsCmd ) ;\n DECL_PIOCTL ( PCallBackAddr ) ;\n DECL_PIOCTL ( PDiscon )"}
{"idx": 18490, "target": 0, "func": "PHP_FUNCTION ( locale_filter_matches ) {\n char * lang_tag = NULL ;\n int lang_tag_len = 0 ;\n const char * loc_range = NULL ;\n int loc_range_len = 0 ;\n int result = 0 ;\n char * token = 0 ;\n char * chrcheck = NULL ;\n char * can_lang_tag = NULL ;\n char * can_loc_range = NULL ;\n char * cur_lang_tag = NULL ;\n char * cur_loc_range = NULL ;\n zend_bool boolCanonical = 0 ;\n UErrorCode status = U_ZERO_ERROR ;\n intl_error_reset ( NULL TSRMLS_CC ) ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"ss|b\" , & lang_tag , & lang_tag_len , & loc_range , & loc_range_len , & boolCanonical ) == FAILURE ) {\n intl_error_set ( NULL , U_ILLEGAL_ARGUMENT_ERROR , \"locale_filter_matches: unable to parse input params\" , 0 TSRMLS_CC ) ;\n RETURN_FALSE ;\n }\n if ( loc_range_len == 0 ) {\n loc_range = intl_locale_get_default ( TSRMLS_C ) ;\n }\n if ( strcmp ( loc_range , \"*\" ) == 0 ) {\n RETURN_TRUE ;\n }\n if ( boolCanonical ) {\n can_loc_range = get_icu_value_internal ( loc_range , LOC_CANONICALIZE_TAG , & result , 0 ) ;\n if ( result == 0 ) {\n intl_error_set ( NULL , status , \"locale_filter_matches : unable to canonicalize loc_range\" , 0 TSRMLS_CC ) ;\n RETURN_FALSE ;\n }\n can_lang_tag = get_icu_value_internal ( lang_tag , LOC_CANONICALIZE_TAG , & result , 0 ) ;\n if ( result == 0 ) {\n intl_error_set ( NULL , status , \"locale_filter_matches : unable to canonicalize lang_tag\" , 0 TSRMLS_CC ) ;\n RETURN_FALSE ;\n }\n cur_lang_tag = ecalloc ( 1 , strlen ( can_lang_tag ) + 1 ) ;\n result = strToMatch ( can_lang_tag , cur_lang_tag ) ;\n if ( result == 0 ) {\n efree ( cur_lang_tag ) ;\n efree ( can_lang_tag ) ;\n RETURN_FALSE ;\n }\n cur_loc_range = ecalloc ( 1 , strlen ( can_loc_range ) + 1 ) ;\n result = strToMatch ( can_loc_range , cur_loc_range ) ;\n if ( result == 0 ) {\n efree ( cur_lang_tag ) ;\n efree ( can_lang_tag ) ;\n efree ( cur_loc_range ) ;\n efree ( can_loc_range ) ;\n RETURN_FALSE ;\n }\n token = strstr ( cur_lang_tag , cur_loc_range ) ;\n if ( token && ( token == cur_lang_tag ) ) {\n chrcheck = token + ( strlen ( cur_loc_range ) ) ;\n if ( isIDSeparator ( * chrcheck ) || isEndOfTag ( * chrcheck ) ) {\n if ( cur_lang_tag ) {\n efree ( cur_lang_tag ) ;\n }\n if ( cur_loc_range ) {\n efree ( cur_loc_range ) ;\n }\n if ( can_lang_tag ) {\n efree ( can_lang_tag ) ;\n }\n if ( can_loc_range ) {\n efree ( can_loc_range ) ;\n }\n RETURN_TRUE ;\n }\n }\n if ( cur_lang_tag ) {\n efree ( cur_lang_tag ) ;\n }\n if ( cur_loc_range ) {\n efree ( cur_loc_range ) ;\n }\n if ( can_lang_tag ) {\n efree ( can_lang_tag ) ;\n }\n if ( can_loc_range ) {\n efree ( can_loc_range ) ;\n }\n RETURN_FALSE ;\n }\n else {\n cur_lang_tag = ecalloc ( 1 , strlen ( lang_tag ) + 1 ) ;\n result = strToMatch ( lang_tag , cur_lang_tag ) ;\n if ( result == 0 ) {\n efree ( cur_lang_tag ) ;\n RETURN_FALSE ;\n }\n cur_loc_range = ecalloc ( 1 , strlen ( loc_range ) + 1 ) ;\n result = strToMatch ( loc_range , cur_loc_range ) ;\n if ( result == 0 ) {\n efree ( cur_lang_tag ) ;\n efree ( cur_loc_range ) ;\n RETURN_FALSE ;\n }\n token = strstr ( cur_lang_tag , cur_loc_range ) ;\n if ( token && ( token == cur_lang_tag ) ) {\n chrcheck = token + ( strlen ( cur_loc_range ) ) ;\n if ( isIDSeparator ( * chrcheck ) || isEndOfTag ( * chrcheck ) ) {\n if ( cur_lang_tag ) {\n efree ( cur_lang_tag ) ;\n }\n if ( cur_loc_range ) {\n efree ( cur_loc_range ) ;\n }\n RETURN_TRUE ;\n }\n }\n if ( cur_lang_tag ) {\n efree ( cur_lang_tag ) ;\n }\n if ( cur_loc_range ) {\n efree ( cur_loc_range ) ;\n }\n RETURN_FALSE ;\n }\n }"}
{"idx": 18491, "target": 0, "func": "static void pxa2xx_ssp_int_update ( PXA2xxSSPState * s ) {\n int level = 0 ;\n level |= s -> ssitr & SSITR_INT ;\n level |= ( s -> sssr & SSSR_BCE ) && ( s -> sscr [ 1 ] & SSCR1_EBCEI ) ;\n level |= ( s -> sssr & SSSR_TUR ) && ! ( s -> sscr [ 0 ] & SSCR0_TIM ) ;\n level |= ( s -> sssr & SSSR_EOC ) && ( s -> sssr & ( SSSR_TINT | SSSR_PINT ) ) ;\n level |= ( s -> sssr & SSSR_TINT ) && ( s -> sscr [ 1 ] & SSCR1_TINTE ) ;\n level |= ( s -> sssr & SSSR_PINT ) && ( s -> sscr [ 1 ] & SSCR1_PINTE ) ;\n level |= ( s -> sssr & SSSR_ROR ) && ! ( s -> sscr [ 0 ] & SSCR0_RIM ) ;\n level |= ( s -> sssr & SSSR_RFS ) && ( s -> sscr [ 1 ] & SSCR1_RIE ) ;\n level |= ( s -> sssr & SSSR_TFS ) && ( s -> sscr [ 1 ] & SSCR1_TIE ) ;\n qemu_set_irq ( s -> irq , ! ! level ) ;\n }"}
{"idx": 18492, "target": 0, "func": "static cmsBool Type_ViewingConditions_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) {\n cmsICCViewingConditions * sc = ( cmsICCViewingConditions * ) Ptr ;\n if ( ! _cmsWriteXYZNumber ( io , & sc -> IlluminantXYZ ) ) return FALSE ;\n if ( ! _cmsWriteXYZNumber ( io , & sc -> SurroundXYZ ) ) return FALSE ;\n if ( ! _cmsWriteUInt32Number ( io , sc -> IlluminantType ) ) return FALSE ;\n return TRUE ;\n cmsUNUSED_PARAMETER ( nItems ) ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 18493, "target": 1, "func": "static zend_object_value spl_filesystem_object_clone ( zval * zobject TSRMLS_DC ) {\n zend_object_value new_obj_val ;\n zend_object * old_object ;\n zend_object * new_object ;\n zend_object_handle handle = Z_OBJ_HANDLE_P ( zobject ) ;\n spl_filesystem_object * intern ;\n spl_filesystem_object * source ;\n int index , skip_dots ;\n old_object = zend_objects_get_address ( zobject TSRMLS_CC ) ;\n source = ( spl_filesystem_object * ) old_object ;\n new_obj_val = spl_filesystem_object_new_ex ( old_object -> ce , & intern TSRMLS_CC ) ;\n new_object = & intern -> std ;\n intern -> flags = source -> flags ;\n switch ( source -> type ) {\n case SPL_FS_INFO : intern -> _path_len = source -> _path_len ;\n intern -> _path = estrndup ( source -> _path , source -> _path_len ) ;\n intern -> file_name_len = source -> file_name_len ;\n intern -> file_name = estrndup ( source -> file_name , intern -> file_name_len ) ;\n break ;\n case SPL_FS_DIR : spl_filesystem_dir_open ( intern , source -> _path TSRMLS_CC ) ;\n skip_dots = SPL_HAS_FLAG ( source -> flags , SPL_FILE_DIR_SKIPDOTS ) ;\n for ( index = 0 ;\n index < source -> u . dir . index ;\n ++ index ) {\n do {\n spl_filesystem_dir_read ( intern TSRMLS_CC ) ;\n }\n while ( skip_dots && spl_filesystem_is_dot ( intern -> u . dir . entry . d_name ) ) ;\n }\n intern -> u . dir . index = index ;\n break ;\n case SPL_FS_FILE : php_error_docref ( NULL TSRMLS_CC , E_ERROR , \"An object of class %s cannot be cloned\" , old_object -> ce -> name ) ;\n break ;\n }\n intern -> file_class = source -> file_class ;\n intern -> info_class = source -> info_class ;\n intern -> oth = source -> oth ;\n intern -> oth_handler = source -> oth_handler ;\n zend_objects_clone_members ( new_object , new_obj_val , old_object , handle TSRMLS_CC ) ;\n if ( intern -> oth_handler && intern -> oth_handler -> clone ) {\n intern -> oth_handler -> clone ( source , intern TSRMLS_CC ) ;\n }\n return new_obj_val ;\n }"}
{"idx": 18494, "target": 0, "func": "static int http_connect ( const char * address , u_short port ) {\n # ifdef WIN32 struct hostent * he ;\n struct sockaddr_in sin ;\n # else struct addrinfo ai , * aitop ;\n char strport [ NI_MAXSERV ] ;\n # endif struct sockaddr * sa ;\n int slen ;\n int fd ;\n # ifdef WIN32 if ( ! ( he = gethostbyname ( address ) ) ) {\n event_warn ( \"gethostbyname\" ) ;\n }\n memcpy ( & sin . sin_addr , he -> h_addr_list [ 0 ] , he -> h_length ) ;\n sin . sin_family = AF_INET ;\n sin . sin_port = htons ( port ) ;\n slen = sizeof ( struct sockaddr_in ) ;\n sa = ( struct sockaddr * ) & sin ;\n # else memset ( & ai , 0 , sizeof ( ai ) ) ;\n ai . ai_family = AF_INET ;\n ai . ai_socktype = SOCK_STREAM ;\n snprintf ( strport , sizeof ( strport ) , \"%d\" , port ) ;\n if ( getaddrinfo ( address , strport , & ai , & aitop ) != 0 ) {\n event_warn ( \"getaddrinfo\" ) ;\n return ( - 1 ) ;\n }\n sa = aitop -> ai_addr ;\n slen = aitop -> ai_addrlen ;\n # endif fd = socket ( AF_INET , SOCK_STREAM , 0 ) ;\n if ( fd == - 1 ) event_err ( 1 , \"socket failed\" ) ;\n if ( connect ( fd , sa , slen ) == - 1 ) event_err ( 1 , \"connect failed\" ) ;\n # ifndef WIN32 freeaddrinfo ( aitop ) ;\n # endif return ( fd ) ;\n }"}
{"idx": 18495, "target": 0, "func": "void gdev_x_clear_window ( gx_device_X * xdev ) {\n if ( ! xdev -> ghostview ) {\n if ( xdev -> useBackingPixmap ) {\n if ( xdev -> bpixmap == 0 ) {\n x_error_handler . oldhandler = XSetErrorHandler ( x_catch_alloc ) ;\n x_error_handler . alloc_error = False ;\n xdev -> bpixmap = XCreatePixmap ( xdev -> dpy , xdev -> win , xdev -> width , xdev -> height , xdev -> vinfo -> depth ) ;\n XSync ( xdev -> dpy , False ) ;\n if ( x_error_handler . alloc_error ) {\n xdev -> useBackingPixmap = False ;\n # ifdef DEBUG emprintf ( xdev -> memory , \"Warning: Failed to allocated backing pixmap.\\n\" ) ;\n # endif if ( xdev -> bpixmap ) {\n XFreePixmap ( xdev -> dpy , xdev -> bpixmap ) ;\n xdev -> bpixmap = None ;\n XSync ( xdev -> dpy , False ) ;\n }\n }\n x_error_handler . oldhandler = XSetErrorHandler ( x_error_handler . oldhandler ) ;\n }\n }\n else {\n if ( xdev -> bpixmap != 0 ) {\n XFreePixmap ( xdev -> dpy , xdev -> bpixmap ) ;\n xdev -> bpixmap = ( Pixmap ) 0 ;\n }\n }\n }\n x_set_buffer ( xdev ) ;\n if ( xdev -> dest == ( Pixmap ) 0 ) {\n xdev -> dest = ( xdev -> bpixmap != ( Pixmap ) 0 ? xdev -> bpixmap : ( Pixmap ) xdev -> win ) ;\n }\n if ( xdev -> dest != ( Pixmap ) 0 ) {\n XSetForeground ( xdev -> dpy , xdev -> gc , xdev -> background ) ;\n XFillRectangle ( xdev -> dpy , xdev -> dest , xdev -> gc , 0 , 0 , xdev -> width , xdev -> height ) ;\n }\n if ( xdev -> bpixmap != ( Pixmap ) 0 ) {\n if ( ! xdev -> ghostview ) XSetWindowBackgroundPixmap ( xdev -> dpy , xdev -> win , xdev -> bpixmap ) ;\n XSetForeground ( xdev -> dpy , xdev -> gc , xdev -> background ) ;\n XFillRectangle ( xdev -> dpy , xdev -> bpixmap , xdev -> gc , 0 , 0 , xdev -> width , xdev -> height ) ;\n }\n xdev -> back_color = xdev -> background ;\n XSetBackground ( xdev -> dpy , xdev -> gc , xdev -> background ) ;\n xdev -> fore_color = xdev -> background ;\n XSetForeground ( xdev -> dpy , xdev -> gc , xdev -> background ) ;\n xdev -> colors_or = xdev -> colors_and = xdev -> background ;\n }"}
{"idx": 18496, "target": 0, "func": "static int test_stdout_behavior ( xd3_stream * stream , int ignore ) {\n int ret ;\n char buf [ TESTBUFSIZE ] ;\n test_setup ( ) ;\n snprintf_func ( buf , TESTBUFSIZE , \"cp /devull %s\" , TEST_TARGET_FILE ) ;\n if ( ( ret = do_cmd ( stream , buf ) ) ) {\n return ret ;\n }\n snprintf_func ( buf , TESTBUFSIZE , \"%s -e %s %s\" , program_name , TEST_TARGET_FILE , TEST_DELTA_FILE ) ;\n if ( ( ret = do_cmd ( stream , buf ) ) ) {\n return ret ;\n }\n snprintf_func ( buf , TESTBUFSIZE , \"%s -e -c %s > %s\" , program_name , TEST_TARGET_FILE , TEST_DELTA_FILE ) ;\n if ( ( ret = do_cmd ( stream , buf ) ) ) {\n return ret ;\n }\n snprintf_func ( buf , TESTBUFSIZE , \"%s -q -d %s \" , program_name , TEST_DELTA_FILE ) ;\n if ( ( ret = do_fail ( stream , buf ) ) ) {\n return ret ;\n }\n snprintf_func ( buf , TESTBUFSIZE , \"%s -d -c %s > /devull\" , program_name , TEST_DELTA_FILE ) ;\n if ( ( ret = do_cmd ( stream , buf ) ) ) {\n return ret ;\n }\n test_cleanup ( ) ;\n return 0 ;\n }"}
{"idx": 18497, "target": 0, "func": "static void pk_transaction_depends_on ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) {\n gboolean ret ;\n gchar * package_ids_temp ;\n guint length ;\n PkBitfield filter ;\n gboolean recursive ;\n g_autofree gchar * * package_ids = NULL ;\n g_autoptr ( GError ) error = NULL ;\n g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;\n g_return_if_fail ( transaction -> priv -> tid != NULL ) ;\n g_variant_get ( params , \"(t^a&sb)\" , & filter , & package_ids , & recursive ) ;\n package_ids_temp = pk_package_ids_to_string ( package_ids ) ;\n g_debug ( \"DependsOn method called: %s (recursive %i)\" , package_ids_temp , recursive ) ;\n if ( ! pk_backend_is_implemented ( transaction -> priv -> backend , PK_ROLE_ENUM_DEPENDS_ON ) ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NOT_SUPPORTED , \"DependsOn not supported by backend\" ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n length = g_strv_length ( package_ids ) ;\n if ( length > PK_TRANSACTION_MAX_PACKAGES_TO_PROCESS ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NUMBER_OF_PACKAGES_INVALID , \"Too many packages to process (%i/%i)\" , length , PK_TRANSACTION_MAX_PACKAGES_TO_PROCESS ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n ret = pk_package_ids_check ( package_ids ) ;\n if ( ! ret ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_PACKAGE_ID_INVALID , \"The package id's '%s' are not valid\" , package_ids_temp ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n transaction -> priv -> cached_filters = filter ;\n transaction -> priv -> cached_package_ids = g_strdupv ( package_ids ) ;\n transaction -> priv -> cached_force = recursive ;\n pk_transaction_set_role ( transaction , PK_ROLE_ENUM_DEPENDS_ON ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_READY ) ;\n out : pk_transaction_dbus_return ( context , error ) ;\n }"}
{"idx": 18498, "target": 0, "func": "static int gx_parse_output_format ( gs_parsed_file_name_t * pfn , const char * * pfmt ) {\n bool have_format = false , field ;\n int width [ 2 ] , int_width = sizeof ( int ) * 3 , w = 0 ;\n uint i ;\n width [ 0 ] = width [ 1 ] = 0 ;\n for ( i = 0 ;\n i < pfn -> len ;\n ++ i ) if ( pfn -> fname [ i ] == '%' ) {\n if ( i + 1 < pfn -> len && pfn -> fname [ i + 1 ] == '%' ) {\n i ++ ;\n continue ;\n }\n if ( have_format ) return_error ( gs_error_undefinedfilename ) ;\n have_format = true ;\n field = - 1 ;\n for ( ;\n ;\n ) if ( ++ i == pfn -> len ) return_error ( gs_error_undefinedfilename ) ;\n else {\n switch ( field ) {\n case - 1 : if ( strchr ( \" #+-\" , pfn -> fname [ i ] ) ) continue ;\n else field ++ ;\n default : if ( strchr ( \"0123456789\" , pfn -> fname [ i ] ) ) {\n width [ field ] = width [ field ] * 10 + pfn -> fname [ i ] - '0' ;\n continue ;\n }\n else if ( 0 == field && '.' == pfn -> fname [ i ] ) {\n field ++ ;\n continue ;\n }\n else field = 2 ;\n case 2 : field ++ ;\n if ( 'l' == pfn -> fname [ i ] ) {\n int_width = sizeof ( long ) * 3 ;\n continue ;\n }\n case 3 : if ( strchr ( \"diuoxX\" , pfn -> fname [ i ] ) ) {\n * pfmt = & pfn -> fname [ i ] ;\n break ;\n }\n else return_error ( gs_error_undefinedfilename ) ;\n }\n break ;\n }\n }\n if ( have_format ) {\n w = max ( width [ 0 ] , width [ 1 ] ) ;\n w = max ( w , int_width ) + 5 ;\n }\n return w ;\n }"}
{"idx": 18499, "target": 0, "func": "static int dissect_h245_RoundTripDelayResponse ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_RoundTripDelayResponse , RoundTripDelayResponse_sequence ) ;\n return offset ;\n }"}
{"idx": 18500, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ExternalProtocolDialogBrowserTest , TestCloseWithChecked ) {\n ShowDialog ( ) ;\n SetChecked ( true ) ;\n EXPECT_TRUE ( dialog_ -> Close ( ) ) ;\n EXPECT_FALSE ( called_ ) ;\n EXPECT_FALSE ( accept_ ) ;\n EXPECT_FALSE ( remember_ ) ;\n histogram_tester_ . ExpectBucketCount ( ExternalProtocolHandler : : kHandleStateMetric , ExternalProtocolHandler : : DONT_LAUNCH , 1 ) ;\n }"}
{"idx": 18501, "target": 0, "func": "static int vp3_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n Vp3DecodeContext * s = avctx -> priv_data ;\n GetBitContext gb ;\n int i , ret ;\n init_get_bits ( & gb , buf , buf_size * 8 ) ;\n if ( s -> theora && get_bits1 ( & gb ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Header packet passed to frame decoder, skipping\\n\" ) ;\n return - 1 ;\n }\n s -> keyframe = ! get_bits1 ( & gb ) ;\n if ( ! s -> theora ) skip_bits ( & gb , 1 ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) s -> last_qps [ i ] = s -> qps [ i ] ;\n s -> nqps = 0 ;\n do {\n s -> qps [ s -> nqps ++ ] = get_bits ( & gb , 6 ) ;\n }\n while ( s -> theora >= 0x030200 && s -> nqps < 3 && get_bits1 ( & gb ) ) ;\n for ( i = s -> nqps ;\n i < 3 ;\n i ++ ) s -> qps [ i ] = - 1 ;\n if ( s -> avctx -> debug & FF_DEBUG_PICT_INFO ) av_log ( s -> avctx , AV_LOG_INFO , \" VP3 %sframe #%d: Q index = %d\\n\" , s -> keyframe ? \"key\" : \"\" , avctx -> frame_number + 1 , s -> qps [ 0 ] ) ;\n s -> skip_loop_filter = ! s -> filter_limit_values [ s -> qps [ 0 ] ] || avctx -> skip_loop_filter >= ( s -> keyframe ? AVDISCARD_ALL : AVDISCARD_NONKEY ) ;\n if ( s -> qps [ 0 ] != s -> last_qps [ 0 ] ) init_loop_filter ( s ) ;\n for ( i = 0 ;\n i < s -> nqps ;\n i ++ ) if ( s -> qps [ i ] != s -> last_qps [ i ] || s -> qps [ 0 ] != s -> last_qps [ 0 ] ) init_dequantizer ( s , i ) ;\n if ( avctx -> skip_frame >= AVDISCARD_NONKEY && ! s -> keyframe ) return buf_size ;\n s -> current_frame . f -> pict_type = s -> keyframe ? AV_PICTURE_TYPE_I : AV_PICTURE_TYPE_P ;\n if ( ff_thread_get_buffer ( avctx , & s -> current_frame , AV_GET_BUFFER_FLAG_REF ) < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n goto error ;\n }\n if ( ! s -> edge_emu_buffer ) s -> edge_emu_buffer = av_malloc ( 9 * FFABS ( s -> current_frame . f -> linesize [ 0 ] ) ) ;\n if ( s -> keyframe ) {\n if ( ! s -> theora ) {\n skip_bits ( & gb , 4 ) ;\n skip_bits ( & gb , 4 ) ;\n if ( s -> version ) {\n s -> version = get_bits ( & gb , 5 ) ;\n if ( avctx -> frame_number == 0 ) av_log ( s -> avctx , AV_LOG_DEBUG , \"VP version: %d\\n\" , s -> version ) ;\n }\n }\n if ( s -> version || s -> theora ) {\n if ( get_bits1 ( & gb ) ) av_log ( s -> avctx , AV_LOG_ERROR , \"Warning, unsupported keyframe coding type?!\\n\" ) ;\n skip_bits ( & gb , 2 ) ;\n }\n }\n else {\n if ( ! s -> golden_frame . f -> data [ 0 ] ) {\n av_log ( s -> avctx , AV_LOG_WARNING , \"vp3: first frame not a keyframe\\n\" ) ;\n s -> golden_frame . f -> pict_type = AV_PICTURE_TYPE_I ;\n if ( ff_thread_get_buffer ( avctx , & s -> golden_frame , AV_GET_BUFFER_FLAG_REF ) < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n goto error ;\n }\n ff_thread_release_buffer ( avctx , & s -> last_frame ) ;\n if ( ( ret = ff_thread_ref_frame ( & s -> last_frame , & s -> golden_frame ) ) < 0 ) goto error ;\n ff_thread_report_progress ( & s -> last_frame , INT_MAX , 0 ) ;\n }\n }\n memset ( s -> all_fragments , 0 , s -> fragment_count * sizeof ( Vp3Fragment ) ) ;\n ff_thread_finish_setup ( avctx ) ;\n if ( unpack_superblocks ( s , & gb ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"error in unpack_superblocks\\n\" ) ;\n goto error ;\n }\n if ( unpack_modes ( s , & gb ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"error in unpack_modes\\n\" ) ;\n goto error ;\n }\n if ( unpack_vectors ( s , & gb ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"error in unpack_vectors\\n\" ) ;\n goto error ;\n }\n if ( unpack_block_qpis ( s , & gb ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"error in unpack_block_qpis\\n\" ) ;\n goto error ;\n }\n if ( unpack_dct_coeffs ( s , & gb ) ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"error in unpack_dct_coeffs\\n\" ) ;\n goto error ;\n }\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n int height = s -> height >> ( i && s -> chroma_y_shift ) ;\n if ( s -> flipped_image ) s -> data_offset [ i ] = 0 ;\n else s -> data_offset [ i ] = ( height - 1 ) * s -> current_frame . f -> linesize [ i ] ;\n }\n s -> last_slice_end = 0 ;\n for ( i = 0 ;\n i < s -> c_superblock_height ;\n i ++ ) render_slice ( s , i ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n int row = ( s -> height >> ( 3 + ( i && s -> chroma_y_shift ) ) ) - 1 ;\n apply_loop_filter ( s , i , row , row + 1 ) ;\n }\n vp3_draw_horiz_band ( s , s -> avctx -> height ) ;\n if ( ( ret = av_frame_ref ( data , s -> current_frame . f ) ) < 0 ) return ret ;\n * got_frame = 1 ;\n if ( ! HAVE_THREADS || ! ( s -> avctx -> active_thread_type & FF_THREAD_FRAME ) ) {\n ret = update_frames ( avctx ) ;\n if ( ret < 0 ) return ret ;\n }\n return buf_size ;\n error : ff_thread_report_progress ( & s -> current_frame , INT_MAX , 0 ) ;\n if ( ! HAVE_THREADS || ! ( s -> avctx -> active_thread_type & FF_THREAD_FRAME ) ) av_frame_unref ( s -> current_frame . f ) ;\n return - 1 ;\n }"}
{"idx": 18502, "target": 0, "func": "my_bool acl_init ( bool dont_read_acl_tables ) {\n THD * thd ;\n my_bool return_val ;\n DBUG_ENTER ( \"acl_init\" ) ;\n acl_cache = new hash_filo ( ACL_CACHE_SIZE , 0 , 0 , ( hash_get_key ) acl_entry_get_key , ( hash_free_key ) free , & my_charset_utf8_bin ) ;\n if ( dont_read_acl_tables ) {\n DBUG_RETURN ( 0 ) ;\n }\n if ( ! ( thd = new THD ) ) DBUG_RETURN ( 1 ) ;\n thd -> thread_stack = ( char * ) & thd ;\n thd -> store_globals ( ) ;\n lex_start ( thd ) ;\n return_val = acl_reload ( thd ) ;\n delete thd ;\n my_pthread_setspecific_ptr ( THR_THD , 0 ) ;\n DBUG_RETURN ( return_val ) ;\n }"}
{"idx": 18503, "target": 1, "func": "void vp9_set_rd_speed_thresholds_sub8x8 ( VP9_COMP * cpi ) {\n const SPEED_FEATURES * const sf = & cpi -> sf ;\n RD_OPT * const rd = & cpi -> rd ;\n int i ;\n for ( i = 0 ;\n i < MAX_REFS ;\n ++ i ) rd -> thresh_mult_sub8x8 [ i ] = cpi -> oxcf . mode == BEST ? - 500 : 0 ;\n rd -> thresh_mult_sub8x8 [ THR_LAST ] += 2500 ;\n rd -> thresh_mult_sub8x8 [ THR_GOLD ] += 2500 ;\n rd -> thresh_mult_sub8x8 [ THR_ALTR ] += 2500 ;\n rd -> thresh_mult_sub8x8 [ THR_INTRA ] += 2500 ;\n rd -> thresh_mult_sub8x8 [ THR_COMP_LA ] += 4500 ;\n rd -> thresh_mult_sub8x8 [ THR_COMP_GA ] += 4500 ;\n for ( i = 0 ;\n i < MAX_REFS ;\n ++ i ) if ( sf -> disable_split_mask & ( 1 << i ) ) rd -> thresh_mult_sub8x8 [ i ] = INT_MAX ;\n if ( ! ( cpi -> ref_frame_flags & VP9_LAST_FLAG ) ) rd -> thresh_mult_sub8x8 [ THR_LAST ] = INT_MAX ;\n if ( ! ( cpi -> ref_frame_flags & VP9_GOLD_FLAG ) ) rd -> thresh_mult_sub8x8 [ THR_GOLD ] = INT_MAX ;\n if ( ! ( cpi -> ref_frame_flags & VP9_ALT_FLAG ) ) rd -> thresh_mult_sub8x8 [ THR_ALTR ] = INT_MAX ;\n if ( ( cpi -> ref_frame_flags & ( VP9_LAST_FLAG | VP9_ALT_FLAG ) ) != ( VP9_LAST_FLAG | VP9_ALT_FLAG ) ) rd -> thresh_mult_sub8x8 [ THR_COMP_LA ] = INT_MAX ;\n if ( ( cpi -> ref_frame_flags & ( VP9_GOLD_FLAG | VP9_ALT_FLAG ) ) != ( VP9_GOLD_FLAG | VP9_ALT_FLAG ) ) rd -> thresh_mult_sub8x8 [ THR_COMP_GA ] = INT_MAX ;\n }"}
{"idx": 18504, "target": 0, "func": "static void release_context ( compress_filter_context_t * ctx ) {\n xfree ( ctx ) ;\n }"}
{"idx": 18505, "target": 0, "func": "int PEM_write_ ## name ( FILE * fp , type * x ) ;\n # define DECLARE_PEM_write_fp_const ( name , type ) int PEM_write_ ## name ( FILE * fp , const type * x ) ;\n # define DECLARE_PEM_write_cb_fp ( name , type ) int PEM_write_ ## name ( FILE * fp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # endif # define DECLARE_PEM_read_bio ( name , type ) type * PEM_read_bio_ ## name ( BIO * bp , type * * x , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL ) DECLARE_PEM_rw ( PKCS7 , PKCS7 )"}
{"idx": 18506, "target": 1, "func": "static void _CompoundText_GetUnicodeSet ( const UConverter * cnv , const USetAdder * sa , UConverterUnicodeSet which , UErrorCode * pErrorCode ) {\n UConverterDataCompoundText * myConverterData = ( UConverterDataCompoundText * ) cnv -> extraInfo ;\n int32_t i ;\n for ( i = 1 ;\n i < NUM_OF_CONVERTERS ;\n i ++ ) {\n ucnv_MBCSGetUnicodeSetForUnicode ( myConverterData -> myConverterArray [ i ] , sa , which , pErrorCode ) ;\n }\n sa -> add ( sa -> set , 0x0000 ) ;\n sa -> add ( sa -> set , 0x0009 ) ;\n sa -> add ( sa -> set , 0x000A ) ;\n sa -> addRange ( sa -> set , 0x0020 , 0x007F ) ;\n sa -> addRange ( sa -> set , 0x00A0 , 0x00FF ) ;\n }"}
{"idx": 18507, "target": 0, "func": "static void fail ( const char * format , ... ) {\n va_list arg_ptr ;\n fflush ( stdout ) ;\n fprintf ( stderr , \"%s: \" , PGM ) ;\n if ( wherestr ) fprintf ( stderr , \"%s: \" , wherestr ) ;\n va_start ( arg_ptr , format ) ;\n vfprintf ( stderr , format , arg_ptr ) ;\n va_end ( arg_ptr ) ;\n error_count ++ ;\n }"}
{"idx": 18508, "target": 1, "func": "int MDC2_Update ( MDC2_CTX * c , const unsigned char * in , size_t len ) {\n size_t i , j ;\n i = c -> num ;\n if ( i != 0 ) {\n if ( i + len < MDC2_BLOCK ) {\n memcpy ( & ( c -> data [ i ] ) , in , len ) ;\n c -> num += ( int ) len ;\n return 1 ;\n }\n else {\n j = MDC2_BLOCK - i ;\n memcpy ( & ( c -> data [ i ] ) , in , j ) ;\n len -= j ;\n in += j ;\n c -> num = 0 ;\n mdc2_body ( c , & ( c -> data [ 0 ] ) , MDC2_BLOCK ) ;\n }\n }\n i = len & ~ ( ( size_t ) MDC2_BLOCK - 1 ) ;\n if ( i > 0 ) mdc2_body ( c , in , i ) ;\n j = len - i ;\n if ( j > 0 ) {\n memcpy ( & ( c -> data [ 0 ] ) , & ( in [ i ] ) , j ) ;\n c -> num = ( int ) j ;\n }\n return 1 ;\n }"}
{"idx": 18509, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize ) ;\n DECL_PIOCTL ( PGetCacheSize ) ;\n DECL_PIOCTL ( PRemoveCallBack ) ;\n DECL_PIOCTL ( PNewCell ) ;\n DECL_PIOCTL ( PNewAlias ) ;\n DECL_PIOCTL ( PListCells ) ;\n DECL_PIOCTL ( PListAliases ) ;\n DECL_PIOCTL ( PRemoveMount ) ;\n DECL_PIOCTL ( PGetCellStatus ) ;\n DECL_PIOCTL ( PSetCellStatus ) ;\n DECL_PIOCTL ( PFlushVolumeData ) ;\n DECL_PIOCTL ( PFlushAllVolumeData ) ;\n DECL_PIOCTL ( PGetVnodeXStatus ) ;\n DECL_PIOCTL ( PGetVnodeXStatus2 ) ;\n DECL_PIOCTL ( PSetSysName ) ;\n DECL_PIOCTL ( PSetSPrefs ) ;\n DECL_PIOCTL ( PSetSPrefs33 ) ;\n DECL_PIOCTL ( PGetSPrefs ) ;\n DECL_PIOCTL ( PExportAfs ) ;\n DECL_PIOCTL ( PGag ) ;\n DECL_PIOCTL ( PTwiddleRx ) ;\n DECL_PIOCTL ( PGetInitParams ) ;\n DECL_PIOCTL ( PGetRxkcrypt ) ;\n DECL_PIOCTL ( PSetRxkcrypt ) ;\n DECL_PIOCTL ( PGetCPrefs ) ;\n DECL_PIOCTL ( PSetCPrefs ) ;\n DECL_PIOCTL ( PFlushMount ) ;\n DECL_PIOCTL ( PRxStatProc ) ;\n DECL_PIOCTL ( PRxStatPeer ) ;\n DECL_PIOCTL ( PPrefetchFromTape ) ;\n DECL_PIOCTL ( PFsCmd ) ;\n DECL_PIOCTL ( PCallBackAddr ) ;\n DECL_PIOCTL ( PDiscon ) ;\n DECL_PIOCTL ( PNFSNukeCreds ) ;\n DECL_PIOCTL ( PNewUuid )"}
{"idx": 18510, "target": 0, "func": "CYCLIC_REFRESH * vp9_cyclic_refresh_alloc ( int mi_rows , int mi_cols ) {\n CYCLIC_REFRESH * const cr = vpx_calloc ( 1 , sizeof ( * cr ) ) ;\n if ( cr == NULL ) return NULL ;\n cr -> map = vpx_calloc ( mi_rows * mi_cols , sizeof ( * cr -> map ) ) ;\n if ( cr -> map == NULL ) {\n vpx_free ( cr ) ;\n return NULL ;\n }\n return cr ;\n }"}
{"idx": 18511, "target": 0, "func": "static int socket_sockcreate_sid ( const struct task_security_struct * tsec , u16 secclass , u32 * socksid ) {\n if ( tsec -> sockcreate_sid > SECSID_NULL ) {\n * socksid = tsec -> sockcreate_sid ;\n return 0 ;\n }\n return security_transition_sid ( tsec -> sid , tsec -> sid , secclass , NULL , socksid ) ;\n }"}
{"idx": 18512, "target": 0, "func": "static int collector_strimwidth ( int c , void * data ) {\n struct collector_strimwidth_data * pc = ( struct collector_strimwidth_data * ) data ;\n switch ( pc -> status ) {\n case 10 : ( * pc -> decoder -> filter_function ) ( c , pc -> decoder ) ;\n break ;\n default : if ( pc -> outchar >= pc -> from ) {\n pc -> outwidth += ( is_fullwidth ( c ) ? 2 : 1 ) ;\n if ( pc -> outwidth > pc -> width ) {\n if ( pc -> status == 0 ) {\n pc -> endpos = pc -> device . pos ;\n mbfl_convert_filter_copy ( pc -> decoder , pc -> decoder_backup ) ;\n }\n pc -> status ++ ;\n ( * pc -> decoder -> filter_function ) ( c , pc -> decoder ) ;\n c = - 1 ;\n }\n else {\n ( * pc -> decoder -> filter_function ) ( c , pc -> decoder ) ;\n }\n }\n pc -> outchar ++ ;\n break ;\n }\n return c ;\n }"}
{"idx": 18513, "target": 0, "func": "static int qemuMonitorJSONExtractCPUInfo ( virJSONValuePtr reply , int * * pids ) {\n virJSONValuePtr data ;\n int ret = - 1 ;\n int i ;\n int * threads = NULL ;\n int ncpus ;\n if ( ! ( data = virJSONValueObjectGet ( reply , \"return\" ) ) ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"cpu reply was missing return data\" ) ) ;\n goto cleanup ;\n }\n if ( data -> type != VIR_JSON_TYPE_ARRAY ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"cpu information was not an array\" ) ) ;\n goto cleanup ;\n }\n if ( ( ncpus = virJSONValueArraySize ( data ) ) <= 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"cpu information was empty\" ) ) ;\n goto cleanup ;\n }\n if ( VIR_REALLOC_N ( threads , ncpus ) < 0 ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n for ( i = 0 ;\n i < ncpus ;\n i ++ ) {\n virJSONValuePtr entry = virJSONValueArrayGet ( data , i ) ;\n int cpu ;\n int thread ;\n if ( ! entry ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"character device information was missing array element\" ) ) ;\n goto cleanup ;\n }\n if ( virJSONValueObjectGetNumberInt ( entry , \"CPU\" , & cpu ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"cpu information was missing cpu number\" ) ) ;\n goto cleanup ;\n }\n if ( virJSONValueObjectGetNumberInt ( entry , \"thread_id\" , & thread ) < 0 ) {\n ret = 0 ;\n goto cleanup ;\n }\n if ( cpu != i ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"unexpected cpu index %d expecting %d\" ) , i , cpu ) ;\n goto cleanup ;\n }\n threads [ i ] = thread ;\n }\n * pids = threads ;\n threads = NULL ;\n ret = ncpus ;\n cleanup : VIR_FREE ( threads ) ;\n return ret ;\n }"}
{"idx": 18514, "target": 0, "func": "static spl_ptr_llist_element * spl_ptr_llist_offset ( spl_ptr_llist * llist , long offset , int backward ) {\n spl_ptr_llist_element * current ;\n int pos = 0 ;\n if ( backward ) {\n current = llist -> tail ;\n }\n else {\n current = llist -> head ;\n }\n while ( current && pos < offset ) {\n pos ++ ;\n if ( backward ) {\n current = current -> prev ;\n }\n else {\n current = current -> next ;\n }\n }\n return current ;\n }"}
{"idx": 18515, "target": 0, "func": "struct archive_wstring * archive_wstring_ensure ( struct archive_wstring * as , size_t s ) {\n return ( struct archive_wstring * ) archive_string_ensure ( ( struct archive_string * ) as , s * sizeof ( wchar_t ) ) ;\n }"}
{"idx": 18516, "target": 0, "func": "static bfd_boolean srec_scan ( bfd * abfd ) {\n int c ;\n unsigned int lineno = 1 ;\n bfd_boolean error = FALSE ;\n bfd_byte * buf = NULL ;\n size_t bufsize = 0 ;\n asection * sec = NULL ;\n char * symbuf = NULL ;\n if ( bfd_seek ( abfd , ( file_ptr ) 0 , SEEK_SET ) != 0 ) goto error_return ;\n while ( ( c = srec_get_byte ( abfd , & error ) ) != EOF ) {\n if ( c != 'S' && c != '\\r' && c != '\\n' ) sec = NULL ;\n switch ( c ) {\n default : srec_bad_byte ( abfd , lineno , c , error ) ;\n goto error_return ;\n case '\\n' : ++ lineno ;\n break ;\n case '\\r' : break ;\n case '$' : while ( ( c = srec_get_byte ( abfd , & error ) ) != '\\n' && c != EOF ) ;\n if ( c == EOF ) {\n srec_bad_byte ( abfd , lineno , c , error ) ;\n goto error_return ;\n }\n ++ lineno ;\n break ;\n case ' ' : do {\n bfd_size_type alc ;\n char * p , * symname ;\n bfd_vma symval ;\n while ( ( c = srec_get_byte ( abfd , & error ) ) != EOF && ( c == ' ' || c == '\\t' ) ) ;\n if ( c == '\\n' || c == '\\r' ) break ;\n if ( c == EOF ) {\n srec_bad_byte ( abfd , lineno , c , error ) ;\n goto error_return ;\n }\n alc = 10 ;\n symbuf = ( char * ) bfd_malloc ( alc + 1 ) ;\n if ( symbuf == NULL ) goto error_return ;\n p = symbuf ;\n * p ++ = c ;\n while ( ( c = srec_get_byte ( abfd , & error ) ) != EOF && ! ISSPACE ( c ) ) {\n if ( ( bfd_size_type ) ( p - symbuf ) >= alc ) {\n char * n ;\n alc *= 2 ;\n n = ( char * ) bfd_realloc ( symbuf , alc + 1 ) ;\n if ( n == NULL ) goto error_return ;\n p = n + ( p - symbuf ) ;\n symbuf = n ;\n }\n * p ++ = c ;\n }\n if ( c == EOF ) {\n srec_bad_byte ( abfd , lineno , c , error ) ;\n goto error_return ;\n }\n * p ++ = '\\0' ;\n symname = ( char * ) bfd_alloc ( abfd , ( bfd_size_type ) ( p - symbuf ) ) ;\n if ( symname == NULL ) goto error_return ;\n strcpy ( symname , symbuf ) ;\n free ( symbuf ) ;\n symbuf = NULL ;\n while ( ( c = srec_get_byte ( abfd , & error ) ) != EOF && ( c == ' ' || c == '\\t' ) ) ;\n if ( c == EOF ) {\n srec_bad_byte ( abfd , lineno , c , error ) ;\n goto error_return ;\n }\n if ( c == '$' ) {\n c = srec_get_byte ( abfd , & error ) ;\n if ( c == EOF ) {\n srec_bad_byte ( abfd , lineno , c , error ) ;\n goto error_return ;\n }\n }\n symval = 0 ;\n while ( ISHEX ( c ) ) {\n symval <<= 4 ;\n symval += NIBBLE ( c ) ;\n c = srec_get_byte ( abfd , & error ) ;\n if ( c == EOF ) {\n srec_bad_byte ( abfd , lineno , c , error ) ;\n goto error_return ;\n }\n }\n if ( ! srec_new_symbol ( abfd , symname , symval ) ) goto error_return ;\n }\n while ( c == ' ' || c == '\\t' ) ;\n if ( c == '\\n' ) ++ lineno ;\n else if ( c != '\\r' ) {\n srec_bad_byte ( abfd , lineno , c , error ) ;\n goto error_return ;\n }\n break ;\n case 'S' : {\n file_ptr pos ;\n char hdr [ 3 ] ;\n unsigned int bytes , min_bytes ;\n bfd_vma address ;\n bfd_byte * data ;\n unsigned char check_sum ;\n pos = bfd_tell ( abfd ) - 1 ;\n if ( bfd_bread ( hdr , ( bfd_size_type ) 3 , abfd ) != 3 ) goto error_return ;\n if ( ! ISHEX ( hdr [ 1 ] ) || ! ISHEX ( hdr [ 2 ] ) ) {\n if ( ! ISHEX ( hdr [ 1 ] ) ) c = hdr [ 1 ] ;\n else c = hdr [ 2 ] ;\n srec_bad_byte ( abfd , lineno , c , error ) ;\n goto error_return ;\n }\n check_sum = bytes = HEX ( hdr + 1 ) ;\n min_bytes = 3 ;\n if ( hdr [ 0 ] == '2' || hdr [ 0 ] == '8' ) min_bytes = 4 ;\n else if ( hdr [ 0 ] == '3' || hdr [ 0 ] == '7' ) min_bytes = 5 ;\n if ( bytes < min_bytes ) {\n ( * _bfd_error_handler ) ( _ ( \"%B:%d: byte count %d too small\\n\" ) , abfd , lineno , bytes ) ;\n bfd_set_error ( bfd_error_bad_value ) ;\n goto error_return ;\n }\n if ( bytes * 2 > bufsize ) {\n if ( buf != NULL ) free ( buf ) ;\n buf = ( bfd_byte * ) bfd_malloc ( ( bfd_size_type ) bytes * 2 ) ;\n if ( buf == NULL ) goto error_return ;\n bufsize = bytes * 2 ;\n }\n if ( bfd_bread ( buf , ( bfd_size_type ) bytes * 2 , abfd ) != bytes * 2 ) goto error_return ;\n -- bytes ;\n address = 0 ;\n data = buf ;\n switch ( hdr [ 0 ] ) {\n case '0' : case '5' : sec = NULL ;\n break ;\n case '3' : check_sum += HEX ( data ) ;\n address = HEX ( data ) ;\n data += 2 ;\n -- bytes ;\n case '2' : check_sum += HEX ( data ) ;\n address = ( address << 8 ) | HEX ( data ) ;\n data += 2 ;\n -- bytes ;\n case '1' : check_sum += HEX ( data ) ;\n address = ( address << 8 ) | HEX ( data ) ;\n data += 2 ;\n check_sum += HEX ( data ) ;\n address = ( address << 8 ) | HEX ( data ) ;\n data += 2 ;\n bytes -= 2 ;\n if ( sec != NULL && sec -> vma + sec -> size == address ) {\n sec -> size += bytes ;\n }\n else {\n char secbuf [ 20 ] ;\n char * secname ;\n bfd_size_type amt ;\n flagword flags ;\n sprintf ( secbuf , \".sec%d\" , bfd_count_sections ( abfd ) + 1 ) ;\n amt = strlen ( secbuf ) + 1 ;\n secname = ( char * ) bfd_alloc ( abfd , amt ) ;\n strcpy ( secname , secbuf ) ;\n flags = SEC_HAS_CONTENTS | SEC_LOAD | SEC_ALLOC ;\n sec = bfd_make_section_with_flags ( abfd , secname , flags ) ;\n if ( sec == NULL ) goto error_return ;\n sec -> vma = address ;\n sec -> lma = address ;\n sec -> size = bytes ;\n sec -> filepos = pos ;\n }\n while ( bytes > 0 ) {\n check_sum += HEX ( data ) ;\n data += 2 ;\n bytes -- ;\n }\n check_sum = 255 - ( check_sum & 0xff ) ;\n if ( check_sum != HEX ( data ) ) {\n ( * _bfd_error_handler ) ( _ ( \"%B:%d: Bad checksum in S-record file\\n\" ) , abfd , lineno ) ;\n bfd_set_error ( bfd_error_bad_value ) ;\n goto error_return ;\n }\n break ;\n case '7' : check_sum += HEX ( data ) ;\n address = HEX ( data ) ;\n data += 2 ;\n case '8' : check_sum += HEX ( data ) ;\n address = ( address << 8 ) | HEX ( data ) ;\n data += 2 ;\n case '9' : check_sum += HEX ( data ) ;\n address = ( address << 8 ) | HEX ( data ) ;\n data += 2 ;\n check_sum += HEX ( data ) ;\n address = ( address << 8 ) | HEX ( data ) ;\n data += 2 ;\n abfd -> start_address = address ;\n check_sum = 255 - ( check_sum & 0xff ) ;\n if ( check_sum != HEX ( data ) ) {\n ( * _bfd_error_handler ) ( _ ( \"%B:%d: Bad checksum in S-record file\\n\" ) , abfd , lineno ) ;\n bfd_set_error ( bfd_error_bad_value ) ;\n goto error_return ;\n }\n if ( buf != NULL ) free ( buf ) ;\n return TRUE ;\n }\n }\n break ;\n }\n }\n if ( error ) goto error_return ;\n if ( buf != NULL ) free ( buf ) ;\n return TRUE ;\n error_return : if ( symbuf != NULL ) free ( symbuf ) ;\n if ( buf != NULL ) free ( buf ) ;\n return FALSE ;\n }"}
{"idx": 18517, "target": 0, "func": "static void test_show_commit ( struct commit * commit , void * data ) {\n struct bitmap_test_data * tdata = data ;\n int bitmap_pos ;\n bitmap_pos = bitmap_position ( commit -> object . oid . hash ) ;\n if ( bitmap_pos < 0 ) die ( \"Object not in bitmap: %s\\n\" , oid_to_hex ( & commit -> object . oid ) ) ;\n bitmap_set ( tdata -> base , bitmap_pos ) ;\n display_progress ( tdata -> prg , ++ tdata -> seen ) ;\n }"}
{"idx": 18518, "target": 0, "func": "static void fadst16 ( const tran_low_t * input , tran_low_t * output ) {\n tran_high_t s0 , s1 , s2 , s3 , s4 , s5 , s6 , s7 , s8 ;\n tran_high_t s9 , s10 , s11 , s12 , s13 , s14 , s15 ;\n tran_high_t x0 = input [ 15 ] ;\n tran_high_t x1 = input [ 0 ] ;\n tran_high_t x2 = input [ 13 ] ;\n tran_high_t x3 = input [ 2 ] ;\n tran_high_t x4 = input [ 11 ] ;\n tran_high_t x5 = input [ 4 ] ;\n tran_high_t x6 = input [ 9 ] ;\n tran_high_t x7 = input [ 6 ] ;\n tran_high_t x8 = input [ 7 ] ;\n tran_high_t x9 = input [ 8 ] ;\n tran_high_t x10 = input [ 5 ] ;\n tran_high_t x11 = input [ 10 ] ;\n tran_high_t x12 = input [ 3 ] ;\n tran_high_t x13 = input [ 12 ] ;\n tran_high_t x14 = input [ 1 ] ;\n tran_high_t x15 = input [ 14 ] ;\n s0 = x0 * cospi_1_64 + x1 * cospi_31_64 ;\n s1 = x0 * cospi_31_64 - x1 * cospi_1_64 ;\n s2 = x2 * cospi_5_64 + x3 * cospi_27_64 ;\n s3 = x2 * cospi_27_64 - x3 * cospi_5_64 ;\n s4 = x4 * cospi_9_64 + x5 * cospi_23_64 ;\n s5 = x4 * cospi_23_64 - x5 * cospi_9_64 ;\n s6 = x6 * cospi_13_64 + x7 * cospi_19_64 ;\n s7 = x6 * cospi_19_64 - x7 * cospi_13_64 ;\n s8 = x8 * cospi_17_64 + x9 * cospi_15_64 ;\n s9 = x8 * cospi_15_64 - x9 * cospi_17_64 ;\n s10 = x10 * cospi_21_64 + x11 * cospi_11_64 ;\n s11 = x10 * cospi_11_64 - x11 * cospi_21_64 ;\n s12 = x12 * cospi_25_64 + x13 * cospi_7_64 ;\n s13 = x12 * cospi_7_64 - x13 * cospi_25_64 ;\n s14 = x14 * cospi_29_64 + x15 * cospi_3_64 ;\n s15 = x14 * cospi_3_64 - x15 * cospi_29_64 ;\n x0 = fdct_round_shift ( s0 + s8 ) ;\n x1 = fdct_round_shift ( s1 + s9 ) ;\n x2 = fdct_round_shift ( s2 + s10 ) ;\n x3 = fdct_round_shift ( s3 + s11 ) ;\n x4 = fdct_round_shift ( s4 + s12 ) ;\n x5 = fdct_round_shift ( s5 + s13 ) ;\n x6 = fdct_round_shift ( s6 + s14 ) ;\n x7 = fdct_round_shift ( s7 + s15 ) ;\n x8 = fdct_round_shift ( s0 - s8 ) ;\n x9 = fdct_round_shift ( s1 - s9 ) ;\n x10 = fdct_round_shift ( s2 - s10 ) ;\n x11 = fdct_round_shift ( s3 - s11 ) ;\n x12 = fdct_round_shift ( s4 - s12 ) ;\n x13 = fdct_round_shift ( s5 - s13 ) ;\n x14 = fdct_round_shift ( s6 - s14 ) ;\n x15 = fdct_round_shift ( s7 - s15 ) ;\n s0 = x0 ;\n s1 = x1 ;\n s2 = x2 ;\n s3 = x3 ;\n s4 = x4 ;\n s5 = x5 ;\n s6 = x6 ;\n s7 = x7 ;\n s8 = x8 * cospi_4_64 + x9 * cospi_28_64 ;\n s9 = x8 * cospi_28_64 - x9 * cospi_4_64 ;\n s10 = x10 * cospi_20_64 + x11 * cospi_12_64 ;\n s11 = x10 * cospi_12_64 - x11 * cospi_20_64 ;\n s12 = - x12 * cospi_28_64 + x13 * cospi_4_64 ;\n s13 = x12 * cospi_4_64 + x13 * cospi_28_64 ;\n s14 = - x14 * cospi_12_64 + x15 * cospi_20_64 ;\n s15 = x14 * cospi_20_64 + x15 * cospi_12_64 ;\n x0 = s0 + s4 ;\n x1 = s1 + s5 ;\n x2 = s2 + s6 ;\n x3 = s3 + s7 ;\n x4 = s0 - s4 ;\n x5 = s1 - s5 ;\n x6 = s2 - s6 ;\n x7 = s3 - s7 ;\n x8 = fdct_round_shift ( s8 + s12 ) ;\n x9 = fdct_round_shift ( s9 + s13 ) ;\n x10 = fdct_round_shift ( s10 + s14 ) ;\n x11 = fdct_round_shift ( s11 + s15 ) ;\n x12 = fdct_round_shift ( s8 - s12 ) ;\n x13 = fdct_round_shift ( s9 - s13 ) ;\n x14 = fdct_round_shift ( s10 - s14 ) ;\n x15 = fdct_round_shift ( s11 - s15 ) ;\n s0 = x0 ;\n s1 = x1 ;\n s2 = x2 ;\n s3 = x3 ;\n s4 = x4 * cospi_8_64 + x5 * cospi_24_64 ;\n s5 = x4 * cospi_24_64 - x5 * cospi_8_64 ;\n s6 = - x6 * cospi_24_64 + x7 * cospi_8_64 ;\n s7 = x6 * cospi_8_64 + x7 * cospi_24_64 ;\n s8 = x8 ;\n s9 = x9 ;\n s10 = x10 ;\n s11 = x11 ;\n s12 = x12 * cospi_8_64 + x13 * cospi_24_64 ;\n s13 = x12 * cospi_24_64 - x13 * cospi_8_64 ;\n s14 = - x14 * cospi_24_64 + x15 * cospi_8_64 ;\n s15 = x14 * cospi_8_64 + x15 * cospi_24_64 ;\n x0 = s0 + s2 ;\n x1 = s1 + s3 ;\n x2 = s0 - s2 ;\n x3 = s1 - s3 ;\n x4 = fdct_round_shift ( s4 + s6 ) ;\n x5 = fdct_round_shift ( s5 + s7 ) ;\n x6 = fdct_round_shift ( s4 - s6 ) ;\n x7 = fdct_round_shift ( s5 - s7 ) ;\n x8 = s8 + s10 ;\n x9 = s9 + s11 ;\n x10 = s8 - s10 ;\n x11 = s9 - s11 ;\n x12 = fdct_round_shift ( s12 + s14 ) ;\n x13 = fdct_round_shift ( s13 + s15 ) ;\n x14 = fdct_round_shift ( s12 - s14 ) ;\n x15 = fdct_round_shift ( s13 - s15 ) ;\n s2 = ( - cospi_16_64 ) * ( x2 + x3 ) ;\n s3 = cospi_16_64 * ( x2 - x3 ) ;\n s6 = cospi_16_64 * ( x6 + x7 ) ;\n s7 = cospi_16_64 * ( - x6 + x7 ) ;\n s10 = cospi_16_64 * ( x10 + x11 ) ;\n s11 = cospi_16_64 * ( - x10 + x11 ) ;\n s14 = ( - cospi_16_64 ) * ( x14 + x15 ) ;\n s15 = cospi_16_64 * ( x14 - x15 ) ;\n x2 = fdct_round_shift ( s2 ) ;\n x3 = fdct_round_shift ( s3 ) ;\n x6 = fdct_round_shift ( s6 ) ;\n x7 = fdct_round_shift ( s7 ) ;\n x10 = fdct_round_shift ( s10 ) ;\n x11 = fdct_round_shift ( s11 ) ;\n x14 = fdct_round_shift ( s14 ) ;\n x15 = fdct_round_shift ( s15 ) ;\n output [ 0 ] = x0 ;\n output [ 1 ] = - x8 ;\n output [ 2 ] = x12 ;\n output [ 3 ] = - x4 ;\n output [ 4 ] = x6 ;\n output [ 5 ] = x14 ;\n output [ 6 ] = x10 ;\n output [ 7 ] = x2 ;\n output [ 8 ] = x3 ;\n output [ 9 ] = x11 ;\n output [ 10 ] = x15 ;\n output [ 11 ] = x7 ;\n output [ 12 ] = x5 ;\n output [ 13 ] = - x13 ;\n output [ 14 ] = x9 ;\n output [ 15 ] = - x1 ;\n }"}
{"idx": 18519, "target": 0, "func": "Oid get_transform_tosql ( Oid typid , Oid langid , List * trftypes ) {\n HeapTuple tup ;\n if ( ! list_member_oid ( trftypes , typid ) ) return InvalidOid ;\n tup = SearchSysCache2 ( TRFTYPELANG , typid , langid ) ;\n if ( HeapTupleIsValid ( tup ) ) {\n Oid funcid ;\n funcid = ( ( Form_pg_transform ) GETSTRUCT ( tup ) ) -> trftosql ;\n ReleaseSysCache ( tup ) ;\n return funcid ;\n }\n else return InvalidOid ;\n }"}
{"idx": 18520, "target": 0, "func": "static ulmbcs_byte_t FindLMBCSLocale ( const char * LocaleID ) {\n const struct _LocaleLMBCSGrpMap * pTable = LocaleLMBCSGrpMap ;\n if ( ( ! LocaleID ) || ( ! * LocaleID ) ) {\n return 0 ;\n }\n while ( pTable -> LocaleID ) {\n if ( * pTable -> LocaleID == * LocaleID ) {\n if ( uprv_strncmp ( pTable -> LocaleID , LocaleID , strlen ( pTable -> LocaleID ) ) == 0 ) return pTable -> OptGroup ;\n }\n else if ( * pTable -> LocaleID > * LocaleID ) break ;\n pTable ++ ;\n }\n return ULMBCS_GRP_L1 ;\n }"}
{"idx": 18521, "target": 0, "func": "static int dissect_h245_SET_SIZE_1_65535_OF_CapabilityTableEntryNumber ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_set_of ( tvb , offset , actx , tree , hf_index , ett_h245_SET_SIZE_1_65535_OF_CapabilityTableEntryNumber , SET_SIZE_1_65535_OF_CapabilityTableEntryNumber_set_of , 1 , 65535 , FALSE ) ;\n return offset ;\n }"}
{"idx": 18522, "target": 0, "func": "SPL_METHOD ( SplFileInfo , func_name ) \\ {\n \\ spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n \\ zend_error_handling error_handling ;\n \\ if ( zend_parse_parameters_none ( ) == FAILURE ) {\n \\ return ;\n \\ }\n \\ \\ zend_replace_error_handling ( EH_THROW , spl_ce_RuntimeException , & error_handling TSRMLS_CC ) ;\n \\ spl_filesystem_object_get_file_name ( intern TSRMLS_CC ) ;\n \\ php_stat ( intern -> file_name , intern -> file_name_len , func_num , return_value TSRMLS_CC ) ;\n \\ zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n \\ }\n FileInfoFunction ( getPerms , FS_PERMS ) FileInfoFunction ( getInode , FS_INODE )"}
{"idx": 18523, "target": 0, "func": "static void test_long_data_str1 ( ) {\n MYSQL_STMT * stmt ;\n int rc , i ;\n char data [ 255 ] ;\n long length ;\n ulong max_blob_length , blob_length , length1 ;\n my_bool true_value ;\n MYSQL_RES * result ;\n MYSQL_BIND my_bind [ 2 ] ;\n MYSQL_FIELD * field ;\n char query [ MAX_TEST_QUERY_LENGTH ] ;\n myheader ( \"test_long_data_str1\" ) ;\n rc = mysql_autocommit ( mysql , TRUE ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_long_data_str\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_long_data_str(longstr long varchar, blb long varbinary)\" ) ;\n myquery ( rc ) ;\n strmov ( query , \"INSERT INTO test_long_data_str VALUES(?, ?)\" ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 2 ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer = data ;\n my_bind [ 0 ] . buffer_length = sizeof ( data ) ;\n my_bind [ 0 ] . length = & length1 ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n length1 = 0 ;\n my_bind [ 1 ] = my_bind [ 0 ] ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_BLOB ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n length = sprintf ( data , \"MySQL AB\" ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n rc = mysql_stmt_send_long_data ( stmt , 0 , data , length ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_send_long_data ( stmt , 1 , data , 2 ) ;\n check_execute ( stmt , rc ) ;\n }\n rc = mysql_stmt_execute ( stmt ) ;\n if ( ! opt_silent ) fprintf ( stdout , \" mysql_stmt_execute() returned %d\\n\" , rc ) ;\n check_execute ( stmt , rc ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"SELECT LENGTH(longstr), longstr, LENGTH(blb), blb FROM test_long_data_str\" ) ;\n myquery ( rc ) ;\n result = mysql_store_result ( mysql ) ;\n mysql_field_seek ( result , 1 ) ;\n field = mysql_fetch_field ( result ) ;\n max_blob_length = field -> max_length ;\n mytest ( result ) ;\n rc = my_process_result_set ( result ) ;\n DIE_UNLESS ( rc == 1 ) ;\n mysql_free_result ( result ) ;\n sprintf ( data , \"%ld\" , ( long ) i * length ) ;\n verify_col_data ( \"test_long_data_str\" , \"length(longstr)\" , data ) ;\n sprintf ( data , \"%d\" , i * 2 ) ;\n verify_col_data ( \"test_long_data_str\" , \"length(blb)\" , data ) ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT * from test_long_data_str\" ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 0 ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_store_result ( stmt ) ;\n check_execute ( stmt , rc ) ;\n result = mysql_stmt_result_metadata ( stmt ) ;\n field = mysql_fetch_fields ( result ) ;\n DIE_UNLESS ( field -> max_length == 0 ) ;\n mysql_free_result ( result ) ;\n true_value = 1 ;\n mysql_stmt_attr_set ( stmt , STMT_ATTR_UPDATE_MAX_LENGTH , ( void * ) & true_value ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_store_result ( stmt ) ;\n check_execute ( stmt , rc ) ;\n result = mysql_stmt_result_metadata ( stmt ) ;\n field = mysql_fetch_fields ( result ) ;\n DIE_UNLESS ( field -> max_length == max_blob_length ) ;\n memset ( my_bind , 0 , sizeof ( * my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_BLOB ;\n my_bind [ 0 ] . buffer = ( void * ) & data ;\n my_bind [ 0 ] . buffer_length = 16 ;\n my_bind [ 0 ] . length = & blob_length ;\n my_bind [ 0 ] . error = & my_bind [ 0 ] . error_value ;\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n data [ 16 ] = 0 ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_DATA_TRUNCATED ) ;\n DIE_UNLESS ( my_bind [ 0 ] . error_value ) ;\n DIE_UNLESS ( strlen ( data ) == 16 ) ;\n DIE_UNLESS ( blob_length == max_blob_length ) ;\n memset ( ( my_bind + 1 ) , 0 , sizeof ( * my_bind ) ) ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_BLOB ;\n my_bind [ 1 ] . buffer = ( void * ) & data ;\n my_bind [ 1 ] . buffer_length = sizeof ( data ) ;\n my_bind [ 1 ] . length = & blob_length ;\n memset ( data , 0 , sizeof ( data ) ) ;\n mysql_stmt_fetch_column ( stmt , my_bind + 1 , 0 , 0 ) ;\n DIE_UNLESS ( strlen ( data ) == max_blob_length ) ;\n mysql_free_result ( result ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"DROP TABLE test_long_data_str\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 18524, "target": 0, "func": "void main_file_cleanup ( main_file * xfile ) {\n XD3_ASSERT ( xfile != NULL ) ;\n if ( main_file_isopen ( xfile ) ) {\n main_file_close ( xfile ) ;\n }\n if ( xfile -> snprintf_buf != NULL ) {\n main_free ( xfile -> snprintf_buf ) ;\n xfile -> snprintf_buf = NULL ;\n }\n if ( xfile -> filename_copy != NULL ) {\n main_free ( xfile -> filename_copy ) ;\n xfile -> filename_copy = NULL ;\n }\n }"}
{"idx": 18525, "target": 0, "func": "int strescape ( char * dst , char * src , size_t len ) {\n char * olddst = dst ;\n char * oldsrc = src ;\n int c ;\n int val ;\n while ( ( c = * src ++ ) != '\\0' && ( size_t ) ( src - oldsrc ) <= len ) {\n if ( c == '\\\\' ) {\n switch ( ( c = * src ++ ) ) {\n case '\\0' : goto strend ;\n default : * dst ++ = ( char ) c ;\n break ;\n case 'n' : * dst ++ = '\\n' ;\n break ;\n case 'r' : * dst ++ = '\\r' ;\n break ;\n case 'b' : * dst ++ = '\\b' ;\n break ;\n case 't' : * dst ++ = '\\t' ;\n break ;\n case 'f' : * dst ++ = '\\f' ;\n break ;\n case 'v' : * dst ++ = '\\v' ;\n break ;\n case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : val = c - '0' ;\n c = * src ++ ;\n if ( c >= '0' && c <= '7' ) {\n val = ( val << 3 ) | ( c - '0' ) ;\n c = * src ++ ;\n if ( c >= '0' && c <= '7' ) val = ( val << 3 ) | ( c - '0' ) ;\n else if ( src > oldsrc ) -- src ;\n }\n else if ( src > oldsrc ) -- src ;\n * dst ++ = ( char ) val ;\n break ;\n case 'x' : val = 'x' ;\n c = hextoint ( * src ++ ) ;\n if ( c >= 0 ) {\n val = c ;\n c = hextoint ( * src ++ ) ;\n if ( c >= 0 ) val = ( val << 4 ) + c ;\n else if ( src > oldsrc ) -- src ;\n }\n else if ( src > oldsrc ) -- src ;\n * dst ++ = ( char ) val ;\n break ;\n }\n }\n else if ( c == 8 || c == 263 ) {\n if ( dst > oldsrc ) dst -- ;\n }\n else * dst ++ = ( char ) c ;\n }\n strend : * dst = '\\0' ;\n return ( dst - olddst ) ;\n }"}
{"idx": 18526, "target": 0, "func": "static inline int rsvp_class_to_tree_type ( int classnum ) {\n switch ( classnum ) {\n case RSVP_CLASS_SESSION : return TT_SESSION ;\n case RSVP_CLASS_HOP : return TT_HOP ;\n case RSVP_CLASS_INTEGRITY : return TT_INTEGRITY ;\n case RSVP_CLASS_TIME_VALUES : return TT_TIME_VALUES ;\n case RSVP_CLASS_ERROR : return TT_ERROR ;\n case RSVP_CLASS_SCOPE : return TT_SCOPE ;\n case RSVP_CLASS_STYLE : return TT_STYLE ;\n case RSVP_CLASS_FLOWSPEC : return TT_FLOWSPEC ;\n case RSVP_CLASS_FILTER_SPEC : return TT_FILTER_SPEC ;\n case RSVP_CLASS_SENDER_TEMPLATE : return TT_SENDER_TEMPLATE ;\n case RSVP_CLASS_SENDER_TSPEC : return TT_TSPEC ;\n case RSVP_CLASS_ADSPEC : return TT_ADSPEC ;\n case RSVP_CLASS_POLICY : return TT_POLICY ;\n case RSVP_CLASS_CONFIRM : return TT_CONFIRM ;\n case RSVP_CLASS_RECOVERY_LABEL : case RSVP_CLASS_UPSTREAM_LABEL : case RSVP_CLASS_SUGGESTED_LABEL : case RSVP_CLASS_LABEL : return TT_LABEL ;\n case RSVP_CLASS_LABEL_REQUEST : return TT_LABEL_REQUEST ;\n case RSVP_CLASS_HELLO : return TT_HELLO_OBJ ;\n case RSVP_CLASS_EXPLICIT_ROUTE : return TT_EXPLICIT_ROUTE ;\n case RSVP_CLASS_RECORD_ROUTE : return TT_RECORD_ROUTE ;\n case RSVP_CLASS_MESSAGE_ID : return TT_MESSAGE_ID ;\n case RSVP_CLASS_MESSAGE_ID_ACK : return TT_MESSAGE_ID_ACK ;\n case RSVP_CLASS_MESSAGE_ID_LIST : return TT_MESSAGE_ID_LIST ;\n case RSVP_CLASS_LABEL_SET : return TT_LABEL_SET ;\n case RSVP_CLASS_PROTECTION : return TT_PROTECTION_INFO ;\n case RSVP_CLASS_ACCEPTABLE_LABEL_SET : return TT_UNKNOWN_CLASS ;\n case RSVP_CLASS_RESTART_CAP : return TT_RESTART_CAP ;\n case RSVP_CLASS_LINK_CAP : return TT_LINK_CAP ;\n case RSVP_CLASS_DIFFSERV : return TT_DIFFSERV ;\n case RSVP_CLASS_CLASSTYPE : return TT_CLASSTYPE ;\n case RSVP_CLASS_NOTIFY_REQUEST : return TT_UNKNOWN_CLASS ;\n case RSVP_CLASS_ADMIN_STATUS : return TT_ADMIN_STATUS ;\n case RSVP_CLASS_LSP_ATTRIBUTES : case RSVP_CLASS_LSP_REQUIRED_ATTRIBUTES : return TT_LSP_ATTRIBUTES ;\n case RSVP_CLASS_ASSOCIATION : return TT_ASSOCIATION ;\n case RSVP_CLASS_CALL_ATTRIBUTES : return RSVPF_CALL_ATTRIBUTES ;\n case RSVP_CLASS_JUNIPER_PROPERTIES : return TT_JUNIPER ;\n case RSVP_CLASS_SESSION_ATTRIBUTE : return TT_SESSION_ATTRIBUTE ;\n case RSVP_CLASS_GENERALIZED_UNI : return TT_GEN_UNI ;\n case RSVP_CLASS_CALL_ID : return TT_CALL_ID ;\n case RSVP_CLASS_3GPP2_OBJECT : return TT_3GPP2_OBJECT ;\n case RSVP_CLASS_DCLASS : return TT_DCLASS ;\n case RSVP_CLASS_LSP_TUNNEL_IF_ID : return TT_LSP_TUNNEL_IF_ID ;\n case RSVP_CLASS_EXCLUDE_ROUTE : return TT_EXCLUDE_ROUTE ;\n case RSVP_CLASS_VENDOR_PRIVATE_1 : case RSVP_CLASS_VENDOR_PRIVATE_2 : case RSVP_CLASS_VENDOR_PRIVATE_3 : case RSVP_CLASS_VENDOR_PRIVATE_4 : case RSVP_CLASS_VENDOR_PRIVATE_5 : case RSVP_CLASS_VENDOR_PRIVATE_6 : case RSVP_CLASS_VENDOR_PRIVATE_7 : case RSVP_CLASS_VENDOR_PRIVATE_8 : case RSVP_CLASS_VENDOR_PRIVATE_9 : case RSVP_CLASS_VENDOR_PRIVATE_10 : case RSVP_CLASS_VENDOR_PRIVATE_11 : case RSVP_CLASS_VENDOR_PRIVATE_12 : return TT_PRIVATE_CLASS ;\n default : return TT_UNKNOWN_CLASS ;\n }\n }"}
{"idx": 18527, "target": 0, "func": "static void Type_NamedColor_Free ( struct _cms_typehandler_struct * self , void * Ptr ) {\n cmsFreeNamedColorList ( ( cmsNAMEDCOLORLIST * ) Ptr ) ;\n return ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 18528, "target": 0, "func": "static void test_change_user ( ) {\n char buff [ 256 ] ;\n const char * user_pw = \"mysqltest_pw\" ;\n const char * user_no_pw = \"mysqltest_no_pw\" ;\n const char * pw = \"password\" ;\n const char * db = \"mysqltest_user_test_database\" ;\n int rc ;\n MYSQL * l_mysql ;\n DBUG_ENTER ( \"test_change_user\" ) ;\n myheader ( \"test_change_user\" ) ;\n l_mysql = mysql_client_init ( NULL ) ;\n DIE_UNLESS ( l_mysql != NULL ) ;\n l_mysql = mysql_real_connect ( l_mysql , opt_host , opt_user , opt_password , current_db , opt_port , opt_unix_socket , 0 ) ;\n DIE_UNLESS ( l_mysql != 0 ) ;\n sprintf ( buff , \"drop database if exists %s\" , db ) ;\n rc = mysql_query ( l_mysql , buff ) ;\n myquery2 ( l_mysql , rc ) ;\n sprintf ( buff , \"create database %s\" , db ) ;\n rc = mysql_query ( l_mysql , buff ) ;\n myquery2 ( l_mysql , rc ) ;\n sprintf ( buff , \"grant select on %s.* to %s@'%%' identified by '%s'\" , db , user_pw , pw ) ;\n rc = mysql_query ( l_mysql , buff ) ;\n myquery2 ( l_mysql , rc ) ;\n sprintf ( buff , \"grant select on %s.* to %s@'localhost' identified by '%s'\" , db , user_pw , pw ) ;\n rc = mysql_query ( l_mysql , buff ) ;\n myquery2 ( l_mysql , rc ) ;\n sprintf ( buff , \"grant select on %s.* to %s@'%%'\" , db , user_no_pw ) ;\n rc = mysql_query ( l_mysql , buff ) ;\n myquery2 ( l_mysql , rc ) ;\n sprintf ( buff , \"grant select on %s.* to %s@'localhost'\" , db , user_no_pw ) ;\n rc = mysql_query ( l_mysql , buff ) ;\n myquery2 ( l_mysql , rc ) ;\n rc = mysql_change_user ( l_mysql , NULL , NULL , NULL ) ;\n DIE_UNLESS ( rc ) ;\n if ( ! opt_silent ) printf ( \"Got error (as expected): %s\\n\" , mysql_error ( l_mysql ) ) ;\n reconnect ( & l_mysql ) ;\n rc = mysql_change_user ( l_mysql , \"\" , NULL , NULL ) ;\n DIE_UNLESS ( rc ) ;\n if ( ! opt_silent ) printf ( \"Got error (as expected): %s\\n\" , mysql_error ( l_mysql ) ) ;\n reconnect ( & l_mysql ) ;\n rc = mysql_change_user ( l_mysql , \"\" , \"\" , NULL ) ;\n DIE_UNLESS ( rc ) ;\n if ( ! opt_silent ) printf ( \"Got error (as expected): %s\\n\" , mysql_error ( l_mysql ) ) ;\n reconnect ( & l_mysql ) ;\n rc = mysql_change_user ( l_mysql , \"\" , \"\" , \"\" ) ;\n DIE_UNLESS ( rc ) ;\n if ( ! opt_silent ) printf ( \"Got error (as expected): %s\\n\" , mysql_error ( l_mysql ) ) ;\n reconnect ( & l_mysql ) ;\n rc = mysql_change_user ( l_mysql , NULL , \"\" , \"\" ) ;\n DIE_UNLESS ( rc ) ;\n if ( ! opt_silent ) printf ( \"Got error (as expected): %s\\n\" , mysql_error ( l_mysql ) ) ;\n reconnect ( & l_mysql ) ;\n rc = mysql_change_user ( l_mysql , NULL , NULL , \"\" ) ;\n DIE_UNLESS ( rc ) ;\n if ( ! opt_silent ) printf ( \"Got error (as expected): %s\\n\" , mysql_error ( l_mysql ) ) ;\n reconnect ( & l_mysql ) ;\n rc = mysql_change_user ( l_mysql , \"\" , NULL , \"\" ) ;\n DIE_UNLESS ( rc ) ;\n if ( ! opt_silent ) printf ( \"Got error (as expected): %s\\n\" , mysql_error ( l_mysql ) ) ;\n reconnect ( & l_mysql ) ;\n rc = mysql_change_user ( l_mysql , user_pw , NULL , \"\" ) ;\n DIE_UNLESS ( rc ) ;\n if ( ! opt_silent ) printf ( \"Got error (as expected): %s\\n\" , mysql_error ( l_mysql ) ) ;\n reconnect ( & l_mysql ) ;\n rc = mysql_change_user ( l_mysql , user_pw , \"\" , \"\" ) ;\n DIE_UNLESS ( rc ) ;\n if ( ! opt_silent ) printf ( \"Got error (as expected): %s\\n\" , mysql_error ( l_mysql ) ) ;\n reconnect ( & l_mysql ) ;\n rc = mysql_change_user ( l_mysql , user_pw , \"\" , NULL ) ;\n DIE_UNLESS ( rc ) ;\n if ( ! opt_silent ) printf ( \"Got error (as expected): %s\\n\" , mysql_error ( l_mysql ) ) ;\n reconnect ( & l_mysql ) ;\n rc = mysql_change_user ( l_mysql , user_pw , NULL , NULL ) ;\n DIE_UNLESS ( rc ) ;\n if ( ! opt_silent ) printf ( \"Got error (as expected): %s\\n\" , mysql_error ( l_mysql ) ) ;\n reconnect ( & l_mysql ) ;\n rc = mysql_change_user ( l_mysql , user_pw , \"\" , db ) ;\n DIE_UNLESS ( rc ) ;\n if ( ! opt_silent ) printf ( \"Got error (as expected): %s\\n\" , mysql_error ( l_mysql ) ) ;\n reconnect ( & l_mysql ) ;\n rc = mysql_change_user ( l_mysql , user_pw , NULL , db ) ;\n DIE_UNLESS ( rc ) ;\n if ( ! opt_silent ) printf ( \"Got error (as expected): %s\\n\" , mysql_error ( l_mysql ) ) ;\n reconnect ( & l_mysql ) ;\n rc = mysql_change_user ( l_mysql , user_pw , pw , db ) ;\n myquery2 ( l_mysql , rc ) ;\n rc = mysql_change_user ( l_mysql , user_pw , pw , NULL ) ;\n myquery2 ( l_mysql , rc ) ;\n rc = mysql_change_user ( l_mysql , user_pw , pw , \"\" ) ;\n myquery2 ( l_mysql , rc ) ;\n rc = mysql_change_user ( l_mysql , user_no_pw , pw , db ) ;\n DIE_UNLESS ( rc ) ;\n if ( ! opt_silent ) printf ( \"Got error (as expected): %s\\n\" , mysql_error ( l_mysql ) ) ;\n rc = mysql_change_user ( l_mysql , user_no_pw , pw , \"\" ) ;\n DIE_UNLESS ( rc ) ;\n if ( ! opt_silent ) printf ( \"Got error (as expected): %s\\n\" , mysql_error ( l_mysql ) ) ;\n reconnect ( & l_mysql ) ;\n rc = mysql_change_user ( l_mysql , user_no_pw , pw , NULL ) ;\n DIE_UNLESS ( rc ) ;\n if ( ! opt_silent ) printf ( \"Got error (as expected): %s\\n\" , mysql_error ( l_mysql ) ) ;\n reconnect ( & l_mysql ) ;\n rc = mysql_change_user ( l_mysql , user_no_pw , \"\" , NULL ) ;\n myquery2 ( l_mysql , rc ) ;\n rc = mysql_change_user ( l_mysql , user_no_pw , \"\" , \"\" ) ;\n myquery2 ( l_mysql , rc ) ;\n rc = mysql_change_user ( l_mysql , user_no_pw , \"\" , db ) ;\n myquery2 ( l_mysql , rc ) ;\n rc = mysql_change_user ( l_mysql , user_no_pw , NULL , db ) ;\n myquery2 ( l_mysql , rc ) ;\n rc = mysql_change_user ( l_mysql , \"\" , pw , db ) ;\n DIE_UNLESS ( rc ) ;\n if ( ! opt_silent ) printf ( \"Got error (as expected): %s\\n\" , mysql_error ( l_mysql ) ) ;\n reconnect ( & l_mysql ) ;\n rc = mysql_change_user ( l_mysql , \"\" , pw , \"\" ) ;\n DIE_UNLESS ( rc ) ;\n if ( ! opt_silent ) printf ( \"Got error (as expected): %s\\n\" , mysql_error ( l_mysql ) ) ;\n reconnect ( & l_mysql ) ;\n rc = mysql_change_user ( l_mysql , \"\" , pw , NULL ) ;\n DIE_UNLESS ( rc ) ;\n if ( ! opt_silent ) printf ( \"Got error (as expected): %s\\n\" , mysql_error ( l_mysql ) ) ;\n rc = mysql_change_user ( l_mysql , NULL , pw , NULL ) ;\n DIE_UNLESS ( rc ) ;\n if ( ! opt_silent ) printf ( \"Got error (as expected): %s\\n\" , mysql_error ( l_mysql ) ) ;\n reconnect ( & l_mysql ) ;\n rc = mysql_change_user ( l_mysql , NULL , NULL , db ) ;\n DIE_UNLESS ( rc ) ;\n if ( ! opt_silent ) printf ( \"Got error (as expected): %s\\n\" , mysql_error ( l_mysql ) ) ;\n reconnect ( & l_mysql ) ;\n rc = mysql_change_user ( l_mysql , NULL , \"\" , db ) ;\n DIE_UNLESS ( rc ) ;\n if ( ! opt_silent ) printf ( \"Got error (as expected): %s\\n\" , mysql_error ( l_mysql ) ) ;\n reconnect ( & l_mysql ) ;\n rc = mysql_change_user ( l_mysql , \"\" , \"\" , db ) ;\n DIE_UNLESS ( rc ) ;\n if ( ! opt_silent ) printf ( \"Got error (as expected): %s\\n\" , mysql_error ( l_mysql ) ) ;\n reconnect ( & l_mysql ) ;\n mysql_close ( l_mysql ) ;\n sprintf ( buff , \"drop database %s\" , db ) ;\n rc = mysql_query ( mysql , buff ) ;\n myquery ( rc ) ;\n sprintf ( buff , \"drop user %s@'%%'\" , user_pw ) ;\n rc = mysql_query ( mysql , buff ) ;\n myquery ( rc ) ;\n sprintf ( buff , \"drop user %s@'%%'\" , user_no_pw ) ;\n rc = mysql_query ( mysql , buff ) ;\n myquery ( rc ) ;\n sprintf ( buff , \"drop user %s@'localhost'\" , user_pw ) ;\n rc = mysql_query ( mysql , buff ) ;\n myquery ( rc ) ;\n sprintf ( buff , \"drop user %s@'localhost'\" , user_no_pw ) ;\n rc = mysql_query ( mysql , buff ) ;\n myquery ( rc ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 18529, "target": 0, "func": "static int dwarf_elf_object_access_load_section ( void * obj_in , Dwarf_Half section_index , Dwarf_Small * * section_data , int * error ) {\n dwarf_elf_object_access_internals_t * obj = ( dwarf_elf_object_access_internals_t * ) obj_in ;\n if ( section_index == 0 ) {\n return DW_DLV_NO_ENTRY ;\n }\n {\n Elf_Scn * scn = 0 ;\n Elf_Data * data = 0 ;\n scn = elf_getscn ( obj -> elf , section_index ) ;\n if ( scn == NULL ) {\n * error = DW_DLE_MDE ;\n return DW_DLV_ERROR ;\n }\n data = elf_getdata ( scn , NULL ) ;\n if ( data == NULL ) {\n * error = DW_DLE_MDE ;\n return DW_DLV_ERROR ;\n }\n if ( ! data -> d_buf ) {\n * error = DW_DLE_MDE ;\n return DW_DLV_ERROR ;\n }\n * section_data = data -> d_buf ;\n }\n return DW_DLV_OK ;\n }"}
{"idx": 18530, "target": 0, "func": "static void init_t38_info_conv ( packet_info * pinfo ) {\n t38_info_current ++ ;\n if ( t38_info_current == MAX_T38_MESSAGES_IN_PACKET ) {\n t38_info_current = 0 ;\n }\n t38_info = & t38_info_arr [ t38_info_current ] ;\n t38_info -> seq_num = 0 ;\n t38_info -> type_msg = 0 ;\n t38_info -> data_value = 0 ;\n t38_info -> t30ind_value = 0 ;\n t38_info -> setup_frame_number = 0 ;\n t38_info -> Data_Field_field_type_value = 0 ;\n t38_info -> desc [ 0 ] = '\\0' ;\n t38_info -> desc_comment [ 0 ] = '\\0' ;\n t38_info -> time_first_t4_data = 0 ;\n t38_info -> frame_num_first_t4_data = 0 ;\n p_t38_packet_conv = NULL ;\n p_t38_conv = NULL ;\n p_t38_packet_conv = ( t38_conv * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_t38 , 0 ) ;\n p_conv = find_conversation ( pinfo -> fd -> num , & pinfo -> net_dst , & pinfo -> net_src , pinfo -> ptype , pinfo -> destport , pinfo -> srcport , NO_ADDR_B | NO_PORT_B ) ;\n if ( ! p_conv ) {\n p_conv = conversation_new ( pinfo -> fd -> num , & pinfo -> net_src , & pinfo -> net_dst , pinfo -> ptype , pinfo -> srcport , pinfo -> destport , NO_ADDR_B | NO_PORT_B ) ;\n conversation_set_dissector ( p_conv , t38_udp_handle ) ;\n }\n p_t38_conv = ( t38_conv * ) conversation_get_proto_data ( p_conv , proto_t38 ) ;\n if ( ! p_t38_conv ) {\n p_t38_conv = wmem_new ( wmem_file_scope ( ) , t38_conv ) ;\n p_t38_conv -> setup_method [ 0 ] = '\\0' ;\n p_t38_conv -> setup_frame_number = 0 ;\n p_t38_conv -> src_t38_info . reass_ID = 0 ;\n p_t38_conv -> src_t38_info . reass_start_seqnum = - 1 ;\n p_t38_conv -> src_t38_info . reass_data_type = 0 ;\n p_t38_conv -> src_t38_info . last_seqnum = - 1 ;\n p_t38_conv -> src_t38_info . packet_lost = 0 ;\n p_t38_conv -> src_t38_info . burst_lost = 0 ;\n p_t38_conv -> src_t38_info . time_first_t4_data = 0 ;\n p_t38_conv -> src_t38_info . additional_hdlc_data_field_counter = 0 ;\n p_t38_conv -> src_t38_info . seqnum_prev_data_field = - 1 ;\n p_t38_conv -> dst_t38_info . reass_ID = 0 ;\n p_t38_conv -> dst_t38_info . reass_start_seqnum = - 1 ;\n p_t38_conv -> dst_t38_info . reass_data_type = 0 ;\n p_t38_conv -> dst_t38_info . last_seqnum = - 1 ;\n p_t38_conv -> dst_t38_info . packet_lost = 0 ;\n p_t38_conv -> dst_t38_info . burst_lost = 0 ;\n p_t38_conv -> dst_t38_info . time_first_t4_data = 0 ;\n p_t38_conv -> dst_t38_info . additional_hdlc_data_field_counter = 0 ;\n p_t38_conv -> dst_t38_info . seqnum_prev_data_field = - 1 ;\n conversation_add_proto_data ( p_conv , proto_t38 , p_t38_conv ) ;\n }\n if ( ! p_t38_packet_conv ) {\n p_t38_packet_conv = wmem_new ( wmem_file_scope ( ) , t38_conv ) ;\n g_strlcpy ( p_t38_packet_conv -> setup_method , p_t38_conv -> setup_method , MAX_T38_SETUP_METHOD_SIZE ) ;\n p_t38_packet_conv -> setup_frame_number = p_t38_conv -> setup_frame_number ;\n memcpy ( & ( p_t38_packet_conv -> src_t38_info ) , & ( p_t38_conv -> src_t38_info ) , sizeof ( t38_conv_info ) ) ;\n memcpy ( & ( p_t38_packet_conv -> dst_t38_info ) , & ( p_t38_conv -> dst_t38_info ) , sizeof ( t38_conv_info ) ) ;\n p_add_proto_data ( wmem_file_scope ( ) , pinfo , proto_t38 , 0 , p_t38_packet_conv ) ;\n }\n if ( ADDRESSES_EQUAL ( & p_conv -> key_ptr -> addr1 , & pinfo -> net_src ) ) {\n p_t38_conv_info = & ( p_t38_conv -> src_t38_info ) ;\n p_t38_packet_conv_info = & ( p_t38_packet_conv -> src_t38_info ) ;\n }\n else {\n p_t38_conv_info = & ( p_t38_conv -> dst_t38_info ) ;\n p_t38_packet_conv_info = & ( p_t38_packet_conv -> dst_t38_info ) ;\n }\n t38_info -> setup_frame_number = p_t38_packet_conv -> setup_frame_number ;\n }"}
{"idx": 18531, "target": 0, "func": "static int dissect_h245_MaximumBitRate ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 4294967295U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 18532, "target": 0, "func": "void vp8_set_speed_features ( VP8_COMP * cpi ) {\n SPEED_FEATURES * sf = & cpi -> sf ;\n int Mode = cpi -> compressor_speed ;\n int Speed = cpi -> Speed ;\n int i ;\n VP8_COMMON * cm = & cpi -> common ;\n int last_improved_quant = sf -> improved_quant ;\n int ref_frames ;\n for ( i = 0 ;\n i < MAX_MODES ;\n i ++ ) {\n cpi -> mode_check_freq [ i ] = 0 ;\n }\n cpi -> mb . mbs_tested_so_far = 0 ;\n sf -> RD = 1 ;\n sf -> search_method = NSTEP ;\n sf -> improved_quant = 1 ;\n sf -> improved_dct = 1 ;\n sf -> auto_filter = 1 ;\n sf -> recode_loop = 1 ;\n sf -> quarter_pixel_search = 1 ;\n sf -> half_pixel_search = 1 ;\n sf -> iterative_sub_pixel = 1 ;\n sf -> optimize_coefficients = 1 ;\n sf -> use_fastquant_for_pick = 0 ;\n sf -> no_skip_block4x4_search = 1 ;\n sf -> first_step = 0 ;\n sf -> max_step_search_steps = MAX_MVSEARCH_STEPS ;\n sf -> improved_mv_pred = 1 ;\n for ( i = 0 ;\n i < MAX_MODES ;\n i ++ ) sf -> thresh_mult [ i ] = 0 ;\n ref_frames = 1 ;\n if ( cpi -> ref_frame_flags & VP8_LAST_FRAME ) ref_frames ++ ;\n if ( cpi -> ref_frame_flags & VP8_GOLD_FRAME ) ref_frames ++ ;\n if ( cpi -> ref_frame_flags & VP8_ALTR_FRAME ) ref_frames ++ ;\n if ( Mode == 0 ) Speed = 0 ;\n else if ( Mode == 2 ) Speed = RT ( Speed ) ;\n else {\n if ( Speed > 5 ) Speed = 5 ;\n Speed = GOOD ( Speed ) ;\n }\n sf -> thresh_mult [ THR_ZERO1 ] = sf -> thresh_mult [ THR_NEAREST1 ] = sf -> thresh_mult [ THR_NEAR1 ] = sf -> thresh_mult [ THR_DC ] = 0 ;\n sf -> thresh_mult [ THR_ZERO2 ] = sf -> thresh_mult [ THR_ZERO3 ] = sf -> thresh_mult [ THR_NEAREST2 ] = sf -> thresh_mult [ THR_NEAREST3 ] = sf -> thresh_mult [ THR_NEAR2 ] = sf -> thresh_mult [ THR_NEAR3 ] = speed_map ( Speed , thresh_mult_map_znn ) ;\n sf -> thresh_mult [ THR_V_PRED ] = sf -> thresh_mult [ THR_H_PRED ] = speed_map ( Speed , thresh_mult_map_vhpred ) ;\n sf -> thresh_mult [ THR_B_PRED ] = speed_map ( Speed , thresh_mult_map_bpred ) ;\n sf -> thresh_mult [ THR_TM ] = speed_map ( Speed , thresh_mult_map_tm ) ;\n sf -> thresh_mult [ THR_NEW1 ] = speed_map ( Speed , thresh_mult_map_new1 ) ;\n sf -> thresh_mult [ THR_NEW2 ] = sf -> thresh_mult [ THR_NEW3 ] = speed_map ( Speed , thresh_mult_map_new2 ) ;\n sf -> thresh_mult [ THR_SPLIT1 ] = speed_map ( Speed , thresh_mult_map_split1 ) ;\n sf -> thresh_mult [ THR_SPLIT2 ] = sf -> thresh_mult [ THR_SPLIT3 ] = speed_map ( Speed , thresh_mult_map_split2 ) ;\n cpi -> mode_check_freq [ THR_ZERO1 ] = cpi -> mode_check_freq [ THR_NEAREST1 ] = cpi -> mode_check_freq [ THR_NEAR1 ] = cpi -> mode_check_freq [ THR_TM ] = cpi -> mode_check_freq [ THR_DC ] = 0 ;\n cpi -> mode_check_freq [ THR_ZERO2 ] = cpi -> mode_check_freq [ THR_ZERO3 ] = cpi -> mode_check_freq [ THR_NEAREST2 ] = cpi -> mode_check_freq [ THR_NEAREST3 ] = speed_map ( Speed , mode_check_freq_map_zn2 ) ;\n cpi -> mode_check_freq [ THR_NEAR2 ] = cpi -> mode_check_freq [ THR_NEAR3 ] = speed_map ( Speed , mode_check_freq_map_near2 ) ;\n cpi -> mode_check_freq [ THR_V_PRED ] = cpi -> mode_check_freq [ THR_H_PRED ] = cpi -> mode_check_freq [ THR_B_PRED ] = speed_map ( Speed , mode_check_freq_map_vhbpred ) ;\n cpi -> mode_check_freq [ THR_NEW1 ] = speed_map ( Speed , mode_check_freq_map_new1 ) ;\n cpi -> mode_check_freq [ THR_NEW2 ] = cpi -> mode_check_freq [ THR_NEW3 ] = speed_map ( Speed , mode_check_freq_map_new2 ) ;\n cpi -> mode_check_freq [ THR_SPLIT1 ] = speed_map ( Speed , mode_check_freq_map_split1 ) ;\n cpi -> mode_check_freq [ THR_SPLIT2 ] = cpi -> mode_check_freq [ THR_SPLIT3 ] = speed_map ( Speed , mode_check_freq_map_split2 ) ;\n Speed = cpi -> Speed ;\n switch ( Mode ) {\n # if ! ( CONFIG_REALTIME_ONLY ) case 0 : sf -> first_step = 0 ;\n sf -> max_step_search_steps = MAX_MVSEARCH_STEPS ;\n break ;\n case 1 : case 3 : if ( Speed > 0 ) {\n sf -> optimize_coefficients = 0 ;\n sf -> use_fastquant_for_pick = 1 ;\n sf -> no_skip_block4x4_search = 0 ;\n sf -> first_step = 1 ;\n }\n if ( Speed > 2 ) {\n sf -> improved_quant = 0 ;\n sf -> improved_dct = 0 ;\n sf -> recode_loop = 2 ;\n }\n if ( Speed > 3 ) {\n sf -> auto_filter = 1 ;\n sf -> recode_loop = 0 ;\n sf -> RD = 0 ;\n }\n if ( Speed > 4 ) {\n sf -> auto_filter = 0 ;\n }\n break ;\n # endif case 2 : sf -> optimize_coefficients = 0 ;\n sf -> recode_loop = 0 ;\n sf -> auto_filter = 1 ;\n sf -> iterative_sub_pixel = 1 ;\n sf -> search_method = NSTEP ;\n if ( Speed > 0 ) {\n sf -> improved_quant = 0 ;\n sf -> improved_dct = 0 ;\n sf -> use_fastquant_for_pick = 1 ;\n sf -> no_skip_block4x4_search = 0 ;\n sf -> first_step = 1 ;\n }\n if ( Speed > 2 ) sf -> auto_filter = 0 ;\n if ( Speed > 3 ) {\n sf -> RD = 0 ;\n sf -> auto_filter = 1 ;\n }\n if ( Speed > 4 ) {\n sf -> auto_filter = 0 ;\n sf -> search_method = HEX ;\n sf -> iterative_sub_pixel = 0 ;\n }\n if ( Speed > 6 ) {\n unsigned int sum = 0 ;\n unsigned int total_mbs = cm -> MBs ;\n int thresh ;\n unsigned int total_skip ;\n int min = 2000 ;\n if ( cpi -> oxcf . encode_breakout > 2000 ) min = cpi -> oxcf . encode_breakout ;\n min >>= 7 ;\n for ( i = 0 ;\n i < min ;\n i ++ ) {\n sum += cpi -> mb . error_bins [ i ] ;\n }\n total_skip = sum ;\n sum = 0 ;\n for ( ;\n i < 1024 ;\n i ++ ) {\n sum += cpi -> mb . error_bins [ i ] ;\n if ( 10 * sum >= ( unsigned int ) ( cpi -> Speed - 6 ) * ( total_mbs - total_skip ) ) break ;\n }\n i -- ;\n thresh = ( i << 7 ) ;\n if ( thresh < 2000 ) thresh = 2000 ;\n if ( ref_frames > 1 ) {\n sf -> thresh_mult [ THR_NEW1 ] = thresh ;\n sf -> thresh_mult [ THR_NEAREST1 ] = thresh >> 1 ;\n sf -> thresh_mult [ THR_NEAR1 ] = thresh >> 1 ;\n }\n if ( ref_frames > 2 ) {\n sf -> thresh_mult [ THR_NEW2 ] = thresh << 1 ;\n sf -> thresh_mult [ THR_NEAREST2 ] = thresh ;\n sf -> thresh_mult [ THR_NEAR2 ] = thresh ;\n }\n if ( ref_frames > 3 ) {\n sf -> thresh_mult [ THR_NEW3 ] = thresh << 1 ;\n sf -> thresh_mult [ THR_NEAREST3 ] = thresh ;\n sf -> thresh_mult [ THR_NEAR3 ] = thresh ;\n }\n sf -> improved_mv_pred = 0 ;\n }\n if ( Speed > 8 ) sf -> quarter_pixel_search = 0 ;\n if ( cm -> version == 0 ) {\n cm -> filter_type = NORMAL_LOOPFILTER ;\n if ( Speed >= 14 ) cm -> filter_type = SIMPLE_LOOPFILTER ;\n }\n else {\n cm -> filter_type = SIMPLE_LOOPFILTER ;\n }\n if ( Speed >= 15 ) sf -> half_pixel_search = 0 ;\n vpx_memset ( cpi -> mb . error_bins , 0 , sizeof ( cpi -> mb . error_bins ) ) ;\n }\n ;\n if ( cpi -> pass == 1 ) {\n sf -> improved_quant = 0 ;\n sf -> optimize_coefficients = 0 ;\n sf -> improved_dct = 0 ;\n }\n if ( cpi -> sf . search_method == NSTEP ) {\n vp8_init3smotion_compensation ( & cpi -> mb , cm -> yv12_fb [ cm -> lst_fb_idx ] . y_stride ) ;\n }\n else if ( cpi -> sf . search_method == DIAMOND ) {\n vp8_init_dsmotion_compensation ( & cpi -> mb , cm -> yv12_fb [ cm -> lst_fb_idx ] . y_stride ) ;\n }\n if ( cpi -> sf . improved_dct ) {\n cpi -> mb . short_fdct8x4 = vp8_short_fdct8x4 ;\n cpi -> mb . short_fdct4x4 = vp8_short_fdct4x4 ;\n }\n else {\n cpi -> mb . short_fdct8x4 = vp8_short_fdct8x4 ;\n cpi -> mb . short_fdct4x4 = vp8_short_fdct4x4 ;\n }\n cpi -> mb . short_walsh4x4 = vp8_short_walsh4x4 ;\n if ( cpi -> sf . improved_quant ) {\n cpi -> mb . quantize_b = vp8_regular_quantize_b ;\n cpi -> mb . quantize_b_pair = vp8_regular_quantize_b_pair ;\n }\n else {\n cpi -> mb . quantize_b = vp8_fast_quantize_b ;\n cpi -> mb . quantize_b_pair = vp8_fast_quantize_b_pair ;\n }\n if ( cpi -> sf . improved_quant != last_improved_quant ) vp8cx_init_quantizer ( cpi ) ;\n if ( cpi -> sf . iterative_sub_pixel == 1 ) {\n cpi -> find_fractional_mv_step = vp8_find_best_sub_pixel_step_iteratively ;\n }\n else if ( cpi -> sf . quarter_pixel_search ) {\n cpi -> find_fractional_mv_step = vp8_find_best_sub_pixel_step ;\n }\n else if ( cpi -> sf . half_pixel_search ) {\n cpi -> find_fractional_mv_step = vp8_find_best_half_pixel_step ;\n }\n else {\n cpi -> find_fractional_mv_step = vp8_skip_fractional_mv_step ;\n }\n if ( cpi -> sf . optimize_coefficients == 1 && cpi -> pass != 1 ) cpi -> mb . optimize = 1 ;\n else cpi -> mb . optimize = 0 ;\n if ( cpi -> common . full_pixel ) cpi -> find_fractional_mv_step = vp8_skip_fractional_mv_step ;\n # ifdef SPEEDSTATS frames_at_speed [ cpi -> Speed ] ++ ;\n # endif }"}
{"idx": 18533, "target": 0, "func": "static void gs_finit_push_systemdict ( i_ctx_t * i_ctx_p ) {\n if ( i_ctx_p == NULL ) return ;\n if ( dsp == dstop ) {\n if ( ref_stack_extend ( & d_stack , 1 ) < 0 ) {\n ( void ) zend ( i_ctx_p ) ;\n }\n }\n dsp ++ ;\n ref_assign ( dsp , systemdict ) ;\n }"}
{"idx": 18534, "target": 0, "func": "static INTERP_FILTER read_interp_filter ( struct vp9_read_bit_buffer * rb ) {\n const INTERP_FILTER literal_to_filter [ ] = {\n EIGHTTAP_SMOOTH , EIGHTTAP , EIGHTTAP_SHARP , BILINEAR }\n ;\n return vp9_rb_read_bit ( rb ) ? SWITCHABLE : literal_to_filter [ vp9_rb_read_literal ( rb , 2 ) ] ;\n }"}
{"idx": 18535, "target": 0, "func": "fz_text * pdf_tos_get_text ( fz_context * ctx , pdf_text_object_state * tos ) {\n fz_text * text = tos -> text ;\n tos -> text = NULL ;\n return text ;\n }"}
{"idx": 18536, "target": 1, "func": "vpx_codec_err_t vpx_svc_get_layer_resolution ( const SvcContext * svc_ctx , int layer , unsigned int * width , unsigned int * height ) {\n int w , h , index , num , den ;\n const SvcInternal * const si = get_const_svc_internal ( svc_ctx ) ;\n if ( svc_ctx == NULL || si == NULL || width == NULL || height == NULL ) {\n return VPX_CODEC_INVALID_PARAM ;\n }\n if ( layer < 0 || layer >= si -> layers ) return VPX_CODEC_INVALID_PARAM ;\n index = layer + VPX_SS_MAX_LAYERS - si -> layers ;\n num = si -> scaling_factor_num [ index ] ;\n den = si -> scaling_factor_den [ index ] ;\n if ( num == 0 || den == 0 ) return VPX_CODEC_INVALID_PARAM ;\n w = si -> width * num / den ;\n h = si -> height * num / den ;\n w += w % 2 ;\n h += h % 2 ;\n * width = w ;\n * height = h ;\n return VPX_CODEC_OK ;\n }"}
{"idx": 18537, "target": 0, "func": "static void php_zip_free_entry ( zend_rsrc_list_entry * rsrc TSRMLS_DC ) {\n zip_read_rsrc * zr_rsrc = ( zip_read_rsrc * ) rsrc -> ptr ;\n if ( zr_rsrc ) {\n if ( zr_rsrc -> zf ) {\n if ( zr_rsrc -> zf -> za ) {\n zip_fclose ( zr_rsrc -> zf ) ;\n }\n else {\n if ( zr_rsrc -> zf -> src ) zip_source_free ( zr_rsrc -> zf -> src ) ;\n free ( zr_rsrc -> zf ) ;\n }\n zr_rsrc -> zf = NULL ;\n }\n efree ( zr_rsrc ) ;\n rsrc -> ptr = NULL ;\n }\n }"}
{"idx": 18538, "target": 0, "func": "static int dissect_btgatt_microbit_temperature_value ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , void * data ) {\n btatt_data_t * att_data = ( btatt_data_t * ) data ;\n gint offset = 0 ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) return - 1 ;\n proto_tree_add_item ( tree , hf_gatt_microbit_temperature_value , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n return offset ;\n }"}
{"idx": 18539, "target": 0, "func": "TSReturnCode sdk_sanity_check_hook_id ( TSHttpHookID id ) {\n return HttpAPIHooks : : is_valid ( id ) ? TS_SUCCESS : TS_ERROR ;\n }"}
{"idx": 18540, "target": 0, "func": "static uint16_t * encodeRunShort ( uint16_t * buffer , uint16_t * bufLimit , uint16_t value , int32_t length , UErrorCode * status ) {\n int32_t num = 0 ;\n if ( length < 4 ) {\n int j = 0 ;\n for ( ;\n j < length ;\n ++ j ) {\n if ( value == ( int32_t ) ESCAPE ) {\n APPEND ( buffer , bufLimit , ESCAPE , num , status ) ;\n }\n APPEND ( buffer , bufLimit , value , num , status ) ;\n }\n }\n else {\n if ( length == ( int32_t ) ESCAPE ) {\n if ( value == ( int32_t ) ESCAPE ) {\n APPEND ( buffer , bufLimit , ESCAPE , num , status ) ;\n }\n APPEND ( buffer , bufLimit , value , num , status ) ;\n -- length ;\n }\n APPEND ( buffer , bufLimit , ESCAPE , num , status ) ;\n APPEND ( buffer , bufLimit , ( uint16_t ) length , num , status ) ;\n APPEND ( buffer , bufLimit , ( uint16_t ) value , num , status ) ;\n }\n return buffer ;\n }"}
{"idx": 18541, "target": 1, "func": "static gint dissect_sep ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , gint offset , guint32 interface_id , guint32 adapter_id , guint32 chandle ) {\n proto_tree * sep_tree ;\n proto_item * sep_item ;\n guint i_sep = 1 ;\n guint media_type ;\n guint type ;\n guint seid ;\n guint in_use ;\n guint items ;\n guint32 direction ;\n direction = ( pinfo -> p2p_dir == P2P_DIR_SENT ) ? P2P_DIR_RECV : P2P_DIR_SENT ;\n items = tvb_reported_length_remaining ( tvb , offset ) / 2 ;\n while ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n seid = tvb_get_guint8 ( tvb , offset ) ;\n in_use = seid & 0x02 ;\n seid = seid >> 2 ;\n media_type = tvb_get_guint8 ( tvb , offset + 1 ) >> 4 ;\n type = ( tvb_get_guint8 ( tvb , offset + 1 ) & 0x08 ) >> 3 ;\n sep_item = proto_tree_add_none_format ( tree , hf_btavdtp_acp_sep , tvb , offset , 2 , \"ACP SEP [%u - %s %s] item %u/%u\" , seid , val_to_str_const ( media_type , media_type_vals , \"unknown\" ) , val_to_str_const ( type , sep_type_vals , \"unknown\" ) , i_sep , items ) ;\n sep_tree = proto_item_add_subtree ( sep_item , ett_btavdtp_sep ) ;\n proto_tree_add_item ( sep_tree , hf_btavdtp_sep_seid , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( sep_tree , hf_btavdtp_sep_inuse , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( sep_tree , hf_btavdtp_sep_rfa0 , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sep_tree , hf_btavdtp_sep_media_type , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( sep_tree , hf_btavdtp_sep_type , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( sep_tree , hf_btavdtp_sep_rfa1 , tvb , offset , 1 , ENC_NA ) ;\n if ( ! pinfo -> fd -> flags . visited ) {\n sep_entry_t * sep_data ;\n wmem_tree_key_t key [ 7 ] ;\n guint32 frame_number = pinfo -> num ;\n key [ 0 ] . length = 1 ;\n key [ 0 ] . key = & interface_id ;\n key [ 1 ] . length = 1 ;\n key [ 1 ] . key = & adapter_id ;\n key [ 2 ] . length = 1 ;\n key [ 2 ] . key = & chandle ;\n key [ 3 ] . length = 1 ;\n key [ 3 ] . key = & direction ;\n key [ 4 ] . length = 1 ;\n key [ 4 ] . key = & seid ;\n key [ 5 ] . length = 1 ;\n key [ 5 ] . key = & frame_number ;\n key [ 6 ] . length = 0 ;\n key [ 6 ] . key = NULL ;\n sep_data = wmem_new ( wmem_file_scope ( ) , sep_entry_t ) ;\n sep_data -> seid = seid ;\n sep_data -> type = type ;\n sep_data -> media_type = media_type ;\n sep_data -> int_seid = 0 ;\n sep_data -> codec = - 1 ;\n sep_data -> content_protection_type = 0 ;\n if ( in_use ) {\n sep_data -> state = SEP_STATE_IN_USE ;\n }\n else {\n sep_data -> state = SEP_STATE_FREE ;\n }\n wmem_tree_insert32_array ( sep_list , key , sep_data ) ;\n }\n offset += 1 ;\n i_sep += 1 ;\n }\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" - items: %u\" , items ) ;\n return offset ;\n }"}
{"idx": 18542, "target": 0, "func": "static const float * do_pitchfilter ( float memory [ 303 ] , const float v_in [ 160 ] , const float gain [ 4 ] , const uint8_t * lag , const uint8_t pfrac [ 4 ] ) {\n int i , j ;\n float * v_lag , * v_out ;\n const float * v_len ;\n v_out = memory + 143 ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n if ( gain [ i ] ) {\n v_lag = memory + 143 + 40 * i - lag [ i ] ;\n for ( v_len = v_in + 40 ;\n v_in < v_len ;\n v_in ++ ) {\n if ( pfrac [ i ] ) {\n for ( j = 0 , * v_out = 0. ;\n j < 4 ;\n j ++ ) * v_out += qcelp_hammsinc_table [ j ] * ( v_lag [ j - 4 ] + v_lag [ 3 - j ] ) ;\n }\n else * v_out = * v_lag ;\n * v_out = * v_in + gain [ i ] * * v_out ;\n v_lag ++ ;\n v_out ++ ;\n }\n }\n else {\n memcpy ( v_out , v_in , 40 * sizeof ( float ) ) ;\n v_in += 40 ;\n v_out += 40 ;\n }\n }\n memmove ( memory , memory + 160 , 143 * sizeof ( float ) ) ;\n return memory + 143 ;\n }"}
{"idx": 18543, "target": 0, "func": "static void raw_decode ( uint8_t * dst , const int8_t * src , int src_size ) {\n while ( src_size -- ) * dst ++ = * src ++ + 128 ;\n }"}
{"idx": 18544, "target": 0, "func": "static int dissect_h245_INTEGER_1_4294967295 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 4294967295U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 18545, "target": 0, "func": "const hb_shaper_pair_t * _hb_shapers_get ( void ) {\n retry : hb_shaper_pair_t * shapers = ( hb_shaper_pair_t * ) hb_atomic_ptr_get ( & static_shapers ) ;\n if ( unlikely ( ! shapers ) ) {\n char * env = getenv ( \"HB_SHAPER_LIST\" ) ;\n if ( ! env || ! * env ) {\n ( void ) hb_atomic_ptr_cmpexch ( & static_shapers , NULL , & all_shapers [ 0 ] ) ;\n return ( const hb_shaper_pair_t * ) all_shapers ;\n }\n shapers = ( hb_shaper_pair_t * ) malloc ( sizeof ( all_shapers ) ) ;\n if ( unlikely ( ! shapers ) ) {\n ( void ) hb_atomic_ptr_cmpexch ( & static_shapers , NULL , & all_shapers [ 0 ] ) ;\n return ( const hb_shaper_pair_t * ) all_shapers ;\n }\n memcpy ( shapers , all_shapers , sizeof ( all_shapers ) ) ;\n unsigned int i = 0 ;\n char * end , * p = env ;\n for ( ;\n ;\n ) {\n end = strchr ( p , ',' ) ;\n if ( ! end ) end = p + strlen ( p ) ;\n for ( unsigned int j = i ;\n j < ARRAY_LENGTH ( all_shapers ) ;\n j ++ ) if ( end - p == ( int ) strlen ( shapers [ j ] . name ) && == strncmp ( shapers [ j ] . name , p , end - p ) ) {\n struct hb_shaper_pair_t t = shapers [ j ] ;\n memmove ( & shapers [ i + 1 ] , & shapers [ i ] , sizeof ( shapers [ i ] ) * ( j - i ) ) ;\n shapers [ i ] = t ;\n i ++ ;\n }\n if ( ! * end ) break ;\n else p = end + 1 ;\n }\n if ( ! hb_atomic_ptr_cmpexch ( & static_shapers , NULL , shapers ) ) {\n free ( shapers ) ;\n goto retry ;\n }\n # ifdef HB_USE_ATEXIT atexit ( free_static_shapers ) ;\n # endif }\n return shapers ;\n }"}
{"idx": 18546, "target": 0, "func": "PHP_FUNCTION ( locale_get_region ) {\n get_icu_value_src_php ( LOC_REGION_TAG , INTERNAL_FUNCTION_PARAM_PASSTHRU ) ;\n }"}
{"idx": 18547, "target": 0, "func": "static void sig_erase_complete_msg ( WINDOW_REC * window , const char * word , const char * line ) {\n SERVER_REC * server ;\n MODULE_SERVER_REC * mserver ;\n GSList * tmp ;\n server = line_get_server ( line ) ;\n if ( server == NULL ) {\n server = window -> active_server ;\n if ( server == NULL ) return ;\n }\n if ( * word == '\\0' ) return ;\n completion_last_message_remove ( word ) ;\n if ( server != NULL ) {\n mserver = MODULE_DATA ( server ) ;\n for ( tmp = mserver -> lastmsgs ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n LAST_MSG_REC * rec = tmp -> data ;\n if ( g_ascii_strcasecmp ( rec -> nick , word ) == 0 ) {\n last_msg_destroy ( & mserver -> lastmsgs , rec ) ;\n break ;\n }\n }\n }\n }"}
{"idx": 18548, "target": 0, "func": "static inline hb_bool_t hb_shape_plan_user_features_match ( const hb_shape_plan_t * shape_plan , const hb_shape_plan_proposal_t * proposal ) {\n if ( proposal -> num_user_features != shape_plan -> num_user_features ) return false ;\n for ( unsigned int i = 0 , n = proposal -> num_user_features ;\n i < n ;\n i ++ ) if ( proposal -> user_features [ i ] . tag != shape_plan -> user_features [ i ] . tag || proposal -> user_features [ i ] . value != shape_plan -> user_features [ i ] . value || proposal -> user_features [ i ] . start != shape_plan -> user_features [ i ] . start || proposal -> user_features [ i ] . end != shape_plan -> user_features [ i ] . end ) return false ;\n return true ;\n }"}
{"idx": 18549, "target": 0, "func": "static int rsvp_hostlist_packet ( void * pit , packet_info * pinfo , epan_dissect_t * edt _U_ , const void * vip ) {\n conv_hash_t * hash = ( conv_hash_t * ) pit ;\n const rsvp_conversation_info * rsvph = ( const rsvp_conversation_info * ) vip ;\n add_hostlist_table_data ( hash , & rsvph -> source , 0 , TRUE , 1 , pinfo -> fd -> pkt_len , & rsvp_host_dissector_info , PT_NONE ) ;\n add_hostlist_table_data ( hash , & rsvph -> destination , 0 , FALSE , 1 , pinfo -> fd -> pkt_len , & rsvp_host_dissector_info , PT_NONE ) ;\n return 1 ;\n }"}
{"idx": 18550, "target": 0, "func": "CURLcode Curl_auth_create_login_message ( struct Curl_easy * data , const char * valuep , char * * outptr , size_t * outlen ) {\n size_t vlen = strlen ( valuep ) ;\n if ( ! vlen ) {\n * outptr = strdup ( \"=\" ) ;\n if ( * outptr ) {\n * outlen = ( size_t ) 1 ;\n return CURLE_OK ;\n }\n * outlen = 0 ;\n return CURLE_OUT_OF_MEMORY ;\n }\n return Curl_base64_encode ( data , valuep , vlen , outptr , outlen ) ;\n }"}
{"idx": 18551, "target": 0, "func": "TEST_F ( WebFrameTest , LocalFrameWithRemoteParentIsTransparent ) {\n FrameTestHelpers : : WebViewHelper helper ;\n helper . InitializeRemote ( ) ;\n WebLocalFrameImpl * local_frame = FrameTestHelpers : : CreateLocalChild ( * helper . RemoteMainFrame ( ) ) ;\n FrameTestHelpers : : LoadFrame ( local_frame , \"data:text/html,some page\" ) ;\n Color color = local_frame -> GetFrameView ( ) -> BaseBackgroundColor ( ) ;\n EXPECT_EQ ( Color : : kTransparent , color ) ;\n }"}
{"idx": 18552, "target": 0, "func": "bool and_clause ( Node * clause ) {\n return ( clause != NULL && IsA ( clause , BoolExpr ) && ( ( BoolExpr * ) clause ) -> boolop == AND_EXPR ) ;\n }"}
{"idx": 18553, "target": 0, "func": "static inline Quantum GetPixelCr ( const Image * restrict image , const Quantum * restrict pixel ) {\n return ( pixel [ image -> channel_map [ CrPixelChannel ] . offset ] ) ;\n }"}
{"idx": 18554, "target": 0, "func": "static void e1000e_mac_setmacaddr ( E1000ECore * core , int index , uint32_t val ) {\n uint32_t macaddr [ 2 ] ;\n core -> mac [ index ] = val ;\n macaddr [ 0 ] = cpu_to_le32 ( core -> mac [ RA ] ) ;\n macaddr [ 1 ] = cpu_to_le32 ( core -> mac [ RA + 1 ] ) ;\n qemu_format_nic_info_str ( qemu_get_queue ( core -> owner_nic ) , ( uint8_t * ) macaddr ) ;\n trace_e1000e_mac_set_sw ( MAC_ARG ( macaddr ) ) ;\n }"}
{"idx": 18555, "target": 0, "func": "int gdev_x_close ( gx_device_X * xdev ) {\n if ( xdev -> ghostview ) gdev_x_send_event ( xdev , xdev -> DONE ) ;\n if ( xdev -> vinfo ) {\n XFree ( ( char * ) xdev -> vinfo ) ;\n xdev -> vinfo = NULL ;\n }\n gdev_x_free_colors ( xdev ) ;\n if ( xdev -> cmap != DefaultColormapOfScreen ( xdev -> scr ) ) XFreeColormap ( xdev -> dpy , xdev -> cmap ) ;\n if ( xdev -> gc ) XFreeGC ( xdev -> dpy , xdev -> gc ) ;\n XCloseDisplay ( xdev -> dpy ) ;\n return 0 ;\n }"}
{"idx": 18556, "target": 1, "func": "static int g722_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n G722Context * c = avctx -> priv_data ;\n AVFrame * frame = data ;\n int16_t * out_buf ;\n int j , ret ;\n const int skip = 8 - c -> bits_per_codeword ;\n const int16_t * quantizer_table = low_inv_quants [ skip ] ;\n GetBitContext gb ;\n frame -> nb_samples = avpkt -> size * 2 ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n out_buf = ( int16_t * ) frame -> data [ 0 ] ;\n init_get_bits ( & gb , avpkt -> data , avpkt -> size * 8 ) ;\n for ( j = 0 ;\n j < avpkt -> size ;\n j ++ ) {\n int ilow , ihigh , rlow , rhigh , dhigh ;\n int xout1 , xout2 ;\n ihigh = get_bits ( & gb , 2 ) ;\n ilow = get_bits ( & gb , 6 - skip ) ;\n skip_bits ( & gb , skip ) ;\n rlow = av_clip ( ( c -> band [ 0 ] . scale_factor * quantizer_table [ ilow ] >> 10 ) + c -> band [ 0 ] . s_predictor , - 16384 , 16383 ) ;\n ff_g722_update_low_predictor ( & c -> band [ 0 ] , ilow >> ( 2 - skip ) ) ;\n dhigh = c -> band [ 1 ] . scale_factor * ff_g722_high_inv_quant [ ihigh ] >> 10 ;\n rhigh = av_clip ( dhigh + c -> band [ 1 ] . s_predictor , - 16384 , 16383 ) ;\n ff_g722_update_high_predictor ( & c -> band [ 1 ] , dhigh , ihigh ) ;\n c -> prev_samples [ c -> prev_samples_pos ++ ] = rlow + rhigh ;\n c -> prev_samples [ c -> prev_samples_pos ++ ] = rlow - rhigh ;\n ff_g722_apply_qmf ( c -> prev_samples + c -> prev_samples_pos - 24 , & xout1 , & xout2 ) ;\n * out_buf ++ = av_clip_int16 ( xout1 >> 11 ) ;\n * out_buf ++ = av_clip_int16 ( xout2 >> 11 ) ;\n if ( c -> prev_samples_pos >= PREV_SAMPLES_BUF_SIZE ) {\n memmove ( c -> prev_samples , c -> prev_samples + c -> prev_samples_pos - 22 , 22 * sizeof ( c -> prev_samples [ 0 ] ) ) ;\n c -> prev_samples_pos = 22 ;\n }\n }\n * got_frame_ptr = 1 ;\n return avpkt -> size ;\n }"}
{"idx": 18557, "target": 0, "func": "static int mss2_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n MSS2Context * ctx = avctx -> priv_data ;\n MSS12Context * c = & ctx -> c ;\n AVFrame * frame = data ;\n GetBitContext gb ;\n GetByteContext gB ;\n ArithCoder acoder ;\n int keyframe , has_wmv9 , has_mv , is_rle , is_555 , ret ;\n Rectangle wmv9rects [ MAX_WMV9_RECTANGLES ] , * r ;\n int used_rects = 0 , i , implicit_rect = 0 , av_uninit ( wmv9_mask ) ;\n av_assert0 ( FF_INPUT_BUFFER_PADDING_SIZE >= ARITH2_PADDING + ( MIN_CACHE_BITS + 7 ) / 8 ) ;\n init_get_bits ( & gb , buf , buf_size * 8 ) ;\n if ( keyframe = get_bits1 ( & gb ) ) skip_bits ( & gb , 7 ) ;\n has_wmv9 = get_bits1 ( & gb ) ;\n has_mv = keyframe ? 0 : get_bits1 ( & gb ) ;\n is_rle = get_bits1 ( & gb ) ;\n is_555 = is_rle && get_bits1 ( & gb ) ;\n if ( c -> slice_split > 0 ) ctx -> split_position = c -> slice_split ;\n else if ( c -> slice_split < 0 ) {\n if ( get_bits1 ( & gb ) ) {\n if ( get_bits1 ( & gb ) ) {\n if ( get_bits1 ( & gb ) ) ctx -> split_position = get_bits ( & gb , 16 ) ;\n else ctx -> split_position = get_bits ( & gb , 12 ) ;\n }\n else ctx -> split_position = get_bits ( & gb , 8 ) << 4 ;\n }\n else {\n if ( keyframe ) ctx -> split_position = avctx -> height / 2 ;\n }\n }\n else ctx -> split_position = avctx -> height ;\n if ( c -> slice_split && ( ctx -> split_position < 1 - is_555 || ctx -> split_position > avctx -> height - 1 ) ) return AVERROR_INVALIDDATA ;\n align_get_bits ( & gb ) ;\n buf += get_bits_count ( & gb ) >> 3 ;\n buf_size -= get_bits_count ( & gb ) >> 3 ;\n if ( buf_size < 1 ) return AVERROR_INVALIDDATA ;\n if ( is_555 && ( has_wmv9 || has_mv || c -> slice_split && ctx -> split_position ) ) return AVERROR_INVALIDDATA ;\n avctx -> pix_fmt = is_555 ? AV_PIX_FMT_RGB555 : AV_PIX_FMT_RGB24 ;\n if ( ctx -> last_pic . format != avctx -> pix_fmt ) av_frame_unref ( & ctx -> last_pic ) ;\n if ( has_wmv9 ) {\n bytestream2_init ( & gB , buf , buf_size + ARITH2_PADDING ) ;\n arith2_init ( & acoder , & gB ) ;\n implicit_rect = ! arith2_get_bit ( & acoder ) ;\n while ( arith2_get_bit ( & acoder ) ) {\n if ( used_rects == MAX_WMV9_RECTANGLES ) return AVERROR_INVALIDDATA ;\n r = & wmv9rects [ used_rects ] ;\n if ( ! used_rects ) r -> x = arith2_get_number ( & acoder , avctx -> width ) ;\n else r -> x = arith2_get_number ( & acoder , avctx -> width - wmv9rects [ used_rects - 1 ] . x ) + wmv9rects [ used_rects - 1 ] . x ;\n r -> y = arith2_get_number ( & acoder , avctx -> height ) ;\n r -> w = arith2_get_number ( & acoder , avctx -> width - r -> x ) + 1 ;\n r -> h = arith2_get_number ( & acoder , avctx -> height - r -> y ) + 1 ;\n used_rects ++ ;\n }\n if ( implicit_rect && used_rects ) {\n av_log ( avctx , AV_LOG_ERROR , \"implicit_rect && used_rects > 0\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( implicit_rect ) {\n wmv9rects [ 0 ] . x = 0 ;\n wmv9rects [ 0 ] . y = 0 ;\n wmv9rects [ 0 ] . w = avctx -> width ;\n wmv9rects [ 0 ] . h = avctx -> height ;\n used_rects = 1 ;\n }\n for ( i = 0 ;\n i < used_rects ;\n i ++ ) {\n if ( ! implicit_rect && arith2_get_bit ( & acoder ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"Unexpected grandchildren\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ! i ) {\n wmv9_mask = arith2_get_bit ( & acoder ) - 1 ;\n if ( ! wmv9_mask ) wmv9_mask = arith2_get_number ( & acoder , 256 ) ;\n }\n wmv9rects [ i ] . coded = arith2_get_number ( & acoder , 2 ) ;\n }\n buf += arith2_get_consumed_bytes ( & acoder ) ;\n buf_size -= arith2_get_consumed_bytes ( & acoder ) ;\n if ( buf_size < 1 ) return AVERROR_INVALIDDATA ;\n }\n c -> mvX = c -> mvY = 0 ;\n if ( keyframe && ! is_555 ) {\n if ( ( i = decode_pal_v2 ( c , buf , buf_size ) ) < 0 ) return AVERROR_INVALIDDATA ;\n buf += i ;\n buf_size -= i ;\n }\n else if ( has_mv ) {\n buf += 4 ;\n buf_size -= 4 ;\n if ( buf_size < 1 ) return AVERROR_INVALIDDATA ;\n c -> mvX = AV_RB16 ( buf - 4 ) - avctx -> width ;\n c -> mvY = AV_RB16 ( buf - 2 ) - avctx -> height ;\n }\n if ( c -> mvX < 0 || c -> mvY < 0 ) {\n FFSWAP ( uint8_t * , c -> pal_pic , c -> last_pal_pic ) ;\n if ( ( ret = ff_get_buffer ( avctx , frame , AV_GET_BUFFER_FLAG_REF ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( ctx -> last_pic . data [ 0 ] ) {\n av_assert0 ( frame -> linesize [ 0 ] == ctx -> last_pic . linesize [ 0 ] ) ;\n c -> last_rgb_pic = ctx -> last_pic . data [ 0 ] + ctx -> last_pic . linesize [ 0 ] * ( avctx -> height - 1 ) ;\n }\n else {\n av_log ( avctx , AV_LOG_ERROR , \"Missing keyframe\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n else {\n if ( ( ret = ff_reget_buffer ( avctx , & ctx -> last_pic ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( ( ret = av_frame_ref ( frame , & ctx -> last_pic ) ) < 0 ) return ret ;\n c -> last_rgb_pic = NULL ;\n }\n c -> rgb_pic = frame -> data [ 0 ] + frame -> linesize [ 0 ] * ( avctx -> height - 1 ) ;\n c -> rgb_stride = - frame -> linesize [ 0 ] ;\n frame -> key_frame = keyframe ;\n frame -> pict_type = keyframe ? AV_PICTURE_TYPE_I : AV_PICTURE_TYPE_P ;\n if ( is_555 ) {\n bytestream2_init ( & gB , buf , buf_size ) ;\n if ( decode_555 ( & gB , ( uint16_t * ) c -> rgb_pic , c -> rgb_stride >> 1 , keyframe , avctx -> width , avctx -> height ) ) return AVERROR_INVALIDDATA ;\n buf_size -= bytestream2_tell ( & gB ) ;\n }\n else {\n if ( keyframe ) {\n c -> corrupted = 0 ;\n ff_mss12_slicecontext_reset ( & ctx -> sc [ 0 ] ) ;\n if ( c -> slice_split ) ff_mss12_slicecontext_reset ( & ctx -> sc [ 1 ] ) ;\n }\n if ( is_rle ) {\n init_get_bits ( & gb , buf , buf_size * 8 ) ;\n if ( ret = decode_rle ( & gb , c -> pal_pic , c -> pal_stride , c -> rgb_pic , c -> rgb_stride , c -> pal , keyframe , ctx -> split_position , 0 , avctx -> width , avctx -> height ) ) return ret ;\n align_get_bits ( & gb ) ;\n if ( c -> slice_split ) if ( ret = decode_rle ( & gb , c -> pal_pic , c -> pal_stride , c -> rgb_pic , c -> rgb_stride , c -> pal , keyframe , ctx -> split_position , 1 , avctx -> width , avctx -> height ) ) return ret ;\n align_get_bits ( & gb ) ;\n buf += get_bits_count ( & gb ) >> 3 ;\n buf_size -= get_bits_count ( & gb ) >> 3 ;\n }\n else if ( ! implicit_rect || wmv9_mask != - 1 ) {\n if ( c -> corrupted ) return AVERROR_INVALIDDATA ;\n bytestream2_init ( & gB , buf , buf_size + ARITH2_PADDING ) ;\n arith2_init ( & acoder , & gB ) ;\n c -> keyframe = keyframe ;\n if ( c -> corrupted = ff_mss12_decode_rect ( & ctx -> sc [ 0 ] , & acoder , 0 , 0 , avctx -> width , ctx -> split_position ) ) return AVERROR_INVALIDDATA ;\n buf += arith2_get_consumed_bytes ( & acoder ) ;\n buf_size -= arith2_get_consumed_bytes ( & acoder ) ;\n if ( c -> slice_split ) {\n if ( buf_size < 1 ) return AVERROR_INVALIDDATA ;\n bytestream2_init ( & gB , buf , buf_size + ARITH2_PADDING ) ;\n arith2_init ( & acoder , & gB ) ;\n if ( c -> corrupted = ff_mss12_decode_rect ( & ctx -> sc [ 1 ] , & acoder , 0 , ctx -> split_position , avctx -> width , avctx -> height - ctx -> split_position ) ) return AVERROR_INVALIDDATA ;\n buf += arith2_get_consumed_bytes ( & acoder ) ;\n buf_size -= arith2_get_consumed_bytes ( & acoder ) ;\n }\n }\n else memset ( c -> pal_pic , 0 , c -> pal_stride * avctx -> height ) ;\n }\n if ( has_wmv9 ) {\n for ( i = 0 ;\n i < used_rects ;\n i ++ ) {\n int x = wmv9rects [ i ] . x ;\n int y = wmv9rects [ i ] . y ;\n int w = wmv9rects [ i ] . w ;\n int h = wmv9rects [ i ] . h ;\n if ( wmv9rects [ i ] . coded ) {\n int WMV9codedFrameSize ;\n if ( buf_size < 4 || ! ( WMV9codedFrameSize = AV_RL24 ( buf ) ) ) return AVERROR_INVALIDDATA ;\n if ( ret = decode_wmv9 ( avctx , buf + 3 , buf_size - 3 , x , y , w , h , wmv9_mask ) ) return ret ;\n buf += WMV9codedFrameSize + 3 ;\n buf_size -= WMV9codedFrameSize + 3 ;\n }\n else {\n uint8_t * dst = c -> rgb_pic + y * c -> rgb_stride + x * 3 ;\n if ( wmv9_mask != - 1 ) {\n ctx -> dsp . mss2_gray_fill_masked ( dst , c -> rgb_stride , wmv9_mask , c -> pal_pic + y * c -> pal_stride + x , c -> pal_stride , w , h ) ;\n }\n else {\n do {\n memset ( dst , 0x80 , w * 3 ) ;\n dst += c -> rgb_stride ;\n }\n while ( -- h ) ;\n }\n }\n }\n }\n if ( buf_size ) av_log ( avctx , AV_LOG_WARNING , \"buffer not fully consumed\\n\" ) ;\n if ( c -> mvX < 0 || c -> mvY < 0 ) {\n av_frame_unref ( & ctx -> last_pic ) ;\n ret = av_frame_ref ( & ctx -> last_pic , frame ) ;\n if ( ret < 0 ) return ret ;\n }\n * got_frame = 1 ;\n return avpkt -> size ;\n }"}
{"idx": 18558, "target": 1, "func": "int read_ndx_and_attrs ( int f_in , int f_out , int * iflag_ptr , uchar * type_ptr , char * buf , int * len_ptr ) {\n int len , iflags = 0 ;\n struct file_list * flist ;\n uchar fnamecmp_type = FNAMECMP_FNAME ;\n int ndx ;\n read_loop : while ( 1 ) {\n ndx = read_ndx ( f_in ) ;\n if ( ndx >= 0 ) break ;\n if ( ndx == NDX_DONE ) return ndx ;\n if ( ndx == NDX_DEL_STATS ) {\n read_del_stats ( f_in ) ;\n if ( am_sender && am_server ) write_del_stats ( f_out ) ;\n continue ;\n }\n if ( ! inc_recurse || am_sender ) {\n int last ;\n if ( first_flist ) last = first_flist -> prev -> ndx_start + first_flist -> prev -> used - 1 ;\n else last = - 1 ;\n rprintf ( FERROR , \"Invalid file index: %d (%d - %d) [%s]\\n\" , ndx , NDX_DONE , last , who_am_i ( ) ) ;\n exit_cleanup ( RERR_PROTOCOL ) ;\n }\n if ( ndx == NDX_FLIST_EOF ) {\n flist_eof = 1 ;\n if ( DEBUG_GTE ( FLIST , 3 ) ) rprintf ( FINFO , \"[%s] flist_eof=1\\n\" , who_am_i ( ) ) ;\n write_int ( f_out , NDX_FLIST_EOF ) ;\n continue ;\n }\n ndx = NDX_FLIST_OFFSET - ndx ;\n if ( ndx < 0 || ndx >= dir_flist -> used ) {\n ndx = NDX_FLIST_OFFSET - ndx ;\n rprintf ( FERROR , \"Invalid dir index: %d (%d - %d) [%s]\\n\" , ndx , NDX_FLIST_OFFSET , NDX_FLIST_OFFSET - dir_flist -> used + 1 , who_am_i ( ) ) ;\n exit_cleanup ( RERR_PROTOCOL ) ;\n }\n if ( DEBUG_GTE ( FLIST , 2 ) ) {\n rprintf ( FINFO , \"[%s] receiving flist for dir %d\\n\" , who_am_i ( ) , ndx ) ;\n }\n start_flist_forward ( ndx ) ;\n flist = recv_file_list ( f_in , ndx ) ;\n flist -> parent_ndx = ndx ;\n stop_flist_forward ( ) ;\n }\n iflags = protocol_version >= 29 ? read_shortint ( f_in ) : ITEM_TRANSFER | ITEM_MISSING_DATA ;\n if ( protocol_version < 30 && ndx == cur_flist -> used && iflags == ITEM_IS_NEW ) {\n if ( am_sender ) maybe_send_keepalive ( time ( NULL ) , MSK_ALLOW_FLUSH ) ;\n goto read_loop ;\n }\n flist = flist_for_ndx ( ndx , \"read_ndx_and_attrs\" ) ;\n if ( flist != cur_flist ) {\n cur_flist = flist ;\n if ( am_sender ) {\n file_old_total = cur_flist -> used ;\n for ( flist = first_flist ;\n flist != cur_flist ;\n flist = flist -> next ) file_old_total += flist -> used ;\n }\n }\n if ( iflags & ITEM_BASIS_TYPE_FOLLOWS ) fnamecmp_type = read_byte ( f_in ) ;\n * type_ptr = fnamecmp_type ;\n if ( iflags & ITEM_XNAME_FOLLOWS ) {\n if ( ( len = read_vstring ( f_in , buf , MAXPATHLEN ) ) < 0 ) exit_cleanup ( RERR_PROTOCOL ) ;\n }\n else {\n * buf = '\\0' ;\n len = - 1 ;\n }\n * len_ptr = len ;\n if ( iflags & ITEM_TRANSFER ) {\n int i = ndx - cur_flist -> ndx_start ;\n if ( i < 0 || ! S_ISREG ( cur_flist -> files [ i ] -> mode ) ) {\n rprintf ( FERROR , \"received request to transfer non-regular file: %d [%s]\\n\" , ndx , who_am_i ( ) ) ;\n exit_cleanup ( RERR_PROTOCOL ) ;\n }\n }\n * iflag_ptr = iflags ;\n return ndx ;\n }"}
{"idx": 18559, "target": 0, "func": "static uint8_t pfkey_proto_from_xfrm ( uint8_t proto ) {\n return proto ? proto : IPSEC_PROTO_ANY ;\n }"}
{"idx": 18560, "target": 1, "func": "static int load_input_picture ( MpegEncContext * s , const AVFrame * pic_arg ) {\n AVFrame * pic = NULL ;\n int64_t pts ;\n int i , display_picture_number = 0 ;\n const int encoding_delay = s -> max_b_frames ? s -> max_b_frames : ( s -> low_delay ? 0 : 1 ) ;\n int direct = 1 ;\n if ( pic_arg ) {\n pts = pic_arg -> pts ;\n display_picture_number = s -> input_picture_number ++ ;\n if ( pts != AV_NOPTS_VALUE ) {\n if ( s -> user_specified_pts != AV_NOPTS_VALUE ) {\n int64_t time = pts ;\n int64_t last = s -> user_specified_pts ;\n if ( time <= last ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"Error, Invalid timestamp=%\" PRId64 \", \" \"last=%\" PRId64 \"\\n\" , pts , s -> user_specified_pts ) ;\n return - 1 ;\n }\n if ( ! s -> low_delay && display_picture_number == 1 ) s -> dts_delta = time - last ;\n }\n s -> user_specified_pts = pts ;\n }\n else {\n if ( s -> user_specified_pts != AV_NOPTS_VALUE ) {\n s -> user_specified_pts = pts = s -> user_specified_pts + 1 ;\n av_log ( s -> avctx , AV_LOG_INFO , \"Warning: AVFrame.pts=? trying to guess (%\" PRId64 \")\\n\" , pts ) ;\n }\n else {\n pts = display_picture_number ;\n }\n }\n }\n if ( pic_arg ) {\n if ( encoding_delay && ! ( s -> flags & CODEC_FLAG_INPUT_PRESERVED ) ) direct = 0 ;\n if ( pic_arg -> linesize [ 0 ] != s -> linesize ) direct = 0 ;\n if ( pic_arg -> linesize [ 1 ] != s -> uvlinesize ) direct = 0 ;\n if ( pic_arg -> linesize [ 2 ] != s -> uvlinesize ) direct = 0 ;\n av_dlog ( s -> avctx , \"%d %d %d %d\\n\" , pic_arg -> linesize [ 0 ] , pic_arg -> linesize [ 1 ] , s -> linesize , s -> uvlinesize ) ;\n if ( direct ) {\n i = ff_find_unused_picture ( s , 1 ) ;\n if ( i < 0 ) return i ;\n pic = & s -> picture [ i ] . f ;\n pic -> reference = 3 ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n pic -> data [ i ] = pic_arg -> data [ i ] ;\n pic -> linesize [ i ] = pic_arg -> linesize [ i ] ;\n }\n if ( ff_alloc_picture ( s , ( Picture * ) pic , 1 ) < 0 ) {\n return - 1 ;\n }\n }\n else {\n i = ff_find_unused_picture ( s , 0 ) ;\n if ( i < 0 ) return i ;\n pic = & s -> picture [ i ] . f ;\n pic -> reference = 3 ;\n if ( ff_alloc_picture ( s , ( Picture * ) pic , 0 ) < 0 ) {\n return - 1 ;\n }\n if ( pic -> data [ 0 ] + INPLACE_OFFSET == pic_arg -> data [ 0 ] && pic -> data [ 1 ] + INPLACE_OFFSET == pic_arg -> data [ 1 ] && pic -> data [ 2 ] + INPLACE_OFFSET == pic_arg -> data [ 2 ] ) {\n }\n else {\n int h_chroma_shift , v_chroma_shift ;\n av_pix_fmt_get_chroma_sub_sample ( s -> avctx -> pix_fmt , & h_chroma_shift , & v_chroma_shift ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n int src_stride = pic_arg -> linesize [ i ] ;\n int dst_stride = i ? s -> uvlinesize : s -> linesize ;\n int h_shift = i ? h_chroma_shift : 0 ;\n int v_shift = i ? v_chroma_shift : 0 ;\n int w = s -> width >> h_shift ;\n int h = s -> height >> v_shift ;\n uint8_t * src = pic_arg -> data [ i ] ;\n uint8_t * dst = pic -> data [ i ] ;\n if ( ! s -> avctx -> rc_buffer_size ) dst += INPLACE_OFFSET ;\n if ( src_stride == dst_stride ) memcpy ( dst , src , src_stride * h ) ;\n else {\n while ( h -- ) {\n memcpy ( dst , src , w ) ;\n dst += dst_stride ;\n src += src_stride ;\n }\n }\n }\n }\n }\n copy_picture_attributes ( s , pic , pic_arg ) ;\n pic -> display_picture_number = display_picture_number ;\n pic -> pts = pts ;\n }\n for ( i = 1 ;\n i < MAX_PICTURE_COUNT ;\n i ++ ) s -> input_picture [ i - 1 ] = s -> input_picture [ i ] ;\n s -> input_picture [ encoding_delay ] = ( Picture * ) pic ;\n return 0 ;\n }"}
{"idx": 18561, "target": 0, "func": "static int dissect_h245_OCTET_STRING ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , NO_BOUND , NO_BOUND , FALSE , NULL ) ;\n return offset ;\n }"}
{"idx": 18562, "target": 0, "func": "int64_t cpu_get_clock ( void ) {\n int64_t ti ;\n if ( ! timers_state . cpu_ticks_enabled ) {\n return timers_state . cpu_clock_offset ;\n }\n else {\n ti = get_clock ( ) ;\n return ti + timers_state . cpu_clock_offset ;\n }\n }"}
{"idx": 18563, "target": 0, "func": "static inline u32 current_sid ( void ) {\n const struct task_security_struct * tsec = current_security ( ) ;\n return tsec -> sid ;\n }"}
{"idx": 18564, "target": 0, "func": "static gboolean ngsniffer_dump_finish ( wtap_dumper * wdh , int * err ) {\n char buf [ 6 ] = {\n REC_EOF , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 }\n ;\n if ( ! wtap_dump_file_write ( wdh , buf , 6 , err ) ) return FALSE ;\n return TRUE ;\n }"}
{"idx": 18565, "target": 0, "func": "static gboolean should_skip_file ( CommonJob * common , GFile * file ) {\n if ( common -> skip_files != NULL ) {\n return g_hash_table_lookup ( common -> skip_files , file ) != NULL ;\n }\n return FALSE ;\n }"}
{"idx": 18566, "target": 0, "func": "static void bitplanar2chunky ( CDXLVideoContext * c , int linesize , uint8_t * out ) {\n GetBitContext gb ;\n int x , y , plane ;\n init_get_bits ( & gb , c -> video , c -> video_size * 8 ) ;\n for ( plane = 0 ;\n plane < c -> bpp ;\n plane ++ ) {\n for ( y = 0 ;\n y < c -> avctx -> height ;\n y ++ ) {\n for ( x = 0 ;\n x < c -> avctx -> width ;\n x ++ ) out [ linesize * y + x ] |= get_bits1 ( & gb ) << plane ;\n skip_bits ( & gb , c -> padded_bits ) ;\n }\n }\n }"}
{"idx": 18567, "target": 0, "func": "static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 18568, "target": 0, "func": "static void do_list_files ( struct st_command * command ) {\n int error ;\n static DYNAMIC_STRING ds_dirname ;\n static DYNAMIC_STRING ds_wild ;\n const struct command_arg list_files_args [ ] = {\n {\n \"dirname\" , ARG_STRING , TRUE , & ds_dirname , \"Directory to list\" }\n , {\n \"file\" , ARG_STRING , FALSE , & ds_wild , \"Filename (incl. wildcard)\" }\n }\n ;\n DBUG_ENTER ( \"do_list_files\" ) ;\n command -> used_replace = 1 ;\n check_command_args ( command , command -> first_argument , list_files_args , sizeof ( list_files_args ) / sizeof ( struct command_arg ) , ' ' ) ;\n error = get_list_files ( & ds_res , & ds_dirname , & ds_wild ) ;\n handle_command_error ( command , error , my_errno ) ;\n dynstr_free ( & ds_dirname ) ;\n dynstr_free ( & ds_wild ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 18569, "target": 0, "func": "static int pfkey_add ( struct sock * sk , struct sk_buff * skb , const struct sadb_msg * hdr , void * const * ext_hdrs ) {\n struct net * net = sock_net ( sk ) ;\n struct xfrm_state * x ;\n int err ;\n struct km_event c ;\n x = pfkey_msg2xfrm_state ( net , hdr , ext_hdrs ) ;\n if ( IS_ERR ( x ) ) return PTR_ERR ( x ) ;\n xfrm_state_hold ( x ) ;\n if ( hdr -> sadb_msg_type == SADB_ADD ) err = xfrm_state_add ( x ) ;\n else err = xfrm_state_update ( x ) ;\n xfrm_audit_state_add ( x , err ? 0 : 1 , audit_get_loginuid ( current ) , audit_get_sessionid ( current ) , 0 ) ;\n if ( err < 0 ) {\n x -> km . state = XFRM_STATE_DEAD ;\n __xfrm_state_put ( x ) ;\n goto out ;\n }\n if ( hdr -> sadb_msg_type == SADB_ADD ) c . event = XFRM_MSG_NEWSA ;\n else c . event = XFRM_MSG_UPDSA ;\n c . seq = hdr -> sadb_msg_seq ;\n c . portid = hdr -> sadb_msg_pid ;\n km_state_notify ( x , & c ) ;\n out : xfrm_state_put ( x ) ;\n return err ;\n }"}
{"idx": 18570, "target": 0, "func": "int av_image_fill_pointers ( uint8_t * data [ 4 ] , enum PixelFormat pix_fmt , int height , uint8_t * ptr , const int linesizes [ 4 ] ) {\n int i , total_size , size [ 4 ] , has_plane [ 4 ] ;\n const AVPixFmtDescriptor * desc = & av_pix_fmt_descriptors [ pix_fmt ] ;\n memset ( data , 0 , sizeof ( data [ 0 ] ) * 4 ) ;\n memset ( size , 0 , sizeof ( size ) ) ;\n memset ( has_plane , 0 , sizeof ( has_plane ) ) ;\n if ( ( unsigned ) pix_fmt >= PIX_FMT_NB || desc -> flags & PIX_FMT_HWACCEL ) return AVERROR ( EINVAL ) ;\n data [ 0 ] = ptr ;\n if ( linesizes [ 0 ] > ( INT_MAX - 1024 ) / height ) return AVERROR ( EINVAL ) ;\n size [ 0 ] = linesizes [ 0 ] * height ;\n if ( desc -> flags & PIX_FMT_PAL ) {\n size [ 0 ] = ( size [ 0 ] + 3 ) & ~ 3 ;\n data [ 1 ] = ptr + size [ 0 ] ;\n return size [ 0 ] + 256 * 4 ;\n }\n for ( i = 0 ;\n i < 4 ;\n i ++ ) has_plane [ desc -> comp [ i ] . plane ] = 1 ;\n total_size = size [ 0 ] ;\n for ( i = 1 ;\n i < 4 && has_plane [ i ] ;\n i ++ ) {\n int h , s = ( i == 1 || i == 2 ) ? desc -> log2_chroma_h : 0 ;\n data [ i ] = data [ i - 1 ] + size [ i - 1 ] ;\n h = ( height + ( 1 << s ) - 1 ) >> s ;\n if ( linesizes [ i ] > INT_MAX / h ) return AVERROR ( EINVAL ) ;\n size [ i ] = h * linesizes [ i ] ;\n if ( total_size > INT_MAX - size [ i ] ) return AVERROR ( EINVAL ) ;\n total_size += size [ i ] ;\n }\n return total_size ;\n }"}
{"idx": 18571, "target": 0, "func": "static void init_signals ( void ) {\n sigset_t set ;\n struct sigaction sa ;\n DBUG_ENTER ( \"init_signals\" ) ;\n my_sigset ( THR_SERVER_ALARM , print_signal_warning ) ;\n if ( opt_stack_trace || ( test_flags & TEST_CORE_ON_SIGNAL ) ) {\n sa . sa_flags = SA_RESETHAND | SA_NODEFER ;\n sigemptyset ( & sa . sa_mask ) ;\n sigprocmask ( SIG_SETMASK , & sa . sa_mask , NULL ) ;\n my_init_stacktrace ( ) ;\n # if defined ( __amiga__ ) sa . sa_handler = ( void ( * ) ( ) ) handle_fatal_signal ;\n # else sa . sa_handler = handle_fatal_signal ;\n # endif sigaction ( SIGSEGV , & sa , NULL ) ;\n sigaction ( SIGABRT , & sa , NULL ) ;\n # ifdef SIGBUS sigaction ( SIGBUS , & sa , NULL ) ;\n # endif sigaction ( SIGILL , & sa , NULL ) ;\n sigaction ( SIGFPE , & sa , NULL ) ;\n }\n # ifdef HAVE_GETRLIMIT if ( test_flags & TEST_CORE_ON_SIGNAL ) {\n STRUCT_RLIMIT rl ;\n rl . rlim_cur = rl . rlim_max = ( rlim_t ) RLIM_INFINITY ;\n if ( setrlimit ( RLIMIT_CORE , & rl ) && global_system_variables . log_warnings ) sql_print_warning ( \"setrlimit could not change the size of core files to 'infinity';\n We may not be able to generate a core file on signals\" ) ;\n }\n # endif ( void ) sigemptyset ( & set ) ;\n my_sigset ( SIGPIPE , SIG_IGN ) ;\n sigaddset ( & set , SIGPIPE ) ;\n # ifndef IGNORE_SIGHUP_SIGQUIT sigaddset ( & set , SIGQUIT ) ;\n sigaddset ( & set , SIGHUP ) ;\n # endif sigaddset ( & set , SIGTERM ) ;\n sigemptyset ( & sa . sa_mask ) ;\n sa . sa_flags = 0 ;\n sa . sa_handler = print_signal_warning ;\n sigaction ( SIGTERM , & sa , ( struct sigaction * ) 0 ) ;\n sa . sa_flags = 0 ;\n sa . sa_handler = print_signal_warning ;\n sigaction ( SIGHUP , & sa , ( struct sigaction * ) 0 ) ;\n if ( thd_lib_detected != THD_LIB_LT ) sigaddset ( & set , THR_SERVER_ALARM ) ;\n if ( test_flags & TEST_SIGINT ) {\n my_sigset ( SIGINT , end_mysqld_signal ) ;\n sigdelset ( & set , SIGINT ) ;\n }\n else {\n sigaddset ( & set , SIGINT ) ;\n # ifdef SIGTSTP sigaddset ( & set , SIGTSTP ) ;\n # endif }\n sigprocmask ( SIG_SETMASK , & set , NULL ) ;\n pthread_sigmask ( SIG_SETMASK , & set , NULL ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 18572, "target": 0, "func": "static StkId tryfuncTM ( lua_State * L , StkId func ) {\n const TValue * tm = luaT_gettmbyobj ( L , func , TM_CALL ) ;\n StkId p ;\n ptrdiff_t funcr = savestack ( L , func ) ;\n if ( ! ttisfunction ( tm ) ) luaG_typeerror ( L , func , \"call\" ) ;\n for ( p = L -> top ;\n p > func ;\n p -- ) setobjs2s ( L , p , p - 1 ) ;\n incr_top ( L ) ;\n func = restorestack ( L , funcr ) ;\n setobj2s ( L , func , tm ) ;\n return func ;\n }"}
{"idx": 18573, "target": 1, "func": "static void _IMAPToUnicodeWithOffsets ( UConverterToUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n UConverter * cnv ;\n const uint8_t * source , * sourceLimit ;\n UChar * target ;\n const UChar * targetLimit ;\n int32_t * offsets ;\n uint8_t * bytes ;\n uint8_t byteIndex ;\n int32_t length , targetCapacity ;\n uint16_t bits ;\n int8_t base64Counter ;\n UBool inDirectMode ;\n int8_t base64Value ;\n int32_t sourceIndex , nextSourceIndex ;\n UChar c ;\n uint8_t b ;\n cnv = pArgs -> converter ;\n source = ( const uint8_t * ) pArgs -> source ;\n sourceLimit = ( const uint8_t * ) pArgs -> sourceLimit ;\n target = pArgs -> target ;\n targetLimit = pArgs -> targetLimit ;\n offsets = pArgs -> offsets ;\n {\n uint32_t status = cnv -> toUnicodeStatus ;\n inDirectMode = ( UBool ) ( ( status >> 24 ) & 1 ) ;\n base64Counter = ( int8_t ) ( status >> 16 ) ;\n bits = ( uint16_t ) status ;\n }\n bytes = cnv -> toUBytes ;\n byteIndex = cnv -> toULength ;\n sourceIndex = byteIndex == 0 ? 0 : - 1 ;\n nextSourceIndex = 0 ;\n if ( inDirectMode ) {\n directMode : byteIndex = 0 ;\n length = ( int32_t ) ( sourceLimit - source ) ;\n targetCapacity = ( int32_t ) ( targetLimit - target ) ;\n if ( length > targetCapacity ) {\n length = targetCapacity ;\n }\n while ( length > 0 ) {\n b = * source ++ ;\n if ( ! isLegalIMAP ( b ) ) {\n bytes [ 0 ] = b ;\n byteIndex = 1 ;\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n else if ( b != AMPERSAND ) {\n * target ++ = b ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ++ ;\n }\n }\n else {\n nextSourceIndex = ++ sourceIndex ;\n inDirectMode = FALSE ;\n byteIndex = 0 ;\n bits = 0 ;\n base64Counter = - 1 ;\n goto unicodeMode ;\n }\n -- length ;\n }\n if ( source < sourceLimit && target >= targetLimit ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n else {\n unicodeMode : while ( source < sourceLimit ) {\n if ( target < targetLimit ) {\n bytes [ byteIndex ++ ] = b = * source ++ ;\n ++ nextSourceIndex ;\n if ( b > 0x7e ) {\n inDirectMode = TRUE ;\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n else if ( ( base64Value = FROM_BASE64_IMAP ( b ) ) >= 0 ) {\n switch ( base64Counter ) {\n case - 1 : case 0 : bits = base64Value ;\n base64Counter = 1 ;\n break ;\n case 1 : case 3 : case 4 : case 6 : bits = ( uint16_t ) ( ( bits << 6 ) | base64Value ) ;\n ++ base64Counter ;\n break ;\n case 2 : c = ( UChar ) ( ( bits << 4 ) | ( base64Value >> 2 ) ) ;\n if ( isLegalIMAP ( c ) ) {\n inDirectMode = TRUE ;\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n goto endloop ;\n }\n * target ++ = c ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n sourceIndex = nextSourceIndex - 1 ;\n }\n bytes [ 0 ] = b ;\n byteIndex = 1 ;\n bits = ( uint16_t ) ( base64Value & 3 ) ;\n base64Counter = 3 ;\n break ;\n case 5 : c = ( UChar ) ( ( bits << 2 ) | ( base64Value >> 4 ) ) ;\n if ( isLegalIMAP ( c ) ) {\n inDirectMode = TRUE ;\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n goto endloop ;\n }\n * target ++ = c ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n sourceIndex = nextSourceIndex - 1 ;\n }\n bytes [ 0 ] = b ;\n byteIndex = 1 ;\n bits = ( uint16_t ) ( base64Value & 15 ) ;\n base64Counter = 6 ;\n break ;\n case 7 : c = ( UChar ) ( ( bits << 6 ) | base64Value ) ;\n if ( isLegalIMAP ( c ) ) {\n inDirectMode = TRUE ;\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n goto endloop ;\n }\n * target ++ = c ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex ;\n sourceIndex = nextSourceIndex ;\n }\n byteIndex = 0 ;\n bits = 0 ;\n base64Counter = 0 ;\n break ;\n default : break ;\n }\n }\n else if ( base64Value == - 2 ) {\n inDirectMode = TRUE ;\n if ( base64Counter == - 1 ) {\n * target ++ = AMPERSAND ;\n if ( offsets != NULL ) {\n * offsets ++ = sourceIndex - 1 ;\n }\n }\n else {\n if ( bits != 0 || ( base64Counter != 0 && base64Counter != 3 && base64Counter != 6 ) ) {\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n }\n sourceIndex = nextSourceIndex ;\n goto directMode ;\n }\n else {\n if ( base64Counter == - 1 ) {\n -- sourceIndex ;\n bytes [ 0 ] = AMPERSAND ;\n bytes [ 1 ] = b ;\n byteIndex = 2 ;\n }\n inDirectMode = TRUE ;\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n break ;\n }\n }\n else {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n }\n endloop : if ( U_SUCCESS ( * pErrorCode ) && ! inDirectMode && byteIndex == 0 && pArgs -> flush && source >= sourceLimit ) {\n if ( base64Counter == - 1 ) {\n bytes [ 0 ] = AMPERSAND ;\n byteIndex = 1 ;\n }\n inDirectMode = TRUE ;\n * pErrorCode = U_TRUNCATED_CHAR_FOUND ;\n }\n cnv -> toUnicodeStatus = ( ( uint32_t ) inDirectMode << 24 ) | ( ( uint32_t ) ( ( uint8_t ) base64Counter ) << 16 ) | ( uint32_t ) bits ;\n cnv -> toULength = byteIndex ;\n pArgs -> source = ( const char * ) source ;\n pArgs -> target = target ;\n pArgs -> offsets = offsets ;\n return ;\n }"}
{"idx": 18574, "target": 0, "func": "static inline PixelTrait GetPixelCrTraits ( const Image * restrict image ) {\n return ( image -> channel_map [ CrPixelChannel ] . traits ) ;\n }"}
{"idx": 18575, "target": 0, "func": "static gint dissect_sep ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , gint offset , guint32 interface_id , guint32 adapter_id , guint32 chandle ) {\n proto_tree * sep_tree ;\n proto_item * sep_item ;\n guint i_sep = 1 ;\n guint media_type ;\n guint type ;\n guint seid ;\n guint in_use ;\n guint items ;\n guint32 direction ;\n direction = ( pinfo -> p2p_dir == P2P_DIR_SENT ) ? P2P_DIR_RECV : P2P_DIR_SENT ;\n items = tvb_reported_length_remaining ( tvb , offset ) / 2 ;\n while ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n seid = tvb_get_guint8 ( tvb , offset ) ;\n in_use = seid & 0x02 ;\n seid = seid >> 2 ;\n media_type = tvb_get_guint8 ( tvb , offset + 1 ) >> 4 ;\n type = ( tvb_get_guint8 ( tvb , offset + 1 ) & 0x08 ) >> 3 ;\n sep_item = proto_tree_add_none_format ( tree , hf_btavdtp_acp_sep , tvb , offset , 2 , \"ACP SEP [%u - %s %s] item %u/%u\" , seid , val_to_str_const ( media_type , media_type_vals , \"unknown\" ) , val_to_str_const ( type , sep_type_vals , \"unknown\" ) , i_sep , items ) ;\n sep_tree = proto_item_add_subtree ( sep_item , ett_btavdtp_sep ) ;\n proto_tree_add_item ( sep_tree , hf_btavdtp_sep_seid , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( sep_tree , hf_btavdtp_sep_inuse , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( sep_tree , hf_btavdtp_sep_rfa0 , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n proto_tree_add_item ( sep_tree , hf_btavdtp_sep_media_type , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( sep_tree , hf_btavdtp_sep_type , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( sep_tree , hf_btavdtp_sep_rfa1 , tvb , offset , 1 , ENC_NA ) ;\n if ( ! pinfo -> fd -> flags . visited ) {\n sep_entry_t * sep_data ;\n wmem_tree_key_t key [ 7 ] ;\n guint32 frame_number = pinfo -> num ;\n key [ 0 ] . length = 1 ;\n key [ 0 ] . key = & interface_id ;\n key [ 1 ] . length = 1 ;\n key [ 1 ] . key = & adapter_id ;\n key [ 2 ] . length = 1 ;\n key [ 2 ] . key = & chandle ;\n key [ 3 ] . length = 1 ;\n key [ 3 ] . key = & direction ;\n key [ 4 ] . length = 1 ;\n key [ 4 ] . key = & seid ;\n key [ 5 ] . length = 1 ;\n key [ 5 ] . key = & frame_number ;\n key [ 6 ] . length = 0 ;\n key [ 6 ] . key = NULL ;\n sep_data = wmem_new0 ( wmem_file_scope ( ) , sep_entry_t ) ;\n sep_data -> seid = seid ;\n sep_data -> type = type ;\n sep_data -> media_type = media_type ;\n sep_data -> codec = - 1 ;\n if ( in_use ) {\n sep_data -> state = SEP_STATE_IN_USE ;\n }\n else {\n sep_data -> state = SEP_STATE_FREE ;\n }\n wmem_tree_insert32_array ( sep_list , key , sep_data ) ;\n }\n offset += 1 ;\n i_sep += 1 ;\n }\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" - items: %u\" , items ) ;\n return offset ;\n }"}
{"idx": 18576, "target": 0, "func": "static int kvm_get_sregs ( X86CPU * cpu ) {\n CPUX86State * env = & cpu -> env ;\n struct kvm_sregs sregs ;\n int bit , i , ret ;\n ret = kvm_vcpu_ioctl ( CPU ( cpu ) , KVM_GET_SREGS , & sregs ) ;\n if ( ret < 0 ) {\n return ret ;\n }\n env -> interrupt_injected = - 1 ;\n for ( i = 0 ;\n i < ARRAY_SIZE ( sregs . interrupt_bitmap ) ;\n i ++ ) {\n if ( sregs . interrupt_bitmap [ i ] ) {\n bit = ctz64 ( sregs . interrupt_bitmap [ i ] ) ;\n env -> interrupt_injected = i * 64 + bit ;\n break ;\n }\n }\n get_seg ( & env -> segs [ R_CS ] , & sregs . cs ) ;\n get_seg ( & env -> segs [ R_DS ] , & sregs . ds ) ;\n get_seg ( & env -> segs [ R_ES ] , & sregs . es ) ;\n get_seg ( & env -> segs [ R_FS ] , & sregs . fs ) ;\n get_seg ( & env -> segs [ R_GS ] , & sregs . gs ) ;\n get_seg ( & env -> segs [ R_SS ] , & sregs . ss ) ;\n get_seg ( & env -> tr , & sregs . tr ) ;\n get_seg ( & env -> ldt , & sregs . ldt ) ;\n env -> idt . limit = sregs . idt . limit ;\n env -> idt . base = sregs . idt . base ;\n env -> gdt . limit = sregs . gdt . limit ;\n env -> gdt . base = sregs . gdt . base ;\n env -> cr [ 0 ] = sregs . cr0 ;\n env -> cr [ 2 ] = sregs . cr2 ;\n env -> cr [ 3 ] = sregs . cr3 ;\n env -> cr [ 4 ] = sregs . cr4 ;\n env -> efer = sregs . efer ;\n x86_update_hflags ( env ) ;\n return 0 ;\n }"}
{"idx": 18577, "target": 0, "func": "static inline int snmp6_register_dev ( struct inet6_dev * idev ) {\n return 0 ;\n }"}
{"idx": 18578, "target": 0, "func": "int dissect_unknown_ber ( packet_info * pinfo , tvbuff_t * tvb , int offset , proto_tree * tree ) {\n return try_dissect_unknown_ber ( pinfo , tvb , offset , tree , 1 ) ;\n }"}
{"idx": 18579, "target": 0, "func": "void PNGAPI png_set_pHYs ( png_structp png_ptr , png_infop info_ptr , png_uint_32 res_x , png_uint_32 res_y , int unit_type ) {\n png_debug1 ( 1 , \"in %s storage function\" , \"pHYs\" ) ;\n if ( png_ptr == NULL || info_ptr == NULL ) return ;\n info_ptr -> x_pixels_per_unit = res_x ;\n info_ptr -> y_pixels_per_unit = res_y ;\n info_ptr -> phys_unit_type = ( png_byte ) unit_type ;\n info_ptr -> valid |= PNG_INFO_pHYs ;\n }"}
{"idx": 18580, "target": 0, "func": "void proto_register_bta2dp_content_protection_header_scms_t ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_bta2dp_l_bit , {\n \"L-bit\" , \"bta2dp.content_protection_header.scms_t.l_bit\" , FT_BOOLEAN , 8 , NULL , 0x01 , NULL , HFILL }\n }\n , {\n & hf_bta2dp_cp_bit , {\n \"Cp-bit\" , \"bta2dp.content_protection_header.scms_t.cp_bit\" , FT_BOOLEAN , 8 , NULL , 0x02 , NULL , HFILL }\n }\n , {\n & hf_bta2dp_reserved , {\n \"Reserved\" , \"bta2dp.content_protection_header.scms_t.reserved\" , FT_BOOLEAN , 8 , NULL , 0xFC , NULL , HFILL }\n }\n }\n ;\n static gint * ett [ ] = {\n & ett_bta2dp_cph_scms_t }\n ;\n proto_bta2dp_cph_scms_t = proto_register_protocol ( \"Bluetooth A2DP Content Protection Header SCMS-T\" , \"BT A2DP Content Protection Header SCMS-T\" , \"bta2dp_content_protection_header_scms_t\" ) ;\n proto_register_field_array ( proto_bta2dp_cph_scms_t , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n register_dissector ( \"bta2dp_content_protection_header_scms_t\" , dissect_a2dp_cp_scms_t , proto_bta2dp_cph_scms_t ) ;\n }"}
{"idx": 18581, "target": 0, "func": "int tls1_cert_verify_mac ( SSL * s , int md_nid , unsigned char * out ) {\n unsigned int ret ;\n EVP_MD_CTX ctx , * d = NULL ;\n int i ;\n if ( s -> s3 -> handshake_buffer ) if ( ! ssl3_digest_cached_records ( s ) ) return 0 ;\n for ( i = 0 ;\n i < SSL_MAX_DIGEST ;\n i ++ ) {\n if ( s -> s3 -> handshake_dgst [ i ] && EVP_MD_CTX_type ( s -> s3 -> handshake_dgst [ i ] ) == md_nid ) {\n d = s -> s3 -> handshake_dgst [ i ] ;\n break ;\n }\n }\n if ( ! d ) {\n SSLerr ( SSL_F_TLS1_CERT_VERIFY_MAC , SSL_R_NO_REQUIRED_DIGEST ) ;\n return 0 ;\n }\n EVP_MD_CTX_init ( & ctx ) ;\n EVP_MD_CTX_copy_ex ( & ctx , d ) ;\n EVP_DigestFinal_ex ( & ctx , out , & ret ) ;\n EVP_MD_CTX_cleanup ( & ctx ) ;\n return ( ( int ) ret ) ;\n }"}
{"idx": 18582, "target": 1, "func": "static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 18583, "target": 0, "func": "BerElement * ber_alloc_t ( int options ) {\n BerElement * ber ;\n ber = ( BerElement * ) LBER_CALLOC ( 1 , sizeof ( BerElement ) ) ;\n if ( ber == NULL ) {\n return NULL ;\n }\n ber -> ber_valid = LBER_VALID_BERELEMENT ;\n ber -> ber_tag = LBER_DEFAULT ;\n ber -> ber_options = options ;\n ber -> ber_debug = ber_int_debug ;\n assert ( LBER_VALID ( ber ) ) ;\n return ber ;\n }"}
{"idx": 18584, "target": 0, "func": "static COMMANDS * find_command ( char cmd_char ) {\n DBUG_ENTER ( \"find_command\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"cmd_char: %d\" , cmd_char ) ) ;\n int index = - 1 ;\n if ( real_binary_mode ) {\n if ( cmd_char == 'C' ) index = charset_index ;\n }\n else index = get_command_index ( cmd_char ) ;\n if ( index >= 0 ) {\n DBUG_PRINT ( \"exit\" , ( \"found command: %s\" , commands [ index ] . name ) ) ;\n DBUG_RETURN ( & commands [ index ] ) ;\n }\n else DBUG_RETURN ( ( COMMANDS * ) 0 ) ;\n }"}
{"idx": 18585, "target": 0, "func": "static int dissect_printer_attributes ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n guint32 attributes ;\n static const int * hf_attributes [ ] = {\n & hf_printer_attributes_published , & hf_printer_attributes_raw_only , & hf_printer_attributes_enable_bidi , & hf_printer_attributes_work_offline , & hf_printer_attributes_do_complete_first , & hf_printer_attributes_keep_printed_jobs , & hf_printer_attributes_enable_devq , & hf_printer_attributes_local , & hf_printer_attributes_hidden , & hf_printer_attributes_network , & hf_printer_attributes_shared , & hf_printer_attributes_default , & hf_printer_attributes_direct , & hf_printer_attributes_queued , NULL }\n ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , NULL , di , drep , - 1 , & attributes ) ;\n proto_tree_add_bitmask_value_with_flags ( tree , tvb , offset - 4 , hf_printer_attributes , ett_printer_attributes , hf_attributes , attributes , BMT_NO_APPEND ) ;\n return offset ;\n }"}
{"idx": 18586, "target": 0, "func": "static indic_position_t consonant_position_from_face ( const indic_shape_plan_t * indic_plan , const hb_codepoint_t consonant , const hb_codepoint_t virama , hb_face_t * face ) {\n hb_codepoint_t glyphs [ 3 ] = {\n virama , consonant , virama }\n ;\n if ( indic_plan -> blwf . would_substitute ( glyphs , 2 , face ) || indic_plan -> blwf . would_substitute ( glyphs + 1 , 2 , face ) ) return POS_BELOW_C ;\n if ( indic_plan -> pstf . would_substitute ( glyphs , 2 , face ) || indic_plan -> pstf . would_substitute ( glyphs + 1 , 2 , face ) ) return POS_POST_C ;\n unsigned int pref_len = indic_plan -> config -> pref_len ;\n if ( ( pref_len == PREF_LEN_2 && ( indic_plan -> pref . would_substitute ( glyphs , 2 , face ) || indic_plan -> pref . would_substitute ( glyphs + 1 , 2 , face ) ) ) || ( pref_len == PREF_LEN_1 && indic_plan -> pref . would_substitute ( glyphs + 1 , 1 , face ) ) ) return POS_POST_C ;\n return POS_BASE_C ;\n }"}
{"idx": 18587, "target": 0, "func": "static int collector_encode_hex_htmlnumericentity ( int c , void * data ) {\n struct collector_htmlnumericentity_data * pc = ( struct collector_htmlnumericentity_data * ) data ;\n int f , n , s , r , d , size , * mapelm ;\n size = pc -> mapsize ;\n f = 0 ;\n n = 0 ;\n while ( n < size ) {\n mapelm = & ( pc -> convmap [ n * 4 ] ) ;\n if ( c >= mapelm [ 0 ] && c <= mapelm [ 1 ] ) {\n s = ( c + mapelm [ 2 ] ) & mapelm [ 3 ] ;\n if ( s >= 0 ) {\n ( * pc -> decoder -> filter_function ) ( 0x26 , pc -> decoder ) ;\n ( * pc -> decoder -> filter_function ) ( 0x23 , pc -> decoder ) ;\n ( * pc -> decoder -> filter_function ) ( 0x78 , pc -> decoder ) ;\n r = 0x1000000 ;\n s %= r ;\n while ( r > 0 ) {\n d = s / r ;\n if ( d || f ) {\n f = 1 ;\n s %= r ;\n ( * pc -> decoder -> filter_function ) ( mbfl_hexchar_table [ d ] , pc -> decoder ) ;\n }\n r /= 16 ;\n }\n if ( ! f ) {\n f = 1 ;\n ( * pc -> decoder -> filter_function ) ( mbfl_hexchar_table [ 0 ] , pc -> decoder ) ;\n }\n ( * pc -> decoder -> filter_function ) ( 0x3b , pc -> decoder ) ;\n }\n }\n if ( f ) {\n break ;\n }\n n ++ ;\n }\n if ( ! f ) {\n ( * pc -> decoder -> filter_function ) ( c , pc -> decoder ) ;\n }\n return c ;\n }"}
{"idx": 18588, "target": 0, "func": "static int dissect_pvfs2_getconfig_response ( tvbuff_t * tvb , proto_tree * parent_tree , int offset , packet_info * pinfo ) {\n guint32 i ;\n guint32 total_bytes = 0 , total_config_bytes = 0 , total_lines = 0 ;\n guint32 bytes_processed = 0 ;\n guint32 length_remaining = 0 ;\n const char * ptr = NULL ;\n proto_tree * tree , * config_tree = NULL ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 12 , ett_pvfs_server_config , NULL , \"Server Config\" ) ;\n total_bytes = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_pvfs_getconfig_response_total_bytes , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n if ( total_bytes < 4 ) {\n return offset ;\n }\n total_lines = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_pvfs_getconfig_response_lines , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n total_config_bytes = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_pvfs_getconfig_response_config_bytes , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n ptr = tvb_get_ptr ( tvb , offset , total_config_bytes ) ;\n if ( ! ptr ) {\n return offset ;\n }\n length_remaining = tvb_captured_length_remaining ( tvb , offset ) ;\n if ( length_remaining < total_config_bytes ) {\n total_config_bytes = length_remaining ;\n }\n bytes_processed = 0 ;\n for ( i = 0 ;\n i < total_lines ;\n i ++ ) {\n guint8 entry [ 256 ] , * pentry = entry , * tmp_entry = NULL ;\n guint32 entry_length = 0 , tmp_entry_length = 0 ;\n guint32 bufsiz = sizeof ( entry ) ;\n while ( ( * ptr != '\\n' ) && ( * ptr != '\\0' ) && ( bytes_processed < total_config_bytes ) && ( entry_length < bufsiz ) ) {\n * pentry ++ = * ptr ++ ;\n bytes_processed ++ ;\n entry_length ++ ;\n }\n if ( ( entry_length == bufsiz ) && ( ( entry [ entry_length - 1 ] != '\\n' ) && ( entry [ entry_length - 1 ] != '\\0' ) ) ) {\n break ;\n }\n if ( bytes_processed == total_config_bytes ) {\n break ;\n }\n * pentry = '\\0' ;\n tmp_entry = entry ;\n tmp_entry_length = entry_length ;\n while ( ( tmp_entry_length > 0 ) && ( ! g_ascii_isalnum ( * tmp_entry ) ) && ( * tmp_entry != '<' ) ) {\n tmp_entry ++ ;\n tmp_entry_length -- ;\n }\n if ( tmp_entry [ 0 ] == '<' ) {\n if ( tmp_entry [ tmp_entry_length - 1 ] == '>' ) {\n if ( tmp_entry [ 1 ] != '/' ) {\n config_tree = proto_tree_add_subtree ( tree , tvb , offset , tmp_entry_length , ett_pvfs_server_config_branch , NULL , tmp_entry ) ;\n }\n else {\n config_tree = NULL ;\n }\n }\n else {\n break ;\n }\n }\n else {\n if ( config_tree == NULL ) config_tree = tree ;\n if ( tmp_entry_length > 0 ) {\n proto_tree_add_string_format ( config_tree , hf_pvfs_getconfig_response_entry , tvb , offset , tmp_entry_length , tmp_entry , \"%s\" , tmp_entry ) ;\n }\n }\n offset += entry_length + 1 ;\n ptr ++ ;\n bytes_processed ++ ;\n }\n if ( bytes_processed < total_config_bytes ) {\n proto_tree_add_expert ( config_tree , pinfo , & ei_pvfs_malformed , tvb , offset , - 1 ) ;\n }\n return offset ;\n }"}
{"idx": 18589, "target": 0, "func": "static int cng_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n CNGContext * p = avctx -> priv_data ;\n int buf_size = avpkt -> size ;\n int ret , i ;\n int16_t * buf_out ;\n float e = 1.0 ;\n float scaling ;\n if ( avpkt -> size ) {\n int dbov = - avpkt -> data [ 0 ] ;\n p -> target_energy = 1081109975 * pow ( 10 , dbov / 10.0 ) * 0.75 ;\n memset ( p -> target_refl_coef , 0 , p -> order * sizeof ( * p -> target_refl_coef ) ) ;\n for ( i = 0 ;\n i < FFMIN ( avpkt -> size - 1 , p -> order ) ;\n i ++ ) {\n p -> target_refl_coef [ i ] = ( avpkt -> data [ 1 + i ] - 127 ) / 128.0 ;\n }\n }\n if ( p -> inited ) {\n p -> energy = p -> energy / 2 + p -> target_energy / 2 ;\n for ( i = 0 ;\n i < p -> order ;\n i ++ ) p -> refl_coef [ i ] = 0.6 * p -> refl_coef [ i ] + 0.4 * p -> target_refl_coef [ i ] ;\n }\n else {\n p -> energy = p -> target_energy ;\n memcpy ( p -> refl_coef , p -> target_refl_coef , p -> order * sizeof ( * p -> refl_coef ) ) ;\n p -> inited = 1 ;\n }\n make_lpc_coefs ( p -> lpc_coef , p -> refl_coef , p -> order ) ;\n for ( i = 0 ;\n i < p -> order ;\n i ++ ) e *= 1.0 - p -> refl_coef [ i ] * p -> refl_coef [ i ] ;\n scaling = sqrt ( e * p -> energy / 1081109975 ) ;\n for ( i = 0 ;\n i < avctx -> frame_size ;\n i ++ ) {\n int r = ( av_lfg_get ( & p -> lfg ) & 0xffff ) - 0x8000 ;\n p -> excitation [ i ] = scaling * r ;\n }\n ff_celp_lp_synthesis_filterf ( p -> filter_out + p -> order , p -> lpc_coef , p -> excitation , avctx -> frame_size , p -> order ) ;\n frame -> nb_samples = avctx -> frame_size ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n buf_out = ( int16_t * ) frame -> data [ 0 ] ;\n for ( i = 0 ;\n i < avctx -> frame_size ;\n i ++ ) buf_out [ i ] = p -> filter_out [ i + p -> order ] ;\n memcpy ( p -> filter_out , p -> filter_out + avctx -> frame_size , p -> order * sizeof ( * p -> filter_out ) ) ;\n * got_frame_ptr = 1 ;\n return buf_size ;\n }"}
{"idx": 18590, "target": 0, "func": "static PyObject * authGSSServerResponse ( PyObject * self , PyObject * args ) {\n gss_server_state * state ;\n PyObject * pystate ;\n if ( ! PyArg_ParseTuple ( args , \"O\" , & pystate ) ) return NULL ;\n # if PY_MAJOR_VERSION >= 3 if ( ! PyCapsule_CheckExact ( pystate ) ) {\n # else if ( ! PyCObject_Check ( pystate ) ) {\n # endif PyErr_SetString ( PyExc_TypeError , \"Expected a context object\" ) ;\n return NULL ;\n }\n # if PY_MAJOR_VERSION >= 3 state = PyCapsule_GetPointer ( pystate , NULL ) ;\n # else state = ( gss_client_state * ) PyCObject_AsVoidPtr ( pystate ) ;\n # endif if ( state == NULL ) return NULL ;\n return Py_BuildValue ( \"s\" , state -> response ) ;\n }"}
{"idx": 18591, "target": 0, "func": "int qemuMonitorTextGetMigrationStatus ( qemuMonitorPtr mon , int * status , unsigned long long * transferred , unsigned long long * remaining , unsigned long long * total ) {\n char * reply ;\n char * tmp ;\n char * end ;\n unsigned long long disk_transferred = 0 ;\n unsigned long long disk_remaining = 0 ;\n unsigned long long disk_total = 0 ;\n int ret = - 1 ;\n * status = QEMU_MONITOR_MIGRATION_STATUS_INACTIVE ;\n * transferred = 0 ;\n * remaining = 0 ;\n * total = 0 ;\n if ( qemuMonitorHMPCommand ( mon , \"info migrate\" , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , _ ( \"cannot query migration status\" ) ) ;\n return - 1 ;\n }\n if ( ( tmp = strstr ( reply , MIGRATION_PREFIX ) ) != NULL ) {\n tmp += strlen ( MIGRATION_PREFIX ) ;\n end = strchr ( tmp , '\\r' ) ;\n if ( end == NULL ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"unexpected migration status in %s\" ) , reply ) ;\n goto cleanup ;\n }\n * end = '\\0' ;\n if ( ( * status = qemuMonitorMigrationStatusTypeFromString ( tmp ) ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"unexpected migration status in %s\" ) , reply ) ;\n goto cleanup ;\n }\n if ( * status == QEMU_MONITOR_MIGRATION_STATUS_ACTIVE ) {\n tmp = end + 1 ;\n if ( ! ( tmp = strstr ( tmp , MIGRATION_TRANSFER_PREFIX ) ) ) goto done ;\n tmp += strlen ( MIGRATION_TRANSFER_PREFIX ) ;\n if ( virStrToLong_ull ( tmp , & end , 10 , transferred ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"cannot parse migration data transferred \" \"statistic %s\" ) , tmp ) ;\n goto cleanup ;\n }\n * transferred *= 1024 ;\n tmp = end ;\n if ( ! ( tmp = strstr ( tmp , MIGRATION_REMAINING_PREFIX ) ) ) goto done ;\n tmp += strlen ( MIGRATION_REMAINING_PREFIX ) ;\n if ( virStrToLong_ull ( tmp , & end , 10 , remaining ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"cannot parse migration data remaining \" \"statistic %s\" ) , tmp ) ;\n goto cleanup ;\n }\n * remaining *= 1024 ;\n tmp = end ;\n if ( ! ( tmp = strstr ( tmp , MIGRATION_TOTAL_PREFIX ) ) ) goto done ;\n tmp += strlen ( MIGRATION_TOTAL_PREFIX ) ;\n if ( virStrToLong_ull ( tmp , & end , 10 , total ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"cannot parse migration data total \" \"statistic %s\" ) , tmp ) ;\n goto cleanup ;\n }\n * total *= 1024 ;\n tmp = end ;\n if ( ! ( tmp = strstr ( tmp , MIGRATION_DISK_TRANSFER_PREFIX ) ) ) goto done ;\n tmp += strlen ( MIGRATION_DISK_TRANSFER_PREFIX ) ;\n if ( virStrToLong_ull ( tmp , & end , 10 , & disk_transferred ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"cannot parse disk migration data \" \"transferred statistic %s\" ) , tmp ) ;\n goto cleanup ;\n }\n * transferred += disk_transferred * 1024 ;\n tmp = end ;\n if ( ! ( tmp = strstr ( tmp , MIGRATION_DISK_REMAINING_PREFIX ) ) ) goto done ;\n tmp += strlen ( MIGRATION_DISK_REMAINING_PREFIX ) ;\n if ( virStrToLong_ull ( tmp , & end , 10 , & disk_remaining ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"cannot parse disk migration data remaining \" \"statistic %s\" ) , tmp ) ;\n goto cleanup ;\n }\n * remaining += disk_remaining * 1024 ;\n tmp = end ;\n if ( ! ( tmp = strstr ( tmp , MIGRATION_DISK_TOTAL_PREFIX ) ) ) goto done ;\n tmp += strlen ( MIGRATION_DISK_TOTAL_PREFIX ) ;\n if ( virStrToLong_ull ( tmp , & end , 10 , & disk_total ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"cannot parse disk migration data total \" \"statistic %s\" ) , tmp ) ;\n goto cleanup ;\n }\n * total += disk_total * 1024 ;\n }\n }\n done : ret = 0 ;\n cleanup : VIR_FREE ( reply ) ;\n return ret ;\n }"}
{"idx": 18592, "target": 0, "func": "static void qtrle_decode_32bpp ( QtrleContext * s , int row_ptr , int lines_to_change ) {\n int rle_code ;\n int pixel_ptr ;\n int row_inc = s -> frame . linesize [ 0 ] ;\n unsigned int argb ;\n unsigned char * rgb = s -> frame . data [ 0 ] ;\n int pixel_limit = s -> frame . linesize [ 0 ] * s -> avctx -> height ;\n while ( lines_to_change -- ) {\n pixel_ptr = row_ptr + ( bytestream2_get_byte ( & s -> g ) - 1 ) * 4 ;\n CHECK_PIXEL_PTR ( 0 ) ;\n while ( ( rle_code = ( signed char ) bytestream2_get_byte ( & s -> g ) ) != - 1 ) {\n if ( rle_code == 0 ) {\n pixel_ptr += ( bytestream2_get_byte ( & s -> g ) - 1 ) * 4 ;\n CHECK_PIXEL_PTR ( 0 ) ;\n }\n else if ( rle_code < 0 ) {\n rle_code = - rle_code ;\n argb = bytestream2_get_be32 ( & s -> g ) ;\n CHECK_PIXEL_PTR ( rle_code * 4 ) ;\n while ( rle_code -- ) {\n AV_WN32A ( rgb + pixel_ptr , argb ) ;\n pixel_ptr += 4 ;\n }\n }\n else {\n CHECK_PIXEL_PTR ( rle_code * 4 ) ;\n while ( rle_code -- ) {\n argb = bytestream2_get_be32 ( & s -> g ) ;\n AV_WN32A ( rgb + pixel_ptr , argb ) ;\n pixel_ptr += 4 ;\n }\n }\n }\n row_ptr += row_inc ;\n }\n }"}
{"idx": 18593, "target": 0, "func": "static int dissect_USER_LEVEL_1 ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n guint32 level ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_level , & level ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_userlevel_size , NULL ) ;\n offset = dissect_ndr_str_pointer_item ( tvb , offset , pinfo , tree , di , drep , NDR_POINTER_UNIQUE , \"Client\" , hf_userlevel_client , 0 ) ;\n offset = dissect_ndr_str_pointer_item ( tvb , offset , pinfo , tree , di , drep , NDR_POINTER_UNIQUE , \"User\" , hf_userlevel_user , 0 ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_userlevel_build , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_userlevel_major , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_userlevel_minor , NULL ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_userlevel_processor , NULL ) ;\n return offset ;\n }"}
{"idx": 18594, "target": 0, "func": "static int collector_strpos ( int c , void * data ) {\n int * p , * h , * m , n ;\n struct collector_strpos_data * pc = ( struct collector_strpos_data * ) data ;\n if ( pc -> output >= pc -> start ) {\n if ( c == ( int ) pc -> needle . buffer [ pc -> needle_pos ] ) {\n if ( pc -> needle_pos == 0 ) {\n pc -> found_pos = pc -> output ;\n }\n pc -> needle_pos ++ ;\n if ( pc -> needle_pos >= pc -> needle_len ) {\n pc -> matched_pos = pc -> found_pos ;\n pc -> needle_pos -- ;\n goto retry ;\n }\n }\n else if ( pc -> needle_pos != 0 ) {\n retry : h = ( int * ) pc -> needle . buffer ;\n h ++ ;\n for ( ;\n ;\n ) {\n pc -> found_pos ++ ;\n p = h ;\n m = ( int * ) pc -> needle . buffer ;\n n = pc -> needle_pos - 1 ;\n while ( n > 0 && * p == * m ) {\n n -- ;\n p ++ ;\n m ++ ;\n }\n if ( n <= 0 ) {\n if ( * m != c ) {\n pc -> needle_pos = 0 ;\n }\n break ;\n }\n else {\n h ++ ;\n pc -> needle_pos -- ;\n }\n }\n }\n }\n pc -> output ++ ;\n return c ;\n }"}
{"idx": 18595, "target": 1, "func": "static void test_rfc822_parse_content_param ( void ) {\n const char * input = \";\n key1=value1#$!%&'*+-.^_`{\n|}\n~\" \";\n key2=\\\" \\\\\\\"(),/:;\n<=>?@[\\\\\\\\]\\\"\" ;\n const struct {\n const char * key , * value ;\n }\n output [ ] = {\n {\n \"key1\" , \"value1#$!%&'*+-.^_`{\n|}\n~\" }\n , {\n \"key2\" , \" \\\"(),/:;\n<=>?@[\\\\]\" }\n }\n ;\n struct rfc822_parser_context parser ;\n const char * key , * value ;\n unsigned int i = 0 ;\n int ret ;\n test_begin ( \"rfc822 parse content param\" ) ;\n rfc822_parser_init ( & parser , ( const void * ) input , strlen ( input ) , NULL ) ;\n while ( ( ret = rfc822_parse_content_param ( & parser , & key , & value ) ) > 0 && i < N_ELEMENTS ( output ) ) {\n test_assert_idx ( strcmp ( output [ i ] . key , key ) == 0 , i ) ;\n test_assert_idx ( strcmp ( output [ i ] . value , value ) == 0 , i ) ;\n i ++ ;\n }\n test_assert ( ret == 0 ) ;\n test_assert ( i == N_ELEMENTS ( output ) ) ;\n test_end ( ) ;\n }"}
{"idx": 18596, "target": 0, "func": "static byte * gs_heap_resize_string ( gs_memory_t * mem , byte * data , uint old_num , uint new_num , client_name_t cname ) {\n if ( gs_heap_object_type ( mem , data ) != & st_bytes ) lprintf2 ( \"%s: resizing non-string 0x%lx!\\n\" , client_name_string ( cname ) , ( ulong ) data ) ;\n return gs_heap_resize_object ( mem , data , new_num , cname ) ;\n }"}
{"idx": 18597, "target": 0, "func": "int qemuMonitorJSONGetStatus ( qemuMonitorPtr mon , bool * running , virDomainPausedReason * reason ) {\n int ret ;\n const char * status ;\n virJSONValuePtr cmd ;\n virJSONValuePtr reply = NULL ;\n virJSONValuePtr data ;\n if ( reason ) * reason = VIR_DOMAIN_PAUSED_UNKNOWN ;\n if ( ! ( cmd = qemuMonitorJSONMakeCommand ( \"query-status\" , NULL ) ) ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n if ( ret < 0 ) goto cleanup ;\n ret = - 1 ;\n if ( ! ( data = virJSONValueObjectGet ( reply , \"return\" ) ) ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"query-status reply was missing return data\" ) ) ;\n goto cleanup ;\n }\n if ( virJSONValueObjectGetBoolean ( data , \"running\" , running ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"query-status reply was missing running state\" ) ) ;\n goto cleanup ;\n }\n if ( ( status = virJSONValueObjectGetString ( data , \"status\" ) ) ) {\n if ( ! * running && reason ) * reason = qemuMonitorVMStatusToPausedReason ( status ) ;\n }\n else if ( ! * running ) {\n VIR_DEBUG ( \"query-status reply was missing status details\" ) ;\n }\n ret = 0 ;\n cleanup : virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 18598, "target": 0, "func": "int dtls1_retransmit_message ( SSL * s , unsigned short seq , int * found ) {\n int ret ;\n pitem * item ;\n hm_fragment * frag ;\n unsigned long header_length ;\n unsigned char seq64be [ 8 ] ;\n struct dtls1_retransmit_state saved_state ;\n memset ( seq64be , 0 , sizeof ( seq64be ) ) ;\n seq64be [ 6 ] = ( unsigned char ) ( seq >> 8 ) ;\n seq64be [ 7 ] = ( unsigned char ) seq ;\n item = pqueue_find ( s -> d1 -> sent_messages , seq64be ) ;\n if ( item == NULL ) {\n SSLerr ( SSL_F_DTLS1_RETRANSMIT_MESSAGE , ERR_R_INTERNAL_ERROR ) ;\n * found = 0 ;\n return 0 ;\n }\n * found = 1 ;\n frag = ( hm_fragment * ) item -> data ;\n if ( frag -> msg_header . is_ccs ) header_length = DTLS1_CCS_HEADER_LENGTH ;\n else header_length = DTLS1_HM_HEADER_LENGTH ;\n memcpy ( s -> init_buf -> data , frag -> fragment , frag -> msg_header . msg_len + header_length ) ;\n s -> init_num = frag -> msg_header . msg_len + header_length ;\n dtls1_set_message_header_int ( s , frag -> msg_header . type , frag -> msg_header . msg_len , frag -> msg_header . seq , 0 , frag -> msg_header . frag_len ) ;\n saved_state . enc_write_ctx = s -> enc_write_ctx ;\n saved_state . write_hash = s -> write_hash ;\n saved_state . compress = s -> compress ;\n saved_state . session = s -> session ;\n saved_state . epoch = DTLS_RECORD_LAYER_get_w_epoch ( & s -> rlayer ) ;\n s -> d1 -> retransmitting = 1 ;\n s -> enc_write_ctx = frag -> msg_header . saved_retransmit_state . enc_write_ctx ;\n s -> write_hash = frag -> msg_header . saved_retransmit_state . write_hash ;\n s -> compress = frag -> msg_header . saved_retransmit_state . compress ;\n s -> session = frag -> msg_header . saved_retransmit_state . session ;\n DTLS_RECORD_LAYER_set_saved_w_epoch ( & s -> rlayer , frag -> msg_header . saved_retransmit_state . epoch ) ;\n ret = dtls1_do_write ( s , frag -> msg_header . is_ccs ? SSL3_RT_CHANGE_CIPHER_SPEC : SSL3_RT_HANDSHAKE ) ;\n s -> enc_write_ctx = saved_state . enc_write_ctx ;\n s -> write_hash = saved_state . write_hash ;\n s -> compress = saved_state . compress ;\n s -> session = saved_state . session ;\n DTLS_RECORD_LAYER_set_saved_w_epoch ( & s -> rlayer , saved_state . epoch ) ;\n s -> d1 -> retransmitting = 0 ;\n ( void ) BIO_flush ( s -> wbio ) ;\n return ret ;\n }"}
{"idx": 18599, "target": 0, "func": "int mgs_hook_post_config ( apr_pool_t * p , apr_pool_t * plog __attribute__ ( ( unused ) ) , apr_pool_t * ptemp __attribute__ ( ( unused ) ) , server_rec * base_server ) {\n int rv ;\n server_rec * s ;\n gnutls_dh_params_t dh_params = NULL ;\n mgs_srvconf_rec * sc ;\n mgs_srvconf_rec * sc_base ;\n void * data = NULL ;\n const char * userdata_key = \"mgs_init\" ;\n _gnutls_log ( debug_log_fp , \"%s: %d\\n\" , __func__ , __LINE__ ) ;\n apr_pool_userdata_get ( & data , userdata_key , base_server -> process -> pool ) ;\n if ( data == NULL ) {\n apr_pool_userdata_set ( ( const void * ) 1 , userdata_key , apr_pool_cleanup_null , base_server -> process -> pool ) ;\n }\n s = base_server ;\n sc_base = ( mgs_srvconf_rec * ) ap_get_module_config ( s -> module_config , & gnutls_module ) ;\n gnutls_dh_params_init ( & dh_params ) ;\n if ( sc_base -> dh_params == NULL ) {\n gnutls_datum_t pdata = {\n ( void * ) static_dh_params , sizeof ( static_dh_params ) }\n ;\n rv = gnutls_dh_params_import_pkcs3 ( dh_params , & pdata , GNUTLS_X509_FMT_PEM ) ;\n if ( rv < 0 ) {\n ap_log_error ( APLOG_MARK , APLOG_STARTUP , 0 , s , \"GnuTLS: Unable to generate or load DH Params: (%d) %s\" , rv , gnutls_strerror ( rv ) ) ;\n exit ( rv ) ;\n }\n }\n else {\n dh_params = sc_base -> dh_params ;\n }\n rv = mgs_cache_post_config ( p , s , sc_base ) ;\n if ( rv != 0 ) {\n ap_log_error ( APLOG_MARK , APLOG_STARTUP , rv , s , \"GnuTLS: Post Config for GnuTLSCache Failed.\" \" Shutting Down.\" ) ;\n exit ( - 1 ) ;\n }\n for ( s = base_server ;\n s ;\n s = s -> next ) {\n sc = ( mgs_srvconf_rec * ) ap_get_module_config ( s -> module_config , & gnutls_module ) ;\n sc -> cache_type = sc_base -> cache_type ;\n sc -> cache_config = sc_base -> cache_config ;\n sc -> cache_timeout = sc_base -> cache_timeout ;\n if ( sc -> enabled == GNUTLS_ENABLED_UNSET ) sc -> enabled = GNUTLS_ENABLED_FALSE ;\n if ( sc -> tickets == GNUTLS_ENABLED_UNSET ) sc -> tickets = GNUTLS_ENABLED_TRUE ;\n if ( sc -> export_certificates_size < 0 ) sc -> export_certificates_size = 0 ;\n if ( sc -> client_verify_mode == - 1 ) sc -> client_verify_mode = GNUTLS_CERT_IGNORE ;\n if ( sc -> client_verify_method == mgs_cvm_unset ) sc -> client_verify_method = mgs_cvm_cartel ;\n if ( sc -> priorities == NULL && sc -> enabled == GNUTLS_ENABLED_TRUE ) {\n ap_log_error ( APLOG_MARK , APLOG_STARTUP , 0 , s , \"GnuTLS: Host '%s:%d' is missing the GnuTLSPriorities directive!\" , s -> server_hostname , s -> port ) ;\n exit ( - 1 ) ;\n }\n if ( sc -> dh_params != NULL ) {\n gnutls_certificate_set_dh_params ( sc -> certs , sc -> dh_params ) ;\n gnutls_anon_set_server_dh_params ( sc -> anon_creds , sc -> dh_params ) ;\n }\n else if ( dh_params ) {\n gnutls_certificate_set_dh_params ( sc -> certs , dh_params ) ;\n gnutls_anon_set_server_dh_params ( sc -> anon_creds , dh_params ) ;\n }\n gnutls_certificate_set_retrieve_function ( sc -> certs , cert_retrieve_fn ) ;\n # ifdef ENABLE_SRP if ( sc -> srp_tpasswd_conf_file != NULL && sc -> srp_tpasswd_file != NULL ) {\n rv = gnutls_srp_set_server_credentials_file ( sc -> srp_creds , sc -> srp_tpasswd_file , sc -> srp_tpasswd_conf_file ) ;\n if ( rv < 0 && sc -> enabled == GNUTLS_ENABLED_TRUE ) {\n ap_log_error ( APLOG_MARK , APLOG_STARTUP , 0 , s , \"[GnuTLS] - Host '%s:%d' is missing a \" \"SRP password or conf File!\" , s -> server_hostname , s -> port ) ;\n exit ( - 1 ) ;\n }\n }\n # endif if ( ( sc -> certs_x509_chain == NULL || sc -> certs_x509_chain_num < 1 ) && sc -> cert_pgp == NULL && sc -> enabled == GNUTLS_ENABLED_TRUE ) {\n ap_log_error ( APLOG_MARK , APLOG_STARTUP , 0 , s , \"[GnuTLS] - Host '%s:%d' is missing a Certificate File!\" , s -> server_hostname , s -> port ) ;\n exit ( - 1 ) ;\n }\n if ( sc -> enabled == GNUTLS_ENABLED_TRUE && ( ( sc -> certs_x509_chain != NULL && sc -> certs_x509_chain_num > 0 && sc -> privkey_x509 == NULL ) || ( sc -> cert_pgp != NULL && sc -> privkey_pgp == NULL ) ) ) {\n ap_log_error ( APLOG_MARK , APLOG_STARTUP , 0 , s , \"[GnuTLS] - Host '%s:%d' is missing a Private Key File!\" , s -> server_hostname , s -> port ) ;\n exit ( - 1 ) ;\n }\n if ( sc -> enabled == GNUTLS_ENABLED_TRUE ) {\n rv = - 1 ;\n if ( sc -> certs_x509_chain_num > 0 ) {\n rv = read_crt_cn ( s , p , sc -> certs_x509_chain [ 0 ] , & sc -> cert_cn ) ;\n }\n if ( rv < 0 && sc -> cert_pgp != NULL ) {\n rv = read_pgpcrt_cn ( s , p , sc -> cert_pgp , & sc -> cert_cn ) ;\n }\n if ( rv < 0 ) {\n ap_log_error ( APLOG_MARK , APLOG_STARTUP , 0 , s , \"[GnuTLS] - Cannot find a certificate for host '%s:%d'!\" , s -> server_hostname , s -> port ) ;\n sc -> cert_cn = NULL ;\n continue ;\n }\n }\n }\n ap_add_version_component ( p , \"mod_gnutls/\" MOD_GNUTLS_VERSION ) ;\n {\n const char * libvers = gnutls_check_version ( NULL ) ;\n char * gnutls_version = NULL ;\n if ( libvers && ( gnutls_version = apr_psprintf ( p , \"GnuTLS/%s\" , libvers ) ) ) {\n ap_add_version_component ( p , gnutls_version ) ;\n }\n else {\n ap_add_version_component ( p , \"GnuTLS/\" GNUTLS_VERSION \"-static\" ) ;\n }\n }\n return OK ;\n }"}
{"idx": 18600, "target": 1, "func": "SPL_METHOD ( SplFileObject , fgets ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n if ( spl_filesystem_file_read ( intern , 0 TSRMLS_CC ) == FAILURE ) {\n RETURN_FALSE ;\n }\n RETURN_STRINGL ( intern -> u . file . current_line , intern -> u . file . current_line_len , 1 ) ;\n }"}
{"idx": 18601, "target": 0, "func": "hb_bool_t hb_font_funcs_set_user_data ( hb_font_funcs_t * ffuncs , hb_user_data_key_t * key , void * data , hb_destroy_func_t destroy , hb_bool_t replace ) {\n return hb_object_set_user_data ( ffuncs , key , data , destroy , replace ) ;\n }"}
{"idx": 18602, "target": 0, "func": "static void test_truncation ( ) {\n MYSQL_STMT * stmt ;\n const char * stmt_text ;\n int rc ;\n uint bind_count ;\n MYSQL_BIND * bind_array , * my_bind ;\n myheader ( \"test_truncation\" ) ;\n rc = mysql_query ( mysql , \"drop table if exists t1\" ) ;\n myquery ( rc ) ;\n stmt_text = \"create table t1 (\" \"i8 tinyint, ui8 tinyint unsigned, \" \"i16 smallint, i16_1 smallint, \" \"ui16 smallint unsigned, i32 int, i32_1 int, \" \"d double, d_1 double, ch char(30), ch_1 char(30), \" \"tx text, tx_1 text, ch_2 char(30) \" \")\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n {\n const char insert_text [ ] = \"insert into t1 VALUES (\" \"-10, \" \"200, \" \"32000, \" \"-32767, \" \"64000, \" \"1073741824, \" \"1073741825, \" \"123.456, \" \"-12345678910, \" \"'111111111111111111111111111111',\" \"'abcdef', \" \"'12345 ', \" \"'12345.67 ', \" \"'12345.67abc'\" \")\" ;\n rc = mysql_real_query ( mysql , insert_text , strlen ( insert_text ) ) ;\n myquery ( rc ) ;\n }\n stmt_text = \"select i8 c1, i8 c2, ui8 c3, i16_1 c4, ui16 c5, \" \" i16 c6, ui16 c7, i32 c8, i32_1 c9, i32_1 c10, \" \" d c11, d_1 c12, d_1 c13, ch c14, ch_1 c15, tx c16, \" \" tx_1 c17, ch_2 c18 \" \"from t1\" ;\n stmt = mysql_stmt_init ( mysql ) ;\n rc = mysql_stmt_prepare ( stmt , stmt_text , strlen ( stmt_text ) ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n bind_count = ( uint ) mysql_stmt_field_count ( stmt ) ;\n bind_array = malloc ( sizeof ( MYSQL_BIND ) * bind_count ) ;\n memset ( bind_array , 0 , sizeof ( MYSQL_BIND ) * bind_count ) ;\n for ( my_bind = bind_array ;\n my_bind < bind_array + bind_count ;\n my_bind ++ ) my_bind -> error = & my_bind -> error_value ;\n my_bind = bind_array ;\n my_bind -> buffer = malloc ( sizeof ( uint8 ) ) ;\n my_bind -> buffer_type = MYSQL_TYPE_TINY ;\n my_bind -> is_unsigned = TRUE ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n my_bind -> buffer = malloc ( sizeof ( uint32 ) ) ;\n my_bind -> buffer_type = MYSQL_TYPE_LONG ;\n my_bind -> is_unsigned = TRUE ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n my_bind -> buffer = malloc ( sizeof ( int8 ) ) ;\n my_bind -> buffer_type = MYSQL_TYPE_TINY ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n my_bind -> buffer = malloc ( sizeof ( uint16 ) ) ;\n my_bind -> buffer_type = MYSQL_TYPE_SHORT ;\n my_bind -> is_unsigned = TRUE ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n my_bind -> buffer = malloc ( sizeof ( int16 ) ) ;\n my_bind -> buffer_type = MYSQL_TYPE_SHORT ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n my_bind -> buffer = malloc ( sizeof ( uint16 ) ) ;\n my_bind -> buffer_type = MYSQL_TYPE_SHORT ;\n my_bind -> is_unsigned = TRUE ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n my_bind -> buffer = malloc ( sizeof ( int8 ) ) ;\n my_bind -> buffer_type = MYSQL_TYPE_TINY ;\n my_bind -> is_unsigned = TRUE ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n my_bind -> buffer = malloc ( sizeof ( float ) ) ;\n my_bind -> buffer_type = MYSQL_TYPE_FLOAT ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n my_bind -> buffer = malloc ( sizeof ( float ) ) ;\n my_bind -> buffer_type = MYSQL_TYPE_FLOAT ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n my_bind -> buffer = malloc ( sizeof ( double ) ) ;\n my_bind -> buffer_type = MYSQL_TYPE_DOUBLE ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n my_bind -> buffer = malloc ( sizeof ( longlong ) ) ;\n my_bind -> buffer_type = MYSQL_TYPE_LONGLONG ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n my_bind -> buffer = malloc ( sizeof ( ulonglong ) ) ;\n my_bind -> buffer_type = MYSQL_TYPE_LONGLONG ;\n my_bind -> is_unsigned = TRUE ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n my_bind -> buffer = malloc ( sizeof ( longlong ) ) ;\n my_bind -> buffer_type = MYSQL_TYPE_LONGLONG ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n my_bind -> buffer = malloc ( sizeof ( longlong ) ) ;\n my_bind -> buffer_type = MYSQL_TYPE_LONGLONG ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n my_bind -> buffer = malloc ( sizeof ( longlong ) ) ;\n my_bind -> buffer_type = MYSQL_TYPE_LONGLONG ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n my_bind -> buffer = malloc ( sizeof ( longlong ) ) ;\n my_bind -> buffer_type = MYSQL_TYPE_LONGLONG ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n my_bind -> buffer = malloc ( sizeof ( double ) ) ;\n my_bind -> buffer_type = MYSQL_TYPE_DOUBLE ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n my_bind -> buffer = malloc ( sizeof ( double ) ) ;\n my_bind -> buffer_type = MYSQL_TYPE_DOUBLE ;\n rc = mysql_stmt_bind_result ( stmt , bind_array ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_DATA_TRUNCATED ) ;\n my_bind = bind_array ;\n DIE_UNLESS ( * my_bind -> error && * ( int8 * ) my_bind -> buffer == - 10 ) ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n DIE_UNLESS ( * my_bind -> error && * ( int32 * ) my_bind -> buffer == - 10 ) ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n DIE_UNLESS ( * my_bind -> error && * ( uint8 * ) my_bind -> buffer == 200 ) ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n DIE_UNLESS ( * my_bind -> error && * ( int16 * ) my_bind -> buffer == - 32767 ) ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n DIE_UNLESS ( * my_bind -> error && * ( uint16 * ) my_bind -> buffer == 64000 ) ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n DIE_UNLESS ( ! * my_bind -> error && * ( uint16 * ) my_bind -> buffer == 32000 ) ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n DIE_UNLESS ( * my_bind -> error && * ( int8 * ) my_bind -> buffer == 0 ) ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n DIE_UNLESS ( ! * my_bind -> error && * ( float * ) my_bind -> buffer == 1073741824 ) ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n DIE_UNLESS ( * my_bind -> error ) ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n DIE_UNLESS ( ! * my_bind -> error && * ( double * ) my_bind -> buffer == 1073741825 ) ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n DIE_UNLESS ( * my_bind -> error ) ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n DIE_UNLESS ( ! * my_bind -> error && * ( longlong * ) my_bind -> buffer == LL ( - 12345678910 ) ) ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n DIE_UNLESS ( * my_bind -> error ) ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n DIE_UNLESS ( * my_bind -> error && * ( longlong * ) my_bind -> buffer == 0 ) ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n DIE_UNLESS ( ! * my_bind -> error && * ( longlong * ) my_bind -> buffer == 12345 ) ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n DIE_UNLESS ( ! * my_bind -> error && * ( double * ) my_bind -> buffer == 12345.67 ) ;\n DIE_UNLESS ( my_bind ++ < bind_array + bind_count ) ;\n DIE_UNLESS ( * ( double * ) my_bind -> buffer == 12345.67 ) ;\n mysql_stmt_close ( stmt ) ;\n for ( my_bind = bind_array ;\n my_bind < bind_array + bind_count ;\n my_bind ++ ) free ( my_bind -> buffer ) ;\n free ( bind_array ) ;\n rc = mysql_query ( mysql , \"drop table t1\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 18603, "target": 0, "func": "TSReturnCode TSHttpHdrMethodSet ( TSMBuffer bufp , TSMLoc obj , const char * value , int length ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_http_hdr_handle ( obj ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) value ) == TS_SUCCESS ) ;\n if ( ! isWriteable ( bufp ) ) {\n return TS_ERROR ;\n }\n HTTPHdr h ;\n SET_HTTP_HDR ( h , bufp , obj ) ;\n if ( length < 0 ) {\n length = strlen ( value ) ;\n }\n h . method_set ( value , length ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 18604, "target": 0, "func": "fz_pixmap * fz_expand_indexed_pixmap ( fz_context * ctx , const fz_pixmap * src , int alpha ) {\n struct indexed * idx ;\n fz_pixmap * dst ;\n const unsigned char * s ;\n unsigned char * d ;\n int y , x , k , n , high ;\n unsigned char * lookup ;\n fz_irect bbox ;\n int s_line_inc , d_line_inc ;\n assert ( src -> colorspace -> to_ccs == indexed_to_rgb || src -> colorspace -> to_ccs == indexed_to_alt ) ;\n assert ( src -> n == 1 + alpha ) ;\n idx = src -> colorspace -> data ;\n high = idx -> high ;\n lookup = idx -> lookup ;\n n = idx -> base -> n ;\n dst = fz_new_pixmap_with_bbox ( ctx , idx -> base , fz_pixmap_bbox ( ctx , src , & bbox ) , src -> seps , alpha ) ;\n s = src -> samples ;\n d = dst -> samples ;\n s_line_inc = src -> stride - src -> w * src -> n ;\n d_line_inc = dst -> stride - dst -> w * dst -> n ;\n if ( alpha ) {\n for ( y = 0 ;\n y < src -> h ;\n y ++ ) {\n for ( x = 0 ;\n x < src -> w ;\n x ++ ) {\n int v = * s ++ ;\n int a = * s ++ ;\n int aa = a + ( a >> 7 ) ;\n v = fz_mini ( v , high ) ;\n for ( k = 0 ;\n k < n ;\n k ++ ) * d ++ = ( aa * lookup [ v * n + k ] + 128 ) >> 8 ;\n * d ++ = a ;\n }\n s += s_line_inc ;\n d += d_line_inc ;\n }\n }\n else {\n for ( y = 0 ;\n y < src -> h ;\n y ++ ) {\n for ( x = 0 ;\n x < src -> w ;\n x ++ ) {\n int v = * s ++ ;\n v = fz_mini ( v , high ) ;\n for ( k = 0 ;\n k < n ;\n k ++ ) * d ++ = lookup [ v * n + k ] ;\n }\n s += s_line_inc ;\n d += d_line_inc ;\n }\n }\n if ( src -> flags & FZ_PIXMAP_FLAG_INTERPOLATE ) dst -> flags |= FZ_PIXMAP_FLAG_INTERPOLATE ;\n else dst -> flags &= ~ FZ_PIXMAP_FLAG_INTERPOLATE ;\n return dst ;\n }"}
{"idx": 18605, "target": 0, "func": "static void dissect_zcl_color_control_move_color ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_rate_X , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_rate_Y , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n }"}
{"idx": 18606, "target": 0, "func": "static const char * hfinfo_number_value_format ( const header_field_info * hfinfo , char buf [ 32 ] , guint32 value ) {\n int display = hfinfo -> display ;\n if ( hfinfo -> type == FT_FRAMENUM ) {\n display = BASE_DEC ;\n }\n return hfinfo_number_value_format_display ( hfinfo , display , buf , value ) ;\n }"}
{"idx": 18607, "target": 0, "func": "static int rv34_decode_mv ( RV34DecContext * r , int block_type ) {\n MpegEncContext * s = & r -> s ;\n GetBitContext * gb = & s -> gb ;\n int i , j , k , l ;\n int mv_pos = s -> mb_x * 2 + s -> mb_y * 2 * s -> b8_stride ;\n int next_bt ;\n memset ( r -> dmv , 0 , sizeof ( r -> dmv ) ) ;\n for ( i = 0 ;\n i < num_mvs [ block_type ] ;\n i ++ ) {\n r -> dmv [ i ] [ 0 ] = svq3_get_se_golomb ( gb ) ;\n r -> dmv [ i ] [ 1 ] = svq3_get_se_golomb ( gb ) ;\n }\n switch ( block_type ) {\n case RV34_MB_TYPE_INTRA : case RV34_MB_TYPE_INTRA16x16 : ZERO8x2 ( s -> current_picture_ptr -> motion_val [ 0 ] [ s -> mb_x * 2 + s -> mb_y * 2 * s -> b8_stride ] , s -> b8_stride ) ;\n return 0 ;\n case RV34_MB_SKIP : if ( s -> pict_type == AV_PICTURE_TYPE_P ) {\n ZERO8x2 ( s -> current_picture_ptr -> motion_val [ 0 ] [ s -> mb_x * 2 + s -> mb_y * 2 * s -> b8_stride ] , s -> b8_stride ) ;\n rv34_mc_1mv ( r , block_type , 0 , 0 , 0 , 2 , 2 , 0 ) ;\n break ;\n }\n case RV34_MB_B_DIRECT : if ( HAVE_THREADS && ( s -> avctx -> active_thread_type & FF_THREAD_FRAME ) ) ff_thread_await_progress ( & s -> next_picture_ptr -> tf , FFMAX ( 0 , s -> mb_y - 1 ) , 0 ) ;\n next_bt = s -> next_picture_ptr -> mb_type [ s -> mb_x + s -> mb_y * s -> mb_stride ] ;\n if ( IS_INTRA ( next_bt ) || IS_SKIP ( next_bt ) ) {\n ZERO8x2 ( s -> current_picture_ptr -> motion_val [ 0 ] [ s -> mb_x * 2 + s -> mb_y * 2 * s -> b8_stride ] , s -> b8_stride ) ;\n ZERO8x2 ( s -> current_picture_ptr -> motion_val [ 1 ] [ s -> mb_x * 2 + s -> mb_y * 2 * s -> b8_stride ] , s -> b8_stride ) ;\n }\n else for ( j = 0 ;\n j < 2 ;\n j ++ ) for ( i = 0 ;\n i < 2 ;\n i ++ ) for ( k = 0 ;\n k < 2 ;\n k ++ ) for ( l = 0 ;\n l < 2 ;\n l ++ ) s -> current_picture_ptr -> motion_val [ l ] [ mv_pos + i + j * s -> b8_stride ] [ k ] = calc_add_mv ( r , l , s -> next_picture_ptr -> motion_val [ 0 ] [ mv_pos + i + j * s -> b8_stride ] [ k ] ) ;\n if ( ! ( IS_16X8 ( next_bt ) || IS_8X16 ( next_bt ) || IS_8X8 ( next_bt ) ) ) rv34_mc_2mv ( r , block_type ) ;\n else rv34_mc_2mv_skip ( r ) ;\n ZERO8x2 ( s -> current_picture_ptr -> motion_val [ 0 ] [ s -> mb_x * 2 + s -> mb_y * 2 * s -> b8_stride ] , s -> b8_stride ) ;\n break ;\n case RV34_MB_P_16x16 : case RV34_MB_P_MIX16x16 : rv34_pred_mv ( r , block_type , 0 , 0 ) ;\n rv34_mc_1mv ( r , block_type , 0 , 0 , 0 , 2 , 2 , 0 ) ;\n break ;\n case RV34_MB_B_FORWARD : case RV34_MB_B_BACKWARD : r -> dmv [ 1 ] [ 0 ] = r -> dmv [ 0 ] [ 0 ] ;\n r -> dmv [ 1 ] [ 1 ] = r -> dmv [ 0 ] [ 1 ] ;\n if ( r -> rv30 ) rv34_pred_mv_rv3 ( r , block_type , block_type == RV34_MB_B_BACKWARD ) ;\n else rv34_pred_mv_b ( r , block_type , block_type == RV34_MB_B_BACKWARD ) ;\n rv34_mc_1mv ( r , block_type , 0 , 0 , 0 , 2 , 2 , block_type == RV34_MB_B_BACKWARD ) ;\n break ;\n case RV34_MB_P_16x8 : case RV34_MB_P_8x16 : rv34_pred_mv ( r , block_type , 0 , 0 ) ;\n rv34_pred_mv ( r , block_type , 1 + ( block_type == RV34_MB_P_16x8 ) , 1 ) ;\n if ( block_type == RV34_MB_P_16x8 ) {\n rv34_mc_1mv ( r , block_type , 0 , 0 , 0 , 2 , 1 , 0 ) ;\n rv34_mc_1mv ( r , block_type , 0 , 8 , s -> b8_stride , 2 , 1 , 0 ) ;\n }\n if ( block_type == RV34_MB_P_8x16 ) {\n rv34_mc_1mv ( r , block_type , 0 , 0 , 0 , 1 , 2 , 0 ) ;\n rv34_mc_1mv ( r , block_type , 8 , 0 , 1 , 1 , 2 , 0 ) ;\n }\n break ;\n case RV34_MB_B_BIDIR : rv34_pred_mv_b ( r , block_type , 0 ) ;\n rv34_pred_mv_b ( r , block_type , 1 ) ;\n rv34_mc_2mv ( r , block_type ) ;\n break ;\n case RV34_MB_P_8x8 : for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n rv34_pred_mv ( r , block_type , i , i ) ;\n rv34_mc_1mv ( r , block_type , ( i & 1 ) << 3 , ( i & 2 ) << 2 , ( i & 1 ) + ( i >> 1 ) * s -> b8_stride , 1 , 1 , 0 ) ;\n }\n break ;\n }\n return 0 ;\n }"}
{"idx": 18608, "target": 0, "func": "static int raw_decode ( char * packet , int len , struct query * q , int dns_fd , int tun_fd ) {\n int raw_user ;\n if ( len < RAW_HDR_LEN ) return 0 ;\n if ( memcmp ( packet , raw_header , RAW_HDR_IDENT_LEN ) ) return 0 ;\n raw_user = RAW_HDR_GET_USR ( packet ) ;\n switch ( RAW_HDR_GET_CMD ( packet ) ) {\n case RAW_HDR_CMD_LOGIN : handle_raw_login ( & packet [ RAW_HDR_LEN ] , len - RAW_HDR_LEN , q , dns_fd , raw_user ) ;\n break ;\n case RAW_HDR_CMD_DATA : handle_raw_data ( & packet [ RAW_HDR_LEN ] , len - RAW_HDR_LEN , q , dns_fd , tun_fd , raw_user ) ;\n break ;\n case RAW_HDR_CMD_PING : handle_raw_ping ( q , dns_fd , raw_user ) ;\n break ;\n default : warnx ( \"Unhandled raw command %02X from user %d\" , RAW_HDR_GET_CMD ( packet ) , raw_user ) ;\n break ;\n }\n return 1 ;\n }"}
{"idx": 18609, "target": 0, "func": "void ff_mpeg_unref_picture ( MpegEncContext * s , Picture * pic ) {\n int off = offsetof ( Picture , mb_mean ) + sizeof ( pic -> mb_mean ) ;\n pic -> tf . f = & pic -> f ;\n if ( s -> codec_id != AV_CODEC_ID_WMV3IMAGE && s -> codec_id != AV_CODEC_ID_VC1IMAGE && s -> codec_id != AV_CODEC_ID_MSS2 ) ff_thread_release_buffer ( s -> avctx , & pic -> tf ) ;\n else av_frame_unref ( & pic -> f ) ;\n av_buffer_unref ( & pic -> hwaccel_priv_buf ) ;\n memset ( ( uint8_t * ) pic + off , 0 , sizeof ( * pic ) - off ) ;\n }"}
{"idx": 18610, "target": 1, "func": "static void fmtstr ( char * * sbuffer , char * * buffer , size_t * currlen , size_t * maxlen , const char * value , int flags , int min , int max ) {\n int padlen , strln ;\n int cnt = 0 ;\n if ( value == 0 ) value = \"<NULL>\" ;\n for ( strln = 0 ;\n value [ strln ] ;\n ++ strln ) ;\n padlen = min - strln ;\n if ( padlen < 0 ) padlen = 0 ;\n if ( flags & DP_F_MINUS ) padlen = - padlen ;\n while ( ( padlen > 0 ) && ( cnt < max ) ) {\n doapr_outch ( sbuffer , buffer , currlen , maxlen , ' ' ) ;\n -- padlen ;\n ++ cnt ;\n }\n while ( * value && ( cnt < max ) ) {\n doapr_outch ( sbuffer , buffer , currlen , maxlen , * value ++ ) ;\n ++ cnt ;\n }\n while ( ( padlen < 0 ) && ( cnt < max ) ) {\n doapr_outch ( sbuffer , buffer , currlen , maxlen , ' ' ) ;\n ++ padlen ;\n ++ cnt ;\n }\n }"}
{"idx": 18611, "target": 0, "func": "static void destroy_restrict_fifo ( restrict_fifo * fifo ) {\n restrict_node * rn ;\n if ( fifo != NULL ) {\n do {\n UNLINK_FIFO ( rn , * fifo , link ) ;\n if ( rn != NULL ) destroy_restrict_node ( rn ) ;\n }\n while ( rn != NULL ) ;\n free ( fifo ) ;\n }\n }"}
{"idx": 18612, "target": 0, "func": "static int dissect_h225_MobileUIM ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_MobileUIM , MobileUIM_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 18613, "target": 0, "func": "static void Type_S15Fixed16_Free ( struct _cms_typehandler_struct * self , void * Ptr ) {\n _cmsFree ( self -> ContextID , Ptr ) ;\n }"}
{"idx": 18614, "target": 1, "func": "SPL_METHOD ( SplFileInfo , setFileClass ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n zend_class_entry * ce = spl_ce_SplFileObject ;\n zend_error_handling error_handling ;\n zend_replace_error_handling ( EH_THROW , spl_ce_UnexpectedValueException , & error_handling TSRMLS_CC ) ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"|C\" , & ce ) == SUCCESS ) {\n intern -> file_class = ce ;\n }\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n }"}
{"idx": 18615, "target": 0, "func": "void ssl3_record_sequence_update ( unsigned char * seq ) {\n int i ;\n for ( i = 7 ;\n i >= 0 ;\n i -- ) {\n ++ seq [ i ] ;\n if ( seq [ i ] != 0 ) break ;\n }\n }"}
{"idx": 18616, "target": 0, "func": "unsigned int vp9_variance ## W ## x ## H ## _c ( const uint8_t * a , int a_stride , const uint8_t * b , int b_stride , unsigned int * sse ) {\n int sum ;\n variance ( a , a_stride , b , b_stride , W , H , sse , & sum ) ;\n return * sse - ( ( ( int64_t ) sum * sum ) / ( W * H ) ) ;\n \\ }\n # define SUBPIX_VAR ( W , H ) unsigned int vp9_sub_pixel_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp2 , W , dst , dst_stride , sse ) ;\n \\ }\n # define SUBPIX_AVG_VAR ( W , H ) unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 ) VAR ( 8 , 4 ) SUBPIX_VAR ( 8 , 4 ) SUBPIX_AVG_VAR ( 8 , 4 ) VAR ( 8 , 8 )"}
{"idx": 18617, "target": 0, "func": "static SRP_gN * SRP_get_gN_by_id ( const char * id , STACK_OF ( SRP_gN ) * gN_tab ) {\n int i ;\n SRP_gN * gN ;\n if ( gN_tab != NULL ) for ( i = 0 ;\n i < sk_SRP_gN_num ( gN_tab ) ;\n i ++ ) {\n gN = sk_SRP_gN_value ( gN_tab , i ) ;\n if ( gN && ( id == NULL || strcmp ( gN -> id , id ) == 0 ) ) return gN ;\n }\n return SRP_get_default_gN ( id ) ;\n }"}
{"idx": 18618, "target": 0, "func": "void nautilus_directory_remove_file_from_work_queue ( NautilusDirectory * directory , NautilusFile * file ) {\n nautilus_file_queue_remove ( directory -> details -> high_priority_queue , file ) ;\n nautilus_file_queue_remove ( directory -> details -> low_priority_queue , file ) ;\n nautilus_file_queue_remove ( directory -> details -> extension_queue , file ) ;\n }"}
{"idx": 18619, "target": 0, "func": "static struct cgroup_meta_data * lxc_cgroup_load_meta ( ) {\n const char * cgroup_use = NULL ;\n char * * cgroup_use_list = NULL ;\n struct cgroup_meta_data * md = NULL ;\n int saved_errno ;\n errno = 0 ;\n cgroup_use = lxc_global_config_value ( \"lxc.cgroup.use\" ) ;\n if ( ! cgroup_use && errno != 0 ) return NULL ;\n if ( cgroup_use ) {\n cgroup_use_list = lxc_string_split_and_trim ( cgroup_use , ',' ) ;\n if ( ! cgroup_use_list ) return NULL ;\n }\n md = lxc_cgroup_load_meta2 ( ( const char * * ) cgroup_use_list ) ;\n saved_errno = errno ;\n lxc_free_array ( ( void * * ) cgroup_use_list , free ) ;\n errno = saved_errno ;\n return md ;\n }"}
{"idx": 18620, "target": 0, "func": "static long usbdev_do_ioctl ( struct file * file , unsigned int cmd , void __user * p ) {\n struct usb_dev_state * ps = file -> private_data ;\n struct inode * inode = file_inode ( file ) ;\n struct usb_device * dev = ps -> dev ;\n int ret = - ENOTTY ;\n if ( ! ( file -> f_mode & FMODE_WRITE ) ) return - EPERM ;\n usb_lock_device ( dev ) ;\n switch ( cmd ) {\n case USBDEVFS_REAPURB : snoop ( & dev -> dev , \"%s: REAPURB\\n\" , __func__ ) ;\n ret = proc_reapurb ( ps , p ) ;\n goto done ;\n case USBDEVFS_REAPURBNDELAY : snoop ( & dev -> dev , \"%s: REAPURBNDELAY\\n\" , __func__ ) ;\n ret = proc_reapurbnonblock ( ps , p ) ;\n goto done ;\n # ifdef CONFIG_COMPAT case USBDEVFS_REAPURB32 : snoop ( & dev -> dev , \"%s: REAPURB32\\n\" , __func__ ) ;\n ret = proc_reapurb_compat ( ps , p ) ;\n goto done ;\n case USBDEVFS_REAPURBNDELAY32 : snoop ( & dev -> dev , \"%s: REAPURBNDELAY32\\n\" , __func__ ) ;\n ret = proc_reapurbnonblock_compat ( ps , p ) ;\n goto done ;\n # endif }\n if ( ! connected ( ps ) ) {\n usb_unlock_device ( dev ) ;\n return - ENODEV ;\n }\n switch ( cmd ) {\n case USBDEVFS_CONTROL : snoop ( & dev -> dev , \"%s: CONTROL\\n\" , __func__ ) ;\n ret = proc_control ( ps , p ) ;\n if ( ret >= 0 ) inode -> i_mtime = CURRENT_TIME ;\n break ;\n case USBDEVFS_BULK : snoop ( & dev -> dev , \"%s: BULK\\n\" , __func__ ) ;\n ret = proc_bulk ( ps , p ) ;\n if ( ret >= 0 ) inode -> i_mtime = CURRENT_TIME ;\n break ;\n case USBDEVFS_RESETEP : snoop ( & dev -> dev , \"%s: RESETEP\\n\" , __func__ ) ;\n ret = proc_resetep ( ps , p ) ;\n if ( ret >= 0 ) inode -> i_mtime = CURRENT_TIME ;\n break ;\n case USBDEVFS_RESET : snoop ( & dev -> dev , \"%s: RESET\\n\" , __func__ ) ;\n ret = proc_resetdevice ( ps ) ;\n break ;\n case USBDEVFS_CLEAR_HALT : snoop ( & dev -> dev , \"%s: CLEAR_HALT\\n\" , __func__ ) ;\n ret = proc_clearhalt ( ps , p ) ;\n if ( ret >= 0 ) inode -> i_mtime = CURRENT_TIME ;\n break ;\n case USBDEVFS_GETDRIVER : snoop ( & dev -> dev , \"%s: GETDRIVER\\n\" , __func__ ) ;\n ret = proc_getdriver ( ps , p ) ;\n break ;\n case USBDEVFS_CONNECTINFO : snoop ( & dev -> dev , \"%s: CONNECTINFO\\n\" , __func__ ) ;\n ret = proc_connectinfo ( ps , p ) ;\n break ;\n case USBDEVFS_SETINTERFACE : snoop ( & dev -> dev , \"%s: SETINTERFACE\\n\" , __func__ ) ;\n ret = proc_setintf ( ps , p ) ;\n break ;\n case USBDEVFS_SETCONFIGURATION : snoop ( & dev -> dev , \"%s: SETCONFIGURATION\\n\" , __func__ ) ;\n ret = proc_setconfig ( ps , p ) ;\n break ;\n case USBDEVFS_SUBMITURB : snoop ( & dev -> dev , \"%s: SUBMITURB\\n\" , __func__ ) ;\n ret = proc_submiturb ( ps , p ) ;\n if ( ret >= 0 ) inode -> i_mtime = CURRENT_TIME ;\n break ;\n # ifdef CONFIG_COMPAT case USBDEVFS_CONTROL32 : snoop ( & dev -> dev , \"%s: CONTROL32\\n\" , __func__ ) ;\n ret = proc_control_compat ( ps , p ) ;\n if ( ret >= 0 ) inode -> i_mtime = CURRENT_TIME ;\n break ;\n case USBDEVFS_BULK32 : snoop ( & dev -> dev , \"%s: BULK32\\n\" , __func__ ) ;\n ret = proc_bulk_compat ( ps , p ) ;\n if ( ret >= 0 ) inode -> i_mtime = CURRENT_TIME ;\n break ;\n case USBDEVFS_DISCSIGNAL32 : snoop ( & dev -> dev , \"%s: DISCSIGNAL32\\n\" , __func__ ) ;\n ret = proc_disconnectsignal_compat ( ps , p ) ;\n break ;\n case USBDEVFS_SUBMITURB32 : snoop ( & dev -> dev , \"%s: SUBMITURB32\\n\" , __func__ ) ;\n ret = proc_submiturb_compat ( ps , p ) ;\n if ( ret >= 0 ) inode -> i_mtime = CURRENT_TIME ;\n break ;\n case USBDEVFS_IOCTL32 : snoop ( & dev -> dev , \"%s: IOCTL32\\n\" , __func__ ) ;\n ret = proc_ioctl_compat ( ps , ptr_to_compat ( p ) ) ;\n break ;\n # endif case USBDEVFS_DISCARDURB : snoop ( & dev -> dev , \"%s: DISCARDURB %p\\n\" , __func__ , p ) ;\n ret = proc_unlinkurb ( ps , p ) ;\n break ;\n case USBDEVFS_DISCSIGNAL : snoop ( & dev -> dev , \"%s: DISCSIGNAL\\n\" , __func__ ) ;\n ret = proc_disconnectsignal ( ps , p ) ;\n break ;\n case USBDEVFS_CLAIMINTERFACE : snoop ( & dev -> dev , \"%s: CLAIMINTERFACE\\n\" , __func__ ) ;\n ret = proc_claiminterface ( ps , p ) ;\n break ;\n case USBDEVFS_RELEASEINTERFACE : snoop ( & dev -> dev , \"%s: RELEASEINTERFACE\\n\" , __func__ ) ;\n ret = proc_releaseinterface ( ps , p ) ;\n break ;\n case USBDEVFS_IOCTL : snoop ( & dev -> dev , \"%s: IOCTL\\n\" , __func__ ) ;\n ret = proc_ioctl_default ( ps , p ) ;\n break ;\n case USBDEVFS_CLAIM_PORT : snoop ( & dev -> dev , \"%s: CLAIM_PORT\\n\" , __func__ ) ;\n ret = proc_claim_port ( ps , p ) ;\n break ;\n case USBDEVFS_RELEASE_PORT : snoop ( & dev -> dev , \"%s: RELEASE_PORT\\n\" , __func__ ) ;\n ret = proc_release_port ( ps , p ) ;\n break ;\n case USBDEVFS_GET_CAPABILITIES : ret = proc_get_capabilities ( ps , p ) ;\n break ;\n case USBDEVFS_DISCONNECT_CLAIM : ret = proc_disconnect_claim ( ps , p ) ;\n break ;\n case USBDEVFS_ALLOC_STREAMS : ret = proc_alloc_streams ( ps , p ) ;\n break ;\n case USBDEVFS_FREE_STREAMS : ret = proc_free_streams ( ps , p ) ;\n break ;\n case USBDEVFS_DROP_PRIVILEGES : ret = proc_drop_privileges ( ps , p ) ;\n break ;\n }\n done : usb_unlock_device ( dev ) ;\n if ( ret >= 0 ) inode -> i_atime = CURRENT_TIME ;\n return ret ;\n }"}
{"idx": 18621, "target": 0, "func": "const char * fmtId ( const char * rawid ) {\n PQExpBuffer id_return = getLocalPQExpBuffer ( ) ;\n const char * cp ;\n bool need_quotes = false ;\n if ( quote_all_identifiers ) need_quotes = true ;\n else if ( ! ( ( rawid [ 0 ] >= 'a' && rawid [ 0 ] <= 'z' ) || rawid [ 0 ] == '_' ) ) need_quotes = true ;\n else {\n for ( cp = rawid ;\n * cp ;\n cp ++ ) {\n if ( ! ( ( * cp >= 'a' && * cp <= 'z' ) || ( * cp >= '0' && * cp <= '9' ) || ( * cp == '_' ) ) ) {\n need_quotes = true ;\n break ;\n }\n }\n }\n if ( ! need_quotes ) {\n const ScanKeyword * keyword = ScanKeywordLookup ( rawid , ScanKeywords , NumScanKeywords ) ;\n if ( keyword != NULL && keyword -> category != UNRESERVED_KEYWORD ) need_quotes = true ;\n }\n if ( ! need_quotes ) {\n appendPQExpBufferStr ( id_return , rawid ) ;\n }\n else {\n appendPQExpBufferChar ( id_return , '\"' ) ;\n for ( cp = rawid ;\n * cp ;\n cp ++ ) {\n if ( * cp == '\"' ) appendPQExpBufferChar ( id_return , '\"' ) ;\n appendPQExpBufferChar ( id_return , * cp ) ;\n }\n appendPQExpBufferChar ( id_return , '\"' ) ;\n }\n return id_return -> data ;\n }"}
{"idx": 18622, "target": 0, "func": "static decoder_t * decoder_New ( vlc_object_t * p_parent , input_thread_t * p_input , es_format_t * fmt , input_clock_t * p_clock , input_resource_t * p_resource , sout_instance_t * p_sout ) {\n decoder_t * p_dec = NULL ;\n const char * psz_type = p_sout ? N_ ( \"packetizer\" ) : N_ ( \"decoder\" ) ;\n int i_priority ;\n p_dec = CreateDecoder ( p_parent , p_input , fmt , p_sout != NULL , p_resource , p_sout ) ;\n if ( p_dec == NULL ) {\n msg_Err ( p_parent , \"could not create %s\" , psz_type ) ;\n dialog_Fatal ( p_parent , _ ( \"Streaming / Transcoding failed\" ) , _ ( \"VLC could not open the %s module.\" ) , vlc_gettext ( psz_type ) ) ;\n return NULL ;\n }\n if ( ! p_dec -> p_module ) {\n DecoderUnsupportedCodec ( p_dec , fmt -> i_codec ) ;\n DeleteDecoder ( p_dec ) ;\n return NULL ;\n }\n p_dec -> p_owner -> p_clock = p_clock ;\n assert ( p_dec -> fmt_out . i_cat != UNKNOWN_ES ) ;\n if ( p_dec -> fmt_out . i_cat == AUDIO_ES ) i_priority = VLC_THREAD_PRIORITY_AUDIO ;\n else i_priority = VLC_THREAD_PRIORITY_VIDEO ;\n if ( vlc_clone ( & p_dec -> p_owner -> thread , DecoderThread , p_dec , i_priority ) ) {\n msg_Err ( p_dec , \"cannot spawn decoder thread\" ) ;\n module_unneed ( p_dec , p_dec -> p_module ) ;\n DeleteDecoder ( p_dec ) ;\n return NULL ;\n }\n return p_dec ;\n }"}
{"idx": 18623, "target": 0, "func": "int xmlHashUpdateEntry3 ( xmlHashTablePtr table , const xmlChar * name , const xmlChar * name2 , const xmlChar * name3 , void * userdata , xmlHashDeallocator f ) {\n unsigned long key ;\n xmlHashEntryPtr entry ;\n xmlHashEntryPtr insert ;\n if ( ( table == NULL ) || name == NULL ) return ( - 1 ) ;\n if ( table -> dict ) {\n if ( ! xmlDictOwns ( table -> dict , name ) ) {\n name = xmlDictLookup ( table -> dict , name , - 1 ) ;\n if ( name == NULL ) return ( - 1 ) ;\n }\n if ( ( name2 != NULL ) && ( ! xmlDictOwns ( table -> dict , name2 ) ) ) {\n name2 = xmlDictLookup ( table -> dict , name2 , - 1 ) ;\n if ( name2 == NULL ) return ( - 1 ) ;\n }\n if ( ( name3 != NULL ) && ( ! xmlDictOwns ( table -> dict , name3 ) ) ) {\n name3 = xmlDictLookup ( table -> dict , name3 , - 1 ) ;\n if ( name3 == NULL ) return ( - 1 ) ;\n }\n }\n key = xmlHashComputeKey ( table , name , name2 , name3 ) ;\n if ( table -> table [ key ] . valid == 0 ) {\n insert = NULL ;\n }\n else {\n if ( table -> dict ) {\n for ( insert = & ( table -> table [ key ] ) ;\n insert -> next != NULL ;\n insert = insert -> next ) {\n if ( ( insert -> name == name ) && ( insert -> name2 == name2 ) && ( insert -> name3 == name3 ) ) {\n if ( f ) f ( insert -> payload , insert -> name ) ;\n insert -> payload = userdata ;\n return ( 0 ) ;\n }\n }\n if ( ( insert -> name == name ) && ( insert -> name2 == name2 ) && ( insert -> name3 == name3 ) ) {\n if ( f ) f ( insert -> payload , insert -> name ) ;\n insert -> payload = userdata ;\n return ( 0 ) ;\n }\n }\n else {\n for ( insert = & ( table -> table [ key ] ) ;\n insert -> next != NULL ;\n insert = insert -> next ) {\n if ( ( xmlStrEqual ( insert -> name , name ) ) && ( xmlStrEqual ( insert -> name2 , name2 ) ) && ( xmlStrEqual ( insert -> name3 , name3 ) ) ) {\n if ( f ) f ( insert -> payload , insert -> name ) ;\n insert -> payload = userdata ;\n return ( 0 ) ;\n }\n }\n if ( ( xmlStrEqual ( insert -> name , name ) ) && ( xmlStrEqual ( insert -> name2 , name2 ) ) && ( xmlStrEqual ( insert -> name3 , name3 ) ) ) {\n if ( f ) f ( insert -> payload , insert -> name ) ;\n insert -> payload = userdata ;\n return ( 0 ) ;\n }\n }\n }\n if ( insert == NULL ) {\n entry = & ( table -> table [ key ] ) ;\n }\n else {\n entry = xmlMalloc ( sizeof ( xmlHashEntry ) ) ;\n if ( entry == NULL ) return ( - 1 ) ;\n }\n if ( table -> dict != NULL ) {\n entry -> name = ( xmlChar * ) name ;\n entry -> name2 = ( xmlChar * ) name2 ;\n entry -> name3 = ( xmlChar * ) name3 ;\n }\n else {\n entry -> name = xmlStrdup ( name ) ;\n entry -> name2 = xmlStrdup ( name2 ) ;\n entry -> name3 = xmlStrdup ( name3 ) ;\n }\n entry -> payload = userdata ;\n entry -> next = NULL ;\n entry -> valid = 1 ;\n table -> nbElems ++ ;\n if ( insert != NULL ) {\n insert -> next = entry ;\n }\n return ( 0 ) ;\n }"}
{"idx": 18624, "target": 0, "func": "static int evaluate_uid ( void ) {\n uid_t ruid = getuid ( ) ;\n uid_t euid = geteuid ( ) ;\n return ( uid_t ) 0 == ruid && ruid == euid ? 0 : 1 ;\n }"}
{"idx": 18625, "target": 0, "func": "static int dissect_h245_Ipv4_network ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 866 \"../../asn1/h245/h245.cnf\" tvbuff_t * value_tvb ;\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 4 , 4 , FALSE , & value_tvb ) ;\n if ( upcoming_channel && upcoming_channel -> upcoming_addr ) {\n tvb_memcpy ( value_tvb , upcoming_channel -> upcoming_addr -> addr_buf , 0 , 4 ) ;\n SET_ADDRESS ( & upcoming_channel -> upcoming_addr -> addr , AT_IPv4 , 4 , upcoming_channel -> upcoming_addr -> addr_buf ) ;\n }\n return offset ;\n }"}
{"idx": 18626, "target": 0, "func": "TEST_F ( TemplateURLParserTest , TestEmptyKeyword ) {\n ASSERT_NO_FATAL_FAILURE ( ParseFile ( \"empty_keyword.xml\" , nullptr ) ) ;\n ASSERT_TRUE ( template_url_ ) ;\n EXPECT_EQ ( ASCIIToUTF16 ( \"Example\" ) , template_url_ -> short_name ( ) ) ;\n EXPECT_EQ ( \"https://www.example.com/search?q={\nsearchTerms}\n\" , template_url_ -> url ( ) ) ;\n EXPECT_EQ ( ASCIIToUTF16 ( \"example.com\" ) , template_url_ -> keyword ( ) ) ;\n }"}
{"idx": 18627, "target": 0, "func": "TSReturnCode TSHandleMLocRelease ( TSMBuffer bufp , TSMLoc parent , TSMLoc mloc ) {\n MIMEFieldSDKHandle * field_handle ;\n HdrHeapObjImpl * obj = ( HdrHeapObjImpl * ) mloc ;\n if ( mloc == TS_NULL_MLOC ) {\n return TS_SUCCESS ;\n }\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n switch ( obj -> m_type ) {\n case HDR_HEAP_OBJ_URL : case HDR_HEAP_OBJ_HTTP_HEADER : case HDR_HEAP_OBJ_MIME_HEADER : return TS_SUCCESS ;\n case HDR_HEAP_OBJ_FIELD_SDK_HANDLE : field_handle = ( MIMEFieldSDKHandle * ) obj ;\n if ( sdk_sanity_check_field_handle ( mloc , parent ) != TS_SUCCESS ) {\n return TS_ERROR ;\n }\n sdk_free_field_handle ( bufp , field_handle ) ;\n return TS_SUCCESS ;\n default : ink_release_assert ( ! \"invalid mloc\" ) ;\n return TS_ERROR ;\n }\n }"}
{"idx": 18628, "target": 1, "func": "static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 18629, "target": 0, "func": "static void evhttp_detect_close_cb ( int fd , short what , void * arg ) {\n struct evhttp_connection * evcon = arg ;\n evhttp_connection_reset ( evcon ) ;\n }"}
{"idx": 18630, "target": 0, "func": "int dtls1_send_change_cipher_spec ( SSL * s , int a , int b ) {\n unsigned char * p ;\n if ( s -> state == a ) {\n p = ( unsigned char * ) s -> init_buf -> data ;\n * p ++ = SSL3_MT_CCS ;\n s -> d1 -> handshake_write_seq = s -> d1 -> next_handshake_write_seq ;\n s -> init_num = DTLS1_CCS_HEADER_LENGTH ;\n if ( s -> version == DTLS1_BAD_VER ) {\n s -> d1 -> next_handshake_write_seq ++ ;\n s2n ( s -> d1 -> handshake_write_seq , p ) ;\n s -> init_num += 2 ;\n }\n s -> init_off = 0 ;\n dtls1_set_message_header_int ( s , SSL3_MT_CCS , 0 , s -> d1 -> handshake_write_seq , 0 , 0 ) ;\n dtls1_buffer_message ( s , 1 ) ;\n s -> state = b ;\n }\n return ( dtls1_do_write ( s , SSL3_RT_CHANGE_CIPHER_SPEC ) ) ;\n }"}
{"idx": 18631, "target": 1, "func": "static int dissect_h225_LocationRejectReason ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 668 \"./asn1/h225/h225.cnf\" gint32 value ;\n h225_packet_info * h225_pi ;\n h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_LocationRejectReason , LocationRejectReason_choice , & value ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> reason = value ;\n }\n return offset ;\n }"}
{"idx": 18632, "target": 0, "func": "void simplestring_init ( simplestring * string ) {\n memset ( string , 0 , sizeof ( simplestring ) ) ;\n }"}
{"idx": 18633, "target": 0, "func": "static void final_reordering_syllable ( const hb_ot_shape_plan_t * plan , hb_buffer_t * buffer , unsigned int start , unsigned int end ) {\n const indic_shape_plan_t * indic_plan = ( const indic_shape_plan_t * ) plan -> data ;\n hb_glyph_info_t * info = buffer -> info ;\n if ( indic_plan -> virama_glyph ) {\n unsigned int virama_glyph = indic_plan -> virama_glyph ;\n for ( unsigned int i = start ;\n i < end ;\n i ++ ) if ( info [ i ] . codepoint == virama_glyph && _hb_glyph_info_ligated ( & info [ i ] ) && _hb_glyph_info_multiplied ( & info [ i ] ) ) {\n info [ i ] . indic_category ( ) = OT_H ;\n _hb_glyph_info_clear_ligated_and_multiplied ( & info [ i ] ) ;\n }\n }\n bool try_pref = ! ! indic_plan -> mask_array [ PREF ] ;\n unsigned int base ;\n for ( base = start ;\n base < end ;\n base ++ ) if ( info [ base ] . indic_position ( ) >= POS_BASE_C ) {\n if ( try_pref && base + 1 < end && indic_plan -> config -> pref_len == 2 ) {\n for ( unsigned int i = base + 1 ;\n i < end ;\n i ++ ) if ( ( info [ i ] . mask & indic_plan -> mask_array [ PREF ] ) != 0 ) {\n if ( ! ( _hb_glyph_info_substituted ( & info [ i ] ) && _hb_glyph_info_ligated_and_didnt_multiply ( & info [ i ] ) ) ) {\n base = i ;\n while ( base < end && is_halant_or_coeng ( info [ base ] ) ) base ++ ;\n info [ base ] . indic_position ( ) = POS_BASE_C ;\n try_pref = false ;\n }\n break ;\n }\n }\n if ( start < base && info [ base ] . indic_position ( ) > POS_BASE_C ) base -- ;\n break ;\n }\n if ( base == end && start < base && is_one_of ( info [ base - 1 ] , FLAG ( OT_ZWJ ) ) ) base -- ;\n if ( base < end ) while ( start < base && is_one_of ( info [ base ] , ( FLAG ( OT_N ) | HALANT_OR_COENG_FLAGS ) ) ) base -- ;\n if ( start + 1 < end && start < base ) {\n unsigned int new_pos = base == end ? base - 2 : base - 1 ;\n if ( buffer -> props . script != HB_SCRIPT_MALAYALAM && buffer -> props . script != HB_SCRIPT_TAMIL ) {\n while ( new_pos > start && ! ( is_one_of ( info [ new_pos ] , ( FLAG ( OT_M ) | HALANT_OR_COENG_FLAGS ) ) ) ) new_pos -- ;\n if ( is_halant_or_coeng ( info [ new_pos ] ) && info [ new_pos ] . indic_position ( ) != POS_PRE_M ) {\n if ( new_pos + 1 < end && is_joiner ( info [ new_pos + 1 ] ) ) new_pos ++ ;\n }\n else new_pos = start ;\n }\n if ( start < new_pos && info [ new_pos ] . indic_position ( ) != POS_PRE_M ) {\n for ( unsigned int i = new_pos ;\n i > start ;\n i -- ) if ( info [ i - 1 ] . indic_position ( ) == POS_PRE_M ) {\n unsigned int old_pos = i - 1 ;\n hb_glyph_info_t tmp = info [ old_pos ] ;\n memmove ( & info [ old_pos ] , & info [ old_pos + 1 ] , ( new_pos - old_pos ) * sizeof ( info [ 0 ] ) ) ;\n info [ new_pos ] = tmp ;\n if ( old_pos < base && base <= new_pos ) base -- ;\n buffer -> merge_clusters ( new_pos , MIN ( end , base + 1 ) ) ;\n new_pos -- ;\n }\n }\n else {\n for ( unsigned int i = start ;\n i < base ;\n i ++ ) if ( info [ i ] . indic_position ( ) == POS_PRE_M ) {\n buffer -> merge_clusters ( i , MIN ( end , base + 1 ) ) ;\n break ;\n }\n }\n }\n if ( start + 1 < end && info [ start ] . indic_position ( ) == POS_RA_TO_BECOME_REPH && ( ( info [ start ] . indic_category ( ) == OT_Repha ) ^ _hb_glyph_info_ligated_and_didnt_multiply ( & info [ start ] ) ) ) {\n unsigned int new_reph_pos ;\n reph_position_t reph_pos = indic_plan -> config -> reph_pos ;\n assert ( reph_pos != REPH_POS_DONT_CARE ) ;\n if ( reph_pos == REPH_POS_AFTER_POST ) {\n goto reph_step_5 ;\n }\n {\n new_reph_pos = start + 1 ;\n while ( new_reph_pos < base && ! is_halant_or_coeng ( info [ new_reph_pos ] ) ) new_reph_pos ++ ;\n if ( new_reph_pos < base && is_halant_or_coeng ( info [ new_reph_pos ] ) ) {\n if ( new_reph_pos + 1 < base && is_joiner ( info [ new_reph_pos + 1 ] ) ) new_reph_pos ++ ;\n goto reph_move ;\n }\n }\n if ( reph_pos == REPH_POS_AFTER_MAIN ) {\n new_reph_pos = base ;\n while ( new_reph_pos + 1 < end && info [ new_reph_pos + 1 ] . indic_position ( ) <= POS_AFTER_MAIN ) new_reph_pos ++ ;\n if ( new_reph_pos < end ) goto reph_move ;\n }\n if ( reph_pos == REPH_POS_AFTER_SUB ) {\n new_reph_pos = base ;\n while ( new_reph_pos < end && ! ( FLAG_SAFE ( info [ new_reph_pos + 1 ] . indic_position ( ) ) & ( FLAG ( POS_POST_C ) | FLAG ( POS_AFTER_POST ) | FLAG ( POS_SMVD ) ) ) ) new_reph_pos ++ ;\n if ( new_reph_pos < end ) goto reph_move ;\n }\n reph_step_5 : {\n new_reph_pos = start + 1 ;\n while ( new_reph_pos < base && ! is_halant_or_coeng ( info [ new_reph_pos ] ) ) new_reph_pos ++ ;\n if ( new_reph_pos < base && is_halant_or_coeng ( info [ new_reph_pos ] ) ) {\n if ( new_reph_pos + 1 < base && is_joiner ( info [ new_reph_pos + 1 ] ) ) new_reph_pos ++ ;\n goto reph_move ;\n }\n }\n {\n new_reph_pos = end - 1 ;\n while ( new_reph_pos > start && info [ new_reph_pos ] . indic_position ( ) == POS_SMVD ) new_reph_pos -- ;\n if ( ! hb_options ( ) . uniscribe_bug_compatible && unlikely ( is_halant_or_coeng ( info [ new_reph_pos ] ) ) ) {\n for ( unsigned int i = base + 1 ;\n i < new_reph_pos ;\n i ++ ) if ( info [ i ] . indic_category ( ) == OT_M ) {\n new_reph_pos -- ;\n }\n }\n goto reph_move ;\n }\n reph_move : {\n buffer -> merge_clusters ( start , new_reph_pos + 1 ) ;\n hb_glyph_info_t reph = info [ start ] ;\n memmove ( & info [ start ] , & info [ start + 1 ] , ( new_reph_pos - start ) * sizeof ( info [ 0 ] ) ) ;\n info [ new_reph_pos ] = reph ;\n if ( start < base && base <= new_reph_pos ) base -- ;\n }\n }\n if ( try_pref && base + 1 < end ) {\n unsigned int pref_len = indic_plan -> config -> pref_len ;\n for ( unsigned int i = base + 1 ;\n i < end ;\n i ++ ) if ( ( info [ i ] . mask & indic_plan -> mask_array [ PREF ] ) != 0 ) {\n if ( _hb_glyph_info_substituted ( & info [ i ] ) && ( ( pref_len == 1 ) ^ _hb_glyph_info_ligated_and_didnt_multiply ( & info [ i ] ) ) ) {\n unsigned int new_pos = base ;\n if ( buffer -> props . script != HB_SCRIPT_MALAYALAM && buffer -> props . script != HB_SCRIPT_TAMIL ) {\n while ( new_pos > start && ! ( is_one_of ( info [ new_pos - 1 ] , FLAG ( OT_M ) | HALANT_OR_COENG_FLAGS ) ) ) new_pos -- ;\n if ( new_pos > start && info [ new_pos - 1 ] . indic_category ( ) == OT_M ) {\n unsigned int old_pos = i ;\n for ( unsigned int i = base + 1 ;\n i < old_pos ;\n i ++ ) if ( info [ i ] . indic_category ( ) == OT_M ) {\n new_pos -- ;\n break ;\n }\n }\n }\n if ( new_pos > start && is_halant_or_coeng ( info [ new_pos - 1 ] ) ) {\n if ( new_pos < end && is_joiner ( info [ new_pos ] ) ) new_pos ++ ;\n }\n {\n unsigned int old_pos = i ;\n buffer -> merge_clusters ( new_pos , old_pos + 1 ) ;\n hb_glyph_info_t tmp = info [ old_pos ] ;\n memmove ( & info [ new_pos + 1 ] , & info [ new_pos ] , ( old_pos - new_pos ) * sizeof ( info [ 0 ] ) ) ;\n info [ new_pos ] = tmp ;\n if ( new_pos <= base && base < old_pos ) base ++ ;\n }\n }\n break ;\n }\n }\n if ( info [ start ] . indic_position ( ) == POS_PRE_M && ( ! start || ! ( FLAG_SAFE ( _hb_glyph_info_get_general_category ( & info [ start - 1 ] ) ) & FLAG_RANGE ( HB_UNICODE_GENERAL_CATEGORY_FORMAT , HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK ) ) ) ) info [ start ] . mask |= indic_plan -> mask_array [ INIT ] ;\n if ( hb_options ( ) . uniscribe_bug_compatible ) {\n switch ( ( hb_tag_t ) plan -> props . script ) {\n case HB_SCRIPT_TAMIL : case HB_SCRIPT_SINHALA : break ;\n default : buffer -> merge_clusters ( start , end ) ;\n break ;\n }\n }\n }"}
{"idx": 18634, "target": 0, "func": "int vp8_set_reference ( VP8_COMP * cpi , enum vpx_ref_frame_type ref_frame_flag , YV12_BUFFER_CONFIG * sd ) {\n VP8_COMMON * cm = & cpi -> common ;\n int ref_fb_idx ;\n if ( ref_frame_flag == VP8_LAST_FRAME ) ref_fb_idx = cm -> lst_fb_idx ;\n else if ( ref_frame_flag == VP8_GOLD_FRAME ) ref_fb_idx = cm -> gld_fb_idx ;\n else if ( ref_frame_flag == VP8_ALTR_FRAME ) ref_fb_idx = cm -> alt_fb_idx ;\n else return - 1 ;\n vp8_yv12_copy_frame ( sd , & cm -> yv12_fb [ ref_fb_idx ] ) ;\n return 0 ;\n }"}
{"idx": 18635, "target": 0, "func": "void get_typlenbyval ( Oid typid , int16 * typlen , bool * typbyval ) {\n HeapTuple tp ;\n Form_pg_type typtup ;\n tp = SearchSysCache1 ( TYPEOID , ObjectIdGetDatum ( typid ) ) ;\n if ( ! HeapTupleIsValid ( tp ) ) elog ( ERROR , \"cache lookup failed for type %u\" , typid ) ;\n typtup = ( Form_pg_type ) GETSTRUCT ( tp ) ;\n * typlen = typtup -> typlen ;\n * typbyval = typtup -> typbyval ;\n ReleaseSysCache ( tp ) ;\n }"}
{"idx": 18636, "target": 0, "func": "static cmsBool Type_DateTime_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) {\n struct tm * DateTime = ( struct tm * ) Ptr ;\n cmsDateTimeNumber timestamp ;\n _cmsEncodeDateTimeNumber ( & timestamp , DateTime ) ;\n if ( ! io -> Write ( io , sizeof ( cmsDateTimeNumber ) , & timestamp ) ) return FALSE ;\n return TRUE ;\n cmsUNUSED_PARAMETER ( nItems ) ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 18637, "target": 0, "func": "static void vga_draw_glyph9 ( uint8_t * d , int linesize , const uint8_t * font_ptr , int h , uint32_t fgcol , uint32_t bgcol , int dup9 ) {\n uint32_t font_data , xorcol , v ;\n xorcol = bgcol ^ fgcol ;\n do {\n font_data = font_ptr [ 0 ] ;\n ( ( uint32_t * ) d ) [ 0 ] = ( - ( ( font_data >> 7 ) ) & xorcol ) ^ bgcol ;\n ( ( uint32_t * ) d ) [ 1 ] = ( - ( ( font_data >> 6 ) & 1 ) & xorcol ) ^ bgcol ;\n ( ( uint32_t * ) d ) [ 2 ] = ( - ( ( font_data >> 5 ) & 1 ) & xorcol ) ^ bgcol ;\n ( ( uint32_t * ) d ) [ 3 ] = ( - ( ( font_data >> 4 ) & 1 ) & xorcol ) ^ bgcol ;\n ( ( uint32_t * ) d ) [ 4 ] = ( - ( ( font_data >> 3 ) & 1 ) & xorcol ) ^ bgcol ;\n ( ( uint32_t * ) d ) [ 5 ] = ( - ( ( font_data >> 2 ) & 1 ) & xorcol ) ^ bgcol ;\n ( ( uint32_t * ) d ) [ 6 ] = ( - ( ( font_data >> 1 ) & 1 ) & xorcol ) ^ bgcol ;\n v = ( - ( ( font_data >> 0 ) & 1 ) & xorcol ) ^ bgcol ;\n ( ( uint32_t * ) d ) [ 7 ] = v ;\n if ( dup9 ) ( ( uint32_t * ) d ) [ 8 ] = v ;\n else ( ( uint32_t * ) d ) [ 8 ] = bgcol ;\n font_ptr += 4 ;\n d += linesize ;\n }\n while ( -- h ) ;\n }"}
{"idx": 18638, "target": 0, "func": "static uint32_t e1000e_mac_eitr_read ( E1000ECore * core , int index ) {\n return core -> eitr_guest_value [ index - EITR ] ;\n }"}
{"idx": 18639, "target": 0, "func": "static inline PixelTrait GetPixelChannelTraits ( const Image * restrict image , const PixelChannel channel ) {\n return ( image -> channel_map [ channel ] . traits ) ;\n }"}
{"idx": 18640, "target": 0, "func": "static int32_t ucnv_copyPlatformString ( char * platformString , UConverterPlatform pltfrm ) {\n switch ( pltfrm ) {\n case UCNV_IBM : uprv_strcpy ( platformString , \"ibm-\" ) ;\n return 4 ;\n case UCNV_UNKNOWN : break ;\n }\n * platformString = 0 ;\n return 0 ;\n }"}
{"idx": 18641, "target": 0, "func": "void jpc_qmfb_join_colgrp ( jpc_fix_t * a , int numrows , int stride , int parity ) {\n int bufsize = JPC_CEILDIVPOW2 ( numrows , 1 ) ;\n jpc_fix_t joinbuf [ QMFB_JOINBUFSIZE * JPC_QMFB_COLGRPSIZE ] ;\n jpc_fix_t * buf = joinbuf ;\n jpc_fix_t * srcptr ;\n jpc_fix_t * dstptr ;\n register jpc_fix_t * srcptr2 ;\n register jpc_fix_t * dstptr2 ;\n register int n ;\n register int i ;\n int hstartcol ;\n if ( bufsize > QMFB_JOINBUFSIZE ) {\n if ( ! ( buf = jas_alloc3 ( bufsize , JPC_QMFB_COLGRPSIZE , sizeof ( jpc_fix_t ) ) ) ) {\n abort ( ) ;\n }\n }\n hstartcol = ( numrows + 1 - parity ) >> 1 ;\n n = hstartcol ;\n srcptr = & a [ 0 ] ;\n dstptr = buf ;\n while ( n -- > 0 ) {\n dstptr2 = dstptr ;\n srcptr2 = srcptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n * dstptr2 = * srcptr2 ;\n ++ dstptr2 ;\n ++ srcptr2 ;\n }\n srcptr += stride ;\n dstptr += JPC_QMFB_COLGRPSIZE ;\n }\n srcptr = & a [ hstartcol * stride ] ;\n dstptr = & a [ ( 1 - parity ) * stride ] ;\n n = numrows - hstartcol ;\n while ( n -- > 0 ) {\n dstptr2 = dstptr ;\n srcptr2 = srcptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n * dstptr2 = * srcptr2 ;\n ++ dstptr2 ;\n ++ srcptr2 ;\n }\n dstptr += 2 * stride ;\n srcptr += stride ;\n }\n srcptr = buf ;\n dstptr = & a [ parity * stride ] ;\n n = hstartcol ;\n while ( n -- > 0 ) {\n dstptr2 = dstptr ;\n srcptr2 = srcptr ;\n for ( i = 0 ;\n i < JPC_QMFB_COLGRPSIZE ;\n ++ i ) {\n * dstptr2 = * srcptr2 ;\n ++ dstptr2 ;\n ++ srcptr2 ;\n }\n dstptr += 2 * stride ;\n srcptr += JPC_QMFB_COLGRPSIZE ;\n }\n if ( buf != joinbuf ) {\n jas_free ( buf ) ;\n }\n }"}
{"idx": 18642, "target": 1, "func": "static __inline __uint16_t __uint16_identity ( __uint16_t __x ) {\n return __x ;\n }"}
{"idx": 18643, "target": 0, "func": "TEST_F ( OmniboxViewViewsTest , Emphasis ) {\n constexpr struct {\n const char * input ;\n bool expected_base_text_emphasized ;\n Range expected_emphasis_range ;\n Range expected_scheme_range ;\n }\n test_cases [ ] = {\n {\n \"data:text/html,Hello%20World\" , false , Range ( 0 , 4 ) , Range ( 0 , 4 ) }\n , {\n \"http://www.example.com/path/file.htm\" , false , Range ( 7 , 22 ) , Range ( 0 , 4 ) }\n , {\n \"https://www.example.com/path/file.htm\" , false , Range ( 8 , 23 ) , Range ( 0 , 5 ) }\n , {\n \"chrome-extension://ldfbacdbackkjhclmhnjabngnppnkagl\" , false , Range : : InvalidRange ( ) , Range ( 0 , 16 ) }\n , {\n \"nosuchscheme://opaque/string\" , true , Range : : InvalidRange ( ) , Range ( 0 , 12 ) }\n , {\n \"nosuchscheme:opaquestring\" , true , Range : : InvalidRange ( ) , Range ( 0 , 12 ) }\n , {\n \"host.com/path/file\" , false , Range ( 0 , 8 ) , Range : : InvalidRange ( ) }\n , {\n \"This is plain text\" , true , Range : : InvalidRange ( ) , Range : : InvalidRange ( ) }\n , }\n ;\n for ( const auto & test_case : test_cases ) {\n SCOPED_TRACE ( test_case . input ) ;\n SetAndEmphasizeText ( test_case . input , false ) ;\n EXPECT_EQ ( TestingOmniboxView : : to_base_text_emphasis ( test_case . expected_base_text_emphasized ) , omnibox_view ( ) -> base_text_emphasis ( ) ) ;\n EXPECT_EQ ( test_case . expected_emphasis_range , omnibox_view ( ) -> emphasis_range ( ) ) ;\n EXPECT_FALSE ( omnibox_view ( ) -> scheme_range ( ) . IsValid ( ) ) ;\n if ( test_case . expected_scheme_range . IsValid ( ) ) {\n SetAndEmphasizeText ( test_case . input , true ) ;\n EXPECT_EQ ( TestingOmniboxView : : to_base_text_emphasis ( test_case . expected_base_text_emphasized ) , omnibox_view ( ) -> base_text_emphasis ( ) ) ;\n EXPECT_EQ ( test_case . expected_emphasis_range , omnibox_view ( ) -> emphasis_range ( ) ) ;\n EXPECT_EQ ( test_case . expected_scheme_range , omnibox_view ( ) -> scheme_range ( ) ) ;\n }\n }\n }"}
{"idx": 18644, "target": 0, "func": "TEST_F ( BrowsingDataRemoverImplTest , RemoveQuotaManagedDataForeverSpecificOrigin ) {\n std : : unique_ptr < BrowsingDataFilterBuilder > builder ( BrowsingDataFilterBuilder : : Create ( BrowsingDataFilterBuilder : : WHITELIST ) ) ;\n builder -> AddRegisterableDomain ( kTestRegisterableDomain1 ) ;\n BlockUntilOriginDataRemoved ( base : : Time ( ) , base : : Time : : Max ( ) , BrowsingDataRemover : : REMOVE_APPCACHE | BrowsingDataRemover : : REMOVE_SERVICE_WORKERS | BrowsingDataRemover : : REMOVE_CACHE_STORAGE | BrowsingDataRemover : : REMOVE_FILE_SYSTEMS | BrowsingDataRemover : : REMOVE_INDEXEDDB | BrowsingDataRemover : : REMOVE_WEBSQL , std : : move ( builder ) ) ;\n EXPECT_EQ ( BrowsingDataRemover : : REMOVE_APPCACHE | BrowsingDataRemover : : REMOVE_SERVICE_WORKERS | BrowsingDataRemover : : REMOVE_CACHE_STORAGE | BrowsingDataRemover : : REMOVE_FILE_SYSTEMS | BrowsingDataRemover : : REMOVE_INDEXEDDB | BrowsingDataRemover : : REMOVE_WEBSQL , GetRemovalMask ( ) ) ;\n EXPECT_EQ ( BrowsingDataHelper : : UNPROTECTED_WEB , GetOriginTypeMask ( ) ) ;\n StoragePartitionRemovalData removal_data = GetStoragePartitionRemovalData ( ) ;\n EXPECT_EQ ( removal_data . remove_mask , StoragePartition : : REMOVE_DATA_MASK_FILE_SYSTEMS | StoragePartition : : REMOVE_DATA_MASK_WEBSQL | StoragePartition : : REMOVE_DATA_MASK_APPCACHE | StoragePartition : : REMOVE_DATA_MASK_SERVICE_WORKERS | StoragePartition : : REMOVE_DATA_MASK_CACHE_STORAGE | StoragePartition : : REMOVE_DATA_MASK_INDEXEDDB ) ;\n EXPECT_EQ ( removal_data . quota_storage_remove_mask , StoragePartition : : QUOTA_MANAGED_STORAGE_MASK_ALL ) ;\n EXPECT_TRUE ( removal_data . origin_matcher . Run ( kOrigin1 , mock_policy ( ) ) ) ;\n EXPECT_FALSE ( removal_data . origin_matcher . Run ( kOrigin2 , mock_policy ( ) ) ) ;\n EXPECT_FALSE ( removal_data . origin_matcher . Run ( kOrigin3 , mock_policy ( ) ) ) ;\n EXPECT_FALSE ( removal_data . origin_matcher . Run ( kOrigin4 , mock_policy ( ) ) ) ;\n }"}
{"idx": 18645, "target": 0, "func": "static inline float lerp ( float a , float b , float x ) {\n return a + ( b - a ) * x ;\n }"}
{"idx": 18646, "target": 0, "func": "static void parse_mark ( void ) {\n const char * v ;\n if ( skip_prefix ( command_buf . buf , \"mark :\" , & v ) ) {\n next_mark = strtoumax ( v , NULL , 10 ) ;\n read_next_command ( ) ;\n }\n else next_mark = 0 ;\n }"}
{"idx": 18647, "target": 0, "func": "TEST_F ( ProfileInfoCacheTest , GAIAName ) {\n GetCache ( ) -> AddProfileToCache ( GetProfilePath ( \"path_1\" ) , ASCIIToUTF16 ( \"Person 1\" ) , base : : string16 ( ) , 0 , std : : string ( ) ) ;\n base : : string16 profile_name ( ASCIIToUTF16 ( \"Person 2\" ) ) ;\n GetCache ( ) -> AddProfileToCache ( GetProfilePath ( \"path_2\" ) , profile_name , base : : string16 ( ) , 0 , std : : string ( ) ) ;\n int index1 = GetCache ( ) -> GetIndexOfProfileWithPath ( GetProfilePath ( \"path_1\" ) ) ;\n int index2 = GetCache ( ) -> GetIndexOfProfileWithPath ( GetProfilePath ( \"path_2\" ) ) ;\n EXPECT_TRUE ( GetCache ( ) -> GetGAIANameOfProfileAtIndex ( index1 ) . empty ( ) ) ;\n EXPECT_TRUE ( GetCache ( ) -> GetGAIANameOfProfileAtIndex ( index2 ) . empty ( ) ) ;\n base : : string16 gaia_name ( ASCIIToUTF16 ( \"Pat Smith\" ) ) ;\n GetCache ( ) -> SetGAIANameOfProfileAtIndex ( index2 , gaia_name ) ;\n index1 = GetCache ( ) -> GetIndexOfProfileWithPath ( GetProfilePath ( \"path_1\" ) ) ;\n index2 = GetCache ( ) -> GetIndexOfProfileWithPath ( GetProfilePath ( \"path_2\" ) ) ;\n EXPECT_TRUE ( GetCache ( ) -> GetGAIANameOfProfileAtIndex ( index1 ) . empty ( ) ) ;\n EXPECT_EQ ( gaia_name , GetCache ( ) -> GetGAIANameOfProfileAtIndex ( index2 ) ) ;\n EXPECT_EQ ( gaia_name , GetCache ( ) -> GetNameOfProfileAtIndex ( index2 ) ) ;\n base : : string16 custom_name ( ASCIIToUTF16 ( \"Custom name\" ) ) ;\n GetCache ( ) -> SetNameOfProfileAtIndex ( index2 , custom_name ) ;\n GetCache ( ) -> SetProfileIsUsingDefaultNameAtIndex ( index2 , false ) ;\n index1 = GetCache ( ) -> GetIndexOfProfileWithPath ( GetProfilePath ( \"path_1\" ) ) ;\n index2 = GetCache ( ) -> GetIndexOfProfileWithPath ( GetProfilePath ( \"path_2\" ) ) ;\n EXPECT_EQ ( custom_name , GetCache ( ) -> GetNameOfProfileAtIndex ( index2 ) ) ;\n EXPECT_EQ ( gaia_name , GetCache ( ) -> GetGAIANameOfProfileAtIndex ( index2 ) ) ;\n }"}
{"idx": 18648, "target": 0, "func": "static int decide_key_frame ( VP8_COMP * cpi ) {\n VP8_COMMON * cm = & cpi -> common ;\n int code_key_frame = 0 ;\n cpi -> kf_boost = 0 ;\n if ( cpi -> Speed > 11 ) return 0 ;\n vp8_clear_system_state ( ) ;\n if ( ( cpi -> compressor_speed == 2 ) && ( cpi -> Speed >= 5 ) && ( cpi -> sf . RD == 0 ) ) {\n double change = 1.0 * abs ( ( int ) ( cpi -> mb . intra_error - cpi -> last_intra_error ) ) / ( 1 + cpi -> last_intra_error ) ;\n double change2 = 1.0 * abs ( ( int ) ( cpi -> mb . prediction_error - cpi -> last_prediction_error ) ) / ( 1 + cpi -> last_prediction_error ) ;\n double minerror = cm -> MBs * 256 ;\n cpi -> last_intra_error = cpi -> mb . intra_error ;\n cpi -> last_prediction_error = cpi -> mb . prediction_error ;\n if ( 10 * cpi -> mb . intra_error / ( 1 + cpi -> mb . prediction_error ) < 15 && cpi -> mb . prediction_error > minerror && ( change > .25 || change2 > .25 ) ) {\n return 1 ;\n }\n return 0 ;\n }\n if ( ( ( cpi -> this_frame_percent_intra == 100 ) && ( cpi -> this_frame_percent_intra > ( cpi -> last_frame_percent_intra + 2 ) ) ) || ( ( cpi -> this_frame_percent_intra > 95 ) && ( cpi -> this_frame_percent_intra >= ( cpi -> last_frame_percent_intra + 5 ) ) ) ) {\n code_key_frame = 1 ;\n }\n else if ( ( ( cpi -> this_frame_percent_intra > 60 ) && ( cpi -> this_frame_percent_intra > ( cpi -> last_frame_percent_intra * 2 ) ) ) || ( ( cpi -> this_frame_percent_intra > 75 ) && ( cpi -> this_frame_percent_intra > ( cpi -> last_frame_percent_intra * 3 / 2 ) ) ) || ( ( cpi -> this_frame_percent_intra > 90 ) && ( cpi -> this_frame_percent_intra > ( cpi -> last_frame_percent_intra + 10 ) ) ) ) {\n if ( ! cm -> refresh_golden_frame ) code_key_frame = 1 ;\n }\n return code_key_frame ;\n }"}
{"idx": 18649, "target": 0, "func": "static ram_addr_t s390_virtio_next_ring ( VirtIOS390Bus * bus ) {\n ram_addr_t r = bus -> next_ring ;\n bus -> next_ring += VIRTIO_RING_LEN ;\n return r ;\n }"}
{"idx": 18650, "target": 0, "func": "static int try_rgrow_left ( MAIN_WINDOW_REC * window , int count ) {\n MAIN_WINDOW_REC * grow_win ;\n grow_win = mainwindows_find_left ( window , FALSE ) ;\n if ( grow_win != NULL ) {\n grow_win -> last_column += count ;\n window -> first_column += count ;\n mainwindows_rresize_two ( grow_win , window , count ) ;\n return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 18651, "target": 0, "func": "static int dissect_zbee_zcl_part ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n proto_tree * payload_tree ;\n zbee_zcl_packet * zcl ;\n guint offset = 0 ;\n guint8 cmd_id ;\n gint rem_len ;\n if ( data == NULL ) return 0 ;\n zcl = ( zbee_zcl_packet * ) data ;\n cmd_id = zcl -> cmd_id ;\n if ( zcl -> direction == ZBEE_ZCL_FCF_TO_SERVER ) {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"%s, Seq: %u\" , val_to_str_const ( cmd_id , zbee_zcl_part_srv_rx_cmd_names , \"Unknown Command\" ) , zcl -> tran_seqno ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_part_srv_rx_cmd_id , tvb , offset , 1 , cmd_id ) ;\n rem_len = tvb_reported_length_remaining ( tvb , ++ offset ) ;\n if ( rem_len > 0 ) {\n payload_tree = proto_tree_add_subtree ( tree , tvb , offset , rem_len , ett_zbee_zcl_part , NULL , \"Payload\" ) ;\n switch ( cmd_id ) {\n case ZBEE_ZCL_CMD_ID_PART_TRANSF_PART_FRAME : dissect_zcl_part_trasfpartframe ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_PART_RD_HANDSHAKE_PARAM : dissect_zcl_part_rdhandshakeparam ( tvb , pinfo , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_PART_WR_HANDSHAKE_PARAM : dissect_zcl_part_wrhandshakeparam ( tvb , pinfo , payload_tree , & offset ) ;\n break ;\n default : break ;\n }\n }\n }\n else {\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"%s, Seq: %u\" , val_to_str_const ( cmd_id , zbee_zcl_part_srv_tx_cmd_names , \"Unknown Command\" ) , zcl -> tran_seqno ) ;\n proto_tree_add_item ( tree , hf_zbee_zcl_part_srv_tx_cmd_id , tvb , offset , 1 , cmd_id ) ;\n rem_len = tvb_reported_length_remaining ( tvb , ++ offset ) ;\n if ( rem_len > 0 ) {\n payload_tree = proto_tree_add_subtree ( tree , tvb , offset , rem_len , ett_zbee_zcl_part , NULL , \"Payload\" ) ;\n switch ( cmd_id ) {\n case ZBEE_ZCL_CMD_ID_PART_MULTI_ACK : dissect_zcl_part_multiack ( tvb , payload_tree , & offset ) ;\n break ;\n case ZBEE_ZCL_CMD_ID_PART_RD_HANDSHAKE_PARAM_RSP : dissect_zcl_part_rdhandshakeparamrsp ( tvb , pinfo , payload_tree , & offset ) ;\n break ;\n default : break ;\n }\n }\n }\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 18652, "target": 0, "func": "static void set_environment ( struct passwd * pw ) {\n const char * cp ;\n if ( change_environment && fakelogin ) {\n cp = getenv ( \"TERM\" ) ;\n if ( NULL != cp ) {\n addenv ( \"TERM\" , cp ) ;\n }\n cp = getenv ( \"COLORTERM\" ) ;\n if ( NULL != cp ) {\n addenv ( \"COLORTERM\" , cp ) ;\n }\n # ifndef USE_PAM cp = getdef_str ( \"ENV_TZ\" ) ;\n if ( NULL != cp ) {\n addenv ( ( '/' == * cp ) ? tz ( cp ) : cp , NULL ) ;\n }\n cp = getdef_str ( \"ENV_HZ\" ) ;\n if ( NULL != cp ) {\n addenv ( cp , NULL ) ;\n }\n # endif cp = getenv ( \"DISPLAY\" ) ;\n if ( NULL != cp ) {\n addenv ( \"DISPLAY\" , cp ) ;\n }\n cp = getenv ( \"XAUTHORITY\" ) ;\n if ( NULL != cp ) {\n addenv ( \"XAUTHORITY\" , cp ) ;\n }\n }\n else {\n char * * envp = environ ;\n while ( NULL != * envp ) {\n addenv ( * envp , NULL ) ;\n envp ++ ;\n }\n }\n cp = getdef_str ( ( pw -> pw_uid == 0 ) ? \"ENV_SUPATH\" : \"ENV_PATH\" ) ;\n if ( NULL == cp ) {\n addenv ( ( pw -> pw_uid == 0 ) ? \"PATH=/sbin:/bin:/usr/sbin:/usr/bin\" : \"PATH=/bin:/usr/bin\" , NULL ) ;\n }\n else if ( strchr ( cp , '=' ) != NULL ) {\n addenv ( cp , NULL ) ;\n }\n else {\n addenv ( \"PATH\" , cp ) ;\n }\n if ( getenv ( \"IFS\" ) != NULL ) {\n addenv ( \"IFS= \\t\\n\" , NULL ) ;\n }\n # ifdef USE_PAM environ = newenvp ;\n if ( change_environment ) {\n char * * envcp = pam_getenvlist ( pamh ) ;\n if ( NULL != envcp ) {\n while ( NULL != * envcp ) {\n addenv ( * envcp , NULL ) ;\n envcp ++ ;\n }\n }\n }\n # else environ = newenvp ;\n # endif if ( change_environment ) {\n if ( fakelogin ) {\n if ( shellstr != pw -> pw_shell ) {\n free ( pw -> pw_shell ) ;\n pw -> pw_shell = xstrdup ( shellstr ) ;\n }\n setup_env ( pw ) ;\n }\n else {\n addenv ( \"HOME\" , pw -> pw_dir ) ;\n addenv ( \"USER\" , pw -> pw_name ) ;\n addenv ( \"LOGNAME\" , pw -> pw_name ) ;\n addenv ( \"SHELL\" , shellstr ) ;\n }\n }\n }"}
{"idx": 18653, "target": 0, "func": "char * xmlrpc_boolean ( char * buf , int value ) {\n * buf = '\\0' ;\n snprintf ( buf , XMLRPC_BUFSIZE , \"<boolean>%d</boolean>\" , ( value ? 1 : 0 ) ) ;\n return buf ;\n }"}
{"idx": 18654, "target": 0, "func": "static struct inode_security_struct * backing_inode_security ( struct dentry * dentry ) {\n struct inode * inode = d_backing_inode ( dentry ) ;\n __inode_security_revalidate ( inode , dentry , true ) ;\n return inode -> i_security ;\n }"}
{"idx": 18655, "target": 0, "func": "static int _reload_object ( PyObject * * object , char * module_name , char * object_name ) {\n PyObject * module ;\n module = PyImport_ImportModule ( module_name ) ;\n if ( ! module ) {\n return 1 ;\n }\n * object = PyObject_GetAttrString ( module , object_name ) ;\n Py_DECREF ( module ) ;\n return ( * object ) ? 0 : 2 ;\n }"}
{"idx": 18656, "target": 0, "func": "TEST_F ( OmniboxViewViewsTest , ScheduledTextEditCommand ) {\n omnibox_textfield ( ) -> SetTextEditCommandForNextKeyEvent ( ui : : TextEditCommand : : MOVE_UP ) ;\n EXPECT_EQ ( ui : : TextEditCommand : : MOVE_UP , scheduled_text_edit_command ( ) ) ;\n ui : : KeyEvent up_pressed ( ui : : ET_KEY_PRESSED , ui : : VKEY_UP , 0 ) ;\n omnibox_textfield ( ) -> OnKeyEvent ( & up_pressed ) ;\n EXPECT_EQ ( ui : : TextEditCommand : : INVALID_COMMAND , scheduled_text_edit_command ( ) ) ;\n }"}
{"idx": 18657, "target": 0, "func": "static int leap_file ( FILE * fp ) {\n char buf [ NTP_MAXSTRLEN ] ;\n u_long leap ;\n u_long expire ;\n int offset ;\n int i ;\n offset = 0 ;\n leap = 0 ;\n expire = 0 ;\n i = 10 ;\n while ( fgets ( buf , NTP_MAXSTRLEN - 1 , fp ) != NULL ) {\n if ( strlen ( buf ) < 1 ) continue ;\n if ( buf [ 0 ] == '#' ) {\n if ( strlen ( buf ) < 3 ) continue ;\n if ( buf [ 1 ] == '@' || buf [ 1 ] == '$' ) {\n if ( sscanf ( & buf [ 2 ] , \"%lu\" , & expire ) != 1 ) return ( - 1 ) ;\n continue ;\n }\n }\n if ( sscanf ( buf , \"%lu %d\" , & leap , & offset ) == 2 ) {\n if ( i ++ != offset ) return ( - 1 ) ;\n }\n }\n if ( i == 10 ) return ( - 1 ) ;\n leap_tai = offset ;\n leap_sec = leap ;\n leap_expire = expire ;\n return ( 0 ) ;\n }"}
{"idx": 18658, "target": 0, "func": "static void show_wbxml_string_table ( proto_tree * tree , tvbuff_t * tvb , guint32 str_tbl , guint32 str_tbl_len ) {\n guint32 off = str_tbl ;\n guint32 len = 0 ;\n guint32 end = str_tbl + str_tbl_len ;\n proto_tree_add_text ( tree , tvb , off , end , \"Start | Length | String\" ) ;\n while ( off < end ) {\n len = tvb_strsize ( tvb , off ) ;\n proto_tree_add_text ( tree , tvb , off , len , \"%6d | %6d | '%s'\" , off - str_tbl , len , tvb_format_text ( tvb , off , len - 1 ) ) ;\n off += len ;\n }\n }"}
{"idx": 18659, "target": 0, "func": "static xmlNodeSetPtr exsltMathHighest ( xmlNodeSetPtr ns ) {\n xmlNodeSetPtr ret = xmlXPathNodeSetCreate ( NULL ) ;\n double max , cur ;\n int i ;\n if ( ( ns == NULL ) || ( ns -> nodeNr == 0 ) ) return ( ret ) ;\n max = xmlXPathCastNodeToNumber ( ns -> nodeTab [ 0 ] ) ;\n if ( xmlXPathIsNaN ( max ) ) return ( ret ) ;\n else xmlXPathNodeSetAddUnique ( ret , ns -> nodeTab [ 0 ] ) ;\n for ( i = 1 ;\n i < ns -> nodeNr ;\n i ++ ) {\n cur = xmlXPathCastNodeToNumber ( ns -> nodeTab [ i ] ) ;\n if ( xmlXPathIsNaN ( cur ) ) {\n xmlXPathEmptyNodeSet ( ret ) ;\n return ( ret ) ;\n }\n if ( cur < max ) continue ;\n if ( cur > max ) {\n max = cur ;\n xmlXPathEmptyNodeSet ( ret ) ;\n xmlXPathNodeSetAddUnique ( ret , ns -> nodeTab [ i ] ) ;\n continue ;\n }\n xmlXPathNodeSetAddUnique ( ret , ns -> nodeTab [ i ] ) ;\n }\n return ( ret ) ;\n }"}
{"idx": 18660, "target": 0, "func": "static uint64_t vmsvga_io_read ( void * opaque , hwaddr addr , unsigned size ) {\n struct vmsvga_state_s * s = opaque ;\n switch ( addr ) {\n case SVGA_IO_MUL * SVGA_INDEX_PORT : return vmsvga_index_read ( s , addr ) ;\n case SVGA_IO_MUL * SVGA_VALUE_PORT : return vmsvga_value_read ( s , addr ) ;\n case SVGA_IO_MUL * SVGA_BIOS_PORT : return vmsvga_bios_read ( s , addr ) ;\n default : return - 1u ;\n }\n }"}
{"idx": 18661, "target": 0, "func": "void asciize ( int length , char * data , FILE * fp ) {\n makeascii ( length , data , fp ) ;\n putc ( '\\n' , fp ) ;\n }"}
{"idx": 18662, "target": 0, "func": "THD * first_global_thread ( ) {\n if ( threads . is_empty ( ) ) return NULL ;\n return threads . head ( ) ;\n }"}
{"idx": 18663, "target": 1, "func": "void Init_ossl_cipher ( void ) {\n # if 0 mOSSL = rb_define_module ( \"OpenSSL\" ) ;\n eOSSLError = rb_define_class_under ( mOSSL , \"OpenSSLError\" , rb_eStandardError ) ;\n # endif cCipher = rb_define_class_under ( mOSSL , \"Cipher\" , rb_cObject ) ;\n eCipherError = rb_define_class_under ( cCipher , \"CipherError\" , eOSSLError ) ;\n rb_define_alloc_func ( cCipher , ossl_cipher_alloc ) ;\n rb_define_copy_func ( cCipher , ossl_cipher_copy ) ;\n rb_define_module_function ( cCipher , \"ciphers\" , ossl_s_ciphers , 0 ) ;\n rb_define_method ( cCipher , \"initialize\" , ossl_cipher_initialize , 1 ) ;\n rb_define_method ( cCipher , \"reset\" , ossl_cipher_reset , 0 ) ;\n rb_define_method ( cCipher , \"encrypt\" , ossl_cipher_encrypt , - 1 ) ;\n rb_define_method ( cCipher , \"decrypt\" , ossl_cipher_decrypt , - 1 ) ;\n rb_define_method ( cCipher , \"pkcs5_keyivgen\" , ossl_cipher_pkcs5_keyivgen , - 1 ) ;\n rb_define_method ( cCipher , \"update\" , ossl_cipher_update , - 1 ) ;\n rb_define_method ( cCipher , \"final\" , ossl_cipher_final , 0 ) ;\n rb_define_method ( cCipher , \"name\" , ossl_cipher_name , 0 ) ;\n rb_define_method ( cCipher , \"key=\" , ossl_cipher_set_key , 1 ) ;\n rb_define_method ( cCipher , \"auth_data=\" , ossl_cipher_set_auth_data , 1 ) ;\n rb_define_method ( cCipher , \"auth_tag=\" , ossl_cipher_set_auth_tag , 1 ) ;\n rb_define_method ( cCipher , \"auth_tag\" , ossl_cipher_get_auth_tag , - 1 ) ;\n rb_define_method ( cCipher , \"auth_tag_len=\" , ossl_cipher_set_auth_tag_len , 1 ) ;\n rb_define_method ( cCipher , \"authenticated?\" , ossl_cipher_is_authenticated , 0 ) ;\n rb_define_method ( cCipher , \"key_len=\" , ossl_cipher_set_key_length , 1 ) ;\n rb_define_method ( cCipher , \"key_len\" , ossl_cipher_key_length , 0 ) ;\n rb_define_method ( cCipher , \"iv=\" , ossl_cipher_set_iv , 1 ) ;\n rb_define_method ( cCipher , \"iv_len=\" , ossl_cipher_set_iv_length , 1 ) ;\n rb_define_method ( cCipher , \"iv_len\" , ossl_cipher_iv_length , 0 ) ;\n rb_define_method ( cCipher , \"block_size\" , ossl_cipher_block_size , 0 ) ;\n rb_define_method ( cCipher , \"padding=\" , ossl_cipher_set_padding , 1 ) ;\n id_auth_tag_len = rb_intern_const ( \"auth_tag_len\" ) ;\n }"}
{"idx": 18664, "target": 1, "func": "static void _UTF16BEOpen ( UConverter * cnv , UConverterLoadArgs * pArgs , UErrorCode * pErrorCode ) {\n if ( UCNV_GET_VERSION ( cnv ) <= 1 ) {\n _UTF16BEReset ( cnv , UCNV_RESET_BOTH ) ;\n }\n else {\n * pErrorCode = U_ILLEGAL_ARGUMENT_ERROR ;\n }\n }"}
{"idx": 18665, "target": 0, "func": "static void read_addr_restrictions ( struct recvbuf * rbufp ) {\n u_int idx ;\n idx = 0 ;\n send_restrict_list ( restrictlist4 , FALSE , & idx ) ;\n send_restrict_list ( restrictlist6 , TRUE , & idx ) ;\n ctl_flushpkt ( 0 ) ;\n }"}
{"idx": 18666, "target": 0, "func": "static int msg_msg_alloc_security ( struct msg_msg * msg ) {\n struct msg_security_struct * msec ;\n msec = kzalloc ( sizeof ( struct msg_security_struct ) , GFP_KERNEL ) ;\n if ( ! msec ) return - ENOMEM ;\n msec -> sid = SECINITSID_UNLABELED ;\n msg -> security = msec ;\n return 0 ;\n }"}
{"idx": 18667, "target": 0, "func": "jas_image_fmtinfo_t * jas_image_lookupfmtbyname ( const char * name ) {\n int i ;\n jas_image_fmtinfo_t * fmtinfo ;\n for ( i = 0 , fmtinfo = jas_image_fmtinfos ;\n i < jas_image_numfmts ;\n ++ i , ++ fmtinfo ) {\n if ( ! strcmp ( fmtinfo -> name , name ) ) {\n return fmtinfo ;\n }\n }\n return 0 ;\n }"}
{"idx": 18668, "target": 0, "func": "static int __tipc_add_link_prop ( struct sk_buff * skb , struct tipc_nl_compat_msg * msg , struct tipc_link_config * lc ) {\n switch ( msg -> cmd ) {\n case TIPC_CMD_SET_LINK_PRI : return nla_put_u32 ( skb , TIPC_NLA_PROP_PRIO , ntohl ( lc -> value ) ) ;\n case TIPC_CMD_SET_LINK_TOL : return nla_put_u32 ( skb , TIPC_NLA_PROP_TOL , ntohl ( lc -> value ) ) ;\n case TIPC_CMD_SET_LINK_WINDOW : return nla_put_u32 ( skb , TIPC_NLA_PROP_WIN , ntohl ( lc -> value ) ) ;\n }\n return - EINVAL ;\n }"}
{"idx": 18669, "target": 0, "func": "static Entity * EntityCreate ( SplinePointList * head , int linecap , int linejoin , real linewidth , real * transform , SplineSet * clippath ) {\n Entity * ent = calloc ( 1 , sizeof ( Entity ) ) ;\n ent -> type = et_splines ;\n ent -> u . splines . splines = head ;\n ent -> u . splines . cap = linecap ;\n ent -> u . splines . join = linejoin ;\n ent -> u . splines . stroke_width = linewidth ;\n ent -> u . splines . fill . col = 0xffffffff ;\n ent -> u . splines . stroke . col = 0xffffffff ;\n ent -> u . splines . fill . opacity = 1.0 ;\n ent -> u . splines . stroke . opacity = 1.0 ;\n ent -> clippath = SplinePointListCopy ( clippath ) ;\n memcpy ( ent -> u . splines . transform , transform , 6 * sizeof ( real ) ) ;\n return ( ent ) ;\n }"}
{"idx": 18670, "target": 0, "func": "int petite_inflate2x_1to9 ( char * buf , uint32_t minrva , uint32_t bufsz , struct cli_exe_section * sections , unsigned int sectcount , uint32_t Imagebase , uint32_t pep , int desc , int version , uint32_t ResRva , uint32_t ResSize ) {\n char * adjbuf = buf - minrva ;\n char * packed = NULL ;\n uint32_t thisrva = 0 , bottom = 0 , enc_ep = 0 , irva = 0 , workdone = 0 , grown = 0x355 , skew = 0x35 ;\n int j = 0 , oob , mangled = 0 , check4resources = 0 ;\n struct cli_exe_section * usects = NULL ;\n void * tmpsct = NULL ;\n if ( version == 2 ) packed = adjbuf + sections [ sectcount - 1 ] . rva + 0x1b8 ;\n if ( version == 1 ) {\n packed = adjbuf + sections [ sectcount - 1 ] . rva + 0x178 ;\n grown = 0x323 ;\n skew = 0x34 ;\n }\n while ( 1 ) {\n char * ssrc , * ddst ;\n uint32_t size , srva ;\n int backbytes , oldback , addsize ;\n unsigned int backsize ;\n if ( ! CLI_ISCONTAINED ( buf , bufsz , packed , 4 ) ) {\n if ( usects ) free ( usects ) ;\n return 1 ;\n }\n srva = cli_readint32 ( packed ) ;\n if ( ! srva ) {\n int t , upd = 1 ;\n if ( j <= 0 ) return 1 ;\n while ( upd ) {\n upd = 0 ;\n for ( t = 0 ;\n t < j - 1 ;\n t ++ ) {\n uint32_t trva , trsz , tvsz ;\n if ( usects [ t ] . rva <= usects [ t + 1 ] . rva ) continue ;\n trva = usects [ t ] . rva ;\n trsz = usects [ t ] . rsz ;\n tvsz = usects [ t ] . vsz ;\n usects [ t ] . rva = usects [ t + 1 ] . rva ;\n usects [ t ] . rsz = usects [ t + 1 ] . rsz ;\n usects [ t ] . vsz = usects [ t + 1 ] . vsz ;\n usects [ t + 1 ] . rva = trva ;\n usects [ t + 1 ] . rsz = trsz ;\n usects [ t + 1 ] . vsz = tvsz ;\n upd = 1 ;\n }\n }\n for ( t = 0 ;\n t < j - 1 ;\n t ++ ) {\n if ( usects [ t ] . vsz != usects [ t + 1 ] . rva - usects [ t ] . rva ) usects [ t ] . vsz = usects [ t + 1 ] . rva - usects [ t ] . rva ;\n }\n if ( enc_ep ) {\n uint32_t virtaddr = pep + 5 + Imagebase , tmpep ;\n int rndm = 0 , dummy = 1 ;\n char * thunk = adjbuf + irva ;\n char * imports ;\n if ( version == 2 ) {\n while ( dummy && CLI_ISCONTAINED ( buf , bufsz , thunk , 4 ) ) {\n uint32_t api ;\n if ( ! cli_readint32 ( thunk ) ) {\n workdone = 1 ;\n break ;\n }\n imports = adjbuf + cli_readint32 ( thunk ) ;\n thunk += 4 ;\n dummy = 0 ;\n while ( CLI_ISCONTAINED ( buf , bufsz , imports , 4 ) ) {\n dummy = 0 ;\n imports += 4 ;\n if ( ! ( api = cli_readint32 ( imports - 4 ) ) ) {\n dummy = 1 ;\n break ;\n }\n if ( ( api != ( api | 0x80000000 ) ) && mangled && -- rndm < 0 ) {\n api = virtaddr ;\n virtaddr += 5 ;\n rndm = virtaddr & 7 ;\n }\n else {\n api = 0xbff01337 ;\n }\n if ( sections [ sectcount - 1 ] . rva + Imagebase < api ) enc_ep -- ;\n if ( api < virtaddr ) enc_ep -- ;\n tmpep = ( enc_ep & 0xfffffff8 ) >> 3 & 0x1fffffff ;\n enc_ep = ( enc_ep & 7 ) << 29 | tmpep ;\n }\n }\n }\n else workdone = 1 ;\n enc_ep = pep + 5 + enc_ep ;\n if ( workdone == 1 ) {\n cli_dbgmsg ( \"Petite: Old EP: %x\\n\" , enc_ep ) ;\n }\n else {\n enc_ep = usects [ 0 ] . rva ;\n cli_dbgmsg ( \"Petite: In troubles while attempting to decrypt old EP, using bogus %x\\n\" , enc_ep ) ;\n }\n }\n for ( t = 0 ;\n t < j ;\n t ++ ) {\n usects [ t ] . raw = ( t > 0 ) ? ( usects [ t - 1 ] . raw + usects [ t - 1 ] . rsz ) : 0 ;\n if ( usects [ t ] . rsz != 0 ) {\n if ( CLI_ISCONTAINED ( buf , bufsz , buf + usects [ t ] . raw , usects [ t ] . rsz ) ) {\n memmove ( buf + usects [ t ] . raw , adjbuf + usects [ t ] . rva , usects [ t ] . rsz ) ;\n }\n else {\n cli_dbgmsg ( \"Petite: Skipping section %d, Raw: %x, RSize:%x\\n\" , t , usects [ t ] . raw , usects [ t ] . rsz ) ;\n usects [ t ] . raw = t > 0 ? usects [ t - 1 ] . raw : 0 ;\n usects [ t ] . rsz = 0 ;\n }\n }\n }\n cli_dbgmsg ( \"Petite: Sections dump:\\n\" ) ;\n for ( t = 0 ;\n t < j ;\n t ++ ) cli_dbgmsg ( \"Petite: .SECT%d RVA:%x VSize:%x ROffset: %x, RSize:%x\\n\" , t , usects [ t ] . rva , usects [ t ] . vsz , usects [ t ] . raw , usects [ t ] . rsz ) ;\n if ( ! cli_rebuildpe ( buf , usects , j , Imagebase , enc_ep , ResRva , ResSize , desc ) ) {\n cli_dbgmsg ( \"Petite: Rebuilding failed\\n\" ) ;\n free ( usects ) ;\n return 1 ;\n }\n free ( usects ) ;\n return 0 ;\n }\n size = srva & 0x7fffffff ;\n if ( srva != size ) {\n check4resources = 0 ;\n if ( ! CLI_ISCONTAINED ( buf , bufsz , packed + 4 , 8 ) ) {\n if ( usects ) free ( usects ) ;\n return 1 ;\n }\n bottom = cli_readint32 ( packed + 8 ) + 4 ;\n ssrc = adjbuf + cli_readint32 ( packed + 4 ) - ( size - 1 ) * 4 ;\n ddst = adjbuf + cli_readint32 ( packed + 8 ) - ( size - 1 ) * 4 ;\n if ( ! CLI_ISCONTAINED ( buf , bufsz , ssrc , size * 4 ) || ! CLI_ISCONTAINED ( buf , bufsz , ddst , size * 4 ) ) {\n if ( usects ) free ( usects ) ;\n return 1 ;\n }\n memmove ( ddst , ssrc , size * 4 ) ;\n packed += 0x0c ;\n }\n else {\n uint32_t check1 , check2 ;\n uint8_t mydl = 0 ;\n uint8_t goback ;\n unsigned int q ;\n if ( ! CLI_ISCONTAINED ( buf , bufsz , packed + 4 , 8 ) ) {\n if ( usects ) free ( usects ) ;\n return 1 ;\n }\n size = cli_readint32 ( packed + 4 ) ;\n thisrva = cli_readint32 ( packed + 8 ) ;\n packed += 0x10 ;\n if ( j >= 96 ) {\n cli_dbgmsg ( \"Petite: maximum number of sections exceeded, giving up.\\n\" ) ;\n free ( usects ) ;\n return 1 ;\n }\n if ( ! ( tmpsct = cli_realloc ( usects , sizeof ( struct cli_exe_section ) * ( j + 1 ) ) ) ) {\n if ( usects ) free ( usects ) ;\n return 1 ;\n }\n usects = ( struct cli_exe_section * ) tmpsct ;\n usects [ j ] . rva = thisrva ;\n usects [ j ] . rsz = size ;\n if ( ( int ) ( bottom - thisrva ) > 0 ) usects [ j ] . vsz = bottom - thisrva ;\n else usects [ j ] . vsz = size ;\n usects [ j ] . raw = 0 ;\n if ( ! size ) {\n j ++ ;\n continue ;\n }\n ssrc = adjbuf + srva ;\n ddst = adjbuf + thisrva ;\n for ( q = 0 ;\n q < sectcount ;\n q ++ ) {\n if ( ! CLI_ISCONTAINED ( sections [ q ] . rva , sections [ q ] . vsz , usects [ j ] . rva , usects [ j ] . vsz ) ) continue ;\n if ( ! check4resources ) {\n usects [ j ] . rva = sections [ q ] . rva ;\n usects [ j ] . rsz = thisrva - sections [ q ] . rva + size ;\n }\n break ;\n }\n if ( q == sectcount ) {\n free ( usects ) ;\n return 1 ;\n }\n j ++ ;\n if ( size < 0x10000 ) {\n check1 = 0x0FFFFC060 ;\n check2 = 0x0FFFFFC60 ;\n goback = 5 ;\n }\n else if ( size < 0x40000 ) {\n check1 = 0x0FFFF8180 ;\n check2 = 0x0FFFFF980 ;\n goback = 7 ;\n }\n else {\n check1 = 0x0FFFF8300 ;\n check2 = 0x0FFFFFB00 ;\n goback = 8 ;\n }\n if ( ! CLI_ISCONTAINED ( buf , bufsz , ssrc , 1 ) || ! CLI_ISCONTAINED ( buf , bufsz , ddst , 1 ) ) {\n free ( usects ) ;\n return 1 ;\n }\n size -- ;\n * ddst ++ = * ssrc ++ ;\n backbytes = 0 ;\n oldback = 0 ;\n while ( size > 0 ) {\n oob = doubledl ( & ssrc , & mydl , buf , bufsz ) ;\n if ( oob == - 1 ) {\n free ( usects ) ;\n return 1 ;\n }\n if ( ! oob ) {\n if ( ! CLI_ISCONTAINED ( buf , bufsz , ssrc , 1 ) || ! CLI_ISCONTAINED ( buf , bufsz , ddst , 1 ) ) {\n free ( usects ) ;\n return 1 ;\n }\n * ddst ++ = ( char ) ( ( * ssrc ++ ) ^ ( size & 0xff ) ) ;\n size -- ;\n }\n else {\n addsize = 0 ;\n backbytes ++ ;\n while ( 1 ) {\n if ( ( oob = doubledl ( & ssrc , & mydl , buf , bufsz ) ) == - 1 ) {\n free ( usects ) ;\n return 1 ;\n }\n backbytes = backbytes * 2 + oob ;\n if ( ( oob = doubledl ( & ssrc , & mydl , buf , bufsz ) ) == - 1 ) {\n free ( usects ) ;\n return 1 ;\n }\n if ( ! oob ) break ;\n }\n backbytes -= 3 ;\n if ( backbytes >= 0 ) {\n backsize = goback ;\n do {\n if ( ( oob = doubledl ( & ssrc , & mydl , buf , bufsz ) ) == - 1 ) {\n free ( usects ) ;\n return 1 ;\n }\n backbytes = backbytes * 2 + oob ;\n backsize -- ;\n }\n while ( backsize ) ;\n backbytes ^= 0xffffffff ;\n addsize += 1 + ( backbytes < ( int ) check2 ) + ( backbytes < ( int ) check1 ) ;\n oldback = backbytes ;\n }\n else {\n backsize = backbytes + 1 ;\n backbytes = oldback ;\n }\n if ( ( oob = doubledl ( & ssrc , & mydl , buf , bufsz ) ) == - 1 ) {\n free ( usects ) ;\n return 1 ;\n }\n backsize = backsize * 2 + oob ;\n if ( ( oob = doubledl ( & ssrc , & mydl , buf , bufsz ) ) == - 1 ) {\n free ( usects ) ;\n return 1 ;\n }\n backsize = backsize * 2 + oob ;\n if ( ! backsize ) {\n backsize ++ ;\n while ( 1 ) {\n if ( ( oob = doubledl ( & ssrc , & mydl , buf , bufsz ) ) == - 1 ) {\n free ( usects ) ;\n return 1 ;\n }\n backsize = backsize * 2 + oob ;\n if ( ( oob = doubledl ( & ssrc , & mydl , buf , bufsz ) ) == - 1 ) {\n free ( usects ) ;\n return 1 ;\n }\n if ( ! oob ) break ;\n }\n backsize += 2 ;\n }\n backsize += addsize ;\n size -= backsize ;\n if ( ! CLI_ISCONTAINED ( buf , bufsz , ddst , backsize ) || ! CLI_ISCONTAINED ( buf , bufsz , ddst + backbytes , backsize ) ) {\n free ( usects ) ;\n return 1 ;\n }\n while ( backsize -- ) {\n * ddst = * ( ddst + backbytes ) ;\n ddst ++ ;\n }\n backbytes = 0 ;\n backsize = 0 ;\n }\n }\n if ( j ) {\n int strippetite = 0 ;\n uint32_t reloc ;\n if ( usects [ j - 1 ] . rsz > grown && CLI_ISCONTAINED ( buf , bufsz , ddst - grown + 5 + 0x4f , 8 ) && cli_readint32 ( ddst - grown + 5 + 0x4f ) == 0x645ec033 && cli_readint32 ( ddst - grown + 5 + 0x4f + 4 ) == 0x1b8b188b ) {\n reloc = 0 ;\n strippetite = 1 ;\n }\n if ( ! strippetite && usects [ j - 1 ] . rsz > grown + skew && CLI_ISCONTAINED ( buf , bufsz , ddst - grown + 5 + 0x4f - skew , 8 ) && cli_readint32 ( ddst - grown + 5 + 0x4f - skew ) == 0x645ec033 && cli_readint32 ( ddst - grown + 5 + 0x4f + 4 - skew ) == 0x1b8b188b ) {\n reloc = skew ;\n strippetite = 1 ;\n }\n if ( strippetite && CLI_ISCONTAINED ( buf , bufsz , ddst - grown + 0x0f - 8 - reloc , 8 ) ) {\n uint32_t test1 , test2 ;\n test1 = cli_readint32 ( ddst - grown + 0x0f - 8 - reloc ) ^ 0x9d6661aa ;\n test2 = cli_readint32 ( ddst - grown + 0x0f - 4 - reloc ) ^ 0xe908c483 ;\n cli_dbgmsg ( \"Petite: Found petite code in sect%d(%x). Let's strip it.\\n\" , j - 1 , usects [ j - 1 ] . rva ) ;\n if ( test1 == test2 && CLI_ISCONTAINED ( buf , bufsz , ddst - grown + 0x0f - reloc , 0x1c0 - 0x0f + 4 ) ) {\n irva = cli_readint32 ( ddst - grown + 0x121 - reloc ) ;\n enc_ep = cli_readint32 ( ddst - grown + 0x0f - reloc ) ^ test1 ;\n mangled = ( ( uint32_t ) cli_readint32 ( ddst - grown + 0x1c0 - reloc ) != 0x90909090 ) ;\n cli_dbgmsg ( \"Petite: Encrypted EP: %x | Array of imports: %x\\n\" , enc_ep , irva ) ;\n }\n usects [ j - 1 ] . rsz -= grown + reloc ;\n }\n }\n check4resources ++ ;\n }\n }\n }"}
{"idx": 18671, "target": 0, "func": "int event_loop ( int flags ) {\n return event_base_loop ( current_base , flags ) ;\n }"}
{"idx": 18672, "target": 0, "func": "static gpgme_error_t gpgsm_delete ( void * engine , gpgme_key_t key , int allow_secret ) {\n engine_gpgsm_t gpgsm = engine ;\n gpgme_error_t err ;\n char * fpr = key -> subkeys ? key -> subkeys -> fpr : NULL ;\n char * linep = fpr ;\n char * line ;\n int length = 8 ;\n if ( ! fpr ) return gpg_error ( GPG_ERR_INV_VALUE ) ;\n while ( * linep ) {\n length ++ ;\n if ( * linep == '%' || * linep == ' ' || * linep == '+' ) length += 2 ;\n linep ++ ;\n }\n length ++ ;\n line = malloc ( length ) ;\n if ( ! line ) return gpg_error_from_syserror ( ) ;\n strcpy ( line , \"DELKEYS \" ) ;\n linep = & line [ 8 ] ;\n while ( * fpr ) {\n switch ( * fpr ) {\n case '%' : * ( linep ++ ) = '%' ;\n * ( linep ++ ) = '2' ;\n * ( linep ++ ) = '5' ;\n break ;\n case ' ' : * ( linep ++ ) = '%' ;\n * ( linep ++ ) = '2' ;\n * ( linep ++ ) = '0' ;\n break ;\n case '+' : * ( linep ++ ) = '%' ;\n * ( linep ++ ) = '2' ;\n * ( linep ++ ) = 'B' ;\n break ;\n default : * ( linep ++ ) = * fpr ;\n break ;\n }\n fpr ++ ;\n }\n * linep = '\\0' ;\n gpgsm_clear_fd ( gpgsm , OUTPUT_FD ) ;\n gpgsm_clear_fd ( gpgsm , INPUT_FD ) ;\n gpgsm_clear_fd ( gpgsm , MESSAGE_FD ) ;\n gpgsm -> inline_data = NULL ;\n err = start ( gpgsm , line ) ;\n free ( line ) ;\n return err ;\n }"}
{"idx": 18673, "target": 0, "func": "const EVP_CIPHER * EVP_aes_ ## keylen ## _ ## mode ( void ) \\ {\n return & aes_ ## keylen ## _ ## mode ;\n }\n # define BLOCK_CIPHER_custom ( nid , keylen , blocksize , ivlen , mode , MODE , flags ) static const EVP_CIPHER aes_ ## keylen ## _ ## mode = {\n \\ nid ## _ ## keylen ## _ ## mode , blocksize , \\ ( EVP_CIPH_ ## MODE ## _MODE == EVP_CIPH_XTS_MODE ? 2 : 1 ) * keylen / 8 , ivlen , \\ flags | EVP_CIPH_ ## MODE ## _MODE , \\ aes_ ## mode ## _init_key , \\ aes_ ## mode ## _cipher , \\ aes_ ## mode ## _cleanup , \\ sizeof ( EVP_AES_ ## MODE ## _CTX ) , \\ NULL , NULL , aes_ ## mode ## _ctrl , NULL }\n ;\n const EVP_CIPHER * EVP_aes_ ## keylen ## _ ## mode ( void ) \\ {\n return & aes_ ## keylen ## _ ## mode ;\n }\n # 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_CAPABLE ( OPENSSL_armcap_P & ARMV7_NEON ) # endif # if defined ( VPAES_ASM ) # define VPAES_CAPABLE ( OPENSSL_armcap_P & ARMV7_NEON ) # endif # define HWAES_CAPABLE ( OPENSSL_armcap_P & ARMV8_AES ) # define HWAES_set_encrypt_key aes_v8_set_encrypt_key # define HWAES_set_decrypt_key aes_v8_set_decrypt_key # define HWAES_encrypt aes_v8_encrypt # define HWAES_decrypt aes_v8_decrypt # define HWAES_cbc_encrypt aes_v8_cbc_encrypt # define HWAES_ctr32_encrypt_blocks aes_v8_ctr32_encrypt_blocks # endif # endif # if defined ( HWAES_CAPABLE ) int HWAES_set_encrypt_key ( const unsigned char * userKey , const int bits , AES_KEY * key ) ;\n int HWAES_set_decrypt_key ( const unsigned char * userKey , const int bits , AES_KEY * key ) ;\n void HWAES_encrypt ( const unsigned char * in , unsigned char * out , const AES_KEY * key ) ;\n void HWAES_decrypt ( const unsigned char * in , unsigned char * out , const AES_KEY * key ) ;\n void HWAES_cbc_encrypt ( const unsigned char * in , unsigned char * out , size_t length , const AES_KEY * key , unsigned char * ivec , const int enc ) ;\n void HWAES_ctr32_encrypt_blocks ( const unsigned char * in , unsigned char * out , size_t len , const AES_KEY * key , const unsigned char ivec [ 16 ] ) ;\n void HWAES_xts_encrypt ( const unsigned char * inp , unsigned char * out , size_t len , const AES_KEY * key1 , const AES_KEY * key2 , const unsigned char iv [ 16 ] ) ;\n void HWAES_xts_decrypt ( const unsigned char * inp , unsigned char * out , size_t len , const AES_KEY * key1 , const AES_KEY * key2 , const unsigned char iv [ 16 ] ) ;\n # endif # define BLOCK_CIPHER_generic_pack ( nid , keylen , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 16 , 16 , cbc , cbc , CBC , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 16 , 0 , ecb , ecb , ECB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , ofb128 , ofb , OFB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb128 , cfb , CFB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb1 , cfb1 , CFB , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb8 , cfb8 , CFB , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , ctr , ctr , CTR , flags ) static int aes_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n int ret , mode ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n mode = EVP_CIPHER_CTX_mode ( ctx ) ;\n if ( ( mode == EVP_CIPH_ECB_MODE || mode == EVP_CIPH_CBC_MODE ) && ! enc ) {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_decrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n # endif }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CBC_MODE ) {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = ( cbc128_f ) bsaes_cbc_encrypt ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n }\n }\n else # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_encrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n else # endif # ifdef HWAES_ctr32_encrypt_blocks if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) HWAES_ctr32_encrypt_blocks ;\n else # endif ( void ) 0 ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CTR_MODE ) {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . ctr = ( ctr128_f ) bsaes_ctr32_encrypt_blocks ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n # ifdef AES_CTR_ASM if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) AES_ctr32_encrypt ;\n # endif }\n if ( ret < 0 ) {\n EVPerr ( EVP_F_AES_INIT_KEY , EVP_R_AES_KEY_SETUP_FAILED ) ;\n return 0 ;\n }\n return 1 ;\n }\n static int aes_cbc_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( dat -> stream . cbc ) ( * dat -> stream . cbc ) ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_encrypting ( ctx ) ) ;\n else if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) CRYPTO_cbc128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , dat -> block ) ;\n else CRYPTO_cbc128_decrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , dat -> block ) ;\n return 1 ;\n }\n static int aes_ecb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n size_t bl = EVP_CIPHER_CTX_block_size ( ctx ) ;\n size_t i ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( len < bl ) return 1 ;\n for ( i = 0 , len -= bl ;\n i <= len ;\n i += bl ) ( * dat -> block ) ( in + i , out + i , & dat -> ks ) ;\n return 1 ;\n }\n static int aes_ofb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_ofb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb8_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_8_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb1_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( EVP_CIPHER_CTX_test_flags ( ctx , EVP_CIPH_FLAG_LENGTH_BITS ) ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n while ( len >= MAXBITCHUNK ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , MAXBITCHUNK * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n len -= MAXBITCHUNK ;\n }\n if ( len ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n }\n return 1 ;\n }\n static int aes_ctr_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n unsigned int num = EVP_CIPHER_CTX_num ( ctx ) ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( dat -> stream . ctr ) CRYPTO_ctr128_encrypt_ctr32 ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> stream . ctr ) ;\n else CRYPTO_ctr128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n BLOCK_CIPHER_generic_pack ( NID_aes , 128 , 0 ) BLOCK_CIPHER_generic_pack ( NID_aes , 192 , 0 )"}
{"idx": 18674, "target": 0, "func": "double histogram_selectivity ( VariableStatData * vardata , FmgrInfo * opproc , Datum constval , bool varonleft , int min_hist_size , int n_skip , int * hist_size ) {\n double result ;\n Datum * values ;\n int nvalues ;\n Assert ( n_skip >= 0 ) ;\n Assert ( min_hist_size > 2 * n_skip ) ;\n if ( HeapTupleIsValid ( vardata -> statsTuple ) && statistic_proc_security_check ( vardata , opproc -> fn_oid ) && get_attstatsslot ( vardata -> statsTuple , vardata -> atttype , vardata -> atttypmod , STATISTIC_KIND_HISTOGRAM , InvalidOid , NULL , & values , & nvalues , NULL , NULL ) ) {\n * hist_size = nvalues ;\n if ( nvalues >= min_hist_size ) {\n int nmatch = 0 ;\n int i ;\n for ( i = n_skip ;\n i < nvalues - n_skip ;\n i ++ ) {\n if ( varonleft ? DatumGetBool ( FunctionCall2Coll ( opproc , DEFAULT_COLLATION_OID , values [ i ] , constval ) ) : DatumGetBool ( FunctionCall2Coll ( opproc , DEFAULT_COLLATION_OID , constval , values [ i ] ) ) ) nmatch ++ ;\n }\n result = ( ( double ) nmatch ) / ( ( double ) ( nvalues - 2 * n_skip ) ) ;\n }\n else result = - 1 ;\n free_attstatsslot ( vardata -> atttype , values , nvalues , NULL , 0 ) ;\n }\n else {\n * hist_size = 0 ;\n result = - 1 ;\n }\n return result ;\n }"}
{"idx": 18675, "target": 0, "func": "static int libschroedinger_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n int64_t pts = avpkt -> pts ;\n SchroTag * tag ;\n SchroDecoderParams * p_schro_params = avctx -> priv_data ;\n SchroDecoder * decoder = p_schro_params -> decoder ;\n SchroBuffer * enc_buf ;\n SchroFrame * frame ;\n AVFrame * avframe = data ;\n int state ;\n int go = 1 ;\n int outer = 1 ;\n SchroParseUnitContext parse_ctx ;\n LibSchroFrameContext * framewithpts = NULL ;\n * got_frame = 0 ;\n parse_context_init ( & parse_ctx , buf , buf_size ) ;\n if ( ! buf_size ) {\n if ( ! p_schro_params -> eos_signalled ) {\n state = schro_decoder_push_end_of_stream ( decoder ) ;\n p_schro_params -> eos_signalled = 1 ;\n }\n }\n do {\n if ( ( enc_buf = find_next_parse_unit ( & parse_ctx ) ) ) {\n enc_buf -> tag = schro_tag_new ( av_malloc ( sizeof ( int64_t ) ) , av_free ) ;\n if ( ! enc_buf -> tag -> value ) {\n av_log ( avctx , AV_LOG_ERROR , \"Unable to allocate SchroTag\\n\" ) ;\n return AVERROR ( ENOMEM ) ;\n }\n AV_WN ( 64 , enc_buf -> tag -> value , pts ) ;\n if ( SCHRO_PARSE_CODE_IS_PICTURE ( enc_buf -> data [ 4 ] ) && SCHRO_PARSE_CODE_NUM_REFS ( enc_buf -> data [ 4 ] ) > 0 ) avctx -> has_b_frames = 1 ;\n state = schro_decoder_push ( decoder , enc_buf ) ;\n if ( state == SCHRO_DECODER_FIRST_ACCESS_UNIT ) libschroedinger_handle_first_access_unit ( avctx ) ;\n go = 1 ;\n }\n else outer = 0 ;\n while ( go ) {\n state = schro_decoder_wait ( decoder ) ;\n switch ( state ) {\n case SCHRO_DECODER_FIRST_ACCESS_UNIT : libschroedinger_handle_first_access_unit ( avctx ) ;\n break ;\n case SCHRO_DECODER_NEED_BITS : go = 0 ;\n break ;\n case SCHRO_DECODER_NEED_FRAME : frame = ff_create_schro_frame ( avctx , p_schro_params -> frame_format ) ;\n schro_decoder_add_output_picture ( decoder , frame ) ;\n break ;\n case SCHRO_DECODER_OK : tag = schro_decoder_get_picture_tag ( decoder ) ;\n frame = schro_decoder_pull ( decoder ) ;\n if ( frame ) {\n framewithpts = av_malloc ( sizeof ( LibSchroFrameContext ) ) ;\n if ( ! framewithpts ) {\n av_log ( avctx , AV_LOG_ERROR , \"Unable to allocate FrameWithPts\\n\" ) ;\n return AVERROR ( ENOMEM ) ;\n }\n framewithpts -> frame = frame ;\n framewithpts -> pts = AV_RN64 ( tag -> value ) ;\n ff_schro_queue_push_back ( & p_schro_params -> dec_frame_queue , framewithpts ) ;\n }\n break ;\n case SCHRO_DECODER_EOS : go = 0 ;\n p_schro_params -> eos_pulled = 1 ;\n schro_decoder_reset ( decoder ) ;\n outer = 0 ;\n break ;\n case SCHRO_DECODER_ERROR : return - 1 ;\n break ;\n }\n }\n }\n while ( outer ) ;\n framewithpts = ff_schro_queue_pop ( & p_schro_params -> dec_frame_queue ) ;\n if ( framewithpts && framewithpts -> frame ) {\n if ( ff_get_buffer ( avctx , avframe , 0 ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Unable to allocate buffer\\n\" ) ;\n return AVERROR ( ENOMEM ) ;\n }\n memcpy ( avframe -> data [ 0 ] , framewithpts -> frame -> components [ 0 ] . data , framewithpts -> frame -> components [ 0 ] . length ) ;\n memcpy ( avframe -> data [ 1 ] , framewithpts -> frame -> components [ 1 ] . data , framewithpts -> frame -> components [ 1 ] . length ) ;\n memcpy ( avframe -> data [ 2 ] , framewithpts -> frame -> components [ 2 ] . data , framewithpts -> frame -> components [ 2 ] . length ) ;\n avframe -> pkt_pts = framewithpts -> pts ;\n avframe -> linesize [ 0 ] = framewithpts -> frame -> components [ 0 ] . stride ;\n avframe -> linesize [ 1 ] = framewithpts -> frame -> components [ 1 ] . stride ;\n avframe -> linesize [ 2 ] = framewithpts -> frame -> components [ 2 ] . stride ;\n * got_frame = 1 ;\n libschroedinger_decode_frame_free ( framewithpts -> frame ) ;\n av_free ( framewithpts ) ;\n }\n else {\n data = NULL ;\n * got_frame = 0 ;\n }\n return buf_size ;\n }"}
{"idx": 18676, "target": 0, "func": "TEST_F ( AccountChooserDialogAndroidTest , CheckHistogramsReportingManyAccounts ) {\n base : : HistogramTester histogram_tester ;\n AccountChooserDialogAndroid * dialog = CreateDialogManyAccounts ( ) ;\n dialog -> OnCredentialClicked ( base : : android : : AttachCurrentThread ( ) , nullptr , , static_cast < int > ( password_manager : : CredentialType : : CREDENTIAL_TYPE_PASSWORD ) , false ) ;\n dialog -> Destroy ( base : : android : : AttachCurrentThread ( ) , nullptr ) ;\n histogram_tester . ExpectUniqueSample ( \"PasswordManager.AccountChooserDialog\" , password_manager : : metrics_util : : ACCOUNT_CHOOSER_CREDENTIAL_CHOSEN , 1 ) ;\n histogram_tester . ExpectUniqueSample ( \"PasswordManager.AccountChooserDialogMultipleAccounts\" , password_manager : : metrics_util : : ACCOUNT_CHOOSER_CREDENTIAL_CHOSEN , 1 ) ;\n histogram_tester . ExpectTotalCount ( \"PasswordManager.AccountChooserDialogOneAccount\" , 0 ) ;\n }"}
{"idx": 18677, "target": 0, "func": "struct ifblock * compiler_create_ifblock ( struct condition * conds , struct block * blk ) {\n struct ifblock * ifblk ;\n SAFE_CALLOC ( ifblk , 1 , sizeof ( struct ifblock ) ) ;\n ifblk -> conds = conds ;\n ifblk -> blk = blk ;\n return ifblk ;\n }"}
{"idx": 18678, "target": 0, "func": "static void Type_Signature_Free ( struct _cms_typehandler_struct * self , void * Ptr ) {\n _cmsFree ( self -> ContextID , Ptr ) ;\n }"}
{"idx": 18679, "target": 0, "func": "static void DecoderPlayVideo ( decoder_t * p_dec , picture_t * p_picture , int * pi_played_sum , int * pi_lost_sum ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n vout_thread_t * p_vout = p_owner -> p_vout ;\n if ( p_picture -> date <= VLC_TS_INVALID ) {\n msg_Warn ( p_dec , \"non-dated video buffer received\" ) ;\n * pi_lost_sum += 1 ;\n vout_ReleasePicture ( p_vout , p_picture ) ;\n return ;\n }\n vlc_mutex_lock ( & p_owner -> lock ) ;\n if ( p_owner -> b_waiting && ! p_owner -> b_first ) {\n p_owner -> b_has_data = true ;\n vlc_cond_signal ( & p_owner -> wait_acknowledge ) ;\n }\n bool b_first_after_wait = p_owner -> b_waiting && p_owner -> b_has_data ;\n bool b_reject = DecoderWaitUnblock ( p_dec ) ;\n if ( p_owner -> b_waiting ) {\n assert ( p_owner -> b_first ) ;\n msg_Dbg ( p_dec , \"Received first picture\" ) ;\n p_owner -> b_first = false ;\n p_picture -> b_force = true ;\n }\n const bool b_dated = p_picture -> date > VLC_TS_INVALID ;\n int i_rate = INPUT_RATE_DEFAULT ;\n DecoderFixTs ( p_dec , & p_picture -> date , NULL , NULL , & i_rate , DECODER_BOGUS_VIDEO_DELAY ) ;\n vlc_mutex_unlock ( & p_owner -> lock ) ;\n if ( ! p_picture -> b_force && p_picture -> date <= VLC_TS_INVALID ) b_reject = true ;\n if ( ! b_reject ) {\n if ( i_rate != p_owner -> i_last_rate || b_first_after_wait ) {\n vout_Flush ( p_vout , p_picture -> date ) ;\n p_owner -> i_last_rate = i_rate ;\n }\n vout_PutPicture ( p_vout , p_picture ) ;\n }\n else {\n if ( b_dated ) msg_Warn ( p_dec , \"early picture skipped\" ) ;\n else msg_Warn ( p_dec , \"non-dated video buffer received\" ) ;\n * pi_lost_sum += 1 ;\n vout_ReleasePicture ( p_vout , p_picture ) ;\n }\n int i_tmp_display ;\n int i_tmp_lost ;\n vout_GetResetStatistic ( p_vout , & i_tmp_display , & i_tmp_lost ) ;\n * pi_played_sum += i_tmp_display ;\n * pi_lost_sum += i_tmp_lost ;\n }"}
{"idx": 18680, "target": 0, "func": "static int SpoolssOpenPrinterEx_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ;\n e_ctx_hnd policy_hnd ;\n proto_item * hnd_item ;\n guint32 status ;\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , & policy_hnd , & hnd_item , TRUE , FALSE ) ;\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , & status ) ;\n if ( status == 0 ) {\n const char * pol_name ;\n if ( dcv -> se_data ) {\n pol_name = wmem_strdup_printf ( wmem_packet_scope ( ) , \"OpenPrinterEx(%s)\" , ( char * ) dcv -> se_data ) ;\n }\n else {\n pol_name = \"Unknown OpenPrinterEx() handle\" ;\n }\n if ( ! pinfo -> fd -> flags . visited ) {\n dcerpc_store_polhnd_name ( & policy_hnd , pinfo , pol_name ) ;\n }\n if ( hnd_item ) proto_item_append_text ( hnd_item , \": %s\" , pol_name ) ;\n }\n return offset ;\n }"}
{"idx": 18681, "target": 0, "func": "static void mysql_end_timer ( ulong start_time , char * buff ) {\n buff [ 0 ] = ' ' ;\n buff [ 1 ] = '(' ;\n end_timer ( start_time , buff + 2 ) ;\n strmov ( strend ( buff ) , \")\" ) ;\n }"}
{"idx": 18682, "target": 0, "func": "static int dissect_h225_T_standard ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 874 \"./asn1/h225/h225.cnf\" guint32 value_int = ( guint32 ) - 1 ;\n gef_ctx_t * gefx ;\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 16383U , & value_int , TRUE ) ;\n gefx = gef_ctx_get ( actx -> private_data ) ;\n if ( gefx ) gefx -> id = wmem_strdup_printf ( wmem_packet_scope ( ) , \"%u\" , value_int ) ;\n return offset ;\n }"}
{"idx": 18683, "target": 0, "func": "static COMPOUND_TEXT_CONVERTERS getState ( int codepoint ) {\n COMPOUND_TEXT_CONVERTERS state = DO_SEARCH ;\n if ( isASCIIRange ( codepoint ) ) {\n state = COMPOUND_TEXT_SINGLE_0 ;\n }\n else if ( isIBM912 ( codepoint ) ) {\n state = IBM_912 ;\n }\n else if ( isIBM913 ( codepoint ) ) {\n state = IBM_913 ;\n }\n else if ( isISO8859_14 ( codepoint ) ) {\n state = ISO_8859_14 ;\n }\n else if ( isIBM923 ( codepoint ) ) {\n state = IBM_923 ;\n }\n else if ( isIBM874 ( codepoint ) ) {\n state = IBM_874 ;\n }\n else if ( isIBM914 ( codepoint ) ) {\n state = IBM_914 ;\n }\n else if ( isCompoundS2 ( codepoint ) ) {\n state = COMPOUND_TEXT_SINGLE_2 ;\n }\n else if ( isCompoundS3 ( codepoint ) ) {\n state = COMPOUND_TEXT_SINGLE_3 ;\n }\n else if ( isIBM916 ( codepoint ) ) {\n state = IBM_916 ;\n }\n else if ( isIBM915 ( codepoint ) ) {\n state = IBM_915 ;\n }\n else if ( isCompoundS1 ( codepoint ) ) {\n state = COMPOUND_TEXT_SINGLE_1 ;\n }\n return state ;\n }"}
{"idx": 18684, "target": 0, "func": "static void U_CALLCONV ucnv_Latin1FromUTF8 ( UConverterFromUnicodeArgs * pFromUArgs , UConverterToUnicodeArgs * pToUArgs , UErrorCode * pErrorCode ) {\n UConverter * utf8 ;\n const uint8_t * source , * sourceLimit ;\n uint8_t * target ;\n int32_t targetCapacity ;\n UChar32 c ;\n uint8_t b , t1 ;\n utf8 = pToUArgs -> converter ;\n source = ( uint8_t * ) pToUArgs -> source ;\n sourceLimit = ( uint8_t * ) pToUArgs -> sourceLimit ;\n target = ( uint8_t * ) pFromUArgs -> target ;\n targetCapacity = ( int32_t ) ( pFromUArgs -> targetLimit - pFromUArgs -> target ) ;\n c = ( UChar32 ) utf8 -> toUnicodeStatus ;\n if ( c != 0 && source < sourceLimit ) {\n if ( targetCapacity == 0 ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n return ;\n }\n else if ( c >= 0xc2 && c <= 0xc3 && ( t1 = ( uint8_t ) ( * source - 0x80 ) ) <= 0x3f ) {\n ++ source ;\n * target ++ = ( uint8_t ) ( ( ( c & 3 ) << 6 ) | t1 ) ;\n -- targetCapacity ;\n utf8 -> toUnicodeStatus = 0 ;\n utf8 -> toULength = 0 ;\n }\n else {\n * pErrorCode = U_USING_DEFAULT_WARNING ;\n return ;\n }\n }\n if ( source < sourceLimit && U8_IS_LEAD ( * ( sourceLimit - 1 ) ) ) {\n -- sourceLimit ;\n }\n while ( source < sourceLimit ) {\n if ( targetCapacity > 0 ) {\n b = * source ++ ;\n if ( ( int8_t ) b >= 0 ) {\n * target ++ = ( uint8_t ) b ;\n -- targetCapacity ;\n }\n else if ( b >= 0xc2 && b <= 0xc3 && ( t1 = ( uint8_t ) ( * source - 0x80 ) ) <= 0x3f ) {\n ++ source ;\n * target ++ = ( uint8_t ) ( ( ( b & 3 ) << 6 ) | t1 ) ;\n -- targetCapacity ;\n }\n else {\n pToUArgs -> source = ( char * ) ( source - 1 ) ;\n pFromUArgs -> target = ( char * ) target ;\n * pErrorCode = U_USING_DEFAULT_WARNING ;\n return ;\n }\n }\n else {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n if ( U_SUCCESS ( * pErrorCode ) && source < ( sourceLimit = ( uint8_t * ) pToUArgs -> sourceLimit ) ) {\n utf8 -> toUnicodeStatus = utf8 -> toUBytes [ 0 ] = b = * source ++ ;\n utf8 -> toULength = 1 ;\n utf8 -> mode = U8_COUNT_TRAIL_BYTES ( b ) + 1 ;\n }\n pToUArgs -> source = ( char * ) source ;\n pFromUArgs -> target = ( char * ) target ;\n }"}
{"idx": 18685, "target": 1, "func": "static char * rfc2047_decode_word ( const char * s , size_t len , enum ContentEncoding enc ) {\n const char * it = s ;\n const char * end = s + len ;\n if ( enc == ENCQUOTEDPRINTABLE ) {\n struct Buffer buf = {\n 0 }\n ;\n for ( ;\n it < end ;\n ++ it ) {\n if ( * it == '_' ) {\n mutt_buffer_addch ( & buf , ' ' ) ;\n }\n else if ( ( * it == '=' ) && ( ! ( it [ 1 ] & ~ 127 ) && hexval ( it [ 1 ] ) != - 1 ) && ( ! ( it [ 2 ] & ~ 127 ) && hexval ( it [ 2 ] ) != - 1 ) ) {\n mutt_buffer_addch ( & buf , ( hexval ( it [ 1 ] ) << 4 ) | hexval ( it [ 2 ] ) ) ;\n it += 2 ;\n }\n else {\n mutt_buffer_addch ( & buf , * it ) ;\n }\n }\n mutt_buffer_addch ( & buf , '\\0' ) ;\n return buf . data ;\n }\n else if ( enc == ENCBASE64 ) {\n char * out = mutt_mem_malloc ( 3 * len / 4 + 1 ) ;\n int dlen = mutt_b64_decode ( out , it ) ;\n if ( dlen == - 1 ) {\n FREE ( & out ) ;\n return NULL ;\n }\n out [ dlen ] = '\\0' ;\n return out ;\n }\n assert ( 0 ) ;\n return NULL ;\n }"}
{"idx": 18686, "target": 0, "func": "static gpgme_error_t gpgsm_keylist_ext ( void * engine , const char * pattern [ ] , int secret_only , int reserved , gpgme_keylist_mode_t mode ) {\n engine_gpgsm_t gpgsm = engine ;\n char * line ;\n gpgme_error_t err ;\n int length = 15 + 1 ;\n char * linep ;\n int any_pattern = 0 ;\n int list_mode = 0 ;\n if ( reserved ) return gpg_error ( GPG_ERR_INV_VALUE ) ;\n if ( mode & GPGME_KEYLIST_MODE_LOCAL ) list_mode |= 1 ;\n if ( mode & GPGME_KEYLIST_MODE_EXTERN ) list_mode |= 2 ;\n if ( asprintf ( & line , \"OPTION list-mode=%d\" , ( list_mode & 3 ) ) < 0 ) return gpg_error_from_syserror ( ) ;\n err = gpgsm_assuan_simple_command ( gpgsm -> assuan_ctx , line , NULL , NULL ) ;\n free ( line ) ;\n if ( err ) return err ;\n gpgsm_assuan_simple_command ( gpgsm -> assuan_ctx , ( mode & GPGME_KEYLIST_MODE_VALIDATE ) ? \"OPTION with-validation=1\" : \"OPTION with-validation=0\" , NULL , NULL ) ;\n gpgsm_assuan_simple_command ( gpgsm -> assuan_ctx , ( mode & GPGME_KEYLIST_MODE_WITH_SECRET ) ? \"OPTION with-secret=1\" : \"OPTION with-secret=0\" , NULL , NULL ) ;\n if ( pattern && * pattern ) {\n const char * * pat = pattern ;\n while ( * pat ) {\n const char * patlet = * pat ;\n while ( * patlet ) {\n length ++ ;\n if ( * patlet == '%' || * patlet == ' ' || * patlet == '+' ) length += 2 ;\n patlet ++ ;\n }\n pat ++ ;\n length ++ ;\n }\n }\n line = malloc ( length ) ;\n if ( ! line ) return gpg_error_from_syserror ( ) ;\n if ( secret_only ) {\n strcpy ( line , \"LISTSECRETKEYS \" ) ;\n linep = & line [ 15 ] ;\n }\n else {\n strcpy ( line , \"LISTKEYS \" ) ;\n linep = & line [ 9 ] ;\n }\n if ( pattern && * pattern ) {\n while ( * pattern ) {\n const char * patlet = * pattern ;\n while ( * patlet ) {\n switch ( * patlet ) {\n case '%' : * ( linep ++ ) = '%' ;\n * ( linep ++ ) = '2' ;\n * ( linep ++ ) = '5' ;\n break ;\n case ' ' : * ( linep ++ ) = '%' ;\n * ( linep ++ ) = '2' ;\n * ( linep ++ ) = '0' ;\n break ;\n case '+' : * ( linep ++ ) = '%' ;\n * ( linep ++ ) = '2' ;\n * ( linep ++ ) = 'B' ;\n break ;\n default : * ( linep ++ ) = * patlet ;\n break ;\n }\n patlet ++ ;\n }\n any_pattern = 1 ;\n * linep ++ = ' ' ;\n pattern ++ ;\n }\n }\n if ( any_pattern ) linep -- ;\n * linep = '\\0' ;\n gpgsm_clear_fd ( gpgsm , INPUT_FD ) ;\n gpgsm_clear_fd ( gpgsm , OUTPUT_FD ) ;\n gpgsm_clear_fd ( gpgsm , MESSAGE_FD ) ;\n gpgsm -> inline_data = NULL ;\n err = start ( gpgsm , line ) ;\n free ( line ) ;\n return err ;\n }"}
{"idx": 18687, "target": 0, "func": "static int dissect_h225_H245Security ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_H245Security , H245Security_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 18688, "target": 0, "func": "static err_status_t srtp_protect_aead ( srtp_ctx_t * ctx , srtp_stream_ctx_t * stream , void * rtp_hdr , unsigned int * pkt_octet_len ) {\n srtp_hdr_t * hdr = ( srtp_hdr_t * ) rtp_hdr ;\n uint32_t * enc_start ;\n unsigned int enc_octet_len = 0 ;\n xtd_seq_num_t est ;\n int delta ;\n err_status_t status ;\n int tag_len ;\n v128_t iv ;\n unsigned int aad_len ;\n debug_print ( mod_srtp , \"function srtp_protect_aead\" , NULL ) ;\n switch ( key_limit_update ( stream -> limit ) ) {\n case key_event_normal : break ;\n case key_event_hard_limit : srtp_handle_event ( ctx , stream , event_key_hard_limit ) ;\n return err_status_key_expired ;\n case key_event_soft_limit : default : srtp_handle_event ( ctx , stream , event_key_soft_limit ) ;\n break ;\n }\n tag_len = auth_get_tag_length ( stream -> rtp_auth ) ;\n enc_start = ( uint32_t * ) hdr + uint32s_in_rtp_header + hdr -> cc ;\n if ( hdr -> x == 1 ) {\n srtp_hdr_xtnd_t * xtn_hdr = ( srtp_hdr_xtnd_t * ) enc_start ;\n enc_start += ( ntohs ( xtn_hdr -> length ) + 1 ) ;\n }\n if ( ! ( ( uint8_t * ) enc_start < ( uint8_t * ) hdr + * pkt_octet_len ) ) return err_status_parse_err ;\n enc_octet_len = ( unsigned int ) ( * pkt_octet_len - ( ( uint8_t * ) enc_start - ( uint8_t * ) hdr ) ) ;\n delta = rdbx_estimate_index ( & stream -> rtp_rdbx , & est , ntohs ( hdr -> seq ) ) ;\n status = rdbx_check ( & stream -> rtp_rdbx , delta ) ;\n if ( status ) {\n if ( status != err_status_replay_fail || ! stream -> allow_repeat_tx ) {\n return status ;\n }\n }\n else {\n rdbx_add_index ( & stream -> rtp_rdbx , delta ) ;\n }\n # ifdef NO_64BIT_MATH debug_print2 ( mod_srtp , \"estimated packet index: %08x%08x\" , high32 ( est ) , low32 ( est ) ) ;\n # else debug_print ( mod_srtp , \"estimated packet index: %016llx\" , est ) ;\n # endif srtp_calc_aead_iv ( stream , & iv , & est , hdr ) ;\n status = cipher_set_iv ( stream -> rtp_cipher , & iv , direction_encrypt ) ;\n if ( status ) {\n return err_status_cipher_fail ;\n }\n # ifdef NO_64BIT_MATH est = be64_to_cpu ( make64 ( ( high32 ( est ) << 16 ) | ( low32 ( est ) >> 16 ) , low32 ( est ) << 16 ) ) ;\n # else est = be64_to_cpu ( est << 16 ) ;\n # endif aad_len = ( uint8_t * ) enc_start - ( uint8_t * ) hdr ;\n status = cipher_set_aad ( stream -> rtp_cipher , ( uint8_t * ) hdr , aad_len ) ;\n if ( status ) {\n return ( err_status_cipher_fail ) ;\n }\n status = cipher_encrypt ( stream -> rtp_cipher , ( uint8_t * ) enc_start , & enc_octet_len ) ;\n if ( status ) {\n return err_status_cipher_fail ;\n }\n status = cipher_get_tag ( stream -> rtp_cipher , ( uint8_t * ) enc_start + enc_octet_len , & tag_len ) ;\n if ( status ) {\n return ( err_status_cipher_fail ) ;\n }\n enc_octet_len += tag_len ;\n * pkt_octet_len += tag_len ;\n return err_status_ok ;\n }"}
{"idx": 18689, "target": 0, "func": "static struct qcms_modular_transform * qcms_modular_transform_create_mAB ( struct lutmABType * lut ) {\n struct qcms_modular_transform * first_transform = NULL ;\n struct qcms_modular_transform * * next_transform = & first_transform ;\n struct qcms_modular_transform * transform = NULL ;\n if ( lut -> a_curves [ 0 ] != NULL ) {\n size_t clut_length ;\n float * clut ;\n if ( ! lut -> clut_table ) goto fail ;\n transform = qcms_modular_transform_alloc ( ) ;\n if ( ! transform ) goto fail ;\n append_transform ( transform , & next_transform ) ;\n transform -> input_clut_table_r = build_input_gamma_table ( lut -> a_curves [ 0 ] ) ;\n transform -> input_clut_table_g = build_input_gamma_table ( lut -> a_curves [ 1 ] ) ;\n transform -> input_clut_table_b = build_input_gamma_table ( lut -> a_curves [ 2 ] ) ;\n transform -> transform_module_fn = qcms_transform_module_gamma_table ;\n if ( lut -> num_grid_points [ 0 ] != lut -> num_grid_points [ 1 ] || lut -> num_grid_points [ 1 ] != lut -> num_grid_points [ 2 ] ) {\n goto fail ;\n }\n transform = qcms_modular_transform_alloc ( ) ;\n if ( ! transform ) goto fail ;\n append_transform ( transform , & next_transform ) ;\n clut_length = sizeof ( float ) * pow ( lut -> num_grid_points [ 0 ] , 3 ) * 3 ;\n clut = malloc ( clut_length ) ;\n if ( ! clut ) goto fail ;\n memcpy ( clut , lut -> clut_table , clut_length ) ;\n transform -> r_clut = clut + 0 ;\n transform -> g_clut = clut + 1 ;\n transform -> b_clut = clut + 2 ;\n transform -> grid_size = lut -> num_grid_points [ 0 ] ;\n transform -> transform_module_fn = qcms_transform_module_clut_only ;\n }\n if ( lut -> m_curves [ 0 ] != NULL ) {\n transform = qcms_modular_transform_alloc ( ) ;\n if ( ! transform ) goto fail ;\n append_transform ( transform , & next_transform ) ;\n transform -> input_clut_table_r = build_input_gamma_table ( lut -> m_curves [ 0 ] ) ;\n transform -> input_clut_table_g = build_input_gamma_table ( lut -> m_curves [ 1 ] ) ;\n transform -> input_clut_table_b = build_input_gamma_table ( lut -> m_curves [ 2 ] ) ;\n transform -> transform_module_fn = qcms_transform_module_gamma_table ;\n transform = qcms_modular_transform_alloc ( ) ;\n if ( ! transform ) goto fail ;\n append_transform ( transform , & next_transform ) ;\n transform -> matrix = build_mAB_matrix ( lut ) ;\n if ( transform -> matrix . invalid ) goto fail ;\n transform -> tx = s15Fixed16Number_to_float ( lut -> e03 ) ;\n transform -> ty = s15Fixed16Number_to_float ( lut -> e13 ) ;\n transform -> tz = s15Fixed16Number_to_float ( lut -> e23 ) ;\n transform -> transform_module_fn = qcms_transform_module_matrix_translate ;\n }\n if ( lut -> b_curves [ 0 ] != NULL ) {\n transform = qcms_modular_transform_alloc ( ) ;\n if ( ! transform ) goto fail ;\n append_transform ( transform , & next_transform ) ;\n transform -> input_clut_table_r = build_input_gamma_table ( lut -> b_curves [ 0 ] ) ;\n transform -> input_clut_table_g = build_input_gamma_table ( lut -> b_curves [ 1 ] ) ;\n transform -> input_clut_table_b = build_input_gamma_table ( lut -> b_curves [ 2 ] ) ;\n transform -> transform_module_fn = qcms_transform_module_gamma_table ;\n }\n else {\n goto fail ;\n }\n if ( lut -> reversed ) {\n first_transform = reverse_transform ( first_transform ) ;\n }\n return first_transform ;\n fail : qcms_modular_transform_release ( first_transform ) ;\n return NULL ;\n }"}
{"idx": 18690, "target": 0, "func": "static Node * substitute_actual_srf_parameters_mutator ( Node * node , substitute_actual_srf_parameters_context * context ) {\n Node * result ;\n if ( node == NULL ) return NULL ;\n if ( IsA ( node , Query ) ) {\n context -> sublevels_up ++ ;\n result = ( Node * ) query_tree_mutator ( ( Query * ) node , substitute_actual_srf_parameters_mutator , ( void * ) context , 0 ) ;\n context -> sublevels_up -- ;\n return result ;\n }\n if ( IsA ( node , Param ) ) {\n Param * param = ( Param * ) node ;\n if ( param -> paramkind == PARAM_EXTERN ) {\n if ( param -> paramid <= 0 || param -> paramid > context -> nargs ) elog ( ERROR , \"invalid paramid: %d\" , param -> paramid ) ;\n result = copyObject ( list_nth ( context -> args , param -> paramid - 1 ) ) ;\n IncrementVarSublevelsUp ( result , context -> sublevels_up , 0 ) ;\n return result ;\n }\n }\n return expression_tree_mutator ( node , substitute_actual_srf_parameters_mutator , ( void * ) context ) ;\n }"}
{"idx": 18691, "target": 0, "func": "static int test_compress_text ( xd3_stream * stream , uint8_t * encoded , usize_t * encoded_size ) {\n int ret ;\n xd3_config cfg ;\n int oflags = stream -> flags ;\n int flags = stream -> flags | XD3_FLUSH ;\n xd3_free_stream ( stream ) ;\n xd3_init_config ( & cfg , flags ) ;\n cfg . smatch_cfg = XD3_SMATCH_SOFT ;\n cfg . smatcher_soft . name = \"test\" ;\n cfg . smatcher_soft . large_look = 64 ;\n cfg . smatcher_soft . large_step = 64 ;\n cfg . smatcher_soft . small_look = 4 ;\n cfg . smatcher_soft . small_chain = 128 ;\n cfg . smatcher_soft . small_lchain = 16 ;\n cfg . smatcher_soft . max_lazy = 8 ;\n cfg . smatcher_soft . long_enough = 128 ;\n xd3_config_stream ( stream , & cfg ) ;\n ( * encoded_size ) = 0 ;\n xd3_set_appheader ( stream , test_apphead , ( usize_t ) strlen ( ( char * ) test_apphead ) ) ;\n if ( ( ret = xd3_encode_stream ( stream , test_text , sizeof ( test_text ) , encoded , encoded_size , 4 * sizeof ( test_text ) ) ) ) {\n goto fail ;\n }\n if ( ( ret = xd3_close_stream ( stream ) ) ) {\n goto fail ;\n }\n fail : xd3_free_stream ( stream ) ;\n xd3_init_config ( & cfg , oflags ) ;\n xd3_config_stream ( stream , & cfg ) ;\n return ret ;\n }"}
{"idx": 18692, "target": 0, "func": "static int dissect_t38_T_field_type ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_enumerated ( tvb , offset , actx , tree , hf_index , 8 , & Data_Field_field_type_value , ( use_pre_corrigendum_asn1_specification ) ? FALSE : TRUE , ( use_pre_corrigendum_asn1_specification ) ? 0 : 4 , NULL ) ;\n # line 61 \"../../asn1/t38/t38.cnf\" if ( primary_part ) {\n col_append_fstr ( actx -> pinfo -> cinfo , COL_INFO , \" %s\" , val_to_str ( Data_Field_field_type_value , t38_T_field_type_vals , \"<unknown>\" ) ) ;\n }\n if ( primary_part && ( Data_Field_item_num < 2 ) ) {\n if ( Data_Field_field_type_value == 2 || Data_Field_field_type_value == 4 || Data_Field_field_type_value == 7 ) {\n fragment_head * frag_msg = NULL ;\n tvbuff_t * new_tvb = NULL ;\n gboolean save_fragmented = actx -> pinfo -> fragmented ;\n actx -> pinfo -> fragmented = TRUE ;\n if ( p_t38_packet_conv_info -> reass_start_seqnum != - 1 ) {\n frag_msg = fragment_add_seq ( & data_reassembly_table , tvb , offset , actx -> pinfo , p_t38_packet_conv_info -> reass_ID , NULL , seq_number + Data_Field_item_num - ( guint32 ) p_t38_packet_conv_info -> reass_start_seqnum + ( guint32 ) p_t38_packet_conv_info -> additional_hdlc_data_field_counter , 0 , FALSE , 0 ) ;\n if ( Data_Field_field_type_value == 7 ) {\n if ( ! frag_msg ) {\n force_reassemble_seq ( & data_reassembly_table , actx -> pinfo , p_t38_packet_conv_info -> reass_ID ) ;\n }\n else {\n col_append_str ( actx -> pinfo -> cinfo , COL_INFO , \" (t4-data Reassembled: No packet lost)\" ) ;\n g_snprintf ( t38_info -> desc_comment , MAX_T38_DESC , \"No packet lost\" ) ;\n }\n if ( p_t38_packet_conv_info -> packet_lost ) {\n g_snprintf ( t38_info -> desc_comment , MAX_T38_DESC , \" Pack lost: %d, Pack burst lost: %d\" , p_t38_packet_conv_info -> packet_lost , p_t38_packet_conv_info -> burst_lost ) ;\n }\n else {\n g_snprintf ( t38_info -> desc_comment , MAX_T38_DESC , \"No packet lost\" ) ;\n }\n process_reassembled_data ( tvb , offset , actx -> pinfo , \"Reassembled T38\" , frag_msg , & data_frag_items , NULL , tree ) ;\n actx -> pinfo -> fragmented = save_fragmented ;\n t38_info -> time_first_t4_data = p_t38_packet_conv_info -> time_first_t4_data ;\n t38_info -> frame_num_first_t4_data = p_t38_packet_conv_info -> reass_ID ;\n }\n else {\n new_tvb = process_reassembled_data ( tvb , offset , actx -> pinfo , \"Reassembled T38\" , frag_msg , & data_frag_items , NULL , tree ) ;\n actx -> pinfo -> fragmented = save_fragmented ;\n if ( new_tvb ) call_dissector_with_data ( ( t30_hdlc_handle ) ? t30_hdlc_handle : data_handle , new_tvb , actx -> pinfo , tree , t38_info ) ;\n }\n }\n else {\n proto_tree_add_expert_format ( tree , actx -> pinfo , & ei_t38_malformed , tvb , offset , tvb_reported_length_remaining ( tvb , offset ) , \"[RECEIVED END OF FRAGMENT W/OUT ANY FRAGMENT DATA]\" ) ;\n col_append_str ( actx -> pinfo -> cinfo , COL_INFO , \" [Malformed?]\" ) ;\n actx -> pinfo -> fragmented = save_fragmented ;\n }\n }\n if ( p_t38_conv && ( ( ( Data_Field_field_type_value > 0 ) && ( Data_Field_field_type_value < 6 ) ) || ( Data_Field_field_type_value == 7 ) ) ) {\n p_t38_conv_info -> reass_ID = 0 ;\n p_t38_conv_info -> reass_start_seqnum = - 1 ;\n p_t38_conv_info -> additional_hdlc_data_field_counter = 0 ;\n p_t38_conv_info -> seqnum_prev_data_field = - 1 ;\n }\n t38_info -> Data_Field_field_type_value = Data_Field_field_type_value ;\n }\n return offset ;\n }"}
{"idx": 18693, "target": 0, "func": "TEST_F ( WebFrameSimTest , NamedLookupIgnoresEmptyNames ) {\n SimRequest main_resource ( \"https://example.com/main.html\" , \"text/html\" ) ;\n LoadURL ( \"https://example.com/main.html\" ) ;\n main_resource . Complete ( R \"HTML( < body > < iframe name = \"\" src = \"data:text/html,\" > < / iframe > < / body > ) HTML \");\n EXPECT_EQ ( nullptr , MainFrame ( ) . GetFrame ( ) -> Tree ( ) . ScopedChild ( \"\" ) ) ;\n EXPECT_EQ ( nullptr , MainFrame ( ) . GetFrame ( ) -> Tree ( ) . ScopedChild ( AtomicString ( ) ) ) ;\n EXPECT_EQ ( nullptr , MainFrame ( ) . GetFrame ( ) -> Tree ( ) . ScopedChild ( g_empty_atom ) ) ;\n }"}
{"idx": 18694, "target": 0, "func": "int cpu_exec ( CPUArchState * env ) {\n CPUState * cpu = ENV_GET_CPU ( env ) ;\n # if ! ( defined ( CONFIG_USER_ONLY ) && ( defined ( TARGET_M68K ) || defined ( TARGET_PPC ) || defined ( TARGET_S390X ) ) ) CPUClass * cc = CPU_GET_CLASS ( cpu ) ;\n # endif int ret , interrupt_request ;\n TranslationBlock * tb ;\n uint8_t * tc_ptr ;\n tcg_target_ulong next_tb ;\n if ( cpu -> halted ) {\n if ( ! cpu_has_work ( cpu ) ) {\n return EXCP_HALTED ;\n }\n cpu -> halted = 0 ;\n }\n current_cpu = cpu ;\n smp_mb ( ) ;\n if ( unlikely ( exit_request ) ) {\n cpu -> exit_request = 1 ;\n }\n # if defined ( TARGET_I386 ) CC_SRC = env -> eflags & ( CC_O | CC_S | CC_Z | CC_A | CC_P | CC_C ) ;\n env -> df = 1 - ( 2 * ( ( env -> eflags >> 10 ) & 1 ) ) ;\n CC_OP = CC_OP_EFLAGS ;\n env -> eflags &= ~ ( DF_MASK | CC_O | CC_S | CC_Z | CC_A | CC_P | CC_C ) ;\n # elif defined ( TARGET_SPARC ) # elif defined ( TARGET_M68K ) env -> cc_op = CC_OP_FLAGS ;\n env -> cc_dest = env -> sr & 0xf ;\n env -> cc_x = ( env -> sr >> 4 ) & 1 ;\n # elif defined ( TARGET_ALPHA ) # elif defined ( TARGET_ARM ) # elif defined ( TARGET_UNICORE32 ) # elif defined ( TARGET_PPC ) env -> reserve_addr = - 1 ;\n # elif defined ( TARGET_LM32 ) # elif defined ( TARGET_MICROBLAZE ) # elif defined ( TARGET_MIPS ) # elif defined ( TARGET_MOXIE ) # elif defined ( TARGET_OPENRISC ) # elif defined ( TARGET_SH4 ) # elif defined ( TARGET_CRIS ) # elif defined ( TARGET_S390X ) # elif defined ( TARGET_XTENSA ) # else # error unsupported target CPU # endif env -> exception_index = - 1 ;\n for ( ;\n ;\n ) {\n if ( sigsetjmp ( env -> jmp_env , 0 ) == 0 ) {\n if ( env -> exception_index >= 0 ) {\n if ( env -> exception_index >= EXCP_INTERRUPT ) {\n ret = env -> exception_index ;\n if ( ret == EXCP_DEBUG ) {\n cpu_handle_debug_exception ( env ) ;\n }\n break ;\n }\n else {\n # if defined ( CONFIG_USER_ONLY ) # if defined ( TARGET_I386 ) cc -> do_interrupt ( cpu ) ;\n # endif ret = env -> exception_index ;\n break ;\n # else cc -> do_interrupt ( cpu ) ;\n env -> exception_index = - 1 ;\n # endif }\n }\n next_tb = 0 ;\n for ( ;\n ;\n ) {\n interrupt_request = cpu -> interrupt_request ;\n if ( unlikely ( interrupt_request ) ) {\n if ( unlikely ( env -> singlestep_enabled & SSTEP_NOIRQ ) ) {\n interrupt_request &= ~ CPU_INTERRUPT_SSTEP_MASK ;\n }\n if ( interrupt_request & CPU_INTERRUPT_DEBUG ) {\n cpu -> interrupt_request &= ~ CPU_INTERRUPT_DEBUG ;\n env -> exception_index = EXCP_DEBUG ;\n cpu_loop_exit ( env ) ;\n }\n # if defined ( TARGET_ARM ) || defined ( TARGET_SPARC ) || defined ( TARGET_MIPS ) || defined ( TARGET_PPC ) || defined ( TARGET_ALPHA ) || defined ( TARGET_CRIS ) || defined ( TARGET_MICROBLAZE ) || defined ( TARGET_LM32 ) || defined ( TARGET_UNICORE32 ) if ( interrupt_request & CPU_INTERRUPT_HALT ) {\n cpu -> interrupt_request &= ~ CPU_INTERRUPT_HALT ;\n cpu -> halted = 1 ;\n env -> exception_index = EXCP_HLT ;\n cpu_loop_exit ( env ) ;\n }\n # endif # if defined ( TARGET_I386 ) # if ! defined ( CONFIG_USER_ONLY ) if ( interrupt_request & CPU_INTERRUPT_POLL ) {\n cpu -> interrupt_request &= ~ CPU_INTERRUPT_POLL ;\n apic_poll_irq ( env -> apic_state ) ;\n }\n # endif if ( interrupt_request & CPU_INTERRUPT_INIT ) {\n cpu_svm_check_intercept_param ( env , SVM_EXIT_INIT , 0 ) ;\n do_cpu_init ( x86_env_get_cpu ( env ) ) ;\n env -> exception_index = EXCP_HALTED ;\n cpu_loop_exit ( env ) ;\n }\n else if ( interrupt_request & CPU_INTERRUPT_SIPI ) {\n do_cpu_sipi ( x86_env_get_cpu ( env ) ) ;\n }\n else if ( env -> hflags2 & HF2_GIF_MASK ) {\n if ( ( interrupt_request & CPU_INTERRUPT_SMI ) && ! ( env -> hflags & HF_SMM_MASK ) ) {\n cpu_svm_check_intercept_param ( env , SVM_EXIT_SMI , 0 ) ;\n cpu -> interrupt_request &= ~ CPU_INTERRUPT_SMI ;\n do_smm_enter ( env ) ;\n next_tb = 0 ;\n }\n else if ( ( interrupt_request & CPU_INTERRUPT_NMI ) && ! ( env -> hflags2 & HF2_NMI_MASK ) ) {\n cpu -> interrupt_request &= ~ CPU_INTERRUPT_NMI ;\n env -> hflags2 |= HF2_NMI_MASK ;\n do_interrupt_x86_hardirq ( env , EXCP02_NMI , 1 ) ;\n next_tb = 0 ;\n }\n else if ( interrupt_request & CPU_INTERRUPT_MCE ) {\n cpu -> interrupt_request &= ~ CPU_INTERRUPT_MCE ;\n do_interrupt_x86_hardirq ( env , EXCP12_MCHK , 0 ) ;\n next_tb = 0 ;\n }\n else if ( ( interrupt_request & CPU_INTERRUPT_HARD ) && ( ( ( env -> hflags2 & HF2_VINTR_MASK ) && ( env -> hflags2 & HF2_HIF_MASK ) ) || ( ! ( env -> hflags2 & HF2_VINTR_MASK ) && ( env -> eflags & IF_MASK && ! ( env -> hflags & HF_INHIBIT_IRQ_MASK ) ) ) ) ) {\n int intno ;\n cpu_svm_check_intercept_param ( env , SVM_EXIT_INTR , 0 ) ;\n cpu -> interrupt_request &= ~ ( CPU_INTERRUPT_HARD | CPU_INTERRUPT_VIRQ ) ;\n intno = cpu_get_pic_interrupt ( env ) ;\n qemu_log_mask ( CPU_LOG_TB_IN_ASM , \"Servicing hardware INT=0x%02x\\n\" , intno ) ;\n do_interrupt_x86_hardirq ( env , intno , 1 ) ;\n next_tb = 0 ;\n # if ! defined ( CONFIG_USER_ONLY ) }\n else if ( ( interrupt_request & CPU_INTERRUPT_VIRQ ) && ( env -> eflags & IF_MASK ) && ! ( env -> hflags & HF_INHIBIT_IRQ_MASK ) ) {\n int intno ;\n cpu_svm_check_intercept_param ( env , SVM_EXIT_VINTR , 0 ) ;\n intno = ldl_phys ( env -> vm_vmcb + offsetof ( struct vmcb , control . int_vector ) ) ;\n qemu_log_mask ( CPU_LOG_TB_IN_ASM , \"Servicing virtual hardware INT=0x%02x\\n\" , intno ) ;\n do_interrupt_x86_hardirq ( env , intno , 1 ) ;\n cpu -> interrupt_request &= ~ CPU_INTERRUPT_VIRQ ;\n next_tb = 0 ;\n # endif }\n }\n # elif defined ( TARGET_PPC ) if ( ( interrupt_request & CPU_INTERRUPT_RESET ) ) {\n cpu_reset ( cpu ) ;\n }\n if ( interrupt_request & CPU_INTERRUPT_HARD ) {\n ppc_hw_interrupt ( env ) ;\n if ( env -> pending_interrupts == 0 ) {\n cpu -> interrupt_request &= ~ CPU_INTERRUPT_HARD ;\n }\n next_tb = 0 ;\n }\n # elif defined ( TARGET_LM32 ) if ( ( interrupt_request & CPU_INTERRUPT_HARD ) && ( env -> ie & IE_IE ) ) {\n env -> exception_index = EXCP_IRQ ;\n cc -> do_interrupt ( cpu ) ;\n next_tb = 0 ;\n }\n # elif defined ( TARGET_MICROBLAZE ) if ( ( interrupt_request & CPU_INTERRUPT_HARD ) && ( env -> sregs [ SR_MSR ] & MSR_IE ) && ! ( env -> sregs [ SR_MSR ] & ( MSR_EIP | MSR_BIP ) ) && ! ( env -> iflags & ( D_FLAG | IMM_FLAG ) ) ) {\n env -> exception_index = EXCP_IRQ ;\n cc -> do_interrupt ( cpu ) ;\n next_tb = 0 ;\n }\n # elif defined ( TARGET_MIPS ) if ( ( interrupt_request & CPU_INTERRUPT_HARD ) && cpu_mips_hw_interrupts_pending ( env ) ) {\n env -> exception_index = EXCP_EXT_INTERRUPT ;\n env -> error_code = 0 ;\n cc -> do_interrupt ( cpu ) ;\n next_tb = 0 ;\n }\n # elif defined ( TARGET_OPENRISC ) {\n int idx = - 1 ;\n if ( ( interrupt_request & CPU_INTERRUPT_HARD ) && ( env -> sr & SR_IEE ) ) {\n idx = EXCP_INT ;\n }\n if ( ( interrupt_request & CPU_INTERRUPT_TIMER ) && ( env -> sr & SR_TEE ) ) {\n idx = EXCP_TICK ;\n }\n if ( idx >= 0 ) {\n env -> exception_index = idx ;\n cc -> do_interrupt ( cpu ) ;\n next_tb = 0 ;\n }\n }\n # elif defined ( TARGET_SPARC ) if ( interrupt_request & CPU_INTERRUPT_HARD ) {\n if ( cpu_interrupts_enabled ( env ) && env -> interrupt_index > 0 ) {\n int pil = env -> interrupt_index & 0xf ;\n int type = env -> interrupt_index & 0xf0 ;\n if ( ( ( type == TT_EXTINT ) && cpu_pil_allowed ( env , pil ) ) || type != TT_EXTINT ) {\n env -> exception_index = env -> interrupt_index ;\n cc -> do_interrupt ( cpu ) ;\n next_tb = 0 ;\n }\n }\n }\n # elif defined ( TARGET_ARM ) if ( interrupt_request & CPU_INTERRUPT_FIQ && ! ( env -> uncached_cpsr & CPSR_F ) ) {\n env -> exception_index = EXCP_FIQ ;\n cc -> do_interrupt ( cpu ) ;\n next_tb = 0 ;\n }\n if ( interrupt_request & CPU_INTERRUPT_HARD && ( ( IS_M ( env ) && env -> regs [ 15 ] < 0xfffffff0 ) || ! ( env -> uncached_cpsr & CPSR_I ) ) ) {\n env -> exception_index = EXCP_IRQ ;\n cc -> do_interrupt ( cpu ) ;\n next_tb = 0 ;\n }\n # elif defined ( TARGET_UNICORE32 ) if ( interrupt_request & CPU_INTERRUPT_HARD && ! ( env -> uncached_asr & ASR_I ) ) {\n env -> exception_index = UC32_EXCP_INTR ;\n cc -> do_interrupt ( cpu ) ;\n next_tb = 0 ;\n }\n # elif defined ( TARGET_SH4 ) if ( interrupt_request & CPU_INTERRUPT_HARD ) {\n cc -> do_interrupt ( cpu ) ;\n next_tb = 0 ;\n }\n # elif defined ( TARGET_ALPHA ) {\n int idx = - 1 ;\n switch ( env -> pal_mode ? 7 : env -> ps & PS_INT_MASK ) {\n case 0 ... 3 : if ( interrupt_request & CPU_INTERRUPT_HARD ) {\n idx = EXCP_DEV_INTERRUPT ;\n }\n case 4 : if ( interrupt_request & CPU_INTERRUPT_TIMER ) {\n idx = EXCP_CLK_INTERRUPT ;\n }\n case 5 : if ( interrupt_request & CPU_INTERRUPT_SMP ) {\n idx = EXCP_SMP_INTERRUPT ;\n }\n case 6 : if ( interrupt_request & CPU_INTERRUPT_MCHK ) {\n idx = EXCP_MCHK ;\n }\n }\n if ( idx >= 0 ) {\n env -> exception_index = idx ;\n env -> error_code = 0 ;\n cc -> do_interrupt ( cpu ) ;\n next_tb = 0 ;\n }\n }\n # elif defined ( TARGET_CRIS ) if ( interrupt_request & CPU_INTERRUPT_HARD && ( env -> pregs [ PR_CCS ] & I_FLAG ) && ! env -> locked_irq ) {\n env -> exception_index = EXCP_IRQ ;\n cc -> do_interrupt ( cpu ) ;\n next_tb = 0 ;\n }\n if ( interrupt_request & CPU_INTERRUPT_NMI ) {\n unsigned int m_flag_archval ;\n if ( env -> pregs [ PR_VR ] < 32 ) {\n m_flag_archval = M_FLAG_V10 ;\n }\n else {\n m_flag_archval = M_FLAG_V32 ;\n }\n if ( ( env -> pregs [ PR_CCS ] & m_flag_archval ) ) {\n env -> exception_index = EXCP_NMI ;\n cc -> do_interrupt ( cpu ) ;\n next_tb = 0 ;\n }\n }\n # elif defined ( TARGET_M68K ) if ( interrupt_request & CPU_INTERRUPT_HARD && ( ( env -> sr & SR_I ) >> SR_I_SHIFT ) < env -> pending_level ) {\n env -> exception_index = env -> pending_vector ;\n do_interrupt_m68k_hardirq ( env ) ;\n next_tb = 0 ;\n }\n # elif defined ( TARGET_S390X ) && ! defined ( CONFIG_USER_ONLY ) if ( ( interrupt_request & CPU_INTERRUPT_HARD ) && ( env -> psw . mask & PSW_MASK_EXT ) ) {\n cc -> do_interrupt ( cpu ) ;\n next_tb = 0 ;\n }\n # elif defined ( TARGET_XTENSA ) if ( interrupt_request & CPU_INTERRUPT_HARD ) {\n env -> exception_index = EXC_IRQ ;\n cc -> do_interrupt ( cpu ) ;\n next_tb = 0 ;\n }\n # endif if ( cpu -> interrupt_request & CPU_INTERRUPT_EXITTB ) {\n cpu -> interrupt_request &= ~ CPU_INTERRUPT_EXITTB ;\n next_tb = 0 ;\n }\n }\n if ( unlikely ( cpu -> exit_request ) ) {\n cpu -> exit_request = 0 ;\n env -> exception_index = EXCP_INTERRUPT ;\n cpu_loop_exit ( env ) ;\n }\n # if defined ( DEBUG_DISAS ) if ( qemu_loglevel_mask ( CPU_LOG_TB_CPU ) ) {\n # if defined ( TARGET_I386 ) log_cpu_state ( env , CPU_DUMP_CCOP ) ;\n # elif defined ( TARGET_M68K ) cpu_m68k_flush_flags ( env , env -> cc_op ) ;\n env -> cc_op = CC_OP_FLAGS ;\n env -> sr = ( env -> sr & 0xffe0 ) | env -> cc_dest | ( env -> cc_x << 4 ) ;\n log_cpu_state ( env , 0 ) ;\n # else log_cpu_state ( env , 0 ) ;\n # endif }\n # endif spin_lock ( & tcg_ctx . tb_ctx . tb_lock ) ;\n tb = tb_find_fast ( env ) ;\n if ( tcg_ctx . tb_ctx . tb_invalidated_flag ) {\n next_tb = 0 ;\n tcg_ctx . tb_ctx . tb_invalidated_flag = 0 ;\n }\n if ( qemu_loglevel_mask ( CPU_LOG_EXEC ) ) {\n qemu_log ( \"Trace %p [\" TARGET_FMT_lx \"] %s\\n\" , tb -> tc_ptr , tb -> pc , lookup_symbol ( tb -> pc ) ) ;\n }\n if ( next_tb != 0 && tb -> page_addr [ 1 ] == - 1 ) {\n tb_add_jump ( ( TranslationBlock * ) ( next_tb & ~ TB_EXIT_MASK ) , next_tb & TB_EXIT_MASK , tb ) ;\n }\n spin_unlock ( & tcg_ctx . tb_ctx . tb_lock ) ;\n cpu -> current_tb = tb ;\n barrier ( ) ;\n if ( likely ( ! cpu -> exit_request ) ) {\n tc_ptr = tb -> tc_ptr ;\n next_tb = cpu_tb_exec ( cpu , tc_ptr ) ;\n switch ( next_tb & TB_EXIT_MASK ) {\n case TB_EXIT_REQUESTED : tb = ( TranslationBlock * ) ( next_tb & ~ TB_EXIT_MASK ) ;\n next_tb = 0 ;\n break ;\n case TB_EXIT_ICOUNT_EXPIRED : {\n int insns_left ;\n tb = ( TranslationBlock * ) ( next_tb & ~ TB_EXIT_MASK ) ;\n insns_left = env -> icount_decr . u32 ;\n if ( env -> icount_extra && insns_left >= 0 ) {\n env -> icount_extra += insns_left ;\n if ( env -> icount_extra > 0xffff ) {\n insns_left = 0xffff ;\n }\n else {\n insns_left = env -> icount_extra ;\n }\n env -> icount_extra -= insns_left ;\n env -> icount_decr . u16 . low = insns_left ;\n }\n else {\n if ( insns_left > 0 ) {\n cpu_exec_nocache ( env , insns_left , tb ) ;\n }\n env -> exception_index = EXCP_INTERRUPT ;\n next_tb = 0 ;\n cpu_loop_exit ( env ) ;\n }\n break ;\n }\n default : break ;\n }\n }\n cpu -> current_tb = NULL ;\n }\n }\n else {\n cpu = current_cpu ;\n env = cpu -> env_ptr ;\n }\n }\n # if defined ( TARGET_I386 ) env -> eflags = env -> eflags | cpu_cc_compute_all ( env , CC_OP ) | ( env -> df & DF_MASK ) ;\n # elif defined ( TARGET_ARM ) # elif defined ( TARGET_UNICORE32 ) # elif defined ( TARGET_SPARC ) # elif defined ( TARGET_PPC ) # elif defined ( TARGET_LM32 ) # elif defined ( TARGET_M68K ) cpu_m68k_flush_flags ( env , env -> cc_op ) ;\n env -> cc_op = CC_OP_FLAGS ;\n env -> sr = ( env -> sr & 0xffe0 ) | env -> cc_dest | ( env -> cc_x << 4 ) ;\n # elif defined ( TARGET_MICROBLAZE ) # elif defined ( TARGET_MIPS ) # elif defined ( TARGET_MOXIE ) # elif defined ( TARGET_OPENRISC ) # elif defined ( TARGET_SH4 ) # elif defined ( TARGET_ALPHA ) # elif defined ( TARGET_CRIS ) # elif defined ( TARGET_S390X ) # elif defined ( TARGET_XTENSA ) # else # error unsupported target CPU # endif current_cpu = NULL ;\n return ret ;\n }"}
{"idx": 18695, "target": 1, "func": "static vpx_codec_err_t ctrl_set_svc_parameters ( vpx_codec_alg_priv_t * ctx , va_list args ) {\n VP9_COMP * const cpi = ctx -> cpi ;\n vpx_svc_parameters_t * const params = va_arg ( args , vpx_svc_parameters_t * ) ;\n if ( params == NULL || params -> spatial_layer < 0 || params -> spatial_layer >= cpi -> svc . number_spatial_layers ) return VPX_CODEC_INVALID_PARAM ;\n if ( params -> spatial_layer == 0 ) {\n int i ;\n for ( i = 0 ;\n i < cpi -> svc . number_spatial_layers ;\n ++ i ) {\n cpi -> svc . layer_context [ i ] . svc_params_received . spatial_layer = - 1 ;\n }\n }\n cpi -> svc . layer_context [ params -> spatial_layer ] . svc_params_received = * params ;\n return VPX_CODEC_OK ;\n }"}
{"idx": 18696, "target": 0, "func": "void web_server_destroy ( void ) {\n if ( bWebServerState == WEB_SERVER_ENABLED ) {\n membuffer_destroy ( & gDocumentRootDir ) ;\n alias_release ( & gAliasDoc ) ;\n ithread_mutex_lock ( & gWebMutex ) ;\n memset ( & gAliasDoc , 0 , sizeof ( struct xml_alias_t ) ) ;\n ithread_mutex_unlock ( & gWebMutex ) ;\n ithread_mutex_destroy ( & gWebMutex ) ;\n bWebServerState = WEB_SERVER_DISABLED ;\n }\n }"}
{"idx": 18697, "target": 0, "func": "int qemuMonitorTextSetBlockIoThrottle ( qemuMonitorPtr mon , const char * device , virDomainBlockIoTuneInfoPtr info ) {\n char * cmd = NULL ;\n char * result = NULL ;\n int ret = 0 ;\n const char * cmd_name = NULL ;\n cmd_name = \"block_set_io_throttle\" ;\n ret = virAsprintf ( & cmd , \"%s %s %llu %llu %llu %llu %llu %llu\" , cmd_name , device , info -> total_bytes_sec , info -> read_bytes_sec , info -> write_bytes_sec , info -> total_iops_sec , info -> read_iops_sec , info -> write_iops_sec ) ;\n if ( ret < 0 ) {\n virReportOOMError ( ) ;\n return - 1 ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & result ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"cannot run monitor command\" ) ) ;\n ret = - 1 ;\n goto cleanup ;\n }\n if ( qemuMonitorTextCommandNotFound ( cmd_name , result ) ) {\n qemuReportError ( VIR_ERR_OPERATION_INVALID , _ ( \"Command '%s' is not found\" ) , cmd_name ) ;\n ret = - 1 ;\n goto cleanup ;\n }\n cleanup : VIR_FREE ( cmd ) ;\n VIR_FREE ( result ) ;\n return ret ;\n }"}
{"idx": 18698, "target": 0, "func": "static int dissect_h225_GatekeeperConfirm ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_GatekeeperConfirm , GatekeeperConfirm_sequence ) ;\n return offset ;\n }"}
{"idx": 18699, "target": 1, "func": "static void nlm_register_unmatched_msg ( packet_info * pinfo , tvbuff_t * tvb , int offset ) {\n nlm_msg_res_unmatched_data * umd ;\n nlm_msg_res_unmatched_data * old_umd ;\n umd = ( nlm_msg_res_unmatched_data * ) g_malloc ( sizeof ( nlm_msg_res_unmatched_data ) ) ;\n umd -> req_frame = pinfo -> fd -> num ;\n umd -> ns = pinfo -> fd -> abs_ts ;\n umd -> cookie_len = tvb_get_ntohl ( tvb , offset ) ;\n umd -> cookie = ( const guint8 * ) tvb_memdup ( NULL , tvb , offset + 4 , umd -> cookie_len ) ;\n old_umd = ( nlm_msg_res_unmatched_data * ) g_hash_table_lookup ( nlm_msg_res_unmatched , ( gconstpointer ) umd ) ;\n if ( old_umd ) {\n g_hash_table_remove ( nlm_msg_res_unmatched , ( gconstpointer ) old_umd ) ;\n g_free ( ( gpointer ) old_umd -> cookie ) ;\n g_free ( old_umd ) ;\n }\n g_hash_table_insert ( nlm_msg_res_unmatched , ( gpointer ) umd , ( gpointer ) umd ) ;\n }"}
{"idx": 18700, "target": 0, "func": "static void rv34_mc_2mv_skip ( RV34DecContext * r ) {\n int i , j ;\n int weighted = ! r -> rv30 && r -> weight1 != 8192 ;\n for ( j = 0 ;\n j < 2 ;\n j ++ ) for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n rv34_mc ( r , RV34_MB_P_8x8 , i * 8 , j * 8 , i + j * r -> s . b8_stride , 1 , 1 , 0 , r -> rv30 , weighted , r -> rdsp . put_pixels_tab , r -> rdsp . put_chroma_pixels_tab ) ;\n rv34_mc ( r , RV34_MB_P_8x8 , i * 8 , j * 8 , i + j * r -> s . b8_stride , 1 , 1 , 1 , r -> rv30 , weighted , weighted ? r -> rdsp . put_pixels_tab : r -> rdsp . avg_pixels_tab , weighted ? r -> rdsp . put_chroma_pixels_tab : r -> rdsp . avg_chroma_pixels_tab ) ;\n }\n if ( weighted ) rv4_weight ( r ) ;\n }"}
{"idx": 18701, "target": 0, "func": "void vp9_write_nmv_probs ( VP9_COMMON * cm , int usehp , vp9_writer * w ) {\n int i , j ;\n nmv_context * const mvc = & cm -> fc . nmvc ;\n nmv_context_counts * const counts = & cm -> counts . mv ;\n write_mv_update ( vp9_mv_joint_tree , mvc -> joints , counts -> joints , MV_JOINTS , w ) ;\n for ( i = 0 ;\n i < 2 ;\n ++ i ) {\n nmv_component * comp = & mvc -> comps [ i ] ;\n nmv_component_counts * comp_counts = & counts -> comps [ i ] ;\n update_mv ( w , comp_counts -> sign , & comp -> sign , MV_UPDATE_PROB ) ;\n write_mv_update ( vp9_mv_class_tree , comp -> classes , comp_counts -> classes , MV_CLASSES , w ) ;\n write_mv_update ( vp9_mv_class0_tree , comp -> class0 , comp_counts -> class0 , CLASS0_SIZE , w ) ;\n for ( j = 0 ;\n j < MV_OFFSET_BITS ;\n ++ j ) update_mv ( w , comp_counts -> bits [ j ] , & comp -> bits [ j ] , MV_UPDATE_PROB ) ;\n }\n for ( i = 0 ;\n i < 2 ;\n ++ i ) {\n for ( j = 0 ;\n j < CLASS0_SIZE ;\n ++ j ) write_mv_update ( vp9_mv_fp_tree , mvc -> comps [ i ] . class0_fp [ j ] , counts -> comps [ i ] . class0_fp [ j ] , MV_FP_SIZE , w ) ;\n write_mv_update ( vp9_mv_fp_tree , mvc -> comps [ i ] . fp , counts -> comps [ i ] . fp , MV_FP_SIZE , w ) ;\n }\n if ( usehp ) {\n for ( i = 0 ;\n i < 2 ;\n ++ i ) {\n update_mv ( w , counts -> comps [ i ] . class0_hp , & mvc -> comps [ i ] . class0_hp , MV_UPDATE_PROB ) ;\n update_mv ( w , counts -> comps [ i ] . hp , & mvc -> comps [ i ] . hp , MV_UPDATE_PROB ) ;\n }\n }\n }"}
{"idx": 18702, "target": 0, "func": "int psf_set_stdio ( SF_PRIVATE * psf ) {\n int error = 0 ;\n switch ( psf -> file . mode ) {\n case SFM_RDWR : error = SFE_OPEN_PIPE_RDWR ;\n break ;\n case SFM_READ : psf -> file . filedes = 0 ;\n break ;\n case SFM_WRITE : psf -> file . filedes = 1 ;\n break ;\n default : error = SFE_BAD_OPEN_MODE ;\n break ;\n }\n ;\n psf -> filelength = 0 ;\n return error ;\n }"}
{"idx": 18703, "target": 0, "func": "static void compact_print_str ( WriterContext * wctx , const char * key , const char * value ) {\n CompactContext * compact = wctx -> priv ;\n AVBPrint buf ;\n if ( wctx -> nb_item [ wctx -> level ] ) printf ( \"%c\" , compact -> item_sep ) ;\n if ( ! compact -> nokey ) printf ( \"%s%s=\" , wctx -> section_pbuf [ wctx -> level ] . str , key ) ;\n av_bprint_init ( & buf , 1 , AV_BPRINT_SIZE_UNLIMITED ) ;\n printf ( \"%s\" , compact -> escape_str ( & buf , value , compact -> item_sep , wctx ) ) ;\n av_bprint_finalize ( & buf , NULL ) ;\n }"}
{"idx": 18704, "target": 0, "func": "int gs_main_init2aux ( gs_main_instance * minst ) {\n i_ctx_t * i_ctx_p = minst -> i_ctx_p ;\n if ( minst -> init_done < 2 ) {\n int code , exit_code ;\n ref error_object , ifa ;\n i_ctx_p -> op_array_table_global = empty_table ;\n i_ctx_p -> op_array_table_local = empty_table ;\n code = zop_init ( i_ctx_p ) ;\n if ( code < 0 ) return code ;\n code = op_init ( i_ctx_p ) ;\n if ( code < 0 ) return code ;\n make_const_string ( & ifa , a_readonly | avm_foreign , gs_init_files_sizeof - 2 , gs_init_files ) ;\n code = initial_enter_name ( \"INITFILES\" , & ifa ) ;\n if ( code < 0 ) return code ;\n make_const_string ( & ifa , a_readonly | avm_foreign , gs_emulators_sizeof - 2 , gs_emulators ) ;\n code = initial_enter_name ( \"EMULATORS\" , & ifa ) ;\n if ( code < 0 ) return code ;\n code = initial_enter_name ( \"LIBPATH\" , & minst -> lib_path . list ) ;\n if ( code < 0 ) return code ;\n code = gs_run_init_file ( minst , & exit_code , & error_object ) ;\n if ( code < 0 ) return code ;\n minst -> init_done = 2 ;\n if ( minst -> display ) if ( ( code = display_set_callback ( minst , minst -> display ) ) < 0 ) return code ;\n if ( ( code = gs_main_run_string ( minst , \"JOBSERVER \" \" {\n false 0 .startnewjob }\n \" \" {\n NOOUTERSAVE not {\n save pop }\n if }\n \" \"ifelse\" , 0 , & exit_code , & error_object ) ) < 0 ) return code ;\n }\n return 0 ;\n }"}
{"idx": 18705, "target": 0, "func": "static void test_ps_conj_select ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n MYSQL_BIND my_bind [ 2 ] ;\n int32 int_data ;\n char str_data [ 32 ] ;\n unsigned long str_length ;\n char query [ MAX_TEST_QUERY_LENGTH ] ;\n myheader ( \"test_ps_conj_select\" ) ;\n rc = mysql_query ( mysql , \"drop table if exists t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t1 (id1 int(11) NOT NULL default '0', \" \"value2 varchar(100), value1 varchar(100))\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t1 values (1, 'hh', 'hh'), \" \"(2, 'hh', 'hh'), (1, 'ii', 'ii'), (2, 'ii', 'ii')\" ) ;\n myquery ( rc ) ;\n strmov ( query , \"select id1, value1 from t1 where id1= ? or \" \"CONVERT(value1 USING utf8)= ?\" ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 2 ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 0 ] . buffer = ( void * ) & int_data ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_VAR_STRING ;\n my_bind [ 1 ] . buffer = ( void * ) str_data ;\n my_bind [ 1 ] . buffer_length = array_elements ( str_data ) ;\n my_bind [ 1 ] . length = & str_length ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n int_data = 1 ;\n strmov ( str_data , \"hh\" ) ;\n str_length = strlen ( str_data ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( rc == 3 ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 18706, "target": 0, "func": "static void mainwindows_rresize_two ( MAIN_WINDOW_REC * grow_win , MAIN_WINDOW_REC * shrink_win , int count ) {\n irssi_set_dirty ( ) ;\n mainwindow_resize ( grow_win , count , 0 ) ;\n mainwindow_resize ( shrink_win , - count , 0 ) ;\n grow_win -> dirty = TRUE ;\n shrink_win -> dirty = TRUE ;\n }"}
{"idx": 18707, "target": 0, "func": "static int http_getsock_do ( struct connectdata * conn , curl_socket_t * socks , int numsocks ) {\n ( void ) numsocks ;\n socks [ 0 ] = conn -> sock [ FIRSTSOCKET ] ;\n return GETSOCK_WRITESOCK ( 0 ) ;\n }"}
{"idx": 18708, "target": 0, "func": "static void ATmaxpInit ( struct alltabs * at , SplineFont * sf , enum fontformat format ) {\n at -> maxp . version = 0x00010000 ;\n if ( format == ff_otf || format == ff_otfcid || ( format == ff_none && at -> applemode ) ) at -> maxp . version = 0x00005000 ;\n at -> maxp . maxnumcomponents = 0 ;\n at -> maxp . maxcomponentdepth = 0 ;\n at -> maxp . maxZones = 2 ;\n at -> maxp . maxFDEFs = 1 ;\n at -> maxp . maxStorage = 1 ;\n at -> maxp . maxStack = 64 ;\n if ( format == ff_otf || format == ff_otfcid || ( format == ff_none && at -> applemode ) ) at -> maxp . version = 0x00005000 ;\n else MaxpFromTable ( at , sf ) ;\n at -> gi . maxp = & at -> maxp ;\n }"}
{"idx": 18709, "target": 0, "func": "static int asn1_d2i_read_bio ( BIO * in , BUF_MEM * * pb ) {\n BUF_MEM * b ;\n unsigned char * p ;\n int i ;\n size_t want = HEADER_SIZE ;\n int eos = 0 ;\n size_t off = 0 ;\n size_t len = 0 ;\n const unsigned char * q ;\n long slen ;\n int inf , tag , xclass ;\n b = BUF_MEM_new ( ) ;\n if ( b == NULL ) {\n ASN1err ( ASN1_F_ASN1_D2I_READ_BIO , ERR_R_MALLOC_FAILURE ) ;\n return - 1 ;\n }\n ERR_clear_error ( ) ;\n for ( ;\n ;\n ) {\n if ( want >= ( len - off ) ) {\n want -= ( len - off ) ;\n if ( len + want < len || ! BUF_MEM_grow_clean ( b , len + want ) ) {\n ASN1err ( ASN1_F_ASN1_D2I_READ_BIO , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n i = BIO_read ( in , & ( b -> data [ len ] ) , want ) ;\n if ( ( i < 0 ) && ( ( len - off ) == 0 ) ) {\n ASN1err ( ASN1_F_ASN1_D2I_READ_BIO , ASN1_R_NOT_ENOUGH_DATA ) ;\n goto err ;\n }\n if ( i > 0 ) {\n if ( len + i < len ) {\n ASN1err ( ASN1_F_ASN1_D2I_READ_BIO , ASN1_R_TOO_LONG ) ;\n goto err ;\n }\n len += i ;\n }\n }\n p = ( unsigned char * ) & ( b -> data [ off ] ) ;\n q = p ;\n inf = ASN1_get_object ( & q , & slen , & tag , & xclass , len - off ) ;\n if ( inf & 0x80 ) {\n unsigned long e ;\n e = ERR_GET_REASON ( ERR_peek_error ( ) ) ;\n if ( e != ASN1_R_TOO_LONG ) goto err ;\n else ERR_clear_error ( ) ;\n }\n i = q - p ;\n off += i ;\n if ( inf & 1 ) {\n eos ++ ;\n if ( eos < 0 ) {\n ASN1err ( ASN1_F_ASN1_D2I_READ_BIO , ASN1_R_HEADER_TOO_LONG ) ;\n goto err ;\n }\n want = HEADER_SIZE ;\n }\n else if ( eos && ( slen == 0 ) && ( tag == V_ASN1_EOC ) ) {\n eos -- ;\n if ( eos <= 0 ) break ;\n else want = HEADER_SIZE ;\n }\n else {\n want = slen ;\n if ( want > ( len - off ) ) {\n size_t chunk_max = ASN1_CHUNK_INITIAL_SIZE ;\n want -= ( len - off ) ;\n if ( want > INT_MAX || len + want < len ) {\n ASN1err ( ASN1_F_ASN1_D2I_READ_BIO , ASN1_R_TOO_LONG ) ;\n goto err ;\n }\n while ( want > 0 ) {\n size_t chunk = want > chunk_max ? chunk_max : want ;\n if ( ! BUF_MEM_grow_clean ( b , len + chunk ) ) {\n ASN1err ( ASN1_F_ASN1_D2I_READ_BIO , ERR_R_MALLOC_FAILURE ) ;\n goto err ;\n }\n want -= chunk ;\n while ( chunk > 0 ) {\n i = BIO_read ( in , & ( b -> data [ len ] ) , chunk ) ;\n if ( i <= 0 ) {\n ASN1err ( ASN1_F_ASN1_D2I_READ_BIO , ASN1_R_NOT_ENOUGH_DATA ) ;\n goto err ;\n }\n len += i ;\n chunk -= i ;\n }\n if ( chunk_max < INT_MAX / 2 ) chunk_max *= 2 ;\n }\n }\n if ( off + slen < off ) {\n ASN1err ( ASN1_F_ASN1_D2I_READ_BIO , ASN1_R_TOO_LONG ) ;\n goto err ;\n }\n off += slen ;\n if ( eos <= 0 ) {\n break ;\n }\n else want = HEADER_SIZE ;\n }\n }\n if ( off > INT_MAX ) {\n ASN1err ( ASN1_F_ASN1_D2I_READ_BIO , ASN1_R_TOO_LONG ) ;\n goto err ;\n }\n * pb = b ;\n return off ;\n err : BUF_MEM_free ( b ) ;\n return - 1 ;\n }"}
{"idx": 18710, "target": 0, "func": "bool contain_mutable_functions ( Node * clause ) {\n return contain_mutable_functions_walker ( clause , NULL ) ;\n }"}
{"idx": 18711, "target": 1, "func": "static int test_make_inputs ( xd3_stream * stream , xoff_t * ss_out , xoff_t * ts_out ) {\n usize_t ts = ( mt_random ( & static_mtrand ) % TEST_FILE_MEAN ) + TEST_FILE_MEAN / 2 ;\n usize_t ss = ( mt_random ( & static_mtrand ) % TEST_FILE_MEAN ) + TEST_FILE_MEAN / 2 ;\n uint8_t * buf = ( uint8_t * ) malloc ( ts + ss ) , * sbuf = buf , * tbuf = buf + ss ;\n usize_t sadd = 0 , sadd_max = ( usize_t ) ( ss * TEST_ADD_RATIO ) ;\n FILE * tf = NULL , * sf = NULL ;\n usize_t i , j ;\n int ret ;\n if ( buf == NULL ) {\n return ENOMEM ;\n }\n if ( ( tf = fopen ( TEST_TARGET_FILE , \"w\" ) ) == NULL || ( ss_out != NULL && ( sf = fopen ( TEST_SOURCE_FILE , \"w\" ) ) == NULL ) ) {\n stream -> msg = \"write failed\" ;\n ret = get_errno ( ) ;\n goto failure ;\n }\n if ( ss_out != NULL ) {\n for ( i = 0 ;\n i < ss ;\n ) {\n sbuf [ i ++ ] = ( uint8_t ) mt_random ( & static_mtrand ) ;\n }\n }\n for ( i = 0 ;\n i < ts ;\n ) {\n usize_t left = ts - i ;\n usize_t next = mt_exp_rand ( ( uint32_t ) TEST_ADD_MEAN , ( uint32_t ) TEST_ADD_MAX ) ;\n usize_t add_left = sadd_max - sadd ;\n double add_prob = ( left == 0 ) ? 0 : ( add_left / ( double ) left ) ;\n int do_copy ;\n next = min ( left , next ) ;\n do_copy = ( next > add_left || ( mt_random ( & static_mtrand ) / ( double ) USIZE_T_MAX ) >= add_prob ) ;\n if ( ss_out == NULL ) {\n do_copy &= ( i > 0 ) ;\n }\n else {\n do_copy &= ( ss - next ) > 0 ;\n }\n if ( do_copy ) {\n size_t offset = mt_random ( & static_mtrand ) % ( ( ss_out == NULL ) ? i : ( ss - next ) ) ;\n for ( j = 0 ;\n j < next ;\n j += 1 ) {\n char c = ( ( ss_out == NULL ) ? tbuf : sbuf ) [ offset + j ] ;\n tbuf [ i ++ ] = c ;\n }\n }\n else {\n for ( j = 0 ;\n j < next ;\n j += 1 ) {\n char c = ( char ) mt_random ( & static_mtrand ) ;\n tbuf [ i ++ ] = c ;\n }\n sadd += next ;\n }\n }\n if ( ( fwrite ( tbuf , 1 , ts , tf ) != ts ) || ( ss_out != NULL && ( fwrite ( sbuf , 1 , ss , sf ) != ss ) ) ) {\n stream -> msg = \"write failed\" ;\n ret = get_errno ( ) ;\n goto failure ;\n }\n if ( ( ret = fclose ( tf ) ) || ( ss_out != NULL && ( ret = fclose ( sf ) ) ) ) {\n stream -> msg = \"close failed\" ;\n ret = get_errno ( ) ;\n goto failure ;\n }\n if ( ts_out ) {\n ( * ts_out ) = ts ;\n }\n if ( ss_out ) {\n ( * ss_out ) = ss ;\n }\n failure : free ( buf ) ;\n return ret ;\n }"}
{"idx": 18712, "target": 0, "func": "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_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_ExtendedAliasAddress , ExtendedAliasAddress_sequence ) ;\n return offset ;\n }"}
{"idx": 18713, "target": 0, "func": "void crypto_policy_set_aes_cm_128_hmac_sha1_32 ( crypto_policy_t * p ) {\n p -> cipher_type = AES_ICM ;\n p -> cipher_key_len = 30 ;\n p -> auth_type = HMAC_SHA1 ;\n p -> auth_key_len = 20 ;\n p -> auth_tag_len = 4 ;\n p -> sec_serv = sec_serv_conf_and_auth ;\n }"}
{"idx": 18714, "target": 1, "func": "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_ ) {\n # line 386 \"./asn1/h225/h225.cnf\" h225_packet_info * h225_pi ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_Status_UUIE , Status_UUIE_sequence ) ;\n # line 390 \"./asn1/h225/h225.cnf\" h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> cs_type = H225_STATUS ;\n g_snprintf ( h225_pi -> frame_label , 50 , \"%s\" , val_to_str ( h225_pi -> cs_type , T_h323_message_body_vals , \"<unknown>\" ) ) ;\n }\n return offset ;\n }"}
{"idx": 18715, "target": 0, "func": "void ff_xvmc_decode_mb ( MpegEncContext * s ) {\n XvMCMacroBlock * mv_block ;\n struct xvmc_pix_fmt * render ;\n int i , cbp , blocks_per_mb ;\n const int mb_xy = s -> mb_y * s -> mb_stride + s -> mb_x ;\n if ( s -> encoding ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"XVMC doesn't support encoding!!!\\n\" ) ;\n return ;\n }\n if ( ! s -> mb_intra ) {\n s -> last_dc [ 0 ] = s -> last_dc [ 1 ] = s -> last_dc [ 2 ] = 128 << s -> intra_dc_precision ;\n }\n s -> mb_skipped = 0 ;\n s -> current_picture . qscale_table [ mb_xy ] = s -> qscale ;\n render = ( struct xvmc_pix_fmt * ) s -> current_picture . f . data [ 2 ] ;\n assert ( render ) ;\n assert ( render -> xvmc_id == AV_XVMC_ID ) ;\n assert ( render -> mv_blocks ) ;\n mv_block = & render -> mv_blocks [ render -> start_mv_blocks_num + render -> filled_mv_blocks_num ] ;\n mv_block -> x = s -> mb_x ;\n mv_block -> y = s -> mb_y ;\n mv_block -> dct_type = s -> interlaced_dct ;\n if ( s -> mb_intra ) {\n mv_block -> macroblock_type = XVMC_MB_TYPE_INTRA ;\n }\n else {\n mv_block -> macroblock_type = XVMC_MB_TYPE_PATTERN ;\n if ( s -> mv_dir & MV_DIR_FORWARD ) {\n mv_block -> macroblock_type |= XVMC_MB_TYPE_MOTION_FORWARD ;\n mv_block -> PMV [ 0 ] [ 0 ] [ 0 ] = s -> mv [ 0 ] [ 0 ] [ 0 ] ;\n mv_block -> PMV [ 0 ] [ 0 ] [ 1 ] = s -> mv [ 0 ] [ 0 ] [ 1 ] ;\n mv_block -> PMV [ 1 ] [ 0 ] [ 0 ] = s -> mv [ 0 ] [ 1 ] [ 0 ] ;\n mv_block -> PMV [ 1 ] [ 0 ] [ 1 ] = s -> mv [ 0 ] [ 1 ] [ 1 ] ;\n }\n if ( s -> mv_dir & MV_DIR_BACKWARD ) {\n mv_block -> macroblock_type |= XVMC_MB_TYPE_MOTION_BACKWARD ;\n mv_block -> PMV [ 0 ] [ 1 ] [ 0 ] = s -> mv [ 1 ] [ 0 ] [ 0 ] ;\n mv_block -> PMV [ 0 ] [ 1 ] [ 1 ] = s -> mv [ 1 ] [ 0 ] [ 1 ] ;\n mv_block -> PMV [ 1 ] [ 1 ] [ 0 ] = s -> mv [ 1 ] [ 1 ] [ 0 ] ;\n mv_block -> PMV [ 1 ] [ 1 ] [ 1 ] = s -> mv [ 1 ] [ 1 ] [ 1 ] ;\n }\n switch ( s -> mv_type ) {\n case MV_TYPE_16X16 : mv_block -> motion_type = XVMC_PREDICTION_FRAME ;\n break ;\n case MV_TYPE_16X8 : mv_block -> motion_type = XVMC_PREDICTION_16x8 ;\n break ;\n case MV_TYPE_FIELD : mv_block -> motion_type = XVMC_PREDICTION_FIELD ;\n if ( s -> picture_structure == PICT_FRAME ) {\n mv_block -> PMV [ 0 ] [ 0 ] [ 1 ] <<= 1 ;\n mv_block -> PMV [ 1 ] [ 0 ] [ 1 ] <<= 1 ;\n mv_block -> PMV [ 0 ] [ 1 ] [ 1 ] <<= 1 ;\n mv_block -> PMV [ 1 ] [ 1 ] [ 1 ] <<= 1 ;\n }\n break ;\n case MV_TYPE_DMV : mv_block -> motion_type = XVMC_PREDICTION_DUAL_PRIME ;\n if ( s -> picture_structure == PICT_FRAME ) {\n mv_block -> PMV [ 0 ] [ 0 ] [ 0 ] = s -> mv [ 0 ] [ 0 ] [ 0 ] ;\n mv_block -> PMV [ 0 ] [ 0 ] [ 1 ] = s -> mv [ 0 ] [ 0 ] [ 1 ] << 1 ;\n mv_block -> PMV [ 0 ] [ 1 ] [ 0 ] = s -> mv [ 0 ] [ 0 ] [ 0 ] ;\n mv_block -> PMV [ 0 ] [ 1 ] [ 1 ] = s -> mv [ 0 ] [ 0 ] [ 1 ] << 1 ;\n mv_block -> PMV [ 1 ] [ 0 ] [ 0 ] = s -> mv [ 0 ] [ 2 ] [ 0 ] ;\n mv_block -> PMV [ 1 ] [ 0 ] [ 1 ] = s -> mv [ 0 ] [ 2 ] [ 1 ] << 1 ;\n mv_block -> PMV [ 1 ] [ 1 ] [ 0 ] = s -> mv [ 0 ] [ 3 ] [ 0 ] ;\n mv_block -> PMV [ 1 ] [ 1 ] [ 1 ] = s -> mv [ 0 ] [ 3 ] [ 1 ] << 1 ;\n }\n else {\n mv_block -> PMV [ 0 ] [ 1 ] [ 0 ] = s -> mv [ 0 ] [ 2 ] [ 0 ] ;\n mv_block -> PMV [ 0 ] [ 1 ] [ 1 ] = s -> mv [ 0 ] [ 2 ] [ 1 ] ;\n }\n break ;\n default : assert ( 0 ) ;\n }\n mv_block -> motion_vertical_field_select = 0 ;\n if ( s -> mv_type == MV_TYPE_FIELD || s -> mv_type == MV_TYPE_16X8 ) {\n mv_block -> motion_vertical_field_select |= s -> field_select [ 0 ] [ 0 ] ;\n mv_block -> motion_vertical_field_select |= s -> field_select [ 1 ] [ 0 ] << 1 ;\n mv_block -> motion_vertical_field_select |= s -> field_select [ 0 ] [ 1 ] << 2 ;\n mv_block -> motion_vertical_field_select |= s -> field_select [ 1 ] [ 1 ] << 3 ;\n }\n }\n mv_block -> index = render -> next_free_data_block_num ;\n blocks_per_mb = 6 ;\n if ( s -> chroma_format >= 2 ) {\n blocks_per_mb = 4 + ( 1 << s -> chroma_format ) ;\n }\n cbp = 0 ;\n for ( i = 0 ;\n i < blocks_per_mb ;\n i ++ ) {\n cbp += cbp ;\n if ( s -> block_last_index [ i ] >= 0 ) cbp ++ ;\n }\n if ( s -> flags & CODEC_FLAG_GRAY ) {\n if ( s -> mb_intra ) {\n for ( i = 4 ;\n i < blocks_per_mb ;\n i ++ ) {\n memset ( s -> pblocks [ i ] , 0 , sizeof ( * s -> pblocks [ i ] ) ) ;\n if ( ! render -> unsigned_intra ) * s -> pblocks [ i ] [ 0 ] = 1 << 10 ;\n }\n }\n else {\n cbp &= 0xf << ( blocks_per_mb - 4 ) ;\n blocks_per_mb = 4 ;\n }\n }\n mv_block -> coded_block_pattern = cbp ;\n if ( cbp == 0 ) mv_block -> macroblock_type &= ~ XVMC_MB_TYPE_PATTERN ;\n for ( i = 0 ;\n i < blocks_per_mb ;\n i ++ ) {\n if ( s -> block_last_index [ i ] >= 0 ) {\n if ( s -> mb_intra && ( render -> idct || ! render -> unsigned_intra ) ) * s -> pblocks [ i ] [ 0 ] -= 1 << 10 ;\n if ( ! render -> idct ) {\n s -> dsp . idct ( * s -> pblocks [ i ] ) ;\n }\n if ( s -> avctx -> xvmc_acceleration == 1 ) {\n memcpy ( & render -> data_blocks [ render -> next_free_data_block_num * 64 ] , s -> pblocks [ i ] , sizeof ( * s -> pblocks [ i ] ) ) ;\n }\n render -> next_free_data_block_num ++ ;\n }\n }\n render -> filled_mv_blocks_num ++ ;\n assert ( render -> filled_mv_blocks_num <= render -> allocated_mv_blocks ) ;\n assert ( render -> next_free_data_block_num <= render -> allocated_data_blocks ) ;\n if ( render -> filled_mv_blocks_num == render -> allocated_mv_blocks ) ff_mpeg_draw_horiz_band ( s , 0 , 0 ) ;\n }"}
{"idx": 18716, "target": 0, "func": "void vp9_scale_references ( VP9_COMP * cpi ) {\n VP9_COMMON * cm = & cpi -> common ;\n MV_REFERENCE_FRAME ref_frame ;\n const VP9_REFFRAME ref_mask [ 3 ] = {\n VP9_LAST_FLAG , VP9_GOLD_FLAG , VP9_ALT_FLAG }\n ;\n for ( ref_frame = LAST_FRAME ;\n ref_frame <= ALTREF_FRAME ;\n ++ ref_frame ) {\n const int idx = cm -> ref_frame_map [ get_ref_frame_idx ( cpi , ref_frame ) ] ;\n const YV12_BUFFER_CONFIG * const ref = & cm -> frame_bufs [ idx ] . buf ;\n if ( ( cpi -> ref_frame_flags & ref_mask [ ref_frame - 1 ] ) && ( ref -> y_crop_width != cm -> width || ref -> y_crop_height != cm -> height ) ) {\n const int new_fb = get_free_fb ( cm ) ;\n vp9_realloc_frame_buffer ( & cm -> frame_bufs [ new_fb ] . buf , cm -> width , cm -> height , cm -> subsampling_x , cm -> subsampling_y , # if CONFIG_VP9_HIGHBITDEPTH cm -> use_highbitdepth , # endif VP9_ENC_BORDER_IN_PIXELS , NULL , NULL , NULL ) ;\n scale_and_extend_frame ( ref , & cm -> frame_bufs [ new_fb ] . buf ) ;\n cpi -> scaled_ref_idx [ ref_frame - 1 ] = new_fb ;\n }\n else {\n cpi -> scaled_ref_idx [ ref_frame - 1 ] = idx ;\n cm -> frame_bufs [ idx ] . ref_count ++ ;\n }\n }\n }"}
{"idx": 18717, "target": 0, "func": "static void dtap_cc_modify_rej ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_FALSE ;\n ELEM_MAND_LV ( GSM_A_PDU_TYPE_DTAP , DE_BEARER_CAP , NULL ) ;\n ELEM_MAND_LV ( GSM_A_PDU_TYPE_DTAP , DE_CAUSE , NULL ) ;\n ELEM_OPT_TLV ( 0x7c , GSM_A_PDU_TYPE_DTAP , DE_LLC , NULL ) ;\n ELEM_OPT_TLV ( 0x7d , GSM_A_PDU_TYPE_DTAP , DE_HLC , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 18718, "target": 0, "func": "static void test_stiny_bug ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND my_bind [ 4 ] ;\n short short_value ;\n int32 long_value ;\n ulong s_length , l_length , ll_length , t_length ;\n ulonglong longlong_value ;\n int rc ;\n uchar tiny_value ;\n char llbuf [ 22 ] ;\n myheader ( \"test_stiny_bug\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_stiny\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_stiny(a tinyint signed, \\ b tinyint signed, \\ c tinyint unsigned, \\ d tinyint unsigned)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_stiny VALUES(-128, -127, 255, 0)\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT * FROM test_stiny\" ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_SHORT ;\n my_bind [ 0 ] . buffer = ( void * ) & short_value ;\n my_bind [ 0 ] . length = & s_length ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 1 ] . buffer = ( void * ) & long_value ;\n my_bind [ 1 ] . length = & l_length ;\n my_bind [ 2 ] . buffer_type = MYSQL_TYPE_LONGLONG ;\n my_bind [ 2 ] . buffer = ( void * ) & longlong_value ;\n my_bind [ 2 ] . length = & ll_length ;\n my_bind [ 3 ] . buffer_type = MYSQL_TYPE_TINY ;\n my_bind [ 3 ] . buffer = ( void * ) & tiny_value ;\n my_bind [ 3 ] . length = & t_length ;\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) {\n fprintf ( stdout , \"\\n sshort : %d (%ld)\" , short_value , s_length ) ;\n fprintf ( stdout , \"\\n slong : %ld (%ld)\" , ( long ) long_value , l_length ) ;\n fprintf ( stdout , \"\\n longlong : %s (%ld)\" , llstr ( longlong_value , llbuf ) , ll_length ) ;\n fprintf ( stdout , \"\\n tinyint : %d (%ld)\" , tiny_value , t_length ) ;\n }\n DIE_UNLESS ( short_value == - 128 ) ;\n DIE_UNLESS ( s_length == 2 ) ;\n DIE_UNLESS ( long_value == - 127 ) ;\n DIE_UNLESS ( l_length == 4 ) ;\n DIE_UNLESS ( longlong_value == 255 ) ;\n DIE_UNLESS ( ll_length == 8 ) ;\n DIE_UNLESS ( tiny_value == 0 ) ;\n DIE_UNLESS ( t_length == 1 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 18719, "target": 0, "func": "static void U_CALLCONV strprepProfileLineFn ( void * context , char * fields [ ] [ 2 ] , int32_t fieldCount , UErrorCode * pErrorCode ) {\n uint32_t mapping [ 40 ] ;\n char * end , * map ;\n uint32_t code ;\n int32_t length ;\n const char * typeName ;\n uint32_t rangeStart = 0 , rangeEnd = 0 ;\n const char * filename = ( const char * ) context ;\n const char * s ;\n s = u_skipWhitespace ( fields [ 0 ] [ 0 ] ) ;\n if ( * s == '@' ) {\n s ++ ;\n length = fields [ 0 ] [ 1 ] - s ;\n if ( length >= NORMALIZE_DIRECTIVE_LEN && uprv_strncmp ( s , NORMALIZE_DIRECTIVE , NORMALIZE_DIRECTIVE_LEN ) == 0 ) {\n options [ NORMALIZE ] . doesOccur = TRUE ;\n return ;\n }\n else if ( length >= CHECK_BIDI_DIRECTIVE_LEN && uprv_strncmp ( s , CHECK_BIDI_DIRECTIVE , CHECK_BIDI_DIRECTIVE_LEN ) == 0 ) {\n options [ CHECK_BIDI ] . doesOccur = TRUE ;\n return ;\n }\n else {\n fprintf ( stderr , \"gensprep error parsing a directive %s.\" , fields [ 0 ] [ 0 ] ) ;\n }\n }\n typeName = fields [ 2 ] [ 0 ] ;\n map = fields [ 1 ] [ 0 ] ;\n if ( uprv_strstr ( typeName , usprepTypeNames [ USPREP_UNASSIGNED ] ) != NULL ) {\n u_parseCodePointRange ( s , & rangeStart , & rangeEnd , pErrorCode ) ;\n if ( U_FAILURE ( * pErrorCode ) ) {\n fprintf ( stderr , \"Could not parse code point range. Error: %s\\n\" , u_errorName ( * pErrorCode ) ) ;\n return ;\n }\n storeRange ( rangeStart , rangeEnd , USPREP_UNASSIGNED , pErrorCode ) ;\n }\n else if ( uprv_strstr ( typeName , usprepTypeNames [ USPREP_PROHIBITED ] ) != NULL ) {\n u_parseCodePointRange ( s , & rangeStart , & rangeEnd , pErrorCode ) ;\n if ( U_FAILURE ( * pErrorCode ) ) {\n fprintf ( stderr , \"Could not parse code point range. Error: %s\\n\" , u_errorName ( * pErrorCode ) ) ;\n return ;\n }\n storeRange ( rangeStart , rangeEnd , USPREP_PROHIBITED , pErrorCode ) ;\n }\n else if ( uprv_strstr ( typeName , usprepTypeNames [ USPREP_MAP ] ) != NULL ) {\n code = ( uint32_t ) uprv_strtoul ( s , & end , 16 ) ;\n if ( end <= s || end != fields [ 0 ] [ 1 ] ) {\n fprintf ( stderr , \"gensprep: syntax error in field 0 at %s\\n\" , fields [ 0 ] [ 0 ] ) ;\n * pErrorCode = U_PARSE_ERROR ;\n exit ( U_PARSE_ERROR ) ;\n }\n length = u_parseCodePoints ( map , mapping , sizeof ( mapping ) / 4 , pErrorCode ) ;\n storeMapping ( code , mapping , length , USPREP_MAP , pErrorCode ) ;\n }\n else {\n * pErrorCode = U_INVALID_FORMAT_ERROR ;\n }\n if ( U_FAILURE ( * pErrorCode ) ) {\n fprintf ( stderr , \"gensprep error parsing %s line %s at %s. Error: %s\\n\" , filename , fields [ 0 ] [ 0 ] , fields [ 2 ] [ 0 ] , u_errorName ( * pErrorCode ) ) ;\n exit ( * pErrorCode ) ;\n }\n }"}
{"idx": 18720, "target": 0, "func": "static int selinux_quota_on ( struct dentry * dentry ) {\n const struct cred * cred = current_cred ( ) ;\n return dentry_has_perm ( cred , dentry , FILE__QUOTAON ) ;\n }"}
{"idx": 18721, "target": 0, "func": "int curl_mvprintf ( const char * format , va_list ap_save ) {\n return dprintf_formatf ( stdout , fputc , format , ap_save ) ;\n }"}
{"idx": 18722, "target": 0, "func": "static void lexword ( struct vars * v ) {\n lexnest ( v , backw , ENDOF ( backw ) ) ;\n }"}
{"idx": 18723, "target": 0, "func": "static void ps2_mouse_sync ( DeviceState * dev ) {\n PS2MouseState * s = ( PS2MouseState * ) dev ;\n if ( s -> mouse_buttons ) {\n qemu_system_wakeup_request ( QEMU_WAKEUP_REASON_OTHER ) ;\n }\n if ( ! ( s -> mouse_status & MOUSE_STATUS_REMOTE ) ) {\n while ( s -> common . queue . count < PS2_QUEUE_SIZE - 4 ) {\n ps2_mouse_send_packet ( s ) ;\n if ( s -> mouse_dx == 0 && s -> mouse_dy == 0 && s -> mouse_dz == 0 ) break ;\n }\n }\n }"}
{"idx": 18724, "target": 0, "func": "static void s_aes_release ( stream_state * ss ) {\n stream_aes_state * const state = ( stream_aes_state * ) ss ;\n if ( state -> ctx != NULL ) gs_free_object ( state -> memory , state -> ctx , \"aes context structure\" ) ;\n }"}
{"idx": 18725, "target": 0, "func": "int evdns_resolve_ipv6 ( const char * name , int flags , evdns_callback_type callback , void * ptr ) {\n log ( EVDNS_LOG_DEBUG , \"Resolve requested for %s\" , name ) ;\n if ( flags & DNS_QUERY_NO_SEARCH ) {\n struct request * const req = request_new ( TYPE_AAAA , name , flags , callback , ptr ) ;\n if ( req == NULL ) return ( 1 ) ;\n request_submit ( req ) ;\n return ( 0 ) ;\n }\n else {\n return ( search_request_new ( TYPE_AAAA , name , flags , callback , ptr ) ) ;\n }\n }"}
{"idx": 18726, "target": 0, "func": "static int dissect_h225_GSM_UIM ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_GSM_UIM , GSM_UIM_sequence ) ;\n return offset ;\n }"}
{"idx": 18727, "target": 0, "func": "void tb_invalidate_phys_page_fast ( tb_page_addr_t start , int len ) {\n PageDesc * p ;\n int offset , b ;\n # if 0 if ( 1 ) {\n qemu_log ( \"modifying code at 0x%x size=%d EIP=%x PC=%08x\\n\" , cpu_single_env -> mem_io_vaddr , len , cpu_single_env -> eip , cpu_single_env -> eip + ( intptr_t ) cpu_single_env -> segs [ R_CS ] . base ) ;\n }\n # endif p = page_find ( start >> TARGET_PAGE_BITS ) ;\n if ( ! p ) {\n return ;\n }\n if ( p -> code_bitmap ) {\n offset = start & ~ TARGET_PAGE_MASK ;\n b = p -> code_bitmap [ offset >> 3 ] >> ( offset & 7 ) ;\n if ( b & ( ( 1 << len ) - 1 ) ) {\n goto do_invalidate ;\n }\n }\n else {\n do_invalidate : tb_invalidate_phys_page_range ( start , start + len , 1 ) ;\n }\n }"}
{"idx": 18728, "target": 1, "func": "static int evhttp_parse_response_line ( struct evhttp_request * req , char * line ) {\n char * protocol ;\n char * number ;\n char * readable ;\n protocol = strsep ( & line , \" \" ) ;\n if ( line == NULL ) return ( - 1 ) ;\n number = strsep ( & line , \" \" ) ;\n if ( line == NULL ) return ( - 1 ) ;\n readable = line ;\n if ( strcmp ( protocol , \"HTTP/1.0\" ) == 0 ) {\n req -> major = 1 ;\n req -> minor = 0 ;\n }\n else if ( strcmp ( protocol , \"HTTP/1.1\" ) == 0 ) {\n req -> major = 1 ;\n req -> minor = 1 ;\n }\n else {\n event_debug ( ( \"%s: bad protocol \\\"%s\\\"\" , __func__ , protocol ) ) ;\n return ( - 1 ) ;\n }\n req -> response_code = atoi ( number ) ;\n if ( ! evhttp_valid_response_code ( req -> response_code ) ) {\n event_debug ( ( \"%s: bad response code \\\"%s\\\"\" , __func__ , number ) ) ;\n return ( - 1 ) ;\n }\n if ( ( req -> response_code_line = strdup ( readable ) ) == NULL ) event_err ( 1 , \"%s: strdup\" , __func__ ) ;\n return ( 0 ) ;\n }"}
{"idx": 18729, "target": 0, "func": "static inline int8_t isAnonAuth ( relpTcp_t * pThis ) {\n return pThis -> ownCertFile == NULL ;\n }"}
{"idx": 18730, "target": 1, "func": "static void _UTF16Open ( UConverter * cnv , UConverterLoadArgs * pArgs , UErrorCode * pErrorCode ) {\n if ( UCNV_GET_VERSION ( cnv ) <= 2 ) {\n if ( UCNV_GET_VERSION ( cnv ) == 2 && ! pArgs -> onlyTestIsLoadable ) {\n cnv -> sharedData = ( UConverterSharedData * ) & _UTF16v2Data ;\n uprv_memcpy ( cnv -> subChars , _UTF16v2Data . staticData -> subChar , UCNV_MAX_SUBCHAR_LEN ) ;\n }\n _UTF16Reset ( cnv , UCNV_RESET_BOTH ) ;\n }\n else {\n * pErrorCode = U_ILLEGAL_ARGUMENT_ERROR ;\n }\n }"}
{"idx": 18731, "target": 0, "func": "static UConverter * U_CALLCONV _SCSUSafeClone ( const UConverter * cnv , void * stackBuffer , int32_t * pBufferSize , UErrorCode * status ) {\n struct cloneSCSUStruct * localClone ;\n int32_t bufferSizeNeeded = sizeof ( struct cloneSCSUStruct ) ;\n if ( U_FAILURE ( * status ) ) {\n return 0 ;\n }\n if ( * pBufferSize == 0 ) {\n * pBufferSize = bufferSizeNeeded ;\n return 0 ;\n }\n localClone = ( struct cloneSCSUStruct * ) stackBuffer ;\n uprv_memcpy ( & localClone -> mydata , cnv -> extraInfo , sizeof ( SCSUData ) ) ;\n localClone -> cnv . extraInfo = & localClone -> mydata ;\n localClone -> cnv . isExtraLocal = TRUE ;\n return & localClone -> cnv ;\n }"}
{"idx": 18732, "target": 0, "func": "static void xhci_wakeup_endpoint ( USBBus * bus , USBEndpoint * ep , unsigned int stream ) {\n XHCIState * xhci = container_of ( bus , XHCIState , bus ) ;\n int slotid ;\n DPRINTF ( \"%s\\n\" , __func__ ) ;\n slotid = ep -> dev -> addr ;\n if ( slotid == 0 || ! xhci -> slots [ slotid - 1 ] . enabled ) {\n DPRINTF ( \"%s: oops, no slot for dev %d\\n\" , __func__ , ep -> dev -> addr ) ;\n return ;\n }\n xhci_kick_ep ( xhci , slotid , xhci_find_epid ( ep ) , stream ) ;\n }"}
{"idx": 18733, "target": 0, "func": "static int dissect_h225_BandwidthRequest ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_BandwidthRequest , BandwidthRequest_sequence ) ;\n return offset ;\n }"}
{"idx": 18734, "target": 1, "func": "extern int name ( int , locale_t ) __THROW __exctype_l ( isalnum_l ) ;\n __exctype_l ( isalpha_l ) ;\n __exctype_l ( iscntrl_l ) ;\n __exctype_l ( isdigit_l ) ;\n __exctype_l ( islower_l ) ;\n __exctype_l ( isgraph_l ) ;\n __exctype_l ( isprint_l ) ;\n __exctype_l ( ispunct_l ) ;\n __exctype_l ( isspace_l ) ;\n __exctype_l ( isupper_l ) ;\n __exctype_l ( isxdigit_l )"}
{"idx": 18735, "target": 1, "func": "static Image * ReadGIFImage ( const ImageInfo * image_info , ExceptionInfo * exception ) {\n # define BitSet ( byte , bit ) ( ( ( byte ) & ( bit ) ) == ( bit ) ) # define LSBFirstOrder ( x , y ) ( ( ( y ) << 8 ) | ( x ) ) Image * image , * meta_image ;\n int number_extensionss = 0 ;\n MagickBooleanType status ;\n RectangleInfo page ;\n register ssize_t i ;\n register unsigned char * p ;\n size_t delay , dispose , duration , global_colors , image_count , iterations , one ;\n ssize_t count , opacity ;\n unsigned char background , c , flag , * global_colormap , header [ MaxTextExtent ] , magick [ 12 ] ;\n assert ( image_info != ( const ImageInfo * ) NULL ) ;\n assert ( image_info -> signature == MagickSignature ) ;\n if ( image_info -> debug != MagickFalse ) ( void ) LogMagickEvent ( TraceEvent , GetMagickModule ( ) , \"%s\" , image_info -> filename ) ;\n assert ( exception != ( ExceptionInfo * ) NULL ) ;\n assert ( exception -> signature == MagickSignature ) ;\n image = AcquireImage ( image_info ) ;\n status = OpenBlob ( image_info , image , ReadBinaryBlobMode , exception ) ;\n if ( status == MagickFalse ) {\n image = DestroyImageList ( image ) ;\n return ( ( Image * ) NULL ) ;\n }\n count = ReadBlob ( image , 6 , magick ) ;\n if ( ( count != 6 ) || ( ( LocaleNCompare ( ( char * ) magick , \"GIF87\" , 5 ) != 0 ) && ( LocaleNCompare ( ( char * ) magick , \"GIF89\" , 5 ) != 0 ) ) ) ThrowReaderException ( CorruptImageError , \"ImproperImageHeader\" ) ;\n page . width = ReadBlobLSBShort ( image ) ;\n page . height = ReadBlobLSBShort ( image ) ;\n flag = ( unsigned char ) ReadBlobByte ( image ) ;\n background = ( unsigned char ) ReadBlobByte ( image ) ;\n c = ( unsigned char ) ReadBlobByte ( image ) ;\n one = 1 ;\n global_colors = one << ( ( ( size_t ) flag & 0x07 ) + 1 ) ;\n global_colormap = ( unsigned char * ) AcquireQuantumMemory ( ( size_t ) MagickMax ( global_colors , 256 ) , 3UL * sizeof ( * global_colormap ) ) ;\n if ( global_colormap == ( unsigned char * ) NULL ) ThrowReaderException ( ResourceLimitError , \"MemoryAllocationFailed\" ) ;\n if ( BitSet ( ( int ) flag , 0x80 ) != 0 ) {\n count = ReadBlob ( image , ( size_t ) ( 3 * global_colors ) , global_colormap ) ;\n if ( count != ( ssize_t ) ( 3 * global_colors ) ) {\n global_colormap = ( unsigned char * ) RelinquishMagickMemory ( global_colormap ) ;\n ThrowReaderException ( CorruptImageError , \"InsufficientImageDataInFile\" ) ;\n }\n }\n delay = 0 ;\n dispose = 0 ;\n duration = 0 ;\n iterations = 1 ;\n opacity = ( - 1 ) ;\n image_count = 0 ;\n meta_image = AcquireImage ( image_info ) ;\n for ( ;\n ;\n ) {\n count = ReadBlob ( image , 1 , & c ) ;\n if ( count != 1 ) break ;\n if ( c == ( unsigned char ) ';\n' ) break ;\n if ( c == ( unsigned char ) '!' ) {\n count = ReadBlob ( image , 1 , & c ) ;\n if ( count != 1 ) {\n global_colormap = ( unsigned char * ) RelinquishMagickMemory ( global_colormap ) ;\n meta_image = DestroyImage ( meta_image ) ;\n ThrowReaderException ( CorruptImageError , \"UnableToReadExtensionBlock\" ) ;\n }\n switch ( c ) {\n case 0xf9 : {\n while ( ReadBlobBlock ( image , header ) != 0 ) ;\n dispose = ( size_t ) ( header [ 0 ] >> 2 ) ;\n delay = ( size_t ) ( ( header [ 2 ] << 8 ) | header [ 1 ] ) ;\n if ( ( ssize_t ) ( header [ 0 ] & 0x01 ) == 0x01 ) opacity = ( ssize_t ) header [ 3 ] ;\n break ;\n }\n case 0xfe : {\n char * comments ;\n size_t length ;\n comments = AcquireString ( ( char * ) NULL ) ;\n for ( length = 0 ;\n ;\n length += count ) {\n count = ReadBlobBlock ( image , header ) ;\n if ( count == 0 ) break ;\n header [ count ] = '\\0' ;\n ( void ) ConcatenateString ( & comments , ( const char * ) header ) ;\n }\n ( void ) SetImageProperty ( meta_image , \"comment\" , comments ) ;\n comments = DestroyString ( comments ) ;\n break ;\n }\n case 0xff : {\n MagickBooleanType loop ;\n loop = MagickFalse ;\n if ( ReadBlobBlock ( image , header ) != 0 ) loop = LocaleNCompare ( ( char * ) header , \"NETSCAPE2.0\" , 11 ) == 0 ? MagickTrue : MagickFalse ;\n if ( loop != MagickFalse ) {\n while ( ReadBlobBlock ( image , header ) != 0 ) iterations = ( size_t ) ( ( header [ 2 ] << 8 ) | header [ 1 ] ) ;\n break ;\n }\n else {\n char name [ MaxTextExtent ] ;\n int block_length , info_length , reserved_length ;\n MagickBooleanType i8bim , icc , iptc , magick ;\n StringInfo * profile ;\n unsigned char * info ;\n icc = LocaleNCompare ( ( char * ) header , \"ICCRGBG1012\" , 11 ) == 0 ? MagickTrue : MagickFalse ;\n magick = LocaleNCompare ( ( char * ) header , \"ImageMagick\" , 11 ) == 0 ? MagickTrue : MagickFalse ;\n i8bim = LocaleNCompare ( ( char * ) header , \"MGK8BIM0000\" , 11 ) == 0 ? MagickTrue : MagickFalse ;\n iptc = LocaleNCompare ( ( char * ) header , \"MGKIPTC0000\" , 11 ) == 0 ? MagickTrue : MagickFalse ;\n number_extensionss ++ ;\n ( void ) LogMagickEvent ( CoderEvent , GetMagickModule ( ) , \" Reading GIF application extension\" ) ;\n info = ( unsigned char * ) AcquireQuantumMemory ( 255UL , sizeof ( * info ) ) ;\n if ( info == ( unsigned char * ) NULL ) {\n meta_image = DestroyImage ( meta_image ) ;\n ThrowReaderException ( ResourceLimitError , \"MemoryAllocationFailed\" ) ;\n }\n reserved_length = 255 ;\n for ( info_length = 0 ;\n ;\n ) {\n block_length = ( int ) ReadBlobBlock ( image , & info [ info_length ] ) ;\n if ( block_length == 0 ) break ;\n info_length += block_length ;\n if ( info_length > ( reserved_length - 255 ) ) {\n reserved_length += 4096 ;\n info = ( unsigned char * ) ResizeQuantumMemory ( info , ( size_t ) reserved_length , sizeof ( * info ) ) ;\n if ( info == ( unsigned char * ) NULL ) {\n meta_image = DestroyImage ( meta_image ) ;\n ThrowReaderException ( ResourceLimitError , \"MemoryAllocationFailed\" ) ;\n }\n }\n }\n profile = BlobToStringInfo ( info , ( size_t ) info_length ) ;\n if ( profile == ( StringInfo * ) NULL ) {\n meta_image = DestroyImage ( meta_image ) ;\n ThrowReaderException ( ResourceLimitError , \"MemoryAllocationFailed\" ) ;\n }\n if ( i8bim != MagickFalse ) ( void ) CopyMagickString ( name , \"8bim\" , sizeof ( name ) ) ;\n else if ( icc != MagickFalse ) ( void ) CopyMagickString ( name , \"icc\" , sizeof ( name ) ) ;\n else if ( iptc != MagickFalse ) ( void ) CopyMagickString ( name , \"iptc\" , sizeof ( name ) ) ;\n else if ( magick != MagickFalse ) {\n ( void ) CopyMagickString ( name , \"magick\" , sizeof ( name ) ) ;\n meta_image -> gamma = StringToDouble ( ( char * ) info + 6 , ( char * * ) NULL ) ;\n }\n else ( void ) FormatLocaleString ( name , sizeof ( name ) , \"gif:%.11s\" , header ) ;\n info = ( unsigned char * ) RelinquishMagickMemory ( info ) ;\n if ( magick == MagickFalse ) ( void ) SetImageProfile ( meta_image , name , profile ) ;\n profile = DestroyStringInfo ( profile ) ;\n ( void ) LogMagickEvent ( CoderEvent , GetMagickModule ( ) , \" profile name=%s\" , name ) ;\n }\n break ;\n }\n default : {\n while ( ReadBlobBlock ( image , header ) != 0 ) ;\n break ;\n }\n }\n }\n if ( c != ( unsigned char ) ',' ) continue ;\n if ( image_count != 0 ) {\n AcquireNextImage ( image_info , image ) ;\n if ( GetNextImageInList ( image ) == ( Image * ) NULL ) {\n image = DestroyImageList ( image ) ;\n global_colormap = ( unsigned char * ) RelinquishMagickMemory ( global_colormap ) ;\n return ( ( Image * ) NULL ) ;\n }\n image = SyncNextImageInList ( image ) ;\n }\n image_count ++ ;\n meta_image -> scene = image -> scene ;\n ( void ) CloneImageProperties ( image , meta_image ) ;\n DestroyImageProperties ( meta_image ) ;\n ( void ) CloneImageProfiles ( image , meta_image ) ;\n DestroyImageProfiles ( meta_image ) ;\n image -> storage_class = PseudoClass ;\n image -> compression = LZWCompression ;\n page . x = ( ssize_t ) ReadBlobLSBShort ( image ) ;\n page . y = ( ssize_t ) ReadBlobLSBShort ( image ) ;\n image -> columns = ReadBlobLSBShort ( image ) ;\n image -> rows = ReadBlobLSBShort ( image ) ;\n image -> depth = 8 ;\n flag = ( unsigned char ) ReadBlobByte ( image ) ;\n image -> interlace = BitSet ( ( int ) flag , 0x40 ) != 0 ? GIFInterlace : NoInterlace ;\n image -> colors = BitSet ( ( int ) flag , 0x80 ) == 0 ? global_colors : one << ( ( size_t ) ( flag & 0x07 ) + 1 ) ;\n if ( opacity >= ( ssize_t ) image -> colors ) opacity = ( - 1 ) ;\n image -> page . width = page . width ;\n image -> page . height = page . height ;\n image -> page . y = page . y ;\n image -> page . x = page . x ;\n image -> delay = delay ;\n image -> iterations = iterations ;\n image -> ticks_per_second = 100 ;\n image -> dispose = ( DisposeType ) dispose ;\n image -> matte = opacity >= 0 ? MagickTrue : MagickFalse ;\n delay = 0 ;\n dispose = 0 ;\n if ( ( image -> columns == 0 ) || ( image -> rows == 0 ) ) {\n global_colormap = ( unsigned char * ) RelinquishMagickMemory ( global_colormap ) ;\n meta_image = DestroyImage ( meta_image ) ;\n ThrowReaderException ( CorruptImageError , \"NegativeOrZeroImageSize\" ) ;\n }\n if ( AcquireImageColormap ( image , image -> colors ) == MagickFalse ) {\n global_colormap = ( unsigned char * ) RelinquishMagickMemory ( global_colormap ) ;\n meta_image = DestroyImage ( meta_image ) ;\n ThrowReaderException ( ResourceLimitError , \"MemoryAllocationFailed\" ) ;\n }\n if ( BitSet ( ( int ) flag , 0x80 ) == 0 ) {\n p = global_colormap ;\n for ( i = 0 ;\n i < ( ssize_t ) image -> colors ;\n i ++ ) {\n image -> colormap [ i ] . red = ScaleCharToQuantum ( * p ++ ) ;\n image -> colormap [ i ] . green = ScaleCharToQuantum ( * p ++ ) ;\n image -> colormap [ i ] . blue = ScaleCharToQuantum ( * p ++ ) ;\n if ( i == opacity ) {\n image -> colormap [ i ] . opacity = ( Quantum ) TransparentOpacity ;\n image -> transparent_color = image -> colormap [ opacity ] ;\n }\n }\n image -> background_color = image -> colormap [ MagickMin ( ( ssize_t ) background , ( ssize_t ) image -> colors - 1 ) ] ;\n }\n else {\n unsigned char * colormap ;\n colormap = ( unsigned char * ) AcquireQuantumMemory ( image -> colors , 3 * sizeof ( * colormap ) ) ;\n if ( colormap == ( unsigned char * ) NULL ) {\n global_colormap = ( unsigned char * ) RelinquishMagickMemory ( global_colormap ) ;\n meta_image = DestroyImage ( meta_image ) ;\n ThrowReaderException ( ResourceLimitError , \"MemoryAllocationFailed\" ) ;\n }\n count = ReadBlob ( image , ( 3 * image -> colors ) * sizeof ( * colormap ) , colormap ) ;\n if ( count != ( ssize_t ) ( 3 * image -> colors ) ) {\n global_colormap = ( unsigned char * ) RelinquishMagickMemory ( global_colormap ) ;\n colormap = ( unsigned char * ) RelinquishMagickMemory ( colormap ) ;\n meta_image = DestroyImage ( meta_image ) ;\n ThrowReaderException ( CorruptImageError , \"InsufficientImageDataInFile\" ) ;\n }\n p = colormap ;\n for ( i = 0 ;\n i < ( ssize_t ) image -> colors ;\n i ++ ) {\n image -> colormap [ i ] . red = ScaleCharToQuantum ( * p ++ ) ;\n image -> colormap [ i ] . green = ScaleCharToQuantum ( * p ++ ) ;\n image -> colormap [ i ] . blue = ScaleCharToQuantum ( * p ++ ) ;\n if ( i == opacity ) image -> colormap [ i ] . opacity = ( Quantum ) TransparentOpacity ;\n }\n colormap = ( unsigned char * ) RelinquishMagickMemory ( colormap ) ;\n }\n if ( image -> gamma == 1.0 ) {\n for ( i = 0 ;\n i < ( ssize_t ) image -> colors ;\n i ++ ) if ( IsGrayPixel ( image -> colormap + i ) == MagickFalse ) break ;\n ( void ) SetImageColorspace ( image , i == ( ssize_t ) image -> colors ? GRAYColorspace : RGBColorspace ) ;\n }\n if ( ( image_info -> ping != MagickFalse ) && ( image_info -> number_scenes != 0 ) ) if ( image -> scene >= ( image_info -> scene + image_info -> number_scenes - 1 ) ) break ;\n status = SetImageExtent ( image , image -> columns , image -> rows ) ;\n if ( status == MagickFalse ) {\n InheritException ( exception , & image -> exception ) ;\n return ( DestroyImageList ( image ) ) ;\n }\n if ( image_info -> ping != MagickFalse ) status = PingGIFImage ( image ) ;\n else status = DecodeImage ( image , opacity ) ;\n if ( ( image_info -> ping == MagickFalse ) && ( status == MagickFalse ) ) {\n global_colormap = ( unsigned char * ) RelinquishMagickMemory ( global_colormap ) ;\n meta_image = DestroyImage ( meta_image ) ;\n ThrowReaderException ( CorruptImageError , \"CorruptImage\" ) ;\n }\n duration += image -> delay * image -> iterations ;\n if ( image_info -> number_scenes != 0 ) if ( image -> scene >= ( image_info -> scene + image_info -> number_scenes - 1 ) ) break ;\n opacity = ( - 1 ) ;\n status = SetImageProgress ( image , LoadImageTag , ( MagickOffsetType ) image -> scene - 1 , image -> scene ) ;\n if ( status == MagickFalse ) break ;\n }\n image -> duration = duration ;\n meta_image = DestroyImage ( meta_image ) ;\n global_colormap = ( unsigned char * ) RelinquishMagickMemory ( global_colormap ) ;\n if ( ( image -> columns == 0 ) || ( image -> rows == 0 ) ) ThrowReaderException ( CorruptImageError , \"NegativeOrZeroImageSize\" ) ;\n ( void ) CloseBlob ( image ) ;\n return ( GetFirstImageInList ( image ) ) ;\n }"}
{"idx": 18736, "target": 0, "func": "static int dissect_h245_INTEGER_0_3 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 3U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 18737, "target": 1, "func": "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_ ) {\n # line 272 \"./asn1/h225/h225.cnf\" tvbuff_t * value_tvb = NULL ;\n char codec_str [ 50 ] ;\n h225_packet_info * h225_pi ;\n codec_str [ 0 ] = '\\0' ;\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , NO_BOUND , NO_BOUND , FALSE , & value_tvb ) ;\n if ( value_tvb && tvb_reported_length ( value_tvb ) ) {\n dissect_h245_FastStart_OLC ( value_tvb , actx -> pinfo , tree , codec_str ) ;\n }\n h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n if ( h225_pi != NULL ) {\n g_snprintf ( h225_pi -> frame_label , 50 , \"%s %s\" , h225_pi -> frame_label , codec_str ) ;\n h225_pi -> is_faststart = TRUE ;\n }\n contains_faststart = TRUE ;\n return offset ;\n }"}
{"idx": 18738, "target": 0, "func": "static void i_stream_attachment_extractor_close ( struct iostream_private * stream , bool close_parent ) {\n struct attachment_istream * astream = ( struct attachment_istream * ) stream ;\n struct message_part * parts ;\n if ( astream -> parser != NULL ) {\n if ( message_parser_deinit ( & astream -> parser , & parts ) < 0 ) i_unreached ( ) ;\n }\n hash_format_deinit_free ( & astream -> set . hash_format ) ;\n if ( astream -> pool != NULL ) pool_unref ( & astream -> pool ) ;\n if ( close_parent ) i_stream_close ( astream -> istream . parent ) ;\n }"}
{"idx": 18739, "target": 0, "func": "static size_t encode_block ( char * str , char * buf , size_t buflen , const char * fromcode , const char * tocode , encoder_t encoder ) {\n if ( ! fromcode ) {\n return ( * encoder ) ( str , buf , buflen , tocode ) ;\n }\n const iconv_t cd = mutt_ch_iconv_open ( tocode , fromcode , 0 ) ;\n assert ( cd != ( iconv_t ) ( - 1 ) ) ;\n const char * ib = buf ;\n size_t ibl = buflen ;\n char tmp [ ENCWORD_LEN_MAX - ENCWORD_LEN_MIN + 1 ] ;\n char * ob = tmp ;\n size_t obl = sizeof ( tmp ) - strlen ( tocode ) ;\n const size_t n1 = iconv ( cd , ( ICONV_CONST char * * ) & ib , & ibl , & ob , & obl ) ;\n const size_t n2 = iconv ( cd , NULL , NULL , & ob , & obl ) ;\n assert ( n1 != ( size_t ) ( - 1 ) && n2 != ( size_t ) ( - 1 ) ) ;\n iconv_close ( cd ) ;\n return ( * encoder ) ( str , tmp , ob - tmp , tocode ) ;\n }"}
{"idx": 18740, "target": 0, "func": "static int dissect_h245_TerminalYouAreSeeingInSubPictureNumber ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_TerminalYouAreSeeingInSubPictureNumber , TerminalYouAreSeeingInSubPictureNumber_sequence ) ;\n return offset ;\n }"}
{"idx": 18741, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n SgiState * s = avctx -> priv_data ;\n AVFrame * p = data ;\n unsigned int dimension , rle ;\n int ret = 0 ;\n uint8_t * out_buf , * out_end ;\n bytestream2_init ( & s -> g , avpkt -> data , avpkt -> size ) ;\n if ( bytestream2_get_bytes_left ( & s -> g ) < SGI_HEADER_SIZE ) {\n av_log ( avctx , AV_LOG_ERROR , \"buf_size too small (%d)\\n\" , avpkt -> size ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( bytestream2_get_be16 ( & s -> g ) != SGI_MAGIC ) {\n av_log ( avctx , AV_LOG_ERROR , \"bad magic number\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n rle = bytestream2_get_byte ( & s -> g ) ;\n s -> bytes_per_channel = bytestream2_get_byte ( & s -> g ) ;\n dimension = bytestream2_get_be16 ( & s -> g ) ;\n s -> width = bytestream2_get_be16 ( & s -> g ) ;\n s -> height = bytestream2_get_be16 ( & s -> g ) ;\n s -> depth = bytestream2_get_be16 ( & s -> g ) ;\n if ( s -> bytes_per_channel != 1 && ( s -> bytes_per_channel != 2 || rle ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"wrong channel number\\n\" ) ;\n return - 1 ;\n }\n if ( dimension != 2 && dimension != 3 ) {\n av_log ( avctx , AV_LOG_ERROR , \"wrong dimension number\\n\" ) ;\n return - 1 ;\n }\n if ( s -> depth == SGI_GRAYSCALE ) {\n avctx -> pix_fmt = s -> bytes_per_channel == 2 ? AV_PIX_FMT_GRAY16BE : AV_PIX_FMT_GRAY8 ;\n }\n else if ( s -> depth == SGI_RGB ) {\n avctx -> pix_fmt = s -> bytes_per_channel == 2 ? AV_PIX_FMT_RGB48BE : AV_PIX_FMT_RGB24 ;\n }\n else if ( s -> depth == SGI_RGBA && s -> bytes_per_channel == 1 ) {\n avctx -> pix_fmt = AV_PIX_FMT_RGBA ;\n }\n else {\n av_log ( avctx , AV_LOG_ERROR , \"wrong picture format\\n\" ) ;\n return - 1 ;\n }\n if ( av_image_check_size ( s -> width , s -> height , 0 , avctx ) ) return - 1 ;\n avcodec_set_dimensions ( avctx , s -> width , s -> height ) ;\n if ( ff_get_buffer ( avctx , p , 0 ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed.\\n\" ) ;\n return - 1 ;\n }\n p -> pict_type = AV_PICTURE_TYPE_I ;\n p -> key_frame = 1 ;\n out_buf = p -> data [ 0 ] ;\n out_end = out_buf + p -> linesize [ 0 ] * s -> height ;\n s -> linesize = p -> linesize [ 0 ] ;\n bytestream2_seek ( & s -> g , SGI_HEADER_SIZE , SEEK_SET ) ;\n if ( rle ) {\n ret = read_rle_sgi ( out_end , s ) ;\n }\n else {\n ret = read_uncompressed_sgi ( out_buf , out_end , s ) ;\n }\n if ( ret == 0 ) {\n * got_frame = 1 ;\n return avpkt -> size ;\n }\n else {\n return ret ;\n }\n }"}
{"idx": 18742, "target": 0, "func": "static int brenext ( struct vars * v , chr pc ) {\n chr c = ( chr ) pc ;\n switch ( c ) {\n case CHR ( '*' ) : if ( LASTTYPE ( EMPTY ) || LASTTYPE ( '(' ) || LASTTYPE ( '^' ) ) RETV ( PLAIN , c ) ;\n RET ( '*' ) ;\n break ;\n case CHR ( '[' ) : if ( HAVE ( 6 ) && * ( v -> now + 0 ) == CHR ( '[' ) && * ( v -> now + 1 ) == CHR ( ':' ) && ( * ( v -> now + 2 ) == CHR ( '<' ) || * ( v -> now + 2 ) == CHR ( '>' ) ) && * ( v -> now + 3 ) == CHR ( ':' ) && * ( v -> now + 4 ) == CHR ( ']' ) && * ( v -> now + 5 ) == CHR ( ']' ) ) {\n c = * ( v -> now + 2 ) ;\n v -> now += 6 ;\n NOTE ( REG_UNONPOSIX ) ;\n RET ( ( c == CHR ( '<' ) ) ? '<' : '>' ) ;\n }\n INTOCON ( L_BRACK ) ;\n if ( NEXT1 ( '^' ) ) {\n v -> now ++ ;\n RETV ( '[' , 0 ) ;\n }\n RETV ( '[' , 1 ) ;\n break ;\n case CHR ( '.' ) : RET ( '.' ) ;\n break ;\n case CHR ( '^' ) : if ( LASTTYPE ( EMPTY ) ) RET ( '^' ) ;\n if ( LASTTYPE ( '(' ) ) {\n NOTE ( REG_UUNSPEC ) ;\n RET ( '^' ) ;\n }\n RETV ( PLAIN , c ) ;\n break ;\n case CHR ( '$' ) : if ( v -> cflags & REG_EXPANDED ) skip ( v ) ;\n if ( ATEOS ( ) ) RET ( '$' ) ;\n if ( NEXT2 ( '\\\\' , ')' ) ) {\n NOTE ( REG_UUNSPEC ) ;\n RET ( '$' ) ;\n }\n RETV ( PLAIN , c ) ;\n break ;\n case CHR ( '\\\\' ) : break ;\n default : RETV ( PLAIN , c ) ;\n break ;\n }\n assert ( c == CHR ( '\\\\' ) ) ;\n if ( ATEOS ( ) ) FAILW ( REG_EESCAPE ) ;\n c = * v -> now ++ ;\n switch ( c ) {\n case CHR ( '{\n' ) : INTOCON ( L_BBND ) ;\n NOTE ( REG_UBOUNDS ) ;\n RET ( '{\n' ) ;\n break ;\n case CHR ( '(' ) : RETV ( '(' , 1 ) ;\n break ;\n case CHR ( ')' ) : RETV ( ')' , c ) ;\n break ;\n case CHR ( '<' ) : NOTE ( REG_UNONPOSIX ) ;\n RET ( '<' ) ;\n break ;\n case CHR ( '>' ) : NOTE ( REG_UNONPOSIX ) ;\n RET ( '>' ) ;\n break ;\n case CHR ( '1' ) : case CHR ( '2' ) : case CHR ( '3' ) : case CHR ( '4' ) : case CHR ( '5' ) : case CHR ( '6' ) : case CHR ( '7' ) : case CHR ( '8' ) : case CHR ( '9' ) : NOTE ( REG_UBACKREF ) ;\n RETV ( BACKREF , ( chr ) DIGITVAL ( c ) ) ;\n break ;\n default : if ( iscalnum ( c ) ) {\n NOTE ( REG_UBSALNUM ) ;\n NOTE ( REG_UUNSPEC ) ;\n }\n RETV ( PLAIN , c ) ;\n break ;\n }\n assert ( NOTREACHED ) ;\n return 0 ;\n }"}
{"idx": 18743, "target": 1, "func": "static void model_rd_for_sb_y ( VP9_COMP * cpi , BLOCK_SIZE bsize , MACROBLOCK * x , MACROBLOCKD * xd , int * out_rate_sum , int64_t * out_dist_sum , unsigned int * var_y , unsigned int * sse_y ) {\n unsigned int sse ;\n int rate ;\n int64_t dist ;\n struct macroblock_plane * const p = & x -> plane [ 0 ] ;\n struct macroblockd_plane * const pd = & xd -> plane [ 0 ] ;\n const uint32_t dc_quant = pd -> dequant [ 0 ] ;\n const uint32_t ac_quant = pd -> dequant [ 1 ] ;\n unsigned int var = cpi -> fn_ptr [ bsize ] . vf ( p -> src . buf , p -> src . stride , pd -> dst . buf , pd -> dst . stride , & sse ) ;\n * var_y = var ;\n * sse_y = sse ;\n if ( sse < dc_quant * dc_quant >> 6 ) x -> skip_txfm [ 0 ] = 1 ;\n else if ( var < ac_quant * ac_quant >> 6 ) x -> skip_txfm [ 0 ] = 2 ;\n else x -> skip_txfm [ 0 ] = 0 ;\n if ( cpi -> common . tx_mode == TX_MODE_SELECT ) {\n if ( sse > ( var << 2 ) ) xd -> mi [ 0 ] -> mbmi . tx_size = MIN ( max_txsize_lookup [ bsize ] , tx_mode_to_biggest_tx_size [ cpi -> common . tx_mode ] ) ;\n else xd -> mi [ 0 ] -> mbmi . tx_size = TX_8X8 ;\n }\n else {\n xd -> mi [ 0 ] -> mbmi . tx_size = MIN ( max_txsize_lookup [ bsize ] , tx_mode_to_biggest_tx_size [ cpi -> common . tx_mode ] ) ;\n }\n vp9_model_rd_from_var_lapndz ( sse - var , 1 << num_pels_log2_lookup [ bsize ] , dc_quant >> 3 , & rate , & dist ) ;\n * out_rate_sum = rate >> 1 ;\n * out_dist_sum = dist << 3 ;\n vp9_model_rd_from_var_lapndz ( var , 1 << num_pels_log2_lookup [ bsize ] , ac_quant >> 3 , & rate , & dist ) ;\n * out_rate_sum += rate ;\n * out_dist_sum += dist << 4 ;\n }"}
{"idx": 18744, "target": 0, "func": "static int dissect_h245_INTEGER_23_66 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 23U , 66U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 18745, "target": 0, "func": "static void virLogResetFilters ( void ) {\n virLogFilterListFree ( virLogFilters , virLogNbFilters ) ;\n virLogFilters = NULL ;\n virLogNbFilters = 0 ;\n virLogFiltersSerial ++ ;\n }"}
{"idx": 18746, "target": 0, "func": "static void cpu_handle_guest_debug ( CPUState * cpu ) {\n gdb_set_stop_cpu ( cpu ) ;\n qemu_system_debug_request ( ) ;\n cpu -> stopped = true ;\n }"}
{"idx": 18747, "target": 0, "func": "GType hb_gobject_ ## name ## _get_type ( void ) \\ {\n static gsize type_id = 0 ;\n if ( g_once_init_enter ( & type_id ) ) {\n GType id = g_boxed_type_register_static ( g_intern_static_string ( \"hb_\" # name \"_t\" ) , ( GBoxedCopyFunc ) copy_func , ( GBoxedFreeFunc ) free_func ) ;\n g_once_init_leave ( & type_id , id ) ;\n }\n return type_id ;\n \\ }\n # define HB_DEFINE_OBJECT_TYPE ( name ) HB_DEFINE_BOXED_TYPE ( name , hb_ ## name ## _reference , hb_ ## name ## _destroy ) ;\n # define HB_DEFINE_VALUE_TYPE ( name ) static hb_ ## name ## _t * _hb_ ## name ## _reference ( const hb_ ## name ## _t * l ) {\n hb_ ## name ## _t * c = ( hb_ ## name ## _t * ) calloc ( 1 , sizeof ( hb_ ## name ## _t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * l ;\n return c ;\n }\n static void _hb_ ## name ## _destroy ( hb_ ## name ## _t * l ) {\n free ( l ) ;\n }\n HB_DEFINE_BOXED_TYPE ( name , _hb_ ## name ## _reference , _hb_ ## name ## _destroy ) ;\n HB_DEFINE_OBJECT_TYPE ( buffer ) HB_DEFINE_OBJECT_TYPE ( blob ) HB_DEFINE_OBJECT_TYPE ( face ) HB_DEFINE_OBJECT_TYPE ( font ) HB_DEFINE_OBJECT_TYPE ( font_funcs )"}
{"idx": 18748, "target": 0, "func": "gcry_sexp_t gcry_sexp_prepend ( const gcry_sexp_t a , const gcry_sexp_t n ) {\n ( void ) a ;\n ( void ) n ;\n BUG ( ) ;\n return NULL ;\n }"}
{"idx": 18749, "target": 0, "func": "static int synth_frame ( AVCodecContext * ctx , GetBitContext * gb , int frame_idx , float * samples , const double * lsps , const double * prev_lsps , float * excitation , float * synth ) {\n WMAVoiceContext * s = ctx -> priv_data ;\n int n , n_blocks_x2 , log_n_blocks_x2 , cur_pitch_val ;\n int pitch [ MAX_BLOCKS ] , last_block_pitch ;\n int bd_idx = s -> vbm_tree [ get_vlc2 ( gb , frame_type_vlc . table , 6 , 3 ) ] , block_nsamples ;\n if ( bd_idx < 0 ) {\n av_log ( ctx , AV_LOG_ERROR , \"Invalid frame type VLC code, skipping\\n\" ) ;\n return - 1 ;\n }\n block_nsamples = MAX_FRAMESIZE / frame_descs [ bd_idx ] . n_blocks ;\n if ( frame_descs [ bd_idx ] . acb_type == ACB_TYPE_ASYMMETRIC ) {\n n_blocks_x2 = frame_descs [ bd_idx ] . n_blocks << 1 ;\n log_n_blocks_x2 = frame_descs [ bd_idx ] . log_n_blocks + 1 ;\n cur_pitch_val = s -> min_pitch_val + get_bits ( gb , s -> pitch_nbits ) ;\n cur_pitch_val = FFMIN ( cur_pitch_val , s -> max_pitch_val - 1 ) ;\n if ( s -> last_acb_type == ACB_TYPE_NONE || 20 * abs ( cur_pitch_val - s -> last_pitch_val ) > ( cur_pitch_val + s -> last_pitch_val ) ) s -> last_pitch_val = cur_pitch_val ;\n for ( n = 0 ;\n n < frame_descs [ bd_idx ] . n_blocks ;\n n ++ ) {\n int fac = n * 2 + 1 ;\n pitch [ n ] = ( MUL16 ( fac , cur_pitch_val ) + MUL16 ( ( n_blocks_x2 - fac ) , s -> last_pitch_val ) + frame_descs [ bd_idx ] . n_blocks ) >> log_n_blocks_x2 ;\n }\n s -> pitch_diff_sh16 = ( ( cur_pitch_val - s -> last_pitch_val ) << 16 ) / MAX_FRAMESIZE ;\n }\n switch ( frame_descs [ bd_idx ] . fcb_type ) {\n case FCB_TYPE_SILENCE : s -> silence_gain = wmavoice_gain_silence [ get_bits ( gb , 8 ) ] ;\n break ;\n case FCB_TYPE_AW_PULSES : aw_parse_coords ( s , gb , pitch ) ;\n break ;\n }\n for ( n = 0 ;\n n < frame_descs [ bd_idx ] . n_blocks ;\n n ++ ) {\n int bl_pitch_sh2 ;\n switch ( frame_descs [ bd_idx ] . acb_type ) {\n case ACB_TYPE_HAMMING : {\n int block_pitch , t1 = ( s -> block_conv_table [ 1 ] - s -> block_conv_table [ 0 ] ) << 2 , t2 = ( s -> block_conv_table [ 2 ] - s -> block_conv_table [ 1 ] ) << 1 , t3 = s -> block_conv_table [ 3 ] - s -> block_conv_table [ 2 ] + 1 ;\n if ( n == 0 ) {\n block_pitch = get_bits ( gb , s -> block_pitch_nbits ) ;\n }\n else block_pitch = last_block_pitch - s -> block_delta_pitch_hrange + get_bits ( gb , s -> block_delta_pitch_nbits ) ;\n last_block_pitch = av_clip ( block_pitch , s -> block_delta_pitch_hrange , s -> block_pitch_range - s -> block_delta_pitch_hrange ) ;\n if ( block_pitch < t1 ) {\n bl_pitch_sh2 = ( s -> block_conv_table [ 0 ] << 2 ) + block_pitch ;\n }\n else {\n block_pitch -= t1 ;\n if ( block_pitch < t2 ) {\n bl_pitch_sh2 = ( s -> block_conv_table [ 1 ] << 2 ) + ( block_pitch << 1 ) ;\n }\n else {\n block_pitch -= t2 ;\n if ( block_pitch < t3 ) {\n bl_pitch_sh2 = ( s -> block_conv_table [ 2 ] + block_pitch ) << 2 ;\n }\n else bl_pitch_sh2 = s -> block_conv_table [ 3 ] << 2 ;\n }\n }\n pitch [ n ] = bl_pitch_sh2 >> 2 ;\n break ;\n }\n case ACB_TYPE_ASYMMETRIC : {\n bl_pitch_sh2 = pitch [ n ] << 2 ;\n break ;\n }\n default : bl_pitch_sh2 = 0 ;\n break ;\n }\n synth_block ( s , gb , n , block_nsamples , bl_pitch_sh2 , lsps , prev_lsps , & frame_descs [ bd_idx ] , & excitation [ n * block_nsamples ] , & synth [ n * block_nsamples ] ) ;\n }\n if ( s -> do_apf ) {\n double i_lsps [ MAX_LSPS ] ;\n float lpcs [ MAX_LSPS ] ;\n for ( n = 0 ;\n n < s -> lsps ;\n n ++ ) i_lsps [ n ] = cos ( 0.5 * ( prev_lsps [ n ] + lsps [ n ] ) ) ;\n ff_acelp_lspd2lpc ( i_lsps , lpcs , s -> lsps >> 1 ) ;\n postfilter ( s , synth , samples , 80 , lpcs , & s -> zero_exc_pf [ s -> history_nsamples + MAX_FRAMESIZE * frame_idx ] , frame_descs [ bd_idx ] . fcb_type , pitch [ 0 ] ) ;\n for ( n = 0 ;\n n < s -> lsps ;\n n ++ ) i_lsps [ n ] = cos ( lsps [ n ] ) ;\n ff_acelp_lspd2lpc ( i_lsps , lpcs , s -> lsps >> 1 ) ;\n postfilter ( s , & synth [ 80 ] , & samples [ 80 ] , 80 , lpcs , & s -> zero_exc_pf [ s -> history_nsamples + MAX_FRAMESIZE * frame_idx + 80 ] , frame_descs [ bd_idx ] . fcb_type , pitch [ 0 ] ) ;\n }\n else memcpy ( samples , synth , 160 * sizeof ( synth [ 0 ] ) ) ;\n s -> frame_cntr ++ ;\n if ( s -> frame_cntr >= 0xFFFF ) s -> frame_cntr -= 0xFFFF ;\n s -> last_acb_type = frame_descs [ bd_idx ] . acb_type ;\n switch ( frame_descs [ bd_idx ] . acb_type ) {\n case ACB_TYPE_NONE : s -> last_pitch_val = 0 ;\n break ;\n case ACB_TYPE_ASYMMETRIC : s -> last_pitch_val = cur_pitch_val ;\n break ;\n case ACB_TYPE_HAMMING : s -> last_pitch_val = pitch [ frame_descs [ bd_idx ] . n_blocks - 1 ] ;\n break ;\n }\n return 0 ;\n }"}
{"idx": 18750, "target": 0, "func": "void rfbReleaseClientIterator ( rfbClientIteratorPtr iterator ) {\n IF_PTHREADS ( if ( iterator -> next ) rfbDecrClientRef ( iterator -> next ) ) ;\n free ( iterator ) ;\n }"}
{"idx": 18751, "target": 0, "func": "static int dissect_diameter_3gpp2_exp_res ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , void * data ) {\n proto_item * pi ;\n diam_sub_dis_t * diam_sub_dis ;\n if ( data == NULL ) return 0 ;\n diam_sub_dis = ( diam_sub_dis_t * ) data ;\n if ( tree ) {\n pi = proto_tree_add_item ( tree , hf_diameter_3gpp2_exp_res , tvb , 0 , 4 , ENC_BIG_ENDIAN ) ;\n diam_sub_dis -> avp_str = ( char * ) wmem_alloc ( wmem_packet_scope ( ) , ITEM_LABEL_LENGTH + 1 ) ;\n proto_item_fill_label ( PITEM_FINFO ( pi ) , diam_sub_dis -> avp_str ) ;\n diam_sub_dis -> avp_str = strstr ( diam_sub_dis -> avp_str , \": \" ) + 2 ;\n }\n return 4 ;\n }"}
{"idx": 18752, "target": 0, "func": "TEST_F ( ShortcutsBackendTest , EntitySuggestionTest ) {\n SetSearchProvider ( ) ;\n AutocompleteMatch match ;\n match . fill_into_edit = base : : UTF8ToUTF16 ( \"franklin d roosevelt\" ) ;\n match . type = AutocompleteMatchType : : SEARCH_SUGGEST_ENTITY ;\n match . contents = base : : UTF8ToUTF16 ( \"roosevelt\" ) ;\n match . contents_class = AutocompleteMatch : : ClassificationsFromString ( \"0,0,5,2\" ) ;\n match . description = base : : UTF8ToUTF16 ( \"Franklin D. Roosevelt\" ) ;\n match . description_class = AutocompleteMatch : : ClassificationsFromString ( \"0,4\" ) ;\n match . destination_url = GURL ( \"http://www.foo.com/search?bar=franklin+d+roosevelt&gs_ssp=1234\" ) ;\n match . keyword = base : : UTF8ToUTF16 ( \"foo\" ) ;\n match . search_terms_args . reset ( new TemplateURLRef : : SearchTermsArgs ( match . fill_into_edit ) ) ;\n SearchTermsData search_terms_data ;\n ShortcutsDatabase : : Shortcut : : MatchCore match_core = ShortcutsBackend : : MatchToMatchCore ( match , GetTemplateURLService ( ) , & search_terms_data ) ;\n EXPECT_EQ ( \"http://foo.com/search?bar=franklin+d+roosevelt\" , match_core . destination_url . spec ( ) ) ;\n EXPECT_EQ ( match . fill_into_edit , match_core . contents ) ;\n EXPECT_EQ ( \"0,0\" , match_core . contents_class ) ;\n EXPECT_EQ ( base : : string16 ( ) , match_core . description ) ;\n EXPECT_TRUE ( match_core . description_class . empty ( ) ) ;\n }"}
{"idx": 18753, "target": 0, "func": "static void dtap_gcc_connect ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_GCC_CALL_REF , NULL ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , curr_offset << 3 , 4 , ENC_NA ) ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_GCC_ORIG_IND , NULL ) ;\n }"}
{"idx": 18754, "target": 0, "func": "static int usb_xhci_post_load ( void * opaque , int version_id ) {\n XHCIState * xhci = opaque ;\n PCIDevice * pci_dev = PCI_DEVICE ( xhci ) ;\n XHCISlot * slot ;\n XHCIEPContext * epctx ;\n dma_addr_t dcbaap , pctx ;\n uint32_t slot_ctx [ 4 ] ;\n uint32_t ep_ctx [ 5 ] ;\n int slotid , epid , state , intr ;\n dcbaap = xhci_addr64 ( xhci -> dcbaap_low , xhci -> dcbaap_high ) ;\n for ( slotid = 1 ;\n slotid <= xhci -> numslots ;\n slotid ++ ) {\n slot = & xhci -> slots [ slotid - 1 ] ;\n if ( ! slot -> addressed ) {\n continue ;\n }\n slot -> ctx = xhci_mask64 ( ldq_le_pci_dma ( pci_dev , dcbaap + 8 * slotid ) ) ;\n xhci_dma_read_u32s ( xhci , slot -> ctx , slot_ctx , sizeof ( slot_ctx ) ) ;\n slot -> uport = xhci_lookup_uport ( xhci , slot_ctx ) ;\n if ( ! slot -> uport ) {\n slot -> enabled = 0 ;\n slot -> addressed = 0 ;\n continue ;\n }\n assert ( slot -> uport && slot -> uport -> dev ) ;\n for ( epid = 1 ;\n epid <= 31 ;\n epid ++ ) {\n pctx = slot -> ctx + 32 * epid ;\n xhci_dma_read_u32s ( xhci , pctx , ep_ctx , sizeof ( ep_ctx ) ) ;\n state = ep_ctx [ 0 ] & EP_STATE_MASK ;\n if ( state == EP_DISABLED ) {\n continue ;\n }\n epctx = xhci_alloc_epctx ( xhci , slotid , epid ) ;\n slot -> eps [ epid - 1 ] = epctx ;\n xhci_init_epctx ( epctx , pctx , ep_ctx ) ;\n epctx -> state = state ;\n if ( state == EP_RUNNING ) {\n timer_mod ( epctx -> kick_timer , qemu_clock_get_ns ( QEMU_CLOCK_VIRTUAL ) ) ;\n }\n }\n }\n for ( intr = 0 ;\n intr < xhci -> numintrs ;\n intr ++ ) {\n if ( xhci -> intr [ intr ] . msix_used ) {\n msix_vector_use ( pci_dev , intr ) ;\n }\n else {\n msix_vector_unuse ( pci_dev , intr ) ;\n }\n }\n return 0 ;\n }"}
{"idx": 18755, "target": 0, "func": "static void outputarr ( FILE * fp , char * name , int narr , l_fp * lfp ) {\n register char * bp ;\n register char * cp ;\n register int i ;\n register int len ;\n char buf [ 256 ] ;\n bp = buf ;\n for ( i = ( int ) strlen ( name ) ;\n i < 11 ;\n i ++ ) * bp ++ = ' ' ;\n for ( i = narr ;\n i > 0 ;\n i -- ) {\n if ( i != narr ) * bp ++ = ' ' ;\n cp = lfptoms ( lfp , 2 ) ;\n len = strlen ( cp ) ;\n if ( len > 7 ) {\n cp [ 7 ] = '\\0' ;\n len = 7 ;\n }\n while ( len < 7 ) {\n * bp ++ = ' ' ;\n len ++ ;\n }\n while ( * cp != '\\0' ) * bp ++ = * cp ++ ;\n lfp ++ ;\n }\n * bp = '\\0' ;\n output ( fp , name , buf ) ;\n }"}
{"idx": 18756, "target": 0, "func": "int i2d_PKCS8PrivateKeyInfo_bio ( BIO * bp , EVP_PKEY * key ) {\n PKCS8_PRIV_KEY_INFO * p8inf ;\n int ret ;\n p8inf = EVP_PKEY2PKCS8 ( key ) ;\n if ( ! p8inf ) return 0 ;\n ret = i2d_PKCS8_PRIV_KEY_INFO_bio ( bp , p8inf ) ;\n PKCS8_PRIV_KEY_INFO_free ( p8inf ) ;\n return ret ;\n }"}
{"idx": 18757, "target": 1, "func": "int jbig2_end_of_stripe ( Jbig2Ctx * ctx , Jbig2Segment * segment , const uint8_t * segment_data ) {\n Jbig2Page page = ctx -> pages [ ctx -> current_page ] ;\n int end_row ;\n end_row = jbig2_get_int32 ( segment_data ) ;\n if ( end_row < page . end_row ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"end of stripe segment with non-positive end row advance\" \" (new end row %d vs current end row %d)\" , end_row , page . end_row ) ;\n }\n else {\n jbig2_error ( ctx , JBIG2_SEVERITY_INFO , segment -> number , \"end of stripe: advancing end row to %d\" , end_row ) ;\n }\n page . end_row = end_row ;\n return 0 ;\n }"}
{"idx": 18758, "target": 0, "func": "static const char * cmd_request_body_inmemory_limit ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n long int limit ;\n if ( dcfg == NULL ) return NULL ;\n limit = strtol ( p1 , NULL , 10 ) ;\n if ( ( limit == LONG_MAX ) || ( limit == LONG_MIN ) || ( limit <= 0 ) ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid value for SecRequestBodyInMemoryLimit: %s\" , p1 ) ;\n }\n dcfg -> reqbody_inmemory_limit = limit ;\n return NULL ;\n }"}
{"idx": 18759, "target": 0, "func": "void input_DecoderChangeDelay ( decoder_t * p_dec , mtime_t i_delay ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n vlc_mutex_lock ( & p_owner -> lock ) ;\n p_owner -> i_ts_delay = i_delay ;\n vlc_mutex_unlock ( & p_owner -> lock ) ;\n }"}
{"idx": 18760, "target": 0, "func": "static bool e1000e_receive_filter ( E1000ECore * core , const uint8_t * buf , int size ) {\n uint32_t rctl = core -> mac [ RCTL ] ;\n if ( e1000x_is_vlan_packet ( buf , core -> vet ) && e1000x_vlan_rx_filter_enabled ( core -> mac ) ) {\n uint16_t vid = lduw_be_p ( buf + 14 ) ;\n uint32_t vfta = ldl_le_p ( ( uint32_t * ) ( core -> mac + VFTA ) + ( ( vid >> 5 ) & 0x7f ) ) ;\n if ( ( vfta & ( 1 << ( vid & 0x1f ) ) ) == 0 ) {\n trace_e1000e_rx_flt_vlan_mismatch ( vid ) ;\n return false ;\n }\n else {\n trace_e1000e_rx_flt_vlan_match ( vid ) ;\n }\n }\n switch ( net_rx_pkt_get_packet_type ( core -> rx_pkt ) ) {\n case ETH_PKT_UCAST : if ( rctl & E1000_RCTL_UPE ) {\n return true ;\n }\n break ;\n case ETH_PKT_BCAST : if ( rctl & E1000_RCTL_BAM ) {\n return true ;\n }\n break ;\n case ETH_PKT_MCAST : if ( rctl & E1000_RCTL_MPE ) {\n return true ;\n }\n break ;\n default : g_assert_not_reached ( ) ;\n }\n return e1000x_rx_group_filter ( core -> mac , buf ) ;\n }"}
{"idx": 18761, "target": 1, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING )"}
{"idx": 18762, "target": 0, "func": "static void join_print_po ( struct packet_object * po ) {\n int ret ;\n if ( ! data_window ) return ;\n if ( GBL_OPTIONS -> regex && regexec ( GBL_OPTIONS -> regex , po -> DATA . disp_data , 0 , NULL , 0 ) != 0 ) {\n return ;\n }\n SAFE_REALLOC ( dispbuf , hex_len ( po -> DATA . disp_len ) * sizeof ( u_char ) + 1 ) ;\n ret = GBL_FORMAT ( po -> DATA . disp_data , po -> DATA . disp_len , dispbuf ) ;\n dispbuf [ ret ] = 0 ;\n if ( ! ip_addr_cmp ( & po -> L3 . src , & curr_conn -> L3_addr1 ) ) gtkui_data_print ( 3 , dispbuf , 1 ) ;\n else gtkui_data_print ( 3 , dispbuf , 2 ) ;\n }"}
{"idx": 18763, "target": 0, "func": "int kvm_arch_msi_data_to_gsi ( uint32_t data ) {\n abort ( ) ;\n }"}
{"idx": 18764, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n AnsiContext * s = avctx -> priv_data ;\n uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n const uint8_t * buf_end = buf + buf_size ;\n int ret , i , count ;\n ret = ff_reget_buffer ( avctx , s -> frame ) ;\n if ( ret < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( ! avctx -> frame_number ) {\n memset ( s -> frame -> data [ 0 ] , 0 , avctx -> height * FFABS ( s -> frame -> linesize [ 0 ] ) ) ;\n memset ( s -> frame -> data [ 1 ] , 0 , AVPALETTE_SIZE ) ;\n }\n s -> frame -> pict_type = AV_PICTURE_TYPE_I ;\n s -> frame -> palette_has_changed = 1 ;\n memcpy ( s -> frame -> data [ 1 ] , ff_cga_palette , 16 * 4 ) ;\n while ( buf < buf_end ) {\n switch ( s -> state ) {\n case STATE_NORMAL : switch ( buf [ 0 ] ) {\n case 0x00 : case 0x07 : case 0x1A : break ;\n case 0x08 : s -> x = FFMAX ( s -> x - 1 , 0 ) ;\n break ;\n case 0x09 : i = s -> x / FONT_WIDTH ;\n count = ( ( i + 8 ) & ~ 7 ) - i ;\n for ( i = 0 ;\n i < count ;\n i ++ ) draw_char ( avctx , ' ' ) ;\n break ;\n case 0x0A : hscroll ( avctx ) ;\n case 0x0D : s -> x = 0 ;\n break ;\n case 0x0C : erase_screen ( avctx ) ;\n break ;\n case 0x1B : s -> state = STATE_ESCAPE ;\n break ;\n default : draw_char ( avctx , buf [ 0 ] ) ;\n }\n break ;\n case STATE_ESCAPE : if ( buf [ 0 ] == '[' ) {\n s -> state = STATE_CODE ;\n s -> nb_args = 0 ;\n s -> args [ 0 ] = 0 ;\n }\n else {\n s -> state = STATE_NORMAL ;\n draw_char ( avctx , 0x1B ) ;\n continue ;\n }\n break ;\n case STATE_CODE : switch ( buf [ 0 ] ) {\n case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : if ( s -> nb_args < MAX_NB_ARGS ) s -> args [ s -> nb_args ] = s -> args [ s -> nb_args ] * 10 + buf [ 0 ] - '0' ;\n break ;\n case ';\n' : s -> nb_args ++ ;\n if ( s -> nb_args < MAX_NB_ARGS ) s -> args [ s -> nb_args ] = 0 ;\n break ;\n case 'M' : s -> state = STATE_MUSIC_PREAMBLE ;\n break ;\n case '=' : case '?' : break ;\n default : if ( s -> nb_args > MAX_NB_ARGS ) av_log ( avctx , AV_LOG_WARNING , \"args overflow (%i)\\n\" , s -> nb_args ) ;\n if ( s -> nb_args < MAX_NB_ARGS && s -> args [ s -> nb_args ] ) s -> nb_args ++ ;\n if ( ( ret = execute_code ( avctx , buf [ 0 ] ) ) < 0 ) return ret ;\n s -> state = STATE_NORMAL ;\n }\n break ;\n case STATE_MUSIC_PREAMBLE : if ( buf [ 0 ] == 0x0E || buf [ 0 ] == 0x1B ) s -> state = STATE_NORMAL ;\n break ;\n }\n buf ++ ;\n }\n * got_frame = 1 ;\n if ( ( ret = av_frame_ref ( data , s -> frame ) ) < 0 ) return ret ;\n return buf_size ;\n }"}
{"idx": 18765, "target": 0, "func": "static __inline__ __u32 __fswahw32 ( __u32 val ) {\n # ifdef __arch_swahw32 return __arch_swahw32 ( val ) ;\n # else return ___constant_swahw32 ( val ) ;\n # endif }"}
{"idx": 18766, "target": 0, "func": "void skinny_calls_init_tap ( void ) {\n GString * error_string ;\n if ( have_skinny_tap_listener == FALSE ) {\n error_string = register_tap_listener ( \"skinny\" , & ( the_tapinfo_struct . skinny_dummy ) , NULL , TL_REQUIRES_PROTO_TREE , voip_calls_dlg_reset , skinny_calls_packet , voip_calls_dlg_draw ) ;\n if ( error_string != NULL ) {\n simple_dialog ( ESD_TYPE_ERROR , ESD_BTN_OK , \"%s\" , error_string -> str ) ;\n g_string_free ( error_string , TRUE ) ;\n exit ( 1 ) ;\n }\n have_skinny_tap_listener = TRUE ;\n }\n }"}
{"idx": 18767, "target": 1, "func": "static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char )"}
{"idx": 18768, "target": 0, "func": "static int dissect_t38_Data_Field ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_t38_Data_Field , Data_Field_sequence_of ) ;\n return offset ;\n }"}
{"idx": 18769, "target": 0, "func": "int kvm_arch_remove_hw_breakpoint ( target_ulong addr , target_ulong len , int type ) {\n int n ;\n n = find_hw_breakpoint ( addr , ( type == GDB_BREAKPOINT_HW ) ? 1 : len , type ) ;\n if ( n < 0 ) {\n return - ENOENT ;\n }\n nb_hw_breakpoint -- ;\n hw_breakpoint [ n ] = hw_breakpoint [ nb_hw_breakpoint ] ;\n return 0 ;\n }"}
{"idx": 18770, "target": 0, "func": "void initkerberos ( void ) # endif {\n PyObject * m , * d ;\n # if PY_MAJOR_VERSION >= 3 m = PyModule_Create ( & moduledef ) ;\n # else m = Py_InitModule ( \"kerberos\" , KerberosMethods ) ;\n # endif d = PyModule_GetDict ( m ) ;\n if ( ! ( KrbException_class = PyErr_NewException ( \"kerberos.KrbError\" , NULL , NULL ) ) ) goto error ;\n PyDict_SetItemString ( d , \"KrbError\" , KrbException_class ) ;\n Py_INCREF ( KrbException_class ) ;\n if ( ! ( BasicAuthException_class = PyErr_NewException ( \"kerberos.BasicAuthError\" , KrbException_class , NULL ) ) ) goto error ;\n Py_INCREF ( BasicAuthException_class ) ;\n PyDict_SetItemString ( d , \"BasicAuthError\" , BasicAuthException_class ) ;\n if ( ! ( PwdChangeException_class = PyErr_NewException ( \"kerberos.PwdChangeError\" , KrbException_class , NULL ) ) ) goto error ;\n Py_INCREF ( PwdChangeException_class ) ;\n PyDict_SetItemString ( d , \"PwdChangeError\" , PwdChangeException_class ) ;\n if ( ! ( GssException_class = PyErr_NewException ( \"kerberos.GSSError\" , KrbException_class , NULL ) ) ) goto error ;\n Py_INCREF ( GssException_class ) ;\n PyDict_SetItemString ( d , \"GSSError\" , GssException_class ) ;\n PyDict_SetItemString ( d , \"AUTH_GSS_COMPLETE\" , PyInt_FromLong ( AUTH_GSS_COMPLETE ) ) ;\n PyDict_SetItemString ( d , \"AUTH_GSS_CONTINUE\" , PyInt_FromLong ( AUTH_GSS_CONTINUE ) ) ;\n PyDict_SetItemString ( d , \"GSS_C_DELEG_FLAG\" , PyInt_FromLong ( GSS_C_DELEG_FLAG ) ) ;\n PyDict_SetItemString ( d , \"GSS_C_MUTUAL_FLAG\" , PyInt_FromLong ( GSS_C_MUTUAL_FLAG ) ) ;\n PyDict_SetItemString ( d , \"GSS_C_REPLAY_FLAG\" , PyInt_FromLong ( GSS_C_REPLAY_FLAG ) ) ;\n PyDict_SetItemString ( d , \"GSS_C_SEQUENCE_FLAG\" , PyInt_FromLong ( GSS_C_SEQUENCE_FLAG ) ) ;\n PyDict_SetItemString ( d , \"GSS_C_CONF_FLAG\" , PyInt_FromLong ( GSS_C_CONF_FLAG ) ) ;\n PyDict_SetItemString ( d , \"GSS_C_INTEG_FLAG\" , PyInt_FromLong ( GSS_C_INTEG_FLAG ) ) ;\n PyDict_SetItemString ( d , \"GSS_C_ANON_FLAG\" , PyInt_FromLong ( GSS_C_ANON_FLAG ) ) ;\n PyDict_SetItemString ( d , \"GSS_C_PROT_READY_FLAG\" , PyInt_FromLong ( GSS_C_PROT_READY_FLAG ) ) ;\n PyDict_SetItemString ( d , \"GSS_C_TRANS_FLAG\" , PyInt_FromLong ( GSS_C_TRANS_FLAG ) ) ;\n error : if ( PyErr_Occurred ( ) ) PyErr_SetString ( PyExc_ImportError , \"kerberos: init failed\" ) ;\n # if PY_MAJOR_VERSION >= 3 return m ;\n # endif }"}
{"idx": 18771, "target": 0, "func": "static void gsm_a_stat_free_table_item ( new_stat_tap_table * table _U_ , guint row _U_ , guint column , stat_tap_table_item_type * field_data ) {\n if ( column != MSG_NAME_COLUMN ) return ;\n g_free ( ( char * ) field_data -> value . string_value ) ;\n }"}
{"idx": 18772, "target": 0, "func": "static void parse_previous_duplicate_name ( const char * name , char * * name_base , const char * * suffix , int * count ) {\n const char * tag ;\n g_assert ( name [ 0 ] != '\\0' ) ;\n * suffix = eel_filename_get_extension_offset ( name ) ;\n if ( * suffix == NULL || ( * suffix ) [ 1 ] == '\\0' ) {\n * suffix = \"\" ;\n }\n tag = strstr ( name , COPY_DUPLICATE_TAG ) ;\n if ( tag != NULL ) {\n if ( tag > * suffix ) {\n * suffix = \"\" ;\n }\n * name_base = extract_string_until ( name , tag ) ;\n * count = 1 ;\n return ;\n }\n tag = strstr ( name , ANOTHER_COPY_DUPLICATE_TAG ) ;\n if ( tag != NULL ) {\n if ( tag > * suffix ) {\n * suffix = \"\" ;\n }\n * name_base = extract_string_until ( name , tag ) ;\n * count = 2 ;\n return ;\n }\n tag = strstr ( name , X11TH_COPY_DUPLICATE_TAG ) ;\n if ( tag == NULL ) {\n tag = strstr ( name , X12TH_COPY_DUPLICATE_TAG ) ;\n }\n if ( tag == NULL ) {\n tag = strstr ( name , X13TH_COPY_DUPLICATE_TAG ) ;\n }\n if ( tag == NULL ) {\n tag = strstr ( name , ST_COPY_DUPLICATE_TAG ) ;\n }\n if ( tag == NULL ) {\n tag = strstr ( name , ND_COPY_DUPLICATE_TAG ) ;\n }\n if ( tag == NULL ) {\n tag = strstr ( name , RD_COPY_DUPLICATE_TAG ) ;\n }\n if ( tag == NULL ) {\n tag = strstr ( name , TH_COPY_DUPLICATE_TAG ) ;\n }\n if ( tag != NULL ) {\n tag = strstr ( name , _ ( \" (\" ) ) ;\n if ( tag != NULL ) {\n if ( tag > * suffix ) {\n * suffix = \"\" ;\n }\n * name_base = extract_string_until ( name , tag ) ;\n if ( sscanf ( tag , _ ( \" (%'d\" ) , count ) == 1 ) {\n if ( * count < 1 || * count > 1000000 ) {\n * count = 0 ;\n }\n return ;\n }\n * count = 0 ;\n return ;\n }\n }\n * count = 0 ;\n if ( * * suffix != '\\0' ) {\n * name_base = extract_string_until ( name , * suffix ) ;\n }\n else {\n * name_base = g_strdup ( name ) ;\n }\n }"}
{"idx": 18773, "target": 1, "func": "static vpx_codec_err_t ctrl_set_noise_sensitivity ( vpx_codec_alg_priv_t * ctx , va_list args ) {\n struct vp9_extracfg extra_cfg = ctx -> extra_cfg ;\n extra_cfg . noise_sensitivity = CAST ( VP8E_SET_NOISE_SENSITIVITY , args ) ;\n return update_extra_cfg ( ctx , & extra_cfg ) ;\n }"}
{"idx": 18774, "target": 0, "func": "void rfbClientSendString ( rfbClientPtr cl , const char * reason ) {\n char * buf ;\n int len = strlen ( reason ) ;\n rfbLog ( \"rfbClientSendString(\\\"%s\\\")\\n\" , reason ) ;\n buf = ( char * ) malloc ( 4 + len ) ;\n ( ( uint32_t * ) buf ) [ 0 ] = Swap32IfLE ( len ) ;\n memcpy ( buf + 4 , reason , len ) ;\n if ( rfbWriteExact ( cl , buf , 4 + len ) < 0 ) rfbLogPerror ( \"rfbClientSendString: write\" ) ;\n free ( buf ) ;\n rfbCloseClient ( cl ) ;\n }"}
{"idx": 18775, "target": 1, "func": "int udpv6_queue_rcv_skb ( struct sock * sk , struct sk_buff * skb ) {\n struct udp_sock * up = udp_sk ( sk ) ;\n int rc ;\n int is_udplite = IS_UDPLITE ( sk ) ;\n if ( ! xfrm6_policy_check ( sk , XFRM_POLICY_IN , skb ) ) goto drop ;\n if ( ( is_udplite & UDPLITE_RECV_CC ) && UDP_SKB_CB ( skb ) -> partial_cov ) {\n if ( up -> pcrlen == 0 ) {\n LIMIT_NETDEBUG ( KERN_WARNING \"UDPLITE6: partial coverage\" \" %d while full coverage %d requested\\n\" , UDP_SKB_CB ( skb ) -> cscov , skb -> len ) ;\n goto drop ;\n }\n if ( UDP_SKB_CB ( skb ) -> cscov < up -> pcrlen ) {\n LIMIT_NETDEBUG ( KERN_WARNING \"UDPLITE6: coverage %d \" \"too small, need min %d\\n\" , UDP_SKB_CB ( skb ) -> cscov , up -> pcrlen ) ;\n goto drop ;\n }\n }\n if ( sk -> sk_filter ) {\n if ( udp_lib_checksum_complete ( skb ) ) goto drop ;\n }\n if ( ( rc = sock_queue_rcv_skb ( sk , skb ) ) < 0 ) {\n if ( rc == - ENOMEM ) UDP6_INC_STATS_BH ( sock_net ( sk ) , UDP_MIB_RCVBUFERRORS , is_udplite ) ;\n goto drop_no_sk_drops_inc ;\n }\n return 0 ;\n drop : atomic_inc ( & sk -> sk_drops ) ;\n drop_no_sk_drops_inc : UDP6_INC_STATS_BH ( sock_net ( sk ) , UDP_MIB_INERRORS , is_udplite ) ;\n kfree_skb ( skb ) ;\n return - 1 ;\n }"}
{"idx": 18776, "target": 0, "func": "struct condition * compiler_concat_conditions ( struct condition * a , u_int16 op , struct condition * b ) {\n struct condition * head = a ;\n while ( a -> next != NULL ) a = a -> next ;\n a -> op = op ;\n a -> next = b ;\n return head ;\n }"}
{"idx": 18777, "target": 0, "func": "static FBuffer * cState_prepare_buffer ( VALUE self ) {\n FBuffer * buffer ;\n GET_STATE ( self ) ;\n buffer = fbuffer_alloc ( state -> buffer_initial_length ) ;\n if ( state -> object_delim ) {\n fbuffer_clear ( state -> object_delim ) ;\n }\n else {\n state -> object_delim = fbuffer_alloc ( 16 ) ;\n }\n fbuffer_append_char ( state -> object_delim , ',' ) ;\n if ( state -> object_delim2 ) {\n fbuffer_clear ( state -> object_delim2 ) ;\n }\n else {\n state -> object_delim2 = fbuffer_alloc ( 16 ) ;\n }\n if ( state -> space_before ) fbuffer_append ( state -> object_delim2 , state -> space_before , state -> space_before_len ) ;\n fbuffer_append_char ( state -> object_delim2 , ':' ) ;\n if ( state -> space ) fbuffer_append ( state -> object_delim2 , state -> space , state -> space_len ) ;\n if ( state -> array_delim ) {\n fbuffer_clear ( state -> array_delim ) ;\n }\n else {\n state -> array_delim = fbuffer_alloc ( 16 ) ;\n }\n fbuffer_append_char ( state -> array_delim , ',' ) ;\n if ( state -> array_nl ) fbuffer_append ( state -> array_delim , state -> array_nl , state -> array_nl_len ) ;\n return buffer ;\n }"}
{"idx": 18778, "target": 0, "func": "static bool contain_mutable_functions_walker ( Node * node , void * context ) {\n if ( node == NULL ) return false ;\n if ( check_functions_in_node ( node , contain_mutable_functions_checker , context ) ) return true ;\n if ( IsA ( node , Query ) ) {\n return query_tree_walker ( ( Query * ) node , contain_mutable_functions_walker , context , 0 ) ;\n }\n return expression_tree_walker ( node , contain_mutable_functions_walker , context ) ;\n }"}
{"idx": 18779, "target": 1, "func": "int event_base_loop ( struct event_base * base , int flags ) {\n const struct eventop * evsel = base -> evsel ;\n void * evbase = base -> evbase ;\n struct timeval tv ;\n struct timeval * tv_p ;\n int res , done ;\n base -> tv_cache . tv_sec = 0 ;\n if ( base -> sig . ev_signal_added ) evsignal_base = base ;\n done = 0 ;\n while ( ! done ) {\n if ( base -> event_gotterm ) {\n base -> event_gotterm = 0 ;\n break ;\n }\n if ( base -> event_break ) {\n base -> event_break = 0 ;\n break ;\n }\n timeout_correct ( base , & tv ) ;\n tv_p = & tv ;\n if ( ! base -> event_count_active && ! ( flags & EVLOOP_NONBLOCK ) ) {\n timeout_next ( base , & tv_p ) ;\n }\n else {\n evutil_timerclear ( & tv ) ;\n }\n if ( ! event_haveevents ( base ) ) {\n event_debug ( ( \"%s: no events registered.\" , __func__ ) ) ;\n return ( 1 ) ;\n }\n gettime ( base , & base -> event_tv ) ;\n base -> tv_cache . tv_sec = 0 ;\n res = evsel -> dispatch ( base , evbase , tv_p ) ;\n if ( res == - 1 ) return ( - 1 ) ;\n gettime ( base , & base -> tv_cache ) ;\n timeout_process ( base ) ;\n if ( base -> event_count_active ) {\n event_process_active ( base ) ;\n if ( ! base -> event_count_active && ( flags & EVLOOP_ONCE ) ) done = 1 ;\n }\n else if ( flags & EVLOOP_NONBLOCK ) done = 1 ;\n }\n base -> tv_cache . tv_sec = 0 ;\n event_debug ( ( \"%s: asked to terminate loop.\" , __func__ ) ) ;\n return ( 0 ) ;\n }"}
{"idx": 18780, "target": 0, "func": "struct auth_server_connection * auth_server_connection_init ( struct auth_client * client ) {\n struct auth_server_connection * conn ;\n pool_t pool ;\n pool = pool_alloconly_create ( \"auth server connection\" , 1024 ) ;\n conn = p_new ( pool , struct auth_server_connection , 1 ) ;\n conn -> pool = pool ;\n conn -> client = client ;\n conn -> fd = - 1 ;\n hash_table_create_direct ( & conn -> requests , pool , 100 ) ;\n i_array_init ( & conn -> available_auth_mechs , 8 ) ;\n return conn ;\n }"}
{"idx": 18781, "target": 0, "func": "static int dissect_h245_T_decision ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_decision , T_decision_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 18782, "target": 1, "func": "TEST_F ( AutocompleteResultTest , SortAndCullWithMatchDups ) {\n TemplateURLData url_data ;\n url_data . SetShortName ( base : : ASCIIToUTF16 ( \"unittest\" ) ) ;\n url_data . SetKeyword ( base : : ASCIIToUTF16 ( \"foo\" ) ) ;\n url_data . SetURL ( \"http://www.foo.com/s?q={\nsearchTerms}\n\" ) ;\n template_url_service_ . get ( ) -> Add ( new TemplateURL ( url_data ) ) ;\n AutocompleteMatch dup_match ;\n dup_match . destination_url = GURL ( \"http://www.foo.com/s?q=foo&oq=dup\" ) ;\n std : : vector < AutocompleteMatch > dups ;\n dups . push_back ( dup_match ) ;\n TestData data [ ] = {\n {\n 0 , 1 , 1300 , true , dups }\n , {\n 1 , 1 , 1200 , true }\n , {\n 2 , 1 , 1100 , true }\n , {\n 3 , 1 , 1000 , true , dups }\n , {\n 4 , 2 , 900 , true }\n , {\n 5 , 1 , 800 , true }\n , }\n ;\n ACMatches matches ;\n PopulateAutocompleteMatches ( data , arraysize ( data ) , & matches ) ;\n matches [ 0 ] . destination_url = GURL ( \"http://www.foo.com/s?q=foo\" ) ;\n matches [ 1 ] . destination_url = GURL ( \"http://www.foo.com/s?q=foo2\" ) ;\n matches [ 2 ] . destination_url = GURL ( \"http://www.foo.com/s?q=foo&oq=f\" ) ;\n matches [ 3 ] . destination_url = GURL ( \"http://www.foo.com/s?q=foo&aqs=0\" ) ;\n matches [ 4 ] . destination_url = GURL ( \"http://www.foo.com/\" ) ;\n matches [ 5 ] . destination_url = GURL ( \"http://www.foo.com/s?q=foo2&oq=f\" ) ;\n AutocompleteInput input ( base : : string16 ( ) , base : : string16 : : npos , std : : string ( ) , GURL ( ) , OmniboxEventProto : : INVALID_SPEC , false , false , false , true , false , TestSchemeClassifier ( ) ) ;\n AutocompleteResult result ;\n result . AppendMatches ( input , matches ) ;\n result . SortAndCull ( input , std : : string ( ) , template_url_service_ . get ( ) ) ;\n ASSERT_EQ ( 3U , result . size ( ) ) ;\n ASSERT_EQ ( 4U , result . match_at ( 0 ) -> duplicate_matches . size ( ) ) ;\n const AutocompleteMatch * first_match = result . match_at ( 0 ) ;\n EXPECT_EQ ( matches [ 2 ] . destination_url , first_match -> duplicate_matches . at ( 1 ) . destination_url ) ;\n EXPECT_EQ ( dup_match . destination_url , first_match -> duplicate_matches . at ( 2 ) . destination_url ) ;\n EXPECT_EQ ( matches [ 3 ] . destination_url , first_match -> duplicate_matches . at ( 3 ) . destination_url ) ;\n ASSERT_EQ ( 1U , result . match_at ( 1 ) -> duplicate_matches . size ( ) ) ;\n EXPECT_EQ ( matches [ 5 ] . destination_url , result . match_at ( 1 ) -> duplicate_matches . at ( 0 ) . destination_url ) ;\n }"}
{"idx": 18783, "target": 0, "func": "static int h261_decode_block ( H261Context * h , int16_t * block , int n , int coded ) {\n MpegEncContext * const s = & h -> s ;\n int code , level , i , j , run ;\n RLTable * rl = & h261_rl_tcoeff ;\n const uint8_t * scan_table ;\n scan_table = s -> intra_scantable . permutated ;\n if ( s -> mb_intra ) {\n level = get_bits ( & s -> gb , 8 ) ;\n if ( ( level & 0x7F ) == 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"illegal dc %d at %d %d\\n\" , level , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n if ( level == 255 ) level = 128 ;\n block [ 0 ] = level ;\n i = 1 ;\n }\n else if ( coded ) {\n int check = show_bits ( & s -> gb , 2 ) ;\n i = 0 ;\n if ( check & 0x2 ) {\n skip_bits ( & s -> gb , 2 ) ;\n block [ 0 ] = ( check & 0x1 ) ? - 1 : 1 ;\n i = 1 ;\n }\n }\n else {\n i = 0 ;\n }\n if ( ! coded ) {\n s -> block_last_index [ n ] = i - 1 ;\n return 0 ;\n }\n for ( ;\n ;\n ) {\n code = get_vlc2 ( & s -> gb , rl -> vlc . table , TCOEFF_VLC_BITS , 2 ) ;\n if ( code < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"illegal ac vlc code at %dx%d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n if ( code == rl -> n ) {\n run = get_bits ( & s -> gb , 6 ) ;\n level = get_sbits ( & s -> gb , 8 ) ;\n }\n else if ( code == 0 ) {\n break ;\n }\n else {\n run = rl -> table_run [ code ] ;\n level = rl -> table_level [ code ] ;\n if ( get_bits1 ( & s -> gb ) ) level = - level ;\n }\n i += run ;\n if ( i >= 64 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"run overflow at %dx%d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n j = scan_table [ i ] ;\n block [ j ] = level ;\n i ++ ;\n }\n s -> block_last_index [ n ] = i - 1 ;\n return 0 ;\n }"}
{"idx": 18784, "target": 0, "func": "static int selinux_socket_post_create ( struct socket * sock , int family , int type , int protocol , int kern ) {\n const struct task_security_struct * tsec = current_security ( ) ;\n struct inode_security_struct * isec = inode_security_novalidate ( SOCK_INODE ( sock ) ) ;\n struct sk_security_struct * sksec ;\n u16 sclass = socket_type_to_security_class ( family , type , protocol ) ;\n u32 sid = SECINITSID_KERNEL ;\n int err = 0 ;\n if ( ! kern ) {\n err = socket_sockcreate_sid ( tsec , sclass , & sid ) ;\n if ( err ) return err ;\n }\n isec -> sclass = sclass ;\n isec -> sid = sid ;\n isec -> initialized = LABEL_INITIALIZED ;\n if ( sock -> sk ) {\n sksec = sock -> sk -> sk_security ;\n sksec -> sclass = sclass ;\n sksec -> sid = sid ;\n err = selinux_netlbl_socket_post_create ( sock -> sk , family ) ;\n }\n return err ;\n }"}
{"idx": 18785, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , DocumentWriteAsync ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : FIRST_CONTENTFUL_PAINT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/page_load_metrics/document_write_async_script.html\" ) ) ;\n waiter -> Wait ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramFirstContentfulPaint , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramDocWriteBlockParseStartToFirstContentfulPaint , 0 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramDocWriteBlockCount , 0 ) ;\n }"}
{"idx": 18786, "target": 0, "func": "static inline PixelTrait GetPixelGreenTraits ( const Image * restrict image ) {\n return ( image -> channel_map [ GreenPixelChannel ] . traits ) ;\n }"}
{"idx": 18787, "target": 0, "func": "TSReturnCode TSHttpHdrClone ( TSMBuffer dest_bufp , TSMBuffer src_bufp , TSMLoc src_hdr , TSMLoc * locp ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( dest_bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_mbuffer ( src_bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_http_hdr_handle ( src_hdr ) == TS_SUCCESS ) ;\n if ( ! isWriteable ( dest_bufp ) ) {\n return TS_ERROR ;\n }\n HdrHeap * s_heap , * d_heap ;\n HTTPHdrImpl * s_hh , * d_hh ;\n s_heap = ( ( HdrHeapSDKHandle * ) src_bufp ) -> m_heap ;\n d_heap = ( ( HdrHeapSDKHandle * ) dest_bufp ) -> m_heap ;\n s_hh = ( HTTPHdrImpl * ) src_hdr ;\n if ( s_hh -> m_type != HDR_HEAP_OBJ_HTTP_HEADER ) {\n return TS_ERROR ;\n }\n d_hh = http_hdr_clone ( s_hh , s_heap , d_heap ) ;\n * locp = ( TSMLoc ) d_hh ;\n return TS_SUCCESS ;\n }"}
{"idx": 18788, "target": 0, "func": "proto_item * parseUInt64 ( proto_tree * tree , tvbuff_t * tvb , packet_info * pinfo _U_ , gint * pOffset , int hfIndex ) {\n proto_item * item = proto_tree_add_item ( tree , hfIndex , tvb , * pOffset , 8 , ENC_LITTLE_ENDIAN ) ;\n * pOffset += 8 ;\n return item ;\n }"}
{"idx": 18789, "target": 0, "func": "guint nautilus_metadata_get_id ( const char * metadata ) {\n static GHashTable * hash ;\n int i ;\n if ( hash == NULL ) {\n hash = g_hash_table_new ( g_str_hash , g_str_equal ) ;\n for ( i = 0 ;\n used_metadata_names [ i ] != NULL ;\n i ++ ) {\n g_hash_table_insert ( hash , used_metadata_names [ i ] , GINT_TO_POINTER ( i + 1 ) ) ;\n }\n }\n return GPOINTER_TO_INT ( g_hash_table_lookup ( hash , metadata ) ) ;\n }"}
{"idx": 18790, "target": 0, "func": "static int writer_register ( const Writer * writer ) {\n static int next_registered_writer_idx = 0 ;\n if ( next_registered_writer_idx == MAX_REGISTERED_WRITERS_NB ) return AVERROR ( ENOMEM ) ;\n registered_writers [ next_registered_writer_idx ++ ] = writer ;\n return 0 ;\n }"}
{"idx": 18791, "target": 0, "func": "proto_tree * proto_tree_add_subtree ( proto_tree * tree , tvbuff_t * tvb , gint start , gint length , gint idx , proto_item * * tree_item , const char * text ) {\n return proto_tree_add_subtree_format ( tree , tvb , start , length , idx , tree_item , \"%s\" , text ) ;\n }"}
{"idx": 18792, "target": 0, "func": "static int selinux_inode_mknod ( struct inode * dir , struct dentry * dentry , umode_t mode , dev_t dev ) {\n return may_create ( dir , dentry , inode_mode_to_security_class ( mode ) ) ;\n }"}
{"idx": 18793, "target": 0, "func": "int PEM_write_ ## name ( FILE * fp , type * x ) ;\n # define DECLARE_PEM_write_fp_const ( name , type ) int PEM_write_ ## name ( FILE * fp , const type * x ) ;\n # define DECLARE_PEM_write_cb_fp ( name , type ) int PEM_write_ ## name ( FILE * fp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # endif # define DECLARE_PEM_read_bio ( name , type ) type * PEM_read_bio_ ## name ( BIO * bp , type * * x , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL ) DECLARE_PEM_rw ( PKCS7 , PKCS7 ) DECLARE_PEM_rw ( NETSCAPE_CERT_SEQUENCE , NETSCAPE_CERT_SEQUENCE ) DECLARE_PEM_rw ( PKCS8 , X509_SIG )"}
{"idx": 18794, "target": 0, "func": "static int not_in_history ( const char * line ) {\n HIST_ENTRY * oldhist = history_get ( history_length ) ;\n if ( oldhist == 0 ) return 1 ;\n if ( strcmp ( oldhist -> line , line ) == 0 ) return 0 ;\n return 1 ;\n }"}
{"idx": 18795, "target": 0, "func": "ATF_TC_HEAD ( option_refcnt , tc ) {\n atf_tc_set_md_var ( tc , \"descr\" , \"Verify option reference count does not overflow.\" ) ;\n }"}
{"idx": 18796, "target": 0, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DIRECTORYSTRING ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DISPLAYTEXT ) DECLARE_ASN1_FUNCTIONS ( ASN1_PRINTABLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_T61STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_IA5STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_GENERALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTCTIME )"}
{"idx": 18797, "target": 0, "func": "const char * trunc_right ( const char * src , size_t width ) {\n size_t sl ;\n char * out ;\n sl = strlen ( src ) ;\n if ( sl > width && LIB_BUFLENGTH - 1 > width && width > 0 ) {\n LIB_GETBUF ( out ) ;\n memcpy ( out , src , width ) ;\n out [ width ] = '\\0' ;\n return out ;\n }\n return src ;\n }"}
{"idx": 18798, "target": 0, "func": "static int init_nss_crypto ( struct crypto_instance * instance ) {\n if ( ! cipher_to_nss [ instance -> crypto_cipher_type ] ) {\n return 0 ;\n }\n instance -> nss_sym_key = import_symmetric_key ( instance , SYM_KEY_TYPE_CRYPT ) ;\n if ( instance -> nss_sym_key == NULL ) {\n return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 18799, "target": 0, "func": "static void pxa2xx_rtc_hzupdate ( PXA2xxRTCState * s ) {\n int64_t rt = qemu_get_clock_ms ( rtc_clock ) ;\n s -> last_rcnr += ( ( rt - s -> last_hz ) << 15 ) / ( 1000 * ( ( s -> rttr & 0xffff ) + 1 ) ) ;\n s -> last_rdcr += ( ( rt - s -> last_hz ) << 15 ) / ( 1000 * ( ( s -> rttr & 0xffff ) + 1 ) ) ;\n s -> last_hz = rt ;\n }"}
{"idx": 18800, "target": 0, "func": "static guint16 de_gcc_cause ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n int curr_len ;\n curr_len = len ;\n curr_offset = offset ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_gcc_cause_structure , tvb , curr_offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_gcc_cause , tvb , curr_offset , 1 , ENC_NA ) ;\n curr_offset ++ ;\n curr_len -- ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 18801, "target": 0, "func": "int qemuMonitorTextMigrateCancel ( qemuMonitorPtr mon ) {\n char * info = NULL ;\n if ( qemuMonitorHMPCommand ( mon , \"migrate_cancel\" , & info ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"cannot run monitor command to cancel migration\" ) ) ;\n return - 1 ;\n }\n VIR_FREE ( info ) ;\n return 0 ;\n }"}
{"idx": 18802, "target": 1, "func": "void vp9_iwht4x4_add ( const int16_t * input , uint8_t * dest , int stride , int eob ) {\n if ( eob > 1 ) vp9_iwht4x4_16_add ( input , dest , stride ) ;\n else vp9_iwht4x4_1_add ( input , dest , stride ) ;\n }"}
{"idx": 18803, "target": 0, "func": "static inline void cirrus_cursor_compute_yrange ( CirrusVGAState * s ) {\n const uint8_t * src ;\n uint32_t content ;\n int y , y_min , y_max ;\n src = s -> vga . vram_ptr + s -> real_vram_size - 16 * 1024 ;\n if ( s -> vga . sr [ 0x12 ] & CIRRUS_CURSOR_LARGE ) {\n src += ( s -> vga . sr [ 0x13 ] & 0x3c ) * 256 ;\n y_min = 64 ;\n y_max = - 1 ;\n for ( y = 0 ;\n y < 64 ;\n y ++ ) {\n content = ( ( uint32_t * ) src ) [ 0 ] | ( ( uint32_t * ) src ) [ 1 ] | ( ( uint32_t * ) src ) [ 2 ] | ( ( uint32_t * ) src ) [ 3 ] ;\n if ( content ) {\n if ( y < y_min ) y_min = y ;\n if ( y > y_max ) y_max = y ;\n }\n src += 16 ;\n }\n }\n else {\n src += ( s -> vga . sr [ 0x13 ] & 0x3f ) * 256 ;\n y_min = 32 ;\n y_max = - 1 ;\n for ( y = 0 ;\n y < 32 ;\n y ++ ) {\n content = ( ( uint32_t * ) src ) [ 0 ] | ( ( uint32_t * ) ( src + 128 ) ) [ 0 ] ;\n if ( content ) {\n if ( y < y_min ) y_min = y ;\n if ( y > y_max ) y_max = y ;\n }\n src += 4 ;\n }\n }\n if ( y_min > y_max ) {\n s -> last_hw_cursor_y_start = 0 ;\n s -> last_hw_cursor_y_end = 0 ;\n }\n else {\n s -> last_hw_cursor_y_start = y_min ;\n s -> last_hw_cursor_y_end = y_max + 1 ;\n }\n }"}
{"idx": 18804, "target": 0, "func": "static inline int eval_sse ( const uint8_t * a , const uint8_t * b , int count ) {\n int diff = 0 ;\n while ( count -- ) diff += square ( * b ++ - * a ++ ) ;\n return diff ;\n }"}
{"idx": 18805, "target": 0, "func": "static uint32_t getFromUBytesValue ( CnvExtData * extData , UCMTable * table , UCMapping * m ) {\n uint8_t * bytes , * resultBytes ;\n uint32_t value ;\n int32_t u16Length , ratio ;\n if ( m -> f == 2 ) {\n return UCNV_EXT_FROM_U_SUBCHAR1 ;\n }\n bytes = UCM_GET_BYTES ( table , m ) ;\n value = 0 ;\n switch ( m -> bLen ) {\n case 3 : value = ( ( uint32_t ) * bytes ++ ) << 16 ;\n case 2 : value |= ( ( uint32_t ) * bytes ++ ) << 8 ;\n case 1 : value |= * bytes ;\n break ;\n default : value = ( uint32_t ) utm_countItems ( extData -> fromUBytes ) ;\n resultBytes = utm_allocN ( extData -> fromUBytes , m -> bLen ) ;\n uprv_memcpy ( resultBytes , bytes , m -> bLen ) ;\n break ;\n }\n value |= ( uint32_t ) m -> bLen << UCNV_EXT_FROM_U_LENGTH_SHIFT ;\n if ( m -> f == 0 ) {\n value |= UCNV_EXT_FROM_U_ROUNDTRIP_FLAG ;\n }\n else if ( m -> f == 4 ) {\n value |= UCNV_EXT_FROM_U_GOOD_ONE_WAY_FLAG ;\n }\n if ( m -> uLen == 1 ) {\n u16Length = U16_LENGTH ( m -> u ) ;\n }\n else {\n u16Length = U16_LENGTH ( UCM_GET_CODE_POINTS ( table , m ) [ 0 ] ) + ( m -> uLen - 2 ) ;\n }\n if ( u16Length > extData -> maxInUChars ) {\n extData -> maxInUChars = u16Length ;\n }\n if ( m -> bLen > extData -> maxOutBytes ) {\n extData -> maxOutBytes = m -> bLen ;\n }\n ratio = ( m -> bLen + ( u16Length - 1 ) ) / u16Length ;\n if ( ratio > extData -> maxBytesPerUChar ) {\n extData -> maxBytesPerUChar = ratio ;\n }\n return value ;\n }"}
{"idx": 18806, "target": 0, "func": "fz_default_colorspaces * fz_clone_default_colorspaces ( fz_context * ctx , fz_default_colorspaces * base ) {\n fz_default_colorspaces * default_cs = fz_malloc_struct ( ctx , fz_default_colorspaces ) ;\n default_cs -> refs = 1 ;\n default_cs -> gray = fz_keep_colorspace ( ctx , base -> gray ) ;\n default_cs -> rgb = fz_keep_colorspace ( ctx , base -> rgb ) ;\n default_cs -> cmyk = fz_keep_colorspace ( ctx , base -> cmyk ) ;\n default_cs -> oi = fz_keep_colorspace ( ctx , base -> oi ) ;\n return default_cs ;\n }"}
{"idx": 18807, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( RegisterProtocolHandlerBrowserTest , CustomHandler ) {\n ASSERT_TRUE ( test_server ( ) -> Start ( ) ) ;\n GURL handler_url = test_server ( ) -> GetURL ( \"files/custom_handler_foo.html\" ) ;\n AddProtocolHandler ( \"foo\" , handler_url ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , GURL ( \"foo:test\" ) ) ;\n ASSERT_EQ ( handler_url , browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) -> GetURL ( ) ) ;\n }"}
{"idx": 18808, "target": 0, "func": "static inline bool e1000e_rx_use_legacy_descriptor ( E1000ECore * core ) {\n return ( core -> mac [ RFCTL ] & E1000_RFCTL_EXTEN ) ? false : true ;\n }"}
{"idx": 18809, "target": 0, "func": "static void predict_and_reconstruct_intra_block ( int plane , int block , BLOCK_SIZE plane_bsize , TX_SIZE tx_size , void * arg ) {\n struct intra_args * const args = ( struct intra_args * ) arg ;\n VP9_COMMON * const cm = args -> cm ;\n MACROBLOCKD * const xd = args -> xd ;\n struct macroblockd_plane * const pd = & xd -> plane [ plane ] ;\n MODE_INFO * const mi = xd -> mi [ 0 ] . src_mi ;\n const PREDICTION_MODE mode = ( plane == 0 ) ? get_y_mode ( mi , block ) : mi -> mbmi . uv_mode ;\n int x , y ;\n uint8_t * dst ;\n txfrm_block_to_raster_xy ( plane_bsize , tx_size , block , & x , & y ) ;\n dst = & pd -> dst . buf [ 4 * y * pd -> dst . stride + 4 * x ] ;\n vp9_predict_intra_block ( xd , block >> ( tx_size << 1 ) , b_width_log2 ( plane_bsize ) , tx_size , mode , dst , pd -> dst . stride , dst , pd -> dst . stride , x , y , plane ) ;\n if ( ! mi -> mbmi . skip ) {\n const int eob = vp9_decode_block_tokens ( cm , xd , plane , block , plane_bsize , x , y , tx_size , args -> r ) ;\n inverse_transform_block ( xd , plane , block , tx_size , dst , pd -> dst . stride , eob ) ;\n }\n }"}
{"idx": 18810, "target": 0, "func": "static void combined_write_cb ( int fd , short event , void * arg ) {\n struct both * both = arg ;\n char buf [ 128 ] ;\n int len ;\n len = sizeof ( buf ) ;\n if ( len > both -> nread ) len = both -> nread ;\n len = write ( fd , buf , len ) ;\n if ( len == - 1 ) fprintf ( stderr , \"%s: write\\n\" , __func__ ) ;\n if ( len <= 0 ) {\n shutdown ( fd , SHUT_WR ) ;\n return ;\n }\n both -> nread -= len ;\n if ( event_add ( & both -> ev , NULL ) == - 1 ) exit ( 1 ) ;\n }"}
{"idx": 18811, "target": 0, "func": "int32 get_attavgwidth ( Oid relid , AttrNumber attnum ) {\n HeapTuple tp ;\n int32 stawidth ;\n if ( get_attavgwidth_hook ) {\n stawidth = ( * get_attavgwidth_hook ) ( relid , attnum ) ;\n if ( stawidth > 0 ) return stawidth ;\n }\n tp = SearchSysCache3 ( STATRELATTINH , ObjectIdGetDatum ( relid ) , Int16GetDatum ( attnum ) , BoolGetDatum ( false ) ) ;\n if ( HeapTupleIsValid ( tp ) ) {\n stawidth = ( ( Form_pg_statistic ) GETSTRUCT ( tp ) ) -> stawidth ;\n ReleaseSysCache ( tp ) ;\n if ( stawidth > 0 ) return stawidth ;\n }\n return 0 ;\n }"}
{"idx": 18812, "target": 0, "func": "static cmsBool _cmsReadWCharArray ( cmsIOHANDLER * io , cmsUInt32Number n , wchar_t * Array ) {\n cmsUInt32Number i ;\n cmsUInt16Number tmp ;\n _cmsAssert ( io != NULL ) ;\n for ( i = 0 ;\n i < n ;\n i ++ ) {\n if ( Array != NULL ) {\n if ( ! _cmsReadUInt16Number ( io , & tmp ) ) return FALSE ;\n Array [ i ] = ( wchar_t ) tmp ;\n }\n else {\n if ( ! _cmsReadUInt16Number ( io , NULL ) ) return FALSE ;\n }\n }\n return TRUE ;\n }"}
{"idx": 18813, "target": 0, "func": "static double exsltMathMin ( xmlNodeSetPtr ns ) {\n double ret , cur ;\n int i ;\n if ( ( ns == NULL ) || ( ns -> nodeNr == 0 ) ) return ( xmlXPathNAN ) ;\n ret = xmlXPathCastNodeToNumber ( ns -> nodeTab [ 0 ] ) ;\n if ( xmlXPathIsNaN ( ret ) ) return ( xmlXPathNAN ) ;\n for ( i = 1 ;\n i < ns -> nodeNr ;\n i ++ ) {\n cur = xmlXPathCastNodeToNumber ( ns -> nodeTab [ i ] ) ;\n if ( xmlXPathIsNaN ( cur ) ) return ( xmlXPathNAN ) ;\n if ( cur < ret ) ret = cur ;\n }\n return ( ret ) ;\n }"}
{"idx": 18814, "target": 0, "func": "static void pdf_run_g ( fz_context * ctx , pdf_processor * proc , float g ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pr -> dev -> flags &= ~ FZ_DEVFLAG_FILLCOLOR_UNDEFINED ;\n pdf_set_colorspace ( ctx , pr , PDF_FILL , fz_device_gray ( ctx ) ) ;\n pdf_set_color ( ctx , pr , PDF_FILL , & g ) ;\n }"}
{"idx": 18815, "target": 0, "func": "static int version_cmp ( const SSL * s , int a , int b ) {\n int dtls = SSL_IS_DTLS ( s ) ;\n if ( a == b ) return 0 ;\n if ( ! dtls ) return a < b ? - 1 : 1 ;\n return DTLS_VERSION_LT ( a , b ) ? - 1 : 1 ;\n }"}
{"idx": 18816, "target": 0, "func": "static void prepare_vacuum_command ( PQExpBuffer sql , PGconn * conn , vacuumingOptions * vacopts , const char * table ) {\n resetPQExpBuffer ( sql ) ;\n if ( vacopts -> analyze_only ) {\n appendPQExpBufferStr ( sql , \"ANALYZE\" ) ;\n if ( vacopts -> verbose ) appendPQExpBufferStr ( sql , \" VERBOSE\" ) ;\n }\n else {\n appendPQExpBufferStr ( sql , \"VACUUM\" ) ;\n if ( PQserverVersion ( conn ) >= 90000 ) {\n const char * paren = \" (\" ;\n const char * comma = \", \" ;\n const char * sep = paren ;\n if ( vacopts -> full ) {\n appendPQExpBuffer ( sql , \"%sFULL\" , sep ) ;\n sep = comma ;\n }\n if ( vacopts -> freeze ) {\n appendPQExpBuffer ( sql , \"%sFREEZE\" , sep ) ;\n sep = comma ;\n }\n if ( vacopts -> verbose ) {\n appendPQExpBuffer ( sql , \"%sVERBOSE\" , sep ) ;\n sep = comma ;\n }\n if ( vacopts -> and_analyze ) {\n appendPQExpBuffer ( sql , \"%sANALYZE\" , sep ) ;\n sep = comma ;\n }\n if ( sep != paren ) appendPQExpBufferChar ( sql , ')' ) ;\n }\n else {\n if ( vacopts -> full ) appendPQExpBufferStr ( sql , \" FULL\" ) ;\n if ( vacopts -> freeze ) appendPQExpBufferStr ( sql , \" FREEZE\" ) ;\n if ( vacopts -> verbose ) appendPQExpBufferStr ( sql , \" VERBOSE\" ) ;\n if ( vacopts -> and_analyze ) appendPQExpBufferStr ( sql , \" ANALYZE\" ) ;\n }\n }\n if ( table ) appendPQExpBuffer ( sql , \" %s\" , table ) ;\n appendPQExpBufferChar ( sql , ';\n' ) ;\n }"}
{"idx": 18817, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( NewAvatarMenuButtonTest , MAYBE_SignOut ) {\n if ( ! profiles : : IsMultipleProfilesEnabled ( ) ) return ;\n CreateTestingProfile ( ) ;\n ASSERT_NO_FATAL_FAILURE ( StartAvatarMenu ( ) ) ;\n BrowserList * browser_list = BrowserList : : GetInstance ( chrome : : GetActiveDesktop ( ) ) ;\n EXPECT_EQ ( 1U , browser_list -> size ( ) ) ;\n content : : WindowedNotificationObserver window_close_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , content : : Source < Browser > ( browser ( ) ) ) ;\n AvatarMenu * menu = ProfileChooserView : : profile_bubble_ -> avatar_menu_ . get ( ) ;\n const AvatarMenu : : Item & menu_item_before = menu -> GetItemAt ( menu -> GetActiveProfileIndex ( ) ) ;\n EXPECT_FALSE ( menu_item_before . signin_required ) ;\n ui : : MouseEvent mouse_ev ( ui : : ET_MOUSE_RELEASED , gfx : : Point ( ) , gfx : : Point ( ) , 0 , 0 ) ;\n ProfileChooserView : : profile_bubble_ -> ButtonPressed ( ProfileChooserView : : profile_bubble_ -> lock_button_ , mouse_ev ) ;\n EXPECT_TRUE ( menu -> GetItemAt ( menu -> GetActiveProfileIndex ( ) ) . signin_required ) ;\n window_close_observer . Wait ( ) ;\n EXPECT_TRUE ( browser_list -> empty ( ) ) ;\n if ( ! UserManager : : IsShowing ( ) ) base : : MessageLoop : : current ( ) -> RunUntilIdle ( ) ;\n UserManager : : Hide ( ) ;\n }"}
{"idx": 18818, "target": 0, "func": "void web_server_callback ( http_parser_t * parser , INOUT http_message_t * req , SOCKINFO * info ) {\n int ret ;\n int timeout = - 1 ;\n enum resp_type rtype = 0 ;\n membuffer headers ;\n membuffer filename ;\n struct xml_alias_t xmldoc ;\n struct SendInstruction RespInstr ;\n RespInstr . IsVirtualFile = 0 ;\n RespInstr . IsChunkActive = 0 ;\n RespInstr . IsRangeActive = 0 ;\n RespInstr . IsTrailers = 0 ;\n memset ( RespInstr . AcceptLanguageHeader , 0 , sizeof ( RespInstr . AcceptLanguageHeader ) ) ;\n membuffer_init ( & headers ) ;\n membuffer_init ( & filename ) ;\n ret = process_request ( req , & rtype , & headers , & filename , & xmldoc , & RespInstr ) ;\n if ( ret != HTTP_OK ) {\n http_SendStatusResponse ( info , ret , req -> major_version , req -> minor_version ) ;\n }\n else {\n switch ( rtype ) {\n case RESP_FILEDOC : http_SendMessage ( info , & timeout , \"Ibf\" , & RespInstr , headers . buf , headers . length , filename . buf ) ;\n break ;\n case RESP_XMLDOC : http_SendMessage ( info , & timeout , \"Ibb\" , & RespInstr , headers . buf , headers . length , xmldoc . doc . buf , xmldoc . doc . length ) ;\n alias_release ( & xmldoc ) ;\n break ;\n case RESP_WEBDOC : http_SendMessage ( info , & timeout , \"Ibf\" , & RespInstr , headers . buf , headers . length , filename . buf ) ;\n break ;\n case RESP_HEADERS : http_SendMessage ( info , & timeout , \"b\" , headers . buf , headers . length ) ;\n break ;\n case RESP_POST : ret = http_RecvPostMessage ( parser , info , filename . buf , & RespInstr ) ;\n http_MakeMessage ( & headers , 1 , 1 , \"RTLSXcCc\" , ret , \"text/html\" , & RespInstr , X_USER_AGENT ) ;\n http_SendMessage ( info , & timeout , \"b\" , headers . buf , headers . length ) ;\n break ;\n default : UpnpPrintf ( UPNP_INFO , HTTP , __FILE__ , __LINE__ , \"webserver: Invalid response type received.\\n\" ) ;\n assert ( 0 ) ;\n }\n }\n UpnpPrintf ( UPNP_INFO , HTTP , __FILE__ , __LINE__ , \"webserver: request processed...\\n\" ) ;\n membuffer_destroy ( & headers ) ;\n membuffer_destroy ( & filename ) ;\n }"}
{"idx": 18819, "target": 0, "func": "static int selinux_task_movememory ( struct task_struct * p ) {\n return current_has_perm ( p , PROCESS__SETSCHED ) ;\n }"}
{"idx": 18820, "target": 0, "func": "static void unmap_linear_vram ( CirrusVGAState * s ) {\n if ( s -> bustype == CIRRUS_BUSTYPE_PCI && s -> linear_vram ) {\n s -> linear_vram = false ;\n memory_region_del_subregion ( & s -> pci_bar , & s -> vga . vram ) ;\n }\n memory_region_set_enabled ( & s -> cirrus_bank [ 0 ] , false ) ;\n memory_region_set_enabled ( & s -> cirrus_bank [ 1 ] , false ) ;\n }"}
{"idx": 18821, "target": 0, "func": "void proto_tree_free ( proto_tree * tree ) {\n tree_data_t * tree_data = PTREE_DATA ( tree ) ;\n proto_tree_children_foreach ( tree , proto_tree_free_node , NULL ) ;\n if ( tree_data -> interesting_hfids ) {\n g_hash_table_foreach ( tree_data -> interesting_hfids , free_GPtrArray_value , NULL ) ;\n g_hash_table_destroy ( tree_data -> interesting_hfids ) ;\n }\n g_slice_free ( tree_data_t , tree_data ) ;\n g_slice_free ( proto_tree , tree ) ;\n }"}
{"idx": 18822, "target": 0, "func": "int main ( int argc , char * * argv ) {\n FILE * infile = NULL ;\n vpx_codec_ctx_t codec ;\n vpx_codec_enc_cfg_t cfg ;\n int frame_count = 0 ;\n vpx_image_t raw ;\n vpx_codec_err_t res ;\n VpxVideoInfo info = {\n 0 }\n ;\n VpxVideoWriter * writer = NULL ;\n const VpxInterface * encoder = NULL ;\n const int fps = 30 ;\n const int bitrate = 200 ;\n int keyframe_interval = 0 ;\n const char * codec_arg = NULL ;\n const char * width_arg = NULL ;\n const char * height_arg = NULL ;\n const char * infile_arg = NULL ;\n const char * outfile_arg = NULL ;\n const char * keyframe_interval_arg = NULL ;\n exec_name = argv [ 0 ] ;\n if ( argc < 7 ) die ( \"Invalid number of arguments\" ) ;\n codec_arg = argv [ 1 ] ;\n width_arg = argv [ 2 ] ;\n height_arg = argv [ 3 ] ;\n infile_arg = argv [ 4 ] ;\n outfile_arg = argv [ 5 ] ;\n keyframe_interval_arg = argv [ 6 ] ;\n encoder = get_vpx_encoder_by_name ( codec_arg ) ;\n if ( ! encoder ) die ( \"Unsupported codec.\" ) ;\n info . codec_fourcc = encoder -> fourcc ;\n info . frame_width = strtol ( width_arg , NULL , 0 ) ;\n info . frame_height = strtol ( height_arg , NULL , 0 ) ;\n info . time_base . numerator = 1 ;\n info . time_base . denominator = fps ;\n if ( info . frame_width <= 0 || info . frame_height <= 0 || ( info . frame_width % 2 ) != 0 || ( info . frame_height % 2 ) != 0 ) {\n die ( \"Invalid frame size: %dx%d\" , info . frame_width , info . frame_height ) ;\n }\n if ( ! vpx_img_alloc ( & raw , VPX_IMG_FMT_I420 , info . frame_width , info . frame_height , 1 ) ) {\n die ( \"Failed to allocate image.\" ) ;\n }\n keyframe_interval = strtol ( keyframe_interval_arg , NULL , 0 ) ;\n if ( keyframe_interval < 0 ) die ( \"Invalid keyframe interval value.\" ) ;\n printf ( \"Using %s\\n\" , vpx_codec_iface_name ( encoder -> codec_interface ( ) ) ) ;\n res = vpx_codec_enc_config_default ( encoder -> codec_interface ( ) , & cfg , 0 ) ;\n if ( res ) die_codec ( & codec , \"Failed to get default codec config.\" ) ;\n cfg . g_w = info . frame_width ;\n cfg . g_h = info . frame_height ;\n cfg . g_timebase . num = info . time_base . numerator ;\n cfg . g_timebase . den = info . time_base . denominator ;\n cfg . rc_target_bitrate = bitrate ;\n cfg . g_error_resilient = argc > 7 ? strtol ( argv [ 7 ] , NULL , 0 ) : 0 ;\n writer = vpx_video_writer_open ( outfile_arg , kContainerIVF , & info ) ;\n if ( ! writer ) die ( \"Failed to open %s for writing.\" , outfile_arg ) ;\n if ( ! ( infile = fopen ( infile_arg , \"rb\" ) ) ) die ( \"Failed to open %s for reading.\" , infile_arg ) ;\n if ( vpx_codec_enc_init ( & codec , encoder -> codec_interface ( ) , & cfg , 0 ) ) die_codec ( & codec , \"Failed to initialize encoder\" ) ;\n while ( vpx_img_read ( & raw , infile ) ) {\n int flags = 0 ;\n if ( keyframe_interval > 0 && frame_count % keyframe_interval == 0 ) flags |= VPX_EFLAG_FORCE_KF ;\n encode_frame ( & codec , & raw , frame_count ++ , flags , writer ) ;\n }\n while ( encode_frame ( & codec , NULL , - 1 , 0 , writer ) ) {\n }\n ;\n printf ( \"\\n\" ) ;\n fclose ( infile ) ;\n printf ( \"Processed %d frames.\\n\" , frame_count ) ;\n vpx_img_free ( & raw ) ;\n if ( vpx_codec_destroy ( & codec ) ) die_codec ( & codec , \"Failed to destroy codec.\" ) ;\n vpx_video_writer_close ( writer ) ;\n return EXIT_SUCCESS ;\n }"}
{"idx": 18823, "target": 0, "func": "void ff_xvmc_init_block ( MpegEncContext * s ) {\n struct xvmc_pix_fmt * render = ( struct xvmc_pix_fmt * ) s -> current_picture . f . data [ 2 ] ;\n assert ( render && render -> xvmc_id == AV_XVMC_ID ) ;\n s -> block = ( int16_t ( * ) [ 64 ] ) ( render -> data_blocks + render -> next_free_data_block_num * 64 ) ;\n }"}
{"idx": 18824, "target": 0, "func": "static int dissect_h245_IS13818MultichannelType ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_IS13818MultichannelType , IS13818MultichannelType_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 18825, "target": 0, "func": "static toff_t _tiffSizeProc ( thandle_t fd ) {\n _TIFF_stat_s sb ;\n return ( toff_t ) ( _TIFF_fstat_f ( ( int ) fd , & sb ) < 0 ? 0 : sb . st_size ) ;\n }"}
{"idx": 18826, "target": 0, "func": "static int try_get_ber_length ( tvbuff_t * tvb , int offset , guint32 * length , gboolean * ind , gint nest_level ) {\n guint8 oct , len ;\n guint32 indef_len ;\n guint32 tmp_length ;\n gboolean tmp_ind ;\n int tmp_offset , s_offset ;\n gint8 tclass ;\n gboolean tpc ;\n gint32 ttag ;\n tmp_length = 0 ;\n tmp_ind = FALSE ;\n if ( nest_level > BER_MAX_NESTING ) {\n THROW ( ReportedBoundsError ) ;\n }\n oct = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n if ( ! ( oct & 0x80 ) ) {\n tmp_length = oct ;\n }\n else {\n len = oct & 0x7F ;\n if ( len ) {\n while ( len -- ) {\n oct = tvb_get_guint8 ( tvb , offset ) ;\n offset ++ ;\n tmp_length = ( tmp_length << 8 ) + oct ;\n }\n }\n else {\n tmp_offset = offset ;\n while ( tvb_get_guint8 ( tvb , offset ) || tvb_get_guint8 ( tvb , offset + 1 ) ) {\n s_offset = offset ;\n offset = get_ber_identifier ( tvb , offset , & tclass , & tpc , & ttag ) ;\n offset = try_get_ber_length ( tvb , offset , & indef_len , NULL , nest_level + 1 ) ;\n tmp_length += indef_len + ( offset - s_offset ) ;\n offset += indef_len ;\n if ( offset <= s_offset ) THROW ( ReportedBoundsError ) ;\n }\n tmp_length += 2 ;\n tmp_ind = TRUE ;\n offset = tmp_offset ;\n }\n }\n if ( length ) * length = tmp_length ;\n if ( ind ) * ind = tmp_ind ;\n # ifdef DEBUG_BER printf ( \"get BER length %d, offset %d (remaining %d)\\n\" , tmp_length , offset , tvb_reported_length_remaining ( tvb , offset ) ) ;\n # endif return offset ;\n }"}
{"idx": 18827, "target": 0, "func": "static int auth_server_input_cookie ( struct auth_server_connection * conn , const char * const * args ) {\n if ( conn -> cookie != NULL ) {\n i_error ( \"BUG: Authentication server already sent cookie\" ) ;\n return - 1 ;\n }\n conn -> cookie = p_strdup ( conn -> pool , args [ 0 ] ) ;\n return 0 ;\n }"}
{"idx": 18828, "target": 0, "func": "static inline void SetPixelIndexTraits ( Image * image , const PixelTrait traits ) {\n image -> channel_map [ IndexPixelChannel ] . traits = traits ;\n }"}
{"idx": 18829, "target": 0, "func": "static uint64_t malta_fpga_read ( void * opaque , hwaddr addr , unsigned size ) {\n MaltaFPGAState * s = opaque ;\n uint32_t val = 0 ;\n uint32_t saddr ;\n saddr = ( addr & 0xfffff ) ;\n switch ( saddr ) {\n case 0x00200 : val = 0x00000000 ;\n break ;\n case 0x00208 : # ifdef TARGET_WORDS_BIGENDIAN val = 0x00000012 ;\n # else val = 0x00000010 ;\n # endif break ;\n case 0x00210 : val = 0x00 ;\n break ;\n case 0x00408 : val = s -> leds ;\n break ;\n case 0x00508 : val = s -> brk ;\n break ;\n case 0x00a00 : val = s -> gpout ;\n break ;\n case 0x00a08 : if ( s -> i2csel ) val = s -> i2cout ;\n else val = 0x00 ;\n break ;\n case 0x00b00 : val = ( ( s -> i2cin & ~ 1 ) | eeprom24c0x_read ( ) ) ;\n break ;\n case 0x00b08 : val = s -> i2coe ;\n break ;\n case 0x00b10 : val = s -> i2cout ;\n break ;\n case 0x00b18 : val = s -> i2csel ;\n break ;\n default : # if 0 printf ( \"malta_fpga_read: Bad register offset 0x\" TARGET_FMT_lx \"\\n\" , addr ) ;\n # endif break ;\n }\n return val ;\n }"}
{"idx": 18830, "target": 0, "func": "static kadm5_ret_t get_policy ( kadm5_server_handle_t handle , const char * name , kadm5_policy_ent_t policy_out , krb5_boolean * have_pol_out ) {\n kadm5_ret_t ret ;\n * have_pol_out = FALSE ;\n if ( name == NULL ) return 0 ;\n ret = kadm5_get_policy ( handle -> lhandle , ( char * ) name , policy_out ) ;\n if ( ret == 0 ) * have_pol_out = TRUE ;\n return ( ret == KADM5_UNK_POLICY ) ? 0 : ret ;\n }"}
{"idx": 18831, "target": 0, "func": "static void decode_dct_block ( RangeCoder * c , DCTBlockCoder * bc , uint8_t * dst , int stride , int block_size , int * block , int mb_x , int mb_y ) {\n int i , j ;\n int bx , by ;\n int nblocks = block_size >> 3 ;\n bx = mb_x * nblocks ;\n by = mb_y * nblocks ;\n for ( j = 0 ;\n j < nblocks ;\n j ++ ) {\n for ( i = 0 ;\n i < nblocks ;\n i ++ ) {\n if ( decode_dct ( c , bc , block , bx + i , by + j ) ) {\n c -> got_error = 1 ;\n return ;\n }\n ff_mss34_dct_put ( dst + i * 8 , stride , block ) ;\n }\n dst += 8 * stride ;\n }\n }"}
{"idx": 18832, "target": 0, "func": "static void idct ( int16_t block [ 64 ] ) {\n int tmp0 , tmp1 , tmp2 , tmp3 , tmp4 , tmp5 , tmp6 , tmp7 ;\n int tmp10 , tmp11 , tmp12 , tmp13 ;\n int z5 , z10 , z11 , z12 , z13 ;\n int i ;\n int temp [ 64 ] ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n tmp10 = block [ 8 * 0 + i ] + block [ 8 * 4 + i ] ;\n tmp11 = block [ 8 * 0 + i ] - block [ 8 * 4 + i ] ;\n tmp13 = block [ 8 * 2 + i ] + block [ 8 * 6 + i ] ;\n tmp12 = MULTIPLY ( block [ 8 * 2 + i ] - block [ 8 * 6 + i ] , FIX_1_414213562 ) - tmp13 ;\n tmp0 = tmp10 + tmp13 ;\n tmp3 = tmp10 - tmp13 ;\n tmp1 = tmp11 + tmp12 ;\n tmp2 = tmp11 - tmp12 ;\n z13 = block [ 8 * 5 + i ] + block [ 8 * 3 + i ] ;\n z10 = block [ 8 * 5 + i ] - block [ 8 * 3 + i ] ;\n z11 = block [ 8 * 1 + i ] + block [ 8 * 7 + i ] ;\n z12 = block [ 8 * 1 + i ] - block [ 8 * 7 + i ] ;\n tmp7 = z11 + z13 ;\n tmp11 = MULTIPLY ( z11 - z13 , FIX_1_414213562 ) ;\n z5 = MULTIPLY ( z10 + z12 , FIX_1_847759065 ) ;\n tmp10 = MULTIPLY ( z12 , FIX_1_082392200 ) - z5 ;\n tmp12 = MULTIPLY ( z10 , - FIX_2_613125930 ) + z5 ;\n tmp6 = tmp12 - tmp7 ;\n tmp5 = tmp11 - tmp6 ;\n tmp4 = tmp10 + tmp5 ;\n temp [ 8 * 0 + i ] = tmp0 + tmp7 ;\n temp [ 8 * 7 + i ] = tmp0 - tmp7 ;\n temp [ 8 * 1 + i ] = tmp1 + tmp6 ;\n temp [ 8 * 6 + i ] = tmp1 - tmp6 ;\n temp [ 8 * 2 + i ] = tmp2 + tmp5 ;\n temp [ 8 * 5 + i ] = tmp2 - tmp5 ;\n temp [ 8 * 4 + i ] = tmp3 + tmp4 ;\n temp [ 8 * 3 + i ] = tmp3 - tmp4 ;\n }\n for ( i = 0 ;\n i < 8 * 8 ;\n i += 8 ) {\n tmp10 = temp [ 0 + i ] + temp [ 4 + i ] ;\n tmp11 = temp [ 0 + i ] - temp [ 4 + i ] ;\n tmp13 = temp [ 2 + i ] + temp [ 6 + i ] ;\n tmp12 = MULTIPLY ( temp [ 2 + i ] - temp [ 6 + i ] , FIX_1_414213562 ) - tmp13 ;\n tmp0 = tmp10 + tmp13 ;\n tmp3 = tmp10 - tmp13 ;\n tmp1 = tmp11 + tmp12 ;\n tmp2 = tmp11 - tmp12 ;\n z13 = temp [ 5 + i ] + temp [ 3 + i ] ;\n z10 = temp [ 5 + i ] - temp [ 3 + i ] ;\n z11 = temp [ 1 + i ] + temp [ 7 + i ] ;\n z12 = temp [ 1 + i ] - temp [ 7 + i ] ;\n tmp7 = z11 + z13 ;\n tmp11 = MULTIPLY ( z11 - z13 , FIX_1_414213562 ) ;\n z5 = MULTIPLY ( z10 + z12 , FIX_1_847759065 ) ;\n tmp10 = MULTIPLY ( z12 , FIX_1_082392200 ) - z5 ;\n tmp12 = MULTIPLY ( z10 , - FIX_2_613125930 ) + z5 ;\n tmp6 = tmp12 - tmp7 ;\n tmp5 = tmp11 - tmp6 ;\n tmp4 = tmp10 + tmp5 ;\n block [ 0 + i ] = ( tmp0 + tmp7 ) >> 6 ;\n block [ 7 + i ] = ( tmp0 - tmp7 ) >> 6 ;\n block [ 1 + i ] = ( tmp1 + tmp6 ) >> 6 ;\n block [ 6 + i ] = ( tmp1 - tmp6 ) >> 6 ;\n block [ 2 + i ] = ( tmp2 + tmp5 ) >> 6 ;\n block [ 5 + i ] = ( tmp2 - tmp5 ) >> 6 ;\n block [ 4 + i ] = ( tmp3 + tmp4 ) >> 6 ;\n block [ 3 + i ] = ( tmp3 - tmp4 ) >> 6 ;\n }\n }"}
{"idx": 18833, "target": 0, "func": "relpRetVal relpTcpSetConnTimeout ( relpTcp_t * pThis , int connTimeout ) {\n ENTER_RELPFUNC ;\n RELPOBJ_assert ( pThis , Tcp ) ;\n pThis -> connTimeout = connTimeout ;\n LEAVE_RELPFUNC ;\n }"}
{"idx": 18834, "target": 0, "func": "static int dissect_h245_T_enhanced ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_enhanced , T_enhanced_sequence ) ;\n return offset ;\n }"}
{"idx": 18835, "target": 1, "func": "static void vdpau_h264_set_reference_frames ( AVCodecContext * avctx ) {\n H264Context * const h = avctx -> priv_data ;\n AVVDPAUContext * hwctx = avctx -> hwaccel_context ;\n VdpPictureInfoH264 * info = & hwctx -> info . h264 ;\n int list ;\n VdpReferenceFrameH264 * rf = & info -> referenceFrames [ 0 ] ;\n # define H264_RF_COUNT FF_ARRAY_ELEMS ( info -> referenceFrames ) for ( list = 0 ;\n list < 2 ;\n ++ list ) {\n Picture * * lp = list ? h -> long_ref : h -> short_ref ;\n int i , ls = list ? 16 : h -> short_ref_count ;\n for ( i = 0 ;\n i < ls ;\n ++ i ) {\n Picture * pic = lp [ i ] ;\n VdpReferenceFrameH264 * rf2 ;\n VdpVideoSurface surface_ref ;\n int pic_frame_idx ;\n if ( ! pic || ! pic -> f . reference ) continue ;\n pic_frame_idx = pic -> long_ref ? pic -> pic_id : pic -> frame_num ;\n surface_ref = ff_vdpau_get_surface_id ( pic ) ;\n rf2 = & info -> referenceFrames [ 0 ] ;\n while ( rf2 != rf ) {\n if ( ( rf2 -> surface == surface_ref ) && ( rf2 -> is_long_term == pic -> long_ref ) && ( rf2 -> frame_idx == pic_frame_idx ) ) break ;\n ++ rf2 ;\n }\n if ( rf2 != rf ) {\n rf2 -> top_is_reference |= ( pic -> f . reference & PICT_TOP_FIELD ) ? VDP_TRUE : VDP_FALSE ;\n rf2 -> bottom_is_reference |= ( pic -> f . reference & PICT_BOTTOM_FIELD ) ? VDP_TRUE : VDP_FALSE ;\n continue ;\n }\n if ( rf >= & info -> referenceFrames [ H264_RF_COUNT ] ) continue ;\n vdpau_h264_set_rf ( rf , pic , pic -> f . reference ) ;\n ++ rf ;\n }\n }\n for ( ;\n rf < & info -> referenceFrames [ H264_RF_COUNT ] ;\n ++ rf ) vdpau_h264_clear_rf ( rf ) ;\n }"}
{"idx": 18836, "target": 0, "func": "bool matchesOrigin ( const url : : Origin & origin , const GURL & url ) {\n return origin . IsSameOriginWith ( url : : Origin ( url ) ) ;\n }"}
{"idx": 18837, "target": 1, "func": "void xps_begin_opacity ( xps_document * doc , const fz_matrix * ctm , const fz_rect * area , char * base_uri , xps_resource * dict , char * opacity_att , fz_xml * opacity_mask_tag ) {\n float opacity ;\n if ( ! opacity_att && ! opacity_mask_tag ) return ;\n opacity = 1 ;\n if ( opacity_att ) opacity = fz_atof ( opacity_att ) ;\n if ( opacity_mask_tag && ! strcmp ( fz_xml_tag ( opacity_mask_tag ) , \"SolidColorBrush\" ) ) {\n char * scb_opacity_att = fz_xml_att ( opacity_mask_tag , \"Opacity\" ) ;\n char * scb_color_att = fz_xml_att ( opacity_mask_tag , \"Color\" ) ;\n if ( scb_opacity_att ) opacity = opacity * fz_atof ( scb_opacity_att ) ;\n if ( scb_color_att ) {\n fz_colorspace * colorspace ;\n float samples [ 32 ] ;\n xps_parse_color ( doc , base_uri , scb_color_att , & colorspace , samples ) ;\n opacity = opacity * samples [ 0 ] ;\n }\n opacity_mask_tag = NULL ;\n }\n if ( doc -> opacity_top + 1 < nelem ( doc -> opacity ) ) {\n doc -> opacity [ doc -> opacity_top + 1 ] = doc -> opacity [ doc -> opacity_top ] * opacity ;\n doc -> opacity_top ++ ;\n }\n if ( opacity_mask_tag ) {\n fz_begin_mask ( doc -> dev , area , 0 , NULL , NULL ) ;\n xps_parse_brush ( doc , ctm , area , base_uri , dict , opacity_mask_tag ) ;\n fz_end_mask ( doc -> dev ) ;\n }\n }"}
{"idx": 18838, "target": 0, "func": "int dissect_h225_CircuitIdentifier ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_CircuitIdentifier , CircuitIdentifier_sequence ) ;\n return offset ;\n }"}
{"idx": 18839, "target": 0, "func": "int vp8_update_reference ( VP8_COMP * cpi , int ref_frame_flags ) {\n if ( ref_frame_flags > 7 ) return - 1 ;\n cpi -> common . refresh_golden_frame = 0 ;\n cpi -> common . refresh_alt_ref_frame = 0 ;\n cpi -> common . refresh_last_frame = 0 ;\n if ( ref_frame_flags & VP8_LAST_FRAME ) cpi -> common . refresh_last_frame = 1 ;\n if ( ref_frame_flags & VP8_GOLD_FRAME ) cpi -> common . refresh_golden_frame = 1 ;\n if ( ref_frame_flags & VP8_ALTR_FRAME ) cpi -> common . refresh_alt_ref_frame = 1 ;\n return 0 ;\n }"}
{"idx": 18840, "target": 1, "func": "static void vc1_mc_4mv_luma ( VC1Context * v , int n , int dir ) {\n MpegEncContext * s = & v -> s ;\n DSPContext * dsp = & v -> s . dsp ;\n uint8_t * srcY ;\n int dxy , mx , my , src_x , src_y ;\n int off ;\n int fieldmv = ( v -> fcm == ILACE_FRAME ) ? v -> blk_mv_type [ s -> block_index [ n ] ] : 0 ;\n int v_edge_pos = s -> v_edge_pos >> v -> field_mode ;\n if ( ( ! v -> field_mode || ( v -> ref_field_type [ dir ] == 1 && v -> cur_field_type == 1 ) ) && ! v -> s . last_picture . f . data [ 0 ] ) return ;\n mx = s -> mv [ dir ] [ n ] [ 0 ] ;\n my = s -> mv [ dir ] [ n ] [ 1 ] ;\n if ( ! dir ) {\n if ( v -> field_mode ) {\n if ( ( v -> cur_field_type != v -> ref_field_type [ dir ] ) && v -> cur_field_type ) srcY = s -> current_picture . f . data [ 0 ] ;\n else srcY = s -> last_picture . f . data [ 0 ] ;\n }\n else srcY = s -> last_picture . f . data [ 0 ] ;\n }\n else srcY = s -> next_picture . f . data [ 0 ] ;\n if ( v -> field_mode ) {\n if ( v -> cur_field_type != v -> ref_field_type [ dir ] ) my = my - 2 + 4 * v -> cur_field_type ;\n }\n if ( s -> pict_type == AV_PICTURE_TYPE_P && n == 3 && v -> field_mode ) {\n int same_count = 0 , opp_count = 0 , k ;\n int chosen_mv [ 2 ] [ 4 ] [ 2 ] , f ;\n int tx , ty ;\n for ( k = 0 ;\n k < 4 ;\n k ++ ) {\n f = v -> mv_f [ 0 ] [ s -> block_index [ k ] + v -> blocks_off ] ;\n chosen_mv [ f ] [ f ? opp_count : same_count ] [ 0 ] = s -> mv [ 0 ] [ k ] [ 0 ] ;\n chosen_mv [ f ] [ f ? opp_count : same_count ] [ 1 ] = s -> mv [ 0 ] [ k ] [ 1 ] ;\n opp_count += f ;\n same_count += 1 - f ;\n }\n f = opp_count > same_count ;\n switch ( f ? opp_count : same_count ) {\n case 4 : tx = median4 ( chosen_mv [ f ] [ 0 ] [ 0 ] , chosen_mv [ f ] [ 1 ] [ 0 ] , chosen_mv [ f ] [ 2 ] [ 0 ] , chosen_mv [ f ] [ 3 ] [ 0 ] ) ;\n ty = median4 ( chosen_mv [ f ] [ 0 ] [ 1 ] , chosen_mv [ f ] [ 1 ] [ 1 ] , chosen_mv [ f ] [ 2 ] [ 1 ] , chosen_mv [ f ] [ 3 ] [ 1 ] ) ;\n break ;\n case 3 : tx = mid_pred ( chosen_mv [ f ] [ 0 ] [ 0 ] , chosen_mv [ f ] [ 1 ] [ 0 ] , chosen_mv [ f ] [ 2 ] [ 0 ] ) ;\n ty = mid_pred ( chosen_mv [ f ] [ 0 ] [ 1 ] , chosen_mv [ f ] [ 1 ] [ 1 ] , chosen_mv [ f ] [ 2 ] [ 1 ] ) ;\n break ;\n case 2 : tx = ( chosen_mv [ f ] [ 0 ] [ 0 ] + chosen_mv [ f ] [ 1 ] [ 0 ] ) / 2 ;\n ty = ( chosen_mv [ f ] [ 0 ] [ 1 ] + chosen_mv [ f ] [ 1 ] [ 1 ] ) / 2 ;\n break ;\n }\n s -> current_picture . f . motion_val [ 1 ] [ s -> block_index [ 0 ] + v -> blocks_off ] [ 0 ] = tx ;\n s -> current_picture . f . motion_val [ 1 ] [ s -> block_index [ 0 ] + v -> blocks_off ] [ 1 ] = ty ;\n for ( k = 0 ;\n k < 4 ;\n k ++ ) v -> mv_f [ 1 ] [ s -> block_index [ k ] + v -> blocks_off ] = f ;\n }\n if ( v -> fcm == ILACE_FRAME ) {\n int qx , qy ;\n int width = s -> avctx -> coded_width ;\n int height = s -> avctx -> coded_height >> 1 ;\n qx = ( s -> mb_x * 16 ) + ( mx >> 2 ) ;\n qy = ( s -> mb_y * 8 ) + ( my >> 3 ) ;\n if ( qx < - 17 ) mx -= 4 * ( qx + 17 ) ;\n else if ( qx > width ) mx -= 4 * ( qx - width ) ;\n if ( qy < - 18 ) my -= 8 * ( qy + 18 ) ;\n else if ( qy > height + 1 ) my -= 8 * ( qy - height - 1 ) ;\n }\n if ( ( v -> fcm == ILACE_FRAME ) && fieldmv ) off = ( ( n > 1 ) ? s -> linesize : 0 ) + ( n & 1 ) * 8 ;\n else off = s -> linesize * 4 * ( n & 2 ) + ( n & 1 ) * 8 ;\n if ( v -> field_mode && v -> cur_field_type ) off += s -> current_picture_ptr -> f . linesize [ 0 ] ;\n src_x = s -> mb_x * 16 + ( n & 1 ) * 8 + ( mx >> 2 ) ;\n if ( ! fieldmv ) src_y = s -> mb_y * 16 + ( n & 2 ) * 4 + ( my >> 2 ) ;\n else src_y = s -> mb_y * 16 + ( ( n > 1 ) ? 1 : 0 ) + ( my >> 2 ) ;\n if ( v -> profile != PROFILE_ADVANCED ) {\n src_x = av_clip ( src_x , - 16 , s -> mb_width * 16 ) ;\n src_y = av_clip ( src_y , - 16 , s -> mb_height * 16 ) ;\n }\n else {\n src_x = av_clip ( src_x , - 17 , s -> avctx -> coded_width ) ;\n if ( v -> fcm == ILACE_FRAME ) {\n if ( src_y & 1 ) src_y = av_clip ( src_y , - 17 , s -> avctx -> coded_height + 1 ) ;\n else src_y = av_clip ( src_y , - 18 , s -> avctx -> coded_height ) ;\n }\n else {\n src_y = av_clip ( src_y , - 18 , s -> avctx -> coded_height + 1 ) ;\n }\n }\n srcY += src_y * s -> linesize + src_x ;\n if ( v -> field_mode && v -> ref_field_type [ dir ] ) srcY += s -> current_picture_ptr -> f . linesize [ 0 ] ;\n if ( fieldmv && ! ( src_y & 1 ) ) v_edge_pos -- ;\n if ( fieldmv && ( src_y & 1 ) && src_y < 4 ) src_y -- ;\n if ( v -> rangeredfrm || ( v -> mv_mode == MV_PMODE_INTENSITY_COMP ) || s -> h_edge_pos < 13 || v_edge_pos < 23 || ( unsigned ) ( src_x - s -> mspel ) > s -> h_edge_pos - ( mx & 3 ) - 8 - s -> mspel * 2 || ( unsigned ) ( src_y - ( s -> mspel << fieldmv ) ) > v_edge_pos - ( my & 3 ) - ( ( 8 + s -> mspel * 2 ) << fieldmv ) ) {\n srcY -= s -> mspel * ( 1 + ( s -> linesize << fieldmv ) ) ;\n s -> vdsp . emulated_edge_mc ( s -> edge_emu_buffer , srcY , s -> linesize , 9 + s -> mspel * 2 , ( 9 + s -> mspel * 2 ) << fieldmv , src_x - s -> mspel , src_y - ( s -> mspel << fieldmv ) , s -> h_edge_pos , v_edge_pos ) ;\n srcY = s -> edge_emu_buffer ;\n if ( v -> rangeredfrm ) {\n int i , j ;\n uint8_t * src ;\n src = srcY ;\n for ( j = 0 ;\n j < 9 + s -> mspel * 2 ;\n j ++ ) {\n for ( i = 0 ;\n i < 9 + s -> mspel * 2 ;\n i ++ ) src [ i ] = ( ( src [ i ] - 128 ) >> 1 ) + 128 ;\n src += s -> linesize << fieldmv ;\n }\n }\n if ( v -> mv_mode == MV_PMODE_INTENSITY_COMP ) {\n int i , j ;\n uint8_t * src ;\n src = srcY ;\n for ( j = 0 ;\n j < 9 + s -> mspel * 2 ;\n j ++ ) {\n for ( i = 0 ;\n i < 9 + s -> mspel * 2 ;\n i ++ ) src [ i ] = v -> luty [ src [ i ] ] ;\n src += s -> linesize << fieldmv ;\n }\n }\n srcY += s -> mspel * ( 1 + ( s -> linesize << fieldmv ) ) ;\n }\n if ( s -> mspel ) {\n dxy = ( ( my & 3 ) << 2 ) | ( mx & 3 ) ;\n v -> vc1dsp . put_vc1_mspel_pixels_tab [ dxy ] ( s -> dest [ 0 ] + off , srcY , s -> linesize << fieldmv , v -> rnd ) ;\n }\n else {\n dxy = ( my & 2 ) | ( ( mx & 2 ) >> 1 ) ;\n if ( ! v -> rnd ) dsp -> put_pixels_tab [ 1 ] [ dxy ] ( s -> dest [ 0 ] + off , srcY , s -> linesize , 8 ) ;\n else dsp -> put_no_rnd_pixels_tab [ 1 ] [ dxy ] ( s -> dest [ 0 ] + off , srcY , s -> linesize , 8 ) ;\n }\n }"}
{"idx": 18841, "target": 0, "func": "SPL_METHOD ( SplFileInfo , getFilename ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n int path_len ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n spl_filesystem_object_get_path ( intern , & path_len TSRMLS_CC ) ;\n if ( path_len && path_len < intern -> file_name_len ) {\n RETURN_STRINGL ( intern -> file_name + path_len + 1 , intern -> file_name_len - ( path_len + 1 ) , 1 ) ;\n }\n else {\n RETURN_STRINGL ( intern -> file_name , intern -> file_name_len , 1 ) ;\n }\n }"}
{"idx": 18842, "target": 0, "func": "static void yydestruct ( const char * yymsg , int yytype , YYSTYPE * yyvaluep ) # else static void yydestruct ( yymsg , yytype , yyvaluep ) const char * yymsg ;\n int yytype ;\n YYSTYPE * yyvaluep ;\n # endif {\n YYUSE ( yyvaluep ) ;\n if ( ! yymsg ) yymsg = \"Deleting\" ;\n YY_SYMBOL_PRINT ( yymsg , yytype , yyvaluep , yylocationp ) ;\n switch ( yytype ) {\n default : break ;\n }\n }"}
{"idx": 18843, "target": 1, "func": "void ff_vdpau_h264_set_reference_frames ( H264Context * h ) {\n struct vdpau_render_state * render , * render_ref ;\n VdpReferenceFrameH264 * rf , * rf2 ;\n Picture * pic ;\n int i , list , pic_frame_idx ;\n render = ( struct vdpau_render_state * ) h -> cur_pic_ptr -> f . data [ 0 ] ;\n assert ( render ) ;\n rf = & render -> info . h264 . referenceFrames [ 0 ] ;\n # define H264_RF_COUNT FF_ARRAY_ELEMS ( render -> info . h264 . referenceFrames ) for ( list = 0 ;\n list < 2 ;\n ++ list ) {\n Picture * * lp = list ? h -> long_ref : h -> short_ref ;\n int ls = list ? 16 : h -> short_ref_count ;\n for ( i = 0 ;\n i < ls ;\n ++ i ) {\n pic = lp [ i ] ;\n if ( ! pic || ! pic -> f . reference ) continue ;\n pic_frame_idx = pic -> long_ref ? pic -> pic_id : pic -> frame_num ;\n render_ref = ( struct vdpau_render_state * ) pic -> f . data [ 0 ] ;\n assert ( render_ref ) ;\n rf2 = & render -> info . h264 . referenceFrames [ 0 ] ;\n while ( rf2 != rf ) {\n if ( ( rf2 -> surface == render_ref -> surface ) && ( rf2 -> is_long_term == pic -> long_ref ) && ( rf2 -> frame_idx == pic_frame_idx ) ) break ;\n ++ rf2 ;\n }\n if ( rf2 != rf ) {\n rf2 -> top_is_reference |= ( pic -> f . reference & PICT_TOP_FIELD ) ? VDP_TRUE : VDP_FALSE ;\n rf2 -> bottom_is_reference |= ( pic -> f . reference & PICT_BOTTOM_FIELD ) ? VDP_TRUE : VDP_FALSE ;\n continue ;\n }\n if ( rf >= & render -> info . h264 . referenceFrames [ H264_RF_COUNT ] ) continue ;\n rf -> surface = render_ref -> surface ;\n rf -> is_long_term = pic -> long_ref ;\n rf -> top_is_reference = ( pic -> f . reference & PICT_TOP_FIELD ) ? VDP_TRUE : VDP_FALSE ;\n rf -> bottom_is_reference = ( pic -> f . reference & PICT_BOTTOM_FIELD ) ? VDP_TRUE : VDP_FALSE ;\n rf -> field_order_cnt [ 0 ] = pic -> field_poc [ 0 ] ;\n rf -> field_order_cnt [ 1 ] = pic -> field_poc [ 1 ] ;\n rf -> frame_idx = pic_frame_idx ;\n ++ rf ;\n }\n }\n for ( ;\n rf < & render -> info . h264 . referenceFrames [ H264_RF_COUNT ] ;\n ++ rf ) {\n rf -> surface = VDP_INVALID_HANDLE ;\n rf -> is_long_term = 0 ;\n rf -> top_is_reference = 0 ;\n rf -> bottom_is_reference = 0 ;\n rf -> field_order_cnt [ 0 ] = 0 ;\n rf -> field_order_cnt [ 1 ] = 0 ;\n rf -> frame_idx = 0 ;\n }\n }"}
{"idx": 18844, "target": 0, "func": "static void select_delta_tables ( TrueMotion1Context * s , int delta_table_index ) {\n int i ;\n if ( delta_table_index > 3 ) return ;\n memcpy ( s -> ydt , ydts [ delta_table_index ] , 8 * sizeof ( int16_t ) ) ;\n memcpy ( s -> cdt , cdts [ delta_table_index ] , 8 * sizeof ( int16_t ) ) ;\n memcpy ( s -> fat_ydt , fat_ydts [ delta_table_index ] , 8 * sizeof ( int16_t ) ) ;\n memcpy ( s -> fat_cdt , fat_cdts [ delta_table_index ] , 8 * sizeof ( int16_t ) ) ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n s -> ydt [ i ] &= 0xFFFE ;\n s -> ydt [ i ] /= 2 ;\n }\n }"}
{"idx": 18845, "target": 0, "func": "static __inline__ int udpv6_rcv ( struct sk_buff * skb ) {\n return __udp6_lib_rcv ( skb , & udp_table , IPPROTO_UDP ) ;\n }"}
{"idx": 18846, "target": 0, "func": "static void e1000e_intrmgr_on_msix_throttling_timer ( void * opaque ) {\n E1000IntrDelayTimer * timer = opaque ;\n int idx = timer - & timer -> core -> eitr [ 0 ] ;\n assert ( msix_enabled ( timer -> core -> owner ) ) ;\n timer -> running = false ;\n if ( ! timer -> core -> eitr_intr_pending [ idx ] ) {\n trace_e1000e_irq_throttling_no_pending_vec ( idx ) ;\n return ;\n }\n trace_e1000e_irq_msix_notify_postponed_vec ( idx ) ;\n msix_notify ( timer -> core -> owner , idx ) ;\n }"}
{"idx": 18847, "target": 0, "func": "static inline void SetPixela ( const Image * restrict image , const Quantum a , Quantum * restrict pixel ) {\n if ( image -> channel_map [ aPixelChannel ] . traits != UndefinedPixelTrait ) pixel [ image -> channel_map [ aPixelChannel ] . offset ] = a ;\n }"}
{"idx": 18848, "target": 0, "func": "static int transformable ( TSHttpTxn txnp , TransformTestData * data ) {\n TSMBuffer bufp ;\n TSMLoc hdr_loc ;\n if ( TSHttpTxnServerRespGet ( txnp , & bufp , & hdr_loc ) != TS_SUCCESS ) {\n SDK_RPRINT ( data -> test , \"TSHttpTxnTransform\" , \"\" , TC_FAIL , \"[transformable]: TSHttpTxnServerRespGet return 0\" ) ;\n }\n if ( TS_HTTP_STATUS_OK == TSHttpHdrStatusGet ( bufp , hdr_loc ) ) {\n return 1 ;\n }\n return 0 ;\n }"}
{"idx": 18849, "target": 0, "func": "static int sql_real_connect ( char * host , char * database , char * user , char * password , uint silent ) {\n if ( connected ) {\n connected = 0 ;\n mysql_close ( & mysql ) ;\n }\n mysql_init ( & mysql ) ;\n if ( opt_init_command ) mysql_options ( & mysql , MYSQL_INIT_COMMAND , opt_init_command ) ;\n if ( opt_connect_timeout ) {\n uint timeout = opt_connect_timeout ;\n mysql_options ( & mysql , MYSQL_OPT_CONNECT_TIMEOUT , ( char * ) & timeout ) ;\n }\n if ( opt_compress ) mysql_options ( & mysql , MYSQL_OPT_COMPRESS , NullS ) ;\n if ( opt_secure_auth ) mysql_options ( & mysql , MYSQL_SECURE_AUTH , ( char * ) & opt_secure_auth ) ;\n if ( using_opt_local_infile ) mysql_options ( & mysql , MYSQL_OPT_LOCAL_INFILE , ( char * ) & opt_local_infile ) ;\n # if defined ( HAVE_OPENSSL ) && ! defined ( EMBEDDED_LIBRARY ) if ( opt_use_ssl ) mysql_ssl_set ( & mysql , opt_ssl_key , opt_ssl_cert , opt_ssl_ca , opt_ssl_capath , opt_ssl_cipher ) ;\n mysql_options ( & mysql , MYSQL_OPT_SSL_VERIFY_SERVER_CERT , ( char * ) & opt_ssl_verify_server_cert ) ;\n # endif if ( opt_protocol ) mysql_options ( & mysql , MYSQL_OPT_PROTOCOL , ( char * ) & opt_protocol ) ;\n # ifdef HAVE_SMEM if ( shared_memory_base_name ) mysql_options ( & mysql , MYSQL_SHARED_MEMORY_BASE_NAME , shared_memory_base_name ) ;\n # endif if ( safe_updates ) {\n char init_command [ 100 ] ;\n sprintf ( init_command , \"SET SQL_SAFE_UPDATES=1,SQL_SELECT_LIMIT=%lu,MAX_JOIN_SIZE=%lu\" , select_limit , max_join_size ) ;\n mysql_options ( & mysql , MYSQL_INIT_COMMAND , init_command ) ;\n }\n mysql_options ( & mysql , MYSQL_SET_CHARSET_NAME , default_charset ) ;\n if ( opt_plugin_dir && * opt_plugin_dir ) mysql_options ( & mysql , MYSQL_PLUGIN_DIR , opt_plugin_dir ) ;\n if ( opt_default_auth && * opt_default_auth ) mysql_options ( & mysql , MYSQL_DEFAULT_AUTH , opt_default_auth ) ;\n if ( ! mysql_real_connect ( & mysql , host , user , password , database , opt_mysql_port , opt_mysql_unix_port , connect_flag | CLIENT_MULTI_STATEMENTS ) ) {\n if ( ! silent || ( mysql_errno ( & mysql ) != CR_CONN_HOST_ERROR && mysql_errno ( & mysql ) != CR_CONNECTION_ERROR ) ) {\n ( void ) put_error ( & mysql ) ;\n ( void ) fflush ( stdout ) ;\n return ignore_errors ? - 1 : 1 ;\n }\n return - 1 ;\n }\n charset_info = mysql . charset ;\n connected = 1 ;\n # ifndef EMBEDDED_LIBRARY mysql . reconnect = debug_info_flag ;\n if ( mysql . client_flag & CLIENT_PROGRESS ) mysql_options ( & mysql , MYSQL_PROGRESS_CALLBACK , ( void * ) report_progress ) ;\n # else mysql . reconnect = 1 ;\n # endif # ifdef HAVE_READLINE build_completion_hash ( opt_rehash , 1 ) ;\n # endif return 0 ;\n }"}
{"idx": 18850, "target": 0, "func": "void check_and_dump_old_cluster ( bool live_check ) {\n if ( ! live_check ) start_postmaster ( & old_cluster , true ) ;\n get_db_and_rel_infos ( & old_cluster ) ;\n init_tablespaces ( ) ;\n get_loadable_libraries ( ) ;\n check_is_install_user ( & old_cluster ) ;\n check_proper_datallowconn ( & old_cluster ) ;\n check_for_prepared_transactions ( & old_cluster ) ;\n check_for_reg_data_type_usage ( & old_cluster ) ;\n check_for_isn_and_int8_passing_mismatch ( & old_cluster ) ;\n if ( GET_MAJOR_VERSION ( old_cluster . major_version ) <= 905 ) check_for_pg_role_prefix ( & old_cluster ) ;\n if ( GET_MAJOR_VERSION ( old_cluster . major_version ) == 904 && old_cluster . controldata . cat_ver < JSONB_FORMAT_CHANGE_CAT_VER ) check_for_jsonb_9_4_usage ( & old_cluster ) ;\n if ( GET_MAJOR_VERSION ( old_cluster . major_version ) <= 903 ) old_9_3_check_for_line_data_type_usage ( & old_cluster ) ;\n if ( GET_MAJOR_VERSION ( old_cluster . major_version ) <= 804 ) new_9_0_populate_pg_largeobject_metadata ( & old_cluster , true ) ;\n if ( ! user_opts . check ) generate_old_dump ( ) ;\n if ( ! live_check ) stop_postmaster ( false ) ;\n }"}
{"idx": 18851, "target": 0, "func": "static void pdf_run_EX ( fz_context * ctx , pdf_processor * proc ) {\n }"}
{"idx": 18852, "target": 0, "func": "guint16 de_ms_cm_3 ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n guint32 bit_offset ;\n guint8 length ;\n proto_tree * subtree ;\n proto_item * item ;\n guint32 bits_left , target_bit_offset , old_bit_offset ;\n guint64 multi_bnd_sup_fields , rsupport , multislotCapability ;\n guint64 msMeasurementCapability , msPosMethodCapPresent ;\n guint64 ecsdMultiSlotCapability , eightPskStructPresent , eightPskStructRfPowerCapPresent ;\n guint64 gsm400BandInfoPresent , gsm850AssocRadioCapabilityPresent ;\n guint64 gsm1900AssocRadioCapabilityPresent , dtmEGprsMultiSlotInfoPresent ;\n guint64 dtmEgprsMultiSlotClassPresent , singleBandSupport ;\n guint64 gsm750AssocRadioCapabilityPresent , extDtmEGprsMultiSlotInfoPresent ;\n guint64 highMultislotCapPresent , geranIuModeSupport ;\n guint64 tGsm400BandInfoPresent , tGsm900AssocRadioCapabilityPresent , dtmEGprsHighMultiSlotInfoPresent ;\n guint64 dtmEgprsHighMultiSlotClassPresent , gsm710AssocRadioCapabilityPresent ;\n guint64 tGsm810AssocRadioCapabilityPresent ;\n curr_offset = offset ;\n bit_offset = curr_offset << 3 ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset ++ ;\n item = proto_tree_add_bits_ret_val ( tree , hf_gsm_a_multi_bnd_sup_fields , tvb , bit_offset , 3 , & multi_bnd_sup_fields , ENC_BIG_ENDIAN ) ;\n subtree = proto_item_add_subtree ( item , ett_gsm_common_elem [ DE_MS_CM_3 ] ) ;\n proto_tree_add_bits_item ( subtree , hf_gsm_a_gsm1800_supported , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset ++ ;\n proto_tree_add_bits_item ( subtree , hf_gsm_a_egsm_supported , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset ++ ;\n proto_tree_add_bits_item ( subtree , hf_gsm_a_pgsm_supported , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset ++ ;\n item = proto_tree_add_bits_item ( tree , hf_gsm_a_cm3_A5_bits , tvb , bit_offset , 4 , ENC_BIG_ENDIAN ) ;\n subtree = proto_item_add_subtree ( item , ett_gsm_common_elem [ DE_MS_CM_3 ] ) ;\n proto_tree_add_bits_item ( subtree , hf_gsm_a_A5_7_algorithm_sup , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset ++ ;\n proto_tree_add_bits_item ( subtree , hf_gsm_a_A5_6_algorithm_sup , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset ++ ;\n proto_tree_add_bits_item ( subtree , hf_gsm_a_A5_5_algorithm_sup , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset ++ ;\n proto_tree_add_bits_item ( subtree , hf_gsm_a_A5_4_algorithm_sup , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset ++ ;\n switch ( multi_bnd_sup_fields ) {\n case 0 : break ;\n case 1 : case 2 : case 4 : proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , bit_offset , 4 , ENC_BIG_ENDIAN ) ;\n bit_offset += 4 ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_ass_radio_cap1 , tvb , bit_offset , 4 , ENC_BIG_ENDIAN ) ;\n bit_offset += 4 ;\n break ;\n case 5 : case 6 : proto_tree_add_bits_item ( tree , hf_gsm_a_ass_radio_cap2 , tvb , bit_offset , 4 , ENC_BIG_ENDIAN ) ;\n bit_offset += 4 ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_ass_radio_cap1 , tvb , bit_offset , 4 , ENC_BIG_ENDIAN ) ;\n bit_offset += 4 ;\n break ;\n default : break ;\n }\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_ret_val ( tree , hf_gsm_a_rsupport , tvb , bit_offset , 1 , & rsupport , ENC_BIG_ENDIAN ) ;\n bit_offset ++ ;\n if ( rsupport == 1 ) {\n proto_tree_add_bits_item ( tree , hf_gsm_a_r_capabilities , tvb , bit_offset , 3 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 3 ;\n }\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_ret_val ( tree , hf_gsm_a_multislot_capabilities , tvb , bit_offset , 1 , & multislotCapability , ENC_BIG_ENDIAN ) ;\n bit_offset ++ ;\n if ( multislotCapability == 1 ) {\n proto_tree_add_bits_item ( tree , hf_gsm_a_multislot_class , tvb , bit_offset , 5 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 5 ;\n }\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_ucs2_treatment , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_extended_measurement_cap , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_ret_val ( tree , hf_gsm_a_ms_measurement_capability , tvb , bit_offset , 1 , & msMeasurementCapability , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n if ( msMeasurementCapability == 1 ) {\n proto_tree_add_bits_item ( tree , hf_gsm_a_sms_value , tvb , bit_offset , 4 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 4 ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_sm_value , tvb , bit_offset , 4 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 4 ;\n }\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_ret_val ( tree , hf_gsm_a_ms_pos_method_cap_present , tvb , bit_offset , 1 , & msPosMethodCapPresent , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n if ( msPosMethodCapPresent == 1 ) {\n item = proto_tree_add_bits_item ( tree , hf_gsm_a_ms_pos_method , tvb , bit_offset , 5 , ENC_BIG_ENDIAN ) ;\n subtree = proto_item_add_subtree ( item , ett_gsm_common_elem [ DE_MS_CM_3 ] ) ;\n proto_tree_add_bits_item ( subtree , hf_gsm_a_ms_assisted_e_otd , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset ++ ;\n proto_tree_add_bits_item ( subtree , hf_gsm_a_ms_based_e_otd , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset ++ ;\n proto_tree_add_bits_item ( subtree , hf_gsm_a_ms_assisted_gps , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset ++ ;\n proto_tree_add_bits_item ( subtree , hf_gsm_a_ms_based_gps , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset ++ ;\n proto_tree_add_bits_item ( subtree , hf_gsm_a_ms_conventional_gps , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset ++ ;\n }\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_ret_val ( tree , hf_gsm_a_ecsd_multi_slot_capability , tvb , bit_offset , 1 , & ecsdMultiSlotCapability , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n if ( ecsdMultiSlotCapability == 1 ) {\n proto_tree_add_bits_item ( tree , hf_gsm_a_ecsd_multi_slot_class , tvb , bit_offset , 5 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 5 ;\n }\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_ret_val ( tree , hf_gsm_a_8_psk_struct_present , tvb , bit_offset , 1 , & eightPskStructPresent , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n if ( eightPskStructPresent == 1 ) {\n guint8 psk_struct_len = 3 ;\n guint32 tmp_bit_offset = bit_offset ;\n tmp_bit_offset ++ ;\n if ( tvb_get_bits8 ( tvb , tmp_bit_offset , 1 ) == 1 ) {\n psk_struct_len += 2 ;\n tmp_bit_offset += 2 ;\n }\n tmp_bit_offset ++ ;\n if ( tvb_get_bits8 ( tvb , tmp_bit_offset , 1 ) == 1 ) {\n psk_struct_len += 2 ;\n }\n item = proto_tree_add_bits_item ( tree , hf_gsm_a_8_psk_struct , tvb , bit_offset , psk_struct_len , ENC_BIG_ENDIAN ) ;\n subtree = proto_item_add_subtree ( item , ett_gsm_common_elem [ DE_MS_CM_3 ] ) ;\n old_bit_offset = bit_offset ;\n proto_tree_add_bits_item ( subtree , hf_gsm_a_modulation_capability , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n proto_tree_add_bits_ret_val ( subtree , hf_gsm_a_8_psk_rf_power_capability_1_present , tvb , bit_offset , 1 , & eightPskStructRfPowerCapPresent , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n if ( eightPskStructRfPowerCapPresent == 1 ) {\n proto_tree_add_bits_item ( subtree , hf_gsm_a_8_psk_rf_power_capability_1 , tvb , bit_offset , 2 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 2 ;\n }\n proto_tree_add_bits_ret_val ( subtree , hf_gsm_a_8_psk_rf_power_capability_2_present , tvb , bit_offset , 1 , & eightPskStructRfPowerCapPresent , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n if ( eightPskStructRfPowerCapPresent == 1 ) {\n proto_tree_add_bits_item ( subtree , hf_gsm_a_8_psk_rf_power_capability_2 , tvb , bit_offset , 2 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 2 ;\n }\n length = ( guint8 ) ( ( bit_offset - old_bit_offset ) >> 3 ) ;\n if ( ( bit_offset - old_bit_offset ) & 0x07 ) length ++ ;\n proto_item_set_len ( item , length ) ;\n }\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_ret_val ( tree , hf_gsm_a_gsm_400_band_info_present , tvb , bit_offset , 1 , & gsm400BandInfoPresent , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n if ( gsm400BandInfoPresent == 1 ) {\n proto_tree_add_bits_item ( tree , hf_gsm_a_gsm_400_bands_supported , tvb , bit_offset , 2 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 2 ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_gsm_400_assoc_radio_cap , tvb , bit_offset , 4 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 4 ;\n }\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_ret_val ( tree , hf_gsm_a_gsm_850_assoc_radio_cap_present , tvb , bit_offset , 1 , & gsm850AssocRadioCapabilityPresent , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n if ( gsm850AssocRadioCapabilityPresent == 1 ) {\n proto_tree_add_bits_item ( tree , hf_gsm_a_gsm_850_assoc_radio_cap , tvb , bit_offset , 4 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 4 ;\n }\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_ret_val ( tree , hf_gsm_a_gsm_1900_assoc_radio_cap_present , tvb , bit_offset , 1 , & gsm1900AssocRadioCapabilityPresent , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n if ( gsm1900AssocRadioCapabilityPresent == 1 ) {\n proto_tree_add_bits_item ( tree , hf_gsm_a_gsm_1900_assoc_radio_cap , tvb , bit_offset , 4 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 4 ;\n }\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_umts_fdd_rat_cap , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_umts_384_mcps_tdd_rat_cap , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_cdma_2000_rat_cap , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_ret_val ( tree , hf_gsm_a_dtm_e_gprs_multi_slot_info_present , tvb , bit_offset , 1 , & dtmEGprsMultiSlotInfoPresent , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n if ( dtmEGprsMultiSlotInfoPresent == 1 ) {\n proto_tree_add_bits_item ( tree , hf_gsm_a_dtm_gprs_multi_slot_class , tvb , bit_offset , 2 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 2 ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_single_slot_dtm , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n proto_tree_add_bits_ret_val ( tree , hf_gsm_a_dtm_egprs_multi_slot_class_present , tvb , bit_offset , 1 , & dtmEgprsMultiSlotClassPresent , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n if ( dtmEgprsMultiSlotClassPresent == 1 ) {\n proto_tree_add_bits_item ( tree , hf_gsm_a_dtm_egprs_multi_slot_class , tvb , bit_offset , 2 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 2 ;\n }\n }\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_ret_val ( tree , hf_gsm_a_single_band_support , tvb , bit_offset , 1 , & singleBandSupport , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n if ( singleBandSupport == 1 ) {\n proto_tree_add_bits_item ( tree , hf_gsm_a_gsm_band , tvb , bit_offset , 4 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 4 ;\n }\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_ret_val ( tree , hf_gsm_a_gsm_750_assoc_radio_cap_present , tvb , bit_offset , 1 , & gsm750AssocRadioCapabilityPresent , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n if ( gsm750AssocRadioCapabilityPresent == 1 ) {\n proto_tree_add_bits_item ( tree , hf_gsm_a_gsm_750_assoc_radio_cap , tvb , bit_offset , 4 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 4 ;\n }\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_umts_128_mcps_tdd_rat_cap , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_geran_feature_package_1 , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_ret_val ( tree , hf_gsm_a_ext_dtm_e_gprs_multi_slot_info_present , tvb , bit_offset , 1 , & extDtmEGprsMultiSlotInfoPresent , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n if ( extDtmEGprsMultiSlotInfoPresent == 1 ) {\n proto_tree_add_bits_item ( tree , hf_gsm_a_ext_dtm_gprs_multi_slot_class , tvb , bit_offset , 2 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 2 ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_ext_dtm_egprs_multi_slot_class , tvb , bit_offset , 2 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 2 ;\n }\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_ret_val ( tree , hf_gsm_a_high_multislot_cap_present , tvb , bit_offset , 1 , & highMultislotCapPresent , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n if ( highMultislotCapPresent == 1 ) {\n proto_tree_add_bits_item ( tree , hf_gsm_a_high_multislot_cap , tvb , bit_offset , 2 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 2 ;\n }\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_ret_val ( tree , hf_gsm_a_geran_iu_mode_support , tvb , bit_offset , 1 , & geranIuModeSupport , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n if ( geranIuModeSupport == 1 ) {\n length = tvb_get_bits8 ( tvb , bit_offset , 4 ) ;\n item = proto_tree_add_bits_item ( tree , hf_gsm_a_geran_iu_mode_cap , tvb , bit_offset , length + 4 , ENC_BIG_ENDIAN ) ;\n subtree = proto_item_add_subtree ( item , ett_gsm_common_elem [ DE_MS_CM_3 ] ) ;\n proto_tree_add_bits_item ( subtree , hf_gsm_a_geran_iu_mode_cap_length , tvb , bit_offset , 4 , ENC_BIG_ENDIAN ) ;\n bit_offset += 4 ;\n target_bit_offset = bit_offset + length ;\n proto_tree_add_bits_item ( subtree , hf_gsm_a_flo_iu_cap , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset += 1 ;\n if ( target_bit_offset > bit_offset ) {\n proto_tree_add_bits_item ( subtree , hf_gsm_a_spare_bits , tvb , bit_offset , target_bit_offset - bit_offset , ENC_BIG_ENDIAN ) ;\n bit_offset = target_bit_offset ;\n }\n }\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_geran_feature_package_2 , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n AVAILABLE_BITS_CHECK ( 2 ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_gmsk_multislot_power_prof , tvb , bit_offset , 2 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 2 ;\n AVAILABLE_BITS_CHECK ( 2 ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_8_psk_multislot_power_prof , tvb , bit_offset , 2 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 2 ;\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_ret_val ( tree , hf_gsm_a_t_gsm_400_band_info_present , tvb , bit_offset , 1 , & tGsm400BandInfoPresent , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n if ( tGsm400BandInfoPresent == 1 ) {\n proto_tree_add_bits_item ( tree , hf_gsm_a_t_gsm_400_bands_supported , tvb , bit_offset , 2 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 2 ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_t_gsm_400_assoc_radio_cap , tvb , bit_offset , 4 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 4 ;\n }\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_ret_val ( tree , hf_gsm_a_t_gsm_900_assoc_radio_cap_present , tvb , bit_offset , 1 , & tGsm900AssocRadioCapabilityPresent , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n if ( tGsm900AssocRadioCapabilityPresent == 1 ) {\n proto_tree_add_bits_item ( tree , hf_gsm_a_t_gsm_900_assoc_radio_cap , tvb , bit_offset , 4 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 4 ;\n }\n AVAILABLE_BITS_CHECK ( 2 ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_downlink_adv_receiver_perf , tvb , bit_offset , 2 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 2 ;\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_dtm_enhancements_cap , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_ret_val ( tree , hf_gsm_a_dtm_e_gprs_high_multi_slot_info_present , tvb , bit_offset , 1 , & dtmEGprsHighMultiSlotInfoPresent , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n if ( dtmEGprsHighMultiSlotInfoPresent == 1 ) {\n proto_tree_add_bits_item ( tree , hf_gsm_a_dtm_gprs_high_multi_slot_class , tvb , bit_offset , 3 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 3 ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_offset_required , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n proto_tree_add_bits_ret_val ( tree , hf_gsm_a_dtm_egprs_high_multi_slot_class_present , tvb , bit_offset , 1 , & dtmEgprsHighMultiSlotClassPresent , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n if ( dtmEgprsHighMultiSlotClassPresent == 1 ) {\n proto_tree_add_bits_item ( tree , hf_gsm_a_dtm_egprs_high_multi_slot_class , tvb , bit_offset , 3 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 3 ;\n }\n }\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_repeated_acch_cap , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_ret_val ( tree , hf_gsm_a_gsm_710_assoc_radio_cap_present , tvb , bit_offset , 1 , & gsm710AssocRadioCapabilityPresent , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n if ( gsm710AssocRadioCapabilityPresent == 1 ) {\n proto_tree_add_bits_item ( tree , hf_gsm_a_gsm_710_assoc_radio_cap , tvb , bit_offset , 4 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 4 ;\n }\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_ret_val ( tree , hf_gsm_a_t_gsm_810_assoc_radio_cap_present , tvb , bit_offset , 1 , & tGsm810AssocRadioCapabilityPresent , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n if ( tGsm810AssocRadioCapabilityPresent == 1 ) {\n proto_tree_add_bits_item ( tree , hf_gsm_a_t_gsm_810_assoc_radio_cap , tvb , bit_offset , 4 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 4 ;\n }\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_ciphering_mode_setting_cap , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_additional_positioning_caps , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_e_utra_fdd_support , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_e_utra_tdd_support , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_e_utra_meas_and_report_support , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_prio_based_resel_support , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_utra_csg_cells_reporting , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n AVAILABLE_BITS_CHECK ( 2 ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_vamos_level , tvb , bit_offset , 2 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 2 ;\n AVAILABLE_BITS_CHECK ( 2 ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_tighter_cap , tvb , bit_offset , 2 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 2 ;\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_selective_ciph_down_sacch , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n AVAILABLE_BITS_CHECK ( 2 ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_cs_to_ps_srvcc_geran_to_utra , tvb , bit_offset , 2 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 2 ;\n AVAILABLE_BITS_CHECK ( 2 ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_cs_to_ps_srvcc_geran_to_eutra , tvb , bit_offset , 2 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 2 ;\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_geran_network_sharing_support , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_eutra_wb_rsrq_support , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_er_band_support , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_utra_mfbi_support , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_eutra_mfbi_support , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_ext_tsc_set_cap_support , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n AVAILABLE_BITS_CHECK ( 1 ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_ext_earfcn_value_range , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset = bit_offset + 1 ;\n bits_left = ( ( ( len + offset ) << 3 ) - bit_offset ) & 0x07 ;\n if ( bits_left != 0 ) {\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , bit_offset , bits_left , ENC_BIG_ENDIAN ) ;\n bit_offset += bits_left ;\n }\n curr_offset = bit_offset >> 3 ;\n EXTRANEOUS_DATA_CHECK ( len , curr_offset - offset , pinfo , & ei_gsm_a_extraneous_data ) ;\n return len ;\n }"}
{"idx": 18853, "target": 1, "func": "static void _UTF7Open ( UConverter * cnv , UConverterLoadArgs * pArgs , UErrorCode * pErrorCode ) {\n if ( UCNV_GET_VERSION ( cnv ) <= 1 ) {\n cnv -> fromUnicodeStatus = UCNV_GET_VERSION ( cnv ) << 28 ;\n _UTF7Reset ( cnv , UCNV_RESET_BOTH ) ;\n }\n else {\n * pErrorCode = U_ILLEGAL_ARGUMENT_ERROR ;\n }\n }"}
{"idx": 18854, "target": 0, "func": "static uint query_cache_hits ( MYSQL * conn ) {\n MYSQL_RES * res ;\n MYSQL_ROW row ;\n int rc ;\n uint result ;\n rc = mysql_query ( conn , \"show status like 'qcache_hits'\" ) ;\n myquery ( rc ) ;\n res = mysql_use_result ( conn ) ;\n DIE_UNLESS ( res ) ;\n row = mysql_fetch_row ( res ) ;\n DIE_UNLESS ( row ) ;\n result = atoi ( row [ 1 ] ) ;\n mysql_free_result ( res ) ;\n return result ;\n }"}
{"idx": 18855, "target": 0, "func": "static const char * ep_state_name ( uint32_t state ) {\n return lookup_name ( state , ep_state_names , ARRAY_SIZE ( ep_state_names ) ) ;\n }"}
{"idx": 18856, "target": 0, "func": "static void http_chunked_readcb ( struct bufferevent * bev , void * arg ) {\n }"}
{"idx": 18857, "target": 0, "func": "static int fts_build_data ( struct fts_mail_build_context * ctx , const unsigned char * data , size_t size , bool last ) {\n if ( ( ctx -> update_ctx -> backend -> flags & FTS_BACKEND_FLAG_TOKENIZED_INPUT ) != 0 ) {\n return fts_build_tokenized ( ctx , data , size , last ) ;\n }\n else if ( ( ctx -> update_ctx -> backend -> flags & FTS_BACKEND_FLAG_BUILD_FULL_WORDS ) != 0 ) {\n return fts_build_full_words ( ctx , data , size , last ) ;\n }\n else {\n return fts_backend_update_build_more ( ctx -> update_ctx , data , size ) ;\n }\n }"}
{"idx": 18858, "target": 0, "func": "static hb_bool_t hb_font_get_glyph_contour_point_nil ( hb_font_t * font , void * font_data HB_UNUSED , hb_codepoint_t glyph , unsigned int point_index , hb_position_t * x , hb_position_t * y , void * user_data HB_UNUSED ) {\n if ( font -> parent ) {\n hb_bool_t ret = font -> parent -> get_glyph_contour_point ( glyph , point_index , x , y ) ;\n if ( ret ) font -> parent_scale_position ( x , y ) ;\n return ret ;\n }\n * x = * y = 0 ;\n return false ;\n }"}
{"idx": 18859, "target": 0, "func": "static int fts_build_body_block ( struct fts_mail_build_context * ctx , const struct message_block * block , bool last ) {\n i_assert ( block -> hdr == NULL ) ;\n return fts_build_data ( ctx , block -> data , block -> size , last ) ;\n }"}
{"idx": 18860, "target": 0, "func": "static void lsf2lsp_3 ( AMRContext * p ) {\n const uint16_t * lsf_param = p -> frame . lsf ;\n int16_t lsf_r [ LP_FILTER_ORDER ] ;\n float lsf_q [ LP_FILTER_ORDER ] ;\n const int16_t * lsf_quantizer ;\n int i , j ;\n lsf_quantizer = ( p -> cur_frame_mode == MODE_7k95 ? lsf_3_1_MODE_7k95 : lsf_3_1 ) [ lsf_param [ 0 ] ] ;\n memcpy ( lsf_r , lsf_quantizer , 3 * sizeof ( * lsf_r ) ) ;\n lsf_quantizer = lsf_3_2 [ lsf_param [ 1 ] << ( p -> cur_frame_mode <= MODE_5k15 ) ] ;\n memcpy ( lsf_r + 3 , lsf_quantizer , 3 * sizeof ( * lsf_r ) ) ;\n lsf_quantizer = ( p -> cur_frame_mode <= MODE_5k15 ? lsf_3_3_MODE_5k15 : lsf_3_3 ) [ lsf_param [ 2 ] ] ;\n memcpy ( lsf_r + 6 , lsf_quantizer , 4 * sizeof ( * lsf_r ) ) ;\n for ( i = 0 ;\n i < LP_FILTER_ORDER ;\n i ++ ) lsf_q [ i ] = ( lsf_r [ i ] + p -> prev_lsf_r [ i ] * pred_fac [ i ] ) * ( LSF_R_FAC / 8000.0 ) + lsf_3_mean [ i ] * ( 1.0 / 8000.0 ) ;\n ff_set_min_dist_lsf ( lsf_q , MIN_LSF_SPACING , LP_FILTER_ORDER ) ;\n interpolate_lsf ( p -> lsf_q , lsf_q ) ;\n memcpy ( p -> prev_lsf_r , lsf_r , LP_FILTER_ORDER * sizeof ( * lsf_r ) ) ;\n ff_acelp_lsf2lspd ( p -> lsp [ 3 ] , lsf_q , LP_FILTER_ORDER ) ;\n for ( i = 1 ;\n i <= 3 ;\n i ++ ) for ( j = 0 ;\n j < LP_FILTER_ORDER ;\n j ++ ) p -> lsp [ i - 1 ] [ j ] = p -> prev_lsp_sub4 [ j ] + ( p -> lsp [ 3 ] [ j ] - p -> prev_lsp_sub4 [ j ] ) * 0.25 * i ;\n }"}
{"idx": 18861, "target": 1, "func": "static PyObject * authGSSServerTargetName ( PyObject * self , PyObject * args ) {\n gss_server_state * state ;\n PyObject * pystate ;\n if ( ! PyArg_ParseTuple ( args , \"O\" , & pystate ) ) return NULL ;\n # if PY_MAJOR_VERSION >= 3 if ( ! PyCapsule_CheckExact ( pystate ) ) {\n # else if ( ! PyCObject_Check ( pystate ) ) {\n # endif PyErr_SetString ( PyExc_TypeError , \"Expected a context object\" ) ;\n return NULL ;\n }\n # if PY_MAJOR_VERSION >= 3 state = PyCapsule_GetPointer ( pystate , NULL ) ;\n # else state = ( gss_client_state * ) PyCObject_AsVoidPtr ( pystate ) ;\n # endif if ( state == NULL ) return NULL ;\n return Py_BuildValue ( \"s\" , state -> targetname ) ;\n }"}
{"idx": 18862, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , ClearDefaultMakesProtocolNotHandled ) {\n registry ( ) -> OnAcceptRegisterProtocolHandler ( test_protocol_handler ( ) ) ;\n registry ( ) -> ClearDefault ( \"test\" ) ;\n ASSERT_FALSE ( registry ( ) -> IsHandledProtocol ( \"test\" ) ) ;\n ASSERT_TRUE ( registry ( ) -> GetHandlerFor ( \"test\" ) . IsEmpty ( ) ) ;\n }"}
{"idx": 18863, "target": 1, "func": "SPL_METHOD ( FilesystemIterator , getFlags ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n RETURN_LONG ( intern -> flags & ( SPL_FILE_DIR_KEY_MODE_MASK | SPL_FILE_DIR_CURRENT_MODE_MASK | SPL_FILE_DIR_OTHERS_MASK ) ) ;\n }"}
{"idx": 18864, "target": 0, "func": "static void prplcb_blist_update ( PurpleBuddyList * list , PurpleBlistNode * node ) {\n if ( node -> type == PURPLE_BLIST_BUDDY_NODE ) {\n PurpleBuddy * bud = ( PurpleBuddy * ) node ;\n PurpleGroup * group = purple_buddy_get_group ( bud ) ;\n struct im_connection * ic = purple_ic_by_pa ( bud -> account ) ;\n PurpleStatus * as ;\n int flags = 0 ;\n if ( ic == NULL ) {\n return ;\n }\n if ( bud -> server_alias ) {\n imcb_rename_buddy ( ic , bud -> name , bud -> server_alias ) ;\n }\n else if ( bud -> alias ) {\n imcb_rename_buddy ( ic , bud -> name , bud -> alias ) ;\n }\n if ( group ) {\n imcb_add_buddy ( ic , bud -> name , purple_group_get_name ( group ) ) ;\n }\n flags |= purple_presence_is_online ( bud -> presence ) ? OPT_LOGGED_IN : 0 ;\n flags |= purple_presence_is_available ( bud -> presence ) ? 0 : OPT_AWAY ;\n as = purple_presence_get_active_status ( bud -> presence ) ;\n imcb_buddy_status ( ic , bud -> name , flags , purple_status_get_name ( as ) , purple_status_get_attr_string ( as , \"message\" ) ) ;\n imcb_buddy_times ( ic , bud -> name , purple_presence_get_login_time ( bud -> presence ) , purple_presence_get_idle_time ( bud -> presence ) ) ;\n }\n }"}
{"idx": 18865, "target": 0, "func": "static void _slurm_rpc_update_block ( slurm_msg_t * msg ) {\n int error_code = SLURM_SUCCESS ;\n DEF_TIMERS ;\n update_block_msg_t * block_desc_ptr = ( update_block_msg_t * ) msg -> data ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n char * name = NULL ;\n START_TIMER ;\n debug2 ( \"Processing RPC: REQUEST_UPDATE_BLOCK from uid=%d\" , uid ) ;\n if ( ! validate_super_user ( uid ) ) {\n error_code = ESLURM_USER_ID_MISSING ;\n error ( \"Security violation, UPDATE_BLOCK RPC from uid=%d\" , uid ) ;\n if ( block_desc_ptr -> bg_block_id ) {\n name = block_desc_ptr -> bg_block_id ;\n }\n else if ( block_desc_ptr -> mp_str ) {\n name = block_desc_ptr -> mp_str ;\n }\n }\n if ( error_code == SLURM_SUCCESS ) {\n if ( block_desc_ptr -> bg_block_id ) {\n error_code = select_g_update_block ( block_desc_ptr ) ;\n END_TIMER2 ( \"_slurm_rpc_update_block\" ) ;\n name = block_desc_ptr -> bg_block_id ;\n }\n else if ( block_desc_ptr -> mp_str ) {\n error_code = select_g_update_sub_node ( block_desc_ptr ) ;\n END_TIMER2 ( \"_slurm_rpc_update_subbp\" ) ;\n name = block_desc_ptr -> mp_str ;\n }\n else {\n error ( \"Unknown update for blocks\" ) ;\n error_code = SLURM_ERROR ;\n END_TIMER2 ( \"_slurm_rpc_update_block\" ) ;\n }\n }\n if ( error_code ) {\n info ( \"_slurm_rpc_update_block %s: %s\" , name , slurm_strerror ( error_code ) ) ;\n slurm_send_rc_msg ( msg , error_code ) ;\n }\n else {\n debug2 ( \"_slurm_rpc_update_block complete for %s %s\" , name , TIME_STR ) ;\n slurm_send_rc_msg ( msg , SLURM_SUCCESS ) ;\n }\n }"}
{"idx": 18866, "target": 0, "func": "unsigned long # endif # undef mul # undef mul_add # define mul_add ( r , a , word , carry ) do {\n \\ register BN_ULONG high , low ;\n \\ asm ( \"mulq %3\" \\ : \"=a\" ( low ) , \"=d\" ( high ) \\ : \"a\" ( word ) , \"m\" ( a ) \\ : \"cc\" ) ;\n \\ asm ( \"addq %2,%0;\n adcq %3,%1\" \\ : \"+r\" ( carry ) , \"+d\" ( high ) \\ : \"a\" ( low ) , \"g\" ( 0 ) \\ : \"cc\" ) ;\n \\ asm ( \"addq %2,%0;\n adcq %3,%1\" \\ : \"+m\" ( r ) , \"+d\" ( high ) \\ : \"r\" ( carry ) , \"g\" ( 0 ) \\ : \"cc\" ) ;\n \\ carry = high ;\n \\ }\n while ( 0 ) # define mul ( r , a , word , carry ) do {\n \\ register BN_ULONG high , low ;\n \\ asm ( \"mulq %3\" \\ : \"=a\" ( low ) , \"=d\" ( high ) \\ : \"a\" ( word ) , \"g\" ( a ) \\ : \"cc\" ) ;\n \\ asm ( \"addq %2,%0;\n adcq %3,%1\" \\ : \"+r\" ( carry ) , \"+d\" ( high ) \\ : \"a\" ( low ) , \"g\" ( 0 ) \\ : \"cc\" ) ;\n \\ ( r ) = carry , carry = high ;\n \\ }\n while ( 0 ) # undef sqr # define sqr ( r0 , r1 , a ) \\ asm ( \"mulq %2\" \\ : \"=a\" ( r0 ) , \"=d\" ( r1 ) \\ : \"a\" ( a ) \\ : \"cc\" ) ;\n BN_ULONG bn_mul_add_words ( BN_ULONG * rp , const BN_ULONG * ap , int num , BN_ULONG w ) {\n BN_ULONG c1 = 0 ;\n if ( num <= 0 ) return ( c1 ) ;\n while ( num & ~ 3 ) {\n mul_add ( rp [ 0 ] , ap [ 0 ] , w , c1 ) ;\n mul_add ( rp [ 1 ] , ap [ 1 ] , w , c1 ) ;\n mul_add ( rp [ 2 ] , ap [ 2 ] , w , c1 ) ;\n mul_add ( rp [ 3 ] , ap [ 3 ] , w , c1 ) ;\n ap += 4 ;\n rp += 4 ;\n num -= 4 ;\n }\n if ( num ) {\n mul_add ( rp [ 0 ] , ap [ 0 ] , w , c1 ) ;\n if ( -- num == 0 ) return c1 ;\n mul_add ( rp [ 1 ] , ap [ 1 ] , w , c1 ) ;\n if ( -- num == 0 ) return c1 ;\n mul_add ( rp [ 2 ] , ap [ 2 ] , w , c1 ) ;\n return c1 ;\n }\n return ( c1 ) ;\n }\n BN_ULONG bn_mul_words ( BN_ULONG * rp , const BN_ULONG * ap , int num , BN_ULONG w ) {\n BN_ULONG c1 = 0 ;\n if ( num <= 0 ) return ( c1 ) ;\n while ( num & ~ 3 ) {\n mul ( rp [ 0 ] , ap [ 0 ] , w , c1 ) ;\n mul ( rp [ 1 ] , ap [ 1 ] , w , c1 ) ;\n mul ( rp [ 2 ] , ap [ 2 ] , w , c1 ) ;\n mul ( rp [ 3 ] , ap [ 3 ] , w , c1 ) ;\n ap += 4 ;\n rp += 4 ;\n num -= 4 ;\n }\n if ( num ) {\n mul ( rp [ 0 ] , ap [ 0 ] , w , c1 ) ;\n if ( -- num == 0 ) return c1 ;\n mul ( rp [ 1 ] , ap [ 1 ] , w , c1 ) ;\n if ( -- num == 0 ) return c1 ;\n mul ( rp [ 2 ] , ap [ 2 ] , w , c1 ) ;\n }\n return ( c1 ) ;\n }\n void bn_sqr_words ( BN_ULONG * r , const BN_ULONG * a , int n ) {\n if ( n <= 0 ) return ;\n while ( n & ~ 3 ) {\n sqr ( r [ 0 ] , r [ 1 ] , a [ 0 ] ) ;\n sqr ( r [ 2 ] , r [ 3 ] , a [ 1 ] ) ;\n sqr ( r [ 4 ] , r [ 5 ] , a [ 2 ] ) ;\n sqr ( r [ 6 ] , r [ 7 ] , a [ 3 ] ) ;\n a += 4 ;\n r += 8 ;\n n -= 4 ;\n }\n if ( n ) {\n sqr ( r [ 0 ] , r [ 1 ] , a [ 0 ] ) ;\n if ( -- n == 0 ) return ;\n sqr ( r [ 2 ] , r [ 3 ] , a [ 1 ] ) ;\n if ( -- n == 0 ) return ;\n sqr ( r [ 4 ] , r [ 5 ] , a [ 2 ] ) ;\n }\n }\n BN_ULONG bn_div_words ( BN_ULONG h , BN_ULONG l , BN_ULONG d ) {\n BN_ULONG ret , waste ;\n asm ( \"divq %4\" : \"=a\" ( ret ) , \"=d\" ( waste ) : \"a\" ( l ) , \"d\" ( h ) , \"g\" ( d ) : \"cc\" ) ;\n return ret ;\n }\n BN_ULONG bn_add_words ( BN_ULONG * rp , const BN_ULONG * ap , const BN_ULONG * bp , int n ) {\n BN_ULONG ret ;\n size_t i = 0 ;\n if ( n <= 0 ) return 0 ;\n asm volatile ( \" subq %0,%0 \\n\" \" jmp 1f \\n\" \".p2align 4 \\n\" \"1: movq (%4,%2,8),%0 \\n\" \" adcq (%5,%2,8),%0 \\n\" \" movq %0,(%3,%2,8) \\n\" \" lea 1(%2),%2 \\n\" \" loop 1b \\n\" \" sbbq %0,%0 \\n\" : \"=&r\" ( ret ) , \"+c\" ( n ) , \"+r\" ( i ) : \"r\" ( rp ) , \"r\" ( ap ) , \"r\" ( bp ) : \"cc\" , \"memory\" ) ;\n return ret & 1 ;\n }"}
{"idx": 18867, "target": 0, "func": "int mime_field_value_get_comma_list ( const MIMEField * field , StrList * list ) {\n const char * str ;\n int len ;\n str = mime_field_value_get ( field , & len ) ;\n if ( ! field -> supports_commas ( ) ) {\n list -> append_string ( str , len ) ;\n }\n else {\n HttpCompat : : parse_tok_list ( list , 1 , str , len , ',' ) ;\n }\n return list -> count ;\n }"}
{"idx": 18868, "target": 0, "func": "static ASN1_BIT_STRING * obj_to_asn1bstr ( VALUE obj , long unused_bits ) {\n ASN1_BIT_STRING * bstr ;\n if ( unused_bits < 0 ) unused_bits = 0 ;\n StringValue ( obj ) ;\n if ( ! ( bstr = ASN1_BIT_STRING_new ( ) ) ) ossl_raise ( eASN1Error , NULL ) ;\n ASN1_BIT_STRING_set ( bstr , ( unsigned char * ) RSTRING_PTR ( obj ) , RSTRING_LENINT ( obj ) ) ;\n bstr -> flags &= ~ ( ASN1_STRING_FLAG_BITS_LEFT | 0x07 ) ;\n bstr -> flags |= ASN1_STRING_FLAG_BITS_LEFT | ( unused_bits & 0x07 ) ;\n return bstr ;\n }"}
{"idx": 18869, "target": 1, "func": "err_status_t srtp_protect ( srtp_ctx_t * ctx , void * rtp_hdr , int * pkt_octet_len ) {\n srtp_hdr_t * hdr = ( srtp_hdr_t * ) rtp_hdr ;\n uint32_t * enc_start ;\n uint32_t * auth_start ;\n unsigned int enc_octet_len = 0 ;\n xtd_seq_num_t est ;\n int delta ;\n uint8_t * auth_tag = NULL ;\n err_status_t status ;\n int tag_len ;\n srtp_stream_ctx_t * stream ;\n int prefix_len ;\n debug_print ( mod_srtp , \"function srtp_protect\" , NULL ) ;\n status = srtp_validate_rtp_header ( rtp_hdr , pkt_octet_len ) ;\n if ( status ) return status ;\n if ( * pkt_octet_len < octets_in_rtp_header ) return err_status_bad_param ;\n stream = srtp_get_stream ( ctx , hdr -> ssrc ) ;\n if ( stream == NULL ) {\n if ( ctx -> stream_template != NULL ) {\n srtp_stream_ctx_t * new_stream ;\n status = srtp_stream_clone ( ctx -> stream_template , hdr -> ssrc , & new_stream ) ;\n if ( status ) return status ;\n new_stream -> next = ctx -> stream_list ;\n ctx -> stream_list = new_stream ;\n new_stream -> direction = dir_srtp_sender ;\n stream = new_stream ;\n }\n else {\n return err_status_no_ctx ;\n }\n }\n if ( stream -> direction != dir_srtp_sender ) {\n if ( stream -> direction == dir_unknown ) {\n stream -> direction = dir_srtp_sender ;\n }\n else {\n srtp_handle_event ( ctx , stream , event_ssrc_collision ) ;\n }\n }\n if ( stream -> rtp_cipher -> algorithm == AES_128_GCM || stream -> rtp_cipher -> algorithm == AES_256_GCM ) {\n return srtp_protect_aead ( ctx , stream , rtp_hdr , ( unsigned int * ) pkt_octet_len ) ;\n }\n switch ( key_limit_update ( stream -> limit ) ) {\n case key_event_normal : break ;\n case key_event_soft_limit : srtp_handle_event ( ctx , stream , event_key_soft_limit ) ;\n break ;\n case key_event_hard_limit : srtp_handle_event ( ctx , stream , event_key_hard_limit ) ;\n return err_status_key_expired ;\n default : break ;\n }\n tag_len = auth_get_tag_length ( stream -> rtp_auth ) ;\n if ( stream -> rtp_services & sec_serv_conf ) {\n enc_start = ( uint32_t * ) hdr + uint32s_in_rtp_header + hdr -> cc ;\n if ( hdr -> x == 1 ) {\n srtp_hdr_xtnd_t * xtn_hdr = ( srtp_hdr_xtnd_t * ) enc_start ;\n enc_start += ( ntohs ( xtn_hdr -> length ) + 1 ) ;\n if ( ! ( ( uint8_t * ) enc_start < ( uint8_t * ) hdr + * pkt_octet_len ) ) return err_status_parse_err ;\n }\n enc_octet_len = ( unsigned int ) ( * pkt_octet_len - ( ( uint8_t * ) enc_start - ( uint8_t * ) hdr ) ) ;\n }\n else {\n enc_start = NULL ;\n }\n if ( stream -> rtp_services & sec_serv_auth ) {\n auth_start = ( uint32_t * ) hdr ;\n auth_tag = ( uint8_t * ) hdr + * pkt_octet_len ;\n }\n else {\n auth_start = NULL ;\n auth_tag = NULL ;\n }\n delta = rdbx_estimate_index ( & stream -> rtp_rdbx , & est , ntohs ( hdr -> seq ) ) ;\n status = rdbx_check ( & stream -> rtp_rdbx , delta ) ;\n if ( status ) {\n if ( status != err_status_replay_fail || ! stream -> allow_repeat_tx ) return status ;\n }\n else rdbx_add_index ( & stream -> rtp_rdbx , delta ) ;\n # ifdef NO_64BIT_MATH debug_print2 ( mod_srtp , \"estimated packet index: %08x%08x\" , high32 ( est ) , low32 ( est ) ) ;\n # else debug_print ( mod_srtp , \"estimated packet index: %016llx\" , est ) ;\n # endif if ( stream -> rtp_cipher -> type -> id == AES_ICM || stream -> rtp_cipher -> type -> id == AES_256_ICM ) {\n v128_t iv ;\n iv . v32 [ 0 ] = 0 ;\n iv . v32 [ 1 ] = hdr -> ssrc ;\n # ifdef NO_64BIT_MATH iv . v64 [ 1 ] = be64_to_cpu ( make64 ( ( high32 ( est ) << 16 ) | ( low32 ( est ) >> 16 ) , low32 ( est ) << 16 ) ) ;\n # else iv . v64 [ 1 ] = be64_to_cpu ( est << 16 ) ;\n # endif status = cipher_set_iv ( stream -> rtp_cipher , & iv , direction_encrypt ) ;\n }\n else {\n v128_t iv ;\n # ifdef NO_64BIT_MATH iv . v32 [ 0 ] = 0 ;\n iv . v32 [ 1 ] = 0 ;\n # else iv . v64 [ 0 ] = 0 ;\n # endif iv . v64 [ 1 ] = be64_to_cpu ( est ) ;\n status = cipher_set_iv ( stream -> rtp_cipher , & iv , direction_encrypt ) ;\n }\n if ( status ) return err_status_cipher_fail ;\n # ifdef NO_64BIT_MATH est = be64_to_cpu ( make64 ( ( high32 ( est ) << 16 ) | ( low32 ( est ) >> 16 ) , low32 ( est ) << 16 ) ) ;\n # else est = be64_to_cpu ( est << 16 ) ;\n # endif if ( auth_start ) {\n prefix_len = auth_get_prefix_length ( stream -> rtp_auth ) ;\n if ( prefix_len ) {\n status = cipher_output ( stream -> rtp_cipher , auth_tag , prefix_len ) ;\n if ( status ) return err_status_cipher_fail ;\n debug_print ( mod_srtp , \"keystream prefix: %s\" , octet_string_hex_string ( auth_tag , prefix_len ) ) ;\n }\n }\n if ( enc_start ) {\n status = cipher_encrypt ( stream -> rtp_cipher , ( uint8_t * ) enc_start , & enc_octet_len ) ;\n if ( status ) return err_status_cipher_fail ;\n }\n if ( auth_start ) {\n status = auth_start ( stream -> rtp_auth ) ;\n if ( status ) return status ;\n status = auth_update ( stream -> rtp_auth , ( uint8_t * ) auth_start , * pkt_octet_len ) ;\n if ( status ) return status ;\n debug_print ( mod_srtp , \"estimated packet index: %016llx\" , est ) ;\n status = auth_compute ( stream -> rtp_auth , ( uint8_t * ) & est , 4 , auth_tag ) ;\n debug_print ( mod_srtp , \"srtp auth tag: %s\" , octet_string_hex_string ( auth_tag , tag_len ) ) ;\n if ( status ) return err_status_auth_fail ;\n }\n if ( auth_tag ) {\n * pkt_octet_len += tag_len ;\n }\n return err_status_ok ;\n }"}
{"idx": 18870, "target": 0, "func": "static void dissect_rtp_hdr_ext_ed137a ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree ) {\n unsigned int offset = 0 ;\n unsigned int hdr_extension_len = 0 ;\n proto_item * ti = NULL ;\n proto_item * ti2 = NULL ;\n proto_tree * rtp_hext_tree = NULL ;\n proto_tree * rtp_hext_tree2 = NULL ;\n unsigned int i ;\n guint32 ext_value ;\n unsigned int ft_type = 0 ;\n hdr_extension_len = tvb_reported_length ( tvb ) / 4 ;\n if ( hdr_extension_len > 0 ) {\n unsigned int hdrext_offset = 0 ;\n if ( tree ) {\n ti = proto_tree_add_item ( tree , hf_rtp_hdr_ed137s , tvb , offset , hdr_extension_len * 4 , ENC_NA ) ;\n rtp_hext_tree = proto_item_add_subtree ( ti , ett_hdr_ext_ed137s ) ;\n }\n for ( i = 0 ;\n i < hdr_extension_len ;\n i ++ ) {\n if ( tree ) {\n ti2 = proto_tree_add_item ( rtp_hext_tree , hf_rtp_hdr_ed137a , tvb , hdrext_offset , 4 , ENC_NA ) ;\n rtp_hext_tree2 = proto_item_add_subtree ( ti2 , ett_hdr_ext_ed137a ) ;\n ext_value = tvb_get_ntohl ( tvb , hdrext_offset ) ;\n if ( RTP_ED137A_ptt_mask ( ext_value ) ) {\n col_append_str ( pinfo -> cinfo , COL_INFO , \", PTT\" ) ;\n }\n if ( RTP_ED137A_squ_mask ( ext_value ) ) {\n col_append_str ( pinfo -> cinfo , COL_INFO , \", SQU\" ) ;\n }\n proto_tree_add_item ( rtp_hext_tree2 , hf_rtp_hdr_ed137a_ptt_type , tvb , hdrext_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rtp_hext_tree2 , hf_rtp_hdr_ed137a_squ , tvb , hdrext_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rtp_hext_tree2 , hf_rtp_hdr_ed137a_ptt_id , tvb , hdrext_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rtp_hext_tree2 , hf_rtp_hdr_ed137a_pm , tvb , hdrext_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rtp_hext_tree2 , hf_rtp_hdr_ed137a_ptts , tvb , hdrext_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rtp_hext_tree2 , hf_rtp_hdr_ed137a_sct , tvb , hdrext_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rtp_hext_tree2 , hf_rtp_hdr_ed137a_reserved , tvb , hdrext_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rtp_hext_tree2 , hf_rtp_hdr_ed137a_x , tvb , hdrext_offset , 4 , ENC_BIG_ENDIAN ) ;\n if ( RTP_ED137A_extended_information ( ext_value ) ) {\n proto_tree_add_item ( rtp_hext_tree2 , hf_rtp_hdr_ed137a_ft_type , tvb , hdrext_offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rtp_hext_tree2 , hf_rtp_hdr_ed137a_ft_len , tvb , hdrext_offset , 4 , ENC_BIG_ENDIAN ) ;\n ft_type = RTP_ED137A_feature_type ( ext_value ) ;\n switch ( ft_type ) {\n default : proto_tree_add_item ( rtp_hext_tree2 , hf_rtp_hdr_ed137a_ft_value , tvb , hdrext_offset , 4 , ENC_BIG_ENDIAN ) ;\n break ;\n }\n }\n else {\n proto_tree_add_item ( rtp_hext_tree2 , hf_rtp_hdr_ed137a_x_nu , tvb , hdrext_offset , 4 , ENC_BIG_ENDIAN ) ;\n }\n }\n hdrext_offset += 4 ;\n }\n }\n }"}
{"idx": 18871, "target": 0, "func": "void jpc_ns_fwdlift_row ( jpc_fix_t * a , int numcols , int parity ) {\n register jpc_fix_t * lptr ;\n register jpc_fix_t * hptr ;\n register int n ;\n int llen ;\n llen = ( numcols + 1 - parity ) >> 1 ;\n if ( numcols > 1 ) {\n lptr = & a [ 0 ] ;\n hptr = & a [ llen ] ;\n if ( parity ) {\n jpc_fix_pluseq ( hptr [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * ALPHA ) , lptr [ 0 ] ) ) ;\n ++ hptr ;\n }\n n = numcols - llen - parity - ( parity == ( numcols & 1 ) ) ;\n while ( n -- > 0 ) {\n jpc_fix_pluseq ( hptr [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( ALPHA ) , jpc_fix_add ( lptr [ 0 ] , lptr [ 1 ] ) ) ) ;\n ++ hptr ;\n ++ lptr ;\n }\n if ( parity == ( numcols & 1 ) ) {\n jpc_fix_pluseq ( hptr [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * ALPHA ) , lptr [ 0 ] ) ) ;\n }\n lptr = & a [ 0 ] ;\n hptr = & a [ llen ] ;\n if ( ! parity ) {\n jpc_fix_pluseq ( lptr [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * BETA ) , hptr [ 0 ] ) ) ;\n ++ lptr ;\n }\n n = llen - ( ! parity ) - ( parity != ( numcols & 1 ) ) ;\n while ( n -- > 0 ) {\n jpc_fix_pluseq ( lptr [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( BETA ) , jpc_fix_add ( hptr [ 0 ] , hptr [ 1 ] ) ) ) ;\n ++ lptr ;\n ++ hptr ;\n }\n if ( parity != ( numcols & 1 ) ) {\n jpc_fix_pluseq ( lptr [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * BETA ) , hptr [ 0 ] ) ) ;\n }\n lptr = & a [ 0 ] ;\n hptr = & a [ llen ] ;\n if ( parity ) {\n jpc_fix_pluseq ( hptr [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * GAMMA ) , lptr [ 0 ] ) ) ;\n ++ hptr ;\n }\n n = numcols - llen - parity - ( parity == ( numcols & 1 ) ) ;\n while ( n -- > 0 ) {\n jpc_fix_pluseq ( hptr [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( GAMMA ) , jpc_fix_add ( lptr [ 0 ] , lptr [ 1 ] ) ) ) ;\n ++ hptr ;\n ++ lptr ;\n }\n if ( parity == ( numcols & 1 ) ) {\n jpc_fix_pluseq ( hptr [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * GAMMA ) , lptr [ 0 ] ) ) ;\n }\n lptr = & a [ 0 ] ;\n hptr = & a [ llen ] ;\n if ( ! parity ) {\n jpc_fix_pluseq ( lptr [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * DELTA ) , hptr [ 0 ] ) ) ;\n ++ lptr ;\n }\n n = llen - ( ! parity ) - ( parity != ( numcols & 1 ) ) ;\n while ( n -- > 0 ) {\n jpc_fix_pluseq ( lptr [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( DELTA ) , jpc_fix_add ( hptr [ 0 ] , hptr [ 1 ] ) ) ) ;\n ++ lptr ;\n ++ hptr ;\n }\n if ( parity != ( numcols & 1 ) ) {\n jpc_fix_pluseq ( lptr [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * DELTA ) , hptr [ 0 ] ) ) ;\n }\n # if defined ( WT_DOSCALE ) lptr = & a [ 0 ] ;\n n = llen ;\n while ( n -- > 0 ) {\n lptr [ 0 ] = jpc_fix_mul ( lptr [ 0 ] , jpc_dbltofix ( LGAIN ) ) ;\n ++ lptr ;\n }\n hptr = & a [ llen ] ;\n n = numcols - llen ;\n while ( n -- > 0 ) {\n hptr [ 0 ] = jpc_fix_mul ( hptr [ 0 ] , jpc_dbltofix ( HGAIN ) ) ;\n ++ hptr ;\n }\n # endif }\n else {\n # if defined ( WT_LENONE ) if ( parity ) {\n lptr = & a [ 0 ] ;\n lptr [ 0 ] = jpc_fix_asl ( lptr [ 0 ] , 1 ) ;\n }\n # endif }\n }"}
{"idx": 18872, "target": 0, "func": "static int dissect_spoolss_keybuffer ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n guint32 size ;\n int end_offset ;\n if ( di -> conformant_run ) return offset ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_keybuffer_size , & size ) ;\n end_offset = offset + ( size * 2 ) ;\n if ( end_offset < offset ) {\n end_offset = tvb_reported_length_remaining ( tvb , offset ) + 1 ;\n }\n while ( offset > 0 && offset < end_offset ) {\n offset = dissect_spoolss_uint16uni ( tvb , offset , pinfo , tree , drep , NULL , hf_keybuffer ) ;\n }\n return offset ;\n }"}
{"idx": 18873, "target": 0, "func": "static const char * cmd_audit_log_parts ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = _dcfg ;\n if ( is_valid_parts_specification ( ( char * ) p1 ) != 1 ) {\n return apr_psprintf ( cmd -> pool , \"Invalid parts specification for SecAuditLogParts: %s\" , p1 ) ;\n }\n dcfg -> auditlog_parts = ( char * ) p1 ;\n return NULL ;\n }"}
{"idx": 18874, "target": 0, "func": "static VALUE ossl_cipher_iv_length ( VALUE self ) {\n EVP_CIPHER_CTX * ctx ;\n int len = 0 ;\n GetCipher ( self , ctx ) ;\n # if defined ( HAVE_AUTHENTICATED_ENCRYPTION ) if ( EVP_CIPHER_CTX_flags ( ctx ) & EVP_CIPH_FLAG_AEAD_CIPHER ) len = ( int ) ( VALUE ) EVP_CIPHER_CTX_get_app_data ( ctx ) ;\n # endif if ( ! len ) len = EVP_CIPHER_CTX_iv_length ( ctx ) ;\n return INT2NUM ( len ) ;\n }"}
{"idx": 18875, "target": 0, "func": "static void Pass0Encode ( VP9_COMP * cpi , size_t * size , uint8_t * dest , unsigned int * frame_flags ) {\n if ( cpi -> oxcf . rc_mode == VPX_CBR ) {\n vp9_rc_get_one_pass_cbr_params ( cpi ) ;\n }\n else {\n vp9_rc_get_one_pass_vbr_params ( cpi ) ;\n }\n encode_frame_to_data_rate ( cpi , size , dest , frame_flags ) ;\n }"}
{"idx": 18876, "target": 0, "func": "static int32_t u_scanf_integer_handler ( UFILE * input , u_scanf_spec_info * info , ufmt_args * args , const UChar * fmt , int32_t * fmtConsumed , int32_t * argConverted ) {\n ( void ) fmt ;\n ( void ) fmtConsumed ;\n int32_t len ;\n void * num = ( void * ) ( args [ 0 ] . ptrValue ) ;\n UNumberFormat * format ;\n int32_t parsePos = 0 ;\n int32_t skipped ;\n UErrorCode status = U_ZERO_ERROR ;\n int64_t result ;\n skipped = u_scanf_skip_leading_ws ( input , info -> fPadChar ) ;\n ufile_fill_uchar_buffer ( input ) ;\n len = ( int32_t ) ( input -> str . fLimit - input -> str . fPos ) ;\n if ( info -> fWidth != - 1 ) len = ufmt_min ( len , info -> fWidth ) ;\n format = u_locbund_getNumberFormat ( & input -> str . fBundle , UNUM_DECIMAL ) ;\n if ( format == 0 ) return 0 ;\n skipped += u_scanf_skip_leading_positive_sign ( input , format , & status ) ;\n result = unum_parseInt64 ( format , input -> str . fPos , len , & parsePos , & status ) ;\n if ( ! info -> fSkipArg ) {\n if ( info -> fIsShort ) * ( int16_t * ) num = ( int16_t ) ( UINT16_MAX & result ) ;\n else if ( info -> fIsLongLong ) * ( int64_t * ) num = result ;\n else * ( int32_t * ) num = ( int32_t ) ( UINT32_MAX & result ) ;\n }\n input -> str . fPos += parsePos ;\n * argConverted = ! info -> fSkipArg ;\n return parsePos + skipped ;\n }"}
{"idx": 18877, "target": 0, "func": "static void print_xml_null_tag ( FILE * xml_file , const char * sbeg , const char * stag_atr , const char * sval , const char * line_end ) {\n fputs ( sbeg , xml_file ) ;\n fputs ( \"<\" , xml_file ) ;\n fputs ( stag_atr , xml_file ) ;\n fputs ( \"\\\"\" , xml_file ) ;\n print_quoted_xml ( xml_file , sval , strlen ( sval ) , 0 ) ;\n fputs ( \"\\\" xsi:nil=\\\"true\\\" />\" , xml_file ) ;\n fputs ( line_end , xml_file ) ;\n check_io ( xml_file ) ;\n }"}
{"idx": 18878, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ExtensionPreferenceApiTest , DataReductionProxy ) {\n EXPECT_TRUE ( RunExtensionTest ( \"preference/data_reduction_proxy\" ) ) << message_ ;\n }"}
{"idx": 18879, "target": 0, "func": "void _zip_dirent_finalize ( struct zip_dirent * zde ) {\n if ( zde -> filename_len > 0 ) {\n free ( zde -> filename ) ;\n }\n zde -> filename = NULL ;\n if ( zde -> extrafield_len > 0 ) {\n free ( zde -> extrafield ) ;\n }\n zde -> extrafield = NULL ;\n if ( zde -> comment_len > 0 ) {\n free ( zde -> comment ) ;\n }\n zde -> comment = NULL ;\n }"}
{"idx": 18880, "target": 0, "func": "static void e1000e_msix_clear_one ( E1000ECore * core , uint32_t cause , uint32_t int_cfg ) {\n if ( E1000_IVAR_ENTRY_VALID ( int_cfg ) ) {\n uint32_t vec = E1000_IVAR_ENTRY_VEC ( int_cfg ) ;\n if ( vec < E1000E_MSIX_VEC_NUM ) {\n trace_e1000e_irq_msix_pending_clearing ( cause , int_cfg , vec ) ;\n msix_clr_pending ( core -> owner , vec ) ;\n }\n else {\n trace_e1000e_wrn_msix_vec_wrong ( cause , int_cfg ) ;\n }\n }\n else {\n trace_e1000e_wrn_msix_invalid ( cause , int_cfg ) ;\n }\n }"}
{"idx": 18881, "target": 0, "func": "void free_varlist ( struct ctl_var * kv ) {\n struct ctl_var * k ;\n if ( kv ) {\n for ( k = kv ;\n ! ( k -> flags & EOV ) ;\n k ++ ) free ( ( void * ) ( intptr_t ) k -> text ) ;\n free ( ( void * ) kv ) ;\n }\n }"}
{"idx": 18882, "target": 0, "func": "static int rtp_packetize_xiph ( sout_stream_id_sys_t * id , block_t * in ) {\n int i_max = rtp_mtu ( id ) - 6 ;\n int i_count = ( in -> i_buffer + i_max - 1 ) / i_max ;\n uint8_t * p_data = in -> p_buffer ;\n int i_data = in -> i_buffer ;\n for ( int i = 0 ;\n i < i_count ;\n i ++ ) {\n int i_payload = __MIN ( i_max , i_data ) ;\n block_t * out = block_Alloc ( 18 + i_payload ) ;\n unsigned fragtype , numpkts ;\n if ( i_count == 1 ) {\n fragtype = 0 ;\n numpkts = 1 ;\n }\n else {\n numpkts = 0 ;\n if ( i == 0 ) fragtype = 1 ;\n else if ( i == i_count - 1 ) fragtype = 3 ;\n else fragtype = 2 ;\n }\n uint32_t header = ( ( XIPH_IDENT & 0xffffff ) << 8 ) | ( fragtype << 6 ) | ( 0 << 4 ) | numpkts ;\n rtp_packetize_common ( id , out , 0 , in -> i_pts ) ;\n SetDWBE ( out -> p_buffer + 12 , header ) ;\n SetWBE ( out -> p_buffer + 16 , i_payload ) ;\n memcpy ( & out -> p_buffer [ 18 ] , p_data , i_payload ) ;\n out -> i_dts = in -> i_dts + i * in -> i_length / i_count ;\n out -> i_length = in -> i_length / i_count ;\n rtp_packetize_send ( id , out ) ;\n p_data += i_payload ;\n i_data -= i_payload ;\n }\n block_Release ( in ) ;\n return VLC_SUCCESS ;\n }"}
{"idx": 18883, "target": 0, "func": "static int pfkey_dump_sp ( struct pfkey_sock * pfk ) {\n struct net * net = sock_net ( & pfk -> sk ) ;\n return xfrm_policy_walk ( net , & pfk -> dump . u . policy , dump_sp , ( void * ) pfk ) ;\n }"}
{"idx": 18884, "target": 0, "func": "static void dissect_zcl_color_control_move_color_temp ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_move_mode , tvb , * offset , 1 , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_enhanced_rate , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_color_temp_min , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_color_control_color_temp_max , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n }"}
{"idx": 18885, "target": 0, "func": "void check_command_args ( struct st_command * command , const char * arguments , const struct command_arg * args , int num_args , const char delimiter_arg ) {\n int i ;\n const char * ptr = arguments ;\n const char * start ;\n DBUG_ENTER ( \"check_command_args\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"num_args: %d\" , num_args ) ) ;\n for ( i = 0 ;\n i < num_args ;\n i ++ ) {\n const struct command_arg * arg = & args [ i ] ;\n char delimiter ;\n switch ( arg -> type ) {\n case ARG_STRING : while ( * ptr && * ptr == ' ' ) ptr ++ ;\n start = ptr ;\n delimiter = delimiter_arg ;\n if ( * ptr && strchr ( \"'`\\\"\" , * ptr ) ) {\n delimiter = * ptr ;\n start = ++ ptr ;\n }\n while ( * ptr && * ptr != delimiter ) ptr ++ ;\n if ( ptr > start ) {\n init_dynamic_string ( arg -> ds , 0 , ptr - start , 32 ) ;\n do_eval ( arg -> ds , start , ptr , FALSE ) ;\n }\n else {\n init_dynamic_string ( arg -> ds , \"\" , 0 , 0 ) ;\n }\n while ( * ptr && * ptr != delimiter_arg ) ptr ++ ;\n command -> last_argument = ( char * ) ptr ;\n if ( * ptr && * ptr == delimiter_arg ) ptr ++ ;\n DBUG_PRINT ( \"info\" , ( \"val: %s\" , arg -> ds -> str ) ) ;\n break ;\n case ARG_REST : start = ptr ;\n init_dynamic_string ( arg -> ds , 0 , command -> query_len , 256 ) ;\n do_eval ( arg -> ds , start , command -> end , FALSE ) ;\n command -> last_argument = command -> end ;\n DBUG_PRINT ( \"info\" , ( \"val: %s\" , arg -> ds -> str ) ) ;\n break ;\n default : DBUG_ASSERT ( \"Unknown argument type\" ) ;\n break ;\n }\n if ( arg -> ds -> length == 0 && arg -> required ) die ( \"Missing required argument '%s' to command '%.*s'\" , arg -> argname , command -> first_word_len , command -> query ) ;\n }\n ptr = command -> last_argument ;\n while ( ptr <= command -> end && * ptr != '#' ) {\n if ( * ptr && * ptr != ' ' ) die ( \"Extra argument '%s' passed to '%.*s'\" , ptr , command -> first_word_len , command -> query ) ;\n ptr ++ ;\n }\n DBUG_VOID_RETURN ;\n }"}
{"idx": 18886, "target": 0, "func": "static int allocate_buffers ( ALACContext * alac ) {\n int ch ;\n int buf_size = alac -> max_samples_per_frame * sizeof ( int32_t ) ;\n for ( ch = 0 ;\n ch < FFMIN ( alac -> channels , 2 ) ;\n ch ++ ) {\n FF_ALLOC_OR_GOTO ( alac -> avctx , alac -> predict_error_buffer [ ch ] , buf_size , buf_alloc_fail ) ;\n if ( alac -> sample_size == 16 ) {\n FF_ALLOC_OR_GOTO ( alac -> avctx , alac -> output_samples_buffer [ ch ] , buf_size , buf_alloc_fail ) ;\n }\n FF_ALLOC_OR_GOTO ( alac -> avctx , alac -> extra_bits_buffer [ ch ] , buf_size , buf_alloc_fail ) ;\n }\n return 0 ;\n buf_alloc_fail : alac_decode_close ( alac -> avctx ) ;\n return AVERROR ( ENOMEM ) ;\n }"}
{"idx": 18887, "target": 0, "func": "static int64_t put_header ( AVIOContext * pb , const ff_asf_guid * g ) {\n int64_t pos ;\n pos = avio_tell ( pb ) ;\n ff_put_guid ( pb , g ) ;\n avio_wl64 ( pb , 24 ) ;\n return pos ;\n }"}
{"idx": 18888, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( SitePerProcessAutofillTest , PasswordAutofillPopupPositionInsideOOPIF ) {\n SetupMainTab ( ) ;\n ASSERT_TRUE ( base : : FeatureList : : IsEnabled ( security_state : : kHttpFormWarningFeature ) ) ;\n GURL main_url ( embedded_test_server ( ) -> GetURL ( \"a.com\" , \"/iframe.html\" ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , main_url ) ;\n content : : WebContents * active_web_contents = browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) ;\n ASSERT_TRUE ( content : : ExecuteScript ( active_web_contents , base : : StringPrintf ( \"var iframe = document.querySelector('iframe');\n\" \"iframe.style.marginTop = '%dpx';\n\" \"iframe.style.marginLeft = '%dpx';\n\" , kIframeTopDisplacement , kIframeLeftDisplacement ) ) ) ;\n GURL frame_url = embedded_test_server ( ) -> GetURL ( \"b.com\" , \"/title1.html\" ) ;\n EXPECT_TRUE ( NavigateIframeToURL ( active_web_contents , \"test\" , frame_url ) ) ;\n content : : RenderFrameHost * child_frame = content : : FrameMatchingPredicate ( active_web_contents , base : : Bind ( & content : : FrameIsChildOfMainFrame ) ) ;\n FocusedEditableNodeChangedObserver focus_observer ;\n ASSERT_TRUE ( ExecuteScript ( child_frame , \"window.focus();\n\" \"var input = document.createElement('input');\n\" \"input.type = 'password';\n\" \"document.body.appendChild(input);\n\" \"input.focus();\n\" ) ) ;\n focus_observer . WaitForFocusChangeInPage ( ) ;\n content : : SimulateKeyPress ( active_web_contents , ui : : DomKey : : FromCharacter ( 'A' ) , ui : : DomCode : : US_A , ui : : VKEY_A , false , false , false , false ) ;\n autofill_client ( ) . WaitForNextPopup ( ) ;\n gfx : : Point bounds_origin ( static_cast < int > ( autofill_client ( ) . last_element_bounds ( ) . origin ( ) . x ( ) ) , static_cast < int > ( autofill_client ( ) . last_element_bounds ( ) . origin ( ) . y ( ) ) ) ;\n bounds_origin += active_web_contents -> GetRenderWidgetHostView ( ) -> GetViewBounds ( ) . OffsetFromOrigin ( ) ;\n gfx : : Vector2d error = bounds_origin - focus_observer . focused_node_bounds_in_screen ( ) ;\n EXPECT_LT ( error . Length ( ) , 1.4143f ) << \"Origin of bounds from focused node changed event is '\" << focus_observer . focused_node_bounds_in_screen ( ) . ToString ( ) << \"' but AutofillClient is reporting '\" << bounds_origin . ToString ( ) << \"'\" ;\n }"}
{"idx": 18889, "target": 1, "func": "static int rv34_decode_inter_mb_header ( RV34DecContext * r , int8_t * intra_types ) {\n MpegEncContext * s = & r -> s ;\n GetBitContext * gb = & s -> gb ;\n int mb_pos = s -> mb_x + s -> mb_y * s -> mb_stride ;\n int i , t ;\n r -> block_type = r -> decode_mb_info ( r ) ;\n if ( r -> block_type == - 1 ) return - 1 ;\n s -> current_picture_ptr -> f . mb_type [ mb_pos ] = rv34_mb_type_to_lavc [ r -> block_type ] ;\n r -> mb_type [ mb_pos ] = r -> block_type ;\n if ( r -> block_type == RV34_MB_SKIP ) {\n if ( s -> pict_type == AV_PICTURE_TYPE_P ) r -> mb_type [ mb_pos ] = RV34_MB_P_16x16 ;\n if ( s -> pict_type == AV_PICTURE_TYPE_B ) r -> mb_type [ mb_pos ] = RV34_MB_B_DIRECT ;\n }\n r -> is16 = ! ! IS_INTRA16x16 ( s -> current_picture_ptr -> f . mb_type [ mb_pos ] ) ;\n rv34_decode_mv ( r , r -> block_type ) ;\n if ( r -> block_type == RV34_MB_SKIP ) {\n fill_rectangle ( intra_types , 4 , 4 , r -> intra_types_stride , 0 , sizeof ( intra_types [ 0 ] ) ) ;\n return 0 ;\n }\n r -> chroma_vlc = 1 ;\n r -> luma_vlc = 0 ;\n if ( IS_INTRA ( s -> current_picture_ptr -> f . mb_type [ mb_pos ] ) ) {\n if ( r -> is16 ) {\n t = get_bits ( gb , 2 ) ;\n fill_rectangle ( intra_types , 4 , 4 , r -> intra_types_stride , t , sizeof ( intra_types [ 0 ] ) ) ;\n r -> luma_vlc = 2 ;\n }\n else {\n if ( r -> decode_intra_types ( r , gb , intra_types ) < 0 ) return - 1 ;\n r -> luma_vlc = 1 ;\n }\n r -> chroma_vlc = 0 ;\n r -> cur_vlcs = choose_vlc_set ( r -> si . quant , r -> si . vlc_set , 0 ) ;\n }\n else {\n for ( i = 0 ;\n i < 16 ;\n i ++ ) intra_types [ ( i & 3 ) + ( i >> 2 ) * r -> intra_types_stride ] = 0 ;\n r -> cur_vlcs = choose_vlc_set ( r -> si . quant , r -> si . vlc_set , 1 ) ;\n if ( r -> mb_type [ mb_pos ] == RV34_MB_P_MIX16x16 ) {\n r -> is16 = 1 ;\n r -> chroma_vlc = 1 ;\n r -> luma_vlc = 2 ;\n r -> cur_vlcs = choose_vlc_set ( r -> si . quant , r -> si . vlc_set , 0 ) ;\n }\n }\n return rv34_decode_cbp ( gb , r -> cur_vlcs , r -> is16 ) ;\n }"}
{"idx": 18890, "target": 1, "func": "static int sbr_x_gen ( SpectralBandReplication * sbr , float X [ 2 ] [ 38 ] [ 64 ] , const float Y0 [ 38 ] [ 64 ] [ 2 ] , const float Y1 [ 38 ] [ 64 ] [ 2 ] , const float X_low [ 32 ] [ 40 ] [ 2 ] , int ch ) {\n int k , i ;\n const int i_f = 32 ;\n const int i_Temp = FFMAX ( 2 * sbr -> data [ ch ] . t_env_num_env_old - i_f , 0 ) ;\n memset ( X , 0 , 2 * sizeof ( * X ) ) ;\n for ( k = 0 ;\n k < sbr -> kx [ 0 ] ;\n k ++ ) {\n for ( i = 0 ;\n i < i_Temp ;\n i ++ ) {\n X [ 0 ] [ i ] [ k ] = X_low [ k ] [ i + ENVELOPE_ADJUSTMENT_OFFSET ] [ 0 ] ;\n X [ 1 ] [ i ] [ k ] = X_low [ k ] [ i + ENVELOPE_ADJUSTMENT_OFFSET ] [ 1 ] ;\n }\n }\n for ( ;\n k < sbr -> kx [ 0 ] + sbr -> m [ 0 ] ;\n k ++ ) {\n for ( i = 0 ;\n i < i_Temp ;\n i ++ ) {\n X [ 0 ] [ i ] [ k ] = Y0 [ i + i_f ] [ k ] [ 0 ] ;\n X [ 1 ] [ i ] [ k ] = Y0 [ i + i_f ] [ k ] [ 1 ] ;\n }\n }\n for ( k = 0 ;\n k < sbr -> kx [ 1 ] ;\n k ++ ) {\n for ( i = i_Temp ;\n i < 38 ;\n i ++ ) {\n X [ 0 ] [ i ] [ k ] = X_low [ k ] [ i + ENVELOPE_ADJUSTMENT_OFFSET ] [ 0 ] ;\n X [ 1 ] [ i ] [ k ] = X_low [ k ] [ i + ENVELOPE_ADJUSTMENT_OFFSET ] [ 1 ] ;\n }\n }\n for ( ;\n k < sbr -> kx [ 1 ] + sbr -> m [ 1 ] ;\n k ++ ) {\n for ( i = i_Temp ;\n i < i_f ;\n i ++ ) {\n X [ 0 ] [ i ] [ k ] = Y1 [ i ] [ k ] [ 0 ] ;\n X [ 1 ] [ i ] [ k ] = Y1 [ i ] [ k ] [ 1 ] ;\n }\n }\n return 0 ;\n }"}
{"idx": 18891, "target": 0, "func": "static void slavio_timer_init_all ( hwaddr addr , qemu_irq master_irq , qemu_irq * cpu_irqs , unsigned int num_cpus ) {\n DeviceState * dev ;\n SysBusDevice * s ;\n unsigned int i ;\n dev = qdev_create ( NULL , \"slavio_timer\" ) ;\n qdev_prop_set_uint32 ( dev , \"num_cpus\" , num_cpus ) ;\n qdev_init_nofail ( dev ) ;\n s = SYS_BUS_DEVICE ( dev ) ;\n sysbus_connect_irq ( s , 0 , master_irq ) ;\n sysbus_mmio_map ( s , 0 , addr + SYS_TIMER_OFFSET ) ;\n for ( i = 0 ;\n i < MAX_CPUS ;\n i ++ ) {\n sysbus_mmio_map ( s , i + 1 , addr + ( hwaddr ) CPU_TIMER_OFFSET ( i ) ) ;\n sysbus_connect_irq ( s , i + 1 , cpu_irqs [ i ] ) ;\n }\n }"}
{"idx": 18892, "target": 0, "func": "static int dissect_h245_NoPTAudioTelephonyEventCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_NoPTAudioTelephonyEventCapability , NoPTAudioTelephonyEventCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 18893, "target": 0, "func": "static void set_good_speed_feature ( VP9_COMP * cpi , VP9_COMMON * cm , SPEED_FEATURES * sf , int speed ) {\n const int boosted = frame_is_boosted ( cpi ) ;\n sf -> adaptive_rd_thresh = 1 ;\n sf -> allow_skip_recode = 1 ;\n if ( speed >= 1 ) {\n sf -> use_square_partition_only = ! frame_is_intra_only ( cm ) ;\n sf -> less_rectangular_check = 1 ;\n if ( MIN ( cm -> width , cm -> height ) >= 720 ) sf -> disable_split_mask = cm -> show_frame ? DISABLE_ALL_SPLIT : DISABLE_ALL_INTER_SPLIT ;\n else sf -> disable_split_mask = DISABLE_COMPOUND_SPLIT ;\n sf -> use_rd_breakout = 1 ;\n sf -> adaptive_motion_search = 1 ;\n sf -> mv . auto_mv_step_size = 1 ;\n sf -> adaptive_rd_thresh = 2 ;\n sf -> mv . subpel_iters_per_step = 1 ;\n sf -> mode_skip_start = 10 ;\n sf -> adaptive_pred_interp_filter = 1 ;\n sf -> recode_loop = ALLOW_RECODE_KFARFGF ;\n sf -> intra_y_mode_mask [ TX_32X32 ] = INTRA_DC_H_V ;\n sf -> intra_uv_mode_mask [ TX_32X32 ] = INTRA_DC_H_V ;\n sf -> intra_y_mode_mask [ TX_16X16 ] = INTRA_DC_H_V ;\n sf -> intra_uv_mode_mask [ TX_16X16 ] = INTRA_DC_H_V ;\n sf -> tx_size_search_breakout = 1 ;\n if ( MIN ( cm -> width , cm -> height ) >= 720 ) sf -> partition_search_breakout_dist_thr = ( 1 << 23 ) ;\n else sf -> partition_search_breakout_dist_thr = ( 1 << 21 ) ;\n sf -> partition_search_breakout_rate_thr = 500 ;\n }\n if ( speed >= 2 ) {\n sf -> tx_size_search_method = frame_is_boosted ( cpi ) ? USE_FULL_RD : USE_LARGESTALL ;\n if ( MIN ( cm -> width , cm -> height ) >= 720 ) {\n sf -> disable_split_mask = cm -> show_frame ? DISABLE_ALL_SPLIT : DISABLE_ALL_INTER_SPLIT ;\n sf -> adaptive_pred_interp_filter = 0 ;\n }\n else {\n sf -> disable_split_mask = LAST_AND_INTRA_SPLIT_ONLY ;\n }\n sf -> reference_masking = 1 ;\n sf -> mode_search_skip_flags = FLAG_SKIP_INTRA_DIRMISMATCH | FLAG_SKIP_INTRA_BESTINTER | FLAG_SKIP_COMP_BESTINTRA | FLAG_SKIP_INTRA_LOWVAR ;\n sf -> disable_filter_search_var_thresh = 100 ;\n sf -> comp_inter_joint_search_thresh = BLOCK_SIZES ;\n sf -> auto_min_max_partition_size = CONSTRAIN_NEIGHBORING_MIN_MAX ;\n if ( MIN ( cm -> width , cm -> height ) >= 720 ) sf -> partition_search_breakout_dist_thr = ( 1 << 24 ) ;\n else sf -> partition_search_breakout_dist_thr = ( 1 << 22 ) ;\n sf -> partition_search_breakout_rate_thr = 700 ;\n }\n if ( speed >= 3 ) {\n sf -> tx_size_search_method = frame_is_intra_only ( cm ) ? USE_FULL_RD : USE_LARGESTALL ;\n if ( MIN ( cm -> width , cm -> height ) >= 720 ) {\n sf -> disable_split_mask = DISABLE_ALL_SPLIT ;\n sf -> schedule_mode_search = cm -> base_qindex < 220 ? 1 : 0 ;\n }\n else {\n sf -> max_intra_bsize = BLOCK_32X32 ;\n sf -> disable_split_mask = DISABLE_ALL_INTER_SPLIT ;\n sf -> schedule_mode_search = cm -> base_qindex < 175 ? 1 : 0 ;\n }\n sf -> adaptive_pred_interp_filter = 0 ;\n sf -> adaptive_mode_search = 1 ;\n sf -> cb_partition_search = ! boosted ;\n sf -> cb_pred_filter_search = 1 ;\n sf -> alt_ref_search_fp = 1 ;\n sf -> motion_field_mode_search = ! boosted ;\n sf -> recode_loop = ALLOW_RECODE_KFMAXBW ;\n sf -> adaptive_rd_thresh = 3 ;\n sf -> mode_skip_start = 6 ;\n sf -> intra_y_mode_mask [ TX_32X32 ] = INTRA_DC ;\n sf -> intra_uv_mode_mask [ TX_32X32 ] = INTRA_DC ;\n sf -> adaptive_interp_filter_search = 1 ;\n if ( MIN ( cm -> width , cm -> height ) >= 720 ) sf -> partition_search_breakout_dist_thr = ( 1 << 25 ) ;\n else sf -> partition_search_breakout_dist_thr = ( 1 << 23 ) ;\n sf -> partition_search_breakout_rate_thr = 1000 ;\n }\n if ( speed >= 4 ) {\n sf -> use_square_partition_only = 1 ;\n sf -> tx_size_search_method = USE_LARGESTALL ;\n sf -> disable_split_mask = DISABLE_ALL_SPLIT ;\n sf -> mv . search_method = BIGDIA ;\n sf -> mv . subpel_search_method = SUBPEL_TREE_PRUNED ;\n sf -> adaptive_rd_thresh = 4 ;\n sf -> mode_search_skip_flags |= FLAG_EARLY_TERMINATE ;\n sf -> disable_filter_search_var_thresh = 200 ;\n sf -> use_lp32x32fdct = 1 ;\n sf -> use_fast_coef_updates = ONE_LOOP_REDUCED ;\n sf -> use_fast_coef_costing = 1 ;\n if ( MIN ( cm -> width , cm -> height ) >= 720 ) sf -> partition_search_breakout_dist_thr = ( 1 << 26 ) ;\n else sf -> partition_search_breakout_dist_thr = ( 1 << 24 ) ;\n sf -> partition_search_breakout_rate_thr = 1500 ;\n }\n if ( speed >= 5 ) {\n int i ;\n sf -> partition_search_type = FIXED_PARTITION ;\n sf -> optimize_coefficients = 0 ;\n sf -> mv . search_method = HEX ;\n sf -> disable_filter_search_var_thresh = 500 ;\n for ( i = 0 ;\n i < TX_SIZES ;\n ++ i ) {\n sf -> intra_y_mode_mask [ i ] = INTRA_DC ;\n sf -> intra_uv_mode_mask [ i ] = INTRA_DC ;\n }\n cpi -> allow_encode_breakout = ENCODE_BREAKOUT_ENABLED ;\n }\n if ( speed >= 6 ) {\n sf -> mv . reduce_first_step_size = 1 ;\n }\n }"}
{"idx": 18894, "target": 0, "func": "static void long_help ( void ) {\n const char * prog ;\n const char * p ;\n prog = lafe_getprogname ( ) ;\n fflush ( stderr ) ;\n p = ( strcmp ( prog , \"bsdcpio\" ) != 0 ) ? \"(bsdcpio)\" : \"\" ;\n printf ( \"%s%s: manipulate archive files\\n\" , prog , p ) ;\n for ( p = long_help_msg ;\n * p != '\\0' ;\n p ++ ) {\n if ( * p == '%' ) {\n if ( p [ 1 ] == 'p' ) {\n fputs ( prog , stdout ) ;\n p ++ ;\n }\n else putchar ( '%' ) ;\n }\n else putchar ( * p ) ;\n }\n version ( ) ;\n }"}
{"idx": 18895, "target": 0, "func": "static void activate_parameters_install_free ( ActivateParametersInstall * parameters_install ) {\n if ( parameters_install -> slot ) {\n g_object_remove_weak_pointer ( G_OBJECT ( parameters_install -> slot ) , ( gpointer * ) & parameters_install -> slot ) ;\n }\n if ( parameters_install -> parent_window ) {\n g_object_remove_weak_pointer ( G_OBJECT ( parameters_install -> parent_window ) , ( gpointer * ) & parameters_install -> parent_window ) ;\n }\n if ( parameters_install -> proxy != NULL ) {\n g_object_unref ( parameters_install -> proxy ) ;\n }\n nautilus_file_unref ( parameters_install -> file ) ;\n nautilus_file_list_free ( parameters_install -> files ) ;\n g_free ( parameters_install -> activation_directory ) ;\n g_free ( parameters_install -> uri ) ;\n g_free ( parameters_install ) ;\n }"}
{"idx": 18896, "target": 0, "func": "static Datum ExecEvalXml ( XmlExprState * xmlExpr , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n XmlExpr * xexpr = ( XmlExpr * ) xmlExpr -> xprstate . expr ;\n Datum value ;\n bool isnull ;\n ListCell * arg ;\n ListCell * narg ;\n if ( isDone ) * isDone = ExprSingleResult ;\n * isNull = true ;\n switch ( xexpr -> op ) {\n case IS_XMLCONCAT : {\n List * values = NIL ;\n foreach ( arg , xmlExpr -> args ) {\n ExprState * e = ( ExprState * ) lfirst ( arg ) ;\n value = ExecEvalExpr ( e , econtext , & isnull , NULL ) ;\n if ( ! isnull ) values = lappend ( values , DatumGetPointer ( value ) ) ;\n }\n if ( list_length ( values ) > 0 ) {\n * isNull = false ;\n return PointerGetDatum ( xmlconcat ( values ) ) ;\n }\n else return ( Datum ) 0 ;\n }\n break ;\n case IS_XMLFOREST : {\n StringInfoData buf ;\n initStringInfo ( & buf ) ;\n forboth ( arg , xmlExpr -> named_args , narg , xexpr -> arg_names ) {\n ExprState * e = ( ExprState * ) lfirst ( arg ) ;\n char * argname = strVal ( lfirst ( narg ) ) ;\n value = ExecEvalExpr ( e , econtext , & isnull , NULL ) ;\n if ( ! isnull ) {\n appendStringInfo ( & buf , \"<%s>%s</%s>\" , argname , map_sql_value_to_xml_value ( value , exprType ( ( Node * ) e -> expr ) , true ) , argname ) ;\n * isNull = false ;\n }\n }\n if ( * isNull ) {\n pfree ( buf . data ) ;\n return ( Datum ) 0 ;\n }\n else {\n text * result ;\n result = cstring_to_text_with_len ( buf . data , buf . len ) ;\n pfree ( buf . data ) ;\n return PointerGetDatum ( result ) ;\n }\n }\n break ;\n case IS_XMLELEMENT : * isNull = false ;\n return PointerGetDatum ( xmlelement ( xmlExpr , econtext ) ) ;\n break ;\n case IS_XMLPARSE : {\n ExprState * e ;\n text * data ;\n bool preserve_whitespace ;\n Assert ( list_length ( xmlExpr -> args ) == 2 ) ;\n e = ( ExprState * ) linitial ( xmlExpr -> args ) ;\n value = ExecEvalExpr ( e , econtext , & isnull , NULL ) ;\n if ( isnull ) return ( Datum ) 0 ;\n data = DatumGetTextP ( value ) ;\n e = ( ExprState * ) lsecond ( xmlExpr -> args ) ;\n value = ExecEvalExpr ( e , econtext , & isnull , NULL ) ;\n if ( isnull ) return ( Datum ) 0 ;\n preserve_whitespace = DatumGetBool ( value ) ;\n * isNull = false ;\n return PointerGetDatum ( xmlparse ( data , xexpr -> xmloption , preserve_whitespace ) ) ;\n }\n break ;\n case IS_XMLPI : {\n ExprState * e ;\n text * arg ;\n Assert ( list_length ( xmlExpr -> args ) <= 1 ) ;\n if ( xmlExpr -> args ) {\n e = ( ExprState * ) linitial ( xmlExpr -> args ) ;\n value = ExecEvalExpr ( e , econtext , & isnull , NULL ) ;\n if ( isnull ) arg = NULL ;\n else arg = DatumGetTextP ( value ) ;\n }\n else {\n arg = NULL ;\n isnull = false ;\n }\n return PointerGetDatum ( xmlpi ( xexpr -> name , arg , isnull , isNull ) ) ;\n }\n break ;\n case IS_XMLROOT : {\n ExprState * e ;\n xmltype * data ;\n text * version ;\n int standalone ;\n Assert ( list_length ( xmlExpr -> args ) == 3 ) ;\n e = ( ExprState * ) linitial ( xmlExpr -> args ) ;\n value = ExecEvalExpr ( e , econtext , & isnull , NULL ) ;\n if ( isnull ) return ( Datum ) 0 ;\n data = DatumGetXmlP ( value ) ;\n e = ( ExprState * ) lsecond ( xmlExpr -> args ) ;\n value = ExecEvalExpr ( e , econtext , & isnull , NULL ) ;\n if ( isnull ) version = NULL ;\n else version = DatumGetTextP ( value ) ;\n e = ( ExprState * ) lthird ( xmlExpr -> args ) ;\n value = ExecEvalExpr ( e , econtext , & isnull , NULL ) ;\n standalone = DatumGetInt32 ( value ) ;\n * isNull = false ;\n return PointerGetDatum ( xmlroot ( data , version , standalone ) ) ;\n }\n break ;\n case IS_XMLSERIALIZE : {\n ExprState * e ;\n Assert ( list_length ( xmlExpr -> args ) == 1 ) ;\n e = ( ExprState * ) linitial ( xmlExpr -> args ) ;\n value = ExecEvalExpr ( e , econtext , & isnull , NULL ) ;\n if ( isnull ) return ( Datum ) 0 ;\n * isNull = false ;\n return PointerGetDatum ( xmltotext_with_xmloption ( DatumGetXmlP ( value ) , xexpr -> xmloption ) ) ;\n }\n break ;\n case IS_DOCUMENT : {\n ExprState * e ;\n Assert ( list_length ( xmlExpr -> args ) == 1 ) ;\n e = ( ExprState * ) linitial ( xmlExpr -> args ) ;\n value = ExecEvalExpr ( e , econtext , & isnull , NULL ) ;\n if ( isnull ) return ( Datum ) 0 ;\n else {\n * isNull = false ;\n return BoolGetDatum ( xml_is_document ( DatumGetXmlP ( value ) ) ) ;\n }\n }\n break ;\n }\n elog ( ERROR , \"unrecognized XML operation\" ) ;\n return ( Datum ) 0 ;\n }"}
{"idx": 18897, "target": 0, "func": "static int dissect_AllJoyn_ardp ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n alljoyn_ardp_tree_data tree_data = {\n 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }\n ;\n gint packet_length = tvb_reported_length ( tvb ) ;\n proto_item * alljoyn_item = NULL ;\n gboolean fragmentedPacket = FALSE ;\n if ( protocol_is_alljoyn_message ( tvb , 0 , FALSE ) ) {\n return dissect_AllJoyn_message ( tvb , pinfo , tree , 0 ) ;\n }\n if ( ! protocol_is_ardp ( tvb ) ) {\n return 0 ;\n }\n pinfo -> desegment_len = 0 ;\n alljoyn_item = proto_tree_add_item ( tree , proto_AllJoyn_ardp , tvb , 0 , - 1 , ENC_NA ) ;\n tree_data . alljoyn_tree = proto_item_add_subtree ( alljoyn_item , ett_alljoyn_ardp ) ;\n ardp_parse_header ( tvb , pinfo , & tree_data ) ;\n if ( pinfo -> desegment_len != 0 ) {\n return tree_data . offset ;\n }\n if ( tree_data . offset != 0 ) {\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"ALLJOYN-ARDP\" ) ;\n }\n if ( tree_data . offset < packet_length ) {\n gint return_value = 0 ;\n if ( protocol_is_alljoyn_message ( tvb , tree_data . offset , TRUE ) ) {\n return_value = dissect_AllJoyn_message ( tvb , pinfo , tree , tree_data . offset ) ;\n }\n else {\n fragmentedPacket = ! tree_data . syn && ( tree_data . sequence > tree_data . start_sequence ) ;\n }\n if ( return_value > tree_data . offset ) {\n return return_value ;\n }\n }\n col_clear ( pinfo -> cinfo , COL_INFO ) ;\n col_append_str ( pinfo -> cinfo , COL_INFO , \"flags:\" ) ;\n if ( tree_data . syn ) {\n col_append_str ( pinfo -> cinfo , COL_INFO , \" SYN\" ) ;\n }\n if ( tree_data . ack ) {\n col_append_str ( pinfo -> cinfo , COL_INFO , \" ACK\" ) ;\n }\n if ( tree_data . eak ) {\n col_append_str ( pinfo -> cinfo , COL_INFO , \" EAK\" ) ;\n }\n if ( tree_data . rst ) {\n col_append_str ( pinfo -> cinfo , COL_INFO , \" RST\" ) ;\n }\n if ( tree_data . nul ) {\n col_append_str ( pinfo -> cinfo , COL_INFO , \" NUL\" ) ;\n }\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" SEQ: %10u\" , tree_data . sequence ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" ACK: %10u\" , tree_data . acknowledge ) ;\n if ( fragmentedPacket ) {\n guint fragment = ( tree_data . sequence - tree_data . start_sequence ) + 1 ;\n col_append_sep_fstr ( pinfo -> cinfo , COL_INFO , NULL , \"Fragment %d of %d for a previous ALLJOYN message\" , fragment , tree_data . fragment_count ) ;\n }\n return tree_data . offset ;\n }"}
{"idx": 18898, "target": 0, "func": "static struct isoent * isoent_new ( struct isofile * file ) {\n struct isoent * isoent ;\n static const struct archive_rb_tree_ops rb_ops = {\n isoent_cmp_node , isoent_cmp_key , }\n ;\n isoent = calloc ( 1 , sizeof ( * isoent ) ) ;\n if ( isoent == NULL ) return ( NULL ) ;\n isoent -> file = file ;\n isoent -> children . first = NULL ;\n isoent -> children . last = & ( isoent -> children . first ) ;\n __archive_rb_tree_init ( & ( isoent -> rbtree ) , & rb_ops ) ;\n isoent -> subdirs . first = NULL ;\n isoent -> subdirs . last = & ( isoent -> subdirs . first ) ;\n isoent -> extr_rec_list . first = NULL ;\n isoent -> extr_rec_list . last = & ( isoent -> extr_rec_list . first ) ;\n isoent -> extr_rec_list . current = NULL ;\n if ( archive_entry_filetype ( file -> entry ) == AE_IFDIR ) isoent -> dir = 1 ;\n return ( isoent ) ;\n }"}
{"idx": 18899, "target": 0, "func": "static void update_consonant_positions ( const hb_ot_shape_plan_t * plan , hb_font_t * font , hb_buffer_t * buffer ) {\n const indic_shape_plan_t * indic_plan = ( const indic_shape_plan_t * ) plan -> data ;\n if ( indic_plan -> config -> base_pos != BASE_POS_LAST ) return ;\n hb_codepoint_t virama ;\n if ( indic_plan -> get_virama_glyph ( font , & virama ) ) {\n hb_face_t * face = font -> face ;\n unsigned int count = buffer -> len ;\n hb_glyph_info_t * info = buffer -> info ;\n for ( unsigned int i = 0 ;\n i < count ;\n i ++ ) if ( info [ i ] . indic_position ( ) == POS_BASE_C ) {\n hb_codepoint_t consonant = info [ i ] . codepoint ;\n info [ i ] . indic_position ( ) = consonant_position_from_face ( indic_plan , consonant , virama , face ) ;\n }\n }\n }"}
{"idx": 18900, "target": 0, "func": "static inline int padr_bcast ( PCNetState * s , const uint8_t * buf , int size ) {\n static const uint8_t BCAST [ 6 ] = {\n 0xff , 0xff , 0xff , 0xff , 0xff , 0xff }\n ;\n struct qemu_ether_header * hdr = ( void * ) buf ;\n int result = ! CSR_DRCVBC ( s ) && ! memcmp ( hdr -> ether_dhost , BCAST , 6 ) ;\n # ifdef PCNET_DEBUG_MATCH printf ( \"padr_bcast result=%d\\n\" , result ) ;\n # endif return result ;\n }"}
{"idx": 18901, "target": 0, "func": "static void test_fetch_short ( ) {\n int rc ;\n myheader ( \"test_fetch_short\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_bind_fetch\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_bind_fetch(c1 smallint unsigned, \\ c2 smallint, \\ c3 smallint unsigned, \\ c4 smallint, \\ c5 smallint, \\ c6 smallint, \\ c7 smallint unsigned)\" ) ;\n myquery ( rc ) ;\n bind_fetch ( 5 ) ;\n }"}
{"idx": 18902, "target": 0, "func": "static char * main_format_rate ( xoff_t bytes , long millis , shortbuf * buf ) {\n xoff_t r = ( xoff_t ) ( 1.0 * bytes / ( 1.0 * millis / 1000.0 ) ) ;\n static shortbuf lbuf ;\n main_format_bcnt ( r , & lbuf ) ;\n short_sprintf ( * buf , \"%s/s\" , lbuf . buf ) ;\n return buf -> buf ;\n }"}
{"idx": 18903, "target": 0, "func": "static int virtio_balloon_init_pci ( PCIDevice * pci_dev ) {\n VirtIOPCIProxy * proxy = DO_UPCAST ( VirtIOPCIProxy , pci_dev , pci_dev ) ;\n VirtIODevice * vdev ;\n vdev = virtio_balloon_init ( & pci_dev -> qdev ) ;\n virtio_init_pci ( proxy , vdev , PCI_VENDOR_ID_REDHAT_QUMRANET , PCI_DEVICE_ID_VIRTIO_BALLOON , PCI_CLASS_MEMORY_RAM , 0x00 ) ;\n return 0 ;\n }"}
{"idx": 18904, "target": 0, "func": "unsigned short _zip_read2 ( unsigned char * * a ) {\n unsigned short ret ;\n ret = ( * a ) [ 0 ] + ( ( * a ) [ 1 ] << 8 ) ;\n * a += 2 ;\n return ret ;\n }"}
{"idx": 18905, "target": 0, "func": "static void hostnames ( struct parse * pcmd , FILE * fp ) {\n if ( pcmd -> nargs == 0 ) {\n if ( showhostnames ) ( void ) fprintf ( fp , \"hostnames being shown\\n\" ) ;\n else ( void ) fprintf ( fp , \"hostnames not being shown\\n\" ) ;\n }\n else {\n if ( STREQ ( pcmd -> argval [ 0 ] . string , \"yes\" ) ) showhostnames = 1 ;\n else if ( STREQ ( pcmd -> argval [ 0 ] . string , \"no\" ) ) showhostnames = 0 ;\n else ( void ) fprintf ( stderr , \"What?\\n\" ) ;\n }\n }"}
{"idx": 18906, "target": 0, "func": "static uint64_t gic_thiscpu_read ( void * opaque , hwaddr addr , unsigned size ) {\n GICState * s = ( GICState * ) opaque ;\n return gic_cpu_read ( s , gic_get_current_cpu ( s ) , addr ) ;\n }"}
{"idx": 18907, "target": 0, "func": "static int cine_read_probe ( AVProbeData * p ) {\n int HeaderSize ;\n if ( p -> buf [ 0 ] == 'C' && p -> buf [ 1 ] == 'I' && ( HeaderSize = AV_RL16 ( p -> buf + 2 ) ) >= 0x2C && AV_RL16 ( p -> buf + 4 ) <= CC_UNINT && AV_RL16 ( p -> buf + 6 ) <= 1 && AV_RL32 ( p -> buf + 20 ) && AV_RL32 ( p -> buf + 24 ) >= HeaderSize && AV_RL32 ( p -> buf + 28 ) >= HeaderSize && AV_RL32 ( p -> buf + 32 ) >= HeaderSize ) return AVPROBE_SCORE_MAX ;\n return 0 ;\n }"}
{"idx": 18908, "target": 0, "func": "static uint32_t virtio_pci_config_readl ( void * opaque , uint32_t addr ) {\n VirtIOPCIProxy * proxy = opaque ;\n uint32_t config = VIRTIO_PCI_CONFIG ( & proxy -> pci_dev ) ;\n addr -= proxy -> addr ;\n if ( addr < config ) return virtio_ioport_read ( proxy , addr ) ;\n addr -= config ;\n return virtio_config_readl ( proxy -> vdev , addr ) ;\n }"}
{"idx": 18909, "target": 0, "func": "static void char_out ( int c , GifCtx * ctx ) {\n ctx -> accum [ ctx -> a_count ++ ] = c ;\n if ( ctx -> a_count >= 254 ) {\n flush_char ( ctx ) ;\n }\n }"}
{"idx": 18910, "target": 0, "func": "DSA * d2i_DSA_PUBKEY_fp ( FILE * fp , DSA * * dsa ) {\n return ASN1_d2i_fp_of ( DSA , DSA_new , d2i_DSA_PUBKEY , fp , dsa ) ;\n }"}
{"idx": 18911, "target": 0, "func": "static int matroska_resync ( MatroskaDemuxContext * matroska , int64_t last_pos ) {\n AVIOContext * pb = matroska -> ctx -> pb ;\n uint32_t id ;\n matroska -> current_id = 0 ;\n matroska -> num_levels = 0 ;\n if ( avio_seek ( pb , last_pos + 1 , SEEK_SET ) < 0 ) goto eof ;\n id = avio_rb32 ( pb ) ;\n while ( ! pb -> eof_reached ) {\n if ( id == MATROSKA_ID_INFO || id == MATROSKA_ID_TRACKS || id == MATROSKA_ID_CUES || id == MATROSKA_ID_TAGS || id == MATROSKA_ID_SEEKHEAD || id == MATROSKA_ID_ATTACHMENTS || id == MATROSKA_ID_CLUSTER || id == MATROSKA_ID_CHAPTERS ) {\n matroska -> current_id = id ;\n return 0 ;\n }\n id = ( id << 8 ) | avio_r8 ( pb ) ;\n }\n eof : matroska -> done = 1 ;\n return AVERROR_EOF ;\n }"}
{"idx": 18912, "target": 0, "func": "void vp8_subtract_mbuv_c ( short * diff , unsigned char * usrc , unsigned char * vsrc , int src_stride , unsigned char * upred , unsigned char * vpred , int pred_stride ) {\n short * udiff = diff + 256 ;\n short * vdiff = diff + 320 ;\n int r , c ;\n for ( r = 0 ;\n r < 8 ;\n r ++ ) {\n for ( c = 0 ;\n c < 8 ;\n c ++ ) {\n udiff [ c ] = usrc [ c ] - upred [ c ] ;\n }\n udiff += 8 ;\n upred += pred_stride ;\n usrc += src_stride ;\n }\n for ( r = 0 ;\n r < 8 ;\n r ++ ) {\n for ( c = 0 ;\n c < 8 ;\n c ++ ) {\n vdiff [ c ] = vsrc [ c ] - vpred [ c ] ;\n }\n vdiff += 8 ;\n vpred += pred_stride ;\n vsrc += src_stride ;\n }\n }"}
{"idx": 18913, "target": 1, "func": "static int dissect_h225_T_oid ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 871 \"./asn1/h225/h225.cnf\" const gchar * oid_str = NULL ;\n gef_ctx_t * gefx ;\n offset = dissect_per_object_identifier_str ( tvb , offset , actx , tree , hf_index , & oid_str ) ;\n gefx = gef_ctx_get ( actx -> private_data ) ;\n if ( gefx ) gefx -> id = oid_str ;\n return offset ;\n }"}
{"idx": 18914, "target": 0, "func": "int qemuMonitorJSONDeleteSnapshot ( qemuMonitorPtr mon , const char * name ) {\n int ret ;\n virJSONValuePtr cmd ;\n virJSONValuePtr reply = NULL ;\n cmd = qemuMonitorJSONMakeCommand ( \"delvm\" , \"s:name\" , name , NULL ) ;\n if ( ! cmd ) return - 1 ;\n if ( ( ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ) < 0 ) goto cleanup ;\n if ( qemuMonitorJSONHasError ( reply , \"CommandNotFound\" ) && qemuMonitorCheckHMP ( mon , \"delvm\" ) ) {\n VIR_DEBUG ( \"delvm command not found, trying HMP\" ) ;\n ret = qemuMonitorTextDeleteSnapshot ( mon , name ) ;\n goto cleanup ;\n }\n ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n cleanup : virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 18915, "target": 0, "func": "static int dissect_h245_OCTET_STRING_SIZE_1 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 1 , 1 , FALSE , NULL ) ;\n return offset ;\n }"}
{"idx": 18916, "target": 0, "func": "PHP_FUNCTION ( locale_get_script ) {\n get_icu_value_src_php ( LOC_SCRIPT_TAG , INTERNAL_FUNCTION_PARAM_PASSTHRU ) ;\n }"}
{"idx": 18917, "target": 0, "func": "void exsltDynRegister ( void ) {\n xsltRegisterExtModuleFunction ( ( const xmlChar * ) \"evaluate\" , EXSLT_DYNAMIC_NAMESPACE , exsltDynEvaluateFunction ) ;\n xsltRegisterExtModuleFunction ( ( const xmlChar * ) \"map\" , EXSLT_DYNAMIC_NAMESPACE , exsltDynMapFunction ) ;\n }"}
{"idx": 18918, "target": 0, "func": "static inline const unsigned char * PushQuantumPixel ( QuantumInfo * quantum_info , const unsigned char * magick_restrict pixels , unsigned int * quantum ) {\n register ssize_t i ;\n register size_t quantum_bits ;\n * quantum = ( QuantumAny ) 0 ;\n for ( i = ( ssize_t ) quantum_info -> depth ;\n i > 0L ;\n ) {\n if ( quantum_info -> state . bits == 0UL ) {\n quantum_info -> state . pixel = ( * pixels ++ ) ;\n quantum_info -> state . bits = 8UL ;\n }\n quantum_bits = ( size_t ) i ;\n if ( quantum_bits > quantum_info -> state . bits ) quantum_bits = quantum_info -> state . bits ;\n i -= ( ssize_t ) quantum_bits ;\n quantum_info -> state . bits -= quantum_bits ;\n * quantum = ( unsigned int ) ( ( * quantum << quantum_bits ) | ( ( quantum_info -> state . pixel >> quantum_info -> state . bits ) & ~ ( ( ~ 0UL ) << quantum_bits ) ) ) ;\n }\n return ( pixels ) ;\n }"}
{"idx": 18919, "target": 0, "func": "void dec_connection_count ( THD * thd ) {\n mysql_mutex_lock ( & LOCK_connection_count ) ;\n ( * thd -> scheduler -> connection_count ) -- ;\n mysql_mutex_unlock ( & LOCK_connection_count ) ;\n }"}
{"idx": 18920, "target": 0, "func": "fz_colorspace * fz_device_cmyk ( fz_context * ctx ) {\n return ctx -> colorspace -> cmyk ;\n }"}
{"idx": 18921, "target": 0, "func": "static guint8 fach_fdd_tctf ( guint8 hdr , guint16 * bit_offs ) {\n guint8 tctf ;\n tctf = hdr >> 6 ;\n switch ( tctf ) {\n case TCTF_BCCH_FACH_FDD : case TCTF_DCCH_DTCH_FACH_FDD : * bit_offs = 2 ;\n return tctf ;\n }\n tctf = hdr >> 4 ;\n switch ( tctf ) {\n case TCTF_MTCH_FACH_FDD : * bit_offs = 4 ;\n return tctf ;\n }\n * bit_offs = 8 ;\n tctf = hdr ;\n switch ( tctf ) {\n case TCTF_CCCH_FACH_FDD : case TCTF_MCCH_FACH_FDD : case TCTF_MSCH_FACH_FDD : case TCTF_CTCH_FACH_FDD : return tctf ;\n default : return tctf ;\n }\n }"}
{"idx": 18922, "target": 0, "func": "void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 ) sadMxN ( 16 , 32 ) sadMxNx4D ( 16 , 32 ) sadMxN ( 16 , 16 ) sadMxNxK ( 16 , 16 , 3 ) sadMxNxK ( 16 , 16 , 8 ) sadMxNx4D ( 16 , 16 ) sadMxN ( 16 , 8 ) sadMxNxK ( 16 , 8 , 3 ) sadMxNxK ( 16 , 8 , 8 ) sadMxNx4D ( 16 , 8 ) sadMxN ( 8 , 16 ) sadMxNxK ( 8 , 16 , 3 ) sadMxNxK ( 8 , 16 , 8 ) sadMxNx4D ( 8 , 16 ) sadMxN ( 8 , 8 ) sadMxNxK ( 8 , 8 , 3 ) sadMxNxK ( 8 , 8 , 8 )"}
{"idx": 18923, "target": 1, "func": "static inline int direct_search ( MpegEncContext * s , int mb_x , int mb_y ) {\n MotionEstContext * const c = & s -> me ;\n int P [ 10 ] [ 2 ] ;\n const int mot_stride = s -> mb_stride ;\n const int mot_xy = mb_y * mot_stride + mb_x ;\n const int shift = 1 + s -> quarter_sample ;\n int dmin , i ;\n const int time_pp = s -> pp_time ;\n const int time_pb = s -> pb_time ;\n int mx , my , xmin , xmax , ymin , ymax ;\n int16_t ( * mv_table ) [ 2 ] = s -> b_direct_mv_table ;\n c -> current_mv_penalty = c -> mv_penalty [ 1 ] + MAX_MV ;\n ymin = xmin = ( - 32 ) >> shift ;\n ymax = xmax = 31 >> shift ;\n if ( IS_8X8 ( s -> next_picture . f . mb_type [ mot_xy ] ) ) {\n s -> mv_type = MV_TYPE_8X8 ;\n }\n else {\n s -> mv_type = MV_TYPE_16X16 ;\n }\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n int index = s -> block_index [ i ] ;\n int min , max ;\n c -> co_located_mv [ i ] [ 0 ] = s -> next_picture . f . motion_val [ 0 ] [ index ] [ 0 ] ;\n c -> co_located_mv [ i ] [ 1 ] = s -> next_picture . f . motion_val [ 0 ] [ index ] [ 1 ] ;\n c -> direct_basis_mv [ i ] [ 0 ] = c -> co_located_mv [ i ] [ 0 ] * time_pb / time_pp + ( ( i & 1 ) << ( shift + 3 ) ) ;\n c -> direct_basis_mv [ i ] [ 1 ] = c -> co_located_mv [ i ] [ 1 ] * time_pb / time_pp + ( ( i >> 1 ) << ( shift + 3 ) ) ;\n max = FFMAX ( c -> direct_basis_mv [ i ] [ 0 ] , c -> direct_basis_mv [ i ] [ 0 ] - c -> co_located_mv [ i ] [ 0 ] ) >> shift ;\n min = FFMIN ( c -> direct_basis_mv [ i ] [ 0 ] , c -> direct_basis_mv [ i ] [ 0 ] - c -> co_located_mv [ i ] [ 0 ] ) >> shift ;\n max += 16 * mb_x + 1 ;\n min += 16 * mb_x - 1 ;\n xmax = FFMIN ( xmax , s -> width - max ) ;\n xmin = FFMAX ( xmin , - 16 - min ) ;\n max = FFMAX ( c -> direct_basis_mv [ i ] [ 1 ] , c -> direct_basis_mv [ i ] [ 1 ] - c -> co_located_mv [ i ] [ 1 ] ) >> shift ;\n min = FFMIN ( c -> direct_basis_mv [ i ] [ 1 ] , c -> direct_basis_mv [ i ] [ 1 ] - c -> co_located_mv [ i ] [ 1 ] ) >> shift ;\n max += 16 * mb_y + 1 ;\n min += 16 * mb_y - 1 ;\n ymax = FFMIN ( ymax , s -> height - max ) ;\n ymin = FFMAX ( ymin , - 16 - min ) ;\n if ( s -> mv_type == MV_TYPE_16X16 ) break ;\n }\n assert ( xmax <= 15 && ymax <= 15 && xmin >= - 16 && ymin >= - 16 ) ;\n if ( xmax < 0 || xmin > 0 || ymax < 0 || ymin > 0 ) {\n s -> b_direct_mv_table [ mot_xy ] [ 0 ] = 0 ;\n s -> b_direct_mv_table [ mot_xy ] [ 1 ] = 0 ;\n return 256 * 256 * 256 * 64 ;\n }\n c -> xmin = xmin ;\n c -> ymin = ymin ;\n c -> xmax = xmax ;\n c -> ymax = ymax ;\n c -> flags |= FLAG_DIRECT ;\n c -> sub_flags |= FLAG_DIRECT ;\n c -> pred_x = 0 ;\n c -> pred_y = 0 ;\n P_LEFT [ 0 ] = av_clip ( mv_table [ mot_xy - 1 ] [ 0 ] , xmin << shift , xmax << shift ) ;\n P_LEFT [ 1 ] = av_clip ( mv_table [ mot_xy - 1 ] [ 1 ] , ymin << shift , ymax << shift ) ;\n if ( ! s -> first_slice_line ) {\n P_TOP [ 0 ] = av_clip ( mv_table [ mot_xy - mot_stride ] [ 0 ] , xmin << shift , xmax << shift ) ;\n P_TOP [ 1 ] = av_clip ( mv_table [ mot_xy - mot_stride ] [ 1 ] , ymin << shift , ymax << shift ) ;\n P_TOPRIGHT [ 0 ] = av_clip ( mv_table [ mot_xy - mot_stride + 1 ] [ 0 ] , xmin << shift , xmax << shift ) ;\n P_TOPRIGHT [ 1 ] = av_clip ( mv_table [ mot_xy - mot_stride + 1 ] [ 1 ] , ymin << shift , ymax << shift ) ;\n P_MEDIAN [ 0 ] = mid_pred ( P_LEFT [ 0 ] , P_TOP [ 0 ] , P_TOPRIGHT [ 0 ] ) ;\n P_MEDIAN [ 1 ] = mid_pred ( P_LEFT [ 1 ] , P_TOP [ 1 ] , P_TOPRIGHT [ 1 ] ) ;\n }\n dmin = ff_epzs_motion_search ( s , & mx , & my , P , 0 , 0 , mv_table , 1 << ( 16 - shift ) , 0 , 16 ) ;\n if ( c -> sub_flags & FLAG_QPEL ) dmin = qpel_motion_search ( s , & mx , & my , dmin , 0 , 0 , 0 , 16 ) ;\n else dmin = hpel_motion_search ( s , & mx , & my , dmin , 0 , 0 , 0 , 16 ) ;\n if ( c -> avctx -> me_sub_cmp != c -> avctx -> mb_cmp && ! c -> skip ) dmin = get_mb_score ( s , mx , my , 0 , 0 , 0 , 16 , 1 ) ;\n get_limits ( s , 16 * mb_x , 16 * mb_y ) ;\n mv_table [ mot_xy ] [ 0 ] = mx ;\n mv_table [ mot_xy ] [ 1 ] = my ;\n c -> flags &= ~ FLAG_DIRECT ;\n c -> sub_flags &= ~ FLAG_DIRECT ;\n return dmin ;\n }"}
{"idx": 18924, "target": 0, "func": "static void dtap_cc_disconnect ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_TRUE ;\n ELEM_MAND_LV ( GSM_A_PDU_TYPE_DTAP , DE_CAUSE , NULL ) ;\n ELEM_OPT_TLV ( 0x1c , GSM_A_PDU_TYPE_DTAP , DE_FACILITY , NULL ) ;\n ELEM_OPT_TLV ( 0x1e , GSM_A_PDU_TYPE_DTAP , DE_PROG_IND , NULL ) ;\n ELEM_OPT_TLV ( 0x7e , GSM_A_PDU_TYPE_DTAP , DE_USER_USER , NULL ) ;\n ELEM_OPT_TLV ( 0x7b , GSM_A_PDU_TYPE_DTAP , DE_ALLOWED_ACTIONS , NULL ) ;\n ELEM_OPT_TLV ( 0x7f , GSM_A_PDU_TYPE_DTAP , DE_SS_VER_IND , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 18925, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( AppApiTest , MAYBE_AppProcessBackgroundInstances ) {\n TestAppInstancesHelper ( \"app_process_background_instances\" ) ;\n }"}
{"idx": 18926, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n ProresContext * ctx = avctx -> priv_data ;\n AVFrame * picture = avctx -> coded_frame ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n int frame_hdr_size , pic_num , pic_data_size ;\n if ( buf_size < 28 || buf_size < AV_RB32 ( buf ) || AV_RB32 ( buf + 4 ) != FRAME_ID ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid frame\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n MOVE_DATA_PTR ( 8 ) ;\n frame_hdr_size = decode_frame_header ( ctx , buf , buf_size , avctx ) ;\n if ( frame_hdr_size < 0 ) return AVERROR_INVALIDDATA ;\n MOVE_DATA_PTR ( frame_hdr_size ) ;\n if ( picture -> data [ 0 ] ) avctx -> release_buffer ( avctx , picture ) ;\n picture -> reference = 0 ;\n if ( ff_get_buffer ( avctx , picture ) < 0 ) return - 1 ;\n for ( pic_num = 0 ;\n ctx -> picture . interlaced_frame - pic_num + 1 ;\n pic_num ++ ) {\n pic_data_size = decode_picture_header ( ctx , buf , buf_size , avctx ) ;\n if ( pic_data_size < 0 ) return AVERROR_INVALIDDATA ;\n if ( decode_picture ( ctx , pic_num , avctx ) ) return - 1 ;\n MOVE_DATA_PTR ( pic_data_size ) ;\n }\n * got_frame = 1 ;\n * ( AVFrame * ) data = * avctx -> coded_frame ;\n return avpkt -> size ;\n }"}
{"idx": 18927, "target": 0, "func": "int TSTrafficServerVersionGetMajor ( ) {\n return ts_major_version ;\n }"}
{"idx": 18928, "target": 0, "func": "int rand_neg ( void ) {\n static unsigned int neg = 0 ;\n static int sign [ 8 ] = {\n 0 , 0 , 0 , 1 , 1 , 0 , 1 , 1 }\n ;\n return ( sign [ ( neg ++ ) % 8 ] ) ;\n }"}
{"idx": 18929, "target": 0, "func": "mbfl_encoding_detector * mbfl_encoding_detector_new ( enum mbfl_no_encoding * elist , int elistsz , int strict ) {\n mbfl_encoding_detector * identd ;\n int i , num ;\n mbfl_identify_filter * filter ;\n if ( elist == NULL || elistsz <= 0 ) {\n return NULL ;\n }\n identd = ( mbfl_encoding_detector * ) mbfl_malloc ( sizeof ( mbfl_encoding_detector ) ) ;\n if ( identd == NULL ) {\n return NULL ;\n }\n identd -> filter_list = ( mbfl_identify_filter * * ) mbfl_calloc ( elistsz , sizeof ( mbfl_identify_filter * ) ) ;\n if ( identd -> filter_list == NULL ) {\n mbfl_free ( identd ) ;\n return NULL ;\n }\n i = 0 ;\n num = 0 ;\n while ( i < elistsz ) {\n filter = mbfl_identify_filter_new ( elist [ i ] ) ;\n if ( filter != NULL ) {\n identd -> filter_list [ num ] = filter ;\n num ++ ;\n }\n i ++ ;\n }\n identd -> filter_list_size = num ;\n identd -> strict = strict ;\n return identd ;\n }"}
{"idx": 18930, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( MediaStreamPermissionTest , TestSecureOriginDenyIsSticky ) {\n content : : WebContents * tab_contents = LoadTestPageInTab ( ) ;\n EXPECT_TRUE ( content : : IsOriginSecure ( tab_contents -> GetLastCommittedURL ( ) ) ) ;\n GetUserMediaAndDeny ( tab_contents ) ;\n GetUserMediaAndExpectAutoDenyWithoutPrompt ( tab_contents ) ;\n }"}
{"idx": 18931, "target": 0, "func": "static int SpoolssSetForm_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n proto_item * hidden_item ;\n hidden_item = proto_tree_add_uint ( tree , hf_form , tvb , offset , 0 , 1 ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 18932, "target": 0, "func": "const char * pkg_writeCharList ( FileStream * s , CharList * l , const char * delim , int32_t quote ) {\n char buffer [ 1024 ] ;\n while ( l != NULL ) {\n if ( l -> str ) {\n uprv_strncpy ( buffer , l -> str , 1023 ) ;\n buffer [ 1023 ] = 0 ;\n if ( uprv_strlen ( l -> str ) >= 1023 ) {\n fprintf ( stderr , \"%s:%d: Internal error, line too long (greater than 1023 chars)\\n\" , __FILE__ , __LINE__ ) ;\n exit ( 0 ) ;\n }\n if ( quote < 0 ) {\n if ( buffer [ uprv_strlen ( buffer ) - 1 ] == '\"' ) {\n buffer [ uprv_strlen ( buffer ) - 1 ] = '\\0' ;\n }\n if ( buffer [ 0 ] == '\"' ) {\n uprv_strcpy ( buffer , buffer + 1 ) ;\n }\n }\n else if ( quote > 0 ) {\n if ( l -> str [ 0 ] != '\"' ) {\n uprv_strcpy ( buffer , \"\\\"\" ) ;\n uprv_strcat ( buffer , l -> str ) ;\n }\n if ( l -> str [ uprv_strlen ( l -> str ) - 1 ] != '\"' ) {\n uprv_strcat ( buffer , \"\\\"\" ) ;\n }\n }\n T_FileStream_write ( s , buffer , ( int32_t ) uprv_strlen ( buffer ) ) ;\n }\n if ( l -> next && delim ) {\n T_FileStream_write ( s , delim , ( int32_t ) uprv_strlen ( delim ) ) ;\n }\n l = l -> next ;\n }\n return NULL ;\n }"}
{"idx": 18933, "target": 0, "func": "static int proc_reapurbnonblock ( struct usb_dev_state * ps , void __user * arg ) {\n int retval ;\n struct async * as ;\n as = async_getcompleted ( ps ) ;\n if ( as ) {\n snoop ( & ps -> dev -> dev , \"reap %p\\n\" , as -> userurb ) ;\n retval = processcompl ( as , ( void __user * __user * ) arg ) ;\n free_async ( as ) ;\n }\n else {\n retval = ( connected ( ps ) ? - EAGAIN : - ENODEV ) ;\n }\n return retval ;\n }"}
{"idx": 18934, "target": 0, "func": "void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 ) sadMxN ( 16 , 32 ) sadMxNx4D ( 16 , 32 ) sadMxN ( 16 , 16 ) sadMxNxK ( 16 , 16 , 3 ) sadMxNxK ( 16 , 16 , 8 )"}
{"idx": 18935, "target": 0, "func": "void TSFetchPages ( TSFetchUrlParams_t * params ) {\n TSFetchUrlParams_t * myparams = params ;\n while ( myparams != nullptr ) {\n FetchSM * fetch_sm = FetchSMAllocator . alloc ( ) ;\n sockaddr * addr = ats_ip_sa_cast ( & myparams -> ip ) ;\n fetch_sm -> init ( ( Continuation * ) myparams -> contp , myparams -> options , myparams -> events , myparams -> request , myparams -> request_len , addr ) ;\n fetch_sm -> httpConnect ( ) ;\n myparams = myparams -> next ;\n }\n }"}
{"idx": 18936, "target": 0, "func": "unsigned char * dtls1_set_message_header ( SSL * s , unsigned char * p , unsigned char mt , unsigned long len , unsigned long frag_off , unsigned long frag_len ) {\n if ( frag_off == 0 && ! s -> d1 -> listen ) {\n s -> d1 -> handshake_write_seq = s -> d1 -> next_handshake_write_seq ;\n s -> d1 -> next_handshake_write_seq ++ ;\n }\n dtls1_set_message_header_int ( s , mt , len , s -> d1 -> handshake_write_seq , frag_off , frag_len ) ;\n return p += DTLS1_HM_HEADER_LENGTH ;\n }"}
{"idx": 18937, "target": 0, "func": "static Datum ExecEvalWindowFunc ( WindowFuncExprState * wfunc , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n if ( isDone ) * isDone = ExprSingleResult ;\n if ( econtext -> ecxt_aggvalues == NULL ) elog ( ERROR , \"no window functions in this expression context\" ) ;\n * isNull = econtext -> ecxt_aggnulls [ wfunc -> wfuncno ] ;\n return econtext -> ecxt_aggvalues [ wfunc -> wfuncno ] ;\n }"}
{"idx": 18938, "target": 0, "func": "static int xhci_xfer_create_sgl ( XHCITransfer * xfer , int in_xfer ) {\n XHCIState * xhci = xfer -> epctx -> xhci ;\n int i ;\n xfer -> int_req = false ;\n pci_dma_sglist_init ( & xfer -> sgl , PCI_DEVICE ( xhci ) , xfer -> trb_count ) ;\n for ( i = 0 ;\n i < xfer -> trb_count ;\n i ++ ) {\n XHCITRB * trb = & xfer -> trbs [ i ] ;\n dma_addr_t addr ;\n unsigned int chunk = 0 ;\n if ( trb -> control & TRB_TR_IOC ) {\n xfer -> int_req = true ;\n }\n switch ( TRB_TYPE ( * trb ) ) {\n case TR_DATA : if ( ( ! ( trb -> control & TRB_TR_DIR ) ) != ( ! in_xfer ) ) {\n DPRINTF ( \"xhci: data direction mismatch for TR_DATA\\n\" ) ;\n goto err ;\n }\n case TR_NORMAL : case TR_ISOCH : addr = xhci_mask64 ( trb -> parameter ) ;\n chunk = trb -> status & 0x1ffff ;\n if ( trb -> control & TRB_TR_IDT ) {\n if ( chunk > 8 || in_xfer ) {\n DPRINTF ( \"xhci: invalid immediate data TRB\\n\" ) ;\n goto err ;\n }\n qemu_sglist_add ( & xfer -> sgl , trb -> addr , chunk ) ;\n }\n else {\n qemu_sglist_add ( & xfer -> sgl , addr , chunk ) ;\n }\n break ;\n }\n }\n return 0 ;\n err : qemu_sglist_destroy ( & xfer -> sgl ) ;\n xhci_die ( xhci ) ;\n return - 1 ;\n }"}
{"idx": 18939, "target": 0, "func": "const char * SSL_state_string ( const SSL * s ) {\n const char * str ;\n switch ( s -> state ) {\n case SSL_ST_BEFORE : str = \"PINIT \" ;\n break ;\n case SSL_ST_ACCEPT : str = \"AINIT \" ;\n break ;\n case SSL_ST_CONNECT : str = \"CINIT \" ;\n break ;\n case SSL_ST_OK : str = \"SSLOK \" ;\n break ;\n case SSL_ST_ERR : str = \"SSLERR\" ;\n break ;\n # ifndef OPENSSL_NO_SSL2 case SSL2_ST_CLIENT_START_ENCRYPTION : str = \"2CSENC\" ;\n break ;\n case SSL2_ST_SERVER_START_ENCRYPTION : str = \"2SSENC\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_HELLO_A : str = \"2SCH_A\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_HELLO_B : str = \"2SCH_B\" ;\n break ;\n case SSL2_ST_GET_SERVER_HELLO_A : str = \"2GSH_A\" ;\n break ;\n case SSL2_ST_GET_SERVER_HELLO_B : str = \"2GSH_B\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_MASTER_KEY_A : str = \"2SCMKA\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_MASTER_KEY_B : str = \"2SCMKB\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_FINISHED_A : str = \"2SCF_A\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_FINISHED_B : str = \"2SCF_B\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_CERTIFICATE_A : str = \"2SCC_A\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_CERTIFICATE_B : str = \"2SCC_B\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_CERTIFICATE_C : str = \"2SCC_C\" ;\n break ;\n case SSL2_ST_SEND_CLIENT_CERTIFICATE_D : str = \"2SCC_D\" ;\n break ;\n case SSL2_ST_GET_SERVER_VERIFY_A : str = \"2GSV_A\" ;\n break ;\n case SSL2_ST_GET_SERVER_VERIFY_B : str = \"2GSV_B\" ;\n break ;\n case SSL2_ST_GET_SERVER_FINISHED_A : str = \"2GSF_A\" ;\n break ;\n case SSL2_ST_GET_SERVER_FINISHED_B : str = \"2GSF_B\" ;\n break ;\n case SSL2_ST_GET_CLIENT_HELLO_A : str = \"2GCH_A\" ;\n break ;\n case SSL2_ST_GET_CLIENT_HELLO_B : str = \"2GCH_B\" ;\n break ;\n case SSL2_ST_GET_CLIENT_HELLO_C : str = \"2GCH_C\" ;\n break ;\n case SSL2_ST_SEND_SERVER_HELLO_A : str = \"2SSH_A\" ;\n break ;\n case SSL2_ST_SEND_SERVER_HELLO_B : str = \"2SSH_B\" ;\n break ;\n case SSL2_ST_GET_CLIENT_MASTER_KEY_A : str = \"2GCMKA\" ;\n break ;\n case SSL2_ST_GET_CLIENT_MASTER_KEY_B : str = \"2GCMKA\" ;\n break ;\n case SSL2_ST_SEND_SERVER_VERIFY_A : str = \"2SSV_A\" ;\n break ;\n case SSL2_ST_SEND_SERVER_VERIFY_B : str = \"2SSV_B\" ;\n break ;\n case SSL2_ST_SEND_SERVER_VERIFY_C : str = \"2SSV_C\" ;\n break ;\n case SSL2_ST_GET_CLIENT_FINISHED_A : str = \"2GCF_A\" ;\n break ;\n case SSL2_ST_GET_CLIENT_FINISHED_B : str = \"2GCF_B\" ;\n break ;\n case SSL2_ST_SEND_SERVER_FINISHED_A : str = \"2SSF_A\" ;\n break ;\n case SSL2_ST_SEND_SERVER_FINISHED_B : str = \"2SSF_B\" ;\n break ;\n case SSL2_ST_SEND_REQUEST_CERTIFICATE_A : str = \"2SRC_A\" ;\n break ;\n case SSL2_ST_SEND_REQUEST_CERTIFICATE_B : str = \"2SRC_B\" ;\n break ;\n case SSL2_ST_SEND_REQUEST_CERTIFICATE_C : str = \"2SRC_C\" ;\n break ;\n case SSL2_ST_SEND_REQUEST_CERTIFICATE_D : str = \"2SRC_D\" ;\n break ;\n case SSL2_ST_X509_GET_SERVER_CERTIFICATE : str = \"2X9GSC\" ;\n break ;\n case SSL2_ST_X509_GET_CLIENT_CERTIFICATE : str = \"2X9GCC\" ;\n break ;\n # endif # ifndef OPENSSL_NO_SSL3 case SSL3_ST_SW_FLUSH : case SSL3_ST_CW_FLUSH : str = \"3FLUSH\" ;\n break ;\n case SSL3_ST_CW_CLNT_HELLO_A : str = \"3WCH_A\" ;\n break ;\n case SSL3_ST_CW_CLNT_HELLO_B : str = \"3WCH_B\" ;\n break ;\n case SSL3_ST_CR_SRVR_HELLO_A : str = \"3RSH_A\" ;\n break ;\n case SSL3_ST_CR_SRVR_HELLO_B : str = \"3RSH_B\" ;\n break ;\n case SSL3_ST_CR_CERT_A : str = \"3RSC_A\" ;\n break ;\n case SSL3_ST_CR_CERT_B : str = \"3RSC_B\" ;\n break ;\n case SSL3_ST_CR_KEY_EXCH_A : str = \"3RSKEA\" ;\n break ;\n case SSL3_ST_CR_KEY_EXCH_B : str = \"3RSKEB\" ;\n break ;\n case SSL3_ST_CR_CERT_REQ_A : str = \"3RCR_A\" ;\n break ;\n case SSL3_ST_CR_CERT_REQ_B : str = \"3RCR_B\" ;\n break ;\n case SSL3_ST_CR_SRVR_DONE_A : str = \"3RSD_A\" ;\n break ;\n case SSL3_ST_CR_SRVR_DONE_B : str = \"3RSD_B\" ;\n break ;\n case SSL3_ST_CW_CERT_A : str = \"3WCC_A\" ;\n break ;\n case SSL3_ST_CW_CERT_B : str = \"3WCC_B\" ;\n break ;\n case SSL3_ST_CW_CERT_C : str = \"3WCC_C\" ;\n break ;\n case SSL3_ST_CW_CERT_D : str = \"3WCC_D\" ;\n break ;\n case SSL3_ST_CW_KEY_EXCH_A : str = \"3WCKEA\" ;\n break ;\n case SSL3_ST_CW_KEY_EXCH_B : str = \"3WCKEB\" ;\n break ;\n case SSL3_ST_CW_CERT_VRFY_A : str = \"3WCV_A\" ;\n break ;\n case SSL3_ST_CW_CERT_VRFY_B : str = \"3WCV_B\" ;\n break ;\n case SSL3_ST_SW_CHANGE_A : case SSL3_ST_CW_CHANGE_A : str = \"3WCCSA\" ;\n break ;\n case SSL3_ST_SW_CHANGE_B : case SSL3_ST_CW_CHANGE_B : str = \"3WCCSB\" ;\n break ;\n case SSL3_ST_SW_FINISHED_A : case SSL3_ST_CW_FINISHED_A : str = \"3WFINA\" ;\n break ;\n case SSL3_ST_SW_FINISHED_B : case SSL3_ST_CW_FINISHED_B : str = \"3WFINB\" ;\n break ;\n case SSL3_ST_SR_CHANGE_A : case SSL3_ST_CR_CHANGE_A : str = \"3RCCSA\" ;\n break ;\n case SSL3_ST_SR_CHANGE_B : case SSL3_ST_CR_CHANGE_B : str = \"3RCCSB\" ;\n break ;\n case SSL3_ST_SR_FINISHED_A : case SSL3_ST_CR_FINISHED_A : str = \"3RFINA\" ;\n break ;\n case SSL3_ST_SR_FINISHED_B : case SSL3_ST_CR_FINISHED_B : str = \"3RFINB\" ;\n break ;\n case SSL3_ST_SW_HELLO_REQ_A : str = \"3WHR_A\" ;\n break ;\n case SSL3_ST_SW_HELLO_REQ_B : str = \"3WHR_B\" ;\n break ;\n case SSL3_ST_SW_HELLO_REQ_C : str = \"3WHR_C\" ;\n break ;\n case SSL3_ST_SR_CLNT_HELLO_A : str = \"3RCH_A\" ;\n break ;\n case SSL3_ST_SR_CLNT_HELLO_B : str = \"3RCH_B\" ;\n break ;\n case SSL3_ST_SR_CLNT_HELLO_C : str = \"3RCH_C\" ;\n break ;\n case SSL3_ST_SW_SRVR_HELLO_A : str = \"3WSH_A\" ;\n break ;\n case SSL3_ST_SW_SRVR_HELLO_B : str = \"3WSH_B\" ;\n break ;\n case SSL3_ST_SW_CERT_A : str = \"3WSC_A\" ;\n break ;\n case SSL3_ST_SW_CERT_B : str = \"3WSC_B\" ;\n break ;\n case SSL3_ST_SW_KEY_EXCH_A : str = \"3WSKEA\" ;\n break ;\n case SSL3_ST_SW_KEY_EXCH_B : str = \"3WSKEB\" ;\n break ;\n case SSL3_ST_SW_CERT_REQ_A : str = \"3WCR_A\" ;\n break ;\n case SSL3_ST_SW_CERT_REQ_B : str = \"3WCR_B\" ;\n break ;\n case SSL3_ST_SW_SRVR_DONE_A : str = \"3WSD_A\" ;\n break ;\n case SSL3_ST_SW_SRVR_DONE_B : str = \"3WSD_B\" ;\n break ;\n case SSL3_ST_SR_CERT_A : str = \"3RCC_A\" ;\n break ;\n case SSL3_ST_SR_CERT_B : str = \"3RCC_B\" ;\n break ;\n case SSL3_ST_SR_KEY_EXCH_A : str = \"3RCKEA\" ;\n break ;\n case SSL3_ST_SR_KEY_EXCH_B : str = \"3RCKEB\" ;\n break ;\n case SSL3_ST_SR_CERT_VRFY_A : str = \"3RCV_A\" ;\n break ;\n case SSL3_ST_SR_CERT_VRFY_B : str = \"3RCV_B\" ;\n break ;\n # endif case SSL23_ST_CW_CLNT_HELLO_A : str = \"23WCHA\" ;\n break ;\n case SSL23_ST_CW_CLNT_HELLO_B : str = \"23WCHB\" ;\n break ;\n case SSL23_ST_CR_SRVR_HELLO_A : str = \"23RSHA\" ;\n break ;\n case SSL23_ST_CR_SRVR_HELLO_B : str = \"23RSHA\" ;\n break ;\n case SSL23_ST_SR_CLNT_HELLO_A : str = \"23RCHA\" ;\n break ;\n case SSL23_ST_SR_CLNT_HELLO_B : str = \"23RCHB\" ;\n break ;\n case DTLS1_ST_CR_HELLO_VERIFY_REQUEST_A : str = \"DRCHVA\" ;\n break ;\n case DTLS1_ST_CR_HELLO_VERIFY_REQUEST_B : str = \"DRCHVB\" ;\n break ;\n case DTLS1_ST_SW_HELLO_VERIFY_REQUEST_A : str = \"DWCHVA\" ;\n break ;\n case DTLS1_ST_SW_HELLO_VERIFY_REQUEST_B : str = \"DWCHVB\" ;\n break ;\n default : str = \"UNKWN \" ;\n break ;\n }\n return ( str ) ;\n }"}
{"idx": 18940, "target": 0, "func": "Datum icnlikesel ( PG_FUNCTION_ARGS ) {\n PG_RETURN_FLOAT8 ( patternsel ( fcinfo , Pattern_Type_Like_IC , true ) ) ;\n }"}
{"idx": 18941, "target": 0, "func": "static gboolean qio_channel_websock_flush ( QIOChannel * ioc , GIOCondition condition , gpointer user_data ) {\n QIOChannelWebsock * wioc = QIO_CHANNEL_WEBSOCK ( user_data ) ;\n ssize_t ret ;\n if ( condition & G_IO_OUT ) {\n ret = qio_channel_websock_write_wire ( wioc , & wioc -> io_err ) ;\n if ( ret < 0 ) {\n goto cleanup ;\n }\n }\n if ( condition & G_IO_IN ) {\n ret = qio_channel_websock_read_wire ( wioc , & wioc -> io_err ) ;\n if ( ret < 0 ) {\n goto cleanup ;\n }\n }\n cleanup : qio_channel_websock_set_watch ( wioc ) ;\n return FALSE ;\n }"}
{"idx": 18942, "target": 0, "func": "static int mxpeg_decode_mxm ( MXpegDecodeContext * s , const uint8_t * buf_ptr , int buf_size ) {\n unsigned bitmask_size , mb_count ;\n int i ;\n s -> mb_width = AV_RL16 ( buf_ptr + 4 ) ;\n s -> mb_height = AV_RL16 ( buf_ptr + 6 ) ;\n mb_count = s -> mb_width * s -> mb_height ;\n bitmask_size = ( mb_count + 7 ) >> 3 ;\n if ( bitmask_size > buf_size - 12 ) {\n av_log ( s -> jpg . avctx , AV_LOG_ERROR , \"MXM bitmask is not complete\\n\" ) ;\n return AVERROR ( EINVAL ) ;\n }\n if ( s -> bitmask_size != bitmask_size ) {\n av_freep ( & s -> mxm_bitmask ) ;\n s -> mxm_bitmask = av_malloc ( bitmask_size ) ;\n if ( ! s -> mxm_bitmask ) {\n av_log ( s -> jpg . avctx , AV_LOG_ERROR , \"MXM bitmask memory allocation error\\n\" ) ;\n return AVERROR ( ENOMEM ) ;\n }\n av_freep ( & s -> completion_bitmask ) ;\n s -> completion_bitmask = av_mallocz ( bitmask_size ) ;\n if ( ! s -> completion_bitmask ) {\n av_log ( s -> jpg . avctx , AV_LOG_ERROR , \"Completion bitmask memory allocation error\\n\" ) ;\n return AVERROR ( ENOMEM ) ;\n }\n s -> bitmask_size = bitmask_size ;\n }\n memcpy ( s -> mxm_bitmask , buf_ptr + 12 , bitmask_size ) ;\n s -> got_mxm_bitmask = 1 ;\n if ( ! s -> has_complete_frame ) {\n uint8_t completion_check = 0xFF ;\n for ( i = 0 ;\n i < bitmask_size ;\n ++ i ) {\n s -> completion_bitmask [ i ] |= s -> mxm_bitmask [ i ] ;\n completion_check &= s -> completion_bitmask [ i ] ;\n }\n s -> has_complete_frame = ! ( completion_check ^ 0xFF ) ;\n }\n return 0 ;\n }"}
{"idx": 18943, "target": 0, "func": "static void test_bug8378 ( ) {\n # if defined ( HAVE_CHARSET_gbk ) && ! defined ( EMBEDDED_LIBRARY ) MYSQL * lmysql ;\n char out [ 9 ] ;\n char buf [ 256 ] ;\n int len , rc ;\n myheader ( \"test_bug8378\" ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n Establishing a test connection ...\" ) ;\n if ( ! ( lmysql = mysql_client_init ( NULL ) ) ) {\n myerror ( \"mysql_client_init() failed\" ) ;\n exit ( 1 ) ;\n }\n if ( mysql_options ( lmysql , MYSQL_SET_CHARSET_NAME , \"gbk\" ) ) {\n myerror ( \"mysql_options() failed\" ) ;\n exit ( 1 ) ;\n }\n if ( ! ( mysql_real_connect ( lmysql , opt_host , opt_user , opt_password , current_db , opt_port , opt_unix_socket , 0 ) ) ) {\n myerror ( \"connection failed\" ) ;\n exit ( 1 ) ;\n }\n if ( ! opt_silent ) fprintf ( stdout , \"OK\" ) ;\n rc = mysql_query ( lmysql , \"SET SQL_MODE=''\" ) ;\n myquery ( rc ) ;\n len = mysql_real_escape_string ( lmysql , out , TEST_BUG8378_IN , 4 ) ;\n DIE_UNLESS ( memcmp ( out , TEST_BUG8378_OUT , len ) == 0 ) ;\n sprintf ( buf , \"SELECT '%s'\" , out ) ;\n rc = mysql_real_query ( lmysql , buf , strlen ( buf ) ) ;\n myquery ( rc ) ;\n mysql_close ( lmysql ) ;\n # endif }"}
{"idx": 18944, "target": 0, "func": "static void vvalue_strbuf_append_str ( wmem_strbuf_t * strbuf , void * ptr ) {\n struct data_str * str = ( struct data_str * ) ptr ;\n wmem_strbuf_append_printf ( strbuf , \"\\\"%s\\\"\" , str -> str ) ;\n }"}
{"idx": 18945, "target": 0, "func": "static VALUE decode_enum ( unsigned char * der , long length ) {\n ASN1_ENUMERATED * ai ;\n const unsigned char * p ;\n VALUE ret ;\n int status = 0 ;\n p = der ;\n if ( ! ( ai = d2i_ASN1_ENUMERATED ( NULL , & p , length ) ) ) ossl_raise ( eASN1Error , NULL ) ;\n ret = rb_protect ( ( VALUE ( * ) ( VALUE ) ) asn1integer_to_num , ( VALUE ) ai , & status ) ;\n ASN1_ENUMERATED_free ( ai ) ;\n if ( status ) rb_jump_tag ( status ) ;\n return ret ;\n }"}
{"idx": 18946, "target": 0, "func": "static void * Type_ProfileSequenceId_Dup ( struct _cms_typehandler_struct * self , const void * Ptr , cmsUInt32Number n ) {\n return ( void * ) cmsDupProfileSequenceDescription ( ( cmsSEQ * ) Ptr ) ;\n cmsUNUSED_PARAMETER ( n ) ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 18947, "target": 0, "func": "TSVConn TSVConnCreate ( TSEventFunc event_funcp , TSMutex mutexp ) {\n if ( mutexp == nullptr ) {\n mutexp = ( TSMutex ) new_ProxyMutex ( ) ;\n }\n sdk_assert ( sdk_sanity_check_mutex ( mutexp ) == TS_SUCCESS ) ;\n INKVConnInternal * i = INKVConnAllocator . alloc ( ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) i ) == TS_SUCCESS ) ;\n i -> init ( event_funcp , mutexp ) ;\n return reinterpret_cast < TSVConn > ( i ) ;\n }"}
{"idx": 18948, "target": 0, "func": "int dissect_h225_PartyNumber ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_PartyNumber , PartyNumber_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 18949, "target": 0, "func": "static MagickBooleanType EncodeImage ( const ImageInfo * image_info , Image * image , const size_t data_size ) {\n # define MaxCode ( number_bits ) ( ( one << ( number_bits ) ) - 1 ) # define MaxHashTable 5003 # define MaxGIFBits 12UL # define MaxGIFTable ( 1UL << MaxGIFBits ) # define GIFOutputCode ( code ) \\ {\n if ( bits > 0 ) datum |= ( code ) << bits ;\n else datum = code ;\n bits += number_bits ;\n while ( bits >= 8 ) {\n packet [ length ++ ] = ( unsigned char ) ( datum & 0xff ) ;\n if ( length >= 254 ) {\n ( void ) WriteBlobByte ( image , ( unsigned char ) length ) ;\n ( void ) WriteBlob ( image , length , packet ) ;\n length = 0 ;\n }\n datum >>= 8 ;\n bits -= 8 ;\n }\n if ( free_code > max_code ) {\n number_bits ++ ;\n if ( number_bits == MaxGIFBits ) max_code = MaxGIFTable ;\n else max_code = MaxCode ( number_bits ) ;\n }\n \\ }\n IndexPacket index ;\n short * hash_code , * hash_prefix , waiting_code ;\n size_t bits , clear_code , datum , end_of_information_code , free_code , length , max_code , next_pixel , number_bits , one , pass ;\n ssize_t displacement , offset , k , y ;\n unsigned char * packet , * hash_suffix ;\n assert ( image != ( Image * ) NULL ) ;\n one = 1 ;\n packet = ( unsigned char * ) AcquireQuantumMemory ( 256 , sizeof ( * packet ) ) ;\n hash_code = ( short * ) AcquireQuantumMemory ( MaxHashTable , sizeof ( * hash_code ) ) ;\n hash_prefix = ( short * ) AcquireQuantumMemory ( MaxHashTable , sizeof ( * hash_prefix ) ) ;\n hash_suffix = ( unsigned char * ) AcquireQuantumMemory ( MaxHashTable , sizeof ( * hash_suffix ) ) ;\n if ( ( packet == ( unsigned char * ) NULL ) || ( hash_code == ( short * ) NULL ) || ( hash_prefix == ( short * ) NULL ) || ( hash_suffix == ( unsigned char * ) NULL ) ) {\n if ( packet != ( unsigned char * ) NULL ) packet = ( unsigned char * ) RelinquishMagickMemory ( packet ) ;\n if ( hash_code != ( short * ) NULL ) hash_code = ( short * ) RelinquishMagickMemory ( hash_code ) ;\n if ( hash_prefix != ( short * ) NULL ) hash_prefix = ( short * ) RelinquishMagickMemory ( hash_prefix ) ;\n if ( hash_suffix != ( unsigned char * ) NULL ) hash_suffix = ( unsigned char * ) RelinquishMagickMemory ( hash_suffix ) ;\n return ( MagickFalse ) ;\n }\n ( void ) ResetMagickMemory ( hash_code , 0 , MaxHashTable * sizeof ( * hash_code ) ) ;\n ( void ) ResetMagickMemory ( hash_prefix , 0 , MaxHashTable * sizeof ( * hash_prefix ) ) ;\n ( void ) ResetMagickMemory ( hash_suffix , 0 , MaxHashTable * sizeof ( * hash_suffix ) ) ;\n number_bits = data_size ;\n max_code = MaxCode ( number_bits ) ;\n clear_code = ( ( short ) one << ( data_size - 1 ) ) ;\n end_of_information_code = clear_code + 1 ;\n free_code = clear_code + 2 ;\n length = 0 ;\n datum = 0 ;\n bits = 0 ;\n GIFOutputCode ( clear_code ) ;\n offset = 0 ;\n pass = 0 ;\n waiting_code = 0 ;\n for ( y = 0 ;\n y < ( ssize_t ) image -> rows ;\n y ++ ) {\n register const IndexPacket * magick_restrict indexes ;\n register const PixelPacket * magick_restrict p ;\n register ssize_t x ;\n p = GetVirtualPixels ( image , 0 , offset , image -> columns , 1 , & image -> exception ) ;\n if ( p == ( const PixelPacket * ) NULL ) break ;\n indexes = GetVirtualIndexQueue ( image ) ;\n if ( y == 0 ) {\n waiting_code = ( short ) ( * indexes ) ;\n p ++ ;\n }\n for ( x = ( ssize_t ) ( y == 0 ? 1 : 0 ) ;\n x < ( ssize_t ) image -> columns ;\n x ++ ) {\n index = ( IndexPacket ) ( ( size_t ) GetPixelIndex ( indexes + x ) & 0xff ) ;\n p ++ ;\n k = ( ssize_t ) ( ( ( size_t ) index << ( MaxGIFBits - 8 ) ) + waiting_code ) ;\n if ( k >= MaxHashTable ) k -= MaxHashTable ;\n next_pixel = MagickFalse ;\n displacement = 1 ;\n if ( hash_code [ k ] > 0 ) {\n if ( ( hash_prefix [ k ] == waiting_code ) && ( hash_suffix [ k ] == ( unsigned char ) index ) ) {\n waiting_code = hash_code [ k ] ;\n continue ;\n }\n if ( k != 0 ) displacement = MaxHashTable - k ;\n for ( ;\n ;\n ) {\n k -= displacement ;\n if ( k < 0 ) k += MaxHashTable ;\n if ( hash_code [ k ] == 0 ) break ;\n if ( ( hash_prefix [ k ] == waiting_code ) && ( hash_suffix [ k ] == ( unsigned char ) index ) ) {\n waiting_code = hash_code [ k ] ;\n next_pixel = MagickTrue ;\n break ;\n }\n }\n if ( next_pixel != MagickFalse ) continue ;\n }\n GIFOutputCode ( ( size_t ) waiting_code ) ;\n if ( free_code < MaxGIFTable ) {\n hash_code [ k ] = ( short ) free_code ++ ;\n hash_prefix [ k ] = waiting_code ;\n hash_suffix [ k ] = ( unsigned char ) index ;\n }\n else {\n for ( k = 0 ;\n k < MaxHashTable ;\n k ++ ) hash_code [ k ] = 0 ;\n free_code = clear_code + 2 ;\n GIFOutputCode ( clear_code ) ;\n number_bits = data_size ;\n max_code = MaxCode ( number_bits ) ;\n }\n waiting_code = ( short ) index ;\n }\n if ( image_info -> interlace == NoInterlace ) offset ++ ;\n else switch ( pass ) {\n case 0 : default : {\n offset += 8 ;\n if ( offset >= ( ssize_t ) image -> rows ) {\n pass ++ ;\n offset = 4 ;\n }\n break ;\n }\n case 1 : {\n offset += 8 ;\n if ( offset >= ( ssize_t ) image -> rows ) {\n pass ++ ;\n offset = 2 ;\n }\n break ;\n }\n case 2 : {\n offset += 4 ;\n if ( offset >= ( ssize_t ) image -> rows ) {\n pass ++ ;\n offset = 1 ;\n }\n break ;\n }\n case 3 : {\n offset += 2 ;\n break ;\n }\n }\n }\n GIFOutputCode ( ( size_t ) waiting_code ) ;\n GIFOutputCode ( end_of_information_code ) ;\n if ( bits > 0 ) {\n packet [ length ++ ] = ( unsigned char ) ( datum & 0xff ) ;\n if ( length >= 254 ) {\n ( void ) WriteBlobByte ( image , ( unsigned char ) length ) ;\n ( void ) WriteBlob ( image , length , packet ) ;\n length = 0 ;\n }\n }\n if ( length > 0 ) {\n ( void ) WriteBlobByte ( image , ( unsigned char ) length ) ;\n ( void ) WriteBlob ( image , length , packet ) ;\n }\n hash_suffix = ( unsigned char * ) RelinquishMagickMemory ( hash_suffix ) ;\n hash_prefix = ( short * ) RelinquishMagickMemory ( hash_prefix ) ;\n hash_code = ( short * ) RelinquishMagickMemory ( hash_code ) ;\n packet = ( unsigned char * ) RelinquishMagickMemory ( packet ) ;\n return ( MagickTrue ) ;\n }"}
{"idx": 18950, "target": 0, "func": "DSA * d2i_DSAPrivateKey_fp ( FILE * fp , DSA * * dsa ) {\n return ASN1_d2i_fp_of ( DSA , DSA_new , d2i_DSAPrivateKey , fp , dsa ) ;\n }"}
{"idx": 18951, "target": 0, "func": "static void skip ( struct vars * v ) {\n const chr * start = v -> now ;\n assert ( v -> cflags & REG_EXPANDED ) ;\n for ( ;\n ;\n ) {\n while ( ! ATEOS ( ) && iscspace ( * v -> now ) ) v -> now ++ ;\n if ( ATEOS ( ) || * v -> now != CHR ( '#' ) ) break ;\n assert ( NEXT1 ( '#' ) ) ;\n while ( ! ATEOS ( ) && * v -> now != CHR ( '\\n' ) ) v -> now ++ ;\n }\n if ( v -> now != start ) NOTE ( REG_UNONPOSIX ) ;\n }"}
{"idx": 18952, "target": 0, "func": "static unsigned int get_joining_type ( hb_codepoint_t u , hb_unicode_general_category_t gen_cat ) {\n unsigned int j_type = joining_type ( u ) ;\n if ( likely ( j_type != JOINING_TYPE_X ) ) return j_type ;\n return ( FLAG_SAFE ( gen_cat ) & ( FLAG ( HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK ) | FLAG ( HB_UNICODE_GENERAL_CATEGORY_ENCLOSING_MARK ) | FLAG ( HB_UNICODE_GENERAL_CATEGORY_FORMAT ) ) ) ? JOINING_TYPE_T : JOINING_TYPE_U ;\n }"}
{"idx": 18953, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ClientHintsBrowserTest , ClientHintsLifetimeNotAttachedCookiesBlocked ) {\n base : : HistogramTester histogram_tester ;\n ContentSettingsForOneType host_settings ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> GetSettingsForOneType ( CONTENT_SETTINGS_TYPE_CLIENT_HINTS , std : : string ( ) , & host_settings ) ;\n EXPECT_EQ ( 0u , host_settings . size ( ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , accept_ch_with_lifetime_url ( ) ) ;\n histogram_tester . ExpectUniqueSample ( \"ClientHints.UpdateEventCount\" , 1 , 1 ) ;\n content : : FetchHistogramsFromChildProcesses ( ) ;\n SubprocessMetricsProvider : : MergeHistogramDeltasForTesting ( ) ;\n histogram_tester . ExpectUniqueSample ( \"ClientHints.UpdateSize\" , 3 , 1 ) ;\n histogram_tester . ExpectUniqueSample ( \"ClientHints.PersistDuration\" , * 1000 , 1 ) ;\n base : : RunLoop ( ) . RunUntilIdle ( ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> GetSettingsForOneType ( CONTENT_SETTINGS_TYPE_CLIENT_HINTS , std : : string ( ) , & host_settings ) ;\n EXPECT_EQ ( 1u , host_settings . size ( ) ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> SetContentSettingDefaultScope ( accept_ch_without_lifetime_url ( ) , GURL ( ) , CONTENT_SETTINGS_TYPE_COOKIES , std : : string ( ) , CONTENT_SETTING_BLOCK ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , without_accept_ch_without_lifetime_url ( ) ) ;\n EXPECT_EQ ( 0u , count_client_hints_headers_seen ( ) ) ;\n VerifyContentSettingsNotNotified ( ) ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> SetContentSettingDefaultScope ( accept_ch_without_lifetime_url ( ) , GURL ( ) , CONTENT_SETTINGS_TYPE_COOKIES , std : : string ( ) , CONTENT_SETTING_ALLOW ) ;\n SetClientHintExpectationsOnMainFrame ( true ) ;\n SetClientHintExpectationsOnSubresources ( true ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , without_accept_ch_without_lifetime_url ( ) ) ;\n # if defined ( OS_ANDROID ) EXPECT_EQ ( 4u , count_client_hints_headers_seen ( ) ) ;\n # else EXPECT_EQ ( 6u , count_client_hints_headers_seen ( ) ) ;\n # endif HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> ClearSettingsForOneType ( CONTENT_SETTINGS_TYPE_COOKIES ) ;\n }"}
{"idx": 18954, "target": 0, "func": "static void trim_trailing_spaces ( char * s ) {\n char * p ;\n p = s ;\n while ( * p != '\\0' ) p ++ ;\n if ( p == s ) return ;\n p -- ;\n while ( p >= s && * p == ' ' ) * p -- = '\\0' ;\n }"}
{"idx": 18955, "target": 0, "func": "static gint nlm_msg_res_matched_equal ( gconstpointer k1 , gconstpointer k2 ) {\n guint mk1 = GPOINTER_TO_UINT ( k1 ) ;\n guint mk2 = GPOINTER_TO_UINT ( k2 ) ;\n return ( mk1 == mk2 ) ;\n }"}
{"idx": 18956, "target": 0, "func": "static void dissect_mdns_udp ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree ) {\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"MDNS\" ) ;\n dissect_dns_common ( tvb , pinfo , tree , FALSE , TRUE , FALSE ) ;\n }"}
{"idx": 18957, "target": 0, "func": "void rfbSendServerCutText ( rfbScreenInfoPtr rfbScreen , char * str , int len ) {\n rfbClientPtr cl ;\n rfbServerCutTextMsg sct ;\n rfbClientIteratorPtr iterator ;\n iterator = rfbGetClientIterator ( rfbScreen ) ;\n while ( ( cl = rfbClientIteratorNext ( iterator ) ) != NULL ) {\n sct . type = rfbServerCutText ;\n sct . length = Swap32IfLE ( len ) ;\n LOCK ( cl -> sendMutex ) ;\n if ( rfbWriteExact ( cl , ( char * ) & sct , sz_rfbServerCutTextMsg ) < 0 ) {\n rfbLogPerror ( \"rfbSendServerCutText: write\" ) ;\n rfbCloseClient ( cl ) ;\n UNLOCK ( cl -> sendMutex ) ;\n continue ;\n }\n if ( rfbWriteExact ( cl , str , len ) < 0 ) {\n rfbLogPerror ( \"rfbSendServerCutText: write\" ) ;\n rfbCloseClient ( cl ) ;\n }\n UNLOCK ( cl -> sendMutex ) ;\n rfbStatRecordMessageSent ( cl , rfbServerCutText , sz_rfbServerCutTextMsg + len , sz_rfbServerCutTextMsg + len ) ;\n }\n rfbReleaseClientIterator ( iterator ) ;\n }"}
{"idx": 18958, "target": 0, "func": "mtime_t decoder_GetDisplayDate ( decoder_t * p_dec , mtime_t i_ts ) {\n if ( ! p_dec -> pf_get_display_date ) return VLC_TS_INVALID ;\n return p_dec -> pf_get_display_date ( p_dec , i_ts ) ;\n }"}
{"idx": 18959, "target": 0, "func": "static int update_entry ( Dwarf_Debug dbg , Dwarf_Bool is_64bit , Dwarf_Endianness endianess , Dwarf_Half machine , struct Dwarf_Elf_Rela * rela , Dwarf_Small * target_section , Dwarf_Small * symtab_section_data , Dwarf_Unsigned symtab_section_size , Dwarf_Unsigned symtab_section_entrysize , int * error ) {\n unsigned int type = 0 ;\n unsigned int sym_idx = 0 ;\n # ifdef HAVE_ELF64_SYM Elf64_Sym sym_buf ;\n Elf64_Sym * sym = 0 ;\n # else Elf32_Sym sym_buf ;\n Elf32_Sym * sym = 0 ;\n # endif Elf32_Sym * sym32 = 0 ;\n Dwarf_ufixed64 offset = 0 ;\n Dwarf_sfixed64 addend = 0 ;\n Dwarf_Unsigned reloc_size = 0 ;\n Dwarf_Unsigned symtab_entry_count = 0 ;\n if ( symtab_section_entrysize == 0 ) {\n * error = DW_DLE_SYMTAB_SECTION_ENTRYSIZE_ZERO ;\n return DW_DLV_ERROR ;\n }\n symtab_entry_count = symtab_section_size / symtab_section_entrysize ;\n offset = rela -> r_offset ;\n addend = rela -> r_addend ;\n type = rela -> r_type ;\n sym_idx = rela -> r_symidx ;\n if ( sym_idx >= symtab_entry_count ) {\n * error = DW_DLE_RELOC_SECTION_SYMBOL_INDEX_BAD ;\n return DW_DLV_ERROR ;\n }\n if ( is_64bit ) {\n # ifdef HAVE_ELF64_SYM sym = & ( ( Elf64_Sym * ) symtab_section_data ) [ sym_idx ] ;\n # endif }\n else {\n sym32 = & ( ( Elf32_Sym * ) symtab_section_data ) [ sym_idx ] ;\n sym = & sym_buf ;\n sym -> st_name = sym32 -> st_name ;\n sym -> st_info = sym32 -> st_info ;\n sym -> st_other = sym32 -> st_other ;\n sym -> st_shndx = sym32 -> st_shndx ;\n sym -> st_value = sym32 -> st_value ;\n sym -> st_size = sym32 -> st_size ;\n }\n if ( is_32bit_abs_reloc ( type , machine ) ) {\n reloc_size = 4 ;\n }\n else if ( is_64bit_abs_reloc ( type , machine ) ) {\n reloc_size = 8 ;\n }\n else {\n * error = DW_DLE_RELOC_SECTION_RELOC_TARGET_SIZE_UNKNOWN ;\n return DW_DLV_ERROR ;\n }\n {\n Dwarf_Unsigned outval = sym -> st_value + addend ;\n WRITE_UNALIGNED ( dbg , target_section + offset , & outval , sizeof ( outval ) , reloc_size ) ;\n }\n return DW_DLV_OK ;\n }"}
{"idx": 18960, "target": 0, "func": "static pvfs2_io_tracking_value_t * pvfs2_io_tracking_new_with_tag ( guint64 tag , guint32 num ) {\n pvfs2_io_tracking_value_t * value ;\n pvfs2_io_tracking_key_t * newkey ;\n newkey = wmem_new0 ( wmem_file_scope ( ) , pvfs2_io_tracking_key_t ) ;\n newkey -> tag = tag ;\n value = wmem_new0 ( wmem_file_scope ( ) , pvfs2_io_tracking_value_t ) ;\n wmem_map_insert ( pvfs2_io_tracking_value_table , newkey , value ) ;\n value -> request_frame_num = num ;\n return value ;\n }"}
{"idx": 18961, "target": 0, "func": "static void decSetCoeff ( decNumber * dn , decContext * set , const Unit * lsu , Int len , Int * residue , uInt * status ) {\n Int discard ;\n uInt cut ;\n const Unit * up ;\n Unit * target ;\n Int count ;\n # if DECDPUN <= 4 uInt temp ;\n # endif discard = len - set -> digits ;\n if ( discard <= 0 ) {\n if ( dn -> lsu != lsu ) {\n count = len ;\n up = lsu ;\n for ( target = dn -> lsu ;\n count > 0 ;\n target ++ , up ++ , count -= DECDPUN ) * target = * up ;\n dn -> digits = len ;\n }\n if ( * residue != 0 ) * status |= ( DEC_Inexact | DEC_Rounded ) ;\n return ;\n }\n dn -> exponent += discard ;\n * status |= DEC_Rounded ;\n if ( * residue > 1 ) * residue = 1 ;\n if ( discard > len ) {\n if ( * residue <= 0 ) {\n count = len ;\n for ( up = lsu ;\n count > 0 ;\n up ++ , count -= DECDPUN ) if ( * up != 0 ) {\n * residue = 1 ;\n break ;\n }\n }\n if ( * residue != 0 ) * status |= DEC_Inexact ;\n * dn -> lsu = 0 ;\n dn -> digits = 1 ;\n return ;\n }\n count = 0 ;\n for ( up = lsu ;\n ;\n up ++ ) {\n count += DECDPUN ;\n if ( count >= discard ) break ;\n if ( * up != 0 ) * residue = 1 ;\n }\n cut = discard - ( count - DECDPUN ) - 1 ;\n if ( cut == DECDPUN - 1 ) {\n Unit half = ( Unit ) powers [ DECDPUN ] >> 1 ;\n if ( * up >= half ) {\n if ( * up > half ) * residue = 7 ;\n else * residue += 5 ;\n }\n else {\n if ( * up != 0 ) * residue = 3 ;\n }\n if ( set -> digits <= 0 ) {\n * dn -> lsu = 0 ;\n dn -> digits = 1 ;\n }\n else {\n count = set -> digits ;\n dn -> digits = count ;\n up ++ ;\n for ( target = dn -> lsu ;\n count > 0 ;\n target ++ , up ++ , count -= DECDPUN ) * target = * up ;\n }\n }\n else {\n uInt discard1 ;\n uInt quot , rem ;\n if ( cut == 0 ) quot = * up ;\n else {\n # if DECDPUN <= 4 U_ASSERT ( cut <= 4 ) ;\n quot = QUOT10 ( * up , cut ) ;\n rem = * up - quot * powers [ cut ] ;\n # else rem = * up % powers [ cut ] ;\n quot = * up / powers [ cut ] ;\n # endif if ( rem != 0 ) * residue = 1 ;\n }\n # if DECDPUN <= 4 temp = ( quot * 6554 ) >> 16 ;\n discard1 = quot - X10 ( temp ) ;\n quot = temp ;\n # else discard1 = quot % 10 ;\n quot = quot / 10 ;\n # endif * residue += resmap [ discard1 ] ;\n cut ++ ;\n if ( set -> digits <= 0 ) {\n * dn -> lsu = 0 ;\n dn -> digits = 1 ;\n }\n else {\n count = set -> digits ;\n dn -> digits = count ;\n for ( target = dn -> lsu ;\n ;\n target ++ ) {\n * target = ( Unit ) quot ;\n count -= ( DECDPUN - cut ) ;\n if ( count <= 0 ) break ;\n up ++ ;\n quot = * up ;\n # if DECDPUN <= 4 quot = QUOT10 ( quot , cut ) ;\n rem = * up - quot * powers [ cut ] ;\n # else rem = quot % powers [ cut ] ;\n quot = quot / powers [ cut ] ;\n # endif * target = ( Unit ) ( * target + rem * powers [ DECDPUN - cut ] ) ;\n count -= cut ;\n if ( count <= 0 ) break ;\n }\n }\n }\n if ( * residue != 0 ) * status |= DEC_Inexact ;\n return ;\n }"}
{"idx": 18962, "target": 0, "func": "static inline bool __ipv6_prefix_equal ( const __be32 * a1 , const __be32 * a2 , unsigned int prefixlen ) {\n unsigned int pdw , pbi ;\n pdw = prefixlen >> 5 ;\n if ( pdw && memcmp ( a1 , a2 , pdw << 2 ) ) return false ;\n pbi = prefixlen & 0x1f ;\n if ( pbi && ( ( a1 [ pdw ] ^ a2 [ pdw ] ) & htonl ( ( 0xffffffff ) << ( 32 - pbi ) ) ) ) return false ;\n return true ;\n }"}
{"idx": 18963, "target": 1, "func": "int vp9_receive_raw_frame ( VP9_COMP * cpi , unsigned int frame_flags , YV12_BUFFER_CONFIG * sd , int64_t time_stamp , int64_t end_time ) {\n VP9_COMMON * cm = & cpi -> common ;\n struct vpx_usec_timer timer ;\n int res = 0 ;\n const int subsampling_x = sd -> uv_width < sd -> y_width ;\n const int subsampling_y = sd -> uv_height < sd -> y_height ;\n check_initial_width ( cpi , subsampling_x , subsampling_y ) ;\n vpx_usec_timer_start ( & timer ) ;\n # if CONFIG_SPATIAL_SVC if ( is_two_pass_svc ( cpi ) ) res = vp9_svc_lookahead_push ( cpi , cpi -> lookahead , sd , time_stamp , end_time , frame_flags ) ;\n else # endif res = vp9_lookahead_push ( cpi -> lookahead , sd , time_stamp , end_time , frame_flags ) ;\n if ( res ) res = - 1 ;\n vpx_usec_timer_mark ( & timer ) ;\n cpi -> time_receive_data += vpx_usec_timer_elapsed ( & timer ) ;\n if ( ( cm -> profile == PROFILE_0 || cm -> profile == PROFILE_2 ) && ( subsampling_x != 1 || subsampling_y != 1 ) ) {\n vpx_internal_error ( & cm -> error , VPX_CODEC_INVALID_PARAM , \"Non-4:2:0 color space requires profile 1 or 3\" ) ;\n res = - 1 ;\n }\n if ( ( cm -> profile == PROFILE_1 || cm -> profile == PROFILE_3 ) && ( subsampling_x == 1 && subsampling_y == 1 ) ) {\n vpx_internal_error ( & cm -> error , VPX_CODEC_INVALID_PARAM , \"4:2:0 color space requires profile 0 or 2\" ) ;\n res = - 1 ;\n }\n return res ;\n }"}
{"idx": 18964, "target": 0, "func": "char * _TSstrdup ( const char * str , int64_t length , const char * path ) {\n return _xstrdup ( str , length , path ) ;\n }"}
{"idx": 18965, "target": 0, "func": "static void cpw_usage ( const char * str ) {\n if ( str ) fprintf ( stderr , \"%s\\n\" , str ) ;\n fprintf ( stderr , _ ( \"usage: change_password [-randkey] [-keepold] \" \"[-e keysaltlist] [-pw password] principal\\n\" ) ) ;\n }"}
{"idx": 18966, "target": 0, "func": "static Datum ExecEvalMinMax ( MinMaxExprState * minmaxExpr , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n Datum result = ( Datum ) 0 ;\n MinMaxExpr * minmax = ( MinMaxExpr * ) minmaxExpr -> xprstate . expr ;\n Oid collation = minmax -> inputcollid ;\n MinMaxOp op = minmax -> op ;\n FunctionCallInfoData locfcinfo ;\n ListCell * arg ;\n if ( isDone ) * isDone = ExprSingleResult ;\n * isNull = true ;\n InitFunctionCallInfoData ( locfcinfo , & minmaxExpr -> cfunc , 2 , collation , NULL , NULL ) ;\n locfcinfo . argnull [ 0 ] = false ;\n locfcinfo . argnull [ 1 ] = false ;\n foreach ( arg , minmaxExpr -> args ) {\n ExprState * e = ( ExprState * ) lfirst ( arg ) ;\n Datum value ;\n bool valueIsNull ;\n int32 cmpresult ;\n value = ExecEvalExpr ( e , econtext , & valueIsNull , NULL ) ;\n if ( valueIsNull ) continue ;\n if ( * isNull ) {\n result = value ;\n * isNull = false ;\n }\n else {\n locfcinfo . arg [ 0 ] = result ;\n locfcinfo . arg [ 1 ] = value ;\n locfcinfo . isnull = false ;\n cmpresult = DatumGetInt32 ( FunctionCallInvoke ( & locfcinfo ) ) ;\n if ( locfcinfo . isnull ) continue ;\n if ( cmpresult > 0 && op == IS_LEAST ) result = value ;\n else if ( cmpresult < 0 && op == IS_GREATEST ) result = value ;\n }\n }\n return result ;\n }"}
{"idx": 18967, "target": 0, "func": "static void y4m_convert_422_420jpeg ( y4m_input * _y4m , unsigned char * _dst , unsigned char * _aux ) {\n unsigned char * tmp ;\n int c_w ;\n int c_h ;\n int c_sz ;\n int dst_c_h ;\n int dst_c_sz ;\n int pli ;\n _dst += _y4m -> pic_w * _y4m -> pic_h ;\n c_w = ( _y4m -> pic_w + _y4m -> src_c_dec_h - 1 ) / _y4m -> src_c_dec_h ;\n c_h = _y4m -> pic_h ;\n dst_c_h = ( _y4m -> pic_h + _y4m -> dst_c_dec_v - 1 ) / _y4m -> dst_c_dec_v ;\n c_sz = c_w * c_h ;\n dst_c_sz = c_w * dst_c_h ;\n tmp = _aux + 2 * c_sz ;\n for ( pli = 1 ;\n pli < 3 ;\n pli ++ ) {\n y4m_42xmpeg2_42xjpeg_helper ( tmp , _aux , c_w , c_h ) ;\n y4m_422jpeg_420jpeg_helper ( _dst , tmp , c_w , c_h ) ;\n _aux += c_sz ;\n _dst += dst_c_sz ;\n }\n }"}
{"idx": 18968, "target": 0, "func": "static inline uint32_t cpu_to_le32 ( uint32_t v ) {\n return v ;\n }"}
{"idx": 18969, "target": 0, "func": "static void main_free ( void * ptr ) {\n if ( ptr ) {\n IF_DEBUG ( main_mallocs -= 1 ) ;\n main_free1 ( NULL , ptr ) ;\n IF_DEBUG ( XD3_ASSERT ( main_mallocs >= 0 ) ) ;\n }\n }"}
{"idx": 18970, "target": 0, "func": "static int dissect_h245_MobileMultilinkReconfigurationCommand ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MobileMultilinkReconfigurationCommand , MobileMultilinkReconfigurationCommand_sequence ) ;\n return offset ;\n }"}
{"idx": 18971, "target": 0, "func": "proto_item * proto_tree_add_ether ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , const guint8 * value ) {\n proto_item * pi ;\n header_field_info * hfinfo ;\n CHECK_FOR_NULL_TREE ( tree ) ;\n TRY_TO_FAKE_THIS_ITEM ( tree , hfindex , hfinfo ) ;\n DISSECTOR_ASSERT_FIELD_TYPE ( hfinfo , FT_ETHER ) ;\n pi = proto_tree_add_pi ( tree , hfinfo , tvb , start , & length ) ;\n proto_tree_set_ether ( PNODE_FINFO ( pi ) , value ) ;\n return pi ;\n }"}
{"idx": 18972, "target": 1, "func": "static int flic_decode_frame_15_16BPP ( AVCodecContext * avctx , void * data , int * got_frame , const uint8_t * buf , int buf_size ) {\n FlicDecodeContext * s = avctx -> priv_data ;\n GetByteContext g2 ;\n int pixel_ptr ;\n unsigned char palette_idx1 ;\n unsigned int frame_size ;\n int num_chunks ;\n unsigned int chunk_size ;\n int chunk_type ;\n int i , j , ret ;\n int lines ;\n int compressed_lines ;\n signed short line_packets ;\n int y_ptr ;\n int byte_run ;\n int pixel_skip ;\n int pixel_countdown ;\n unsigned char * pixels ;\n int pixel ;\n unsigned int pixel_limit ;\n bytestream2_init ( & g2 , buf , buf_size ) ;\n s -> frame . reference = 1 ;\n s -> frame . buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE ;\n if ( ( ret = avctx -> reget_buffer ( avctx , & s -> frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n pixels = s -> frame . data [ 0 ] ;\n pixel_limit = s -> avctx -> height * s -> frame . linesize [ 0 ] ;\n frame_size = bytestream2_get_le32 ( & g2 ) ;\n bytestream2_skip ( & g2 , 2 ) ;\n num_chunks = bytestream2_get_le16 ( & g2 ) ;\n bytestream2_skip ( & g2 , 8 ) ;\n frame_size -= 16 ;\n while ( ( frame_size > 0 ) && ( num_chunks > 0 ) ) {\n chunk_size = bytestream2_get_le32 ( & g2 ) ;\n chunk_type = bytestream2_get_le16 ( & g2 ) ;\n switch ( chunk_type ) {\n case FLI_256_COLOR : case FLI_COLOR : av_dlog ( avctx , \"Unexpected Palette chunk %d in non-palettized FLC\\n\" , chunk_type ) ;\n bytestream2_skip ( & g2 , chunk_size - 6 ) ;\n break ;\n case FLI_DELTA : case FLI_DTA_LC : y_ptr = 0 ;\n compressed_lines = bytestream2_get_le16 ( & g2 ) ;\n while ( compressed_lines > 0 ) {\n line_packets = bytestream2_get_le16 ( & g2 ) ;\n if ( line_packets < 0 ) {\n line_packets = - line_packets ;\n y_ptr += line_packets * s -> frame . linesize [ 0 ] ;\n }\n else {\n compressed_lines -- ;\n pixel_ptr = y_ptr ;\n CHECK_PIXEL_PTR ( 0 ) ;\n pixel_countdown = s -> avctx -> width ;\n for ( i = 0 ;\n i < line_packets ;\n i ++ ) {\n pixel_skip = bytestream2_get_byte ( & g2 ) ;\n pixel_ptr += ( pixel_skip * 2 ) ;\n pixel_countdown -= pixel_skip ;\n byte_run = sign_extend ( bytestream2_get_byte ( & g2 ) , 8 ) ;\n if ( byte_run < 0 ) {\n byte_run = - byte_run ;\n pixel = bytestream2_get_le16 ( & g2 ) ;\n CHECK_PIXEL_PTR ( 2 * byte_run ) ;\n for ( j = 0 ;\n j < byte_run ;\n j ++ , pixel_countdown -= 2 ) {\n * ( ( signed short * ) ( & pixels [ pixel_ptr ] ) ) = pixel ;\n pixel_ptr += 2 ;\n }\n }\n else {\n CHECK_PIXEL_PTR ( 2 * byte_run ) ;\n for ( j = 0 ;\n j < byte_run ;\n j ++ , pixel_countdown -- ) {\n * ( ( signed short * ) ( & pixels [ pixel_ptr ] ) ) = bytestream2_get_le16 ( & g2 ) ;\n pixel_ptr += 2 ;\n }\n }\n }\n y_ptr += s -> frame . linesize [ 0 ] ;\n }\n }\n break ;\n case FLI_LC : av_log ( avctx , AV_LOG_ERROR , \"Unexpected FLI_LC chunk in non-paletised FLC\\n\" ) ;\n bytestream2_skip ( & g2 , chunk_size - 6 ) ;\n break ;\n case FLI_BLACK : memset ( pixels , 0x0000 , s -> frame . linesize [ 0 ] * s -> avctx -> height ) ;\n break ;\n case FLI_BRUN : y_ptr = 0 ;\n for ( lines = 0 ;\n lines < s -> avctx -> height ;\n lines ++ ) {\n pixel_ptr = y_ptr ;\n bytestream2_skip ( & g2 , 1 ) ;\n pixel_countdown = ( s -> avctx -> width * 2 ) ;\n while ( pixel_countdown > 0 ) {\n byte_run = sign_extend ( bytestream2_get_byte ( & g2 ) , 8 ) ;\n if ( byte_run > 0 ) {\n palette_idx1 = bytestream2_get_byte ( & g2 ) ;\n CHECK_PIXEL_PTR ( byte_run ) ;\n for ( j = 0 ;\n j < byte_run ;\n j ++ ) {\n pixels [ pixel_ptr ++ ] = palette_idx1 ;\n pixel_countdown -- ;\n if ( pixel_countdown < 0 ) av_log ( avctx , AV_LOG_ERROR , \"pixel_countdown < 0 (%d) (linea%d)\\n\" , pixel_countdown , lines ) ;\n }\n }\n else {\n byte_run = - byte_run ;\n CHECK_PIXEL_PTR ( byte_run ) ;\n for ( j = 0 ;\n j < byte_run ;\n j ++ ) {\n palette_idx1 = bytestream2_get_byte ( & g2 ) ;\n pixels [ pixel_ptr ++ ] = palette_idx1 ;\n pixel_countdown -- ;\n if ( pixel_countdown < 0 ) av_log ( avctx , AV_LOG_ERROR , \"pixel_countdown < 0 (%d) at line %d\\n\" , pixel_countdown , lines ) ;\n }\n }\n }\n # if HAVE_BIGENDIAN pixel_ptr = y_ptr ;\n pixel_countdown = s -> avctx -> width ;\n while ( pixel_countdown > 0 ) {\n * ( ( signed short * ) ( & pixels [ pixel_ptr ] ) ) = AV_RL16 ( & buf [ pixel_ptr ] ) ;\n pixel_ptr += 2 ;\n }\n # endif y_ptr += s -> frame . linesize [ 0 ] ;\n }\n break ;\n case FLI_DTA_BRUN : y_ptr = 0 ;\n for ( lines = 0 ;\n lines < s -> avctx -> height ;\n lines ++ ) {\n pixel_ptr = y_ptr ;\n bytestream2_skip ( & g2 , 1 ) ;\n pixel_countdown = s -> avctx -> width ;\n while ( pixel_countdown > 0 ) {\n byte_run = sign_extend ( bytestream2_get_byte ( & g2 ) , 8 ) ;\n if ( byte_run > 0 ) {\n pixel = bytestream2_get_le16 ( & g2 ) ;\n CHECK_PIXEL_PTR ( 2 * byte_run ) ;\n for ( j = 0 ;\n j < byte_run ;\n j ++ ) {\n * ( ( signed short * ) ( & pixels [ pixel_ptr ] ) ) = pixel ;\n pixel_ptr += 2 ;\n pixel_countdown -- ;\n if ( pixel_countdown < 0 ) av_log ( avctx , AV_LOG_ERROR , \"pixel_countdown < 0 (%d)\\n\" , pixel_countdown ) ;\n }\n }\n else {\n byte_run = - byte_run ;\n CHECK_PIXEL_PTR ( 2 * byte_run ) ;\n for ( j = 0 ;\n j < byte_run ;\n j ++ ) {\n * ( ( signed short * ) ( & pixels [ pixel_ptr ] ) ) = bytestream2_get_le16 ( & g2 ) ;\n pixel_ptr += 2 ;\n pixel_countdown -- ;\n if ( pixel_countdown < 0 ) av_log ( avctx , AV_LOG_ERROR , \"pixel_countdown < 0 (%d)\\n\" , pixel_countdown ) ;\n }\n }\n }\n y_ptr += s -> frame . linesize [ 0 ] ;\n }\n break ;\n case FLI_COPY : case FLI_DTA_COPY : if ( chunk_size - 6 > ( unsigned int ) ( s -> avctx -> width * s -> avctx -> height ) * 2 ) {\n av_log ( avctx , AV_LOG_ERROR , \"In chunk FLI_COPY : source data (%d bytes) \" \\ \"bigger than image, skipping chunk\\n\" , chunk_size - 6 ) ;\n bytestream2_skip ( & g2 , chunk_size - 6 ) ;\n }\n else {\n for ( y_ptr = 0 ;\n y_ptr < s -> frame . linesize [ 0 ] * s -> avctx -> height ;\n y_ptr += s -> frame . linesize [ 0 ] ) {\n pixel_countdown = s -> avctx -> width ;\n pixel_ptr = 0 ;\n while ( pixel_countdown > 0 ) {\n * ( ( signed short * ) ( & pixels [ y_ptr + pixel_ptr ] ) ) = bytestream2_get_le16 ( & g2 ) ;\n pixel_ptr += 2 ;\n pixel_countdown -- ;\n }\n }\n }\n break ;\n case FLI_MINI : bytestream2_skip ( & g2 , chunk_size - 6 ) ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"Unrecognized chunk type: %d\\n\" , chunk_type ) ;\n break ;\n }\n frame_size -= chunk_size ;\n num_chunks -- ;\n }\n if ( ( bytestream2_get_bytes_left ( & g2 ) != 0 ) && ( bytestream2_get_bytes_left ( & g2 ) != 1 ) ) av_log ( avctx , AV_LOG_ERROR , \"Processed FLI chunk where chunk size = %d \" \\ \"and final chunk ptr = %d\\n\" , buf_size , bytestream2_tell ( & g2 ) ) ;\n * got_frame = 1 ;\n * ( AVFrame * ) data = s -> frame ;\n return buf_size ;\n }"}
{"idx": 18973, "target": 0, "func": "void log_msg ( const char * fmt , ... ) {\n va_list args ;\n char buff [ 1024 ] ;\n size_t len ;\n DBUG_ENTER ( \"log_msg\" ) ;\n va_start ( args , fmt ) ;\n len = my_vsnprintf ( buff , sizeof ( buff ) - 1 , fmt , args ) ;\n va_end ( args ) ;\n dynstr_append_mem ( & ds_res , buff , len ) ;\n dynstr_append ( & ds_res , \"\\n\" ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 18974, "target": 1, "func": "static void vc1_decode_b_mb ( VC1Context * v ) {\n MpegEncContext * s = & v -> s ;\n GetBitContext * gb = & s -> gb ;\n int i , j ;\n int mb_pos = s -> mb_x + s -> mb_y * s -> mb_stride ;\n int cbp = 0 ;\n int mqdiff , mquant ;\n int ttmb = v -> ttfrm ;\n int mb_has_coeffs = 0 ;\n int index , index1 ;\n int val , sign ;\n int first_block = 1 ;\n int dst_idx , off ;\n int skipped , direct ;\n int dmv_x [ 2 ] , dmv_y [ 2 ] ;\n int bmvtype = BMV_TYPE_BACKWARD ;\n mquant = v -> pq ;\n s -> mb_intra = 0 ;\n if ( v -> dmb_is_raw ) direct = get_bits1 ( gb ) ;\n else direct = v -> direct_mb_plane [ mb_pos ] ;\n if ( v -> skip_is_raw ) skipped = get_bits1 ( gb ) ;\n else skipped = v -> s . mbskip_table [ mb_pos ] ;\n dmv_x [ 0 ] = dmv_x [ 1 ] = dmv_y [ 0 ] = dmv_y [ 1 ] = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n v -> mb_type [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n s -> dc_val [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n }\n s -> current_picture . f . qscale_table [ mb_pos ] = 0 ;\n if ( ! direct ) {\n if ( ! skipped ) {\n GET_MVDATA ( dmv_x [ 0 ] , dmv_y [ 0 ] ) ;\n dmv_x [ 1 ] = dmv_x [ 0 ] ;\n dmv_y [ 1 ] = dmv_y [ 0 ] ;\n }\n if ( skipped || ! s -> mb_intra ) {\n bmvtype = decode012 ( gb ) ;\n switch ( bmvtype ) {\n case 0 : bmvtype = ( v -> bfraction >= ( B_FRACTION_DEN / 2 ) ) ? BMV_TYPE_BACKWARD : BMV_TYPE_FORWARD ;\n break ;\n case 1 : bmvtype = ( v -> bfraction >= ( B_FRACTION_DEN / 2 ) ) ? BMV_TYPE_FORWARD : BMV_TYPE_BACKWARD ;\n break ;\n case 2 : bmvtype = BMV_TYPE_INTERPOLATED ;\n dmv_x [ 0 ] = dmv_y [ 0 ] = 0 ;\n }\n }\n }\n for ( i = 0 ;\n i < 6 ;\n i ++ ) v -> mb_type [ 0 ] [ s -> block_index [ i ] ] = s -> mb_intra ;\n if ( skipped ) {\n if ( direct ) bmvtype = BMV_TYPE_INTERPOLATED ;\n vc1_pred_b_mv ( v , dmv_x , dmv_y , direct , bmvtype ) ;\n vc1_b_mc ( v , dmv_x , dmv_y , direct , bmvtype ) ;\n return ;\n }\n if ( direct ) {\n cbp = get_vlc2 ( & v -> s . gb , v -> cbpcy_vlc -> table , VC1_CBPCY_P_VLC_BITS , 2 ) ;\n GET_MQUANT ( ) ;\n s -> mb_intra = 0 ;\n s -> current_picture . f . qscale_table [ mb_pos ] = mquant ;\n if ( ! v -> ttmbf ) ttmb = get_vlc2 ( gb , ff_vc1_ttmb_vlc [ v -> tt_index ] . table , VC1_TTMB_VLC_BITS , 2 ) ;\n dmv_x [ 0 ] = dmv_y [ 0 ] = dmv_x [ 1 ] = dmv_y [ 1 ] = 0 ;\n vc1_pred_b_mv ( v , dmv_x , dmv_y , direct , bmvtype ) ;\n vc1_b_mc ( v , dmv_x , dmv_y , direct , bmvtype ) ;\n }\n else {\n if ( ! mb_has_coeffs && ! s -> mb_intra ) {\n vc1_pred_b_mv ( v , dmv_x , dmv_y , direct , bmvtype ) ;\n vc1_b_mc ( v , dmv_x , dmv_y , direct , bmvtype ) ;\n return ;\n }\n if ( s -> mb_intra && ! mb_has_coeffs ) {\n GET_MQUANT ( ) ;\n s -> current_picture . f . qscale_table [ mb_pos ] = mquant ;\n s -> ac_pred = get_bits1 ( gb ) ;\n cbp = 0 ;\n vc1_pred_b_mv ( v , dmv_x , dmv_y , direct , bmvtype ) ;\n }\n else {\n if ( bmvtype == BMV_TYPE_INTERPOLATED ) {\n GET_MVDATA ( dmv_x [ 0 ] , dmv_y [ 0 ] ) ;\n if ( ! mb_has_coeffs ) {\n vc1_pred_b_mv ( v , dmv_x , dmv_y , direct , bmvtype ) ;\n vc1_b_mc ( v , dmv_x , dmv_y , direct , bmvtype ) ;\n return ;\n }\n }\n vc1_pred_b_mv ( v , dmv_x , dmv_y , direct , bmvtype ) ;\n if ( ! s -> mb_intra ) {\n vc1_b_mc ( v , dmv_x , dmv_y , direct , bmvtype ) ;\n }\n if ( s -> mb_intra ) s -> ac_pred = get_bits1 ( gb ) ;\n cbp = get_vlc2 ( & v -> s . gb , v -> cbpcy_vlc -> table , VC1_CBPCY_P_VLC_BITS , 2 ) ;\n GET_MQUANT ( ) ;\n s -> current_picture . f . qscale_table [ mb_pos ] = mquant ;\n if ( ! v -> ttmbf && ! s -> mb_intra && mb_has_coeffs ) ttmb = get_vlc2 ( gb , ff_vc1_ttmb_vlc [ v -> tt_index ] . table , VC1_TTMB_VLC_BITS , 2 ) ;\n }\n }\n dst_idx = 0 ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n s -> dc_val [ 0 ] [ s -> block_index [ i ] ] = 0 ;\n dst_idx += i >> 2 ;\n val = ( ( cbp >> ( 5 - i ) ) & 1 ) ;\n off = ( i & 4 ) ? 0 : ( ( i & 1 ) * 8 + ( i & 2 ) * 4 * s -> linesize ) ;\n v -> mb_type [ 0 ] [ s -> block_index [ i ] ] = s -> mb_intra ;\n if ( s -> mb_intra ) {\n v -> a_avail = v -> c_avail = 0 ;\n if ( i == 2 || i == 3 || ! s -> first_slice_line ) v -> a_avail = v -> mb_type [ 0 ] [ s -> block_index [ i ] - s -> block_wrap [ i ] ] ;\n if ( i == 1 || i == 3 || s -> mb_x ) v -> c_avail = v -> mb_type [ 0 ] [ s -> block_index [ i ] - 1 ] ;\n vc1_decode_intra_block ( v , s -> block [ i ] , i , val , mquant , ( i & 4 ) ? v -> codingset2 : v -> codingset ) ;\n if ( ( i > 3 ) && ( s -> flags & CODEC_FLAG_GRAY ) ) continue ;\n v -> vc1dsp . vc1_inv_trans_8x8 ( s -> block [ i ] ) ;\n if ( v -> rangeredfrm ) for ( j = 0 ;\n j < 64 ;\n j ++ ) s -> block [ i ] [ j ] <<= 1 ;\n s -> dsp . put_signed_pixels_clamped ( s -> block [ i ] , s -> dest [ dst_idx ] + off , i & 4 ? s -> uvlinesize : s -> linesize ) ;\n }\n else if ( val ) {\n vc1_decode_p_block ( v , s -> block [ i ] , i , mquant , ttmb , first_block , s -> dest [ dst_idx ] + off , ( i & 4 ) ? s -> uvlinesize : s -> linesize , ( i & 4 ) && ( s -> flags & CODEC_FLAG_GRAY ) , NULL ) ;\n if ( ! v -> ttmbf && ttmb < 8 ) ttmb = - 1 ;\n first_block = 0 ;\n }\n }\n }"}
{"idx": 18975, "target": 0, "func": "static int php_is_file_ok ( const cwd_state * state ) {\n struct stat buf ;\n if ( php_sys_stat ( state -> cwd , & buf ) == 0 && S_ISREG ( buf . st_mode ) ) return ( 0 ) ;\n return ( 1 ) ;\n }"}
{"idx": 18976, "target": 0, "func": "static void exsltNodeSetFunction ( xmlXPathParserContextPtr ctxt , int nargs ) {\n if ( nargs != 1 ) {\n xmlXPathSetArityError ( ctxt ) ;\n return ;\n }\n if ( xmlXPathStackIsNodeSet ( ctxt ) ) {\n xsltFunctionNodeSet ( ctxt , nargs ) ;\n return ;\n }\n else {\n xmlDocPtr fragment ;\n xsltTransformContextPtr tctxt = xsltXPathGetTransformContext ( ctxt ) ;\n xmlNodePtr txt ;\n xmlChar * strval ;\n xmlXPathObjectPtr obj ;\n fragment = xsltCreateRVT ( tctxt ) ;\n if ( fragment == NULL ) {\n xsltTransformError ( tctxt , NULL , tctxt -> inst , \"exsltNodeSetFunction: Failed to create a tree fragment.\\n\" ) ;\n tctxt -> state = XSLT_STATE_STOPPED ;\n return ;\n }\n xsltRegisterLocalRVT ( tctxt , fragment ) ;\n strval = xmlXPathPopString ( ctxt ) ;\n txt = xmlNewDocText ( fragment , strval ) ;\n xmlAddChild ( ( xmlNodePtr ) fragment , txt ) ;\n obj = xmlXPathNewNodeSet ( txt ) ;\n if ( obj == NULL ) {\n xsltTransformError ( tctxt , NULL , tctxt -> inst , \"exsltNodeSetFunction: Failed to create a node set object.\\n\" ) ;\n tctxt -> state = XSLT_STATE_STOPPED ;\n }\n else {\n xsltExtensionInstructionResultRegister ( tctxt , obj ) ;\n }\n if ( strval != NULL ) xmlFree ( strval ) ;\n valuePush ( ctxt , obj ) ;\n }\n }"}
{"idx": 18977, "target": 0, "func": "static void pdf_run_BX ( fz_context * ctx , pdf_processor * proc ) {\n }"}
{"idx": 18978, "target": 0, "func": "static int dissect_zbee_zcl_ballast_configuration ( tvbuff_t * tvb _U_ , packet_info * pinfo _U_ , proto_tree * tree _U_ , void * data _U_ ) {\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 18979, "target": 0, "func": "static void ram_init ( hwaddr addr , ram_addr_t RAM_size , uint64_t max_mem ) {\n DeviceState * dev ;\n SysBusDevice * s ;\n RamDevice * d ;\n if ( ( uint64_t ) RAM_size > max_mem ) {\n fprintf ( stderr , \"qemu: Too much memory for this machine: %d, maximum %d\\n\" , ( unsigned int ) ( RAM_size / ( 1024 * 1024 ) ) , ( unsigned int ) ( max_mem / ( 1024 * 1024 ) ) ) ;\n exit ( 1 ) ;\n }\n dev = qdev_create ( NULL , \"memory\" ) ;\n s = SYS_BUS_DEVICE ( dev ) ;\n d = FROM_SYSBUS ( RamDevice , s ) ;\n d -> size = RAM_size ;\n qdev_init_nofail ( dev ) ;\n sysbus_mmio_map ( s , 0 , addr ) ;\n }"}
{"idx": 18980, "target": 0, "func": "static VALUE ossl_asn1_ ## klass ( int argc , VALUE * argv , VALUE self ) \\ {\n return rb_funcall3 ( cASN1 ## klass , rb_intern ( \"new\" ) , argc , argv ) ;\n }\n OSSL_ASN1_IMPL_FACTORY_METHOD ( Boolean ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Integer ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Enumerated ) OSSL_ASN1_IMPL_FACTORY_METHOD ( BitString )"}
{"idx": 18981, "target": 0, "func": "static void pdf_show_image_imp ( fz_context * ctx , pdf_run_processor * pr , fz_image * image , fz_matrix * image_ctm , fz_rect * bbox ) {\n pdf_gstate * gstate = pr -> gstate + pr -> gtop ;\n if ( image -> colorspace ) {\n fz_fill_image ( ctx , pr -> dev , image , image_ctm , gstate -> fill . alpha , & gstate -> fill . color_params ) ;\n return ;\n }\n if ( gstate -> fill . kind == PDF_MAT_COLOR ) fz_fill_image_mask ( ctx , pr -> dev , image , image_ctm , gstate -> fill . colorspace , gstate -> fill . v , gstate -> fill . alpha , & gstate -> fill . color_params ) ;\n else if ( gstate -> fill . kind == PDF_MAT_PATTERN && gstate -> fill . pattern ) {\n fz_clip_image_mask ( ctx , pr -> dev , image , image_ctm , bbox ) ;\n fz_try ( ctx ) pdf_show_pattern ( ctx , pr , gstate -> fill . pattern , & pr -> gstate [ gstate -> fill . gstate_num ] , bbox , PDF_FILL ) ;\n fz_always ( ctx ) fz_pop_clip ( ctx , pr -> dev ) ;\n fz_catch ( ctx ) fz_rethrow ( ctx ) ;\n }\n else if ( gstate -> fill . kind == PDF_MAT_SHADE && gstate -> fill . shade ) {\n fz_clip_image_mask ( ctx , pr -> dev , image , image_ctm , bbox ) ;\n fz_try ( ctx ) fz_fill_shade ( ctx , pr -> dev , gstate -> fill . shade , & pr -> gstate [ gstate -> fill . gstate_num ] . ctm , gstate -> fill . alpha , & gstate -> fill . color_params ) ;\n fz_always ( ctx ) fz_pop_clip ( ctx , pr -> dev ) ;\n fz_catch ( ctx ) fz_rethrow ( ctx ) ;\n }\n }"}
{"idx": 18982, "target": 0, "func": "void nautilus_file_operations_duplicate ( GList * files , GArray * relative_item_points , GtkWindow * parent_window , NautilusCopyCallback done_callback , gpointer done_callback_data ) {\n GTask * task ;\n CopyMoveJob * job ;\n GFile * parent ;\n job = op_job_new ( CopyMoveJob , parent_window ) ;\n job -> done_callback = done_callback ;\n job -> done_callback_data = done_callback_data ;\n job -> files = g_list_copy_deep ( files , ( GCopyFunc ) g_object_ref , NULL ) ;\n job -> destination = NULL ;\n parent = g_file_get_parent ( files -> data ) ;\n nautilus_progress_info_set_destination ( ( ( CommonJob * ) job ) -> progress , parent ) ;\n if ( relative_item_points != NULL && relative_item_points -> len > 0 ) {\n job -> icon_positions = g_memdup ( relative_item_points -> data , sizeof ( GdkPoint ) * relative_item_points -> len ) ;\n job -> n_icon_positions = relative_item_points -> len ;\n }\n job -> debuting_files = g_hash_table_new_full ( g_file_hash , ( GEqualFunc ) g_file_equal , g_object_unref , NULL ) ;\n if ( ! nautilus_file_undo_manager_is_operating ( ) ) {\n GFile * src_dir ;\n src_dir = g_file_get_parent ( files -> data ) ;\n job -> common . undo_info = nautilus_file_undo_info_ext_new ( NAUTILUS_FILE_UNDO_OP_DUPLICATE , g_list_length ( files ) , src_dir , src_dir ) ;\n g_object_unref ( src_dir ) ;\n }\n task = g_task_new ( NULL , job -> common . cancellable , copy_task_done , job ) ;\n g_task_set_task_data ( task , job , NULL ) ;\n g_task_run_in_thread ( task , copy_task_thread_func ) ;\n g_object_unref ( task ) ;\n g_object_unref ( parent ) ;\n }"}
{"idx": 18983, "target": 0, "func": "static void save_handle ( packet_info * pinfo , bluetooth_uuid_t uuid , guint32 handle , enum attribute_type attribute_type , bluetooth_data_t * bluetooth_data ) {\n if ( ! handle && uuid . size != 2 && uuid . size != 16 ) return ;\n if ( have_tap_listener ( btatt_tap_handles ) ) {\n tap_handles_t * tap_handles ;\n tap_handles = wmem_new ( wmem_packet_scope ( ) , tap_handles_t ) ;\n tap_handles -> handle = handle ;\n tap_handles -> uuid = uuid ;\n tap_queue_packet ( btatt_tap_handles , pinfo , tap_handles ) ;\n }\n if ( ! pinfo -> fd -> flags . visited && bluetooth_data ) {\n wmem_tree_key_t key [ 5 ] ;\n guint32 frame_number ;\n handle_data_t * handle_data ;\n frame_number = pinfo -> num ;\n key [ 0 ] . length = 1 ;\n key [ 0 ] . key = & bluetooth_data -> interface_id ;\n key [ 1 ] . length = 1 ;\n key [ 1 ] . key = & bluetooth_data -> adapter_id ;\n key [ 2 ] . length = 1 ;\n key [ 2 ] . key = & handle ;\n key [ 3 ] . length = 1 ;\n key [ 3 ] . key = & frame_number ;\n key [ 4 ] . length = 0 ;\n key [ 4 ] . key = NULL ;\n handle_data = wmem_new ( wmem_file_scope ( ) , handle_data_t ) ;\n handle_data -> uuid = uuid ;\n handle_data -> type = attribute_type ;\n wmem_tree_insert32_array ( handle_to_uuid , key , handle_data ) ;\n }\n }"}
{"idx": 18984, "target": 0, "func": "TSVConn TSVConnFdCreate ( int fd ) {\n UnixNetVConnection * vc ;\n if ( unlikely ( fd == NO_FD ) ) {\n return nullptr ;\n }\n vc = ( UnixNetVConnection * ) netProcessor . allocate_vc ( this_ethread ( ) ) ;\n if ( vc == nullptr ) {\n return nullptr ;\n }\n vc -> action_ = & a ;\n vc -> id = net_next_connection_number ( ) ;\n vc -> submit_time = Thread : : get_hrtime ( ) ;\n vc -> set_is_transparent ( false ) ;\n vc -> mutex = new_ProxyMutex ( ) ;\n vc -> set_context ( NET_VCONNECTION_OUT ) ;\n if ( vc -> connectUp ( this_ethread ( ) , fd ) != CONNECT_SUCCESS ) {\n return nullptr ;\n }\n NET_SUM_GLOBAL_DYN_STAT ( net_connections_currently_open_stat , 1 ) ;\n return reinterpret_cast < TSVConn > ( vc ) ;\n }"}
{"idx": 18985, "target": 0, "func": "static void generate_json_null ( FBuffer * buffer , VALUE Vstate , JSON_Generator_State * state , VALUE obj ) {\n fbuffer_append ( buffer , \"null\" , 4 ) ;\n }"}
{"idx": 18986, "target": 1, "func": "static void _LMBCSOpen ## n ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err ) \\ {\n _LMBCSOpenWorker ( _this , pArgs , err , n ) ;\n }\n static void _LMBCSOpenWorker ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err , ulmbcs_byte_t OptGroup ) {\n UConverterDataLMBCS * extraInfo = _this -> extraInfo = ( UConverterDataLMBCS * ) uprv_malloc ( sizeof ( UConverterDataLMBCS ) ) ;\n if ( extraInfo != NULL ) {\n UConverterNamePieces stackPieces ;\n UConverterLoadArgs stackArgs = {\n ( int32_t ) sizeof ( UConverterLoadArgs ) }\n ;\n ulmbcs_byte_t i ;\n uprv_memset ( extraInfo , 0 , sizeof ( UConverterDataLMBCS ) ) ;\n stackArgs . onlyTestIsLoadable = pArgs -> onlyTestIsLoadable ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST && U_SUCCESS ( * err ) ;\n i ++ ) {\n if ( OptGroupByteToCPName [ i ] != NULL ) {\n extraInfo -> OptGrpConverter [ i ] = ucnv_loadSharedData ( OptGroupByteToCPName [ i ] , & stackPieces , & stackArgs , err ) ;\n }\n }\n if ( U_FAILURE ( * err ) || pArgs -> onlyTestIsLoadable ) {\n _LMBCSClose ( _this ) ;\n return ;\n }\n extraInfo -> OptGroup = OptGroup ;\n extraInfo -> localeConverterIndex = FindLMBCSLocale ( pArgs -> locale ) ;\n }\n else {\n * err = U_MEMORY_ALLOCATION_ERROR ;\n }\n }\n static void _LMBCSClose ( UConverter * _this ) {\n if ( _this -> extraInfo != NULL ) {\n ulmbcs_byte_t Ix ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) _this -> extraInfo ;\n for ( Ix = 0 ;\n Ix <= ULMBCS_GRP_LAST ;\n Ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ Ix ] != NULL ) ucnv_unloadSharedDataIfReady ( extraInfo -> OptGrpConverter [ Ix ] ) ;\n }\n if ( ! _this -> isExtraLocal ) {\n uprv_free ( _this -> extraInfo ) ;\n _this -> extraInfo = NULL ;\n }\n }\n }\n typedef struct LMBCSClone {\n UConverter cnv ;\n UConverterDataLMBCS lmbcs ;\n }\n LMBCSClone ;\n static UConverter * _LMBCSSafeClone ( const UConverter * cnv , void * stackBuffer , int32_t * pBufferSize , UErrorCode * status ) {\n LMBCSClone * newLMBCS ;\n UConverterDataLMBCS * extraInfo ;\n int32_t i ;\n if ( * pBufferSize <= 0 ) {\n * pBufferSize = ( int32_t ) sizeof ( LMBCSClone ) ;\n return NULL ;\n }\n extraInfo = ( UConverterDataLMBCS * ) cnv -> extraInfo ;\n newLMBCS = ( LMBCSClone * ) stackBuffer ;\n uprv_memcpy ( & newLMBCS -> lmbcs , extraInfo , sizeof ( UConverterDataLMBCS ) ) ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST ;\n ++ i ) {\n if ( extraInfo -> OptGrpConverter [ i ] != NULL ) {\n ucnv_incrementRefCount ( extraInfo -> OptGrpConverter [ i ] ) ;\n }\n }\n newLMBCS -> cnv . extraInfo = & newLMBCS -> lmbcs ;\n newLMBCS -> cnv . isExtraLocal = TRUE ;\n return & newLMBCS -> cnv ;\n }\n static size_t LMBCSConversionWorker ( UConverterDataLMBCS * extraInfo , ulmbcs_byte_t group , ulmbcs_byte_t * pStartLMBCS , UChar * pUniChar , ulmbcs_byte_t * lastConverterIndex , UBool * groups_tried ) {\n ulmbcs_byte_t * pLMBCS = pStartLMBCS ;\n UConverterSharedData * xcnv = extraInfo -> OptGrpConverter [ group ] ;\n int bytesConverted ;\n uint32_t value ;\n ulmbcs_byte_t firstByte ;\n U_ASSERT ( xcnv ) ;\n U_ASSERT ( group < ULMBCS_GRP_UNICODE ) ;\n bytesConverted = ucnv_MBCSFromUChar32 ( xcnv , * pUniChar , & value , FALSE ) ;\n if ( bytesConverted > 0 ) {\n firstByte = ( ulmbcs_byte_t ) ( value >> ( ( bytesConverted - 1 ) * 8 ) ) ;\n }\n else {\n groups_tried [ group ] = TRUE ;\n return 0 ;\n }\n * lastConverterIndex = group ;\n U_ASSERT ( ( firstByte <= ULMBCS_C0END ) || ( firstByte >= ULMBCS_C1START ) || ( group == ULMBCS_GRP_EXCEPT ) ) ;\n if ( group != ULMBCS_GRP_EXCEPT && extraInfo -> OptGroup != group ) {\n * pLMBCS ++ = group ;\n if ( bytesConverted == 1 && group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n * pLMBCS ++ = group ;\n }\n }\n if ( bytesConverted == 1 && firstByte < 0x20 ) return 0 ;\n switch ( bytesConverted ) {\n case 4 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 24 ) ;\n U_FALLTHROUGH ;\n case 3 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 16 ) ;\n U_FALLTHROUGH ;\n case 2 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 8 ) ;\n U_FALLTHROUGH ;\n case 1 : * pLMBCS ++ = ( ulmbcs_byte_t ) value ;\n U_FALLTHROUGH ;\n default : break ;\n }\n return ( pLMBCS - pStartLMBCS ) ;\n }\n static size_t LMBCSConvertUni ( ulmbcs_byte_t * pLMBCS , UChar uniChar ) {\n uint8_t LowCh = ( uint8_t ) ( uniChar & 0x00FF ) ;\n uint8_t HighCh = ( uint8_t ) ( uniChar >> 8 ) ;\n * pLMBCS ++ = ULMBCS_GRP_UNICODE ;\n if ( LowCh == 0 ) {\n * pLMBCS ++ = ULMBCS_UNICOMPATZERO ;\n * pLMBCS ++ = HighCh ;\n }\n else {\n * pLMBCS ++ = HighCh ;\n * pLMBCS ++ = LowCh ;\n }\n return ULMBCS_UNICODE_SIZE ;\n }\n static void _LMBCSFromUnicode ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n ulmbcs_byte_t lastConverterIndex = 0 ;\n UChar uniChar ;\n ulmbcs_byte_t LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n ulmbcs_byte_t * pLMBCS ;\n int32_t bytes_written ;\n UBool groups_tried [ ULMBCS_GRP_LAST + 1 ] ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n int sourceIndex = 0 ;\n ulmbcs_byte_t OldConverterIndex = 0 ;\n while ( args -> source < args -> sourceLimit && ! U_FAILURE ( * err ) ) {\n OldConverterIndex = extraInfo -> localeConverterIndex ;\n if ( args -> target >= args -> targetLimit ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n uniChar = * ( args -> source ) ;\n bytes_written = 0 ;\n pLMBCS = LMBCS ;\n if ( ( uniChar >= 0x80 ) && ( uniChar <= 0xff ) && ( uniChar != 0xB1 ) && ( uniChar != 0xD7 ) && ( uniChar != 0xF7 ) && ( uniChar != 0xB0 ) && ( uniChar != 0xB4 ) && ( uniChar != 0xB6 ) && ( uniChar != 0xA7 ) && ( uniChar != 0xA8 ) ) {\n extraInfo -> localeConverterIndex = ULMBCS_GRP_L1 ;\n }\n if ( ( ( uniChar > ULMBCS_C0END ) && ( uniChar < ULMBCS_C1START ) ) || uniChar == 0 || uniChar == ULMBCS_HT || uniChar == ULMBCS_CR || uniChar == ULMBCS_LF || uniChar == ULMBCS_123SYSTEMRANGE ) {\n * pLMBCS ++ = ( ulmbcs_byte_t ) uniChar ;\n bytes_written = 1 ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t group = FindLMBCSUniRange ( uniChar ) ;\n if ( group == ULMBCS_GRP_UNICODE ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group == ULMBCS_GRP_CTRL ) {\n if ( uniChar <= ULMBCS_C0END ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( ULMBCS_CTRLOFFSET + uniChar ) ;\n }\n else if ( uniChar >= ULMBCS_C1START && uniChar <= ULMBCS_C1START + ULMBCS_CTRLOFFSET ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( uniChar & 0x00FF ) ;\n }\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group < ULMBCS_GRP_UNICODE ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , group , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n uprv_memset ( groups_tried , 0 , sizeof ( groups_tried ) ) ;\n if ( ( extraInfo -> OptGroup != 1 ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> OptGroup ) ) ) {\n if ( extraInfo -> localeConverterIndex < ULMBCS_DOUBLEOPTGROUP_START ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_L1 , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n else {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && ( extraInfo -> localeConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> localeConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written && ( lastConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , lastConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , lastConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t grp_start ;\n ulmbcs_byte_t grp_end ;\n ulmbcs_byte_t grp_ix ;\n grp_start = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_DOUBLEOPTGROUP_START : ULMBCS_GRP_L1 ) ;\n grp_end = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_GRP_LAST : ULMBCS_GRP_TH ) ;\n if ( group == ULMBCS_AMBIGUOUS_ALL ) {\n grp_start = ULMBCS_GRP_L1 ;\n grp_end = ULMBCS_GRP_LAST ;\n }\n for ( grp_ix = grp_start ;\n grp_ix <= grp_end && ! bytes_written ;\n grp_ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ grp_ix ] && ! groups_tried [ grp_ix ] ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , grp_ix , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && grp_start == ULMBCS_GRP_L1 ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n }\n }\n args -> source ++ ;\n pLMBCS = LMBCS ;\n while ( args -> target < args -> targetLimit && bytes_written -- ) {\n * ( args -> target ) ++ = * pLMBCS ++ ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = sourceIndex ;\n }\n }\n sourceIndex ++ ;\n if ( bytes_written > 0 ) {\n uint8_t * pErrorBuffer = args -> converter -> charErrorBuffer ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n args -> converter -> charErrorBufferLength = ( int8_t ) bytes_written ;\n while ( bytes_written -- ) {\n * pErrorBuffer ++ = * pLMBCS ++ ;\n }\n }\n extraInfo -> localeConverterIndex = OldConverterIndex ;\n }\n }\n static UChar GetUniFromLMBCSUni ( char const * * ppLMBCSin ) {\n uint8_t HighCh = * ( * ppLMBCSin ) ++ ;\n uint8_t LowCh = * ( * ppLMBCSin ) ++ ;\n if ( HighCh == ULMBCS_UNICOMPATZERO ) {\n HighCh = LowCh ;\n LowCh = 0 ;\n }\n return ( UChar ) ( ( HighCh << 8 ) | LowCh ) ;\n }\n # define CHECK_SOURCE_LIMIT ( index ) if ( args -> source + index > args -> sourceLimit ) {\n * err = U_TRUNCATED_CHAR_FOUND ;\n args -> source = args -> sourceLimit ;\n return 0xffff ;\n }\n static UChar32 _LMBCSGetNextUCharWorker ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n UChar32 uniChar = 0 ;\n ulmbcs_byte_t CurByte ;\n if ( args -> source >= args -> sourceLimit ) {\n * err = U_ILLEGAL_ARGUMENT_ERROR ;\n return 0xffff ;\n }\n CurByte = * ( ( ulmbcs_byte_t * ) ( args -> source ++ ) ) ;\n if ( ( ( CurByte > ULMBCS_C0END ) && ( CurByte < ULMBCS_C1START ) ) || ( CurByte == 0 ) || CurByte == ULMBCS_HT || CurByte == ULMBCS_CR || CurByte == ULMBCS_LF || CurByte == ULMBCS_123SYSTEMRANGE ) {\n uniChar = CurByte ;\n }\n else {\n UConverterDataLMBCS * extraInfo ;\n ulmbcs_byte_t group ;\n UConverterSharedData * cnv ;\n if ( CurByte == ULMBCS_GRP_CTRL ) {\n ulmbcs_byte_t C0C1byte ;\n CHECK_SOURCE_LIMIT ( 1 ) ;\n C0C1byte = * ( args -> source ) ++ ;\n uniChar = ( C0C1byte < ULMBCS_C1START ) ? C0C1byte - ULMBCS_CTRLOFFSET : C0C1byte ;\n }\n else if ( CurByte == ULMBCS_GRP_UNICODE ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n return GetUniFromLMBCSUni ( & ( args -> source ) ) ;\n }\n else if ( CurByte <= ULMBCS_CTRLOFFSET ) {\n group = CurByte ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n if ( group > ULMBCS_GRP_LAST || ( cnv = extraInfo -> OptGrpConverter [ group ] ) == NULL ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n if ( * args -> source == group ) {\n ++ args -> source ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 1 , FALSE ) ;\n ++ args -> source ;\n }\n else {\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 2 , FALSE ) ;\n args -> source += 2 ;\n }\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n CurByte = * ( args -> source ) ++ ;\n if ( CurByte >= ULMBCS_C1START ) {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n else {\n char bytes [ 2 ] ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n cnv = extraInfo -> OptGrpConverter [ ULMBCS_GRP_EXCEPT ] ;\n bytes [ 0 ] = group ;\n bytes [ 1 ] = CurByte ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , bytes , 2 , FALSE ) ;\n }\n }\n }\n else if ( CurByte >= ULMBCS_C1START ) {\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n group = extraInfo -> OptGroup ;\n cnv = extraInfo -> OptGrpConverter [ group ] ;\n if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n if ( ! ucnv_MBCSIsLeadByte ( cnv , CurByte ) ) {\n CHECK_SOURCE_LIMIT ( 0 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 1 , FALSE ) ;\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 2 , FALSE ) ;\n ++ args -> source ;\n }\n }\n else {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n }\n }\n return uniChar ;\n }\n static void _LMBCSToUnicodeWithOffsets ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n char LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n UChar uniChar ;\n const char * saveSource ;\n const char * pStartLMBCS = args -> source ;\n const char * errSource = NULL ;\n int8_t savebytes = 0 ;\n while ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit > args -> target ) {\n saveSource = args -> source ;\n if ( args -> converter -> toULength ) {\n const char * saveSourceLimit ;\n size_t size_old = args -> converter -> toULength ;\n size_t size_new_maybe_1 = sizeof ( LMBCS ) - size_old ;\n size_t size_new_maybe_2 = args -> sourceLimit - args -> source ;\n size_t size_new = ( size_new_maybe_1 < size_new_maybe_2 ) ? size_new_maybe_1 : size_new_maybe_2 ;\n uprv_memcpy ( LMBCS , args -> converter -> toUBytes , size_old ) ;\n uprv_memcpy ( LMBCS + size_old , args -> source , size_new ) ;\n saveSourceLimit = args -> sourceLimit ;\n args -> source = errSource = LMBCS ;\n args -> sourceLimit = LMBCS + size_old + size_new ;\n savebytes = ( int8_t ) ( size_old + size_new ) ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n args -> source = saveSource + ( ( args -> source - LMBCS ) - size_old ) ;\n args -> sourceLimit = saveSourceLimit ;\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n args -> converter -> toULength = savebytes ;\n uprv_memcpy ( args -> converter -> toUBytes , LMBCS , savebytes ) ;\n args -> source = args -> sourceLimit ;\n * err = U_ZERO_ERROR ;\n return ;\n }\n else {\n args -> converter -> toULength = 0 ;\n }\n }\n else {\n errSource = saveSource ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n savebytes = ( int8_t ) ( args -> source - saveSource ) ;\n }\n if ( U_SUCCESS ( * err ) ) {\n if ( uniChar < 0xfffe ) {\n * ( args -> target ) ++ = uniChar ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = ( int32_t ) ( saveSource - pStartLMBCS ) ;\n }\n }\n else if ( uniChar == 0xfffe ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n }\n if ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit <= args -> target ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n else if ( U_FAILURE ( * err ) ) {\n args -> converter -> toULength = savebytes ;\n if ( savebytes > 0 ) {\n uprv_memcpy ( args -> converter -> toUBytes , errSource , savebytes ) ;\n }\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n * err = U_ZERO_ERROR ;\n }\n }\n }\n DEFINE_LMBCS_OPEN ( 1 ) DEFINE_LMBCS_OPEN ( 2 ) DEFINE_LMBCS_OPEN ( 3 ) DEFINE_LMBCS_OPEN ( 4 ) DEFINE_LMBCS_OPEN ( 5 ) DEFINE_LMBCS_OPEN ( 6 ) DEFINE_LMBCS_OPEN ( 8 ) DEFINE_LMBCS_OPEN ( 11 ) DEFINE_LMBCS_OPEN ( 16 ) DEFINE_LMBCS_OPEN ( 17 )"}
{"idx": 18987, "target": 0, "func": "static void cirrus_update_memory_access ( CirrusVGAState * s ) {\n unsigned mode ;\n memory_region_transaction_begin ( ) ;\n if ( ( s -> vga . sr [ 0x17 ] & 0x44 ) == 0x44 ) {\n goto generic_io ;\n }\n else if ( s -> cirrus_srcptr != s -> cirrus_srcptr_end ) {\n goto generic_io ;\n }\n else {\n if ( ( s -> vga . gr [ 0x0B ] & 0x14 ) == 0x14 ) {\n goto generic_io ;\n }\n else if ( s -> vga . gr [ 0x0B ] & 0x02 ) {\n goto generic_io ;\n }\n mode = s -> vga . gr [ 0x05 ] & 0x7 ;\n if ( mode < 4 || mode > 5 || ( ( s -> vga . gr [ 0x0B ] & 0x4 ) == 0 ) ) {\n map_linear_vram ( s ) ;\n }\n else {\n generic_io : unmap_linear_vram ( s ) ;\n }\n }\n memory_region_transaction_commit ( ) ;\n }"}
{"idx": 18988, "target": 0, "func": "static void pdf_show_char ( fz_context * ctx , pdf_run_processor * pr , int cid ) {\n pdf_gstate * gstate = pr -> gstate + pr -> gtop ;\n pdf_font_desc * fontdesc = gstate -> text . font ;\n fz_matrix trm ;\n int gid ;\n int ucsbuf [ 8 ] ;\n int ucslen ;\n int i ;\n int render_direct ;\n gid = pdf_tos_make_trm ( ctx , & pr -> tos , & gstate -> text , fontdesc , cid , & trm ) ;\n render_direct = ( ! fz_font_ft_face ( ctx , fontdesc -> font ) && pr -> nested_depth > 0 ) || ! fz_glyph_cacheable ( ctx , fontdesc -> font , gid ) ;\n if ( ! pr -> tos . text || gstate -> text . render != pr -> tos . text_mode || render_direct ) {\n gstate = pdf_flush_text ( ctx , pr ) ;\n pdf_tos_reset ( ctx , & pr -> tos , gstate -> text . render ) ;\n }\n if ( render_direct ) {\n fz_matrix composed ;\n fz_concat ( & composed , & trm , & gstate -> ctm ) ;\n fz_render_t3_glyph_direct ( ctx , pr -> dev , fontdesc -> font , gid , & composed , gstate , pr -> nested_depth , pr -> default_cs ) ;\n pr -> tos . text_mode = 3 ;\n }\n ucslen = 0 ;\n if ( fontdesc -> to_unicode ) ucslen = pdf_lookup_cmap_full ( fontdesc -> to_unicode , cid , ucsbuf ) ;\n if ( ucslen == 0 && ( size_t ) cid < fontdesc -> cid_to_ucs_len ) {\n ucsbuf [ 0 ] = fontdesc -> cid_to_ucs [ cid ] ;\n ucslen = 1 ;\n }\n if ( ucslen == 0 || ( ucslen == 1 && ucsbuf [ 0 ] == 0 ) ) {\n ucsbuf [ 0 ] = FZ_REPLACEMENT_CHARACTER ;\n ucslen = 1 ;\n }\n fz_show_glyph ( ctx , pr -> tos . text , fontdesc -> font , & trm , gid , ucsbuf [ 0 ] , fontdesc -> wmode , 0 , FZ_BIDI_NEUTRAL , FZ_LANG_UNSET ) ;\n for ( i = 1 ;\n i < ucslen ;\n i ++ ) fz_show_glyph ( ctx , pr -> tos . text , fontdesc -> font , & trm , - 1 , ucsbuf [ i ] , fontdesc -> wmode , 0 , FZ_BIDI_NEUTRAL , FZ_LANG_UNSET ) ;\n pdf_tos_move_after_char ( ctx , & pr -> tos ) ;\n }"}
{"idx": 18989, "target": 0, "func": "static void vmsvga_value_write ( void * opaque , uint32_t address , uint32_t value ) {\n struct vmsvga_state_s * s = opaque ;\n if ( s -> index >= SVGA_SCRATCH_BASE ) {\n trace_vmware_scratch_write ( s -> index , value ) ;\n }\n else if ( s -> index >= SVGA_PALETTE_BASE ) {\n trace_vmware_palette_write ( s -> index , value ) ;\n }\n else {\n trace_vmware_value_write ( s -> index , value ) ;\n }\n switch ( s -> index ) {\n case SVGA_REG_ID : if ( value == SVGA_ID_2 || value == SVGA_ID_1 || value == SVGA_ID_0 ) {\n s -> svgaid = value ;\n }\n break ;\n case SVGA_REG_ENABLE : s -> enable = ! ! value ;\n s -> invalidated = 1 ;\n s -> vga . hw_ops -> invalidate ( & s -> vga ) ;\n if ( s -> enable && s -> config ) {\n vga_dirty_log_stop ( & s -> vga ) ;\n }\n else {\n vga_dirty_log_start ( & s -> vga ) ;\n }\n break ;\n case SVGA_REG_WIDTH : if ( value <= SVGA_MAX_WIDTH ) {\n s -> new_width = value ;\n s -> invalidated = 1 ;\n }\n else {\n printf ( \"%s: Bad width: %i\\n\" , __func__ , value ) ;\n }\n break ;\n case SVGA_REG_HEIGHT : if ( value <= SVGA_MAX_HEIGHT ) {\n s -> new_height = value ;\n s -> invalidated = 1 ;\n }\n else {\n printf ( \"%s: Bad height: %i\\n\" , __func__ , value ) ;\n }\n break ;\n case SVGA_REG_BITS_PER_PIXEL : if ( value != 32 ) {\n printf ( \"%s: Bad bits per pixel: %i bits\\n\" , __func__ , value ) ;\n s -> config = 0 ;\n s -> invalidated = 1 ;\n }\n break ;\n case SVGA_REG_CONFIG_DONE : if ( value ) {\n s -> fifo = ( uint32_t * ) s -> fifo_ptr ;\n if ( ( CMD ( min ) | CMD ( max ) | CMD ( next_cmd ) | CMD ( stop ) ) & 3 ) {\n break ;\n }\n if ( CMD ( min ) < ( uint8_t * ) s -> cmd -> fifo - ( uint8_t * ) s -> fifo ) {\n break ;\n }\n if ( CMD ( max ) > SVGA_FIFO_SIZE ) {\n break ;\n }\n if ( CMD ( max ) < CMD ( min ) + 10 * 1024 ) {\n break ;\n }\n vga_dirty_log_stop ( & s -> vga ) ;\n }\n s -> config = ! ! value ;\n break ;\n case SVGA_REG_SYNC : s -> syncing = 1 ;\n vmsvga_fifo_run ( s ) ;\n break ;\n case SVGA_REG_GUEST_ID : s -> guest = value ;\n # ifdef VERBOSE if ( value >= GUEST_OS_BASE && value < GUEST_OS_BASE + ARRAY_SIZE ( vmsvga_guest_id ) ) {\n printf ( \"%s: guest runs %s.\\n\" , __func__ , vmsvga_guest_id [ value - GUEST_OS_BASE ] ) ;\n }\n # endif break ;\n case SVGA_REG_CURSOR_ID : s -> cursor . id = value ;\n break ;\n case SVGA_REG_CURSOR_X : s -> cursor . x = value ;\n break ;\n case SVGA_REG_CURSOR_Y : s -> cursor . y = value ;\n break ;\n case SVGA_REG_CURSOR_ON : s -> cursor . on |= ( value == SVGA_CURSOR_ON_SHOW ) ;\n s -> cursor . on &= ( value != SVGA_CURSOR_ON_HIDE ) ;\n # ifdef HW_MOUSE_ACCEL if ( value <= SVGA_CURSOR_ON_SHOW ) {\n dpy_mouse_set ( s -> vga . con , s -> cursor . x , s -> cursor . y , s -> cursor . on ) ;\n }\n # endif break ;\n case SVGA_REG_DEPTH : case SVGA_REG_MEM_REGS : case SVGA_REG_NUM_DISPLAYS : case SVGA_REG_PITCHLOCK : case SVGA_PALETTE_BASE ... SVGA_PALETTE_END : break ;\n default : if ( s -> index >= SVGA_SCRATCH_BASE && s -> index < SVGA_SCRATCH_BASE + s -> scratch_size ) {\n s -> scratch [ s -> index - SVGA_SCRATCH_BASE ] = value ;\n break ;\n }\n printf ( \"%s: Bad register %02x\\n\" , __func__ , s -> index ) ;\n }\n }"}
{"idx": 18990, "target": 0, "func": "static void * kill_server ( void * sig_ptr ) # define RETURN_FROM_KILL_SERVER return 0 # else static void __cdecl kill_server ( int sig_ptr ) # define RETURN_FROM_KILL_SERVER return # endif {\n DBUG_ENTER ( \"kill_server\" ) ;\n # ifndef EMBEDDED_LIBRARY int sig = ( int ) ( long ) sig_ptr ;\n if ( kill_in_progress ) {\n DBUG_LEAVE ;\n RETURN_FROM_KILL_SERVER ;\n }\n kill_in_progress = TRUE ;\n abort_loop = 1 ;\n if ( sig != 0 ) my_sigset ( sig , SIG_IGN ) ;\n if ( sig == MYSQL_KILL_SIGNAL || sig == 0 ) sql_print_information ( ER_DEFAULT ( ER_NORMAL_SHUTDOWN ) , my_progname ) ;\n else sql_print_error ( ER_DEFAULT ( ER_GOT_SIGNAL ) , my_progname , sig ) ;\n # ifdef HAVE_SMEM if ( opt_enable_shared_memory ) {\n if ( ! SetEvent ( smem_event_connect_request ) ) {\n DBUG_PRINT ( \"error\" , ( \"Got error: %ld from SetEvent of smem_event_connect_request\" , GetLastError ( ) ) ) ;\n }\n }\n # endif close_connections ( ) ;\n if ( sig != MYSQL_KILL_SIGNAL && sig != 0 ) unireg_abort ( 1 ) ;\n else unireg_end ( ) ;\n DBUG_LEAVE ;\n my_thread_end ( ) ;\n pthread_exit ( 0 ) ;\n RETURN_FROM_KILL_SERVER ;\n # else DBUG_LEAVE ;\n RETURN_FROM_KILL_SERVER ;\n # endif }"}
{"idx": 18991, "target": 0, "func": "static guint8 nb_local_session ( tvbuff_t * tvb , int offset , proto_tree * tree ) {\n guint8 local_session = tvb_get_guint8 ( tvb , offset + NB_LOCAL_SES ) ;\n proto_tree_add_uint ( tree , hf_netb_local_ses_no , tvb , offset + NB_LOCAL_SES , 1 , local_session ) ;\n return local_session ;\n }"}
{"idx": 18992, "target": 0, "func": "static void estimate_block_intra ( int plane , int block , BLOCK_SIZE plane_bsize , TX_SIZE tx_size , void * arg ) {\n struct estimate_block_intra_args * const args = arg ;\n VP9_COMP * const cpi = args -> cpi ;\n MACROBLOCK * const x = args -> x ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n struct macroblock_plane * const p = & x -> plane [ 0 ] ;\n struct macroblockd_plane * const pd = & xd -> plane [ 0 ] ;\n const BLOCK_SIZE bsize_tx = txsize_to_bsize [ tx_size ] ;\n uint8_t * const src_buf_base = p -> src . buf ;\n uint8_t * const dst_buf_base = pd -> dst . buf ;\n const int src_stride = p -> src . stride ;\n const int dst_stride = pd -> dst . stride ;\n int i , j ;\n int rate ;\n int64_t dist ;\n unsigned int var_y , sse_y ;\n txfrm_block_to_raster_xy ( plane_bsize , tx_size , block , & i , & j ) ;\n assert ( plane == 0 ) ;\n ( void ) plane ;\n p -> src . buf = & src_buf_base [ 4 * ( j * src_stride + i ) ] ;\n pd -> dst . buf = & dst_buf_base [ 4 * ( j * dst_stride + i ) ] ;\n vp9_predict_intra_block ( xd , block >> ( 2 * tx_size ) , b_width_log2 ( plane_bsize ) , tx_size , args -> mode , p -> src . buf , src_stride , pd -> dst . buf , dst_stride , i , j , 0 ) ;\n model_rd_for_sb_y ( cpi , bsize_tx , x , xd , & rate , & dist , & var_y , & sse_y ) ;\n p -> src . buf = src_buf_base ;\n pd -> dst . buf = dst_buf_base ;\n args -> rate += rate ;\n args -> dist += dist ;\n }"}
{"idx": 18993, "target": 0, "func": "TSCacheKey TSCacheKeyCreate ( void ) {\n TSCacheKey key = ( TSCacheKey ) new CacheInfo ( ) ;\n sdk_assert ( sdk_sanity_check_cachekey ( key ) == TS_SUCCESS ) ;\n return key ;\n }"}
{"idx": 18994, "target": 0, "func": "static void proto_tree_set_eui64 ( field_info * fi , const guint64 value ) {\n fvalue_set_uinteger64 ( & fi -> value , value ) ;\n }"}
{"idx": 18995, "target": 0, "func": "static void net_init_slirp_configs ( const StringList * fwd , int flags ) {\n while ( fwd ) {\n struct slirp_config_str * config ;\n config = g_malloc0 ( sizeof ( * config ) ) ;\n pstrcpy ( config -> str , sizeof ( config -> str ) , fwd -> value -> str ) ;\n config -> flags = flags ;\n config -> next = slirp_configs ;\n slirp_configs = config ;\n fwd = fwd -> next ;\n }\n }"}
{"idx": 18996, "target": 1, "func": "static char * pathToFullPath ( const char * path , const char * source ) {\n int32_t length ;\n int32_t newLength ;\n char * fullPath ;\n int32_t n ;\n length = ( uint32_t ) ( uprv_strlen ( path ) + 1 ) ;\n newLength = ( length + 1 + ( int32_t ) uprv_strlen ( source ) ) ;\n fullPath = uprv_malloc ( newLength ) ;\n if ( source != NULL ) {\n uprv_strcpy ( fullPath , source ) ;\n uprv_strcat ( fullPath , U_FILE_SEP_STRING ) ;\n }\n else {\n fullPath [ 0 ] = 0 ;\n }\n n = ( int32_t ) uprv_strlen ( fullPath ) ;\n fullPath [ n ] = 0 ;\n uprv_strcat ( fullPath , path ) ;\n # if ( U_FILE_ALT_SEP_CHAR != U_TREE_ENTRY_SEP_CHAR ) # if ( U_FILE_ALT_SEP_CHAR != U_FILE_SEP_CHAR ) for ( ;\n fullPath [ n ] ;\n n ++ ) {\n if ( fullPath [ n ] == U_FILE_ALT_SEP_CHAR ) {\n fullPath [ n ] = U_FILE_SEP_CHAR ;\n }\n }\n # endif # endif # if ( U_FILE_SEP_CHAR != U_TREE_ENTRY_SEP_CHAR ) for ( ;\n fullPath [ n ] ;\n n ++ ) {\n if ( fullPath [ n ] == U_TREE_ENTRY_SEP_CHAR ) {\n fullPath [ n ] = U_FILE_SEP_CHAR ;\n }\n }\n # endif return fullPath ;\n }"}
{"idx": 18997, "target": 0, "func": "static int http_should_fail ( struct connectdata * conn ) {\n struct Curl_easy * data ;\n int httpcode ;\n DEBUGASSERT ( conn ) ;\n data = conn -> data ;\n DEBUGASSERT ( data ) ;\n httpcode = data -> req . httpcode ;\n if ( ! data -> set . http_fail_on_error ) return 0 ;\n if ( httpcode < 400 ) return 0 ;\n if ( ( httpcode != 401 ) && ( httpcode != 407 ) ) return 1 ;\n DEBUGASSERT ( ( httpcode == 401 ) || ( httpcode == 407 ) ) ;\n if ( ( httpcode == 401 ) && ! conn -> bits . user_passwd ) return TRUE ;\n if ( ( httpcode == 407 ) && ! conn -> bits . proxy_user_passwd ) return TRUE ;\n return data -> state . authproblem ;\n }"}
{"idx": 18998, "target": 0, "func": "static int dissect_DEVMODE_fields ( tvbuff_t * tvb , gint offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ , guint32 * pdata ) {\n guint32 fields ;\n proto_item * hidden_item ;\n static const int * hf_fields [ ] = {\n & hf_devmode_fields_orientation , & hf_devmode_fields_papersize , & hf_devmode_fields_paperlength , & hf_devmode_fields_paperwidth , & hf_devmode_fields_scale , & hf_devmode_fields_position , & hf_devmode_fields_nup , & hf_devmode_fields_copies , & hf_devmode_fields_defaultsource , & hf_devmode_fields_printquality , & hf_devmode_fields_color , & hf_devmode_fields_duplex , & hf_devmode_fields_yresolution , & hf_devmode_fields_ttoption , & hf_devmode_fields_collate , & hf_devmode_fields_formname , & hf_devmode_fields_logpixels , & hf_devmode_fields_bitsperpel , & hf_devmode_fields_pelswidth , & hf_devmode_fields_pelsheight , & hf_devmode_fields_displayflags , & hf_devmode_fields_displayfrequency , & hf_devmode_fields_icmmethod , & hf_devmode_fields_icmintent , & hf_devmode_fields_mediatype , & hf_devmode_fields_dithertype , & hf_devmode_fields_panningwidth , & hf_devmode_fields_panningheight , NULL }\n ;\n hidden_item = proto_tree_add_uint ( tree , hf_devmode , tvb , offset , 0 , 1 ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , NULL , di , drep , - 1 , & fields ) ;\n proto_tree_add_bitmask_value_with_flags ( tree , tvb , offset - 4 , hf_devmode_fields , ett_DEVMODE_fields , hf_fields , fields , BMT_NO_APPEND ) ;\n if ( pdata ) * pdata = fields ;\n return offset ;\n }"}
{"idx": 18999, "target": 0, "func": "static void init_h245_packet_info ( h245_packet_info * pi ) {\n if ( pi == NULL ) {\n return ;\n }\n pi -> msg_type = H245_OTHER ;\n pi -> frame_label [ 0 ] = '\\0' ;\n g_snprintf ( pi -> comment , sizeof ( pi -> comment ) , \"H245 \" ) ;\n }"}
{"idx": 19000, "target": 1, "func": "static inline void vc1_pred_b_mv ( VC1Context * v , int dmv_x [ 2 ] , int dmv_y [ 2 ] , int direct , int mvtype ) {\n MpegEncContext * s = & v -> s ;\n int xy , wrap , off = 0 ;\n int16_t * A , * B , * C ;\n int px , py ;\n int sum ;\n int r_x , r_y ;\n const uint8_t * is_intra = v -> mb_type [ 0 ] ;\n r_x = v -> range_x ;\n r_y = v -> range_y ;\n dmv_x [ 0 ] <<= 1 - s -> quarter_sample ;\n dmv_y [ 0 ] <<= 1 - s -> quarter_sample ;\n dmv_x [ 1 ] <<= 1 - s -> quarter_sample ;\n dmv_y [ 1 ] <<= 1 - s -> quarter_sample ;\n wrap = s -> b8_stride ;\n xy = s -> block_index [ 0 ] ;\n if ( s -> mb_intra ) {\n s -> current_picture . f . motion_val [ 0 ] [ xy + v -> blocks_off ] [ 0 ] = s -> current_picture . f . motion_val [ 0 ] [ xy + v -> blocks_off ] [ 1 ] = s -> current_picture . f . motion_val [ 1 ] [ xy + v -> blocks_off ] [ 0 ] = s -> current_picture . f . motion_val [ 1 ] [ xy + v -> blocks_off ] [ 1 ] = 0 ;\n return ;\n }\n if ( ! v -> field_mode ) {\n s -> mv [ 0 ] [ 0 ] [ 0 ] = scale_mv ( s -> next_picture . f . motion_val [ 1 ] [ xy ] [ 0 ] , v -> bfraction , 0 , s -> quarter_sample ) ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = scale_mv ( s -> next_picture . f . motion_val [ 1 ] [ xy ] [ 1 ] , v -> bfraction , 0 , s -> quarter_sample ) ;\n s -> mv [ 1 ] [ 0 ] [ 0 ] = scale_mv ( s -> next_picture . f . motion_val [ 1 ] [ xy ] [ 0 ] , v -> bfraction , 1 , s -> quarter_sample ) ;\n s -> mv [ 1 ] [ 0 ] [ 1 ] = scale_mv ( s -> next_picture . f . motion_val [ 1 ] [ xy ] [ 1 ] , v -> bfraction , 1 , s -> quarter_sample ) ;\n s -> mv [ 0 ] [ 0 ] [ 0 ] = av_clip ( s -> mv [ 0 ] [ 0 ] [ 0 ] , - 60 - ( s -> mb_x << 6 ) , ( s -> mb_width << 6 ) - 4 - ( s -> mb_x << 6 ) ) ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = av_clip ( s -> mv [ 0 ] [ 0 ] [ 1 ] , - 60 - ( s -> mb_y << 6 ) , ( s -> mb_height << 6 ) - 4 - ( s -> mb_y << 6 ) ) ;\n s -> mv [ 1 ] [ 0 ] [ 0 ] = av_clip ( s -> mv [ 1 ] [ 0 ] [ 0 ] , - 60 - ( s -> mb_x << 6 ) , ( s -> mb_width << 6 ) - 4 - ( s -> mb_x << 6 ) ) ;\n s -> mv [ 1 ] [ 0 ] [ 1 ] = av_clip ( s -> mv [ 1 ] [ 0 ] [ 1 ] , - 60 - ( s -> mb_y << 6 ) , ( s -> mb_height << 6 ) - 4 - ( s -> mb_y << 6 ) ) ;\n }\n if ( direct ) {\n s -> current_picture . f . motion_val [ 0 ] [ xy + v -> blocks_off ] [ 0 ] = s -> mv [ 0 ] [ 0 ] [ 0 ] ;\n s -> current_picture . f . motion_val [ 0 ] [ xy + v -> blocks_off ] [ 1 ] = s -> mv [ 0 ] [ 0 ] [ 1 ] ;\n s -> current_picture . f . motion_val [ 1 ] [ xy + v -> blocks_off ] [ 0 ] = s -> mv [ 1 ] [ 0 ] [ 0 ] ;\n s -> current_picture . f . motion_val [ 1 ] [ xy + v -> blocks_off ] [ 1 ] = s -> mv [ 1 ] [ 0 ] [ 1 ] ;\n return ;\n }\n if ( ( mvtype == BMV_TYPE_FORWARD ) || ( mvtype == BMV_TYPE_INTERPOLATED ) ) {\n C = s -> current_picture . f . motion_val [ 0 ] [ xy - 2 ] ;\n A = s -> current_picture . f . motion_val [ 0 ] [ xy - wrap * 2 ] ;\n off = ( s -> mb_x == ( s -> mb_width - 1 ) ) ? - 2 : 2 ;\n B = s -> current_picture . f . motion_val [ 0 ] [ xy - wrap * 2 + off ] ;\n if ( ! s -> mb_x ) C [ 0 ] = C [ 1 ] = 0 ;\n if ( ! s -> first_slice_line ) {\n if ( s -> mb_width == 1 ) {\n px = A [ 0 ] ;\n py = A [ 1 ] ;\n }\n else {\n px = mid_pred ( A [ 0 ] , B [ 0 ] , C [ 0 ] ) ;\n py = mid_pred ( A [ 1 ] , B [ 1 ] , C [ 1 ] ) ;\n }\n }\n else if ( s -> mb_x ) {\n px = C [ 0 ] ;\n py = C [ 1 ] ;\n }\n else {\n px = py = 0 ;\n }\n {\n int qx , qy , X , Y ;\n if ( v -> profile < PROFILE_ADVANCED ) {\n qx = ( s -> mb_x << 5 ) ;\n qy = ( s -> mb_y << 5 ) ;\n X = ( s -> mb_width << 5 ) - 4 ;\n Y = ( s -> mb_height << 5 ) - 4 ;\n if ( qx + px < - 28 ) px = - 28 - qx ;\n if ( qy + py < - 28 ) py = - 28 - qy ;\n if ( qx + px > X ) px = X - qx ;\n if ( qy + py > Y ) py = Y - qy ;\n }\n else {\n qx = ( s -> mb_x << 6 ) ;\n qy = ( s -> mb_y << 6 ) ;\n X = ( s -> mb_width << 6 ) - 4 ;\n Y = ( s -> mb_height << 6 ) - 4 ;\n if ( qx + px < - 60 ) px = - 60 - qx ;\n if ( qy + py < - 60 ) py = - 60 - qy ;\n if ( qx + px > X ) px = X - qx ;\n if ( qy + py > Y ) py = Y - qy ;\n }\n }\n if ( 0 && ! s -> first_slice_line && s -> mb_x ) {\n if ( is_intra [ xy - wrap ] ) sum = FFABS ( px ) + FFABS ( py ) ;\n else sum = FFABS ( px - A [ 0 ] ) + FFABS ( py - A [ 1 ] ) ;\n if ( sum > 32 ) {\n if ( get_bits1 ( & s -> gb ) ) {\n px = A [ 0 ] ;\n py = A [ 1 ] ;\n }\n else {\n px = C [ 0 ] ;\n py = C [ 1 ] ;\n }\n }\n else {\n if ( is_intra [ xy - 2 ] ) sum = FFABS ( px ) + FFABS ( py ) ;\n else sum = FFABS ( px - C [ 0 ] ) + FFABS ( py - C [ 1 ] ) ;\n if ( sum > 32 ) {\n if ( get_bits1 ( & s -> gb ) ) {\n px = A [ 0 ] ;\n py = A [ 1 ] ;\n }\n else {\n px = C [ 0 ] ;\n py = C [ 1 ] ;\n }\n }\n }\n }\n s -> mv [ 0 ] [ 0 ] [ 0 ] = ( ( px + dmv_x [ 0 ] + r_x ) & ( ( r_x << 1 ) - 1 ) ) - r_x ;\n s -> mv [ 0 ] [ 0 ] [ 1 ] = ( ( py + dmv_y [ 0 ] + r_y ) & ( ( r_y << 1 ) - 1 ) ) - r_y ;\n }\n if ( ( mvtype == BMV_TYPE_BACKWARD ) || ( mvtype == BMV_TYPE_INTERPOLATED ) ) {\n C = s -> current_picture . f . motion_val [ 1 ] [ xy - 2 ] ;\n A = s -> current_picture . f . motion_val [ 1 ] [ xy - wrap * 2 ] ;\n off = ( s -> mb_x == ( s -> mb_width - 1 ) ) ? - 2 : 2 ;\n B = s -> current_picture . f . motion_val [ 1 ] [ xy - wrap * 2 + off ] ;\n if ( ! s -> mb_x ) C [ 0 ] = C [ 1 ] = 0 ;\n if ( ! s -> first_slice_line ) {\n if ( s -> mb_width == 1 ) {\n px = A [ 0 ] ;\n py = A [ 1 ] ;\n }\n else {\n px = mid_pred ( A [ 0 ] , B [ 0 ] , C [ 0 ] ) ;\n py = mid_pred ( A [ 1 ] , B [ 1 ] , C [ 1 ] ) ;\n }\n }\n else if ( s -> mb_x ) {\n px = C [ 0 ] ;\n py = C [ 1 ] ;\n }\n else {\n px = py = 0 ;\n }\n {\n int qx , qy , X , Y ;\n if ( v -> profile < PROFILE_ADVANCED ) {\n qx = ( s -> mb_x << 5 ) ;\n qy = ( s -> mb_y << 5 ) ;\n X = ( s -> mb_width << 5 ) - 4 ;\n Y = ( s -> mb_height << 5 ) - 4 ;\n if ( qx + px < - 28 ) px = - 28 - qx ;\n if ( qy + py < - 28 ) py = - 28 - qy ;\n if ( qx + px > X ) px = X - qx ;\n if ( qy + py > Y ) py = Y - qy ;\n }\n else {\n qx = ( s -> mb_x << 6 ) ;\n qy = ( s -> mb_y << 6 ) ;\n X = ( s -> mb_width << 6 ) - 4 ;\n Y = ( s -> mb_height << 6 ) - 4 ;\n if ( qx + px < - 60 ) px = - 60 - qx ;\n if ( qy + py < - 60 ) py = - 60 - qy ;\n if ( qx + px > X ) px = X - qx ;\n if ( qy + py > Y ) py = Y - qy ;\n }\n }\n if ( 0 && ! s -> first_slice_line && s -> mb_x ) {\n if ( is_intra [ xy - wrap ] ) sum = FFABS ( px ) + FFABS ( py ) ;\n else sum = FFABS ( px - A [ 0 ] ) + FFABS ( py - A [ 1 ] ) ;\n if ( sum > 32 ) {\n if ( get_bits1 ( & s -> gb ) ) {\n px = A [ 0 ] ;\n py = A [ 1 ] ;\n }\n else {\n px = C [ 0 ] ;\n py = C [ 1 ] ;\n }\n }\n else {\n if ( is_intra [ xy - 2 ] ) sum = FFABS ( px ) + FFABS ( py ) ;\n else sum = FFABS ( px - C [ 0 ] ) + FFABS ( py - C [ 1 ] ) ;\n if ( sum > 32 ) {\n if ( get_bits1 ( & s -> gb ) ) {\n px = A [ 0 ] ;\n py = A [ 1 ] ;\n }\n else {\n px = C [ 0 ] ;\n py = C [ 1 ] ;\n }\n }\n }\n }\n s -> mv [ 1 ] [ 0 ] [ 0 ] = ( ( px + dmv_x [ 1 ] + r_x ) & ( ( r_x << 1 ) - 1 ) ) - r_x ;\n s -> mv [ 1 ] [ 0 ] [ 1 ] = ( ( py + dmv_y [ 1 ] + r_y ) & ( ( r_y << 1 ) - 1 ) ) - r_y ;\n }\n s -> current_picture . f . motion_val [ 0 ] [ xy ] [ 0 ] = s -> mv [ 0 ] [ 0 ] [ 0 ] ;\n s -> current_picture . f . motion_val [ 0 ] [ xy ] [ 1 ] = s -> mv [ 0 ] [ 0 ] [ 1 ] ;\n s -> current_picture . f . motion_val [ 1 ] [ xy ] [ 0 ] = s -> mv [ 1 ] [ 0 ] [ 0 ] ;\n s -> current_picture . f . motion_val [ 1 ] [ xy ] [ 1 ] = s -> mv [ 1 ] [ 0 ] [ 1 ] ;\n }"}
{"idx": 19001, "target": 0, "func": "static gpgme_error_t uiserver_set_protocol ( void * engine , gpgme_protocol_t protocol ) {\n engine_uiserver_t uiserver = engine ;\n if ( protocol != GPGME_PROTOCOL_OpenPGP && protocol != GPGME_PROTOCOL_CMS && protocol != GPGME_PROTOCOL_DEFAULT ) return gpg_error ( GPG_ERR_INV_VALUE ) ;\n uiserver -> protocol = protocol ;\n return 0 ;\n }"}
{"idx": 19002, "target": 0, "func": "static int dissect_CPMFreeCursor ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree _U_ , gboolean in _U_ , void * data _U_ ) {\n col_append_str ( pinfo -> cinfo , COL_INFO , \"FreeCursor\" ) ;\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 19003, "target": 0, "func": "static void _slurm_rpc_step_update ( slurm_msg_t * msg ) {\n DEF_TIMERS ;\n step_update_request_msg_t * req = ( step_update_request_msg_t * ) msg -> data ;\n slurmctld_lock_t job_write_lock = {\n NO_LOCK , WRITE_LOCK , NO_LOCK , NO_LOCK , NO_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n int rc ;\n START_TIMER ;\n if ( slurmctld_conf . debug_flags & DEBUG_FLAG_STEPS ) info ( \"Processing RPC: REQUEST_STEP_UPDATE, from uid=%d\" , uid ) ;\n lock_slurmctld ( job_write_lock ) ;\n rc = update_step ( req , uid ) ;\n unlock_slurmctld ( job_write_lock ) ;\n END_TIMER2 ( \"_slurm_rpc_step_update\" ) ;\n slurm_send_rc_msg ( msg , rc ) ;\n }"}
{"idx": 19004, "target": 0, "func": "void vp9_build_inter_predictors_sby ( MACROBLOCKD * xd , int mi_row , int mi_col , BLOCK_SIZE bsize ) {\n build_inter_predictors_for_planes ( xd , bsize , mi_row , mi_col , 0 , 0 ) ;\n }"}
{"idx": 19005, "target": 0, "func": "static void useSndTimeout ( socket_handle_t sock ) {\n # ifdef _WIN32 const DWORD socket_timeout = SOCKET_RW_TIMEOUT_MS ;\n setsockopt ( sock , SOL_SOCKET , SO_SNDTIMEO , ( const char * ) & socket_timeout , sizeof ( socket_timeout ) ) ;\n # else const struct timeval socket_timeout = {\n . tv_sec = SOCKET_RW_TIMEOUT_MS / 1000 , . tv_usec = ( SOCKET_RW_TIMEOUT_MS % 1000 ) * 1000 }\n ;\n setsockopt ( sock , SOL_SOCKET , SO_SNDTIMEO , & socket_timeout , sizeof ( socket_timeout ) ) ;\n # endif }"}
{"idx": 19006, "target": 0, "func": "static void cmd_window_hide ( const char * data ) {\n WINDOW_REC * window ;\n if ( mainwindows -> next == NULL ) {\n printformat_window ( active_win , MSGLEVEL_CLIENTNOTICE , TXT_CANT_HIDE_LAST ) ;\n return ;\n }\n if ( * data == '\\0' ) window = active_win ;\n else if ( is_numeric ( data , 0 ) ) {\n window = window_find_refnum ( atoi ( data ) ) ;\n if ( window == NULL ) {\n printformat_window ( active_win , MSGLEVEL_CLIENTERROR , TXT_REFNUM_NOT_FOUND , data ) ;\n }\n }\n else {\n window = window_find_item ( active_win -> active_server , data ) ;\n }\n if ( window == NULL || ! is_window_visible ( window ) ) return ;\n if ( WINDOW_MAIN ( window ) -> sticky_windows ) {\n if ( ! settings_get_bool ( \"autounstick_windows\" ) ) {\n printformat_window ( active_win , MSGLEVEL_CLIENTERROR , TXT_CANT_HIDE_STICKY_WINDOWS ) ;\n return ;\n }\n }\n mainwindow_destroy ( WINDOW_MAIN ( window ) ) ;\n if ( active_mainwin == NULL ) {\n active_mainwin = WINDOW_MAIN ( active_win ) ;\n window_set_active ( active_mainwin -> active ) ;\n }\n }"}
{"idx": 19007, "target": 0, "func": "static void test_union2 ( ) {\n MYSQL_STMT * stmt ;\n int rc , i ;\n myheader ( \"test_union2\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE t1(col1 INT, \\ col2 VARCHAR(40), \\ col3 SMALLINT, \\ col4 TIMESTAMP)\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"select col1 FROM t1 where col1=1 union distinct \" \"select col1 FROM t1 where col1=2\" ) ;\n check_stmt ( stmt ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( rc == 0 ) ;\n }\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"DROP TABLE t1\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 19008, "target": 1, "func": "int encode_function ( char * string , struct filter_op * fop ) {\n char * str = strdup ( string ) ;\n int ret = - E_NOTFOUND ;\n char * name , * args ;\n int nargs = 0 , i ;\n char * * dec_args = NULL ;\n char * tok ;\n memset ( fop , 0 , sizeof ( struct filter_op ) ) ;\n name = ec_strtok ( string , \"(\" , & tok ) ;\n args = name + strlen ( name ) + 1 ;\n dec_args = decode_args ( args , & nargs ) ;\n fop -> opcode = FOP_FUNC ;\n if ( ! strcmp ( name , \"search\" ) ) {\n if ( nargs == 2 ) {\n if ( encode_offset ( dec_args [ 0 ] , fop ) == E_SUCCESS ) {\n fop -> opcode = FOP_FUNC ;\n fop -> op . func . op = FFUNC_SEARCH ;\n fop -> op . func . string = ( u_char * ) strdup ( dec_args [ 1 ] ) ;\n fop -> op . func . slen = strescape ( ( char * ) fop -> op . func . string , ( char * ) fop -> op . func . string ) ;\n ret = E_SUCCESS ;\n }\n else SCRIPT_ERROR ( \"Unknown offset %s \" , dec_args [ 0 ] ) ;\n }\n else SCRIPT_ERROR ( \"Wrong number of arguments for function \\\"%s\\\" \" , name ) ;\n }\n else if ( ! strcmp ( name , \"regex\" ) ) {\n if ( nargs == 2 ) {\n int err ;\n regex_t regex ;\n char errbuf [ 100 ] ;\n if ( encode_offset ( dec_args [ 0 ] , fop ) == E_SUCCESS ) {\n fop -> opcode = FOP_FUNC ;\n fop -> op . func . op = FFUNC_REGEX ;\n fop -> op . func . string = ( u_char * ) strdup ( dec_args [ 1 ] ) ;\n fop -> op . func . slen = strescape ( ( char * ) fop -> op . func . string , ( char * ) fop -> op . func . string ) ;\n ret = E_SUCCESS ;\n }\n else SCRIPT_ERROR ( \"Unknown offset %s \" , dec_args [ 0 ] ) ;\n err = regcomp ( & regex , ( const char * ) fop -> op . func . string , REG_EXTENDED | REG_NOSUB | REG_ICASE ) ;\n if ( err ) {\n regerror ( err , & regex , errbuf , sizeof ( errbuf ) ) ;\n SCRIPT_ERROR ( \"%s\" , errbuf ) ;\n }\n regfree ( & regex ) ;\n }\n else SCRIPT_ERROR ( \"Wrong number of arguments for function \\\"%s\\\" \" , name ) ;\n }\n else if ( ! strcmp ( name , \"pcre_regex\" ) ) {\n # ifndef HAVE_PCRE WARNING ( \"The script contains pcre_regex, but you don't have support for it.\" ) ;\n # else pcre * pregex ;\n const char * errbuf = NULL ;\n int erroff ;\n if ( nargs == 2 ) {\n if ( encode_offset ( dec_args [ 0 ] , fop ) == E_SUCCESS ) {\n fop -> opcode = FOP_FUNC ;\n fop -> op . func . op = FFUNC_PCRE ;\n fop -> op . func . string = strdup ( dec_args [ 1 ] ) ;\n fop -> op . func . slen = strlen ( fop -> op . func . string ) ;\n ret = E_SUCCESS ;\n }\n else SCRIPT_ERROR ( \"Unknown offset %s \" , dec_args [ 0 ] ) ;\n pregex = pcre_compile ( fop -> op . func . string , 0 , & errbuf , & erroff , NULL ) ;\n if ( pregex == NULL ) SCRIPT_ERROR ( \"%s\\n\" , errbuf ) ;\n pcre_free ( pregex ) ;\n }\n else if ( nargs == 3 ) {\n fop -> opcode = FOP_FUNC ;\n fop -> op . func . op = FFUNC_PCRE ;\n fop -> op . func . level = 5 ;\n fop -> op . func . string = strdup ( dec_args [ 1 ] ) ;\n fop -> op . func . slen = strlen ( fop -> op . func . string ) ;\n fop -> op . func . replace = strdup ( dec_args [ 2 ] ) ;\n fop -> op . func . rlen = strlen ( fop -> op . func . replace ) ;\n ret = E_SUCCESS ;\n pregex = pcre_compile ( fop -> op . func . string , 0 , & errbuf , & erroff , NULL ) ;\n if ( pregex == NULL ) SCRIPT_ERROR ( \"%s\\n\" , errbuf ) ;\n pcre_free ( pregex ) ;\n }\n else SCRIPT_ERROR ( \"Wrong number of arguments for function \\\"%s\\\" \" , name ) ;\n # endif }\n else if ( ! strcmp ( name , \"replace\" ) ) {\n if ( nargs == 2 ) {\n fop -> op . func . op = FFUNC_REPLACE ;\n fop -> op . func . level = 5 ;\n fop -> op . func . string = ( u_char * ) strdup ( dec_args [ 0 ] ) ;\n fop -> op . func . slen = strescape ( ( char * ) fop -> op . func . string , ( char * ) fop -> op . func . string ) ;\n fop -> op . func . replace = ( u_char * ) strdup ( dec_args [ 1 ] ) ;\n fop -> op . func . rlen = strescape ( ( char * ) fop -> op . func . replace , ( char * ) fop -> op . func . replace ) ;\n ret = E_SUCCESS ;\n }\n else SCRIPT_ERROR ( \"Wrong number of arguments for function \\\"%s\\\" \" , name ) ;\n }\n else if ( ! strcmp ( name , \"inject\" ) ) {\n if ( nargs == 1 ) {\n fop -> op . func . op = FFUNC_INJECT ;\n fop -> op . func . level = 5 ;\n fop -> op . func . string = ( u_char * ) strdup ( dec_args [ 0 ] ) ;\n fop -> op . func . slen = strlen ( ( const char * ) fop -> op . func . string ) ;\n ret = E_SUCCESS ;\n }\n else SCRIPT_ERROR ( \"Wrong number of arguments for function \\\"%s\\\" \" , name ) ;\n }\n else if ( ! strcmp ( name , \"execinject\" ) ) {\n if ( nargs == 1 ) {\n fop -> op . func . op = FFUNC_EXECINJECT ;\n fop -> op . func . level = 5 ;\n fop -> op . func . string = ( u_char * ) strdup ( dec_args [ 0 ] ) ;\n fop -> op . func . slen = strlen ( ( const char * ) fop -> op . func . string ) ;\n ret = E_SUCCESS ;\n }\n else SCRIPT_ERROR ( \"Wrong number of arguments for function \\\"%s\\\" \" , name ) ;\n }\n else if ( ! strcmp ( name , \"log\" ) ) {\n if ( nargs == 2 ) {\n if ( encode_offset ( dec_args [ 0 ] , fop ) == E_SUCCESS ) {\n fop -> opcode = FOP_FUNC ;\n fop -> op . func . op = FFUNC_LOG ;\n fop -> op . func . string = ( u_char * ) strdup ( dec_args [ 1 ] ) ;\n fop -> op . func . slen = strlen ( ( const char * ) fop -> op . func . string ) ;\n ret = E_SUCCESS ;\n }\n else SCRIPT_ERROR ( \"Unknown offset %s \" , dec_args [ 0 ] ) ;\n }\n else SCRIPT_ERROR ( \"Wrong number of arguments for function \\\"%s\\\" \" , name ) ;\n }\n else if ( ! strcmp ( name , \"drop\" ) ) {\n if ( nargs == 0 ) {\n fop -> op . func . op = FFUNC_DROP ;\n ret = E_SUCCESS ;\n }\n else SCRIPT_ERROR ( \"Wrong number of arguments for function \\\"%s\\\" \" , name ) ;\n }\n else if ( ! strcmp ( name , \"kill\" ) ) {\n if ( nargs == 0 ) {\n fop -> op . func . op = FFUNC_KILL ;\n ret = E_SUCCESS ;\n }\n else SCRIPT_ERROR ( \"Wrong number of arguments for function \\\"%s\\\" \" , name ) ;\n }\n else if ( ! strcmp ( name , \"msg\" ) ) {\n if ( nargs == 1 ) {\n fop -> op . func . op = FFUNC_MSG ;\n fop -> op . func . string = ( u_char * ) strdup ( dec_args [ 0 ] ) ;\n fop -> op . func . slen = strescape ( ( char * ) fop -> op . func . string , ( char * ) fop -> op . func . string ) ;\n ret = E_SUCCESS ;\n }\n else SCRIPT_ERROR ( \"Wrong number of arguments for function \\\"%s\\\" \" , name ) ;\n }\n else if ( ! strcmp ( name , \"exec\" ) ) {\n if ( nargs == 1 ) {\n fop -> op . func . op = FFUNC_EXEC ;\n fop -> op . func . string = ( u_char * ) strdup ( dec_args [ 0 ] ) ;\n fop -> op . func . slen = strlen ( ( const char * ) fop -> op . func . string ) ;\n ret = E_SUCCESS ;\n }\n else SCRIPT_ERROR ( \"Wrong number of arguments for function \\\"%s\\\" \" , name ) ;\n }\n else if ( ! strcmp ( name , \"exit\" ) ) {\n if ( nargs == 0 ) {\n fop -> opcode = FOP_EXIT ;\n ret = E_SUCCESS ;\n }\n else SCRIPT_ERROR ( \"Wrong number of arguments for function \\\"%s\\\" \" , name ) ;\n }\n for ( i = 0 ;\n i < nargs ;\n i ++ ) SAFE_FREE ( dec_args [ i ] ) ;\n SAFE_FREE ( dec_args ) ;\n SAFE_FREE ( str ) ;\n return ret ;\n }"}
{"idx": 19009, "target": 0, "func": "void evhttp_free ( struct evhttp * http ) {\n struct evhttp_cb * http_cb ;\n struct evhttp_connection * evcon ;\n struct evhttp_bound_socket * bound ;\n int fd ;\n while ( ( bound = TAILQ_FIRST ( & http -> sockets ) ) != NULL ) {\n TAILQ_REMOVE ( & http -> sockets , bound , next ) ;\n fd = bound -> bind_ev . ev_fd ;\n event_del ( & bound -> bind_ev ) ;\n EVUTIL_CLOSESOCKET ( fd ) ;\n free ( bound ) ;\n }\n while ( ( evcon = TAILQ_FIRST ( & http -> connections ) ) != NULL ) {\n evhttp_connection_free ( evcon ) ;\n }\n while ( ( http_cb = TAILQ_FIRST ( & http -> callbacks ) ) != NULL ) {\n TAILQ_REMOVE ( & http -> callbacks , http_cb , next ) ;\n free ( http_cb -> what ) ;\n free ( http_cb ) ;\n }\n free ( http ) ;\n }"}
{"idx": 19010, "target": 0, "func": "static inline uint16_t cpu_to_be16 ( uint16_t v ) {\n return bswap16 ( v ) ;\n }"}
{"idx": 19011, "target": 0, "func": "void vp9_iht8x8_64_add_sse2 ( const int16_t * input , uint8_t * dest , int stride , int tx_type ) {\n __m128i in [ 8 ] ;\n const __m128i zero = _mm_setzero_si128 ( ) ;\n const __m128i final_rounding = _mm_set1_epi16 ( 1 << 4 ) ;\n in [ 0 ] = _mm_load_si128 ( ( const __m128i * ) input ) ;\n in [ 1 ] = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 1 ) ) ;\n in [ 2 ] = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 2 ) ) ;\n in [ 3 ] = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 3 ) ) ;\n in [ 4 ] = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 4 ) ) ;\n in [ 5 ] = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 5 ) ) ;\n in [ 6 ] = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 6 ) ) ;\n in [ 7 ] = _mm_load_si128 ( ( const __m128i * ) ( input + 8 * 7 ) ) ;\n switch ( tx_type ) {\n case 0 : idct8_sse2 ( in ) ;\n idct8_sse2 ( in ) ;\n break ;\n case 1 : idct8_sse2 ( in ) ;\n iadst8_sse2 ( in ) ;\n break ;\n case 2 : iadst8_sse2 ( in ) ;\n idct8_sse2 ( in ) ;\n break ;\n case 3 : iadst8_sse2 ( in ) ;\n iadst8_sse2 ( in ) ;\n break ;\n default : assert ( 0 ) ;\n break ;\n }\n in [ 0 ] = _mm_adds_epi16 ( in [ 0 ] , final_rounding ) ;\n in [ 1 ] = _mm_adds_epi16 ( in [ 1 ] , final_rounding ) ;\n in [ 2 ] = _mm_adds_epi16 ( in [ 2 ] , final_rounding ) ;\n in [ 3 ] = _mm_adds_epi16 ( in [ 3 ] , final_rounding ) ;\n in [ 4 ] = _mm_adds_epi16 ( in [ 4 ] , final_rounding ) ;\n in [ 5 ] = _mm_adds_epi16 ( in [ 5 ] , final_rounding ) ;\n in [ 6 ] = _mm_adds_epi16 ( in [ 6 ] , final_rounding ) ;\n in [ 7 ] = _mm_adds_epi16 ( in [ 7 ] , final_rounding ) ;\n in [ 0 ] = _mm_srai_epi16 ( in [ 0 ] , 5 ) ;\n in [ 1 ] = _mm_srai_epi16 ( in [ 1 ] , 5 ) ;\n in [ 2 ] = _mm_srai_epi16 ( in [ 2 ] , 5 ) ;\n in [ 3 ] = _mm_srai_epi16 ( in [ 3 ] , 5 ) ;\n in [ 4 ] = _mm_srai_epi16 ( in [ 4 ] , 5 ) ;\n in [ 5 ] = _mm_srai_epi16 ( in [ 5 ] , 5 ) ;\n in [ 6 ] = _mm_srai_epi16 ( in [ 6 ] , 5 ) ;\n in [ 7 ] = _mm_srai_epi16 ( in [ 7 ] , 5 ) ;\n RECON_AND_STORE ( dest , in [ 0 ] ) ;\n RECON_AND_STORE ( dest , in [ 1 ] ) ;\n RECON_AND_STORE ( dest , in [ 2 ] ) ;\n RECON_AND_STORE ( dest , in [ 3 ] ) ;\n RECON_AND_STORE ( dest , in [ 4 ] ) ;\n RECON_AND_STORE ( dest , in [ 5 ] ) ;\n RECON_AND_STORE ( dest , in [ 6 ] ) ;\n RECON_AND_STORE ( dest , in [ 7 ] ) ;\n }"}
{"idx": 19012, "target": 0, "func": "void hb_face_destroy ( hb_face_t * face ) {\n if ( ! hb_object_destroy ( face ) ) return ;\n for ( hb_face_t : : plan_node_t * node = face -> shape_plans ;\n node ;\n ) {\n hb_face_t : : plan_node_t * next = node -> next ;\n hb_shape_plan_destroy ( node -> shape_plan ) ;\n free ( node ) ;\n node = next ;\n }\n # define HB_SHAPER_IMPLEMENT ( shaper ) HB_SHAPER_DATA_DESTROY ( shaper , face ) ;\n # include \"hb-shaper-list.hh\" # undef HB_SHAPER_IMPLEMENT if ( face -> destroy ) face -> destroy ( face -> user_data ) ;\n free ( face ) ;\n }"}
{"idx": 19013, "target": 0, "func": "static apr_status_t modsecurity_process_phase_response_body ( modsec_rec * msr ) {\n apr_time_t time_before ;\n apr_status_t rc = 0 ;\n if ( msr -> allow_scope == ACTION_ALLOW ) {\n if ( msr -> txcfg -> debuglog_level >= 4 ) {\n msr_log ( msr , 4 , \"Skipping phase RESPONSE_BODY (allow used).\" ) ;\n }\n return 0 ;\n }\n else {\n if ( msr -> txcfg -> debuglog_level >= 4 ) {\n msr_log ( msr , 4 , \"Starting phase RESPONSE_BODY.\" ) ;\n }\n }\n time_before = apr_time_now ( ) ;\n if ( msr -> txcfg -> ruleset != NULL ) {\n rc = msre_ruleset_process_phase ( msr -> txcfg -> ruleset , msr ) ;\n }\n msr -> time_phase4 = apr_time_now ( ) - time_before ;\n return rc ;\n }"}
{"idx": 19014, "target": 0, "func": "static int skinny_calls_packet ( void * ptr _U_ , packet_info * pinfo , epan_dissect_t * edt _U_ , const void * skinny_info ) {\n voip_calls_tapinfo_t * tapinfo = & the_tapinfo_struct ;\n GList * list ;\n voip_calls_info_t * callsinfo = NULL ;\n address * phone ;\n const skinny_info_t * si = ( const skinny_info_t * ) skinny_info ;\n skinny_calls_info_t * tmp_skinnyinfo ;\n gchar * comment ;\n if ( si == NULL || ( si -> callId == 0 && si -> passThruId == 0 ) ) return 0 ;\n list = g_list_first ( tapinfo -> callsinfo_list ) ;\n while ( list ) {\n voip_calls_info_t * tmp_listinfo = ( voip_calls_info_t * ) list -> data ;\n if ( tmp_listinfo -> protocol == VOIP_SKINNY ) {\n tmp_skinnyinfo = ( skinny_calls_info_t * ) tmp_listinfo -> prot_info ;\n if ( tmp_skinnyinfo -> callId == si -> callId || tmp_skinnyinfo -> callId == si -> passThruId ) {\n callsinfo = ( voip_calls_info_t * ) ( list -> data ) ;\n break ;\n }\n }\n list = g_list_next ( list ) ;\n }\n if ( si -> messId >= 256 ) phone = & ( pinfo -> dst ) ;\n else phone = & ( pinfo -> src ) ;\n if ( callsinfo == NULL ) {\n callsinfo = ( voip_calls_info_t * ) g_malloc0 ( sizeof ( voip_calls_info_t ) ) ;\n callsinfo -> call_state = VOIP_NO_STATE ;\n callsinfo -> call_active_state = VOIP_ACTIVE ;\n callsinfo -> from_identity = g_strdup ( \"\" ) ;\n callsinfo -> to_identity = g_strdup ( \"\" ) ;\n callsinfo -> prot_info = g_malloc ( sizeof ( skinny_calls_info_t ) ) ;\n callsinfo -> free_prot_info = g_free ;\n tmp_skinnyinfo = ( skinny_calls_info_t * ) callsinfo -> prot_info ;\n tmp_skinnyinfo -> callId = si -> callId ? si -> callId : si -> passThruId ;\n callsinfo -> npackets = 1 ;\n COPY_ADDRESS ( & ( callsinfo -> initial_speaker ) , phone ) ;\n callsinfo -> protocol = VOIP_SKINNY ;\n callsinfo -> call_num = tapinfo -> ncalls ++ ;\n callsinfo -> start_fd = pinfo -> fd ;\n callsinfo -> start_rel_ts = pinfo -> rel_ts ;\n callsinfo -> stop_fd = pinfo -> fd ;\n callsinfo -> stop_rel_ts = pinfo -> rel_ts ;\n callsinfo -> selected = FALSE ;\n tapinfo -> callsinfo_list = g_list_prepend ( tapinfo -> callsinfo_list , callsinfo ) ;\n }\n else {\n if ( si -> callingParty ) {\n g_free ( callsinfo -> from_identity ) ;\n callsinfo -> from_identity = g_strdup ( si -> callingParty ) ;\n }\n if ( si -> calledParty ) {\n g_free ( callsinfo -> to_identity ) ;\n callsinfo -> to_identity = g_strdup ( si -> calledParty ) ;\n }\n if ( ( si -> callState > 0 ) && ( si -> callState < ( sizeof ( skinny_tap_voip_state ) / sizeof ( skinny_tap_voip_state [ 0 ] ) ) ) ) callsinfo -> call_state = skinny_tap_voip_state [ si -> callState ] ;\n callsinfo -> stop_fd = pinfo -> fd ;\n callsinfo -> stop_rel_ts = pinfo -> rel_ts ;\n ++ ( callsinfo -> npackets ) ;\n }\n if ( si -> callId ) {\n if ( si -> passThruId ) comment = g_strdup_printf ( \"CallId = %u, PTId = %u\" , si -> callId , si -> passThruId ) ;\n else comment = g_strdup_printf ( \"CallId = %u, LineId = %u\" , si -> callId , si -> lineId ) ;\n }\n else {\n if ( si -> passThruId ) comment = g_strdup_printf ( \"PTId = %u\" , si -> passThruId ) ;\n else comment = NULL ;\n }\n add_to_graph ( tapinfo , pinfo , si -> messageName , comment , callsinfo -> call_num , & ( pinfo -> src ) , & ( pinfo -> dst ) , 1 ) ;\n g_free ( comment ) ;\n return 1 ;\n }"}
{"idx": 19015, "target": 0, "func": "hb_shape_plan_t * hb_shape_plan_create_cached ( hb_face_t * face , const hb_segment_properties_t * props , const hb_feature_t * user_features , unsigned int num_user_features , const char * const * shaper_list ) {\n DEBUG_MSG_FUNC ( SHAPE_PLAN , NULL , \"face=%p num_features=%d shaper_list=%p\" , face , num_user_features , shaper_list ) ;\n hb_shape_plan_proposal_t proposal = {\n * props , shaper_list , user_features , num_user_features , NULL }\n ;\n if ( shaper_list ) {\n for ( const char * const * shaper_item = shaper_list ;\n * shaper_item ;\n shaper_item ++ ) if ( 0 ) ;\n # define HB_SHAPER_IMPLEMENT ( shaper ) else if ( 0 == strcmp ( * shaper_item , # shaper ) && hb_ ## shaper ## _shaper_face_data_ensure ( face ) ) {\n proposal . shaper_func = _hb_ ## shaper ## _shape ;\n break ;\n }\n # include \"hb-shaper-list.hh\" # undef HB_SHAPER_IMPLEMENT if ( unlikely ( ! proposal . shaper_func ) ) return hb_shape_plan_get_empty ( ) ;\n }\n retry : hb_face_t : : plan_node_t * cached_plan_nodes = ( hb_face_t : : plan_node_t * ) hb_atomic_ptr_get ( & face -> shape_plans ) ;\n for ( hb_face_t : : plan_node_t * node = cached_plan_nodes ;\n node ;\n node = node -> next ) if ( hb_shape_plan_matches ( node -> shape_plan , & proposal ) ) {\n DEBUG_MSG_FUNC ( SHAPE_PLAN , node -> shape_plan , \"fulfilled from cache\" ) ;\n return hb_shape_plan_reference ( node -> shape_plan ) ;\n }\n hb_shape_plan_t * shape_plan = hb_shape_plan_create ( face , props , user_features , num_user_features , shaper_list ) ;\n if ( unlikely ( hb_object_is_inert ( face ) ) ) return shape_plan ;\n if ( hb_non_global_user_features_present ( user_features , num_user_features ) ) return shape_plan ;\n hb_face_t : : plan_node_t * node = ( hb_face_t : : plan_node_t * ) calloc ( 1 , sizeof ( hb_face_t : : plan_node_t ) ) ;\n if ( unlikely ( ! node ) ) return shape_plan ;\n node -> shape_plan = shape_plan ;\n node -> next = cached_plan_nodes ;\n if ( ! hb_atomic_ptr_cmpexch ( & face -> shape_plans , cached_plan_nodes , node ) ) {\n hb_shape_plan_destroy ( shape_plan ) ;\n free ( node ) ;\n goto retry ;\n }\n DEBUG_MSG_FUNC ( SHAPE_PLAN , shape_plan , \"inserted into cache\" ) ;\n return hb_shape_plan_reference ( shape_plan ) ;\n }"}
{"idx": 19016, "target": 0, "func": "static void rtp_dyn_payloads_init ( void ) {\n if ( rtp_dyn_payloads == NULL ) {\n rtp_dyn_payloads = g_hash_table_new ( NULL , NULL ) ;\n wmem_register_callback ( wmem_file_scope ( ) , wmem_rtp_dyn_payload_destroy_cb , NULL ) ;\n }\n }"}
{"idx": 19017, "target": 0, "func": "static int dissect_h245_H263ModeComboFlags ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_H263ModeComboFlags , H263ModeComboFlags_sequence ) ;\n return offset ;\n }"}
{"idx": 19018, "target": 0, "func": "static int convert_to_hex ( const unsigned char * src , size_t len , char * dest ) {\n int i ;\n if ( dest ) {\n * dest ++ = '#' ;\n for ( i = 0 ;\n i < len ;\n i ++ , dest += 2 ) sprintf ( dest , \"%02X\" , src [ i ] ) ;\n * dest ++ = '#' ;\n }\n return len * 2 + 2 ;\n }"}
{"idx": 19019, "target": 0, "func": "static void init_dequant8_coeff_table ( H264Context * h ) {\n int i , j , q , x ;\n const int max_qp = 51 + 6 * ( h -> sps . bit_depth_luma - 8 ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n h -> dequant8_coeff [ i ] = h -> dequant8_buffer [ i ] ;\n for ( j = 0 ;\n j < i ;\n j ++ ) if ( ! memcmp ( h -> pps . scaling_matrix8 [ j ] , h -> pps . scaling_matrix8 [ i ] , * sizeof ( uint8_t ) ) ) {\n h -> dequant8_coeff [ i ] = h -> dequant8_buffer [ j ] ;\n break ;\n }\n if ( j < i ) continue ;\n for ( q = 0 ;\n q < max_qp + 1 ;\n q ++ ) {\n int shift = div6 [ q ] ;\n int idx = rem6 [ q ] ;\n for ( x = 0 ;\n x < 64 ;\n x ++ ) h -> dequant8_coeff [ i ] [ q ] [ ( x >> 3 ) | ( ( x & 7 ) << 3 ) ] = ( ( uint32_t ) dequant8_coeff_init [ idx ] [ dequant8_coeff_init_scan [ ( ( x >> 1 ) & 12 ) | ( x & 3 ) ] ] * h -> pps . scaling_matrix8 [ i ] [ x ] ) << shift ;\n }\n }\n }"}
{"idx": 19020, "target": 0, "func": "static void qcms_transform_module_matrix ( struct qcms_modular_transform * transform , float * src , float * dest , size_t length ) {\n size_t i ;\n struct matrix mat ;\n mat . m [ 0 ] [ 0 ] = transform -> matrix . m [ 0 ] [ 0 ] ;\n mat . m [ 1 ] [ 0 ] = transform -> matrix . m [ 0 ] [ 1 ] ;\n mat . m [ 2 ] [ 0 ] = transform -> matrix . m [ 0 ] [ 2 ] ;\n mat . m [ 0 ] [ 1 ] = transform -> matrix . m [ 1 ] [ 0 ] ;\n mat . m [ 1 ] [ 1 ] = transform -> matrix . m [ 1 ] [ 1 ] ;\n mat . m [ 2 ] [ 1 ] = transform -> matrix . m [ 1 ] [ 2 ] ;\n mat . m [ 0 ] [ 2 ] = transform -> matrix . m [ 2 ] [ 0 ] ;\n mat . m [ 1 ] [ 2 ] = transform -> matrix . m [ 2 ] [ 1 ] ;\n mat . m [ 2 ] [ 2 ] = transform -> matrix . m [ 2 ] [ 2 ] ;\n for ( i = 0 ;\n i < length ;\n i ++ ) {\n float in_r = * src ++ ;\n float in_g = * src ++ ;\n float in_b = * src ++ ;\n float out_r = mat . m [ 0 ] [ 0 ] * in_r + mat . m [ 1 ] [ 0 ] * in_g + mat . m [ 2 ] [ 0 ] * in_b ;\n float out_g = mat . m [ 0 ] [ 1 ] * in_r + mat . m [ 1 ] [ 1 ] * in_g + mat . m [ 2 ] [ 1 ] * in_b ;\n float out_b = mat . m [ 0 ] [ 2 ] * in_r + mat . m [ 1 ] [ 2 ] * in_g + mat . m [ 2 ] [ 2 ] * in_b ;\n * dest ++ = clamp_float ( out_r ) ;\n * dest ++ = clamp_float ( out_g ) ;\n * dest ++ = clamp_float ( out_b ) ;\n }\n }"}
{"idx": 19021, "target": 0, "func": "static void add_range ( fz_context * ctx , pdf_cmap * cmap , unsigned int low , unsigned int high , unsigned int out , int check_for_overlap , int many ) {\n int current ;\n cmap_splay * tree ;\n if ( low > high ) {\n fz_warn ( ctx , \"range limits out of range in cmap %s\" , cmap -> cmap_name ) ;\n return ;\n }\n tree = cmap -> tree ;\n if ( cmap -> tlen ) {\n unsigned int move = cmap -> ttop ;\n unsigned int gt = EMPTY ;\n unsigned int lt = EMPTY ;\n if ( check_for_overlap ) {\n do {\n current = move ;\n if ( low <= tree [ current ] . low && tree [ current ] . low <= high ) {\n tree [ current ] . out += high + 1 - tree [ current ] . low ;\n tree [ current ] . low = high + 1 ;\n if ( tree [ current ] . low > tree [ current ] . high ) {\n move = delete_node ( cmap , current ) ;\n current = EMPTY ;\n continue ;\n }\n }\n else if ( low <= tree [ current ] . high && tree [ current ] . high <= high ) {\n tree [ current ] . high = low - 1 ;\n assert ( tree [ current ] . low <= tree [ current ] . high ) ;\n }\n else if ( tree [ current ] . low < low && high < tree [ current ] . high ) {\n int new_high = tree [ current ] . high ;\n tree [ current ] . high = low - 1 ;\n add_range ( ctx , cmap , high + 1 , new_high , tree [ current ] . out + high + 1 - tree [ current ] . low , 0 , tree [ current ] . many ) ;\n }\n if ( tree [ current ] . low > high ) {\n move = tree [ current ] . left ;\n gt = current ;\n }\n else {\n move = tree [ current ] . right ;\n lt = current ;\n }\n }\n while ( move != EMPTY ) ;\n }\n else {\n do {\n current = move ;\n if ( tree [ current ] . low > high ) {\n move = tree [ current ] . left ;\n gt = current ;\n }\n else {\n move = tree [ current ] . right ;\n lt = current ;\n }\n }\n while ( move != EMPTY ) ;\n }\n if ( ! many ) {\n if ( lt != EMPTY && ! tree [ lt ] . many && tree [ lt ] . high == low - 1 && tree [ lt ] . out - tree [ lt ] . low == out - low ) {\n tree [ lt ] . high = high ;\n if ( gt != EMPTY && ! tree [ gt ] . many && tree [ gt ] . low == high + 1 && tree [ gt ] . out - tree [ gt ] . low == out - low ) {\n tree [ lt ] . high = tree [ gt ] . high ;\n delete_node ( cmap , gt ) ;\n }\n goto exit ;\n }\n if ( gt != EMPTY && ! tree [ gt ] . many && tree [ gt ] . low == high + 1 && tree [ gt ] . out - tree [ gt ] . low == out - low ) {\n tree [ gt ] . low = low ;\n tree [ gt ] . out = out ;\n goto exit ;\n }\n }\n }\n else current = EMPTY ;\n if ( cmap -> tlen == cmap -> tcap ) {\n int new_cap = cmap -> tcap ? cmap -> tcap * 2 : 256 ;\n tree = cmap -> tree = fz_resize_array ( ctx , cmap -> tree , new_cap , sizeof * cmap -> tree ) ;\n cmap -> tcap = new_cap ;\n }\n tree [ cmap -> tlen ] . low = low ;\n tree [ cmap -> tlen ] . high = high ;\n tree [ cmap -> tlen ] . out = out ;\n tree [ cmap -> tlen ] . parent = current ;\n tree [ cmap -> tlen ] . left = EMPTY ;\n tree [ cmap -> tlen ] . right = EMPTY ;\n tree [ cmap -> tlen ] . many = many ;\n cmap -> tlen ++ ;\n if ( current == EMPTY ) cmap -> ttop = 0 ;\n else if ( tree [ current ] . low > high ) tree [ current ] . left = cmap -> tlen - 1 ;\n else {\n assert ( tree [ current ] . high < low ) ;\n tree [ current ] . right = cmap -> tlen - 1 ;\n }\n move_to_root ( tree , cmap -> tlen - 1 ) ;\n cmap -> ttop = cmap -> tlen - 1 ;\n exit : {\n }\n # ifdef CHECK_SPLAY check_splay ( cmap -> tree , cmap -> ttop , 0 ) ;\n # endif # ifdef DUMP_SPLAY dump_splay ( cmap -> tree , cmap -> ttop , 0 , \"\" ) ;\n # endif }"}
{"idx": 19022, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , DocumentWriteSameDomain ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : FIRST_CONTENTFUL_PAINT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( \"/page_load_metrics/document_write_external_script.html\" ) ) ;\n waiter -> Wait ( ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramFirstContentfulPaint , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramDocWriteBlockParseStartToFirstContentfulPaint , 0 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramDocWriteBlockCount , 0 ) ;\n }"}
{"idx": 19023, "target": 0, "func": "fz_colorspace * fz_keep_colorspace ( fz_context * ctx , fz_colorspace * cs ) {\n return fz_keep_key_storable ( ctx , & cs -> key_storable ) ;\n }"}
{"idx": 19024, "target": 0, "func": "static int kmvc_decode_inter_8x8 ( KmvcContext * ctx , int w , int h ) {\n BitBuf bb ;\n int res , val ;\n int i , j ;\n int bx , by ;\n int l0x , l1x , l0y , l1y ;\n int mx , my ;\n kmvc_init_getbits ( bb , & ctx -> g ) ;\n for ( by = 0 ;\n by < h ;\n by += 8 ) for ( bx = 0 ;\n bx < w ;\n bx += 8 ) {\n kmvc_getbit ( bb , & ctx -> g , res ) ;\n if ( ! res ) {\n kmvc_getbit ( bb , & ctx -> g , res ) ;\n if ( ! res ) {\n if ( ! bytestream2_get_bytes_left ( & ctx -> g ) ) {\n av_log ( ctx -> avctx , AV_LOG_ERROR , \"Data overrun\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n val = bytestream2_get_byte ( & ctx -> g ) ;\n for ( i = 0 ;\n i < 64 ;\n i ++ ) BLK ( ctx -> cur , bx + ( i & 0x7 ) , by + ( i >> 3 ) ) = val ;\n }\n else {\n for ( i = 0 ;\n i < 64 ;\n i ++ ) BLK ( ctx -> cur , bx + ( i & 0x7 ) , by + ( i >> 3 ) ) = BLK ( ctx -> prev , bx + ( i & 0x7 ) , by + ( i >> 3 ) ) ;\n }\n }\n else {\n if ( ! bytestream2_get_bytes_left ( & ctx -> g ) ) {\n av_log ( ctx -> avctx , AV_LOG_ERROR , \"Data overrun\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n l0x = bx + ( i & 1 ) * 4 ;\n l0y = by + ( i & 2 ) * 2 ;\n kmvc_getbit ( bb , & ctx -> g , res ) ;\n if ( ! res ) {\n kmvc_getbit ( bb , & ctx -> g , res ) ;\n if ( ! res ) {\n val = bytestream2_get_byte ( & ctx -> g ) ;\n for ( j = 0 ;\n j < 16 ;\n j ++ ) BLK ( ctx -> cur , l0x + ( j & 3 ) , l0y + ( j >> 2 ) ) = val ;\n }\n else {\n val = bytestream2_get_byte ( & ctx -> g ) ;\n mx = ( val & 0xF ) - 8 ;\n my = ( val >> 4 ) - 8 ;\n for ( j = 0 ;\n j < 16 ;\n j ++ ) BLK ( ctx -> cur , l0x + ( j & 3 ) , l0y + ( j >> 2 ) ) = BLK ( ctx -> prev , l0x + ( j & 3 ) + mx , l0y + ( j >> 2 ) + my ) ;\n }\n }\n else {\n for ( j = 0 ;\n j < 4 ;\n j ++ ) {\n l1x = l0x + ( j & 1 ) * 2 ;\n l1y = l0y + ( j & 2 ) ;\n kmvc_getbit ( bb , & ctx -> g , res ) ;\n if ( ! res ) {\n kmvc_getbit ( bb , & ctx -> g , res ) ;\n if ( ! res ) {\n val = bytestream2_get_byte ( & ctx -> g ) ;\n BLK ( ctx -> cur , l1x , l1y ) = val ;\n BLK ( ctx -> cur , l1x + 1 , l1y ) = val ;\n BLK ( ctx -> cur , l1x , l1y + 1 ) = val ;\n BLK ( ctx -> cur , l1x + 1 , l1y + 1 ) = val ;\n }\n else {\n val = bytestream2_get_byte ( & ctx -> g ) ;\n mx = ( val & 0xF ) - 8 ;\n my = ( val >> 4 ) - 8 ;\n BLK ( ctx -> cur , l1x , l1y ) = BLK ( ctx -> prev , l1x + mx , l1y + my ) ;\n BLK ( ctx -> cur , l1x + 1 , l1y ) = BLK ( ctx -> prev , l1x + 1 + mx , l1y + my ) ;\n BLK ( ctx -> cur , l1x , l1y + 1 ) = BLK ( ctx -> prev , l1x + mx , l1y + 1 + my ) ;\n BLK ( ctx -> cur , l1x + 1 , l1y + 1 ) = BLK ( ctx -> prev , l1x + 1 + mx , l1y + 1 + my ) ;\n }\n }\n else {\n BLK ( ctx -> cur , l1x , l1y ) = bytestream2_get_byte ( & ctx -> g ) ;\n BLK ( ctx -> cur , l1x + 1 , l1y ) = bytestream2_get_byte ( & ctx -> g ) ;\n BLK ( ctx -> cur , l1x , l1y + 1 ) = bytestream2_get_byte ( & ctx -> g ) ;\n BLK ( ctx -> cur , l1x + 1 , l1y + 1 ) = bytestream2_get_byte ( & ctx -> g ) ;\n }\n }\n }\n }\n }\n }\n return 0 ;\n }"}
{"idx": 19025, "target": 0, "func": "static inline void e1000e_write_ext_rx_descr ( E1000ECore * core , uint8_t * desc , struct NetRxPkt * pkt , const E1000E_RSSInfo * rss_info , uint16_t length ) {\n union e1000_rx_desc_extended * d = ( union e1000_rx_desc_extended * ) desc ;\n memset ( & d -> wb , 0 , sizeof ( d -> wb ) ) ;\n d -> wb . upper . length = cpu_to_le16 ( length ) ;\n e1000e_build_rx_metadata ( core , pkt , pkt != NULL , rss_info , & d -> wb . lower . hi_dword . rss , & d -> wb . lower . mrq , & d -> wb . upper . status_error , & d -> wb . lower . hi_dword . csum_ip . ip_id , & d -> wb . upper . vlan ) ;\n }"}
{"idx": 19026, "target": 0, "func": "int vp8_get_preview_raw_frame ( VP8_COMP * cpi , YV12_BUFFER_CONFIG * dest , vp8_ppflags_t * flags ) {\n if ( cpi -> common . refresh_alt_ref_frame ) return - 1 ;\n else {\n int ret ;\n # if CONFIG_MULTITHREAD if ( cpi -> b_lpf_running ) {\n sem_wait ( & cpi -> h_event_end_lpf ) ;\n cpi -> b_lpf_running = 0 ;\n }\n # endif # if CONFIG_POSTPROC cpi -> common . show_frame_mi = cpi -> common . mi ;\n ret = vp8_post_proc_frame ( & cpi -> common , dest , flags ) ;\n # else if ( cpi -> common . frame_to_show ) {\n * dest = * cpi -> common . frame_to_show ;\n dest -> y_width = cpi -> common . Width ;\n dest -> y_height = cpi -> common . Height ;\n dest -> uv_height = cpi -> common . Height / 2 ;\n ret = 0 ;\n }\n else {\n ret = - 1 ;\n }\n # endif vp8_clear_system_state ( ) ;\n return ret ;\n }\n }"}
{"idx": 19027, "target": 0, "func": "static void qemu_kvm_eat_signals ( CPUState * cpu ) {\n }"}
{"idx": 19028, "target": 0, "func": "static void truespeech_apply_twopoint_filter ( TSContext * dec , int quart ) {\n int16_t tmp [ 146 + 60 ] , * ptr0 , * ptr1 ;\n const int16_t * filter ;\n int i , t , off ;\n t = dec -> offset2 [ quart ] ;\n if ( t == 127 ) {\n memset ( dec -> newvec , 0 , 60 * sizeof ( * dec -> newvec ) ) ;\n return ;\n }\n for ( i = 0 ;\n i < 146 ;\n i ++ ) tmp [ i ] = dec -> filtbuf [ i ] ;\n off = ( t / 25 ) + dec -> offset1 [ quart >> 1 ] + 18 ;\n off = av_clip ( off , 0 , 145 ) ;\n ptr0 = tmp + 145 - off ;\n ptr1 = tmp + 146 ;\n filter = ts_order2_coeffs + ( t % 25 ) * 2 ;\n for ( i = 0 ;\n i < 60 ;\n i ++ ) {\n t = ( ptr0 [ 0 ] * filter [ 0 ] + ptr0 [ 1 ] * filter [ 1 ] + 0x2000 ) >> 14 ;\n ptr0 ++ ;\n dec -> newvec [ i ] = t ;\n ptr1 [ i ] = t ;\n }\n }"}
{"idx": 19029, "target": 0, "func": "static List * simplify_and_arguments ( List * args , eval_const_expressions_context * context , bool * haveNull , bool * forceFalse ) {\n List * newargs = NIL ;\n List * unprocessed_args ;\n unprocessed_args = list_copy ( args ) ;\n while ( unprocessed_args ) {\n Node * arg = ( Node * ) linitial ( unprocessed_args ) ;\n unprocessed_args = list_delete_first ( unprocessed_args ) ;\n if ( and_clause ( arg ) ) {\n List * subargs = list_copy ( ( ( BoolExpr * ) arg ) -> args ) ;\n if ( ! unprocessed_args ) unprocessed_args = subargs ;\n else {\n List * oldhdr = unprocessed_args ;\n unprocessed_args = list_concat ( subargs , unprocessed_args ) ;\n pfree ( oldhdr ) ;\n }\n continue ;\n }\n arg = eval_const_expressions_mutator ( arg , context ) ;\n if ( and_clause ( arg ) ) {\n List * subargs = list_copy ( ( ( BoolExpr * ) arg ) -> args ) ;\n unprocessed_args = list_concat ( subargs , unprocessed_args ) ;\n continue ;\n }\n if ( IsA ( arg , Const ) ) {\n Const * const_input = ( Const * ) arg ;\n if ( const_input -> constisnull ) * haveNull = true ;\n else if ( ! DatumGetBool ( const_input -> constvalue ) ) {\n * forceFalse = true ;\n return NIL ;\n }\n continue ;\n }\n newargs = lappend ( newargs , arg ) ;\n }\n return newargs ;\n }"}
{"idx": 19030, "target": 0, "func": "static void read_ref_frames ( VP9_COMMON * const cm , MACROBLOCKD * const xd , vp9_reader * r , int segment_id , MV_REFERENCE_FRAME ref_frame [ 2 ] ) {\n FRAME_CONTEXT * const fc = & cm -> fc ;\n FRAME_COUNTS * const counts = & cm -> counts ;\n if ( vp9_segfeature_active ( & cm -> seg , segment_id , SEG_LVL_REF_FRAME ) ) {\n ref_frame [ 0 ] = ( MV_REFERENCE_FRAME ) vp9_get_segdata ( & cm -> seg , segment_id , SEG_LVL_REF_FRAME ) ;\n ref_frame [ 1 ] = NONE ;\n }\n else {\n const REFERENCE_MODE mode = read_block_reference_mode ( cm , xd , r ) ;\n if ( mode == COMPOUND_REFERENCE ) {\n const int idx = cm -> ref_frame_sign_bias [ cm -> comp_fixed_ref ] ;\n const int ctx = vp9_get_pred_context_comp_ref_p ( cm , xd ) ;\n const int bit = vp9_read ( r , fc -> comp_ref_prob [ ctx ] ) ;\n if ( ! cm -> frame_parallel_decoding_mode ) ++ counts -> comp_ref [ ctx ] [ bit ] ;\n ref_frame [ idx ] = cm -> comp_fixed_ref ;\n ref_frame [ ! idx ] = cm -> comp_var_ref [ bit ] ;\n }\n else if ( mode == SINGLE_REFERENCE ) {\n const int ctx0 = vp9_get_pred_context_single_ref_p1 ( xd ) ;\n const int bit0 = vp9_read ( r , fc -> single_ref_prob [ ctx0 ] [ 0 ] ) ;\n if ( ! cm -> frame_parallel_decoding_mode ) ++ counts -> single_ref [ ctx0 ] [ 0 ] [ bit0 ] ;\n if ( bit0 ) {\n const int ctx1 = vp9_get_pred_context_single_ref_p2 ( xd ) ;\n const int bit1 = vp9_read ( r , fc -> single_ref_prob [ ctx1 ] [ 1 ] ) ;\n if ( ! cm -> frame_parallel_decoding_mode ) ++ counts -> single_ref [ ctx1 ] [ 1 ] [ bit1 ] ;\n ref_frame [ 0 ] = bit1 ? ALTREF_FRAME : GOLDEN_FRAME ;\n }\n else {\n ref_frame [ 0 ] = LAST_FRAME ;\n }\n ref_frame [ 1 ] = NONE ;\n }\n else {\n assert ( 0 && \"Invalid prediction mode.\" ) ;\n }\n }\n }"}
{"idx": 19031, "target": 0, "func": "static int kvm_put_fpu ( X86CPU * cpu ) {\n CPUX86State * env = & cpu -> env ;\n struct kvm_fpu fpu ;\n int i ;\n memset ( & fpu , 0 , sizeof fpu ) ;\n fpu . fsw = env -> fpus & ~ ( 7 << 11 ) ;\n fpu . fsw |= ( env -> fpstt & 7 ) << 11 ;\n fpu . fcw = env -> fpuc ;\n fpu . last_opcode = env -> fpop ;\n fpu . last_ip = env -> fpip ;\n fpu . last_dp = env -> fpdp ;\n for ( i = 0 ;\n i < 8 ;\n ++ i ) {\n fpu . ftwx |= ( ! env -> fptags [ i ] ) << i ;\n }\n memcpy ( fpu . fpr , env -> fpregs , sizeof env -> fpregs ) ;\n for ( i = 0 ;\n i < CPU_NB_REGS ;\n i ++ ) {\n stq_p ( & fpu . xmm [ i ] [ 0 ] , env -> xmm_regs [ i ] . ZMM_Q ( 0 ) ) ;\n stq_p ( & fpu . xmm [ i ] [ 8 ] , env -> xmm_regs [ i ] . ZMM_Q ( 1 ) ) ;\n }\n fpu . mxcsr = env -> mxcsr ;\n return kvm_vcpu_ioctl ( CPU ( cpu ) , KVM_SET_FPU , & fpu ) ;\n }"}
{"idx": 19032, "target": 0, "func": "static int mvsad_err_cost ( const MACROBLOCK * x , const MV * mv , const MV * ref , int error_per_bit ) {\n if ( x -> nmvsadcost ) {\n const MV diff = {\n mv -> row - ref -> row , mv -> col - ref -> col }\n ;\n return ROUND_POWER_OF_TWO ( mv_cost ( & diff , x -> nmvjointsadcost , x -> nmvsadcost ) * error_per_bit , 8 ) ;\n }\n return 0 ;\n }"}
{"idx": 19033, "target": 0, "func": "static TRBCCode xhci_stop_ep ( XHCIState * xhci , unsigned int slotid , unsigned int epid ) {\n XHCISlot * slot ;\n XHCIEPContext * epctx ;\n trace_usb_xhci_ep_stop ( slotid , epid ) ;\n assert ( slotid >= 1 && slotid <= xhci -> numslots ) ;\n if ( epid < 1 || epid > 31 ) {\n DPRINTF ( \"xhci: bad ep %d\\n\" , epid ) ;\n return CC_TRB_ERROR ;\n }\n slot = & xhci -> slots [ slotid - 1 ] ;\n if ( ! slot -> eps [ epid - 1 ] ) {\n DPRINTF ( \"xhci: slot %d ep %d not enabled\\n\" , slotid , epid ) ;\n return CC_EP_NOT_ENABLED_ERROR ;\n }\n if ( xhci_ep_nuke_xfers ( xhci , slotid , epid , CC_STOPPED ) > 0 ) {\n DPRINTF ( \"xhci: FIXME: endpoint stopped w/ xfers running, \" \"data might be lost\\n\" ) ;\n }\n epctx = slot -> eps [ epid - 1 ] ;\n xhci_set_ep_state ( xhci , epctx , NULL , EP_STOPPED ) ;\n if ( epctx -> nr_pstreams ) {\n xhci_reset_streams ( epctx ) ;\n }\n return CC_SUCCESS ;\n }"}
{"idx": 19034, "target": 0, "func": "static int get_field_disp_length ( MYSQL_FIELD * field ) {\n uint length = column_names ? field -> name_length : 0 ;\n if ( quick ) length = max ( length , field -> length ) ;\n else length = max ( length , field -> max_length ) ;\n if ( length < 4 && ! IS_NOT_NULL ( field -> flags ) ) length = 4 ;\n return length ;\n }"}
{"idx": 19035, "target": 0, "func": "static int dissect_h245_SET_SIZE_1_256_OF_CapabilityTableEntry ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_set_of ( tvb , offset , actx , tree , hf_index , ett_h245_SET_SIZE_1_256_OF_CapabilityTableEntry , SET_SIZE_1_256_OF_CapabilityTableEntry_set_of , 1 , 256 , FALSE ) ;\n return offset ;\n }"}
{"idx": 19036, "target": 0, "func": "mode_t dest_mode ( mode_t flist_mode , mode_t stat_mode , int dflt_perms , int exists ) {\n int new_mode ;\n if ( exists ) {\n new_mode = ( flist_mode & ~ CHMOD_BITS ) | ( stat_mode & CHMOD_BITS ) ;\n if ( preserve_executability && S_ISREG ( flist_mode ) ) {\n if ( ! ( flist_mode & 0111 ) ) new_mode &= ~ 0111 ;\n else if ( ! ( stat_mode & 0111 ) ) new_mode |= ( new_mode & 0444 ) >> 2 ;\n }\n }\n else {\n new_mode = flist_mode & ( ~ CHMOD_BITS | dflt_perms ) ;\n }\n return new_mode ;\n }"}
{"idx": 19037, "target": 0, "func": "int RECORD_LAYER_read_pending ( const RECORD_LAYER * rl ) {\n return SSL3_BUFFER_get_left ( & rl -> rbuf ) != 0 ;\n }"}
{"idx": 19038, "target": 0, "func": "void init_logging ( const char * name , u_int32 def_syslogmask , int is_daemon ) {\n static int was_daemon ;\n char * cp ;\n const char * pname ;\n if ( INIT_NTP_SYSLOGMASK == ntp_syslogmask && != def_syslogmask ) ntp_syslogmask = def_syslogmask ;\n cp = strrchr ( name , DIR_SEP ) ;\n if ( NULL == cp ) pname = name ;\n else pname = 1 + cp ;\n progname = estrdup ( pname ) ;\n # ifdef SYS_WINNT cp = strrchr ( progname , '.' ) ;\n if ( NULL != cp && ! strcasecmp ( cp , \".exe\" ) ) * cp = '\\0' ;\n # endif # if ! defined ( VMS ) if ( is_daemon ) was_daemon = TRUE ;\n # ifndef LOG_DAEMON openlog ( progname , LOG_PID ) ;\n # else # ifndef LOG_NTP # define LOG_NTP LOG_DAEMON # endif openlog ( progname , LOG_PID | LOG_NDELAY , ( was_daemon ) ? LOG_NTP : 0 ) ;\n # ifdef DEBUG if ( debug ) setlogmask ( LOG_UPTO ( LOG_DEBUG ) ) ;\n else # endif setlogmask ( LOG_UPTO ( LOG_DEBUG ) ) ;\n # endif # endif }"}
{"idx": 19039, "target": 0, "func": "static guint16 de_red_party_bcd_num ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string , int string_len ) {\n const gchar * extr_addr ;\n de_bcd_num ( tvb , tree , pinfo , offset , len , hf_gsm_a_dtap_red_party_bcd_num , & extr_addr ) ;\n if ( extr_addr && add_string ) g_snprintf ( add_string , string_len , \" - (%s)\" , extr_addr ) ;\n return ( len ) ;\n }"}
{"idx": 19040, "target": 0, "func": "static inline void writer_print_section_footer ( WriterContext * wctx ) {\n int section_id = wctx -> section [ wctx -> level ] -> id ;\n int parent_section_id = wctx -> level ? wctx -> section [ wctx -> level - 1 ] -> id : SECTION_ID_NONE ;\n if ( parent_section_id != SECTION_ID_NONE ) wctx -> nb_item [ wctx -> level - 1 ] ++ ;\n if ( parent_section_id == SECTION_ID_PACKETS_AND_FRAMES ) {\n if ( section_id == SECTION_ID_PACKET ) wctx -> nb_section_packet ++ ;\n else wctx -> nb_section_frame ++ ;\n }\n if ( wctx -> writer -> print_section_footer ) wctx -> writer -> print_section_footer ( wctx ) ;\n wctx -> level -- ;\n }"}
{"idx": 19041, "target": 0, "func": "int doqueryex ( int opcode , associd_t associd , int auth , int qsize , const char * qdata , u_short * rstatus , int * rsize , const char * * rdata , int quiet ) {\n int res ;\n int done ;\n if ( ! havehost ) {\n fprintf ( stderr , \"***No host open, use `host' command\\n\" ) ;\n return - 1 ;\n }\n done = 0 ;\n sequence ++ ;\n again : res = sendrequest ( opcode , associd , auth , qsize , qdata ) ;\n if ( res != 0 ) return res ;\n res = getresponse ( opcode , associd , rstatus , rsize , rdata , done ) ;\n if ( res > 0 ) {\n if ( ! done && ( res == ERR_TIMEOUT || res == ERR_INCOMPLETE ) ) {\n if ( res == ERR_INCOMPLETE ) {\n sequence ++ ;\n }\n done = 1 ;\n goto again ;\n }\n if ( ! quiet ) show_error_msg ( res , associd ) ;\n }\n return res ;\n }"}
{"idx": 19042, "target": 0, "func": "static void decode_parameters ( SiprParameters * parms , GetBitContext * pgb , const SiprModeParam * p ) {\n int i , j ;\n if ( p -> ma_predictor_bits ) parms -> ma_pred_switch = get_bits ( pgb , p -> ma_predictor_bits ) ;\n for ( i = 0 ;\n i < 5 ;\n i ++ ) parms -> vq_indexes [ i ] = get_bits ( pgb , p -> vq_indexes_bits [ i ] ) ;\n for ( i = 0 ;\n i < p -> subframe_count ;\n i ++ ) {\n parms -> pitch_delay [ i ] = get_bits ( pgb , p -> pitch_delay_bits [ i ] ) ;\n if ( p -> gp_index_bits ) parms -> gp_index [ i ] = get_bits ( pgb , p -> gp_index_bits ) ;\n for ( j = 0 ;\n j < p -> number_of_fc_indexes ;\n j ++ ) parms -> fc_indexes [ i ] [ j ] = get_bits ( pgb , p -> fc_index_bits [ j ] ) ;\n parms -> gc_index [ i ] = get_bits ( pgb , p -> gc_index_bits ) ;\n }\n }"}
{"idx": 19043, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize ) ;\n DECL_PIOCTL ( PGetCacheSize ) ;\n DECL_PIOCTL ( PRemoveCallBack ) ;\n DECL_PIOCTL ( PNewCell ) ;\n DECL_PIOCTL ( PNewAlias )"}
{"idx": 19044, "target": 0, "func": "void proto_reg_handoff_sigcomp ( void ) {\n static dissector_handle_t sigcomp_handle ;\n static dissector_handle_t sigcomp_tcp_handle ;\n static gboolean Initialized = FALSE ;\n static guint udp_port1 ;\n static guint udp_port2 ;\n static guint tcp_port1 ;\n static guint tcp_port2 ;\n if ( ! Initialized ) {\n sigcomp_handle = find_dissector ( \"sigcomp\" ) ;\n sigcomp_tcp_handle = create_dissector_handle ( dissect_sigcomp_tcp , proto_sigcomp ) ;\n sip_handle = find_dissector_add_dependency ( \"sip\" , proto_sigcomp ) ;\n Initialized = TRUE ;\n }\n else {\n dissector_delete_uint ( \"udp.port\" , udp_port1 , sigcomp_handle ) ;\n dissector_delete_uint ( \"udp.port\" , udp_port2 , sigcomp_handle ) ;\n dissector_delete_uint ( \"tcp.port\" , tcp_port1 , sigcomp_tcp_handle ) ;\n dissector_delete_uint ( \"tcp.port\" , tcp_port2 , sigcomp_tcp_handle ) ;\n }\n udp_port1 = SigCompUDPPort1 ;\n udp_port2 = SigCompUDPPort2 ;\n tcp_port1 = SigCompTCPPort1 ;\n tcp_port2 = SigCompTCPPort2 ;\n dissector_add_uint ( \"udp.port\" , SigCompUDPPort1 , sigcomp_handle ) ;\n dissector_add_uint ( \"udp.port\" , SigCompUDPPort2 , sigcomp_handle ) ;\n dissector_add_uint ( \"tcp.port\" , SigCompTCPPort1 , sigcomp_tcp_handle ) ;\n dissector_add_uint ( \"tcp.port\" , SigCompTCPPort2 , sigcomp_tcp_handle ) ;\n }"}
{"idx": 19045, "target": 0, "func": "static int strtoint_clipped ( const char * const str , int min , int max ) {\n int r = strtoint ( str ) ;\n if ( r == - 1 ) return r ;\n else if ( r < min ) return min ;\n else if ( r > max ) return max ;\n else return r ;\n }"}
{"idx": 19046, "target": 0, "func": "static void ctl_putrefid ( const char * tag , u_int32 refid ) {\n char output [ 16 ] ;\n char * optr ;\n char * oplim ;\n char * iptr ;\n char * iplim ;\n char * past_eq ;\n optr = output ;\n oplim = output + sizeof ( output ) ;\n while ( optr < oplim && '\\0' != * tag ) * optr ++ = * tag ++ ;\n if ( optr < oplim ) {\n * optr ++ = '=' ;\n past_eq = optr ;\n }\n if ( ! ( optr < oplim ) ) return ;\n iptr = ( char * ) & refid ;\n iplim = iptr + sizeof ( refid ) ;\n for ( ;\n optr < oplim && iptr < iplim && '\\0' != * iptr ;\n iptr ++ , optr ++ ) if ( isprint ( ( int ) * iptr ) ) * optr = * iptr ;\n else * optr = '.' ;\n if ( ! ( optr <= oplim ) ) optr = past_eq ;\n ctl_putdata ( output , ( u_int ) ( optr - output ) , FALSE ) ;\n }"}
{"idx": 19047, "target": 0, "func": "static VALUE cState_buffer_initial_length_set ( VALUE self , VALUE buffer_initial_length ) {\n long initial_length ;\n GET_STATE ( self ) ;\n Check_Type ( buffer_initial_length , T_FIXNUM ) ;\n initial_length = FIX2LONG ( buffer_initial_length ) ;\n if ( initial_length > 0 ) {\n state -> buffer_initial_length = initial_length ;\n }\n return Qnil ;\n }"}
{"idx": 19048, "target": 0, "func": "static void rfree ( regex_t * re ) {\n struct guts * g ;\n if ( re == NULL || re -> re_magic != REMAGIC ) return ;\n re -> re_magic = 0 ;\n g = ( struct guts * ) re -> re_guts ;\n re -> re_guts = NULL ;\n re -> re_fns = NULL ;\n if ( g != NULL ) {\n g -> magic = 0 ;\n freecm ( & g -> cmap ) ;\n if ( g -> tree != NULL ) freesubre ( ( struct vars * ) NULL , g -> tree ) ;\n if ( g -> lacons != NULL ) freelacons ( g -> lacons , g -> nlacons ) ;\n if ( ! NULLCNFA ( g -> search ) ) freecnfa ( & g -> search ) ;\n FREE ( g ) ;\n }\n }"}
{"idx": 19049, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n LclDecContext * const c = avctx -> priv_data ;\n unsigned char * encoded = ( unsigned char * ) buf ;\n unsigned int pixel_ptr ;\n int row , col ;\n unsigned char * outptr ;\n uint8_t * y_out , * u_out , * v_out ;\n unsigned int width = avctx -> width ;\n unsigned int height = avctx -> height ;\n unsigned int mszh_dlen ;\n unsigned char yq , y1q , uq , vq ;\n int uqvq , ret ;\n unsigned int mthread_inlen , mthread_outlen ;\n unsigned int len = buf_size ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n outptr = frame -> data [ 0 ] ;\n switch ( avctx -> codec_id ) {\n case AV_CODEC_ID_MSZH : switch ( c -> compression ) {\n case COMP_MSZH : if ( c -> flags & FLAG_MULTITHREAD ) {\n mthread_inlen = AV_RL32 ( encoded ) ;\n mthread_inlen = FFMIN ( mthread_inlen , len - 8 ) ;\n mthread_outlen = AV_RL32 ( encoded + 4 ) ;\n mthread_outlen = FFMIN ( mthread_outlen , c -> decomp_size ) ;\n mszh_dlen = mszh_decomp ( encoded + 8 , mthread_inlen , c -> decomp_buf , c -> decomp_size ) ;\n if ( mthread_outlen != mszh_dlen ) {\n av_log ( avctx , AV_LOG_ERROR , \"Mthread1 decoded size differs (%d != %d)\\n\" , mthread_outlen , mszh_dlen ) ;\n return AVERROR_INVALIDDATA ;\n }\n mszh_dlen = mszh_decomp ( encoded + 8 + mthread_inlen , len - 8 - mthread_inlen , c -> decomp_buf + mthread_outlen , c -> decomp_size - mthread_outlen ) ;\n if ( mthread_outlen != mszh_dlen ) {\n av_log ( avctx , AV_LOG_ERROR , \"Mthread2 decoded size differs (%d != %d)\\n\" , mthread_outlen , mszh_dlen ) ;\n return AVERROR_INVALIDDATA ;\n }\n encoded = c -> decomp_buf ;\n len = c -> decomp_size ;\n }\n else {\n mszh_dlen = mszh_decomp ( encoded , len , c -> decomp_buf , c -> decomp_size ) ;\n if ( c -> decomp_size != mszh_dlen ) {\n av_log ( avctx , AV_LOG_ERROR , \"Decoded size differs (%d != %d)\\n\" , c -> decomp_size , mszh_dlen ) ;\n return AVERROR_INVALIDDATA ;\n }\n encoded = c -> decomp_buf ;\n len = mszh_dlen ;\n }\n break ;\n case COMP_MSZH_NOCOMP : {\n int bppx2 ;\n switch ( c -> imgtype ) {\n case IMGTYPE_YUV111 : case IMGTYPE_RGB24 : bppx2 = 6 ;\n break ;\n case IMGTYPE_YUV422 : case IMGTYPE_YUV211 : bppx2 = 4 ;\n break ;\n case IMGTYPE_YUV411 : case IMGTYPE_YUV420 : bppx2 = 3 ;\n break ;\n default : bppx2 = 0 ;\n break ;\n }\n if ( len < ( ( width * height * bppx2 ) >> 1 ) ) return AVERROR_INVALIDDATA ;\n break ;\n }\n default : av_log ( avctx , AV_LOG_ERROR , \"BUG! Unknown MSZH compression in frame decoder.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n break ;\n # if CONFIG_ZLIB_DECODER case AV_CODEC_ID_ZLIB : if ( c -> compression == COMP_ZLIB_NORMAL && c -> imgtype == IMGTYPE_RGB24 && len == width * height * 3 ) {\n if ( c -> flags & FLAG_PNGFILTER ) {\n memcpy ( c -> decomp_buf , encoded , len ) ;\n encoded = c -> decomp_buf ;\n }\n else {\n break ;\n }\n }\n else if ( c -> flags & FLAG_MULTITHREAD ) {\n mthread_inlen = AV_RL32 ( encoded ) ;\n mthread_inlen = FFMIN ( mthread_inlen , len - 8 ) ;\n mthread_outlen = AV_RL32 ( encoded + 4 ) ;\n mthread_outlen = FFMIN ( mthread_outlen , c -> decomp_size ) ;\n ret = zlib_decomp ( avctx , encoded + 8 , mthread_inlen , 0 , mthread_outlen ) ;\n if ( ret < 0 ) return ret ;\n ret = zlib_decomp ( avctx , encoded + 8 + mthread_inlen , len - 8 - mthread_inlen , mthread_outlen , mthread_outlen ) ;\n if ( ret < 0 ) return ret ;\n }\n else {\n int ret = zlib_decomp ( avctx , encoded , len , 0 , c -> decomp_size ) ;\n if ( ret < 0 ) return ret ;\n }\n encoded = c -> decomp_buf ;\n len = c -> decomp_size ;\n break ;\n # endif default : av_log ( avctx , AV_LOG_ERROR , \"BUG! Unknown codec in frame decoder compression switch.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( avctx -> codec_id == AV_CODEC_ID_ZLIB && ( c -> flags & FLAG_PNGFILTER ) ) {\n switch ( c -> imgtype ) {\n case IMGTYPE_YUV111 : case IMGTYPE_RGB24 : for ( row = 0 ;\n row < height ;\n row ++ ) {\n pixel_ptr = row * width * 3 ;\n yq = encoded [ pixel_ptr ++ ] ;\n uqvq = AV_RL16 ( encoded + pixel_ptr ) ;\n pixel_ptr += 2 ;\n for ( col = 1 ;\n col < width ;\n col ++ ) {\n encoded [ pixel_ptr ] = yq -= encoded [ pixel_ptr ] ;\n uqvq -= AV_RL16 ( encoded + pixel_ptr + 1 ) ;\n AV_WL16 ( encoded + pixel_ptr + 1 , uqvq ) ;\n pixel_ptr += 3 ;\n }\n }\n break ;\n case IMGTYPE_YUV422 : for ( row = 0 ;\n row < height ;\n row ++ ) {\n pixel_ptr = row * width * 2 ;\n yq = uq = vq = 0 ;\n for ( col = 0 ;\n col < width / 4 ;\n col ++ ) {\n encoded [ pixel_ptr ] = yq -= encoded [ pixel_ptr ] ;\n encoded [ pixel_ptr + 1 ] = yq -= encoded [ pixel_ptr + 1 ] ;\n encoded [ pixel_ptr + 2 ] = yq -= encoded [ pixel_ptr + 2 ] ;\n encoded [ pixel_ptr + 3 ] = yq -= encoded [ pixel_ptr + 3 ] ;\n encoded [ pixel_ptr + 4 ] = uq -= encoded [ pixel_ptr + 4 ] ;\n encoded [ pixel_ptr + 5 ] = uq -= encoded [ pixel_ptr + 5 ] ;\n encoded [ pixel_ptr + 6 ] = vq -= encoded [ pixel_ptr + 6 ] ;\n encoded [ pixel_ptr + 7 ] = vq -= encoded [ pixel_ptr + 7 ] ;\n pixel_ptr += 8 ;\n }\n }\n break ;\n case IMGTYPE_YUV411 : for ( row = 0 ;\n row < height ;\n row ++ ) {\n pixel_ptr = row * width / 2 * 3 ;\n yq = uq = vq = 0 ;\n for ( col = 0 ;\n col < width / 4 ;\n col ++ ) {\n encoded [ pixel_ptr ] = yq -= encoded [ pixel_ptr ] ;\n encoded [ pixel_ptr + 1 ] = yq -= encoded [ pixel_ptr + 1 ] ;\n encoded [ pixel_ptr + 2 ] = yq -= encoded [ pixel_ptr + 2 ] ;\n encoded [ pixel_ptr + 3 ] = yq -= encoded [ pixel_ptr + 3 ] ;\n encoded [ pixel_ptr + 4 ] = uq -= encoded [ pixel_ptr + 4 ] ;\n encoded [ pixel_ptr + 5 ] = vq -= encoded [ pixel_ptr + 5 ] ;\n pixel_ptr += 6 ;\n }\n }\n break ;\n case IMGTYPE_YUV211 : for ( row = 0 ;\n row < height ;\n row ++ ) {\n pixel_ptr = row * width * 2 ;\n yq = uq = vq = 0 ;\n for ( col = 0 ;\n col < width / 2 ;\n col ++ ) {\n encoded [ pixel_ptr ] = yq -= encoded [ pixel_ptr ] ;\n encoded [ pixel_ptr + 1 ] = yq -= encoded [ pixel_ptr + 1 ] ;\n encoded [ pixel_ptr + 2 ] = uq -= encoded [ pixel_ptr + 2 ] ;\n encoded [ pixel_ptr + 3 ] = vq -= encoded [ pixel_ptr + 3 ] ;\n pixel_ptr += 4 ;\n }\n }\n break ;\n case IMGTYPE_YUV420 : for ( row = 0 ;\n row < height / 2 ;\n row ++ ) {\n pixel_ptr = row * width * 3 ;\n yq = y1q = uq = vq = 0 ;\n for ( col = 0 ;\n col < width / 2 ;\n col ++ ) {\n encoded [ pixel_ptr ] = yq -= encoded [ pixel_ptr ] ;\n encoded [ pixel_ptr + 1 ] = yq -= encoded [ pixel_ptr + 1 ] ;\n encoded [ pixel_ptr + 2 ] = y1q -= encoded [ pixel_ptr + 2 ] ;\n encoded [ pixel_ptr + 3 ] = y1q -= encoded [ pixel_ptr + 3 ] ;\n encoded [ pixel_ptr + 4 ] = uq -= encoded [ pixel_ptr + 4 ] ;\n encoded [ pixel_ptr + 5 ] = vq -= encoded [ pixel_ptr + 5 ] ;\n pixel_ptr += 6 ;\n }\n }\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"BUG! Unknown imagetype in pngfilter switch.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n y_out = frame -> data [ 0 ] + ( height - 1 ) * frame -> linesize [ 0 ] ;\n u_out = frame -> data [ 1 ] + ( height - 1 ) * frame -> linesize [ 1 ] ;\n v_out = frame -> data [ 2 ] + ( height - 1 ) * frame -> linesize [ 2 ] ;\n switch ( c -> imgtype ) {\n case IMGTYPE_YUV111 : for ( row = 0 ;\n row < height ;\n row ++ ) {\n for ( col = 0 ;\n col < width ;\n col ++ ) {\n y_out [ col ] = * encoded ++ ;\n u_out [ col ] = * encoded ++ + 128 ;\n v_out [ col ] = * encoded ++ + 128 ;\n }\n y_out -= frame -> linesize [ 0 ] ;\n u_out -= frame -> linesize [ 1 ] ;\n v_out -= frame -> linesize [ 2 ] ;\n }\n break ;\n case IMGTYPE_YUV422 : for ( row = 0 ;\n row < height ;\n row ++ ) {\n for ( col = 0 ;\n col < width - 3 ;\n col += 4 ) {\n memcpy ( y_out + col , encoded , 4 ) ;\n encoded += 4 ;\n u_out [ col >> 1 ] = * encoded ++ + 128 ;\n u_out [ ( col >> 1 ) + 1 ] = * encoded ++ + 128 ;\n v_out [ col >> 1 ] = * encoded ++ + 128 ;\n v_out [ ( col >> 1 ) + 1 ] = * encoded ++ + 128 ;\n }\n y_out -= frame -> linesize [ 0 ] ;\n u_out -= frame -> linesize [ 1 ] ;\n v_out -= frame -> linesize [ 2 ] ;\n }\n break ;\n case IMGTYPE_RGB24 : for ( row = height - 1 ;\n row >= 0 ;\n row -- ) {\n pixel_ptr = row * frame -> linesize [ 0 ] ;\n memcpy ( outptr + pixel_ptr , encoded , 3 * width ) ;\n encoded += 3 * width ;\n }\n break ;\n case IMGTYPE_YUV411 : for ( row = 0 ;\n row < height ;\n row ++ ) {\n for ( col = 0 ;\n col < width - 3 ;\n col += 4 ) {\n memcpy ( y_out + col , encoded , 4 ) ;\n encoded += 4 ;\n u_out [ col >> 2 ] = * encoded ++ + 128 ;\n v_out [ col >> 2 ] = * encoded ++ + 128 ;\n }\n y_out -= frame -> linesize [ 0 ] ;\n u_out -= frame -> linesize [ 1 ] ;\n v_out -= frame -> linesize [ 2 ] ;\n }\n break ;\n case IMGTYPE_YUV211 : for ( row = 0 ;\n row < height ;\n row ++ ) {\n for ( col = 0 ;\n col < width - 1 ;\n col += 2 ) {\n memcpy ( y_out + col , encoded , 2 ) ;\n encoded += 2 ;\n u_out [ col >> 1 ] = * encoded ++ + 128 ;\n v_out [ col >> 1 ] = * encoded ++ + 128 ;\n }\n y_out -= frame -> linesize [ 0 ] ;\n u_out -= frame -> linesize [ 1 ] ;\n v_out -= frame -> linesize [ 2 ] ;\n }\n break ;\n case IMGTYPE_YUV420 : u_out = frame -> data [ 1 ] + ( ( height >> 1 ) - 1 ) * frame -> linesize [ 1 ] ;\n v_out = frame -> data [ 2 ] + ( ( height >> 1 ) - 1 ) * frame -> linesize [ 2 ] ;\n for ( row = 0 ;\n row < height - 1 ;\n row += 2 ) {\n for ( col = 0 ;\n col < width - 1 ;\n col += 2 ) {\n memcpy ( y_out + col , encoded , 2 ) ;\n encoded += 2 ;\n memcpy ( y_out + col - frame -> linesize [ 0 ] , encoded , 2 ) ;\n encoded += 2 ;\n u_out [ col >> 1 ] = * encoded ++ + 128 ;\n v_out [ col >> 1 ] = * encoded ++ + 128 ;\n }\n y_out -= frame -> linesize [ 0 ] << 1 ;\n u_out -= frame -> linesize [ 1 ] ;\n v_out -= frame -> linesize [ 2 ] ;\n }\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"BUG! Unknown imagetype in image decoder.\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 19050, "target": 0, "func": "jpc_pi_t * jpc_pi_create0 ( ) {\n jpc_pi_t * pi ;\n if ( ! ( pi = jas_malloc ( sizeof ( jpc_pi_t ) ) ) ) {\n return 0 ;\n }\n pi -> picomps = 0 ;\n pi -> pchgno = 0 ;\n if ( ! ( pi -> pchglist = jpc_pchglist_create ( ) ) ) {\n jas_free ( pi ) ;\n return 0 ;\n }\n return pi ;\n }"}
{"idx": 19051, "target": 0, "func": "static void dissect_zcl_scenes_remove_all_get_scene_membership ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_scenes_group_id , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n }"}
{"idx": 19052, "target": 0, "func": "static int calculate_nss_hash ( struct crypto_instance * instance , const unsigned char * buf , const size_t buf_len , unsigned char * hash ) {\n PK11Context * hash_context = NULL ;\n SECItem hash_param ;\n unsigned int hash_tmp_outlen = 0 ;\n unsigned char hash_block [ hash_block_len [ instance -> crypto_hash_type ] ] ;\n int err = - 1 ;\n hash_param . type = siBuffer ;\n hash_param . data = 0 ;\n hash_param . len = 0 ;\n hash_context = PK11_CreateContextBySymKey ( hash_to_nss [ instance -> crypto_hash_type ] , CKA_SIGN , instance -> nss_sym_key_sign , & hash_param ) ;\n if ( ! hash_context ) {\n log_printf ( instance -> log_level_security , \"PK11_CreateContext failed (hash) hash_type=%d (err %d)\" , ( int ) hash_to_nss [ instance -> crypto_hash_type ] , PR_GetError ( ) ) ;\n goto out ;\n }\n if ( PK11_DigestBegin ( hash_context ) != SECSuccess ) {\n log_printf ( instance -> log_level_security , \"PK11_DigestBegin failed (hash) hash_type=%d (err %d)\" , ( int ) hash_to_nss [ instance -> crypto_hash_type ] , PR_GetError ( ) ) ;\n goto out ;\n }\n if ( PK11_DigestOp ( hash_context , buf , buf_len ) != SECSuccess ) {\n log_printf ( instance -> log_level_security , \"PK11_DigestOp failed (hash) hash_type=%d (err %d)\" , ( int ) hash_to_nss [ instance -> crypto_hash_type ] , PR_GetError ( ) ) ;\n goto out ;\n }\n if ( PK11_DigestFinal ( hash_context , hash_block , & hash_tmp_outlen , hash_block_len [ instance -> crypto_hash_type ] ) != SECSuccess ) {\n log_printf ( instance -> log_level_security , \"PK11_DigestFinale failed (hash) hash_type=%d (err %d)\" , ( int ) hash_to_nss [ instance -> crypto_hash_type ] , PR_GetError ( ) ) ;\n goto out ;\n }\n memcpy ( hash , hash_block , hash_len [ instance -> crypto_hash_type ] ) ;\n err = 0 ;\n out : if ( hash_context ) {\n PK11_DestroyContext ( hash_context , PR_TRUE ) ;\n }\n return err ;\n }"}
{"idx": 19053, "target": 0, "func": "static MagickBooleanType IsVIFF ( const unsigned char * magick , const size_t length ) {\n if ( length < 2 ) return ( MagickFalse ) ;\n if ( memcmp ( magick , \"\\253\\001\" , 2 ) == 0 ) return ( MagickTrue ) ;\n return ( MagickFalse ) ;\n }"}
{"idx": 19054, "target": 0, "func": "int tls1_enc ( SSL * s , int send ) {\n SSL3_RECORD * rec ;\n EVP_CIPHER_CTX * ds ;\n unsigned long l ;\n int bs , i , j , k , pad = 0 , ret , mac_size = 0 ;\n const EVP_CIPHER * enc ;\n if ( send ) {\n if ( EVP_MD_CTX_md ( s -> write_hash ) ) {\n int n = EVP_MD_CTX_size ( s -> write_hash ) ;\n OPENSSL_assert ( n >= 0 ) ;\n }\n ds = s -> enc_write_ctx ;\n rec = & ( s -> s3 -> wrec ) ;\n if ( s -> enc_write_ctx == NULL ) enc = NULL ;\n else {\n int ivlen ;\n enc = EVP_CIPHER_CTX_cipher ( s -> enc_write_ctx ) ;\n if ( s -> version >= TLS1_1_VERSION && EVP_CIPHER_mode ( enc ) == EVP_CIPH_CBC_MODE ) ivlen = EVP_CIPHER_iv_length ( enc ) ;\n else ivlen = 0 ;\n if ( ivlen > 1 ) {\n if ( rec -> data != rec -> input ) fprintf ( stderr , \"%s:%d: rec->data != rec->input\\n\" , __FILE__ , __LINE__ ) ;\n else if ( RAND_bytes ( rec -> input , ivlen ) <= 0 ) return - 1 ;\n }\n }\n }\n else {\n if ( EVP_MD_CTX_md ( s -> read_hash ) ) {\n int n = EVP_MD_CTX_size ( s -> read_hash ) ;\n OPENSSL_assert ( n >= 0 ) ;\n }\n ds = s -> enc_read_ctx ;\n rec = & ( s -> s3 -> rrec ) ;\n if ( s -> enc_read_ctx == NULL ) enc = NULL ;\n else enc = EVP_CIPHER_CTX_cipher ( s -> enc_read_ctx ) ;\n }\n # ifdef KSSL_DEBUG printf ( \"tls1_enc(%d)\\n\" , send ) ;\n # endif if ( ( s -> session == NULL ) || ( ds == NULL ) || ( enc == NULL ) ) {\n memmove ( rec -> data , rec -> input , rec -> length ) ;\n rec -> input = rec -> data ;\n ret = 1 ;\n }\n else {\n l = rec -> length ;\n bs = EVP_CIPHER_block_size ( ds -> cipher ) ;\n if ( EVP_CIPHER_flags ( ds -> cipher ) & EVP_CIPH_FLAG_AEAD_CIPHER ) {\n unsigned char buf [ 13 ] , * seq ;\n seq = send ? s -> s3 -> write_sequence : s -> s3 -> read_sequence ;\n if ( s -> version == DTLS1_VERSION || s -> version == DTLS1_BAD_VER ) {\n unsigned char dtlsseq [ 9 ] , * p = dtlsseq ;\n s2n ( send ? s -> d1 -> w_epoch : s -> d1 -> r_epoch , p ) ;\n memcpy ( p , & seq [ 2 ] , 6 ) ;\n memcpy ( buf , dtlsseq , 8 ) ;\n }\n else {\n memcpy ( buf , seq , 8 ) ;\n for ( i = 7 ;\n i >= 0 ;\n i -- ) {\n ++ seq [ i ] ;\n if ( seq [ i ] != 0 ) break ;\n }\n }\n buf [ 8 ] = rec -> type ;\n buf [ 9 ] = ( unsigned char ) ( s -> version >> 8 ) ;\n buf [ 10 ] = ( unsigned char ) ( s -> version ) ;\n buf [ 11 ] = rec -> length >> 8 ;\n buf [ 12 ] = rec -> length & 0xff ;\n pad = EVP_CIPHER_CTX_ctrl ( ds , EVP_CTRL_AEAD_TLS1_AAD , 13 , buf ) ;\n if ( send ) {\n l += pad ;\n rec -> length += pad ;\n }\n }\n else if ( ( bs != 1 ) && send ) {\n i = bs - ( ( int ) l % bs ) ;\n j = i - 1 ;\n if ( s -> options & SSL_OP_TLS_BLOCK_PADDING_BUG ) {\n if ( s -> s3 -> flags & TLS1_FLAGS_TLS_PADDING_BUG ) j ++ ;\n }\n for ( k = ( int ) l ;\n k < ( int ) ( l + i ) ;\n k ++ ) rec -> input [ k ] = j ;\n l += i ;\n rec -> length += i ;\n }\n # ifdef KSSL_DEBUG {\n unsigned long ui ;\n printf ( \"EVP_Cipher(ds=%p,rec->data=%p,rec->input=%p,l=%ld) ==>\\n\" , ds , rec -> data , rec -> input , l ) ;\n printf ( \"\\tEVP_CIPHER_CTX: %d buf_len, %d key_len [%d %d], %d iv_len\\n\" , ds -> buf_len , ds -> cipher -> key_len , DES_KEY_SZ , DES_SCHEDULE_SZ , ds -> cipher -> iv_len ) ;\n printf ( \"\\t\\tIV: \" ) ;\n for ( i = 0 ;\n i < ds -> cipher -> iv_len ;\n i ++ ) printf ( \"%02X\" , ds -> iv [ i ] ) ;\n printf ( \"\\n\" ) ;\n printf ( \"\\trec->input=\" ) ;\n for ( ui = 0 ;\n ui < l ;\n ui ++ ) printf ( \" %02x\" , rec -> input [ ui ] ) ;\n printf ( \"\\n\" ) ;\n }\n # endif if ( ! send ) {\n if ( l == 0 || l % bs != 0 ) return 0 ;\n }\n i = EVP_Cipher ( ds , rec -> data , rec -> input , l ) ;\n if ( ( EVP_CIPHER_flags ( ds -> cipher ) & EVP_CIPH_FLAG_CUSTOM_CIPHER ) ? ( i < 0 ) : ( i == 0 ) ) return - 1 ;\n if ( EVP_CIPHER_mode ( enc ) == EVP_CIPH_GCM_MODE && ! send ) {\n rec -> data += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n rec -> input += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n rec -> length -= EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n }\n # ifdef KSSL_DEBUG {\n unsigned long i ;\n printf ( \"\\trec->data=\" ) ;\n for ( i = 0 ;\n i < l ;\n i ++ ) printf ( \" %02x\" , rec -> data [ i ] ) ;\n printf ( \"\\n\" ) ;\n }\n # endif ret = 1 ;\n if ( EVP_MD_CTX_md ( s -> read_hash ) != NULL ) mac_size = EVP_MD_CTX_size ( s -> read_hash ) ;\n if ( ( bs != 1 ) && ! send ) ret = tls1_cbc_remove_padding ( s , rec , bs , mac_size ) ;\n if ( pad && ! send ) rec -> length -= pad ;\n }\n return ret ;\n }"}
{"idx": 19055, "target": 0, "func": "void vp8_quantize_mbuv_c ( MACROBLOCK * x ) {\n int i ;\n for ( i = 16 ;\n i < 24 ;\n i ++ ) x -> quantize_b ( & x -> block [ i ] , & x -> e_mbd . block [ i ] ) ;\n }"}
{"idx": 19056, "target": 0, "func": "mbfl_string * mbfl_html_numeric_entity ( mbfl_string * string , mbfl_string * result , int * convmap , int mapsize , int type ) {\n struct collector_htmlnumericentity_data pc ;\n mbfl_memory_device device ;\n mbfl_convert_filter * encoder ;\n int n ;\n unsigned char * p ;\n if ( string == NULL || result == NULL ) {\n return NULL ;\n }\n mbfl_string_init ( result ) ;\n result -> no_language = string -> no_language ;\n result -> no_encoding = string -> no_encoding ;\n mbfl_memory_device_init ( & device , string -> len , 0 ) ;\n pc . decoder = mbfl_convert_filter_new ( mbfl_no_encoding_wchar , string -> no_encoding , mbfl_memory_device_output , 0 , & device ) ;\n if ( type == 0 ) {\n encoder = mbfl_convert_filter_new ( string -> no_encoding , mbfl_no_encoding_wchar , collector_encode_htmlnumericentity , 0 , & pc ) ;\n }\n else if ( type == 2 ) {\n encoder = mbfl_convert_filter_new ( string -> no_encoding , mbfl_no_encoding_wchar , collector_encode_hex_htmlnumericentity , 0 , & pc ) ;\n }\n else {\n encoder = mbfl_convert_filter_new ( string -> no_encoding , mbfl_no_encoding_wchar , collector_decode_htmlnumericentity , ( int ( * ) ( void * ) ) mbfl_filt_decode_htmlnumericentity_flush , & pc ) ;\n }\n if ( pc . decoder == NULL || encoder == NULL ) {\n mbfl_convert_filter_delete ( encoder ) ;\n mbfl_convert_filter_delete ( pc . decoder ) ;\n return NULL ;\n }\n pc . status = 0 ;\n pc . cache = 0 ;\n pc . digit = 0 ;\n pc . convmap = convmap ;\n pc . mapsize = mapsize ;\n p = string -> val ;\n n = string -> len ;\n if ( p != NULL ) {\n while ( n > 0 ) {\n if ( ( * encoder -> filter_function ) ( * p ++ , encoder ) < 0 ) {\n break ;\n }\n n -- ;\n }\n }\n mbfl_convert_filter_flush ( encoder ) ;\n mbfl_convert_filter_flush ( pc . decoder ) ;\n result = mbfl_memory_device_result ( & device , result ) ;\n mbfl_convert_filter_delete ( encoder ) ;\n mbfl_convert_filter_delete ( pc . decoder ) ;\n return result ;\n }"}
{"idx": 19057, "target": 0, "func": "static void t1_init_loader ( T1_Loader loader , T1_Face face ) {\n FT_UNUSED ( face ) ;\n FT_MEM_ZERO ( loader , sizeof ( * loader ) ) ;\n loader -> num_glyphs = 0 ;\n loader -> num_chars = 0 ;\n loader -> encoding_table . init = 0 ;\n loader -> charstrings . init = 0 ;\n loader -> glyph_names . init = 0 ;\n loader -> subrs . init = 0 ;\n loader -> swap_table . init = 0 ;\n loader -> fontdata = 0 ;\n loader -> keywords_encountered = 0 ;\n }"}
{"idx": 19058, "target": 0, "func": "static void test_bug7990 ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n myheader ( \"test_bug7990\" ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n rc = mysql_stmt_prepare ( stmt , \"foo\" , 3 ) ;\n DIE_UNLESS ( rc && mysql_stmt_errno ( stmt ) && mysql_errno ( mysql ) ) ;\n mysql_stmt_close ( stmt ) ;\n DIE_UNLESS ( ! mysql_errno ( mysql ) ) ;\n }"}
{"idx": 19059, "target": 0, "func": "static void set_rate_correction_factor ( VP9_COMP * cpi , double factor ) {\n RATE_CONTROL * const rc = & cpi -> rc ;\n if ( cpi -> common . frame_type == KEY_FRAME ) {\n rc -> rate_correction_factors [ KF_STD ] = factor ;\n }\n else if ( cpi -> oxcf . pass == 2 ) {\n RATE_FACTOR_LEVEL rf_lvl = cpi -> twopass . gf_group . rf_level [ cpi -> twopass . gf_group . index ] ;\n rc -> rate_correction_factors [ rf_lvl ] = factor ;\n }\n else {\n if ( ( cpi -> refresh_alt_ref_frame || cpi -> refresh_golden_frame ) && ! rc -> is_src_frame_alt_ref && ! ( cpi -> use_svc && cpi -> oxcf . rc_mode == VPX_CBR ) ) rc -> rate_correction_factors [ GF_ARF_STD ] = factor ;\n else rc -> rate_correction_factors [ INTER_NORMAL ] = factor ;\n }\n }"}
{"idx": 19060, "target": 0, "func": "static gpgme_error_t uiserver_reset ( void * engine ) {\n engine_uiserver_t uiserver = engine ;\n return uiserver_assuan_simple_command ( uiserver -> assuan_ctx , \"RESET\" , NULL , NULL ) ;\n }"}
{"idx": 19061, "target": 0, "func": "Encoding * PSSlurpEncodings ( FILE * file ) {\n char * names [ 1024 ] ;\n int32 encs [ 1024 ] ;\n Encoding * item , * head = NULL , * last ;\n char * encname ;\n char tokbuf [ 200 ] ;\n IO wrapper ;\n real dval ;\n size_t i , any ;\n int max , enc , codepointsonly , tok ;\n wrapper . top = NULL ;\n wrapper . advance_width = UNDEFINED_WIDTH ;\n pushio ( & wrapper , file , NULL , 0 ) ;\n while ( ( tok = nextpstoken ( & wrapper , & dval , tokbuf , sizeof ( tokbuf ) ) ) != pt_eof ) {\n encname = NULL ;\n if ( tok == pt_namelit ) {\n encname = copy ( tokbuf ) ;\n tok = nextpstoken ( & wrapper , & dval , tokbuf , sizeof ( tokbuf ) ) ;\n }\n if ( tok != pt_openarray && tok != pt_opencurly ) return ( head ) ;\n for ( i = 0 ;\n i < sizeof ( names ) / sizeof ( names [ 0 ] ) ;\n ++ i ) {\n encs [ i ] = - 1 ;\n names [ i ] = NULL ;\n }\n codepointsonly = CheckCodePointsComment ( & wrapper ) ;\n max = - 1 ;\n any = 0 ;\n for ( i = 0 ;\n ( tok = nextpstoken ( & wrapper , & dval , tokbuf , sizeof ( tokbuf ) ) ) != pt_eof && tok != pt_closearray && tok != pt_closecurly ;\n i ++ ) {\n if ( tok == pt_namelit && i < sizeof ( names ) / sizeof ( names [ 0 ] ) ) {\n max = i ;\n if ( strcmp ( tokbuf , \".notdef\" ) == 0 ) {\n encs [ i ] = - 1 ;\n }\n else if ( ( enc = UniFromName ( tokbuf , ui_none , & custom ) ) != - 1 ) {\n encs [ i ] = enc ;\n names [ i ] = copy ( tokbuf ) ;\n any = 1 ;\n }\n else {\n names [ i ] = copy ( tokbuf ) ;\n any = 1 ;\n }\n }\n }\n if ( encname != NULL ) {\n tok = nextpstoken ( & wrapper , & dval , tokbuf , sizeof ( tokbuf ) ) ;\n if ( tok == pt_def ) {\n }\n else {\n }\n }\n if ( max != - 1 ) {\n if ( ++ max < 256 ) max = 256 ;\n item = calloc ( 1 , sizeof ( Encoding ) ) ;\n item -> enc_name = encname ;\n item -> char_cnt = max ;\n item -> unicode = malloc ( max * sizeof ( int32 ) ) ;\n memcpy ( item -> unicode , encs , max * sizeof ( int32 ) ) ;\n if ( any && ! codepointsonly ) {\n item -> psnames = calloc ( max , sizeof ( char * ) ) ;\n memcpy ( item -> psnames , names , max * sizeof ( char * ) ) ;\n }\n else {\n for ( i = 0 ;\n i < max ;\n ++ i ) free ( names [ i ] ) ;\n }\n if ( head == NULL ) head = item ;\n else last -> next = item ;\n last = item ;\n }\n }\n return ( head ) ;\n }"}
{"idx": 19062, "target": 0, "func": "static VALUE ossl_asn1_initialize ( int argc , VALUE * argv , VALUE self ) {\n VALUE value , tag , tagging , tag_class ;\n rb_scan_args ( argc , argv , \"13\" , & value , & tag , & tagging , & tag_class ) ;\n if ( argc > 1 ) {\n if ( NIL_P ( tag ) ) ossl_raise ( eASN1Error , \"must specify tag number\" ) ;\n if ( ! NIL_P ( tagging ) && ! SYMBOL_P ( tagging ) ) ossl_raise ( eASN1Error , \"invalid tagging method\" ) ;\n if ( NIL_P ( tag_class ) ) {\n if ( NIL_P ( tagging ) ) tag_class = sym_UNIVERSAL ;\n else tag_class = sym_CONTEXT_SPECIFIC ;\n }\n if ( ! SYMBOL_P ( tag_class ) ) ossl_raise ( eASN1Error , \"invalid tag class\" ) ;\n if ( tagging == sym_IMPLICIT && NUM2INT ( tag ) > 31 ) ossl_raise ( eASN1Error , \"tag number for Universal too large\" ) ;\n }\n else {\n tag = INT2NUM ( ossl_asn1_default_tag ( self ) ) ;\n tagging = Qnil ;\n tag_class = sym_UNIVERSAL ;\n }\n ossl_asn1_set_tag ( self , tag ) ;\n ossl_asn1_set_value ( self , value ) ;\n ossl_asn1_set_tagging ( self , tagging ) ;\n ossl_asn1_set_tag_class ( self , tag_class ) ;\n ossl_asn1_set_infinite_length ( self , Qfalse ) ;\n return self ;\n }"}
{"idx": 19063, "target": 0, "func": "static int iax2_calls_packet ( void * ptr _U_ , packet_info * pinfo , epan_dissect_t * edt _U_ , const void * iax2_info ) {\n voip_calls_tapinfo_t * tapinfo = & the_tapinfo_struct ;\n GList * list ;\n voip_calls_info_t * callsinfo = NULL ;\n address * phone ;\n const iax2_info_t * ii = ( const iax2_info_t * ) iax2_info ;\n iax2_info_t * tmp_iax2info ;\n if ( ii == NULL || ii -> ptype != IAX2_FULL_PACKET || ( ii -> scallno == 0 && ii -> dcallno == 0 ) ) return 0 ;\n list = g_list_first ( tapinfo -> callsinfo_list ) ;\n while ( list ) {\n voip_calls_info_t * tmp_listinfo = ( voip_calls_info_t * ) list -> data ;\n if ( tmp_listinfo -> protocol == VOIP_IAX2 ) {\n tmp_iax2info = ( iax2_info_t * ) tmp_listinfo -> prot_info ;\n if ( tmp_iax2info -> scallno == ii -> scallno || tmp_iax2info -> scallno == ii -> dcallno ) {\n callsinfo = ( voip_calls_info_t * ) ( list -> data ) ;\n break ;\n }\n }\n list = g_list_next ( list ) ;\n }\n phone = & ( pinfo -> src ) ;\n if ( callsinfo == NULL ) {\n if ( ii -> ftype != AST_FRAME_IAX || ii -> csub != IAX_COMMAND_NEW ) return 0 ;\n callsinfo = ( voip_calls_info_t * ) g_malloc0 ( sizeof ( voip_calls_info_t ) ) ;\n callsinfo -> call_state = VOIP_NO_STATE ;\n callsinfo -> call_active_state = VOIP_ACTIVE ;\n callsinfo -> prot_info = g_malloc ( sizeof ( iax2_info_t ) ) ;\n callsinfo -> free_prot_info = free_iax2_info ;\n tmp_iax2info = ( iax2_info_t * ) callsinfo -> prot_info ;\n tmp_iax2info -> scallno = ii -> scallno ;\n if ( tmp_iax2info -> scallno == 0 ) tmp_iax2info -> scallno = ii -> dcallno ;\n tmp_iax2info -> callState = ii -> callState ;\n callsinfo -> npackets = 1 ;\n COPY_ADDRESS ( & ( callsinfo -> initial_speaker ) , phone ) ;\n callsinfo -> from_identity = g_strdup ( ii -> callingParty ) ;\n callsinfo -> to_identity = g_strdup ( ii -> calledParty ) ;\n callsinfo -> protocol = VOIP_IAX2 ;\n callsinfo -> call_num = tapinfo -> ncalls ++ ;\n callsinfo -> start_fd = pinfo -> fd ;\n callsinfo -> start_rel_ts = pinfo -> rel_ts ;\n callsinfo -> stop_fd = pinfo -> fd ;\n callsinfo -> stop_rel_ts = pinfo -> rel_ts ;\n callsinfo -> selected = FALSE ;\n tapinfo -> callsinfo_list = g_list_prepend ( tapinfo -> callsinfo_list , callsinfo ) ;\n }\n else {\n callsinfo -> call_state = ii -> callState ;\n callsinfo -> stop_fd = pinfo -> fd ;\n callsinfo -> stop_rel_ts = pinfo -> rel_ts ;\n ++ ( callsinfo -> npackets ) ;\n }\n add_to_graph ( tapinfo , pinfo , ii -> messageName , \"\" , callsinfo -> call_num , & ( pinfo -> src ) , & ( pinfo -> dst ) , 1 ) ;\n return 1 ;\n }"}
{"idx": 19064, "target": 0, "func": "static int spl_filesystem_dir_it_valid ( zend_object_iterator * iter TSRMLS_DC ) {\n spl_filesystem_object * object = spl_filesystem_iterator_to_object ( ( spl_filesystem_iterator * ) iter ) ;\n return object -> u . dir . entry . d_name [ 0 ] != '\\0' ? SUCCESS : FAILURE ;\n }"}
{"idx": 19065, "target": 0, "func": "void PNGAPI png_set_unknown_chunks ( png_structp png_ptr , png_infop info_ptr , png_unknown_chunkp unknowns , int num_unknowns ) {\n png_unknown_chunkp np ;\n int i ;\n if ( png_ptr == NULL || info_ptr == NULL || num_unknowns == 0 ) return ;\n np = ( png_unknown_chunkp ) png_malloc_warn ( png_ptr , ( png_uint_32 ) ( ( info_ptr -> unknown_chunks_num + num_unknowns ) * png_sizeof ( png_unknown_chunk ) ) ) ;\n if ( np == NULL ) {\n png_warning ( png_ptr , \"Out of memory while processing unknown chunk.\" ) ;\n return ;\n }\n png_memcpy ( np , info_ptr -> unknown_chunks , info_ptr -> unknown_chunks_num * png_sizeof ( png_unknown_chunk ) ) ;\n png_free ( png_ptr , info_ptr -> unknown_chunks ) ;\n info_ptr -> unknown_chunks = NULL ;\n for ( i = 0 ;\n i < num_unknowns ;\n i ++ ) {\n png_unknown_chunkp to = np + info_ptr -> unknown_chunks_num + i ;\n png_unknown_chunkp from = unknowns + i ;\n png_memcpy ( ( png_charp ) to -> name , ( png_charp ) from -> name , png_sizeof ( from -> name ) ) ;\n to -> name [ png_sizeof ( to -> name ) - 1 ] = '\\0' ;\n to -> size = from -> size ;\n to -> location = ( png_byte ) ( png_ptr -> mode & 0xff ) ;\n if ( from -> size == 0 ) to -> data = NULL ;\n else {\n to -> data = ( png_bytep ) png_malloc_warn ( png_ptr , ( png_uint_32 ) from -> size ) ;\n if ( to -> data == NULL ) {\n png_warning ( png_ptr , \"Out of memory while processing unknown chunk.\" ) ;\n to -> size = 0 ;\n }\n else png_memcpy ( to -> data , from -> data , from -> size ) ;\n }\n }\n info_ptr -> unknown_chunks = np ;\n info_ptr -> unknown_chunks_num += num_unknowns ;\n # ifdef PNG_FREE_ME_SUPPORTED info_ptr -> free_me |= PNG_FREE_UNKN ;\n # endif }"}
{"idx": 19066, "target": 0, "func": "static void gst_asf_demux_pop_obj ( GstASFDemux * demux ) {\n gchar * s ;\n if ( ( s = g_strrstr ( demux -> objpath , \"/\" ) ) ) {\n * s = '\\0' ;\n }\n else {\n g_free ( demux -> objpath ) ;\n demux -> objpath = NULL ;\n }\n }"}
{"idx": 19067, "target": 0, "func": "static inline int check_section_show_entries ( int section_id ) {\n int * id ;\n struct section * section = & sections [ section_id ] ;\n if ( sections [ section_id ] . show_all_entries || sections [ section_id ] . entries_to_show ) return 1 ;\n for ( id = section -> children_ids ;\n * id != - 1 ;\n id ++ ) if ( check_section_show_entries ( * id ) ) return 1 ;\n return 0 ;\n }"}
{"idx": 19068, "target": 0, "func": "static uint32_t ohci_get_frame_remaining ( OHCIState * ohci ) {\n uint16_t fr ;\n int64_t tks ;\n if ( ( ohci -> ctl & OHCI_CTL_HCFS ) != OHCI_USB_OPERATIONAL ) return ( ohci -> frt << 31 ) ;\n tks = qemu_clock_get_ns ( QEMU_CLOCK_VIRTUAL ) - ohci -> sof_time ;\n if ( tks >= usb_frame_time ) return ( ohci -> frt << 31 ) ;\n tks = tks / usb_bit_time ;\n fr = ( uint16_t ) ( ohci -> fi - tks ) ;\n return ( ohci -> frt << 31 ) | fr ;\n }"}
{"idx": 19069, "target": 0, "func": "static int dissect_h245_TerminalCapabilitySetRejectCause ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_TerminalCapabilitySetRejectCause , TerminalCapabilitySetRejectCause_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 19070, "target": 0, "func": "const char * TSUrlHttpQueryGet ( TSMBuffer bufp , TSMLoc obj , int * length ) {\n return URLPartGet ( bufp , obj , length , & URL : : query_get ) ;\n }"}
{"idx": 19071, "target": 0, "func": "static void armv7m_nvic_instance_init ( Object * obj ) {\n GICState * s = ARM_GIC_COMMON ( obj ) ;\n s -> num_irq = 64 ;\n }"}
{"idx": 19072, "target": 0, "func": "static void ExecuteSqlCommand ( ArchiveHandle * AH , const char * qry , const char * desc ) {\n PGconn * conn = AH -> connection ;\n PGresult * res ;\n char errStmt [ DB_MAX_ERR_STMT ] ;\n # ifdef NOT_USED fprintf ( stderr , \"Executing: '%s'\\n\\n\" , qry ) ;\n # endif res = PQexec ( conn , qry ) ;\n switch ( PQresultStatus ( res ) ) {\n case PGRES_COMMAND_OK : case PGRES_TUPLES_OK : case PGRES_EMPTY_QUERY : break ;\n case PGRES_COPY_IN : AH -> pgCopyIn = true ;\n break ;\n default : strncpy ( errStmt , qry , DB_MAX_ERR_STMT ) ;\n if ( errStmt [ DB_MAX_ERR_STMT - 1 ] != '\\0' ) {\n errStmt [ DB_MAX_ERR_STMT - 4 ] = '.' ;\n errStmt [ DB_MAX_ERR_STMT - 3 ] = '.' ;\n errStmt [ DB_MAX_ERR_STMT - 2 ] = '.' ;\n errStmt [ DB_MAX_ERR_STMT - 1 ] = '\\0' ;\n }\n warn_or_exit_horribly ( AH , modulename , \"%s: %s Command was: %s\\n\" , desc , PQerrorMessage ( conn ) , errStmt ) ;\n break ;\n }\n PQclear ( res ) ;\n }"}
{"idx": 19073, "target": 0, "func": "static vpx_codec_err_t ctrl_set_rc_max_intra_bitrate_pct ( vpx_codec_alg_priv_t * ctx , va_list args ) {\n struct vp9_extracfg extra_cfg = ctx -> extra_cfg ;\n extra_cfg . rc_max_intra_bitrate_pct = CAST ( VP8E_SET_MAX_INTRA_BITRATE_PCT , args ) ;\n return update_extra_cfg ( ctx , & extra_cfg ) ;\n }"}
{"idx": 19074, "target": 0, "func": "static void pdf_process_BMC ( fz_context * ctx , pdf_processor * proc , pdf_csi * csi , const char * name ) {\n if ( proc -> op_BMC ) proc -> op_BMC ( ctx , proc , name ) ;\n if ( proc -> hidden > 0 ) ++ proc -> hidden ;\n }"}
{"idx": 19075, "target": 1, "func": "static void fd_free ( struct FrameData * p ) {\n if ( p ) {\n if ( p -> buf ) vpx_free ( p -> buf ) ;\n vpx_free ( p ) ;\n }\n }"}
{"idx": 19076, "target": 0, "func": "int archive_mstring_copy_wcs ( struct archive_mstring * aes , const wchar_t * wcs ) {\n return archive_mstring_copy_wcs_len ( aes , wcs , wcs == NULL ? 0 : wcslen ( wcs ) ) ;\n }"}
{"idx": 19077, "target": 0, "func": "static void virtio_net_set_config ( VirtIODevice * vdev , const uint8_t * config ) {\n VirtIONet * n = to_virtio_net ( vdev ) ;\n struct virtio_net_config netcfg ;\n memcpy ( & netcfg , config , sizeof ( netcfg ) ) ;\n if ( memcmp ( netcfg . mac , n -> mac , ETH_ALEN ) ) {\n memcpy ( n -> mac , netcfg . mac , ETH_ALEN ) ;\n qemu_format_nic_info_str ( & n -> nic -> nc , n -> mac ) ;\n }\n }"}
{"idx": 19078, "target": 0, "func": "void vp9_predict_intra_block ( const MACROBLOCKD * xd , int block_idx , int bwl_in , TX_SIZE tx_size , PREDICTION_MODE mode , const uint8_t * ref , int ref_stride , uint8_t * dst , int dst_stride , int aoff , int loff , int plane ) {\n const int bwl = bwl_in - tx_size ;\n const int wmask = ( 1 << bwl ) - 1 ;\n const int have_top = ( block_idx >> bwl ) || xd -> up_available ;\n const int have_left = ( block_idx & wmask ) || xd -> left_available ;\n const int have_right = ( ( block_idx & wmask ) != wmask ) ;\n const int x = aoff * 4 ;\n const int y = loff * 4 ;\n assert ( bwl >= 0 ) ;\n # if CONFIG_VP9_HIGHBITDEPTH if ( xd -> cur_buf -> flags & YV12_FLAG_HIGHBITDEPTH ) {\n build_intra_predictors_high ( xd , ref , ref_stride , dst , dst_stride , mode , tx_size , have_top , have_left , have_right , x , y , plane , xd -> bd ) ;\n return ;\n }\n # endif build_intra_predictors ( xd , ref , ref_stride , dst , dst_stride , mode , tx_size , have_top , have_left , have_right , x , y , plane ) ;\n }"}
{"idx": 19079, "target": 0, "func": "static gint rtmpt_message_header_length ( gint id ) {\n switch ( ( id >> 6 ) & 3 ) {\n case 0 : return 11 ;\n case 1 : return 7 ;\n case 2 : return 3 ;\n default : return 0 ;\n }\n }"}
{"idx": 19080, "target": 0, "func": "static void test_prepare ( ) {\n MYSQL_STMT * stmt ;\n int rc , i ;\n int int_data , o_int_data ;\n char str_data [ 50 ] , data [ 50 ] ;\n char tiny_data , o_tiny_data ;\n short small_data , o_small_data ;\n longlong big_data , o_big_data ;\n float real_data , o_real_data ;\n double double_data , o_double_data ;\n ulong length [ 7 ] , len ;\n my_bool is_null [ 7 ] ;\n char llbuf [ 22 ] ;\n MYSQL_BIND my_bind [ 7 ] ;\n char query [ MAX_TEST_QUERY_LENGTH ] ;\n myheader ( \"test_prepare\" ) ;\n rc = mysql_autocommit ( mysql , TRUE ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS my_prepare\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE my_prepare(col1 tinyint, \" \"col2 varchar(15), col3 int, \" \"col4 smallint, col5 bigint, \" \"col6 float, col7 double )\" ) ;\n myquery ( rc ) ;\n strxmov ( query , \"INSERT INTO my_prepare VALUES(?, ?, ?, ?, ?, ?, ?)\" , NullS ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 7 ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_TINY ;\n my_bind [ 0 ] . buffer = ( void * ) & tiny_data ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 1 ] . buffer = ( void * ) str_data ;\n my_bind [ 1 ] . buffer_length = 1000 ;\n my_bind [ 2 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 2 ] . buffer = ( void * ) & int_data ;\n my_bind [ 3 ] . buffer_type = MYSQL_TYPE_SHORT ;\n my_bind [ 3 ] . buffer = ( void * ) & small_data ;\n my_bind [ 4 ] . buffer_type = MYSQL_TYPE_LONGLONG ;\n my_bind [ 4 ] . buffer = ( void * ) & big_data ;\n my_bind [ 5 ] . buffer_type = MYSQL_TYPE_FLOAT ;\n my_bind [ 5 ] . buffer = ( void * ) & real_data ;\n my_bind [ 6 ] . buffer_type = MYSQL_TYPE_DOUBLE ;\n my_bind [ 6 ] . buffer = ( void * ) & double_data ;\n for ( i = 0 ;\n i < ( int ) array_elements ( my_bind ) ;\n i ++ ) {\n my_bind [ i ] . length = & length [ i ] ;\n my_bind [ i ] . is_null = & is_null [ i ] ;\n is_null [ i ] = 0 ;\n }\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n int_data = 320 ;\n small_data = 1867 ;\n big_data = 1000 ;\n real_data = 2 ;\n double_data = 6578.001 ;\n for ( tiny_data = 0 ;\n tiny_data < 100 ;\n tiny_data ++ ) {\n length [ 1 ] = sprintf ( str_data , \"MySQL%d\" , int_data ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n int_data += 25 ;\n small_data += 10 ;\n big_data += 100 ;\n real_data += 1 ;\n double_data += 10.09 ;\n }\n mysql_stmt_close ( stmt ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n rc = my_stmt_result ( \"SELECT * FROM my_prepare\" ) ;\n DIE_UNLESS ( tiny_data == ( char ) rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT * FROM my_prepare\" ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n o_int_data = 320 ;\n o_small_data = 1867 ;\n o_big_data = 1000 ;\n o_real_data = 2 ;\n o_double_data = 6578.001 ;\n for ( o_tiny_data = 0 ;\n o_tiny_data < 100 ;\n o_tiny_data ++ ) {\n len = sprintf ( data , \"MySQL%d\" , o_int_data ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) {\n fprintf ( stdout , \"\\n\" ) ;\n fprintf ( stdout , \"\\n\\t tiny : %d (%lu)\" , tiny_data , length [ 0 ] ) ;\n fprintf ( stdout , \"\\n\\t short : %d (%lu)\" , small_data , length [ 3 ] ) ;\n fprintf ( stdout , \"\\n\\t int : %d (%lu)\" , int_data , length [ 2 ] ) ;\n fprintf ( stdout , \"\\n\\t big : %s (%lu)\" , llstr ( big_data , llbuf ) , length [ 4 ] ) ;\n fprintf ( stdout , \"\\n\\t float : %f (%lu)\" , real_data , length [ 5 ] ) ;\n fprintf ( stdout , \"\\n\\t double : %f (%lu)\" , double_data , length [ 6 ] ) ;\n fprintf ( stdout , \"\\n\\t str : %s (%lu)\" , str_data , length [ 1 ] ) ;\n }\n DIE_UNLESS ( tiny_data == o_tiny_data ) ;\n DIE_UNLESS ( is_null [ 0 ] == 0 ) ;\n DIE_UNLESS ( length [ 0 ] == 1 ) ;\n DIE_UNLESS ( int_data == o_int_data ) ;\n DIE_UNLESS ( length [ 2 ] == 4 ) ;\n DIE_UNLESS ( small_data == o_small_data ) ;\n DIE_UNLESS ( length [ 3 ] == 2 ) ;\n DIE_UNLESS ( big_data == o_big_data ) ;\n DIE_UNLESS ( length [ 4 ] == 8 ) ;\n DIE_UNLESS ( real_data == o_real_data ) ;\n DIE_UNLESS ( length [ 5 ] == 4 ) ;\n DIE_UNLESS ( cmp_double ( & double_data , & o_double_data ) ) ;\n DIE_UNLESS ( length [ 6 ] == 8 ) ;\n DIE_UNLESS ( strcmp ( data , str_data ) == 0 ) ;\n DIE_UNLESS ( length [ 1 ] == len ) ;\n o_int_data += 25 ;\n o_small_data += 10 ;\n o_big_data += 100 ;\n o_real_data += 1 ;\n o_double_data += 10.09 ;\n }\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 19081, "target": 0, "func": "static inline MagickRealType GetPixelLuminance ( const Image * restrict image , const Quantum * restrict pixel ) {\n MagickRealType blue , green , red ;\n if ( image -> colorspace == GRAYColorspace ) return ( ( MagickRealType ) pixel [ image -> channel_map [ GrayPixelChannel ] . offset ] ) ;\n if ( image -> colorspace != sRGBColorspace ) return ( 0.212656f * pixel [ image -> channel_map [ RedPixelChannel ] . offset ] + 0.715158f * pixel [ image -> channel_map [ GreenPixelChannel ] . offset ] + 0.072186f * pixel [ image -> channel_map [ BluePixelChannel ] . offset ] ) ;\n red = DecodePixelGamma ( ( MagickRealType ) pixel [ image -> channel_map [ RedPixelChannel ] . offset ] ) ;\n green = DecodePixelGamma ( ( MagickRealType ) pixel [ image -> channel_map [ GreenPixelChannel ] . offset ] ) ;\n blue = DecodePixelGamma ( ( MagickRealType ) pixel [ image -> channel_map [ BluePixelChannel ] . offset ] ) ;\n return ( 0.212656f * red + 0.715158f * green + 0.072186f * blue ) ;\n }"}
{"idx": 19082, "target": 0, "func": "static inline void e1000e_tx_ring_init ( E1000ECore * core , E1000E_TxRing * txr , int idx ) {\n static const E1000E_RingInfo i [ E1000E_NUM_QUEUES ] = {\n {\n TDBAH , TDBAL , TDLEN , TDH , TDT , 0 }\n , {\n TDBAH1 , TDBAL1 , TDLEN1 , TDH1 , TDT1 , 1 }\n }\n ;\n assert ( idx < ARRAY_SIZE ( i ) ) ;\n txr -> i = & i [ idx ] ;\n txr -> tx = & core -> tx [ idx ] ;\n }"}
{"idx": 19083, "target": 0, "func": "static void generate_preamble ( void ) {\n time_t now ;\n char timestamp [ 128 ] ;\n char preamble [ ] = \"/*\\n\" \" * ntp_keyword.h\\n\" \" * \\n\" \" * NOTE: edit this file with caution, it is generated by keyword-gen.c\\n\" \" *\\t Generated %s UTC diff_ignore_line\\n\" \" *\\n\" \" */\\n\" \"#include \\\"ntp_scanner.h\\\"\\n\" \"#include \\\"ntp_parser.h\\\"\\n\" \"\\n\" ;\n time ( & now ) ;\n if ( ! strftime ( timestamp , sizeof ( timestamp ) , \"%Y-%m-%d %H:%M:%S\" , gmtime ( & now ) ) ) timestamp [ 0 ] = '\\0' ;\n printf ( preamble , timestamp ) ;\n }"}
{"idx": 19084, "target": 0, "func": "Var * find_forced_null_var ( Node * node ) {\n if ( node == NULL ) return NULL ;\n if ( IsA ( node , NullTest ) ) {\n NullTest * expr = ( NullTest * ) node ;\n if ( expr -> nulltesttype == IS_NULL && ! expr -> argisrow ) {\n Var * var = ( Var * ) expr -> arg ;\n if ( var && IsA ( var , Var ) && var -> varlevelsup == 0 ) return var ;\n }\n }\n else if ( IsA ( node , BooleanTest ) ) {\n BooleanTest * expr = ( BooleanTest * ) node ;\n if ( expr -> booltesttype == IS_UNKNOWN ) {\n Var * var = ( Var * ) expr -> arg ;\n if ( var && IsA ( var , Var ) && var -> varlevelsup == 0 ) return var ;\n }\n }\n return NULL ;\n }"}
{"idx": 19085, "target": 0, "func": "static uint32_t PPC_prep_io_readb ( void * opaque , hwaddr addr ) {\n sysctrl_t * sysctrl = opaque ;\n uint32_t ret ;\n addr = prep_IO_address ( sysctrl , addr ) ;\n ret = cpu_inb ( addr ) ;\n return ret ;\n }"}
{"idx": 19086, "target": 0, "func": "static void qemu_dummy_start_vcpu ( CPUState * cpu ) {\n cpu -> thread = g_malloc0 ( sizeof ( QemuThread ) ) ;\n cpu -> halt_cond = g_malloc0 ( sizeof ( QemuCond ) ) ;\n qemu_cond_init ( cpu -> halt_cond ) ;\n qemu_thread_create ( cpu -> thread , qemu_dummy_cpu_thread_fn , cpu , QEMU_THREAD_JOINABLE ) ;\n while ( ! cpu -> created ) {\n qemu_cond_wait ( & qemu_cpu_cond , & qemu_global_mutex ) ;\n }\n }"}
{"idx": 19087, "target": 0, "func": "static void report_copy_progress ( CopyMoveJob * copy_job , SourceInfo * source_info , TransferInfo * transfer_info ) {\n int files_left ;\n goffset total_size ;\n double elapsed , transfer_rate ;\n int remaining_time ;\n guint64 now ;\n CommonJob * job ;\n gboolean is_move ;\n gchar * status ;\n char * details ;\n job = ( CommonJob * ) copy_job ;\n is_move = copy_job -> is_move ;\n now = g_get_monotonic_time ( ) ;\n files_left = source_info -> num_files - transfer_info -> num_files ;\n if ( files_left < 0 ) {\n files_left = 0 ;\n }\n if ( transfer_info -> last_report_time != 0 && ABS ( ( gint64 ) ( transfer_info -> last_report_time - now ) ) < 100 * NSEC_PER_MICROSEC && files_left > 0 ) {\n return ;\n }\n transfer_info -> last_report_time = now ;\n if ( files_left != transfer_info -> last_reported_files_left || transfer_info -> last_reported_files_left == 0 ) {\n transfer_info -> last_reported_files_left = files_left ;\n if ( source_info -> num_files == 1 ) {\n if ( copy_job -> destination != NULL ) {\n if ( is_move ) {\n if ( files_left > 0 ) {\n status = _ ( \"Moving \u201c%B\u201d to \u201c%B\u201d\" ) ;\n }\n else {\n status = _ ( \"Moved \u201c%B\u201d to \u201c%B\u201d\" ) ;\n }\n }\n else {\n if ( files_left > 0 ) {\n status = _ ( \"Copying \u201c%B\u201d to \u201c%B\u201d\" ) ;\n }\n else {\n status = _ ( \"Copied \u201c%B\u201d to \u201c%B\u201d\" ) ;\n }\n }\n nautilus_progress_info_take_status ( job -> progress , f ( status , copy_job -> fake_display_source != NULL ? copy_job -> fake_display_source : ( GFile * ) copy_job -> files -> data , copy_job -> destination ) ) ;\n }\n else {\n if ( files_left > 0 ) {\n status = _ ( \"Duplicating \u201c%B\u201d\" ) ;\n }\n else {\n status = _ ( \"Duplicated \u201c%B\u201d\" ) ;\n }\n nautilus_progress_info_take_status ( job -> progress , f ( status , ( GFile * ) copy_job -> files -> data ) ) ;\n }\n }\n else if ( copy_job -> files != NULL ) {\n if ( copy_job -> destination != NULL ) {\n if ( files_left > 0 ) {\n if ( is_move ) {\n status = ngettext ( \"Moving %'d file to \u201c%B\u201d\" , \"Moving %'d files to \u201c%B\u201d\" , source_info -> num_files ) ;\n }\n else {\n status = ngettext ( \"Copying %'d file to \u201c%B\u201d\" , \"Copying %'d files to \u201c%B\u201d\" , source_info -> num_files ) ;\n }\n nautilus_progress_info_take_status ( job -> progress , f ( status , source_info -> num_files , ( GFile * ) copy_job -> destination ) ) ;\n }\n else {\n if ( is_move ) {\n status = ngettext ( \"Moved %'d file to \u201c%B\u201d\" , \"Moved %'d files to \u201c%B\u201d\" , source_info -> num_files ) ;\n }\n else {\n status = ngettext ( \"Copied %'d file to \u201c%B\u201d\" , \"Copied %'d files to \u201c%B\u201d\" , source_info -> num_files ) ;\n }\n nautilus_progress_info_take_status ( job -> progress , f ( status , source_info -> num_files , ( GFile * ) copy_job -> destination ) ) ;\n }\n }\n else {\n GFile * parent ;\n parent = g_file_get_parent ( copy_job -> files -> data ) ;\n if ( files_left > 0 ) {\n status = ngettext ( \"Duplicating %'d file in \u201c%B\u201d\" , \"Duplicating %'d files in \u201c%B\u201d\" , source_info -> num_files ) ;\n nautilus_progress_info_take_status ( job -> progress , f ( status , source_info -> num_files , parent ) ) ;\n }\n else {\n status = ngettext ( \"Duplicated %'d file in \u201c%B\u201d\" , \"Duplicated %'d files in \u201c%B\u201d\" , source_info -> num_files ) ;\n nautilus_progress_info_take_status ( job -> progress , f ( status , source_info -> num_files , parent ) ) ;\n }\n g_object_unref ( parent ) ;\n }\n }\n }\n total_size = MAX ( source_info -> num_bytes , transfer_info -> num_bytes ) ;\n elapsed = g_timer_elapsed ( job -> time , NULL ) ;\n transfer_rate = 0 ;\n remaining_time = INT_MAX ;\n if ( elapsed > 0 ) {\n transfer_rate = transfer_info -> num_bytes / elapsed ;\n if ( transfer_rate > 0 ) {\n remaining_time = ( total_size - transfer_info -> num_bytes ) / transfer_rate ;\n }\n }\n if ( elapsed < SECONDS_NEEDED_FOR_RELIABLE_TRANSFER_RATE && transfer_rate > 0 ) {\n if ( source_info -> num_files == 1 ) {\n details = f ( _ ( \"%S / %S\" ) , transfer_info -> num_bytes , total_size ) ;\n }\n else {\n if ( files_left > 0 ) {\n details = f ( _ ( \"%'d / %'d\" ) , transfer_info -> num_files + 1 , source_info -> num_files ) ;\n }\n else {\n details = f ( _ ( \"%'d / %'d\" ) , transfer_info -> num_files , source_info -> num_files ) ;\n }\n }\n }\n else {\n if ( source_info -> num_files == 1 ) {\n if ( files_left > 0 ) {\n details = f ( ngettext ( \"%S / %S \\xE2\\x80\\x94 %T left (%S/sec)\" , \"%S / %S \\xE2\\x80\\x94 %T left (%S/sec)\" , seconds_count_format_time_units ( remaining_time ) ) , transfer_info -> num_bytes , total_size , remaining_time , ( goffset ) transfer_rate ) ;\n }\n else {\n details = f ( _ ( \"%S / %S\" ) , transfer_info -> num_bytes , total_size ) ;\n }\n }\n else {\n if ( files_left > 0 ) {\n details = f ( ngettext ( \"%'d / %'d \\xE2\\x80\\x94 %T left (%S/sec)\" , \"%'d / %'d \\xE2\\x80\\x94 %T left (%S/sec)\" , seconds_count_format_time_units ( remaining_time ) ) , transfer_info -> num_files + 1 , source_info -> num_files , remaining_time , ( goffset ) transfer_rate ) ;\n }\n else {\n details = f ( _ ( \"%'d / %'d\" ) , transfer_info -> num_files , source_info -> num_files ) ;\n }\n }\n }\n nautilus_progress_info_take_details ( job -> progress , details ) ;\n if ( elapsed > SECONDS_NEEDED_FOR_APROXIMATE_TRANSFER_RATE ) {\n nautilus_progress_info_set_remaining_time ( job -> progress , remaining_time ) ;\n nautilus_progress_info_set_elapsed_time ( job -> progress , elapsed ) ;\n }\n nautilus_progress_info_set_progress ( job -> progress , transfer_info -> num_bytes , total_size ) ;\n }"}
{"idx": 19088, "target": 0, "func": "static void update_guest_rom_state ( VAPICROMState * s ) {\n read_guest_rom_state ( s ) ;\n s -> rom_state . real_tpr_addr = cpu_to_le32 ( s -> real_tpr_addr ) ;\n s -> rom_state . vcpu_shift = cpu_to_le32 ( VAPIC_CPU_SHIFT ) ;\n write_guest_rom_state ( s ) ;\n }"}
{"idx": 19089, "target": 0, "func": "static MatroskaTrack * matroska_find_track_by_num ( MatroskaDemuxContext * matroska , int num ) {\n MatroskaTrack * tracks = matroska -> tracks . elem ;\n int i ;\n for ( i = 0 ;\n i < matroska -> tracks . nb_elem ;\n i ++ ) if ( tracks [ i ] . num == num ) return & tracks [ i ] ;\n av_log ( matroska -> ctx , AV_LOG_ERROR , \"Invalid track number %d\\n\" , num ) ;\n return NULL ;\n }"}
{"idx": 19090, "target": 0, "func": "void vp9_denoiser_update_frame_info ( VP9_DENOISER * denoiser , YV12_BUFFER_CONFIG src , FRAME_TYPE frame_type , int refresh_alt_ref_frame , int refresh_golden_frame , int refresh_last_frame ) {\n if ( frame_type == KEY_FRAME ) {\n int i ;\n for ( i = 1 ;\n i < MAX_REF_FRAMES ;\n ++ i ) {\n copy_frame ( denoiser -> running_avg_y [ i ] , src ) ;\n }\n }\n else {\n if ( refresh_alt_ref_frame ) {\n copy_frame ( denoiser -> running_avg_y [ ALTREF_FRAME ] , denoiser -> running_avg_y [ INTRA_FRAME ] ) ;\n }\n if ( refresh_golden_frame ) {\n copy_frame ( denoiser -> running_avg_y [ GOLDEN_FRAME ] , denoiser -> running_avg_y [ INTRA_FRAME ] ) ;\n }\n if ( refresh_last_frame ) {\n copy_frame ( denoiser -> running_avg_y [ LAST_FRAME ] , denoiser -> running_avg_y [ INTRA_FRAME ] ) ;\n }\n }\n }"}
{"idx": 19091, "target": 0, "func": "void mainwindow_set_size ( MAIN_WINDOW_REC * window , int height , int resize_lower ) {\n height -= window -> height ;\n if ( height < 0 ) mainwindow_shrink ( window , - height , resize_lower ) ;\n else mainwindow_grow ( window , height , resize_lower ) ;\n }"}
{"idx": 19092, "target": 1, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL ) DECLARE_ASN1_FUNCTIONS ( ASN1_BMPSTRING ) int UTF8_getc ( const unsigned char * str , int len , unsigned long * val ) ;\n int UTF8_putc ( unsigned char * str , int len , unsigned long value ) ;\n DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , ASN1_PRINTABLE ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DIRECTORYSTRING ) DECLARE_ASN1_FUNCTIONS_name ( ASN1_STRING , DISPLAYTEXT ) DECLARE_ASN1_FUNCTIONS ( ASN1_PRINTABLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_T61STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_IA5STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_GENERALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTCTIME ) DECLARE_ASN1_FUNCTIONS ( ASN1_GENERALIZEDTIME )"}
{"idx": 19093, "target": 0, "func": "void ff_block_permute ( int16_t * block , uint8_t * permutation , const uint8_t * scantable , int last ) {\n int i ;\n int16_t temp [ 64 ] ;\n if ( last <= 0 ) return ;\n for ( i = 0 ;\n i <= last ;\n i ++ ) {\n const int j = scantable [ i ] ;\n temp [ j ] = block [ j ] ;\n block [ j ] = 0 ;\n }\n for ( i = 0 ;\n i <= last ;\n i ++ ) {\n const int j = scantable [ i ] ;\n const int perm_j = permutation [ j ] ;\n block [ perm_j ] = temp [ j ] ;\n }\n }"}
{"idx": 19094, "target": 0, "func": "static struct stored_bitmap * store_bitmap ( struct bitmap_index * index , struct ewah_bitmap * root , const unsigned char * sha1 , struct stored_bitmap * xor_with , int flags ) {\n struct stored_bitmap * stored ;\n khiter_t hash_pos ;\n int ret ;\n stored = xmalloc ( sizeof ( struct stored_bitmap ) ) ;\n stored -> root = root ;\n stored -> xor = xor_with ;\n stored -> flags = flags ;\n hashcpy ( stored -> sha1 , sha1 ) ;\n hash_pos = kh_put_sha1 ( index -> bitmaps , stored -> sha1 , & ret ) ;\n if ( ret == 0 ) {\n error ( \"Duplicate entry in bitmap index: %s\" , sha1_to_hex ( sha1 ) ) ;\n return NULL ;\n }\n kh_value ( index -> bitmaps , hash_pos ) = stored ;\n return stored ;\n }"}
{"idx": 19095, "target": 0, "func": "static int dissect_h245_SET_SIZE_1_16_OF_H263VideoModeCombos ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_set_of ( tvb , offset , actx , tree , hf_index , ett_h245_SET_SIZE_1_16_OF_H263VideoModeCombos , SET_SIZE_1_16_OF_H263VideoModeCombos_set_of , 1 , 16 , FALSE ) ;\n return offset ;\n }"}
{"idx": 19096, "target": 0, "func": "static int kvm_put_vcpu_events ( X86CPU * cpu , int level ) {\n CPUState * cs = CPU ( cpu ) ;\n CPUX86State * env = & cpu -> env ;\n struct kvm_vcpu_events events = {\n }\n ;\n if ( ! kvm_has_vcpu_events ( ) ) {\n return 0 ;\n }\n events . exception . injected = ( env -> exception_injected >= 0 ) ;\n events . exception . nr = env -> exception_injected ;\n events . exception . has_error_code = env -> has_error_code ;\n events . exception . error_code = env -> error_code ;\n events . exception . pad = 0 ;\n events . interrupt . injected = ( env -> interrupt_injected >= 0 ) ;\n events . interrupt . nr = env -> interrupt_injected ;\n events . interrupt . soft = env -> soft_interrupt ;\n events . nmi . injected = env -> nmi_injected ;\n events . nmi . pending = env -> nmi_pending ;\n events . nmi . masked = ! ! ( env -> hflags2 & HF2_NMI_MASK ) ;\n events . nmi . pad = 0 ;\n events . sipi_vector = env -> sipi_vector ;\n events . flags = 0 ;\n if ( has_msr_smbase ) {\n events . smi . smm = ! ! ( env -> hflags & HF_SMM_MASK ) ;\n events . smi . smm_inside_nmi = ! ! ( env -> hflags2 & HF2_SMM_INSIDE_NMI_MASK ) ;\n if ( kvm_irqchip_in_kernel ( ) ) {\n events . smi . pending = cs -> interrupt_request & CPU_INTERRUPT_SMI ;\n events . smi . latched_init = cs -> interrupt_request & CPU_INTERRUPT_INIT ;\n cs -> interrupt_request &= ~ ( CPU_INTERRUPT_INIT | CPU_INTERRUPT_SMI ) ;\n }\n else {\n events . smi . pending = 0 ;\n events . smi . latched_init = 0 ;\n }\n if ( ! cpu -> kvm_no_smi_migration ) {\n events . flags |= KVM_VCPUEVENT_VALID_SMM ;\n }\n }\n if ( level >= KVM_PUT_RESET_STATE ) {\n events . flags |= KVM_VCPUEVENT_VALID_NMI_PENDING ;\n if ( env -> mp_state == KVM_MP_STATE_SIPI_RECEIVED ) {\n events . flags |= KVM_VCPUEVENT_VALID_SIPI_VECTOR ;\n }\n }\n return kvm_vcpu_ioctl ( CPU ( cpu ) , KVM_SET_VCPU_EVENTS , & events ) ;\n }"}
{"idx": 19097, "target": 0, "func": "static VALUE ossl_asn1_ ## klass ( int argc , VALUE * argv , VALUE self ) \\ {\n return rb_funcall3 ( cASN1 ## klass , rb_intern ( \"new\" ) , argc , argv ) ;\n }\n OSSL_ASN1_IMPL_FACTORY_METHOD ( Boolean ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Integer ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Enumerated ) OSSL_ASN1_IMPL_FACTORY_METHOD ( BitString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( OctetString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( UTF8String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( NumericString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( PrintableString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( T61String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( VideotexString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( IA5String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( GraphicString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( ISO64String ) OSSL_ASN1_IMPL_FACTORY_METHOD ( GeneralString ) OSSL_ASN1_IMPL_FACTORY_METHOD ( UniversalString )"}
{"idx": 19098, "target": 1, "func": "static int vp3_update_thread_context ( AVCodecContext * dst , const AVCodecContext * src ) {\n Vp3DecodeContext * s = dst -> priv_data , * s1 = src -> priv_data ;\n int qps_changed = 0 , i , err ;\n # define copy_fields ( to , from , start_field , end_field ) memcpy ( & to -> start_field , & from -> start_field , ( char * ) & to -> end_field - ( char * ) & to -> start_field ) if ( ! s1 -> current_frame . data [ 0 ] || s -> width != s1 -> width || s -> height != s1 -> height ) {\n if ( s != s1 ) copy_fields ( s , s1 , golden_frame , current_frame ) ;\n return - 1 ;\n }\n if ( s != s1 ) {\n if ( ! s -> current_frame . data [ 0 ] ) {\n int y_fragment_count , c_fragment_count ;\n s -> avctx = dst ;\n err = allocate_tables ( dst ) ;\n if ( err ) return err ;\n y_fragment_count = s -> fragment_width [ 0 ] * s -> fragment_height [ 0 ] ;\n c_fragment_count = s -> fragment_width [ 1 ] * s -> fragment_height [ 1 ] ;\n memcpy ( s -> motion_val [ 0 ] , s1 -> motion_val [ 0 ] , y_fragment_count * sizeof ( * s -> motion_val [ 0 ] ) ) ;\n memcpy ( s -> motion_val [ 1 ] , s1 -> motion_val [ 1 ] , c_fragment_count * sizeof ( * s -> motion_val [ 1 ] ) ) ;\n }\n copy_fields ( s , s1 , golden_frame , dsp ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n if ( s -> qps [ i ] != s1 -> qps [ 1 ] ) {\n qps_changed = 1 ;\n memcpy ( & s -> qmat [ i ] , & s1 -> qmat [ i ] , sizeof ( s -> qmat [ i ] ) ) ;\n }\n }\n if ( s -> qps [ 0 ] != s1 -> qps [ 0 ] ) memcpy ( & s -> bounding_values_array , & s1 -> bounding_values_array , sizeof ( s -> bounding_values_array ) ) ;\n if ( qps_changed ) copy_fields ( s , s1 , qps , superblock_count ) ;\n # undef copy_fields }\n update_frames ( dst ) ;\n return 0 ;\n }"}
{"idx": 19099, "target": 0, "func": "static void test_signal_pipeloss ( void ) {\n struct event_base * base1 , * base2 ;\n int pipe1 ;\n test_ok = 0 ;\n printf ( \"Signal pipeloss: \" ) ;\n base1 = event_init ( ) ;\n pipe1 = base1 -> sig . ev_signal_pair [ 0 ] ;\n base2 = event_init ( ) ;\n event_base_free ( base2 ) ;\n event_base_free ( base1 ) ;\n if ( close ( pipe1 ) != - 1 || errno != EBADF ) {\n printf ( \"signal pipe not closed. \" ) ;\n test_ok = 0 ;\n }\n else {\n test_ok = 1 ;\n }\n cleanup_test ( ) ;\n }"}
{"idx": 19100, "target": 0, "func": "static int sapi_uwsgi_read_post ( char * buffer , uint count_bytes TSRMLS_DC ) # endif {\n uint read_bytes = 0 ;\n struct wsgi_request * wsgi_req = ( struct wsgi_request * ) SG ( server_context ) ;\n count_bytes = MIN ( count_bytes , wsgi_req -> post_cl - SG ( read_post_bytes ) ) ;\n while ( read_bytes < count_bytes ) {\n ssize_t rlen = 0 ;\n char * buf = uwsgi_request_body_read ( wsgi_req , count_bytes - read_bytes , & rlen ) ;\n if ( buf == uwsgi . empty ) break ;\n if ( buf ) {\n memcpy ( buffer , buf , rlen ) ;\n read_bytes += rlen ;\n continue ;\n }\n break ;\n }\n return read_bytes ;\n }"}
{"idx": 19101, "target": 0, "func": "static void test_derived ( ) {\n MYSQL_STMT * stmt ;\n int rc , i ;\n MYSQL_BIND my_bind [ 1 ] ;\n int32 my_val = 0 ;\n ulong my_length = 0L ;\n my_bool my_null = FALSE ;\n const char * query = \"select count(1) from (select f.id from t1 f where f.id=?) as x\" ;\n myheader ( \"test_derived\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t1 (id int(8), primary key (id)) \\ ENGINE=InnoDB DEFAULT CHARSET=utf8\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t1 values (1)\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 0 ] . buffer = ( void * ) & my_val ;\n my_bind [ 0 ] . length = & my_length ;\n my_bind [ 0 ] . is_null = ( char * ) & my_null ;\n my_val = 1 ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( rc == 1 ) ;\n }\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"DROP TABLE t1\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 19102, "target": 0, "func": "static int write_element_to_buffer ( PyObject * self , buffer_t buffer , int type_byte , PyObject * value , unsigned char check_keys , unsigned char uuid_subtype , unsigned char first_attempt ) {\n int result ;\n if ( Py_EnterRecursiveCall ( \" while encoding an object to BSON \" ) ) return 0 ;\n result = _write_element_to_buffer ( self , buffer , type_byte , value , check_keys , uuid_subtype , first_attempt ) ;\n Py_LeaveRecursiveCall ( ) ;\n return result ;\n }"}
{"idx": 19103, "target": 0, "func": "static UBool _isExtensionSingleton ( const char * s , int32_t len ) {\n if ( len < 0 ) {\n len = ( int32_t ) uprv_strlen ( s ) ;\n }\n if ( len == 1 && ISALPHA ( * s ) && ( uprv_tolower ( * s ) != PRIVATEUSE ) ) {\n return TRUE ;\n }\n return FALSE ;\n }"}
{"idx": 19104, "target": 0, "func": "static MagickBooleanType load_level ( Image * image , XCFDocInfo * inDocInfo , XCFLayerInfo * inLayerInfo , ExceptionInfo * exception ) {\n int destLeft = 0 , destTop = 0 ;\n Image * tile_image ;\n MagickBooleanType status ;\n MagickOffsetType saved_pos , offset , offset2 ;\n register ssize_t i ;\n size_t width , height , ntiles , ntile_rows , ntile_cols , tile_image_width , tile_image_height ;\n width = ReadBlobMSBLong ( image ) ;\n height = ReadBlobMSBLong ( image ) ;\n offset = ( MagickOffsetType ) ReadBlobMSBLong ( image ) ;\n if ( offset == 0 ) return ( MagickTrue ) ;\n ntile_rows = ( height + TILE_HEIGHT - 1 ) / TILE_HEIGHT ;\n ntile_cols = ( width + TILE_WIDTH - 1 ) / TILE_WIDTH ;\n ntiles = ntile_rows * ntile_cols ;\n for ( i = 0 ;\n i < ( ssize_t ) ntiles ;\n i ++ ) {\n status = MagickFalse ;\n if ( offset == 0 ) ThrowBinaryException ( CorruptImageError , \"NotEnoughTiles\" , image -> filename ) ;\n saved_pos = TellBlob ( image ) ;\n offset2 = ( MagickOffsetType ) ReadBlobMSBLong ( image ) ;\n if ( offset2 == 0 ) offset2 = ( MagickOffsetType ) ( offset + TILE_WIDTH * TILE_WIDTH * 4 * 1.5 ) ;\n offset = SeekBlob ( image , offset , SEEK_SET ) ;\n tile_image_width = ( size_t ) ( destLeft == ( int ) ntile_cols - 1 ? ( int ) width % TILE_WIDTH : TILE_WIDTH ) ;\n if ( tile_image_width == 0 ) tile_image_width = TILE_WIDTH ;\n tile_image_height = ( size_t ) ( destTop == ( int ) ntile_rows - 1 ? ( int ) height % TILE_HEIGHT : TILE_HEIGHT ) ;\n if ( tile_image_height == 0 ) tile_image_height = TILE_HEIGHT ;\n tile_image = CloneImage ( inLayerInfo -> image , tile_image_width , tile_image_height , MagickTrue , exception ) ;\n switch ( inDocInfo -> compression ) {\n case COMPRESS_NONE : if ( load_tile ( image , tile_image , inDocInfo , inLayerInfo , ( size_t ) ( offset2 - offset ) , exception ) == 0 ) status = MagickTrue ;\n break ;\n case COMPRESS_RLE : if ( load_tile_rle ( image , tile_image , inDocInfo , inLayerInfo , ( int ) ( offset2 - offset ) , exception ) == 0 ) status = MagickTrue ;\n break ;\n case COMPRESS_ZLIB : ThrowBinaryException ( CoderError , \"ZipCompressNotSupported\" , image -> filename ) case COMPRESS_FRACTAL : ThrowBinaryException ( CoderError , \"FractalCompressNotSupported\" , image -> filename ) }\n ( void ) CompositeImage ( inLayerInfo -> image , tile_image , CopyCompositeOp , MagickTrue , destLeft * TILE_WIDTH , destTop * TILE_HEIGHT , exception ) ;\n tile_image = DestroyImage ( tile_image ) ;\n destLeft ++ ;\n if ( destLeft >= ( int ) ntile_cols ) {\n destLeft = 0 ;\n destTop ++ ;\n }\n if ( status != MagickFalse ) return ( MagickFalse ) ;\n offset = SeekBlob ( image , saved_pos , SEEK_SET ) ;\n offset = ( MagickOffsetType ) ReadBlobMSBLong ( image ) ;\n }\n if ( offset != 0 ) ThrowBinaryException ( CorruptImageError , \"CorruptImage\" , image -> filename ) return ( MagickTrue ) ;\n }"}
{"idx": 19105, "target": 0, "func": "static void dissect_rsvp_scope ( proto_item * ti _U_ , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int type ) {\n int offset2 = offset + 4 ;\n int mylen ;\n mylen = obj_length - 4 ;\n switch ( type ) {\n case 1 : {\n proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"1 - IPv4\" ) ;\n while ( mylen > 0 ) {\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_scope_ipv4_address , tvb , offset2 , 4 , ENC_BIG_ENDIAN ) ;\n offset2 += 4 ;\n mylen -= 4 ;\n }\n break ;\n }\n case 2 : {\n proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"2 - IPv6\" ) ;\n while ( mylen > 0 ) {\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_scope_ipv6_address , tvb , offset2 , 16 , ENC_NA ) ;\n offset2 += 16 ;\n mylen -= 16 ;\n }\n break ;\n }\n default : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"Unknown (%u)\" , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_scope_data , tvb , offset2 , mylen , ENC_NA ) ;\n break ;\n }\n }"}
{"idx": 19106, "target": 0, "func": "static int is_response_status_relevant ( modsec_rec * msr , int status ) {\n char * my_error_msg = NULL ;\n apr_status_t rc ;\n char buf [ 32 ] ;\n if ( ( msr -> txcfg -> auditlog_relevant_regex == NULL ) || ( msr -> txcfg -> auditlog_relevant_regex == NOT_SET_P ) ) {\n return 0 ;\n }\n apr_snprintf ( buf , sizeof ( buf ) , \"%d\" , status ) ;\n rc = msc_regexec ( msr -> txcfg -> auditlog_relevant_regex , buf , strlen ( buf ) , & my_error_msg ) ;\n if ( rc >= 0 ) return 1 ;\n if ( rc == PCRE_ERROR_NOMATCH ) return 0 ;\n msr_log ( msr , 1 , \"Regex processing failed (rc %d): %s\" , rc , my_error_msg ) ;\n return 0 ;\n }"}
{"idx": 19107, "target": 0, "func": "int qemuMonitorTextLoadSnapshot ( qemuMonitorPtr mon , const char * name ) {\n char * cmd = NULL ;\n char * reply = NULL ;\n int ret = - 1 ;\n char * safename ;\n if ( ! ( safename = qemuMonitorEscapeArg ( name ) ) || virAsprintf ( & cmd , \"loadvm \\\"%s\\\"\" , safename ) < 0 ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"failed to restore snapshot using command '%s'\" ) , cmd ) ;\n goto cleanup ;\n }\n if ( strstr ( reply , \"No block device supports snapshots\" ) != NULL ) {\n qemuReportError ( VIR_ERR_OPERATION_INVALID , \"%s\" , _ ( \"this domain does not have a device to load snapshots\" ) ) ;\n goto cleanup ;\n }\n else if ( strstr ( reply , \"Could not find snapshot\" ) != NULL ) {\n qemuReportError ( VIR_ERR_OPERATION_INVALID , _ ( \"the snapshot '%s' does not exist, and was not loaded\" ) , name ) ;\n goto cleanup ;\n }\n else if ( strstr ( reply , \"Snapshots not supported on device\" ) != NULL ) {\n qemuReportError ( VIR_ERR_OPERATION_INVALID , \"%s\" , reply ) ;\n goto cleanup ;\n }\n else if ( strstr ( reply , \"Could not open VM state file\" ) != NULL ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , reply ) ;\n goto cleanup ;\n }\n else if ( strstr ( reply , \"Error\" ) != NULL && strstr ( reply , \"while loading VM state\" ) != NULL ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , reply ) ;\n goto cleanup ;\n }\n else if ( strstr ( reply , \"Error\" ) != NULL && strstr ( reply , \"while activating snapshot on\" ) != NULL ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , reply ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( safename ) ;\n VIR_FREE ( cmd ) ;\n VIR_FREE ( reply ) ;\n return ret ;\n }"}
{"idx": 19108, "target": 0, "func": "static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 19109, "target": 0, "func": "static int fts_body_parser_finish ( struct fts_mail_build_context * ctx ) {\n struct message_block block ;\n int ret = 0 ;\n do {\n i_zero ( & block ) ;\n fts_parser_more ( ctx -> body_parser , & block ) ;\n if ( fts_build_body_block ( ctx , & block , FALSE ) < 0 ) {\n ret = - 1 ;\n break ;\n }\n }\n while ( block . size > 0 ) ;\n if ( fts_parser_deinit ( & ctx -> body_parser ) < 0 ) ret = - 1 ;\n return ret ;\n }"}
{"idx": 19110, "target": 0, "func": "int mi_repair_by_sort ( MI_CHECK * param , register MI_INFO * info , const char * name , int rep_quick , my_bool no_copy_stat ) {\n int got_error ;\n uint i ;\n ulong length ;\n ha_rows start_records ;\n my_off_t new_header_length , del ;\n File new_file ;\n MI_SORT_PARAM sort_param ;\n MYISAM_SHARE * share = info -> s ;\n HA_KEYSEG * keyseg ;\n ulong * rec_per_key_part ;\n char llbuff [ 22 ] ;\n SORT_INFO sort_info ;\n ulonglong UNINIT_VAR ( key_map ) ;\n DBUG_ENTER ( \"mi_repair_by_sort\" ) ;\n start_records = info -> state -> records ;\n got_error = 1 ;\n new_file = - 1 ;\n new_header_length = ( param -> testflag & T_UNPACK ) ? 0 : share -> pack . header_length ;\n if ( ! ( param -> testflag & T_SILENT ) ) {\n printf ( \"- recovering (with sort) MyISAM-table '%s'\\n\" , name ) ;\n printf ( \"Data records: %s\\n\" , llstr ( start_records , llbuff ) ) ;\n }\n param -> testflag |= T_REP ;\n if ( info -> s -> options & ( HA_OPTION_CHECKSUM | HA_OPTION_COMPRESS_RECORD ) ) param -> testflag |= T_CALC_CHECKSUM ;\n bzero ( ( char * ) & sort_info , sizeof ( sort_info ) ) ;\n bzero ( ( char * ) & sort_param , sizeof ( sort_param ) ) ;\n if ( ! ( sort_info . key_block = alloc_key_blocks ( param , ( uint ) param -> sort_key_blocks , share -> base . max_key_block_length ) ) || init_io_cache ( & param -> read_cache , info -> dfile , ( uint ) param -> read_buffer_length , READ_CACHE , share -> pack . header_length , 1 , MYF ( MY_WME ) ) || ( ! rep_quick && init_io_cache ( & info -> rec_cache , info -> dfile , ( uint ) param -> write_buffer_length , WRITE_CACHE , new_header_length , 1 , MYF ( MY_WME | MY_WAIT_IF_FULL ) & param -> myf_rw ) ) ) goto err ;\n sort_info . key_block_end = sort_info . key_block + param -> sort_key_blocks ;\n info -> opt_flag |= WRITE_CACHE_USED ;\n info -> rec_cache . file = info -> dfile ;\n if ( ! mi_alloc_rec_buff ( info , - 1 , & sort_param . record ) || ! mi_alloc_rec_buff ( info , - 1 , & sort_param . rec_buff ) ) {\n mi_check_print_error ( param , \"Not enough memory for extra record\" ) ;\n goto err ;\n }\n if ( ! rep_quick ) {\n if ( ( new_file = mysql_file_create ( mi_key_file_datatmp , fn_format ( param -> temp_filename , share -> data_file_name , \"\" , DATA_TMP_EXT , 2 + 4 ) , 0 , param -> tmpfile_createflag , MYF ( 0 ) ) ) < 0 ) {\n mi_check_print_error ( param , \"Can't create new tempfile: '%s'\" , param -> temp_filename ) ;\n goto err ;\n }\n if ( new_header_length && filecopy ( param , new_file , info -> dfile , 0L , new_header_length , \"datafile-header\" ) ) goto err ;\n if ( param -> testflag & T_UNPACK ) {\n share -> options &= ~ HA_OPTION_COMPRESS_RECORD ;\n mi_int2store ( share -> state . header . options , share -> options ) ;\n }\n share -> state . dellink = HA_OFFSET_ERROR ;\n info -> rec_cache . file = new_file ;\n }\n info -> update = ( short ) ( HA_STATE_CHANGED | HA_STATE_ROW_CHANGED ) ;\n mi_drop_all_indexes ( param , info , FALSE ) ;\n key_map = share -> state . key_map ;\n if ( param -> testflag & T_CREATE_MISSING_KEYS ) {\n key_map = ~ key_map ;\n }\n sort_info . info = info ;\n sort_info . param = param ;\n set_data_file_type ( & sort_info , share ) ;\n sort_param . filepos = new_header_length ;\n sort_info . dupp = 0 ;\n sort_info . buff = 0 ;\n param -> read_cache . end_of_file = sort_info . filelength = mysql_file_seek ( param -> read_cache . file , 0L , MY_SEEK_END , MYF ( 0 ) ) ;\n sort_param . wordlist = NULL ;\n init_alloc_root ( & sort_param . wordroot , FTPARSER_MEMROOT_ALLOC_SIZE , 0 ) ;\n if ( share -> data_file_type == DYNAMIC_RECORD ) length = max ( share -> base . min_pack_length + 1 , share -> base . min_block_length ) ;\n else if ( share -> data_file_type == COMPRESSED_RECORD ) length = share -> base . min_block_length ;\n else length = share -> base . pack_reclength ;\n sort_info . max_records = ( ( param -> testflag & T_CREATE_MISSING_KEYS ) ? info -> state -> records : ( ha_rows ) ( sort_info . filelength / length + 1 ) ) ;\n sort_param . key_cmp = sort_key_cmp ;\n sort_param . lock_in_memory = lock_memory ;\n sort_param . tmpdir = param -> tmpdir ;\n sort_param . sort_info = & sort_info ;\n sort_param . fix_datafile = ( my_bool ) ( ! rep_quick ) ;\n sort_param . master = 1 ;\n del = info -> state -> del ;\n param -> glob_crc = 0 ;\n if ( param -> testflag & T_CALC_CHECKSUM ) sort_param . calc_checksum = 1 ;\n rec_per_key_part = param -> rec_per_key_part ;\n for ( sort_param . key = 0 ;\n sort_param . key < share -> base . keys ;\n rec_per_key_part += sort_param . keyinfo -> keysegs , sort_param . key ++ ) {\n sort_param . read_cache = param -> read_cache ;\n sort_param . keyinfo = share -> keyinfo + sort_param . key ;\n sort_param . seg = sort_param . keyinfo -> seg ;\n if ( ! mi_is_key_active ( key_map , sort_param . key ) ) {\n memcpy ( ( char * ) rec_per_key_part , ( char * ) ( share -> state . rec_per_key_part + ( uint ) ( rec_per_key_part - param -> rec_per_key_part ) ) , sort_param . keyinfo -> keysegs * sizeof ( * rec_per_key_part ) ) ;\n DBUG_PRINT ( \"repair\" , ( \"skipping seemingly disabled index #: %u\" , sort_param . key ) ) ;\n continue ;\n }\n if ( ( ! ( param -> testflag & T_SILENT ) ) ) printf ( \"- Fixing index %d\\n\" , sort_param . key + 1 ) ;\n sort_param . max_pos = sort_param . pos = share -> pack . header_length ;\n keyseg = sort_param . seg ;\n bzero ( ( char * ) sort_param . unique , sizeof ( sort_param . unique ) ) ;\n sort_param . key_length = share -> rec_reflength ;\n for ( i = 0 ;\n keyseg [ i ] . type != HA_KEYTYPE_END ;\n i ++ ) {\n sort_param . key_length += keyseg [ i ] . length ;\n if ( keyseg [ i ] . flag & HA_SPACE_PACK ) sort_param . key_length += get_pack_length ( keyseg [ i ] . length ) ;\n if ( keyseg [ i ] . flag & ( HA_BLOB_PART | HA_VAR_LENGTH_PART ) ) sort_param . key_length += 2 + test ( keyseg [ i ] . length >= 127 ) ;\n if ( keyseg [ i ] . flag & HA_NULL_PART ) sort_param . key_length ++ ;\n }\n info -> state -> records = info -> state -> del = share -> state . split = 0 ;\n info -> state -> empty = 0 ;\n if ( sort_param . keyinfo -> flag & HA_FULLTEXT ) {\n uint ft_max_word_len_for_sort = FT_MAX_WORD_LEN_FOR_SORT * sort_param . keyinfo -> seg -> charset -> mbmaxlen ;\n sort_param . key_length += ft_max_word_len_for_sort - HA_FT_MAXBYTELEN ;\n if ( sort_param . keyinfo -> parser == & ft_default_parser ) {\n sort_info . max_records = ( ha_rows ) ( sort_info . filelength / ft_min_word_len + 1 ) ;\n }\n else {\n sort_info . max_records = 10 * max ( param -> sort_buffer_length , MIN_SORT_BUFFER ) / sort_param . key_length ;\n }\n sort_param . key_read = sort_ft_key_read ;\n sort_param . key_write = sort_ft_key_write ;\n }\n else {\n sort_param . key_read = sort_key_read ;\n sort_param . key_write = sort_key_write ;\n }\n if ( _create_index_by_sort ( & sort_param , ( my_bool ) ( ! ( param -> testflag & T_VERBOSE ) ) , param -> sort_buffer_length ) ) {\n param -> retry_repair = 1 ;\n goto err ;\n }\n sort_param . calc_checksum = 0 ;\n free_root ( & sort_param . wordroot , MYF ( 0 ) ) ;\n sort_info . max_records = ( ha_rows ) info -> state -> records ;\n if ( param -> testflag & T_STATISTICS ) update_key_parts ( sort_param . keyinfo , rec_per_key_part , sort_param . unique , param -> stats_method == MI_STATS_METHOD_IGNORE_NULLS ? sort_param . notnull : NULL , ( ulonglong ) info -> state -> records ) ;\n mi_set_key_active ( share -> state . key_map , sort_param . key ) ;\n DBUG_PRINT ( \"repair\" , ( \"set enabled index #: %u\" , sort_param . key ) ) ;\n if ( sort_param . fix_datafile ) {\n param -> read_cache . end_of_file = sort_param . filepos ;\n if ( write_data_suffix ( & sort_info , 1 ) || end_io_cache ( & info -> rec_cache ) ) goto err ;\n if ( param -> testflag & T_SAFE_REPAIR ) {\n if ( info -> state -> records + 1 < start_records ) {\n info -> state -> records = start_records ;\n goto err ;\n }\n }\n share -> state . state . data_file_length = info -> state -> data_file_length = sort_param . filepos ;\n share -> state . version = ( ulong ) time ( ( time_t * ) 0 ) ;\n mysql_file_close ( info -> dfile , MYF ( 0 ) ) ;\n info -> dfile = new_file ;\n share -> data_file_type = sort_info . new_data_file_type ;\n share -> pack . header_length = ( ulong ) new_header_length ;\n sort_param . fix_datafile = 0 ;\n }\n else info -> state -> data_file_length = sort_param . max_pos ;\n param -> read_cache . file = info -> dfile ;\n reinit_io_cache ( & param -> read_cache , READ_CACHE , share -> pack . header_length , 1 , 1 ) ;\n }\n if ( param -> testflag & T_WRITE_LOOP ) {\n ( void ) fputs ( \" \\r\" , stdout ) ;\n ( void ) fflush ( stdout ) ;\n }\n if ( rep_quick && del + sort_info . dupp != info -> state -> del ) {\n mi_check_print_error ( param , \"Couldn't fix table with quick recovery: Found wrong number of deleted records\" ) ;\n mi_check_print_error ( param , \"Run recovery again without -q\" ) ;\n got_error = 1 ;\n param -> retry_repair = 1 ;\n param -> testflag |= T_RETRY_WITHOUT_QUICK ;\n goto err ;\n }\n if ( rep_quick & T_FORCE_UNIQUENESS ) {\n my_off_t skr = info -> state -> data_file_length + ( share -> options & HA_OPTION_COMPRESS_RECORD ? MEMMAP_EXTRA_MARGIN : 0 ) ;\n # ifdef USE_RELOC if ( share -> data_file_type == STATIC_RECORD && skr < share -> base . reloc * share -> base . min_pack_length ) skr = share -> base . reloc * share -> base . min_pack_length ;\n # endif if ( skr != sort_info . filelength ) if ( mysql_file_chsize ( info -> dfile , skr , 0 , MYF ( 0 ) ) ) mi_check_print_warning ( param , \"Can't change size of datafile, error: %d\" , my_errno ) ;\n }\n if ( param -> testflag & T_CALC_CHECKSUM ) info -> state -> checksum = param -> glob_crc ;\n if ( mysql_file_chsize ( share -> kfile , info -> state -> key_file_length , 0 , MYF ( 0 ) ) ) mi_check_print_warning ( param , \"Can't change size of indexfile, error: %d\" , my_errno ) ;\n if ( ! ( param -> testflag & T_SILENT ) ) {\n if ( start_records != info -> state -> records ) printf ( \"Data records: %s\\n\" , llstr ( info -> state -> records , llbuff ) ) ;\n if ( sort_info . dupp ) mi_check_print_warning ( param , \"%s records have been removed\" , llstr ( sort_info . dupp , llbuff ) ) ;\n }\n got_error = 0 ;\n if ( & share -> state . state != info -> state ) memcpy ( & share -> state . state , info -> state , sizeof ( * info -> state ) ) ;\n err : got_error |= flush_blocks ( param , share -> key_cache , share -> kfile ) ;\n ( void ) end_io_cache ( & info -> rec_cache ) ;\n if ( ! got_error ) {\n if ( new_file >= 0 ) {\n myf flags = 0 ;\n if ( param -> testflag & T_BACKUP_DATA ) flags |= MY_REDEL_MAKE_BACKUP ;\n if ( no_copy_stat ) flags |= MY_REDEL_NO_COPY_STAT ;\n mysql_file_close ( new_file , MYF ( 0 ) ) ;\n info -> dfile = new_file = - 1 ;\n if ( change_to_newfile ( share -> data_file_name , MI_NAME_DEXT , DATA_TMP_EXT , flags ) || mi_open_datafile ( info , share , name , - 1 ) ) got_error = 1 ;\n }\n }\n if ( got_error ) {\n if ( ! param -> error_printed ) mi_check_print_error ( param , \"%d when fixing table\" , my_errno ) ;\n if ( new_file >= 0 ) {\n ( void ) mysql_file_close ( new_file , MYF ( 0 ) ) ;\n ( void ) mysql_file_delete ( mi_key_file_datatmp , param -> temp_filename , MYF ( MY_WME ) ) ;\n if ( info -> dfile == new_file ) if ( unlikely ( mi_open_datafile ( info , share , name , - 1 ) ) ) param -> retry_repair = 0 ;\n }\n mi_mark_crashed_on_repair ( info ) ;\n }\n else if ( key_map == share -> state . key_map ) share -> state . changed &= ~ STATE_NOT_OPTIMIZED_KEYS ;\n share -> state . changed |= STATE_NOT_SORTED_PAGES ;\n my_free ( mi_get_rec_buff_ptr ( info , sort_param . rec_buff ) ) ;\n my_free ( mi_get_rec_buff_ptr ( info , sort_param . record ) ) ;\n my_free ( sort_info . key_block ) ;\n my_free ( sort_info . ft_buf ) ;\n my_free ( sort_info . buff ) ;\n ( void ) end_io_cache ( & param -> read_cache ) ;\n info -> opt_flag &= ~ ( READ_CACHE_USED | WRITE_CACHE_USED ) ;\n if ( ! got_error && ( param -> testflag & T_UNPACK ) ) {\n share -> state . header . options [ 0 ] &= ( uchar ) ~ HA_OPTION_COMPRESS_RECORD ;\n share -> pack . header_length = 0 ;\n }\n DBUG_RETURN ( got_error ) ;\n }"}
{"idx": 19111, "target": 0, "func": "int lock_file ( MI_CHECK * param , File file , my_off_t start , int lock_type , const char * filetype , const char * filename ) {\n if ( my_lock ( file , lock_type , start , F_TO_EOF , param -> testflag & T_WAIT_FOREVER ? MYF ( MY_SEEK_NOT_DONE ) : MYF ( MY_SEEK_NOT_DONE | MY_DONT_WAIT ) ) ) {\n mi_check_print_error ( param , \" %d when locking %s '%s'\" , my_errno , filetype , filename ) ;\n param -> error_printed = 2 ;\n return 1 ;\n }\n return 0 ;\n }"}
{"idx": 19112, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize ) ;\n DECL_PIOCTL ( PGetCacheSize ) ;\n DECL_PIOCTL ( PRemoveCallBack ) ;\n DECL_PIOCTL ( PNewCell ) ;\n DECL_PIOCTL ( PNewAlias ) ;\n DECL_PIOCTL ( PListCells ) ;\n DECL_PIOCTL ( PListAliases ) ;\n DECL_PIOCTL ( PRemoveMount ) ;\n DECL_PIOCTL ( PGetCellStatus ) ;\n DECL_PIOCTL ( PSetCellStatus ) ;\n DECL_PIOCTL ( PFlushVolumeData ) ;\n DECL_PIOCTL ( PFlushAllVolumeData ) ;\n DECL_PIOCTL ( PGetVnodeXStatus ) ;\n DECL_PIOCTL ( PGetVnodeXStatus2 ) ;\n DECL_PIOCTL ( PSetSysName ) ;\n DECL_PIOCTL ( PSetSPrefs ) ;\n DECL_PIOCTL ( PSetSPrefs33 ) ;\n DECL_PIOCTL ( PGetSPrefs ) ;\n DECL_PIOCTL ( PExportAfs ) ;\n DECL_PIOCTL ( PGag ) ;\n DECL_PIOCTL ( PTwiddleRx ) ;\n DECL_PIOCTL ( PGetInitParams ) ;\n DECL_PIOCTL ( PGetRxkcrypt ) ;\n DECL_PIOCTL ( PSetRxkcrypt ) ;\n DECL_PIOCTL ( PGetCPrefs )"}
{"idx": 19113, "target": 0, "func": "static ssize_t usbdev_read ( struct file * file , char __user * buf , size_t nbytes , loff_t * ppos ) {\n struct usb_dev_state * ps = file -> private_data ;\n struct usb_device * dev = ps -> dev ;\n ssize_t ret = 0 ;\n unsigned len ;\n loff_t pos ;\n int i ;\n pos = * ppos ;\n usb_lock_device ( dev ) ;\n if ( ! connected ( ps ) ) {\n ret = - ENODEV ;\n goto err ;\n }\n else if ( pos < 0 ) {\n ret = - EINVAL ;\n goto err ;\n }\n if ( pos < sizeof ( struct usb_device_descriptor ) ) {\n struct usb_device_descriptor temp_desc ;\n memcpy ( & temp_desc , & dev -> descriptor , sizeof ( dev -> descriptor ) ) ;\n le16_to_cpus ( & temp_desc . bcdUSB ) ;\n le16_to_cpus ( & temp_desc . idVendor ) ;\n le16_to_cpus ( & temp_desc . idProduct ) ;\n le16_to_cpus ( & temp_desc . bcdDevice ) ;\n len = sizeof ( struct usb_device_descriptor ) - pos ;\n if ( len > nbytes ) len = nbytes ;\n if ( copy_to_user ( buf , ( ( char * ) & temp_desc ) + pos , len ) ) {\n ret = - EFAULT ;\n goto err ;\n }\n * ppos += len ;\n buf += len ;\n nbytes -= len ;\n ret += len ;\n }\n pos = sizeof ( struct usb_device_descriptor ) ;\n for ( i = 0 ;\n nbytes && i < dev -> descriptor . bNumConfigurations ;\n i ++ ) {\n struct usb_config_descriptor * config = ( struct usb_config_descriptor * ) dev -> rawdescriptors [ i ] ;\n unsigned int length = le16_to_cpu ( config -> wTotalLength ) ;\n if ( * ppos < pos + length ) {\n unsigned alloclen = le16_to_cpu ( dev -> config [ i ] . desc . wTotalLength ) ;\n len = length - ( * ppos - pos ) ;\n if ( len > nbytes ) len = nbytes ;\n if ( alloclen > ( * ppos - pos ) ) {\n alloclen -= ( * ppos - pos ) ;\n if ( copy_to_user ( buf , dev -> rawdescriptors [ i ] + ( * ppos - pos ) , min ( len , alloclen ) ) ) {\n ret = - EFAULT ;\n goto err ;\n }\n }\n * ppos += len ;\n buf += len ;\n nbytes -= len ;\n ret += len ;\n }\n pos += length ;\n }\n err : usb_unlock_device ( dev ) ;\n return ret ;\n }"}
{"idx": 19114, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ContentFaviconDriverTest , AssociateIconWithInitialPageIconDespiteReplaceState ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n GURL url = embedded_test_server ( ) -> GetURL ( \"/favicon/replacestate_with_favicon.html\" ) ;\n GURL replacestate_url = embedded_test_server ( ) -> GetURL ( \"/favicon/replacestate_with_favicon_replaced.html\" ) ;\n PendingTaskWaiter waiter ( web_contents ( ) ) ;\n waiter . AlsoRequireUrl ( replacestate_url ) ;\n ui_test_utils : : NavigateToURLWithDisposition ( browser ( ) , url , WindowOpenDisposition : : CURRENT_TAB , ui_test_utils : : BROWSER_TEST_NONE ) ;\n waiter . Wait ( ) ;\n EXPECT_NE ( nullptr , GetFaviconForPageURL ( url , favicon_base : : IconType : : kFavicon ) . bitmap_data ) ;\n EXPECT_NE ( nullptr , GetFaviconForPageURL ( replacestate_url , favicon_base : : IconType : : kFavicon ) . bitmap_data ) ;\n }"}
{"idx": 19115, "target": 0, "func": "static Gif_Stream * read_gif ( Gif_Reader * grr , int read_flags , const char * landmark , Gif_ReadErrorHandler handler ) {\n Gif_Stream * gfs ;\n Gif_Image * gfi ;\n Gif_Context gfc ;\n int unknown_block_type = 0 ;\n if ( gifgetc ( grr ) != 'G' || gifgetc ( grr ) != 'I' || gifgetc ( grr ) != 'F' ) return 0 ;\n ( void ) gifgetc ( grr ) ;\n ( void ) gifgetc ( grr ) ;\n ( void ) gifgetc ( grr ) ;\n gfs = Gif_NewStream ( ) ;\n gfi = Gif_NewImage ( ) ;\n gfc . stream = gfs ;\n gfc . prefix = Gif_NewArray ( Gif_Code , GIF_MAX_CODE ) ;\n gfc . suffix = Gif_NewArray ( uint8_t , GIF_MAX_CODE ) ;\n gfc . length = Gif_NewArray ( uint16_t , GIF_MAX_CODE ) ;\n gfc . handler = handler ;\n gfc . gfi = gfi ;\n gfc . errors [ 0 ] = gfc . errors [ 1 ] = 0 ;\n if ( ! gfs || ! gfi || ! gfc . prefix || ! gfc . suffix || ! gfc . length ) goto done ;\n gfs -> landmark = landmark ;\n GIF_DEBUG ( ( \"\\nGIF \" ) ) ;\n if ( ! read_logical_screen_descriptor ( gfs , grr ) ) goto done ;\n GIF_DEBUG ( ( \"logscrdesc \" ) ) ;\n while ( ! gifeof ( grr ) ) {\n uint8_t block = gifgetbyte ( grr ) ;\n switch ( block ) {\n case ',' : GIF_DEBUG ( ( \"imageread %d \" , gfs -> nimages ) ) ;\n gfi -> identifier = last_name ;\n last_name = 0 ;\n if ( ! Gif_AddImage ( gfs , gfi ) ) goto done ;\n else if ( ! read_image ( grr , & gfc , gfi , read_flags ) ) {\n Gif_RemoveImage ( gfs , gfs -> nimages - 1 ) ;\n gfi = 0 ;\n goto done ;\n }\n gfc . gfi = gfi = Gif_NewImage ( ) ;\n if ( ! gfi ) goto done ;\n break ;\n case ';\n' : GIF_DEBUG ( ( \"term\\n\" ) ) ;\n goto done ;\n case '!' : block = gifgetbyte ( grr ) ;\n GIF_DEBUG ( ( \"ext(0x%02X) \" , block ) ) ;\n switch ( block ) {\n case 0xF9 : read_graphic_control_extension ( & gfc , gfi , grr ) ;\n break ;\n case 0xCE : last_name = suck_data ( last_name , 0 , grr ) ;\n break ;\n case 0xFE : if ( ! read_comment_extension ( gfi , grr ) ) goto done ;\n break ;\n case 0xFF : read_application_extension ( & gfc , grr ) ;\n break ;\n default : read_unknown_extension ( & gfc , grr , block , 0 , 0 ) ;\n break ;\n }\n break ;\n default : if ( ! unknown_block_type ) {\n char buf [ 256 ] ;\n sprintf ( buf , \"unknown block type %d at file offset %u\" , block , grr -> pos - 1 ) ;\n gif_read_error ( & gfc , 1 , buf ) ;\n unknown_block_type = 1 ;\n }\n break ;\n }\n }\n done : if ( gfs && gfi ) {\n Gif_Extension * gfex ;\n gfs -> end_comment = gfi -> comment ;\n gfi -> comment = 0 ;\n gfs -> end_extension_list = gfi -> extension_list ;\n gfi -> extension_list = 0 ;\n for ( gfex = gfs -> end_extension_list ;\n gfex ;\n gfex = gfex -> next ) gfex -> image = NULL ;\n }\n Gif_DeleteImage ( gfi ) ;\n Gif_DeleteArray ( last_name ) ;\n Gif_DeleteArray ( gfc . prefix ) ;\n Gif_DeleteArray ( gfc . suffix ) ;\n Gif_DeleteArray ( gfc . length ) ;\n gfc . gfi = 0 ;\n if ( gfs ) gfs -> errors = gfc . errors [ 1 ] ;\n if ( gfs && gfc . errors [ 1 ] == 0 && ! ( read_flags & GIF_READ_TRAILING_GARBAGE_OK ) && ! grr -> eofer ( grr ) ) gif_read_error ( & gfc , 0 , \"trailing garbage after GIF ignored\" ) ;\n gif_read_error ( & gfc , - 1 , 0 ) ;\n return gfs ;\n }"}
{"idx": 19116, "target": 0, "func": "static int dump_all_tablespaces ( ) {\n return dump_tablespaces ( NULL ) ;\n }"}
{"idx": 19117, "target": 0, "func": "static int qemuAgentCheckError ( virJSONValuePtr cmd , virJSONValuePtr reply ) {\n if ( virJSONValueObjectHasKey ( reply , \"error\" ) ) {\n virJSONValuePtr error = virJSONValueObjectGet ( reply , \"error\" ) ;\n char * cmdstr = virJSONValueToString ( cmd , false ) ;\n char * replystr = virJSONValueToString ( reply , false ) ;\n VIR_DEBUG ( \"unable to execute QEMU agent command %s: %s\" , NULLSTR ( cmdstr ) , NULLSTR ( replystr ) ) ;\n if ( ! error ) virReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"unable to execute QEMU agent command '%s'\" ) , qemuAgentCommandName ( cmd ) ) ;\n else virReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"unable to execute QEMU agent command '%s': %s\" ) , qemuAgentCommandName ( cmd ) , qemuAgentStringifyError ( error ) ) ;\n VIR_FREE ( cmdstr ) ;\n VIR_FREE ( replystr ) ;\n return - 1 ;\n }\n else if ( ! virJSONValueObjectHasKey ( reply , \"return\" ) ) {\n char * cmdstr = virJSONValueToString ( cmd , false ) ;\n char * replystr = virJSONValueToString ( reply , false ) ;\n VIR_DEBUG ( \"Neither 'return' nor 'error' is set in the JSON reply %s: %s\" , NULLSTR ( cmdstr ) , NULLSTR ( replystr ) ) ;\n virReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"unable to execute QEMU agent command '%s'\" ) , qemuAgentCommandName ( cmd ) ) ;\n VIR_FREE ( cmdstr ) ;\n VIR_FREE ( replystr ) ;\n return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 19118, "target": 0, "func": "static int dissect_pcp_message_creds ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , int offset ) {\n guint32 creds_length ;\n guint32 i ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"[%s]\" , val_to_str ( PCP_PDU_CREDS , packettypenames , \"Unknown Type:0x%02x\" ) ) ;\n proto_tree_add_item ( tree , hf_pcp_creds_number_of , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n creds_length = tvb_get_ntohl ( tvb , offset ) ;\n offset += 4 ;\n for ( i = 0 ;\n i < creds_length ;\n i ++ ) {\n proto_tree_add_item ( tree , hf_pcp_creds_type , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset += 1 ;\n proto_tree_add_item ( tree , hf_pcp_creds_version , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset += 1 ;\n offset = dissect_pcp_partial_features ( tvb , pinfo , tree , offset ) ;\n }\n return offset ;\n }"}
{"idx": 19119, "target": 0, "func": "static inline int client_to_server ( packet_info * pinfo ) {\n return pinfo -> destport == PCP_PORT || pinfo -> destport == PMPROXY_PORT ;\n }"}
{"idx": 19120, "target": 0, "func": "static int dissect_pvfs_uint64 ( tvbuff_t * tvb , proto_tree * tree , int offset , int hfindex , guint64 * pvalue ) {\n guint64 val ;\n val = tvb_get_letoh64 ( tvb , offset ) ;\n proto_tree_add_uint64 ( tree , hfindex , tvb , offset , 8 , val ) ;\n if ( pvalue ) * pvalue = val ;\n return offset + 8 ;\n }"}
{"idx": 19121, "target": 0, "func": "inline static bool is_negative_caching_appropriate ( HttpTransact : : State * s ) {\n if ( ! s -> txn_conf -> negative_caching_enabled || ! s -> hdr_info . server_response . valid ( ) ) {\n return false ;\n }\n switch ( s -> hdr_info . server_response . status_get ( ) ) {\n case HTTP_STATUS_NO_CONTENT : case HTTP_STATUS_USE_PROXY : case HTTP_STATUS_BAD_REQUEST : case HTTP_STATUS_FORBIDDEN : case HTTP_STATUS_NOT_FOUND : case HTTP_STATUS_METHOD_NOT_ALLOWED : case HTTP_STATUS_REQUEST_URI_TOO_LONG : case HTTP_STATUS_INTERNAL_SERVER_ERROR : case HTTP_STATUS_NOT_IMPLEMENTED : case HTTP_STATUS_BAD_GATEWAY : case HTTP_STATUS_SERVICE_UNAVAILABLE : case HTTP_STATUS_GATEWAY_TIMEOUT : return true ;\n default : break ;\n }\n return false ;\n }"}
{"idx": 19122, "target": 0, "func": "void bn_mul_comba4 ( BN_ULONG * r , BN_ULONG * a , BN_ULONG * b ) {\n r [ 4 ] = bn_mul_words ( & ( r [ 0 ] ) , a , 4 , b [ 0 ] ) ;\n r [ 5 ] = bn_mul_add_words ( & ( r [ 1 ] ) , a , 4 , b [ 1 ] ) ;\n r [ 6 ] = bn_mul_add_words ( & ( r [ 2 ] ) , a , 4 , b [ 2 ] ) ;\n r [ 7 ] = bn_mul_add_words ( & ( r [ 3 ] ) , a , 4 , b [ 3 ] ) ;\n }"}
{"idx": 19123, "target": 0, "func": "static int dissect_nlm_cancel ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , int version , rpc_call_info_value * rpc_call ) {\n if ( nlm_match_msgres ) {\n if ( rpc_call -> proc == 8 ) {\n if ( ( ! pinfo -> fd -> flags . visited ) ) {\n nlm_register_unmatched_msg ( pinfo , tvb , offset ) ;\n }\n else {\n nlm_print_msgres_request ( pinfo , tree , tvb ) ;\n }\n if ( nfs_fhandle_reqrep_matching ) {\n nlm_match_fhandle_request ( pinfo , tree ) ;\n }\n }\n }\n offset = dissect_rpc_data ( tvb , tree , hf_nlm_cookie , offset ) ;\n offset = dissect_rpc_bool ( tvb , tree , hf_nlm_block , offset ) ;\n offset = dissect_rpc_bool ( tvb , tree , hf_nlm_exclusive , offset ) ;\n offset = dissect_lock ( tvb , pinfo , tree , version , offset , rpc_call ) ;\n return offset ;\n }"}
{"idx": 19124, "target": 1, "func": "static int mimic_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n int swap_buf_size = buf_size - MIMIC_HEADER_SIZE ;\n MimicContext * ctx = avctx -> priv_data ;\n GetByteContext gb ;\n int is_pframe ;\n int width , height ;\n int quality , num_coeffs ;\n int res ;\n if ( buf_size <= MIMIC_HEADER_SIZE ) {\n av_log ( avctx , AV_LOG_ERROR , \"insufficient data\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n bytestream2_init ( & gb , buf , MIMIC_HEADER_SIZE ) ;\n bytestream2_skip ( & gb , 2 ) ;\n quality = bytestream2_get_le16u ( & gb ) ;\n width = bytestream2_get_le16u ( & gb ) ;\n height = bytestream2_get_le16u ( & gb ) ;\n bytestream2_skip ( & gb , 4 ) ;\n is_pframe = bytestream2_get_le32u ( & gb ) ;\n num_coeffs = bytestream2_get_byteu ( & gb ) ;\n bytestream2_skip ( & gb , 3 ) ;\n if ( ! ctx -> avctx ) {\n int i ;\n if ( ! ( width == 160 && height == 120 ) && ! ( width == 320 && height == 240 ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid width/height!\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n ctx -> avctx = avctx ;\n avctx -> width = width ;\n avctx -> height = height ;\n avctx -> pix_fmt = AV_PIX_FMT_YUV420P ;\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n ctx -> num_vblocks [ i ] = - ( ( - height ) >> ( 3 + ! ! i ) ) ;\n ctx -> num_hblocks [ i ] = width >> ( 3 + ! ! i ) ;\n }\n }\n else if ( width != ctx -> avctx -> width || height != ctx -> avctx -> height ) {\n av_log_missing_feature ( avctx , \"resolution changing\" , 1 ) ;\n return AVERROR_PATCHWELCOME ;\n }\n if ( is_pframe && ! ctx -> buf_ptrs [ ctx -> prev_index ] . data [ 0 ] ) {\n av_log ( avctx , AV_LOG_ERROR , \"decoding must start with keyframe\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n ctx -> buf_ptrs [ ctx -> cur_index ] . reference = 1 ;\n ctx -> buf_ptrs [ ctx -> cur_index ] . pict_type = is_pframe ? AV_PICTURE_TYPE_P : AV_PICTURE_TYPE_I ;\n if ( ( res = ff_thread_get_buffer ( avctx , & ctx -> buf_ptrs [ ctx -> cur_index ] ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return res ;\n }\n ctx -> next_prev_index = ctx -> cur_index ;\n ctx -> next_cur_index = ( ctx -> cur_index - 1 ) & 15 ;\n prepare_avpic ( ctx , & ctx -> flipped_ptrs [ ctx -> cur_index ] , & ctx -> buf_ptrs [ ctx -> cur_index ] ) ;\n ff_thread_finish_setup ( avctx ) ;\n av_fast_padded_malloc ( & ctx -> swap_buf , & ctx -> swap_buf_size , swap_buf_size ) ;\n if ( ! ctx -> swap_buf ) return AVERROR ( ENOMEM ) ;\n ctx -> dsp . bswap_buf ( ctx -> swap_buf , ( const uint32_t * ) ( buf + MIMIC_HEADER_SIZE ) , swap_buf_size >> 2 ) ;\n init_get_bits ( & ctx -> gb , ctx -> swap_buf , swap_buf_size << 3 ) ;\n res = decode ( ctx , quality , num_coeffs , ! is_pframe ) ;\n ff_thread_report_progress ( & ctx -> buf_ptrs [ ctx -> cur_index ] , INT_MAX , 0 ) ;\n if ( res < 0 ) {\n if ( ! ( avctx -> active_thread_type & FF_THREAD_FRAME ) ) {\n ff_thread_release_buffer ( avctx , & ctx -> buf_ptrs [ ctx -> cur_index ] ) ;\n return res ;\n }\n }\n * ( AVFrame * ) data = ctx -> buf_ptrs [ ctx -> cur_index ] ;\n * got_frame = 1 ;\n ctx -> prev_index = ctx -> next_prev_index ;\n ctx -> cur_index = ctx -> next_cur_index ;\n if ( ctx -> buf_ptrs [ ctx -> cur_index ] . data [ 0 ] ) ff_thread_release_buffer ( avctx , & ctx -> buf_ptrs [ ctx -> cur_index ] ) ;\n return buf_size ;\n }"}
{"idx": 19125, "target": 0, "func": "static uint32_t e1000e_mac_low ## num ## _read ( E1000ECore * core , int index ) {\n return core -> mac [ index ] & ( BIT ( num ) - 1 ) ;\n }\n # define E1000E_LOW_BITS_READ ( num ) e1000e_mac_low ## num ## _read E1000E_LOW_BITS_READ_FUNC ( 4 ) ;\n E1000E_LOW_BITS_READ_FUNC ( 6 ) ;\n E1000E_LOW_BITS_READ_FUNC ( 11 )"}
{"idx": 19126, "target": 1, "func": "int i2d_ ## name ( type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;\n int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE )"}
{"idx": 19127, "target": 0, "func": "int EVP_DecodeBlock ( unsigned char * t , const unsigned char * f , int n ) {\n int i , ret = 0 , a , b , c , d ;\n unsigned long l ;\n while ( ( conv_ascii2bin ( * f ) == B64_WS ) && ( n > 0 ) ) {\n f ++ ;\n n -- ;\n }\n while ( ( n > 3 ) && ( B64_NOT_BASE64 ( conv_ascii2bin ( f [ n - 1 ] ) ) ) ) n -- ;\n if ( n % 4 != 0 ) return ( - 1 ) ;\n for ( i = 0 ;\n i < n ;\n i += 4 ) {\n a = conv_ascii2bin ( * ( f ++ ) ) ;\n b = conv_ascii2bin ( * ( f ++ ) ) ;\n c = conv_ascii2bin ( * ( f ++ ) ) ;\n d = conv_ascii2bin ( * ( f ++ ) ) ;\n if ( ( a & 0x80 ) || ( b & 0x80 ) || ( c & 0x80 ) || ( d & 0x80 ) ) return ( - 1 ) ;\n l = ( ( ( ( unsigned long ) a ) << 18L ) | ( ( ( unsigned long ) b ) << 12L ) | ( ( ( unsigned long ) c ) << 6L ) | ( ( ( unsigned long ) d ) ) ) ;\n * ( t ++ ) = ( unsigned char ) ( l >> 16L ) & 0xff ;\n * ( t ++ ) = ( unsigned char ) ( l >> 8L ) & 0xff ;\n * ( t ++ ) = ( unsigned char ) ( l ) & 0xff ;\n ret += 3 ;\n }\n return ( ret ) ;\n }"}
{"idx": 19128, "target": 0, "func": "static int nntp_capabilities ( struct NntpServer * nserv ) {\n struct Connection * conn = nserv -> conn ;\n bool mode_reader = false ;\n char buf [ LONG_STRING ] ;\n char authinfo [ LONG_STRING ] = \"\" ;\n nserv -> hasCAPABILITIES = false ;\n nserv -> hasSTARTTLS = false ;\n nserv -> hasDATE = false ;\n nserv -> hasLIST_NEWSGROUPS = false ;\n nserv -> hasLISTGROUP = false ;\n nserv -> hasLISTGROUPrange = false ;\n nserv -> hasOVER = false ;\n FREE ( & nserv -> authenticators ) ;\n if ( mutt_socket_send ( conn , \"CAPABILITIES\\r\\n\" ) < 0 || mutt_socket_readln ( buf , sizeof ( buf ) , conn ) < 0 ) {\n return nntp_connect_error ( nserv ) ;\n }\n if ( mutt_str_strncmp ( \"101\" , buf , 3 ) != 0 ) return 1 ;\n nserv -> hasCAPABILITIES = true ;\n do {\n if ( mutt_socket_readln ( buf , sizeof ( buf ) , conn ) < 0 ) return nntp_connect_error ( nserv ) ;\n if ( mutt_str_strcmp ( \"STARTTLS\" , buf ) == 0 ) nserv -> hasSTARTTLS = true ;\n else if ( mutt_str_strcmp ( \"MODE-READER\" , buf ) == 0 ) mode_reader = true ;\n else if ( mutt_str_strcmp ( \"READER\" , buf ) == 0 ) {\n nserv -> hasDATE = true ;\n nserv -> hasLISTGROUP = true ;\n nserv -> hasLISTGROUPrange = true ;\n }\n else if ( mutt_str_strncmp ( \"AUTHINFO \" , buf , 9 ) == 0 ) {\n mutt_str_strcat ( buf , sizeof ( buf ) , \" \" ) ;\n mutt_str_strfcpy ( authinfo , buf + 8 , sizeof ( authinfo ) ) ;\n }\n # ifdef USE_SASL else if ( mutt_str_strncmp ( \"SASL \" , buf , 5 ) == 0 ) {\n char * p = buf + 5 ;\n while ( * p == ' ' ) p ++ ;\n nserv -> authenticators = mutt_str_strdup ( p ) ;\n }\n # endif else if ( mutt_str_strcmp ( \"OVER\" , buf ) == 0 ) nserv -> hasOVER = true ;\n else if ( mutt_str_strncmp ( \"LIST \" , buf , 5 ) == 0 ) {\n char * p = strstr ( buf , \" NEWSGROUPS\" ) ;\n if ( p ) {\n p += 11 ;\n if ( * p == '\\0' || * p == ' ' ) nserv -> hasLIST_NEWSGROUPS = true ;\n }\n }\n }\n while ( mutt_str_strcmp ( \".\" , buf ) != 0 ) ;\n * buf = '\\0' ;\n # ifdef USE_SASL if ( nserv -> authenticators && strcasestr ( authinfo , \" SASL \" ) ) mutt_str_strfcpy ( buf , nserv -> authenticators , sizeof ( buf ) ) ;\n # endif if ( strcasestr ( authinfo , \" USER \" ) ) {\n if ( * buf ) mutt_str_strcat ( buf , sizeof ( buf ) , \" \" ) ;\n mutt_str_strcat ( buf , sizeof ( buf ) , \"USER\" ) ;\n }\n mutt_str_replace ( & nserv -> authenticators , buf ) ;\n if ( nserv -> hasDATE ) return 0 ;\n if ( mode_reader ) return 1 ;\n mutt_socket_close ( conn ) ;\n nserv -> status = NNTP_BYE ;\n mutt_error ( _ ( \"Server doesn't support reader mode.\" ) ) ;\n return - 1 ;\n }"}
{"idx": 19129, "target": 1, "func": "static uint64_t mpc8544_guts_read ( void * opaque , hwaddr addr , unsigned size ) {\n uint32_t value = 0 ;\n CPUPPCState * env = cpu_single_env ;\n addr &= MPC8544_GUTS_MMIO_SIZE - 1 ;\n switch ( addr ) {\n case MPC8544_GUTS_ADDR_PVR : value = env -> spr [ SPR_PVR ] ;\n break ;\n case MPC8544_GUTS_ADDR_SVR : value = env -> spr [ SPR_E500_SVR ] ;\n break ;\n default : fprintf ( stderr , \"guts: Unknown register read: %x\\n\" , ( int ) addr ) ;\n break ;\n }\n return value ;\n }"}
{"idx": 19130, "target": 0, "func": "struct evhttp * evhttp_start ( const char * address , u_short port ) {\n struct evhttp * http = evhttp_new_object ( ) ;\n if ( evhttp_bind_socket ( http , address , port ) == - 1 ) {\n free ( http ) ;\n return ( NULL ) ;\n }\n return ( http ) ;\n }"}
{"idx": 19131, "target": 1, "func": "TEST_F ( ExtensionServiceSyncTest , ProcessSyncDataNewExtension ) {\n InitializeEmptyExtensionService ( ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , syncer : : SyncDataList ( ) , base : : MakeUnique < syncer : : FakeSyncChangeProcessor > ( ) , base : : MakeUnique < syncer : : SyncErrorFactoryMock > ( ) ) ;\n const base : : FilePath path = data_dir ( ) . AppendASCII ( \"good.crx\" ) ;\n const ExtensionPrefs * prefs = ExtensionPrefs : : Get ( profile ( ) ) ;\n struct TestCase {\n const char * name ;\n bool sync_enabled ;\n int sync_disable_reasons ;\n int expect_disable_reasons ;\n bool expect_permissions_granted ;\n }\n test_cases [ ] = {\n {\n \"Standard\" , true , 0 , 0 , true }\n , {\n \"Disabled\" , false , extensions : : disable_reason : : DISABLE_USER_ACTION , extensions : : disable_reason : : DISABLE_USER_ACTION , true }\n , {\n \"Legacy\" , false , - 1 , extensions : : disable_reason : : DISABLE_USER_ACTION , true }\n , {\n \"PermissionsIncrease\" , false , extensions : : disable_reason : : DISABLE_PERMISSIONS_INCREASE , extensions : : disable_reason : : DISABLE_PERMISSIONS_INCREASE , false }\n , }\n ;\n for ( const TestCase & test_case : test_cases ) {\n SCOPED_TRACE ( test_case . name ) ;\n sync_pb : : EntitySpecifics specifics ;\n sync_pb : : ExtensionSpecifics * ext_specifics = specifics . mutable_extension ( ) ;\n ext_specifics -> set_id ( good_crx ) ;\n ext_specifics -> set_version ( base : : Version ( \"1\" ) . GetString ( ) ) ;\n ext_specifics -> set_enabled ( test_case . sync_enabled ) ;\n if ( test_case . sync_disable_reasons != - 1 ) ext_specifics -> set_disable_reasons ( test_case . sync_disable_reasons ) ;\n SyncChangeList list = MakeSyncChangeList ( good_crx , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n ASSERT_TRUE ( service ( ) -> pending_extension_manager ( ) -> IsIdPending ( good_crx ) ) ;\n UpdateExtension ( good_crx , path , test_case . sync_enabled ? ENABLED : DISABLED ) ;\n EXPECT_EQ ( test_case . expect_disable_reasons , prefs -> GetDisableReasons ( good_crx ) ) ;\n std : : unique_ptr < const PermissionSet > permissions = prefs -> GetGrantedPermissions ( good_crx ) ;\n EXPECT_EQ ( test_case . expect_permissions_granted , ! permissions -> IsEmpty ( ) ) ;\n ASSERT_FALSE ( service ( ) -> pending_extension_manager ( ) -> IsIdPending ( good_crx ) ) ;\n UninstallExtension ( good_crx , false , test_case . sync_enabled ? Extension : : ENABLED : Extension : : DISABLED ) ;\n }\n }\n TEST_F ( ExtensionServiceSyncTest , ProcessSyncDataTerminatedExtension ) {\n InitializeExtensionServiceWithUpdater ( ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , syncer : : SyncDataList ( ) , base : : MakeUnique < syncer : : FakeSyncChangeProcessor > ( ) , base : : MakeUnique < syncer : : SyncErrorFactoryMock > ( ) ) ;\n InstallCRX ( data_dir ( ) . AppendASCII ( \"good.crx\" ) , INSTALL_NEW ) ;\n TerminateExtension ( good_crx ) ;\n EXPECT_TRUE ( service ( ) -> IsExtensionEnabled ( good_crx ) ) ;\n EXPECT_FALSE ( extensions : : util : : IsIncognitoEnabled ( good_crx , profile ( ) ) ) ;\n sync_pb : : EntitySpecifics specifics ;\n sync_pb : : ExtensionSpecifics * ext_specifics = specifics . mutable_extension ( ) ;\n ext_specifics -> set_id ( good_crx ) ;\n ext_specifics -> set_version ( service ( ) -> GetInstalledExtension ( good_crx ) -> version ( ) -> GetString ( ) ) ;\n ext_specifics -> set_enabled ( false ) ;\n ext_specifics -> set_incognito_enabled ( true ) ;\n SyncChangeList list = MakeSyncChangeList ( good_crx , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_FALSE ( service ( ) -> IsExtensionEnabled ( good_crx ) ) ;\n EXPECT_TRUE ( extensions : : util : : IsIncognitoEnabled ( good_crx , profile ( ) ) ) ;\n EXPECT_FALSE ( service ( ) -> pending_extension_manager ( ) -> IsIdPending ( good_crx ) ) ;\n }\n TEST_F ( ExtensionServiceSyncTest , ProcessSyncDataVersionCheck ) {\n InitializeExtensionServiceWithUpdater ( ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , syncer : : SyncDataList ( ) , base : : MakeUnique < syncer : : FakeSyncChangeProcessor > ( ) , base : : MakeUnique < syncer : : SyncErrorFactoryMock > ( ) ) ;\n InstallCRX ( data_dir ( ) . AppendASCII ( \"good.crx\" ) , INSTALL_NEW ) ;\n EXPECT_TRUE ( service ( ) -> IsExtensionEnabled ( good_crx ) ) ;\n EXPECT_FALSE ( extensions : : util : : IsIncognitoEnabled ( good_crx , profile ( ) ) ) ;\n sync_pb : : EntitySpecifics specifics ;\n sync_pb : : ExtensionSpecifics * ext_specifics = specifics . mutable_extension ( ) ;\n ext_specifics -> set_id ( good_crx ) ;\n ext_specifics -> set_enabled ( true ) ;\n const base : : Version installed_version = * service ( ) -> GetInstalledExtension ( good_crx ) -> version ( ) ;\n {\n ext_specifics -> set_version ( installed_version . GetString ( ) ) ;\n SyncChangeList list = MakeSyncChangeList ( good_crx , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_FALSE ( service ( ) -> updater ( ) -> WillCheckSoon ( ) ) ;\n syncer : : SyncDataList data = extension_sync_service ( ) -> GetAllSyncData ( syncer : : EXTENSIONS ) ;\n ASSERT_EQ ( 1u , data . size ( ) ) ;\n std : : unique_ptr < ExtensionSyncData > extension_data = ExtensionSyncData : : CreateFromSyncData ( data [ 0 ] ) ;\n ASSERT_TRUE ( extension_data ) ;\n EXPECT_EQ ( installed_version , extension_data -> version ( ) ) ;\n }\n {\n ext_specifics -> set_version ( \"0.0.0.0\" ) ;\n SyncChangeList list = MakeSyncChangeList ( good_crx , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_FALSE ( service ( ) -> updater ( ) -> WillCheckSoon ( ) ) ;\n syncer : : SyncDataList data = extension_sync_service ( ) -> GetAllSyncData ( syncer : : EXTENSIONS ) ;\n ASSERT_EQ ( 1u , data . size ( ) ) ;\n std : : unique_ptr < ExtensionSyncData > extension_data = ExtensionSyncData : : CreateFromSyncData ( data [ 0 ] ) ;\n ASSERT_TRUE ( extension_data ) ;\n EXPECT_EQ ( installed_version , extension_data -> version ( ) ) ;\n }\n {\n const base : : Version new_version ( \"9.9.9.9\" ) ;\n ext_specifics -> set_version ( new_version . GetString ( ) ) ;\n SyncChangeList list = MakeSyncChangeList ( good_crx , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_TRUE ( service ( ) -> updater ( ) -> WillCheckSoon ( ) ) ;\n syncer : : SyncDataList data = extension_sync_service ( ) -> GetAllSyncData ( syncer : : EXTENSIONS ) ;\n ASSERT_EQ ( 1u , data . size ( ) ) ;\n std : : unique_ptr < ExtensionSyncData > extension_data = ExtensionSyncData : : CreateFromSyncData ( data [ 0 ] ) ;\n ASSERT_TRUE ( extension_data ) ;\n EXPECT_EQ ( new_version , extension_data -> version ( ) ) ;\n }\n EXPECT_FALSE ( service ( ) -> pending_extension_manager ( ) -> IsIdPending ( good_crx ) ) ;\n }\n TEST_F ( ExtensionServiceSyncTest , ProcessSyncDataNotInstalled ) {\n InitializeExtensionServiceWithUpdater ( ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , syncer : : SyncDataList ( ) , base : : MakeUnique < syncer : : FakeSyncChangeProcessor > ( ) , base : : MakeUnique < syncer : : SyncErrorFactoryMock > ( ) ) ;\n sync_pb : : EntitySpecifics specifics ;\n sync_pb : : ExtensionSpecifics * ext_specifics = specifics . mutable_extension ( ) ;\n ext_specifics -> set_id ( good_crx ) ;\n ext_specifics -> set_enabled ( false ) ;\n ext_specifics -> set_incognito_enabled ( true ) ;\n ext_specifics -> set_update_url ( \"http://www.google.com/\" ) ;\n ext_specifics -> set_version ( \"1.2.3.4\" ) ;\n SyncChangeList list = MakeSyncChangeList ( good_crx , specifics , SyncChange : : ACTION_UPDATE ) ;\n EXPECT_TRUE ( service ( ) -> IsExtensionEnabled ( good_crx ) ) ;\n EXPECT_FALSE ( extensions : : util : : IsIncognitoEnabled ( good_crx , profile ( ) ) ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_TRUE ( service ( ) -> updater ( ) -> WillCheckSoon ( ) ) ;\n EXPECT_FALSE ( service ( ) -> IsExtensionEnabled ( good_crx ) ) ;\n EXPECT_TRUE ( extensions : : util : : IsIncognitoEnabled ( good_crx , profile ( ) ) ) ;\n const extensions : : PendingExtensionInfo * info ;\n EXPECT_TRUE ( ( info = service ( ) -> pending_extension_manager ( ) -> GetById ( good_crx ) ) ) ;\n EXPECT_EQ ( ext_specifics -> update_url ( ) , info -> update_url ( ) . spec ( ) ) ;\n EXPECT_TRUE ( info -> is_from_sync ( ) ) ;\n EXPECT_EQ ( Manifest : : INTERNAL , info -> install_source ( ) ) ;\n }\n TEST_F ( ExtensionServiceSyncTest , ProcessSyncDataEnableDisable ) {\n InitializeEmptyExtensionService ( ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , syncer : : SyncDataList ( ) , base : : MakeUnique < syncer : : FakeSyncChangeProcessor > ( ) , base : : MakeUnique < syncer : : SyncErrorFactoryMock > ( ) ) ;\n const ExtensionPrefs * prefs = ExtensionPrefs : : Get ( profile ( ) ) ;\n struct TestCase {\n const char * name ;\n int previous_disable_reasons ;\n bool sync_enable ;\n int sync_disable_reasons ;\n int expect_disable_reasons ;\n }\n test_cases [ ] = {\n {\n \"NopEnable\" , 0 , true , 0 , 0 }\n , {\n \"NopDisable\" , extensions : : disable_reason : : DISABLE_USER_ACTION , false , extensions : : disable_reason : : DISABLE_USER_ACTION , extensions : : disable_reason : : DISABLE_USER_ACTION }\n , {\n \"Enable\" , extensions : : disable_reason : : DISABLE_USER_ACTION , true , 0 , 0 }\n , {\n \"Disable\" , 0 , false , extensions : : disable_reason : : DISABLE_USER_ACTION , extensions : : disable_reason : : DISABLE_USER_ACTION }\n , {\n \"AddDisableReason\" , extensions : : disable_reason : : DISABLE_REMOTE_INSTALL , false , extensions : : disable_reason : : DISABLE_REMOTE_INSTALL | extensions : : disable_reason : : DISABLE_USER_ACTION , extensions : : disable_reason : : DISABLE_REMOTE_INSTALL | extensions : : disable_reason : : DISABLE_USER_ACTION }\n , {\n \"RemoveDisableReason\" , extensions : : disable_reason : : DISABLE_REMOTE_INSTALL | extensions : : disable_reason : : DISABLE_USER_ACTION , false , extensions : : disable_reason : : DISABLE_USER_ACTION , extensions : : disable_reason : : DISABLE_USER_ACTION }\n , {\n \"PreserveLocalDisableReason\" , extensions : : disable_reason : : DISABLE_RELOAD , true , 0 , extensions : : disable_reason : : DISABLE_RELOAD }\n , {\n \"PreserveOnlyLocalDisableReason\" , extensions : : disable_reason : : DISABLE_USER_ACTION | extensions : : disable_reason : : DISABLE_RELOAD , true , 0 , extensions : : disable_reason : : DISABLE_RELOAD }\n , {\n \"M44Enable\" , extensions : : disable_reason : : DISABLE_USER_ACTION , true , - 1 , 0 }\n , {\n \"M44ReEnable\" , extensions : : disable_reason : : DISABLE_USER_ACTION , true , extensions : : disable_reason : : DISABLE_USER_ACTION , 0 }\n , {\n \"M44Disable\" , 0 , false , - 1 , extensions : : disable_reason : : DISABLE_USER_ACTION }\n , {\n \"M44ReDisable\" , 0 , false , 0 , extensions : : disable_reason : : DISABLE_USER_ACTION }\n , {\n \"M44AlreadyDisabledByUser\" , extensions : : disable_reason : : DISABLE_USER_ACTION , false , - 1 , extensions : : disable_reason : : DISABLE_USER_ACTION }\n , {\n \"M44AlreadyDisabledWithOtherReason\" , extensions : : disable_reason : : DISABLE_REMOTE_INSTALL , false , - 1 , extensions : : disable_reason : : DISABLE_REMOTE_INSTALL | extensions : : disable_reason : : DISABLE_USER_ACTION }\n , }\n ;\n for ( const TestCase & test_case : test_cases ) {\n SCOPED_TRACE ( test_case . name ) ;\n std : : string id ;\n std : : string version ;\n {\n const Extension * extension = InstallCRX ( data_dir ( ) . AppendASCII ( \"good.crx\" ) , INSTALL_NEW ) ;\n ASSERT_TRUE ( extension ) ;\n id = extension -> id ( ) ;\n version = extension -> VersionString ( ) ;\n }\n ASSERT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n if ( test_case . previous_disable_reasons ) {\n service ( ) -> DisableExtension ( id , test_case . previous_disable_reasons ) ;\n ASSERT_TRUE ( registry ( ) -> disabled_extensions ( ) . Contains ( id ) ) ;\n }\n sync_pb : : EntitySpecifics specifics ;\n sync_pb : : ExtensionSpecifics * ext_specifics = specifics . mutable_extension ( ) ;\n ext_specifics -> set_id ( id ) ;\n ext_specifics -> set_enabled ( test_case . sync_enable ) ;\n ext_specifics -> set_version ( version ) ;\n if ( test_case . sync_disable_reasons != - 1 ) ext_specifics -> set_disable_reasons ( test_case . sync_disable_reasons ) ;\n SyncChangeList list = MakeSyncChangeList ( good_crx , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n const bool expect_enabled = ! test_case . expect_disable_reasons ;\n EXPECT_EQ ( expect_enabled , service ( ) -> IsExtensionEnabled ( id ) ) ;\n EXPECT_EQ ( test_case . expect_disable_reasons , prefs -> GetDisableReasons ( id ) ) ;\n UninstallExtension ( id , false , expect_enabled ? Extension : : ENABLED : Extension : : DISABLED ) ;\n }\n }\n TEST_F ( ExtensionServiceSyncTest , ProcessSyncDataDeferredEnable ) {\n base : : CommandLine : : ForCurrentProcess ( ) -> AppendSwitchASCII ( switches : : kAppsGalleryUpdateURL , \"http://localhost/autoupdate/updates.xml\" ) ;\n InitializeEmptyExtensionService ( ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , syncer : : SyncDataList ( ) , base : : MakeUnique < syncer : : FakeSyncChangeProcessor > ( ) , base : : MakeUnique < syncer : : SyncErrorFactoryMock > ( ) ) ;\n base : : FilePath base_path = data_dir ( ) . AppendASCII ( \"permissions_increase\" ) ;\n base : : FilePath pem_path = base_path . AppendASCII ( \"permissions.pem\" ) ;\n base : : FilePath path = base_path . AppendASCII ( \"v1\" ) ;\n const Extension * extension = PackAndInstallCRX ( path , pem_path , INSTALL_NEW ) ;\n ASSERT_TRUE ( extension ) ;\n ASSERT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( extension -> id ( ) ) ) ;\n std : : string id = extension -> id ( ) ;\n path = base_path . AppendASCII ( \"v2\" ) ;\n PackCRXAndUpdateExtension ( id , path , pem_path , DISABLED ) ;\n sync_pb : : EntitySpecifics specifics ;\n sync_pb : : ExtensionSpecifics * ext_specifics = specifics . mutable_extension ( ) ;\n ext_specifics -> set_id ( id ) ;\n ext_specifics -> set_version ( \"3\" ) ;\n ext_specifics -> set_enabled ( true ) ;\n ext_specifics -> set_disable_reasons ( extensions : : disable_reason : : DISABLE_NONE ) ;\n SyncChangeList list = MakeSyncChangeList ( good_crx , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_TRUE ( registry ( ) -> disabled_extensions ( ) . Contains ( id ) ) ;\n path = base_path . AppendASCII ( \"v3\" ) ;\n PackCRXAndUpdateExtension ( id , path , pem_path , ENABLED ) ;\n }\n class ExtensionServiceSyncCustomGalleryTest : public ExtensionServiceSyncTest {\n public : void SetUp ( ) override {\n ExtensionServiceSyncTest : : SetUp ( ) ;\n base : : CommandLine : : ForCurrentProcess ( ) -> AppendSwitchASCII ( switches : : kAppsGalleryUpdateURL , \"http://localhost/autoupdate/updates.xml\" ) ;\n }\n }\n ;\n TEST_F ( ExtensionServiceSyncCustomGalleryTest , ProcessSyncDataPermissionApproval ) {\n InitializeEmptyExtensionService ( ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , syncer : : SyncDataList ( ) , base : : MakeUnique < syncer : : FakeSyncChangeProcessor > ( ) , base : : MakeUnique < syncer : : SyncErrorFactoryMock > ( ) ) ;\n const base : : FilePath base_path = data_dir ( ) . AppendASCII ( \"permissions_increase\" ) ;\n const base : : FilePath pem_path = base_path . AppendASCII ( \"permissions.pem\" ) ;\n const base : : FilePath path_v1 = base_path . AppendASCII ( \"v1\" ) ;\n const base : : FilePath path_v2 = base_path . AppendASCII ( \"v2\" ) ;\n base : : ScopedTempDir crx_dir ;\n ASSERT_TRUE ( crx_dir . CreateUniqueTempDir ( ) ) ;\n const base : : FilePath crx_path_v1 = crx_dir . GetPath ( ) . AppendASCII ( \"temp1.crx\" ) ;\n PackCRX ( path_v1 , pem_path , crx_path_v1 ) ;\n const base : : FilePath crx_path_v2 = crx_dir . GetPath ( ) . AppendASCII ( \"temp2.crx\" ) ;\n PackCRX ( path_v2 , pem_path , crx_path_v2 ) ;\n const std : : string v1 ( \"1\" ) ;\n const std : : string v2 ( \"2\" ) ;\n const ExtensionPrefs * prefs = ExtensionPrefs : : Get ( profile ( ) ) ;\n struct TestCase {\n const char * name ;\n const std : : string & sync_version ;\n int sync_disable_reasons ;\n int expect_disable_reasons ;\n bool expect_permissions_granted ;\n }\n test_cases [ ] = {\n {\n \"OldVersion\" , v1 , 0 , extensions : : disable_reason : : DISABLE_PERMISSIONS_INCREASE , false }\n , {\n \"Legacy\" , v2 , - 1 , extensions : : disable_reason : : DISABLE_PERMISSIONS_INCREASE , false }\n , {\n \"GrantPermissions\" , v2 , 0 , extensions : : disable_reason : : DISABLE_NONE , true }\n , }\n ;\n for ( const TestCase & test_case : test_cases ) {\n SCOPED_TRACE ( test_case . name ) ;\n std : : string id ;\n {\n const Extension * extension = InstallCRX ( crx_path_v1 , INSTALL_NEW ) ;\n ASSERT_TRUE ( extension ) ;\n ASSERT_EQ ( v1 , extension -> VersionString ( ) ) ;\n id = extension -> id ( ) ;\n }\n ASSERT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n std : : unique_ptr < const PermissionSet > granted_permissions_v1 = prefs -> GetGrantedPermissions ( id ) ;\n UpdateExtension ( id , crx_path_v2 , DISABLED ) ;\n {\n const Extension * extension = registry ( ) -> disabled_extensions ( ) . GetByID ( id ) ;\n ASSERT_TRUE ( extension ) ;\n ASSERT_EQ ( v2 , extension -> VersionString ( ) ) ;\n }\n ASSERT_TRUE ( prefs -> HasDisableReason ( id , extensions : : disable_reason : : DISABLE_PERMISSIONS_INCREASE ) ) ;\n std : : unique_ptr < const PermissionSet > granted_permissions_v2 = prefs -> GetGrantedPermissions ( id ) ;\n ASSERT_EQ ( * granted_permissions_v1 , * granted_permissions_v2 ) ;\n sync_pb : : EntitySpecifics specifics ;\n sync_pb : : ExtensionSpecifics * ext_specifics = specifics . mutable_extension ( ) ;\n ext_specifics -> set_id ( id ) ;\n ext_specifics -> set_enabled ( true ) ;\n ext_specifics -> set_version ( test_case . sync_version ) ;\n if ( test_case . sync_disable_reasons != - 1 ) ext_specifics -> set_disable_reasons ( test_case . sync_disable_reasons ) ;\n SyncChangeList list = MakeSyncChangeList ( good_crx , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n const bool expect_enabled = ! test_case . expect_disable_reasons ;\n EXPECT_EQ ( expect_enabled , service ( ) -> IsExtensionEnabled ( id ) ) ;\n EXPECT_EQ ( test_case . expect_disable_reasons , prefs -> GetDisableReasons ( id ) ) ;\n std : : unique_ptr < const PermissionSet > granted_permissions = prefs -> GetGrantedPermissions ( id ) ;\n if ( test_case . expect_permissions_granted ) {\n std : : unique_ptr < const PermissionSet > active_permissions = prefs -> GetActivePermissions ( id ) ;\n EXPECT_EQ ( * granted_permissions , * active_permissions ) ;\n }\n else {\n EXPECT_EQ ( * granted_permissions , * granted_permissions_v1 ) ;\n }\n UninstallExtension ( id , false , expect_enabled ? Extension : : ENABLED : Extension : : DISABLED ) ;\n }\n }\n TEST_F ( ExtensionServiceSyncTest , DontSyncThemes ) {\n InitializeEmptyExtensionService ( ) ;\n ProfileSyncServiceFactory : : GetForProfile ( profile ( ) ) -> SetFirstSetupComplete ( ) ;\n extension_sync_service ( ) ;\n service ( ) -> Init ( ) ;\n ASSERT_TRUE ( service ( ) -> is_ready ( ) ) ;\n syncer : : FakeSyncChangeProcessor * processor = new syncer : : FakeSyncChangeProcessor ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , syncer : : SyncDataList ( ) , base : : WrapUnique ( processor ) , base : : WrapUnique ( new syncer : : SyncErrorFactoryMock ) ) ;\n processor -> changes ( ) . clear ( ) ;\n InstallCRX ( data_dir ( ) . AppendASCII ( \"good.crx\" ) , INSTALL_NEW ) ;\n EXPECT_EQ ( 1u , processor -> changes ( ) . size ( ) ) ;\n processor -> changes ( ) . clear ( ) ;\n InstallCRX ( data_dir ( ) . AppendASCII ( \"theme.crx\" ) , INSTALL_NEW ) ;\n content : : WindowedNotificationObserver theme_change_observer ( chrome : : NOTIFICATION_BROWSER_THEME_CHANGED , content : : Source < ThemeService > ( ThemeServiceFactory : : GetForProfile ( profile ( ) ) ) ) ;\n theme_change_observer . Wait ( ) ;\n EXPECT_TRUE ( processor -> changes ( ) . empty ( ) ) ;\n }\n # if BUILDFLAG ( ENABLE_SUPERVISED_USERS ) class ExtensionServiceTestSupervised : public ExtensionServiceSyncCustomGalleryTest , public SupervisedUserService : : Delegate {\n public : ExtensionServiceTestSupervised ( ) : field_trial_list_ ( base : : MakeUnique < base : : MockEntropyProvider > ( ) ) {\n }\n void TearDown ( ) override {\n supervised_user_service ( ) -> SetDelegate ( nullptr ) ;\n ExtensionServiceSyncCustomGalleryTest : : TearDown ( ) ;\n }\n protected : void InitSupervisedUserInitiatedExtensionInstallFeature ( bool enabled ) {\n if ( enabled ) {\n scoped_feature_list_ . InitAndEnableFeature ( supervised_users : : kSupervisedUserInitiatedExtensionInstall ) ;\n }\n }\n bool IsPendingCustodianApproval ( const std : : string & extension_id ) {\n auto function = make_scoped_refptr ( new WebstorePrivateIsPendingCustodianApprovalFunction ( ) ) ;\n std : : unique_ptr < base : : Value > result ( RunFunctionAndReturnSingleResult ( function . get ( ) , \"[\\\"\" + extension_id + \"\\\"]\" , browser_context ( ) ) ) ;\n bool copy_bool_result = false ;\n EXPECT_TRUE ( result -> GetAsBoolean ( & copy_bool_result ) ) ;\n return copy_bool_result ;\n }\n void InitServices ( bool profile_is_supervised ) {\n ExtensionServiceInitParams params = CreateDefaultInitParams ( ) ;\n params . profile_is_supervised = profile_is_supervised ;\n if ( profile_is_supervised ) {\n params . pref_file = base : : FilePath ( ) ;\n }\n InitializeExtensionService ( params ) ;\n StartSyncing ( syncer : : EXTENSIONS ) ;\n supervised_user_service ( ) -> SetDelegate ( this ) ;\n supervised_user_service ( ) -> Init ( ) ;\n }\n std : : string InstallPermissionsTestExtension ( bool by_custodian ) {\n return InstallTestExtension ( permissions_increase , dir_path ( \"1\" ) , pem_path ( ) , by_custodian ) ;\n }\n void UpdatePermissionsTestExtension ( const std : : string & id , const std : : string & version , UpdateState expected_state ) {\n UpdateTestExtension ( dir_path ( version ) , pem_path ( ) , id , version , expected_state ) ;\n }\n std : : string InstallNoPermissionsTestExtension ( bool by_custodian ) {\n base : : FilePath base_path = data_dir ( ) . AppendASCII ( \"autoupdate\" ) ;\n base : : FilePath pem_path = base_path . AppendASCII ( \"key.pem\" ) ;\n base : : FilePath dir_path = base_path . AppendASCII ( \"v1\" ) ;\n return InstallTestExtension ( autoupdate , dir_path , pem_path , by_custodian ) ;\n }\n void UpdateNoPermissionsTestExtension ( const std : : string & id , const std : : string & version , UpdateState expected_state ) {\n base : : FilePath base_path = data_dir ( ) . AppendASCII ( \"autoupdate\" ) ;\n base : : FilePath pem_path = base_path . AppendASCII ( \"key.pem\" ) ;\n base : : FilePath dir_path = base_path . AppendASCII ( \"v\" + version ) ;\n UpdateTestExtension ( dir_path , pem_path , id , version , expected_state ) ;\n }\n std : : string InstallTestExtension ( const std : : string & id , const base : : FilePath & dir_path , const base : : FilePath & pem_path , bool by_custodian ) {\n InstallState expected_state = INSTALL_WITHOUT_LOAD ;\n if ( by_custodian ) {\n extensions : : util : : SetWasInstalledByCustodian ( id , profile ( ) , true ) ;\n expected_state = INSTALL_NEW ;\n }\n const Extension * extension = PackAndInstallCRX ( dir_path , pem_path , expected_state ) ;\n EXPECT_TRUE ( extension ) ;\n EXPECT_EQ ( extension -> id ( ) , id ) ;\n if ( by_custodian ) {\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n }\n else {\n CheckDisabledForCustodianApproval ( id ) ;\n }\n EXPECT_EQ ( * extension -> version ( ) , base : : Version ( \"1\" ) ) ;\n return id ;\n }\n void UpdateTestExtension ( const base : : FilePath & dir_path , const base : : FilePath & pem_path , const std : : string & id , const std : : string & version , const UpdateState & expected_state ) {\n PackCRXAndUpdateExtension ( id , dir_path , pem_path , expected_state ) ;\n const Extension * extension = registry ( ) -> GetInstalledExtension ( id ) ;\n ASSERT_TRUE ( extension ) ;\n EXPECT_EQ ( * extension -> version ( ) , base : : Version ( version ) ) ;\n }\n void SimulateCustodianApprovalChangeViaSync ( const std : : string & extension_id , const std : : string & version , SyncChange : : SyncChangeType type ) {\n std : : string key = SupervisedUserSettingsService : : MakeSplitSettingKey ( supervised_users : : kApprovedExtensions , extension_id ) ;\n syncer : : SyncData sync_data = SupervisedUserSettingsService : : CreateSyncDataForSetting ( key , base : : Value ( version ) ) ;\n SyncChangeList list ( 1 , SyncChange ( FROM_HERE , type , sync_data ) ) ;\n SupervisedUserSettingsService * supervised_user_settings_service = SupervisedUserSettingsServiceFactory : : GetForProfile ( profile ( ) ) ;\n supervised_user_settings_service -> ProcessSyncChanges ( FROM_HERE , list ) ;\n }\n void CheckDisabledForCustodianApproval ( const std : : string & extension_id ) {\n EXPECT_TRUE ( registry ( ) -> disabled_extensions ( ) . Contains ( extension_id ) ) ;\n ExtensionPrefs * extension_prefs = ExtensionPrefs : : Get ( profile ( ) ) ;\n EXPECT_TRUE ( extension_prefs -> HasDisableReason ( extension_id , extensions : : disable_reason : : DISABLE_CUSTODIAN_APPROVAL_REQUIRED ) ) ;\n }\n SupervisedUserService * supervised_user_service ( ) {\n return SupervisedUserServiceFactory : : GetForProfile ( profile ( ) ) ;\n }\n static std : : string RequestId ( const std : : string & extension_id , const std : : string & version ) {\n return SupervisedUserService : : GetExtensionRequestId ( extension_id , base : : Version ( version ) ) ;\n }\n private : bool SetActive ( bool active ) override {\n return true ;\n }\n base : : FilePath base_path ( ) const {\n return data_dir ( ) . AppendASCII ( \"permissions_increase\" ) ;\n }\n base : : FilePath dir_path ( const std : : string & version ) const {\n return base_path ( ) . AppendASCII ( \"v\" + version ) ;\n }\n base : : FilePath pem_path ( ) const {\n return base_path ( ) . AppendASCII ( \"permissions.pem\" ) ;\n }\n base : : FieldTrialList field_trial_list_ ;\n base : : test : : ScopedFeatureList scoped_feature_list_ ;\n }\n ;\n class MockPermissionRequestCreator : public PermissionRequestCreator {\n public : MockPermissionRequestCreator ( ) {\n }\n ~ MockPermissionRequestCreator ( ) override {\n }\n bool IsEnabled ( ) const override {\n return true ;\n }\n void CreateURLAccessRequest ( const GURL & url_requested , const SuccessCallback & callback ) override {\n FAIL ( ) ;\n }\n MOCK_METHOD2 ( CreateExtensionInstallRequest , void ( const std : : string & id , const SupervisedUserService : : SuccessCallback & callback ) ) ;\n MOCK_METHOD2 ( CreateExtensionUpdateRequest , void ( const std : : string & id , const SupervisedUserService : : SuccessCallback & callback ) ) ;\n private : DISALLOW_COPY_AND_ASSIGN ( MockPermissionRequestCreator ) ;\n }\n ;\n TEST_F ( ExtensionServiceTestSupervised , InstallOnlyAllowedByCustodian ) {\n InitServices ( true ) ;\n InitSupervisedUserInitiatedExtensionInstallFeature ( false ) ;\n extensions : : util : : SetWasInstalledByCustodian ( good2048 , profile ( ) , true ) ;\n base : : FilePath path1 = data_dir ( ) . AppendASCII ( \"good.crx\" ) ;\n base : : FilePath path2 = data_dir ( ) . AppendASCII ( \"good2048.crx\" ) ;\n const Extension * extensions [ ] = {\n InstallCRX ( path1 , INSTALL_FAILED ) , InstallCRX ( path2 , INSTALL_NEW ) }\n ;\n EXPECT_FALSE ( extensions [ 0 ] ) ;\n ASSERT_TRUE ( extensions [ 1 ] ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( extensions [ 1 ] -> id ( ) ) ) ;\n EXPECT_FALSE ( IsPendingCustodianApproval ( extensions [ 1 ] -> id ( ) ) ) ;\n }\n TEST_F ( ExtensionServiceTestSupervised , DelegatedAndPreinstalledExtensionIsSUFirst ) {\n InitServices ( false ) ;\n InitSupervisedUserInitiatedExtensionInstallFeature ( false ) ;\n base : : FilePath path = data_dir ( ) . AppendASCII ( \"good.crx\" ) ;\n const Extension * extension = InstallCRX ( path , INSTALL_NEW ) ;\n std : : string id = extension -> id ( ) ;\n const std : : string version ( \"1.0.0.0\" ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n profile ( ) -> AsTestingProfile ( ) -> SetSupervisedUserId ( supervised_users : : kChildAccountSUID ) ;\n EXPECT_FALSE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n sync_pb : : EntitySpecifics specifics ;\n sync_pb : : ExtensionSpecifics * ext_specifics = specifics . mutable_extension ( ) ;\n ext_specifics -> set_id ( id ) ;\n ext_specifics -> set_enabled ( true ) ;\n ext_specifics -> set_disable_reasons ( extensions : : disable_reason : : DISABLE_NONE ) ;\n ext_specifics -> set_installed_by_custodian ( true ) ;\n ext_specifics -> set_version ( version ) ;\n SyncChangeList list = MakeSyncChangeList ( id , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n EXPECT_TRUE ( extensions : : util : : WasInstalledByCustodian ( id , profile ( ) ) ) ;\n }\n TEST_F ( ExtensionServiceTestSupervised , DelegatedAndPreinstalledExtensionSyncFirst ) {\n InitServices ( false ) ;\n InitSupervisedUserInitiatedExtensionInstallFeature ( false ) ;\n base : : FilePath path = data_dir ( ) . AppendASCII ( \"good.crx\" ) ;\n const Extension * extension = InstallCRX ( path , INSTALL_NEW ) ;\n std : : string id = extension -> id ( ) ;\n const std : : string version ( \"1.0.0.0\" ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n sync_pb : : EntitySpecifics specifics ;\n sync_pb : : ExtensionSpecifics * ext_specifics = specifics . mutable_extension ( ) ;\n ext_specifics -> set_id ( id ) ;\n ext_specifics -> set_enabled ( true ) ;\n ext_specifics -> set_disable_reasons ( extensions : : disable_reason : : DISABLE_NONE ) ;\n ext_specifics -> set_installed_by_custodian ( true ) ;\n ext_specifics -> set_version ( version ) ;\n SyncChangeList list = MakeSyncChangeList ( id , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n EXPECT_TRUE ( extensions : : util : : WasInstalledByCustodian ( id , profile ( ) ) ) ;\n }\n TEST_F ( ExtensionServiceTestSupervised , InstallAllowedByCustodianAndSupervisedUser ) {\n InitServices ( true ) ;\n InitSupervisedUserInitiatedExtensionInstallFeature ( true ) ;\n extensions : : util : : SetWasInstalledByCustodian ( good2048 , profile ( ) , true ) ;\n base : : FilePath path1 = data_dir ( ) . AppendASCII ( \"good.crx\" ) ;\n base : : FilePath path2 = data_dir ( ) . AppendASCII ( \"good2048.crx\" ) ;\n const Extension * extensions [ ] = {\n InstallCRX ( path1 , INSTALL_WITHOUT_LOAD ) , InstallCRX ( path2 , INSTALL_NEW ) }\n ;\n ASSERT_TRUE ( extensions [ 0 ] ) ;\n ASSERT_TRUE ( extensions [ 1 ] ) ;\n EXPECT_TRUE ( registry ( ) -> disabled_extensions ( ) . Contains ( extensions [ 0 ] -> id ( ) ) ) ;\n EXPECT_TRUE ( IsPendingCustodianApproval ( extensions [ 0 ] -> id ( ) ) ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( extensions [ 1 ] -> id ( ) ) ) ;\n EXPECT_FALSE ( IsPendingCustodianApproval ( extensions [ 1 ] -> id ( ) ) ) ;\n }\n TEST_F ( ExtensionServiceTestSupervised , PreinstalledExtensionWithSUInitiatedInstalls ) {\n InitServices ( false ) ;\n InitSupervisedUserInitiatedExtensionInstallFeature ( true ) ;\n base : : FilePath path = data_dir ( ) . AppendASCII ( \"good.crx\" ) ;\n const Extension * extension = InstallCRX ( path , INSTALL_NEW ) ;\n std : : string id = extension -> id ( ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n MockPermissionRequestCreator * creator = new MockPermissionRequestCreator ;\n supervised_user_service ( ) -> AddPermissionRequestCreator ( base : : WrapUnique ( creator ) ) ;\n const std : : string version ( \"1.0.0.0\" ) ;\n EXPECT_CALL ( * creator , CreateExtensionInstallRequest ( RequestId ( good_crx , version ) , testing : : _ ) ) ;\n profile ( ) -> AsTestingProfile ( ) -> SetSupervisedUserId ( supervised_users : : kChildAccountSUID ) ;\n Mock : : VerifyAndClearExpectations ( creator ) ;\n CheckDisabledForCustodianApproval ( id ) ;\n EXPECT_TRUE ( IsPendingCustodianApproval ( id ) ) ;\n }\n TEST_F ( ExtensionServiceTestSupervised , PreinstalledExtensionWithoutSUInitiatedInstalls ) {\n InitServices ( false ) ;\n InitSupervisedUserInitiatedExtensionInstallFeature ( false ) ;\n base : : FilePath path = data_dir ( ) . AppendASCII ( \"good.crx\" ) ;\n const Extension * extension = InstallCRX ( path , INSTALL_NEW ) ;\n std : : string id = extension -> id ( ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n MockPermissionRequestCreator * creator = new MockPermissionRequestCreator ;\n supervised_user_service ( ) -> AddPermissionRequestCreator ( base : : WrapUnique ( creator ) ) ;\n const std : : string version ( \"1.0.0.0\" ) ;\n EXPECT_CALL ( * creator , CreateExtensionInstallRequest ( testing : : _ , testing : : _ ) ) . Times ( 0 ) ;\n profile ( ) -> AsTestingProfile ( ) -> SetSupervisedUserId ( supervised_users : : kChildAccountSUID ) ;\n EXPECT_FALSE ( registry ( ) -> GetInstalledExtension ( id ) ) ;\n }\n TEST_F ( ExtensionServiceTestSupervised , ExtensionApprovalBeforeInstallation ) {\n InitServices ( true ) ;\n InitSupervisedUserInitiatedExtensionInstallFeature ( true ) ;\n MockPermissionRequestCreator * creator = new MockPermissionRequestCreator ;\n supervised_user_service ( ) -> AddPermissionRequestCreator ( base : : WrapUnique ( creator ) ) ;\n std : : string id = good_crx ;\n std : : string version ( \"1.0.0.0\" ) ;\n SimulateCustodianApprovalChangeViaSync ( id , version , SyncChange : : ACTION_ADD ) ;\n base : : FilePath path = data_dir ( ) . AppendASCII ( \"good.crx\" ) ;\n InstallCRX ( path , INSTALL_NEW ) ;\n EXPECT_CALL ( * creator , CreateExtensionInstallRequest ( testing : : _ , testing : : _ ) ) . Times ( 0 ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n EXPECT_FALSE ( IsPendingCustodianApproval ( id ) ) ;\n }\n TEST_F ( ExtensionServiceTestSupervised , UpdateWithoutPermissionIncrease ) {\n InitServices ( true ) ;\n std : : string id = InstallNoPermissionsTestExtension ( true ) ;\n std : : string version2 ( \"2\" ) ;\n UpdateNoPermissionsTestExtension ( id , version2 , ENABLED ) ;\n const Extension * extension = registry ( ) -> enabled_extensions ( ) . GetByID ( id ) ;\n ASSERT_TRUE ( extension ) ;\n EXPECT_EQ ( * extension -> version ( ) , base : : Version ( version2 ) ) ;\n EXPECT_FALSE ( IsPendingCustodianApproval ( id ) ) ;\n }\n TEST_F ( ExtensionServiceTestSupervised , UpdateWithPermissionIncreaseApprovalOldVersion ) {\n InitServices ( true ) ;\n MockPermissionRequestCreator * creator = new MockPermissionRequestCreator ;\n supervised_user_service ( ) -> AddPermissionRequestCreator ( base : : WrapUnique ( creator ) ) ;\n const std : : string version1 ( \"1\" ) ;\n const std : : string version2 ( \"2\" ) ;\n std : : string id = InstallPermissionsTestExtension ( true ) ;\n EXPECT_CALL ( * creator , CreateExtensionUpdateRequest ( RequestId ( id , version2 ) , testing : : _ ) ) ;\n UpdatePermissionsTestExtension ( id , version2 , DISABLED ) ;\n Mock : : VerifyAndClearExpectations ( creator ) ;\n EXPECT_TRUE ( IsPendingCustodianApproval ( id ) ) ;\n sync_pb : : EntitySpecifics specifics ;\n sync_pb : : ExtensionSpecifics * ext_specifics = specifics . mutable_extension ( ) ;\n ext_specifics -> set_id ( id ) ;\n ext_specifics -> set_enabled ( true ) ;\n ext_specifics -> set_disable_reasons ( extensions : : disable_reason : : DISABLE_NONE ) ;\n ext_specifics -> set_installed_by_custodian ( true ) ;\n ext_specifics -> set_version ( version1 ) ;\n EXPECT_CALL ( * creator , CreateExtensionUpdateRequest ( RequestId ( id , version2 ) , testing : : _ ) ) ;\n SyncChangeList list = MakeSyncChangeList ( id , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_FALSE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n EXPECT_FALSE ( extension_sync_service ( ) -> HasPendingReenable ( id , base : : Version ( version1 ) ) ) ;\n EXPECT_FALSE ( extension_sync_service ( ) -> HasPendingReenable ( id , base : : Version ( version2 ) ) ) ;\n Mock : : VerifyAndClearExpectations ( creator ) ;\n EXPECT_TRUE ( IsPendingCustodianApproval ( id ) ) ;\n }\n TEST_F ( ExtensionServiceTestSupervised , UpdateWithPermissionIncreaseApprovalMatchingVersion ) {\n InitServices ( true ) ;\n MockPermissionRequestCreator * creator = new MockPermissionRequestCreator ;\n supervised_user_service ( ) -> AddPermissionRequestCreator ( base : : WrapUnique ( creator ) ) ;\n std : : string id = InstallPermissionsTestExtension ( true ) ;\n const std : : string version2 ( \"2\" ) ;\n EXPECT_CALL ( * creator , CreateExtensionUpdateRequest ( RequestId ( id , version2 ) , testing : : _ ) ) ;\n UpdatePermissionsTestExtension ( id , version2 , DISABLED ) ;\n Mock : : VerifyAndClearExpectations ( creator ) ;\n EXPECT_TRUE ( IsPendingCustodianApproval ( id ) ) ;\n sync_pb : : EntitySpecifics specifics ;\n sync_pb : : ExtensionSpecifics * ext_specifics = specifics . mutable_extension ( ) ;\n ext_specifics -> set_id ( id ) ;\n ext_specifics -> set_enabled ( true ) ;\n ext_specifics -> set_disable_reasons ( extensions : : disable_reason : : DISABLE_NONE ) ;\n ext_specifics -> set_installed_by_custodian ( true ) ;\n ext_specifics -> set_version ( version2 ) ;\n SyncChangeList list = MakeSyncChangeList ( id , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n EXPECT_FALSE ( IsPendingCustodianApproval ( id ) ) ;\n }\n TEST_F ( ExtensionServiceTestSupervised , UpdateWithPermissionIncreaseApprovalNewVersion ) {\n InitServices ( true ) ;\n MockPermissionRequestCreator * creator = new MockPermissionRequestCreator ;\n supervised_user_service ( ) -> AddPermissionRequestCreator ( base : : WrapUnique ( creator ) ) ;\n std : : string id = InstallPermissionsTestExtension ( true ) ;\n const std : : string version2 ( \"2\" ) ;\n EXPECT_CALL ( * creator , CreateExtensionUpdateRequest ( RequestId ( id , version2 ) , testing : : _ ) ) ;\n UpdatePermissionsTestExtension ( id , version2 , DISABLED ) ;\n Mock : : VerifyAndClearExpectations ( creator ) ;\n const std : : string version3 ( \"3\" ) ;\n sync_pb : : EntitySpecifics specifics ;\n sync_pb : : ExtensionSpecifics * ext_specifics = specifics . mutable_extension ( ) ;\n ext_specifics -> set_id ( id ) ;\n ext_specifics -> set_enabled ( true ) ;\n ext_specifics -> set_disable_reasons ( extensions : : disable_reason : : DISABLE_NONE ) ;\n ext_specifics -> set_installed_by_custodian ( true ) ;\n ext_specifics -> set_version ( version3 ) ;\n EXPECT_CALL ( * creator , CreateExtensionUpdateRequest ( RequestId ( id , version3 ) , testing : : _ ) ) . Times ( 0 ) ;\n SyncChangeList list = MakeSyncChangeList ( id , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_FALSE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n EXPECT_TRUE ( extension_sync_service ( ) -> HasPendingReenable ( id , base : : Version ( version3 ) ) ) ;\n UpdatePermissionsTestExtension ( id , version3 , ENABLED ) ;\n }\n TEST_F ( ExtensionServiceTestSupervised , SupervisedUserInitiatedInstalls ) {\n InitSupervisedUserInitiatedExtensionInstallFeature ( true ) ;\n InitServices ( true ) ;\n MockPermissionRequestCreator * creator = new MockPermissionRequestCreator ;\n supervised_user_service ( ) -> AddPermissionRequestCreator ( base : : WrapUnique ( creator ) ) ;\n base : : FilePath path = data_dir ( ) . AppendASCII ( \"good.crx\" ) ;\n std : : string version ( \"1.0.0.0\" ) ;\n EXPECT_CALL ( * creator , CreateExtensionInstallRequest ( RequestId ( good_crx , version ) , testing : : _ ) ) ;\n const Extension * extension = InstallCRX ( path , INSTALL_WITHOUT_LOAD ) ;\n ASSERT_TRUE ( extension ) ;\n ASSERT_EQ ( extension -> id ( ) , good_crx ) ;\n EXPECT_TRUE ( registry ( ) -> disabled_extensions ( ) . Contains ( good_crx ) ) ;\n Mock : : VerifyAndClearExpectations ( creator ) ;\n EXPECT_TRUE ( IsPendingCustodianApproval ( extension -> id ( ) ) ) ;\n SimulateCustodianApprovalChangeViaSync ( good_crx , version , SyncChange : : ACTION_ADD ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( good_crx ) ) ;\n EXPECT_FALSE ( IsPendingCustodianApproval ( extension -> id ( ) ) ) ;\n SimulateCustodianApprovalChangeViaSync ( good_crx , version , SyncChange : : ACTION_DELETE ) ;\n EXPECT_TRUE ( registry ( ) -> disabled_extensions ( ) . Contains ( good_crx ) ) ;\n EXPECT_TRUE ( IsPendingCustodianApproval ( extension -> id ( ) ) ) ;\n }\n TEST_F ( ExtensionServiceTestSupervised , UpdateSUInitiatedInstallWithoutPermissionIncrease ) {\n InitSupervisedUserInitiatedExtensionInstallFeature ( true ) ;\n InitServices ( true ) ;\n std : : string id = InstallNoPermissionsTestExtension ( false ) ;\n std : : string version1 ( \"1\" ) ;\n SimulateCustodianApprovalChangeViaSync ( id , version1 , SyncChange : : ACTION_ADD ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n std : : string version2 ( \"2\" ) ;\n UpdateNoPermissionsTestExtension ( id , version2 , ENABLED ) ;\n const Extension * extension = registry ( ) -> enabled_extensions ( ) . GetByID ( id ) ;\n ASSERT_TRUE ( extension ) ;\n EXPECT_EQ ( 1 , extension -> version ( ) -> CompareTo ( base : : Version ( version1 ) ) ) ;\n std : : string approved_version ;\n PrefService * pref_service = profile ( ) -> GetPrefs ( ) ;\n const base : : DictionaryValue * approved_extensions = pref_service -> GetDictionary ( prefs : : kSupervisedUserApprovedExtensions ) ;\n approved_extensions -> GetStringWithoutPathExpansion ( id , & approved_version ) ;\n EXPECT_EQ ( base : : Version ( approved_version ) , * extension -> version ( ) ) ;\n EXPECT_FALSE ( IsPendingCustodianApproval ( id ) ) ;\n }\n TEST_F ( ExtensionServiceTestSupervised , UpdateSUInitiatedInstallWithPermissionIncrease ) {\n InitSupervisedUserInitiatedExtensionInstallFeature ( true ) ;\n InitServices ( true ) ;\n std : : string id = InstallPermissionsTestExtension ( false ) ;\n std : : string version1 ( \"1\" ) ;\n SimulateCustodianApprovalChangeViaSync ( id , version1 , SyncChange : : ACTION_ADD ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n std : : string version3 ( \"3\" ) ;\n UpdatePermissionsTestExtension ( id , version3 , DISABLED ) ;\n EXPECT_FALSE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n EXPECT_TRUE ( ExtensionPrefs : : Get ( profile ( ) ) -> HasDisableReason ( id , extensions : : disable_reason : : DISABLE_PERMISSIONS_INCREASE ) ) ;\n std : : string version2 ( \"2\" ) ;\n SimulateCustodianApprovalChangeViaSync ( id , version2 , SyncChange : : ACTION_UPDATE ) ;\n EXPECT_FALSE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n EXPECT_TRUE ( ExtensionPrefs : : Get ( profile ( ) ) -> HasDisableReason ( id , extensions : : disable_reason : : DISABLE_PERMISSIONS_INCREASE ) ) ;\n EXPECT_TRUE ( ExtensionPrefs : : Get ( profile ( ) ) -> HasDisableReason ( id , extensions : : disable_reason : : DISABLE_CUSTODIAN_APPROVAL_REQUIRED ) ) ;\n EXPECT_TRUE ( IsPendingCustodianApproval ( id ) ) ;\n SimulateCustodianApprovalChangeViaSync ( id , version3 , SyncChange : : ACTION_UPDATE ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n EXPECT_FALSE ( IsPendingCustodianApproval ( id ) ) ;\n }\n TEST_F ( ExtensionServiceTestSupervised , UpdateSUInitiatedInstallWithPermissionIncreaseApprovalArrivesFirst ) {\n InitSupervisedUserInitiatedExtensionInstallFeature ( true ) ;\n InitServices ( true ) ;\n std : : string id = InstallPermissionsTestExtension ( false ) ;\n std : : string version1 ( \"1\" ) ;\n SimulateCustodianApprovalChangeViaSync ( id , version1 , SyncChange : : ACTION_ADD ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n std : : string version2 ( \"2\" ) ;\n SimulateCustodianApprovalChangeViaSync ( id , version2 , SyncChange : : ACTION_UPDATE ) ;\n CheckDisabledForCustodianApproval ( id ) ;\n UpdatePermissionsTestExtension ( id , version2 , ENABLED ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( id ) ) ;\n EXPECT_FALSE ( IsPendingCustodianApproval ( id ) ) ;\n }\n TEST_F ( ExtensionServiceSyncTest , SyncUninstallByCustodianSkipsPolicy ) {\n InitializeEmptyExtensionService ( ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , syncer : : SyncDataList ( ) , base : : MakeUnique < syncer : : FakeSyncChangeProcessor > ( ) , base : : MakeUnique < syncer : : SyncErrorFactoryMock > ( ) ) ;\n extensions : : util : : SetWasInstalledByCustodian ( good2048 , profile ( ) , true ) ;\n base : : FilePath path1 = data_dir ( ) . AppendASCII ( \"good.crx\" ) ;\n base : : FilePath path2 = data_dir ( ) . AppendASCII ( \"good2048.crx\" ) ;\n const Extension * extensions [ ] = {\n InstallCRX ( path1 , INSTALL_NEW ) , InstallCRX ( path2 , INSTALL_NEW ) }\n ;\n extensions : : TestManagementPolicyProvider provider ( extensions : : TestManagementPolicyProvider : : PROHIBIT_MODIFY_STATUS ) ;\n ExtensionSystem : : Get ( browser_context ( ) ) -> management_policy ( ) -> RegisterProvider ( & provider ) ;\n SyncChangeList list ;\n for ( size_t i = 0 ;\n i < arraysize ( extensions ) ;\n i ++ ) {\n const std : : string & id = extensions [ i ] -> id ( ) ;\n sync_pb : : EntitySpecifics specifics ;\n sync_pb : : ExtensionSpecifics * ext_specifics = specifics . mutable_extension ( ) ;\n ext_specifics -> set_id ( id ) ;\n ext_specifics -> set_version ( \"1.0\" ) ;\n ext_specifics -> set_installed_by_custodian ( extensions : : util : : WasInstalledByCustodian ( id , profile ( ) ) ) ;\n syncer : : SyncData sync_data = syncer : : SyncData : : CreateLocalData ( id , \"Name\" , specifics ) ;\n list . push_back ( SyncChange ( FROM_HERE , SyncChange : : ACTION_DELETE , sync_data ) ) ;\n }\n std : : string extension_ids [ ] = {\n extensions [ 0 ] -> id ( ) , extensions [ 1 ] -> id ( ) }\n ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . Contains ( extension_ids [ 0 ] ) ) ;\n EXPECT_FALSE ( registry ( ) -> GenerateInstalledExtensionsSet ( ) -> Contains ( extension_ids [ 1 ] ) ) ;\n }\n TEST_F ( ExtensionServiceSyncTest , SyncExtensionHasAllhostsWithheld ) {\n InitializeEmptyExtensionService ( ) ;\n StartSyncing ( syncer : : EXTENSIONS ) ;\n const std : : string kName ( \"extension\" ) ;\n scoped_refptr < const Extension > extension = extensions : : ExtensionBuilder ( kName ) . SetLocation ( Manifest : : INTERNAL ) . AddPermission ( \"*://*/*\" ) . Build ( ) ;\n service ( ) -> AddExtension ( extension . get ( ) ) ;\n service ( ) -> GrantPermissionsAndEnableExtension ( extension . get ( ) ) ;\n const std : : string id = extension -> id ( ) ;\n EXPECT_TRUE ( registry ( ) -> enabled_extensions ( ) . GetByID ( id ) ) ;\n sync_pb : : EntitySpecifics specifics ;\n sync_pb : : ExtensionSpecifics * ext_specifics = specifics . mutable_extension ( ) ;\n ext_specifics -> set_id ( id ) ;\n ext_specifics -> set_name ( kName ) ;\n ext_specifics -> set_version ( \"1.0\" ) ;\n ext_specifics -> set_all_urls_enabled ( false ) ;\n ext_specifics -> set_enabled ( true ) ;\n SyncChangeList list = MakeSyncChangeList ( id , specifics , SyncChange : : ACTION_UPDATE ) ;\n extension_sync_service ( ) -> ProcessSyncChanges ( FROM_HERE , list ) ;\n const Extension * enabled_extension = registry ( ) -> enabled_extensions ( ) . GetByID ( id ) ;\n ASSERT_TRUE ( enabled_extension ) ;\n ScriptingPermissionsModifier modifier ( profile ( ) , enabled_extension ) ;\n EXPECT_FALSE ( modifier . IsAllowedOnAllUrls ( ) ) ;\n EXPECT_TRUE ( modifier . HasSetAllowedOnAllUrls ( ) ) ;\n }\n # endif TEST_F ( ExtensionServiceSyncTest , AppToExtension ) {\n InitializeEmptyExtensionService ( ) ;\n service ( ) -> Init ( ) ;\n ASSERT_TRUE ( service ( ) -> is_ready ( ) ) ;\n const Extension * v1 = InstallCRX ( data_dir ( ) . AppendASCII ( \"sync_datatypes\" ) . AppendASCII ( \"v1.crx\" ) , INSTALL_NEW ) ;\n EXPECT_TRUE ( v1 -> is_app ( ) ) ;\n EXPECT_FALSE ( v1 -> is_extension ( ) ) ;\n std : : string id = v1 -> id ( ) ;\n StatefulChangeProcessor extensions_processor ( syncer : : ModelType : : EXTENSIONS ) ;\n StatefulChangeProcessor apps_processor ( syncer : : ModelType : : APPS ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , syncer : : SyncDataList ( ) , extensions_processor . GetWrapped ( ) , base : : WrapUnique ( new syncer : : SyncErrorFactoryMock ( ) ) ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : APPS , syncer : : SyncDataList ( ) , apps_processor . GetWrapped ( ) , base : : WrapUnique ( new syncer : : SyncErrorFactoryMock ( ) ) ) ;\n EXPECT_TRUE ( extensions_processor . changes ( ) . empty ( ) ) ;\n EXPECT_TRUE ( extensions_processor . data ( ) . empty ( ) ) ;\n EXPECT_EQ ( 1u , apps_processor . data ( ) . size ( ) ) ;\n ASSERT_EQ ( 1u , apps_processor . changes ( ) . size ( ) ) ;\n const SyncChange & app_change = apps_processor . changes ( ) [ 0 ] ;\n EXPECT_EQ ( SyncChange : : ACTION_ADD , app_change . change_type ( ) ) ;\n std : : unique_ptr < ExtensionSyncData > app_data = ExtensionSyncData : : CreateFromSyncData ( app_change . sync_data ( ) ) ;\n EXPECT_TRUE ( app_data -> is_app ( ) ) ;\n EXPECT_EQ ( id , app_data -> id ( ) ) ;\n EXPECT_EQ ( * v1 -> version ( ) , app_data -> version ( ) ) ;\n const Extension * v2 = InstallCRX ( data_dir ( ) . AppendASCII ( \"sync_datatypes\" ) . AppendASCII ( \"v2.crx\" ) , INSTALL_UPDATED ) ;\n EXPECT_FALSE ( v2 -> is_app ( ) ) ;\n EXPECT_TRUE ( v2 -> is_extension ( ) ) ;\n EXPECT_EQ ( id , v2 -> id ( ) ) ;\n ASSERT_EQ ( 1u , extensions_processor . changes ( ) . size ( ) ) ;\n const SyncChange & extension_change = extensions_processor . changes ( ) [ 0 ] ;\n EXPECT_EQ ( SyncChange : : ACTION_ADD , extension_change . change_type ( ) ) ;\n std : : unique_ptr < ExtensionSyncData > extension_data = ExtensionSyncData : : CreateFromSyncData ( extension_change . sync_data ( ) ) ;\n EXPECT_FALSE ( extension_data -> is_app ( ) ) ;\n EXPECT_EQ ( id , extension_data -> id ( ) ) ;\n EXPECT_EQ ( * v2 -> version ( ) , extension_data -> version ( ) ) ;\n syncer : : SyncDataList extensions_data = extensions_processor . GetAllSyncData ( syncer : : EXTENSIONS ) ;\n syncer : : SyncDataList apps_data = apps_processor . GetAllSyncData ( syncer : : APPS ) ;\n extension_sync_service ( ) -> StopSyncing ( syncer : : EXTENSIONS ) ;\n extension_sync_service ( ) -> StopSyncing ( syncer : : APPS ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , extensions_data , extensions_processor . GetWrapped ( ) , base : : WrapUnique ( new syncer : : SyncErrorFactoryMock ( ) ) ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : APPS , apps_data , apps_processor . GetWrapped ( ) , base : : WrapUnique ( new syncer : : SyncErrorFactoryMock ( ) ) ) ;\n bool found_delete = false ;\n for ( const auto & change : apps_processor . changes ( ) ) {\n if ( change . change_type ( ) == SyncChange : : ACTION_DELETE ) {\n std : : unique_ptr < ExtensionSyncData > data = ExtensionSyncData : : CreateFromSyncChange ( change ) ;\n if ( data -> id ( ) == id ) {\n found_delete = true ;\n break ;\n }\n }\n }\n EXPECT_TRUE ( found_delete ) ;\n EXPECT_EQ ( 1u , extensions_processor . data ( ) . size ( ) ) ;\n EXPECT_TRUE ( apps_processor . data ( ) . empty ( ) ) ;\n }"}
{"idx": 19132, "target": 1, "func": "int MBS_ReadHeader ( int fd , MBSPatchHeader * header ) {\n int s = read ( fd , header , sizeof ( MBSPatchHeader ) ) ;\n if ( s != sizeof ( MBSPatchHeader ) ) return READ_ERROR ;\n header -> slen = ntohl ( header -> slen ) ;\n header -> scrc32 = ntohl ( header -> scrc32 ) ;\n header -> dlen = ntohl ( header -> dlen ) ;\n header -> cblen = ntohl ( header -> cblen ) ;\n header -> difflen = ntohl ( header -> difflen ) ;\n header -> extralen = ntohl ( header -> extralen ) ;\n struct stat hs ;\n s = fstat ( fd , & hs ) ;\n if ( s ) return READ_ERROR ;\n if ( memcmp ( header -> tag , \"MBDIFF10\" , 8 ) != 0 ) return UNEXPECTED_ERROR ;\n if ( sizeof ( MBSPatchHeader ) + header -> cblen + header -> difflen + header -> extralen != int ( hs . st_size ) ) return UNEXPECTED_ERROR ;\n return OK ;\n }"}
{"idx": 19133, "target": 0, "func": "static int mytest_handler ( TSCont contp , TSEvent event , void * data ) {\n SocketTest * test = ( SocketTest * ) TSContDataGet ( contp ) ;\n if ( test == nullptr ) {\n if ( ( event == TS_EVENT_IMMEDIATE ) || ( event == TS_EVENT_TIMEOUT ) ) {\n return 0 ;\n }\n TSHttpTxnReenable ( ( TSHttpTxn ) data , TS_EVENT_HTTP_CONTINUE ) ;\n return 0 ;\n }\n TSAssert ( test -> magic == MAGIC_ALIVE ) ;\n TSAssert ( test -> browser -> magic == MAGIC_ALIVE ) ;\n switch ( event ) {\n case TS_EVENT_HTTP_TXN_START : if ( test -> hook_mask == 0 ) {\n test -> hook_mask |= 1 ;\n }\n TSHttpTxnReenable ( ( TSHttpTxn ) data , TS_EVENT_HTTP_CONTINUE ) ;\n test -> reenable_mask |= 1 ;\n break ;\n case TS_EVENT_HTTP_READ_REQUEST_HDR : if ( test -> hook_mask == 1 ) {\n test -> hook_mask |= 2 ;\n }\n TSSkipRemappingSet ( ( TSHttpTxn ) data , 1 ) ;\n checkHttpTxnClientReqGet ( test , data ) ;\n TSHttpTxnReenable ( ( TSHttpTxn ) data , TS_EVENT_HTTP_CONTINUE ) ;\n test -> reenable_mask |= 2 ;\n break ;\n case TS_EVENT_HTTP_OS_DNS : if ( test -> hook_mask == 3 || test -> hook_mask == 7 ) {\n test -> hook_mask |= 8 ;\n }\n checkHttpTxnIncomingAddrGet ( test , data ) ;\n checkHttpTxnClientAddrGet ( test , data ) ;\n checkHttpTxnClientIPGet ( test , data ) ;\n checkHttpTxnServerIPGet ( test , data ) ;\n TSHttpTxnReenable ( ( TSHttpTxn ) data , TS_EVENT_HTTP_CONTINUE ) ;\n test -> reenable_mask |= 8 ;\n break ;\n case TS_EVENT_HTTP_CACHE_LOOKUP_COMPLETE : if ( test -> hook_mask == 3 || test -> hook_mask == 11 ) {\n test -> hook_mask |= 4 ;\n }\n TSHttpTxnReenable ( ( TSHttpTxn ) data , TS_EVENT_HTTP_CONTINUE ) ;\n test -> reenable_mask |= 4 ;\n break ;\n case TS_EVENT_HTTP_SEND_REQUEST_HDR : if ( test -> hook_mask == 15 ) {\n test -> hook_mask |= 16 ;\n }\n checkHttpTxnServerReqGet ( test , data ) ;\n checkHttpTxnNextHopIPGet ( test , data ) ;\n checkHttpTxnClientProtocolStackContains ( test , data ) ;\n checkHttpTxnClientProtocolStackGet ( test , data ) ;\n TSHttpTxnReenable ( ( TSHttpTxn ) data , TS_EVENT_HTTP_CONTINUE ) ;\n test -> reenable_mask |= 16 ;\n break ;\n case TS_EVENT_HTTP_READ_RESPONSE_HDR : if ( test -> hook_mask == 31 ) {\n test -> hook_mask |= 32 ;\n }\n checkHttpTxnServerRespGet ( test , data ) ;\n TSHttpTxnReenable ( ( TSHttpTxn ) data , TS_EVENT_HTTP_CONTINUE ) ;\n test -> reenable_mask |= 32 ;\n break ;\n case TS_EVENT_HTTP_SEND_RESPONSE_HDR : if ( test -> hook_mask == 63 ) {\n test -> hook_mask |= 64 ;\n }\n checkHttpTxnClientRespGet ( test , data ) ;\n TSHttpTxnReenable ( ( TSHttpTxn ) data , TS_EVENT_HTTP_CONTINUE ) ;\n test -> reenable_mask |= 64 ;\n break ;\n case TS_EVENT_HTTP_TXN_CLOSE : if ( test -> hook_mask == 127 ) {\n test -> hook_mask |= 128 ;\n }\n TSHttpTxnReenable ( ( TSHttpTxn ) data , TS_EVENT_HTTP_CONTINUE ) ;\n test -> reenable_mask |= 128 ;\n break ;\n case TS_EVENT_IMMEDIATE : case TS_EVENT_TIMEOUT : if ( test -> browser -> status == REQUEST_INPROGRESS ) {\n TSContSchedule ( contp , 25 , TS_THREAD_POOL_DEFAULT ) ;\n }\n else {\n if ( ( test -> browser -> status == REQUEST_SUCCESS ) && ( test -> hook_mask == 255 ) ) {\n * ( test -> pstatus ) = REGRESSION_TEST_PASSED ;\n SDK_RPRINT ( test -> regtest , \"TSHttpHookAdd\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n else {\n * ( test -> pstatus ) = REGRESSION_TEST_FAILED ;\n SDK_RPRINT ( test -> regtest , \"TSHttpHookAdd\" , \"TestCase1\" , TC_FAIL , \"Hooks not called or request failure. Hook mask = %d\\n %s\" , test -> hook_mask , test -> browser -> response ) ;\n }\n if ( test -> reenable_mask == 255 ) {\n SDK_RPRINT ( test -> regtest , \"TSHttpTxnReenable\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n else {\n * ( test -> pstatus ) = REGRESSION_TEST_FAILED ;\n SDK_RPRINT ( test -> regtest , \"TSHttpTxnReenable\" , \"TestCase1\" , TC_FAIL , \"Txn not re-enabled properly\" ) ;\n }\n if ( ( test -> test_client_ip_get != true ) || ( test -> test_client_incoming_port_get != true ) || ( test -> test_client_remote_port_get != true ) || ( test -> test_client_req_get != true ) || ( test -> test_client_resp_get != true ) || ( test -> test_server_ip_get != true ) || ( test -> test_server_req_get != true ) || ( test -> test_server_resp_get != true ) || ( test -> test_next_hop_ip_get != true ) ) {\n * ( test -> pstatus ) = REGRESSION_TEST_FAILED ;\n }\n synclient_txn_delete ( test -> browser ) ;\n synserver_delete ( test -> os ) ;\n test -> os = nullptr ;\n test -> magic = MAGIC_DEAD ;\n TSfree ( test ) ;\n TSContDataSet ( contp , nullptr ) ;\n }\n break ;\n default : * ( test -> pstatus ) = REGRESSION_TEST_FAILED ;\n SDK_RPRINT ( test -> regtest , \"TSHttpHookAdd\" , \"TestCase1\" , TC_FAIL , \"Unexpected event %d\" , event ) ;\n break ;\n }\n return TS_EVENT_IMMEDIATE ;\n }"}
{"idx": 19134, "target": 0, "func": "static LaunchLocation * launch_location_from_file ( NautilusFile * file ) {\n LaunchLocation * location ;\n location = g_new ( LaunchLocation , 1 ) ;\n location -> file = nautilus_file_ref ( file ) ;\n location -> uri = nautilus_file_get_uri ( file ) ;\n return location ;\n }"}
{"idx": 19135, "target": 0, "func": "static int gfboost_qadjust ( int qindex , vpx_bit_depth_t bit_depth ) {\n const double q = vp9_convert_qindex_to_q ( qindex , bit_depth ) ;\n return ( int ) ( ( 0.00000828 * q * q * q ) + ( - 0.0055 * q * q ) + ( 1.32 * q ) + 79.3 ) ;\n }"}
{"idx": 19136, "target": 1, "func": "static inline int pic_is_unused ( MpegEncContext * s , Picture * pic ) {\n if ( pic -> f . data [ 0 ] == NULL ) return 1 ;\n if ( pic -> needs_realloc && ! ( pic -> f . reference & DELAYED_PIC_REF ) ) if ( ! pic -> owner2 || pic -> owner2 == s ) return 1 ;\n return 0 ;\n }"}
{"idx": 19137, "target": 0, "func": "static guint16 de_notif_ind ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n proto_tree_add_item ( tree , hf_gsm_a_extension , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_gsm_a_dtap_notification_description , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n return 1 ;\n }"}
{"idx": 19138, "target": 1, "func": "static __inline__ void ethtool_cmd_speed_set ( struct ethtool_cmd * ep , __u32 speed ) {\n ep -> speed = ( __u16 ) ( speed & 0xFFFF ) ;\n ep -> speed_hi = ( __u16 ) ( speed >> 16 ) ;\n }"}
{"idx": 19139, "target": 0, "func": "static int com_connect ( String * buffer , char * line ) {\n char * tmp , buff [ 256 ] ;\n my_bool save_rehash = opt_rehash ;\n int error ;\n bzero ( buff , sizeof ( buff ) ) ;\n if ( buffer ) {\n tmp = strmake ( buff , line , sizeof ( buff ) - 2 ) ;\n # ifdef EXTRA_DEBUG tmp [ 1 ] = 0 ;\n # endif tmp = get_arg ( buff , GET ) ;\n if ( tmp && * tmp ) {\n my_free ( current_db ) ;\n current_db = my_strdup ( tmp , MYF ( MY_WME ) ) ;\n tmp = get_arg ( buff , GET_NEXT ) ;\n if ( tmp ) {\n my_free ( current_host ) ;\n current_host = my_strdup ( tmp , MYF ( MY_WME ) ) ;\n }\n }\n else {\n opt_rehash = 0 ;\n }\n buffer -> length ( 0 ) ;\n }\n else opt_rehash = 0 ;\n error = sql_connect ( current_host , current_db , current_user , opt_password , 0 ) ;\n opt_rehash = save_rehash ;\n if ( connected ) {\n sprintf ( buff , \"Connection id: %lu\" , mysql_thread_id ( & mysql ) ) ;\n put_info ( buff , INFO_INFO ) ;\n sprintf ( buff , \"Current database: %.128s\\n\" , current_db ? current_db : \"*** NONE ***\" ) ;\n put_info ( buff , INFO_INFO ) ;\n }\n return error ;\n }"}
{"idx": 19140, "target": 0, "func": "static void process_gitlink ( struct rev_info * revs , const unsigned char * sha1 , show_object_fn show , struct strbuf * path , const char * name , void * cb_data ) {\n }"}
{"idx": 19141, "target": 0, "func": "static void _hb_ ## name ## _destroy ( hb_ ## name ## _t * l ) {\n free ( l ) ;\n }\n HB_DEFINE_BOXED_TYPE ( name , _hb_ ## name ## _reference , _hb_ ## name ## _destroy ) ;\n HB_DEFINE_OBJECT_TYPE ( buffer ) HB_DEFINE_OBJECT_TYPE ( blob ) HB_DEFINE_OBJECT_TYPE ( face ) HB_DEFINE_OBJECT_TYPE ( font ) HB_DEFINE_OBJECT_TYPE ( font_funcs ) HB_DEFINE_OBJECT_TYPE ( set ) HB_DEFINE_OBJECT_TYPE ( shape_plan ) HB_DEFINE_OBJECT_TYPE ( unicode_funcs ) HB_DEFINE_VALUE_TYPE ( feature ) HB_DEFINE_VALUE_TYPE ( glyph_info ) HB_DEFINE_VALUE_TYPE ( glyph_position )"}
{"idx": 19142, "target": 0, "func": "static void cchip_write ( void * opaque , hwaddr addr , uint64_t v32 , unsigned size ) {\n TyphoonState * s = opaque ;\n uint64_t val , oldval , newval ;\n if ( addr & 4 ) {\n val = v32 << 32 | s -> latch_tmp ;\n addr ^= 4 ;\n }\n else {\n s -> latch_tmp = v32 ;\n return ;\n }\n switch ( addr ) {\n case 0x0000 : break ;\n case 0x0040 : break ;\n case 0x0080 : newval = oldval = s -> cchip . misc ;\n newval &= ~ ( val & 0x10000ff0 ) ;\n if ( val & 0x100000 ) {\n newval &= ~ 0xff0000ull ;\n }\n else {\n newval |= val & 0x00f00000 ;\n if ( ( newval & 0xf0000 ) == 0 ) {\n newval |= val & 0xf0000 ;\n }\n }\n newval |= ( val & 0xf000 ) >> 4 ;\n newval &= ~ 0xf0000000000ull ;\n newval |= val & 0xf0000000000ull ;\n s -> cchip . misc = newval ;\n if ( ( newval ^ oldval ) & 0xff0 ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) {\n AlphaCPU * cpu = s -> cchip . cpu [ i ] ;\n if ( cpu != NULL ) {\n CPUState * cs = CPU ( cpu ) ;\n if ( newval & ( 1 << ( i + 8 ) ) ) {\n cpu_interrupt ( cs , CPU_INTERRUPT_SMP ) ;\n }\n else {\n cpu_reset_interrupt ( cs , CPU_INTERRUPT_SMP ) ;\n }\n if ( ( newval & ( 1 << ( i + 4 ) ) ) == 0 ) {\n cpu_reset_interrupt ( cs , CPU_INTERRUPT_TIMER ) ;\n }\n }\n }\n }\n break ;\n case 0x00c0 : break ;\n case 0x0100 : case 0x0140 : case 0x0180 : case 0x01c0 : break ;\n case 0x0200 : s -> cchip . dim [ 0 ] = val ;\n cpu_irq_change ( s -> cchip . cpu [ 0 ] , val & s -> cchip . drir ) ;\n break ;\n case 0x0240 : s -> cchip . dim [ 0 ] = val ;\n cpu_irq_change ( s -> cchip . cpu [ 1 ] , val & s -> cchip . drir ) ;\n break ;\n case 0x0280 : case 0x02c0 : case 0x0300 : break ;\n case 0x0340 : break ;\n case 0x0380 : s -> cchip . iic [ 0 ] = val & 0xffffff ;\n break ;\n case 0x03c0 : s -> cchip . iic [ 1 ] = val & 0xffffff ;\n break ;\n case 0x0400 : case 0x0440 : case 0x0480 : case 0x04c0 : break ;\n case 0x0580 : break ;\n case 0x05c0 : break ;\n case 0x0600 : s -> cchip . dim [ 2 ] = val ;\n cpu_irq_change ( s -> cchip . cpu [ 2 ] , val & s -> cchip . drir ) ;\n break ;\n case 0x0640 : s -> cchip . dim [ 3 ] = val ;\n cpu_irq_change ( s -> cchip . cpu [ 3 ] , val & s -> cchip . drir ) ;\n break ;\n case 0x0680 : case 0x06c0 : break ;\n case 0x0700 : s -> cchip . iic [ 2 ] = val & 0xffffff ;\n break ;\n case 0x0740 : s -> cchip . iic [ 3 ] = val & 0xffffff ;\n break ;\n case 0x0780 : break ;\n case 0x0c00 : case 0x0c40 : case 0x0c80 : case 0x0cc0 : break ;\n default : cpu_unassigned_access ( current_cpu , addr , true , false , 0 , size ) ;\n return ;\n }\n }"}
{"idx": 19143, "target": 0, "func": "static void InSymbol ( cmsIT8 * it8 ) {\n register char * idptr ;\n register int k ;\n SYMBOL key ;\n int sng ;\n do {\n while ( isseparator ( it8 -> ch ) ) NextCh ( it8 ) ;\n if ( isfirstidchar ( it8 -> ch ) ) {\n k = 0 ;\n idptr = it8 -> id ;\n do {\n if ( ++ k < MAXID ) * idptr ++ = ( char ) it8 -> ch ;\n NextCh ( it8 ) ;\n }\n while ( isidchar ( it8 -> ch ) ) ;\n * idptr = '\\0' ;\n key = BinSrchKey ( it8 -> id ) ;\n if ( key == SUNDEFINED ) it8 -> sy = SIDENT ;\n else it8 -> sy = key ;\n }\n else if ( isdigit ( it8 -> ch ) || it8 -> ch == '.' || it8 -> ch == '-' || it8 -> ch == '+' ) {\n int sign = 1 ;\n if ( it8 -> ch == '-' ) {\n sign = - 1 ;\n NextCh ( it8 ) ;\n }\n it8 -> inum = 0 ;\n it8 -> sy = SINUM ;\n if ( it8 -> ch == '0' ) {\n NextCh ( it8 ) ;\n if ( toupper ( it8 -> ch ) == 'X' ) {\n int j ;\n NextCh ( it8 ) ;\n while ( isxdigit ( it8 -> ch ) ) {\n it8 -> ch = toupper ( it8 -> ch ) ;\n if ( it8 -> ch >= 'A' && it8 -> ch <= 'F' ) j = it8 -> ch - 'A' + 10 ;\n else j = it8 -> ch - '0' ;\n if ( ( cmsFloat64Number ) it8 -> inum * 16.0 + ( cmsFloat64Number ) j > ( cmsFloat64Number ) + 2147483647.0 ) {\n SynError ( it8 , \"Invalid hexadecimal number\" ) ;\n return ;\n }\n it8 -> inum = it8 -> inum * 16 + j ;\n NextCh ( it8 ) ;\n }\n return ;\n }\n if ( toupper ( it8 -> ch ) == 'B' ) {\n int j ;\n NextCh ( it8 ) ;\n while ( it8 -> ch == '0' || it8 -> ch == '1' ) {\n j = it8 -> ch - '0' ;\n if ( ( cmsFloat64Number ) it8 -> inum * 2.0 + j > ( cmsFloat64Number ) + 2147483647.0 ) {\n SynError ( it8 , \"Invalid binary number\" ) ;\n return ;\n }\n it8 -> inum = it8 -> inum * 2 + j ;\n NextCh ( it8 ) ;\n }\n return ;\n }\n }\n while ( isdigit ( it8 -> ch ) ) {\n cmsInt32Number digit = ( it8 -> ch - '0' ) ;\n if ( ( cmsFloat64Number ) it8 -> inum * 10.0 + ( cmsFloat64Number ) digit > ( cmsFloat64Number ) + 2147483647.0 ) {\n ReadReal ( it8 , it8 -> inum ) ;\n it8 -> sy = SDNUM ;\n it8 -> dnum *= sign ;\n return ;\n }\n it8 -> inum = it8 -> inum * 10 + digit ;\n NextCh ( it8 ) ;\n }\n if ( it8 -> ch == '.' ) {\n ReadReal ( it8 , it8 -> inum ) ;\n it8 -> sy = SDNUM ;\n it8 -> dnum *= sign ;\n return ;\n }\n it8 -> inum *= sign ;\n if ( isidchar ( it8 -> ch ) ) {\n if ( it8 -> sy == SINUM ) {\n snprintf ( it8 -> id , 127 , \"%d\" , it8 -> inum ) ;\n }\n else {\n snprintf ( it8 -> id , 127 , it8 -> DoubleFormatter , it8 -> dnum ) ;\n }\n k = ( int ) strlen ( it8 -> id ) ;\n idptr = it8 -> id + k ;\n do {\n if ( ++ k < MAXID ) * idptr ++ = ( char ) it8 -> ch ;\n NextCh ( it8 ) ;\n }\n while ( isidchar ( it8 -> ch ) ) ;\n * idptr = '\\0' ;\n it8 -> sy = SIDENT ;\n }\n return ;\n }\n else switch ( ( int ) it8 -> ch ) {\n case '\\x1a' : NextCh ( it8 ) ;\n break ;\n case 0 : case - 1 : it8 -> sy = SEOF ;\n break ;\n case '\\r' : NextCh ( it8 ) ;\n if ( it8 -> ch == '\\n' ) NextCh ( it8 ) ;\n it8 -> sy = SEOLN ;\n it8 -> lineno ++ ;\n break ;\n case '\\n' : NextCh ( it8 ) ;\n it8 -> sy = SEOLN ;\n it8 -> lineno ++ ;\n break ;\n case '#' : NextCh ( it8 ) ;\n while ( it8 -> ch && it8 -> ch != '\\n' && it8 -> ch != '\\r' ) NextCh ( it8 ) ;\n it8 -> sy = SCOMMENT ;\n break ;\n case '\\'' : case '\\\"' : idptr = it8 -> str ;\n sng = it8 -> ch ;\n k = 0 ;\n NextCh ( it8 ) ;\n while ( k < ( MAXSTR - 1 ) && it8 -> ch != sng ) {\n if ( it8 -> ch == '\\n' || it8 -> ch == '\\r' ) k = MAXSTR + 1 ;\n else {\n * idptr ++ = ( char ) it8 -> ch ;\n NextCh ( it8 ) ;\n k ++ ;\n }\n }\n it8 -> sy = SSTRING ;\n * idptr = '\\0' ;\n NextCh ( it8 ) ;\n break ;\n default : SynError ( it8 , \"Unrecognized character: 0x%x\" , it8 -> ch ) ;\n return ;\n }\n }\n while ( it8 -> sy == SCOMMENT ) ;\n if ( it8 -> sy == SINCLUDE ) {\n FILECTX * FileNest ;\n if ( it8 -> IncludeSP >= ( MAXINCLUDE - 1 ) ) {\n SynError ( it8 , \"Too many recursion levels\" ) ;\n return ;\n }\n InSymbol ( it8 ) ;\n if ( ! Check ( it8 , SSTRING , \"Filename expected\" ) ) return ;\n FileNest = it8 -> FileStack [ it8 -> IncludeSP + 1 ] ;\n if ( FileNest == NULL ) {\n FileNest = it8 -> FileStack [ it8 -> IncludeSP + 1 ] = ( FILECTX * ) AllocChunk ( it8 , sizeof ( FILECTX ) ) ;\n }\n if ( BuildAbsolutePath ( it8 -> str , it8 -> FileStack [ it8 -> IncludeSP ] -> FileName , FileNest -> FileName , cmsMAX_PATH - 1 ) == FALSE ) {\n SynError ( it8 , \"File path too long\" ) ;\n return ;\n }\n FileNest -> Stream = fopen ( FileNest -> FileName , \"rt\" ) ;\n if ( FileNest -> Stream == NULL ) {\n SynError ( it8 , \"File %s not found\" , FileNest -> FileName ) ;\n return ;\n }\n it8 -> IncludeSP ++ ;\n it8 -> ch = ' ' ;\n InSymbol ( it8 ) ;\n }\n }"}
{"idx": 19144, "target": 0, "func": "void StartRestoreBlobs ( ArchiveHandle * AH ) {\n RestoreOptions * ropt = AH -> public . ropt ;\n if ( ! ropt -> single_txn ) {\n if ( AH -> connection ) StartTransaction ( & AH -> public ) ;\n else ahprintf ( AH , \"BEGIN;\n\\n\\n\" ) ;\n }\n AH -> blobCount = 0 ;\n }"}
{"idx": 19145, "target": 0, "func": "static int search_try_next ( struct request * const req ) {\n if ( req -> search_state ) {\n char * new_name ;\n struct request * newreq ;\n req -> search_index ++ ;\n if ( req -> search_index >= req -> search_state -> num_domains ) {\n if ( string_num_dots ( req -> search_origname ) < req -> search_state -> ndots ) {\n newreq = request_new ( req -> request_type , req -> search_origname , req -> search_flags , req -> user_callback , req -> user_pointer ) ;\n log ( EVDNS_LOG_DEBUG , \"Search: trying raw query %s\" , req -> search_origname ) ;\n if ( newreq ) {\n request_submit ( newreq ) ;\n return 0 ;\n }\n }\n return 1 ;\n }\n new_name = search_make_new ( req -> search_state , req -> search_index , req -> search_origname ) ;\n if ( ! new_name ) return 1 ;\n log ( EVDNS_LOG_DEBUG , \"Search: now trying %s (%d)\" , new_name , req -> search_index ) ;\n newreq = request_new ( req -> request_type , new_name , req -> search_flags , req -> user_callback , req -> user_pointer ) ;\n free ( new_name ) ;\n if ( ! newreq ) return 1 ;\n newreq -> search_origname = req -> search_origname ;\n req -> search_origname = NULL ;\n newreq -> search_state = req -> search_state ;\n newreq -> search_flags = req -> search_flags ;\n newreq -> search_index = req -> search_index ;\n newreq -> search_state -> refcount ++ ;\n request_submit ( newreq ) ;\n return 0 ;\n }\n return 1 ;\n }"}
{"idx": 19146, "target": 0, "func": "static int matroska_parse_tracks ( AVFormatContext * s ) {\n MatroskaDemuxContext * matroska = s -> priv_data ;\n MatroskaTrack * tracks = matroska -> tracks . elem ;\n AVStream * st ;\n int i , j , ret ;\n for ( i = 0 ;\n i < matroska -> tracks . nb_elem ;\n i ++ ) {\n MatroskaTrack * track = & tracks [ i ] ;\n enum AVCodecID codec_id = AV_CODEC_ID_NONE ;\n EbmlList * encodings_list = & track -> encodings ;\n MatroskaTrackEncoding * encodings = encodings_list -> elem ;\n uint8_t * extradata = NULL ;\n int extradata_size = 0 ;\n int extradata_offset = 0 ;\n AVIOContext b ;\n if ( track -> type != MATROSKA_TRACK_TYPE_VIDEO && track -> type != MATROSKA_TRACK_TYPE_AUDIO && track -> type != MATROSKA_TRACK_TYPE_SUBTITLE ) {\n av_log ( matroska -> ctx , AV_LOG_INFO , \"Unknown or unsupported track type %\" PRIu64 \"\\n\" , track -> type ) ;\n continue ;\n }\n if ( ! track -> codec_id ) continue ;\n if ( track -> type == MATROSKA_TRACK_TYPE_VIDEO ) {\n if ( ! track -> default_duration && track -> video . frame_rate > 0 ) track -> default_duration = 1000000000 / track -> video . frame_rate ;\n if ( ! track -> video . display_width ) track -> video . display_width = track -> video . pixel_width ;\n if ( ! track -> video . display_height ) track -> video . display_height = track -> video . pixel_height ;\n }\n else if ( track -> type == MATROSKA_TRACK_TYPE_AUDIO ) {\n if ( ! track -> audio . out_samplerate ) track -> audio . out_samplerate = track -> audio . samplerate ;\n }\n if ( encodings_list -> nb_elem > 1 ) {\n av_log ( matroska -> ctx , AV_LOG_ERROR , \"Multiple combined encodings not supported\" ) ;\n }\n else if ( encodings_list -> nb_elem == 1 ) {\n if ( encodings [ 0 ] . type || ( # if CONFIG_ZLIB encodings [ 0 ] . compression . algo != MATROSKA_TRACK_ENCODING_COMP_ZLIB && # endif # if CONFIG_BZLIB encodings [ 0 ] . compression . algo != MATROSKA_TRACK_ENCODING_COMP_BZLIB && # endif # if CONFIG_LZO encodings [ 0 ] . compression . algo != MATROSKA_TRACK_ENCODING_COMP_LZO && # endif encodings [ 0 ] . compression . algo != MATROSKA_TRACK_ENCODING_COMP_HEADERSTRIP ) ) {\n encodings [ 0 ] . scope = 0 ;\n av_log ( matroska -> ctx , AV_LOG_ERROR , \"Unsupported encoding type\" ) ;\n }\n else if ( track -> codec_priv . size && encodings [ 0 ] . scope & 2 ) {\n uint8_t * codec_priv = track -> codec_priv . data ;\n int ret = matroska_decode_buffer ( & track -> codec_priv . data , & track -> codec_priv . size , track ) ;\n if ( ret < 0 ) {\n track -> codec_priv . data = NULL ;\n track -> codec_priv . size = 0 ;\n av_log ( matroska -> ctx , AV_LOG_ERROR , \"Failed to decode codec private data\\n\" ) ;\n }\n if ( codec_priv != track -> codec_priv . data ) av_free ( codec_priv ) ;\n }\n }\n for ( j = 0 ;\n ff_mkv_codec_tags [ j ] . id != AV_CODEC_ID_NONE ;\n j ++ ) {\n if ( ! strncmp ( ff_mkv_codec_tags [ j ] . str , track -> codec_id , strlen ( ff_mkv_codec_tags [ j ] . str ) ) ) {\n codec_id = ff_mkv_codec_tags [ j ] . id ;\n break ;\n }\n }\n st = track -> stream = avformat_new_stream ( s , NULL ) ;\n if ( ! st ) return AVERROR ( ENOMEM ) ;\n if ( ! strcmp ( track -> codec_id , \"V_MS/VFW/FOURCC\" ) && track -> codec_priv . size >= 40 && track -> codec_priv . data ) {\n track -> ms_compat = 1 ;\n track -> video . fourcc = AV_RL32 ( track -> codec_priv . data + 16 ) ;\n codec_id = ff_codec_get_id ( ff_codec_bmp_tags , track -> video . fourcc ) ;\n extradata_offset = 40 ;\n }\n else if ( ! strcmp ( track -> codec_id , \"A_MS/ACM\" ) && track -> codec_priv . size >= 14 && track -> codec_priv . data ) {\n int ret ;\n ffio_init_context ( & b , track -> codec_priv . data , track -> codec_priv . size , 0 , NULL , NULL , NULL , NULL ) ;\n ret = ff_get_wav_header ( & b , st -> codec , track -> codec_priv . size ) ;\n if ( ret < 0 ) return ret ;\n codec_id = st -> codec -> codec_id ;\n extradata_offset = FFMIN ( track -> codec_priv . size , 18 ) ;\n }\n else if ( ! strcmp ( track -> codec_id , \"V_QUICKTIME\" ) && ( track -> codec_priv . size >= 86 ) && ( track -> codec_priv . data ) ) {\n track -> video . fourcc = AV_RL32 ( track -> codec_priv . data ) ;\n codec_id = ff_codec_get_id ( ff_codec_movvideo_tags , track -> video . fourcc ) ;\n }\n else if ( codec_id == AV_CODEC_ID_PCM_S16BE ) {\n switch ( track -> audio . bitdepth ) {\n case 8 : codec_id = AV_CODEC_ID_PCM_U8 ;\n break ;\n case 24 : codec_id = AV_CODEC_ID_PCM_S24BE ;\n break ;\n case 32 : codec_id = AV_CODEC_ID_PCM_S32BE ;\n break ;\n }\n }\n else if ( codec_id == AV_CODEC_ID_PCM_S16LE ) {\n switch ( track -> audio . bitdepth ) {\n case 8 : codec_id = AV_CODEC_ID_PCM_U8 ;\n break ;\n case 24 : codec_id = AV_CODEC_ID_PCM_S24LE ;\n break ;\n case 32 : codec_id = AV_CODEC_ID_PCM_S32LE ;\n break ;\n }\n }\n else if ( codec_id == AV_CODEC_ID_PCM_F32LE && track -> audio . bitdepth == 64 ) {\n codec_id = AV_CODEC_ID_PCM_F64LE ;\n }\n else if ( codec_id == AV_CODEC_ID_AAC && ! track -> codec_priv . size ) {\n int profile = matroska_aac_profile ( track -> codec_id ) ;\n int sri = matroska_aac_sri ( track -> audio . samplerate ) ;\n extradata = av_mallocz ( 5 + FF_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( ! extradata ) return AVERROR ( ENOMEM ) ;\n extradata [ 0 ] = ( profile << 3 ) | ( ( sri & 0x0E ) >> 1 ) ;\n extradata [ 1 ] = ( ( sri & 0x01 ) << 7 ) | ( track -> audio . channels << 3 ) ;\n if ( strstr ( track -> codec_id , \"SBR\" ) ) {\n sri = matroska_aac_sri ( track -> audio . out_samplerate ) ;\n extradata [ 2 ] = 0x56 ;\n extradata [ 3 ] = 0xE5 ;\n extradata [ 4 ] = 0x80 | ( sri << 3 ) ;\n extradata_size = 5 ;\n }\n else extradata_size = 2 ;\n }\n else if ( codec_id == AV_CODEC_ID_ALAC && track -> codec_priv . size ) {\n extradata_size = 12 + track -> codec_priv . size ;\n extradata = av_mallocz ( extradata_size + FF_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( ! extradata ) return AVERROR ( ENOMEM ) ;\n AV_WB32 ( extradata , extradata_size ) ;\n memcpy ( & extradata [ 4 ] , \"alac\" , 4 ) ;\n AV_WB32 ( & extradata [ 8 ] , 0 ) ;\n memcpy ( & extradata [ 12 ] , track -> codec_priv . data , track -> codec_priv . size ) ;\n }\n else if ( codec_id == AV_CODEC_ID_TTA ) {\n extradata_size = 30 ;\n extradata = av_mallocz ( extradata_size ) ;\n if ( ! extradata ) return AVERROR ( ENOMEM ) ;\n ffio_init_context ( & b , extradata , extradata_size , 1 , NULL , NULL , NULL , NULL ) ;\n avio_write ( & b , \"TTA1\" , 4 ) ;\n avio_wl16 ( & b , 1 ) ;\n avio_wl16 ( & b , track -> audio . channels ) ;\n avio_wl16 ( & b , track -> audio . bitdepth ) ;\n avio_wl32 ( & b , track -> audio . out_samplerate ) ;\n avio_wl32 ( & b , matroska -> ctx -> duration * track -> audio . out_samplerate ) ;\n }\n else if ( codec_id == AV_CODEC_ID_RV10 || codec_id == AV_CODEC_ID_RV20 || codec_id == AV_CODEC_ID_RV30 || codec_id == AV_CODEC_ID_RV40 ) {\n extradata_offset = 26 ;\n }\n else if ( codec_id == AV_CODEC_ID_RA_144 ) {\n track -> audio . out_samplerate = 8000 ;\n track -> audio . channels = 1 ;\n }\n else if ( codec_id == AV_CODEC_ID_RA_288 || codec_id == AV_CODEC_ID_COOK || codec_id == AV_CODEC_ID_ATRAC3 || codec_id == AV_CODEC_ID_SIPR ) {\n int flavor ;\n ffio_init_context ( & b , track -> codec_priv . data , track -> codec_priv . size , 0 , NULL , NULL , NULL , NULL ) ;\n avio_skip ( & b , 22 ) ;\n flavor = avio_rb16 ( & b ) ;\n track -> audio . coded_framesize = avio_rb32 ( & b ) ;\n avio_skip ( & b , 12 ) ;\n track -> audio . sub_packet_h = avio_rb16 ( & b ) ;\n track -> audio . frame_size = avio_rb16 ( & b ) ;\n track -> audio . sub_packet_size = avio_rb16 ( & b ) ;\n if ( flavor <= 0 || track -> audio . coded_framesize <= 0 || track -> audio . sub_packet_h <= 0 || track -> audio . frame_size <= 0 || track -> audio . sub_packet_size <= 0 ) return AVERROR_INVALIDDATA ;\n track -> audio . buf = av_malloc ( track -> audio . frame_size * track -> audio . sub_packet_h ) ;\n if ( codec_id == AV_CODEC_ID_RA_288 ) {\n st -> codec -> block_align = track -> audio . coded_framesize ;\n track -> codec_priv . size = 0 ;\n }\n else {\n if ( codec_id == AV_CODEC_ID_SIPR && flavor < 4 ) {\n const int sipr_bit_rate [ 4 ] = {\n 6504 , 8496 , 5000 , 16000 }\n ;\n track -> audio . sub_packet_size = ff_sipr_subpk_size [ flavor ] ;\n st -> codec -> bit_rate = sipr_bit_rate [ flavor ] ;\n }\n st -> codec -> block_align = track -> audio . sub_packet_size ;\n extradata_offset = 78 ;\n }\n }\n else if ( codec_id == AV_CODEC_ID_FLAC && track -> codec_priv . size ) {\n ret = matroska_parse_flac ( s , track , & extradata_offset ) ;\n if ( ret < 0 ) return ret ;\n }\n track -> codec_priv . size -= extradata_offset ;\n if ( codec_id == AV_CODEC_ID_NONE ) av_log ( matroska -> ctx , AV_LOG_INFO , \"Unknown/unsupported AVCodecID %s.\\n\" , track -> codec_id ) ;\n if ( track -> time_scale < 0.01 ) track -> time_scale = 1.0 ;\n avpriv_set_pts_info ( st , 64 , matroska -> time_scale * track -> time_scale , 1000 * 1000 * 1000 ) ;\n track -> codec_delay = av_rescale_q ( track -> codec_delay , ( AVRational ) {\n 1 , 1000000000 }\n , st -> time_base ) ;\n st -> codec -> codec_id = codec_id ;\n st -> start_time = 0 ;\n if ( strcmp ( track -> language , \"und\" ) ) av_dict_set ( & st -> metadata , \"language\" , track -> language , 0 ) ;\n av_dict_set ( & st -> metadata , \"title\" , track -> name , 0 ) ;\n if ( track -> flag_default ) st -> disposition |= AV_DISPOSITION_DEFAULT ;\n if ( track -> flag_forced ) st -> disposition |= AV_DISPOSITION_FORCED ;\n if ( ! st -> codec -> extradata ) {\n if ( extradata ) {\n st -> codec -> extradata = extradata ;\n st -> codec -> extradata_size = extradata_size ;\n }\n else if ( track -> codec_priv . data && track -> codec_priv . size > 0 ) {\n st -> codec -> extradata = av_mallocz ( track -> codec_priv . size + FF_INPUT_BUFFER_PADDING_SIZE ) ;\n if ( ! st -> codec -> extradata ) return AVERROR ( ENOMEM ) ;\n st -> codec -> extradata_size = track -> codec_priv . size ;\n memcpy ( st -> codec -> extradata , track -> codec_priv . data + extradata_offset , track -> codec_priv . size ) ;\n }\n }\n if ( track -> type == MATROSKA_TRACK_TYPE_VIDEO ) {\n st -> codec -> codec_type = AVMEDIA_TYPE_VIDEO ;\n st -> codec -> codec_tag = track -> video . fourcc ;\n st -> codec -> width = track -> video . pixel_width ;\n st -> codec -> height = track -> video . pixel_height ;\n av_reduce ( & st -> sample_aspect_ratio . num , & st -> sample_aspect_ratio . den , st -> codec -> height * track -> video . display_width , st -> codec -> width * track -> video . display_height , 255 ) ;\n if ( st -> codec -> codec_id != AV_CODEC_ID_H264 && st -> codec -> codec_id != AV_CODEC_ID_HEVC ) st -> need_parsing = AVSTREAM_PARSE_HEADERS ;\n if ( track -> default_duration ) {\n av_reduce ( & st -> avg_frame_rate . num , & st -> avg_frame_rate . den , 1000000000 , track -> default_duration , 30000 ) ;\n }\n if ( track -> video . stereo_mode < MATROSKA_VIDEO_STEREOMODE_TYPE_NB && track -> video . stereo_mode != 10 && track -> video . stereo_mode != 12 ) {\n int ret = ff_mkv_stereo3d_conv ( st , track -> video . stereo_mode ) ;\n if ( ret < 0 ) return ret ;\n }\n }\n else if ( track -> type == MATROSKA_TRACK_TYPE_AUDIO ) {\n st -> codec -> codec_type = AVMEDIA_TYPE_AUDIO ;\n st -> codec -> sample_rate = track -> audio . out_samplerate ;\n st -> codec -> channels = track -> audio . channels ;\n if ( st -> codec -> codec_id != AV_CODEC_ID_AAC ) st -> need_parsing = AVSTREAM_PARSE_HEADERS ;\n }\n else if ( track -> type == MATROSKA_TRACK_TYPE_SUBTITLE ) {\n st -> codec -> codec_type = AVMEDIA_TYPE_SUBTITLE ;\n if ( st -> codec -> codec_id == AV_CODEC_ID_SSA ) matroska -> contains_ssa = 1 ;\n }\n }\n return 0 ;\n }"}
{"idx": 19147, "target": 0, "func": "unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 )"}
{"idx": 19148, "target": 1, "func": "static void initial_reordering_broken_cluster ( const hb_ot_shape_plan_t * plan , hb_face_t * face , hb_buffer_t * buffer , unsigned int start , unsigned int end ) {\n initial_reordering_consonant_syllable ( plan , face , buffer , start , end ) ;\n }"}
{"idx": 19149, "target": 0, "func": "int lbmpdm_dissect_lbmpdm_payload ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , guint64 channel ) {\n proto_item * subtree_item = NULL ;\n proto_tree * subtree = NULL ;\n proto_item * segments_item = NULL ;\n proto_tree * segments_tree = NULL ;\n proto_item * pi = NULL ;\n guint8 next_hdr ;\n int dissected_len = 0 ;\n int encoding ;\n int msglen = 0 ;\n int len_remaining = 0 ;\n int ofs = 0 ;\n int segment_len = 0 ;\n int datalen = 0 ;\n guint32 raw_msglen = 0 ;\n lbmpdm_msg_definition_id_t msgid ;\n if ( ! lbmpdm_verify_payload ( tvb , offset , & encoding , & raw_msglen ) ) {\n return ( 0 ) ;\n }\n msglen = ( int ) raw_msglen ;\n msgid . channel = channel ;\n msgid . msg_def_id = 0 ;\n msgid . ver_major = 0 ;\n msgid . ver_minor = 0 ;\n msgid . offset_table = NULL ;\n subtree_item = proto_tree_add_protocol_format ( tree , proto_lbmpdm , tvb , offset , msglen , \"LBMPDM Protocol\" ) ;\n subtree = proto_item_add_subtree ( subtree_item , ett_lbmpdm ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_magic , tvb , offset + O_LBMPDM_MSG_HDR_T_MAGIC , L_LBMPDM_MSG_HDR_T_MAGIC , encoding ) ;\n pi = proto_tree_add_string ( subtree , hf_lbmpdm_encoding , tvb , offset + O_LBMPDM_MSG_HDR_T_MAGIC , L_LBMPDM_MSG_HDR_T_MAGIC , ( ( encoding == ENC_BIG_ENDIAN ) ? \"Big-Endian\" : \"Little-Endian\" ) ) ;\n PROTO_ITEM_SET_GENERATED ( pi ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_ver , tvb , offset + O_LBMPDM_MSG_HDR_T_VER_TYPE , L_LBMPDM_MSG_HDR_T_VER_TYPE , encoding ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_type , tvb , offset + O_LBMPDM_MSG_HDR_T_VER_TYPE , L_LBMPDM_MSG_HDR_T_VER_TYPE , encoding ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_next_hdr , tvb , offset + O_LBMPDM_MSG_HDR_T_NEXT_HDR , L_LBMPDM_MSG_HDR_T_NEXT_HDR , encoding ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_def_major_ver , tvb , offset + O_LBMPDM_MSG_HDR_T_DEF_MAJOR_VER , L_LBMPDM_MSG_HDR_T_DEF_MAJOR_VER , encoding ) ;\n msgid . ver_major = tvb_get_guint8 ( tvb , offset + O_LBMPDM_MSG_HDR_T_DEF_MAJOR_VER ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_def_minor_ver , tvb , offset + O_LBMPDM_MSG_HDR_T_DEF_MINOR_VER , L_LBMPDM_MSG_HDR_T_DEF_MINOR_VER , encoding ) ;\n msgid . ver_minor = tvb_get_guint8 ( tvb , offset + O_LBMPDM_MSG_HDR_T_DEF_MINOR_VER ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_def_id , tvb , offset + O_LBMPDM_MSG_HDR_T_DEF_ID , L_LBMPDM_MSG_HDR_T_DEF_ID , encoding ) ;\n msgid . msg_def_id = lbmpdm_fetch_uint32_encoded ( tvb , offset + O_LBMPDM_MSG_HDR_T_DEF_ID , encoding ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_len , tvb , offset + O_LBMPDM_MSG_HDR_T_LEN , L_LBMPDM_MSG_HDR_T_LEN , encoding ) ;\n next_hdr = tvb_get_guint8 ( tvb , offset + O_LBMPDM_MSG_HDR_T_NEXT_HDR ) ;\n len_remaining = msglen - L_LBMPDM_MSG_HDR_T ;\n ofs = offset + L_LBMPDM_MSG_HDR_T ;\n dissected_len = L_LBMPDM_MSG_HDR_T ;\n datalen = msglen - L_LBMPDM_MSG_HDR_T ;\n if ( len_remaining > 0 ) {\n guint8 this_hdr = next_hdr ;\n segments_item = proto_tree_add_item ( subtree , hf_lbmpdm_segments , tvb , ofs , datalen , encoding ) ;\n segments_tree = proto_item_add_subtree ( segments_item , ett_lbmpdm_segments ) ;\n while ( ( this_hdr != PDM_HDR_TYPE_EOM ) && ( len_remaining >= L_LBMPDM_SEG_HDR_T ) ) {\n next_hdr = tvb_get_guint8 ( tvb , ofs + O_LBMPDM_SEG_HDR_T_NEXT_HDR ) ;\n switch ( this_hdr ) {\n case PDM_HDR_TYPE_DATA : segment_len = dissect_segment_data ( tvb , ofs , pinfo , segments_tree , & msgid , encoding ) ;\n break ;\n case PDM_HDR_TYPE_OFSTTBLE : segment_len = dissect_segment_ofstable ( tvb , ofs , pinfo , segments_tree , & ( msgid . offset_table ) , encoding ) ;\n break ;\n case PDM_HDR_TYPE_DEFN : segment_len = dissect_segment_defn ( tvb , ofs , pinfo , segments_tree , channel , encoding ) ;\n break ;\n default : segment_len = dissect_segment_unknown ( tvb , ofs , pinfo , segments_tree , encoding ) ;\n break ;\n }\n this_hdr = next_hdr ;\n dissected_len += segment_len ;\n len_remaining -= segment_len ;\n ofs += segment_len ;\n }\n }\n return ( dissected_len ) ;\n }"}
{"idx": 19150, "target": 0, "func": "static void dissect_rsvp_label_request ( proto_item * ti , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int type ) {\n int offset2 = offset + 4 ;\n static const value_string lab_req_type_str [ ] = {\n {\n 1 , \"\" }\n , {\n 2 , \"(Label Request with ATM label Range)\" }\n , {\n 3 , \"(Label Request with Frame-Relay label Range)\" }\n , {\n 4 , \"(Generalized Label Request)\" }\n , {\n 5 , \"(Generalized Channel_set Label Request)\" }\n , {\n 0 , NULL }\n }\n ;\n static value_string_ext lab_req_type_str_ext = VALUE_STRING_EXT_INIT ( lab_req_type_str ) ;\n proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"%d %s\" , type , val_to_str_ext_const ( type , & lab_req_type_str_ext , \"Unknown\" ) ) ;\n switch ( type ) {\n case 1 : {\n unsigned short l3pid = tvb_get_ntohs ( tvb , offset2 + 2 ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_label_request_l3pid , tvb , offset2 + 2 , 2 , ENC_BIG_ENDIAN ) ;\n proto_item_set_text ( ti , \"LABEL REQUEST: Basic: L3PID: %s (0x%04x)\" , val_to_str_const ( l3pid , etype_vals , \"Unknown\" ) , l3pid ) ;\n break ;\n }\n case 2 : {\n unsigned short l3pid = tvb_get_ntohs ( tvb , offset2 + 2 ) ;\n unsigned short min_vpi , min_vci , max_vpi , max_vci ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_label_request_l3pid , tvb , offset2 + 2 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_label_request_m , tvb , offset2 + 4 , 1 , ENC_NA ) ;\n min_vpi = tvb_get_ntohs ( tvb , offset2 + 4 ) & 0x7f ;\n min_vci = tvb_get_ntohs ( tvb , offset2 + 6 ) ;\n max_vpi = tvb_get_ntohs ( tvb , offset2 + 8 ) & 0x7f ;\n max_vci = tvb_get_ntohs ( tvb , offset2 + 10 ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_label_request_min_vpi , tvb , offset2 + 4 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_label_request_min_vci , tvb , offset2 + 6 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_label_request_max_vpi , tvb , offset2 + 8 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_label_request_max_vci , tvb , offset2 + 10 , 2 , ENC_BIG_ENDIAN ) ;\n proto_item_set_text ( ti , \"LABEL REQUEST: ATM: L3PID: %s (0x%04x). VPI/VCI: Min: %d/%d, Max: %d/%d. %s Merge. \" , val_to_str_const ( l3pid , etype_vals , \"Unknown\" ) , l3pid , min_vpi , min_vci , max_vpi , max_vci , ( tvb_get_guint8 ( tvb , offset2 + 4 ) & 0x80 ) ? \"Can\" : \"Cannot\" ) ;\n break ;\n }\n case 3 : {\n guint16 l3pid = tvb_get_ntohs ( tvb , offset2 + 2 ) ;\n guint32 min_dlci , max_dlci , dlci_len , dlci_len_code ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_label_request_l3pid , tvb , offset2 + 2 , 2 , ENC_BIG_ENDIAN ) ;\n dlci_len_code = ( tvb_get_ntohs ( tvb , offset2 + 4 ) & 0x0180 ) >> 7 ;\n min_dlci = tvb_get_ntohl ( tvb , offset2 + 4 ) & 0x7fffff ;\n max_dlci = tvb_get_ntohl ( tvb , offset2 + 8 ) & 0x7fffff ;\n switch ( dlci_len_code ) {\n case 0 : dlci_len = 10 ;\n min_dlci &= 0x3ff ;\n max_dlci &= 0x3ff ;\n break ;\n case 2 : dlci_len = 23 ;\n break ;\n default : dlci_len = 0 ;\n min_dlci = 0 ;\n max_dlci = 0 ;\n break ;\n }\n proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_dlci_length , tvb , offset2 + 4 , 2 , dlci_len , \"%s (%d)\" , ( dlci_len == 10 ) ? \"10 bits\" : ( dlci_len == 23 ) ? \"23 bits\" : \"INVALID\" , dlci_len_code ) ;\n proto_tree_add_uint ( rsvp_object_tree , hf_rsvp_min_dlci , tvb , offset2 + 5 , 3 , min_dlci ) ;\n proto_tree_add_uint ( rsvp_object_tree , hf_rsvp_max_dlci , tvb , offset2 + 8 , 2 , max_dlci ) ;\n proto_item_set_text ( ti , \"LABEL REQUEST: Frame: L3PID: %s (0x%04x). DLCI Len: %s. Min DLCI: %d. Max DLCI: %d\" , val_to_str_const ( l3pid , etype_vals , \"Unknown\" ) , l3pid , ( dlci_len == 10 ) ? \"10 bits\" : ( dlci_len == 23 ) ? \"23 bits\" : \"INVALID\" , min_dlci , max_dlci ) ;\n break ;\n }\n case 4 : case 5 : {\n unsigned short l3pid = tvb_get_ntohs ( tvb , offset2 + 2 ) ;\n unsigned char lsp_enc = tvb_get_guint8 ( tvb , offset2 ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_label_request_lsp_encoding_type , tvb , offset2 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_label_request_switching_type , tvb , offset2 + 1 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_g_pid , tvb , offset2 + 2 , 2 , ENC_BIG_ENDIAN ) ;\n proto_item_set_text ( ti , \"LABEL REQUEST: Generalized: LSP Encoding=%s, \" \"Switching Type=%s, G-PID=%s \" , rval_to_str ( lsp_enc , gmpls_lsp_enc_rvals , \"Unknown (%d)\" ) , rval_to_str ( tvb_get_guint8 ( tvb , offset2 + 1 ) , gmpls_switching_type_rvals , \"Unknown (%d)\" ) , rval_to_str_const ( l3pid , gmpls_gpid_rvals , val_to_str ( l3pid , etype_vals , \"Unknown (0x%04x)\" ) ) ) ;\n break ;\n }\n default : proto_tree_add_item ( rsvp_object_tree , hf_rsvp_label_request_data , tvb , offset2 , obj_length - 4 , ENC_NA ) ;\n break ;\n }\n }"}
{"idx": 19151, "target": 1, "func": "static int slirp_smb ( SlirpState * s , const char * exported_dir , struct in_addr vserver_addr ) {\n static int instance ;\n char smb_conf [ 128 ] ;\n char smb_cmdline [ 128 ] ;\n struct passwd * passwd ;\n FILE * f ;\n passwd = getpwuid ( geteuid ( ) ) ;\n if ( ! passwd ) {\n error_report ( \"failed to retrieve user name\" ) ;\n return - 1 ;\n }\n if ( access ( CONFIG_SMBD_COMMAND , F_OK ) ) {\n error_report ( \"could not find '%s', please install it\" , CONFIG_SMBD_COMMAND ) ;\n return - 1 ;\n }\n if ( access ( exported_dir , R_OK | X_OK ) ) {\n error_report ( \"error accessing shared directory '%s': %s\" , exported_dir , strerror ( errno ) ) ;\n return - 1 ;\n }\n snprintf ( s -> smb_dir , sizeof ( s -> smb_dir ) , \"/tmp/qemu-smb.%ld-%d\" , ( long ) getpid ( ) , instance ++ ) ;\n if ( mkdir ( s -> smb_dir , 0700 ) < 0 ) {\n error_report ( \"could not create samba server dir '%s'\" , s -> smb_dir ) ;\n return - 1 ;\n }\n snprintf ( smb_conf , sizeof ( smb_conf ) , \"%s/%s\" , s -> smb_dir , \"smb.conf\" ) ;\n f = fopen ( smb_conf , \"w\" ) ;\n if ( ! f ) {\n slirp_smb_cleanup ( s ) ;\n error_report ( \"could not create samba server configuration file '%s'\" , smb_conf ) ;\n return - 1 ;\n }\n fprintf ( f , \"[global]\\n\" \"private dir=%s\\n\" \"interfaces=127.0.0.1\\n\" \"bind interfaces only=yes\\n\" \"pid directory=%s\\n\" \"lock directory=%s\\n\" \"state directory=%s\\n\" \"cache directory=%s\\n\" \"ncalrpc dir=%scalrpc\\n\" \"log file=%s/log.smbd\\n\" \"smb passwd file=%s/smbpasswd\\n\" \"security = user\\n\" \"map to guest = Bad User\\n\" \"load printers = no\\n\" \"printing = bsd\\n\" \"disable spoolss = yes\\n\" \"usershare max shares = 0\\n\" \"[qemu]\\n\" \"path=%s\\n\" \"read only=no\\n\" \"guest ok=yes\\n\" \"force user=%s\\n\" , s -> smb_dir , s -> smb_dir , s -> smb_dir , s -> smb_dir , s -> smb_dir , s -> smb_dir , s -> smb_dir , s -> smb_dir , exported_dir , passwd -> pw_name ) ;\n fclose ( f ) ;\n snprintf ( smb_cmdline , sizeof ( smb_cmdline ) , \"%s -l %s -s %s\" , CONFIG_SMBD_COMMAND , s -> smb_dir , smb_conf ) ;\n if ( slirp_add_exec ( s -> slirp , 0 , smb_cmdline , & vserver_addr , 139 ) < 0 || slirp_add_exec ( s -> slirp , 0 , smb_cmdline , & vserver_addr , 445 ) < 0 ) {\n slirp_smb_cleanup ( s ) ;\n error_report ( \"conflicting/invalid smbserver address\" ) ;\n return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 19152, "target": 0, "func": "static void dump_trigger_old ( FILE * sql_file , MYSQL_RES * show_triggers_rs , MYSQL_ROW * show_trigger_row , const char * table_name ) {\n char quoted_table_name_buf [ NAME_LEN * 2 + 3 ] ;\n char * quoted_table_name = quote_name ( table_name , quoted_table_name_buf , 1 ) ;\n char name_buff [ NAME_LEN * 4 + 3 ] ;\n const char * xml_msg = \"\\nWarning! mysqldump being run against old server \" \"that does not\\nsupport 'SHOW CREATE TRIGGERS' \" \"statement. Skipping..\\n\" ;\n DBUG_ENTER ( \"dump_trigger_old\" ) ;\n if ( opt_xml ) {\n print_xml_comment ( sql_file , strlen ( xml_msg ) , xml_msg ) ;\n check_io ( sql_file ) ;\n DBUG_VOID_RETURN ;\n }\n fprintf ( sql_file , \"--\\n\" \"-- WARNING: old server version. \" \"The following dump may be incomplete.\\n\" \"--\\n\" ) ;\n if ( opt_compact ) fprintf ( sql_file , \"/*!50003 SET @OLD_SQL_MODE=@@SQL_MODE*/;\n\\n\" ) ;\n fprintf ( sql_file , \"DELIMITER ;\n;\n\\n\" \"/*!50003 SET SESSION SQL_MODE=\\\"%s\\\" */;\n;\n\\n\" \"/*!50003 CREATE */ \" , ( * show_trigger_row ) [ 6 ] ) ;\n if ( mysql_num_fields ( show_triggers_rs ) > 7 ) {\n size_t user_name_len ;\n char user_name_str [ USERNAME_LENGTH + 1 ] ;\n char quoted_user_name_str [ USERNAME_LENGTH * 2 + 3 ] ;\n size_t host_name_len ;\n char host_name_str [ HOSTNAME_LENGTH + 1 ] ;\n char quoted_host_name_str [ HOSTNAME_LENGTH * 2 + 3 ] ;\n parse_user ( ( * show_trigger_row ) [ 7 ] , strlen ( ( * show_trigger_row ) [ 7 ] ) , user_name_str , & user_name_len , host_name_str , & host_name_len ) ;\n fprintf ( sql_file , \"/*!50017 DEFINER=%s@%s */ \" , quote_name ( user_name_str , quoted_user_name_str , FALSE ) , quote_name ( host_name_str , quoted_host_name_str , FALSE ) ) ;\n }\n fprintf ( sql_file , \"/*!50003 TRIGGER %s %s %s ON %s FOR EACH ROW%s%s */;\n;\n\\n\" \"DELIMITER ;\n\\n\" , quote_name ( ( * show_trigger_row ) [ 0 ] , name_buff , 0 ) , ( * show_trigger_row ) [ 4 ] , ( * show_trigger_row ) [ 1 ] , quoted_table_name , ( strchr ( \" \\t\\n\\r\" , * ( ( * show_trigger_row ) [ 3 ] ) ) ) ? \"\" : \" \" , ( * show_trigger_row ) [ 3 ] ) ;\n if ( opt_compact ) fprintf ( sql_file , \"/*!50003 SET SESSION SQL_MODE=@OLD_SQL_MODE */;\n\\n\" ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 19153, "target": 0, "func": "static void scan_sources ( GList * files , SourceInfo * source_info , CommonJob * job , OpKind kind ) {\n GList * l ;\n GFile * file ;\n g_autoptr ( GHashTable ) scanned = NULL ;\n memset ( source_info , 0 , sizeof ( SourceInfo ) ) ;\n source_info -> op = kind ;\n scanned = g_hash_table_new_full ( g_str_hash , g_str_equal , ( GDestroyNotify ) g_free , NULL ) ;\n report_preparing_count_progress ( job , source_info ) ;\n for ( l = files ;\n l != NULL && ! job_aborted ( job ) ;\n l = l -> next ) {\n file = l -> data ;\n scan_file ( file , source_info , job , scanned ) ;\n }\n report_preparing_count_progress ( job , source_info ) ;\n }"}
{"idx": 19154, "target": 0, "func": "static void check_is_install_user ( ClusterInfo * cluster ) {\n PGresult * res ;\n PGconn * conn = connectToServer ( cluster , \"template1\" ) ;\n prep_status ( \"Checking database user is the install user\" ) ;\n res = executeQueryOrDie ( conn , \"SELECT rolsuper, oid \" \"FROM pg_catalog.pg_roles \" \"WHERE rolname = current_user \" \"AND rolname !~ '^pg_'\" ) ;\n if ( PQntuples ( res ) != 1 || atooid ( PQgetvalue ( res , 0 , 1 ) ) != BOOTSTRAP_SUPERUSERID ) pg_fatal ( \"database user \\\"%s\\\" is not the install user\\n\" , os_info . user ) ;\n PQclear ( res ) ;\n res = executeQueryOrDie ( conn , \"SELECT COUNT(*) \" \"FROM pg_catalog.pg_roles \" \"WHERE rolname !~ '^pg_'\" ) ;\n if ( PQntuples ( res ) != 1 ) pg_fatal ( \"could not determine the number of users\\n\" ) ;\n if ( cluster == & new_cluster && atooid ( PQgetvalue ( res , 0 , 0 ) ) != 1 ) pg_fatal ( \"Only the install user can be defined in the new cluster.\\n\" ) ;\n PQclear ( res ) ;\n PQfinish ( conn ) ;\n check_ok ( ) ;\n }"}
{"idx": 19155, "target": 0, "func": "static void openpic_gcr_write ( OpenPICState * opp , uint64_t val ) {\n bool mpic_proxy = false ;\n if ( val & GCR_RESET ) {\n openpic_reset ( DEVICE ( opp ) ) ;\n return ;\n }\n opp -> gcr &= ~ opp -> mpic_mode_mask ;\n opp -> gcr |= val & opp -> mpic_mode_mask ;\n if ( ( val & opp -> mpic_mode_mask ) == GCR_MODE_PROXY ) {\n mpic_proxy = true ;\n }\n ppce500_set_mpic_proxy ( mpic_proxy ) ;\n }"}
{"idx": 19156, "target": 0, "func": "int tm_subscribe ( tm_task_id tid , char * name , void * info , int len , int * info_len , tm_event_t * event ) {\n int rc = TM_SUCCESS ;\n task_info * tp ;\n struct tcp_chan * chan = NULL ;\n struct infohold * ihold ;\n if ( ! init_done ) {\n rc = TM_BADINIT ;\n goto tm_subscribe_cleanup ;\n }\n if ( ( tp = find_task ( tid ) ) == NULL ) {\n rc = TM_ENOTFOUND ;\n goto tm_subscribe_cleanup ;\n }\n * event = new_event ( ) ;\n if ( startcom ( TM_GETINFO , * event , & chan ) != DIS_SUCCESS ) {\n rc = TM_ESYSTEM ;\n goto tm_subscribe_cleanup ;\n }\n if ( diswsi ( chan , tp -> t_node ) != DIS_SUCCESS ) {\n rc = TM_ESYSTEM ;\n goto tm_subscribe_cleanup ;\n }\n if ( diswsi ( chan , tid ) != DIS_SUCCESS ) {\n rc = TM_ESYSTEM ;\n goto tm_subscribe_cleanup ;\n }\n if ( diswst ( chan , name ) != DIS_SUCCESS ) {\n rc = TM_ESYSTEM ;\n goto tm_subscribe_cleanup ;\n }\n DIS_tcp_wflush ( chan ) ;\n ihold = ( struct infohold * ) calloc ( 1 , sizeof ( struct infohold ) ) ;\n assert ( ihold != NULL ) ;\n ihold -> info = info ;\n ihold -> len = len ;\n ihold -> info_len = info_len ;\n add_event ( * event , tp -> t_node , TM_GETINFO , ( void * ) ihold ) ;\n tm_subscribe_cleanup : if ( chan != NULL ) DIS_tcp_cleanup ( chan ) ;\n return rc ;\n }"}
{"idx": 19157, "target": 0, "func": "static void mpc7_decode_flush ( AVCodecContext * avctx ) {\n MPCContext * c = avctx -> priv_data ;\n memset ( c -> oldDSCF , 0 , sizeof ( c -> oldDSCF ) ) ;\n c -> frames_to_skip = 32 ;\n }"}
{"idx": 19158, "target": 1, "func": "int ff_h264_execute_ref_pic_marking ( H264Context * h , MMCO * mmco , int mmco_count ) {\n int i , av_uninit ( j ) ;\n int current_ref_assigned = 0 , err = 0 ;\n Picture * av_uninit ( pic ) ;\n if ( ( h -> avctx -> debug & FF_DEBUG_MMCO ) && mmco_count == 0 ) av_log ( h -> avctx , AV_LOG_DEBUG , \"no mmco here\\n\" ) ;\n for ( i = 0 ;\n i < mmco_count ;\n i ++ ) {\n int av_uninit ( structure ) , av_uninit ( frame_num ) ;\n if ( h -> avctx -> debug & FF_DEBUG_MMCO ) av_log ( h -> avctx , AV_LOG_DEBUG , \"mmco:%d %d %d\\n\" , h -> mmco [ i ] . opcode , h -> mmco [ i ] . short_pic_num , h -> mmco [ i ] . long_arg ) ;\n if ( mmco [ i ] . opcode == MMCO_SHORT2UNUSED || mmco [ i ] . opcode == MMCO_SHORT2LONG ) {\n frame_num = pic_num_extract ( h , mmco [ i ] . short_pic_num , & structure ) ;\n pic = find_short ( h , frame_num , & j ) ;\n if ( ! pic ) {\n if ( mmco [ i ] . opcode != MMCO_SHORT2LONG || ! h -> long_ref [ mmco [ i ] . long_arg ] || h -> long_ref [ mmco [ i ] . long_arg ] -> frame_num != frame_num ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"mmco: unref short failure\\n\" ) ;\n err = AVERROR_INVALIDDATA ;\n }\n continue ;\n }\n }\n switch ( mmco [ i ] . opcode ) {\n case MMCO_SHORT2UNUSED : if ( h -> avctx -> debug & FF_DEBUG_MMCO ) av_log ( h -> avctx , AV_LOG_DEBUG , \"mmco: unref short %d count %d\\n\" , h -> mmco [ i ] . short_pic_num , h -> short_ref_count ) ;\n remove_short ( h , frame_num , structure ^ PICT_FRAME ) ;\n break ;\n case MMCO_SHORT2LONG : if ( h -> long_ref [ mmco [ i ] . long_arg ] != pic ) remove_long ( h , mmco [ i ] . long_arg , 0 ) ;\n remove_short_at_index ( h , j ) ;\n h -> long_ref [ mmco [ i ] . long_arg ] = pic ;\n if ( h -> long_ref [ mmco [ i ] . long_arg ] ) {\n h -> long_ref [ mmco [ i ] . long_arg ] -> long_ref = 1 ;\n h -> long_ref_count ++ ;\n }\n break ;\n case MMCO_LONG2UNUSED : j = pic_num_extract ( h , mmco [ i ] . long_arg , & structure ) ;\n pic = h -> long_ref [ j ] ;\n if ( pic ) {\n remove_long ( h , j , structure ^ PICT_FRAME ) ;\n }\n else if ( h -> avctx -> debug & FF_DEBUG_MMCO ) av_log ( h -> avctx , AV_LOG_DEBUG , \"mmco: unref long failure\\n\" ) ;\n break ;\n case MMCO_LONG : if ( h -> long_ref [ mmco [ i ] . long_arg ] != h -> cur_pic_ptr ) {\n remove_long ( h , mmco [ i ] . long_arg , 0 ) ;\n h -> long_ref [ mmco [ i ] . long_arg ] = h -> cur_pic_ptr ;\n h -> long_ref [ mmco [ i ] . long_arg ] -> long_ref = 1 ;\n h -> long_ref_count ++ ;\n }\n h -> cur_pic_ptr -> f . reference |= h -> picture_structure ;\n current_ref_assigned = 1 ;\n break ;\n case MMCO_SET_MAX_LONG : assert ( mmco [ i ] . long_arg <= 16 ) ;\n for ( j = mmco [ i ] . long_arg ;\n j < 16 ;\n j ++ ) {\n remove_long ( h , j , 0 ) ;\n }\n break ;\n case MMCO_RESET : while ( h -> short_ref_count ) {\n remove_short ( h , h -> short_ref [ 0 ] -> frame_num , 0 ) ;\n }\n for ( j = 0 ;\n j < 16 ;\n j ++ ) {\n remove_long ( h , j , 0 ) ;\n }\n h -> frame_num = h -> cur_pic_ptr -> frame_num = 0 ;\n h -> mmco_reset = 1 ;\n h -> cur_pic_ptr -> mmco_reset = 1 ;\n break ;\n default : assert ( 0 ) ;\n }\n }\n if ( ! current_ref_assigned ) {\n if ( h -> short_ref_count && h -> short_ref [ 0 ] == h -> cur_pic_ptr ) {\n h -> cur_pic_ptr -> f . reference = PICT_FRAME ;\n }\n else if ( h -> cur_pic_ptr -> long_ref ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"illegal short term reference \" \"assignment for second field \" \"in complementary field pair \" \"(first field is long term)\\n\" ) ;\n err = AVERROR_INVALIDDATA ;\n }\n else {\n pic = remove_short ( h , h -> cur_pic_ptr -> frame_num , 0 ) ;\n if ( pic ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"illegal short term buffer state detected\\n\" ) ;\n err = AVERROR_INVALIDDATA ;\n }\n if ( h -> short_ref_count ) memmove ( & h -> short_ref [ 1 ] , & h -> short_ref [ 0 ] , h -> short_ref_count * sizeof ( Picture * ) ) ;\n h -> short_ref [ 0 ] = h -> cur_pic_ptr ;\n h -> short_ref_count ++ ;\n h -> cur_pic_ptr -> f . reference |= h -> picture_structure ;\n }\n }\n if ( h -> long_ref_count + h -> short_ref_count - ( h -> short_ref [ 0 ] == h -> cur_pic_ptr ) > h -> sps . ref_frame_count ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"number of reference frames (%d+%d) exceeds max (%d;\n probably \" \"corrupt input), discarding one\\n\" , h -> long_ref_count , h -> short_ref_count , h -> sps . ref_frame_count ) ;\n err = AVERROR_INVALIDDATA ;\n if ( h -> long_ref_count && ! h -> short_ref_count ) {\n for ( i = 0 ;\n i < 16 ;\n ++ i ) if ( h -> long_ref [ i ] ) break ;\n assert ( i < 16 ) ;\n remove_long ( h , i , 0 ) ;\n }\n else {\n pic = h -> short_ref [ h -> short_ref_count - 1 ] ;\n remove_short ( h , pic -> frame_num , 0 ) ;\n }\n }\n print_short_term ( h ) ;\n print_long_term ( h ) ;\n return ( h -> avctx -> err_recognition & AV_EF_EXPLODE ) ? err : 0 ;\n }"}
{"idx": 19159, "target": 0, "func": "static void curses_connection_data_split ( void ) {\n char tmp [ MAX_ASCII_ADDR_LEN ] ;\n char title [ MAX_ASCII_ADDR_LEN + 6 ] ;\n DEBUG_MSG ( \"curses_connection_data_split\" ) ;\n if ( wdg_conndata ) {\n struct conn_object * tmp_conn = curr_conn ;\n wdg_destroy_object ( & wdg_conndata ) ;\n curses_destroy_conndata ( ) ;\n curr_conn = tmp_conn ;\n }\n curr_conn -> flags |= CONN_VIEWING ;\n wdg_create_object ( & wdg_conndata , WDG_COMPOUND , WDG_OBJ_WANT_FOCUS ) ;\n wdg_set_color ( wdg_conndata , WDG_COLOR_SCREEN , EC_COLOR ) ;\n wdg_set_color ( wdg_conndata , WDG_COLOR_WINDOW , EC_COLOR ) ;\n wdg_set_color ( wdg_conndata , WDG_COLOR_FOCUS , EC_COLOR_FOCUS ) ;\n wdg_set_color ( wdg_conndata , WDG_COLOR_TITLE , EC_COLOR_TITLE ) ;\n wdg_set_title ( wdg_conndata , \"Connection data\" , WDG_ALIGN_LEFT ) ;\n wdg_set_size ( wdg_conndata , 1 , 2 , - 1 , SYSMSG_WIN_SIZE - 1 ) ;\n wdg_create_object ( & wdg_c1 , WDG_SCROLL , 0 ) ;\n snprintf ( title , MAX_ASCII_ADDR_LEN + 6 , \"%s:%d\" , ip_addr_ntoa ( & curr_conn -> L3_addr1 , tmp ) , ntohs ( curr_conn -> L4_addr1 ) ) ;\n wdg_set_title ( wdg_c1 , title , WDG_ALIGN_LEFT ) ;\n wdg_set_color ( wdg_c1 , WDG_COLOR_TITLE , EC_COLOR_TITLE ) ;\n wdg_set_color ( wdg_c1 , WDG_COLOR_FOCUS , EC_COLOR_FOCUS ) ;\n wdg_set_size ( wdg_c1 , 2 , 3 , current_screen . cols / 2 , SYSMSG_WIN_SIZE - 2 ) ;\n wdg_create_object ( & wdg_c2 , WDG_SCROLL , 0 ) ;\n snprintf ( title , MAX_ASCII_ADDR_LEN + 6 , \"%s:%d\" , ip_addr_ntoa ( & curr_conn -> L3_addr2 , tmp ) , ntohs ( curr_conn -> L4_addr2 ) ) ;\n wdg_set_title ( wdg_c2 , title , WDG_ALIGN_LEFT ) ;\n wdg_set_color ( wdg_c2 , WDG_COLOR_TITLE , EC_COLOR_TITLE ) ;\n wdg_set_color ( wdg_c2 , WDG_COLOR_FOCUS , EC_COLOR_FOCUS ) ;\n wdg_set_size ( wdg_c2 , current_screen . cols / 2 + 1 , 3 , - 2 , SYSMSG_WIN_SIZE - 2 ) ;\n wdg_scroll_set_lines ( wdg_c1 , GBL_CONF -> connection_buffer / ( current_screen . cols / 2 ) ) ;\n wdg_scroll_set_lines ( wdg_c2 , GBL_CONF -> connection_buffer / ( current_screen . cols / 2 ) ) ;\n wdg_compound_add ( wdg_conndata , wdg_c1 ) ;\n wdg_compound_add ( wdg_conndata , wdg_c2 ) ;\n wdg_add_destroy_key ( wdg_conndata , CTRL ( 'Q' ) , curses_destroy_conndata ) ;\n wdg_compound_add_callback ( wdg_conndata , 'j' , curses_connection_data_join ) ;\n wdg_compound_add_callback ( wdg_conndata , 'y' , curses_connection_inject ) ;\n wdg_compound_add_callback ( wdg_conndata , 'Y' , curses_connection_inject_file ) ;\n wdg_compound_add_callback ( wdg_conndata , 'k' , curses_connection_kill_wrapper ) ;\n wdg_compound_add_callback ( wdg_conndata , ' ' , curses_connection_data_help ) ;\n wdg_draw_object ( wdg_conndata ) ;\n wdg_set_focus ( wdg_conndata ) ;\n connbuf_print ( & curr_conn -> data , split_print ) ;\n conntrack_hook_conn_add ( curr_conn , split_print_po ) ;\n }"}
{"idx": 19160, "target": 1, "func": "static gpgme_error_t status_handler ( void * opaque , int fd ) {\n struct io_cb_data * data = ( struct io_cb_data * ) opaque ;\n engine_uiserver_t uiserver = ( engine_uiserver_t ) data -> handler_value ;\n gpgme_error_t err = 0 ;\n char * line ;\n size_t linelen ;\n do {\n err = assuan_read_line ( uiserver -> assuan_ctx , & line , & linelen ) ;\n if ( err ) {\n TRACE3 ( DEBUG_CTX , \"gpgme:status_handler\" , uiserver , \"fd 0x%x: error from assuan (%d) getting status line : %s\" , fd , err , gpg_strerror ( err ) ) ;\n }\n else if ( linelen >= 3 && line [ 0 ] == 'E' && line [ 1 ] == 'R' && line [ 2 ] == 'R' && ( line [ 3 ] == '\\0' || line [ 3 ] == ' ' ) ) {\n if ( line [ 3 ] == ' ' ) err = atoi ( & line [ 4 ] ) ;\n if ( ! err ) err = gpg_error ( GPG_ERR_GENERAL ) ;\n TRACE2 ( DEBUG_CTX , \"gpgme:status_handler\" , uiserver , \"fd 0x%x: ERR line - mapped to: %s\" , fd , err ? gpg_strerror ( err ) : \"ok\" ) ;\n }\n else if ( linelen >= 2 && line [ 0 ] == 'O' && line [ 1 ] == 'K' && ( line [ 2 ] == '\\0' || line [ 2 ] == ' ' ) ) {\n if ( uiserver -> status . fnc ) err = uiserver -> status . fnc ( uiserver -> status . fnc_value , GPGME_STATUS_EOF , \"\" ) ;\n if ( ! err && uiserver -> colon . fnc && uiserver -> colon . any ) {\n uiserver -> colon . any = 0 ;\n err = uiserver -> colon . fnc ( uiserver -> colon . fnc_value , NULL ) ;\n }\n TRACE2 ( DEBUG_CTX , \"gpgme:status_handler\" , uiserver , \"fd 0x%x: OK line - final status: %s\" , fd , err ? gpg_strerror ( err ) : \"ok\" ) ;\n _gpgme_io_close ( uiserver -> status_cb . fd ) ;\n return err ;\n }\n else if ( linelen > 2 && line [ 0 ] == 'D' && line [ 1 ] == ' ' && uiserver -> colon . fnc ) {\n char * src = line + 2 ;\n char * end = line + linelen ;\n char * dst ;\n char * * aline = & uiserver -> colon . attic . line ;\n int * alinelen = & uiserver -> colon . attic . linelen ;\n if ( uiserver -> colon . attic . linesize < * alinelen + linelen + 1 ) {\n char * newline = realloc ( * aline , * alinelen + linelen + 1 ) ;\n if ( ! newline ) err = gpg_error_from_syserror ( ) ;\n else {\n * aline = newline ;\n uiserver -> colon . attic . linesize += linelen + 1 ;\n }\n }\n if ( ! err ) {\n dst = * aline + * alinelen ;\n while ( ! err && src < end ) {\n if ( * src == '%' && src + 2 < end ) {\n ++ src ;\n * dst = _gpgme_hextobyte ( src ) ;\n ( * alinelen ) ++ ;\n src += 2 ;\n }\n else {\n * dst = * src ++ ;\n ( * alinelen ) ++ ;\n }\n if ( * dst == '\\n' ) {\n uiserver -> colon . any = 1 ;\n if ( * alinelen > 1 && * ( dst - 1 ) == '\\r' ) dst -- ;\n * dst = '\\0' ;\n err = uiserver -> colon . fnc ( uiserver -> colon . fnc_value , * aline ) ;\n if ( ! err ) {\n dst = * aline ;\n * alinelen = 0 ;\n }\n }\n else dst ++ ;\n }\n }\n TRACE2 ( DEBUG_CTX , \"gpgme:status_handler\" , uiserver , \"fd 0x%x: D line;\n final status: %s\" , fd , err ? gpg_strerror ( err ) : \"ok\" ) ;\n }\n else if ( linelen > 2 && line [ 0 ] == 'D' && line [ 1 ] == ' ' && uiserver -> inline_data ) {\n char * src = line + 2 ;\n char * end = line + linelen ;\n char * dst = src ;\n gpgme_ssize_t nwritten ;\n linelen = 0 ;\n while ( src < end ) {\n if ( * src == '%' && src + 2 < end ) {\n ++ src ;\n * dst ++ = _gpgme_hextobyte ( src ) ;\n src += 2 ;\n }\n else * dst ++ = * src ++ ;\n linelen ++ ;\n }\n src = line + 2 ;\n while ( linelen > 0 ) {\n nwritten = gpgme_data_write ( uiserver -> inline_data , src , linelen ) ;\n if ( ! nwritten || ( nwritten < 0 && errno != EINTR ) || nwritten > linelen ) {\n err = gpg_error_from_syserror ( ) ;\n break ;\n }\n src += nwritten ;\n linelen -= nwritten ;\n }\n TRACE2 ( DEBUG_CTX , \"gpgme:status_handler\" , uiserver , \"fd 0x%x: D inlinedata;\n final status: %s\" , fd , err ? gpg_strerror ( err ) : \"ok\" ) ;\n }\n else if ( linelen > 2 && line [ 0 ] == 'S' && line [ 1 ] == ' ' ) {\n char * rest ;\n gpgme_status_code_t r ;\n rest = strchr ( line + 2 , ' ' ) ;\n if ( ! rest ) rest = line + linelen ;\n else * ( rest ++ ) = 0 ;\n r = _gpgme_parse_status ( line + 2 ) ;\n if ( r >= 0 ) {\n if ( uiserver -> status . fnc ) err = uiserver -> status . fnc ( uiserver -> status . fnc_value , r , rest ) ;\n }\n else fprintf ( stderr , \"[UNKNOWN STATUS]%s %s\" , line + 2 , rest ) ;\n TRACE3 ( DEBUG_CTX , \"gpgme:status_handler\" , uiserver , \"fd 0x%x: S line (%s) - final status: %s\" , fd , line + 2 , err ? gpg_strerror ( err ) : \"ok\" ) ;\n }\n else if ( linelen >= 7 && line [ 0 ] == 'I' && line [ 1 ] == 'N' && line [ 2 ] == 'Q' && line [ 3 ] == 'U' && line [ 4 ] == 'I' && line [ 5 ] == 'R' && line [ 6 ] == 'E' && ( line [ 7 ] == '\\0' || line [ 7 ] == ' ' ) ) {\n char * keyword = line + 7 ;\n while ( * keyword == ' ' ) keyword ++ ;\n ;\n default_inq_cb ( uiserver , keyword ) ;\n assuan_write_line ( uiserver -> assuan_ctx , \"END\" ) ;\n }\n }\n while ( ! err && assuan_pending_line ( uiserver -> assuan_ctx ) ) ;\n return err ;\n }"}
{"idx": 19161, "target": 1, "func": "void ff_h263_loop_filter ( MpegEncContext * s ) {\n int qp_c ;\n const int linesize = s -> linesize ;\n const int uvlinesize = s -> uvlinesize ;\n const int xy = s -> mb_y * s -> mb_stride + s -> mb_x ;\n uint8_t * dest_y = s -> dest [ 0 ] ;\n uint8_t * dest_cb = s -> dest [ 1 ] ;\n uint8_t * dest_cr = s -> dest [ 2 ] ;\n if ( ! IS_SKIP ( s -> current_picture . f . mb_type [ xy ] ) ) {\n qp_c = s -> qscale ;\n s -> dsp . h263_v_loop_filter ( dest_y + 8 * linesize , linesize , qp_c ) ;\n s -> dsp . h263_v_loop_filter ( dest_y + 8 * linesize + 8 , linesize , qp_c ) ;\n }\n else qp_c = 0 ;\n if ( s -> mb_y ) {\n int qp_dt , qp_tt , qp_tc ;\n if ( IS_SKIP ( s -> current_picture . f . mb_type [ xy - s -> mb_stride ] ) ) qp_tt = 0 ;\n else qp_tt = s -> current_picture . f . qscale_table [ xy - s -> mb_stride ] ;\n if ( qp_c ) qp_tc = qp_c ;\n else qp_tc = qp_tt ;\n if ( qp_tc ) {\n const int chroma_qp = s -> chroma_qscale_table [ qp_tc ] ;\n s -> dsp . h263_v_loop_filter ( dest_y , linesize , qp_tc ) ;\n s -> dsp . h263_v_loop_filter ( dest_y + 8 , linesize , qp_tc ) ;\n s -> dsp . h263_v_loop_filter ( dest_cb , uvlinesize , chroma_qp ) ;\n s -> dsp . h263_v_loop_filter ( dest_cr , uvlinesize , chroma_qp ) ;\n }\n if ( qp_tt ) s -> dsp . h263_h_loop_filter ( dest_y - 8 * linesize + 8 , linesize , qp_tt ) ;\n if ( s -> mb_x ) {\n if ( qp_tt || IS_SKIP ( s -> current_picture . f . mb_type [ xy - 1 - s -> mb_stride ] ) ) qp_dt = qp_tt ;\n else qp_dt = s -> current_picture . f . qscale_table [ xy - 1 - s -> mb_stride ] ;\n if ( qp_dt ) {\n const int chroma_qp = s -> chroma_qscale_table [ qp_dt ] ;\n s -> dsp . h263_h_loop_filter ( dest_y - 8 * linesize , linesize , qp_dt ) ;\n s -> dsp . h263_h_loop_filter ( dest_cb - 8 * uvlinesize , uvlinesize , chroma_qp ) ;\n s -> dsp . h263_h_loop_filter ( dest_cr - 8 * uvlinesize , uvlinesize , chroma_qp ) ;\n }\n }\n }\n if ( qp_c ) {\n s -> dsp . h263_h_loop_filter ( dest_y + 8 , linesize , qp_c ) ;\n if ( s -> mb_y + 1 == s -> mb_height ) s -> dsp . h263_h_loop_filter ( dest_y + 8 * linesize + 8 , linesize , qp_c ) ;\n }\n if ( s -> mb_x ) {\n int qp_lc ;\n if ( qp_c || IS_SKIP ( s -> current_picture . f . mb_type [ xy - 1 ] ) ) qp_lc = qp_c ;\n else qp_lc = s -> current_picture . f . qscale_table [ xy - 1 ] ;\n if ( qp_lc ) {\n s -> dsp . h263_h_loop_filter ( dest_y , linesize , qp_lc ) ;\n if ( s -> mb_y + 1 == s -> mb_height ) {\n const int chroma_qp = s -> chroma_qscale_table [ qp_lc ] ;\n s -> dsp . h263_h_loop_filter ( dest_y + 8 * linesize , linesize , qp_lc ) ;\n s -> dsp . h263_h_loop_filter ( dest_cb , uvlinesize , chroma_qp ) ;\n s -> dsp . h263_h_loop_filter ( dest_cr , uvlinesize , chroma_qp ) ;\n }\n }\n }\n }"}
{"idx": 19162, "target": 0, "func": "static void update_image_md5 ( const vpx_image_t * img , const int planes [ 3 ] , MD5Context * md5 ) {\n int i , y ;\n for ( i = 0 ;\n i < 3 ;\n ++ i ) {\n const int plane = planes [ i ] ;\n const unsigned char * buf = img -> planes [ plane ] ;\n const int stride = img -> stride [ plane ] ;\n const int w = vpx_img_plane_width ( img , plane ) ;\n const int h = vpx_img_plane_height ( img , plane ) ;\n for ( y = 0 ;\n y < h ;\n ++ y ) {\n MD5Update ( md5 , buf , w ) ;\n buf += stride ;\n }\n }\n }"}
{"idx": 19163, "target": 0, "func": "static int targa_decode_rle ( AVCodecContext * avctx , TargaContext * s , uint8_t * dst , int w , int h , int stride , int bpp ) {\n int x , y ;\n int depth = ( bpp + 1 ) >> 3 ;\n int type , count ;\n int diff ;\n diff = stride - w * depth ;\n x = y = 0 ;\n while ( y < h ) {\n if ( bytestream2_get_bytes_left ( & s -> gb ) <= 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Ran ouf of data before end-of-image\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n type = bytestream2_get_byteu ( & s -> gb ) ;\n count = ( type & 0x7F ) + 1 ;\n type &= 0x80 ;\n if ( x + count > w && x + count + 1 > ( h - y ) * w ) {\n av_log ( avctx , AV_LOG_ERROR , \"Packet went out of bounds: position (%i,%i) size %i\\n\" , x , y , count ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ! type ) {\n do {\n int n = FFMIN ( count , w - x ) ;\n bytestream2_get_buffer ( & s -> gb , dst , n * depth ) ;\n count -= n ;\n dst += n * depth ;\n x += n ;\n if ( x == w ) {\n x = 0 ;\n y ++ ;\n dst += diff ;\n }\n }\n while ( count > 0 ) ;\n }\n else {\n uint8_t tmp [ 4 ] ;\n bytestream2_get_buffer ( & s -> gb , tmp , depth ) ;\n do {\n int n = FFMIN ( count , w - x ) ;\n count -= n ;\n x += n ;\n do {\n memcpy ( dst , tmp , depth ) ;\n dst += depth ;\n }\n while ( -- n ) ;\n if ( x == w ) {\n x = 0 ;\n y ++ ;\n dst += diff ;\n }\n }\n while ( count > 0 ) ;\n }\n }\n return 0 ;\n }"}
{"idx": 19164, "target": 0, "func": "static void openpic_update_irq ( OpenPICState * opp , int n_IRQ ) {\n IRQSource * src ;\n bool active , was_active ;\n int i ;\n src = & opp -> src [ n_IRQ ] ;\n active = src -> pending ;\n if ( ( src -> ivpr & IVPR_MASK_MASK ) && ! src -> nomask ) {\n DPRINTF ( \"%s: IRQ %d is disabled\\n\" , __func__ , n_IRQ ) ;\n active = false ;\n }\n was_active = ! ! ( src -> ivpr & IVPR_ACTIVITY_MASK ) ;\n if ( ! active && ! was_active ) {\n DPRINTF ( \"%s: IRQ %d is already inactive\\n\" , __func__ , n_IRQ ) ;\n return ;\n }\n if ( active ) {\n src -> ivpr |= IVPR_ACTIVITY_MASK ;\n }\n else {\n src -> ivpr &= ~ IVPR_ACTIVITY_MASK ;\n }\n if ( src -> destmask == 0 ) {\n DPRINTF ( \"%s: IRQ %d has no target\\n\" , __func__ , n_IRQ ) ;\n return ;\n }\n if ( src -> destmask == ( 1 << src -> last_cpu ) ) {\n IRQ_local_pipe ( opp , src -> last_cpu , n_IRQ , active , was_active ) ;\n }\n else if ( ! ( src -> ivpr & IVPR_MODE_MASK ) ) {\n for ( i = 0 ;\n i < opp -> nb_cpus ;\n i ++ ) {\n if ( src -> destmask & ( 1 << i ) ) {\n IRQ_local_pipe ( opp , i , n_IRQ , active , was_active ) ;\n }\n }\n }\n else {\n for ( i = src -> last_cpu + 1 ;\n i != src -> last_cpu ;\n i ++ ) {\n if ( i == opp -> nb_cpus ) {\n i = 0 ;\n }\n if ( src -> destmask & ( 1 << i ) ) {\n IRQ_local_pipe ( opp , i , n_IRQ , active , was_active ) ;\n src -> last_cpu = i ;\n break ;\n }\n }\n }\n }"}
{"idx": 19165, "target": 0, "func": "UBool pkg_listContains ( CharList * l , const char * str ) {\n for ( ;\n l ;\n l = l -> next ) {\n if ( ! uprv_strcmp ( l -> str , str ) ) {\n return TRUE ;\n }\n }\n return FALSE ;\n }"}
{"idx": 19166, "target": 1, "func": "static void fixDirToTreePath ( char * s ) {\n # if ( U_FILE_SEP_CHAR != U_TREE_ENTRY_SEP_CHAR ) || ( ( U_FILE_ALT_SEP_CHAR != U_FILE_SEP_CHAR ) && ( U_FILE_ALT_SEP_CHAR != U_TREE_ENTRY_SEP_CHAR ) ) char * t ;\n # endif # if ( U_FILE_SEP_CHAR != U_TREE_ENTRY_SEP_CHAR ) for ( t = s ;\n t = uprv_strchr ( t , U_FILE_SEP_CHAR ) ;\n ) {\n * t = U_TREE_ENTRY_SEP_CHAR ;\n }\n # endif # if ( U_FILE_ALT_SEP_CHAR != U_FILE_SEP_CHAR ) && ( U_FILE_ALT_SEP_CHAR != U_TREE_ENTRY_SEP_CHAR ) for ( t = s ;\n t = uprv_strchr ( t , U_FILE_ALT_SEP_CHAR ) ;\n ) {\n * t = U_TREE_ENTRY_SEP_CHAR ;\n }\n # endif }"}
{"idx": 19167, "target": 0, "func": "static void slavio_misc_init ( hwaddr base , hwaddr aux1_base , hwaddr aux2_base , qemu_irq irq , qemu_irq fdc_tc ) {\n DeviceState * dev ;\n SysBusDevice * s ;\n dev = qdev_create ( NULL , \"slavio_misc\" ) ;\n qdev_init_nofail ( dev ) ;\n s = SYS_BUS_DEVICE ( dev ) ;\n if ( base ) {\n sysbus_mmio_map ( s , 0 , base + MISC_CFG ) ;\n sysbus_mmio_map ( s , 1 , base + MISC_DIAG ) ;\n sysbus_mmio_map ( s , 2 , base + MISC_MDM ) ;\n sysbus_mmio_map ( s , 3 , base + MISC_LEDS ) ;\n sysbus_mmio_map ( s , 4 , base + MISC_SYS ) ;\n }\n if ( aux1_base ) {\n sysbus_mmio_map ( s , 5 , aux1_base ) ;\n }\n if ( aux2_base ) {\n sysbus_mmio_map ( s , 6 , aux2_base ) ;\n }\n sysbus_connect_irq ( s , 0 , irq ) ;\n sysbus_connect_irq ( s , 1 , fdc_tc ) ;\n slavio_system_powerdown = qdev_get_gpio_in ( dev , 0 ) ;\n qemu_register_powerdown_notifier ( & slavio_system_powerdown_notifier ) ;\n }"}
{"idx": 19168, "target": 0, "func": "static int convert_to_token ( const unsigned char * src , size_t len , char * dest ) {\n if ( dest ) memcpy ( dest , src , len ) ;\n return len ;\n }"}
{"idx": 19169, "target": 0, "func": "static unsigned int _warc_rdver ( const char * buf , size_t bsz ) {\n static const char magic [ ] = \"WARC/\" ;\n const char * c ;\n unsigned int ver = 0U ;\n unsigned int end = 0U ;\n if ( bsz < 12 || memcmp ( buf , magic , sizeof ( magic ) - 1U ) != 0 ) {\n return ver ;\n }\n buf += sizeof ( magic ) - 1U ;\n if ( isdigit ( ( unsigned char ) buf [ 0U ] ) && ( buf [ 1U ] == '.' ) && isdigit ( ( unsigned char ) buf [ 2U ] ) ) {\n if ( isdigit ( ( unsigned char ) buf [ 3U ] ) ) end = 1U ;\n ver = ( buf [ 0U ] - '0' ) * 10000U ;\n if ( end == 1U ) {\n ver += ( buf [ 2U ] - '0' ) * 1000U ;\n ver += ( buf [ 3U ] - '0' ) * 100U ;\n }\n else ver += ( buf [ 2U ] - '0' ) * 100U ;\n c = buf + 3U + end ;\n if ( ver >= 1200U ) {\n if ( memcmp ( c , \"\\r\\n\" , 2U ) != 0 ) ver = 0U ;\n }\n else if ( ver < 1200U ) {\n if ( * c != ' ' && * c != '\\t' ) ver = 0U ;\n }\n }\n return ver ;\n }"}
{"idx": 19170, "target": 0, "func": "static void http_base_test ( void ) {\n struct bufferevent * bev ;\n int fd ;\n const char * http_request ;\n short port = - 1 ;\n test_ok = 0 ;\n fprintf ( stdout , \"Testing HTTP Server Event Base: \" ) ;\n base = event_init ( ) ;\n event_init ( ) ;\n http = http_setup ( & port , base ) ;\n fd = http_connect ( \"127.0.0.1\" , port ) ;\n bev = bufferevent_new ( fd , http_readcb , http_writecb , http_errorcb , NULL ) ;\n bufferevent_base_set ( base , bev ) ;\n http_request = \"GET /test HTTP/1.1\\r\\n\" \"Host: somehost\\r\\n\" \"Connection: close\\r\\n\" \"\\r\\n\" ;\n bufferevent_write ( bev , http_request , strlen ( http_request ) ) ;\n event_base_dispatch ( base ) ;\n bufferevent_free ( bev ) ;\n EVUTIL_CLOSESOCKET ( fd ) ;\n evhttp_free ( http ) ;\n event_base_free ( base ) ;\n base = NULL ;\n if ( test_ok != 2 ) {\n fprintf ( stdout , \"FAILED\\n\" ) ;\n exit ( 1 ) ;\n }\n fprintf ( stdout , \"OK\\n\" ) ;\n }"}
{"idx": 19171, "target": 0, "func": "gpg_error_t keydb_update_keyblock ( KEYDB_HANDLE hd , kbnode_t kb ) {\n gpg_error_t err ;\n if ( ! hd ) return gpg_error ( GPG_ERR_INV_ARG ) ;\n keyblock_cache_clear ( ) ;\n if ( hd -> found < 0 || hd -> found >= hd -> used ) return gpg_error ( GPG_ERR_VALUE_NOT_FOUND ) ;\n if ( opt . dry_run ) return 0 ;\n err = lock_all ( hd ) ;\n if ( err ) return err ;\n switch ( hd -> active [ hd -> found ] . type ) {\n case KEYDB_RESOURCE_TYPE_NONE : err = gpg_error ( GPG_ERR_GENERAL ) ;\n break ;\n case KEYDB_RESOURCE_TYPE_KEYRING : err = keyring_update_keyblock ( hd -> active [ hd -> found ] . u . kr , kb ) ;\n break ;\n case KEYDB_RESOURCE_TYPE_KEYBOX : {\n iobuf_t iobuf ;\n err = build_keyblock_image ( kb , & iobuf , NULL ) ;\n if ( ! err ) {\n err = keybox_update_keyblock ( hd -> active [ hd -> found ] . u . kb , iobuf_get_temp_buffer ( iobuf ) , iobuf_get_temp_length ( iobuf ) ) ;\n iobuf_close ( iobuf ) ;\n }\n }\n break ;\n }\n unlock_all ( hd ) ;\n return err ;\n }"}
{"idx": 19172, "target": 0, "func": "static void end_packfile ( void ) {\n static int running ;\n if ( running || ! pack_data ) return ;\n running = 1 ;\n clear_delta_base_cache ( ) ;\n if ( object_count ) {\n struct packed_git * new_p ;\n unsigned char cur_pack_sha1 [ 20 ] ;\n char * idx_name ;\n int i ;\n struct branch * b ;\n struct tag * t ;\n close_pack_windows ( pack_data ) ;\n sha1close ( pack_file , cur_pack_sha1 , 0 ) ;\n fixup_pack_header_footer ( pack_data -> pack_fd , pack_data -> sha1 , pack_data -> pack_name , object_count , cur_pack_sha1 , pack_size ) ;\n close ( pack_data -> pack_fd ) ;\n idx_name = keep_pack ( create_index ( ) ) ;\n new_p = add_packed_git ( idx_name , strlen ( idx_name ) , 1 ) ;\n if ( ! new_p ) die ( \"core git rejected index %s\" , idx_name ) ;\n all_packs [ pack_id ] = new_p ;\n install_packed_git ( new_p ) ;\n if ( pack_edges ) {\n fprintf ( pack_edges , \"%s:\" , new_p -> pack_name ) ;\n for ( i = 0 ;\n i < branch_table_sz ;\n i ++ ) {\n for ( b = branch_table [ i ] ;\n b ;\n b = b -> table_next_branch ) {\n if ( b -> pack_id == pack_id ) fprintf ( pack_edges , \" %s\" , sha1_to_hex ( b -> sha1 ) ) ;\n }\n }\n for ( t = first_tag ;\n t ;\n t = t -> next_tag ) {\n if ( t -> pack_id == pack_id ) fprintf ( pack_edges , \" %s\" , sha1_to_hex ( t -> sha1 ) ) ;\n }\n fputc ( '\\n' , pack_edges ) ;\n fflush ( pack_edges ) ;\n }\n pack_id ++ ;\n }\n else {\n close ( pack_data -> pack_fd ) ;\n unlink_or_warn ( pack_data -> pack_name ) ;\n }\n free ( pack_data ) ;\n pack_data = NULL ;\n running = 0 ;\n strbuf_release ( & last_blob . data ) ;\n last_blob . offset = 0 ;\n last_blob . depth = 0 ;\n }"}
{"idx": 19173, "target": 0, "func": "void pdo_row_free_storage ( pdo_stmt_t * stmt TSRMLS_DC ) {\n if ( stmt ) {\n ZVAL_NULL ( & stmt -> lazy_object_ref ) ;\n if ( -- stmt -> refcount == 0 ) {\n free_statement ( stmt TSRMLS_CC ) ;\n }\n }\n }"}
{"idx": 19174, "target": 0, "func": "static gboolean gst_asf_demux_activate_mode ( GstPad * sinkpad , GstObject * parent , GstPadMode mode , gboolean active ) {\n gboolean res ;\n GstASFDemux * demux ;\n demux = GST_ASF_DEMUX ( parent ) ;\n switch ( mode ) {\n case GST_PAD_MODE_PUSH : demux -> state = GST_ASF_DEMUX_STATE_HEADER ;\n demux -> streaming = TRUE ;\n res = TRUE ;\n break ;\n case GST_PAD_MODE_PULL : if ( active ) {\n demux -> state = GST_ASF_DEMUX_STATE_HEADER ;\n demux -> streaming = FALSE ;\n res = gst_pad_start_task ( sinkpad , ( GstTaskFunction ) gst_asf_demux_loop , demux , NULL ) ;\n }\n else {\n res = gst_pad_stop_task ( sinkpad ) ;\n }\n break ;\n default : res = FALSE ;\n break ;\n }\n return res ;\n }"}
{"idx": 19175, "target": 0, "func": "static int dissect_rsl_ie_llp_apdu ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_item * ti ;\n proto_tree * ie_tree ;\n guint8 length ;\n int ie_offset ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_LLP_APDU ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_ie_llp_apdu , & ti , \"LLP APDU IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n length = tvb_get_guint8 ( tvb , offset ) ;\n proto_item_set_len ( ti , length + 2 ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_length , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n ie_offset = offset ;\n proto_tree_add_expert ( tree , pinfo , & ei_rsl_facility_information_element_3gpp_ts_44071 , tvb , offset , length ) ;\n return ie_offset + length ;\n }"}
{"idx": 19176, "target": 0, "func": "struct event_base * event_init ( void ) {\n struct event_base * base = event_base_new ( ) ;\n if ( base != NULL ) current_base = base ;\n return ( base ) ;\n }"}
{"idx": 19177, "target": 0, "func": "int qemuMonitorJSONRemoveHostNetwork ( qemuMonitorPtr mon , int vlan , const char * netname ) {\n int ret ;\n virJSONValuePtr cmd = qemuMonitorJSONMakeCommand ( \"host_net_remove\" , \"i:vlan\" , vlan , \"s:device\" , netname , NULL ) ;\n virJSONValuePtr reply = NULL ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 19178, "target": 0, "func": "static void cirrus_invalidate_region ( CirrusVGAState * s , int off_begin , int off_pitch , int bytesperline , int lines ) {\n int y ;\n int off_cur ;\n int off_cur_end ;\n if ( off_pitch < 0 ) {\n off_begin -= bytesperline - 1 ;\n }\n for ( y = 0 ;\n y < lines ;\n y ++ ) {\n off_cur = off_begin ;\n off_cur_end = ( ( off_cur + bytesperline - 1 ) & s -> cirrus_addr_mask ) + 1 ;\n assert ( off_cur_end >= off_cur ) ;\n memory_region_set_dirty ( & s -> vga . vram , off_cur , off_cur_end - off_cur ) ;\n off_begin += off_pitch ;\n }\n }"}
{"idx": 19179, "target": 0, "func": "static void implicit_weight_table ( H264Context * h , int field ) {\n int ref0 , ref1 , i , cur_poc , ref_start , ref_count0 , ref_count1 ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n h -> luma_weight_flag [ i ] = 0 ;\n h -> chroma_weight_flag [ i ] = 0 ;\n }\n if ( field < 0 ) {\n if ( h -> picture_structure == PICT_FRAME ) {\n cur_poc = h -> cur_pic_ptr -> poc ;\n }\n else {\n cur_poc = h -> cur_pic_ptr -> field_poc [ h -> picture_structure - 1 ] ;\n }\n if ( h -> ref_count [ 0 ] == 1 && h -> ref_count [ 1 ] == 1 && ! FRAME_MBAFF ( h ) && h -> ref_list [ 0 ] [ 0 ] . poc + h -> ref_list [ 1 ] [ 0 ] . poc == 2 * cur_poc ) {\n h -> use_weight = 0 ;\n h -> use_weight_chroma = 0 ;\n return ;\n }\n ref_start = 0 ;\n ref_count0 = h -> ref_count [ 0 ] ;\n ref_count1 = h -> ref_count [ 1 ] ;\n }\n else {\n cur_poc = h -> cur_pic_ptr -> field_poc [ field ] ;\n ref_start = 16 ;\n ref_count0 = 16 + 2 * h -> ref_count [ 0 ] ;\n ref_count1 = 16 + 2 * h -> ref_count [ 1 ] ;\n }\n h -> use_weight = 2 ;\n h -> use_weight_chroma = 2 ;\n h -> luma_log2_weight_denom = 5 ;\n h -> chroma_log2_weight_denom = 5 ;\n for ( ref0 = ref_start ;\n ref0 < ref_count0 ;\n ref0 ++ ) {\n int poc0 = h -> ref_list [ 0 ] [ ref0 ] . poc ;\n for ( ref1 = ref_start ;\n ref1 < ref_count1 ;\n ref1 ++ ) {\n int w = 32 ;\n if ( ! h -> ref_list [ 0 ] [ ref0 ] . long_ref && ! h -> ref_list [ 1 ] [ ref1 ] . long_ref ) {\n int poc1 = h -> ref_list [ 1 ] [ ref1 ] . poc ;\n int td = av_clip ( poc1 - poc0 , - 128 , 127 ) ;\n if ( td ) {\n int tb = av_clip ( cur_poc - poc0 , - 128 , 127 ) ;\n int tx = ( 16384 + ( FFABS ( td ) >> 1 ) ) / td ;\n int dist_scale_factor = ( tb * tx + 32 ) >> 8 ;\n if ( dist_scale_factor >= - 64 && dist_scale_factor <= 128 ) w = 64 - dist_scale_factor ;\n }\n }\n if ( field < 0 ) {\n h -> implicit_weight [ ref0 ] [ ref1 ] [ 0 ] = h -> implicit_weight [ ref0 ] [ ref1 ] [ 1 ] = w ;\n }\n else {\n h -> implicit_weight [ ref0 ] [ ref1 ] [ field ] = w ;\n }\n }\n }\n }"}
{"idx": 19180, "target": 0, "func": "int mime_header_encoder_feed ( int c , struct mime_header_encoder_data * pe ) {\n return ( * pe -> conv1_filter -> filter_function ) ( c , pe -> conv1_filter ) ;\n }"}
{"idx": 19181, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( UnloadTest , BrowserListForceCloseNoUnloadListeners ) {\n NavigateToDataURL ( NOLISTENERS_HTML , \"nolisteners\" ) ;\n content : : WindowedNotificationObserver window_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , content : : NotificationService : : AllSources ( ) ) ;\n UnloadResults unload_results ;\n BrowserList : : CloseAllBrowsersWithProfile ( browser ( ) -> profile ( ) , base : : Bind ( & UnloadResults : : AddSuccess , base : : Unretained ( & unload_results ) ) , base : : Bind ( & UnloadResults : : AddAbort , base : : Unretained ( & unload_results ) ) , true ) ;\n window_observer . Wait ( ) ;\n EXPECT_EQ ( 1 , unload_results . get_successes ( ) ) ;\n EXPECT_EQ ( 0 , unload_results . get_aborts ( ) ) ;\n }"}
{"idx": 19182, "target": 0, "func": "static unsigned long write_large_blob_data ( struct git_istream * st , struct sha1file * f , const unsigned char * sha1 ) {\n git_zstream stream ;\n unsigned char ibuf [ 1024 * 16 ] ;\n unsigned char obuf [ 1024 * 16 ] ;\n unsigned long olen = 0 ;\n git_deflate_init ( & stream , pack_compression_level ) ;\n for ( ;\n ;\n ) {\n ssize_t readlen ;\n int zret = Z_OK ;\n readlen = read_istream ( st , ibuf , sizeof ( ibuf ) ) ;\n if ( readlen == - 1 ) die ( _ ( \"unable to read %s\" ) , sha1_to_hex ( sha1 ) ) ;\n stream . next_in = ibuf ;\n stream . avail_in = readlen ;\n while ( ( stream . avail_in || readlen == 0 ) && ( zret == Z_OK || zret == Z_BUF_ERROR ) ) {\n stream . next_out = obuf ;\n stream . avail_out = sizeof ( obuf ) ;\n zret = git_deflate ( & stream , readlen ? 0 : Z_FINISH ) ;\n sha1write ( f , obuf , stream . next_out - obuf ) ;\n olen += stream . next_out - obuf ;\n }\n if ( stream . avail_in ) die ( _ ( \"deflate error (%d)\" ) , zret ) ;\n if ( readlen == 0 ) {\n if ( zret != Z_STREAM_END ) die ( _ ( \"deflate error (%d)\" ) , zret ) ;\n break ;\n }\n }\n git_deflate_end ( & stream ) ;\n return olen ;\n }"}
{"idx": 19183, "target": 0, "func": "TEST_F ( FullscreenControllerStateUnitTest , OneCapturedTabFullscreenedBeforeBrowserFullscreen ) {\n content : : WebContentsDelegate * const wc_delegate = static_cast < content : : WebContentsDelegate * > ( browser ( ) ) ;\n ASSERT_TRUE ( wc_delegate -> EmbedsFullscreenWidget ( ) ) ;\n AddTab ( browser ( ) , GURL ( url : : kAboutBlankURL ) ) ;\n content : : WebContents * const tab = browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 0 ) ;\n browser ( ) -> tab_strip_model ( ) -> ActivateTabAt ( 0 , true ) ;\n const gfx : : Size kCaptureSize ( 1280 , 720 ) ;\n tab -> IncrementCapturerCount ( kCaptureSize ) ;\n ASSERT_TRUE ( InvokeEvent ( TAB_FULLSCREEN_TRUE ) ) ;\n EXPECT_TRUE ( wc_delegate -> IsFullscreenForTabOrPending ( tab ) ) ;\n EXPECT_FALSE ( GetFullscreenController ( ) -> IsWindowFullscreenForTabOrPending ( ) ) ;\n EXPECT_FALSE ( GetFullscreenController ( ) -> IsFullscreenForBrowser ( ) ) ;\n ASSERT_TRUE ( InvokeEvent ( TOGGLE_FULLSCREEN ) ) ;\n ASSERT_TRUE ( InvokeEvent ( WINDOW_CHANGE ) ) ;\n EXPECT_TRUE ( wc_delegate -> IsFullscreenForTabOrPending ( tab ) ) ;\n EXPECT_FALSE ( GetFullscreenController ( ) -> IsWindowFullscreenForTabOrPending ( ) ) ;\n EXPECT_TRUE ( GetFullscreenController ( ) -> IsFullscreenForBrowser ( ) ) ;\n ASSERT_TRUE ( InvokeEvent ( TOGGLE_FULLSCREEN ) ) ;\n ASSERT_TRUE ( InvokeEvent ( WINDOW_CHANGE ) ) ;\n EXPECT_TRUE ( wc_delegate -> IsFullscreenForTabOrPending ( tab ) ) ;\n EXPECT_FALSE ( GetFullscreenController ( ) -> IsWindowFullscreenForTabOrPending ( ) ) ;\n EXPECT_FALSE ( GetFullscreenController ( ) -> IsFullscreenForBrowser ( ) ) ;\n ASSERT_TRUE ( InvokeEvent ( TOGGLE_FULLSCREEN ) ) ;\n ASSERT_TRUE ( InvokeEvent ( WINDOW_CHANGE ) ) ;\n ASSERT_TRUE ( InvokeEvent ( TAB_FULLSCREEN_FALSE ) ) ;\n EXPECT_FALSE ( wc_delegate -> IsFullscreenForTabOrPending ( tab ) ) ;\n EXPECT_FALSE ( GetFullscreenController ( ) -> IsWindowFullscreenForTabOrPending ( ) ) ;\n EXPECT_TRUE ( GetFullscreenController ( ) -> IsFullscreenForBrowser ( ) ) ;\n }"}
{"idx": 19184, "target": 0, "func": "static int dissect_btgatt_microbit_led_text ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , void * data ) {\n btatt_data_t * att_data = ( btatt_data_t * ) data ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) return - 1 ;\n proto_tree_add_item ( tree , hf_gatt_microbit_led_text , tvb , 0 , tvb_captured_length ( tvb ) , ENC_NA | ENC_UTF_8 ) ;\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 19185, "target": 0, "func": "static inline void code_gen_alloc ( size_t tb_size ) {\n tcg_ctx . code_gen_buffer_size = size_code_gen_buffer ( tb_size ) ;\n tcg_ctx . code_gen_buffer = alloc_code_gen_buffer ( ) ;\n if ( tcg_ctx . code_gen_buffer == NULL ) {\n fprintf ( stderr , \"Could not allocate dynamic translator buffer\\n\" ) ;\n exit ( 1 ) ;\n }\n qemu_madvise ( tcg_ctx . code_gen_buffer , tcg_ctx . code_gen_buffer_size , QEMU_MADV_HUGEPAGE ) ;\n tcg_ctx . code_gen_prologue = tcg_ctx . code_gen_buffer + tcg_ctx . code_gen_buffer_size - 1024 ;\n tcg_ctx . code_gen_buffer_size -= 1024 ;\n tcg_ctx . code_gen_buffer_max_size = tcg_ctx . code_gen_buffer_size - ( TCG_MAX_OP_SIZE * OPC_BUF_SIZE ) ;\n tcg_ctx . code_gen_max_blocks = tcg_ctx . code_gen_buffer_size / CODE_GEN_AVG_BLOCK_SIZE ;\n tcg_ctx . tb_ctx . tbs = g_malloc ( tcg_ctx . code_gen_max_blocks * sizeof ( TranslationBlock ) ) ;\n }"}
{"idx": 19186, "target": 0, "func": "static void test_double_compare ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n char real_data [ 10 ] , tiny_data ;\n double double_data ;\n MYSQL_RES * result ;\n MYSQL_BIND my_bind [ 3 ] ;\n ulong length [ 3 ] ;\n char query [ MAX_TEST_QUERY_LENGTH ] ;\n myheader ( \"test_double_compare\" ) ;\n rc = mysql_autocommit ( mysql , TRUE ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_double_compare\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_double_compare(col1 tinyint, \" \" col2 float, col3 double )\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_double_compare \" \"VALUES (1, 10.2, 34.5)\" ) ;\n myquery ( rc ) ;\n strmov ( query , \"UPDATE test_double_compare SET col1=100 \" \"WHERE col1 = ? AND col2 = ? AND COL3 = ?\" ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n verify_param_count ( stmt , 3 ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_TINY ;\n my_bind [ 0 ] . buffer = ( void * ) & tiny_data ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 1 ] . buffer = ( void * ) & real_data ;\n my_bind [ 1 ] . buffer_length = sizeof ( real_data ) ;\n my_bind [ 1 ] . length = & length [ 1 ] ;\n length [ 1 ] = 10 ;\n my_bind [ 2 ] . buffer_type = MYSQL_TYPE_DOUBLE ;\n my_bind [ 2 ] . buffer = ( void * ) & double_data ;\n tiny_data = 1 ;\n strmov ( real_data , \"10.2\" ) ;\n double_data = 34.5 ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n verify_affected_rows ( 0 ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"SELECT * FROM test_double_compare\" ) ;\n myquery ( rc ) ;\n result = mysql_store_result ( mysql ) ;\n mytest ( result ) ;\n rc = my_process_result_set ( result ) ;\n DIE_UNLESS ( ( int ) tiny_data == rc ) ;\n mysql_free_result ( result ) ;\n }"}
{"idx": 19187, "target": 0, "func": "static void pdf_show_space ( fz_context * ctx , pdf_run_processor * pr , float tadj ) {\n pdf_gstate * gstate = pr -> gstate + pr -> gtop ;\n pdf_font_desc * fontdesc = gstate -> text . font ;\n if ( fontdesc -> wmode == 0 ) fz_pre_translate ( & pr -> tos . tm , tadj * gstate -> text . scale , 0 ) ;\n else fz_pre_translate ( & pr -> tos . tm , 0 , tadj ) ;\n }"}
{"idx": 19188, "target": 0, "func": "int TSHttpTxnIsInternal ( TSHttpTxn txnp ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n return TSHttpSsnIsInternal ( TSHttpTxnSsnGet ( txnp ) ) ;\n }"}
{"idx": 19189, "target": 0, "func": "int psf_file_valid ( SF_PRIVATE * psf ) {\n return ( psf -> file . filedes >= 0 ) ? SF_TRUE : SF_FALSE ;\n }"}
{"idx": 19190, "target": 0, "func": "REGRESSION_TEST ( SDK_API_UUID ) ( RegressionTest * test , int , int * pstatus ) {\n TSUuid machine , uuid ;\n const char * str1 ;\n const char * str2 ;\n static const char uuid_v1 [ ] = \"5de5f9ec-30f4-11e6-a073-002590a33e4e\" ;\n static const char uuid_v4 [ ] = \"0e95fe5f-295a-401d-9ae4-eb32756d73cb\" ;\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n machine = TSProcessUuidGet ( ) ;\n if ( ! machine ) {\n SDK_RPRINT ( test , \"TSProcessUuidGet\" , \"TestCase1\" , TC_FAIL , \"Returned a NULL pointer\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n return ;\n }\n else if ( ! ( ( ATSUuid * ) machine ) -> valid ( ) ) {\n SDK_RPRINT ( test , \"TSProcessUuidGet\" , \"TestCase2\" , TC_FAIL , \"Returned an invalid UUID object\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n return ;\n }\n else {\n SDK_RPRINT ( test , \"TSProcessUuidGet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n SDK_RPRINT ( test , \"TSProcessUuidGet\" , \"TestCase2\" , TC_PASS , \"ok\" ) ;\n }\n str1 = TSUuidStringGet ( machine ) ;\n if ( ! str1 || ( TS_UUID_STRING_LEN != strlen ( str1 ) ) ) {\n SDK_RPRINT ( test , \"TSUuidStringGet\" , \"TestCase1\" , TC_FAIL , \"Did not return a valid UUID string representation\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n return ;\n }\n else {\n SDK_RPRINT ( test , \"TSUuidStringGet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n if ( ! ( uuid = TSUuidCreate ( ) ) ) {\n SDK_RPRINT ( test , \"TSUuidCreate\" , \"TestCase1\" , TC_FAIL , \"Failed to crete a UUID object\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n return ;\n }\n else {\n SDK_RPRINT ( test , \"TSUuidCreate\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n if ( TS_SUCCESS != TSUuidInitialize ( uuid , TS_UUID_V4 ) ) {\n SDK_RPRINT ( test , \"TSUuidInitialize\" , \"TestCase1\" , TC_FAIL , \"Failed to Initialize a V4 UUID\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n goto cleanup ;\n }\n else {\n SDK_RPRINT ( test , \"TSUuidInitialize\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n }\n if ( TS_UUID_V4 != TSUuidVersionGet ( uuid ) ) {\n SDK_RPRINT ( test , \"TSUuidVersionGet\" , \"TestCase1\" , TC_FAIL , \"Failed to get the UUID version\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n goto cleanup ;\n }\n else {\n SDK_RPRINT ( test , \"TSUuidVersionGet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n if ( TS_SUCCESS != TSUuidCopy ( uuid , machine ) ) {\n SDK_RPRINT ( test , \"TSUuidCopy\" , \"TestCase1\" , TC_FAIL , \"Failed to copy the Machine UUID object\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n goto cleanup ;\n }\n else {\n SDK_RPRINT ( test , \"TSUuidCopy\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n str2 = TSUuidStringGet ( uuid ) ;\n if ( ! str2 || ( TS_UUID_STRING_LEN != strlen ( str2 ) ) || strcmp ( str1 , str2 ) ) {\n SDK_RPRINT ( test , \"TSUuidCopy\" , \"TestCase2\" , TC_FAIL , \"The copied UUID strings are not identical\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n goto cleanup ;\n }\n else {\n SDK_RPRINT ( test , \"TSUuidCopy\" , \"TestCase2\" , TC_PASS , \"ok\" ) ;\n }\n }\n if ( TS_SUCCESS != TSUuidInitialize ( uuid , TS_UUID_V4 ) ) {\n SDK_RPRINT ( test , \"TSUuidInitialize\" , \"TestCase2\" , TC_FAIL , \"Failed to re-initialize the UUID object\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n goto cleanup ;\n }\n else {\n SDK_RPRINT ( test , \"TSUuidInitialize\" , \"TestCase2\" , TC_PASS , \"ok\" ) ;\n str2 = TSUuidStringGet ( uuid ) ;\n if ( ! str2 || ( TS_UUID_STRING_LEN != strlen ( str2 ) ) || ! strcmp ( str1 , str2 ) ) {\n SDK_RPRINT ( test , \"TSUuidInitialize\" , \"TestCase3\" , TC_FAIL , \"The re-initialized string is the same as before\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n goto cleanup ;\n }\n else {\n SDK_RPRINT ( test , \"TSUuidInitialize\" , \"TestCase3\" , TC_PASS , \"ok\" ) ;\n }\n }\n if ( ( TS_SUCCESS != TSUuidStringParse ( uuid , uuid_v1 ) ) || ( TS_UUID_V1 != TSUuidVersionGet ( uuid ) ) ) {\n SDK_RPRINT ( test , \"TSUuidStringParse\" , \"TestCase1\" , TC_FAIL , \"Failed to parse the UUID v1 string\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n goto cleanup ;\n }\n else {\n SDK_RPRINT ( test , \"TSUuidStringParse\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n str1 = TSUuidStringGet ( uuid ) ;\n if ( ! str1 || ( TS_UUID_STRING_LEN != strlen ( str1 ) ) || strcmp ( str1 , uuid_v1 ) ) {\n SDK_RPRINT ( test , \"TSUuidStringString\" , \"TestCase2\" , TC_FAIL , \"The parse UUID v1 string does not match the original\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n goto cleanup ;\n }\n else {\n SDK_RPRINT ( test , \"TSUuidStringParse\" , \"TestCase2\" , TC_PASS , \"ok\" ) ;\n }\n }\n if ( ( TS_SUCCESS != TSUuidStringParse ( uuid , uuid_v4 ) ) || ( TS_UUID_V4 != TSUuidVersionGet ( uuid ) ) ) {\n SDK_RPRINT ( test , \"TSUuidStringParse\" , \"TestCase3\" , TC_FAIL , \"Failed to parse the UUID v4 string\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n goto cleanup ;\n }\n else {\n SDK_RPRINT ( test , \"TSUuidStringParse\" , \"TestCase3\" , TC_PASS , \"ok\" ) ;\n str1 = TSUuidStringGet ( uuid ) ;\n if ( ! str1 || ( TS_UUID_STRING_LEN != strlen ( str1 ) ) || strcmp ( str1 , uuid_v4 ) ) {\n SDK_RPRINT ( test , \"TSUuidStringParse\" , \"TestCase4\" , TC_FAIL , \"The parse UUID v4 string does not match the original\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n goto cleanup ;\n }\n else {\n SDK_RPRINT ( test , \"TSUuidStringParse\" , \"TestCase4\" , TC_PASS , \"ok\" ) ;\n }\n }\n * pstatus = REGRESSION_TEST_PASSED ;\n cleanup : TSUuidDestroy ( uuid ) ;\n return ;\n }"}
{"idx": 19191, "target": 0, "func": "void vp9_idct32x32_1_add_sse2 ( const int16_t * input , uint8_t * dest , int stride ) {\n __m128i dc_value ;\n const __m128i zero = _mm_setzero_si128 ( ) ;\n int a , i ;\n a = dct_const_round_shift ( input [ 0 ] * cospi_16_64 ) ;\n a = dct_const_round_shift ( a * cospi_16_64 ) ;\n a = ROUND_POWER_OF_TWO ( a , 6 ) ;\n dc_value = _mm_set1_epi16 ( a ) ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) {\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n RECON_AND_STORE ( dest , dc_value ) ;\n dest += 8 - ( stride * 32 ) ;\n }\n }"}
{"idx": 19192, "target": 0, "func": "static int dissect_rsl_ie_bs_power ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_tree * ie_tree ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_BS_POW ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 2 , ett_ie_bs_power , NULL , \"BS Power IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_epc_mode , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_bs_fpc_epc_mode , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_bs_power , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n return offset ;\n }"}
{"idx": 19193, "target": 0, "func": "static inline int libopenjpeg_ispacked ( enum AVPixelFormat pix_fmt ) {\n const AVPixFmtDescriptor * desc = av_pix_fmt_desc_get ( pix_fmt ) ;\n int i , component_plane ;\n if ( pix_fmt == AV_PIX_FMT_GRAY16 ) return 0 ;\n component_plane = desc -> comp [ 0 ] . plane ;\n for ( i = 1 ;\n i < desc -> nb_components ;\n i ++ ) {\n if ( component_plane != desc -> comp [ i ] . plane ) return 0 ;\n }\n return 1 ;\n }"}
{"idx": 19194, "target": 1, "func": "static int raw_decode ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const AVPixFmtDescriptor * desc = av_pix_fmt_desc_get ( avctx -> pix_fmt ) ;\n RawVideoContext * context = avctx -> priv_data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n int res ;\n AVFrame * frame = data ;\n AVPicture * picture = data ;\n frame -> pict_type = avctx -> coded_frame -> pict_type ;\n frame -> interlaced_frame = avctx -> coded_frame -> interlaced_frame ;\n frame -> top_field_first = avctx -> coded_frame -> top_field_first ;\n frame -> reordered_opaque = avctx -> reordered_opaque ;\n frame -> pkt_pts = avctx -> pkt -> pts ;\n if ( buf_size < context -> length - ( avctx -> pix_fmt == AV_PIX_FMT_PAL8 ? AVPALETTE_SIZE : 0 ) ) return - 1 ;\n if ( context -> buffer ) {\n int i ;\n uint8_t * dst = context -> buffer ;\n buf_size = context -> length - AVPALETTE_SIZE ;\n if ( avctx -> bits_per_coded_sample == 4 ) {\n for ( i = 0 ;\n 2 * i + 1 < buf_size ;\n i ++ ) {\n dst [ 2 * i + 0 ] = buf [ i ] >> 4 ;\n dst [ 2 * i + 1 ] = buf [ i ] & 15 ;\n }\n }\n else {\n for ( i = 0 ;\n 4 * i + 3 < buf_size ;\n i ++ ) {\n dst [ 4 * i + 0 ] = buf [ i ] >> 6 ;\n dst [ 4 * i + 1 ] = buf [ i ] >> 4 & 3 ;\n dst [ 4 * i + 2 ] = buf [ i ] >> 2 & 3 ;\n dst [ 4 * i + 3 ] = buf [ i ] & 3 ;\n }\n }\n buf = dst ;\n }\n if ( avctx -> codec_tag == MKTAG ( 'A' , 'V' , '1' , 'x' ) || avctx -> codec_tag == MKTAG ( 'A' , 'V' , 'u' , 'p' ) ) buf += buf_size - context -> length ;\n if ( ( res = avpicture_fill ( picture , buf , avctx -> pix_fmt , avctx -> width , avctx -> height ) ) < 0 ) return res ;\n if ( ( avctx -> pix_fmt == AV_PIX_FMT_PAL8 && buf_size < context -> length ) || ( desc -> flags & PIX_FMT_PSEUDOPAL ) ) {\n frame -> data [ 1 ] = context -> palette ;\n }\n if ( avctx -> pix_fmt == AV_PIX_FMT_PAL8 ) {\n const uint8_t * pal = av_packet_get_side_data ( avpkt , AV_PKT_DATA_PALETTE , NULL ) ;\n if ( pal ) {\n memcpy ( frame -> data [ 1 ] , pal , AVPALETTE_SIZE ) ;\n frame -> palette_has_changed = 1 ;\n }\n }\n if ( avctx -> pix_fmt == AV_PIX_FMT_BGR24 && ( ( frame -> linesize [ 0 ] + 3 ) & ~ 3 ) * avctx -> height <= buf_size ) frame -> linesize [ 0 ] = ( frame -> linesize [ 0 ] + 3 ) & ~ 3 ;\n if ( context -> flip ) flip ( avctx , picture ) ;\n if ( avctx -> codec_tag == MKTAG ( 'Y' , 'V' , '1' , '2' ) || avctx -> codec_tag == MKTAG ( 'Y' , 'V' , '1' , '6' ) || avctx -> codec_tag == MKTAG ( 'Y' , 'V' , '2' , '4' ) || avctx -> codec_tag == MKTAG ( 'Y' , 'V' , 'U' , '9' ) ) FFSWAP ( uint8_t * , picture -> data [ 1 ] , picture -> data [ 2 ] ) ;\n if ( avctx -> codec_tag == AV_RL32 ( \"yuv2\" ) && avctx -> pix_fmt == AV_PIX_FMT_YUYV422 ) {\n int x , y ;\n uint8_t * line = picture -> data [ 0 ] ;\n for ( y = 0 ;\n y < avctx -> height ;\n y ++ ) {\n for ( x = 0 ;\n x < avctx -> width ;\n x ++ ) line [ 2 * x + 1 ] ^= 0x80 ;\n line += picture -> linesize [ 0 ] ;\n }\n }\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 19195, "target": 0, "func": "static int selinux_msg_msg_alloc_security ( struct msg_msg * msg ) {\n return msg_msg_alloc_security ( msg ) ;\n }"}
{"idx": 19196, "target": 0, "func": "void TSContDataSet ( TSCont contp , void * data ) {\n sdk_assert ( sdk_sanity_check_iocore_structure ( contp ) == TS_SUCCESS ) ;\n INKContInternal * i = ( INKContInternal * ) contp ;\n i -> mdata = data ;\n }"}
{"idx": 19197, "target": 0, "func": "static void dissect_rsvp_template_filter ( proto_item * ti , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int type , rsvp_conversation_info * rsvph ) {\n int offset2 = offset + 4 ;\n proto_item_set_text ( ti , \"%s\" , summary_template ( tvb , offset ) ) ;\n switch ( type ) {\n case 1 : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"1 - IPv4\" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_filter [ RSVPF_SENDER_IP ] , tvb , offset2 , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_filter [ RSVPF_SENDER_PORT ] , tvb , offset2 + 6 , 2 , ENC_BIG_ENDIAN ) ;\n set_address_tvb ( & rsvph -> source , AT_IPv4 , 4 , tvb , offset2 ) ;\n rsvph -> udp_source_port = tvb_get_ntohs ( tvb , offset2 + 6 ) ;\n break ;\n case 2 : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"2 - IPv6\" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_template_filter_source_address_ipv6 , tvb , offset2 , 16 , ENC_NA ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_template_filter_source_port , tvb , offset2 + 18 , 2 , ENC_BIG_ENDIAN ) ;\n break ;\n case 7 : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"7 - IPv4 LSP\" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_filter [ RSVPF_SENDER_IP ] , tvb , offset2 , 4 , ENC_BIG_ENDIAN ) ;\n if ( rsvp_class == RSVP_CLASS_SENDER_TEMPLATE ) {\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_filter [ RSVPF_SENDER_SHORT_CALL_ID ] , tvb , offset2 + 4 , 2 , ENC_BIG_ENDIAN ) ;\n }\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_filter [ RSVPF_SENDER_LSP_ID ] , tvb , offset2 + 6 , 2 , ENC_BIG_ENDIAN ) ;\n set_address_tvb ( & rsvph -> source , AT_IPv4 , 4 , tvb , offset2 ) ;\n rsvph -> udp_source_port = tvb_get_ntohs ( tvb , offset2 + 6 ) ;\n break ;\n case 8 : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"8 - IPv6 LSP\" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_filter [ RSVPF_SENDER_IP ] , tvb , offset2 , 16 , ENC_BIG_ENDIAN ) ;\n if ( rsvp_class == RSVP_CLASS_SENDER_TEMPLATE ) {\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_filter [ RSVPF_SENDER_SHORT_CALL_ID ] , tvb , offset2 + 16 , 2 , ENC_BIG_ENDIAN ) ;\n }\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_filter [ RSVPF_SENDER_LSP_ID ] , tvb , offset2 + 18 , 2 , ENC_BIG_ENDIAN ) ;\n set_address_tvb ( & rsvph -> source , AT_IPv6 , 16 , tvb , offset2 ) ;\n rsvph -> udp_source_port = tvb_get_ntohs ( tvb , offset2 + 18 ) ;\n break ;\n case 9 : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"9 - IPv4 Aggregate\" ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_filter [ RSVPF_SENDER_IP ] , tvb , offset2 , 4 , ENC_BIG_ENDIAN ) ;\n set_address_tvb ( & rsvph -> source , AT_IPv4 , 4 , tvb , offset2 ) ;\n break ;\n default : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"Unknown (%u)\" , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_template_filter_data , tvb , offset2 , obj_length - 4 , ENC_NA ) ;\n break ;\n }\n }"}
{"idx": 19198, "target": 0, "func": "static int dissect_h225_T_h245Ip6 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 350 \"./asn1/h225/h225.cnf\" tvbuff_t * value_tvb ;\n ipv6_address = ipv6_address_zeros ;\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 16 , 16 , FALSE , & value_tvb ) ;\n if ( value_tvb ) tvb_get_ipv6 ( value_tvb , 0 , & ipv6_address ) ;\n return offset ;\n }"}
{"idx": 19199, "target": 0, "func": "static gcry_err_code_t dummy_generate ( int algorithm , unsigned int nbits , unsigned long dummy , gcry_mpi_t * skey , gcry_mpi_t * * retfactors ) {\n ( void ) algorithm ;\n ( void ) nbits ;\n ( void ) dummy ;\n ( void ) skey ;\n ( void ) retfactors ;\n fips_signal_error ( \"using dummy public key function\" ) ;\n return GPG_ERR_NOT_IMPLEMENTED ;\n }"}
{"idx": 19200, "target": 0, "func": "static int mss4_decode_dct_block ( MSS4Context * c , GetBitContext * gb , uint8_t * dst [ 3 ] , int mb_x , int mb_y ) {\n int i , j , k , ret ;\n uint8_t * out = dst [ 0 ] ;\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n int xpos = mb_x * 2 + i ;\n c -> dc_cache [ j ] [ TOP_LEFT ] = c -> dc_cache [ j ] [ TOP ] ;\n c -> dc_cache [ j ] [ TOP ] = c -> prev_dc [ 0 ] [ mb_x * 2 + i ] ;\n ret = mss4_decode_dct ( gb , c -> dc_vlc , c -> ac_vlc , c -> block , c -> dc_cache [ j ] , xpos , mb_y * 2 + j , c -> quant_mat [ 0 ] ) ;\n if ( ret ) return ret ;\n c -> prev_dc [ 0 ] [ mb_x * 2 + i ] = c -> dc_cache [ j ] [ LEFT ] ;\n ff_mss34_dct_put ( out + xpos * 8 , c -> pic . linesize [ 0 ] , c -> block ) ;\n }\n out += 8 * c -> pic . linesize [ 0 ] ;\n }\n for ( i = 1 ;\n i < 3 ;\n i ++ ) {\n c -> dc_cache [ i + 1 ] [ TOP_LEFT ] = c -> dc_cache [ i + 1 ] [ TOP ] ;\n c -> dc_cache [ i + 1 ] [ TOP ] = c -> prev_dc [ i ] [ mb_x ] ;\n ret = mss4_decode_dct ( gb , c -> dc_vlc + 1 , c -> ac_vlc + 1 , c -> block , c -> dc_cache [ i + 1 ] , mb_x , mb_y , c -> quant_mat [ 1 ] ) ;\n if ( ret ) return ret ;\n c -> prev_dc [ i ] [ mb_x ] = c -> dc_cache [ i + 1 ] [ LEFT ] ;\n ff_mss34_dct_put ( c -> imgbuf [ i ] , 8 , c -> block ) ;\n out = dst [ i ] + mb_x * 16 ;\n for ( j = 0 ;\n j < 16 ;\n j ++ ) {\n for ( k = 0 ;\n k < 8 ;\n k ++ ) AV_WN16A ( out + k * 2 , c -> imgbuf [ i ] [ k + ( j & ~ 1 ) * 4 ] * 0x101 ) ;\n out += c -> pic . linesize [ i ] ;\n }\n }\n return 0 ;\n }"}
{"idx": 19201, "target": 0, "func": "void * checked_xmalloc ( size_t num , size_t size ) {\n size_t res ;\n if ( check_mul_overflow ( num , size , & res ) ) abort ( ) ;\n alloc_limit_assert ( \"checked_xmalloc\" , res ) ;\n return xmalloc ( num , size ) ;\n }"}
{"idx": 19202, "target": 0, "func": "static void dissect_coap_opt_location_query ( tvbuff_t * tvb , proto_item * head_item , proto_tree * subtree , gint offset , gint opt_length , int hf ) {\n const guint8 * str = NULL ;\n if ( opt_length == 0 ) {\n str = nullstr ;\n }\n else {\n str = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset , opt_length , ENC_ASCII ) ;\n }\n proto_tree_add_string ( subtree , hf , tvb , offset , opt_length , str ) ;\n proto_item_append_text ( head_item , \": %s\" , str ) ;\n }"}
{"idx": 19203, "target": 0, "func": "static int zisofs_rewind_boot_file ( struct archive_write * a ) {\n struct iso9660 * iso9660 = a -> format_data ;\n if ( iso9660 -> el_torito . boot -> file -> zisofs . header_size != 0 ) {\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"We cannot extract the zisofs imaged boot file;\n\" \" this may not boot in being zisofs imaged\" ) ;\n return ( ARCHIVE_FAILED ) ;\n }\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 19204, "target": 0, "func": "TEST_F ( TemplateURLTest , GoogleBaseSuggestURL ) {\n static const struct {\n const char * const base_url ;\n const char * const base_suggest_url ;\n }\n data [ ] = {\n {\n \"http://google.com/\" , \"http://google.com/complete/\" , }\n , {\n \"http://www.google.com/\" , \"http://www.google.com/complete/\" , }\n , {\n \"http://www.google.co.uk/\" , \"http://www.google.co.uk/complete/\" , }\n , {\n \"http://www.google.com.by/\" , \"http://www.google.com.by/complete/\" , }\n , {\n \"http://google.com/intl/xx/\" , \"http://google.com/complete/\" , }\n , }\n ;\n for ( size_t i = 0 ;\n i < arraysize ( data ) ;\n ++ i ) CheckSuggestBaseURL ( data [ i ] . base_url , data [ i ] . base_suggest_url ) ;\n }"}
{"idx": 19205, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( ExternalProtocolDialogBrowserTest , TestAccept ) {\n ShowDialog ( ) ;\n EXPECT_TRUE ( dialog_ -> Accept ( ) ) ;\n EXPECT_TRUE ( called_ ) ;\n EXPECT_TRUE ( accept_ ) ;\n EXPECT_FALSE ( cancel_ ) ;\n EXPECT_FALSE ( dont_block_ ) ;\n histogram_tester_ . ExpectBucketCount ( ExternalProtocolHandler : : kRememberCheckboxMetric , 0 , 1 ) ;\n histogram_tester_ . ExpectBucketCount ( ExternalProtocolHandler : : kHandleStateMetric , ExternalProtocolHandler : : LAUNCH , 1 ) ;\n }"}
{"idx": 19206, "target": 0, "func": "void TSHttpParserDestroy ( TSHttpParser parser ) {\n sdk_assert ( sdk_sanity_check_http_parser ( parser ) == TS_SUCCESS ) ;\n http_parser_clear ( ( HTTPParser * ) parser ) ;\n ats_free ( parser ) ;\n }"}
{"idx": 19207, "target": 0, "func": "static inline void vmsvga_cursor_define ( struct vmsvga_state_s * s , struct vmsvga_cursor_definition_s * c ) {\n QEMUCursor * qc ;\n int i , pixels ;\n qc = cursor_alloc ( c -> width , c -> height ) ;\n qc -> hot_x = c -> hot_x ;\n qc -> hot_y = c -> hot_y ;\n switch ( c -> bpp ) {\n case 1 : cursor_set_mono ( qc , 0xffffff , 0x000000 , ( void * ) c -> image , 1 , ( void * ) c -> mask ) ;\n # ifdef DEBUG cursor_print_ascii_art ( qc , \"vmware/mono\" ) ;\n # endif break ;\n case 32 : cursor_set_mono ( qc , 0x000000 , 0x000000 , ( void * ) c -> mask , 1 , ( void * ) c -> mask ) ;\n pixels = c -> width * c -> height ;\n for ( i = 0 ;\n i < pixels ;\n i ++ ) {\n qc -> data [ i ] |= c -> image [ i ] & 0xffffff ;\n }\n # ifdef DEBUG cursor_print_ascii_art ( qc , \"vmware/32bit\" ) ;\n # endif break ;\n default : fprintf ( stderr , \"%s: unhandled bpp %d, using fallback cursor\\n\" , __func__ , c -> bpp ) ;\n cursor_put ( qc ) ;\n qc = cursor_builtin_left_ptr ( ) ;\n }\n dpy_cursor_define ( s -> vga . con , qc ) ;\n cursor_put ( qc ) ;\n }"}
{"idx": 19208, "target": 0, "func": "decoder_t * input_DecoderCreate ( vlc_object_t * p_parent , es_format_t * fmt , input_resource_t * p_resource ) {\n return decoder_New ( p_parent , NULL , fmt , NULL , p_resource , NULL ) ;\n }"}
{"idx": 19209, "target": 0, "func": "static Int decCompare ( const decNumber * lhs , const decNumber * rhs , Flag abs_c ) {\n Int result ;\n Int sigr ;\n Int compare ;\n result = 1 ;\n if ( ISZERO ( lhs ) ) result = 0 ;\n if ( abs_c ) {\n if ( ISZERO ( rhs ) ) return result ;\n if ( result == 0 ) return - 1 ;\n }\n else {\n if ( result && decNumberIsNegative ( lhs ) ) result = - 1 ;\n sigr = 1 ;\n if ( ISZERO ( rhs ) ) sigr = 0 ;\n else if ( decNumberIsNegative ( rhs ) ) sigr = - 1 ;\n if ( result > sigr ) return + 1 ;\n if ( result < sigr ) return - 1 ;\n if ( result == 0 ) return 0 ;\n }\n if ( ( lhs -> bits | rhs -> bits ) & DECINF ) {\n if ( decNumberIsInfinite ( rhs ) ) {\n if ( decNumberIsInfinite ( lhs ) ) result = 0 ;\n else result = - result ;\n }\n return result ;\n }\n if ( lhs -> exponent > rhs -> exponent ) {\n const decNumber * temp = lhs ;\n lhs = rhs ;\n rhs = temp ;\n result = - result ;\n }\n compare = decUnitCompare ( lhs -> lsu , D2U ( lhs -> digits ) , rhs -> lsu , D2U ( rhs -> digits ) , rhs -> exponent - lhs -> exponent ) ;\n if ( compare != BADINT ) compare *= result ;\n return compare ;\n }"}
{"idx": 19210, "target": 0, "func": "static bool kvm_x2apic_api_set_flags ( uint64_t flags ) {\n KVMState * s = KVM_STATE ( current_machine -> accelerator ) ;\n return ! kvm_vm_enable_cap ( s , KVM_CAP_X2APIC_API , 0 , flags ) ;\n }"}
{"idx": 19211, "target": 0, "func": "static void DecoderFlush ( decoder_t * p_dec ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n vlc_assert_locked ( & p_owner -> lock ) ;\n block_FifoEmpty ( p_owner -> p_fifo ) ;\n p_owner -> b_waiting = false ;\n p_owner -> b_flushing = true ;\n vlc_cond_signal ( & p_owner -> wait_request ) ;\n block_t * p_null = DecoderBlockFlushNew ( ) ;\n if ( ! p_null ) return ;\n input_DecoderDecode ( p_dec , p_null , false ) ;\n while ( p_owner -> b_flushing ) vlc_cond_wait ( & p_owner -> wait_acknowledge , & p_owner -> lock ) ;\n }"}
{"idx": 19212, "target": 0, "func": "static int read_comment_extension ( Gif_Image * gfi , Gif_Reader * grr ) {\n int len ;\n Gif_Comment * gfcom = gfi -> comment ;\n char * m = suck_data ( 0 , & len , grr ) ;\n if ( m ) {\n if ( ! gfcom ) gfcom = gfi -> comment = Gif_NewComment ( ) ;\n if ( ! gfcom || ! Gif_AddCommentTake ( gfcom , m , len ) ) return 0 ;\n }\n return 1 ;\n }"}
{"idx": 19213, "target": 0, "func": "static int dissect_h245_T_videoFastUpdateMB ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_videoFastUpdateMB , T_videoFastUpdateMB_sequence ) ;\n return offset ;\n }"}
{"idx": 19214, "target": 1, "func": "static void encode_block_pass1 ( int plane , int block , BLOCK_SIZE plane_bsize , TX_SIZE tx_size , void * arg ) {\n MACROBLOCK * const x = ( MACROBLOCK * ) arg ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n struct macroblock_plane * const p = & x -> plane [ plane ] ;\n struct macroblockd_plane * const pd = & xd -> plane [ plane ] ;\n int16_t * const dqcoeff = BLOCK_OFFSET ( pd -> dqcoeff , block ) ;\n int i , j ;\n uint8_t * dst ;\n txfrm_block_to_raster_xy ( plane_bsize , tx_size , block , & i , & j ) ;\n dst = & pd -> dst . buf [ 4 * j * pd -> dst . stride + 4 * i ] ;\n vp9_xform_quant ( x , plane , block , plane_bsize , tx_size ) ;\n if ( p -> eobs [ block ] > 0 ) x -> itxm_add ( dqcoeff , dst , pd -> dst . stride , p -> eobs [ block ] ) ;\n }"}
{"idx": 19215, "target": 0, "func": "static void dump_backtrace ( void ) {\n fputs ( \"Backtrace not available.\\n\" , stderr ) ;\n }"}
{"idx": 19216, "target": 0, "func": "static uint32_t count_object_type ( struct bitmap * objects , enum object_type type ) {\n struct eindex * eindex = & bitmap_git . ext_index ;\n uint32_t i = 0 , count = 0 ;\n struct ewah_iterator it ;\n eword_t filter ;\n switch ( type ) {\n case OBJ_COMMIT : ewah_iterator_init ( & it , bitmap_git . commits ) ;\n break ;\n case OBJ_TREE : ewah_iterator_init ( & it , bitmap_git . trees ) ;\n break ;\n case OBJ_BLOB : ewah_iterator_init ( & it , bitmap_git . blobs ) ;\n break ;\n case OBJ_TAG : ewah_iterator_init ( & it , bitmap_git . tags ) ;\n break ;\n default : return 0 ;\n }\n while ( i < objects -> word_alloc && ewah_iterator_next ( & filter , & it ) ) {\n eword_t word = objects -> words [ i ++ ] & filter ;\n count += ewah_bit_popcount64 ( word ) ;\n }\n for ( i = 0 ;\n i < eindex -> count ;\n ++ i ) {\n if ( eindex -> objects [ i ] -> type == type && bitmap_get ( objects , bitmap_git . pack -> num_objects + i ) ) count ++ ;\n }\n return count ;\n }"}
{"idx": 19217, "target": 0, "func": "static int speed_map ( int speed , const int * map ) {\n int res ;\n do {\n res = * map ++ ;\n }\n while ( speed >= * map ++ ) ;\n return res ;\n }"}
{"idx": 19218, "target": 1, "func": "static int parse_RowsBufferCol ( tvbuff_t * tvb , int offset , guint32 row , guint32 col , struct CPMSetBindingsIn * bindingsin , struct rows_data * rowsin , gboolean b_is_64bit , proto_tree * parent_tree , const char * fmt , ... ) {\n proto_tree * tree ;\n proto_item * item ;\n guint32 buf_start = offset ;\n guint32 buf_offset = buf_start + ( row * bindingsin -> brow ) ;\n struct CTableColumn * pcol = & bindingsin -> acolumns [ col ] ;\n static const value_string STATUS [ ] = {\n {\n 0 , \"StoreStatusOk\" }\n , {\n 1 , \"StoreStatusDeferred\" }\n , {\n 2 , \"StoreStatusNull\" }\n , {\n 0 , NULL }\n }\n ;\n const char * txt ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_GetRowsColumn , & item , txt ) ;\n proto_item_append_text ( item , \" (%s)\" , pcol -> name ) ;\n if ( pcol -> statusused ) {\n int tmp_offset = buf_offset + pcol -> statusoffset ;\n proto_tree_add_string ( tree , hf_mswsp_ctablecolumn_status , tvb , tmp_offset , 1 , val_to_str ( tvb_get_guint8 ( tvb , tmp_offset ) , STATUS , \"(Invalid: 0x%x)\" ) ) ;\n }\n if ( pcol -> lengthused ) {\n int tmp_offset = buf_offset + pcol -> lengthoffset ;\n proto_tree_add_item ( tree , hf_mswsp_ctablecolumn_length , tvb , tmp_offset , 1 , ENC_LITTLE_ENDIAN ) ;\n }\n if ( pcol -> valueused ) {\n int tmp_offset = buf_offset + pcol -> valueoffset ;\n struct CRowVariant variant ;\n guint32 len = pcol -> valuesize ;\n guint64 base_address = rowsin -> ulclientbase ;\n ZERO_STRUCT ( variant ) ;\n if ( pcol -> lengthused ) {\n len = tvb_get_letohs ( tvb , buf_offset + pcol -> lengthoffset ) - pcol -> valuesize ;\n }\n if ( pcol -> vtype == VT_VARIANT ) {\n parse_VariantCol ( tvb , tmp_offset , tree , base_address , len , b_is_64bit , & variant , \"CRowVariant\" ) ;\n }\n }\n return offset ;\n }"}
{"idx": 19219, "target": 0, "func": "int proto_get_id_by_short_name ( const gchar * short_name ) {\n const protocol_t * protocol = NULL ;\n DISSECTOR_ASSERT_HINT ( short_name , \"No short name present\" ) ;\n protocol = ( const protocol_t * ) g_hash_table_lookup ( proto_short_names , short_name ) ;\n if ( protocol == NULL ) return - 1 ;\n return protocol -> proto_id ;\n }"}
{"idx": 19220, "target": 0, "func": "static guint16 de_tp_ms_positioning_technology ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n guchar oct ;\n curr_offset = offset ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n proto_tree_add_uint_format_value ( tree , hf_gsm_a_dtap_ms_positioning_technology , tvb , curr_offset , 1 , oct , \"%s\" , val_to_str ( oct , gsm_positioning_technology_vals , \"Reserved (%d)\" ) ) ;\n curr_offset += 1 ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 19221, "target": 0, "func": "int master_service_settings_get_filters ( struct master_service * service ATTR_UNUSED , const char * const * * filters ATTR_UNUSED , const char * * error_r ATTR_UNUSED ) {\n return - 1 ;\n }"}
{"idx": 19222, "target": 0, "func": "static void release_tree_content_recursive ( struct tree_content * t ) {\n unsigned int i ;\n for ( i = 0 ;\n i < t -> entry_count ;\n i ++ ) release_tree_entry ( t -> entries [ i ] ) ;\n release_tree_content ( t ) ;\n }"}
{"idx": 19223, "target": 0, "func": "TEST_F ( ScoredHistoryMatchTest , ScoringScheme ) {\n base : : Time now = base : : Time : : NowFromSystemTime ( ) ;\n std : : string url_string ( \"http://fedcba/\" ) ;\n const GURL url ( url_string ) ;\n history : : URLRow row ( MakeURLRow ( url_string . c_str ( ) , \"\" , 8 , 3 , 1 ) ) ;\n RowWordStarts word_starts ;\n PopulateWordStarts ( row , & word_starts ) ;\n WordStarts two_words_no_offsets ( 2 , 0u ) ;\n VisitInfoVector visits = CreateVisitInfoVector ( 8 , 3 , now ) ;\n ScoredHistoryMatch scored ( row , visits , ASCIIToUTF16 ( \"fed http\" ) , Make2Terms ( \"fed\" , \"http\" ) , two_words_no_offsets , word_starts , false , nullptr , now ) ;\n EXPECT_EQ ( 0 , scored . raw_score ) ;\n base : : AutoReset < bool > reset ( & ScoredHistoryMatch : : allow_scheme_matches_ , true ) ;\n ScoredHistoryMatch scored_with_scheme ( row , visits , ASCIIToUTF16 ( \"fed http\" ) , Make2Terms ( \"fed\" , \"http\" ) , two_words_no_offsets , word_starts , false , nullptr , now ) ;\n EXPECT_GT ( scored_with_scheme . raw_score , 0 ) ;\n }"}
{"idx": 19224, "target": 0, "func": "void remoteFreeClientStream ( struct qemud_client * client , struct qemud_client_stream * stream ) {\n struct qemud_client_message * msg ;\n if ( ! stream ) return ;\n VIR_DEBUG ( \"proc=%d serial=%d\" , stream -> procedure , stream -> serial ) ;\n msg = stream -> rx ;\n while ( msg ) {\n struct qemud_client_message * tmp = msg -> next ;\n qemudClientMessageRelease ( client , msg ) ;\n msg = tmp ;\n }\n virStreamFree ( stream -> st ) ;\n VIR_FREE ( stream ) ;\n }"}
{"idx": 19225, "target": 1, "func": "void vp9_dec_build_inter_predictors_sb ( MACROBLOCKD * xd , int mi_row , int mi_col , BLOCK_SIZE bsize ) {\n int plane ;\n const int mi_x = mi_col * MI_SIZE ;\n const int mi_y = mi_row * MI_SIZE ;\n for ( plane = 0 ;\n plane < MAX_MB_PLANE ;\n ++ plane ) {\n const BLOCK_SIZE plane_bsize = get_plane_block_size ( bsize , & xd -> plane [ plane ] ) ;\n const int num_4x4_w = num_4x4_blocks_wide_lookup [ plane_bsize ] ;\n const int num_4x4_h = num_4x4_blocks_high_lookup [ plane_bsize ] ;\n const int bw = 4 * num_4x4_w ;\n const int bh = 4 * num_4x4_h ;\n if ( xd -> mi [ 0 ] -> mbmi . sb_type < BLOCK_8X8 ) {\n int i = 0 , x , y ;\n assert ( bsize == BLOCK_8X8 ) ;\n for ( y = 0 ;\n y < num_4x4_h ;\n ++ y ) for ( x = 0 ;\n x < num_4x4_w ;\n ++ x ) dec_build_inter_predictors ( xd , plane , i ++ , bw , bh , * x , 4 * y , 4 , 4 , mi_x , mi_y ) ;\n }\n else {\n dec_build_inter_predictors ( xd , plane , 0 , bw , bh , 0 , 0 , bw , bh , mi_x , mi_y ) ;\n }\n }\n }"}
{"idx": 19226, "target": 1, "func": "int dtls1_process_record ( SSL * s ) {\n int i , al ;\n int enc_err ;\n SSL_SESSION * sess ;\n SSL3_RECORD * rr ;\n unsigned int mac_size ;\n unsigned char md [ EVP_MAX_MD_SIZE ] ;\n rr = RECORD_LAYER_get_rrec ( & s -> rlayer ) ;\n sess = s -> session ;\n rr -> input = & ( RECORD_LAYER_get_packet ( & s -> rlayer ) [ DTLS1_RT_HEADER_LENGTH ] ) ;\n if ( rr -> length > SSL3_RT_MAX_ENCRYPTED_LENGTH ) {\n al = SSL_AD_RECORD_OVERFLOW ;\n SSLerr ( SSL_F_DTLS1_PROCESS_RECORD , SSL_R_ENCRYPTED_LENGTH_TOO_LONG ) ;\n goto f_err ;\n }\n rr -> data = rr -> input ;\n rr -> orig_len = rr -> length ;\n enc_err = s -> method -> ssl3_enc -> enc ( s , rr , 1 , 0 ) ;\n if ( enc_err == 0 ) {\n rr -> length = 0 ;\n RECORD_LAYER_reset_packet_length ( & s -> rlayer ) ;\n goto err ;\n }\n # ifdef SSL_DEBUG printf ( \"dec %d\\n\" , rr -> length ) ;\n {\n unsigned int z ;\n for ( z = 0 ;\n z < rr -> length ;\n z ++ ) printf ( \"%02X%c\" , rr -> data [ z ] , ( ( z + 1 ) % 16 ) ? ' ' : '\\n' ) ;\n }\n printf ( \"\\n\" ) ;\n # endif if ( ( sess != NULL ) && ( s -> enc_read_ctx != NULL ) && ( EVP_MD_CTX_md ( s -> read_hash ) != NULL ) ) {\n unsigned char * mac = NULL ;\n unsigned char mac_tmp [ EVP_MAX_MD_SIZE ] ;\n mac_size = EVP_MD_CTX_size ( s -> read_hash ) ;\n OPENSSL_assert ( mac_size <= EVP_MAX_MD_SIZE ) ;\n if ( rr -> orig_len < mac_size || ( EVP_CIPHER_CTX_mode ( s -> enc_read_ctx ) == EVP_CIPH_CBC_MODE && rr -> orig_len < mac_size + 1 ) ) {\n al = SSL_AD_DECODE_ERROR ;\n SSLerr ( SSL_F_DTLS1_PROCESS_RECORD , SSL_R_LENGTH_TOO_SHORT ) ;\n goto f_err ;\n }\n if ( EVP_CIPHER_CTX_mode ( s -> enc_read_ctx ) == EVP_CIPH_CBC_MODE ) {\n mac = mac_tmp ;\n ssl3_cbc_copy_mac ( mac_tmp , rr , mac_size ) ;\n rr -> length -= mac_size ;\n }\n else {\n rr -> length -= mac_size ;\n mac = & rr -> data [ rr -> length ] ;\n }\n i = s -> method -> ssl3_enc -> mac ( s , rr , md , 0 ) ;\n if ( i < 0 || mac == NULL || CRYPTO_memcmp ( md , mac , ( size_t ) mac_size ) != 0 ) enc_err = - 1 ;\n if ( rr -> length > SSL3_RT_MAX_COMPRESSED_LENGTH + mac_size ) enc_err = - 1 ;\n }\n if ( enc_err < 0 ) {\n rr -> length = 0 ;\n RECORD_LAYER_reset_packet_length ( & s -> rlayer ) ;\n goto err ;\n }\n if ( s -> expand != NULL ) {\n if ( rr -> length > SSL3_RT_MAX_COMPRESSED_LENGTH ) {\n al = SSL_AD_RECORD_OVERFLOW ;\n SSLerr ( SSL_F_DTLS1_PROCESS_RECORD , SSL_R_COMPRESSED_LENGTH_TOO_LONG ) ;\n goto f_err ;\n }\n if ( ! ssl3_do_uncompress ( s , rr ) ) {\n al = SSL_AD_DECOMPRESSION_FAILURE ;\n SSLerr ( SSL_F_DTLS1_PROCESS_RECORD , SSL_R_BAD_DECOMPRESSION ) ;\n goto f_err ;\n }\n }\n if ( rr -> length > SSL3_RT_MAX_PLAIN_LENGTH ) {\n al = SSL_AD_RECORD_OVERFLOW ;\n SSLerr ( SSL_F_DTLS1_PROCESS_RECORD , SSL_R_DATA_LENGTH_TOO_LONG ) ;\n goto f_err ;\n }\n rr -> off = 0 ;\n RECORD_LAYER_reset_packet_length ( & s -> rlayer ) ;\n return ( 1 ) ;\n f_err : ssl3_send_alert ( s , SSL3_AL_FATAL , al ) ;\n err : return ( 0 ) ;\n }"}
{"idx": 19227, "target": 0, "func": "void mime_hdr_cooked_stuff_init ( MIMEHdrImpl * mh , MIMEField * changing_field_or_null ) {\n if ( ( changing_field_or_null == nullptr ) || ( changing_field_or_null -> m_wks_idx != MIME_WKSIDX_PRAGMA ) ) {\n mh -> m_cooked_stuff . m_cache_control . m_mask = 0 ;\n mh -> m_cooked_stuff . m_cache_control . m_secs_max_age = 0 ;\n mh -> m_cooked_stuff . m_cache_control . m_secs_s_maxage = 0 ;\n mh -> m_cooked_stuff . m_cache_control . m_secs_max_stale = 0 ;\n mh -> m_cooked_stuff . m_cache_control . m_secs_min_fresh = 0 ;\n }\n if ( ( changing_field_or_null == nullptr ) || ( changing_field_or_null -> m_wks_idx != MIME_WKSIDX_CACHE_CONTROL ) ) {\n mh -> m_cooked_stuff . m_pragma . m_no_cache = false ;\n }\n }"}
{"idx": 19228, "target": 0, "func": "bool gs_device_is_memory ( const gx_device * dev ) {\n int bits_per_pixel = dev -> color_info . depth ;\n const gx_device_memory * mdproto ;\n mdproto = gdev_mem_device_for_bits ( bits_per_pixel ) ;\n if ( mdproto != 0 && dev_proc ( dev , draw_thin_line ) == dev_proc ( mdproto , draw_thin_line ) ) return true ;\n mdproto = gdev_mem_word_device_for_bits ( bits_per_pixel ) ;\n return ( mdproto != 0 && dev_proc ( dev , draw_thin_line ) == dev_proc ( mdproto , draw_thin_line ) ) ;\n }"}
{"idx": 19229, "target": 0, "func": "static void dovec ( struct vars * v , struct cvec * cv , struct state * lp , struct state * rp ) {\n chr ch , from , to ;\n const chr * p ;\n int i ;\n for ( p = cv -> chrs , i = cv -> nchrs ;\n i > 0 ;\n p ++ , i -- ) {\n ch = * p ;\n newarc ( v -> nfa , PLAIN , subcolor ( v -> cm , ch ) , lp , rp ) ;\n NOERR ( ) ;\n }\n for ( p = cv -> ranges , i = cv -> nranges ;\n i > 0 ;\n p += 2 , i -- ) {\n from = * p ;\n to = * ( p + 1 ) ;\n if ( from <= to ) subrange ( v , from , to , lp , rp ) ;\n NOERR ( ) ;\n }\n }"}
{"idx": 19230, "target": 0, "func": "fz_colorspace * fz_device_lab ( fz_context * ctx ) {\n return ctx -> colorspace -> lab ;\n }"}
{"idx": 19231, "target": 0, "func": "int do_echo ( struct st_command * command ) {\n DYNAMIC_STRING ds_echo ;\n DBUG_ENTER ( \"do_echo\" ) ;\n init_dynamic_string ( & ds_echo , \"\" , command -> query_len , 256 ) ;\n do_eval ( & ds_echo , command -> first_argument , command -> end , FALSE ) ;\n dynstr_append_mem ( & ds_res , ds_echo . str , ds_echo . length ) ;\n dynstr_append_mem ( & ds_res , \"\\n\" , 1 ) ;\n dynstr_free ( & ds_echo ) ;\n command -> last_argument = command -> end ;\n DBUG_RETURN ( 0 ) ;\n }"}
{"idx": 19232, "target": 0, "func": "static void DoMatTransform ( int tok , int sp , struct psstack * stack ) {\n real invt [ 6 ] , t [ 6 ] ;\n if ( stack [ sp - 1 ] . u . dict . cnt == 6 && stack [ sp - 1 ] . u . dict . entries [ 0 ] . type == ps_num ) {\n double x = stack [ sp - 3 ] . u . val , y = stack [ sp - 2 ] . u . val ;\n -- sp ;\n t [ 5 ] = stack [ sp ] . u . dict . entries [ 5 ] . u . val ;\n t [ 4 ] = stack [ sp ] . u . dict . entries [ 4 ] . u . val ;\n t [ 3 ] = stack [ sp ] . u . dict . entries [ 3 ] . u . val ;\n t [ 2 ] = stack [ sp ] . u . dict . entries [ 2 ] . u . val ;\n t [ 1 ] = stack [ sp ] . u . dict . entries [ 1 ] . u . val ;\n t [ 0 ] = stack [ sp ] . u . dict . entries [ 0 ] . u . val ;\n dictfree ( & stack [ sp ] . u . dict ) ;\n if ( tok == pt_itransform || tok == pt_idtransform ) {\n MatInverse ( invt , t ) ;\n memcpy ( t , invt , sizeof ( t ) ) ;\n }\n stack [ sp - 2 ] . u . val = t [ 0 ] * x + t [ 1 ] * y ;\n stack [ sp - 1 ] . u . val = t [ 2 ] * x + t [ 3 ] * y ;\n if ( tok == pt_transform || tok == pt_itransform ) {\n stack [ sp - 2 ] . u . val += t [ 4 ] ;\n stack [ sp - 1 ] . u . val += t [ 5 ] ;\n }\n }\n }"}
{"idx": 19233, "target": 0, "func": "static int init_thread_environment ( ) {\n mysql_mutex_init ( key_LOCK_thread_count , & LOCK_thread_count , MY_MUTEX_INIT_FAST ) ;\n mysql_mutex_init ( key_LOCK_status , & LOCK_status , MY_MUTEX_INIT_FAST ) ;\n mysql_mutex_init ( key_LOCK_delayed_insert , & LOCK_delayed_insert , MY_MUTEX_INIT_FAST ) ;\n mysql_mutex_init ( key_LOCK_delayed_status , & LOCK_delayed_status , MY_MUTEX_INIT_FAST ) ;\n mysql_mutex_init ( key_LOCK_delayed_create , & LOCK_delayed_create , MY_MUTEX_INIT_SLOW ) ;\n mysql_mutex_init ( key_LOCK_crypt , & LOCK_crypt , MY_MUTEX_INIT_FAST ) ;\n mysql_mutex_init ( key_LOCK_user_conn , & LOCK_user_conn , MY_MUTEX_INIT_FAST ) ;\n mysql_mutex_init ( key_LOCK_active_mi , & LOCK_active_mi , MY_MUTEX_INIT_FAST ) ;\n mysql_mutex_init ( key_LOCK_global_system_variables , & LOCK_global_system_variables , MY_MUTEX_INIT_FAST ) ;\n mysql_rwlock_init ( key_rwlock_LOCK_system_variables_hash , & LOCK_system_variables_hash ) ;\n mysql_mutex_init ( key_LOCK_prepared_stmt_count , & LOCK_prepared_stmt_count , MY_MUTEX_INIT_FAST ) ;\n mysql_mutex_init ( key_LOCK_error_messages , & LOCK_error_messages , MY_MUTEX_INIT_FAST ) ;\n mysql_mutex_init ( key_LOCK_uuid_short_generator , & LOCK_short_uuid_generator , MY_MUTEX_INIT_FAST ) ;\n mysql_mutex_init ( key_LOCK_connection_count , & LOCK_connection_count , MY_MUTEX_INIT_FAST ) ;\n mysql_mutex_init ( key_LOCK_stats , & LOCK_stats , MY_MUTEX_INIT_FAST ) ;\n mysql_mutex_init ( key_LOCK_global_user_client_stats , & LOCK_global_user_client_stats , MY_MUTEX_INIT_FAST ) ;\n mysql_mutex_init ( key_LOCK_global_table_stats , & LOCK_global_table_stats , MY_MUTEX_INIT_FAST ) ;\n mysql_mutex_init ( key_LOCK_global_index_stats , & LOCK_global_index_stats , MY_MUTEX_INIT_FAST ) ;\n mysql_mutex_init ( key_LOCK_prepare_ordered , & LOCK_prepare_ordered , MY_MUTEX_INIT_SLOW ) ;\n mysql_mutex_init ( key_LOCK_commit_ordered , & LOCK_commit_ordered , MY_MUTEX_INIT_SLOW ) ;\n # ifdef HAVE_OPENSSL mysql_mutex_init ( key_LOCK_des_key_file , & LOCK_des_key_file , MY_MUTEX_INIT_FAST ) ;\n # ifndef HAVE_YASSL openssl_stdlocks = ( openssl_lock_t * ) OPENSSL_malloc ( CRYPTO_num_locks ( ) * sizeof ( openssl_lock_t ) ) ;\n for ( int i = 0 ;\n i < CRYPTO_num_locks ( ) ;\n ++ i ) mysql_rwlock_init ( key_rwlock_openssl , & openssl_stdlocks [ i ] . lock ) ;\n CRYPTO_set_dynlock_create_callback ( openssl_dynlock_create ) ;\n CRYPTO_set_dynlock_destroy_callback ( openssl_dynlock_destroy ) ;\n CRYPTO_set_dynlock_lock_callback ( openssl_lock ) ;\n CRYPTO_set_locking_callback ( openssl_lock_function ) ;\n # endif # endif mysql_rwlock_init ( key_rwlock_LOCK_sys_init_connect , & LOCK_sys_init_connect ) ;\n mysql_rwlock_init ( key_rwlock_LOCK_sys_init_slave , & LOCK_sys_init_slave ) ;\n mysql_rwlock_init ( key_rwlock_LOCK_grant , & LOCK_grant ) ;\n mysql_cond_init ( key_COND_thread_count , & COND_thread_count , NULL ) ;\n mysql_cond_init ( key_COND_thread_cache , & COND_thread_cache , NULL ) ;\n mysql_cond_init ( key_COND_flush_thread_cache , & COND_flush_thread_cache , NULL ) ;\n # ifdef HAVE_REPLICATION mysql_mutex_init ( key_LOCK_rpl_status , & LOCK_rpl_status , MY_MUTEX_INIT_FAST ) ;\n mysql_cond_init ( key_COND_rpl_status , & COND_rpl_status , NULL ) ;\n # endif mysql_mutex_init ( key_LOCK_server_started , & LOCK_server_started , MY_MUTEX_INIT_FAST ) ;\n mysql_cond_init ( key_COND_server_started , & COND_server_started , NULL ) ;\n sp_cache_init ( ) ;\n # ifdef HAVE_EVENT_SCHEDULER Events : : init_mutexes ( ) ;\n # endif ( void ) pthread_attr_init ( & connection_attrib ) ;\n ( void ) pthread_attr_setdetachstate ( & connection_attrib , PTHREAD_CREATE_DETACHED ) ;\n pthread_attr_setscope ( & connection_attrib , PTHREAD_SCOPE_SYSTEM ) ;\n if ( pthread_key_create ( & THR_THD , NULL ) || pthread_key_create ( & THR_MALLOC , NULL ) ) {\n sql_print_error ( \"Can't create thread-keys\" ) ;\n return 1 ;\n }\n return 0 ;\n }"}
{"idx": 19234, "target": 0, "func": "static void mode_pass ( struct cpio * cpio , const char * destdir ) {\n struct lafe_line_reader * lr ;\n const char * p ;\n int r ;\n cpio -> destdir = malloc ( strlen ( destdir ) + 8 ) ;\n strcpy ( cpio -> destdir , destdir ) ;\n if ( destdir [ strlen ( destdir ) - 1 ] != '/' ) strcat ( cpio -> destdir , \"/\" ) ;\n cpio -> archive = archive_write_disk_new ( ) ;\n if ( cpio -> archive == NULL ) lafe_errc ( 1 , 0 , \"Failed to allocate archive object\" ) ;\n r = archive_write_disk_set_options ( cpio -> archive , cpio -> extract_flags ) ;\n if ( r != ARCHIVE_OK ) lafe_errc ( 1 , 0 , \"%s\" , archive_error_string ( cpio -> archive ) ) ;\n cpio -> linkresolver = archive_entry_linkresolver_new ( ) ;\n archive_write_disk_set_standard_lookup ( cpio -> archive ) ;\n cpio -> archive_read_disk = archive_read_disk_new ( ) ;\n if ( cpio -> archive_read_disk == NULL ) lafe_errc ( 1 , 0 , \"Failed to allocate archive object\" ) ;\n if ( cpio -> option_follow_links ) archive_read_disk_set_symlink_logical ( cpio -> archive_read_disk ) ;\n else archive_read_disk_set_symlink_physical ( cpio -> archive_read_disk ) ;\n archive_read_disk_set_standard_lookup ( cpio -> archive_read_disk ) ;\n lr = lafe_line_reader ( \"-\" , cpio -> option_null ) ;\n while ( ( p = lafe_line_reader_next ( lr ) ) != NULL ) file_to_archive ( cpio , p ) ;\n lafe_line_reader_free ( lr ) ;\n archive_entry_linkresolver_free ( cpio -> linkresolver ) ;\n r = archive_write_close ( cpio -> archive ) ;\n if ( cpio -> dot ) fprintf ( stderr , \"\\n\" ) ;\n if ( r != ARCHIVE_OK ) lafe_errc ( 1 , 0 , \"%s\" , archive_error_string ( cpio -> archive ) ) ;\n if ( ! cpio -> quiet ) {\n int64_t blocks = ( archive_filter_bytes ( cpio -> archive , 0 ) + 511 ) / 512 ;\n fprintf ( stderr , \"%lu %s\\n\" , ( unsigned long ) blocks , blocks == 1 ? \"block\" : \"blocks\" ) ;\n }\n archive_write_free ( cpio -> archive ) ;\n }"}
{"idx": 19235, "target": 0, "func": "static bool pickoneauth ( struct auth * pick ) {\n bool picked ;\n unsigned long avail = pick -> avail & pick -> want ;\n picked = TRUE ;\n if ( avail & CURLAUTH_NEGOTIATE ) pick -> picked = CURLAUTH_NEGOTIATE ;\n else if ( avail & CURLAUTH_DIGEST ) pick -> picked = CURLAUTH_DIGEST ;\n else if ( avail & CURLAUTH_NTLM ) pick -> picked = CURLAUTH_NTLM ;\n else if ( avail & CURLAUTH_NTLM_WB ) pick -> picked = CURLAUTH_NTLM_WB ;\n else if ( avail & CURLAUTH_BASIC ) pick -> picked = CURLAUTH_BASIC ;\n else {\n pick -> picked = CURLAUTH_PICKNONE ;\n picked = FALSE ;\n }\n pick -> avail = CURLAUTH_NONE ;\n return picked ;\n }"}
{"idx": 19236, "target": 0, "func": "void rfbDecrClientRef ( rfbClientPtr cl ) {\n }"}
{"idx": 19237, "target": 0, "func": "static void Type_ColorantTable_Free ( struct _cms_typehandler_struct * self , void * Ptr ) {\n cmsFreeNamedColorList ( ( cmsNAMEDCOLORLIST * ) Ptr ) ;\n return ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 19238, "target": 0, "func": "static int ar_parse_common_header ( struct ar * ar , struct archive_entry * entry , const char * h ) {\n uint64_t n ;\n archive_entry_set_mtime ( entry , ( time_t ) ar_atol10 ( h + AR_date_offset , AR_date_size ) , 0L ) ;\n archive_entry_set_uid ( entry , ( uid_t ) ar_atol10 ( h + AR_uid_offset , AR_uid_size ) ) ;\n archive_entry_set_gid ( entry , ( gid_t ) ar_atol10 ( h + AR_gid_offset , AR_gid_size ) ) ;\n archive_entry_set_mode ( entry , ( mode_t ) ar_atol8 ( h + AR_mode_offset , AR_mode_size ) ) ;\n n = ar_atol10 ( h + AR_size_offset , AR_size_size ) ;\n ar -> entry_offset = 0 ;\n ar -> entry_padding = n % 2 ;\n archive_entry_set_size ( entry , n ) ;\n ar -> entry_bytes_remaining = n ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 19239, "target": 0, "func": "void proto_register_zbee_zcl_basic ( void ) {\n static hf_register_info hf [ ] = {\n {\n & hf_zbee_zcl_basic_attr_id , {\n \"Attribute\" , \"zbee_zcl_general.basic.attr_id\" , FT_UINT16 , BASE_HEX , VALS ( zbee_zcl_basic_attr_names ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_basic_pwr_src , {\n \"Power Source\" , \"zbee_zcl_general.basic.attr.pwr_src\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_basic_pwr_src_names ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_basic_dev_en , {\n \"Device Enabled\" , \"zbee_zcl_general.basic.attr.dev_en\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_basic_dev_en_names ) , 0x00 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_basic_alarm_mask , {\n \"Alarm Mask\" , \"zbee_zcl_general.basic.attr.alarm_mask\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_basic_alarm_mask_gen_hw_fault , {\n \"General hardware fault\" , \"zbee_zcl_general.basic.attr.alarm_mask.gen_hw_fault\" , FT_UINT8 , BASE_DEC , NULL , ZBEE_ZCL_BASIC_ALARM_GEN_HW_FAULT , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_basic_alarm_mask_gen_sw_fault , {\n \"General software fault\" , \"zbee_zcl_general.basic.attr.alarm_mask.gen_sw_fault\" , FT_UINT8 , BASE_DEC , NULL , ZBEE_ZCL_BASIC_ALARM_GEN_SW_FAULT , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_basic_alarm_mask_reserved , {\n \"Reserved\" , \"zbee_zcl_general.basic.attr.alarm_mask.reserved\" , FT_UINT8 , BASE_DEC , NULL , ZBEE_ZCL_BASIC_ALARM_RESERVED , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_basic_disable_local_cfg , {\n \"Disable Local Config\" , \"zbee_zcl_general.basic.attr.dis_loc_cfg\" , FT_UINT8 , BASE_HEX , NULL , 0x0 , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_basic_disable_local_cfg_reset , {\n \"Reset (to factory defaults)\" , \"zbee_zcl_general.basic.attr.dis_loc_cfg.reset\" , FT_UINT8 , BASE_DEC , NULL , ZBEE_ZCL_BASIC_DIS_LOC_CFG_RESET , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_basic_disable_local_cfg_device_cfg , {\n \"Device configuration\" , \"zbee_zcl_general.basic.attr.dis_loc_cfg.dev_cfg\" , FT_UINT8 , BASE_DEC , NULL , ZBEE_ZCL_BASIC_DIS_LOC_CFG_DEV_CFG , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_basic_disable_local_cfg_reserved , {\n \"Reserved\" , \"zbee_zcl_general.basic.attr.dis_loc_cfg.reserved\" , FT_UINT8 , BASE_DEC , NULL , ZBEE_ZCL_BASIC_DIS_LOC_CFG_RESERVED , NULL , HFILL }\n }\n , {\n & hf_zbee_zcl_basic_srv_rx_cmd_id , {\n \"Command\" , \"zbee_zcl_general.basic.cmd.srv_rx.id\" , FT_UINT8 , BASE_HEX , VALS ( zbee_zcl_basic_srv_rx_cmd_names ) , 0x00 , NULL , HFILL }\n }\n }\n ;\n static gint * ett [ ZBEE_ZCL_BASIC_NUM_ETT ] ;\n ett [ 0 ] = & ett_zbee_zcl_basic ;\n ett [ 1 ] = & ett_zbee_zcl_basic_alarm_mask ;\n ett [ 2 ] = & ett_zbee_zcl_basic_dis_local_cfg ;\n proto_zbee_zcl_basic = proto_register_protocol ( \"ZigBee ZCL Basic\" , \"ZCL Basic\" , ZBEE_PROTOABBREV_ZCL_BASIC ) ;\n proto_register_field_array ( proto_zbee_zcl_basic , hf , array_length ( hf ) ) ;\n proto_register_subtree_array ( ett , array_length ( ett ) ) ;\n register_dissector ( ZBEE_PROTOABBREV_ZCL_BASIC , dissect_zbee_zcl_basic , proto_zbee_zcl_basic ) ;\n }"}
{"idx": 19240, "target": 0, "func": "static void pk_transaction_repair_system ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) {\n gboolean ret ;\n PkBitfield transaction_flags ;\n g_autoptr ( GError ) error = NULL ;\n g_autofree gchar * transaction_flags_temp = NULL ;\n g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;\n g_return_if_fail ( transaction -> priv -> tid != NULL ) ;\n g_variant_get ( params , \"(t)\" , & transaction_flags ) ;\n transaction_flags_temp = pk_transaction_flag_bitfield_to_string ( transaction_flags ) ;\n g_debug ( \"RepairSystem method called (transaction_flags: %s)\" , transaction_flags_temp ) ;\n if ( ! pk_backend_is_implemented ( transaction -> priv -> backend , PK_ROLE_ENUM_REPAIR_SYSTEM ) ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NOT_SUPPORTED , \"RepairSystem not supported by backend\" ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n transaction -> priv -> cached_transaction_flags = transaction_flags ;\n pk_transaction_set_role ( transaction , PK_ROLE_ENUM_REPAIR_SYSTEM ) ;\n pk_transaction_emit_property_changed ( transaction , \"TransactionFlags\" , g_variant_new_uint64 ( transaction_flags ) ) ;\n ret = pk_transaction_obtain_authorization ( transaction , PK_ROLE_ENUM_REPAIR_SYSTEM , & error ) ;\n if ( ! ret ) {\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n out : pk_transaction_dbus_return ( context , error ) ;\n }"}
{"idx": 19241, "target": 0, "func": "void jpc_ns_fwdlift_col ( jpc_fix_t * a , int numrows , int stride , int parity ) {\n jpc_fix_t * lptr ;\n jpc_fix_t * hptr ;\n register jpc_fix_t * lptr2 ;\n register jpc_fix_t * hptr2 ;\n register int n ;\n int llen ;\n llen = ( numrows + 1 - parity ) >> 1 ;\n if ( numrows > 1 ) {\n lptr = & a [ 0 ] ;\n hptr = & a [ llen * stride ] ;\n if ( parity ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n jpc_fix_pluseq ( hptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * ALPHA ) , lptr2 [ 0 ] ) ) ;\n ++ hptr2 ;\n ++ lptr2 ;\n hptr += stride ;\n }\n n = numrows - llen - parity - ( parity == ( numrows & 1 ) ) ;\n while ( n -- > 0 ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n jpc_fix_pluseq ( hptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( ALPHA ) , jpc_fix_add ( lptr2 [ 0 ] , lptr2 [ stride ] ) ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n hptr += stride ;\n lptr += stride ;\n }\n if ( parity == ( numrows & 1 ) ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n jpc_fix_pluseq ( hptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * ALPHA ) , lptr2 [ 0 ] ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n lptr = & a [ 0 ] ;\n hptr = & a [ llen * stride ] ;\n if ( ! parity ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n jpc_fix_pluseq ( lptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * BETA ) , hptr2 [ 0 ] ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n lptr += stride ;\n }\n n = llen - ( ! parity ) - ( parity != ( numrows & 1 ) ) ;\n while ( n -- > 0 ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n jpc_fix_pluseq ( lptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( BETA ) , jpc_fix_add ( hptr2 [ 0 ] , hptr2 [ stride ] ) ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n lptr += stride ;\n hptr += stride ;\n }\n if ( parity != ( numrows & 1 ) ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n jpc_fix_pluseq ( lptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * BETA ) , hptr2 [ 0 ] ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n lptr = & a [ 0 ] ;\n hptr = & a [ llen * stride ] ;\n if ( parity ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n jpc_fix_pluseq ( hptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * GAMMA ) , lptr2 [ 0 ] ) ) ;\n ++ hptr2 ;\n ++ lptr2 ;\n hptr += stride ;\n }\n n = numrows - llen - parity - ( parity == ( numrows & 1 ) ) ;\n while ( n -- > 0 ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n jpc_fix_pluseq ( hptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( GAMMA ) , jpc_fix_add ( lptr2 [ 0 ] , lptr2 [ stride ] ) ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n hptr += stride ;\n lptr += stride ;\n }\n if ( parity == ( numrows & 1 ) ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n jpc_fix_pluseq ( hptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * GAMMA ) , lptr2 [ 0 ] ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n lptr = & a [ 0 ] ;\n hptr = & a [ llen * stride ] ;\n if ( ! parity ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n jpc_fix_pluseq ( lptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * DELTA ) , hptr2 [ 0 ] ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n lptr += stride ;\n }\n n = llen - ( ! parity ) - ( parity != ( numrows & 1 ) ) ;\n while ( n -- > 0 ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n jpc_fix_pluseq ( lptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( DELTA ) , jpc_fix_add ( hptr2 [ 0 ] , hptr2 [ stride ] ) ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n lptr += stride ;\n hptr += stride ;\n }\n if ( parity != ( numrows & 1 ) ) {\n lptr2 = lptr ;\n hptr2 = hptr ;\n jpc_fix_pluseq ( lptr2 [ 0 ] , jpc_fix_mul ( jpc_dbltofix ( 2.0 * DELTA ) , hptr2 [ 0 ] ) ) ;\n ++ lptr2 ;\n ++ hptr2 ;\n }\n # if defined ( WT_DOSCALE ) lptr = & a [ 0 ] ;\n n = llen ;\n while ( n -- > 0 ) {\n lptr2 = lptr ;\n lptr2 [ 0 ] = jpc_fix_mul ( lptr2 [ 0 ] , jpc_dbltofix ( LGAIN ) ) ;\n ++ lptr2 ;\n lptr += stride ;\n }\n hptr = & a [ llen * stride ] ;\n n = numrows - llen ;\n while ( n -- > 0 ) {\n hptr2 = hptr ;\n hptr2 [ 0 ] = jpc_fix_mul ( hptr2 [ 0 ] , jpc_dbltofix ( HGAIN ) ) ;\n ++ hptr2 ;\n hptr += stride ;\n }\n # endif }\n else {\n # if defined ( WT_LENONE ) if ( parity ) {\n lptr2 = & a [ 0 ] ;\n lptr2 [ 0 ] = jpc_fix_asl ( lptr2 [ 0 ] , 1 ) ;\n ++ lptr2 ;\n }\n # endif }\n }"}
{"idx": 19242, "target": 0, "func": "void _hb_graphite2_shaper_shape_plan_data_destroy ( hb_graphite2_shaper_shape_plan_data_t * data HB_UNUSED ) {\n }"}
{"idx": 19243, "target": 0, "func": "static int dissect_h245_MaintenanceLoopOffCommand ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MaintenanceLoopOffCommand , MaintenanceLoopOffCommand_sequence ) ;\n return offset ;\n }"}
{"idx": 19244, "target": 0, "func": "const char * TSHttpTxnRedirectUrlGet ( TSHttpTxn txnp , int * url_len_ptr ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n * url_len_ptr = sm -> redirect_url_len ;\n return sm -> redirect_url ;\n }"}
{"idx": 19245, "target": 0, "func": "static inline u32 file_mask_to_av ( int mode , int mask ) {\n u32 av = 0 ;\n if ( ! S_ISDIR ( mode ) ) {\n if ( mask & MAY_EXEC ) av |= FILE__EXECUTE ;\n if ( mask & MAY_READ ) av |= FILE__READ ;\n if ( mask & MAY_APPEND ) av |= FILE__APPEND ;\n else if ( mask & MAY_WRITE ) av |= FILE__WRITE ;\n }\n else {\n if ( mask & MAY_EXEC ) av |= DIR__SEARCH ;\n if ( mask & MAY_WRITE ) av |= DIR__WRITE ;\n if ( mask & MAY_READ ) av |= DIR__READ ;\n }\n return av ;\n }"}
{"idx": 19246, "target": 0, "func": "static int dissect_h225_SEQUENCE_OF_CryptoH323Token ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_SEQUENCE_OF_CryptoH323Token , SEQUENCE_OF_CryptoH323Token_sequence_of ) ;\n return offset ;\n }"}
{"idx": 19247, "target": 0, "func": "void vp8_encode_inter16x16y ( MACROBLOCK * x ) {\n BLOCK * b = & x -> block [ 0 ] ;\n vp8_build_inter16x16_predictors_mby ( & x -> e_mbd , x -> e_mbd . dst . y_buffer , x -> e_mbd . dst . y_stride ) ;\n vp8_subtract_mby ( x -> src_diff , * ( b -> base_src ) , b -> src_stride , x -> e_mbd . dst . y_buffer , x -> e_mbd . dst . y_stride ) ;\n transform_mby ( x ) ;\n vp8_quantize_mby ( x ) ;\n vp8_inverse_transform_mby ( & x -> e_mbd ) ;\n }"}
{"idx": 19248, "target": 0, "func": "static void test_tran_bdb ( ) {\n MYSQL_RES * result ;\n MYSQL_ROW row ;\n int rc ;\n myheader ( \"test_tran_bdb\" ) ;\n rc = mysql_autocommit ( mysql , FALSE ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS my_demo_transaction\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE my_demo_transaction( \" \"col1 int , col2 varchar(30)) ENGINE= BDB\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO my_demo_transaction VALUES(10, 'venu')\" ) ;\n myquery ( rc ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO my_demo_transaction VALUES(20, 'mysql')\" ) ;\n myquery ( rc ) ;\n rc = mysql_rollback ( mysql ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DELETE FROM my_demo_transaction WHERE col1= 10\" ) ;\n myquery ( rc ) ;\n rc = mysql_rollback ( mysql ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"SELECT * FROM my_demo_transaction\" ) ;\n myquery ( rc ) ;\n result = mysql_store_result ( mysql ) ;\n mytest ( result ) ;\n ( void ) my_process_result_set ( result ) ;\n mysql_free_result ( result ) ;\n rc = mysql_query ( mysql , \"SELECT * FROM my_demo_transaction\" ) ;\n myquery ( rc ) ;\n result = mysql_use_result ( mysql ) ;\n mytest ( result ) ;\n row = mysql_fetch_row ( result ) ;\n mytest ( row ) ;\n row = mysql_fetch_row ( result ) ;\n mytest_r ( row ) ;\n mysql_free_result ( result ) ;\n mysql_autocommit ( mysql , TRUE ) ;\n }"}
{"idx": 19249, "target": 0, "func": "static const gchar * get_pcp_features_to_string ( guint16 feature_flags ) {\n const value_string * flag_under_test ;\n wmem_strbuf_t * string_buffer ;\n gsize string_length ;\n string_buffer = wmem_strbuf_new ( wmem_packet_scope ( ) , \"\" ) ;\n flag_under_test = & pcp_feature_flags [ 0 ] ;\n while ( flag_under_test -> value ) {\n if ( feature_flags & flag_under_test -> value ) {\n wmem_strbuf_append_printf ( string_buffer , \"%s, \" , flag_under_test -> strptr ) ;\n }\n flag_under_test ++ ;\n }\n string_length = wmem_strbuf_get_len ( string_buffer ) ;\n if ( string_length > 2 ) {\n wmem_strbuf_truncate ( string_buffer , string_length - 2 ) ;\n }\n return wmem_strbuf_get_str ( string_buffer ) ;\n }"}
{"idx": 19250, "target": 0, "func": "static void * nbd_client_thread ( void * arg ) {\n char * device = arg ;\n off_t size ;\n uint16_t nbdflags ;\n QIOChannelSocket * sioc ;\n int fd ;\n int ret ;\n pthread_t show_parts_thread ;\n Error * local_error = NULL ;\n sioc = qio_channel_socket_new ( ) ;\n if ( qio_channel_socket_connect_sync ( sioc , saddr , & local_error ) < 0 ) {\n error_report_err ( local_error ) ;\n goto out ;\n }\n ret = nbd_receive_negotiate ( QIO_CHANNEL ( sioc ) , NULL , & nbdflags , NULL , NULL , NULL , & size , & local_error ) ;\n if ( ret < 0 ) {\n if ( local_error ) {\n error_report_err ( local_error ) ;\n }\n goto out_socket ;\n }\n fd = open ( device , O_RDWR ) ;\n if ( fd < 0 ) {\n error_report ( \"Failed to open %s: %m\" , device ) ;\n goto out_socket ;\n }\n ret = nbd_init ( fd , sioc , nbdflags , size , & local_error ) ;\n if ( ret < 0 ) {\n error_report_err ( local_error ) ;\n goto out_fd ;\n }\n pthread_create ( & show_parts_thread , NULL , show_parts , device ) ;\n if ( verbose ) {\n fprintf ( stderr , \"NBD device %s is now connected to %s\\n\" , device , srcpath ) ;\n }\n else {\n dup2 ( STDOUT_FILENO , STDERR_FILENO ) ;\n }\n ret = nbd_client ( fd ) ;\n if ( ret ) {\n goto out_fd ;\n }\n close ( fd ) ;\n object_unref ( OBJECT ( sioc ) ) ;\n kill ( getpid ( ) , SIGTERM ) ;\n return ( void * ) EXIT_SUCCESS ;\n out_fd : close ( fd ) ;\n out_socket : object_unref ( OBJECT ( sioc ) ) ;\n out : kill ( getpid ( ) , SIGTERM ) ;\n return ( void * ) EXIT_FAILURE ;\n }"}
{"idx": 19251, "target": 0, "func": "static int64_t calculate_total_gf_group_bits ( VP9_COMP * cpi , double gf_group_err ) {\n const RATE_CONTROL * const rc = & cpi -> rc ;\n const TWO_PASS * const twopass = & cpi -> twopass ;\n const int max_bits = frame_max_bits ( rc , & cpi -> oxcf ) ;\n int64_t total_group_bits ;\n if ( ( twopass -> kf_group_bits > 0 ) && ( twopass -> kf_group_error_left > 0 ) ) {\n total_group_bits = ( int64_t ) ( twopass -> kf_group_bits * ( gf_group_err / twopass -> kf_group_error_left ) ) ;\n }\n else {\n total_group_bits = 0 ;\n }\n total_group_bits = ( total_group_bits < 0 ) ? : ( total_group_bits > twopass -> kf_group_bits ) ? twopass -> kf_group_bits : total_group_bits ;\n if ( total_group_bits > ( int64_t ) max_bits * rc -> baseline_gf_interval ) total_group_bits = ( int64_t ) max_bits * rc -> baseline_gf_interval ;\n return total_group_bits ;\n }"}
{"idx": 19252, "target": 0, "func": "static int ebml_read_ascii ( AVIOContext * pb , int size , char * * str ) {\n char * res ;\n if ( ! ( res = av_malloc ( size + 1 ) ) ) return AVERROR ( ENOMEM ) ;\n if ( avio_read ( pb , ( uint8_t * ) res , size ) != size ) {\n av_free ( res ) ;\n return AVERROR ( EIO ) ;\n }\n ( res ) [ size ] = '\\0' ;\n av_free ( * str ) ;\n * str = res ;\n return 0 ;\n }"}
{"idx": 19253, "target": 0, "func": "static void xhci_ep_free_xfer ( XHCITransfer * xfer ) {\n QTAILQ_REMOVE ( & xfer -> epctx -> transfers , xfer , next ) ;\n xfer -> epctx -> xfer_count -- ;\n usb_packet_cleanup ( & xfer -> packet ) ;\n g_free ( xfer -> trbs ) ;\n g_free ( xfer ) ;\n }"}
{"idx": 19254, "target": 0, "func": "static inline int ivi_pic_config_cmp ( IVIPicConfig * str1 , IVIPicConfig * str2 ) {\n return str1 -> pic_width != str2 -> pic_width || str1 -> pic_height != str2 -> pic_height || str1 -> chroma_width != str2 -> chroma_width || str1 -> chroma_height != str2 -> chroma_height || str1 -> tile_width != str2 -> tile_width || str1 -> tile_height != str2 -> tile_height || str1 -> luma_bands != str2 -> luma_bands || str1 -> chroma_bands != str2 -> chroma_bands ;\n }"}
{"idx": 19255, "target": 0, "func": "static void initial_reordering_consonant_syllable ( const hb_ot_shape_plan_t * plan , hb_face_t * face , hb_buffer_t * buffer , unsigned int start , unsigned int end ) {\n const indic_shape_plan_t * indic_plan = ( const indic_shape_plan_t * ) plan -> data ;\n hb_glyph_info_t * info = buffer -> info ;\n unsigned int base = end ;\n bool has_reph = false ;\n {\n unsigned int limit = start ;\n if ( indic_plan -> config -> reph_pos != REPH_POS_DONT_CARE && indic_plan -> mask_array [ RPHF ] && start + 3 <= end && ( ( indic_plan -> config -> reph_mode == REPH_MODE_IMPLICIT && ! is_joiner ( info [ start + 2 ] ) ) || ( indic_plan -> config -> reph_mode == REPH_MODE_EXPLICIT && info [ start + 2 ] . indic_category ( ) == OT_ZWJ ) ) ) {\n hb_codepoint_t glyphs [ 3 ] = {\n info [ start ] . codepoint , info [ start + 1 ] . codepoint , indic_plan -> config -> reph_mode == REPH_MODE_EXPLICIT ? info [ start + 2 ] . codepoint : 0 }\n ;\n if ( indic_plan -> rphf . would_substitute ( glyphs , 2 , face ) || ( indic_plan -> config -> reph_mode == REPH_MODE_EXPLICIT && indic_plan -> rphf . would_substitute ( glyphs , 3 , face ) ) ) {\n limit += 2 ;\n while ( limit < end && is_joiner ( info [ limit ] ) ) limit ++ ;\n base = start ;\n has_reph = true ;\n }\n }\n else if ( indic_plan -> config -> reph_mode == REPH_MODE_LOG_REPHA && info [ start ] . indic_category ( ) == OT_Repha ) {\n limit += 1 ;\n while ( limit < end && is_joiner ( info [ limit ] ) ) limit ++ ;\n base = start ;\n has_reph = true ;\n }\n switch ( indic_plan -> config -> base_pos ) {\n default : assert ( false ) ;\n case BASE_POS_LAST : {\n unsigned int i = end ;\n bool seen_below = false ;\n do {\n i -- ;\n if ( is_consonant ( info [ i ] ) ) {\n if ( info [ i ] . indic_position ( ) != POS_BELOW_C && ( info [ i ] . indic_position ( ) != POS_POST_C || seen_below ) ) {\n base = i ;\n break ;\n }\n if ( info [ i ] . indic_position ( ) == POS_BELOW_C ) seen_below = true ;\n base = i ;\n }\n else {\n if ( start < i && info [ i ] . indic_category ( ) == OT_ZWJ && info [ i - 1 ] . indic_category ( ) == OT_H ) break ;\n }\n }\n while ( i > limit ) ;\n }\n break ;\n case BASE_POS_LAST_SINHALA : {\n if ( ! has_reph ) base = limit ;\n for ( unsigned int i = limit ;\n i < end ;\n i ++ ) if ( is_consonant ( info [ i ] ) ) {\n if ( limit < i && info [ i - 1 ] . indic_category ( ) == OT_ZWJ ) break ;\n else base = i ;\n }\n for ( unsigned int i = base + 1 ;\n i < end ;\n i ++ ) if ( is_consonant ( info [ i ] ) ) info [ i ] . indic_position ( ) = POS_BELOW_C ;\n }\n break ;\n case BASE_POS_FIRST : {\n assert ( indic_plan -> config -> reph_mode == REPH_MODE_VIS_REPHA ) ;\n assert ( ! has_reph ) ;\n base = start ;\n for ( unsigned int i = base + 1 ;\n i < end ;\n i ++ ) if ( is_consonant ( info [ i ] ) ) info [ i ] . indic_position ( ) = POS_BELOW_C ;\n }\n break ;\n }\n if ( has_reph && base == start && limit - base <= 2 ) {\n has_reph = false ;\n }\n }\n for ( unsigned int i = start ;\n i < base ;\n i ++ ) info [ i ] . indic_position ( ) = MIN ( POS_PRE_C , ( indic_position_t ) info [ i ] . indic_position ( ) ) ;\n if ( base < end ) info [ base ] . indic_position ( ) = POS_BASE_C ;\n for ( unsigned int i = base + 1 ;\n i < end ;\n i ++ ) if ( info [ i ] . indic_category ( ) == OT_M ) {\n for ( unsigned int j = i + 1 ;\n j < end ;\n j ++ ) if ( is_consonant ( info [ j ] ) ) {\n info [ j ] . indic_position ( ) = POS_FINAL_C ;\n break ;\n }\n break ;\n }\n if ( has_reph ) info [ start ] . indic_position ( ) = POS_RA_TO_BECOME_REPH ;\n if ( indic_plan -> is_old_spec ) {\n bool disallow_double_halants = buffer -> props . script != HB_SCRIPT_MALAYALAM ;\n for ( unsigned int i = base + 1 ;\n i < end ;\n i ++ ) if ( info [ i ] . indic_category ( ) == OT_H ) {\n unsigned int j ;\n for ( j = end - 1 ;\n j > i ;\n j -- ) if ( is_consonant ( info [ j ] ) || ( disallow_double_halants && info [ j ] . indic_category ( ) == OT_H ) ) break ;\n if ( info [ j ] . indic_category ( ) != OT_H && j > i ) {\n hb_glyph_info_t t = info [ i ] ;\n memmove ( & info [ i ] , & info [ i + 1 ] , ( j - i ) * sizeof ( info [ 0 ] ) ) ;\n info [ j ] = t ;\n }\n break ;\n }\n }\n {\n indic_position_t last_pos = POS_START ;\n for ( unsigned int i = start ;\n i < end ;\n i ++ ) {\n if ( ( FLAG_SAFE ( info [ i ] . indic_category ( ) ) & ( JOINER_FLAGS | FLAG ( OT_N ) | FLAG ( OT_RS ) | MEDIAL_FLAGS | HALANT_OR_COENG_FLAGS ) ) ) {\n info [ i ] . indic_position ( ) = last_pos ;\n if ( unlikely ( info [ i ] . indic_category ( ) == OT_H && info [ i ] . indic_position ( ) == POS_PRE_M ) ) {\n for ( unsigned int j = i ;\n j > start ;\n j -- ) if ( info [ j - 1 ] . indic_position ( ) != POS_PRE_M ) {\n info [ i ] . indic_position ( ) = info [ j - 1 ] . indic_position ( ) ;\n break ;\n }\n }\n }\n else if ( info [ i ] . indic_position ( ) != POS_SMVD ) {\n last_pos = ( indic_position_t ) info [ i ] . indic_position ( ) ;\n }\n }\n }\n {\n unsigned int last = base ;\n for ( unsigned int i = base + 1 ;\n i < end ;\n i ++ ) if ( is_consonant ( info [ i ] ) ) {\n for ( unsigned int j = last + 1 ;\n j < i ;\n j ++ ) if ( info [ j ] . indic_position ( ) < POS_SMVD ) info [ j ] . indic_position ( ) = info [ i ] . indic_position ( ) ;\n last = i ;\n }\n else if ( info [ i ] . indic_category ( ) == OT_M ) last = i ;\n }\n {\n unsigned int syllable = info [ start ] . syllable ( ) ;\n for ( unsigned int i = start ;\n i < end ;\n i ++ ) info [ i ] . syllable ( ) = i - start ;\n hb_bubble_sort ( info + start , end - start , compare_indic_order ) ;\n base = end ;\n for ( unsigned int i = start ;\n i < end ;\n i ++ ) if ( info [ i ] . indic_position ( ) == POS_BASE_C ) {\n base = i ;\n break ;\n }\n if ( indic_plan -> is_old_spec || end - base > 127 ) buffer -> merge_clusters ( base , end ) ;\n else {\n for ( unsigned int i = base ;\n i < end ;\n i ++ ) if ( info [ i ] . syllable ( ) != 255 ) {\n unsigned int max = i ;\n unsigned int j = start + info [ i ] . syllable ( ) ;\n while ( j != i ) {\n max = MAX ( max , j ) ;\n unsigned int next = start + info [ j ] . syllable ( ) ;\n info [ j ] . syllable ( ) = 255 ;\n j = next ;\n }\n if ( i != max ) buffer -> merge_clusters ( i , max + 1 ) ;\n }\n }\n for ( unsigned int i = start ;\n i < end ;\n i ++ ) info [ i ] . syllable ( ) = syllable ;\n }\n {\n hb_mask_t mask ;\n for ( unsigned int i = start ;\n i < end && info [ i ] . indic_position ( ) == POS_RA_TO_BECOME_REPH ;\n i ++ ) info [ i ] . mask |= indic_plan -> mask_array [ RPHF ] ;\n mask = indic_plan -> mask_array [ HALF ] ;\n if ( ! indic_plan -> is_old_spec && indic_plan -> config -> blwf_mode == BLWF_MODE_PRE_AND_POST ) mask |= indic_plan -> mask_array [ BLWF ] ;\n for ( unsigned int i = start ;\n i < base ;\n i ++ ) info [ i ] . mask |= mask ;\n mask = 0 ;\n if ( base < end ) info [ base ] . mask |= mask ;\n mask = indic_plan -> mask_array [ BLWF ] | indic_plan -> mask_array [ ABVF ] | indic_plan -> mask_array [ PSTF ] ;\n for ( unsigned int i = base + 1 ;\n i < end ;\n i ++ ) info [ i ] . mask |= mask ;\n }\n if ( indic_plan -> is_old_spec && buffer -> props . script == HB_SCRIPT_DEVANAGARI ) {\n for ( unsigned int i = start ;\n i + 1 < base ;\n i ++ ) if ( info [ i ] . indic_category ( ) == OT_Ra && info [ i + 1 ] . indic_category ( ) == OT_H && ( i + 2 == base || info [ i + 2 ] . indic_category ( ) != OT_ZWJ ) ) {\n info [ i ] . mask |= indic_plan -> mask_array [ BLWF ] ;\n info [ i + 1 ] . mask |= indic_plan -> mask_array [ BLWF ] ;\n }\n }\n unsigned int pref_len = indic_plan -> config -> pref_len ;\n if ( indic_plan -> mask_array [ PREF ] && base + pref_len < end ) {\n assert ( 1 <= pref_len && pref_len <= 2 ) ;\n for ( unsigned int i = base + 1 ;\n i + pref_len - 1 < end ;\n i ++ ) {\n hb_codepoint_t glyphs [ 2 ] ;\n for ( unsigned int j = 0 ;\n j < pref_len ;\n j ++ ) glyphs [ j ] = info [ i + j ] . codepoint ;\n if ( indic_plan -> pref . would_substitute ( glyphs , pref_len , face ) ) {\n for ( unsigned int j = 0 ;\n j < pref_len ;\n j ++ ) info [ i ++ ] . mask |= indic_plan -> mask_array [ PREF ] ;\n if ( indic_plan -> mask_array [ CFAR ] ) for ( ;\n i < end ;\n i ++ ) info [ i ] . mask |= indic_plan -> mask_array [ CFAR ] ;\n break ;\n }\n }\n }\n for ( unsigned int i = start + 1 ;\n i < end ;\n i ++ ) if ( is_joiner ( info [ i ] ) ) {\n bool non_joiner = info [ i ] . indic_category ( ) == OT_ZWNJ ;\n unsigned int j = i ;\n do {\n j -- ;\n if ( non_joiner ) info [ j ] . mask &= ~ indic_plan -> mask_array [ HALF ] ;\n }\n while ( j > start && ! is_consonant ( info [ j ] ) ) ;\n }\n }"}
{"idx": 19256, "target": 0, "func": "static void check_object ( struct object_entry * entry ) {\n if ( entry -> in_pack ) {\n struct packed_git * p = entry -> in_pack ;\n struct pack_window * w_curs = NULL ;\n const unsigned char * base_ref = NULL ;\n struct object_entry * base_entry ;\n unsigned long used , used_0 ;\n unsigned long avail ;\n off_t ofs ;\n unsigned char * buf , c ;\n buf = use_pack ( p , & w_curs , entry -> in_pack_offset , & avail ) ;\n used = unpack_object_header_buffer ( buf , avail , & entry -> in_pack_type , & entry -> size ) ;\n if ( used == 0 ) goto give_up ;\n switch ( entry -> in_pack_type ) {\n default : entry -> type = entry -> in_pack_type ;\n entry -> in_pack_header_size = used ;\n if ( entry -> type < OBJ_COMMIT || entry -> type > OBJ_BLOB ) goto give_up ;\n unuse_pack ( & w_curs ) ;\n return ;\n case OBJ_REF_DELTA : if ( reuse_delta && ! entry -> preferred_base ) base_ref = use_pack ( p , & w_curs , entry -> in_pack_offset + used , NULL ) ;\n entry -> in_pack_header_size = used + 20 ;\n break ;\n case OBJ_OFS_DELTA : buf = use_pack ( p , & w_curs , entry -> in_pack_offset + used , NULL ) ;\n used_0 = 0 ;\n c = buf [ used_0 ++ ] ;\n ofs = c & 127 ;\n while ( c & 128 ) {\n ofs += 1 ;\n if ( ! ofs || MSB ( ofs , 7 ) ) {\n error ( \"delta base offset overflow in pack for %s\" , sha1_to_hex ( entry -> idx . sha1 ) ) ;\n goto give_up ;\n }\n c = buf [ used_0 ++ ] ;\n ofs = ( ofs << 7 ) + ( c & 127 ) ;\n }\n ofs = entry -> in_pack_offset - ofs ;\n if ( ofs <= 0 || ofs >= entry -> in_pack_offset ) {\n error ( \"delta base offset out of bound for %s\" , sha1_to_hex ( entry -> idx . sha1 ) ) ;\n goto give_up ;\n }\n if ( reuse_delta && ! entry -> preferred_base ) {\n struct revindex_entry * revidx ;\n revidx = find_pack_revindex ( p , ofs ) ;\n if ( ! revidx ) goto give_up ;\n base_ref = nth_packed_object_sha1 ( p , revidx -> nr ) ;\n }\n entry -> in_pack_header_size = used + used_0 ;\n break ;\n }\n if ( base_ref && ( base_entry = packlist_find ( & to_pack , base_ref , NULL ) ) ) {\n entry -> type = entry -> in_pack_type ;\n entry -> delta = base_entry ;\n entry -> delta_size = entry -> size ;\n entry -> delta_sibling = base_entry -> delta_child ;\n base_entry -> delta_child = entry ;\n unuse_pack ( & w_curs ) ;\n return ;\n }\n if ( entry -> type ) {\n entry -> size = get_size_from_delta ( p , & w_curs , entry -> in_pack_offset + entry -> in_pack_header_size ) ;\n if ( entry -> size == 0 ) goto give_up ;\n unuse_pack ( & w_curs ) ;\n return ;\n }\n give_up : unuse_pack ( & w_curs ) ;\n }\n entry -> type = sha1_object_info ( entry -> idx . sha1 , & entry -> size ) ;\n }"}
{"idx": 19257, "target": 0, "func": "int client_handler ( TSCont contp , TSEvent event , void * data ) {\n SDK_NetVConn_Params * params = ( SDK_NetVConn_Params * ) TSContDataGet ( contp ) ;\n if ( event == TS_EVENT_NET_CONNECT_FAILED ) {\n SDK_RPRINT ( params -> test , params -> api , \"ClientConnect\" , TC_FAIL , \"can't connect to server\" ) ;\n * params -> pstatus = REGRESSION_TEST_FAILED ;\n TSContDestroy ( contp ) ;\n return 1 ;\n }\n else if ( TS_EVENT_NET_CONNECT == event ) {\n sockaddr const * addr = TSNetVConnRemoteAddrGet ( static_cast < TSVConn > ( data ) ) ;\n uint16_t input_server_port = ats_ip_port_host_order ( addr ) ;\n UnixNetVConnection * vc = static_cast < UnixNetVConnection * > ( data ) ;\n ink_release_assert ( : : write ( vc -> con . fd , \"Bob's your uncle\" , 16 ) != 0 ) ;\n sleep ( 1 ) ;\n if ( ats_is_ip_loopback ( addr ) ) {\n SDK_RPRINT ( params -> test , params -> api , \"TSNetVConnRemoteIPGet\" , TC_PASS , \"ok\" ) ;\n }\n else {\n ip_text_buffer s , ipb ;\n IpEndpoint loopback ;\n ats_ip4_set ( & loopback , htonl ( INADDR_LOOPBACK ) ) ;\n SDK_RPRINT ( params -> test , params -> api , \"TSNetVConnRemoteIPGet\" , TC_FAIL , \"server ip [%s] is incorrect - expected [%s]\" , ats_ip_ntop ( addr , s , sizeof s ) , ats_ip_ntop ( & loopback . sa , ipb , sizeof ipb ) ) ;\n TSContDestroy ( contp ) ;\n * params -> pstatus = REGRESSION_TEST_FAILED ;\n return 1 ;\n }\n if ( input_server_port == params -> port ) {\n SDK_RPRINT ( params -> test , params -> api , \"TSNetVConnRemotePortGet\" , TC_PASS , \"ok\" ) ;\n }\n else {\n SDK_RPRINT ( params -> test , params -> api , \"TSNetVConnRemotePortGet\" , TC_FAIL , \"server port [%d] is incorrect -- expected [%d]\" , input_server_port , params -> port ) ;\n TSContDestroy ( contp ) ;\n * params -> pstatus = REGRESSION_TEST_FAILED ;\n return 1 ;\n }\n SDK_RPRINT ( params -> test , params -> api , \"TSNetConnect\" , TC_PASS , \"ok\" ) ;\n TSVConnClose ( ( TSVConn ) data ) ;\n }\n TSContDestroy ( contp ) ;\n return 1 ;\n }"}
{"idx": 19258, "target": 0, "func": "static void * read_into_buffer ( FILE * fp , size_t * r_length ) {\n char * buffer ;\n size_t buflen ;\n size_t nread , bufsize = 0 ;\n * r_length = 0 ;\n # define NCHUNK 8192 # ifdef HAVE_W32_SYSTEM setmode ( fileno ( fp ) , O_BINARY ) ;\n # endif buffer = NULL ;\n buflen = 0 ;\n do {\n bufsize += NCHUNK ;\n buffer = realloc ( buffer , bufsize ) ;\n if ( ! buffer ) {\n perror ( \"realloc failed\" ) ;\n exit ( 1 ) ;\n }\n nread = fread ( buffer + buflen , 1 , NCHUNK , fp ) ;\n if ( nread < NCHUNK && ferror ( fp ) ) {\n perror ( \"fread failed\" ) ;\n exit ( 1 ) ;\n }\n buflen += nread ;\n }\n while ( nread == NCHUNK ) ;\n # undef NCHUNK * r_length = buflen ;\n return buffer ;\n }"}
{"idx": 19259, "target": 0, "func": "TSMatcherLine TSMatcherLineCreate ( void ) {\n return reinterpret_cast < TSMatcherLine > ( ats_malloc ( sizeof ( matcher_line ) ) ) ;\n }"}
{"idx": 19260, "target": 0, "func": "static int extra_setup_location ( struct isoent * isoent , int location ) {\n struct extr_rec * rec ;\n int cnt ;\n cnt = 0 ;\n rec = isoent -> extr_rec_list . first ;\n isoent -> extr_rec_list . current = rec ;\n while ( rec ) {\n cnt ++ ;\n rec -> location = location ++ ;\n rec -> offset = 0 ;\n rec = rec -> next ;\n }\n return ( cnt ) ;\n }"}
{"idx": 19261, "target": 0, "func": "static void custom_mount_skip ( va_list * va ) {\n ( void ) va_arg ( * va , GMount * ) ;\n }"}
{"idx": 19262, "target": 0, "func": "static int ztype ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n ref tnref ;\n int code = array_get ( imemory , op , ( long ) r_btype ( op - 1 ) , & tnref ) ;\n if ( code < 0 ) return code ;\n if ( ! r_has_type ( & tnref , t_name ) ) {\n check_op ( 2 ) ;\n {\n if ( ( r_has_type ( & op [ - 1 ] , t_struct ) || r_has_type ( & op [ - 1 ] , t_astruct ) ) && op [ - 1 ] . value . pstruct != 0x00 ) {\n const char * sname = gs_struct_type_name_string ( gs_object_type ( imemory , op [ - 1 ] . value . pstruct ) ) ;\n int code = name_ref ( imemory , ( const byte * ) sname , strlen ( sname ) , ( ref * ) ( op - 1 ) , 0 ) ;\n if ( code < 0 ) return code ;\n }\n else return_error ( gs_error_stackunderflow ) ;\n }\n r_set_attrs ( op - 1 , a_executable ) ;\n }\n else {\n ref_assign ( op - 1 , & tnref ) ;\n }\n pop ( 1 ) ;\n return 0 ;\n }"}
{"idx": 19263, "target": 0, "func": "static gboolean gsm_a_dtap_sms_stat_packet ( void * tapdata , packet_info * pinfo _U_ , epan_dissect_t * edt _U_ , const void * gatr_ptr ) {\n return gsm_a_stat_packet ( tapdata , gatr_ptr , BSSAP_PDU_TYPE_DTAP , PD_SMS ) ;\n }"}
{"idx": 19264, "target": 0, "func": "static PyObject * basestring_new ( PyTypeObject * type , PyObject * args , PyObject * kwds ) {\n PyErr_SetString ( PyExc_TypeError , \"The basestring type cannot be instantiated\" ) ;\n return NULL ;\n }"}
{"idx": 19265, "target": 0, "func": "static int log_test_handler ( TSCont contp , TSEvent event , void * ) {\n TSFile filep ;\n char buf [ 1024 ] ;\n bool str_found ;\n int retVal = 0 ;\n TSAssert ( event == TS_EVENT_TIMEOUT ) ;\n LogTestData * data = ( LogTestData * ) TSContDataGet ( contp ) ;\n TSAssert ( data -> magic == MAGIC_ALIVE ) ;\n if ( ( filep = TSfopen ( data -> fullpath_logname , \"r\" ) ) == nullptr ) {\n SDK_RPRINT ( data -> test , \"TSTextLogObject\" , \"TestCase1\" , TC_FAIL , \"can not open log file %s\" , data -> fullpath_logname ) ;\n * ( data -> pstatus ) = REGRESSION_TEST_FAILED ;\n return - 1 ;\n }\n else {\n str_found = false ;\n while ( TSfgets ( filep , buf , 1024 ) != nullptr ) {\n if ( strstr ( buf , LOG_TEST_PATTERN ) != nullptr ) {\n str_found = true ;\n break ;\n }\n }\n TSfclose ( filep ) ;\n if ( str_found == false ) {\n SDK_RPRINT ( data -> test , \"TSTextLogObject\" , \"TestCase1\" , TC_FAIL , \"can not find pattern %s in log file\" , LOG_TEST_PATTERN ) ;\n * ( data -> pstatus ) = REGRESSION_TEST_FAILED ;\n return - 1 ;\n }\n }\n retVal = TSTextLogObjectDestroy ( data -> log ) ;\n if ( retVal != TS_SUCCESS ) {\n SDK_RPRINT ( data -> test , \"TSTextLogObjectDestroy\" , \"TestCase1\" , TC_FAIL , \"can not destroy log object\" ) ;\n * ( data -> pstatus ) = REGRESSION_TEST_FAILED ;\n return - 1 ;\n }\n else {\n SDK_RPRINT ( data -> test , \"TSTextLogObjectDestroy\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n * ( data -> pstatus ) = REGRESSION_TEST_PASSED ;\n SDK_RPRINT ( data -> test , \"TSTextLogObject\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n int i = - 1 , l = 0 ;\n char c ;\n while ( c = data -> fullpath_logname [ l ] , c != 0 ) {\n if ( c == '/' ) {\n i = l ;\n }\n ++ l ;\n }\n char * meta_filename = ( char * ) ats_malloc ( l + 7 ) ;\n if ( i < 0 ) {\n ink_string_concatenate_strings ( meta_filename , \".\" , data -> fullpath_logname , \".meta\" , NULL ) ;\n }\n else {\n memcpy ( meta_filename , data -> fullpath_logname , i + 1 ) ;\n ink_string_concatenate_strings ( & meta_filename [ i + 1 ] , \".\" , & data -> fullpath_logname [ i + 1 ] , \".meta\" , NULL ) ;\n }\n unlink ( data -> fullpath_logname ) ;\n unlink ( meta_filename ) ;\n TSfree ( data -> fullpath_logname ) ;\n TSfree ( meta_filename ) ;\n meta_filename = nullptr ;\n data -> magic = MAGIC_DEAD ;\n TSfree ( data ) ;\n data = nullptr ;\n return - 1 ;\n }"}
{"idx": 19266, "target": 0, "func": "static int ipv6_raw_deliver ( struct sk_buff * skb , int nexthdr ) {\n struct in6_addr * saddr ;\n struct in6_addr * daddr ;\n struct sock * sk ;\n int delivered = 0 ;\n __u8 hash ;\n struct net * net ;\n saddr = & ipv6_hdr ( skb ) -> saddr ;\n daddr = saddr + 1 ;\n hash = nexthdr & ( MAX_INET_PROTOS - 1 ) ;\n read_lock ( & raw_v6_hashinfo . lock ) ;\n sk = sk_head ( & raw_v6_hashinfo . ht [ hash ] ) ;\n if ( sk == NULL ) goto out ;\n net = dev_net ( skb -> dev ) ;\n sk = __raw_v6_lookup ( net , sk , nexthdr , daddr , saddr , IP6CB ( skb ) -> iif ) ;\n while ( sk ) {\n int filtered ;\n delivered = 1 ;\n switch ( nexthdr ) {\n case IPPROTO_ICMPV6 : filtered = icmpv6_filter ( sk , skb ) ;\n break ;\n # if defined ( CONFIG_IPV6_MIP6 ) || defined ( CONFIG_IPV6_MIP6_MODULE ) case IPPROTO_MH : {\n int ( * filter ) ( struct sock * sock , struct sk_buff * skb ) ;\n filter = rcu_dereference ( mh_filter ) ;\n filtered = filter ? filter ( sk , skb ) : 0 ;\n break ;\n }\n # endif default : filtered = 0 ;\n break ;\n }\n if ( filtered < 0 ) break ;\n if ( filtered == 0 ) {\n struct sk_buff * clone = skb_clone ( skb , GFP_ATOMIC ) ;\n if ( clone ) {\n nf_reset ( clone ) ;\n rawv6_rcv ( sk , clone ) ;\n }\n }\n sk = __raw_v6_lookup ( net , sk_next ( sk ) , nexthdr , daddr , saddr , IP6CB ( skb ) -> iif ) ;\n }\n out : read_unlock ( & raw_v6_hashinfo . lock ) ;\n return delivered ;\n }"}
{"idx": 19267, "target": 0, "func": "static int store_object ( enum object_type type , struct strbuf * dat , struct last_object * last , unsigned char * sha1out , uintmax_t mark ) {\n void * out , * delta ;\n struct object_entry * e ;\n unsigned char hdr [ 96 ] ;\n unsigned char sha1 [ 20 ] ;\n unsigned long hdrlen , deltalen ;\n git_SHA_CTX c ;\n git_zstream s ;\n hdrlen = xsnprintf ( ( char * ) hdr , sizeof ( hdr ) , \"%s %lu\" , typename ( type ) , ( unsigned long ) dat -> len ) + 1 ;\n git_SHA1_Init ( & c ) ;\n git_SHA1_Update ( & c , hdr , hdrlen ) ;\n git_SHA1_Update ( & c , dat -> buf , dat -> len ) ;\n git_SHA1_Final ( sha1 , & c ) ;\n if ( sha1out ) hashcpy ( sha1out , sha1 ) ;\n e = insert_object ( sha1 ) ;\n if ( mark ) insert_mark ( mark , e ) ;\n if ( e -> idx . offset ) {\n duplicate_count_by_type [ type ] ++ ;\n return 1 ;\n }\n else if ( find_sha1_pack ( sha1 , packed_git ) ) {\n e -> type = type ;\n e -> pack_id = MAX_PACK_ID ;\n e -> idx . offset = 1 ;\n duplicate_count_by_type [ type ] ++ ;\n return 1 ;\n }\n if ( last && last -> data . buf && last -> depth < max_depth && dat -> len > 20 ) {\n delta_count_attempts_by_type [ type ] ++ ;\n delta = diff_delta ( last -> data . buf , last -> data . len , dat -> buf , dat -> len , & deltalen , dat -> len - 20 ) ;\n }\n else delta = NULL ;\n git_deflate_init ( & s , pack_compression_level ) ;\n if ( delta ) {\n s . next_in = delta ;\n s . avail_in = deltalen ;\n }\n else {\n s . next_in = ( void * ) dat -> buf ;\n s . avail_in = dat -> len ;\n }\n s . avail_out = git_deflate_bound ( & s , s . avail_in ) ;\n s . next_out = out = xmalloc ( s . avail_out ) ;\n while ( git_deflate ( & s , Z_FINISH ) == Z_OK ) ;\n git_deflate_end ( & s ) ;\n if ( ( max_packsize && ( pack_size + 60 + s . total_out ) > max_packsize ) || ( pack_size + 60 + s . total_out ) < pack_size ) {\n e -> pack_id = pack_id + 1 ;\n cycle_packfile ( ) ;\n if ( delta ) {\n free ( delta ) ;\n delta = NULL ;\n git_deflate_init ( & s , pack_compression_level ) ;\n s . next_in = ( void * ) dat -> buf ;\n s . avail_in = dat -> len ;\n s . avail_out = git_deflate_bound ( & s , s . avail_in ) ;\n s . next_out = out = xrealloc ( out , s . avail_out ) ;\n while ( git_deflate ( & s , Z_FINISH ) == Z_OK ) ;\n git_deflate_end ( & s ) ;\n }\n }\n e -> type = type ;\n e -> pack_id = pack_id ;\n e -> idx . offset = pack_size ;\n object_count ++ ;\n object_count_by_type [ type ] ++ ;\n crc32_begin ( pack_file ) ;\n if ( delta ) {\n off_t ofs = e -> idx . offset - last -> offset ;\n unsigned pos = sizeof ( hdr ) - 1 ;\n delta_count_by_type [ type ] ++ ;\n e -> depth = last -> depth + 1 ;\n hdrlen = encode_in_pack_object_header ( OBJ_OFS_DELTA , deltalen , hdr ) ;\n sha1write ( pack_file , hdr , hdrlen ) ;\n pack_size += hdrlen ;\n hdr [ pos ] = ofs & 127 ;\n while ( ofs >>= 7 ) hdr [ -- pos ] = 128 | ( -- ofs & 127 ) ;\n sha1write ( pack_file , hdr + pos , sizeof ( hdr ) - pos ) ;\n pack_size += sizeof ( hdr ) - pos ;\n }\n else {\n e -> depth = 0 ;\n hdrlen = encode_in_pack_object_header ( type , dat -> len , hdr ) ;\n sha1write ( pack_file , hdr , hdrlen ) ;\n pack_size += hdrlen ;\n }\n sha1write ( pack_file , out , s . total_out ) ;\n pack_size += s . total_out ;\n e -> idx . crc32 = crc32_end ( pack_file ) ;\n free ( out ) ;\n free ( delta ) ;\n if ( last ) {\n if ( last -> no_swap ) {\n last -> data = * dat ;\n }\n else {\n strbuf_swap ( & last -> data , dat ) ;\n }\n last -> offset = e -> idx . offset ;\n last -> depth = e -> depth ;\n }\n return 0 ;\n }"}
{"idx": 19268, "target": 0, "func": "static RelOptInfo * find_join_input_rel ( PlannerInfo * root , Relids relids ) {\n RelOptInfo * rel = NULL ;\n switch ( bms_membership ( relids ) ) {\n case BMS_EMPTY_SET : break ;\n case BMS_SINGLETON : rel = find_base_rel ( root , bms_singleton_member ( relids ) ) ;\n break ;\n case BMS_MULTIPLE : rel = find_join_rel ( root , relids ) ;\n break ;\n }\n if ( rel == NULL ) elog ( ERROR , \"could not find RelOptInfo for given relids\" ) ;\n return rel ;\n }"}
{"idx": 19269, "target": 0, "func": "int gs_to_exit_with_code ( const gs_memory_t * mem , int exit_status , int code ) {\n return gs_main_finit ( get_minst_from_memory ( mem ) , exit_status , code ) ;\n }"}
{"idx": 19270, "target": 0, "func": "int gdev_mem_max_height ( const gx_device_memory * dev , int width , ulong size , bool page_uses_transparency ) {\n int height ;\n ulong max_height ;\n ulong data_size ;\n if ( page_uses_transparency ) {\n max_height = size / ( bitmap_raster_pad_align ( width * dev -> color_info . depth + ESTIMATED_PDF14_ROW_SPACE ( width , dev -> color_info . num_components ) , dev -> pad , dev -> log2_align_mod ) + sizeof ( byte * ) * ( dev -> is_planar ? dev -> color_info . num_components : 1 ) ) ;\n height = ( int ) min ( max_height , max_int ) ;\n }\n else {\n max_height = size / ( bitmap_raster_pad_align ( width * dev -> color_info . depth , dev -> pad , dev -> log2_align_mod ) + sizeof ( byte * ) * ( dev -> is_planar ? dev -> color_info . num_components : 1 ) ) ;\n height = ( int ) min ( max_height , max_int ) ;\n do {\n gdev_mem_data_size ( dev , width , height , & data_size ) ;\n if ( data_size <= size ) break ;\n -- height ;\n }\n while ( data_size > size ) ;\n }\n return height ;\n }"}
{"idx": 19271, "target": 0, "func": "static int wma_decode_block ( WMACodecContext * s ) {\n int n , v , a , ch , bsize ;\n int coef_nb_bits , total_gain ;\n int nb_coefs [ MAX_CHANNELS ] ;\n float mdct_norm ;\n FFTContext * mdct ;\n # ifdef TRACE tprintf ( s -> avctx , \"***decode_block: %d:%d\\n\" , s -> frame_count - 1 , s -> block_num ) ;\n # endif if ( s -> use_variable_block_len ) {\n n = av_log2 ( s -> nb_block_sizes - 1 ) + 1 ;\n if ( s -> reset_block_lengths ) {\n s -> reset_block_lengths = 0 ;\n v = get_bits ( & s -> gb , n ) ;\n if ( v >= s -> nb_block_sizes ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"prev_block_len_bits %d out of range\\n\" , s -> frame_len_bits - v ) ;\n return - 1 ;\n }\n s -> prev_block_len_bits = s -> frame_len_bits - v ;\n v = get_bits ( & s -> gb , n ) ;\n if ( v >= s -> nb_block_sizes ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"block_len_bits %d out of range\\n\" , s -> frame_len_bits - v ) ;\n return - 1 ;\n }\n s -> block_len_bits = s -> frame_len_bits - v ;\n }\n else {\n s -> prev_block_len_bits = s -> block_len_bits ;\n s -> block_len_bits = s -> next_block_len_bits ;\n }\n v = get_bits ( & s -> gb , n ) ;\n if ( v >= s -> nb_block_sizes ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"next_block_len_bits %d out of range\\n\" , s -> frame_len_bits - v ) ;\n return - 1 ;\n }\n s -> next_block_len_bits = s -> frame_len_bits - v ;\n }\n else {\n s -> next_block_len_bits = s -> frame_len_bits ;\n s -> prev_block_len_bits = s -> frame_len_bits ;\n s -> block_len_bits = s -> frame_len_bits ;\n }\n s -> block_len = 1 << s -> block_len_bits ;\n if ( ( s -> block_pos + s -> block_len ) > s -> frame_len ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"frame_len overflow\\n\" ) ;\n return - 1 ;\n }\n if ( s -> avctx -> channels == 2 ) {\n s -> ms_stereo = get_bits1 ( & s -> gb ) ;\n }\n v = 0 ;\n for ( ch = 0 ;\n ch < s -> avctx -> channels ;\n ch ++ ) {\n a = get_bits1 ( & s -> gb ) ;\n s -> channel_coded [ ch ] = a ;\n v |= a ;\n }\n bsize = s -> frame_len_bits - s -> block_len_bits ;\n if ( ! v ) goto next ;\n total_gain = 1 ;\n for ( ;\n ;\n ) {\n a = get_bits ( & s -> gb , 7 ) ;\n total_gain += a ;\n if ( a != 127 ) break ;\n }\n coef_nb_bits = ff_wma_total_gain_to_bits ( total_gain ) ;\n n = s -> coefs_end [ bsize ] - s -> coefs_start ;\n for ( ch = 0 ;\n ch < s -> avctx -> channels ;\n ch ++ ) nb_coefs [ ch ] = n ;\n if ( s -> use_noise_coding ) {\n for ( ch = 0 ;\n ch < s -> avctx -> channels ;\n ch ++ ) {\n if ( s -> channel_coded [ ch ] ) {\n int i , n , a ;\n n = s -> exponent_high_sizes [ bsize ] ;\n for ( i = 0 ;\n i < n ;\n i ++ ) {\n a = get_bits1 ( & s -> gb ) ;\n s -> high_band_coded [ ch ] [ i ] = a ;\n if ( a ) nb_coefs [ ch ] -= s -> exponent_high_bands [ bsize ] [ i ] ;\n }\n }\n }\n for ( ch = 0 ;\n ch < s -> avctx -> channels ;\n ch ++ ) {\n if ( s -> channel_coded [ ch ] ) {\n int i , n , val , code ;\n n = s -> exponent_high_sizes [ bsize ] ;\n val = ( int ) 0x80000000 ;\n for ( i = 0 ;\n i < n ;\n i ++ ) {\n if ( s -> high_band_coded [ ch ] [ i ] ) {\n if ( val == ( int ) 0x80000000 ) {\n val = get_bits ( & s -> gb , 7 ) - 19 ;\n }\n else {\n code = get_vlc2 ( & s -> gb , s -> hgain_vlc . table , HGAINVLCBITS , HGAINMAX ) ;\n if ( code < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"hgain vlc invalid\\n\" ) ;\n return - 1 ;\n }\n val += code - 18 ;\n }\n s -> high_band_values [ ch ] [ i ] = val ;\n }\n }\n }\n }\n }\n if ( ( s -> block_len_bits == s -> frame_len_bits ) || get_bits1 ( & s -> gb ) ) {\n for ( ch = 0 ;\n ch < s -> avctx -> channels ;\n ch ++ ) {\n if ( s -> channel_coded [ ch ] ) {\n if ( s -> use_exp_vlc ) {\n if ( decode_exp_vlc ( s , ch ) < 0 ) return - 1 ;\n }\n else {\n decode_exp_lsp ( s , ch ) ;\n }\n s -> exponents_bsize [ ch ] = bsize ;\n }\n }\n }\n for ( ch = 0 ;\n ch < s -> avctx -> channels ;\n ch ++ ) {\n if ( s -> channel_coded [ ch ] ) {\n int tindex ;\n WMACoef * ptr = & s -> coefs1 [ ch ] [ 0 ] ;\n tindex = ( ch == 1 && s -> ms_stereo ) ;\n memset ( ptr , 0 , s -> block_len * sizeof ( WMACoef ) ) ;\n ff_wma_run_level_decode ( s -> avctx , & s -> gb , & s -> coef_vlc [ tindex ] , s -> level_table [ tindex ] , s -> run_table [ tindex ] , 0 , ptr , 0 , nb_coefs [ ch ] , s -> block_len , s -> frame_len_bits , coef_nb_bits ) ;\n }\n if ( s -> version == 1 && s -> avctx -> channels >= 2 ) {\n align_get_bits ( & s -> gb ) ;\n }\n }\n {\n int n4 = s -> block_len / 2 ;\n mdct_norm = 1.0 / ( float ) n4 ;\n if ( s -> version == 1 ) {\n mdct_norm *= sqrt ( n4 ) ;\n }\n }\n for ( ch = 0 ;\n ch < s -> avctx -> channels ;\n ch ++ ) {\n if ( s -> channel_coded [ ch ] ) {\n WMACoef * coefs1 ;\n float * coefs , * exponents , mult , mult1 , noise ;\n int i , j , n , n1 , last_high_band , esize ;\n float exp_power [ HIGH_BAND_MAX_SIZE ] ;\n coefs1 = s -> coefs1 [ ch ] ;\n exponents = s -> exponents [ ch ] ;\n esize = s -> exponents_bsize [ ch ] ;\n mult = pow ( 10 , total_gain * 0.05 ) / s -> max_exponent [ ch ] ;\n mult *= mdct_norm ;\n coefs = s -> coefs [ ch ] ;\n if ( s -> use_noise_coding ) {\n mult1 = mult ;\n for ( i = 0 ;\n i < s -> coefs_start ;\n i ++ ) {\n * coefs ++ = s -> noise_table [ s -> noise_index ] * exponents [ i << bsize >> esize ] * mult1 ;\n s -> noise_index = ( s -> noise_index + 1 ) & ( NOISE_TAB_SIZE - 1 ) ;\n }\n n1 = s -> exponent_high_sizes [ bsize ] ;\n exponents = s -> exponents [ ch ] + ( s -> high_band_start [ bsize ] << bsize >> esize ) ;\n last_high_band = 0 ;\n for ( j = 0 ;\n j < n1 ;\n j ++ ) {\n n = s -> exponent_high_bands [ s -> frame_len_bits - s -> block_len_bits ] [ j ] ;\n if ( s -> high_band_coded [ ch ] [ j ] ) {\n float e2 , v ;\n e2 = 0 ;\n for ( i = 0 ;\n i < n ;\n i ++ ) {\n v = exponents [ i << bsize >> esize ] ;\n e2 += v * v ;\n }\n exp_power [ j ] = e2 / n ;\n last_high_band = j ;\n tprintf ( s -> avctx , \"%d: power=%f (%d)\\n\" , j , exp_power [ j ] , n ) ;\n }\n exponents += n << bsize >> esize ;\n }\n exponents = s -> exponents [ ch ] + ( s -> coefs_start << bsize >> esize ) ;\n for ( j = - 1 ;\n j < n1 ;\n j ++ ) {\n if ( j < 0 ) {\n n = s -> high_band_start [ bsize ] - s -> coefs_start ;\n }\n else {\n n = s -> exponent_high_bands [ s -> frame_len_bits - s -> block_len_bits ] [ j ] ;\n }\n if ( j >= 0 && s -> high_band_coded [ ch ] [ j ] ) {\n mult1 = sqrt ( exp_power [ j ] / exp_power [ last_high_band ] ) ;\n mult1 = mult1 * pow ( 10 , s -> high_band_values [ ch ] [ j ] * 0.05 ) ;\n mult1 = mult1 / ( s -> max_exponent [ ch ] * s -> noise_mult ) ;\n mult1 *= mdct_norm ;\n for ( i = 0 ;\n i < n ;\n i ++ ) {\n noise = s -> noise_table [ s -> noise_index ] ;\n s -> noise_index = ( s -> noise_index + 1 ) & ( NOISE_TAB_SIZE - 1 ) ;\n * coefs ++ = noise * exponents [ i << bsize >> esize ] * mult1 ;\n }\n exponents += n << bsize >> esize ;\n }\n else {\n for ( i = 0 ;\n i < n ;\n i ++ ) {\n noise = s -> noise_table [ s -> noise_index ] ;\n s -> noise_index = ( s -> noise_index + 1 ) & ( NOISE_TAB_SIZE - 1 ) ;\n * coefs ++ = ( ( * coefs1 ++ ) + noise ) * exponents [ i << bsize >> esize ] * mult ;\n }\n exponents += n << bsize >> esize ;\n }\n }\n n = s -> block_len - s -> coefs_end [ bsize ] ;\n mult1 = mult * exponents [ ( ( - 1 << bsize ) ) >> esize ] ;\n for ( i = 0 ;\n i < n ;\n i ++ ) {\n * coefs ++ = s -> noise_table [ s -> noise_index ] * mult1 ;\n s -> noise_index = ( s -> noise_index + 1 ) & ( NOISE_TAB_SIZE - 1 ) ;\n }\n }\n else {\n for ( i = 0 ;\n i < s -> coefs_start ;\n i ++ ) * coefs ++ = 0.0 ;\n n = nb_coefs [ ch ] ;\n for ( i = 0 ;\n i < n ;\n i ++ ) {\n * coefs ++ = coefs1 [ i ] * exponents [ i << bsize >> esize ] * mult ;\n }\n n = s -> block_len - s -> coefs_end [ bsize ] ;\n for ( i = 0 ;\n i < n ;\n i ++ ) * coefs ++ = 0.0 ;\n }\n }\n }\n # ifdef TRACE for ( ch = 0 ;\n ch < s -> avctx -> channels ;\n ch ++ ) {\n if ( s -> channel_coded [ ch ] ) {\n dump_floats ( s , \"exponents\" , 3 , s -> exponents [ ch ] , s -> block_len ) ;\n dump_floats ( s , \"coefs\" , 1 , s -> coefs [ ch ] , s -> block_len ) ;\n }\n }\n # endif if ( s -> ms_stereo && s -> channel_coded [ 1 ] ) {\n if ( ! s -> channel_coded [ 0 ] ) {\n tprintf ( s -> avctx , \"rare ms-stereo case happened\\n\" ) ;\n memset ( s -> coefs [ 0 ] , 0 , sizeof ( float ) * s -> block_len ) ;\n s -> channel_coded [ 0 ] = 1 ;\n }\n s -> fdsp . butterflies_float ( s -> coefs [ 0 ] , s -> coefs [ 1 ] , s -> block_len ) ;\n }\n next : mdct = & s -> mdct_ctx [ bsize ] ;\n for ( ch = 0 ;\n ch < s -> avctx -> channels ;\n ch ++ ) {\n int n4 , index ;\n n4 = s -> block_len / 2 ;\n if ( s -> channel_coded [ ch ] ) {\n mdct -> imdct_calc ( mdct , s -> output , s -> coefs [ ch ] ) ;\n }\n else if ( ! ( s -> ms_stereo && ch == 1 ) ) memset ( s -> output , 0 , sizeof ( s -> output ) ) ;\n index = ( s -> frame_len / 2 ) + s -> block_pos - n4 ;\n wma_window ( s , & s -> frame_out [ ch ] [ index ] ) ;\n }\n s -> block_num ++ ;\n s -> block_pos += s -> block_len ;\n if ( s -> block_pos >= s -> frame_len ) return 1 ;\n else return 0 ;\n }"}
{"idx": 19272, "target": 0, "func": "TSReturnCode TSMimeHdrFieldRemove ( TSMBuffer bufp , TSMLoc mh_mloc , TSMLoc field_mloc ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( mh_mloc ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( mh_mloc ) == TS_SUCCESS ) ) ;\n sdk_assert ( sdk_sanity_check_field_handle ( field_mloc , mh_mloc ) == TS_SUCCESS ) ;\n if ( ! isWriteable ( bufp ) ) {\n return TS_ERROR ;\n }\n MIMEFieldSDKHandle * field_handle = ( MIMEFieldSDKHandle * ) field_mloc ;\n if ( field_handle -> mh != nullptr ) {\n MIMEHdrImpl * mh = _hdr_mloc_to_mime_hdr_impl ( mh_mloc ) ;\n ink_assert ( mh == field_handle -> mh ) ;\n sdk_sanity_check_field_handle ( field_mloc , mh_mloc ) ;\n mime_hdr_field_detach ( mh , field_handle -> field_ptr , false ) ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 19273, "target": 0, "func": "bool send_ans_key ( node_t * to ) {\n to -> incipher = myself -> incipher ;\n to -> inkeylength = myself -> inkeylength ;\n to -> indigest = myself -> indigest ;\n to -> inmaclength = myself -> inmaclength ;\n to -> incompression = myself -> incompression ;\n to -> inkey = xrealloc ( to -> inkey , to -> inkeylength ) ;\n if ( 1 != RAND_bytes ( ( unsigned char * ) to -> inkey , to -> inkeylength ) ) {\n int err = ERR_get_error ( ) ;\n logger ( LOG_ERR , \"Failed to generate random for key (%s)\" , ERR_error_string ( err , NULL ) ) ;\n return false ;\n }\n if ( to -> incipher ) {\n EVP_DecryptInit_ex ( to -> inctx , to -> incipher , NULL , ( unsigned char * ) to -> inkey , ( unsigned char * ) to -> inkey + EVP_CIPHER_key_length ( to -> incipher ) ) ;\n }\n mykeyused = true ;\n to -> received_seqno = 0 ;\n if ( replaywin ) {\n memset ( to -> late , 0 , replaywin ) ;\n }\n char key [ 2 * to -> inkeylength + 1 ] ;\n bin2hex ( to -> inkey , key , to -> inkeylength ) ;\n key [ to -> inkeylength * 2 ] = '\\0' ;\n return send_request ( to -> nexthop -> connection , \"%d %s %s %s %d %d %d %d\" , ANS_KEY , myself -> name , to -> name , key , to -> incipher ? EVP_CIPHER_nid ( to -> incipher ) : 0 , to -> indigest ? EVP_MD_type ( to -> indigest ) : 0 , to -> inmaclength , to -> incompression ) ;\n }"}
{"idx": 19274, "target": 0, "func": "void PNGAPI png_set_pCAL ( png_structp png_ptr , png_infop info_ptr , png_charp purpose , png_int_32 X0 , png_int_32 X1 , int type , int nparams , png_charp units , png_charpp params ) {\n png_uint_32 length ;\n int i ;\n png_debug1 ( 1 , \"in %s storage function\" , \"pCAL\" ) ;\n if ( png_ptr == NULL || info_ptr == NULL ) return ;\n length = png_strlen ( purpose ) + 1 ;\n png_debug1 ( 3 , \"allocating purpose for info (%lu bytes)\" , ( unsigned long ) length ) ;\n info_ptr -> pcal_purpose = ( png_charp ) png_malloc_warn ( png_ptr , length ) ;\n if ( info_ptr -> pcal_purpose == NULL ) {\n png_warning ( png_ptr , \"Insufficient memory for pCAL purpose.\" ) ;\n return ;\n }\n png_memcpy ( info_ptr -> pcal_purpose , purpose , ( png_size_t ) length ) ;\n png_debug ( 3 , \"storing X0, X1, type, and nparams in info\" ) ;\n info_ptr -> pcal_X0 = X0 ;\n info_ptr -> pcal_X1 = X1 ;\n info_ptr -> pcal_type = ( png_byte ) type ;\n info_ptr -> pcal_nparams = ( png_byte ) nparams ;\n length = png_strlen ( units ) + 1 ;\n png_debug1 ( 3 , \"allocating units for info (%lu bytes)\" , ( unsigned long ) length ) ;\n info_ptr -> pcal_units = ( png_charp ) png_malloc_warn ( png_ptr , length ) ;\n if ( info_ptr -> pcal_units == NULL ) {\n png_warning ( png_ptr , \"Insufficient memory for pCAL units.\" ) ;\n return ;\n }\n png_memcpy ( info_ptr -> pcal_units , units , ( png_size_t ) length ) ;\n info_ptr -> pcal_params = ( png_charpp ) png_malloc_warn ( png_ptr , ( png_uint_32 ) ( ( nparams + 1 ) * png_sizeof ( png_charp ) ) ) ;\n if ( info_ptr -> pcal_params == NULL ) {\n png_warning ( png_ptr , \"Insufficient memory for pCAL params.\" ) ;\n return ;\n }\n png_memset ( info_ptr -> pcal_params , 0 , ( nparams + 1 ) * png_sizeof ( png_charp ) ) ;\n for ( i = 0 ;\n i < nparams ;\n i ++ ) {\n length = png_strlen ( params [ i ] ) + 1 ;\n png_debug2 ( 3 , \"allocating parameter %d for info (%lu bytes)\" , i , ( unsigned long ) length ) ;\n info_ptr -> pcal_params [ i ] = ( png_charp ) png_malloc_warn ( png_ptr , length ) ;\n if ( info_ptr -> pcal_params [ i ] == NULL ) {\n png_warning ( png_ptr , \"Insufficient memory for pCAL parameter.\" ) ;\n return ;\n }\n png_memcpy ( info_ptr -> pcal_params [ i ] , params [ i ] , ( png_size_t ) length ) ;\n }\n info_ptr -> valid |= PNG_INFO_pCAL ;\n # ifdef PNG_FREE_ME_SUPPORTED info_ptr -> free_me |= PNG_FREE_PCAL ;\n # endif }"}
{"idx": 19275, "target": 0, "func": "void var_set_string ( const char * name , const char * value ) {\n var_set ( name , name + strlen ( name ) , value , value + strlen ( value ) ) ;\n }"}
{"idx": 19276, "target": 0, "func": "static void * prplcb_notify_email ( PurpleConnection * gc , const char * subject , const char * from , const char * to , const char * url ) {\n struct im_connection * ic = purple_ic_by_gc ( gc ) ;\n imcb_notify_email ( ic , \"Received e-mail from %s for %s: %s <%s>\" , from , to , subject , url ) ;\n return NULL ;\n }"}
{"idx": 19277, "target": 0, "func": "bool processSQLNamePattern ( PGconn * conn , PQExpBuffer buf , const char * pattern , bool have_where , bool force_escape , const char * schemavar , const char * namevar , const char * altnamevar , const char * visibilityrule ) {\n PQExpBufferData schemabuf ;\n PQExpBufferData namebuf ;\n int encoding = PQclientEncoding ( conn ) ;\n bool inquotes ;\n const char * cp ;\n int i ;\n bool added_clause = false ;\n # define WHEREAND ( ) \\ ( appendPQExpBufferStr ( buf , have_where ? \" AND \" : \"WHERE \" ) , \\ have_where = true , added_clause = true ) if ( pattern == NULL ) {\n if ( visibilityrule ) {\n WHEREAND ( ) ;\n appendPQExpBuffer ( buf , \"%s\\n\" , visibilityrule ) ;\n }\n return added_clause ;\n }\n initPQExpBuffer ( & schemabuf ) ;\n initPQExpBuffer ( & namebuf ) ;\n appendPQExpBufferStr ( & namebuf , \"^(\" ) ;\n inquotes = false ;\n cp = pattern ;\n while ( * cp ) {\n char ch = * cp ;\n if ( ch == '\"' ) {\n if ( inquotes && cp [ 1 ] == '\"' ) {\n appendPQExpBufferChar ( & namebuf , '\"' ) ;\n cp ++ ;\n }\n else inquotes = ! inquotes ;\n cp ++ ;\n }\n else if ( ! inquotes && isupper ( ( unsigned char ) ch ) ) {\n appendPQExpBufferChar ( & namebuf , pg_tolower ( ( unsigned char ) ch ) ) ;\n cp ++ ;\n }\n else if ( ! inquotes && ch == '*' ) {\n appendPQExpBufferStr ( & namebuf , \".*\" ) ;\n cp ++ ;\n }\n else if ( ! inquotes && ch == '?' ) {\n appendPQExpBufferChar ( & namebuf , '.' ) ;\n cp ++ ;\n }\n else if ( ! inquotes && ch == '.' ) {\n resetPQExpBuffer ( & schemabuf ) ;\n appendPQExpBufferStr ( & schemabuf , namebuf . data ) ;\n resetPQExpBuffer ( & namebuf ) ;\n appendPQExpBufferStr ( & namebuf , \"^(\" ) ;\n cp ++ ;\n }\n else if ( ch == '$' ) {\n appendPQExpBufferStr ( & namebuf , \"\\\\$\" ) ;\n cp ++ ;\n }\n else {\n if ( ( inquotes || force_escape ) && strchr ( \"|*+?()[]{\n}\n.^$\\\\\" , ch ) ) appendPQExpBufferChar ( & namebuf , '\\\\' ) ;\n i = PQmblen ( cp , encoding ) ;\n while ( i -- && * cp ) {\n appendPQExpBufferChar ( & namebuf , * cp ) ;\n cp ++ ;\n }\n }\n }\n if ( namebuf . len > 2 ) {\n appendPQExpBufferStr ( & namebuf , \")$\" ) ;\n if ( strcmp ( namebuf . data , \"^(.*)$\" ) != 0 ) {\n WHEREAND ( ) ;\n if ( altnamevar ) {\n appendPQExpBuffer ( buf , \"(%s ~ \" , namevar ) ;\n appendStringLiteralConn ( buf , namebuf . data , conn ) ;\n appendPQExpBuffer ( buf , \"\\n OR %s ~ \" , altnamevar ) ;\n appendStringLiteralConn ( buf , namebuf . data , conn ) ;\n appendPQExpBufferStr ( buf , \")\\n\" ) ;\n }\n else {\n appendPQExpBuffer ( buf , \"%s ~ \" , namevar ) ;\n appendStringLiteralConn ( buf , namebuf . data , conn ) ;\n appendPQExpBufferChar ( buf , '\\n' ) ;\n }\n }\n }\n if ( schemabuf . len > 2 ) {\n appendPQExpBufferStr ( & schemabuf , \")$\" ) ;\n if ( strcmp ( schemabuf . data , \"^(.*)$\" ) != 0 && schemavar ) {\n WHEREAND ( ) ;\n appendPQExpBuffer ( buf , \"%s ~ \" , schemavar ) ;\n appendStringLiteralConn ( buf , schemabuf . data , conn ) ;\n appendPQExpBufferChar ( buf , '\\n' ) ;\n }\n }\n else {\n if ( visibilityrule ) {\n WHEREAND ( ) ;\n appendPQExpBuffer ( buf , \"%s\\n\" , visibilityrule ) ;\n }\n }\n termPQExpBuffer ( & schemabuf ) ;\n termPQExpBuffer ( & namebuf ) ;\n return added_clause ;\n # undef WHEREAND }"}
{"idx": 19278, "target": 0, "func": "static int dissect_h245_H2250LogicalChannelParameters ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_H2250LogicalChannelParameters , H2250LogicalChannelParameters_sequence ) ;\n return offset ;\n }"}
{"idx": 19279, "target": 0, "func": "static UConverter * U_CALLCONV _LMBCSSafeClone ( const UConverter * cnv , void * stackBuffer , int32_t * pBufferSize , UErrorCode * status ) {\n ( void ) status ;\n LMBCSClone * newLMBCS ;\n UConverterDataLMBCS * extraInfo ;\n int32_t i ;\n if ( * pBufferSize <= 0 ) {\n * pBufferSize = ( int32_t ) sizeof ( LMBCSClone ) ;\n return NULL ;\n }\n extraInfo = ( UConverterDataLMBCS * ) cnv -> extraInfo ;\n newLMBCS = ( LMBCSClone * ) stackBuffer ;\n uprv_memcpy ( & newLMBCS -> lmbcs , extraInfo , sizeof ( UConverterDataLMBCS ) ) ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST ;\n ++ i ) {\n if ( extraInfo -> OptGrpConverter [ i ] != NULL ) {\n ucnv_incrementRefCount ( extraInfo -> OptGrpConverter [ i ] ) ;\n }\n }\n newLMBCS -> cnv . extraInfo = & newLMBCS -> lmbcs ;\n newLMBCS -> cnv . isExtraLocal = TRUE ;\n return & newLMBCS -> cnv ;\n }"}
{"idx": 19280, "target": 1, "func": "static int32_t u_printf_uchar_handler ( const u_printf_stream_handler * handler , void * context , ULocaleBundle * formatBundle , const u_printf_spec_info * info , const ufmt_args * args ) {\n int32_t written = 0 ;\n UChar arg = ( UChar ) ( args [ 0 ] . int64Value ) ;\n written = handler -> pad_and_justify ( context , info , & arg , 1 ) ;\n return written ;\n }"}
{"idx": 19281, "target": 0, "func": "static inline int compute_score2 ( struct sock * sk , struct net * net , const struct in6_addr * saddr , __be16 sport , const struct in6_addr * daddr , unsigned short hnum , int dif ) {\n int score = - 1 ;\n if ( net_eq ( sock_net ( sk ) , net ) && udp_sk ( sk ) -> udp_port_hash == hnum && sk -> sk_family == PF_INET6 ) {\n struct ipv6_pinfo * np = inet6_sk ( sk ) ;\n struct inet_sock * inet = inet_sk ( sk ) ;\n if ( ! ipv6_addr_equal ( & np -> rcv_saddr , daddr ) ) return - 1 ;\n score = 0 ;\n if ( inet -> inet_dport ) {\n if ( inet -> inet_dport != sport ) return - 1 ;\n score ++ ;\n }\n if ( ! ipv6_addr_any ( & np -> daddr ) ) {\n if ( ! ipv6_addr_equal ( & np -> daddr , saddr ) ) return - 1 ;\n score ++ ;\n }\n if ( sk -> sk_bound_dev_if ) {\n if ( sk -> sk_bound_dev_if != dif ) return - 1 ;\n score ++ ;\n }\n }\n return score ;\n }"}
{"idx": 19282, "target": 0, "func": "static void pushio ( IO * wrapper , FILE * ps , char * macro , int cnt ) {\n _IO * io = calloc ( 1 , sizeof ( _IO ) ) ;\n io -> prev = wrapper -> top ;\n io -> ps = ps ;\n io -> macro = io -> start = copy ( macro ) ;\n io -> backedup = EOF ;\n if ( cnt == - 1 ) {\n io -> cnt = 1 ;\n io -> isstopped = true ;\n }\n else if ( cnt == 0 ) {\n io -> cnt = 1 ;\n io -> isloop = false ;\n }\n else {\n io -> cnt = cnt ;\n io -> isloop = true ;\n }\n wrapper -> top = io ;\n }"}
{"idx": 19283, "target": 0, "func": "static int jpc_calcssmant ( jpc_fix_t stepsize ) {\n int n ;\n int e ;\n int m ;\n n = jpc_firstone ( stepsize ) ;\n e = n - JPC_FIX_FRACBITS ;\n if ( n >= 11 ) {\n m = ( stepsize >> ( n - 11 ) ) & 0x7ff ;\n }\n else {\n m = ( stepsize & ( ( 1 << n ) - 1 ) ) << ( 11 - n ) ;\n }\n return m ;\n }"}
{"idx": 19284, "target": 0, "func": "TEST_F ( ExternalProtocolHandlerTest , DISABLED_TestLaunchSchemeUnBlockedChromeOtherModeDefault ) {\n DoTest ( ExternalProtocolHandler : : DONT_BLOCK , shell_integration : : OTHER_MODE_IS_DEFAULT , Action : : LAUNCH ) ;\n }"}
{"idx": 19285, "target": 0, "func": "static void evhttp_request_dispatch ( struct evhttp_connection * evcon ) {\n struct evhttp_request * req = TAILQ_FIRST ( & evcon -> requests ) ;\n if ( req == NULL ) return ;\n evhttp_connection_stop_detectclose ( evcon ) ;\n assert ( evcon -> state == EVCON_IDLE ) ;\n evcon -> state = EVCON_WRITING ;\n evhttp_make_header ( evcon , req ) ;\n evhttp_write_buffer ( evcon , evhttp_write_connectioncb , NULL ) ;\n }"}
{"idx": 19286, "target": 0, "func": "static void create_watching_parent ( void ) {\n pid_t child ;\n sigset_t ourset ;\n struct sigaction oldact [ 3 ] ;\n int status = 0 ;\n int retval ;\n retval = pam_open_session ( pamh , 0 ) ;\n if ( is_pam_failure ( retval ) ) {\n cleanup_pam ( retval ) ;\n errx ( EXIT_FAILURE , _ ( \"cannot open session: %s\" ) , pam_strerror ( pamh , retval ) ) ;\n }\n else _pam_session_opened = 1 ;\n memset ( oldact , 0 , sizeof ( oldact ) ) ;\n child = fork ( ) ;\n if ( child == ( pid_t ) - 1 ) {\n cleanup_pam ( PAM_ABORT ) ;\n err ( EXIT_FAILURE , _ ( \"cannot create child process\" ) ) ;\n }\n if ( child == 0 ) return ;\n if ( chdir ( \"/\" ) != 0 ) warn ( _ ( \"cannot change directory to %s\" ) , \"/\" ) ;\n sigfillset ( & ourset ) ;\n if ( sigprocmask ( SIG_BLOCK , & ourset , NULL ) ) {\n warn ( _ ( \"cannot block signals\" ) ) ;\n caught_signal = true ;\n }\n if ( ! caught_signal ) {\n struct sigaction action ;\n action . sa_handler = su_catch_sig ;\n sigemptyset ( & action . sa_mask ) ;\n action . sa_flags = 0 ;\n sigemptyset ( & ourset ) ;\n if ( ! same_session ) {\n if ( sigaddset ( & ourset , SIGINT ) || sigaddset ( & ourset , SIGQUIT ) ) {\n warn ( _ ( \"cannot set signal handler\" ) ) ;\n caught_signal = true ;\n }\n }\n if ( ! caught_signal && ( sigaddset ( & ourset , SIGTERM ) || sigaddset ( & ourset , SIGALRM ) || sigaction ( SIGTERM , & action , & oldact [ 0 ] ) || sigprocmask ( SIG_UNBLOCK , & ourset , NULL ) ) ) {\n warn ( _ ( \"cannot set signal handler\" ) ) ;\n caught_signal = true ;\n }\n if ( ! caught_signal && ! same_session && ( sigaction ( SIGINT , & action , & oldact [ 1 ] ) || sigaction ( SIGQUIT , & action , & oldact [ 2 ] ) ) ) {\n warn ( _ ( \"cannot set signal handler\" ) ) ;\n caught_signal = true ;\n }\n }\n if ( ! caught_signal ) {\n pid_t pid ;\n for ( ;\n ;\n ) {\n pid = waitpid ( child , & status , WUNTRACED ) ;\n if ( pid != ( pid_t ) - 1 && WIFSTOPPED ( status ) ) {\n kill ( getpid ( ) , SIGSTOP ) ;\n kill ( pid , SIGCONT ) ;\n }\n else break ;\n }\n if ( pid != ( pid_t ) - 1 ) {\n if ( WIFSIGNALED ( status ) ) {\n fprintf ( stderr , \"%s%s\\n\" , strsignal ( WTERMSIG ( status ) ) , WCOREDUMP ( status ) ? _ ( \" (core dumped)\" ) : \"\" ) ;\n status = WTERMSIG ( status ) + 128 ;\n }\n else status = WEXITSTATUS ( status ) ;\n child = ( pid_t ) - 1 ;\n }\n else if ( caught_signal ) status = caught_signal + 128 ;\n else status = 1 ;\n }\n else status = 1 ;\n if ( caught_signal && child != ( pid_t ) - 1 ) {\n fprintf ( stderr , _ ( \"\\nSession terminated, killing shell...\" ) ) ;\n kill ( child , SIGTERM ) ;\n }\n cleanup_pam ( PAM_SUCCESS ) ;\n if ( caught_signal ) {\n if ( child != ( pid_t ) - 1 ) {\n sleep ( 2 ) ;\n kill ( child , SIGKILL ) ;\n fprintf ( stderr , _ ( \" ...killed.\\n\" ) ) ;\n }\n switch ( caught_signal ) {\n case SIGTERM : sigaction ( SIGTERM , & oldact [ 0 ] , NULL ) ;\n break ;\n case SIGINT : sigaction ( SIGINT , & oldact [ 1 ] , NULL ) ;\n break ;\n case SIGQUIT : sigaction ( SIGQUIT , & oldact [ 2 ] , NULL ) ;\n break ;\n default : caught_signal = SIGKILL ;\n break ;\n }\n kill ( getpid ( ) , caught_signal ) ;\n }\n exit ( status ) ;\n }"}
{"idx": 19287, "target": 0, "func": "gcry_error_t gcry_sexp_build ( gcry_sexp_t * retsexp , size_t * erroff , const char * format , ... ) {\n gcry_error_t rc ;\n va_list arg_ptr ;\n va_start ( arg_ptr , format ) ;\n rc = vsexp_sscan ( retsexp , erroff , format , strlen ( format ) , 1 , NULL , arg_ptr ) ;\n va_end ( arg_ptr ) ;\n return rc ;\n }"}
{"idx": 19288, "target": 0, "func": "static void _slurm_rpc_composite_msg ( slurm_msg_t * msg ) {\n static time_t config_update = 0 ;\n static bool defer_sched = false ;\n static int sched_timeout = 0 ;\n static int active_rpc_cnt = 0 ;\n struct timeval start_tv ;\n bool run_scheduler = false ;\n composite_msg_t * comp_msg , comp_resp_msg ;\n slurmctld_lock_t job_write_lock = {\n READ_LOCK , WRITE_LOCK , WRITE_LOCK , NO_LOCK , READ_LOCK }\n ;\n memset ( & comp_resp_msg , 0 , sizeof ( composite_msg_t ) ) ;\n comp_resp_msg . msg_list = list_create ( _slurmctld_free_comp_msg_list ) ;\n comp_msg = ( composite_msg_t * ) msg -> data ;\n if ( slurmctld_conf . debug_flags & DEBUG_FLAG_ROUTE ) info ( \"Processing RPC: MESSAGE_COMPOSITE msg with %d messages\" , comp_msg -> msg_list ? list_count ( comp_msg -> msg_list ) : 0 ) ;\n if ( config_update != slurmctld_conf . last_update ) {\n char * sched_params = slurm_get_sched_params ( ) ;\n int time_limit ;\n char * tmp_ptr ;\n defer_sched = ( sched_params && strstr ( sched_params , \"defer\" ) ) ;\n time_limit = slurm_get_msg_timeout ( ) / 2 ;\n if ( sched_params && ( tmp_ptr = strstr ( sched_params , \"max_sched_time=\" ) ) ) {\n sched_timeout = atoi ( tmp_ptr + 15 ) ;\n if ( ( sched_timeout <= 0 ) || ( sched_timeout > time_limit ) ) {\n error ( \"Invalid max_sched_time: %d\" , sched_timeout ) ;\n sched_timeout = 0 ;\n }\n }\n if ( sched_timeout == 0 ) {\n sched_timeout = MAX ( time_limit , 1 ) ;\n sched_timeout = MIN ( sched_timeout , 2 ) ;\n sched_timeout *= 1000000 ;\n }\n xfree ( sched_params ) ;\n config_update = slurmctld_conf . last_update ;\n }\n _throttle_start ( & active_rpc_cnt ) ;\n lock_slurmctld ( job_write_lock ) ;\n gettimeofday ( & start_tv , NULL ) ;\n _slurm_rpc_comp_msg_list ( comp_msg , & run_scheduler , comp_resp_msg . msg_list , & start_tv , sched_timeout ) ;\n unlock_slurmctld ( job_write_lock ) ;\n _throttle_fini ( & active_rpc_cnt ) ;\n if ( list_count ( comp_resp_msg . msg_list ) ) {\n slurm_msg_t resp_msg ;\n slurm_msg_t_init ( & resp_msg ) ;\n resp_msg . flags = msg -> flags ;\n resp_msg . protocol_version = msg -> protocol_version ;\n memcpy ( & resp_msg . address , & comp_msg -> sender , sizeof ( slurm_addr_t ) ) ;\n resp_msg . msg_type = RESPONSE_MESSAGE_COMPOSITE ;\n resp_msg . data = & comp_resp_msg ;\n slurm_send_only_node_msg ( & resp_msg ) ;\n }\n FREE_NULL_LIST ( comp_resp_msg . msg_list ) ;\n if ( run_scheduler ) {\n if ( ! LOTS_OF_AGENTS && ! defer_sched ) ( void ) schedule ( 0 ) ;\n schedule_node_save ( ) ;\n schedule_job_save ( ) ;\n }\n }"}
{"idx": 19289, "target": 0, "func": "static void gpgsm_release ( void * engine ) {\n engine_gpgsm_t gpgsm = engine ;\n if ( ! gpgsm ) return ;\n gpgsm_cancel ( engine ) ;\n free ( gpgsm -> colon . attic . line ) ;\n free ( gpgsm ) ;\n }"}
{"idx": 19290, "target": 0, "func": "static void evtag_fuzz ( void ) {\n u_char buffer [ 4096 ] ;\n struct evbuffer * tmp = evbuffer_new ( ) ;\n struct timeval tv ;\n int i , j ;\n int not_failed = 0 ;\n for ( j = 0 ;\n j < 100 ;\n j ++ ) {\n for ( i = 0 ;\n i < sizeof ( buffer ) ;\n i ++ ) buffer [ i ] = rand ( ) ;\n evbuffer_drain ( tmp , - 1 ) ;\n evbuffer_add ( tmp , buffer , sizeof ( buffer ) ) ;\n if ( evtag_unmarshal_timeval ( tmp , 0 , & tv ) != - 1 ) not_failed ++ ;\n }\n if ( not_failed >= 10 ) {\n fprintf ( stderr , \"evtag_unmarshal should have failed\" ) ;\n exit ( 1 ) ;\n }\n evbuffer_drain ( tmp , - 1 ) ;\n evutil_timerclear ( & tv ) ;\n tv . tv_sec = 1 ;\n evtag_marshal_timeval ( tmp , 0 , & tv ) ;\n evbuffer_add ( tmp , buffer , sizeof ( buffer ) ) ;\n EVBUFFER_DATA ( tmp ) [ 1 ] = 0xff ;\n if ( evtag_unmarshal_timeval ( tmp , 0 , & tv ) != - 1 ) {\n fprintf ( stderr , \"evtag_unmarshal_timeval should have failed\" ) ;\n exit ( 1 ) ;\n }\n evbuffer_free ( tmp ) ;\n fprintf ( stdout , \"\\t%s: OK\\n\" , __func__ ) ;\n }"}
{"idx": 19291, "target": 0, "func": "void gtkui_show_connections ( void ) {\n GtkWidget * scrolled , * vbox , * items , * hbox , * button , * tbox ;\n GtkWidget * context_menu , * frame , * entry , * chkb_tcp , * chkb_udp , * chkb_other ;\n GtkWidget * chkb_active , * chkb_idle , * chkb_closing , * chkb_closed , * chkb_killed ;\n GtkTreeModel * model ;\n GtkToolItem * toolbutton ;\n GtkCellRenderer * renderer ;\n GtkTreeViewColumn * column ;\n DEBUG_MSG ( \"gtk_show_connections\" ) ;\n if ( conns_window ) {\n if ( GTK_IS_WINDOW ( conns_window ) ) gtk_window_present ( GTK_WINDOW ( conns_window ) ) ;\n else gtkui_page_present ( conns_window ) ;\n return ;\n }\n conns_window = gtkui_page_new ( \"Connections\" , & gtkui_kill_connections , & gtkui_connections_detach ) ;\n vbox = gtkui_box_new ( GTK_ORIENTATION_VERTICAL , 0 , FALSE ) ;\n gtk_container_add ( GTK_CONTAINER ( conns_window ) , vbox ) ;\n gtk_widget_show ( vbox ) ;\n hbox = gtkui_box_new ( GTK_ORIENTATION_HORIZONTAL , 10 , FALSE ) ;\n gtk_box_pack_start ( GTK_BOX ( vbox ) , hbox , FALSE , FALSE , 0 ) ;\n frame = gtk_frame_new ( \"Host filter\" ) ;\n tbox = gtkui_box_new ( GTK_ORIENTATION_HORIZONTAL , 0 , FALSE ) ;\n gtk_container_add ( GTK_CONTAINER ( frame ) , tbox ) ;\n entry = gtk_entry_new ( ) ;\n g_signal_connect ( G_OBJECT ( entry ) , \"activate\" , G_CALLBACK ( set_connfilter_host ) , NULL ) ;\n gtk_box_pack_start ( GTK_BOX ( tbox ) , entry , FALSE , FALSE , 5 ) ;\n toolbutton = gtk_tool_button_new_from_stock ( GTK_STOCK_APPLY ) ;\n g_signal_connect_swapped ( G_OBJECT ( toolbutton ) , \"clicked\" , G_CALLBACK ( set_connfilter_host ) , entry ) ;\n gtk_box_pack_start ( GTK_BOX ( tbox ) , GTK_WIDGET ( toolbutton ) , FALSE , FALSE , 5 ) ;\n filter . host = NULL ;\n gtk_box_pack_start ( GTK_BOX ( hbox ) , frame , FALSE , FALSE , 0 ) ;\n frame = gtk_frame_new ( \"Protocol filter\" ) ;\n tbox = gtkui_box_new ( GTK_ORIENTATION_HORIZONTAL , 0 , FALSE ) ;\n gtk_container_add ( GTK_CONTAINER ( frame ) , tbox ) ;\n chkb_tcp = gtk_check_button_new_with_label ( \"TCP\" ) ;\n gtk_toggle_button_set_active ( GTK_TOGGLE_BUTTON ( chkb_tcp ) , TRUE ) ;\n filter . tcp = TRUE ;\n g_signal_connect ( G_OBJECT ( chkb_tcp ) , \"toggled\" , G_CALLBACK ( set_connfilter ) , & filter . tcp ) ;\n gtk_box_pack_start ( GTK_BOX ( tbox ) , chkb_tcp , FALSE , FALSE , 5 ) ;\n chkb_udp = gtk_check_button_new_with_label ( \"UDP\" ) ;\n gtk_toggle_button_set_active ( GTK_TOGGLE_BUTTON ( chkb_udp ) , TRUE ) ;\n filter . udp = TRUE ;\n g_signal_connect ( G_OBJECT ( chkb_udp ) , \"toggled\" , G_CALLBACK ( set_connfilter ) , & filter . udp ) ;\n gtk_box_pack_start ( GTK_BOX ( tbox ) , chkb_udp , FALSE , FALSE , 5 ) ;\n chkb_other = gtk_check_button_new_with_label ( \"Other\" ) ;\n gtk_toggle_button_set_active ( GTK_TOGGLE_BUTTON ( chkb_other ) , TRUE ) ;\n filter . other = TRUE ;\n g_signal_connect ( G_OBJECT ( chkb_other ) , \"toggled\" , G_CALLBACK ( set_connfilter ) , & filter . other ) ;\n gtk_box_pack_start ( GTK_BOX ( tbox ) , chkb_other , FALSE , FALSE , 5 ) ;\n gtk_box_pack_start ( GTK_BOX ( hbox ) , frame , FALSE , FALSE , 0 ) ;\n frame = gtk_frame_new ( \"Connection state filter\" ) ;\n tbox = gtkui_box_new ( GTK_ORIENTATION_HORIZONTAL , 0 , FALSE ) ;\n gtk_container_add ( GTK_CONTAINER ( frame ) , tbox ) ;\n chkb_active = gtk_check_button_new_with_label ( \"Active\" ) ;\n gtk_toggle_button_set_active ( GTK_TOGGLE_BUTTON ( chkb_active ) , TRUE ) ;\n filter . active = TRUE ;\n g_signal_connect ( G_OBJECT ( chkb_active ) , \"toggled\" , G_CALLBACK ( set_connfilter ) , & filter . active ) ;\n gtk_box_pack_start ( GTK_BOX ( tbox ) , chkb_active , FALSE , FALSE , 5 ) ;\n chkb_idle = gtk_check_button_new_with_label ( \"Idle\" ) ;\n gtk_toggle_button_set_active ( GTK_TOGGLE_BUTTON ( chkb_idle ) , TRUE ) ;\n filter . idle = TRUE ;\n g_signal_connect ( G_OBJECT ( chkb_idle ) , \"toggled\" , G_CALLBACK ( set_connfilter ) , & filter . idle ) ;\n gtk_box_pack_start ( GTK_BOX ( tbox ) , chkb_idle , FALSE , FALSE , 5 ) ;\n chkb_closing = gtk_check_button_new_with_label ( \"Closing\" ) ;\n gtk_toggle_button_set_active ( GTK_TOGGLE_BUTTON ( chkb_closing ) , TRUE ) ;\n filter . closing = TRUE ;\n g_signal_connect ( G_OBJECT ( chkb_closing ) , \"toggled\" , G_CALLBACK ( set_connfilter ) , & filter . closing ) ;\n gtk_box_pack_start ( GTK_BOX ( tbox ) , chkb_closing , FALSE , FALSE , 5 ) ;\n chkb_closed = gtk_check_button_new_with_label ( \"Closed\" ) ;\n gtk_toggle_button_set_active ( GTK_TOGGLE_BUTTON ( chkb_closed ) , TRUE ) ;\n filter . closed = TRUE ;\n g_signal_connect ( G_OBJECT ( chkb_closed ) , \"toggled\" , G_CALLBACK ( set_connfilter ) , & filter . closed ) ;\n gtk_box_pack_start ( GTK_BOX ( tbox ) , chkb_closed , FALSE , FALSE , 5 ) ;\n chkb_killed = gtk_check_button_new_with_label ( \"Killed\" ) ;\n gtk_toggle_button_set_active ( GTK_TOGGLE_BUTTON ( chkb_killed ) , TRUE ) ;\n filter . killed = TRUE ;\n g_signal_connect ( G_OBJECT ( chkb_killed ) , \"toggled\" , G_CALLBACK ( set_connfilter ) , & filter . killed ) ;\n gtk_box_pack_start ( GTK_BOX ( tbox ) , chkb_killed , FALSE , FALSE , 5 ) ;\n gtk_box_pack_start ( GTK_BOX ( hbox ) , frame , FALSE , FALSE , 0 ) ;\n gtk_widget_show_all ( hbox ) ;\n scrolled = gtk_scrolled_window_new ( NULL , NULL ) ;\n gtk_scrolled_window_set_policy ( GTK_SCROLLED_WINDOW ( scrolled ) , GTK_POLICY_AUTOMATIC , GTK_POLICY_AUTOMATIC ) ;\n gtk_scrolled_window_set_shadow_type ( GTK_SCROLLED_WINDOW ( scrolled ) , GTK_SHADOW_IN ) ;\n gtk_box_pack_start ( GTK_BOX ( vbox ) , scrolled , TRUE , TRUE , 0 ) ;\n gtk_widget_show ( scrolled ) ;\n treeview = gtk_tree_view_new ( ) ;\n gtk_container_add ( GTK_CONTAINER ( scrolled ) , treeview ) ;\n gtk_widget_show ( treeview ) ;\n selection = gtk_tree_view_get_selection ( GTK_TREE_VIEW ( treeview ) ) ;\n gtk_tree_selection_set_mode ( selection , GTK_SELECTION_SINGLE ) ;\n g_signal_connect ( G_OBJECT ( treeview ) , \"row_activated\" , G_CALLBACK ( gtkui_connection_data ) , NULL ) ;\n renderer = gtk_cell_renderer_text_new ( ) ;\n column = gtk_tree_view_column_new_with_attributes ( \" \" , renderer , \"text\" , 0 , NULL ) ;\n gtk_tree_view_column_set_sort_column_id ( column , 0 ) ;\n gtk_tree_view_append_column ( GTK_TREE_VIEW ( treeview ) , column ) ;\n renderer = gtk_cell_renderer_text_new ( ) ;\n column = gtk_tree_view_column_new_with_attributes ( \"Host \" , renderer , \"text\" , 1 , NULL ) ;\n gtk_tree_view_column_set_sort_column_id ( column , 1 ) ;\n gtk_tree_view_append_column ( GTK_TREE_VIEW ( treeview ) , column ) ;\n renderer = gtk_cell_renderer_text_new ( ) ;\n column = gtk_tree_view_column_new_with_attributes ( \"Port\" , renderer , \"text\" , 2 , NULL ) ;\n gtk_tree_view_column_set_sort_column_id ( column , 2 ) ;\n gtk_tree_view_append_column ( GTK_TREE_VIEW ( treeview ) , column ) ;\n renderer = gtk_cell_renderer_text_new ( ) ;\n column = gtk_tree_view_column_new_with_attributes ( \"-\" , renderer , \"text\" , 3 , NULL ) ;\n gtk_tree_view_append_column ( GTK_TREE_VIEW ( treeview ) , column ) ;\n renderer = gtk_cell_renderer_text_new ( ) ;\n column = gtk_tree_view_column_new_with_attributes ( \"Host \" , renderer , \"text\" , 4 , NULL ) ;\n gtk_tree_view_column_set_sort_column_id ( column , 4 ) ;\n gtk_tree_view_append_column ( GTK_TREE_VIEW ( treeview ) , column ) ;\n renderer = gtk_cell_renderer_text_new ( ) ;\n column = gtk_tree_view_column_new_with_attributes ( \"Port\" , renderer , \"text\" , 5 , NULL ) ;\n gtk_tree_view_column_set_sort_column_id ( column , 5 ) ;\n gtk_tree_view_append_column ( GTK_TREE_VIEW ( treeview ) , column ) ;\n renderer = gtk_cell_renderer_text_new ( ) ;\n column = gtk_tree_view_column_new_with_attributes ( \"Proto\" , renderer , \"text\" , 6 , NULL ) ;\n gtk_tree_view_column_set_sort_column_id ( column , 6 ) ;\n gtk_tree_view_append_column ( GTK_TREE_VIEW ( treeview ) , column ) ;\n renderer = gtk_cell_renderer_text_new ( ) ;\n column = gtk_tree_view_column_new_with_attributes ( \"State\" , renderer , \"text\" , 7 , NULL ) ;\n gtk_tree_view_column_set_sort_column_id ( column , 7 ) ;\n gtk_tree_view_append_column ( GTK_TREE_VIEW ( treeview ) , column ) ;\n renderer = gtk_cell_renderer_text_new ( ) ;\n column = gtk_tree_view_column_new_with_attributes ( \"TX Bytes\" , renderer , \"text\" , 8 , NULL ) ;\n gtk_tree_view_column_set_sort_column_id ( column , 8 ) ;\n gtk_tree_view_append_column ( GTK_TREE_VIEW ( treeview ) , column ) ;\n renderer = gtk_cell_renderer_text_new ( ) ;\n column = gtk_tree_view_column_new_with_attributes ( \"RX Bytes\" , renderer , \"text\" , 9 , NULL ) ;\n gtk_tree_view_column_set_sort_column_id ( column , 9 ) ;\n gtk_tree_view_append_column ( GTK_TREE_VIEW ( treeview ) , column ) ;\n # ifdef WITH_GEOIP renderer = gtk_cell_renderer_text_new ( ) ;\n column = gtk_tree_view_column_new_with_attributes ( \"Countries\" , renderer , \"text\" , 10 , NULL ) ;\n gtk_tree_view_column_set_sort_column_id ( column , 10 ) ;\n gtk_tree_view_append_column ( GTK_TREE_VIEW ( treeview ) , column ) ;\n # endif hbox = gtkui_box_new ( GTK_ORIENTATION_HORIZONTAL , 5 , TRUE ) ;\n gtk_box_pack_start ( GTK_BOX ( vbox ) , hbox , FALSE , FALSE , 0 ) ;\n gtk_widget_show ( hbox ) ;\n button = gtk_button_new_with_mnemonic ( \"View _Details\" ) ;\n g_signal_connect ( G_OBJECT ( button ) , \"clicked\" , G_CALLBACK ( gtkui_connection_detail ) , NULL ) ;\n gtk_box_pack_start ( GTK_BOX ( hbox ) , button , TRUE , TRUE , 0 ) ;\n gtk_widget_show ( button ) ;\n button = gtk_button_new_with_mnemonic ( \"_Kill Connection\" ) ;\n g_signal_connect ( G_OBJECT ( button ) , \"clicked\" , G_CALLBACK ( gtkui_connection_kill ) , NULL ) ;\n gtk_box_pack_start ( GTK_BOX ( hbox ) , button , TRUE , TRUE , 0 ) ;\n gtk_widget_show ( button ) ;\n button = gtk_button_new_with_mnemonic ( \"E_xpunge Connections\" ) ;\n g_signal_connect ( G_OBJECT ( button ) , \"clicked\" , G_CALLBACK ( gtkui_connection_purge ) , NULL ) ;\n gtk_box_pack_start ( GTK_BOX ( hbox ) , button , TRUE , TRUE , 0 ) ;\n gtk_widget_show ( button ) ;\n context_menu = gtk_menu_new ( ) ;\n items = gtk_menu_item_new_with_label ( \"View Details\" ) ;\n gtk_menu_shell_append ( GTK_MENU_SHELL ( context_menu ) , items ) ;\n g_signal_connect ( G_OBJECT ( items ) , \"activate\" , G_CALLBACK ( gtkui_connection_detail ) , NULL ) ;\n gtk_widget_show ( items ) ;\n items = gtk_menu_item_new_with_label ( \"Kill Connection\" ) ;\n gtk_menu_shell_append ( GTK_MENU_SHELL ( context_menu ) , items ) ;\n g_signal_connect ( G_OBJECT ( items ) , \"activate\" , G_CALLBACK ( gtkui_connection_kill ) , NULL ) ;\n gtk_widget_show ( items ) ;\n g_signal_connect ( G_OBJECT ( treeview ) , \"button-press-event\" , G_CALLBACK ( gtkui_context_menu ) , context_menu ) ;\n refresh_connections ( NULL ) ;\n filter . model = gtk_tree_model_filter_new ( GTK_TREE_MODEL ( ls_conns ) , NULL ) ;\n gtk_tree_model_filter_set_visible_func ( GTK_TREE_MODEL_FILTER ( filter . model ) , ( GtkTreeModelFilterVisibleFunc ) connfilter , NULL , NULL ) ;\n model = gtk_tree_model_sort_new_with_model ( filter . model ) ;\n gtk_tree_view_set_model ( GTK_TREE_VIEW ( treeview ) , model ) ;\n connections_idle = g_timeout_add ( 1000 , refresh_connections , NULL ) ;\n gtk_widget_show ( conns_window ) ;\n }"}
{"idx": 19292, "target": 0, "func": "static int ffmpeg_GetFrameBuf ( struct AVCodecContext * p_context , AVFrame * p_ff_pic ) {\n decoder_t * p_dec = ( decoder_t * ) p_context -> opaque ;\n decoder_sys_t * p_sys = p_dec -> p_sys ;\n p_ff_pic -> opaque = NULL ;\n # if ! LIBAVCODEC_VERSION_CHECK ( 54 , 34 , 0 , 79 , 101 ) p_ff_pic -> pkt_pts = p_context -> pkt ? p_context -> pkt -> pts : AV_NOPTS_VALUE ;\n # endif # if LIBAVCODEC_VERSION_MAJOR < 54 p_ff_pic -> age = 256 * 256 * 256 * 64 ;\n # endif if ( p_sys -> p_va ) return ffmpeg_va_GetFrameBuf ( p_context , p_ff_pic ) ;\n if ( ! p_sys -> b_direct_rendering ) return avcodec_default_get_buffer ( p_context , p_ff_pic ) ;\n wait_mt ( p_sys ) ;\n picture_t * p_pic = ffmpeg_dr_GetFrameBuf ( p_context ) ;\n if ( ! p_pic ) {\n if ( p_sys -> i_direct_rendering_used != 0 ) {\n msg_Warn ( p_dec , \"disabling direct rendering\" ) ;\n p_sys -> i_direct_rendering_used = 0 ;\n }\n post_mt ( p_sys ) ;\n return avcodec_default_get_buffer ( p_context , p_ff_pic ) ;\n }\n if ( p_sys -> i_direct_rendering_used != 1 ) {\n msg_Dbg ( p_dec , \"using direct rendering\" ) ;\n p_sys -> i_direct_rendering_used = 1 ;\n }\n p_context -> draw_horiz_band = NULL ;\n post_mt ( p_sys ) ;\n p_ff_pic -> opaque = ( void * ) p_pic ;\n p_ff_pic -> type = FF_BUFFER_TYPE_USER ;\n p_ff_pic -> data [ 0 ] = p_pic -> p [ 0 ] . p_pixels ;\n p_ff_pic -> data [ 1 ] = p_pic -> p [ 1 ] . p_pixels ;\n p_ff_pic -> data [ 2 ] = p_pic -> p [ 2 ] . p_pixels ;\n p_ff_pic -> data [ 3 ] = NULL ;\n p_ff_pic -> linesize [ 0 ] = p_pic -> p [ 0 ] . i_pitch ;\n p_ff_pic -> linesize [ 1 ] = p_pic -> p [ 1 ] . i_pitch ;\n p_ff_pic -> linesize [ 2 ] = p_pic -> p [ 2 ] . i_pitch ;\n p_ff_pic -> linesize [ 3 ] = 0 ;\n return 0 ;\n }"}
{"idx": 19293, "target": 1, "func": "void ff_release_unused_pictures ( MpegEncContext * s , int remove_current ) {\n int i ;\n for ( i = 0 ;\n i < s -> picture_count ;\n i ++ ) {\n if ( s -> picture [ i ] . f . data [ 0 ] && ! s -> picture [ i ] . f . reference && ( ! s -> picture [ i ] . owner2 || s -> picture [ i ] . owner2 == s ) && ( remove_current || & s -> picture [ i ] != s -> current_picture_ptr ) ) {\n free_frame_buffer ( s , & s -> picture [ i ] ) ;\n }\n }\n }"}
{"idx": 19294, "target": 0, "func": "static void cookedprint ( int datatype , int length , const char * data , int status , int quiet , FILE * fp ) {\n char * name ;\n char * value ;\n char output_raw ;\n int fmt ;\n l_fp lfp ;\n sockaddr_u hval ;\n u_long uval ;\n int narr ;\n size_t len ;\n l_fp lfparr [ 8 ] ;\n char b [ 12 ] ;\n char bn [ 2 * MAXVARLEN ] ;\n char bv [ 2 * MAXVALLEN ] ;\n UNUSED_ARG ( datatype ) ;\n if ( ! quiet ) fprintf ( fp , \"status=%04x %s,\\n\" , status , statustoa ( datatype , status ) ) ;\n startoutput ( ) ;\n while ( nextvar ( & length , & data , & name , & value ) ) {\n fmt = varfmt ( name ) ;\n output_raw = 0 ;\n switch ( fmt ) {\n case PADDING : output_raw = '*' ;\n break ;\n case TS : if ( ! decodets ( value , & lfp ) ) output_raw = '?' ;\n else output ( fp , name , prettydate ( & lfp ) ) ;\n break ;\n case HA : case NA : if ( ! decodenetnum ( value , & hval ) ) {\n output_raw = '?' ;\n }\n else if ( fmt == HA ) {\n output ( fp , name , nntohost ( & hval ) ) ;\n }\n else {\n output ( fp , name , stoa ( & hval ) ) ;\n }\n break ;\n case RF : if ( decodenetnum ( value , & hval ) ) {\n if ( ISREFCLOCKADR ( & hval ) ) output ( fp , name , refnumtoa ( & hval ) ) ;\n else output ( fp , name , stoa ( & hval ) ) ;\n }\n else if ( strlen ( value ) <= 4 ) {\n output ( fp , name , value ) ;\n }\n else {\n output_raw = '?' ;\n }\n break ;\n case LP : if ( ! decodeuint ( value , & uval ) || uval > 3 ) {\n output_raw = '?' ;\n }\n else {\n b [ 0 ] = ( 0x2 & uval ) ? '1' : '0' ;\n b [ 1 ] = ( 0x1 & uval ) ? '1' : '0' ;\n b [ 2 ] = '\\0' ;\n output ( fp , name , b ) ;\n }\n break ;\n case OC : if ( ! decodeuint ( value , & uval ) ) {\n output_raw = '?' ;\n }\n else {\n snprintf ( b , sizeof ( b ) , \"%03lo\" , uval ) ;\n output ( fp , name , b ) ;\n }\n break ;\n case AR : if ( ! decodearr ( value , & narr , lfparr ) ) output_raw = '?' ;\n else outputarr ( fp , name , narr , lfparr ) ;\n break ;\n case FX : if ( ! decodeuint ( value , & uval ) ) output_raw = '?' ;\n else output ( fp , name , tstflags ( uval ) ) ;\n break ;\n default : fprintf ( stderr , \"Internal error in cookedprint, %s=%s, fmt %d\\n\" , name , value , fmt ) ;\n output_raw = '?' ;\n break ;\n }\n if ( output_raw != 0 ) {\n atoascii ( name , MAXVARLEN , bn , sizeof ( bn ) ) ;\n if ( output_raw != '*' ) {\n atoascii ( value , MAXVALLEN , bv , sizeof ( bv ) - 1 ) ;\n len = strlen ( bv ) ;\n bv [ len ] = output_raw ;\n bv [ len + 1 ] = '\\0' ;\n }\n else {\n atoascii ( value , MAXVALLEN , bv , sizeof ( bv ) ) ;\n }\n output ( fp , bn , bv ) ;\n }\n }\n endoutput ( fp ) ;\n }"}
{"idx": 19295, "target": 0, "func": "static int lxc_cgroupfs_enter ( struct cgroup_process_info * info , pid_t pid , bool enter_sub ) {\n char pid_buf [ 32 ] ;\n char * cgroup_tasks_fn ;\n int r ;\n struct cgroup_process_info * info_ptr ;\n snprintf ( pid_buf , 32 , \"%lu\" , ( unsigned long ) pid ) ;\n for ( info_ptr = info ;\n info_ptr ;\n info_ptr = info_ptr -> next ) {\n char * cgroup_path = ( enter_sub && info_ptr -> cgroup_path_sub ) ? info_ptr -> cgroup_path_sub : info_ptr -> cgroup_path ;\n if ( ! info_ptr -> designated_mount_point ) {\n info_ptr -> designated_mount_point = lxc_cgroup_find_mount_point ( info_ptr -> hierarchy , cgroup_path , true ) ;\n if ( ! info_ptr -> designated_mount_point ) {\n SYSERROR ( \"Could not add pid %lu to cgroup %s: internal error (couldn't find any writable mountpoint to cgroup filesystem)\" , ( unsigned long ) pid , cgroup_path ) ;\n return - 1 ;\n }\n }\n cgroup_tasks_fn = cgroup_to_absolute_path ( info_ptr -> designated_mount_point , cgroup_path , \"/tasks\" ) ;\n if ( ! cgroup_tasks_fn ) {\n SYSERROR ( \"Could not add pid %lu to cgroup %s: internal error\" , ( unsigned long ) pid , cgroup_path ) ;\n return - 1 ;\n }\n r = lxc_write_to_file ( cgroup_tasks_fn , pid_buf , strlen ( pid_buf ) , false ) ;\n free ( cgroup_tasks_fn ) ;\n if ( r < 0 ) {\n SYSERROR ( \"Could not add pid %lu to cgroup %s: internal error\" , ( unsigned long ) pid , cgroup_path ) ;\n return - 1 ;\n }\n }\n return 0 ;\n }"}
{"idx": 19296, "target": 0, "func": "static int nbd_can_accept ( void ) {\n return state == RUNNING && nb_fds < shared ;\n }"}
{"idx": 19297, "target": 0, "func": "PGconn * connectToServer ( ClusterInfo * cluster , const char * db_name ) {\n PGconn * conn = get_db_conn ( cluster , db_name ) ;\n if ( conn == NULL || PQstatus ( conn ) != CONNECTION_OK ) {\n pg_log ( PG_REPORT , \"connection to database failed: %s\\n\" , PQerrorMessage ( conn ) ) ;\n if ( conn ) PQfinish ( conn ) ;\n printf ( \"Failure, exiting\\n\" ) ;\n exit ( 1 ) ;\n }\n return conn ;\n }"}
{"idx": 19298, "target": 0, "func": "static int dissect_h245_INTEGER_1_18 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 18U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 19299, "target": 0, "func": "static bfd_boolean internal_srec_write_object_contents ( bfd * abfd , int symbols ) {\n tdata_type * tdata = abfd -> tdata . srec_data ;\n srec_data_list_type * list ;\n if ( symbols ) {\n if ( ! srec_write_symbols ( abfd ) ) return FALSE ;\n }\n if ( ! srec_write_header ( abfd ) ) return FALSE ;\n list = tdata -> head ;\n while ( list != ( srec_data_list_type * ) NULL ) {\n if ( ! srec_write_section ( abfd , tdata , list ) ) return FALSE ;\n list = list -> next ;\n }\n return srec_write_terminator ( abfd , tdata ) ;\n }"}
{"idx": 19300, "target": 0, "func": "static void Type_Chromaticity_Free ( struct _cms_typehandler_struct * self , void * Ptr ) {\n _cmsFree ( self -> ContextID , Ptr ) ;\n }"}
{"idx": 19301, "target": 1, "func": "void vp9_change_config ( struct VP9_COMP * cpi , const VP9EncoderConfig * oxcf ) {\n VP9_COMMON * const cm = & cpi -> common ;\n RATE_CONTROL * const rc = & cpi -> rc ;\n if ( cm -> profile != oxcf -> profile ) cm -> profile = oxcf -> profile ;\n cm -> bit_depth = oxcf -> bit_depth ;\n if ( cm -> profile <= PROFILE_1 ) assert ( cm -> bit_depth == VPX_BITS_8 ) ;\n else assert ( cm -> bit_depth > VPX_BITS_8 ) ;\n cpi -> oxcf = * oxcf ;\n rc -> baseline_gf_interval = DEFAULT_GF_INTERVAL ;\n cpi -> refresh_golden_frame = 0 ;\n cpi -> refresh_last_frame = 1 ;\n cm -> refresh_frame_context = 1 ;\n cm -> reset_frame_context = 0 ;\n vp9_reset_segment_features ( & cm -> seg ) ;\n vp9_set_high_precision_mv ( cpi , 0 ) ;\n {\n int i ;\n for ( i = 0 ;\n i < MAX_SEGMENTS ;\n i ++ ) cpi -> segment_encode_breakout [ i ] = cpi -> oxcf . encode_breakout ;\n }\n cpi -> encode_breakout = cpi -> oxcf . encode_breakout ;\n set_rc_buffer_sizes ( rc , & cpi -> oxcf ) ;\n rc -> bits_off_target = MIN ( rc -> bits_off_target , rc -> maximum_buffer_size ) ;\n rc -> buffer_level = MIN ( rc -> buffer_level , rc -> maximum_buffer_size ) ;\n vp9_new_framerate ( cpi , cpi -> framerate ) ;\n rc -> worst_quality = cpi -> oxcf . worst_allowed_q ;\n rc -> best_quality = cpi -> oxcf . best_allowed_q ;\n cm -> interp_filter = cpi -> sf . default_interp_filter ;\n cm -> display_width = cpi -> oxcf . width ;\n cm -> display_height = cpi -> oxcf . height ;\n if ( cpi -> initial_width ) {\n assert ( cm -> width <= cpi -> initial_width ) ;\n assert ( cm -> height <= cpi -> initial_height ) ;\n }\n update_frame_size ( cpi ) ;\n if ( ( cpi -> svc . number_temporal_layers > 1 && cpi -> oxcf . rc_mode == VPX_CBR ) || ( ( cpi -> svc . number_temporal_layers > 1 || cpi -> svc . number_spatial_layers > 1 ) && cpi -> oxcf . pass == 2 ) ) {\n vp9_update_layer_context_change_config ( cpi , ( int ) cpi -> oxcf . target_bandwidth ) ;\n }\n cpi -> alt_ref_source = NULL ;\n rc -> is_src_frame_alt_ref = 0 ;\n # if 0 cpi -> frame_distortion = 0 ;\n cpi -> last_frame_distortion = 0 ;\n # endif set_tile_limits ( cpi ) ;\n cpi -> ext_refresh_frame_flags_pending = 0 ;\n cpi -> ext_refresh_frame_context_pending = 0 ;\n # if CONFIG_VP9_TEMPORAL_DENOISING if ( cpi -> oxcf . noise_sensitivity > 0 ) {\n vp9_denoiser_alloc ( & ( cpi -> denoiser ) , cm -> width , cm -> height , cm -> subsampling_x , cm -> subsampling_y , # if CONFIG_VP9_HIGHBITDEPTH cm -> use_highbitdepth , # endif VP9_ENC_BORDER_IN_PIXELS ) ;\n }\n # endif }"}
{"idx": 19302, "target": 0, "func": "int lcc_network_buffer_get ( lcc_network_buffer_t * nb , void * buffer , size_t * buffer_size ) {\n size_t sz_required ;\n size_t sz_available ;\n if ( ( nb == NULL ) || ( buffer_size == NULL ) ) return ( EINVAL ) ;\n assert ( nb -> size >= nb -> free ) ;\n sz_required = nb -> size - nb -> free ;\n sz_available = * buffer_size ;\n * buffer_size = sz_required ;\n if ( buffer != NULL ) memcpy ( buffer , nb -> buffer , ( sz_available < sz_required ) ? sz_available : sz_required ) ;\n return ( 0 ) ;\n }"}
{"idx": 19303, "target": 0, "func": "static krb5_error_code randkey_princ ( krb5_principal princ , krb5_boolean keepold , int n_ks , krb5_key_salt_tuple * ks ) {\n if ( keepold || ks ) {\n return kadm5_randkey_principal_3 ( handle , princ , keepold , n_ks , ks , NULL , NULL ) ;\n }\n else return kadm5_randkey_principal ( handle , princ , NULL , NULL ) ;\n }"}
{"idx": 19304, "target": 0, "func": "void * jas_calloc ( size_t num_elements , size_t element_size ) {\n void * ptr ;\n size_t size ;\n if ( ! jas_safe_size_mul ( num_elements , element_size , & size ) ) {\n return 0 ;\n }\n if ( ! ( ptr = jas_malloc ( size ) ) ) {\n return 0 ;\n }\n memset ( ptr , 0 , size ) ;\n return ptr ;\n }"}
{"idx": 19305, "target": 0, "func": "static void gather_data_for_subcel ( SubcelEvaluation * subcel , int x , int y , RoqContext * enc , RoqTempdata * tempData ) {\n uint8_t mb4 [ 4 * 4 * 3 ] ;\n uint8_t mb2 [ 2 * 2 * 3 ] ;\n int cluster_index ;\n int i , best_dist ;\n static const int bitsUsed [ 4 ] = {\n 2 , 10 , 10 , 34 }\n ;\n if ( enc -> framesSinceKeyframe >= 1 ) {\n subcel -> motion = enc -> this_motion4 [ y * enc -> width / 16 + x / 4 ] ;\n subcel -> eval_dist [ RoQ_ID_FCC ] = eval_motion_dist ( enc , x , y , enc -> this_motion4 [ y * enc -> width / 16 + x / 4 ] , 4 ) ;\n }\n else subcel -> eval_dist [ RoQ_ID_FCC ] = INT_MAX ;\n if ( enc -> framesSinceKeyframe >= 2 ) subcel -> eval_dist [ RoQ_ID_MOT ] = block_sse ( enc -> frame_to_enc -> data , enc -> current_frame -> data , x , y , x , y , enc -> frame_to_enc -> linesize , enc -> current_frame -> linesize , 4 ) ;\n else subcel -> eval_dist [ RoQ_ID_MOT ] = INT_MAX ;\n cluster_index = y * enc -> width / 16 + x / 4 ;\n get_frame_mb ( enc -> frame_to_enc , x , y , mb4 , 4 ) ;\n subcel -> eval_dist [ RoQ_ID_SLD ] = index_mb ( mb4 , tempData -> codebooks . unpacked_cb4 , tempData -> codebooks . numCB4 , & subcel -> cbEntry , 4 ) ;\n subcel -> eval_dist [ RoQ_ID_CCC ] = 0 ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n subcel -> subCels [ i ] = tempData -> closest_cb2 [ cluster_index * 4 + i ] ;\n get_frame_mb ( enc -> frame_to_enc , x + 2 * ( i & 1 ) , y + ( i & 2 ) , mb2 , 2 ) ;\n subcel -> eval_dist [ RoQ_ID_CCC ] += squared_diff_macroblock ( tempData -> codebooks . unpacked_cb2 + subcel -> subCels [ i ] * 2 * 2 * 3 , mb2 , 2 ) ;\n }\n best_dist = INT_MAX ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) if ( ROQ_LAMBDA_SCALE * subcel -> eval_dist [ i ] + enc -> lambda * bitsUsed [ i ] < best_dist ) {\n subcel -> best_coding = i ;\n subcel -> best_bit_use = bitsUsed [ i ] ;\n best_dist = ROQ_LAMBDA_SCALE * subcel -> eval_dist [ i ] + enc -> lambda * bitsUsed [ i ] ;\n }\n }"}
{"idx": 19306, "target": 0, "func": "static void typhoon_alarm_timer ( void * opaque ) {\n TyphoonState * s = ( TyphoonState * ) ( ( uintptr_t ) opaque & ~ 3 ) ;\n int cpu = ( uintptr_t ) opaque & 3 ;\n s -> cchip . misc |= 1 << ( cpu + 4 ) ;\n cpu_interrupt ( CPU ( s -> cchip . cpu [ cpu ] ) , CPU_INTERRUPT_TIMER ) ;\n }"}
{"idx": 19307, "target": 0, "func": "void qemu_init_vcpu ( CPUState * cpu ) {\n cpu -> nr_cores = smp_cores ;\n cpu -> nr_threads = smp_threads ;\n cpu -> stopped = true ;\n if ( kvm_enabled ( ) ) {\n qemu_kvm_start_vcpu ( cpu ) ;\n }\n else if ( tcg_enabled ( ) ) {\n qemu_tcg_init_vcpu ( cpu ) ;\n }\n else {\n qemu_dummy_start_vcpu ( cpu ) ;\n }\n }"}
{"idx": 19308, "target": 1, "func": "static int vble_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n VBLEContext * ctx = avctx -> priv_data ;\n AVFrame * pic = avctx -> coded_frame ;\n GetBitContext gb ;\n const uint8_t * src = avpkt -> data ;\n int version ;\n int offset = 0 ;\n int width_uv = avctx -> width / 2 , height_uv = avctx -> height / 2 ;\n pic -> reference = 0 ;\n if ( pic -> data [ 0 ] ) avctx -> release_buffer ( avctx , pic ) ;\n if ( ff_get_buffer ( avctx , pic ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Could not allocate buffer.\\n\" ) ;\n return AVERROR ( ENOMEM ) ;\n }\n pic -> key_frame = 1 ;\n pic -> pict_type = AV_PICTURE_TYPE_I ;\n version = AV_RL32 ( src ) ;\n if ( version != 1 ) av_log ( avctx , AV_LOG_WARNING , \"Unsupported VBLE Version: %d\\n\" , version ) ;\n init_get_bits ( & gb , src + 4 , ( avpkt -> size - 4 ) * 8 ) ;\n if ( vble_unpack ( ctx , & gb ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Invalid Code\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n vble_restore_plane ( ctx , 0 , offset , avctx -> width , avctx -> height ) ;\n if ( ! ( ctx -> avctx -> flags & CODEC_FLAG_GRAY ) ) {\n offset += avctx -> width * avctx -> height ;\n vble_restore_plane ( ctx , 1 , offset , width_uv , height_uv ) ;\n offset += width_uv * height_uv ;\n vble_restore_plane ( ctx , 2 , offset , width_uv , height_uv ) ;\n }\n * got_frame = 1 ;\n * ( AVFrame * ) data = * pic ;\n return avpkt -> size ;\n }"}
{"idx": 19309, "target": 0, "func": "int dissect_h225_ServiceControlSession ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_ServiceControlSession , ServiceControlSession_sequence ) ;\n return offset ;\n }"}
{"idx": 19310, "target": 0, "func": "static int rv40_parse_slice_header ( RV34DecContext * r , GetBitContext * gb , SliceInfo * si ) {\n int mb_bits ;\n int w = r -> s . width , h = r -> s . height ;\n int mb_size ;\n memset ( si , 0 , sizeof ( SliceInfo ) ) ;\n if ( get_bits1 ( gb ) ) return - 1 ;\n si -> type = get_bits ( gb , 2 ) ;\n if ( si -> type == 1 ) si -> type = 0 ;\n si -> quant = get_bits ( gb , 5 ) ;\n if ( get_bits ( gb , 2 ) ) return - 1 ;\n si -> vlc_set = get_bits ( gb , 2 ) ;\n skip_bits1 ( gb ) ;\n si -> pts = get_bits ( gb , 13 ) ;\n if ( ! si -> type || ! get_bits1 ( gb ) ) rv40_parse_picture_size ( gb , & w , & h ) ;\n if ( av_image_check_size ( w , h , 0 , r -> s . avctx ) < 0 ) return - 1 ;\n si -> width = w ;\n si -> height = h ;\n mb_size = ( ( w + 15 ) >> 4 ) * ( ( h + 15 ) >> 4 ) ;\n mb_bits = ff_rv34_get_start_offset ( gb , mb_size ) ;\n si -> start = get_bits ( gb , mb_bits ) ;\n return 0 ;\n }"}
{"idx": 19311, "target": 0, "func": "static u_char get_correct_host_mode ( int token ) {\n switch ( token ) {\n case T_Server : case T_Pool : case T_Manycastclient : return MODE_CLIENT ;\n case T_Peer : return MODE_ACTIVE ;\n case T_Broadcast : return MODE_BROADCAST ;\n default : return 0 ;\n }\n }"}
{"idx": 19312, "target": 0, "func": "void mainwindows_deinit ( void ) {\n while ( mainwindows != NULL ) mainwindow_destroy ( mainwindows -> data ) ;\n g_free ( clrtoeol_info ) ;\n command_unbind ( \"window grow\" , ( SIGNAL_FUNC ) cmd_window_grow ) ;\n command_unbind ( \"window shrink\" , ( SIGNAL_FUNC ) cmd_window_shrink ) ;\n command_unbind ( \"window size\" , ( SIGNAL_FUNC ) cmd_window_size ) ;\n command_unbind ( \"window balance\" , ( SIGNAL_FUNC ) cmd_window_balance ) ;\n command_unbind ( \"window hide\" , ( SIGNAL_FUNC ) cmd_window_hide ) ;\n command_unbind ( \"window show\" , ( SIGNAL_FUNC ) cmd_window_show ) ;\n command_unbind ( \"window up\" , ( SIGNAL_FUNC ) cmd_window_up ) ;\n command_unbind ( \"window down\" , ( SIGNAL_FUNC ) cmd_window_down ) ;\n command_unbind ( \"window left\" , ( SIGNAL_FUNC ) cmd_window_left ) ;\n command_unbind ( \"window right\" , ( SIGNAL_FUNC ) cmd_window_right ) ;\n command_unbind ( \"window dup\" , ( SIGNAL_FUNC ) cmd_window_dup ) ;\n command_unbind ( \"window ddown\" , ( SIGNAL_FUNC ) cmd_window_ddown ) ;\n command_unbind ( \"window dleft\" , ( SIGNAL_FUNC ) cmd_window_dleft ) ;\n command_unbind ( \"window dright\" , ( SIGNAL_FUNC ) cmd_window_dright ) ;\n command_unbind ( \"window stick\" , ( SIGNAL_FUNC ) cmd_window_stick ) ;\n command_unbind ( \"window move left\" , ( SIGNAL_FUNC ) cmd_window_move_left ) ;\n command_unbind ( \"window move right\" , ( SIGNAL_FUNC ) cmd_window_move_right ) ;\n command_unbind ( \"window move up\" , ( SIGNAL_FUNC ) cmd_window_move_up ) ;\n command_unbind ( \"window move down\" , ( SIGNAL_FUNC ) cmd_window_move_down ) ;\n command_unbind ( \"window move dleft\" , ( SIGNAL_FUNC ) cmd_window_move_dleft ) ;\n command_unbind ( \"window move dright\" , ( SIGNAL_FUNC ) cmd_window_move_dright ) ;\n command_unbind ( \"window rgrow\" , ( SIGNAL_FUNC ) cmd_window_rgrow ) ;\n command_unbind ( \"window rshrink\" , ( SIGNAL_FUNC ) cmd_window_rshrink ) ;\n command_unbind ( \"window rsize\" , ( SIGNAL_FUNC ) cmd_window_rsize ) ;\n command_unbind ( \"window rbalance\" , ( SIGNAL_FUNC ) cmd_window_rbalance ) ;\n command_unbind ( \"window rshow\" , ( SIGNAL_FUNC ) cmd_window_rshow ) ;\n signal_remove ( \"window print info\" , ( SIGNAL_FUNC ) sig_window_print_info ) ;\n }"}
{"idx": 19313, "target": 0, "func": "TEST_F ( OmniboxEditTest , AlternateNavHasHTTP ) {\n const TestingOmniboxClient * client = static_cast < TestingOmniboxClient * > ( model ( ) -> client ( ) ) ;\n const AutocompleteMatch match ( model ( ) -> autocomplete_controller ( ) -> search_provider ( ) , 0 , false , AutocompleteMatchType : : SEARCH_WHAT_YOU_TYPED ) ;\n const GURL alternate_nav_url ( \"http://abcd/\" ) ;\n model ( ) -> OnSetFocus ( false ) ;\n model ( ) -> SetUserText ( base : : ASCIIToUTF16 ( \"http://abcd\" ) ) ;\n model ( ) -> OpenMatch ( match , WindowOpenDisposition : : CURRENT_TAB , alternate_nav_url , base : : string16 ( ) , 0 ) ;\n EXPECT_TRUE ( AutocompleteInput : : HasHTTPScheme ( client -> alternate_nav_match ( ) . fill_into_edit ) ) ;\n model ( ) -> SetUserText ( base : : ASCIIToUTF16 ( \"abcd\" ) ) ;\n model ( ) -> OpenMatch ( match , WindowOpenDisposition : : CURRENT_TAB , alternate_nav_url , base : : string16 ( ) , 0 ) ;\n EXPECT_TRUE ( AutocompleteInput : : HasHTTPScheme ( client -> alternate_nav_match ( ) . fill_into_edit ) ) ;\n }"}
{"idx": 19314, "target": 0, "func": "static void remove_locks_on_signal ( int signo ) {\n remove_locks ( ) ;\n sigchain_pop ( signo ) ;\n raise ( signo ) ;\n }"}
{"idx": 19315, "target": 0, "func": "static int iso9660_write_header ( struct archive_write * a , struct archive_entry * entry ) {\n struct iso9660 * iso9660 ;\n struct isofile * file ;\n struct isoent * isoent ;\n int r , ret = ARCHIVE_OK ;\n iso9660 = a -> format_data ;\n iso9660 -> cur_file = NULL ;\n iso9660 -> bytes_remaining = 0 ;\n iso9660 -> need_multi_extent = 0 ;\n if ( archive_entry_filetype ( entry ) == AE_IFLNK && iso9660 -> opt . rr == OPT_RR_DISABLED ) {\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"Ignore symlink file.\" ) ;\n iso9660 -> cur_file = NULL ;\n return ( ARCHIVE_WARN ) ;\n }\n if ( archive_entry_filetype ( entry ) == AE_IFREG && archive_entry_size ( entry ) >= MULTI_EXTENT_SIZE ) {\n if ( iso9660 -> opt . iso_level < 3 ) {\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"Ignore over %lld bytes file. \" \"This file too large.\" , MULTI_EXTENT_SIZE ) ;\n iso9660 -> cur_file = NULL ;\n return ( ARCHIVE_WARN ) ;\n }\n iso9660 -> need_multi_extent = 1 ;\n }\n file = isofile_new ( a , entry ) ;\n if ( file == NULL ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate data\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n r = isofile_gen_utility_names ( a , file ) ;\n if ( r < ARCHIVE_WARN ) {\n isofile_free ( file ) ;\n return ( r ) ;\n }\n else if ( r < ret ) ret = r ;\n if ( archive_strlen ( & ( file -> parentdir ) ) == 0 && archive_strlen ( & ( file -> basename ) ) == 0 ) {\n isofile_free ( file ) ;\n return ( r ) ;\n }\n isofile_add_entry ( iso9660 , file ) ;\n isoent = isoent_new ( file ) ;\n if ( isoent == NULL ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate data\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n if ( isoent -> file -> dircnt > iso9660 -> dircnt_max ) iso9660 -> dircnt_max = isoent -> file -> dircnt ;\n r = isoent_tree ( a , & isoent ) ;\n if ( r != ARCHIVE_OK ) return ( r ) ;\n if ( isoent -> file != file ) return ( ARCHIVE_OK ) ;\n if ( archive_entry_filetype ( file -> entry ) != AE_IFREG ) return ( ret ) ;\n iso9660 -> cur_file = file ;\n if ( archive_entry_nlink ( file -> entry ) > 1 ) {\n r = isofile_register_hardlink ( a , file ) ;\n if ( r != ARCHIVE_OK ) return ( ARCHIVE_FATAL ) ;\n }\n if ( iso9660 -> temp_fd < 0 ) {\n iso9660 -> temp_fd = __archive_mktemp ( NULL ) ;\n if ( iso9660 -> temp_fd < 0 ) {\n archive_set_error ( & a -> archive , errno , \"Couldn't create temporary file\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n }\n file -> content . offset_of_temp = wb_offset ( a ) ;\n file -> cur_content = & ( file -> content ) ;\n r = zisofs_init ( a , file ) ;\n if ( r < ret ) ret = r ;\n iso9660 -> bytes_remaining = archive_entry_size ( file -> entry ) ;\n return ( ret ) ;\n }"}
{"idx": 19316, "target": 0, "func": "static int32_t u_printf_simple_percent_handler ( const u_printf_stream_handler * handler , void * context , ULocaleBundle * formatBundle , const u_printf_spec_info * info , const ufmt_args * args ) {\n ( void ) formatBundle ;\n ( void ) info ;\n ( void ) args ;\n static const UChar PERCENT [ ] = {\n UP_PERCENT }\n ;\n return handler -> write ( context , PERCENT , 1 ) ;\n }"}
{"idx": 19317, "target": 0, "func": "static cmsBool WriteMatrix ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsStage * mpe ) {\n _cmsStageMatrixData * m = ( _cmsStageMatrixData * ) mpe -> Data ;\n if ( ! _cmsWrite15Fixed16Number ( io , m -> Double [ 0 ] ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , m -> Double [ 1 ] ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , m -> Double [ 2 ] ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , m -> Double [ 3 ] ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , m -> Double [ 4 ] ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , m -> Double [ 5 ] ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , m -> Double [ 6 ] ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , m -> Double [ 7 ] ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , m -> Double [ 8 ] ) ) return FALSE ;\n if ( m -> Offset != NULL ) {\n if ( ! _cmsWrite15Fixed16Number ( io , m -> Offset [ 0 ] ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , m -> Offset [ 1 ] ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , m -> Offset [ 2 ] ) ) return FALSE ;\n }\n else {\n if ( ! _cmsWrite15Fixed16Number ( io , 0 ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , 0 ) ) return FALSE ;\n if ( ! _cmsWrite15Fixed16Number ( io , 0 ) ) return FALSE ;\n }\n return TRUE ;\n cmsUNUSED_PARAMETER ( self ) ;\n }"}
{"idx": 19318, "target": 0, "func": "static int unpack_block_qpis ( Vp3DecodeContext * s , GetBitContext * gb ) {\n int qpi , i , j , bit , run_length , blocks_decoded , num_blocks_at_qpi ;\n int num_blocks = s -> total_num_coded_frags ;\n for ( qpi = 0 ;\n qpi < s -> nqps - 1 && num_blocks > 0 ;\n qpi ++ ) {\n i = blocks_decoded = num_blocks_at_qpi = 0 ;\n bit = get_bits1 ( gb ) ^ 1 ;\n run_length = 0 ;\n do {\n if ( run_length == MAXIMUM_LONG_BIT_RUN ) bit = get_bits1 ( gb ) ;\n else bit ^= 1 ;\n run_length = get_vlc2 ( gb , s -> superblock_run_length_vlc . table , 6 , 2 ) + 1 ;\n if ( run_length == 34 ) run_length += get_bits ( gb , 12 ) ;\n blocks_decoded += run_length ;\n if ( ! bit ) num_blocks_at_qpi += run_length ;\n for ( j = 0 ;\n j < run_length ;\n i ++ ) {\n if ( i >= s -> total_num_coded_frags ) return - 1 ;\n if ( s -> all_fragments [ s -> coded_fragment_list [ 0 ] [ i ] ] . qpi == qpi ) {\n s -> all_fragments [ s -> coded_fragment_list [ 0 ] [ i ] ] . qpi += bit ;\n j ++ ;\n }\n }\n }\n while ( blocks_decoded < num_blocks && get_bits_left ( gb ) > 0 ) ;\n num_blocks -= num_blocks_at_qpi ;\n }\n return 0 ;\n }"}
{"idx": 19319, "target": 0, "func": "void ff_h264_init_cabac_states ( H264Context * h ) {\n int i ;\n const int8_t ( * tab ) [ 2 ] ;\n const int slice_qp = av_clip ( h -> qscale - 6 * ( h -> sps . bit_depth_luma - 8 ) , 0 , 51 ) ;\n if ( h -> slice_type_nos == AV_PICTURE_TYPE_I ) tab = cabac_context_init_I ;\n else tab = cabac_context_init_PB [ h -> cabac_init_idc ] ;\n for ( i = 0 ;\n i < 1024 ;\n i ++ ) {\n int pre = 2 * ( ( ( tab [ i ] [ 0 ] * slice_qp ) >> 4 ) + tab [ i ] [ 1 ] ) - 127 ;\n pre ^= pre >> 31 ;\n if ( pre > 124 ) pre = 124 + ( pre & 1 ) ;\n h -> cabac_state [ i ] = pre ;\n }\n }"}
{"idx": 19320, "target": 0, "func": "void vp9_get_entropy_contexts ( BLOCK_SIZE bsize , TX_SIZE tx_size , const struct macroblockd_plane * pd , ENTROPY_CONTEXT t_above [ 16 ] , ENTROPY_CONTEXT t_left [ 16 ] ) {\n const BLOCK_SIZE plane_bsize = get_plane_block_size ( bsize , pd ) ;\n const int num_4x4_w = num_4x4_blocks_wide_lookup [ plane_bsize ] ;\n const int num_4x4_h = num_4x4_blocks_high_lookup [ plane_bsize ] ;\n const ENTROPY_CONTEXT * const above = pd -> above_context ;\n const ENTROPY_CONTEXT * const left = pd -> left_context ;\n int i ;\n switch ( tx_size ) {\n case TX_4X4 : vpx_memcpy ( t_above , above , sizeof ( ENTROPY_CONTEXT ) * num_4x4_w ) ;\n vpx_memcpy ( t_left , left , sizeof ( ENTROPY_CONTEXT ) * num_4x4_h ) ;\n break ;\n case TX_8X8 : for ( i = 0 ;\n i < num_4x4_w ;\n i += 2 ) t_above [ i ] = ! ! * ( const uint16_t * ) & above [ i ] ;\n for ( i = 0 ;\n i < num_4x4_h ;\n i += 2 ) t_left [ i ] = ! ! * ( const uint16_t * ) & left [ i ] ;\n break ;\n case TX_16X16 : for ( i = 0 ;\n i < num_4x4_w ;\n i += 4 ) t_above [ i ] = ! ! * ( const uint32_t * ) & above [ i ] ;\n for ( i = 0 ;\n i < num_4x4_h ;\n i += 4 ) t_left [ i ] = ! ! * ( const uint32_t * ) & left [ i ] ;\n break ;\n case TX_32X32 : for ( i = 0 ;\n i < num_4x4_w ;\n i += 8 ) t_above [ i ] = ! ! * ( const uint64_t * ) & above [ i ] ;\n for ( i = 0 ;\n i < num_4x4_h ;\n i += 8 ) t_left [ i ] = ! ! * ( const uint64_t * ) & left [ i ] ;\n break ;\n default : assert ( 0 && \"Invalid transform size.\" ) ;\n break ;\n }\n }"}
{"idx": 19321, "target": 0, "func": "static int dissect_printerdata_data ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ , guint32 type ) {\n proto_item * item , * hidden_item ;\n proto_tree * subtree ;\n guint32 size ;\n subtree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_printerdata_data , & item , \"Data\" ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , subtree , di , drep , hf_printerdata_size , & size ) ;\n if ( size ) {\n offset = dissect_ndr_uint8s ( tvb , offset , pinfo , subtree , di , drep , hf_printerdata_data , size , NULL ) ;\n switch ( type ) {\n case DCERPC_REG_SZ : {\n char * data = tvb_get_string_enc ( NULL , tvb , offset - size , size , ENC_UTF_16 | ENC_LITTLE_ENDIAN ) ;\n proto_item_append_text ( item , \": %s\" , data ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" = %s\" , data ) ;\n hidden_item = proto_tree_add_string ( tree , hf_printerdata_data_sz , tvb , offset - size , size , data ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n g_free ( data ) ;\n break ;\n }\n case DCERPC_REG_DWORD : {\n guint32 data = tvb_get_letohl ( tvb , offset - size ) ;\n proto_item_append_text ( item , \": 0x%08x\" , data ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \" = 0x%08x\" , data ) ;\n hidden_item = proto_tree_add_uint ( tree , hf_printerdata_data_dword , tvb , offset - size , 4 , data ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n break ;\n }\n case DCERPC_REG_BINARY : col_append_str ( pinfo -> cinfo , COL_INFO , \" = <binary data>\" ) ;\n break ;\n default : break ;\n }\n }\n proto_item_set_len ( item , size + 4 ) ;\n return offset ;\n }"}
{"idx": 19322, "target": 1, "func": "static void update_mbgraph_frame_stats ( VP9_COMP * cpi , MBGRAPH_FRAME_STATS * stats , YV12_BUFFER_CONFIG * buf , YV12_BUFFER_CONFIG * golden_ref , YV12_BUFFER_CONFIG * alt_ref ) {\n MACROBLOCK * const x = & cpi -> mb ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n VP9_COMMON * const cm = & cpi -> common ;\n int mb_col , mb_row , offset = 0 ;\n int mb_y_offset = 0 , arf_y_offset = 0 , gld_y_offset = 0 ;\n MV gld_top_mv = {\n 0 , 0 }\n ;\n MODE_INFO mi_local ;\n vp9_zero ( mi_local ) ;\n x -> mv_row_min = - BORDER_MV_PIXELS_B16 ;\n x -> mv_row_max = ( cm -> mb_rows - 1 ) * 8 + BORDER_MV_PIXELS_B16 ;\n xd -> up_available = 0 ;\n xd -> plane [ 0 ] . dst . stride = buf -> y_stride ;\n xd -> plane [ 0 ] . pre [ 0 ] . stride = buf -> y_stride ;\n xd -> plane [ 1 ] . dst . stride = buf -> uv_stride ;\n xd -> mi [ 0 ] = & mi_local ;\n mi_local . mbmi . sb_type = BLOCK_16X16 ;\n mi_local . mbmi . ref_frame [ 0 ] = LAST_FRAME ;\n mi_local . mbmi . ref_frame [ 1 ] = NONE ;\n for ( mb_row = 0 ;\n mb_row < cm -> mb_rows ;\n mb_row ++ ) {\n MV gld_left_mv = gld_top_mv ;\n int mb_y_in_offset = mb_y_offset ;\n int arf_y_in_offset = arf_y_offset ;\n int gld_y_in_offset = gld_y_offset ;\n x -> mv_col_min = - BORDER_MV_PIXELS_B16 ;\n x -> mv_col_max = ( cm -> mb_cols - 1 ) * 8 + BORDER_MV_PIXELS_B16 ;\n xd -> left_available = 0 ;\n for ( mb_col = 0 ;\n mb_col < cm -> mb_cols ;\n mb_col ++ ) {\n MBGRAPH_MB_STATS * mb_stats = & stats -> mb_stats [ offset + mb_col ] ;\n update_mbgraph_mb_stats ( cpi , mb_stats , buf , mb_y_in_offset , golden_ref , & gld_left_mv , alt_ref , mb_row , mb_col ) ;\n gld_left_mv = mb_stats -> ref [ GOLDEN_FRAME ] . m . mv . as_mv ;\n if ( mb_col == 0 ) {\n gld_top_mv = gld_left_mv ;\n }\n xd -> left_available = 1 ;\n mb_y_in_offset += 16 ;\n gld_y_in_offset += 16 ;\n arf_y_in_offset += 16 ;\n x -> mv_col_min -= 16 ;\n x -> mv_col_max -= 16 ;\n }\n xd -> up_available = 1 ;\n mb_y_offset += buf -> y_stride * 16 ;\n gld_y_offset += golden_ref -> y_stride * 16 ;\n if ( alt_ref ) arf_y_offset += alt_ref -> y_stride * 16 ;\n x -> mv_row_min -= 16 ;\n x -> mv_row_max -= 16 ;\n offset += cm -> mb_cols ;\n }\n }"}
{"idx": 19323, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ContentSettingBubbleDialogTest , InvokeDialog_cookies ) {\n RunDialog ( ) ;\n }"}
{"idx": 19324, "target": 0, "func": "void TSHttpIcpDynamicSet ( int value ) {\n int32_t old_value , new_value ;\n new_value = ( value == 0 ) ? 0 : 1 ;\n old_value = icp_dynamic_enabled ;\n while ( old_value != new_value ) {\n if ( ink_atomic_cas ( & icp_dynamic_enabled , old_value , new_value ) ) {\n break ;\n }\n old_value = icp_dynamic_enabled ;\n }\n }"}
{"idx": 19325, "target": 0, "func": "X509_NAME * GetX509NamePtr ( VALUE obj ) {\n X509_NAME * name ;\n SafeGetX509Name ( obj , name ) ;\n return name ;\n }"}
{"idx": 19326, "target": 0, "func": "static int get_refresh_mask ( VP9_COMP * cpi ) {\n if ( vp9_preserve_existing_gf ( cpi ) ) {\n return ( cpi -> refresh_last_frame << cpi -> lst_fb_idx ) | ( cpi -> refresh_golden_frame << cpi -> alt_fb_idx ) ;\n }\n else {\n int arf_idx = cpi -> alt_fb_idx ;\n if ( ( cpi -> oxcf . pass == 2 ) && cpi -> multi_arf_allowed ) {\n const GF_GROUP * const gf_group = & cpi -> twopass . gf_group ;\n arf_idx = gf_group -> arf_update_idx [ gf_group -> index ] ;\n }\n return ( cpi -> refresh_last_frame << cpi -> lst_fb_idx ) | ( cpi -> refresh_golden_frame << cpi -> gld_fb_idx ) | ( cpi -> refresh_alt_ref_frame << arf_idx ) ;\n }\n }"}
{"idx": 19327, "target": 1, "func": "static void configure_static_seg_features ( VP9_COMP * cpi ) {\n VP9_COMMON * const cm = & cpi -> common ;\n const RATE_CONTROL * const rc = & cpi -> rc ;\n struct segmentation * const seg = & cm -> seg ;\n int high_q = ( int ) ( rc -> avg_q > 48.0 ) ;\n int qi_delta ;\n if ( cm -> frame_type == KEY_FRAME ) {\n vpx_memset ( cpi -> segmentation_map , 0 , cm -> mi_rows * cm -> mi_cols ) ;\n seg -> update_map = 0 ;\n seg -> update_data = 0 ;\n cpi -> static_mb_pct = 0 ;\n vp9_disable_segmentation ( seg ) ;\n vp9_clearall_segfeatures ( seg ) ;\n }\n else if ( cpi -> refresh_alt_ref_frame ) {\n vpx_memset ( cpi -> segmentation_map , 0 , cm -> mi_rows * cm -> mi_cols ) ;\n seg -> update_map = 0 ;\n seg -> update_data = 0 ;\n cpi -> static_mb_pct = 0 ;\n vp9_disable_segmentation ( seg ) ;\n vp9_clearall_segfeatures ( seg ) ;\n vp9_update_mbgraph_stats ( cpi ) ;\n if ( seg -> enabled ) {\n seg -> update_map = 1 ;\n seg -> update_data = 1 ;\n qi_delta = vp9_compute_qdelta ( rc , rc -> avg_q , rc -> avg_q * 0.875 ) ;\n vp9_set_segdata ( seg , 1 , SEG_LVL_ALT_Q , qi_delta - 2 ) ;\n vp9_set_segdata ( seg , 1 , SEG_LVL_ALT_LF , - 2 ) ;\n vp9_enable_segfeature ( seg , 1 , SEG_LVL_ALT_Q ) ;\n vp9_enable_segfeature ( seg , 1 , SEG_LVL_ALT_LF ) ;\n seg -> abs_delta = SEGMENT_DELTADATA ;\n }\n }\n else if ( seg -> enabled ) {\n if ( rc -> frames_since_golden == 0 ) {\n if ( rc -> source_alt_ref_active ) {\n seg -> update_map = 0 ;\n seg -> update_data = 1 ;\n seg -> abs_delta = SEGMENT_DELTADATA ;\n qi_delta = vp9_compute_qdelta ( rc , rc -> avg_q , rc -> avg_q * 1.125 ) ;\n vp9_set_segdata ( seg , 1 , SEG_LVL_ALT_Q , qi_delta + 2 ) ;\n vp9_enable_segfeature ( seg , 1 , SEG_LVL_ALT_Q ) ;\n vp9_set_segdata ( seg , 1 , SEG_LVL_ALT_LF , - 2 ) ;\n vp9_enable_segfeature ( seg , 1 , SEG_LVL_ALT_LF ) ;\n if ( high_q || ( cpi -> static_mb_pct == 100 ) ) {\n vp9_set_segdata ( seg , 1 , SEG_LVL_REF_FRAME , ALTREF_FRAME ) ;\n vp9_enable_segfeature ( seg , 1 , SEG_LVL_REF_FRAME ) ;\n vp9_enable_segfeature ( seg , 1 , SEG_LVL_SKIP ) ;\n }\n }\n else {\n vp9_disable_segmentation ( seg ) ;\n vpx_memset ( cpi -> segmentation_map , 0 , cm -> mi_rows * cm -> mi_cols ) ;\n seg -> update_map = 0 ;\n seg -> update_data = 0 ;\n vp9_clearall_segfeatures ( seg ) ;\n }\n }\n else if ( rc -> is_src_frame_alt_ref ) {\n vp9_enable_segfeature ( seg , 0 , SEG_LVL_REF_FRAME ) ;\n vp9_enable_segfeature ( seg , 1 , SEG_LVL_REF_FRAME ) ;\n vp9_clear_segdata ( seg , 0 , SEG_LVL_REF_FRAME ) ;\n vp9_set_segdata ( seg , 0 , SEG_LVL_REF_FRAME , ALTREF_FRAME ) ;\n vp9_clear_segdata ( seg , 1 , SEG_LVL_REF_FRAME ) ;\n vp9_set_segdata ( seg , 1 , SEG_LVL_REF_FRAME , ALTREF_FRAME ) ;\n if ( high_q ) {\n vp9_enable_segfeature ( seg , 0 , SEG_LVL_SKIP ) ;\n vp9_enable_segfeature ( seg , 1 , SEG_LVL_SKIP ) ;\n }\n seg -> update_data = 1 ;\n }\n else {\n seg -> update_map = 0 ;\n seg -> update_data = 0 ;\n }\n }\n }"}
{"idx": 19328, "target": 0, "func": "int xml_complete ( modsec_rec * msr , char * * error_msg ) {\n if ( error_msg == NULL ) return - 1 ;\n * error_msg = NULL ;\n if ( msr -> xml -> parsing_ctx != NULL ) {\n xmlParseChunk ( msr -> xml -> parsing_ctx , NULL , 0 , 1 ) ;\n msr -> xml -> well_formed = msr -> xml -> parsing_ctx -> wellFormed ;\n msr -> xml -> doc = msr -> xml -> parsing_ctx -> myDoc ;\n xmlFreeParserCtxt ( msr -> xml -> parsing_ctx ) ;\n msr -> xml -> parsing_ctx = NULL ;\n msr_log ( msr , 4 , \"XML: Parsing complete (well_formed %u).\" , msr -> xml -> well_formed ) ;\n if ( msr -> xml -> well_formed != 1 ) {\n * error_msg = apr_psprintf ( msr -> mp , \"XML: Failed parsing document.\" ) ;\n return - 1 ;\n }\n }\n return 1 ;\n }"}
{"idx": 19329, "target": 0, "func": "static void decode_isf_indices_36b ( uint16_t * ind , float * isf_q ) {\n int i ;\n for ( i = 0 ;\n i < 9 ;\n i ++ ) isf_q [ i ] = dico1_isf [ ind [ 0 ] ] [ i ] * ( 1.0f / ( 1 << 15 ) ) ;\n for ( i = 0 ;\n i < 7 ;\n i ++ ) isf_q [ i + 9 ] = dico2_isf [ ind [ 1 ] ] [ i ] * ( 1.0f / ( 1 << 15 ) ) ;\n for ( i = 0 ;\n i < 5 ;\n i ++ ) isf_q [ i ] += dico21_isf_36b [ ind [ 2 ] ] [ i ] * ( 1.0f / ( 1 << 15 ) ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) isf_q [ i + 5 ] += dico22_isf_36b [ ind [ 3 ] ] [ i ] * ( 1.0f / ( 1 << 15 ) ) ;\n for ( i = 0 ;\n i < 7 ;\n i ++ ) isf_q [ i + 9 ] += dico23_isf_36b [ ind [ 4 ] ] [ i ] * ( 1.0f / ( 1 << 15 ) ) ;\n }"}
{"idx": 19330, "target": 0, "func": "kadm5_ret_t kadm5_modify_policy ( void * server_handle , kadm5_policy_ent_t entry , long mask ) {\n CHECK_HANDLE ( server_handle ) ;\n krb5_clear_error_message ( ( ( kadm5_server_handle_t ) server_handle ) -> context ) ;\n if ( mask & KADM5_REF_COUNT ) return KADM5_BAD_MASK ;\n else return kadm5_modify_policy_internal ( server_handle , entry , mask ) ;\n }"}
{"idx": 19331, "target": 0, "func": "static void decode_pitch_vector ( AMRContext * p , const AMRNBSubframe * amr_subframe , const int subframe ) {\n int pitch_lag_int , pitch_lag_frac ;\n enum Mode mode = p -> cur_frame_mode ;\n if ( p -> cur_frame_mode == MODE_12k2 ) {\n decode_pitch_lag_1_6 ( & pitch_lag_int , & pitch_lag_frac , amr_subframe -> p_lag , p -> pitch_lag_int , subframe ) ;\n }\n else ff_decode_pitch_lag ( & pitch_lag_int , & pitch_lag_frac , amr_subframe -> p_lag , p -> pitch_lag_int , subframe , mode != MODE_4k75 && mode != MODE_5k15 , mode <= MODE_6k7 ? 4 : ( mode == MODE_7k95 ? 5 : 6 ) ) ;\n p -> pitch_lag_int = pitch_lag_int ;\n pitch_lag_frac <<= ( p -> cur_frame_mode != MODE_12k2 ) ;\n pitch_lag_int += pitch_lag_frac > 0 ;\n ff_acelp_interpolatef ( p -> excitation , p -> excitation + 1 - pitch_lag_int , ff_b60_sinc , 6 , pitch_lag_frac + 6 - 6 * ( pitch_lag_frac > 0 ) , 10 , AMR_SUBFRAME_SIZE ) ;\n memcpy ( p -> pitch_vector , p -> excitation , AMR_SUBFRAME_SIZE * sizeof ( float ) ) ;\n }"}
{"idx": 19332, "target": 0, "func": "static void handle_message_header_expected_byte ( tvbuff_t * tvb , gint offset , proto_tree * field_tree , guint8 expected_value ) {\n proto_item * item ;\n guint8 byte_value ;\n item = proto_tree_add_item ( field_tree , hf_alljoyn_uint8 , tvb , offset , 1 , ENC_NA ) ;\n byte_value = tvb_get_guint8 ( tvb , offset ) ;\n if ( expected_value == byte_value ) {\n proto_item_set_text ( item , \"0x%02x byte\" , expected_value ) ;\n }\n else {\n proto_item_set_text ( item , \"Expected '0x%02x byte' but found '0x%02x'\" , expected_value , byte_value ) ;\n }\n }"}
{"idx": 19333, "target": 0, "func": "static void pdf_run_Do_form ( fz_context * ctx , pdf_processor * proc , const char * name , pdf_xobject * xobj , pdf_obj * page_resources ) {\n pdf_run_xobject ( ctx , ( pdf_run_processor * ) proc , xobj , page_resources , & fz_identity , 0 ) ;\n }"}
{"idx": 19334, "target": 0, "func": "static void ECCategorizePoints ( EntityChar * ec ) {\n Entity * ent ;\n for ( ent = ec -> splines ;\n ent != NULL ;\n ent = ent -> next ) if ( ent -> type == et_splines ) {\n SPLCategorizePoints ( ent -> u . splines . splines ) ;\n SPLCategorizePoints ( ent -> clippath ) ;\n }\n }"}
{"idx": 19335, "target": 0, "func": "void remove_tap_listener_rtp_event ( void ) {\n remove_tap_listener ( & ( the_tapinfo_rtp_struct . rtp_event_dummy ) ) ;\n have_rtp_event_tap_listener = FALSE ;\n }"}
{"idx": 19336, "target": 0, "func": "bool input_DecoderHasFormatChanged ( decoder_t * p_dec , es_format_t * p_fmt , vlc_meta_t * * pp_meta ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n bool b_changed ;\n vlc_mutex_lock ( & p_owner -> lock ) ;\n b_changed = p_owner -> b_fmt_description ;\n if ( b_changed ) {\n if ( p_fmt ) es_format_Copy ( p_fmt , & p_owner -> fmt_description ) ;\n if ( pp_meta ) {\n * pp_meta = NULL ;\n if ( p_owner -> p_description ) {\n * pp_meta = vlc_meta_New ( ) ;\n if ( * pp_meta ) vlc_meta_Merge ( * pp_meta , p_owner -> p_description ) ;\n }\n }\n p_owner -> b_fmt_description = false ;\n }\n vlc_mutex_unlock ( & p_owner -> lock ) ;\n return b_changed ;\n }"}
{"idx": 19337, "target": 0, "func": "static bool hyperv_time_enable_needed ( void * opaque ) {\n X86CPU * cpu = opaque ;\n CPUX86State * env = & cpu -> env ;\n return env -> msr_hv_tsc != 0 ;\n }"}
{"idx": 19338, "target": 0, "func": "void gs_memory_set_vm_reclaim ( gs_ref_memory_t * mem , bool enabled ) {\n gs_memory_gc_status_t stat ;\n gs_ref_memory_t * stable = ( gs_ref_memory_t * ) mem -> stable_memory ;\n gs_memory_gc_status ( mem , & stat ) ;\n stat . enabled = enabled ;\n gs_memory_set_gc_status ( mem , & stat ) ;\n gs_memory_gc_status ( stable , & stat ) ;\n stat . enabled = enabled ;\n gs_memory_set_gc_status ( stable , & stat ) ;\n }"}
{"idx": 19339, "target": 0, "func": "static int aes_ofb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_ofb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }"}
{"idx": 19340, "target": 0, "func": "static void sockaddrs_from_restrict_u ( sockaddr_u * psaA , sockaddr_u * psaM , restrict_u * pres , int ipv6 ) {\n ZERO ( * psaA ) ;\n ZERO ( * psaM ) ;\n if ( ! ipv6 ) {\n psaA -> sa . sa_family = AF_INET ;\n psaA -> sa4 . sin_addr . s_addr = htonl ( pres -> u . v4 . addr ) ;\n psaM -> sa . sa_family = AF_INET ;\n psaM -> sa4 . sin_addr . s_addr = htonl ( pres -> u . v4 . mask ) ;\n }\n else {\n psaA -> sa . sa_family = AF_INET6 ;\n memcpy ( & psaA -> sa6 . sin6_addr , & pres -> u . v6 . addr , sizeof ( psaA -> sa6 . sin6_addr ) ) ;\n psaM -> sa . sa_family = AF_INET6 ;\n memcpy ( & psaM -> sa6 . sin6_addr , & pres -> u . v6 . mask , sizeof ( psaA -> sa6 . sin6_addr ) ) ;\n }\n }"}
{"idx": 19341, "target": 0, "func": "static int ebml_level_end ( MatroskaDemuxContext * matroska ) {\n AVIOContext * pb = matroska -> ctx -> pb ;\n int64_t pos = avio_tell ( pb ) ;\n if ( matroska -> num_levels > 0 ) {\n MatroskaLevel * level = & matroska -> levels [ matroska -> num_levels - 1 ] ;\n if ( pos - level -> start >= level -> length || matroska -> current_id ) {\n matroska -> num_levels -- ;\n return 1 ;\n }\n }\n return 0 ;\n }"}
{"idx": 19342, "target": 0, "func": "int fill_schema_column_privileges ( THD * thd , TABLE_LIST * tables , COND * cond ) {\n # ifndef NO_EMBEDDED_ACCESS_CHECKS int error = 0 ;\n uint index ;\n char buff [ 100 ] ;\n TABLE * table = tables -> table ;\n bool no_global_access = check_access ( thd , SELECT_ACL , \"mysql\" , 0 , 1 , 1 , 0 ) ;\n char * curr_host = thd -> security_ctx -> priv_host_name ( ) ;\n DBUG_ENTER ( \"fill_schema_table_privileges\" ) ;\n rw_rdlock ( & LOCK_grant ) ;\n for ( index = 0 ;\n index < column_priv_hash . records ;\n index ++ ) {\n const char * user , * host , * is_grantable = \"YES\" ;\n GRANT_TABLE * grant_table = ( GRANT_TABLE * ) hash_element ( & column_priv_hash , index ) ;\n if ( ! ( user = grant_table -> user ) ) user = \"\" ;\n if ( ! ( host = grant_table -> host . hostname ) ) host = \"\" ;\n if ( no_global_access && ( strcmp ( thd -> security_ctx -> priv_user , user ) || my_strcasecmp ( system_charset_info , curr_host , host ) ) ) continue ;\n ulong table_access = grant_table -> cols ;\n if ( table_access != 0 ) {\n if ( ! ( grant_table -> privs & GRANT_ACL ) ) is_grantable = \"NO\" ;\n ulong test_access = table_access & ~ GRANT_ACL ;\n strxmov ( buff , \"'\" , user , \"'@'\" , host , \"'\" , NullS ) ;\n if ( ! test_access ) continue ;\n else {\n ulong j ;\n int cnt ;\n for ( cnt = 0 , j = SELECT_ACL ;\n j <= TABLE_ACLS ;\n cnt ++ , j <<= 1 ) {\n if ( test_access & j ) {\n for ( uint col_index = 0 ;\n col_index < grant_table -> hash_columns . records ;\n col_index ++ ) {\n GRANT_COLUMN * grant_column = ( GRANT_COLUMN * ) hash_element ( & grant_table -> hash_columns , col_index ) ;\n if ( ( grant_column -> rights & j ) && ( table_access & j ) ) {\n if ( update_schema_privilege ( thd , table , buff , grant_table -> db , grant_table -> tname , grant_column -> column , grant_column -> key_length , command_array [ cnt ] , command_lengths [ cnt ] , is_grantable ) ) {\n error = 1 ;\n goto err ;\n }\n }\n }\n }\n }\n }\n }\n }\n err : rw_unlock ( & LOCK_grant ) ;\n DBUG_RETURN ( error ) ;\n # else return ( 0 ) ;\n # endif }"}
{"idx": 19343, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( HostedAppTest , ShouldUseWebAppFrame ) {\n base : : CommandLine : : ForCurrentProcess ( ) -> AppendSwitch ( switches : : kEnableWebAppFrame ) ;\n const Extension * bookmark_app = InstallExtensionWithSourceAndFlags ( test_data_dir_ . AppendASCII ( \"app\" ) , 1 , extensions : : Manifest : : INTERNAL , extensions : : Extension : : FROM_BOOKMARK ) ;\n ASSERT_TRUE ( bookmark_app ) ;\n WebContents * bookmark_app_window = OpenApplication ( AppLaunchParams ( browser ( ) -> profile ( ) , bookmark_app , extensions : : LAUNCH_CONTAINER_WINDOW , NEW_WINDOW , extensions : : SOURCE_UNTRACKED ) ) ;\n ASSERT_TRUE ( bookmark_app_window ) ;\n ASSERT_TRUE ( LoadExtension ( test_data_dir_ . AppendASCII ( \"packaged_app\" ) ) ) ;\n const Extension * packaged_app = nullptr ;\n extensions : : ExtensionRegistry * registry = extensions : : ExtensionRegistry : : Get ( browser ( ) -> profile ( ) ) ;\n for ( const scoped_refptr < const extensions : : Extension > & extension : registry -> enabled_extensions ( ) ) {\n if ( extension -> name ( ) == \"Packaged App Test\" ) packaged_app = extension . get ( ) ;\n }\n ASSERT_TRUE ( packaged_app ) ;\n WebContents * packaged_app_window = OpenApplication ( AppLaunchParams ( browser ( ) -> profile ( ) , packaged_app , extensions : : LAUNCH_CONTAINER_WINDOW , NEW_WINDOW , extensions : : SOURCE_UNTRACKED ) ) ;\n ASSERT_TRUE ( packaged_app_window ) ;\n DevToolsWindow * devtools_window = DevToolsWindowTesting : : OpenDevToolsWindowSync ( browser ( ) , false ) ;\n ASSERT_EQ ( 4u , chrome : : GetBrowserCount ( browser ( ) -> profile ( ) , browser ( ) -> host_desktop_type ( ) ) ) ;\n Browser * bookmark_app_browser = nullptr ;\n Browser * packaged_app_browser = nullptr ;\n Browser * dev_tools_browser = nullptr ;\n for ( chrome : : BrowserIterator it ;\n ! it . done ( ) ;\n it . Next ( ) ) {\n if ( * it == browser ( ) ) {\n continue ;\n }\n else if ( ( * it ) -> app_name ( ) == DevToolsWindow : : kDevToolsApp ) {\n dev_tools_browser = * it ;\n }\n else if ( ( * it ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) == bookmark_app_window ) {\n bookmark_app_browser = * it ;\n }\n else {\n packaged_app_browser = * it ;\n }\n }\n ASSERT_TRUE ( dev_tools_browser ) ;\n ASSERT_TRUE ( bookmark_app_browser ) ;\n ASSERT_TRUE ( bookmark_app_browser != browser ( ) ) ;\n ASSERT_TRUE ( packaged_app_browser ) ;\n ASSERT_TRUE ( packaged_app_browser != browser ( ) ) ;\n ASSERT_TRUE ( packaged_app_browser != bookmark_app_browser ) ;\n EXPECT_FALSE ( browser ( ) -> SupportsWindowFeature ( Browser : : FEATURE_WEBAPPFRAME ) ) ;\n EXPECT_FALSE ( dev_tools_browser -> SupportsWindowFeature ( Browser : : FEATURE_WEBAPPFRAME ) ) ;\n EXPECT_EQ ( browser ( ) -> host_desktop_type ( ) == chrome : : HOST_DESKTOP_TYPE_ASH , bookmark_app_browser -> SupportsWindowFeature ( Browser : : FEATURE_WEBAPPFRAME ) ) ;\n EXPECT_FALSE ( packaged_app_browser -> SupportsWindowFeature ( Browser : : FEATURE_WEBAPPFRAME ) ) ;\n DevToolsWindowTesting : : CloseDevToolsWindowSync ( devtools_window ) ;\n }"}
{"idx": 19344, "target": 0, "func": "static void _slurm_rpc_event_log ( slurm_msg_t * msg ) {\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n slurm_event_log_msg_t * event_log_msg ;\n int error_code = SLURM_SUCCESS ;\n event_log_msg = ( slurm_event_log_msg_t * ) msg -> data ;\n if ( ! validate_slurm_user ( uid ) ) {\n error_code = ESLURM_USER_ID_MISSING ;\n error ( \"Security violation, REQUEST_EVENT_LOG from uid=%d\" , uid ) ;\n }\n else if ( event_log_msg -> level == LOG_LEVEL_ERROR ) {\n error ( \"%s\" , event_log_msg -> string ) ;\n }\n else if ( event_log_msg -> level == LOG_LEVEL_INFO ) {\n info ( \"%s\" , event_log_msg -> string ) ;\n }\n else if ( event_log_msg -> level == LOG_LEVEL_VERBOSE ) {\n verbose ( \"%s\" , event_log_msg -> string ) ;\n }\n else if ( event_log_msg -> level == LOG_LEVEL_DEBUG ) {\n debug ( \"%s\" , event_log_msg -> string ) ;\n }\n else if ( event_log_msg -> level == LOG_LEVEL_DEBUG2 ) {\n debug2 ( \"%s\" , event_log_msg -> string ) ;\n }\n else if ( event_log_msg -> level == LOG_LEVEL_DEBUG3 ) {\n debug3 ( \"%s\" , event_log_msg -> string ) ;\n }\n else if ( event_log_msg -> level == LOG_LEVEL_DEBUG4 ) {\n debug4 ( \"%s\" , event_log_msg -> string ) ;\n }\n else if ( event_log_msg -> level == LOG_LEVEL_DEBUG5 ) {\n debug5 ( \"%s\" , event_log_msg -> string ) ;\n }\n else {\n error_code = EINVAL ;\n error ( \"Invalid message level: %u\" , event_log_msg -> level ) ;\n error ( \"%s\" , event_log_msg -> string ) ;\n }\n slurm_send_rc_msg ( msg , error_code ) ;\n }"}
{"idx": 19345, "target": 0, "func": "static int dissect_rsl_ie_paging_load ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_tree * ie_tree ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_PAGING_LOAD ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 3 , ett_ie_paging_load , NULL , \"Paging Load IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( ie_tree , hf_rsl_paging_load , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n offset = offset + 2 ;\n return offset ;\n }"}
{"idx": 19346, "target": 0, "func": "static circuit_t * iax2_new_circuit_for_call ( packet_info * pinfo , proto_item * item , guint circuit_id , guint framenum , iax_call_data * iax_call , gboolean reversed ) {\n circuit_t * res ;\n if ( ! iax_call ) {\n return NULL ;\n }\n if ( ( reversed && iax_call -> n_reverse_circuit_ids >= IAX_MAX_TRANSFERS ) || ( ! reversed && iax_call -> n_forward_circuit_ids >= IAX_MAX_TRANSFERS ) ) {\n expert_add_info ( pinfo , item , & ei_iax_too_many_transfers ) ;\n return NULL ;\n }\n res = circuit_new ( CT_IAX2 , circuit_id , framenum ) ;\n circuit_add_proto_data ( res , proto_iax2 , iax_call ) ;\n if ( reversed ) iax_call -> reverse_circuit_ids [ iax_call -> n_reverse_circuit_ids ++ ] = circuit_id ;\n else iax_call -> forward_circuit_ids [ iax_call -> n_forward_circuit_ids ++ ] = circuit_id ;\n return res ;\n }"}
{"idx": 19347, "target": 0, "func": "static int qemuMonitorTextParseBlockJob ( const char * text , const char * device , virDomainBlockJobInfoPtr info ) {\n const char * next = NULL ;\n int ret = 0 ;\n if ( strstr ( text , \"Device '\" ) && strstr ( text , \"' not found\" ) ) {\n qemuReportError ( VIR_ERR_OPERATION_INVALID , \"%s\" , _ ( \"Device not found\" ) ) ;\n return - 1 ;\n }\n if ( strstr ( text , \"Device '\" ) && strstr ( text , \"' is in use\" ) ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"Device %s in use\" ) , device ) ;\n return - 1 ;\n }\n if ( strstr ( text , \"has not been activated\" ) ) {\n qemuReportError ( VIR_ERR_OPERATION_INVALID , \\ _ ( \"No active operation on device: %s\" ) , device ) ;\n return - 1 ;\n }\n if ( strstr ( text , \"No active jobs\" ) ) {\n return 0 ;\n }\n if ( strstr ( text , \"Operation is not supported\" ) ) {\n qemuReportError ( VIR_ERR_OPERATION_INVALID , _ ( \"Operation is not supported for device: %s\" ) , device ) ;\n return - 1 ;\n }\n if ( STREQ ( text , \"\" ) ) return 0 ;\n do {\n ret = qemuMonitorTextParseBlockJobOne ( text , device , info , & next ) ;\n text = next ;\n }\n while ( text && ret == - EAGAIN ) ;\n if ( ret < 0 ) return - 1 ;\n return ret ;\n }"}
{"idx": 19348, "target": 0, "func": "static void qcms_transform_module_gamma_lut ( struct qcms_modular_transform * transform , float * src , float * dest , size_t length ) {\n size_t i ;\n float out_r , out_g , out_b ;\n for ( i = 0 ;\n i < length ;\n i ++ ) {\n float in_r = * src ++ ;\n float in_g = * src ++ ;\n float in_b = * src ++ ;\n out_r = lut_interp_linear ( in_r , transform -> output_gamma_lut_r , transform -> output_gamma_lut_r_length ) ;\n out_g = lut_interp_linear ( in_g , transform -> output_gamma_lut_g , transform -> output_gamma_lut_g_length ) ;\n out_b = lut_interp_linear ( in_b , transform -> output_gamma_lut_b , transform -> output_gamma_lut_b_length ) ;\n * dest ++ = clamp_float ( out_r ) ;\n * dest ++ = clamp_float ( out_g ) ;\n * dest ++ = clamp_float ( out_b ) ;\n }\n }"}
{"idx": 19349, "target": 0, "func": "static TX_MODE select_tx_mode ( const VP9_COMP * cpi ) {\n if ( cpi -> mb . e_mbd . lossless ) return ONLY_4X4 ;\n if ( cpi -> sf . tx_size_search_method == USE_LARGESTALL ) return ALLOW_32X32 ;\n else if ( cpi -> sf . tx_size_search_method == USE_FULL_RD || cpi -> sf . tx_size_search_method == USE_TX_8X8 ) return TX_MODE_SELECT ;\n else return cpi -> common . tx_mode ;\n }"}
{"idx": 19350, "target": 0, "func": "TEST ( ExtensionCSPValidator , IsSecure ) {\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( std : : string ( ) , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"script-src 'self';\n object-src 'self';\n\" , MissingSecureSrcWarning ( \"script-src\" ) , MissingSecureSrcWarning ( \"object-src\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"img-src https://google.com\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"img-src https://google.com;\n script-src 'self';\n object-src 'self';\n\" , MissingSecureSrcWarning ( \"script-src\" ) , MissingSecureSrcWarning ( \"object-src\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"script-src a b\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"script-src;\n object-src 'self';\n\" , InsecureValueWarning ( \"script-src\" , \"a\" ) , InsecureValueWarning ( \"script-src\" , \"b\" ) , MissingSecureSrcWarning ( \"object-src\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src *\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src;\n\" , InsecureValueWarning ( \"default-src\" , \"*\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self';\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'none';\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' ftp://google.com\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"ftp://google.com\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' https://google.com;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src *;\n default-src 'self'\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src;\n default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"*\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self';\n default-src *;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src 'self';\n default-src;\n\" ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self';\n default-src *;\n script-src *;\n script-src 'self'\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src 'self';\n default-src;\n script-src;\n script-src 'self';\n\" , InsecureValueWarning ( \"script-src\" , \"*\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self';\n default-src *;\n script-src 'self';\n script-src *;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src 'self';\n default-src;\n script-src 'self';\n script-src;\n\" ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src *;\n script-src 'self'\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src;\n script-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"*\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src *;\n script-src 'self';\n img-src 'self'\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src;\n script-src 'self';\n img-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"*\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src *;\n script-src 'self';\n object-src 'self';\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src;\n script-src 'self';\n object-src 'self';\n\" ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"script-src 'self';\n object-src 'self';\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'unsafe-eval';\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'unsafe-eval'\" , OPTIONS_NONE ) , \"default-src;\n\" , InsecureValueWarning ( \"default-src\" , \"'unsafe-eval'\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'unsafe-inline'\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src;\n\" , InsecureValueWarning ( \"default-src\" , \"'unsafe-inline'\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'unsafe-inline' 'none'\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src 'none';\n\" , InsecureValueWarning ( \"default-src\" , \"'unsafe-inline'\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' http://google.com\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"http://google.com\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' https://google.com;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' chrome://resources;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' chrome-extension://aabbcc;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' chrome-extension-resource://aabbcc;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' https:\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"https:\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' http:\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"http:\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' google.com\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"google.com\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' *\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"*\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' *:*\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"*:*\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' *:*/\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"*:*/\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' *:*/path\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"*:*/path\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' https://\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"https://\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' https://*:*\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"https://*:*\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' https://*:*/\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"https://*:*/\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' https://*:*/path\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"https://*:*/path\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' https://*.com\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"https://*.com\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' https://*.*.google.com/\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"https://*.*.google.com/\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' https://*.*.google.com:*/\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"https://*.*.google.com:*/\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' https://www.*.google.com/\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"https://www.*.google.com/\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' https://www.*.google.com:*/\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"https://www.*.google.com:*/\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' chrome://*\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"chrome://*\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' chrome-extension://*\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"chrome-extension://*\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' chrome-extension://\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"chrome-extension://\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' https://*.google.com;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' https://*.google.com:1;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' https://*.google.com:*;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' https://*.google.com:1/;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' https://*.google.com:*/;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' http://127.0.0.1;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' http://localhost;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' http://lOcAlHoSt;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src 'self' http://lOcAlHoSt;\n\" ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' http://127.0.0.1:9999;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' http://localhost:8888;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' http://127.0.0.1.example.com\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"http://127.0.0.1.example.com\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' http://localhost.example.com\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"http://localhost.example.com\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' blob:;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' blob:http://example.com/XXX\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"blob:http://example.com/XXX\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' filesystem:;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' filesystem:http://example.com/XX\" , OPTIONS_ALLOW_UNSAFE_EVAL ) , \"default-src 'self';\n\" , InsecureValueWarning ( \"default-src\" , \"filesystem:http://example.com/XX\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' https://*.googleapis.com;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src 'self' https://x.googleapis.com;\n\" , OPTIONS_ALLOW_UNSAFE_EVAL ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"script-src 'self';\n object-src *\" , OPTIONS_NONE ) , \"script-src 'self';\n object-src;\n\" , InsecureValueWarning ( \"object-src\" , \"*\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"script-src 'self';\n object-src *\" , OPTIONS_ALLOW_INSECURE_OBJECT_SRC ) , \"script-src 'self';\n object-src;\n\" , InsecureValueWarning ( \"object-src\" , \"*\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"script-src 'self';\n object-src *;\n plugin-types application/pdf;\n\" , OPTIONS_ALLOW_INSECURE_OBJECT_SRC ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"script-src 'self';\n object-src *;\n \" \"plugin-types application/x-shockwave-flash\" , OPTIONS_ALLOW_INSECURE_OBJECT_SRC ) , \"script-src 'self';\n object-src;\n \" \"plugin-types application/x-shockwave-flash;\n\" , InsecureValueWarning ( \"object-src\" , \"*\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"script-src 'self';\n object-src *;\n \" \"plugin-types application/x-shockwave-flash application/pdf;\n\" , OPTIONS_ALLOW_INSECURE_OBJECT_SRC ) , \"script-src 'self';\n object-src;\n \" \"plugin-types application/x-shockwave-flash application/pdf;\n\" , InsecureValueWarning ( \"object-src\" , \"*\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"script-src 'self';\n object-src http://www.example.com;\n \" \"plugin-types application/pdf;\n\" , OPTIONS_ALLOW_INSECURE_OBJECT_SRC ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"object-src http://www.example.com blob:;\n script-src 'self';\n \" \"plugin-types application/pdf;\n\" , OPTIONS_ALLOW_INSECURE_OBJECT_SRC ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"script-src 'self';\n object-src http://*.example.com;\n \" \"plugin-types application/pdf;\n\" , OPTIONS_ALLOW_INSECURE_OBJECT_SRC ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"script-src *;\n object-src *;\n plugin-types application/pdf;\n\" , OPTIONS_ALLOW_INSECURE_OBJECT_SRC ) , \"script-src;\n object-src *;\n plugin-types application/pdf;\n\" , InsecureValueWarning ( \"script-src\" , \"*\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src;\n script-src\" \" 'sha256-hndjYvzUzy2Ykuad81Cwsl1FOXX/qYs/aDVyUyNZwBw='\" \" 'sha384-bSVm1i3sjPBRM4TwZtYTDjk9JxZMExYHWbFmP1SxDhJH4ue0Wu9OPOkY5hcqRcS\" \"t'\" \" 'sha512-440MmBLtj9Kp5Bqloogn9BqGDylY8vFsv5/zXL1zH2fJVssCoskRig4gyM+9Kqw\" \"vCSapSz5CVoUGHQcxv43UQg==';\n\" , OPTIONS_NONE ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src;\n script-src 'sha1-eYyYGmKWdhpUewohaXk9o8IaLSw=';\n\" , OPTIONS_NONE ) , \"default-src;\n script-src;\n\" , InsecureValueWarning ( \"script-src\" , \"'sha1-eYyYGmKWdhpUewohaXk9o8IaLSw='\" ) ) ) ;\n EXPECT_TRUE ( CheckCSP ( SanitizeCSP ( \"default-src;\n script-src 'sha256-hndjYvzUzy2Ykuad81Cwsl1FOXX/qYs/aDVyUyNZ\" \"wBw= sha256-qznLcsROx4GACP2dm0UCKCzCG+HiZ1guq6ZZDob/Tng=';\n\" , OPTIONS_NONE ) , \"default-src;\n script-src;\n\" , InsecureValueWarning ( \"script-src\" , \"'sha256-hndjYvzUzy2Ykuad81Cwsl1FOXX/qYs/aDVyUyNZwBw=\" ) , InsecureValueWarning ( \"script-src\" , \"sha256-qznLcsROx4GACP2dm0UCKCzCG+HiZ1guq6ZZDob/Tng='\" ) ) ) ;\n }"}
{"idx": 19351, "target": 0, "func": "int event_del ( struct event * ev ) {\n struct event_base * base ;\n event_debug ( ( \"event_del: %p, callback %p\" , ev , ev -> ev_callback ) ) ;\n if ( ev -> ev_base == NULL ) return ( - 1 ) ;\n base = ev -> ev_base ;\n assert ( ! ( ev -> ev_flags & ~ EVLIST_ALL ) ) ;\n if ( ev -> ev_ncalls && ev -> ev_pncalls ) {\n * ev -> ev_pncalls = 0 ;\n }\n if ( ev -> ev_flags & EVLIST_TIMEOUT ) event_queue_remove ( base , ev , EVLIST_TIMEOUT ) ;\n if ( ev -> ev_flags & EVLIST_ACTIVE ) event_queue_remove ( base , ev , EVLIST_ACTIVE ) ;\n if ( ev -> ev_flags & EVLIST_INSERTED ) {\n event_queue_remove ( base , ev , EVLIST_INSERTED ) ;\n return ( base -> evsel -> del ( base -> evbase , ev ) ) ;\n }\n return ( 0 ) ;\n }"}
{"idx": 19352, "target": 0, "func": "void set_var ( struct ctl_var * * kv , const char * data , u_long size , u_short def ) {\n struct ctl_var * k ;\n const char * s ;\n const char * t ;\n char * td ;\n if ( NULL == data || ! size ) return ;\n k = * kv ;\n if ( k != NULL ) {\n while ( ! ( EOV & k -> flags ) ) {\n if ( NULL == k -> text ) {\n td = emalloc ( size ) ;\n memcpy ( td , data , size ) ;\n k -> text = td ;\n k -> flags = def ;\n return ;\n }\n else {\n s = data ;\n t = k -> text ;\n while ( * t != '=' && * s == * t ) {\n s ++ ;\n t ++ ;\n }\n if ( * s == * t && ( ( * t == '=' ) || ! * t ) ) {\n td = erealloc ( ( void * ) ( intptr_t ) k -> text , size ) ;\n memcpy ( td , data , size ) ;\n k -> text = td ;\n k -> flags = def ;\n return ;\n }\n }\n k ++ ;\n }\n }\n td = add_var ( kv , size , def ) ;\n memcpy ( td , data , size ) ;\n }"}
{"idx": 19353, "target": 0, "func": "proto_item * parseBoolean ( proto_tree * tree , tvbuff_t * tvb , packet_info * pinfo _U_ , gint * pOffset , int hfIndex ) {\n proto_item * item = proto_tree_add_item ( tree , hfIndex , tvb , * pOffset , 1 , ENC_LITTLE_ENDIAN ) ;\n * pOffset += 1 ;\n return item ;\n }"}
{"idx": 19354, "target": 0, "func": "void kadmin_delstring ( int argc , char * argv [ ] ) {\n kadm5_ret_t retval ;\n char * pname , * canon = NULL , * key ;\n krb5_principal princ = NULL ;\n if ( argc != 3 ) {\n fprintf ( stderr , _ ( \"usage: del_string principal key\\n\" ) ) ;\n return ;\n }\n pname = argv [ 1 ] ;\n key = argv [ 2 ] ;\n retval = kadmin_parse_name ( pname , & princ ) ;\n if ( retval ) {\n com_err ( \"delstring\" , retval , _ ( \"while parsing principal\" ) ) ;\n return ;\n }\n retval = krb5_unparse_name ( context , princ , & canon ) ;\n if ( retval ) {\n com_err ( \"del_string\" , retval , _ ( \"while canonicalizing principal\" ) ) ;\n goto cleanup ;\n }\n retval = kadm5_set_string ( handle , princ , key , NULL ) ;\n if ( retval ) {\n com_err ( \"del_string\" , retval , _ ( \"while deleting attribute from principal \\\"%s\\\"\" ) , canon ) ;\n goto cleanup ;\n }\n printf ( _ ( \"Attribute removed from principal \\\"%s\\\".\\n\" ) , canon ) ;\n cleanup : krb5_free_principal ( context , princ ) ;\n free ( canon ) ;\n return ;\n }"}
{"idx": 19355, "target": 0, "func": "int qemuMonitorJSONAddNetdev ( qemuMonitorPtr mon , const char * netdevstr ) {\n int ret = - 1 ;\n virJSONValuePtr cmd = NULL ;\n virJSONValuePtr reply = NULL ;\n virJSONValuePtr args = NULL ;\n cmd = qemuMonitorJSONMakeCommand ( \"netdev_add\" , NULL ) ;\n if ( ! cmd ) return - 1 ;\n args = qemuMonitorJSONKeywordStringToJSON ( netdevstr , \"type\" ) ;\n if ( ! args ) goto cleanup ;\n if ( virJSONValueObjectAppend ( cmd , \"arguments\" , args ) < 0 ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n args = NULL ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n cleanup : virJSONValueFree ( args ) ;\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 19356, "target": 1, "func": "void ff_xvmc_decode_mb ( MpegEncContext * s ) {\n XvMCMacroBlock * mv_block ;\n struct xvmc_pix_fmt * render ;\n int i , cbp , blocks_per_mb ;\n const int mb_xy = s -> mb_y * s -> mb_stride + s -> mb_x ;\n if ( s -> encoding ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"XVMC doesn't support encoding!!!\\n\" ) ;\n return ;\n }\n if ( ! s -> mb_intra ) {\n s -> last_dc [ 0 ] = s -> last_dc [ 1 ] = s -> last_dc [ 2 ] = 128 << s -> intra_dc_precision ;\n }\n s -> mb_skipped = 0 ;\n s -> current_picture . f . qscale_table [ mb_xy ] = s -> qscale ;\n render = ( struct xvmc_pix_fmt * ) s -> current_picture . f . data [ 2 ] ;\n assert ( render ) ;\n assert ( render -> xvmc_id == AV_XVMC_ID ) ;\n assert ( render -> mv_blocks ) ;\n mv_block = & render -> mv_blocks [ render -> start_mv_blocks_num + render -> filled_mv_blocks_num ] ;\n mv_block -> x = s -> mb_x ;\n mv_block -> y = s -> mb_y ;\n mv_block -> dct_type = s -> interlaced_dct ;\n if ( s -> mb_intra ) {\n mv_block -> macroblock_type = XVMC_MB_TYPE_INTRA ;\n }\n else {\n mv_block -> macroblock_type = XVMC_MB_TYPE_PATTERN ;\n if ( s -> mv_dir & MV_DIR_FORWARD ) {\n mv_block -> macroblock_type |= XVMC_MB_TYPE_MOTION_FORWARD ;\n mv_block -> PMV [ 0 ] [ 0 ] [ 0 ] = s -> mv [ 0 ] [ 0 ] [ 0 ] ;\n mv_block -> PMV [ 0 ] [ 0 ] [ 1 ] = s -> mv [ 0 ] [ 0 ] [ 1 ] ;\n mv_block -> PMV [ 1 ] [ 0 ] [ 0 ] = s -> mv [ 0 ] [ 1 ] [ 0 ] ;\n mv_block -> PMV [ 1 ] [ 0 ] [ 1 ] = s -> mv [ 0 ] [ 1 ] [ 1 ] ;\n }\n if ( s -> mv_dir & MV_DIR_BACKWARD ) {\n mv_block -> macroblock_type |= XVMC_MB_TYPE_MOTION_BACKWARD ;\n mv_block -> PMV [ 0 ] [ 1 ] [ 0 ] = s -> mv [ 1 ] [ 0 ] [ 0 ] ;\n mv_block -> PMV [ 0 ] [ 1 ] [ 1 ] = s -> mv [ 1 ] [ 0 ] [ 1 ] ;\n mv_block -> PMV [ 1 ] [ 1 ] [ 0 ] = s -> mv [ 1 ] [ 1 ] [ 0 ] ;\n mv_block -> PMV [ 1 ] [ 1 ] [ 1 ] = s -> mv [ 1 ] [ 1 ] [ 1 ] ;\n }\n switch ( s -> mv_type ) {\n case MV_TYPE_16X16 : mv_block -> motion_type = XVMC_PREDICTION_FRAME ;\n break ;\n case MV_TYPE_16X8 : mv_block -> motion_type = XVMC_PREDICTION_16x8 ;\n break ;\n case MV_TYPE_FIELD : mv_block -> motion_type = XVMC_PREDICTION_FIELD ;\n if ( s -> picture_structure == PICT_FRAME ) {\n mv_block -> PMV [ 0 ] [ 0 ] [ 1 ] <<= 1 ;\n mv_block -> PMV [ 1 ] [ 0 ] [ 1 ] <<= 1 ;\n mv_block -> PMV [ 0 ] [ 1 ] [ 1 ] <<= 1 ;\n mv_block -> PMV [ 1 ] [ 1 ] [ 1 ] <<= 1 ;\n }\n break ;\n case MV_TYPE_DMV : mv_block -> motion_type = XVMC_PREDICTION_DUAL_PRIME ;\n if ( s -> picture_structure == PICT_FRAME ) {\n mv_block -> PMV [ 0 ] [ 0 ] [ 0 ] = s -> mv [ 0 ] [ 0 ] [ 0 ] ;\n mv_block -> PMV [ 0 ] [ 0 ] [ 1 ] = s -> mv [ 0 ] [ 0 ] [ 1 ] << 1 ;\n mv_block -> PMV [ 0 ] [ 1 ] [ 0 ] = s -> mv [ 0 ] [ 0 ] [ 0 ] ;\n mv_block -> PMV [ 0 ] [ 1 ] [ 1 ] = s -> mv [ 0 ] [ 0 ] [ 1 ] << 1 ;\n mv_block -> PMV [ 1 ] [ 0 ] [ 0 ] = s -> mv [ 0 ] [ 2 ] [ 0 ] ;\n mv_block -> PMV [ 1 ] [ 0 ] [ 1 ] = s -> mv [ 0 ] [ 2 ] [ 1 ] << 1 ;\n mv_block -> PMV [ 1 ] [ 1 ] [ 0 ] = s -> mv [ 0 ] [ 3 ] [ 0 ] ;\n mv_block -> PMV [ 1 ] [ 1 ] [ 1 ] = s -> mv [ 0 ] [ 3 ] [ 1 ] << 1 ;\n }\n else {\n mv_block -> PMV [ 0 ] [ 1 ] [ 0 ] = s -> mv [ 0 ] [ 2 ] [ 0 ] ;\n mv_block -> PMV [ 0 ] [ 1 ] [ 1 ] = s -> mv [ 0 ] [ 2 ] [ 1 ] ;\n }\n break ;\n default : assert ( 0 ) ;\n }\n mv_block -> motion_vertical_field_select = 0 ;\n if ( s -> mv_type == MV_TYPE_FIELD || s -> mv_type == MV_TYPE_16X8 ) {\n mv_block -> motion_vertical_field_select |= s -> field_select [ 0 ] [ 0 ] ;\n mv_block -> motion_vertical_field_select |= s -> field_select [ 1 ] [ 0 ] << 1 ;\n mv_block -> motion_vertical_field_select |= s -> field_select [ 0 ] [ 1 ] << 2 ;\n mv_block -> motion_vertical_field_select |= s -> field_select [ 1 ] [ 1 ] << 3 ;\n }\n }\n mv_block -> index = render -> next_free_data_block_num ;\n blocks_per_mb = 6 ;\n if ( s -> chroma_format >= 2 ) {\n blocks_per_mb = 4 + ( 1 << s -> chroma_format ) ;\n }\n cbp = 0 ;\n for ( i = 0 ;\n i < blocks_per_mb ;\n i ++ ) {\n cbp += cbp ;\n if ( s -> block_last_index [ i ] >= 0 ) cbp ++ ;\n }\n if ( s -> flags & CODEC_FLAG_GRAY ) {\n if ( s -> mb_intra ) {\n for ( i = 4 ;\n i < blocks_per_mb ;\n i ++ ) {\n memset ( s -> pblocks [ i ] , 0 , sizeof ( * s -> pblocks [ i ] ) ) ;\n if ( ! render -> unsigned_intra ) * s -> pblocks [ i ] [ 0 ] = 1 << 10 ;\n }\n }\n else {\n cbp &= 0xf << ( blocks_per_mb - 4 ) ;\n blocks_per_mb = 4 ;\n }\n }\n mv_block -> coded_block_pattern = cbp ;\n if ( cbp == 0 ) mv_block -> macroblock_type &= ~ XVMC_MB_TYPE_PATTERN ;\n for ( i = 0 ;\n i < blocks_per_mb ;\n i ++ ) {\n if ( s -> block_last_index [ i ] >= 0 ) {\n if ( s -> mb_intra && ( render -> idct || ! render -> unsigned_intra ) ) * s -> pblocks [ i ] [ 0 ] -= 1 << 10 ;\n if ( ! render -> idct ) {\n s -> dsp . idct ( * s -> pblocks [ i ] ) ;\n }\n if ( s -> avctx -> xvmc_acceleration == 1 ) {\n memcpy ( & render -> data_blocks [ render -> next_free_data_block_num * 64 ] , s -> pblocks [ i ] , sizeof ( * s -> pblocks [ i ] ) ) ;\n }\n render -> next_free_data_block_num ++ ;\n }\n }\n render -> filled_mv_blocks_num ++ ;\n assert ( render -> filled_mv_blocks_num <= render -> allocated_mv_blocks ) ;\n assert ( render -> next_free_data_block_num <= render -> allocated_data_blocks ) ;\n if ( render -> filled_mv_blocks_num == render -> allocated_mv_blocks ) ff_mpeg_draw_horiz_band ( s , 0 , 0 ) ;\n }"}
{"idx": 19357, "target": 0, "func": "xmlHashTablePtr xmlHashCreate ( int size ) {\n xmlHashTablePtr table ;\n if ( size <= 0 ) size = 256 ;\n table = xmlMalloc ( sizeof ( xmlHashTable ) ) ;\n if ( table ) {\n table -> dict = NULL ;\n table -> size = size ;\n table -> nbElems = 0 ;\n table -> table = xmlMalloc ( size * sizeof ( xmlHashEntry ) ) ;\n if ( table -> table ) {\n memset ( table -> table , 0 , size * sizeof ( xmlHashEntry ) ) ;\n # ifdef HASH_RANDOMIZATION table -> random_seed = __xmlRandom ( ) ;\n # endif return ( table ) ;\n }\n xmlFree ( table ) ;\n }\n return ( NULL ) ;\n }"}
{"idx": 19358, "target": 0, "func": "SPL_METHOD ( SplFileObject , fscanf ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n spl_filesystem_file_free_line ( intern TSRMLS_CC ) ;\n intern -> u . file . current_line_num ++ ;\n FileFunctionCall ( fscanf , ZEND_NUM_ARGS ( ) , NULL ) ;\n }"}
{"idx": 19359, "target": 0, "func": "static inline void SetPixelYellowTraits ( Image * image , const PixelTrait traits ) {\n image -> channel_map [ YellowPixelChannel ] . traits = traits ;\n }"}
{"idx": 19360, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ContentFaviconDriverTest , LoadIconFromWebManifest ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n GURL url = embedded_test_server ( ) -> GetURL ( \"/favicon/page_with_manifest.html\" ) ;\n GURL icon_url = embedded_test_server ( ) -> GetURL ( \"/favicon/icon.png\" ) ;\n std : : unique_ptr < TestResourceDispatcherHostDelegate > delegate ( new TestResourceDispatcherHostDelegate ( icon_url ) ) ;\n content : : ResourceDispatcherHost : : Get ( ) -> SetDelegate ( delegate . get ( ) ) ;\n PendingTaskWaiter waiter ( web_contents ( ) ) ;\n ui_test_utils : : NavigateToURLWithDisposition ( browser ( ) , url , WindowOpenDisposition : : CURRENT_TAB , ui_test_utils : : BROWSER_TEST_NONE ) ;\n waiter . Wait ( ) ;\n # if defined ( OS_ANDROID ) EXPECT_TRUE ( delegate -> was_requested ( ) ) ;\n EXPECT_NE ( nullptr , GetFaviconForPageURL ( url , favicon_base : : IconType : : kWebManifestIcon ) . bitmap_data ) ;\n # else EXPECT_FALSE ( delegate -> was_requested ( ) ) ;\n # endif }"}
{"idx": 19361, "target": 0, "func": "static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 19362, "target": 0, "func": "hb_shape_plan_t * hb_shape_plan_reference ( hb_shape_plan_t * shape_plan ) {\n return hb_object_reference ( shape_plan ) ;\n }"}
{"idx": 19363, "target": 1, "func": "void vp9_init_quantizer ( VP9_COMP * cpi ) {\n VP9_COMMON * const cm = & cpi -> common ;\n QUANTS * const quants = & cpi -> quants ;\n int i , q , quant ;\n for ( q = 0 ;\n q < QINDEX_RANGE ;\n q ++ ) {\n const int qzbin_factor = q == 0 ? 64 : ( vp9_dc_quant ( q , 0 ) < 148 ? 84 : 80 ) ;\n const int qrounding_factor = q == 0 ? 64 : 48 ;\n for ( i = 0 ;\n i < 2 ;\n ++ i ) {\n int qrounding_factor_fp = i == 0 ? 48 : 42 ;\n if ( q == 0 ) qrounding_factor_fp = 64 ;\n quant = i == 0 ? vp9_dc_quant ( q , cm -> y_dc_delta_q ) : vp9_ac_quant ( q , 0 ) ;\n invert_quant ( & quants -> y_quant [ q ] [ i ] , & quants -> y_quant_shift [ q ] [ i ] , quant ) ;\n quants -> y_quant_fp [ q ] [ i ] = ( 1 << 16 ) / quant ;\n quants -> y_round_fp [ q ] [ i ] = ( qrounding_factor_fp * quant ) >> 7 ;\n quants -> y_zbin [ q ] [ i ] = ROUND_POWER_OF_TWO ( qzbin_factor * quant , 7 ) ;\n quants -> y_round [ q ] [ i ] = ( qrounding_factor * quant ) >> 7 ;\n cm -> y_dequant [ q ] [ i ] = quant ;\n quant = i == 0 ? vp9_dc_quant ( q , cm -> uv_dc_delta_q ) : vp9_ac_quant ( q , cm -> uv_ac_delta_q ) ;\n invert_quant ( & quants -> uv_quant [ q ] [ i ] , & quants -> uv_quant_shift [ q ] [ i ] , quant ) ;\n quants -> uv_quant_fp [ q ] [ i ] = ( 1 << 16 ) / quant ;\n quants -> uv_round_fp [ q ] [ i ] = ( qrounding_factor_fp * quant ) >> 7 ;\n quants -> uv_zbin [ q ] [ i ] = ROUND_POWER_OF_TWO ( qzbin_factor * quant , 7 ) ;\n quants -> uv_round [ q ] [ i ] = ( qrounding_factor * quant ) >> 7 ;\n cm -> uv_dequant [ q ] [ i ] = quant ;\n }\n for ( i = 2 ;\n i < 8 ;\n i ++ ) {\n quants -> y_quant [ q ] [ i ] = quants -> y_quant [ q ] [ 1 ] ;\n quants -> y_quant_fp [ q ] [ i ] = quants -> y_quant_fp [ q ] [ 1 ] ;\n quants -> y_round_fp [ q ] [ i ] = quants -> y_round_fp [ q ] [ 1 ] ;\n quants -> y_quant_shift [ q ] [ i ] = quants -> y_quant_shift [ q ] [ 1 ] ;\n quants -> y_zbin [ q ] [ i ] = quants -> y_zbin [ q ] [ 1 ] ;\n quants -> y_round [ q ] [ i ] = quants -> y_round [ q ] [ 1 ] ;\n cm -> y_dequant [ q ] [ i ] = cm -> y_dequant [ q ] [ 1 ] ;\n quants -> uv_quant [ q ] [ i ] = quants -> uv_quant [ q ] [ 1 ] ;\n quants -> uv_quant_fp [ q ] [ i ] = quants -> uv_quant_fp [ q ] [ 1 ] ;\n quants -> uv_round_fp [ q ] [ i ] = quants -> uv_round_fp [ q ] [ 1 ] ;\n quants -> uv_quant_shift [ q ] [ i ] = quants -> uv_quant_shift [ q ] [ 1 ] ;\n quants -> uv_zbin [ q ] [ i ] = quants -> uv_zbin [ q ] [ 1 ] ;\n quants -> uv_round [ q ] [ i ] = quants -> uv_round [ q ] [ 1 ] ;\n cm -> uv_dequant [ q ] [ i ] = cm -> uv_dequant [ q ] [ 1 ] ;\n }\n }\n }"}
{"idx": 19364, "target": 0, "func": "static int selinux_capset ( struct cred * new , const struct cred * old , const kernel_cap_t * effective , const kernel_cap_t * inheritable , const kernel_cap_t * permitted ) {\n return cred_has_perm ( old , new , PROCESS__SETCAP ) ;\n }"}
{"idx": 19365, "target": 0, "func": "static void option_export_marks ( const char * marks ) {\n export_marks_file = make_fast_import_path ( marks ) ;\n safe_create_leading_directories_const ( export_marks_file ) ;\n }"}
{"idx": 19366, "target": 0, "func": "static void link_info_start ( NautilusDirectory * directory , NautilusFile * file , gboolean * doing_io ) {\n GFile * location ;\n gboolean nautilus_style_link ;\n LinkInfoReadState * state ;\n if ( directory -> details -> link_info_read_state != NULL ) {\n * doing_io = TRUE ;\n return ;\n }\n if ( ! is_needy ( file , lacks_link_info , REQUEST_LINK_INFO ) ) {\n return ;\n }\n * doing_io = TRUE ;\n nautilus_style_link = nautilus_file_is_nautilus_link ( file ) ;\n location = nautilus_file_get_location ( file ) ;\n if ( ! nautilus_style_link ) {\n link_info_done ( directory , file , NULL , NULL , NULL , FALSE , FALSE ) ;\n }\n else {\n if ( ! async_job_start ( directory , \"link info\" ) ) {\n g_object_unref ( location ) ;\n return ;\n }\n state = g_new0 ( LinkInfoReadState , 1 ) ;\n state -> directory = directory ;\n state -> file = file ;\n state -> cancellable = g_cancellable_new ( ) ;\n directory -> details -> link_info_read_state = state ;\n g_file_load_contents_async ( location , state -> cancellable , link_info_nautilus_link_read_callback , state ) ;\n }\n g_object_unref ( location ) ;\n }"}
{"idx": 19367, "target": 0, "func": "static uint64_t openpic_src_read ( void * opaque , uint64_t addr , unsigned len ) {\n OpenPICState * opp = opaque ;\n uint32_t retval ;\n int idx ;\n DPRINTF ( \"%s: addr %#\" HWADDR_PRIx \"\\n\" , __func__ , addr ) ;\n retval = 0xFFFFFFFF ;\n addr = addr & 0xffff ;\n idx = addr >> 5 ;\n switch ( addr & 0x1f ) {\n case 0x00 : retval = read_IRQreg_ivpr ( opp , idx ) ;\n break ;\n case 0x10 : retval = read_IRQreg_idr ( opp , idx ) ;\n break ;\n case 0x18 : retval = read_IRQreg_ilr ( opp , idx ) ;\n break ;\n }\n DPRINTF ( \"%s: => 0x%08x\\n\" , __func__ , retval ) ;\n return retval ;\n }"}
{"idx": 19368, "target": 0, "func": "static void virtio_net_handle_rx ( VirtIODevice * vdev , VirtQueue * vq ) {\n VirtIONet * n = to_virtio_net ( vdev ) ;\n qemu_flush_queued_packets ( & n -> nic -> nc ) ;\n qemu_notify_event ( ) ;\n }"}
{"idx": 19369, "target": 0, "func": "ulonglong timer_now ( void ) {\n return my_interval_timer ( ) / 1000000 ;\n }"}
{"idx": 19370, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( DownloadExtensionTest , MAYBE_DownloadExtensionTest_OnDeterminingFilename_RemoveFilenameDeterminer ) {\n ASSERT_TRUE ( StartEmbeddedTestServer ( ) ) ;\n GoOnTheRecord ( ) ;\n LoadExtension ( \"downloads_split\" ) ;\n content : : RenderProcessHost * host = AddFilenameDeterminer ( ) ;\n std : : string download_url = embedded_test_server ( ) -> GetURL ( \"/slow?0\" ) . spec ( ) ;\n std : : unique_ptr < base : : Value > result ( RunFunctionAndReturnResult ( new DownloadsDownloadFunction ( ) , base : : StringPrintf ( \"[{\n\\\"url\\\": \\\"%s\\\"}\n]\" , download_url . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( result . get ( ) ) ;\n int result_id = - 1 ;\n ASSERT_TRUE ( result -> GetAsInteger ( & result_id ) ) ;\n DownloadItem * item = GetCurrentManager ( ) -> GetDownload ( result_id ) ;\n ASSERT_TRUE ( item ) ;\n ScopedCancellingItem canceller ( item ) ;\n ASSERT_EQ ( download_url , item -> GetOriginalUrl ( ) . spec ( ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnCreated : : kEventName , base : : StringPrintf ( \"[{\n\\\"danger\\\": \\\"safe\\\",\" \" \\\"incognito\\\": false,\" \" \\\"id\\\": %d,\" \" \\\"mime\\\": \\\"text/plain\\\",\" \" \\\"paused\\\": false,\" \" \\\"url\\\": \\\"%s\\\"}\n]\" , result_id , download_url . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnDeterminingFilename : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"filename\\\":\\\"slow.txt\\\"}\n]\" , result_id ) ) ) ;\n ASSERT_TRUE ( item -> GetTargetFilePath ( ) . empty ( ) ) ;\n ASSERT_EQ ( DownloadItem : : IN_PROGRESS , item -> GetState ( ) ) ;\n RemoveFilenameDeterminer ( host ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnChanged : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"state\\\": {\n\" \" \\\"previous\\\": \\\"in_progress\\\",\" \" \\\"current\\\": \\\"complete\\\"}\n}\n]\" , result_id ) ) ) ;\n }"}
{"idx": 19371, "target": 0, "func": "static int selinux_inode_listsecurity ( struct inode * inode , char * buffer , size_t buffer_size ) {\n const int len = sizeof ( XATTR_NAME_SELINUX ) ;\n if ( buffer && len <= buffer_size ) memcpy ( buffer , XATTR_NAME_SELINUX , len ) ;\n return len ;\n }"}
{"idx": 19372, "target": 0, "func": "static cmsTagTypeSignature DecideTextType ( cmsFloat64Number ICCVersion , const void * Data ) {\n if ( ICCVersion >= 4.0 ) return cmsSigMultiLocalizedUnicodeType ;\n return cmsSigTextType ;\n cmsUNUSED_PARAMETER ( Data ) ;\n }"}
{"idx": 19373, "target": 0, "func": "static void cmd_channel_add_modify ( const char * data , gboolean add ) {\n GHashTable * optlist ;\n CHATNET_REC * chatnetrec ;\n CHANNEL_SETUP_REC * rec ;\n char * botarg , * botcmdarg , * chatnet , * channel , * password ;\n void * free_arg ;\n if ( ! cmd_get_params ( data , & free_arg , 3 | PARAM_FLAG_OPTIONS , \"channel add\" , & optlist , & channel , & chatnet , & password ) ) return ;\n if ( * chatnet == '\\0' || * channel == '\\0' ) {\n cmd_param_error ( CMDERR_NOT_ENOUGH_PARAMS ) ;\n }\n chatnetrec = chatnet_find ( chatnet ) ;\n if ( chatnetrec == NULL ) {\n printformat ( NULL , NULL , MSGLEVEL_CLIENTNOTICE , TXT_UNKNOWN_CHATNET , chatnet ) ;\n cmd_params_free ( free_arg ) ;\n return ;\n }\n botarg = g_hash_table_lookup ( optlist , \"bots\" ) ;\n botcmdarg = g_hash_table_lookup ( optlist , \"botcmd\" ) ;\n rec = channel_setup_find ( channel , chatnet ) ;\n if ( rec == NULL ) {\n if ( add == FALSE ) {\n printformat ( NULL , NULL , MSGLEVEL_CLIENTNOTICE , TXT_CHANSETUP_NOT_FOUND , channel , chatnet ) ;\n cmd_params_free ( free_arg ) ;\n return ;\n }\n rec = CHAT_PROTOCOL ( chatnetrec ) -> create_channel_setup ( ) ;\n rec -> name = g_strdup ( channel ) ;\n rec -> chatnet = g_strdup ( chatnet ) ;\n }\n else {\n if ( g_hash_table_lookup ( optlist , \"bots\" ) ) g_free_and_null ( rec -> botmasks ) ;\n if ( g_hash_table_lookup ( optlist , \"botcmd\" ) ) g_free_and_null ( rec -> autosendcmd ) ;\n if ( * password != '\\0' ) g_free_and_null ( rec -> password ) ;\n }\n if ( g_hash_table_lookup ( optlist , \"auto\" ) ) rec -> autojoin = TRUE ;\n if ( g_hash_table_lookup ( optlist , \"noauto\" ) ) rec -> autojoin = FALSE ;\n if ( botarg != NULL && * botarg != '\\0' ) rec -> botmasks = g_strdup ( botarg ) ;\n if ( botcmdarg != NULL && * botcmdarg != '\\0' ) rec -> autosendcmd = g_strdup ( botcmdarg ) ;\n if ( * password != '\\0' && g_strcmp0 ( password , \"-\" ) != 0 ) rec -> password = g_strdup ( password ) ;\n signal_emit ( \"channel add fill\" , 2 , rec , optlist ) ;\n channel_setup_create ( rec ) ;\n printformat ( NULL , NULL , MSGLEVEL_CLIENTNOTICE , TXT_CHANSETUP_ADDED , channel , chatnet ) ;\n cmd_params_free ( free_arg ) ;\n }"}
{"idx": 19374, "target": 0, "func": "static UBool isAcceptable ( void * context , const char * type , const char * name , const UDataInfo * pInfo ) {\n if ( pInfo -> size >= 20 && pInfo -> isBigEndian == U_IS_BIG_ENDIAN && pInfo -> charsetFamily == U_CHARSET_FAMILY && pInfo -> dataFormat [ 0 ] == 0x4D && pInfo -> dataFormat [ 1 ] == 0x79 && pInfo -> dataFormat [ 2 ] == 0x44 && pInfo -> dataFormat [ 3 ] == 0x74 && pInfo -> formatVersion [ 0 ] == 1 && pInfo -> dataVersion [ 0 ] == 1 ) {\n return TRUE ;\n }\n else {\n return FALSE ;\n }\n }"}
{"idx": 19375, "target": 0, "func": "hb_set_t * hb_set_get_empty ( void ) {\n static const hb_set_t _hb_set_nil = {\n HB_OBJECT_HEADER_STATIC , true , {\n 0 }\n }\n ;\n return const_cast < hb_set_t * > ( & _hb_set_nil ) ;\n }"}
{"idx": 19376, "target": 0, "func": "static int xhci_ep_nuke_one_xfer ( XHCITransfer * t , TRBCCode report ) {\n int killed = 0 ;\n if ( report && ( t -> running_async || t -> running_retry ) ) {\n t -> status = report ;\n xhci_xfer_report ( t ) ;\n }\n if ( t -> running_async ) {\n usb_cancel_packet ( & t -> packet ) ;\n t -> running_async = 0 ;\n killed = 1 ;\n }\n if ( t -> running_retry ) {\n if ( t -> epctx ) {\n t -> epctx -> retry = NULL ;\n timer_del ( t -> epctx -> kick_timer ) ;\n }\n t -> running_retry = 0 ;\n killed = 1 ;\n }\n g_free ( t -> trbs ) ;\n t -> trbs = NULL ;\n t -> trb_count = 0 ;\n return killed ;\n }"}
{"idx": 19377, "target": 0, "func": "static void dtap_tp_epc_update_ue_location_information ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_len = len ;\n curr_offset = offset ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_TP_EPC_ELLIPSOID_POINT_WITH_ALT , NULL ) ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_TP_EPC_HORIZONTAL_VELOCITY , NULL ) ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_TP_EPC_GNSS_TOD_MSEC , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 19378, "target": 0, "func": "static void dissect_q931_party_category_ie ( tvbuff_t * tvb , int offset , int len , proto_tree * tree ) {\n if ( len == 0 ) return ;\n proto_tree_add_item ( tree , hf_q931_party_category , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n }"}
{"idx": 19379, "target": 0, "func": "static void usage ( ) {\n extern char * __progname ;\n fprintf ( stderr , \"Usage: %s [-v] [-h] [-c] [-s] [-f] [-D] [-u user] \" \"[-t chrootdir] [-d device] [-m mtu] [-z context] \" \"[-l ip address to listen on] [-p port] [-n external ip] \" \"[-b dnsport] [-P password] [-F pidfile] [-i max idle time] \" \"tunnel_ip[etmask] topdomain\\n\" , __progname ) ;\n exit ( 2 ) ;\n }"}
{"idx": 19380, "target": 0, "func": "void compute_curve_gamma_table_type2 ( float gamma_table [ 256 ] , uint16_t * table , size_t length ) {\n unsigned int i ;\n for ( i = 0 ;\n i < 256 ;\n i ++ ) {\n gamma_table [ i ] = lut_interp_linear ( i / 255. , table , length ) ;\n }\n }"}
{"idx": 19381, "target": 0, "func": "bool change_password ( THD * thd , const char * host , const char * user , char * new_password ) {\n TABLE_LIST tables ;\n TABLE * table ;\n char buff [ 512 ] ;\n ulong query_length ;\n bool save_binlog_row_based ;\n uint new_password_len = ( uint ) strlen ( new_password ) ;\n bool result = 1 ;\n DBUG_ENTER ( \"change_password\" ) ;\n DBUG_PRINT ( \"enter\" , ( \"host: '%s' user: '%s' new_password: '%s'\" , host , user , new_password ) ) ;\n DBUG_ASSERT ( host != 0 ) ;\n if ( check_change_password ( thd , host , user , new_password , new_password_len ) ) DBUG_RETURN ( 1 ) ;\n bzero ( ( char * ) & tables , sizeof ( tables ) ) ;\n tables . alias = tables . table_name = ( char * ) \"user\" ;\n tables . db = ( char * ) \"mysql\" ;\n # ifdef HAVE_REPLICATION if ( thd -> slave_thread && rpl_filter -> is_on ( ) ) {\n tables . updating = 1 ;\n if ( ! ( thd -> spcont || rpl_filter -> tables_ok ( 0 , & tables ) ) ) DBUG_RETURN ( 0 ) ;\n }\n # endif if ( ! ( table = open_ltable ( thd , & tables , TL_WRITE , 0 ) ) ) DBUG_RETURN ( 1 ) ;\n if ( ( save_binlog_row_based = thd -> current_stmt_binlog_row_based ) ) thd -> clear_current_stmt_binlog_row_based ( ) ;\n VOID ( pthread_mutex_lock ( & acl_cache -> lock ) ) ;\n ACL_USER * acl_user ;\n if ( ! ( acl_user = find_acl_user ( host , user , TRUE ) ) ) {\n VOID ( pthread_mutex_unlock ( & acl_cache -> lock ) ) ;\n my_message ( ER_PASSWORD_NO_MATCH , ER ( ER_PASSWORD_NO_MATCH ) , MYF ( 0 ) ) ;\n goto end ;\n }\n set_user_salt ( acl_user , new_password , new_password_len ) ;\n if ( update_user_table ( thd , table , acl_user -> host . hostname ? acl_user -> host . hostname : \"\" , acl_user -> user ? acl_user -> user : \"\" , new_password , new_password_len ) ) {\n VOID ( pthread_mutex_unlock ( & acl_cache -> lock ) ) ;\n goto end ;\n }\n acl_cache -> clear ( 1 ) ;\n VOID ( pthread_mutex_unlock ( & acl_cache -> lock ) ) ;\n result = 0 ;\n if ( mysql_bin_log . is_open ( ) ) {\n query_length = sprintf ( buff , \"SET PASSWORD FOR '%-.120s'@'%-.120s'='%-.120s'\" , acl_user -> user ? acl_user -> user : \"\" , acl_user -> host . hostname ? acl_user -> host . hostname : \"\" , new_password ) ;\n thd -> clear_error ( ) ;\n result = thd -> binlog_query ( THD : : MYSQL_QUERY_TYPE , buff , query_length , FALSE , FALSE , 0 ) ;\n }\n end : close_thread_tables ( thd ) ;\n DBUG_ASSERT ( ! thd -> current_stmt_binlog_row_based ) ;\n if ( save_binlog_row_based ) thd -> set_current_stmt_binlog_row_based ( ) ;\n DBUG_RETURN ( result ) ;\n }"}
{"idx": 19382, "target": 0, "func": "void xmlListWalk ( xmlListPtr l , xmlListWalker walker , const void * user ) {\n xmlLinkPtr lk ;\n if ( ( l == NULL ) || ( walker == NULL ) ) return ;\n for ( lk = l -> sentinel -> next ;\n lk != l -> sentinel ;\n lk = lk -> next ) {\n if ( ( walker ( lk -> data , user ) ) == 0 ) break ;\n }\n }"}
{"idx": 19383, "target": 0, "func": "static void decode_power_in_watt ( gchar * s , guint16 value ) {\n g_snprintf ( s , ITEM_LABEL_LENGTH , \"%d Watt\" , value ) ;\n }"}
{"idx": 19384, "target": 0, "func": "static void synth_block ( WMAVoiceContext * s , GetBitContext * gb , int block_idx , int size , int block_pitch_sh2 , const double * lsps , const double * prev_lsps , const struct frame_type_desc * frame_desc , float * excitation , float * synth ) {\n double i_lsps [ MAX_LSPS ] ;\n float lpcs [ MAX_LSPS ] ;\n float fac ;\n int n ;\n if ( frame_desc -> acb_type == ACB_TYPE_NONE ) synth_block_hardcoded ( s , gb , block_idx , size , frame_desc , excitation ) ;\n else synth_block_fcb_acb ( s , gb , block_idx , size , block_pitch_sh2 , frame_desc , excitation ) ;\n fac = ( block_idx + 0.5 ) / frame_desc -> n_blocks ;\n for ( n = 0 ;\n n < s -> lsps ;\n n ++ ) i_lsps [ n ] = cos ( prev_lsps [ n ] + fac * ( lsps [ n ] - prev_lsps [ n ] ) ) ;\n ff_acelp_lspd2lpc ( i_lsps , lpcs , s -> lsps >> 1 ) ;\n ff_celp_lp_synthesis_filterf ( synth , lpcs , excitation , size , s -> lsps ) ;\n }"}
{"idx": 19385, "target": 0, "func": "static int dissect_h225_NumberDigits ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_restricted_character_string ( tvb , offset , actx , tree , hf_index , 1 , 128 , FALSE , \"0123456789#*,\" , 13 , NULL ) ;\n return offset ;\n }"}
{"idx": 19386, "target": 0, "func": "void mime_hdr_field_delete ( HdrHeap * heap , MIMEHdrImpl * mh , MIMEField * field , bool delete_all_dups ) {\n if ( delete_all_dups ) {\n while ( field ) {\n MIMEField * next = field -> m_next_dup ;\n heap -> free_string ( field -> m_ptr_name , field -> m_len_name ) ;\n heap -> free_string ( field -> m_ptr_value , field -> m_len_value ) ;\n MIME_HDR_SANITY_CHECK ( mh ) ;\n mime_hdr_field_detach ( mh , field , false ) ;\n MIME_HDR_SANITY_CHECK ( mh ) ;\n mime_field_destroy ( mh , field ) ;\n MIME_HDR_SANITY_CHECK ( mh ) ;\n field = next ;\n }\n }\n else {\n heap -> free_string ( field -> m_ptr_name , field -> m_len_name ) ;\n heap -> free_string ( field -> m_ptr_value , field -> m_len_value ) ;\n MIME_HDR_SANITY_CHECK ( mh ) ;\n mime_hdr_field_detach ( mh , field , false ) ;\n MIME_HDR_SANITY_CHECK ( mh ) ;\n mime_field_destroy ( mh , field ) ;\n }\n MIME_HDR_SANITY_CHECK ( mh ) ;\n }"}
{"idx": 19387, "target": 0, "func": "void mime_field_value_extend_comma_val ( HdrHeap * heap , MIMEHdrImpl * mh , MIMEField * field , int idx , const char * new_piece_str , int new_piece_len ) {\n Str * cell ;\n StrList list ( false ) ;\n int trimmed , len ;\n size_t extended_len ;\n char * dest , * temp_ptr , temp_buf [ 128 ] ;\n HttpCompat : : parse_tok_list ( & list , 0 , field -> m_ptr_value , field -> m_len_value , ',' ) ;\n if ( ( idx < 0 ) || ( idx >= list . count ) ) {\n return ;\n }\n cell = list . get_idx ( idx ) ;\n ink_assert ( cell != nullptr ) ;\n if ( ( cell -> len >= 2 ) && ( cell -> str [ 0 ] == '\\\"' ) && ( cell -> str [ cell -> len - 1 ] == '\\\"' ) ) {\n trimmed = 1 ;\n cell -> str += 1 ;\n cell -> len -= 2 ;\n }\n else {\n trimmed = 0 ;\n }\n extended_len = cell -> len + new_piece_len + ( trimmed ? 2 : 0 ) ;\n if ( extended_len <= sizeof ( temp_buf ) ) {\n temp_ptr = temp_buf ;\n }\n else {\n temp_ptr = ( char * ) ats_malloc ( extended_len ) ;\n }\n dest = temp_ptr ;\n if ( trimmed ) {\n * dest ++ = '\\\"' ;\n }\n memcpy ( dest , cell -> str , cell -> len ) ;\n dest += cell -> len ;\n memcpy ( dest , new_piece_str , new_piece_len ) ;\n dest += new_piece_len ;\n if ( trimmed ) {\n * dest ++ = '\\\"' ;\n }\n ink_assert ( ( size_t ) ( dest - temp_ptr ) == extended_len ) ;\n cell -> str = temp_ptr ;\n cell -> len = extended_len ;\n field -> m_ptr_value = mime_field_value_str_from_strlist ( heap , & len , & list ) ;\n field -> m_len_value = len ;\n field -> m_n_v_raw_printable = 0 ;\n if ( field -> is_live ( ) && field -> is_cooked ( ) ) {\n mh -> recompute_cooked_stuff ( field ) ;\n }\n if ( extended_len > sizeof ( temp_buf ) ) {\n ats_free ( temp_ptr ) ;\n }\n }"}
{"idx": 19388, "target": 0, "func": "REGRESSION_TEST ( SDK_API_ENCODING ) ( RegressionTest * test , int , int * pstatus ) {\n const char * url = \"http://www.example.com/foo?fie= \\\"#%<>[]\\\\^`{\n}\n~&bar={\ntest}\n&fum=Apache Traffic Server\" ;\n const char * url_encoded = \"http://www.example.com/foo?fie=%20%22%23%25%3C%3E%5B%5D%5C%5E%60%7B%7D%7E&bar=%7Btest%7D&fum=Apache%20Traffic%20Server\" ;\n const char * url_base64 = \"aHR0cDovL3d3dy5leGFtcGxlLmNvbS9mb28/ZmllPSAiIyU8PltdXF5ge31+JmJhcj17dGVzdH0mZnVtPUFwYWNoZSBUcmFmZmljIFNlcnZlcg==\" ;\n const char * url2 = \"http://www.example.com/\" ;\n const char * url3 = \"https://www.thisisoneexampleofastringoflengtheightyasciilowercasecharacters.com/\" ;\n char buf [ 1024 ] ;\n size_t length ;\n bool success = true ;\n if ( TS_SUCCESS != TSStringPercentEncode ( url , strlen ( url ) , buf , sizeof ( buf ) , & length , nullptr ) ) {\n SDK_RPRINT ( test , \"TSStringPercentEncode\" , \"TestCase1\" , TC_FAIL , \"Failed on %s\" , url ) ;\n success = false ;\n }\n else {\n if ( strcmp ( buf , url_encoded ) ) {\n SDK_RPRINT ( test , \"TSStringPercentEncode\" , \"TestCase1\" , TC_FAIL , \"Failed on %s != %s\" , buf , url_encoded ) ;\n success = false ;\n }\n else {\n SDK_RPRINT ( test , \"TSStringPercentEncode\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n }\n if ( TS_SUCCESS != TSStringPercentEncode ( url2 , strlen ( url2 ) , buf , sizeof ( buf ) , & length , nullptr ) ) {\n SDK_RPRINT ( test , \"TSStringPercentEncode\" , \"TestCase2\" , TC_FAIL , \"Failed on %s\" , url2 ) ;\n success = false ;\n }\n else {\n if ( strcmp ( buf , url2 ) ) {\n SDK_RPRINT ( test , \"TSStringPercentEncode\" , \"TestCase2\" , TC_FAIL , \"Failed on %s != %s\" , buf , url2 ) ;\n success = false ;\n }\n else {\n SDK_RPRINT ( test , \"TSStringPercentEncode\" , \"TestCase2\" , TC_PASS , \"ok\" ) ;\n }\n }\n if ( TS_SUCCESS != TSStringPercentDecode ( url_encoded , strlen ( url_encoded ) , buf , sizeof ( buf ) , & length ) ) {\n SDK_RPRINT ( test , \"TSStringPercentDecode\" , \"TestCase1\" , TC_FAIL , \"Failed on %s\" , url_encoded ) ;\n success = false ;\n }\n else {\n if ( length != strlen ( url ) || strcmp ( buf , url ) ) {\n SDK_RPRINT ( test , \"TSStringPercentDecode\" , \"TestCase1\" , TC_FAIL , \"Failed on %s != %s\" , buf , url ) ;\n success = false ;\n }\n else {\n SDK_RPRINT ( test , \"TSStringPercentDecode\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n }\n if ( TS_SUCCESS != TSStringPercentDecode ( url2 , strlen ( url2 ) , buf , sizeof ( buf ) , & length ) ) {\n SDK_RPRINT ( test , \"TSStringPercentDecode\" , \"TestCase2\" , TC_FAIL , \"Failed on %s\" , url2 ) ;\n success = false ;\n }\n else {\n if ( length != strlen ( url2 ) || strcmp ( buf , url2 ) ) {\n SDK_RPRINT ( test , \"TSStringPercentDecode\" , \"TestCase2\" , TC_FAIL , \"Failed on %s != %s\" , buf , url2 ) ;\n success = false ;\n }\n else {\n SDK_RPRINT ( test , \"TSStringPercentDecode\" , \"TestCase2\" , TC_PASS , \"ok\" ) ;\n }\n }\n const size_t buf_len = strlen ( url3 ) + 1 ;\n strncpy ( buf , url3 , buf_len - 1 ) ;\n const char canary = 0xFF ;\n buf [ buf_len - 1 ] = canary ;\n const char * url3_clipped = \"https://www.thisisoneexampleofastringoflengtheightyasciilowercasecharacters.com\" ;\n if ( TS_SUCCESS != TSStringPercentDecode ( buf , buf_len - 1 , buf , buf_len - 1 , & length ) ) {\n SDK_RPRINT ( test , \"TSStringPercentDecode\" , \"TestCase3\" , TC_FAIL , \"Failed on %s\" , url3 ) ;\n success = false ;\n }\n else {\n if ( memcmp ( buf + buf_len - 1 , & canary , 1 ) ) {\n SDK_RPRINT ( test , \"TSStringPercentDecode\" , \"TestCase3\" , TC_FAIL , \"Failed on %s overwrites buffer\" , url3 ) ;\n success = false ;\n }\n else if ( length != strlen ( url3_clipped ) || strcmp ( buf , url3_clipped ) ) {\n SDK_RPRINT ( test , \"TSStringPercentDecode\" , \"TestCase3\" , TC_FAIL , \"Failed on %s != %s\" , buf , url3_clipped ) ;\n success = false ;\n }\n else {\n SDK_RPRINT ( test , \"TSStringPercentDecode\" , \"TestCase3\" , TC_PASS , \"ok\" ) ;\n }\n }\n if ( TS_SUCCESS != TSBase64Encode ( url , strlen ( url ) , buf , sizeof ( buf ) , & length ) ) {\n SDK_RPRINT ( test , \"TSBase64Encode\" , \"TestCase1\" , TC_FAIL , \"Failed on %s\" , url ) ;\n success = false ;\n }\n else {\n if ( length != strlen ( url_base64 ) || strcmp ( buf , url_base64 ) ) {\n SDK_RPRINT ( test , \"TSBase64Encode\" , \"TestCase1\" , TC_FAIL , \"Failed on %s != %s\" , buf , url_base64 ) ;\n success = false ;\n }\n else {\n SDK_RPRINT ( test , \"TSBase64Encode\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n }\n if ( TS_SUCCESS != TSBase64Decode ( url_base64 , strlen ( url_base64 ) , ( unsigned char * ) buf , sizeof ( buf ) , & length ) ) {\n SDK_RPRINT ( test , \"TSBase64Decode\" , \"TestCase1\" , TC_FAIL , \"Failed on %s\" , url_base64 ) ;\n success = false ;\n }\n else {\n if ( length != strlen ( url ) || strcmp ( buf , url ) ) {\n SDK_RPRINT ( test , \"TSBase64Decode\" , \"TestCase1\" , TC_FAIL , \"Failed on %s != %s\" , buf , url ) ;\n success = false ;\n }\n else {\n SDK_RPRINT ( test , \"TSBase64Decode\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n }\n }\n * pstatus = success ? REGRESSION_TEST_PASSED : REGRESSION_TEST_FAILED ;\n return ;\n }"}
{"idx": 19389, "target": 0, "func": "static void test_bug13524 ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n unsigned int warning_count ;\n const ulong type = CURSOR_TYPE_READ_ONLY ;\n const char * query = \"select * from t1\" ;\n myheader ( \"test_bug13524\" ) ;\n rc = mysql_query ( mysql , \"drop table if exists t1, t2\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create table t1 (a int not null primary key)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"insert into t1 values (1), (2), (3), (4)\" ) ;\n myquery ( rc ) ;\n stmt = mysql_stmt_init ( mysql ) ;\n rc = mysql_stmt_attr_set ( stmt , STMT_ATTR_CURSOR_TYPE , ( const void * ) & type ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_prepare ( stmt , query , strlen ( query ) ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n warning_count = mysql_warning_count ( mysql ) ;\n DIE_UNLESS ( warning_count == 0 ) ;\n rc = mysql_query ( mysql , \"drop table if exists t2\" ) ;\n myquery ( rc ) ;\n warning_count = mysql_warning_count ( mysql ) ;\n DIE_UNLESS ( warning_count == 1 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n warning_count = mysql_warning_count ( mysql ) ;\n DIE_UNLESS ( warning_count == 0 ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_query ( mysql , \"drop table t1\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 19390, "target": 0, "func": "static void _slurm_rpc_shutdown_controller ( slurm_msg_t * msg ) {\n int error_code = SLURM_SUCCESS , i ;\n uint16_t options = 0 ;\n shutdown_msg_t * shutdown_msg = ( shutdown_msg_t * ) msg -> data ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n slurmctld_lock_t node_read_lock = {\n NO_LOCK , NO_LOCK , READ_LOCK , NO_LOCK , NO_LOCK }\n ;\n if ( ! validate_super_user ( uid ) ) {\n error ( \"Security violation, SHUTDOWN RPC from uid=%d\" , uid ) ;\n error_code = ESLURM_USER_ID_MISSING ;\n }\n if ( error_code ) ;\n else if ( msg -> msg_type == REQUEST_CONTROL ) {\n info ( \"Performing RPC: REQUEST_CONTROL\" ) ;\n slurmctld_config . resume_backup = true ;\n }\n else {\n info ( \"Performing RPC: REQUEST_SHUTDOWN\" ) ;\n options = shutdown_msg -> options ;\n }\n if ( error_code ) ;\n else if ( options == 1 ) info ( \"performing immeditate shutdown without state save\" ) ;\n else if ( slurmctld_config . shutdown_time ) debug2 ( \"shutdown RPC issued when already in progress\" ) ;\n else {\n if ( ( msg -> msg_type == REQUEST_SHUTDOWN ) && ( options == 0 ) ) {\n lock_slurmctld ( node_read_lock ) ;\n msg_to_slurmd ( REQUEST_SHUTDOWN ) ;\n unlock_slurmctld ( node_read_lock ) ;\n }\n if ( slurmctld_config . thread_id_sig ) pthread_kill ( slurmctld_config . thread_id_sig , SIGTERM ) ;\n else {\n error ( \"thread_id_sig undefined, hard shutdown\" ) ;\n slurmctld_config . shutdown_time = time ( NULL ) ;\n slurmctld_shutdown ( ) ;\n }\n }\n if ( msg -> msg_type == REQUEST_CONTROL ) {\n for ( i = 1 ;\n i < ( CONTROL_TIMEOUT * 10 ) ;\n i ++ ) {\n if ( slurmctld_config . server_thread_count <= 1 ) break ;\n usleep ( 100000 ) ;\n }\n if ( slurmctld_config . server_thread_count > 1 ) error ( \"REQUEST_CONTROL reply with %d active threads\" , slurmctld_config . server_thread_count ) ;\n ( void ) g_slurm_jobcomp_fini ( ) ;\n }\n slurm_send_rc_msg ( msg , error_code ) ;\n if ( ( error_code == SLURM_SUCCESS ) && ( options == 1 ) && ( slurmctld_config . thread_id_sig ) ) pthread_kill ( slurmctld_config . thread_id_sig , SIGABRT ) ;\n }"}
{"idx": 19391, "target": 0, "func": "zend_object_value pdo_dbstmt_new ( zend_class_entry * ce TSRMLS_DC ) {\n zend_object_value retval ;\n pdo_stmt_t * stmt ;\n stmt = emalloc ( sizeof ( * stmt ) ) ;\n memset ( stmt , 0 , sizeof ( * stmt ) ) ;\n zend_object_std_init ( & stmt -> std , ce TSRMLS_CC ) ;\n object_properties_init ( & stmt -> std , ce ) ;\n stmt -> refcount = 1 ;\n retval . handle = zend_objects_store_put ( stmt , ( zend_objects_store_dtor_t ) zend_objects_destroy_object , ( zend_objects_free_object_storage_t ) pdo_dbstmt_free_storage , ( zend_objects_store_clone_t ) dbstmt_clone_obj TSRMLS_CC ) ;\n retval . handlers = & pdo_dbstmt_object_handlers ;\n return retval ;\n }"}
{"idx": 19392, "target": 0, "func": "static const char * cmd_rule_update_target_by_tag ( cmd_parms * cmd , void * _dcfg , const char * p1 , const char * p2 , const char * p3 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n rule_exception * re = apr_pcalloc ( cmd -> pool , sizeof ( rule_exception ) ) ;\n if ( dcfg == NULL ) return NULL ;\n if ( p1 == NULL ) {\n return apr_psprintf ( cmd -> pool , \"Updating target by tag with no tag\" ) ;\n }\n re -> type = RULE_EXCEPTION_REMOVE_TAG ;\n re -> param = p1 ;\n re -> param_data = msc_pregcomp ( cmd -> pool , p1 , 0 , NULL , NULL ) ;\n if ( re -> param_data == NULL ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid regular expression: %s\" , p1 ) ;\n }\n return msre_ruleset_rule_update_target_matching_exception ( NULL , dcfg -> ruleset , re , p2 , p3 ) ;\n }"}
{"idx": 19393, "target": 0, "func": "void mime_scanner_append ( MIMEScanner * scanner , const char * data , int data_size ) {\n int free_size = scanner -> m_line_size - scanner -> m_line_length ;\n if ( data_size > free_size ) {\n if ( scanner -> m_line_size == 0 ) {\n scanner -> m_line_size = 128 ;\n }\n while ( free_size < data_size ) {\n scanner -> m_line_size *= 2 ;\n free_size = scanner -> m_line_size - scanner -> m_line_length ;\n }\n if ( scanner -> m_line == nullptr ) {\n scanner -> m_line = ( char * ) ats_malloc ( scanner -> m_line_size ) ;\n }\n else {\n scanner -> m_line = ( char * ) ats_realloc ( scanner -> m_line , scanner -> m_line_size ) ;\n }\n }\n memcpy ( & ( scanner -> m_line [ scanner -> m_line_length ] ) , data , data_size ) ;\n scanner -> m_line_length += data_size ;\n }"}
{"idx": 19394, "target": 0, "func": "static void gtkui_connection_kill_curr_conn ( void ) {\n DEBUG_MSG ( \"gtkui_connection_kill_curr_conn\" ) ;\n switch ( user_kill ( curr_conn ) ) {\n case E_SUCCESS : curr_conn -> status = CONN_KILLED ;\n gtkui_message ( \"The connection was killed !!\" ) ;\n break ;\n case - E_FATAL : gtkui_message ( \"Cannot kill UDP connections !!\" ) ;\n break ;\n }\n }"}
{"idx": 19395, "target": 0, "func": "static vpx_codec_err_t ctrl_set_tune_content ( vpx_codec_alg_priv_t * ctx , va_list args ) {\n struct vp9_extracfg extra_cfg = ctx -> extra_cfg ;\n extra_cfg . content = CAST ( VP9E_SET_TUNE_CONTENT , args ) ;\n return update_extra_cfg ( ctx , & extra_cfg ) ;\n }"}
{"idx": 19396, "target": 0, "func": "GPtrArray * proto_get_finfo_ptr_array ( const proto_tree * tree , const int id ) {\n if ( ! tree ) return NULL ;\n if ( PTREE_DATA ( tree ) -> interesting_hfids != NULL ) return ( GPtrArray * ) g_hash_table_lookup ( PTREE_DATA ( tree ) -> interesting_hfids , GINT_TO_POINTER ( id ) ) ;\n else return NULL ;\n }"}
{"idx": 19397, "target": 0, "func": "static void U_CALLCONV UConverter_fromUnicode_HZ_OFFSETS_LOGIC ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n const UChar * mySource = args -> source ;\n char * myTarget = args -> target ;\n int32_t * offsets = args -> offsets ;\n int32_t mySourceIndex = 0 ;\n int32_t myTargetIndex = 0 ;\n int32_t targetLength = ( int32_t ) ( args -> targetLimit - myTarget ) ;\n int32_t mySourceLength = ( int32_t ) ( args -> sourceLimit - args -> source ) ;\n uint32_t targetUniChar = 0x0000 ;\n UChar32 mySourceChar = 0x0000 ;\n UConverterDataHZ * myConverterData = ( UConverterDataHZ * ) args -> converter -> extraInfo ;\n UBool isTargetUCharDBCS = ( UBool ) myConverterData -> isTargetUCharDBCS ;\n UBool oldIsTargetUCharDBCS ;\n int len = 0 ;\n const char * escSeq = NULL ;\n if ( args -> converter -> fromUChar32 != 0 && myTargetIndex < targetLength ) {\n goto getTrail ;\n }\n while ( mySourceIndex < mySourceLength ) {\n targetUniChar = missingCharMarker ;\n if ( myTargetIndex < targetLength ) {\n mySourceChar = ( UChar ) mySource [ mySourceIndex ++ ] ;\n oldIsTargetUCharDBCS = isTargetUCharDBCS ;\n if ( mySourceChar == UCNV_TILDE ) {\n len = ESC_LEN ;\n escSeq = TILDE_ESCAPE ;\n CONCAT_ESCAPE_MACRO ( args , myTargetIndex , targetLength , escSeq , err , len , mySourceIndex ) ;\n continue ;\n }\n else if ( mySourceChar <= 0x7f ) {\n targetUniChar = mySourceChar ;\n }\n else {\n int32_t length = ucnv_MBCSFromUChar32 ( myConverterData -> gbConverter -> sharedData , mySourceChar , & targetUniChar , args -> converter -> useFallback ) ;\n if ( length == 2 && ( uint16_t ) ( targetUniChar - 0xa1a1 ) <= ( 0xfdfe - 0xa1a1 ) && ( uint8_t ) ( targetUniChar - 0xa1 ) <= ( 0xfe - 0xa1 ) ) {\n targetUniChar -= 0x8080 ;\n }\n else {\n targetUniChar = missingCharMarker ;\n }\n }\n if ( targetUniChar != missingCharMarker ) {\n myConverterData -> isTargetUCharDBCS = isTargetUCharDBCS = ( UBool ) ( targetUniChar > 0x00FF ) ;\n if ( oldIsTargetUCharDBCS != isTargetUCharDBCS || ! myConverterData -> isEscapeAppended ) {\n if ( ! isTargetUCharDBCS ) {\n len = ESC_LEN ;\n escSeq = SB_ESCAPE ;\n CONCAT_ESCAPE_MACRO ( args , myTargetIndex , targetLength , escSeq , err , len , mySourceIndex ) ;\n myConverterData -> isEscapeAppended = TRUE ;\n }\n else {\n len = ESC_LEN ;\n escSeq = DB_ESCAPE ;\n CONCAT_ESCAPE_MACRO ( args , myTargetIndex , targetLength , escSeq , err , len , mySourceIndex ) ;\n myConverterData -> isEscapeAppended = TRUE ;\n }\n }\n if ( isTargetUCharDBCS ) {\n if ( myTargetIndex < targetLength ) {\n myTarget [ myTargetIndex ++ ] = ( char ) ( targetUniChar >> 8 ) ;\n if ( offsets ) {\n * ( offsets ++ ) = mySourceIndex - 1 ;\n }\n if ( myTargetIndex < targetLength ) {\n myTarget [ myTargetIndex ++ ] = ( char ) targetUniChar ;\n if ( offsets ) {\n * ( offsets ++ ) = mySourceIndex - 1 ;\n }\n }\n else {\n args -> converter -> charErrorBuffer [ args -> converter -> charErrorBufferLength ++ ] = ( char ) targetUniChar ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n else {\n args -> converter -> charErrorBuffer [ args -> converter -> charErrorBufferLength ++ ] = ( char ) ( targetUniChar >> 8 ) ;\n args -> converter -> charErrorBuffer [ args -> converter -> charErrorBufferLength ++ ] = ( char ) targetUniChar ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n else {\n if ( myTargetIndex < targetLength ) {\n myTarget [ myTargetIndex ++ ] = ( char ) ( targetUniChar ) ;\n if ( offsets ) {\n * ( offsets ++ ) = mySourceIndex - 1 ;\n }\n }\n else {\n args -> converter -> charErrorBuffer [ args -> converter -> charErrorBufferLength ++ ] = ( char ) targetUniChar ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n }\n }\n else {\n if ( U16_IS_SURROGATE ( mySourceChar ) ) {\n if ( U16_IS_SURROGATE_LEAD ( mySourceChar ) ) {\n args -> converter -> fromUChar32 = mySourceChar ;\n getTrail : if ( mySourceIndex < mySourceLength ) {\n UChar trail = ( UChar ) args -> source [ mySourceIndex ] ;\n if ( U16_IS_TRAIL ( trail ) ) {\n ++ mySourceIndex ;\n mySourceChar = U16_GET_SUPPLEMENTARY ( args -> converter -> fromUChar32 , trail ) ;\n args -> converter -> fromUChar32 = 0x00 ;\n * err = U_INVALID_CHAR_FOUND ;\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n else {\n * err = U_ZERO_ERROR ;\n }\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n else {\n * err = U_INVALID_CHAR_FOUND ;\n }\n args -> converter -> fromUChar32 = mySourceChar ;\n break ;\n }\n }\n else {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n targetUniChar = missingCharMarker ;\n }\n args -> target += myTargetIndex ;\n args -> source += mySourceIndex ;\n myConverterData -> isTargetUCharDBCS = isTargetUCharDBCS ;\n }"}
{"idx": 19398, "target": 0, "func": "static void send_random_tag_value ( int indx ) {\n int noise ;\n char buf [ 32 ] ;\n noise = rand ( ) ^ ( rand ( ) << 16 ) ;\n buf [ 0 ] = 'a' + noise % 26 ;\n noise >>= 5 ;\n buf [ 1 ] = 'a' + noise % 26 ;\n noise >>= 5 ;\n buf [ 2 ] = 'a' + noise % 26 ;\n noise >>= 5 ;\n buf [ 3 ] = '.' ;\n snprintf ( & buf [ 4 ] , sizeof ( buf ) - 4 , \"%d\" , indx ) ;\n ctl_putuint ( buf , noise ) ;\n }"}
{"idx": 19399, "target": 0, "func": "void vp9_fdct16x16_c ( const int16_t * input , tran_low_t * output , int stride ) {\n int pass ;\n tran_low_t intermediate [ 256 ] ;\n const int16_t * in_pass0 = input ;\n const tran_low_t * in = NULL ;\n tran_low_t * out = intermediate ;\n for ( pass = 0 ;\n pass < 2 ;\n ++ pass ) {\n tran_high_t step1 [ 8 ] ;\n tran_high_t step2 [ 8 ] ;\n tran_high_t step3 [ 8 ] ;\n tran_high_t input [ 8 ] ;\n tran_high_t temp1 , temp2 ;\n int i ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n if ( 0 == pass ) {\n input [ 0 ] = ( in_pass0 [ 0 * stride ] + in_pass0 [ 15 * stride ] ) * 4 ;\n input [ 1 ] = ( in_pass0 [ 1 * stride ] + in_pass0 [ 14 * stride ] ) * 4 ;\n input [ 2 ] = ( in_pass0 [ 2 * stride ] + in_pass0 [ 13 * stride ] ) * 4 ;\n input [ 3 ] = ( in_pass0 [ 3 * stride ] + in_pass0 [ 12 * stride ] ) * 4 ;\n input [ 4 ] = ( in_pass0 [ 4 * stride ] + in_pass0 [ 11 * stride ] ) * 4 ;\n input [ 5 ] = ( in_pass0 [ 5 * stride ] + in_pass0 [ 10 * stride ] ) * 4 ;\n input [ 6 ] = ( in_pass0 [ 6 * stride ] + in_pass0 [ 9 * stride ] ) * 4 ;\n input [ 7 ] = ( in_pass0 [ 7 * stride ] + in_pass0 [ 8 * stride ] ) * 4 ;\n step1 [ 0 ] = ( in_pass0 [ 7 * stride ] - in_pass0 [ 8 * stride ] ) * 4 ;\n step1 [ 1 ] = ( in_pass0 [ 6 * stride ] - in_pass0 [ 9 * stride ] ) * 4 ;\n step1 [ 2 ] = ( in_pass0 [ 5 * stride ] - in_pass0 [ 10 * stride ] ) * 4 ;\n step1 [ 3 ] = ( in_pass0 [ 4 * stride ] - in_pass0 [ 11 * stride ] ) * 4 ;\n step1 [ 4 ] = ( in_pass0 [ 3 * stride ] - in_pass0 [ 12 * stride ] ) * 4 ;\n step1 [ 5 ] = ( in_pass0 [ 2 * stride ] - in_pass0 [ 13 * stride ] ) * 4 ;\n step1 [ 6 ] = ( in_pass0 [ 1 * stride ] - in_pass0 [ 14 * stride ] ) * 4 ;\n step1 [ 7 ] = ( in_pass0 [ 0 * stride ] - in_pass0 [ 15 * stride ] ) * 4 ;\n }\n else {\n input [ 0 ] = ( ( in [ 0 * 16 ] + 1 ) >> 2 ) + ( ( in [ 15 * 16 ] + 1 ) >> 2 ) ;\n input [ 1 ] = ( ( in [ 1 * 16 ] + 1 ) >> 2 ) + ( ( in [ 14 * 16 ] + 1 ) >> 2 ) ;\n input [ 2 ] = ( ( in [ 2 * 16 ] + 1 ) >> 2 ) + ( ( in [ 13 * 16 ] + 1 ) >> 2 ) ;\n input [ 3 ] = ( ( in [ 3 * 16 ] + 1 ) >> 2 ) + ( ( in [ 12 * 16 ] + 1 ) >> 2 ) ;\n input [ 4 ] = ( ( in [ 4 * 16 ] + 1 ) >> 2 ) + ( ( in [ 11 * 16 ] + 1 ) >> 2 ) ;\n input [ 5 ] = ( ( in [ 5 * 16 ] + 1 ) >> 2 ) + ( ( in [ 10 * 16 ] + 1 ) >> 2 ) ;\n input [ 6 ] = ( ( in [ 6 * 16 ] + 1 ) >> 2 ) + ( ( in [ 9 * 16 ] + 1 ) >> 2 ) ;\n input [ 7 ] = ( ( in [ 7 * 16 ] + 1 ) >> 2 ) + ( ( in [ 8 * 16 ] + 1 ) >> 2 ) ;\n step1 [ 0 ] = ( ( in [ 7 * 16 ] + 1 ) >> 2 ) - ( ( in [ 8 * 16 ] + 1 ) >> 2 ) ;\n step1 [ 1 ] = ( ( in [ 6 * 16 ] + 1 ) >> 2 ) - ( ( in [ 9 * 16 ] + 1 ) >> 2 ) ;\n step1 [ 2 ] = ( ( in [ 5 * 16 ] + 1 ) >> 2 ) - ( ( in [ 10 * 16 ] + 1 ) >> 2 ) ;\n step1 [ 3 ] = ( ( in [ 4 * 16 ] + 1 ) >> 2 ) - ( ( in [ 11 * 16 ] + 1 ) >> 2 ) ;\n step1 [ 4 ] = ( ( in [ 3 * 16 ] + 1 ) >> 2 ) - ( ( in [ 12 * 16 ] + 1 ) >> 2 ) ;\n step1 [ 5 ] = ( ( in [ 2 * 16 ] + 1 ) >> 2 ) - ( ( in [ 13 * 16 ] + 1 ) >> 2 ) ;\n step1 [ 6 ] = ( ( in [ 1 * 16 ] + 1 ) >> 2 ) - ( ( in [ 14 * 16 ] + 1 ) >> 2 ) ;\n step1 [ 7 ] = ( ( in [ 0 * 16 ] + 1 ) >> 2 ) - ( ( in [ 15 * 16 ] + 1 ) >> 2 ) ;\n }\n {\n tran_high_t s0 , s1 , s2 , s3 , s4 , s5 , s6 , s7 ;\n tran_high_t t0 , t1 , t2 , t3 ;\n tran_high_t x0 , x1 , x2 , x3 ;\n s0 = input [ 0 ] + input [ 7 ] ;\n s1 = input [ 1 ] + input [ 6 ] ;\n s2 = input [ 2 ] + input [ 5 ] ;\n s3 = input [ 3 ] + input [ 4 ] ;\n s4 = input [ 3 ] - input [ 4 ] ;\n s5 = input [ 2 ] - input [ 5 ] ;\n s6 = input [ 1 ] - input [ 6 ] ;\n s7 = input [ 0 ] - input [ 7 ] ;\n x0 = s0 + s3 ;\n x1 = s1 + s2 ;\n x2 = s1 - s2 ;\n x3 = s0 - s3 ;\n t0 = ( x0 + x1 ) * cospi_16_64 ;\n t1 = ( x0 - x1 ) * cospi_16_64 ;\n t2 = x3 * cospi_8_64 + x2 * cospi_24_64 ;\n t3 = x3 * cospi_24_64 - x2 * cospi_8_64 ;\n out [ 0 ] = fdct_round_shift ( t0 ) ;\n out [ 4 ] = fdct_round_shift ( t2 ) ;\n out [ 8 ] = fdct_round_shift ( t1 ) ;\n out [ 12 ] = fdct_round_shift ( t3 ) ;\n t0 = ( s6 - s5 ) * cospi_16_64 ;\n t1 = ( s6 + s5 ) * cospi_16_64 ;\n t2 = fdct_round_shift ( t0 ) ;\n t3 = fdct_round_shift ( t1 ) ;\n x0 = s4 + t2 ;\n x1 = s4 - t2 ;\n x2 = s7 - t3 ;\n x3 = s7 + t3 ;\n t0 = x0 * cospi_28_64 + x3 * cospi_4_64 ;\n t1 = x1 * cospi_12_64 + x2 * cospi_20_64 ;\n t2 = x2 * cospi_12_64 + x1 * - cospi_20_64 ;\n t3 = x3 * cospi_28_64 + x0 * - cospi_4_64 ;\n out [ 2 ] = fdct_round_shift ( t0 ) ;\n out [ 6 ] = fdct_round_shift ( t2 ) ;\n out [ 10 ] = fdct_round_shift ( t1 ) ;\n out [ 14 ] = fdct_round_shift ( t3 ) ;\n }\n {\n temp1 = ( step1 [ 5 ] - step1 [ 2 ] ) * cospi_16_64 ;\n temp2 = ( step1 [ 4 ] - step1 [ 3 ] ) * cospi_16_64 ;\n step2 [ 2 ] = fdct_round_shift ( temp1 ) ;\n step2 [ 3 ] = fdct_round_shift ( temp2 ) ;\n temp1 = ( step1 [ 4 ] + step1 [ 3 ] ) * cospi_16_64 ;\n temp2 = ( step1 [ 5 ] + step1 [ 2 ] ) * cospi_16_64 ;\n step2 [ 4 ] = fdct_round_shift ( temp1 ) ;\n step2 [ 5 ] = fdct_round_shift ( temp2 ) ;\n step3 [ 0 ] = step1 [ 0 ] + step2 [ 3 ] ;\n step3 [ 1 ] = step1 [ 1 ] + step2 [ 2 ] ;\n step3 [ 2 ] = step1 [ 1 ] - step2 [ 2 ] ;\n step3 [ 3 ] = step1 [ 0 ] - step2 [ 3 ] ;\n step3 [ 4 ] = step1 [ 7 ] - step2 [ 4 ] ;\n step3 [ 5 ] = step1 [ 6 ] - step2 [ 5 ] ;\n step3 [ 6 ] = step1 [ 6 ] + step2 [ 5 ] ;\n step3 [ 7 ] = step1 [ 7 ] + step2 [ 4 ] ;\n temp1 = step3 [ 1 ] * - cospi_8_64 + step3 [ 6 ] * cospi_24_64 ;\n temp2 = step3 [ 2 ] * cospi_24_64 + step3 [ 5 ] * cospi_8_64 ;\n step2 [ 1 ] = fdct_round_shift ( temp1 ) ;\n step2 [ 2 ] = fdct_round_shift ( temp2 ) ;\n temp1 = step3 [ 2 ] * cospi_8_64 - step3 [ 5 ] * cospi_24_64 ;\n temp2 = step3 [ 1 ] * cospi_24_64 + step3 [ 6 ] * cospi_8_64 ;\n step2 [ 5 ] = fdct_round_shift ( temp1 ) ;\n step2 [ 6 ] = fdct_round_shift ( temp2 ) ;\n step1 [ 0 ] = step3 [ 0 ] + step2 [ 1 ] ;\n step1 [ 1 ] = step3 [ 0 ] - step2 [ 1 ] ;\n step1 [ 2 ] = step3 [ 3 ] + step2 [ 2 ] ;\n step1 [ 3 ] = step3 [ 3 ] - step2 [ 2 ] ;\n step1 [ 4 ] = step3 [ 4 ] - step2 [ 5 ] ;\n step1 [ 5 ] = step3 [ 4 ] + step2 [ 5 ] ;\n step1 [ 6 ] = step3 [ 7 ] - step2 [ 6 ] ;\n step1 [ 7 ] = step3 [ 7 ] + step2 [ 6 ] ;\n temp1 = step1 [ 0 ] * cospi_30_64 + step1 [ 7 ] * cospi_2_64 ;\n temp2 = step1 [ 1 ] * cospi_14_64 + step1 [ 6 ] * cospi_18_64 ;\n out [ 1 ] = fdct_round_shift ( temp1 ) ;\n out [ 9 ] = fdct_round_shift ( temp2 ) ;\n temp1 = step1 [ 2 ] * cospi_22_64 + step1 [ 5 ] * cospi_10_64 ;\n temp2 = step1 [ 3 ] * cospi_6_64 + step1 [ 4 ] * cospi_26_64 ;\n out [ 5 ] = fdct_round_shift ( temp1 ) ;\n out [ 13 ] = fdct_round_shift ( temp2 ) ;\n temp1 = step1 [ 3 ] * - cospi_26_64 + step1 [ 4 ] * cospi_6_64 ;\n temp2 = step1 [ 2 ] * - cospi_10_64 + step1 [ 5 ] * cospi_22_64 ;\n out [ 3 ] = fdct_round_shift ( temp1 ) ;\n out [ 11 ] = fdct_round_shift ( temp2 ) ;\n temp1 = step1 [ 1 ] * - cospi_18_64 + step1 [ 6 ] * cospi_14_64 ;\n temp2 = step1 [ 0 ] * - cospi_2_64 + step1 [ 7 ] * cospi_30_64 ;\n out [ 7 ] = fdct_round_shift ( temp1 ) ;\n out [ 15 ] = fdct_round_shift ( temp2 ) ;\n }\n in ++ ;\n in_pass0 ++ ;\n out += 16 ;\n }\n in = intermediate ;\n out = output ;\n }\n }"}
{"idx": 19400, "target": 0, "func": "void usage_exit ( ) {\n fprintf ( stderr , \"Usage: %s <codec> <width> <height> <infile> <outfile>\\n\" , exec_name ) ;\n exit ( EXIT_FAILURE ) ;\n }"}
{"idx": 19401, "target": 0, "func": "TEST_F ( WebFrameTest , NavigatorPluginsClearedWhenPluginsDisabled ) {\n ScopedFakePluginRegistry fake_plugins ;\n FrameTestHelpers : : WebViewHelper web_view_helper ;\n web_view_helper . Initialize ( ) ;\n v8 : : HandleScope scope ( v8 : : Isolate : : GetCurrent ( ) ) ;\n v8 : : Local < v8 : : Value > result = web_view_helper . LocalMainFrame ( ) -> ExecuteScriptAndReturnValue ( WebScriptSource ( \"navigator.plugins.length\" ) ) ;\n EXPECT_NE ( 0 , result -> Int32Value ( ) ) ;\n web_view_helper . GetWebView ( ) -> GetPage ( ) -> GetSettings ( ) . SetPluginsEnabled ( false ) ;\n result = web_view_helper . LocalMainFrame ( ) -> ExecuteScriptAndReturnValue ( WebScriptSource ( \"navigator.plugins.length\" ) ) ;\n EXPECT_EQ ( 0 , result -> Int32Value ( ) ) ;\n }"}
{"idx": 19402, "target": 1, "func": "static ossl_inline int sk_ ## t1 ## _reserve ( STACK_OF ( t1 ) * sk , int n ) {\n return OPENSSL_sk_reserve ( ( OPENSSL_STACK * ) sk , n ) ;\n }\n static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 19403, "target": 0, "func": "static int rm_probe ( AVProbeData * p ) {\n if ( ( p -> buf [ 0 ] == '.' && p -> buf [ 1 ] == 'R' && p -> buf [ 2 ] == 'M' && p -> buf [ 3 ] == 'F' && p -> buf [ 4 ] == 0 && p -> buf [ 5 ] == 0 ) || ( p -> buf [ 0 ] == '.' && p -> buf [ 1 ] == 'r' && p -> buf [ 2 ] == 'a' && p -> buf [ 3 ] == 0xfd ) ) return AVPROBE_SCORE_MAX ;\n else return 0 ;\n }"}
{"idx": 19404, "target": 0, "func": "static bluetooth_uuid_t get_uuid_from_handle ( packet_info * pinfo , guint32 handle , bluetooth_data_t * bluetooth_data ) {\n wmem_tree_key_t key [ 4 ] ;\n guint32 frame_number ;\n handle_data_t * handle_data ;\n wmem_tree_t * sub_wmemtree ;\n bluetooth_uuid_t uuid ;\n memset ( & uuid , 0 , sizeof uuid ) ;\n frame_number = pinfo -> num ;\n key [ 0 ] . length = 1 ;\n key [ 0 ] . key = & bluetooth_data -> interface_id ;\n key [ 1 ] . length = 1 ;\n key [ 1 ] . key = & bluetooth_data -> adapter_id ;\n key [ 2 ] . length = 1 ;\n key [ 2 ] . key = & handle ;\n key [ 3 ] . length = 0 ;\n key [ 3 ] . key = NULL ;\n sub_wmemtree = ( wmem_tree_t * ) wmem_tree_lookup32_array ( handle_to_uuid , key ) ;\n handle_data = ( sub_wmemtree ) ? ( handle_data_t * ) wmem_tree_lookup32_le ( sub_wmemtree , frame_number ) : NULL ;\n if ( handle_data ) uuid = handle_data -> uuid ;\n return uuid ;\n }"}
{"idx": 19405, "target": 0, "func": "static Datum ExecEvalAnd ( BoolExprState * andExpr , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n List * clauses = andExpr -> args ;\n ListCell * clause ;\n bool AnyNull ;\n if ( isDone ) * isDone = ExprSingleResult ;\n AnyNull = false ;\n foreach ( clause , clauses ) {\n ExprState * clausestate = ( ExprState * ) lfirst ( clause ) ;\n Datum clause_value ;\n clause_value = ExecEvalExpr ( clausestate , econtext , isNull , NULL ) ;\n if ( * isNull ) AnyNull = true ;\n else if ( ! DatumGetBool ( clause_value ) ) return clause_value ;\n }\n * isNull = AnyNull ;\n return BoolGetDatum ( ! AnyNull ) ;\n }"}
{"idx": 19406, "target": 0, "func": "int sort_write_record ( MI_SORT_PARAM * sort_param ) {\n int flag ;\n uint length ;\n ulong block_length , reclength ;\n uchar * from ;\n uchar block_buff [ 8 ] ;\n SORT_INFO * sort_info = sort_param -> sort_info ;\n MI_CHECK * param = sort_info -> param ;\n MI_INFO * info = sort_info -> info ;\n MYISAM_SHARE * share = info -> s ;\n DBUG_ENTER ( \"sort_write_record\" ) ;\n if ( sort_param -> fix_datafile ) {\n switch ( sort_info -> new_data_file_type ) {\n case STATIC_RECORD : if ( my_b_write ( & info -> rec_cache , sort_param -> record , share -> base . pack_reclength ) ) {\n mi_check_print_error ( param , \"%d when writing to datafile\" , my_errno ) ;\n DBUG_RETURN ( 1 ) ;\n }\n sort_param -> filepos += share -> base . pack_reclength ;\n info -> s -> state . split ++ ;\n break ;\n case DYNAMIC_RECORD : if ( ! info -> blobs ) from = sort_param -> rec_buff ;\n else {\n reclength = info -> s -> base . pack_reclength + _my_calc_total_blob_length ( info , sort_param -> record ) + ALIGN_SIZE ( MI_MAX_DYN_BLOCK_HEADER ) + MI_SPLIT_LENGTH + MI_DYN_DELETE_BLOCK_HEADER ;\n if ( sort_info -> buff_length < reclength ) {\n if ( ! ( sort_info -> buff = my_realloc ( sort_info -> buff , ( uint ) reclength , MYF ( MY_FREE_ON_ERROR | MY_ALLOW_ZERO_PTR ) ) ) ) DBUG_RETURN ( 1 ) ;\n sort_info -> buff_length = reclength ;\n }\n from = sort_info -> buff + ALIGN_SIZE ( MI_MAX_DYN_BLOCK_HEADER ) ;\n }\n info -> checksum = mi_checksum ( info , sort_param -> record ) ;\n reclength = _mi_rec_pack ( info , from , sort_param -> record ) ;\n flag = 0 ;\n do {\n block_length = reclength + 3 + test ( reclength >= ( 65520 - 3 ) ) ;\n if ( block_length < share -> base . min_block_length ) block_length = share -> base . min_block_length ;\n info -> update |= HA_STATE_WRITE_AT_END ;\n block_length = MY_ALIGN ( block_length , MI_DYN_ALIGN_SIZE ) ;\n if ( block_length > MI_MAX_BLOCK_LENGTH ) block_length = MI_MAX_BLOCK_LENGTH ;\n if ( _mi_write_part_record ( info , 0L , block_length , sort_param -> filepos + block_length , & from , & reclength , & flag ) ) {\n mi_check_print_error ( param , \"%d when writing to datafile\" , my_errno ) ;\n DBUG_RETURN ( 1 ) ;\n }\n sort_param -> filepos += block_length ;\n info -> s -> state . split ++ ;\n }\n while ( reclength ) ;\n break ;\n case COMPRESSED_RECORD : reclength = info -> packed_length ;\n length = save_pack_length ( ( uint ) share -> pack . version , block_buff , reclength ) ;\n if ( info -> s -> base . blobs ) length += save_pack_length ( ( uint ) share -> pack . version , block_buff + length , info -> blob_length ) ;\n if ( my_b_write ( & info -> rec_cache , block_buff , length ) || my_b_write ( & info -> rec_cache , ( uchar * ) sort_param -> rec_buff , reclength ) ) {\n mi_check_print_error ( param , \"%d when writing to datafile\" , my_errno ) ;\n DBUG_RETURN ( 1 ) ;\n }\n sort_param -> filepos += reclength + length ;\n info -> s -> state . split ++ ;\n break ;\n case BLOCK_RECORD : assert ( 0 ) ;\n }\n }\n if ( sort_param -> master ) {\n info -> state -> records ++ ;\n if ( ( param -> testflag & T_WRITE_LOOP ) && ( info -> state -> records % WRITE_COUNT ) == 0 ) {\n char llbuff [ 22 ] ;\n printf ( \"%s\\r\" , llstr ( info -> state -> records , llbuff ) ) ;\n ( void ) fflush ( stdout ) ;\n }\n }\n DBUG_RETURN ( 0 ) ;\n }"}
{"idx": 19407, "target": 0, "func": "static gcry_module_t gcry_pk_lookup_name ( const char * name ) {\n gcry_module_t pubkey ;\n pubkey = _gcry_module_lookup ( pubkeys_registered , ( void * ) name , gcry_pk_lookup_func_name ) ;\n return pubkey ;\n }"}
{"idx": 19408, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize ) ;\n DECL_PIOCTL ( PGetCacheSize ) ;\n DECL_PIOCTL ( PRemoveCallBack ) ;\n DECL_PIOCTL ( PNewCell ) ;\n DECL_PIOCTL ( PNewAlias ) ;\n DECL_PIOCTL ( PListCells ) ;\n DECL_PIOCTL ( PListAliases ) ;\n DECL_PIOCTL ( PRemoveMount ) ;\n DECL_PIOCTL ( PGetCellStatus ) ;\n DECL_PIOCTL ( PSetCellStatus ) ;\n DECL_PIOCTL ( PFlushVolumeData ) ;\n DECL_PIOCTL ( PFlushAllVolumeData )"}
{"idx": 19409, "target": 0, "func": "static void synthesis ( AMRWBContext * ctx , float * lpc , float * excitation , float fixed_gain , const float * fixed_vector , float * samples ) {\n ff_weighted_vector_sumf ( excitation , ctx -> pitch_vector , fixed_vector , ctx -> pitch_gain [ 0 ] , fixed_gain , AMRWB_SFR_SIZE ) ;\n if ( ctx -> pitch_gain [ 0 ] > 0.5 && ctx -> fr_cur_mode <= MODE_8k85 ) {\n int i ;\n float energy = avpriv_scalarproduct_float_c ( excitation , excitation , AMRWB_SFR_SIZE ) ;\n float pitch_factor = 0.25 * ctx -> pitch_gain [ 0 ] * ctx -> pitch_gain [ 0 ] ;\n for ( i = 0 ;\n i < AMRWB_SFR_SIZE ;\n i ++ ) excitation [ i ] += pitch_factor * ctx -> pitch_vector [ i ] ;\n ff_scale_vector_to_given_sum_of_squares ( excitation , excitation , energy , AMRWB_SFR_SIZE ) ;\n }\n ff_celp_lp_synthesis_filterf ( samples , lpc , excitation , AMRWB_SFR_SIZE , LP_ORDER ) ;\n }"}
{"idx": 19410, "target": 1, "func": "void vp9_rc_init_minq_luts ( ) {\n int i ;\n for ( i = 0 ;\n i < QINDEX_RANGE ;\n i ++ ) {\n const double maxq = vp9_convert_qindex_to_q ( i ) ;\n kf_low_motion_minq [ i ] = get_minq_index ( maxq , 0.000001 , - 0.0004 , 0.125 ) ;\n kf_high_motion_minq [ i ] = get_minq_index ( maxq , 0.000002 , - 0.0012 , 0.50 ) ;\n arfgf_low_motion_minq [ i ] = get_minq_index ( maxq , 0.0000015 , - 0.0009 , 0.30 ) ;\n arfgf_high_motion_minq [ i ] = get_minq_index ( maxq , 0.0000021 , - 0.00125 , 0.50 ) ;\n inter_minq [ i ] = get_minq_index ( maxq , 0.00000271 , - 0.00113 , 0.90 ) ;\n rtc_minq [ i ] = get_minq_index ( maxq , 0.00000271 , - 0.00113 , 0.70 ) ;\n }\n }"}
{"idx": 19411, "target": 0, "func": "static void dissect_zcl_poll_ctrl_attr_data ( proto_tree * tree , tvbuff_t * tvb , guint * offset , guint16 attr_id _U_ , guint data_type ) {\n dissect_zcl_attr_data ( tvb , tree , offset , data_type ) ;\n }"}
{"idx": 19412, "target": 0, "func": "static void ctl_putpeer ( int id , struct peer * p ) {\n char buf [ CTL_MAX_DATA_LEN ] ;\n char * s ;\n char * t ;\n char * be ;\n int i ;\n const struct ctl_var * k ;\n # ifdef AUTOKEY struct autokey * ap ;\n const EVP_MD * dp ;\n const char * str ;\n # endif switch ( id ) {\n case CP_CONFIG : ctl_putuint ( peer_var [ id ] . text , ! ( FLAG_PREEMPT & p -> flags ) ) ;\n break ;\n case CP_AUTHENABLE : ctl_putuint ( peer_var [ id ] . text , ! ( p -> keyid ) ) ;\n break ;\n case CP_AUTHENTIC : ctl_putuint ( peer_var [ id ] . text , ! ! ( FLAG_AUTHENTIC & p -> flags ) ) ;\n break ;\n case CP_SRCADR : ctl_putadr ( peer_var [ id ] . text , 0 , & p -> srcadr ) ;\n break ;\n case CP_SRCPORT : ctl_putuint ( peer_var [ id ] . text , SRCPORT ( & p -> srcadr ) ) ;\n break ;\n case CP_SRCHOST : if ( p -> hostname != NULL ) ctl_putstr ( peer_var [ id ] . text , p -> hostname , strlen ( p -> hostname ) ) ;\n break ;\n case CP_DSTADR : ctl_putadr ( peer_var [ id ] . text , 0 , ( p -> dstadr != NULL ) ? & p -> dstadr -> sin : NULL ) ;\n break ;\n case CP_DSTPORT : ctl_putuint ( peer_var [ id ] . text , ( p -> dstadr != NULL ) ? SRCPORT ( & p -> dstadr -> sin ) : 0 ) ;\n break ;\n case CP_IN : if ( p -> r21 > 0. ) ctl_putdbl ( peer_var [ id ] . text , p -> r21 / 1e3 ) ;\n break ;\n case CP_OUT : if ( p -> r34 > 0. ) ctl_putdbl ( peer_var [ id ] . text , p -> r34 / 1e3 ) ;\n break ;\n case CP_RATE : ctl_putuint ( peer_var [ id ] . text , p -> throttle ) ;\n break ;\n case CP_LEAP : ctl_putuint ( peer_var [ id ] . text , p -> leap ) ;\n break ;\n case CP_HMODE : ctl_putuint ( peer_var [ id ] . text , p -> hmode ) ;\n break ;\n case CP_STRATUM : ctl_putuint ( peer_var [ id ] . text , p -> stratum ) ;\n break ;\n case CP_PPOLL : ctl_putuint ( peer_var [ id ] . text , p -> ppoll ) ;\n break ;\n case CP_HPOLL : ctl_putuint ( peer_var [ id ] . text , p -> hpoll ) ;\n break ;\n case CP_PRECISION : ctl_putint ( peer_var [ id ] . text , p -> precision ) ;\n break ;\n case CP_ROOTDELAY : ctl_putdbl ( peer_var [ id ] . text , p -> rootdelay * 1e3 ) ;\n break ;\n case CP_ROOTDISPERSION : ctl_putdbl ( peer_var [ id ] . text , p -> rootdisp * 1e3 ) ;\n break ;\n case CP_REFID : # ifdef REFCLOCK if ( p -> flags & FLAG_REFCLOCK ) {\n ctl_putrefid ( peer_var [ id ] . text , p -> refid ) ;\n break ;\n }\n # endif if ( p -> stratum > 1 && p -> stratum < STRATUM_UNSPEC ) ctl_putadr ( peer_var [ id ] . text , p -> refid , NULL ) ;\n else ctl_putrefid ( peer_var [ id ] . text , p -> refid ) ;\n break ;\n case CP_REFTIME : ctl_putts ( peer_var [ id ] . text , & p -> reftime ) ;\n break ;\n case CP_ORG : ctl_putts ( peer_var [ id ] . text , & p -> aorg ) ;\n break ;\n case CP_REC : ctl_putts ( peer_var [ id ] . text , & p -> dst ) ;\n break ;\n case CP_XMT : if ( p -> xleave ) ctl_putdbl ( peer_var [ id ] . text , p -> xleave * 1e3 ) ;\n break ;\n case CP_BIAS : if ( p -> bias != 0. ) ctl_putdbl ( peer_var [ id ] . text , p -> bias * 1e3 ) ;\n break ;\n case CP_REACH : ctl_puthex ( peer_var [ id ] . text , p -> reach ) ;\n break ;\n case CP_FLASH : ctl_puthex ( peer_var [ id ] . text , p -> flash ) ;\n break ;\n case CP_TTL : # ifdef REFCLOCK if ( p -> flags & FLAG_REFCLOCK ) {\n ctl_putuint ( peer_var [ id ] . text , p -> ttl ) ;\n break ;\n }\n # endif if ( p -> ttl > 0 && p -> ttl < COUNTOF ( sys_ttl ) ) ctl_putint ( peer_var [ id ] . text , sys_ttl [ p -> ttl ] ) ;\n break ;\n case CP_UNREACH : ctl_putuint ( peer_var [ id ] . text , p -> unreach ) ;\n break ;\n case CP_TIMER : ctl_putuint ( peer_var [ id ] . text , p -> nextdate - current_time ) ;\n break ;\n case CP_DELAY : ctl_putdbl ( peer_var [ id ] . text , p -> delay * 1e3 ) ;\n break ;\n case CP_OFFSET : ctl_putdbl ( peer_var [ id ] . text , p -> offset * 1e3 ) ;\n break ;\n case CP_JITTER : ctl_putdbl ( peer_var [ id ] . text , p -> jitter * 1e3 ) ;\n break ;\n case CP_DISPERSION : ctl_putdbl ( peer_var [ id ] . text , p -> disp * 1e3 ) ;\n break ;\n case CP_KEYID : if ( p -> keyid > NTP_MAXKEY ) ctl_puthex ( peer_var [ id ] . text , p -> keyid ) ;\n else ctl_putuint ( peer_var [ id ] . text , p -> keyid ) ;\n break ;\n case CP_FILTDELAY : ctl_putarray ( peer_var [ id ] . text , p -> filter_delay , p -> filter_nextpt ) ;\n break ;\n case CP_FILTOFFSET : ctl_putarray ( peer_var [ id ] . text , p -> filter_offset , p -> filter_nextpt ) ;\n break ;\n case CP_FILTERROR : ctl_putarray ( peer_var [ id ] . text , p -> filter_disp , p -> filter_nextpt ) ;\n break ;\n case CP_PMODE : ctl_putuint ( peer_var [ id ] . text , p -> pmode ) ;\n break ;\n case CP_RECEIVED : ctl_putuint ( peer_var [ id ] . text , p -> received ) ;\n break ;\n case CP_SENT : ctl_putuint ( peer_var [ id ] . text , p -> sent ) ;\n break ;\n case CP_VARLIST : s = buf ;\n be = buf + sizeof ( buf ) ;\n if ( strlen ( peer_var [ id ] . text ) + 4 > sizeof ( buf ) ) break ;\n snprintf ( s , sizeof ( buf ) , \"%s=\\\"\" , peer_var [ id ] . text ) ;\n s += strlen ( s ) ;\n t = s ;\n for ( k = peer_var ;\n ! ( EOV & k -> flags ) ;\n k ++ ) {\n if ( PADDING & k -> flags ) continue ;\n i = strlen ( k -> text ) ;\n if ( s + i + 1 >= be ) break ;\n if ( s != t ) * s ++ = ',' ;\n memcpy ( s , k -> text , i ) ;\n s += i ;\n }\n if ( s + 2 < be ) {\n * s ++ = '\"' ;\n * s = '\\0' ;\n ctl_putdata ( buf , ( u_int ) ( s - buf ) , 0 ) ;\n }\n break ;\n case CP_TIMEREC : ctl_putuint ( peer_var [ id ] . text , current_time - p -> timereceived ) ;\n break ;\n case CP_TIMEREACH : ctl_putuint ( peer_var [ id ] . text , current_time - p -> timereachable ) ;\n break ;\n case CP_BADAUTH : ctl_putuint ( peer_var [ id ] . text , p -> badauth ) ;\n break ;\n case CP_BOGUSORG : ctl_putuint ( peer_var [ id ] . text , p -> bogusorg ) ;\n break ;\n case CP_OLDPKT : ctl_putuint ( peer_var [ id ] . text , p -> oldpkt ) ;\n break ;\n case CP_SELDISP : ctl_putuint ( peer_var [ id ] . text , p -> seldisptoolarge ) ;\n break ;\n case CP_SELBROKEN : ctl_putuint ( peer_var [ id ] . text , p -> selbroken ) ;\n break ;\n case CP_CANDIDATE : ctl_putuint ( peer_var [ id ] . text , p -> status ) ;\n break ;\n # ifdef AUTOKEY case CP_FLAGS : if ( p -> crypto ) ctl_puthex ( peer_var [ id ] . text , p -> crypto ) ;\n break ;\n case CP_SIGNATURE : if ( p -> crypto ) {\n dp = EVP_get_digestbynid ( p -> crypto >> 16 ) ;\n str = OBJ_nid2ln ( EVP_MD_pkey_type ( dp ) ) ;\n ctl_putstr ( peer_var [ id ] . text , str , strlen ( str ) ) ;\n }\n break ;\n case CP_HOST : if ( p -> subject != NULL ) ctl_putstr ( peer_var [ id ] . text , p -> subject , strlen ( p -> subject ) ) ;\n break ;\n case CP_VALID : break ;\n case CP_INITSEQ : if ( NULL == ( ap = p -> recval . ptr ) ) break ;\n ctl_putint ( peer_var [ CP_INITSEQ ] . text , ap -> seq ) ;\n ctl_puthex ( peer_var [ CP_INITKEY ] . text , ap -> key ) ;\n ctl_putfs ( peer_var [ CP_INITTSP ] . text , ntohl ( p -> recval . tstamp ) ) ;\n break ;\n case CP_IDENT : if ( p -> ident != NULL ) ctl_putstr ( peer_var [ id ] . text , p -> ident , strlen ( p -> ident ) ) ;\n break ;\n # endif }\n }"}
{"idx": 19413, "target": 0, "func": "static int dissect_h245_INTEGER_0_127 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 127U , NULL , FALSE ) ;\n return offset ;\n }"}
{"idx": 19414, "target": 0, "func": "static inline void rfc822_parser_deinit ( struct rfc822_parser_context * ctx ) {\n i_assert ( ctx -> data <= ctx -> end ) ;\n ctx -> data = ctx -> end = NULL ;\n }"}
{"idx": 19415, "target": 0, "func": "static void stream_blob ( uintmax_t len , unsigned char * sha1out , uintmax_t mark ) {\n size_t in_sz = 64 * 1024 , out_sz = 64 * 1024 ;\n unsigned char * in_buf = xmalloc ( in_sz ) ;\n unsigned char * out_buf = xmalloc ( out_sz ) ;\n struct object_entry * e ;\n unsigned char sha1 [ 20 ] ;\n unsigned long hdrlen ;\n off_t offset ;\n git_SHA_CTX c ;\n git_zstream s ;\n struct sha1file_checkpoint checkpoint ;\n int status = Z_OK ;\n if ( ( max_packsize && ( pack_size + 60 + len ) > max_packsize ) || ( pack_size + 60 + len ) < pack_size ) cycle_packfile ( ) ;\n sha1file_checkpoint ( pack_file , & checkpoint ) ;\n offset = checkpoint . offset ;\n hdrlen = snprintf ( ( char * ) out_buf , out_sz , \"blob %\" PRIuMAX , len ) + 1 ;\n if ( out_sz <= hdrlen ) die ( \"impossibly large object header\" ) ;\n git_SHA1_Init ( & c ) ;\n git_SHA1_Update ( & c , out_buf , hdrlen ) ;\n crc32_begin ( pack_file ) ;\n git_deflate_init ( & s , pack_compression_level ) ;\n hdrlen = encode_in_pack_object_header ( OBJ_BLOB , len , out_buf ) ;\n if ( out_sz <= hdrlen ) die ( \"impossibly large object header\" ) ;\n s . next_out = out_buf + hdrlen ;\n s . avail_out = out_sz - hdrlen ;\n while ( status != Z_STREAM_END ) {\n if ( 0 < len && ! s . avail_in ) {\n size_t cnt = in_sz < len ? in_sz : ( size_t ) len ;\n size_t n = fread ( in_buf , 1 , cnt , stdin ) ;\n if ( ! n && feof ( stdin ) ) die ( \"EOF in data (%\" PRIuMAX \" bytes remaining)\" , len ) ;\n git_SHA1_Update ( & c , in_buf , n ) ;\n s . next_in = in_buf ;\n s . avail_in = n ;\n len -= n ;\n }\n status = git_deflate ( & s , len ? 0 : Z_FINISH ) ;\n if ( ! s . avail_out || status == Z_STREAM_END ) {\n size_t n = s . next_out - out_buf ;\n sha1write ( pack_file , out_buf , n ) ;\n pack_size += n ;\n s . next_out = out_buf ;\n s . avail_out = out_sz ;\n }\n switch ( status ) {\n case Z_OK : case Z_BUF_ERROR : case Z_STREAM_END : continue ;\n default : die ( \"unexpected deflate failure: %d\" , status ) ;\n }\n }\n git_deflate_end ( & s ) ;\n git_SHA1_Final ( sha1 , & c ) ;\n if ( sha1out ) hashcpy ( sha1out , sha1 ) ;\n e = insert_object ( sha1 ) ;\n if ( mark ) insert_mark ( mark , e ) ;\n if ( e -> idx . offset ) {\n duplicate_count_by_type [ OBJ_BLOB ] ++ ;\n truncate_pack ( & checkpoint ) ;\n }\n else if ( find_sha1_pack ( sha1 , packed_git ) ) {\n e -> type = OBJ_BLOB ;\n e -> pack_id = MAX_PACK_ID ;\n e -> idx . offset = 1 ;\n duplicate_count_by_type [ OBJ_BLOB ] ++ ;\n truncate_pack ( & checkpoint ) ;\n }\n else {\n e -> depth = 0 ;\n e -> type = OBJ_BLOB ;\n e -> pack_id = pack_id ;\n e -> idx . offset = offset ;\n e -> idx . crc32 = crc32_end ( pack_file ) ;\n object_count ++ ;\n object_count_by_type [ OBJ_BLOB ] ++ ;\n }\n free ( in_buf ) ;\n free ( out_buf ) ;\n }"}
{"idx": 19416, "target": 0, "func": "const EVP_CIPHER * EVP_aes_ ## keylen ## _ ## mode ( void ) \\ {\n return & aes_ ## keylen ## _ ## mode ;\n }\n # define BLOCK_CIPHER_custom ( nid , keylen , blocksize , ivlen , mode , MODE , flags ) static const EVP_CIPHER aes_ ## keylen ## _ ## mode = {\n \\ nid ## _ ## keylen ## _ ## mode , blocksize , \\ ( EVP_CIPH_ ## MODE ## _MODE == EVP_CIPH_XTS_MODE ? 2 : 1 ) * keylen / 8 , ivlen , \\ flags | EVP_CIPH_ ## MODE ## _MODE , \\ aes_ ## mode ## _init_key , \\ aes_ ## mode ## _cipher , \\ aes_ ## mode ## _cleanup , \\ sizeof ( EVP_AES_ ## MODE ## _CTX ) , \\ NULL , NULL , aes_ ## mode ## _ctrl , NULL }\n ;\n const EVP_CIPHER * EVP_aes_ ## keylen ## _ ## mode ( void ) \\ {\n return & aes_ ## keylen ## _ ## mode ;\n }\n # 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_CAPABLE ( OPENSSL_armcap_P & ARMV7_NEON ) # endif # if defined ( VPAES_ASM ) # define VPAES_CAPABLE ( OPENSSL_armcap_P & ARMV7_NEON ) # endif # define HWAES_CAPABLE ( OPENSSL_armcap_P & ARMV8_AES ) # define HWAES_set_encrypt_key aes_v8_set_encrypt_key # define HWAES_set_decrypt_key aes_v8_set_decrypt_key # define HWAES_encrypt aes_v8_encrypt # define HWAES_decrypt aes_v8_decrypt # define HWAES_cbc_encrypt aes_v8_cbc_encrypt # define HWAES_ctr32_encrypt_blocks aes_v8_ctr32_encrypt_blocks # endif # endif # if defined ( HWAES_CAPABLE ) int HWAES_set_encrypt_key ( const unsigned char * userKey , const int bits , AES_KEY * key ) ;\n int HWAES_set_decrypt_key ( const unsigned char * userKey , const int bits , AES_KEY * key ) ;\n void HWAES_encrypt ( const unsigned char * in , unsigned char * out , const AES_KEY * key ) ;\n void HWAES_decrypt ( const unsigned char * in , unsigned char * out , const AES_KEY * key ) ;\n void HWAES_cbc_encrypt ( const unsigned char * in , unsigned char * out , size_t length , const AES_KEY * key , unsigned char * ivec , const int enc ) ;\n void HWAES_ctr32_encrypt_blocks ( const unsigned char * in , unsigned char * out , size_t len , const AES_KEY * key , const unsigned char ivec [ 16 ] ) ;\n void HWAES_xts_encrypt ( const unsigned char * inp , unsigned char * out , size_t len , const AES_KEY * key1 , const AES_KEY * key2 , const unsigned char iv [ 16 ] ) ;\n void HWAES_xts_decrypt ( const unsigned char * inp , unsigned char * out , size_t len , const AES_KEY * key1 , const AES_KEY * key2 , const unsigned char iv [ 16 ] ) ;\n # endif # define BLOCK_CIPHER_generic_pack ( nid , keylen , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 16 , 16 , cbc , cbc , CBC , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 16 , 0 , ecb , ecb , ECB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , ofb128 , ofb , OFB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb128 , cfb , CFB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb1 , cfb1 , CFB , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb8 , cfb8 , CFB , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , ctr , ctr , CTR , flags ) static int aes_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n int ret , mode ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n mode = EVP_CIPHER_CTX_mode ( ctx ) ;\n if ( ( mode == EVP_CIPH_ECB_MODE || mode == EVP_CIPH_CBC_MODE ) && ! enc ) {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_decrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n # endif }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CBC_MODE ) {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = ( cbc128_f ) bsaes_cbc_encrypt ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n }\n }\n else # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_encrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n else # endif # ifdef HWAES_ctr32_encrypt_blocks if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) HWAES_ctr32_encrypt_blocks ;\n else # endif ( void ) 0 ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CTR_MODE ) {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . ctr = ( ctr128_f ) bsaes_ctr32_encrypt_blocks ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n # ifdef AES_CTR_ASM if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) AES_ctr32_encrypt ;\n # endif }\n if ( ret < 0 ) {\n EVPerr ( EVP_F_AES_INIT_KEY , EVP_R_AES_KEY_SETUP_FAILED ) ;\n return 0 ;\n }\n return 1 ;\n }\n static int aes_cbc_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( dat -> stream . cbc ) ( * dat -> stream . cbc ) ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_encrypting ( ctx ) ) ;\n else if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) CRYPTO_cbc128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , dat -> block ) ;\n else CRYPTO_cbc128_decrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , dat -> block ) ;\n return 1 ;\n }\n static int aes_ecb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n size_t bl = EVP_CIPHER_CTX_block_size ( ctx ) ;\n size_t i ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( len < bl ) return 1 ;\n for ( i = 0 , len -= bl ;\n i <= len ;\n i += bl ) ( * dat -> block ) ( in + i , out + i , & dat -> ks ) ;\n return 1 ;\n }\n static int aes_ofb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_ofb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb8_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_8_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb1_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( EVP_CIPHER_CTX_test_flags ( ctx , EVP_CIPH_FLAG_LENGTH_BITS ) ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n while ( len >= MAXBITCHUNK ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , MAXBITCHUNK * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n len -= MAXBITCHUNK ;\n }\n if ( len ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n }\n return 1 ;\n }\n static int aes_ctr_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n unsigned int num = EVP_CIPHER_CTX_num ( ctx ) ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( dat -> stream . ctr ) CRYPTO_ctr128_encrypt_ctr32 ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> stream . ctr ) ;\n else CRYPTO_ctr128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n BLOCK_CIPHER_generic_pack ( NID_aes , 128 , 0 ) BLOCK_CIPHER_generic_pack ( NID_aes , 192 , 0 ) BLOCK_CIPHER_generic_pack ( NID_aes , 256 , 0 )"}
{"idx": 19417, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( MediaStreamPermissionTest , TestAllowingUserMedia ) {\n content : : WebContents * tab_contents = LoadTestPageInTab ( ) ;\n EXPECT_TRUE ( GetUserMediaAndAccept ( tab_contents ) ) ;\n }"}
{"idx": 19418, "target": 0, "func": "static void die ( const char * format , ... ) {\n va_list arg_ptr ;\n fflush ( stdout ) ;\n fprintf ( stderr , \"%s: \" , PGM ) ;\n if ( wherestr ) fprintf ( stderr , \"%s: \" , wherestr ) ;\n va_start ( arg_ptr , format ) ;\n vfprintf ( stderr , format , arg_ptr ) ;\n va_end ( arg_ptr ) ;\n exit ( 1 ) ;\n }"}
{"idx": 19419, "target": 0, "func": "static uint64_t calc_plane_error ( unsigned char * orig , int orig_stride , unsigned char * recon , int recon_stride , unsigned int cols , unsigned int rows ) {\n unsigned int row , col ;\n uint64_t total_sse = 0 ;\n int diff ;\n for ( row = 0 ;\n row + 16 <= rows ;\n row += 16 ) {\n for ( col = 0 ;\n col + 16 <= cols ;\n col += 16 ) {\n unsigned int sse ;\n vp8_mse16x16 ( orig + col , orig_stride , recon + col , recon_stride , & sse ) ;\n total_sse += sse ;\n }\n if ( col < cols ) {\n unsigned int border_row , border_col ;\n unsigned char * border_orig = orig ;\n unsigned char * border_recon = recon ;\n for ( border_row = 0 ;\n border_row < 16 ;\n border_row ++ ) {\n for ( border_col = col ;\n border_col < cols ;\n border_col ++ ) {\n diff = border_orig [ border_col ] - border_recon [ border_col ] ;\n total_sse += diff * diff ;\n }\n border_orig += orig_stride ;\n border_recon += recon_stride ;\n }\n }\n orig += orig_stride * 16 ;\n recon += recon_stride * 16 ;\n }\n for ( ;\n row < rows ;\n row ++ ) {\n for ( col = 0 ;\n col < cols ;\n col ++ ) {\n diff = orig [ col ] - recon [ col ] ;\n total_sse += diff * diff ;\n }\n orig += orig_stride ;\n recon += recon_stride ;\n }\n vp8_clear_system_state ( ) ;\n return total_sse ;\n }"}
{"idx": 19420, "target": 1, "func": "static void initial_reordering_syllable ( const hb_ot_shape_plan_t * plan , hb_face_t * face , hb_buffer_t * buffer , unsigned int start , unsigned int end ) {\n syllable_type_t syllable_type = ( syllable_type_t ) ( buffer -> info [ start ] . syllable ( ) & 0x0F ) ;\n switch ( syllable_type ) {\n case consonant_syllable : initial_reordering_consonant_syllable ( plan , face , buffer , start , end ) ;\n return ;\n case vowel_syllable : initial_reordering_vowel_syllable ( plan , face , buffer , start , end ) ;\n return ;\n case standalone_cluster : initial_reordering_standalone_cluster ( plan , face , buffer , start , end ) ;\n return ;\n case symbol_cluster : initial_reordering_symbol_cluster ( plan , face , buffer , start , end ) ;\n return ;\n case broken_cluster : initial_reordering_broken_cluster ( plan , face , buffer , start , end ) ;\n return ;\n case non_indic_cluster : initial_reordering_non_indic_cluster ( plan , face , buffer , start , end ) ;\n return ;\n }\n }"}
{"idx": 19421, "target": 0, "func": "static void row_dim_delete ( zval * object , zval * offset TSRMLS_DC ) {\n php_error_docref ( NULL TSRMLS_CC , E_WARNING , \"Cannot delete properties from a PDORow\" ) ;\n }"}
{"idx": 19422, "target": 0, "func": "TEST_F ( WebFrameTest , ContextMenuDataSelectedText ) {\n ContextMenuWebFrameClient frame ;\n FrameTestHelpers : : WebViewHelper web_view_helper ;\n WebViewImpl * web_view = web_view_helper . Initialize ( & frame ) ;\n const std : : string & html = \"<input value=' '>\" ;\n FrameTestHelpers : : LoadHTMLString ( web_view -> MainFrameImpl ( ) , html , ToKURL ( \"about:blank\" ) ) ;\n web_view -> Resize ( WebSize ( 500 , 300 ) ) ;\n web_view -> UpdateAllLifecyclePhases ( ) ;\n RunPendingTasks ( ) ;\n web_view -> SetInitialFocus ( false ) ;\n RunPendingTasks ( ) ;\n web_view -> MainFrameImpl ( ) -> ExecuteCommand ( WebString : : FromUTF8 ( \"SelectAll\" ) ) ;\n WebMouseEvent mouse_event ( WebInputEvent : : kMouseDown , WebInputEvent : : kNoModifiers , WebInputEvent : : GetStaticTimeStampForTests ( ) ) ;\n mouse_event . button = WebMouseEvent : : Button : : kRight ;\n mouse_event . SetPositionInWidget ( 8 , 8 ) ;\n mouse_event . click_count = 1 ;\n web_view -> HandleInputEvent ( WebCoalescedInputEvent ( mouse_event ) ) ;\n RunPendingTasks ( ) ;\n web_view_helper . Reset ( ) ;\n EXPECT_EQ ( frame . GetMenuData ( ) . selected_text , \" \" ) ;\n }"}
{"idx": 19423, "target": 0, "func": "static void prc_destroy ( jpc_enc_prc_t * prc ) {\n jpc_enc_cblk_t * cblk ;\n uint_fast32_t cblkno ;\n if ( prc -> cblks ) {\n for ( cblkno = 0 , cblk = prc -> cblks ;\n cblkno < prc -> numcblks ;\n ++ cblkno , ++ cblk ) {\n cblk_destroy ( cblk ) ;\n }\n jas_free ( prc -> cblks ) ;\n prc -> cblks = NULL ;\n }\n if ( prc -> incltree ) {\n jpc_tagtree_destroy ( prc -> incltree ) ;\n prc -> incltree = NULL ;\n }\n if ( prc -> nlibtree ) {\n jpc_tagtree_destroy ( prc -> nlibtree ) ;\n prc -> nlibtree = NULL ;\n }\n if ( prc -> savincltree ) {\n jpc_tagtree_destroy ( prc -> savincltree ) ;\n prc -> savincltree = NULL ;\n }\n if ( prc -> savnlibtree ) {\n jpc_tagtree_destroy ( prc -> savnlibtree ) ;\n prc -> savnlibtree = NULL ;\n }\n }"}
{"idx": 19424, "target": 1, "func": "static gcry_err_code_t sexp_elements_extract ( gcry_sexp_t key_sexp , const char * element_names , gcry_mpi_t * elements , const char * algo_name ) {\n gcry_err_code_t err = 0 ;\n int i , idx ;\n const char * name ;\n gcry_sexp_t list ;\n for ( name = element_names , idx = 0 ;\n * name && ! err ;\n name ++ , idx ++ ) {\n list = gcry_sexp_find_token ( key_sexp , name , 1 ) ;\n if ( ! list ) elements [ idx ] = NULL ;\n else {\n elements [ idx ] = gcry_sexp_nth_mpi ( list , 1 , GCRYMPI_FMT_USG ) ;\n gcry_sexp_release ( list ) ;\n if ( ! elements [ idx ] ) err = GPG_ERR_INV_OBJ ;\n }\n }\n if ( ! err ) {\n for ( name = element_names , i = 0 ;\n * name ;\n name ++ , i ++ ) if ( ! elements [ i ] ) break ;\n if ( * name ) {\n err = GPG_ERR_NO_OBJ ;\n if ( algo_name && ! strcmp ( algo_name , \"RSA\" ) && ! strcmp ( element_names , \"nedpqu\" ) ) {\n if ( elements [ 0 ] && elements [ 1 ] && elements [ 2 ] && ! elements [ 3 ] && ! elements [ 4 ] && ! elements [ 5 ] ) err = 0 ;\n }\n }\n }\n if ( err ) {\n for ( i = 0 ;\n i < idx ;\n i ++ ) if ( elements [ i ] ) mpi_free ( elements [ i ] ) ;\n }\n return err ;\n }"}
{"idx": 19425, "target": 0, "func": "static inline void decode_subblock3 ( int16_t * dst , int code , GetBitContext * gb , VLC * vlc , int q_dc , int q_ac1 , int q_ac2 ) {\n int flags = modulo_three_table [ code ] ;\n decode_coeff ( dst + 0 * 4 + 0 , ( flags >> 6 ) , 3 , gb , vlc , q_dc ) ;\n decode_coeff ( dst + 0 * 4 + 1 , ( flags >> 4 ) & 3 , 2 , gb , vlc , q_ac1 ) ;\n decode_coeff ( dst + 1 * 4 + 0 , ( flags >> 2 ) & 3 , 2 , gb , vlc , q_ac1 ) ;\n decode_coeff ( dst + 1 * 4 + 1 , ( flags >> 0 ) & 3 , 2 , gb , vlc , q_ac2 ) ;\n }"}
{"idx": 19426, "target": 0, "func": "void TIFFCvtNativeToIEEEFloat ( TIFF * tif , u_int n , float * f ) {\n float_t * fp = ( float_t * ) f ;\n while ( n -- > 0 ) {\n NATIVE2IEEEFLOAT ( fp ) ;\n fp ++ ;\n }\n }"}
{"idx": 19427, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ClientHintsBrowserTest , DisregardPersistenceRequestIframe ) {\n base : : HistogramTester histogram_tester ;\n ContentSettingsForOneType host_settings ;\n HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> GetSettingsForOneType ( CONTENT_SETTINGS_TYPE_CLIENT_HINTS , std : : string ( ) , & host_settings ) ;\n EXPECT_EQ ( 0u , host_settings . size ( ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , accept_ch_without_lifetime_with_iframe_url ( ) ) ;\n histogram_tester . ExpectTotalCount ( \"ClientHints.UpdateEventCount\" , 0 ) ;\n content : : FetchHistogramsFromChildProcesses ( ) ;\n SubprocessMetricsProvider : : MergeHistogramDeltasForTesting ( ) ;\n histogram_tester . ExpectTotalCount ( \"ClientHints.UpdateSize\" , 0 ) ;\n histogram_tester . ExpectTotalCount ( \"ClientHints.PersistDuration\" , 0 ) ;\n }"}
{"idx": 19428, "target": 0, "func": "static int ipvideo_decode_block_opcode_0x2 ( IpvideoContext * s , AVFrame * frame ) {\n unsigned char B ;\n int x , y ;\n if ( ! s -> is_16bpp ) {\n B = bytestream2_get_byte ( & s -> stream_ptr ) ;\n }\n else {\n B = bytestream2_get_byte ( & s -> mv_ptr ) ;\n }\n if ( B < 56 ) {\n x = 8 + ( B % 7 ) ;\n y = B / 7 ;\n }\n else {\n x = - 14 + ( ( B - 56 ) % 29 ) ;\n y = 8 + ( ( B - 56 ) / 29 ) ;\n }\n av_dlog ( NULL , \" motion byte = %d, (x, y) = (%d, %d)\\n\" , B , x , y ) ;\n return copy_from ( s , s -> second_last_frame , frame , x , y ) ;\n }"}
{"idx": 19429, "target": 0, "func": "static int add_stop_slave ( void ) {\n if ( opt_comments ) fprintf ( md_result_file , \"\\n--\\n-- stop slave statement to make a recovery dump)\\n--\\n\\n\" ) ;\n fprintf ( md_result_file , \"STOP SLAVE;\n\\n\" ) ;\n return ( 0 ) ;\n }"}
{"idx": 19430, "target": 0, "func": "void mainwindows_redraw ( void ) {\n GSList * tmp ;\n irssi_set_dirty ( ) ;\n for ( tmp = mainwindows ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n MAIN_WINDOW_REC * rec = tmp -> data ;\n rec -> dirty = TRUE ;\n }\n }"}
{"idx": 19431, "target": 1, "func": "int evbuffer_add ( struct evbuffer * buf , const void * data , size_t datlen ) {\n size_t need = buf -> misalign + buf -> off + datlen ;\n size_t oldoff = buf -> off ;\n if ( buf -> totallen < need ) {\n if ( evbuffer_expand ( buf , datlen ) == - 1 ) return ( - 1 ) ;\n }\n memcpy ( buf -> buffer + buf -> off , data , datlen ) ;\n buf -> off += datlen ;\n if ( datlen && buf -> cb != NULL ) ( * buf -> cb ) ( buf , oldoff , buf -> off , buf -> cbarg ) ;\n return ( 0 ) ;\n }"}
{"idx": 19432, "target": 1, "func": "byte * _gcry_mpi_get_buffer ( gcry_mpi_t a , unsigned int * nbytes , int * sign ) {\n return do_get_buffer ( a , nbytes , sign , 0 ) ;\n }"}
{"idx": 19433, "target": 0, "func": "static void encode_frame_to_data_rate ( VP9_COMP * cpi , size_t * size , uint8_t * dest , unsigned int * frame_flags ) {\n VP9_COMMON * const cm = & cpi -> common ;\n const VP9EncoderConfig * const oxcf = & cpi -> oxcf ;\n struct segmentation * const seg = & cm -> seg ;\n TX_SIZE t ;\n int q ;\n int top_index ;\n int bottom_index ;\n set_ext_overrides ( cpi ) ;\n cpi -> Source = vp9_scale_if_required ( cm , cpi -> un_scaled_source , & cpi -> scaled_source ) ;\n if ( cpi -> unscaled_last_source != NULL ) cpi -> Last_Source = vp9_scale_if_required ( cm , cpi -> unscaled_last_source , & cpi -> scaled_last_source ) ;\n vp9_scale_references ( cpi ) ;\n vp9_clear_system_state ( ) ;\n cpi -> zbin_mode_boost = 0 ;\n cpi -> zbin_mode_boost_enabled = 0 ;\n set_arf_sign_bias ( cpi ) ;\n cm -> lf . mode_ref_delta_update = 0 ;\n set_mv_search_params ( cpi ) ;\n if ( cpi -> oxcf . pass == 2 && cpi -> sf . adaptive_interp_filter_search ) cpi -> sf . interp_filter_search_mask = setup_interp_filter_search_mask ( cpi ) ;\n if ( frame_is_intra_only ( cm ) ) {\n vp9_reset_segment_features ( & cm -> seg ) ;\n if ( seg -> enabled ) {\n seg -> update_map = 1 ;\n seg -> update_data = 1 ;\n }\n cpi -> rc . source_alt_ref_active = 0 ;\n cm -> error_resilient_mode = oxcf -> error_resilient_mode ;\n if ( cm -> error_resilient_mode ) {\n cm -> frame_parallel_decoding_mode = 1 ;\n cm -> reset_frame_context = 0 ;\n cm -> refresh_frame_context = 0 ;\n }\n else if ( cm -> intra_only ) {\n cm -> frame_parallel_decoding_mode = oxcf -> frame_parallel_decoding_mode ;\n cm -> reset_frame_context = 2 ;\n }\n }\n if ( is_two_pass_svc ( cpi ) && cm -> error_resilient_mode == 0 ) {\n cm -> frame_context_idx = cpi -> svc . spatial_layer_id * cpi -> svc . number_temporal_layers + cpi -> svc . temporal_layer_id ;\n if ( cpi -> svc . number_temporal_layers == 1 ) {\n if ( cpi -> svc . spatial_layer_id == 0 && cpi -> svc . layer_context [ 0 ] . last_frame_type == KEY_FRAME ) cm -> frame_parallel_decoding_mode = 1 ;\n else cm -> frame_parallel_decoding_mode = 0 ;\n }\n else if ( cpi -> svc . spatial_layer_id == 0 ) {\n int i ;\n for ( i = 0 ;\n i < cpi -> svc . number_temporal_layers ;\n ++ i ) {\n if ( cpi -> svc . layer_context [ 0 ] . frames_from_key_frame == 1 << i ) {\n cm -> frame_parallel_decoding_mode = 1 ;\n break ;\n }\n }\n if ( i == cpi -> svc . number_temporal_layers ) cm -> frame_parallel_decoding_mode = 0 ;\n }\n }\n if ( oxcf -> pass == 2 && cpi -> sf . static_segmentation ) configure_static_seg_features ( cpi ) ;\n if ( oxcf -> pass == 2 && ( ! cpi -> use_svc || is_two_pass_svc ( cpi ) ) ) {\n cpi -> skippable_frame = is_skippable_frame ( cpi ) ;\n }\n if ( oxcf -> pass == 0 && oxcf -> rc_mode == VPX_CBR && cm -> frame_type != KEY_FRAME ) {\n if ( vp9_rc_drop_frame ( cpi ) ) {\n vp9_rc_postencode_update_drop_frame ( cpi ) ;\n ++ cm -> current_video_frame ;\n return ;\n }\n }\n vp9_clear_system_state ( ) ;\n # if CONFIG_VP9_POSTPROC if ( oxcf -> noise_sensitivity > 0 ) {\n int l = 0 ;\n switch ( oxcf -> noise_sensitivity ) {\n case 1 : l = 20 ;\n break ;\n case 2 : l = 40 ;\n break ;\n case 3 : l = 60 ;\n break ;\n case 4 : case 5 : l = 100 ;\n break ;\n case 6 : l = 150 ;\n break ;\n }\n vp9_denoise ( cpi -> Source , cpi -> Source , l ) ;\n }\n # endif # if CONFIG_INTERNAL_STATS {\n int i ;\n for ( i = 0 ;\n i < MAX_MODES ;\n ++ i ) cpi -> mode_chosen_counts [ i ] = 0 ;\n }\n # endif vp9_set_speed_features ( cpi ) ;\n vp9_set_rd_speed_thresholds ( cpi ) ;\n vp9_set_rd_speed_thresholds_sub8x8 ( cpi ) ;\n q = vp9_rc_pick_q_and_bounds ( cpi , & bottom_index , & top_index ) ;\n if ( ! frame_is_intra_only ( cm ) ) {\n cm -> interp_filter = cpi -> sf . default_interp_filter ;\n vp9_set_high_precision_mv ( cpi , q < HIGH_PRECISION_MV_QTHRESH ) ;\n }\n if ( cpi -> sf . recode_loop == DISALLOW_RECODE ) {\n encode_without_recode_loop ( cpi , q ) ;\n }\n else {\n encode_with_recode_loop ( cpi , size , dest , q , bottom_index , top_index ) ;\n }\n # if CONFIG_VP9_TEMPORAL_DENOISING # ifdef OUTPUT_YUV_DENOISED if ( oxcf -> noise_sensitivity > 0 ) {\n vp9_write_yuv_frame_420 ( & cpi -> denoiser . running_avg_y [ INTRA_FRAME ] , yuv_denoised_file ) ;\n }\n # endif # endif if ( cpi -> rc . next_key_frame_forced && cpi -> rc . frames_to_key == 1 ) {\n cpi -> ambient_err = vp9_get_y_sse ( cpi -> Source , get_frame_new_buffer ( cm ) ) ;\n }\n if ( cm -> frame_type == KEY_FRAME ) cpi -> refresh_last_frame = 1 ;\n cm -> frame_to_show = get_frame_new_buffer ( cm ) ;\n loopfilter_frame ( cpi , cm ) ;\n vp9_pack_bitstream ( cpi , dest , size ) ;\n if ( cm -> seg . update_map ) update_reference_segmentation_map ( cpi ) ;\n release_scaled_references ( cpi ) ;\n vp9_update_reference_frames ( cpi ) ;\n for ( t = TX_4X4 ;\n t <= TX_32X32 ;\n t ++ ) full_to_model_counts ( cm -> counts . coef [ t ] , cpi -> coef_counts [ t ] ) ;\n if ( ! cm -> error_resilient_mode && ! cm -> frame_parallel_decoding_mode ) vp9_adapt_coef_probs ( cm ) ;\n if ( ! frame_is_intra_only ( cm ) ) {\n if ( ! cm -> error_resilient_mode && ! cm -> frame_parallel_decoding_mode ) {\n vp9_adapt_mode_probs ( cm ) ;\n vp9_adapt_mv_probs ( cm , cm -> allow_high_precision_mv ) ;\n }\n }\n if ( cpi -> refresh_golden_frame == 1 ) cpi -> frame_flags |= FRAMEFLAGS_GOLDEN ;\n else cpi -> frame_flags &= ~ FRAMEFLAGS_GOLDEN ;\n if ( cpi -> refresh_alt_ref_frame == 1 ) cpi -> frame_flags |= FRAMEFLAGS_ALTREF ;\n else cpi -> frame_flags &= ~ FRAMEFLAGS_ALTREF ;\n cpi -> ref_frame_flags = get_ref_frame_flags ( cpi ) ;\n cm -> last_frame_type = cm -> frame_type ;\n vp9_rc_postencode_update ( cpi , * size ) ;\n # if 0 output_frame_level_debug_stats ( cpi ) ;\n # endif if ( cm -> frame_type == KEY_FRAME ) {\n * frame_flags = cpi -> frame_flags | FRAMEFLAGS_KEY ;\n }\n else {\n * frame_flags = cpi -> frame_flags & ~ FRAMEFLAGS_KEY ;\n }\n cm -> seg . update_map = 0 ;\n cm -> seg . update_data = 0 ;\n cm -> lf . mode_ref_delta_update = 0 ;\n cm -> last_width = cm -> width ;\n cm -> last_height = cm -> height ;\n if ( ! cm -> show_existing_frame ) {\n if ( is_two_pass_svc ( cpi ) && cm -> error_resilient_mode == 0 ) cm -> last_show_frame = 0 ;\n else cm -> last_show_frame = cm -> show_frame ;\n }\n if ( cm -> show_frame ) {\n vp9_swap_mi_and_prev_mi ( cm ) ;\n ++ cm -> current_video_frame ;\n if ( cpi -> use_svc ) vp9_inc_frame_in_layer ( cpi ) ;\n }\n if ( is_two_pass_svc ( cpi ) ) cpi -> svc . layer_context [ cpi -> svc . spatial_layer_id ] . last_frame_type = cm -> frame_type ;\n }"}
{"idx": 19434, "target": 0, "func": "static int decode_band ( IVI45DecContext * ctx , IVIBandDesc * band , AVCodecContext * avctx ) {\n int result , i , t , idx1 , idx2 , pos ;\n IVITile * tile ;\n band -> buf = band -> bufs [ ctx -> dst_buf ] ;\n if ( ! band -> buf ) {\n av_log ( avctx , AV_LOG_ERROR , \"Band buffer points to no data!\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n band -> ref_buf = band -> bufs [ ctx -> ref_buf ] ;\n band -> data_ptr = ctx -> frame_data + ( get_bits_count ( & ctx -> gb ) >> 3 ) ;\n result = ctx -> decode_band_hdr ( ctx , band , avctx ) ;\n if ( result ) {\n av_log ( avctx , AV_LOG_ERROR , \"Error while decoding band header: %d\\n\" , result ) ;\n return result ;\n }\n if ( band -> is_empty ) {\n av_log ( avctx , AV_LOG_ERROR , \"Empty band encountered!\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n band -> rv_map = & ctx -> rvmap_tabs [ band -> rvmap_sel ] ;\n for ( i = 0 ;\n i < band -> num_corr ;\n i ++ ) {\n idx1 = band -> corr [ i * 2 ] ;\n idx2 = band -> corr [ i * 2 + 1 ] ;\n FFSWAP ( uint8_t , band -> rv_map -> runtab [ idx1 ] , band -> rv_map -> runtab [ idx2 ] ) ;\n FFSWAP ( int16_t , band -> rv_map -> valtab [ idx1 ] , band -> rv_map -> valtab [ idx2 ] ) ;\n }\n pos = get_bits_count ( & ctx -> gb ) ;\n for ( t = 0 ;\n t < band -> num_tiles ;\n t ++ ) {\n tile = & band -> tiles [ t ] ;\n if ( tile -> mb_size != band -> mb_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"MB sizes mismatch: %d vs. %d\\n\" , band -> mb_size , tile -> mb_size ) ;\n return AVERROR_INVALIDDATA ;\n }\n tile -> is_empty = get_bits1 ( & ctx -> gb ) ;\n if ( tile -> is_empty ) {\n result = ivi_process_empty_tile ( avctx , band , tile , ( ctx -> planes [ 0 ] . bands [ 0 ] . mb_size >> 3 ) - ( band -> mb_size >> 3 ) ) ;\n if ( result < 0 ) break ;\n av_dlog ( avctx , \"Empty tile encountered!\\n\" ) ;\n }\n else {\n tile -> data_size = ivi_dec_tile_data_size ( & ctx -> gb ) ;\n if ( ! tile -> data_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"Tile data size is zero!\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n result = ctx -> decode_mb_info ( ctx , band , tile , avctx ) ;\n if ( result < 0 ) break ;\n result = ivi_decode_blocks ( & ctx -> gb , band , tile , avctx ) ;\n if ( result < 0 || ( ( get_bits_count ( & ctx -> gb ) - pos ) >> 3 ) != tile -> data_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"Corrupted tile data encountered!\\n\" ) ;\n break ;\n }\n pos += tile -> data_size << 3 ;\n }\n }\n for ( i = band -> num_corr - 1 ;\n i >= 0 ;\n i -- ) {\n idx1 = band -> corr [ i * 2 ] ;\n idx2 = band -> corr [ i * 2 + 1 ] ;\n FFSWAP ( uint8_t , band -> rv_map -> runtab [ idx1 ] , band -> rv_map -> runtab [ idx2 ] ) ;\n FFSWAP ( int16_t , band -> rv_map -> valtab [ idx1 ] , band -> rv_map -> valtab [ idx2 ] ) ;\n }\n # ifdef DEBUG if ( band -> checksum_present ) {\n uint16_t chksum = ivi_calc_band_checksum ( band ) ;\n if ( chksum != band -> checksum ) {\n av_log ( avctx , AV_LOG_ERROR , \"Band checksum mismatch! Plane %d, band %d, received: %x, calculated: %x\\n\" , band -> plane , band -> band_num , band -> checksum , chksum ) ;\n }\n }\n # endif align_get_bits ( & ctx -> gb ) ;\n return result ;\n }"}
{"idx": 19435, "target": 0, "func": "static PyObject * string_concat ( register PyStringObject * a , register PyObject * bb ) {\n register Py_ssize_t size ;\n register PyStringObject * op ;\n if ( ! PyString_Check ( bb ) ) {\n # ifdef Py_USING_UNICODE if ( PyUnicode_Check ( bb ) ) return PyUnicode_Concat ( ( PyObject * ) a , bb ) ;\n # endif if ( PyByteArray_Check ( bb ) ) return PyByteArray_Concat ( ( PyObject * ) a , bb ) ;\n PyErr_Format ( PyExc_TypeError , \"cannot concatenate 'str' and '%.200s' objects\" , Py_TYPE ( bb ) -> tp_name ) ;\n return NULL ;\n }\n # define b ( ( PyStringObject * ) bb ) if ( ( Py_SIZE ( a ) == 0 || Py_SIZE ( b ) == 0 ) && PyString_CheckExact ( a ) && PyString_CheckExact ( b ) ) {\n if ( Py_SIZE ( a ) == 0 ) {\n Py_INCREF ( bb ) ;\n return bb ;\n }\n Py_INCREF ( a ) ;\n return ( PyObject * ) a ;\n }\n if ( Py_SIZE ( a ) < 0 || Py_SIZE ( b ) < 0 || Py_SIZE ( a ) > PY_SSIZE_T_MAX - Py_SIZE ( b ) ) {\n PyErr_SetString ( PyExc_OverflowError , \"strings are too large to concat\" ) ;\n return NULL ;\n }\n size = Py_SIZE ( a ) + Py_SIZE ( b ) ;\n if ( size > PY_SSIZE_T_MAX - PyStringObject_SIZE ) {\n PyErr_SetString ( PyExc_OverflowError , \"strings are too large to concat\" ) ;\n return NULL ;\n }\n op = ( PyStringObject * ) PyObject_MALLOC ( PyStringObject_SIZE + size ) ;\n if ( op == NULL ) return PyErr_NoMemory ( ) ;\n ( void ) PyObject_INIT_VAR ( op , & PyString_Type , size ) ;\n op -> ob_shash = - 1 ;\n op -> ob_sstate = SSTATE_NOT_INTERNED ;\n Py_MEMCPY ( op -> ob_sval , a -> ob_sval , Py_SIZE ( a ) ) ;\n Py_MEMCPY ( op -> ob_sval + Py_SIZE ( a ) , b -> ob_sval , Py_SIZE ( b ) ) ;\n op -> ob_sval [ size ] = '\\0' ;\n return ( PyObject * ) op ;\n # undef b }"}
{"idx": 19436, "target": 1, "func": "void dtls1_clear_record_buffer ( SSL * s ) {\n pitem * item ;\n for ( item = pqueue_pop ( s -> d1 -> sent_messages ) ;\n item != NULL ;\n item = pqueue_pop ( s -> d1 -> sent_messages ) ) {\n dtls1_hm_fragment_free ( ( hm_fragment * ) item -> data ) ;\n pitem_free ( item ) ;\n }\n }"}
{"idx": 19437, "target": 0, "func": "static void print_ls ( int mode , const unsigned char * sha1 , const char * path ) {\n static struct strbuf line = STRBUF_INIT ;\n const char * type = S_ISGITLINK ( mode ) ? commit_type : S_ISDIR ( mode ) ? tree_type : blob_type ;\n if ( ! mode ) {\n strbuf_reset ( & line ) ;\n strbuf_addstr ( & line , \"missing \" ) ;\n quote_c_style ( path , & line , NULL , 0 ) ;\n strbuf_addch ( & line , '\\n' ) ;\n }\n else {\n strbuf_reset ( & line ) ;\n strbuf_addf ( & line , \"%06o %s %s\\t\" , mode & ~ NO_DELTA , type , sha1_to_hex ( sha1 ) ) ;\n quote_c_style ( path , & line , NULL , 0 ) ;\n strbuf_addch ( & line , '\\n' ) ;\n }\n cat_blob_write ( line . buf , line . len ) ;\n }"}
{"idx": 19438, "target": 1, "func": "static bool qemu_in_vcpu_thread ( void ) {\n return cpu_single_env && qemu_cpu_is_self ( ENV_GET_CPU ( cpu_single_env ) ) ;\n }"}
{"idx": 19439, "target": 0, "func": "static inline char * w_newword ( size_t * actlen , size_t * maxlen ) {\n * actlen = * maxlen = 0 ;\n return NULL ;\n }"}
{"idx": 19440, "target": 0, "func": "int ff_ivi_dec_huff_desc ( GetBitContext * gb , int desc_coded , int which_tab , IVIHuffTab * huff_tab , AVCodecContext * avctx ) {\n int i , result ;\n IVIHuffDesc new_huff ;\n if ( ! desc_coded ) {\n huff_tab -> tab = ( which_tab ) ? & ivi_blk_vlc_tabs [ 7 ] : & ivi_mb_vlc_tabs [ 7 ] ;\n }\n else {\n huff_tab -> tab_sel = get_bits ( gb , 3 ) ;\n if ( huff_tab -> tab_sel == 7 ) {\n new_huff . num_rows = get_bits ( gb , 4 ) ;\n if ( ! new_huff . num_rows ) {\n av_log ( avctx , AV_LOG_ERROR , \"Empty custom Huffman table!\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( i = 0 ;\n i < new_huff . num_rows ;\n i ++ ) new_huff . xbits [ i ] = get_bits ( gb , 4 ) ;\n if ( ivi_huff_desc_cmp ( & new_huff , & huff_tab -> cust_desc ) ) {\n ivi_huff_desc_copy ( & huff_tab -> cust_desc , & new_huff ) ;\n if ( huff_tab -> cust_tab . table ) ff_free_vlc ( & huff_tab -> cust_tab ) ;\n result = ivi_create_huff_from_desc ( & huff_tab -> cust_desc , & huff_tab -> cust_tab , 0 ) ;\n if ( result ) {\n huff_tab -> cust_desc . num_rows = 0 ;\n av_log ( avctx , AV_LOG_ERROR , \"Error while initializing custom vlc table!\\n\" ) ;\n return result ;\n }\n }\n huff_tab -> tab = & huff_tab -> cust_tab ;\n }\n else {\n huff_tab -> tab = ( which_tab ) ? & ivi_blk_vlc_tabs [ huff_tab -> tab_sel ] : & ivi_mb_vlc_tabs [ huff_tab -> tab_sel ] ;\n }\n }\n return 0 ;\n }"}
{"idx": 19441, "target": 0, "func": "static int jbig2_decode_generic_template0_TPGDON ( Jbig2Ctx * ctx , Jbig2Segment * segment , const Jbig2GenericRegionParams * params , Jbig2ArithState * as , Jbig2Image * image , Jbig2ArithCx * GB_stats ) {\n const int GBW = image -> width ;\n const int GBH = image -> height ;\n uint32_t CONTEXT ;\n int x , y ;\n bool bit ;\n int LTP = 0 ;\n for ( y = 0 ;\n y < GBH ;\n y ++ ) {\n bit = jbig2_arith_decode ( as , & GB_stats [ 0x9B25 ] ) ;\n if ( bit < 0 ) return - 1 ;\n LTP ^= bit ;\n if ( ! LTP ) {\n for ( x = 0 ;\n x < GBW ;\n x ++ ) {\n CONTEXT = jbig2_image_get_pixel ( image , x - 1 , y ) ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 2 , y ) << 1 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 3 , y ) << 2 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 4 , y ) << 3 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x + params -> gbat [ 0 ] , y + params -> gbat [ 1 ] ) << 4 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x + 2 , y - 1 ) << 5 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x + 1 , y - 1 ) << 6 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x , y - 1 ) << 7 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 1 , y - 1 ) << 8 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 2 , y - 1 ) << 9 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x + params -> gbat [ 2 ] , y + params -> gbat [ 3 ] ) << 10 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x + params -> gbat [ 4 ] , y + params -> gbat [ 5 ] ) << 11 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x + 1 , y - 2 ) << 12 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x , y - 2 ) << 13 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x - 1 , y - 2 ) << 14 ;\n CONTEXT |= jbig2_image_get_pixel ( image , x + params -> gbat [ 6 ] , y + params -> gbat [ 7 ] ) << 15 ;\n bit = jbig2_arith_decode ( as , & GB_stats [ CONTEXT ] ) ;\n if ( bit < 0 ) return - 1 ;\n jbig2_image_set_pixel ( image , x , y , bit ) ;\n }\n }\n else {\n copy_prev_row ( image , y ) ;\n }\n }\n return 0 ;\n }"}
{"idx": 19442, "target": 0, "func": "static struct vtype_data * vType_get_type ( guint16 t ) {\n unsigned i ;\n t = ( t & 0xFF ) ;\n for ( i = 0 ;\n i < array_length ( VT_TYPE ) ;\n i ++ ) {\n if ( t == VT_TYPE [ i ] . tag ) {\n return & VT_TYPE [ i ] ;\n }\n }\n return NULL ;\n }"}
{"idx": 19443, "target": 0, "func": "static char * custom_size_to_string ( char * format , va_list va ) {\n goffset size ;\n size = va_arg ( va , goffset ) ;\n return g_format_size ( size ) ;\n }"}
{"idx": 19444, "target": 0, "func": "static int multiply ( unsigned long * amount , long with ) {\n unsigned long sum = * amount * with ;\n if ( sum / with != * amount ) return 1 ;\n * amount = sum ;\n return 0 ;\n }"}
{"idx": 19445, "target": 0, "func": "TEST_F ( ScoredHistoryMatchTest , GetTopicalityScore ) {\n base : : string16 url = ASCIIToUTF16 ( \"http://abc.def.com/path1/path2?\" \"arg1=val1&arg2=val2#hash_component\" ) ;\n base : : string16 title = ASCIIToUTF16 ( \"here is a title\" ) ;\n const float hostname_score = GetTopicalityScoreOfTermAgainstURLAndTitle ( ASCIIToUTF16 ( \"abc\" ) , url , title ) ;\n const float hostname_mid_word_score = GetTopicalityScoreOfTermAgainstURLAndTitle ( ASCIIToUTF16 ( \"bc\" ) , url , title ) ;\n const float domain_name_score = GetTopicalityScoreOfTermAgainstURLAndTitle ( ASCIIToUTF16 ( \"def\" ) , url , title ) ;\n const float domain_name_mid_word_score = GetTopicalityScoreOfTermAgainstURLAndTitle ( ASCIIToUTF16 ( \"ef\" ) , url , title ) ;\n const float tld_score = GetTopicalityScoreOfTermAgainstURLAndTitle ( ASCIIToUTF16 ( \"com\" ) , url , title ) ;\n const float tld_mid_word_score = GetTopicalityScoreOfTermAgainstURLAndTitle ( ASCIIToUTF16 ( \"om\" ) , url , title ) ;\n const float path_score = GetTopicalityScoreOfTermAgainstURLAndTitle ( ASCIIToUTF16 ( \"path1\" ) , url , title ) ;\n const float path_mid_word_score = GetTopicalityScoreOfTermAgainstURLAndTitle ( ASCIIToUTF16 ( \"ath1\" ) , url , title ) ;\n const float arg_score = GetTopicalityScoreOfTermAgainstURLAndTitle ( ASCIIToUTF16 ( \"arg2\" ) , url , title ) ;\n const float arg_mid_word_score = GetTopicalityScoreOfTermAgainstURLAndTitle ( ASCIIToUTF16 ( \"rg2\" ) , url , title ) ;\n const float protocol_score = GetTopicalityScoreOfTermAgainstURLAndTitle ( ASCIIToUTF16 ( \"htt\" ) , url , title ) ;\n const float protocol_mid_word_score = GetTopicalityScoreOfTermAgainstURLAndTitle ( ASCIIToUTF16 ( \"tt\" ) , url , title ) ;\n const float title_score = GetTopicalityScoreOfTermAgainstURLAndTitle ( ASCIIToUTF16 ( \"her\" ) , url , title ) ;\n const float title_mid_word_score = GetTopicalityScoreOfTermAgainstURLAndTitle ( ASCIIToUTF16 ( \"er\" ) , url , title ) ;\n EXPECT_GT ( hostname_score , path_score ) ;\n EXPECT_GT ( domain_name_score , path_score ) ;\n EXPECT_GT ( path_score , arg_score ) ;\n EXPECT_GT ( hostname_mid_word_score , path_mid_word_score ) ;\n EXPECT_GT ( domain_name_mid_word_score , path_mid_word_score ) ;\n EXPECT_GT ( domain_name_mid_word_score , arg_mid_word_score ) ;\n EXPECT_GT ( hostname_mid_word_score , arg_mid_word_score ) ;\n EXPECT_GT ( arg_score , hostname_mid_word_score ) ;\n EXPECT_GT ( arg_score , domain_name_mid_word_score ) ;\n EXPECT_GT ( title_score , title_mid_word_score ) ;\n EXPECT_GT ( title_score , arg_score ) ;\n EXPECT_GT ( arg_score , title_mid_word_score ) ;\n EXPECT_GT ( hostname_mid_word_score , protocol_score ) ;\n EXPECT_GT ( hostname_mid_word_score , protocol_mid_word_score ) ;\n EXPECT_GT ( hostname_mid_word_score , tld_score ) ;\n EXPECT_GT ( hostname_mid_word_score , tld_mid_word_score ) ;\n }"}
{"idx": 19446, "target": 0, "func": "void vp9_cyclic_refresh_update_segment ( VP9_COMP * const cpi , MB_MODE_INFO * const mbmi , int mi_row , int mi_col , BLOCK_SIZE bsize , int use_rd ) {\n const VP9_COMMON * const cm = & cpi -> common ;\n CYCLIC_REFRESH * const cr = cpi -> cyclic_refresh ;\n const int bw = num_8x8_blocks_wide_lookup [ bsize ] ;\n const int bh = num_8x8_blocks_high_lookup [ bsize ] ;\n const int xmis = MIN ( cm -> mi_cols - mi_col , bw ) ;\n const int ymis = MIN ( cm -> mi_rows - mi_row , bh ) ;\n const int block_index = mi_row * cm -> mi_cols + mi_col ;\n const int refresh_this_block = cpi -> mb . in_static_area || candidate_refresh_aq ( cr , mbmi , bsize , use_rd ) ;\n int new_map_value = cr -> map [ block_index ] ;\n int x = 0 ;\n int y = 0 ;\n if ( mbmi -> segment_id > 0 && ! refresh_this_block ) mbmi -> segment_id = 0 ;\n if ( mbmi -> segment_id == 1 ) {\n new_map_value = - cr -> time_for_refresh ;\n }\n else if ( refresh_this_block ) {\n if ( cr -> map [ block_index ] == 1 ) new_map_value = 0 ;\n }\n else {\n new_map_value = 1 ;\n }\n for ( y = 0 ;\n y < ymis ;\n y ++ ) for ( x = 0 ;\n x < xmis ;\n x ++ ) {\n cr -> map [ block_index + y * cm -> mi_cols + x ] = new_map_value ;\n cpi -> segmentation_map [ block_index + y * cm -> mi_cols + x ] = mbmi -> segment_id ;\n }\n if ( mbmi -> segment_id ) cr -> num_seg_blocks += xmis * ymis ;\n }"}
{"idx": 19447, "target": 0, "func": "static int dissect_CPMGetQueryStatusEx ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * parent_tree , gboolean in , void * data _U_ ) {\n gint offset = 16 ;\n proto_item * item ;\n proto_tree * tree ;\n item = proto_tree_add_item ( parent_tree , hf_mswsp_msg , tvb , offset , - 1 , ENC_NA ) ;\n tree = proto_item_add_subtree ( item , ett_mswsp_msg ) ;\n proto_item_set_text ( item , \"GetQueryStatusEx%s\" , in ? \"In\" : \"Out\" ) ;\n col_append_str ( pinfo -> cinfo , COL_INFO , \"GetQueryStatusEx\" ) ;\n if ( in ) {\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmquerystatusex_hcursor , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmquerystatusex_bmk , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n }\n else {\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmquerystatusex_qstatus , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmquerystatusex_cfiltereddocs , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmquerystatusex_cdocstofilter , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmquerystatusex_dwratiodenom , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmquerystatusex_dwrationumer , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmquerystatusex_irowbmk , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmquerystatusex_crowstotal , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmquerystatusex_maxrank , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmquerystatusex_cresultsfound , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmquerystatusex_whereid , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n }\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 19448, "target": 0, "func": "static int mark_tagged ( const char * path , const struct object_id * oid , int flag , void * cb_data ) {\n unsigned char peeled [ 20 ] ;\n struct object_entry * entry = packlist_find ( & to_pack , oid -> hash , NULL ) ;\n if ( entry ) entry -> tagged = 1 ;\n if ( ! peel_ref ( path , peeled ) ) {\n entry = packlist_find ( & to_pack , peeled , NULL ) ;\n if ( entry ) entry -> tagged = 1 ;\n }\n return 0 ;\n }"}
{"idx": 19449, "target": 0, "func": "static __inline __uint16_t __uint16_identity ( __uint16_t __x ) {\n return __x ;\n }"}
{"idx": 19450, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( SitePerProcessInteractivePDFTest , ContextMenuPositionForEmbeddedPDFInCrossOriginFrame ) {\n GURL main_url ( embedded_test_server ( ) -> GetURL ( \"a.com\" , \"/iframe.html\" ) ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , main_url ) ;\n EXPECT_EQ ( 0U , test_guest_view_manager ( ) -> num_guests_created ( ) ) ;\n content : : WebContents * active_web_contents = browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) ;\n EXPECT_TRUE ( ExecuteScript ( active_web_contents , \"document.querySelector('iframe').style =\" \" 'margin-left: 100px;\n margin-top: 100px;\n';\n\" ) ) ;\n GURL frame_url = embedded_test_server ( ) -> GetURL ( \"b.com\" , \"/page_with_embedded_pdf.html\" ) ;\n EXPECT_TRUE ( NavigateIframeToURL ( active_web_contents , \"test\" , frame_url ) ) ;\n content : : WebContents * guest_contents = test_guest_view_manager ( ) -> WaitForSingleGuestCreated ( ) ;\n NavigationToExtensionSchemeObserver navigation_observer ( guest_contents ) ;\n navigation_observer . Wait ( ) ;\n content : : RenderWidgetHostView * child_view = ChildFrameAt ( active_web_contents -> GetMainFrame ( ) , 0 ) -> GetView ( ) ;\n ContextMenuWaiter menu_waiter ( content : : NotificationService : : AllSources ( ) ) ;\n auto send_right_mouse_event = [ ] ( content : : RenderWidgetHost * host , int x , int y , blink : : WebInputEvent : : Type type ) {\n blink : : WebMouseEvent event ;\n event . x = x ;\n event . y = y ;\n event . button = blink : : WebMouseEvent : : Button : : Right ;\n event . setType ( type ) ;\n host -> ForwardMouseEvent ( event ) ;\n }\n ;\n send_right_mouse_event ( child_view -> GetRenderWidgetHost ( ) , 10 , 20 , blink : : WebInputEvent : : MouseDown ) ;\n send_right_mouse_event ( child_view -> GetRenderWidgetHost ( ) , 10 , 20 , blink : : WebInputEvent : : MouseUp ) ;\n menu_waiter . WaitForMenuOpenAndClose ( ) ;\n gfx : : Point point_in_root_window = child_view -> TransformPointToRootCoordSpace ( gfx : : Point ( 10 , 20 ) ) ;\n EXPECT_EQ ( point_in_root_window . x ( ) , menu_waiter . params ( ) . x ) ;\n EXPECT_EQ ( point_in_root_window . y ( ) , menu_waiter . params ( ) . y ) ;\n }"}
{"idx": 19451, "target": 0, "func": "void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }"}
{"idx": 19452, "target": 0, "func": "int vp9_get_pred_context_single_ref_p1 ( const MACROBLOCKD * xd ) {\n int pred_context ;\n const MB_MODE_INFO * const above_mbmi = get_mbmi ( get_above_mi ( xd ) ) ;\n const MB_MODE_INFO * const left_mbmi = get_mbmi ( get_left_mi ( xd ) ) ;\n const int has_above = above_mbmi != NULL ;\n const int has_left = left_mbmi != NULL ;\n if ( has_above && has_left ) {\n const int above_intra = ! is_inter_block ( above_mbmi ) ;\n const int left_intra = ! is_inter_block ( left_mbmi ) ;\n if ( above_intra && left_intra ) {\n pred_context = 2 ;\n }\n else if ( above_intra || left_intra ) {\n const MB_MODE_INFO * edge_mbmi = above_intra ? left_mbmi : above_mbmi ;\n if ( ! has_second_ref ( edge_mbmi ) ) pred_context = 4 * ( edge_mbmi -> ref_frame [ 0 ] == LAST_FRAME ) ;\n else pred_context = 1 + ( edge_mbmi -> ref_frame [ 0 ] == LAST_FRAME || edge_mbmi -> ref_frame [ 1 ] == LAST_FRAME ) ;\n }\n else {\n const int above_has_second = has_second_ref ( above_mbmi ) ;\n const int left_has_second = has_second_ref ( left_mbmi ) ;\n const MV_REFERENCE_FRAME above0 = above_mbmi -> ref_frame [ 0 ] ;\n const MV_REFERENCE_FRAME above1 = above_mbmi -> ref_frame [ 1 ] ;\n const MV_REFERENCE_FRAME left0 = left_mbmi -> ref_frame [ 0 ] ;\n const MV_REFERENCE_FRAME left1 = left_mbmi -> ref_frame [ 1 ] ;\n if ( above_has_second && left_has_second ) {\n pred_context = 1 + ( above0 == LAST_FRAME || above1 == LAST_FRAME || left0 == LAST_FRAME || left1 == LAST_FRAME ) ;\n }\n else if ( above_has_second || left_has_second ) {\n const MV_REFERENCE_FRAME rfs = ! above_has_second ? above0 : left0 ;\n const MV_REFERENCE_FRAME crf1 = above_has_second ? above0 : left0 ;\n const MV_REFERENCE_FRAME crf2 = above_has_second ? above1 : left1 ;\n if ( rfs == LAST_FRAME ) pred_context = 3 + ( crf1 == LAST_FRAME || crf2 == LAST_FRAME ) ;\n else pred_context = ( crf1 == LAST_FRAME || crf2 == LAST_FRAME ) ;\n }\n else {\n pred_context = 2 * ( above0 == LAST_FRAME ) + 2 * ( left0 == LAST_FRAME ) ;\n }\n }\n }\n else if ( has_above || has_left ) {\n const MB_MODE_INFO * edge_mbmi = has_above ? above_mbmi : left_mbmi ;\n if ( ! is_inter_block ( edge_mbmi ) ) {\n pred_context = 2 ;\n }\n else {\n if ( ! has_second_ref ( edge_mbmi ) ) pred_context = 4 * ( edge_mbmi -> ref_frame [ 0 ] == LAST_FRAME ) ;\n else pred_context = 1 + ( edge_mbmi -> ref_frame [ 0 ] == LAST_FRAME || edge_mbmi -> ref_frame [ 1 ] == LAST_FRAME ) ;\n }\n }\n else {\n pred_context = 2 ;\n }\n assert ( pred_context >= 0 && pred_context < REF_CONTEXTS ) ;\n return pred_context ;\n }"}
{"idx": 19453, "target": 0, "func": "inline GRANT_COLUMN * column_hash_search ( GRANT_TABLE * t , const char * cname , uint length ) {\n return ( GRANT_COLUMN * ) hash_search ( & t -> hash_columns , ( uchar * ) cname , length ) ;\n }"}
{"idx": 19454, "target": 0, "func": "int main ( int argc , char * argv [ ] ) {\n static char buff [ 16384 ] ;\n struct cpio _cpio ;\n struct cpio * cpio ;\n const char * errmsg ;\n int uid , gid ;\n int opt ;\n cpio = & _cpio ;\n memset ( cpio , 0 , sizeof ( * cpio ) ) ;\n cpio -> buff = buff ;\n cpio -> buff_size = sizeof ( buff ) ;\n # if defined ( HAVE_SIGACTION ) && defined ( SIGPIPE ) {\n struct sigaction sa ;\n sigemptyset ( & sa . sa_mask ) ;\n sa . sa_flags = 0 ;\n sa . sa_handler = SIG_IGN ;\n sigaction ( SIGPIPE , & sa , NULL ) ;\n }\n # endif lafe_setprogname ( * argv , \"bsdcpio\" ) ;\n # if HAVE_SETLOCALE if ( setlocale ( LC_ALL , \"\" ) == NULL ) lafe_warnc ( 0 , \"Failed to set default locale\" ) ;\n # endif cpio -> uid_override = - 1 ;\n cpio -> gid_override = - 1 ;\n cpio -> argv = argv ;\n cpio -> argc = argc ;\n cpio -> mode = '\\0' ;\n cpio -> verbose = 0 ;\n cpio -> compress = '\\0' ;\n cpio -> extract_flags = ARCHIVE_EXTRACT_NO_AUTODIR ;\n cpio -> extract_flags |= ARCHIVE_EXTRACT_NO_OVERWRITE_NEWER ;\n cpio -> extract_flags |= ARCHIVE_EXTRACT_SECURE_SYMLINKS ;\n cpio -> extract_flags |= ARCHIVE_EXTRACT_SECURE_NODOTDOT ;\n cpio -> extract_flags |= ARCHIVE_EXTRACT_SECURE_NOABSOLUTEPATHS ;\n cpio -> extract_flags |= ARCHIVE_EXTRACT_PERM ;\n cpio -> extract_flags |= ARCHIVE_EXTRACT_FFLAGS ;\n cpio -> extract_flags |= ARCHIVE_EXTRACT_ACL ;\n # if ! defined ( _WIN32 ) && ! defined ( __CYGWIN__ ) if ( geteuid ( ) == 0 ) cpio -> extract_flags |= ARCHIVE_EXTRACT_OWNER ;\n # endif cpio -> bytes_per_block = 512 ;\n cpio -> filename = NULL ;\n cpio -> matching = archive_match_new ( ) ;\n if ( cpio -> matching == NULL ) lafe_errc ( 1 , 0 , \"Out of memory\" ) ;\n while ( ( opt = cpio_getopt ( cpio ) ) != - 1 ) {\n switch ( opt ) {\n case '0' : cpio -> option_null = 1 ;\n break ;\n case 'A' : cpio -> option_append = 1 ;\n break ;\n case 'a' : cpio -> option_atime_restore = 1 ;\n break ;\n case 'B' : cpio -> bytes_per_block = 5120 ;\n break ;\n case OPTION_B64ENCODE : cpio -> add_filter = opt ;\n break ;\n case 'C' : cpio -> bytes_per_block = atoi ( cpio -> argument ) ;\n if ( cpio -> bytes_per_block <= 0 ) lafe_errc ( 1 , 0 , \"Invalid blocksize %s\" , cpio -> argument ) ;\n break ;\n case 'c' : cpio -> format = \"odc\" ;\n break ;\n case 'd' : cpio -> extract_flags &= ~ ARCHIVE_EXTRACT_NO_AUTODIR ;\n break ;\n case 'E' : if ( archive_match_include_pattern_from_file ( cpio -> matching , cpio -> argument , cpio -> option_null ) != ARCHIVE_OK ) lafe_errc ( 1 , 0 , \"Error : %s\" , archive_error_string ( cpio -> matching ) ) ;\n break ;\n case 'F' : cpio -> filename = cpio -> argument ;\n break ;\n case 'f' : if ( archive_match_exclude_pattern ( cpio -> matching , cpio -> argument ) != ARCHIVE_OK ) lafe_errc ( 1 , 0 , \"Error : %s\" , archive_error_string ( cpio -> matching ) ) ;\n break ;\n case OPTION_GRZIP : cpio -> compress = opt ;\n break ;\n case 'H' : cpio -> format = cpio -> argument ;\n break ;\n case 'h' : long_help ( ) ;\n break ;\n case 'I' : cpio -> filename = cpio -> argument ;\n break ;\n case 'i' : if ( cpio -> mode != '\\0' ) lafe_errc ( 1 , 0 , \"Cannot use both -i and -%c\" , cpio -> mode ) ;\n cpio -> mode = opt ;\n break ;\n case 'J' : cpio -> compress = opt ;\n break ;\n case 'j' : cpio -> compress = opt ;\n break ;\n case OPTION_INSECURE : cpio -> extract_flags &= ~ ARCHIVE_EXTRACT_SECURE_SYMLINKS ;\n cpio -> extract_flags &= ~ ARCHIVE_EXTRACT_SECURE_NODOTDOT ;\n cpio -> extract_flags &= ~ ARCHIVE_EXTRACT_SECURE_NOABSOLUTEPATHS ;\n break ;\n case 'L' : cpio -> option_follow_links = 1 ;\n break ;\n case 'l' : cpio -> option_link = 1 ;\n break ;\n case OPTION_LRZIP : case OPTION_LZ4 : case OPTION_LZMA : case OPTION_LZOP : cpio -> compress = opt ;\n break ;\n case 'm' : cpio -> extract_flags |= ARCHIVE_EXTRACT_TIME ;\n break ;\n case 'n' : cpio -> option_numeric_uid_gid = 1 ;\n break ;\n case OPTION_NO_PRESERVE_OWNER : cpio -> extract_flags &= ~ ARCHIVE_EXTRACT_OWNER ;\n break ;\n case 'O' : cpio -> filename = cpio -> argument ;\n break ;\n case 'o' : if ( cpio -> mode != '\\0' ) lafe_errc ( 1 , 0 , \"Cannot use both -o and -%c\" , cpio -> mode ) ;\n cpio -> mode = opt ;\n break ;\n case 'p' : if ( cpio -> mode != '\\0' ) lafe_errc ( 1 , 0 , \"Cannot use both -p and -%c\" , cpio -> mode ) ;\n cpio -> mode = opt ;\n cpio -> extract_flags &= ~ ARCHIVE_EXTRACT_SECURE_NODOTDOT ;\n break ;\n case OPTION_PASSPHRASE : cpio -> passphrase = cpio -> argument ;\n break ;\n case OPTION_PRESERVE_OWNER : cpio -> extract_flags |= ARCHIVE_EXTRACT_OWNER ;\n break ;\n case OPTION_QUIET : cpio -> quiet = 1 ;\n break ;\n case 'R' : errmsg = owner_parse ( cpio -> argument , & uid , & gid ) ;\n if ( errmsg ) {\n lafe_warnc ( - 1 , \"%s\" , errmsg ) ;\n usage ( ) ;\n }\n if ( uid != - 1 ) {\n cpio -> uid_override = uid ;\n cpio -> uname_override = NULL ;\n }\n if ( gid != - 1 ) {\n cpio -> gid_override = gid ;\n cpio -> gname_override = NULL ;\n }\n break ;\n case 'r' : cpio -> option_rename = 1 ;\n break ;\n case 't' : cpio -> option_list = 1 ;\n break ;\n case 'u' : cpio -> extract_flags &= ~ ARCHIVE_EXTRACT_NO_OVERWRITE_NEWER ;\n break ;\n case OPTION_UUENCODE : cpio -> add_filter = opt ;\n break ;\n case 'v' : cpio -> verbose ++ ;\n break ;\n case 'V' : cpio -> dot ++ ;\n break ;\n case OPTION_VERSION : version ( ) ;\n break ;\n # if 0 case 'W' : break ;\n # endif case 'y' : cpio -> compress = opt ;\n break ;\n case 'Z' : cpio -> compress = opt ;\n break ;\n case 'z' : cpio -> compress = opt ;\n break ;\n default : usage ( ) ;\n }\n }\n if ( cpio -> option_list && cpio -> mode == '\\0' ) cpio -> mode = 'i' ;\n if ( cpio -> option_list && cpio -> mode != 'i' ) lafe_errc ( 1 , 0 , \"Option -t requires -i\" ) ;\n if ( cpio -> option_numeric_uid_gid && ! cpio -> option_list ) lafe_errc ( 1 , 0 , \"Option -n requires -it\" ) ;\n if ( cpio -> format != NULL && cpio -> mode != 'o' ) lafe_errc ( 1 , 0 , \"Option --format requires -o\" ) ;\n if ( cpio -> option_link && cpio -> mode != 'p' ) lafe_errc ( 1 , 0 , \"Option -l requires -p\" ) ;\n if ( cpio -> dot && cpio -> verbose ) cpio -> dot = 0 ;\n switch ( cpio -> mode ) {\n case 'o' : if ( cpio -> format == NULL ) cpio -> format = \"odc\" ;\n mode_out ( cpio ) ;\n break ;\n case 'i' : while ( * cpio -> argv != NULL ) {\n if ( archive_match_include_pattern ( cpio -> matching , * cpio -> argv ) != ARCHIVE_OK ) lafe_errc ( 1 , 0 , \"Error : %s\" , archive_error_string ( cpio -> matching ) ) ;\n -- cpio -> argc ;\n ++ cpio -> argv ;\n }\n if ( cpio -> option_list ) mode_list ( cpio ) ;\n else mode_in ( cpio ) ;\n break ;\n case 'p' : if ( * cpio -> argv == NULL || * * cpio -> argv == '\\0' ) lafe_errc ( 1 , 0 , \"-p mode requires a target directory\" ) ;\n mode_pass ( cpio , * cpio -> argv ) ;\n break ;\n default : lafe_errc ( 1 , 0 , \"Must specify at least one of -i, -o, or -p\" ) ;\n }\n archive_match_free ( cpio -> matching ) ;\n free_cache ( cpio -> gname_cache ) ;\n free_cache ( cpio -> uname_cache ) ;\n free ( cpio -> destdir ) ;\n passphrase_free ( cpio -> ppbuff ) ;\n return ( cpio -> return_value ) ;\n }"}
{"idx": 19455, "target": 0, "func": "static bool cpu_can_run ( CPUState * cpu ) {\n if ( cpu -> stop ) {\n return false ;\n }\n if ( cpu -> stopped || ! runstate_is_running ( ) ) {\n return false ;\n }\n return true ;\n }"}
{"idx": 19456, "target": 0, "func": "static void gst_asf_demux_activate_stream ( GstASFDemux * demux , AsfStream * stream ) {\n if ( ! stream -> active ) {\n GstEvent * event ;\n gchar * stream_id ;\n GST_INFO_OBJECT ( demux , \"Activating stream %2u, pad %s, caps %\" GST_PTR_FORMAT , stream -> id , GST_PAD_NAME ( stream -> pad ) , stream -> caps ) ;\n gst_pad_set_active ( stream -> pad , TRUE ) ;\n stream_id = gst_pad_create_stream_id_printf ( stream -> pad , GST_ELEMENT_CAST ( demux ) , \"%03u\" , stream -> id ) ;\n event = gst_pad_get_sticky_event ( demux -> sinkpad , GST_EVENT_STREAM_START , 0 ) ;\n if ( event ) {\n if ( gst_event_parse_group_id ( event , & demux -> group_id ) ) demux -> have_group_id = TRUE ;\n else demux -> have_group_id = FALSE ;\n gst_event_unref ( event ) ;\n }\n else if ( ! demux -> have_group_id ) {\n demux -> have_group_id = TRUE ;\n demux -> group_id = gst_util_group_id_next ( ) ;\n }\n event = gst_event_new_stream_start ( stream_id ) ;\n if ( demux -> have_group_id ) gst_event_set_group_id ( event , demux -> group_id ) ;\n gst_pad_push_event ( stream -> pad , event ) ;\n g_free ( stream_id ) ;\n gst_pad_set_caps ( stream -> pad , stream -> caps ) ;\n gst_element_add_pad ( GST_ELEMENT_CAST ( demux ) , stream -> pad ) ;\n gst_flow_combiner_add_pad ( demux -> flowcombiner , stream -> pad ) ;\n stream -> active = TRUE ;\n }\n }"}
{"idx": 19457, "target": 0, "func": "static int tagcomp ( const void * _t1 , const void * _t2 ) {\n struct taboff * t1 = * ( ( struct taboff * * ) _t1 ) , * t2 = * ( ( struct taboff * * ) _t2 ) ;\n return ( ( int ) ( t1 -> tag - t2 -> tag ) ) ;\n }"}
{"idx": 19458, "target": 0, "func": "static void activate_desktop_file ( ActivateParameters * parameters , NautilusFile * file ) {\n ActivateParametersDesktop * parameters_desktop ;\n char * primary , * secondary , * display_name ;\n GtkWidget * dialog ;\n GdkScreen * screen ;\n char * uri ;\n screen = gtk_widget_get_screen ( GTK_WIDGET ( parameters -> parent_window ) ) ;\n if ( ! nautilus_file_is_trusted_link ( file ) ) {\n parameters_desktop = g_new0 ( ActivateParametersDesktop , 1 ) ;\n if ( parameters -> parent_window ) {\n parameters_desktop -> parent_window = parameters -> parent_window ;\n g_object_add_weak_pointer ( G_OBJECT ( parameters_desktop -> parent_window ) , ( gpointer * ) & parameters_desktop -> parent_window ) ;\n }\n parameters_desktop -> file = nautilus_file_ref ( file ) ;\n primary = _ ( \"Untrusted application launcher\" ) ;\n display_name = nautilus_file_get_display_name ( file ) ;\n secondary = g_strdup_printf ( _ ( \"The application launcher \u201c%s\u201d has not been marked as trusted. \" \"If you do not know the source of this file, launching it may be unsafe.\" ) , display_name ) ;\n dialog = gtk_message_dialog_new ( parameters -> parent_window , 0 , GTK_MESSAGE_WARNING , GTK_BUTTONS_NONE , NULL ) ;\n g_object_set ( dialog , \"text\" , primary , \"secondary-text\" , secondary , NULL ) ;\n gtk_dialog_add_button ( GTK_DIALOG ( dialog ) , _ ( \"_Cancel\" ) , GTK_RESPONSE_CANCEL ) ;\n gtk_dialog_set_default_response ( GTK_DIALOG ( dialog ) , GTK_RESPONSE_CANCEL ) ;\n if ( nautilus_file_can_set_permissions ( file ) ) {\n gtk_dialog_add_button ( GTK_DIALOG ( dialog ) , _ ( \"Trust and _Launch\" ) , GTK_RESPONSE_OK ) ;\n }\n g_signal_connect ( dialog , \"response\" , G_CALLBACK ( untrusted_launcher_response_callback ) , parameters_desktop ) ;\n gtk_widget_show ( dialog ) ;\n g_free ( display_name ) ;\n g_free ( secondary ) ;\n return ;\n }\n uri = nautilus_file_get_uri ( file ) ;\n DEBUG ( \"Launching trusted launcher %s\" , uri ) ;\n nautilus_launch_desktop_file ( screen , uri , NULL , parameters -> parent_window ) ;\n g_free ( uri ) ;\n }"}
{"idx": 19459, "target": 0, "func": "static void printarray ( struct pskeydict * dict ) {\n int i ;\n printf ( \"[\" ) ;\n for ( i = 0 ;\n i < dict -> cnt ;\n ++ i ) {\n switch ( dict -> entries [ i ] . type ) {\n case ps_num : printf ( \"%g\" , ( double ) dict -> entries [ i ] . u . val ) ;\n break ;\n case ps_bool : printf ( \"%s\" , dict -> entries [ i ] . u . tf ? \"true\" : \"false\" ) ;\n break ;\n case ps_string : case ps_instr : case ps_lit : printf ( dict -> entries [ i ] . type == ps_lit ? \"/\" : dict -> entries [ i ] . type == ps_string ? \"(\" : \"{\n\" ) ;\n printf ( \"%s\" , dict -> entries [ i ] . u . str ) ;\n printf ( dict -> entries [ i ] . type == ps_lit ? \"\" : dict -> entries [ i ] . type == ps_string ? \")\" : \"}\n\" ) ;\n break ;\n case ps_array : printarray ( & dict -> entries [ i ] . u . dict ) ;\n break ;\n case ps_void : printf ( \"-- void --\" ) ;\n break ;\n default : printf ( \"-- nostringval --\" ) ;\n break ;\n }\n printf ( \" \" ) ;\n }\n printf ( \"]\" ) ;\n }"}
{"idx": 19460, "target": 0, "func": "static char * Curl_basename ( char * path ) {\n char * s1 ;\n char * s2 ;\n s1 = strrchr ( path , '/' ) ;\n s2 = strrchr ( path , '\\\\' ) ;\n if ( s1 && s2 ) {\n path = ( s1 > s2 ? s1 : s2 ) + 1 ;\n }\n else if ( s1 ) path = s1 + 1 ;\n else if ( s2 ) path = s2 + 1 ;\n return path ;\n }"}
{"idx": 19461, "target": 0, "func": "static void mgcpCallerID ( gchar * signalStr , gchar * * callerId ) {\n gchar * * arrayStr ;\n if ( signalStr == NULL ) return ;\n arrayStr = g_strsplit ( signalStr , \"\\\"\" , 10 ) ;\n if ( arrayStr [ 0 ] == NULL ) return ;\n if ( strstr ( arrayStr [ 0 ] , \"ci(\" ) && ( arrayStr [ 1 ] != NULL ) ) {\n g_free ( * callerId ) ;\n * callerId = g_strdup ( arrayStr [ 1 ] ) ;\n }\n g_strfreev ( arrayStr ) ;\n return ;\n }"}
{"idx": 19462, "target": 0, "func": "static int qemuMonitorJSONExtractPtyPaths ( virJSONValuePtr reply , virHashTablePtr paths ) {\n virJSONValuePtr data ;\n int ret = - 1 ;\n int i ;\n if ( ! ( data = virJSONValueObjectGet ( reply , \"return\" ) ) ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"character device reply was missing return data\" ) ) ;\n goto cleanup ;\n }\n if ( data -> type != VIR_JSON_TYPE_ARRAY ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"character device information was not an array\" ) ) ;\n goto cleanup ;\n }\n for ( i = 0 ;\n i < virJSONValueArraySize ( data ) ;\n i ++ ) {\n virJSONValuePtr entry = virJSONValueArrayGet ( data , i ) ;\n const char * type ;\n const char * id ;\n if ( ! entry ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"character device information was missing array element\" ) ) ;\n goto cleanup ;\n }\n if ( ! ( type = virJSONValueObjectGetString ( entry , \"filename\" ) ) ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"character device information was missing filename\" ) ) ;\n goto cleanup ;\n }\n if ( ! ( id = virJSONValueObjectGetString ( entry , \"label\" ) ) ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"character device information was missing filename\" ) ) ;\n goto cleanup ;\n }\n if ( STRPREFIX ( type , \"pty:\" ) ) {\n char * path = strdup ( type + strlen ( \"pty:\" ) ) ;\n if ( ! path ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n if ( virHashAddEntry ( paths , id , path ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"failed to save chardev path '%s'\" ) , path ) ;\n VIR_FREE ( path ) ;\n goto cleanup ;\n }\n }\n }\n ret = 0 ;\n cleanup : return ret ;\n }"}
{"idx": 19463, "target": 0, "func": "static void register_fork ( void ) {\n registered_forks ++ ;\n }"}
{"idx": 19464, "target": 0, "func": "struct key * key_alloc ( struct key_type * type , const char * desc , kuid_t uid , kgid_t gid , const struct cred * cred , key_perm_t perm , unsigned long flags , int ( * restrict_link ) ( struct key * , const struct key_type * , const union key_payload * ) ) {\n struct key_user * user = NULL ;\n struct key * key ;\n size_t desclen , quotalen ;\n int ret ;\n key = ERR_PTR ( - EINVAL ) ;\n if ( ! desc || ! * desc ) goto error ;\n if ( type -> vet_description ) {\n ret = type -> vet_description ( desc ) ;\n if ( ret < 0 ) {\n key = ERR_PTR ( ret ) ;\n goto error ;\n }\n }\n desclen = strlen ( desc ) ;\n quotalen = desclen + 1 + type -> def_datalen ;\n user = key_user_lookup ( uid ) ;\n if ( ! user ) goto no_memory_1 ;\n if ( ! ( flags & KEY_ALLOC_NOT_IN_QUOTA ) ) {\n unsigned maxkeys = uid_eq ( uid , GLOBAL_ROOT_UID ) ? key_quota_root_maxkeys : key_quota_maxkeys ;\n unsigned maxbytes = uid_eq ( uid , GLOBAL_ROOT_UID ) ? key_quota_root_maxbytes : key_quota_maxbytes ;\n spin_lock ( & user -> lock ) ;\n if ( ! ( flags & KEY_ALLOC_QUOTA_OVERRUN ) ) {\n if ( user -> qnkeys + 1 >= maxkeys || user -> qnbytes + quotalen >= maxbytes || user -> qnbytes + quotalen < user -> qnbytes ) goto no_quota ;\n }\n user -> qnkeys ++ ;\n user -> qnbytes += quotalen ;\n spin_unlock ( & user -> lock ) ;\n }\n key = kmem_cache_zalloc ( key_jar , GFP_KERNEL ) ;\n if ( ! key ) goto no_memory_2 ;\n key -> index_key . desc_len = desclen ;\n key -> index_key . description = kmemdup ( desc , desclen + 1 , GFP_KERNEL ) ;\n if ( ! key -> index_key . description ) goto no_memory_3 ;\n atomic_set ( & key -> usage , 1 ) ;\n init_rwsem ( & key -> sem ) ;\n lockdep_set_class ( & key -> sem , & type -> lock_class ) ;\n key -> index_key . type = type ;\n key -> user = user ;\n key -> quotalen = quotalen ;\n key -> datalen = type -> def_datalen ;\n key -> uid = uid ;\n key -> gid = gid ;\n key -> perm = perm ;\n key -> restrict_link = restrict_link ;\n if ( ! ( flags & KEY_ALLOC_NOT_IN_QUOTA ) ) key -> flags |= 1 << KEY_FLAG_IN_QUOTA ;\n if ( flags & KEY_ALLOC_BUILT_IN ) key -> flags |= 1 << KEY_FLAG_BUILTIN ;\n # ifdef KEY_DEBUGGING key -> magic = KEY_DEBUG_MAGIC ;\n # endif ret = security_key_alloc ( key , cred , flags ) ;\n if ( ret < 0 ) goto security_error ;\n atomic_inc ( & user -> nkeys ) ;\n key_alloc_serial ( key ) ;\n error : return key ;\n security_error : kfree ( key -> description ) ;\n kmem_cache_free ( key_jar , key ) ;\n if ( ! ( flags & KEY_ALLOC_NOT_IN_QUOTA ) ) {\n spin_lock ( & user -> lock ) ;\n user -> qnkeys -- ;\n user -> qnbytes -= quotalen ;\n spin_unlock ( & user -> lock ) ;\n }\n key_user_put ( user ) ;\n key = ERR_PTR ( ret ) ;\n goto error ;\n no_memory_3 : kmem_cache_free ( key_jar , key ) ;\n no_memory_2 : if ( ! ( flags & KEY_ALLOC_NOT_IN_QUOTA ) ) {\n spin_lock ( & user -> lock ) ;\n user -> qnkeys -- ;\n user -> qnbytes -= quotalen ;\n spin_unlock ( & user -> lock ) ;\n }\n key_user_put ( user ) ;\n no_memory_1 : key = ERR_PTR ( - ENOMEM ) ;\n goto error ;\n no_quota : spin_unlock ( & user -> lock ) ;\n key_user_put ( user ) ;\n key = ERR_PTR ( - EDQUOT ) ;\n goto error ;\n }"}
{"idx": 19465, "target": 0, "func": "static void do_vm_stop ( RunState state ) {\n if ( runstate_is_running ( ) ) {\n cpu_disable_ticks ( ) ;\n pause_all_vcpus ( ) ;\n runstate_set ( state ) ;\n vm_state_notify ( 0 , state ) ;\n bdrv_drain_all ( ) ;\n bdrv_flush_all ( ) ;\n monitor_protocol_event ( QEVENT_STOP , NULL ) ;\n }\n }"}
{"idx": 19466, "target": 0, "func": "static int qemuMonitorJSONGetGuestDriveAddress ( virJSONValuePtr reply , virDomainDeviceDriveAddress * driveAddr ) {\n virJSONValuePtr addr ;\n addr = virJSONValueObjectGet ( reply , \"return\" ) ;\n if ( ! addr || addr -> type != VIR_JSON_TYPE_OBJECT ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"drive_add reply was missing device address\" ) ) ;\n return - 1 ;\n }\n if ( virJSONValueObjectGetNumberUint ( addr , \"bus\" , & driveAddr -> bus ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"drive_add reply was missing device bus number\" ) ) ;\n return - 1 ;\n }\n if ( virJSONValueObjectGetNumberUint ( addr , \"unit\" , & driveAddr -> unit ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"drive_add reply was missing device unit number\" ) ) ;\n return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 19467, "target": 1, "func": "static void vapic_write ( void * opaque , hwaddr addr , uint64_t data , unsigned int size ) {\n CPUX86State * env = cpu_single_env ;\n hwaddr rom_paddr ;\n VAPICROMState * s = opaque ;\n cpu_synchronize_state ( CPU ( x86_env_get_cpu ( env ) ) ) ;\n switch ( size ) {\n case 2 : if ( s -> state == VAPIC_INACTIVE ) {\n rom_paddr = ( env -> segs [ R_CS ] . base + env -> eip ) & ROM_BLOCK_MASK ;\n s -> rom_state_paddr = rom_paddr + data ;\n s -> state = VAPIC_STANDBY ;\n }\n if ( vapic_prepare ( s ) < 0 ) {\n s -> state = VAPIC_INACTIVE ;\n break ;\n }\n break ;\n case 1 : if ( kvm_enabled ( ) ) {\n pause_all_vcpus ( ) ;\n patch_byte ( env , env -> eip - 2 , 0x66 ) ;\n patch_byte ( env , env -> eip - 1 , 0x90 ) ;\n resume_all_vcpus ( ) ;\n }\n if ( s -> state == VAPIC_ACTIVE ) {\n break ;\n }\n if ( update_rom_mapping ( s , env , env -> eip ) < 0 ) {\n break ;\n }\n if ( find_real_tpr_addr ( s , env ) < 0 ) {\n break ;\n }\n vapic_enable ( s , env ) ;\n break ;\n default : case 4 : if ( ! kvm_irqchip_in_kernel ( ) ) {\n apic_poll_irq ( env -> apic_state ) ;\n }\n break ;\n }\n }"}
{"idx": 19468, "target": 0, "func": "static void super_block_uvrd ( const VP9_COMP * cpi , MACROBLOCK * x , int * rate , int64_t * distortion , int * skippable , int64_t * sse , BLOCK_SIZE bsize , int64_t ref_best_rd ) {\n MACROBLOCKD * const xd = & x -> e_mbd ;\n MB_MODE_INFO * const mbmi = & xd -> mi [ 0 ] . src_mi -> mbmi ;\n const TX_SIZE uv_tx_size = get_uv_tx_size ( mbmi , & xd -> plane [ 1 ] ) ;\n int plane ;\n int pnrate = 0 , pnskip = 1 ;\n int64_t pndist = 0 , pnsse = 0 ;\n if ( ref_best_rd < 0 ) goto term ;\n if ( is_inter_block ( mbmi ) ) {\n int plane ;\n for ( plane = 1 ;\n plane < MAX_MB_PLANE ;\n ++ plane ) vp9_subtract_plane ( x , bsize , plane ) ;\n }\n * rate = 0 ;\n * distortion = 0 ;\n * sse = 0 ;\n * skippable = 1 ;\n for ( plane = 1 ;\n plane < MAX_MB_PLANE ;\n ++ plane ) {\n txfm_rd_in_plane ( x , & pnrate , & pndist , & pnskip , & pnsse , ref_best_rd , plane , bsize , uv_tx_size , cpi -> sf . use_fast_coef_costing ) ;\n if ( pnrate == INT_MAX ) goto term ;\n * rate += pnrate ;\n * distortion += pndist ;\n * sse += pnsse ;\n * skippable &= pnskip ;\n }\n return ;\n term : * rate = INT_MAX ;\n * distortion = INT64_MAX ;\n * sse = INT64_MAX ;\n * skippable = 0 ;\n return ;\n }"}
{"idx": 19469, "target": 1, "func": "static int dissect_h225_T_raw ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 881 \"./asn1/h225/h225.cnf\" tvbuff_t * value_tvb ;\n gef_ctx_t * gefx ;\n proto_item * ti ;\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , NO_BOUND , NO_BOUND , FALSE , & value_tvb ) ;\n gefx = gef_ctx_get ( actx -> private_data ) ;\n if ( gefx ) {\n ti = proto_tree_add_string ( tree , hf_h225_debug_dissector_try_string , tvb , offset >> 3 , 0 , gefx -> key ) ;\n PROTO_ITEM_SET_HIDDEN ( ti ) ;\n dissector_try_string ( gef_content_dissector_table , gefx -> key , value_tvb , actx -> pinfo , tree , actx ) ;\n }\n return offset ;\n }"}
{"idx": 19470, "target": 0, "func": "static int decode_555 ( GetByteContext * gB , uint16_t * dst , int stride , int keyframe , int w , int h ) {\n int last_symbol = 0 , repeat = 0 , prev_avail = 0 ;\n if ( ! keyframe ) {\n int x , y , endx , endy , t ;\n # define READ_PAIR ( a , b ) a = bytestream2_get_byte ( gB ) << 4 ;\n t = bytestream2_get_byte ( gB ) ;\n a |= t >> 4 ;\n b = ( t & 0xF ) << 8 ;\n b |= bytestream2_get_byte ( gB ) ;\n READ_PAIR ( x , endx ) READ_PAIR ( y , endy ) if ( endx >= w || endy >= h || x > endx || y > endy ) return AVERROR_INVALIDDATA ;\n dst += x + stride * y ;\n w = endx - x + 1 ;\n h = endy - y + 1 ;\n if ( y ) prev_avail = 1 ;\n }\n do {\n uint16_t * p = dst ;\n do {\n if ( repeat -- < 1 ) {\n int b = bytestream2_get_byte ( gB ) ;\n if ( b < 128 ) last_symbol = b << 8 | bytestream2_get_byte ( gB ) ;\n else if ( b > 129 ) {\n repeat = 0 ;\n while ( b -- > 130 ) repeat = ( repeat << 8 ) + bytestream2_get_byte ( gB ) + 1 ;\n if ( last_symbol == - 2 ) {\n int skip = FFMIN ( ( unsigned ) repeat , dst + w - p ) ;\n repeat -= skip ;\n p += skip ;\n }\n }\n else last_symbol = 127 - b ;\n }\n if ( last_symbol >= 0 ) * p = last_symbol ;\n else if ( last_symbol == - 1 && prev_avail ) * p = * ( p - stride ) ;\n }\n while ( ++ p < dst + w ) ;\n dst += stride ;\n prev_avail = 1 ;\n }\n while ( -- h ) ;\n return 0 ;\n }"}
{"idx": 19471, "target": 0, "func": "static int jbig2_find_changing_element_of_color ( const byte * line , uint32_t x , uint32_t w , int color ) {\n if ( line == 0 ) return w ;\n x = jbig2_find_changing_element ( line , x , w ) ;\n if ( x < w && getbit ( line , x ) != color ) x = jbig2_find_changing_element ( line , x , w ) ;\n return x ;\n }"}
{"idx": 19472, "target": 0, "func": "wtap_open_return_val ngsniffer_open ( wtap * wth , int * err , gchar * * err_info ) {\n char magic [ sizeof ngsniffer_magic ] ;\n char record_type [ 2 ] ;\n char record_length [ 4 ] ;\n guint16 type ;\n struct vers_rec version ;\n guint16 maj_vers ;\n guint16 start_date ;\n # if 0 guint16 start_time ;\n # endif static const int sniffer_encap [ ] = {\n WTAP_ENCAP_TOKEN_RING , WTAP_ENCAP_ETHERNET , WTAP_ENCAP_ARCNET , WTAP_ENCAP_UNKNOWN , WTAP_ENCAP_UNKNOWN , WTAP_ENCAP_UNKNOWN , WTAP_ENCAP_UNKNOWN , WTAP_ENCAP_PER_PACKET , WTAP_ENCAP_PER_PACKET , WTAP_ENCAP_FDDI_BITSWAPPED , WTAP_ENCAP_ATM_PDUS }\n ;\n # define NUM_NGSNIFF_ENCAPS ( sizeof sniffer_encap / sizeof sniffer_encap [ 0 ] ) struct tm tm ;\n gint64 current_offset ;\n ngsniffer_t * ngsniffer ;\n if ( ! wtap_read_bytes ( wth -> fh , magic , sizeof magic , err , err_info ) ) {\n if ( * err != WTAP_ERR_SHORT_READ ) return WTAP_OPEN_ERROR ;\n return WTAP_OPEN_NOT_MINE ;\n }\n if ( memcmp ( magic , ngsniffer_magic , sizeof ngsniffer_magic ) ) {\n return WTAP_OPEN_NOT_MINE ;\n }\n if ( ! wtap_read_bytes ( wth -> fh , record_type , 2 , err , err_info ) ) return WTAP_OPEN_ERROR ;\n if ( ! wtap_read_bytes ( wth -> fh , record_length , 4 , err , err_info ) ) return WTAP_OPEN_ERROR ;\n type = pletoh16 ( record_type ) ;\n if ( type != REC_VERS ) {\n * err = WTAP_ERR_BAD_FILE ;\n * err_info = g_strdup_printf ( \"ngsniffer: Sniffer file doesn't start with a version record\" ) ;\n return WTAP_OPEN_ERROR ;\n }\n if ( ! wtap_read_bytes ( wth -> fh , & version , sizeof version , err , err_info ) ) return WTAP_OPEN_ERROR ;\n if ( version . network >= NUM_NGSNIFF_ENCAPS || sniffer_encap [ version . network ] == WTAP_ENCAP_UNKNOWN ) {\n * err = WTAP_ERR_UNSUPPORTED ;\n * err_info = g_strdup_printf ( \"ngsniffer: network type %u unknown or unsupported\" , version . network ) ;\n return WTAP_OPEN_ERROR ;\n }\n if ( version . timeunit >= NUM_NGSNIFF_TIMEUNITS ) {\n * err = WTAP_ERR_UNSUPPORTED ;\n * err_info = g_strdup_printf ( \"ngsniffer: Unknown timeunit %u\" , version . timeunit ) ;\n return WTAP_OPEN_ERROR ;\n }\n if ( version . format != 1 ) {\n wth -> file_type_subtype = WTAP_FILE_TYPE_SUBTYPE_NGSNIFFER_COMPRESSED ;\n }\n else {\n wth -> file_type_subtype = WTAP_FILE_TYPE_SUBTYPE_NGSNIFFER_UNCOMPRESSED ;\n }\n wth -> file_encap = sniffer_encap [ version . network ] ;\n maj_vers = pletoh16 ( & version . maj_vers ) ;\n if ( process_header_records ( wth , err , err_info , maj_vers , version . network ) < 0 ) return WTAP_OPEN_ERROR ;\n if ( ( version . network == NETWORK_SYNCHRO || version . network == NETWORK_ASYNC ) && wth -> file_encap == WTAP_ENCAP_PER_PACKET ) {\n switch ( maj_vers ) {\n case 1 : switch ( pletoh16 ( & version . rsvd [ 0 ] ) ) {\n case 1 : case 2 : wth -> file_encap = WTAP_ENCAP_ISDN ;\n break ;\n }\n break ;\n case 3 : wth -> file_encap = WTAP_ENCAP_FRELAY_WITH_PHDR ;\n break ;\n }\n }\n current_offset = file_tell ( wth -> fh ) ;\n if ( wth -> random_fh != NULL ) {\n if ( file_seek ( wth -> random_fh , current_offset , SEEK_SET , err ) == - 1 ) return WTAP_OPEN_ERROR ;\n }\n ngsniffer = ( ngsniffer_t * ) g_malloc ( sizeof ( ngsniffer_t ) ) ;\n wth -> priv = ( void * ) ngsniffer ;\n ngsniffer -> maj_vers = maj_vers ;\n ngsniffer -> min_vers = pletoh16 ( & version . min_vers ) ;\n ngsniffer -> seq . buf = NULL ;\n ngsniffer -> seq . nbytes = 0 ;\n ngsniffer -> seq . nextout = 0 ;\n ngsniffer -> rand . buf = NULL ;\n ngsniffer -> rand . nbytes = 0 ;\n ngsniffer -> rand . nextout = 0 ;\n ngsniffer -> seq . uncomp_offset = current_offset ;\n ngsniffer -> seq . comp_offset = current_offset ;\n ngsniffer -> rand . uncomp_offset = current_offset ;\n ngsniffer -> rand . comp_offset = current_offset ;\n ngsniffer -> first_blob = NULL ;\n ngsniffer -> last_blob = NULL ;\n ngsniffer -> current_blob = NULL ;\n wth -> subtype_read = ngsniffer_read ;\n wth -> subtype_seek_read = ngsniffer_seek_read ;\n wth -> subtype_sequential_close = ngsniffer_sequential_close ;\n wth -> subtype_close = ngsniffer_close ;\n wth -> snapshot_length = 0 ;\n ngsniffer -> timeunit = Psec [ version . timeunit ] ;\n ngsniffer -> network = version . network ;\n start_date = pletoh16 ( & version . date ) ;\n tm . tm_year = ( ( start_date & DOS_YEAR_MASK ) >> DOS_YEAR_SHIFT ) + DOS_YEAR_OFFSET ;\n tm . tm_mon = ( ( start_date & DOS_MONTH_MASK ) >> DOS_MONTH_SHIFT ) + DOS_MONTH_OFFSET ;\n tm . tm_mday = ( ( start_date & DOS_DAY_MASK ) >> DOS_DAY_SHIFT ) ;\n # if 0 start_time = pletoh16 ( & version . time ) ;\n tm . tm_hour = ( start_time & 0xf800 ) >> 11 ;\n tm . tm_min = ( start_time & 0x7e0 ) >> 5 ;\n tm . tm_sec = ( start_time & 0x1f ) << 1 ;\n # endif tm . tm_hour = 0 ;\n tm . tm_min = 0 ;\n tm . tm_sec = 0 ;\n tm . tm_isdst = - 1 ;\n ngsniffer -> start = mktime ( & tm ) ;\n wth -> file_tsprec = WTAP_TSPREC_NSEC ;\n return WTAP_OPEN_MINE ;\n }"}
{"idx": 19473, "target": 0, "func": "int create_server_socket ( const char * host , const char * port ) {\n struct addrinfo hints ;\n struct addrinfo * result , * rp , * ipv4v6bindall ;\n int s , server_sock ;\n memset ( & hints , 0 , sizeof ( struct addrinfo ) ) ;\n hints . ai_family = AF_UNSPEC ;\n hints . ai_socktype = SOCK_DGRAM ;\n hints . ai_flags = AI_PASSIVE | AI_ADDRCONFIG ;\n hints . ai_protocol = IPPROTO_UDP ;\n s = getaddrinfo ( host , port , & hints , & result ) ;\n if ( s != 0 ) {\n LOGE ( \"getaddrinfo: %s\" , gai_strerror ( s ) ) ;\n return - 1 ;\n }\n rp = result ;\n if ( ! host ) {\n ipv4v6bindall = result ;\n while ( ipv4v6bindall ) {\n if ( ipv4v6bindall -> ai_family == AF_INET6 ) {\n rp = ipv4v6bindall ;\n break ;\n }\n ipv4v6bindall = ipv4v6bindall -> ai_next ;\n }\n }\n for ( ;\n rp != NULL ;\n rp = rp -> ai_next ) {\n server_sock = socket ( rp -> ai_family , rp -> ai_socktype , rp -> ai_protocol ) ;\n if ( server_sock == - 1 ) {\n continue ;\n }\n if ( rp -> ai_family == AF_INET6 ) {\n int ipv6only = host ? 1 : 0 ;\n setsockopt ( server_sock , IPPROTO_IPV6 , IPV6_V6ONLY , & ipv6only , sizeof ( ipv6only ) ) ;\n }\n int opt = 1 ;\n setsockopt ( server_sock , SOL_SOCKET , SO_REUSEADDR , & opt , sizeof ( opt ) ) ;\n s = bind ( server_sock , rp -> ai_addr , rp -> ai_addrlen ) ;\n if ( s == 0 ) {\n break ;\n }\n else {\n ERROR ( \"bind\" ) ;\n }\n close ( server_sock ) ;\n }\n if ( rp == NULL ) {\n LOGE ( \"cannot bind\" ) ;\n return - 1 ;\n }\n freeaddrinfo ( result ) ;\n return server_sock ;\n }"}
{"idx": 19474, "target": 0, "func": "afs_int32 SPR_ListElements ( struct rx_call * call , afs_int32 aid , prlist * alist , afs_int32 * over ) {\n afs_int32 code ;\n afs_int32 cid = ANONYMOUSID ;\n code = listElements ( call , aid , alist , over , & cid ) ;\n osi_auditU ( call , PTS_LstEleEvent , code , AUD_ID , aid , AUD_END ) ;\n ViceLog ( 125 , ( \"PTS_ListElements: code %d cid %d aid %d\\n\" , code , cid , aid ) ) ;\n return code ;\n }"}
{"idx": 19475, "target": 0, "func": "static void Type_ColorantOrderType_Free ( struct _cms_typehandler_struct * self , void * Ptr ) {\n _cmsFree ( self -> ContextID , Ptr ) ;\n }"}
{"idx": 19476, "target": 0, "func": "static inline void flush_unauthorized_files ( const struct cred * cred , struct files_struct * files ) {\n struct file * file , * devnull = NULL ;\n struct tty_struct * tty ;\n int drop_tty = 0 ;\n unsigned n ;\n tty = get_current_tty ( ) ;\n if ( tty ) {\n spin_lock ( & tty -> files_lock ) ;\n if ( ! list_empty ( & tty -> tty_files ) ) {\n struct tty_file_private * file_priv ;\n file_priv = list_first_entry ( & tty -> tty_files , struct tty_file_private , list ) ;\n file = file_priv -> file ;\n if ( file_path_has_perm ( cred , file , FILE__READ | FILE__WRITE ) ) drop_tty = 1 ;\n }\n spin_unlock ( & tty -> files_lock ) ;\n tty_kref_put ( tty ) ;\n }\n if ( drop_tty ) no_tty ( ) ;\n n = iterate_fd ( files , 0 , match_file , cred ) ;\n if ( ! n ) return ;\n devnull = dentry_open ( & selinux_null , O_RDWR , cred ) ;\n if ( IS_ERR ( devnull ) ) devnull = NULL ;\n do {\n replace_fd ( n - 1 , devnull , 0 ) ;\n }\n while ( ( n = iterate_fd ( files , n , match_file , cred ) ) != 0 ) ;\n if ( devnull ) fput ( devnull ) ;\n }"}
{"idx": 19477, "target": 0, "func": "static bool mcg_ext_ctl_needed ( void * opaque ) {\n X86CPU * cpu = opaque ;\n CPUX86State * env = & cpu -> env ;\n return cpu -> enable_lmce && env -> mcg_ext_ctl ;\n }"}
{"idx": 19478, "target": 0, "func": "static char * http_str_store ( Arena * arena , const char * str , int length ) {\n const char * wks ;\n int idx = hdrtoken_tokenize ( str , length , & wks ) ;\n if ( idx < 0 ) {\n return arena -> str_store ( str , length ) ;\n }\n else {\n return ( char * ) wks ;\n }\n }"}
{"idx": 19479, "target": 0, "func": "void ff_vorbis_inverse_coupling ( float * mag , float * ang , intptr_t blocksize ) {\n int i ;\n for ( i = 0 ;\n i < blocksize ;\n i ++ ) {\n if ( mag [ i ] > 0.0 ) {\n if ( ang [ i ] > 0.0 ) {\n ang [ i ] = mag [ i ] - ang [ i ] ;\n }\n else {\n float temp = ang [ i ] ;\n ang [ i ] = mag [ i ] ;\n mag [ i ] += temp ;\n }\n }\n else {\n if ( ang [ i ] > 0.0 ) {\n ang [ i ] += mag [ i ] ;\n }\n else {\n float temp = ang [ i ] ;\n ang [ i ] = mag [ i ] ;\n mag [ i ] -= temp ;\n }\n }\n }\n }"}
{"idx": 19480, "target": 0, "func": "int ff_vdpau_common_start_frame ( AVCodecContext * avctx , av_unused const uint8_t * buffer , av_unused uint32_t size ) {\n AVVDPAUContext * hwctx = avctx -> hwaccel_context ;\n hwctx -> bitstream_buffers_used = 0 ;\n return 0 ;\n }"}
{"idx": 19481, "target": 0, "func": "static FILE * open_outfile ( const char * name ) {\n if ( strcmp ( \"-\" , name ) == 0 ) {\n set_binary_mode ( stdout ) ;\n return stdout ;\n }\n else {\n FILE * file = fopen ( name , \"wb\" ) ;\n if ( ! file ) fatal ( \"Failed to output file %s\" , name ) ;\n return file ;\n }\n }"}
{"idx": 19482, "target": 0, "func": "static double get_sr_decay_rate ( const VP9_COMMON * cm , const FIRSTPASS_STATS * frame ) {\n double sr_diff = ( frame -> sr_coded_error - frame -> coded_error ) / cm -> MBs ;\n double sr_decay = 1.0 ;\n const double motion_amplitude_factor = frame -> pcnt_motion * ( ( frame -> mvc_abs + frame -> mvr_abs ) / 2 ) ;\n const double pcnt_intra = 100 * ( 1.0 - frame -> pcnt_inter ) ;\n if ( ( sr_diff > LOW_SR_DIFF_TRHESH ) ) {\n sr_diff = MIN ( sr_diff , SR_DIFF_MAX ) ;\n sr_decay = 1.0 - ( SR_DIFF_PART * sr_diff ) - ( MOTION_AMP_PART * motion_amplitude_factor ) - ( INTRA_PART * pcnt_intra ) ;\n }\n return MAX ( sr_decay , MIN ( DEFAULT_DECAY_LIMIT , frame -> pcnt_inter ) ) ;\n }"}
{"idx": 19483, "target": 0, "func": "static USBEndpoint * xhci_epid_to_usbep ( XHCIEPContext * epctx ) {\n USBPort * uport ;\n uint32_t token ;\n if ( ! epctx ) {\n return NULL ;\n }\n uport = epctx -> xhci -> slots [ epctx -> slotid - 1 ] . uport ;\n token = ( epctx -> epid & 1 ) ? USB_TOKEN_IN : USB_TOKEN_OUT ;\n if ( ! uport ) {\n return NULL ;\n }\n return usb_ep_get ( uport -> dev , token , epctx -> epid >> 1 ) ;\n }"}
{"idx": 19484, "target": 0, "func": "static int dsa_priv_decode ( EVP_PKEY * pkey , PKCS8_PRIV_KEY_INFO * p8 ) {\n const unsigned char * p , * q , * pm ;\n int pklen , pmlen ;\n int ptype ;\n void * pval ;\n ASN1_STRING * pstr ;\n X509_ALGOR * palg ;\n ASN1_INTEGER * privkey = NULL ;\n BN_CTX * ctx = NULL ;\n DSA * dsa = NULL ;\n int ret = 0 ;\n if ( ! PKCS8_pkey_get0 ( NULL , & p , & pklen , & palg , p8 ) ) return 0 ;\n X509_ALGOR_get0 ( NULL , & ptype , & pval , palg ) ;\n q = p ;\n if ( ( privkey = d2i_ASN1_INTEGER ( NULL , & p , pklen ) ) == NULL ) goto decerr ;\n if ( privkey -> type == V_ASN1_NEG_INTEGER ) {\n p8 -> broken = PKCS8_NEG_PRIVKEY ;\n ASN1_STRING_clear_free ( privkey ) ;\n if ( ( privkey = d2i_ASN1_UINTEGER ( NULL , & q , pklen ) ) == NULL ) goto decerr ;\n }\n if ( ptype != V_ASN1_SEQUENCE ) goto decerr ;\n pstr = pval ;\n pm = pstr -> data ;\n pmlen = pstr -> length ;\n if ( ( dsa = d2i_DSAparams ( NULL , & pm , pmlen ) ) == NULL ) goto decerr ;\n if ( ( dsa -> priv_key = BN_secure_new ( ) ) == NULL || ! ASN1_INTEGER_to_BN ( privkey , dsa -> priv_key ) ) {\n DSAerr ( DSA_F_DSA_PRIV_DECODE , DSA_R_BN_ERROR ) ;\n goto dsaerr ;\n }\n if ( ( dsa -> pub_key = BN_new ( ) ) == NULL ) {\n DSAerr ( DSA_F_DSA_PRIV_DECODE , ERR_R_MALLOC_FAILURE ) ;\n goto dsaerr ;\n }\n if ( ( ctx = BN_CTX_new ( ) ) == NULL ) {\n DSAerr ( DSA_F_DSA_PRIV_DECODE , ERR_R_MALLOC_FAILURE ) ;\n goto dsaerr ;\n }\n if ( ! BN_mod_exp ( dsa -> pub_key , dsa -> g , dsa -> priv_key , dsa -> p , ctx ) ) {\n DSAerr ( DSA_F_DSA_PRIV_DECODE , DSA_R_BN_ERROR ) ;\n goto dsaerr ;\n }\n EVP_PKEY_assign_DSA ( pkey , dsa ) ;\n ret = 1 ;\n goto done ;\n decerr : DSAerr ( DSA_F_DSA_PRIV_DECODE , DSA_R_DECODE_ERROR ) ;\n dsaerr : DSA_free ( dsa ) ;\n done : BN_CTX_free ( ctx ) ;\n ASN1_STRING_clear_free ( privkey ) ;\n return ret ;\n }"}
{"idx": 19485, "target": 0, "func": "static PyObject * string_lstrip ( PyStringObject * self , PyObject * args ) {\n if ( PyTuple_GET_SIZE ( args ) == 0 ) return do_strip ( self , LEFTSTRIP ) ;\n else return do_argstrip ( self , LEFTSTRIP , args ) ;\n }"}
{"idx": 19486, "target": 0, "func": "header_field_info * proto_registrar_get_byname ( const char * field_name ) {\n header_field_info * hfinfo ;\n prefix_initializer_t pi ;\n if ( ! field_name ) return NULL ;\n if ( g_strcmp0 ( field_name , last_field_name ) == 0 ) {\n return last_hfinfo ;\n }\n hfinfo = ( header_field_info * ) g_hash_table_lookup ( gpa_name_map , field_name ) ;\n if ( hfinfo ) {\n g_free ( last_field_name ) ;\n last_field_name = g_strdup ( field_name ) ;\n last_hfinfo = hfinfo ;\n return hfinfo ;\n }\n if ( ! prefixes ) return NULL ;\n if ( ( pi = ( prefix_initializer_t ) g_hash_table_lookup ( prefixes , field_name ) ) != NULL ) {\n pi ( field_name ) ;\n g_hash_table_remove ( prefixes , field_name ) ;\n }\n else {\n return NULL ;\n }\n hfinfo = ( header_field_info * ) g_hash_table_lookup ( gpa_name_map , field_name ) ;\n if ( hfinfo ) {\n g_free ( last_field_name ) ;\n last_field_name = g_strdup ( field_name ) ;\n last_hfinfo = hfinfo ;\n }\n return hfinfo ;\n }"}
{"idx": 19487, "target": 0, "func": "static krb5_error_code process_chpw_request ( krb5_context context , void * server_handle , char * realm , krb5_keytab keytab , const krb5_fulladdr * local_faddr , const krb5_fulladdr * remote_faddr , krb5_data * req , krb5_data * rep ) {\n krb5_error_code ret ;\n char * ptr ;\n unsigned int plen , vno ;\n krb5_data ap_req , ap_rep = empty_data ( ) ;\n krb5_data cipher = empty_data ( ) , clear = empty_data ( ) ;\n krb5_auth_context auth_context = NULL ;\n krb5_principal changepw = NULL ;\n krb5_principal client , target = NULL ;\n krb5_ticket * ticket = NULL ;\n krb5_replay_data replay ;\n krb5_error krberror ;\n int numresult ;\n char strresult [ 1024 ] ;\n char * clientstr = NULL , * targetstr = NULL ;\n const char * errmsg = NULL ;\n size_t clen ;\n char * cdots ;\n struct sockaddr_storage ss ;\n socklen_t salen ;\n char addrbuf [ 100 ] ;\n krb5_address * addr = remote_faddr -> address ;\n * rep = empty_data ( ) ;\n if ( req -> length < 4 ) {\n ret = KRB5KRB_AP_ERR_MODIFIED ;\n numresult = KRB5_KPASSWD_MALFORMED ;\n strlcpy ( strresult , \"Request was truncated\" , sizeof ( strresult ) ) ;\n goto bailout ;\n }\n ptr = req -> data ;\n plen = ( * ptr ++ & 0xff ) ;\n plen = ( plen << 8 ) | ( * ptr ++ & 0xff ) ;\n if ( plen != req -> length ) {\n ret = KRB5KRB_AP_ERR_MODIFIED ;\n numresult = KRB5_KPASSWD_MALFORMED ;\n strlcpy ( strresult , \"Request length was inconsistent\" , sizeof ( strresult ) ) ;\n goto bailout ;\n }\n vno = ( * ptr ++ & 0xff ) ;\n vno = ( vno << 8 ) | ( * ptr ++ & 0xff ) ;\n if ( vno != 1 && vno != RFC3244_VERSION ) {\n ret = KRB5KDC_ERR_BAD_PVNO ;\n numresult = KRB5_KPASSWD_BAD_VERSION ;\n snprintf ( strresult , sizeof ( strresult ) , \"Request contained unknown protocol version number %d\" , vno ) ;\n goto bailout ;\n }\n ap_req . length = ( * ptr ++ & 0xff ) ;\n ap_req . length = ( ap_req . length << 8 ) | ( * ptr ++ & 0xff ) ;\n if ( ptr + ap_req . length >= req -> data + req -> length ) {\n ret = KRB5KRB_AP_ERR_MODIFIED ;\n numresult = KRB5_KPASSWD_MALFORMED ;\n strlcpy ( strresult , \"Request was truncated in AP-REQ\" , sizeof ( strresult ) ) ;\n goto bailout ;\n }\n ap_req . data = ptr ;\n ptr += ap_req . length ;\n ret = krb5_auth_con_init ( context , & auth_context ) ;\n if ( ret ) {\n numresult = KRB5_KPASSWD_HARDERROR ;\n strlcpy ( strresult , \"Failed initializing auth context\" , sizeof ( strresult ) ) ;\n goto chpwfail ;\n }\n ret = krb5_auth_con_setflags ( context , auth_context , KRB5_AUTH_CONTEXT_DO_SEQUENCE ) ;\n if ( ret ) {\n numresult = KRB5_KPASSWD_HARDERROR ;\n strlcpy ( strresult , \"Failed initializing auth context\" , sizeof ( strresult ) ) ;\n goto chpwfail ;\n }\n ret = krb5_build_principal ( context , & changepw , strlen ( realm ) , realm , \"kadmin\" , \"changepw\" , NULL ) ;\n if ( ret ) {\n numresult = KRB5_KPASSWD_HARDERROR ;\n strlcpy ( strresult , \"Failed building kadmin/changepw principal\" , sizeof ( strresult ) ) ;\n goto chpwfail ;\n }\n ret = krb5_rd_req ( context , & auth_context , & ap_req , changepw , keytab , NULL , & ticket ) ;\n if ( ret ) {\n numresult = KRB5_KPASSWD_AUTHERROR ;\n strlcpy ( strresult , \"Failed reading application request\" , sizeof ( strresult ) ) ;\n goto chpwfail ;\n }\n ret = krb5_mk_rep ( context , auth_context , & ap_rep ) ;\n if ( ret ) {\n numresult = KRB5_KPASSWD_AUTHERROR ;\n strlcpy ( strresult , \"Failed replying to application request\" , sizeof ( strresult ) ) ;\n goto chpwfail ;\n }\n cipher . length = ( req -> data + req -> length ) - ptr ;\n cipher . data = ptr ;\n ret = krb5_rd_priv ( context , auth_context , & cipher , & clear , & replay ) ;\n if ( ret ) {\n numresult = KRB5_KPASSWD_HARDERROR ;\n strlcpy ( strresult , \"Failed decrypting request\" , sizeof ( strresult ) ) ;\n goto chpwfail ;\n }\n client = ticket -> enc_part2 -> client ;\n if ( vno == RFC3244_VERSION ) {\n krb5_data * clear_data ;\n ret = decode_krb5_setpw_req ( & clear , & clear_data , & target ) ;\n if ( ret != 0 ) {\n numresult = KRB5_KPASSWD_MALFORMED ;\n strlcpy ( strresult , \"Failed decoding ChangePasswdData\" , sizeof ( strresult ) ) ;\n goto chpwfail ;\n }\n zapfree ( clear . data , clear . length ) ;\n clear = * clear_data ;\n free ( clear_data ) ;\n if ( target != NULL ) {\n ret = krb5_unparse_name ( context , target , & targetstr ) ;\n if ( ret != 0 ) {\n numresult = KRB5_KPASSWD_HARDERROR ;\n strlcpy ( strresult , \"Failed unparsing target name for log\" , sizeof ( strresult ) ) ;\n goto chpwfail ;\n }\n }\n }\n ret = krb5_unparse_name ( context , client , & clientstr ) ;\n if ( ret ) {\n numresult = KRB5_KPASSWD_HARDERROR ;\n strlcpy ( strresult , \"Failed unparsing client name for log\" , sizeof ( strresult ) ) ;\n goto chpwfail ;\n }\n if ( vno == 1 && ( ticket -> enc_part2 -> flags & TKT_FLG_INITIAL ) == 0 ) {\n numresult = KRB5_KPASSWD_INITIAL_FLAG_NEEDED ;\n strlcpy ( strresult , \"Ticket must be derived from a password\" , sizeof ( strresult ) ) ;\n goto chpwfail ;\n }\n ptr = k5memdup0 ( clear . data , clear . length , & ret ) ;\n ret = schpw_util_wrapper ( server_handle , client , target , ( ticket -> enc_part2 -> flags & TKT_FLG_INITIAL ) != 0 , ptr , NULL , strresult , sizeof ( strresult ) ) ;\n if ( ret ) errmsg = krb5_get_error_message ( context , ret ) ;\n zapfree ( clear . data , clear . length ) ;\n zapfree ( ptr , clear . length ) ;\n clear = empty_data ( ) ;\n clen = strlen ( clientstr ) ;\n trunc_name ( & clen , & cdots ) ;\n switch ( addr -> addrtype ) {\n case ADDRTYPE_INET : {\n struct sockaddr_in * sin = ss2sin ( & ss ) ;\n sin -> sin_family = AF_INET ;\n memcpy ( & sin -> sin_addr , addr -> contents , addr -> length ) ;\n sin -> sin_port = htons ( remote_faddr -> port ) ;\n salen = sizeof ( * sin ) ;\n break ;\n }\n case ADDRTYPE_INET6 : {\n struct sockaddr_in6 * sin6 = ss2sin6 ( & ss ) ;\n sin6 -> sin6_family = AF_INET6 ;\n memcpy ( & sin6 -> sin6_addr , addr -> contents , addr -> length ) ;\n sin6 -> sin6_port = htons ( remote_faddr -> port ) ;\n salen = sizeof ( * sin6 ) ;\n break ;\n }\n default : {\n struct sockaddr * sa = ss2sa ( & ss ) ;\n sa -> sa_family = AF_UNSPEC ;\n salen = sizeof ( * sa ) ;\n break ;\n }\n }\n if ( getnameinfo ( ss2sa ( & ss ) , salen , addrbuf , sizeof ( addrbuf ) , NULL , 0 , NI_NUMERICHOST | NI_NUMERICSERV ) != 0 ) strlcpy ( addrbuf , \"<unprintable>\" , sizeof ( addrbuf ) ) ;\n if ( vno == RFC3244_VERSION ) {\n size_t tlen ;\n char * tdots ;\n const char * targetp ;\n if ( target == NULL ) {\n tlen = clen ;\n tdots = cdots ;\n targetp = targetstr ;\n }\n else {\n tlen = strlen ( targetstr ) ;\n trunc_name ( & tlen , & tdots ) ;\n targetp = clientstr ;\n }\n krb5_klog_syslog ( LOG_NOTICE , _ ( \"setpw request from %s by %.*s%s for \" \"%.*s%s: %s\" ) , addrbuf , ( int ) clen , clientstr , cdots , ( int ) tlen , targetp , tdots , errmsg ? errmsg : \"success\" ) ;\n }\n else {\n krb5_klog_syslog ( LOG_NOTICE , _ ( \"chpw request from %s for %.*s%s: %s\" ) , addrbuf , ( int ) clen , clientstr , cdots , errmsg ? errmsg : \"success\" ) ;\n }\n switch ( ret ) {\n case KADM5_AUTH_CHANGEPW : numresult = KRB5_KPASSWD_ACCESSDENIED ;\n break ;\n case KADM5_PASS_Q_TOOSHORT : case KADM5_PASS_REUSE : case KADM5_PASS_Q_CLASS : case KADM5_PASS_Q_DICT : case KADM5_PASS_Q_GENERIC : case KADM5_PASS_TOOSOON : numresult = KRB5_KPASSWD_SOFTERROR ;\n break ;\n case 0 : numresult = KRB5_KPASSWD_SUCCESS ;\n strlcpy ( strresult , \"\" , sizeof ( strresult ) ) ;\n break ;\n default : numresult = KRB5_KPASSWD_HARDERROR ;\n break ;\n }\n chpwfail : clear . length = 2 + strlen ( strresult ) ;\n clear . data = ( char * ) malloc ( clear . length ) ;\n ptr = clear . data ;\n * ptr ++ = ( numresult >> 8 ) & 0xff ;\n * ptr ++ = numresult & 0xff ;\n memcpy ( ptr , strresult , strlen ( strresult ) ) ;\n cipher = empty_data ( ) ;\n if ( ap_rep . length ) {\n ret = krb5_auth_con_setaddrs ( context , auth_context , local_faddr -> address , NULL ) ;\n if ( ret ) {\n numresult = KRB5_KPASSWD_HARDERROR ;\n strlcpy ( strresult , \"Failed storing client and server internet addresses\" , sizeof ( strresult ) ) ;\n }\n else {\n ret = krb5_mk_priv ( context , auth_context , & clear , & cipher , & replay ) ;\n if ( ret ) {\n numresult = KRB5_KPASSWD_HARDERROR ;\n strlcpy ( strresult , \"Failed encrypting reply\" , sizeof ( strresult ) ) ;\n }\n }\n }\n if ( cipher . length == 0 ) {\n if ( ap_rep . length ) {\n free ( ap_rep . data ) ;\n ap_rep = empty_data ( ) ;\n }\n krberror . ctime = 0 ;\n krberror . cusec = 0 ;\n krberror . susec = 0 ;\n ret = krb5_timeofday ( context , & krberror . stime ) ;\n if ( ret ) goto bailout ;\n krberror . error = ret ;\n krberror . error -= ERROR_TABLE_BASE_krb5 ;\n if ( krberror . error < 0 || krberror . error > 128 ) krberror . error = KRB_ERR_GENERIC ;\n krberror . client = NULL ;\n ret = krb5_build_principal ( context , & krberror . server , strlen ( realm ) , realm , \"kadmin\" , \"changepw\" , NULL ) ;\n if ( ret ) goto bailout ;\n krberror . text . length = 0 ;\n krberror . e_data = clear ;\n ret = krb5_mk_error ( context , & krberror , & cipher ) ;\n krb5_free_principal ( context , krberror . server ) ;\n if ( ret ) goto bailout ;\n }\n ret = alloc_data ( rep , 6 + ap_rep . length + cipher . length ) ;\n if ( ret ) goto bailout ;\n ptr = rep -> data ;\n * ptr ++ = ( rep -> length >> 8 ) & 0xff ;\n * ptr ++ = rep -> length & 0xff ;\n * ptr ++ = 0 ;\n * ptr ++ = 1 ;\n * ptr ++ = ( ap_rep . length >> 8 ) & 0xff ;\n * ptr ++ = ap_rep . length & 0xff ;\n if ( ap_rep . length ) {\n memcpy ( ptr , ap_rep . data , ap_rep . length ) ;\n ptr += ap_rep . length ;\n }\n memcpy ( ptr , cipher . data , cipher . length ) ;\n bailout : krb5_auth_con_free ( context , auth_context ) ;\n krb5_free_principal ( context , changepw ) ;\n krb5_free_ticket ( context , ticket ) ;\n free ( ap_rep . data ) ;\n free ( clear . data ) ;\n free ( cipher . data ) ;\n krb5_free_principal ( context , target ) ;\n krb5_free_unparsed_name ( context , targetstr ) ;\n krb5_free_unparsed_name ( context , clientstr ) ;\n krb5_free_error_message ( context , errmsg ) ;\n return ret ;\n }"}
{"idx": 19488, "target": 0, "func": "static __always_inline __u16 __swab16p ( const __u16 * p ) {\n # ifdef __arch_swab16p return __arch_swab16p ( p ) ;\n # else return __swab16 ( * p ) ;\n # endif }"}
{"idx": 19489, "target": 0, "func": "static void test_bug6761 ( void ) {\n const char * stmt_text ;\n MYSQL_RES * res ;\n int rc ;\n myheader ( \"test_bug6761\" ) ;\n stmt_text = \"CREATE TABLE t1 (a int, b char(255), c decimal)\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n res = mysql_list_fields ( mysql , \"t1\" , \"%\" ) ;\n DIE_UNLESS ( res && mysql_num_fields ( res ) == 3 ) ;\n mysql_free_result ( res ) ;\n stmt_text = \"DROP TABLE t1\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n }"}
{"idx": 19490, "target": 0, "func": "jpc_pchglist_t * jpc_pchglist_copy ( jpc_pchglist_t * pchglist ) {\n jpc_pchglist_t * newpchglist ;\n jpc_pchg_t * newpchg ;\n int pchgno ;\n if ( ! ( newpchglist = jpc_pchglist_create ( ) ) ) {\n return 0 ;\n }\n for ( pchgno = 0 ;\n pchgno < pchglist -> numpchgs ;\n ++ pchgno ) {\n if ( ! ( newpchg = jpc_pchg_copy ( pchglist -> pchgs [ pchgno ] ) ) || jpc_pchglist_insert ( newpchglist , - 1 , newpchg ) ) {\n jpc_pchglist_destroy ( newpchglist ) ;\n return 0 ;\n }\n }\n return newpchglist ;\n }"}
{"idx": 19491, "target": 1, "func": "static int decode_slice ( AVCodecContext * avctx , void * tdata ) {\n ProresThreadData * td = tdata ;\n ProresContext * ctx = avctx -> priv_data ;\n int mb_x_pos = td -> x_pos ;\n int mb_y_pos = td -> y_pos ;\n int pic_num = ctx -> pic_num ;\n int slice_num = td -> slice_num ;\n int mbs_per_slice = td -> slice_width ;\n const uint8_t * buf ;\n uint8_t * y_data , * u_data , * v_data ;\n AVFrame * pic = avctx -> coded_frame ;\n int i , sf , slice_width_factor ;\n int slice_data_size , hdr_size , y_data_size , u_data_size , v_data_size ;\n int y_linesize , u_linesize , v_linesize ;\n buf = ctx -> slice_data [ slice_num ] . index ;\n slice_data_size = ctx -> slice_data [ slice_num + 1 ] . index - buf ;\n slice_width_factor = av_log2 ( mbs_per_slice ) ;\n y_data = pic -> data [ 0 ] ;\n u_data = pic -> data [ 1 ] ;\n v_data = pic -> data [ 2 ] ;\n y_linesize = pic -> linesize [ 0 ] ;\n u_linesize = pic -> linesize [ 1 ] ;\n v_linesize = pic -> linesize [ 2 ] ;\n if ( pic -> interlaced_frame ) {\n if ( ! ( pic_num ^ pic -> top_field_first ) ) {\n y_data += y_linesize ;\n u_data += u_linesize ;\n v_data += v_linesize ;\n }\n y_linesize <<= 1 ;\n u_linesize <<= 1 ;\n v_linesize <<= 1 ;\n }\n if ( slice_data_size < 6 ) {\n av_log ( avctx , AV_LOG_ERROR , \"slice data too small\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n hdr_size = buf [ 0 ] >> 3 ;\n y_data_size = AV_RB16 ( buf + 2 ) ;\n u_data_size = AV_RB16 ( buf + 4 ) ;\n v_data_size = hdr_size > 7 ? AV_RB16 ( buf + 6 ) : slice_data_size - y_data_size - u_data_size - hdr_size ;\n if ( hdr_size + y_data_size + u_data_size + v_data_size > slice_data_size || v_data_size < 0 || hdr_size < 6 ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid data size\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n sf = av_clip ( buf [ 1 ] , 1 , 224 ) ;\n sf = sf > 128 ? ( sf - 96 ) << 2 : sf ;\n if ( ctx -> qmat_changed || sf != td -> prev_slice_sf ) {\n td -> prev_slice_sf = sf ;\n for ( i = 0 ;\n i < 64 ;\n i ++ ) {\n td -> qmat_luma_scaled [ ctx -> dsp . idct_permutation [ i ] ] = ctx -> qmat_luma [ i ] * sf ;\n td -> qmat_chroma_scaled [ ctx -> dsp . idct_permutation [ i ] ] = ctx -> qmat_chroma [ i ] * sf ;\n }\n }\n decode_slice_plane ( ctx , td , buf + hdr_size , y_data_size , ( uint16_t * ) ( y_data + ( mb_y_pos << 4 ) * y_linesize + ( mb_x_pos << 5 ) ) , y_linesize , mbs_per_slice , 4 , slice_width_factor + 2 , td -> qmat_luma_scaled , 0 ) ;\n decode_slice_plane ( ctx , td , buf + hdr_size + y_data_size , u_data_size , ( uint16_t * ) ( u_data + ( mb_y_pos << 4 ) * u_linesize + ( mb_x_pos << ctx -> mb_chroma_factor ) ) , u_linesize , mbs_per_slice , ctx -> num_chroma_blocks , slice_width_factor + ctx -> chroma_factor - 1 , td -> qmat_chroma_scaled , 1 ) ;\n decode_slice_plane ( ctx , td , buf + hdr_size + y_data_size + u_data_size , v_data_size , ( uint16_t * ) ( v_data + ( mb_y_pos << 4 ) * v_linesize + ( mb_x_pos << ctx -> mb_chroma_factor ) ) , v_linesize , mbs_per_slice , ctx -> num_chroma_blocks , slice_width_factor + ctx -> chroma_factor - 1 , td -> qmat_chroma_scaled , 1 ) ;\n return 0 ;\n }"}
{"idx": 19492, "target": 0, "func": "static char * getTableName ( int reset ) {\n static MYSQL_RES * res = NULL ;\n MYSQL_ROW row ;\n if ( ! res ) {\n if ( ! ( res = mysql_list_tables ( mysql , NullS ) ) ) return ( NULL ) ;\n }\n if ( ( row = mysql_fetch_row ( res ) ) ) return ( ( char * ) row [ 0 ] ) ;\n if ( reset ) mysql_data_seek ( res , 0 ) ;\n else {\n mysql_free_result ( res ) ;\n res = NULL ;\n }\n return ( NULL ) ;\n }"}
{"idx": 19493, "target": 0, "func": "enum nss_status _nss_nis_getaliasbyname_r ( const char * name , struct aliasent * alias , char * buffer , size_t buflen , int * errnop ) {\n if ( name == NULL ) {\n * errnop = EINVAL ;\n return NSS_STATUS_UNAVAIL ;\n }\n char * domain ;\n if ( __builtin_expect ( yp_get_default_domain ( & domain ) , 0 ) ) return NSS_STATUS_UNAVAIL ;\n size_t namlen = strlen ( name ) ;\n char * name2 ;\n int use_alloca = __libc_use_alloca ( namlen + 1 ) ;\n if ( use_alloca ) name2 = __alloca ( namlen + 1 ) ;\n else {\n name2 = malloc ( namlen + 1 ) ;\n if ( name2 == NULL ) {\n * errnop = ENOMEM ;\n return NSS_STATUS_TRYAGAIN ;\n }\n }\n size_t i ;\n for ( i = 0 ;\n i < namlen ;\n ++ i ) name2 [ i ] = _tolower ( name [ i ] ) ;\n name2 [ i ] = '\\0' ;\n char * result ;\n int len ;\n int yperr = yp_match ( domain , \"mail.aliases\" , name2 , namlen , & result , & len ) ;\n if ( ! use_alloca ) free ( name2 ) ;\n if ( __builtin_expect ( yperr != YPERR_SUCCESS , 0 ) ) {\n enum nss_status retval = yperr2nss ( yperr ) ;\n if ( retval == NSS_STATUS_TRYAGAIN ) * errnop = errno ;\n return retval ;\n }\n if ( __builtin_expect ( ( size_t ) ( len + 1 ) > buflen , 0 ) ) {\n free ( result ) ;\n * errnop = ERANGE ;\n return NSS_STATUS_TRYAGAIN ;\n }\n char * p = strncpy ( buffer , result , len ) ;\n buffer [ len ] = '\\0' ;\n while ( isspace ( * p ) ) ++ p ;\n free ( result ) ;\n alias -> alias_local = 0 ;\n int parse_res = _nss_nis_parse_aliasent ( name , p , alias , buffer , buflen , errnop ) ;\n if ( __builtin_expect ( parse_res < 1 , 0 ) ) {\n if ( parse_res == - 1 ) return NSS_STATUS_TRYAGAIN ;\n else return NSS_STATUS_NOTFOUND ;\n }\n return NSS_STATUS_SUCCESS ;\n }"}
{"idx": 19494, "target": 0, "func": "METHOD ( certificate_t , has_subject , id_match_t , private_x509_cert_t * this , identification_t * subject ) {\n identification_t * current ;\n enumerator_t * enumerator ;\n id_match_t match , best ;\n chunk_t encoding ;\n if ( subject -> get_type ( subject ) == ID_KEY_ID ) {\n encoding = subject -> get_encoding ( subject ) ;\n if ( this -> encoding_hash . len && chunk_equals ( this -> encoding_hash , encoding ) ) {\n return ID_MATCH_PERFECT ;\n }\n if ( this -> subjectKeyIdentifier . len && chunk_equals ( this -> subjectKeyIdentifier , encoding ) ) {\n return ID_MATCH_PERFECT ;\n }\n if ( this -> public_key && this -> public_key -> has_fingerprint ( this -> public_key , encoding ) ) {\n return ID_MATCH_PERFECT ;\n }\n if ( chunk_equals ( this -> serialNumber , encoding ) ) {\n return ID_MATCH_PERFECT ;\n }\n }\n best = this -> subject -> matches ( this -> subject , subject ) ;\n enumerator = this -> subjectAltNames -> create_enumerator ( this -> subjectAltNames ) ;\n while ( enumerator -> enumerate ( enumerator , & current ) ) {\n match = current -> matches ( current , subject ) ;\n if ( match > best ) {\n best = match ;\n }\n }\n enumerator -> destroy ( enumerator ) ;\n return best ;\n }"}
{"idx": 19495, "target": 0, "func": "int ff_h264_fill_default_ref_list ( H264Context * h ) {\n int i , len ;\n if ( h -> slice_type_nos == AV_PICTURE_TYPE_B ) {\n Picture * sorted [ 32 ] ;\n int cur_poc , list ;\n int lens [ 2 ] ;\n if ( FIELD_PICTURE ) cur_poc = h -> cur_pic_ptr -> field_poc [ h -> picture_structure == PICT_BOTTOM_FIELD ] ;\n else cur_poc = h -> cur_pic_ptr -> poc ;\n for ( list = 0 ;\n list < 2 ;\n list ++ ) {\n len = add_sorted ( sorted , h -> short_ref , h -> short_ref_count , cur_poc , 1 ^ list ) ;\n len += add_sorted ( sorted + len , h -> short_ref , h -> short_ref_count , cur_poc , 0 ^ list ) ;\n assert ( len <= 32 ) ;\n len = build_def_list ( h -> default_ref_list [ list ] , sorted , len , 0 , h -> picture_structure ) ;\n len += build_def_list ( h -> default_ref_list [ list ] + len , h -> long_ref , 16 , 1 , h -> picture_structure ) ;\n assert ( len <= 32 ) ;\n if ( len < h -> ref_count [ list ] ) memset ( & h -> default_ref_list [ list ] [ len ] , 0 , sizeof ( Picture ) * ( h -> ref_count [ list ] - len ) ) ;\n lens [ list ] = len ;\n }\n if ( lens [ 0 ] == lens [ 1 ] && lens [ 1 ] > 1 ) {\n for ( i = 0 ;\n h -> default_ref_list [ 0 ] [ i ] . f . data [ 0 ] == h -> default_ref_list [ 1 ] [ i ] . f . data [ 0 ] && i < lens [ 0 ] ;\n i ++ ) ;\n if ( i == lens [ 0 ] ) {\n Picture tmp ;\n COPY_PICTURE ( & tmp , & h -> default_ref_list [ 1 ] [ 0 ] ) ;\n COPY_PICTURE ( & h -> default_ref_list [ 1 ] [ 0 ] , & h -> default_ref_list [ 1 ] [ 1 ] ) ;\n COPY_PICTURE ( & h -> default_ref_list [ 1 ] [ 1 ] , & tmp ) ;\n }\n }\n }\n else {\n len = build_def_list ( h -> default_ref_list [ 0 ] , h -> short_ref , h -> short_ref_count , 0 , h -> picture_structure ) ;\n len += build_def_list ( h -> default_ref_list [ 0 ] + len , h -> long_ref , 16 , 1 , h -> picture_structure ) ;\n assert ( len <= 32 ) ;\n if ( len < h -> ref_count [ 0 ] ) memset ( & h -> default_ref_list [ 0 ] [ len ] , 0 , sizeof ( Picture ) * ( h -> ref_count [ 0 ] - len ) ) ;\n }\n # ifdef TRACE for ( i = 0 ;\n i < h -> ref_count [ 0 ] ;\n i ++ ) {\n tprintf ( h -> avctx , \"List0: %s fn:%d 0x%p\\n\" , ( h -> default_ref_list [ 0 ] [ i ] . long_ref ? \"LT\" : \"ST\" ) , h -> default_ref_list [ 0 ] [ i ] . pic_id , h -> default_ref_list [ 0 ] [ i ] . f . data [ 0 ] ) ;\n }\n if ( h -> slice_type_nos == AV_PICTURE_TYPE_B ) {\n for ( i = 0 ;\n i < h -> ref_count [ 1 ] ;\n i ++ ) {\n tprintf ( h -> avctx , \"List1: %s fn:%d 0x%p\\n\" , ( h -> default_ref_list [ 1 ] [ i ] . long_ref ? \"LT\" : \"ST\" ) , h -> default_ref_list [ 1 ] [ i ] . pic_id , h -> default_ref_list [ 1 ] [ i ] . f . data [ 0 ] ) ;\n }\n }\n # endif return 0 ;\n }"}
{"idx": 19496, "target": 0, "func": "static int want_object_in_pack ( const unsigned char * sha1 , int exclude , struct packed_git * * found_pack , off_t * found_offset ) {\n struct packed_git * p ;\n if ( ! exclude && local && has_loose_object_nonlocal ( sha1 ) ) return 0 ;\n * found_pack = NULL ;\n * found_offset = 0 ;\n for ( p = packed_git ;\n p ;\n p = p -> next ) {\n off_t offset = find_pack_entry_one ( sha1 , p ) ;\n if ( offset ) {\n if ( ! * found_pack ) {\n if ( ! is_pack_valid ( p ) ) continue ;\n * found_offset = offset ;\n * found_pack = p ;\n }\n if ( exclude ) return 1 ;\n if ( incremental ) return 0 ;\n if ( local && ! p -> pack_local ) return 0 ;\n if ( ignore_packed_keep && p -> pack_local && p -> pack_keep ) return 0 ;\n }\n }\n return 1 ;\n }"}
{"idx": 19497, "target": 0, "func": "TSAction TSHostLookup ( TSCont contp , const char * hostname , size_t namelen ) {\n sdk_assert ( sdk_sanity_check_continuation ( contp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) hostname ) == TS_SUCCESS ) ;\n sdk_assert ( namelen > 0 ) ;\n FORCE_PLUGIN_SCOPED_MUTEX ( contp ) ;\n INKContInternal * i = ( INKContInternal * ) contp ;\n return ( TSAction ) hostDBProcessor . getbyname_re ( i , hostname , namelen ) ;\n }"}
{"idx": 19498, "target": 0, "func": "void do_eval ( DYNAMIC_STRING * query_eval , const char * query , const char * query_end , my_bool pass_through_escape_chars ) {\n const char * p ;\n register char c , next_c ;\n register int escaped = 0 ;\n VAR * v ;\n DBUG_ENTER ( \"do_eval\" ) ;\n for ( p = query ;\n ( c = * p ) && p < query_end ;\n ++ p ) {\n switch ( c ) {\n case '$' : if ( escaped ) {\n escaped = 0 ;\n dynstr_append_mem ( query_eval , p , 1 ) ;\n }\n else {\n if ( ! ( v = var_get ( p , & p , 0 , 0 ) ) ) {\n report_or_die ( \"Bad variable in eval\" ) ;\n return ;\n }\n dynstr_append_mem ( query_eval , v -> str_val , v -> str_val_len ) ;\n }\n break ;\n case '\\\\' : next_c = * ( p + 1 ) ;\n if ( escaped ) {\n escaped = 0 ;\n dynstr_append_mem ( query_eval , p , 1 ) ;\n }\n else if ( next_c == '\\\\' || next_c == '$' || next_c == '\"' ) {\n escaped = 1 ;\n if ( pass_through_escape_chars ) {\n dynstr_append_mem ( query_eval , p , 1 ) ;\n }\n }\n else dynstr_append_mem ( query_eval , p , 1 ) ;\n break ;\n default : escaped = 0 ;\n dynstr_append_mem ( query_eval , p , 1 ) ;\n break ;\n }\n }\n # ifdef __WIN__ fix_win_paths ( query_eval -> str , query_eval -> length ) ;\n # endif DBUG_VOID_RETURN ;\n }"}
{"idx": 19499, "target": 0, "func": "void * TSHttpSsnSSLConnectionGet ( TSHttpSsn ssnp ) {\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) ssnp ) == TS_SUCCESS ) ;\n ProxyClientSession * cs = reinterpret_cast < ProxyClientSession * > ( ssnp ) ;\n if ( cs == nullptr ) {\n return nullptr ;\n }\n SSLNetVConnection * ssl_vc = dynamic_cast < SSLNetVConnection * > ( cs -> get_netvc ( ) ) ;\n if ( ssl_vc == nullptr ) {\n return nullptr ;\n }\n return ( void * ) ssl_vc -> ssl ;\n }"}
{"idx": 19500, "target": 0, "func": "void kvm_put_apicbase ( X86CPU * cpu , uint64_t value ) {\n int ret ;\n ret = kvm_put_one_msr ( cpu , MSR_IA32_APICBASE , value ) ;\n assert ( ret == 1 ) ;\n }"}
{"idx": 19501, "target": 1, "func": "static void evhttp_connection_done ( struct evhttp_connection * evcon ) {\n struct evhttp_request * req = TAILQ_FIRST ( & evcon -> requests ) ;\n int con_outgoing = evcon -> flags & EVHTTP_CON_OUTGOING ;\n if ( con_outgoing ) {\n int need_close ;\n TAILQ_REMOVE ( & evcon -> requests , req , next ) ;\n req -> evcon = NULL ;\n evcon -> state = EVCON_IDLE ;\n need_close = evhttp_is_connection_close ( req -> flags , req -> input_headers ) || evhttp_is_connection_close ( req -> flags , req -> output_headers ) ;\n if ( need_close ) evhttp_connection_reset ( evcon ) ;\n if ( TAILQ_FIRST ( & evcon -> requests ) != NULL ) {\n if ( ! evhttp_connected ( evcon ) ) evhttp_connection_connect ( evcon ) ;\n else evhttp_request_dispatch ( evcon ) ;\n }\n else if ( ! need_close ) {\n evhttp_connection_start_detectclose ( evcon ) ;\n }\n }\n else {\n evcon -> state = EVCON_WRITING ;\n }\n ( * req -> cb ) ( req , req -> cb_arg ) ;\n if ( con_outgoing ) {\n evhttp_request_free ( req ) ;\n }\n }"}
{"idx": 19502, "target": 0, "func": "int ff_h264_execute_ref_pic_marking ( H264Context * h , MMCO * mmco , int mmco_count ) {\n int i , av_uninit ( j ) ;\n int current_ref_assigned = 0 , err = 0 ;\n Picture * av_uninit ( pic ) ;\n if ( ( h -> avctx -> debug & FF_DEBUG_MMCO ) && mmco_count == 0 ) av_log ( h -> avctx , AV_LOG_DEBUG , \"no mmco here\\n\" ) ;\n for ( i = 0 ;\n i < mmco_count ;\n i ++ ) {\n int av_uninit ( structure ) , av_uninit ( frame_num ) ;\n if ( h -> avctx -> debug & FF_DEBUG_MMCO ) av_log ( h -> avctx , AV_LOG_DEBUG , \"mmco:%d %d %d\\n\" , h -> mmco [ i ] . opcode , h -> mmco [ i ] . short_pic_num , h -> mmco [ i ] . long_arg ) ;\n if ( mmco [ i ] . opcode == MMCO_SHORT2UNUSED || mmco [ i ] . opcode == MMCO_SHORT2LONG ) {\n frame_num = pic_num_extract ( h , mmco [ i ] . short_pic_num , & structure ) ;\n pic = find_short ( h , frame_num , & j ) ;\n if ( ! pic ) {\n if ( mmco [ i ] . opcode != MMCO_SHORT2LONG || ! h -> long_ref [ mmco [ i ] . long_arg ] || h -> long_ref [ mmco [ i ] . long_arg ] -> frame_num != frame_num ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"mmco: unref short failure\\n\" ) ;\n err = AVERROR_INVALIDDATA ;\n }\n continue ;\n }\n }\n switch ( mmco [ i ] . opcode ) {\n case MMCO_SHORT2UNUSED : if ( h -> avctx -> debug & FF_DEBUG_MMCO ) av_log ( h -> avctx , AV_LOG_DEBUG , \"mmco: unref short %d count %d\\n\" , h -> mmco [ i ] . short_pic_num , h -> short_ref_count ) ;\n remove_short ( h , frame_num , structure ^ PICT_FRAME ) ;\n break ;\n case MMCO_SHORT2LONG : if ( h -> long_ref [ mmco [ i ] . long_arg ] != pic ) remove_long ( h , mmco [ i ] . long_arg , 0 ) ;\n remove_short_at_index ( h , j ) ;\n h -> long_ref [ mmco [ i ] . long_arg ] = pic ;\n if ( h -> long_ref [ mmco [ i ] . long_arg ] ) {\n h -> long_ref [ mmco [ i ] . long_arg ] -> long_ref = 1 ;\n h -> long_ref_count ++ ;\n }\n break ;\n case MMCO_LONG2UNUSED : j = pic_num_extract ( h , mmco [ i ] . long_arg , & structure ) ;\n pic = h -> long_ref [ j ] ;\n if ( pic ) {\n remove_long ( h , j , structure ^ PICT_FRAME ) ;\n }\n else if ( h -> avctx -> debug & FF_DEBUG_MMCO ) av_log ( h -> avctx , AV_LOG_DEBUG , \"mmco: unref long failure\\n\" ) ;\n break ;\n case MMCO_LONG : if ( h -> long_ref [ mmco [ i ] . long_arg ] != h -> cur_pic_ptr ) {\n remove_long ( h , mmco [ i ] . long_arg , 0 ) ;\n h -> long_ref [ mmco [ i ] . long_arg ] = h -> cur_pic_ptr ;\n h -> long_ref [ mmco [ i ] . long_arg ] -> long_ref = 1 ;\n h -> long_ref_count ++ ;\n }\n h -> cur_pic_ptr -> reference |= h -> picture_structure ;\n current_ref_assigned = 1 ;\n break ;\n case MMCO_SET_MAX_LONG : assert ( mmco [ i ] . long_arg <= 16 ) ;\n for ( j = mmco [ i ] . long_arg ;\n j < 16 ;\n j ++ ) {\n remove_long ( h , j , 0 ) ;\n }\n break ;\n case MMCO_RESET : while ( h -> short_ref_count ) {\n remove_short ( h , h -> short_ref [ 0 ] -> frame_num , 0 ) ;\n }\n for ( j = 0 ;\n j < 16 ;\n j ++ ) {\n remove_long ( h , j , 0 ) ;\n }\n h -> frame_num = h -> cur_pic_ptr -> frame_num = 0 ;\n h -> mmco_reset = 1 ;\n h -> cur_pic_ptr -> mmco_reset = 1 ;\n break ;\n default : assert ( 0 ) ;\n }\n }\n if ( ! current_ref_assigned ) {\n if ( h -> short_ref_count && h -> short_ref [ 0 ] == h -> cur_pic_ptr ) {\n h -> cur_pic_ptr -> reference = PICT_FRAME ;\n }\n else if ( h -> cur_pic_ptr -> long_ref ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"illegal short term reference \" \"assignment for second field \" \"in complementary field pair \" \"(first field is long term)\\n\" ) ;\n err = AVERROR_INVALIDDATA ;\n }\n else {\n pic = remove_short ( h , h -> cur_pic_ptr -> frame_num , 0 ) ;\n if ( pic ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"illegal short term buffer state detected\\n\" ) ;\n err = AVERROR_INVALIDDATA ;\n }\n if ( h -> short_ref_count ) memmove ( & h -> short_ref [ 1 ] , & h -> short_ref [ 0 ] , h -> short_ref_count * sizeof ( Picture * ) ) ;\n h -> short_ref [ 0 ] = h -> cur_pic_ptr ;\n h -> short_ref_count ++ ;\n h -> cur_pic_ptr -> reference |= h -> picture_structure ;\n }\n }\n if ( h -> long_ref_count + h -> short_ref_count - ( h -> short_ref [ 0 ] == h -> cur_pic_ptr ) > h -> sps . ref_frame_count ) {\n av_log ( h -> avctx , AV_LOG_ERROR , \"number of reference frames (%d+%d) exceeds max (%d;\n probably \" \"corrupt input), discarding one\\n\" , h -> long_ref_count , h -> short_ref_count , h -> sps . ref_frame_count ) ;\n err = AVERROR_INVALIDDATA ;\n if ( h -> long_ref_count && ! h -> short_ref_count ) {\n for ( i = 0 ;\n i < 16 ;\n ++ i ) if ( h -> long_ref [ i ] ) break ;\n assert ( i < 16 ) ;\n remove_long ( h , i , 0 ) ;\n }\n else {\n pic = h -> short_ref [ h -> short_ref_count - 1 ] ;\n remove_short ( h , pic -> frame_num , 0 ) ;\n }\n }\n print_short_term ( h ) ;\n print_long_term ( h ) ;\n return ( h -> avctx -> err_recognition & AV_EF_EXPLODE ) ? err : 0 ;\n }"}
{"idx": 19503, "target": 0, "func": "static void dumpcmap ( struct alltabs * at , SplineFont * sf , enum fontformat format ) {\n int i , enccnt , issmall , hasmac ;\n uint16 table [ 256 ] ;\n SplineChar * sc ;\n int alreadyprivate = false ;\n int wasotf = format == ff_otf || format == ff_otfcid ;\n EncMap * map = at -> map ;\n int ucs4len = 0 , ucs2len = 0 , cjklen = 0 , applecjklen = 0 , vslen = 0 ;\n FILE * format12 , * format4 , * format2 , * apple2 , * format14 ;\n int mspos , ucs4pos , cjkpos , applecjkpos , vspos , start_of_macroman ;\n int modformat = format ;\n if ( ( format >= ff_ttf && format <= ff_otfdfont ) && ( at -> gi . flags & ttf_flag_symbol ) ) modformat = ff_ttfsym ;\n at -> cmap = tmpfile ( ) ;\n memset ( table , '\\0' , sizeof ( table ) ) ;\n if ( ! wasotf ) {\n table [ 29 ] = table [ 8 ] = table [ 0 ] = 1 ;\n table [ 9 ] = table [ 13 ] = 2 ;\n }\n for ( i = 0 ;\n i < 256 ;\n ++ i ) {\n sc = SFGetChar ( sf , MacRomanEnc [ i ] , NULL ) ;\n if ( sc != NULL && sc -> ttf_glyph != - 1 ) table [ i ] = sc -> ttf_glyph ;\n }\n if ( table [ 0 ] == 0 ) table [ 0 ] = 1 ;\n if ( modformat == ff_ttfsym ) {\n alreadyprivate = AlreadyMSSymbolArea ( sf , map ) ;\n memset ( table , '\\0' , sizeof ( table ) ) ;\n if ( ! wasotf ) {\n table [ 29 ] = table [ 8 ] = table [ 0 ] = 1 ;\n table [ 9 ] = table [ 13 ] = 2 ;\n }\n if ( ! alreadyprivate ) {\n for ( i = 0 ;\n i < map -> enccount && i < 256 ;\n ++ i ) {\n if ( map -> map [ i ] != - 1 && ( sc = sf -> glyphs [ map -> map [ i ] ] ) != NULL && sc -> ttf_glyph != - 1 ) table [ i ] = sc -> ttf_glyph ;\n }\n for ( i = 0xf020 ;\n i <= 0xf0ff && i < sf -> glyphcnt ;\n ++ i ) {\n if ( map -> map [ i ] != - 1 && ( sc = sf -> glyphs [ map -> map [ i ] ] ) != NULL && sc -> ttf_glyph != - 1 && table [ i - 0xf000 ] == 0 ) table [ i - 0xf000 ] = sc -> ttf_glyph ;\n }\n }\n else {\n for ( i = 0xf020 ;\n i <= 0xf0ff && i < sf -> glyphcnt ;\n ++ i ) {\n if ( map -> map [ i ] != - 1 && ( sc = sf -> glyphs [ map -> map [ i ] ] ) != NULL && sc -> ttf_glyph != - 1 ) table [ i - 0xf000 ] = sc -> ttf_glyph ;\n }\n for ( i = 0 ;\n i < map -> enccount && i < 256 ;\n ++ i ) {\n if ( map -> map [ i ] != - 1 && ( sc = sf -> glyphs [ map -> map [ i ] ] ) != NULL && sc -> ttf_glyph != - 1 && table [ i ] == 0 ) table [ i ] = sc -> ttf_glyph ;\n }\n }\n if ( ! alreadyprivate ) {\n for ( i = 0 ;\n i < map -> enccount && i < 256 ;\n ++ i ) {\n if ( map -> map [ i ] != - 1 && ( sc = sf -> glyphs [ map -> map [ i ] ] ) != NULL ) {\n sc -> orig_pos = sc -> unicodeenc ;\n sc -> unicodeenc = 0xf000 + i ;\n }\n }\n for ( ;\n i < map -> enccount ;\n ++ i ) {\n if ( map -> map [ i ] != - 1 && ( sc = sf -> glyphs [ map -> map [ i ] ] ) != NULL ) {\n sc -> orig_pos = sc -> unicodeenc ;\n sc -> unicodeenc = - 1 ;\n }\n }\n }\n }\n format4 = NeedsUCS2Table ( sf , & ucs2len , map , modformat == ff_ttfsym ) ;\n apple2 = NULL ;\n if ( modformat != ff_ttfsym ) {\n format12 = NeedsUCS4Table ( sf , & ucs4len , map ) ;\n format2 = Needs816Enc ( sf , & cjklen , map , & apple2 , & applecjklen ) ;\n format14 = NeedsVariationSequenceTable ( sf , & vslen ) ;\n }\n else format12 = format2 = format14 = apple2 = NULL ;\n if ( modformat == ff_ttfsym ) {\n enccnt = 2 ;\n hasmac = 0 ;\n }\n else {\n hasmac = 1 ;\n enccnt = 3 ;\n if ( format12 != NULL ) enccnt = 5 ;\n if ( format2 != NULL ) {\n if ( strstrmatch ( map -> enc -> enc_name , \"johab\" ) != NULL ) {\n ++ enccnt ;\n }\n else {\n enccnt += 2 ;\n hasmac = 3 ;\n }\n }\n if ( format14 != NULL ) ++ enccnt ;\n }\n putshort ( at -> cmap , 0 ) ;\n putshort ( at -> cmap , enccnt ) ;\n mspos = 2 * sizeof ( uint16 ) + enccnt * ( 2 * sizeof ( uint16 ) + sizeof ( uint32 ) ) ;\n ucs4pos = mspos + ucs2len ;\n cjkpos = ucs4pos + ucs4len ;\n if ( apple2 == NULL ) {\n applecjkpos = cjkpos ;\n applecjklen = cjklen ;\n }\n else applecjkpos = cjkpos + cjklen ;\n vspos = applecjkpos + applecjklen ;\n start_of_macroman = vspos + vslen ;\n if ( hasmac & 1 ) {\n putshort ( at -> cmap , 0 ) ;\n putshort ( at -> cmap , 3 ) ;\n putlong ( at -> cmap , mspos ) ;\n }\n if ( format12 != NULL ) {\n putshort ( at -> cmap , 0 ) ;\n putshort ( at -> cmap , 4 ) ;\n putlong ( at -> cmap , ucs4pos ) ;\n }\n if ( format14 != NULL ) {\n putshort ( at -> cmap , 0 ) ;\n putshort ( at -> cmap , 5 ) ;\n putlong ( at -> cmap , vspos ) ;\n }\n putshort ( at -> cmap , 1 ) ;\n putshort ( at -> cmap , 0 ) ;\n putlong ( at -> cmap , start_of_macroman ) ;\n if ( format2 != NULL && ( hasmac & 2 ) ) {\n putshort ( at -> cmap , 1 ) ;\n putshort ( at -> cmap , map -> enc -> is_japanese || sf -> uni_interp == ui_japanese ? 1 : map -> enc -> is_korean || sf -> uni_interp == ui_korean ? 3 : map -> enc -> is_simplechinese || sf -> uni_interp == ui_simp_chinese ? 25 : ) ;\n putlong ( at -> cmap , applecjkpos ) ;\n }\n putshort ( at -> cmap , 3 ) ;\n putshort ( at -> cmap , modformat == ff_ttfsym ? 0 : ) ;\n putlong ( at -> cmap , mspos ) ;\n if ( format2 != NULL ) {\n putshort ( at -> cmap , 3 ) ;\n putshort ( at -> cmap , strstrmatch ( map -> enc -> enc_name , \"johab\" ) != NULL ? 6 : map -> enc -> is_korean || sf -> uni_interp == ui_korean ? 5 : map -> enc -> is_japanese || sf -> uni_interp == ui_japanese ? 2 : map -> enc -> is_simplechinese || sf -> uni_interp == ui_simp_chinese ? 3 : 4 ) ;\n putlong ( at -> cmap , cjkpos ) ;\n }\n if ( format12 != NULL ) {\n putshort ( at -> cmap , 3 ) ;\n putshort ( at -> cmap , 10 ) ;\n putlong ( at -> cmap , ucs4pos ) ;\n }\n if ( format4 != NULL ) {\n if ( ! ttfcopyfile ( at -> cmap , format4 , mspos , \"cmap-Unicode16\" ) ) at -> error = true ;\n }\n if ( format12 != NULL ) {\n if ( ! ttfcopyfile ( at -> cmap , format12 , ucs4pos , \"cmap-Unicode32\" ) ) at -> error = true ;\n }\n if ( format2 != NULL ) {\n if ( ! ttfcopyfile ( at -> cmap , format2 , cjkpos , \"cmap-cjk\" ) ) at -> error = true ;\n }\n if ( apple2 != NULL ) {\n if ( ! ttfcopyfile ( at -> cmap , apple2 , applecjkpos , \"cmap-applecjk\" ) ) at -> error = true ;\n }\n if ( format14 != NULL ) {\n if ( ! ttfcopyfile ( at -> cmap , format14 , vspos , \"cmap-uniVariations\" ) ) at -> error = true ;\n }\n issmall = true ;\n for ( i = 0 ;\n i < 256 ;\n ++ i ) if ( table [ i ] >= 256 ) {\n issmall = false ;\n break ;\n }\n if ( issmall ) {\n putshort ( at -> cmap , 0 ) ;\n putshort ( at -> cmap , 262 ) ;\n putshort ( at -> cmap , 0 ) ;\n for ( i = 0 ;\n i < 256 ;\n ++ i ) putc ( table [ i ] , at -> cmap ) ;\n }\n else {\n putshort ( at -> cmap , 6 ) ;\n putshort ( at -> cmap , 522 ) ;\n putshort ( at -> cmap , 0 ) ;\n putshort ( at -> cmap , 0 ) ;\n putshort ( at -> cmap , 256 ) ;\n for ( i = 0 ;\n i < 256 ;\n ++ i ) putshort ( at -> cmap , table [ i ] ) ;\n }\n at -> cmaplen = ftell ( at -> cmap ) ;\n if ( ( at -> cmaplen & 2 ) != 0 ) putshort ( at -> cmap , 0 ) ;\n if ( modformat == ff_ttfsym ) {\n if ( ! alreadyprivate ) {\n for ( i = 0 ;\n i < sf -> glyphcnt ;\n ++ i ) if ( sf -> glyphs [ i ] != NULL ) {\n sf -> glyphs [ i ] -> unicodeenc = sf -> glyphs [ i ] -> orig_pos ;\n sf -> glyphs [ i ] -> orig_pos = i ;\n }\n }\n }\n }"}
{"idx": 19504, "target": 0, "func": "static void * bamboo_load_device_tree ( target_phys_addr_t addr , uint32_t ramsize , target_phys_addr_t initrd_base , target_phys_addr_t initrd_size , const char * kernel_cmdline ) {\n void * fdt = NULL ;\n # ifdef CONFIG_FDT uint32_t mem_reg_property [ ] = {\n 0 , 0 , ramsize }\n ;\n char * filename ;\n int fdt_size ;\n int ret ;\n filename = qemu_find_file ( QEMU_FILE_TYPE_BIOS , BINARY_DEVICE_TREE_FILE ) ;\n if ( ! filename ) {\n goto out ;\n }\n fdt = load_device_tree ( filename , & fdt_size ) ;\n qemu_free ( filename ) ;\n if ( fdt == NULL ) {\n goto out ;\n }\n ret = qemu_devtree_setprop ( fdt , \"/memory\" , \"reg\" , mem_reg_property , sizeof ( mem_reg_property ) ) ;\n if ( ret < 0 ) fprintf ( stderr , \"couldn't set /memory/reg\\n\" ) ;\n ret = qemu_devtree_setprop_cell ( fdt , \"/chosen\" , \"linux,initrd-start\" , initrd_base ) ;\n if ( ret < 0 ) fprintf ( stderr , \"couldn't set /chosen/linux,initrd-start\\n\" ) ;\n ret = qemu_devtree_setprop_cell ( fdt , \"/chosen\" , \"linux,initrd-end\" , ( initrd_base + initrd_size ) ) ;\n if ( ret < 0 ) fprintf ( stderr , \"couldn't set /chosen/linux,initrd-end\\n\" ) ;\n ret = qemu_devtree_setprop_string ( fdt , \"/chosen\" , \"bootargs\" , kernel_cmdline ) ;\n if ( ret < 0 ) fprintf ( stderr , \"couldn't set /chosen/bootargs\\n\" ) ;\n if ( kvm_enabled ( ) ) kvmppc_fdt_update ( fdt ) ;\n cpu_physical_memory_write ( addr , ( void * ) fdt , fdt_size ) ;\n out : # endif return fdt ;\n }"}
{"idx": 19505, "target": 1, "func": "GType hb_gobject_ ## name ## _get_type ( void ) \\ {\n static gsize type_id = 0 ;\n if ( g_once_init_enter ( & type_id ) ) {\n GType id = g_boxed_type_register_static ( g_intern_static_string ( \"hb_\" # name \"_t\" ) , ( GBoxedCopyFunc ) copy_func , ( GBoxedFreeFunc ) free_func ) ;\n g_once_init_leave ( & type_id , id ) ;\n }\n return type_id ;\n \\ }\n # define HB_DEFINE_OBJECT_TYPE ( name ) HB_DEFINE_BOXED_TYPE ( name , hb_ ## name ## _reference , hb_ ## name ## _destroy ) ;\n HB_DEFINE_OBJECT_TYPE ( buffer ) HB_DEFINE_OBJECT_TYPE ( blob ) HB_DEFINE_OBJECT_TYPE ( face ) HB_DEFINE_OBJECT_TYPE ( font ) HB_DEFINE_OBJECT_TYPE ( font_funcs ) HB_DEFINE_OBJECT_TYPE ( set ) HB_DEFINE_OBJECT_TYPE ( shape_plan ) HB_DEFINE_OBJECT_TYPE ( unicode_funcs ) static hb_feature_t * feature_reference ( hb_feature_t * g ) {\n hb_feature_t * c = ( hb_feature_t * ) calloc ( 1 , sizeof ( hb_feature_t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * g ;\n return c ;\n }\n static void feature_destroy ( hb_feature_t * g ) {\n free ( g ) ;\n }\n HB_DEFINE_BOXED_TYPE ( feature , feature_reference , feature_destroy ) static hb_glyph_info_t * glyph_info_reference ( hb_glyph_info_t * g ) {\n hb_glyph_info_t * c = ( hb_glyph_info_t * ) calloc ( 1 , sizeof ( hb_glyph_info_t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * g ;\n return c ;\n }\n static void glyph_info_destroy ( hb_glyph_info_t * g ) {\n free ( g ) ;\n }\n HB_DEFINE_BOXED_TYPE ( glyph_info , glyph_info_reference , glyph_info_destroy ) static hb_glyph_position_t * glyph_position_reference ( hb_glyph_position_t * g ) {\n hb_glyph_position_t * c = ( hb_glyph_position_t * ) calloc ( 1 , sizeof ( hb_glyph_position_t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * g ;\n return c ;\n }\n static void glyph_position_destroy ( hb_glyph_position_t * g ) {\n free ( g ) ;\n }\n HB_DEFINE_BOXED_TYPE ( glyph_position , glyph_position_reference , glyph_position_destroy ) static hb_segment_properties_t * segment_properties_reference ( hb_segment_properties_t * g ) {\n hb_segment_properties_t * c = ( hb_segment_properties_t * ) calloc ( 1 , sizeof ( hb_segment_properties_t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * g ;\n return c ;\n }\n static void segment_properties_destroy ( hb_segment_properties_t * g ) {\n free ( g ) ;\n }\n HB_DEFINE_BOXED_TYPE ( segment_properties , segment_properties_reference , segment_properties_destroy ) static hb_user_data_key_t user_data_key_reference ( hb_user_data_key_t l ) {\n return l ;\n }\n static void user_data_key_destroy ( hb_user_data_key_t l ) {\n }\n HB_DEFINE_BOXED_TYPE ( user_data_key , user_data_key_reference , user_data_key_destroy ) static hb_language_t * language_reference ( hb_language_t * l ) {\n hb_language_t * c = ( hb_language_t * ) calloc ( 1 , sizeof ( hb_language_t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * l ;\n return c ;\n }\n static void language_destroy ( hb_language_t * l ) {\n free ( l ) ;\n }\n HB_DEFINE_BOXED_TYPE ( language , language_reference , language_destroy )"}
{"idx": 19506, "target": 0, "func": "static int proc_resetep ( struct usb_dev_state * ps , void __user * arg ) {\n unsigned int ep ;\n int ret ;\n if ( get_user ( ep , ( unsigned int __user * ) arg ) ) return - EFAULT ;\n ret = findintfep ( ps -> dev , ep ) ;\n if ( ret < 0 ) return ret ;\n ret = checkintf ( ps , ret ) ;\n if ( ret ) return ret ;\n check_reset_of_active_ep ( ps -> dev , ep , \"RESETEP\" ) ;\n usb_reset_endpoint ( ps -> dev , ep ) ;\n return 0 ;\n }"}
{"idx": 19507, "target": 0, "func": "GHashTable * prplcb_ui_info ( ) {\n static GHashTable * ret ;\n if ( ret == NULL ) {\n ret = g_hash_table_new ( g_str_hash , g_str_equal ) ;\n g_hash_table_insert ( ret , \"name\" , \"BitlBee\" ) ;\n g_hash_table_insert ( ret , \"version\" , BITLBEE_VERSION ) ;\n }\n return ret ;\n }"}
{"idx": 19508, "target": 0, "func": "static void dtap_bcc_imm_setup ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n guint8 oct ;\n proto_tree * subtree ;\n curr_offset = offset ;\n curr_len = len ;\n oct = tvb_get_guint8 ( tvb , curr_offset ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , curr_offset << 3 , 4 , ENC_BIG_ENDIAN ) ;\n subtree = proto_tree_add_subtree ( tree , tvb , curr_offset , 1 , ett_gsm_common_elem [ DE_CIPH_KEY_SEQ_NUM ] , NULL , val_to_str_ext_const ( DE_CIPH_KEY_SEQ_NUM , & gsm_common_elem_strings_ext , \"\" ) ) ;\n proto_tree_add_bits_item ( subtree , hf_gsm_a_spare_bits , tvb , ( curr_offset << 3 ) + 4 , 1 , ENC_BIG_ENDIAN ) ;\n switch ( oct & 0x07 ) {\n case 0x07 : proto_tree_add_uint_format_value ( subtree , hf_gsm_a_dtap_ciphering_key_sequence_number , tvb , curr_offset , 1 , oct , \"No key is available\" ) ;\n break ;\n default : proto_tree_add_item ( subtree , hf_gsm_a_dtap_ciphering_key_sequence_number , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n break ;\n }\n curr_offset ++ ;\n curr_len -- ;\n ELEM_MAND_LV ( GSM_A_PDU_TYPE_COMMON , DE_MS_CM_2 , NULL ) ;\n ELEM_MAND_LV ( GSM_A_PDU_TYPE_COMMON , DE_MID , NULL ) ;\n ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_BCC_CALL_REF , \"(Broadcast identity)\" ) ;\n }"}
{"idx": 19509, "target": 0, "func": "static void remoteDispatchStringError ( remote_error * rerr , int code , const char * msg ) {\n virError verr ;\n memset ( & verr , 0 , sizeof verr ) ;\n verr . code = code ;\n verr . domain = VIR_FROM_REMOTE ;\n verr . message = ( char * ) msg ;\n verr . level = VIR_ERR_ERROR ;\n verr . str1 = ( char * ) msg ;\n remoteDispatchCopyError ( rerr , & verr ) ;\n }"}
{"idx": 19510, "target": 0, "func": "static int mpeg_decode_update_thread_context ( AVCodecContext * avctx , const AVCodecContext * avctx_from ) {\n Mpeg1Context * ctx = avctx -> priv_data , * ctx_from = avctx_from -> priv_data ;\n MpegEncContext * s = & ctx -> mpeg_enc_ctx , * s1 = & ctx_from -> mpeg_enc_ctx ;\n int err ;\n if ( avctx == avctx_from || ! ctx_from -> mpeg_enc_ctx_allocated || ! s1 -> context_initialized ) return 0 ;\n err = ff_mpeg_update_thread_context ( avctx , avctx_from ) ;\n if ( err ) return err ;\n if ( ! ctx -> mpeg_enc_ctx_allocated ) memcpy ( s + 1 , s1 + 1 , sizeof ( Mpeg1Context ) - sizeof ( MpegEncContext ) ) ;\n if ( ! ( s -> pict_type == AV_PICTURE_TYPE_B || s -> low_delay ) ) s -> picture_number ++ ;\n return 0 ;\n }"}
{"idx": 19511, "target": 1, "func": "struct mszipd_stream * mszipd_init ( struct mspack_system * system , struct mspack_file * input , struct mspack_file * output , int input_buffer_size , int repair_mode ) {\n struct mszipd_stream * zip ;\n if ( ! system ) return NULL ;\n input_buffer_size = ( input_buffer_size + 1 ) & - 2 ;\n if ( ! input_buffer_size ) return NULL ;\n if ( ! ( zip = ( struct mszipd_stream * ) system -> alloc ( system , sizeof ( struct mszipd_stream ) ) ) ) {\n return NULL ;\n }\n zip -> inbuf = ( unsigned char * ) system -> alloc ( system , ( size_t ) input_buffer_size ) ;\n if ( ! zip -> inbuf ) {\n system -> free ( zip ) ;\n return NULL ;\n }\n zip -> sys = system ;\n zip -> input = input ;\n zip -> output = output ;\n zip -> inbuf_size = input_buffer_size ;\n zip -> input_end = 0 ;\n zip -> error = MSPACK_ERR_OK ;\n zip -> repair_mode = repair_mode ;\n zip -> flush_window = & mszipd_flush_window ;\n zip -> i_ptr = zip -> i_end = & zip -> inbuf [ 0 ] ;\n zip -> o_ptr = zip -> o_end = NULL ;\n zip -> bit_buffer = 0 ;\n zip -> bits_left = 0 ;\n return zip ;\n }"}
{"idx": 19512, "target": 0, "func": "static void _moveBefore ( ArchiveHandle * AH , TocEntry * pos , TocEntry * te ) {\n te -> prev -> next = te -> next ;\n te -> next -> prev = te -> prev ;\n te -> prev = pos -> prev ;\n te -> next = pos ;\n pos -> prev -> next = te ;\n pos -> prev = te ;\n }"}
{"idx": 19513, "target": 0, "func": "static const char * writer_get_name ( void * p ) {\n WriterContext * wctx = p ;\n return wctx -> writer -> name ;\n }"}
{"idx": 19514, "target": 0, "func": "static int zstop ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n uint count = count_to_stopped ( i_ctx_p , 1L ) ;\n if ( count ) {\n check_ostack ( 2 ) ;\n pop_estack ( i_ctx_p , count ) ;\n op = osp ;\n push ( 1 ) ;\n make_true ( op ) ;\n return o_pop_estack ;\n }\n push ( 2 ) ;\n return unmatched_exit ( op , zstop ) ;\n }"}
{"idx": 19515, "target": 0, "func": "static void sbr_qmf_pre_shuffle_c ( float * z ) {\n union av_intfloat32 * zi = ( union av_intfloat32 * ) z ;\n int k ;\n zi [ 64 ] . i = zi [ 0 ] . i ;\n zi [ 65 ] . i = zi [ 1 ] . i ;\n for ( k = 1 ;\n k < 31 ;\n k += 2 ) {\n zi [ 64 + 2 * k + 0 ] . i = zi [ 64 - k ] . i ^ ( 1U << 31 ) ;\n zi [ 64 + 2 * k + 1 ] . i = zi [ k + 1 ] . i ;\n zi [ 64 + 2 * k + 2 ] . i = zi [ 63 - k ] . i ^ ( 1U << 31 ) ;\n zi [ 64 + 2 * k + 3 ] . i = zi [ k + 2 ] . i ;\n }\n zi [ 64 + 2 * 31 + 0 ] . i = zi [ 64 - 31 ] . i ^ ( 1U << 31 ) ;\n zi [ 64 + 2 * 31 + 1 ] . i = zi [ 31 + 1 ] . i ;\n }"}
{"idx": 19516, "target": 0, "func": "static tmsize_t _tiffWriteProc ( thandle_t fd , void * buf , tmsize_t size ) {\n uint8 * ma ;\n uint64 mb ;\n DWORD n ;\n DWORD o ;\n tmsize_t p ;\n ma = ( uint8 * ) buf ;\n mb = size ;\n p = 0 ;\n while ( mb > 0 ) {\n n = 0x80000000UL ;\n if ( ( uint64 ) n > mb ) n = ( DWORD ) mb ;\n if ( ! WriteFile ( fd , ( LPVOID ) ma , n , & o , NULL ) ) return ( 0 ) ;\n ma += o ;\n mb -= o ;\n p += o ;\n if ( o != n ) break ;\n }\n return ( p ) ;\n }"}
{"idx": 19517, "target": 0, "func": "PKCS7 * d2i_PKCS7_fp ( FILE * fp , PKCS7 * * p7 ) {\n return ASN1_item_d2i_fp ( ASN1_ITEM_rptr ( PKCS7 ) , fp , p7 ) ;\n }"}
{"idx": 19518, "target": 0, "func": "static void add_load_option ( DYNAMIC_STRING * str , const char * option , const char * option_value ) {\n if ( ! option_value ) {\n return ;\n }\n dynstr_append_checked ( str , option ) ;\n if ( strncmp ( option_value , \"0x\" , sizeof ( \"0x\" ) - 1 ) == 0 ) {\n dynstr_append_checked ( str , option_value ) ;\n }\n else {\n field_escape ( str , option_value ) ;\n }\n }"}
{"idx": 19519, "target": 0, "func": "const char * TSHttpHdrMethodGet ( TSMBuffer bufp , TSMLoc obj , int * length ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_http_hdr_handle ( obj ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) length ) == TS_SUCCESS ) ;\n HTTPHdr h ;\n SET_HTTP_HDR ( h , bufp , obj ) ;\n return h . method_get ( length ) ;\n }"}
{"idx": 19520, "target": 0, "func": "static PyObject * authGSSClientUserName ( PyObject * self , PyObject * args ) {\n gss_client_state * state ;\n PyObject * pystate ;\n if ( ! PyArg_ParseTuple ( args , \"O\" , & pystate ) ) return NULL ;\n # if PY_MAJOR_VERSION >= 3 if ( ! PyCapsule_CheckExact ( pystate ) ) {\n # else if ( ! PyCObject_Check ( pystate ) ) {\n # endif PyErr_SetString ( PyExc_TypeError , \"Expected a context object\" ) ;\n return NULL ;\n }\n # if PY_MAJOR_VERSION >= 3 state = PyCapsule_GetPointer ( pystate , NULL ) ;\n # else state = ( gss_client_state * ) PyCObject_AsVoidPtr ( pystate ) ;\n # endif if ( state == NULL ) return NULL ;\n return Py_BuildValue ( \"s\" , state -> username ) ;\n }"}
{"idx": 19521, "target": 0, "func": "static int dissect_rsl_ie_codec_conf ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {\n proto_item * ti ;\n proto_tree * ie_tree ;\n guint length ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_CODEC_CONF ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_ie_codec_conf , & ti , \"Codec Configuration IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n length = tvb_get_guint8 ( tvb , offset ) ;\n proto_item_set_len ( ti , length + 2 ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_length , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n return offset + length ;\n }"}
{"idx": 19522, "target": 0, "func": "int mdb_search ( Operation * op , SlapReply * rs ) {\n struct mdb_info * mdb = ( struct mdb_info * ) op -> o_bd -> be_private ;\n ID id , cursor , nsubs , ncand , cscope ;\n ID lastid = NOID ;\n ID candidates [ MDB_IDL_UM_SIZE ] ;\n ID iscopes [ MDB_IDL_DB_SIZE ] ;\n ID2 * scopes ;\n void * stack ;\n Entry * e = NULL , * base = NULL ;\n Entry * matched = NULL ;\n AttributeName * attrs ;\n slap_mask_t mask ;\n time_t stoptime ;\n int manageDSAit ;\n int tentries = 0 ;\n IdScopes isc ;\n MDB_cursor * mci , * mcd ;\n ww_ctx wwctx ;\n slap_callback cb = {\n 0 }\n ;\n mdb_op_info opinfo = {\n {\n {\n 0 }\n }\n }\n , * moi = & opinfo ;\n MDB_txn * ltid = NULL ;\n Debug ( LDAP_DEBUG_TRACE , \"=> \" LDAP_XSTRING ( mdb_search ) \"\\n\" , 0 , 0 , 0 ) ;\n attrs = op -> oq_search . rs_attrs ;\n manageDSAit = get_manageDSAit ( op ) ;\n rs -> sr_err = mdb_opinfo_get ( op , mdb , 1 , & moi ) ;\n switch ( rs -> sr_err ) {\n case 0 : break ;\n default : send_ldap_error ( op , rs , LDAP_OTHER , \"internal error\" ) ;\n return rs -> sr_err ;\n }\n ltid = moi -> moi_txn ;\n rs -> sr_err = mdb_cursor_open ( ltid , mdb -> mi_id2entry , & mci ) ;\n if ( rs -> sr_err ) {\n send_ldap_error ( op , rs , LDAP_OTHER , \"internal error\" ) ;\n return rs -> sr_err ;\n }\n rs -> sr_err = mdb_cursor_open ( ltid , mdb -> mi_dn2id , & mcd ) ;\n if ( rs -> sr_err ) {\n mdb_cursor_close ( mci ) ;\n send_ldap_error ( op , rs , LDAP_OTHER , \"internal error\" ) ;\n return rs -> sr_err ;\n }\n scopes = scope_chunk_get ( op ) ;\n stack = search_stack ( op ) ;\n isc . mt = ltid ;\n isc . mc = mcd ;\n isc . scopes = scopes ;\n isc . oscope = op -> ors_scope ;\n isc . sctmp = stack ;\n if ( op -> ors_deref & LDAP_DEREF_FINDING ) {\n MDB_IDL_ZERO ( candidates ) ;\n }\n dn2entry_retry : rs -> sr_err = mdb_dn2entry ( op , ltid , mcd , & op -> o_req_ndn , & e , & nsubs , 1 ) ;\n switch ( rs -> sr_err ) {\n case MDB_NOTFOUND : matched = e ;\n e = NULL ;\n break ;\n case 0 : break ;\n case LDAP_BUSY : send_ldap_error ( op , rs , LDAP_BUSY , \"ldap server busy\" ) ;\n goto done ;\n default : send_ldap_error ( op , rs , LDAP_OTHER , \"internal error\" ) ;\n goto done ;\n }\n if ( op -> ors_deref & LDAP_DEREF_FINDING ) {\n if ( matched && is_entry_alias ( matched ) ) {\n struct berval stub ;\n stub . bv_val = op -> o_req_ndn . bv_val ;\n stub . bv_len = op -> o_req_ndn . bv_len - matched -> e_nname . bv_len - 1 ;\n e = deref_base ( op , rs , matched , & matched , ltid , candidates , NULL ) ;\n if ( e ) {\n build_new_dn ( & op -> o_req_ndn , & e -> e_nname , & stub , op -> o_tmpmemctx ) ;\n mdb_entry_return ( op , e ) ;\n matched = NULL ;\n goto dn2entry_retry ;\n }\n }\n else if ( e && is_entry_alias ( e ) ) {\n e = deref_base ( op , rs , e , & matched , ltid , candidates , NULL ) ;\n }\n }\n if ( e == NULL ) {\n struct berval matched_dn = BER_BVNULL ;\n if ( matched != NULL ) {\n BerVarray erefs = NULL ;\n if ( ! access_allowed ( op , matched , slap_schema . si_ad_entry , NULL , ACL_DISCLOSE , NULL ) ) {\n rs -> sr_err = LDAP_NO_SUCH_OBJECT ;\n }\n else {\n ber_dupbv ( & matched_dn , & matched -> e_name ) ;\n erefs = is_entry_referral ( matched ) ? get_entry_referrals ( op , matched ) : NULL ;\n if ( rs -> sr_err == MDB_NOTFOUND ) rs -> sr_err = LDAP_REFERRAL ;\n rs -> sr_matched = matched_dn . bv_val ;\n }\n mdb_entry_return ( op , matched ) ;\n matched = NULL ;\n if ( erefs ) {\n rs -> sr_ref = referral_rewrite ( erefs , & matched_dn , & op -> o_req_dn , op -> oq_search . rs_scope ) ;\n ber_bvarray_free ( erefs ) ;\n }\n }\n else {\n rs -> sr_ref = referral_rewrite ( default_referral , NULL , & op -> o_req_dn , op -> oq_search . rs_scope ) ;\n rs -> sr_err = rs -> sr_ref != NULL ? LDAP_REFERRAL : LDAP_NO_SUCH_OBJECT ;\n }\n send_ldap_result ( op , rs ) ;\n if ( rs -> sr_ref ) {\n ber_bvarray_free ( rs -> sr_ref ) ;\n rs -> sr_ref = NULL ;\n }\n if ( ! BER_BVISNULL ( & matched_dn ) ) {\n ber_memfree ( matched_dn . bv_val ) ;\n rs -> sr_matched = NULL ;\n }\n goto done ;\n }\n if ( ! access_allowed_mask ( op , e , slap_schema . si_ad_entry , NULL , ACL_SEARCH , NULL , & mask ) ) {\n if ( ! ACL_GRANT ( mask , ACL_DISCLOSE ) ) {\n rs -> sr_err = LDAP_NO_SUCH_OBJECT ;\n }\n else {\n rs -> sr_err = LDAP_INSUFFICIENT_ACCESS ;\n }\n mdb_entry_return ( op , e ) ;\n send_ldap_result ( op , rs ) ;\n goto done ;\n }\n if ( ! manageDSAit && is_entry_referral ( e ) ) {\n struct berval matched_dn = BER_BVNULL ;\n BerVarray erefs = NULL ;\n ber_dupbv ( & matched_dn , & e -> e_name ) ;\n erefs = get_entry_referrals ( op , e ) ;\n rs -> sr_err = LDAP_REFERRAL ;\n mdb_entry_return ( op , e ) ;\n e = NULL ;\n if ( erefs ) {\n rs -> sr_ref = referral_rewrite ( erefs , & matched_dn , & op -> o_req_dn , op -> oq_search . rs_scope ) ;\n ber_bvarray_free ( erefs ) ;\n if ( ! rs -> sr_ref ) {\n rs -> sr_text = \"bad_referral object\" ;\n }\n }\n Debug ( LDAP_DEBUG_TRACE , LDAP_XSTRING ( mdb_search ) \": entry is referral\\n\" , 0 , 0 , 0 ) ;\n rs -> sr_matched = matched_dn . bv_val ;\n send_ldap_result ( op , rs ) ;\n ber_bvarray_free ( rs -> sr_ref ) ;\n rs -> sr_ref = NULL ;\n ber_memfree ( matched_dn . bv_val ) ;\n rs -> sr_matched = NULL ;\n goto done ;\n }\n if ( get_assert ( op ) && ( test_filter ( op , e , get_assertion ( op ) ) != LDAP_COMPARE_TRUE ) ) {\n rs -> sr_err = LDAP_ASSERTION_FAILED ;\n mdb_entry_return ( op , e ) ;\n send_ldap_result ( op , rs ) ;\n goto done ;\n }\n stoptime = op -> o_time + op -> ors_tlimit ;\n base = e ;\n e = NULL ;\n if ( op -> oq_search . rs_scope == LDAP_SCOPE_BASE ) {\n rs -> sr_err = base_candidate ( op -> o_bd , base , candidates ) ;\n scopes [ 0 ] . mid = 0 ;\n ncand = 1 ;\n }\n else {\n if ( op -> ors_scope == LDAP_SCOPE_ONELEVEL ) {\n size_t nkids ;\n MDB_val key , data ;\n key . mv_data = & base -> e_id ;\n key . mv_size = sizeof ( ID ) ;\n mdb_cursor_get ( mcd , & key , & data , MDB_SET ) ;\n mdb_cursor_count ( mcd , & nkids ) ;\n nsubs = nkids - 1 ;\n }\n else if ( ! base -> e_id ) {\n MDB_stat ms ;\n mdb_stat ( ltid , mdb -> mi_id2entry , & ms ) ;\n nsubs = ms . ms_entries ;\n }\n MDB_IDL_ZERO ( candidates ) ;\n scopes [ 0 ] . mid = 1 ;\n scopes [ 1 ] . mid = base -> e_id ;\n scopes [ 1 ] . mval . mv_data = NULL ;\n rs -> sr_err = search_candidates ( op , rs , base , & isc , mci , candidates , stack ) ;\n ncand = MDB_IDL_N ( candidates ) ;\n if ( ! base -> e_id || ncand == NOID ) {\n MDB_stat ms ;\n mdb_stat ( ltid , mdb -> mi_id2entry , & ms ) ;\n if ( ! base -> e_id ) nsubs = ms . ms_entries ;\n if ( ncand == NOID ) ncand = ms . ms_entries ;\n }\n }\n cursor = 0 ;\n if ( candidates [ 0 ] == 0 ) {\n Debug ( LDAP_DEBUG_TRACE , LDAP_XSTRING ( mdb_search ) \": no candidates\\n\" , 0 , 0 , 0 ) ;\n goto nochange ;\n }\n if ( op -> ors_limit && op -> ors_limit -> lms_s_unchecked != - 1 && ncand > ( unsigned ) op -> ors_limit -> lms_s_unchecked ) {\n rs -> sr_err = LDAP_ADMINLIMIT_EXCEEDED ;\n send_ldap_result ( op , rs ) ;\n rs -> sr_err = LDAP_SUCCESS ;\n goto done ;\n }\n if ( op -> ors_limit == NULL || ! op -> ors_limit -> lms_s_pr_hide ) {\n tentries = ncand ;\n }\n wwctx . flag = 0 ;\n if ( moi == & opinfo ) {\n cb . sc_writewait = mdb_writewait ;\n cb . sc_private = & wwctx ;\n wwctx . txn = ltid ;\n wwctx . mcd = NULL ;\n cb . sc_next = op -> o_callback ;\n op -> o_callback = & cb ;\n }\n if ( get_pagedresults ( op ) > SLAP_CONTROL_IGNORED ) {\n PagedResultsState * ps = op -> o_pagedresults_state ;\n rs -> sr_err = parse_paged_cookie ( op , rs ) ;\n if ( rs -> sr_err != LDAP_SUCCESS ) {\n send_ldap_result ( op , rs ) ;\n goto done ;\n }\n cursor = ( ID ) ps -> ps_cookie ;\n if ( cursor && ps -> ps_size == 0 ) {\n rs -> sr_err = LDAP_SUCCESS ;\n rs -> sr_text = \"search abandoned by pagedResult size=0\" ;\n send_ldap_result ( op , rs ) ;\n goto done ;\n }\n id = mdb_idl_first ( candidates , & cursor ) ;\n if ( id == NOID ) {\n Debug ( LDAP_DEBUG_TRACE , LDAP_XSTRING ( mdb_search ) \": no paged results candidates\\n\" , 0 , 0 , 0 ) ;\n send_paged_response ( op , rs , & lastid , 0 ) ;\n rs -> sr_err = LDAP_OTHER ;\n goto done ;\n }\n if ( id == ( ID ) ps -> ps_cookie ) id = mdb_idl_next ( candidates , & cursor ) ;\n nsubs = ncand ;\n goto loop_begin ;\n }\n if ( nsubs < ncand ) {\n int rc ;\n if ( scopes [ 0 ] . mid > 1 ) {\n cursor = 1 ;\n for ( cscope = 1 ;\n cscope <= scopes [ 0 ] . mid ;\n cscope ++ ) {\n if ( scopes [ cscope ] . mid == base -> e_id ) continue ;\n iscopes [ cursor ++ ] = scopes [ cscope ] . mid ;\n }\n iscopes [ 0 ] = scopes [ 0 ] . mid - 1 ;\n }\n else {\n iscopes [ 0 ] = 0 ;\n }\n wwctx . mcd = mcd ;\n isc . id = base -> e_id ;\n isc . numrdns = 0 ;\n rc = mdb_dn2id_walk ( op , & isc ) ;\n if ( rc ) id = NOID ;\n else id = isc . id ;\n cscope = 0 ;\n }\n else {\n id = mdb_idl_first ( candidates , & cursor ) ;\n }\n while ( id != NOID ) {\n int scopeok ;\n MDB_val edata ;\n loop_begin : if ( op -> o_abandon ) {\n rs -> sr_err = SLAPD_ABANDON ;\n send_ldap_result ( op , rs ) ;\n goto done ;\n }\n if ( slapd_shutdown ) {\n rs -> sr_err = LDAP_UNAVAILABLE ;\n send_ldap_disconnect ( op , rs ) ;\n goto done ;\n }\n if ( op -> ors_tlimit != SLAP_NO_LIMIT && slap_get_time ( ) > stoptime ) {\n rs -> sr_err = LDAP_TIMELIMIT_EXCEEDED ;\n rs -> sr_ref = rs -> sr_v2ref ;\n send_ldap_result ( op , rs ) ;\n rs -> sr_err = LDAP_SUCCESS ;\n goto done ;\n }\n if ( nsubs < ncand ) {\n unsigned i ;\n scopeok = 0 ;\n if ( MDB_IDL_IS_RANGE ( candidates ) ) {\n if ( id >= MDB_IDL_RANGE_FIRST ( candidates ) && id <= MDB_IDL_RANGE_LAST ( candidates ) ) scopeok = 1 ;\n }\n else {\n i = mdb_idl_search ( candidates , id ) ;\n if ( i <= candidates [ 0 ] && candidates [ i ] == id ) scopeok = 1 ;\n }\n if ( scopeok ) goto scopeok ;\n goto loop_continue ;\n }\n scopeok = 0 ;\n isc . numrdns = 0 ;\n switch ( op -> ors_scope ) {\n case LDAP_SCOPE_BASE : if ( id == base -> e_id ) scopeok = 1 ;\n break ;\n # ifdef LDAP_SCOPE_CHILDREN case LDAP_SCOPE_CHILDREN : if ( id == base -> e_id ) break ;\n # endif case LDAP_SCOPE_SUBTREE : if ( id == base -> e_id ) {\n scopeok = 1 ;\n break ;\n }\n case LDAP_SCOPE_ONELEVEL : if ( id == base -> e_id ) break ;\n isc . id = id ;\n isc . nscope = 0 ;\n rs -> sr_err = mdb_idscopes ( op , & isc ) ;\n if ( rs -> sr_err == MDB_SUCCESS ) {\n if ( isc . nscope ) scopeok = 1 ;\n }\n else {\n if ( rs -> sr_err == MDB_NOTFOUND ) goto notfound ;\n }\n break ;\n }\n if ( ! scopeok ) {\n Debug ( LDAP_DEBUG_TRACE , LDAP_XSTRING ( mdb_search ) \": %ld scope not okay\\n\" , ( long ) id , 0 , 0 ) ;\n goto loop_continue ;\n }\n scopeok : if ( id == base -> e_id ) {\n e = base ;\n }\n else {\n rs -> sr_err = mdb_id2edata ( op , mci , id , & edata ) ;\n if ( rs -> sr_err == MDB_NOTFOUND ) {\n notfound : if ( nsubs < ncand ) goto loop_continue ;\n if ( ! MDB_IDL_IS_RANGE ( candidates ) ) {\n Debug ( LDAP_DEBUG_TRACE , LDAP_XSTRING ( mdb_search ) \": candidate %ld not found\\n\" , ( long ) id , 0 , 0 ) ;\n }\n else {\n rs -> sr_err = mdb_get_nextid ( mci , & cursor ) ;\n if ( rs -> sr_err == MDB_NOTFOUND ) {\n break ;\n }\n if ( rs -> sr_err ) {\n rs -> sr_err = LDAP_OTHER ;\n rs -> sr_text = \"internal error in get_nextid\" ;\n send_ldap_result ( op , rs ) ;\n goto done ;\n }\n cursor -- ;\n }\n goto loop_continue ;\n }\n else if ( rs -> sr_err ) {\n rs -> sr_err = LDAP_OTHER ;\n rs -> sr_text = \"internal error in mdb_id2edata\" ;\n send_ldap_result ( op , rs ) ;\n goto done ;\n }\n rs -> sr_err = mdb_entry_decode ( op , ltid , & edata , id , & e ) ;\n if ( rs -> sr_err ) {\n rs -> sr_err = LDAP_OTHER ;\n rs -> sr_text = \"internal error in mdb_entry_decode\" ;\n send_ldap_result ( op , rs ) ;\n goto done ;\n }\n e -> e_id = id ;\n e -> e_name . bv_val = NULL ;\n e -> e_nname . bv_val = NULL ;\n }\n if ( is_entry_subentry ( e ) ) {\n if ( op -> oq_search . rs_scope != LDAP_SCOPE_BASE ) {\n if ( ! get_subentries_visibility ( op ) ) {\n goto loop_continue ;\n }\n }\n else if ( get_subentries ( op ) && ! get_subentries_visibility ( op ) ) {\n goto loop_continue ;\n }\n }\n else if ( get_subentries_visibility ( op ) ) {\n goto loop_continue ;\n }\n if ( op -> ors_deref & LDAP_DEREF_SEARCHING ) {\n if ( is_entry_alias ( e ) && ( ( op -> ors_deref & LDAP_DEREF_FINDING ) || e != base ) ) {\n goto loop_continue ;\n }\n }\n if ( ! manageDSAit && is_entry_glue ( e ) ) {\n goto loop_continue ;\n }\n if ( e != base ) {\n struct berval pdn , pndn ;\n char * d , * n ;\n int i ;\n if ( nsubs < ncand || isc . scopes [ isc . nscope ] . mid == base -> e_id ) {\n pdn = base -> e_name ;\n pndn = base -> e_nname ;\n }\n else {\n mdb_id2name ( op , ltid , & isc . mc , scopes [ isc . nscope ] . mid , & pdn , & pndn ) ;\n }\n e -> e_name . bv_len = pdn . bv_len ;\n e -> e_nname . bv_len = pndn . bv_len ;\n for ( i = 0 ;\n i < isc . numrdns ;\n i ++ ) {\n e -> e_name . bv_len += isc . rdns [ i ] . bv_len + 1 ;\n e -> e_nname . bv_len += isc . nrdns [ i ] . bv_len + 1 ;\n }\n e -> e_name . bv_val = op -> o_tmpalloc ( e -> e_name . bv_len + 1 , op -> o_tmpmemctx ) ;\n e -> e_nname . bv_val = op -> o_tmpalloc ( e -> e_nname . bv_len + 1 , op -> o_tmpmemctx ) ;\n d = e -> e_name . bv_val ;\n n = e -> e_nname . bv_val ;\n if ( nsubs < ncand ) {\n for ( i = isc . numrdns - 1 ;\n i >= 0 ;\n i -- ) {\n memcpy ( d , isc . rdns [ i ] . bv_val , isc . rdns [ i ] . bv_len ) ;\n d += isc . rdns [ i ] . bv_len ;\n * d ++ = ',' ;\n memcpy ( n , isc . nrdns [ i ] . bv_val , isc . nrdns [ i ] . bv_len ) ;\n n += isc . nrdns [ i ] . bv_len ;\n * n ++ = ',' ;\n }\n }\n else {\n for ( i = 0 ;\n i < isc . numrdns ;\n i ++ ) {\n memcpy ( d , isc . rdns [ i ] . bv_val , isc . rdns [ i ] . bv_len ) ;\n d += isc . rdns [ i ] . bv_len ;\n * d ++ = ',' ;\n memcpy ( n , isc . nrdns [ i ] . bv_val , isc . nrdns [ i ] . bv_len ) ;\n n += isc . nrdns [ i ] . bv_len ;\n * n ++ = ',' ;\n }\n }\n if ( pdn . bv_len ) {\n memcpy ( d , pdn . bv_val , pdn . bv_len + 1 ) ;\n memcpy ( n , pndn . bv_val , pndn . bv_len + 1 ) ;\n }\n else {\n * -- d = '\\0' ;\n * -- n = '\\0' ;\n e -> e_name . bv_len -- ;\n e -> e_nname . bv_len -- ;\n }\n if ( pndn . bv_val != base -> e_nname . bv_val ) {\n op -> o_tmpfree ( pndn . bv_val , op -> o_tmpmemctx ) ;\n op -> o_tmpfree ( pdn . bv_val , op -> o_tmpmemctx ) ;\n }\n }\n if ( ! manageDSAit && op -> oq_search . rs_scope != LDAP_SCOPE_BASE && is_entry_referral ( e ) ) {\n BerVarray erefs = get_entry_referrals ( op , e ) ;\n rs -> sr_ref = referral_rewrite ( erefs , & e -> e_name , NULL , op -> oq_search . rs_scope == LDAP_SCOPE_ONELEVEL ? LDAP_SCOPE_BASE : LDAP_SCOPE_SUBTREE ) ;\n rs -> sr_entry = e ;\n rs -> sr_flags = 0 ;\n send_search_reference ( op , rs ) ;\n if ( e != base ) mdb_entry_return ( op , e ) ;\n rs -> sr_entry = NULL ;\n e = NULL ;\n ber_bvarray_free ( rs -> sr_ref ) ;\n ber_bvarray_free ( erefs ) ;\n rs -> sr_ref = NULL ;\n goto loop_continue ;\n }\n rs -> sr_err = test_filter ( op , e , op -> oq_search . rs_filter ) ;\n if ( rs -> sr_err == LDAP_COMPARE_TRUE ) {\n if ( get_pagedresults ( op ) > SLAP_CONTROL_IGNORED ) {\n if ( rs -> sr_nentries >= ( ( PagedResultsState * ) op -> o_pagedresults_state ) -> ps_size ) {\n if ( e != base ) mdb_entry_return ( op , e ) ;\n e = NULL ;\n send_paged_response ( op , rs , & lastid , tentries ) ;\n goto done ;\n }\n lastid = id ;\n }\n if ( e ) {\n rs -> sr_attrs = op -> oq_search . rs_attrs ;\n rs -> sr_operational_attrs = NULL ;\n rs -> sr_ctrls = NULL ;\n rs -> sr_entry = e ;\n RS_ASSERT ( e -> e_private != NULL ) ;\n rs -> sr_flags = 0 ;\n rs -> sr_err = LDAP_SUCCESS ;\n rs -> sr_err = send_search_entry ( op , rs ) ;\n rs -> sr_attrs = NULL ;\n rs -> sr_entry = NULL ;\n if ( e != base ) mdb_entry_return ( op , e ) ;\n e = NULL ;\n switch ( rs -> sr_err ) {\n case LDAP_SUCCESS : break ;\n default : break ;\n case LDAP_BUSY : send_ldap_result ( op , rs ) ;\n goto done ;\n case LDAP_UNAVAILABLE : case LDAP_SIZELIMIT_EXCEEDED : if ( rs -> sr_err == LDAP_SIZELIMIT_EXCEEDED ) {\n rs -> sr_ref = rs -> sr_v2ref ;\n send_ldap_result ( op , rs ) ;\n rs -> sr_err = LDAP_SUCCESS ;\n }\n else {\n rs -> sr_err = LDAP_OTHER ;\n }\n goto done ;\n }\n }\n }\n else {\n Debug ( LDAP_DEBUG_TRACE , LDAP_XSTRING ( mdb_search ) \": %ld does not match filter\\n\" , ( long ) id , 0 , 0 ) ;\n }\n loop_continue : if ( moi == & opinfo && ! wwctx . flag && mdb -> mi_rtxn_size ) {\n wwctx . nentries ++ ;\n if ( wwctx . nentries >= mdb -> mi_rtxn_size ) {\n wwctx . nentries = 0 ;\n mdb_rtxn_snap ( op , & wwctx ) ;\n }\n }\n if ( wwctx . flag ) {\n rs -> sr_err = mdb_waitfixup ( op , & wwctx , mci , mcd , & isc ) ;\n if ( rs -> sr_err ) {\n send_ldap_result ( op , rs ) ;\n goto done ;\n }\n }\n if ( e != NULL ) {\n if ( e != base ) mdb_entry_return ( op , e ) ;\n RS_ASSERT ( rs -> sr_entry == NULL ) ;\n e = NULL ;\n rs -> sr_entry = NULL ;\n }\n if ( nsubs < ncand ) {\n int rc = mdb_dn2id_walk ( op , & isc ) ;\n if ( rc ) {\n id = NOID ;\n while ( iscopes [ 0 ] && cscope < iscopes [ 0 ] ) {\n cscope ++ ;\n isc . id = iscopes [ cscope ] ;\n if ( base ) mdb_entry_return ( op , base ) ;\n rs -> sr_err = mdb_id2entry ( op , mci , isc . id , & base ) ;\n if ( ! rs -> sr_err ) {\n mdb_id2name ( op , ltid , & isc . mc , isc . id , & base -> e_name , & base -> e_nname ) ;\n isc . numrdns = 0 ;\n if ( isc . oscope == LDAP_SCOPE_ONELEVEL ) isc . oscope = LDAP_SCOPE_BASE ;\n rc = mdb_dn2id_walk ( op , & isc ) ;\n if ( ! rc ) {\n id = isc . id ;\n break ;\n }\n }\n }\n }\n else id = isc . id ;\n }\n else {\n id = mdb_idl_next ( candidates , & cursor ) ;\n }\n }\n nochange : rs -> sr_ctrls = NULL ;\n rs -> sr_ref = rs -> sr_v2ref ;\n rs -> sr_err = ( rs -> sr_v2ref == NULL ) ? LDAP_SUCCESS : LDAP_REFERRAL ;\n rs -> sr_rspoid = NULL ;\n if ( get_pagedresults ( op ) > SLAP_CONTROL_IGNORED ) {\n send_paged_response ( op , rs , NULL , 0 ) ;\n }\n else {\n send_ldap_result ( op , rs ) ;\n }\n rs -> sr_err = LDAP_SUCCESS ;\n done : if ( cb . sc_private ) {\n slap_callback * * scp = & op -> o_callback ;\n while ( * scp ) {\n if ( * scp == & cb ) {\n * scp = cb . sc_next ;\n cb . sc_private = NULL ;\n break ;\n }\n }\n }\n mdb_cursor_close ( mcd ) ;\n mdb_cursor_close ( mci ) ;\n if ( moi == & opinfo ) {\n mdb_txn_reset ( moi -> moi_txn ) ;\n LDAP_SLIST_REMOVE ( & op -> o_extra , & moi -> moi_oe , OpExtra , oe_next ) ;\n }\n else {\n moi -> moi_ref -- ;\n }\n if ( rs -> sr_v2ref ) {\n ber_bvarray_free ( rs -> sr_v2ref ) ;\n rs -> sr_v2ref = NULL ;\n }\n if ( base ) mdb_entry_return ( op , base ) ;\n scope_chunk_ret ( op , scopes ) ;\n return rs -> sr_err ;\n }"}
{"idx": 19523, "target": 0, "func": "uint32_t pkg_countCharList ( CharList * l ) {\n uint32_t c = 0 ;\n while ( l != NULL ) {\n c ++ ;\n l = l -> next ;\n }\n return c ;\n }"}
{"idx": 19524, "target": 0, "func": "int evdns_server_request_add_a_reply ( struct evdns_server_request * req , const char * name , int n , void * addrs , int ttl ) {\n return evdns_server_request_add_reply ( req , EVDNS_ANSWER_SECTION , name , TYPE_A , CLASS_INET , ttl , n * 4 , 0 , addrs ) ;\n }"}
{"idx": 19525, "target": 0, "func": "static int compare_entry ( const void * _mn1 , const void * _mn2 ) {\n const NameEntry * mn1 = _mn1 , * mn2 = _mn2 ;\n if ( mn1 -> platform != mn2 -> platform ) return ( mn1 -> platform - mn2 -> platform ) ;\n if ( mn1 -> specific != mn2 -> specific ) return ( mn1 -> specific - mn2 -> specific ) ;\n if ( mn1 -> lang != mn2 -> lang ) return ( mn1 -> lang - mn2 -> lang ) ;\n return ( mn1 -> strid - mn2 -> strid ) ;\n }"}
{"idx": 19526, "target": 0, "func": "static fz_icclink * fz_new_icc_link ( fz_context * ctx , fz_iccprofile * dst , int dst_extras , fz_iccprofile * src , int src_extras , fz_iccprofile * prf , const fz_color_params * rend , int num_bytes , int copy_extras ) {\n fz_icclink * link = fz_malloc_struct ( ctx , fz_icclink ) ;\n FZ_INIT_STORABLE ( link , 1 , fz_drop_link_imp ) ;\n if ( memcmp ( src -> md5 , dst -> md5 , 16 ) == 0 && prf == NULL ) {\n link -> is_identity = 1 ;\n return link ;\n }\n fz_try ( ctx ) fz_cmm_init_link ( ctx , link , dst , dst_extras , src , src_extras , prf , rend , 0 , num_bytes , copy_extras ) ;\n fz_catch ( ctx ) {\n fz_free ( ctx , link ) ;\n fz_rethrow ( ctx ) ;\n }\n return link ;\n }"}
{"idx": 19527, "target": 0, "func": "static int strncat_from_utf8_to_utf8 ( struct archive_string * as , const void * _p , size_t len , struct archive_string_conv * sc ) {\n const char * s ;\n char * p , * endp ;\n int n , ret = 0 ;\n ( void ) sc ;\n if ( archive_string_ensure ( as , as -> length + len + 1 ) == NULL ) return ( - 1 ) ;\n s = ( const char * ) _p ;\n p = as -> s + as -> length ;\n endp = as -> s + as -> buffer_length - 1 ;\n do {\n uint32_t uc ;\n const char * ss = s ;\n size_t w ;\n while ( ( n = utf8_to_unicode ( & uc , s , len ) ) > 0 ) {\n s += n ;\n len -= n ;\n }\n if ( ss < s ) {\n if ( p + ( s - ss ) > endp ) {\n as -> length = p - as -> s ;\n if ( archive_string_ensure ( as , as -> buffer_length + len + 1 ) == NULL ) return ( - 1 ) ;\n p = as -> s + as -> length ;\n endp = as -> s + as -> buffer_length - 1 ;\n }\n memcpy ( p , ss , s - ss ) ;\n p += s - ss ;\n }\n if ( n < 0 ) {\n if ( n == - 3 && IS_SURROGATE_PAIR_LA ( uc ) ) {\n n = cesu8_to_unicode ( & uc , s , len ) ;\n }\n if ( n < 0 ) {\n ret = - 1 ;\n n *= - 1 ;\n }\n while ( ( w = unicode_to_utf8 ( p , endp - p , uc ) ) == 0 ) {\n as -> length = p - as -> s ;\n if ( archive_string_ensure ( as , as -> buffer_length + len + 1 ) == NULL ) return ( - 1 ) ;\n p = as -> s + as -> length ;\n endp = as -> s + as -> buffer_length - 1 ;\n }\n p += w ;\n s += n ;\n len -= n ;\n }\n }\n while ( n > 0 ) ;\n as -> length = p - as -> s ;\n as -> s [ as -> length ] = '\\0' ;\n return ( ret ) ;\n }"}
{"idx": 19528, "target": 0, "func": "int ff_msmpeg4_pred_dc ( MpegEncContext * s , int n , int16_t * * dc_val_ptr , int * dir_ptr ) {\n int a , b , c , wrap , pred , scale ;\n int16_t * dc_val ;\n if ( n < 4 ) {\n scale = s -> y_dc_scale ;\n }\n else {\n scale = s -> c_dc_scale ;\n }\n wrap = s -> block_wrap [ n ] ;\n dc_val = s -> dc_val [ 0 ] + s -> block_index [ n ] ;\n a = dc_val [ - 1 ] ;\n b = dc_val [ - 1 - wrap ] ;\n c = dc_val [ - wrap ] ;\n if ( s -> first_slice_line && ( n & 2 ) == 0 && s -> msmpeg4_version < 4 ) {\n b = c = 1024 ;\n }\n # if ARCH_X86 && HAVE_7REGS && HAVE_EBX_AVAILABLE __asm__ volatile ( \"movl %3, %%eax \\n\\t\" \"shrl $1, %%eax \\n\\t\" \"addl %%eax, %2 \\n\\t\" \"addl %%eax, %1 \\n\\t\" \"addl %0, %%eax \\n\\t\" \"mull %4 \\n\\t\" \"movl %%edx, %0 \\n\\t\" \"movl %1, %%eax \\n\\t\" \"mull %4 \\n\\t\" \"movl %%edx, %1 \\n\\t\" \"movl %2, %%eax \\n\\t\" \"mull %4 \\n\\t\" \"movl %%edx, %2 \\n\\t\" : \"+b\" ( a ) , \"+c\" ( b ) , \"+D\" ( c ) : \"g\" ( scale ) , \"S\" ( ff_inverse [ scale ] ) : \"%eax\" , \"%edx\" ) ;\n # else if ( scale == 8 ) {\n a = ( a + ( 8 >> 1 ) ) / 8 ;\n b = ( b + ( 8 >> 1 ) ) / 8 ;\n c = ( c + ( 8 >> 1 ) ) / 8 ;\n }\n else {\n a = FASTDIV ( ( a + ( scale >> 1 ) ) , scale ) ;\n b = FASTDIV ( ( b + ( scale >> 1 ) ) , scale ) ;\n c = FASTDIV ( ( c + ( scale >> 1 ) ) , scale ) ;\n }\n # endif if ( s -> msmpeg4_version > 3 ) {\n if ( s -> inter_intra_pred ) {\n uint8_t * dest ;\n int wrap ;\n if ( n == 1 ) {\n pred = a ;\n * dir_ptr = 0 ;\n }\n else if ( n == 2 ) {\n pred = c ;\n * dir_ptr = 1 ;\n }\n else if ( n == 3 ) {\n if ( abs ( a - b ) < abs ( b - c ) ) {\n pred = c ;\n * dir_ptr = 1 ;\n }\n else {\n pred = a ;\n * dir_ptr = 0 ;\n }\n }\n else {\n if ( n < 4 ) {\n wrap = s -> linesize ;\n dest = s -> current_picture . f . data [ 0 ] + ( ( ( n >> 1 ) + 2 * s -> mb_y ) * 8 * wrap ) + ( ( n & 1 ) + 2 * s -> mb_x ) * 8 ;\n }\n else {\n wrap = s -> uvlinesize ;\n dest = s -> current_picture . f . data [ n - 3 ] + ( s -> mb_y * 8 * wrap ) + s -> mb_x * 8 ;\n }\n if ( s -> mb_x == 0 ) a = ( 1024 + ( scale >> 1 ) ) / scale ;\n else a = get_dc ( dest - 8 , wrap , scale * 8 ) ;\n if ( s -> mb_y == 0 ) c = ( 1024 + ( scale >> 1 ) ) / scale ;\n else c = get_dc ( dest - 8 * wrap , wrap , scale * 8 ) ;\n if ( s -> h263_aic_dir == 0 ) {\n pred = a ;\n * dir_ptr = 0 ;\n }\n else if ( s -> h263_aic_dir == 1 ) {\n if ( n == 0 ) {\n pred = c ;\n * dir_ptr = 1 ;\n }\n else {\n pred = a ;\n * dir_ptr = 0 ;\n }\n }\n else if ( s -> h263_aic_dir == 2 ) {\n if ( n == 0 ) {\n pred = a ;\n * dir_ptr = 0 ;\n }\n else {\n pred = c ;\n * dir_ptr = 1 ;\n }\n }\n else {\n pred = c ;\n * dir_ptr = 1 ;\n }\n }\n }\n else {\n if ( abs ( a - b ) < abs ( b - c ) ) {\n pred = c ;\n * dir_ptr = 1 ;\n }\n else {\n pred = a ;\n * dir_ptr = 0 ;\n }\n }\n }\n else {\n if ( abs ( a - b ) <= abs ( b - c ) ) {\n pred = c ;\n * dir_ptr = 1 ;\n }\n else {\n pred = a ;\n * dir_ptr = 0 ;\n }\n }\n * dc_val_ptr = & dc_val [ 0 ] ;\n return pred ;\n }"}
{"idx": 19529, "target": 0, "func": "static int dump_tablespaces_for_databases ( char * * databases ) {\n DYNAMIC_STRING where ;\n int r ;\n int i ;\n init_dynamic_string_checked ( & where , \" AND TABLESPACE_NAME IN (\" \"SELECT DISTINCT TABLESPACE_NAME FROM\" \" INFORMATION_SCHEMA.PARTITIONS\" \" WHERE\" \" TABLE_SCHEMA IN (\" , 256 , 1024 ) ;\n for ( i = 0 ;\n databases [ i ] != NULL ;\n i ++ ) {\n char db_name_buff [ NAME_LEN * 2 + 3 ] ;\n mysql_real_escape_string ( mysql , db_name_buff , databases [ i ] , ( ulong ) strlen ( databases [ i ] ) ) ;\n dynstr_append_checked ( & where , \"'\" ) ;\n dynstr_append_checked ( & where , db_name_buff ) ;\n dynstr_append_checked ( & where , \"',\" ) ;\n }\n dynstr_trunc ( & where , 1 ) ;\n dynstr_append_checked ( & where , \"))\" ) ;\n DBUG_PRINT ( \"info\" , ( \"Dump TS for DBs where: %s\" , where . str ) ) ;\n r = dump_tablespaces ( where . str ) ;\n dynstr_free ( & where ) ;\n return r ;\n }"}
{"idx": 19530, "target": 0, "func": "static int dissect_zbee_zcl_appl_idt ( tvbuff_t * tvb _U_ , packet_info * pinfo _U_ , proto_tree * tree _U_ , void * data _U_ ) {\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 19531, "target": 0, "func": "static const char * U_CALLCONV _UTF16LEGetName ( const UConverter * cnv ) {\n if ( UCNV_GET_VERSION ( cnv ) == 0 ) {\n return \"UTF-16LE\" ;\n }\n else {\n return \"UTF-16LE,version=1\" ;\n }\n }"}
{"idx": 19532, "target": 1, "func": "static int binkb_decode_plane ( BinkContext * c , GetBitContext * gb , int plane_idx , int is_key , int is_chroma ) {\n int blk , ret ;\n int i , j , bx , by ;\n uint8_t * dst , * ref , * ref_start , * ref_end ;\n int v , col [ 2 ] ;\n const uint8_t * scan ;\n int xoff , yoff ;\n LOCAL_ALIGNED_16 ( int16_t , block , [ 64 ] ) ;\n LOCAL_ALIGNED_16 ( int32_t , dctblock , [ 64 ] ) ;\n int coordmap [ 64 ] ;\n int ybias = is_key ? - 15 : 0 ;\n int qp ;\n const int stride = c -> pic -> linesize [ plane_idx ] ;\n int bw = is_chroma ? ( c -> avctx -> width + 15 ) >> 4 : ( c -> avctx -> width + 7 ) >> 3 ;\n int bh = is_chroma ? ( c -> avctx -> height + 15 ) >> 4 : ( c -> avctx -> height + 7 ) >> 3 ;\n binkb_init_bundles ( c ) ;\n ref_start = c -> pic -> data [ plane_idx ] ;\n ref_end = c -> pic -> data [ plane_idx ] + ( bh * c -> pic -> linesize [ plane_idx ] + bw ) * 8 ;\n for ( i = 0 ;\n i < 64 ;\n i ++ ) coordmap [ i ] = ( i & 7 ) + ( i >> 3 ) * stride ;\n for ( by = 0 ;\n by < bh ;\n by ++ ) {\n for ( i = 0 ;\n i < BINKB_NB_SRC ;\n i ++ ) {\n if ( ( ret = binkb_read_bundle ( c , gb , i ) ) < 0 ) return ret ;\n }\n dst = c -> pic -> data [ plane_idx ] + 8 * by * stride ;\n for ( bx = 0 ;\n bx < bw ;\n bx ++ , dst += 8 ) {\n blk = binkb_get_value ( c , BINKB_SRC_BLOCK_TYPES ) ;\n switch ( blk ) {\n case 0 : break ;\n case 1 : scan = bink_patterns [ get_bits ( gb , 4 ) ] ;\n i = 0 ;\n do {\n int mode , run ;\n mode = get_bits1 ( gb ) ;\n run = get_bits ( gb , binkb_runbits [ i ] ) + 1 ;\n i += run ;\n if ( i > 64 ) {\n av_log ( c -> avctx , AV_LOG_ERROR , \"Run went out of bounds\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( mode ) {\n v = binkb_get_value ( c , BINKB_SRC_COLORS ) ;\n for ( j = 0 ;\n j < run ;\n j ++ ) dst [ coordmap [ * scan ++ ] ] = v ;\n }\n else {\n for ( j = 0 ;\n j < run ;\n j ++ ) dst [ coordmap [ * scan ++ ] ] = binkb_get_value ( c , BINKB_SRC_COLORS ) ;\n }\n }\n while ( i < 63 ) ;\n if ( i == 63 ) dst [ coordmap [ * scan ++ ] ] = binkb_get_value ( c , BINKB_SRC_COLORS ) ;\n break ;\n case 2 : memset ( dctblock , 0 , sizeof ( * dctblock ) * 64 ) ;\n dctblock [ 0 ] = binkb_get_value ( c , BINKB_SRC_INTRA_DC ) ;\n qp = binkb_get_value ( c , BINKB_SRC_INTRA_Q ) ;\n read_dct_coeffs ( gb , dctblock , bink_scan , binkb_intra_quant , qp ) ;\n c -> bdsp . idct_put ( dst , stride , dctblock ) ;\n break ;\n case 3 : xoff = binkb_get_value ( c , BINKB_SRC_X_OFF ) ;\n yoff = binkb_get_value ( c , BINKB_SRC_Y_OFF ) + ybias ;\n ref = dst + xoff + yoff * stride ;\n if ( ref < ref_start || ref + 8 * stride > ref_end ) {\n av_log ( c -> avctx , AV_LOG_WARNING , \"Reference block is out of bounds\\n\" ) ;\n }\n else if ( ref + 8 * stride < dst || ref >= dst + 8 * stride ) {\n c -> dsp . put_pixels_tab [ 1 ] [ 0 ] ( dst , ref , stride , 8 ) ;\n }\n else {\n put_pixels8x8_overlapped ( dst , ref , stride ) ;\n }\n c -> dsp . clear_block ( block ) ;\n v = binkb_get_value ( c , BINKB_SRC_INTER_COEFS ) ;\n read_residue ( gb , block , v ) ;\n c -> dsp . add_pixels8 ( dst , block , stride ) ;\n break ;\n case 4 : xoff = binkb_get_value ( c , BINKB_SRC_X_OFF ) ;\n yoff = binkb_get_value ( c , BINKB_SRC_Y_OFF ) + ybias ;\n ref = dst + xoff + yoff * stride ;\n if ( ref < ref_start || ref + 8 * stride > ref_end ) {\n av_log ( c -> avctx , AV_LOG_WARNING , \"Reference block is out of bounds\\n\" ) ;\n }\n else if ( ref + 8 * stride < dst || ref >= dst + 8 * stride ) {\n c -> dsp . put_pixels_tab [ 1 ] [ 0 ] ( dst , ref , stride , 8 ) ;\n }\n else {\n put_pixels8x8_overlapped ( dst , ref , stride ) ;\n }\n memset ( dctblock , 0 , sizeof ( * dctblock ) * 64 ) ;\n dctblock [ 0 ] = binkb_get_value ( c , BINKB_SRC_INTER_DC ) ;\n qp = binkb_get_value ( c , BINKB_SRC_INTER_Q ) ;\n read_dct_coeffs ( gb , dctblock , bink_scan , binkb_inter_quant , qp ) ;\n c -> bdsp . idct_add ( dst , stride , dctblock ) ;\n break ;\n case 5 : v = binkb_get_value ( c , BINKB_SRC_COLORS ) ;\n c -> dsp . fill_block_tab [ 1 ] ( dst , v , stride , 8 ) ;\n break ;\n case 6 : for ( i = 0 ;\n i < 2 ;\n i ++ ) col [ i ] = binkb_get_value ( c , BINKB_SRC_COLORS ) ;\n for ( i = 0 ;\n i < 8 ;\n i ++ ) {\n v = binkb_get_value ( c , BINKB_SRC_PATTERN ) ;\n for ( j = 0 ;\n j < 8 ;\n j ++ , v >>= 1 ) dst [ i * stride + j ] = col [ v & 1 ] ;\n }\n break ;\n case 7 : xoff = binkb_get_value ( c , BINKB_SRC_X_OFF ) ;\n yoff = binkb_get_value ( c , BINKB_SRC_Y_OFF ) + ybias ;\n ref = dst + xoff + yoff * stride ;\n if ( ref < ref_start || ref + 8 * stride > ref_end ) {\n av_log ( c -> avctx , AV_LOG_WARNING , \"Reference block is out of bounds\\n\" ) ;\n }\n else if ( ref + 8 * stride < dst || ref >= dst + 8 * stride ) {\n c -> dsp . put_pixels_tab [ 1 ] [ 0 ] ( dst , ref , stride , 8 ) ;\n }\n else {\n put_pixels8x8_overlapped ( dst , ref , stride ) ;\n }\n break ;\n case 8 : for ( i = 0 ;\n i < 8 ;\n i ++ ) memcpy ( dst + i * stride , c -> bundle [ BINKB_SRC_COLORS ] . cur_ptr + i * 8 , 8 ) ;\n c -> bundle [ BINKB_SRC_COLORS ] . cur_ptr += 64 ;\n break ;\n default : av_log ( c -> avctx , AV_LOG_ERROR , \"Unknown block type %d\\n\" , blk ) ;\n return AVERROR_INVALIDDATA ;\n }\n }\n }\n if ( get_bits_count ( gb ) & 0x1F ) / ext plane data starts at 32 - bit boundary skip_bits_long ( gb , 32 - ( get_bits_count ( gb ) & 0x1F ) ) ;\n return 0 ;\n }"}
{"idx": 19533, "target": 1, "func": "static void dissect_rsvp_common ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , gboolean e2ei ) {\n guint8 message_type ;\n int session_off , tempfilt_off ;\n rsvp_conversation_info * rsvph ;\n conversation_t * conversation ;\n struct rsvp_request_key request_key , * new_request_key ;\n struct rsvp_request_val * request_val ;\n col_clear ( pinfo -> cinfo , COL_INFO ) ;\n message_type = tvb_get_guint8 ( tvb , 1 ) ;\n rsvph = wmem_new0 ( wmem_packet_scope ( ) , rsvp_conversation_info ) ;\n set_address ( & rsvph -> source , pinfo -> src . type , pinfo -> src . len , pinfo -> src . data ) ;\n set_address ( & rsvph -> destination , pinfo -> dst . type , pinfo -> dst . len , pinfo -> dst . data ) ;\n col_add_str ( pinfo -> cinfo , COL_INFO , val_to_str_ext ( message_type , & message_type_vals_ext , \"Unknown (%u). \" ) ) ;\n if ( message_type == RSVP_MSG_BUNDLE ) {\n col_set_str ( pinfo -> cinfo , COL_INFO , rsvp_bundle_dissect ? \"Component Messages Dissected\" : \"Component Messages Not Dissected\" ) ;\n }\n else {\n find_rsvp_session_tempfilt ( tvb , 0 , & session_off , & tempfilt_off ) ;\n if ( session_off ) col_append_str ( pinfo -> cinfo , COL_INFO , summary_session ( tvb , session_off ) ) ;\n if ( tempfilt_off ) col_append_str ( pinfo -> cinfo , COL_INFO , summary_template ( tvb , tempfilt_off ) ) ;\n }\n dissect_rsvp_msg_tree ( tvb , pinfo , tree , TREE ( TT_RSVP ) , rsvph , e2ei ) ;\n if ( ( message_type == RSVP_MSG_ACK ) || ( message_type == RSVP_MSG_SREFRESH ) || ( message_type == RSVP_MSG_HELLO ) ) return ;\n conversation = find_or_create_conversation ( pinfo ) ;\n memset ( & request_key , 0 , sizeof ( request_key ) ) ;\n request_key . conversation = conversation -> index ;\n request_key . session_type = rsvph -> session_type ;\n switch ( request_key . session_type ) {\n case RSVP_SESSION_TYPE_IPV4 : set_address ( & request_key . u . session_ipv4 . destination , rsvph -> destination . type , rsvph -> destination . len , rsvph -> destination . data ) ;\n request_key . u . session_ipv4 . protocol = rsvph -> protocol ;\n request_key . u . session_ipv4 . udp_dest_port = rsvph -> udp_dest_port ;\n break ;\n case RSVP_SESSION_TYPE_IPV6 : break ;\n case RSVP_SESSION_TYPE_IPV4_LSP : set_address ( & request_key . u . session_ipv4_lsp . destination , rsvph -> destination . type , rsvph -> destination . len , rsvph -> destination . data ) ;\n request_key . u . session_ipv4_lsp . udp_dest_port = rsvph -> udp_dest_port ;\n request_key . u . session_ipv4_lsp . ext_tunnel_id = rsvph -> ext_tunnel_id ;\n break ;\n case RSVP_SESSION_TYPE_AGGREGATE_IPV4 : set_address ( & request_key . u . session_agg_ipv4 . destination , rsvph -> destination . type , rsvph -> destination . len , rsvph -> destination . data ) ;\n request_key . u . session_agg_ipv4 . dscp = rsvph -> dscp ;\n break ;\n case RSVP_SESSION_TYPE_IPV4_UNI : set_address ( & request_key . u . session_ipv4_uni . destination , rsvph -> destination . type , rsvph -> destination . len , rsvph -> destination . data ) ;\n request_key . u . session_ipv4_uni . udp_dest_port = rsvph -> udp_dest_port ;\n request_key . u . session_ipv4_uni . ext_tunnel_id = rsvph -> ext_tunnel_id ;\n break ;\n case RSVP_SESSION_TYPE_IPV4_E_NNI : set_address ( & request_key . u . session_ipv4_enni . destination , rsvph -> destination . type , rsvph -> destination . len , rsvph -> destination . data ) ;\n request_key . u . session_ipv4_enni . udp_dest_port = rsvph -> udp_dest_port ;\n request_key . u . session_ipv4_enni . ext_tunnel_id = rsvph -> ext_tunnel_id ;\n break ;\n default : proto_tree_add_expert ( tree , pinfo , & ei_rsvp_session_type , tvb , 0 , 0 ) ;\n break ;\n }\n copy_address_wmem ( wmem_file_scope ( ) , & request_key . source_info . source , & rsvph -> source ) ;\n request_key . source_info . udp_source_port = rsvph -> udp_source_port ;\n request_val = ( struct rsvp_request_val * ) g_hash_table_lookup ( rsvp_request_hash , & request_key ) ;\n if ( ! request_val ) {\n new_request_key = ( struct rsvp_request_key * ) wmem_memdup ( wmem_file_scope ( ) , & request_key , sizeof ( struct rsvp_request_key ) ) ;\n request_val = wmem_new ( wmem_file_scope ( ) , struct rsvp_request_val ) ;\n request_val -> value = conversation -> index ;\n g_hash_table_insert ( rsvp_request_hash , new_request_key , request_val ) ;\n }\n tap_queue_packet ( rsvp_tap , pinfo , rsvph ) ;\n }"}
{"idx": 19534, "target": 0, "func": "int tls1_final_finish_mac ( SSL * s , const char * str , int slen , unsigned char * out ) {\n unsigned int i ;\n EVP_MD_CTX ctx ;\n unsigned char buf [ 2 * EVP_MAX_MD_SIZE ] ;\n unsigned char * q , buf2 [ 12 ] ;\n int idx ;\n long mask ;\n int err = 0 ;\n const EVP_MD * md ;\n q = buf ;\n if ( s -> s3 -> handshake_buffer ) if ( ! ssl3_digest_cached_records ( s ) ) return 0 ;\n EVP_MD_CTX_init ( & ctx ) ;\n for ( idx = 0 ;\n ssl_get_handshake_digest ( idx , & mask , & md ) ;\n idx ++ ) {\n if ( mask & ssl_get_algorithm2 ( s ) ) {\n int hashsize = EVP_MD_size ( md ) ;\n EVP_MD_CTX * hdgst = s -> s3 -> handshake_dgst [ idx ] ;\n if ( ! hdgst || hashsize < 0 || hashsize > ( int ) ( sizeof buf - ( size_t ) ( q - buf ) ) ) {\n err = 1 ;\n }\n else {\n if ( ! EVP_MD_CTX_copy_ex ( & ctx , hdgst ) || ! EVP_DigestFinal_ex ( & ctx , q , & i ) || ( i != ( unsigned int ) hashsize ) ) err = 1 ;\n q += hashsize ;\n }\n }\n }\n if ( ! tls1_PRF ( ssl_get_algorithm2 ( s ) , str , slen , buf , ( int ) ( q - buf ) , NULL , 0 , NULL , 0 , NULL , 0 , s -> session -> master_key , s -> session -> master_key_length , out , buf2 , sizeof buf2 ) ) err = 1 ;\n EVP_MD_CTX_cleanup ( & ctx ) ;\n if ( err ) return 0 ;\n else return sizeof buf2 ;\n }"}
{"idx": 19535, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize ) ;\n DECL_PIOCTL ( PGetCacheSize ) ;\n DECL_PIOCTL ( PRemoveCallBack ) ;\n DECL_PIOCTL ( PNewCell ) ;\n DECL_PIOCTL ( PNewAlias ) ;\n DECL_PIOCTL ( PListCells ) ;\n DECL_PIOCTL ( PListAliases ) ;\n DECL_PIOCTL ( PRemoveMount ) ;\n DECL_PIOCTL ( PGetCellStatus ) ;\n DECL_PIOCTL ( PSetCellStatus ) ;\n DECL_PIOCTL ( PFlushVolumeData ) ;\n DECL_PIOCTL ( PFlushAllVolumeData ) ;\n DECL_PIOCTL ( PGetVnodeXStatus ) ;\n DECL_PIOCTL ( PGetVnodeXStatus2 ) ;\n DECL_PIOCTL ( PSetSysName ) ;\n DECL_PIOCTL ( PSetSPrefs ) ;\n DECL_PIOCTL ( PSetSPrefs33 ) ;\n DECL_PIOCTL ( PGetSPrefs ) ;\n DECL_PIOCTL ( PExportAfs ) ;\n DECL_PIOCTL ( PGag ) ;\n DECL_PIOCTL ( PTwiddleRx ) ;\n DECL_PIOCTL ( PGetInitParams ) ;\n DECL_PIOCTL ( PGetRxkcrypt ) ;\n DECL_PIOCTL ( PSetRxkcrypt ) ;\n DECL_PIOCTL ( PGetCPrefs ) ;\n DECL_PIOCTL ( PSetCPrefs ) ;\n DECL_PIOCTL ( PFlushMount ) ;\n DECL_PIOCTL ( PRxStatProc )"}
{"idx": 19536, "target": 0, "func": "bool input_DecoderIsEmpty ( decoder_t * p_dec ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n assert ( ! p_owner -> b_waiting ) ;\n bool b_empty = block_FifoCount ( p_dec -> p_owner -> p_fifo ) <= 0 ;\n if ( b_empty ) {\n vlc_mutex_lock ( & p_owner -> lock ) ;\n if ( p_dec -> fmt_out . i_cat == VIDEO_ES && p_owner -> p_vout ) b_empty = vout_IsEmpty ( p_owner -> p_vout ) ;\n else if ( p_dec -> fmt_out . i_cat == AUDIO_ES && p_owner -> p_aout ) b_empty = aout_DecIsEmpty ( p_owner -> p_aout ) ;\n vlc_mutex_unlock ( & p_owner -> lock ) ;\n }\n return b_empty ;\n }"}
{"idx": 19537, "target": 0, "func": "int i2d_ ## name ( type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;\n int i2d_ ## name ( const type * a , unsigned char * * out ) ;\n DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;\n # define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( name , name ) # define DECLARE_ASN1_ALLOC_FUNCTIONS_name ( type , name ) type * name ## _new ( void ) ;\n void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_NULL )"}
{"idx": 19538, "target": 0, "func": "int ssl3_setup_read_buffer ( SSL * s ) {\n unsigned char * p ;\n size_t len , align = 0 , headerlen ;\n if ( SSL_version ( s ) == DTLS1_VERSION || SSL_version ( s ) == DTLS1_BAD_VER ) headerlen = DTLS1_RT_HEADER_LENGTH ;\n else headerlen = SSL3_RT_HEADER_LENGTH ;\n # if defined ( SSL3_ALIGN_PAYLOAD ) && SSL3_ALIGN_PAYLOAD != 0 align = ( - SSL3_RT_HEADER_LENGTH ) & ( SSL3_ALIGN_PAYLOAD - 1 ) ;\n # endif if ( s -> s3 -> rbuf . buf == NULL ) {\n len = SSL3_RT_MAX_PLAIN_LENGTH + SSL3_RT_MAX_ENCRYPTED_OVERHEAD + headerlen + align ;\n if ( s -> options & SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER ) {\n s -> s3 -> init_extra = 1 ;\n len += SSL3_RT_MAX_EXTRA ;\n }\n # ifndef OPENSSL_NO_COMP if ( ! ( s -> options & SSL_OP_NO_COMPRESSION ) ) len += SSL3_RT_MAX_COMPRESSED_OVERHEAD ;\n # endif if ( ( p = freelist_extract ( s -> ctx , 1 , len ) ) == NULL ) goto err ;\n s -> s3 -> rbuf . buf = p ;\n s -> s3 -> rbuf . len = len ;\n }\n s -> packet = & ( s -> s3 -> rbuf . buf [ 0 ] ) ;\n return 1 ;\n err : SSLerr ( SSL_F_SSL3_SETUP_READ_BUFFER , ERR_R_MALLOC_FAILURE ) ;\n return 0 ;\n }"}
{"idx": 19539, "target": 0, "func": "static cmsBool Type_ProfileSequenceId_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) {\n cmsSEQ * Seq = ( cmsSEQ * ) Ptr ;\n cmsUInt32Number BaseOffset ;\n BaseOffset = io -> Tell ( io ) - sizeof ( _cmsTagBase ) ;\n if ( ! _cmsWriteUInt32Number ( io , Seq -> n ) ) return FALSE ;\n if ( ! WritePositionTable ( self , io , 0 , Seq -> n , BaseOffset , Seq , WriteSeqID ) ) return FALSE ;\n return TRUE ;\n cmsUNUSED_PARAMETER ( nItems ) ;\n }"}
{"idx": 19540, "target": 0, "func": "static void pk_transaction_remove_packages ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) {\n gboolean ret ;\n guint length ;\n gboolean allow_deps ;\n gboolean autoremove ;\n PkBitfield transaction_flags ;\n g_autoptr ( GError ) error = NULL ;\n g_autofree gchar * * package_ids = NULL ;\n g_autofree gchar * package_ids_temp = NULL ;\n g_autofree gchar * transaction_flags_temp = NULL ;\n g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ;\n g_return_if_fail ( transaction -> priv -> tid != NULL ) ;\n g_variant_get ( params , \"(t^a&sbb)\" , & transaction_flags , & package_ids , & allow_deps , & autoremove ) ;\n package_ids_temp = pk_package_ids_to_string ( package_ids ) ;\n transaction_flags_temp = pk_transaction_flag_bitfield_to_string ( transaction_flags ) ;\n g_debug ( \"RemovePackages method called: %s, %i, %i (transaction_flags: %s)\" , package_ids_temp , allow_deps , autoremove , transaction_flags_temp ) ;\n if ( ! pk_backend_is_implemented ( transaction -> priv -> backend , PK_ROLE_ENUM_REMOVE_PACKAGES ) ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NOT_SUPPORTED , \"RemovePackages not supported by backend\" ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n length = g_strv_length ( package_ids ) ;\n if ( length > PK_TRANSACTION_MAX_PACKAGES_TO_PROCESS ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_NUMBER_OF_PACKAGES_INVALID , \"Too many packages to process (%i/%i)\" , length , PK_TRANSACTION_MAX_PACKAGES_TO_PROCESS ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n ret = pk_package_ids_check ( package_ids ) ;\n if ( ! ret ) {\n g_set_error ( & error , PK_TRANSACTION_ERROR , PK_TRANSACTION_ERROR_PACKAGE_ID_INVALID , \"The package id's '%s' are not valid\" , package_ids_temp ) ;\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n transaction -> priv -> cached_transaction_flags = transaction_flags ;\n transaction -> priv -> cached_package_ids = g_strdupv ( package_ids ) ;\n transaction -> priv -> cached_allow_deps = allow_deps ;\n transaction -> priv -> cached_autoremove = autoremove ;\n pk_transaction_set_role ( transaction , PK_ROLE_ENUM_REMOVE_PACKAGES ) ;\n pk_transaction_emit_property_changed ( transaction , \"TransactionFlags\" , g_variant_new_uint64 ( transaction_flags ) ) ;\n ret = pk_transaction_obtain_authorization ( transaction , PK_ROLE_ENUM_REMOVE_PACKAGES , & error ) ;\n if ( ! ret ) {\n pk_transaction_set_state ( transaction , PK_TRANSACTION_STATE_ERROR ) ;\n goto out ;\n }\n out : pk_transaction_dbus_return ( context , error ) ;\n }"}
{"idx": 19541, "target": 0, "func": "static uint32_t pmac_ide_readb ( void * opaque , hwaddr addr ) {\n uint8_t retval ;\n MACIOIDEState * d = opaque ;\n addr = ( addr & 0xFFF ) >> 4 ;\n switch ( addr ) {\n case 1 ... 7 : retval = ide_ioport_read ( & d -> bus , addr ) ;\n break ;\n case 8 : case 22 : retval = ide_status_read ( & d -> bus , 0 ) ;\n break ;\n default : retval = 0xFF ;\n break ;\n }\n return retval ;\n }"}
{"idx": 19542, "target": 0, "func": "static uint32_t softfloat_mul ( uint32_t x , uint64_t mantissa ) {\n uint64_t l = x * ( mantissa & 0xffffffff ) ;\n uint64_t h = x * ( mantissa >> 32 ) ;\n h += l >> 32 ;\n l &= 0xffffffff ;\n l += 1 << av_log2 ( h >> 21 ) ;\n h += l >> 32 ;\n return h >> 20 ;\n }"}
{"idx": 19543, "target": 0, "func": "static void dumpTimestamp ( ArchiveHandle * AH , const char * msg , time_t tim ) {\n char buf [ 64 ] ;\n if ( strftime ( buf , sizeof ( buf ) , PGDUMP_STRFTIME_FMT , localtime ( & tim ) ) != 0 ) ahprintf ( AH , \"-- %s %s\\n\\n\" , msg , buf ) ;\n }"}
{"idx": 19544, "target": 0, "func": "void debugCB_fromU ( const void * context , UConverterFromUnicodeArgs * fromUArgs , const UChar * codeUnits , int32_t length , UChar32 codePoint , UConverterCallbackReason reason , UErrorCode * err ) {\n debugCBContext * ctx = ( debugCBContext * ) context ;\n # if DEBUG_TMI printf ( \"debugCB_fromU: Context %p:%d called, reason %d on cnv %p [err=%s]\\n\" , ctx , ctx -> serial , reason , fromUArgs -> converter , u_errorName ( * err ) ) ;\n # endif if ( ctx -> magic != 0xC0FFEE ) {\n fprintf ( stderr , \"debugCB_fromU: Context %p:%d magic is 0x%x should be 0xC0FFEE.\\n\" , ctx , ctx -> serial , ctx -> magic ) ;\n return ;\n }\n if ( reason == UCNV_CLONE ) {\n UConverterFromUCallback saveCallback ;\n const void * saveContext ;\n debugCBContext * cloned ;\n UErrorCode subErr = U_ZERO_ERROR ;\n # if DEBUG_TMI printf ( \"debugCB_fromU: cloning..\\n\" ) ;\n # endif cloned = debugCB_clone ( ctx ) ;\n if ( cloned == NULL ) {\n fprintf ( stderr , \"debugCB_fromU: internal clone failed on %p\\n\" , ctx ) ;\n * err = U_MEMORY_ALLOCATION_ERROR ;\n return ;\n }\n ucnv_setFromUCallBack ( fromUArgs -> converter , cloned -> subCallback , cloned -> subContext , & saveCallback , & saveContext , & subErr ) ;\n if ( cloned -> subCallback != NULL ) {\n # if DEBUG_TMI printf ( \"debugCB_fromU:%p calling subCB %p\\n\" , ctx , cloned -> subCallback ) ;\n # endif cloned -> subCallback ( cloned -> subContext , fromUArgs , codeUnits , length , codePoint , reason , err ) ;\n }\n else {\n printf ( \"debugCB_fromU:%p, NOT calling subCB, it's NULL\\n\" , ctx ) ;\n }\n ucnv_setFromUCallBack ( fromUArgs -> converter , saveCallback , cloned , & cloned -> subCallback , & cloned -> subContext , & subErr ) ;\n if ( U_FAILURE ( subErr ) ) {\n * err = subErr ;\n }\n }\n if ( ctx -> subCallback != NULL && reason != UCNV_CLONE ) {\n ctx -> subCallback ( ctx -> subContext , fromUArgs , codeUnits , length , codePoint , reason , err ) ;\n }\n if ( reason == UCNV_CLOSE ) {\n # if DEBUG_TMI printf ( \"debugCB_fromU: Context %p:%d closing\\n\" , ctx , ctx -> serial ) ;\n # endif free ( ctx ) ;\n }\n # if DEBUG_TMI printf ( \"debugCB_fromU: leaving cnv %p, ctx %p: err %s\\n\" , fromUArgs -> converter , ctx , u_errorName ( * err ) ) ;\n # endif }"}
{"idx": 19545, "target": 0, "func": "bool ispidowner ( pid_t pid ) {\n char path [ MAXPATHLEN ] ;\n struct stat sbuf ;\n snprintf ( path , sizeof ( path ) , \"/proc/%d\" , pid ) ;\n if ( stat ( path , & sbuf ) != 0 ) return ( FALSE ) ;\n if ( getuid ( ) != sbuf . st_uid ) return ( FALSE ) ;\n return ( TRUE ) ;\n }"}
{"idx": 19546, "target": 0, "func": "static gint pad_according_to_type ( gint offset , gint field_starting_offset , gint max_offset , guint8 type ) {\n switch ( type ) {\n case ARG_BYTE : break ;\n case ARG_DOUBLE : case ARG_UINT64 : case ARG_INT64 : case ARG_STRUCT : case ARG_DICT_ENTRY : offset = round_to_8byte ( offset , field_starting_offset ) ;\n break ;\n case ARG_SIGNATURE : break ;\n case ARG_HANDLE : break ;\n case ARG_INT32 : case ARG_UINT32 : case ARG_BOOLEAN : offset = round_to_4byte ( offset , field_starting_offset ) ;\n break ;\n case ARG_INT16 : case ARG_UINT16 : offset = round_to_2byte ( offset , field_starting_offset ) ;\n break ;\n case ARG_STRING : break ;\n case ARG_VARIANT : break ;\n case ARG_OBJ_PATH : break ;\n default : break ;\n }\n if ( offset > max_offset ) {\n offset = max_offset ;\n }\n return offset ;\n }"}
{"idx": 19547, "target": 0, "func": "static int sapi_uwsgi_ub_write ( const char * str , uint str_length TSRMLS_DC ) # endif {\n struct wsgi_request * wsgi_req = ( struct wsgi_request * ) SG ( server_context ) ;\n uwsgi_response_write_body_do ( wsgi_req , ( char * ) str , str_length ) ;\n if ( wsgi_req -> write_errors > uwsgi . write_errors_tolerance ) {\n php_handle_aborted_connection ( ) ;\n return - 1 ;\n }\n return str_length ;\n }"}
{"idx": 19548, "target": 0, "func": "int gcry_pk_map_name ( const char * string ) {\n gcry_module_t pubkey ;\n int algorithm = 0 ;\n if ( ! string ) return 0 ;\n REGISTER_DEFAULT_PUBKEYS ;\n ath_mutex_lock ( & pubkeys_registered_lock ) ;\n pubkey = gcry_pk_lookup_name ( string ) ;\n if ( pubkey ) {\n algorithm = pubkey -> mod_id ;\n _gcry_module_release ( pubkey ) ;\n }\n ath_mutex_unlock ( & pubkeys_registered_lock ) ;\n return algorithm ;\n }"}
{"idx": 19549, "target": 1, "func": "static int jpc_enc_encodemainbody ( jpc_enc_t * enc ) {\n int tileno ;\n int tilex ;\n int tiley ;\n int i ;\n jpc_sot_t * sot ;\n jpc_enc_tcmpt_t * comp ;\n jpc_enc_tcmpt_t * endcomps ;\n jpc_enc_band_t * band ;\n jpc_enc_band_t * endbands ;\n jpc_enc_rlvl_t * lvl ;\n int rlvlno ;\n jpc_qcc_t * qcc ;\n jpc_cod_t * cod ;\n int adjust ;\n int j ;\n int absbandno ;\n long numbytes ;\n long tilehdrlen ;\n long tilelen ;\n jpc_enc_tile_t * tile ;\n jpc_enc_cp_t * cp ;\n double rho ;\n int lyrno ;\n int cmptno ;\n int samestepsizes ;\n jpc_enc_ccp_t * ccps ;\n jpc_enc_tccp_t * tccp ;\n int bandno ;\n uint_fast32_t x ;\n uint_fast32_t y ;\n int mingbits ;\n int actualnumbps ;\n jpc_fix_t mxmag ;\n jpc_fix_t mag ;\n int numgbits ;\n cp = enc -> cp ;\n numbytes = 0 ;\n for ( tileno = 0 ;\n tileno < JAS_CAST ( int , cp -> numtiles ) ;\n ++ tileno ) {\n tilex = tileno % cp -> numhtiles ;\n tiley = tileno / cp -> numhtiles ;\n if ( ! ( enc -> curtile = jpc_enc_tile_create ( enc -> cp , enc -> image , tileno ) ) ) {\n abort ( ) ;\n }\n tile = enc -> curtile ;\n if ( jas_getdbglevel ( ) >= 10 ) {\n jpc_enc_dump ( enc ) ;\n }\n endcomps = & tile -> tcmpts [ tile -> numtcmpts ] ;\n for ( cmptno = 0 , comp = tile -> tcmpts ;\n cmptno < tile -> numtcmpts ;\n ++ cmptno , ++ comp ) {\n if ( ! cp -> ccps [ cmptno ] . sgnd ) {\n adjust = 1 << ( cp -> ccps [ cmptno ] . prec - 1 ) ;\n for ( i = 0 ;\n i < jas_matrix_numrows ( comp -> data ) ;\n ++ i ) {\n for ( j = 0 ;\n j < jas_matrix_numcols ( comp -> data ) ;\n ++ j ) {\n * jas_matrix_getref ( comp -> data , i , j ) -= adjust ;\n }\n }\n }\n }\n if ( ! tile -> intmode ) {\n endcomps = & tile -> tcmpts [ tile -> numtcmpts ] ;\n for ( comp = tile -> tcmpts ;\n comp != endcomps ;\n ++ comp ) {\n jas_matrix_asl ( comp -> data , JPC_FIX_FRACBITS ) ;\n }\n }\n switch ( tile -> mctid ) {\n case JPC_MCT_RCT : assert ( jas_image_numcmpts ( enc -> image ) == 3 ) ;\n jpc_rct ( tile -> tcmpts [ 0 ] . data , tile -> tcmpts [ 1 ] . data , tile -> tcmpts [ 2 ] . data ) ;\n break ;\n case JPC_MCT_ICT : assert ( jas_image_numcmpts ( enc -> image ) == 3 ) ;\n jpc_ict ( tile -> tcmpts [ 0 ] . data , tile -> tcmpts [ 1 ] . data , tile -> tcmpts [ 2 ] . data ) ;\n break ;\n default : break ;\n }\n for ( i = 0 ;\n i < jas_image_numcmpts ( enc -> image ) ;\n ++ i ) {\n comp = & tile -> tcmpts [ i ] ;\n jpc_tsfb_analyze ( comp -> tsfb , comp -> data ) ;\n }\n endcomps = & tile -> tcmpts [ tile -> numtcmpts ] ;\n for ( cmptno = 0 , comp = tile -> tcmpts ;\n comp != endcomps ;\n ++ cmptno , ++ comp ) {\n mingbits = 0 ;\n absbandno = 0 ;\n memset ( comp -> stepsizes , 0 , sizeof ( comp -> stepsizes ) ) ;\n for ( rlvlno = 0 , lvl = comp -> rlvls ;\n rlvlno < comp -> numrlvls ;\n ++ rlvlno , ++ lvl ) {\n if ( ! lvl -> bands ) {\n absbandno += rlvlno ? 3 : 1 ;\n continue ;\n }\n endbands = & lvl -> bands [ lvl -> numbands ] ;\n for ( band = lvl -> bands ;\n band != endbands ;\n ++ band ) {\n if ( ! band -> data ) {\n ++ absbandno ;\n continue ;\n }\n actualnumbps = 0 ;\n mxmag = 0 ;\n for ( y = 0 ;\n y < JAS_CAST ( uint_fast32_t , jas_matrix_numrows ( band -> data ) ) ;\n ++ y ) {\n for ( x = 0 ;\n x < JAS_CAST ( uint_fast32_t , jas_matrix_numcols ( band -> data ) ) ;\n ++ x ) {\n mag = JAS_ABS ( jas_matrix_get ( band -> data , y , x ) ) ;\n if ( mag > mxmag ) {\n mxmag = mag ;\n }\n }\n }\n if ( tile -> intmode ) {\n actualnumbps = jpc_firstone ( mxmag ) + 1 ;\n }\n else {\n actualnumbps = jpc_firstone ( mxmag ) + 1 - JPC_FIX_FRACBITS ;\n }\n numgbits = actualnumbps - ( cp -> ccps [ cmptno ] . prec - 1 + band -> analgain ) ;\n # if 0 jas_eprintf ( \"%d %d mag=%d actual=%d numgbits=%d\\n\" , cp -> ccps [ cmptno ] . prec , band -> analgain , mxmag , actualnumbps , numgbits ) ;\n # endif if ( numgbits > mingbits ) {\n mingbits = numgbits ;\n }\n if ( ! tile -> intmode ) {\n band -> absstepsize = jpc_fix_div ( jpc_inttofix ( 1 << ( band -> analgain + 1 ) ) , band -> synweight ) ;\n }\n else {\n band -> absstepsize = jpc_inttofix ( 1 ) ;\n }\n band -> stepsize = jpc_abstorelstepsize ( band -> absstepsize , cp -> ccps [ cmptno ] . prec + band -> analgain ) ;\n band -> numbps = cp -> tccp . numgbits + JPC_QCX_GETEXPN ( band -> stepsize ) - 1 ;\n if ( ( ! tile -> intmode ) && band -> data ) {\n jpc_quantize ( band -> data , band -> absstepsize ) ;\n }\n comp -> stepsizes [ absbandno ] = band -> stepsize ;\n ++ absbandno ;\n }\n }\n assert ( JPC_FIX_FRACBITS >= JPC_NUMEXTRABITS ) ;\n if ( ! tile -> intmode ) {\n jas_matrix_divpow2 ( comp -> data , JPC_FIX_FRACBITS - JPC_NUMEXTRABITS ) ;\n }\n else {\n jas_matrix_asl ( comp -> data , JPC_NUMEXTRABITS ) ;\n }\n # if 0 jas_eprintf ( \"mingbits %d\\n\" , mingbits ) ;\n # endif if ( mingbits > cp -> tccp . numgbits ) {\n jas_eprintf ( \"error: too few guard bits (need at least %d)\\n\" , mingbits ) ;\n return - 1 ;\n }\n }\n if ( ! ( enc -> tmpstream = jas_stream_memopen ( 0 , 0 ) ) ) {\n jas_eprintf ( \"cannot open tmp file\\n\" ) ;\n return - 1 ;\n }\n if ( ! ( enc -> mrk = jpc_ms_create ( JPC_MS_SOT ) ) ) {\n return - 1 ;\n }\n sot = & enc -> mrk -> parms . sot ;\n sot -> len = 0 ;\n sot -> tileno = tileno ;\n sot -> partno = 0 ;\n sot -> numparts = 1 ;\n if ( jpc_putms ( enc -> tmpstream , enc -> cstate , enc -> mrk ) ) {\n jas_eprintf ( \"cannot write SOT marker\\n\" ) ;\n return - 1 ;\n }\n jpc_ms_destroy ( enc -> mrk ) ;\n enc -> mrk = 0 ;\n tccp = & cp -> tccp ;\n for ( cmptno = 0 ;\n cmptno < JAS_CAST ( int , cp -> numcmpts ) ;\n ++ cmptno ) {\n comp = & tile -> tcmpts [ cmptno ] ;\n if ( comp -> numrlvls != tccp -> maxrlvls ) {\n if ( ! ( enc -> mrk = jpc_ms_create ( JPC_MS_COD ) ) ) {\n return - 1 ;\n }\n comp = & tile -> tcmpts [ 0 ] ;\n cod = & enc -> mrk -> parms . cod ;\n cod -> compparms . csty = 0 ;\n cod -> compparms . numdlvls = comp -> numrlvls - 1 ;\n cod -> prg = tile -> prg ;\n cod -> numlyrs = tile -> numlyrs ;\n cod -> compparms . cblkwidthval = JPC_COX_CBLKSIZEEXPN ( comp -> cblkwidthexpn ) ;\n cod -> compparms . cblkheightval = JPC_COX_CBLKSIZEEXPN ( comp -> cblkheightexpn ) ;\n cod -> compparms . cblksty = comp -> cblksty ;\n cod -> compparms . qmfbid = comp -> qmfbid ;\n cod -> mctrans = ( tile -> mctid != JPC_MCT_NONE ) ;\n for ( i = 0 ;\n i < comp -> numrlvls ;\n ++ i ) {\n cod -> compparms . rlvls [ i ] . parwidthval = comp -> rlvls [ i ] . prcwidthexpn ;\n cod -> compparms . rlvls [ i ] . parheightval = comp -> rlvls [ i ] . prcheightexpn ;\n }\n if ( jpc_putms ( enc -> tmpstream , enc -> cstate , enc -> mrk ) ) {\n return - 1 ;\n }\n jpc_ms_destroy ( enc -> mrk ) ;\n enc -> mrk = 0 ;\n }\n }\n for ( cmptno = 0 , comp = tile -> tcmpts ;\n cmptno < JAS_CAST ( int , cp -> numcmpts ) ;\n ++ cmptno , ++ comp ) {\n ccps = & cp -> ccps [ cmptno ] ;\n if ( JAS_CAST ( int , ccps -> numstepsizes ) == comp -> numstepsizes ) {\n samestepsizes = 1 ;\n for ( bandno = 0 ;\n bandno < JAS_CAST ( int , ccps -> numstepsizes ) ;\n ++ bandno ) {\n if ( ccps -> stepsizes [ bandno ] != comp -> stepsizes [ bandno ] ) {\n samestepsizes = 0 ;\n break ;\n }\n }\n }\n else {\n samestepsizes = 0 ;\n }\n if ( ! samestepsizes ) {\n if ( ! ( enc -> mrk = jpc_ms_create ( JPC_MS_QCC ) ) ) {\n return - 1 ;\n }\n qcc = & enc -> mrk -> parms . qcc ;\n qcc -> compno = cmptno ;\n qcc -> compparms . numguard = cp -> tccp . numgbits ;\n qcc -> compparms . qntsty = ( comp -> qmfbid == JPC_COX_INS ) ? JPC_QCX_SEQNT : JPC_QCX_NOQNT ;\n qcc -> compparms . numstepsizes = comp -> numstepsizes ;\n qcc -> compparms . stepsizes = comp -> stepsizes ;\n if ( jpc_putms ( enc -> tmpstream , enc -> cstate , enc -> mrk ) ) {\n return - 1 ;\n }\n qcc -> compparms . stepsizes = 0 ;\n jpc_ms_destroy ( enc -> mrk ) ;\n enc -> mrk = 0 ;\n }\n }\n if ( ! ( enc -> mrk = jpc_ms_create ( JPC_MS_SOD ) ) ) {\n return - 1 ;\n }\n if ( jpc_putms ( enc -> tmpstream , enc -> cstate , enc -> mrk ) ) {\n jas_eprintf ( \"cannot write SOD marker\\n\" ) ;\n return - 1 ;\n }\n jpc_ms_destroy ( enc -> mrk ) ;\n enc -> mrk = 0 ;\n tilehdrlen = jas_stream_getrwcount ( enc -> tmpstream ) ;\n assert ( tilehdrlen >= 0 ) ;\n if ( jpc_enc_enccblks ( enc ) ) {\n abort ( ) ;\n return - 1 ;\n }\n cp = enc -> cp ;\n rho = ( double ) ( tile -> brx - tile -> tlx ) * ( tile -> bry - tile -> tly ) / ( ( cp -> refgrdwidth - cp -> imgareatlx ) * ( cp -> refgrdheight - cp -> imgareatly ) ) ;\n tile -> rawsize = cp -> rawsize * rho ;\n for ( lyrno = 0 ;\n lyrno < tile -> numlyrs - 1 ;\n ++ lyrno ) {\n tile -> lyrsizes [ lyrno ] = tile -> rawsize * jpc_fixtodbl ( cp -> tcp . ilyrrates [ lyrno ] ) ;\n }\n # if ! defined ( __clang__ ) tile -> lyrsizes [ tile -> numlyrs - 1 ] = ( cp -> totalsize != UINT_FAST32_MAX ) ? ( rho * enc -> mainbodysize ) : UINT_FAST32_MAX ;\n # else if ( cp -> totalsize != UINT_FAST32_MAX ) {\n tile -> lyrsizes [ tile -> numlyrs - 1 ] = ( rho * enc -> mainbodysize ) ;\n }\n else {\n tile -> lyrsizes [ tile -> numlyrs - 1 ] = UINT_FAST32_MAX ;\n }\n # endif for ( lyrno = 0 ;\n lyrno < tile -> numlyrs ;\n ++ lyrno ) {\n if ( tile -> lyrsizes [ lyrno ] != UINT_FAST32_MAX ) {\n if ( JAS_CAST ( uint_fast32_t , tilehdrlen ) <= tile -> lyrsizes [ lyrno ] ) {\n tile -> lyrsizes [ lyrno ] -= tilehdrlen ;\n }\n else {\n tile -> lyrsizes [ lyrno ] = 0 ;\n }\n }\n }\n if ( rateallocate ( enc , tile -> numlyrs , tile -> lyrsizes ) ) {\n return - 1 ;\n }\n # if 0 jas_eprintf ( \"ENCODE TILE DATA\\n\" ) ;\n # endif if ( jpc_enc_encodetiledata ( enc ) ) {\n jas_eprintf ( \"dotile failed\\n\" ) ;\n return - 1 ;\n }\n tilelen = jas_stream_tell ( enc -> tmpstream ) ;\n if ( jas_stream_seek ( enc -> tmpstream , 6 , SEEK_SET ) < 0 ) {\n return - 1 ;\n }\n jpc_putuint32 ( enc -> tmpstream , tilelen ) ;\n if ( jas_stream_seek ( enc -> tmpstream , 0 , SEEK_SET ) < 0 ) {\n return - 1 ;\n }\n if ( jpc_putdata ( enc -> out , enc -> tmpstream , - 1 ) ) {\n return - 1 ;\n }\n enc -> len += tilelen ;\n jas_stream_close ( enc -> tmpstream ) ;\n enc -> tmpstream = 0 ;\n jpc_enc_tile_destroy ( enc -> curtile ) ;\n enc -> curtile = 0 ;\n }\n return 0 ;\n }"}
{"idx": 19550, "target": 0, "func": "virLogOutputPtr virLogOutputNew ( virLogOutputFunc f , virLogCloseFunc c , void * data , virLogPriority priority , virLogDestination dest , const char * name ) {\n virLogOutputPtr ret = NULL ;\n char * ndup = NULL ;\n if ( dest == VIR_LOG_TO_SYSLOG || dest == VIR_LOG_TO_FILE ) {\n if ( ! name ) {\n virReportError ( VIR_ERR_INVALID_ARG , \"%s\" , _ ( \"Missing auxiliary data in output definition\" ) ) ;\n return NULL ;\n }\n if ( VIR_STRDUP ( ndup , name ) < 0 ) return NULL ;\n }\n if ( VIR_ALLOC ( ret ) < 0 ) {\n VIR_FREE ( ndup ) ;\n return NULL ;\n }\n ret -> logInitMessage = true ;\n ret -> f = f ;\n ret -> c = c ;\n ret -> data = data ;\n ret -> priority = priority ;\n ret -> dest = dest ;\n ret -> name = ndup ;\n return ret ;\n }"}
{"idx": 19551, "target": 0, "func": "static apr_status_t modsecurity_process_phase_request_body ( modsec_rec * msr ) {\n apr_time_t time_before ;\n apr_status_t rc = 0 ;\n if ( ( msr -> allow_scope == ACTION_ALLOW_REQUEST ) || ( msr -> allow_scope == ACTION_ALLOW ) ) {\n if ( msr -> txcfg -> debuglog_level >= 4 ) {\n msr_log ( msr , 4 , \"Skipping phase REQUEST_BODY (allow used).\" ) ;\n }\n return 0 ;\n }\n else {\n if ( msr -> txcfg -> debuglog_level >= 4 ) {\n msr_log ( msr , 4 , \"Starting phase REQUEST_BODY.\" ) ;\n }\n }\n time_before = apr_time_now ( ) ;\n if ( msr -> txcfg -> ruleset != NULL ) {\n rc = msre_ruleset_process_phase ( msr -> txcfg -> ruleset , msr ) ;\n }\n msr -> time_phase2 = apr_time_now ( ) - time_before ;\n return rc ;\n }"}
{"idx": 19552, "target": 0, "func": "int dtls1_check_timeout_num ( SSL * s ) {\n unsigned int mtu ;\n s -> d1 -> timeout . num_alerts ++ ;\n if ( s -> d1 -> timeout . num_alerts > 2 && ! ( SSL_get_options ( s ) & SSL_OP_NO_QUERY_MTU ) ) {\n mtu = BIO_ctrl ( SSL_get_wbio ( s ) , BIO_CTRL_DGRAM_GET_FALLBACK_MTU , 0 , NULL ) ;\n if ( mtu < s -> d1 -> mtu ) s -> d1 -> mtu = mtu ;\n }\n if ( s -> d1 -> timeout . num_alerts > DTLS1_TMO_ALERT_COUNT ) {\n SSLerr ( SSL_F_DTLS1_CHECK_TIMEOUT_NUM , SSL_R_READ_TIMEOUT_EXPIRED ) ;\n return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 19553, "target": 0, "func": "int qemuMonitorTextSetMigrationDowntime ( qemuMonitorPtr mon , unsigned long long downtime ) {\n char * cmd = NULL ;\n char * info = NULL ;\n int ret = - 1 ;\n if ( virAsprintf ( & cmd , \"migrate_set_downtime %llums\" , downtime ) < 0 ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & info ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , _ ( \"could not set maximum migration downtime\" ) ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( info ) ;\n VIR_FREE ( cmd ) ;\n return ret ;\n }"}
{"idx": 19554, "target": 1, "func": "static VALUE cState_indent_set ( VALUE self , VALUE indent ) {\n unsigned long len ;\n GET_STATE ( self ) ;\n Check_Type ( indent , T_STRING ) ;\n len = RSTRING_LEN ( indent ) ;\n if ( len == 0 ) {\n if ( state -> indent ) {\n ruby_xfree ( state -> indent ) ;\n state -> indent = NULL ;\n state -> indent_len = 0 ;\n }\n }\n else {\n if ( state -> indent ) ruby_xfree ( state -> indent ) ;\n state -> indent = strdup ( RSTRING_PTR ( indent ) ) ;\n state -> indent_len = len ;\n }\n return Qnil ;\n }"}
{"idx": 19555, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize ) ;\n DECL_PIOCTL ( PGetCacheSize ) ;\n DECL_PIOCTL ( PRemoveCallBack ) ;\n DECL_PIOCTL ( PNewCell ) ;\n DECL_PIOCTL ( PNewAlias ) ;\n DECL_PIOCTL ( PListCells ) ;\n DECL_PIOCTL ( PListAliases ) ;\n DECL_PIOCTL ( PRemoveMount ) ;\n DECL_PIOCTL ( PGetCellStatus ) ;\n DECL_PIOCTL ( PSetCellStatus ) ;\n DECL_PIOCTL ( PFlushVolumeData ) ;\n DECL_PIOCTL ( PFlushAllVolumeData ) ;\n DECL_PIOCTL ( PGetVnodeXStatus ) ;\n DECL_PIOCTL ( PGetVnodeXStatus2 ) ;\n DECL_PIOCTL ( PSetSysName ) ;\n DECL_PIOCTL ( PSetSPrefs ) ;\n DECL_PIOCTL ( PSetSPrefs33 ) ;\n DECL_PIOCTL ( PGetSPrefs ) ;\n DECL_PIOCTL ( PExportAfs ) ;\n DECL_PIOCTL ( PGag ) ;\n DECL_PIOCTL ( PTwiddleRx )"}
{"idx": 19556, "target": 0, "func": "static int getSingletonPos ( const char * str ) {\n int result = - 1 ;\n int i = 0 ;\n int len = 0 ;\n if ( str && ( ( len = strlen ( str ) ) > 0 ) ) {\n for ( i = 0 ;\n i < len ;\n i ++ ) {\n if ( isIDSeparator ( * ( str + i ) ) ) {\n if ( i == 1 ) {\n result = 0 ;\n break ;\n }\n else {\n if ( isIDSeparator ( * ( str + i + 2 ) ) ) {\n result = i + 1 ;\n break ;\n }\n }\n }\n }\n }\n return result ;\n }"}
{"idx": 19557, "target": 0, "func": "long dtls1_get_message ( SSL * s , int st1 , int stn , int mt , long max , int * ok ) {\n int i , al ;\n struct hm_header_st * msg_hdr ;\n unsigned char * p ;\n unsigned long msg_len ;\n if ( s -> s3 -> tmp . reuse_message ) {\n s -> s3 -> tmp . reuse_message = 0 ;\n if ( ( mt >= 0 ) && ( s -> s3 -> tmp . message_type != mt ) ) {\n al = SSL_AD_UNEXPECTED_MESSAGE ;\n SSLerr ( SSL_F_DTLS1_GET_MESSAGE , SSL_R_UNEXPECTED_MESSAGE ) ;\n goto f_err ;\n }\n * ok = 1 ;\n s -> init_msg = s -> init_buf -> data + DTLS1_HM_HEADER_LENGTH ;\n s -> init_num = ( int ) s -> s3 -> tmp . message_size ;\n return s -> init_num ;\n }\n msg_hdr = & s -> d1 -> r_msg_hdr ;\n memset ( msg_hdr , 0x00 , sizeof ( struct hm_header_st ) ) ;\n again : i = dtls1_get_message_fragment ( s , st1 , stn , max , ok ) ;\n if ( i == DTLS1_HM_BAD_FRAGMENT || i == DTLS1_HM_FRAGMENT_RETRY ) goto again ;\n else if ( i <= 0 && ! * ok ) return i ;\n p = ( unsigned char * ) s -> init_buf -> data ;\n msg_len = msg_hdr -> msg_len ;\n * ( p ++ ) = msg_hdr -> type ;\n l2n3 ( msg_len , p ) ;\n s2n ( msg_hdr -> seq , p ) ;\n l2n3 ( 0 , p ) ;\n l2n3 ( msg_len , p ) ;\n if ( s -> version != DTLS1_BAD_VER ) {\n p -= DTLS1_HM_HEADER_LENGTH ;\n msg_len += DTLS1_HM_HEADER_LENGTH ;\n }\n ssl3_finish_mac ( s , p , msg_len ) ;\n if ( s -> msg_callback ) s -> msg_callback ( 0 , s -> version , SSL3_RT_HANDSHAKE , p , msg_len , s , s -> msg_callback_arg ) ;\n memset ( msg_hdr , 0x00 , sizeof ( struct hm_header_st ) ) ;\n if ( ! s -> d1 -> listen ) s -> d1 -> handshake_read_seq ++ ;\n s -> init_msg = s -> init_buf -> data + DTLS1_HM_HEADER_LENGTH ;\n return s -> init_num ;\n f_err : ssl3_send_alert ( s , SSL3_AL_FATAL , al ) ;\n * ok = 0 ;\n return - 1 ;\n }"}
{"idx": 19558, "target": 0, "func": "kadm5_ret_t kadm5_modify_policy_internal ( void * server_handle , kadm5_policy_ent_t entry , long mask ) {\n kadm5_server_handle_t handle = server_handle ;\n krb5_tl_data * tl ;\n osa_policy_ent_t p ;\n int ret ;\n size_t len ;\n CHECK_HANDLE ( server_handle ) ;\n if ( ( entry == ( kadm5_policy_ent_t ) NULL ) || ( entry -> policy == NULL ) ) return EINVAL ;\n if ( strlen ( entry -> policy ) == 0 ) return KADM5_BAD_POLICY ;\n if ( ( mask & KADM5_POLICY ) ) return KADM5_BAD_MASK ;\n if ( ( mask & KADM5_POLICY_ALLOWED_KEYSALTS ) && entry -> allowed_keysalts != NULL ) {\n ret = validate_allowed_keysalts ( entry -> allowed_keysalts ) ;\n if ( ret ) return ret ;\n }\n if ( ( mask & KADM5_POLICY_TL_DATA ) ) {\n tl = entry -> tl_data ;\n while ( tl != NULL ) {\n if ( tl -> tl_data_type < 256 ) return KADM5_BAD_TL_TYPE ;\n tl = tl -> tl_data_next ;\n }\n }\n ret = krb5_db_get_policy ( handle -> context , entry -> policy , & p ) ;\n if ( ret == KRB5_KDB_NOENTRY ) return KADM5_UNK_POLICY ;\n else if ( ret ) return ret ;\n if ( ( mask & KADM5_PW_MAX_LIFE ) ) p -> pw_max_life = entry -> pw_max_life ;\n if ( ( mask & KADM5_PW_MIN_LIFE ) ) {\n if ( entry -> pw_min_life > p -> pw_max_life && p -> pw_max_life != 0 ) {\n krb5_db_free_policy ( handle -> context , p ) ;\n return KADM5_BAD_MIN_PASS_LIFE ;\n }\n p -> pw_min_life = entry -> pw_min_life ;\n }\n if ( ( mask & KADM5_PW_MIN_LENGTH ) ) {\n if ( entry -> pw_min_length < MIN_PW_LENGTH ) {\n krb5_db_free_policy ( handle -> context , p ) ;\n return KADM5_BAD_LENGTH ;\n }\n p -> pw_min_length = entry -> pw_min_length ;\n }\n if ( ( mask & KADM5_PW_MIN_CLASSES ) ) {\n if ( entry -> pw_min_classes > MAX_PW_CLASSES || entry -> pw_min_classes < MIN_PW_CLASSES ) {\n krb5_db_free_policy ( handle -> context , p ) ;\n return KADM5_BAD_CLASS ;\n }\n p -> pw_min_classes = entry -> pw_min_classes ;\n }\n if ( ( mask & KADM5_PW_HISTORY_NUM ) ) {\n if ( entry -> pw_history_num < MIN_PW_HISTORY ) {\n krb5_db_free_policy ( handle -> context , p ) ;\n return KADM5_BAD_HISTORY ;\n }\n p -> pw_history_num = entry -> pw_history_num ;\n }\n if ( handle -> api_version >= KADM5_API_VERSION_3 ) {\n if ( ( mask & KADM5_PW_MAX_FAILURE ) ) p -> pw_max_fail = entry -> pw_max_fail ;\n if ( ( mask & KADM5_PW_FAILURE_COUNT_INTERVAL ) ) p -> pw_failcnt_interval = entry -> pw_failcnt_interval ;\n if ( ( mask & KADM5_PW_LOCKOUT_DURATION ) ) p -> pw_lockout_duration = entry -> pw_lockout_duration ;\n }\n if ( handle -> api_version >= KADM5_API_VERSION_4 ) {\n if ( ( mask & KADM5_POLICY_ATTRIBUTES ) ) p -> attributes = entry -> attributes ;\n if ( ( mask & KADM5_POLICY_MAX_LIFE ) ) p -> max_life = entry -> max_life ;\n if ( ( mask & KADM5_POLICY_MAX_RLIFE ) ) p -> max_renewable_life = entry -> max_renewable_life ;\n if ( ( mask & KADM5_POLICY_ALLOWED_KEYSALTS ) ) {\n krb5_db_free ( handle -> context , p -> allowed_keysalts ) ;\n p -> allowed_keysalts = NULL ;\n if ( entry -> allowed_keysalts != NULL ) {\n len = strlen ( entry -> allowed_keysalts ) + 1 ;\n p -> allowed_keysalts = krb5_db_alloc ( handle -> context , NULL , len ) ;\n if ( p -> allowed_keysalts == NULL ) {\n ret = ENOMEM ;\n goto cleanup ;\n }\n memcpy ( p -> allowed_keysalts , entry -> allowed_keysalts , len ) ;\n }\n }\n if ( ( mask & KADM5_POLICY_TL_DATA ) ) {\n for ( tl = entry -> tl_data ;\n tl != NULL ;\n tl = tl -> tl_data_next ) {\n ret = krb5_db_update_tl_data ( handle -> context , & p -> n_tl_data , & p -> tl_data , tl ) ;\n if ( ret ) goto cleanup ;\n }\n }\n }\n ret = krb5_db_put_policy ( handle -> context , p ) ;\n cleanup : krb5_db_free_policy ( handle -> context , p ) ;\n return ret ;\n }"}
{"idx": 19559, "target": 0, "func": "TEST_F ( ShortcutsProviderTest , DeleteMatch ) {\n TestShortcutData shortcuts_to_test_delete [ ] = {\n {\n \"BD85DBA2-8C29-49F9-84AE-48E1E90881F1\" , \"delete\" , \"www.deletetest.com/1\" , \"http://www.deletetest.com/1\" , \"http://www.deletetest.com/1\" , \"0,2\" , \"Erase this shortcut!\" , \"0,0\" , ui : : PAGE_TRANSITION_TYPED , AutocompleteMatchType : : HISTORY_URL , \"\" , 1 , 1 }\n , {\n \"BD85DBA2-8C29-49F9-84AE-48E1E90881F2\" , \"erase\" , \"www.deletetest.com/1\" , \"http://www.deletetest.com/1\" , \"http://www.deletetest.com/1\" , \"0,2\" , \"Erase this shortcut!\" , \"0,0\" , ui : : PAGE_TRANSITION_TYPED , AutocompleteMatchType : : HISTORY_TITLE , \"\" , 1 , 1 }\n , {\n \"BD85DBA2-8C29-49F9-84AE-48E1E90881F3\" , \"keep\" , \"www.deletetest.com/1/2\" , \"http://www.deletetest.com/1/2\" , \"http://www.deletetest.com/1/2\" , \"0,2\" , \"Keep this shortcut!\" , \"0,0\" , ui : : PAGE_TRANSITION_TYPED , AutocompleteMatchType : : HISTORY_TITLE , \"\" , 1 , 1 }\n , {\n \"BD85DBA2-8C29-49F9-84AE-48E1E90881F4\" , \"delete\" , \"www.deletetest.com/2\" , \"http://www.deletetest.com/2\" , \"http://www.deletetest.com/2\" , \"0,2\" , \"Erase this shortcut!\" , \"0,0\" , ui : : PAGE_TRANSITION_TYPED , AutocompleteMatchType : : HISTORY_URL , \"\" , 1 , 1 }\n , }\n ;\n scoped_refptr < ShortcutsBackend > backend = client_ -> GetShortcutsBackend ( ) ;\n size_t original_shortcuts_count = backend -> shortcuts_map ( ) . size ( ) ;\n PopulateShortcutsBackendWithTestData ( backend , shortcuts_to_test_delete , arraysize ( shortcuts_to_test_delete ) ) ;\n EXPECT_EQ ( original_shortcuts_count + 4 , backend -> shortcuts_map ( ) . size ( ) ) ;\n EXPECT_FALSE ( backend -> shortcuts_map ( ) . end ( ) == backend -> shortcuts_map ( ) . find ( ASCIIToUTF16 ( \"delete\" ) ) ) ;\n EXPECT_FALSE ( backend -> shortcuts_map ( ) . end ( ) == backend -> shortcuts_map ( ) . find ( ASCIIToUTF16 ( \"erase\" ) ) ) ;\n AutocompleteMatch match ( provider_ . get ( ) , 1200 , true , AutocompleteMatchType : : HISTORY_TITLE ) ;\n match . destination_url = GURL ( shortcuts_to_test_delete [ 0 ] . destination_url ) ;\n match . contents = ASCIIToUTF16 ( shortcuts_to_test_delete [ 0 ] . contents ) ;\n match . description = ASCIIToUTF16 ( shortcuts_to_test_delete [ 0 ] . description ) ;\n provider_ -> DeleteMatch ( match ) ;\n EXPECT_EQ ( original_shortcuts_count + 2 , backend -> shortcuts_map ( ) . size ( ) ) ;\n EXPECT_FALSE ( backend -> shortcuts_map ( ) . end ( ) == backend -> shortcuts_map ( ) . find ( ASCIIToUTF16 ( \"delete\" ) ) ) ;\n EXPECT_TRUE ( backend -> shortcuts_map ( ) . end ( ) == backend -> shortcuts_map ( ) . find ( ASCIIToUTF16 ( \"erase\" ) ) ) ;\n match . destination_url = GURL ( shortcuts_to_test_delete [ 3 ] . destination_url ) ;\n match . contents = ASCIIToUTF16 ( shortcuts_to_test_delete [ 3 ] . contents ) ;\n match . description = ASCIIToUTF16 ( shortcuts_to_test_delete [ 3 ] . description ) ;\n provider_ -> DeleteMatch ( match ) ;\n EXPECT_EQ ( original_shortcuts_count + 1 , backend -> shortcuts_map ( ) . size ( ) ) ;\n EXPECT_TRUE ( backend -> shortcuts_map ( ) . end ( ) == backend -> shortcuts_map ( ) . find ( ASCIIToUTF16 ( \"delete\" ) ) ) ;\n }"}
{"idx": 19560, "target": 1, "func": "static void dissect_cip_safety_data ( proto_tree * tree , proto_item * item , tvbuff_t * tvb , int item_length , packet_info * pinfo ) {\n int base_length , io_data_size ;\n gboolean multicast = ( ( ( pntoh32 ( pinfo -> dst . data ) ) & 0xf0000000 ) == 0xe0000000 ) ;\n gboolean server_dir = FALSE ;\n enum enip_connid_type conn_type = ECIDT_UNKNOWN ;\n enum cip_safety_format_type format = CIP_SAFETY_BASE_FORMAT ;\n cip_safety_info_t * safety_info = ( cip_safety_info_t * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_cipsafety , 0 ) ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"CIP Safety\" ) ;\n if ( safety_info != NULL ) {\n conn_type = safety_info -> conn_type ;\n format = safety_info -> format ;\n server_dir = safety_info -> server_dir ;\n }\n base_length = multicast ? 12 : 6 ;\n if ( ( ( conn_type == ECIDT_O2T ) && ( server_dir == FALSE ) ) || ( ( conn_type == ECIDT_T2O ) && ( server_dir == TRUE ) ) ) {\n dissect_ack_byte ( tree , tvb , 0 , pinfo ) ;\n proto_tree_add_item ( tree , hf_cipsafety_consumer_time_value , tvb , 1 , 2 , ENC_LITTLE_ENDIAN ) ;\n switch ( format ) {\n case CIP_SAFETY_BASE_FORMAT : proto_tree_add_item ( tree , hf_cipsafety_ack_byte2 , tvb , 3 , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_cipsafety_crc_s3 , tvb , 4 , 2 , ENC_LITTLE_ENDIAN ) ;\n break ;\n case CIP_SAFETY_EXTENDED_FORMAT : proto_tree_add_item ( tree , hf_cipsafety_crc_s5_0 , tvb , 3 , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_cipsafety_crc_s5_1 , tvb , 4 , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_cipsafety_crc_s5_2 , tvb , 5 , 1 , ENC_LITTLE_ENDIAN ) ;\n break ;\n }\n }\n else if ( ( ( conn_type == ECIDT_O2T ) && ( server_dir == TRUE ) ) || ( ( conn_type == ECIDT_T2O ) && ( server_dir == FALSE ) ) ) {\n switch ( format ) {\n case CIP_SAFETY_BASE_FORMAT : if ( item_length - base_length <= 2 ) {\n proto_tree_add_item ( tree , hf_cipsafety_data , tvb , 0 , item_length - base_length , ENC_NA ) ;\n dissect_mode_byte ( tree , tvb , item_length - base_length , pinfo ) ;\n proto_tree_add_item ( tree , hf_cipsafety_crc_s1 , tvb , item_length - base_length + 1 , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_cipsafety_crc_s2 , tvb , item_length - base_length + 2 , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_cipsafety_timestamp , tvb , item_length - base_length + 3 , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_cipsafety_crc_s1 , tvb , item_length - base_length + 5 , 1 , ENC_LITTLE_ENDIAN ) ;\n if ( multicast ) {\n dissect_mcast_byte ( tree , tvb , item_length - 6 , pinfo ) ;\n proto_tree_add_item ( tree , hf_cipsafety_time_correction , tvb , item_length - 5 , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_cipsafety_mcast_byte2 , tvb , item_length - 3 , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_cipsafety_crc_s3 , tvb , item_length - 2 , 2 , ENC_LITTLE_ENDIAN ) ;\n }\n }\n else {\n if ( item_length % 2 == 1 ) {\n expert_add_info ( pinfo , item , & ei_mal_io ) ;\n return ;\n }\n io_data_size = multicast ? ( ( item_length - 14 ) / 2 ) : ( ( item_length - 8 ) / 2 ) ;\n proto_tree_add_item ( tree , hf_cipsafety_data , tvb , 0 , io_data_size , ENC_NA ) ;\n dissect_mode_byte ( tree , tvb , io_data_size , pinfo ) ;\n proto_tree_add_item ( tree , hf_cipsafety_crc_s3 , tvb , io_data_size + 1 , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_cipsafety_complement_data , tvb , io_data_size + 3 , io_data_size , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_cipsafety_crc_s3 , tvb , ( io_data_size * 2 ) + 3 , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_cipsafety_timestamp , tvb , ( io_data_size * 2 ) + 5 , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_cipsafety_crc_s1 , tvb , ( io_data_size * 2 ) + 7 , 1 , ENC_LITTLE_ENDIAN ) ;\n if ( multicast ) {\n dissect_mcast_byte ( tree , tvb , ( io_data_size * 2 ) + 5 , pinfo ) ;\n proto_tree_add_item ( tree , hf_cipsafety_time_correction , tvb , ( io_data_size * 2 ) + 6 , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_cipsafety_mcast_byte2 , tvb , ( io_data_size * 2 ) + 8 , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_cipsafety_crc_s3 , tvb , ( io_data_size * 2 ) + 9 , 2 , ENC_LITTLE_ENDIAN ) ;\n }\n }\n break ;\n case CIP_SAFETY_EXTENDED_FORMAT : if ( item_length - base_length <= 2 ) {\n proto_tree_add_item ( tree , hf_cipsafety_data , tvb , 0 , item_length - base_length , ENC_NA ) ;\n dissect_mode_byte ( tree , tvb , item_length - base_length , pinfo ) ;\n proto_tree_add_item ( tree , hf_cipsafety_crc_s5_0 , tvb , item_length - base_length + 1 , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_cipsafety_crc_s5_1 , tvb , item_length - base_length + 2 , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_cipsafety_timestamp , tvb , item_length - base_length + 3 , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_cipsafety_crc_s5_2 , tvb , item_length - base_length + 5 , 1 , ENC_LITTLE_ENDIAN ) ;\n if ( multicast ) {\n dissect_mcast_byte ( tree , tvb , item_length - 6 , pinfo ) ;\n proto_tree_add_item ( tree , hf_cipsafety_time_correction , tvb , item_length - 5 , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_cipsafety_crc_s5_0 , tvb , item_length - 3 , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_cipsafety_crc_s5_1 , tvb , item_length - 2 , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_cipsafety_crc_s5_2 , tvb , item_length - 1 , 1 , ENC_LITTLE_ENDIAN ) ;\n }\n }\n else {\n if ( item_length % 2 == 1 ) {\n expert_add_info ( pinfo , item , & ei_mal_io ) ;\n return ;\n }\n io_data_size = multicast ? ( ( item_length - 14 ) / 2 ) : ( ( item_length - 8 ) / 2 ) ;\n proto_tree_add_item ( tree , hf_cipsafety_data , tvb , 0 , io_data_size , ENC_NA ) ;\n dissect_mode_byte ( tree , tvb , io_data_size , pinfo ) ;\n proto_tree_add_item ( tree , hf_cipsafety_crc_s3 , tvb , io_data_size + 1 , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_cipsafety_complement_data , tvb , io_data_size + 3 , io_data_size , ENC_NA ) ;\n proto_tree_add_item ( tree , hf_cipsafety_crc_s5_0 , tvb , ( io_data_size * 2 ) + 3 , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_cipsafety_crc_s5_1 , tvb , ( io_data_size * 2 ) + 4 , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_cipsafety_timestamp , tvb , ( io_data_size * 2 ) + 5 , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_cipsafety_crc_s5_2 , tvb , ( io_data_size * 2 ) + 7 , 1 , ENC_LITTLE_ENDIAN ) ;\n if ( multicast ) {\n dissect_mcast_byte ( tree , tvb , ( io_data_size * 2 ) + 8 , pinfo ) ;\n proto_tree_add_item ( tree , hf_cipsafety_time_correction , tvb , ( io_data_size * 2 ) + 9 , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_cipsafety_crc_s5_0 , tvb , ( io_data_size * 2 ) + 11 , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_cipsafety_crc_s5_1 , tvb , ( io_data_size * 2 ) + 12 , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_cipsafety_crc_s5_2 , tvb , ( io_data_size * 2 ) + 13 , 1 , ENC_LITTLE_ENDIAN ) ;\n }\n }\n break ;\n }\n }\n else {\n proto_tree_add_item ( tree , hf_cipsafety_data , tvb , 0 , item_length , ENC_NA ) ;\n }\n }"}
{"idx": 19561, "target": 0, "func": "static void U_CALLCONV _SCSUClose ( UConverter * cnv ) {\n if ( cnv -> extraInfo != NULL ) {\n if ( ! cnv -> isExtraLocal ) {\n uprv_free ( cnv -> extraInfo ) ;\n }\n cnv -> extraInfo = NULL ;\n }\n }"}
{"idx": 19562, "target": 1, "func": "static spl_filesystem_object * spl_filesystem_object_create_info ( spl_filesystem_object * source , char * file_path , int file_path_len , int use_copy , zend_class_entry * ce , zval * return_value TSRMLS_DC ) {\n spl_filesystem_object * intern ;\n zval * arg1 ;\n zend_error_handling error_handling ;\n if ( ! file_path || ! file_path_len ) {\n # if defined ( PHP_WIN32 ) zend_throw_exception_ex ( spl_ce_RuntimeException , 0 TSRMLS_CC , \"Cannot create SplFileInfo for empty path\" ) ;\n if ( file_path && ! use_copy ) {\n efree ( file_path ) ;\n }\n # else if ( file_path && ! use_copy ) {\n efree ( file_path ) ;\n }\n file_path_len = 1 ;\n file_path = \"/\" ;\n # endif return NULL ;\n }\n zend_replace_error_handling ( EH_THROW , spl_ce_RuntimeException , & error_handling TSRMLS_CC ) ;\n ce = ce ? ce : source -> info_class ;\n zend_update_class_constants ( ce TSRMLS_CC ) ;\n return_value -> value . obj = spl_filesystem_object_new_ex ( ce , & intern TSRMLS_CC ) ;\n Z_TYPE_P ( return_value ) = IS_OBJECT ;\n if ( ce -> constructor -> common . scope != spl_ce_SplFileInfo ) {\n MAKE_STD_ZVAL ( arg1 ) ;\n ZVAL_STRINGL ( arg1 , file_path , file_path_len , use_copy ) ;\n zend_call_method_with_1_params ( & return_value , ce , & ce -> constructor , \"__construct\" , NULL , arg1 ) ;\n zval_ptr_dtor ( & arg1 ) ;\n }\n else {\n spl_filesystem_info_set_filename ( intern , file_path , file_path_len , use_copy TSRMLS_CC ) ;\n }\n zend_restore_error_handling ( & error_handling TSRMLS_CC ) ;\n return intern ;\n }"}
{"idx": 19563, "target": 0, "func": "static int dissect_pvfs2_mgmt_setparam_response ( tvbuff_t * tvb , proto_tree * tree , int offset ) {\n proto_tree_add_item ( tree , hf_pvfs_prev_value , tvb , offset , 8 , ENC_LITTLE_ENDIAN ) ;\n offset += 8 ;\n return offset ;\n }"}
{"idx": 19564, "target": 0, "func": "static void incomplete_class_unset_property ( zval * object , zval * member , const zend_literal * key TSRMLS_DC ) {\n incomplete_class_message ( object , E_NOTICE TSRMLS_CC ) ;\n }"}
{"idx": 19565, "target": 0, "func": "static afs_int32 WhoIsThisWithName ( struct rx_call * acall , struct ubik_trans * at , afs_int32 * aid , char * aname ) {\n struct rx_connection * tconn ;\n afs_int32 code ;\n char tcell [ MAXKTCREALMLEN ] ;\n char name [ MAXKTCNAMELEN ] ;\n char inst [ MAXKTCNAMELEN ] ;\n int ilen ;\n char vname [ 256 ] ;\n * aid = ANONYMOUSID ;\n tconn = rx_ConnectionOf ( acall ) ;\n code = rx_SecurityClassOf ( tconn ) ;\n if ( code == 0 ) return 0 ;\n else if ( code == 1 ) {\n goto done ;\n }\n else if ( code == 2 ) {\n int clen ;\n if ( ( code = rxkad_GetServerInfo ( acall -> conn , NULL , 0 , name , inst , tcell , NULL ) ) ) goto done ;\n strncpy ( vname , name , sizeof ( vname ) ) ;\n if ( ( ilen = strlen ( inst ) ) ) {\n if ( strlen ( vname ) + 1 + ilen >= sizeof ( vname ) ) goto done ;\n strcat ( vname , \".\" ) ;\n strcat ( vname , inst ) ;\n }\n if ( ( clen = strlen ( tcell ) ) ) {\n int foreign = afs_is_foreign_ticket_name ( name , inst , tcell , pr_realmName ) ;\n if ( foreign ) {\n if ( strlen ( vname ) + 1 + clen >= sizeof ( vname ) ) goto done ;\n strcat ( vname , \"@\" ) ;\n strcat ( vname , tcell ) ;\n lcstring ( vname , vname , sizeof ( vname ) ) ;\n code = NameToID ( at , vname , aid ) ;\n strcpy ( aname , vname ) ;\n return 2 ;\n }\n }\n if ( strcmp ( AUTH_SUPERUSER , vname ) == 0 ) * aid = SYSADMINID ;\n else {\n lcstring ( vname , vname , sizeof ( vname ) ) ;\n code = NameToID ( at , vname , aid ) ;\n }\n }\n done : if ( code && ! pr_noAuth ) return - 1 ;\n return 0 ;\n }"}
{"idx": 19566, "target": 0, "func": "static void _slurm_rpc_end_time ( slurm_msg_t * msg ) {\n DEF_TIMERS ;\n job_alloc_info_msg_t * time_req_msg = ( job_alloc_info_msg_t * ) msg -> data ;\n srun_timeout_msg_t timeout_msg ;\n slurm_msg_t response_msg ;\n int rc ;\n slurmctld_lock_t job_read_lock = {\n NO_LOCK , READ_LOCK , NO_LOCK , NO_LOCK , NO_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n START_TIMER ;\n debug2 ( \"Processing RPC: REQUEST_JOB_END_TIME from uid=%d\" , uid ) ;\n lock_slurmctld ( job_read_lock ) ;\n rc = job_end_time ( time_req_msg , & timeout_msg ) ;\n unlock_slurmctld ( job_read_lock ) ;\n END_TIMER2 ( \"_slurm_rpc_end_time\" ) ;\n if ( rc != SLURM_SUCCESS ) {\n slurm_send_rc_msg ( msg , rc ) ;\n }\n else {\n slurm_msg_t_init ( & response_msg ) ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . address = msg -> address ;\n response_msg . conn = msg -> conn ;\n response_msg . msg_type = SRUN_TIMEOUT ;\n response_msg . data = & timeout_msg ;\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n }\n debug2 ( \"_slurm_rpc_end_time jobid=%u %s\" , time_req_msg -> job_id , TIME_STR ) ;\n }"}
{"idx": 19567, "target": 0, "func": "int gs_pop_string ( gs_main_instance * minst , gs_string * result ) {\n i_ctx_t * i_ctx_p = minst -> i_ctx_p ;\n ref vref ;\n int code = pop_value ( i_ctx_p , & vref ) ;\n if ( code < 0 ) return code ;\n switch ( r_type ( & vref ) ) {\n case t_name : name_string_ref ( minst -> heap , & vref , & vref ) ;\n code = 1 ;\n goto rstr ;\n case t_string : code = ( r_has_attr ( & vref , a_write ) ? 0 : 1 ) ;\n rstr : result -> data = vref . value . bytes ;\n result -> size = r_size ( & vref ) ;\n break ;\n default : return_error ( gs_error_typecheck ) ;\n }\n ref_stack_pop ( & o_stack , 1 ) ;\n return code ;\n }"}
{"idx": 19568, "target": 0, "func": "static void dissect_q931_e2e_transit_delay_ie ( tvbuff_t * tvb , packet_info * pinfo , int offset , int len , proto_tree * tree , proto_item * item ) {\n int value_len ;\n if ( len == 0 ) return ;\n value_len = dissect_q931_guint16_value ( tvb , pinfo , offset , len , tree , item , hf_q931_cumulative_transit_delay ) ;\n if ( value_len < 0 ) return ;\n offset += value_len ;\n len -= value_len ;\n if ( len == 0 ) return ;\n value_len = dissect_q931_guint16_value ( tvb , pinfo , offset , len , tree , item , hf_q931_requested_end_to_end_transit_delay ) ;\n if ( value_len < 0 ) return ;\n offset += value_len ;\n len -= value_len ;\n if ( len == 0 ) return ;\n dissect_q931_guint16_value ( tvb , pinfo , offset , len , tree , item , hf_q931_maximum_end_to_end_transit_delay ) ;\n }"}
{"idx": 19569, "target": 0, "func": "static void jbig2_decode_mmr_init ( Jbig2MmrCtx * mmr , int width , int height , const byte * data , size_t size ) {\n size_t i ;\n uint32_t word = 0 ;\n mmr -> width = width ;\n mmr -> height = height ;\n mmr -> data = data ;\n mmr -> size = size ;\n mmr -> data_index = 0 ;\n mmr -> bit_index = 0 ;\n for ( i = 0 ;\n i < size && i < 4 ;\n i ++ ) word |= ( data [ i ] << ( ( 3 - i ) << 3 ) ) ;\n mmr -> word = word ;\n }"}
{"idx": 19570, "target": 0, "func": "void jpc_ft_invlift_col ( jpc_fix_t * a , int numrows , int stride , int parity ) {\n jpc_fix_t * lptr ;\n jpc_fix_t * hptr ;\n # if 0 register jpc_fix_t * lptr2 ;\n register jpc_fix_t * hptr2 ;\n register int i ;\n # endif register int n ;\n int llen ;\n llen = ( numrows + 1 - parity ) >> 1 ;\n if ( numrows > 1 ) {\n lptr = & a [ 0 ] ;\n hptr = & a [ llen * stride ] ;\n if ( ! parity ) {\n lptr [ 0 ] -= jpc_fix_asr ( hptr [ 0 ] + 1 , 1 ) ;\n lptr += stride ;\n }\n n = llen - ( ! parity ) - ( parity != ( numrows & 1 ) ) ;\n while ( n -- > 0 ) {\n lptr [ 0 ] -= jpc_fix_asr ( hptr [ 0 ] + hptr [ stride ] + 2 , 2 ) ;\n lptr += stride ;\n hptr += stride ;\n }\n if ( parity != ( numrows & 1 ) ) {\n lptr [ 0 ] -= jpc_fix_asr ( hptr [ 0 ] + 1 , 1 ) ;\n }\n lptr = & a [ 0 ] ;\n hptr = & a [ llen * stride ] ;\n if ( parity ) {\n hptr [ 0 ] += lptr [ 0 ] ;\n hptr += stride ;\n }\n n = numrows - llen - parity - ( parity == ( numrows & 1 ) ) ;\n while ( n -- > 0 ) {\n hptr [ 0 ] += jpc_fix_asr ( lptr [ 0 ] + lptr [ stride ] , 1 ) ;\n hptr += stride ;\n lptr += stride ;\n }\n if ( parity == ( numrows & 1 ) ) {\n hptr [ 0 ] += lptr [ 0 ] ;\n }\n }\n else {\n if ( parity ) {\n lptr = & a [ 0 ] ;\n lptr [ 0 ] = jpc_fix_asr ( lptr [ 0 ] , 1 ) ;\n }\n }\n }"}
{"idx": 19571, "target": 0, "func": "unsigned long keydb_get_skipped_counter ( KEYDB_HANDLE hd ) {\n return hd ? hd -> skipped_long_blobs : 0 ;\n }"}
{"idx": 19572, "target": 0, "func": "static void dissect_u3v_event_cmd ( proto_tree * u3v_telegram_tree , tvbuff_t * tvb , packet_info * pinfo , gint startoffset , gint length ) {\n gint32 eventid ;\n gint offset = startoffset ;\n proto_item * item = NULL ;\n eventid = tvb_get_letohs ( tvb , offset + 2 ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \"[ID: 0x%04X]\" , eventid ) ;\n item = proto_tree_add_item ( u3v_telegram_tree , hf_u3v_scd_event_cmd , tvb , offset , length , ENC_NA ) ;\n u3v_telegram_tree = proto_item_add_subtree ( item , ett_u3v_payload_cmd ) ;\n offset += 2 ;\n if ( ( eventid >= 0x0000 ) && ( eventid <= 0x8000 ) ) {\n proto_tree_add_item ( u3v_telegram_tree , hf_u3v_eventcmd_id , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n }\n else if ( ( eventid >= 0x8001 ) && ( eventid <= 0x8FFF ) ) {\n proto_tree_add_item ( u3v_telegram_tree , hf_u3v_eventcmd_error_id , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n }\n else if ( ( eventid >= 0x9000 ) && ( eventid <= 0xFFFF ) ) {\n proto_tree_add_item ( u3v_telegram_tree , hf_u3v_eventcmd_device_specific_id , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n }\n offset += 2 ;\n proto_tree_add_item ( u3v_telegram_tree , hf_u3v_eventcmd_timestamp , tvb , offset , 8 , ENC_LITTLE_ENDIAN ) ;\n offset += 8 ;\n if ( length > offset ) {\n proto_tree_add_item ( u3v_telegram_tree , hf_u3v_eventcmd_data , tvb , offset , length - 12 , ENC_NA ) ;\n }\n }"}
{"idx": 19573, "target": 0, "func": "int EVP_CIPHER_CTX_ctrl ( EVP_CIPHER_CTX * ctx , int type , int arg , void * ptr ) {\n int ret ;\n if ( ! ctx -> cipher ) {\n EVPerr ( EVP_F_EVP_CIPHER_CTX_CTRL , EVP_R_NO_CIPHER_SET ) ;\n return 0 ;\n }\n if ( ! ctx -> cipher -> ctrl ) {\n EVPerr ( EVP_F_EVP_CIPHER_CTX_CTRL , EVP_R_CTRL_NOT_IMPLEMENTED ) ;\n return 0 ;\n }\n ret = ctx -> cipher -> ctrl ( ctx , type , arg , ptr ) ;\n if ( ret == - 1 ) {\n EVPerr ( EVP_F_EVP_CIPHER_CTX_CTRL , EVP_R_CTRL_OPERATION_NOT_IMPLEMENTED ) ;\n return 0 ;\n }\n return ret ;\n }"}
{"idx": 19574, "target": 0, "func": "static int qemuMonitorParseBalloonInfo ( char * text , virDomainMemoryStatPtr stats , unsigned int nr_stats ) {\n char * p = text ;\n unsigned int nr_stats_found = 0 ;\n if ( parseMemoryStat ( & p , VIR_DOMAIN_MEMORY_STAT_ACTUAL_BALLOON , \"actual=\" , & stats [ nr_stats_found ] ) == 1 ) {\n nr_stats_found ++ ;\n }\n while ( * p && nr_stats_found < nr_stats ) {\n if ( parseMemoryStat ( & p , VIR_DOMAIN_MEMORY_STAT_SWAP_IN , \",mem_swapped_in=\" , & stats [ nr_stats_found ] ) || parseMemoryStat ( & p , VIR_DOMAIN_MEMORY_STAT_SWAP_OUT , \",mem_swapped_out=\" , & stats [ nr_stats_found ] ) || parseMemoryStat ( & p , VIR_DOMAIN_MEMORY_STAT_MAJOR_FAULT , \",major_page_faults=\" , & stats [ nr_stats_found ] ) || parseMemoryStat ( & p , VIR_DOMAIN_MEMORY_STAT_MINOR_FAULT , \",minor_page_faults=\" , & stats [ nr_stats_found ] ) || parseMemoryStat ( & p , VIR_DOMAIN_MEMORY_STAT_UNUSED , \",free_mem=\" , & stats [ nr_stats_found ] ) || parseMemoryStat ( & p , VIR_DOMAIN_MEMORY_STAT_AVAILABLE , \",total_mem=\" , & stats [ nr_stats_found ] ) ) nr_stats_found ++ ;\n if ( * p == ',' ) p ++ ;\n p = strchr ( p , ',' ) ;\n if ( ! p ) break ;\n }\n return nr_stats_found ;\n }"}
{"idx": 19575, "target": 0, "func": "int check_definition ( MI_KEYDEF * t1_keyinfo , MI_COLUMNDEF * t1_recinfo , uint t1_keys , uint t1_recs , MI_KEYDEF * t2_keyinfo , MI_COLUMNDEF * t2_recinfo , uint t2_keys , uint t2_recs , bool strict , TABLE * table_arg ) {\n uint i , j ;\n DBUG_ENTER ( \"check_definition\" ) ;\n my_bool mysql_40_compat = table_arg && table_arg -> s -> frm_version < FRM_VER_TRUE_VARCHAR ;\n if ( ( strict ? t1_keys != t2_keys : t1_keys > t2_keys ) ) {\n DBUG_PRINT ( \"error\" , ( \"Number of keys differs: t1_keys=%u, t2_keys=%u\" , t1_keys , t2_keys ) ) ;\n DBUG_RETURN ( 1 ) ;\n }\n if ( t1_recs != t2_recs ) {\n DBUG_PRINT ( \"error\" , ( \"Number of recs differs: t1_recs=%u, t2_recs=%u\" , t1_recs , t2_recs ) ) ;\n DBUG_RETURN ( 1 ) ;\n }\n for ( i = 0 ;\n i < t1_keys ;\n i ++ ) {\n HA_KEYSEG * t1_keysegs = t1_keyinfo [ i ] . seg ;\n HA_KEYSEG * t2_keysegs = t2_keyinfo [ i ] . seg ;\n if ( t1_keyinfo [ i ] . flag & HA_FULLTEXT && t2_keyinfo [ i ] . flag & HA_FULLTEXT ) continue ;\n else if ( t1_keyinfo [ i ] . flag & HA_FULLTEXT || t2_keyinfo [ i ] . flag & HA_FULLTEXT ) {\n DBUG_PRINT ( \"error\" , ( \"Key %d has different definition\" , i ) ) ;\n DBUG_PRINT ( \"error\" , ( \"t1_fulltext= %d, t2_fulltext=%d\" , test ( t1_keyinfo [ i ] . flag & HA_FULLTEXT ) , test ( t2_keyinfo [ i ] . flag & HA_FULLTEXT ) ) ) ;\n DBUG_RETURN ( 1 ) ;\n }\n if ( t1_keyinfo [ i ] . flag & HA_SPATIAL && t2_keyinfo [ i ] . flag & HA_SPATIAL ) continue ;\n else if ( t1_keyinfo [ i ] . flag & HA_SPATIAL || t2_keyinfo [ i ] . flag & HA_SPATIAL ) {\n DBUG_PRINT ( \"error\" , ( \"Key %d has different definition\" , i ) ) ;\n DBUG_PRINT ( \"error\" , ( \"t1_spatial= %d, t2_spatial=%d\" , test ( t1_keyinfo [ i ] . flag & HA_SPATIAL ) , test ( t2_keyinfo [ i ] . flag & HA_SPATIAL ) ) ) ;\n DBUG_RETURN ( 1 ) ;\n }\n if ( ( ! mysql_40_compat && t1_keyinfo [ i ] . key_alg != t2_keyinfo [ i ] . key_alg ) || t1_keyinfo [ i ] . keysegs != t2_keyinfo [ i ] . keysegs ) {\n DBUG_PRINT ( \"error\" , ( \"Key %d has different definition\" , i ) ) ;\n DBUG_PRINT ( \"error\" , ( \"t1_keysegs=%d, t1_key_alg=%d\" , t1_keyinfo [ i ] . keysegs , t1_keyinfo [ i ] . key_alg ) ) ;\n DBUG_PRINT ( \"error\" , ( \"t2_keysegs=%d, t2_key_alg=%d\" , t2_keyinfo [ i ] . keysegs , t2_keyinfo [ i ] . key_alg ) ) ;\n DBUG_RETURN ( 1 ) ;\n }\n for ( j = t1_keyinfo [ i ] . keysegs ;\n j -- ;\n ) {\n uint8 t1_keysegs_j__type = t1_keysegs [ j ] . type ;\n if ( ( t1_keysegs [ j ] . flag & HA_BLOB_PART ) && ( t2_keysegs [ j ] . flag & HA_BLOB_PART ) ) {\n if ( ( t1_keysegs_j__type == HA_KEYTYPE_VARTEXT2 ) && ( t2_keysegs [ j ] . type == HA_KEYTYPE_VARTEXT1 ) ) t1_keysegs_j__type = HA_KEYTYPE_VARTEXT1 ;\n else if ( ( t1_keysegs_j__type == HA_KEYTYPE_VARBINARY2 ) && ( t2_keysegs [ j ] . type == HA_KEYTYPE_VARBINARY1 ) ) t1_keysegs_j__type = HA_KEYTYPE_VARBINARY1 ;\n }\n if ( ( ! mysql_40_compat && t1_keysegs [ j ] . language != t2_keysegs [ j ] . language ) || t1_keysegs_j__type != t2_keysegs [ j ] . type || t1_keysegs [ j ] . null_bit != t2_keysegs [ j ] . null_bit || t1_keysegs [ j ] . length != t2_keysegs [ j ] . length || t1_keysegs [ j ] . start != t2_keysegs [ j ] . start ) {\n DBUG_PRINT ( \"error\" , ( \"Key segment %d (key %d) has different \" \"definition\" , j , i ) ) ;\n DBUG_PRINT ( \"error\" , ( \"t1_type=%d, t1_language=%d, t1_null_bit=%d, \" \"t1_length=%d\" , t1_keysegs [ j ] . type , t1_keysegs [ j ] . language , t1_keysegs [ j ] . null_bit , t1_keysegs [ j ] . length ) ) ;\n DBUG_PRINT ( \"error\" , ( \"t2_type=%d, t2_language=%d, t2_null_bit=%d, \" \"t2_length=%d\" , t2_keysegs [ j ] . type , t2_keysegs [ j ] . language , t2_keysegs [ j ] . null_bit , t2_keysegs [ j ] . length ) ) ;\n DBUG_RETURN ( 1 ) ;\n }\n }\n }\n for ( i = 0 ;\n i < t1_recs ;\n i ++ ) {\n MI_COLUMNDEF * t1_rec = & t1_recinfo [ i ] ;\n MI_COLUMNDEF * t2_rec = & t2_recinfo [ i ] ;\n if ( ( t1_rec -> type != t2_rec -> type && ! ( t1_rec -> type == ( int ) FIELD_SKIP_ZERO && t1_rec -> length == 1 && t2_rec -> type == ( int ) FIELD_NORMAL ) ) || t1_rec -> length != t2_rec -> length || t1_rec -> null_bit != t2_rec -> null_bit ) {\n DBUG_PRINT ( \"error\" , ( \"Field %d has different definition\" , i ) ) ;\n DBUG_PRINT ( \"error\" , ( \"t1_type=%d, t1_length=%d, t1_null_bit=%d\" , t1_rec -> type , t1_rec -> length , t1_rec -> null_bit ) ) ;\n DBUG_PRINT ( \"error\" , ( \"t2_type=%d, t2_length=%d, t2_null_bit=%d\" , t2_rec -> type , t2_rec -> length , t2_rec -> null_bit ) ) ;\n DBUG_RETURN ( 1 ) ;\n }\n }\n DBUG_RETURN ( 0 ) ;\n }"}
{"idx": 19576, "target": 0, "func": "static double ineq_histogram_selectivity ( PlannerInfo * root , VariableStatData * vardata , FmgrInfo * opproc , bool isgt , Datum constval , Oid consttype ) {\n double hist_selec ;\n Oid hist_op ;\n Datum * values ;\n int nvalues ;\n hist_selec = - 1.0 ;\n if ( HeapTupleIsValid ( vardata -> statsTuple ) && statistic_proc_security_check ( vardata , opproc -> fn_oid ) && get_attstatsslot ( vardata -> statsTuple , vardata -> atttype , vardata -> atttypmod , STATISTIC_KIND_HISTOGRAM , InvalidOid , & hist_op , & values , & nvalues , NULL , NULL ) ) {\n if ( nvalues > 1 ) {\n double histfrac ;\n int lobound = 0 ;\n int hibound = nvalues ;\n bool have_end = false ;\n if ( nvalues == 2 ) have_end = get_actual_variable_range ( root , vardata , hist_op , & values [ 0 ] , & values [ 1 ] ) ;\n while ( lobound < hibound ) {\n int probe = ( lobound + hibound ) / 2 ;\n bool ltcmp ;\n if ( probe == 0 && nvalues > 2 ) have_end = get_actual_variable_range ( root , vardata , hist_op , & values [ 0 ] , NULL ) ;\n else if ( probe == nvalues - 1 && nvalues > 2 ) have_end = get_actual_variable_range ( root , vardata , hist_op , NULL , & values [ probe ] ) ;\n ltcmp = DatumGetBool ( FunctionCall2Coll ( opproc , DEFAULT_COLLATION_OID , values [ probe ] , constval ) ) ;\n if ( isgt ) ltcmp = ! ltcmp ;\n if ( ltcmp ) lobound = probe + 1 ;\n else hibound = probe ;\n }\n if ( lobound <= 0 ) {\n histfrac = 0.0 ;\n }\n else if ( lobound >= nvalues ) {\n histfrac = 1.0 ;\n }\n else {\n int i = lobound ;\n double val , high , low ;\n double binfrac ;\n if ( convert_to_scalar ( constval , consttype , & val , values [ i - 1 ] , values [ i ] , vardata -> vartype , & low , & high ) ) {\n if ( high <= low ) {\n binfrac = 0.5 ;\n }\n else if ( val <= low ) binfrac = 0.0 ;\n else if ( val >= high ) binfrac = 1.0 ;\n else {\n binfrac = ( val - low ) / ( high - low ) ;\n if ( isnan ( binfrac ) || binfrac < 0.0 || binfrac > 1.0 ) binfrac = 0.5 ;\n }\n }\n else {\n binfrac = 0.5 ;\n }\n histfrac = ( double ) ( i - 1 ) + binfrac ;\n histfrac /= ( double ) ( nvalues - 1 ) ;\n }\n hist_selec = isgt ? ( 1.0 - histfrac ) : histfrac ;\n if ( have_end ) CLAMP_PROBABILITY ( hist_selec ) ;\n else {\n if ( hist_selec < 0.0001 ) hist_selec = 0.0001 ;\n else if ( hist_selec > 0.9999 ) hist_selec = 0.9999 ;\n }\n }\n free_attstatsslot ( vardata -> atttype , values , nvalues , NULL , 0 ) ;\n }\n return hist_selec ;\n }"}
{"idx": 19577, "target": 0, "func": "int TSTrafficServerVersionGetMinor ( ) {\n return ts_minor_version ;\n }"}
{"idx": 19578, "target": 0, "func": "static gint dissect_vdp_cp_scms_t ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , void * data _U_ ) {\n proto_item * main_item ;\n proto_tree * main_tree ;\n gint offset = 0 ;\n main_item = proto_tree_add_item ( tree , proto_btvdp_cph_scms_t , tvb , offset , 1 , ENC_NA ) ;\n main_tree = proto_item_add_subtree ( main_item , ett_btvdp_cph_scms_t ) ;\n proto_tree_add_item ( main_tree , hf_btvdp_reserved , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( main_tree , hf_btvdp_cp_bit , tvb , offset , 1 , ENC_NA ) ;\n proto_tree_add_item ( main_tree , hf_btvdp_l_bit , tvb , offset , 1 , ENC_NA ) ;\n offset += 1 ;\n return offset ;\n }"}
{"idx": 19579, "target": 0, "func": "static void ctcp_msg_dcc_accept ( IRC_SERVER_REC * server , const char * data , const char * nick , const char * addr , const char * target , DCC_REC * chat ) {\n FILE_DCC_REC * dcc ;\n uoff_t size ;\n int pasv_id ;\n if ( ! dcc_ctcp_resume_parse ( DCC_GET_TYPE , data , nick , & dcc , & size , & pasv_id ) || ( dcc != NULL && DCC_GET ( dcc ) -> get_type != DCC_GET_RESUME ) ) {\n signal_emit ( \"dcc error ctcp\" , 5 , \"ACCEPT\" , data , nick , addr , target ) ;\n }\n else if ( dcc != NULL && dcc_resume_file_check ( dcc , server , size ) ) {\n if ( ! dcc_is_passive ( dcc ) ) dcc_get_connect ( DCC_GET ( dcc ) ) ;\n else dcc_get_passive ( DCC_GET ( dcc ) ) ;\n }\n }"}
{"idx": 19580, "target": 0, "func": "static void process_envvars ( enum mode * modep ) {\n char * * runp = _environ ;\n char * envline ;\n enum mode mode = normal ;\n char * debug_output = NULL ;\n GLRO ( dl_profile_output ) = & \"/var/tmp\\0/var/profile\" [ __libc_enable_secure ? 9 : 0 ] ;\n while ( ( envline = _dl_next_ld_env_entry ( & runp ) ) != NULL ) {\n size_t len = 0 ;\n while ( envline [ len ] != '\\0' && envline [ len ] != '=' ) ++ len ;\n if ( envline [ len ] != '=' ) continue ;\n switch ( len ) {\n case 4 : if ( memcmp ( envline , \"WARN\" , 4 ) == 0 ) GLRO ( dl_verbose ) = envline [ 5 ] != '\\0' ;\n break ;\n case 5 : if ( memcmp ( envline , \"DEBUG\" , 5 ) == 0 ) {\n process_dl_debug ( & envline [ 6 ] ) ;\n break ;\n }\n if ( memcmp ( envline , \"AUDIT\" , 5 ) == 0 ) process_dl_audit ( & envline [ 6 ] ) ;\n break ;\n case 7 : if ( memcmp ( envline , \"VERBOSE\" , 7 ) == 0 ) {\n version_info = envline [ 8 ] != '\\0' ;\n break ;\n }\n if ( memcmp ( envline , \"PRELOAD\" , 7 ) == 0 ) {\n preloadlist = & envline [ 8 ] ;\n break ;\n }\n if ( memcmp ( envline , \"PROFILE\" , 7 ) == 0 && envline [ 8 ] != '\\0' ) GLRO ( dl_profile ) = & envline [ 8 ] ;\n break ;\n case 8 : if ( memcmp ( envline , \"BIND_NOW\" , 8 ) == 0 ) {\n GLRO ( dl_lazy ) = envline [ 9 ] == '\\0' ;\n break ;\n }\n if ( memcmp ( envline , \"BIND_NOT\" , 8 ) == 0 ) GLRO ( dl_bind_not ) = envline [ 9 ] != '\\0' ;\n break ;\n case 9 : if ( ! __libc_enable_secure && memcmp ( envline , \"SHOW_AUXV\" , 9 ) == 0 ) _dl_show_auxv ( ) ;\n break ;\n case 10 : if ( memcmp ( envline , \"HWCAP_MASK\" , 10 ) == 0 ) GLRO ( dl_hwcap_mask ) = __strtoul_internal ( & envline [ 11 ] , NULL , 0 , 0 ) ;\n break ;\n case 11 : if ( ! __libc_enable_secure && memcmp ( envline , \"ORIGIN_PATH\" , 11 ) == 0 ) GLRO ( dl_origin_path ) = & envline [ 12 ] ;\n break ;\n case 12 : if ( memcmp ( envline , \"LIBRARY_PATH\" , 12 ) == 0 ) {\n library_path = & envline [ 13 ] ;\n break ;\n }\n if ( memcmp ( envline , \"DEBUG_OUTPUT\" , 12 ) == 0 ) {\n debug_output = & envline [ 13 ] ;\n break ;\n }\n if ( ! __libc_enable_secure && memcmp ( envline , \"DYNAMIC_WEAK\" , 12 ) == 0 ) GLRO ( dl_dynamic_weak ) = 1 ;\n break ;\n case 13 : # ifdef EXTRA_LD_ENVVARS_13 EXTRA_LD_ENVVARS_13 # endif if ( ! __libc_enable_secure && memcmp ( envline , \"USE_LOAD_BIAS\" , 13 ) == 0 ) {\n GLRO ( dl_use_load_bias ) = envline [ 14 ] == '1' ? - 1 : 0 ;\n break ;\n }\n break ;\n case 14 : if ( ! __libc_enable_secure && memcmp ( envline , \"PROFILE_OUTPUT\" , 14 ) == 0 && envline [ 15 ] != '\\0' ) GLRO ( dl_profile_output ) = & envline [ 15 ] ;\n break ;\n case 16 : if ( memcmp ( envline , \"TRACE_PRELINKING\" , 16 ) == 0 ) {\n mode = trace ;\n GLRO ( dl_verbose ) = 1 ;\n GLRO ( dl_debug_mask ) |= DL_DEBUG_PRELINK ;\n GLRO ( dl_trace_prelink ) = & envline [ 17 ] ;\n }\n break ;\n case 20 : if ( memcmp ( envline , \"TRACE_LOADED_OBJECTS\" , 20 ) == 0 ) mode = trace ;\n break ;\n # ifdef EXTRA_LD_ENVVARS EXTRA_LD_ENVVARS # endif }\n }\n * modep = mode ;\n if ( __builtin_expect ( __libc_enable_secure , 0 ) ) {\n static const char unsecure_envvars [ ] = # ifdef EXTRA_UNSECURE_ENVVARS EXTRA_UNSECURE_ENVVARS # endif UNSECURE_ENVVARS ;\n const char * nextp ;\n nextp = unsecure_envvars ;\n do {\n unsetenv ( nextp ) ;\n nextp = ( char * ) ( strchr ) ( nextp , '\\0' ) + 1 ;\n }\n while ( * nextp != '\\0' ) ;\n if ( __access ( \"/etc/suid-debug\" , F_OK ) != 0 ) {\n unsetenv ( \"MALLOC_CHECK_\" ) ;\n GLRO ( dl_debug_mask ) = 0 ;\n }\n if ( mode != normal ) _exit ( 5 ) ;\n }\n else if ( any_debug && debug_output != NULL ) {\n # ifdef O_NOFOLLOW const int flags = O_WRONLY | O_APPEND | O_CREAT | O_NOFOLLOW ;\n # else const int flags = O_WRONLY | O_APPEND | O_CREAT ;\n # endif size_t name_len = strlen ( debug_output ) ;\n char buf [ name_len + 12 ] ;\n char * startp ;\n buf [ name_len + 11 ] = '\\0' ;\n startp = _itoa ( __getpid ( ) , & buf [ name_len + 11 ] , 10 , 0 ) ;\n * -- startp = '.' ;\n startp = memcpy ( startp - name_len , debug_output , name_len ) ;\n GLRO ( dl_debug_fd ) = __open ( startp , flags , DEFFILEMODE ) ;\n if ( GLRO ( dl_debug_fd ) == - 1 ) GLRO ( dl_debug_fd ) = STDOUT_FILENO ;\n }\n }"}
{"idx": 19581, "target": 0, "func": "static int dissect_h245_FunctionNotSupportedCause ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_FunctionNotSupportedCause , FunctionNotSupportedCause_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 19582, "target": 0, "func": "static void proto_tree_set_system_id_tvb ( field_info * fi , tvbuff_t * tvb , gint start , gint length ) {\n proto_tree_set_system_id ( fi , tvb_get_ptr ( tvb , start , length ) , length ) ;\n }"}
{"idx": 19583, "target": 0, "func": "static void send_restrict_list ( restrict_u * pres , int ipv6 , u_int * pidx ) {\n for ( ;\n pres != NULL ;\n pres = pres -> link ) {\n send_restrict_entry ( pres , ipv6 , * pidx ) ;\n ( * pidx ) ++ ;\n }\n }"}
{"idx": 19584, "target": 0, "func": "SPL_METHOD ( DirectoryIterator , seek ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n zval * retval = NULL ;\n long pos ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"l\" , & pos ) == FAILURE ) {\n return ;\n }\n if ( intern -> u . dir . index > pos ) {\n zend_call_method_with_0_params ( & this_ptr , Z_OBJCE_P ( getThis ( ) ) , & intern -> u . dir . func_rewind , \"rewind\" , & retval ) ;\n if ( retval ) {\n zval_ptr_dtor ( & retval ) ;\n retval = NULL ;\n }\n }\n while ( intern -> u . dir . index < pos ) {\n int valid = 0 ;\n zend_call_method_with_0_params ( & this_ptr , Z_OBJCE_P ( getThis ( ) ) , & intern -> u . dir . func_valid , \"valid\" , & retval ) ;\n if ( retval ) {\n valid = zend_is_true ( retval ) ;\n zval_ptr_dtor ( & retval ) ;\n retval = NULL ;\n }\n if ( ! valid ) {\n break ;\n }\n zend_call_method_with_0_params ( & this_ptr , Z_OBJCE_P ( getThis ( ) ) , & intern -> u . dir . func_next , \"next\" , & retval ) ;\n if ( retval ) {\n zval_ptr_dtor ( & retval ) ;\n }\n }\n }"}
{"idx": 19585, "target": 0, "func": "static void usb_ohci_init ( OHCIState * ohci , DeviceState * dev , int num_ports , dma_addr_t localmem_base , char * masterbus , uint32_t firstport , AddressSpace * as , Error * * errp ) {\n Error * err = NULL ;\n int i ;\n ohci -> as = as ;\n if ( num_ports > OHCI_MAX_PORTS ) {\n error_setg ( errp , \"OHCI num-ports=%d is too big (limit is %d ports)\" , num_ports , OHCI_MAX_PORTS ) ;\n return ;\n }\n if ( usb_frame_time == 0 ) {\n # ifdef OHCI_TIME_WARP usb_frame_time = NANOSECONDS_PER_SECOND ;\n usb_bit_time = NANOSECONDS_PER_SECOND / ( USB_HZ / 1000 ) ;\n # else usb_frame_time = NANOSECONDS_PER_SECOND / 1000 ;\n if ( NANOSECONDS_PER_SECOND >= USB_HZ ) {\n usb_bit_time = NANOSECONDS_PER_SECOND / USB_HZ ;\n }\n else {\n usb_bit_time = 1 ;\n }\n # endif trace_usb_ohci_init_time ( usb_frame_time , usb_bit_time ) ;\n }\n ohci -> num_ports = num_ports ;\n if ( masterbus ) {\n USBPort * ports [ OHCI_MAX_PORTS ] ;\n for ( i = 0 ;\n i < num_ports ;\n i ++ ) {\n ports [ i ] = & ohci -> rhport [ i ] . port ;\n }\n usb_register_companion ( masterbus , ports , num_ports , firstport , ohci , & ohci_port_ops , USB_SPEED_MASK_LOW | USB_SPEED_MASK_FULL , & err ) ;\n if ( err ) {\n error_propagate ( errp , err ) ;\n return ;\n }\n }\n else {\n usb_bus_new ( & ohci -> bus , sizeof ( ohci -> bus ) , & ohci_bus_ops , dev ) ;\n for ( i = 0 ;\n i < num_ports ;\n i ++ ) {\n usb_register_port ( & ohci -> bus , & ohci -> rhport [ i ] . port , ohci , i , & ohci_port_ops , USB_SPEED_MASK_LOW | USB_SPEED_MASK_FULL ) ;\n }\n }\n memory_region_init_io ( & ohci -> mem , OBJECT ( dev ) , & ohci_mem_ops , ohci , \"ohci\" , 256 ) ;\n ohci -> localmem_base = localmem_base ;\n ohci -> name = object_get_typename ( OBJECT ( dev ) ) ;\n usb_packet_init ( & ohci -> usb_packet ) ;\n ohci -> async_td = 0 ;\n ohci -> eof_timer = timer_new_ns ( QEMU_CLOCK_VIRTUAL , ohci_frame_boundary , ohci ) ;\n }"}
{"idx": 19586, "target": 0, "func": "static Py_ssize_t string_getsize ( register PyObject * op ) {\n char * s ;\n Py_ssize_t len ;\n if ( PyString_AsStringAndSize ( op , & s , & len ) ) return - 1 ;\n return len ;\n }"}
{"idx": 19587, "target": 0, "func": "static bool xhci_port_have_device ( XHCIPort * port ) {\n if ( ! port -> uport -> dev || ! port -> uport -> dev -> attached ) {\n return false ;\n }\n if ( ! ( ( 1 << port -> uport -> dev -> speed ) & port -> speedmask ) ) {\n return false ;\n }\n return true ;\n }"}
{"idx": 19588, "target": 0, "func": "void my_str_free_mysqld ( void * ptr ) {\n my_free ( ptr ) ;\n }"}
{"idx": 19589, "target": 0, "func": "static int dissect_h225_T_ipAddress ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_T_ipAddress , T_ipAddress_sequence ) ;\n return offset ;\n }"}
{"idx": 19590, "target": 0, "func": "int tipc_netlink_compat_start ( void ) {\n int res ;\n res = genl_register_family_with_ops ( & tipc_genl_compat_family , tipc_genl_compat_ops ) ;\n if ( res ) {\n pr_err ( \"Failed to register legacy compat interface\\n\" ) ;\n return res ;\n }\n return 0 ;\n }"}
{"idx": 19591, "target": 0, "func": "static void dissect_rtmpt_body_video ( tvbuff_t * tvb , gint offset , proto_tree * rtmpt_tree ) {\n guint8 iCtl ;\n proto_item * vi ;\n proto_tree * vt ;\n iCtl = tvb_get_guint8 ( tvb , offset ) ;\n vi = proto_tree_add_uint_format ( rtmpt_tree , hf_rtmpt_video_control , tvb , offset , 1 , iCtl , \"Control: 0x%02x (%s %s)\" , iCtl , val_to_str_const ( ( iCtl & 0xf0 ) >> 4 , rtmpt_video_types , \"Unknown frame type\" ) , val_to_str_const ( iCtl & 0x0f , rtmpt_video_codecs , \"Unknown codec\" ) ) ;\n vt = proto_item_add_subtree ( vi , ett_rtmpt_video_control ) ;\n proto_tree_add_uint ( vt , hf_rtmpt_video_type , tvb , offset , 1 , iCtl ) ;\n proto_tree_add_uint ( vt , hf_rtmpt_video_format , tvb , offset , 1 , iCtl ) ;\n proto_tree_add_item ( rtmpt_tree , hf_rtmpt_video_data , tvb , offset + 1 , - 1 , ENC_NA ) ;\n }"}
{"idx": 19592, "target": 0, "func": "static void yy_reduce_print ( YYSTYPE * yyvsp , int yyrule ) # else static void yy_reduce_print ( yyvsp , yyrule ) YYSTYPE * yyvsp ;\n int yyrule ;\n # endif {\n int yynrhs = yyr2 [ yyrule ] ;\n int yyi ;\n unsigned long int yylno = yyrline [ yyrule ] ;\n YYFPRINTF ( stderr , \"Reducing stack by rule %d (line %lu):\\n\" , yyrule - 1 , yylno ) ;\n for ( yyi = 0 ;\n yyi < yynrhs ;\n yyi ++ ) {\n YYFPRINTF ( stderr , \" $%d = \" , yyi + 1 ) ;\n yy_symbol_print ( stderr , yyrhs [ yyprhs [ yyrule ] + yyi ] , & ( yyvsp [ ( yyi + 1 ) - ( yynrhs ) ] ) ) ;\n YYFPRINTF ( stderr , \"\\n\" ) ;\n }\n }"}
{"idx": 19593, "target": 0, "func": "void printAt ( UBreakIterator * boundary , int32_t pos , UChar * str ) {\n int32_t start ;\n int32_t end = ubrk_following ( boundary , pos ) ;\n start = ubrk_previous ( boundary ) ;\n printTextRange ( str , start , end ) ;\n }"}
{"idx": 19594, "target": 0, "func": "static VALUE cState_ascii_only_p ( VALUE self ) {\n GET_STATE ( self ) ;\n return state -> ascii_only ? Qtrue : Qfalse ;\n }"}
{"idx": 19595, "target": 0, "func": "static inline int wnv1_get_code ( WNV1Context * w , int base_value ) {\n int v = get_vlc2 ( & w -> gb , code_vlc . table , CODE_VLC_BITS , 1 ) ;\n if ( v == 15 ) return ff_reverse [ get_bits ( & w -> gb , 8 - w -> shift ) ] ;\n else return base_value + ( ( v - 7 ) << w -> shift ) ;\n }"}
{"idx": 19596, "target": 0, "func": "static int kwajd_decompress ( struct mskwaj_decompressor * base , const char * input , const char * output ) {\n struct mskwaj_decompressor_p * self = ( struct mskwaj_decompressor_p * ) base ;\n struct mskwajd_header * hdr ;\n int error ;\n if ( ! self ) return MSPACK_ERR_ARGS ;\n if ( ! ( hdr = kwajd_open ( base , input ) ) ) return self -> error ;\n error = kwajd_extract ( base , hdr , output ) ;\n kwajd_close ( base , hdr ) ;\n return self -> error = error ;\n }"}
{"idx": 19597, "target": 0, "func": "static guint nlm_msg_res_matched_hash ( gconstpointer k ) {\n guint hash = GPOINTER_TO_UINT ( k ) ;\n return hash ;\n }"}
{"idx": 19598, "target": 0, "func": "static inline int ohci_put_ed ( OHCIState * ohci , dma_addr_t addr , struct ohci_ed * ed ) {\n return put_dwords ( ohci , addr + ED_WBACK_OFFSET , ( uint32_t * ) ( ( char * ) ed + ED_WBACK_OFFSET ) , ED_WBACK_SIZE >> 2 ) ;\n }"}
{"idx": 19599, "target": 0, "func": "static void vc1_loop_filter_iblk ( VC1Context * v , int pq ) {\n MpegEncContext * s = & v -> s ;\n int j ;\n if ( ! s -> first_slice_line ) {\n v -> vc1dsp . vc1_v_loop_filter16 ( s -> dest [ 0 ] , s -> linesize , pq ) ;\n if ( s -> mb_x ) v -> vc1dsp . vc1_h_loop_filter16 ( s -> dest [ 0 ] - 16 * s -> linesize , s -> linesize , pq ) ;\n v -> vc1dsp . vc1_h_loop_filter16 ( s -> dest [ 0 ] - 16 * s -> linesize + 8 , s -> linesize , pq ) ;\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n v -> vc1dsp . vc1_v_loop_filter8 ( s -> dest [ j + 1 ] , s -> uvlinesize , pq ) ;\n if ( s -> mb_x ) v -> vc1dsp . vc1_h_loop_filter8 ( s -> dest [ j + 1 ] - 8 * s -> uvlinesize , s -> uvlinesize , pq ) ;\n }\n }\n v -> vc1dsp . vc1_v_loop_filter16 ( s -> dest [ 0 ] + 8 * s -> linesize , s -> linesize , pq ) ;\n if ( s -> mb_y == s -> end_mb_y - 1 ) {\n if ( s -> mb_x ) {\n v -> vc1dsp . vc1_h_loop_filter16 ( s -> dest [ 0 ] , s -> linesize , pq ) ;\n v -> vc1dsp . vc1_h_loop_filter8 ( s -> dest [ 1 ] , s -> uvlinesize , pq ) ;\n v -> vc1dsp . vc1_h_loop_filter8 ( s -> dest [ 2 ] , s -> uvlinesize , pq ) ;\n }\n v -> vc1dsp . vc1_h_loop_filter16 ( s -> dest [ 0 ] + 8 , s -> linesize , pq ) ;\n }\n }"}
{"idx": 19600, "target": 1, "func": "int qemuMonitorTextGetBlockInfo ( qemuMonitorPtr mon , const char * devname , struct qemuDomainDiskInfo * info ) {\n char * reply = NULL ;\n int ret = - 1 ;\n char * dummy ;\n const char * p , * eol ;\n int devnamelen = strlen ( devname ) ;\n int tmp ;\n if ( qemuMonitorHMPCommand ( mon , \"info block\" , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , _ ( \"info block command failed\" ) ) ;\n goto cleanup ;\n }\n if ( strstr ( reply , \"\\ninfo \" ) ) {\n qemuReportError ( VIR_ERR_OPERATION_INVALID , \"%s\" , _ ( \"info block not supported by this qemu\" ) ) ;\n goto cleanup ;\n }\n p = reply ;\n while ( * p ) {\n if ( STRPREFIX ( p , QEMU_DRIVE_HOST_PREFIX ) ) p += strlen ( QEMU_DRIVE_HOST_PREFIX ) ;\n if ( STREQLEN ( p , devname , devnamelen ) && p [ devnamelen ] == ':' && p [ devnamelen + 1 ] == ' ' ) {\n eol = strchr ( p , '\\n' ) ;\n if ( ! eol ) eol = p + strlen ( p ) ;\n p += devnamelen + 2 ;\n while ( * p ) {\n if ( STRPREFIX ( p , \"removable=\" ) ) {\n p += strlen ( \"removable=\" ) ;\n if ( virStrToLong_i ( p , & dummy , 10 , & tmp ) == - 1 ) VIR_DEBUG ( \"error reading removable: %s\" , p ) ;\n else info -> removable = ( tmp != 0 ) ;\n }\n else if ( STRPREFIX ( p , \"locked=\" ) ) {\n p += strlen ( \"locked=\" ) ;\n if ( virStrToLong_i ( p , & dummy , 10 , & tmp ) == - 1 ) VIR_DEBUG ( \"error reading locked: %s\" , p ) ;\n else info -> locked = ( tmp != 0 ) ;\n }\n else if ( STRPREFIX ( p , \"tray_open=\" ) ) {\n p += strlen ( \"tray_open=\" ) ;\n if ( virStrToLong_i ( p , & dummy , 10 , & tmp ) == - 1 ) VIR_DEBUG ( \"error reading tray_open: %s\" , p ) ;\n else info -> tray_open = ( tmp != 0 ) ;\n }\n else {\n }\n p = strchr ( p , ' ' ) ;\n if ( ! p || p >= eol ) break ;\n p ++ ;\n }\n ret = 0 ;\n goto cleanup ;\n }\n p = strchr ( p , '\\n' ) ;\n if ( ! p ) break ;\n p ++ ;\n }\n qemuReportError ( VIR_ERR_INVALID_ARG , _ ( \"no info for device '%s'\" ) , devname ) ;\n cleanup : VIR_FREE ( reply ) ;\n return ret ;\n }"}
{"idx": 19601, "target": 0, "func": "void mime_scanner_init ( MIMEScanner * scanner ) {\n _mime_scanner_init ( scanner ) ;\n }"}
{"idx": 19602, "target": 0, "func": "static void dtap_cc_call_proceed ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_FALSE ;\n ELEM_OPT_TV_SHORT ( 0xd0 , GSM_A_PDU_TYPE_DTAP , DE_REPEAT_IND , \" BC repeat indicator\" ) ;\n ELEM_OPT_TLV ( 0x04 , GSM_A_PDU_TYPE_DTAP , DE_BEARER_CAP , \" 1\" ) ;\n ELEM_OPT_TLV ( 0x04 , GSM_A_PDU_TYPE_DTAP , DE_BEARER_CAP , \" 2\" ) ;\n ELEM_OPT_TLV ( 0x1c , GSM_A_PDU_TYPE_DTAP , DE_FACILITY , NULL ) ;\n ELEM_OPT_TLV ( 0x1e , GSM_A_PDU_TYPE_DTAP , DE_PROG_IND , NULL ) ;\n ELEM_OPT_TV_SHORT ( 0x80 , GSM_A_PDU_TYPE_COMMON , DE_PRIO , NULL ) ;\n ELEM_OPT_TLV ( 0x2f , GSM_A_PDU_TYPE_DTAP , DE_NET_CC_CAP , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 19603, "target": 0, "func": "int test_gf2m_add ( BIO * bp ) {\n BIGNUM a , b , c ;\n int i , ret = 0 ;\n BN_init ( & a ) ;\n BN_init ( & b ) ;\n BN_init ( & c ) ;\n for ( i = 0 ;\n i < num0 ;\n i ++ ) {\n BN_rand ( & a , 512 , 0 , 0 ) ;\n BN_copy ( & b , BN_value_one ( ) ) ;\n a . neg = rand_neg ( ) ;\n b . neg = rand_neg ( ) ;\n BN_GF2m_add ( & c , & a , & b ) ;\n # if 0 if ( bp != NULL ) {\n if ( ! results ) {\n BN_print ( bp , & a ) ;\n BIO_puts ( bp , \" ^ \" ) ;\n BN_print ( bp , & b ) ;\n BIO_puts ( bp , \" = \" ) ;\n }\n BN_print ( bp , & c ) ;\n BIO_puts ( bp , \"\\n\" ) ;\n }\n # endif if ( ( BN_is_odd ( & a ) && BN_is_odd ( & c ) ) || ( ! BN_is_odd ( & a ) && ! BN_is_odd ( & c ) ) ) {\n fprintf ( stderr , \"GF(2^m) addition test (a) failed!\\n\" ) ;\n goto err ;\n }\n BN_GF2m_add ( & c , & c , & c ) ;\n if ( ! BN_is_zero ( & c ) ) {\n fprintf ( stderr , \"GF(2^m) addition test (b) failed!\\n\" ) ;\n goto err ;\n }\n }\n ret = 1 ;\n err : BN_free ( & a ) ;\n BN_free ( & b ) ;\n BN_free ( & c ) ;\n return ret ;\n }"}
{"idx": 19604, "target": 0, "func": "INDIC_TABLE_ELEMENT_TYPE hb_indic_get_categories ( hb_codepoint_t u ) {\n switch ( u >> 12 ) {\n case 0x0u : if ( hb_in_range ( u , 0x0028u , 0x003Fu ) ) return indic_table [ u - 0x0028u + indic_offset_0x0028u ] ;\n if ( hb_in_range ( u , 0x00D0u , 0x00D7u ) ) return indic_table [ u - 0x00D0u + indic_offset_0x00d0u ] ;\n if ( hb_in_range ( u , 0x0900u , 0x0DF7u ) ) return indic_table [ u - 0x0900u + indic_offset_0x0900u ] ;\n if ( unlikely ( u == 0x00A0u ) ) return _ ( CP , x ) ;\n break ;\n case 0x1u : if ( hb_in_range ( u , 0x1000u , 0x109Fu ) ) return indic_table [ u - 0x1000u + indic_offset_0x1000u ] ;\n if ( hb_in_range ( u , 0x1700u , 0x17EFu ) ) return indic_table [ u - 0x1700u + indic_offset_0x1700u ] ;\n if ( hb_in_range ( u , 0x1900u , 0x1A9Fu ) ) return indic_table [ u - 0x1900u + indic_offset_0x1900u ] ;\n if ( hb_in_range ( u , 0x1B00u , 0x1C4Fu ) ) return indic_table [ u - 0x1B00u + indic_offset_0x1b00u ] ;\n if ( hb_in_range ( u , 0x1CD0u , 0x1CF7u ) ) return indic_table [ u - 0x1CD0u + indic_offset_0x1cd0u ] ;\n break ;\n case 0x2u : if ( hb_in_range ( u , 0x2008u , 0x2017u ) ) return indic_table [ u - 0x2008u + indic_offset_0x2008u ] ;\n if ( unlikely ( u == 0x25CCu ) ) return _ ( CP , x ) ;\n break ;\n case 0xAu : if ( hb_in_range ( u , 0xA800u , 0xAAF7u ) ) return indic_table [ u - 0xA800u + indic_offset_0xa800u ] ;\n if ( hb_in_range ( u , 0xABC0u , 0xABFFu ) ) return indic_table [ u - 0xABC0u + indic_offset_0xabc0u ] ;\n break ;\n case 0x10u : if ( hb_in_range ( u , 0x10A00u , 0x10A47u ) ) return indic_table [ u - 0x10A00u + indic_offset_0x10a00u ] ;\n break ;\n case 0x11u : if ( hb_in_range ( u , 0x11000u , 0x110BFu ) ) return indic_table [ u - 0x11000u + indic_offset_0x11000u ] ;\n if ( hb_in_range ( u , 0x11100u , 0x11237u ) ) return indic_table [ u - 0x11100u + indic_offset_0x11100u ] ;\n if ( hb_in_range ( u , 0x112B0u , 0x11377u ) ) return indic_table [ u - 0x112B0u + indic_offset_0x112b0u ] ;\n if ( hb_in_range ( u , 0x11480u , 0x114DFu ) ) return indic_table [ u - 0x11480u + indic_offset_0x11480u ] ;\n if ( hb_in_range ( u , 0x11580u , 0x115C7u ) ) return indic_table [ u - 0x11580u + indic_offset_0x11580u ] ;\n if ( hb_in_range ( u , 0x11600u , 0x116CFu ) ) return indic_table [ u - 0x11600u + indic_offset_0x11600u ] ;\n break ;\n default : break ;\n }\n return _ ( x , x ) ;\n }"}
{"idx": 19605, "target": 0, "func": "uint32 get_major_server_version ( ClusterInfo * cluster ) {\n FILE * version_fd ;\n char ver_filename [ MAXPGPATH ] ;\n int integer_version = 0 ;\n int fractional_version = 0 ;\n snprintf ( ver_filename , sizeof ( ver_filename ) , \"%s/PG_VERSION\" , cluster -> pgdata ) ;\n if ( ( version_fd = fopen ( ver_filename , \"r\" ) ) == NULL ) pg_fatal ( \"could not open version file: %s\\n\" , ver_filename ) ;\n if ( fscanf ( version_fd , \"%63s\" , cluster -> major_version_str ) == 0 || sscanf ( cluster -> major_version_str , \"%d.%d\" , & integer_version , & fractional_version ) != 2 ) pg_fatal ( \"could not get version from %s\\n\" , cluster -> pgdata ) ;\n fclose ( version_fd ) ;\n return ( 100 * integer_version + fractional_version ) * 100 ;\n }"}
{"idx": 19606, "target": 0, "func": "static int decode_subframe_lpc ( FLACContext * s , int32_t * decoded , int pred_order , int bps ) {\n int i ;\n int coeff_prec , qlevel ;\n int coeffs [ 32 ] ;\n for ( i = 0 ;\n i < pred_order ;\n i ++ ) {\n decoded [ i ] = get_sbits_long ( & s -> gb , bps ) ;\n }\n coeff_prec = get_bits ( & s -> gb , 4 ) + 1 ;\n if ( coeff_prec == 16 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"invalid coeff precision\\n\" ) ;\n return - 1 ;\n }\n qlevel = get_sbits ( & s -> gb , 5 ) ;\n if ( qlevel < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"qlevel %d not supported, maybe buggy stream\\n\" , qlevel ) ;\n return - 1 ;\n }\n for ( i = 0 ;\n i < pred_order ;\n i ++ ) {\n coeffs [ pred_order - i - 1 ] = get_sbits ( & s -> gb , coeff_prec ) ;\n }\n if ( decode_residuals ( s , decoded , pred_order ) < 0 ) return - 1 ;\n s -> dsp . lpc ( decoded , coeffs , pred_order , qlevel , s -> blocksize ) ;\n return 0 ;\n }"}
{"idx": 19607, "target": 0, "func": "int qemuAgentGetVCPUs ( qemuAgentPtr mon , qemuAgentCPUInfoPtr * info ) {\n int ret = - 1 ;\n size_t i ;\n virJSONValuePtr cmd ;\n virJSONValuePtr reply = NULL ;\n virJSONValuePtr data = NULL ;\n ssize_t ndata ;\n if ( ! ( cmd = qemuAgentMakeCommand ( \"guest-get-vcpus\" , NULL ) ) ) return - 1 ;\n if ( qemuAgentCommand ( mon , cmd , & reply , true , VIR_DOMAIN_QEMU_AGENT_COMMAND_BLOCK ) < 0 ) goto cleanup ;\n if ( ! ( data = virJSONValueObjectGet ( reply , \"return\" ) ) ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"guest-get-vcpus reply was missing return data\" ) ) ;\n goto cleanup ;\n }\n if ( data -> type != VIR_JSON_TYPE_ARRAY ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"guest-get-vcpus return information was not an array\" ) ) ;\n goto cleanup ;\n }\n ndata = virJSONValueArraySize ( data ) ;\n if ( VIR_ALLOC_N ( * info , ndata ) < 0 ) goto cleanup ;\n for ( i = 0 ;\n i < ndata ;\n i ++ ) {\n virJSONValuePtr entry = virJSONValueArrayGet ( data , i ) ;\n qemuAgentCPUInfoPtr in = * info + i ;\n if ( ! entry ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"array element missing in guest-get-vcpus return \" \"value\" ) ) ;\n goto cleanup ;\n }\n if ( virJSONValueObjectGetNumberUint ( entry , \"logical-id\" , & in -> id ) < 0 ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"'logical-id' missing in reply of guest-get-vcpus\" ) ) ;\n goto cleanup ;\n }\n if ( virJSONValueObjectGetBoolean ( entry , \"online\" , & in -> online ) < 0 ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"'online' missing in reply of guest-get-vcpus\" ) ) ;\n goto cleanup ;\n }\n if ( virJSONValueObjectGetBoolean ( entry , \"can-offline\" , & in -> offlinable ) < 0 ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"'can-offline' missing in reply of guest-get-vcpus\" ) ) ;\n goto cleanup ;\n }\n }\n ret = ndata ;\n cleanup : virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 19608, "target": 0, "func": "int qemuMonitorTextExpirePassword ( qemuMonitorPtr mon , const char * protocol , const char * expire_time ) {\n char * cmd = NULL ;\n char * reply = NULL ;\n int ret = - 1 ;\n if ( virAsprintf ( & cmd , \"expire_password %s %s\" , protocol , expire_time ) < 0 ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , _ ( \"expiring password failed\" ) ) ;\n goto cleanup ;\n }\n if ( strstr ( reply , \"unknown command:\" ) ) {\n ret = - 2 ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( reply ) ;\n VIR_FREE ( cmd ) ;\n return ret ;\n }"}
{"idx": 19609, "target": 0, "func": "VALUE rb_dlhandle_to_i ( VALUE self ) {\n struct dl_handle * dlhandle ;\n Data_Get_Struct ( self , struct dl_handle , dlhandle ) ;\n return PTR2NUM ( dlhandle ) ;\n }"}
{"idx": 19610, "target": 0, "func": "void ArchiveEntry ( Archive * AHX , CatalogId catalogId , DumpId dumpId , const char * tag , const char * namespace , const char * tablespace , const char * owner , bool withOids , const char * desc , teSection section , const char * defn , const char * dropStmt , const char * copyStmt , const DumpId * deps , int nDeps , DataDumperPtr dumpFn , void * dumpArg ) {\n ArchiveHandle * AH = ( ArchiveHandle * ) AHX ;\n TocEntry * newToc ;\n newToc = ( TocEntry * ) pg_malloc0 ( sizeof ( TocEntry ) ) ;\n AH -> tocCount ++ ;\n if ( dumpId > AH -> maxDumpId ) AH -> maxDumpId = dumpId ;\n newToc -> prev = AH -> toc -> prev ;\n newToc -> next = AH -> toc ;\n AH -> toc -> prev -> next = newToc ;\n AH -> toc -> prev = newToc ;\n newToc -> catalogId = catalogId ;\n newToc -> dumpId = dumpId ;\n newToc -> section = section ;\n newToc -> tag = pg_strdup ( tag ) ;\n newToc -> namespace = namespace ? pg_strdup ( namespace ) : NULL ;\n newToc -> tablespace = tablespace ? pg_strdup ( tablespace ) : NULL ;\n newToc -> owner = pg_strdup ( owner ) ;\n newToc -> withOids = withOids ;\n newToc -> desc = pg_strdup ( desc ) ;\n newToc -> defn = pg_strdup ( defn ) ;\n newToc -> dropStmt = pg_strdup ( dropStmt ) ;\n newToc -> copyStmt = copyStmt ? pg_strdup ( copyStmt ) : NULL ;\n if ( nDeps > 0 ) {\n newToc -> dependencies = ( DumpId * ) pg_malloc ( nDeps * sizeof ( DumpId ) ) ;\n memcpy ( newToc -> dependencies , deps , nDeps * sizeof ( DumpId ) ) ;\n newToc -> nDeps = nDeps ;\n }\n else {\n newToc -> dependencies = NULL ;\n newToc -> nDeps = 0 ;\n }\n newToc -> dataDumper = dumpFn ;\n newToc -> dataDumperArg = dumpArg ;\n newToc -> hadDumper = dumpFn ? true : false ;\n newToc -> formatData = NULL ;\n if ( AH -> ArchiveEntryPtr != NULL ) ( * AH -> ArchiveEntryPtr ) ( AH , newToc ) ;\n }"}
{"idx": 19611, "target": 0, "func": "void TSfflush ( TSFile filep ) {\n FileImpl * file = ( FileImpl * ) filep ;\n file -> fflush ( ) ;\n }"}
{"idx": 19612, "target": 0, "func": "static inline void DecoderUpdatePreroll ( int64_t * pi_preroll , const block_t * p ) {\n if ( p -> i_flags & ( BLOCK_FLAG_PREROLL | BLOCK_FLAG_DISCONTINUITY ) ) * pi_preroll = INT64_MAX ;\n else if ( p -> i_dts > VLC_TS_INVALID ) * pi_preroll = __MIN ( * pi_preroll , p -> i_dts ) ;\n else if ( p -> i_pts > VLC_TS_INVALID ) * pi_preroll = __MIN ( * pi_preroll , p -> i_pts ) ;\n }"}
{"idx": 19613, "target": 0, "func": "void ff_MPV_decode_defaults ( MpegEncContext * s ) {\n ff_MPV_common_defaults ( s ) ;\n }"}
{"idx": 19614, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( MediaStreamPermissionTest , TestDenyingThenClearingStickyException ) {\n content : : WebContents * tab_contents = LoadTestPageInTab ( ) ;\n GetUserMediaAndDeny ( tab_contents ) ;\n GetUserMediaAndExpectAutoDenyWithoutPrompt ( tab_contents ) ;\n HostContentSettingsMap * settings_map = HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) ;\n settings_map -> ClearSettingsForOneType ( CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC ) ;\n settings_map -> ClearSettingsForOneType ( CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA ) ;\n GetUserMediaAndDeny ( tab_contents ) ;\n }"}
{"idx": 19615, "target": 0, "func": "static int selinux_determine_inode_label ( const struct task_security_struct * tsec , struct inode * dir , const struct qstr * name , u16 tclass , u32 * _new_isid ) {\n const struct superblock_security_struct * sbsec = dir -> i_sb -> s_security ;\n if ( ( sbsec -> flags & SE_SBINITIALIZED ) && ( sbsec -> behavior == SECURITY_FS_USE_MNTPOINT ) ) {\n * _new_isid = sbsec -> mntpoint_sid ;\n }\n else if ( ( sbsec -> flags & SBLABEL_MNT ) && tsec -> create_sid ) {\n * _new_isid = tsec -> create_sid ;\n }\n else {\n const struct inode_security_struct * dsec = inode_security ( dir ) ;\n return security_transition_sid ( tsec -> sid , dsec -> sid , tclass , name , _new_isid ) ;\n }\n return 0 ;\n }"}
{"idx": 19616, "target": 0, "func": "static void ttc_dump ( FILE * ttc , struct alltabs * all , enum fontformat format , int flags , enum ttc_flags ttc_flags ) {\n int i , j , cnt , tot , ch , dup ;\n int offset , startoffset ;\n struct taboff * tab ;\n for ( cnt = 0 ;\n all [ cnt ] . sf != NULL ;\n ++ cnt ) ;\n -- cnt ;\n putlong ( ttc , CHR ( 't' , 't' , 'c' , 'f' ) ) ;\n if ( flags & ttf_flag_dummyDSIG ) {\n putlong ( ttc , 0x00020000 ) ;\n startoffset = 4 * ( 3 + cnt + 4 ) ;\n }\n else {\n putlong ( ttc , 0x00010000 ) ;\n startoffset = 4 * ( 3 + cnt ) ;\n }\n putlong ( ttc , cnt ) ;\n offset = startoffset ;\n for ( i = 0 ;\n i < cnt ;\n ++ i ) {\n putlong ( ttc , offset ) ;\n offset += ( 8 + 16 * MAX_TAB ) ;\n }\n if ( flags & ttf_flag_dummyDSIG ) {\n putlong ( ttc , CHR ( 'D' , 'S' , 'I' , 'G' ) ) ;\n putlong ( ttc , 8 ) ;\n putlong ( ttc , 0x00000001 ) ;\n putlong ( ttc , 0 ) ;\n }\n tot = cnt * ( 8 + 16 * MAX_TAB ) ;\n for ( i = 0 ;\n i < tot ;\n ++ i ) putc ( '\\0' , ttc ) ;\n buildtablestructures ( & all [ cnt ] , all [ cnt ] . sf , format ) ;\n tab = findtabindir ( & all [ cnt ] . tabdir , CHR ( 'h' , 'h' , 'e' , 'a' ) ) ;\n tab -> offset = ftell ( ttc ) ;\n tab -> checksum = filechecksum ( tab -> data ) ;\n if ( ! ttfcopyfile ( ttc , tab -> data , tab -> offset , Tag2String ( tab -> tag ) ) ) all [ cnt ] . error = true ;\n tab = findtabindir ( & all [ cnt ] . tabdir , CHR ( 'v' , 'h' , 'e' , 'a' ) ) ;\n if ( tab != NULL ) {\n tab -> offset = ftell ( ttc ) ;\n tab -> checksum = filechecksum ( tab -> data ) ;\n if ( ! ttfcopyfile ( ttc , tab -> data , tab -> offset , Tag2String ( tab -> tag ) ) ) all [ cnt ] . error = true ;\n }\n tab = findtabindir ( & all [ cnt ] . tabdir , CHR ( 'm' , 'a' , 'x' , 'p' ) ) ;\n tab -> offset = ftell ( ttc ) ;\n for ( i = 0 ;\n i < 64 ;\n ++ i ) putc ( '\\0' , ttc ) ;\n tab = findtabindir ( & all [ cnt ] . tabdir , CHR ( 'F' , 'F' , 'T' , 'M' ) ) ;\n tab -> offset = ftell ( ttc ) ;\n tab -> checksum = filechecksum ( tab -> data ) ;\n if ( ! ttfcopyfile ( ttc , tab -> data , tab -> offset , Tag2String ( tab -> tag ) ) ) all [ cnt ] . error = true ;\n for ( i = 0 ;\n i < cnt ;\n ++ i ) {\n ttc_perfonttables ( all , i , cnt , format ) ;\n buildtablestructures ( & all [ i ] , all [ i ] . sf , format ) ;\n for ( j = 0 ;\n j < all [ i ] . tabdir . numtab ;\n ++ j ) {\n if ( all [ i ] . tabdir . tabs [ j ] . data != ( void * ) ( intpt ) - 1 && ( dup = tablefilematch ( & all [ i ] . tabdir . tabs [ j ] , ttc , all , i ) ) != - 1 ) {\n fclose ( all [ i ] . tabdir . tabs [ j ] . data ) ;\n all [ i ] . tabdir . tabs [ j ] . data = ( void * ) ( intpt ) - 1 ;\n all [ i ] . tabdir . tabs [ j ] . length = dup ;\n }\n }\n for ( j = 0 ;\n j < all [ i ] . tabdir . numtab ;\n ++ j ) {\n if ( all [ i ] . tabdir . tabs [ j ] . data != ( void * ) ( intpt ) - 1 ) {\n all [ i ] . tabdir . tabs [ j ] . offset = ftell ( ttc ) ;\n all [ i ] . tabdir . tabs [ j ] . checksum = filechecksum ( all [ i ] . tabdir . tabs [ j ] . data ) ;\n if ( ! ttfcopyfile ( ttc , all [ i ] . tabdir . tabs [ j ] . data , all [ i ] . tabdir . tabs [ j ] . offset , Tag2String ( all [ i ] . tabdir . tabs [ j ] . tag ) ) ) all [ cnt ] . error = true ;\n }\n }\n }\n free ( all [ cnt ] . sf -> glyphs ) ;\n free ( all [ cnt ] . gi . bygid ) ;\n tab = findtabindir ( & all [ cnt ] . tabdir , CHR ( 'h' , 'm' , 't' , 'x' ) ) ;\n tab -> offset = ftell ( ttc ) ;\n tab -> checksum = filechecksum ( tab -> data ) ;\n if ( ! ttfcopyfile ( ttc , tab -> data , tab -> offset , Tag2String ( tab -> tag ) ) ) all [ cnt ] . error = true ;\n tab = findtabindir ( & all [ cnt ] . tabdir , CHR ( 'v' , 'm' , 't' , 'x' ) ) ;\n if ( tab != NULL ) {\n tab -> offset = ftell ( ttc ) ;\n tab -> checksum = filechecksum ( tab -> data ) ;\n if ( ! ttfcopyfile ( ttc , tab -> data , tab -> offset , Tag2String ( tab -> tag ) ) ) all [ cnt ] . error = true ;\n }\n if ( format == ff_ttf ) {\n tab = findtabindir ( & all [ cnt ] . tabdir , CHR ( 'l' , 'o' , 'c' , 'a' ) ) ;\n tab -> offset = ftell ( ttc ) ;\n tab -> checksum = filechecksum ( tab -> data ) ;\n if ( ! ttfcopyfile ( ttc , tab -> data , tab -> offset , Tag2String ( tab -> tag ) ) ) all [ cnt ] . error = true ;\n tab = findtabindir ( & all [ cnt ] . tabdir , CHR ( 'g' , 'l' , 'y' , 'f' ) ) ;\n tab -> offset = ftell ( ttc ) ;\n tab -> checksum = filechecksum ( tab -> data ) ;\n if ( ! ttfcopyfile ( ttc , tab -> data , tab -> offset , Tag2String ( tab -> tag ) ) ) all [ cnt ] . error = true ;\n }\n else {\n tab = findtabindir ( & all [ cnt ] . tabdir , CHR ( 'C' , 'F' , 'F' , ' ' ) ) ;\n tab -> offset = ftell ( ttc ) ;\n tab -> checksum = filechecksum ( tab -> data ) ;\n if ( ! ttfcopyfile ( ttc , tab -> data , tab -> offset , Tag2String ( tab -> tag ) ) ) all [ cnt ] . error = true ;\n }\n redomaxp ( & all [ cnt ] , format ) ;\n tab = findtabindir ( & all [ cnt ] . tabdir , CHR ( 'm' , 'a' , 'x' , 'p' ) ) ;\n fseek ( ttc , tab -> offset , SEEK_SET ) ;\n tab -> checksum = filechecksum ( all [ cnt ] . maxpf ) ;\n tab -> length = all [ cnt ] . maxplen ;\n rewind ( all [ cnt ] . maxpf ) ;\n while ( ( ch = getc ( all [ cnt ] . maxpf ) ) != EOF ) putc ( ch , ttc ) ;\n for ( offset = startoffset , i = 0 ;\n i < cnt ;\n ++ i , offset += ( 8 + 16 * MAX_TAB ) ) {\n struct alltabs * at = & all [ i ] ;\n for ( j = 0 ;\n j < at -> tabdir . numtab ;\n ++ j ) {\n struct taboff * curtab = & at -> tabdir . tabs [ j ] ;\n if ( curtab -> data == ( void * ) ( intpt ) - 1 ) {\n tab = findtabindir ( & all [ curtab -> length ] . tabdir , curtab -> tag ) ;\n if ( tab == NULL ) {\n IError ( \"Failed to find tab\" ) ;\n curtab -> length = 0 ;\n curtab -> offset = 0 ;\n curtab -> checksum = 0 ;\n }\n else {\n curtab -> offset = tab -> offset ;\n curtab -> length = tab -> length ;\n curtab -> checksum = tab -> checksum ;\n }\n }\n }\n fseek ( ttc , offset , SEEK_SET ) ;\n for ( j = 0 ;\n j < at -> tabdir . numtab ;\n ++ j ) at -> tabdir . alpha [ j ] = & at -> tabdir . tabs [ j ] ;\n qsort ( at -> tabdir . alpha , at -> tabdir . numtab , sizeof ( struct taboff * ) , tagcomp ) ;\n putlong ( ttc , at -> tabdir . version ) ;\n putshort ( ttc , at -> tabdir . numtab ) ;\n putshort ( ttc , at -> tabdir . searchRange ) ;\n putshort ( ttc , at -> tabdir . entrySel ) ;\n putshort ( ttc , at -> tabdir . rangeShift ) ;\n for ( j = 0 ;\n j < at -> tabdir . numtab ;\n ++ j ) {\n putlong ( ttc , at -> tabdir . alpha [ j ] -> tag ) ;\n putlong ( ttc , at -> tabdir . alpha [ j ] -> checksum ) ;\n putlong ( ttc , at -> tabdir . alpha [ j ] -> offset ) ;\n putlong ( ttc , at -> tabdir . alpha [ j ] -> length ) ;\n }\n }\n tab = findtabindir ( & all [ 0 ] . tabdir , CHR ( 'h' , 'e' , 'a' , 'd' ) ) ;\n if ( tab != NULL ) {\n int checksum ;\n checksum = filechecksum ( ttc ) ;\n checksum = 0xb1b0afba - checksum ;\n fseek ( ttc , tab -> offset + 2 * sizeof ( int32 ) , SEEK_SET ) ;\n putlong ( ttc , checksum ) ;\n }\n }"}
{"idx": 19617, "target": 0, "func": "static int xan_decode_frame_type1 ( AVCodecContext * avctx ) {\n XanContext * s = avctx -> priv_data ;\n uint8_t * ybuf , * src = s -> scratch_buffer ;\n int cur , last ;\n int i , j ;\n int ret ;\n if ( ( ret = xan_decode_chroma ( avctx , bytestream2_get_le32 ( & s -> gb ) ) ) != 0 ) return ret ;\n bytestream2_seek ( & s -> gb , 16 , SEEK_SET ) ;\n ret = xan_unpack_luma ( s , src , s -> buffer_size >> 1 ) ;\n if ( ret ) {\n av_log ( avctx , AV_LOG_ERROR , \"Luma decoding failed\\n\" ) ;\n return ret ;\n }\n ybuf = s -> y_buffer ;\n for ( i = 0 ;\n i < avctx -> height ;\n i ++ ) {\n last = ( ybuf [ 0 ] + ( * src ++ << 1 ) ) & 0x3F ;\n ybuf [ 0 ] = last ;\n for ( j = 1 ;\n j < avctx -> width - 1 ;\n j += 2 ) {\n cur = ( ybuf [ j + 1 ] + ( * src ++ << 1 ) ) & 0x3F ;\n ybuf [ j ] = ( last + cur ) >> 1 ;\n ybuf [ j + 1 ] = cur ;\n last = cur ;\n }\n ybuf [ j ] = last ;\n ybuf += avctx -> width ;\n }\n src = s -> y_buffer ;\n ybuf = s -> pic . data [ 0 ] ;\n for ( j = 0 ;\n j < avctx -> height ;\n j ++ ) {\n for ( i = 0 ;\n i < avctx -> width ;\n i ++ ) ybuf [ i ] = ( src [ i ] << 2 ) | ( src [ i ] >> 3 ) ;\n src += avctx -> width ;\n ybuf += s -> pic . linesize [ 0 ] ;\n }\n return 0 ;\n }"}
{"idx": 19618, "target": 0, "func": "static int dissect_h225_T_h245Routing ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_T_h245Routing , T_h245Routing_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 19619, "target": 0, "func": "void proto_report_dissector_bug ( const char * message ) {\n if ( getenv ( \"WIRESHARK_ABORT_ON_DISSECTOR_BUG\" ) != NULL ) abort ( ) ;\n else THROW_MESSAGE ( DissectorError , message ) ;\n }"}
{"idx": 19620, "target": 1, "func": "GType hb_gobject_ ## name ## _get_type ( void ) \\ {\n static gsize type_id = 0 ;\n if ( g_once_init_enter ( & type_id ) ) {\n GType id = g_boxed_type_register_static ( g_intern_static_string ( \"hb_\" # name \"_t\" ) , ( GBoxedCopyFunc ) copy_func , ( GBoxedFreeFunc ) free_func ) ;\n g_once_init_leave ( & type_id , id ) ;\n }\n return type_id ;\n \\ }\n # define HB_DEFINE_OBJECT_TYPE ( name ) HB_DEFINE_BOXED_TYPE ( name , hb_ ## name ## _reference , hb_ ## name ## _destroy ) ;\n HB_DEFINE_OBJECT_TYPE ( buffer ) HB_DEFINE_OBJECT_TYPE ( blob ) HB_DEFINE_OBJECT_TYPE ( face ) HB_DEFINE_OBJECT_TYPE ( font ) HB_DEFINE_OBJECT_TYPE ( font_funcs ) HB_DEFINE_OBJECT_TYPE ( set ) HB_DEFINE_OBJECT_TYPE ( shape_plan ) HB_DEFINE_OBJECT_TYPE ( unicode_funcs ) static hb_feature_t * feature_reference ( hb_feature_t * g ) {\n hb_feature_t * c = ( hb_feature_t * ) calloc ( 1 , sizeof ( hb_feature_t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * g ;\n return c ;\n }\n static void feature_destroy ( hb_feature_t * g ) {\n free ( g ) ;\n }\n HB_DEFINE_BOXED_TYPE ( feature , feature_reference , feature_destroy ) static hb_glyph_info_t * glyph_info_reference ( hb_glyph_info_t * g ) {\n hb_glyph_info_t * c = ( hb_glyph_info_t * ) calloc ( 1 , sizeof ( hb_glyph_info_t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * g ;\n return c ;\n }\n static void glyph_info_destroy ( hb_glyph_info_t * g ) {\n free ( g ) ;\n }\n HB_DEFINE_BOXED_TYPE ( glyph_info , glyph_info_reference , glyph_info_destroy ) static hb_glyph_position_t * glyph_position_reference ( hb_glyph_position_t * g ) {\n hb_glyph_position_t * c = ( hb_glyph_position_t * ) calloc ( 1 , sizeof ( hb_glyph_position_t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * g ;\n return c ;\n }\n static void glyph_position_destroy ( hb_glyph_position_t * g ) {\n free ( g ) ;\n }\n HB_DEFINE_BOXED_TYPE ( glyph_position , glyph_position_reference , glyph_position_destroy )"}
{"idx": 19621, "target": 0, "func": "static void handle_raw_data ( char * packet , int len , struct query * q , int dns_fd , int tun_fd , int userid ) {\n if ( check_authenticated_user_and_ip ( userid , q ) != 0 ) {\n return ;\n }\n if ( ! users [ userid ] . authenticated_raw ) return ;\n users [ userid ] . last_pkt = time ( NULL ) ;\n memcpy ( & ( users [ userid ] . q ) , q , sizeof ( struct query ) ) ;\n users [ userid ] . inpacket . offset = 0 ;\n memcpy ( users [ userid ] . inpacket . data , packet , len ) ;\n users [ userid ] . inpacket . len = len ;\n if ( debug >= 1 ) {\n fprintf ( stderr , \"IN pkt raw, total %d, from user %d\\n\" , users [ userid ] . inpacket . len , userid ) ;\n }\n handle_full_packet ( tun_fd , dns_fd , userid ) ;\n }"}
{"idx": 19622, "target": 0, "func": "static int main_atou ( const char * arg , usize_t * uo , usize_t low , usize_t high , char which ) {\n int ret ;\n xoff_t xo ;\n if ( ( ret = main_atoux ( arg , & xo , low , high , which ) ) ) {\n return ret ;\n }\n * uo = ( usize_t ) xo ;\n return 0 ;\n }"}
{"idx": 19623, "target": 0, "func": "int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL ) DECLARE_PEM_rw ( PKCS7 , PKCS7 )"}
{"idx": 19624, "target": 0, "func": "static int SpoolssDeleteForm_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n proto_item * hidden_item ;\n char * name = NULL ;\n hidden_item = proto_tree_add_uint ( tree , hf_form , tvb , offset , 0 , 1 ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , NULL , NULL , FALSE , FALSE ) ;\n offset = dissect_ndr_cvstring ( tvb , offset , pinfo , tree , di , drep , sizeof ( guint16 ) , hf_form_name , TRUE , & name ) ;\n if ( name ) col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , name ) ;\n return offset ;\n }"}
{"idx": 19625, "target": 0, "func": "static int dissect_h245_Cmd_multiplex ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_Cmd_multiplex , Cmd_multiplex_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 19626, "target": 0, "func": "static char * * subsystems_from_mount_options ( const char * mount_options , char * * kernel_list ) {\n char * token , * str , * saveptr = NULL ;\n char * * result = NULL ;\n size_t result_capacity = 0 ;\n size_t result_count = 0 ;\n int saved_errno ;\n int r ;\n str = alloca ( strlen ( mount_options ) + 1 ) ;\n strcpy ( str , mount_options ) ;\n for ( ;\n ( token = strtok_r ( str , \",\" , & saveptr ) ) ;\n str = NULL ) {\n if ( ! strncmp ( token , \"name=\" , 5 ) || lxc_string_in_array ( token , ( const char * * ) kernel_list ) ) {\n r = lxc_grow_array ( ( void * * * ) & result , & result_capacity , result_count + 1 , 12 ) ;\n if ( r < 0 ) goto out_free ;\n result [ result_count + 1 ] = NULL ;\n result [ result_count ] = strdup ( token ) ;\n if ( ! result [ result_count ] ) goto out_free ;\n result_count ++ ;\n }\n }\n return result ;\n out_free : saved_errno = errno ;\n lxc_free_array ( ( void * * ) result , free ) ;\n errno = saved_errno ;\n return NULL ;\n }"}
{"idx": 19627, "target": 1, "func": "WRITE_CLASS_ENCODER ( AuthCapsInfo ) struct AuthTicket {\n EntityName name ;\n uint64_t global_id ;\n uint64_t auid ;\n utime_t created , renew_after , expires ;\n AuthCapsInfo caps ;\n __u32 flags ;\n AuthTicket ( ) : global_id ( 0 ) , auid ( CEPH_AUTH_UID_DEFAULT ) , flags ( 0 ) {\n }\n void init_timestamps ( utime_t now , double ttl ) {\n created = now ;\n expires = now ;\n expires += ttl ;\n renew_after = now ;\n renew_after += ttl / 2.0 ;\n }\n void encode ( bufferlist & bl ) const {\n __u8 struct_v = 2 ;\n : : encode ( struct_v , bl ) ;\n : : encode ( name , bl ) ;\n : : encode ( global_id , bl ) ;\n : : encode ( auid , bl ) ;\n : : encode ( created , bl ) ;\n : : encode ( expires , bl ) ;\n : : encode ( caps , bl ) ;\n : : encode ( flags , bl ) ;\n }\n void decode ( bufferlist : : iterator & bl ) {\n __u8 struct_v ;\n : : decode ( struct_v , bl ) ;\n : : decode ( name , bl ) ;\n : : decode ( global_id , bl ) ;\n if ( struct_v >= 2 ) : : decode ( auid , bl ) ;\n else auid = CEPH_AUTH_UID_DEFAULT ;\n : : decode ( created , bl ) ;\n : : decode ( expires , bl ) ;\n : : decode ( caps , bl ) ;\n : : decode ( flags , bl ) ;\n }\n }\n ;\n WRITE_CLASS_ENCODER ( AuthTicket ) struct AuthAuthorizer {\n __u32 protocol ;\n bufferlist bl ;\n CryptoKey session_key ;\n explicit AuthAuthorizer ( __u32 p ) : protocol ( p ) {\n }\n virtual ~ AuthAuthorizer ( ) {\n }\n virtual bool verify_reply ( bufferlist : : iterator & reply ) = 0 ;\n }"}
{"idx": 19628, "target": 0, "func": "static void ps2_reset_queue ( PS2State * s ) {\n PS2Queue * q = & s -> queue ;\n q -> rptr = 0 ;\n q -> wptr = 0 ;\n q -> count = 0 ;\n }"}
{"idx": 19629, "target": 0, "func": "int qemuMonitorTextSetBalloon ( qemuMonitorPtr mon , unsigned long newmem ) {\n char * cmd ;\n char * reply = NULL ;\n int ret = - 1 ;\n if ( virAsprintf ( & cmd , \"balloon %lu\" , VIR_DIV_UP ( newmem , 1024 ) ) < 0 ) {\n virReportOOMError ( ) ;\n return - 1 ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , _ ( \"could not balloon memory allocation\" ) ) ;\n VIR_FREE ( cmd ) ;\n return - 1 ;\n }\n VIR_FREE ( cmd ) ;\n if ( strstr ( reply , \"unknown command:\" ) ) {\n ret = 0 ;\n }\n else {\n ret = 1 ;\n }\n VIR_FREE ( reply ) ;\n return ret ;\n }"}
{"idx": 19630, "target": 0, "func": "static int SpoolssGetPrinterData_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ;\n guint32 type ;\n proto_item * hidden_item ;\n const char * data ;\n hidden_item = proto_tree_add_uint ( tree , hf_printerdata , tvb , offset , 0 , 1 ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_printerdata_type , & type ) ;\n data = ( const char * ) ( dcv -> se_data ? dcv -> se_data : \"????\" ) ;\n col_append_fstr ( pinfo -> cinfo , COL_INFO , \", %s\" , data ) ;\n offset = dissect_printerdata_data ( tvb , offset , pinfo , tree , di , drep , type ) ;\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_needed , NULL ) ;\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 19631, "target": 0, "func": "static void ntp_poll ( struct parse * pcmd , FILE * fp ) {\n ( void ) fprintf ( fp , \"poll not implemented yet\\n\" ) ;\n }"}
{"idx": 19632, "target": 0, "func": "static int config_connection_request ( struct config_connection * conn , const char * const * args ) {\n struct config_export_context * ctx ;\n struct master_service_settings_output output ;\n struct config_filter filter ;\n const char * path , * error , * module , * const * wanted_modules ;\n ARRAY ( const char * ) modules ;\n bool is_master = FALSE ;\n t_array_init ( & modules , 4 ) ;\n i_zero ( & filter ) ;\n for ( ;\n * args != NULL ;\n args ++ ) {\n if ( strncmp ( * args , \"service=\" , 8 ) == 0 ) filter . service = * args + 8 ;\n else if ( strncmp ( * args , \"module=\" , 7 ) == 0 ) {\n module = * args + 7 ;\n if ( strcmp ( module , \"master\" ) == 0 ) is_master = TRUE ;\n array_append ( & modules , & module , 1 ) ;\n }\n else if ( strncmp ( * args , \"lname=\" , 6 ) == 0 ) filter . local_name = * args + 6 ;\n else if ( strncmp ( * args , \"lip=\" , 4 ) == 0 ) {\n if ( net_addr2ip ( * args + 4 , & filter . local_net ) == 0 ) {\n filter . local_bits = IPADDR_IS_V4 ( & filter . local_net ) ? : 128 ;\n }\n }\n else if ( strncmp ( * args , \"rip=\" , 4 ) == 0 ) {\n if ( net_addr2ip ( * args + 4 , & filter . remote_net ) == 0 ) {\n filter . remote_bits = IPADDR_IS_V4 ( & filter . remote_net ) ? : 128 ;\n }\n }\n }\n array_append_zero ( & modules ) ;\n wanted_modules = array_count ( & modules ) == 1 ? NULL : array_idx ( & modules , 0 ) ;\n if ( is_master ) {\n path = master_service_get_config_path ( master_service ) ;\n if ( config_parse_file ( path , TRUE , NULL , & error ) <= 0 ) {\n o_stream_nsend_str ( conn -> output , t_strconcat ( \"\\nERROR \" , error , \"\\n\" , NULL ) ) ;\n config_connection_destroy ( conn ) ;\n return - 1 ;\n }\n }\n o_stream_cork ( conn -> output ) ;\n ctx = config_export_init ( wanted_modules , CONFIG_DUMP_SCOPE_SET , 0 , config_request_output , conn -> output ) ;\n config_export_by_filter ( ctx , & filter ) ;\n config_export_get_output ( ctx , & output ) ;\n if ( output . specific_services != NULL ) {\n const char * const * s ;\n for ( s = output . specific_services ;\n * s != NULL ;\n s ++ ) {\n o_stream_nsend_str ( conn -> output , t_strdup_printf ( \"service=%s\\t\" , * s ) ) ;\n }\n }\n if ( output . service_uses_local ) o_stream_nsend_str ( conn -> output , \"service-uses-local\\t\" ) ;\n if ( output . service_uses_remote ) o_stream_nsend_str ( conn -> output , \"service-uses-remote\\t\" ) ;\n if ( output . used_local ) o_stream_nsend_str ( conn -> output , \"used-local\\t\" ) ;\n if ( output . used_remote ) o_stream_nsend_str ( conn -> output , \"used-remote\\t\" ) ;\n o_stream_nsend_str ( conn -> output , \"\\n\" ) ;\n if ( config_export_finish ( & ctx ) < 0 ) {\n config_connection_destroy ( conn ) ;\n return - 1 ;\n }\n o_stream_nsend_str ( conn -> output , \"\\n\" ) ;\n o_stream_uncork ( conn -> output ) ;\n return 0 ;\n }"}
{"idx": 19633, "target": 0, "func": "mbfl_string * mbfl_mime_header_encode ( mbfl_string * string , mbfl_string * result , enum mbfl_no_encoding outcode , enum mbfl_no_encoding encoding , const char * linefeed , int indent ) {\n int n ;\n unsigned char * p ;\n struct mime_header_encoder_data * pe ;\n mbfl_string_init ( result ) ;\n result -> no_language = string -> no_language ;\n result -> no_encoding = mbfl_no_encoding_ascii ;\n pe = mime_header_encoder_new ( string -> no_encoding , outcode , encoding ) ;\n if ( pe == NULL ) {\n return NULL ;\n }\n if ( linefeed != NULL ) {\n n = 0 ;\n while ( * linefeed && n < 8 ) {\n pe -> lwsp [ n ++ ] = * linefeed ++ ;\n }\n pe -> lwsp [ n ++ ] = 0x20 ;\n pe -> lwsp [ n ] = '\\0' ;\n pe -> lwsplen = n ;\n }\n if ( indent > 0 && indent < 74 ) {\n pe -> firstindent = indent ;\n }\n n = string -> len ;\n p = string -> val ;\n while ( n > 0 ) {\n ( * pe -> conv1_filter -> filter_function ) ( * p ++ , pe -> conv1_filter ) ;\n n -- ;\n }\n result = mime_header_encoder_result ( pe , result ) ;\n mime_header_encoder_delete ( pe ) ;\n return result ;\n }"}
{"idx": 19634, "target": 0, "func": "TSReturnCode TSUrlFtpTypeSet ( TSMBuffer bufp , TSMLoc obj , int type ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_url_handle ( obj ) == TS_SUCCESS ) ;\n if ( ( type == 0 || type == 'A' || type == 'E' || type == 'I' || type == 'a' || type == 'i' || type == 'e' ) && isWriteable ( bufp ) ) {\n URL u ;\n u . m_heap = ( ( HdrHeapSDKHandle * ) bufp ) -> m_heap ;\n u . m_url_impl = ( URLImpl * ) obj ;\n u . type_set ( type ) ;\n return TS_SUCCESS ;\n }\n return TS_ERROR ;\n }"}
{"idx": 19635, "target": 0, "func": "static void cdxl_decode_ham6 ( CDXLVideoContext * c , AVFrame * frame ) {\n AVCodecContext * avctx = c -> avctx ;\n uint32_t new_palette [ 16 ] , r , g , b ;\n uint8_t * ptr , * out , index , op ;\n int x , y ;\n ptr = c -> new_video ;\n out = frame -> data [ 0 ] ;\n import_palette ( c , new_palette ) ;\n import_format ( c , avctx -> width , c -> new_video ) ;\n for ( y = 0 ;\n y < avctx -> height ;\n y ++ ) {\n r = new_palette [ 0 ] & 0xFF0000 ;\n g = new_palette [ 0 ] & 0xFF00 ;\n b = new_palette [ 0 ] & 0xFF ;\n for ( x = 0 ;\n x < avctx -> width ;\n x ++ ) {\n index = * ptr ++ ;\n op = index >> 4 ;\n index &= 15 ;\n switch ( op ) {\n case 0 : r = new_palette [ index ] & 0xFF0000 ;\n g = new_palette [ index ] & 0xFF00 ;\n b = new_palette [ index ] & 0xFF ;\n break ;\n case 1 : b = index * 0x11 ;\n break ;\n case 2 : r = index * 0x11 << 16 ;\n break ;\n case 3 : g = index * 0x11 << 8 ;\n break ;\n }\n AV_WL24 ( out + x * 3 , r | g | b ) ;\n }\n out += frame -> linesize [ 0 ] ;\n }\n }"}
{"idx": 19636, "target": 0, "func": "static int selinux_tun_dev_alloc_security ( void * * security ) {\n struct tun_security_struct * tunsec ;\n tunsec = kzalloc ( sizeof ( * tunsec ) , GFP_KERNEL ) ;\n if ( ! tunsec ) return - ENOMEM ;\n tunsec -> sid = current_sid ( ) ;\n * security = tunsec ;\n return 0 ;\n }"}
{"idx": 19637, "target": 0, "func": "static void DefaultFreeFunc ( void * opaque , void * address ) {\n BROTLI_UNUSED ( opaque ) ;\n free ( address ) ;\n }"}
{"idx": 19638, "target": 0, "func": "static int wb_write_to_temp ( struct archive_write * a , const void * buff , size_t s ) {\n const char * xp = buff ;\n size_t xs = s ;\n if ( wb_remaining ( a ) == wb_buffmax ( ) && s > ( 1024 * 16 ) ) {\n struct iso9660 * iso9660 = ( struct iso9660 * ) a -> format_data ;\n xs = s % LOGICAL_BLOCK_SIZE ;\n iso9660 -> wbuff_offset += s - xs ;\n if ( write_to_temp ( a , buff , s - xs ) != ARCHIVE_OK ) return ( ARCHIVE_FATAL ) ;\n if ( xs == 0 ) return ( ARCHIVE_OK ) ;\n xp += s - xs ;\n }\n while ( xs ) {\n size_t size = xs ;\n if ( size > wb_remaining ( a ) ) size = wb_remaining ( a ) ;\n memcpy ( wb_buffptr ( a ) , xp , size ) ;\n if ( wb_consume ( a , size ) != ARCHIVE_OK ) return ( ARCHIVE_FATAL ) ;\n xs -= size ;\n xp += size ;\n }\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 19639, "target": 1, "func": "static void cchip_write ( void * opaque , hwaddr addr , uint64_t v32 , unsigned size ) {\n TyphoonState * s = opaque ;\n CPUState * cpu_single_cpu = CPU ( alpha_env_get_cpu ( cpu_single_env ) ) ;\n uint64_t val , oldval , newval ;\n if ( addr & 4 ) {\n val = v32 << 32 | s -> latch_tmp ;\n addr ^= 4 ;\n }\n else {\n s -> latch_tmp = v32 ;\n return ;\n }\n switch ( addr ) {\n case 0x0000 : break ;\n case 0x0040 : break ;\n case 0x0080 : newval = oldval = s -> cchip . misc ;\n newval &= ~ ( val & 0x10000ff0 ) ;\n if ( val & 0x100000 ) {\n newval &= ~ 0xff0000ull ;\n }\n else {\n newval |= val & 0x00f00000 ;\n if ( ( newval & 0xf0000 ) == 0 ) {\n newval |= val & 0xf0000 ;\n }\n }\n newval |= ( val & 0xf000 ) >> 4 ;\n newval &= ~ 0xf0000000000ull ;\n newval |= val & 0xf0000000000ull ;\n s -> cchip . misc = newval ;\n if ( ( newval ^ oldval ) & 0xff0 ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) {\n AlphaCPU * cpu = s -> cchip . cpu [ i ] ;\n if ( cpu != NULL ) {\n CPUState * cs = CPU ( cpu ) ;\n if ( newval & ( 1 << ( i + 8 ) ) ) {\n cpu_interrupt ( cs , CPU_INTERRUPT_SMP ) ;\n }\n else {\n cpu_reset_interrupt ( cs , CPU_INTERRUPT_SMP ) ;\n }\n if ( ( newval & ( 1 << ( i + 4 ) ) ) == 0 ) {\n cpu_reset_interrupt ( cs , CPU_INTERRUPT_TIMER ) ;\n }\n }\n }\n }\n break ;\n case 0x00c0 : break ;\n case 0x0100 : case 0x0140 : case 0x0180 : case 0x01c0 : break ;\n case 0x0200 : s -> cchip . dim [ 0 ] = val ;\n cpu_irq_change ( s -> cchip . cpu [ 0 ] , val & s -> cchip . drir ) ;\n break ;\n case 0x0240 : s -> cchip . dim [ 0 ] = val ;\n cpu_irq_change ( s -> cchip . cpu [ 1 ] , val & s -> cchip . drir ) ;\n break ;\n case 0x0280 : case 0x02c0 : case 0x0300 : break ;\n case 0x0340 : break ;\n case 0x0380 : s -> cchip . iic [ 0 ] = val & 0xffffff ;\n break ;\n case 0x03c0 : s -> cchip . iic [ 1 ] = val & 0xffffff ;\n break ;\n case 0x0400 : case 0x0440 : case 0x0480 : case 0x04c0 : break ;\n case 0x0580 : break ;\n case 0x05c0 : break ;\n case 0x0600 : s -> cchip . dim [ 2 ] = val ;\n cpu_irq_change ( s -> cchip . cpu [ 2 ] , val & s -> cchip . drir ) ;\n break ;\n case 0x0640 : s -> cchip . dim [ 3 ] = val ;\n cpu_irq_change ( s -> cchip . cpu [ 3 ] , val & s -> cchip . drir ) ;\n break ;\n case 0x0680 : case 0x06c0 : break ;\n case 0x0700 : s -> cchip . iic [ 2 ] = val & 0xffffff ;\n break ;\n case 0x0740 : s -> cchip . iic [ 3 ] = val & 0xffffff ;\n break ;\n case 0x0780 : break ;\n case 0x0c00 : case 0x0c40 : case 0x0c80 : case 0x0cc0 : break ;\n default : cpu_unassigned_access ( cpu_single_cpu , addr , true , false , 0 , size ) ;\n return ;\n }\n }"}
{"idx": 19640, "target": 0, "func": "static void config_qos ( config_tree * ptree ) {\n attr_val * my_qc ;\n char * s ;\n # ifdef HAVE_IPTOS_SUPPORT unsigned int qtos = 0 ;\n # endif my_qc = HEAD_PFIFO ( ptree -> qos ) ;\n for ( ;\n my_qc != NULL ;\n my_qc = my_qc -> link ) {\n s = my_qc -> value . s ;\n # ifdef HAVE_IPTOS_SUPPORT if ( ! strcmp ( s , \"lowdelay\" ) ) qtos = CONF_QOS_LOWDELAY ;\n else if ( ! strcmp ( s , \"throughput\" ) ) qtos = CONF_QOS_THROUGHPUT ;\n else if ( ! strcmp ( s , \"reliability\" ) ) qtos = CONF_QOS_RELIABILITY ;\n else if ( ! strcmp ( s , \"mincost\" ) ) qtos = CONF_QOS_MINCOST ;\n # ifdef IPTOS_PREC_INTERNETCONTROL else if ( ! strcmp ( s , \"routine\" ) || ! strcmp ( s , \"cs0\" ) ) qtos = CONF_QOS_CS0 ;\n else if ( ! strcmp ( s , \"priority\" ) || ! strcmp ( s , \"cs1\" ) ) qtos = CONF_QOS_CS1 ;\n else if ( ! strcmp ( s , \"immediate\" ) || ! strcmp ( s , \"cs2\" ) ) qtos = CONF_QOS_CS2 ;\n else if ( ! strcmp ( s , \"flash\" ) || ! strcmp ( s , \"cs3\" ) ) qtos = CONF_QOS_CS3 ;\n if ( ! strcmp ( s , \"flashoverride\" ) || ! strcmp ( s , \"cs4\" ) ) qtos = CONF_QOS_CS4 ;\n else if ( ! strcmp ( s , \"critical\" ) || ! strcmp ( s , \"cs5\" ) ) qtos = CONF_QOS_CS5 ;\n else if ( ! strcmp ( s , \"internetcontrol\" ) || ! strcmp ( s , \"cs6\" ) ) qtos = CONF_QOS_CS6 ;\n else if ( ! strcmp ( s , \"netcontrol\" ) || ! strcmp ( s , \"cs7\" ) ) qtos = CONF_QOS_CS7 ;\n # endif if ( qtos == 0 ) msyslog ( LOG_ERR , \"parse error, qos %s not accepted\\n\" , s ) ;\n else qos = qtos ;\n # endif }\n }"}
{"idx": 19641, "target": 0, "func": "int mbfl_buffer_illegalchars ( mbfl_buffer_converter * convd ) {\n int num_illegalchars = 0 ;\n if ( convd == NULL ) {\n return 0 ;\n }\n if ( convd -> filter1 != NULL ) {\n num_illegalchars += convd -> filter1 -> num_illegalchar ;\n }\n if ( convd -> filter2 != NULL ) {\n num_illegalchars += convd -> filter2 -> num_illegalchar ;\n }\n return ( num_illegalchars ) ;\n }"}
{"idx": 19642, "target": 0, "func": "TEST_F ( WebUsbDetectorTest , NotificationClickedWhileInactiveTabUrlIsLandingPage ) {\n GURL landing_page_1 ( kLandingPage_1 ) ;\n GURL landing_page_2 ( kLandingPage_2 ) ;\n scoped_refptr < device : : MockUsbDevice > device_1 ( new device : : MockUsbDevice ( 0 , 1 , \"Google\" , kProductName_1 , \"002\" , landing_page_1 ) ) ;\n std : : string guid_1 = device_1 -> guid ( ) ;\n TabStripModel * tab_strip_model = browser ( ) -> tab_strip_model ( ) ;\n base : : HistogramTester histogram_tester ;\n Initialize ( ) ;\n AddTab ( browser ( ) , landing_page_1 ) ;\n AddTab ( browser ( ) , landing_page_2 ) ;\n device_client_ . usb_service ( ) -> AddDevice ( device_1 ) ;\n message_center : : Notification * notification_1 = message_center_ -> FindVisibleNotificationById ( guid_1 ) ;\n ASSERT_TRUE ( notification_1 != nullptr ) ;\n EXPECT_EQ ( 2 , tab_strip_model -> count ( ) ) ;\n notification_1 -> Click ( ) ;\n EXPECT_EQ ( 2 , tab_strip_model -> count ( ) ) ;\n content : : WebContents * web_contents = tab_strip_model -> GetWebContentsAt ( tab_strip_model -> active_index ( ) ) ;\n EXPECT_EQ ( landing_page_1 , web_contents -> GetURL ( ) ) ;\n ASSERT_TRUE ( message_center_ -> FindVisibleNotificationById ( guid_1 ) == nullptr ) ;\n histogram_tester . ExpectUniqueSample ( \"WebUsb.NotificationClosed\" , 2 , 1 ) ;\n }"}
{"idx": 19643, "target": 0, "func": "void pdf_tos_set_matrix ( pdf_text_object_state * tos , float a , float b , float c , float d , float e , float f ) {\n tos -> tm . a = a ;\n tos -> tm . b = b ;\n tos -> tm . c = c ;\n tos -> tm . d = d ;\n tos -> tm . e = e ;\n tos -> tm . f = f ;\n tos -> tlm = tos -> tm ;\n }"}
{"idx": 19644, "target": 0, "func": "static void get_tile_buffers ( VP9Decoder * pbi , const uint8_t * data , const uint8_t * data_end , int tile_cols , int tile_rows , TileBuffer ( * tile_buffers ) [ 1 << 6 ] ) {\n int r , c ;\n for ( r = 0 ;\n r < tile_rows ;\n ++ r ) {\n for ( c = 0 ;\n c < tile_cols ;\n ++ c ) {\n const int is_last = ( r == tile_rows - 1 ) && ( c == tile_cols - 1 ) ;\n TileBuffer * const buf = & tile_buffers [ r ] [ c ] ;\n buf -> col = c ;\n get_tile_buffer ( data_end , is_last , & pbi -> common . error , & data , pbi -> decrypt_cb , pbi -> decrypt_state , buf ) ;\n }\n }\n }"}
{"idx": 19645, "target": 0, "func": "static char * t_tob64 ( char * dst , const unsigned char * src , int size ) {\n int c , pos = size % 3 ;\n unsigned char b0 = 0 , b1 = 0 , b2 = 0 , notleading = 0 ;\n char * olddst = dst ;\n switch ( pos ) {\n case 1 : b2 = src [ 0 ] ;\n break ;\n case 2 : b1 = src [ 0 ] ;\n b2 = src [ 1 ] ;\n break ;\n }\n while ( 1 ) {\n c = ( b0 & 0xfc ) >> 2 ;\n if ( notleading || c != 0 ) {\n * dst ++ = b64table [ c ] ;\n notleading = 1 ;\n }\n c = ( ( b0 & 3 ) << 4 ) | ( ( b1 & 0xf0 ) >> 4 ) ;\n if ( notleading || c != 0 ) {\n * dst ++ = b64table [ c ] ;\n notleading = 1 ;\n }\n c = ( ( b1 & 0xf ) << 2 ) | ( ( b2 & 0xc0 ) >> 6 ) ;\n if ( notleading || c != 0 ) {\n * dst ++ = b64table [ c ] ;\n notleading = 1 ;\n }\n c = b2 & 0x3f ;\n if ( notleading || c != 0 ) {\n * dst ++ = b64table [ c ] ;\n notleading = 1 ;\n }\n if ( pos >= size ) break ;\n else {\n b0 = src [ pos ++ ] ;\n b1 = src [ pos ++ ] ;\n b2 = src [ pos ++ ] ;\n }\n }\n * dst ++ = '\\0' ;\n return olddst ;\n }"}
{"idx": 19646, "target": 0, "func": "static MagickBooleanType load_tile_rle ( Image * image , Image * tile_image , XCFDocInfo * inDocInfo , XCFLayerInfo * inLayerInfo , size_t data_length , ExceptionInfo * exception ) {\n MagickOffsetType size ;\n Quantum alpha ;\n register Quantum * q ;\n size_t length ;\n ssize_t bytes_per_pixel , count , i , j ;\n unsigned char data , pixel , * xcfdata , * xcfodata , * xcfdatalimit ;\n bytes_per_pixel = ( ssize_t ) inDocInfo -> bytes_per_pixel ;\n xcfdata = ( unsigned char * ) AcquireQuantumMemory ( data_length , sizeof ( * xcfdata ) ) ;\n if ( xcfdata == ( unsigned char * ) NULL ) ThrowBinaryException ( ResourceLimitError , \"MemoryAllocationFailed\" , image -> filename ) ;\n xcfodata = xcfdata ;\n count = ReadBlob ( image , ( size_t ) data_length , xcfdata ) ;\n xcfdatalimit = xcfodata + count - 1 ;\n alpha = ScaleCharToQuantum ( ( unsigned char ) inLayerInfo -> alpha ) ;\n for ( i = 0 ;\n i < ( ssize_t ) bytes_per_pixel ;\n i ++ ) {\n q = GetAuthenticPixels ( tile_image , 0 , 0 , tile_image -> columns , tile_image -> rows , exception ) ;\n if ( q == ( Quantum * ) NULL ) continue ;\n size = ( MagickOffsetType ) tile_image -> rows * tile_image -> columns ;\n while ( size > 0 ) {\n if ( xcfdata > xcfdatalimit ) goto bogus_rle ;\n pixel = ( * xcfdata ++ ) ;\n length = ( size_t ) pixel ;\n if ( length >= 128 ) {\n length = 255 - ( length - 1 ) ;\n if ( length == 128 ) {\n if ( xcfdata >= xcfdatalimit ) goto bogus_rle ;\n length = ( size_t ) ( ( * xcfdata << 8 ) + xcfdata [ 1 ] ) ;\n xcfdata += 2 ;\n }\n size -= length ;\n if ( size < 0 ) goto bogus_rle ;\n if ( & xcfdata [ length - 1 ] > xcfdatalimit ) goto bogus_rle ;\n while ( length -- > 0 ) {\n data = ( * xcfdata ++ ) ;\n switch ( i ) {\n case 0 : {\n if ( inDocInfo -> image_type == GIMP_GRAY ) SetPixelGray ( tile_image , ScaleCharToQuantum ( data ) , q ) ;\n else {\n SetPixelRed ( tile_image , ScaleCharToQuantum ( data ) , q ) ;\n SetPixelGreen ( tile_image , ScaleCharToQuantum ( data ) , q ) ;\n SetPixelBlue ( tile_image , ScaleCharToQuantum ( data ) , q ) ;\n }\n SetPixelAlpha ( tile_image , alpha , q ) ;\n break ;\n }\n case 1 : {\n if ( inDocInfo -> image_type == GIMP_GRAY ) SetPixelAlpha ( tile_image , ScaleCharToQuantum ( data ) , q ) ;\n else SetPixelGreen ( tile_image , ScaleCharToQuantum ( data ) , q ) ;\n break ;\n }\n case 2 : {\n SetPixelBlue ( tile_image , ScaleCharToQuantum ( data ) , q ) ;\n break ;\n }\n case 3 : {\n SetPixelAlpha ( tile_image , ScaleCharToQuantum ( data ) , q ) ;\n break ;\n }\n }\n q += GetPixelChannels ( tile_image ) ;\n }\n }\n else {\n length += 1 ;\n if ( length == 128 ) {\n if ( xcfdata >= xcfdatalimit ) goto bogus_rle ;\n length = ( size_t ) ( ( * xcfdata << 8 ) + xcfdata [ 1 ] ) ;\n xcfdata += 2 ;\n }\n size -= length ;\n if ( size < 0 ) goto bogus_rle ;\n if ( xcfdata > xcfdatalimit ) goto bogus_rle ;\n pixel = ( * xcfdata ++ ) ;\n for ( j = 0 ;\n j < ( ssize_t ) length ;\n j ++ ) {\n data = pixel ;\n switch ( i ) {\n case 0 : {\n if ( inDocInfo -> image_type == GIMP_GRAY ) SetPixelGray ( tile_image , ScaleCharToQuantum ( data ) , q ) ;\n else {\n SetPixelRed ( tile_image , ScaleCharToQuantum ( data ) , q ) ;\n SetPixelGreen ( tile_image , ScaleCharToQuantum ( data ) , q ) ;\n SetPixelBlue ( tile_image , ScaleCharToQuantum ( data ) , q ) ;\n }\n SetPixelAlpha ( tile_image , alpha , q ) ;\n break ;\n }\n case 1 : {\n if ( inDocInfo -> image_type == GIMP_GRAY ) SetPixelAlpha ( tile_image , ScaleCharToQuantum ( data ) , q ) ;\n else SetPixelGreen ( tile_image , ScaleCharToQuantum ( data ) , q ) ;\n break ;\n }\n case 2 : {\n SetPixelBlue ( tile_image , ScaleCharToQuantum ( data ) , q ) ;\n break ;\n }\n case 3 : {\n SetPixelAlpha ( tile_image , ScaleCharToQuantum ( data ) , q ) ;\n break ;\n }\n }\n q += GetPixelChannels ( tile_image ) ;\n }\n }\n }\n if ( SyncAuthenticPixels ( tile_image , exception ) == MagickFalse ) break ;\n }\n xcfodata = ( unsigned char * ) RelinquishMagickMemory ( xcfodata ) ;\n return ( MagickTrue ) ;\n bogus_rle : if ( xcfodata != ( unsigned char * ) NULL ) xcfodata = ( unsigned char * ) RelinquishMagickMemory ( xcfodata ) ;\n return ( MagickFalse ) ;\n }"}
{"idx": 19647, "target": 0, "func": "static void dissect_q931_channel_identification_ie ( tvbuff_t * tvb , int offset , int len , proto_tree * tree ) {\n guint8 octet ;\n guint8 coding_standard ;\n if ( len == 0 ) return ;\n octet = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_q931_extension_ind , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_q931_channel_interface_explicit , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_q931_channel_interface_type , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_q931_channel_exclusive , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_q931_channel_dchan , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n if ( octet & Q931_NOT_BASIC_CHANNEL ) {\n proto_tree_add_item ( tree , hf_q931_channel_selection_pri , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n }\n else {\n proto_tree_add_item ( tree , hf_q931_channel_selection_bri , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n }\n offset += 1 ;\n len -= 1 ;\n if ( octet & Q931_INTERFACE_IDENTIFIED ) {\n guint8 octet2 ;\n guint32 identifier_val = 0 ;\n int identifier_offset = offset ;\n int identifier_len = 0 ;\n do {\n if ( len == 0 ) break ;\n octet2 = tvb_get_guint8 ( tvb , offset ) ;\n offset += 1 ;\n len -= 1 ;\n identifier_len ++ ;\n identifier_val <<= 7 ;\n identifier_val |= octet2 & 0x7F ;\n }\n while ( ! ( octet2 & Q931_IE_VL_EXTENSION ) ) ;\n if ( identifier_len != 0 ) {\n proto_tree_add_uint ( tree , hf_q931_channel_interface_id , tvb , identifier_offset , identifier_len , identifier_val ) ;\n }\n }\n if ( octet & Q931_NOT_BASIC_CHANNEL ) {\n if ( len == 0 ) return ;\n octet = tvb_get_guint8 ( tvb , offset ) ;\n coding_standard = octet & 0x60 ;\n proto_tree_add_item ( tree , hf_q931_extension_ind , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_uint ( tree , hf_q931_coding_standard , tvb , offset , 1 , octet ) ;\n if ( coding_standard != Q931_ITU_STANDARDIZED_CODING ) {\n proto_tree_add_item ( tree , hf_q931_channel_data , tvb , offset , len , ENC_NA ) ;\n return ;\n }\n proto_tree_add_item ( tree , hf_q931_channel_map , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_q931_channel_element_type , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset += 1 ;\n len -= 1 ;\n if ( octet & Q931_IS_SLOT_MAP ) {\n while ( len ) {\n proto_tree_add_item ( tree , hf_q931_channel_slot_map , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset += 1 ;\n len -= 1 ;\n }\n }\n else {\n guint8 octet2 ;\n do {\n if ( len == 0 ) break ;\n octet2 = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_q931_extension_ind , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_q931_channel_number , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset += 1 ;\n len -= 1 ;\n }\n while ( ! ( octet2 & Q931_IE_VL_EXTENSION ) ) ;\n }\n }\n }"}
{"idx": 19648, "target": 0, "func": "static int dissect_h245_TerminalCapabilitySet ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_TerminalCapabilitySet , TerminalCapabilitySet_sequence ) ;\n # line 590 \"../../asn1/h245/h245.cnf\" if ( h245_pi != NULL ) h245_pi -> msg_type = H245_TermCapSet ;\n return offset ;\n }"}
{"idx": 19649, "target": 0, "func": "static void proto_tree_set_ipv6_tvb ( field_info * fi , tvbuff_t * tvb , gint start , gint length ) {\n proto_tree_set_ipv6 ( fi , tvb_get_ptr ( tvb , start , length ) ) ;\n }"}
{"idx": 19650, "target": 0, "func": "void _TIFFmemcpy ( void * d , const void * s , tmsize_t c ) {\n memcpy ( d , s , ( size_t ) c ) ;\n }"}
{"idx": 19651, "target": 0, "func": "static void dumppost ( struct alltabs * at , SplineFont * sf , enum fontformat format ) {\n int pos , i , j , shouldbe ;\n int shorttable = ( format == ff_otf || format == ff_otfcid || ( at -> gi . flags & ttf_flag_shortps ) ) ;\n uint32 here ;\n at -> post = tmpfile ( ) ;\n putlong ( at -> post , shorttable ? 0x00030000 : 0x00020000 ) ;\n putfixed ( at -> post , sf -> italicangle ) ;\n putshort ( at -> post , sf -> upos - sf -> uwidth / 2 ) ;\n putshort ( at -> post , sf -> uwidth ) ;\n putlong ( at -> post , at -> isfixed ) ;\n putlong ( at -> post , 0 ) ;\n putlong ( at -> post , 0 ) ;\n putlong ( at -> post , 0 ) ;\n putlong ( at -> post , 0 ) ;\n if ( ! shorttable ) {\n here = ftell ( at -> post ) ;\n putshort ( at -> post , at -> maxp . numGlyphs ) ;\n shouldbe = 0 ;\n for ( i = 0 , pos = 0 ;\n i < at -> maxp . numGlyphs ;\n ++ i ) {\n if ( at -> gi . bygid [ i ] != - 1 && sf -> glyphs [ at -> gi . bygid [ i ] ] != NULL ) {\n SplineChar * sc = sf -> glyphs [ at -> gi . bygid [ i ] ] ;\n while ( i > shouldbe ) {\n if ( shouldbe == 0 ) putshort ( at -> post , 0 ) ;\n else if ( shouldbe == 1 ) putshort ( at -> post , 1 ) ;\n else if ( shouldbe == 2 ) putshort ( at -> post , 2 ) ;\n else putshort ( at -> post , 0 ) ;\n ++ shouldbe ;\n }\n if ( strcmp ( sc -> name , \".notdef\" ) == 0 ) putshort ( at -> post , 0 ) ;\n else {\n for ( j = 0 ;\n j < 258 ;\n ++ j ) if ( strcmp ( sc -> name , ttfstandardnames [ j ] ) == 0 ) break ;\n if ( j != 258 ) putshort ( at -> post , j ) ;\n else {\n putshort ( at -> post , pos + 258 ) ;\n ++ pos ;\n }\n }\n ++ shouldbe ;\n }\n }\n if ( shouldbe != at -> maxp . numGlyphs ) {\n fseek ( at -> post , here , SEEK_SET ) ;\n putshort ( at -> post , shouldbe ) ;\n fseek ( at -> post , 0 , SEEK_END ) ;\n }\n if ( pos != 0 ) {\n for ( i = 0 ;\n i < at -> maxp . numGlyphs ;\n ++ i ) if ( at -> gi . bygid [ i ] != - 1 ) {\n SplineChar * sc = sf -> glyphs [ at -> gi . bygid [ i ] ] ;\n if ( strcmp ( sc -> name , \".notdef\" ) == 0 ) ;\n else {\n for ( j = 0 ;\n j < 258 ;\n ++ j ) if ( strcmp ( sc -> name , ttfstandardnames [ j ] ) == 0 ) break ;\n if ( j != 258 ) ;\n else dumppstr ( at -> post , sc -> name ) ;\n }\n }\n }\n }\n at -> postlen = ftell ( at -> post ) ;\n if ( ( at -> postlen & 3 ) != 0 ) for ( j = 4 - ( at -> postlen & 3 ) ;\n j > 0 ;\n -- j ) putc ( '\\0' , at -> post ) ;\n }"}
{"idx": 19652, "target": 0, "func": "void compute_curve_gamma_table_type1 ( float gamma_table [ 256 ] , uint16_t gamma ) {\n unsigned int i ;\n float gamma_float = u8Fixed8Number_to_float ( gamma ) ;\n for ( i = 0 ;\n i < 256 ;\n i ++ ) {\n gamma_table [ i ] = pow ( i / 255. , gamma_float ) ;\n }\n }"}
{"idx": 19653, "target": 0, "func": "static void pxa2xx_pm_write ( void * opaque , hwaddr addr , uint64_t value , unsigned size ) {\n PXA2xxState * s = ( PXA2xxState * ) opaque ;\n switch ( addr ) {\n case PMCR : s -> pm_regs [ addr >> 2 ] &= ~ ( value & 0x2a ) ;\n s -> pm_regs [ addr >> 2 ] &= ~ 0x15 ;\n s -> pm_regs [ addr >> 2 ] |= value & 0x15 ;\n break ;\n case PSSR : case RCSR : case PKSR : s -> pm_regs [ addr >> 2 ] &= ~ value ;\n break ;\n default : if ( ! ( addr & 3 ) ) {\n s -> pm_regs [ addr >> 2 ] = value ;\n break ;\n }\n printf ( \"%s: Bad register \" REG_FMT \"\\n\" , __FUNCTION__ , addr ) ;\n break ;\n }\n }"}
{"idx": 19654, "target": 0, "func": "static gint detect_version ( wtap * wth , int * err , gchar * * err_info ) {\n gint bytes_read ;\n guint16 payload_length ;\n guint16 hdr_size ;\n guint16 read_sofar ;\n guint16 entry_len ;\n gint version ;\n struct logger_entry * log_entry ;\n struct logger_entry_v2 * log_entry_v2 ;\n guint8 * buffer ;\n guint16 tmp ;\n guint8 * msg_payload , * msg_part , * msg_end ;\n guint16 msg_len ;\n bytes_read = file_read ( & tmp , 2 , wth -> fh ) ;\n if ( bytes_read != 2 ) {\n * err = file_error ( wth -> fh , err_info ) ;\n if ( * err == 0 && bytes_read != 0 ) * err = WTAP_ERR_SHORT_READ ;\n return - 1 ;\n }\n payload_length = pletoh16 ( & tmp ) ;\n bytes_read = file_read ( & tmp , 2 , wth -> fh ) ;\n if ( bytes_read != 2 ) {\n * err = file_error ( wth -> fh , err_info ) ;\n if ( * err == 0 && bytes_read != 0 ) * err = WTAP_ERR_SHORT_READ ;\n return - 1 ;\n }\n hdr_size = pletoh16 ( & tmp ) ;\n read_sofar = 4 ;\n if ( payload_length < 3 ) return - 1 ;\n if ( payload_length > LOGGER_ENTRY_MAX_PAYLOAD ) return - 1 ;\n buffer = ( guint8 * ) g_malloc ( sizeof ( * log_entry_v2 ) + payload_length ) ;\n log_entry_v2 = ( struct logger_entry_v2 * ) buffer ;\n log_entry = ( struct logger_entry * ) buffer ;\n for ( version = 1 ;\n version <= 2 ;\n ++ version ) {\n if ( version == 1 ) {\n msg_payload = log_entry -> msg ;\n entry_len = sizeof ( * log_entry ) + payload_length ;\n }\n else if ( version == 2 ) {\n msg_payload = log_entry_v2 -> msg ;\n entry_len = sizeof ( * log_entry_v2 ) + payload_length ;\n if ( hdr_size != sizeof ( * log_entry_v2 ) ) continue ;\n }\n bytes_read = file_read ( buffer + read_sofar , entry_len - read_sofar , wth -> fh ) ;\n if ( bytes_read != entry_len - read_sofar ) {\n * err = file_error ( wth -> fh , err_info ) ;\n if ( * err == 0 && bytes_read != 0 ) * err = WTAP_ERR_SHORT_READ ;\n version = - 1 ;\n break ;\n }\n read_sofar += bytes_read ;\n if ( get_priority ( msg_payload [ 0 ] ) == '?' ) continue ;\n msg_part = ( guint8 * ) memchr ( msg_payload , '\\0' , payload_length - 1 ) ;\n if ( msg_part == NULL ) continue ;\n ++ msg_part ;\n msg_len = payload_length - ( msg_part - msg_payload ) ;\n msg_end = ( guint8 * ) memchr ( msg_part , '\\0' , msg_len ) ;\n if ( msg_end && ( msg_payload + payload_length - 1 != msg_end ) ) continue ;\n g_free ( buffer ) ;\n return version ;\n }\n g_free ( buffer ) ;\n return - 1 ;\n }"}
{"idx": 19655, "target": 0, "func": "static void prplcb_roomlist_add_room ( PurpleRoomlist * list , PurpleRoomlistRoom * room ) {\n bee_chat_info_t * ci ;\n const char * title ;\n const char * topic ;\n GList * fields ;\n struct purple_roomlist_data * rld = list -> ui_data ;\n fields = purple_roomlist_room_get_fields ( room ) ;\n title = purple_roomlist_room_get_name ( room ) ;\n if ( rld -> topic >= 0 ) {\n topic = g_list_nth_data ( fields , rld -> topic ) ;\n }\n else {\n topic = NULL ;\n }\n ci = g_new ( bee_chat_info_t , 1 ) ;\n ci -> title = g_strdup ( title ) ;\n ci -> topic = g_strdup ( topic ) ;\n rld -> chats = g_slist_prepend ( rld -> chats , ci ) ;\n }"}
{"idx": 19656, "target": 0, "func": "static void int_ossl_decode_sanity_check ( long len , long read , long offset ) {\n if ( len != 0 && ( read != len || offset != len ) ) {\n ossl_raise ( eASN1Error , \"Type mismatch. Total bytes read: %ld Bytes available: %ld Offset: %ld\" , read , len , offset ) ;\n }\n }"}
{"idx": 19657, "target": 1, "func": "static int dissect_CPMCreateQuery ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * parent_tree , gboolean in , void * data _U_ ) {\n gint offset = 16 ;\n proto_item * item ;\n proto_tree * tree ;\n item = proto_tree_add_item ( parent_tree , hf_mswsp_msg , tvb , offset , - 1 , ENC_NA ) ;\n tree = proto_item_add_subtree ( item , ett_mswsp_msg ) ;\n proto_item_set_text ( item , \"CPMCreateQuery%s\" , in ? \"In\" : \"Out\" ) ;\n col_append_str ( pinfo -> cinfo , COL_INFO , \"CreateQuery\" ) ;\n if ( in ) {\n proto_item * ti ;\n proto_tree * pad_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_mswsp_pad , & ti , \"Padding\" ) ;\n guint8 CColumnSetPresent , CRestrictionPresent , CSortSetPresent , CCategorizationSetPresent ;\n guint32 size = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_msg_cpmcreatequery_size , tvb , offset , 4 , size ) ;\n offset += 4 ;\n CColumnSetPresent = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcreatequery_ccolumnsetpresent , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 1 ;\n if ( CColumnSetPresent ) {\n offset = parse_padding ( tvb , offset , 4 , pad_tree , \"paddingCColumnSetPresent\" ) ;\n offset = parse_padding ( tvb , offset , 4 , pad_tree , \"paddingCColumnSetPresent\" ) ;\n offset = parse_CColumnSet ( tvb , offset , tree , \"CColumnSet\" ) ;\n }\n CRestrictionPresent = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcreatequery_crestrictionpresent , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 1 ;\n if ( CRestrictionPresent ) {\n offset = parse_CRestrictionArray ( tvb , offset , tree , pad_tree , \"RestrictionArray\" ) ;\n }\n CSortSetPresent = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcreatequery_csortpresent , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 1 ;\n if ( CSortSetPresent ) {\n offset = parse_padding ( tvb , offset , 4 , tree , \"paddingCSortSetPresent\" ) ;\n offset = parse_CInGroupSortAggregSets ( tvb , offset , tree , pad_tree , \"GroupSortAggregSets\" ) ;\n }\n CCategorizationSetPresent = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcreatequery_ccategpresent , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset += 1 ;\n if ( CCategorizationSetPresent ) {\n guint32 count , i ;\n offset = parse_padding ( tvb , offset , 4 , pad_tree , \"paddingCCategorizationSetPresent\" ) ;\n count = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_msg_cpmcreatequery_ccateg_count , tvb , offset , 4 , count ) ;\n offset += 4 ;\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n offset = parse_CCategorizationSpec ( tvb , offset , tree , pad_tree , \"categories[%u]\" , i ) ;\n }\n }\n offset = parse_padding ( tvb , offset , 4 , tree , \"XXXX\" ) ;\n offset = parse_CRowsetProperties ( tvb , offset , tree , pad_tree , \"RowSetProperties\" ) ;\n offset = parse_CPidMapper ( tvb , offset , tree , pad_tree , \"PidMapper\" ) ;\n parse_CColumnGroupArray ( tvb , offset , tree , pad_tree , \"GroupArray\" ) ;\n }\n else {\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcreatequery_trueseq , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcreatequery_workid , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( tree , hf_mswsp_msg_cpmcreatequery_cursors , tvb , offset , - 1 , ENC_NA ) ;\n }\n return tvb_reported_length ( tvb ) ;\n }"}
{"idx": 19658, "target": 0, "func": "void _TIFFmemset ( void * p , int v , tmsize_t c ) {\n memset ( p , v , ( size_t ) c ) ;\n }"}
{"idx": 19659, "target": 0, "func": "static void stroke_del_ca ( private_stroke_socket_t * this , stroke_msg_t * msg , FILE * out ) {\n pop_string ( msg , & msg -> del_ca . name ) ;\n DBG1 ( DBG_CFG , \"received stroke: delete ca '%s'\" , msg -> del_ca . name ) ;\n this -> ca -> del ( this -> ca , msg ) ;\n }"}
{"idx": 19660, "target": 0, "func": "TEST_F ( WebFrameTest , ContextMenuDataSelectAll ) {\n EXPECT_FALSE ( TestSelectAll ( \"<textarea></textarea>\" ) ) ;\n EXPECT_TRUE ( TestSelectAll ( \"<textarea>nonempty</textarea>\" ) ) ;\n EXPECT_FALSE ( TestSelectAll ( \"<input>\" ) ) ;\n EXPECT_TRUE ( TestSelectAll ( \"<input value='nonempty'>\" ) ) ;\n EXPECT_FALSE ( TestSelectAll ( \"<div contenteditable></div>\" ) ) ;\n EXPECT_TRUE ( TestSelectAll ( \"<div contenteditable>nonempty</div>\" ) ) ;\n EXPECT_TRUE ( TestSelectAll ( \"<div contenteditable>\\n</div>\" ) ) ;\n }"}
{"idx": 19661, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( UnloadTest , BrowserCloseBeforeUnloadCancel ) {\n NavigateToDataURL ( BEFORE_UNLOAD_HTML , \"beforeunload\" ) ;\n chrome : : CloseWindow ( browser ( ) ) ;\n base : : string16 expected_title = base : : ASCIIToUTF16 ( \"cancelled\" ) ;\n content : : TitleWatcher title_watcher ( browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) , expected_title ) ;\n ClickModalDialogButton ( false ) ;\n ASSERT_EQ ( expected_title , title_watcher . WaitAndGetTitle ( ) ) ;\n content : : WindowedNotificationObserver window_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , content : : NotificationService : : AllSources ( ) ) ;\n chrome : : CloseWindow ( browser ( ) ) ;\n ClickModalDialogButton ( true ) ;\n window_observer . Wait ( ) ;\n }"}
{"idx": 19662, "target": 1, "func": "void vp9_iwht4x4_1_add_c ( const int16_t * in , uint8_t * dest , int dest_stride ) {\n int i ;\n int a1 , e1 ;\n int16_t tmp [ 4 ] ;\n const int16_t * ip = in ;\n int16_t * op = tmp ;\n a1 = ip [ 0 ] >> UNIT_QUANT_SHIFT ;\n e1 = a1 >> 1 ;\n a1 -= e1 ;\n op [ 0 ] = a1 ;\n op [ 1 ] = op [ 2 ] = op [ 3 ] = e1 ;\n ip = tmp ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n e1 = ip [ 0 ] >> 1 ;\n a1 = ip [ 0 ] - e1 ;\n dest [ dest_stride * 0 ] = clip_pixel ( dest [ dest_stride * 0 ] + a1 ) ;\n dest [ dest_stride * 1 ] = clip_pixel ( dest [ dest_stride * 1 ] + e1 ) ;\n dest [ dest_stride * 2 ] = clip_pixel ( dest [ dest_stride * 2 ] + e1 ) ;\n dest [ dest_stride * 3 ] = clip_pixel ( dest [ dest_stride * 3 ] + e1 ) ;\n ip ++ ;\n dest ++ ;\n }\n }"}
{"idx": 19663, "target": 0, "func": "static void translation_buf_decode ( struct message_decoder_context * ctx , const unsigned char * * data , size_t * size ) {\n unsigned char trans_buf [ CHARSET_MAX_PENDING_BUF_SIZE + 1 ] ;\n size_t data_wanted , skip ;\n size_t trans_size , orig_size ;\n memcpy ( trans_buf , ctx -> translation_buf , ctx -> translation_size ) ;\n data_wanted = sizeof ( trans_buf ) - ctx -> translation_size ;\n if ( data_wanted > * size ) data_wanted = * size ;\n memcpy ( trans_buf + ctx -> translation_size , * data , data_wanted ) ;\n orig_size = trans_size = ctx -> translation_size + data_wanted ;\n ( void ) charset_to_utf8 ( ctx -> charset_trans , trans_buf , & trans_size , ctx -> buf2 ) ;\n if ( trans_size <= ctx -> translation_size ) {\n i_assert ( orig_size < CHARSET_MAX_PENDING_BUF_SIZE ) ;\n memcpy ( ctx -> translation_buf , trans_buf , orig_size ) ;\n ctx -> translation_size = orig_size ;\n * data += * size ;\n * size = 0 ;\n return ;\n }\n skip = trans_size - ctx -> translation_size ;\n i_assert ( * size >= skip ) ;\n * data += skip ;\n * size -= skip ;\n ctx -> translation_size = 0 ;\n }"}
{"idx": 19664, "target": 0, "func": "static int ossl_asn1_is_explicit ( VALUE obj ) {\n VALUE s ;\n s = ossl_asn1_get_tagging ( obj ) ;\n if ( NIL_P ( s ) || s == sym_IMPLICIT ) return 0 ;\n else if ( s == sym_EXPLICIT ) return 1 ;\n else ossl_raise ( eASN1Error , \"invalid tag default\" ) ;\n }"}
{"idx": 19665, "target": 0, "func": "TEST_F ( FullscreenControllerStateUnitTest , ExitFullscreenViaBrowserWindow ) {\n AddTab ( browser ( ) , GURL ( url : : kAboutBlankURL ) ) ;\n ASSERT_TRUE ( InvokeEvent ( TOGGLE_FULLSCREEN ) ) ;\n ASSERT_TRUE ( InvokeEvent ( WINDOW_CHANGE ) ) ;\n ASSERT_TRUE ( browser ( ) -> window ( ) -> IsFullscreen ( ) ) ;\n browser ( ) -> window ( ) -> ExitFullscreen ( ) ;\n ChangeWindowFullscreenState ( ) ;\n EXPECT_EQ ( EXCLUSIVE_ACCESS_BUBBLE_TYPE_NONE , browser ( ) -> fullscreen_controller ( ) -> GetExclusiveAccessBubbleType ( ) ) ;\n }"}
{"idx": 19666, "target": 0, "func": "TEST_F ( TemplateURLParserTest , PassOnHTTPS ) {\n ASSERT_NO_FATAL_FAILURE ( ParseFile ( \"https.xml\" , nullptr ) ) ;\n EXPECT_TRUE ( template_url_ ) ;\n }"}
{"idx": 19667, "target": 0, "func": "static void dissect_zcl_appl_ctrl_exec_cmd ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree_add_item ( tree , hf_zbee_zcl_appl_ctrl_exec_cmd_id , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n }"}
{"idx": 19668, "target": 0, "func": "static void cmd_channel_add ( const char * data ) {\n cmd_channel_add_modify ( data , TRUE ) ;\n }"}
{"idx": 19669, "target": 0, "func": "static void show ( const char * format , ... ) {\n va_list arg_ptr ;\n if ( ! verbose ) return ;\n fprintf ( stderr , \"%s: \" , PGM ) ;\n va_start ( arg_ptr , format ) ;\n vfprintf ( stderr , format , arg_ptr ) ;\n va_end ( arg_ptr ) ;\n }"}
{"idx": 19670, "target": 0, "func": "GType hb_gobject_ ## name ## _get_type ( void ) \\ {\n static gsize type_id = 0 ;\n if ( g_once_init_enter ( & type_id ) ) {\n GType id = g_boxed_type_register_static ( g_intern_static_string ( \"hb_\" # name \"_t\" ) , ( GBoxedCopyFunc ) copy_func , ( GBoxedFreeFunc ) free_func ) ;\n g_once_init_leave ( & type_id , id ) ;\n }\n return type_id ;\n \\ }\n # define HB_DEFINE_OBJECT_TYPE ( name ) HB_DEFINE_BOXED_TYPE ( name , hb_ ## name ## _reference , hb_ ## name ## _destroy ) ;\n # define HB_DEFINE_VALUE_TYPE ( name ) static hb_ ## name ## _t * _hb_ ## name ## _reference ( const hb_ ## name ## _t * l ) {\n hb_ ## name ## _t * c = ( hb_ ## name ## _t * ) calloc ( 1 , sizeof ( hb_ ## name ## _t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * l ;\n return c ;\n }\n static void _hb_ ## name ## _destroy ( hb_ ## name ## _t * l ) {\n free ( l ) ;\n }\n HB_DEFINE_BOXED_TYPE ( name , _hb_ ## name ## _reference , _hb_ ## name ## _destroy ) ;\n HB_DEFINE_OBJECT_TYPE ( buffer ) HB_DEFINE_OBJECT_TYPE ( blob ) HB_DEFINE_OBJECT_TYPE ( face ) HB_DEFINE_OBJECT_TYPE ( font ) HB_DEFINE_OBJECT_TYPE ( font_funcs ) HB_DEFINE_OBJECT_TYPE ( set ) HB_DEFINE_OBJECT_TYPE ( shape_plan ) HB_DEFINE_OBJECT_TYPE ( unicode_funcs ) HB_DEFINE_VALUE_TYPE ( feature )"}
{"idx": 19671, "target": 0, "func": "static struct sadb_msg * pfkey_get_base_msg ( struct sk_buff * skb , int * errp ) {\n struct sadb_msg * hdr = NULL ;\n if ( skb -> len < sizeof ( * hdr ) ) {\n * errp = - EMSGSIZE ;\n }\n else {\n hdr = ( struct sadb_msg * ) skb -> data ;\n if ( hdr -> sadb_msg_version != PF_KEY_V2 || hdr -> sadb_msg_reserved != 0 || ( hdr -> sadb_msg_type <= SADB_RESERVED || hdr -> sadb_msg_type > SADB_MAX ) ) {\n hdr = NULL ;\n * errp = - EINVAL ;\n }\n else if ( hdr -> sadb_msg_len != ( skb -> len / sizeof ( uint64_t ) ) || hdr -> sadb_msg_len < ( sizeof ( struct sadb_msg ) / sizeof ( uint64_t ) ) ) {\n hdr = NULL ;\n * errp = - EMSGSIZE ;\n }\n else {\n * errp = 0 ;\n }\n }\n return hdr ;\n }"}
{"idx": 19672, "target": 0, "func": "static void ivi_output_plane ( IVIPlaneDesc * plane , uint8_t * dst , int dst_pitch ) {\n int x , y ;\n const int16_t * src = plane -> bands [ 0 ] . buf ;\n uint32_t pitch = plane -> bands [ 0 ] . pitch ;\n if ( ! src ) return ;\n for ( y = 0 ;\n y < plane -> height ;\n y ++ ) {\n for ( x = 0 ;\n x < plane -> width ;\n x ++ ) dst [ x ] = av_clip_uint8 ( src [ x ] + 128 ) ;\n src += pitch ;\n dst += dst_pitch ;\n }\n }"}
{"idx": 19673, "target": 1, "func": "void vp9_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint8_t * dst , ptrdiff_t stride , const uint8_t * above , const uint8_t * left ) {\n type ## _predictor ( dst , stride , size , above , left ) ;\n }\n # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) static INLINE void d207_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n intra_pred_allsizes ( d207 ) static INLINE void d63_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d63 ) static INLINE void d45_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r + c + 2 < bs * 2 ? ROUND_POWER_OF_TWO ( above [ r + c ] + above [ r + c + 1 ] * 2 + above [ r + c + 2 ] , 2 ) : above [ bs * 2 - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d45 ) static INLINE void d117_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] , 1 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 3 ;\n r < bs ;\n ++ r ) dst [ ( r - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ r - 3 ] + left [ r - 2 ] * 2 + left [ r - 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - 2 * stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d117 ) static INLINE void d135_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d135 ) static INLINE void d153_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] , 1 ) ;\n for ( r = 1 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 1 ] + left [ r ] , 1 ) ;\n dst ++ ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] * 2 + above [ c + 1 ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = dst [ - stride + c - 2 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d153 ) static INLINE void v_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memcpy ( dst , above , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( v ) static INLINE void h_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset ( dst , left [ r ] , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( h ) static INLINE void tm_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n int ytop_left = above [ - 1 ] ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = clip_pixel ( left [ r ] + above [ c ] - ytop_left ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( tm ) static INLINE void dc_128_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r ;\n ( void ) above ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset ( dst , 128 , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( dc_128 )"}
{"idx": 19674, "target": 0, "func": "int evbuffer_write ( struct evbuffer * buffer , int fd ) {\n int n ;\n # ifndef WIN32 n = write ( fd , buffer -> buffer , buffer -> off ) ;\n # else n = send ( fd , buffer -> buffer , buffer -> off , 0 ) ;\n # endif if ( n == - 1 ) return ( - 1 ) ;\n if ( n == 0 ) return ( 0 ) ;\n evbuffer_drain ( buffer , n ) ;\n return ( n ) ;\n }"}
{"idx": 19675, "target": 0, "func": "static int row_get_classname ( const zval * object , const char * * class_name , zend_uint * class_name_len , int parent TSRMLS_DC ) {\n if ( parent ) {\n return FAILURE ;\n }\n else {\n * class_name = estrndup ( \"PDORow\" , sizeof ( \"PDORow\" ) - 1 ) ;\n * class_name_len = sizeof ( \"PDORow\" ) - 1 ;\n return SUCCESS ;\n }\n }"}
{"idx": 19676, "target": 1, "func": "static void find_next_key_frame ( VP9_COMP * cpi , FIRSTPASS_STATS * this_frame ) {\n int i , j ;\n RATE_CONTROL * const rc = & cpi -> rc ;\n TWO_PASS * const twopass = & cpi -> twopass ;\n GF_GROUP * const gf_group = & twopass -> gf_group ;\n const VP9EncoderConfig * const oxcf = & cpi -> oxcf ;\n const FIRSTPASS_STATS first_frame = * this_frame ;\n const FIRSTPASS_STATS * const start_position = twopass -> stats_in ;\n FIRSTPASS_STATS next_frame ;\n FIRSTPASS_STATS last_frame ;\n int kf_bits = 0 ;\n double decay_accumulator = 1.0 ;\n double zero_motion_accumulator = 1.0 ;\n double boost_score = 0.0 ;\n double kf_mod_err = 0.0 ;\n double kf_group_err = 0.0 ;\n double recent_loop_decay [ 8 ] = {\n 1.0 , 1.0 , 1.0 , 1.0 , 1.0 , 1.0 , 1.0 , 1.0 }\n ;\n vp9_zero ( next_frame ) ;\n cpi -> common . frame_type = KEY_FRAME ;\n vp9_zero ( * gf_group ) ;\n rc -> this_key_frame_forced = rc -> next_key_frame_forced ;\n rc -> source_alt_ref_active = 0 ;\n cpi -> multi_arf_last_grp_enabled = 0 ;\n rc -> frames_till_gf_update_due = 0 ;\n rc -> frames_to_key = 1 ;\n twopass -> kf_group_bits = 0 ;\n twopass -> kf_group_error_left = 0 ;\n kf_mod_err = calculate_modified_err ( twopass , oxcf , this_frame ) ;\n i = 0 ;\n while ( twopass -> stats_in < twopass -> stats_in_end && rc -> frames_to_key < cpi -> oxcf . key_freq ) {\n kf_group_err += calculate_modified_err ( twopass , oxcf , this_frame ) ;\n last_frame = * this_frame ;\n input_stats ( twopass , this_frame ) ;\n if ( cpi -> oxcf . auto_key && twopass -> stats_in < twopass -> stats_in_end ) {\n double loop_decay_rate ;\n if ( test_candidate_kf ( twopass , & last_frame , this_frame , twopass -> stats_in ) ) break ;\n loop_decay_rate = get_prediction_decay_rate ( & cpi -> common , twopass -> stats_in ) ;\n recent_loop_decay [ i % 8 ] = loop_decay_rate ;\n decay_accumulator = 1.0 ;\n for ( j = 0 ;\n j < 8 ;\n ++ j ) decay_accumulator *= recent_loop_decay [ j ] ;\n if ( detect_transition_to_still ( twopass , i , cpi -> oxcf . key_freq - i , loop_decay_rate , decay_accumulator ) ) break ;\n ++ rc -> frames_to_key ;\n if ( rc -> frames_to_key >= 2 * cpi -> oxcf . key_freq ) break ;\n }\n else {\n ++ rc -> frames_to_key ;\n }\n ++ i ;\n }\n if ( cpi -> oxcf . auto_key && rc -> frames_to_key > cpi -> oxcf . key_freq ) {\n FIRSTPASS_STATS tmp_frame = first_frame ;\n rc -> frames_to_key /= 2 ;\n reset_fpf_position ( twopass , start_position ) ;\n kf_group_err = 0 ;\n for ( i = 0 ;\n i < rc -> frames_to_key ;\n ++ i ) {\n kf_group_err += calculate_modified_err ( twopass , oxcf , & tmp_frame ) ;\n input_stats ( twopass , & tmp_frame ) ;\n }\n rc -> next_key_frame_forced = 1 ;\n }\n else if ( twopass -> stats_in == twopass -> stats_in_end || rc -> frames_to_key >= cpi -> oxcf . key_freq ) {\n rc -> next_key_frame_forced = 1 ;\n }\n else {\n rc -> next_key_frame_forced = 0 ;\n }\n if ( is_two_pass_svc ( cpi ) && cpi -> svc . number_temporal_layers > 1 ) {\n int count = ( 1 << ( cpi -> svc . number_temporal_layers - 1 ) ) - 1 ;\n int new_frame_to_key = ( rc -> frames_to_key + count ) & ( ~ count ) ;\n int j ;\n for ( j = 0 ;\n j < new_frame_to_key - rc -> frames_to_key ;\n ++ j ) {\n if ( EOF == input_stats ( twopass , this_frame ) ) break ;\n kf_group_err += calculate_modified_err ( twopass , oxcf , this_frame ) ;\n }\n rc -> frames_to_key = new_frame_to_key ;\n }\n if ( twopass -> stats_in >= twopass -> stats_in_end ) {\n kf_group_err += calculate_modified_err ( twopass , oxcf , this_frame ) ;\n }\n if ( twopass -> bits_left > 0 && twopass -> modified_error_left > 0.0 ) {\n const int max_bits = frame_max_bits ( rc , & cpi -> oxcf ) ;\n int64_t max_grp_bits ;\n twopass -> kf_group_bits = ( int64_t ) ( twopass -> bits_left * ( kf_group_err / twopass -> modified_error_left ) ) ;\n max_grp_bits = ( int64_t ) max_bits * ( int64_t ) rc -> frames_to_key ;\n if ( twopass -> kf_group_bits > max_grp_bits ) twopass -> kf_group_bits = max_grp_bits ;\n }\n else {\n twopass -> kf_group_bits = 0 ;\n }\n twopass -> kf_group_bits = MAX ( 0 , twopass -> kf_group_bits ) ;\n reset_fpf_position ( twopass , start_position ) ;\n decay_accumulator = 1.0 ;\n boost_score = 0.0 ;\n for ( i = 0 ;\n i < rc -> frames_to_key ;\n ++ i ) {\n if ( EOF == input_stats ( twopass , & next_frame ) ) break ;\n zero_motion_accumulator = MIN ( zero_motion_accumulator , get_zero_motion_factor ( & next_frame ) ) ;\n if ( i <= ( rc -> max_gf_interval * 2 ) ) {\n double r ;\n if ( next_frame . intra_error > twopass -> kf_intra_err_min ) r = ( IIKFACTOR2 * next_frame . intra_error / DOUBLE_DIVIDE_CHECK ( next_frame . coded_error ) ) ;\n else r = ( IIKFACTOR2 * twopass -> kf_intra_err_min / DOUBLE_DIVIDE_CHECK ( next_frame . coded_error ) ) ;\n if ( r > RMAX ) r = RMAX ;\n if ( ! detect_flash ( twopass , 0 ) ) {\n const double loop_decay_rate = get_prediction_decay_rate ( & cpi -> common , & next_frame ) ;\n decay_accumulator *= loop_decay_rate ;\n decay_accumulator = MAX ( decay_accumulator , MIN_DECAY_FACTOR ) ;\n }\n boost_score += ( decay_accumulator * r ) ;\n }\n }\n reset_fpf_position ( twopass , start_position ) ;\n twopass -> kf_zeromotion_pct = ( int ) ( zero_motion_accumulator * 100.0 ) ;\n twopass -> section_intra_rating = calculate_section_intra_ratio ( start_position , twopass -> stats_in_end , rc -> frames_to_key ) ;\n rc -> kf_boost = ( int ) boost_score ;\n if ( rc -> kf_boost < ( rc -> frames_to_key * 3 ) ) rc -> kf_boost = ( rc -> frames_to_key * 3 ) ;\n if ( rc -> kf_boost < MIN_KF_BOOST ) rc -> kf_boost = MIN_KF_BOOST ;\n kf_bits = calculate_boost_bits ( ( rc -> frames_to_key - 1 ) , rc -> kf_boost , twopass -> kf_group_bits ) ;\n twopass -> kf_group_bits -= kf_bits ;\n gf_group -> bit_allocation [ 0 ] = kf_bits ;\n gf_group -> update_type [ 0 ] = KF_UPDATE ;\n gf_group -> rf_level [ 0 ] = KF_STD ;\n twopass -> kf_group_error_left = ( int ) ( kf_group_err - kf_mod_err ) ;\n twopass -> modified_error_left -= kf_group_err ;\n }"}
{"idx": 19677, "target": 1, "func": "static byte * i_alloc_byte_array_immovable ( gs_memory_t * mem , uint num_elements , uint elt_size , client_name_t cname ) {\n gs_ref_memory_t * const imem = ( gs_ref_memory_t * ) mem ;\n obj_header_t * obj ;\n # ifdef MEMENTO if ( Memento_failThisEvent ( ) ) return NULL ;\n # endif obj = alloc_obj ( imem , ( ulong ) num_elements * elt_size , & st_bytes , ALLOC_IMMOVABLE | ALLOC_DIRECT , cname ) ;\n if_debug6m ( 'A' , mem , \"[a%d|+b.]%s -bytes-*(%lu=%u*%u) = 0x%lx\\n\" , alloc_trace_space ( imem ) , client_name_string ( cname ) , ( ulong ) num_elements * elt_size , num_elements , elt_size , ( ulong ) obj ) ;\n return ( byte * ) obj ;\n }"}
{"idx": 19678, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount )"}
{"idx": 19679, "target": 0, "func": "static int spl_filesystem_object_cast ( zval * readobj , zval * writeobj , int type TSRMLS_DC ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( readobj TSRMLS_CC ) ;\n if ( type == IS_STRING ) {\n if ( Z_OBJCE_P ( readobj ) -> __tostring ) {\n return std_object_handlers . cast_object ( readobj , writeobj , type TSRMLS_CC ) ;\n }\n switch ( intern -> type ) {\n case SPL_FS_INFO : case SPL_FS_FILE : if ( readobj == writeobj ) {\n zval retval ;\n zval * retval_ptr = & retval ;\n ZVAL_STRINGL ( retval_ptr , intern -> file_name , intern -> file_name_len , 1 ) ;\n zval_dtor ( readobj ) ;\n ZVAL_ZVAL ( writeobj , retval_ptr , 0 , 0 ) ;\n }\n else {\n ZVAL_STRINGL ( writeobj , intern -> file_name , intern -> file_name_len , 1 ) ;\n }\n return SUCCESS ;\n case SPL_FS_DIR : if ( readobj == writeobj ) {\n zval retval ;\n zval * retval_ptr = & retval ;\n ZVAL_STRING ( retval_ptr , intern -> u . dir . entry . d_name , 1 ) ;\n zval_dtor ( readobj ) ;\n ZVAL_ZVAL ( writeobj , retval_ptr , 0 , 0 ) ;\n }\n else {\n ZVAL_STRING ( writeobj , intern -> u . dir . entry . d_name , 1 ) ;\n }\n return SUCCESS ;\n }\n }\n else if ( type == IS_BOOL ) {\n ZVAL_BOOL ( writeobj , 1 ) ;\n return SUCCESS ;\n }\n if ( readobj == writeobj ) {\n zval_dtor ( readobj ) ;\n }\n ZVAL_NULL ( writeobj ) ;\n return FAILURE ;\n }"}
{"idx": 19680, "target": 0, "func": "nic_rule_node * create_nic_rule_node ( int match_class , char * if_name , int action ) {\n nic_rule_node * my_node ;\n NTP_REQUIRE ( match_class != 0 || if_name != NULL ) ;\n my_node = emalloc_zero ( sizeof ( * my_node ) ) ;\n my_node -> match_class = match_class ;\n my_node -> if_name = if_name ;\n my_node -> action = action ;\n return my_node ;\n }"}
{"idx": 19681, "target": 0, "func": "Oid get_base_element_type ( Oid typid ) {\n for ( ;\n ;\n ) {\n HeapTuple tup ;\n Form_pg_type typTup ;\n tup = SearchSysCache1 ( TYPEOID , ObjectIdGetDatum ( typid ) ) ;\n if ( ! HeapTupleIsValid ( tup ) ) break ;\n typTup = ( Form_pg_type ) GETSTRUCT ( tup ) ;\n if ( typTup -> typtype != TYPTYPE_DOMAIN ) {\n Oid result ;\n if ( typTup -> typlen == - 1 ) result = typTup -> typelem ;\n else result = InvalidOid ;\n ReleaseSysCache ( tup ) ;\n return result ;\n }\n typid = typTup -> typbasetype ;\n ReleaseSysCache ( tup ) ;\n }\n return InvalidOid ;\n }"}
{"idx": 19682, "target": 0, "func": "TEST_F ( TemplateURLParserTest , FailOnPost ) {\n ASSERT_NO_FATAL_FAILURE ( ParseFile ( \"post.xml\" , nullptr ) ) ;\n EXPECT_FALSE ( template_url_ ) ;\n }"}
{"idx": 19683, "target": 0, "func": "static int dissect_h245_FunctionNotUnderstood ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_FunctionNotUnderstood , FunctionNotUnderstood_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 19684, "target": 0, "func": "static int dissect_h225_DisplayName ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_DisplayName , DisplayName_sequence ) ;\n return offset ;\n }"}
{"idx": 19685, "target": 0, "func": "static char * xps_parse_real_num ( char * s , float * number ) {\n char buf [ 64 ] ;\n char * p = buf ;\n while ( is_real_num_char ( * s ) ) * p ++ = * s ++ ;\n * p = 0 ;\n if ( buf [ 0 ] ) * number = fz_atof ( buf ) ;\n return s ;\n }"}
{"idx": 19686, "target": 0, "func": "static int dissect_h225_IA5String_SIZE_1_32 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_IA5String ( tvb , offset , actx , tree , hf_index , 1 , 32 , FALSE ) ;\n return offset ;\n }"}
{"idx": 19687, "target": 0, "func": "static unsigned int do_16x16_motion_iteration ( VP9_COMP * cpi , const MV * ref_mv , MV * dst_mv , int mb_row , int mb_col ) {\n MACROBLOCK * const x = & cpi -> mb ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n const MV_SPEED_FEATURES * const mv_sf = & cpi -> sf . mv ;\n const vp9_variance_fn_ptr_t v_fn_ptr = cpi -> fn_ptr [ BLOCK_16X16 ] ;\n const int tmp_col_min = x -> mv_col_min ;\n const int tmp_col_max = x -> mv_col_max ;\n const int tmp_row_min = x -> mv_row_min ;\n const int tmp_row_max = x -> mv_row_max ;\n MV ref_full ;\n int sad_list [ 5 ] ;\n int step_param = mv_sf -> reduce_first_step_size ;\n step_param = MIN ( step_param , MAX_MVSEARCH_STEPS - 2 ) ;\n vp9_set_mv_search_range ( x , ref_mv ) ;\n ref_full . col = ref_mv -> col >> 3 ;\n ref_full . row = ref_mv -> row >> 3 ;\n vp9_hex_search ( x , & ref_full , step_param , x -> errorperbit , 0 , cond_sad_list ( cpi , sad_list ) , & v_fn_ptr , 0 , ref_mv , dst_mv ) ;\n {\n int distortion ;\n unsigned int sse ;\n cpi -> find_fractional_mv_step ( x , dst_mv , ref_mv , cpi -> common . allow_high_precision_mv , x -> errorperbit , & v_fn_ptr , 0 , mv_sf -> subpel_iters_per_step , cond_sad_list ( cpi , sad_list ) , NULL , NULL , & distortion , & sse , NULL , 0 , 0 ) ;\n }\n xd -> mi [ 0 ] . src_mi -> mbmi . mode = NEWMV ;\n xd -> mi [ 0 ] . src_mi -> mbmi . mv [ 0 ] . as_mv = * dst_mv ;\n vp9_build_inter_predictors_sby ( xd , mb_row , mb_col , BLOCK_16X16 ) ;\n x -> mv_col_min = tmp_col_min ;\n x -> mv_col_max = tmp_col_max ;\n x -> mv_row_min = tmp_row_min ;\n x -> mv_row_max = tmp_row_max ;\n return vp9_sad16x16 ( x -> plane [ 0 ] . src . buf , x -> plane [ 0 ] . src . stride , xd -> plane [ 0 ] . dst . buf , xd -> plane [ 0 ] . dst . stride ) ;\n }"}
{"idx": 19688, "target": 0, "func": "static void enable_query_logs ( int truncate ) {\n int rc ;\n rc = mysql_query ( mysql , \"set @save_global_general_log=@@global.general_log\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"set @save_global_slow_query_log=@@global.slow_query_log\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"set @@global.general_log=on\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"set @@global.slow_query_log=on\" ) ;\n myquery ( rc ) ;\n if ( truncate ) {\n rc = mysql_query ( mysql , \"truncate mysql.general_log\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"truncate mysql.slow_log\" ) ;\n myquery ( rc ) ;\n }\n }"}
{"idx": 19689, "target": 0, "func": "static void test_bug15752 ( ) {\n MYSQL mysql_local ;\n int rc , i ;\n const int ITERATION_COUNT = 100 ;\n const char * query = \"CALL p1()\" ;\n myheader ( \"test_bug15752\" ) ;\n rc = mysql_query ( mysql , \"drop procedure if exists p1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"create procedure p1() select 1\" ) ;\n myquery ( rc ) ;\n mysql_client_init ( & mysql_local ) ;\n if ( ! mysql_real_connect ( & mysql_local , opt_host , opt_user , opt_password , current_db , opt_port , opt_unix_socket , CLIENT_MULTI_STATEMENTS ) ) {\n printf ( \"Unable connect to MySQL server: %s\\n\" , mysql_error ( & mysql_local ) ) ;\n DIE_UNLESS ( 0 ) ;\n }\n rc = mysql_real_query ( & mysql_local , query , strlen ( query ) ) ;\n myquery ( rc ) ;\n mysql_free_result ( mysql_store_result ( & mysql_local ) ) ;\n rc = mysql_real_query ( & mysql_local , query , strlen ( query ) ) ;\n DIE_UNLESS ( rc && mysql_errno ( & mysql_local ) == CR_COMMANDS_OUT_OF_SYNC ) ;\n if ( ! opt_silent ) printf ( \"Got error (as expected): %s\\n\" , mysql_error ( & mysql_local ) ) ;\n DIE_UNLESS ( mysql_next_result ( & mysql_local ) == 0 ) ;\n mysql_free_result ( mysql_store_result ( & mysql_local ) ) ;\n DIE_UNLESS ( mysql_next_result ( & mysql_local ) == - 1 ) ;\n for ( i = 0 ;\n i < ITERATION_COUNT ;\n i ++ ) {\n if ( mysql_real_query ( & mysql_local , query , strlen ( query ) ) ) {\n printf ( \"\\ni=%d %s failed: %s\\n\" , i , query , mysql_error ( & mysql_local ) ) ;\n break ;\n }\n mysql_free_result ( mysql_store_result ( & mysql_local ) ) ;\n DIE_UNLESS ( mysql_next_result ( & mysql_local ) == 0 ) ;\n mysql_free_result ( mysql_store_result ( & mysql_local ) ) ;\n DIE_UNLESS ( mysql_next_result ( & mysql_local ) == - 1 ) ;\n }\n mysql_close ( & mysql_local ) ;\n rc = mysql_query ( mysql , \"drop procedure p1\" ) ;\n myquery ( rc ) ;\n }"}
{"idx": 19690, "target": 0, "func": "static void network_init ( PCIBus * pci_bus ) {\n int i ;\n for ( i = 0 ;\n i < nb_nics ;\n i ++ ) {\n NICInfo * nd = & nd_table [ i ] ;\n const char * default_devaddr = NULL ;\n if ( i == 0 && ( ! nd -> model || strcmp ( nd -> model , \"pcnet\" ) == 0 ) ) default_devaddr = \"0b\" ;\n pci_nic_init_nofail ( nd , pci_bus , \"pcnet\" , default_devaddr ) ;\n }\n }"}
{"idx": 19691, "target": 0, "func": "static int update_mv ( vp9_writer * w , const unsigned int ct [ 2 ] , vp9_prob * cur_p , vp9_prob upd_p ) {\n const vp9_prob new_p = get_binary_prob ( ct [ 0 ] , ct [ 1 ] ) | 1 ;\n const int update = cost_branch256 ( ct , * cur_p ) + vp9_cost_zero ( upd_p ) > cost_branch256 ( ct , new_p ) + vp9_cost_one ( upd_p ) + 7 * 256 ;\n vp9_write ( w , update , upd_p ) ;\n if ( update ) {\n * cur_p = new_p ;\n vp9_write_literal ( w , new_p >> 1 , 7 ) ;\n }\n return update ;\n }"}
{"idx": 19692, "target": 0, "func": "static void writer_register_all ( void ) {\n static int initialized ;\n if ( initialized ) return ;\n initialized = 1 ;\n writer_register ( & default_writer ) ;\n writer_register ( & compact_writer ) ;\n writer_register ( & csv_writer ) ;\n writer_register ( & flat_writer ) ;\n writer_register ( & ini_writer ) ;\n writer_register ( & json_writer ) ;\n writer_register ( & xml_writer ) ;\n }"}
{"idx": 19693, "target": 0, "func": "TSReturnCode TSMimeHdrFieldValuesClear ( TSMBuffer bufp , TSMLoc hdr , TSMLoc field ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( hdr ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( hdr ) == TS_SUCCESS ) ) ;\n sdk_assert ( sdk_sanity_check_field_handle ( field , hdr ) == TS_SUCCESS ) ;\n if ( ! isWriteable ( bufp ) ) {\n return TS_ERROR ;\n }\n MIMEFieldSDKHandle * handle = ( MIMEFieldSDKHandle * ) field ;\n HdrHeap * heap = ( ( HdrHeapSDKHandle * ) bufp ) -> m_heap ;\n mime_field_value_set ( heap , handle -> mh , handle -> field_ptr , nullptr , 0 , true ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 19694, "target": 0, "func": "int psf_close_rsrc ( SF_PRIVATE * psf ) {\n psf_close_fd ( psf -> rsrc . filedes ) ;\n psf -> rsrc . filedes = - 1 ;\n return 0 ;\n }"}
{"idx": 19695, "target": 1, "func": "const EVP_CIPHER * EVP_aes_ ## keylen ## _ ## mode ( void ) \\ {\n return & aes_ ## keylen ## _ ## mode ;\n }\n # 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_CAPABLE ( OPENSSL_armcap_P & ARMV7_NEON ) # endif # if defined ( VPAES_ASM ) # define VPAES_CAPABLE ( OPENSSL_armcap_P & ARMV7_NEON ) # endif # define HWAES_CAPABLE ( OPENSSL_armcap_P & ARMV8_AES ) # define HWAES_set_encrypt_key aes_v8_set_encrypt_key # define HWAES_set_decrypt_key aes_v8_set_decrypt_key # define HWAES_encrypt aes_v8_encrypt # define HWAES_decrypt aes_v8_decrypt # define HWAES_cbc_encrypt aes_v8_cbc_encrypt # define HWAES_ctr32_encrypt_blocks aes_v8_ctr32_encrypt_blocks # endif # endif # if defined ( HWAES_CAPABLE ) int HWAES_set_encrypt_key ( const unsigned char * userKey , const int bits , AES_KEY * key ) ;\n int HWAES_set_decrypt_key ( const unsigned char * userKey , const int bits , AES_KEY * key ) ;\n void HWAES_encrypt ( const unsigned char * in , unsigned char * out , const AES_KEY * key ) ;\n void HWAES_decrypt ( const unsigned char * in , unsigned char * out , const AES_KEY * key ) ;\n void HWAES_cbc_encrypt ( const unsigned char * in , unsigned char * out , size_t length , const AES_KEY * key , unsigned char * ivec , const int enc ) ;\n void HWAES_ctr32_encrypt_blocks ( const unsigned char * in , unsigned char * out , size_t len , const AES_KEY * key , const unsigned char ivec [ 16 ] ) ;\n void HWAES_xts_encrypt ( const unsigned char * inp , unsigned char * out , size_t len , const AES_KEY * key1 , const AES_KEY * key2 , const unsigned char iv [ 16 ] ) ;\n void HWAES_xts_decrypt ( const unsigned char * inp , unsigned char * out , size_t len , const AES_KEY * key1 , const AES_KEY * key2 , const unsigned char iv [ 16 ] ) ;\n # endif # define BLOCK_CIPHER_generic_pack ( nid , keylen , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 16 , 16 , cbc , cbc , CBC , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 16 , 0 , ecb , ecb , ECB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , ofb128 , ofb , OFB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb128 , cfb , CFB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb1 , cfb1 , CFB , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb8 , cfb8 , CFB , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , ctr , ctr , CTR , flags ) static int aes_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n int ret , mode ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n mode = EVP_CIPHER_CTX_mode ( ctx ) ;\n if ( ( mode == EVP_CIPH_ECB_MODE || mode == EVP_CIPH_CBC_MODE ) && ! enc ) {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_decrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n # endif }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CBC_MODE ) {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = ( cbc128_f ) bsaes_cbc_encrypt ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n }\n }\n else # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_encrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n else # endif # ifdef HWAES_ctr32_encrypt_blocks if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) HWAES_ctr32_encrypt_blocks ;\n else # endif ( void ) 0 ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CTR_MODE ) {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . ctr = ( ctr128_f ) bsaes_ctr32_encrypt_blocks ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n # ifdef AES_CTR_ASM if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) AES_ctr32_encrypt ;\n # endif }\n if ( ret < 0 ) {\n EVPerr ( EVP_F_AES_INIT_KEY , EVP_R_AES_KEY_SETUP_FAILED ) ;\n return 0 ;\n }\n return 1 ;\n }\n static int aes_cbc_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( dat -> stream . cbc ) ( * dat -> stream . cbc ) ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_encrypting ( ctx ) ) ;\n else if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) CRYPTO_cbc128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , dat -> block ) ;\n else CRYPTO_cbc128_decrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , dat -> block ) ;\n return 1 ;\n }\n static int aes_ecb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n size_t bl = EVP_CIPHER_CTX_block_size ( ctx ) ;\n size_t i ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( len < bl ) return 1 ;\n for ( i = 0 , len -= bl ;\n i <= len ;\n i += bl ) ( * dat -> block ) ( in + i , out + i , & dat -> ks ) ;\n return 1 ;\n }\n static int aes_ofb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_ofb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb8_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_8_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb1_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( EVP_CIPHER_CTX_test_flags ( ctx , EVP_CIPH_FLAG_LENGTH_BITS ) ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n while ( len >= MAXBITCHUNK ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , MAXBITCHUNK * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n len -= MAXBITCHUNK ;\n }\n if ( len ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n }\n return 1 ;\n }\n static int aes_ctr_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n unsigned int num = EVP_CIPHER_CTX_num ( ctx ) ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( dat -> stream . ctr ) CRYPTO_ctr128_encrypt_ctr32 ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> stream . ctr ) ;\n else CRYPTO_ctr128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n BLOCK_CIPHER_generic_pack ( NID_aes , 128 , 0 ) BLOCK_CIPHER_generic_pack ( NID_aes , 192 , 0 ) BLOCK_CIPHER_generic_pack ( NID_aes , 256 , 0 ) static int aes_gcm_cleanup ( EVP_CIPHER_CTX * c ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , c ) ;\n OPENSSL_cleanse ( & gctx -> gcm , sizeof ( gctx -> gcm ) ) ;\n if ( gctx -> iv != EVP_CIPHER_CTX_iv_noconst ( c ) ) OPENSSL_free ( gctx -> iv ) ;\n return 1 ;\n }\n static void ctr64_inc ( unsigned char * counter ) {\n int n = 8 ;\n unsigned char c ;\n do {\n -- n ;\n c = counter [ n ] ;\n ++ c ;\n counter [ n ] = c ;\n if ( c ) return ;\n }\n while ( n ) ;\n }\n static int aes_gcm_ctrl ( EVP_CIPHER_CTX * c , int type , int arg , void * ptr ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , c ) ;\n switch ( type ) {\n case EVP_CTRL_INIT : gctx -> key_set = 0 ;\n gctx -> iv_set = 0 ;\n gctx -> ivlen = EVP_CIPHER_CTX_iv_length ( c ) ;\n gctx -> iv = EVP_CIPHER_CTX_iv_noconst ( c ) ;\n gctx -> taglen = - 1 ;\n gctx -> iv_gen = 0 ;\n gctx -> tls_aad_len = - 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_IVLEN : if ( arg <= 0 ) return 0 ;\n if ( ( arg > EVP_MAX_IV_LENGTH ) && ( arg > gctx -> ivlen ) ) {\n if ( gctx -> iv != EVP_CIPHER_CTX_iv_noconst ( c ) ) OPENSSL_free ( gctx -> iv ) ;\n gctx -> iv = OPENSSL_malloc ( arg ) ;\n if ( gctx -> iv == NULL ) return 0 ;\n }\n gctx -> ivlen = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_TAG : if ( arg <= 0 || arg > 16 || EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n gctx -> taglen = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_GET_TAG : if ( arg <= 0 || arg > 16 || ! EVP_CIPHER_CTX_encrypting ( c ) || gctx -> taglen < 0 ) return 0 ;\n memcpy ( ptr , EVP_CIPHER_CTX_buf_noconst ( c ) , arg ) ;\n return 1 ;\n case EVP_CTRL_GCM_SET_IV_FIXED : if ( arg == - 1 ) {\n memcpy ( gctx -> iv , ptr , gctx -> ivlen ) ;\n gctx -> iv_gen = 1 ;\n return 1 ;\n }\n if ( ( arg < 4 ) || ( gctx -> ivlen - arg ) < 8 ) return 0 ;\n if ( arg ) memcpy ( gctx -> iv , ptr , arg ) ;\n if ( EVP_CIPHER_CTX_encrypting ( c ) && RAND_bytes ( gctx -> iv + arg , gctx -> ivlen - arg ) <= 0 ) return 0 ;\n gctx -> iv_gen = 1 ;\n return 1 ;\n case EVP_CTRL_GCM_IV_GEN : if ( gctx -> iv_gen == 0 || gctx -> key_set == 0 ) return 0 ;\n CRYPTO_gcm128_setiv ( & gctx -> gcm , gctx -> iv , gctx -> ivlen ) ;\n if ( arg <= 0 || arg > gctx -> ivlen ) arg = gctx -> ivlen ;\n memcpy ( ptr , gctx -> iv + gctx -> ivlen - arg , arg ) ;\n ctr64_inc ( gctx -> iv + gctx -> ivlen - 8 ) ;\n gctx -> iv_set = 1 ;\n return 1 ;\n case EVP_CTRL_GCM_SET_IV_INV : if ( gctx -> iv_gen == 0 || gctx -> key_set == 0 || EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( gctx -> iv + gctx -> ivlen - arg , ptr , arg ) ;\n CRYPTO_gcm128_setiv ( & gctx -> gcm , gctx -> iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_TLS1_AAD : if ( arg != EVP_AEAD_TLS1_AAD_LEN ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n gctx -> tls_aad_len = arg ;\n {\n unsigned int len = EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] << 8 | EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] ;\n len -= EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n if ( ! EVP_CIPHER_CTX_encrypting ( c ) ) len -= EVP_GCM_TLS_TAG_LEN ;\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] = len >> 8 ;\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] = len & 0xff ;\n }\n return EVP_GCM_TLS_TAG_LEN ;\n case EVP_CTRL_COPY : {\n EVP_CIPHER_CTX * out = ptr ;\n EVP_AES_GCM_CTX * gctx_out = EVP_C_DATA ( EVP_AES_GCM_CTX , out ) ;\n if ( gctx -> gcm . key ) {\n if ( gctx -> gcm . key != & gctx -> ks ) return 0 ;\n gctx_out -> gcm . key = & gctx_out -> ks ;\n }\n if ( gctx -> iv == EVP_CIPHER_CTX_iv_noconst ( c ) ) gctx_out -> iv = EVP_CIPHER_CTX_iv_noconst ( out ) ;\n else {\n gctx_out -> iv = OPENSSL_malloc ( gctx -> ivlen ) ;\n if ( gctx_out -> iv == NULL ) return 0 ;\n memcpy ( gctx_out -> iv , gctx -> iv , gctx -> ivlen ) ;\n }\n return 1 ;\n }\n default : return - 1 ;\n }\n }\n static int aes_gcm_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n if ( ! iv && ! key ) return 1 ;\n if ( key ) {\n do {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) HWAES_encrypt ) ;\n # ifdef HWAES_ctr32_encrypt_blocks gctx -> ctr = ( ctr128_f ) HWAES_ctr32_encrypt_blocks ;\n # else gctx -> ctr = NULL ;\n # endif break ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE ) {\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) AES_encrypt ) ;\n gctx -> ctr = ( ctr128_f ) bsaes_ctr32_encrypt_blocks ;\n break ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) vpaes_encrypt ) ;\n gctx -> ctr = NULL ;\n break ;\n }\n else # endif ( void ) 0 ;\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) AES_encrypt ) ;\n # ifdef AES_CTR_ASM gctx -> ctr = ( ctr128_f ) AES_ctr32_encrypt ;\n # else gctx -> ctr = NULL ;\n # endif }\n while ( 0 ) ;\n if ( iv == NULL && gctx -> iv_set ) iv = gctx -> iv ;\n if ( iv ) {\n CRYPTO_gcm128_setiv ( & gctx -> gcm , iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n }\n gctx -> key_set = 1 ;\n }\n else {\n if ( gctx -> key_set ) CRYPTO_gcm128_setiv ( & gctx -> gcm , iv , gctx -> ivlen ) ;\n else memcpy ( gctx -> iv , iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n gctx -> iv_gen = 0 ;\n }\n return 1 ;\n }\n static int aes_gcm_tls_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n int rv = - 1 ;\n if ( out != in || len < ( EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ) ) return - 1 ;\n if ( EVP_CIPHER_CTX_ctrl ( ctx , EVP_CIPHER_CTX_encrypting ( ctx ) ? EVP_CTRL_GCM_IV_GEN : EVP_CTRL_GCM_SET_IV_INV , EVP_GCM_TLS_EXPLICIT_IV_LEN , out ) <= 0 ) goto err ;\n if ( CRYPTO_gcm128_aad ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , gctx -> tls_aad_len ) ) goto err ;\n in += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n out += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n len -= EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ;\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 32 && AES_GCM_ASM ( gctx ) ) {\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_encrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) goto err ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 32 && AES_GCM_ASM2 ( gctx ) ) {\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) goto err ;\n }\n out += len ;\n CRYPTO_gcm128_tag ( & gctx -> gcm , out , EVP_GCM_TLS_TAG_LEN ) ;\n rv = len + EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ;\n }\n else {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 16 && AES_GCM_ASM ( gctx ) ) {\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_decrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) goto err ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 16 && AES_GCM_ASM2 ( gctx ) ) {\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) goto err ;\n }\n CRYPTO_gcm128_tag ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , EVP_GCM_TLS_TAG_LEN ) ;\n if ( CRYPTO_memcmp ( EVP_CIPHER_CTX_buf_noconst ( ctx ) , in + len , EVP_GCM_TLS_TAG_LEN ) ) {\n OPENSSL_cleanse ( out , len ) ;\n goto err ;\n }\n rv = len ;\n }\n err : gctx -> iv_set = 0 ;\n gctx -> tls_aad_len = - 1 ;\n return rv ;\n }\n static int aes_gcm_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n if ( ! gctx -> key_set ) return - 1 ;\n if ( gctx -> tls_aad_len >= 0 ) return aes_gcm_tls_cipher ( ctx , out , in , len ) ;\n if ( ! gctx -> iv_set ) return - 1 ;\n if ( in ) {\n if ( out == NULL ) {\n if ( CRYPTO_gcm128_aad ( & gctx -> gcm , in , len ) ) return - 1 ;\n }\n else if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 32 && AES_GCM_ASM ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_encrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) return - 1 ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 32 && AES_GCM_ASM2 ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) return - 1 ;\n }\n }\n else {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 16 && AES_GCM_ASM ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_decrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) return - 1 ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 16 && AES_GCM_ASM2 ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) return - 1 ;\n }\n }\n return len ;\n }\n else {\n if ( ! EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> taglen < 0 ) return - 1 ;\n if ( CRYPTO_gcm128_finish ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , gctx -> taglen ) != 0 ) return - 1 ;\n gctx -> iv_set = 0 ;\n return 0 ;\n }\n CRYPTO_gcm128_tag ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , 16 ) ;\n gctx -> taglen = 16 ;\n gctx -> iv_set = 0 ;\n return 0 ;\n }\n }\n # define CUSTOM_FLAGS ( EVP_CIPH_FLAG_DEFAULT_ASN1 \\ | EVP_CIPH_CUSTOM_IV | EVP_CIPH_FLAG_CUSTOM_CIPHER \\ | EVP_CIPH_ALWAYS_CALL_INIT | EVP_CIPH_CTRL_INIT \\ | EVP_CIPH_CUSTOM_COPY ) BLOCK_CIPHER_custom ( NID_aes , 128 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 192 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 256 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) static int aes_xts_ctrl ( EVP_CIPHER_CTX * c , int type , int arg , void * ptr ) {\n EVP_AES_XTS_CTX * xctx = EVP_C_DATA ( EVP_AES_XTS_CTX , c ) ;\n if ( type == EVP_CTRL_COPY ) {\n EVP_CIPHER_CTX * out = ptr ;\n EVP_AES_XTS_CTX * xctx_out = EVP_C_DATA ( EVP_AES_XTS_CTX , out ) ;\n if ( xctx -> xts . key1 ) {\n if ( xctx -> xts . key1 != & xctx -> ks1 ) return 0 ;\n xctx_out -> xts . key1 = & xctx_out -> ks1 ;\n }\n if ( xctx -> xts . key2 ) {\n if ( xctx -> xts . key2 != & xctx -> ks2 ) return 0 ;\n xctx_out -> xts . key2 = & xctx_out -> ks2 ;\n }\n return 1 ;\n }\n else if ( type != EVP_CTRL_INIT ) return - 1 ;\n xctx -> xts . key1 = NULL ;\n xctx -> xts . key2 = NULL ;\n return 1 ;\n }\n static int aes_xts_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n EVP_AES_XTS_CTX * xctx = EVP_C_DATA ( EVP_AES_XTS_CTX , ctx ) ;\n if ( ! iv && ! key ) return 1 ;\n if ( key ) do {\n # ifdef AES_XTS_ASM xctx -> stream = enc ? AES_xts_encrypt : AES_xts_decrypt ;\n # else xctx -> stream = NULL ;\n # endif # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n if ( enc ) {\n HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) HWAES_encrypt ;\n # ifdef HWAES_xts_encrypt xctx -> stream = HWAES_xts_encrypt ;\n # endif }\n else {\n HWAES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) HWAES_decrypt ;\n # ifdef HWAES_xts_decrypt xctx -> stream = HWAES_xts_decrypt ;\n # endif }\n HWAES_set_encrypt_key ( key + EVP_CIPHER_CTX_key_length ( ctx ) / 2 , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks2 . ks ) ;\n xctx -> xts . block2 = ( block128_f ) HWAES_encrypt ;\n xctx -> xts . key1 = & xctx -> ks1 ;\n break ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE ) xctx -> stream = enc ? bsaes_xts_encrypt : bsaes_xts_decrypt ;\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n if ( enc ) {\n vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) vpaes_encrypt ;\n }\n else {\n vpaes_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) vpaes_decrypt ;\n }\n vpaes_set_encrypt_key ( key + EVP_CIPHER_CTX_key_length ( ctx ) / 2 , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks2 . ks ) ;\n xctx -> xts . block2 = ( block128_f ) vpaes_encrypt ;\n xctx -> xts . key1 = & xctx -> ks1 ;\n break ;\n }\n else # endif ( void ) 0 ;\n if ( enc ) {\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) AES_encrypt ;\n }\n else {\n AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) AES_decrypt ;\n }\n AES_set_encrypt_key ( key + EVP_CIPHER_CTX_key_length ( ctx ) / 2 , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks2 . ks ) ;\n xctx -> xts . block2 = ( block128_f ) AES_encrypt ;\n xctx -> xts . key1 = & xctx -> ks1 ;\n }\n while ( 0 ) ;\n if ( iv ) {\n xctx -> xts . key2 = & xctx -> ks2 ;\n memcpy ( EVP_CIPHER_CTX_iv_noconst ( ctx ) , iv , 16 ) ;\n }\n return 1 ;\n }\n static int aes_xts_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_XTS_CTX * xctx = EVP_C_DATA ( EVP_AES_XTS_CTX , ctx ) ;\n if ( ! xctx -> xts . key1 || ! xctx -> xts . key2 ) return 0 ;\n if ( ! out || ! in || len < AES_BLOCK_SIZE ) return 0 ;\n if ( xctx -> stream ) ( * xctx -> stream ) ( in , out , len , xctx -> xts . key1 , xctx -> xts . key2 , EVP_CIPHER_CTX_iv_noconst ( ctx ) ) ;\n else if ( CRYPTO_xts128_encrypt ( & xctx -> xts , EVP_CIPHER_CTX_iv_noconst ( ctx ) , in , out , len , EVP_CIPHER_CTX_encrypting ( ctx ) ) ) return 0 ;\n return 1 ;\n }\n # define aes_xts_cleanup NULL # define XTS_FLAGS ( EVP_CIPH_FLAG_DEFAULT_ASN1 | EVP_CIPH_CUSTOM_IV \\ | EVP_CIPH_ALWAYS_CALL_INIT | EVP_CIPH_CTRL_INIT \\ | EVP_CIPH_CUSTOM_COPY ) BLOCK_CIPHER_custom ( NID_aes , 128 , 1 , 16 , xts , XTS , XTS_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 256 , 1 , 16 , xts , XTS , XTS_FLAGS ) static int aes_ccm_ctrl ( EVP_CIPHER_CTX * c , int type , int arg , void * ptr ) {\n EVP_AES_CCM_CTX * cctx = EVP_C_DATA ( EVP_AES_CCM_CTX , c ) ;\n switch ( type ) {\n case EVP_CTRL_INIT : cctx -> key_set = 0 ;\n cctx -> iv_set = 0 ;\n cctx -> L = 8 ;\n cctx -> M = 12 ;\n cctx -> tag_set = 0 ;\n cctx -> len_set = 0 ;\n cctx -> tls_aad_len = - 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_TLS1_AAD : if ( arg != EVP_AEAD_TLS1_AAD_LEN ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n cctx -> tls_aad_len = arg ;\n {\n uint16_t len = EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] << 8 | EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] ;\n len -= EVP_CCM_TLS_EXPLICIT_IV_LEN ;\n if ( ! EVP_CIPHER_CTX_encrypting ( c ) ) len -= cctx -> M ;\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] = len >> 8 ;\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] = len & 0xff ;\n }\n return cctx -> M ;\n case EVP_CTRL_CCM_SET_IV_FIXED : if ( arg != EVP_CCM_TLS_FIXED_IV_LEN ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_iv_noconst ( c ) , ptr , arg ) ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_IVLEN : arg = 15 - arg ;\n case EVP_CTRL_CCM_SET_L : if ( arg < 2 || arg > 8 ) return 0 ;\n cctx -> L = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_TAG : if ( ( arg & 1 ) || arg < 4 || arg > 16 ) return 0 ;\n if ( EVP_CIPHER_CTX_encrypting ( c ) && ptr ) return 0 ;\n if ( ptr ) {\n cctx -> tag_set = 1 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n }\n cctx -> M = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_GET_TAG : if ( ! EVP_CIPHER_CTX_encrypting ( c ) || ! cctx -> tag_set ) return 0 ;\n if ( ! CRYPTO_ccm128_tag ( & cctx -> ccm , ptr , ( size_t ) arg ) ) return 0 ;\n cctx -> tag_set = 0 ;\n cctx -> iv_set = 0 ;\n cctx -> len_set = 0 ;\n return 1 ;\n case EVP_CTRL_COPY : {\n EVP_CIPHER_CTX * out = ptr ;\n EVP_AES_CCM_CTX * cctx_out = EVP_C_DATA ( EVP_AES_CCM_CTX , out ) ;\n if ( cctx -> ccm . key ) {\n if ( cctx -> ccm . key != & cctx -> ks ) return 0 ;\n cctx_out -> ccm . key = & cctx_out -> ks ;\n }\n return 1 ;\n }\n default : return - 1 ;\n }\n }\n static int aes_ccm_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n EVP_AES_CCM_CTX * cctx = EVP_C_DATA ( EVP_AES_CCM_CTX , ctx ) ;\n if ( ! iv && ! key ) return 1 ;\n if ( key ) do {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & cctx -> ks . ks ) ;\n CRYPTO_ccm128_init ( & cctx -> ccm , cctx -> M , cctx -> L , & cctx -> ks , ( block128_f ) HWAES_encrypt ) ;\n cctx -> str = NULL ;\n cctx -> key_set = 1 ;\n break ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & cctx -> ks . ks ) ;\n CRYPTO_ccm128_init ( & cctx -> ccm , cctx -> M , cctx -> L , & cctx -> ks , ( block128_f ) vpaes_encrypt ) ;\n cctx -> str = NULL ;\n cctx -> key_set = 1 ;\n break ;\n }\n # endif AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & cctx -> ks . ks ) ;\n CRYPTO_ccm128_init ( & cctx -> ccm , cctx -> M , cctx -> L , & cctx -> ks , ( block128_f ) AES_encrypt ) ;\n cctx -> str = NULL ;\n cctx -> key_set = 1 ;\n }\n while ( 0 ) ;\n if ( iv ) {\n memcpy ( EVP_CIPHER_CTX_iv_noconst ( ctx ) , iv , 15 - cctx -> L ) ;\n cctx -> iv_set = 1 ;\n }\n return 1 ;\n }\n static int aes_ccm_tls_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_CCM_CTX * cctx = EVP_C_DATA ( EVP_AES_CCM_CTX , ctx ) ;\n CCM128_CONTEXT * ccm = & cctx -> ccm ;\n if ( out != in || len < ( EVP_CCM_TLS_EXPLICIT_IV_LEN + ( size_t ) cctx -> M ) ) return - 1 ;\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) memcpy ( out , EVP_CIPHER_CTX_buf_noconst ( ctx ) , EVP_CCM_TLS_EXPLICIT_IV_LEN ) ;\n memcpy ( EVP_CIPHER_CTX_iv_noconst ( ctx ) + EVP_CCM_TLS_FIXED_IV_LEN , in , EVP_CCM_TLS_EXPLICIT_IV_LEN ) ;\n len -= EVP_CCM_TLS_EXPLICIT_IV_LEN + cctx -> M ;\n if ( CRYPTO_ccm128_setiv ( ccm , EVP_CIPHER_CTX_iv_noconst ( ctx ) , 15 - cctx -> L , len ) ) return - 1 ;\n CRYPTO_ccm128_aad ( ccm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , cctx -> tls_aad_len ) ;\n in += EVP_CCM_TLS_EXPLICIT_IV_LEN ;\n out += EVP_CCM_TLS_EXPLICIT_IV_LEN ;\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( cctx -> str ? CRYPTO_ccm128_encrypt_ccm64 ( ccm , in , out , len , cctx -> str ) : CRYPTO_ccm128_encrypt ( ccm , in , out , len ) ) return - 1 ;\n if ( ! CRYPTO_ccm128_tag ( ccm , out + len , cctx -> M ) ) return - 1 ;\n return len + EVP_CCM_TLS_EXPLICIT_IV_LEN + cctx -> M ;\n }\n else {\n if ( cctx -> str ? ! CRYPTO_ccm128_decrypt_ccm64 ( ccm , in , out , len , cctx -> str ) : ! CRYPTO_ccm128_decrypt ( ccm , in , out , len ) ) {\n unsigned char tag [ 16 ] ;\n if ( CRYPTO_ccm128_tag ( ccm , tag , cctx -> M ) ) {\n if ( ! CRYPTO_memcmp ( tag , in + len , cctx -> M ) ) return len ;\n }\n }\n OPENSSL_cleanse ( out , len ) ;\n return - 1 ;\n }\n }\n static int aes_ccm_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_CCM_CTX * cctx = EVP_C_DATA ( EVP_AES_CCM_CTX , ctx ) ;\n CCM128_CONTEXT * ccm = & cctx -> ccm ;\n if ( ! cctx -> key_set ) return - 1 ;\n if ( cctx -> tls_aad_len >= 0 ) return aes_ccm_tls_cipher ( ctx , out , in , len ) ;\n if ( ! cctx -> iv_set ) return - 1 ;\n if ( ! EVP_CIPHER_CTX_encrypting ( ctx ) && ! cctx -> tag_set ) return - 1 ;\n if ( ! out ) {\n if ( ! in ) {\n if ( CRYPTO_ccm128_setiv ( ccm , EVP_CIPHER_CTX_iv_noconst ( ctx ) , 15 - cctx -> L , len ) ) return - 1 ;\n cctx -> len_set = 1 ;\n return len ;\n }\n if ( ! cctx -> len_set && len ) return - 1 ;\n CRYPTO_ccm128_aad ( ccm , in , len ) ;\n return len ;\n }\n if ( ! in ) return 0 ;\n if ( ! cctx -> len_set ) {\n if ( CRYPTO_ccm128_setiv ( ccm , EVP_CIPHER_CTX_iv_noconst ( ctx ) , 15 - cctx -> L , len ) ) return - 1 ;\n cctx -> len_set = 1 ;\n }\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( cctx -> str ? CRYPTO_ccm128_encrypt_ccm64 ( ccm , in , out , len , cctx -> str ) : CRYPTO_ccm128_encrypt ( ccm , in , out , len ) ) return - 1 ;\n cctx -> tag_set = 1 ;\n return len ;\n }\n else {\n int rv = - 1 ;\n if ( cctx -> str ? ! CRYPTO_ccm128_decrypt_ccm64 ( ccm , in , out , len , cctx -> str ) : ! CRYPTO_ccm128_decrypt ( ccm , in , out , len ) ) {\n unsigned char tag [ 16 ] ;\n if ( CRYPTO_ccm128_tag ( ccm , tag , cctx -> M ) ) {\n if ( ! CRYPTO_memcmp ( tag , EVP_CIPHER_CTX_buf_noconst ( ctx ) , cctx -> M ) ) rv = len ;\n }\n }\n if ( rv == - 1 ) OPENSSL_cleanse ( out , len ) ;\n cctx -> iv_set = 0 ;\n cctx -> tag_set = 0 ;\n cctx -> len_set = 0 ;\n return rv ;\n }\n }\n # define aes_ccm_cleanup NULL BLOCK_CIPHER_custom ( NID_aes , 128 , 1 , 12 , ccm , CCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 192 , 1 , 12 , ccm , CCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS )"}
{"idx": 19696, "target": 0, "func": "int qemuAgentFSFreeze ( qemuAgentPtr mon , const char * * mountpoints , unsigned int nmountpoints ) {\n int ret = - 1 ;\n virJSONValuePtr cmd , arg = NULL ;\n virJSONValuePtr reply = NULL ;\n if ( mountpoints && nmountpoints ) {\n arg = qemuAgentMakeStringsArray ( mountpoints , nmountpoints ) ;\n if ( ! arg ) return - 1 ;\n cmd = qemuAgentMakeCommand ( \"guest-fsfreeze-freeze-list\" , \"a:mountpoints\" , arg , NULL ) ;\n }\n else {\n cmd = qemuAgentMakeCommand ( \"guest-fsfreeze-freeze\" , NULL ) ;\n }\n if ( ! cmd ) goto cleanup ;\n arg = NULL ;\n if ( qemuAgentCommand ( mon , cmd , & reply , true , VIR_DOMAIN_QEMU_AGENT_COMMAND_BLOCK ) < 0 ) goto cleanup ;\n if ( virJSONValueObjectGetNumberInt ( reply , \"return\" , & ret ) < 0 ) {\n virReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"malformed return value\" ) ) ;\n }\n cleanup : virJSONValueFree ( arg ) ;\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 19697, "target": 0, "func": "static VALUE ossl_cipher_initialize ( VALUE self , VALUE str ) {\n EVP_CIPHER_CTX * ctx ;\n const EVP_CIPHER * cipher ;\n char * name ;\n name = StringValueCStr ( str ) ;\n GetCipherInit ( self , ctx ) ;\n if ( ctx ) {\n ossl_raise ( rb_eRuntimeError , \"Cipher already inititalized!\" ) ;\n }\n AllocCipher ( self , ctx ) ;\n if ( ! ( cipher = EVP_get_cipherbyname ( name ) ) ) {\n ossl_raise ( rb_eRuntimeError , \"unsupported cipher algorithm (%\" PRIsVALUE \")\" , str ) ;\n }\n if ( EVP_CipherInit_ex ( ctx , cipher , NULL , NULL , NULL , - 1 ) != 1 ) ossl_raise ( eCipherError , NULL ) ;\n return self ;\n }"}
{"idx": 19698, "target": 0, "func": "static void parse_context_init ( SchroParseUnitContext * parse_ctx , const uint8_t * buf , int buf_size ) {\n parse_ctx -> buf = buf ;\n parse_ctx -> buf_size = buf_size ;\n }"}
{"idx": 19699, "target": 0, "func": "static int pfkey_spdget ( struct sock * sk , struct sk_buff * skb , const struct sadb_msg * hdr , void * const * ext_hdrs ) {\n struct net * net = sock_net ( sk ) ;\n unsigned int dir ;\n int err = 0 , delete ;\n struct sadb_x_policy * pol ;\n struct xfrm_policy * xp ;\n struct km_event c ;\n if ( ( pol = ext_hdrs [ SADB_X_EXT_POLICY - 1 ] ) == NULL ) return - EINVAL ;\n dir = xfrm_policy_id2dir ( pol -> sadb_x_policy_id ) ;\n if ( dir >= XFRM_POLICY_MAX ) return - EINVAL ;\n delete = ( hdr -> sadb_msg_type == SADB_X_SPDDELETE2 ) ;\n xp = xfrm_policy_byid ( net , DUMMY_MARK , XFRM_POLICY_TYPE_MAIN , dir , pol -> sadb_x_policy_id , delete , & err ) ;\n if ( xp == NULL ) return - ENOENT ;\n if ( delete ) {\n xfrm_audit_policy_delete ( xp , err ? 0 : 1 , audit_get_loginuid ( current ) , audit_get_sessionid ( current ) , 0 ) ;\n if ( err ) goto out ;\n c . seq = hdr -> sadb_msg_seq ;\n c . portid = hdr -> sadb_msg_pid ;\n c . data . byid = 1 ;\n c . event = XFRM_MSG_DELPOLICY ;\n km_policy_notify ( xp , dir , & c ) ;\n }\n else {\n err = key_pol_get_resp ( sk , xp , hdr , dir ) ;\n }\n out : xfrm_pol_put ( xp ) ;\n return err ;\n }"}
{"idx": 19700, "target": 1, "func": "static void UConverter_toUnicode_HZ_OFFSETS_LOGIC ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n char tempBuf [ 2 ] ;\n const char * mySource = ( char * ) args -> source ;\n UChar * myTarget = args -> target ;\n const char * mySourceLimit = args -> sourceLimit ;\n UChar32 targetUniChar = 0x0000 ;\n int32_t mySourceChar = 0x0000 ;\n UConverterDataHZ * myData = ( UConverterDataHZ * ) ( args -> converter -> extraInfo ) ;\n tempBuf [ 0 ] = 0 ;\n tempBuf [ 1 ] = 0 ;\n while ( mySource < mySourceLimit ) {\n if ( myTarget < args -> targetLimit ) {\n mySourceChar = ( unsigned char ) * mySource ++ ;\n if ( args -> converter -> mode == UCNV_TILDE ) {\n args -> converter -> mode = 0 ;\n switch ( mySourceChar ) {\n case 0x0A : continue ;\n case UCNV_TILDE : if ( args -> offsets ) {\n args -> offsets [ myTarget - args -> target ] = ( int32_t ) ( mySource - args -> source - 2 ) ;\n }\n * ( myTarget ++ ) = ( UChar ) mySourceChar ;\n myData -> isEmptySegment = FALSE ;\n continue ;\n case UCNV_OPEN_BRACE : case UCNV_CLOSE_BRACE : myData -> isStateDBCS = ( mySourceChar == UCNV_OPEN_BRACE ) ;\n if ( myData -> isEmptySegment ) {\n myData -> isEmptySegment = FALSE ;\n * err = U_ILLEGAL_ESCAPE_SEQUENCE ;\n args -> converter -> toUCallbackReason = UCNV_IRREGULAR ;\n args -> converter -> toUBytes [ 0 ] = UCNV_TILDE ;\n args -> converter -> toUBytes [ 1 ] = mySourceChar ;\n args -> converter -> toULength = 2 ;\n args -> target = myTarget ;\n args -> source = mySource ;\n return ;\n }\n myData -> isEmptySegment = TRUE ;\n continue ;\n default : myData -> isEmptySegment = FALSE ;\n * err = U_ILLEGAL_ESCAPE_SEQUENCE ;\n args -> converter -> toUBytes [ 0 ] = UCNV_TILDE ;\n if ( myData -> isStateDBCS ? ( 0x21 <= mySourceChar && mySourceChar <= 0x7e ) : mySourceChar <= 0x7f ) {\n args -> converter -> toULength = 1 ;\n -- mySource ;\n }\n else {\n args -> converter -> toUBytes [ 1 ] = mySourceChar ;\n args -> converter -> toULength = 2 ;\n }\n args -> target = myTarget ;\n args -> source = mySource ;\n return ;\n }\n }\n else if ( myData -> isStateDBCS ) {\n if ( args -> converter -> toUnicodeStatus == 0x00 ) {\n if ( mySourceChar == UCNV_TILDE ) {\n args -> converter -> mode = UCNV_TILDE ;\n }\n else {\n args -> converter -> toUnicodeStatus = ( uint32_t ) ( mySourceChar | 0x100 ) ;\n myData -> isEmptySegment = FALSE ;\n }\n continue ;\n }\n else {\n int leadIsOk , trailIsOk ;\n uint32_t leadByte = args -> converter -> toUnicodeStatus & 0xff ;\n targetUniChar = 0xffff ;\n leadIsOk = ( uint8_t ) ( leadByte - 0x21 ) <= ( 0x7d - 0x21 ) ;\n trailIsOk = ( uint8_t ) ( mySourceChar - 0x21 ) <= ( 0x7e - 0x21 ) ;\n if ( leadIsOk && trailIsOk ) {\n tempBuf [ 0 ] = ( char ) ( leadByte + 0x80 ) ;\n tempBuf [ 1 ] = ( char ) ( mySourceChar + 0x80 ) ;\n targetUniChar = ucnv_MBCSSimpleGetNextUChar ( myData -> gbConverter -> sharedData , tempBuf , 2 , args -> converter -> useFallback ) ;\n mySourceChar = ( leadByte << 8 ) | mySourceChar ;\n }\n else if ( trailIsOk ) {\n -- mySource ;\n mySourceChar = ( int32_t ) leadByte ;\n }\n else {\n mySourceChar = 0x10000 | ( leadByte << 8 ) | mySourceChar ;\n }\n args -> converter -> toUnicodeStatus = 0x00 ;\n }\n }\n else {\n if ( mySourceChar == UCNV_TILDE ) {\n args -> converter -> mode = UCNV_TILDE ;\n continue ;\n }\n else if ( mySourceChar <= 0x7f ) {\n targetUniChar = ( UChar ) mySourceChar ;\n myData -> isEmptySegment = FALSE ;\n }\n else {\n targetUniChar = 0xffff ;\n myData -> isEmptySegment = FALSE ;\n }\n }\n if ( targetUniChar < 0xfffe ) {\n if ( args -> offsets ) {\n args -> offsets [ myTarget - args -> target ] = ( int32_t ) ( mySource - args -> source - 1 - ( myData -> isStateDBCS ) ) ;\n }\n * ( myTarget ++ ) = ( UChar ) targetUniChar ;\n }\n else {\n if ( targetUniChar == 0xfffe ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n if ( mySourceChar > 0xff ) {\n args -> converter -> toUBytes [ 0 ] = ( uint8_t ) ( mySourceChar >> 8 ) ;\n args -> converter -> toUBytes [ 1 ] = ( uint8_t ) mySourceChar ;\n args -> converter -> toULength = 2 ;\n }\n else {\n args -> converter -> toUBytes [ 0 ] = ( uint8_t ) mySourceChar ;\n args -> converter -> toULength = 1 ;\n }\n break ;\n }\n }\n else {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n }\n args -> target = myTarget ;\n args -> source = mySource ;\n }"}
{"idx": 19701, "target": 0, "func": "static void proto_tree_set_vines ( field_info * fi , const guint8 * value ) {\n fvalue_set_bytes ( & fi -> value , value ) ;\n }"}
{"idx": 19702, "target": 0, "func": "static int dissect_h225_BandwidthReject ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_BandwidthReject , BandwidthReject_sequence ) ;\n return offset ;\n }"}
{"idx": 19703, "target": 0, "func": "static Py_ssize_t string_buffer_getreadbuf ( PyStringObject * self , Py_ssize_t index , const void * * ptr ) {\n if ( index != 0 ) {\n PyErr_SetString ( PyExc_SystemError , \"accessing non-existent string segment\" ) ;\n return - 1 ;\n }\n * ptr = ( void * ) self -> ob_sval ;\n return Py_SIZE ( self ) ;\n }"}
{"idx": 19704, "target": 0, "func": "static int init_server_components ( ) {\n DBUG_ENTER ( \"init_server_components\" ) ;\n mdl_init ( ) ;\n if ( table_def_init ( ) | hostname_cache_init ( ) ) unireg_abort ( 1 ) ;\n query_cache_set_min_res_unit ( query_cache_min_res_unit ) ;\n query_cache_init ( ) ;\n query_cache_resize ( query_cache_size ) ;\n my_rnd_init ( & sql_rand , ( ulong ) server_start_time , ( ulong ) server_start_time / 2 ) ;\n setup_fpu ( ) ;\n init_thr_lock ( ) ;\n my_uuid_init ( ( ulong ) ( my_rnd ( & sql_rand ) ) * 12345 , 12345 ) ;\n # ifdef HAVE_REPLICATION init_slave_list ( ) ;\n # endif wt_init ( ) ;\n if ( opt_error_log && ! opt_abort ) {\n if ( ! log_error_file_ptr [ 0 ] ) fn_format ( log_error_file , pidfile_name , mysql_data_home , \".err\" , MY_REPLACE_EXT ) ;\n else fn_format ( log_error_file , log_error_file_ptr , mysql_data_home , \".err\" , MY_UNPACK_FILENAME | MY_SAFE_PATH ) ;\n log_error_file_ptr = log_error_file ;\n if ( ! log_error_file [ 0 ] ) opt_error_log = 0 ;\n else {\n my_bool res ;\n # ifndef EMBEDDED_LIBRARY res = reopen_fstreams ( log_error_file , stdout , stderr ) ;\n # else res = reopen_fstreams ( log_error_file , NULL , stderr ) ;\n # endif if ( ! res ) setbuf ( stderr , NULL ) ;\n # ifdef _WIN32 add_file_to_crash_report ( log_error_file ) ;\n # endif }\n }\n error_handler_hook = my_message_sql ;\n proc_info_hook = set_thd_proc_info ;\n # ifdef WITH_PERFSCHEMA_STORAGE_ENGINE buffered_logs . print ( ) ;\n buffered_logs . cleanup ( ) ;\n # endif if ( xid_cache_init ( ) ) {\n sql_print_error ( \"Out of memory\" ) ;\n unireg_abort ( 1 ) ;\n }\n if ( delegates_init ( ) ) unireg_abort ( 1 ) ;\n if ( ! opt_bin_log_used ) {\n if ( opt_log_slave_updates ) sql_print_warning ( \"You need to use --log-bin to make \" \"--log-slave-updates work.\" ) ;\n if ( binlog_format_used ) sql_print_warning ( \"You need to use --log-bin to make \" \"--binlog-format work.\" ) ;\n }\n DBUG_ASSERT ( ( uint ) global_system_variables . binlog_format <= array_elements ( binlog_format_names ) - 1 ) ;\n # ifdef HAVE_REPLICATION if ( opt_log_slave_updates && replicate_same_server_id ) {\n if ( opt_bin_log ) {\n sql_print_error ( \"using --replicate-same-server-id in conjunction with \\ --log-slave-updates is impossible, it would lead to infinite loops in this \\ server.\" ) ;\n unireg_abort ( 1 ) ;\n }\n else sql_print_warning ( \"using --replicate-same-server-id in conjunction with \\ --log-slave-updates would lead to infinite loops in this server. However this \\ will be ignored as the --log-bin option is not defined.\" ) ;\n }\n # endif DBUG_ASSERT ( ! opt_bin_log || opt_bin_logname ) ;\n if ( opt_bin_log ) {\n if ( opt_bin_logname [ 0 ] && opt_bin_logname [ strlen ( opt_bin_logname ) - 1 ] == FN_LIBCHAR ) {\n sql_print_error ( \"Path '%s' is a directory name, please specify \\ a file name for --log-bin option\" , opt_bin_logname ) ;\n unireg_abort ( 1 ) ;\n }\n if ( opt_binlog_index_name && opt_binlog_index_name [ strlen ( opt_binlog_index_name ) - 1 ] == FN_LIBCHAR ) {\n sql_print_error ( \"Path '%s' is a directory name, please specify \\ a file name for --log-bin-index option\" , opt_binlog_index_name ) ;\n unireg_abort ( 1 ) ;\n }\n char buf [ FN_REFLEN ] ;\n const char * ln ;\n ln = mysql_bin_log . generate_name ( opt_bin_logname , \"-bin\" , 1 , buf ) ;\n if ( ! opt_bin_logname [ 0 ] && ! opt_binlog_index_name ) {\n sql_print_warning ( \"No argument was provided to --log-bin and \" \"neither --log-basename or --log-bin-index where \" \"used;\n This may cause repliction to break when this \" \"server acts as a master and has its hostname \" \"changed! Please use '--log-basename=%s' or \" \"'--log-bin=%s' to avoid this problem.\" , opt_log_basename , ln ) ;\n }\n if ( ln == buf ) {\n opt_bin_logname = my_once_strdup ( buf , MYF ( MY_WME ) ) ;\n }\n if ( mysql_bin_log . open_index_file ( opt_binlog_index_name , ln , TRUE ) ) {\n unireg_abort ( 1 ) ;\n }\n }\n process_key_caches ( & ha_init_key_cache , 0 ) ;\n init_global_table_stats ( ) ;\n init_global_index_stats ( ) ;\n if ( ha_init_errors ( ) ) DBUG_RETURN ( 1 ) ;\n tc_log = 0 ;\n if ( plugin_init ( & remaining_argc , remaining_argv , ( opt_noacl ? PLUGIN_INIT_SKIP_PLUGIN_TABLE : 0 ) | ( opt_abort ? PLUGIN_INIT_SKIP_INITIALIZATION : 0 ) ) ) {\n sql_print_error ( \"Failed to initialize plugins.\" ) ;\n unireg_abort ( 1 ) ;\n }\n plugins_are_initialized = TRUE ;\n have_csv = plugin_status ( STRING_WITH_LEN ( \"csv\" ) , MYSQL_STORAGE_ENGINE_PLUGIN ) ;\n have_ndbcluster = plugin_status ( STRING_WITH_LEN ( \"ndbcluster\" ) , MYSQL_STORAGE_ENGINE_PLUGIN ) ;\n have_partitioning = plugin_status ( STRING_WITH_LEN ( \"partition\" ) , MYSQL_STORAGE_ENGINE_PLUGIN ) ;\n if ( remaining_argc > 1 ) {\n int ho_error ;\n struct my_option no_opts [ ] = {\n {\n 0 , 0 , 0 , 0 , 0 , 0 , GET_NO_ARG , NO_ARG , 0 , 0 , 0 , 0 , 0 , 0 }\n }\n ;\n my_getopt_skip_unknown = 0 ;\n if ( ( ho_error = handle_options ( & remaining_argc , & remaining_argv , no_opts , mysqld_get_one_option ) ) ) unireg_abort ( ho_error ) ;\n remaining_argc ++ ;\n remaining_argv -- ;\n my_getopt_skip_unknown = TRUE ;\n if ( remaining_argc > 1 ) {\n fprintf ( stderr , \"%s: Too many arguments (first extra is '%s').\\n\" , my_progname , remaining_argv [ 1 ] ) ;\n unireg_abort ( 1 ) ;\n }\n }\n if ( opt_abort ) unireg_abort ( 0 ) ;\n if ( ! DEFAULT_ERRMSGS [ 0 ] [ 0 ] ) unireg_abort ( 1 ) ;\n if ( ha_init ( ) ) {\n sql_print_error ( \"Can't init databases\" ) ;\n unireg_abort ( 1 ) ;\n }\n if ( opt_bootstrap ) log_output_options = LOG_FILE ;\n else logger . init_log_tables ( ) ;\n if ( log_output_options & LOG_NONE ) {\n if ( ( log_output_options & LOG_NONE ) && ( log_output_options & ~ LOG_NONE ) ) sql_print_warning ( \"There were other values specified to \" \"log-output besides NONE. Disabling slow \" \"and general logs anyway.\" ) ;\n logger . set_handlers ( LOG_FILE , LOG_NONE , LOG_NONE ) ;\n }\n else {\n LEX_STRING csv_name = {\n C_STRING_WITH_LEN ( \"csv\" ) }\n ;\n if ( ! plugin_is_ready ( & csv_name , MYSQL_STORAGE_ENGINE_PLUGIN ) ) {\n sql_print_error ( \"CSV engine is not present, falling back to the \" \"log files\" ) ;\n log_output_options = ( log_output_options & ~ LOG_TABLE ) | LOG_FILE ;\n }\n logger . set_handlers ( LOG_FILE , opt_slow_log ? log_output_options : LOG_NONE , opt_log ? log_output_options : LOG_NONE ) ;\n }\n LEX_STRING name = {\n default_storage_engine , strlen ( default_storage_engine ) }\n ;\n plugin_ref plugin ;\n handlerton * hton ;\n if ( ( plugin = ha_resolve_by_name ( 0 , & name ) ) ) hton = plugin_data ( plugin , handlerton * ) ;\n else {\n sql_print_error ( \"Unknown/unsupported storage engine: %s\" , default_storage_engine ) ;\n unireg_abort ( 1 ) ;\n }\n if ( ! ha_storage_engine_is_enabled ( hton ) ) {\n if ( ! opt_bootstrap ) {\n sql_print_error ( \"Default storage engine (%s) is not available\" , default_storage_engine ) ;\n unireg_abort ( 1 ) ;\n }\n DBUG_ASSERT ( global_system_variables . table_plugin ) ;\n }\n else {\n mysql_mutex_lock ( & LOCK_global_system_variables ) ;\n plugin_unlock ( 0 , global_system_variables . table_plugin ) ;\n global_system_variables . table_plugin = plugin ;\n mysql_mutex_unlock ( & LOCK_global_system_variables ) ;\n }\n # if defined ( WITH_ARIA_STORAGE_ENGINE ) && defined ( USE_ARIA_FOR_TMP_TABLES ) if ( ! ha_storage_engine_is_enabled ( maria_hton ) && ! opt_bootstrap ) {\n sql_print_error ( \"Aria engine is not enabled or did not start. The Aria engine must be enabled to continue as mysqld was configured with --with-aria-tmp-tables\" ) ;\n unireg_abort ( 1 ) ;\n }\n internal_tmp_table_max_key_length = maria_max_key_length ( ) ;\n internal_tmp_table_max_key_segments = maria_max_key_segments ( ) ;\n # else internal_tmp_table_max_key_length = myisam_max_key_length ( ) ;\n internal_tmp_table_max_key_segments = myisam_max_key_segments ( ) ;\n # endif tc_log = get_tc_log_implementation ( ) ;\n if ( tc_log -> open ( opt_bin_log ? opt_bin_logname : opt_tc_log_file ) ) {\n sql_print_error ( \"Can't init tc log\" ) ;\n unireg_abort ( 1 ) ;\n }\n if ( ha_recover ( 0 ) ) {\n unireg_abort ( 1 ) ;\n }\n if ( opt_bin_log && mysql_bin_log . open ( opt_bin_logname , LOG_BIN , 0 , WRITE_CACHE , 0 , max_binlog_size , 0 , TRUE ) ) unireg_abort ( 1 ) ;\n # ifdef HAVE_REPLICATION if ( opt_bin_log && expire_logs_days ) {\n time_t purge_time = server_start_time - expire_logs_days * 24 * 60 * 60 ;\n if ( purge_time >= 0 ) mysql_bin_log . purge_logs_before_date ( purge_time ) ;\n }\n # endif if ( opt_myisam_log ) ( void ) mi_log ( 1 ) ;\n # if defined ( HAVE_MLOCKALL ) && defined ( MCL_CURRENT ) && ! defined ( EMBEDDED_LIBRARY ) if ( locked_in_memory && ! getuid ( ) ) {\n if ( setreuid ( ( uid_t ) - 1 , 0 ) == - 1 ) {\n sql_perror ( \"setreuid\" ) ;\n unireg_abort ( 1 ) ;\n }\n if ( mlockall ( MCL_CURRENT ) ) {\n if ( global_system_variables . log_warnings ) sql_print_warning ( \"Failed to lock memory. Errno: %d\\n\" , errno ) ;\n locked_in_memory = 0 ;\n }\n if ( user_info ) set_user ( mysqld_user , user_info ) ;\n }\n else # endif locked_in_memory = 0 ;\n ft_init_stopwords ( ) ;\n init_max_user_conn ( ) ;\n init_update_queries ( ) ;\n init_global_user_stats ( ) ;\n init_global_client_stats ( ) ;\n DBUG_RETURN ( 0 ) ;\n }"}
{"idx": 19705, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( CrossOriginXHR , NoFileAccessAllURLs ) {\n ASSERT_TRUE ( RunExtensionTestNoFileAccess ( \"cross_origin_xhro_file_access_all_urls\" ) ) << message_ ;\n }"}
{"idx": 19706, "target": 0, "func": "static const char * fix_for_comment ( const char * ident ) {\n static char buf [ 1024 ] ;\n char c , * s = buf ;\n while ( ( c = * s ++ = * ident ++ ) ) {\n if ( s >= buf + sizeof ( buf ) - 10 ) {\n strmov ( s , \"...\" ) ;\n break ;\n }\n if ( c == '\\n' ) s = strmov ( s , \"-- \" ) ;\n }\n return buf ;\n }"}
{"idx": 19707, "target": 1, "func": "int jbig2_text_region ( Jbig2Ctx * ctx , Jbig2Segment * segment , const byte * segment_data ) {\n int offset = 0 ;\n Jbig2RegionSegmentInfo region_info ;\n Jbig2TextRegionParams params ;\n Jbig2Image * image = NULL ;\n Jbig2SymbolDict * * dicts = NULL ;\n int n_dicts = 0 ;\n uint16_t flags = 0 ;\n uint16_t huffman_flags = 0 ;\n Jbig2ArithCx * GR_stats = NULL ;\n int code = 0 ;\n Jbig2WordStream * ws = NULL ;\n Jbig2ArithState * as = NULL ;\n int table_index = 0 ;\n const Jbig2HuffmanParams * huffman_params = NULL ;\n if ( segment -> data_length < 17 ) goto too_short ;\n jbig2_get_region_segment_info ( & region_info , segment_data ) ;\n offset += 17 ;\n flags = jbig2_get_uint16 ( segment_data + offset ) ;\n offset += 2 ;\n jbig2_error ( ctx , JBIG2_SEVERITY_DEBUG , segment -> number , \"text region header flags 0x%04x\" , flags ) ;\n memset ( & params , 0 , sizeof ( Jbig2TextRegionParams ) ) ;\n params . SBHUFF = flags & 0x0001 ;\n params . SBREFINE = flags & 0x0002 ;\n params . LOGSBSTRIPS = ( flags & 0x000c ) >> 2 ;\n params . SBSTRIPS = 1 << params . LOGSBSTRIPS ;\n params . REFCORNER = ( Jbig2RefCorner ) ( ( flags & 0x0030 ) >> 4 ) ;\n params . TRANSPOSED = flags & 0x0040 ;\n params . SBCOMBOP = ( Jbig2ComposeOp ) ( ( flags & 0x0180 ) >> 7 ) ;\n params . SBDEFPIXEL = flags & 0x0200 ;\n params . SBDSOFFSET = ( flags & 0x7C00 ) >> 10 ;\n if ( params . SBDSOFFSET > 0x0f ) params . SBDSOFFSET -= 0x20 ;\n params . SBRTEMPLATE = flags & 0x8000 ;\n if ( params . SBDSOFFSET ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_DEBUG , segment -> number , \"text region has SBDSOFFSET %d\" , params . SBDSOFFSET ) ;\n }\n if ( params . SBHUFF ) {\n huffman_flags = jbig2_get_uint16 ( segment_data + offset ) ;\n offset += 2 ;\n if ( huffman_flags & 0x8000 ) jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"reserved bit 15 of text region huffman flags is not zero\" ) ;\n }\n else {\n if ( ( params . SBREFINE ) && ! ( params . SBRTEMPLATE ) ) {\n params . sbrat [ 0 ] = segment_data [ offset ] ;\n params . sbrat [ 1 ] = segment_data [ offset + 1 ] ;\n params . sbrat [ 2 ] = segment_data [ offset + 2 ] ;\n params . sbrat [ 3 ] = segment_data [ offset + 3 ] ;\n offset += 4 ;\n }\n }\n params . SBNUMINSTANCES = jbig2_get_uint32 ( segment_data + offset ) ;\n offset += 4 ;\n if ( params . SBHUFF ) {\n switch ( huffman_flags & 0x0003 ) {\n case 0 : params . SBHUFFFS = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_F ) ;\n break ;\n case 1 : params . SBHUFFFS = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_G ) ;\n break ;\n case 3 : huffman_params = jbig2_find_table ( ctx , segment , table_index ) ;\n if ( huffman_params == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"Custom FS huffman table not found (%d)\" , table_index ) ;\n goto cleanup1 ;\n }\n params . SBHUFFFS = jbig2_build_huffman_table ( ctx , huffman_params ) ;\n ++ table_index ;\n break ;\n case 2 : default : code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"text region specified invalid FS huffman table\" ) ;\n goto cleanup1 ;\n break ;\n }\n if ( params . SBHUFFFS == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"failed to allocate text region specified FS huffman table\" ) ;\n goto cleanup1 ;\n }\n switch ( ( huffman_flags & 0x000c ) >> 2 ) {\n case 0 : params . SBHUFFDS = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_H ) ;\n break ;\n case 1 : params . SBHUFFDS = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_I ) ;\n break ;\n case 2 : params . SBHUFFDS = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_J ) ;\n break ;\n case 3 : huffman_params = jbig2_find_table ( ctx , segment , table_index ) ;\n if ( huffman_params == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"Custom DS huffman table not found (%d)\" , table_index ) ;\n goto cleanup1 ;\n }\n params . SBHUFFDS = jbig2_build_huffman_table ( ctx , huffman_params ) ;\n ++ table_index ;\n break ;\n }\n if ( params . SBHUFFDS == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"failed to allocate text region specified DS huffman table\" ) ;\n goto cleanup1 ;\n }\n switch ( ( huffman_flags & 0x0030 ) >> 4 ) {\n case 0 : params . SBHUFFDT = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_K ) ;\n break ;\n case 1 : params . SBHUFFDT = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_L ) ;\n break ;\n case 2 : params . SBHUFFDT = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_M ) ;\n break ;\n case 3 : huffman_params = jbig2_find_table ( ctx , segment , table_index ) ;\n if ( huffman_params == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"Custom DT huffman table not found (%d)\" , table_index ) ;\n goto cleanup1 ;\n }\n params . SBHUFFDT = jbig2_build_huffman_table ( ctx , huffman_params ) ;\n ++ table_index ;\n break ;\n }\n if ( params . SBHUFFDT == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"failed to allocate text region specified DT huffman table\" ) ;\n goto cleanup1 ;\n }\n switch ( ( huffman_flags & 0x00c0 ) >> 6 ) {\n case 0 : params . SBHUFFRDW = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_N ) ;\n break ;\n case 1 : params . SBHUFFRDW = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_O ) ;\n break ;\n case 3 : huffman_params = jbig2_find_table ( ctx , segment , table_index ) ;\n if ( huffman_params == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"Custom RDW huffman table not found (%d)\" , table_index ) ;\n goto cleanup1 ;\n }\n params . SBHUFFRDW = jbig2_build_huffman_table ( ctx , huffman_params ) ;\n ++ table_index ;\n break ;\n case 2 : default : code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"text region specified invalid RDW huffman table\" ) ;\n goto cleanup1 ;\n break ;\n }\n if ( params . SBHUFFRDW == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"failed to allocate text region specified RDW huffman table\" ) ;\n goto cleanup1 ;\n }\n switch ( ( huffman_flags & 0x0300 ) >> 8 ) {\n case 0 : params . SBHUFFRDH = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_N ) ;\n break ;\n case 1 : params . SBHUFFRDH = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_O ) ;\n break ;\n case 3 : huffman_params = jbig2_find_table ( ctx , segment , table_index ) ;\n if ( huffman_params == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"Custom RDH huffman table not found (%d)\" , table_index ) ;\n goto cleanup1 ;\n }\n params . SBHUFFRDH = jbig2_build_huffman_table ( ctx , huffman_params ) ;\n ++ table_index ;\n break ;\n case 2 : default : code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"text region specified invalid RDH huffman table\" ) ;\n goto cleanup1 ;\n break ;\n }\n if ( params . SBHUFFRDH == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"failed to allocate text region specified RDH huffman table\" ) ;\n goto cleanup1 ;\n }\n switch ( ( huffman_flags & 0x0c00 ) >> 10 ) {\n case 0 : params . SBHUFFRDX = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_N ) ;\n break ;\n case 1 : params . SBHUFFRDX = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_O ) ;\n break ;\n case 3 : huffman_params = jbig2_find_table ( ctx , segment , table_index ) ;\n if ( huffman_params == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"Custom RDX huffman table not found (%d)\" , table_index ) ;\n goto cleanup1 ;\n }\n params . SBHUFFRDX = jbig2_build_huffman_table ( ctx , huffman_params ) ;\n ++ table_index ;\n break ;\n case 2 : default : code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"text region specified invalid RDX huffman table\" ) ;\n goto cleanup1 ;\n break ;\n }\n if ( params . SBHUFFRDX == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"failed to allocate text region specified RDX huffman table\" ) ;\n goto cleanup1 ;\n }\n switch ( ( huffman_flags & 0x3000 ) >> 12 ) {\n case 0 : params . SBHUFFRDY = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_N ) ;\n break ;\n case 1 : params . SBHUFFRDY = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_O ) ;\n break ;\n case 3 : huffman_params = jbig2_find_table ( ctx , segment , table_index ) ;\n if ( huffman_params == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"Custom RDY huffman table not found (%d)\" , table_index ) ;\n goto cleanup1 ;\n }\n params . SBHUFFRDY = jbig2_build_huffman_table ( ctx , huffman_params ) ;\n ++ table_index ;\n break ;\n case 2 : default : code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"text region specified invalid RDY huffman table\" ) ;\n goto cleanup1 ;\n break ;\n }\n if ( params . SBHUFFRDY == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"failed to allocate text region specified RDY huffman table\" ) ;\n goto cleanup1 ;\n }\n switch ( ( huffman_flags & 0x4000 ) >> 14 ) {\n case 0 : params . SBHUFFRSIZE = jbig2_build_huffman_table ( ctx , & jbig2_huffman_params_A ) ;\n break ;\n case 1 : huffman_params = jbig2_find_table ( ctx , segment , table_index ) ;\n if ( huffman_params == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"Custom RSIZE huffman table not found (%d)\" , table_index ) ;\n goto cleanup1 ;\n }\n params . SBHUFFRSIZE = jbig2_build_huffman_table ( ctx , huffman_params ) ;\n ++ table_index ;\n break ;\n }\n if ( params . SBHUFFRSIZE == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"failed to allocate text region specified RSIZE huffman table\" ) ;\n goto cleanup1 ;\n }\n if ( huffman_flags & 0x8000 ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"text region huffman flags bit 15 is set, contrary to spec\" ) ;\n }\n }\n jbig2_error ( ctx , JBIG2_SEVERITY_INFO , segment -> number , \"text region: %d x %d @ (%d,%d) %d symbols\" , region_info . width , region_info . height , region_info . x , region_info . y , params . SBNUMINSTANCES ) ;\n n_dicts = jbig2_sd_count_referred ( ctx , segment ) ;\n if ( n_dicts != 0 ) {\n dicts = jbig2_sd_list_referred ( ctx , segment ) ;\n }\n else {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"text region refers to no symbol dictionaries!\" ) ;\n goto cleanup1 ;\n }\n if ( dicts == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"unable to retrive symbol dictionaries! previous parsing error?\" ) ;\n goto cleanup1 ;\n }\n else {\n int index ;\n if ( dicts [ 0 ] == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"unable to find first referenced symbol dictionary!\" ) ;\n goto cleanup1 ;\n }\n for ( index = 1 ;\n index < n_dicts ;\n index ++ ) if ( dicts [ index ] == NULL ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"unable to find all referenced symbol dictionaries!\" ) ;\n n_dicts = index ;\n }\n }\n {\n int stats_size = params . SBRTEMPLATE ? 1 << 10 : 1 << 13 ;\n GR_stats = jbig2_new ( ctx , Jbig2ArithCx , stats_size ) ;\n if ( GR_stats == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"could not allocate GR_stats\" ) ;\n goto cleanup1 ;\n }\n memset ( GR_stats , 0 , stats_size ) ;\n }\n image = jbig2_image_new ( ctx , region_info . width , region_info . height ) ;\n if ( image == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"couldn't allocate text region image\" ) ;\n goto cleanup2 ;\n }\n ws = jbig2_word_stream_buf_new ( ctx , segment_data + offset , segment -> data_length - offset ) ;\n if ( ws == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"couldn't allocate ws in text region image\" ) ;\n goto cleanup2 ;\n }\n as = jbig2_arith_new ( ctx , ws ) ;\n if ( as == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"couldn't allocate as in text region image\" ) ;\n goto cleanup2 ;\n }\n if ( ! params . SBHUFF ) {\n int SBSYMCODELEN , index ;\n int SBNUMSYMS = 0 ;\n for ( index = 0 ;\n index < n_dicts ;\n index ++ ) {\n SBNUMSYMS += dicts [ index ] -> n_symbols ;\n }\n params . IADT = jbig2_arith_int_ctx_new ( ctx ) ;\n params . IAFS = jbig2_arith_int_ctx_new ( ctx ) ;\n params . IADS = jbig2_arith_int_ctx_new ( ctx ) ;\n params . IAIT = jbig2_arith_int_ctx_new ( ctx ) ;\n if ( ( params . IADT == NULL ) || ( params . IAFS == NULL ) || ( params . IADS == NULL ) || ( params . IAIT == NULL ) ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"couldn't allocate text region image data\" ) ;\n goto cleanup3 ;\n }\n for ( SBSYMCODELEN = 0 ;\n ( 1 << SBSYMCODELEN ) < SBNUMSYMS ;\n SBSYMCODELEN ++ ) {\n }\n params . IAID = jbig2_arith_iaid_ctx_new ( ctx , SBSYMCODELEN ) ;\n params . IARI = jbig2_arith_int_ctx_new ( ctx ) ;\n params . IARDW = jbig2_arith_int_ctx_new ( ctx ) ;\n params . IARDH = jbig2_arith_int_ctx_new ( ctx ) ;\n params . IARDX = jbig2_arith_int_ctx_new ( ctx ) ;\n params . IARDY = jbig2_arith_int_ctx_new ( ctx ) ;\n if ( ( params . IAID == NULL ) || ( params . IARI == NULL ) || ( params . IARDW == NULL ) || ( params . IARDH == NULL ) || ( params . IARDX == NULL ) || ( params . IARDY == NULL ) ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"couldn't allocate text region image data\" ) ;\n goto cleanup4 ;\n }\n }\n code = jbig2_decode_text_region ( ctx , segment , & params , ( const Jbig2SymbolDict * const * ) dicts , n_dicts , image , segment_data + offset , segment -> data_length - offset , GR_stats , as , ws ) ;\n if ( code < 0 ) {\n jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"failed to decode text region image data\" ) ;\n goto cleanup4 ;\n }\n if ( ( segment -> flags & 63 ) == 4 ) {\n segment -> result = jbig2_image_clone ( ctx , image ) ;\n }\n else {\n jbig2_error ( ctx , JBIG2_SEVERITY_DEBUG , segment -> number , \"composing %dx%d decoded text region onto page at (%d, %d)\" , region_info . width , region_info . height , region_info . x , region_info . y ) ;\n jbig2_page_add_result ( ctx , & ctx -> pages [ ctx -> current_page ] , image , region_info . x , region_info . y , region_info . op ) ;\n }\n cleanup4 : if ( ! params . SBHUFF ) {\n jbig2_arith_iaid_ctx_free ( ctx , params . IAID ) ;\n jbig2_arith_int_ctx_free ( ctx , params . IARI ) ;\n jbig2_arith_int_ctx_free ( ctx , params . IARDW ) ;\n jbig2_arith_int_ctx_free ( ctx , params . IARDH ) ;\n jbig2_arith_int_ctx_free ( ctx , params . IARDX ) ;\n jbig2_arith_int_ctx_free ( ctx , params . IARDY ) ;\n }\n cleanup3 : if ( ! params . SBHUFF ) {\n jbig2_arith_int_ctx_free ( ctx , params . IADT ) ;\n jbig2_arith_int_ctx_free ( ctx , params . IAFS ) ;\n jbig2_arith_int_ctx_free ( ctx , params . IADS ) ;\n jbig2_arith_int_ctx_free ( ctx , params . IAIT ) ;\n }\n jbig2_free ( ctx -> allocator , as ) ;\n jbig2_word_stream_buf_free ( ctx , ws ) ;\n cleanup2 : jbig2_free ( ctx -> allocator , GR_stats ) ;\n jbig2_image_release ( ctx , image ) ;\n cleanup1 : if ( params . SBHUFF ) {\n jbig2_release_huffman_table ( ctx , params . SBHUFFFS ) ;\n jbig2_release_huffman_table ( ctx , params . SBHUFFDS ) ;\n jbig2_release_huffman_table ( ctx , params . SBHUFFDT ) ;\n jbig2_release_huffman_table ( ctx , params . SBHUFFRDX ) ;\n jbig2_release_huffman_table ( ctx , params . SBHUFFRDY ) ;\n jbig2_release_huffman_table ( ctx , params . SBHUFFRDW ) ;\n jbig2_release_huffman_table ( ctx , params . SBHUFFRDH ) ;\n jbig2_release_huffman_table ( ctx , params . SBHUFFRSIZE ) ;\n }\n jbig2_free ( ctx -> allocator , dicts ) ;\n return code ;\n too_short : return jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"Segment too short\" ) ;\n }"}
{"idx": 19708, "target": 1, "func": "int dissect_h225_ReleaseCompleteReason ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 701 \"./asn1/h225/h225.cnf\" gint32 value ;\n h225_packet_info * h225_pi ;\n h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_ReleaseCompleteReason , ReleaseCompleteReason_choice , & value ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> reason = value ;\n }\n return offset ;\n }"}
{"idx": 19709, "target": 0, "func": "int dissect_ber_object_identifier_str ( gboolean implicit_tag , asn1_ctx_t * actx , proto_tree * tree , tvbuff_t * tvb , int offset , gint hf_id , const char * * value_stringx ) {\n return dissect_ber_any_oid_str ( implicit_tag , actx , tree , tvb , offset , hf_id , value_stringx , TRUE ) ;\n }"}
{"idx": 19710, "target": 0, "func": "static gpg_err_code_t make_space ( struct make_space_ctx * c , size_t n ) {\n size_t used = c -> pos - c -> sexp -> d ;\n if ( used + n + sizeof ( DATALEN ) + 1 >= c -> allocated ) {\n gcry_sexp_t newsexp ;\n byte * newhead ;\n size_t newsize ;\n newsize = c -> allocated + 2 * ( n + sizeof ( DATALEN ) + 1 ) ;\n if ( newsize <= c -> allocated ) return GPG_ERR_TOO_LARGE ;\n newsexp = gcry_realloc ( c -> sexp , sizeof * newsexp + newsize - 1 ) ;\n if ( ! newsexp ) return gpg_err_code_from_errno ( errno ) ;\n c -> allocated = newsize ;\n newhead = newsexp -> d ;\n c -> pos = newhead + used ;\n c -> sexp = newsexp ;\n }\n return 0 ;\n }"}
{"idx": 19711, "target": 0, "func": "static void dumpglyph ( SplineChar * sc , struct glyphinfo * gi ) {\n struct glyphhead gh ;\n DBounds bb ;\n SplineSet * ss , * ttfss ;\n int contourcnt , ptcnt , origptcnt ;\n BasePoint * bp ;\n char * fs ;\n SplineChar * isc = sc -> ttf_instrs == NULL && sc -> parent -> mm != NULL && sc -> parent -> mm -> apple ? sc -> parent -> mm -> normal -> glyphs [ sc -> orig_pos ] : sc ;\n if ( sc -> layers [ gi -> layer ] . splines == NULL && sc -> layers [ gi -> layer ] . refs == NULL ) {\n dumpspace ( sc , gi ) ;\n return ;\n }\n if ( gi -> next_glyph != sc -> ttf_glyph ) IError ( \"Glyph count wrong in ttf output\" ) ;\n if ( gi -> next_glyph >= gi -> maxp -> numGlyphs ) IError ( \"max glyph count wrong in ttf output\" ) ;\n gi -> loca [ gi -> next_glyph ] = ftell ( gi -> glyphs ) ;\n ttfss = SCttfApprox ( sc , gi -> layer ) ;\n ptcnt = SSTtfNumberPoints ( ttfss ) ;\n for ( ss = ttfss , contourcnt = 0 ;\n ss != NULL ;\n ss = ss -> next ) {\n ++ contourcnt ;\n }\n origptcnt = ptcnt ;\n SplineSetQuickBounds ( ttfss , & bb ) ;\n gh . numContours = contourcnt ;\n gh . xmin = floor ( bb . minx ) ;\n gh . ymin = floor ( bb . miny ) ;\n gh . xmax = ceil ( bb . maxx ) ;\n gh . ymax = ceil ( bb . maxy ) ;\n dumpghstruct ( gi , & gh ) ;\n if ( contourcnt > gi -> maxp -> maxContours ) gi -> maxp -> maxContours = contourcnt ;\n if ( ptcnt > gi -> maxp -> maxPoints ) gi -> maxp -> maxPoints = ptcnt ;\n bp = malloc ( ptcnt * sizeof ( BasePoint ) ) ;\n fs = malloc ( ptcnt ) ;\n ptcnt = contourcnt = 0 ;\n for ( ss = ttfss ;\n ss != NULL ;\n ss = ss -> next ) {\n ptcnt = SSAddPoints ( ss , ptcnt , bp , fs ) ;\n putshort ( gi -> glyphs , ptcnt - 1 ) ;\n }\n if ( ptcnt != origptcnt ) IError ( \"Point count wrong calculated=%d, actual=%d in %.20s\" , origptcnt , ptcnt , sc -> name ) ;\n gi -> pointcounts [ gi -> next_glyph ++ ] = ptcnt ;\n dumpinstrs ( gi , isc -> ttf_instrs , isc -> ttf_instrs_len ) ;\n dumppointarrays ( gi , bp , fs , ptcnt ) ;\n SplinePointListsFree ( ttfss ) ;\n free ( bp ) ;\n free ( fs ) ;\n ttfdumpmetrics ( sc , gi , & bb ) ;\n }"}
{"idx": 19712, "target": 0, "func": "int qemuMonitorJSONCloseFileHandle ( qemuMonitorPtr mon , const char * fdname ) {\n int ret ;\n virJSONValuePtr cmd = qemuMonitorJSONMakeCommand ( \"closefd\" , \"s:fdname\" , fdname , NULL ) ;\n virJSONValuePtr reply = NULL ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 19713, "target": 0, "func": "static int dissect_h245_ModeElement ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_ModeElement , ModeElement_sequence ) ;\n return offset ;\n }"}
{"idx": 19714, "target": 0, "func": "void bitmap_writer_build ( struct packing_data * to_pack ) {\n static const double REUSE_BITMAP_THRESHOLD = 0.2 ;\n int i , reuse_after , need_reset ;\n struct bitmap * base = bitmap_new ( ) ;\n struct rev_info revs ;\n writer . bitmaps = kh_init_sha1 ( ) ;\n writer . to_pack = to_pack ;\n if ( writer . show_progress ) writer . progress = start_progress ( \"Building bitmaps\" , writer . selected_nr ) ;\n init_revisions ( & revs , NULL ) ;\n revs . tag_objects = 1 ;\n revs . tree_objects = 1 ;\n revs . blob_objects = 1 ;\n revs . no_walk = 0 ;\n revs . include_check = should_include ;\n reset_revision_walk ( ) ;\n reuse_after = writer . selected_nr * REUSE_BITMAP_THRESHOLD ;\n need_reset = 0 ;\n for ( i = writer . selected_nr - 1 ;\n i >= 0 ;\n -- i ) {\n struct bitmapped_commit * stored ;\n struct object * object ;\n khiter_t hash_pos ;\n int hash_ret ;\n stored = & writer . selected [ i ] ;\n object = ( struct object * ) stored -> commit ;\n if ( stored -> bitmap == NULL ) {\n if ( i < writer . selected_nr - 1 && ( need_reset || ! in_merge_bases ( writer . selected [ i + 1 ] . commit , stored -> commit ) ) ) {\n bitmap_reset ( base ) ;\n reset_all_seen ( ) ;\n }\n add_pending_object ( & revs , object , \"\" ) ;\n revs . include_check_data = base ;\n if ( prepare_revision_walk ( & revs ) ) die ( \"revision walk setup failed\" ) ;\n traverse_commit_list ( & revs , show_commit , show_object , base ) ;\n revs . pending . nr = 0 ;\n revs . pending . alloc = 0 ;\n revs . pending . objects = NULL ;\n stored -> bitmap = bitmap_to_ewah ( base ) ;\n need_reset = 0 ;\n }\n else need_reset = 1 ;\n if ( i >= reuse_after ) stored -> flags |= BITMAP_FLAG_REUSE ;\n hash_pos = kh_put_sha1 ( writer . bitmaps , object -> oid . hash , & hash_ret ) ;\n if ( hash_ret == 0 ) die ( \"Duplicate entry when writing index: %s\" , oid_to_hex ( & object -> oid ) ) ;\n kh_value ( writer . bitmaps , hash_pos ) = stored ;\n display_progress ( writer . progress , writer . selected_nr - i ) ;\n }\n bitmap_free ( base ) ;\n stop_progress ( & writer . progress ) ;\n compute_xor_offsets ( ) ;\n }"}
{"idx": 19715, "target": 0, "func": "static int rtp_packetize_h264_nal ( sout_stream_id_sys_t * id , const uint8_t * p_data , int i_data , int64_t i_pts , int64_t i_dts , bool b_last , int64_t i_length ) {\n const int i_max = rtp_mtu ( id ) ;\n int i_nal_hdr ;\n int i_nal_type ;\n if ( i_data < 5 ) return VLC_SUCCESS ;\n i_nal_hdr = p_data [ 3 ] ;\n i_nal_type = i_nal_hdr & 0x1f ;\n p_data += 3 ;\n i_data -= 3 ;\n if ( i_data <= i_max ) {\n block_t * out = block_Alloc ( 12 + i_data ) ;\n out -> i_dts = i_dts ;\n out -> i_length = i_length ;\n rtp_packetize_common ( id , out , b_last , i_pts ) ;\n memcpy ( & out -> p_buffer [ 12 ] , p_data , i_data ) ;\n rtp_packetize_send ( id , out ) ;\n }\n else {\n const int i_count = ( i_data - 1 + i_max - 2 - 1 ) / ( i_max - 2 ) ;\n int i ;\n p_data ++ ;\n i_data -- ;\n for ( i = 0 ;\n i < i_count ;\n i ++ ) {\n const int i_payload = __MIN ( i_data , i_max - 2 ) ;\n block_t * out = block_Alloc ( 12 + 2 + i_payload ) ;\n out -> i_dts = i_dts + i * i_length / i_count ;\n out -> i_length = i_length / i_count ;\n rtp_packetize_common ( id , out , ( b_last && i_payload == i_data ) , i_pts ) ;\n out -> p_buffer [ 12 ] = 0x00 | ( i_nal_hdr & 0x60 ) | 28 ;\n out -> p_buffer [ 13 ] = ( i == 0 ? 0x80 : 0x00 ) | ( ( i == i_count - 1 ) ? 0x40 : 0x00 ) | i_nal_type ;\n memcpy ( & out -> p_buffer [ 14 ] , p_data , i_payload ) ;\n rtp_packetize_send ( id , out ) ;\n i_data -= i_payload ;\n p_data += i_payload ;\n }\n }\n return VLC_SUCCESS ;\n }"}
{"idx": 19716, "target": 0, "func": "static int8_t getWindow ( const uint32_t offsets [ 8 ] , uint32_t c ) {\n int i ;\n for ( i = 0 ;\n i < 8 ;\n ++ i ) {\n if ( ( uint32_t ) ( c - offsets [ i ] ) <= 0x7f ) {\n return ( int8_t ) ( i ) ;\n }\n }\n return - 1 ;\n }"}
{"idx": 19717, "target": 0, "func": "void proto_reg_handoff_t38 ( void ) {\n static gboolean t38_prefs_initialized = FALSE ;\n static guint tcp_port ;\n static guint udp_port ;\n if ( ! t38_prefs_initialized ) {\n t38_udp_handle = create_dissector_handle ( dissect_t38_udp , proto_t38 ) ;\n t38_tcp_handle = create_dissector_handle ( dissect_t38_tcp , proto_t38 ) ;\n t38_tcp_pdu_handle = create_dissector_handle ( dissect_t38_tcp_pdu , proto_t38 ) ;\n rtp_handle = find_dissector ( \"rtp\" ) ;\n t30_hdlc_handle = find_dissector ( \"t30.hdlc\" ) ;\n data_handle = find_dissector ( \"data\" ) ;\n t38_prefs_initialized = TRUE ;\n }\n else {\n dissector_delete_uint ( \"tcp.port\" , tcp_port , t38_tcp_handle ) ;\n dissector_delete_uint ( \"udp.port\" , udp_port , t38_udp_handle ) ;\n }\n tcp_port = global_t38_tcp_port ;\n udp_port = global_t38_udp_port ;\n dissector_add_uint ( \"tcp.port\" , tcp_port , t38_tcp_handle ) ;\n dissector_add_uint ( \"udp.port\" , udp_port , t38_udp_handle ) ;\n }"}
{"idx": 19718, "target": 0, "func": "static int decode_wave_header ( AVCodecContext * avctx , const uint8_t * header , int header_size ) {\n int len ;\n short wave_format ;\n if ( bytestream_get_le32 ( & header ) != MKTAG ( 'R' , 'I' , 'F' , 'F' ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"missing RIFF tag\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n header += 4 ;\n if ( bytestream_get_le32 ( & header ) != MKTAG ( 'W' , 'A' , 'V' , 'E' ) ) {\n av_log ( avctx , AV_LOG_ERROR , \"missing WAVE tag\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n while ( bytestream_get_le32 ( & header ) != MKTAG ( 'f' , 'm' , 't' , ' ' ) ) {\n len = bytestream_get_le32 ( & header ) ;\n header += len ;\n }\n len = bytestream_get_le32 ( & header ) ;\n if ( len < 16 ) {\n av_log ( avctx , AV_LOG_ERROR , \"fmt chunk was too short\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n wave_format = bytestream_get_le16 ( & header ) ;\n switch ( wave_format ) {\n case WAVE_FORMAT_PCM : break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"unsupported wave format\\n\" ) ;\n return AVERROR ( ENOSYS ) ;\n }\n header += 2 ;\n avctx -> sample_rate = bytestream_get_le32 ( & header ) ;\n header += 4 ;\n header += 2 ;\n avctx -> bits_per_coded_sample = bytestream_get_le16 ( & header ) ;\n if ( avctx -> bits_per_coded_sample != 16 ) {\n av_log ( avctx , AV_LOG_ERROR , \"unsupported number of bits per sample\\n\" ) ;\n return AVERROR ( ENOSYS ) ;\n }\n len -= 16 ;\n if ( len > 0 ) av_log ( avctx , AV_LOG_INFO , \"%d header bytes unparsed\\n\" , len ) ;\n return 0 ;\n }"}
{"idx": 19719, "target": 0, "func": "static void signal_cb ( EV_P_ ev_signal * w , int revents ) {\n if ( revents & EV_SIGNAL ) {\n switch ( w -> signum ) {\n case SIGINT : case SIGTERM : ev_unloop ( EV_A_ EVUNLOOP_ALL ) ;\n }\n }\n }"}
{"idx": 19720, "target": 0, "func": "int xmlListInsert ( xmlListPtr l , void * data ) {\n xmlLinkPtr lkPlace , lkNew ;\n if ( l == NULL ) return ( 1 ) ;\n lkPlace = xmlListLowerSearch ( l , data ) ;\n lkNew = ( xmlLinkPtr ) xmlMalloc ( sizeof ( xmlLink ) ) ;\n if ( lkNew == NULL ) {\n xmlGenericError ( xmlGenericErrorContext , \"Cannot initialize memory for new link\" ) ;\n return ( 1 ) ;\n }\n lkNew -> data = data ;\n lkPlace = lkPlace -> prev ;\n lkNew -> next = lkPlace -> next ;\n ( lkPlace -> next ) -> prev = lkNew ;\n lkPlace -> next = lkNew ;\n lkNew -> prev = lkPlace ;\n return 0 ;\n }"}
{"idx": 19721, "target": 0, "func": "bool is_secure_file_path ( char * path ) {\n char buff1 [ FN_REFLEN ] , buff2 [ FN_REFLEN ] ;\n size_t opt_secure_file_priv_len ;\n if ( ! opt_secure_file_priv ) return TRUE ;\n opt_secure_file_priv_len = strlen ( opt_secure_file_priv ) ;\n if ( strlen ( path ) >= FN_REFLEN ) return FALSE ;\n if ( my_realpath ( buff1 , path , 0 ) ) {\n size_t length = dirname_length ( path ) ;\n memcpy ( buff2 , path , length ) ;\n buff2 [ length ] = '\\0' ;\n if ( length == 0 || my_realpath ( buff1 , buff2 , 0 ) ) return FALSE ;\n }\n convert_dirname ( buff2 , buff1 , NullS ) ;\n if ( ! lower_case_file_system ) {\n if ( strncmp ( opt_secure_file_priv , buff2 , opt_secure_file_priv_len ) ) return FALSE ;\n }\n else {\n if ( files_charset_info -> coll -> strnncoll ( files_charset_info , ( uchar * ) buff2 , strlen ( buff2 ) , ( uchar * ) opt_secure_file_priv , opt_secure_file_priv_len , TRUE ) ) return FALSE ;\n }\n return TRUE ;\n }"}
{"idx": 19722, "target": 0, "func": "static vpx_codec_err_t encoder_encode ( vpx_codec_alg_priv_t * ctx , const vpx_image_t * img , vpx_codec_pts_t pts , unsigned long duration , vpx_enc_frame_flags_t flags , unsigned long deadline ) {\n vpx_codec_err_t res = VPX_CODEC_OK ;\n VP9_COMP * const cpi = ctx -> cpi ;\n const vpx_rational_t * const timebase = & ctx -> cfg . g_timebase ;\n if ( img != NULL ) {\n res = validate_img ( ctx , img ) ;\n if ( res == VPX_CODEC_OK && cpi != NULL && ctx -> cx_data == NULL ) {\n ctx -> cx_data_sz = ctx -> cfg . g_w * ctx -> cfg . g_h * get_image_bps ( img ) / 8 * ( cpi -> multi_arf_allowed ? 8 : 2 ) ;\n if ( ctx -> cx_data_sz < 4096 ) ctx -> cx_data_sz = 4096 ;\n ctx -> cx_data = ( unsigned char * ) malloc ( ctx -> cx_data_sz ) ;\n if ( ctx -> cx_data == NULL ) {\n return VPX_CODEC_MEM_ERROR ;\n }\n }\n }\n pick_quickcompress_mode ( ctx , duration , deadline ) ;\n vpx_codec_pkt_list_init ( & ctx -> pkt_list ) ;\n if ( ( ( flags & VP8_EFLAG_NO_UPD_GF ) && ( flags & VP8_EFLAG_FORCE_GF ) ) || ( ( flags & VP8_EFLAG_NO_UPD_ARF ) && ( flags & VP8_EFLAG_FORCE_ARF ) ) ) {\n ctx -> base . err_detail = \"Conflicting flags.\" ;\n return VPX_CODEC_INVALID_PARAM ;\n }\n vp9_apply_encoding_flags ( cpi , flags ) ;\n if ( ctx -> cfg . kf_mode == VPX_KF_AUTO && ctx -> cfg . kf_min_dist == ctx -> cfg . kf_max_dist ) {\n if ( ++ ctx -> fixed_kf_cntr > ctx -> cfg . kf_min_dist ) {\n flags |= VPX_EFLAG_FORCE_KF ;\n ctx -> fixed_kf_cntr = 1 ;\n }\n }\n if ( res == VPX_CODEC_OK && cpi != NULL ) {\n unsigned int lib_flags = 0 ;\n YV12_BUFFER_CONFIG sd ;\n int64_t dst_time_stamp = timebase_units_to_ticks ( timebase , pts ) ;\n int64_t dst_end_time_stamp = timebase_units_to_ticks ( timebase , pts + duration ) ;\n size_t size , cx_data_sz ;\n unsigned char * cx_data ;\n if ( ctx -> base . init_flags & VPX_CODEC_USE_PSNR ) cpi -> b_calculate_psnr = 1 ;\n if ( img != NULL ) {\n res = image2yuvconfig ( img , & sd ) ;\n if ( vp9_receive_raw_frame ( cpi , flags , & sd , dst_time_stamp , dst_end_time_stamp ) ) {\n res = update_error_state ( ctx , & cpi -> common . error ) ;\n }\n }\n cx_data = ctx -> cx_data ;\n cx_data_sz = ctx -> cx_data_sz ;\n if ( ctx -> pending_cx_data ) {\n memmove ( cx_data , ctx -> pending_cx_data , ctx -> pending_cx_data_sz ) ;\n ctx -> pending_cx_data = cx_data ;\n cx_data += ctx -> pending_cx_data_sz ;\n cx_data_sz -= ctx -> pending_cx_data_sz ;\n if ( cx_data_sz < ctx -> cx_data_sz / 2 ) {\n ctx -> base . err_detail = \"Compressed data buffer too small\" ;\n return VPX_CODEC_ERROR ;\n }\n }\n while ( cx_data_sz >= ctx -> cx_data_sz / 2 && - 1 != vp9_get_compressed_data ( cpi , & lib_flags , & size , cx_data , & dst_time_stamp , & dst_end_time_stamp , ! img ) ) {\n if ( size ) {\n vpx_codec_cx_pkt_t pkt ;\n # if CONFIG_SPATIAL_SVC if ( is_two_pass_svc ( cpi ) ) cpi -> svc . layer_context [ cpi -> svc . spatial_layer_id ] . layer_size += size ;\n # endif if ( ! cpi -> common . show_frame # if CONFIG_SPATIAL_SVC || ( is_two_pass_svc ( cpi ) && cpi -> svc . spatial_layer_id < cpi -> svc . number_spatial_layers - 1 ) # endif ) {\n if ( ctx -> pending_cx_data == 0 ) ctx -> pending_cx_data = cx_data ;\n ctx -> pending_cx_data_sz += size ;\n ctx -> pending_frame_sizes [ ctx -> pending_frame_count ++ ] = size ;\n ctx -> pending_frame_magnitude |= size ;\n cx_data += size ;\n cx_data_sz -= size ;\n continue ;\n }\n pkt . kind = VPX_CODEC_CX_FRAME_PKT ;\n pkt . data . frame . pts = ticks_to_timebase_units ( timebase , dst_time_stamp ) ;\n pkt . data . frame . duration = ( unsigned long ) ticks_to_timebase_units ( timebase , dst_end_time_stamp - dst_time_stamp ) ;\n pkt . data . frame . flags = get_frame_pkt_flags ( cpi , lib_flags ) ;\n if ( ctx -> pending_cx_data ) {\n ctx -> pending_frame_sizes [ ctx -> pending_frame_count ++ ] = size ;\n ctx -> pending_frame_magnitude |= size ;\n ctx -> pending_cx_data_sz += size ;\n size += write_superframe_index ( ctx ) ;\n pkt . data . frame . buf = ctx -> pending_cx_data ;\n pkt . data . frame . sz = ctx -> pending_cx_data_sz ;\n ctx -> pending_cx_data = NULL ;\n ctx -> pending_cx_data_sz = 0 ;\n ctx -> pending_frame_count = 0 ;\n ctx -> pending_frame_magnitude = 0 ;\n }\n else {\n pkt . data . frame . buf = cx_data ;\n pkt . data . frame . sz = size ;\n }\n pkt . data . frame . partition_id = - 1 ;\n vpx_codec_pkt_list_add ( & ctx -> pkt_list . head , & pkt ) ;\n cx_data += size ;\n cx_data_sz -= size ;\n # if CONFIG_SPATIAL_SVC if ( is_two_pass_svc ( cpi ) ) {\n vpx_codec_cx_pkt_t pkt_sizes , pkt_psnr ;\n int i ;\n vp9_zero ( pkt_sizes ) ;\n vp9_zero ( pkt_psnr ) ;\n pkt_sizes . kind = VPX_CODEC_SPATIAL_SVC_LAYER_SIZES ;\n pkt_psnr . kind = VPX_CODEC_SPATIAL_SVC_LAYER_PSNR ;\n for ( i = 0 ;\n i < cpi -> svc . number_spatial_layers ;\n ++ i ) {\n LAYER_CONTEXT * lc = & cpi -> svc . layer_context [ i ] ;\n pkt_sizes . data . layer_sizes [ i ] = lc -> layer_size ;\n pkt_psnr . data . layer_psnr [ i ] = lc -> psnr_pkt ;\n lc -> layer_size = 0 ;\n }\n vpx_codec_pkt_list_add ( & ctx -> pkt_list . head , & pkt_sizes ) ;\n vpx_codec_pkt_list_add ( & ctx -> pkt_list . head , & pkt_psnr ) ;\n }\n # endif }\n }\n }\n return res ;\n }"}
{"idx": 19723, "target": 0, "func": "static void define_gf_group ( VP9_COMP * cpi , FIRSTPASS_STATS * this_frame ) {\n RATE_CONTROL * const rc = & cpi -> rc ;\n const VP9EncoderConfig * const oxcf = & cpi -> oxcf ;\n TWO_PASS * const twopass = & cpi -> twopass ;\n FIRSTPASS_STATS next_frame ;\n const FIRSTPASS_STATS * const start_pos = twopass -> stats_in ;\n int i ;\n double boost_score = 0.0 ;\n double old_boost_score = 0.0 ;\n double gf_group_err = 0.0 ;\n double gf_first_frame_err = 0.0 ;\n double mod_frame_err = 0.0 ;\n double mv_ratio_accumulator = 0.0 ;\n double decay_accumulator = 1.0 ;\n double zero_motion_accumulator = 1.0 ;\n double loop_decay_rate = 1.00 ;\n double last_loop_decay_rate = 1.00 ;\n double this_frame_mv_in_out = 0.0 ;\n double mv_in_out_accumulator = 0.0 ;\n double abs_mv_in_out_accumulator = 0.0 ;\n double mv_ratio_accumulator_thresh ;\n unsigned int allow_alt_ref = is_altref_enabled ( cpi ) ;\n int f_boost = 0 ;\n int b_boost = 0 ;\n int flash_detected ;\n int active_max_gf_interval ;\n int64_t gf_group_bits ;\n double gf_group_error_left ;\n int gf_arf_bits ;\n if ( cpi -> common . frame_type != KEY_FRAME ) {\n vp9_zero ( twopass -> gf_group ) ;\n }\n vp9_clear_system_state ( ) ;\n vp9_zero ( next_frame ) ;\n mod_frame_err = calculate_modified_err ( twopass , oxcf , this_frame ) ;\n gf_first_frame_err = mod_frame_err ;\n if ( cpi -> common . frame_type == KEY_FRAME || rc -> source_alt_ref_active ) gf_group_err -= gf_first_frame_err ;\n mv_ratio_accumulator_thresh = ( cpi -> common . width + cpi -> common . height ) / 4.0 ;\n if ( cpi -> multi_arf_allowed ) {\n active_max_gf_interval = rc -> max_gf_interval ;\n }\n else {\n active_max_gf_interval = + ( ( int ) vp9_convert_qindex_to_q ( rc -> last_q [ INTER_FRAME ] , cpi -> common . bit_depth ) >> 5 ) ;\n if ( active_max_gf_interval > rc -> max_gf_interval ) active_max_gf_interval = rc -> max_gf_interval ;\n }\n i = 0 ;\n while ( i < rc -> static_scene_max_gf_interval && i < rc -> frames_to_key ) {\n ++ i ;\n mod_frame_err = calculate_modified_err ( twopass , oxcf , this_frame ) ;\n gf_group_err += mod_frame_err ;\n if ( EOF == input_stats ( twopass , & next_frame ) ) break ;\n flash_detected = detect_flash ( twopass , 0 ) ;\n accumulate_frame_motion_stats ( & next_frame , & this_frame_mv_in_out , & mv_in_out_accumulator , & abs_mv_in_out_accumulator , & mv_ratio_accumulator ) ;\n if ( ! flash_detected ) {\n last_loop_decay_rate = loop_decay_rate ;\n loop_decay_rate = get_prediction_decay_rate ( & cpi -> common , & next_frame ) ;\n decay_accumulator = decay_accumulator * loop_decay_rate ;\n zero_motion_accumulator = MIN ( zero_motion_accumulator , get_zero_motion_factor ( & cpi -> common , & next_frame ) ) ;\n if ( detect_transition_to_still ( twopass , i , 5 , loop_decay_rate , last_loop_decay_rate ) ) {\n allow_alt_ref = 0 ;\n break ;\n }\n }\n boost_score += decay_accumulator * calc_frame_boost ( cpi , & next_frame , this_frame_mv_in_out , GF_MAX_BOOST ) ;\n if ( ( i >= active_max_gf_interval && ( zero_motion_accumulator < 0.995 ) ) || ( ( i > MIN_GF_INTERVAL ) && ( ! flash_detected ) && ( ( mv_ratio_accumulator > mv_ratio_accumulator_thresh ) || ( abs_mv_in_out_accumulator > 3.0 ) || ( mv_in_out_accumulator < - 2.0 ) || ( ( boost_score - old_boost_score ) < BOOST_FACTOR ) ) ) ) {\n boost_score = old_boost_score ;\n break ;\n }\n * this_frame = next_frame ;\n old_boost_score = boost_score ;\n }\n twopass -> gf_zeromotion_pct = ( int ) ( zero_motion_accumulator * 1000.0 ) ;\n if ( cpi -> common . frame_type == KEY_FRAME || rc -> source_alt_ref_active ) rc -> baseline_gf_interval = i - 1 ;\n else rc -> baseline_gf_interval = i ;\n if ( is_two_pass_svc ( cpi ) && cpi -> svc . number_temporal_layers > 1 ) {\n int count = ( 1 << ( cpi -> svc . number_temporal_layers - 1 ) ) - 1 ;\n int new_gf_interval = ( rc -> baseline_gf_interval + count ) & ( ~ count ) ;\n int j ;\n for ( j = 0 ;\n j < new_gf_interval - rc -> baseline_gf_interval ;\n ++ j ) {\n if ( EOF == input_stats ( twopass , this_frame ) ) break ;\n gf_group_err += calculate_modified_err ( twopass , oxcf , this_frame ) ;\n }\n rc -> baseline_gf_interval = new_gf_interval ;\n }\n rc -> frames_till_gf_update_due = rc -> baseline_gf_interval ;\n if ( allow_alt_ref && ( i < cpi -> oxcf . lag_in_frames ) && ( i >= MIN_GF_INTERVAL ) ) {\n rc -> gfu_boost = calc_arf_boost ( cpi , 0 , ( i - 1 ) , ( i - 1 ) , & f_boost , & b_boost ) ;\n rc -> source_alt_ref_pending = 1 ;\n cpi -> multi_arf_enabled = ( cpi -> multi_arf_allowed && ( rc -> baseline_gf_interval >= 6 ) && ( zero_motion_accumulator < 0.995 ) ) ? 1 : 0 ;\n }\n else {\n rc -> gfu_boost = MAX ( ( int ) boost_score , 125 ) ;\n rc -> source_alt_ref_pending = 0 ;\n }\n reset_fpf_position ( twopass , start_pos ) ;\n gf_group_bits = calculate_total_gf_group_bits ( cpi , gf_group_err ) ;\n {\n int q = rc -> last_q [ INTER_FRAME ] ;\n int boost = ( rc -> gfu_boost * gfboost_qadjust ( q , cpi -> common . bit_depth ) ) / 100 ;\n boost = clamp ( boost , 125 , ( rc -> baseline_gf_interval + 1 ) * 200 ) ;\n gf_arf_bits = calculate_boost_bits ( rc -> baseline_gf_interval , boost , gf_group_bits ) ;\n }\n twopass -> kf_group_error_left -= ( int64_t ) gf_group_err ;\n if ( rc -> source_alt_ref_pending ) {\n gf_group_error_left = gf_group_err - mod_frame_err ;\n }\n else if ( cpi -> common . frame_type != KEY_FRAME ) {\n gf_group_error_left = gf_group_err - gf_first_frame_err ;\n }\n else {\n gf_group_error_left = gf_group_err ;\n }\n allocate_gf_group_bits ( cpi , gf_group_bits , gf_group_error_left , gf_arf_bits ) ;\n reset_fpf_position ( twopass , start_pos ) ;\n if ( cpi -> common . frame_type != KEY_FRAME ) {\n twopass -> section_intra_rating = calculate_section_intra_ratio ( start_pos , twopass -> stats_in_end , rc -> baseline_gf_interval ) ;\n }\n }"}
{"idx": 19724, "target": 0, "func": "void mem_get_initial_matrix ( gx_device * dev , gs_matrix * pmat ) {\n gx_device_memory * const mdev = ( gx_device_memory * ) dev ;\n pmat -> xx = mdev -> initial_matrix . xx ;\n pmat -> xy = mdev -> initial_matrix . xy ;\n pmat -> yx = mdev -> initial_matrix . yx ;\n pmat -> yy = mdev -> initial_matrix . yy ;\n pmat -> tx = mdev -> initial_matrix . tx ;\n pmat -> ty = mdev -> initial_matrix . ty ;\n }"}
{"idx": 19725, "target": 0, "func": "static void vvalue_strbuf_append_ui8 ( wmem_strbuf_t * strbuf , void * ptr ) {\n guint64 ui8 = * ( guint64 * ) ptr ;\n wmem_strbuf_append_printf ( strbuf , \"%\" G_GINT64_MODIFIER \"u\" , ui8 ) ;\n }"}
{"idx": 19726, "target": 0, "func": "int i2o_ECPublicKey ( EC_KEY * a , unsigned char * * out ) {\n size_t buf_len = 0 ;\n int new_buffer = 0 ;\n if ( a == NULL ) {\n ECerr ( EC_F_I2O_ECPUBLICKEY , ERR_R_PASSED_NULL_PARAMETER ) ;\n return 0 ;\n }\n buf_len = EC_POINT_point2oct ( a -> group , a -> pub_key , a -> conv_form , NULL , 0 , NULL ) ;\n if ( out == NULL || buf_len == 0 ) return buf_len ;\n if ( * out == NULL ) {\n if ( ( * out = OPENSSL_malloc ( buf_len ) ) == NULL ) {\n ECerr ( EC_F_I2O_ECPUBLICKEY , ERR_R_MALLOC_FAILURE ) ;\n return 0 ;\n }\n new_buffer = 1 ;\n }\n if ( ! EC_POINT_point2oct ( a -> group , a -> pub_key , a -> conv_form , * out , buf_len , NULL ) ) {\n ECerr ( EC_F_I2O_ECPUBLICKEY , ERR_R_EC_LIB ) ;\n OPENSSL_free ( * out ) ;\n * out = NULL ;\n return 0 ;\n }\n if ( ! new_buffer ) * out += buf_len ;\n return buf_len ;\n }"}
{"idx": 19727, "target": 0, "func": "static VALUE ossl_asn1obj_get_oid ( VALUE self ) {\n VALUE val ;\n ASN1_OBJECT * a1obj ;\n char buf [ 128 ] ;\n val = ossl_asn1_get_value ( self ) ;\n a1obj = obj_to_asn1obj ( val ) ;\n OBJ_obj2txt ( buf , sizeof ( buf ) , a1obj , 1 ) ;\n ASN1_OBJECT_free ( a1obj ) ;\n return rb_str_new2 ( buf ) ;\n }"}
{"idx": 19728, "target": 1, "func": "static enum fetch_step vbf_stp_error ( struct worker * wrk , struct busyobj * bo ) {\n ssize_t l , ll , o ;\n double now ;\n uint8_t * ptr ;\n struct vsb * synth_body ;\n CHECK_OBJ_NOTNULL ( wrk , WORKER_MAGIC ) ;\n CHECK_OBJ_NOTNULL ( bo , BUSYOBJ_MAGIC ) ;\n CHECK_OBJ_NOTNULL ( bo -> fetch_objcore , OBJCORE_MAGIC ) ;\n AN ( bo -> fetch_objcore -> flags & OC_F_BUSY ) ;\n assert ( bo -> director_state == DIR_S_NULL ) ;\n wrk -> stats -> fetch_failed ++ ;\n now = W_TIM_real ( wrk ) ;\n VSLb_ts_busyobj ( bo , \"Error\" , now ) ;\n if ( bo -> fetch_objcore -> stobj -> stevedore != NULL ) ObjFreeObj ( bo -> wrk , bo -> fetch_objcore ) ;\n HTTP_Setup ( bo -> beresp , bo -> ws , bo -> vsl , SLT_BerespMethod ) ;\n http_PutResponse ( bo -> beresp , \"HTTP/1.1\" , 503 , \"Backend fetch failed\" ) ;\n http_TimeHeader ( bo -> beresp , \"Date: \" , now ) ;\n http_SetHeader ( bo -> beresp , \"Server: Varnish\" ) ;\n bo -> fetch_objcore -> t_origin = now ;\n if ( ! VTAILQ_EMPTY ( & bo -> fetch_objcore -> objhead -> waitinglist ) ) {\n bo -> fetch_objcore -> ttl = 1 ;\n bo -> fetch_objcore -> grace = 5 ;\n bo -> fetch_objcore -> keep = 5 ;\n }\n else {\n bo -> fetch_objcore -> ttl = 0 ;\n bo -> fetch_objcore -> grace = 0 ;\n bo -> fetch_objcore -> keep = 0 ;\n }\n synth_body = VSB_new_auto ( ) ;\n AN ( synth_body ) ;\n VCL_backend_error_method ( bo -> vcl , wrk , NULL , bo , synth_body ) ;\n AZ ( VSB_finish ( synth_body ) ) ;\n if ( wrk -> handling == VCL_RET_ABANDON || wrk -> handling == VCL_RET_FAIL ) {\n VSB_destroy ( & synth_body ) ;\n return ( F_STP_FAIL ) ;\n }\n if ( wrk -> handling == VCL_RET_RETRY ) {\n VSB_destroy ( & synth_body ) ;\n if ( bo -> retries ++ < cache_param -> max_retries ) return ( F_STP_RETRY ) ;\n VSLb ( bo -> vsl , SLT_VCL_Error , \"Too many retries, failing\" ) ;\n return ( F_STP_FAIL ) ;\n }\n assert ( wrk -> handling == VCL_RET_DELIVER ) ;\n bo -> vfc -> bo = bo ;\n bo -> vfc -> wrk = bo -> wrk ;\n bo -> vfc -> oc = bo -> fetch_objcore ;\n bo -> vfc -> http = bo -> beresp ;\n bo -> vfc -> esi_req = bo -> bereq ;\n if ( vbf_beresp2obj ( bo ) ) {\n ( void ) VFP_Error ( bo -> vfc , \"Could not get storage\" ) ;\n VSB_destroy ( & synth_body ) ;\n return ( F_STP_FAIL ) ;\n }\n ll = VSB_len ( synth_body ) ;\n o = 0 ;\n while ( ll > 0 ) {\n l = ll ;\n if ( VFP_GetStorage ( bo -> vfc , & l , & ptr ) != VFP_OK ) break ;\n memcpy ( ptr , VSB_data ( synth_body ) + o , l ) ;\n VFP_Extend ( bo -> vfc , l ) ;\n ll -= l ;\n o += l ;\n }\n AZ ( ObjSetU64 ( wrk , bo -> fetch_objcore , OA_LEN , o ) ) ;\n VSB_destroy ( & synth_body ) ;\n HSH_Unbusy ( wrk , bo -> fetch_objcore ) ;\n ObjSetState ( wrk , bo -> fetch_objcore , BOS_FINISHED ) ;\n return ( F_STP_DONE ) ;\n }"}
{"idx": 19729, "target": 1, "func": "void xps_parse_path ( xps_document * doc , const fz_matrix * ctm , char * base_uri , xps_resource * dict , fz_xml * root ) {\n fz_xml * node ;\n char * fill_uri ;\n char * stroke_uri ;\n char * opacity_mask_uri ;\n char * transform_att ;\n char * clip_att ;\n char * data_att ;\n char * fill_att ;\n char * stroke_att ;\n char * opacity_att ;\n char * opacity_mask_att ;\n fz_xml * transform_tag = NULL ;\n fz_xml * clip_tag = NULL ;\n fz_xml * data_tag = NULL ;\n fz_xml * fill_tag = NULL ;\n fz_xml * stroke_tag = NULL ;\n fz_xml * opacity_mask_tag = NULL ;\n char * fill_opacity_att = NULL ;\n char * stroke_opacity_att = NULL ;\n char * stroke_dash_array_att ;\n char * stroke_dash_cap_att ;\n char * stroke_dash_offset_att ;\n char * stroke_end_line_cap_att ;\n char * stroke_start_line_cap_att ;\n char * stroke_line_join_att ;\n char * stroke_miter_limit_att ;\n char * stroke_thickness_att ;\n char * navigate_uri_att ;\n fz_stroke_state * stroke = NULL ;\n fz_matrix transform ;\n float samples [ 32 ] ;\n fz_colorspace * colorspace ;\n fz_path * path = NULL ;\n fz_path * stroke_path = NULL ;\n fz_rect area ;\n int fill_rule ;\n int dash_len = 0 ;\n fz_matrix local_ctm ;\n transform_att = fz_xml_att ( root , \"RenderTransform\" ) ;\n clip_att = fz_xml_att ( root , \"Clip\" ) ;\n data_att = fz_xml_att ( root , \"Data\" ) ;\n fill_att = fz_xml_att ( root , \"Fill\" ) ;\n stroke_att = fz_xml_att ( root , \"Stroke\" ) ;\n opacity_att = fz_xml_att ( root , \"Opacity\" ) ;\n opacity_mask_att = fz_xml_att ( root , \"OpacityMask\" ) ;\n stroke_dash_array_att = fz_xml_att ( root , \"StrokeDashArray\" ) ;\n stroke_dash_cap_att = fz_xml_att ( root , \"StrokeDashCap\" ) ;\n stroke_dash_offset_att = fz_xml_att ( root , \"StrokeDashOffset\" ) ;\n stroke_end_line_cap_att = fz_xml_att ( root , \"StrokeEndLineCap\" ) ;\n stroke_start_line_cap_att = fz_xml_att ( root , \"StrokeStartLineCap\" ) ;\n stroke_line_join_att = fz_xml_att ( root , \"StrokeLineJoin\" ) ;\n stroke_miter_limit_att = fz_xml_att ( root , \"StrokeMiterLimit\" ) ;\n stroke_thickness_att = fz_xml_att ( root , \"StrokeThickness\" ) ;\n navigate_uri_att = fz_xml_att ( root , \"FixedPage.NavigateUri\" ) ;\n for ( node = fz_xml_down ( root ) ;\n node ;\n node = fz_xml_next ( node ) ) {\n if ( ! strcmp ( fz_xml_tag ( node ) , \"Path.RenderTransform\" ) ) transform_tag = fz_xml_down ( node ) ;\n if ( ! strcmp ( fz_xml_tag ( node ) , \"Path.OpacityMask\" ) ) opacity_mask_tag = fz_xml_down ( node ) ;\n if ( ! strcmp ( fz_xml_tag ( node ) , \"Path.Clip\" ) ) clip_tag = fz_xml_down ( node ) ;\n if ( ! strcmp ( fz_xml_tag ( node ) , \"Path.Fill\" ) ) fill_tag = fz_xml_down ( node ) ;\n if ( ! strcmp ( fz_xml_tag ( node ) , \"Path.Stroke\" ) ) stroke_tag = fz_xml_down ( node ) ;\n if ( ! strcmp ( fz_xml_tag ( node ) , \"Path.Data\" ) ) data_tag = fz_xml_down ( node ) ;\n }\n fill_uri = base_uri ;\n stroke_uri = base_uri ;\n opacity_mask_uri = base_uri ;\n xps_resolve_resource_reference ( doc , dict , & data_att , & data_tag , NULL ) ;\n xps_resolve_resource_reference ( doc , dict , & clip_att , & clip_tag , NULL ) ;\n xps_resolve_resource_reference ( doc , dict , & transform_att , & transform_tag , NULL ) ;\n xps_resolve_resource_reference ( doc , dict , & fill_att , & fill_tag , & fill_uri ) ;\n xps_resolve_resource_reference ( doc , dict , & stroke_att , & stroke_tag , & stroke_uri ) ;\n xps_resolve_resource_reference ( doc , dict , & opacity_mask_att , & opacity_mask_tag , & opacity_mask_uri ) ;\n if ( ! data_att && ! data_tag ) return ;\n if ( fill_tag && ! strcmp ( fz_xml_tag ( fill_tag ) , \"SolidColorBrush\" ) ) {\n fill_opacity_att = fz_xml_att ( fill_tag , \"Opacity\" ) ;\n fill_att = fz_xml_att ( fill_tag , \"Color\" ) ;\n fill_tag = NULL ;\n }\n if ( stroke_tag && ! strcmp ( fz_xml_tag ( stroke_tag ) , \"SolidColorBrush\" ) ) {\n stroke_opacity_att = fz_xml_att ( stroke_tag , \"Opacity\" ) ;\n stroke_att = fz_xml_att ( stroke_tag , \"Color\" ) ;\n stroke_tag = NULL ;\n }\n if ( stroke_att || stroke_tag ) {\n if ( stroke_dash_array_att ) {\n char * s = stroke_dash_array_att ;\n while ( * s ) {\n while ( * s == ' ' ) s ++ ;\n if ( * s ) dash_len ++ ;\n while ( * s && * s != ' ' ) s ++ ;\n }\n }\n stroke = fz_new_stroke_state_with_dash_len ( doc -> ctx , dash_len ) ;\n stroke -> start_cap = xps_parse_line_cap ( stroke_start_line_cap_att ) ;\n stroke -> dash_cap = xps_parse_line_cap ( stroke_dash_cap_att ) ;\n stroke -> end_cap = xps_parse_line_cap ( stroke_end_line_cap_att ) ;\n stroke -> linejoin = FZ_LINEJOIN_MITER_XPS ;\n if ( stroke_line_join_att ) {\n if ( ! strcmp ( stroke_line_join_att , \"Miter\" ) ) stroke -> linejoin = FZ_LINEJOIN_MITER_XPS ;\n if ( ! strcmp ( stroke_line_join_att , \"Round\" ) ) stroke -> linejoin = FZ_LINEJOIN_ROUND ;\n if ( ! strcmp ( stroke_line_join_att , \"Bevel\" ) ) stroke -> linejoin = FZ_LINEJOIN_BEVEL ;\n }\n stroke -> miterlimit = 10 ;\n if ( stroke_miter_limit_att ) stroke -> miterlimit = fz_atof ( stroke_miter_limit_att ) ;\n stroke -> linewidth = 1 ;\n if ( stroke_thickness_att ) stroke -> linewidth = fz_atof ( stroke_thickness_att ) ;\n stroke -> dash_phase = 0 ;\n stroke -> dash_len = 0 ;\n if ( stroke_dash_array_att ) {\n char * s = stroke_dash_array_att ;\n if ( stroke_dash_offset_att ) stroke -> dash_phase = fz_atof ( stroke_dash_offset_att ) * stroke -> linewidth ;\n while ( * s ) {\n while ( * s == ' ' ) s ++ ;\n if ( * s ) stroke -> dash_list [ stroke -> dash_len ++ ] = fz_atof ( s ) * stroke -> linewidth ;\n while ( * s && * s != ' ' ) s ++ ;\n }\n stroke -> dash_len = dash_len ;\n }\n }\n transform = fz_identity ;\n if ( transform_att ) xps_parse_render_transform ( doc , transform_att , & transform ) ;\n if ( transform_tag ) xps_parse_matrix_transform ( doc , transform_tag , & transform ) ;\n fz_concat ( & local_ctm , & transform , ctm ) ;\n if ( clip_att || clip_tag ) xps_clip ( doc , & local_ctm , dict , clip_att , clip_tag ) ;\n fill_rule = 0 ;\n if ( data_att ) path = xps_parse_abbreviated_geometry ( doc , data_att , & fill_rule ) ;\n else if ( data_tag ) {\n path = xps_parse_path_geometry ( doc , dict , data_tag , 0 , & fill_rule ) ;\n if ( stroke_att || stroke_tag ) stroke_path = xps_parse_path_geometry ( doc , dict , data_tag , 1 , & fill_rule ) ;\n }\n if ( ! stroke_path ) stroke_path = path ;\n if ( stroke_att || stroke_tag ) {\n fz_bound_path ( doc -> ctx , stroke_path , stroke , & local_ctm , & area ) ;\n if ( stroke_path != path && ( fill_att || fill_tag ) ) {\n fz_rect bounds ;\n fz_bound_path ( doc -> ctx , path , NULL , & local_ctm , & bounds ) ;\n fz_union_rect ( & area , & bounds ) ;\n }\n }\n else fz_bound_path ( doc -> ctx , path , NULL , & local_ctm , & area ) ;\n if ( navigate_uri_att ) xps_add_link ( doc , & area , base_uri , navigate_uri_att ) ;\n xps_begin_opacity ( doc , & local_ctm , & area , opacity_mask_uri , dict , opacity_att , opacity_mask_tag ) ;\n if ( fill_att ) {\n xps_parse_color ( doc , base_uri , fill_att , & colorspace , samples ) ;\n if ( fill_opacity_att ) samples [ 0 ] *= fz_atof ( fill_opacity_att ) ;\n xps_set_color ( doc , colorspace , samples ) ;\n fz_fill_path ( doc -> dev , path , fill_rule == 0 , & local_ctm , doc -> colorspace , doc -> color , doc -> alpha ) ;\n }\n if ( fill_tag ) {\n fz_clip_path ( doc -> dev , path , & area , fill_rule == 0 , & local_ctm ) ;\n xps_parse_brush ( doc , & local_ctm , & area , fill_uri , dict , fill_tag ) ;\n fz_pop_clip ( doc -> dev ) ;\n }\n if ( stroke_att ) {\n xps_parse_color ( doc , base_uri , stroke_att , & colorspace , samples ) ;\n if ( stroke_opacity_att ) samples [ 0 ] *= fz_atof ( stroke_opacity_att ) ;\n xps_set_color ( doc , colorspace , samples ) ;\n fz_stroke_path ( doc -> dev , stroke_path , stroke , & local_ctm , doc -> colorspace , doc -> color , doc -> alpha ) ;\n }\n if ( stroke_tag ) {\n fz_clip_stroke_path ( doc -> dev , stroke_path , & area , stroke , & local_ctm ) ;\n xps_parse_brush ( doc , & local_ctm , & area , stroke_uri , dict , stroke_tag ) ;\n fz_pop_clip ( doc -> dev ) ;\n }\n xps_end_opacity ( doc , opacity_mask_uri , dict , opacity_att , opacity_mask_tag ) ;\n if ( stroke_path != path ) fz_free_path ( doc -> ctx , stroke_path ) ;\n fz_free_path ( doc -> ctx , path ) ;\n path = NULL ;\n fz_drop_stroke_state ( doc -> ctx , stroke ) ;\n if ( clip_att || clip_tag ) fz_pop_clip ( doc -> dev ) ;\n }"}
{"idx": 19730, "target": 0, "func": "void jpc_qmfb_split_colres ( jpc_fix_t * a , int numrows , int numcols , int stride , int parity ) {\n int bufsize = JPC_CEILDIVPOW2 ( numrows , 1 ) ;\n jpc_fix_t splitbuf [ QMFB_SPLITBUFSIZE * JPC_QMFB_COLGRPSIZE ] ;\n jpc_fix_t * buf = splitbuf ;\n jpc_fix_t * srcptr ;\n jpc_fix_t * dstptr ;\n register jpc_fix_t * srcptr2 ;\n register jpc_fix_t * dstptr2 ;\n register int n ;\n register int i ;\n int m ;\n int hstartcol ;\n if ( bufsize > QMFB_SPLITBUFSIZE ) {\n if ( ! ( buf = jas_alloc3 ( bufsize , numcols , sizeof ( jpc_fix_t ) ) ) ) {\n abort ( ) ;\n }\n }\n if ( numrows >= 2 ) {\n hstartcol = ( numrows + 1 - parity ) >> 1 ;\n m = numrows - hstartcol ;\n n = m ;\n dstptr = buf ;\n srcptr = & a [ ( 1 - parity ) * stride ] ;\n while ( n -- > 0 ) {\n dstptr2 = dstptr ;\n srcptr2 = srcptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n * dstptr2 = * srcptr2 ;\n ++ dstptr2 ;\n ++ srcptr2 ;\n }\n dstptr += numcols ;\n srcptr += stride << 1 ;\n }\n dstptr = & a [ ( 1 - parity ) * stride ] ;\n srcptr = & a [ ( 2 - parity ) * stride ] ;\n n = numrows - m - ( ! parity ) ;\n while ( n -- > 0 ) {\n dstptr2 = dstptr ;\n srcptr2 = srcptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n * dstptr2 = * srcptr2 ;\n ++ dstptr2 ;\n ++ srcptr2 ;\n }\n dstptr += stride ;\n srcptr += stride << 1 ;\n }\n dstptr = & a [ hstartcol * stride ] ;\n srcptr = buf ;\n n = m ;\n while ( n -- > 0 ) {\n dstptr2 = dstptr ;\n srcptr2 = srcptr ;\n for ( i = 0 ;\n i < numcols ;\n ++ i ) {\n * dstptr2 = * srcptr2 ;\n ++ dstptr2 ;\n ++ srcptr2 ;\n }\n dstptr += stride ;\n srcptr += numcols ;\n }\n }\n if ( buf != splitbuf ) {\n jas_free ( buf ) ;\n }\n }"}
{"idx": 19731, "target": 0, "func": "int main ( int argc , char * * argv ) {\n struct event signal_int ;\n struct event_base * base = event_base_new ( ) ;\n event_set ( & signal_int , SIGINT , EV_SIGNAL | EV_PERSIST , signal_cb , & signal_int ) ;\n event_base_set ( base , & signal_int ) ;\n event_add ( & signal_int , NULL ) ;\n event_base_dispatch ( base ) ;\n event_base_free ( base ) ;\n return ( 0 ) ;\n }"}
{"idx": 19732, "target": 0, "func": "static void send_restrict_entry ( restrict_u * pres , int ipv6 , u_int idx ) {\n const char addr_fmtu [ ] = \"addr.%u\" ;\n const char mask_fmtu [ ] = \"mask.%u\" ;\n const char hits_fmt [ ] = \"hits.%u\" ;\n const char flags_fmt [ ] = \"flags.%u\" ;\n char tag [ 32 ] ;\n u_char sent [ RESLIST_FIELDS ] ;\n int noisebits ;\n u_int32 noise ;\n u_int which ;\n u_int remaining ;\n sockaddr_u addr ;\n sockaddr_u mask ;\n const char * pch ;\n char * buf ;\n const char * match_str ;\n const char * access_str ;\n sockaddrs_from_restrict_u ( & addr , & mask , pres , ipv6 ) ;\n remaining = COUNTOF ( sent ) ;\n ZERO ( sent ) ;\n noise = 0 ;\n noisebits = 0 ;\n while ( remaining > 0 ) {\n if ( noisebits < 2 ) {\n noise = rand ( ) ^ ( rand ( ) << 16 ) ;\n noisebits = 31 ;\n }\n which = ( noise & 0x3 ) % COUNTOF ( sent ) ;\n noise >>= 2 ;\n noisebits -= 2 ;\n while ( sent [ which ] ) which = ( which + 1 ) % COUNTOF ( sent ) ;\n switch ( which ) {\n case 0 : snprintf ( tag , sizeof ( tag ) , addr_fmtu , idx ) ;\n pch = stoa ( & addr ) ;\n ctl_putunqstr ( tag , pch , strlen ( pch ) ) ;\n break ;\n case 1 : snprintf ( tag , sizeof ( tag ) , mask_fmtu , idx ) ;\n pch = stoa ( & mask ) ;\n ctl_putunqstr ( tag , pch , strlen ( pch ) ) ;\n break ;\n case 2 : snprintf ( tag , sizeof ( tag ) , hits_fmt , idx ) ;\n ctl_putuint ( tag , pres -> count ) ;\n break ;\n case 3 : snprintf ( tag , sizeof ( tag ) , flags_fmt , idx ) ;\n match_str = res_match_flags ( pres -> mflags ) ;\n access_str = res_access_flags ( pres -> flags ) ;\n if ( '\\0' == match_str [ 0 ] ) {\n pch = access_str ;\n }\n else {\n LIB_GETBUF ( buf ) ;\n snprintf ( buf , LIB_BUFLENGTH , \"%s %s\" , match_str , access_str ) ;\n pch = buf ;\n }\n ctl_putunqstr ( tag , pch , strlen ( pch ) ) ;\n break ;\n }\n sent [ which ] = TRUE ;\n remaining -- ;\n }\n send_random_tag_value ( ( int ) idx ) ;\n }"}
{"idx": 19733, "target": 0, "func": "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 ) {\n uint8_t comp_pred [ m * n ] ;\n vp9_comp_avg_pred ( comp_pred , second_pred , m , n , ref , ref_stride ) ;\n return sad ( src , src_stride , comp_pred , m , m , n ) ;\n \\ }\n # define sadMxNxK ( m , n , k ) void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 ) sadMxN ( 16 , 32 ) sadMxNx4D ( 16 , 32 ) sadMxN ( 16 , 16 ) sadMxNxK ( 16 , 16 , 3 ) sadMxNxK ( 16 , 16 , 8 ) sadMxNx4D ( 16 , 16 ) sadMxN ( 16 , 8 ) sadMxNxK ( 16 , 8 , 3 ) sadMxNxK ( 16 , 8 , 8 ) sadMxNx4D ( 16 , 8 ) sadMxN ( 8 , 16 ) sadMxNxK ( 8 , 16 , 3 ) sadMxNxK ( 8 , 16 , 8 ) sadMxNx4D ( 8 , 16 ) sadMxN ( 8 , 8 ) sadMxNxK ( 8 , 8 , 3 ) sadMxNxK ( 8 , 8 , 8 ) sadMxNx4D ( 8 , 8 ) sadMxN ( 8 , 4 ) sadMxNxK ( 8 , 4 , 8 ) sadMxNx4D ( 8 , 4 ) sadMxN ( 4 , 8 )"}
{"idx": 19734, "target": 0, "func": "static void mark_in_pack_object ( struct object * object , struct packed_git * p , struct in_pack * in_pack ) {\n in_pack -> array [ in_pack -> nr ] . offset = find_pack_entry_one ( object -> oid . hash , p ) ;\n in_pack -> array [ in_pack -> nr ] . object = object ;\n in_pack -> nr ++ ;\n }"}
{"idx": 19735, "target": 0, "func": "static inline int asv1_get_level ( GetBitContext * gb ) {\n int code = get_vlc2 ( gb , level_vlc . table , VLC_BITS , 1 ) ;\n if ( code == 3 ) return get_sbits ( gb , 8 ) ;\n else return code - 3 ;\n }"}
{"idx": 19736, "target": 0, "func": "static void dissect_cip_s_validator_data ( proto_tree * item_tree , tvbuff_t * tvb , int offset , int item_length , packet_info * pinfo ) {\n proto_item * pi , * rrsc_item ;\n proto_tree * rrsc_tree , * cmd_data_tree ;\n int req_path_size ;\n guint8 service , gen_status , add_stat_size ;\n cip_req_info_t * preq_info ;\n cip_simple_request_info_t req_data ;\n col_set_str ( pinfo -> cinfo , COL_PROTOCOL , \"CIPS Validator\" ) ;\n service = tvb_get_guint8 ( tvb , offset ) ;\n rrsc_tree = proto_tree_add_subtree ( item_tree , tvb , offset , 1 , ett_svalidator_rrsc , & rrsc_item , \"Service: \" ) ;\n proto_tree_add_item ( rrsc_tree , hf_cip_reqrsp , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_item_append_text ( rrsc_item , \"%s (%s)\" , val_to_str ( ( service & 0x7F ) , cip_sc_vals_svalidator , \"Unknown Service (0x%02x)\" ) , val_to_str_const ( ( service & 0x80 ) >> 7 , cip_sc_rr , \"\" ) ) ;\n proto_tree_add_item ( rrsc_tree , hf_cip_svalidator_sc , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n preq_info = ( cip_req_info_t * ) p_get_proto_data ( wmem_file_scope ( ) , pinfo , proto_cip , 0 ) ;\n if ( ( preq_info != NULL ) && ( preq_info -> ciaData != NULL ) ) {\n memcpy ( & req_data , preq_info -> ciaData , sizeof ( cip_simple_request_info_t ) ) ;\n }\n else {\n req_data . iClass = ( guint32 ) - 1 ;\n req_data . iInstance = ( guint32 ) - 1 ;\n req_data . iAttribute = ( guint32 ) - 1 ;\n req_data . iMember = ( guint32 ) - 1 ;\n }\n if ( service & 0x80 ) {\n gen_status = tvb_get_guint8 ( tvb , offset + 2 ) ;\n add_stat_size = tvb_get_guint8 ( tvb , offset + 3 ) * 2 ;\n if ( ( item_length - 4 - add_stat_size ) != 0 ) {\n cmd_data_tree = proto_tree_add_subtree ( item_tree , tvb , offset + 4 + add_stat_size , item_length - 4 - add_stat_size , ett_ssupervisor_cmd_data , & pi , \"Command Specific Data\" ) ;\n if ( gen_status == CI_GRC_SUCCESS || gen_status == CI_GRC_SERVICE_ERROR ) {\n if ( ( ( service & 0x7F ) == SC_GET_ATT_ALL ) && ( req_data . iInstance != ( guint32 ) - 1 ) && ( req_data . iInstance != 0 ) ) {\n dissect_cip_get_attribute_all_rsp ( tvb , pinfo , cmd_data_tree , offset + 4 + add_stat_size , & req_data ) ;\n }\n else {\n proto_tree_add_item ( cmd_data_tree , hf_cip_data , tvb , offset + 4 + add_stat_size , item_length - 4 - add_stat_size , ENC_NA ) ;\n }\n }\n else {\n proto_tree_add_item ( cmd_data_tree , hf_cip_data , tvb , offset + 4 + add_stat_size , item_length - 4 - add_stat_size , ENC_NA ) ;\n }\n }\n }\n else {\n req_path_size = tvb_get_guint8 ( tvb , offset + 1 ) * 2 ;\n if ( ( item_length - req_path_size - 2 ) != 0 ) {\n cmd_data_tree = proto_tree_add_subtree ( item_tree , tvb , offset + 2 + req_path_size , item_length - req_path_size - 2 , ett_ssupervisor_cmd_data , NULL , \"Command Specific Data\" ) ;\n proto_tree_add_item ( cmd_data_tree , hf_cip_data , tvb , offset + 2 + req_path_size , item_length - req_path_size - 2 , ENC_NA ) ;\n }\n }\n add_cip_service_to_info_column ( pinfo , service , cip_sc_vals_svalidator ) ;\n }"}
{"idx": 19737, "target": 0, "func": "static int get_dimension ( GetBitContext * gb , const int * dim ) {\n int t = get_bits ( gb , 3 ) ;\n int val = dim [ t ] ;\n if ( val < 0 ) val = dim [ get_bits1 ( gb ) - val ] ;\n if ( ! val ) {\n do {\n t = get_bits ( gb , 8 ) ;\n val += t << 2 ;\n }\n while ( t == 0xFF ) ;\n }\n return val ;\n }"}
{"idx": 19738, "target": 1, "func": "static int jpc_pi_nextcprl ( register jpc_pi_t * pi ) {\n int rlvlno ;\n jpc_pirlvl_t * pirlvl ;\n jpc_pchg_t * pchg ;\n int prchind ;\n int prcvind ;\n int * prclyrno ;\n uint_fast32_t trx0 ;\n uint_fast32_t try0 ;\n uint_fast32_t r ;\n uint_fast32_t rpx ;\n uint_fast32_t rpy ;\n pchg = pi -> pchg ;\n if ( ! pi -> prgvolfirst ) {\n goto skip ;\n }\n else {\n pi -> prgvolfirst = 0 ;\n }\n for ( pi -> compno = pchg -> compnostart , pi -> picomp = & pi -> picomps [ pi -> compno ] ;\n pi -> compno < JAS_CAST ( int , pchg -> compnoend ) && pi -> compno < pi -> numcomps ;\n ++ pi -> compno , ++ pi -> picomp ) {\n pirlvl = pi -> picomp -> pirlvls ;\n pi -> xstep = pi -> picomp -> hsamp * ( 1 << ( pirlvl -> prcwidthexpn + pi -> picomp -> numrlvls - 1 ) ) ;\n pi -> ystep = pi -> picomp -> vsamp * ( 1 << ( pirlvl -> prcheightexpn + pi -> picomp -> numrlvls - 1 ) ) ;\n for ( rlvlno = 1 , pirlvl = & pi -> picomp -> pirlvls [ 1 ] ;\n rlvlno < pi -> picomp -> numrlvls ;\n ++ rlvlno , ++ pirlvl ) {\n pi -> xstep = JAS_MIN ( pi -> xstep , pi -> picomp -> hsamp * ( 1 << ( pirlvl -> prcwidthexpn + pi -> picomp -> numrlvls - rlvlno - 1 ) ) ) ;\n pi -> ystep = JAS_MIN ( pi -> ystep , pi -> picomp -> vsamp * ( 1 << ( pirlvl -> prcheightexpn + pi -> picomp -> numrlvls - rlvlno - 1 ) ) ) ;\n }\n for ( pi -> y = pi -> ystart ;\n pi -> y < pi -> yend ;\n pi -> y += pi -> ystep - ( pi -> y % pi -> ystep ) ) {\n for ( pi -> x = pi -> xstart ;\n pi -> x < pi -> xend ;\n pi -> x += pi -> xstep - ( pi -> x % pi -> xstep ) ) {\n for ( pi -> rlvlno = pchg -> rlvlnostart , pi -> pirlvl = & pi -> picomp -> pirlvls [ pi -> rlvlno ] ;\n pi -> rlvlno < pi -> picomp -> numrlvls && pi -> rlvlno < pchg -> rlvlnoend ;\n ++ pi -> rlvlno , ++ pi -> pirlvl ) {\n if ( pi -> pirlvl -> numprcs == 0 ) {\n continue ;\n }\n r = pi -> picomp -> numrlvls - 1 - pi -> rlvlno ;\n trx0 = JPC_CEILDIV ( pi -> xstart , pi -> picomp -> hsamp << r ) ;\n try0 = JPC_CEILDIV ( pi -> ystart , pi -> picomp -> vsamp << r ) ;\n rpx = r + pi -> pirlvl -> prcwidthexpn ;\n rpy = r + pi -> pirlvl -> prcheightexpn ;\n if ( ( ( pi -> x == pi -> xstart && ( ( trx0 << r ) % ( 1 << rpx ) ) ) || ! ( pi -> x % ( pi -> picomp -> hsamp << rpx ) ) ) && ( ( pi -> y == pi -> ystart && ( ( try0 << r ) % ( 1 << rpy ) ) ) || ! ( pi -> y % ( pi -> picomp -> vsamp << rpy ) ) ) ) {\n prchind = JPC_FLOORDIVPOW2 ( JPC_CEILDIV ( pi -> x , pi -> picomp -> hsamp << r ) , pi -> pirlvl -> prcwidthexpn ) - JPC_FLOORDIVPOW2 ( trx0 , pi -> pirlvl -> prcwidthexpn ) ;\n prcvind = JPC_FLOORDIVPOW2 ( JPC_CEILDIV ( pi -> y , pi -> picomp -> vsamp << r ) , pi -> pirlvl -> prcheightexpn ) - JPC_FLOORDIVPOW2 ( try0 , pi -> pirlvl -> prcheightexpn ) ;\n pi -> prcno = prcvind * pi -> pirlvl -> numhprcs + prchind ;\n assert ( pi -> prcno < pi -> pirlvl -> numprcs ) ;\n for ( pi -> lyrno = 0 ;\n pi -> lyrno < pi -> numlyrs && pi -> lyrno < JAS_CAST ( int , pchg -> lyrnoend ) ;\n ++ pi -> lyrno ) {\n prclyrno = & pi -> pirlvl -> prclyrnos [ pi -> prcno ] ;\n if ( pi -> lyrno >= * prclyrno ) {\n ++ ( * prclyrno ) ;\n return 0 ;\n }\n skip : ;\n }\n }\n }\n }\n }\n }\n return 1 ;\n }"}
{"idx": 19739, "target": 0, "func": "static PyObject * string_strip ( PyStringObject * self , PyObject * args ) {\n if ( PyTuple_GET_SIZE ( args ) == 0 ) return do_strip ( self , BOTHSTRIP ) ;\n else return do_argstrip ( self , BOTHSTRIP , args ) ;\n }"}
{"idx": 19740, "target": 0, "func": "static void selinux_secmark_refcount_inc ( void ) {\n atomic_inc ( & selinux_secmark_refcount ) ;\n }"}
{"idx": 19741, "target": 0, "func": "METHOD ( certificate_t , get_issuer , identification_t * , private_x509_cert_t * this ) {\n return this -> issuer ;\n }"}
{"idx": 19742, "target": 1, "func": "static OFCondition parseSCUSCPRole ( PRV_SCUSCPROLE * role , unsigned char * buf , unsigned long * length , unsigned long availData ) {\n unsigned short UIDLength ;\n if ( availData < 8 ) return makeLengthError ( \"SCU-SCP role list\" , availData , 8 ) ;\n role -> type = * buf ++ ;\n role -> rsv1 = * buf ++ ;\n EXTRACT_SHORT_BIG ( buf , role -> length ) ;\n buf += 2 ;\n EXTRACT_SHORT_BIG ( buf , UIDLength ) ;\n buf += 2 ;\n if ( availData - 4 < role -> length ) return makeLengthError ( \"SCU-SCP role list\" , availData , 0 , role -> length ) ;\n if ( role -> length < 4 ) return makeLengthError ( \"SCU-SCP role list UID\" , role -> length , 4 ) ;\n if ( role -> length - 4 < UIDLength ) return makeLengthError ( \"SCU-SCP role list UID\" , role -> length , 0 , UIDLength ) ;\n ( void ) memcpy ( role -> SOPClassUID , buf , UIDLength ) ;\n role -> SOPClassUID [ UIDLength ] = '\\0' ;\n buf += UIDLength ;\n role -> SCURole = * buf ++ ;\n role -> SCPRole = * buf ++ ;\n * length = 2 + 2 + role -> length ;\n DCMNET_TRACE ( \"Subitem parse: Type \" << STD_NAMESPACE hex << STD_NAMESPACE setfill ( '0' ) << STD_NAMESPACE setw ( 2 ) << ( unsigned int ) role -> type << STD_NAMESPACE dec << \", Length \" << STD_NAMESPACE setw ( 4 ) << ( int ) role -> length << \", Content: \" << role -> SOPClassUID << \" \" << ( int ) role -> SCURole << \" \" << ( int ) role -> SCPRole ) ;\n return EC_Normal ;\n }"}
{"idx": 19743, "target": 0, "func": "static gboolean lacks_link_info ( NautilusFile * file ) {\n if ( file -> details -> file_info_is_up_to_date && ! file -> details -> link_info_is_up_to_date ) {\n if ( nautilus_file_is_nautilus_link ( file ) ) {\n return TRUE ;\n }\n else {\n link_info_done ( file -> details -> directory , file , NULL , NULL , NULL , FALSE , FALSE ) ;\n return FALSE ;\n }\n }\n else {\n return FALSE ;\n }\n }"}
{"idx": 19744, "target": 0, "func": "long ssl3_get_message ( SSL * s , int st1 , int stn , int mt , long max , int * ok ) {\n unsigned char * p ;\n unsigned long l ;\n long n ;\n int i , al ;\n if ( s -> s3 -> tmp . reuse_message ) {\n s -> s3 -> tmp . reuse_message = 0 ;\n if ( ( mt >= 0 ) && ( s -> s3 -> tmp . message_type != mt ) ) {\n al = SSL_AD_UNEXPECTED_MESSAGE ;\n SSLerr ( SSL_F_SSL3_GET_MESSAGE , SSL_R_UNEXPECTED_MESSAGE ) ;\n goto f_err ;\n }\n * ok = 1 ;\n s -> init_msg = s -> init_buf -> data + 4 ;\n s -> init_num = ( int ) s -> s3 -> tmp . message_size ;\n return s -> init_num ;\n }\n p = ( unsigned char * ) s -> init_buf -> data ;\n if ( s -> state == st1 ) {\n int skip_message ;\n do {\n while ( s -> init_num < 4 ) {\n i = s -> method -> ssl_read_bytes ( s , SSL3_RT_HANDSHAKE , & p [ s -> init_num ] , 4 - s -> init_num , 0 ) ;\n if ( i <= 0 ) {\n s -> rwstate = SSL_READING ;\n * ok = 0 ;\n return i ;\n }\n s -> init_num += i ;\n }\n skip_message = 0 ;\n if ( ! s -> server ) if ( p [ 0 ] == SSL3_MT_HELLO_REQUEST ) if ( p [ 1 ] == 0 && p [ 2 ] == 0 && p [ 3 ] == 0 ) {\n s -> init_num = 0 ;\n skip_message = 1 ;\n if ( s -> msg_callback ) s -> msg_callback ( 0 , s -> version , SSL3_RT_HANDSHAKE , p , 4 , s , s -> msg_callback_arg ) ;\n }\n }\n while ( skip_message ) ;\n if ( ( mt >= 0 ) && ( * p != mt ) ) {\n al = SSL_AD_UNEXPECTED_MESSAGE ;\n SSLerr ( SSL_F_SSL3_GET_MESSAGE , SSL_R_UNEXPECTED_MESSAGE ) ;\n goto f_err ;\n }\n if ( ( mt < 0 ) && ( * p == SSL3_MT_CLIENT_HELLO ) && ( st1 == SSL3_ST_SR_CERT_A ) && ( stn == SSL3_ST_SR_CERT_B ) ) {\n ssl3_init_finished_mac ( s ) ;\n }\n s -> s3 -> tmp . message_type = * ( p ++ ) ;\n n2l3 ( p , l ) ;\n if ( l > ( unsigned long ) max ) {\n al = SSL_AD_ILLEGAL_PARAMETER ;\n SSLerr ( SSL_F_SSL3_GET_MESSAGE , SSL_R_EXCESSIVE_MESSAGE_SIZE ) ;\n goto f_err ;\n }\n if ( l > ( INT_MAX - 4 ) ) {\n al = SSL_AD_ILLEGAL_PARAMETER ;\n SSLerr ( SSL_F_SSL3_GET_MESSAGE , SSL_R_EXCESSIVE_MESSAGE_SIZE ) ;\n goto f_err ;\n }\n if ( l && ! BUF_MEM_grow_clean ( s -> init_buf , ( int ) l + 4 ) ) {\n SSLerr ( SSL_F_SSL3_GET_MESSAGE , ERR_R_BUF_LIB ) ;\n goto err ;\n }\n s -> s3 -> tmp . message_size = l ;\n s -> state = stn ;\n s -> init_msg = s -> init_buf -> data + 4 ;\n s -> init_num = 0 ;\n }\n p = s -> init_msg ;\n n = s -> s3 -> tmp . message_size - s -> init_num ;\n while ( n > 0 ) {\n i = s -> method -> ssl_read_bytes ( s , SSL3_RT_HANDSHAKE , & p [ s -> init_num ] , n , 0 ) ;\n if ( i <= 0 ) {\n s -> rwstate = SSL_READING ;\n * ok = 0 ;\n return i ;\n }\n s -> init_num += i ;\n n -= i ;\n }\n # ifndef OPENSSL_NO_NEXTPROTONEG if ( * s -> init_buf -> data == SSL3_MT_FINISHED ) ssl3_take_mac ( s ) ;\n # endif ssl3_finish_mac ( s , ( unsigned char * ) s -> init_buf -> data , s -> init_num + 4 ) ;\n if ( s -> msg_callback ) s -> msg_callback ( 0 , s -> version , SSL3_RT_HANDSHAKE , s -> init_buf -> data , ( size_t ) s -> init_num + 4 , s , s -> msg_callback_arg ) ;\n * ok = 1 ;\n return s -> init_num ;\n f_err : ssl3_send_alert ( s , SSL3_AL_FATAL , al ) ;\n err : * ok = 0 ;\n return ( - 1 ) ;\n }"}
{"idx": 19745, "target": 0, "func": "static void send_raw ( int fd , char * buf , int buflen , int user , int cmd , struct query * q ) {\n char packet [ 4096 ] ;\n int len ;\n len = MIN ( sizeof ( packet ) - RAW_HDR_LEN , buflen ) ;\n memcpy ( packet , raw_header , RAW_HDR_LEN ) ;\n if ( len ) {\n memcpy ( & packet [ RAW_HDR_LEN ] , buf , len ) ;\n }\n len += RAW_HDR_LEN ;\n packet [ RAW_HDR_CMD ] = cmd | ( user & 0x0F ) ;\n if ( debug >= 2 ) {\n fprintf ( stderr , \"TX-raw: client %s, cmd %d, %d bytes\\n\" , format_addr ( & q -> from , q -> fromlen ) , cmd , len ) ;\n }\n sendto ( fd , packet , len , 0 , ( struct sockaddr * ) & q -> from , q -> fromlen ) ;\n }"}
{"idx": 19746, "target": 0, "func": "int32_t jbig2_get_int32 ( const byte * bptr ) {\n return ( ( int32_t ) get_int16 ( bptr ) << 16 ) | get_uint16 ( bptr + 2 ) ;\n }"}
{"idx": 19747, "target": 0, "func": "static void test_1 ( void ) {\n static char * empty_elements [ ] = {\n \"C=de,O=foo,OU=,CN=joe\" , \"C=de,O=foo,OU= ,CN=joe\" , \"C=de,O=foo,OU=\\\"\\\" ,CN=joe\" , \"C=de,O=foo,OU=\" , \"C=de,O=foo,OU= \" , \"C=,O=foo,OU=bar \" , \"C = ,O=foo,OU=bar \" , \"C=\" , NULL }\n ;\n gpg_error_t err ;\n int i ;\n unsigned char * buf ;\n size_t off , len ;\n for ( i = 0 ;\n empty_elements [ i ] ;\n i ++ ) {\n err = ksba_dn_str2der ( empty_elements [ i ] , & buf , & len ) ;\n if ( gpg_err_code ( err ) != GPG_ERR_SYNTAX ) fail ( \"empty element not detected\" ) ;\n err = ksba_dn_teststr ( empty_elements [ i ] , 0 , & off , & len ) ;\n if ( ! err ) fail ( \"ksba_dn_teststr returned no error\" ) ;\n printf ( \"string ->%s<- error at %lu.%lu (%.*s)\\n\" , empty_elements [ i ] , ( unsigned long ) off , ( unsigned long ) len , ( int ) len , empty_elements [ i ] + off ) ;\n xfree ( buf ) ;\n }\n }"}
{"idx": 19748, "target": 0, "func": "static void set_date_time_null ( unsigned char * p ) {\n memset ( p , '0' , 16 ) ;\n p [ 16 ] = 0 ;\n }"}
{"idx": 19749, "target": 0, "func": "static int astream_try_base64_decode_char ( struct attachment_istream_part * part , size_t pos , char chr ) {\n switch ( part -> base64_state ) {\n case BASE64_STATE_0 : if ( base64_is_valid_char ( chr ) ) part -> base64_state ++ ;\n else if ( chr == '\\r' ) part -> base64_state = BASE64_STATE_CR ;\n else if ( chr == '\\n' ) {\n return astream_base64_decode_lf ( part ) ;\n }\n else {\n return - 1 ;\n }\n break ;\n case BASE64_STATE_1 : if ( ! base64_is_valid_char ( chr ) ) return - 1 ;\n part -> base64_state ++ ;\n break ;\n case BASE64_STATE_2 : if ( base64_is_valid_char ( chr ) ) part -> base64_state ++ ;\n else if ( chr == '=' ) part -> base64_state = BASE64_STATE_EOB ;\n else return - 1 ;\n break ;\n case BASE64_STATE_3 : part -> base64_bytes = part -> temp_output -> offset + pos + 1 ;\n if ( base64_is_valid_char ( chr ) ) {\n part -> base64_state = BASE64_STATE_0 ;\n part -> cur_base64_blocks ++ ;\n }\n else if ( chr == '=' ) {\n part -> base64_state = BASE64_STATE_EOM ;\n part -> cur_base64_blocks ++ ;\n if ( part -> cur_base64_blocks > part -> base64_line_blocks && part -> base64_line_blocks > 0 ) {\n return - 1 ;\n }\n return 0 ;\n }\n else {\n return - 1 ;\n }\n break ;\n case BASE64_STATE_CR : if ( chr != '\\n' ) return - 1 ;\n if ( ! part -> base64_have_crlf ) {\n if ( part -> base64_line_blocks != 0 ) {\n return - 1 ;\n }\n part -> base64_have_crlf = TRUE ;\n }\n return astream_base64_decode_lf ( part ) ;\n case BASE64_STATE_EOB : if ( chr != '=' ) return - 1 ;\n part -> base64_bytes = part -> temp_output -> offset + pos + 1 ;\n part -> base64_state = BASE64_STATE_EOM ;\n part -> cur_base64_blocks ++ ;\n if ( part -> cur_base64_blocks > part -> base64_line_blocks && part -> base64_line_blocks > 0 ) {\n return - 1 ;\n }\n return 0 ;\n case BASE64_STATE_EOM : i_unreached ( ) ;\n }\n return 1 ;\n }"}
{"idx": 19750, "target": 0, "func": "static int rfc2047_encode ( const char * d , size_t dlen , int col , const char * fromcode , const char * charsets , char * * e , size_t * elen , const char * specials ) {\n int rc = 0 ;\n char * buf = NULL ;\n size_t bufpos , buflen ;\n char * t0 = NULL , * t1 = NULL , * t = NULL ;\n char * s0 = NULL , * s1 = NULL ;\n size_t ulen , r , wlen = 0 ;\n encoder_t encoder = NULL ;\n char * tocode1 = NULL ;\n const char * tocode = NULL ;\n char * icode = \"utf-8\" ;\n char * u = mutt_str_substr_dup ( d , d + dlen ) ;\n if ( mutt_ch_convert_string ( & u , fromcode , icode , 0 ) != 0 ) {\n rc = 1 ;\n icode = 0 ;\n }\n ulen = mutt_str_strlen ( u ) ;\n s0 = s1 = t0 = t1 = 0 ;\n for ( t = u ;\n t < ( u + ulen ) ;\n t ++ ) {\n if ( ( * t & 0x80 ) || ( ( * t == '=' ) && ( t [ 1 ] == '?' ) && ( ( t == u ) || HSPACE ( * ( t - 1 ) ) ) ) ) {\n if ( ! t0 ) t0 = t ;\n t1 = t ;\n }\n else if ( specials && * t && strchr ( specials , * t ) ) {\n if ( ! s0 ) s0 = t ;\n s1 = t ;\n }\n }\n if ( t0 && s0 && ( s0 < t0 ) ) t0 = s0 ;\n if ( t1 && s1 && ( s1 > t1 ) ) t1 = s1 ;\n if ( ! t0 ) {\n * e = u ;\n * elen = ulen ;\n return rc ;\n }\n tocode = fromcode ;\n if ( icode ) {\n tocode1 = mutt_ch_choose ( icode , charsets , u , ulen , 0 , 0 ) ;\n if ( tocode1 ) tocode = tocode1 ;\n else {\n rc = 2 ;\n icode = 0 ;\n }\n }\n if ( ! icode && mutt_ch_is_us_ascii ( tocode ) ) tocode = \"unknown-8bit\" ;\n t = u + ( ENCWORD_LEN_MAX + 1 ) - col - ENCWORD_LEN_MIN ;\n if ( t < u ) t = u ;\n if ( t < t0 ) t0 = t ;\n for ( ;\n t0 > u ;\n t0 -- ) {\n if ( ! HSPACE ( * ( t0 - 1 ) ) ) continue ;\n t = t0 + 1 ;\n if ( icode ) while ( ( t < ( u + ulen ) ) && CONTINUATION_BYTE ( * t ) ) t ++ ;\n if ( ( try_block ( t0 , t - t0 , icode , tocode , & encoder , & wlen ) == 0 ) && ( ( col + ( t0 - u ) + wlen ) <= ( ENCWORD_LEN_MAX + 1 ) ) ) {\n break ;\n }\n }\n for ( ;\n t1 < ( u + ulen ) ;\n t1 ++ ) {\n if ( ! HSPACE ( * t1 ) ) continue ;\n t = t1 - 1 ;\n if ( icode ) while ( CONTINUATION_BYTE ( * t ) ) t -- ;\n if ( ( try_block ( t , t1 - t , icode , tocode , & encoder , & wlen ) == 0 ) && ( ( 1 + wlen + ( u + ulen - t1 ) ) <= ( ENCWORD_LEN_MAX + 1 ) ) ) {\n break ;\n }\n }\n buflen = 2 * ulen ;\n buf = mutt_mem_malloc ( buflen ) ;\n bufpos = t0 - u ;\n memcpy ( buf , u , t0 - u ) ;\n col += t0 - u ;\n t = t0 ;\n while ( true ) {\n size_t n = choose_block ( t , t1 - t , col , icode , tocode , & encoder , & wlen ) ;\n if ( n == ( t1 - t ) ) {\n if ( ( col + wlen + ( u + ulen - t1 ) ) <= ( ENCWORD_LEN_MAX + 1 ) ) break ;\n n = t1 - t - 1 ;\n if ( icode ) while ( CONTINUATION_BYTE ( t [ n ] ) ) n -- ;\n if ( ! n ) {\n assert ( t1 < ( u + ulen ) ) ;\n for ( t1 ++ ;\n ( t1 < ( u + ulen ) ) && ! HSPACE ( * t1 ) ;\n t1 ++ ) ;\n continue ;\n }\n n = choose_block ( t , n , col , icode , tocode , & encoder , & wlen ) ;\n }\n const char * line_break = \"\\n\\t\" ;\n const int lb_len = 2 ;\n if ( ( bufpos + wlen + lb_len ) > buflen ) {\n buflen = bufpos + wlen + lb_len ;\n mutt_mem_realloc ( & buf , buflen ) ;\n }\n r = encode_block ( buf + bufpos , t , n , icode , tocode , encoder ) ;\n assert ( r == wlen ) ;\n bufpos += wlen ;\n memcpy ( buf + bufpos , line_break , lb_len ) ;\n bufpos += lb_len ;\n col = 1 ;\n t += n ;\n }\n buflen = bufpos + wlen + ( u + ulen - t1 ) ;\n mutt_mem_realloc ( & buf , buflen + 1 ) ;\n r = encode_block ( buf + bufpos , t , t1 - t , icode , tocode , encoder ) ;\n assert ( r == wlen ) ;\n bufpos += wlen ;\n memcpy ( buf + bufpos , t1 , u + ulen - t1 ) ;\n FREE ( & tocode1 ) ;\n FREE ( & u ) ;\n buf [ buflen ] = '\\0' ;\n * e = buf ;\n * elen = buflen + 1 ;\n return rc ;\n }"}
{"idx": 19751, "target": 0, "func": "static void test_bug8330 ( ) {\n const char * stmt_text ;\n MYSQL_STMT * stmt [ 2 ] ;\n int i , rc ;\n const char * query = \"select a,b from t1 where a=?\" ;\n MYSQL_BIND my_bind [ 2 ] ;\n long lval [ 2 ] ;\n myheader ( \"test_bug8330\" ) ;\n stmt_text = \"drop table if exists t1\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n stmt_text = \"create table t1 (a int, b int)\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n for ( i = 0 ;\n i < 2 ;\n i ++ ) {\n stmt [ i ] = mysql_stmt_init ( mysql ) ;\n rc = mysql_stmt_prepare ( stmt [ i ] , query , strlen ( query ) ) ;\n check_execute ( stmt [ i ] , rc ) ;\n my_bind [ i ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ i ] . buffer = ( void * ) & lval [ i ] ;\n my_bind [ i ] . is_null = 0 ;\n mysql_stmt_bind_param ( stmt [ i ] , & my_bind [ i ] ) ;\n }\n rc = mysql_stmt_execute ( stmt [ 0 ] ) ;\n check_execute ( stmt [ 0 ] , rc ) ;\n rc = mysql_stmt_execute ( stmt [ 1 ] ) ;\n DIE_UNLESS ( rc && mysql_stmt_errno ( stmt [ 1 ] ) == CR_COMMANDS_OUT_OF_SYNC ) ;\n rc = mysql_stmt_execute ( stmt [ 0 ] ) ;\n check_execute ( stmt [ 0 ] , rc ) ;\n mysql_stmt_close ( stmt [ 0 ] ) ;\n mysql_stmt_close ( stmt [ 1 ] ) ;\n stmt_text = \"drop table t1\" ;\n rc = mysql_real_query ( mysql , stmt_text , strlen ( stmt_text ) ) ;\n myquery ( rc ) ;\n }"}
{"idx": 19752, "target": 0, "func": "static gboolean confirm_delete_directly ( CommonJob * job , GList * files ) {\n char * prompt ;\n int file_count ;\n int response ;\n if ( ! should_confirm_trash ( ) ) {\n return TRUE ;\n }\n file_count = g_list_length ( files ) ;\n g_assert ( file_count > 0 ) ;\n if ( can_delete_files_without_confirm ( files ) ) {\n return TRUE ;\n }\n if ( file_count == 1 ) {\n prompt = f ( _ ( \"Are you sure you want to permanently delete \u201c%B\u201d?\" ) , files -> data ) ;\n }\n else {\n prompt = f ( ngettext ( \"Are you sure you want to permanently delete \" \"the %'d selected item?\" , \"Are you sure you want to permanently delete \" \"the %'d selected items?\" , file_count ) , file_count ) ;\n }\n response = run_warning ( job , prompt , f ( _ ( \"If you delete an item, it will be permanently lost.\" ) ) , NULL , FALSE , CANCEL , DELETE , NULL ) ;\n return response == 1 ;\n }"}
{"idx": 19753, "target": 0, "func": "static int get_external_ip ( struct in_addr * ip ) {\n int sock ;\n struct addrinfo * addr ;\n int res ;\n const char * getstr = \"GET /ip/ HTTP/1.0\\r\\n\" \"Host: api.externalip.net\\r\\n\\r\\n\" ;\n char buf [ 512 ] ;\n char * b ;\n int len ;\n res = getaddrinfo ( \"api.externalip.net\" , \"80\" , NULL , & addr ) ;\n if ( res < 0 ) return 1 ;\n sock = socket ( addr -> ai_family , addr -> ai_socktype , addr -> ai_protocol ) ;\n if ( sock < 0 ) {\n freeaddrinfo ( addr ) ;\n return 2 ;\n }\n res = connect ( sock , addr -> ai_addr , addr -> ai_addrlen ) ;\n freeaddrinfo ( addr ) ;\n if ( res < 0 ) return 3 ;\n res = write ( sock , getstr , strlen ( getstr ) ) ;\n if ( res != strlen ( getstr ) ) return 4 ;\n memset ( buf , 0 , sizeof ( buf ) ) ;\n res = read ( sock , buf , sizeof ( buf ) - 1 ) ;\n if ( res < 0 ) return 5 ;\n len = res ;\n res = close ( sock ) ;\n if ( res < 0 ) return 6 ;\n b = buf ;\n while ( len > 9 ) {\n if ( strncmp ( \"\\r\\n\\r\\n\" , b , 4 ) == 0 ) break ;\n b ++ ;\n len -- ;\n }\n if ( len < 10 ) return 7 ;\n b += 4 ;\n res = inet_aton ( b , ip ) ;\n return ( res == 0 ) ;\n }"}
{"idx": 19754, "target": 0, "func": "static int dissect_h225_TerminalInfo ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_TerminalInfo , TerminalInfo_sequence ) ;\n return offset ;\n }"}
{"idx": 19755, "target": 0, "func": "static void activation_mount_mountables ( ActivateParameters * parameters ) {\n NautilusFile * file ;\n GMountOperation * mount_op ;\n if ( parameters -> mountables != NULL ) {\n file = parameters -> mountables -> data ;\n mount_op = gtk_mount_operation_new ( parameters -> parent_window ) ;\n g_mount_operation_set_password_save ( mount_op , G_PASSWORD_SAVE_FOR_SESSION ) ;\n g_signal_connect ( mount_op , \"notify::is-showing\" , G_CALLBACK ( activate_mount_op_active ) , parameters ) ;\n nautilus_file_mount ( file , mount_op , parameters -> cancellable , activation_mountable_mounted , parameters ) ;\n g_object_unref ( mount_op ) ;\n return ;\n }\n if ( parameters -> mountables == NULL && parameters -> start_mountables == NULL ) {\n activation_get_activation_uris ( parameters ) ;\n }\n }"}
{"idx": 19756, "target": 0, "func": "TEST_F ( ProcessUtilTest , GetTerminationStatusKill ) {\n const std : : string signal_file = ProcessUtilTest : : GetSignalFilePath ( kSignalFileKill ) ;\n remove ( signal_file . c_str ( ) ) ;\n base : : Process process = SpawnChild ( \"KilledChildProcess\" ) ;\n ASSERT_TRUE ( process . IsValid ( ) ) ;\n int exit_code = 42 ;\n EXPECT_EQ ( base : : TERMINATION_STATUS_STILL_RUNNING , base : : GetTerminationStatus ( process . Handle ( ) , & exit_code ) ) ;\n EXPECT_EQ ( kExpectedStillRunningExitCode , exit_code ) ;\n SignalChildren ( signal_file . c_str ( ) ) ;\n exit_code = 42 ;\n base : : TerminationStatus status = WaitForChildTermination ( process . Handle ( ) , & exit_code ) ;\n EXPECT_EQ ( base : : TERMINATION_STATUS_PROCESS_WAS_KILLED , status ) ;\n # if defined ( OS_WIN ) EXPECT_EQ ( kExpectedKilledExitCode , exit_code ) ;\n # elif defined ( OS_POSIX ) int signaled = WIFSIGNALED ( exit_code ) ;\n EXPECT_NE ( 0 , signaled ) ;\n int signal = WTERMSIG ( exit_code ) ;\n EXPECT_EQ ( SIGKILL , signal ) ;\n # endif remove ( signal_file . c_str ( ) ) ;\n }"}
{"idx": 19757, "target": 0, "func": "static cmsBool WriteOffsetArray ( cmsIOHANDLER * io , _cmsDICarray * a , cmsUInt32Number Count , cmsUInt32Number Length ) {\n cmsUInt32Number i ;\n for ( i = 0 ;\n i < Count ;\n i ++ ) {\n if ( ! WriteOneElem ( io , & a -> Name , i ) ) return FALSE ;\n if ( ! WriteOneElem ( io , & a -> Value , i ) ) return FALSE ;\n if ( Length > 16 ) {\n if ( ! WriteOneElem ( io , & a -> DisplayName , i ) ) return FALSE ;\n }\n if ( Length > 24 ) {\n if ( ! WriteOneElem ( io , & a -> DisplayValue , i ) ) return FALSE ;\n }\n }\n return TRUE ;\n }"}
{"idx": 19758, "target": 0, "func": "static int dissect_h245_LogicalChannelNumber ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 122 \"../../asn1/h245/h245.cnf\" guint32 value ;\n offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 65535U , & value , FALSE ) ;\n h245_lc_temp = value & 0xfff ;\n return offset ;\n }"}
{"idx": 19759, "target": 1, "func": "hb_unicode_funcs_t * hb_icu_get_unicode_funcs ( void ) {\n static const hb_unicode_funcs_t _hb_icu_unicode_funcs = {\n HB_OBJECT_HEADER_STATIC , NULL , true , {\n # define HB_UNICODE_FUNC_IMPLEMENT ( name ) hb_icu_unicode_ ## name , HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS # undef HB_UNICODE_FUNC_IMPLEMENT }\n }\n ;\n # if U_ICU_VERSION_MAJOR_NUM >= 49 if ( ! hb_atomic_ptr_get ( & normalizer ) ) {\n UErrorCode icu_err = U_ZERO_ERROR ;\n hb_atomic_ptr_cmpexch ( & normalizer , NULL , unorm2_getNFCInstance ( & icu_err ) ) ;\n }\n # endif return const_cast < hb_unicode_funcs_t * > ( & _hb_icu_unicode_funcs ) ;\n }"}
{"idx": 19760, "target": 1, "func": "static int com_delimiter ( String * buffer __attribute__ ( ( unused ) ) , char * line ) {\n char buff [ 256 ] , * tmp ;\n strmake_buf ( buff , line ) ;\n tmp = get_arg ( buff , 0 ) ;\n if ( ! tmp || ! * tmp ) {\n put_info ( \"DELIMITER must be followed by a 'delimiter' character or string\" , INFO_ERROR ) ;\n return 0 ;\n }\n else {\n if ( strstr ( tmp , \"\\\\\" ) ) {\n put_info ( \"DELIMITER cannot contain a backslash character\" , INFO_ERROR ) ;\n return 0 ;\n }\n }\n strmake_buf ( delimiter , tmp ) ;\n delimiter_length = ( int ) strlen ( delimiter ) ;\n delimiter_str = delimiter ;\n return 0 ;\n }"}
{"idx": 19761, "target": 0, "func": "static void tb_invalidate_phys_page ( tb_page_addr_t addr , uintptr_t pc , void * puc ) {\n TranslationBlock * tb ;\n PageDesc * p ;\n int n ;\n # ifdef TARGET_HAS_PRECISE_SMC TranslationBlock * current_tb = NULL ;\n CPUState * cpu = current_cpu ;\n CPUArchState * env = NULL ;\n int current_tb_modified = 0 ;\n target_ulong current_pc = 0 ;\n target_ulong current_cs_base = 0 ;\n int current_flags = 0 ;\n # endif addr &= TARGET_PAGE_MASK ;\n p = page_find ( addr >> TARGET_PAGE_BITS ) ;\n if ( ! p ) {\n return ;\n }\n tb = p -> first_tb ;\n # ifdef TARGET_HAS_PRECISE_SMC if ( tb && pc != 0 ) {\n current_tb = tb_find_pc ( pc ) ;\n }\n if ( cpu != NULL ) {\n env = cpu -> env_ptr ;\n }\n # endif while ( tb != NULL ) {\n n = ( uintptr_t ) tb & 3 ;\n tb = ( TranslationBlock * ) ( ( uintptr_t ) tb & ~ 3 ) ;\n # ifdef TARGET_HAS_PRECISE_SMC if ( current_tb == tb && ( current_tb -> cflags & CF_COUNT_MASK ) != 1 ) {\n current_tb_modified = 1 ;\n cpu_restore_state_from_tb ( current_tb , env , pc ) ;\n cpu_get_tb_cpu_state ( env , & current_pc , & current_cs_base , & current_flags ) ;\n }\n # endif tb_phys_invalidate ( tb , addr ) ;\n tb = tb -> page_next [ n ] ;\n }\n p -> first_tb = NULL ;\n # ifdef TARGET_HAS_PRECISE_SMC if ( current_tb_modified ) {\n cpu -> current_tb = NULL ;\n tb_gen_code ( env , current_pc , current_cs_base , current_flags , 1 ) ;\n cpu_resume_from_signal ( env , puc ) ;\n }\n # endif }"}
{"idx": 19762, "target": 1, "func": "static int rpza_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n RpzaContext * s = avctx -> priv_data ;\n int ret ;\n s -> buf = buf ;\n s -> size = buf_size ;\n s -> frame . reference = 1 ;\n s -> frame . buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE ;\n if ( ( ret = avctx -> reget_buffer ( avctx , & s -> frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n rpza_decode_stream ( s ) ;\n * got_frame = 1 ;\n * ( AVFrame * ) data = s -> frame ;\n return buf_size ;\n }"}
{"idx": 19763, "target": 0, "func": "int fz_colorspace_is_cal ( fz_context * ctx , const fz_colorspace * cs ) {\n return cs && ( cs -> flags & FZ_COLORSPACE_IS_CAL ) ;\n }"}
{"idx": 19764, "target": 0, "func": "static int sig_cb ( int operation , ASN1_VALUE * * pval , const ASN1_ITEM * it , void * exarg ) {\n if ( operation == ASN1_OP_NEW_PRE ) {\n DSA_SIG * sig ;\n sig = OPENSSL_malloc ( sizeof ( DSA_SIG ) ) ;\n if ( ! sig ) {\n DSAerr ( DSA_F_SIG_CB , ERR_R_MALLOC_FAILURE ) ;\n return 0 ;\n }\n sig -> r = NULL ;\n sig -> s = NULL ;\n * pval = ( ASN1_VALUE * ) sig ;\n return 2 ;\n }\n return 1 ;\n }"}
{"idx": 19765, "target": 0, "func": "static void invert_quant ( int improved_quant , short * quant , short * shift , short d ) {\n if ( improved_quant ) {\n unsigned t ;\n int l ;\n t = d ;\n for ( l = 0 ;\n t > 1 ;\n l ++ ) t >>= 1 ;\n t = 1 + ( 1 << ( 16 + l ) ) / d ;\n * quant = ( short ) ( t - ( 1 << 16 ) ) ;\n * shift = l ;\n * shift = 1 << ( 16 - * shift ) ;\n }\n else {\n * quant = ( 1 << 16 ) / d ;\n * shift = 0 ;\n * shift = 1 << ( 16 - * shift ) ;\n }\n }"}
{"idx": 19766, "target": 0, "func": "static void encode_wavelet_transform ( VC2EncContext * s ) {\n encode_transform_params ( s ) ;\n avpriv_align_put_bits ( & s -> pb ) ;\n }"}
{"idx": 19767, "target": 1, "func": "static xmlLinkPtr xmlListHigherSearch ( xmlListPtr l , void * data ) {\n xmlLinkPtr lk ;\n if ( l == NULL ) return ( NULL ) ;\n for ( lk = l -> sentinel -> prev ;\n lk != l -> sentinel && l -> linkCompare ( lk -> data , data ) > 0 ;\n lk = lk -> prev ) ;\n return lk ;\n }"}
{"idx": 19768, "target": 0, "func": "static void test_fetch_float ( ) {\n int rc ;\n myheader ( \"test_fetch_float\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_bind_fetch\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_bind_fetch(c1 float(3), \\ c2 float, \\ c3 float unsigned, \\ c4 float, \\ c5 float, \\ c6 float, \\ c7 float(10) unsigned)\" ) ;\n myquery ( rc ) ;\n bind_fetch ( 2 ) ;\n }"}
{"idx": 19769, "target": 0, "func": "RSA * d2i_RSA_PUBKEY_fp ( FILE * fp , RSA * * rsa ) {\n return ASN1_d2i_fp ( ( void * ( * ) ( void ) ) RSA_new , ( D2I_OF ( void ) ) d2i_RSA_PUBKEY , fp , ( void * * ) rsa ) ;\n }"}
{"idx": 19770, "target": 0, "func": "TEST_F ( BrowsingDataRemoverImplTest , RemoveQuotaManagedDataForeverNeither ) {\n # if BUILDFLAG ( ENABLE_EXTENSIONS ) CreateMockPolicy ( ) ;\n # endif BlockUntilBrowsingDataRemoved ( base : : Time ( ) , base : : Time : : Max ( ) , BrowsingDataRemover : : REMOVE_FILE_SYSTEMS | BrowsingDataRemover : : REMOVE_WEBSQL | BrowsingDataRemover : : REMOVE_APPCACHE | BrowsingDataRemover : : REMOVE_SERVICE_WORKERS | BrowsingDataRemover : : REMOVE_CACHE_STORAGE | BrowsingDataRemover : : REMOVE_INDEXEDDB , false ) ;\n EXPECT_EQ ( BrowsingDataRemover : : REMOVE_FILE_SYSTEMS | BrowsingDataRemover : : REMOVE_WEBSQL | BrowsingDataRemover : : REMOVE_APPCACHE | BrowsingDataRemover : : REMOVE_SERVICE_WORKERS | BrowsingDataRemover : : REMOVE_CACHE_STORAGE | BrowsingDataRemover : : REMOVE_INDEXEDDB , GetRemovalMask ( ) ) ;\n EXPECT_EQ ( BrowsingDataHelper : : UNPROTECTED_WEB , GetOriginTypeMask ( ) ) ;\n StoragePartitionRemovalData removal_data = GetStoragePartitionRemovalData ( ) ;\n EXPECT_EQ ( removal_data . remove_mask , StoragePartition : : REMOVE_DATA_MASK_FILE_SYSTEMS | StoragePartition : : REMOVE_DATA_MASK_WEBSQL | StoragePartition : : REMOVE_DATA_MASK_APPCACHE | StoragePartition : : REMOVE_DATA_MASK_SERVICE_WORKERS | StoragePartition : : REMOVE_DATA_MASK_CACHE_STORAGE | StoragePartition : : REMOVE_DATA_MASK_INDEXEDDB ) ;\n EXPECT_EQ ( removal_data . quota_storage_remove_mask , StoragePartition : : QUOTA_MANAGED_STORAGE_MASK_ALL ) ;\n EXPECT_TRUE ( removal_data . origin_matcher . Run ( kOrigin1 , mock_policy ( ) ) ) ;\n EXPECT_TRUE ( removal_data . origin_matcher . Run ( kOrigin2 , mock_policy ( ) ) ) ;\n EXPECT_TRUE ( removal_data . origin_matcher . Run ( kOrigin3 , mock_policy ( ) ) ) ;\n }"}
{"idx": 19771, "target": 0, "func": "tvbuff_t * tvb_uncompress ( tvbuff_t * tvb _U_ , const int offset _U_ , int comprlen _U_ ) {\n return NULL ;\n }"}
{"idx": 19772, "target": 0, "func": "static void interpolate_isp ( double isp_q [ 4 ] [ LP_ORDER ] , const double * isp4_past ) {\n int i , k ;\n for ( k = 0 ;\n k < 3 ;\n k ++ ) {\n float c = isfp_inter [ k ] ;\n for ( i = 0 ;\n i < LP_ORDER ;\n i ++ ) isp_q [ k ] [ i ] = ( 1.0 - c ) * isp4_past [ i ] + c * isp_q [ 3 ] [ i ] ;\n }\n }"}
{"idx": 19773, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , MAYBE_TestIsHandledProtocolWorksOnIOThread ) {\n std : : string scheme ( \"mailto\" ) ;\n ProtocolHandler ph1 = CreateProtocolHandler ( scheme , \"test1\" ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ;\n scoped_ptr < ProtocolHandlerRegistry : : JobInterceptorFactory > interceptor ( registry ( ) -> CreateJobInterceptorFactory ( ) ) ;\n AssertWillHandle ( scheme , true , interceptor . get ( ) ) ;\n }"}
{"idx": 19774, "target": 0, "func": "WRITE_CLASS_ENCODER ( CephXServerChallenge ) struct CephXRequestHeader {\n __u16 request_type ;\n void encode ( bufferlist & bl ) const {\n : : encode ( request_type , bl ) ;\n }\n void decode ( bufferlist : : iterator & bl ) {\n : : decode ( request_type , bl ) ;\n }\n }\n ;\n WRITE_CLASS_ENCODER ( CephXRequestHeader ) struct CephXResponseHeader {\n uint16_t request_type ;\n int32_t status ;\n void encode ( bufferlist & bl ) const {\n : : encode ( request_type , bl ) ;\n : : encode ( status , bl ) ;\n }\n void decode ( bufferlist : : iterator & bl ) {\n : : decode ( request_type , bl ) ;\n : : decode ( status , bl ) ;\n }\n }"}
{"idx": 19775, "target": 0, "func": "int dissect_h225_PublicTypeOfNumber ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_PublicTypeOfNumber , PublicTypeOfNumber_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 19776, "target": 0, "func": "PHP_MINIT_FUNCTION ( uwsgi_php_minit ) {\n php_session_register_module ( & ps_mod_uwsgi ) ;\n struct uwsgi_string_list * usl = uphp . constants ;\n while ( usl ) {\n char * equal = strchr ( usl -> value , '=' ) ;\n if ( equal ) {\n size_t name_len = equal - usl -> value ;\n char * name = usl -> value ;\n char * strval = equal + 1 ;\n equal = NULL ;\n # ifndef UWSGI_PHP7 name_len = name_len + 1 ;\n # endif zend_register_string_constant ( name , name_len , strval , CONST_CS | CONST_PERSISTENT , module_number TSRMLS_CC ) ;\n }\n usl = usl -> next ;\n }\n return SUCCESS ;\n }"}
{"idx": 19777, "target": 0, "func": "static int gs_main_interpret ( gs_main_instance * minst , ref * pref , int user_errors , int * pexit_code , ref * perror_object ) {\n int code ;\n minst -> i_ctx_p -> lib_path = & minst -> lib_path ;\n code = gs_interpret ( & minst -> i_ctx_p , pref , user_errors , pexit_code , perror_object ) ;\n return code ;\n }"}
{"idx": 19778, "target": 0, "func": "static char * get_canonical_locale_name ( int category , const char * locale ) {\n char * save ;\n char * res ;\n save = setlocale ( category , NULL ) ;\n if ( ! save ) pg_fatal ( \"failed to get the current locale\\n\" ) ;\n save = pg_strdup ( save ) ;\n res = setlocale ( category , locale ) ;\n if ( ! res ) pg_fatal ( \"failed to get system locale name for \\\"%s\\\"\\n\" , locale ) ;\n res = pg_strdup ( res ) ;\n if ( ! setlocale ( category , save ) ) pg_fatal ( \"failed to restore old locale \\\"%s\\\"\\n\" , save ) ;\n pg_free ( save ) ;\n return res ;\n }"}
{"idx": 19779, "target": 0, "func": "unsigned int vp9_variance ## W ## x ## H ## _c ( const uint8_t * a , int a_stride , const uint8_t * b , int b_stride , unsigned int * sse ) {\n int sum ;\n variance ( a , a_stride , b , b_stride , W , H , sse , & sum ) ;\n return * sse - ( ( ( int64_t ) sum * sum ) / ( W * H ) ) ;\n \\ }\n # define SUBPIX_VAR ( W , H ) unsigned int vp9_sub_pixel_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp2 , W , dst , dst_stride , sse ) ;\n \\ }\n # define SUBPIX_AVG_VAR ( W , H ) unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 ) VAR ( 8 , 4 ) SUBPIX_VAR ( 8 , 4 ) SUBPIX_AVG_VAR ( 8 , 4 ) VAR ( 8 , 8 ) SUBPIX_VAR ( 8 , 8 ) SUBPIX_AVG_VAR ( 8 , 8 ) VAR ( 8 , 16 ) SUBPIX_VAR ( 8 , 16 ) SUBPIX_AVG_VAR ( 8 , 16 ) VAR ( 16 , 8 )"}
{"idx": 19780, "target": 0, "func": "static int before ( celt x , celt y ) {\n if ( x < y ) return 1 ;\n return 0 ;\n }"}
{"idx": 19781, "target": 0, "func": "void dissect_q931_cause_ie ( tvbuff_t * tvb , int offset , int len , proto_tree * tree , int hf_cause_value , guint8 * cause_value , const value_string * ie_vals ) {\n dissect_q931_cause_ie_with_info ( tvb , offset , len , tree , hf_cause_value , cause_value , ie_vals , NULL ) ;\n }"}
{"idx": 19782, "target": 0, "func": "proto_item * proto_tree_add_debug_text ( proto_tree * tree , const char * format , ... ) {\n proto_item * pi ;\n va_list ap ;\n pi = proto_tree_add_text_node ( tree , NULL , 0 , 0 ) ;\n if ( pi ) {\n va_start ( ap , format ) ;\n proto_tree_set_representation ( pi , format , ap ) ;\n va_end ( ap ) ;\n }\n va_start ( ap , format ) ;\n vprintf ( format , ap ) ;\n va_end ( ap ) ;\n ws_debug_printf ( \"\\n\" ) ;\n return pi ;\n }"}
{"idx": 19783, "target": 0, "func": "gboolean proto_can_match_selected ( field_info * finfo , epan_dissect_t * edt ) {\n return construct_match_selected_string ( finfo , edt , NULL ) ;\n }"}
{"idx": 19784, "target": 0, "func": "static int dissect_btgatt_microbit_accelerometer_data ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , void * data ) {\n btatt_data_t * att_data = ( btatt_data_t * ) data ;\n proto_item * sub_item ;\n proto_tree * sub_tree ;\n gdouble x_axis , y_axis , z_axis ;\n gint offset = 0 ;\n if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) return - 1 ;\n x_axis = ( gdouble ) ( gint ) tvb_get_gint16 ( tvb , offset , ENC_LITTLE_ENDIAN ) / 1000.0 ;\n y_axis = ( gdouble ) ( gint ) tvb_get_gint16 ( tvb , offset + 2 , ENC_LITTLE_ENDIAN ) / 1000.0 ;\n z_axis = ( gdouble ) ( gint ) tvb_get_gint16 ( tvb , offset + 4 , ENC_LITTLE_ENDIAN ) / 1000.0 ;\n sub_item = proto_tree_add_item ( tree , hf_gatt_microbit_accelerometer_data , tvb , 0 , tvb_captured_length ( tvb ) , ENC_NA ) ;\n sub_tree = proto_item_add_subtree ( sub_item , ett_btgatt_microbit_accelerometer ) ;\n proto_item_append_text ( sub_item , \" (X: %f, Y: %f, Z: %f)\" , x_axis , y_axis , z_axis ) ;\n proto_tree_add_double ( sub_tree , hf_gatt_microbit_accelerometer_x , tvb , offset , 2 , x_axis ) ;\n offset += 2 ;\n proto_tree_add_double ( sub_tree , hf_gatt_microbit_accelerometer_y , tvb , offset , 2 , y_axis ) ;\n offset += 2 ;\n proto_tree_add_double ( sub_tree , hf_gatt_microbit_accelerometer_z , tvb , offset , 2 , z_axis ) ;\n offset += 2 ;\n return offset ;\n }"}
{"idx": 19785, "target": 1, "func": "static void _UTF16Reset ( UConverter * cnv , UConverterResetChoice choice ) {\n if ( choice <= UCNV_RESET_TO_UNICODE ) {\n cnv -> mode = 0 ;\n }\n if ( choice != UCNV_RESET_TO_UNICODE ) {\n cnv -> fromUnicodeStatus = UCNV_NEED_TO_WRITE_BOM ;\n }\n }"}
{"idx": 19786, "target": 0, "func": "static uint64_t openpic_gbl_read ( void * opaque , hwaddr addr , unsigned len ) {\n OpenPICState * opp = opaque ;\n uint32_t retval ;\n DPRINTF ( \"%s: addr %#\" HWADDR_PRIx \"\\n\" , __func__ , addr ) ;\n retval = 0xFFFFFFFF ;\n if ( addr & 0xF ) {\n return retval ;\n }\n switch ( addr ) {\n case 0x1000 : retval = opp -> frr ;\n break ;\n case 0x1020 : retval = opp -> gcr ;\n break ;\n case 0x1080 : retval = opp -> vir ;\n break ;\n case 0x1090 : retval = 0x00000000 ;\n break ;\n case 0x00 : retval = opp -> brr1 ;\n break ;\n case 0x40 : case 0x50 : case 0x60 : case 0x70 : case 0x80 : case 0x90 : case 0xA0 : case 0xB0 : retval = openpic_cpu_read_internal ( opp , addr , get_current_cpu ( ) ) ;\n break ;\n case 0x10A0 : case 0x10B0 : case 0x10C0 : case 0x10D0 : {\n int idx ;\n idx = ( addr - 0x10A0 ) >> 4 ;\n retval = read_IRQreg_ivpr ( opp , opp -> irq_ipi0 + idx ) ;\n }\n break ;\n case 0x10E0 : retval = opp -> spve ;\n break ;\n default : break ;\n }\n DPRINTF ( \"%s: => 0x%08x\\n\" , __func__ , retval ) ;\n return retval ;\n }"}
{"idx": 19787, "target": 0, "func": "int parse_CColumnGroup ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree _U_ , const char * fmt , ... ) {\n proto_tree * tree ;\n proto_item * item , * ti ;\n va_list ap ;\n const char * txt ;\n guint32 count , groupPid , i ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CColumnGroup , & item , txt ) ;\n count = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_ccolumngroup_count , tvb , offset , 4 , count ) ;\n offset += 4 ;\n groupPid = tvb_get_letohl ( tvb , offset ) ;\n ti = proto_tree_add_uint ( tree , hf_mswsp_ccolumngroup_grouppid , tvb , offset , 4 , groupPid ) ;\n if ( ( 0xFFFF0000 & groupPid ) == 0x7FFF0000 ) {\n proto_item_append_text ( ti , \" Idx: %u\" , groupPid & 0xFFFF ) ;\n }\n else {\n proto_item_append_text ( ti , \"<Invalid>\" ) ;\n }\n offset += 4 ;\n for ( i = 0 ;\n i < count ;\n i ++ ) {\n guint32 pid , weight ;\n pid = tvb_get_letohl ( tvb , offset ) ;\n weight = tvb_get_letohl ( tvb , offset + 4 ) ;\n proto_tree_add_uint_format ( tree , hf_mswsp_ccolumngroup_pid , tvb , offset , 8 , pid , \"Props[%u]: pid: %u weight: %u\" , i , pid , weight ) ;\n offset += 8 ;\n }\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 19788, "target": 0, "func": "void ps2_write_mouse ( void * opaque , int val ) {\n PS2MouseState * s = ( PS2MouseState * ) opaque ;\n trace_ps2_write_mouse ( opaque , val ) ;\n # ifdef DEBUG_MOUSE printf ( \"kbd: write mouse 0x%02x\\n\" , val ) ;\n # endif switch ( s -> common . write_cmd ) {\n default : case - 1 : if ( s -> mouse_wrap ) {\n if ( val == AUX_RESET_WRAP ) {\n s -> mouse_wrap = 0 ;\n ps2_queue ( & s -> common , AUX_ACK ) ;\n return ;\n }\n else if ( val != AUX_RESET ) {\n ps2_queue ( & s -> common , val ) ;\n return ;\n }\n }\n switch ( val ) {\n case AUX_SET_SCALE11 : s -> mouse_status &= ~ MOUSE_STATUS_SCALE21 ;\n ps2_queue ( & s -> common , AUX_ACK ) ;\n break ;\n case AUX_SET_SCALE21 : s -> mouse_status |= MOUSE_STATUS_SCALE21 ;\n ps2_queue ( & s -> common , AUX_ACK ) ;\n break ;\n case AUX_SET_STREAM : s -> mouse_status &= ~ MOUSE_STATUS_REMOTE ;\n ps2_queue ( & s -> common , AUX_ACK ) ;\n break ;\n case AUX_SET_WRAP : s -> mouse_wrap = 1 ;\n ps2_queue ( & s -> common , AUX_ACK ) ;\n break ;\n case AUX_SET_REMOTE : s -> mouse_status |= MOUSE_STATUS_REMOTE ;\n ps2_queue ( & s -> common , AUX_ACK ) ;\n break ;\n case AUX_GET_TYPE : ps2_queue ( & s -> common , AUX_ACK ) ;\n ps2_queue ( & s -> common , s -> mouse_type ) ;\n break ;\n case AUX_SET_RES : case AUX_SET_SAMPLE : s -> common . write_cmd = val ;\n ps2_queue ( & s -> common , AUX_ACK ) ;\n break ;\n case AUX_GET_SCALE : ps2_queue ( & s -> common , AUX_ACK ) ;\n ps2_queue ( & s -> common , s -> mouse_status ) ;\n ps2_queue ( & s -> common , s -> mouse_resolution ) ;\n ps2_queue ( & s -> common , s -> mouse_sample_rate ) ;\n break ;\n case AUX_POLL : ps2_queue ( & s -> common , AUX_ACK ) ;\n ps2_mouse_send_packet ( s ) ;\n break ;\n case AUX_ENABLE_DEV : s -> mouse_status |= MOUSE_STATUS_ENABLED ;\n ps2_queue ( & s -> common , AUX_ACK ) ;\n break ;\n case AUX_DISABLE_DEV : s -> mouse_status &= ~ MOUSE_STATUS_ENABLED ;\n ps2_queue ( & s -> common , AUX_ACK ) ;\n break ;\n case AUX_SET_DEFAULT : s -> mouse_sample_rate = 100 ;\n s -> mouse_resolution = 2 ;\n s -> mouse_status = 0 ;\n ps2_queue ( & s -> common , AUX_ACK ) ;\n break ;\n case AUX_RESET : s -> mouse_sample_rate = 100 ;\n s -> mouse_resolution = 2 ;\n s -> mouse_status = 0 ;\n s -> mouse_type = 0 ;\n ps2_queue ( & s -> common , AUX_ACK ) ;\n ps2_queue ( & s -> common , 0xaa ) ;\n ps2_queue ( & s -> common , s -> mouse_type ) ;\n break ;\n default : break ;\n }\n break ;\n case AUX_SET_SAMPLE : s -> mouse_sample_rate = val ;\n switch ( s -> mouse_detect_state ) {\n default : case 0 : if ( val == 200 ) s -> mouse_detect_state = 1 ;\n break ;\n case 1 : if ( val == 100 ) s -> mouse_detect_state = 2 ;\n else if ( val == 200 ) s -> mouse_detect_state = 3 ;\n else s -> mouse_detect_state = 0 ;\n break ;\n case 2 : if ( val == 80 ) s -> mouse_type = 3 ;\n s -> mouse_detect_state = 0 ;\n break ;\n case 3 : if ( val == 80 ) s -> mouse_type = 4 ;\n s -> mouse_detect_state = 0 ;\n break ;\n }\n ps2_queue ( & s -> common , AUX_ACK ) ;\n s -> common . write_cmd = - 1 ;\n break ;\n case AUX_SET_RES : s -> mouse_resolution = val ;\n ps2_queue ( & s -> common , AUX_ACK ) ;\n s -> common . write_cmd = - 1 ;\n break ;\n }\n }"}
{"idx": 19789, "target": 0, "func": "void vp9_dec_build_inter_predictors_sb ( MACROBLOCKD * xd , int mi_row , int mi_col , BLOCK_SIZE bsize ) {\n int plane ;\n const int mi_x = mi_col * MI_SIZE ;\n const int mi_y = mi_row * MI_SIZE ;\n for ( plane = 0 ;\n plane < MAX_MB_PLANE ;\n ++ plane ) {\n const BLOCK_SIZE plane_bsize = get_plane_block_size ( bsize , & xd -> plane [ plane ] ) ;\n const int num_4x4_w = num_4x4_blocks_wide_lookup [ plane_bsize ] ;\n const int num_4x4_h = num_4x4_blocks_high_lookup [ plane_bsize ] ;\n const int bw = 4 * num_4x4_w ;\n const int bh = 4 * num_4x4_h ;\n if ( xd -> mi [ 0 ] . src_mi -> mbmi . sb_type < BLOCK_8X8 ) {\n int i = 0 , x , y ;\n assert ( bsize == BLOCK_8X8 ) ;\n for ( y = 0 ;\n y < num_4x4_h ;\n ++ y ) for ( x = 0 ;\n x < num_4x4_w ;\n ++ x ) dec_build_inter_predictors ( xd , plane , i ++ , bw , bh , * x , 4 * y , 4 , 4 , mi_x , mi_y ) ;\n }\n else {\n dec_build_inter_predictors ( xd , plane , 0 , bw , bh , 0 , 0 , bw , bh , mi_x , mi_y ) ;\n }\n }\n }"}
{"idx": 19790, "target": 0, "func": "static void main_external_compression_cleanup ( void ) {\n int i ;\n for ( i = 0 ;\n i < num_subprocs ;\n i += 1 ) {\n if ( ! ext_subprocs [ i ] ) {\n continue ;\n }\n kill ( ext_subprocs [ i ] , SIGTERM ) ;\n ext_subprocs [ i ] = 0 ;\n }\n }"}
{"idx": 19791, "target": 0, "func": "static int dissect_h245_OLC_reverseLogicalChannelParameters ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 194 \"../../asn1/h245/h245.cnf\" upcoming_channel = ( upcoming_olc ) ? & upcoming_olc -> rev_lc : NULL ;\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_OLC_reverseLogicalChannelParameters , OLC_reverseLogicalChannelParameters_sequence ) ;\n if ( upcoming_channel && codec_type ) {\n g_strlcpy ( upcoming_channel -> data_type_str , codec_type , sizeof ( upcoming_channel -> data_type_str ) ) ;\n }\n upcoming_channel = NULL ;\n return offset ;\n }"}
{"idx": 19792, "target": 0, "func": "static int remoteDispatchClientCall ( struct qemud_server * server , struct qemud_client * client , struct qemud_client_message * msg , bool qemu_protocol ) {\n XDR xdr ;\n remote_error rerr ;\n dispatch_args args ;\n dispatch_ret ret ;\n const dispatch_data * data = NULL ;\n int rv = - 1 ;\n unsigned int len ;\n virConnectPtr conn = NULL ;\n memset ( & args , 0 , sizeof args ) ;\n memset ( & ret , 0 , sizeof ret ) ;\n memset ( & rerr , 0 , sizeof rerr ) ;\n if ( msg -> hdr . status != REMOTE_OK ) {\n remoteDispatchFormatError ( & rerr , _ ( \"status (%d) != REMOTE_OK\" ) , ( int ) msg -> hdr . status ) ;\n goto rpc_error ;\n }\n if ( client -> auth ) {\n if ( msg -> hdr . proc != REMOTE_PROC_AUTH_LIST && msg -> hdr . proc != REMOTE_PROC_AUTH_SASL_INIT && msg -> hdr . proc != REMOTE_PROC_AUTH_SASL_START && msg -> hdr . proc != REMOTE_PROC_AUTH_SASL_STEP && msg -> hdr . proc != REMOTE_PROC_AUTH_POLKIT ) {\n remoteDispatchFormatError ( & rerr , \"%s\" , _ ( \"authentication required\" ) ) ;\n goto rpc_error ;\n }\n }\n if ( qemu_protocol ) data = qemuGetDispatchData ( msg -> hdr . proc ) ;\n else data = remoteGetDispatchData ( msg -> hdr . proc ) ;\n if ( ! data ) {\n remoteDispatchFormatError ( & rerr , _ ( \"unknown procedure: %d\" ) , msg -> hdr . proc ) ;\n goto rpc_error ;\n }\n xdrmem_create ( & xdr , msg -> buffer + msg -> bufferOffset , msg -> bufferLength - msg -> bufferOffset , XDR_DECODE ) ;\n if ( ! ( ( data -> args_filter ) ( & xdr , & args ) ) ) {\n xdr_destroy ( & xdr ) ;\n remoteDispatchFormatError ( & rerr , \"%s\" , _ ( \"parse args failed\" ) ) ;\n goto rpc_error ;\n }\n xdr_destroy ( & xdr ) ;\n conn = client -> conn ;\n virMutexUnlock ( & client -> lock ) ;\n rv = ( data -> fn ) ( server , client , conn , & msg -> hdr , & rerr , & args , & ret ) ;\n virMutexLock ( & server -> lock ) ;\n virMutexLock ( & client -> lock ) ;\n virMutexUnlock ( & server -> lock ) ;\n xdr_free ( data -> args_filter , ( char * ) & args ) ;\n if ( rv < 0 ) goto rpc_error ;\n msg -> hdr . type = REMOTE_REPLY ;\n msg -> hdr . status = REMOTE_OK ;\n if ( remoteEncodeClientMessageHeader ( msg ) < 0 ) {\n xdr_free ( data -> ret_filter , ( char * ) & ret ) ;\n remoteDispatchFormatError ( & rerr , \"%s\" , _ ( \"failed to serialize reply header\" ) ) ;\n goto xdr_hdr_error ;\n }\n xdrmem_create ( & xdr , msg -> buffer , msg -> bufferLength , XDR_ENCODE ) ;\n if ( xdr_setpos ( & xdr , msg -> bufferOffset ) == 0 ) {\n remoteDispatchFormatError ( & rerr , \"%s\" , _ ( \"failed to change XDR reply offset\" ) ) ;\n goto xdr_error ;\n }\n if ( ! ( ( data -> ret_filter ) ( & xdr , & ret ) ) ) {\n remoteDispatchFormatError ( & rerr , \"%s\" , _ ( \"failed to serialize reply payload (probable message size limit)\" ) ) ;\n goto xdr_error ;\n }\n msg -> bufferOffset += xdr_getpos ( & xdr ) ;\n len = msg -> bufferOffset ;\n if ( xdr_setpos ( & xdr , 0 ) == 0 ) {\n remoteDispatchFormatError ( & rerr , \"%s\" , _ ( \"failed to change XDR reply offset\" ) ) ;\n goto xdr_error ;\n }\n if ( ! xdr_u_int ( & xdr , & len ) ) {\n remoteDispatchFormatError ( & rerr , \"%s\" , _ ( \"failed to update reply length header\" ) ) ;\n goto xdr_error ;\n }\n xdr_destroy ( & xdr ) ;\n xdr_free ( data -> ret_filter , ( char * ) & ret ) ;\n msg -> bufferLength = len ;\n msg -> bufferOffset = 0 ;\n qemudClientMessageQueuePush ( & client -> tx , msg ) ;\n qemudUpdateClientEvent ( client ) ;\n return 0 ;\n xdr_error : xdr_free ( data -> ret_filter , ( char * ) & ret ) ;\n xdr_destroy ( & xdr ) ;\n xdr_hdr_error : VIR_WARN ( \"Failed to serialize reply for program '%d' proc '%d' as XDR\" , msg -> hdr . prog , msg -> hdr . proc ) ;\n rpc_error : rv = remoteSerializeReplyError ( client , & rerr , & msg -> hdr ) ;\n if ( rv >= 0 ) VIR_FREE ( msg ) ;\n return rv ;\n }"}
{"idx": 19793, "target": 0, "func": "void _mime_parser_init ( MIMEParser * parser ) {\n parser -> m_field = 0 ;\n parser -> m_field_flags = 0 ;\n parser -> m_value = - 1 ;\n }"}
{"idx": 19794, "target": 0, "func": "static Datum ExecEvalWholeRowFast ( WholeRowVarExprState * wrvstate , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n Var * variable = ( Var * ) wrvstate -> xprstate . expr ;\n TupleTableSlot * slot ;\n HeapTupleHeader dtuple ;\n if ( isDone ) * isDone = ExprSingleResult ;\n * isNull = false ;\n switch ( variable -> varno ) {\n case INNER_VAR : slot = econtext -> ecxt_innertuple ;\n break ;\n case OUTER_VAR : slot = econtext -> ecxt_outertuple ;\n break ;\n default : slot = econtext -> ecxt_scantuple ;\n break ;\n }\n if ( wrvstate -> wrv_junkFilter != NULL ) slot = ExecFilterJunk ( wrvstate -> wrv_junkFilter , slot ) ;\n dtuple = DatumGetHeapTupleHeader ( ExecFetchSlotTupleDatum ( slot ) ) ;\n HeapTupleHeaderSetTypeId ( dtuple , wrvstate -> wrv_tupdesc -> tdtypeid ) ;\n HeapTupleHeaderSetTypMod ( dtuple , wrvstate -> wrv_tupdesc -> tdtypmod ) ;\n return PointerGetDatum ( dtuple ) ;\n }"}
{"idx": 19795, "target": 0, "func": "static int encode_frame ( vpx_codec_ctx_t * ctx , const vpx_image_t * img , vpx_codec_pts_t pts , unsigned int duration , vpx_enc_frame_flags_t flags , unsigned int deadline , VpxVideoWriter * writer ) {\n int got_pkts = 0 ;\n vpx_codec_iter_t iter = NULL ;\n const vpx_codec_cx_pkt_t * pkt = NULL ;\n const vpx_codec_err_t res = vpx_codec_encode ( ctx , img , pts , duration , flags , deadline ) ;\n if ( res != VPX_CODEC_OK ) die_codec ( ctx , \"Failed to encode frame.\" ) ;\n while ( ( pkt = vpx_codec_get_cx_data ( ctx , & iter ) ) != NULL ) {\n got_pkts = 1 ;\n if ( pkt -> kind == VPX_CODEC_CX_FRAME_PKT ) {\n const int keyframe = ( pkt -> data . frame . flags & VPX_FRAME_IS_KEY ) != 0 ;\n if ( ! vpx_video_writer_write_frame ( writer , pkt -> data . frame . buf , pkt -> data . frame . sz , pkt -> data . frame . pts ) ) die_codec ( ctx , \"Failed to write compressed frame.\" ) ;\n printf ( keyframe ? \"K\" : \".\" ) ;\n fflush ( stdout ) ;\n }\n }\n return got_pkts ;\n }"}
{"idx": 19796, "target": 0, "func": "void aes_crypt_cbc ( aes_context * ctx , int mode , int length , unsigned char iv [ 16 ] , const unsigned char * input , unsigned char * output ) {\n int i ;\n unsigned char temp [ 16 ] ;\n # if defined ( XYSSL_PADLOCK_C ) && defined ( XYSSL_HAVE_X86 ) if ( padlock_supports ( PADLOCK_ACE ) ) {\n if ( padlock_xcryptcbc ( ctx , mode , length , iv , input , output ) == 0 ) return ;\n }\n # endif if ( mode == AES_DECRYPT ) {\n while ( length > 0 ) {\n memcpy ( temp , input , 16 ) ;\n aes_crypt_ecb ( ctx , mode , input , output ) ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) output [ i ] = ( unsigned char ) ( output [ i ] ^ iv [ i ] ) ;\n memcpy ( iv , temp , 16 ) ;\n input += 16 ;\n output += 16 ;\n length -= 16 ;\n }\n }\n else {\n while ( length > 0 ) {\n for ( i = 0 ;\n i < 16 ;\n i ++ ) output [ i ] = ( unsigned char ) ( input [ i ] ^ iv [ i ] ) ;\n aes_crypt_ecb ( ctx , mode , output , output ) ;\n memcpy ( iv , output , 16 ) ;\n input += 16 ;\n output += 16 ;\n length -= 16 ;\n }\n }\n }"}
{"idx": 19797, "target": 0, "func": "static int set_directory_record ( unsigned char * p , size_t n , struct isoent * isoent , struct iso9660 * iso9660 , enum dir_rec_type t , enum vdd_type vdd_type ) {\n unsigned char * bp ;\n size_t dr_len ;\n size_t fi_len ;\n if ( p != NULL ) {\n switch ( t ) {\n case DIR_REC_VD : dr_len = isoent -> dr_len . vd ;\n break ;\n case DIR_REC_SELF : dr_len = isoent -> dr_len . self ;\n break ;\n case DIR_REC_PARENT : dr_len = isoent -> dr_len . parent ;\n break ;\n case DIR_REC_NORMAL : default : dr_len = isoent -> dr_len . normal ;\n break ;\n }\n if ( dr_len > n ) return ( 0 ) ;\n }\n if ( t == DIR_REC_NORMAL && isoent -> identifier != NULL ) fi_len = isoent -> id_len ;\n else fi_len = 1 ;\n if ( p != NULL ) {\n struct isoent * xisoent ;\n struct isofile * file ;\n unsigned char flag ;\n if ( t == DIR_REC_PARENT ) xisoent = isoent -> parent ;\n else xisoent = isoent ;\n file = isoent -> file ;\n if ( file -> hardlink_target != NULL ) file = file -> hardlink_target ;\n if ( xisoent -> dir ) flag = FILE_FLAG_DIRECTORY ;\n else {\n if ( file -> cur_content -> next != NULL ) flag = FILE_FLAG_MULTI_EXTENT ;\n else flag = 0 ;\n }\n bp = p - 1 ;\n set_num_711 ( bp + 2 , 0 ) ;\n if ( xisoent -> dir ) set_num_733 ( bp + 3 , xisoent -> dir_location ) ;\n else set_num_733 ( bp + 3 , file -> cur_content -> location ) ;\n if ( xisoent -> dir ) set_num_733 ( bp + 11 , xisoent -> dir_block * LOGICAL_BLOCK_SIZE ) ;\n else set_num_733 ( bp + 11 , ( uint32_t ) file -> cur_content -> size ) ;\n set_time_915 ( bp + 19 , archive_entry_mtime ( xisoent -> file -> entry ) ) ;\n bp [ 26 ] = flag ;\n set_num_711 ( bp + 27 , 0 ) ;\n set_num_711 ( bp + 28 , 0 ) ;\n set_num_723 ( bp + 29 , iso9660 -> volume_sequence_number ) ;\n set_num_711 ( bp + 33 , ( unsigned char ) fi_len ) ;\n switch ( t ) {\n case DIR_REC_VD : case DIR_REC_SELF : set_num_711 ( bp + 34 , 0 ) ;\n break ;\n case DIR_REC_PARENT : set_num_711 ( bp + 34 , 1 ) ;\n break ;\n case DIR_REC_NORMAL : if ( isoent -> identifier != NULL ) memcpy ( bp + 34 , isoent -> identifier , fi_len ) ;\n else set_num_711 ( bp + 34 , 0 ) ;\n break ;\n }\n }\n else bp = NULL ;\n dr_len = 33 + fi_len ;\n if ( dr_len & 0x01 ) {\n dr_len ++ ;\n if ( p != NULL ) bp [ dr_len ] = 0 ;\n }\n if ( t == DIR_REC_VD ) {\n if ( p != NULL ) set_num_711 ( p , ( unsigned char ) dr_len ) ;\n else isoent -> dr_len . vd = ( int ) dr_len ;\n return ( ( int ) dr_len ) ;\n }\n if ( iso9660 -> opt . rr && vdd_type != VDD_JOLIET ) dr_len = set_directory_record_rr ( bp , ( int ) dr_len , isoent , iso9660 , t ) ;\n if ( p != NULL ) set_num_711 ( p , ( unsigned char ) dr_len ) ;\n else {\n switch ( t ) {\n case DIR_REC_VD : break ;\n case DIR_REC_SELF : isoent -> dr_len . self = ( int ) dr_len ;\n break ;\n case DIR_REC_PARENT : isoent -> dr_len . parent = ( int ) dr_len ;\n break ;\n case DIR_REC_NORMAL : isoent -> dr_len . normal = ( int ) dr_len ;\n break ;\n }\n }\n return ( ( int ) dr_len ) ;\n }"}
{"idx": 19798, "target": 0, "func": "static const wbxml_decoding * get_wbxml_decoding_from_content_type ( const char * content_type , tvbuff_t * tvb , guint32 offset ) {\n const wbxml_decoding * map = NULL ;\n DebugLog ( ( \"get_wbxml_decoding_from_content_type: content_type = [%s]\\n\" , content_type ) ) ;\n if ( content_type && content_type [ 0 ] ) {\n const wbxml_literal_list * item = content_type_list ;\n while ( item && item -> content_type ) {\n if ( g_ascii_strcasecmp ( content_type , item -> content_type ) == 0 ) {\n if ( item -> discriminator != NULL ) {\n map = item -> discriminator ( tvb , offset ) ;\n }\n if ( map == NULL ) {\n map = item -> map ;\n }\n break ;\n }\n item ++ ;\n }\n }\n return map ;\n }"}
{"idx": 19799, "target": 0, "func": "static void dissect_zcl_scenes_add_scene ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n guint attr_uint ;\n guint8 * attr_string ;\n proto_tree_add_item ( tree , hf_zbee_zcl_scenes_group_id , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_scenes_scene_id , tvb , * offset , 1 , ENC_LITTLE_ENDIAN ) ;\n * offset += 1 ;\n proto_tree_add_item ( tree , hf_zbee_zcl_scenes_transit_time , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;\n * offset += 2 ;\n attr_uint = tvb_get_guint8 ( tvb , * offset ) ;\n if ( attr_uint == 0xff ) attr_uint = 0 ;\n proto_tree_add_uint ( tree , hf_zbee_zcl_scenes_attr_str_len , tvb , * offset , 1 , attr_uint ) ;\n * offset += 1 ;\n attr_string = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , * offset , attr_uint , ENC_ASCII ) ;\n proto_item_append_text ( tree , \", String: %s\" , attr_string ) ;\n proto_tree_add_string ( tree , hf_zbee_zcl_scenes_attr_str , tvb , * offset , attr_uint , attr_string ) ;\n * offset += attr_uint ;\n proto_tree_add_item ( tree , hf_zbee_zcl_scenes_extension_set_field , tvb , * offset , - 1 , ENC_NA ) ;\n }"}
{"idx": 19800, "target": 0, "func": "static void prplcb_conn_report_disconnect_reason ( PurpleConnection * gc , PurpleConnectionError reason , const char * text ) {\n struct im_connection * ic = purple_ic_by_gc ( gc ) ;\n if ( ic != NULL ) {\n imcb_error ( ic , \"%s\" , text ) ;\n }\n }"}
{"idx": 19801, "target": 0, "func": "static gpgme_error_t gpgsm_set_locale ( void * engine , int category , const char * value ) {\n engine_gpgsm_t gpgsm = engine ;\n gpgme_error_t err ;\n char * optstr ;\n char * catstr ;\n if ( 0 ) ;\n # ifdef LC_CTYPE else if ( category == LC_CTYPE ) {\n catstr = \"lc-ctype\" ;\n if ( ! value && gpgsm -> lc_ctype_set ) return gpg_error ( GPG_ERR_INV_VALUE ) ;\n if ( value ) gpgsm -> lc_ctype_set = 1 ;\n }\n # endif # ifdef LC_MESSAGES else if ( category == LC_MESSAGES ) {\n catstr = \"lc-messages\" ;\n if ( ! value && gpgsm -> lc_messages_set ) return gpg_error ( GPG_ERR_INV_VALUE ) ;\n if ( value ) gpgsm -> lc_messages_set = 1 ;\n }\n # endif else return gpg_error ( GPG_ERR_INV_VALUE ) ;\n if ( ! value ) return 0 ;\n if ( asprintf ( & optstr , \"OPTION %s=%s\" , catstr , value ) < 0 ) err = gpg_error_from_syserror ( ) ;\n else {\n err = assuan_transact ( gpgsm -> assuan_ctx , optstr , NULL , NULL , NULL , NULL , NULL , NULL ) ;\n free ( optstr ) ;\n }\n return err ;\n }"}
{"idx": 19802, "target": 1, "func": "static void idct4 ( const int16_t * input , int16_t * output ) {\n int16_t step [ 4 ] ;\n int temp1 , temp2 ;\n temp1 = ( input [ 0 ] + input [ 2 ] ) * cospi_16_64 ;\n temp2 = ( input [ 0 ] - input [ 2 ] ) * cospi_16_64 ;\n step [ 0 ] = dct_const_round_shift ( temp1 ) ;\n step [ 1 ] = dct_const_round_shift ( temp2 ) ;\n temp1 = input [ 1 ] * cospi_24_64 - input [ 3 ] * cospi_8_64 ;\n temp2 = input [ 1 ] * cospi_8_64 + input [ 3 ] * cospi_24_64 ;\n step [ 2 ] = dct_const_round_shift ( temp1 ) ;\n step [ 3 ] = dct_const_round_shift ( temp2 ) ;\n output [ 0 ] = step [ 0 ] + step [ 3 ] ;\n output [ 1 ] = step [ 1 ] + step [ 2 ] ;\n output [ 2 ] = step [ 1 ] - step [ 2 ] ;\n output [ 3 ] = step [ 0 ] - step [ 3 ] ;\n }"}
{"idx": 19803, "target": 0, "func": "static int dissect_h245_MediaPacketizationCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MediaPacketizationCapability , MediaPacketizationCapability_sequence ) ;\n return offset ;\n }"}
{"idx": 19804, "target": 0, "func": "static void free_iax2_info ( gpointer p ) {\n iax2_info_t * ii = ( iax2_info_t * ) p ;\n g_free ( ii ) ;\n }"}
{"idx": 19805, "target": 0, "func": "int jas_image_addcmpt ( jas_image_t * image , int cmptno , jas_image_cmptparm_t * cmptparm ) {\n jas_image_cmpt_t * newcmpt ;\n if ( cmptno < 0 ) cmptno = image -> numcmpts_ ;\n assert ( cmptno >= 0 && cmptno <= image -> numcmpts_ ) ;\n if ( image -> numcmpts_ >= image -> maxcmpts_ ) {\n if ( jas_image_growcmpts ( image , image -> maxcmpts_ + 128 ) ) {\n return - 1 ;\n }\n }\n if ( ! ( newcmpt = jas_image_cmpt_create ( cmptparm -> tlx , cmptparm -> tly , cmptparm -> hstep , cmptparm -> vstep , cmptparm -> width , cmptparm -> height , cmptparm -> prec , cmptparm -> sgnd , 1 ) ) ) {\n return - 1 ;\n }\n if ( cmptno < image -> numcmpts_ ) {\n memmove ( & image -> cmpts_ [ cmptno + 1 ] , & image -> cmpts_ [ cmptno ] , ( image -> numcmpts_ - cmptno ) * sizeof ( jas_image_cmpt_t * ) ) ;\n }\n image -> cmpts_ [ cmptno ] = newcmpt ;\n ++ image -> numcmpts_ ;\n jas_image_setbbox ( image ) ;\n return 0 ;\n }"}
{"idx": 19806, "target": 0, "func": "static void finish_object ( struct object * obj , const char * name , void * cb_data ) {\n struct rev_list_info * info = cb_data ;\n if ( obj -> type == OBJ_BLOB && ! has_object_file ( & obj -> oid ) ) die ( \"missing blob object '%s'\" , oid_to_hex ( & obj -> oid ) ) ;\n if ( info -> revs -> verify_objects && ! obj -> parsed && obj -> type != OBJ_COMMIT ) parse_object ( obj -> oid . hash ) ;\n }"}
{"idx": 19807, "target": 0, "func": "my_bool get_one_option ( int optid , const struct my_option * opt __attribute__ ( ( unused ) ) , char * argument ) {\n switch ( optid ) {\n case OPT_CHARSETS_DIR : strmake_buf ( mysql_charsets_dir , argument ) ;\n charsets_dir = mysql_charsets_dir ;\n break ;\n case OPT_DELIMITER : if ( argument == disabled_my_option ) {\n strmov ( delimiter , DEFAULT_DELIMITER ) ;\n }\n else {\n if ( ! strstr ( argument , \"\\\\\" ) ) {\n strmake_buf ( delimiter , argument ) ;\n }\n else {\n put_info ( \"DELIMITER cannot contain a backslash character\" , INFO_ERROR ) ;\n return 0 ;\n }\n }\n delimiter_length = ( uint ) strlen ( delimiter ) ;\n delimiter_str = delimiter ;\n break ;\n case OPT_LOCAL_INFILE : using_opt_local_infile = 1 ;\n break ;\n case OPT_TEE : if ( argument == disabled_my_option ) {\n if ( opt_outfile ) end_tee ( ) ;\n }\n else init_tee ( argument ) ;\n break ;\n case OPT_PAGER : if ( argument == disabled_my_option ) opt_nopager = 1 ;\n else {\n opt_nopager = 0 ;\n if ( argument && strlen ( argument ) ) {\n default_pager_set = 1 ;\n strmake_buf ( pager , argument ) ;\n strmov ( default_pager , pager ) ;\n }\n else if ( default_pager_set ) strmov ( pager , default_pager ) ;\n else opt_nopager = 1 ;\n }\n break ;\n case OPT_MYSQL_PROTOCOL : # ifndef EMBEDDED_LIBRARY opt_protocol = find_type_or_exit ( argument , & sql_protocol_typelib , opt -> name ) ;\n # endif break ;\n case OPT_SERVER_ARG : # ifdef EMBEDDED_LIBRARY if ( ! embedded_server_arg_count ) {\n embedded_server_arg_count = 1 ;\n embedded_server_args [ 0 ] = ( char * ) \"\" ;\n }\n if ( embedded_server_arg_count == MAX_SERVER_ARGS - 1 || ! ( embedded_server_args [ embedded_server_arg_count ++ ] = my_strdup ( argument , MYF ( MY_FAE ) ) ) ) {\n put_info ( \"Can't use server argument\" , INFO_ERROR ) ;\n return 0 ;\n }\n # else printf ( \"WARNING: --server-arg option not supported in this configuration.\\n\" ) ;\n # endif break ;\n case 'A' : opt_rehash = 0 ;\n break ;\n case 'N' : column_names = 0 ;\n break ;\n case 'e' : status . batch = 1 ;\n status . add_to_history = 0 ;\n if ( ! status . line_buff ) ignore_errors = 0 ;\n if ( ! ( status . line_buff = batch_readline_command ( status . line_buff , argument ) ) ) return 1 ;\n break ;\n case 'o' : if ( argument == disabled_my_option ) one_database = 0 ;\n else one_database = skip_updates = 1 ;\n break ;\n case 'p' : if ( argument == disabled_my_option ) argument = ( char * ) \"\" ;\n if ( argument ) {\n char * start = argument ;\n my_free ( opt_password ) ;\n opt_password = my_strdup ( argument , MYF ( MY_FAE ) ) ;\n while ( * argument ) * argument ++ = 'x' ;\n if ( * start ) start [ 1 ] = 0 ;\n tty_password = 0 ;\n }\n else tty_password = 1 ;\n break ;\n case '#' : DBUG_PUSH ( argument ? argument : default_dbug_option ) ;\n debug_info_flag = 1 ;\n break ;\n case 's' : if ( argument == disabled_my_option ) opt_silent = 0 ;\n else opt_silent ++ ;\n break ;\n case 'v' : if ( argument == disabled_my_option ) verbose = 0 ;\n else verbose ++ ;\n break ;\n case 'B' : status . batch = 1 ;\n status . add_to_history = 0 ;\n set_if_bigger ( opt_silent , 1 ) ;\n break ;\n case 'W' : # ifdef __WIN__ opt_protocol = MYSQL_PROTOCOL_PIPE ;\n # endif break ;\n # include < sslopt - case . h > case 'f' : batch_abort_on_error = 0 ;\n break ;\n case 'V' : usage ( 1 ) ;\n status . exit_status = 0 ;\n mysql_end ( - 1 ) ;\n case 'I' : case '?' : usage ( 0 ) ;\n status . exit_status = 0 ;\n mysql_end ( - 1 ) ;\n }\n return 0 ;\n }"}
{"idx": 19808, "target": 0, "func": "GType hb_gobject_ ## name ## _get_type ( void ) \\ {\n static gsize type_id = 0 ;\n if ( g_once_init_enter ( & type_id ) ) {\n GType id = g_boxed_type_register_static ( g_intern_static_string ( \"hb_\" # name \"_t\" ) , ( GBoxedCopyFunc ) copy_func , ( GBoxedFreeFunc ) free_func ) ;\n g_once_init_leave ( & type_id , id ) ;\n }\n return type_id ;\n \\ }\n # define HB_DEFINE_OBJECT_TYPE ( name ) HB_DEFINE_BOXED_TYPE ( name , hb_ ## name ## _reference , hb_ ## name ## _destroy ) ;\n # define HB_DEFINE_VALUE_TYPE ( name ) static hb_ ## name ## _t * _hb_ ## name ## _reference ( const hb_ ## name ## _t * l ) {\n hb_ ## name ## _t * c = ( hb_ ## name ## _t * ) calloc ( 1 , sizeof ( hb_ ## name ## _t ) ) ;\n if ( unlikely ( ! c ) ) return NULL ;\n * c = * l ;\n return c ;\n }\n static void _hb_ ## name ## _destroy ( hb_ ## name ## _t * l ) {\n free ( l ) ;\n }\n HB_DEFINE_BOXED_TYPE ( name , _hb_ ## name ## _reference , _hb_ ## name ## _destroy ) ;\n HB_DEFINE_OBJECT_TYPE ( buffer ) HB_DEFINE_OBJECT_TYPE ( blob ) HB_DEFINE_OBJECT_TYPE ( face ) HB_DEFINE_OBJECT_TYPE ( font ) HB_DEFINE_OBJECT_TYPE ( font_funcs ) HB_DEFINE_OBJECT_TYPE ( set ) HB_DEFINE_OBJECT_TYPE ( shape_plan ) HB_DEFINE_OBJECT_TYPE ( unicode_funcs ) HB_DEFINE_VALUE_TYPE ( feature ) HB_DEFINE_VALUE_TYPE ( glyph_info ) HB_DEFINE_VALUE_TYPE ( glyph_position ) HB_DEFINE_VALUE_TYPE ( segment_properties )"}
{"idx": 19809, "target": 0, "func": "static void write_slice_end ( MpegEncContext * s ) {\n if ( CONFIG_MPEG4_ENCODER && s -> codec_id == AV_CODEC_ID_MPEG4 ) {\n if ( s -> partitioned_frame ) {\n ff_mpeg4_merge_partitions ( s ) ;\n }\n ff_mpeg4_stuffing ( & s -> pb ) ;\n }\n else if ( CONFIG_MJPEG_ENCODER && s -> out_format == FMT_MJPEG ) {\n ff_mjpeg_encode_stuffing ( & s -> pb ) ;\n }\n avpriv_align_put_bits ( & s -> pb ) ;\n flush_put_bits ( & s -> pb ) ;\n if ( ( s -> flags & CODEC_FLAG_PASS1 ) && ! s -> partitioned_frame ) s -> misc_bits += get_bits_diff ( s ) ;\n }"}
{"idx": 19810, "target": 0, "func": "static void get_info_state_free ( GetInfoState * state ) {\n g_object_unref ( state -> cancellable ) ;\n g_free ( state ) ;\n }"}
{"idx": 19811, "target": 0, "func": "static void pxa2xx_i2c_write ( void * opaque , hwaddr addr , uint64_t value64 , unsigned size ) {\n PXA2xxI2CState * s = ( PXA2xxI2CState * ) opaque ;\n uint32_t value = value64 ;\n int ack ;\n addr -= s -> offset ;\n switch ( addr ) {\n case ICR : s -> control = value & 0xfff7 ;\n if ( ( value & ( 1 << 3 ) ) && ( value & ( 1 << 6 ) ) ) {\n if ( value & ( 1 << 0 ) ) {\n if ( s -> data & 1 ) s -> status |= 1 << 0 ;\n else s -> status &= ~ ( 1 << 0 ) ;\n ack = ! i2c_start_transfer ( s -> bus , s -> data >> 1 , s -> data & 1 ) ;\n }\n else {\n if ( s -> status & ( 1 << 0 ) ) {\n s -> data = i2c_recv ( s -> bus ) ;\n if ( value & ( 1 << 2 ) ) i2c_nack ( s -> bus ) ;\n ack = 1 ;\n }\n else ack = ! i2c_send ( s -> bus , s -> data ) ;\n }\n if ( value & ( 1 << 1 ) ) i2c_end_transfer ( s -> bus ) ;\n if ( ack ) {\n if ( value & ( 1 << 0 ) ) s -> status |= 1 << 6 ;\n else if ( s -> status & ( 1 << 0 ) ) s -> status |= 1 << 7 ;\n else s -> status |= 1 << 6 ;\n s -> status &= ~ ( 1 << 1 ) ;\n }\n else {\n s -> status |= 1 << 6 ;\n s -> status |= 1 << 10 ;\n s -> status |= 1 << 1 ;\n }\n }\n if ( ! ( value & ( 1 << 3 ) ) && ( value & ( 1 << 6 ) ) ) if ( value & ( 1 << 4 ) ) i2c_end_transfer ( s -> bus ) ;\n pxa2xx_i2c_update ( s ) ;\n break ;\n case ISR : s -> status &= ~ ( value & 0x07f0 ) ;\n pxa2xx_i2c_update ( s ) ;\n break ;\n case ISAR : i2c_set_slave_address ( & s -> slave -> i2c , value & 0x7f ) ;\n break ;\n case IDBR : s -> data = value & 0xff ;\n break ;\n default : printf ( \"%s: Bad register \" REG_FMT \"\\n\" , __FUNCTION__ , addr ) ;\n }\n }"}
{"idx": 19812, "target": 0, "func": "static TRBCCode xhci_reset_slot ( XHCIState * xhci , unsigned int slotid ) {\n uint32_t slot_ctx [ 4 ] ;\n dma_addr_t octx ;\n int i ;\n trace_usb_xhci_slot_reset ( slotid ) ;\n assert ( slotid >= 1 && slotid <= xhci -> numslots ) ;\n octx = xhci -> slots [ slotid - 1 ] . ctx ;\n DPRINTF ( \"xhci: output context at \" DMA_ADDR_FMT \"\\n\" , octx ) ;\n for ( i = 2 ;\n i <= 31 ;\n i ++ ) {\n if ( xhci -> slots [ slotid - 1 ] . eps [ i - 1 ] ) {\n xhci_disable_ep ( xhci , slotid , i ) ;\n }\n }\n xhci_dma_read_u32s ( xhci , octx , slot_ctx , sizeof ( slot_ctx ) ) ;\n slot_ctx [ 3 ] &= ~ ( SLOT_STATE_MASK << SLOT_STATE_SHIFT ) ;\n slot_ctx [ 3 ] |= SLOT_DEFAULT << SLOT_STATE_SHIFT ;\n DPRINTF ( \"xhci: output slot context: %08x %08x %08x %08x\\n\" , slot_ctx [ 0 ] , slot_ctx [ 1 ] , slot_ctx [ 2 ] , slot_ctx [ 3 ] ) ;\n xhci_dma_write_u32s ( xhci , octx , slot_ctx , sizeof ( slot_ctx ) ) ;\n return CC_SUCCESS ;\n }"}
{"idx": 19813, "target": 0, "func": "static uint32_t e1000e_mac_read_clr8 ( E1000ECore * core , int index ) {\n uint32_t ret = core -> mac [ index ] ;\n core -> mac [ index ] = 0 ;\n core -> mac [ index - 1 ] = 0 ;\n return ret ;\n }"}
{"idx": 19814, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( MimeHandlerViewTest , Abort ) {\n RunTest ( \"testAbort.csv\" ) ;\n }"}
{"idx": 19815, "target": 0, "func": "int gs_main_run_string_with_length ( gs_main_instance * minst , const char * str , uint length , int user_errors , int * pexit_code , ref * perror_object ) {\n int code ;\n code = gs_main_run_string_begin ( minst , user_errors , pexit_code , perror_object ) ;\n if ( code < 0 ) return code ;\n code = gs_main_run_string_continue ( minst , str , length , user_errors , pexit_code , perror_object ) ;\n if ( code != gs_error_NeedInput ) return code ;\n return gs_main_run_string_end ( minst , user_errors , pexit_code , perror_object ) ;\n }"}
{"idx": 19816, "target": 0, "func": "static uint32_t e1000e_mac_icr_read ( E1000ECore * core , int index ) {\n uint32_t ret = core -> mac [ ICR ] ;\n trace_e1000e_irq_icr_read_entry ( ret ) ;\n if ( core -> mac [ IMS ] == 0 ) {\n trace_e1000e_irq_icr_clear_zero_ims ( ) ;\n core -> mac [ ICR ] = 0 ;\n }\n if ( ( core -> mac [ ICR ] & E1000_ICR_ASSERTED ) && ( core -> mac [ CTRL_EXT ] & E1000_CTRL_EXT_IAME ) ) {\n trace_e1000e_irq_icr_clear_iame ( ) ;\n core -> mac [ ICR ] = 0 ;\n trace_e1000e_irq_icr_process_iame ( ) ;\n e1000e_clear_ims_bits ( core , core -> mac [ IAM ] ) ;\n }\n trace_e1000e_irq_icr_read_exit ( core -> mac [ ICR ] ) ;\n e1000e_update_interrupt_state ( core ) ;\n return ret ;\n }"}
{"idx": 19817, "target": 0, "func": "static void srec_init ( void ) {\n static bfd_boolean inited = FALSE ;\n if ( ! inited ) {\n inited = TRUE ;\n hex_init ( ) ;\n }\n }"}
{"idx": 19818, "target": 1, "func": "static __inline__ __u16 __fswab16 ( __u16 val ) {\n # if defined ( __arch_swab16 ) return __arch_swab16 ( val ) ;\n # else return ___constant_swab16 ( val ) ;\n # endif }"}
{"idx": 19819, "target": 1, "func": "libc_hidden_proto ( __printf_fp ) extern unsigned int __guess_grouping ( unsigned int intdig_max , const char * grouping , wchar_t sepchar ) ;\n ssize_t __vstrfmon_l ( char * s , size_t maxsize , __locale_t loc , const char * format , va_list ap ) {\n struct locale_data * current = loc -> __locales [ LC_MONETARY ] ;\n _IO_strfile f ;\n # ifdef _IO_MTSAFE_IO _IO_lock_t lock ;\n # endif struct printf_info info ;\n char * dest ;\n const char * fmt ;\n dest = s ;\n fmt = format ;\n while ( * fmt != '\\0' ) {\n union {\n double dbl ;\n __long_double_t ldbl ;\n }\n fpnum ;\n int int_format ;\n int print_curr_symbol ;\n int left_prec ;\n int left_pad ;\n int right_prec ;\n int group ;\n char pad ;\n int is_long_double ;\n int p_sign_posn ;\n int n_sign_posn ;\n int sign_posn ;\n int other_sign_posn ;\n int left ;\n int is_negative ;\n int sep_by_space ;\n int other_sep_by_space ;\n int cs_precedes ;\n int other_cs_precedes ;\n const char * sign_string ;\n const char * other_sign_string ;\n int done ;\n const char * currency_symbol ;\n size_t currency_symbol_len ;\n int width ;\n char * startp ;\n const void * ptr ;\n char space_char ;\n if ( * fmt != '%' ) {\n out_char ( * fmt ++ ) ;\n continue ;\n }\n if ( fmt [ 1 ] == '%' ) {\n out_char ( * ++ fmt ) ;\n ++ fmt ;\n continue ;\n }\n int_format = 0 ;\n print_curr_symbol = 1 ;\n left_prec = - 1 ;\n right_prec = - 1 ;\n group = 1 ;\n pad = ' ' ;\n is_long_double = 0 ;\n p_sign_posn = - 1 ;\n n_sign_posn = - 1 ;\n width = - 1 ;\n left = 0 ;\n while ( 1 ) {\n switch ( * ++ fmt ) {\n case '=' : pad = * ++ fmt ;\n if ( pad == '\\0' ) {\n __set_errno ( EINVAL ) ;\n return - 1 ;\n }\n continue ;\n case '^' : group = 0 ;\n continue ;\n case '+' : if ( n_sign_posn != - 1 ) {\n __set_errno ( EINVAL ) ;\n return - 1 ;\n }\n p_sign_posn = * _NL_CURRENT ( LC_MONETARY , P_SIGN_POSN ) ;\n n_sign_posn = * _NL_CURRENT ( LC_MONETARY , N_SIGN_POSN ) ;\n continue ;\n case '(' : if ( n_sign_posn != - 1 ) {\n __set_errno ( EINVAL ) ;\n return - 1 ;\n }\n p_sign_posn = 0 ;\n n_sign_posn = 0 ;\n continue ;\n case '!' : print_curr_symbol = 0 ;\n continue ;\n case '-' : left = 1 ;\n continue ;\n default : ;\n }\n break ;\n }\n if ( isdigit ( * fmt ) ) {\n width = to_digit ( * fmt ) ;\n while ( isdigit ( * ++ fmt ) ) {\n width *= 10 ;\n width += to_digit ( * fmt ) ;\n }\n if ( dest + width >= s + maxsize ) {\n __set_errno ( E2BIG ) ;\n return - 1 ;\n }\n }\n if ( * fmt == '#' ) {\n if ( ! isdigit ( * ++ fmt ) ) {\n __set_errno ( EINVAL ) ;\n return - 1 ;\n }\n left_prec = to_digit ( * fmt ) ;\n while ( isdigit ( * ++ fmt ) ) {\n left_prec *= 10 ;\n left_prec += to_digit ( * fmt ) ;\n }\n }\n if ( * fmt == '.' ) {\n if ( ! isdigit ( * ++ fmt ) ) {\n __set_errno ( EINVAL ) ;\n return - 1 ;\n }\n right_prec = to_digit ( * fmt ) ;\n while ( isdigit ( * ++ fmt ) ) {\n right_prec *= 10 ;\n right_prec += to_digit ( * fmt ) ;\n }\n }\n if ( * fmt == 'L' ) {\n ++ fmt ;\n if ( ! __ldbl_is_dbl ) is_long_double = 1 ;\n }\n char int_symbol [ 4 ] ;\n switch ( * fmt ++ ) {\n case 'i' : {\n const char * int_curr_symbol ;\n int_curr_symbol = _NL_CURRENT ( LC_MONETARY , INT_CURR_SYMBOL ) ;\n strncpy ( int_symbol , int_curr_symbol , 3 ) ;\n int_symbol [ 3 ] = '\\0' ;\n currency_symbol_len = 3 ;\n currency_symbol = & int_symbol [ 0 ] ;\n space_char = int_curr_symbol [ 3 ] ;\n int_format = 1 ;\n break ;\n }\n case 'n' : currency_symbol = _NL_CURRENT ( LC_MONETARY , CURRENCY_SYMBOL ) ;\n currency_symbol_len = strlen ( currency_symbol ) ;\n space_char = ' ' ;\n int_format = 0 ;\n break ;\n default : __set_errno ( EINVAL ) ;\n return - 1 ;\n }\n if ( p_sign_posn == - 1 ) p_sign_posn = * _NL_CURRENT ( LC_MONETARY , int_format ? INT_P_SIGN_POSN : P_SIGN_POSN ) ;\n if ( n_sign_posn == - 1 ) n_sign_posn = * _NL_CURRENT ( LC_MONETARY , int_format ? INT_N_SIGN_POSN : N_SIGN_POSN ) ;\n if ( right_prec == - 1 ) {\n right_prec = * _NL_CURRENT ( LC_MONETARY , int_format ? INT_FRAC_DIGITS : FRAC_DIGITS ) ;\n if ( right_prec == CHAR_MAX ) right_prec = 2 ;\n }\n if ( group && left_prec != - 1 ) left_prec += __guess_grouping ( left_prec , _NL_CURRENT ( LC_MONETARY , MON_GROUPING ) , * _NL_CURRENT ( LC_MONETARY , MON_THOUSANDS_SEP ) ) ;\n if ( is_long_double == 1 ) {\n fpnum . ldbl = va_arg ( ap , long double ) ;\n is_negative = fpnum . ldbl < 0 ;\n if ( is_negative ) fpnum . ldbl = - fpnum . ldbl ;\n }\n else {\n fpnum . dbl = va_arg ( ap , double ) ;\n is_negative = fpnum . dbl < 0 ;\n if ( is_negative ) fpnum . dbl = - fpnum . dbl ;\n }\n if ( is_negative ) {\n sign_string = _NL_CURRENT ( LC_MONETARY , NEGATIVE_SIGN ) ;\n if ( * sign_string == '\\0' ) sign_string = ( const char * ) \"-\" ;\n cs_precedes = * _NL_CURRENT ( LC_MONETARY , int_format ? INT_N_CS_PRECEDES : N_CS_PRECEDES ) ;\n sep_by_space = * _NL_CURRENT ( LC_MONETARY , int_format ? INT_N_SEP_BY_SPACE : N_SEP_BY_SPACE ) ;\n sign_posn = n_sign_posn ;\n other_sign_string = _NL_CURRENT ( LC_MONETARY , POSITIVE_SIGN ) ;\n other_cs_precedes = * _NL_CURRENT ( LC_MONETARY , int_format ? INT_P_CS_PRECEDES : P_CS_PRECEDES ) ;\n other_sep_by_space = * _NL_CURRENT ( LC_MONETARY , int_format ? INT_P_SEP_BY_SPACE : P_SEP_BY_SPACE ) ;\n other_sign_posn = p_sign_posn ;\n }\n else {\n sign_string = _NL_CURRENT ( LC_MONETARY , POSITIVE_SIGN ) ;\n cs_precedes = * _NL_CURRENT ( LC_MONETARY , int_format ? INT_P_CS_PRECEDES : P_CS_PRECEDES ) ;\n sep_by_space = * _NL_CURRENT ( LC_MONETARY , int_format ? INT_P_SEP_BY_SPACE : P_SEP_BY_SPACE ) ;\n sign_posn = p_sign_posn ;\n other_sign_string = _NL_CURRENT ( LC_MONETARY , NEGATIVE_SIGN ) ;\n if ( * other_sign_string == '\\0' ) other_sign_string = ( const char * ) \"-\" ;\n other_cs_precedes = * _NL_CURRENT ( LC_MONETARY , int_format ? INT_N_CS_PRECEDES : N_CS_PRECEDES ) ;\n other_sep_by_space = * _NL_CURRENT ( LC_MONETARY , int_format ? INT_N_SEP_BY_SPACE : N_SEP_BY_SPACE ) ;\n other_sign_posn = n_sign_posn ;\n }\n if ( cs_precedes != 0 ) cs_precedes = 1 ;\n if ( other_cs_precedes != 0 ) other_cs_precedes = 1 ;\n if ( sep_by_space == CHAR_MAX ) sep_by_space = 0 ;\n if ( other_sep_by_space == CHAR_MAX ) other_sep_by_space = 0 ;\n if ( sign_posn == CHAR_MAX ) sign_posn = 1 ;\n if ( other_sign_posn == CHAR_MAX ) other_sign_posn = 1 ;\n if ( sep_by_space == 2 ) {\n if ( sign_posn == 0 || ( sign_posn == 1 && ! cs_precedes ) || ( sign_posn == 2 && cs_precedes ) ) sep_by_space = 0 ;\n }\n if ( other_sep_by_space == 2 ) {\n if ( other_sign_posn == 0 || ( other_sign_posn == 1 && ! other_cs_precedes ) || ( other_sign_posn == 2 && other_cs_precedes ) ) other_sep_by_space = 0 ;\n }\n if ( left_prec == - 1 ) {\n left_prec = 0 ;\n left_pad = 0 ;\n }\n else {\n int left_bytes = 0 ;\n int other_left_bytes = 0 ;\n if ( cs_precedes ) {\n left_bytes += currency_symbol_len ;\n if ( sep_by_space != 0 ) ++ left_bytes ;\n }\n if ( other_cs_precedes ) {\n other_left_bytes += currency_symbol_len ;\n if ( other_sep_by_space != 0 ) ++ other_left_bytes ;\n }\n if ( sign_posn == 0 && is_negative ) ++ left_bytes ;\n else if ( sign_posn == 1 ) left_bytes += strlen ( sign_string ) ;\n else if ( cs_precedes && ( sign_posn == 3 || sign_posn == 4 ) ) left_bytes += strlen ( sign_string ) ;\n if ( other_sign_posn == 0 && ! is_negative ) ++ other_left_bytes ;\n else if ( other_sign_posn == 1 ) other_left_bytes += strlen ( other_sign_string ) ;\n else if ( other_cs_precedes && ( other_sign_posn == 3 || other_sign_posn == 4 ) ) other_left_bytes += strlen ( other_sign_string ) ;\n if ( other_left_bytes > left_bytes ) left_pad = other_left_bytes - left_bytes ;\n else left_pad = 0 ;\n }\n # define left_paren '(' # define right_paren ')' startp = dest ;\n while ( left_pad -- > 0 ) out_char ( ' ' ) ;\n if ( sign_posn == 0 && is_negative ) out_char ( left_paren ) ;\n if ( cs_precedes ) {\n if ( sign_posn != 0 && sign_posn != 2 && sign_posn != 4 && sign_posn != 5 ) {\n out_string ( sign_string ) ;\n if ( sep_by_space == 2 ) out_char ( ' ' ) ;\n }\n if ( print_curr_symbol ) out_string ( currency_symbol ) ;\n if ( sign_posn == 4 ) {\n if ( print_curr_symbol && sep_by_space == 2 ) out_char ( space_char ) ;\n out_string ( sign_string ) ;\n if ( sep_by_space == 1 ) out_char ( ' ' ) ;\n }\n else if ( print_curr_symbol && sep_by_space == 1 ) out_char ( space_char ) ;\n }\n else if ( sign_posn != 0 && sign_posn != 2 && sign_posn != 3 && sign_posn != 4 && sign_posn != 5 ) out_string ( sign_string ) ;\n # ifdef _IO_MTSAFE_IO f . _sbf . _f . _lock = & lock ;\n # endif INTUSE ( _IO_init ) ( ( _IO_FILE * ) & f , 0 ) ;\n _IO_JUMPS ( ( struct _IO_FILE_plus * ) & f ) = & _IO_str_jumps ;\n INTUSE ( _IO_str_init_static ) ( ( _IO_strfile * ) & f , dest , ( s + maxsize ) - dest , dest ) ;\n s [ maxsize - 1 ] = '\\0' ;\n memset ( & info , '\\0' , sizeof ( info ) ) ;\n info . prec = right_prec ;\n info . width = left_prec + ( right_prec ? ( right_prec + 1 ) : 0 ) ;\n info . spec = 'f' ;\n info . is_long_double = is_long_double ;\n info . group = group ;\n info . pad = pad ;\n info . extra = 1 ;\n ptr = & fpnum ;\n done = __printf_fp ( ( FILE * ) & f , & info , & ptr ) ;\n if ( done < 0 ) return - 1 ;\n if ( s [ maxsize - 1 ] != '\\0' ) {\n __set_errno ( E2BIG ) ;\n return - 1 ;\n }\n dest += done ;\n if ( ! cs_precedes ) {\n if ( sign_posn == 3 ) {\n if ( sep_by_space == 1 ) out_char ( ' ' ) ;\n out_string ( sign_string ) ;\n }\n if ( print_curr_symbol ) {\n if ( ( sign_posn == 3 && sep_by_space == 2 ) || ( sign_posn == 4 && sep_by_space == 1 ) || ( sign_posn == 2 && sep_by_space == 1 ) || ( sign_posn == 1 && sep_by_space == 1 ) || ( sign_posn == 0 && sep_by_space == 1 ) ) out_char ( space_char ) ;\n out_nstring ( currency_symbol , currency_symbol_len ) ;\n }\n if ( sign_posn == 4 ) {\n if ( sep_by_space == 2 ) out_char ( ' ' ) ;\n out_string ( sign_string ) ;\n }\n }\n if ( sign_posn == 2 ) {\n if ( sep_by_space == 2 ) out_char ( ' ' ) ;\n out_string ( sign_string ) ;\n }\n if ( sign_posn == 0 && is_negative ) out_char ( right_paren ) ;\n if ( dest - startp < width ) {\n if ( left ) do out_char ( ' ' ) ;\n while ( dest - startp < width ) ;\n else {\n int dist = width - ( dest - startp ) ;\n char * cp ;\n for ( cp = dest - 1 ;\n cp >= startp ;\n -- cp ) cp [ dist ] = cp [ 0 ] ;\n dest += dist ;\n do startp [ -- dist ] = ' ' ;\n while ( dist > 0 ) ;\n }\n }\n }\n * dest = '\\0' ;\n return dest - s ;\n }"}
{"idx": 19820, "target": 0, "func": "static inline const unsigned char * PushFloatPixel ( QuantumInfo * quantum_info , const unsigned char * magick_restrict pixels , float * pixel ) {\n float * p ;\n unsigned char quantum [ 4 ] ;\n if ( quantum_info -> endian == LSBEndian ) {\n quantum [ 0 ] = ( * pixels ++ ) ;\n quantum [ 1 ] = ( * pixels ++ ) ;\n quantum [ 2 ] = ( * pixels ++ ) ;\n quantum [ 3 ] = ( * pixels ++ ) ;\n p = ( float * ) quantum ;\n * pixel = ( * p ) ;\n * pixel -= quantum_info -> minimum ;\n * pixel *= quantum_info -> scale ;\n return ( pixels ) ;\n }\n quantum [ 3 ] = ( * pixels ++ ) ;\n quantum [ 2 ] = ( * pixels ++ ) ;\n quantum [ 1 ] = ( * pixels ++ ) ;\n quantum [ 0 ] = ( * pixels ++ ) ;\n p = ( float * ) quantum ;\n * pixel = ( * p ) ;\n * pixel -= quantum_info -> minimum ;\n * pixel *= quantum_info -> scale ;\n return ( pixels ) ;\n }"}
{"idx": 19821, "target": 1, "func": "static void duplicate_mode_info_in_sb ( VP9_COMMON * cm , MACROBLOCKD * xd , int mi_row , int mi_col , BLOCK_SIZE bsize ) {\n const int block_width = num_8x8_blocks_wide_lookup [ bsize ] ;\n const int block_height = num_8x8_blocks_high_lookup [ bsize ] ;\n int i , j ;\n for ( j = 0 ;\n j < block_height ;\n ++ j ) for ( i = 0 ;\n i < block_width ;\n ++ i ) {\n if ( mi_row + j < cm -> mi_rows && mi_col + i < cm -> mi_cols ) xd -> mi [ j * xd -> mi_stride + i ] = xd -> mi [ 0 ] ;\n }\n }"}
{"idx": 19822, "target": 0, "func": "int rawv6_rcv ( struct sock * sk , struct sk_buff * skb ) {\n struct inet_sock * inet = inet_sk ( sk ) ;\n struct raw6_sock * rp = raw6_sk ( sk ) ;\n if ( ! xfrm6_policy_check ( sk , XFRM_POLICY_IN , skb ) ) {\n atomic_inc ( & sk -> sk_drops ) ;\n kfree_skb ( skb ) ;\n return NET_RX_DROP ;\n }\n if ( ! rp -> checksum ) skb -> ip_summed = CHECKSUM_UNNECESSARY ;\n if ( skb -> ip_summed == CHECKSUM_COMPLETE ) {\n skb_postpull_rcsum ( skb , skb_network_header ( skb ) , skb_network_header_len ( skb ) ) ;\n if ( ! csum_ipv6_magic ( & ipv6_hdr ( skb ) -> saddr , & ipv6_hdr ( skb ) -> daddr , skb -> len , inet -> inet_num , skb -> csum ) ) skb -> ip_summed = CHECKSUM_UNNECESSARY ;\n }\n if ( ! skb_csum_unnecessary ( skb ) ) skb -> csum = ~ csum_unfold ( csum_ipv6_magic ( & ipv6_hdr ( skb ) -> saddr , & ipv6_hdr ( skb ) -> daddr , skb -> len , inet -> inet_num , 0 ) ) ;\n if ( inet -> hdrincl ) {\n if ( skb_checksum_complete ( skb ) ) {\n atomic_inc ( & sk -> sk_drops ) ;\n kfree_skb ( skb ) ;\n return NET_RX_DROP ;\n }\n }\n rawv6_rcv_skb ( sk , skb ) ;\n return 0 ;\n }"}
{"idx": 19823, "target": 0, "func": "TEST_F ( TemplateURLTest , SearchTermKeyLocation ) {\n struct TestData {\n const std : : string url ;\n const url : : Parsed : : ComponentType location ;\n const std : : string path ;\n size_t position_in_path ;\n }\n test_data [ ] = {\n {\n \"http://blah/{\nsearchTerms}\n/\" , url : : Parsed : : PATH , \"//\" , 1 }\n , {\n \"http://blah/{\nsearchTerms}\n\" , url : : Parsed : : PATH , \"/\" , 1 }\n , {\n \"http://blah/begin/{\nsearchTerms}\n/end\" , url : : Parsed : : PATH , \"/begin//end\" , 7 }\n , {\n \"http://blah/?foo=bar&q={\nsearchTerms}\n&b=x\" , url : : Parsed : : QUERY , \"/\" , std : : string : : npos }\n , {\n \"http://blah/?foo=bar#x={\nsearchTerms}\n&b=x\" , url : : Parsed : : REF , \"/\" , std : : string : : npos }\n , {\n \"http://blah/?foo=bar#x=012345678901234&a=b&{\nsearchTerms}\n=x\" , url : : Parsed : : QUERY , std : : string ( ) , std : : string : : npos }\n , {\n \"http://blah/{\nsearchTerms}\n?q={\nsearchTerms}\n\" , url : : Parsed : : QUERY , \"\" , std : : string : : npos }\n , {\n \"http://blah/{\nsearchTerms}\n#x={\nsearchTerms}\n\" , url : : Parsed : : QUERY , \"\" , std : : string : : npos }\n , {\n \"http://blah/?q={\nsearchTerms}\n#x={\nsearchTerms}\n\" , url : : Parsed : : QUERY , \"\" , std : : string : : npos }\n , }\n ;\n for ( size_t i = 0 ;\n i < arraysize ( test_data ) ;\n ++ i ) {\n TemplateURLData data ;\n data . SetURL ( test_data [ i ] . url ) ;\n TemplateURL url ( data ) ;\n EXPECT_EQ ( test_data [ i ] . location , url . url_ref ( ) . GetSearchTermKeyLocation ( search_terms_data_ ) ) ;\n EXPECT_EQ ( test_data [ i ] . path , url . url_ref ( ) . GetPath ( search_terms_data_ ) ) ;\n EXPECT_EQ ( test_data [ i ] . position_in_path , url . url_ref ( ) . GetSearchTermPositionInPath ( search_terms_data_ ) ) ;\n }\n }"}
{"idx": 19824, "target": 0, "func": "static MagickBooleanType IsXCF ( const unsigned char * magick , const size_t length ) {\n if ( length < 8 ) return ( MagickFalse ) ;\n if ( LocaleNCompare ( ( char * ) magick , \"gimp xcf\" , 8 ) == 0 ) return ( MagickTrue ) ;\n return ( MagickFalse ) ;\n }"}
{"idx": 19825, "target": 0, "func": "static celt element ( struct vars * v , const chr * startp , const chr * endp ) {\n const struct cname * cn ;\n size_t len ;\n assert ( startp < endp ) ;\n len = endp - startp ;\n if ( len == 1 ) return * startp ;\n NOTE ( REG_ULOCALE ) ;\n for ( cn = cnames ;\n cn -> name != NULL ;\n cn ++ ) {\n if ( strlen ( cn -> name ) == len && pg_char_and_wchar_strncmp ( cn -> name , startp , len ) == 0 ) {\n break ;\n }\n }\n if ( cn -> name != NULL ) return CHR ( cn -> code ) ;\n ERR ( REG_ECOLLATE ) ;\n return 0 ;\n }"}
{"idx": 19826, "target": 0, "func": "static void proto_tree_set_ipv4 ( field_info * fi , guint32 value ) {\n fvalue_set_uinteger ( & fi -> value , value ) ;\n }"}
{"idx": 19827, "target": 0, "func": "static int SpoolssDeleteForm_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {\n proto_item * hidden_item ;\n hidden_item = proto_tree_add_uint ( tree , hf_form , tvb , offset , 0 , 1 ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 19828, "target": 1, "func": "static gcry_err_code_t sexp_to_enc ( gcry_sexp_t sexp , gcry_mpi_t * * retarray , gcry_module_t * retalgo , int * ret_modern , int * flags , struct pk_encoding_ctx * ctx ) {\n gcry_err_code_t err = 0 ;\n gcry_sexp_t list = NULL , l2 = NULL ;\n gcry_pk_spec_t * pubkey = NULL ;\n gcry_module_t module = NULL ;\n char * name = NULL ;\n size_t n ;\n int parsed_flags = 0 ;\n const char * elems ;\n gcry_mpi_t * array = NULL ;\n * ret_modern = 0 ;\n list = gcry_sexp_find_token ( sexp , \"enc-val\" , 0 ) ;\n if ( ! list ) {\n err = GPG_ERR_INV_OBJ ;\n goto leave ;\n }\n l2 = gcry_sexp_nth ( list , 1 ) ;\n if ( ! l2 ) {\n err = GPG_ERR_NO_OBJ ;\n goto leave ;\n }\n name = _gcry_sexp_nth_string ( l2 , 0 ) ;\n if ( ! name ) {\n err = GPG_ERR_INV_OBJ ;\n goto leave ;\n }\n if ( ! strcmp ( name , \"flags\" ) ) {\n const char * s ;\n int i ;\n * ret_modern = 1 ;\n for ( i = gcry_sexp_length ( l2 ) - 1 ;\n i > 0 ;\n i -- ) {\n s = gcry_sexp_nth_data ( l2 , i , & n ) ;\n if ( ! s ) ;\n else if ( n == 3 && ! memcmp ( s , \"raw\" , 3 ) && ctx -> encoding == PUBKEY_ENC_UNKNOWN ) ctx -> encoding = PUBKEY_ENC_RAW ;\n else if ( n == 5 && ! memcmp ( s , \"pkcs1\" , 5 ) && ctx -> encoding == PUBKEY_ENC_UNKNOWN ) ctx -> encoding = PUBKEY_ENC_PKCS1 ;\n else if ( n == 4 && ! memcmp ( s , \"oaep\" , 4 ) && ctx -> encoding == PUBKEY_ENC_UNKNOWN ) ctx -> encoding = PUBKEY_ENC_OAEP ;\n else if ( n == 3 && ! memcmp ( s , \"pss\" , 3 ) && ctx -> encoding == PUBKEY_ENC_UNKNOWN ) {\n err = GPG_ERR_CONFLICT ;\n goto leave ;\n }\n else if ( n == 11 && ! memcmp ( s , \"no-blinding\" , 11 ) ) parsed_flags |= PUBKEY_FLAG_NO_BLINDING ;\n else {\n err = GPG_ERR_INV_FLAG ;\n goto leave ;\n }\n }\n gcry_sexp_release ( l2 ) ;\n if ( ctx -> encoding == PUBKEY_ENC_OAEP ) {\n l2 = gcry_sexp_find_token ( list , \"hash-algo\" , 0 ) ;\n if ( l2 ) {\n s = gcry_sexp_nth_data ( l2 , 1 , & n ) ;\n if ( ! s ) err = GPG_ERR_NO_OBJ ;\n else {\n ctx -> hash_algo = get_hash_algo ( s , n ) ;\n if ( ! ctx -> hash_algo ) err = GPG_ERR_DIGEST_ALGO ;\n }\n gcry_sexp_release ( l2 ) ;\n if ( err ) goto leave ;\n }\n l2 = gcry_sexp_find_token ( list , \"label\" , 0 ) ;\n if ( l2 ) {\n s = gcry_sexp_nth_data ( l2 , 1 , & n ) ;\n if ( ! s ) err = GPG_ERR_NO_OBJ ;\n else if ( n > 0 ) {\n ctx -> label = gcry_malloc ( n ) ;\n if ( ! ctx -> label ) err = gpg_err_code_from_syserror ( ) ;\n else {\n memcpy ( ctx -> label , s , n ) ;\n ctx -> labellen = n ;\n }\n }\n gcry_sexp_release ( l2 ) ;\n if ( err ) goto leave ;\n }\n }\n for ( i = 2 ;\n ( l2 = gcry_sexp_nth ( list , i ) ) != NULL ;\n i ++ ) {\n s = gcry_sexp_nth_data ( l2 , 0 , & n ) ;\n if ( ! ( n == 9 && ! memcmp ( s , \"hash-algo\" , 9 ) ) && ! ( n == 5 && ! memcmp ( s , \"label\" , 5 ) ) && ! ( n == 15 && ! memcmp ( s , \"random-override\" , 15 ) ) ) break ;\n gcry_sexp_release ( l2 ) ;\n }\n if ( ! l2 ) {\n err = GPG_ERR_NO_OBJ ;\n goto leave ;\n }\n gcry_free ( name ) ;\n name = _gcry_sexp_nth_string ( l2 , 0 ) ;\n if ( ! name ) {\n err = GPG_ERR_INV_OBJ ;\n goto leave ;\n }\n gcry_sexp_release ( list ) ;\n list = l2 ;\n l2 = NULL ;\n }\n ath_mutex_lock ( & pubkeys_registered_lock ) ;\n module = gcry_pk_lookup_name ( name ) ;\n ath_mutex_unlock ( & pubkeys_registered_lock ) ;\n if ( ! module ) {\n err = GPG_ERR_PUBKEY_ALGO ;\n goto leave ;\n }\n pubkey = ( gcry_pk_spec_t * ) module -> spec ;\n elems = pubkey -> elements_enc ;\n array = gcry_calloc ( strlen ( elems ) + 1 , sizeof ( * array ) ) ;\n if ( ! array ) {\n err = gpg_err_code_from_syserror ( ) ;\n goto leave ;\n }\n err = sexp_elements_extract ( list , elems , array , NULL ) ;\n leave : gcry_sexp_release ( list ) ;\n gcry_sexp_release ( l2 ) ;\n gcry_free ( name ) ;\n if ( err ) {\n ath_mutex_lock ( & pubkeys_registered_lock ) ;\n _gcry_module_release ( module ) ;\n ath_mutex_unlock ( & pubkeys_registered_lock ) ;\n gcry_free ( array ) ;\n gcry_free ( ctx -> label ) ;\n ctx -> label = NULL ;\n }\n else {\n * retarray = array ;\n * retalgo = module ;\n * flags = parsed_flags ;\n }\n return err ;\n }"}
{"idx": 19829, "target": 0, "func": "static void dissect_coap_opt_uri_path ( tvbuff_t * tvb , proto_item * head_item , proto_tree * subtree , gint offset , gint opt_length , coap_info * coinfo , int hf ) {\n const guint8 * str = NULL ;\n wmem_strbuf_append_c ( coinfo -> uri_str_strbuf , '/' ) ;\n if ( opt_length == 0 ) {\n str = nullstr ;\n }\n else {\n str = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset , opt_length , ENC_ASCII ) ;\n wmem_strbuf_append ( coinfo -> uri_str_strbuf , str ) ;\n }\n proto_tree_add_string ( subtree , hf , tvb , offset , opt_length , str ) ;\n proto_item_append_text ( head_item , \": %s\" , str ) ;\n }"}
{"idx": 19830, "target": 0, "func": "static void dtap_cc_start_cc ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {\n guint32 curr_offset ;\n guint32 consumed ;\n guint curr_len ;\n curr_offset = offset ;\n curr_len = len ;\n is_uplink = IS_UPLINK_FALSE ;\n ELEM_OPT_TLV ( 0x15 , GSM_A_PDU_TYPE_DTAP , DE_CC_CAP , NULL ) ;\n EXTRANEOUS_DATA_CHECK ( curr_len , 0 , pinfo , & ei_gsm_a_dtap_extraneous_data ) ;\n }"}
{"idx": 19831, "target": 0, "func": "static int dissect_segment_defn ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , guint64 channel , int encoding ) {\n proto_item * subtree_item = NULL ;\n proto_tree * subtree = NULL ;\n int seglen = 0 ;\n int ofs = 0 ;\n gboolean string_field_name = FALSE ;\n int remaining_datalen = 0 ;\n guint32 num_fields = 0 ;\n lbmpdm_definition_t * def = NULL ;\n gboolean add_definition = FALSE ;\n guint32 def_id = 0 ;\n guint8 vers_major = 0 ;\n guint8 vers_minor = 0 ;\n lbmpdm_definition_field_t * last_fixed_required_field = NULL ;\n seglen = lbmpdm_get_segment_length ( tvb , offset , encoding , & remaining_datalen ) ;\n if ( pinfo -> fd -> flags . visited == 0 ) {\n add_definition = TRUE ;\n }\n subtree_item = proto_tree_add_none_format ( tree , hf_lbmpdm_segment , tvb , offset , seglen , \"Definition Segment\" ) ;\n subtree = proto_item_add_subtree ( subtree_item , ett_lbmpdm_segment ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_segment_next_hdr , tvb , offset + O_LBMPDM_SEG_HDR_T_NEXT_HDR , L_LBMPDM_SEG_HDR_T_NEXT_HDR , encoding ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_segment_flags , tvb , offset + O_LBMPDM_SEG_HDR_T_FLAGS , L_LBMPDM_SEG_HDR_T_FLAGS , encoding ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_segment_res , tvb , offset + O_LBMPDM_SEG_HDR_T_RES , L_LBMPDM_SEG_HDR_T_RES , encoding ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_segment_len , tvb , offset + O_LBMPDM_SEG_HDR_T_LEN , L_LBMPDM_SEG_HDR_T_LEN , encoding ) ;\n ofs = offset + L_LBMPDM_SEG_HDR_T ;\n proto_tree_add_item ( subtree , hf_lbmpdm_segment_def_id , tvb , ofs + O_LBMPDM_DEFN_T_ID , L_LBMPDM_DEFN_T_ID , encoding ) ;\n def_id = lbmpdm_fetch_uint32_encoded ( tvb , ofs + O_LBMPDM_DEFN_T_ID , encoding ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_segment_def_num_fields , tvb , ofs + O_LBMPDM_DEFN_T_NUM_FIELDS , L_LBMPDM_DEFN_T_NUM_FIELDS , encoding ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_segment_def_field_names_type , tvb , ofs + O_LBMPDM_DEFN_T_FIELD_NAMES_TYPE , L_LBMPDM_DEFN_T_FIELD_NAMES_TYPE , encoding ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_segment_def_finalized , tvb , ofs + O_LBMPDM_DEFN_T_FINALIZED , L_LBMPDM_DEFN_T_FINALIZED , encoding ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_segment_def_msg_vers_major , tvb , ofs + O_LBMPDM_DEFN_T_MSG_VERS_MAJOR , L_LBMPDM_DEFN_T_MSG_VERS_MAJOR , encoding ) ;\n vers_major = tvb_get_guint8 ( tvb , ofs + O_LBMPDM_DEFN_T_MSG_VERS_MAJOR ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_segment_def_msg_vers_minor , tvb , ofs + O_LBMPDM_DEFN_T_MSG_VERS_MINOR , L_LBMPDM_DEFN_T_MSG_VERS_MINOR , encoding ) ;\n vers_minor = tvb_get_guint8 ( tvb , ofs + O_LBMPDM_DEFN_T_MSG_VERS_MINOR ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_segment_def_fixed_req_section_len , tvb , ofs + O_LBMPDM_DEFN_T_FIXED_REQ_SECTION_LEN , L_LBMPDM_DEFN_T_FIXED_REQ_SECTION_LEN , encoding ) ;\n proto_tree_add_item ( subtree , hf_lbmpdm_segment_def_field_info_len , tvb , ofs + O_LBMPDM_DEFN_T_FIELD_INFO_LEN , L_LBMPDM_DEFN_T_FIELD_INFO_LEN , encoding ) ;\n if ( tvb_get_guint8 ( tvb , ofs + O_LBMPDM_DEFN_T_FIELD_NAMES_TYPE ) == PDM_DEFN_STR_FIELD_NAMES ) {\n string_field_name = TRUE ;\n }\n num_fields = lbmpdm_fetch_uint32_encoded ( tvb , ofs + O_LBMPDM_DEFN_T_NUM_FIELDS , encoding ) ;\n if ( add_definition ) {\n def = lbmpdm_definition_find ( channel , def_id , vers_major , vers_minor ) ;\n if ( def == NULL ) {\n def = lbmpdm_definition_add ( channel , def_id , vers_major , vers_minor ) ;\n def -> num_fields = num_fields ;\n def -> field_names_type = tvb_get_guint8 ( tvb , ofs + O_LBMPDM_DEFN_T_FIELD_NAMES_TYPE ) ;\n def -> fixed_req_section_len = lbmpdm_fetch_uint32_encoded ( tvb , ofs + O_LBMPDM_DEFN_T_FIXED_REQ_SECTION_LEN , encoding ) ;\n def -> first_fixed_required = NULL ;\n def -> fixed_required_count = 0 ;\n }\n }\n ofs += L_LBMPDM_DEFN_T ;\n remaining_datalen = seglen - L_LBMPDM_SEG_HDR_T - L_LBMPDM_DEFN_T ;\n while ( ( remaining_datalen > 0 ) && ( num_fields > 0 ) ) {\n proto_item * field_item = NULL ;\n proto_tree * field_tree = NULL ;\n guint32 def_len = L_LBMPDM_FIELD_INFO_T_INT_NAME ;\n int def_ofs = 0 ;\n int type_ofs = L_LBMPDM_FIELD_INFO_T ;\n guint32 string_name_len = 0 ;\n int string_name_ofs = - 1 ;\n if ( string_field_name ) {\n def_len = lbmpdm_fetch_uint32_encoded ( tvb , ofs , encoding ) + 4 ;\n }\n field_item = proto_tree_add_item ( subtree , hf_lbmpdm_segment_def_field , tvb , ofs , def_len , ENC_NA ) ;\n field_tree = proto_item_add_subtree ( field_item , ett_lbmpdm_segment_def_field ) ;\n if ( string_field_name ) {\n proto_tree_add_item ( field_tree , hf_lbmpdm_segment_def_field_def_len , tvb , ofs , 4 , encoding ) ;\n def_ofs = 4 ;\n type_ofs += def_ofs ;\n }\n proto_tree_add_item ( field_tree , hf_lbmpdm_segment_def_field_id , tvb , ofs + def_ofs + O_LBMPDM_FIELD_INFO_T_ID , L_LBMPDM_FIELD_INFO_T_ID , encoding ) ;\n proto_tree_add_item ( field_tree , hf_lbmpdm_segment_def_field_len , tvb , ofs + def_ofs + O_LBMPDM_FIELD_INFO_T_LEN , L_LBMPDM_FIELD_INFO_T_LEN , encoding ) ;\n proto_tree_add_item ( field_tree , hf_lbmpdm_segment_def_field_fixed_str_len , tvb , ofs + def_ofs + O_LBMPDM_FIELD_INFO_T_FIXED_STR_LEN , L_LBMPDM_FIELD_INFO_T_FIXED_STR_LEN , encoding ) ;\n proto_tree_add_item ( field_tree , hf_lbmpdm_segment_def_field_num_arr_elem , tvb , ofs + def_ofs + O_LBMPDM_FIELD_INFO_T_NUM_ARR_ELEM , L_LBMPDM_FIELD_INFO_T_NUM_ARR_ELEM , encoding ) ;\n proto_tree_add_item ( field_tree , hf_lbmpdm_segment_def_field_req , tvb , ofs + def_ofs + O_LBMPDM_FIELD_INFO_T_REQ , L_LBMPDM_FIELD_INFO_T_REQ , encoding ) ;\n proto_tree_add_item ( field_tree , hf_lbmpdm_segment_def_field_fixed , tvb , ofs + def_ofs + O_LBMPDM_FIELD_INFO_T_FIXED , L_LBMPDM_FIELD_INFO_T_FIXED , encoding ) ;\n proto_tree_add_item ( field_tree , hf_lbmpdm_segment_def_field_fld_int_name , tvb , ofs + def_ofs + O_LBMPDM_FIELD_INFO_T_FLD_INT_NAME , L_LBMPDM_FIELD_INFO_T_FLD_INT_NAME , encoding ) ;\n proto_tree_add_item ( field_tree , hf_lbmpdm_segment_def_field_str_name_len , tvb , ofs + def_ofs + O_LBMPDM_FIELD_INFO_T_STR_NAME_LEN , L_LBMPDM_FIELD_INFO_T_STR_NAME_LEN , encoding ) ;\n if ( string_field_name ) {\n string_name_len = lbmpdm_fetch_uint32_encoded ( tvb , ofs + def_ofs + O_LBMPDM_FIELD_INFO_T_STR_NAME_LEN , encoding ) ;\n if ( string_name_len > 0 ) {\n string_name_ofs = ofs + def_ofs + L_LBMPDM_FIELD_INFO_T ;\n proto_tree_add_item ( field_tree , hf_lbmpdm_segment_def_field_str_name , tvb , string_name_ofs , ( int ) string_name_len , ENC_ASCII | ENC_NA ) ;\n type_ofs += string_name_len ;\n }\n }\n proto_tree_add_item ( field_tree , hf_lbmpdm_segment_def_field_fld_type , tvb , ofs + type_ofs , 2 , encoding ) ;\n if ( add_definition && ( def != NULL ) ) {\n lbmpdm_definition_field_t * field = NULL ;\n guint32 field_id ;\n field_id = lbmpdm_fetch_uint32_encoded ( tvb , ofs + def_ofs + O_LBMPDM_FIELD_INFO_T_ID , encoding ) ;\n field = lbmpdm_definition_field_find ( def , field_id ) ;\n if ( field == NULL ) {\n field = lbmpdm_definition_field_add ( def , field_id ) ;\n if ( field != NULL ) {\n field -> len = lbmpdm_fetch_uint32_encoded ( tvb , ofs + def_ofs + O_LBMPDM_FIELD_INFO_T_LEN , encoding ) ;\n field -> fixed_string_len = lbmpdm_fetch_uint32_encoded ( tvb , ofs + def_ofs + O_LBMPDM_FIELD_INFO_T_FIXED_STR_LEN , encoding ) ;\n field -> num_array_elem = lbmpdm_fetch_uint32_encoded ( tvb , ofs + def_ofs + O_LBMPDM_FIELD_INFO_T_NUM_ARR_ELEM , encoding ) ;\n field -> required = tvb_get_guint8 ( tvb , ofs + def_ofs + O_LBMPDM_FIELD_INFO_T_REQ ) ;\n field -> fixed = tvb_get_guint8 ( tvb , ofs + def_ofs + O_LBMPDM_FIELD_INFO_T_FIXED ) ;\n field -> field_int_name = lbmpdm_fetch_uint32_encoded ( tvb , ofs + def_ofs + O_LBMPDM_FIELD_INFO_T_FLD_INT_NAME , encoding ) ;\n if ( string_field_name && ( string_name_len > 0 ) ) {\n field -> field_string_name_len = string_name_len ;\n field -> field_string_name = tvb_get_string_enc ( wmem_file_scope ( ) , tvb , string_name_ofs , string_name_len , ENC_ASCII ) ;\n }\n else {\n field -> field_string_name_len = 0 ;\n field -> field_string_name = NULL ;\n }\n field -> field_type = lbmpdm_fetch_uint16_encoded ( tvb , ofs + type_ofs , encoding ) ;\n switch ( field -> field_type ) {\n case PDM_TYPE_BOOLEAN : case PDM_TYPE_BOOLEAN_ARR : field -> base_type = PDM_TYPE_BOOLEAN ;\n break ;\n case PDM_TYPE_INT8 : case PDM_TYPE_INT8_ARR : field -> base_type = PDM_TYPE_INT8 ;\n break ;\n case PDM_TYPE_UINT8 : case PDM_TYPE_UINT8_ARR : field -> base_type = PDM_TYPE_UINT8 ;\n break ;\n case PDM_TYPE_INT16 : case PDM_TYPE_INT16_ARR : field -> base_type = PDM_TYPE_INT16 ;\n break ;\n case PDM_TYPE_UINT16 : case PDM_TYPE_UINT16_ARR : field -> base_type = PDM_TYPE_UINT16 ;\n break ;\n case PDM_TYPE_INT32 : case PDM_TYPE_INT32_ARR : field -> base_type = PDM_TYPE_INT32 ;\n break ;\n case PDM_TYPE_UINT32 : case PDM_TYPE_UINT32_ARR : field -> base_type = PDM_TYPE_UINT32 ;\n break ;\n case PDM_TYPE_INT64 : case PDM_TYPE_INT64_ARR : field -> base_type = PDM_TYPE_INT64 ;\n break ;\n case PDM_TYPE_UINT64 : case PDM_TYPE_UINT64_ARR : field -> base_type = PDM_TYPE_UINT64 ;\n break ;\n case PDM_TYPE_FLOAT : case PDM_TYPE_FLOAT_ARR : field -> base_type = PDM_TYPE_FLOAT ;\n break ;\n case PDM_TYPE_DOUBLE : case PDM_TYPE_DOUBLE_ARR : field -> base_type = PDM_TYPE_DOUBLE ;\n break ;\n case PDM_TYPE_DECIMAL : case PDM_TYPE_DECIMAL_ARR : field -> base_type = PDM_TYPE_DECIMAL ;\n break ;\n case PDM_TYPE_TIMESTAMP : case PDM_TYPE_TIMESTAMP_ARR : field -> base_type = PDM_TYPE_TIMESTAMP ;\n break ;\n case PDM_TYPE_FIX_STRING : case PDM_TYPE_FIX_STRING_ARR : field -> base_type = PDM_TYPE_FIX_STRING ;\n break ;\n case PDM_TYPE_STRING : case PDM_TYPE_STRING_ARR : field -> base_type = PDM_TYPE_STRING ;\n break ;\n case PDM_TYPE_FIX_UNICODE : case PDM_TYPE_FIX_UNICODE_ARR : field -> base_type = PDM_TYPE_FIX_UNICODE ;\n break ;\n case PDM_TYPE_UNICODE : case PDM_TYPE_UNICODE_ARR : field -> base_type = PDM_TYPE_UNICODE ;\n break ;\n case PDM_TYPE_BLOB : case PDM_TYPE_BLOB_ARR : default : field -> base_type = PDM_TYPE_BLOB ;\n break ;\n case PDM_TYPE_MESSAGE : case PDM_TYPE_MESSAGE_ARR : field -> base_type = PDM_TYPE_MESSAGE ;\n break ;\n }\n if ( ( field -> fixed == PDM_DEFN_FIXED_LENGTH_FIELD ) && ( field -> required == PDM_DEFN_REQUIRED_FIELD ) ) {\n if ( last_fixed_required_field == NULL ) {\n def -> first_fixed_required = field ;\n field -> fixed_required_offset = 0 ;\n }\n else {\n last_fixed_required_field -> next_fixed_required = field ;\n field -> fixed_required_offset = last_fixed_required_field -> fixed_required_offset + last_fixed_required_field -> len ;\n }\n last_fixed_required_field = field ;\n def -> fixed_required_count ++ ;\n }\n }\n }\n }\n ofs += def_len ;\n remaining_datalen -= def_len ;\n num_fields -- ;\n }\n return ( seglen ) ;\n }"}
{"idx": 19832, "target": 0, "func": "static void generate_json_string ( FBuffer * buffer , VALUE Vstate , JSON_Generator_State * state , VALUE obj ) {\n fbuffer_append_char ( buffer , '\"' ) ;\n # ifdef HAVE_RUBY_ENCODING_H obj = rb_funcall ( obj , i_encode , 1 , CEncoding_UTF_8 ) ;\n # endif if ( state -> ascii_only ) {\n convert_UTF8_to_JSON_ASCII ( buffer , obj ) ;\n }\n else {\n convert_UTF8_to_JSON ( buffer , obj ) ;\n }\n fbuffer_append_char ( buffer , '\"' ) ;\n }"}
{"idx": 19833, "target": 1, "func": "int getulong ( const char * numstr , unsigned long int * result ) {\n long long int val ;\n char * endptr ;\n errno = 0 ;\n val = strtoll ( numstr , & endptr , 0 ) ;\n if ( ( '\\0' == * numstr ) || ( '\\0' != * endptr ) || ( ERANGE == errno ) || ( val != ( unsigned long int ) val ) ) {\n return 0 ;\n }\n * result = ( unsigned long int ) val ;\n return 1 ;\n }"}
{"idx": 19834, "target": 0, "func": "proto_item * proto_tree_add_double ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , double value ) {\n proto_item * pi ;\n header_field_info * hfinfo ;\n CHECK_FOR_NULL_TREE ( tree ) ;\n TRY_TO_FAKE_THIS_ITEM ( tree , hfindex , hfinfo ) ;\n DISSECTOR_ASSERT_FIELD_TYPE ( hfinfo , FT_DOUBLE ) ;\n pi = proto_tree_add_pi ( tree , hfinfo , tvb , start , & length ) ;\n proto_tree_set_double ( PNODE_FINFO ( pi ) , value ) ;\n return pi ;\n }"}
{"idx": 19835, "target": 0, "func": "SPL_METHOD ( SplDoublyLinkedList , add ) {\n zval * zindex , * value ;\n spl_dllist_object * intern ;\n spl_ptr_llist_element * element ;\n long index ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"zz\" , & zindex , & value ) == FAILURE ) {\n return ;\n }\n intern = ( spl_dllist_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n index = spl_offset_convert_to_long ( zindex TSRMLS_CC ) ;\n if ( index < 0 || index > intern -> llist -> count ) {\n zend_throw_exception ( spl_ce_OutOfRangeException , \"Offset invalid or out of range\" , 0 TSRMLS_CC ) ;\n return ;\n }\n Z_ADDREF_P ( value ) ;\n if ( index == intern -> llist -> count ) {\n spl_ptr_llist_push ( intern -> llist , value TSRMLS_CC ) ;\n }\n else {\n spl_ptr_llist_element * elem = emalloc ( sizeof ( spl_ptr_llist_element ) ) ;\n element = spl_ptr_llist_offset ( intern -> llist , index , intern -> flags & SPL_DLLIST_IT_LIFO ) ;\n elem -> data = value ;\n elem -> rc = 1 ;\n elem -> next = element ;\n elem -> prev = element -> prev ;\n if ( elem -> prev == NULL ) {\n intern -> llist -> head = elem ;\n }\n else {\n element -> prev -> next = elem ;\n }\n element -> prev = elem ;\n intern -> llist -> count ++ ;\n if ( intern -> llist -> ctor ) {\n intern -> llist -> ctor ( elem TSRMLS_CC ) ;\n }\n }\n }"}
{"idx": 19836, "target": 0, "func": "const uint8_t * ff_h263_find_resync_marker ( const uint8_t * restrict p , const uint8_t * restrict end ) {\n assert ( p < end ) ;\n end -= 2 ;\n p ++ ;\n for ( ;\n p < end ;\n p += 2 ) {\n if ( ! * p ) {\n if ( ! p [ - 1 ] && p [ 1 ] ) return p - 1 ;\n else if ( ! p [ 1 ] && p [ 2 ] ) return p ;\n }\n }\n return end + 2 ;\n }"}
{"idx": 19837, "target": 0, "func": "static uint_fast32_t inttobits ( jas_seqent_t v , int prec , bool sgnd ) {\n uint_fast32_t ret ;\n ret = ( ( sgnd && v < 0 ) ? ( ( 1 << prec ) + v ) : v ) & JAS_ONES ( prec ) ;\n return ret ;\n }"}
{"idx": 19838, "target": 1, "func": "static void nonrd_pick_partition ( VP9_COMP * cpi , const TileInfo * const tile , TOKENEXTRA * * tp , int mi_row , int mi_col , BLOCK_SIZE bsize , int * rate , int64_t * dist , int do_recon , int64_t best_rd , PC_TREE * pc_tree ) {\n const SPEED_FEATURES * const sf = & cpi -> sf ;\n const VP9EncoderConfig * const oxcf = & cpi -> oxcf ;\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCK * const x = & cpi -> mb ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n const int ms = num_8x8_blocks_wide_lookup [ bsize ] / 2 ;\n TOKENEXTRA * tp_orig = * tp ;\n PICK_MODE_CONTEXT * ctx = & pc_tree -> none ;\n int i ;\n BLOCK_SIZE subsize = bsize ;\n int this_rate , sum_rate = 0 , best_rate = INT_MAX ;\n int64_t this_dist , sum_dist = 0 , best_dist = INT64_MAX ;\n int64_t sum_rd = 0 ;\n int do_split = bsize >= BLOCK_8X8 ;\n int do_rect = 1 ;\n const int force_horz_split = ( mi_row + ms >= cm -> mi_rows ) ;\n const int force_vert_split = ( mi_col + ms >= cm -> mi_cols ) ;\n const int xss = x -> e_mbd . plane [ 1 ] . subsampling_x ;\n const int yss = x -> e_mbd . plane [ 1 ] . subsampling_y ;\n int partition_none_allowed = ! force_horz_split && ! force_vert_split ;\n int partition_horz_allowed = ! force_vert_split && yss <= xss && bsize >= BLOCK_8X8 ;\n int partition_vert_allowed = ! force_horz_split && xss <= yss && bsize >= BLOCK_8X8 ;\n ( void ) * tp_orig ;\n assert ( num_8x8_blocks_wide_lookup [ bsize ] == num_8x8_blocks_high_lookup [ bsize ] ) ;\n if ( sf -> auto_min_max_partition_size ) {\n partition_none_allowed &= ( bsize <= sf -> max_partition_size && bsize >= sf -> min_partition_size ) ;\n partition_horz_allowed &= ( ( bsize <= sf -> max_partition_size && bsize > sf -> min_partition_size ) || force_horz_split ) ;\n partition_vert_allowed &= ( ( bsize <= sf -> max_partition_size && bsize > sf -> min_partition_size ) || force_vert_split ) ;\n do_split &= bsize > sf -> min_partition_size ;\n }\n if ( sf -> use_square_partition_only ) {\n partition_horz_allowed &= force_horz_split ;\n partition_vert_allowed &= force_vert_split ;\n }\n if ( partition_none_allowed ) {\n nonrd_pick_sb_modes ( cpi , tile , mi_row , mi_col , & this_rate , & this_dist , bsize , ctx ) ;\n ctx -> mic . mbmi = xd -> mi [ 0 ] -> mbmi ;\n ctx -> skip_txfm [ 0 ] = x -> skip_txfm [ 0 ] ;\n ctx -> skip = x -> skip ;\n if ( this_rate != INT_MAX ) {\n int pl = partition_plane_context ( xd , mi_row , mi_col , bsize ) ;\n this_rate += cpi -> partition_cost [ pl ] [ PARTITION_NONE ] ;\n sum_rd = RDCOST ( x -> rdmult , x -> rddiv , this_rate , this_dist ) ;\n if ( sum_rd < best_rd ) {\n int64_t stop_thresh = 4096 ;\n int64_t stop_thresh_rd ;\n best_rate = this_rate ;\n best_dist = this_dist ;\n best_rd = sum_rd ;\n if ( bsize >= BLOCK_8X8 ) pc_tree -> partitioning = PARTITION_NONE ;\n stop_thresh >>= 8 - ( b_width_log2 ( bsize ) + b_height_log2 ( bsize ) ) ;\n stop_thresh_rd = RDCOST ( x -> rdmult , x -> rddiv , 0 , stop_thresh ) ;\n if ( ! x -> e_mbd . lossless && best_rd < stop_thresh_rd ) {\n do_split = 0 ;\n do_rect = 0 ;\n }\n }\n }\n }\n store_pred_mv ( x , ctx ) ;\n sum_rd = 0 ;\n if ( do_split ) {\n int pl = partition_plane_context ( xd , mi_row , mi_col , bsize ) ;\n sum_rate += cpi -> partition_cost [ pl ] [ PARTITION_SPLIT ] ;\n subsize = get_subsize ( bsize , PARTITION_SPLIT ) ;\n for ( i = 0 ;\n i < 4 && sum_rd < best_rd ;\n ++ i ) {\n const int x_idx = ( i & 1 ) * ms ;\n const int y_idx = ( i >> 1 ) * ms ;\n if ( mi_row + y_idx >= cm -> mi_rows || mi_col + x_idx >= cm -> mi_cols ) continue ;\n load_pred_mv ( x , ctx ) ;\n nonrd_pick_partition ( cpi , tile , tp , mi_row + y_idx , mi_col + x_idx , subsize , & this_rate , & this_dist , 0 , best_rd - sum_rd , pc_tree -> split [ i ] ) ;\n if ( this_rate == INT_MAX ) {\n sum_rd = INT64_MAX ;\n }\n else {\n sum_rate += this_rate ;\n sum_dist += this_dist ;\n sum_rd = RDCOST ( x -> rdmult , x -> rddiv , sum_rate , sum_dist ) ;\n }\n }\n if ( sum_rd < best_rd ) {\n best_rate = sum_rate ;\n best_dist = sum_dist ;\n best_rd = sum_rd ;\n pc_tree -> partitioning = PARTITION_SPLIT ;\n }\n else {\n if ( sf -> less_rectangular_check ) do_rect &= ! partition_none_allowed ;\n }\n }\n if ( partition_horz_allowed && do_rect ) {\n subsize = get_subsize ( bsize , PARTITION_HORZ ) ;\n if ( sf -> adaptive_motion_search ) load_pred_mv ( x , ctx ) ;\n nonrd_pick_sb_modes ( cpi , tile , mi_row , mi_col , & this_rate , & this_dist , subsize , & pc_tree -> horizontal [ 0 ] ) ;\n pc_tree -> horizontal [ 0 ] . mic . mbmi = xd -> mi [ 0 ] -> mbmi ;\n pc_tree -> horizontal [ 0 ] . skip_txfm [ 0 ] = x -> skip_txfm [ 0 ] ;\n pc_tree -> horizontal [ 0 ] . skip = x -> skip ;\n sum_rd = RDCOST ( x -> rdmult , x -> rddiv , sum_rate , sum_dist ) ;\n if ( sum_rd < best_rd && mi_row + ms < cm -> mi_rows ) {\n load_pred_mv ( x , ctx ) ;\n nonrd_pick_sb_modes ( cpi , tile , mi_row + ms , mi_col , & this_rate , & this_dist , subsize , & pc_tree -> horizontal [ 1 ] ) ;\n pc_tree -> horizontal [ 1 ] . mic . mbmi = xd -> mi [ 0 ] -> mbmi ;\n pc_tree -> horizontal [ 1 ] . skip_txfm [ 0 ] = x -> skip_txfm [ 0 ] ;\n pc_tree -> horizontal [ 1 ] . skip = x -> skip ;\n if ( this_rate == INT_MAX ) {\n sum_rd = INT64_MAX ;\n }\n else {\n int pl = partition_plane_context ( xd , mi_row , mi_col , bsize ) ;\n this_rate += cpi -> partition_cost [ pl ] [ PARTITION_HORZ ] ;\n sum_rate += this_rate ;\n sum_dist += this_dist ;\n sum_rd = RDCOST ( x -> rdmult , x -> rddiv , sum_rate , sum_dist ) ;\n }\n }\n if ( sum_rd < best_rd ) {\n best_rd = sum_rd ;\n best_rate = sum_rate ;\n best_dist = sum_dist ;\n pc_tree -> partitioning = PARTITION_HORZ ;\n }\n }\n if ( partition_vert_allowed && do_rect ) {\n subsize = get_subsize ( bsize , PARTITION_VERT ) ;\n if ( sf -> adaptive_motion_search ) load_pred_mv ( x , ctx ) ;\n nonrd_pick_sb_modes ( cpi , tile , mi_row , mi_col , & this_rate , & this_dist , subsize , & pc_tree -> vertical [ 0 ] ) ;\n pc_tree -> vertical [ 0 ] . mic . mbmi = xd -> mi [ 0 ] -> mbmi ;\n pc_tree -> vertical [ 0 ] . skip_txfm [ 0 ] = x -> skip_txfm [ 0 ] ;\n pc_tree -> vertical [ 0 ] . skip = x -> skip ;\n sum_rd = RDCOST ( x -> rdmult , x -> rddiv , sum_rate , sum_dist ) ;\n if ( sum_rd < best_rd && mi_col + ms < cm -> mi_cols ) {\n load_pred_mv ( x , ctx ) ;\n nonrd_pick_sb_modes ( cpi , tile , mi_row , mi_col + ms , & this_rate , & this_dist , subsize , & pc_tree -> vertical [ 1 ] ) ;\n pc_tree -> vertical [ 1 ] . mic . mbmi = xd -> mi [ 0 ] -> mbmi ;\n pc_tree -> vertical [ 1 ] . skip_txfm [ 0 ] = x -> skip_txfm [ 0 ] ;\n pc_tree -> vertical [ 1 ] . skip = x -> skip ;\n if ( this_rate == INT_MAX ) {\n sum_rd = INT64_MAX ;\n }\n else {\n int pl = partition_plane_context ( xd , mi_row , mi_col , bsize ) ;\n this_rate += cpi -> partition_cost [ pl ] [ PARTITION_VERT ] ;\n sum_rate += this_rate ;\n sum_dist += this_dist ;\n sum_rd = RDCOST ( x -> rdmult , x -> rddiv , sum_rate , sum_dist ) ;\n }\n }\n if ( sum_rd < best_rd ) {\n best_rate = sum_rate ;\n best_dist = sum_dist ;\n best_rd = sum_rd ;\n pc_tree -> partitioning = PARTITION_VERT ;\n }\n }\n ( void ) best_rd ;\n * rate = best_rate ;\n * dist = best_dist ;\n if ( best_rate == INT_MAX ) return ;\n subsize = get_subsize ( bsize , pc_tree -> partitioning ) ;\n fill_mode_info_sb ( cm , x , mi_row , mi_col , bsize , subsize , pc_tree ) ;\n if ( best_rate < INT_MAX && best_dist < INT64_MAX && do_recon ) {\n int output_enabled = ( bsize == BLOCK_64X64 ) ;\n if ( ( oxcf -> aq_mode == COMPLEXITY_AQ ) && cm -> seg . update_map ) {\n vp9_select_in_frame_q_segment ( cpi , mi_row , mi_col , output_enabled , best_rate ) ;\n }\n if ( oxcf -> aq_mode == CYCLIC_REFRESH_AQ ) vp9_cyclic_refresh_set_rate_and_dist_sb ( cpi -> cyclic_refresh , best_rate , best_dist ) ;\n encode_sb_rt ( cpi , tile , tp , mi_row , mi_col , output_enabled , bsize , pc_tree ) ;\n }\n if ( bsize == BLOCK_64X64 ) {\n assert ( tp_orig < * tp ) ;\n assert ( best_rate < INT_MAX ) ;\n assert ( best_dist < INT64_MAX ) ;\n }\n else {\n assert ( tp_orig == * tp ) ;\n }\n }"}
{"idx": 19839, "target": 0, "func": "static gboolean gst_asf_demux_handle_seek_event ( GstASFDemux * demux , GstEvent * event ) {\n GstClockTime idx_time ;\n GstSegment segment ;\n GstSeekFlags flags ;\n GstSeekType cur_type , stop_type ;\n GstFormat format ;\n gboolean only_need_update ;\n gboolean after , before , next ;\n gboolean flush ;\n gdouble rate ;\n gint64 cur , stop ;\n gint64 seek_time ;\n guint packet , speed_count = 1 ;\n gboolean eos ;\n guint32 seqnum ;\n GstEvent * fevent ;\n gint i ;\n gst_event_parse_seek ( event , & rate , & format , & flags , & cur_type , & cur , & stop_type , & stop ) ;\n if ( G_UNLIKELY ( format != GST_FORMAT_TIME ) ) {\n GST_LOG_OBJECT ( demux , \"seeking is only supported in TIME format\" ) ;\n return FALSE ;\n }\n if ( gst_pad_push_event ( demux -> sinkpad , gst_event_ref ( event ) ) ) return TRUE ;\n if ( G_UNLIKELY ( demux -> seekable == FALSE || demux -> packet_size == 0 || demux -> num_packets == 0 || demux -> play_time == 0 ) ) {\n GST_LOG_OBJECT ( demux , \"stream is not seekable\" ) ;\n return FALSE ;\n }\n if ( G_UNLIKELY ( ! demux -> activated_streams ) ) {\n GST_LOG_OBJECT ( demux , \"streams not yet activated, ignoring seek\" ) ;\n return FALSE ;\n }\n if ( G_UNLIKELY ( rate <= 0.0 ) ) {\n GST_LOG_OBJECT ( demux , \"backward playback\" ) ;\n demux -> seek_to_cur_pos = TRUE ;\n for ( i = 0 ;\n i < demux -> num_streams ;\n i ++ ) {\n demux -> stream [ i ] . reverse_kf_ready = FALSE ;\n }\n }\n seqnum = gst_event_get_seqnum ( event ) ;\n flush = ( ( flags & GST_SEEK_FLAG_FLUSH ) == GST_SEEK_FLAG_FLUSH ) ;\n demux -> accurate = ( ( flags & GST_SEEK_FLAG_ACCURATE ) == GST_SEEK_FLAG_ACCURATE ) ;\n demux -> keyunit_sync = ( ( flags & GST_SEEK_FLAG_KEY_UNIT ) == GST_SEEK_FLAG_KEY_UNIT ) ;\n after = ( ( flags & GST_SEEK_FLAG_SNAP_AFTER ) == GST_SEEK_FLAG_SNAP_AFTER ) ;\n before = ( ( flags & GST_SEEK_FLAG_SNAP_BEFORE ) == GST_SEEK_FLAG_SNAP_BEFORE ) ;\n next = after && ! before ;\n if ( G_UNLIKELY ( demux -> streaming ) ) {\n if ( ! flush ) {\n GST_LOG_OBJECT ( demux , \"streaming;\n non-flushing seek not supported\" ) ;\n return FALSE ;\n }\n if ( stop_type != GST_SEEK_TYPE_NONE && ( stop_type != GST_SEEK_TYPE_SET || GST_CLOCK_TIME_IS_VALID ( stop ) ) ) {\n GST_LOG_OBJECT ( demux , \"streaming;\n end position must be NONE\" ) ;\n return FALSE ;\n }\n return gst_asf_demux_handle_seek_push ( demux , event ) ;\n }\n if ( G_LIKELY ( flush ) ) {\n fevent = gst_event_new_flush_start ( ) ;\n gst_event_set_seqnum ( fevent , seqnum ) ;\n gst_pad_push_event ( demux -> sinkpad , gst_event_ref ( fevent ) ) ;\n gst_asf_demux_send_event_unlocked ( demux , fevent ) ;\n }\n else {\n gst_pad_pause_task ( demux -> sinkpad ) ;\n }\n GST_PAD_STREAM_LOCK ( demux -> sinkpad ) ;\n fevent = gst_event_new_flush_stop ( TRUE ) ;\n gst_event_set_seqnum ( fevent , seqnum ) ;\n gst_pad_push_event ( demux -> sinkpad , gst_event_ref ( fevent ) ) ;\n if ( G_LIKELY ( flush ) ) gst_asf_demux_send_event_unlocked ( demux , fevent ) ;\n else gst_event_unref ( fevent ) ;\n segment = demux -> segment ;\n if ( G_UNLIKELY ( demux -> segment_running && ! flush ) ) {\n GstSegment newsegment ;\n GstEvent * newseg ;\n gst_segment_copy_into ( & segment , & newsegment ) ;\n newseg = gst_event_new_segment ( & newsegment ) ;\n gst_event_set_seqnum ( newseg , seqnum ) ;\n gst_asf_demux_send_event_unlocked ( demux , newseg ) ;\n }\n gst_segment_do_seek ( & segment , rate , format , flags , cur_type , cur , stop_type , stop , & only_need_update ) ;\n GST_DEBUG_OBJECT ( demux , \"seeking to time %\" GST_TIME_FORMAT \", segment: \" \"%\" GST_SEGMENT_FORMAT , GST_TIME_ARGS ( segment . start ) , & segment ) ;\n if ( cur_type != GST_SEEK_TYPE_SET ) seek_time = segment . start ;\n else seek_time = cur ;\n if ( G_UNLIKELY ( ! gst_asf_demux_seek_index_lookup ( demux , & packet , seek_time , & idx_time , & speed_count , next , & eos ) ) ) {\n gint64 offset ;\n if ( eos ) {\n demux -> packet = demux -> num_packets ;\n goto skip ;\n }\n if ( gst_pad_peer_query_convert ( demux -> sinkpad , GST_FORMAT_TIME , seek_time , GST_FORMAT_BYTES , & offset ) ) {\n packet = ( offset - demux -> data_offset ) / demux -> packet_size ;\n GST_LOG_OBJECT ( demux , \"convert %\" GST_TIME_FORMAT \" to bytes query result: %\" G_GINT64_FORMAT \", data_ofset: %\" G_GINT64_FORMAT \", packet_size: %u,\" \" resulting packet: %u\\n\" , GST_TIME_ARGS ( seek_time ) , offset , demux -> data_offset , demux -> packet_size , packet ) ;\n }\n else {\n if ( flush && ( demux -> accurate || ( demux -> keyunit_sync && ! next ) ) && demux -> num_video_streams > 0 ) {\n seek_time -= 5 * GST_SECOND ;\n if ( seek_time < 0 ) seek_time = 0 ;\n }\n packet = ( guint ) gst_util_uint64_scale ( demux -> num_packets , seek_time , demux -> play_time ) ;\n if ( packet > demux -> num_packets ) packet = demux -> num_packets ;\n }\n }\n else {\n if ( G_LIKELY ( demux -> keyunit_sync && ! demux -> accurate ) ) {\n GST_DEBUG_OBJECT ( demux , \"key unit seek, adjust seek_time = %\" GST_TIME_FORMAT \" to index_time = %\" GST_TIME_FORMAT , GST_TIME_ARGS ( seek_time ) , GST_TIME_ARGS ( idx_time ) ) ;\n segment . start = idx_time ;\n segment . position = idx_time ;\n segment . time = idx_time ;\n }\n }\n GST_DEBUG_OBJECT ( demux , \"seeking to packet %u (%d)\" , packet , speed_count ) ;\n GST_OBJECT_LOCK ( demux ) ;\n demux -> segment = segment ;\n if ( GST_ASF_DEMUX_IS_REVERSE_PLAYBACK ( demux -> segment ) ) {\n demux -> packet = ( gint64 ) gst_util_uint64_scale ( demux -> num_packets , stop , demux -> play_time ) ;\n }\n else {\n demux -> packet = packet ;\n }\n demux -> need_newsegment = TRUE ;\n demux -> segment_seqnum = seqnum ;\n demux -> speed_packets = GST_ASF_DEMUX_IS_REVERSE_PLAYBACK ( demux -> segment ) ? 1 : speed_count ;\n gst_asf_demux_reset_stream_state_after_discont ( demux ) ;\n GST_OBJECT_UNLOCK ( demux ) ;\n skip : gst_pad_start_task ( demux -> sinkpad , ( GstTaskFunction ) gst_asf_demux_loop , demux , NULL ) ;\n GST_PAD_STREAM_UNLOCK ( demux -> sinkpad ) ;\n return TRUE ;\n }"}
{"idx": 19840, "target": 0, "func": "PHP_FUNCTION ( locale_compose ) {\n smart_str loc_name_s = {\n 0 }\n ;\n smart_str * loc_name = & loc_name_s ;\n zval * arr = NULL ;\n HashTable * hash_arr = NULL ;\n int result = 0 ;\n intl_error_reset ( NULL TSRMLS_CC ) ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"a\" , & arr ) == FAILURE ) {\n intl_error_set ( NULL , U_ILLEGAL_ARGUMENT_ERROR , \"locale_compose: unable to parse input params\" , 0 TSRMLS_CC ) ;\n RETURN_FALSE ;\n }\n hash_arr = HASH_OF ( arr ) ;\n if ( ! hash_arr || zend_hash_num_elements ( hash_arr ) == 0 ) RETURN_FALSE ;\n result = append_key_value ( loc_name , hash_arr , LOC_GRANDFATHERED_LANG_TAG ) ;\n if ( result == SUCCESS ) {\n RETURN_SMART_STR ( loc_name ) ;\n }\n if ( ! handleAppendResult ( result , loc_name TSRMLS_CC ) ) {\n RETURN_FALSE ;\n }\n result = append_key_value ( loc_name , hash_arr , LOC_LANG_TAG ) ;\n if ( result == LOC_NOT_FOUND ) {\n intl_error_set ( NULL , U_ILLEGAL_ARGUMENT_ERROR , \"locale_compose: parameter array does not contain 'language' tag.\" , 0 TSRMLS_CC ) ;\n smart_str_free ( loc_name ) ;\n RETURN_FALSE ;\n }\n if ( ! handleAppendResult ( result , loc_name TSRMLS_CC ) ) {\n RETURN_FALSE ;\n }\n result = append_multiple_key_values ( loc_name , hash_arr , LOC_EXTLANG_TAG TSRMLS_CC ) ;\n if ( ! handleAppendResult ( result , loc_name TSRMLS_CC ) ) {\n RETURN_FALSE ;\n }\n result = append_key_value ( loc_name , hash_arr , LOC_SCRIPT_TAG ) ;\n if ( ! handleAppendResult ( result , loc_name TSRMLS_CC ) ) {\n RETURN_FALSE ;\n }\n result = append_key_value ( loc_name , hash_arr , LOC_REGION_TAG ) ;\n if ( ! handleAppendResult ( result , loc_name TSRMLS_CC ) ) {\n RETURN_FALSE ;\n }\n result = append_multiple_key_values ( loc_name , hash_arr , LOC_VARIANT_TAG TSRMLS_CC ) ;\n if ( ! handleAppendResult ( result , loc_name TSRMLS_CC ) ) {\n RETURN_FALSE ;\n }\n result = append_multiple_key_values ( loc_name , hash_arr , LOC_PRIVATE_TAG TSRMLS_CC ) ;\n if ( ! handleAppendResult ( result , loc_name TSRMLS_CC ) ) {\n RETURN_FALSE ;\n }\n RETURN_SMART_STR ( loc_name ) ;\n }"}
{"idx": 19841, "target": 1, "func": "static int decode_tag ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n NellyMoserDecodeContext * s = avctx -> priv_data ;\n int blocks , i , ret ;\n float * samples_flt ;\n blocks = buf_size / NELLY_BLOCK_LEN ;\n if ( blocks <= 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Packet is too small\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( buf_size % NELLY_BLOCK_LEN ) {\n av_log ( avctx , AV_LOG_WARNING , \"Leftover bytes: %d.\\n\" , buf_size % NELLY_BLOCK_LEN ) ;\n }\n frame -> nb_samples = NELLY_SAMPLES * blocks ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n samples_flt = ( float * ) frame -> data [ 0 ] ;\n for ( i = 0 ;\n i < blocks ;\n i ++ ) {\n nelly_decode_block ( s , buf , samples_flt ) ;\n samples_flt += NELLY_SAMPLES ;\n buf += NELLY_BLOCK_LEN ;\n }\n * got_frame_ptr = 1 ;\n return buf_size ;\n }"}
{"idx": 19842, "target": 0, "func": "int X509_REQ_digest ( const X509_REQ * data , const EVP_MD * type , unsigned char * md , unsigned int * len ) {\n return ( ASN1_item_digest ( ASN1_ITEM_rptr ( X509_REQ ) , type , ( char * ) data , md , len ) ) ;\n }"}
{"idx": 19843, "target": 0, "func": "static void ffprobe_show_pixel_formats ( WriterContext * w ) {\n const AVPixFmtDescriptor * pixdesc = NULL ;\n int i , n ;\n writer_print_section_header ( w , SECTION_ID_PIXEL_FORMATS ) ;\n while ( pixdesc = av_pix_fmt_desc_next ( pixdesc ) ) {\n writer_print_section_header ( w , SECTION_ID_PIXEL_FORMAT ) ;\n print_str ( \"name\" , pixdesc -> name ) ;\n print_int ( \"nb_components\" , pixdesc -> nb_components ) ;\n if ( ( pixdesc -> nb_components >= 3 ) && ! ( pixdesc -> flags & AV_PIX_FMT_FLAG_RGB ) ) {\n print_int ( \"log2_chroma_w\" , pixdesc -> log2_chroma_w ) ;\n print_int ( \"log2_chroma_h\" , pixdesc -> log2_chroma_h ) ;\n }\n else {\n print_str_opt ( \"log2_chroma_w\" , \"N/A\" ) ;\n print_str_opt ( \"log2_chroma_h\" , \"N/A\" ) ;\n }\n n = av_get_bits_per_pixel ( pixdesc ) ;\n if ( n ) print_int ( \"bits_per_pixel\" , n ) ;\n else print_str_opt ( \"bits_per_pixel\" , \"N/A\" ) ;\n if ( do_show_pixel_format_flags ) {\n writer_print_section_header ( w , SECTION_ID_PIXEL_FORMAT_FLAGS ) ;\n PRINT_PIX_FMT_FLAG ( BE , \"big_endian\" ) ;\n PRINT_PIX_FMT_FLAG ( PAL , \"palette\" ) ;\n PRINT_PIX_FMT_FLAG ( BITSTREAM , \"bitstream\" ) ;\n PRINT_PIX_FMT_FLAG ( HWACCEL , \"hwaccel\" ) ;\n PRINT_PIX_FMT_FLAG ( PLANAR , \"planar\" ) ;\n PRINT_PIX_FMT_FLAG ( RGB , \"rgb\" ) ;\n PRINT_PIX_FMT_FLAG ( PSEUDOPAL , \"pseudopal\" ) ;\n PRINT_PIX_FMT_FLAG ( ALPHA , \"alpha\" ) ;\n writer_print_section_footer ( w ) ;\n }\n if ( do_show_pixel_format_components && ( pixdesc -> nb_components > 0 ) ) {\n writer_print_section_header ( w , SECTION_ID_PIXEL_FORMAT_COMPONENTS ) ;\n for ( i = 0 ;\n i < pixdesc -> nb_components ;\n i ++ ) {\n writer_print_section_header ( w , SECTION_ID_PIXEL_FORMAT_COMPONENT ) ;\n print_int ( \"index\" , i + 1 ) ;\n print_int ( \"bit_depth\" , pixdesc -> comp [ i ] . depth ) ;\n writer_print_section_footer ( w ) ;\n }\n writer_print_section_footer ( w ) ;\n }\n writer_print_section_footer ( w ) ;\n }\n writer_print_section_footer ( w ) ;\n }"}
{"idx": 19844, "target": 0, "func": "static int dissect_h225_DataRate ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_DataRate , DataRate_sequence ) ;\n return offset ;\n }"}
{"idx": 19845, "target": 0, "func": "void usage_exit ( ) {\n fprintf ( stderr , \"Usage: %s <width> <height> <infile> <outfile(s)> <output psnr?>\\n\" , exec_name ) ;\n exit ( EXIT_FAILURE ) ;\n }"}
{"idx": 19846, "target": 0, "func": "static inline int get_bits_diff ( MpegEncContext * s ) {\n const int bits = put_bits_count ( & s -> pb ) ;\n const int last = s -> last_bits ;\n s -> last_bits = bits ;\n return bits - last ;\n }"}
{"idx": 19847, "target": 0, "func": "afs_int32 SPR_Delete ( struct rx_call * call , afs_int32 aid ) {\n afs_int32 code ;\n afs_int32 cid = ANONYMOUSID ;\n code = Delete ( call , aid , & cid ) ;\n osi_auditU ( call , PTS_DelEvent , code , AUD_ID , aid , AUD_END ) ;\n ViceLog ( 5 , ( \"PTS_Delete: code %d cid %d aid %d\\n\" , code , cid , aid ) ) ;\n return code ;\n }"}
{"idx": 19848, "target": 0, "func": "int xmlHashRemoveEntry3 ( xmlHashTablePtr table , const xmlChar * name , const xmlChar * name2 , const xmlChar * name3 , xmlHashDeallocator f ) {\n unsigned long key ;\n xmlHashEntryPtr entry ;\n xmlHashEntryPtr prev = NULL ;\n if ( table == NULL || name == NULL ) return ( - 1 ) ;\n key = xmlHashComputeKey ( table , name , name2 , name3 ) ;\n if ( table -> table [ key ] . valid == 0 ) {\n return ( - 1 ) ;\n }\n else {\n for ( entry = & ( table -> table [ key ] ) ;\n entry != NULL ;\n entry = entry -> next ) {\n if ( xmlStrEqual ( entry -> name , name ) && xmlStrEqual ( entry -> name2 , name2 ) && xmlStrEqual ( entry -> name3 , name3 ) ) {\n if ( ( f != NULL ) && ( entry -> payload != NULL ) ) f ( entry -> payload , entry -> name ) ;\n entry -> payload = NULL ;\n if ( table -> dict == NULL ) {\n if ( entry -> name ) xmlFree ( entry -> name ) ;\n if ( entry -> name2 ) xmlFree ( entry -> name2 ) ;\n if ( entry -> name3 ) xmlFree ( entry -> name3 ) ;\n }\n if ( prev ) {\n prev -> next = entry -> next ;\n xmlFree ( entry ) ;\n }\n else {\n if ( entry -> next == NULL ) {\n entry -> valid = 0 ;\n }\n else {\n entry = entry -> next ;\n memcpy ( & ( table -> table [ key ] ) , entry , sizeof ( xmlHashEntry ) ) ;\n xmlFree ( entry ) ;\n }\n }\n table -> nbElems -- ;\n return ( 0 ) ;\n }\n prev = entry ;\n }\n return ( - 1 ) ;\n }\n }"}
{"idx": 19849, "target": 0, "func": "static int truespeech_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n TSContext * c = avctx -> priv_data ;\n int i , j ;\n int16_t * samples ;\n int iterations , ret ;\n iterations = buf_size / 32 ;\n if ( ! iterations ) {\n av_log ( avctx , AV_LOG_ERROR , \"Too small input buffer (%d bytes), need at least 32 bytes\\n\" , buf_size ) ;\n return - 1 ;\n }\n frame -> nb_samples = iterations * 240 ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n samples = ( int16_t * ) frame -> data [ 0 ] ;\n memset ( samples , 0 , iterations * 240 * sizeof ( * samples ) ) ;\n for ( j = 0 ;\n j < iterations ;\n j ++ ) {\n truespeech_read_frame ( c , buf ) ;\n buf += 32 ;\n truespeech_correlate_filter ( c ) ;\n truespeech_filters_merge ( c ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n truespeech_apply_twopoint_filter ( c , i ) ;\n truespeech_place_pulses ( c , samples , i ) ;\n truespeech_update_filters ( c , samples , i ) ;\n truespeech_synth ( c , samples , i ) ;\n samples += 60 ;\n }\n truespeech_save_prevvec ( c ) ;\n }\n * got_frame_ptr = 1 ;\n return buf_size ;\n }"}
{"idx": 19850, "target": 0, "func": "TEST_F ( BrowsingDataRemoverImplTest , RemoveChannelIDLastHour ) {\n RemoveChannelIDTester tester ( GetBrowserContext ( ) ) ;\n base : : Time now = base : : Time : : Now ( ) ;\n tester . AddChannelID ( kTestOrigin1 ) ;\n tester . AddChannelIDWithTimes ( kTestOrigin2 , now - base : : TimeDelta : : FromHours ( 2 ) ) ;\n EXPECT_EQ ( 0 , tester . ssl_config_changed_count ( ) ) ;\n EXPECT_EQ ( 2 , tester . ChannelIDCount ( ) ) ;\n BlockUntilBrowsingDataRemoved ( AnHourAgo ( ) , base : : Time : : Max ( ) , BrowsingDataRemover : : REMOVE_CHANNEL_IDS , false ) ;\n EXPECT_EQ ( BrowsingDataRemover : : REMOVE_CHANNEL_IDS , GetRemovalMask ( ) ) ;\n EXPECT_EQ ( BrowsingDataHelper : : UNPROTECTED_WEB , GetOriginTypeMask ( ) ) ;\n EXPECT_EQ ( 1 , tester . ssl_config_changed_count ( ) ) ;\n ASSERT_EQ ( 1 , tester . ChannelIDCount ( ) ) ;\n net : : ChannelIDStore : : ChannelIDList channel_ids ;\n tester . GetChannelIDList ( & channel_ids ) ;\n ASSERT_EQ ( 1U , channel_ids . size ( ) ) ;\n EXPECT_EQ ( kTestOrigin2 , channel_ids . front ( ) . server_identifier ( ) ) ;\n }"}
{"idx": 19851, "target": 0, "func": "void name ## _free ( type * a ) ;\n # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ;\n # define D2I_OF ( type ) type * ( * ) ( type * * , const unsigned char * * , long ) # define I2D_OF ( type ) int ( * ) ( type * , unsigned char * * ) # define I2D_OF_const ( type ) int ( * ) ( const type * , unsigned char * * ) # define CHECKED_D2I_OF ( type , d2i ) ( ( d2i_of_void * ) ( 1 ? d2i : ( ( D2I_OF ( type ) ) 0 ) ) ) # define CHECKED_I2D_OF ( type , i2d ) ( ( i2d_of_void * ) ( 1 ? i2d : ( ( I2D_OF ( type ) ) 0 ) ) ) # define CHECKED_NEW_OF ( type , xnew ) ( ( void * ( * ) ( void ) ) ( 1 ? xnew : ( ( type * ( * ) ( void ) ) 0 ) ) ) # define CHECKED_PTR_OF ( type , p ) ( ( void * ) ( 1 ? p : ( type * ) 0 ) ) # define CHECKED_PPTR_OF ( type , p ) ( ( void * * ) ( 1 ? p : ( type * * ) 0 ) ) # define TYPEDEF_D2I_OF ( type ) typedef type * d2i_of_ ## type ( type * * , const unsigned char * * , long ) # define TYPEDEF_I2D_OF ( type ) typedef int i2d_of_ ## type ( type * , unsigned char * * ) # define TYPEDEF_D2I2D_OF ( type ) TYPEDEF_D2I_OF ( type ) ;\n TYPEDEF_I2D_OF ( type ) TYPEDEF_D2I2D_OF ( void ) ;\n # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION typedef const ASN1_ITEM ASN1_ITEM_EXP ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ) # define ASN1_ITEM_ref ( iptr ) ( & ( iptr ## _it ) ) # define ASN1_ITEM_rptr ( ref ) ( & ( ref ## _it ) ) # define DECLARE_ASN1_ITEM ( name ) OPENSSL_EXTERN const ASN1_ITEM name ## _it ;\n # else typedef const ASN1_ITEM * ASN1_ITEM_EXP ( void ) ;\n # define ASN1_ITEM_ptr ( iptr ) ( iptr ( ) ) # define ASN1_ITEM_ref ( iptr ) ( iptr ## _it ) # define ASN1_ITEM_rptr ( ref ) ( ref ## _it ( ) ) # define DECLARE_ASN1_ITEM ( name ) const ASN1_ITEM * name ## _it ( void ) ;\n # endif # define ASN1_STRFLGS_ESC_2253 1 # define ASN1_STRFLGS_ESC_CTRL 2 # define ASN1_STRFLGS_ESC_MSB 4 # define ASN1_STRFLGS_ESC_QUOTE 8 # define CHARTYPE_PRINTABLESTRING 0x10 # define CHARTYPE_FIRST_ESC_2253 0x20 # define CHARTYPE_LAST_ESC_2253 0x40 # define ASN1_STRFLGS_UTF8_CONVERT 0x10 # define ASN1_STRFLGS_IGNORE_TYPE 0x20 # define ASN1_STRFLGS_SHOW_TYPE 0x40 # define ASN1_STRFLGS_DUMP_ALL 0x80 # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 # define ASN1_STRFLGS_DUMP_DER 0x200 # define ASN1_STRFLGS_ESC_2254 0x400 # define ASN1_STRFLGS_RFC2253 ( ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN | ASN1_STRFLGS_DUMP_DER ) DEFINE_STACK_OF ( ASN1_INTEGER ) DEFINE_STACK_OF ( ASN1_GENERALSTRING ) DEFINE_STACK_OF ( ASN1_UTF8STRING ) typedef struct asn1_type_st {\n int type ;\n union {\n char * ptr ;\n ASN1_BOOLEAN boolean ;\n ASN1_STRING * asn1_string ;\n ASN1_OBJECT * object ;\n ASN1_INTEGER * integer ;\n ASN1_ENUMERATED * enumerated ;\n ASN1_BIT_STRING * bit_string ;\n ASN1_OCTET_STRING * octet_string ;\n ASN1_PRINTABLESTRING * printablestring ;\n ASN1_T61STRING * t61string ;\n ASN1_IA5STRING * ia5string ;\n ASN1_GENERALSTRING * generalstring ;\n ASN1_BMPSTRING * bmpstring ;\n ASN1_UNIVERSALSTRING * universalstring ;\n ASN1_UTCTIME * utctime ;\n ASN1_GENERALIZEDTIME * generalizedtime ;\n ASN1_VISIBLESTRING * visiblestring ;\n ASN1_UTF8STRING * utf8string ;\n ASN1_STRING * set ;\n ASN1_STRING * sequence ;\n ASN1_VALUE * asn1_value ;\n }\n value ;\n }\n ASN1_TYPE ;\n DEFINE_STACK_OF ( ASN1_TYPE ) typedef STACK_OF ( ASN1_TYPE ) ASN1_SEQUENCE_ANY ;\n DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SEQUENCE_ANY ) DECLARE_ASN1_ENCODE_FUNCTIONS_const ( ASN1_SEQUENCE_ANY , ASN1_SET_ANY ) typedef struct BIT_STRING_BITNAME_st {\n int bitnum ;\n const char * lname ;\n const char * sname ;\n }\n BIT_STRING_BITNAME ;\n # define B_ASN1_TIME B_ASN1_UTCTIME | B_ASN1_GENERALIZEDTIME # define B_ASN1_PRINTABLE B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING | B_ASN1_BIT_STRING | B_ASN1_UNIVERSALSTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING | B_ASN1_SEQUENCE | B_ASN1_UNKNOWN # define B_ASN1_DIRECTORYSTRING B_ASN1_PRINTABLESTRING | B_ASN1_TELETEXSTRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING # define B_ASN1_DISPLAYTEXT B_ASN1_IA5STRING | B_ASN1_VISIBLESTRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING DECLARE_ASN1_FUNCTIONS_fname ( ASN1_TYPE , ASN1_ANY , ASN1_TYPE ) int ASN1_TYPE_get ( const ASN1_TYPE * a ) ;\n void ASN1_TYPE_set ( ASN1_TYPE * a , int type , void * value ) ;\n int ASN1_TYPE_set1 ( ASN1_TYPE * a , int type , const void * value ) ;\n int ASN1_TYPE_cmp ( const ASN1_TYPE * a , const ASN1_TYPE * b ) ;\n ASN1_TYPE * ASN1_TYPE_pack_sequence ( const ASN1_ITEM * it , void * s , ASN1_TYPE * * t ) ;\n void * ASN1_TYPE_unpack_sequence ( const ASN1_ITEM * it , const ASN1_TYPE * t ) ;\n ASN1_OBJECT * ASN1_OBJECT_new ( void ) ;\n void ASN1_OBJECT_free ( ASN1_OBJECT * a ) ;\n int i2d_ASN1_OBJECT ( const ASN1_OBJECT * a , unsigned char * * pp ) ;\n ASN1_OBJECT * d2i_ASN1_OBJECT ( ASN1_OBJECT * * a , const unsigned char * * pp , long length ) ;\n DECLARE_ASN1_ITEM ( ASN1_OBJECT ) DEFINE_STACK_OF ( ASN1_OBJECT ) ASN1_STRING * ASN1_STRING_new ( void ) ;\n void ASN1_STRING_free ( ASN1_STRING * a ) ;\n void ASN1_STRING_clear_free ( ASN1_STRING * a ) ;\n int ASN1_STRING_copy ( ASN1_STRING * dst , const ASN1_STRING * str ) ;\n ASN1_STRING * ASN1_STRING_dup ( const ASN1_STRING * a ) ;\n ASN1_STRING * ASN1_STRING_type_new ( int type ) ;\n int ASN1_STRING_cmp ( const ASN1_STRING * a , const ASN1_STRING * b ) ;\n int ASN1_STRING_set ( ASN1_STRING * str , const void * data , int len ) ;\n void ASN1_STRING_set0 ( ASN1_STRING * str , void * data , int len ) ;\n int ASN1_STRING_length ( const ASN1_STRING * x ) ;\n void ASN1_STRING_length_set ( ASN1_STRING * x , int n ) ;\n int ASN1_STRING_type ( const ASN1_STRING * x ) ;\n DEPRECATEDIN_1_1_0 ( unsigned char * ASN1_STRING_data ( ASN1_STRING * x ) ) const unsigned char * ASN1_STRING_get0_data ( const ASN1_STRING * x ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_BIT_STRING ) int ASN1_BIT_STRING_set ( ASN1_BIT_STRING * a , unsigned char * d , int length ) ;\n int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) ;\n int ASN1_BIT_STRING_get_bit ( const ASN1_BIT_STRING * a , int n ) ;\n int ASN1_BIT_STRING_check ( const ASN1_BIT_STRING * a , const unsigned char * flags , int flags_len ) ;\n int ASN1_BIT_STRING_name_print ( BIO * out , ASN1_BIT_STRING * bs , BIT_STRING_BITNAME * tbl , int indent ) ;\n int ASN1_BIT_STRING_num_asc ( const char * name , BIT_STRING_BITNAME * tbl ) ;\n int ASN1_BIT_STRING_set_asc ( ASN1_BIT_STRING * bs , const char * name , int value , BIT_STRING_BITNAME * tbl ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_INTEGER ) ASN1_INTEGER * d2i_ASN1_UINTEGER ( ASN1_INTEGER * * a , const unsigned char * * pp , long length ) ;\n ASN1_INTEGER * ASN1_INTEGER_dup ( const ASN1_INTEGER * x ) ;\n int ASN1_INTEGER_cmp ( const ASN1_INTEGER * x , const ASN1_INTEGER * y ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_ENUMERATED ) int ASN1_UTCTIME_check ( const ASN1_UTCTIME * a ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_set ( ASN1_UTCTIME * s , time_t t ) ;\n ASN1_UTCTIME * ASN1_UTCTIME_adj ( ASN1_UTCTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_UTCTIME_set_string ( ASN1_UTCTIME * s , const char * str ) ;\n int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME * s , time_t t ) ;\n int ASN1_GENERALIZEDTIME_check ( const ASN1_GENERALIZEDTIME * a ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_set ( ASN1_GENERALIZEDTIME * s , time_t t ) ;\n ASN1_GENERALIZEDTIME * ASN1_GENERALIZEDTIME_adj ( ASN1_GENERALIZEDTIME * s , time_t t , int offset_day , long offset_sec ) ;\n int ASN1_GENERALIZEDTIME_set_string ( ASN1_GENERALIZEDTIME * s , const char * str ) ;\n int ASN1_TIME_diff ( int * pday , int * psec , const ASN1_TIME * from , const ASN1_TIME * to ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_OCTET_STRING ) ASN1_OCTET_STRING * ASN1_OCTET_STRING_dup ( const ASN1_OCTET_STRING * a ) ;\n int ASN1_OCTET_STRING_cmp ( const ASN1_OCTET_STRING * a , const ASN1_OCTET_STRING * b ) ;\n int ASN1_OCTET_STRING_set ( ASN1_OCTET_STRING * str , const unsigned char * data , int len ) ;\n DECLARE_ASN1_FUNCTIONS ( ASN1_VISIBLESTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UNIVERSALSTRING ) DECLARE_ASN1_FUNCTIONS ( ASN1_UTF8STRING )"}
{"idx": 19852, "target": 0, "func": "static void fetch_symref ( const char * path , char * * symref , unsigned char * sha1 ) {\n char * url = xstrfmt ( \"%s%s\" , repo -> url , path ) ;\n struct strbuf buffer = STRBUF_INIT ;\n const char * name ;\n if ( http_get_strbuf ( url , & buffer , NULL ) != HTTP_OK ) die ( \"Couldn't get %s for remote symref\\n%s\" , url , curl_errorstr ) ;\n free ( url ) ;\n free ( * symref ) ;\n * symref = NULL ;\n hashclr ( sha1 ) ;\n if ( buffer . len == 0 ) return ;\n strbuf_rtrim ( & buffer ) ;\n if ( skip_prefix ( buffer . buf , \"ref: \" , & name ) ) {\n * symref = xmemdupz ( name , buffer . len - ( name - buffer . buf ) ) ;\n }\n else {\n get_sha1_hex ( buffer . buf , sha1 ) ;\n }\n strbuf_release ( & buffer ) ;\n }"}
{"idx": 19853, "target": 0, "func": "void http_suite ( void ) {\n http_base_test ( ) ;\n http_bad_header_test ( ) ;\n http_parse_query_test ( ) ;\n http_basic_test ( ) ;\n http_connection_test ( 0 ) ;\n http_connection_test ( 1 ) ;\n http_close_detection ( 0 ) ;\n http_close_detection ( 1 ) ;\n http_bad_request ( ) ;\n http_post_test ( ) ;\n http_failure_test ( ) ;\n http_highport_test ( ) ;\n http_dispatcher_test ( ) ;\n http_multi_line_header_test ( ) ;\n http_negative_content_length_test ( ) ;\n http_chunked_test ( ) ;\n http_terminate_chunked_test ( ) ;\n }"}
{"idx": 19854, "target": 1, "func": "void vp9_ ## type ## _predictor_ ## size ## x ## size ## _c ( uint8_t * dst , ptrdiff_t stride , const uint8_t * above , const uint8_t * left ) {\n type ## _predictor ( dst , stride , size , above , left ) ;\n }\n # define intra_pred_allsizes ( type ) intra_pred_sized ( type , 4 ) intra_pred_sized ( type , 8 ) intra_pred_sized ( type , 16 ) intra_pred_sized ( type , 32 ) static INLINE void d207_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs - 1 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] , 1 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( r = 0 ;\n r < bs - 2 ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r ] + left [ r + 1 ] * 2 + left [ r + 2 ] , 2 ) ;\n dst [ ( bs - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ bs - 2 ] + left [ bs - 1 ] * 3 , 2 ) ;\n dst [ ( bs - 1 ) * stride ] = left [ bs - 1 ] ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ ( bs - 1 ) * stride + c ] = left [ bs - 1 ] ;\n for ( r = bs - 2 ;\n r >= 0 ;\n -- r ) for ( c = 0 ;\n c < bs - 2 ;\n ++ c ) dst [ r * stride + c ] = dst [ ( r + 1 ) * stride + c - 2 ] ;\n }\n intra_pred_allsizes ( d207 ) static INLINE void d63_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r & 1 ? ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] * 2 + above [ r / 2 + c + 2 ] , 2 ) : ROUND_POWER_OF_TWO ( above [ r / 2 + c ] + above [ r / 2 + c + 1 ] , 1 ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d63 ) static INLINE void d45_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs ;\n ++ c ) dst [ c ] = r + c + 2 < bs * 2 ? ROUND_POWER_OF_TWO ( above [ r + c ] + above [ r + c + 1 ] * 2 + above [ r + c + 2 ] , 2 ) : above [ bs * 2 - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d45 ) static INLINE void d117_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n for ( c = 0 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] , 1 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst += stride ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 3 ;\n r < bs ;\n ++ r ) dst [ ( r - 2 ) * stride ] = ROUND_POWER_OF_TWO ( left [ r - 3 ] + left [ r - 2 ] * 2 + left [ r - 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - 2 * stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d117 ) static INLINE void d135_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 2 ] + above [ c - 1 ] * 2 + above [ c ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n ++ r ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 1 ;\n c < bs ;\n c ++ ) dst [ c ] = dst [ - stride + c - 1 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d135 ) static INLINE void d153_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r , c ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] , 1 ) ;\n for ( r = 1 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 1 ] + left [ r ] , 1 ) ;\n dst ++ ;\n dst [ 0 ] = ROUND_POWER_OF_TWO ( left [ 0 ] + above [ - 1 ] * 2 + above [ 0 ] , 2 ) ;\n dst [ stride ] = ROUND_POWER_OF_TWO ( above [ - 1 ] + left [ 0 ] * 2 + left [ 1 ] , 2 ) ;\n for ( r = 2 ;\n r < bs ;\n r ++ ) dst [ r * stride ] = ROUND_POWER_OF_TWO ( left [ r - 2 ] + left [ r - 1 ] * 2 + left [ r ] , 2 ) ;\n dst ++ ;\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = ROUND_POWER_OF_TWO ( above [ c - 1 ] + above [ c ] * 2 + above [ c + 1 ] , 2 ) ;\n dst += stride ;\n for ( r = 1 ;\n r < bs ;\n ++ r ) {\n for ( c = 0 ;\n c < bs - 2 ;\n c ++ ) dst [ c ] = dst [ - stride + c - 2 ] ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( d153 ) static INLINE void v_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r ;\n ( void ) left ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memcpy ( dst , above , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( v ) static INLINE void h_predictor ( uint8_t * dst , ptrdiff_t stride , int bs , const uint8_t * above , const uint8_t * left ) {\n int r ;\n ( void ) above ;\n for ( r = 0 ;\n r < bs ;\n r ++ ) {\n vpx_memset ( dst , left [ r ] , bs ) ;\n dst += stride ;\n }\n }\n intra_pred_allsizes ( h )"}
{"idx": 19855, "target": 0, "func": "static int dissect_h225_T_empty_flg ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 377 \"./asn1/h225/h225.cnf\" h225_packet_info * h225_pi ;\n offset = dissect_per_null ( tvb , offset , actx , tree , hf_index ) ;\n # line 381 \"./asn1/h225/h225.cnf\" h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> cs_type = H225_EMPTY ;\n }\n return offset ;\n }"}
{"idx": 19856, "target": 1, "func": "static void s390_virtio_register ( void ) {\n s390_virtio_bus_register_withprop ( & s390_virtio_console ) ;\n s390_virtio_bus_register_withprop ( & s390_virtio_blk ) ;\n s390_virtio_bus_register_withprop ( & s390_virtio_net ) ;\n }"}
{"idx": 19857, "target": 0, "func": "int qemuMonitorTextGetBalloonInfo ( qemuMonitorPtr mon , unsigned long * currmem ) {\n char * reply = NULL ;\n int ret = - 1 ;\n char * offset ;\n if ( qemuMonitorHMPCommand ( mon , \"info balloon\" , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , \"%s\" , _ ( \"could not query memory balloon allocation\" ) ) ;\n return - 1 ;\n }\n if ( ( offset = strstr ( reply , BALLOON_PREFIX ) ) != NULL ) {\n offset += strlen ( BALLOON_PREFIX ) ;\n struct _virDomainMemoryStat stats [ 1 ] ;\n if ( qemuMonitorParseBalloonInfo ( offset , stats , 1 ) == 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"unexpected balloon information '%s'\" ) , reply ) ;\n goto cleanup ;\n }\n if ( stats [ 0 ] . tag != VIR_DOMAIN_MEMORY_STAT_ACTUAL_BALLOON ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"unexpected balloon information '%s'\" ) , reply ) ;\n goto cleanup ;\n }\n * currmem = stats [ 0 ] . val ;\n ret = 1 ;\n }\n else {\n ret = 0 ;\n }\n cleanup : VIR_FREE ( reply ) ;\n return ret ;\n }"}
{"idx": 19858, "target": 0, "func": "int X509_REQ_add1_attr ( X509_REQ * req , X509_ATTRIBUTE * attr ) {\n if ( X509at_add1_attr ( & req -> req_info -> attributes , attr ) ) return 1 ;\n return 0 ;\n }"}
{"idx": 19859, "target": 1, "func": "static OFCondition parsePresentationContext ( unsigned char type , PRV_PRESENTATIONCONTEXTITEM * context , unsigned char * buf , unsigned long * itemLength , unsigned long availData ) {\n unsigned long length ;\n unsigned long presentationLength ;\n OFCondition cond = EC_Normal ;\n DUL_SUBITEM * subItem ;\n if ( availData < 8 ) return makeLengthError ( \"presentation context\" , availData , 8 ) ;\n if ( ( context -> transferSyntaxList = LST_Create ( ) ) == NULL ) return EC_MemoryExhausted ;\n * itemLength = 0 ;\n context -> type = * buf ++ ;\n context -> rsv1 = * buf ++ ;\n EXTRACT_SHORT_BIG ( buf , context -> length ) ;\n buf += 2 ;\n context -> contextID = * buf ++ ;\n context -> rsv2 = * buf ++ ;\n context -> result = * buf ++ ;\n context -> rsv3 = * buf ++ ;\n length = context -> length ;\n * itemLength = 2 + 2 + length ;\n if ( availData - 4 < length || length < 4 ) return makeLengthError ( \"presentation context\" , availData , 4 , length ) ;\n DCMNET_TRACE ( \"Parsing Presentation Context: (\" << STD_NAMESPACE hex << STD_NAMESPACE setfill ( '0' ) << STD_NAMESPACE setw ( 2 ) << ( unsigned int ) context -> type << STD_NAMESPACE dec << \"), Length: \" << ( unsigned long ) context -> length << OFendl << \"Presentation Context ID: \" << STD_NAMESPACE hex << STD_NAMESPACE setfill ( '0' ) << STD_NAMESPACE setw ( 2 ) << ( unsigned int ) context -> contextID << STD_NAMESPACE dec ) ;\n presentationLength = length - 4 ;\n if ( ! ( ( type == DUL_TYPEPRESENTATIONCONTEXTAC ) && ( context -> result != DUL_PRESENTATION_ACCEPT ) ) ) {\n while ( presentationLength > 0 ) {\n DCMNET_TRACE ( \"Parsing remaining \" << presentationLength << \" bytes of Presentation Context\" << OFendl << \"Next item type: \" << STD_NAMESPACE hex << STD_NAMESPACE setfill ( '0' ) << STD_NAMESPACE setw ( 2 ) << ( unsigned int ) * buf ) ;\n switch ( * buf ) {\n case DUL_TYPEABSTRACTSYNTAX : cond = parseSubItem ( & context -> abstractSyntax , buf , & length , presentationLength ) ;\n if ( cond . bad ( ) ) return cond ;\n buf += length ;\n presentationLength -= length ;\n DCMNET_TRACE ( \"Successfully parsed Abstract Syntax\" ) ;\n break ;\n case DUL_TYPETRANSFERSYNTAX : subItem = ( DUL_SUBITEM * ) malloc ( sizeof ( DUL_SUBITEM ) ) ;\n if ( subItem == NULL ) return EC_MemoryExhausted ;\n cond = parseSubItem ( subItem , buf , & length , presentationLength ) ;\n if ( cond . bad ( ) ) return cond ;\n LST_Enqueue ( & context -> transferSyntaxList , ( LST_NODE * ) subItem ) ;\n buf += length ;\n presentationLength -= length ;\n DCMNET_TRACE ( \"Successfully parsed Transfer Syntax\" ) ;\n break ;\n default : cond = parseDummy ( buf , & length , presentationLength ) ;\n buf += length ;\n presentationLength -= length ;\n break ;\n }\n }\n }\n return EC_Normal ;\n }"}
{"idx": 19860, "target": 0, "func": "static unsigned long ulong_arg ( const char * option , const char * arg ) {\n char * endptr ;\n unsigned long rv = strtoul ( arg , & endptr , 0 ) ;\n if ( strchr ( arg , '-' ) || endptr == arg || * endptr ) die ( \"%s: argument must be a non-negative integer\" , option ) ;\n return rv ;\n }"}
{"idx": 19861, "target": 0, "func": "static void selinux_write_opts ( struct seq_file * m , struct security_mnt_opts * opts ) {\n int i ;\n char * prefix ;\n for ( i = 0 ;\n i < opts -> num_mnt_opts ;\n i ++ ) {\n char * has_comma ;\n if ( opts -> mnt_opts [ i ] ) has_comma = strchr ( opts -> mnt_opts [ i ] , ',' ) ;\n else has_comma = NULL ;\n switch ( opts -> mnt_opts_flags [ i ] ) {\n case CONTEXT_MNT : prefix = CONTEXT_STR ;\n break ;\n case FSCONTEXT_MNT : prefix = FSCONTEXT_STR ;\n break ;\n case ROOTCONTEXT_MNT : prefix = ROOTCONTEXT_STR ;\n break ;\n case DEFCONTEXT_MNT : prefix = DEFCONTEXT_STR ;\n break ;\n case SBLABEL_MNT : seq_putc ( m , ',' ) ;\n seq_puts ( m , LABELSUPP_STR ) ;\n continue ;\n default : BUG ( ) ;\n return ;\n }\n ;\n seq_putc ( m , ',' ) ;\n seq_puts ( m , prefix ) ;\n if ( has_comma ) seq_putc ( m , '\\\"' ) ;\n seq_escape ( m , opts -> mnt_opts [ i ] , \"\\\"\\n\\\\\" ) ;\n if ( has_comma ) seq_putc ( m , '\\\"' ) ;\n }\n }"}
{"idx": 19862, "target": 0, "func": "static void synth_block_fcb_acb ( WMAVoiceContext * s , GetBitContext * gb , int block_idx , int size , int block_pitch_sh2 , const struct frame_type_desc * frame_desc , float * excitation ) {\n static const float gain_coeff [ 6 ] = {\n 0.8169 , - 0.06545 , 0.1726 , 0.0185 , - 0.0359 , 0.0458 }\n ;\n float pulses [ MAX_FRAMESIZE / 2 ] , pred_err , acb_gain , fcb_gain ;\n int n , idx , gain_weight ;\n AMRFixed fcb ;\n assert ( size <= MAX_FRAMESIZE / 2 ) ;\n memset ( pulses , 0 , sizeof ( * pulses ) * size ) ;\n fcb . pitch_lag = block_pitch_sh2 >> 2 ;\n fcb . pitch_fac = 1.0 ;\n fcb . no_repeat_mask = 0 ;\n fcb . n = 0 ;\n if ( frame_desc -> fcb_type == FCB_TYPE_AW_PULSES ) {\n aw_pulse_set1 ( s , gb , block_idx , & fcb ) ;\n aw_pulse_set2 ( s , gb , block_idx , & fcb ) ;\n }\n else {\n int offset_nbits = 5 - frame_desc -> log_n_blocks ;\n fcb . no_repeat_mask = - 1 ;\n for ( n = 0 ;\n n < 5 ;\n n ++ ) {\n float sign ;\n int pos1 , pos2 ;\n sign = get_bits1 ( gb ) ? 1.0 : - 1.0 ;\n pos1 = get_bits ( gb , offset_nbits ) ;\n fcb . x [ fcb . n ] = n + 5 * pos1 ;\n fcb . y [ fcb . n ++ ] = sign ;\n if ( n < frame_desc -> dbl_pulses ) {\n pos2 = get_bits ( gb , offset_nbits ) ;\n fcb . x [ fcb . n ] = n + 5 * pos2 ;\n fcb . y [ fcb . n ++ ] = ( pos1 < pos2 ) ? - sign : sign ;\n }\n }\n }\n ff_set_fixed_vector ( pulses , & fcb , 1.0 , size ) ;\n idx = get_bits ( gb , 7 ) ;\n fcb_gain = expf ( avpriv_scalarproduct_float_c ( s -> gain_pred_err , gain_coeff , 6 ) - 5.2409161640 + wmavoice_gain_codebook_fcb [ idx ] ) ;\n acb_gain = wmavoice_gain_codebook_acb [ idx ] ;\n pred_err = av_clipf ( wmavoice_gain_codebook_fcb [ idx ] , - 2.9957322736 , 1.6094379124 ) ;\n gain_weight = 8 >> frame_desc -> log_n_blocks ;\n memmove ( & s -> gain_pred_err [ gain_weight ] , s -> gain_pred_err , sizeof ( * s -> gain_pred_err ) * ( 6 - gain_weight ) ) ;\n for ( n = 0 ;\n n < gain_weight ;\n n ++ ) s -> gain_pred_err [ n ] = pred_err ;\n if ( frame_desc -> acb_type == ACB_TYPE_ASYMMETRIC ) {\n int len ;\n for ( n = 0 ;\n n < size ;\n n += len ) {\n int next_idx_sh16 ;\n int abs_idx = block_idx * size + n ;\n int pitch_sh16 = ( s -> last_pitch_val << 16 ) + s -> pitch_diff_sh16 * abs_idx ;\n int pitch = ( pitch_sh16 + 0x6FFF ) >> 16 ;\n int idx_sh16 = ( ( pitch << 16 ) - pitch_sh16 ) * 8 + 0x58000 ;\n idx = idx_sh16 >> 16 ;\n if ( s -> pitch_diff_sh16 ) {\n if ( s -> pitch_diff_sh16 > 0 ) {\n next_idx_sh16 = ( idx_sh16 ) & ~ 0xFFFF ;\n }\n else next_idx_sh16 = ( idx_sh16 + 0x10000 ) & ~ 0xFFFF ;\n len = av_clip ( ( idx_sh16 - next_idx_sh16 ) / s -> pitch_diff_sh16 / 8 , 1 , size - n ) ;\n }\n else len = size ;\n ff_acelp_interpolatef ( & excitation [ n ] , & excitation [ n - pitch ] , wmavoice_ipol1_coeffs , 17 , idx , 9 , len ) ;\n }\n }\n else {\n int block_pitch = block_pitch_sh2 >> 2 ;\n idx = block_pitch_sh2 & 3 ;\n if ( idx ) {\n ff_acelp_interpolatef ( excitation , & excitation [ - block_pitch ] , wmavoice_ipol2_coeffs , 4 , idx , 8 , size ) ;\n }\n else av_memcpy_backptr ( ( uint8_t * ) excitation , sizeof ( float ) * block_pitch , sizeof ( float ) * size ) ;\n }\n ff_weighted_vector_sumf ( excitation , excitation , pulses , acb_gain , fcb_gain , size ) ;\n }"}
{"idx": 19863, "target": 0, "func": "static inline void pxa2xx_i2s_update ( PXA2xxI2SState * i2s ) {\n int rfs , tfs ;\n rfs = SACR_RFTH ( i2s -> control [ 0 ] ) < i2s -> rx_len && ! SACR_DREC ( i2s -> control [ 1 ] ) ;\n tfs = ( i2s -> tx_len || i2s -> fifo_len < SACR_TFTH ( i2s -> control [ 0 ] ) ) && i2s -> enable && ! SACR_DPRL ( i2s -> control [ 1 ] ) ;\n qemu_set_irq ( i2s -> rx_dma , rfs ) ;\n qemu_set_irq ( i2s -> tx_dma , tfs ) ;\n i2s -> status &= 0xe0 ;\n if ( i2s -> fifo_len < 16 || ! i2s -> enable ) i2s -> status |= 1 << 0 ;\n if ( i2s -> rx_len ) i2s -> status |= 1 << 1 ;\n if ( i2s -> enable ) i2s -> status |= 1 << 2 ;\n if ( tfs ) i2s -> status |= 1 << 3 ;\n if ( rfs ) i2s -> status |= 1 << 4 ;\n if ( ! ( i2s -> tx_len && i2s -> enable ) ) i2s -> status |= i2s -> fifo_len << 8 ;\n i2s -> status |= MAX ( i2s -> rx_len , 0xf ) << 12 ;\n qemu_set_irq ( i2s -> irq , i2s -> status & i2s -> mask ) ;\n }"}
{"idx": 19864, "target": 0, "func": "void mi_check_print_info ( MI_CHECK * param __attribute__ ( ( unused ) ) , const char * fmt , ... ) {\n va_list args ;\n va_start ( args , fmt ) ;\n ( void ) vfprintf ( stdout , fmt , args ) ;\n ( void ) fputc ( '\\n' , stdout ) ;\n va_end ( args ) ;\n }"}
{"idx": 19865, "target": 0, "func": "static void write_uncompressed_header ( VP9_COMP * cpi , struct vp9_write_bit_buffer * wb ) {\n VP9_COMMON * const cm = & cpi -> common ;\n vp9_wb_write_literal ( wb , VP9_FRAME_MARKER , 2 ) ;\n write_profile ( cm -> profile , wb ) ;\n vp9_wb_write_bit ( wb , 0 ) ;\n vp9_wb_write_bit ( wb , cm -> frame_type ) ;\n vp9_wb_write_bit ( wb , cm -> show_frame ) ;\n vp9_wb_write_bit ( wb , cm -> error_resilient_mode ) ;\n if ( cm -> frame_type == KEY_FRAME ) {\n write_sync_code ( wb ) ;\n write_bitdepth_colorspace_sampling ( cm , wb ) ;\n write_frame_size ( cm , wb ) ;\n }\n else {\n if ( ! cm -> show_frame || ( is_two_pass_svc ( cpi ) && cm -> error_resilient_mode == 0 ) ) vp9_wb_write_bit ( wb , cm -> intra_only ) ;\n if ( ! cm -> error_resilient_mode ) vp9_wb_write_literal ( wb , cm -> reset_frame_context , 2 ) ;\n if ( cm -> intra_only ) {\n write_sync_code ( wb ) ;\n if ( cm -> profile > PROFILE_0 ) {\n write_bitdepth_colorspace_sampling ( cm , wb ) ;\n }\n vp9_wb_write_literal ( wb , get_refresh_mask ( cpi ) , REF_FRAMES ) ;\n write_frame_size ( cm , wb ) ;\n }\n else {\n MV_REFERENCE_FRAME ref_frame ;\n vp9_wb_write_literal ( wb , get_refresh_mask ( cpi ) , REF_FRAMES ) ;\n for ( ref_frame = LAST_FRAME ;\n ref_frame <= ALTREF_FRAME ;\n ++ ref_frame ) {\n vp9_wb_write_literal ( wb , get_ref_frame_idx ( cpi , ref_frame ) , REF_FRAMES_LOG2 ) ;\n vp9_wb_write_bit ( wb , cm -> ref_frame_sign_bias [ ref_frame ] ) ;\n }\n write_frame_size_with_refs ( cpi , wb ) ;\n vp9_wb_write_bit ( wb , cm -> allow_high_precision_mv ) ;\n fix_interp_filter ( cm ) ;\n write_interp_filter ( cm -> interp_filter , wb ) ;\n }\n }\n if ( ! cm -> error_resilient_mode ) {\n vp9_wb_write_bit ( wb , cm -> refresh_frame_context ) ;\n vp9_wb_write_bit ( wb , cm -> frame_parallel_decoding_mode ) ;\n }\n vp9_wb_write_literal ( wb , cm -> frame_context_idx , FRAME_CONTEXTS_LOG2 ) ;\n encode_loopfilter ( & cm -> lf , wb ) ;\n encode_quantization ( cm , wb ) ;\n encode_segmentation ( cm , & cpi -> mb . e_mbd , wb ) ;\n write_tile_info ( cm , wb ) ;\n }"}
{"idx": 19866, "target": 0, "func": "void ttfFont__destroy ( ttfFont * self , gs_font_dir * dir ) {\n gs_memory_t * mem = dir -> memory -> stable_memory ;\n ttfFont__finit ( self ) ;\n gs_free_object ( mem , self , \"ttfFont__destroy\" ) ;\n ttfInterpreter__release ( & dir -> tti ) ;\n gx_san__release ( & dir -> san ) ;\n if ( dir -> tti == NULL && dir -> ttm != NULL ) {\n gs_free_object ( mem , dir -> ttm , \"ttfFont__destroy(gx_ttfMemory)\" ) ;\n dir -> ttm = NULL ;\n }\n }"}
{"idx": 19867, "target": 0, "func": "static picture_t * DecodeBlock ( decoder_t * p_dec , block_t * * pp_block ) {\n decoder_sys_t * p_sys = p_dec -> p_sys ;\n if ( ! pp_block ) return NULL ;\n if ( * pp_block ) {\n block_t * p_block = * pp_block ;\n if ( p_block -> i_flags & BLOCK_FLAG_DISCONTINUITY ) {\n schro_decoder_reset ( p_sys -> p_schro ) ;\n p_sys -> i_lastpts = VLC_TS_INVALID ;\n block_Release ( p_block ) ;\n * pp_block = NULL ;\n return NULL ;\n }\n SchroBuffer * p_schrobuffer ;\n p_schrobuffer = schro_buffer_new_with_data ( p_block -> p_buffer , p_block -> i_buffer ) ;\n p_schrobuffer -> free = SchroBufferFree ;\n p_schrobuffer -> priv = p_block ;\n if ( p_block -> i_pts > VLC_TS_INVALID ) {\n mtime_t * p_pts = malloc ( sizeof ( * p_pts ) ) ;\n if ( p_pts ) {\n * p_pts = p_block -> i_pts ;\n p_schrobuffer -> tag = schro_tag_new ( p_pts , free ) ;\n }\n }\n * pp_block = NULL ;\n schro_decoder_autoparse_push ( p_sys -> p_schro , p_schrobuffer ) ;\n }\n while ( 1 ) {\n SchroFrame * p_schroframe ;\n picture_t * p_pic ;\n int state = schro_decoder_autoparse_wait ( p_sys -> p_schro ) ;\n switch ( state ) {\n case SCHRO_DECODER_FIRST_ACCESS_UNIT : SetVideoFormat ( p_dec ) ;\n break ;\n case SCHRO_DECODER_NEED_BITS : return NULL ;\n case SCHRO_DECODER_NEED_FRAME : p_schroframe = CreateSchroFrameFromPic ( p_dec ) ;\n if ( ! p_schroframe ) {\n msg_Err ( p_dec , \"Could not allocate picture for decoder\" ) ;\n return NULL ;\n }\n schro_decoder_add_output_picture ( p_sys -> p_schro , p_schroframe ) ;\n break ;\n case SCHRO_DECODER_OK : {\n SchroTag * p_tag = schro_decoder_get_picture_tag ( p_sys -> p_schro ) ;\n p_schroframe = schro_decoder_pull ( p_sys -> p_schro ) ;\n if ( ! p_schroframe || ! p_schroframe -> priv ) {\n if ( p_tag ) schro_tag_free ( p_tag ) ;\n if ( p_schroframe ) schro_frame_unref ( p_schroframe ) ;\n break ;\n }\n p_pic = ( ( struct picture_free_t * ) p_schroframe -> priv ) -> p_pic ;\n p_schroframe -> priv = NULL ;\n if ( p_tag ) {\n p_pic -> date = * ( mtime_t * ) p_tag -> value ;\n schro_tag_free ( p_tag ) ;\n }\n else if ( p_sys -> i_lastpts > VLC_TS_INVALID ) {\n p_pic -> date = p_sys -> i_lastpts + p_sys -> i_frame_pts_delta ;\n }\n p_sys -> i_lastpts = p_pic -> date ;\n schro_frame_unref ( p_schroframe ) ;\n return p_pic ;\n }\n case SCHRO_DECODER_EOS : break ;\n case SCHRO_DECODER_ERROR : msg_Err ( p_dec , \"SCHRO_DECODER_ERROR\" ) ;\n return NULL ;\n }\n }\n }"}
{"idx": 19868, "target": 0, "func": "static __always_inline __le16 __cpu_to_le16p ( const __u16 * p ) {\n return ( __le16 ) * p ;\n }"}
{"idx": 19869, "target": 0, "func": "static const char * cmd_guardian_log ( cmd_parms * cmd , void * _dcfg , const char * p1 , const char * p2 ) {\n extern char * guardianlog_name ;\n extern apr_file_t * guardianlog_fd ;\n extern char * guardianlog_condition ;\n if ( cmd -> server -> is_virtual ) {\n return \"ModSecurity: SecGuardianLog not allowed in VirtualHost\" ;\n }\n if ( p2 != NULL ) {\n if ( strncmp ( p2 , \"env=\" , 4 ) != 0 ) {\n return \"ModSecurity: Error in condition clause\" ;\n }\n if ( ( p2 [ 4 ] == '\\0' ) || ( ( p2 [ 4 ] == '!' ) && ( p2 [ 5 ] == '\\0' ) ) ) {\n return \"ModSecurity: Missing variable name\" ;\n }\n guardianlog_condition = apr_pstrdup ( cmd -> pool , p2 + 4 ) ;\n }\n guardianlog_name = ( char * ) p1 ;\n if ( guardianlog_name [ 0 ] == '|' ) {\n const char * pipe_name = ap_server_root_relative ( cmd -> pool , guardianlog_name + 1 ) ;\n piped_log * pipe_log ;\n pipe_log = ap_open_piped_log ( cmd -> pool , pipe_name ) ;\n if ( pipe_log == NULL ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Failed to open the guardian log pipe: %s\" , pipe_name ) ;\n }\n guardianlog_fd = ap_piped_log_write_fd ( pipe_log ) ;\n }\n else {\n const char * file_name = ap_server_root_relative ( cmd -> pool , guardianlog_name ) ;\n apr_status_t rc ;\n rc = apr_file_open ( & guardianlog_fd , file_name , APR_WRITE | APR_APPEND | APR_CREATE | APR_BINARY , CREATEMODE , cmd -> pool ) ;\n if ( rc != APR_SUCCESS ) {\n return apr_psprintf ( cmd -> pool , \"ModSecurity: Failed to open the guardian log file: %s\" , file_name ) ;\n }\n }\n return NULL ;\n }"}
{"idx": 19870, "target": 1, "func": "TEST_F ( FullscreenControllerStateUnitTest , BackgroundCapturedTabExitsFullscreen ) {\n content : : WebContentsDelegate * const wc_delegate = static_cast < content : : WebContentsDelegate * > ( browser ( ) ) ;\n ASSERT_TRUE ( wc_delegate -> EmbedsFullscreenWidget ( ) ) ;\n AddTab ( browser ( ) , GURL ( url : : kAboutBlankURL ) ) ;\n AddTab ( browser ( ) , GURL ( url : : kAboutBlankURL ) ) ;\n content : : WebContents * const first_tab = browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 0 ) ;\n content : : WebContents * const second_tab = browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 1 ) ;\n browser ( ) -> tab_strip_model ( ) -> ActivateTabAt ( 0 , true ) ;\n const gfx : : Size kCaptureSize ( 1280 , 720 ) ;\n first_tab -> IncrementCapturerCount ( kCaptureSize ) ;\n ASSERT_TRUE ( InvokeEvent ( TAB_FULLSCREEN_TRUE ) ) ;\n EXPECT_FALSE ( browser ( ) -> window ( ) -> IsFullscreen ( ) ) ;\n EXPECT_TRUE ( wc_delegate -> IsFullscreenForTabOrPending ( first_tab ) ) ;\n EXPECT_FALSE ( wc_delegate -> IsFullscreenForTabOrPending ( second_tab ) ) ;\n EXPECT_FALSE ( GetFullscreenController ( ) -> IsWindowFullscreenForTabOrPending ( ) ) ;\n browser ( ) -> tab_strip_model ( ) -> ActivateTabAt ( 1 , true ) ;\n ASSERT_TRUE ( InvokeEvent ( TAB_FULLSCREEN_TRUE ) ) ;\n ASSERT_TRUE ( InvokeEvent ( WINDOW_CHANGE ) ) ;\n EXPECT_TRUE ( browser ( ) -> window ( ) -> IsFullscreen ( ) ) ;\n EXPECT_TRUE ( wc_delegate -> IsFullscreenForTabOrPending ( first_tab ) ) ;\n EXPECT_TRUE ( wc_delegate -> IsFullscreenForTabOrPending ( second_tab ) ) ;\n EXPECT_TRUE ( GetFullscreenController ( ) -> IsWindowFullscreenForTabOrPending ( ) ) ;\n GetFullscreenController ( ) -> ToggleFullscreenModeForTab ( first_tab , false ) ;\n EXPECT_TRUE ( browser ( ) -> window ( ) -> IsFullscreen ( ) ) ;\n EXPECT_FALSE ( wc_delegate -> IsFullscreenForTabOrPending ( first_tab ) ) ;\n EXPECT_TRUE ( wc_delegate -> IsFullscreenForTabOrPending ( second_tab ) ) ;\n EXPECT_TRUE ( GetFullscreenController ( ) -> IsWindowFullscreenForTabOrPending ( ) ) ;\n ASSERT_TRUE ( InvokeEvent ( TAB_FULLSCREEN_FALSE ) ) ;\n ASSERT_TRUE ( InvokeEvent ( WINDOW_CHANGE ) ) ;\n EXPECT_FALSE ( browser ( ) -> window ( ) -> IsFullscreen ( ) ) ;\n EXPECT_FALSE ( wc_delegate -> IsFullscreenForTabOrPending ( first_tab ) ) ;\n EXPECT_FALSE ( wc_delegate -> IsFullscreenForTabOrPending ( second_tab ) ) ;\n EXPECT_FALSE ( GetFullscreenController ( ) -> IsWindowFullscreenForTabOrPending ( ) ) ;\n }"}
{"idx": 19871, "target": 0, "func": "static int dissect_rsl_ie_L3_inf ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , int offset , gboolean is_mandatory , l3_inf_t type ) {\n proto_item * ti ;\n proto_tree * ie_tree ;\n tvbuff_t * next_tvb ;\n guint16 length ;\n guint8 ie_id ;\n if ( is_mandatory == FALSE ) {\n ie_id = tvb_get_guint8 ( tvb , offset ) ;\n if ( ie_id != RSL_IE_L3_INF ) return offset ;\n }\n ie_tree = proto_tree_add_subtree ( tree , tvb , offset , 0 , ett_ie_L3_inf , & ti , \"L3 Information IE\" ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n length = tvb_get_ntohs ( tvb , offset ) ;\n proto_item_set_len ( ti , length + 3 ) ;\n proto_tree_add_item ( ie_tree , hf_rsl_ie_length , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n offset = offset + 2 ;\n if ( type == L3_INF_CCCH ) {\n proto_tree_add_item ( ie_tree , hf_rsl_llsdu_ccch , tvb , offset , length , ENC_NA ) ;\n next_tvb = tvb_new_subset_length ( tvb , offset , length ) ;\n call_dissector ( gsm_a_ccch_handle , next_tvb , pinfo , top_tree ) ;\n }\n else if ( type == L3_INF_SACCH ) {\n proto_tree_add_item ( ie_tree , hf_rsl_llsdu_sacch , tvb , offset , length , ENC_NA ) ;\n next_tvb = tvb_new_subset_length ( tvb , offset , length ) ;\n call_dissector ( gsm_a_sacch_handle , next_tvb , pinfo , top_tree ) ;\n }\n else {\n proto_tree_add_item ( ie_tree , hf_rsl_llsdu , tvb , offset , length , ENC_NA ) ;\n next_tvb = tvb_new_subset_length ( tvb , offset , length ) ;\n call_dissector ( gsm_a_dtap_handle , next_tvb , pinfo , top_tree ) ;\n }\n offset = offset + length ;\n return offset ;\n }"}
{"idx": 19872, "target": 0, "func": "const char * TSMatcherParseSrcIPConfigLine ( char * line , TSMatcherLine ml ) {\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) line ) == TS_SUCCESS ) ;\n return parseConfigLine ( line , ( matcher_line * ) ml , & ip_allow_src_tags ) ;\n }"}
{"idx": 19873, "target": 0, "func": "static enum fetch_step vbf_stp_mkbereq ( struct worker * wrk , struct busyobj * bo ) {\n const char * q ;\n CHECK_OBJ_NOTNULL ( wrk , WORKER_MAGIC ) ;\n CHECK_OBJ_NOTNULL ( bo , BUSYOBJ_MAGIC ) ;\n CHECK_OBJ_NOTNULL ( bo -> req , REQ_MAGIC ) ;\n assert ( bo -> fetch_objcore -> boc -> state == BOS_INVALID ) ;\n AZ ( bo -> storage ) ;\n AZ ( bo -> storage_hint ) ;\n HTTP_Setup ( bo -> bereq0 , bo -> ws , bo -> vsl , SLT_BereqMethod ) ;\n http_FilterReq ( bo -> bereq0 , bo -> req -> http , bo -> do_pass ? HTTPH_R_PASS : HTTPH_R_FETCH ) ;\n if ( ! bo -> do_pass ) {\n http_ForceField ( bo -> bereq0 , HTTP_HDR_METHOD , \"GET\" ) ;\n http_ForceField ( bo -> bereq0 , HTTP_HDR_PROTO , \"HTTP/1.1\" ) ;\n if ( cache_param -> http_gzip_support ) http_ForceHeader ( bo -> bereq0 , H_Accept_Encoding , \"gzip\" ) ;\n }\n else {\n AZ ( bo -> stale_oc ) ;\n if ( bo -> bereq0 -> protover > 11 ) http_ForceField ( bo -> bereq0 , HTTP_HDR_PROTO , \"HTTP/1.1\" ) ;\n }\n http_CopyHome ( bo -> bereq0 ) ;\n if ( bo -> stale_oc != NULL && ObjCheckFlag ( bo -> wrk , bo -> stale_oc , OF_IMSCAND ) && ( bo -> stale_oc -> boc != NULL || ObjGetLen ( wrk , bo -> stale_oc ) != 0 ) ) {\n AZ ( bo -> stale_oc -> flags & OC_F_PASS ) ;\n q = HTTP_GetHdrPack ( bo -> wrk , bo -> stale_oc , H_Last_Modified ) ;\n if ( q != NULL ) http_PrintfHeader ( bo -> bereq0 , \"If-Modified-Since: %s\" , q ) ;\n q = HTTP_GetHdrPack ( bo -> wrk , bo -> stale_oc , H_ETag ) ;\n if ( q != NULL ) http_PrintfHeader ( bo -> bereq0 , \"If-None-Match: %s\" , q ) ;\n }\n HTTP_Setup ( bo -> bereq , bo -> ws , bo -> vsl , SLT_BereqMethod ) ;\n bo -> ws_bo = WS_Snapshot ( bo -> ws ) ;\n HTTP_Copy ( bo -> bereq , bo -> bereq0 ) ;\n if ( bo -> req -> req_body_status == REQ_BODY_NONE ) {\n bo -> req = NULL ;\n ObjSetState ( bo -> wrk , bo -> fetch_objcore , BOS_REQ_DONE ) ;\n }\n return ( F_STP_STARTFETCH ) ;\n }"}
{"idx": 19874, "target": 0, "func": "AsfStream * gst_asf_demux_get_stream ( GstASFDemux * demux , guint16 id ) {\n guint i ;\n for ( i = 0 ;\n i < demux -> num_streams ;\n i ++ ) {\n if ( demux -> stream [ i ] . id == id ) return & demux -> stream [ i ] ;\n }\n if ( gst_asf_demux_is_unknown_stream ( demux , id ) ) GST_WARNING ( \"Segment found for undefined stream: (%d)\" , id ) ;\n return NULL ;\n }"}
{"idx": 19875, "target": 0, "func": "void ff_cavs_modify_mb_i ( AVSContext * h , int * pred_mode_uv ) {\n h -> pred_mode_Y [ 3 ] = h -> pred_mode_Y [ 5 ] ;\n h -> pred_mode_Y [ 6 ] = h -> pred_mode_Y [ 8 ] ;\n h -> top_pred_Y [ h -> mbx * 2 + 0 ] = h -> pred_mode_Y [ 7 ] ;\n h -> top_pred_Y [ h -> mbx * 2 + 1 ] = h -> pred_mode_Y [ 8 ] ;\n if ( ! ( h -> flags & A_AVAIL ) ) {\n modify_pred ( left_modifier_l , & h -> pred_mode_Y [ 4 ] ) ;\n modify_pred ( left_modifier_l , & h -> pred_mode_Y [ 7 ] ) ;\n modify_pred ( left_modifier_c , pred_mode_uv ) ;\n }\n if ( ! ( h -> flags & B_AVAIL ) ) {\n modify_pred ( top_modifier_l , & h -> pred_mode_Y [ 4 ] ) ;\n modify_pred ( top_modifier_l , & h -> pred_mode_Y [ 5 ] ) ;\n modify_pred ( top_modifier_c , pred_mode_uv ) ;\n }\n }"}
{"idx": 19876, "target": 0, "func": "void IGDdata ( void * d , const char * data , int l ) {\n struct IGDdatas * datas = ( struct IGDdatas * ) d ;\n char * dstmember = 0 ;\n if ( ! strcmp ( datas -> cureltname , \"URLBase\" ) ) dstmember = datas -> urlbase ;\n else if ( ! strcmp ( datas -> cureltname , \"presentationURL\" ) ) dstmember = datas -> presentationurl ;\n else if ( ! strcmp ( datas -> cureltname , \"serviceType\" ) ) dstmember = datas -> tmp . servicetype ;\n else if ( ! strcmp ( datas -> cureltname , \"controlURL\" ) ) dstmember = datas -> tmp . controlurl ;\n else if ( ! strcmp ( datas -> cureltname , \"eventSubURL\" ) ) dstmember = datas -> tmp . eventsuburl ;\n else if ( ! strcmp ( datas -> cureltname , \"SCPDURL\" ) ) dstmember = datas -> tmp . scpdurl ;\n if ( dstmember ) {\n if ( l >= MINIUPNPC_URL_MAXSIZE ) l = MINIUPNPC_URL_MAXSIZE - 1 ;\n memcpy ( dstmember , data , l ) ;\n dstmember [ l ] = '\\0' ;\n }\n }"}
{"idx": 19877, "target": 0, "func": "static void move_file_to_low_priority_queue ( NautilusDirectory * directory , NautilusFile * file ) {\n nautilus_file_queue_enqueue ( directory -> details -> low_priority_queue , file ) ;\n nautilus_file_queue_remove ( directory -> details -> high_priority_queue , file ) ;\n }"}
{"idx": 19878, "target": 1, "func": "static int m_authenticate ( struct Client * client_p , struct Client * source_p , int parc , const char * parv [ ] ) {\n struct Client * agent_p = NULL ;\n struct Client * saslserv_p = NULL ;\n if ( ! IsCapable ( source_p , CLICAP_SASL ) ) return 0 ;\n if ( strlen ( client_p -> id ) == 3 ) {\n exit_client ( client_p , client_p , client_p , \"Mixing client and server protocol\" ) ;\n return 0 ;\n }\n saslserv_p = find_named_client ( ConfigFileEntry . sasl_service ) ;\n if ( saslserv_p == NULL || ! IsService ( saslserv_p ) ) {\n sendto_one ( source_p , form_str ( ERR_SASLABORTED ) , me . name , EmptyString ( source_p -> name ) ? \"*\" : source_p -> name ) ;\n return 0 ;\n }\n if ( source_p -> localClient -> sasl_complete ) {\n * source_p -> localClient -> sasl_agent = '\\0' ;\n source_p -> localClient -> sasl_complete = 0 ;\n }\n if ( strlen ( parv [ 1 ] ) > 400 ) {\n sendto_one ( source_p , form_str ( ERR_SASLTOOLONG ) , me . name , EmptyString ( source_p -> name ) ? \"*\" : source_p -> name ) ;\n return 0 ;\n }\n if ( ! * source_p -> id ) {\n strcpy ( source_p -> id , generate_uid ( ) ) ;\n add_to_id_hash ( source_p -> id , source_p ) ;\n }\n if ( * source_p -> localClient -> sasl_agent ) agent_p = find_id ( source_p -> localClient -> sasl_agent ) ;\n if ( agent_p == NULL ) {\n sendto_one ( saslserv_p , \":%s ENCAP %s SASL %s %s H %s %s\" , me . id , saslserv_p -> servptr -> name , source_p -> id , saslserv_p -> id , source_p -> host , source_p -> sockhost ) ;\n if ( ! strcmp ( parv [ 1 ] , \"EXTERNAL\" ) && source_p -> certfp != NULL ) sendto_one ( saslserv_p , \":%s ENCAP %s SASL %s %s S %s %s\" , me . id , saslserv_p -> servptr -> name , source_p -> id , saslserv_p -> id , parv [ 1 ] , source_p -> certfp ) ;\n else sendto_one ( saslserv_p , \":%s ENCAP %s SASL %s %s S %s\" , me . id , saslserv_p -> servptr -> name , source_p -> id , saslserv_p -> id , parv [ 1 ] ) ;\n rb_strlcpy ( source_p -> localClient -> sasl_agent , saslserv_p -> id , IDLEN ) ;\n }\n else sendto_one ( agent_p , \":%s ENCAP %s SASL %s %s C %s\" , me . id , agent_p -> servptr -> name , source_p -> id , agent_p -> id , parv [ 1 ] ) ;\n source_p -> localClient -> sasl_out ++ ;\n return 0 ;\n }"}
{"idx": 19879, "target": 0, "func": "static int compress_filter ( void * opaque , int control , IOBUF a , byte * buf , size_t * ret_len ) {\n size_t size = * ret_len ;\n compress_filter_context_t * zfx = opaque ;\n z_stream * zs = zfx -> opaque ;\n int rc = 0 ;\n if ( control == IOBUFCTRL_UNDERFLOW ) {\n if ( ! zfx -> status ) {\n zs = zfx -> opaque = xmalloc_clear ( sizeof * zs ) ;\n init_uncompress ( zfx , zs ) ;\n zfx -> status = 1 ;\n }\n # ifndef __riscos__ zs -> next_out = buf ;\n # else zs -> next_out = ( Bytef * ) buf ;\n # endif zs -> avail_out = size ;\n zfx -> outbufsize = size ;\n rc = do_uncompress ( zfx , zs , a , ret_len ) ;\n }\n else if ( control == IOBUFCTRL_FLUSH ) {\n if ( ! zfx -> status ) {\n PACKET pkt ;\n PKT_compressed cd ;\n if ( zfx -> algo != COMPRESS_ALGO_ZIP && zfx -> algo != COMPRESS_ALGO_ZLIB ) BUG ( ) ;\n memset ( & cd , 0 , sizeof cd ) ;\n cd . len = 0 ;\n cd . algorithm = zfx -> algo ;\n init_packet ( & pkt ) ;\n pkt . pkttype = PKT_COMPRESSED ;\n pkt . pkt . compressed = & cd ;\n if ( build_packet ( a , & pkt ) ) log_bug ( \"build_packet(PKT_COMPRESSED) failed\\n\" ) ;\n zs = zfx -> opaque = xmalloc_clear ( sizeof * zs ) ;\n init_compress ( zfx , zs ) ;\n zfx -> status = 2 ;\n }\n # ifndef __riscos__ zs -> next_in = buf ;\n # else zs -> next_in = ( Bytef * ) buf ;\n # endif zs -> avail_in = size ;\n rc = do_compress ( zfx , zs , Z_NO_FLUSH , a ) ;\n }\n else if ( control == IOBUFCTRL_FREE ) {\n if ( zfx -> status == 1 ) {\n inflateEnd ( zs ) ;\n xfree ( zs ) ;\n zfx -> opaque = NULL ;\n xfree ( zfx -> outbuf ) ;\n zfx -> outbuf = NULL ;\n }\n else if ( zfx -> status == 2 ) {\n # ifndef __riscos__ zs -> next_in = buf ;\n # else zs -> next_in = ( Bytef * ) buf ;\n # endif zs -> avail_in = 0 ;\n do_compress ( zfx , zs , Z_FINISH , a ) ;\n deflateEnd ( zs ) ;\n xfree ( zs ) ;\n zfx -> opaque = NULL ;\n xfree ( zfx -> outbuf ) ;\n zfx -> outbuf = NULL ;\n }\n if ( zfx -> release ) zfx -> release ( zfx ) ;\n }\n else if ( control == IOBUFCTRL_DESC ) * ( char * * ) buf = \"compress_filter\" ;\n return rc ;\n }"}
{"idx": 19880, "target": 0, "func": "TSReturnCode TSStringPercentEncode ( const char * str , int str_len , char * dst , size_t dst_size , size_t * length , const unsigned char * map ) {\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) str ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) dst ) == TS_SUCCESS ) ;\n int new_len ;\n if ( str_len < 0 ) {\n str_len = strlen ( str ) ;\n }\n sdk_assert ( str_len < static_cast < int > ( dst_size ) ) ;\n if ( nullptr == LogUtils : : pure_escapify_url ( nullptr , const_cast < char * > ( str ) , str_len , & new_len , dst , dst_size , map ) ) {\n if ( length ) {\n * length = 0 ;\n }\n return TS_ERROR ;\n }\n if ( length ) {\n * length = new_len ;\n }\n return TS_SUCCESS ;\n }"}
{"idx": 19881, "target": 0, "func": "static int dissect_h225_T_result ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_T_result , T_result_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 19882, "target": 1, "func": "static void setup_mi ( VP9_COMMON * cm ) {\n cm -> mi = cm -> mip + cm -> mi_stride + 1 ;\n cm -> prev_mi = cm -> prev_mip + cm -> mi_stride + 1 ;\n cm -> mi_grid_visible = cm -> mi_grid_base + cm -> mi_stride + 1 ;\n cm -> prev_mi_grid_visible = cm -> prev_mi_grid_base + cm -> mi_stride + 1 ;\n vpx_memset ( cm -> mip , 0 , cm -> mi_stride * ( cm -> mi_rows + 1 ) * sizeof ( * cm -> mip ) ) ;\n vpx_memset ( cm -> mi_grid_base , 0 , cm -> mi_stride * ( cm -> mi_rows + 1 ) * sizeof ( * cm -> mi_grid_base ) ) ;\n clear_mi_border ( cm , cm -> prev_mip ) ;\n }"}
{"idx": 19883, "target": 0, "func": "static int dissect_pvfs2_getattr_response ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n offset = dissect_pvfs_object_attr ( tvb , tree , offset , pinfo ) ;\n return offset ;\n }"}
{"idx": 19884, "target": 1, "func": "static int mpeg4_decode_partitioned_mb ( MpegEncContext * s , int16_t block [ 6 ] [ 64 ] ) {\n int cbp , mb_type ;\n const int xy = s -> mb_x + s -> mb_y * s -> mb_stride ;\n mb_type = s -> current_picture . f . mb_type [ xy ] ;\n cbp = s -> cbp_table [ xy ] ;\n s -> use_intra_dc_vlc = s -> qscale < s -> intra_dc_threshold ;\n if ( s -> current_picture . f . qscale_table [ xy ] != s -> qscale ) {\n ff_set_qscale ( s , s -> current_picture . f . qscale_table [ xy ] ) ;\n }\n if ( s -> pict_type == AV_PICTURE_TYPE_P || s -> pict_type == AV_PICTURE_TYPE_S ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n s -> mv [ 0 ] [ i ] [ 0 ] = s -> current_picture . f . motion_val [ 0 ] [ s -> block_index [ i ] ] [ 0 ] ;\n s -> mv [ 0 ] [ i ] [ 1 ] = s -> current_picture . f . motion_val [ 0 ] [ s -> block_index [ i ] ] [ 1 ] ;\n }\n s -> mb_intra = IS_INTRA ( mb_type ) ;\n if ( IS_SKIP ( mb_type ) ) {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) s -> block_last_index [ i ] = - 1 ;\n s -> mv_dir = MV_DIR_FORWARD ;\n s -> mv_type = MV_TYPE_16X16 ;\n if ( s -> pict_type == AV_PICTURE_TYPE_S && s -> vol_sprite_usage == GMC_SPRITE ) {\n s -> mcsel = 1 ;\n s -> mb_skipped = 0 ;\n }\n else {\n s -> mcsel = 0 ;\n s -> mb_skipped = 1 ;\n }\n }\n else if ( s -> mb_intra ) {\n s -> ac_pred = IS_ACPRED ( s -> current_picture . f . mb_type [ xy ] ) ;\n }\n else if ( ! s -> mb_intra ) {\n s -> mv_dir = MV_DIR_FORWARD ;\n if ( IS_8X8 ( mb_type ) ) {\n s -> mv_type = MV_TYPE_8X8 ;\n }\n else {\n s -> mv_type = MV_TYPE_16X16 ;\n }\n }\n }\n else {\n s -> mb_intra = 1 ;\n s -> ac_pred = IS_ACPRED ( s -> current_picture . f . mb_type [ xy ] ) ;\n }\n if ( ! IS_SKIP ( mb_type ) ) {\n int i ;\n s -> dsp . clear_blocks ( s -> block [ 0 ] ) ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( mpeg4_decode_block ( s , block [ i ] , i , cbp & 32 , s -> mb_intra , s -> rvlc ) < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"texture corrupted at %d %d %d\\n\" , s -> mb_x , s -> mb_y , s -> mb_intra ) ;\n return - 1 ;\n }\n cbp += cbp ;\n }\n }\n if ( -- s -> mb_num_left <= 0 ) {\n if ( mpeg4_is_resync ( s ) ) return SLICE_END ;\n else return SLICE_NOEND ;\n }\n else {\n if ( mpeg4_is_resync ( s ) ) {\n const int delta = s -> mb_x + 1 == s -> mb_width ? 2 : 1 ;\n if ( s -> cbp_table [ xy + delta ] ) return SLICE_END ;\n }\n return SLICE_OK ;\n }\n }"}
{"idx": 19885, "target": 0, "func": "static void dissect_rsvp_3gpp_object ( proto_tree * ti _U_ , packet_info * pinfo , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int c_type ) {\n guint16 length , ie_type ;\n offset += 3 ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n obj_length = obj_length - 4 ;\n if ( c_type == 1 ) {\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_3gpp_obj_tid , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n obj_length = obj_length - 4 ;\n while ( obj_length > 0 ) {\n length = tvb_get_ntohs ( tvb , offset ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_3gpp_obj_ie_len , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n offset += 2 ;\n ie_type = tvb_get_ntohs ( tvb , offset ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_3gpp_obj_ie_type , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n offset += 2 ;\n if ( ( ie_type == 0 ) || ( ie_type == 2 ) ) {\n guint8 tft_opcode , tft_n_pkt_flt ;\n int i ;\n if ( ie_type == 0 ) {\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_3gpp_obj_ue_ipv4_addr , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n }\n else {\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_3gpp_obj_ue_ipv6_addr , tvb , offset , 16 , ENC_NA ) ;\n offset += 16 ;\n }\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_3gpp_obj_tft_d , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_3gpp_obj_tft_ns , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_3gpp_obj_tft_sr_id , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_3gpp_obj_tft_p , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n tft_opcode = tvb_get_guint8 ( tvb , offset + 2 ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_3gpp_obj_tft_opcode , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n tft_n_pkt_flt = tvb_get_guint8 ( tvb , offset + 3 ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_3gpp_obj_tft_n_pkt_flt , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n if ( ( tft_opcode != 0x81 ) && ( tft_n_pkt_flt != 0 ) ) {\n for ( i = 0 ;\n i < tft_n_pkt_flt ;\n i ++ ) {\n proto_tree * flow_tree , * t2_tree ;\n guint16 pkt_flt_len , item_len , pf_cont_len ;\n guint8 pf_comp_type_id ;\n flow_tree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset , - 1 , ett_treelist [ TT_3GPP_OBJ_FLOW ] , & ti , \"Flow Identifier Num %u\" , i + 1 ) ;\n proto_tree_add_item ( flow_tree , hf_rsvp_3gpp_obj_flow_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n item_len = 1 ;\n if ( ( tft_opcode == 0x05 ) || ( tft_opcode == 0x82 ) ) {\n proto_item_set_len ( ti , item_len ) ;\n continue ;\n }\n proto_tree_add_item ( flow_tree , hf_rsvp_3gpp_obj_pf_ev_prec , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n pkt_flt_len = tvb_get_ntohs ( tvb , offset ) ;\n proto_tree_add_item ( flow_tree , hf_rsvp_3gpp_obj_pf_len , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n item_len = item_len + pkt_flt_len + 1 ;\n offset += 2 ;\n proto_tree_add_item ( flow_tree , hf_rsvp_3gpp_obj_pf_type , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n pf_cont_len = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( flow_tree , hf_rsvp_3gpp_obj_pf_cont_len , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n pf_comp_type_id = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( flow_tree , hf_rsvp_3gpp_obj_pf_comp_type_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n switch ( pf_comp_type_id ) {\n case 16 : proto_tree_add_item ( flow_tree , hf_rsvp_3gpp_obj_pf_src_ipv4 , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( flow_tree , hf_rsvp_3gpp_obj_pf_ipv4_mask , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n pf_cont_len -= 11 ;\n break ;\n case 17 : proto_tree_add_item ( flow_tree , hf_rsvp_3gpp_obj_pf_dst_ipv4 , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n proto_tree_add_item ( flow_tree , hf_rsvp_3gpp_obj_pf_ipv4_mask , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n pf_cont_len -= 11 ;\n break ;\n case 32 : proto_tree_add_item ( flow_tree , hf_rsvp_3gpp_obj_pf_src_ipv6 , tvb , offset , 16 , ENC_NA ) ;\n offset += 16 ;\n proto_tree_add_item ( flow_tree , hf_rsvp_3gpp_obj_pf_ipv6_prefix_length , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n pf_cont_len -= 20 ;\n break ;\n case 33 : proto_tree_add_item ( flow_tree , hf_rsvp_3gpp_obj_pf_dst_ipv6 , tvb , offset , 16 , ENC_NA ) ;\n offset += 16 ;\n proto_tree_add_item ( flow_tree , hf_rsvp_3gpp_obj_pf_ipv6_prefix_length , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n pf_cont_len -= 20 ;\n break ;\n case 48 : proto_tree_add_item ( flow_tree , hf_rsvp_3gpp_obj_pf_prot_next , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n pf_cont_len -= 4 ;\n break ;\n case 64 : proto_tree_add_item ( flow_tree , hf_rsvp_3gpp_obj_pf_dst_port , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n offset += 2 ;\n pf_cont_len -= 5 ;\n break ;\n case 65 : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_3gpp_obj_pf_dst_port_range , tvb , offset , 4 , tvb_get_ntohs ( tvb , offset ) , \"%u-%u\" , tvb_get_ntohs ( tvb , offset ) , tvb_get_ntohs ( tvb , offset + 2 ) ) ;\n offset += 4 ;\n break ;\n case 80 : proto_tree_add_item ( flow_tree , hf_rsvp_3gpp_obj_pf_src_port , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n offset += 2 ;\n pf_cont_len -= 5 ;\n break ;\n case 81 : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_3gpp_obj_pf_src_port_range , tvb , offset , 4 , tvb_get_ntohs ( tvb , offset ) , \"Source Port range %u-%u\" , tvb_get_ntohs ( tvb , offset ) , tvb_get_ntohs ( tvb , offset + 2 ) ) ;\n offset += 4 ;\n pf_cont_len -= 7 ;\n break ;\n case 96 : proto_tree_add_item ( flow_tree , hf_rsvp_3gpp_obj_pf_ipsec_spi , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n pf_cont_len -= 7 ;\n break ;\n case 112 : proto_tree_add_item ( flow_tree , hf_rsvp_3gpp_obj_pf_tos_tc , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n pf_cont_len -= 4 ;\n break ;\n case 128 : proto_tree_add_item ( flow_tree , hf_rsvp_3gpp_obj_pf_flow_lbl , tvb , offset , 3 , ENC_BIG_ENDIAN ) ;\n offset += 3 ;\n pf_cont_len -= 6 ;\n break ;\n case 129 : t2_tree = proto_tree_add_subtree ( flow_tree , tvb , offset , 17 , ett_treelist [ TT_3GPP_OBJ_T2 ] , NULL , \"Type 2 Routing Header packet filter\" ) ;\n proto_tree_add_item ( t2_tree , hf_rsvp_3gpp_obj_pf_ipv6 , tvb , offset , 16 , ENC_NA ) ;\n offset += 16 ;\n proto_tree_add_item ( t2_tree , hf_rsvp_3gpp_obj_pf_ipv6_prefix_length , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n pf_cont_len -= 20 ;\n break ;\n case 130 : t2_tree = proto_tree_add_subtree ( flow_tree , tvb , offset , 17 , ett_treelist [ TT_3GPP_OBJ_HO ] , NULL , \"Home address Option packet filter\" ) ;\n proto_tree_add_item ( t2_tree , hf_rsvp_3gpp_obj_pf_ipv6 , tvb , offset , 16 , ENC_NA ) ;\n offset += 16 ;\n proto_tree_add_item ( t2_tree , hf_rsvp_3gpp_obj_pf_ipv6_prefix_length , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n pf_cont_len -= 20 ;\n break ;\n default : proto_tree_add_expert ( flow_tree , pinfo , & ei_rsvp_packet_filter_component , tvb , offset , pf_cont_len - 2 ) ;\n offset = offset + pkt_flt_len - 5 ;\n pf_cont_len = 0 ;\n break ;\n }\n if ( pf_cont_len != 0 ) {\n proto_tree_add_item ( flow_tree , hf_rsvp_3gpp_obj_pf_treatment , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n proto_tree_add_item ( flow_tree , hf_rsvp_3gpp_obj_pf_hint , tvb , offset , 4 , ENC_BIG_ENDIAN ) ;\n offset += 4 ;\n }\n proto_item_set_len ( ti , item_len ) ;\n }\n }\n if ( ( tft_opcode == 0x01 ) || ( tft_opcode == 0x06 ) || ( tft_opcode == 0x80 ) || ( tft_opcode == 0x81 ) || ( tft_opcode == 0x83 ) ) {\n gint32 tft_qos_list_len ;\n guint8 blob_len , item_len , padding_len ;\n gboolean verbose ;\n proto_tree * qos_tree , * qos_sub_blob_tree , * qos_att_tree ;\n int num = 0 , j , num_qos_att_set ;\n tft_qos_list_len = tvb_get_ntohs ( tvb , offset ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_3gpp_obj_tft_qos_list_len , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n offset += 2 ;\n tft_qos_list_len -= 2 ;\n if ( tft_qos_list_len > 0 ) {\n while ( tft_qos_list_len > 0 ) {\n int bit_offset ;\n guint8 qos_attribute_set_len ;\n num ++ ;\n qos_tree = proto_tree_add_subtree_format ( rsvp_object_tree , tvb , offset , - 1 , ett_treelist [ TT_3GPP_OBJ_QOS ] , NULL , \"QOS Flow Identifier Num %u\" , num ) ;\n proto_tree_add_item ( qos_tree , hf_rsvp_3gpp_obj_flow_id , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n tft_qos_list_len -- ;\n blob_len = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( qos_tree , hf_rsvp_3gpp_r_qos_blob_len , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n tft_qos_list_len -- ;\n ti = proto_tree_add_item ( qos_tree , hf_rsvp_3gpp_r_qos_blob , tvb , offset , blob_len , ENC_NA ) ;\n qos_sub_blob_tree = proto_item_add_subtree ( ti , ett_treelist [ TT_3GPP_OBJ_QOS_SUB_BLOB ] ) ;\n proto_tree_add_item ( qos_sub_blob_tree , hf_rsvp_3gpp_r_qos_blob_flow_pri , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( qos_sub_blob_tree , hf_rsvp_3gpp_r_qos_blob_num_qos_att_set , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n num_qos_att_set = ( tvb_get_guint8 ( tvb , offset ) & 0x0e ) >> 1 ;\n bit_offset = ( offset << 3 ) + 7 ;\n for ( j = 0 ;\n j < num_qos_att_set ;\n j ++ ) {\n qos_attribute_set_len = tvb_get_bits8 ( tvb , bit_offset , 4 ) ;\n qos_att_tree = proto_tree_add_subtree_format ( qos_sub_blob_tree , tvb , bit_offset >> 3 , qos_attribute_set_len , ett_treelist [ TT_3GPP_OBJ_QOS_SUB_BLOB ] , NULL , \"QoS_ATTRIBUTE_SET %u(%u bytes)\" , j + 1 , qos_attribute_set_len ) ;\n proto_tree_add_bits_item ( qos_att_tree , hf_rsvp_3gpp_qos_att_set_len , tvb , bit_offset , 4 , ENC_BIG_ENDIAN ) ;\n bit_offset += 4 ;\n if ( qos_attribute_set_len == 0 ) {\n break ;\n }\n proto_tree_add_bits_item ( qos_att_tree , hf_rsvp_3gpp_qos_attribute_set_id , tvb , bit_offset , 7 , ENC_BIG_ENDIAN ) ;\n bit_offset += 7 ;\n verbose = tvb_get_bits8 ( tvb , bit_offset , 1 ) ;\n proto_tree_add_bits_item ( qos_att_tree , hf_rsvp_3gpp_qos_attribute_verbose , tvb , bit_offset , 1 , ENC_BIG_ENDIAN ) ;\n bit_offset ++ ;\n if ( verbose == FALSE ) {\n proto_tree_add_bits_item ( qos_att_tree , hf_rsvp_3gpp_qos_attribute_prof_id , tvb , bit_offset , 16 , ENC_BIG_ENDIAN ) ;\n bit_offset += 16 ;\n }\n else {\n proto_tree_add_bits_item ( qos_att_tree , hf_rsvp_3gpp_qos_attribute_traff_cls , tvb , bit_offset , 3 , ENC_BIG_ENDIAN ) ;\n bit_offset += 3 ;\n proto_tree_add_bits_item ( qos_att_tree , hf_rsvp_3gpp_qos_attribute_peak_rate , tvb , bit_offset , 16 , ENC_BIG_ENDIAN ) ;\n bit_offset += 16 ;\n proto_tree_add_bits_item ( qos_att_tree , hf_rsvp_3gpp_qos_attribute_bucket_size , tvb , bit_offset , 16 , ENC_BIG_ENDIAN ) ;\n bit_offset += 16 ;\n proto_tree_add_bits_item ( qos_att_tree , hf_rsvp_3gpp_qos_attribute_token_rate , tvb , bit_offset , 16 , ENC_BIG_ENDIAN ) ;\n bit_offset += 16 ;\n proto_tree_add_bits_item ( qos_att_tree , hf_rsvp_3gpp_qos_attribute_max_latency , tvb , bit_offset , 16 , ENC_BIG_ENDIAN ) ;\n bit_offset += 8 ;\n proto_tree_add_bits_item ( qos_att_tree , hf_rsvp_3gpp_qos_attribute_max_loss_rte , tvb , bit_offset , 16 , ENC_BIG_ENDIAN ) ;\n bit_offset += 8 ;\n proto_tree_add_bits_item ( qos_att_tree , hf_rsvp_3gpp_qos_attribute_delay_var_sensitive , tvb , bit_offset , 16 , ENC_BIG_ENDIAN ) ;\n bit_offset += 1 ;\n }\n padding_len = 0 ;\n if ( ( bit_offset & 0x07 ) != 0 ) {\n padding_len = 8 - ( bit_offset & 0x07 ) ;\n proto_tree_add_bits_item ( qos_att_tree , hf_rsvp_3gpp_qos_attribute_reserved , tvb , bit_offset , padding_len , ENC_BIG_ENDIAN ) ;\n }\n bit_offset = bit_offset + padding_len ;\n }\n offset = offset + blob_len ;\n tft_qos_list_len = tft_qos_list_len - blob_len ;\n item_len = blob_len + 2 ;\n if ( tft_opcode == 0x81 ) {\n proto_tree_add_item ( qos_tree , hf_rsvp_3gpp_qos_result , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n tft_qos_list_len -- ;\n item_len ++ ;\n }\n proto_item_set_len ( ti , item_len ) ;\n }\n }\n }\n else {\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_ie_data , tvb , offset , length - 2 , ENC_NA ) ;\n }\n obj_length = obj_length - length ;\n }\n }\n }\n }"}
{"idx": 19886, "target": 1, "func": "char * rfbProcessFileTransferReadBuffer ( rfbClientPtr cl , uint32_t length ) {\n char * buffer = NULL ;\n int n = 0 ;\n FILEXFER_ALLOWED_OR_CLOSE_AND_RETURN ( \"\" , cl , NULL ) ;\n if ( length > 0 ) {\n buffer = malloc ( length + 1 ) ;\n if ( buffer != NULL ) {\n if ( ( n = rfbReadExact ( cl , ( char * ) buffer , length ) ) <= 0 ) {\n if ( n != 0 ) rfbLogPerror ( \"rfbProcessFileTransferReadBuffer: read\" ) ;\n rfbCloseClient ( cl ) ;\n if ( buffer != NULL ) free ( buffer ) ;\n return NULL ;\n }\n buffer [ length ] = 0 ;\n }\n }\n return buffer ;\n }"}
{"idx": 19887, "target": 0, "func": "static int dictionary_load ( void ) {\n ddict_t * d ;\n ddict_application_t * p ;\n ddict_vendor_t * v ;\n ddict_cmd_t * c ;\n ddict_typedefn_t * t ;\n ddict_avp_t * a ;\n gboolean do_debug_parser = getenv ( \"WIRESHARK_DEBUG_DIAM_DICT_PARSER\" ) ? TRUE : FALSE ;\n gboolean do_dump_dict = getenv ( \"WIRESHARK_DUMP_DIAM_DICT\" ) ? TRUE : FALSE ;\n char * dir ;\n const avp_type_t * type ;\n const avp_type_t * octetstring = & basic_types [ 0 ] ;\n diam_avp_t * avp ;\n GHashTable * vendors = g_hash_table_new ( strcase_hash , strcase_equal ) ;\n diam_vnd_t * vnd ;\n GArray * vnd_shrt_arr = g_array_new ( TRUE , TRUE , sizeof ( value_string ) ) ;\n build_dict . hf = wmem_array_new ( wmem_epan_scope ( ) , sizeof ( hf_register_info ) ) ;\n build_dict . ett = g_ptr_array_new ( ) ;\n build_dict . types = g_hash_table_new ( strcase_hash , strcase_equal ) ;\n build_dict . avps = g_hash_table_new ( strcase_hash , strcase_equal ) ;\n dictionary . vnds = wmem_tree_new ( wmem_epan_scope ( ) ) ;\n dictionary . avps = wmem_tree_new ( wmem_epan_scope ( ) ) ;\n unknown_vendor . vs_cmds = g_array_new ( TRUE , TRUE , sizeof ( value_string ) ) ;\n unknown_vendor . vs_avps = g_array_new ( TRUE , TRUE , sizeof ( value_string ) ) ;\n no_vnd . vs_cmds = g_array_new ( TRUE , TRUE , sizeof ( value_string ) ) ;\n no_vnd . vs_avps = g_array_new ( TRUE , TRUE , sizeof ( value_string ) ) ;\n all_cmds = g_array_new ( TRUE , TRUE , sizeof ( value_string ) ) ;\n wmem_tree_insert32 ( dictionary . vnds , 0 , & no_vnd ) ;\n g_hash_table_insert ( vendors , ( gchar * ) \"None\" , & no_vnd ) ;\n for ( type = basic_types ;\n type -> name ;\n type ++ ) {\n g_hash_table_insert ( build_dict . types , ( gchar * ) type -> name , ( void * ) type ) ;\n }\n dir = g_strdup_printf ( \"%s\" G_DIR_SEPARATOR_S \"diameter\" G_DIR_SEPARATOR_S , get_datafile_dir ( ) ) ;\n d = ddict_scan ( dir , \"dictionary.xml\" , do_debug_parser ) ;\n g_free ( dir ) ;\n if ( d == NULL ) {\n g_hash_table_destroy ( vendors ) ;\n g_array_free ( vnd_shrt_arr , TRUE ) ;\n return 0 ;\n }\n if ( do_dump_dict ) ddict_print ( stdout , d ) ;\n for ( t = d -> typedefns ;\n t ;\n t = t -> next ) {\n const avp_type_t * parent = NULL ;\n if ( t -> name == NULL ) {\n report_failure ( \"Diameter Dictionary: Invalid Type (empty name): parent==%s\\n\" , t -> parent ? t -> parent : \"(null)\" ) ;\n continue ;\n }\n if ( g_hash_table_lookup ( build_dict . types , t -> name ) ) continue ;\n if ( t -> parent ) {\n parent = ( avp_type_t * ) g_hash_table_lookup ( build_dict . types , t -> parent ) ;\n }\n if ( ! parent ) parent = octetstring ;\n g_hash_table_insert ( build_dict . types , t -> name , ( void * ) parent ) ;\n }\n if ( ( p = d -> applications ) ) {\n wmem_array_t * arr = wmem_array_new ( wmem_epan_scope ( ) , sizeof ( value_string ) ) ;\n value_string term [ 1 ] ;\n term [ 0 ] . value = 0 ;\n term [ 0 ] . strptr = NULL ;\n for ( ;\n p ;\n p = p -> next ) {\n value_string item [ 1 ] ;\n item [ 0 ] . value = p -> code ;\n item [ 0 ] . strptr = p -> name ;\n if ( ! p -> name ) {\n report_failure ( \"Diameter Dictionary: Invalid Application (empty name): id=%d\\n\" , p -> code ) ;\n continue ;\n }\n wmem_array_append_one ( arr , item ) ;\n }\n wmem_array_sort ( arr , compare_avps ) ;\n wmem_array_append_one ( arr , term ) ;\n dictionary . applications = value_string_ext_new ( ( value_string * ) wmem_array_get_raw ( arr ) , wmem_array_get_count ( arr ) , wmem_strdup_printf ( wmem_epan_scope ( ) , \"applications_vals_ext\" ) ) ;\n }\n if ( ( v = d -> vendors ) ) {\n for ( ;\n v ;\n v = v -> next ) {\n value_string item [ 1 ] ;\n item [ 0 ] . value = v -> code ;\n item [ 0 ] . strptr = v -> name ;\n if ( v -> name == NULL ) {\n report_failure ( \"Diameter Dictionary: Invalid Vendor (empty name): code==%d\\n\" , v -> code ) ;\n continue ;\n }\n if ( g_hash_table_lookup ( vendors , v -> name ) ) continue ;\n g_array_append_val ( vnd_shrt_arr , item ) ;\n vnd = wmem_new ( wmem_epan_scope ( ) , diam_vnd_t ) ;\n vnd -> code = v -> code ;\n vnd -> vs_cmds = g_array_new ( TRUE , TRUE , sizeof ( value_string ) ) ;\n vnd -> vs_avps = g_array_new ( TRUE , TRUE , sizeof ( value_string ) ) ;\n vnd -> vs_avps_ext = NULL ;\n wmem_tree_insert32 ( dictionary . vnds , vnd -> code , vnd ) ;\n g_hash_table_insert ( vendors , v -> name , vnd ) ;\n }\n }\n vnd_short_vs = ( value_string * ) vnd_shrt_arr -> data ;\n g_array_free ( vnd_shrt_arr , FALSE ) ;\n if ( ( c = d -> cmds ) ) {\n for ( ;\n c ;\n c = c -> next ) {\n if ( c -> vendor == NULL ) {\n report_failure ( \"Diameter Dictionary: Invalid Vendor (empty name) for command %s\\n\" , c -> name ? c -> name : \"(null)\" ) ;\n continue ;\n }\n if ( ( vnd = ( diam_vnd_t * ) g_hash_table_lookup ( vendors , c -> vendor ) ) ) {\n value_string item [ 1 ] ;\n item [ 0 ] . value = c -> code ;\n item [ 0 ] . strptr = c -> name ;\n g_array_append_val ( vnd -> vs_cmds , item ) ;\n g_array_append_val ( all_cmds , item ) ;\n }\n else {\n report_failure ( \"Diameter Dictionary: No Vendor: %s\\n\" , c -> vendor ) ;\n }\n }\n }\n for ( a = d -> avps ;\n a ;\n a = a -> next ) {\n ddict_enum_t * e ;\n value_string * vs = NULL ;\n const char * vend = a -> vendor ? a -> vendor : \"None\" ;\n ddict_xmlpi_t * x ;\n void * avp_data = NULL ;\n if ( a -> name == NULL ) {\n report_failure ( \"Diameter Dictionary: Invalid AVP (empty name)\\n\" ) ;\n continue ;\n }\n if ( ( vnd = ( diam_vnd_t * ) g_hash_table_lookup ( vendors , vend ) ) ) {\n value_string vndvs [ 1 ] ;\n vndvs [ 0 ] . value = a -> code ;\n vndvs [ 0 ] . strptr = a -> name ;\n g_array_append_val ( vnd -> vs_avps , vndvs ) ;\n }\n else {\n report_failure ( \"Diameter Dictionary: No Vendor: %s\\n\" , vend ) ;\n vnd = & unknown_vendor ;\n }\n if ( ( e = a -> enums ) ) {\n wmem_array_t * arr = wmem_array_new ( wmem_epan_scope ( ) , sizeof ( value_string ) ) ;\n value_string term [ 1 ] ;\n term [ 0 ] . value = 0 ;\n term [ 0 ] . strptr = NULL ;\n for ( ;\n e ;\n e = e -> next ) {\n value_string item [ 1 ] ;\n item [ 0 ] . value = e -> code ;\n item [ 0 ] . strptr = e -> name ;\n wmem_array_append_one ( arr , item ) ;\n }\n wmem_array_sort ( arr , compare_avps ) ;\n wmem_array_append_one ( arr , term ) ;\n vs = ( value_string * ) wmem_array_get_raw ( arr ) ;\n }\n type = NULL ;\n for ( x = d -> xmlpis ;\n x ;\n x = x -> next ) {\n if ( ( strcase_equal ( x -> name , \"avp-proto\" ) && strcase_equal ( x -> key , a -> name ) ) || ( a -> type && strcase_equal ( x -> name , \"type-proto\" ) && strcase_equal ( x -> key , a -> type ) ) ) {\n static avp_type_t proto_type = {\n \"proto\" , proto_avp , proto_avp , FT_UINT32 , BASE_HEX , build_proto_avp }\n ;\n type = & proto_type ;\n avp_data = x -> value ;\n break ;\n }\n }\n if ( ( ! type ) && a -> type ) type = ( avp_type_t * ) g_hash_table_lookup ( build_dict . types , a -> type ) ;\n if ( ! type ) type = octetstring ;\n avp = type -> build ( type , a -> code , vnd , a -> name , vs , avp_data ) ;\n if ( avp != NULL ) {\n g_hash_table_insert ( build_dict . avps , a -> name , avp ) ;\n {\n wmem_tree_key_t k [ 3 ] ;\n k [ 0 ] . length = 1 ;\n k [ 0 ] . key = & ( a -> code ) ;\n k [ 1 ] . length = 1 ;\n k [ 1 ] . key = & ( vnd -> code ) ;\n k [ 2 ] . length = 0 ;\n k [ 2 ] . key = NULL ;\n wmem_tree_insert32_array ( dictionary . avps , k , avp ) ;\n }\n }\n }\n g_hash_table_destroy ( build_dict . types ) ;\n g_hash_table_destroy ( build_dict . avps ) ;\n g_hash_table_destroy ( vendors ) ;\n return 1 ;\n }"}
{"idx": 19888, "target": 0, "func": "TSReturnCode TSHttpTxnServerRespNoStoreSet ( TSHttpTxn txnp , int flag ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpTransact : : State * s = & ( ( ( HttpSM * ) txnp ) -> t_state ) ;\n s -> api_server_response_no_store = ( flag != 0 ) ;\n return TS_SUCCESS ;\n }"}
{"idx": 19889, "target": 0, "func": "static inline void init_interlaced_ref ( MpegEncContext * s , int ref_index ) {\n MotionEstContext * const c = & s -> me ;\n c -> ref [ 1 + ref_index ] [ 0 ] = c -> ref [ 0 + ref_index ] [ 0 ] + s -> linesize ;\n c -> src [ 1 ] [ 0 ] = c -> src [ 0 ] [ 0 ] + s -> linesize ;\n if ( c -> flags & FLAG_CHROMA ) {\n c -> ref [ 1 + ref_index ] [ 1 ] = c -> ref [ 0 + ref_index ] [ 1 ] + s -> uvlinesize ;\n c -> ref [ 1 + ref_index ] [ 2 ] = c -> ref [ 0 + ref_index ] [ 2 ] + s -> uvlinesize ;\n c -> src [ 1 ] [ 1 ] = c -> src [ 0 ] [ 1 ] + s -> uvlinesize ;\n c -> src [ 1 ] [ 2 ] = c -> src [ 0 ] [ 2 ] + s -> uvlinesize ;\n }\n }"}
{"idx": 19890, "target": 0, "func": "static void e1000e_set_dlen ( E1000ECore * core , int index , uint32_t val ) {\n core -> mac [ index ] = val & E1000_XDLEN_MASK ;\n }"}
{"idx": 19891, "target": 0, "func": "void # ifdef M_DEBUG mpi_debug_free_limb_space ( mpi_ptr_t a , const char * info ) # else mpi_free_limb_space ( mpi_ptr_t a ) # endif {\n if ( ! a ) return ;\n if ( DBG_MEMORY ) log_debug ( \"mpi_free_limb_space of size %lu\\n\" , ( ulong ) m_size ( a ) * 8 ) ;\n # if 0 if ( ! m_is_secure ( a ) ) {\n size_t nlimbs = m_size ( a ) / 4 ;\n void * p = a ;\n if ( nlimbs == 5 ) {\n * a = unused_limbs_5 ;\n unused_limbs_5 = a ;\n return ;\n }\n else if ( nlimbs == 32 ) {\n * a = unused_limbs_32 ;\n unused_limbs_32 = a ;\n return ;\n }\n else if ( nlimbs == 64 ) {\n * a = unused_limbs_64 ;\n unused_limbs_64 = a ;\n return ;\n }\n }\n # endif xfree ( a ) ;\n }"}
{"idx": 19892, "target": 0, "func": "static PyObject * string_isspace ( PyStringObject * self ) {\n register const unsigned char * p = ( unsigned char * ) PyString_AS_STRING ( self ) ;\n register const unsigned char * e ;\n if ( PyString_GET_SIZE ( self ) == 1 && isspace ( * p ) ) return PyBool_FromLong ( 1 ) ;\n if ( PyString_GET_SIZE ( self ) == 0 ) return PyBool_FromLong ( 0 ) ;\n e = p + PyString_GET_SIZE ( self ) ;\n for ( ;\n p < e ;\n p ++ ) {\n if ( ! isspace ( * p ) ) return PyBool_FromLong ( 0 ) ;\n }\n return PyBool_FromLong ( 1 ) ;\n }"}
{"idx": 19893, "target": 0, "func": "static void test_bug2247 ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_RES * res ;\n int rc ;\n int i ;\n const char * create = \"CREATE TABLE bug2247(id INT UNIQUE AUTO_INCREMENT)\" ;\n const char * insert = \"INSERT INTO bug2247 VALUES (NULL)\" ;\n const char * SELECT = \"SELECT id FROM bug2247\" ;\n const char * update = \"UPDATE bug2247 SET id=id+10\" ;\n const char * drop = \"DROP TABLE IF EXISTS bug2247\" ;\n ulonglong exp_count ;\n enum {\n NUM_ROWS = 5 }\n ;\n myheader ( \"test_bug2247\" ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\nChecking if stmt_affected_rows is not affected by\\n\" \"mysql_query ... \" ) ;\n rc = mysql_query ( mysql , drop ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , create ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , insert ) ;\n check_stmt ( stmt ) ;\n for ( i = 0 ;\n i < NUM_ROWS ;\n ++ i ) {\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n }\n exp_count = mysql_stmt_affected_rows ( stmt ) ;\n DIE_UNLESS ( exp_count == 1 ) ;\n rc = mysql_query ( mysql , SELECT ) ;\n myquery ( rc ) ;\n res = mysql_store_result ( mysql ) ;\n mytest ( res ) ;\n DIE_UNLESS ( mysql_affected_rows ( mysql ) == NUM_ROWS ) ;\n DIE_UNLESS ( exp_count == mysql_stmt_affected_rows ( stmt ) ) ;\n rc = mysql_query ( mysql , update ) ;\n myquery ( rc ) ;\n DIE_UNLESS ( mysql_affected_rows ( mysql ) == NUM_ROWS ) ;\n DIE_UNLESS ( exp_count == mysql_stmt_affected_rows ( stmt ) ) ;\n mysql_free_result ( res ) ;\n mysql_stmt_close ( stmt ) ;\n stmt = mysql_simple_prepare ( mysql , SELECT ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_store_result ( stmt ) ;\n check_execute ( stmt , rc ) ;\n exp_count = mysql_stmt_affected_rows ( stmt ) ;\n DIE_UNLESS ( exp_count == NUM_ROWS ) ;\n rc = mysql_query ( mysql , insert ) ;\n myquery ( rc ) ;\n DIE_UNLESS ( mysql_affected_rows ( mysql ) == 1 ) ;\n DIE_UNLESS ( mysql_stmt_affected_rows ( stmt ) == exp_count ) ;\n mysql_stmt_close ( stmt ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"OK\" ) ;\n }"}
{"idx": 19894, "target": 0, "func": "static void dissect_zcl_pwr_prof_attr_data ( proto_tree * tree , tvbuff_t * tvb , guint * offset , guint16 attr_id , guint data_type ) {\n static const int * format_fields [ ] = {\n & hf_zbee_zcl_pwr_prof_energy_format_rdigit , & hf_zbee_zcl_pwr_prof_energy_format_ldigit , & hf_zbee_zcl_pwr_prof_energy_format_noleadingzero , NULL }\n ;\n static const int * modes [ ] = {\n & hf_zbee_zcl_pwr_prof_sched_mode_cheapest , & hf_zbee_zcl_pwr_prof_sched_mode_greenest , & hf_zbee_zcl_pwr_prof_sched_mode_reserved , NULL }\n ;\n switch ( attr_id ) {\n case ZBEE_ZCL_ATTR_ID_PWR_PROF_TOT_PROF_NUM : proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_tot_prof_num , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_PWR_PROF_MULTIPLE_SCHED : proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_multiple_sched , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_PWR_PROF_ENERGY_FORMAT : proto_tree_add_bitmask ( tree , tvb , * offset , hf_zbee_zcl_pwr_prof_energy_format , ett_zbee_zcl_pwr_prof_en_format , format_fields , ENC_NA ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_PWR_PROF_ENERGY_REMOTE : proto_tree_add_item ( tree , hf_zbee_zcl_pwr_prof_energy_remote , tvb , * offset , 1 , ENC_NA ) ;\n * offset += 1 ;\n break ;\n case ZBEE_ZCL_ATTR_ID_PWR_PROF_SCHED_MODE : proto_tree_add_bitmask ( tree , tvb , * offset , hf_zbee_zcl_pwr_prof_sched_mode , ett_zbee_zcl_pwr_prof_sched_mode , modes , ENC_NA ) ;\n * offset += 1 ;\n break ;\n default : dissect_zcl_attr_data ( tvb , tree , offset , data_type ) ;\n break ;\n }\n }"}
{"idx": 19895, "target": 0, "func": "unsigned int vp8_variance16x8_neon ( const unsigned char * src_ptr , int source_stride , const unsigned char * ref_ptr , int recon_stride , unsigned int * sse ) {\n int i ;\n int16x4_t d22s16 , d23s16 , d24s16 , d25s16 , d26s16 , d27s16 , d28s16 , d29s16 ;\n uint32x2_t d0u32 , d10u32 ;\n int64x1_t d0s64 , d1s64 ;\n uint8x16_t q0u8 , q1u8 , q2u8 , q3u8 ;\n uint16x8_t q11u16 , q12u16 , q13u16 , q14u16 ;\n int32x4_t q8s32 , q9s32 , q10s32 ;\n int64x2_t q0s64 , q1s64 , q5s64 ;\n q8s32 = vdupq_n_s32 ( 0 ) ;\n q9s32 = vdupq_n_s32 ( 0 ) ;\n q10s32 = vdupq_n_s32 ( 0 ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n q0u8 = vld1q_u8 ( src_ptr ) ;\n src_ptr += source_stride ;\n q1u8 = vld1q_u8 ( src_ptr ) ;\n src_ptr += source_stride ;\n __builtin_prefetch ( src_ptr ) ;\n q2u8 = vld1q_u8 ( ref_ptr ) ;\n ref_ptr += recon_stride ;\n q3u8 = vld1q_u8 ( ref_ptr ) ;\n ref_ptr += recon_stride ;\n __builtin_prefetch ( ref_ptr ) ;\n q11u16 = vsubl_u8 ( vget_low_u8 ( q0u8 ) , vget_low_u8 ( q2u8 ) ) ;\n q12u16 = vsubl_u8 ( vget_high_u8 ( q0u8 ) , vget_high_u8 ( q2u8 ) ) ;\n q13u16 = vsubl_u8 ( vget_low_u8 ( q1u8 ) , vget_low_u8 ( q3u8 ) ) ;\n q14u16 = vsubl_u8 ( vget_high_u8 ( q1u8 ) , vget_high_u8 ( q3u8 ) ) ;\n d22s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q11u16 ) ) ;\n d23s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q11u16 ) ) ;\n q8s32 = vpadalq_s16 ( q8s32 , vreinterpretq_s16_u16 ( q11u16 ) ) ;\n q9s32 = vmlal_s16 ( q9s32 , d22s16 , d22s16 ) ;\n q10s32 = vmlal_s16 ( q10s32 , d23s16 , d23s16 ) ;\n d24s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q12u16 ) ) ;\n d25s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q12u16 ) ) ;\n q8s32 = vpadalq_s16 ( q8s32 , vreinterpretq_s16_u16 ( q12u16 ) ) ;\n q9s32 = vmlal_s16 ( q9s32 , d24s16 , d24s16 ) ;\n q10s32 = vmlal_s16 ( q10s32 , d25s16 , d25s16 ) ;\n d26s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q13u16 ) ) ;\n d27s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q13u16 ) ) ;\n q8s32 = vpadalq_s16 ( q8s32 , vreinterpretq_s16_u16 ( q13u16 ) ) ;\n q9s32 = vmlal_s16 ( q9s32 , d26s16 , d26s16 ) ;\n q10s32 = vmlal_s16 ( q10s32 , d27s16 , d27s16 ) ;\n d28s16 = vreinterpret_s16_u16 ( vget_low_u16 ( q14u16 ) ) ;\n d29s16 = vreinterpret_s16_u16 ( vget_high_u16 ( q14u16 ) ) ;\n q8s32 = vpadalq_s16 ( q8s32 , vreinterpretq_s16_u16 ( q14u16 ) ) ;\n q9s32 = vmlal_s16 ( q9s32 , d28s16 , d28s16 ) ;\n q10s32 = vmlal_s16 ( q10s32 , d29s16 , d29s16 ) ;\n }\n q10s32 = vaddq_s32 ( q10s32 , q9s32 ) ;\n q0s64 = vpaddlq_s32 ( q8s32 ) ;\n q1s64 = vpaddlq_s32 ( q10s32 ) ;\n d0s64 = vadd_s64 ( vget_low_s64 ( q0s64 ) , vget_high_s64 ( q0s64 ) ) ;\n d1s64 = vadd_s64 ( vget_low_s64 ( q1s64 ) , vget_high_s64 ( q1s64 ) ) ;\n q5s64 = vmull_s32 ( vreinterpret_s32_s64 ( d0s64 ) , vreinterpret_s32_s64 ( d0s64 ) ) ;\n vst1_lane_u32 ( ( uint32_t * ) sse , vreinterpret_u32_s64 ( d1s64 ) , 0 ) ;\n d10u32 = vshr_n_u32 ( vreinterpret_u32_s64 ( vget_low_s64 ( q5s64 ) ) , 7 ) ;\n d0u32 = vsub_u32 ( vreinterpret_u32_s64 ( d1s64 ) , d10u32 ) ;\n return vget_lane_u32 ( d0u32 , 0 ) ;\n }"}
{"idx": 19896, "target": 0, "func": "int kvm_device_msix_set_vector ( KVMState * s , uint32_t dev_id , uint32_t vector , int virq ) {\n struct kvm_assigned_msix_entry msix_entry = {\n . assigned_dev_id = dev_id , . gsi = virq , . entry = vector , }\n ;\n return kvm_vm_ioctl ( s , KVM_ASSIGN_SET_MSIX_ENTRY , & msix_entry ) ;\n }"}
{"idx": 19897, "target": 0, "func": "static inline float pow_m1_4 ( WMACodecContext * s , float x ) {\n union {\n float f ;\n unsigned int v ;\n }\n u , t ;\n unsigned int e , m ;\n float a , b ;\n u . f = x ;\n e = u . v >> 23 ;\n m = ( u . v >> ( 23 - LSP_POW_BITS ) ) & ( ( 1 << LSP_POW_BITS ) - 1 ) ;\n t . v = ( ( u . v << LSP_POW_BITS ) & ( ( 1 << 23 ) - 1 ) ) | ( 127 << 23 ) ;\n a = s -> lsp_pow_m_table1 [ m ] ;\n b = s -> lsp_pow_m_table2 [ m ] ;\n return s -> lsp_pow_e_table [ e ] * ( a + b * t . f ) ;\n }"}
{"idx": 19898, "target": 1, "func": "static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 19899, "target": 0, "func": "static void convolve_avg_vert ( const uint8_t * src , ptrdiff_t src_stride , uint8_t * dst , ptrdiff_t dst_stride , const InterpKernel * y_filters , int y0_q4 , int y_step_q4 , int w , int h ) {\n int x , y ;\n src -= src_stride * ( SUBPEL_TAPS / 2 - 1 ) ;\n for ( x = 0 ;\n x < w ;\n ++ x ) {\n int y_q4 = y0_q4 ;\n for ( y = 0 ;\n y < h ;\n ++ y ) {\n const unsigned char * src_y = & src [ ( y_q4 >> SUBPEL_BITS ) * src_stride ] ;\n const int16_t * const y_filter = y_filters [ y_q4 & SUBPEL_MASK ] ;\n int k , sum = 0 ;\n for ( k = 0 ;\n k < SUBPEL_TAPS ;\n ++ k ) sum += src_y [ k * src_stride ] * y_filter [ k ] ;\n dst [ y * dst_stride ] = ROUND_POWER_OF_TWO ( dst [ y * dst_stride ] + clip_pixel ( ROUND_POWER_OF_TWO ( sum , FILTER_BITS ) ) , 1 ) ;\n y_q4 += y_step_q4 ;\n }\n ++ src ;\n ++ dst ;\n }\n }"}
{"idx": 19900, "target": 0, "func": "int dissect_h225_FeatureSet ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_FeatureSet , FeatureSet_sequence ) ;\n return offset ;\n }"}
{"idx": 19901, "target": 0, "func": "static int set_pid_priority ( pid_t pid , int policy , int priority , char * message , char * name ) {\n struct sched_param par = {\n 0 }\n ;\n par . sched_priority = priority ;\n if ( ( sched_setscheduler ( pid , policy , & par ) != 0 ) ) {\n print_error ( stderr , message , pid , name , strerror ( errno ) ) ;\n return 0 ;\n }\n return 1 ;\n }"}
{"idx": 19902, "target": 0, "func": "static void reindex_one_database ( const char * name , const char * dbname , const char * type , const char * host , const char * port , const char * username , enum trivalue prompt_password , const char * progname , bool echo , bool verbose ) {\n PQExpBufferData sql ;\n PGconn * conn ;\n conn = connectDatabase ( dbname , host , port , username , prompt_password , progname , false , false ) ;\n initPQExpBuffer ( & sql ) ;\n appendPQExpBufferStr ( & sql , \"REINDEX\" ) ;\n if ( verbose ) appendPQExpBufferStr ( & sql , \" (VERBOSE)\" ) ;\n if ( strcmp ( type , \"TABLE\" ) == 0 ) appendPQExpBuffer ( & sql , \" TABLE %s\" , name ) ;\n else if ( strcmp ( type , \"INDEX\" ) == 0 ) appendPQExpBuffer ( & sql , \" INDEX %s\" , name ) ;\n else if ( strcmp ( type , \"SCHEMA\" ) == 0 ) appendPQExpBuffer ( & sql , \" SCHEMA %s\" , name ) ;\n else if ( strcmp ( type , \"DATABASE\" ) == 0 ) appendPQExpBuffer ( & sql , \" DATABASE %s\" , fmtId ( PQdb ( conn ) ) ) ;\n appendPQExpBufferChar ( & sql , ';\n' ) ;\n if ( ! executeMaintenanceCommand ( conn , sql . data , echo ) ) {\n if ( strcmp ( type , \"TABLE\" ) == 0 ) fprintf ( stderr , _ ( \"%s: reindexing of table \\\"%s\\\" in database \\\"%s\\\" failed: %s\" ) , progname , name , PQdb ( conn ) , PQerrorMessage ( conn ) ) ;\n if ( strcmp ( type , \"INDEX\" ) == 0 ) fprintf ( stderr , _ ( \"%s: reindexing of index \\\"%s\\\" in database \\\"%s\\\" failed: %s\" ) , progname , name , PQdb ( conn ) , PQerrorMessage ( conn ) ) ;\n if ( strcmp ( type , \"SCHEMA\" ) == 0 ) fprintf ( stderr , _ ( \"%s: reindexing of schema \\\"%s\\\" in database \\\"%s\\\" failed: %s\" ) , progname , name , PQdb ( conn ) , PQerrorMessage ( conn ) ) ;\n else fprintf ( stderr , _ ( \"%s: reindexing of database \\\"%s\\\" failed: %s\" ) , progname , PQdb ( conn ) , PQerrorMessage ( conn ) ) ;\n PQfinish ( conn ) ;\n exit ( 1 ) ;\n }\n PQfinish ( conn ) ;\n termPQExpBuffer ( & sql ) ;\n }"}
{"idx": 19903, "target": 0, "func": "static int xhci_fire_transfer ( XHCIState * xhci , XHCITransfer * xfer , XHCIEPContext * epctx ) {\n trace_usb_xhci_xfer_start ( xfer , xfer -> epctx -> slotid , xfer -> epctx -> epid , xfer -> streamid ) ;\n return xhci_submit ( xhci , xfer , epctx ) ;\n }"}
{"idx": 19904, "target": 0, "func": "static void _slurm_rpc_step_layout ( slurm_msg_t * msg ) {\n int error_code = SLURM_SUCCESS ;\n slurm_msg_t response_msg ;\n DEF_TIMERS ;\n job_step_id_msg_t * req = ( job_step_id_msg_t * ) msg -> data ;\n slurm_step_layout_t * step_layout = NULL ;\n slurmctld_lock_t job_read_lock = {\n READ_LOCK , READ_LOCK , READ_LOCK , NO_LOCK , NO_LOCK }\n ;\n uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config . auth_info ) ;\n struct job_record * job_ptr = NULL ;\n struct step_record * step_ptr = NULL ;\n START_TIMER ;\n debug2 ( \"Processing RPC: REQUEST_STEP_LAYOUT, from uid=%d\" , uid ) ;\n lock_slurmctld ( job_read_lock ) ;\n error_code = job_alloc_info ( uid , req -> job_id , & job_ptr ) ;\n END_TIMER2 ( \"_slurm_rpc_step_layout\" ) ;\n if ( error_code || ( job_ptr == NULL ) ) {\n unlock_slurmctld ( job_read_lock ) ;\n if ( error_code == ESLURM_ACCESS_DENIED ) {\n error ( \"Security vioation, REQUEST_STEP_LAYOUT for \" \"JobId=%u from uid=%u\" , req -> job_id , uid ) ;\n }\n else {\n if ( slurmctld_conf . debug_flags & DEBUG_FLAG_STEPS ) info ( \"%s: JobId=%u, uid=%u: %s\" , __func__ , req -> job_id , uid , slurm_strerror ( error_code ) ) ;\n }\n slurm_send_rc_msg ( msg , error_code ) ;\n return ;\n }\n step_ptr = find_step_record ( job_ptr , req -> step_id ) ;\n if ( ! step_ptr ) {\n unlock_slurmctld ( job_read_lock ) ;\n if ( slurmctld_conf . debug_flags & DEBUG_FLAG_STEPS ) info ( \"%s: JobId=%u.%u Not Found\" , __func__ , req -> job_id , req -> step_id ) ;\n slurm_send_rc_msg ( msg , ESLURM_INVALID_JOB_ID ) ;\n return ;\n }\n step_layout = slurm_step_layout_copy ( step_ptr -> step_layout ) ;\n # ifdef HAVE_FRONT_END if ( job_ptr -> batch_host ) step_layout -> front_end = xstrdup ( job_ptr -> batch_host ) ;\n # endif unlock_slurmctld ( job_read_lock ) ;\n slurm_msg_t_init ( & response_msg ) ;\n response_msg . flags = msg -> flags ;\n response_msg . protocol_version = msg -> protocol_version ;\n response_msg . msg_type = RESPONSE_STEP_LAYOUT ;\n response_msg . data = step_layout ;\n slurm_send_node_msg ( msg -> conn_fd , & response_msg ) ;\n slurm_step_layout_destroy ( step_layout ) ;\n }"}
{"idx": 19905, "target": 0, "func": "void archive_string_free ( struct archive_string * as ) {\n as -> length = 0 ;\n as -> buffer_length = 0 ;\n free ( as -> s ) ;\n as -> s = NULL ;\n }"}
{"idx": 19906, "target": 0, "func": "unsigned long # define BN_BYTES 8 # endif # ifdef SIXTY_FOUR_BIT # define BN_ULONG unsigned long long # define BN_BYTES 8 # endif # ifdef THIRTY_TWO_BIT # define BN_ULONG unsigned int # define BN_BYTES 4 # endif # define BN_BITS2 ( BN_BYTES * 8 ) # define BN_BITS ( BN_BITS2 * 2 ) # define BN_TBIT ( ( BN_ULONG ) 1 << ( BN_BITS2 - 1 ) ) # define BN_FLG_MALLOCED 0x01 # define BN_FLG_STATIC_DATA 0x02 # define BN_FLG_CONSTTIME 0x04 # define BN_FLG_SECURE 0x08 # if OPENSSL_API_COMPAT < 0x00908000L # define BN_FLG_EXP_CONSTTIME BN_FLG_CONSTTIME # define BN_FLG_FREE 0x8000 # endif void BN_set_flags ( BIGNUM * b , int n ) ;\n int BN_get_flags ( const BIGNUM * b , int n ) ;\n # define BN_RAND_TOP_ANY - 1 # define BN_RAND_TOP_ONE 0 # define BN_RAND_TOP_TWO 1 # define BN_RAND_BOTTOM_ANY 0 # define BN_RAND_BOTTOM_ODD 1 void BN_with_flags ( BIGNUM * dest , const BIGNUM * b , int flags ) ;\n int BN_GENCB_call ( BN_GENCB * cb , int a , int b ) ;\n BN_GENCB * BN_GENCB_new ( void ) ;\n void BN_GENCB_free ( BN_GENCB * cb ) ;\n void BN_GENCB_set_old ( BN_GENCB * gencb , void ( * callback ) ( int , int , void * ) , void * cb_arg ) ;\n void BN_GENCB_set ( BN_GENCB * gencb , int ( * callback ) ( int , int , BN_GENCB * ) , void * cb_arg ) ;\n void * BN_GENCB_get_arg ( BN_GENCB * cb ) ;\n # define BN_prime_checks 0 # define BN_prime_checks_for_size ( b ) ( ( b ) >= 3747 ? 3 : ( b ) >= 1345 ? 4 : ( b ) >= 476 ? 5 : ( b ) >= 400 ? 6 : ( b ) >= 347 ? 7 : ( b ) >= 308 ? 8 : ( b ) >= 55 ? 27 : 34 ) # define BN_num_bytes ( a ) ( ( BN_num_bits ( a ) + 7 ) / 8 ) int BN_abs_is_word ( const BIGNUM * a , const BN_ULONG w ) ;\n int BN_is_zero ( const BIGNUM * a ) ;\n int BN_is_one ( const BIGNUM * a ) ;\n int BN_is_word ( const BIGNUM * a , const BN_ULONG w ) ;\n int BN_is_odd ( const BIGNUM * a ) ;\n # define BN_one ( a ) ( BN_set_word ( ( a ) , 1 ) ) void BN_zero_ex ( BIGNUM * a ) ;\n # if OPENSSL_API_COMPAT >= 0x00908000L # define BN_zero ( a ) BN_zero_ex ( a ) # else # define BN_zero ( a ) ( BN_set_word ( ( a ) , 0 ) ) # endif const BIGNUM * BN_value_one ( void ) ;\n char * BN_options ( void ) ;\n BN_CTX * BN_CTX_new ( void ) ;\n BN_CTX * BN_CTX_secure_new ( void ) ;\n void BN_CTX_free ( BN_CTX * c ) ;\n void BN_CTX_start ( BN_CTX * ctx ) ;\n BIGNUM * BN_CTX_get ( BN_CTX * ctx ) ;\n void BN_CTX_end ( BN_CTX * ctx ) ;\n int BN_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_priv_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_priv_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_pseudo_rand ( BIGNUM * rnd , int bits , int top , int bottom ) ;\n int BN_pseudo_rand_range ( BIGNUM * rnd , const BIGNUM * range ) ;\n int BN_num_bits ( const BIGNUM * a ) ;\n int BN_num_bits_word ( BN_ULONG l ) ;\n int BN_security_bits ( int L , int N ) ;\n BIGNUM * BN_new ( void ) ;\n BIGNUM * BN_secure_new ( void ) ;\n void BN_clear_free ( BIGNUM * a ) ;\n BIGNUM * BN_copy ( BIGNUM * a , const BIGNUM * b ) ;\n void BN_swap ( BIGNUM * a , BIGNUM * b ) ;\n BIGNUM * BN_bin2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2bin ( const BIGNUM * a , unsigned char * to ) ;\n int BN_bn2binpad ( const BIGNUM * a , unsigned char * to , int tolen ) ;\n BIGNUM * BN_lebin2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2lebinpad ( const BIGNUM * a , unsigned char * to , int tolen ) ;\n BIGNUM * BN_mpi2bn ( const unsigned char * s , int len , BIGNUM * ret ) ;\n int BN_bn2mpi ( const BIGNUM * a , unsigned char * to ) ;\n int BN_sub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_usub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_uadd ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b ) ;\n int BN_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , BN_CTX * ctx ) ;\n int BN_sqr ( BIGNUM * r , const BIGNUM * a , BN_CTX * ctx ) ;\n void BN_set_negative ( BIGNUM * b , int n ) ;\n int BN_is_negative ( const BIGNUM * b ) ;\n int BN_div ( BIGNUM * dv , BIGNUM * rem , const BIGNUM * m , const BIGNUM * d , BN_CTX * ctx ) ;\n # define BN_mod ( rem , m , d , ctx ) BN_div ( NULL , ( rem ) , ( m ) , ( d ) , ( ctx ) ) int BN_nnmod ( BIGNUM * r , const BIGNUM * m , const BIGNUM * d , BN_CTX * ctx ) ;\n int BN_mod_add ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_add_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m ) ;\n int BN_mod_sub ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_sub_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m ) ;\n int BN_mod_mul ( BIGNUM * r , const BIGNUM * a , const BIGNUM * b , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_sqr ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift1 ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift1_quick ( BIGNUM * r , const BIGNUM * a , const BIGNUM * m ) ;\n int BN_mod_lshift ( BIGNUM * r , const BIGNUM * a , int n , const BIGNUM * m , BN_CTX * ctx ) ;\n int BN_mod_lshift_quick ( BIGNUM * r , const BIGNUM * a , int n , const BIGNUM * m ) ;\n BN_ULONG BN_mod_word ( const BIGNUM * a , BN_ULONG w ) ;\n BN_ULONG BN_div_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_mul_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_add_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_sub_word ( BIGNUM * a , BN_ULONG w ) ;\n int BN_set_word ( BIGNUM * a , BN_ULONG w ) ;\n BN_ULONG BN_get_word ( const BIGNUM * a )"}
{"idx": 19907, "target": 0, "func": "static void pk_transaction_dispose ( GObject * object ) {\n PkTransaction * transaction ;\n g_return_if_fail ( PK_IS_TRANSACTION ( object ) ) ;\n transaction = PK_TRANSACTION ( object ) ;\n if ( transaction -> priv -> waiting_for_auth ) {\n g_cancellable_cancel ( transaction -> priv -> cancellable ) ;\n pk_transaction_error_code_emit ( transaction , PK_ERROR_ENUM_NOT_AUTHORIZED , \"client did not authorize action\" ) ;\n pk_transaction_finished_emit ( transaction , PK_EXIT_ENUM_FAILED , 0 ) ;\n }\n if ( transaction -> priv -> registration_id > 0 ) {\n g_dbus_connection_unregister_object ( transaction -> priv -> connection , transaction -> priv -> registration_id ) ;\n transaction -> priv -> registration_id = 0 ;\n }\n if ( transaction -> priv -> connection != NULL ) {\n g_debug ( \"emitting destroy %s\" , transaction -> priv -> tid ) ;\n g_dbus_connection_emit_signal ( transaction -> priv -> connection , NULL , transaction -> priv -> tid , PK_DBUS_INTERFACE_TRANSACTION , \"Destroy\" , NULL , NULL ) ;\n }\n G_OBJECT_CLASS ( pk_transaction_parent_class ) -> dispose ( object ) ;\n }"}
{"idx": 19908, "target": 1, "func": "xmlChar * xsltAttrTemplateValueProcessNode ( xsltTransformContextPtr ctxt , const xmlChar * str , xmlNodePtr inst ) {\n xmlChar * ret = NULL ;\n const xmlChar * cur ;\n xmlChar * expr , * val ;\n xmlNsPtr * nsList = NULL ;\n int nsNr = 0 ;\n if ( str == NULL ) return ( NULL ) ;\n if ( * str == 0 ) return ( xmlStrndup ( ( xmlChar * ) \"\" , 0 ) ) ;\n cur = str ;\n while ( * cur != 0 ) {\n if ( * cur == '{\n' ) {\n if ( * ( cur + 1 ) == '{\n' ) {\n cur ++ ;\n ret = xmlStrncat ( ret , str , cur - str ) ;\n cur ++ ;\n str = cur ;\n continue ;\n }\n ret = xmlStrncat ( ret , str , cur - str ) ;\n str = cur ;\n cur ++ ;\n while ( ( * cur != 0 ) && ( * cur != '}\n' ) ) cur ++ ;\n if ( * cur == 0 ) {\n xsltTransformError ( ctxt , NULL , inst , \"xsltAttrTemplateValueProcessNode: unmatched '{\n'\\n\" ) ;\n ret = xmlStrncat ( ret , str , cur - str ) ;\n return ( ret ) ;\n }\n str ++ ;\n expr = xmlStrndup ( str , cur - str ) ;\n if ( expr == NULL ) return ( ret ) ;\n else if ( * expr == '{\n' ) {\n ret = xmlStrcat ( ret , expr ) ;\n xmlFree ( expr ) ;\n }\n else {\n xmlXPathCompExprPtr comp ;\n if ( ( nsList == NULL ) && ( inst != NULL ) ) {\n int i = 0 ;\n nsList = xmlGetNsList ( inst -> doc , inst ) ;\n if ( nsList != NULL ) {\n while ( nsList [ i ] != NULL ) i ++ ;\n nsNr = i ;\n }\n }\n comp = xmlXPathCompile ( expr ) ;\n val = xsltEvalXPathStringNs ( ctxt , comp , nsNr , nsList ) ;\n xmlXPathFreeCompExpr ( comp ) ;\n xmlFree ( expr ) ;\n if ( val != NULL ) {\n ret = xmlStrcat ( ret , val ) ;\n xmlFree ( val ) ;\n }\n }\n cur ++ ;\n str = cur ;\n }\n else if ( * cur == '}\n' ) {\n cur ++ ;\n if ( * cur == '}\n' ) {\n ret = xmlStrncat ( ret , str , cur - str ) ;\n cur ++ ;\n str = cur ;\n continue ;\n }\n else {\n xsltTransformError ( ctxt , NULL , inst , \"xsltAttrTemplateValueProcessNode: unmatched '}\n'\\n\" ) ;\n }\n }\n else cur ++ ;\n }\n if ( cur != str ) {\n ret = xmlStrncat ( ret , str , cur - str ) ;\n }\n if ( nsList != NULL ) xmlFree ( nsList ) ;\n return ( ret ) ;\n }"}
{"idx": 19909, "target": 0, "func": "void vp9_iwht4x4_1_add_c ( const tran_low_t * in , uint8_t * dest , int dest_stride ) {\n int i ;\n tran_high_t a1 , e1 ;\n tran_low_t tmp [ 4 ] ;\n const tran_low_t * ip = in ;\n tran_low_t * op = tmp ;\n a1 = ip [ 0 ] >> UNIT_QUANT_SHIFT ;\n e1 = a1 >> 1 ;\n a1 -= e1 ;\n op [ 0 ] = a1 ;\n op [ 1 ] = op [ 2 ] = op [ 3 ] = e1 ;\n ip = tmp ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n e1 = ip [ 0 ] >> 1 ;\n a1 = ip [ 0 ] - e1 ;\n dest [ dest_stride * 0 ] = clip_pixel ( dest [ dest_stride * 0 ] + a1 ) ;\n dest [ dest_stride * 1 ] = clip_pixel ( dest [ dest_stride * 1 ] + e1 ) ;\n dest [ dest_stride * 2 ] = clip_pixel ( dest [ dest_stride * 2 ] + e1 ) ;\n dest [ dest_stride * 3 ] = clip_pixel ( dest [ dest_stride * 3 ] + e1 ) ;\n ip ++ ;\n dest ++ ;\n }\n }"}
{"idx": 19910, "target": 0, "func": "static bool host_tsx_blacklisted ( void ) {\n int family , model , stepping ;\n char vendor [ CPUID_VENDOR_SZ + 1 ] ;\n host_vendor_fms ( vendor , & family , & model , & stepping ) ;\n return ! strcmp ( vendor , CPUID_VENDOR_INTEL ) && ( family == 6 ) && ( ( model == 63 && stepping < 4 ) || model == 60 || model == 69 || model == 70 ) ;\n }"}
{"idx": 19911, "target": 0, "func": "static int get_pid_priority ( pid_t pid ) {\n struct sched_param par ;\n sched_getparam ( pid , & par ) ;\n return par . sched_priority ;\n }"}
{"idx": 19912, "target": 0, "func": "static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 19913, "target": 0, "func": "static PyObject * string_count ( PyStringObject * self , PyObject * args ) {\n PyObject * sub_obj ;\n const char * str = PyString_AS_STRING ( self ) , * sub ;\n Py_ssize_t sub_len ;\n Py_ssize_t start = 0 , end = PY_SSIZE_T_MAX ;\n if ( ! stringlib_parse_args_finds ( \"count\" , args , & sub_obj , & start , & end ) ) return NULL ;\n if ( PyString_Check ( sub_obj ) ) {\n sub = PyString_AS_STRING ( sub_obj ) ;\n sub_len = PyString_GET_SIZE ( sub_obj ) ;\n }\n # ifdef Py_USING_UNICODE else if ( PyUnicode_Check ( sub_obj ) ) {\n Py_ssize_t count ;\n count = PyUnicode_Count ( ( PyObject * ) self , sub_obj , start , end ) ;\n if ( count == - 1 ) return NULL ;\n else return PyInt_FromSsize_t ( count ) ;\n }\n # endif else if ( PyObject_AsCharBuffer ( sub_obj , & sub , & sub_len ) ) return NULL ;\n ADJUST_INDICES ( start , end , PyString_GET_SIZE ( self ) ) ;\n return PyInt_FromSsize_t ( stringlib_count ( str + start , end - start , sub , sub_len , PY_SSIZE_T_MAX ) ) ;\n }"}
{"idx": 19914, "target": 0, "func": "static int dissect_usb_video_processing_unit ( proto_tree * tree , tvbuff_t * tvb , int offset ) {\n static const int * control_bits [ ] = {\n & hf_usb_vid_proc_control_D [ 0 ] , & hf_usb_vid_proc_control_D [ 1 ] , & hf_usb_vid_proc_control_D [ 2 ] , & hf_usb_vid_proc_control_D [ 3 ] , & hf_usb_vid_proc_control_D [ 4 ] , & hf_usb_vid_proc_control_D [ 5 ] , & hf_usb_vid_proc_control_D [ 6 ] , & hf_usb_vid_proc_control_D [ 7 ] , & hf_usb_vid_proc_control_D [ 8 ] , & hf_usb_vid_proc_control_D [ 9 ] , & hf_usb_vid_proc_control_D [ 10 ] , & hf_usb_vid_proc_control_D [ 11 ] , & hf_usb_vid_proc_control_D [ 12 ] , & hf_usb_vid_proc_control_D [ 13 ] , & hf_usb_vid_proc_control_D [ 14 ] , & hf_usb_vid_proc_control_D [ 15 ] , & hf_usb_vid_proc_control_D [ 16 ] , & hf_usb_vid_proc_control_D [ 17 ] , & hf_usb_vid_proc_control_D [ 18 ] , NULL }\n ;\n DISSECTOR_ASSERT ( array_length ( control_bits ) == ( 1 + array_length ( hf_usb_vid_proc_control_D ) ) ) ;\n proto_tree_add_item ( tree , hf_usb_vid_control_ifdesc_src_id , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( tree , hf_usb_vid_max_multiplier , tvb , offset + 1 , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 3 ;\n offset = dissect_bmControl ( tree , tvb , offset , ett_processing_controls , control_bits ) ;\n proto_tree_add_item ( tree , hf_usb_vid_iProcessing , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n ++ offset ;\n if ( tvb_reported_length_remaining ( tvb , offset ) > 0 ) {\n static const int * standard_bits [ ] = {\n & hf_usb_vid_proc_standards_D [ 0 ] , & hf_usb_vid_proc_standards_D [ 1 ] , & hf_usb_vid_proc_standards_D [ 2 ] , & hf_usb_vid_proc_standards_D [ 3 ] , & hf_usb_vid_proc_standards_D [ 4 ] , & hf_usb_vid_proc_standards_D [ 5 ] , NULL }\n ;\n DISSECTOR_ASSERT ( array_length ( standard_bits ) == ( 1 + array_length ( hf_usb_vid_proc_standards_D ) ) ) ;\n proto_tree_add_bitmask ( tree , tvb , offset , hf_usb_vid_proc_standards , ett_video_standards , standard_bits , ENC_NA ) ;\n ++ offset ;\n }\n return offset ;\n }"}
{"idx": 19915, "target": 1, "func": "xsltDocumentPtr xsltLoadStyleDocument ( xsltStylesheetPtr style , const xmlChar * URI ) {\n xsltDocumentPtr ret ;\n xmlDocPtr doc ;\n xsltSecurityPrefsPtr sec ;\n if ( ( style == NULL ) || ( URI == NULL ) ) return ( NULL ) ;\n sec = xsltGetDefaultSecurityPrefs ( ) ;\n if ( sec != NULL ) {\n int res ;\n res = xsltCheckRead ( sec , NULL , URI ) ;\n if ( res == 0 ) {\n xsltTransformError ( NULL , NULL , NULL , \"xsltLoadStyleDocument: read rights for %s denied\\n\" , URI ) ;\n return ( NULL ) ;\n }\n }\n ret = style -> docList ;\n while ( ret != NULL ) {\n if ( ( ret -> doc != NULL ) && ( ret -> doc -> URL != NULL ) && ( xmlStrEqual ( ret -> doc -> URL , URI ) ) ) return ( ret ) ;\n ret = ret -> next ;\n }\n doc = xsltDocDefaultLoader ( URI , style -> dict , XSLT_PARSE_OPTIONS , ( void * ) style , XSLT_LOAD_STYLESHEET ) ;\n if ( doc == NULL ) return ( NULL ) ;\n ret = xsltNewStyleDocument ( style , doc ) ;\n return ( ret ) ;\n }"}
{"idx": 19916, "target": 0, "func": "kadm5_ret_t kadm5_randkey_principal ( void * server_handle , krb5_principal principal , krb5_keyblock * * keyblocks , int * n_keys ) {\n return kadm5_randkey_principal_3 ( server_handle , principal , FALSE , 0 , NULL , keyblocks , n_keys ) ;\n }"}
{"idx": 19917, "target": 0, "func": "static void test_ts ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND my_bind [ 6 ] ;\n MYSQL_TIME ts ;\n MYSQL_RES * prep_res ;\n char strts [ 30 ] ;\n ulong length ;\n int rc , field_count ;\n char name ;\n char query [ MAX_TEST_QUERY_LENGTH ] ;\n const char * queries [ 3 ] = {\n \"SELECT a, b, c FROM test_ts WHERE %c=?\" , \"SELECT a, b, c FROM test_ts WHERE %c=?\" , \"SELECT a, b, c FROM test_ts WHERE %c=CAST(? AS DATE)\" }\n ;\n myheader ( \"test_ts\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_ts\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_ts(a DATE, b TIME, c TIMESTAMP)\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"INSERT INTO test_ts VALUES(?, ?, ?), (?, ?, ?)\" ) ;\n check_stmt ( stmt ) ;\n ts . year = 2003 ;\n ts . month = 07 ;\n ts . day = 12 ;\n ts . hour = 21 ;\n ts . minute = 07 ;\n ts . second = 46 ;\n ts . second_part = 0 ;\n length = ( long ) ( strmov ( strts , \"2003-07-12 21:07:46\" ) - strts ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_TIMESTAMP ;\n my_bind [ 0 ] . buffer = ( void * ) & ts ;\n my_bind [ 0 ] . buffer_length = sizeof ( ts ) ;\n my_bind [ 2 ] = my_bind [ 1 ] = my_bind [ 0 ] ;\n my_bind [ 3 ] . buffer_type = MYSQL_TYPE_STRING ;\n my_bind [ 3 ] . buffer = ( void * ) strts ;\n my_bind [ 3 ] . buffer_length = sizeof ( strts ) ;\n my_bind [ 3 ] . length = & length ;\n my_bind [ 5 ] = my_bind [ 4 ] = my_bind [ 3 ] ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n mysql_stmt_close ( stmt ) ;\n verify_col_data ( \"test_ts\" , \"a\" , \"2003-07-12\" ) ;\n verify_col_data ( \"test_ts\" , \"b\" , \"21:07:46\" ) ;\n verify_col_data ( \"test_ts\" , \"c\" , \"2003-07-12 21:07:46\" ) ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT * FROM test_ts\" ) ;\n check_stmt ( stmt ) ;\n prep_res = mysql_stmt_result_metadata ( stmt ) ;\n mytest ( prep_res ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( rc == 2 ) ;\n field_count = mysql_num_fields ( prep_res ) ;\n mysql_free_result ( prep_res ) ;\n mysql_stmt_close ( stmt ) ;\n for ( name = 'a' ;\n field_count -- ;\n name ++ ) {\n int row_count = 0 ;\n sprintf ( query , queries [ field_count ] , name ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n %s\" , query ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_bind_param ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n while ( mysql_stmt_fetch ( stmt ) == 0 ) row_count ++ ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n returned '%d' rows\" , row_count ) ;\n DIE_UNLESS ( row_count == 2 ) ;\n mysql_stmt_close ( stmt ) ;\n }\n }"}
{"idx": 19918, "target": 0, "func": "static void dump_table ( char * table , char * db ) {\n char ignore_flag ;\n char buf [ 200 ] , table_buff [ NAME_LEN + 3 ] ;\n DYNAMIC_STRING query_string ;\n char table_type [ NAME_LEN ] ;\n char * result_table , table_buff2 [ NAME_LEN * 2 + 3 ] , * opt_quoted_table ;\n int error = 0 ;\n ulong rownr , row_break , total_length , init_length ;\n uint num_fields ;\n MYSQL_RES * res ;\n MYSQL_FIELD * field ;\n MYSQL_ROW row ;\n DBUG_ENTER ( \"dump_table\" ) ;\n num_fields = get_table_structure ( table , db , table_type , & ignore_flag ) ;\n if ( strcmp ( table_type , \"VIEW\" ) == 0 ) DBUG_VOID_RETURN ;\n if ( opt_no_data ) {\n verbose_msg ( \"-- Skipping dump data for table '%s', --no-data was used\\n\" , table ) ;\n DBUG_VOID_RETURN ;\n }\n DBUG_PRINT ( \"info\" , ( \"ignore_flag: %x num_fields: %d\" , ( int ) ignore_flag , num_fields ) ) ;\n if ( ignore_flag & IGNORE_DATA ) {\n verbose_msg ( \"-- Warning: Skipping data for table '%s' because \" \"it's of type %s\\n\" , table , table_type ) ;\n DBUG_VOID_RETURN ;\n }\n if ( num_fields == 0 ) {\n verbose_msg ( \"-- Skipping dump data for table '%s', it has no fields\\n\" , table ) ;\n DBUG_VOID_RETURN ;\n }\n if ( ! opt_events && ! my_strcasecmp ( & my_charset_latin1 , db , \"mysql\" ) && ! my_strcasecmp ( & my_charset_latin1 , table , \"event\" ) ) {\n verbose_msg ( \"-- Skipping data table mysql.event, --skip-events was used\\n\" ) ;\n DBUG_VOID_RETURN ;\n }\n result_table = quote_name ( table , table_buff , 1 ) ;\n opt_quoted_table = quote_name ( table , table_buff2 , 0 ) ;\n verbose_msg ( \"-- Sending SELECT query...\\n\" ) ;\n init_dynamic_string_checked ( & query_string , \"\" , 1024 , 1024 ) ;\n if ( path ) {\n char filename [ FN_REFLEN ] , tmp_path [ FN_REFLEN ] ;\n convert_dirname ( tmp_path , path , NullS ) ;\n my_load_path ( tmp_path , tmp_path , NULL ) ;\n fn_format ( filename , table , tmp_path , \".txt\" , MYF ( MY_UNPACK_FILENAME ) ) ;\n my_delete ( filename , MYF ( 0 ) ) ;\n to_unix_path ( filename ) ;\n dynstr_append_checked ( & query_string , \"SELECT /*!40001 SQL_NO_CACHE */ * INTO OUTFILE '\" ) ;\n dynstr_append_checked ( & query_string , filename ) ;\n dynstr_append_checked ( & query_string , \"'\" ) ;\n dynstr_append_checked ( & query_string , \" /*!50138 CHARACTER SET \" ) ;\n dynstr_append_checked ( & query_string , default_charset == mysql_universal_client_charset ? my_charset_bin . name : default_charset ) ;\n dynstr_append_checked ( & query_string , \" */\" ) ;\n if ( fields_terminated || enclosed || opt_enclosed || escaped ) dynstr_append_checked ( & query_string , \" FIELDS\" ) ;\n add_load_option ( & query_string , \" TERMINATED BY \" , fields_terminated ) ;\n add_load_option ( & query_string , \" ENCLOSED BY \" , enclosed ) ;\n add_load_option ( & query_string , \" OPTIONALLY ENCLOSED BY \" , opt_enclosed ) ;\n add_load_option ( & query_string , \" ESCAPED BY \" , escaped ) ;\n add_load_option ( & query_string , \" LINES TERMINATED BY \" , lines_terminated ) ;\n dynstr_append_checked ( & query_string , \" FROM \" ) ;\n dynstr_append_checked ( & query_string , result_table ) ;\n if ( where ) {\n dynstr_append_checked ( & query_string , \" WHERE \" ) ;\n dynstr_append_checked ( & query_string , where ) ;\n }\n if ( order_by ) {\n dynstr_append_checked ( & query_string , \" ORDER BY \" ) ;\n dynstr_append_checked ( & query_string , order_by ) ;\n }\n if ( mysql_real_query ( mysql , query_string . str , query_string . length ) ) {\n DB_error ( mysql , \"when executing 'SELECT INTO OUTFILE'\" ) ;\n dynstr_free ( & query_string ) ;\n DBUG_VOID_RETURN ;\n }\n }\n else {\n print_comment ( md_result_file , 0 , \"\\n--\\n-- Dumping data for table %s\\n--\\n\" , fix_for_comment ( result_table ) ) ;\n dynstr_append_checked ( & query_string , \"SELECT /*!40001 SQL_NO_CACHE */ * FROM \" ) ;\n dynstr_append_checked ( & query_string , result_table ) ;\n if ( where ) {\n print_comment ( md_result_file , 0 , \"-- WHERE: %s\\n\" , fix_for_comment ( where ) ) ;\n dynstr_append_checked ( & query_string , \" WHERE \" ) ;\n dynstr_append_checked ( & query_string , where ) ;\n }\n if ( order_by ) {\n print_comment ( md_result_file , 0 , \"-- ORDER BY: %s\\n\" , fix_for_comment ( order_by ) ) ;\n dynstr_append_checked ( & query_string , \" ORDER BY \" ) ;\n dynstr_append_checked ( & query_string , order_by ) ;\n }\n if ( ! opt_xml && ! opt_compact ) {\n fputs ( \"\\n\" , md_result_file ) ;\n check_io ( md_result_file ) ;\n }\n if ( mysql_query_with_error_report ( mysql , 0 , query_string . str ) ) {\n DB_error ( mysql , \"when retrieving data from server\" ) ;\n goto err ;\n }\n if ( quick ) res = mysql_use_result ( mysql ) ;\n else res = mysql_store_result ( mysql ) ;\n if ( ! res ) {\n DB_error ( mysql , \"when retrieving data from server\" ) ;\n goto err ;\n }\n verbose_msg ( \"-- Retrieving rows...\\n\" ) ;\n if ( mysql_num_fields ( res ) != num_fields ) {\n fprintf ( stderr , \"%s: Error in field count for table: %s ! Aborting.\\n\" , my_progname_short , result_table ) ;\n error = EX_CONSCHECK ;\n goto err ;\n }\n if ( opt_lock ) {\n fprintf ( md_result_file , \"LOCK TABLES %s WRITE;\n\\n\" , opt_quoted_table ) ;\n check_io ( md_result_file ) ;\n }\n if ( opt_disable_keys ) {\n fprintf ( md_result_file , \"/*!40000 ALTER TABLE %s DISABLE KEYS */;\n\\n\" , opt_quoted_table ) ;\n check_io ( md_result_file ) ;\n }\n total_length = opt_net_buffer_length ;\n row_break = 0 ;\n rownr = 0 ;\n init_length = ( uint ) insert_pat . length + 4 ;\n if ( opt_xml ) print_xml_tag ( md_result_file , \"\\t\" , \"\\n\" , \"table_data\" , \"name=\" , table , NullS ) ;\n if ( opt_autocommit ) {\n fprintf ( md_result_file , \"set autocommit=0;\n\\n\" ) ;\n check_io ( md_result_file ) ;\n }\n while ( ( row = mysql_fetch_row ( res ) ) ) {\n uint i ;\n ulong * lengths = mysql_fetch_lengths ( res ) ;\n rownr ++ ;\n if ( ! extended_insert && ! opt_xml ) {\n fputs ( insert_pat . str , md_result_file ) ;\n check_io ( md_result_file ) ;\n }\n mysql_field_seek ( res , 0 ) ;\n if ( opt_xml ) {\n fputs ( \"\\t<row>\\n\" , md_result_file ) ;\n check_io ( md_result_file ) ;\n }\n for ( i = 0 ;\n i < mysql_num_fields ( res ) ;\n i ++ ) {\n int is_blob ;\n ulong length = lengths [ i ] ;\n if ( ! ( field = mysql_fetch_field ( res ) ) ) die ( EX_CONSCHECK , \"Not enough fields from table %s! Aborting.\\n\" , result_table ) ;\n is_blob = ( opt_hex_blob && field -> charsetnr == 63 && ( field -> type == MYSQL_TYPE_BIT || field -> type == MYSQL_TYPE_STRING || field -> type == MYSQL_TYPE_VAR_STRING || field -> type == MYSQL_TYPE_VARCHAR || field -> type == MYSQL_TYPE_BLOB || field -> type == MYSQL_TYPE_LONG_BLOB || field -> type == MYSQL_TYPE_MEDIUM_BLOB || field -> type == MYSQL_TYPE_TINY_BLOB || field -> type == MYSQL_TYPE_GEOMETRY ) ) ? 1 : 0 ;\n if ( extended_insert && ! opt_xml ) {\n if ( i == 0 ) dynstr_set_checked ( & extended_row , \"(\" ) ;\n else dynstr_append_checked ( & extended_row , \",\" ) ;\n if ( row [ i ] ) {\n if ( length ) {\n if ( ! ( field -> flags & NUM_FLAG ) ) {\n dynstr_realloc_checked ( & extended_row , length * 2 + 2 + 1 ) ;\n if ( opt_hex_blob && is_blob ) {\n dynstr_append_checked ( & extended_row , \"0x\" ) ;\n extended_row . length += mysql_hex_string ( extended_row . str + extended_row . length , row [ i ] , length ) ;\n DBUG_ASSERT ( extended_row . length + 1 <= extended_row . max_length ) ;\n DBUG_ASSERT ( extended_row . str [ extended_row . length ] == '\\0' ) ;\n }\n else {\n dynstr_append_checked ( & extended_row , \"'\" ) ;\n extended_row . length += mysql_real_escape_string ( & mysql_connection , & extended_row . str [ extended_row . length ] , row [ i ] , length ) ;\n extended_row . str [ extended_row . length ] = '\\0' ;\n dynstr_append_checked ( & extended_row , \"'\" ) ;\n }\n }\n else {\n char * ptr = row [ i ] ;\n if ( my_isalpha ( charset_info , * ptr ) || ( * ptr == '-' && my_isalpha ( charset_info , ptr [ 1 ] ) ) ) dynstr_append_checked ( & extended_row , \"NULL\" ) ;\n else {\n if ( field -> type == MYSQL_TYPE_DECIMAL ) {\n dynstr_append_checked ( & extended_row , \"'\" ) ;\n dynstr_append_checked ( & extended_row , ptr ) ;\n dynstr_append_checked ( & extended_row , \"'\" ) ;\n }\n else dynstr_append_checked ( & extended_row , ptr ) ;\n }\n }\n }\n else dynstr_append_checked ( & extended_row , \"''\" ) ;\n }\n else dynstr_append_checked ( & extended_row , \"NULL\" ) ;\n }\n else {\n if ( i && ! opt_xml ) {\n fputc ( ',' , md_result_file ) ;\n check_io ( md_result_file ) ;\n }\n if ( row [ i ] ) {\n if ( ! ( field -> flags & NUM_FLAG ) ) {\n if ( opt_xml ) {\n if ( opt_hex_blob && is_blob && length ) {\n print_xml_tag ( md_result_file , \"\\t\\t\" , \"\" , \"field\" , \"name=\" , field -> name , \"xsi:type=\" , \"xs:hexBinary\" , NullS ) ;\n print_blob_as_hex ( md_result_file , row [ i ] , length ) ;\n }\n else {\n print_xml_tag ( md_result_file , \"\\t\\t\" , \"\" , \"field\" , \"name=\" , field -> name , NullS ) ;\n print_quoted_xml ( md_result_file , row [ i ] , length , 0 ) ;\n }\n fputs ( \"</field>\\n\" , md_result_file ) ;\n }\n else if ( opt_hex_blob && is_blob && length ) {\n fputs ( \"0x\" , md_result_file ) ;\n print_blob_as_hex ( md_result_file , row [ i ] , length ) ;\n }\n else unescape ( md_result_file , row [ i ] , length ) ;\n }\n else {\n char * ptr = row [ i ] ;\n if ( opt_xml ) {\n print_xml_tag ( md_result_file , \"\\t\\t\" , \"\" , \"field\" , \"name=\" , field -> name , NullS ) ;\n fputs ( ! my_isalpha ( charset_info , * ptr ) ? ptr : \"NULL\" , md_result_file ) ;\n fputs ( \"</field>\\n\" , md_result_file ) ;\n }\n else if ( my_isalpha ( charset_info , * ptr ) || ( * ptr == '-' && my_isalpha ( charset_info , ptr [ 1 ] ) ) ) fputs ( \"NULL\" , md_result_file ) ;\n else if ( field -> type == MYSQL_TYPE_DECIMAL ) {\n fputc ( '\\'' , md_result_file ) ;\n fputs ( ptr , md_result_file ) ;\n fputc ( '\\'' , md_result_file ) ;\n }\n else fputs ( ptr , md_result_file ) ;\n }\n }\n else {\n if ( ! opt_xml ) fputs ( \"NULL\" , md_result_file ) ;\n else print_xml_null_tag ( md_result_file , \"\\t\\t\" , \"field name=\" , field -> name , \"\\n\" ) ;\n }\n check_io ( md_result_file ) ;\n }\n }\n if ( opt_xml ) {\n fputs ( \"\\t</row>\\n\" , md_result_file ) ;\n check_io ( md_result_file ) ;\n }\n if ( extended_insert ) {\n ulong row_length ;\n dynstr_append_checked ( & extended_row , \")\" ) ;\n row_length = 2 + extended_row . length ;\n if ( total_length + row_length < opt_net_buffer_length ) {\n total_length += row_length ;\n fputc ( ',' , md_result_file ) ;\n fputs ( extended_row . str , md_result_file ) ;\n }\n else {\n if ( row_break ) fputs ( \";\n\\n\" , md_result_file ) ;\n row_break = 1 ;\n fputs ( insert_pat . str , md_result_file ) ;\n fputs ( extended_row . str , md_result_file ) ;\n total_length = row_length + init_length ;\n }\n check_io ( md_result_file ) ;\n }\n else if ( ! opt_xml ) {\n fputs ( \");\n\\n\" , md_result_file ) ;\n check_io ( md_result_file ) ;\n }\n }\n if ( opt_xml ) fputs ( \"\\t</table_data>\\n\" , md_result_file ) ;\n else if ( extended_insert && row_break ) fputs ( \";\n\\n\" , md_result_file ) ;\n fflush ( md_result_file ) ;\n check_io ( md_result_file ) ;\n if ( mysql_errno ( mysql ) ) {\n my_snprintf ( buf , sizeof ( buf ) , \"%s: Error %d: %s when dumping table %s at row: %ld\\n\" , my_progname_short , mysql_errno ( mysql ) , mysql_error ( mysql ) , result_table , rownr ) ;\n fputs ( buf , stderr ) ;\n error = EX_CONSCHECK ;\n goto err ;\n }\n if ( opt_disable_keys ) {\n fprintf ( md_result_file , \"/*!40000 ALTER TABLE %s ENABLE KEYS */;\n\\n\" , opt_quoted_table ) ;\n check_io ( md_result_file ) ;\n }\n if ( opt_lock ) {\n fputs ( \"UNLOCK TABLES;\n\\n\" , md_result_file ) ;\n check_io ( md_result_file ) ;\n }\n if ( opt_autocommit ) {\n fprintf ( md_result_file , \"commit;\n\\n\" ) ;\n check_io ( md_result_file ) ;\n }\n mysql_free_result ( res ) ;\n }\n dynstr_free ( & query_string ) ;\n DBUG_VOID_RETURN ;\n err : dynstr_free ( & query_string ) ;\n maybe_exit ( error ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 19919, "target": 0, "func": "static guint16 de_tp_epc_ellipsoid_point_with_alt ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n guint32 longitude ;\n curr_offset = offset ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_dtap_epc_latitude_sign , tvb , curr_offset << 3 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_dtap_epc_degrees_latitude , tvb , ( curr_offset << 3 ) + 1 , 23 , ENC_BIG_ENDIAN ) ;\n curr_offset += 3 ;\n longitude = tvb_get_ntoh24 ( tvb , curr_offset ) ;\n proto_tree_add_int_format ( tree , hf_gsm_a_dtap_epc_degrees_longitude , tvb , curr_offset , 3 , longitude , \"%s = %s: %d\" , decode_bits_in_field ( curr_offset << 3 , 24 , longitude ) , proto_registrar_get_name ( hf_gsm_a_dtap_epc_degrees_longitude ) , longitude - 8388608 ) ;\n curr_offset += 3 ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_dtap_epc_altitude_dir , tvb , curr_offset << 3 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_bits_item ( tree , hf_gsm_a_dtap_epc_altitude , tvb , ( curr_offset << 3 ) + 1 , 15 , ENC_BIG_ENDIAN ) ;\n curr_offset += 2 ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 19920, "target": 0, "func": "static int string_num_dots ( const char * s ) {\n int count = 0 ;\n while ( ( s = strchr ( s , '.' ) ) ) {\n s ++ ;\n count ++ ;\n }\n return count ;\n }"}
{"idx": 19921, "target": 1, "func": "int set_wep_key ( char * string ) {\n int bit = 0 ;\n char * p , type ;\n char * tok ;\n char s [ strlen ( string ) + 1 ] ;\n u_char tmp_wkey [ 512 ] ;\n size_t tmp_wkey_len ;\n char tmp [ 128 ] ;\n memset ( GBL_WIFI -> wkey , 0 , sizeof ( GBL_WIFI -> wkey ) ) ;\n GBL_WIFI -> wkey_len = 0 ;\n strcpy ( s , string ) ;\n p = ec_strtok ( s , \":\" , & tok ) ;\n if ( p == NULL ) SEMIFATAL_ERROR ( \"Invalid parsing of the WEP key\" ) ;\n bit = atoi ( p ) ;\n if ( bit <= 0 ) SEMIFATAL_ERROR ( \"Unsupported WEP key length\" ) ;\n tmp_wkey_len = bit / 8 - WEP_IV_LEN ;\n if ( bit != 64 && bit != 128 ) SEMIFATAL_ERROR ( \"Unsupported WEP key length\" ) ;\n p = ec_strtok ( NULL , \":\" , & tok ) ;\n if ( p == NULL ) SEMIFATAL_ERROR ( \"Invalid parsing of the WEP key\" ) ;\n type = * p ;\n p = ec_strtok ( NULL , \":\" , & tok ) ;\n if ( p == NULL ) SEMIFATAL_ERROR ( \"Invalid parsing of the WEP key\" ) ;\n if ( type == 's' ) {\n if ( strescape ( ( char * ) tmp_wkey , p ) != ( int ) tmp_wkey_len ) SEMIFATAL_ERROR ( \"Specified WEP key length does not match the given string\" ) ;\n }\n else if ( type == 'p' ) {\n if ( bit == 64 ) make_key_64 ( ( u_char * ) p , tmp_wkey ) ;\n else if ( bit == 128 ) make_key_128 ( ( u_char * ) p , tmp_wkey ) ;\n }\n else {\n SEMIFATAL_ERROR ( \"Invalid parsing of the WEP key\" ) ;\n }\n USER_MSG ( \"Using WEP key: %s\\n\" , str_tohex ( tmp_wkey , tmp_wkey_len , tmp , sizeof ( tmp ) ) ) ;\n memcpy ( GBL_WIFI -> wkey , tmp_wkey , sizeof ( GBL_WIFI -> wkey ) ) ;\n GBL_WIFI -> wkey_len = tmp_wkey_len ;\n return E_SUCCESS ;\n }"}
{"idx": 19922, "target": 0, "func": "static gboolean dissect_iwarp_mpa ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {\n tvbuff_t * next_tvb = NULL ;\n conversation_t * conversation = NULL ;\n mpa_state_t * state = NULL ;\n struct tcpinfo * tcpinfo ;\n guint8 endpoint = 3 ;\n guint16 ulpdu_length = 0 ;\n if ( data == NULL ) return FALSE ;\n tcpinfo = ( struct tcpinfo * ) data ;\n if ( tvb_captured_length ( tvb ) >= MPA_SMALLEST_FPDU_LEN && is_mpa_fpdu ( pinfo ) ) {\n conversation = find_conversation ( pinfo -> num , & pinfo -> src , & pinfo -> dst , pinfo -> ptype , pinfo -> srcport , pinfo -> destport , 0 ) ;\n state = get_mpa_state ( conversation ) ;\n if ( pinfo -> srcport == state -> minfo [ MPA_INITIATOR ] . port ) {\n endpoint = MPA_INITIATOR ;\n }\n else if ( pinfo -> srcport == state -> minfo [ MPA_RESPONDER ] . port ) {\n endpoint = MPA_RESPONDER ;\n }\n else {\n REPORT_DISSECTOR_BUG ( \"endpoint cannot be determined\" ) ;\n }\n if ( ( state -> ini_exp_m_res || state -> res_exp_m_ini ) && endpoint <= MPA_RESPONDER ) {\n if ( ! state -> minfo [ endpoint ] . valid ) {\n state -> minfo [ endpoint ] . seq = tcpinfo -> seq ;\n state -> minfo [ endpoint ] . valid = TRUE ;\n }\n }\n ulpdu_length = dissect_mpa_fpdu ( tvb , pinfo , tree , state , tcpinfo , endpoint ) ;\n if ( ! ulpdu_length ) return FALSE ;\n if ( endpoint <= MPA_RESPONDER && state -> minfo [ endpoint ] . valid && number_of_markers ( state , tcpinfo , endpoint ) > 0 ) {\n next_tvb = tvb_new_subset_length ( remove_markers ( tvb , pinfo , get_first_marker_offset ( state , tcpinfo , endpoint ) , number_of_markers ( state , tcpinfo , endpoint ) , fpdu_total_length ( tcpinfo ) ) , MPA_ULPDU_LENGTH_LEN , ulpdu_length ) ;\n }\n else {\n next_tvb = tvb_new_subset_length ( tvb , MPA_ULPDU_LENGTH_LEN , ulpdu_length ) ;\n }\n if ( ddp_rdmap_handle ) {\n call_dissector ( ddp_rdmap_handle , next_tvb , pinfo , tree ) ;\n }\n else {\n REPORT_DISSECTOR_BUG ( \"ddp_handle was null\" ) ;\n }\n return TRUE ;\n }\n if ( tvb_captured_length ( tvb ) >= MPA_REQ_REP_FRAME_HEADER_LEN ) {\n if ( is_mpa_req ( tvb , pinfo ) ) return dissect_mpa_req_rep ( tvb , pinfo , tree , MPA_REQUEST_FRAME ) ;\n else if ( is_mpa_rep ( tvb , pinfo ) ) return dissect_mpa_req_rep ( tvb , pinfo , tree , MPA_REPLY_FRAME ) ;\n }\n return FALSE ;\n }"}
{"idx": 19923, "target": 0, "func": "static int dissect_h245_Mlrej_type ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_Mlrej_type , Mlrej_type_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 19924, "target": 0, "func": "static int raw_decode ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const AVPixFmtDescriptor * desc = av_pix_fmt_desc_get ( avctx -> pix_fmt ) ;\n RawVideoContext * context = avctx -> priv_data ;\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n int need_copy = ! avpkt -> buf || context -> is_2_4_bpp || context -> is_yuv2 ;\n int res ;\n AVFrame * frame = data ;\n AVPicture * picture = data ;\n frame -> pict_type = AV_PICTURE_TYPE_I ;\n frame -> key_frame = 1 ;\n frame -> reordered_opaque = avctx -> reordered_opaque ;\n frame -> pkt_pts = avctx -> pkt -> pts ;\n if ( buf_size < context -> frame_size - ( avctx -> pix_fmt == AV_PIX_FMT_PAL8 ? AVPALETTE_SIZE : 0 ) ) return - 1 ;\n if ( need_copy ) frame -> buf [ 0 ] = av_buffer_alloc ( context -> frame_size ) ;\n else frame -> buf [ 0 ] = av_buffer_ref ( avpkt -> buf ) ;\n if ( ! frame -> buf [ 0 ] ) return AVERROR ( ENOMEM ) ;\n if ( context -> is_2_4_bpp ) {\n int i ;\n uint8_t * dst = frame -> buf [ 0 ] -> data ;\n buf_size = context -> frame_size - AVPALETTE_SIZE ;\n if ( avctx -> bits_per_coded_sample == 4 ) {\n for ( i = 0 ;\n 2 * i + 1 < buf_size ;\n i ++ ) {\n dst [ 2 * i + 0 ] = buf [ i ] >> 4 ;\n dst [ 2 * i + 1 ] = buf [ i ] & 15 ;\n }\n }\n else {\n for ( i = 0 ;\n 4 * i + 3 < buf_size ;\n i ++ ) {\n dst [ 4 * i + 0 ] = buf [ i ] >> 6 ;\n dst [ 4 * i + 1 ] = buf [ i ] >> 4 & 3 ;\n dst [ 4 * i + 2 ] = buf [ i ] >> 2 & 3 ;\n dst [ 4 * i + 3 ] = buf [ i ] & 3 ;\n }\n }\n buf = dst ;\n }\n else if ( need_copy ) {\n memcpy ( frame -> buf [ 0 ] -> data , buf , FFMIN ( buf_size , context -> frame_size ) ) ;\n buf = frame -> buf [ 0 ] -> data ;\n }\n if ( avctx -> codec_tag == MKTAG ( 'A' , 'V' , '1' , 'x' ) || avctx -> codec_tag == MKTAG ( 'A' , 'V' , 'u' , 'p' ) ) buf += buf_size - context -> frame_size ;\n if ( ( res = avpicture_fill ( picture , buf , avctx -> pix_fmt , avctx -> width , avctx -> height ) ) < 0 ) return res ;\n if ( avctx -> pix_fmt == AV_PIX_FMT_PAL8 ) {\n const uint8_t * pal = av_packet_get_side_data ( avpkt , AV_PKT_DATA_PALETTE , NULL ) ;\n if ( pal ) {\n av_buffer_unref ( & context -> palette ) ;\n context -> palette = av_buffer_alloc ( AVPALETTE_SIZE ) ;\n if ( ! context -> palette ) return AVERROR ( ENOMEM ) ;\n memcpy ( context -> palette -> data , pal , AVPALETTE_SIZE ) ;\n frame -> palette_has_changed = 1 ;\n }\n }\n if ( ( avctx -> pix_fmt == AV_PIX_FMT_PAL8 && buf_size < context -> frame_size ) || ( desc -> flags & PIX_FMT_PSEUDOPAL ) ) {\n frame -> buf [ 1 ] = av_buffer_ref ( context -> palette ) ;\n if ( ! frame -> buf [ 1 ] ) return AVERROR ( ENOMEM ) ;\n frame -> data [ 1 ] = frame -> buf [ 1 ] -> data ;\n }\n if ( avctx -> pix_fmt == AV_PIX_FMT_BGR24 && ( ( frame -> linesize [ 0 ] + 3 ) & ~ 3 ) * avctx -> height <= buf_size ) frame -> linesize [ 0 ] = ( frame -> linesize [ 0 ] + 3 ) & ~ 3 ;\n if ( context -> flip ) flip ( avctx , picture ) ;\n if ( avctx -> codec_tag == MKTAG ( 'Y' , 'V' , '1' , '2' ) || avctx -> codec_tag == MKTAG ( 'Y' , 'V' , '1' , '6' ) || avctx -> codec_tag == MKTAG ( 'Y' , 'V' , '2' , '4' ) || avctx -> codec_tag == MKTAG ( 'Y' , 'V' , 'U' , '9' ) ) FFSWAP ( uint8_t * , picture -> data [ 1 ] , picture -> data [ 2 ] ) ;\n if ( avctx -> codec_tag == AV_RL32 ( \"yuv2\" ) && avctx -> pix_fmt == AV_PIX_FMT_YUYV422 ) {\n int x , y ;\n uint8_t * line = picture -> data [ 0 ] ;\n for ( y = 0 ;\n y < avctx -> height ;\n y ++ ) {\n for ( x = 0 ;\n x < avctx -> width ;\n x ++ ) line [ 2 * x + 1 ] ^= 0x80 ;\n line += picture -> linesize [ 0 ] ;\n }\n }\n * got_frame = 1 ;\n return buf_size ;\n }"}
{"idx": 19925, "target": 0, "func": "static int jpc_pi_nextpcrl ( register jpc_pi_t * pi ) {\n int rlvlno ;\n jpc_pirlvl_t * pirlvl ;\n jpc_pchg_t * pchg ;\n int prchind ;\n int prcvind ;\n int * prclyrno ;\n int compno ;\n jpc_picomp_t * picomp ;\n int xstep ;\n int ystep ;\n uint_fast32_t trx0 ;\n uint_fast32_t try0 ;\n uint_fast32_t r ;\n uint_fast32_t rpx ;\n uint_fast32_t rpy ;\n pchg = pi -> pchg ;\n if ( ! pi -> prgvolfirst ) {\n goto skip ;\n }\n else {\n pi -> xstep = 0 ;\n pi -> ystep = 0 ;\n for ( compno = 0 , picomp = pi -> picomps ;\n compno < pi -> numcomps ;\n ++ compno , ++ picomp ) {\n for ( rlvlno = 0 , pirlvl = picomp -> pirlvls ;\n rlvlno < picomp -> numrlvls ;\n ++ rlvlno , ++ pirlvl ) {\n xstep = picomp -> hsamp * ( 1 << ( pirlvl -> prcwidthexpn + picomp -> numrlvls - rlvlno - 1 ) ) ;\n ystep = picomp -> vsamp * ( 1 << ( pirlvl -> prcheightexpn + picomp -> numrlvls - rlvlno - 1 ) ) ;\n pi -> xstep = ( ! pi -> xstep ) ? xstep : JAS_MIN ( pi -> xstep , xstep ) ;\n pi -> ystep = ( ! pi -> ystep ) ? ystep : JAS_MIN ( pi -> ystep , ystep ) ;\n }\n }\n pi -> prgvolfirst = 0 ;\n }\n for ( pi -> y = pi -> ystart ;\n pi -> y < pi -> yend ;\n pi -> y += pi -> ystep - ( pi -> y % pi -> ystep ) ) {\n for ( pi -> x = pi -> xstart ;\n pi -> x < pi -> xend ;\n pi -> x += pi -> xstep - ( pi -> x % pi -> xstep ) ) {\n for ( pi -> compno = pchg -> compnostart , pi -> picomp = & pi -> picomps [ pi -> compno ] ;\n pi -> compno < pi -> numcomps && pi -> compno < JAS_CAST ( int , pchg -> compnoend ) ;\n ++ pi -> compno , ++ pi -> picomp ) {\n for ( pi -> rlvlno = pchg -> rlvlnostart , pi -> pirlvl = & pi -> picomp -> pirlvls [ pi -> rlvlno ] ;\n pi -> rlvlno < pi -> picomp -> numrlvls && pi -> rlvlno < pchg -> rlvlnoend ;\n ++ pi -> rlvlno , ++ pi -> pirlvl ) {\n if ( pi -> pirlvl -> numprcs == 0 ) {\n continue ;\n }\n r = pi -> picomp -> numrlvls - 1 - pi -> rlvlno ;\n trx0 = JPC_CEILDIV ( pi -> xstart , pi -> picomp -> hsamp << r ) ;\n try0 = JPC_CEILDIV ( pi -> ystart , pi -> picomp -> vsamp << r ) ;\n rpx = r + pi -> pirlvl -> prcwidthexpn ;\n rpy = r + pi -> pirlvl -> prcheightexpn ;\n if ( ( ( pi -> x == pi -> xstart && ( ( trx0 << r ) % ( 1 << rpx ) ) ) || ! ( pi -> x % ( pi -> picomp -> hsamp << rpx ) ) ) && ( ( pi -> y == pi -> ystart && ( ( try0 << r ) % ( 1 << rpy ) ) ) || ! ( pi -> y % ( pi -> picomp -> vsamp << rpy ) ) ) ) {\n prchind = JPC_FLOORDIVPOW2 ( JPC_CEILDIV ( pi -> x , pi -> picomp -> hsamp << r ) , pi -> pirlvl -> prcwidthexpn ) - JPC_FLOORDIVPOW2 ( trx0 , pi -> pirlvl -> prcwidthexpn ) ;\n prcvind = JPC_FLOORDIVPOW2 ( JPC_CEILDIV ( pi -> y , pi -> picomp -> vsamp << r ) , pi -> pirlvl -> prcheightexpn ) - JPC_FLOORDIVPOW2 ( try0 , pi -> pirlvl -> prcheightexpn ) ;\n pi -> prcno = prcvind * pi -> pirlvl -> numhprcs + prchind ;\n assert ( pi -> prcno < pi -> pirlvl -> numprcs ) ;\n for ( pi -> lyrno = 0 ;\n pi -> lyrno < pi -> numlyrs && pi -> lyrno < JAS_CAST ( int , pchg -> lyrnoend ) ;\n ++ pi -> lyrno ) {\n prclyrno = & pi -> pirlvl -> prclyrnos [ pi -> prcno ] ;\n if ( pi -> lyrno >= * prclyrno ) {\n ++ ( * prclyrno ) ;\n return 0 ;\n }\n skip : ;\n }\n }\n }\n }\n }\n }\n return 1 ;\n }"}
{"idx": 19926, "target": 0, "func": "void ff_vdpau_h264_picture_complete ( H264Context * h ) {\n struct vdpau_render_state * render ;\n render = ( struct vdpau_render_state * ) h -> cur_pic_ptr -> f . data [ 0 ] ;\n assert ( render ) ;\n render -> info . h264 . slice_count = h -> slice_num ;\n if ( render -> info . h264 . slice_count < 1 ) return ;\n render -> info . h264 . is_reference = ( h -> cur_pic_ptr -> reference & 3 ) ? VDP_TRUE : VDP_FALSE ;\n render -> info . h264 . field_pic_flag = h -> picture_structure != PICT_FRAME ;\n render -> info . h264 . bottom_field_flag = h -> picture_structure == PICT_BOTTOM_FIELD ;\n render -> info . h264 . num_ref_frames = h -> sps . ref_frame_count ;\n render -> info . h264 . mb_adaptive_frame_field_flag = h -> sps . mb_aff && ! render -> info . h264 . field_pic_flag ;\n render -> info . h264 . constrained_intra_pred_flag = h -> pps . constrained_intra_pred ;\n render -> info . h264 . weighted_pred_flag = h -> pps . weighted_pred ;\n render -> info . h264 . weighted_bipred_idc = h -> pps . weighted_bipred_idc ;\n render -> info . h264 . frame_mbs_only_flag = h -> sps . frame_mbs_only_flag ;\n render -> info . h264 . transform_8x8_mode_flag = h -> pps . transform_8x8_mode ;\n render -> info . h264 . chroma_qp_index_offset = h -> pps . chroma_qp_index_offset [ 0 ] ;\n render -> info . h264 . second_chroma_qp_index_offset = h -> pps . chroma_qp_index_offset [ 1 ] ;\n render -> info . h264 . pic_init_qp_minus26 = h -> pps . init_qp - 26 ;\n render -> info . h264 . num_ref_idx_l0_active_minus1 = h -> pps . ref_count [ 0 ] - 1 ;\n render -> info . h264 . num_ref_idx_l1_active_minus1 = h -> pps . ref_count [ 1 ] - 1 ;\n render -> info . h264 . log2_max_frame_num_minus4 = h -> sps . log2_max_frame_num - 4 ;\n render -> info . h264 . pic_order_cnt_type = h -> sps . poc_type ;\n render -> info . h264 . log2_max_pic_order_cnt_lsb_minus4 = h -> sps . poc_type ? 0 : h -> sps . log2_max_poc_lsb - 4 ;\n render -> info . h264 . delta_pic_order_always_zero_flag = h -> sps . delta_pic_order_always_zero_flag ;\n render -> info . h264 . direct_8x8_inference_flag = h -> sps . direct_8x8_inference_flag ;\n render -> info . h264 . entropy_coding_mode_flag = h -> pps . cabac ;\n render -> info . h264 . pic_order_present_flag = h -> pps . pic_order_present ;\n render -> info . h264 . deblocking_filter_control_present_flag = h -> pps . deblocking_filter_parameters_present ;\n render -> info . h264 . redundant_pic_cnt_present_flag = h -> pps . redundant_pic_cnt_present ;\n memcpy ( render -> info . h264 . scaling_lists_4x4 , h -> pps . scaling_matrix4 , sizeof ( render -> info . h264 . scaling_lists_4x4 ) ) ;\n memcpy ( render -> info . h264 . scaling_lists_8x8 [ 0 ] , h -> pps . scaling_matrix8 [ 0 ] , sizeof ( render -> info . h264 . scaling_lists_8x8 [ 0 ] ) ) ;\n memcpy ( render -> info . h264 . scaling_lists_8x8 [ 1 ] , h -> pps . scaling_matrix8 [ 3 ] , sizeof ( render -> info . h264 . scaling_lists_8x8 [ 0 ] ) ) ;\n ff_h264_draw_horiz_band ( h , 0 , h -> avctx -> height ) ;\n render -> bitstream_buffers_used = 0 ;\n }"}
{"idx": 19927, "target": 0, "func": "static inline void pxa2xx_rtc_alarm_update ( PXA2xxRTCState * s , uint32_t rtsr ) {\n if ( ( rtsr & ( 1 << 2 ) ) && ! ( rtsr & ( 1 << 0 ) ) ) qemu_mod_timer ( s -> rtc_hz , s -> last_hz + ( ( ( s -> rtar - s -> last_rcnr ) * 1000 * ( ( s -> rttr & 0xffff ) + 1 ) ) >> 15 ) ) ;\n else qemu_del_timer ( s -> rtc_hz ) ;\n if ( ( rtsr & ( 1 << 5 ) ) && ! ( rtsr & ( 1 << 4 ) ) ) qemu_mod_timer ( s -> rtc_rdal1 , s -> last_hz + ( ( ( s -> rdar1 - s -> last_rdcr ) * 1000 * ( ( s -> rttr & 0xffff ) + 1 ) ) >> 15 ) ) ;\n else qemu_del_timer ( s -> rtc_rdal1 ) ;\n if ( ( rtsr & ( 1 << 7 ) ) && ! ( rtsr & ( 1 << 6 ) ) ) qemu_mod_timer ( s -> rtc_rdal2 , s -> last_hz + ( ( ( s -> rdar2 - s -> last_rdcr ) * 1000 * ( ( s -> rttr & 0xffff ) + 1 ) ) >> 15 ) ) ;\n else qemu_del_timer ( s -> rtc_rdal2 ) ;\n if ( ( rtsr & 0x1200 ) == 0x1200 && ! ( rtsr & ( 1 << 8 ) ) ) qemu_mod_timer ( s -> rtc_swal1 , s -> last_sw + ( s -> swar1 - s -> last_swcr ) * 10 ) ;\n else qemu_del_timer ( s -> rtc_swal1 ) ;\n if ( ( rtsr & 0x1800 ) == 0x1800 && ! ( rtsr & ( 1 << 10 ) ) ) qemu_mod_timer ( s -> rtc_swal2 , s -> last_sw + ( s -> swar2 - s -> last_swcr ) * 10 ) ;\n else qemu_del_timer ( s -> rtc_swal2 ) ;\n if ( ( rtsr & 0xc000 ) == 0xc000 && ! ( rtsr & ( 1 << 13 ) ) ) qemu_mod_timer ( s -> rtc_pi , s -> last_pi + ( s -> piar & 0xffff ) - s -> last_rtcpicr ) ;\n else qemu_del_timer ( s -> rtc_pi ) ;\n }"}
{"idx": 19928, "target": 0, "func": "unsigned int vp9_sub_pixel_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp2 , W , dst , dst_stride , sse ) ;\n \\ }\n # define SUBPIX_AVG_VAR ( W , H ) unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {\n uint16_t fdata3 [ ( H + 1 ) * W ] ;\n uint8_t temp2 [ H * W ] ;\n DECLARE_ALIGNED_ARRAY ( 16 , uint8_t , temp3 , H * W ) ;\n var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 , H + 1 , W , BILINEAR_FILTERS_2TAP ( xoffset ) ) ;\n var_filter_block2d_bil_second_pass ( fdata3 , temp2 , W , W , H , W , BILINEAR_FILTERS_2TAP ( yoffset ) ) ;\n vp9_comp_avg_pred ( temp3 , second_pred , W , H , temp2 , W ) ;\n return vp9_variance ## W ## x ## H ## _c ( temp3 , W , dst , dst_stride , sse ) ;\n \\ }\n void vp9_get16x16var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 16 , 16 , sse , sum ) ;\n }\n void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }\n unsigned int vp9_mse16x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse16x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 16 , 8 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x16_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 16 , sse , & sum ) ;\n return * sse ;\n }\n unsigned int vp9_mse8x8_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sse ) {\n int sum ;\n variance ( src , src_stride , ref , ref_stride , 8 , 8 , sse , & sum ) ;\n return * sse ;\n }\n VAR ( 4 , 4 ) SUBPIX_VAR ( 4 , 4 ) SUBPIX_AVG_VAR ( 4 , 4 ) VAR ( 4 , 8 ) SUBPIX_VAR ( 4 , 8 ) SUBPIX_AVG_VAR ( 4 , 8 ) VAR ( 8 , 4 ) SUBPIX_VAR ( 8 , 4 ) SUBPIX_AVG_VAR ( 8 , 4 ) VAR ( 8 , 8 ) SUBPIX_VAR ( 8 , 8 ) SUBPIX_AVG_VAR ( 8 , 8 ) VAR ( 8 , 16 ) SUBPIX_VAR ( 8 , 16 ) SUBPIX_AVG_VAR ( 8 , 16 ) VAR ( 16 , 8 ) SUBPIX_VAR ( 16 , 8 ) SUBPIX_AVG_VAR ( 16 , 8 ) VAR ( 16 , 16 ) SUBPIX_VAR ( 16 , 16 ) SUBPIX_AVG_VAR ( 16 , 16 ) VAR ( 16 , 32 ) SUBPIX_VAR ( 16 , 32 ) SUBPIX_AVG_VAR ( 16 , 32 ) VAR ( 32 , 16 ) SUBPIX_VAR ( 32 , 16 )"}
{"idx": 19929, "target": 0, "func": "static int dissect_pvfs2_mgmt_remove_object_request ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , \"handle\" , NULL ) ;\n offset = dissect_pvfs_fs_id ( tvb , tree , offset ) ;\n return offset ;\n }"}
{"idx": 19930, "target": 0, "func": "static void typhoon_set_irq ( void * opaque , int irq , int level ) {\n TyphoonState * s = opaque ;\n uint64_t drir ;\n int i ;\n drir = s -> cchip . drir ;\n if ( level ) {\n drir |= 1ull << irq ;\n }\n else {\n drir &= ~ ( 1ull << irq ) ;\n }\n s -> cchip . drir = drir ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) {\n cpu_irq_change ( s -> cchip . cpu [ i ] , s -> cchip . dim [ i ] & drir ) ;\n }\n }"}
{"idx": 19931, "target": 0, "func": "static inline int pic_is_unused ( H264Context * h , Picture * pic ) {\n if ( ! pic -> f . buf [ 0 ] ) return 1 ;\n if ( pic -> needs_realloc && ! ( pic -> reference & DELAYED_PIC_REF ) ) return 1 ;\n return 0 ;\n }"}
{"idx": 19932, "target": 0, "func": "gcry_error_t gcry_sexp_sscan ( gcry_sexp_t * retsexp , size_t * erroff , const char * buffer , size_t length ) {\n return sexp_sscan ( retsexp , erroff , buffer , length , 0 , NULL ) ;\n }"}
{"idx": 19933, "target": 0, "func": "static void U_CALLCONV _LMBCSFromUnicode ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n ulmbcs_byte_t lastConverterIndex = 0 ;\n UChar uniChar ;\n ulmbcs_byte_t LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n ulmbcs_byte_t * pLMBCS ;\n int32_t bytes_written ;\n UBool groups_tried [ ULMBCS_GRP_LAST + 1 ] ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n int sourceIndex = 0 ;\n ulmbcs_byte_t OldConverterIndex = 0 ;\n while ( args -> source < args -> sourceLimit && ! U_FAILURE ( * err ) ) {\n OldConverterIndex = extraInfo -> localeConverterIndex ;\n if ( args -> target >= args -> targetLimit ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n uniChar = * ( args -> source ) ;\n bytes_written = 0 ;\n pLMBCS = LMBCS ;\n if ( ( uniChar >= 0x80 ) && ( uniChar <= 0xff ) && ( uniChar != 0xB1 ) && ( uniChar != 0xD7 ) && ( uniChar != 0xF7 ) && ( uniChar != 0xB0 ) && ( uniChar != 0xB4 ) && ( uniChar != 0xB6 ) && ( uniChar != 0xA7 ) && ( uniChar != 0xA8 ) ) {\n extraInfo -> localeConverterIndex = ULMBCS_GRP_L1 ;\n }\n if ( ( ( uniChar > ULMBCS_C0END ) && ( uniChar < ULMBCS_C1START ) ) || uniChar == 0 || uniChar == ULMBCS_HT || uniChar == ULMBCS_CR || uniChar == ULMBCS_LF || uniChar == ULMBCS_123SYSTEMRANGE ) {\n * pLMBCS ++ = ( ulmbcs_byte_t ) uniChar ;\n bytes_written = 1 ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t group = FindLMBCSUniRange ( uniChar ) ;\n if ( group == ULMBCS_GRP_UNICODE ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group == ULMBCS_GRP_CTRL ) {\n if ( uniChar <= ULMBCS_C0END ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( ULMBCS_CTRLOFFSET + uniChar ) ;\n }\n else if ( uniChar >= ULMBCS_C1START && uniChar <= ULMBCS_C1START + ULMBCS_CTRLOFFSET ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( uniChar & 0x00FF ) ;\n }\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group < ULMBCS_GRP_UNICODE ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , group , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n uprv_memset ( groups_tried , 0 , sizeof ( groups_tried ) ) ;\n if ( ( extraInfo -> OptGroup != 1 ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> OptGroup ) ) ) {\n if ( extraInfo -> localeConverterIndex < ULMBCS_DOUBLEOPTGROUP_START ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_L1 , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n else {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && ( extraInfo -> localeConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> localeConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written && ( lastConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , lastConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , lastConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t grp_start ;\n ulmbcs_byte_t grp_end ;\n ulmbcs_byte_t grp_ix ;\n grp_start = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_DOUBLEOPTGROUP_START : ULMBCS_GRP_L1 ) ;\n grp_end = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_GRP_LAST : ULMBCS_GRP_TH ) ;\n if ( group == ULMBCS_AMBIGUOUS_ALL ) {\n grp_start = ULMBCS_GRP_L1 ;\n grp_end = ULMBCS_GRP_LAST ;\n }\n for ( grp_ix = grp_start ;\n grp_ix <= grp_end && ! bytes_written ;\n grp_ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ grp_ix ] && ! groups_tried [ grp_ix ] ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , grp_ix , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && grp_start == ULMBCS_GRP_L1 ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n }\n }\n args -> source ++ ;\n pLMBCS = LMBCS ;\n while ( args -> target < args -> targetLimit && bytes_written -- ) {\n * ( args -> target ) ++ = * pLMBCS ++ ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = sourceIndex ;\n }\n }\n sourceIndex ++ ;\n if ( bytes_written > 0 ) {\n uint8_t * pErrorBuffer = args -> converter -> charErrorBuffer ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n args -> converter -> charErrorBufferLength = ( int8_t ) bytes_written ;\n while ( bytes_written -- ) {\n * pErrorBuffer ++ = * pLMBCS ++ ;\n }\n }\n extraInfo -> localeConverterIndex = OldConverterIndex ;\n }\n }"}
{"idx": 19934, "target": 1, "func": "static int pxa2xx_pwrmode_write ( CPUARMState * env , const ARMCPRegInfo * ri , uint64_t value ) {\n PXA2xxState * s = ( PXA2xxState * ) ri -> opaque ;\n static const char * pwrmode [ 8 ] = {\n \"Normal\" , \"Idle\" , \"Deep-idle\" , \"Standby\" , \"Sleep\" , \"reserved (!)\" , \"reserved (!)\" , \"Deep-sleep\" , }\n ;\n if ( value & 8 ) {\n printf ( \"%s: CPU voltage change attempt\\n\" , __func__ ) ;\n }\n switch ( value & 7 ) {\n case 0 : break ;\n case 1 : if ( ! ( s -> cm_regs [ CCCR >> 2 ] & ( 1 << 31 ) ) ) {\n cpu_interrupt ( CPU ( s -> cpu ) , CPU_INTERRUPT_HALT ) ;\n break ;\n }\n case 2 : cpu_interrupt ( CPU ( s -> cpu ) , CPU_INTERRUPT_HALT ) ;\n s -> pm_regs [ RCSR >> 2 ] |= 0x8 ;\n goto message ;\n case 3 : s -> cpu -> env . uncached_cpsr = ARM_CPU_MODE_SVC | CPSR_A | CPSR_F | CPSR_I ;\n s -> cpu -> env . cp15 . c1_sys = 0 ;\n s -> cpu -> env . cp15 . c1_coproc = 0 ;\n s -> cpu -> env . cp15 . c2_base0 = 0 ;\n s -> cpu -> env . cp15 . c3 = 0 ;\n s -> pm_regs [ PSSR >> 2 ] |= 0x8 ;\n s -> pm_regs [ RCSR >> 2 ] |= 0x8 ;\n memset ( s -> cpu -> env . regs , 0 , 4 * 15 ) ;\n s -> cpu -> env . regs [ 15 ] = s -> pm_regs [ PSPR >> 2 ] ;\n # if 0 buffer = 0xe59ff000 ;\n cpu_physical_memory_write ( 0 , & buffer , 4 ) ;\n buffer = s -> pm_regs [ PSPR >> 2 ] ;\n cpu_physical_memory_write ( 8 , & buffer , 4 ) ;\n # endif cpu_interrupt ( CPU ( arm_env_get_cpu ( cpu_single_env ) ) , CPU_INTERRUPT_HALT ) ;\n goto message ;\n default : message : printf ( \"%s: machine entered %s mode\\n\" , __func__ , pwrmode [ value & 7 ] ) ;\n }\n return 0 ;\n }"}
{"idx": 19935, "target": 0, "func": "void qmp_pmemsave ( int64_t addr , int64_t size , const char * filename , Error * * errp ) {\n FILE * f ;\n uint32_t l ;\n uint8_t buf [ 1024 ] ;\n f = fopen ( filename , \"wb\" ) ;\n if ( ! f ) {\n error_setg_file_open ( errp , errno , filename ) ;\n return ;\n }\n while ( size != 0 ) {\n l = sizeof ( buf ) ;\n if ( l > size ) l = size ;\n cpu_physical_memory_rw ( addr , buf , l , 0 ) ;\n if ( fwrite ( buf , 1 , l , f ) != l ) {\n error_set ( errp , QERR_IO_ERROR ) ;\n goto exit ;\n }\n addr += l ;\n size -= l ;\n }\n exit : fclose ( f ) ;\n }"}
{"idx": 19936, "target": 0, "func": "int tls_construct_server_key_exchange ( SSL * s ) {\n # ifndef OPENSSL_NO_DH EVP_PKEY * pkdh = NULL ;\n int j ;\n # endif # ifndef OPENSSL_NO_EC unsigned char * encodedPoint = NULL ;\n int encodedlen = 0 ;\n int curve_id = 0 ;\n # endif EVP_PKEY * pkey ;\n const EVP_MD * md = NULL ;\n unsigned char * p , * d ;\n int al , i ;\n unsigned long type ;\n int n ;\n const BIGNUM * r [ 4 ] ;\n int nr [ 4 ] , kn ;\n BUF_MEM * buf ;\n EVP_MD_CTX * md_ctx = EVP_MD_CTX_new ( ) ;\n if ( md_ctx == NULL ) {\n SSLerr ( SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE , ERR_R_MALLOC_FAILURE ) ;\n al = SSL_AD_INTERNAL_ERROR ;\n goto f_err ;\n }\n type = s -> s3 -> tmp . new_cipher -> algorithm_mkey ;\n buf = s -> init_buf ;\n r [ 0 ] = r [ 1 ] = r [ 2 ] = r [ 3 ] = NULL ;\n n = 0 ;\n # ifndef OPENSSL_NO_PSK if ( type & SSL_PSK ) {\n n += 2 ;\n if ( s -> cert -> psk_identity_hint ) n += strlen ( s -> cert -> psk_identity_hint ) ;\n }\n if ( type & ( SSL_kPSK | SSL_kRSAPSK ) ) {\n }\n else # endif # ifndef OPENSSL_NO_DH if ( type & ( SSL_kDHE | SSL_kDHEPSK ) ) {\n CERT * cert = s -> cert ;\n EVP_PKEY * pkdhp = NULL ;\n DH * dh ;\n if ( s -> cert -> dh_tmp_auto ) {\n DH * dhp = ssl_get_auto_dh ( s ) ;\n pkdh = EVP_PKEY_new ( ) ;\n if ( pkdh == NULL || dhp == NULL ) {\n DH_free ( dhp ) ;\n al = SSL_AD_INTERNAL_ERROR ;\n SSLerr ( SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE , ERR_R_INTERNAL_ERROR ) ;\n goto f_err ;\n }\n EVP_PKEY_assign_DH ( pkdh , dhp ) ;\n pkdhp = pkdh ;\n }\n else {\n pkdhp = cert -> dh_tmp ;\n }\n if ( ( pkdhp == NULL ) && ( s -> cert -> dh_tmp_cb != NULL ) ) {\n DH * dhp = s -> cert -> dh_tmp_cb ( s , 0 , 1024 ) ;\n pkdh = ssl_dh_to_pkey ( dhp ) ;\n if ( pkdh == NULL ) {\n al = SSL_AD_INTERNAL_ERROR ;\n SSLerr ( SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE , ERR_R_INTERNAL_ERROR ) ;\n goto f_err ;\n }\n pkdhp = pkdh ;\n }\n if ( pkdhp == NULL ) {\n al = SSL_AD_HANDSHAKE_FAILURE ;\n SSLerr ( SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE , SSL_R_MISSING_TMP_DH_KEY ) ;\n goto f_err ;\n }\n if ( ! ssl_security ( s , SSL_SECOP_TMP_DH , EVP_PKEY_security_bits ( pkdhp ) , 0 , pkdhp ) ) {\n al = SSL_AD_HANDSHAKE_FAILURE ;\n SSLerr ( SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE , SSL_R_DH_KEY_TOO_SMALL ) ;\n goto f_err ;\n }\n if ( s -> s3 -> tmp . pkey != NULL ) {\n SSLerr ( SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE , ERR_R_INTERNAL_ERROR ) ;\n goto err ;\n }\n s -> s3 -> tmp . pkey = ssl_generate_pkey ( pkdhp ) ;\n if ( s -> s3 -> tmp . pkey == NULL ) {\n SSLerr ( SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE , ERR_R_EVP_LIB ) ;\n goto err ;\n }\n dh = EVP_PKEY_get0_DH ( s -> s3 -> tmp . pkey ) ;\n EVP_PKEY_free ( pkdh ) ;\n pkdh = NULL ;\n DH_get0_pqg ( dh , & r [ 0 ] , NULL , & r [ 1 ] ) ;\n DH_get0_key ( dh , & r [ 2 ] , NULL ) ;\n }\n else # endif # ifndef OPENSSL_NO_EC if ( type & ( SSL_kECDHE | SSL_kECDHEPSK ) ) {\n int nid ;\n if ( s -> s3 -> tmp . pkey != NULL ) {\n SSLerr ( SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE , ERR_R_INTERNAL_ERROR ) ;\n goto err ;\n }\n nid = tls1_shared_curve ( s , - 2 ) ;\n curve_id = tls1_ec_nid2curve_id ( nid ) ;\n if ( curve_id == 0 ) {\n SSLerr ( SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE , SSL_R_UNSUPPORTED_ELLIPTIC_CURVE ) ;\n goto err ;\n }\n s -> s3 -> tmp . pkey = ssl_generate_pkey_curve ( curve_id ) ;\n if ( s -> s3 -> tmp . pkey == NULL ) {\n al = SSL_AD_INTERNAL_ERROR ;\n SSLerr ( SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE , ERR_R_EVP_LIB ) ;\n goto f_err ;\n }\n encodedlen = EVP_PKEY_get1_tls_encodedpoint ( s -> s3 -> tmp . pkey , & encodedPoint ) ;\n if ( encodedlen == 0 ) {\n SSLerr ( SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE , ERR_R_EC_LIB ) ;\n goto err ;\n }\n n += 4 + encodedlen ;\n r [ 0 ] = NULL ;\n r [ 1 ] = NULL ;\n r [ 2 ] = NULL ;\n r [ 3 ] = NULL ;\n }\n else # endif # ifndef OPENSSL_NO_SRP if ( type & SSL_kSRP ) {\n if ( ( s -> srp_ctx . N == NULL ) || ( s -> srp_ctx . g == NULL ) || ( s -> srp_ctx . s == NULL ) || ( s -> srp_ctx . B == NULL ) ) {\n SSLerr ( SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE , SSL_R_MISSING_SRP_PARAM ) ;\n goto err ;\n }\n r [ 0 ] = s -> srp_ctx . N ;\n r [ 1 ] = s -> srp_ctx . g ;\n r [ 2 ] = s -> srp_ctx . s ;\n r [ 3 ] = s -> srp_ctx . B ;\n }\n else # endif {\n al = SSL_AD_HANDSHAKE_FAILURE ;\n SSLerr ( SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE , SSL_R_UNKNOWN_KEY_EXCHANGE_TYPE ) ;\n goto f_err ;\n }\n for ( i = 0 ;\n i < 4 && r [ i ] != NULL ;\n i ++ ) {\n nr [ i ] = BN_num_bytes ( r [ i ] ) ;\n # ifndef OPENSSL_NO_SRP if ( ( i == 2 ) && ( type & SSL_kSRP ) ) n += 1 + nr [ i ] ;\n else # endif # ifndef OPENSSL_NO_DH if ( ( i == 2 ) && ( type & ( SSL_kDHE | SSL_kDHEPSK ) ) ) n += 2 + nr [ 0 ] ;\n else # endif n += 2 + nr [ i ] ;\n }\n if ( ! ( s -> s3 -> tmp . new_cipher -> algorithm_auth & ( SSL_aNULL | SSL_aSRP ) ) && ! ( s -> s3 -> tmp . new_cipher -> algorithm_mkey & SSL_PSK ) ) {\n if ( ( pkey = ssl_get_sign_pkey ( s , s -> s3 -> tmp . new_cipher , & md ) ) == NULL ) {\n al = SSL_AD_DECODE_ERROR ;\n goto f_err ;\n }\n kn = EVP_PKEY_size ( pkey ) ;\n if ( SSL_USE_SIGALGS ( s ) ) kn += 2 ;\n kn += 2 ;\n }\n else {\n pkey = NULL ;\n kn = 0 ;\n }\n if ( ! BUF_MEM_grow_clean ( buf , n + SSL_HM_HEADER_LENGTH ( s ) + kn ) ) {\n SSLerr ( SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE , ERR_LIB_BUF ) ;\n goto err ;\n }\n d = p = ssl_handshake_start ( s ) ;\n # ifndef OPENSSL_NO_PSK if ( type & SSL_PSK ) {\n if ( s -> cert -> psk_identity_hint ) {\n size_t len = strlen ( s -> cert -> psk_identity_hint ) ;\n if ( len > PSK_MAX_IDENTITY_LEN ) {\n SSLerr ( SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE , ERR_R_INTERNAL_ERROR ) ;\n goto err ;\n }\n s2n ( len , p ) ;\n memcpy ( p , s -> cert -> psk_identity_hint , len ) ;\n p += len ;\n }\n else {\n s2n ( 0 , p ) ;\n }\n }\n # endif for ( i = 0 ;\n i < 4 && r [ i ] != NULL ;\n i ++ ) {\n # ifndef OPENSSL_NO_SRP if ( ( i == 2 ) && ( type & SSL_kSRP ) ) {\n * p = nr [ i ] ;\n p ++ ;\n }\n else # endif # ifndef OPENSSL_NO_DH if ( ( i == 2 ) && ( type & ( SSL_kDHE | SSL_kDHEPSK ) ) ) {\n s2n ( nr [ 0 ] , p ) ;\n for ( j = 0 ;\n j < ( nr [ 0 ] - nr [ 2 ] ) ;\n ++ j ) {\n * p = 0 ;\n ++ p ;\n }\n }\n else # endif s2n ( nr [ i ] , p ) ;\n BN_bn2bin ( r [ i ] , p ) ;\n p += nr [ i ] ;\n }\n # ifndef OPENSSL_NO_EC if ( type & ( SSL_kECDHE | SSL_kECDHEPSK ) ) {\n * p = NAMED_CURVE_TYPE ;\n p += 1 ;\n * p = 0 ;\n p += 1 ;\n * p = curve_id ;\n p += 1 ;\n * p = encodedlen ;\n p += 1 ;\n memcpy ( p , encodedPoint , encodedlen ) ;\n OPENSSL_free ( encodedPoint ) ;\n encodedPoint = NULL ;\n p += encodedlen ;\n }\n # endif if ( pkey != NULL ) {\n if ( md ) {\n if ( SSL_USE_SIGALGS ( s ) ) {\n if ( ! tls12_get_sigandhash ( p , pkey , md ) ) {\n al = SSL_AD_INTERNAL_ERROR ;\n SSLerr ( SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE , ERR_R_INTERNAL_ERROR ) ;\n goto f_err ;\n }\n p += 2 ;\n }\n # ifdef SSL_DEBUG fprintf ( stderr , \"Using hash %s\\n\" , EVP_MD_name ( md ) ) ;\n # endif if ( EVP_SignInit_ex ( md_ctx , md , NULL ) <= 0 || EVP_SignUpdate ( md_ctx , & ( s -> s3 -> client_random [ 0 ] ) , SSL3_RANDOM_SIZE ) <= 0 || EVP_SignUpdate ( md_ctx , & ( s -> s3 -> server_random [ 0 ] ) , SSL3_RANDOM_SIZE ) <= 0 || EVP_SignUpdate ( md_ctx , d , n ) <= 0 || EVP_SignFinal ( md_ctx , & ( p [ 2 ] ) , ( unsigned int * ) & i , pkey ) <= 0 ) {\n SSLerr ( SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE , ERR_LIB_EVP ) ;\n al = SSL_AD_INTERNAL_ERROR ;\n goto f_err ;\n }\n s2n ( i , p ) ;\n n += i + 2 ;\n if ( SSL_USE_SIGALGS ( s ) ) n += 2 ;\n }\n else {\n al = SSL_AD_HANDSHAKE_FAILURE ;\n SSLerr ( SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE , SSL_R_UNKNOWN_PKEY_TYPE ) ;\n goto f_err ;\n }\n }\n if ( ! ssl_set_handshake_header ( s , SSL3_MT_SERVER_KEY_EXCHANGE , n ) ) {\n al = SSL_AD_HANDSHAKE_FAILURE ;\n SSLerr ( SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE , ERR_R_INTERNAL_ERROR ) ;\n goto f_err ;\n }\n EVP_MD_CTX_free ( md_ctx ) ;\n return 1 ;\n f_err : ssl3_send_alert ( s , SSL3_AL_FATAL , al ) ;\n err : # ifndef OPENSSL_NO_DH EVP_PKEY_free ( pkdh ) ;\n # endif # ifndef OPENSSL_NO_EC OPENSSL_free ( encodedPoint ) ;\n # endif EVP_MD_CTX_free ( md_ctx ) ;\n ossl_statem_set_error ( s ) ;\n return 0 ;\n }"}
{"idx": 19937, "target": 0, "func": "void vp9_remove_common ( VP9_COMMON * cm ) {\n vp9_free_ref_frame_buffers ( cm ) ;\n vp9_free_context_buffers ( cm ) ;\n vp9_free_internal_frame_buffers ( & cm -> int_frame_buffers ) ;\n }"}
{"idx": 19938, "target": 0, "func": "static void y4m_convert_422jpeg_420jpeg ( y4m_input * _y4m , unsigned char * _dst , unsigned char * _aux ) {\n int c_w ;\n int c_h ;\n int c_sz ;\n int dst_c_w ;\n int dst_c_h ;\n int dst_c_sz ;\n int pli ;\n _dst += _y4m -> pic_w * _y4m -> pic_h ;\n c_w = ( _y4m -> pic_w + _y4m -> src_c_dec_h - 1 ) / _y4m -> src_c_dec_h ;\n c_h = _y4m -> pic_h ;\n dst_c_w = ( _y4m -> pic_w + _y4m -> dst_c_dec_h - 1 ) / _y4m -> dst_c_dec_h ;\n dst_c_h = ( _y4m -> pic_h + _y4m -> dst_c_dec_v - 1 ) / _y4m -> dst_c_dec_v ;\n c_sz = c_w * c_h ;\n dst_c_sz = dst_c_w * dst_c_h ;\n for ( pli = 1 ;\n pli < 3 ;\n pli ++ ) {\n y4m_422jpeg_420jpeg_helper ( _dst , _aux , c_w , c_h ) ;\n _aux += c_sz ;\n _dst += dst_c_sz ;\n }\n }"}
{"idx": 19939, "target": 0, "func": "void evdns_set_log_fn ( evdns_debug_log_fn_type fn ) {\n evdns_log_fn = fn ;\n }"}
{"idx": 19940, "target": 0, "func": "static int write_rr_ER ( struct archive_write * a ) {\n unsigned char * p ;\n p = wb_buffptr ( a ) ;\n memset ( p , 0 , LOGICAL_BLOCK_SIZE ) ;\n p [ 0 ] = 'E' ;\n p [ 1 ] = 'R' ;\n p [ 3 ] = 0x01 ;\n p [ 2 ] = RRIP_ER_SIZE ;\n p [ 4 ] = RRIP_ER_ID_SIZE ;\n p [ 5 ] = RRIP_ER_DSC_SIZE ;\n p [ 6 ] = RRIP_ER_SRC_SIZE ;\n p [ 7 ] = 0x01 ;\n memcpy ( & p [ 8 ] , rrip_identifier , p [ 4 ] ) ;\n memcpy ( & p [ 8 + p [ 4 ] ] , rrip_descriptor , p [ 5 ] ) ;\n memcpy ( & p [ 8 + p [ 4 ] + p [ 5 ] ] , rrip_source , p [ 6 ] ) ;\n return ( wb_consume ( a , LOGICAL_BLOCK_SIZE ) ) ;\n }"}
{"idx": 19941, "target": 0, "func": "static void malta_fpga_reset ( void * opaque ) {\n MaltaFPGAState * s = opaque ;\n s -> leds = 0x00 ;\n s -> brk = 0x0a ;\n s -> gpout = 0x00 ;\n s -> i2cin = 0x3 ;\n s -> i2coe = 0x0 ;\n s -> i2cout = 0x3 ;\n s -> i2csel = 0x1 ;\n s -> display_text [ 8 ] = '\\0' ;\n snprintf ( s -> display_text , 9 , \" \" ) ;\n }"}
{"idx": 19942, "target": 0, "func": "static uint16_t * build_pow_table ( float gamma , int length ) {\n int i ;\n uint16_t * output = malloc ( sizeof ( uint16_t ) * length ) ;\n if ( ! output ) return NULL ;\n for ( i = 0 ;\n i < length ;\n i ++ ) {\n uint16_fract_t result ;\n double x = ( ( double ) i ) / ( double ) ( length - 1 ) ;\n x = pow ( x , gamma ) ;\n result = floor ( x * 65535. + .5 ) ;\n output [ i ] = result ;\n }\n return output ;\n }"}
{"idx": 19943, "target": 0, "func": "void flush_thread_cache ( ) {\n mysql_mutex_lock ( & LOCK_thread_count ) ;\n kill_cached_threads ++ ;\n while ( cached_thread_count ) {\n mysql_cond_broadcast ( & COND_thread_cache ) ;\n mysql_cond_wait ( & COND_flush_thread_cache , & LOCK_thread_count ) ;\n }\n kill_cached_threads -- ;\n mysql_mutex_unlock ( & LOCK_thread_count ) ;\n }"}
{"idx": 19944, "target": 0, "func": "static void pdf_process_keyword ( fz_context * ctx , pdf_processor * proc , pdf_csi * csi , fz_stream * stm , char * word ) {\n float * s = csi -> stack ;\n int key ;\n key = word [ 0 ] ;\n if ( word [ 1 ] ) {\n key |= word [ 1 ] << 8 ;\n if ( word [ 2 ] ) {\n key |= word [ 2 ] << 16 ;\n if ( word [ 3 ] ) key = 0 ;\n }\n }\n switch ( key ) {\n default : if ( ! csi -> xbalance ) fz_throw ( ctx , FZ_ERROR_SYNTAX , \"unknown keyword: '%s'\" , word ) ;\n break ;\n case A ( 'w' ) : if ( proc -> op_w ) proc -> op_w ( ctx , proc , s [ 0 ] ) ;\n break ;\n case A ( 'j' ) : if ( proc -> op_j ) proc -> op_j ( ctx , proc , fz_clampi ( s [ 0 ] , 0 , 2 ) ) ;\n break ;\n case A ( 'J' ) : if ( proc -> op_J ) proc -> op_J ( ctx , proc , fz_clampi ( s [ 0 ] , 0 , 2 ) ) ;\n break ;\n case A ( 'M' ) : if ( proc -> op_M ) proc -> op_M ( ctx , proc , s [ 0 ] ) ;\n break ;\n case A ( 'd' ) : if ( proc -> op_d ) proc -> op_d ( ctx , proc , csi -> obj , s [ 0 ] ) ;\n break ;\n case B ( 'r' , 'i' ) : if ( proc -> op_ri ) proc -> op_ri ( ctx , proc , csi -> name ) ;\n break ;\n case A ( 'i' ) : if ( proc -> op_i ) proc -> op_i ( ctx , proc , s [ 0 ] ) ;\n break ;\n case B ( 'g' , 's' ) : {\n pdf_obj * gsres , * gsobj ;\n gsres = pdf_dict_get ( ctx , csi -> rdb , PDF_NAME_ExtGState ) ;\n if ( ! gsres ) fz_throw ( ctx , FZ_ERROR_SYNTAX , \"cannot find ExtGState dictionary\" ) ;\n gsobj = pdf_dict_gets ( ctx , gsres , csi -> name ) ;\n if ( ! gsobj ) fz_throw ( ctx , FZ_ERROR_SYNTAX , \"cannot find ExtGState resource '%s'\" , csi -> name ) ;\n if ( proc -> op_gs_begin ) proc -> op_gs_begin ( ctx , proc , csi -> name , gsobj ) ;\n pdf_process_extgstate ( ctx , proc , csi , gsobj ) ;\n if ( proc -> op_gs_end ) proc -> op_gs_end ( ctx , proc ) ;\n }\n break ;\n case A ( 'q' ) : pdf_process_gsave ( ctx , proc , csi ) ;\n break ;\n case A ( 'Q' ) : pdf_process_grestore ( ctx , proc , csi ) ;\n break ;\n case B ( 'c' , 'm' ) : if ( proc -> op_cm ) proc -> op_cm ( ctx , proc , s [ 0 ] , s [ 1 ] , s [ 2 ] , s [ 3 ] , s [ 4 ] , s [ 5 ] ) ;\n break ;\n case A ( 'm' ) : if ( proc -> op_m ) proc -> op_m ( ctx , proc , s [ 0 ] , s [ 1 ] ) ;\n break ;\n case A ( 'l' ) : if ( proc -> op_l ) proc -> op_l ( ctx , proc , s [ 0 ] , s [ 1 ] ) ;\n break ;\n case A ( 'c' ) : if ( proc -> op_c ) proc -> op_c ( ctx , proc , s [ 0 ] , s [ 1 ] , s [ 2 ] , s [ 3 ] , s [ 4 ] , s [ 5 ] ) ;\n break ;\n case A ( 'v' ) : if ( proc -> op_v ) proc -> op_v ( ctx , proc , s [ 0 ] , s [ 1 ] , s [ 2 ] , s [ 3 ] ) ;\n break ;\n case A ( 'y' ) : if ( proc -> op_y ) proc -> op_y ( ctx , proc , s [ 0 ] , s [ 1 ] , s [ 2 ] , s [ 3 ] ) ;\n break ;\n case A ( 'h' ) : if ( proc -> op_h ) proc -> op_h ( ctx , proc ) ;\n break ;\n case B ( 'r' , 'e' ) : if ( proc -> op_re ) proc -> op_re ( ctx , proc , s [ 0 ] , s [ 1 ] , s [ 2 ] , s [ 3 ] ) ;\n break ;\n case A ( 'S' ) : if ( proc -> op_S ) proc -> op_S ( ctx , proc ) ;\n break ;\n case A ( 's' ) : if ( proc -> op_s ) proc -> op_s ( ctx , proc ) ;\n break ;\n case A ( 'F' ) : if ( proc -> op_F ) proc -> op_F ( ctx , proc ) ;\n break ;\n case A ( 'f' ) : if ( proc -> op_f ) proc -> op_f ( ctx , proc ) ;\n break ;\n case B ( 'f' , '*' ) : if ( proc -> op_fstar ) proc -> op_fstar ( ctx , proc ) ;\n break ;\n case A ( 'B' ) : if ( proc -> op_B ) proc -> op_B ( ctx , proc ) ;\n break ;\n case B ( 'B' , '*' ) : if ( proc -> op_Bstar ) proc -> op_Bstar ( ctx , proc ) ;\n break ;\n case A ( 'b' ) : if ( proc -> op_b ) proc -> op_b ( ctx , proc ) ;\n break ;\n case B ( 'b' , '*' ) : if ( proc -> op_bstar ) proc -> op_bstar ( ctx , proc ) ;\n break ;\n case A ( 'n' ) : if ( proc -> op_n ) proc -> op_n ( ctx , proc ) ;\n break ;\n case A ( 'W' ) : if ( proc -> op_W ) proc -> op_W ( ctx , proc ) ;\n break ;\n case B ( 'W' , '*' ) : if ( proc -> op_Wstar ) proc -> op_Wstar ( ctx , proc ) ;\n break ;\n case B ( 'B' , 'T' ) : csi -> in_text = 1 ;\n if ( proc -> op_BT ) proc -> op_BT ( ctx , proc ) ;\n break ;\n case B ( 'E' , 'T' ) : csi -> in_text = 0 ;\n if ( proc -> op_ET ) proc -> op_ET ( ctx , proc ) ;\n break ;\n case B ( 'T' , 'c' ) : if ( proc -> op_Tc ) proc -> op_Tc ( ctx , proc , s [ 0 ] ) ;\n break ;\n case B ( 'T' , 'w' ) : if ( proc -> op_Tw ) proc -> op_Tw ( ctx , proc , s [ 0 ] ) ;\n break ;\n case B ( 'T' , 'z' ) : if ( proc -> op_Tz ) proc -> op_Tz ( ctx , proc , s [ 0 ] ) ;\n break ;\n case B ( 'T' , 'L' ) : if ( proc -> op_TL ) proc -> op_TL ( ctx , proc , s [ 0 ] ) ;\n break ;\n case B ( 'T' , 'r' ) : if ( proc -> op_Tr ) proc -> op_Tr ( ctx , proc , s [ 0 ] ) ;\n break ;\n case B ( 'T' , 's' ) : if ( proc -> op_Ts ) proc -> op_Ts ( ctx , proc , s [ 0 ] ) ;\n break ;\n case B ( 'T' , 'f' ) : if ( proc -> op_Tf ) {\n pdf_obj * fontres , * fontobj ;\n pdf_font_desc * font ;\n fontres = pdf_dict_get ( ctx , csi -> rdb , PDF_NAME_Font ) ;\n if ( ! fontres ) fz_throw ( ctx , FZ_ERROR_SYNTAX , \"cannot find Font dictionary\" ) ;\n fontobj = pdf_dict_gets ( ctx , fontres , csi -> name ) ;\n if ( ! fontobj ) fz_throw ( ctx , FZ_ERROR_SYNTAX , \"cannot find Font resource '%s'\" , csi -> name ) ;\n font = load_font_or_hail_mary ( ctx , csi -> doc , csi -> rdb , fontobj , 0 , csi -> cookie ) ;\n fz_try ( ctx ) proc -> op_Tf ( ctx , proc , csi -> name , font , s [ 0 ] ) ;\n fz_always ( ctx ) pdf_drop_font ( ctx , font ) ;\n fz_catch ( ctx ) fz_rethrow ( ctx ) ;\n }\n break ;\n case B ( 'T' , 'd' ) : if ( proc -> op_Td ) proc -> op_Td ( ctx , proc , s [ 0 ] , s [ 1 ] ) ;\n break ;\n case B ( 'T' , 'D' ) : if ( proc -> op_TD ) proc -> op_TD ( ctx , proc , s [ 0 ] , s [ 1 ] ) ;\n break ;\n case B ( 'T' , 'm' ) : if ( proc -> op_Tm ) proc -> op_Tm ( ctx , proc , s [ 0 ] , s [ 1 ] , s [ 2 ] , s [ 3 ] , s [ 4 ] , s [ 5 ] ) ;\n break ;\n case B ( 'T' , '*' ) : if ( proc -> op_Tstar ) proc -> op_Tstar ( ctx , proc ) ;\n break ;\n case B ( 'T' , 'J' ) : if ( proc -> op_TJ ) proc -> op_TJ ( ctx , proc , csi -> obj ) ;\n break ;\n case B ( 'T' , 'j' ) : if ( proc -> op_Tj ) {\n if ( csi -> string_len > 0 ) proc -> op_Tj ( ctx , proc , csi -> string , csi -> string_len ) ;\n else proc -> op_Tj ( ctx , proc , pdf_to_str_buf ( ctx , csi -> obj ) , pdf_to_str_len ( ctx , csi -> obj ) ) ;\n }\n break ;\n case A ( '\\'' ) : if ( proc -> op_squote ) {\n if ( csi -> string_len > 0 ) proc -> op_squote ( ctx , proc , csi -> string , csi -> string_len ) ;\n else proc -> op_squote ( ctx , proc , pdf_to_str_buf ( ctx , csi -> obj ) , pdf_to_str_len ( ctx , csi -> obj ) ) ;\n }\n break ;\n case A ( '\"' ) : if ( proc -> op_dquote ) {\n if ( csi -> string_len > 0 ) proc -> op_dquote ( ctx , proc , s [ 0 ] , s [ 1 ] , csi -> string , csi -> string_len ) ;\n else proc -> op_dquote ( ctx , proc , s [ 0 ] , s [ 1 ] , pdf_to_str_buf ( ctx , csi -> obj ) , pdf_to_str_len ( ctx , csi -> obj ) ) ;\n }\n break ;\n case B ( 'd' , '0' ) : if ( proc -> op_d0 ) proc -> op_d0 ( ctx , proc , s [ 0 ] , s [ 1 ] ) ;\n break ;\n case B ( 'd' , '1' ) : if ( proc -> op_d1 ) proc -> op_d1 ( ctx , proc , s [ 0 ] , s [ 1 ] , s [ 2 ] , s [ 3 ] , s [ 4 ] , s [ 5 ] ) ;\n break ;\n case B ( 'C' , 'S' ) : pdf_process_CS ( ctx , proc , csi , 1 ) ;\n break ;\n case B ( 'c' , 's' ) : pdf_process_CS ( ctx , proc , csi , 0 ) ;\n break ;\n case B ( 'S' , 'C' ) : pdf_process_SC ( ctx , proc , csi , 1 ) ;\n break ;\n case B ( 's' , 'c' ) : pdf_process_SC ( ctx , proc , csi , 0 ) ;\n break ;\n case C ( 'S' , 'C' , 'N' ) : pdf_process_SC ( ctx , proc , csi , 1 ) ;\n break ;\n case C ( 's' , 'c' , 'n' ) : pdf_process_SC ( ctx , proc , csi , 0 ) ;\n break ;\n case A ( 'G' ) : if ( proc -> op_G ) proc -> op_G ( ctx , proc , s [ 0 ] ) ;\n break ;\n case A ( 'g' ) : if ( proc -> op_g ) proc -> op_g ( ctx , proc , s [ 0 ] ) ;\n break ;\n case B ( 'R' , 'G' ) : if ( proc -> op_RG ) proc -> op_RG ( ctx , proc , s [ 0 ] , s [ 1 ] , s [ 2 ] ) ;\n break ;\n case B ( 'r' , 'g' ) : if ( proc -> op_rg ) proc -> op_rg ( ctx , proc , s [ 0 ] , s [ 1 ] , s [ 2 ] ) ;\n break ;\n case A ( 'K' ) : if ( proc -> op_K ) proc -> op_K ( ctx , proc , s [ 0 ] , s [ 1 ] , s [ 2 ] , s [ 3 ] ) ;\n break ;\n case A ( 'k' ) : if ( proc -> op_k ) proc -> op_k ( ctx , proc , s [ 0 ] , s [ 1 ] , s [ 2 ] , s [ 3 ] ) ;\n break ;\n case B ( 'B' , 'I' ) : {\n fz_image * img = parse_inline_image ( ctx , csi , stm ) ;\n fz_try ( ctx ) {\n if ( proc -> op_BI ) proc -> op_BI ( ctx , proc , img ) ;\n }\n fz_always ( ctx ) fz_drop_image ( ctx , img ) ;\n fz_catch ( ctx ) fz_rethrow ( ctx ) ;\n }\n break ;\n case B ( 's' , 'h' ) : if ( proc -> op_sh ) {\n pdf_obj * shaderes , * shadeobj ;\n fz_shade * shade ;\n shaderes = pdf_dict_get ( ctx , csi -> rdb , PDF_NAME_Shading ) ;\n if ( ! shaderes ) fz_throw ( ctx , FZ_ERROR_SYNTAX , \"cannot find Shading dictionary\" ) ;\n shadeobj = pdf_dict_gets ( ctx , shaderes , csi -> name ) ;\n if ( ! shadeobj ) fz_throw ( ctx , FZ_ERROR_SYNTAX , \"cannot find Shading resource '%s'\" , csi -> name ) ;\n shade = pdf_load_shading ( ctx , csi -> doc , shadeobj ) ;\n fz_try ( ctx ) proc -> op_sh ( ctx , proc , csi -> name , shade ) ;\n fz_always ( ctx ) fz_drop_shade ( ctx , shade ) ;\n fz_catch ( ctx ) fz_rethrow ( ctx ) ;\n }\n break ;\n case B ( 'D' , 'o' ) : pdf_process_Do ( ctx , proc , csi ) ;\n break ;\n case B ( 'M' , 'P' ) : if ( proc -> op_MP ) proc -> op_MP ( ctx , proc , csi -> name ) ;\n break ;\n case B ( 'D' , 'P' ) : if ( proc -> op_DP ) proc -> op_DP ( ctx , proc , csi -> name , csi -> obj , resolve_properties ( ctx , csi , csi -> obj ) ) ;\n break ;\n case C ( 'B' , 'M' , 'C' ) : pdf_process_BMC ( ctx , proc , csi , csi -> name ) ;\n break ;\n case C ( 'B' , 'D' , 'C' ) : pdf_process_BDC ( ctx , proc , csi ) ;\n break ;\n case C ( 'E' , 'M' , 'C' ) : pdf_process_EMC ( ctx , proc , csi ) ;\n break ;\n case B ( 'B' , 'X' ) : ++ csi -> xbalance ;\n if ( proc -> op_BX ) proc -> op_BX ( ctx , proc ) ;\n break ;\n case B ( 'E' , 'X' ) : -- csi -> xbalance ;\n if ( proc -> op_EX ) proc -> op_EX ( ctx , proc ) ;\n break ;\n }\n }"}
{"idx": 19945, "target": 0, "func": "static int jpc_pi_nextrpcl ( register jpc_pi_t * pi ) {\n int rlvlno ;\n jpc_pirlvl_t * pirlvl ;\n jpc_pchg_t * pchg ;\n int prchind ;\n int prcvind ;\n int * prclyrno ;\n int compno ;\n jpc_picomp_t * picomp ;\n int xstep ;\n int ystep ;\n uint_fast32_t r ;\n uint_fast32_t rpx ;\n uint_fast32_t rpy ;\n uint_fast32_t trx0 ;\n uint_fast32_t try0 ;\n pchg = pi -> pchg ;\n if ( ! pi -> prgvolfirst ) {\n goto skip ;\n }\n else {\n pi -> xstep = 0 ;\n pi -> ystep = 0 ;\n for ( compno = 0 , picomp = pi -> picomps ;\n compno < pi -> numcomps ;\n ++ compno , ++ picomp ) {\n for ( rlvlno = 0 , pirlvl = picomp -> pirlvls ;\n rlvlno < picomp -> numrlvls ;\n ++ rlvlno , ++ pirlvl ) {\n xstep = picomp -> hsamp * ( 1 << ( pirlvl -> prcwidthexpn + picomp -> numrlvls - rlvlno - 1 ) ) ;\n ystep = picomp -> vsamp * ( 1 << ( pirlvl -> prcheightexpn + picomp -> numrlvls - rlvlno - 1 ) ) ;\n pi -> xstep = ( ! pi -> xstep ) ? xstep : JAS_MIN ( pi -> xstep , xstep ) ;\n pi -> ystep = ( ! pi -> ystep ) ? ystep : JAS_MIN ( pi -> ystep , ystep ) ;\n }\n }\n pi -> prgvolfirst = 0 ;\n }\n for ( pi -> rlvlno = pchg -> rlvlnostart ;\n pi -> rlvlno < pchg -> rlvlnoend && pi -> rlvlno < pi -> maxrlvls ;\n ++ pi -> rlvlno ) {\n for ( pi -> y = pi -> ystart ;\n pi -> y < pi -> yend ;\n pi -> y += pi -> ystep - ( pi -> y % pi -> ystep ) ) {\n for ( pi -> x = pi -> xstart ;\n pi -> x < pi -> xend ;\n pi -> x += pi -> xstep - ( pi -> x % pi -> xstep ) ) {\n for ( pi -> compno = pchg -> compnostart , pi -> picomp = & pi -> picomps [ pi -> compno ] ;\n pi -> compno < JAS_CAST ( int , pchg -> compnoend ) && pi -> compno < pi -> numcomps ;\n ++ pi -> compno , ++ pi -> picomp ) {\n if ( pi -> rlvlno >= pi -> picomp -> numrlvls ) {\n continue ;\n }\n pi -> pirlvl = & pi -> picomp -> pirlvls [ pi -> rlvlno ] ;\n if ( pi -> pirlvl -> numprcs == 0 ) {\n continue ;\n }\n r = pi -> picomp -> numrlvls - 1 - pi -> rlvlno ;\n rpx = r + pi -> pirlvl -> prcwidthexpn ;\n rpy = r + pi -> pirlvl -> prcheightexpn ;\n trx0 = JPC_CEILDIV ( pi -> xstart , pi -> picomp -> hsamp << r ) ;\n try0 = JPC_CEILDIV ( pi -> ystart , pi -> picomp -> vsamp << r ) ;\n if ( ( ( pi -> x == pi -> xstart && ( ( trx0 << r ) % ( 1 << rpx ) ) ) || ! ( pi -> x % ( 1 << rpx ) ) ) && ( ( pi -> y == pi -> ystart && ( ( try0 << r ) % ( 1 << rpy ) ) ) || ! ( pi -> y % ( 1 << rpy ) ) ) ) {\n prchind = JPC_FLOORDIVPOW2 ( JPC_CEILDIV ( pi -> x , pi -> picomp -> hsamp << r ) , pi -> pirlvl -> prcwidthexpn ) - JPC_FLOORDIVPOW2 ( trx0 , pi -> pirlvl -> prcwidthexpn ) ;\n prcvind = JPC_FLOORDIVPOW2 ( JPC_CEILDIV ( pi -> y , pi -> picomp -> vsamp << r ) , pi -> pirlvl -> prcheightexpn ) - JPC_FLOORDIVPOW2 ( try0 , pi -> pirlvl -> prcheightexpn ) ;\n pi -> prcno = prcvind * pi -> pirlvl -> numhprcs + prchind ;\n assert ( pi -> prcno < pi -> pirlvl -> numprcs ) ;\n for ( pi -> lyrno = 0 ;\n pi -> lyrno < pi -> numlyrs && pi -> lyrno < JAS_CAST ( int , pchg -> lyrnoend ) ;\n ++ pi -> lyrno ) {\n prclyrno = & pi -> pirlvl -> prclyrnos [ pi -> prcno ] ;\n if ( pi -> lyrno >= * prclyrno ) {\n ++ ( * prclyrno ) ;\n return 0 ;\n }\n skip : ;\n }\n }\n }\n }\n }\n }\n return 1 ;\n }"}
{"idx": 19946, "target": 0, "func": "static void block_rd_txfm ( int plane , int block , BLOCK_SIZE plane_bsize , TX_SIZE tx_size , void * arg ) {\n struct rdcost_block_args * args = arg ;\n MACROBLOCK * const x = args -> x ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n MB_MODE_INFO * const mbmi = & xd -> mi [ 0 ] . src_mi -> mbmi ;\n int64_t rd1 , rd2 , rd ;\n if ( args -> skip ) return ;\n if ( ! is_inter_block ( mbmi ) ) {\n vp9_encode_block_intra ( x , plane , block , plane_bsize , tx_size , & mbmi -> skip ) ;\n dist_block ( plane , block , tx_size , args ) ;\n }\n else if ( max_txsize_lookup [ plane_bsize ] == tx_size ) {\n if ( x -> skip_txfm [ ( plane << 2 ) + ( block >> ( tx_size << 1 ) ) ] == 0 ) {\n vp9_xform_quant ( x , plane , block , plane_bsize , tx_size ) ;\n dist_block ( plane , block , tx_size , args ) ;\n }\n else if ( x -> skip_txfm [ ( plane << 2 ) + ( block >> ( tx_size << 1 ) ) ] == 2 ) {\n tran_low_t * const coeff = BLOCK_OFFSET ( x -> plane [ plane ] . coeff , block ) ;\n tran_low_t * const dqcoeff = BLOCK_OFFSET ( xd -> plane [ plane ] . dqcoeff , block ) ;\n vp9_xform_quant_dc ( x , plane , block , plane_bsize , tx_size ) ;\n args -> sse = x -> bsse [ ( plane << 2 ) + ( block >> ( tx_size << 1 ) ) ] << 4 ;\n args -> dist = args -> sse ;\n if ( ! x -> plane [ plane ] . eobs [ block ] ) args -> dist = args -> sse - ( ( coeff [ 0 ] * coeff [ 0 ] - ( coeff [ 0 ] - dqcoeff [ 0 ] ) * ( coeff [ 0 ] - dqcoeff [ 0 ] ) ) >> 2 ) ;\n }\n else {\n x -> plane [ plane ] . eobs [ block ] = 0 ;\n args -> sse = x -> bsse [ ( plane << 2 ) + ( block >> ( tx_size << 1 ) ) ] << 4 ;\n args -> dist = args -> sse ;\n }\n }\n else {\n vp9_xform_quant ( x , plane , block , plane_bsize , tx_size ) ;\n dist_block ( plane , block , tx_size , args ) ;\n }\n rate_block ( plane , block , plane_bsize , tx_size , args ) ;\n rd1 = RDCOST ( x -> rdmult , x -> rddiv , args -> rate , args -> dist ) ;\n rd2 = RDCOST ( x -> rdmult , x -> rddiv , 0 , args -> sse ) ;\n rd = MIN ( rd1 , rd2 ) ;\n if ( plane == 0 ) x -> zcoeff_blk [ tx_size ] [ block ] = ! x -> plane [ plane ] . eobs [ block ] || ( rd1 > rd2 && ! xd -> lossless ) ;\n args -> this_rate += args -> rate ;\n args -> this_dist += args -> dist ;\n args -> this_sse += args -> sse ;\n args -> this_rd += rd ;\n if ( args -> this_rd > args -> best_rd ) {\n args -> skip = 1 ;\n return ;\n }\n }"}
{"idx": 19947, "target": 0, "func": "const gchar * nautilus_mime_types_group_get_name ( gint group_index ) {\n g_return_val_if_fail ( group_index < G_N_ELEMENTS ( mimetype_groups ) , NULL ) ;\n return gettext ( mimetype_groups [ group_index ] . name ) ;\n }"}
{"idx": 19948, "target": 0, "func": "void vp9_first_pass ( VP9_COMP * cpi , const struct lookahead_entry * source ) {\n int mb_row , mb_col ;\n MACROBLOCK * const x = & cpi -> mb ;\n VP9_COMMON * const cm = & cpi -> common ;\n MACROBLOCKD * const xd = & x -> e_mbd ;\n TileInfo tile ;\n struct macroblock_plane * const p = x -> plane ;\n struct macroblockd_plane * const pd = xd -> plane ;\n const PICK_MODE_CONTEXT * ctx = & cpi -> pc_root -> none ;\n int i ;\n int recon_yoffset , recon_uvoffset ;\n YV12_BUFFER_CONFIG * const lst_yv12 = get_ref_frame_buffer ( cpi , LAST_FRAME ) ;\n YV12_BUFFER_CONFIG * gld_yv12 = get_ref_frame_buffer ( cpi , GOLDEN_FRAME ) ;\n YV12_BUFFER_CONFIG * const new_yv12 = get_frame_new_buffer ( cm ) ;\n int recon_y_stride = lst_yv12 -> y_stride ;\n int recon_uv_stride = lst_yv12 -> uv_stride ;\n int uv_mb_height = 16 >> ( lst_yv12 -> y_height > lst_yv12 -> uv_height ) ;\n int64_t intra_error = 0 ;\n int64_t coded_error = 0 ;\n int64_t sr_coded_error = 0 ;\n int sum_mvr = 0 , sum_mvc = 0 ;\n int sum_mvr_abs = 0 , sum_mvc_abs = 0 ;\n int64_t sum_mvrs = 0 , sum_mvcs = 0 ;\n int mvcount = 0 ;\n int intercount = 0 ;\n int second_ref_count = 0 ;\n const int intrapenalty = INTRA_MODE_PENALTY ;\n int neutral_count = 0 ;\n int new_mv_count = 0 ;\n int sum_in_vectors = 0 ;\n MV lastmv = {\n 0 , 0 }\n ;\n TWO_PASS * twopass = & cpi -> twopass ;\n const MV zero_mv = {\n 0 , 0 }\n ;\n const YV12_BUFFER_CONFIG * first_ref_buf = lst_yv12 ;\n LAYER_CONTEXT * const lc = is_two_pass_svc ( cpi ) ? & cpi -> svc . layer_context [ cpi -> svc . spatial_layer_id ] : NULL ;\n # if CONFIG_FP_MB_STATS if ( cpi -> use_fp_mb_stats ) {\n vp9_zero_array ( cpi -> twopass . frame_mb_stats_buf , cm -> MBs ) ;\n }\n # endif vp9_clear_system_state ( ) ;\n set_first_pass_params ( cpi ) ;\n vp9_set_quantizer ( cm , find_fp_qindex ( cm -> bit_depth ) ) ;\n if ( lc != NULL ) {\n twopass = & lc -> twopass ;\n cpi -> lst_fb_idx = cpi -> svc . spatial_layer_id ;\n cpi -> ref_frame_flags = VP9_LAST_FLAG ;\n if ( cpi -> svc . number_spatial_layers + cpi -> svc . spatial_layer_id < REF_FRAMES ) {\n cpi -> gld_fb_idx = cpi -> svc . number_spatial_layers + cpi -> svc . spatial_layer_id ;\n cpi -> ref_frame_flags |= VP9_GOLD_FLAG ;\n cpi -> refresh_golden_frame = ( lc -> current_video_frame_in_layer == 0 ) ;\n }\n else {\n cpi -> refresh_golden_frame = 0 ;\n }\n if ( lc -> current_video_frame_in_layer == 0 ) cpi -> ref_frame_flags = 0 ;\n vp9_scale_references ( cpi ) ;\n if ( cpi -> ref_frame_flags & VP9_LAST_FLAG ) {\n first_ref_buf = vp9_get_scaled_ref_frame ( cpi , LAST_FRAME ) ;\n if ( first_ref_buf == NULL ) first_ref_buf = get_ref_frame_buffer ( cpi , LAST_FRAME ) ;\n }\n if ( cpi -> ref_frame_flags & VP9_GOLD_FLAG ) {\n const int ref_idx = cm -> ref_frame_map [ get_ref_frame_idx ( cpi , GOLDEN_FRAME ) ] ;\n const int scaled_idx = cpi -> scaled_ref_idx [ GOLDEN_FRAME - 1 ] ;\n gld_yv12 = ( scaled_idx != ref_idx ) ? & cm -> frame_bufs [ scaled_idx ] . buf : get_ref_frame_buffer ( cpi , GOLDEN_FRAME ) ;\n }\n else {\n gld_yv12 = NULL ;\n }\n recon_y_stride = new_yv12 -> y_stride ;\n recon_uv_stride = new_yv12 -> uv_stride ;\n uv_mb_height = 16 >> ( new_yv12 -> y_height > new_yv12 -> uv_height ) ;\n set_ref_ptrs ( cm , xd , ( cpi -> ref_frame_flags & VP9_LAST_FLAG ) ? LAST_FRAME : NONE , ( cpi -> ref_frame_flags & VP9_GOLD_FLAG ) ? GOLDEN_FRAME : NONE ) ;\n cpi -> Source = vp9_scale_if_required ( cm , cpi -> un_scaled_source , & cpi -> scaled_source ) ;\n }\n vp9_setup_block_planes ( & x -> e_mbd , cm -> subsampling_x , cm -> subsampling_y ) ;\n vp9_setup_src_planes ( x , cpi -> Source , 0 , 0 ) ;\n vp9_setup_pre_planes ( xd , 0 , first_ref_buf , 0 , 0 , NULL ) ;\n vp9_setup_dst_planes ( xd -> plane , new_yv12 , 0 , 0 ) ;\n xd -> mi = cm -> mi ;\n xd -> mi [ 0 ] . src_mi = & xd -> mi [ 0 ] ;\n vp9_frame_init_quantizer ( cpi ) ;\n for ( i = 0 ;\n i < MAX_MB_PLANE ;\n ++ i ) {\n p [ i ] . coeff = ctx -> coeff_pbuf [ i ] [ 1 ] ;\n p [ i ] . qcoeff = ctx -> qcoeff_pbuf [ i ] [ 1 ] ;\n pd [ i ] . dqcoeff = ctx -> dqcoeff_pbuf [ i ] [ 1 ] ;\n p [ i ] . eobs = ctx -> eobs_pbuf [ i ] [ 1 ] ;\n }\n x -> skip_recode = 0 ;\n vp9_init_mv_probs ( cm ) ;\n vp9_initialize_rd_consts ( cpi ) ;\n vp9_tile_init ( & tile , cm , 0 , 0 ) ;\n for ( mb_row = 0 ;\n mb_row < cm -> mb_rows ;\n ++ mb_row ) {\n MV best_ref_mv = {\n 0 , 0 }\n ;\n xd -> up_available = ( mb_row != 0 ) ;\n recon_yoffset = ( mb_row * recon_y_stride * 16 ) ;\n recon_uvoffset = ( mb_row * recon_uv_stride * uv_mb_height ) ;\n x -> mv_row_min = - ( ( mb_row * 16 ) + BORDER_MV_PIXELS_B16 ) ;\n x -> mv_row_max = ( ( cm -> mb_rows - 1 - mb_row ) * 16 ) + BORDER_MV_PIXELS_B16 ;\n for ( mb_col = 0 ;\n mb_col < cm -> mb_cols ;\n ++ mb_col ) {\n int this_error ;\n const int use_dc_pred = ( mb_col || mb_row ) && ( ! mb_col || ! mb_row ) ;\n double error_weight = 1.0 ;\n const BLOCK_SIZE bsize = get_bsize ( cm , mb_row , mb_col ) ;\n # if CONFIG_FP_MB_STATS const int mb_index = mb_row * cm -> mb_cols + mb_col ;\n # endif vp9_clear_system_state ( ) ;\n xd -> plane [ 0 ] . dst . buf = new_yv12 -> y_buffer + recon_yoffset ;\n xd -> plane [ 1 ] . dst . buf = new_yv12 -> u_buffer + recon_uvoffset ;\n xd -> plane [ 2 ] . dst . buf = new_yv12 -> v_buffer + recon_uvoffset ;\n xd -> left_available = ( mb_col != 0 ) ;\n xd -> mi [ 0 ] . src_mi -> mbmi . sb_type = bsize ;\n xd -> mi [ 0 ] . src_mi -> mbmi . ref_frame [ 0 ] = INTRA_FRAME ;\n set_mi_row_col ( xd , & tile , mb_row << 1 , num_8x8_blocks_high_lookup [ bsize ] , mb_col << 1 , num_8x8_blocks_wide_lookup [ bsize ] , cm -> mi_rows , cm -> mi_cols ) ;\n if ( cpi -> oxcf . aq_mode == VARIANCE_AQ ) {\n const int energy = vp9_block_energy ( cpi , x , bsize ) ;\n error_weight = vp9_vaq_inv_q_ratio ( energy ) ;\n }\n x -> skip_encode = 0 ;\n xd -> mi [ 0 ] . src_mi -> mbmi . mode = DC_PRED ;\n xd -> mi [ 0 ] . src_mi -> mbmi . tx_size = use_dc_pred ? ( bsize >= BLOCK_16X16 ? TX_16X16 : TX_8X8 ) : TX_4X4 ;\n vp9_encode_intra_block_plane ( x , bsize , 0 ) ;\n this_error = vp9_get_mb_ss ( x -> plane [ 0 ] . src_diff ) ;\n if ( cpi -> oxcf . aq_mode == VARIANCE_AQ ) {\n vp9_clear_system_state ( ) ;\n this_error = ( int ) ( this_error * error_weight ) ;\n }\n this_error += intrapenalty ;\n intra_error += ( int64_t ) this_error ;\n # if CONFIG_FP_MB_STATS if ( cpi -> use_fp_mb_stats ) {\n cpi -> twopass . frame_mb_stats_buf [ mb_index ] = 0 ;\n }\n # endif x -> mv_col_min = - ( ( mb_col * 16 ) + BORDER_MV_PIXELS_B16 ) ;\n x -> mv_col_max = ( ( cm -> mb_cols - 1 - mb_col ) * 16 ) + BORDER_MV_PIXELS_B16 ;\n if ( ( lc == NULL && cm -> current_video_frame > 0 ) || ( lc != NULL && lc -> current_video_frame_in_layer > 0 ) ) {\n int tmp_err , motion_error , raw_motion_error ;\n MV mv = {\n 0 , 0 }\n , tmp_mv = {\n 0 , 0 }\n ;\n struct buf_2d unscaled_last_source_buf_2d ;\n xd -> plane [ 0 ] . pre [ 0 ] . buf = first_ref_buf -> y_buffer + recon_yoffset ;\n motion_error = get_prediction_error ( bsize , & x -> plane [ 0 ] . src , & xd -> plane [ 0 ] . pre [ 0 ] ) ;\n unscaled_last_source_buf_2d . buf = cpi -> unscaled_last_source -> y_buffer + recon_yoffset ;\n unscaled_last_source_buf_2d . stride = cpi -> unscaled_last_source -> y_stride ;\n raw_motion_error = get_prediction_error ( bsize , & x -> plane [ 0 ] . src , & unscaled_last_source_buf_2d ) ;\n if ( raw_motion_error > 25 || lc != NULL ) {\n first_pass_motion_search ( cpi , x , & best_ref_mv , & mv , & motion_error ) ;\n if ( cpi -> oxcf . aq_mode == VARIANCE_AQ ) {\n vp9_clear_system_state ( ) ;\n motion_error = ( int ) ( motion_error * error_weight ) ;\n }\n if ( ! is_zero_mv ( & best_ref_mv ) ) {\n tmp_err = INT_MAX ;\n first_pass_motion_search ( cpi , x , & zero_mv , & tmp_mv , & tmp_err ) ;\n if ( cpi -> oxcf . aq_mode == VARIANCE_AQ ) {\n vp9_clear_system_state ( ) ;\n tmp_err = ( int ) ( tmp_err * error_weight ) ;\n }\n if ( tmp_err < motion_error ) {\n motion_error = tmp_err ;\n mv = tmp_mv ;\n }\n }\n if ( ( ( lc == NULL && cm -> current_video_frame > 1 ) || ( lc != NULL && lc -> current_video_frame_in_layer > 1 ) ) && gld_yv12 != NULL ) {\n int gf_motion_error ;\n xd -> plane [ 0 ] . pre [ 0 ] . buf = gld_yv12 -> y_buffer + recon_yoffset ;\n gf_motion_error = get_prediction_error ( bsize , & x -> plane [ 0 ] . src , & xd -> plane [ 0 ] . pre [ 0 ] ) ;\n first_pass_motion_search ( cpi , x , & zero_mv , & tmp_mv , & gf_motion_error ) ;\n if ( cpi -> oxcf . aq_mode == VARIANCE_AQ ) {\n vp9_clear_system_state ( ) ;\n gf_motion_error = ( int ) ( gf_motion_error * error_weight ) ;\n }\n if ( gf_motion_error < motion_error && gf_motion_error < this_error ) ++ second_ref_count ;\n xd -> plane [ 0 ] . pre [ 0 ] . buf = first_ref_buf -> y_buffer + recon_yoffset ;\n xd -> plane [ 1 ] . pre [ 0 ] . buf = first_ref_buf -> u_buffer + recon_uvoffset ;\n xd -> plane [ 2 ] . pre [ 0 ] . buf = first_ref_buf -> v_buffer + recon_uvoffset ;\n if ( gf_motion_error < this_error ) sr_coded_error += gf_motion_error ;\n else sr_coded_error += this_error ;\n }\n else {\n sr_coded_error += motion_error ;\n }\n }\n else {\n sr_coded_error += motion_error ;\n }\n best_ref_mv . row = 0 ;\n best_ref_mv . col = 0 ;\n # if CONFIG_FP_MB_STATS if ( cpi -> use_fp_mb_stats ) {\n cpi -> twopass . frame_mb_stats_buf [ mb_index ] = 0 ;\n cpi -> twopass . frame_mb_stats_buf [ mb_index ] |= FPMB_DCINTRA_MASK ;\n cpi -> twopass . frame_mb_stats_buf [ mb_index ] |= FPMB_MOTION_ZERO_MASK ;\n if ( this_error > FPMB_ERROR_LARGE_TH ) {\n cpi -> twopass . frame_mb_stats_buf [ mb_index ] |= FPMB_ERROR_LARGE_MASK ;\n }\n else if ( this_error < FPMB_ERROR_SMALL_TH ) {\n cpi -> twopass . frame_mb_stats_buf [ mb_index ] |= FPMB_ERROR_SMALL_MASK ;\n }\n }\n # endif if ( motion_error <= this_error ) {\n if ( ( ( this_error - intrapenalty ) * 9 <= motion_error * 10 ) && this_error < 2 * intrapenalty ) ++ neutral_count ;\n mv . row *= 8 ;\n mv . col *= 8 ;\n this_error = motion_error ;\n xd -> mi [ 0 ] . src_mi -> mbmi . mode = NEWMV ;\n xd -> mi [ 0 ] . src_mi -> mbmi . mv [ 0 ] . as_mv = mv ;\n xd -> mi [ 0 ] . src_mi -> mbmi . tx_size = TX_4X4 ;\n xd -> mi [ 0 ] . src_mi -> mbmi . ref_frame [ 0 ] = LAST_FRAME ;\n xd -> mi [ 0 ] . src_mi -> mbmi . ref_frame [ 1 ] = NONE ;\n vp9_build_inter_predictors_sby ( xd , mb_row << 1 , mb_col << 1 , bsize ) ;\n vp9_encode_sby_pass1 ( x , bsize ) ;\n sum_mvr += mv . row ;\n sum_mvr_abs += abs ( mv . row ) ;\n sum_mvc += mv . col ;\n sum_mvc_abs += abs ( mv . col ) ;\n sum_mvrs += mv . row * mv . row ;\n sum_mvcs += mv . col * mv . col ;\n ++ intercount ;\n best_ref_mv = mv ;\n # if CONFIG_FP_MB_STATS if ( cpi -> use_fp_mb_stats ) {\n cpi -> twopass . frame_mb_stats_buf [ mb_index ] = 0 ;\n cpi -> twopass . frame_mb_stats_buf [ mb_index ] &= ~ FPMB_DCINTRA_MASK ;\n cpi -> twopass . frame_mb_stats_buf [ mb_index ] |= FPMB_MOTION_ZERO_MASK ;\n if ( this_error > FPMB_ERROR_LARGE_TH ) {\n cpi -> twopass . frame_mb_stats_buf [ mb_index ] |= FPMB_ERROR_LARGE_MASK ;\n }\n else if ( this_error < FPMB_ERROR_SMALL_TH ) {\n cpi -> twopass . frame_mb_stats_buf [ mb_index ] |= FPMB_ERROR_SMALL_MASK ;\n }\n }\n # endif if ( ! is_zero_mv ( & mv ) ) {\n ++ mvcount ;\n # if CONFIG_FP_MB_STATS if ( cpi -> use_fp_mb_stats ) {\n cpi -> twopass . frame_mb_stats_buf [ mb_index ] &= ~ FPMB_MOTION_ZERO_MASK ;\n if ( mv . as_mv . col > 0 && mv . as_mv . col >= abs ( mv . as_mv . row ) ) {\n cpi -> twopass . frame_mb_stats_buf [ mb_index ] |= FPMB_MOTION_RIGHT_MASK ;\n }\n else if ( mv . as_mv . row < 0 && abs ( mv . as_mv . row ) >= abs ( mv . as_mv . col ) ) {\n cpi -> twopass . frame_mb_stats_buf [ mb_index ] |= FPMB_MOTION_UP_MASK ;\n }\n else if ( mv . as_mv . col < 0 && abs ( mv . as_mv . col ) >= abs ( mv . as_mv . row ) ) {\n cpi -> twopass . frame_mb_stats_buf [ mb_index ] |= FPMB_MOTION_LEFT_MASK ;\n }\n else {\n cpi -> twopass . frame_mb_stats_buf [ mb_index ] |= FPMB_MOTION_DOWN_MASK ;\n }\n }\n # endif if ( ! is_equal_mv ( & mv , & lastmv ) ) ++ new_mv_count ;\n lastmv = mv ;\n if ( mb_row < cm -> mb_rows / 2 ) {\n if ( mv . row > 0 ) -- sum_in_vectors ;\n else if ( mv . row < 0 ) ++ sum_in_vectors ;\n }\n else if ( mb_row > cm -> mb_rows / 2 ) {\n if ( mv . row > 0 ) ++ sum_in_vectors ;\n else if ( mv . row < 0 ) -- sum_in_vectors ;\n }\n if ( mb_col < cm -> mb_cols / 2 ) {\n if ( mv . col > 0 ) -- sum_in_vectors ;\n else if ( mv . col < 0 ) ++ sum_in_vectors ;\n }\n else if ( mb_col > cm -> mb_cols / 2 ) {\n if ( mv . col > 0 ) ++ sum_in_vectors ;\n else if ( mv . col < 0 ) -- sum_in_vectors ;\n }\n }\n }\n }\n else {\n sr_coded_error += ( int64_t ) this_error ;\n }\n coded_error += ( int64_t ) this_error ;\n x -> plane [ 0 ] . src . buf += 16 ;\n x -> plane [ 1 ] . src . buf += uv_mb_height ;\n x -> plane [ 2 ] . src . buf += uv_mb_height ;\n recon_yoffset += 16 ;\n recon_uvoffset += uv_mb_height ;\n }\n x -> plane [ 0 ] . src . buf += 16 * x -> plane [ 0 ] . src . stride - 16 * cm -> mb_cols ;\n x -> plane [ 1 ] . src . buf += uv_mb_height * x -> plane [ 1 ] . src . stride - uv_mb_height * cm -> mb_cols ;\n x -> plane [ 2 ] . src . buf += uv_mb_height * x -> plane [ 1 ] . src . stride - uv_mb_height * cm -> mb_cols ;\n vp9_clear_system_state ( ) ;\n }\n vp9_clear_system_state ( ) ;\n {\n FIRSTPASS_STATS fps ;\n const double min_err = 200 * sqrt ( cm -> MBs ) ;\n fps . frame = cm -> current_video_frame ;\n fps . spatial_layer_id = cpi -> svc . spatial_layer_id ;\n fps . coded_error = ( double ) ( coded_error >> 8 ) + min_err ;\n fps . sr_coded_error = ( double ) ( sr_coded_error >> 8 ) + min_err ;\n fps . intra_error = ( double ) ( intra_error >> 8 ) + min_err ;\n fps . count = 1.0 ;\n fps . pcnt_inter = ( double ) intercount / cm -> MBs ;\n fps . pcnt_second_ref = ( double ) second_ref_count / cm -> MBs ;\n fps . pcnt_neutral = ( double ) neutral_count / cm -> MBs ;\n if ( mvcount > 0 ) {\n fps . MVr = ( double ) sum_mvr / mvcount ;\n fps . mvr_abs = ( double ) sum_mvr_abs / mvcount ;\n fps . MVc = ( double ) sum_mvc / mvcount ;\n fps . mvc_abs = ( double ) sum_mvc_abs / mvcount ;\n fps . MVrv = ( ( double ) sum_mvrs - ( fps . MVr * fps . MVr / mvcount ) ) / mvcount ;\n fps . MVcv = ( ( double ) sum_mvcs - ( fps . MVc * fps . MVc / mvcount ) ) / mvcount ;\n fps . mv_in_out_count = ( double ) sum_in_vectors / ( mvcount * 2 ) ;\n fps . new_mv_count = new_mv_count ;\n fps . pcnt_motion = ( double ) mvcount / cm -> MBs ;\n }\n else {\n fps . MVr = 0.0 ;\n fps . mvr_abs = 0.0 ;\n fps . MVc = 0.0 ;\n fps . mvc_abs = 0.0 ;\n fps . MVrv = 0.0 ;\n fps . MVcv = 0.0 ;\n fps . mv_in_out_count = 0.0 ;\n fps . new_mv_count = 0.0 ;\n fps . pcnt_motion = 0.0 ;\n }\n fps . duration = ( double ) ( source -> ts_end - source -> ts_start ) ;\n twopass -> this_frame_stats = fps ;\n output_stats ( & twopass -> this_frame_stats , cpi -> output_pkt_list ) ;\n accumulate_stats ( & twopass -> total_stats , & fps ) ;\n # if CONFIG_FP_MB_STATS if ( cpi -> use_fp_mb_stats ) {\n output_fpmb_stats ( twopass -> frame_mb_stats_buf , cm , cpi -> output_pkt_list ) ;\n }\n # endif }\n if ( ( twopass -> sr_update_lag > 3 ) || ( ( cm -> current_video_frame > 0 ) && ( twopass -> this_frame_stats . pcnt_inter > 0.20 ) && ( ( twopass -> this_frame_stats . intra_error / DOUBLE_DIVIDE_CHECK ( twopass -> this_frame_stats . coded_error ) ) > 2.0 ) ) ) {\n if ( gld_yv12 != NULL ) {\n vp8_yv12_copy_frame ( lst_yv12 , gld_yv12 ) ;\n }\n twopass -> sr_update_lag = 1 ;\n }\n else {\n ++ twopass -> sr_update_lag ;\n }\n vp9_extend_frame_borders ( new_yv12 ) ;\n if ( lc != NULL ) {\n vp9_update_reference_frames ( cpi ) ;\n }\n else {\n swap_yv12 ( lst_yv12 , new_yv12 ) ;\n }\n if ( cm -> current_video_frame == 0 && gld_yv12 != NULL && lc == NULL ) {\n vp8_yv12_copy_frame ( lst_yv12 , gld_yv12 ) ;\n }\n if ( 0 ) {\n char filename [ 512 ] ;\n FILE * recon_file ;\n snprintf ( filename , sizeof ( filename ) , \"enc%04d.yuv\" , ( int ) cm -> current_video_frame ) ;\n if ( cm -> current_video_frame == 0 ) recon_file = fopen ( filename , \"wb\" ) ;\n else recon_file = fopen ( filename , \"ab\" ) ;\n ( void ) fwrite ( lst_yv12 -> buffer_alloc , lst_yv12 -> frame_size , 1 , recon_file ) ;\n fclose ( recon_file ) ;\n }\n ++ cm -> current_video_frame ;\n if ( cpi -> use_svc ) vp9_inc_frame_in_layer ( cpi ) ;\n }"}
{"idx": 19949, "target": 0, "func": "extern bool validate_slurm_user ( uid_t uid ) {\n # ifndef NDEBUG if ( drop_priv ) return false ;\n # endif if ( ( uid == 0 ) || ( uid == slurmctld_conf . slurm_user_id ) ) return true ;\n else return false ;\n }"}
{"idx": 19950, "target": 0, "func": "static void update_golden_frame_stats ( VP9_COMP * cpi ) {\n RATE_CONTROL * const rc = & cpi -> rc ;\n if ( cpi -> refresh_golden_frame ) {\n rc -> frames_since_golden = 0 ;\n if ( cpi -> oxcf . pass == 2 ) {\n if ( ! rc -> source_alt_ref_pending && cpi -> twopass . gf_group . rf_level [ 0 ] == GF_ARF_STD ) rc -> source_alt_ref_active = 0 ;\n }\n else if ( ! rc -> source_alt_ref_pending ) {\n rc -> source_alt_ref_active = 0 ;\n }\n if ( rc -> frames_till_gf_update_due > 0 ) rc -> frames_till_gf_update_due -- ;\n }\n else if ( ! cpi -> refresh_alt_ref_frame ) {\n if ( rc -> frames_till_gf_update_due > 0 ) rc -> frames_till_gf_update_due -- ;\n rc -> frames_since_golden ++ ;\n }\n }"}
{"idx": 19951, "target": 0, "func": "void txtproto_print ( netdissect_options * ndo , const u_char * pptr , u_int len , const char * protoname , const char * * cmds , u_int flags ) {\n u_int idx , eol ;\n u_char token [ MAX_TOKEN + 1 ] ;\n const char * cmd ;\n int is_reqresp = 0 ;\n const char * pnp ;\n if ( cmds != NULL ) {\n idx = fetch_token ( ndo , pptr , 0 , len , token , sizeof ( token ) ) ;\n if ( idx != 0 ) {\n while ( ( cmd = * cmds ++ ) != NULL ) {\n if ( ascii_strcasecmp ( ( const char * ) token , cmd ) == 0 ) {\n is_reqresp = 1 ;\n break ;\n }\n }\n if ( flags & RESP_CODE_SECOND_TOKEN ) {\n idx = fetch_token ( ndo , pptr , idx , len , token , sizeof ( token ) ) ;\n }\n if ( idx != 0 ) {\n if ( isdigit ( token [ 0 ] ) && isdigit ( token [ 1 ] ) && isdigit ( token [ 2 ] ) && token [ 3 ] == '\\0' ) {\n is_reqresp = 1 ;\n }\n }\n }\n }\n else {\n is_reqresp = 1 ;\n }\n for ( pnp = protoname ;\n * pnp != '\\0' ;\n pnp ++ ) ND_PRINT ( ( ndo , \"%c\" , toupper ( ( u_char ) * pnp ) ) ) ;\n if ( is_reqresp ) {\n if ( ndo -> ndo_vflag ) {\n ND_PRINT ( ( ndo , \", length: %u\" , len ) ) ;\n for ( idx = 0 ;\n idx < len && ( eol = print_txt_line ( ndo , protoname , \"\\n\\t\" , pptr , idx , len ) ) != 0 ;\n idx = eol ) ;\n }\n else {\n print_txt_line ( ndo , protoname , \": \" , pptr , 0 , len ) ;\n }\n }\n }"}
{"idx": 19952, "target": 0, "func": "void TSHttpTxnReenable ( TSHttpTxn txnp , TSEvent event ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n EThread * eth = this_ethread ( ) ;\n if ( eth == nullptr || eth -> tt != REGULAR ) {\n eventProcessor . schedule_imm ( new TSHttpSMCallback ( sm , event ) , ET_NET ) ;\n }\n else {\n MUTEX_TRY_LOCK ( trylock , sm -> mutex , eth ) ;\n if ( ! trylock . is_locked ( ) ) {\n eventProcessor . schedule_imm ( new TSHttpSMCallback ( sm , event ) , ET_NET ) ;\n }\n else {\n sm -> state_api_callback ( ( int ) event , nullptr ) ;\n }\n }\n }"}
{"idx": 19953, "target": 0, "func": "static void get_symbols ( const UDateFormat * fmt , UDateFormatSymbolType type , UChar * array [ ] , int32_t arrayLength , int32_t lowestIndex , int32_t firstIndex , UErrorCode * status ) {\n int32_t count , i ;\n if ( U_FAILURE ( * status ) ) {\n return ;\n }\n count = udat_countSymbols ( fmt , type ) ;\n if ( count != arrayLength + lowestIndex ) {\n return ;\n }\n for ( i = 0 ;\n i < arrayLength ;\n i ++ ) {\n int32_t idx = ( i + firstIndex ) % arrayLength ;\n int32_t size = 1 + udat_getSymbols ( fmt , type , idx + lowestIndex , NULL , 0 , status ) ;\n array [ idx ] = ( UChar * ) malloc ( sizeof ( UChar ) * size ) ;\n * status = U_ZERO_ERROR ;\n udat_getSymbols ( fmt , type , idx + lowestIndex , array [ idx ] , size , status ) ;\n }\n }"}
{"idx": 19954, "target": 0, "func": "static int escape124_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n Escape124Context * s = avctx -> priv_data ;\n AVFrame * frame = data ;\n GetBitContext gb ;\n unsigned frame_flags , frame_size ;\n unsigned i ;\n unsigned superblock_index , cb_index = 1 , superblock_col_index = 0 , superblocks_per_row = avctx -> width / 8 , skip = - 1 ;\n uint16_t * old_frame_data , * new_frame_data ;\n unsigned old_stride , new_stride ;\n int ret ;\n init_get_bits ( & gb , buf , buf_size * 8 ) ;\n if ( ! can_safely_read ( & gb , 64 ) ) return - 1 ;\n frame_flags = get_bits_long ( & gb , 32 ) ;\n frame_size = get_bits_long ( & gb , 32 ) ;\n if ( ! ( frame_flags & 0x114 ) || ! ( frame_flags & 0x7800000 ) ) {\n if ( ! s -> frame . data [ 0 ] ) return AVERROR_INVALIDDATA ;\n av_log ( NULL , AV_LOG_DEBUG , \"Skipping frame\\n\" ) ;\n * got_frame = 1 ;\n if ( ( ret = av_frame_ref ( frame , & s -> frame ) ) < 0 ) return ret ;\n return frame_size ;\n }\n for ( i = 0 ;\n i < 3 ;\n i ++ ) {\n if ( frame_flags & ( 1 << ( 17 + i ) ) ) {\n unsigned cb_depth , cb_size ;\n if ( i == 2 ) {\n cb_size = get_bits_long ( & gb , 20 ) ;\n cb_depth = av_log2 ( cb_size - 1 ) + 1 ;\n }\n else {\n cb_depth = get_bits ( & gb , 4 ) ;\n if ( i == 0 ) {\n cb_size = 1 << cb_depth ;\n }\n else {\n cb_size = s -> num_superblocks << cb_depth ;\n }\n }\n av_free ( s -> codebooks [ i ] . blocks ) ;\n s -> codebooks [ i ] = unpack_codebook ( & gb , cb_depth , cb_size ) ;\n if ( ! s -> codebooks [ i ] . blocks ) return - 1 ;\n }\n }\n if ( ( ret = ff_get_buffer ( avctx , frame , AV_GET_BUFFER_FLAG_REF ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n new_frame_data = ( uint16_t * ) frame -> data [ 0 ] ;\n new_stride = frame -> linesize [ 0 ] / 2 ;\n old_frame_data = ( uint16_t * ) s -> frame . data [ 0 ] ;\n old_stride = s -> frame . linesize [ 0 ] / 2 ;\n for ( superblock_index = 0 ;\n superblock_index < s -> num_superblocks ;\n superblock_index ++ ) {\n MacroBlock mb ;\n SuperBlock sb ;\n unsigned multi_mask = 0 ;\n if ( skip == - 1 ) {\n skip = decode_skip_count ( & gb ) ;\n }\n if ( skip ) {\n copy_superblock ( new_frame_data , new_stride , old_frame_data , old_stride ) ;\n }\n else {\n copy_superblock ( sb . pixels , 8 , old_frame_data , old_stride ) ;\n while ( can_safely_read ( & gb , 1 ) && ! get_bits1 ( & gb ) ) {\n unsigned mask ;\n mb = decode_macroblock ( s , & gb , & cb_index , superblock_index ) ;\n mask = get_bits ( & gb , 16 ) ;\n multi_mask |= mask ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n if ( mask & mask_matrix [ i ] ) {\n insert_mb_into_sb ( & sb , mb , i ) ;\n }\n }\n }\n if ( can_safely_read ( & gb , 1 ) && ! get_bits1 ( & gb ) ) {\n unsigned inv_mask = get_bits ( & gb , 4 ) ;\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n if ( inv_mask & ( 1 << i ) ) {\n multi_mask ^= 0xF << i * 4 ;\n }\n else {\n multi_mask ^= get_bits ( & gb , 4 ) << i * 4 ;\n }\n }\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n if ( multi_mask & mask_matrix [ i ] ) {\n if ( ! can_safely_read ( & gb , 1 ) ) break ;\n mb = decode_macroblock ( s , & gb , & cb_index , superblock_index ) ;\n insert_mb_into_sb ( & sb , mb , i ) ;\n }\n }\n }\n else if ( frame_flags & ( 1 << 16 ) ) {\n while ( can_safely_read ( & gb , 1 ) && ! get_bits1 ( & gb ) ) {\n mb = decode_macroblock ( s , & gb , & cb_index , superblock_index ) ;\n insert_mb_into_sb ( & sb , mb , get_bits ( & gb , 4 ) ) ;\n }\n }\n copy_superblock ( new_frame_data , new_stride , sb . pixels , 8 ) ;\n }\n superblock_col_index ++ ;\n new_frame_data += 8 ;\n if ( old_frame_data ) old_frame_data += 8 ;\n if ( superblock_col_index == superblocks_per_row ) {\n new_frame_data += new_stride * 8 - superblocks_per_row * 8 ;\n if ( old_frame_data ) old_frame_data += old_stride * 8 - superblocks_per_row * 8 ;\n superblock_col_index = 0 ;\n }\n skip -- ;\n }\n av_log ( NULL , AV_LOG_DEBUG , \"Escape sizes: %i, %i, %i\\n\" , frame_size , buf_size , get_bits_count ( & gb ) / 8 ) ;\n av_frame_unref ( & s -> frame ) ;\n if ( ( ret = av_frame_ref ( & s -> frame , frame ) ) < 0 ) return ret ;\n * got_frame = 1 ;\n return frame_size ;\n }"}
{"idx": 19955, "target": 0, "func": "const char * tok2str ( register const struct tok * lp , register const char * fmt , register u_int v ) {\n static char buf [ 4 ] [ TOKBUFSIZE ] ;\n static int idx = 0 ;\n char * ret ;\n ret = buf [ idx ] ;\n idx = ( idx + 1 ) & 3 ;\n return tok2strbuf ( lp , fmt , v , ret , sizeof ( buf [ 0 ] ) ) ;\n }"}
{"idx": 19956, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n TargaContext * const s = avctx -> priv_data ;\n AVFrame * picture = data ;\n AVFrame * const p = & s -> picture ;\n uint8_t * dst ;\n int stride ;\n int idlen , compr , y , w , h , bpp , flags , ret ;\n int first_clr , colors , csize ;\n bytestream2_init ( & s -> gb , avpkt -> data , avpkt -> size ) ;\n idlen = bytestream2_get_byte ( & s -> gb ) ;\n bytestream2_skip ( & s -> gb , 1 ) ;\n compr = bytestream2_get_byte ( & s -> gb ) ;\n first_clr = bytestream2_get_le16 ( & s -> gb ) ;\n colors = bytestream2_get_le16 ( & s -> gb ) ;\n csize = bytestream2_get_byte ( & s -> gb ) ;\n bytestream2_skip ( & s -> gb , 4 ) ;\n w = bytestream2_get_le16 ( & s -> gb ) ;\n h = bytestream2_get_le16 ( & s -> gb ) ;\n bpp = bytestream2_get_byte ( & s -> gb ) ;\n flags = bytestream2_get_byte ( & s -> gb ) ;\n bytestream2_skip ( & s -> gb , idlen ) ;\n switch ( bpp ) {\n case 8 : avctx -> pix_fmt = ( ( compr & ( ~ TGA_RLE ) ) == TGA_BW ) ? AV_PIX_FMT_GRAY8 : AV_PIX_FMT_PAL8 ;\n break ;\n case 15 : avctx -> pix_fmt = AV_PIX_FMT_RGB555LE ;\n break ;\n case 16 : avctx -> pix_fmt = AV_PIX_FMT_RGB555LE ;\n break ;\n case 24 : avctx -> pix_fmt = AV_PIX_FMT_BGR24 ;\n break ;\n case 32 : avctx -> pix_fmt = AV_PIX_FMT_BGRA ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"Bit depth %i is not supported\\n\" , bpp ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( s -> picture . data [ 0 ] ) avctx -> release_buffer ( avctx , & s -> picture ) ;\n if ( ( ret = av_image_check_size ( w , h , 0 , avctx ) ) < 0 ) return ret ;\n if ( w != avctx -> width || h != avctx -> height ) avcodec_set_dimensions ( avctx , w , h ) ;\n if ( ( ret = ff_get_buffer ( avctx , p ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( flags & 0x20 ) {\n dst = p -> data [ 0 ] ;\n stride = p -> linesize [ 0 ] ;\n }\n else {\n dst = p -> data [ 0 ] + p -> linesize [ 0 ] * ( h - 1 ) ;\n stride = - p -> linesize [ 0 ] ;\n }\n if ( colors ) {\n int pal_size , pal_sample_size ;\n if ( ( colors + first_clr ) > 256 ) {\n av_log ( avctx , AV_LOG_ERROR , \"Incorrect palette: %i colors with offset %i\\n\" , colors , first_clr ) ;\n return AVERROR_INVALIDDATA ;\n }\n switch ( csize ) {\n case 24 : pal_sample_size = 3 ;\n break ;\n case 16 : case 15 : pal_sample_size = 2 ;\n break ;\n default : av_log ( avctx , AV_LOG_ERROR , \"Palette entry size %i bits is not supported\\n\" , csize ) ;\n return AVERROR_INVALIDDATA ;\n }\n pal_size = colors * pal_sample_size ;\n if ( avctx -> pix_fmt != AV_PIX_FMT_PAL8 ) bytestream2_skip ( & s -> gb , pal_size ) ;\n else {\n int t ;\n uint32_t * pal = ( ( uint32_t * ) p -> data [ 1 ] ) + first_clr ;\n if ( bytestream2_get_bytes_left ( & s -> gb ) < pal_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"Not enough data to read palette\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n switch ( pal_sample_size ) {\n case 3 : for ( t = 0 ;\n t < colors ;\n t ++ ) * pal ++ = bytestream2_get_le24u ( & s -> gb ) ;\n break ;\n case 2 : for ( t = 0 ;\n t < colors ;\n t ++ ) {\n uint32_t v = bytestream2_get_le16u ( & s -> gb ) ;\n v = ( ( v & 0x7C00 ) << 9 ) | ( ( v & 0x03E0 ) << 6 ) | ( ( v & 0x001F ) << 3 ) ;\n v |= ( v & 0xE0E0E0U ) >> 5 ;\n * pal ++ = v ;\n }\n break ;\n }\n p -> palette_has_changed = 1 ;\n }\n }\n if ( ( compr & ( ~ TGA_RLE ) ) == TGA_NODATA ) {\n memset ( p -> data [ 0 ] , 0 , p -> linesize [ 0 ] * h ) ;\n }\n else {\n if ( compr & TGA_RLE ) {\n int res = targa_decode_rle ( avctx , s , dst , w , h , stride , bpp ) ;\n if ( res < 0 ) return res ;\n }\n else {\n size_t img_size = w * ( ( bpp + 1 ) >> 3 ) ;\n if ( bytestream2_get_bytes_left ( & s -> gb ) < img_size * h ) {\n av_log ( avctx , AV_LOG_ERROR , \"Not enough data available for image\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n for ( y = 0 ;\n y < h ;\n y ++ ) {\n bytestream2_get_bufferu ( & s -> gb , dst , img_size ) ;\n dst += stride ;\n }\n }\n }\n * picture = s -> picture ;\n * got_frame = 1 ;\n return avpkt -> size ;\n }"}
{"idx": 19957, "target": 0, "func": "static void test_multiple_cb ( int fd , short event , void * arg ) {\n if ( event & EV_READ ) test_ok |= 1 ;\n else if ( event & EV_WRITE ) test_ok |= 2 ;\n }"}
{"idx": 19958, "target": 0, "func": "static void dissect_zcl_appl_ctrl_wr_funcs ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {\n proto_tree * sub_tree = NULL ;\n guint tvb_len ;\n guint i = 0 ;\n tvb_len = tvb_reported_length ( tvb ) ;\n while ( * offset < tvb_len && i < ZBEE_ZCL_APPL_CTRL_NUM_FUNC_ETT ) {\n sub_tree = proto_tree_add_subtree_format ( tree , tvb , * offset , 0 , ett_zbee_zcl_appl_ctrl_func [ i ] , NULL , \"Function #%d\" , i ) ;\n i ++ ;\n dissect_zcl_appl_ctrl_attr_func ( tvb , sub_tree , offset ) ;\n }\n }"}
{"idx": 19959, "target": 0, "func": "TEST_F ( WebFrameSimTest , ScrollFocusedIntoViewClipped ) {\n UseAndroidSettings ( ) ;\n WebView ( ) . Resize ( WebSize ( 400 , 600 ) ) ;\n WebView ( ) . EnableFakePageScaleAnimationForTesting ( true ) ;\n WebView ( ) . GetPage ( ) -> GetSettings ( ) . SetTextAutosizingEnabled ( false ) ;\n SimRequest request ( \"https://example.com/test.html\" , \"text/html\" ) ;\n LoadURL ( \"https://example.com/test.html\" ) ;\n request . Complete ( R \"HTML( < ! DOCTYPE html > < style > : : - webkit - scrollbar {\n width : 0px ;\n height : 0px ;\n }\n body , html {\n margin : 0px ;\n width : 100 % ;\n height : 100 % ;\n }\n input {\n padding : 0 ;\n position : relative ;\n top : 1400px ;\n width : 100px ;\n height : 20px ;\n }\n # clip {\n width : 100 % ;\n height : 100 % ;\n overflow : hidden ;\n }\n # container {\n width : 980px ;\n height : 1470px ;\n }"}
{"idx": 19960, "target": 0, "func": "static long heap_available ( ) {\n long avail = 0 ;\n void * probes [ max_malloc_probes ] ;\n uint n ;\n for ( n = 0 ;\n n < max_malloc_probes ;\n n ++ ) {\n if ( ( probes [ n ] = malloc ( malloc_probe_size ) ) == 0 ) break ;\n if_debug2 ( 'a' , \"[a]heap_available probe[%d]=0x%lx\\n\" , n , ( ulong ) probes [ n ] ) ;\n avail += malloc_probe_size ;\n }\n while ( n ) free ( probes [ -- n ] ) ;\n return avail ;\n }"}
{"idx": 19961, "target": 0, "func": "static int rawv6_recvmsg ( struct kiocb * iocb , struct sock * sk , struct msghdr * msg , size_t len , int noblock , int flags , int * addr_len ) {\n struct ipv6_pinfo * np = inet6_sk ( sk ) ;\n struct sockaddr_in6 * sin6 = ( struct sockaddr_in6 * ) msg -> msg_name ;\n struct sk_buff * skb ;\n size_t copied ;\n int err ;\n if ( flags & MSG_OOB ) return - EOPNOTSUPP ;\n if ( addr_len ) * addr_len = sizeof ( * sin6 ) ;\n if ( flags & MSG_ERRQUEUE ) return ipv6_recv_error ( sk , msg , len ) ;\n if ( np -> rxpmtu && np -> rxopt . bits . rxpmtu ) return ipv6_recv_rxpmtu ( sk , msg , len ) ;\n skb = skb_recv_datagram ( sk , flags , noblock , & err ) ;\n if ( ! skb ) goto out ;\n copied = skb -> len ;\n if ( copied > len ) {\n copied = len ;\n msg -> msg_flags |= MSG_TRUNC ;\n }\n if ( skb_csum_unnecessary ( skb ) ) {\n err = skb_copy_datagram_iovec ( skb , 0 , msg -> msg_iov , copied ) ;\n }\n else if ( msg -> msg_flags & MSG_TRUNC ) {\n if ( __skb_checksum_complete ( skb ) ) goto csum_copy_err ;\n err = skb_copy_datagram_iovec ( skb , 0 , msg -> msg_iov , copied ) ;\n }\n else {\n err = skb_copy_and_csum_datagram_iovec ( skb , 0 , msg -> msg_iov ) ;\n if ( err == - EINVAL ) goto csum_copy_err ;\n }\n if ( err ) goto out_free ;\n if ( sin6 ) {\n sin6 -> sin6_family = AF_INET6 ;\n sin6 -> sin6_port = 0 ;\n ipv6_addr_copy ( & sin6 -> sin6_addr , & ipv6_hdr ( skb ) -> saddr ) ;\n sin6 -> sin6_flowinfo = 0 ;\n sin6 -> sin6_scope_id = 0 ;\n if ( ipv6_addr_type ( & sin6 -> sin6_addr ) & IPV6_ADDR_LINKLOCAL ) sin6 -> sin6_scope_id = IP6CB ( skb ) -> iif ;\n }\n sock_recv_ts_and_drops ( msg , sk , skb ) ;\n if ( np -> rxopt . all ) datagram_recv_ctl ( sk , msg , skb ) ;\n err = copied ;\n if ( flags & MSG_TRUNC ) err = skb -> len ;\n out_free : skb_free_datagram ( sk , skb ) ;\n out : return err ;\n csum_copy_err : skb_kill_datagram ( sk , skb , flags ) ;\n err = ( flags & MSG_DONTWAIT ) ? - EAGAIN : - EHOSTUNREACH ;\n goto out ;\n }"}
{"idx": 19962, "target": 1, "func": "IN_PROC_BROWSER_TEST_F ( BookmarkBubbleSignInDelegateTest , OnSignInLinkClickedReusesBlank ) {\n int starting_tab_count = browser ( ) -> tab_strip_model ( ) -> count ( ) ;\n scoped_ptr < BookmarkBubbleDelegate > delegate ;\n delegate . reset ( new BookmarkBubbleSignInDelegate ( browser ( ) ) ) ;\n delegate -> OnSignInLinkClicked ( ) ;\n EXPECT_EQ ( starting_tab_count , browser ( ) -> tab_strip_model ( ) -> count ( ) ) ;\n }"}
{"idx": 19963, "target": 0, "func": "bool gx_outputfile_is_separate_pages ( const char * fname , gs_memory_t * memory ) {\n const char * fmt ;\n gs_parsed_file_name_t parsed ;\n int code = gx_parse_output_file_name ( & parsed , & fmt , fname , strlen ( fname ) , memory ) ;\n return ( code >= 0 && fmt != 0 ) ;\n }"}
{"idx": 19964, "target": 0, "func": "static int tls_process_cke_psk_preamble ( SSL * s , PACKET * pkt , int * al ) {\n # ifndef OPENSSL_NO_PSK unsigned char psk [ PSK_MAX_PSK_LEN ] ;\n size_t psklen ;\n PACKET psk_identity ;\n if ( ! PACKET_get_length_prefixed_2 ( pkt , & psk_identity ) ) {\n * al = SSL_AD_DECODE_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE , SSL_R_LENGTH_MISMATCH ) ;\n return 0 ;\n }\n if ( PACKET_remaining ( & psk_identity ) > PSK_MAX_IDENTITY_LEN ) {\n * al = SSL_AD_DECODE_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE , SSL_R_DATA_LENGTH_TOO_LONG ) ;\n return 0 ;\n }\n if ( s -> psk_server_callback == NULL ) {\n * al = SSL_AD_INTERNAL_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE , SSL_R_PSK_NO_SERVER_CB ) ;\n return 0 ;\n }\n if ( ! PACKET_strndup ( & psk_identity , & s -> session -> psk_identity ) ) {\n * al = SSL_AD_INTERNAL_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE , ERR_R_INTERNAL_ERROR ) ;\n return 0 ;\n }\n psklen = s -> psk_server_callback ( s , s -> session -> psk_identity , psk , sizeof ( psk ) ) ;\n if ( psklen > PSK_MAX_PSK_LEN ) {\n * al = SSL_AD_INTERNAL_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE , ERR_R_INTERNAL_ERROR ) ;\n return 0 ;\n }\n else if ( psklen == 0 ) {\n * al = SSL_AD_UNKNOWN_PSK_IDENTITY ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE , SSL_R_PSK_IDENTITY_NOT_FOUND ) ;\n return 0 ;\n }\n OPENSSL_free ( s -> s3 -> tmp . psk ) ;\n s -> s3 -> tmp . psk = OPENSSL_memdup ( psk , psklen ) ;\n OPENSSL_cleanse ( psk , psklen ) ;\n if ( s -> s3 -> tmp . psk == NULL ) {\n * al = SSL_AD_INTERNAL_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE , ERR_R_MALLOC_FAILURE ) ;\n return 0 ;\n }\n s -> s3 -> tmp . psklen = psklen ;\n return 1 ;\n # else * al = SSL_AD_INTERNAL_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE , ERR_R_INTERNAL_ERROR ) ;\n return 0 ;\n # endif }"}
{"idx": 19965, "target": 1, "func": "TEST_F ( MultiBufferTest , ReadAllAdvanceFirst_NeverDefer ) {\n multibuffer_ . SetMaxWriters ( 1 ) ;\n size_t pos = 0 ;\n size_t end = 10000 ;\n multibuffer_ . SetFileSize ( 10000 ) ;\n multibuffer_ . SetMaxBlocksAfterDefer ( - 10000 ) ;\n multibuffer_ . SetRangeSupported ( true ) ;\n media : : MultiBufferReader reader ( & multibuffer_ , pos , end , base : : Callback < void ( int64_t , int64_t ) > ( ) ) ;\n reader . SetMaxBuffer ( 2000 , 5000 ) ;\n reader . SetPreload ( 1000 , 1000 ) ;\n while ( pos < end ) {\n unsigned char buffer [ 27 ] ;\n buffer [ 17 ] = 17 ;\n size_t to_read = std : : min < size_t > ( end - pos , 17 ) ;\n while ( AdvanceAll ( ) ) ;\n int64_t bytes = reader . TryRead ( buffer , to_read ) ;\n EXPECT_GT ( bytes , 0 ) ;\n EXPECT_EQ ( buffer [ 17 ] , 17 ) ;\n for ( int64_t i = 0 ;\n i < bytes ;\n i ++ ) {\n uint8_t expected = static_cast < uint8_t > ( ( pos * 15485863 ) >> 16 ) ;\n EXPECT_EQ ( expected , buffer [ i ] ) << \" pos = \" << pos ;\n pos ++ ;\n }\n }\n EXPECT_GT ( multibuffer_ . writers_created ( ) , 1 ) ;\n }"}
{"idx": 19966, "target": 1, "func": "static void set_block_size ( VP9_COMP * const cpi , int mi_row , int mi_col , BLOCK_SIZE bsize ) {\n if ( cpi -> common . mi_cols > mi_col && cpi -> common . mi_rows > mi_row ) {\n MACROBLOCKD * const xd = & cpi -> mb . e_mbd ;\n set_modeinfo_offsets ( & cpi -> common , xd , mi_row , mi_col ) ;\n xd -> mi [ 0 ] -> mbmi . sb_type = bsize ;\n duplicate_mode_info_in_sb ( & cpi -> common , xd , mi_row , mi_col , bsize ) ;\n }\n }"}
{"idx": 19967, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( DownloadExtensionTest , DownloadExtensionTest_OnDeterminingFilename_EmptyBasenameInvalid ) {\n GoOnTheRecord ( ) ;\n LoadExtension ( \"downloads_split\" ) ;\n AddFilenameDeterminer ( ) ;\n ASSERT_TRUE ( StartEmbeddedTestServer ( ) ) ;\n std : : string download_url = embedded_test_server ( ) -> GetURL ( \"/slow?0\" ) . spec ( ) ;\n std : : unique_ptr < base : : Value > result ( RunFunctionAndReturnResult ( new DownloadsDownloadFunction ( ) , base : : StringPrintf ( \"[{\n\\\"url\\\": \\\"%s\\\"}\n]\" , download_url . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( result . get ( ) ) ;\n int result_id = - 1 ;\n ASSERT_TRUE ( result -> GetAsInteger ( & result_id ) ) ;\n DownloadItem * item = GetCurrentManager ( ) -> GetDownload ( result_id ) ;\n ASSERT_TRUE ( item ) ;\n ScopedCancellingItem canceller ( item ) ;\n ASSERT_EQ ( download_url , item -> GetOriginalUrl ( ) . spec ( ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnCreated : : kEventName , base : : StringPrintf ( \"[{\n\\\"danger\\\": \\\"safe\\\",\" \" \\\"incognito\\\": false,\" \" \\\"id\\\": %d,\" \" \\\"mime\\\": \\\"text/plain\\\",\" \" \\\"paused\\\": false,\" \" \\\"url\\\": \\\"%s\\\"}\n]\" , result_id , download_url . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnDeterminingFilename : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"filename\\\":\\\"slow.txt\\\"}\n]\" , result_id ) ) ) ;\n ASSERT_TRUE ( item -> GetTargetFilePath ( ) . empty ( ) ) ;\n ASSERT_EQ ( DownloadItem : : IN_PROGRESS , item -> GetState ( ) ) ;\n std : : string error ;\n ASSERT_FALSE ( ExtensionDownloadsEventRouter : : DetermineFilename ( browser ( ) -> profile ( ) , false , GetExtensionId ( ) , result_id , base : : FilePath ( FILE_PATH_LITERAL ( \"foo/\" ) ) , downloads : : FILENAME_CONFLICT_ACTION_UNIQUIFY , & error ) ) ;\n EXPECT_STREQ ( errors : : kInvalidFilename , error . c_str ( ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnChanged : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"filename\\\": {\n\" \" \\\"previous\\\": \\\"\\\",\" \" \\\"current\\\": \\\"%s\\\"}\n}\n]\" , result_id , GetFilename ( \"slow.txt\" ) . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnChanged : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"state\\\": {\n\" \" \\\"previous\\\": \\\"in_progress\\\",\" \" \\\"current\\\": \\\"complete\\\"}\n}\n]\" , result_id ) ) ) ;\n }"}
{"idx": 19968, "target": 0, "func": "static int sua_calls_packet ( void * ptr _U_ , packet_info * pinfo , epan_dissect_t * edt _U_ , const void * prot_info ) {\n sccp_payload_values = sua_co_class_type_acro_values ;\n return sccp_calls ( pinfo , prot_info ) ;\n }"}
{"idx": 19969, "target": 0, "func": "static int processCompressOptions ( char * opt ) {\n if ( streq ( opt , \"none\" ) ) compression = COMPRESSION_NONE ;\n else if ( streq ( opt , \"packbits\" ) ) compression = COMPRESSION_PACKBITS ;\n else if ( strneq ( opt , \"jpeg\" , 4 ) ) {\n char * cp = strchr ( opt , ':' ) ;\n compression = COMPRESSION_JPEG ;\n while ( cp ) {\n if ( isdigit ( ( int ) cp [ 1 ] ) ) quality = atoi ( cp + 1 ) ;\n else if ( cp [ 1 ] == 'r' ) jpegcolormode = JPEGCOLORMODE_RAW ;\n else usage ( ) ;\n cp = strchr ( cp + 1 , ':' ) ;\n }\n }\n else if ( strneq ( opt , \"lzw\" , 3 ) ) {\n char * cp = strchr ( opt , ':' ) ;\n if ( cp ) predictor = atoi ( cp + 1 ) ;\n compression = COMPRESSION_LZW ;\n }\n else if ( strneq ( opt , \"zip\" , 3 ) ) {\n char * cp = strchr ( opt , ':' ) ;\n if ( cp ) predictor = atoi ( cp + 1 ) ;\n compression = COMPRESSION_DEFLATE ;\n }\n else return ( 0 ) ;\n return ( 1 ) ;\n }"}
{"idx": 19970, "target": 1, "func": "static void _LMBCSOpen ## n ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err ) \\ {\n _LMBCSOpenWorker ( _this , pArgs , err , n ) ;\n }\n static void _LMBCSOpenWorker ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err , ulmbcs_byte_t OptGroup ) {\n UConverterDataLMBCS * extraInfo = _this -> extraInfo = ( UConverterDataLMBCS * ) uprv_malloc ( sizeof ( UConverterDataLMBCS ) ) ;\n if ( extraInfo != NULL ) {\n UConverterNamePieces stackPieces ;\n UConverterLoadArgs stackArgs = {\n ( int32_t ) sizeof ( UConverterLoadArgs ) }\n ;\n ulmbcs_byte_t i ;\n uprv_memset ( extraInfo , 0 , sizeof ( UConverterDataLMBCS ) ) ;\n stackArgs . onlyTestIsLoadable = pArgs -> onlyTestIsLoadable ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST && U_SUCCESS ( * err ) ;\n i ++ ) {\n if ( OptGroupByteToCPName [ i ] != NULL ) {\n extraInfo -> OptGrpConverter [ i ] = ucnv_loadSharedData ( OptGroupByteToCPName [ i ] , & stackPieces , & stackArgs , err ) ;\n }\n }\n if ( U_FAILURE ( * err ) || pArgs -> onlyTestIsLoadable ) {\n _LMBCSClose ( _this ) ;\n return ;\n }\n extraInfo -> OptGroup = OptGroup ;\n extraInfo -> localeConverterIndex = FindLMBCSLocale ( pArgs -> locale ) ;\n }\n else {\n * err = U_MEMORY_ALLOCATION_ERROR ;\n }\n }\n static void _LMBCSClose ( UConverter * _this ) {\n if ( _this -> extraInfo != NULL ) {\n ulmbcs_byte_t Ix ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) _this -> extraInfo ;\n for ( Ix = 0 ;\n Ix <= ULMBCS_GRP_LAST ;\n Ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ Ix ] != NULL ) ucnv_unloadSharedDataIfReady ( extraInfo -> OptGrpConverter [ Ix ] ) ;\n }\n if ( ! _this -> isExtraLocal ) {\n uprv_free ( _this -> extraInfo ) ;\n _this -> extraInfo = NULL ;\n }\n }\n }\n typedef struct LMBCSClone {\n UConverter cnv ;\n UConverterDataLMBCS lmbcs ;\n }\n LMBCSClone ;\n static UConverter * _LMBCSSafeClone ( const UConverter * cnv , void * stackBuffer , int32_t * pBufferSize , UErrorCode * status ) {\n LMBCSClone * newLMBCS ;\n UConverterDataLMBCS * extraInfo ;\n int32_t i ;\n if ( * pBufferSize <= 0 ) {\n * pBufferSize = ( int32_t ) sizeof ( LMBCSClone ) ;\n return NULL ;\n }\n extraInfo = ( UConverterDataLMBCS * ) cnv -> extraInfo ;\n newLMBCS = ( LMBCSClone * ) stackBuffer ;\n uprv_memcpy ( & newLMBCS -> lmbcs , extraInfo , sizeof ( UConverterDataLMBCS ) ) ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST ;\n ++ i ) {\n if ( extraInfo -> OptGrpConverter [ i ] != NULL ) {\n ucnv_incrementRefCount ( extraInfo -> OptGrpConverter [ i ] ) ;\n }\n }\n newLMBCS -> cnv . extraInfo = & newLMBCS -> lmbcs ;\n newLMBCS -> cnv . isExtraLocal = TRUE ;\n return & newLMBCS -> cnv ;\n }\n static size_t LMBCSConversionWorker ( UConverterDataLMBCS * extraInfo , ulmbcs_byte_t group , ulmbcs_byte_t * pStartLMBCS , UChar * pUniChar , ulmbcs_byte_t * lastConverterIndex , UBool * groups_tried ) {\n ulmbcs_byte_t * pLMBCS = pStartLMBCS ;\n UConverterSharedData * xcnv = extraInfo -> OptGrpConverter [ group ] ;\n int bytesConverted ;\n uint32_t value ;\n ulmbcs_byte_t firstByte ;\n U_ASSERT ( xcnv ) ;\n U_ASSERT ( group < ULMBCS_GRP_UNICODE ) ;\n bytesConverted = ucnv_MBCSFromUChar32 ( xcnv , * pUniChar , & value , FALSE ) ;\n if ( bytesConverted > 0 ) {\n firstByte = ( ulmbcs_byte_t ) ( value >> ( ( bytesConverted - 1 ) * 8 ) ) ;\n }\n else {\n groups_tried [ group ] = TRUE ;\n return 0 ;\n }\n * lastConverterIndex = group ;\n U_ASSERT ( ( firstByte <= ULMBCS_C0END ) || ( firstByte >= ULMBCS_C1START ) || ( group == ULMBCS_GRP_EXCEPT ) ) ;\n if ( group != ULMBCS_GRP_EXCEPT && extraInfo -> OptGroup != group ) {\n * pLMBCS ++ = group ;\n if ( bytesConverted == 1 && group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n * pLMBCS ++ = group ;\n }\n }\n if ( bytesConverted == 1 && firstByte < 0x20 ) return 0 ;\n switch ( bytesConverted ) {\n case 4 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 24 ) ;\n U_FALLTHROUGH ;\n case 3 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 16 ) ;\n U_FALLTHROUGH ;\n case 2 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 8 ) ;\n U_FALLTHROUGH ;\n case 1 : * pLMBCS ++ = ( ulmbcs_byte_t ) value ;\n U_FALLTHROUGH ;\n default : break ;\n }\n return ( pLMBCS - pStartLMBCS ) ;\n }\n static size_t LMBCSConvertUni ( ulmbcs_byte_t * pLMBCS , UChar uniChar ) {\n uint8_t LowCh = ( uint8_t ) ( uniChar & 0x00FF ) ;\n uint8_t HighCh = ( uint8_t ) ( uniChar >> 8 ) ;\n * pLMBCS ++ = ULMBCS_GRP_UNICODE ;\n if ( LowCh == 0 ) {\n * pLMBCS ++ = ULMBCS_UNICOMPATZERO ;\n * pLMBCS ++ = HighCh ;\n }\n else {\n * pLMBCS ++ = HighCh ;\n * pLMBCS ++ = LowCh ;\n }\n return ULMBCS_UNICODE_SIZE ;\n }\n static void _LMBCSFromUnicode ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n ulmbcs_byte_t lastConverterIndex = 0 ;\n UChar uniChar ;\n ulmbcs_byte_t LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n ulmbcs_byte_t * pLMBCS ;\n int32_t bytes_written ;\n UBool groups_tried [ ULMBCS_GRP_LAST + 1 ] ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n int sourceIndex = 0 ;\n ulmbcs_byte_t OldConverterIndex = 0 ;\n while ( args -> source < args -> sourceLimit && ! U_FAILURE ( * err ) ) {\n OldConverterIndex = extraInfo -> localeConverterIndex ;\n if ( args -> target >= args -> targetLimit ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n uniChar = * ( args -> source ) ;\n bytes_written = 0 ;\n pLMBCS = LMBCS ;\n if ( ( uniChar >= 0x80 ) && ( uniChar <= 0xff ) && ( uniChar != 0xB1 ) && ( uniChar != 0xD7 ) && ( uniChar != 0xF7 ) && ( uniChar != 0xB0 ) && ( uniChar != 0xB4 ) && ( uniChar != 0xB6 ) && ( uniChar != 0xA7 ) && ( uniChar != 0xA8 ) ) {\n extraInfo -> localeConverterIndex = ULMBCS_GRP_L1 ;\n }\n if ( ( ( uniChar > ULMBCS_C0END ) && ( uniChar < ULMBCS_C1START ) ) || uniChar == 0 || uniChar == ULMBCS_HT || uniChar == ULMBCS_CR || uniChar == ULMBCS_LF || uniChar == ULMBCS_123SYSTEMRANGE ) {\n * pLMBCS ++ = ( ulmbcs_byte_t ) uniChar ;\n bytes_written = 1 ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t group = FindLMBCSUniRange ( uniChar ) ;\n if ( group == ULMBCS_GRP_UNICODE ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group == ULMBCS_GRP_CTRL ) {\n if ( uniChar <= ULMBCS_C0END ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( ULMBCS_CTRLOFFSET + uniChar ) ;\n }\n else if ( uniChar >= ULMBCS_C1START && uniChar <= ULMBCS_C1START + ULMBCS_CTRLOFFSET ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( uniChar & 0x00FF ) ;\n }\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group < ULMBCS_GRP_UNICODE ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , group , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n uprv_memset ( groups_tried , 0 , sizeof ( groups_tried ) ) ;\n if ( ( extraInfo -> OptGroup != 1 ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> OptGroup ) ) ) {\n if ( extraInfo -> localeConverterIndex < ULMBCS_DOUBLEOPTGROUP_START ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_L1 , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n else {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && ( extraInfo -> localeConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> localeConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written && ( lastConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , lastConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , lastConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t grp_start ;\n ulmbcs_byte_t grp_end ;\n ulmbcs_byte_t grp_ix ;\n grp_start = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_DOUBLEOPTGROUP_START : ULMBCS_GRP_L1 ) ;\n grp_end = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_GRP_LAST : ULMBCS_GRP_TH ) ;\n if ( group == ULMBCS_AMBIGUOUS_ALL ) {\n grp_start = ULMBCS_GRP_L1 ;\n grp_end = ULMBCS_GRP_LAST ;\n }\n for ( grp_ix = grp_start ;\n grp_ix <= grp_end && ! bytes_written ;\n grp_ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ grp_ix ] && ! groups_tried [ grp_ix ] ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , grp_ix , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && grp_start == ULMBCS_GRP_L1 ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n }\n }\n args -> source ++ ;\n pLMBCS = LMBCS ;\n while ( args -> target < args -> targetLimit && bytes_written -- ) {\n * ( args -> target ) ++ = * pLMBCS ++ ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = sourceIndex ;\n }\n }\n sourceIndex ++ ;\n if ( bytes_written > 0 ) {\n uint8_t * pErrorBuffer = args -> converter -> charErrorBuffer ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n args -> converter -> charErrorBufferLength = ( int8_t ) bytes_written ;\n while ( bytes_written -- ) {\n * pErrorBuffer ++ = * pLMBCS ++ ;\n }\n }\n extraInfo -> localeConverterIndex = OldConverterIndex ;\n }\n }\n static UChar GetUniFromLMBCSUni ( char const * * ppLMBCSin ) {\n uint8_t HighCh = * ( * ppLMBCSin ) ++ ;\n uint8_t LowCh = * ( * ppLMBCSin ) ++ ;\n if ( HighCh == ULMBCS_UNICOMPATZERO ) {\n HighCh = LowCh ;\n LowCh = 0 ;\n }\n return ( UChar ) ( ( HighCh << 8 ) | LowCh ) ;\n }\n # define CHECK_SOURCE_LIMIT ( index ) if ( args -> source + index > args -> sourceLimit ) {\n * err = U_TRUNCATED_CHAR_FOUND ;\n args -> source = args -> sourceLimit ;\n return 0xffff ;\n }\n static UChar32 _LMBCSGetNextUCharWorker ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n UChar32 uniChar = 0 ;\n ulmbcs_byte_t CurByte ;\n if ( args -> source >= args -> sourceLimit ) {\n * err = U_ILLEGAL_ARGUMENT_ERROR ;\n return 0xffff ;\n }\n CurByte = * ( ( ulmbcs_byte_t * ) ( args -> source ++ ) ) ;\n if ( ( ( CurByte > ULMBCS_C0END ) && ( CurByte < ULMBCS_C1START ) ) || ( CurByte == 0 ) || CurByte == ULMBCS_HT || CurByte == ULMBCS_CR || CurByte == ULMBCS_LF || CurByte == ULMBCS_123SYSTEMRANGE ) {\n uniChar = CurByte ;\n }\n else {\n UConverterDataLMBCS * extraInfo ;\n ulmbcs_byte_t group ;\n UConverterSharedData * cnv ;\n if ( CurByte == ULMBCS_GRP_CTRL ) {\n ulmbcs_byte_t C0C1byte ;\n CHECK_SOURCE_LIMIT ( 1 ) ;\n C0C1byte = * ( args -> source ) ++ ;\n uniChar = ( C0C1byte < ULMBCS_C1START ) ? C0C1byte - ULMBCS_CTRLOFFSET : C0C1byte ;\n }\n else if ( CurByte == ULMBCS_GRP_UNICODE ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n return GetUniFromLMBCSUni ( & ( args -> source ) ) ;\n }\n else if ( CurByte <= ULMBCS_CTRLOFFSET ) {\n group = CurByte ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n if ( group > ULMBCS_GRP_LAST || ( cnv = extraInfo -> OptGrpConverter [ group ] ) == NULL ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n if ( * args -> source == group ) {\n ++ args -> source ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 1 , FALSE ) ;\n ++ args -> source ;\n }\n else {\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 2 , FALSE ) ;\n args -> source += 2 ;\n }\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n CurByte = * ( args -> source ) ++ ;\n if ( CurByte >= ULMBCS_C1START ) {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n else {\n char bytes [ 2 ] ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n cnv = extraInfo -> OptGrpConverter [ ULMBCS_GRP_EXCEPT ] ;\n bytes [ 0 ] = group ;\n bytes [ 1 ] = CurByte ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , bytes , 2 , FALSE ) ;\n }\n }\n }\n else if ( CurByte >= ULMBCS_C1START ) {\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n group = extraInfo -> OptGroup ;\n cnv = extraInfo -> OptGrpConverter [ group ] ;\n if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n if ( ! ucnv_MBCSIsLeadByte ( cnv , CurByte ) ) {\n CHECK_SOURCE_LIMIT ( 0 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 1 , FALSE ) ;\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 2 , FALSE ) ;\n ++ args -> source ;\n }\n }\n else {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n }\n }\n return uniChar ;\n }\n static void _LMBCSToUnicodeWithOffsets ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n char LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n UChar uniChar ;\n const char * saveSource ;\n const char * pStartLMBCS = args -> source ;\n const char * errSource = NULL ;\n int8_t savebytes = 0 ;\n while ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit > args -> target ) {\n saveSource = args -> source ;\n if ( args -> converter -> toULength ) {\n const char * saveSourceLimit ;\n size_t size_old = args -> converter -> toULength ;\n size_t size_new_maybe_1 = sizeof ( LMBCS ) - size_old ;\n size_t size_new_maybe_2 = args -> sourceLimit - args -> source ;\n size_t size_new = ( size_new_maybe_1 < size_new_maybe_2 ) ? size_new_maybe_1 : size_new_maybe_2 ;\n uprv_memcpy ( LMBCS , args -> converter -> toUBytes , size_old ) ;\n uprv_memcpy ( LMBCS + size_old , args -> source , size_new ) ;\n saveSourceLimit = args -> sourceLimit ;\n args -> source = errSource = LMBCS ;\n args -> sourceLimit = LMBCS + size_old + size_new ;\n savebytes = ( int8_t ) ( size_old + size_new ) ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n args -> source = saveSource + ( ( args -> source - LMBCS ) - size_old ) ;\n args -> sourceLimit = saveSourceLimit ;\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n args -> converter -> toULength = savebytes ;\n uprv_memcpy ( args -> converter -> toUBytes , LMBCS , savebytes ) ;\n args -> source = args -> sourceLimit ;\n * err = U_ZERO_ERROR ;\n return ;\n }\n else {\n args -> converter -> toULength = 0 ;\n }\n }\n else {\n errSource = saveSource ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n savebytes = ( int8_t ) ( args -> source - saveSource ) ;\n }\n if ( U_SUCCESS ( * err ) ) {\n if ( uniChar < 0xfffe ) {\n * ( args -> target ) ++ = uniChar ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = ( int32_t ) ( saveSource - pStartLMBCS ) ;\n }\n }\n else if ( uniChar == 0xfffe ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n }\n if ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit <= args -> target ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n else if ( U_FAILURE ( * err ) ) {\n args -> converter -> toULength = savebytes ;\n if ( savebytes > 0 ) {\n uprv_memcpy ( args -> converter -> toUBytes , errSource , savebytes ) ;\n }\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n * err = U_ZERO_ERROR ;\n }\n }\n }\n DEFINE_LMBCS_OPEN ( 1 ) DEFINE_LMBCS_OPEN ( 2 )"}
{"idx": 19971, "target": 0, "func": "static bool astream_want_attachment ( struct attachment_istream * astream , struct message_part * part ) {\n struct istream_attachment_header ahdr ;\n if ( ( part -> flags & MESSAGE_PART_FLAG_MULTIPART ) != 0 ) {\n return FALSE ;\n }\n if ( astream -> set . want_attachment == NULL ) return TRUE ;\n i_zero ( & ahdr ) ;\n ahdr . part = part ;\n ahdr . content_type = astream -> part . content_type ;\n ahdr . content_disposition = astream -> part . content_disposition ;\n return astream -> set . want_attachment ( & ahdr , astream -> context ) ;\n }"}
{"idx": 19972, "target": 0, "func": "static Datum ExecEvalCoerceToDomain ( CoerceToDomainState * cstate , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n CoerceToDomain * ctest = ( CoerceToDomain * ) cstate -> xprstate . expr ;\n Datum result ;\n ListCell * l ;\n result = ExecEvalExpr ( cstate -> arg , econtext , isNull , isDone ) ;\n if ( isDone && * isDone == ExprEndResult ) return result ;\n UpdateDomainConstraintRef ( cstate -> constraint_ref ) ;\n foreach ( l , cstate -> constraint_ref -> constraints ) {\n DomainConstraintState * con = ( DomainConstraintState * ) lfirst ( l ) ;\n switch ( con -> constrainttype ) {\n case DOM_CONSTRAINT_NOTNULL : if ( * isNull ) ereport ( ERROR , ( errcode ( ERRCODE_NOT_NULL_VIOLATION ) , errmsg ( \"domain %s does not allow null values\" , format_type_be ( ctest -> resulttype ) ) , errdatatype ( ctest -> resulttype ) ) ) ;\n break ;\n case DOM_CONSTRAINT_CHECK : {\n Datum conResult ;\n bool conIsNull ;\n Datum save_datum ;\n bool save_isNull ;\n save_datum = econtext -> domainValue_datum ;\n save_isNull = econtext -> domainValue_isNull ;\n econtext -> domainValue_datum = result ;\n econtext -> domainValue_isNull = * isNull ;\n conResult = ExecEvalExpr ( con -> check_expr , econtext , & conIsNull , NULL ) ;\n if ( ! conIsNull && ! DatumGetBool ( conResult ) ) ereport ( ERROR , ( errcode ( ERRCODE_CHECK_VIOLATION ) , errmsg ( \"value for domain %s violates check constraint \\\"%s\\\"\" , format_type_be ( ctest -> resulttype ) , con -> name ) , errdomainconstraint ( ctest -> resulttype , con -> name ) ) ) ;\n econtext -> domainValue_datum = save_datum ;\n econtext -> domainValue_isNull = save_isNull ;\n break ;\n }\n default : elog ( ERROR , \"unrecognized constraint type: %d\" , ( int ) con -> constrainttype ) ;\n break ;\n }\n }\n return result ;\n }"}
{"idx": 19973, "target": 0, "func": "static void report_broken_symbolic_link ( GtkWindow * parent_window , NautilusFile * file ) {\n char * target_path ;\n char * display_name ;\n char * prompt ;\n char * detail ;\n GtkDialog * dialog ;\n GList file_as_list ;\n int response ;\n gboolean can_trash ;\n g_assert ( nautilus_file_is_broken_symbolic_link ( file ) ) ;\n display_name = nautilus_file_get_display_name ( file ) ;\n can_trash = nautilus_file_can_trash ( file ) && ! nautilus_file_is_in_trash ( file ) ;\n if ( can_trash ) {\n prompt = g_strdup_printf ( _ ( \"The link \u201c%s\u201d is broken. Move it to Trash?\" ) , display_name ) ;\n }\n else {\n prompt = g_strdup_printf ( _ ( \"The link \u201c%s\u201d is broken.\" ) , display_name ) ;\n }\n g_free ( display_name ) ;\n target_path = nautilus_file_get_symbolic_link_target_path ( file ) ;\n if ( target_path == NULL ) {\n detail = g_strdup ( _ ( \"This link cannot be used because it has no target.\" ) ) ;\n }\n else {\n detail = g_strdup_printf ( _ ( \"This link cannot be used because its target \" \"\u201c%s\u201d doesn\u2019t exist.\" ) , target_path ) ;\n }\n if ( ! can_trash ) {\n eel_run_simple_dialog ( GTK_WIDGET ( parent_window ) , FALSE , GTK_MESSAGE_WARNING , prompt , detail , _ ( \"_Cancel\" ) , NULL ) ;\n goto out ;\n }\n dialog = eel_show_yes_no_dialog ( prompt , detail , _ ( \"Mo_ve to Trash\" ) , _ ( \"_Cancel\" ) , parent_window ) ;\n gtk_dialog_set_default_response ( dialog , GTK_RESPONSE_CANCEL ) ;\n response = gtk_dialog_run ( dialog ) ;\n gtk_widget_destroy ( GTK_WIDGET ( dialog ) ) ;\n if ( response == GTK_RESPONSE_YES ) {\n file_as_list . data = file ;\n file_as_list . next = NULL ;\n file_as_list . prev = NULL ;\n trash_or_delete_files ( parent_window , & file_as_list , TRUE ) ;\n }\n out : g_free ( prompt ) ;\n g_free ( target_path ) ;\n g_free ( detail ) ;\n }"}
{"idx": 19974, "target": 0, "func": "static int dsa_param_encode ( const EVP_PKEY * pkey , unsigned char * * pder ) {\n return i2d_DSAparams ( pkey -> pkey . dsa , pder ) ;\n }"}
{"idx": 19975, "target": 0, "func": "bool checkSeek ( FILE * fp ) {\n pgoff_t tpos ;\n # ifndef HAVE_FSEEKO if ( sizeof ( pgoff_t ) > sizeof ( long ) ) return false ;\n # endif tpos = ftello ( fp ) ;\n if ( tpos < 0 ) return false ;\n if ( fseeko ( fp , tpos , SEEK_SET ) != 0 ) return false ;\n return true ;\n }"}
{"idx": 19976, "target": 0, "func": "static bool hyperv_hypercall_available ( X86CPU * cpu ) {\n return cpu -> hyperv_vapic || ( cpu -> hyperv_spinlock_attempts != HYPERV_SPINLOCK_NEVER_RETRY ) ;\n }"}
{"idx": 19977, "target": 0, "func": "static void U_CALLCONV uprv_writeDirectUInt32 ( uint32_t * p , uint32_t x ) {\n * p = x ;\n }"}
{"idx": 19978, "target": 0, "func": "VP9_COMP * vp9_create_compressor ( VP9EncoderConfig * oxcf ) {\n unsigned int i , j ;\n VP9_COMP * const cpi = vpx_memalign ( 32 , sizeof ( VP9_COMP ) ) ;\n VP9_COMMON * const cm = cpi != NULL ? & cpi -> common : NULL ;\n if ( ! cm ) return NULL ;\n vp9_zero ( * cpi ) ;\n if ( setjmp ( cm -> error . jmp ) ) {\n cm -> error . setjmp = 0 ;\n vp9_remove_compressor ( cpi ) ;\n return 0 ;\n }\n cm -> error . setjmp = 1 ;\n cpi -> use_svc = 0 ;\n init_config ( cpi , oxcf ) ;\n vp9_rc_init ( & cpi -> oxcf , oxcf -> pass , & cpi -> rc ) ;\n cm -> current_video_frame = 0 ;\n cpi -> skippable_frame = 0 ;\n CHECK_MEM_ERROR ( cm , cpi -> segmentation_map , vpx_calloc ( cm -> mi_rows * cm -> mi_cols , 1 ) ) ;\n CHECK_MEM_ERROR ( cm , cpi -> complexity_map , vpx_calloc ( cm -> mi_rows * cm -> mi_cols , 1 ) ) ;\n CHECK_MEM_ERROR ( cm , cpi -> cyclic_refresh , vp9_cyclic_refresh_alloc ( cm -> mi_rows , cm -> mi_cols ) ) ;\n CHECK_MEM_ERROR ( cm , cpi -> coding_context . last_frame_seg_map_copy , vpx_calloc ( cm -> mi_rows * cm -> mi_cols , 1 ) ) ;\n CHECK_MEM_ERROR ( cm , cpi -> nmvcosts [ 0 ] , vpx_calloc ( MV_VALS , sizeof ( * cpi -> nmvcosts [ 0 ] ) ) ) ;\n CHECK_MEM_ERROR ( cm , cpi -> nmvcosts [ 1 ] , vpx_calloc ( MV_VALS , sizeof ( * cpi -> nmvcosts [ 1 ] ) ) ) ;\n CHECK_MEM_ERROR ( cm , cpi -> nmvcosts_hp [ 0 ] , vpx_calloc ( MV_VALS , sizeof ( * cpi -> nmvcosts_hp [ 0 ] ) ) ) ;\n CHECK_MEM_ERROR ( cm , cpi -> nmvcosts_hp [ 1 ] , vpx_calloc ( MV_VALS , sizeof ( * cpi -> nmvcosts_hp [ 1 ] ) ) ) ;\n CHECK_MEM_ERROR ( cm , cpi -> nmvsadcosts [ 0 ] , vpx_calloc ( MV_VALS , sizeof ( * cpi -> nmvsadcosts [ 0 ] ) ) ) ;\n CHECK_MEM_ERROR ( cm , cpi -> nmvsadcosts [ 1 ] , vpx_calloc ( MV_VALS , sizeof ( * cpi -> nmvsadcosts [ 1 ] ) ) ) ;\n CHECK_MEM_ERROR ( cm , cpi -> nmvsadcosts_hp [ 0 ] , vpx_calloc ( MV_VALS , sizeof ( * cpi -> nmvsadcosts_hp [ 0 ] ) ) ) ;\n CHECK_MEM_ERROR ( cm , cpi -> nmvsadcosts_hp [ 1 ] , vpx_calloc ( MV_VALS , sizeof ( * cpi -> nmvsadcosts_hp [ 1 ] ) ) ) ;\n for ( i = 0 ;\n i < ( sizeof ( cpi -> mbgraph_stats ) / sizeof ( cpi -> mbgraph_stats [ 0 ] ) ) ;\n i ++ ) {\n CHECK_MEM_ERROR ( cm , cpi -> mbgraph_stats [ i ] . mb_stats , vpx_calloc ( cm -> MBs * sizeof ( * cpi -> mbgraph_stats [ i ] . mb_stats ) , 1 ) ) ;\n }\n # if CONFIG_FP_MB_STATS cpi -> use_fp_mb_stats = 0 ;\n if ( cpi -> use_fp_mb_stats ) {\n CHECK_MEM_ERROR ( cm , cpi -> twopass . frame_mb_stats_buf , vpx_calloc ( cm -> MBs * sizeof ( uint8_t ) , 1 ) ) ;\n }\n else {\n cpi -> twopass . frame_mb_stats_buf = NULL ;\n }\n # endif cpi -> refresh_alt_ref_frame = 0 ;\n cpi -> multi_arf_last_grp_enabled = 0 ;\n if ( oxcf -> pass == 2 ) {\n if ( cpi -> use_svc ) {\n cpi -> multi_arf_allowed = 0 ;\n cpi -> multi_arf_enabled = 0 ;\n }\n else {\n cpi -> multi_arf_allowed = 0 ;\n cpi -> multi_arf_enabled = 0 ;\n }\n }\n else {\n cpi -> multi_arf_allowed = 0 ;\n cpi -> multi_arf_enabled = 0 ;\n }\n cpi -> b_calculate_psnr = CONFIG_INTERNAL_STATS ;\n # if CONFIG_INTERNAL_STATS cpi -> b_calculate_ssimg = 0 ;\n cpi -> count = 0 ;\n cpi -> bytes = 0 ;\n if ( cpi -> b_calculate_psnr ) {\n cpi -> total_y = 0.0 ;\n cpi -> total_u = 0.0 ;\n cpi -> total_v = 0.0 ;\n cpi -> total = 0.0 ;\n cpi -> total_sq_error = 0 ;\n cpi -> total_samples = 0 ;\n cpi -> totalp_y = 0.0 ;\n cpi -> totalp_u = 0.0 ;\n cpi -> totalp_v = 0.0 ;\n cpi -> totalp = 0.0 ;\n cpi -> totalp_sq_error = 0 ;\n cpi -> totalp_samples = 0 ;\n cpi -> tot_recode_hits = 0 ;\n cpi -> summed_quality = 0 ;\n cpi -> summed_weights = 0 ;\n cpi -> summedp_quality = 0 ;\n cpi -> summedp_weights = 0 ;\n }\n if ( cpi -> b_calculate_ssimg ) {\n cpi -> total_ssimg_y = 0 ;\n cpi -> total_ssimg_u = 0 ;\n cpi -> total_ssimg_v = 0 ;\n cpi -> total_ssimg_all = 0 ;\n }\n # endif cpi -> first_time_stamp_ever = INT64_MAX ;\n cal_nmvjointsadcost ( cpi -> mb . nmvjointsadcost ) ;\n cpi -> mb . nmvcost [ 0 ] = & cpi -> nmvcosts [ 0 ] [ MV_MAX ] ;\n cpi -> mb . nmvcost [ 1 ] = & cpi -> nmvcosts [ 1 ] [ MV_MAX ] ;\n cpi -> mb . nmvsadcost [ 0 ] = & cpi -> nmvsadcosts [ 0 ] [ MV_MAX ] ;\n cpi -> mb . nmvsadcost [ 1 ] = & cpi -> nmvsadcosts [ 1 ] [ MV_MAX ] ;\n cal_nmvsadcosts ( cpi -> mb . nmvsadcost ) ;\n cpi -> mb . nmvcost_hp [ 0 ] = & cpi -> nmvcosts_hp [ 0 ] [ MV_MAX ] ;\n cpi -> mb . nmvcost_hp [ 1 ] = & cpi -> nmvcosts_hp [ 1 ] [ MV_MAX ] ;\n cpi -> mb . nmvsadcost_hp [ 0 ] = & cpi -> nmvsadcosts_hp [ 0 ] [ MV_MAX ] ;\n cpi -> mb . nmvsadcost_hp [ 1 ] = & cpi -> nmvsadcosts_hp [ 1 ] [ MV_MAX ] ;\n cal_nmvsadcosts_hp ( cpi -> mb . nmvsadcost_hp ) ;\n # if CONFIG_VP9_TEMPORAL_DENOISING # ifdef OUTPUT_YUV_DENOISED yuv_denoised_file = fopen ( \"denoised.yuv\" , \"ab\" ) ;\n # endif # endif # ifdef OUTPUT_YUV_REC yuv_rec_file = fopen ( \"rec.yuv\" , \"wb\" ) ;\n # endif # if 0 framepsnr = fopen ( \"framepsnr.stt\" , \"a\" ) ;\n kf_list = fopen ( \"kf_list.stt\" , \"w\" ) ;\n # endif cpi -> allow_encode_breakout = ENCODE_BREAKOUT_ENABLED ;\n if ( oxcf -> pass == 1 ) {\n vp9_init_first_pass ( cpi ) ;\n }\n else if ( oxcf -> pass == 2 ) {\n const size_t packet_sz = sizeof ( FIRSTPASS_STATS ) ;\n const int packets = ( int ) ( oxcf -> two_pass_stats_in . sz / packet_sz ) ;\n if ( cpi -> svc . number_spatial_layers > 1 || cpi -> svc . number_temporal_layers > 1 ) {\n FIRSTPASS_STATS * const stats = oxcf -> two_pass_stats_in . buf ;\n FIRSTPASS_STATS * stats_copy [ VPX_SS_MAX_LAYERS ] = {\n 0 }\n ;\n int i ;\n for ( i = 0 ;\n i < oxcf -> ss_number_layers ;\n ++ i ) {\n FIRSTPASS_STATS * const last_packet_for_layer = & stats [ packets - oxcf -> ss_number_layers + i ] ;\n const int layer_id = ( int ) last_packet_for_layer -> spatial_layer_id ;\n const int packets_in_layer = ( int ) last_packet_for_layer -> count + 1 ;\n if ( layer_id >= 0 && layer_id < oxcf -> ss_number_layers ) {\n LAYER_CONTEXT * const lc = & cpi -> svc . layer_context [ layer_id ] ;\n vpx_free ( lc -> rc_twopass_stats_in . buf ) ;\n lc -> rc_twopass_stats_in . sz = packets_in_layer * packet_sz ;\n CHECK_MEM_ERROR ( cm , lc -> rc_twopass_stats_in . buf , vpx_malloc ( lc -> rc_twopass_stats_in . sz ) ) ;\n lc -> twopass . stats_in_start = lc -> rc_twopass_stats_in . buf ;\n lc -> twopass . stats_in = lc -> twopass . stats_in_start ;\n lc -> twopass . stats_in_end = lc -> twopass . stats_in_start + packets_in_layer - 1 ;\n stats_copy [ layer_id ] = lc -> rc_twopass_stats_in . buf ;\n }\n }\n for ( i = 0 ;\n i < packets ;\n ++ i ) {\n const int layer_id = ( int ) stats [ i ] . spatial_layer_id ;\n if ( layer_id >= 0 && layer_id < oxcf -> ss_number_layers && stats_copy [ layer_id ] != NULL ) {\n * stats_copy [ layer_id ] = stats [ i ] ;\n ++ stats_copy [ layer_id ] ;\n }\n }\n vp9_init_second_pass_spatial_svc ( cpi ) ;\n }\n else {\n # if CONFIG_FP_MB_STATS if ( cpi -> use_fp_mb_stats ) {\n const size_t psz = cpi -> common . MBs * sizeof ( uint8_t ) ;\n const int ps = ( int ) ( oxcf -> firstpass_mb_stats_in . sz / psz ) ;\n cpi -> twopass . firstpass_mb_stats . mb_stats_start = oxcf -> firstpass_mb_stats_in . buf ;\n cpi -> twopass . firstpass_mb_stats . mb_stats_end = cpi -> twopass . firstpass_mb_stats . mb_stats_start + ( ps - 1 ) * cpi -> common . MBs * sizeof ( uint8_t ) ;\n }\n # endif cpi -> twopass . stats_in_start = oxcf -> two_pass_stats_in . buf ;\n cpi -> twopass . stats_in = cpi -> twopass . stats_in_start ;\n cpi -> twopass . stats_in_end = & cpi -> twopass . stats_in [ packets - 1 ] ;\n vp9_init_second_pass ( cpi ) ;\n }\n }\n vp9_set_speed_features ( cpi ) ;\n CHECK_MEM_ERROR ( cm , cpi -> source_diff_var , vpx_calloc ( cm -> MBs , sizeof ( diff ) ) ) ;\n cpi -> source_var_thresh = 0 ;\n cpi -> frames_till_next_var_check = 0 ;\n for ( i = 0 ;\n i < BLOCK_SIZES ;\n ++ i ) {\n for ( j = 0 ;\n j < MAX_MODES ;\n ++ j ) {\n cpi -> rd . thresh_freq_fact [ i ] [ j ] = 32 ;\n cpi -> rd . mode_map [ i ] [ j ] = j ;\n }\n }\n # define BFP ( BT , SDF , SDAF , VF , SVF , SVAF , SDX3F , SDX8F , SDX4DF ) cpi -> fn_ptr [ BT ] . sdf = SDF ;\n cpi -> fn_ptr [ BT ] . sdaf = SDAF ;\n cpi -> fn_ptr [ BT ] . vf = VF ;\n cpi -> fn_ptr [ BT ] . svf = SVF ;\n cpi -> fn_ptr [ BT ] . svaf = SVAF ;\n cpi -> fn_ptr [ BT ] . sdx3f = SDX3F ;\n cpi -> fn_ptr [ BT ] . sdx8f = SDX8F ;\n cpi -> fn_ptr [ BT ] . sdx4df = SDX4DF ;\n BFP ( BLOCK_32X16 , vp9_sad32x16 , vp9_sad32x16_avg , vp9_variance32x16 , vp9_sub_pixel_variance32x16 , vp9_sub_pixel_avg_variance32x16 , NULL , NULL , vp9_sad32x16x4d ) BFP ( BLOCK_16X32 , vp9_sad16x32 , vp9_sad16x32_avg , vp9_variance16x32 , vp9_sub_pixel_variance16x32 , vp9_sub_pixel_avg_variance16x32 , NULL , NULL , vp9_sad16x32x4d ) BFP ( BLOCK_64X32 , vp9_sad64x32 , vp9_sad64x32_avg , vp9_variance64x32 , vp9_sub_pixel_variance64x32 , vp9_sub_pixel_avg_variance64x32 , NULL , NULL , vp9_sad64x32x4d ) BFP ( BLOCK_32X64 , vp9_sad32x64 , vp9_sad32x64_avg , vp9_variance32x64 , vp9_sub_pixel_variance32x64 , vp9_sub_pixel_avg_variance32x64 , NULL , NULL , vp9_sad32x64x4d ) BFP ( BLOCK_32X32 , vp9_sad32x32 , vp9_sad32x32_avg , vp9_variance32x32 , vp9_sub_pixel_variance32x32 , vp9_sub_pixel_avg_variance32x32 , vp9_sad32x32x3 , vp9_sad32x32x8 , vp9_sad32x32x4d ) BFP ( BLOCK_64X64 , vp9_sad64x64 , vp9_sad64x64_avg , vp9_variance64x64 , vp9_sub_pixel_variance64x64 , vp9_sub_pixel_avg_variance64x64 , vp9_sad64x64x3 , vp9_sad64x64x8 , vp9_sad64x64x4d ) BFP ( BLOCK_16X16 , vp9_sad16x16 , vp9_sad16x16_avg , vp9_variance16x16 , vp9_sub_pixel_variance16x16 , vp9_sub_pixel_avg_variance16x16 , vp9_sad16x16x3 , vp9_sad16x16x8 , vp9_sad16x16x4d ) BFP ( BLOCK_16X8 , vp9_sad16x8 , vp9_sad16x8_avg , vp9_variance16x8 , vp9_sub_pixel_variance16x8 , vp9_sub_pixel_avg_variance16x8 , vp9_sad16x8x3 , vp9_sad16x8x8 , vp9_sad16x8x4d ) BFP ( BLOCK_8X16 , vp9_sad8x16 , vp9_sad8x16_avg , vp9_variance8x16 , vp9_sub_pixel_variance8x16 , vp9_sub_pixel_avg_variance8x16 , vp9_sad8x16x3 , vp9_sad8x16x8 , vp9_sad8x16x4d ) BFP ( BLOCK_8X8 , vp9_sad8x8 , vp9_sad8x8_avg , vp9_variance8x8 , vp9_sub_pixel_variance8x8 , vp9_sub_pixel_avg_variance8x8 , vp9_sad8x8x3 , vp9_sad8x8x8 , vp9_sad8x8x4d ) BFP ( BLOCK_8X4 , vp9_sad8x4 , vp9_sad8x4_avg , vp9_variance8x4 , vp9_sub_pixel_variance8x4 , vp9_sub_pixel_avg_variance8x4 , NULL , vp9_sad8x4x8 , vp9_sad8x4x4d ) BFP ( BLOCK_4X8 , vp9_sad4x8 , vp9_sad4x8_avg , vp9_variance4x8 , vp9_sub_pixel_variance4x8 , vp9_sub_pixel_avg_variance4x8 , NULL , vp9_sad4x8x8 , vp9_sad4x8x4d ) BFP ( BLOCK_4X4 , vp9_sad4x4 , vp9_sad4x4_avg , vp9_variance4x4 , vp9_sub_pixel_variance4x4 , vp9_sub_pixel_avg_variance4x4 , vp9_sad4x4x3 , vp9_sad4x4x8 , vp9_sad4x4x4d ) vp9_init_quantizer ( cpi ) ;\n vp9_loop_filter_init ( cm ) ;\n cm -> error . setjmp = 0 ;\n return cpi ;\n }"}
{"idx": 19979, "target": 0, "func": "static void * Type_ViewingConditions_Dup ( struct _cms_typehandler_struct * self , const void * Ptr , cmsUInt32Number n ) {\n return _cmsDupMem ( self -> ContextID , Ptr , sizeof ( cmsICCViewingConditions ) ) ;\n cmsUNUSED_PARAMETER ( n ) ;\n }"}
{"idx": 19980, "target": 0, "func": "static void add_fetch_request ( struct object * obj ) {\n struct transfer_request * request ;\n check_locks ( ) ;\n if ( remote_dir_exists [ obj -> oid . hash [ 0 ] ] == - 1 ) get_remote_object_list ( obj -> oid . hash [ 0 ] ) ;\n if ( obj -> flags & ( LOCAL | FETCHING ) ) return ;\n obj -> flags |= FETCHING ;\n request = xmalloc ( sizeof ( * request ) ) ;\n request -> obj = obj ;\n request -> url = NULL ;\n request -> lock = NULL ;\n request -> headers = NULL ;\n request -> state = NEED_FETCH ;\n request -> next = request_queue_head ;\n request_queue_head = request ;\n # ifdef USE_CURL_MULTI fill_active_slots ( ) ;\n step_active_slots ( ) ;\n # endif }"}
{"idx": 19981, "target": 0, "func": "static int dissect_h225_OCTET_STRING_SIZE_6 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 6 , 6 , FALSE , NULL ) ;\n return offset ;\n }"}
{"idx": 19982, "target": 0, "func": "mbfl_string * mbfl_convert_encoding ( mbfl_string * string , mbfl_string * result , enum mbfl_no_encoding toenc ) {\n int n ;\n unsigned char * p ;\n const mbfl_encoding * encoding ;\n mbfl_memory_device device ;\n mbfl_convert_filter * filter1 ;\n mbfl_convert_filter * filter2 ;\n encoding = mbfl_no2encoding ( toenc ) ;\n if ( encoding == NULL || string == NULL || result == NULL ) {\n return NULL ;\n }\n filter1 = NULL ;\n filter2 = NULL ;\n if ( mbfl_convert_filter_get_vtbl ( string -> no_encoding , toenc ) != NULL ) {\n filter1 = mbfl_convert_filter_new ( string -> no_encoding , toenc , mbfl_memory_device_output , 0 , & device ) ;\n }\n else {\n filter2 = mbfl_convert_filter_new ( mbfl_no_encoding_wchar , toenc , mbfl_memory_device_output , 0 , & device ) ;\n if ( filter2 != NULL ) {\n filter1 = mbfl_convert_filter_new ( string -> no_encoding , mbfl_no_encoding_wchar , ( int ( * ) ( int , void * ) ) filter2 -> filter_function , NULL , filter2 ) ;\n if ( filter1 == NULL ) {\n mbfl_convert_filter_delete ( filter2 ) ;\n }\n }\n }\n if ( filter1 == NULL ) {\n return NULL ;\n }\n if ( filter2 != NULL ) {\n filter2 -> illegal_mode = MBFL_OUTPUTFILTER_ILLEGAL_MODE_CHAR ;\n filter2 -> illegal_substchar = 0x3f ;\n }\n mbfl_memory_device_init ( & device , string -> len , ( string -> len >> 2 ) + 8 ) ;\n n = string -> len ;\n p = string -> val ;\n if ( p != NULL ) {\n while ( n > 0 ) {\n if ( ( * filter1 -> filter_function ) ( * p ++ , filter1 ) < 0 ) {\n break ;\n }\n n -- ;\n }\n }\n mbfl_convert_filter_flush ( filter1 ) ;\n mbfl_convert_filter_delete ( filter1 ) ;\n if ( filter2 != NULL ) {\n mbfl_convert_filter_flush ( filter2 ) ;\n mbfl_convert_filter_delete ( filter2 ) ;\n }\n return mbfl_memory_device_result ( & device , result ) ;\n }"}
{"idx": 19983, "target": 0, "func": "static int socket_connect ( int fd , const char * address , unsigned short port ) {\n struct addrinfo * ai = make_addrinfo ( address , port ) ;\n int res = - 1 ;\n if ( ai == NULL ) {\n event_debug ( ( \"%s: make_addrinfo: \\\"%s:%d\\\"\" , __func__ , address , port ) ) ;\n return ( - 1 ) ;\n }\n if ( connect ( fd , ai -> ai_addr , ai -> ai_addrlen ) == - 1 ) {\n # ifdef WIN32 int tmp_error = WSAGetLastError ( ) ;\n if ( tmp_error != WSAEWOULDBLOCK && tmp_error != WSAEINVAL && tmp_error != WSAEINPROGRESS ) {\n goto out ;\n }\n # else if ( errno != EINPROGRESS ) {\n goto out ;\n }\n # endif }\n res = 0 ;\n out : # ifdef HAVE_GETADDRINFO freeaddrinfo ( ai ) ;\n # else fake_freeaddrinfo ( ai ) ;\n # endif return ( res ) ;\n }"}
{"idx": 19984, "target": 0, "func": "int gs_setdevice_no_init ( gs_gstate * pgs , gx_device * dev ) {\n if ( pgs -> device != NULL && pgs -> device -> rc . ref_count == 1 && pgs -> device != dev ) {\n int code = gs_closedevice ( pgs -> device ) ;\n if ( code < 0 ) return code ;\n }\n rc_assign ( pgs -> device , dev , \"gs_setdevice_no_init\" ) ;\n gs_gstate_update_device ( pgs , dev ) ;\n return pgs -> overprint ? gs_do_set_overprint ( pgs ) : 0 ;\n }"}
{"idx": 19985, "target": 0, "func": "static void dynstr_realloc_checked ( DYNAMIC_STRING * str , ulong additional_size ) {\n if ( dynstr_realloc ( str , additional_size ) ) die ( EX_MYSQLERR , DYNAMIC_STR_ERROR_MSG ) ;\n }"}
{"idx": 19986, "target": 1, "func": "static int cng_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n AVFrame * frame = data ;\n CNGContext * p = avctx -> priv_data ;\n int buf_size = avpkt -> size ;\n int ret , i ;\n int16_t * buf_out ;\n float e = 1.0 ;\n float scaling ;\n if ( avpkt -> size ) {\n int dbov = - avpkt -> data [ 0 ] ;\n p -> target_energy = 1081109975 * pow ( 10 , dbov / 10.0 ) * 0.75 ;\n memset ( p -> target_refl_coef , 0 , p -> order * sizeof ( * p -> target_refl_coef ) ) ;\n for ( i = 0 ;\n i < FFMIN ( avpkt -> size - 1 , p -> order ) ;\n i ++ ) {\n p -> target_refl_coef [ i ] = ( avpkt -> data [ 1 + i ] - 127 ) / 128.0 ;\n }\n }\n if ( p -> inited ) {\n p -> energy = p -> energy / 2 + p -> target_energy / 2 ;\n for ( i = 0 ;\n i < p -> order ;\n i ++ ) p -> refl_coef [ i ] = 0.6 * p -> refl_coef [ i ] + 0.4 * p -> target_refl_coef [ i ] ;\n }\n else {\n p -> energy = p -> target_energy ;\n memcpy ( p -> refl_coef , p -> target_refl_coef , p -> order * sizeof ( * p -> refl_coef ) ) ;\n p -> inited = 1 ;\n }\n make_lpc_coefs ( p -> lpc_coef , p -> refl_coef , p -> order ) ;\n for ( i = 0 ;\n i < p -> order ;\n i ++ ) e *= 1.0 - p -> refl_coef [ i ] * p -> refl_coef [ i ] ;\n scaling = sqrt ( e * p -> energy / 1081109975 ) ;\n for ( i = 0 ;\n i < avctx -> frame_size ;\n i ++ ) {\n int r = ( av_lfg_get ( & p -> lfg ) & 0xffff ) - 0x8000 ;\n p -> excitation [ i ] = scaling * r ;\n }\n ff_celp_lp_synthesis_filterf ( p -> filter_out + p -> order , p -> lpc_coef , p -> excitation , avctx -> frame_size , p -> order ) ;\n frame -> nb_samples = avctx -> frame_size ;\n if ( ( ret = ff_get_buffer ( avctx , frame ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n buf_out = ( int16_t * ) frame -> data [ 0 ] ;\n for ( i = 0 ;\n i < avctx -> frame_size ;\n i ++ ) buf_out [ i ] = p -> filter_out [ i + p -> order ] ;\n memcpy ( p -> filter_out , p -> filter_out + avctx -> frame_size , p -> order * sizeof ( * p -> filter_out ) ) ;\n * got_frame_ptr = 1 ;\n return buf_size ;\n }"}
{"idx": 19987, "target": 0, "func": "TEST_F ( SSLErrorAssistantTest , DynamicInterstitialListNoCommonName ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n EXPECT_EQ ( 1u , ssl_info ( ) . public_key_hashes . size ( ) ) ;\n auto config_proto = std : : make_unique < chrome_browser_ssl : : SSLErrorAssistantConfig > ( ) ;\n config_proto -> set_version_id ( kLargeVersionId ) ;\n chrome_browser_ssl : : DynamicInterstitial * filter = config_proto -> add_dynamic_interstitial ( ) ;\n filter -> set_interstitial_type ( chrome_browser_ssl : : DynamicInterstitial : : INTERSTITIAL_PAGE_CAPTIVE_PORTAL ) ;\n filter -> set_cert_error ( chrome_browser_ssl : : DynamicInterstitial : : UNKNOWN_CERT_ERROR ) ;\n filter -> add_sha256_hash ( \"sha256ightjar\" ) ;\n filter -> add_sha256_hash ( \"sha256/frogmouth\" ) ;\n filter -> add_sha256_hash ( \"sha256/poorwill\" ) ;\n filter = config_proto -> add_dynamic_interstitial ( ) ;\n filter -> set_interstitial_type ( chrome_browser_ssl : : DynamicInterstitial : : INTERSTITIAL_PAGE_SSL ) ;\n filter -> set_cert_error ( chrome_browser_ssl : : DynamicInterstitial : : ERR_CERT_COMMON_NAME_INVALID ) ;\n filter -> add_sha256_hash ( \"sha256uthatch\" ) ;\n filter -> add_sha256_hash ( ssl_info ( ) . public_key_hashes [ 0 ] . ToString ( ) ) ;\n filter -> add_sha256_hash ( \"sha256/treecreeper\" ) ;\n filter -> set_issuer_common_name_regex ( std : : string ( ) ) ;\n filter -> set_issuer_organization_regex ( issuer_organization_name ( ) ) ;\n filter -> set_mitm_software_name ( \"UwS\" ) ;\n error_assistant ( ) -> SetErrorAssistantProto ( std : : move ( config_proto ) ) ;\n base : : Optional < DynamicInterstitialInfo > dynamic_interstitial = error_assistant ( ) -> MatchDynamicInterstitial ( ssl_info ( ) ) ;\n ASSERT_TRUE ( dynamic_interstitial ) ;\n EXPECT_EQ ( chrome_browser_ssl : : DynamicInterstitial : : INTERSTITIAL_PAGE_SSL , dynamic_interstitial -> interstitial_type ) ;\n }"}
{"idx": 19988, "target": 0, "func": "static int dissect_h245_DataModeApplication ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 523 \"../../asn1/h245/h245.cnf\" gint32 value ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_DataModeApplication , DataModeApplication_choice , & value ) ;\n codec_type = val_to_str ( value , h245_DataModeApplication_vals , \"<unknown>\" ) ;\n return offset ;\n }"}
{"idx": 19989, "target": 0, "func": "static void xhci_check_intr_iso_kick ( XHCIState * xhci , XHCITransfer * xfer , XHCIEPContext * epctx , uint64_t mfindex ) {\n if ( xfer -> mfindex_kick > mfindex ) {\n timer_mod ( epctx -> kick_timer , qemu_clock_get_ns ( QEMU_CLOCK_VIRTUAL ) + ( xfer -> mfindex_kick - mfindex ) * 125000 ) ;\n xfer -> running_retry = 1 ;\n }\n else {\n epctx -> mfindex_last = xfer -> mfindex_kick ;\n timer_del ( epctx -> kick_timer ) ;\n xfer -> running_retry = 0 ;\n }\n }"}
{"idx": 19990, "target": 0, "func": "static void test_fetch_double ( ) {\n int rc ;\n myheader ( \"test_fetch_double\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_bind_fetch\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_bind_fetch(c1 double(5, 2), \" \"c2 double unsigned, c3 double unsigned, \" \"c4 double unsigned, c5 double unsigned, \" \"c6 double unsigned, c7 double unsigned)\" ) ;\n myquery ( rc ) ;\n bind_fetch ( 3 ) ;\n }"}
{"idx": 19991, "target": 0, "func": "static int read_skip ( VP9_COMMON * cm , const MACROBLOCKD * xd , int segment_id , vp9_reader * r ) {\n if ( vp9_segfeature_active ( & cm -> seg , segment_id , SEG_LVL_SKIP ) ) {\n return 1 ;\n }\n else {\n const int ctx = vp9_get_skip_context ( xd ) ;\n const int skip = vp9_read ( r , cm -> fc . skip_probs [ ctx ] ) ;\n if ( ! cm -> frame_parallel_decoding_mode ) ++ cm -> counts . skip [ ctx ] [ skip ] ;\n return skip ;\n }\n }"}
{"idx": 19992, "target": 0, "func": "int qemuMonitorJSONSetCPU ( qemuMonitorPtr mon , int cpu , int online ) {\n int ret ;\n virJSONValuePtr cmd = qemuMonitorJSONMakeCommand ( \"cpu_set\" , \"U:cpu\" , ( unsigned long long ) cpu , \"s:state\" , online ? \"online\" : \"offline\" , NULL ) ;\n virJSONValuePtr reply = NULL ;\n if ( ! cmd ) return - 1 ;\n if ( ( ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ) < 0 ) goto cleanup ;\n if ( qemuMonitorJSONHasError ( reply , \"CommandNotFound\" ) && qemuMonitorCheckHMP ( mon , \"cpu_set\" ) ) {\n VIR_DEBUG ( \"cpu_set command not found, trying HMP\" ) ;\n ret = qemuMonitorTextSetCPU ( mon , cpu , online ) ;\n goto cleanup ;\n }\n if ( ret == 0 ) {\n # if 0 if ( qemuMonitorJSONHasError ( reply , \"DeviceNotActive\" ) || qemuMonitorJSONHasError ( reply , \"KVMMissingCap\" ) ) goto cleanup ;\n # endif ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n if ( ret == 0 ) ret = 1 ;\n }\n cleanup : virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 19993, "target": 0, "func": "void vmport_register ( unsigned char command , VMPortReadFunc * func , void * opaque ) {\n if ( command >= VMPORT_ENTRIES ) return ;\n port_state -> func [ command ] = func ;\n port_state -> opaque [ command ] = opaque ;\n }"}
{"idx": 19994, "target": 0, "func": "hb_blob_t * hb_face_reference_table ( hb_face_t * face , hb_tag_t tag ) {\n return face -> reference_table ( tag ) ;\n }"}
{"idx": 19995, "target": 0, "func": "static void splay_move_to_root ( clump_t * x , gs_ref_memory_t * mem ) {\n clump_t * y , * z ;\n if ( x == NULL ) return ;\n while ( ( y = x -> parent ) != NULL ) {\n if ( ( z = y -> parent ) != NULL ) {\n x -> parent = z -> parent ;\n if ( x -> parent ) {\n if ( x -> parent -> left == z ) x -> parent -> left = x ;\n else x -> parent -> right = x ;\n }\n y -> parent = x ;\n if ( y -> left == x ) {\n if ( z -> left == y ) {\n y -> left = x -> right ;\n if ( y -> left ) y -> left -> parent = y ;\n z -> left = y -> right ;\n if ( z -> left ) z -> left -> parent = z ;\n y -> right = z ;\n z -> parent = y ;\n }\n else {\n z -> right = x -> left ;\n if ( z -> right ) z -> right -> parent = z ;\n y -> left = x -> right ;\n if ( y -> left ) y -> left -> parent = y ;\n x -> left = z ;\n z -> parent = x ;\n }\n x -> right = y ;\n }\n else {\n if ( z -> left == y ) {\n y -> right = x -> left ;\n if ( y -> right ) y -> right -> parent = y ;\n z -> left = x -> right ;\n if ( z -> left ) z -> left -> parent = z ;\n x -> right = z ;\n z -> parent = x ;\n }\n else {\n z -> right = y -> left ;\n if ( z -> right ) z -> right -> parent = z ;\n y -> right = x -> left ;\n if ( y -> right ) y -> right -> parent = y ;\n y -> left = z ;\n z -> parent = y ;\n }\n x -> left = y ;\n }\n }\n else {\n x -> parent = NULL ;\n y -> parent = x ;\n if ( y -> left == x ) {\n y -> left = x -> right ;\n if ( y -> left ) y -> left -> parent = y ;\n x -> right = y ;\n }\n else {\n y -> right = x -> left ;\n if ( y -> right ) y -> right -> parent = y ;\n x -> left = y ;\n }\n }\n }\n mem -> root = x ;\n }"}
{"idx": 19996, "target": 0, "func": "static void pmac_ide_transfer_cb ( void * opaque , int ret ) {\n DBDMA_io * io = opaque ;\n MACIOIDEState * m = io -> opaque ;\n IDEState * s = idebus_active_if ( & m -> bus ) ;\n int n = 0 ;\n int64_t sector_num ;\n int unaligned ;\n if ( ret < 0 ) {\n MACIO_DPRINTF ( \"DMA error\\n\" ) ;\n m -> aiocb = NULL ;\n qemu_sglist_destroy ( & s -> sg ) ;\n ide_dma_error ( s ) ;\n io -> remainder_len = 0 ;\n goto done ;\n }\n if ( -- io -> requests ) {\n return ;\n }\n if ( ! m -> dma_active ) {\n MACIO_DPRINTF ( \"waiting for data (%#x - %#x - %x)\\n\" , s -> nsector , io -> len , s -> status ) ;\n io -> processing = false ;\n return ;\n }\n sector_num = ide_get_sector ( s ) ;\n MACIO_DPRINTF ( \"io_buffer_size = %#x\\n\" , s -> io_buffer_size ) ;\n if ( s -> io_buffer_size > 0 ) {\n m -> aiocb = NULL ;\n qemu_sglist_destroy ( & s -> sg ) ;\n n = ( s -> io_buffer_size + 0x1ff ) >> 9 ;\n sector_num += n ;\n ide_set_sector ( s , sector_num ) ;\n s -> nsector -= n ;\n }\n if ( io -> finish_remain_read ) {\n io -> finish_remain_read = false ;\n cpu_physical_memory_write ( io -> finish_addr , io -> remainder , io -> finish_len ) ;\n }\n MACIO_DPRINTF ( \"remainder: %d io->len: %d nsector: %d \" \"sector_num: %\" PRId64 \"\\n\" , io -> remainder_len , io -> len , s -> nsector , sector_num ) ;\n if ( io -> remainder_len && io -> len ) {\n int remainder_len = MIN ( io -> remainder_len , io -> len ) ;\n uint8_t * p = & io -> remainder [ 0x200 - remainder_len ] ;\n MACIO_DPRINTF ( \"copying remainder %d bytes at %#\" HWADDR_PRIx \"\\n\" , remainder_len , io -> addr ) ;\n switch ( s -> dma_cmd ) {\n case IDE_DMA_READ : cpu_physical_memory_write ( io -> addr , p , remainder_len ) ;\n break ;\n case IDE_DMA_WRITE : cpu_physical_memory_read ( io -> addr , p , remainder_len ) ;\n break ;\n case IDE_DMA_TRIM : break ;\n }\n io -> addr += remainder_len ;\n io -> len -= remainder_len ;\n io -> remainder_len -= remainder_len ;\n if ( s -> dma_cmd == IDE_DMA_WRITE && ! io -> remainder_len ) {\n io -> requests ++ ;\n qemu_iovec_reset ( & io -> iov ) ;\n qemu_iovec_add ( & io -> iov , io -> remainder , 0x200 ) ;\n m -> aiocb = blk_aio_writev ( s -> blk , sector_num - 1 , & io -> iov , 1 , pmac_ide_transfer_cb , io ) ;\n }\n }\n if ( s -> nsector == 0 && ! io -> remainder_len ) {\n MACIO_DPRINTF ( \"end of transfer\\n\" ) ;\n s -> status = READY_STAT | SEEK_STAT ;\n ide_set_irq ( s -> bus ) ;\n m -> dma_active = false ;\n }\n if ( io -> len == 0 ) {\n MACIO_DPRINTF ( \"end of DMA\\n\" ) ;\n goto done ;\n }\n s -> io_buffer_index = 0 ;\n s -> io_buffer_size = MIN ( io -> len , s -> nsector * 512 ) ;\n unaligned = io -> len & 0x1ff ;\n if ( unaligned ) {\n int nsector = io -> len >> 9 ;\n MACIO_DPRINTF ( \"precopying unaligned %d bytes to %#\" HWADDR_PRIx \"\\n\" , unaligned , io -> addr + io -> len - unaligned ) ;\n switch ( s -> dma_cmd ) {\n case IDE_DMA_READ : io -> requests ++ ;\n io -> finish_addr = io -> addr + io -> len - unaligned ;\n io -> finish_len = unaligned ;\n io -> finish_remain_read = true ;\n qemu_iovec_reset ( & io -> iov ) ;\n qemu_iovec_add ( & io -> iov , io -> remainder , 0x200 ) ;\n m -> aiocb = blk_aio_readv ( s -> blk , sector_num + nsector , & io -> iov , 1 , pmac_ide_transfer_cb , io ) ;\n break ;\n case IDE_DMA_WRITE : cpu_physical_memory_read ( io -> addr + io -> len - unaligned , io -> remainder + io -> remainder_len , unaligned ) ;\n break ;\n case IDE_DMA_TRIM : break ;\n }\n }\n MACIO_DPRINTF ( \"io->len = %#x\\n\" , io -> len ) ;\n qemu_sglist_init ( & s -> sg , DEVICE ( m ) , io -> len / MACIO_PAGE_SIZE + 1 , & address_space_memory ) ;\n qemu_sglist_add ( & s -> sg , io -> addr , io -> len ) ;\n io -> addr += io -> len + unaligned ;\n io -> remainder_len = ( 0x200 - unaligned ) & 0x1ff ;\n MACIO_DPRINTF ( \"set remainder to: %d\\n\" , io -> remainder_len ) ;\n if ( ! io -> len ) {\n if ( ! io -> requests ) {\n io -> requests ++ ;\n pmac_ide_transfer_cb ( opaque , ret ) ;\n }\n return ;\n }\n io -> len = 0 ;\n MACIO_DPRINTF ( \"sector_num=%\" PRId64 \" n=%d, nsector=%d, cmd_cmd=%d\\n\" , sector_num , n , s -> nsector , s -> dma_cmd ) ;\n switch ( s -> dma_cmd ) {\n case IDE_DMA_READ : m -> aiocb = dma_blk_read ( s -> blk , & s -> sg , sector_num , pmac_ide_transfer_cb , io ) ;\n break ;\n case IDE_DMA_WRITE : m -> aiocb = dma_blk_write ( s -> blk , & s -> sg , sector_num , pmac_ide_transfer_cb , io ) ;\n break ;\n case IDE_DMA_TRIM : m -> aiocb = dma_blk_io ( s -> blk , & s -> sg , sector_num , ide_issue_trim , pmac_ide_transfer_cb , io , DMA_DIRECTION_TO_DEVICE ) ;\n break ;\n }\n io -> requests ++ ;\n return ;\n done : if ( s -> dma_cmd == IDE_DMA_READ || s -> dma_cmd == IDE_DMA_WRITE ) {\n block_acct_done ( blk_get_stats ( s -> blk ) , & s -> acct ) ;\n }\n io -> dma_end ( io ) ;\n }"}
{"idx": 19997, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PnaclHeaderTest , TestHasPnaclHeader ) {\n RunLoadTest ( \"acl/pnacl_request_header/pnacl_request_header.html\" , 1 , 1 ) ;\n }"}
{"idx": 19998, "target": 0, "func": "static void search_reverse ( void ) {\n struct search_domain * cur , * prev = NULL , * next ;\n cur = global_search_state -> head ;\n while ( cur ) {\n next = cur -> next ;\n cur -> next = prev ;\n prev = cur ;\n cur = next ;\n }\n global_search_state -> head = prev ;\n }"}
{"idx": 19999, "target": 0, "func": "int mbfl_buffer_converter_feed ( mbfl_buffer_converter * convd , mbfl_string * string ) {\n return mbfl_buffer_converter_feed2 ( convd , string , NULL ) ;\n }"}
{"idx": 20000, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( ProfileBrowserTest , DISABLED_CreateNewProfileAsynchronous ) {\n base : : ScopedTempDir temp_dir ;\n ASSERT_TRUE ( temp_dir . CreateUniqueTempDir ( ) ) ;\n MockProfileDelegate delegate ;\n EXPECT_CALL ( delegate , OnProfileCreated ( testing : : NotNull ( ) , true , true ) ) ;\n {\n content : : WindowedNotificationObserver observer ( chrome : : NOTIFICATION_PROFILE_CREATED , content : : NotificationService : : AllSources ( ) ) ;\n std : : unique_ptr < Profile > profile ( CreateProfile ( temp_dir . path ( ) , & delegate , Profile : : CREATE_MODE_ASYNCHRONOUS ) ) ;\n observer . Wait ( ) ;\n CheckChromeVersion ( profile . get ( ) , true ) ;\n }\n FlushIoTaskRunnerAndSpinThreads ( ) ;\n }"}
{"idx": 20001, "target": 1, "func": "static int mpeg4_decode_partition_b ( MpegEncContext * s , int mb_count ) {\n int mb_num = 0 ;\n static const int8_t quant_tab [ 4 ] = {\n - 1 , - 2 , 1 , 2 }\n ;\n s -> mb_x = s -> resync_mb_x ;\n s -> first_slice_line = 1 ;\n for ( s -> mb_y = s -> resync_mb_y ;\n mb_num < mb_count ;\n s -> mb_y ++ ) {\n ff_init_block_index ( s ) ;\n for ( ;\n mb_num < mb_count && s -> mb_x < s -> mb_width ;\n s -> mb_x ++ ) {\n const int xy = s -> mb_x + s -> mb_y * s -> mb_stride ;\n mb_num ++ ;\n ff_update_block_index ( s ) ;\n if ( s -> mb_x == s -> resync_mb_x && s -> mb_y == s -> resync_mb_y + 1 ) s -> first_slice_line = 0 ;\n if ( s -> pict_type == AV_PICTURE_TYPE_I ) {\n int ac_pred = get_bits1 ( & s -> gb ) ;\n int cbpy = get_vlc2 ( & s -> gb , ff_h263_cbpy_vlc . table , CBPY_VLC_BITS , 1 ) ;\n if ( cbpy < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"cbpy corrupted at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n s -> cbp_table [ xy ] |= cbpy << 2 ;\n s -> current_picture . f . mb_type [ xy ] |= ac_pred * MB_TYPE_ACPRED ;\n }\n else {\n if ( IS_INTRA ( s -> current_picture . f . mb_type [ xy ] ) ) {\n int dir = 0 , i ;\n int ac_pred = get_bits1 ( & s -> gb ) ;\n int cbpy = get_vlc2 ( & s -> gb , ff_h263_cbpy_vlc . table , CBPY_VLC_BITS , 1 ) ;\n if ( cbpy < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"I cbpy corrupted at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n if ( s -> cbp_table [ xy ] & 8 ) {\n ff_set_qscale ( s , s -> qscale + quant_tab [ get_bits ( & s -> gb , 2 ) ] ) ;\n }\n s -> current_picture . f . qscale_table [ xy ] = s -> qscale ;\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n int dc_pred_dir ;\n int dc = mpeg4_decode_dc ( s , i , & dc_pred_dir ) ;\n if ( dc < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"DC corrupted at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n dir <<= 1 ;\n if ( dc_pred_dir ) dir |= 1 ;\n }\n s -> cbp_table [ xy ] &= 3 ;\n s -> cbp_table [ xy ] |= cbpy << 2 ;\n s -> current_picture . f . mb_type [ xy ] |= ac_pred * MB_TYPE_ACPRED ;\n s -> pred_dir_table [ xy ] = dir ;\n }\n else if ( IS_SKIP ( s -> current_picture . f . mb_type [ xy ] ) ) {\n s -> current_picture . f . qscale_table [ xy ] = s -> qscale ;\n s -> cbp_table [ xy ] = 0 ;\n }\n else {\n int cbpy = get_vlc2 ( & s -> gb , ff_h263_cbpy_vlc . table , CBPY_VLC_BITS , 1 ) ;\n if ( cbpy < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"P cbpy corrupted at %d %d\\n\" , s -> mb_x , s -> mb_y ) ;\n return - 1 ;\n }\n if ( s -> cbp_table [ xy ] & 8 ) {\n ff_set_qscale ( s , s -> qscale + quant_tab [ get_bits ( & s -> gb , 2 ) ] ) ;\n }\n s -> current_picture . f . qscale_table [ xy ] = s -> qscale ;\n s -> cbp_table [ xy ] &= 3 ;\n s -> cbp_table [ xy ] |= ( cbpy ^ 0xf ) << 2 ;\n }\n }\n }\n if ( mb_num >= mb_count ) return 0 ;\n s -> mb_x = 0 ;\n }\n return 0 ;\n }"}
{"idx": 20002, "target": 0, "func": "static gboolean gst_asf_demux_get_bytes ( guint8 * * p_buf , guint num_bytes_to_read , guint8 * * p_data , guint64 * p_size ) {\n * p_buf = NULL ;\n if ( * p_size < num_bytes_to_read ) return FALSE ;\n * p_buf = g_memdup ( * p_data , num_bytes_to_read ) ;\n * p_data += num_bytes_to_read ;\n * p_size -= num_bytes_to_read ;\n return TRUE ;\n }"}
{"idx": 20003, "target": 1, "func": "static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING ) ;\n # ifdef _MSC_VER # pragma warning ( push ) # pragma warning ( disable : 4090 ) # endif DEFINE_LHASH_OF ( OPENSSL_CSTRING )"}
{"idx": 20004, "target": 0, "func": "static void dissect_rsvp_admin_status ( proto_tree * ti , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int type ) {\n int offset2 = offset + 4 ;\n guint32 status ;\n static const int * status_flags [ ] = {\n & hf_rsvp_filter [ RSVPF_ADMIN_STATUS_REFLECT ] , & hf_rsvp_filter [ RSVPF_ADMIN_STATUS_HANDOVER ] , & hf_rsvp_filter [ RSVPF_ADMIN_STATUS_LOCKOUT ] , & hf_rsvp_filter [ RSVPF_ADMIN_STATUS_INHIBIT ] , & hf_rsvp_filter [ RSVPF_ADMIN_STATUS_CALL_MGMT ] , & hf_rsvp_filter [ RSVPF_ADMIN_STATUS_TESTING ] , & hf_rsvp_filter [ RSVPF_ADMIN_STATUS_DOWN ] , & hf_rsvp_filter [ RSVPF_ADMIN_STATUS_DELETE ] , NULL }\n ;\n proto_item_set_text ( ti , \"ADMIN STATUS: \" ) ;\n switch ( type ) {\n case 1 : proto_tree_add_uint ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type ) ;\n status = tvb_get_ntohl ( tvb , offset2 ) ;\n proto_tree_add_bitmask ( rsvp_object_tree , tvb , offset2 , hf_rsvp_admin_status_bits , TREE ( TT_ADMIN_STATUS_FLAGS ) , status_flags , ENC_BIG_ENDIAN ) ;\n proto_item_set_text ( ti , \"ADMIN-STATUS: %s%s%s%s%s%s%s%s\" , ( status & ( 1U << 31 ) ) ? \"Reflect \" : \"\" , ( status & ( 1U << 6 ) ) ? \"Handover \" : \"\" , ( status & ( 1U << 5 ) ) ? \"Lockout \" : \"\" , ( status & ( 1U << 4 ) ) ? \"Inhibit \" : \"\" , ( status & ( 1U << 3 ) ) ? \"Call \" : \"\" , ( status & ( 1U << 2 ) ) ? \"Testing \" : \"\" , ( status & ( 1U << 1 ) ) ? \"Admin-Down \" : \"\" , ( status & ( 1U << 0 ) ) ? \"Deleting \" : \"\" ) ;\n break ;\n default : proto_tree_add_uint_format_value ( rsvp_object_tree , hf_rsvp_ctype , tvb , offset + 3 , 1 , type , \"Unknown (%u)\" , type ) ;\n proto_tree_add_item ( rsvp_object_tree , hf_rsvp_admin_status_data , tvb , offset2 , obj_length - 4 , ENC_NA ) ;\n break ;\n }\n }"}
{"idx": 20005, "target": 0, "func": "static void test_simplewrite ( void ) {\n struct event ev ;\n setup_test ( \"Simple write: \" ) ;\n event_set ( & ev , pair [ 0 ] , EV_WRITE , simple_write_cb , & ev ) ;\n if ( event_add ( & ev , NULL ) == - 1 ) exit ( 1 ) ;\n event_dispatch ( ) ;\n cleanup_test ( ) ;\n }"}
{"idx": 20006, "target": 0, "func": "bool RegisterPolicyAuditor ( JNIEnv * env ) {\n return RegisterNativesImpl ( env ) ;\n }"}
{"idx": 20007, "target": 0, "func": "WRITE_CLASS_ENCODER ( ExpiringCryptoKey ) static inline ostream & operator << ( ostream & out , const ExpiringCryptoKey & c ) {\n return out << c . key << \" expires \" << c . expiration ;\n }"}
{"idx": 20008, "target": 0, "func": "TEST_F ( BrowsingDataRemoverImplTest , MultipleTasksInQuickSuccession ) {\n BrowsingDataRemoverImpl * remover = static_cast < BrowsingDataRemoverImpl * > ( BrowsingDataRemoverFactory : : GetForBrowserContext ( GetBrowserContext ( ) ) ) ;\n EXPECT_FALSE ( remover -> is_removing ( ) ) ;\n int test_removal_masks [ ] = {\n BrowsingDataRemover : : REMOVE_COOKIES , BrowsingDataRemover : : REMOVE_PASSWORDS , BrowsingDataRemover : : REMOVE_COOKIES , BrowsingDataRemover : : REMOVE_COOKIES , BrowsingDataRemover : : REMOVE_COOKIES , BrowsingDataRemover : : REMOVE_HISTORY , BrowsingDataRemover : : REMOVE_HISTORY , BrowsingDataRemover : : REMOVE_HISTORY , BrowsingDataRemover : : REMOVE_COOKIES | BrowsingDataRemover : : REMOVE_HISTORY , BrowsingDataRemover : : REMOVE_COOKIES | BrowsingDataRemover : : REMOVE_HISTORY , BrowsingDataRemover : : REMOVE_COOKIES | BrowsingDataRemover : : REMOVE_HISTORY | BrowsingDataRemover : : REMOVE_PASSWORDS , BrowsingDataRemover : : REMOVE_PASSWORDS , BrowsingDataRemover : : REMOVE_PASSWORDS , }\n ;\n for ( int removal_mask : test_removal_masks ) {\n remover -> Remove ( base : : Time ( ) , base : : Time : : Max ( ) , removal_mask , BrowsingDataHelper : : UNPROTECTED_WEB ) ;\n }\n EXPECT_TRUE ( remover -> is_removing ( ) ) ;\n BlockUntilBrowsingDataRemoved ( base : : Time ( ) , base : : Time : : Max ( ) , BrowsingDataRemover : : REMOVE_COOKIES , BrowsingDataHelper : : UNPROTECTED_WEB ) ;\n EXPECT_FALSE ( remover -> is_removing ( ) ) ;\n }"}
{"idx": 20009, "target": 1, "func": "static int restore_toc_entry ( ArchiveHandle * AH , TocEntry * te , bool is_parallel ) {\n RestoreOptions * ropt = AH -> public . ropt ;\n int status = WORKER_OK ;\n teReqs reqs ;\n bool defnDumped ;\n AH -> currentTE = te ;\n if ( _tocEntryIsACL ( te ) ) reqs = 0 ;\n else reqs = te -> reqs ;\n if ( ! ropt -> createDB && strcmp ( te -> desc , \"DATABASE\" ) == 0 ) reqs = 0 ;\n if ( ! ropt -> suppressDumpWarnings && strcmp ( te -> desc , \"WARNING\" ) == 0 ) {\n if ( ! ropt -> dataOnly && te -> defn != NULL && strlen ( te -> defn ) != 0 ) write_msg ( modulename , \"warning from original dump file: %s\\n\" , te -> defn ) ;\n else if ( te -> copyStmt != NULL && strlen ( te -> copyStmt ) != 0 ) write_msg ( modulename , \"warning from original dump file: %s\\n\" , te -> copyStmt ) ;\n }\n defnDumped = false ;\n if ( ( reqs & REQ_SCHEMA ) != 0 ) {\n if ( te -> namespace ) ahlog ( AH , 1 , \"creating %s \\\"%s.%s\\\"\\n\" , te -> desc , te -> namespace , te -> tag ) ;\n else ahlog ( AH , 1 , \"creating %s \\\"%s\\\"\\n\" , te -> desc , te -> tag ) ;\n _printTocEntry ( AH , te , false , false ) ;\n defnDumped = true ;\n if ( strcmp ( te -> desc , \"TABLE\" ) == 0 ) {\n if ( AH -> lastErrorTE == te ) {\n if ( ropt -> noDataForFailedTables ) {\n if ( is_parallel ) status = WORKER_INHIBIT_DATA ;\n else inhibit_data_for_failed_table ( AH , te ) ;\n }\n }\n else {\n if ( is_parallel ) status = WORKER_CREATE_DONE ;\n else mark_create_done ( AH , te ) ;\n }\n }\n if ( strcmp ( te -> desc , \"DATABASE\" ) == 0 ) {\n ahlog ( AH , 1 , \"connecting to new database \\\"%s\\\"\\n\" , te -> tag ) ;\n _reconnectToDB ( AH , te -> tag ) ;\n ropt -> dbname = pg_strdup ( te -> tag ) ;\n }\n }\n if ( ( reqs & REQ_DATA ) != 0 ) {\n if ( te -> hadDumper ) {\n if ( AH -> PrintTocDataPtr != NULL ) {\n _printTocEntry ( AH , te , true , false ) ;\n if ( strcmp ( te -> desc , \"BLOBS\" ) == 0 || strcmp ( te -> desc , \"BLOB COMMENTS\" ) == 0 ) {\n ahlog ( AH , 1 , \"processing %s\\n\" , te -> desc ) ;\n _selectOutputSchema ( AH , \"pg_catalog\" ) ;\n if ( strcmp ( te -> desc , \"BLOB COMMENTS\" ) == 0 ) AH -> outputKind = OUTPUT_OTHERDATA ;\n ( * AH -> PrintTocDataPtr ) ( AH , te ) ;\n AH -> outputKind = OUTPUT_SQLCMDS ;\n }\n else {\n _disableTriggersIfNecessary ( AH , te ) ;\n _becomeOwner ( AH , te ) ;\n _selectOutputSchema ( AH , te -> namespace ) ;\n ahlog ( AH , 1 , \"processing data for table \\\"%s.%s\\\"\\n\" , te -> namespace , te -> tag ) ;\n if ( is_parallel && te -> created ) {\n StartTransaction ( & AH -> public ) ;\n ahprintf ( AH , \"TRUNCATE TABLE %s%s;\n\\n\\n\" , ( PQserverVersion ( AH -> connection ) >= 80400 ? \"ONLY \" : \"\" ) , fmtId ( te -> tag ) ) ;\n }\n if ( te -> copyStmt && strlen ( te -> copyStmt ) > 0 ) {\n ahprintf ( AH , \"%s\" , te -> copyStmt ) ;\n AH -> outputKind = OUTPUT_COPYDATA ;\n }\n else AH -> outputKind = OUTPUT_OTHERDATA ;\n ( * AH -> PrintTocDataPtr ) ( AH , te ) ;\n if ( AH -> outputKind == OUTPUT_COPYDATA && RestoringToDB ( AH ) ) EndDBCopyMode ( & AH -> public , te -> tag ) ;\n AH -> outputKind = OUTPUT_SQLCMDS ;\n if ( is_parallel && te -> created ) CommitTransaction ( & AH -> public ) ;\n _enableTriggersIfNecessary ( AH , te ) ;\n }\n }\n }\n else if ( ! defnDumped ) {\n ahlog ( AH , 1 , \"executing %s %s\\n\" , te -> desc , te -> tag ) ;\n _printTocEntry ( AH , te , false , false ) ;\n }\n }\n if ( AH -> public . n_errors > 0 && status == WORKER_OK ) status = WORKER_IGNORED_ERRORS ;\n return status ;\n }"}
{"idx": 20010, "target": 0, "func": "static int parse_CSortAggregSet ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree , const char * fmt , ... ) {\n guint32 cCount , i ;\n proto_item * item ;\n proto_tree * tree ;\n const char * txt ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CSortAggregSet , & item , txt ) ;\n cCount = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_uint ( tree , hf_mswsp_csortaggregset_count , tvb , offset , 4 , cCount ) ;\n offset += 4 ;\n for ( i = 0 ;\n i < cCount ;\n i ++ ) {\n offset = parse_CAggregSortKey ( tvb , offset , tree , pad_tree , \"SortKeys[%u]\" , i ) ;\n }\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 20011, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( MessageCenterNotificationsTest , UpdateNonProgressNotificationWhenCenterVisible ) {\n # if defined ( OS_WIN ) && defined ( USE_ASH ) if ( base : : CommandLine : : ForCurrentProcess ( ) -> HasSwitch ( switches : : kAshBrowserTests ) ) return ;\n # endif TestAddObserver observer ( message_center ( ) ) ;\n TestDelegate * delegate ;\n Notification notification = CreateTestNotification ( \"n\" , & delegate ) ;\n manager ( ) -> Add ( notification , profile ( ) ) ;\n const std : : string notification_id = manager ( ) -> GetMessageCenterNotificationIdForTest ( \"n\" , profile ( ) ) ;\n message_center ( ) -> ClickOnNotification ( notification_id ) ;\n message_center ( ) -> SetVisibility ( message_center : : VISIBILITY_MESSAGE_CENTER ) ;\n observer . reset_logs ( ) ;\n notification . set_title ( base : : ASCIIToUTF16 ( \"title2\" ) ) ;\n manager ( ) -> Update ( notification , profile ( ) ) ;\n EXPECT_EQ ( \"\" , observer . log ( notification_id ) ) ;\n message_center ( ) -> SetVisibility ( message_center : : VISIBILITY_TRANSIENT ) ;\n EXPECT_EQ ( base : : StringPrintf ( \"update-%s\" , notification_id . c_str ( ) ) , observer . log ( notification_id ) ) ;\n delegate -> Release ( ) ;\n }"}
{"idx": 20012, "target": 0, "func": "static Query * substitute_actual_srf_parameters ( Query * expr , int nargs , List * args ) {\n substitute_actual_srf_parameters_context context ;\n context . nargs = nargs ;\n context . args = args ;\n context . sublevels_up = 1 ;\n return query_tree_mutator ( expr , substitute_actual_srf_parameters_mutator , & context , 0 ) ;\n }"}
{"idx": 20013, "target": 0, "func": "const char * TSRedirectUrlGet ( TSHttpTxn txnp , int * url_len_ptr ) {\n return TSHttpTxnRedirectUrlGet ( txnp , url_len_ptr ) ;\n }"}
{"idx": 20014, "target": 0, "func": "static void signal_cb ( int fd , short event , void * arg ) {\n struct event * ev = arg ;\n signal_del ( ev ) ;\n test_ok = 1 ;\n }"}
{"idx": 20015, "target": 0, "func": "static void pdo_stmt_iter_move_forwards ( zend_object_iterator * iter TSRMLS_DC ) {\n struct php_pdo_iterator * I = ( struct php_pdo_iterator * ) iter -> data ;\n if ( I -> fetch_ahead ) {\n zval_ptr_dtor ( & I -> fetch_ahead ) ;\n I -> fetch_ahead = NULL ;\n }\n MAKE_STD_ZVAL ( I -> fetch_ahead ) ;\n if ( ! do_fetch ( I -> stmt , TRUE , I -> fetch_ahead , PDO_FETCH_USE_DEFAULT , PDO_FETCH_ORI_NEXT , 0 , 0 TSRMLS_CC ) ) {\n pdo_stmt_t * stmt = I -> stmt ;\n PDO_HANDLE_STMT_ERR ( ) ;\n I -> key = ( ulong ) - 1 ;\n FREE_ZVAL ( I -> fetch_ahead ) ;\n I -> fetch_ahead = NULL ;\n return ;\n }\n I -> key ++ ;\n }"}
{"idx": 20016, "target": 0, "func": "int checksum_block ( const char * s , int len ) {\n int sum = 0 ;\n while ( len -- ) {\n sum ^= * s ++ ;\n }\n return sum ;\n }"}
{"idx": 20017, "target": 0, "func": "static void selinux_inode_invalidate_secctx ( struct inode * inode ) {\n struct inode_security_struct * isec = inode -> i_security ;\n spin_lock ( & isec -> lock ) ;\n isec -> initialized = LABEL_INVALID ;\n spin_unlock ( & isec -> lock ) ;\n }"}
{"idx": 20018, "target": 0, "func": "static void create_new_objects ( void ) {\n int dbnum ;\n prep_status ( \"Restoring database schemas in the new cluster\\n\" ) ;\n for ( dbnum = 0 ;\n dbnum < old_cluster . dbarr . ndbs ;\n dbnum ++ ) {\n char sql_file_name [ MAXPGPATH ] , log_file_name [ MAXPGPATH ] ;\n DbInfo * old_db = & old_cluster . dbarr . dbs [ dbnum ] ;\n PQExpBufferData connstr , escaped_connstr ;\n initPQExpBuffer ( & connstr ) ;\n appendPQExpBuffer ( & connstr , \"dbname=\" ) ;\n appendConnStrVal ( & connstr , old_db -> db_name ) ;\n initPQExpBuffer ( & escaped_connstr ) ;\n appendShellString ( & escaped_connstr , connstr . data ) ;\n termPQExpBuffer ( & connstr ) ;\n pg_log ( PG_STATUS , \"%s\" , old_db -> db_name ) ;\n snprintf ( sql_file_name , sizeof ( sql_file_name ) , DB_DUMP_FILE_MASK , old_db -> db_oid ) ;\n snprintf ( log_file_name , sizeof ( log_file_name ) , DB_DUMP_LOG_FILE_MASK , old_db -> db_oid ) ;\n parallel_exec_prog ( log_file_name , NULL , \"\\\"%s/pg_restore\\\" %s --exit-on-error --verbose --dbname %s \\\"%s\\\"\" , new_cluster . bindir , cluster_conn_opts ( & new_cluster ) , escaped_connstr . data , sql_file_name ) ;\n termPQExpBuffer ( & escaped_connstr ) ;\n }\n while ( reap_child ( true ) == true ) ;\n end_progress_output ( ) ;\n check_ok ( ) ;\n if ( GET_MAJOR_VERSION ( old_cluster . major_version ) < 903 ) set_frozenxids ( true ) ;\n get_db_and_rel_infos ( & new_cluster ) ;\n }"}
{"idx": 20019, "target": 0, "func": "static void pfkey_dump_sp_done ( struct pfkey_sock * pfk ) {\n xfrm_policy_walk_done ( & pfk -> dump . u . policy ) ;\n }"}
{"idx": 20020, "target": 0, "func": "static UBool isInOffsetWindowOrDirect ( uint32_t offset , uint32_t c ) {\n return ( UBool ) ( c <= offset + 0x7f && ( c >= offset || ( c <= 0x7f && ( c >= 0x20 || ( 1UL << c ) & 0x2601 ) ) ) ) ;\n }"}
{"idx": 20021, "target": 0, "func": "void EndVideoDec ( decoder_t * p_dec ) {\n decoder_sys_t * p_sys = p_dec -> p_sys ;\n post_mt ( p_sys ) ;\n if ( p_sys -> p_context -> codec ) avcodec_flush_buffers ( p_sys -> p_context ) ;\n wait_mt ( p_sys ) ;\n if ( p_sys -> p_ff_pic ) avcodec_free_frame ( & p_sys -> p_ff_pic ) ;\n if ( p_sys -> p_va ) vlc_va_Delete ( p_sys -> p_va ) ;\n vlc_sem_destroy ( & p_sys -> sem_mt ) ;\n }"}
{"idx": 20022, "target": 0, "func": "static void write_sync_code ( struct vp9_write_bit_buffer * wb ) {\n vp9_wb_write_literal ( wb , VP9_SYNC_CODE_0 , 8 ) ;\n vp9_wb_write_literal ( wb , VP9_SYNC_CODE_1 , 8 ) ;\n vp9_wb_write_literal ( wb , VP9_SYNC_CODE_2 , 8 ) ;\n }"}
{"idx": 20023, "target": 0, "func": "static UChar GetUniFromLMBCSUni ( char const * * ppLMBCSin ) {\n uint8_t HighCh = * ( * ppLMBCSin ) ++ ;\n uint8_t LowCh = * ( * ppLMBCSin ) ++ ;\n if ( HighCh == ULMBCS_UNICOMPATZERO ) {\n HighCh = LowCh ;\n LowCh = 0 ;\n }\n return ( UChar ) ( ( HighCh << 8 ) | LowCh ) ;\n }"}
{"idx": 20024, "target": 0, "func": "static int cert_retrieve_fn ( gnutls_session_t session , const gnutls_datum_t * req_ca_rdn __attribute__ ( ( unused ) ) , int nreqs __attribute__ ( ( unused ) ) , const gnutls_pk_algorithm_t * pk_algos __attribute__ ( ( unused ) ) , int pk_algos_length __attribute__ ( ( unused ) ) , gnutls_retr2_st * ret ) {\n _gnutls_log ( debug_log_fp , \"%s: %d\\n\" , __func__ , __LINE__ ) ;\n mgs_handle_t * ctxt ;\n if ( session == NULL ) {\n ret -> ncerts = 0 ;\n ret -> deinit_all = 1 ;\n return - 1 ;\n }\n ctxt = gnutls_transport_get_ptr ( session ) ;\n if ( gnutls_certificate_type_get ( session ) == GNUTLS_CRT_X509 ) {\n ret -> cert_type = GNUTLS_CRT_X509 ;\n ret -> key_type = GNUTLS_PRIVKEY_X509 ;\n ret -> ncerts = ctxt -> sc -> certs_x509_chain_num ;\n ret -> deinit_all = 0 ;\n ret -> cert . x509 = ctxt -> sc -> certs_x509_chain ;\n ret -> key . x509 = ctxt -> sc -> privkey_x509 ;\n return 0 ;\n }\n else if ( gnutls_certificate_type_get ( session ) == GNUTLS_CRT_OPENPGP ) {\n ret -> cert_type = GNUTLS_CRT_OPENPGP ;\n ret -> key_type = GNUTLS_PRIVKEY_OPENPGP ;\n ret -> ncerts = 1 ;\n ret -> deinit_all = 0 ;\n ret -> cert . pgp = ctxt -> sc -> cert_pgp ;\n ret -> key . pgp = ctxt -> sc -> privkey_pgp ;\n return 0 ;\n }\n else {\n ret -> ncerts = 0 ;\n ret -> deinit_all = 1 ;\n return - 1 ;\n }\n }"}
{"idx": 20025, "target": 0, "func": "static void check_src_altref ( VP9_COMP * cpi , const struct lookahead_entry * source ) {\n RATE_CONTROL * const rc = & cpi -> rc ;\n if ( cpi -> oxcf . pass == 2 ) {\n const GF_GROUP * const gf_group = & cpi -> twopass . gf_group ;\n rc -> is_src_frame_alt_ref = ( gf_group -> update_type [ gf_group -> index ] == OVERLAY_UPDATE ) ;\n }\n else {\n rc -> is_src_frame_alt_ref = cpi -> alt_ref_source && ( source == cpi -> alt_ref_source ) ;\n }\n if ( rc -> is_src_frame_alt_ref ) {\n cpi -> alt_ref_source = NULL ;\n cpi -> refresh_last_frame = 0 ;\n }\n }"}
{"idx": 20026, "target": 0, "func": "static int rtp_packetize_h264 ( sout_stream_id_sys_t * id , block_t * in ) {\n const uint8_t * p_buffer = in -> p_buffer ;\n int i_buffer = in -> i_buffer ;\n while ( i_buffer > 4 && ( p_buffer [ 0 ] != 0 || p_buffer [ 1 ] != 0 || p_buffer [ 2 ] != 1 ) ) {\n i_buffer -- ;\n p_buffer ++ ;\n }\n while ( i_buffer > 4 ) {\n int i_offset ;\n int i_size = i_buffer ;\n int i_skip = i_buffer ;\n for ( i_offset = 4 ;\n i_offset + 2 < i_buffer ;\n i_offset ++ ) {\n if ( p_buffer [ i_offset ] == 0 && p_buffer [ i_offset + 1 ] == 0 && p_buffer [ i_offset + 2 ] == 1 ) {\n i_size = i_offset - ( p_buffer [ i_offset - 1 ] == 0 ? 1 : 0 ) ;\n i_skip = i_offset ;\n break ;\n }\n }\n rtp_packetize_h264_nal ( id , p_buffer , i_size , ( in -> i_pts > VLC_TS_INVALID ? in -> i_pts : in -> i_dts ) , in -> i_dts , ( i_size >= i_buffer ) , in -> i_length * i_size / in -> i_buffer ) ;\n i_buffer -= i_skip ;\n p_buffer += i_skip ;\n }\n block_Release ( in ) ;\n return VLC_SUCCESS ;\n }"}
{"idx": 20027, "target": 1, "func": "static void txfm_rd_in_plane ( MACROBLOCK * x , int * rate , int64_t * distortion , int * skippable , int64_t * sse , int64_t ref_best_rd , int plane , BLOCK_SIZE bsize , TX_SIZE tx_size , int use_fast_coef_casting ) {\n MACROBLOCKD * const xd = & x -> e_mbd ;\n const struct macroblockd_plane * const pd = & xd -> plane [ plane ] ;\n struct rdcost_block_args args ;\n vp9_zero ( args ) ;\n args . x = x ;\n args . best_rd = ref_best_rd ;\n args . use_fast_coef_costing = use_fast_coef_casting ;\n if ( plane == 0 ) xd -> mi [ 0 ] -> mbmi . tx_size = tx_size ;\n vp9_get_entropy_contexts ( bsize , tx_size , pd , args . t_above , args . t_left ) ;\n args . so = get_scan ( xd , tx_size , pd -> plane_type , 0 ) ;\n vp9_foreach_transformed_block_in_plane ( xd , bsize , plane , block_rd_txfm , & args ) ;\n if ( args . skip ) {\n * rate = INT_MAX ;\n * distortion = INT64_MAX ;\n * sse = INT64_MAX ;\n * skippable = 0 ;\n }\n else {\n * distortion = args . this_dist ;\n * rate = args . this_rate ;\n * sse = args . this_sse ;\n * skippable = vp9_is_skippable_in_plane ( x , bsize , plane ) ;\n }\n }"}
{"idx": 20028, "target": 0, "func": "static VALUE decode_bstr ( unsigned char * der , long length , long * unused_bits ) {\n ASN1_BIT_STRING * bstr ;\n const unsigned char * p ;\n long len ;\n VALUE ret ;\n p = der ;\n if ( ! ( bstr = d2i_ASN1_BIT_STRING ( NULL , & p , length ) ) ) ossl_raise ( eASN1Error , NULL ) ;\n len = bstr -> length ;\n * unused_bits = 0 ;\n if ( bstr -> flags & ASN1_STRING_FLAG_BITS_LEFT ) * unused_bits = bstr -> flags & 0x07 ;\n ret = rb_str_new ( ( const char * ) bstr -> data , len ) ;\n ASN1_BIT_STRING_free ( bstr ) ;\n return ret ;\n }"}
{"idx": 20029, "target": 0, "func": "TEST_F ( HistoryQuickProviderTest , DaysAgoMatches ) {\n std : : vector < std : : string > expected_urls ;\n expected_urls . push_back ( \"http://daysagoest.com/y/a\" ) ;\n expected_urls . push_back ( \"http://daysagoest.com/y/b\" ) ;\n expected_urls . push_back ( \"http://daysagoest.com/x/c\" ) ;\n RunTest ( ASCIIToUTF16 ( \"daysagoest\" ) , false , expected_urls , true , ASCIIToUTF16 ( \"daysagoest.com/y/a\" ) , ASCIIToUTF16 ( \".com/y/a\" ) ) ;\n }"}
{"idx": 20030, "target": 0, "func": "static Asn1Generic * DecodeAsn1DerOid ( const unsigned char * buffer , uint32_t max_size , uint8_t depth , uint32_t * errcode ) {\n const unsigned char * d_ptr = buffer ;\n uint32_t oid_length , oid_value ;\n uint8_t numbytes , c ;\n Asn1Generic * a ;\n uint32_t i ;\n d_ptr ++ ;\n c = d_ptr [ 0 ] ;\n if ( ( c & ( 1 << 7 ) ) >> 7 == 0 ) {\n oid_length = c ;\n d_ptr ++ ;\n }\n else {\n numbytes = c & 0x7f ;\n d_ptr ++ ;\n if ( DecodeAsn1BuildValue ( & d_ptr , & oid_length , numbytes , errcode ) == - 1 ) {\n return NULL ;\n }\n }\n if ( oid_length > max_size ) return NULL ;\n a = Asn1GenericNew ( ) ;\n if ( a == NULL ) return NULL ;\n a -> type = ASN1_OID ;\n a -> str = SCMalloc ( MAX_OID_LENGTH ) ;\n if ( a -> str == NULL ) {\n SCFree ( a ) ;\n return NULL ;\n }\n snprintf ( a -> str , MAX_OID_LENGTH , \"%d.%d\" , ( d_ptr [ 0 ] / 40 ) , ( d_ptr [ 0 ] % 40 ) ) ;\n d_ptr ++ ;\n for ( i = 1 ;\n i < oid_length ;\n ) {\n int s = strlen ( a -> str ) ;\n c = d_ptr [ 0 ] ;\n oid_value = 0 ;\n while ( i < oid_length && ( c & ( 1 << 7 ) ) == 1 << 7 ) {\n oid_value = oid_value << 7 | ( c & ~ ( 1 << 7 ) ) ;\n d_ptr ++ ;\n c = d_ptr [ 0 ] ;\n i ++ ;\n }\n oid_value = oid_value << 7 | c ;\n d_ptr ++ ;\n i ++ ;\n snprintf ( a -> str + s , MAX_OID_LENGTH - s , \".%d\" , oid_value ) ;\n }\n a -> length = ( d_ptr - buffer ) ;\n return a ;\n }"}
{"idx": 20031, "target": 0, "func": "static int qio_channel_websock_decode_header ( QIOChannelWebsock * ioc , Error * * errp ) {\n unsigned char opcode , fin , has_mask ;\n size_t header_size ;\n size_t payload_len ;\n QIOChannelWebsockHeader * header = ( QIOChannelWebsockHeader * ) ioc -> encinput . buffer ;\n if ( ioc -> payload_remain ) {\n error_setg ( errp , \"Decoding header but %zu bytes of payload remain\" , ioc -> payload_remain ) ;\n qio_channel_websock_write_close ( ioc , QIO_CHANNEL_WEBSOCK_STATUS_SERVER_ERR , \"internal server error\" ) ;\n return - 1 ;\n }\n if ( ioc -> encinput . offset < QIO_CHANNEL_WEBSOCK_HEADER_LEN_7_BIT ) {\n return QIO_CHANNEL_ERR_BLOCK ;\n }\n fin = header -> b0 & QIO_CHANNEL_WEBSOCK_HEADER_FIELD_FIN ;\n opcode = header -> b0 & QIO_CHANNEL_WEBSOCK_HEADER_FIELD_OPCODE ;\n has_mask = header -> b1 & QIO_CHANNEL_WEBSOCK_HEADER_FIELD_HAS_MASK ;\n payload_len = header -> b1 & QIO_CHANNEL_WEBSOCK_HEADER_FIELD_PAYLOAD_LEN ;\n if ( opcode ) {\n ioc -> opcode = opcode ;\n }\n else {\n opcode = ioc -> opcode ;\n }\n trace_qio_channel_websock_header_partial_decode ( ioc , payload_len , fin , opcode , ( int ) has_mask ) ;\n if ( opcode == QIO_CHANNEL_WEBSOCK_OPCODE_CLOSE ) {\n return 0 ;\n }\n if ( ! fin ) {\n if ( opcode != QIO_CHANNEL_WEBSOCK_OPCODE_BINARY_FRAME ) {\n error_setg ( errp , \"only binary websocket frames may be fragmented\" ) ;\n qio_channel_websock_write_close ( ioc , QIO_CHANNEL_WEBSOCK_STATUS_POLICY , \"only binary frames may be fragmented\" ) ;\n return - 1 ;\n }\n }\n else {\n if ( opcode != QIO_CHANNEL_WEBSOCK_OPCODE_BINARY_FRAME && opcode != QIO_CHANNEL_WEBSOCK_OPCODE_CLOSE && opcode != QIO_CHANNEL_WEBSOCK_OPCODE_PING && opcode != QIO_CHANNEL_WEBSOCK_OPCODE_PONG ) {\n error_setg ( errp , \"unsupported opcode: %#04x;\n only binary, close, \" \"ping, and pong websocket frames are supported\" , opcode ) ;\n qio_channel_websock_write_close ( ioc , QIO_CHANNEL_WEBSOCK_STATUS_INVALID_DATA , \"only binary, close, ping, and pong frames are supported\" ) ;\n return - 1 ;\n }\n }\n if ( ! has_mask ) {\n error_setg ( errp , \"client websocket frames must be masked\" ) ;\n qio_channel_websock_write_close ( ioc , QIO_CHANNEL_WEBSOCK_STATUS_PROTOCOL_ERR , \"client frames must be masked\" ) ;\n return - 1 ;\n }\n if ( payload_len < QIO_CHANNEL_WEBSOCK_PAYLOAD_LEN_MAGIC_16_BIT ) {\n ioc -> payload_remain = payload_len ;\n header_size = QIO_CHANNEL_WEBSOCK_HEADER_LEN_7_BIT ;\n ioc -> mask = header -> u . m ;\n }\n else if ( opcode & QIO_CHANNEL_WEBSOCK_CONTROL_OPCODE_MASK ) {\n error_setg ( errp , \"websocket control frame is too large\" ) ;\n qio_channel_websock_write_close ( ioc , QIO_CHANNEL_WEBSOCK_STATUS_PROTOCOL_ERR , \"control frame is too large\" ) ;\n return - 1 ;\n }\n else if ( payload_len == QIO_CHANNEL_WEBSOCK_PAYLOAD_LEN_MAGIC_16_BIT && ioc -> encinput . offset >= QIO_CHANNEL_WEBSOCK_HEADER_LEN_16_BIT ) {\n ioc -> payload_remain = be16_to_cpu ( header -> u . s16 . l16 ) ;\n header_size = QIO_CHANNEL_WEBSOCK_HEADER_LEN_16_BIT ;\n ioc -> mask = header -> u . s16 . m16 ;\n }\n else if ( payload_len == QIO_CHANNEL_WEBSOCK_PAYLOAD_LEN_MAGIC_64_BIT && ioc -> encinput . offset >= QIO_CHANNEL_WEBSOCK_HEADER_LEN_64_BIT ) {\n ioc -> payload_remain = be64_to_cpu ( header -> u . s64 . l64 ) ;\n header_size = QIO_CHANNEL_WEBSOCK_HEADER_LEN_64_BIT ;\n ioc -> mask = header -> u . s64 . m64 ;\n }\n else {\n return QIO_CHANNEL_ERR_BLOCK ;\n }\n trace_qio_channel_websock_header_full_decode ( ioc , header_size , ioc -> payload_remain , ioc -> mask . u ) ;\n buffer_advance ( & ioc -> encinput , header_size ) ;\n return 0 ;\n }"}
{"idx": 20032, "target": 0, "func": "int mbfl_substr_count ( mbfl_string * haystack , mbfl_string * needle ) {\n int n , result = 0 ;\n unsigned char * p ;\n mbfl_convert_filter * filter ;\n struct collector_strpos_data pc ;\n if ( haystack == NULL || needle == NULL ) {\n return - 8 ;\n }\n mbfl_wchar_device_init ( & pc . needle ) ;\n filter = mbfl_convert_filter_new ( needle -> no_encoding , mbfl_no_encoding_wchar , mbfl_wchar_device_output , 0 , & pc . needle ) ;\n if ( filter == NULL ) {\n return - 4 ;\n }\n p = needle -> val ;\n n = needle -> len ;\n if ( p != NULL ) {\n while ( n > 0 ) {\n if ( ( * filter -> filter_function ) ( * p ++ , filter ) < 0 ) {\n break ;\n }\n n -- ;\n }\n }\n mbfl_convert_filter_flush ( filter ) ;\n mbfl_convert_filter_delete ( filter ) ;\n pc . needle_len = pc . needle . pos ;\n if ( pc . needle . buffer == NULL ) {\n return - 4 ;\n }\n if ( pc . needle_len <= 0 ) {\n mbfl_wchar_device_clear ( & pc . needle ) ;\n return - 2 ;\n }\n filter = mbfl_convert_filter_new ( haystack -> no_encoding , mbfl_no_encoding_wchar , collector_strpos , 0 , & pc ) ;\n if ( filter == NULL ) {\n mbfl_wchar_device_clear ( & pc . needle ) ;\n return - 4 ;\n }\n pc . start = 0 ;\n pc . output = 0 ;\n pc . needle_pos = 0 ;\n pc . found_pos = 0 ;\n pc . matched_pos = - 1 ;\n p = haystack -> val ;\n n = haystack -> len ;\n if ( p != NULL ) {\n while ( n > 0 ) {\n if ( ( * filter -> filter_function ) ( * p ++ , filter ) < 0 ) {\n pc . matched_pos = - 4 ;\n break ;\n }\n if ( pc . matched_pos >= 0 ) {\n ++ result ;\n pc . matched_pos = - 1 ;\n pc . needle_pos = 0 ;\n }\n n -- ;\n }\n }\n mbfl_convert_filter_flush ( filter ) ;\n mbfl_convert_filter_delete ( filter ) ;\n mbfl_wchar_device_clear ( & pc . needle ) ;\n return result ;\n }"}
{"idx": 20033, "target": 1, "func": "static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char )"}
{"idx": 20034, "target": 1, "func": "static int32_t u_printf_count_handler ( const u_printf_stream_handler * handler , void * context , ULocaleBundle * formatBundle , const u_printf_spec_info * info , const ufmt_args * args ) {\n int32_t * count = ( int32_t * ) ( args [ 0 ] . ptrValue ) ;\n * count = info -> fWidth ;\n return 0 ;\n }"}
{"idx": 20035, "target": 0, "func": "static void cmd_server_add_modify ( const char * data , gboolean add ) {\n GHashTable * optlist ;\n SERVER_SETUP_REC * rec ;\n char * addr , * portstr , * password , * value , * chatnet ;\n void * free_arg ;\n int port ;\n if ( ! cmd_get_params ( data , & free_arg , 3 | PARAM_FLAG_OPTIONS , \"server add\" , & optlist , & addr , & portstr , & password ) ) return ;\n if ( * addr == '\\0' ) cmd_param_error ( CMDERR_NOT_ENOUGH_PARAMS ) ;\n value = g_hash_table_lookup ( optlist , \"port\" ) ;\n if ( * portstr != '\\0' ) port = atoi ( portstr ) ;\n else if ( value != NULL && * value != '\\0' ) port = atoi ( value ) ;\n else if ( g_hash_table_lookup ( optlist , \"tls\" ) || g_hash_table_lookup ( optlist , \"ssl\" ) ) port = DEFAULT_SERVER_ADD_TLS_PORT ;\n else port = DEFAULT_SERVER_ADD_PORT ;\n chatnet = g_hash_table_lookup ( optlist , \"network\" ) ;\n rec = server_setup_find ( addr , port , chatnet ) ;\n if ( rec == NULL ) {\n if ( add == FALSE ) {\n printformat ( NULL , NULL , MSGLEVEL_CLIENTNOTICE , TXT_SETUPSERVER_NOT_FOUND , addr , port ) ;\n cmd_params_free ( free_arg ) ;\n return ;\n }\n rec = create_server_setup ( optlist ) ;\n if ( rec == NULL ) {\n cmd_params_free ( free_arg ) ;\n return ;\n }\n rec -> address = g_strdup ( addr ) ;\n rec -> port = port ;\n }\n else {\n if ( * portstr != '\\0' || g_hash_table_lookup ( optlist , \"port\" ) ) rec -> port = port ;\n if ( * password != '\\0' ) g_free_and_null ( rec -> password ) ;\n if ( g_hash_table_lookup ( optlist , \"host\" ) ) {\n g_free_and_null ( rec -> own_host ) ;\n rec -> own_ip4 = rec -> own_ip6 = NULL ;\n }\n }\n if ( g_hash_table_lookup ( optlist , \"6\" ) ) rec -> family = AF_INET6 ;\n else if ( g_hash_table_lookup ( optlist , \"4\" ) ) rec -> family = AF_INET ;\n if ( g_hash_table_lookup ( optlist , \"tls\" ) || g_hash_table_lookup ( optlist , \"ssl\" ) ) {\n rec -> use_tls = TRUE ;\n }\n else if ( g_hash_table_lookup ( optlist , \"notls\" ) || g_hash_table_lookup ( optlist , \"nossl\" ) ) {\n rec -> use_tls = FALSE ;\n rec -> tls_verify = FALSE ;\n }\n value = g_hash_table_lookup ( optlist , \"tls_cert\" ) ;\n if ( value == NULL ) value = g_hash_table_lookup ( optlist , \"ssl_cert\" ) ;\n if ( value != NULL && * value != '\\0' ) rec -> tls_cert = g_strdup ( value ) ;\n value = g_hash_table_lookup ( optlist , \"tls_pkey\" ) ;\n if ( value == NULL ) value = g_hash_table_lookup ( optlist , \"ssl_pkey\" ) ;\n if ( value != NULL && * value != '\\0' ) rec -> tls_pkey = g_strdup ( value ) ;\n value = g_hash_table_lookup ( optlist , \"tls_pass\" ) ;\n if ( value == NULL ) value = g_hash_table_lookup ( optlist , \"ssl_pass\" ) ;\n if ( value != NULL && * value != '\\0' ) rec -> tls_pass = g_strdup ( value ) ;\n if ( g_hash_table_lookup ( optlist , \"tls_verify\" ) || g_hash_table_lookup ( optlist , \"ssl_verify\" ) ) rec -> tls_verify = TRUE ;\n else if ( g_hash_table_lookup ( optlist , \"notls_verify\" ) || g_hash_table_lookup ( optlist , \"nossl_verify\" ) ) rec -> tls_verify = FALSE ;\n value = g_hash_table_lookup ( optlist , \"tls_cafile\" ) ;\n if ( value == NULL ) value = g_hash_table_lookup ( optlist , \"ssl_cafile\" ) ;\n if ( value != NULL && * value != '\\0' ) rec -> tls_cafile = g_strdup ( value ) ;\n value = g_hash_table_lookup ( optlist , \"tls_capath\" ) ;\n if ( value == NULL ) value = g_hash_table_lookup ( optlist , \"ssl_capath\" ) ;\n if ( value != NULL && * value != '\\0' ) rec -> tls_capath = g_strdup ( value ) ;\n value = g_hash_table_lookup ( optlist , \"tls_ciphers\" ) ;\n if ( value == NULL ) value = g_hash_table_lookup ( optlist , \"ssl_ciphers\" ) ;\n if ( value != NULL && * value != '\\0' ) rec -> tls_ciphers = g_strdup ( value ) ;\n value = g_hash_table_lookup ( optlist , \"tls_pinned_cert\" ) ;\n if ( value == NULL ) value = g_hash_table_lookup ( optlist , \"ssl_pinned_cert\" ) ;\n if ( value != NULL && * value != '\\0' ) rec -> tls_pinned_cert = g_strdup ( value ) ;\n value = g_hash_table_lookup ( optlist , \"tls_pinned_pubkey\" ) ;\n if ( value == NULL ) value = g_hash_table_lookup ( optlist , \"ssl_pinned_pubkey\" ) ;\n if ( value != NULL && * value != '\\0' ) rec -> tls_pinned_pubkey = g_strdup ( value ) ;\n if ( ( rec -> tls_cafile != NULL && rec -> tls_cafile [ 0 ] != '\\0' ) || ( rec -> tls_capath != NULL && rec -> tls_capath [ 0 ] != '\\0' ) ) rec -> tls_verify = TRUE ;\n if ( ( rec -> tls_cert != NULL && rec -> tls_cert [ 0 ] != '\\0' ) || rec -> tls_verify == TRUE ) rec -> use_tls = TRUE ;\n if ( g_hash_table_lookup ( optlist , \"auto\" ) ) rec -> autoconnect = TRUE ;\n if ( g_hash_table_lookup ( optlist , \"noauto\" ) ) rec -> autoconnect = FALSE ;\n if ( g_hash_table_lookup ( optlist , \"proxy\" ) ) rec -> no_proxy = FALSE ;\n if ( g_hash_table_lookup ( optlist , \"noproxy\" ) ) rec -> no_proxy = TRUE ;\n if ( * password != '\\0' && g_strcmp0 ( password , \"-\" ) != 0 ) rec -> password = g_strdup ( password ) ;\n value = g_hash_table_lookup ( optlist , \"host\" ) ;\n if ( value != NULL && * value != '\\0' ) {\n rec -> own_host = g_strdup ( value ) ;\n rec -> own_ip4 = rec -> own_ip6 = NULL ;\n }\n signal_emit ( \"server add fill\" , 2 , rec , optlist ) ;\n server_setup_add ( rec ) ;\n printformat ( NULL , NULL , MSGLEVEL_CLIENTNOTICE , TXT_SETUPSERVER_ADDED , addr , port ) ;\n cmd_params_free ( free_arg ) ;\n }"}
{"idx": 20036, "target": 0, "func": "static void draw_char ( AVCodecContext * avctx , int c ) {\n AnsiContext * s = avctx -> priv_data ;\n int fg = s -> fg ;\n int bg = s -> bg ;\n if ( ( s -> attributes & ATTR_BOLD ) ) fg += 8 ;\n if ( ( s -> attributes & ATTR_BLINK ) ) bg += 8 ;\n if ( ( s -> attributes & ATTR_REVERSE ) ) FFSWAP ( int , fg , bg ) ;\n if ( ( s -> attributes & ATTR_CONCEALED ) ) fg = bg ;\n ff_draw_pc_font ( s -> frame -> data [ 0 ] + s -> y * s -> frame -> linesize [ 0 ] + s -> x , s -> frame -> linesize [ 0 ] , s -> font , s -> font_height , c , fg , bg ) ;\n s -> x += FONT_WIDTH ;\n if ( s -> x >= avctx -> width ) {\n s -> x = 0 ;\n hscroll ( avctx ) ;\n }\n }"}
{"idx": 20037, "target": 1, "func": "const EVP_CIPHER * EVP_aes_ ## keylen ## _ ## mode ( void ) \\ {\n return & aes_ ## keylen ## _ ## mode ;\n }\n # 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_CAPABLE ( OPENSSL_armcap_P & ARMV7_NEON ) # endif # if defined ( VPAES_ASM ) # define VPAES_CAPABLE ( OPENSSL_armcap_P & ARMV7_NEON ) # endif # define HWAES_CAPABLE ( OPENSSL_armcap_P & ARMV8_AES ) # define HWAES_set_encrypt_key aes_v8_set_encrypt_key # define HWAES_set_decrypt_key aes_v8_set_decrypt_key # define HWAES_encrypt aes_v8_encrypt # define HWAES_decrypt aes_v8_decrypt # define HWAES_cbc_encrypt aes_v8_cbc_encrypt # define HWAES_ctr32_encrypt_blocks aes_v8_ctr32_encrypt_blocks # endif # endif # if defined ( HWAES_CAPABLE ) int HWAES_set_encrypt_key ( const unsigned char * userKey , const int bits , AES_KEY * key ) ;\n int HWAES_set_decrypt_key ( const unsigned char * userKey , const int bits , AES_KEY * key ) ;\n void HWAES_encrypt ( const unsigned char * in , unsigned char * out , const AES_KEY * key ) ;\n void HWAES_decrypt ( const unsigned char * in , unsigned char * out , const AES_KEY * key ) ;\n void HWAES_cbc_encrypt ( const unsigned char * in , unsigned char * out , size_t length , const AES_KEY * key , unsigned char * ivec , const int enc ) ;\n void HWAES_ctr32_encrypt_blocks ( const unsigned char * in , unsigned char * out , size_t len , const AES_KEY * key , const unsigned char ivec [ 16 ] ) ;\n void HWAES_xts_encrypt ( const unsigned char * inp , unsigned char * out , size_t len , const AES_KEY * key1 , const AES_KEY * key2 , const unsigned char iv [ 16 ] ) ;\n void HWAES_xts_decrypt ( const unsigned char * inp , unsigned char * out , size_t len , const AES_KEY * key1 , const AES_KEY * key2 , const unsigned char iv [ 16 ] ) ;\n # endif # define BLOCK_CIPHER_generic_pack ( nid , keylen , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 16 , 16 , cbc , cbc , CBC , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 16 , 0 , ecb , ecb , ECB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , ofb128 , ofb , OFB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb128 , cfb , CFB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb1 , cfb1 , CFB , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb8 , cfb8 , CFB , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , ctr , ctr , CTR , flags ) static int aes_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n int ret , mode ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n mode = EVP_CIPHER_CTX_mode ( ctx ) ;\n if ( ( mode == EVP_CIPH_ECB_MODE || mode == EVP_CIPH_CBC_MODE ) && ! enc ) {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_decrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n # endif }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CBC_MODE ) {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = ( cbc128_f ) bsaes_cbc_encrypt ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n }\n }\n else # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_encrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n else # endif # ifdef HWAES_ctr32_encrypt_blocks if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) HWAES_ctr32_encrypt_blocks ;\n else # endif ( void ) 0 ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CTR_MODE ) {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . ctr = ( ctr128_f ) bsaes_ctr32_encrypt_blocks ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n # ifdef AES_CTR_ASM if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) AES_ctr32_encrypt ;\n # endif }\n if ( ret < 0 ) {\n EVPerr ( EVP_F_AES_INIT_KEY , EVP_R_AES_KEY_SETUP_FAILED ) ;\n return 0 ;\n }\n return 1 ;\n }\n static int aes_cbc_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( dat -> stream . cbc ) ( * dat -> stream . cbc ) ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_encrypting ( ctx ) ) ;\n else if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) CRYPTO_cbc128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , dat -> block ) ;\n else CRYPTO_cbc128_decrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , dat -> block ) ;\n return 1 ;\n }\n static int aes_ecb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n size_t bl = EVP_CIPHER_CTX_block_size ( ctx ) ;\n size_t i ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( len < bl ) return 1 ;\n for ( i = 0 , len -= bl ;\n i <= len ;\n i += bl ) ( * dat -> block ) ( in + i , out + i , & dat -> ks ) ;\n return 1 ;\n }\n static int aes_ofb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_ofb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb8_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_8_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb1_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( EVP_CIPHER_CTX_test_flags ( ctx , EVP_CIPH_FLAG_LENGTH_BITS ) ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n while ( len >= MAXBITCHUNK ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , MAXBITCHUNK * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n len -= MAXBITCHUNK ;\n }\n if ( len ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n }\n return 1 ;\n }\n static int aes_ctr_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n unsigned int num = EVP_CIPHER_CTX_num ( ctx ) ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( dat -> stream . ctr ) CRYPTO_ctr128_encrypt_ctr32 ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> stream . ctr ) ;\n else CRYPTO_ctr128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n BLOCK_CIPHER_generic_pack ( NID_aes , 128 , 0 ) BLOCK_CIPHER_generic_pack ( NID_aes , 192 , 0 ) BLOCK_CIPHER_generic_pack ( NID_aes , 256 , 0 ) static int aes_gcm_cleanup ( EVP_CIPHER_CTX * c ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , c ) ;\n OPENSSL_cleanse ( & gctx -> gcm , sizeof ( gctx -> gcm ) ) ;\n if ( gctx -> iv != EVP_CIPHER_CTX_iv_noconst ( c ) ) OPENSSL_free ( gctx -> iv ) ;\n return 1 ;\n }\n static void ctr64_inc ( unsigned char * counter ) {\n int n = 8 ;\n unsigned char c ;\n do {\n -- n ;\n c = counter [ n ] ;\n ++ c ;\n counter [ n ] = c ;\n if ( c ) return ;\n }\n while ( n ) ;\n }\n static int aes_gcm_ctrl ( EVP_CIPHER_CTX * c , int type , int arg , void * ptr ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , c ) ;\n switch ( type ) {\n case EVP_CTRL_INIT : gctx -> key_set = 0 ;\n gctx -> iv_set = 0 ;\n gctx -> ivlen = EVP_CIPHER_CTX_iv_length ( c ) ;\n gctx -> iv = EVP_CIPHER_CTX_iv_noconst ( c ) ;\n gctx -> taglen = - 1 ;\n gctx -> iv_gen = 0 ;\n gctx -> tls_aad_len = - 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_IVLEN : if ( arg <= 0 ) return 0 ;\n if ( ( arg > EVP_MAX_IV_LENGTH ) && ( arg > gctx -> ivlen ) ) {\n if ( gctx -> iv != EVP_CIPHER_CTX_iv_noconst ( c ) ) OPENSSL_free ( gctx -> iv ) ;\n gctx -> iv = OPENSSL_malloc ( arg ) ;\n if ( gctx -> iv == NULL ) return 0 ;\n }\n gctx -> ivlen = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_TAG : if ( arg <= 0 || arg > 16 || EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n gctx -> taglen = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_GET_TAG : if ( arg <= 0 || arg > 16 || ! EVP_CIPHER_CTX_encrypting ( c ) || gctx -> taglen < 0 ) return 0 ;\n memcpy ( ptr , EVP_CIPHER_CTX_buf_noconst ( c ) , arg ) ;\n return 1 ;\n case EVP_CTRL_GCM_SET_IV_FIXED : if ( arg == - 1 ) {\n memcpy ( gctx -> iv , ptr , gctx -> ivlen ) ;\n gctx -> iv_gen = 1 ;\n return 1 ;\n }\n if ( ( arg < 4 ) || ( gctx -> ivlen - arg ) < 8 ) return 0 ;\n if ( arg ) memcpy ( gctx -> iv , ptr , arg ) ;\n if ( EVP_CIPHER_CTX_encrypting ( c ) && RAND_bytes ( gctx -> iv + arg , gctx -> ivlen - arg ) <= 0 ) return 0 ;\n gctx -> iv_gen = 1 ;\n return 1 ;\n case EVP_CTRL_GCM_IV_GEN : if ( gctx -> iv_gen == 0 || gctx -> key_set == 0 ) return 0 ;\n CRYPTO_gcm128_setiv ( & gctx -> gcm , gctx -> iv , gctx -> ivlen ) ;\n if ( arg <= 0 || arg > gctx -> ivlen ) arg = gctx -> ivlen ;\n memcpy ( ptr , gctx -> iv + gctx -> ivlen - arg , arg ) ;\n ctr64_inc ( gctx -> iv + gctx -> ivlen - 8 ) ;\n gctx -> iv_set = 1 ;\n return 1 ;\n case EVP_CTRL_GCM_SET_IV_INV : if ( gctx -> iv_gen == 0 || gctx -> key_set == 0 || EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( gctx -> iv + gctx -> ivlen - arg , ptr , arg ) ;\n CRYPTO_gcm128_setiv ( & gctx -> gcm , gctx -> iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_TLS1_AAD : if ( arg != EVP_AEAD_TLS1_AAD_LEN ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n gctx -> tls_aad_len = arg ;\n {\n unsigned int len = EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] << 8 | EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] ;\n len -= EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n if ( ! EVP_CIPHER_CTX_encrypting ( c ) ) len -= EVP_GCM_TLS_TAG_LEN ;\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] = len >> 8 ;\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] = len & 0xff ;\n }\n return EVP_GCM_TLS_TAG_LEN ;\n case EVP_CTRL_COPY : {\n EVP_CIPHER_CTX * out = ptr ;\n EVP_AES_GCM_CTX * gctx_out = EVP_C_DATA ( EVP_AES_GCM_CTX , out ) ;\n if ( gctx -> gcm . key ) {\n if ( gctx -> gcm . key != & gctx -> ks ) return 0 ;\n gctx_out -> gcm . key = & gctx_out -> ks ;\n }\n if ( gctx -> iv == EVP_CIPHER_CTX_iv_noconst ( c ) ) gctx_out -> iv = EVP_CIPHER_CTX_iv_noconst ( out ) ;\n else {\n gctx_out -> iv = OPENSSL_malloc ( gctx -> ivlen ) ;\n if ( gctx_out -> iv == NULL ) return 0 ;\n memcpy ( gctx_out -> iv , gctx -> iv , gctx -> ivlen ) ;\n }\n return 1 ;\n }\n default : return - 1 ;\n }\n }\n static int aes_gcm_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n if ( ! iv && ! key ) return 1 ;\n if ( key ) {\n do {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) HWAES_encrypt ) ;\n # ifdef HWAES_ctr32_encrypt_blocks gctx -> ctr = ( ctr128_f ) HWAES_ctr32_encrypt_blocks ;\n # else gctx -> ctr = NULL ;\n # endif break ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE ) {\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) AES_encrypt ) ;\n gctx -> ctr = ( ctr128_f ) bsaes_ctr32_encrypt_blocks ;\n break ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) vpaes_encrypt ) ;\n gctx -> ctr = NULL ;\n break ;\n }\n else # endif ( void ) 0 ;\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) AES_encrypt ) ;\n # ifdef AES_CTR_ASM gctx -> ctr = ( ctr128_f ) AES_ctr32_encrypt ;\n # else gctx -> ctr = NULL ;\n # endif }\n while ( 0 ) ;\n if ( iv == NULL && gctx -> iv_set ) iv = gctx -> iv ;\n if ( iv ) {\n CRYPTO_gcm128_setiv ( & gctx -> gcm , iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n }\n gctx -> key_set = 1 ;\n }\n else {\n if ( gctx -> key_set ) CRYPTO_gcm128_setiv ( & gctx -> gcm , iv , gctx -> ivlen ) ;\n else memcpy ( gctx -> iv , iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n gctx -> iv_gen = 0 ;\n }\n return 1 ;\n }\n static int aes_gcm_tls_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n int rv = - 1 ;\n if ( out != in || len < ( EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ) ) return - 1 ;\n if ( EVP_CIPHER_CTX_ctrl ( ctx , EVP_CIPHER_CTX_encrypting ( ctx ) ? EVP_CTRL_GCM_IV_GEN : EVP_CTRL_GCM_SET_IV_INV , EVP_GCM_TLS_EXPLICIT_IV_LEN , out ) <= 0 ) goto err ;\n if ( CRYPTO_gcm128_aad ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , gctx -> tls_aad_len ) ) goto err ;\n in += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n out += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n len -= EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ;\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 32 && AES_GCM_ASM ( gctx ) ) {\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_encrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) goto err ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 32 && AES_GCM_ASM2 ( gctx ) ) {\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) goto err ;\n }\n out += len ;\n CRYPTO_gcm128_tag ( & gctx -> gcm , out , EVP_GCM_TLS_TAG_LEN ) ;\n rv = len + EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ;\n }\n else {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 16 && AES_GCM_ASM ( gctx ) ) {\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_decrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) goto err ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 16 && AES_GCM_ASM2 ( gctx ) ) {\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) goto err ;\n }\n CRYPTO_gcm128_tag ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , EVP_GCM_TLS_TAG_LEN ) ;\n if ( CRYPTO_memcmp ( EVP_CIPHER_CTX_buf_noconst ( ctx ) , in + len , EVP_GCM_TLS_TAG_LEN ) ) {\n OPENSSL_cleanse ( out , len ) ;\n goto err ;\n }\n rv = len ;\n }\n err : gctx -> iv_set = 0 ;\n gctx -> tls_aad_len = - 1 ;\n return rv ;\n }\n static int aes_gcm_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n if ( ! gctx -> key_set ) return - 1 ;\n if ( gctx -> tls_aad_len >= 0 ) return aes_gcm_tls_cipher ( ctx , out , in , len ) ;\n if ( ! gctx -> iv_set ) return - 1 ;\n if ( in ) {\n if ( out == NULL ) {\n if ( CRYPTO_gcm128_aad ( & gctx -> gcm , in , len ) ) return - 1 ;\n }\n else if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 32 && AES_GCM_ASM ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_encrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) return - 1 ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 32 && AES_GCM_ASM2 ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) return - 1 ;\n }\n }\n else {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 16 && AES_GCM_ASM ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_decrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) return - 1 ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 16 && AES_GCM_ASM2 ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) return - 1 ;\n }\n }\n return len ;\n }\n else {\n if ( ! EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> taglen < 0 ) return - 1 ;\n if ( CRYPTO_gcm128_finish ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , gctx -> taglen ) != 0 ) return - 1 ;\n gctx -> iv_set = 0 ;\n return 0 ;\n }\n CRYPTO_gcm128_tag ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , 16 ) ;\n gctx -> taglen = 16 ;\n gctx -> iv_set = 0 ;\n return 0 ;\n }\n }\n # define CUSTOM_FLAGS ( EVP_CIPH_FLAG_DEFAULT_ASN1 \\ | EVP_CIPH_CUSTOM_IV | EVP_CIPH_FLAG_CUSTOM_CIPHER \\ | EVP_CIPH_ALWAYS_CALL_INIT | EVP_CIPH_CTRL_INIT \\ | EVP_CIPH_CUSTOM_COPY ) BLOCK_CIPHER_custom ( NID_aes , 128 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 192 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS )"}
{"idx": 20038, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , NoPaintForEmptyDocumentInChildFrame ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n GURL a_url ( embedded_test_server ( ) -> GetURL ( \"/page_load_metrics/empty_iframe.html\" ) ) ;\n auto waiter = CreatePageLoadMetricsWaiter ( ) ;\n waiter -> AddPageExpectation ( TimingField : : FIRST_LAYOUT ) ;\n waiter -> AddPageExpectation ( TimingField : : LOAD_EVENT ) ;\n waiter -> AddSubFrameExpectation ( TimingField : : FIRST_LAYOUT ) ;\n waiter -> AddSubFrameExpectation ( TimingField : : LOAD_EVENT ) ;\n ui_test_utils : : NavigateToURL ( browser ( ) , a_url ) ;\n waiter -> Wait ( ) ;\n EXPECT_FALSE ( waiter -> DidObserveInPage ( TimingField : : FIRST_PAINT ) ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramFirstLayout , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramLoad , 1 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramFirstPaint , 0 ) ;\n histogram_tester_ . ExpectTotalCount ( internal : : kHistogramFirstContentfulPaint , 0 ) ;\n }"}
{"idx": 20039, "target": 0, "func": "static bfd_boolean srec_set_arch_mach ( bfd * abfd , enum bfd_architecture arch , unsigned long mach ) {\n if ( arch != bfd_arch_unknown ) return bfd_default_set_arch_mach ( abfd , arch , mach ) ;\n abfd -> arch_info = & bfd_default_arch_struct ;\n return TRUE ;\n }"}
{"idx": 20040, "target": 0, "func": "static void test_wl4435 ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n char query [ MAX_TEST_QUERY_LENGTH ] ;\n char str_data [ 20 ] [ WL4435_STRING_SIZE ] ;\n double dbl_data [ 20 ] ;\n char dec_data [ 20 ] [ WL4435_STRING_SIZE ] ;\n int int_data [ 20 ] ;\n ulong str_length = WL4435_STRING_SIZE ;\n my_bool is_null ;\n MYSQL_BIND ps_params [ WL4435_NUM_PARAMS ] ;\n int exec_counter ;\n myheader ( \"test_wl4435\" ) ;\n mct_start_logging ( \"test_wl4435\" ) ;\n rc = mysql_query ( mysql , \"DROP PROCEDURE IF EXISTS p1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP PROCEDURE IF EXISTS p2\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS t1\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS t2\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE t1(a1 INT, a2 CHAR(32), \" \" a3 DOUBLE(4, 2), a4 DECIMAL(3, 1))\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE t2(b0 INT, b1 INT, b2 CHAR(32), \" \" b3 DOUBLE(4, 2), b4 DECIMAL(3, 1))\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO t1 VALUES\" \"(1, '11', 12.34, 56.7), \" \"(2, '12', 56.78, 90.1), \" \"(3, '13', 23.45, 67.8)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO t2 VALUES\" \"(100, 10, '110', 70.70, 10.1), \" \"(200, 20, '120', 80.80, 20.2), \" \"(300, 30, '130', 90.90, 30.3)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE PROCEDURE p1(\" \" IN v0 INT, \" \" OUT v_str_1 CHAR(32), \" \" OUT v_dbl_1 DOUBLE(4, 2), \" \" OUT v_dec_1 DECIMAL(6, 3), \" \" OUT v_int_1 INT, \" \" IN v1 INT, \" \" INOUT v_str_2 CHAR(64), \" \" INOUT v_dbl_2 DOUBLE(5, 3), \" \" INOUT v_dec_2 DECIMAL(7, 4), \" \" INOUT v_int_2 INT)\" \"BEGIN \" \" SET v0 = -1;\n \" \" SET v1 = -1;\n \" \" SET v_str_1 = 'test_1';\n \" \" SET v_dbl_1 = 12.34;\n \" \" SET v_dec_1 = 567.891;\n \" \" SET v_int_1 = 2345;\n \" \" SET v_str_2 = 'test_2';\n \" \" SET v_dbl_2 = 67.891;\n \" \" SET v_dec_2 = 234.6789;\n \" \" SET v_int_2 = 6789;\n \" \" SELECT * FROM t1;\n \" \" SELECT * FROM t2;\n \" \"END\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE PROCEDURE p2(\" \" IN i1 VARCHAR(255) CHARACTER SET koi8r, \" \" OUT o1 VARCHAR(255) CHARACTER SET cp1251, \" \" OUT o2 VARBINARY(255)) \" \"BEGIN \" \" SET o1 = i1;\n \" \" SET o2 = i1;\n \" \"END\" ) ;\n myquery ( rc ) ;\n strmov ( query , \"CALL p1(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\" ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n memset ( ps_params , 0 , sizeof ( ps_params ) ) ;\n ps_params [ 0 ] . buffer_type = MYSQL_TYPE_LONG ;\n ps_params [ 0 ] . buffer = ( char * ) & int_data [ 0 ] ;\n ps_params [ 0 ] . length = 0 ;\n ps_params [ 0 ] . is_null = 0 ;\n ps_params [ 1 ] . buffer_type = MYSQL_TYPE_STRING ;\n ps_params [ 1 ] . buffer = ( char * ) str_data [ 0 ] ;\n ps_params [ 1 ] . buffer_length = WL4435_STRING_SIZE ;\n ps_params [ 1 ] . length = & str_length ;\n ps_params [ 1 ] . is_null = 0 ;\n ps_params [ 2 ] . buffer_type = MYSQL_TYPE_DOUBLE ;\n ps_params [ 2 ] . buffer = ( char * ) & dbl_data [ 0 ] ;\n ps_params [ 2 ] . length = 0 ;\n ps_params [ 2 ] . is_null = 0 ;\n ps_params [ 3 ] . buffer_type = MYSQL_TYPE_NEWDECIMAL ;\n ps_params [ 3 ] . buffer = ( char * ) dec_data [ 0 ] ;\n ps_params [ 3 ] . buffer_length = WL4435_STRING_SIZE ;\n ps_params [ 3 ] . length = 0 ;\n ps_params [ 3 ] . is_null = 0 ;\n ps_params [ 4 ] . buffer_type = MYSQL_TYPE_LONG ;\n ps_params [ 4 ] . buffer = ( char * ) & int_data [ 0 ] ;\n ps_params [ 4 ] . length = 0 ;\n ps_params [ 4 ] . is_null = 0 ;\n ps_params [ 5 ] . buffer_type = MYSQL_TYPE_LONG ;\n ps_params [ 5 ] . buffer = ( char * ) & int_data [ 0 ] ;\n ps_params [ 5 ] . length = 0 ;\n ps_params [ 5 ] . is_null = 0 ;\n ps_params [ 6 ] . buffer_type = MYSQL_TYPE_STRING ;\n ps_params [ 6 ] . buffer = ( char * ) str_data [ 0 ] ;\n ps_params [ 6 ] . buffer_length = WL4435_STRING_SIZE ;\n ps_params [ 6 ] . length = & str_length ;\n ps_params [ 6 ] . is_null = 0 ;\n ps_params [ 7 ] . buffer_type = MYSQL_TYPE_DOUBLE ;\n ps_params [ 7 ] . buffer = ( char * ) & dbl_data [ 0 ] ;\n ps_params [ 7 ] . length = 0 ;\n ps_params [ 7 ] . is_null = 0 ;\n ps_params [ 8 ] . buffer_type = MYSQL_TYPE_DECIMAL ;\n ps_params [ 8 ] . buffer = ( char * ) dec_data [ 0 ] ;\n ps_params [ 8 ] . buffer_length = WL4435_STRING_SIZE ;\n ps_params [ 8 ] . length = 0 ;\n ps_params [ 8 ] . is_null = 0 ;\n ps_params [ 9 ] . buffer_type = MYSQL_TYPE_LONG ;\n ps_params [ 9 ] . buffer = ( char * ) & int_data [ 0 ] ;\n ps_params [ 9 ] . length = 0 ;\n ps_params [ 9 ] . is_null = 0 ;\n rc = mysql_stmt_bind_param ( stmt , ps_params ) ;\n for ( exec_counter = 0 ;\n exec_counter < 3 ;\n ++ exec_counter ) {\n int i ;\n int num_fields ;\n MYSQL_BIND * rs_bind ;\n mct_log ( \"\\nexec_counter: %d\\n\" , ( int ) exec_counter ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n while ( 1 ) {\n MYSQL_FIELD * fields ;\n MYSQL_RES * rs_metadata = mysql_stmt_result_metadata ( stmt ) ;\n num_fields = mysql_stmt_field_count ( stmt ) ;\n fields = mysql_fetch_fields ( rs_metadata ) ;\n rs_bind = ( MYSQL_BIND * ) malloc ( sizeof ( MYSQL_BIND ) * num_fields ) ;\n memset ( rs_bind , 0 , sizeof ( MYSQL_BIND ) * num_fields ) ;\n mct_log ( \"num_fields: %d\\n\" , ( int ) num_fields ) ;\n for ( i = 0 ;\n i < num_fields ;\n ++ i ) {\n mct_log ( \" - %d: name: '%s'/'%s';\n table: '%s'/'%s';\n \" \"db: '%s';\n catalog: '%s';\n length: %d;\n max_length: %d;\n \" \"type: %d;\n decimals: %d\\n\" , ( int ) i , ( const char * ) fields [ i ] . name , ( const char * ) fields [ i ] . org_name , ( const char * ) fields [ i ] . table , ( const char * ) fields [ i ] . org_table , ( const char * ) fields [ i ] . db , ( const char * ) fields [ i ] . catalog , ( int ) fields [ i ] . length , ( int ) fields [ i ] . max_length , ( int ) fields [ i ] . type , ( int ) fields [ i ] . decimals ) ;\n rs_bind [ i ] . buffer_type = fields [ i ] . type ;\n rs_bind [ i ] . is_null = & is_null ;\n switch ( fields [ i ] . type ) {\n case MYSQL_TYPE_LONG : rs_bind [ i ] . buffer = ( char * ) & ( int_data [ i ] ) ;\n rs_bind [ i ] . buffer_length = sizeof ( int_data ) ;\n break ;\n case MYSQL_TYPE_STRING : rs_bind [ i ] . buffer = ( char * ) str_data [ i ] ;\n rs_bind [ i ] . buffer_length = WL4435_STRING_SIZE ;\n rs_bind [ i ] . length = & str_length ;\n break ;\n case MYSQL_TYPE_DOUBLE : rs_bind [ i ] . buffer = ( char * ) & dbl_data [ i ] ;\n rs_bind [ i ] . buffer_length = sizeof ( dbl_data ) ;\n break ;\n case MYSQL_TYPE_NEWDECIMAL : rs_bind [ i ] . buffer = ( char * ) dec_data [ i ] ;\n rs_bind [ i ] . buffer_length = WL4435_STRING_SIZE ;\n rs_bind [ i ] . length = & str_length ;\n break ;\n default : fprintf ( stderr , \"ERROR: unexpected type: %d.\\n\" , fields [ i ] . type ) ;\n exit ( 1 ) ;\n }\n }\n rc = mysql_stmt_bind_result ( stmt , rs_bind ) ;\n check_execute ( stmt , rc ) ;\n mct_log ( \"Data:\\n\" ) ;\n while ( 1 ) {\n int rc = mysql_stmt_fetch ( stmt ) ;\n if ( rc == 1 || rc == MYSQL_NO_DATA ) break ;\n mct_log ( \" \" ) ;\n for ( i = 0 ;\n i < num_fields ;\n ++ i ) {\n switch ( rs_bind [ i ] . buffer_type ) {\n case MYSQL_TYPE_LONG : mct_log ( \" int: %ld;\n\" , ( long ) * ( ( int * ) rs_bind [ i ] . buffer ) ) ;\n break ;\n case MYSQL_TYPE_STRING : mct_log ( \" str: '%s';\n\" , ( char * ) rs_bind [ i ] . buffer ) ;\n break ;\n case MYSQL_TYPE_DOUBLE : mct_log ( \" dbl: %lf;\n\" , ( double ) * ( ( double * ) rs_bind [ i ] . buffer ) ) ;\n break ;\n case MYSQL_TYPE_NEWDECIMAL : mct_log ( \" dec: '%s';\n\" , ( char * ) rs_bind [ i ] . buffer ) ;\n break ;\n default : printf ( \" unexpected type (%d)\\n\" , rs_bind [ i ] . buffer_type ) ;\n }\n }\n mct_log ( \"\\n\" ) ;\n }\n mct_log ( \"EOF\\n\" ) ;\n rc = mysql_stmt_next_result ( stmt ) ;\n mct_log ( \"mysql_stmt_next_result(): %d;\n field_count: %d\\n\" , ( int ) rc , ( int ) mysql -> field_count ) ;\n free ( rs_bind ) ;\n mysql_free_result ( rs_metadata ) ;\n if ( rc > 0 ) {\n printf ( \"Error: %s (errno: %d)\\n\" , mysql_stmt_error ( stmt ) , mysql_stmt_errno ( stmt ) ) ;\n DIE ( rc > 0 ) ;\n }\n if ( rc ) break ;\n if ( ! mysql -> field_count ) {\n break ;\n }\n }\n }\n mysql_stmt_close ( stmt ) ;\n mct_close_log ( ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n {\n const char * str_koi8r = \"\\xee\\xd5\\x2c\\x20\\xda\\xc1\\x20\\xd2\\xd9\\xc2\\xc1\\xcc\\xcb\\xd5\" ;\n const char * str_cp1251 = \"\\xcd\\xf3\\x2c\\x20\\xe7\\xe0\\x20\\xf0\\xfb\\xe1\\xe0\\xeb\\xea\\xf3\" ;\n char o1_buffer [ 255 ] ;\n ulong o1_length ;\n char o2_buffer [ 255 ] ;\n ulong o2_length ;\n MYSQL_BIND rs_bind [ 2 ] ;\n strmov ( query , \"CALL p2(?, ?, ?)\" ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt ( stmt ) ;\n memset ( ps_params , 0 , sizeof ( ps_params ) ) ;\n ps_params [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n ps_params [ 0 ] . buffer = ( char * ) str_koi8r ;\n ps_params [ 0 ] . buffer_length = strlen ( str_koi8r ) ;\n ps_params [ 1 ] . buffer_type = MYSQL_TYPE_STRING ;\n ps_params [ 1 ] . buffer = o1_buffer ;\n ps_params [ 1 ] . buffer_length = 0 ;\n ps_params [ 2 ] . buffer_type = MYSQL_TYPE_STRING ;\n ps_params [ 2 ] . buffer = o2_buffer ;\n ps_params [ 2 ] . buffer_length = 0 ;\n rc = mysql_stmt_bind_param ( stmt , ps_params ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_query ( mysql , \"SET NAMES binary\" ) ;\n myquery ( rc ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n memset ( rs_bind , 0 , sizeof ( rs_bind ) ) ;\n rs_bind [ 0 ] . buffer_type = MYSQL_TYPE_STRING ;\n rs_bind [ 0 ] . buffer = o1_buffer ;\n rs_bind [ 0 ] . buffer_length = sizeof ( o1_buffer ) ;\n rs_bind [ 0 ] . length = & o1_length ;\n rs_bind [ 1 ] . buffer_type = MYSQL_TYPE_BLOB ;\n rs_bind [ 1 ] . buffer = o2_buffer ;\n rs_bind [ 1 ] . buffer_length = sizeof ( o2_buffer ) ;\n rs_bind [ 1 ] . length = & o2_length ;\n rc = mysql_stmt_bind_result ( stmt , rs_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n DIE_UNLESS ( o1_length == strlen ( str_cp1251 ) ) ;\n DIE_UNLESS ( o2_length == strlen ( str_koi8r ) ) ;\n DIE_UNLESS ( ! memcmp ( o1_buffer , str_cp1251 , o1_length ) ) ;\n DIE_UNLESS ( ! memcmp ( o2_buffer , str_koi8r , o2_length ) ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n rc = mysql_stmt_next_result ( stmt ) ;\n DIE_UNLESS ( rc == 0 && mysql -> field_count == 0 ) ;\n mysql_stmt_close ( stmt ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n }\n }"}
{"idx": 20041, "target": 0, "func": "static void count_file ( GFileInfo * info , CommonJob * job , SourceInfo * source_info ) {\n source_info -> num_files += 1 ;\n source_info -> num_bytes += g_file_info_get_size ( info ) ;\n if ( source_info -> num_files_since_progress ++ > 100 ) {\n report_preparing_count_progress ( job , source_info ) ;\n source_info -> num_files_since_progress = 0 ;\n }\n }"}
{"idx": 20042, "target": 0, "func": "static gcry_err_code_t pss_encode ( gcry_mpi_t * r_result , unsigned int nbits , int algo , const unsigned char * value , size_t valuelen , int saltlen , const void * random_override , size_t random_override_len ) {\n gcry_err_code_t rc = 0 ;\n gcry_error_t err ;\n size_t hlen ;\n unsigned char * em = NULL ;\n size_t emlen = ( nbits + 7 ) / 8 ;\n unsigned char * h ;\n unsigned char * buf = NULL ;\n size_t buflen ;\n unsigned char * mhash ;\n unsigned char * salt ;\n unsigned char * dbmask ;\n unsigned char * p ;\n size_t n ;\n hlen = gcry_md_get_algo_dlen ( algo ) ;\n gcry_assert ( hlen ) ;\n buflen = 8 + hlen + saltlen + ( emlen - hlen - 1 ) ;\n buf = gcry_malloc ( buflen ) ;\n if ( ! buf ) {\n rc = gpg_err_code_from_syserror ( ) ;\n goto leave ;\n }\n mhash = buf + 8 ;\n salt = mhash + hlen ;\n dbmask = salt + saltlen ;\n if ( valuelen != hlen ) {\n rc = GPG_ERR_INV_LENGTH ;\n goto leave ;\n }\n memcpy ( mhash , value , hlen ) ;\n if ( emlen < hlen + saltlen + 2 ) {\n rc = GPG_ERR_TOO_SHORT ;\n goto leave ;\n }\n em = gcry_malloc ( emlen ) ;\n if ( ! em ) {\n rc = gpg_err_code_from_syserror ( ) ;\n goto leave ;\n }\n h = em + emlen - 1 - hlen ;\n if ( saltlen ) {\n if ( random_override ) {\n if ( random_override_len != saltlen ) {\n rc = GPG_ERR_INV_ARG ;\n goto leave ;\n }\n memcpy ( salt , random_override , saltlen ) ;\n }\n else gcry_randomize ( salt , saltlen , GCRY_STRONG_RANDOM ) ;\n }\n memset ( buf , 0 , 8 ) ;\n gcry_md_hash_buffer ( algo , h , buf , 8 + hlen + saltlen ) ;\n p = em + emlen - 1 - hlen - saltlen - 1 ;\n memset ( em , 0 , p - em ) ;\n * p ++ = 0x01 ;\n memcpy ( p , salt , saltlen ) ;\n mgf1 ( dbmask , emlen - hlen - 1 , h , hlen , algo ) ;\n for ( n = 0 , p = dbmask ;\n n < emlen - hlen - 1 ;\n n ++ , p ++ ) em [ n ] ^= * p ;\n em [ 0 ] &= 0xFF >> ( 8 * emlen - nbits ) ;\n em [ emlen - 1 ] = 0xbc ;\n err = gcry_mpi_scan ( r_result , GCRYMPI_FMT_USG , em , emlen , NULL ) ;\n if ( err ) rc = gcry_err_code ( err ) ;\n else if ( DBG_CIPHER ) log_mpidump ( \"PSS encoded data\" , * r_result ) ;\n leave : if ( em ) {\n wipememory ( em , emlen ) ;\n gcry_free ( em ) ;\n }\n if ( buf ) {\n wipememory ( buf , buflen ) ;\n gcry_free ( buf ) ;\n }\n return rc ;\n }"}
{"idx": 20043, "target": 0, "func": "TSReturnCode TSHttpAltInfoClientReqGet ( TSHttpAltInfo infop , TSMBuffer * bufp , TSMLoc * obj ) {\n sdk_assert ( sdk_sanity_check_alt_info ( infop ) == TS_SUCCESS ) ;\n HttpAltInfo * info = ( HttpAltInfo * ) infop ;\n * ( reinterpret_cast < HTTPHdr * * > ( bufp ) ) = & info -> m_client_req ;\n * obj = reinterpret_cast < TSMLoc > ( info -> m_client_req . m_http ) ;\n return sdk_sanity_check_mbuffer ( * bufp ) ;\n }"}
{"idx": 20044, "target": 0, "func": "static const char * cmd_resquest_body_limit_action ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {\n directory_config * dcfg = ( directory_config * ) _dcfg ;\n if ( dcfg == NULL ) return NULL ;\n if ( dcfg -> is_enabled == MODSEC_DETECTION_ONLY ) {\n dcfg -> if_limit_action = REQUEST_BODY_LIMIT_ACTION_PARTIAL ;\n return NULL ;\n }\n if ( strcasecmp ( p1 , \"ProcessPartial\" ) == 0 ) dcfg -> if_limit_action = REQUEST_BODY_LIMIT_ACTION_PARTIAL ;\n else if ( strcasecmp ( p1 , \"Reject\" ) == 0 ) dcfg -> if_limit_action = REQUEST_BODY_LIMIT_ACTION_REJECT ;\n else return apr_psprintf ( cmd -> pool , \"ModSecurity: Invalid value for SecRequestBodyLimitAction: %s\" , p1 ) ;\n return NULL ;\n }"}
{"idx": 20045, "target": 0, "func": "static void * Type_LUT16_Read ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number * nItems , cmsUInt32Number SizeOfTag ) {\n cmsUInt8Number InputChannels , OutputChannels , CLUTpoints ;\n cmsPipeline * NewLUT = NULL ;\n cmsUInt32Number nTabSize ;\n cmsFloat64Number Matrix [ 3 * 3 ] ;\n cmsUInt16Number InputEntries , OutputEntries ;\n * nItems = 0 ;\n if ( ! _cmsReadUInt8Number ( io , & InputChannels ) ) return NULL ;\n if ( ! _cmsReadUInt8Number ( io , & OutputChannels ) ) return NULL ;\n if ( ! _cmsReadUInt8Number ( io , & CLUTpoints ) ) return NULL ;\n if ( ! _cmsReadUInt8Number ( io , NULL ) ) return NULL ;\n if ( InputChannels > cmsMAXCHANNELS ) goto Error ;\n if ( OutputChannels > cmsMAXCHANNELS ) goto Error ;\n NewLUT = cmsPipelineAlloc ( self -> ContextID , InputChannels , OutputChannels ) ;\n if ( NewLUT == NULL ) goto Error ;\n if ( ! _cmsRead15Fixed16Number ( io , & Matrix [ 0 ] ) ) goto Error ;\n if ( ! _cmsRead15Fixed16Number ( io , & Matrix [ 1 ] ) ) goto Error ;\n if ( ! _cmsRead15Fixed16Number ( io , & Matrix [ 2 ] ) ) goto Error ;\n if ( ! _cmsRead15Fixed16Number ( io , & Matrix [ 3 ] ) ) goto Error ;\n if ( ! _cmsRead15Fixed16Number ( io , & Matrix [ 4 ] ) ) goto Error ;\n if ( ! _cmsRead15Fixed16Number ( io , & Matrix [ 5 ] ) ) goto Error ;\n if ( ! _cmsRead15Fixed16Number ( io , & Matrix [ 6 ] ) ) goto Error ;\n if ( ! _cmsRead15Fixed16Number ( io , & Matrix [ 7 ] ) ) goto Error ;\n if ( ! _cmsRead15Fixed16Number ( io , & Matrix [ 8 ] ) ) goto Error ;\n if ( ( InputChannels == 3 ) && ! _cmsMAT3isIdentity ( ( cmsMAT3 * ) Matrix ) ) {\n if ( ! cmsPipelineInsertStage ( NewLUT , cmsAT_END , cmsStageAllocMatrix ( self -> ContextID , 3 , 3 , Matrix , NULL ) ) ) goto Error ;\n }\n if ( ! _cmsReadUInt16Number ( io , & InputEntries ) ) goto Error ;\n if ( ! _cmsReadUInt16Number ( io , & OutputEntries ) ) goto Error ;\n if ( InputEntries > 0x7FFF || OutputEntries > 0x7FFF ) goto Error ;\n if ( CLUTpoints == 1 ) goto Error ;\n if ( ! Read16bitTables ( self -> ContextID , io , NewLUT , InputChannels , InputEntries ) ) goto Error ;\n nTabSize = uipow ( OutputChannels , CLUTpoints , InputChannels ) ;\n if ( nTabSize == ( cmsUInt32Number ) - 1 ) goto Error ;\n if ( nTabSize > 0 ) {\n cmsUInt16Number * T ;\n T = ( cmsUInt16Number * ) _cmsCalloc ( self -> ContextID , nTabSize , sizeof ( cmsUInt16Number ) ) ;\n if ( T == NULL ) goto Error ;\n if ( ! _cmsReadUInt16Array ( io , nTabSize , T ) ) {\n _cmsFree ( self -> ContextID , T ) ;\n goto Error ;\n }\n if ( ! cmsPipelineInsertStage ( NewLUT , cmsAT_END , cmsStageAllocCLut16bit ( self -> ContextID , CLUTpoints , InputChannels , OutputChannels , T ) ) ) {\n _cmsFree ( self -> ContextID , T ) ;\n goto Error ;\n }\n _cmsFree ( self -> ContextID , T ) ;\n }\n if ( ! Read16bitTables ( self -> ContextID , io , NewLUT , OutputChannels , OutputEntries ) ) goto Error ;\n * nItems = 1 ;\n return NewLUT ;\n Error : if ( NewLUT != NULL ) cmsPipelineFree ( NewLUT ) ;\n return NULL ;\n cmsUNUSED_PARAMETER ( SizeOfTag ) ;\n }"}
{"idx": 20046, "target": 0, "func": "static void ImportRGBOQuantum ( const Image * image , QuantumInfo * quantum_info , const MagickSizeType number_pixels , const unsigned char * magick_restrict p , Quantum * magick_restrict q , ExceptionInfo * exception ) {\n QuantumAny range ;\n register ssize_t x ;\n unsigned int pixel ;\n assert ( image != ( Image * ) NULL ) ;\n assert ( image -> signature == MagickCoreSignature ) ;\n switch ( quantum_info -> depth ) {\n case 8 : {\n unsigned char pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelRed ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelGreen ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelBlue ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p = PushCharPixel ( p , & pixel ) ;\n SetPixelOpacity ( image , ScaleCharToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 10 : {\n pixel = 0 ;\n if ( quantum_info -> pack == MagickFalse ) {\n register ssize_t i ;\n size_t quantum ;\n ssize_t n ;\n n = 0 ;\n quantum = 0 ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n for ( i = 0 ;\n i < 4 ;\n i ++ ) {\n switch ( n % 3 ) {\n case 0 : {\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n quantum = ( size_t ) ( ScaleShortToQuantum ( ( unsigned short ) ( ( ( pixel >> 22 ) & 0x3ff ) << 6 ) ) ) ;\n break ;\n }\n case 1 : {\n quantum = ( size_t ) ( ScaleShortToQuantum ( ( unsigned short ) ( ( ( pixel >> 12 ) & 0x3ff ) << 6 ) ) ) ;\n break ;\n }\n case 2 : {\n quantum = ( size_t ) ( ScaleShortToQuantum ( ( unsigned short ) ( ( ( pixel >> 2 ) & 0x3ff ) << 6 ) ) ) ;\n break ;\n }\n }\n switch ( i ) {\n case 0 : SetPixelRed ( image , ( Quantum ) quantum , q ) ;\n break ;\n case 1 : SetPixelGreen ( image , ( Quantum ) quantum , q ) ;\n break ;\n case 2 : SetPixelBlue ( image , ( Quantum ) quantum , q ) ;\n break ;\n case 3 : SetPixelOpacity ( image , ( Quantum ) quantum , q ) ;\n break ;\n }\n n ++ ;\n }\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ScaleShortToQuantum ( ( unsigned short ) ( pixel << 6 ) ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ScaleShortToQuantum ( ( unsigned short ) ( pixel << 6 ) ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ScaleShortToQuantum ( ( unsigned short ) ( pixel << 6 ) ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelOpacity ( image , ScaleShortToQuantum ( ( unsigned short ) ( pixel << 6 ) ) , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 16 : {\n unsigned short pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelRed ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGreen ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlue ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelOpacity ( image , ClampToQuantum ( QuantumRange * HalfToSinglePrecision ( pixel ) ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelRed ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGreen ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlue ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p = PushShortPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelOpacity ( image , ScaleShortToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 32 : {\n unsigned int pixel ;\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n float pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushFloatPixel ( quantum_info , p , & pixel ) ;\n SetPixelOpacity ( image , ClampToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelRed ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelGreen ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelBlue ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p = PushLongPixel ( quantum_info -> endian , p , & pixel ) ;\n SetPixelOpacity ( image , ScaleLongToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n case 64 : {\n if ( quantum_info -> format == FloatingPointQuantumFormat ) {\n double pixel ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ClampToQuantum ( pixel ) , q ) ;\n p = PushDoublePixel ( quantum_info , p , & pixel ) ;\n SetPixelOpacity ( image , ClampToQuantum ( pixel ) , q ) ;\n p += quantum_info -> pad ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n default : {\n range = GetQuantumRange ( quantum_info -> depth ) ;\n for ( x = 0 ;\n x < ( ssize_t ) number_pixels ;\n x ++ ) {\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelRed ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelGreen ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelBlue ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n p = PushQuantumPixel ( quantum_info , p , & pixel ) ;\n SetPixelOpacity ( image , ScaleAnyToQuantum ( pixel , range ) , q ) ;\n q += GetPixelChannels ( image ) ;\n }\n break ;\n }\n }\n }"}
{"idx": 20047, "target": 0, "func": "static int dissect_pvfs2_mgmt_dspace_info_list_response ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n guint32 dspace_info_count , i ;\n proto_tree * arr_tree = NULL ;\n offset += 4 ;\n dspace_info_count = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_pvfs_mgmt_dspace_info_list_response_dspace_info_count , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n if ( ( dspace_info_count > 0 ) && ( tree ) ) {\n arr_tree = proto_tree_add_subtree_format ( tree , tvb , offset , dspace_info_count * 40 , ett_pvfs_mgmt_dspace_info , NULL , \"dspace_info Array (%d items)\" , dspace_info_count ) ;\n }\n for ( i = 0 ;\n i < dspace_info_count ;\n i ++ ) offset = dissect_pvfs2_mgmt_dspace_info ( tvb , arr_tree , offset , pinfo ) ;\n return offset ;\n }"}
{"idx": 20048, "target": 0, "func": "int * __xmlDefaultBufferSize ( void ) {\n if ( IS_MAIN_THREAD ) return ( & xmlDefaultBufferSize ) ;\n else return ( & xmlGetGlobalState ( ) -> xmlDefaultBufferSize ) ;\n }"}
{"idx": 20049, "target": 0, "func": "static void convolute_with_sparse ( float * out , const AMRFixed * pulses , const float * shape , int length ) {\n int i , j ;\n memset ( out , 0 , length * sizeof ( float ) ) ;\n for ( i = 0 ;\n i < pulses -> n ;\n i ++ ) for ( j = pulses -> x [ i ] ;\n j < length ;\n j ++ ) out [ j ] += pulses -> y [ i ] * shape [ j - pulses -> x [ i ] ] ;\n }"}
{"idx": 20050, "target": 0, "func": "static int calc_pframe_target_size_one_pass_cbr ( const VP9_COMP * cpi ) {\n const VP9EncoderConfig * oxcf = & cpi -> oxcf ;\n const RATE_CONTROL * rc = & cpi -> rc ;\n const SVC * const svc = & cpi -> svc ;\n const int64_t diff = rc -> optimal_buffer_level - rc -> buffer_level ;\n const int64_t one_pct_bits = 1 + rc -> optimal_buffer_level / 100 ;\n int min_frame_target = MAX ( rc -> avg_frame_bandwidth >> 4 , FRAME_OVERHEAD_BITS ) ;\n int target = rc -> avg_frame_bandwidth ;\n if ( svc -> number_temporal_layers > 1 && oxcf -> rc_mode == VPX_CBR ) {\n int current_temporal_layer = svc -> temporal_layer_id ;\n const LAYER_CONTEXT * lc = & svc -> layer_context [ current_temporal_layer ] ;\n target = lc -> avg_frame_size ;\n min_frame_target = MAX ( lc -> avg_frame_size >> 4 , FRAME_OVERHEAD_BITS ) ;\n }\n if ( diff > 0 ) {\n const int pct_low = ( int ) MIN ( diff / one_pct_bits , oxcf -> under_shoot_pct ) ;\n target -= ( target * pct_low ) / 200 ;\n }\n else if ( diff < 0 ) {\n const int pct_high = ( int ) MIN ( - diff / one_pct_bits , oxcf -> over_shoot_pct ) ;\n target += ( target * pct_high ) / 200 ;\n }\n return MAX ( min_frame_target , target ) ;\n }"}
{"idx": 20051, "target": 0, "func": "static void index_commit_for_bitmap ( struct commit * commit ) {\n if ( indexed_commits_nr >= indexed_commits_alloc ) {\n indexed_commits_alloc = ( indexed_commits_alloc + 32 ) * 2 ;\n REALLOC_ARRAY ( indexed_commits , indexed_commits_alloc ) ;\n }\n indexed_commits [ indexed_commits_nr ++ ] = commit ;\n }"}
{"idx": 20052, "target": 0, "func": "static inline void ohci_set_interrupt ( OHCIState * ohci , uint32_t intr ) {\n ohci -> intr_status |= intr ;\n ohci_intr_update ( ohci ) ;\n }"}
{"idx": 20053, "target": 0, "func": "void kadmin_addpol ( int argc , char * argv [ ] ) {\n krb5_error_code retval ;\n long mask ;\n kadm5_policy_ent_rec policy ;\n memset ( & policy , 0 , sizeof ( policy ) ) ;\n if ( kadmin_parse_policy_args ( argc , argv , & policy , & mask , \"add_policy\" ) ) {\n kadmin_addmodpol_usage ( \"add_policy\" ) ;\n return ;\n }\n policy . policy = argv [ argc - 1 ] ;\n mask |= KADM5_POLICY ;\n retval = kadm5_create_policy ( handle , & policy , mask ) ;\n if ( retval ) {\n com_err ( \"add_policy\" , retval , _ ( \"while creating policy \\\"%s\\\".\" ) , policy . policy ) ;\n }\n }"}
{"idx": 20054, "target": 0, "func": "static void simple_write_cb ( int fd , short event , void * arg ) {\n int len ;\n if ( arg == NULL ) return ;\n len = write ( fd , TEST1 , strlen ( TEST1 ) + 1 ) ;\n if ( len == - 1 ) test_ok = 0 ;\n else test_ok = 1 ;\n }"}
{"idx": 20055, "target": 0, "func": "bool RegisterChromeDownloadDelegate ( JNIEnv * env ) {\n return RegisterNativesImpl ( env ) ;\n }"}
{"idx": 20056, "target": 0, "func": "static guint16 de_auth_resp_param_ext ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len , gchar * add_string _U_ , int string_len _U_ ) {\n proto_tree_add_item ( tree , hf_gsm_a_dtap_xres , tvb , offset , len , ENC_NA ) ;\n return ( len ) ;\n }"}
{"idx": 20057, "target": 0, "func": "guint16 de_plmn_list ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string , int string_len ) {\n guint8 octs [ 3 ] ;\n guint32 curr_offset ;\n gchar mcc [ 4 ] ;\n gchar mnc [ 4 ] ;\n guint8 num_plmn ;\n proto_tree * subtree ;\n curr_offset = offset ;\n num_plmn = 0 ;\n while ( ( len - ( curr_offset - offset ) ) >= 3 ) {\n octs [ 0 ] = tvb_get_guint8 ( tvb , curr_offset ) ;\n octs [ 1 ] = tvb_get_guint8 ( tvb , curr_offset + 1 ) ;\n octs [ 2 ] = tvb_get_guint8 ( tvb , curr_offset + 2 ) ;\n mcc_mnc_aux ( octs , mcc , mnc ) ;\n subtree = proto_tree_add_subtree_format ( tree , tvb , curr_offset , 3 , ett_gsm_a_plmn , NULL , \"PLMN[%u]\" , num_plmn + 1 ) ;\n proto_tree_add_string ( subtree , hf_gsm_a_mobile_country_code , tvb , curr_offset , 3 , mcc ) ;\n proto_tree_add_string ( subtree , hf_gsm_a_mobile_network_code , tvb , curr_offset , 3 , mnc ) ;\n curr_offset += 3 ;\n num_plmn ++ ;\n }\n if ( add_string ) g_snprintf ( add_string , string_len , \" - %u PLMN%s\" , num_plmn , plurality ( num_plmn , \"\" , \"s\" ) ) ;\n EXTRANEOUS_DATA_CHECK ( len , curr_offset - offset , pinfo , & ei_gsm_a_extraneous_data ) ;\n return ( curr_offset - offset ) ;\n }"}
{"idx": 20058, "target": 0, "func": "TEST_F ( BudgetManagerTest , TestInsecureOrigin ) {\n const blink : : mojom : : BudgetOperationType type = blink : : mojom : : BudgetOperationType : : SILENT_PUSH ;\n SetOrigin ( url : : Origin ( GURL ( \"http://example.com\" ) ) ) ;\n SetSiteEngagementScore ( kTestSES ) ;\n ASSERT_FALSE ( ReserveBudget ( type ) ) ;\n ASSERT_EQ ( blink : : mojom : : BudgetServiceErrorType : : NOT_SUPPORTED , error_ ) ;\n ASSERT_FALSE ( ConsumeBudget ( type ) ) ;\n }"}
{"idx": 20059, "target": 0, "func": "static void xhci_port_update ( XHCIPort * port , int is_detach ) {\n uint32_t pls = PLS_RX_DETECT ;\n port -> portsc = PORTSC_PP ;\n if ( ! is_detach && xhci_port_have_device ( port ) ) {\n port -> portsc |= PORTSC_CCS ;\n switch ( port -> uport -> dev -> speed ) {\n case USB_SPEED_LOW : port -> portsc |= PORTSC_SPEED_LOW ;\n pls = PLS_POLLING ;\n break ;\n case USB_SPEED_FULL : port -> portsc |= PORTSC_SPEED_FULL ;\n pls = PLS_POLLING ;\n break ;\n case USB_SPEED_HIGH : port -> portsc |= PORTSC_SPEED_HIGH ;\n pls = PLS_POLLING ;\n break ;\n case USB_SPEED_SUPER : port -> portsc |= PORTSC_SPEED_SUPER ;\n port -> portsc |= PORTSC_PED ;\n pls = PLS_U0 ;\n break ;\n }\n }\n set_field ( & port -> portsc , pls , PORTSC_PLS ) ;\n trace_usb_xhci_port_link ( port -> portnr , pls ) ;\n xhci_port_notify ( port , PORTSC_CSC ) ;\n }"}
{"idx": 20060, "target": 0, "func": "static int dissect_s_supervisor_configuration_unid ( packet_info * pinfo , proto_tree * tree _U_ , proto_item * item , tvbuff_t * tvb , int offset , int total_len ) {\n if ( total_len < 10 ) {\n expert_add_info ( pinfo , item , & ei_mal_ssupervisor_configuration_unid ) ;\n return total_len ;\n }\n dissect_unid ( tvb , pinfo , offset , item , \"CFUNID SSN\" , hf_cip_ssupervisor_configuration_unid_ssn_timestamp , hf_cip_ssupervisor_configuration_unid_ssn_date , hf_cip_ssupervisor_configuration_unid_ssn_time , hf_cip_ssupervisor_configuration_unid_macid , ett_ssupervisor_configuration_unid , ett_ssupervisor_configuration_unid_ssn ) ;\n return 10 ;\n }"}
{"idx": 20061, "target": 0, "func": "static gboolean ng_read_bytes ( wtap * wth , void * buffer , unsigned int nbytes , gboolean is_random , int * err , gchar * * err_info ) {\n if ( ! ng_read_bytes_or_eof ( wth , buffer , nbytes , is_random , err , err_info ) ) {\n if ( * err == 0 ) * err = WTAP_ERR_SHORT_READ ;\n return FALSE ;\n }\n return TRUE ;\n }"}
{"idx": 20062, "target": 0, "func": "static int putint ( jas_stream_t * out , int sgnd , int prec , long val ) {\n int n ;\n int c ;\n if ( sgnd ) {\n abort ( ) ;\n }\n val &= ( 1 << prec ) - 1 ;\n n = ( prec + 7 ) / 8 ;\n while ( -- n >= 0 ) {\n c = ( val >> ( n * 8 ) ) & 0xff ;\n if ( jas_stream_putc ( out , c ) != c ) return - 1 ;\n }\n return 0 ;\n }"}
{"idx": 20063, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( DownloadExtensionTest , DownloadExtensionTest_OnDeterminingFilename_CurDirInvalid ) {\n GoOnTheRecord ( ) ;\n LoadExtension ( \"downloads_split\" ) ;\n AddFilenameDeterminer ( ) ;\n ASSERT_TRUE ( StartEmbeddedTestServer ( ) ) ;\n std : : string download_url = embedded_test_server ( ) -> GetURL ( \"/slow?0\" ) . spec ( ) ;\n std : : unique_ptr < base : : Value > result ( RunFunctionAndReturnResult ( new DownloadsDownloadFunction ( ) , base : : StringPrintf ( \"[{\n\\\"url\\\": \\\"%s\\\"}\n]\" , download_url . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( result . get ( ) ) ;\n int result_id = - 1 ;\n ASSERT_TRUE ( result -> GetAsInteger ( & result_id ) ) ;\n DownloadItem * item = GetCurrentManager ( ) -> GetDownload ( result_id ) ;\n ASSERT_TRUE ( item ) ;\n ScopedCancellingItem canceller ( item ) ;\n ASSERT_EQ ( download_url , item -> GetOriginalUrl ( ) . spec ( ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnCreated : : kEventName , base : : StringPrintf ( \"[{\n\\\"danger\\\": \\\"safe\\\",\" \" \\\"incognito\\\": false,\" \" \\\"id\\\": %d,\" \" \\\"mime\\\": \\\"text/plain\\\",\" \" \\\"paused\\\": false,\" \" \\\"url\\\": \\\"%s\\\"}\n]\" , result_id , download_url . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnDeterminingFilename : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"filename\\\":\\\"slow.txt\\\"}\n]\" , result_id ) ) ) ;\n ASSERT_TRUE ( item -> GetTargetFilePath ( ) . empty ( ) ) ;\n ASSERT_EQ ( DownloadItem : : IN_PROGRESS , item -> GetState ( ) ) ;\n std : : string error ;\n ASSERT_FALSE ( ExtensionDownloadsEventRouter : : DetermineFilename ( browser ( ) -> profile ( ) , false , GetExtensionId ( ) , result_id , base : : FilePath ( FILE_PATH_LITERAL ( \".\" ) ) , downloads : : FILENAME_CONFLICT_ACTION_UNIQUIFY , & error ) ) ;\n EXPECT_STREQ ( errors : : kInvalidFilename , error . c_str ( ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnChanged : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"filename\\\": {\n\" \" \\\"previous\\\": \\\"\\\",\" \" \\\"current\\\": \\\"%s\\\"}\n}\n]\" , result_id , GetFilename ( \"slow.txt\" ) . c_str ( ) ) ) ) ;\n ASSERT_TRUE ( WaitFor ( downloads : : OnChanged : : kEventName , base : : StringPrintf ( \"[{\n\\\"id\\\": %d,\" \" \\\"state\\\": {\n\" \" \\\"previous\\\": \\\"in_progress\\\",\" \" \\\"current\\\": \\\"complete\\\"}\n}\n]\" , result_id ) ) ) ;\n }"}
{"idx": 20064, "target": 0, "func": "vpx_codec_err_t vpx_svc_init ( SvcContext * svc_ctx , vpx_codec_ctx_t * codec_ctx , vpx_codec_iface_t * iface , vpx_codec_enc_cfg_t * enc_cfg ) {\n vpx_codec_err_t res ;\n int i ;\n SvcInternal * const si = get_svc_internal ( svc_ctx ) ;\n if ( svc_ctx == NULL || codec_ctx == NULL || iface == NULL || enc_cfg == NULL ) {\n return VPX_CODEC_INVALID_PARAM ;\n }\n if ( si == NULL ) return VPX_CODEC_MEM_ERROR ;\n si -> codec_ctx = codec_ctx ;\n si -> width = enc_cfg -> g_w ;\n si -> height = enc_cfg -> g_h ;\n if ( enc_cfg -> kf_max_dist < 2 ) {\n svc_log ( svc_ctx , SVC_LOG_ERROR , \"key frame distance too small: %d\\n\" , enc_cfg -> kf_max_dist ) ;\n return VPX_CODEC_INVALID_PARAM ;\n }\n si -> kf_dist = enc_cfg -> kf_max_dist ;\n if ( svc_ctx -> spatial_layers == 0 ) svc_ctx -> spatial_layers = VPX_SS_DEFAULT_LAYERS ;\n if ( svc_ctx -> spatial_layers < 1 || svc_ctx -> spatial_layers > VPX_SS_MAX_LAYERS ) {\n svc_log ( svc_ctx , SVC_LOG_ERROR , \"spatial layers: invalid value: %d\\n\" , svc_ctx -> spatial_layers ) ;\n return VPX_CODEC_INVALID_PARAM ;\n }\n for ( i = 0 ;\n i < VPX_SS_MAX_LAYERS ;\n ++ i ) {\n si -> svc_params . max_quantizers [ i ] = MAX_QUANTIZER ;\n si -> svc_params . min_quantizers [ i ] = 0 ;\n si -> svc_params . scaling_factor_num [ i ] = DEFAULT_SCALE_FACTORS_NUM [ i ] ;\n si -> svc_params . scaling_factor_den [ i ] = DEFAULT_SCALE_FACTORS_DEN [ i ] ;\n }\n res = parse_options ( svc_ctx , si -> options ) ;\n if ( res != VPX_CODEC_OK ) return res ;\n if ( svc_ctx -> spatial_layers < 1 ) svc_ctx -> spatial_layers = 1 ;\n if ( svc_ctx -> spatial_layers > VPX_SS_MAX_LAYERS ) svc_ctx -> spatial_layers = VPX_SS_MAX_LAYERS ;\n if ( svc_ctx -> temporal_layers < 1 ) svc_ctx -> temporal_layers = 1 ;\n if ( svc_ctx -> temporal_layers > VPX_TS_MAX_LAYERS ) svc_ctx -> temporal_layers = VPX_TS_MAX_LAYERS ;\n assign_layer_bitrates ( svc_ctx , enc_cfg ) ;\n # if CONFIG_SPATIAL_SVC for ( i = 0 ;\n i < svc_ctx -> spatial_layers ;\n ++ i ) enc_cfg -> ss_enable_auto_alt_ref [ i ] = si -> enable_auto_alt_ref [ i ] ;\n # endif if ( svc_ctx -> temporal_layers > 1 ) {\n int i ;\n for ( i = 0 ;\n i < svc_ctx -> temporal_layers ;\n ++ i ) {\n enc_cfg -> ts_target_bitrate [ i ] = enc_cfg -> rc_target_bitrate / svc_ctx -> temporal_layers ;\n enc_cfg -> ts_rate_decimator [ i ] = 1 << ( svc_ctx -> temporal_layers - 1 - i ) ;\n }\n }\n enc_cfg -> ss_number_layers = svc_ctx -> spatial_layers ;\n enc_cfg -> ts_number_layers = svc_ctx -> temporal_layers ;\n if ( enc_cfg -> g_error_resilient == 0 && si -> use_multiple_frame_contexts == 0 ) enc_cfg -> g_error_resilient = 1 ;\n res = vpx_codec_enc_init ( codec_ctx , iface , enc_cfg , VPX_CODEC_USE_PSNR ) ;\n if ( res != VPX_CODEC_OK ) {\n svc_log ( svc_ctx , SVC_LOG_ERROR , \"svc_enc_init error\\n\" ) ;\n return res ;\n }\n vpx_codec_control ( codec_ctx , VP9E_SET_SVC , 1 ) ;\n vpx_codec_control ( codec_ctx , VP9E_SET_SVC_PARAMETERS , & si -> svc_params ) ;\n return VPX_CODEC_OK ;\n }"}
{"idx": 20065, "target": 0, "func": "static void windows_print_sticky ( WINDOW_REC * win ) {\n MAIN_WINDOW_REC * mainwin ;\n GSList * tmp , * list ;\n GString * str ;\n mainwin = WINDOW_MAIN ( win ) ;\n str = g_string_new ( NULL ) ;\n list = get_sticky_windows_sorted ( mainwin ) ;\n for ( tmp = list ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n WINDOW_REC * rec = tmp -> data ;\n g_string_append_printf ( str , \"#%d, \" , rec -> refnum ) ;\n }\n g_string_truncate ( str , str -> len - 2 ) ;\n g_slist_free ( list ) ;\n printformat_window ( win , MSGLEVEL_CLIENTCRAP , TXT_WINDOW_INFO_STICKY , str -> str ) ;\n g_string_free ( str , TRUE ) ;\n }"}
{"idx": 20066, "target": 0, "func": "void nautilus_file_operations_new_file ( GtkWidget * parent_view , GdkPoint * target_point , const char * parent_dir , const char * target_filename , const char * initial_contents , int length , NautilusCreateCallback done_callback , gpointer done_callback_data ) {\n GTask * task ;\n CreateJob * job ;\n GtkWindow * parent_window ;\n parent_window = NULL ;\n if ( parent_view ) {\n parent_window = ( GtkWindow * ) gtk_widget_get_ancestor ( parent_view , GTK_TYPE_WINDOW ) ;\n }\n job = op_job_new ( CreateJob , parent_window ) ;\n job -> done_callback = done_callback ;\n job -> done_callback_data = done_callback_data ;\n job -> dest_dir = g_file_new_for_uri ( parent_dir ) ;\n if ( target_point != NULL ) {\n job -> position = * target_point ;\n job -> has_position = TRUE ;\n }\n job -> src_data = g_memdup ( initial_contents , length ) ;\n job -> length = length ;\n job -> filename = g_strdup ( target_filename ) ;\n if ( ! nautilus_file_undo_manager_is_operating ( ) ) {\n job -> common . undo_info = nautilus_file_undo_info_create_new ( NAUTILUS_FILE_UNDO_OP_CREATE_EMPTY_FILE ) ;\n }\n task = g_task_new ( NULL , job -> common . cancellable , create_task_done , job ) ;\n g_task_set_task_data ( task , job , NULL ) ;\n g_task_run_in_thread ( task , create_task_thread_func ) ;\n g_object_unref ( task ) ;\n }"}
{"idx": 20067, "target": 0, "func": "void printTextRange ( UChar * str , int32_t start , int32_t end ) {\n char charBuf [ 1000 ] ;\n UChar savedEndChar ;\n savedEndChar = str [ end ] ;\n str [ end ] = 0 ;\n u_austrncpy ( charBuf , str + start , sizeof ( charBuf ) - 1 ) ;\n charBuf [ sizeof ( charBuf ) - 1 ] = 0 ;\n printf ( \"string[%2d..%2d] \\\"%s\\\"\\n\" , start , end - 1 , charBuf ) ;\n str [ end ] = savedEndChar ;\n }"}
{"idx": 20068, "target": 0, "func": "static void udp_v6_flush_pending_frames ( struct sock * sk ) {\n struct udp_sock * up = udp_sk ( sk ) ;\n if ( up -> pending == AF_INET ) udp_flush_pending_frames ( sk ) ;\n else if ( up -> pending ) {\n up -> len = 0 ;\n up -> pending = 0 ;\n ip6_flush_pending_frames ( sk ) ;\n }\n }"}
{"idx": 20069, "target": 0, "func": "MSG_PROCESS_RETURN tls_process_client_hello ( SSL * s , PACKET * pkt ) {\n int i , al = SSL_AD_INTERNAL_ERROR ;\n unsigned int j , complen = 0 ;\n unsigned long id ;\n const SSL_CIPHER * c ;\n # ifndef OPENSSL_NO_COMP SSL_COMP * comp = NULL ;\n # endif STACK_OF ( SSL_CIPHER ) * ciphers = NULL ;\n int protverr ;\n PACKET session_id , cipher_suites , compression , extensions , cookie ;\n int is_v2_record ;\n static const unsigned char null_compression = 0 ;\n is_v2_record = RECORD_LAYER_is_sslv2_record ( & s -> rlayer ) ;\n PACKET_null_init ( & cookie ) ;\n if ( is_v2_record ) {\n unsigned int version ;\n unsigned int mt ;\n if ( ! PACKET_get_1 ( pkt , & mt ) || mt != SSL2_MT_CLIENT_HELLO ) {\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_HELLO , ERR_R_INTERNAL_ERROR ) ;\n goto err ;\n }\n if ( ! PACKET_get_net_2 ( pkt , & version ) ) {\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_HELLO , SSL_R_UNKNOWN_PROTOCOL ) ;\n goto err ;\n }\n if ( version == 0x0002 ) {\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_HELLO , SSL_R_UNKNOWN_PROTOCOL ) ;\n goto err ;\n }\n else if ( ( version & 0xff00 ) == ( SSL3_VERSION_MAJOR << 8 ) ) {\n s -> client_version = version ;\n }\n else {\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_HELLO , SSL_R_UNKNOWN_PROTOCOL ) ;\n goto err ;\n }\n }\n else {\n if ( ! PACKET_get_net_2 ( pkt , ( unsigned int * ) & s -> client_version ) ) {\n al = SSL_AD_DECODE_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_HELLO , SSL_R_LENGTH_TOO_SHORT ) ;\n goto f_err ;\n }\n }\n if ( ! SSL_IS_DTLS ( s ) ) {\n protverr = ssl_choose_server_version ( s ) ;\n }\n else if ( s -> method -> version != DTLS_ANY_VERSION && DTLS_VERSION_LT ( s -> client_version , s -> version ) ) {\n protverr = SSL_R_VERSION_TOO_LOW ;\n }\n else {\n protverr = 0 ;\n }\n if ( protverr ) {\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_HELLO , protverr ) ;\n if ( ( ! s -> enc_write_ctx && ! s -> write_hash ) ) {\n s -> version = s -> client_version ;\n }\n al = SSL_AD_PROTOCOL_VERSION ;\n goto f_err ;\n }\n if ( is_v2_record ) {\n unsigned int cipher_len , session_id_len , challenge_len ;\n PACKET challenge ;\n if ( ! PACKET_get_net_2 ( pkt , & cipher_len ) || ! PACKET_get_net_2 ( pkt , & session_id_len ) || ! PACKET_get_net_2 ( pkt , & challenge_len ) ) {\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_HELLO , SSL_R_RECORD_LENGTH_MISMATCH ) ;\n al = SSL_AD_DECODE_ERROR ;\n goto f_err ;\n }\n if ( session_id_len > SSL_MAX_SSL_SESSION_ID_LENGTH ) {\n al = SSL_AD_DECODE_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_HELLO , SSL_R_LENGTH_MISMATCH ) ;\n goto f_err ;\n }\n if ( ! PACKET_get_sub_packet ( pkt , & cipher_suites , cipher_len ) || ! PACKET_get_sub_packet ( pkt , & session_id , session_id_len ) || ! PACKET_get_sub_packet ( pkt , & challenge , challenge_len ) || PACKET_remaining ( pkt ) != 0 ) {\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_HELLO , SSL_R_RECORD_LENGTH_MISMATCH ) ;\n al = SSL_AD_DECODE_ERROR ;\n goto f_err ;\n }\n challenge_len = challenge_len > SSL3_RANDOM_SIZE ? SSL3_RANDOM_SIZE : challenge_len ;\n memset ( s -> s3 -> client_random , 0 , SSL3_RANDOM_SIZE ) ;\n if ( ! PACKET_copy_bytes ( & challenge , s -> s3 -> client_random + SSL3_RANDOM_SIZE - challenge_len , challenge_len ) || ! PACKET_buf_init ( & compression , & null_compression , 1 ) ) {\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_HELLO , ERR_R_INTERNAL_ERROR ) ;\n al = SSL_AD_INTERNAL_ERROR ;\n goto f_err ;\n }\n PACKET_null_init ( & extensions ) ;\n }\n else {\n if ( ! PACKET_copy_bytes ( pkt , s -> s3 -> client_random , SSL3_RANDOM_SIZE ) || ! PACKET_get_length_prefixed_1 ( pkt , & session_id ) ) {\n al = SSL_AD_DECODE_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_HELLO , SSL_R_LENGTH_MISMATCH ) ;\n goto f_err ;\n }\n if ( PACKET_remaining ( & session_id ) > SSL_MAX_SSL_SESSION_ID_LENGTH ) {\n al = SSL_AD_DECODE_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_HELLO , SSL_R_LENGTH_MISMATCH ) ;\n goto f_err ;\n }\n if ( SSL_IS_DTLS ( s ) ) {\n if ( ! PACKET_get_length_prefixed_1 ( pkt , & cookie ) ) {\n al = SSL_AD_DECODE_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_HELLO , SSL_R_LENGTH_MISMATCH ) ;\n goto f_err ;\n }\n if ( SSL_get_options ( s ) & SSL_OP_COOKIE_EXCHANGE ) {\n if ( PACKET_remaining ( & cookie ) == 0 ) return 1 ;\n }\n }\n if ( ! PACKET_get_length_prefixed_2 ( pkt , & cipher_suites ) || ! PACKET_get_length_prefixed_1 ( pkt , & compression ) ) {\n al = SSL_AD_DECODE_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_HELLO , SSL_R_LENGTH_MISMATCH ) ;\n goto f_err ;\n }\n extensions = * pkt ;\n }\n if ( SSL_IS_DTLS ( s ) ) {\n if ( SSL_get_options ( s ) & SSL_OP_COOKIE_EXCHANGE ) {\n if ( s -> ctx -> app_verify_cookie_cb != NULL ) {\n if ( s -> ctx -> app_verify_cookie_cb ( s , PACKET_data ( & cookie ) , PACKET_remaining ( & cookie ) ) == 0 ) {\n al = SSL_AD_HANDSHAKE_FAILURE ;\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_HELLO , SSL_R_COOKIE_MISMATCH ) ;\n goto f_err ;\n }\n }\n else if ( ! PACKET_equal ( & cookie , s -> d1 -> cookie , s -> d1 -> cookie_len ) ) {\n al = SSL_AD_HANDSHAKE_FAILURE ;\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_HELLO , SSL_R_COOKIE_MISMATCH ) ;\n goto f_err ;\n }\n s -> d1 -> cookie_verified = 1 ;\n }\n if ( s -> method -> version == DTLS_ANY_VERSION ) {\n protverr = ssl_choose_server_version ( s ) ;\n if ( protverr != 0 ) {\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_HELLO , protverr ) ;\n s -> version = s -> client_version ;\n al = SSL_AD_PROTOCOL_VERSION ;\n goto f_err ;\n }\n }\n }\n s -> hit = 0 ;\n if ( is_v2_record || ( s -> new_session && ( s -> options & SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION ) ) ) {\n if ( ! ssl_get_new_session ( s , 1 ) ) goto err ;\n }\n else {\n i = ssl_get_prev_session ( s , & extensions , & session_id ) ;\n if ( i == 1 && s -> version == s -> session -> ssl_version ) {\n s -> hit = 1 ;\n }\n else if ( i == - 1 ) {\n goto err ;\n }\n else {\n if ( ! ssl_get_new_session ( s , 1 ) ) goto err ;\n }\n }\n if ( ssl_bytes_to_cipher_list ( s , & cipher_suites , & ( ciphers ) , is_v2_record , & al ) == NULL ) {\n goto f_err ;\n }\n if ( s -> hit ) {\n j = 0 ;\n id = s -> session -> cipher -> id ;\n # ifdef CIPHER_DEBUG fprintf ( stderr , \"client sent %d ciphers\\n\" , sk_SSL_CIPHER_num ( ciphers ) ) ;\n # endif for ( i = 0 ;\n i < sk_SSL_CIPHER_num ( ciphers ) ;\n i ++ ) {\n c = sk_SSL_CIPHER_value ( ciphers , i ) ;\n # ifdef CIPHER_DEBUG fprintf ( stderr , \"client [%2d of %2d]:%s\\n\" , i , sk_SSL_CIPHER_num ( ciphers ) , SSL_CIPHER_get_name ( c ) ) ;\n # endif if ( c -> id == id ) {\n j = 1 ;\n break ;\n }\n }\n if ( j == 0 ) {\n al = SSL_AD_ILLEGAL_PARAMETER ;\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_HELLO , SSL_R_REQUIRED_CIPHER_MISSING ) ;\n goto f_err ;\n }\n }\n complen = PACKET_remaining ( & compression ) ;\n for ( j = 0 ;\n j < complen ;\n j ++ ) {\n if ( PACKET_data ( & compression ) [ j ] == 0 ) break ;\n }\n if ( j >= complen ) {\n al = SSL_AD_DECODE_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_HELLO , SSL_R_NO_COMPRESSION_SPECIFIED ) ;\n goto f_err ;\n }\n if ( s -> version >= SSL3_VERSION ) {\n if ( ! ssl_parse_clienthello_tlsext ( s , & extensions ) ) {\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_HELLO , SSL_R_PARSE_TLSEXT ) ;\n goto err ;\n }\n }\n {\n unsigned char * pos ;\n pos = s -> s3 -> server_random ;\n if ( ssl_fill_hello_random ( s , 1 , pos , SSL3_RANDOM_SIZE ) <= 0 ) {\n goto f_err ;\n }\n }\n if ( ! s -> hit && s -> version >= TLS1_VERSION && s -> tls_session_secret_cb ) {\n const SSL_CIPHER * pref_cipher = NULL ;\n s -> session -> master_key_length = sizeof ( s -> session -> master_key ) ;\n if ( s -> tls_session_secret_cb ( s , s -> session -> master_key , & s -> session -> master_key_length , ciphers , & pref_cipher , s -> tls_session_secret_cb_arg ) ) {\n s -> hit = 1 ;\n s -> session -> ciphers = ciphers ;\n s -> session -> verify_result = X509_V_OK ;\n ciphers = NULL ;\n pref_cipher = pref_cipher ? pref_cipher : ssl3_choose_cipher ( s , s -> session -> ciphers , SSL_get_ciphers ( s ) ) ;\n if ( pref_cipher == NULL ) {\n al = SSL_AD_HANDSHAKE_FAILURE ;\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_HELLO , SSL_R_NO_SHARED_CIPHER ) ;\n goto f_err ;\n }\n s -> session -> cipher = pref_cipher ;\n sk_SSL_CIPHER_free ( s -> cipher_list ) ;\n s -> cipher_list = sk_SSL_CIPHER_dup ( s -> session -> ciphers ) ;\n sk_SSL_CIPHER_free ( s -> cipher_list_by_id ) ;\n s -> cipher_list_by_id = sk_SSL_CIPHER_dup ( s -> session -> ciphers ) ;\n }\n }\n s -> s3 -> tmp . new_compression = NULL ;\n # ifndef OPENSSL_NO_COMP if ( s -> session -> compress_meth != 0 ) {\n int m , comp_id = s -> session -> compress_meth ;\n unsigned int k ;\n if ( ! ssl_allow_compression ( s ) ) {\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_HELLO , SSL_R_INCONSISTENT_COMPRESSION ) ;\n goto f_err ;\n }\n for ( m = 0 ;\n m < sk_SSL_COMP_num ( s -> ctx -> comp_methods ) ;\n m ++ ) {\n comp = sk_SSL_COMP_value ( s -> ctx -> comp_methods , m ) ;\n if ( comp_id == comp -> id ) {\n s -> s3 -> tmp . new_compression = comp ;\n break ;\n }\n }\n if ( s -> s3 -> tmp . new_compression == NULL ) {\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_HELLO , SSL_R_INVALID_COMPRESSION_ALGORITHM ) ;\n goto f_err ;\n }\n for ( k = 0 ;\n k < complen ;\n k ++ ) {\n if ( PACKET_data ( & compression ) [ k ] == comp_id ) break ;\n }\n if ( k >= complen ) {\n al = SSL_AD_ILLEGAL_PARAMETER ;\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_HELLO , SSL_R_REQUIRED_COMPRESSION_ALGORITHM_MISSING ) ;\n goto f_err ;\n }\n }\n else if ( s -> hit ) comp = NULL ;\n else if ( ssl_allow_compression ( s ) && s -> ctx -> comp_methods ) {\n int m , nn , v , done = 0 ;\n unsigned int o ;\n nn = sk_SSL_COMP_num ( s -> ctx -> comp_methods ) ;\n for ( m = 0 ;\n m < nn ;\n m ++ ) {\n comp = sk_SSL_COMP_value ( s -> ctx -> comp_methods , m ) ;\n v = comp -> id ;\n for ( o = 0 ;\n o < complen ;\n o ++ ) {\n if ( v == PACKET_data ( & compression ) [ o ] ) {\n done = 1 ;\n break ;\n }\n }\n if ( done ) break ;\n }\n if ( done ) s -> s3 -> tmp . new_compression = comp ;\n else comp = NULL ;\n }\n # else if ( s -> session -> compress_meth != 0 ) {\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_HELLO , SSL_R_INCONSISTENT_COMPRESSION ) ;\n goto f_err ;\n }\n # endif if ( ! s -> hit ) {\n # ifdef OPENSSL_NO_COMP s -> session -> compress_meth = 0 ;\n # else s -> session -> compress_meth = ( comp == NULL ) ? 0 : comp -> id ;\n # endif sk_SSL_CIPHER_free ( s -> session -> ciphers ) ;\n s -> session -> ciphers = ciphers ;\n if ( ciphers == NULL ) {\n al = SSL_AD_INTERNAL_ERROR ;\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_HELLO , ERR_R_INTERNAL_ERROR ) ;\n goto f_err ;\n }\n ciphers = NULL ;\n if ( ! tls1_set_server_sigalgs ( s ) ) {\n SSLerr ( SSL_F_TLS_PROCESS_CLIENT_HELLO , SSL_R_CLIENTHELLO_TLSEXT ) ;\n goto err ;\n }\n }\n sk_SSL_CIPHER_free ( ciphers ) ;\n return MSG_PROCESS_CONTINUE_PROCESSING ;\n f_err : ssl3_send_alert ( s , SSL3_AL_FATAL , al ) ;\n err : ossl_statem_set_error ( s ) ;\n sk_SSL_CIPHER_free ( ciphers ) ;\n return MSG_PROCESS_ERROR ;\n }"}
{"idx": 20070, "target": 0, "func": "int udp_v6_get_port ( struct sock * sk , unsigned short snum ) {\n unsigned int hash2_nulladdr = udp6_portaddr_hash ( sock_net ( sk ) , & in6addr_any , snum ) ;\n unsigned int hash2_partial = udp6_portaddr_hash ( sock_net ( sk ) , & inet6_sk ( sk ) -> rcv_saddr , 0 ) ;\n udp_sk ( sk ) -> udp_portaddr_hash = hash2_partial ;\n return udp_lib_get_port ( sk , snum , ipv6_rcv_saddr_equal , hash2_nulladdr ) ;\n }"}
{"idx": 20071, "target": 0, "func": "TEST_F ( OmniboxViewViewsTest , OnBlur ) {\n int kOmniboxWidth = 60 ;\n gfx : : RenderText * render_text = omnibox_view ( ) -> GetRenderText ( ) ;\n render_text -> SetDisplayRect ( gfx : : Rect ( 0 , 0 , kOmniboxWidth , 10 ) ) ;\n render_text -> SetHorizontalAlignment ( gfx : : ALIGN_LEFT ) ;\n omnibox_view ( ) -> OnFocus ( ) ;\n const base : : string16 kContentsRtl = base : : WideToUTF16 ( L\"\\x05e8\\x05e2.\\x05e7\\x05d5\\x05dd/0123/abcd\" ) ;\n static_cast < OmniboxView * > ( omnibox_view ( ) ) -> SetWindowTextAndCaretPos ( kContentsRtl , 0 , false , false ) ;\n EXPECT_EQ ( gfx : : NO_ELIDE , render_text -> elide_behavior ( ) ) ;\n EXPECT_GT ( 0 , render_text -> GetUpdatedDisplayOffset ( ) . x ( ) ) ;\n omnibox_view ( ) -> OnBlur ( ) ;\n EXPECT_EQ ( gfx : : ELIDE_TAIL , render_text -> elide_behavior ( ) ) ;\n EXPECT_EQ ( 0 , render_text -> GetUpdatedDisplayOffset ( ) . x ( ) ) ;\n }"}
{"idx": 20072, "target": 1, "func": "static void _dopr ( char * * sbuffer , char * * buffer , size_t * maxlen , size_t * retlen , int * truncated , const char * format , va_list args ) {\n char ch ;\n LLONG value ;\n LDOUBLE fvalue ;\n char * strvalue ;\n int min ;\n int max ;\n int state ;\n int flags ;\n int cflags ;\n size_t currlen ;\n state = DP_S_DEFAULT ;\n flags = currlen = cflags = min = 0 ;\n max = - 1 ;\n ch = * format ++ ;\n while ( state != DP_S_DONE ) {\n if ( ch == '\\0' || ( buffer == NULL && currlen >= * maxlen ) ) state = DP_S_DONE ;\n switch ( state ) {\n case DP_S_DEFAULT : if ( ch == '%' ) state = DP_S_FLAGS ;\n else doapr_outch ( sbuffer , buffer , & currlen , maxlen , ch ) ;\n ch = * format ++ ;\n break ;\n case DP_S_FLAGS : switch ( ch ) {\n case '-' : flags |= DP_F_MINUS ;\n ch = * format ++ ;\n break ;\n case '+' : flags |= DP_F_PLUS ;\n ch = * format ++ ;\n break ;\n case ' ' : flags |= DP_F_SPACE ;\n ch = * format ++ ;\n break ;\n case '#' : flags |= DP_F_NUM ;\n ch = * format ++ ;\n break ;\n case '0' : flags |= DP_F_ZERO ;\n ch = * format ++ ;\n break ;\n default : state = DP_S_MIN ;\n break ;\n }\n break ;\n case DP_S_MIN : if ( isdigit ( ( unsigned char ) ch ) ) {\n min = 10 * min + char_to_int ( ch ) ;\n ch = * format ++ ;\n }\n else if ( ch == '*' ) {\n min = va_arg ( args , int ) ;\n ch = * format ++ ;\n state = DP_S_DOT ;\n }\n else state = DP_S_DOT ;\n break ;\n case DP_S_DOT : if ( ch == '.' ) {\n state = DP_S_MAX ;\n ch = * format ++ ;\n }\n else state = DP_S_MOD ;\n break ;\n case DP_S_MAX : if ( isdigit ( ( unsigned char ) ch ) ) {\n if ( max < 0 ) max = 0 ;\n max = 10 * max + char_to_int ( ch ) ;\n ch = * format ++ ;\n }\n else if ( ch == '*' ) {\n max = va_arg ( args , int ) ;\n ch = * format ++ ;\n state = DP_S_MOD ;\n }\n else state = DP_S_MOD ;\n break ;\n case DP_S_MOD : switch ( ch ) {\n case 'h' : cflags = DP_C_SHORT ;\n ch = * format ++ ;\n break ;\n case 'l' : if ( * format == 'l' ) {\n cflags = DP_C_LLONG ;\n format ++ ;\n }\n else cflags = DP_C_LONG ;\n ch = * format ++ ;\n break ;\n case 'q' : cflags = DP_C_LLONG ;\n ch = * format ++ ;\n break ;\n case 'L' : cflags = DP_C_LDOUBLE ;\n ch = * format ++ ;\n break ;\n default : break ;\n }\n state = DP_S_CONV ;\n break ;\n case DP_S_CONV : switch ( ch ) {\n case 'd' : case 'i' : switch ( cflags ) {\n case DP_C_SHORT : value = ( short int ) va_arg ( args , int ) ;\n break ;\n case DP_C_LONG : value = va_arg ( args , long int ) ;\n break ;\n case DP_C_LLONG : value = va_arg ( args , LLONG ) ;\n break ;\n default : value = va_arg ( args , int ) ;\n break ;\n }\n fmtint ( sbuffer , buffer , & currlen , maxlen , value , 10 , min , max , flags ) ;\n break ;\n case 'X' : flags |= DP_F_UP ;\n case 'x' : case 'o' : case 'u' : flags |= DP_F_UNSIGNED ;\n switch ( cflags ) {\n case DP_C_SHORT : value = ( unsigned short int ) va_arg ( args , unsigned int ) ;\n break ;\n case DP_C_LONG : value = ( LLONG ) va_arg ( args , unsigned long int ) ;\n break ;\n case DP_C_LLONG : value = va_arg ( args , unsigned LLONG ) ;\n break ;\n default : value = ( LLONG ) va_arg ( args , unsigned int ) ;\n break ;\n }\n fmtint ( sbuffer , buffer , & currlen , maxlen , value , ch == 'o' ? 8 : ( ch == 'u' ? 10 : 16 ) , min , max , flags ) ;\n break ;\n case 'f' : if ( cflags == DP_C_LDOUBLE ) fvalue = va_arg ( args , LDOUBLE ) ;\n else fvalue = va_arg ( args , double ) ;\n fmtfp ( sbuffer , buffer , & currlen , maxlen , fvalue , min , max , flags ) ;\n break ;\n case 'E' : flags |= DP_F_UP ;\n case 'e' : if ( cflags == DP_C_LDOUBLE ) fvalue = va_arg ( args , LDOUBLE ) ;\n else fvalue = va_arg ( args , double ) ;\n break ;\n case 'G' : flags |= DP_F_UP ;\n case 'g' : if ( cflags == DP_C_LDOUBLE ) fvalue = va_arg ( args , LDOUBLE ) ;\n else fvalue = va_arg ( args , double ) ;\n break ;\n case 'c' : doapr_outch ( sbuffer , buffer , & currlen , maxlen , va_arg ( args , int ) ) ;\n break ;\n case 's' : strvalue = va_arg ( args , char * ) ;\n if ( max < 0 ) {\n if ( buffer ) max = INT_MAX ;\n else max = * maxlen ;\n }\n fmtstr ( sbuffer , buffer , & currlen , maxlen , strvalue , flags , min , max ) ;\n break ;\n case 'p' : value = ( long ) va_arg ( args , void * ) ;\n fmtint ( sbuffer , buffer , & currlen , maxlen , value , 16 , min , max , flags | DP_F_NUM ) ;\n break ;\n case 'n' : if ( cflags == DP_C_SHORT ) {\n short int * num ;\n num = va_arg ( args , short int * ) ;\n * num = currlen ;\n }\n else if ( cflags == DP_C_LONG ) {\n long int * num ;\n num = va_arg ( args , long int * ) ;\n * num = ( long int ) currlen ;\n }\n else if ( cflags == DP_C_LLONG ) {\n LLONG * num ;\n num = va_arg ( args , LLONG * ) ;\n * num = ( LLONG ) currlen ;\n }\n else {\n int * num ;\n num = va_arg ( args , int * ) ;\n * num = currlen ;\n }\n break ;\n case '%' : doapr_outch ( sbuffer , buffer , & currlen , maxlen , ch ) ;\n break ;\n case 'w' : ch = * format ++ ;\n break ;\n default : break ;\n }\n ch = * format ++ ;\n state = DP_S_DEFAULT ;\n flags = cflags = min = 0 ;\n max = - 1 ;\n break ;\n case DP_S_DONE : break ;\n default : break ;\n }\n }\n * truncated = ( currlen > * maxlen - 1 ) ;\n if ( * truncated ) currlen = * maxlen - 1 ;\n doapr_outch ( sbuffer , buffer , & currlen , maxlen , '\\0' ) ;\n * retlen = currlen - 1 ;\n return ;\n }"}
{"idx": 20073, "target": 0, "func": "static void ntpversion ( struct parse * pcmd , FILE * fp ) {\n if ( pcmd -> nargs == 0 ) {\n ( void ) fprintf ( fp , \"NTP version being claimed is %d\\n\" , pktversion ) ;\n }\n else {\n if ( pcmd -> argval [ 0 ] . uval < NTP_OLDVERSION || pcmd -> argval [ 0 ] . uval > NTP_VERSION ) {\n ( void ) fprintf ( stderr , \"versions %d to %d, please\\n\" , NTP_OLDVERSION , NTP_VERSION ) ;\n }\n else {\n pktversion = ( u_char ) pcmd -> argval [ 0 ] . uval ;\n }\n }\n }"}
{"idx": 20074, "target": 0, "func": "static int selinux_umount ( struct vfsmount * mnt , int flags ) {\n const struct cred * cred = current_cred ( ) ;\n return superblock_has_perm ( cred , mnt -> mnt_sb , FILESYSTEM__UNMOUNT , NULL ) ;\n }"}
{"idx": 20075, "target": 1, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n EightBpsContext * const c = avctx -> priv_data ;\n const unsigned char * encoded = buf ;\n unsigned char * pixptr , * pixptr_end ;\n unsigned int height = avctx -> height ;\n unsigned int dlen , p , row ;\n const unsigned char * lp , * dp ;\n unsigned char count ;\n unsigned int px_inc ;\n unsigned int planes = c -> planes ;\n unsigned char * planemap = c -> planemap ;\n int ret ;\n if ( c -> pic . data [ 0 ] ) avctx -> release_buffer ( avctx , & c -> pic ) ;\n c -> pic . reference = 0 ;\n c -> pic . buffer_hints = FF_BUFFER_HINTS_VALID ;\n if ( ( ret = ff_get_buffer ( avctx , & c -> pic ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n dp = encoded + planes * ( height << 1 ) ;\n if ( planes == 4 ) planes -- ;\n px_inc = planes + ( avctx -> pix_fmt == AV_PIX_FMT_RGB32 ) ;\n for ( p = 0 ;\n p < planes ;\n p ++ ) {\n lp = encoded + p * ( height << 1 ) ;\n for ( row = 0 ;\n row < height ;\n row ++ ) {\n pixptr = c -> pic . data [ 0 ] + row * c -> pic . linesize [ 0 ] + planemap [ p ] ;\n pixptr_end = pixptr + c -> pic . linesize [ 0 ] ;\n dlen = av_be2ne16 ( * ( const unsigned short * ) ( lp + row * 2 ) ) ;\n while ( dlen > 0 ) {\n if ( dp + 1 >= buf + buf_size ) return AVERROR_INVALIDDATA ;\n if ( ( count = * dp ++ ) <= 127 ) {\n count ++ ;\n dlen -= count + 1 ;\n if ( pixptr + count * px_inc > pixptr_end ) break ;\n if ( dp + count > buf + buf_size ) return AVERROR_INVALIDDATA ;\n while ( count -- ) {\n * pixptr = * dp ++ ;\n pixptr += px_inc ;\n }\n }\n else {\n count = 257 - count ;\n if ( pixptr + count * px_inc > pixptr_end ) break ;\n while ( count -- ) {\n * pixptr = * dp ;\n pixptr += px_inc ;\n }\n dp ++ ;\n dlen -= 2 ;\n }\n }\n }\n }\n if ( avctx -> bits_per_coded_sample <= 8 ) {\n const uint8_t * pal = av_packet_get_side_data ( avpkt , AV_PKT_DATA_PALETTE , NULL ) ;\n if ( pal ) {\n c -> pic . palette_has_changed = 1 ;\n memcpy ( c -> pal , pal , AVPALETTE_SIZE ) ;\n }\n memcpy ( c -> pic . data [ 1 ] , c -> pal , AVPALETTE_SIZE ) ;\n }\n * got_frame = 1 ;\n * ( AVFrame * ) data = c -> pic ;\n return buf_size ;\n }"}
{"idx": 20076, "target": 0, "func": "static void ras_call_matching ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , h225_packet_info * pi ) {\n proto_item * hidden_item ;\n conversation_t * conversation = NULL ;\n h225ras_call_info_key h225ras_call_key ;\n h225ras_call_t * h225ras_call = NULL ;\n nstime_t delta ;\n guint msg_category ;\n if ( pi -> msg_type == H225_RAS && pi -> msg_tag < 21 ) {\n msg_category = pi -> msg_tag / 3 ;\n if ( pi -> msg_tag % 3 == 0 ) {\n conversation = find_or_create_conversation ( pinfo ) ;\n h225ras_call_key . reqSeqNum = pi -> requestSeqNum ;\n h225ras_call_key . conversation = conversation ;\n h225ras_call = find_h225ras_call ( & h225ras_call_key , msg_category ) ;\n if ( h225ras_call != NULL ) {\n do {\n if ( pinfo -> num == h225ras_call -> req_num ) {\n break ;\n }\n if ( h225ras_call -> next_call == NULL ) {\n if ( ( pinfo -> num > h225ras_call -> rsp_num && h225ras_call -> rsp_num != 0 && pinfo -> abs_ts . secs > ( h225ras_call -> req_time . secs + THRESHOLD_REPEATED_RESPONDED_CALL ) ) || ( pinfo -> num > h225ras_call -> req_num && h225ras_call -> rsp_num == 0 && pinfo -> abs_ts . secs > ( h225ras_call -> req_time . secs + THRESHOLD_REPEATED_NOT_RESPONDED_CALL ) ) ) {\n h225ras_call = append_h225ras_call ( h225ras_call , pinfo , & pi -> guid , msg_category ) ;\n }\n else {\n pi -> is_duplicate = TRUE ;\n hidden_item = proto_tree_add_uint ( tree , hf_h225_ras_dup , tvb , 0 , 0 , pi -> requestSeqNum ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n }\n break ;\n }\n h225ras_call = h225ras_call -> next_call ;\n }\n while ( h225ras_call != NULL ) ;\n }\n else {\n h225ras_call = new_h225ras_call ( & h225ras_call_key , pinfo , & pi -> guid , msg_category ) ;\n }\n if ( h225ras_call && h225ras_call -> rsp_num != 0 ) {\n proto_item * ti = proto_tree_add_uint_format ( tree , hf_h225_ras_rsp_frame , tvb , 0 , 0 , h225ras_call -> rsp_num , \"The response to this request is in frame %u\" , h225ras_call -> rsp_num ) ;\n PROTO_ITEM_SET_GENERATED ( ti ) ;\n }\n }\n else {\n conversation = find_conversation ( pinfo -> num , & pinfo -> src , & pinfo -> dst , pinfo -> ptype , pinfo -> srcport , pinfo -> destport , 0 ) ;\n if ( conversation != NULL ) {\n h225ras_call_key . reqSeqNum = pi -> requestSeqNum ;\n h225ras_call_key . conversation = conversation ;\n h225ras_call = find_h225ras_call ( & h225ras_call_key , msg_category ) ;\n if ( h225ras_call ) {\n do {\n if ( pinfo -> num == h225ras_call -> rsp_num ) {\n break ;\n }\n if ( h225ras_call -> next_call == NULL ) {\n break ;\n }\n h225ras_call = h225ras_call -> next_call ;\n }\n while ( h225ras_call != NULL ) ;\n if ( ! h225ras_call ) {\n return ;\n }\n if ( msg_category == 3 || msg_category == 5 ) {\n pi -> guid = h225ras_call -> guid ;\n hidden_item = proto_tree_add_guid ( tree , hf_h225_guid , tvb , 0 , GUID_LEN , & pi -> guid ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n }\n if ( h225ras_call -> rsp_num == 0 ) {\n h225ras_call -> rsp_num = pinfo -> num ;\n }\n else {\n if ( h225ras_call -> rsp_num != pinfo -> num ) {\n pi -> is_duplicate = TRUE ;\n hidden_item = proto_tree_add_uint ( tree , hf_h225_ras_dup , tvb , 0 , 0 , pi -> requestSeqNum ) ;\n PROTO_ITEM_SET_HIDDEN ( hidden_item ) ;\n }\n }\n if ( h225ras_call -> req_num != 0 ) {\n proto_item * ti ;\n h225ras_call -> responded = TRUE ;\n pi -> request_available = TRUE ;\n ti = proto_tree_add_uint_format ( tree , hf_h225_ras_req_frame , tvb , 0 , 0 , h225ras_call -> req_num , \"This is a response to a request in frame %u\" , h225ras_call -> req_num ) ;\n PROTO_ITEM_SET_GENERATED ( ti ) ;\n nstime_delta ( & delta , & pinfo -> abs_ts , & h225ras_call -> req_time ) ;\n pi -> delta_time = delta ;\n ti = proto_tree_add_time ( tree , hf_h225_ras_deltatime , tvb , 0 , 0 , & ( pi -> delta_time ) ) ;\n PROTO_ITEM_SET_GENERATED ( ti ) ;\n }\n }\n }\n }\n }\n }"}
{"idx": 20077, "target": 0, "func": "static Asn1Generic * DecodeAsn1DerT61String ( const unsigned char * buffer , uint32_t max_size , uint8_t depth , uint32_t * errcode ) {\n Asn1Generic * a ;\n a = DecodeAsn1DerIA5String ( buffer , max_size , depth , errcode ) ;\n if ( a != NULL ) a -> type = ASN1_T61STRING ;\n return a ;\n }"}
{"idx": 20078, "target": 0, "func": "int qemuMonitorTextAttachPCIDiskController ( qemuMonitorPtr mon , const char * bus , virDomainDevicePCIAddress * guestAddr ) {\n char * cmd = NULL ;\n char * reply = NULL ;\n int tryOldSyntax = 0 ;\n int ret = - 1 ;\n try_command : if ( virAsprintf ( & cmd , \"pci_add %s storage if=%s\" , ( tryOldSyntax ? \"0\" : \"pci_addr=auto\" ) , bus ) < 0 ) {\n virReportOOMError ( ) ;\n goto cleanup ;\n }\n if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) < 0 ) {\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"cannot attach %s disk controller\" ) , bus ) ;\n goto cleanup ;\n }\n if ( qemuMonitorTextParsePciAddReply ( mon , reply , guestAddr ) < 0 ) {\n if ( ! tryOldSyntax && strstr ( reply , \"invalid char in expression\" ) ) {\n VIR_FREE ( reply ) ;\n VIR_FREE ( cmd ) ;\n tryOldSyntax = 1 ;\n goto try_command ;\n }\n qemuReportError ( VIR_ERR_OPERATION_FAILED , _ ( \"adding %s disk controller failed: %s\" ) , bus , reply ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : VIR_FREE ( cmd ) ;\n VIR_FREE ( reply ) ;\n return ret ;\n }"}
{"idx": 20079, "target": 0, "func": "void _cmsAllocTagPluginChunk ( struct _cmsContext_struct * ctx , const struct _cmsContext_struct * src ) {\n if ( src != NULL ) {\n DupTagList ( ctx , src ) ;\n }\n else {\n static _cmsTagPluginChunkType TagPluginChunk = {\n NULL }\n ;\n ctx -> chunks [ TagPlugin ] = _cmsSubAllocDup ( ctx -> MemPool , & TagPluginChunk , sizeof ( _cmsTagPluginChunkType ) ) ;\n }\n }"}
{"idx": 20080, "target": 0, "func": "static void DumpStrDouble ( char * pt , FILE * cfff , int oper ) {\n real d ;\n if ( * pt == '[' ) ++ pt ;\n d = strtod ( pt , NULL ) ;\n dumpdbloper ( cfff , d , oper ) ;\n }"}
{"idx": 20081, "target": 0, "func": "static void setup_compound_reference_mode ( VP9_COMMON * cm ) {\n if ( cm -> ref_frame_sign_bias [ LAST_FRAME ] == cm -> ref_frame_sign_bias [ GOLDEN_FRAME ] ) {\n cm -> comp_fixed_ref = ALTREF_FRAME ;\n cm -> comp_var_ref [ 0 ] = LAST_FRAME ;\n cm -> comp_var_ref [ 1 ] = GOLDEN_FRAME ;\n }\n else if ( cm -> ref_frame_sign_bias [ LAST_FRAME ] == cm -> ref_frame_sign_bias [ ALTREF_FRAME ] ) {\n cm -> comp_fixed_ref = GOLDEN_FRAME ;\n cm -> comp_var_ref [ 0 ] = LAST_FRAME ;\n cm -> comp_var_ref [ 1 ] = ALTREF_FRAME ;\n }\n else {\n cm -> comp_fixed_ref = LAST_FRAME ;\n cm -> comp_var_ref [ 0 ] = GOLDEN_FRAME ;\n cm -> comp_var_ref [ 1 ] = ALTREF_FRAME ;\n }\n }"}
{"idx": 20082, "target": 0, "func": "static void pxa2xx_setup_cp14 ( PXA2xxState * s ) {\n define_arm_cp_regs_with_opaque ( s -> cpu , pxa_cp_reginfo , s ) ;\n }"}
{"idx": 20083, "target": 0, "func": "static void U_CALLCONV _ISCIIOpen ( UConverter * cnv , UConverterLoadArgs * pArgs , UErrorCode * errorCode ) {\n if ( pArgs -> onlyTestIsLoadable ) {\n return ;\n }\n cnv -> extraInfo = uprv_malloc ( sizeof ( UConverterDataISCII ) ) ;\n if ( cnv -> extraInfo != NULL ) {\n int32_t len = 0 ;\n UConverterDataISCII * converterData = ( UConverterDataISCII * ) cnv -> extraInfo ;\n converterData -> contextCharToUnicode = NO_CHAR_MARKER ;\n cnv -> toUnicodeStatus = missingCharMarker ;\n converterData -> contextCharFromUnicode = 0x0000 ;\n converterData -> resetToDefaultToUnicode = FALSE ;\n if ( ( pArgs -> options & UCNV_OPTIONS_VERSION_MASK ) < 9 ) {\n converterData -> currentDeltaFromUnicode = converterData -> currentDeltaToUnicode = converterData -> defDeltaToUnicode = ( uint16_t ) ( lookupInitialData [ pArgs -> options & UCNV_OPTIONS_VERSION_MASK ] . uniLang * DELTA ) ;\n converterData -> currentMaskFromUnicode = converterData -> currentMaskToUnicode = converterData -> defMaskToUnicode = lookupInitialData [ pArgs -> options & UCNV_OPTIONS_VERSION_MASK ] . maskEnum ;\n converterData -> isFirstBuffer = TRUE ;\n ( void ) uprv_strcpy ( converterData -> name , ISCII_CNV_PREFIX ) ;\n len = ( int32_t ) uprv_strlen ( converterData -> name ) ;\n converterData -> name [ len ] = ( char ) ( ( pArgs -> options & UCNV_OPTIONS_VERSION_MASK ) + '0' ) ;\n converterData -> name [ len + 1 ] = 0 ;\n converterData -> prevToUnicodeStatus = 0x0000 ;\n }\n else {\n uprv_free ( cnv -> extraInfo ) ;\n cnv -> extraInfo = NULL ;\n * errorCode = U_ILLEGAL_ARGUMENT_ERROR ;\n }\n }\n else {\n * errorCode = U_MEMORY_ALLOCATION_ERROR ;\n }\n }"}
{"idx": 20084, "target": 1, "func": "static void xhci_kick_epctx ( XHCIEPContext * epctx , unsigned int streamid ) {\n XHCIState * xhci = epctx -> xhci ;\n XHCIStreamContext * stctx ;\n XHCITransfer * xfer ;\n XHCIRing * ring ;\n USBEndpoint * ep = NULL ;\n uint64_t mfindex ;\n int length ;\n int i ;\n trace_usb_xhci_ep_kick ( epctx -> slotid , epctx -> epid , streamid ) ;\n if ( ! xhci -> slots [ epctx -> slotid - 1 ] . uport || ! xhci -> slots [ epctx -> slotid - 1 ] . uport -> dev || ! xhci -> slots [ epctx -> slotid - 1 ] . uport -> dev -> attached ) {\n return ;\n }\n if ( epctx -> retry ) {\n XHCITransfer * xfer = epctx -> retry ;\n trace_usb_xhci_xfer_retry ( xfer ) ;\n assert ( xfer -> running_retry ) ;\n if ( xfer -> timed_xfer ) {\n mfindex = xhci_mfindex_get ( xhci ) ;\n xhci_check_intr_iso_kick ( xhci , xfer , epctx , mfindex ) ;\n if ( xfer -> running_retry ) {\n return ;\n }\n xfer -> timed_xfer = 0 ;\n xfer -> running_retry = 1 ;\n }\n if ( xfer -> iso_xfer ) {\n if ( xhci_setup_packet ( xfer ) < 0 ) {\n return ;\n }\n usb_handle_packet ( xfer -> packet . ep -> dev , & xfer -> packet ) ;\n assert ( xfer -> packet . status != USB_RET_NAK ) ;\n xhci_try_complete_packet ( xfer ) ;\n }\n else {\n if ( xhci_setup_packet ( xfer ) < 0 ) {\n return ;\n }\n usb_handle_packet ( xfer -> packet . ep -> dev , & xfer -> packet ) ;\n if ( xfer -> packet . status == USB_RET_NAK ) {\n return ;\n }\n xhci_try_complete_packet ( xfer ) ;\n }\n assert ( ! xfer -> running_retry ) ;\n if ( xfer -> complete ) {\n xhci_ep_free_xfer ( epctx -> retry ) ;\n }\n epctx -> retry = NULL ;\n }\n if ( epctx -> state == EP_HALTED ) {\n DPRINTF ( \"xhci: ep halted, not running schedule\\n\" ) ;\n return ;\n }\n if ( epctx -> nr_pstreams ) {\n uint32_t err ;\n stctx = xhci_find_stream ( epctx , streamid , & err ) ;\n if ( stctx == NULL ) {\n return ;\n }\n ring = & stctx -> ring ;\n xhci_set_ep_state ( xhci , epctx , stctx , EP_RUNNING ) ;\n }\n else {\n ring = & epctx -> ring ;\n streamid = 0 ;\n xhci_set_ep_state ( xhci , epctx , NULL , EP_RUNNING ) ;\n }\n assert ( ring -> dequeue != 0 ) ;\n while ( 1 ) {\n length = xhci_ring_chain_length ( xhci , ring ) ;\n if ( length <= 0 ) {\n break ;\n }\n xfer = xhci_ep_alloc_xfer ( epctx , length ) ;\n if ( xfer == NULL ) {\n break ;\n }\n for ( i = 0 ;\n i < length ;\n i ++ ) {\n TRBType type ;\n type = xhci_ring_fetch ( xhci , ring , & xfer -> trbs [ i ] , NULL ) ;\n assert ( type ) ;\n }\n xfer -> streamid = streamid ;\n if ( epctx -> epid == 1 ) {\n xhci_fire_ctl_transfer ( xhci , xfer ) ;\n }\n else {\n xhci_fire_transfer ( xhci , xfer , epctx ) ;\n }\n if ( xfer -> complete ) {\n xhci_ep_free_xfer ( xfer ) ;\n xfer = NULL ;\n }\n if ( epctx -> state == EP_HALTED ) {\n break ;\n }\n if ( xfer != NULL && xfer -> running_retry ) {\n DPRINTF ( \"xhci: xfer nacked, stopping schedule\\n\" ) ;\n epctx -> retry = xfer ;\n break ;\n }\n }\n ep = xhci_epid_to_usbep ( epctx ) ;\n if ( ep ) {\n usb_device_flush_ep_queue ( ep -> dev , ep ) ;\n }\n }"}
{"idx": 20085, "target": 0, "func": "static void add_frame_default ( AVFrame * f , const uint8_t * src , int src_stride , int linelen , int height ) {\n int i , j ;\n uint8_t * dst = f -> data [ 0 ] ;\n dst += ( height - 1 ) * f -> linesize [ 0 ] ;\n for ( i = height ;\n i ;\n i -- ) {\n for ( j = linelen ;\n j ;\n j -- ) * dst ++ += * src ++ ;\n src += src_stride - linelen ;\n dst -= f -> linesize [ 0 ] + linelen ;\n }\n }"}
{"idx": 20086, "target": 1, "func": "void vp8_denoiser_set_parameters ( VP8_DENOISER * denoiser , int mode ) {\n assert ( mode > 0 ) ;\n if ( mode == 1 ) {\n denoiser -> denoiser_mode = kDenoiserOnYOnly ;\n }\n else if ( mode == 2 ) {\n denoiser -> denoiser_mode = kDenoiserOnYUV ;\n }\n else if ( mode == 3 ) {\n denoiser -> denoiser_mode = kDenoiserOnYUVAggressive ;\n }\n else {\n denoiser -> denoiser_mode = kDenoiserOnAdaptive ;\n }\n if ( denoiser -> denoiser_mode != kDenoiserOnYUVAggressive ) {\n denoiser -> denoise_pars . scale_sse_thresh = 1 ;\n denoiser -> denoise_pars . scale_motion_thresh = 8 ;\n denoiser -> denoise_pars . scale_increase_filter = 0 ;\n denoiser -> denoise_pars . denoise_mv_bias = 95 ;\n denoiser -> denoise_pars . pickmode_mv_bias = 100 ;\n denoiser -> denoise_pars . qp_thresh = 0 ;\n denoiser -> denoise_pars . consec_zerolast = UINT_MAX ;\n }\n else {\n denoiser -> denoise_pars . scale_sse_thresh = 2 ;\n denoiser -> denoise_pars . scale_motion_thresh = 16 ;\n denoiser -> denoise_pars . scale_increase_filter = 1 ;\n denoiser -> denoise_pars . denoise_mv_bias = 60 ;\n denoiser -> denoise_pars . pickmode_mv_bias = 60 ;\n denoiser -> denoise_pars . qp_thresh = 100 ;\n denoiser -> denoise_pars . consec_zerolast = 10 ;\n }\n }"}
{"idx": 20087, "target": 0, "func": "static int sendpkt ( void * xdata , size_t xdatalen ) {\n if ( debug >= 3 ) printf ( \"Sending %zu octets\\n\" , xdatalen ) ;\n if ( send ( sockfd , xdata , ( size_t ) xdatalen , 0 ) == - 1 ) {\n warning ( \"write to %s failed\" , currenthost ) ;\n return - 1 ;\n }\n if ( debug >= 4 ) {\n printf ( \"Request packet:\\n\" ) ;\n dump_hex_printable ( xdata , xdatalen ) ;\n }\n return 0 ;\n }"}
{"idx": 20088, "target": 0, "func": "void ff_mpeg4_clean_buffers ( MpegEncContext * s ) {\n int c_wrap , c_xy , l_wrap , l_xy ;\n l_wrap = s -> b8_stride ;\n l_xy = ( 2 * s -> mb_y - 1 ) * l_wrap + s -> mb_x * 2 - 1 ;\n c_wrap = s -> mb_stride ;\n c_xy = ( s -> mb_y - 1 ) * c_wrap + s -> mb_x - 1 ;\n # if 0 memsetw ( s -> dc_val [ 0 ] + l_xy , 1024 , l_wrap * 2 + 1 ) ;\n memsetw ( s -> dc_val [ 1 ] + c_xy , 1024 , c_wrap + 1 ) ;\n memsetw ( s -> dc_val [ 2 ] + c_xy , 1024 , c_wrap + 1 ) ;\n # endif memset ( s -> ac_val [ 0 ] + l_xy , 0 , ( l_wrap * 2 + 1 ) * 16 * sizeof ( int16_t ) ) ;\n memset ( s -> ac_val [ 1 ] + c_xy , 0 , ( c_wrap + 1 ) * 16 * sizeof ( int16_t ) ) ;\n memset ( s -> ac_val [ 2 ] + c_xy , 0 , ( c_wrap + 1 ) * 16 * sizeof ( int16_t ) ) ;\n s -> last_mv [ 0 ] [ 0 ] [ 0 ] = s -> last_mv [ 0 ] [ 0 ] [ 1 ] = s -> last_mv [ 1 ] [ 0 ] [ 0 ] = s -> last_mv [ 1 ] [ 0 ] [ 1 ] = 0 ;\n }"}
{"idx": 20089, "target": 0, "func": "CharList * pkg_appendToList ( CharList * l , CharList * * end , const char * str ) {\n CharList * endptr = NULL , * tmp ;\n if ( end == NULL ) {\n end = & endptr ;\n }\n if ( ( * end == NULL ) && ( l != NULL ) ) {\n tmp = l ;\n while ( tmp -> next ) {\n tmp = tmp -> next ;\n }\n * end = tmp ;\n }\n if ( l == NULL ) {\n l = pkg_prependToList ( NULL , str ) ;\n }\n else {\n ( * end ) -> next = pkg_prependToList ( NULL , str ) ;\n }\n if ( * end ) {\n ( * end ) = ( * end ) -> next ;\n }\n else {\n * end = l ;\n }\n return l ;\n }"}
{"idx": 20090, "target": 1, "func": "SPL_METHOD ( SplFileObject , getCsvControl ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n char delimiter [ 2 ] , enclosure [ 2 ] ;\n array_init ( return_value ) ;\n delimiter [ 0 ] = intern -> u . file . delimiter ;\n delimiter [ 1 ] = '\\0' ;\n enclosure [ 0 ] = intern -> u . file . enclosure ;\n enclosure [ 1 ] = '\\0' ;\n add_next_index_string ( return_value , delimiter , 1 ) ;\n add_next_index_string ( return_value , enclosure , 1 ) ;\n }"}
{"idx": 20091, "target": 0, "func": "static int dissect_h225_IpV4 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 4 , 4 , FALSE , NULL ) ;\n return offset ;\n }"}
{"idx": 20092, "target": 0, "func": "static struct sock * udp_v6_mcast_next ( struct net * net , struct sock * sk , __be16 loc_port , struct in6_addr * loc_addr , __be16 rmt_port , struct in6_addr * rmt_addr , int dif ) {\n struct hlist_nulls_node * node ;\n struct sock * s = sk ;\n unsigned short num = ntohs ( loc_port ) ;\n sk_nulls_for_each_from ( s , node ) {\n struct inet_sock * inet = inet_sk ( s ) ;\n if ( ! net_eq ( sock_net ( s ) , net ) ) continue ;\n if ( udp_sk ( s ) -> udp_port_hash == num && s -> sk_family == PF_INET6 ) {\n struct ipv6_pinfo * np = inet6_sk ( s ) ;\n if ( inet -> inet_dport ) {\n if ( inet -> inet_dport != rmt_port ) continue ;\n }\n if ( ! ipv6_addr_any ( & np -> daddr ) && ! ipv6_addr_equal ( & np -> daddr , rmt_addr ) ) continue ;\n if ( s -> sk_bound_dev_if && s -> sk_bound_dev_if != dif ) continue ;\n if ( ! ipv6_addr_any ( & np -> rcv_saddr ) ) {\n if ( ! ipv6_addr_equal ( & np -> rcv_saddr , loc_addr ) ) continue ;\n }\n if ( ! inet6_mc_check ( s , loc_addr , rmt_addr ) ) continue ;\n return s ;\n }\n }\n return NULL ;\n }"}
{"idx": 20093, "target": 0, "func": "sf_count_t psf_fseek ( SF_PRIVATE * psf , sf_count_t offset , int whence ) {\n sf_count_t current_pos , new_position ;\n if ( psf -> virtual_io ) return psf -> vio . seek ( offset , whence , psf -> vio_user_data ) ;\n current_pos = psf_ftell ( psf ) ;\n switch ( whence ) {\n case SEEK_SET : offset += psf -> fileoffset ;\n break ;\n case SEEK_END : if ( psf -> file . mode == SFM_WRITE ) {\n new_position = lseek ( psf -> file . filedes , offset , whence ) ;\n if ( new_position < 0 ) psf_log_syserr ( psf , errno ) ;\n return new_position - psf -> fileoffset ;\n }\n ;\n whence = SEEK_SET ;\n offset = lseek ( psf -> file . filedes , 0 , SEEK_END ) + offset ;\n break ;\n case SEEK_CUR : offset += current_pos ;\n whence = SEEK_SET ;\n break ;\n default : psf_log_printf ( psf , \"psf_fseek : whence is %d *****.\\n\" , whence ) ;\n return 0 ;\n }\n ;\n if ( current_pos != offset ) new_position = lseek ( psf -> file . filedes , offset , whence ) ;\n else new_position = offset ;\n if ( new_position < 0 ) psf_log_syserr ( psf , errno ) ;\n new_position -= psf -> fileoffset ;\n return new_position ;\n }"}
{"idx": 20094, "target": 0, "func": "void virLogFilterListFree ( virLogFilterPtr * list , int count ) {\n size_t i ;\n if ( ! list || count < 0 ) return ;\n for ( i = 0 ;\n i < count ;\n i ++ ) virLogFilterFree ( list [ i ] ) ;\n VIR_FREE ( list ) ;\n }"}
{"idx": 20095, "target": 0, "func": "static void vga_draw_line15_be ( VGACommonState * vga , uint8_t * d , uint32_t addr , int width ) {\n int w ;\n uint32_t v , r , g , b ;\n w = width ;\n do {\n v = vga_read_word_be ( vga , addr ) ;\n r = ( v >> 7 ) & 0xf8 ;\n g = ( v >> 2 ) & 0xf8 ;\n b = ( v << 3 ) & 0xf8 ;\n ( ( uint32_t * ) d ) [ 0 ] = rgb_to_pixel32 ( r , g , b ) ;\n addr += 2 ;\n d += 4 ;\n }\n while ( -- w != 0 ) ;\n }"}
{"idx": 20096, "target": 0, "func": "WORK_STATE ossl_statem_server_post_work ( SSL * s , WORK_STATE wst ) {\n OSSL_STATEM * st = & s -> statem ;\n s -> init_num = 0 ;\n switch ( st -> hand_state ) {\n case TLS_ST_SW_HELLO_REQ : if ( statem_flush ( s ) != 1 ) return WORK_MORE_A ;\n if ( ! ssl3_init_finished_mac ( s ) ) {\n ossl_statem_set_error ( s ) ;\n return WORK_ERROR ;\n }\n break ;\n case DTLS_ST_SW_HELLO_VERIFY_REQUEST : if ( statem_flush ( s ) != 1 ) return WORK_MORE_A ;\n if ( s -> version != DTLS1_BAD_VER && ! ssl3_init_finished_mac ( s ) ) {\n ossl_statem_set_error ( s ) ;\n return WORK_ERROR ;\n }\n s -> first_packet = 1 ;\n break ;\n case TLS_ST_SW_SRVR_HELLO : # ifndef OPENSSL_NO_SCTP if ( SSL_IS_DTLS ( s ) && s -> hit ) {\n unsigned char sctpauthkey [ 64 ] ;\n char labelbuffer [ sizeof ( DTLS1_SCTP_AUTH_LABEL ) ] ;\n memcpy ( labelbuffer , DTLS1_SCTP_AUTH_LABEL , sizeof ( DTLS1_SCTP_AUTH_LABEL ) ) ;\n if ( SSL_export_keying_material ( s , sctpauthkey , sizeof ( sctpauthkey ) , labelbuffer , sizeof ( labelbuffer ) , NULL , 0 , 0 ) <= 0 ) {\n ossl_statem_set_error ( s ) ;\n return WORK_ERROR ;\n }\n BIO_ctrl ( SSL_get_wbio ( s ) , BIO_CTRL_DGRAM_SCTP_ADD_AUTH_KEY , sizeof ( sctpauthkey ) , sctpauthkey ) ;\n }\n # endif break ;\n case TLS_ST_SW_CHANGE : # ifndef OPENSSL_NO_SCTP if ( SSL_IS_DTLS ( s ) && ! s -> hit ) {\n BIO_ctrl ( SSL_get_wbio ( s ) , BIO_CTRL_DGRAM_SCTP_NEXT_AUTH_KEY , 0 , NULL ) ;\n }\n # endif if ( ! s -> method -> ssl3_enc -> change_cipher_state ( s , SSL3_CHANGE_CIPHER_SERVER_WRITE ) ) {\n ossl_statem_set_error ( s ) ;\n return WORK_ERROR ;\n }\n if ( SSL_IS_DTLS ( s ) ) dtls1_reset_seq_numbers ( s , SSL3_CC_WRITE ) ;\n break ;\n case TLS_ST_SW_SRVR_DONE : if ( statem_flush ( s ) != 1 ) return WORK_MORE_A ;\n break ;\n case TLS_ST_SW_FINISHED : if ( statem_flush ( s ) != 1 ) return WORK_MORE_A ;\n # ifndef OPENSSL_NO_SCTP if ( SSL_IS_DTLS ( s ) && s -> hit ) {\n BIO_ctrl ( SSL_get_wbio ( s ) , BIO_CTRL_DGRAM_SCTP_NEXT_AUTH_KEY , 0 , NULL ) ;\n }\n # endif break ;\n default : break ;\n }\n return WORK_FINISHED_CONTINUE ;\n }"}
{"idx": 20097, "target": 0, "func": "int qemuMonitorJSONSetDrivePassphrase ( qemuMonitorPtr mon , const char * alias , const char * passphrase ) {\n int ret ;\n virJSONValuePtr cmd ;\n virJSONValuePtr reply = NULL ;\n char * drive ;\n if ( virAsprintf ( & drive , \"%s%s\" , QEMU_DRIVE_HOST_PREFIX , alias ) < 0 ) {\n virReportOOMError ( ) ;\n return - 1 ;\n }\n cmd = qemuMonitorJSONMakeCommand ( \"block_passwd\" , \"s:device\" , drive , \"s:password\" , passphrase , NULL ) ;\n VIR_FREE ( drive ) ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 20098, "target": 0, "func": "static int srec_get_byte ( bfd * abfd , bfd_boolean * errorptr ) {\n bfd_byte c ;\n if ( bfd_bread ( & c , ( bfd_size_type ) 1 , abfd ) != 1 ) {\n if ( bfd_get_error ( ) != bfd_error_file_truncated ) * errorptr = TRUE ;\n return EOF ;\n }\n return ( int ) ( c & 0xff ) ;\n }"}
{"idx": 20099, "target": 0, "func": "static void lspf2lpc ( const float * lspf , float * lpc ) {\n double lsp [ 10 ] ;\n double bandwidth_expansion_coeff = QCELP_BANDWIDTH_EXPANSION_COEFF ;\n int i ;\n for ( i = 0 ;\n i < 10 ;\n i ++ ) lsp [ i ] = cos ( M_PI * lspf [ i ] ) ;\n ff_acelp_lspd2lpc ( lsp , lpc , 5 ) ;\n for ( i = 0 ;\n i < 10 ;\n i ++ ) {\n lpc [ i ] *= bandwidth_expansion_coeff ;\n bandwidth_expansion_coeff *= QCELP_BANDWIDTH_EXPANSION_COEFF ;\n }\n }"}
{"idx": 20100, "target": 0, "func": "static enum fetch_step vbf_stp_fetchbody ( struct worker * wrk , struct busyobj * bo ) {\n ssize_t l ;\n uint8_t * ptr ;\n enum vfp_status vfps = VFP_ERROR ;\n ssize_t est ;\n struct vfp_ctx * vfc ;\n CHECK_OBJ_NOTNULL ( bo , BUSYOBJ_MAGIC ) ;\n vfc = bo -> vfc ;\n CHECK_OBJ_NOTNULL ( vfc , VFP_CTX_MAGIC ) ;\n AN ( vfc -> vfp_nxt ) ;\n est = bo -> htc -> content_length ;\n if ( est < 0 ) est = 0 ;\n do {\n if ( vfc -> oc -> flags & OC_F_ABANDON ) {\n AN ( vfc -> oc -> flags & OC_F_PASS ) ;\n VSLb ( wrk -> vsl , SLT_FetchError , \"Pass delivery abandoned\" ) ;\n bo -> htc -> doclose = SC_RX_BODY ;\n break ;\n }\n AZ ( vfc -> failed ) ;\n l = est ;\n assert ( l >= 0 ) ;\n if ( VFP_GetStorage ( vfc , & l , & ptr ) != VFP_OK ) {\n bo -> htc -> doclose = SC_RX_BODY ;\n break ;\n }\n AZ ( vfc -> failed ) ;\n vfps = VFP_Suck ( vfc , ptr , & l ) ;\n if ( l > 0 && vfps != VFP_ERROR ) {\n bo -> acct . beresp_bodybytes += l ;\n VFP_Extend ( vfc , l ) ;\n if ( est >= l ) est -= l ;\n else est = 0 ;\n }\n }\n while ( vfps == VFP_OK ) ;\n if ( vfc -> failed ) {\n ( void ) VFP_Error ( vfc , \"Fetch pipeline failed to process\" ) ;\n bo -> htc -> doclose = SC_RX_BODY ;\n VFP_Close ( vfc ) ;\n VDI_Finish ( wrk , bo ) ;\n if ( ! bo -> do_stream ) {\n assert ( bo -> fetch_objcore -> boc -> state < BOS_STREAM ) ;\n return ( F_STP_ERROR ) ;\n }\n else {\n wrk -> stats -> fetch_failed ++ ;\n return ( F_STP_FAIL ) ;\n }\n }\n ObjTrimStore ( wrk , vfc -> oc ) ;\n return ( F_STP_FETCHEND ) ;\n }"}
{"idx": 20101, "target": 0, "func": "static void stroke_list ( private_stroke_socket_t * this , stroke_msg_t * msg , FILE * out ) {\n if ( msg -> list . flags & LIST_CAINFOS ) {\n this -> ca -> list ( this -> ca , msg , out ) ;\n }\n this -> list -> list ( this -> list , msg , out ) ;\n }"}
{"idx": 20102, "target": 0, "func": "static void put_payload_header ( AVFormatContext * s , ASFStream * stream , int64_t presentation_time , int m_obj_size , int m_obj_offset , int payload_len , int flags ) {\n ASFContext * asf = s -> priv_data ;\n AVIOContext * pb = & asf -> pb ;\n int val ;\n val = stream -> num ;\n if ( flags & AV_PKT_FLAG_KEY ) val |= ASF_PL_FLAG_KEY_FRAME ;\n avio_w8 ( pb , val ) ;\n avio_w8 ( pb , stream -> seq ) ;\n avio_wl32 ( pb , m_obj_offset ) ;\n avio_w8 ( pb , ASF_PAYLOAD_REPLICATED_DATA_LENGTH ) ;\n avio_wl32 ( pb , m_obj_size ) ;\n avio_wl32 ( pb , ( uint32_t ) presentation_time ) ;\n if ( asf -> multi_payloads_present ) {\n avio_wl16 ( pb , payload_len ) ;\n }\n }"}
{"idx": 20103, "target": 0, "func": "static void complete_window_nicks ( GList * * list , WINDOW_REC * window , const char * word , const char * nicksuffix ) {\n CHANNEL_REC * channel ;\n GList * tmplist ;\n GSList * tmp ;\n channel = CHANNEL ( window -> active ) ;\n if ( channel != NULL ) {\n tmplist = completion_channel_nicks ( channel , word , nicksuffix ) ;\n * list = completion_joinlist ( * list , tmplist ) ;\n }\n if ( nicksuffix != NULL ) {\n return ;\n }\n for ( tmp = window -> items ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n channel = CHANNEL ( tmp -> data ) ;\n if ( channel != NULL && tmp -> data != window -> active ) {\n tmplist = completion_channel_nicks ( channel , word , nicksuffix ) ;\n * list = completion_joinlist ( * list , tmplist ) ;\n }\n }\n }"}
{"idx": 20104, "target": 0, "func": "static void load_cursor ( VmncContext * c , const uint8_t * src ) {\n int i , j , p ;\n const int bpp = c -> bpp2 ;\n uint8_t * dst8 = c -> curbits ;\n uint16_t * dst16 = ( uint16_t * ) c -> curbits ;\n uint32_t * dst32 = ( uint32_t * ) c -> curbits ;\n for ( j = 0 ;\n j < c -> cur_h ;\n j ++ ) {\n for ( i = 0 ;\n i < c -> cur_w ;\n i ++ ) {\n p = vmnc_get_pixel ( src , bpp , c -> bigendian ) ;\n src += bpp ;\n if ( bpp == 1 ) * dst8 ++ = p ;\n if ( bpp == 2 ) * dst16 ++ = p ;\n if ( bpp == 4 ) * dst32 ++ = p ;\n }\n }\n dst8 = c -> curmask ;\n dst16 = ( uint16_t * ) c -> curmask ;\n dst32 = ( uint32_t * ) c -> curmask ;\n for ( j = 0 ;\n j < c -> cur_h ;\n j ++ ) {\n for ( i = 0 ;\n i < c -> cur_w ;\n i ++ ) {\n p = vmnc_get_pixel ( src , bpp , c -> bigendian ) ;\n src += bpp ;\n if ( bpp == 1 ) * dst8 ++ = p ;\n if ( bpp == 2 ) * dst16 ++ = p ;\n if ( bpp == 4 ) * dst32 ++ = p ;\n }\n }\n }"}
{"idx": 20105, "target": 1, "func": "static void segment_properties_destroy ( hb_segment_properties_t * g ) {\n free ( g ) ;\n }"}
{"idx": 20106, "target": 0, "func": "static void qtmd_update_model ( struct qtmd_model * model ) {\n struct qtmd_modelsym tmp ;\n int i , j ;\n if ( -- model -> shiftsleft ) {\n for ( i = model -> entries - 1 ;\n i >= 0 ;\n i -- ) {\n model -> syms [ i ] . cumfreq >>= 1 ;\n if ( model -> syms [ i ] . cumfreq <= model -> syms [ i + 1 ] . cumfreq ) {\n model -> syms [ i ] . cumfreq = model -> syms [ i + 1 ] . cumfreq + 1 ;\n }\n }\n }\n else {\n model -> shiftsleft = 50 ;\n for ( i = 0 ;\n i < model -> entries ;\n i ++ ) {\n model -> syms [ i ] . cumfreq -= model -> syms [ i + 1 ] . cumfreq ;\n model -> syms [ i ] . cumfreq ++ ;\n model -> syms [ i ] . cumfreq >>= 1 ;\n }\n for ( i = 0 ;\n i < model -> entries - 1 ;\n i ++ ) {\n for ( j = i + 1 ;\n j < model -> entries ;\n j ++ ) {\n if ( model -> syms [ i ] . cumfreq < model -> syms [ j ] . cumfreq ) {\n tmp = model -> syms [ i ] ;\n model -> syms [ i ] = model -> syms [ j ] ;\n model -> syms [ j ] = tmp ;\n }\n }\n }\n for ( i = model -> entries - 1 ;\n i >= 0 ;\n i -- ) {\n model -> syms [ i ] . cumfreq += model -> syms [ i + 1 ] . cumfreq ;\n }\n }\n }"}
{"idx": 20107, "target": 0, "func": "void jas_free ( void * ptr ) {\n JAS_DBGLOG ( 100 , ( \"jas_free(%p)\\n\" , ptr ) ) ;\n free ( ptr ) ;\n }"}
{"idx": 20108, "target": 0, "func": "static void mime_list_start ( NautilusDirectory * directory , NautilusFile * file , gboolean * doing_io ) {\n MimeListState * state ;\n GFile * location ;\n mime_list_stop ( directory ) ;\n if ( directory -> details -> mime_list_in_progress != NULL ) {\n * doing_io = TRUE ;\n return ;\n }\n if ( ! is_needy ( file , should_get_mime_list , REQUEST_MIME_LIST ) ) {\n return ;\n }\n * doing_io = TRUE ;\n if ( ! nautilus_file_is_directory ( file ) ) {\n g_list_free ( file -> details -> mime_list ) ;\n file -> details -> mime_list_failed = FALSE ;\n file -> details -> got_mime_list = FALSE ;\n file -> details -> mime_list_is_up_to_date = TRUE ;\n nautilus_directory_async_state_changed ( directory ) ;\n return ;\n }\n if ( ! async_job_start ( directory , \"MIME list\" ) ) {\n return ;\n }\n state = g_new0 ( MimeListState , 1 ) ;\n state -> mime_list_file = file ;\n state -> directory = nautilus_directory_ref ( directory ) ;\n state -> cancellable = g_cancellable_new ( ) ;\n state -> mime_list_hash = istr_set_new ( ) ;\n directory -> details -> mime_list_in_progress = state ;\n location = nautilus_file_get_location ( file ) ;\n # ifdef DEBUG_LOAD_DIRECTORY {\n char * uri ;\n uri = g_file_get_uri ( location ) ;\n g_message ( \"load_directory called to get MIME list of %s\" , uri ) ;\n g_free ( uri ) ;\n }\n # endif g_file_enumerate_children_async ( location , G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE , 0 , G_PRIORITY_LOW , state -> cancellable , list_mime_enum_callback , state ) ;\n g_object_unref ( location ) ;\n }"}
{"idx": 20109, "target": 0, "func": "int hostbased_key_allowed ( struct passwd * pw , const char * cuser , char * chost , struct sshkey * key ) {\n struct ssh * ssh = active_state ;\n const char * resolvedname , * ipaddr , * lookup , * reason ;\n HostStatus host_status ;\n int len ;\n char * fp ;\n if ( auth_key_is_revoked ( key ) ) return 0 ;\n resolvedname = auth_get_canonical_hostname ( ssh , options . use_dns ) ;\n ipaddr = ssh_remote_ipaddr ( ssh ) ;\n debug2 ( \"%s: chost %s resolvedname %s ipaddr %s\" , __func__ , chost , resolvedname , ipaddr ) ;\n if ( ( ( len = strlen ( chost ) ) > 0 ) && chost [ len - 1 ] == '.' ) {\n debug2 ( \"stripping trailing dot from chost %s\" , chost ) ;\n chost [ len - 1 ] = '\\0' ;\n }\n if ( options . hostbased_uses_name_from_packet_only ) {\n if ( auth_rhosts2 ( pw , cuser , chost , chost ) == 0 ) {\n debug2 ( \"%s: auth_rhosts2 refused \" \"user \\\"%.100s\\\" host \\\"%.100s\\\" (from packet)\" , __func__ , cuser , chost ) ;\n return 0 ;\n }\n lookup = chost ;\n }\n else {\n if ( strcasecmp ( resolvedname , chost ) != 0 ) logit ( \"userauth_hostbased mismatch: \" \"client sends %s, but we resolve %s to %s\" , chost , ipaddr , resolvedname ) ;\n if ( auth_rhosts2 ( pw , cuser , resolvedname , ipaddr ) == 0 ) {\n debug2 ( \"%s: auth_rhosts2 refused \" \"user \\\"%.100s\\\" host \\\"%.100s\\\" addr \\\"%.100s\\\"\" , __func__ , cuser , resolvedname , ipaddr ) ;\n return 0 ;\n }\n lookup = resolvedname ;\n }\n debug2 ( \"%s: access allowed by auth_rhosts2\" , __func__ ) ;\n if ( sshkey_is_cert ( key ) && sshkey_cert_check_authority ( key , 1 , 0 , lookup , & reason ) ) {\n error ( \"%s\" , reason ) ;\n auth_debug_add ( \"%s\" , reason ) ;\n return 0 ;\n }\n host_status = check_key_in_hostfiles ( pw , key , lookup , _PATH_SSH_SYSTEM_HOSTFILE , options . ignore_user_known_hosts ? NULL : _PATH_SSH_USER_HOSTFILE ) ;\n if ( host_status == HOST_NEW ) {\n host_status = check_key_in_hostfiles ( pw , key , lookup , _PATH_SSH_SYSTEM_HOSTFILE2 , options . ignore_user_known_hosts ? NULL : _PATH_SSH_USER_HOSTFILE2 ) ;\n }\n if ( host_status == HOST_OK ) {\n if ( sshkey_is_cert ( key ) ) {\n if ( ( fp = sshkey_fingerprint ( key -> cert -> signature_key , options . fingerprint_hash , SSH_FP_DEFAULT ) ) == NULL ) fatal ( \"%s: sshkey_fingerprint fail\" , __func__ ) ;\n verbose ( \"Accepted certificate ID \\\"%s\\\" signed by \" \"%s CA %s from %s@%s\" , key -> cert -> key_id , sshkey_type ( key -> cert -> signature_key ) , fp , cuser , lookup ) ;\n }\n else {\n if ( ( fp = sshkey_fingerprint ( key , options . fingerprint_hash , SSH_FP_DEFAULT ) ) == NULL ) fatal ( \"%s: sshkey_fingerprint fail\" , __func__ ) ;\n verbose ( \"Accepted %s public key %s from %s@%s\" , sshkey_type ( key ) , fp , cuser , lookup ) ;\n }\n free ( fp ) ;\n }\n return ( host_status == HOST_OK ) ;\n }"}
{"idx": 20110, "target": 0, "func": "static void gic_dist_writel ( void * opaque , hwaddr offset , uint32_t value ) {\n GICState * s = ( GICState * ) opaque ;\n if ( offset == 0xf00 ) {\n int cpu ;\n int irq ;\n int mask ;\n cpu = gic_get_current_cpu ( s ) ;\n irq = value & 0x3ff ;\n switch ( ( value >> 24 ) & 3 ) {\n case 0 : mask = ( value >> 16 ) & ALL_CPU_MASK ;\n break ;\n case 1 : mask = ALL_CPU_MASK ^ ( 1 << cpu ) ;\n break ;\n case 2 : mask = 1 << cpu ;\n break ;\n default : DPRINTF ( \"Bad Soft Int target filter\\n\" ) ;\n mask = ALL_CPU_MASK ;\n break ;\n }\n GIC_SET_PENDING ( irq , mask ) ;\n gic_update ( s ) ;\n return ;\n }\n gic_dist_writew ( opaque , offset , value & 0xffff ) ;\n gic_dist_writew ( opaque , offset + 2 , value >> 16 ) ;\n }"}
{"idx": 20111, "target": 0, "func": "TEST_F ( ProtocolHandlerRegistryTest , TestMaybeCreateTaskWorksFromIOThread ) {\n ProtocolHandler ph1 = CreateProtocolHandler ( \"mailto\" , \"test1\" ) ;\n registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ;\n GURL url ( \"mailto:someone@something.com\" ) ;\n scoped_ptr < net : : URLRequestJobFactory > interceptor ( registry ( ) -> CreateJobInterceptorFactory ( ) ) ;\n AssertIntercepted ( url , interceptor . get ( ) ) ;\n }"}
{"idx": 20112, "target": 0, "func": "int uwsgi_php_walk ( struct wsgi_request * wsgi_req , char * full_path , char * docroot , size_t docroot_len , char * * path_info ) {\n uint16_t i ;\n char * ptr = wsgi_req -> path_info ;\n char * dst = full_path + docroot_len ;\n char * part = ptr ;\n int part_size = 0 ;\n struct stat st ;\n if ( wsgi_req -> path_info_len == 0 ) return 0 ;\n if ( ptr [ 0 ] == '/' ) part_size ++ ;\n for ( i = 0 ;\n i < wsgi_req -> path_info_len ;\n i ++ ) {\n if ( ptr [ i ] == '/' ) {\n memcpy ( dst , part , part_size - 1 ) ;\n * ( dst + part_size - 1 ) = 0 ;\n if ( stat ( full_path , & st ) ) {\n return - 1 ;\n }\n if ( ! S_ISDIR ( st . st_mode ) ) {\n if ( i < ( wsgi_req -> path_info_len ) - 1 ) {\n * path_info = ptr + i ;\n }\n return 0 ;\n }\n * ( dst + part_size - 1 ) = '/' ;\n * ( dst + part_size ) = 0 ;\n dst += part_size ;\n part_size = 0 ;\n part = ptr + i + 1 ;\n }\n part_size ++ ;\n }\n if ( part < wsgi_req -> path_info + wsgi_req -> path_info_len ) {\n memcpy ( dst , part , part_size - 1 ) ;\n * ( dst + part_size - 1 ) = 0 ;\n if ( stat ( full_path , & st ) ) {\n return - 1 ;\n }\n }\n return 0 ;\n }"}
{"idx": 20113, "target": 1, "func": "WORK_STATE ossl_statem_server_pre_work ( SSL * s , WORK_STATE wst ) {\n OSSL_STATEM * st = & s -> statem ;\n switch ( st -> hand_state ) {\n case TLS_ST_SW_HELLO_REQ : s -> shutdown = 0 ;\n if ( SSL_IS_DTLS ( s ) ) dtls1_clear_record_buffer ( s ) ;\n break ;\n case DTLS_ST_SW_HELLO_VERIFY_REQUEST : s -> shutdown = 0 ;\n if ( SSL_IS_DTLS ( s ) ) {\n dtls1_clear_record_buffer ( s ) ;\n st -> use_timer = 0 ;\n }\n break ;\n case TLS_ST_SW_SRVR_HELLO : if ( SSL_IS_DTLS ( s ) ) {\n st -> use_timer = 1 ;\n }\n break ;\n case TLS_ST_SW_SRVR_DONE : # ifndef OPENSSL_NO_SCTP if ( SSL_IS_DTLS ( s ) && BIO_dgram_is_sctp ( SSL_get_wbio ( s ) ) ) return dtls_wait_for_dry ( s ) ;\n # endif return WORK_FINISHED_CONTINUE ;\n case TLS_ST_SW_SESSION_TICKET : if ( SSL_IS_DTLS ( s ) ) {\n st -> use_timer = 0 ;\n }\n break ;\n case TLS_ST_SW_CHANGE : s -> session -> cipher = s -> s3 -> tmp . new_cipher ;\n if ( ! s -> method -> ssl3_enc -> setup_key_block ( s ) ) {\n ossl_statem_set_error ( s ) ;\n return WORK_ERROR ;\n }\n if ( SSL_IS_DTLS ( s ) ) {\n st -> use_timer = 0 ;\n }\n return WORK_FINISHED_CONTINUE ;\n case TLS_ST_OK : return tls_finish_handshake ( s , wst ) ;\n default : break ;\n }\n return WORK_FINISHED_CONTINUE ;\n }"}
{"idx": 20114, "target": 0, "func": "gr_font * hb_graphite2_font_get_gr_font ( hb_font_t * font ) {\n if ( unlikely ( ! hb_graphite2_shaper_font_data_ensure ( font ) ) ) return NULL ;\n return HB_SHAPER_DATA_GET ( font ) ;\n }"}
{"idx": 20115, "target": 0, "func": "static void * prplcb_request_action ( const char * title , const char * primary , const char * secondary , int default_action , PurpleAccount * account , const char * who , PurpleConversation * conv , void * user_data , size_t action_count , va_list actions ) {\n struct prplcb_request_action_data * pqad ;\n int i ;\n char * q ;\n pqad = g_new0 ( struct prplcb_request_action_data , 1 ) ;\n for ( i = 0 ;\n i < action_count ;\n i ++ ) {\n char * caption ;\n void * fn ;\n caption = va_arg ( actions , char * ) ;\n fn = va_arg ( actions , void * ) ;\n if ( strstr ( caption , \"Accept\" ) || strstr ( caption , \"OK\" ) ) {\n pqad -> yes = fn ;\n pqad -> yes_i = i ;\n }\n else if ( strstr ( caption , \"Reject\" ) || strstr ( caption , \"Cancel\" ) ) {\n pqad -> no = fn ;\n pqad -> no_i = i ;\n }\n }\n pqad -> user_data = user_data ;\n q = g_strdup_printf ( \"Request: %s\\n\\n%s\\n\\n%s\" , title , primary , secondary ) ;\n pqad -> bee_data = query_add ( local_bee -> ui_data , purple_ic_by_pa ( account ) , q , prplcb_request_action_yes , prplcb_request_action_no , prplcb_request_action_free , pqad ) ;\n g_free ( q ) ;\n return pqad ;\n }"}
{"idx": 20116, "target": 0, "func": "static int dissect_h245_VideoCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 494 \"../../asn1/h245/h245.cnf\" gint32 value ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_VideoCapability , VideoCapability_choice , & value ) ;\n codec_type = val_to_str ( value , h245_VideoCapability_vals , \"<unknown>\" ) ;\n return offset ;\n }"}
{"idx": 20117, "target": 0, "func": "DEFINE_TEST ( test_read_format_mtree_nochange ) {\n static char archive [ ] = \"#mtree\\n\" \"./a type=file mode=0644 time=123\\n\" \"./b type=file mode=0644 time=234\\n\" \"./c type=file mode=0644 time=345\\n\" ;\n static char archive2 [ ] = \"#mtree\\n\" \"./a type=file mode=0644 time=123 nochange\\n\" \"./b type=file mode=0644 time=234\\n\" \"./c type=file mode=0644 time=345 nochange\\n\" ;\n struct archive_entry * ae ;\n struct archive * a ;\n assertMakeFile ( \"a\" , 0640 , \"12345\" ) ;\n assertMakeFile ( \"b\" , 0664 , \"123456\" ) ;\n assertMakeFile ( \"c\" , 0755 , \"1234567\" ) ;\n assert ( ( a = archive_read_new ( ) ) != NULL ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_support_filter_all ( a ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_support_format_all ( a ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_set_options ( a , \"mtree:checkfs\" ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_open_memory ( a , archive , sizeof ( archive ) ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"./a\" ) ;\n assertEqualInt ( archive_entry_mode ( ae ) , AE_IFREG | 0644 ) ;\n assertEqualInt ( archive_entry_mtime ( ae ) , 123 ) ;\n assertEqualInt ( archive_entry_size ( ae ) , 5 ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"./b\" ) ;\n assertEqualInt ( archive_entry_mode ( ae ) , AE_IFREG | 0644 ) ;\n assertEqualInt ( archive_entry_mtime ( ae ) , 234 ) ;\n assertEqualInt ( archive_entry_size ( ae ) , 6 ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"./c\" ) ;\n assertEqualInt ( archive_entry_mode ( ae ) , AE_IFREG | 0644 ) ;\n assertEqualInt ( archive_entry_mtime ( ae ) , 345 ) ;\n assertEqualInt ( archive_entry_size ( ae ) , 7 ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_EOF , archive_read_next_header ( a , & ae ) ) ;\n assertEqualInt ( 3 , archive_file_count ( a ) ) ;\n assertEqualInt ( ARCHIVE_OK , archive_read_close ( a ) ) ;\n assertEqualInt ( ARCHIVE_OK , archive_read_free ( a ) ) ;\n assert ( ( a = archive_read_new ( ) ) != NULL ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_support_filter_all ( a ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_support_format_all ( a ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_set_options ( a , \"mtree:checkfs\" ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_open_memory ( a , archive2 , sizeof ( archive2 ) ) ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"./a\" ) ;\n # if ! defined ( _WIN32 ) || defined ( __CYGWIN__ ) assertEqualInt ( archive_entry_mode ( ae ) , AE_IFREG | 0640 ) ;\n # endif assert ( archive_entry_mtime ( ae ) != 123 ) ;\n assertEqualInt ( archive_entry_size ( ae ) , 5 ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"./b\" ) ;\n assertEqualInt ( archive_entry_mode ( ae ) , AE_IFREG | 0644 ) ;\n assertEqualInt ( archive_entry_mtime ( ae ) , 234 ) ;\n assertEqualInt ( archive_entry_size ( ae ) , 6 ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_OK , archive_read_next_header ( a , & ae ) ) ;\n assertEqualString ( archive_entry_pathname ( ae ) , \"./c\" ) ;\n # if ! defined ( _WIN32 ) || defined ( __CYGWIN__ ) assertEqualInt ( archive_entry_mode ( ae ) , AE_IFREG | 0755 ) ;\n # endif assert ( archive_entry_mtime ( ae ) != 345 ) ;\n assertEqualInt ( archive_entry_size ( ae ) , 7 ) ;\n assertEqualInt ( archive_entry_is_encrypted ( ae ) , 0 ) ;\n assertEqualIntA ( a , archive_read_has_encrypted_entries ( a ) , ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED ) ;\n assertEqualIntA ( a , ARCHIVE_EOF , archive_read_next_header ( a , & ae ) ) ;\n assertEqualInt ( 3 , archive_file_count ( a ) ) ;\n assertEqualInt ( ARCHIVE_OK , archive_read_close ( a ) ) ;\n assertEqualInt ( ARCHIVE_OK , archive_read_free ( a ) ) ;\n }"}
{"idx": 20118, "target": 0, "func": "static void fail_cb ( int fd , short events , void * arg ) {\n test_ok = 0 ;\n }"}
{"idx": 20119, "target": 0, "func": "void PNGAPI png_set_compression_buffer_size ( png_structp png_ptr , png_uint_32 size ) {\n if ( png_ptr == NULL ) return ;\n png_free ( png_ptr , png_ptr -> zbuf ) ;\n png_ptr -> zbuf_size = ( png_size_t ) size ;\n png_ptr -> zbuf = ( png_bytep ) png_malloc ( png_ptr , size ) ;\n png_ptr -> zstream . next_out = png_ptr -> zbuf ;\n png_ptr -> zstream . avail_out = ( uInt ) png_ptr -> zbuf_size ;\n }"}
{"idx": 20120, "target": 0, "func": "static gcry_sexp_t normalize ( gcry_sexp_t list ) {\n unsigned char * p ;\n if ( ! list ) return NULL ;\n p = list -> d ;\n if ( * p == ST_STOP ) {\n gcry_sexp_release ( list ) ;\n return NULL ;\n }\n if ( * p == ST_OPEN && p [ 1 ] == ST_CLOSE ) {\n gcry_sexp_release ( list ) ;\n return NULL ;\n }\n return list ;\n }"}
{"idx": 20121, "target": 0, "func": "TSReturnCode TSCacheKeyPinnedSet ( TSCacheKey key , time_t pin_in_cache ) {\n sdk_assert ( sdk_sanity_check_cachekey ( key ) == TS_SUCCESS ) ;\n if ( ( ( CacheInfo * ) key ) -> magic != CACHE_INFO_MAGIC_ALIVE ) {\n return TS_ERROR ;\n }\n CacheInfo * i = ( CacheInfo * ) key ;\n i -> pin_in_cache = pin_in_cache ;\n return TS_SUCCESS ;\n }"}
{"idx": 20122, "target": 0, "func": "static int write_VD_boot_record ( struct archive_write * a ) {\n struct iso9660 * iso9660 ;\n unsigned char * bp ;\n iso9660 = a -> format_data ;\n bp = wb_buffptr ( a ) - 1 ;\n set_VD_bp ( bp , VDT_BOOT_RECORD , 1 ) ;\n memcpy ( bp + 8 , \"EL TORITO SPECIFICATION\" , 23 ) ;\n set_unused_field_bp ( bp , 8 + 23 , 39 ) ;\n set_unused_field_bp ( bp , 40 , 71 ) ;\n set_num_731 ( bp + 72 , iso9660 -> el_torito . catalog -> file -> content . location ) ;\n set_unused_field_bp ( bp , 76 , LOGICAL_BLOCK_SIZE ) ;\n return ( wb_consume ( a , LOGICAL_BLOCK_SIZE ) ) ;\n }"}
{"idx": 20123, "target": 0, "func": "static int dissect_h245_T_sendThisSourceResponse ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_sendThisSourceResponse , T_sendThisSourceResponse_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 20124, "target": 0, "func": "void av_image_copy ( uint8_t * dst_data [ 4 ] , int dst_linesizes [ 4 ] , const uint8_t * src_data [ 4 ] , const int src_linesizes [ 4 ] , enum PixelFormat pix_fmt , int width , int height ) {\n const AVPixFmtDescriptor * desc = & av_pix_fmt_descriptors [ pix_fmt ] ;\n if ( desc -> flags & PIX_FMT_HWACCEL ) return ;\n if ( desc -> flags & PIX_FMT_PAL ) {\n av_image_copy_plane ( dst_data [ 0 ] , dst_linesizes [ 0 ] , src_data [ 0 ] , src_linesizes [ 0 ] , width , height ) ;\n memcpy ( dst_data [ 1 ] , src_data [ 1 ] , 4 * 256 ) ;\n }\n else {\n int i , planes_nb = 0 ;\n for ( i = 0 ;\n i < desc -> nb_components ;\n i ++ ) planes_nb = FFMAX ( planes_nb , desc -> comp [ i ] . plane + 1 ) ;\n for ( i = 0 ;\n i < planes_nb ;\n i ++ ) {\n int h = height ;\n int bwidth = av_image_get_linesize ( pix_fmt , width , i ) ;\n if ( i == 1 || i == 2 ) {\n h = - ( ( - height ) >> desc -> log2_chroma_h ) ;\n }\n av_image_copy_plane ( dst_data [ i ] , dst_linesizes [ i ] , src_data [ i ] , src_linesizes [ i ] , bwidth , h ) ;\n }\n }\n }"}
{"idx": 20125, "target": 0, "func": "int tls_construct_hello_request ( SSL * s ) {\n if ( ! ssl_set_handshake_header ( s , SSL3_MT_HELLO_REQUEST , 0 ) ) {\n SSLerr ( SSL_F_TLS_CONSTRUCT_HELLO_REQUEST , ERR_R_INTERNAL_ERROR ) ;\n ossl_statem_set_error ( s ) ;\n return 0 ;\n }\n return 1 ;\n }"}
{"idx": 20126, "target": 1, "func": "static void evsignal_cb ( int fd , short what , void * arg ) {\n static char signals [ 1 ] ;\n # ifdef WIN32 SSIZE_T n ;\n # else ssize_t n ;\n # endif n = recv ( fd , signals , sizeof ( signals ) , 0 ) ;\n if ( n == - 1 ) event_err ( 1 , \"%s: read\" , __func__ ) ;\n }"}
{"idx": 20127, "target": 0, "func": "static int ilbc_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n ILBCDecContext * s = avctx -> priv_data ;\n AVFrame * frame = data ;\n int ret ;\n if ( s -> decoder . no_of_bytes > buf_size ) {\n av_log ( avctx , AV_LOG_ERROR , \"iLBC frame too short (%u, should be %u)\\n\" , buf_size , s -> decoder . no_of_bytes ) ;\n return AVERROR_INVALIDDATA ;\n }\n frame -> nb_samples = s -> decoder . blockl ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n WebRtcIlbcfix_DecodeImpl ( ( WebRtc_Word16 * ) frame -> data [ 0 ] , ( const WebRtc_UWord16 * ) buf , & s -> decoder , 1 ) ;\n * got_frame_ptr = 1 ;\n return s -> decoder . no_of_bytes ;\n }"}
{"idx": 20128, "target": 0, "func": "static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_reserve ( sk_ ## t1 ## _compfunc compare , int n ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_reserve ( ( OPENSSL_sk_compfunc ) compare , n ) ;\n }\n static ossl_inline int sk_ ## t1 ## _reserve ( STACK_OF ( t1 ) * sk , int n ) {\n return OPENSSL_sk_reserve ( ( OPENSSL_STACK * ) sk , n ) ;\n }\n static ossl_inline void sk_ ## t1 ## _free ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_free ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _zero ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_zero ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete ( STACK_OF ( t1 ) * sk , int i ) {\n return ( t2 * ) OPENSSL_sk_delete ( ( OPENSSL_STACK * ) sk , i ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _delete_ptr ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_delete_ptr ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) {\n return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) {\n OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) {\n return OPENSSL_sk_insert ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr , idx ) ;\n }\n static ossl_inline t2 * sk_ ## t1 ## _set ( STACK_OF ( t1 ) * sk , int idx , t2 * ptr ) {\n return ( t2 * ) OPENSSL_sk_set ( ( OPENSSL_STACK * ) sk , idx , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) {\n return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;\n }\n static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {\n OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {\n return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _dup ( const STACK_OF ( t1 ) * sk ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_dup ( ( const OPENSSL_STACK * ) sk ) ;\n }\n static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _deep_copy ( const STACK_OF ( t1 ) * sk , sk_ ## t1 ## _copyfunc copyfunc , sk_ ## t1 ## _freefunc freefunc ) {\n return ( STACK_OF ( t1 ) * ) OPENSSL_sk_deep_copy ( ( const OPENSSL_STACK * ) sk , ( OPENSSL_sk_copyfunc ) copyfunc , ( OPENSSL_sk_freefunc ) freefunc ) ;\n }\n static ossl_inline sk_ ## t1 ## _compfunc sk_ ## t1 ## _set_cmp_func ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _compfunc compare ) {\n return ( sk_ ## t1 ## _compfunc ) OPENSSL_sk_set_cmp_func ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_compfunc ) compare ) ;\n }\n # define DEFINE_SPECIAL_STACK_OF ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , t2 , t2 ) # define DEFINE_STACK_OF ( t ) SKM_DEFINE_STACK_OF ( t , t , t ) # define DEFINE_SPECIAL_STACK_OF_CONST ( t1 , t2 ) SKM_DEFINE_STACK_OF ( t1 , const t2 , t2 ) # define DEFINE_STACK_OF_CONST ( t ) SKM_DEFINE_STACK_OF ( t , const t , t ) typedef char * OPENSSL_STRING ;\n typedef const char * OPENSSL_CSTRING ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_STRING , char ) DEFINE_SPECIAL_STACK_OF_CONST ( OPENSSL_CSTRING , char ) typedef void * OPENSSL_BLOCK ;\n DEFINE_SPECIAL_STACK_OF ( OPENSSL_BLOCK , void )"}
{"idx": 20129, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( HostedAppTest , LocationBarForHostedAppWithoutWWW ) {\n SetupApp ( \"app_no_www\" , false ) ;\n NavigateAndCheckForLocationBar ( app_browser_ , \"http://example.com/empty.html\" , false ) ;\n NavigateAndCheckForLocationBar ( app_browser_ , \"http://www.example.com/empty.html\" , false ) ;\n NavigateAndCheckForLocationBar ( app_browser_ , \"http://www.foo.com/blah\" , true ) ;\n NavigateAndCheckForLocationBar ( app_browser_ , \"http://example.com/blah\" , false ) ;\n }"}
{"idx": 20130, "target": 1, "func": "static ossl_inline type * lh_ ## type ## _delete ( LHASH_OF ( type ) * lh , const type * d ) {\n return ( type * ) OPENSSL_LH_delete ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline type * lh_ ## type ## _retrieve ( LHASH_OF ( type ) * lh , const type * d ) {\n return ( type * ) OPENSSL_LH_retrieve ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline int lh_ ## type ## _error ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_error ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _num_items ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_num_items ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _node_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _node_usage_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_usage_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING ) ;\n # ifdef _MSC_VER # pragma warning ( push ) # pragma warning ( disable : 4090 ) # endif DEFINE_LHASH_OF ( OPENSSL_CSTRING )"}
{"idx": 20131, "target": 1, "func": "static void _LMBCSOpen ## n ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err ) \\ {\n _LMBCSOpenWorker ( _this , pArgs , err , n ) ;\n }\n static void _LMBCSOpenWorker ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err , ulmbcs_byte_t OptGroup ) {\n UConverterDataLMBCS * extraInfo = _this -> extraInfo = ( UConverterDataLMBCS * ) uprv_malloc ( sizeof ( UConverterDataLMBCS ) ) ;\n if ( extraInfo != NULL ) {\n UConverterNamePieces stackPieces ;\n UConverterLoadArgs stackArgs = {\n ( int32_t ) sizeof ( UConverterLoadArgs ) }\n ;\n ulmbcs_byte_t i ;\n uprv_memset ( extraInfo , 0 , sizeof ( UConverterDataLMBCS ) ) ;\n stackArgs . onlyTestIsLoadable = pArgs -> onlyTestIsLoadable ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST && U_SUCCESS ( * err ) ;\n i ++ ) {\n if ( OptGroupByteToCPName [ i ] != NULL ) {\n extraInfo -> OptGrpConverter [ i ] = ucnv_loadSharedData ( OptGroupByteToCPName [ i ] , & stackPieces , & stackArgs , err ) ;\n }\n }\n if ( U_FAILURE ( * err ) || pArgs -> onlyTestIsLoadable ) {\n _LMBCSClose ( _this ) ;\n return ;\n }\n extraInfo -> OptGroup = OptGroup ;\n extraInfo -> localeConverterIndex = FindLMBCSLocale ( pArgs -> locale ) ;\n }\n else {\n * err = U_MEMORY_ALLOCATION_ERROR ;\n }\n }\n static void _LMBCSClose ( UConverter * _this ) {\n if ( _this -> extraInfo != NULL ) {\n ulmbcs_byte_t Ix ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) _this -> extraInfo ;\n for ( Ix = 0 ;\n Ix <= ULMBCS_GRP_LAST ;\n Ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ Ix ] != NULL ) ucnv_unloadSharedDataIfReady ( extraInfo -> OptGrpConverter [ Ix ] ) ;\n }\n if ( ! _this -> isExtraLocal ) {\n uprv_free ( _this -> extraInfo ) ;\n _this -> extraInfo = NULL ;\n }\n }\n }\n typedef struct LMBCSClone {\n UConverter cnv ;\n UConverterDataLMBCS lmbcs ;\n }\n LMBCSClone ;\n static UConverter * _LMBCSSafeClone ( const UConverter * cnv , void * stackBuffer , int32_t * pBufferSize , UErrorCode * status ) {\n LMBCSClone * newLMBCS ;\n UConverterDataLMBCS * extraInfo ;\n int32_t i ;\n if ( * pBufferSize <= 0 ) {\n * pBufferSize = ( int32_t ) sizeof ( LMBCSClone ) ;\n return NULL ;\n }\n extraInfo = ( UConverterDataLMBCS * ) cnv -> extraInfo ;\n newLMBCS = ( LMBCSClone * ) stackBuffer ;\n uprv_memcpy ( & newLMBCS -> lmbcs , extraInfo , sizeof ( UConverterDataLMBCS ) ) ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST ;\n ++ i ) {\n if ( extraInfo -> OptGrpConverter [ i ] != NULL ) {\n ucnv_incrementRefCount ( extraInfo -> OptGrpConverter [ i ] ) ;\n }\n }\n newLMBCS -> cnv . extraInfo = & newLMBCS -> lmbcs ;\n newLMBCS -> cnv . isExtraLocal = TRUE ;\n return & newLMBCS -> cnv ;\n }\n static size_t LMBCSConversionWorker ( UConverterDataLMBCS * extraInfo , ulmbcs_byte_t group , ulmbcs_byte_t * pStartLMBCS , UChar * pUniChar , ulmbcs_byte_t * lastConverterIndex , UBool * groups_tried ) {\n ulmbcs_byte_t * pLMBCS = pStartLMBCS ;\n UConverterSharedData * xcnv = extraInfo -> OptGrpConverter [ group ] ;\n int bytesConverted ;\n uint32_t value ;\n ulmbcs_byte_t firstByte ;\n U_ASSERT ( xcnv ) ;\n U_ASSERT ( group < ULMBCS_GRP_UNICODE ) ;\n bytesConverted = ucnv_MBCSFromUChar32 ( xcnv , * pUniChar , & value , FALSE ) ;\n if ( bytesConverted > 0 ) {\n firstByte = ( ulmbcs_byte_t ) ( value >> ( ( bytesConverted - 1 ) * 8 ) ) ;\n }\n else {\n groups_tried [ group ] = TRUE ;\n return 0 ;\n }\n * lastConverterIndex = group ;\n U_ASSERT ( ( firstByte <= ULMBCS_C0END ) || ( firstByte >= ULMBCS_C1START ) || ( group == ULMBCS_GRP_EXCEPT ) ) ;\n if ( group != ULMBCS_GRP_EXCEPT && extraInfo -> OptGroup != group ) {\n * pLMBCS ++ = group ;\n if ( bytesConverted == 1 && group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n * pLMBCS ++ = group ;\n }\n }\n if ( bytesConverted == 1 && firstByte < 0x20 ) return 0 ;\n switch ( bytesConverted ) {\n case 4 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 24 ) ;\n U_FALLTHROUGH ;\n case 3 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 16 ) ;\n U_FALLTHROUGH ;\n case 2 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 8 ) ;\n U_FALLTHROUGH ;\n case 1 : * pLMBCS ++ = ( ulmbcs_byte_t ) value ;\n U_FALLTHROUGH ;\n default : break ;\n }\n return ( pLMBCS - pStartLMBCS ) ;\n }\n static size_t LMBCSConvertUni ( ulmbcs_byte_t * pLMBCS , UChar uniChar ) {\n uint8_t LowCh = ( uint8_t ) ( uniChar & 0x00FF ) ;\n uint8_t HighCh = ( uint8_t ) ( uniChar >> 8 ) ;\n * pLMBCS ++ = ULMBCS_GRP_UNICODE ;\n if ( LowCh == 0 ) {\n * pLMBCS ++ = ULMBCS_UNICOMPATZERO ;\n * pLMBCS ++ = HighCh ;\n }\n else {\n * pLMBCS ++ = HighCh ;\n * pLMBCS ++ = LowCh ;\n }\n return ULMBCS_UNICODE_SIZE ;\n }\n static void _LMBCSFromUnicode ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n ulmbcs_byte_t lastConverterIndex = 0 ;\n UChar uniChar ;\n ulmbcs_byte_t LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n ulmbcs_byte_t * pLMBCS ;\n int32_t bytes_written ;\n UBool groups_tried [ ULMBCS_GRP_LAST + 1 ] ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n int sourceIndex = 0 ;\n ulmbcs_byte_t OldConverterIndex = 0 ;\n while ( args -> source < args -> sourceLimit && ! U_FAILURE ( * err ) ) {\n OldConverterIndex = extraInfo -> localeConverterIndex ;\n if ( args -> target >= args -> targetLimit ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n uniChar = * ( args -> source ) ;\n bytes_written = 0 ;\n pLMBCS = LMBCS ;\n if ( ( uniChar >= 0x80 ) && ( uniChar <= 0xff ) && ( uniChar != 0xB1 ) && ( uniChar != 0xD7 ) && ( uniChar != 0xF7 ) && ( uniChar != 0xB0 ) && ( uniChar != 0xB4 ) && ( uniChar != 0xB6 ) && ( uniChar != 0xA7 ) && ( uniChar != 0xA8 ) ) {\n extraInfo -> localeConverterIndex = ULMBCS_GRP_L1 ;\n }\n if ( ( ( uniChar > ULMBCS_C0END ) && ( uniChar < ULMBCS_C1START ) ) || uniChar == 0 || uniChar == ULMBCS_HT || uniChar == ULMBCS_CR || uniChar == ULMBCS_LF || uniChar == ULMBCS_123SYSTEMRANGE ) {\n * pLMBCS ++ = ( ulmbcs_byte_t ) uniChar ;\n bytes_written = 1 ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t group = FindLMBCSUniRange ( uniChar ) ;\n if ( group == ULMBCS_GRP_UNICODE ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group == ULMBCS_GRP_CTRL ) {\n if ( uniChar <= ULMBCS_C0END ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( ULMBCS_CTRLOFFSET + uniChar ) ;\n }\n else if ( uniChar >= ULMBCS_C1START && uniChar <= ULMBCS_C1START + ULMBCS_CTRLOFFSET ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( uniChar & 0x00FF ) ;\n }\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group < ULMBCS_GRP_UNICODE ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , group , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n uprv_memset ( groups_tried , 0 , sizeof ( groups_tried ) ) ;\n if ( ( extraInfo -> OptGroup != 1 ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> OptGroup ) ) ) {\n if ( extraInfo -> localeConverterIndex < ULMBCS_DOUBLEOPTGROUP_START ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_L1 , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n else {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && ( extraInfo -> localeConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> localeConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written && ( lastConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , lastConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , lastConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t grp_start ;\n ulmbcs_byte_t grp_end ;\n ulmbcs_byte_t grp_ix ;\n grp_start = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_DOUBLEOPTGROUP_START : ULMBCS_GRP_L1 ) ;\n grp_end = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_GRP_LAST : ULMBCS_GRP_TH ) ;\n if ( group == ULMBCS_AMBIGUOUS_ALL ) {\n grp_start = ULMBCS_GRP_L1 ;\n grp_end = ULMBCS_GRP_LAST ;\n }\n for ( grp_ix = grp_start ;\n grp_ix <= grp_end && ! bytes_written ;\n grp_ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ grp_ix ] && ! groups_tried [ grp_ix ] ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , grp_ix , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && grp_start == ULMBCS_GRP_L1 ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n }\n }\n args -> source ++ ;\n pLMBCS = LMBCS ;\n while ( args -> target < args -> targetLimit && bytes_written -- ) {\n * ( args -> target ) ++ = * pLMBCS ++ ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = sourceIndex ;\n }\n }\n sourceIndex ++ ;\n if ( bytes_written > 0 ) {\n uint8_t * pErrorBuffer = args -> converter -> charErrorBuffer ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n args -> converter -> charErrorBufferLength = ( int8_t ) bytes_written ;\n while ( bytes_written -- ) {\n * pErrorBuffer ++ = * pLMBCS ++ ;\n }\n }\n extraInfo -> localeConverterIndex = OldConverterIndex ;\n }\n }\n static UChar GetUniFromLMBCSUni ( char const * * ppLMBCSin ) {\n uint8_t HighCh = * ( * ppLMBCSin ) ++ ;\n uint8_t LowCh = * ( * ppLMBCSin ) ++ ;\n if ( HighCh == ULMBCS_UNICOMPATZERO ) {\n HighCh = LowCh ;\n LowCh = 0 ;\n }\n return ( UChar ) ( ( HighCh << 8 ) | LowCh ) ;\n }\n # define CHECK_SOURCE_LIMIT ( index ) if ( args -> source + index > args -> sourceLimit ) {\n * err = U_TRUNCATED_CHAR_FOUND ;\n args -> source = args -> sourceLimit ;\n return 0xffff ;\n }\n static UChar32 _LMBCSGetNextUCharWorker ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n UChar32 uniChar = 0 ;\n ulmbcs_byte_t CurByte ;\n if ( args -> source >= args -> sourceLimit ) {\n * err = U_ILLEGAL_ARGUMENT_ERROR ;\n return 0xffff ;\n }\n CurByte = * ( ( ulmbcs_byte_t * ) ( args -> source ++ ) ) ;\n if ( ( ( CurByte > ULMBCS_C0END ) && ( CurByte < ULMBCS_C1START ) ) || ( CurByte == 0 ) || CurByte == ULMBCS_HT || CurByte == ULMBCS_CR || CurByte == ULMBCS_LF || CurByte == ULMBCS_123SYSTEMRANGE ) {\n uniChar = CurByte ;\n }\n else {\n UConverterDataLMBCS * extraInfo ;\n ulmbcs_byte_t group ;\n UConverterSharedData * cnv ;\n if ( CurByte == ULMBCS_GRP_CTRL ) {\n ulmbcs_byte_t C0C1byte ;\n CHECK_SOURCE_LIMIT ( 1 ) ;\n C0C1byte = * ( args -> source ) ++ ;\n uniChar = ( C0C1byte < ULMBCS_C1START ) ? C0C1byte - ULMBCS_CTRLOFFSET : C0C1byte ;\n }\n else if ( CurByte == ULMBCS_GRP_UNICODE ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n return GetUniFromLMBCSUni ( & ( args -> source ) ) ;\n }\n else if ( CurByte <= ULMBCS_CTRLOFFSET ) {\n group = CurByte ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n if ( group > ULMBCS_GRP_LAST || ( cnv = extraInfo -> OptGrpConverter [ group ] ) == NULL ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n if ( * args -> source == group ) {\n ++ args -> source ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 1 , FALSE ) ;\n ++ args -> source ;\n }\n else {\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 2 , FALSE ) ;\n args -> source += 2 ;\n }\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n CurByte = * ( args -> source ) ++ ;\n if ( CurByte >= ULMBCS_C1START ) {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n else {\n char bytes [ 2 ] ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n cnv = extraInfo -> OptGrpConverter [ ULMBCS_GRP_EXCEPT ] ;\n bytes [ 0 ] = group ;\n bytes [ 1 ] = CurByte ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , bytes , 2 , FALSE ) ;\n }\n }\n }\n else if ( CurByte >= ULMBCS_C1START ) {\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n group = extraInfo -> OptGroup ;\n cnv = extraInfo -> OptGrpConverter [ group ] ;\n if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n if ( ! ucnv_MBCSIsLeadByte ( cnv , CurByte ) ) {\n CHECK_SOURCE_LIMIT ( 0 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 1 , FALSE ) ;\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 2 , FALSE ) ;\n ++ args -> source ;\n }\n }\n else {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n }\n }\n return uniChar ;\n }\n static void _LMBCSToUnicodeWithOffsets ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n char LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n UChar uniChar ;\n const char * saveSource ;\n const char * pStartLMBCS = args -> source ;\n const char * errSource = NULL ;\n int8_t savebytes = 0 ;\n while ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit > args -> target ) {\n saveSource = args -> source ;\n if ( args -> converter -> toULength ) {\n const char * saveSourceLimit ;\n size_t size_old = args -> converter -> toULength ;\n size_t size_new_maybe_1 = sizeof ( LMBCS ) - size_old ;\n size_t size_new_maybe_2 = args -> sourceLimit - args -> source ;\n size_t size_new = ( size_new_maybe_1 < size_new_maybe_2 ) ? size_new_maybe_1 : size_new_maybe_2 ;\n uprv_memcpy ( LMBCS , args -> converter -> toUBytes , size_old ) ;\n uprv_memcpy ( LMBCS + size_old , args -> source , size_new ) ;\n saveSourceLimit = args -> sourceLimit ;\n args -> source = errSource = LMBCS ;\n args -> sourceLimit = LMBCS + size_old + size_new ;\n savebytes = ( int8_t ) ( size_old + size_new ) ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n args -> source = saveSource + ( ( args -> source - LMBCS ) - size_old ) ;\n args -> sourceLimit = saveSourceLimit ;\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n args -> converter -> toULength = savebytes ;\n uprv_memcpy ( args -> converter -> toUBytes , LMBCS , savebytes ) ;\n args -> source = args -> sourceLimit ;\n * err = U_ZERO_ERROR ;\n return ;\n }\n else {\n args -> converter -> toULength = 0 ;\n }\n }\n else {\n errSource = saveSource ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n savebytes = ( int8_t ) ( args -> source - saveSource ) ;\n }\n if ( U_SUCCESS ( * err ) ) {\n if ( uniChar < 0xfffe ) {\n * ( args -> target ) ++ = uniChar ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = ( int32_t ) ( saveSource - pStartLMBCS ) ;\n }\n }\n else if ( uniChar == 0xfffe ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n }\n if ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit <= args -> target ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n else if ( U_FAILURE ( * err ) ) {\n args -> converter -> toULength = savebytes ;\n if ( savebytes > 0 ) {\n uprv_memcpy ( args -> converter -> toUBytes , errSource , savebytes ) ;\n }\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n * err = U_ZERO_ERROR ;\n }\n }\n }\n DEFINE_LMBCS_OPEN ( 1 ) DEFINE_LMBCS_OPEN ( 2 ) DEFINE_LMBCS_OPEN ( 3 ) DEFINE_LMBCS_OPEN ( 4 ) DEFINE_LMBCS_OPEN ( 5 ) DEFINE_LMBCS_OPEN ( 6 ) DEFINE_LMBCS_OPEN ( 8 ) DEFINE_LMBCS_OPEN ( 11 )"}
{"idx": 20132, "target": 0, "func": "static void udvm_state_create ( guint8 * state_buff , guint8 * state_identifier , guint16 p_id_length ) {\n char partial_state [ STATE_BUFFER_SIZE ] ;\n guint i ;\n gchar * partial_state_str ;\n gchar * dummy_buff ;\n i = 0 ;\n while ( i < p_id_length && i < STATE_BUFFER_SIZE ) {\n partial_state [ i ] = state_identifier [ i ] ;\n i ++ ;\n }\n partial_state_str = bytes_to_str ( NULL , partial_state , p_id_length ) ;\n dummy_buff = ( gchar * ) g_hash_table_lookup ( state_buffer_table , partial_state_str ) ;\n if ( dummy_buff == NULL ) {\n g_hash_table_insert ( state_buffer_table , g_strdup ( partial_state_str ) , state_buff ) ;\n }\n else {\n g_free ( state_buff ) ;\n }\n wmem_free ( NULL , partial_state_str ) ;\n }"}
{"idx": 20133, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( HostedAppTest , ShouldShowLocationBarForHostedApp ) {\n SetupApp ( \"app\" , false ) ;\n NavigateAndCheckForLocationBar ( app_browser_ , \"http://www.example.com/empty.html\" , false ) ;\n NavigateAndCheckForLocationBar ( app_browser_ , \"http://www.example.com/blah\" , false ) ;\n NavigateAndCheckForLocationBar ( app_browser_ , \"https://www.example.com/blah\" , false ) ;\n NavigateAndCheckForLocationBar ( app_browser_ , \"http://www.foo.com/blah\" , true ) ;\n NavigateAndCheckForLocationBar ( app_browser_ , \"http://www.example.com/blah\" , false ) ;\n }"}
{"idx": 20134, "target": 0, "func": "static void empty_trash_task_done ( GObject * source_object , GAsyncResult * res , gpointer user_data ) {\n EmptyTrashJob * job ;\n job = user_data ;\n g_list_free_full ( job -> trash_dirs , g_object_unref ) ;\n if ( job -> done_callback ) {\n job -> done_callback ( ! job_aborted ( ( CommonJob * ) job ) , job -> done_callback_data ) ;\n }\n finalize_common ( ( CommonJob * ) job ) ;\n }"}
{"idx": 20135, "target": 0, "func": "static void arm_mptimer_reset ( DeviceState * dev ) {\n ARMMPTimerState * s = FROM_SYSBUS ( ARMMPTimerState , SYS_BUS_DEVICE ( dev ) ) ;\n int i ;\n for ( i = 0 ;\n i < ARRAY_SIZE ( s -> timerblock ) ;\n i ++ ) {\n timerblock_reset ( & s -> timerblock [ i ] ) ;\n }\n }"}
{"idx": 20136, "target": 0, "func": "static void kq_sighandler ( int sig ) {\n }"}
{"idx": 20137, "target": 0, "func": "int finish_transfer ( const char * fname , const char * fnametmp , const char * fnamecmp , const char * partialptr , struct file_struct * file , int ok_to_set_time , int overwriting_basis ) {\n int ret ;\n const char * temp_copy_name = partialptr && * partialptr != '/' ? partialptr : NULL ;\n if ( inplace ) {\n if ( DEBUG_GTE ( RECV , 1 ) ) rprintf ( FINFO , \"finishing %s\\n\" , fname ) ;\n fnametmp = fname ;\n goto do_set_file_attrs ;\n }\n if ( make_backups > 0 && overwriting_basis ) {\n int ok = make_backup ( fname , False ) ;\n if ( ! ok ) exit_cleanup ( RERR_FILEIO ) ;\n if ( ok == 1 && fnamecmp == fname ) fnamecmp = get_backup_name ( fname ) ;\n }\n set_file_attrs ( fnametmp , file , NULL , fnamecmp , ok_to_set_time ? 0 : ATTRS_SKIP_MTIME ) ;\n if ( DEBUG_GTE ( RECV , 1 ) ) rprintf ( FINFO , \"renaming %s to %s\\n\" , fnametmp , fname ) ;\n ret = robust_rename ( fnametmp , fname , temp_copy_name , file -> mode ) ;\n if ( ret < 0 ) {\n rsyserr ( FERROR_XFER , errno , \"%s %s -> \\\"%s\\\"\" , ret == - 2 ? \"copy\" : \"rename\" , full_fname ( fnametmp ) , fname ) ;\n if ( ! partialptr || ( ret == - 2 && temp_copy_name ) || robust_rename ( fnametmp , partialptr , NULL , file -> mode ) < 0 ) do_unlink ( fnametmp ) ;\n return 0 ;\n }\n if ( ret == 0 ) {\n return 1 ;\n }\n fnametmp = temp_copy_name ? temp_copy_name : fname ;\n do_set_file_attrs : set_file_attrs ( fnametmp , file , NULL , fnamecmp , ok_to_set_time ? 0 : ATTRS_SKIP_MTIME ) ;\n if ( temp_copy_name ) {\n if ( do_rename ( fnametmp , fname ) < 0 ) {\n rsyserr ( FERROR_XFER , errno , \"rename %s -> \\\"%s\\\"\" , full_fname ( fnametmp ) , fname ) ;\n return 0 ;\n }\n handle_partial_dir ( temp_copy_name , PDIR_DELETE ) ;\n }\n return 1 ;\n }"}
{"idx": 20138, "target": 0, "func": "static int isoent_cmp_key_joliet ( const struct archive_rb_node * node , const void * key ) {\n const struct isoent * isoent = ( const struct isoent * ) key ;\n const struct idrent * idrent = ( const struct idrent * ) node ;\n return ( isoent_cmp_joliet_identifier ( isoent , idrent -> isoent ) ) ;\n }"}
{"idx": 20139, "target": 1, "func": "void vp9_idct16x16_1_add_c ( const int16_t * input , uint8_t * dest , int stride ) {\n int i , j ;\n int a1 ;\n int16_t out = dct_const_round_shift ( input [ 0 ] * cospi_16_64 ) ;\n out = dct_const_round_shift ( out * cospi_16_64 ) ;\n a1 = ROUND_POWER_OF_TWO ( out , 6 ) ;\n for ( j = 0 ;\n j < 16 ;\n ++ j ) {\n for ( i = 0 ;\n i < 16 ;\n ++ i ) dest [ i ] = clip_pixel ( dest [ i ] + a1 ) ;\n dest += stride ;\n }\n }"}
{"idx": 20140, "target": 0, "func": "Gif_Stream * Gif_ReadFile ( FILE * f ) {\n return Gif_FullReadFile ( f , GIF_READ_UNCOMPRESSED , 0 , 0 ) ;\n }"}
{"idx": 20141, "target": 0, "func": "static int dtls1_set_handshake_header ( SSL * s , int htype , unsigned long len ) {\n dtls1_set_message_header ( s , htype , len , 0 , len ) ;\n s -> init_num = ( int ) len + DTLS1_HM_HEADER_LENGTH ;\n s -> init_off = 0 ;\n if ( ! dtls1_buffer_message ( s , 0 ) ) return 0 ;\n return 1 ;\n }"}
{"idx": 20142, "target": 0, "func": "static inline int get_current_cpu ( ARMMPTimerState * s ) {\n if ( current_cpu -> cpu_index >= s -> num_cpu ) {\n hw_error ( \"arm_mptimer: num-cpu %d but this cpu is %d!\\n\" , s -> num_cpu , current_cpu -> cpu_index ) ;\n }\n return current_cpu -> cpu_index ;\n }"}
{"idx": 20143, "target": 0, "func": "static int interlaced_search ( MpegEncContext * s , int ref_index , int16_t ( * mv_tables [ 2 ] [ 2 ] ) [ 2 ] , uint8_t * field_select_tables [ 2 ] , int mx , int my , int user_field_select ) {\n MotionEstContext * const c = & s -> me ;\n const int size = 0 ;\n const int h = 8 ;\n int block ;\n int P [ 10 ] [ 2 ] ;\n uint8_t * const mv_penalty = c -> current_mv_penalty ;\n int same = 1 ;\n const int stride = 2 * s -> linesize ;\n int dmin_sum = 0 ;\n const int mot_stride = s -> mb_stride ;\n const int xy = s -> mb_x + s -> mb_y * mot_stride ;\n c -> ymin >>= 1 ;\n c -> ymax >>= 1 ;\n c -> stride <<= 1 ;\n c -> uvstride <<= 1 ;\n init_interlaced_ref ( s , ref_index ) ;\n for ( block = 0 ;\n block < 2 ;\n block ++ ) {\n int field_select ;\n int best_dmin = INT_MAX ;\n int best_field = - 1 ;\n for ( field_select = 0 ;\n field_select < 2 ;\n field_select ++ ) {\n int dmin , mx_i , my_i ;\n int16_t ( * mv_table ) [ 2 ] = mv_tables [ block ] [ field_select ] ;\n if ( user_field_select ) {\n assert ( field_select == 0 || field_select == 1 ) ;\n assert ( field_select_tables [ block ] [ xy ] == 0 || field_select_tables [ block ] [ xy ] == 1 ) ;\n if ( field_select_tables [ block ] [ xy ] != field_select ) continue ;\n }\n P_LEFT [ 0 ] = mv_table [ xy - 1 ] [ 0 ] ;\n P_LEFT [ 1 ] = mv_table [ xy - 1 ] [ 1 ] ;\n if ( P_LEFT [ 0 ] > ( c -> xmax << 1 ) ) P_LEFT [ 0 ] = ( c -> xmax << 1 ) ;\n c -> pred_x = P_LEFT [ 0 ] ;\n c -> pred_y = P_LEFT [ 1 ] ;\n if ( ! s -> first_slice_line ) {\n P_TOP [ 0 ] = mv_table [ xy - mot_stride ] [ 0 ] ;\n P_TOP [ 1 ] = mv_table [ xy - mot_stride ] [ 1 ] ;\n P_TOPRIGHT [ 0 ] = mv_table [ xy - mot_stride + 1 ] [ 0 ] ;\n P_TOPRIGHT [ 1 ] = mv_table [ xy - mot_stride + 1 ] [ 1 ] ;\n if ( P_TOP [ 1 ] > ( c -> ymax << 1 ) ) P_TOP [ 1 ] = ( c -> ymax << 1 ) ;\n if ( P_TOPRIGHT [ 0 ] < ( c -> xmin << 1 ) ) P_TOPRIGHT [ 0 ] = ( c -> xmin << 1 ) ;\n if ( P_TOPRIGHT [ 0 ] > ( c -> xmax << 1 ) ) P_TOPRIGHT [ 0 ] = ( c -> xmax << 1 ) ;\n if ( P_TOPRIGHT [ 1 ] > ( c -> ymax << 1 ) ) P_TOPRIGHT [ 1 ] = ( c -> ymax << 1 ) ;\n P_MEDIAN [ 0 ] = mid_pred ( P_LEFT [ 0 ] , P_TOP [ 0 ] , P_TOPRIGHT [ 0 ] ) ;\n P_MEDIAN [ 1 ] = mid_pred ( P_LEFT [ 1 ] , P_TOP [ 1 ] , P_TOPRIGHT [ 1 ] ) ;\n }\n P_MV1 [ 0 ] = mx ;\n P_MV1 [ 1 ] = my / 2 ;\n dmin = epzs_motion_search2 ( s , & mx_i , & my_i , P , block , field_select + ref_index , mv_table , ( 1 << 16 ) >> 1 ) ;\n dmin = c -> sub_motion_search ( s , & mx_i , & my_i , dmin , block , field_select + ref_index , size , h ) ;\n mv_table [ xy ] [ 0 ] = mx_i ;\n mv_table [ xy ] [ 1 ] = my_i ;\n if ( s -> dsp . me_sub_cmp [ 0 ] != s -> dsp . mb_cmp [ 0 ] ) {\n int dxy ;\n uint8_t * ref = c -> ref [ field_select + ref_index ] [ 0 ] + ( mx_i >> 1 ) + ( my_i >> 1 ) * stride ;\n dxy = ( ( my_i & 1 ) << 1 ) | ( mx_i & 1 ) ;\n if ( s -> no_rounding ) {\n s -> dsp . put_no_rnd_pixels_tab [ size ] [ dxy ] ( c -> scratchpad , ref , stride , h ) ;\n }\n else {\n s -> dsp . put_pixels_tab [ size ] [ dxy ] ( c -> scratchpad , ref , stride , h ) ;\n }\n dmin = s -> dsp . mb_cmp [ size ] ( s , c -> src [ block ] [ 0 ] , c -> scratchpad , stride , h ) ;\n dmin += ( mv_penalty [ mx_i - c -> pred_x ] + mv_penalty [ my_i - c -> pred_y ] + 1 ) * c -> mb_penalty_factor ;\n }\n else dmin += c -> mb_penalty_factor ;\n dmin += field_select != block ;\n if ( dmin < best_dmin ) {\n best_dmin = dmin ;\n best_field = field_select ;\n }\n }\n {\n int16_t ( * mv_table ) [ 2 ] = mv_tables [ block ] [ best_field ] ;\n if ( mv_table [ xy ] [ 0 ] != mx ) same = 0 ;\n if ( mv_table [ xy ] [ 1 ] & 1 ) same = 0 ;\n if ( mv_table [ xy ] [ 1 ] * 2 != my ) same = 0 ;\n if ( best_field != block ) same = 0 ;\n }\n field_select_tables [ block ] [ xy ] = best_field ;\n dmin_sum += best_dmin ;\n }\n c -> ymin <<= 1 ;\n c -> ymax <<= 1 ;\n c -> stride >>= 1 ;\n c -> uvstride >>= 1 ;\n if ( same ) return INT_MAX ;\n switch ( c -> avctx -> mb_cmp & 0xFF ) {\n case FF_CMP_RD : return dmin_sum ;\n default : return dmin_sum + 11 * c -> mb_penalty_factor ;\n }\n }"}
{"idx": 20144, "target": 1, "func": "const EVP_CIPHER * EVP_aes_ ## keylen ## _ ## mode ( void ) \\ {\n return & aes_ ## keylen ## _ ## mode ;\n }\n # 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_CAPABLE ( OPENSSL_armcap_P & ARMV7_NEON ) # endif # if defined ( VPAES_ASM ) # define VPAES_CAPABLE ( OPENSSL_armcap_P & ARMV7_NEON ) # endif # define HWAES_CAPABLE ( OPENSSL_armcap_P & ARMV8_AES ) # define HWAES_set_encrypt_key aes_v8_set_encrypt_key # define HWAES_set_decrypt_key aes_v8_set_decrypt_key # define HWAES_encrypt aes_v8_encrypt # define HWAES_decrypt aes_v8_decrypt # define HWAES_cbc_encrypt aes_v8_cbc_encrypt # define HWAES_ctr32_encrypt_blocks aes_v8_ctr32_encrypt_blocks # endif # endif # if defined ( HWAES_CAPABLE ) int HWAES_set_encrypt_key ( const unsigned char * userKey , const int bits , AES_KEY * key ) ;\n int HWAES_set_decrypt_key ( const unsigned char * userKey , const int bits , AES_KEY * key ) ;\n void HWAES_encrypt ( const unsigned char * in , unsigned char * out , const AES_KEY * key ) ;\n void HWAES_decrypt ( const unsigned char * in , unsigned char * out , const AES_KEY * key ) ;\n void HWAES_cbc_encrypt ( const unsigned char * in , unsigned char * out , size_t length , const AES_KEY * key , unsigned char * ivec , const int enc ) ;\n void HWAES_ctr32_encrypt_blocks ( const unsigned char * in , unsigned char * out , size_t len , const AES_KEY * key , const unsigned char ivec [ 16 ] ) ;\n void HWAES_xts_encrypt ( const unsigned char * inp , unsigned char * out , size_t len , const AES_KEY * key1 , const AES_KEY * key2 , const unsigned char iv [ 16 ] ) ;\n void HWAES_xts_decrypt ( const unsigned char * inp , unsigned char * out , size_t len , const AES_KEY * key1 , const AES_KEY * key2 , const unsigned char iv [ 16 ] ) ;\n # endif # define BLOCK_CIPHER_generic_pack ( nid , keylen , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 16 , 16 , cbc , cbc , CBC , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 16 , 0 , ecb , ecb , ECB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , ofb128 , ofb , OFB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb128 , cfb , CFB , flags | EVP_CIPH_FLAG_DEFAULT_ASN1 ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb1 , cfb1 , CFB , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , cfb8 , cfb8 , CFB , flags ) \\ BLOCK_CIPHER_generic ( nid , keylen , 1 , 16 , ctr , ctr , CTR , flags ) static int aes_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n int ret , mode ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n mode = EVP_CIPHER_CTX_mode ( ctx ) ;\n if ( ( mode == EVP_CIPH_ECB_MODE || mode == EVP_CIPH_CBC_MODE ) && ! enc ) {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_decrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n # endif }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CBC_MODE ) {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = ( cbc128_f ) bsaes_cbc_encrypt ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_decrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n }\n }\n else # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n ret = HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) HWAES_encrypt ;\n dat -> stream . cbc = NULL ;\n # ifdef HWAES_cbc_encrypt if ( mode == EVP_CIPH_CBC_MODE ) dat -> stream . cbc = ( cbc128_f ) HWAES_cbc_encrypt ;\n else # endif # ifdef HWAES_ctr32_encrypt_blocks if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) HWAES_ctr32_encrypt_blocks ;\n else # endif ( void ) 0 ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE && mode == EVP_CIPH_CTR_MODE ) {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . ctr = ( ctr128_f ) bsaes_ctr32_encrypt_blocks ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n ret = vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) vpaes_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) vpaes_cbc_encrypt : NULL ;\n }\n else # endif {\n ret = AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & dat -> ks . ks ) ;\n dat -> block = ( block128_f ) AES_encrypt ;\n dat -> stream . cbc = mode == EVP_CIPH_CBC_MODE ? ( cbc128_f ) AES_cbc_encrypt : NULL ;\n # ifdef AES_CTR_ASM if ( mode == EVP_CIPH_CTR_MODE ) dat -> stream . ctr = ( ctr128_f ) AES_ctr32_encrypt ;\n # endif }\n if ( ret < 0 ) {\n EVPerr ( EVP_F_AES_INIT_KEY , EVP_R_AES_KEY_SETUP_FAILED ) ;\n return 0 ;\n }\n return 1 ;\n }\n static int aes_cbc_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( dat -> stream . cbc ) ( * dat -> stream . cbc ) ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_encrypting ( ctx ) ) ;\n else if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) CRYPTO_cbc128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , dat -> block ) ;\n else CRYPTO_cbc128_decrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , dat -> block ) ;\n return 1 ;\n }\n static int aes_ecb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n size_t bl = EVP_CIPHER_CTX_block_size ( ctx ) ;\n size_t i ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( len < bl ) return 1 ;\n for ( i = 0 , len -= bl ;\n i <= len ;\n i += bl ) ( * dat -> block ) ( in + i , out + i , & dat -> ks ) ;\n return 1 ;\n }\n static int aes_ofb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_ofb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb8_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_8_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n static int aes_cfb1_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( EVP_CIPHER_CTX_test_flags ( ctx , EVP_CIPH_FLAG_LENGTH_BITS ) ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n while ( len >= MAXBITCHUNK ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , MAXBITCHUNK * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n len -= MAXBITCHUNK ;\n }\n if ( len ) {\n int num = EVP_CIPHER_CTX_num ( ctx ) ;\n CRYPTO_cfb128_1_encrypt ( in , out , len * 8 , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , & num , EVP_CIPHER_CTX_encrypting ( ctx ) , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n }\n return 1 ;\n }\n static int aes_ctr_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n unsigned int num = EVP_CIPHER_CTX_num ( ctx ) ;\n EVP_AES_KEY * dat = EVP_C_DATA ( EVP_AES_KEY , ctx ) ;\n if ( dat -> stream . ctr ) CRYPTO_ctr128_encrypt_ctr32 ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> stream . ctr ) ;\n else CRYPTO_ctr128_encrypt ( in , out , len , & dat -> ks , EVP_CIPHER_CTX_iv_noconst ( ctx ) , EVP_CIPHER_CTX_buf_noconst ( ctx ) , & num , dat -> block ) ;\n EVP_CIPHER_CTX_set_num ( ctx , num ) ;\n return 1 ;\n }\n BLOCK_CIPHER_generic_pack ( NID_aes , 128 , 0 ) BLOCK_CIPHER_generic_pack ( NID_aes , 192 , 0 ) BLOCK_CIPHER_generic_pack ( NID_aes , 256 , 0 ) static int aes_gcm_cleanup ( EVP_CIPHER_CTX * c ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , c ) ;\n OPENSSL_cleanse ( & gctx -> gcm , sizeof ( gctx -> gcm ) ) ;\n if ( gctx -> iv != EVP_CIPHER_CTX_iv_noconst ( c ) ) OPENSSL_free ( gctx -> iv ) ;\n return 1 ;\n }\n static void ctr64_inc ( unsigned char * counter ) {\n int n = 8 ;\n unsigned char c ;\n do {\n -- n ;\n c = counter [ n ] ;\n ++ c ;\n counter [ n ] = c ;\n if ( c ) return ;\n }\n while ( n ) ;\n }\n static int aes_gcm_ctrl ( EVP_CIPHER_CTX * c , int type , int arg , void * ptr ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , c ) ;\n switch ( type ) {\n case EVP_CTRL_INIT : gctx -> key_set = 0 ;\n gctx -> iv_set = 0 ;\n gctx -> ivlen = EVP_CIPHER_CTX_iv_length ( c ) ;\n gctx -> iv = EVP_CIPHER_CTX_iv_noconst ( c ) ;\n gctx -> taglen = - 1 ;\n gctx -> iv_gen = 0 ;\n gctx -> tls_aad_len = - 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_IVLEN : if ( arg <= 0 ) return 0 ;\n if ( ( arg > EVP_MAX_IV_LENGTH ) && ( arg > gctx -> ivlen ) ) {\n if ( gctx -> iv != EVP_CIPHER_CTX_iv_noconst ( c ) ) OPENSSL_free ( gctx -> iv ) ;\n gctx -> iv = OPENSSL_malloc ( arg ) ;\n if ( gctx -> iv == NULL ) return 0 ;\n }\n gctx -> ivlen = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_TAG : if ( arg <= 0 || arg > 16 || EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n gctx -> taglen = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_GET_TAG : if ( arg <= 0 || arg > 16 || ! EVP_CIPHER_CTX_encrypting ( c ) || gctx -> taglen < 0 ) return 0 ;\n memcpy ( ptr , EVP_CIPHER_CTX_buf_noconst ( c ) , arg ) ;\n return 1 ;\n case EVP_CTRL_GCM_SET_IV_FIXED : if ( arg == - 1 ) {\n memcpy ( gctx -> iv , ptr , gctx -> ivlen ) ;\n gctx -> iv_gen = 1 ;\n return 1 ;\n }\n if ( ( arg < 4 ) || ( gctx -> ivlen - arg ) < 8 ) return 0 ;\n if ( arg ) memcpy ( gctx -> iv , ptr , arg ) ;\n if ( EVP_CIPHER_CTX_encrypting ( c ) && RAND_bytes ( gctx -> iv + arg , gctx -> ivlen - arg ) <= 0 ) return 0 ;\n gctx -> iv_gen = 1 ;\n return 1 ;\n case EVP_CTRL_GCM_IV_GEN : if ( gctx -> iv_gen == 0 || gctx -> key_set == 0 ) return 0 ;\n CRYPTO_gcm128_setiv ( & gctx -> gcm , gctx -> iv , gctx -> ivlen ) ;\n if ( arg <= 0 || arg > gctx -> ivlen ) arg = gctx -> ivlen ;\n memcpy ( ptr , gctx -> iv + gctx -> ivlen - arg , arg ) ;\n ctr64_inc ( gctx -> iv + gctx -> ivlen - 8 ) ;\n gctx -> iv_set = 1 ;\n return 1 ;\n case EVP_CTRL_GCM_SET_IV_INV : if ( gctx -> iv_gen == 0 || gctx -> key_set == 0 || EVP_CIPHER_CTX_encrypting ( c ) ) return 0 ;\n memcpy ( gctx -> iv + gctx -> ivlen - arg , ptr , arg ) ;\n CRYPTO_gcm128_setiv ( & gctx -> gcm , gctx -> iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_TLS1_AAD : if ( arg != EVP_AEAD_TLS1_AAD_LEN ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n gctx -> tls_aad_len = arg ;\n {\n unsigned int len = EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] << 8 | EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] ;\n len -= EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n if ( ! EVP_CIPHER_CTX_encrypting ( c ) ) len -= EVP_GCM_TLS_TAG_LEN ;\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] = len >> 8 ;\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] = len & 0xff ;\n }\n return EVP_GCM_TLS_TAG_LEN ;\n case EVP_CTRL_COPY : {\n EVP_CIPHER_CTX * out = ptr ;\n EVP_AES_GCM_CTX * gctx_out = EVP_C_DATA ( EVP_AES_GCM_CTX , out ) ;\n if ( gctx -> gcm . key ) {\n if ( gctx -> gcm . key != & gctx -> ks ) return 0 ;\n gctx_out -> gcm . key = & gctx_out -> ks ;\n }\n if ( gctx -> iv == EVP_CIPHER_CTX_iv_noconst ( c ) ) gctx_out -> iv = EVP_CIPHER_CTX_iv_noconst ( out ) ;\n else {\n gctx_out -> iv = OPENSSL_malloc ( gctx -> ivlen ) ;\n if ( gctx_out -> iv == NULL ) return 0 ;\n memcpy ( gctx_out -> iv , gctx -> iv , gctx -> ivlen ) ;\n }\n return 1 ;\n }\n default : return - 1 ;\n }\n }\n static int aes_gcm_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n if ( ! iv && ! key ) return 1 ;\n if ( key ) {\n do {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) HWAES_encrypt ) ;\n # ifdef HWAES_ctr32_encrypt_blocks gctx -> ctr = ( ctr128_f ) HWAES_ctr32_encrypt_blocks ;\n # else gctx -> ctr = NULL ;\n # endif break ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE ) {\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) AES_encrypt ) ;\n gctx -> ctr = ( ctr128_f ) bsaes_ctr32_encrypt_blocks ;\n break ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) vpaes_encrypt ) ;\n gctx -> ctr = NULL ;\n break ;\n }\n else # endif ( void ) 0 ;\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & gctx -> ks . ks ) ;\n CRYPTO_gcm128_init ( & gctx -> gcm , & gctx -> ks , ( block128_f ) AES_encrypt ) ;\n # ifdef AES_CTR_ASM gctx -> ctr = ( ctr128_f ) AES_ctr32_encrypt ;\n # else gctx -> ctr = NULL ;\n # endif }\n while ( 0 ) ;\n if ( iv == NULL && gctx -> iv_set ) iv = gctx -> iv ;\n if ( iv ) {\n CRYPTO_gcm128_setiv ( & gctx -> gcm , iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n }\n gctx -> key_set = 1 ;\n }\n else {\n if ( gctx -> key_set ) CRYPTO_gcm128_setiv ( & gctx -> gcm , iv , gctx -> ivlen ) ;\n else memcpy ( gctx -> iv , iv , gctx -> ivlen ) ;\n gctx -> iv_set = 1 ;\n gctx -> iv_gen = 0 ;\n }\n return 1 ;\n }\n static int aes_gcm_tls_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n int rv = - 1 ;\n if ( out != in || len < ( EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ) ) return - 1 ;\n if ( EVP_CIPHER_CTX_ctrl ( ctx , EVP_CIPHER_CTX_encrypting ( ctx ) ? EVP_CTRL_GCM_IV_GEN : EVP_CTRL_GCM_SET_IV_INV , EVP_GCM_TLS_EXPLICIT_IV_LEN , out ) <= 0 ) goto err ;\n if ( CRYPTO_gcm128_aad ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , gctx -> tls_aad_len ) ) goto err ;\n in += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n out += EVP_GCM_TLS_EXPLICIT_IV_LEN ;\n len -= EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ;\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 32 && AES_GCM_ASM ( gctx ) ) {\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_encrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) goto err ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 32 && AES_GCM_ASM2 ( gctx ) ) {\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) goto err ;\n }\n out += len ;\n CRYPTO_gcm128_tag ( & gctx -> gcm , out , EVP_GCM_TLS_TAG_LEN ) ;\n rv = len + EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN ;\n }\n else {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 16 && AES_GCM_ASM ( gctx ) ) {\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_decrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) goto err ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 16 && AES_GCM_ASM2 ( gctx ) ) {\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , NULL , NULL , 0 ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in , out , len , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n }\n # endif if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) goto err ;\n }\n CRYPTO_gcm128_tag ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , EVP_GCM_TLS_TAG_LEN ) ;\n if ( CRYPTO_memcmp ( EVP_CIPHER_CTX_buf_noconst ( ctx ) , in + len , EVP_GCM_TLS_TAG_LEN ) ) {\n OPENSSL_cleanse ( out , len ) ;\n goto err ;\n }\n rv = len ;\n }\n err : gctx -> iv_set = 0 ;\n gctx -> tls_aad_len = - 1 ;\n return rv ;\n }\n static int aes_gcm_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_GCM_CTX * gctx = EVP_C_DATA ( EVP_AES_GCM_CTX , ctx ) ;\n if ( ! gctx -> key_set ) return - 1 ;\n if ( gctx -> tls_aad_len >= 0 ) return aes_gcm_tls_cipher ( ctx , out , in , len ) ;\n if ( ! gctx -> iv_set ) return - 1 ;\n if ( in ) {\n if ( out == NULL ) {\n if ( CRYPTO_gcm128_aad ( & gctx -> gcm , in , len ) ) return - 1 ;\n }\n else if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 32 && AES_GCM_ASM ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_encrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) return - 1 ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 32 && AES_GCM_ASM2 ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_encrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_encrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) return - 1 ;\n }\n }\n else {\n if ( gctx -> ctr ) {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM ) if ( len >= 16 && AES_GCM_ASM ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_decrypt_ctr32 ( & gctx -> gcm , in + bulk , out + bulk , len - bulk , gctx -> ctr ) ) return - 1 ;\n }\n else {\n size_t bulk = 0 ;\n # if defined ( AES_GCM_ASM2 ) if ( len >= 16 && AES_GCM_ASM2 ( gctx ) ) {\n size_t res = ( 16 - gctx -> gcm . mres ) % 16 ;\n if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in , out , res ) ) return - 1 ;\n bulk = AES_gcm_decrypt ( in + res , out + res , len - res , gctx -> gcm . key , gctx -> gcm . Yi . c , gctx -> gcm . Xi . u ) ;\n gctx -> gcm . len . u [ 1 ] += bulk ;\n bulk += res ;\n }\n # endif if ( CRYPTO_gcm128_decrypt ( & gctx -> gcm , in + bulk , out + bulk , len - bulk ) ) return - 1 ;\n }\n }\n return len ;\n }\n else {\n if ( ! EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( gctx -> taglen < 0 ) return - 1 ;\n if ( CRYPTO_gcm128_finish ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , gctx -> taglen ) != 0 ) return - 1 ;\n gctx -> iv_set = 0 ;\n return 0 ;\n }\n CRYPTO_gcm128_tag ( & gctx -> gcm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , 16 ) ;\n gctx -> taglen = 16 ;\n gctx -> iv_set = 0 ;\n return 0 ;\n }\n }\n # define CUSTOM_FLAGS ( EVP_CIPH_FLAG_DEFAULT_ASN1 \\ | EVP_CIPH_CUSTOM_IV | EVP_CIPH_FLAG_CUSTOM_CIPHER \\ | EVP_CIPH_ALWAYS_CALL_INIT | EVP_CIPH_CTRL_INIT \\ | EVP_CIPH_CUSTOM_COPY ) BLOCK_CIPHER_custom ( NID_aes , 128 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 192 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 256 , 1 , 12 , gcm , GCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) static int aes_xts_ctrl ( EVP_CIPHER_CTX * c , int type , int arg , void * ptr ) {\n EVP_AES_XTS_CTX * xctx = EVP_C_DATA ( EVP_AES_XTS_CTX , c ) ;\n if ( type == EVP_CTRL_COPY ) {\n EVP_CIPHER_CTX * out = ptr ;\n EVP_AES_XTS_CTX * xctx_out = EVP_C_DATA ( EVP_AES_XTS_CTX , out ) ;\n if ( xctx -> xts . key1 ) {\n if ( xctx -> xts . key1 != & xctx -> ks1 ) return 0 ;\n xctx_out -> xts . key1 = & xctx_out -> ks1 ;\n }\n if ( xctx -> xts . key2 ) {\n if ( xctx -> xts . key2 != & xctx -> ks2 ) return 0 ;\n xctx_out -> xts . key2 = & xctx_out -> ks2 ;\n }\n return 1 ;\n }\n else if ( type != EVP_CTRL_INIT ) return - 1 ;\n xctx -> xts . key1 = NULL ;\n xctx -> xts . key2 = NULL ;\n return 1 ;\n }\n static int aes_xts_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n EVP_AES_XTS_CTX * xctx = EVP_C_DATA ( EVP_AES_XTS_CTX , ctx ) ;\n if ( ! iv && ! key ) return 1 ;\n if ( key ) do {\n # ifdef AES_XTS_ASM xctx -> stream = enc ? AES_xts_encrypt : AES_xts_decrypt ;\n # else xctx -> stream = NULL ;\n # endif # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n if ( enc ) {\n HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) HWAES_encrypt ;\n # ifdef HWAES_xts_encrypt xctx -> stream = HWAES_xts_encrypt ;\n # endif }\n else {\n HWAES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) HWAES_decrypt ;\n # ifdef HWAES_xts_decrypt xctx -> stream = HWAES_xts_decrypt ;\n # endif }\n HWAES_set_encrypt_key ( key + EVP_CIPHER_CTX_key_length ( ctx ) / 2 , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks2 . ks ) ;\n xctx -> xts . block2 = ( block128_f ) HWAES_encrypt ;\n xctx -> xts . key1 = & xctx -> ks1 ;\n break ;\n }\n else # endif # ifdef BSAES_CAPABLE if ( BSAES_CAPABLE ) xctx -> stream = enc ? bsaes_xts_encrypt : bsaes_xts_decrypt ;\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n if ( enc ) {\n vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) vpaes_encrypt ;\n }\n else {\n vpaes_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) vpaes_decrypt ;\n }\n vpaes_set_encrypt_key ( key + EVP_CIPHER_CTX_key_length ( ctx ) / 2 , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks2 . ks ) ;\n xctx -> xts . block2 = ( block128_f ) vpaes_encrypt ;\n xctx -> xts . key1 = & xctx -> ks1 ;\n break ;\n }\n else # endif ( void ) 0 ;\n if ( enc ) {\n AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) AES_encrypt ;\n }\n else {\n AES_set_decrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks1 . ks ) ;\n xctx -> xts . block1 = ( block128_f ) AES_decrypt ;\n }\n AES_set_encrypt_key ( key + EVP_CIPHER_CTX_key_length ( ctx ) / 2 , EVP_CIPHER_CTX_key_length ( ctx ) * 4 , & xctx -> ks2 . ks ) ;\n xctx -> xts . block2 = ( block128_f ) AES_encrypt ;\n xctx -> xts . key1 = & xctx -> ks1 ;\n }\n while ( 0 ) ;\n if ( iv ) {\n xctx -> xts . key2 = & xctx -> ks2 ;\n memcpy ( EVP_CIPHER_CTX_iv_noconst ( ctx ) , iv , 16 ) ;\n }\n return 1 ;\n }\n static int aes_xts_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_XTS_CTX * xctx = EVP_C_DATA ( EVP_AES_XTS_CTX , ctx ) ;\n if ( ! xctx -> xts . key1 || ! xctx -> xts . key2 ) return 0 ;\n if ( ! out || ! in || len < AES_BLOCK_SIZE ) return 0 ;\n if ( xctx -> stream ) ( * xctx -> stream ) ( in , out , len , xctx -> xts . key1 , xctx -> xts . key2 , EVP_CIPHER_CTX_iv_noconst ( ctx ) ) ;\n else if ( CRYPTO_xts128_encrypt ( & xctx -> xts , EVP_CIPHER_CTX_iv_noconst ( ctx ) , in , out , len , EVP_CIPHER_CTX_encrypting ( ctx ) ) ) return 0 ;\n return 1 ;\n }\n # define aes_xts_cleanup NULL # define XTS_FLAGS ( EVP_CIPH_FLAG_DEFAULT_ASN1 | EVP_CIPH_CUSTOM_IV \\ | EVP_CIPH_ALWAYS_CALL_INIT | EVP_CIPH_CTRL_INIT \\ | EVP_CIPH_CUSTOM_COPY ) BLOCK_CIPHER_custom ( NID_aes , 128 , 1 , 16 , xts , XTS , XTS_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 256 , 1 , 16 , xts , XTS , XTS_FLAGS ) static int aes_ccm_ctrl ( EVP_CIPHER_CTX * c , int type , int arg , void * ptr ) {\n EVP_AES_CCM_CTX * cctx = EVP_C_DATA ( EVP_AES_CCM_CTX , c ) ;\n switch ( type ) {\n case EVP_CTRL_INIT : cctx -> key_set = 0 ;\n cctx -> iv_set = 0 ;\n cctx -> L = 8 ;\n cctx -> M = 12 ;\n cctx -> tag_set = 0 ;\n cctx -> len_set = 0 ;\n cctx -> tls_aad_len = - 1 ;\n return 1 ;\n case EVP_CTRL_AEAD_TLS1_AAD : if ( arg != EVP_AEAD_TLS1_AAD_LEN ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n cctx -> tls_aad_len = arg ;\n {\n uint16_t len = EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] << 8 | EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] ;\n len -= EVP_CCM_TLS_EXPLICIT_IV_LEN ;\n if ( ! EVP_CIPHER_CTX_encrypting ( c ) ) len -= cctx -> M ;\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 2 ] = len >> 8 ;\n EVP_CIPHER_CTX_buf_noconst ( c ) [ arg - 1 ] = len & 0xff ;\n }\n return cctx -> M ;\n case EVP_CTRL_CCM_SET_IV_FIXED : if ( arg != EVP_CCM_TLS_FIXED_IV_LEN ) return 0 ;\n memcpy ( EVP_CIPHER_CTX_iv_noconst ( c ) , ptr , arg ) ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_IVLEN : arg = 15 - arg ;\n case EVP_CTRL_CCM_SET_L : if ( arg < 2 || arg > 8 ) return 0 ;\n cctx -> L = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_SET_TAG : if ( ( arg & 1 ) || arg < 4 || arg > 16 ) return 0 ;\n if ( EVP_CIPHER_CTX_encrypting ( c ) && ptr ) return 0 ;\n if ( ptr ) {\n cctx -> tag_set = 1 ;\n memcpy ( EVP_CIPHER_CTX_buf_noconst ( c ) , ptr , arg ) ;\n }\n cctx -> M = arg ;\n return 1 ;\n case EVP_CTRL_AEAD_GET_TAG : if ( ! EVP_CIPHER_CTX_encrypting ( c ) || ! cctx -> tag_set ) return 0 ;\n if ( ! CRYPTO_ccm128_tag ( & cctx -> ccm , ptr , ( size_t ) arg ) ) return 0 ;\n cctx -> tag_set = 0 ;\n cctx -> iv_set = 0 ;\n cctx -> len_set = 0 ;\n return 1 ;\n case EVP_CTRL_COPY : {\n EVP_CIPHER_CTX * out = ptr ;\n EVP_AES_CCM_CTX * cctx_out = EVP_C_DATA ( EVP_AES_CCM_CTX , out ) ;\n if ( cctx -> ccm . key ) {\n if ( cctx -> ccm . key != & cctx -> ks ) return 0 ;\n cctx_out -> ccm . key = & cctx_out -> ks ;\n }\n return 1 ;\n }\n default : return - 1 ;\n }\n }\n static int aes_ccm_init_key ( EVP_CIPHER_CTX * ctx , const unsigned char * key , const unsigned char * iv , int enc ) {\n EVP_AES_CCM_CTX * cctx = EVP_C_DATA ( EVP_AES_CCM_CTX , ctx ) ;\n if ( ! iv && ! key ) return 1 ;\n if ( key ) do {\n # ifdef HWAES_CAPABLE if ( HWAES_CAPABLE ) {\n HWAES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & cctx -> ks . ks ) ;\n CRYPTO_ccm128_init ( & cctx -> ccm , cctx -> M , cctx -> L , & cctx -> ks , ( block128_f ) HWAES_encrypt ) ;\n cctx -> str = NULL ;\n cctx -> key_set = 1 ;\n break ;\n }\n else # endif # ifdef VPAES_CAPABLE if ( VPAES_CAPABLE ) {\n vpaes_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & cctx -> ks . ks ) ;\n CRYPTO_ccm128_init ( & cctx -> ccm , cctx -> M , cctx -> L , & cctx -> ks , ( block128_f ) vpaes_encrypt ) ;\n cctx -> str = NULL ;\n cctx -> key_set = 1 ;\n break ;\n }\n # endif AES_set_encrypt_key ( key , EVP_CIPHER_CTX_key_length ( ctx ) * 8 , & cctx -> ks . ks ) ;\n CRYPTO_ccm128_init ( & cctx -> ccm , cctx -> M , cctx -> L , & cctx -> ks , ( block128_f ) AES_encrypt ) ;\n cctx -> str = NULL ;\n cctx -> key_set = 1 ;\n }\n while ( 0 ) ;\n if ( iv ) {\n memcpy ( EVP_CIPHER_CTX_iv_noconst ( ctx ) , iv , 15 - cctx -> L ) ;\n cctx -> iv_set = 1 ;\n }\n return 1 ;\n }\n static int aes_ccm_tls_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_CCM_CTX * cctx = EVP_C_DATA ( EVP_AES_CCM_CTX , ctx ) ;\n CCM128_CONTEXT * ccm = & cctx -> ccm ;\n if ( out != in || len < ( EVP_CCM_TLS_EXPLICIT_IV_LEN + ( size_t ) cctx -> M ) ) return - 1 ;\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) memcpy ( out , EVP_CIPHER_CTX_buf_noconst ( ctx ) , EVP_CCM_TLS_EXPLICIT_IV_LEN ) ;\n memcpy ( EVP_CIPHER_CTX_iv_noconst ( ctx ) + EVP_CCM_TLS_FIXED_IV_LEN , in , EVP_CCM_TLS_EXPLICIT_IV_LEN ) ;\n len -= EVP_CCM_TLS_EXPLICIT_IV_LEN + cctx -> M ;\n if ( CRYPTO_ccm128_setiv ( ccm , EVP_CIPHER_CTX_iv_noconst ( ctx ) , 15 - cctx -> L , len ) ) return - 1 ;\n CRYPTO_ccm128_aad ( ccm , EVP_CIPHER_CTX_buf_noconst ( ctx ) , cctx -> tls_aad_len ) ;\n in += EVP_CCM_TLS_EXPLICIT_IV_LEN ;\n out += EVP_CCM_TLS_EXPLICIT_IV_LEN ;\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( cctx -> str ? CRYPTO_ccm128_encrypt_ccm64 ( ccm , in , out , len , cctx -> str ) : CRYPTO_ccm128_encrypt ( ccm , in , out , len ) ) return - 1 ;\n if ( ! CRYPTO_ccm128_tag ( ccm , out + len , cctx -> M ) ) return - 1 ;\n return len + EVP_CCM_TLS_EXPLICIT_IV_LEN + cctx -> M ;\n }\n else {\n if ( cctx -> str ? ! CRYPTO_ccm128_decrypt_ccm64 ( ccm , in , out , len , cctx -> str ) : ! CRYPTO_ccm128_decrypt ( ccm , in , out , len ) ) {\n unsigned char tag [ 16 ] ;\n if ( CRYPTO_ccm128_tag ( ccm , tag , cctx -> M ) ) {\n if ( ! CRYPTO_memcmp ( tag , in + len , cctx -> M ) ) return len ;\n }\n }\n OPENSSL_cleanse ( out , len ) ;\n return - 1 ;\n }\n }\n static int aes_ccm_cipher ( EVP_CIPHER_CTX * ctx , unsigned char * out , const unsigned char * in , size_t len ) {\n EVP_AES_CCM_CTX * cctx = EVP_C_DATA ( EVP_AES_CCM_CTX , ctx ) ;\n CCM128_CONTEXT * ccm = & cctx -> ccm ;\n if ( ! cctx -> key_set ) return - 1 ;\n if ( cctx -> tls_aad_len >= 0 ) return aes_ccm_tls_cipher ( ctx , out , in , len ) ;\n if ( ! cctx -> iv_set ) return - 1 ;\n if ( ! EVP_CIPHER_CTX_encrypting ( ctx ) && ! cctx -> tag_set ) return - 1 ;\n if ( ! out ) {\n if ( ! in ) {\n if ( CRYPTO_ccm128_setiv ( ccm , EVP_CIPHER_CTX_iv_noconst ( ctx ) , 15 - cctx -> L , len ) ) return - 1 ;\n cctx -> len_set = 1 ;\n return len ;\n }\n if ( ! cctx -> len_set && len ) return - 1 ;\n CRYPTO_ccm128_aad ( ccm , in , len ) ;\n return len ;\n }\n if ( ! in ) return 0 ;\n if ( ! cctx -> len_set ) {\n if ( CRYPTO_ccm128_setiv ( ccm , EVP_CIPHER_CTX_iv_noconst ( ctx ) , 15 - cctx -> L , len ) ) return - 1 ;\n cctx -> len_set = 1 ;\n }\n if ( EVP_CIPHER_CTX_encrypting ( ctx ) ) {\n if ( cctx -> str ? CRYPTO_ccm128_encrypt_ccm64 ( ccm , in , out , len , cctx -> str ) : CRYPTO_ccm128_encrypt ( ccm , in , out , len ) ) return - 1 ;\n cctx -> tag_set = 1 ;\n return len ;\n }\n else {\n int rv = - 1 ;\n if ( cctx -> str ? ! CRYPTO_ccm128_decrypt_ccm64 ( ccm , in , out , len , cctx -> str ) : ! CRYPTO_ccm128_decrypt ( ccm , in , out , len ) ) {\n unsigned char tag [ 16 ] ;\n if ( CRYPTO_ccm128_tag ( ccm , tag , cctx -> M ) ) {\n if ( ! CRYPTO_memcmp ( tag , EVP_CIPHER_CTX_buf_noconst ( ctx ) , cctx -> M ) ) rv = len ;\n }\n }\n if ( rv == - 1 ) OPENSSL_cleanse ( out , len ) ;\n cctx -> iv_set = 0 ;\n cctx -> tag_set = 0 ;\n cctx -> len_set = 0 ;\n return rv ;\n }\n }\n # define aes_ccm_cleanup NULL BLOCK_CIPHER_custom ( NID_aes , 128 , 1 , 12 , ccm , CCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 192 , 1 , 12 , ccm , CCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS ) BLOCK_CIPHER_custom ( NID_aes , 256 , 1 , 12 , ccm , CCM , EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS )"}
{"idx": 20145, "target": 0, "func": "static int srec_sizeof_headers ( bfd * abfd ATTRIBUTE_UNUSED , struct bfd_link_info * info ATTRIBUTE_UNUSED ) {\n return 0 ;\n }"}
{"idx": 20146, "target": 1, "func": "void vp9_fdct16x16_c ( const int16_t * input , int16_t * output , int stride ) {\n int pass ;\n int16_t intermediate [ 256 ] ;\n const int16_t * in = input ;\n int16_t * out = intermediate ;\n for ( pass = 0 ;\n pass < 2 ;\n ++ pass ) {\n int step1 [ 8 ] ;\n int step2 [ 8 ] ;\n int step3 [ 8 ] ;\n int input [ 8 ] ;\n int temp1 , temp2 ;\n int i ;\n for ( i = 0 ;\n i < 16 ;\n i ++ ) {\n if ( 0 == pass ) {\n input [ 0 ] = ( in [ 0 * stride ] + in [ 15 * stride ] ) * 4 ;\n input [ 1 ] = ( in [ 1 * stride ] + in [ 14 * stride ] ) * 4 ;\n input [ 2 ] = ( in [ 2 * stride ] + in [ 13 * stride ] ) * 4 ;\n input [ 3 ] = ( in [ 3 * stride ] + in [ 12 * stride ] ) * 4 ;\n input [ 4 ] = ( in [ 4 * stride ] + in [ 11 * stride ] ) * 4 ;\n input [ 5 ] = ( in [ 5 * stride ] + in [ 10 * stride ] ) * 4 ;\n input [ 6 ] = ( in [ 6 * stride ] + in [ 9 * stride ] ) * 4 ;\n input [ 7 ] = ( in [ 7 * stride ] + in [ 8 * stride ] ) * 4 ;\n step1 [ 0 ] = ( in [ 7 * stride ] - in [ 8 * stride ] ) * 4 ;\n step1 [ 1 ] = ( in [ 6 * stride ] - in [ 9 * stride ] ) * 4 ;\n step1 [ 2 ] = ( in [ 5 * stride ] - in [ 10 * stride ] ) * 4 ;\n step1 [ 3 ] = ( in [ 4 * stride ] - in [ 11 * stride ] ) * 4 ;\n step1 [ 4 ] = ( in [ 3 * stride ] - in [ 12 * stride ] ) * 4 ;\n step1 [ 5 ] = ( in [ 2 * stride ] - in [ 13 * stride ] ) * 4 ;\n step1 [ 6 ] = ( in [ 1 * stride ] - in [ 14 * stride ] ) * 4 ;\n step1 [ 7 ] = ( in [ 0 * stride ] - in [ 15 * stride ] ) * 4 ;\n }\n else {\n input [ 0 ] = ( ( in [ 0 * 16 ] + 1 ) >> 2 ) + ( ( in [ 15 * 16 ] + 1 ) >> 2 ) ;\n input [ 1 ] = ( ( in [ 1 * 16 ] + 1 ) >> 2 ) + ( ( in [ 14 * 16 ] + 1 ) >> 2 ) ;\n input [ 2 ] = ( ( in [ 2 * 16 ] + 1 ) >> 2 ) + ( ( in [ 13 * 16 ] + 1 ) >> 2 ) ;\n input [ 3 ] = ( ( in [ 3 * 16 ] + 1 ) >> 2 ) + ( ( in [ 12 * 16 ] + 1 ) >> 2 ) ;\n input [ 4 ] = ( ( in [ 4 * 16 ] + 1 ) >> 2 ) + ( ( in [ 11 * 16 ] + 1 ) >> 2 ) ;\n input [ 5 ] = ( ( in [ 5 * 16 ] + 1 ) >> 2 ) + ( ( in [ 10 * 16 ] + 1 ) >> 2 ) ;\n input [ 6 ] = ( ( in [ 6 * 16 ] + 1 ) >> 2 ) + ( ( in [ 9 * 16 ] + 1 ) >> 2 ) ;\n input [ 7 ] = ( ( in [ 7 * 16 ] + 1 ) >> 2 ) + ( ( in [ 8 * 16 ] + 1 ) >> 2 ) ;\n step1 [ 0 ] = ( ( in [ 7 * 16 ] + 1 ) >> 2 ) - ( ( in [ 8 * 16 ] + 1 ) >> 2 ) ;\n step1 [ 1 ] = ( ( in [ 6 * 16 ] + 1 ) >> 2 ) - ( ( in [ 9 * 16 ] + 1 ) >> 2 ) ;\n step1 [ 2 ] = ( ( in [ 5 * 16 ] + 1 ) >> 2 ) - ( ( in [ 10 * 16 ] + 1 ) >> 2 ) ;\n step1 [ 3 ] = ( ( in [ 4 * 16 ] + 1 ) >> 2 ) - ( ( in [ 11 * 16 ] + 1 ) >> 2 ) ;\n step1 [ 4 ] = ( ( in [ 3 * 16 ] + 1 ) >> 2 ) - ( ( in [ 12 * 16 ] + 1 ) >> 2 ) ;\n step1 [ 5 ] = ( ( in [ 2 * 16 ] + 1 ) >> 2 ) - ( ( in [ 13 * 16 ] + 1 ) >> 2 ) ;\n step1 [ 6 ] = ( ( in [ 1 * 16 ] + 1 ) >> 2 ) - ( ( in [ 14 * 16 ] + 1 ) >> 2 ) ;\n step1 [ 7 ] = ( ( in [ 0 * 16 ] + 1 ) >> 2 ) - ( ( in [ 15 * 16 ] + 1 ) >> 2 ) ;\n }\n {\n int s0 , s1 , s2 , s3 , s4 , s5 , s6 , s7 ;\n int t0 , t1 , t2 , t3 ;\n int x0 , x1 , x2 , x3 ;\n s0 = input [ 0 ] + input [ 7 ] ;\n s1 = input [ 1 ] + input [ 6 ] ;\n s2 = input [ 2 ] + input [ 5 ] ;\n s3 = input [ 3 ] + input [ 4 ] ;\n s4 = input [ 3 ] - input [ 4 ] ;\n s5 = input [ 2 ] - input [ 5 ] ;\n s6 = input [ 1 ] - input [ 6 ] ;\n s7 = input [ 0 ] - input [ 7 ] ;\n x0 = s0 + s3 ;\n x1 = s1 + s2 ;\n x2 = s1 - s2 ;\n x3 = s0 - s3 ;\n t0 = ( x0 + x1 ) * cospi_16_64 ;\n t1 = ( x0 - x1 ) * cospi_16_64 ;\n t2 = x3 * cospi_8_64 + x2 * cospi_24_64 ;\n t3 = x3 * cospi_24_64 - x2 * cospi_8_64 ;\n out [ 0 ] = fdct_round_shift ( t0 ) ;\n out [ 4 ] = fdct_round_shift ( t2 ) ;\n out [ 8 ] = fdct_round_shift ( t1 ) ;\n out [ 12 ] = fdct_round_shift ( t3 ) ;\n t0 = ( s6 - s5 ) * cospi_16_64 ;\n t1 = ( s6 + s5 ) * cospi_16_64 ;\n t2 = fdct_round_shift ( t0 ) ;\n t3 = fdct_round_shift ( t1 ) ;\n x0 = s4 + t2 ;\n x1 = s4 - t2 ;\n x2 = s7 - t3 ;\n x3 = s7 + t3 ;\n t0 = x0 * cospi_28_64 + x3 * cospi_4_64 ;\n t1 = x1 * cospi_12_64 + x2 * cospi_20_64 ;\n t2 = x2 * cospi_12_64 + x1 * - cospi_20_64 ;\n t3 = x3 * cospi_28_64 + x0 * - cospi_4_64 ;\n out [ 2 ] = fdct_round_shift ( t0 ) ;\n out [ 6 ] = fdct_round_shift ( t2 ) ;\n out [ 10 ] = fdct_round_shift ( t1 ) ;\n out [ 14 ] = fdct_round_shift ( t3 ) ;\n }\n {\n temp1 = ( step1 [ 5 ] - step1 [ 2 ] ) * cospi_16_64 ;\n temp2 = ( step1 [ 4 ] - step1 [ 3 ] ) * cospi_16_64 ;\n step2 [ 2 ] = fdct_round_shift ( temp1 ) ;\n step2 [ 3 ] = fdct_round_shift ( temp2 ) ;\n temp1 = ( step1 [ 4 ] + step1 [ 3 ] ) * cospi_16_64 ;\n temp2 = ( step1 [ 5 ] + step1 [ 2 ] ) * cospi_16_64 ;\n step2 [ 4 ] = fdct_round_shift ( temp1 ) ;\n step2 [ 5 ] = fdct_round_shift ( temp2 ) ;\n step3 [ 0 ] = step1 [ 0 ] + step2 [ 3 ] ;\n step3 [ 1 ] = step1 [ 1 ] + step2 [ 2 ] ;\n step3 [ 2 ] = step1 [ 1 ] - step2 [ 2 ] ;\n step3 [ 3 ] = step1 [ 0 ] - step2 [ 3 ] ;\n step3 [ 4 ] = step1 [ 7 ] - step2 [ 4 ] ;\n step3 [ 5 ] = step1 [ 6 ] - step2 [ 5 ] ;\n step3 [ 6 ] = step1 [ 6 ] + step2 [ 5 ] ;\n step3 [ 7 ] = step1 [ 7 ] + step2 [ 4 ] ;\n temp1 = step3 [ 1 ] * - cospi_8_64 + step3 [ 6 ] * cospi_24_64 ;\n temp2 = step3 [ 2 ] * cospi_24_64 + step3 [ 5 ] * cospi_8_64 ;\n step2 [ 1 ] = fdct_round_shift ( temp1 ) ;\n step2 [ 2 ] = fdct_round_shift ( temp2 ) ;\n temp1 = step3 [ 2 ] * cospi_8_64 - step3 [ 5 ] * cospi_24_64 ;\n temp2 = step3 [ 1 ] * cospi_24_64 + step3 [ 6 ] * cospi_8_64 ;\n step2 [ 5 ] = fdct_round_shift ( temp1 ) ;\n step2 [ 6 ] = fdct_round_shift ( temp2 ) ;\n step1 [ 0 ] = step3 [ 0 ] + step2 [ 1 ] ;\n step1 [ 1 ] = step3 [ 0 ] - step2 [ 1 ] ;\n step1 [ 2 ] = step3 [ 3 ] + step2 [ 2 ] ;\n step1 [ 3 ] = step3 [ 3 ] - step2 [ 2 ] ;\n step1 [ 4 ] = step3 [ 4 ] - step2 [ 5 ] ;\n step1 [ 5 ] = step3 [ 4 ] + step2 [ 5 ] ;\n step1 [ 6 ] = step3 [ 7 ] - step2 [ 6 ] ;\n step1 [ 7 ] = step3 [ 7 ] + step2 [ 6 ] ;\n temp1 = step1 [ 0 ] * cospi_30_64 + step1 [ 7 ] * cospi_2_64 ;\n temp2 = step1 [ 1 ] * cospi_14_64 + step1 [ 6 ] * cospi_18_64 ;\n out [ 1 ] = fdct_round_shift ( temp1 ) ;\n out [ 9 ] = fdct_round_shift ( temp2 ) ;\n temp1 = step1 [ 2 ] * cospi_22_64 + step1 [ 5 ] * cospi_10_64 ;\n temp2 = step1 [ 3 ] * cospi_6_64 + step1 [ 4 ] * cospi_26_64 ;\n out [ 5 ] = fdct_round_shift ( temp1 ) ;\n out [ 13 ] = fdct_round_shift ( temp2 ) ;\n temp1 = step1 [ 3 ] * - cospi_26_64 + step1 [ 4 ] * cospi_6_64 ;\n temp2 = step1 [ 2 ] * - cospi_10_64 + step1 [ 5 ] * cospi_22_64 ;\n out [ 3 ] = fdct_round_shift ( temp1 ) ;\n out [ 11 ] = fdct_round_shift ( temp2 ) ;\n temp1 = step1 [ 1 ] * - cospi_18_64 + step1 [ 6 ] * cospi_14_64 ;\n temp2 = step1 [ 0 ] * - cospi_2_64 + step1 [ 7 ] * cospi_30_64 ;\n out [ 7 ] = fdct_round_shift ( temp1 ) ;\n out [ 15 ] = fdct_round_shift ( temp2 ) ;\n }\n in ++ ;\n out += 16 ;\n }\n in = intermediate ;\n out = output ;\n }\n }"}
{"idx": 20147, "target": 0, "func": "static void log_btmp ( struct passwd const * pw ) {\n struct utmpx ut ;\n struct timeval tv ;\n const char * tty_name , * tty_num ;\n memset ( & ut , 0 , sizeof ( ut ) ) ;\n strncpy ( ut . ut_user , pw && pw -> pw_name ? pw -> pw_name : \"(unknown)\" , sizeof ( ut . ut_user ) ) ;\n get_terminal_name ( NULL , & tty_name , & tty_num ) ;\n if ( tty_num ) xstrncpy ( ut . ut_id , tty_num , sizeof ( ut . ut_id ) ) ;\n if ( tty_name ) xstrncpy ( ut . ut_line , tty_name , sizeof ( ut . ut_line ) ) ;\n gettimeofday ( & tv , NULL ) ;\n ut . ut_tv . tv_sec = tv . tv_sec ;\n ut . ut_tv . tv_usec = tv . tv_usec ;\n ut . ut_type = LOGIN_PROCESS ;\n ut . ut_pid = getpid ( ) ;\n updwtmpx ( _PATH_BTMP , & ut ) ;\n }"}
{"idx": 20148, "target": 0, "func": "static void merge_context_after_encode ( MpegEncContext * dst , MpegEncContext * src ) {\n int i ;\n MERGE ( dct_count [ 0 ] ) ;\n / ote , the other dct vars are not part of the context MERGE ( dct_count [ 1 ] ) ;\n MERGE ( mv_bits ) ;\n MERGE ( i_tex_bits ) ;\n MERGE ( p_tex_bits ) ;\n MERGE ( i_count ) ;\n MERGE ( f_count ) ;\n MERGE ( b_count ) ;\n MERGE ( skip_count ) ;\n MERGE ( misc_bits ) ;\n MERGE ( er . error_count ) ;\n MERGE ( padding_bug_score ) ;\n MERGE ( current_picture . f . error [ 0 ] ) ;\n MERGE ( current_picture . f . error [ 1 ] ) ;\n MERGE ( current_picture . f . error [ 2 ] ) ;\n if ( dst -> avctx -> noise_reduction ) {\n for ( i = 0 ;\n i < 64 ;\n i ++ ) {\n MERGE ( dct_error_sum [ 0 ] [ i ] ) ;\n MERGE ( dct_error_sum [ 1 ] [ i ] ) ;\n }\n }\n assert ( put_bits_count ( & src -> pb ) % 8 == 0 ) ;\n assert ( put_bits_count ( & dst -> pb ) % 8 == 0 ) ;\n avpriv_copy_bits ( & dst -> pb , src -> pb . buf , put_bits_count ( & src -> pb ) ) ;\n flush_put_bits ( & dst -> pb ) ;\n }"}
{"idx": 20149, "target": 0, "func": "xsltSecurityPrefsPtr xsltNewSecurityPrefs ( void ) {\n xsltSecurityPrefsPtr ret ;\n xsltInitGlobals ( ) ;\n ret = ( xsltSecurityPrefsPtr ) xmlMalloc ( sizeof ( xsltSecurityPrefs ) ) ;\n if ( ret == NULL ) {\n xsltTransformError ( NULL , NULL , NULL , \"xsltNewSecurityPrefs : malloc failed\\n\" ) ;\n return ( NULL ) ;\n }\n memset ( ret , 0 , sizeof ( xsltSecurityPrefs ) ) ;\n return ( ret ) ;\n }"}
{"idx": 20150, "target": 0, "func": "static inline void mcdc ( uint16_t * dst , uint16_t * src , int log2w , int h , int stride , int scale , unsigned dc ) {\n int i ;\n dc *= 0x10001 ;\n switch ( log2w ) {\n case 0 : for ( i = 0 ;\n i < h ;\n i ++ ) {\n dst [ 0 ] = scale * src [ 0 ] + dc ;\n if ( scale ) src += stride ;\n dst += stride ;\n }\n break ;\n case 1 : for ( i = 0 ;\n i < h ;\n i ++ ) {\n LE_CENTRIC_MUL ( dst , src , scale , dc ) ;\n if ( scale ) src += stride ;\n dst += stride ;\n }\n break ;\n case 2 : for ( i = 0 ;\n i < h ;\n i ++ ) {\n LE_CENTRIC_MUL ( dst , src , scale , dc ) ;\n LE_CENTRIC_MUL ( dst + 2 , src + 2 , scale , dc ) ;\n if ( scale ) src += stride ;\n dst += stride ;\n }\n break ;\n case 3 : for ( i = 0 ;\n i < h ;\n i ++ ) {\n LE_CENTRIC_MUL ( dst , src , scale , dc ) ;\n LE_CENTRIC_MUL ( dst + 2 , src + 2 , scale , dc ) ;\n LE_CENTRIC_MUL ( dst + 4 , src + 4 , scale , dc ) ;\n LE_CENTRIC_MUL ( dst + 6 , src + 6 , scale , dc ) ;\n if ( scale ) src += stride ;\n dst += stride ;\n }\n break ;\n default : assert ( 0 ) ;\n }\n }"}
{"idx": 20151, "target": 0, "func": "static void writer_print_time ( WriterContext * wctx , const char * key , int64_t ts , const AVRational * time_base , int is_duration ) {\n char buf [ 128 ] ;\n if ( ( ! is_duration && ts == AV_NOPTS_VALUE ) || ( is_duration && ts == 0 ) ) {\n writer_print_string ( wctx , key , \"N/A\" , PRINT_STRING_OPT ) ;\n }\n else {\n double d = ts * av_q2d ( * time_base ) ;\n struct unit_value uv ;\n uv . val . d = d ;\n uv . unit = unit_second_str ;\n value_string ( buf , sizeof ( buf ) , uv ) ;\n writer_print_string ( wctx , key , buf , 0 ) ;\n }\n }"}
{"idx": 20152, "target": 0, "func": "void getTypeOutputInfo ( Oid type , Oid * typOutput , bool * typIsVarlena ) {\n HeapTuple typeTuple ;\n Form_pg_type pt ;\n typeTuple = SearchSysCache1 ( TYPEOID , ObjectIdGetDatum ( type ) ) ;\n if ( ! HeapTupleIsValid ( typeTuple ) ) elog ( ERROR , \"cache lookup failed for type %u\" , type ) ;\n pt = ( Form_pg_type ) GETSTRUCT ( typeTuple ) ;\n if ( ! pt -> typisdefined ) ereport ( ERROR , ( errcode ( ERRCODE_UNDEFINED_OBJECT ) , errmsg ( \"type %s is only a shell\" , format_type_be ( type ) ) ) ) ;\n if ( ! OidIsValid ( pt -> typoutput ) ) ereport ( ERROR , ( errcode ( ERRCODE_UNDEFINED_FUNCTION ) , errmsg ( \"no output function available for type %s\" , format_type_be ( type ) ) ) ) ;\n * typOutput = pt -> typoutput ;\n * typIsVarlena = ( ! pt -> typbyval ) && ( pt -> typlen == - 1 ) ;\n ReleaseSysCache ( typeTuple ) ;\n }"}
{"idx": 20153, "target": 0, "func": "unsigned int vp9_sad ## m ## x ## n ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride ) {\n return sad ( src , src_stride , ref , ref_stride , m , n ) ;\n \\ }\n 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 ) {\n uint8_t comp_pred [ m * n ] ;\n vp9_comp_avg_pred ( comp_pred , second_pred , m , n , ref , ref_stride ) ;\n return sad ( src , src_stride , comp_pred , m , m , n ) ;\n \\ }\n # define sadMxNxK ( m , n , k ) void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 ) sadMxNxK ( 64 , 64 , 3 ) sadMxNxK ( 64 , 64 , 8 ) sadMxNx4D ( 64 , 64 ) sadMxN ( 64 , 32 ) sadMxNx4D ( 64 , 32 ) sadMxN ( 32 , 64 ) sadMxNx4D ( 32 , 64 ) sadMxN ( 32 , 32 ) sadMxNxK ( 32 , 32 , 3 ) sadMxNxK ( 32 , 32 , 8 ) sadMxNx4D ( 32 , 32 ) sadMxN ( 32 , 16 ) sadMxNx4D ( 32 , 16 ) sadMxN ( 16 , 32 ) sadMxNx4D ( 16 , 32 ) sadMxN ( 16 , 16 ) sadMxNxK ( 16 , 16 , 3 ) sadMxNxK ( 16 , 16 , 8 ) sadMxNx4D ( 16 , 16 ) sadMxN ( 16 , 8 ) sadMxNxK ( 16 , 8 , 3 ) sadMxNxK ( 16 , 8 , 8 ) sadMxNx4D ( 16 , 8 ) sadMxN ( 8 , 16 ) sadMxNxK ( 8 , 16 , 3 ) sadMxNxK ( 8 , 16 , 8 ) sadMxNx4D ( 8 , 16 ) sadMxN ( 8 , 8 ) sadMxNxK ( 8 , 8 , 3 ) sadMxNxK ( 8 , 8 , 8 ) sadMxNx4D ( 8 , 8 ) sadMxN ( 8 , 4 )"}
{"idx": 20154, "target": 0, "func": "static int dissect_h245_CommunicationModeTableEntry ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_CommunicationModeTableEntry , CommunicationModeTableEntry_sequence ) ;\n return offset ;\n }"}
{"idx": 20155, "target": 0, "func": "static inline int square ( int x ) {\n return x * x ;\n }"}
{"idx": 20156, "target": 0, "func": "static inline void ZERO8x2 ( void * dst , int stride ) {\n fill_rectangle ( dst , 1 , 2 , stride , 0 , 4 ) ;\n fill_rectangle ( ( ( uint8_t * ) ( dst ) ) + 4 , 1 , 2 , stride , 0 , 4 ) ;\n }"}
{"idx": 20157, "target": 0, "func": "void vp9_get8x8var_c ( const uint8_t * src_ptr , int source_stride , const uint8_t * ref_ptr , int ref_stride , unsigned int * sse , int * sum ) {\n variance ( src_ptr , source_stride , ref_ptr , ref_stride , 8 , 8 , sse , sum ) ;\n }"}
{"idx": 20158, "target": 0, "func": "static uint32_t _PPC_ioB_read ( target_phys_addr_t addr ) {\n uint32_t retval = 0 ;\n if ( addr == 0xBFFFFFF0 ) retval = pic_intack_read ( NULL ) ;\n return retval ;\n }"}
{"idx": 20159, "target": 0, "func": "static void set_downmix_coeffs ( AC3DecodeContext * s ) {\n int i ;\n float cmix = gain_levels [ s -> center_mix_level ] ;\n float smix = gain_levels [ s -> surround_mix_level ] ;\n float norm0 , norm1 ;\n for ( i = 0 ;\n i < s -> fbw_channels ;\n i ++ ) {\n s -> downmix_coeffs [ i ] [ 0 ] = gain_levels [ ac3_default_coeffs [ s -> channel_mode ] [ i ] [ 0 ] ] ;\n s -> downmix_coeffs [ i ] [ 1 ] = gain_levels [ ac3_default_coeffs [ s -> channel_mode ] [ i ] [ 1 ] ] ;\n }\n if ( s -> channel_mode > 1 && s -> channel_mode & 1 ) {\n s -> downmix_coeffs [ 1 ] [ 0 ] = s -> downmix_coeffs [ 1 ] [ 1 ] = cmix ;\n }\n if ( s -> channel_mode == AC3_CHMODE_2F1R || s -> channel_mode == AC3_CHMODE_3F1R ) {\n int nf = s -> channel_mode - 2 ;\n s -> downmix_coeffs [ nf ] [ 0 ] = s -> downmix_coeffs [ nf ] [ 1 ] = smix * LEVEL_MINUS_3DB ;\n }\n if ( s -> channel_mode == AC3_CHMODE_2F2R || s -> channel_mode == AC3_CHMODE_3F2R ) {\n int nf = s -> channel_mode - 4 ;\n s -> downmix_coeffs [ nf ] [ 0 ] = s -> downmix_coeffs [ nf + 1 ] [ 1 ] = smix ;\n }\n norm0 = norm1 = 0.0 ;\n for ( i = 0 ;\n i < s -> fbw_channels ;\n i ++ ) {\n norm0 += s -> downmix_coeffs [ i ] [ 0 ] ;\n norm1 += s -> downmix_coeffs [ i ] [ 1 ] ;\n }\n norm0 = 1.0f / norm0 ;\n norm1 = 1.0f / norm1 ;\n for ( i = 0 ;\n i < s -> fbw_channels ;\n i ++ ) {\n s -> downmix_coeffs [ i ] [ 0 ] *= norm0 ;\n s -> downmix_coeffs [ i ] [ 1 ] *= norm1 ;\n }\n if ( s -> output_mode == AC3_CHMODE_MONO ) {\n for ( i = 0 ;\n i < s -> fbw_channels ;\n i ++ ) s -> downmix_coeffs [ i ] [ 0 ] = ( s -> downmix_coeffs [ i ] [ 0 ] + s -> downmix_coeffs [ i ] [ 1 ] ) * LEVEL_MINUS_3DB ;\n }\n }"}
{"idx": 20160, "target": 0, "func": "static void move_task_done ( GObject * source_object , GAsyncResult * res , gpointer user_data ) {\n CopyMoveJob * job ;\n job = user_data ;\n if ( job -> done_callback ) {\n job -> done_callback ( job -> debuting_files , ! job_aborted ( ( CommonJob * ) job ) , job -> done_callback_data ) ;\n }\n g_list_free_full ( job -> files , g_object_unref ) ;\n g_object_unref ( job -> destination ) ;\n g_hash_table_unref ( job -> debuting_files ) ;\n g_free ( job -> icon_positions ) ;\n finalize_common ( ( CommonJob * ) job ) ;\n nautilus_file_changes_consume_changes ( TRUE ) ;\n }"}
{"idx": 20161, "target": 0, "func": "static void read_inter_mode_probs ( FRAME_CONTEXT * fc , vp9_reader * r ) {\n int i , j ;\n for ( i = 0 ;\n i < INTER_MODE_CONTEXTS ;\n ++ i ) for ( j = 0 ;\n j < INTER_MODES - 1 ;\n ++ j ) vp9_diff_update_prob ( r , & fc -> inter_mode_probs [ i ] [ j ] ) ;\n }"}
{"idx": 20162, "target": 0, "func": "static void vout_link_picture ( decoder_t * p_dec , picture_t * p_pic ) {\n vout_HoldPicture ( p_dec -> p_owner -> p_vout , p_pic ) ;\n }"}
{"idx": 20163, "target": 0, "func": "void input_DecoderDecode ( decoder_t * p_dec , block_t * p_block , bool b_do_pace ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n if ( b_do_pace ) {\n if ( ! p_owner -> b_waiting ) block_FifoPace ( p_owner -> p_fifo , 10 , SIZE_MAX ) ;\n }\n # ifdef __arm__ else if ( block_FifoSize ( p_owner -> p_fifo ) > 50 * 1024 * 1024 ) # else else if ( block_FifoSize ( p_owner -> p_fifo ) > 400 * 1024 * 1024 ) # endif {\n msg_Warn ( p_dec , \"decoder/packetizer fifo full (data not \" \"consumed quickly enough), resetting fifo!\" ) ;\n block_FifoEmpty ( p_owner -> p_fifo ) ;\n }\n block_FifoPut ( p_owner -> p_fifo , p_block ) ;\n }"}
{"idx": 20164, "target": 0, "func": "int evdns_resume ( void ) {\n evdns_requests_pump_waiting_queue ( ) ;\n return 0 ;\n }"}
{"idx": 20165, "target": 0, "func": "static void virtio_net_reset ( VirtIODevice * vdev ) {\n VirtIONet * n = to_virtio_net ( vdev ) ;\n n -> promisc = 1 ;\n n -> allmulti = 0 ;\n n -> alluni = 0 ;\n n -> nomulti = 0 ;\n n -> nouni = 0 ;\n n -> nobcast = 0 ;\n n -> mac_table . in_use = 0 ;\n n -> mac_table . first_multi = 0 ;\n n -> mac_table . multi_overflow = 0 ;\n n -> mac_table . uni_overflow = 0 ;\n memset ( n -> mac_table . macs , 0 , MAC_TABLE_ENTRIES * ETH_ALEN ) ;\n memset ( n -> vlans , 0 , MAX_VLAN >> 3 ) ;\n }"}
{"idx": 20166, "target": 0, "func": "static void fill_vaapi_pic ( VAPictureH264 * va_pic , Picture * pic , int pic_structure ) {\n if ( pic_structure == 0 ) pic_structure = pic -> reference ;\n pic_structure &= PICT_FRAME ;\n va_pic -> picture_id = ff_vaapi_get_surface_id ( pic ) ;\n va_pic -> frame_idx = pic -> long_ref ? pic -> pic_id : pic -> frame_num ;\n va_pic -> flags = 0 ;\n if ( pic_structure != PICT_FRAME ) va_pic -> flags |= ( pic_structure & PICT_TOP_FIELD ) ? VA_PICTURE_H264_TOP_FIELD : VA_PICTURE_H264_BOTTOM_FIELD ;\n if ( pic -> reference ) va_pic -> flags |= pic -> long_ref ? VA_PICTURE_H264_LONG_TERM_REFERENCE : VA_PICTURE_H264_SHORT_TERM_REFERENCE ;\n va_pic -> TopFieldOrderCnt = 0 ;\n if ( pic -> field_poc [ 0 ] != INT_MAX ) va_pic -> TopFieldOrderCnt = pic -> field_poc [ 0 ] ;\n va_pic -> BottomFieldOrderCnt = 0 ;\n if ( pic -> field_poc [ 1 ] != INT_MAX ) va_pic -> BottomFieldOrderCnt = pic -> field_poc [ 1 ] ;\n }"}
{"idx": 20167, "target": 0, "func": "static int dissect_h245_CapabilityDescriptor ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_CapabilityDescriptor , CapabilityDescriptor_sequence ) ;\n return offset ;\n }"}
{"idx": 20168, "target": 0, "func": "TEST_F ( NativeBackendLibsecretTest , RemoveNonexistentLogin ) {\n NativeBackendLibsecret backend ( 42 ) ;\n VerifiedAdd ( & backend , form_google_ ) ;\n EXPECT_EQ ( 1u , global_mock_libsecret_items -> size ( ) ) ;\n if ( ! global_mock_libsecret_items -> empty ( ) ) CheckMockSecretItem ( ( * global_mock_libsecret_items ) [ 0 ] , form_google_ , \"chrome-42\" ) ;\n PasswordStoreChangeList changes ;\n EXPECT_TRUE ( backend . RemoveLogin ( form_isc_ , & changes ) ) ;\n CheckPasswordChanges ( PasswordStoreChangeList ( ) , changes ) ;\n ScopedVector < autofill : : PasswordForm > form_list ;\n EXPECT_TRUE ( backend . GetAutofillableLogins ( & form_list ) ) ;\n EXPECT_EQ ( 1u , form_list . size ( ) ) ;\n form_list . clear ( ) ;\n EXPECT_EQ ( 1u , global_mock_libsecret_items -> size ( ) ) ;\n if ( ! global_mock_libsecret_items -> empty ( ) ) CheckMockSecretItem ( ( * global_mock_libsecret_items ) [ 0 ] , form_google_ , \"chrome-42\" ) ;\n }"}
{"idx": 20169, "target": 0, "func": "static int all_vcpus_paused ( void ) {\n CPUArchState * penv = first_cpu ;\n while ( penv ) {\n CPUState * pcpu = ENV_GET_CPU ( penv ) ;\n if ( ! pcpu -> stopped ) {\n return 0 ;\n }\n penv = penv -> next_cpu ;\n }\n return 1 ;\n }"}
{"idx": 20170, "target": 0, "func": "const gx_device * gs_getdevice ( int index ) {\n const gx_device * const * list ;\n int count = gs_lib_device_list ( & list , NULL ) ;\n if ( index < 0 || index >= count ) return 0 ;\n return list [ index ] ;\n }"}
{"idx": 20171, "target": 0, "func": "int tm_alloc ( char * resources , tm_event_t * event ) {\n if ( ! init_done ) return TM_BADINIT ;\n return TM_ENOTIMPLEMENTED ;\n }"}
{"idx": 20172, "target": 0, "func": "static const char * U_CALLCONV _CompoundTextgetName ( const UConverter * cnv ) {\n ( void ) cnv ;\n return \"x11-compound-text\" ;\n }"}
{"idx": 20173, "target": 0, "func": "struct file_list * flist_for_ndx ( int ndx , const char * fatal_error_loc ) {\n struct file_list * flist = cur_flist ;\n if ( ! flist && ! ( flist = first_flist ) ) goto not_found ;\n while ( ndx < flist -> ndx_start - 1 ) {\n if ( flist == first_flist ) goto not_found ;\n flist = flist -> prev ;\n }\n while ( ndx >= flist -> ndx_start + flist -> used ) {\n if ( ! ( flist = flist -> next ) ) goto not_found ;\n }\n return flist ;\n not_found : if ( fatal_error_loc ) {\n int first , last ;\n if ( first_flist ) {\n first = first_flist -> ndx_start - 1 ;\n last = first_flist -> prev -> ndx_start + first_flist -> prev -> used - 1 ;\n }\n else {\n first = 0 ;\n last = - 1 ;\n }\n rprintf ( FERROR , \"File-list index %d not in %d - %d (%s) [%s]\\n\" , ndx , first , last , fatal_error_loc , who_am_i ( ) ) ;\n exit_cleanup ( RERR_PROTOCOL ) ;\n }\n return NULL ;\n }"}
{"idx": 20174, "target": 0, "func": "static int dissect_ber_T_arbitrary ( gboolean implicit_tag _U_ , tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n if ( actx -> external . u . ber . ber_callback ) {\n offset = actx -> external . u . ber . ber_callback ( FALSE , tvb , offset , actx , tree , hf_index ) ;\n }\n else {\n offset = dissect_ber_bitstring ( implicit_tag , actx , tree , tvb , offset , NULL , hf_index , - 1 , & actx -> external . arbitrary ) ;\n }\n return offset ;\n }"}
{"idx": 20175, "target": 0, "func": "static void copy_block ( uint8_t * dest , int dest_stride , const uint8_t * src , int src_stride , BLOCK_SIZE bs ) {\n int r ;\n for ( r = 0 ;\n r < heights [ bs ] ;\n ++ r ) {\n vpx_memcpy ( dest , src , widths [ bs ] ) ;\n dest += dest_stride ;\n src += src_stride ;\n }\n }"}
{"idx": 20176, "target": 0, "func": "TSReturnCode TSHttpTxnServerReqGet ( TSHttpTxn txnp , TSMBuffer * bufp , TSMLoc * obj ) {\n sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) bufp ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) obj ) == TS_SUCCESS ) ;\n HttpSM * sm = ( HttpSM * ) txnp ;\n HTTPHdr * hptr = & ( sm -> t_state . hdr_info . server_request ) ;\n if ( hptr -> valid ( ) ) {\n * ( reinterpret_cast < HTTPHdr * * > ( bufp ) ) = hptr ;\n * obj = reinterpret_cast < TSMLoc > ( hptr -> m_http ) ;\n sdk_assert ( sdk_sanity_check_mbuffer ( * bufp ) == TS_SUCCESS ) ;\n return TS_SUCCESS ;\n }\n return TS_ERROR ;\n }"}
{"idx": 20177, "target": 0, "func": "static void dumpblankglyph ( struct glyphinfo * gi , SplineFont * sf , int fixedwidth ) {\n int advance = gi -> next_glyph == 1 ? 0 : fixedwidth <= 0 ? ( sf -> ascent + sf -> descent ) / 3 : fixedwidth ;\n gi -> pointcounts [ gi -> next_glyph ] = 0 ;\n gi -> loca [ gi -> next_glyph ++ ] = ftell ( gi -> glyphs ) ;\n putshort ( gi -> hmtx , advance ) ;\n putshort ( gi -> hmtx , 0 ) ;\n if ( sf -> hasvmetrics ) {\n putshort ( gi -> vmtx , gi -> next_glyph == 2 ? 0 : ( sf -> ascent + sf -> descent ) ) ;\n putshort ( gi -> vmtx , 0 ) ;\n }\n }"}
{"idx": 20178, "target": 0, "func": "int ff_init_me ( MpegEncContext * s ) {\n MotionEstContext * const c = & s -> me ;\n int cache_size = FFMIN ( ME_MAP_SIZE >> ME_MAP_SHIFT , 1 << ME_MAP_SHIFT ) ;\n int dia_size = FFMAX ( FFABS ( s -> avctx -> dia_size ) & 255 , FFABS ( s -> avctx -> pre_dia_size ) & 255 ) ;\n if ( FFMIN ( s -> avctx -> dia_size , s -> avctx -> pre_dia_size ) < - ME_MAP_SIZE ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"ME_MAP size is too small for SAB diamond\\n\" ) ;\n return - 1 ;\n }\n if ( s -> me_method != ME_ZERO && s -> me_method != ME_EPZS && s -> me_method != ME_X1 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"me_method is only allowed to be set to zero and epzs;\n for hex,umh,full and others see dia_size\\n\" ) ;\n return - 1 ;\n }\n c -> avctx = s -> avctx ;\n if ( cache_size < 2 * dia_size && ! c -> stride ) {\n av_log ( s -> avctx , AV_LOG_INFO , \"ME_MAP size may be a little small for the selected diamond size\\n\" ) ;\n }\n ff_set_cmp ( & s -> dsp , s -> dsp . me_pre_cmp , c -> avctx -> me_pre_cmp ) ;\n ff_set_cmp ( & s -> dsp , s -> dsp . me_cmp , c -> avctx -> me_cmp ) ;\n ff_set_cmp ( & s -> dsp , s -> dsp . me_sub_cmp , c -> avctx -> me_sub_cmp ) ;\n ff_set_cmp ( & s -> dsp , s -> dsp . mb_cmp , c -> avctx -> mb_cmp ) ;\n c -> flags = get_flags ( c , 0 , c -> avctx -> me_cmp & FF_CMP_CHROMA ) ;\n c -> sub_flags = get_flags ( c , 0 , c -> avctx -> me_sub_cmp & FF_CMP_CHROMA ) ;\n c -> mb_flags = get_flags ( c , 0 , c -> avctx -> mb_cmp & FF_CMP_CHROMA ) ;\n if ( s -> flags & CODEC_FLAG_QPEL ) {\n c -> sub_motion_search = qpel_motion_search ;\n c -> qpel_avg = s -> dsp . avg_qpel_pixels_tab ;\n if ( s -> no_rounding ) c -> qpel_put = s -> dsp . put_no_rnd_qpel_pixels_tab ;\n else c -> qpel_put = s -> dsp . put_qpel_pixels_tab ;\n }\n else {\n if ( c -> avctx -> me_sub_cmp & FF_CMP_CHROMA ) c -> sub_motion_search = hpel_motion_search ;\n else if ( c -> avctx -> me_sub_cmp == FF_CMP_SAD && c -> avctx -> me_cmp == FF_CMP_SAD && c -> avctx -> mb_cmp == FF_CMP_SAD ) c -> sub_motion_search = sad_hpel_motion_search ;\n else c -> sub_motion_search = hpel_motion_search ;\n }\n c -> hpel_avg = s -> dsp . avg_pixels_tab ;\n if ( s -> no_rounding ) c -> hpel_put = s -> dsp . put_no_rnd_pixels_tab ;\n else c -> hpel_put = s -> dsp . put_pixels_tab ;\n if ( s -> linesize ) {\n c -> stride = s -> linesize ;\n c -> uvstride = s -> uvlinesize ;\n }\n else {\n c -> stride = 16 * s -> mb_width + 32 ;\n c -> uvstride = 8 * s -> mb_width + 16 ;\n }\n if ( ( c -> avctx -> me_cmp & FF_CMP_CHROMA ) ) {\n s -> dsp . me_cmp [ 2 ] = zero_cmp ;\n }\n if ( ( c -> avctx -> me_sub_cmp & FF_CMP_CHROMA ) && ! s -> dsp . me_sub_cmp [ 2 ] ) {\n s -> dsp . me_sub_cmp [ 2 ] = zero_cmp ;\n }\n c -> hpel_put [ 2 ] [ 0 ] = c -> hpel_put [ 2 ] [ 1 ] = c -> hpel_put [ 2 ] [ 2 ] = c -> hpel_put [ 2 ] [ 3 ] = zero_hpel ;\n if ( s -> codec_id == AV_CODEC_ID_H261 ) {\n c -> sub_motion_search = no_sub_motion_search ;\n }\n return 0 ;\n }"}
{"idx": 20179, "target": 0, "func": "void free_sets ( REP_SETS * sets ) {\n my_free ( sets -> set_buffer ) ;\n my_free ( sets -> bit_buffer ) ;\n return ;\n }"}
{"idx": 20180, "target": 1, "func": "static ossl_inline LHASH_OF ( type ) * lh_ ## type ## _new ( unsigned long ( * hfn ) ( const type * ) , int ( * cfn ) ( const type * , const type * ) ) {\n return ( LHASH_OF ( type ) * ) OPENSSL_LH_new ( ( OPENSSL_LH_HASHFUNC ) hfn , ( OPENSSL_LH_COMPFUNC ) cfn ) ;\n }\n static ossl_inline void lh_ ## type ## _free ( LHASH_OF ( type ) * lh ) {\n OPENSSL_LH_free ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline type * lh_ ## type ## _insert ( LHASH_OF ( type ) * lh , type * d ) {\n return ( type * ) OPENSSL_LH_insert ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline type * lh_ ## type ## _delete ( LHASH_OF ( type ) * lh , const type * d ) {\n return ( type * ) OPENSSL_LH_delete ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline type * lh_ ## type ## _retrieve ( LHASH_OF ( type ) * lh , const type * d ) {\n return ( type * ) OPENSSL_LH_retrieve ( ( OPENSSL_LHASH * ) lh , d ) ;\n }\n static ossl_inline int lh_ ## type ## _error ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_error ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _num_items ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_num_items ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _node_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _node_usage_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_node_usage_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline void lh_ ## type ## _stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) {\n OPENSSL_LH_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ;\n }\n static ossl_inline unsigned long lh_ ## type ## _get_down_load ( LHASH_OF ( type ) * lh ) {\n return OPENSSL_LH_get_down_load ( ( OPENSSL_LHASH * ) lh ) ;\n }\n static ossl_inline void lh_ ## type ## _set_down_load ( LHASH_OF ( type ) * lh , unsigned long dl ) {\n OPENSSL_LH_set_down_load ( ( OPENSSL_LHASH * ) lh , dl ) ;\n }\n static ossl_inline void lh_ ## type ## _doall ( LHASH_OF ( type ) * lh , void ( * doall ) ( type * ) ) {\n OPENSSL_LH_doall ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNC ) doall ) ;\n }\n LHASH_OF ( type ) # define IMPLEMENT_LHASH_DOALL_ARG_CONST ( type , argtype ) int_implement_lhash_doall ( type , argtype , const type ) # define IMPLEMENT_LHASH_DOALL_ARG ( type , argtype ) int_implement_lhash_doall ( type , argtype , type ) # define int_implement_lhash_doall ( type , argtype , cbargtype ) static ossl_inline void lh_ ## type ## _doall_ ## argtype ( LHASH_OF ( type ) * lh , void ( * fn ) ( cbargtype * , argtype * ) , argtype * arg ) {\n OPENSSL_LH_doall_arg ( ( OPENSSL_LHASH * ) lh , ( OPENSSL_LH_DOALL_FUNCARG ) fn , ( void * ) arg ) ;\n }\n LHASH_OF ( type ) DEFINE_LHASH_OF ( OPENSSL_STRING )"}
{"idx": 20181, "target": 0, "func": "static int virtio_net_handle_mac ( VirtIONet * n , uint8_t cmd , VirtQueueElement * elem ) {\n struct virtio_net_ctrl_mac mac_data ;\n if ( cmd != VIRTIO_NET_CTRL_MAC_TABLE_SET || elem -> out_num != 3 || elem -> out_sg [ 1 ] . iov_len < sizeof ( mac_data ) || elem -> out_sg [ 2 ] . iov_len < sizeof ( mac_data ) ) return VIRTIO_NET_ERR ;\n n -> mac_table . in_use = 0 ;\n n -> mac_table . first_multi = 0 ;\n n -> mac_table . uni_overflow = 0 ;\n n -> mac_table . multi_overflow = 0 ;\n memset ( n -> mac_table . macs , 0 , MAC_TABLE_ENTRIES * ETH_ALEN ) ;\n mac_data . entries = ldl_p ( elem -> out_sg [ 1 ] . iov_base ) ;\n if ( sizeof ( mac_data . entries ) + ( mac_data . entries * ETH_ALEN ) > elem -> out_sg [ 1 ] . iov_len ) return VIRTIO_NET_ERR ;\n if ( mac_data . entries <= MAC_TABLE_ENTRIES ) {\n memcpy ( n -> mac_table . macs , elem -> out_sg [ 1 ] . iov_base + sizeof ( mac_data ) , mac_data . entries * ETH_ALEN ) ;\n n -> mac_table . in_use += mac_data . entries ;\n }\n else {\n n -> mac_table . uni_overflow = 1 ;\n }\n n -> mac_table . first_multi = n -> mac_table . in_use ;\n mac_data . entries = ldl_p ( elem -> out_sg [ 2 ] . iov_base ) ;\n if ( sizeof ( mac_data . entries ) + ( mac_data . entries * ETH_ALEN ) > elem -> out_sg [ 2 ] . iov_len ) return VIRTIO_NET_ERR ;\n if ( mac_data . entries ) {\n if ( n -> mac_table . in_use + mac_data . entries <= MAC_TABLE_ENTRIES ) {\n memcpy ( n -> mac_table . macs + ( n -> mac_table . in_use * ETH_ALEN ) , elem -> out_sg [ 2 ] . iov_base + sizeof ( mac_data ) , mac_data . entries * ETH_ALEN ) ;\n n -> mac_table . in_use += mac_data . entries ;\n }\n else {\n n -> mac_table . multi_overflow = 1 ;\n }\n }\n return VIRTIO_NET_OK ;\n }"}
{"idx": 20182, "target": 0, "func": "int xmlHashSize ( xmlHashTablePtr table ) {\n if ( table == NULL ) return ( - 1 ) ;\n return ( table -> nbElems ) ;\n }"}
{"idx": 20183, "target": 0, "func": "Oid get_func_variadictype ( Oid funcid ) {\n HeapTuple tp ;\n Oid result ;\n tp = SearchSysCache1 ( PROCOID , ObjectIdGetDatum ( funcid ) ) ;\n if ( ! HeapTupleIsValid ( tp ) ) elog ( ERROR , \"cache lookup failed for function %u\" , funcid ) ;\n result = ( ( Form_pg_proc ) GETSTRUCT ( tp ) ) -> provariadic ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }"}
{"idx": 20184, "target": 0, "func": "void var_set_query_get_value ( struct st_command * command , VAR * var ) {\n long row_no ;\n int col_no = - 1 ;\n MYSQL_RES * res ;\n MYSQL * mysql = cur_con -> mysql ;\n static DYNAMIC_STRING ds_query ;\n static DYNAMIC_STRING ds_col ;\n static DYNAMIC_STRING ds_row ;\n const struct command_arg query_get_value_args [ ] = {\n {\n \"query\" , ARG_STRING , TRUE , & ds_query , \"Query to run\" }\n , {\n \"column name\" , ARG_STRING , TRUE , & ds_col , \"Name of column\" }\n , {\n \"row number\" , ARG_STRING , TRUE , & ds_row , \"Number for row\" }\n }\n ;\n DBUG_ENTER ( \"var_set_query_get_value\" ) ;\n LINT_INIT ( res ) ;\n if ( ! mysql ) {\n handle_no_active_connection ( command , cur_con , & ds_res ) ;\n DBUG_VOID_RETURN ;\n }\n strip_parentheses ( command ) ;\n DBUG_PRINT ( \"info\" , ( \"query: %s\" , command -> query ) ) ;\n check_command_args ( command , command -> first_argument , query_get_value_args , sizeof ( query_get_value_args ) / sizeof ( struct command_arg ) , ',' ) ;\n DBUG_PRINT ( \"info\" , ( \"query: %s\" , ds_query . str ) ) ;\n DBUG_PRINT ( \"info\" , ( \"col: %s\" , ds_col . str ) ) ;\n if ( ! str2int ( ds_row . str , 10 , ( long ) 0 , ( long ) INT_MAX , & row_no ) ) die ( \"Invalid row number: '%s'\" , ds_row . str ) ;\n DBUG_PRINT ( \"info\" , ( \"row: %s, row_no: %ld\" , ds_row . str , row_no ) ) ;\n dynstr_free ( & ds_row ) ;\n if ( strip_surrounding ( ds_query . str , '\"' , '\"' ) ) die ( \"Mismatched \\\"'s around query '%s'\" , ds_query . str ) ;\n if ( mysql_real_query ( mysql , ds_query . str , ds_query . length ) ) {\n handle_error ( curr_command , mysql_errno ( mysql ) , mysql_error ( mysql ) , mysql_sqlstate ( mysql ) , & ds_res ) ;\n dynstr_free ( & ds_query ) ;\n dynstr_free ( & ds_col ) ;\n eval_expr ( var , \"\" , 0 ) ;\n DBUG_VOID_RETURN ;\n }\n if ( ! ( res = mysql_store_result ( mysql ) ) ) {\n report_or_die ( \"Query '%s' didn't return a result set\" , ds_query . str ) ;\n dynstr_free ( & ds_query ) ;\n dynstr_free ( & ds_col ) ;\n eval_expr ( var , \"\" , 0 ) ;\n return ;\n }\n {\n uint i ;\n uint num_fields = mysql_num_fields ( res ) ;\n MYSQL_FIELD * fields = mysql_fetch_fields ( res ) ;\n for ( i = 0 ;\n i < num_fields ;\n i ++ ) {\n if ( strcmp ( fields [ i ] . name , ds_col . str ) == 0 && strlen ( fields [ i ] . name ) == ds_col . length ) {\n col_no = i ;\n break ;\n }\n }\n if ( col_no == - 1 ) {\n mysql_free_result ( res ) ;\n report_or_die ( \"Could not find column '%s' in the result of '%s'\" , ds_col . str , ds_query . str ) ;\n dynstr_free ( & ds_query ) ;\n dynstr_free ( & ds_col ) ;\n return ;\n }\n DBUG_PRINT ( \"info\" , ( \"Found column %d with name '%s'\" , i , fields [ i ] . name ) ) ;\n }\n dynstr_free ( & ds_col ) ;\n {\n MYSQL_ROW row ;\n long rows = 0 ;\n const char * value = \"No such row\" ;\n while ( ( row = mysql_fetch_row ( res ) ) ) {\n if ( ++ rows == row_no ) {\n DBUG_PRINT ( \"info\" , ( \"At row %ld, column %d is '%s'\" , row_no , col_no , row [ col_no ] ) ) ;\n if ( row [ col_no ] ) value = row [ col_no ] ;\n else value = \"NULL\" ;\n break ;\n }\n }\n eval_expr ( var , value , 0 , false , false ) ;\n }\n dynstr_free ( & ds_query ) ;\n mysql_free_result ( res ) ;\n DBUG_VOID_RETURN ;\n }"}
{"idx": 20185, "target": 0, "func": "void proto_reg_handoff_ipmi_trace ( void ) {\n dissector_handle_t ipmi_trace_handle ;\n ipmi_trace_handle = create_dissector_handle ( dissect_ipmi_trace , proto_ipmi_trace ) ;\n dissector_add_uint ( \"wtap_encap\" , WTAP_ENCAP_IPMI_TRACE , ipmi_trace_handle ) ;\n dissector_add_uint ( \"ipmi.protocol\" , IPMI_PROTO_IPMB_1_0 , find_dissector ( \"ipmb\" ) ) ;\n dissector_add_uint ( \"ipmi.protocol\" , IPMI_PROTO_KCS , find_dissector ( \"kcs\" ) ) ;\n dissector_add_uint ( \"ipmi.protocol\" , IPMI_PROTO_TMODE , find_dissector ( \"tmode\" ) ) ;\n }"}
{"idx": 20186, "target": 0, "func": "void thd_cleanup ( THD * thd ) {\n thd -> cleanup ( ) ;\n }"}
{"idx": 20187, "target": 0, "func": "int mainwindows_reserve_lines ( int top , int bottom ) {\n MAIN_WINDOW_REC * window ;\n int ret ;\n ret = - 1 ;\n if ( top != 0 ) {\n GSList * list , * tmp ;\n g_return_val_if_fail ( top > 0 || screen_reserved_top > top , - 1 ) ;\n ret = screen_reserved_top ;\n screen_reserved_top += top ;\n list = mainwindows_get_line ( mainwindows_find_lower ( NULL ) ) ;\n for ( tmp = list ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n window = tmp -> data ;\n window -> first_line += top ;\n mainwindow_resize ( window , 0 , - top ) ;\n }\n g_slist_free ( list ) ;\n }\n if ( bottom != 0 ) {\n GSList * list , * tmp ;\n g_return_val_if_fail ( bottom > 0 || screen_reserved_bottom > bottom , - 1 ) ;\n ret = screen_reserved_bottom ;\n screen_reserved_bottom += bottom ;\n list = mainwindows_get_line ( mainwindows_find_upper ( NULL ) ) ;\n for ( tmp = list ;\n tmp != NULL ;\n tmp = tmp -> next ) {\n window = tmp -> data ;\n window -> last_line -= bottom ;\n mainwindow_resize ( window , 0 , - bottom ) ;\n }\n g_slist_free ( list ) ;\n }\n return ret ;\n }"}
{"idx": 20188, "target": 1, "func": "int main ( int argc , char * * argv ) {\n if ( argc > 1 && ! strcmp ( argv [ 1 ] , \"--verbose\" ) ) verbose = 1 ;\n else if ( argc > 1 && ! strcmp ( argv [ 1 ] , \"--debug\" ) ) verbose = debug = 1 ;\n if ( ! gcry_check_version ( GCRYPT_VERSION ) ) die ( \"version mismatch\\n\" ) ;\n gcry_control ( GCRYCTL_DISABLE_SECMEM , 0 ) ;\n gcry_control ( GCRYCTL_ENABLE_QUICK_RANDOM , 0 ) ;\n if ( debug ) gcry_control ( GCRYCTL_SET_DEBUG_FLAGS , 1u , 0 ) ;\n gcry_control ( GCRYCTL_INITIALIZATION_FINISHED , 0 ) ;\n set_get_point ( ) ;\n context_alloc ( ) ;\n context_param ( ) ;\n basic_ec_math ( ) ;\n basic_ec_math_simplified ( ) ;\n show ( \"All tests completed. Errors: %d\\n\" , error_count ) ;\n return error_count ? 1 : 0 ;\n }"}
{"idx": 20189, "target": 1, "func": "static uint64_t vmport_ioport_read ( void * opaque , hwaddr addr , unsigned size ) {\n VMPortState * s = opaque ;\n CPUX86State * env = cpu_single_env ;\n unsigned char command ;\n uint32_t eax ;\n cpu_synchronize_state ( CPU ( x86_env_get_cpu ( env ) ) ) ;\n eax = env -> regs [ R_EAX ] ;\n if ( eax != VMPORT_MAGIC ) return eax ;\n command = env -> regs [ R_ECX ] ;\n if ( command >= VMPORT_ENTRIES ) return eax ;\n if ( ! s -> func [ command ] ) {\n # ifdef VMPORT_DEBUG fprintf ( stderr , \"vmport: unknown command %x\\n\" , command ) ;\n # endif return eax ;\n }\n return s -> func [ command ] ( s -> opaque [ command ] , addr ) ;\n }"}
{"idx": 20190, "target": 0, "func": "afs_int32 listOwned ( struct rx_call * call , afs_int32 aid , prlist * alist , afs_int32 * lastP , afs_int32 * cid ) {\n afs_int32 code ;\n struct ubik_trans * tt ;\n struct prentry tentry ;\n afs_int32 head = 0 ;\n afs_int32 start ;\n alist -> prlist_len = 0 ;\n alist -> prlist_val = NULL ;\n if ( ! lastP ) return PRBADARG ;\n start = * lastP ;\n * lastP = 0 ;\n code = Initdb ( ) ;\n if ( code != PRSUCCESS ) return code ;\n code = ubik_BeginTransReadAny ( dbase , UBIK_READTRANS , & tt ) ;\n if ( code ) return code ;\n code = ubik_SetLock ( tt , 1 , 1 , LOCKREAD ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = read_DbHeader ( tt ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n code = WhoIsThis ( call , tt , cid ) ;\n if ( code ) ABORT_WITH ( tt , PRPERM ) ;\n if ( start ) {\n code = pr_ReadEntry ( tt , 0 , start , & tentry ) ;\n if ( ! code && ( tentry . owner == aid ) ) head = start ;\n }\n if ( ! head ) {\n if ( aid ) {\n afs_int32 loc = FindByID ( tt , aid ) ;\n if ( loc == 0 ) ABORT_WITH ( tt , PRNOENT ) ;\n code = pr_ReadEntry ( tt , 0 , loc , & tentry ) ;\n if ( code ) ABORT_WITH ( tt , code ) ;\n if ( ! AccessOK ( tt , * cid , & tentry , - 1 , PRP_OWNED_ANY ) ) ABORT_WITH ( tt , PRPERM ) ;\n head = tentry . owned ;\n }\n else {\n if ( ! AccessOK ( tt , * cid , 0 , 0 , 0 ) ) ABORT_WITH ( tt , PRPERM ) ;\n head = ntohl ( cheader . orphan ) ;\n }\n }\n code = GetOwnedChain ( tt , & head , alist ) ;\n if ( code ) {\n if ( code == PRTOOMANY ) * lastP = head ;\n else ABORT_WITH ( tt , code ) ;\n }\n code = ubik_EndTrans ( tt ) ;\n return code ;\n }"}
{"idx": 20191, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FastUnloadTest , MAYBE_WindowCloseAfterBeforeUnloadCrash ) {\n if ( base : : CommandLine : : ForCurrentProcess ( ) -> HasSwitch ( switches : : kSingleProcess ) ) return ;\n NavigateToDataURL ( BEFORE_UNLOAD_HTML , \"beforeunload\" ) ;\n content : : WebContents * beforeunload_contents = browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) ;\n content : : WindowedNotificationObserver window_observer ( chrome : : NOTIFICATION_BROWSER_CLOSED , content : : NotificationService : : AllSources ( ) ) ;\n chrome : : CloseWindow ( browser ( ) ) ;\n CrashTab ( beforeunload_contents ) ;\n window_observer . Wait ( ) ;\n }"}
{"idx": 20192, "target": 0, "func": "static MagickBooleanType IsIPL ( const unsigned char * magick , const size_t length ) {\n if ( length < 4 ) return ( MagickFalse ) ;\n if ( LocaleNCompare ( ( const char * ) magick , \"data\" , 4 ) == 0 ) return ( MagickTrue ) ;\n return ( MagickFalse ) ;\n }"}
{"idx": 20193, "target": 0, "func": "static void * Type_vcgt_Dup ( struct _cms_typehandler_struct * self , const void * Ptr , cmsUInt32Number n ) {\n cmsToneCurve * * OldCurves = ( cmsToneCurve * * ) Ptr ;\n cmsToneCurve * * NewCurves ;\n NewCurves = ( cmsToneCurve * * ) _cmsCalloc ( self -> ContextID , 3 , sizeof ( cmsToneCurve * ) ) ;\n if ( NewCurves == NULL ) return NULL ;\n NewCurves [ 0 ] = cmsDupToneCurve ( OldCurves [ 0 ] ) ;\n NewCurves [ 1 ] = cmsDupToneCurve ( OldCurves [ 1 ] ) ;\n NewCurves [ 2 ] = cmsDupToneCurve ( OldCurves [ 2 ] ) ;\n return ( void * ) NewCurves ;\n cmsUNUSED_PARAMETER ( n ) ;\n }"}
{"idx": 20194, "target": 0, "func": "static void std_conv_pixmap ( fz_context * ctx , fz_pixmap * dst , fz_pixmap * src , fz_colorspace * prf , const fz_default_colorspaces * default_cs , const fz_color_params * color_params , int copy_spots ) {\n float srcv [ FZ_MAX_COLORS ] ;\n float dstv [ FZ_MAX_COLORS ] ;\n int srcn , dstn ;\n int k , i ;\n size_t w = src -> w ;\n int h = src -> h ;\n ptrdiff_t d_line_inc = dst -> stride - w * dst -> n ;\n ptrdiff_t s_line_inc = src -> stride - w * src -> n ;\n int da = dst -> alpha ;\n int sa = src -> alpha ;\n fz_colorspace * ss = src -> colorspace ;\n fz_colorspace * ds = dst -> colorspace ;\n unsigned char * s = src -> samples ;\n unsigned char * d = dst -> samples ;\n if ( ( int ) w < 0 || h < 0 ) return ;\n if ( color_params == NULL ) color_params = fz_default_color_params ( ctx ) ;\n srcn = ss -> n ;\n dstn = ds -> n ;\n assert ( src -> w == dst -> w && src -> h == dst -> h ) ;\n assert ( src -> n == srcn + sa ) ;\n assert ( dst -> n == dstn + da ) ;\n if ( d_line_inc == 0 && s_line_inc == 0 ) {\n w *= h ;\n h = 1 ;\n }\n if ( ( fz_colorspace_is_lab ( ctx , ss ) || fz_colorspace_is_lab_icc ( ctx , ss ) ) && srcn == 3 ) {\n fz_color_converter cc ;\n fz_find_color_converter ( ctx , & cc , NULL , ds , ss , color_params ) ;\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n srcv [ 0 ] = * s ++ / 255.0f * 100 ;\n srcv [ 1 ] = * s ++ - 128 ;\n srcv [ 2 ] = * s ++ - 128 ;\n cc . convert ( ctx , & cc , dstv , srcv ) ;\n for ( k = 0 ;\n k < dstn ;\n k ++ ) * d ++ = dstv [ k ] * 255 ;\n if ( da ) * d ++ = ( sa ? * s : 255 ) ;\n s += sa ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n fz_drop_color_converter ( ctx , & cc ) ;\n }\n else if ( w * h < 256 ) {\n fz_color_converter cc ;\n fz_find_color_converter ( ctx , & cc , NULL , ds , ss , color_params ) ;\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n for ( k = 0 ;\n k < srcn ;\n k ++ ) srcv [ k ] = * s ++ / 255.0f ;\n cc . convert ( ctx , & cc , dstv , srcv ) ;\n for ( k = 0 ;\n k < dstn ;\n k ++ ) * d ++ = dstv [ k ] * 255 ;\n if ( da ) * d ++ = ( sa ? * s : 255 ) ;\n s += sa ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n fz_drop_color_converter ( ctx , & cc ) ;\n }\n else if ( srcn == 1 ) {\n unsigned char lookup [ FZ_MAX_COLORS * 256 ] ;\n fz_color_converter cc ;\n fz_find_color_converter ( ctx , & cc , NULL , ds , ss , color_params ) ;\n for ( i = 0 ;\n i < 256 ;\n i ++ ) {\n srcv [ 0 ] = i / 255.0f ;\n cc . convert ( ctx , & cc , dstv , srcv ) ;\n for ( k = 0 ;\n k < dstn ;\n k ++ ) lookup [ i * dstn + k ] = dstv [ k ] * 255 ;\n }\n fz_drop_color_converter ( ctx , & cc ) ;\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n i = * s ++ ;\n for ( k = 0 ;\n k < dstn ;\n k ++ ) * d ++ = lookup [ i * dstn + k ] ;\n if ( da ) * d ++ = ( sa ? * s : 255 ) ;\n s += sa ;\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n else {\n fz_hash_table * lookup ;\n unsigned char * color ;\n unsigned char dummy = s [ 0 ] ^ 255 ;\n unsigned char * sold = & dummy ;\n unsigned char * dold ;\n fz_color_converter cc ;\n lookup = fz_new_hash_table ( ctx , 509 , srcn , - 1 , NULL ) ;\n fz_find_color_converter ( ctx , & cc , NULL , ds , ss , color_params ) ;\n fz_try ( ctx ) {\n while ( h -- ) {\n size_t ww = w ;\n while ( ww -- ) {\n if ( * s == * sold && memcmp ( sold , s , srcn ) == 0 ) {\n sold = s ;\n memcpy ( d , dold , dstn ) ;\n d += dstn ;\n s += srcn ;\n if ( da ) * d ++ = ( sa ? * s : 255 ) ;\n s += sa ;\n }\n else {\n sold = s ;\n dold = d ;\n color = fz_hash_find ( ctx , lookup , s ) ;\n if ( color ) {\n memcpy ( d , color , dstn ) ;\n s += srcn ;\n d += dstn ;\n if ( da ) * d ++ = ( sa ? * s : 255 ) ;\n s += sa ;\n }\n else {\n for ( k = 0 ;\n k < srcn ;\n k ++ ) srcv [ k ] = * s ++ / 255.0f ;\n cc . convert ( ctx , & cc , dstv , srcv ) ;\n for ( k = 0 ;\n k < dstn ;\n k ++ ) * d ++ = dstv [ k ] * 255 ;\n fz_hash_insert ( ctx , lookup , s - srcn , d - dstn ) ;\n if ( da ) * d ++ = ( sa ? * s : 255 ) ;\n s += sa ;\n }\n }\n }\n d += d_line_inc ;\n s += s_line_inc ;\n }\n }\n fz_always ( ctx ) fz_drop_color_converter ( ctx , & cc ) ;\n fz_catch ( ctx ) fz_rethrow ( ctx ) ;\n fz_drop_hash_table ( ctx , lookup ) ;\n }\n }"}
{"idx": 20195, "target": 0, "func": "int jas_stream_fillbuf ( jas_stream_t * stream , int getflag ) {\n int c ;\n if ( ( stream -> flags_ & ( JAS_STREAM_ERRMASK ) ) != 0 ) {\n return EOF ;\n }\n if ( ( stream -> openmode_ & JAS_STREAM_READ ) == 0 ) {\n return EOF ;\n }\n assert ( ( stream -> bufmode_ & JAS_STREAM_WRBUF ) == 0 ) ;\n assert ( stream -> ptr_ - stream -> bufstart_ <= stream -> bufsize_ ) ;\n stream -> bufmode_ |= JAS_STREAM_RDBUF ;\n stream -> ptr_ = stream -> bufstart_ ;\n if ( ( stream -> cnt_ = ( * stream -> ops_ -> read_ ) ( stream -> obj_ , ( char * ) stream -> bufstart_ , stream -> bufsize_ ) ) <= 0 ) {\n if ( stream -> cnt_ < 0 ) {\n stream -> flags_ |= JAS_STREAM_ERR ;\n }\n else {\n stream -> flags_ |= JAS_STREAM_EOF ;\n }\n stream -> cnt_ = 0 ;\n return EOF ;\n }\n assert ( stream -> cnt_ > 0 ) ;\n c = ( getflag ) ? jas_stream_getc2 ( stream ) : ( * stream -> ptr_ ) ;\n return c ;\n }"}
{"idx": 20196, "target": 1, "func": "static int dissect_h225_T_h245Tunnelling ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 454 \"./asn1/h225/h225.cnf\" h225_packet_info * h225_pi ;\n h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n if ( h225_pi != NULL ) {\n offset = dissect_per_boolean ( tvb , offset , actx , tree , hf_index , & ( h225_pi -> is_h245Tunneling ) ) ;\n # line 462 \"./asn1/h225/h225.cnf\" }\n return offset ;\n }"}
{"idx": 20197, "target": 0, "func": "static void set_segment_data ( VP8_COMP * cpi , signed char * feature_data , unsigned char abs_delta ) {\n cpi -> mb . e_mbd . mb_segement_abs_delta = abs_delta ;\n vpx_memcpy ( cpi -> segment_feature_data , feature_data , sizeof ( cpi -> segment_feature_data ) ) ;\n }"}
{"idx": 20198, "target": 0, "func": "static int calculate_directory_descriptors ( struct iso9660 * iso9660 , struct vdd * vdd , struct isoent * isoent , int depth ) {\n struct isoent * * enttbl ;\n int bs , block , i ;\n block = 1 ;\n bs = get_dir_rec_size ( iso9660 , isoent , DIR_REC_SELF , vdd -> vdd_type ) ;\n bs += get_dir_rec_size ( iso9660 , isoent , DIR_REC_PARENT , vdd -> vdd_type ) ;\n if ( isoent -> children . cnt <= 0 || ( vdd -> vdd_type != VDD_JOLIET && ! iso9660 -> opt . rr && depth + 1 >= vdd -> max_depth ) ) return ( block ) ;\n enttbl = isoent -> children_sorted ;\n for ( i = 0 ;\n i < isoent -> children . cnt ;\n i ++ ) {\n struct isoent * np = enttbl [ i ] ;\n struct isofile * file ;\n file = np -> file ;\n if ( file -> hardlink_target != NULL ) file = file -> hardlink_target ;\n file -> cur_content = & ( file -> content ) ;\n do {\n int dr_l ;\n dr_l = get_dir_rec_size ( iso9660 , np , DIR_REC_NORMAL , vdd -> vdd_type ) ;\n if ( ( bs + dr_l ) > LOGICAL_BLOCK_SIZE ) {\n block ++ ;\n bs = dr_l ;\n }\n else bs += dr_l ;\n file -> cur_content = file -> cur_content -> next ;\n }\n while ( file -> cur_content != NULL ) ;\n }\n return ( block ) ;\n }"}
{"idx": 20199, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume )"}
{"idx": 20200, "target": 1, "func": "static int32_t u_scanf_octal_handler ( UFILE * input , u_scanf_spec_info * info , ufmt_args * args , const UChar * fmt , int32_t * fmtConsumed , int32_t * argConverted ) {\n int32_t len ;\n int32_t skipped ;\n void * num = ( void * ) ( args [ 0 ] . ptrValue ) ;\n int64_t result ;\n skipped = u_scanf_skip_leading_ws ( input , info -> fPadChar ) ;\n ufile_fill_uchar_buffer ( input ) ;\n len = ( int32_t ) ( input -> str . fLimit - input -> str . fPos ) ;\n if ( info -> fWidth != - 1 ) len = ufmt_min ( len , info -> fWidth ) ;\n result = ufmt_uto64 ( input -> str . fPos , & len , 8 ) ;\n input -> str . fPos += len ;\n if ( ! info -> fSkipArg ) {\n if ( info -> fIsShort ) * ( int16_t * ) num = ( int16_t ) ( UINT16_MAX & result ) ;\n else if ( info -> fIsLongLong ) * ( int64_t * ) num = result ;\n else * ( int32_t * ) num = ( int32_t ) ( UINT32_MAX & result ) ;\n }\n * argConverted = ! info -> fSkipArg ;\n return len + skipped ;\n }"}
{"idx": 20201, "target": 0, "func": "static int x ( struct vcache * avc , int afun , struct vrequest * areq , \\ struct afs_pdata * ain , struct afs_pdata * aout , \\ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;\n DECL_PIOCTL ( PSetAcl ) ;\n DECL_PIOCTL ( PStoreBehind ) ;\n DECL_PIOCTL ( PGCPAGs ) ;\n DECL_PIOCTL ( PGetAcl ) ;\n DECL_PIOCTL ( PNoop ) ;\n DECL_PIOCTL ( PBogus ) ;\n DECL_PIOCTL ( PGetFileCell ) ;\n DECL_PIOCTL ( PGetWSCell ) ;\n DECL_PIOCTL ( PGetUserCell ) ;\n DECL_PIOCTL ( PSetTokens ) ;\n DECL_PIOCTL ( PGetVolumeStatus ) ;\n DECL_PIOCTL ( PSetVolumeStatus ) ;\n DECL_PIOCTL ( PFlush ) ;\n DECL_PIOCTL ( PNewStatMount ) ;\n DECL_PIOCTL ( PGetTokens ) ;\n DECL_PIOCTL ( PUnlog ) ;\n DECL_PIOCTL ( PMariner ) ;\n DECL_PIOCTL ( PCheckServers ) ;\n DECL_PIOCTL ( PCheckVolNames ) ;\n DECL_PIOCTL ( PCheckAuth ) ;\n DECL_PIOCTL ( PFindVolume ) ;\n DECL_PIOCTL ( PViceAccess ) ;\n DECL_PIOCTL ( PSetCacheSize ) ;\n DECL_PIOCTL ( PGetCacheSize ) ;\n DECL_PIOCTL ( PRemoveCallBack ) ;\n DECL_PIOCTL ( PNewCell ) ;\n DECL_PIOCTL ( PNewAlias ) ;\n DECL_PIOCTL ( PListCells ) ;\n DECL_PIOCTL ( PListAliases ) ;\n DECL_PIOCTL ( PRemoveMount ) ;\n DECL_PIOCTL ( PGetCellStatus ) ;\n DECL_PIOCTL ( PSetCellStatus ) ;\n DECL_PIOCTL ( PFlushVolumeData ) ;\n DECL_PIOCTL ( PFlushAllVolumeData ) ;\n DECL_PIOCTL ( PGetVnodeXStatus ) ;\n DECL_PIOCTL ( PGetVnodeXStatus2 ) ;\n DECL_PIOCTL ( PSetSysName ) ;\n DECL_PIOCTL ( PSetSPrefs ) ;\n DECL_PIOCTL ( PSetSPrefs33 ) ;\n DECL_PIOCTL ( PGetSPrefs ) ;\n DECL_PIOCTL ( PExportAfs ) ;\n DECL_PIOCTL ( PGag ) ;\n DECL_PIOCTL ( PTwiddleRx ) ;\n DECL_PIOCTL ( PGetInitParams ) ;\n DECL_PIOCTL ( PGetRxkcrypt ) ;\n DECL_PIOCTL ( PSetRxkcrypt ) ;\n DECL_PIOCTL ( PGetCPrefs ) ;\n DECL_PIOCTL ( PSetCPrefs ) ;\n DECL_PIOCTL ( PFlushMount )"}
{"idx": 20202, "target": 0, "func": "static void ini_print_section_header ( WriterContext * wctx ) {\n INIContext * ini = wctx -> priv ;\n AVBPrint * buf = & wctx -> section_pbuf [ wctx -> level ] ;\n const struct section * section = wctx -> section [ wctx -> level ] ;\n const struct section * parent_section = wctx -> level ? wctx -> section [ wctx -> level - 1 ] : NULL ;\n av_bprint_clear ( buf ) ;\n if ( ! parent_section ) {\n printf ( \"# ffprobe output\\n\\n\" ) ;\n return ;\n }\n if ( wctx -> nb_item [ wctx -> level - 1 ] ) printf ( \"\\n\" ) ;\n av_bprintf ( buf , \"%s\" , wctx -> section_pbuf [ wctx -> level - 1 ] . str ) ;\n if ( ini -> hierarchical || ! ( section -> flags & ( SECTION_FLAG_IS_ARRAY | SECTION_FLAG_IS_WRAPPER ) ) ) {\n av_bprintf ( buf , \"%s%s\" , buf -> str [ 0 ] ? \".\" : \"\" , wctx -> section [ wctx -> level ] -> name ) ;\n if ( parent_section -> flags & SECTION_FLAG_IS_ARRAY ) {\n int n = parent_section -> id == SECTION_ID_PACKETS_AND_FRAMES ? wctx -> nb_section_packet_frame : wctx -> nb_item [ wctx -> level - 1 ] ;\n av_bprintf ( buf , \".%d\" , n ) ;\n }\n }\n if ( ! ( section -> flags & ( SECTION_FLAG_IS_ARRAY | SECTION_FLAG_IS_WRAPPER ) ) ) printf ( \"[%s]\\n\" , buf -> str ) ;\n }"}
{"idx": 20203, "target": 0, "func": "static struct remote_lock * lock_remote ( const char * path , long timeout ) {\n struct active_request_slot * slot ;\n struct slot_results results ;\n struct buffer out_buffer = {\n STRBUF_INIT , 0 }\n ;\n struct strbuf in_buffer = STRBUF_INIT ;\n char * url ;\n char * ep ;\n char timeout_header [ 25 ] ;\n struct remote_lock * lock = NULL ;\n struct curl_slist * dav_headers = NULL ;\n struct xml_ctx ctx ;\n char * escaped ;\n url = xstrfmt ( \"%s%s\" , repo -> url , path ) ;\n ep = strchr ( url + strlen ( repo -> url ) + 1 , '/' ) ;\n while ( ep ) {\n char saved_character = ep [ 1 ] ;\n ep [ 1 ] = '\\0' ;\n slot = get_active_slot ( ) ;\n slot -> results = & results ;\n curl_setup_http_get ( slot -> curl , url , DAV_MKCOL ) ;\n if ( start_active_slot ( slot ) ) {\n run_active_slot ( slot ) ;\n if ( results . curl_result != CURLE_OK && results . http_code != 405 ) {\n fprintf ( stderr , \"Unable to create branch path %s\\n\" , url ) ;\n free ( url ) ;\n return NULL ;\n }\n }\n else {\n fprintf ( stderr , \"Unable to start MKCOL request\\n\" ) ;\n free ( url ) ;\n return NULL ;\n }\n ep [ 1 ] = saved_character ;\n ep = strchr ( ep + 1 , '/' ) ;\n }\n escaped = xml_entities ( ident_default_email ( ) ) ;\n strbuf_addf ( & out_buffer . buf , LOCK_REQUEST , escaped ) ;\n free ( escaped ) ;\n xsnprintf ( timeout_header , sizeof ( timeout_header ) , \"Timeout: Second-%ld\" , timeout ) ;\n dav_headers = curl_slist_append ( dav_headers , timeout_header ) ;\n dav_headers = curl_slist_append ( dav_headers , \"Content-Type: text/xml\" ) ;\n slot = get_active_slot ( ) ;\n slot -> results = & results ;\n curl_setup_http ( slot -> curl , url , DAV_LOCK , & out_buffer , fwrite_buffer ) ;\n curl_easy_setopt ( slot -> curl , CURLOPT_HTTPHEADER , dav_headers ) ;\n curl_easy_setopt ( slot -> curl , CURLOPT_FILE , & in_buffer ) ;\n lock = xcalloc ( 1 , sizeof ( * lock ) ) ;\n lock -> timeout = - 1 ;\n if ( start_active_slot ( slot ) ) {\n run_active_slot ( slot ) ;\n if ( results . curl_result == CURLE_OK ) {\n XML_Parser parser = XML_ParserCreate ( NULL ) ;\n enum XML_Status result ;\n ctx . name = xcalloc ( 10 , 1 ) ;\n ctx . len = 0 ;\n ctx . cdata = NULL ;\n ctx . userFunc = handle_new_lock_ctx ;\n ctx . userData = lock ;\n XML_SetUserData ( parser , & ctx ) ;\n XML_SetElementHandler ( parser , xml_start_tag , xml_end_tag ) ;\n XML_SetCharacterDataHandler ( parser , xml_cdata ) ;\n result = XML_Parse ( parser , in_buffer . buf , in_buffer . len , 1 ) ;\n free ( ctx . name ) ;\n if ( result != XML_STATUS_OK ) {\n fprintf ( stderr , \"XML error: %s\\n\" , XML_ErrorString ( XML_GetErrorCode ( parser ) ) ) ;\n lock -> timeout = - 1 ;\n }\n XML_ParserFree ( parser ) ;\n }\n }\n else {\n fprintf ( stderr , \"Unable to start LOCK request\\n\" ) ;\n }\n curl_slist_free_all ( dav_headers ) ;\n strbuf_release ( & out_buffer . buf ) ;\n strbuf_release ( & in_buffer ) ;\n if ( lock -> token == NULL || lock -> timeout <= 0 ) {\n free ( lock -> token ) ;\n free ( lock -> owner ) ;\n free ( url ) ;\n free ( lock ) ;\n lock = NULL ;\n }\n else {\n lock -> url = url ;\n lock -> start_time = time ( NULL ) ;\n lock -> next = repo -> locks ;\n repo -> locks = lock ;\n }\n return lock ;\n }"}
{"idx": 20204, "target": 0, "func": "int jpc_ns_synthesize ( jpc_fix_t * a , int xstart , int ystart , int width , int height , int stride ) {\n int numrows = height ;\n int numcols = width ;\n int rowparity = ystart & 1 ;\n int colparity = xstart & 1 ;\n int maxcols ;\n jpc_fix_t * startptr ;\n int i ;\n startptr = & a [ 0 ] ;\n for ( i = 0 ;\n i < numrows ;\n ++ i ) {\n jpc_ns_invlift_row ( startptr , numcols , colparity ) ;\n jpc_qmfb_join_row ( startptr , numcols , colparity ) ;\n startptr += stride ;\n }\n maxcols = ( numcols / JPC_QMFB_COLGRPSIZE ) * JPC_QMFB_COLGRPSIZE ;\n startptr = & a [ 0 ] ;\n for ( i = 0 ;\n i < maxcols ;\n i += JPC_QMFB_COLGRPSIZE ) {\n jpc_ns_invlift_colgrp ( startptr , numrows , stride , rowparity ) ;\n jpc_qmfb_join_colgrp ( startptr , numrows , stride , rowparity ) ;\n startptr += JPC_QMFB_COLGRPSIZE ;\n }\n if ( maxcols < numcols ) {\n jpc_ns_invlift_colres ( startptr , numrows , numcols - maxcols , stride , rowparity ) ;\n jpc_qmfb_join_colres ( startptr , numrows , numcols - maxcols , stride , rowparity ) ;\n }\n return 0 ;\n }"}
{"idx": 20205, "target": 0, "func": "int qemuAssignDeviceNetAlias ( virDomainDefPtr def , virDomainNetDefPtr net , int idx ) {\n if ( networkGetActualType ( net ) == VIR_DOMAIN_NET_TYPE_HOSTDEV ) return qemuAssignDeviceHostdevAlias ( def , & net -> info . alias , - 1 ) ;\n if ( idx == - 1 ) {\n size_t i ;\n idx = 0 ;\n for ( i = 0 ;\n i < def -> nnets ;\n i ++ ) {\n int thisidx ;\n if ( ( thisidx = qemuDomainDeviceAliasIndex ( & def -> nets [ i ] -> info , \"net\" ) ) < 0 ) continue ;\n if ( thisidx >= idx ) idx = thisidx + 1 ;\n }\n }\n if ( virAsprintf ( & net -> info . alias , \"net%d\" , idx ) < 0 ) return - 1 ;\n return 0 ;\n }"}
{"idx": 20206, "target": 0, "func": "static void libschroedinger_handle_first_access_unit ( AVCodecContext * avctx ) {\n SchroDecoderParams * p_schro_params = avctx -> priv_data ;\n SchroDecoder * decoder = p_schro_params -> decoder ;\n p_schro_params -> format = schro_decoder_get_video_format ( decoder ) ;\n if ( av_image_check_size ( p_schro_params -> format -> width , p_schro_params -> format -> height , 0 , avctx ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"invalid dimensions (%dx%d)\\n\" , p_schro_params -> format -> width , p_schro_params -> format -> height ) ;\n avctx -> height = avctx -> width = 0 ;\n return ;\n }\n avctx -> height = p_schro_params -> format -> height ;\n avctx -> width = p_schro_params -> format -> width ;\n avctx -> pix_fmt = get_chroma_format ( p_schro_params -> format -> chroma_format ) ;\n if ( ff_get_schro_frame_format ( p_schro_params -> format -> chroma_format , & p_schro_params -> frame_format ) == - 1 ) {\n av_log ( avctx , AV_LOG_ERROR , \"This codec currently only supports planar YUV 4:2:0, 4:2:2 \" \"and 4:4:4 formats.\\n\" ) ;\n return ;\n }\n avctx -> time_base . den = p_schro_params -> format -> frame_rate_numerator ;\n avctx -> time_base . num = p_schro_params -> format -> frame_rate_denominator ;\n }"}
{"idx": 20207, "target": 0, "func": "static int lock_all ( KEYDB_HANDLE hd ) {\n int i , rc = 0 ;\n for ( i = 0 ;\n ! rc && i < hd -> used ;\n i ++ ) {\n switch ( hd -> active [ i ] . type ) {\n case KEYDB_RESOURCE_TYPE_NONE : break ;\n case KEYDB_RESOURCE_TYPE_KEYRING : rc = keyring_lock ( hd -> active [ i ] . u . kr , 1 ) ;\n break ;\n case KEYDB_RESOURCE_TYPE_KEYBOX : rc = keybox_lock ( hd -> active [ i ] . u . kb , 1 ) ;\n break ;\n }\n }\n if ( rc ) {\n for ( i -- ;\n i >= 0 ;\n i -- ) {\n switch ( hd -> active [ i ] . type ) {\n case KEYDB_RESOURCE_TYPE_NONE : break ;\n case KEYDB_RESOURCE_TYPE_KEYRING : keyring_lock ( hd -> active [ i ] . u . kr , 0 ) ;\n break ;\n case KEYDB_RESOURCE_TYPE_KEYBOX : rc = keybox_lock ( hd -> active [ i ] . u . kb , 0 ) ;\n break ;\n }\n }\n }\n else hd -> locked = 1 ;\n return rc ;\n }"}
{"idx": 20208, "target": 0, "func": "static void unpack_roq_cell ( roq_cell * cell , uint8_t u [ 4 * 3 ] ) {\n memcpy ( u , cell -> y , 4 ) ;\n memset ( u + 4 , cell -> u , 4 ) ;\n memset ( u + 8 , cell -> v , 4 ) ;\n }"}
{"idx": 20209, "target": 0, "func": "static VALUE mFalseClass_to_json ( int argc , VALUE * argv , VALUE self ) {\n GENERATE_JSON ( false ) ;\n }"}
{"idx": 20210, "target": 0, "func": "int ff_init_poc ( H264Context * h , int pic_field_poc [ 2 ] , int * pic_poc ) {\n const int max_frame_num = 1 << h -> sps . log2_max_frame_num ;\n int field_poc [ 2 ] ;\n h -> frame_num_offset = h -> prev_frame_num_offset ;\n if ( h -> frame_num < h -> prev_frame_num ) h -> frame_num_offset += max_frame_num ;\n if ( h -> sps . poc_type == 0 ) {\n const int max_poc_lsb = 1 << h -> sps . log2_max_poc_lsb ;\n if ( h -> poc_lsb < h -> prev_poc_lsb && h -> prev_poc_lsb - h -> poc_lsb >= max_poc_lsb / 2 ) h -> poc_msb = h -> prev_poc_msb + max_poc_lsb ;\n else if ( h -> poc_lsb > h -> prev_poc_lsb && h -> prev_poc_lsb - h -> poc_lsb < - max_poc_lsb / 2 ) h -> poc_msb = h -> prev_poc_msb - max_poc_lsb ;\n else h -> poc_msb = h -> prev_poc_msb ;\n field_poc [ 0 ] = field_poc [ 1 ] = h -> poc_msb + h -> poc_lsb ;\n if ( h -> picture_structure == PICT_FRAME ) field_poc [ 1 ] += h -> delta_poc_bottom ;\n }\n else if ( h -> sps . poc_type == 1 ) {\n int abs_frame_num , expected_delta_per_poc_cycle , expectedpoc ;\n int i ;\n if ( h -> sps . poc_cycle_length != 0 ) abs_frame_num = h -> frame_num_offset + h -> frame_num ;\n else abs_frame_num = 0 ;\n if ( h -> nal_ref_idc == 0 && abs_frame_num > 0 ) abs_frame_num -- ;\n expected_delta_per_poc_cycle = 0 ;\n for ( i = 0 ;\n i < h -> sps . poc_cycle_length ;\n i ++ ) expected_delta_per_poc_cycle += h -> sps . offset_for_ref_frame [ i ] ;\n if ( abs_frame_num > 0 ) {\n int poc_cycle_cnt = ( abs_frame_num - 1 ) / h -> sps . poc_cycle_length ;\n int frame_num_in_poc_cycle = ( abs_frame_num - 1 ) % h -> sps . poc_cycle_length ;\n expectedpoc = poc_cycle_cnt * expected_delta_per_poc_cycle ;\n for ( i = 0 ;\n i <= frame_num_in_poc_cycle ;\n i ++ ) expectedpoc = expectedpoc + h -> sps . offset_for_ref_frame [ i ] ;\n }\n else expectedpoc = 0 ;\n if ( h -> nal_ref_idc == 0 ) expectedpoc = expectedpoc + h -> sps . offset_for_non_ref_pic ;\n field_poc [ 0 ] = expectedpoc + h -> delta_poc [ 0 ] ;\n field_poc [ 1 ] = field_poc [ 0 ] + h -> sps . offset_for_top_to_bottom_field ;\n if ( h -> picture_structure == PICT_FRAME ) field_poc [ 1 ] += h -> delta_poc [ 1 ] ;\n }\n else {\n int poc = 2 * ( h -> frame_num_offset + h -> frame_num ) ;\n if ( ! h -> nal_ref_idc ) poc -- ;\n field_poc [ 0 ] = poc ;\n field_poc [ 1 ] = poc ;\n }\n if ( h -> picture_structure != PICT_BOTTOM_FIELD ) pic_field_poc [ 0 ] = field_poc [ 0 ] ;\n if ( h -> picture_structure != PICT_TOP_FIELD ) pic_field_poc [ 1 ] = field_poc [ 1 ] ;\n * pic_poc = FFMIN ( pic_field_poc [ 0 ] , pic_field_poc [ 1 ] ) ;\n return 0 ;\n }"}
{"idx": 20211, "target": 0, "func": "static int isoent_find_out_boot_file ( struct archive_write * a , struct isoent * rootent ) {\n struct iso9660 * iso9660 = a -> format_data ;\n iso9660 -> el_torito . boot = isoent_find_entry ( rootent , iso9660 -> el_torito . boot_filename . s ) ;\n if ( iso9660 -> el_torito . boot == NULL ) {\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"Can't find the boot image file ``%s''\" , iso9660 -> el_torito . boot_filename . s ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n iso9660 -> el_torito . boot -> file -> boot = BOOT_IMAGE ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 20212, "target": 0, "func": "void vp9_vaq_init ( ) {\n int i ;\n double base_ratio ;\n assert ( ENERGY_SPAN <= MAX_SEGMENTS ) ;\n vp9_clear_system_state ( ) ;\n base_ratio = 1.5 ;\n for ( i = ENERGY_MIN ;\n i <= ENERGY_MAX ;\n i ++ ) {\n Q_RATIO ( i ) = pow ( base_ratio , i / 3.0 ) ;\n }\n }"}
{"idx": 20213, "target": 0, "func": "void proto_reg_handoff_btatt ( void ) {\n gint i_array ;\n GString * uuid_str = g_string_new ( \"\" ) ;\n http_handle = find_dissector_add_dependency ( \"http\" , proto_btatt ) ;\n usb_hid_boot_keyboard_input_report_handle = find_dissector_add_dependency ( \"usbhid.boot_report.keyboard.input\" , proto_btatt ) ;\n usb_hid_boot_keyboard_output_report_handle = find_dissector_add_dependency ( \"usbhid.boot_report.keyboard.output\" , proto_btatt ) ;\n usb_hid_boot_mouse_input_report_handle = find_dissector_add_dependency ( \"usbhid.boot_report.mouse.input\" , proto_btatt ) ;\n dissector_add_uint ( \"btl2cap.psm\" , BTL2CAP_PSM_ATT , btatt_handle ) ;\n dissector_add_uint ( \"btl2cap.cid\" , BTL2CAP_FIXED_CID_ATT , btatt_handle ) ;\n btatt_tap_handles = register_tap ( \"btatt.handles\" ) ;\n for ( i_array = 0 ;\n bluetooth_uuid_vals [ i_array ] . strptr != NULL ;\n i_array += 1 ) {\n gchar * name ;\n gchar * short_name ;\n gchar * abbrev ;\n dissector_handle_t handle_tmp ;\n gint proto_tmp ;\n if ( bluetooth_uuid_vals [ i_array ] . value < 0x1800 ) {\n continue ;\n }\n if ( ( ( bluetooth_uuid_vals [ i_array ] . value & 0xFF00 ) == 0x2700 ) || ( ( bluetooth_uuid_vals [ i_array ] . value & 0xFF00 ) == 0xFD00 ) || ( ( bluetooth_uuid_vals [ i_array ] . value & 0xFF00 ) == 0xFE00 ) ) {\n continue ;\n }\n g_string_printf ( uuid_str , \"0x%04x\" , bluetooth_uuid_vals [ i_array ] . value ) ;\n name = wmem_strconcat ( wmem_epan_scope ( ) , \"Bluetooth GATT Attribute \" , bluetooth_uuid_vals [ i_array ] . strptr , \" (UUID \" , uuid_str -> str , \")\" , NULL ) ;\n short_name = wmem_strconcat ( wmem_epan_scope ( ) , \"BT GATT \" , bluetooth_uuid_vals [ i_array ] . strptr , \" (UUID \" , uuid_str -> str , \")\" , NULL ) ;\n abbrev = wmem_strconcat ( wmem_epan_scope ( ) , \"btgatt.uuid\" , uuid_str -> str , NULL ) ;\n proto_tmp = proto_register_protocol ( name , short_name , abbrev ) ;\n handle_tmp = register_dissector ( abbrev , dissect_btgatt , proto_tmp ) ;\n dissector_add_for_decode_as ( \"btatt.handle\" , handle_tmp ) ;\n }\n g_string_free ( uuid_str , TRUE ) ;\n }"}
{"idx": 20214, "target": 0, "func": "static struct cvec * cclass ( struct vars * v , const chr * startp , const chr * endp , int cases ) {\n size_t len ;\n struct cvec * cv = NULL ;\n const char * const * namePtr ;\n int i , index ;\n static const char * const classNames [ ] = {\n \"alnum\" , \"alpha\" , \"ascii\" , \"blank\" , \"cntrl\" , \"digit\" , \"graph\" , \"lower\" , \"print\" , \"punct\" , \"space\" , \"upper\" , \"xdigit\" , NULL }\n ;\n enum classes {\n CC_ALNUM , CC_ALPHA , CC_ASCII , CC_BLANK , CC_CNTRL , CC_DIGIT , CC_GRAPH , CC_LOWER , CC_PRINT , CC_PUNCT , CC_SPACE , CC_UPPER , CC_XDIGIT }\n ;\n len = endp - startp ;\n index = - 1 ;\n for ( namePtr = classNames , i = 0 ;\n * namePtr != NULL ;\n namePtr ++ , i ++ ) {\n if ( strlen ( * namePtr ) == len && pg_char_and_wchar_strncmp ( * namePtr , startp , len ) == 0 ) {\n index = i ;\n break ;\n }\n }\n if ( index == - 1 ) {\n ERR ( REG_ECTYPE ) ;\n return NULL ;\n }\n if ( cases && ( ( enum classes ) index == CC_LOWER || ( enum classes ) index == CC_UPPER ) ) index = ( int ) CC_ALPHA ;\n switch ( ( enum classes ) index ) {\n case CC_PRINT : cv = pg_ctype_get_cache ( pg_wc_isprint ) ;\n break ;\n case CC_ALNUM : cv = pg_ctype_get_cache ( pg_wc_isalnum ) ;\n break ;\n case CC_ALPHA : cv = pg_ctype_get_cache ( pg_wc_isalpha ) ;\n break ;\n case CC_ASCII : cv = getcvec ( v , 0 , 1 ) ;\n if ( cv ) addrange ( cv , 0 , 0x7f ) ;\n break ;\n case CC_BLANK : cv = getcvec ( v , 2 , 0 ) ;\n addchr ( cv , '\\t' ) ;\n addchr ( cv , ' ' ) ;\n break ;\n case CC_CNTRL : cv = getcvec ( v , 0 , 2 ) ;\n addrange ( cv , 0x0 , 0x1f ) ;\n addrange ( cv , 0x7f , 0x9f ) ;\n break ;\n case CC_DIGIT : cv = pg_ctype_get_cache ( pg_wc_isdigit ) ;\n break ;\n case CC_PUNCT : cv = pg_ctype_get_cache ( pg_wc_ispunct ) ;\n break ;\n case CC_XDIGIT : cv = getcvec ( v , 0 , 3 ) ;\n if ( cv ) {\n addrange ( cv , '0' , '9' ) ;\n addrange ( cv , 'a' , 'f' ) ;\n addrange ( cv , 'A' , 'F' ) ;\n }\n break ;\n case CC_SPACE : cv = pg_ctype_get_cache ( pg_wc_isspace ) ;\n break ;\n case CC_LOWER : cv = pg_ctype_get_cache ( pg_wc_islower ) ;\n break ;\n case CC_UPPER : cv = pg_ctype_get_cache ( pg_wc_isupper ) ;\n break ;\n case CC_GRAPH : cv = pg_ctype_get_cache ( pg_wc_isgraph ) ;\n break ;\n }\n if ( cv == NULL ) ERR ( REG_ESPACE ) ;\n return cv ;\n }"}
{"idx": 20215, "target": 0, "func": "int16_t vp9_ac_quant ( int qindex , int delta , vpx_bit_depth_t bit_depth ) {\n # if CONFIG_VP9_HIGHBITDEPTH switch ( bit_depth ) {\n case VPX_BITS_8 : return ac_qlookup [ clamp ( qindex + delta , 0 , MAXQ ) ] ;\n case VPX_BITS_10 : return ac_qlookup_10 [ clamp ( qindex + delta , 0 , MAXQ ) ] ;\n case VPX_BITS_12 : return ac_qlookup_12 [ clamp ( qindex + delta , 0 , MAXQ ) ] ;\n default : assert ( 0 && \"bit_depth should be VPX_BITS_8, VPX_BITS_10 or VPX_BITS_12\" ) ;\n return - 1 ;\n }\n # else ( void ) bit_depth ;\n return ac_qlookup [ clamp ( qindex + delta , 0 , MAXQ ) ] ;\n # endif }"}
{"idx": 20216, "target": 0, "func": "static void print_var_str ( const char * var , const char * val ) {\n printf ( \"%s='%s'\\n\" , var , val ) ;\n }"}
{"idx": 20217, "target": 0, "func": "static int dissect_h245_CompressionType ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_CompressionType , CompressionType_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 20218, "target": 0, "func": "static void gtkui_connection_detail_destroy ( GtkWidget * widget , gpointer * data ) {\n ( void ) data ;\n if ( detail_timer1 ) g_source_remove ( detail_timer1 ) ;\n if ( detail_timer2 ) g_source_remove ( detail_timer2 ) ;\n gtk_widget_destroy ( widget ) ;\n }"}
{"idx": 20219, "target": 0, "func": "SPL_METHOD ( SplDoublyLinkedList , shift ) {\n zval * value ;\n spl_dllist_object * intern ;\n if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , \"\" ) == FAILURE ) {\n return ;\n }\n intern = ( spl_dllist_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n value = ( zval * ) spl_ptr_llist_shift ( intern -> llist TSRMLS_CC ) ;\n if ( value == NULL ) {\n zend_throw_exception ( spl_ce_RuntimeException , \"Can't shift from an empty datastructure\" , 0 TSRMLS_CC ) ;\n return ;\n }\n RETURN_ZVAL ( value , 1 , 1 ) ;\n }"}
{"idx": 20220, "target": 0, "func": "static int dissect_pvfs_io_type ( tvbuff_t * tvb , proto_tree * tree , int offset ) {\n proto_tree_add_item ( tree , hf_pvfs_io_type , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n return offset ;\n }"}
{"idx": 20221, "target": 0, "func": "static int bitmap_position ( const unsigned char * sha1 ) {\n int pos = bitmap_position_packfile ( sha1 ) ;\n return ( pos >= 0 ) ? pos : bitmap_position_extended ( sha1 ) ;\n }"}
{"idx": 20222, "target": 0, "func": "static int dissect_h245_OLC_rev_multiplexParameters ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_OLC_rev_multiplexParameters , OLC_rev_multiplexParameters_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 20223, "target": 0, "func": "static int ff_h261_resync ( H261Context * h ) {\n MpegEncContext * const s = & h -> s ;\n int left , ret ;\n if ( h -> gob_start_code_skipped ) {\n ret = h261_decode_gob_header ( h ) ;\n if ( ret >= 0 ) return 0 ;\n }\n else {\n if ( show_bits ( & s -> gb , 15 ) == 0 ) {\n ret = h261_decode_gob_header ( h ) ;\n if ( ret >= 0 ) return 0 ;\n }\n s -> gb = s -> last_resync_gb ;\n align_get_bits ( & s -> gb ) ;\n left = get_bits_left ( & s -> gb ) ;\n for ( ;\n left > 15 + 1 + 4 + 5 ;\n left -= 8 ) {\n if ( show_bits ( & s -> gb , 15 ) == 0 ) {\n GetBitContext bak = s -> gb ;\n ret = h261_decode_gob_header ( h ) ;\n if ( ret >= 0 ) return 0 ;\n s -> gb = bak ;\n }\n skip_bits ( & s -> gb , 8 ) ;\n }\n }\n return - 1 ;\n }"}
{"idx": 20224, "target": 0, "func": "static pdf_font_desc * load_font_or_hail_mary ( fz_context * ctx , pdf_document * doc , pdf_obj * rdb , pdf_obj * font , int depth , fz_cookie * cookie ) {\n pdf_font_desc * desc ;\n fz_try ( ctx ) {\n desc = pdf_load_font ( ctx , doc , rdb , font , depth ) ;\n }\n fz_catch ( ctx ) {\n if ( fz_caught ( ctx ) == FZ_ERROR_TRYLATER && cookie && cookie -> incomplete_ok ) {\n desc = NULL ;\n cookie -> incomplete ++ ;\n }\n else {\n fz_rethrow ( ctx ) ;\n }\n }\n if ( desc == NULL ) desc = pdf_load_hail_mary_font ( ctx , doc ) ;\n return desc ;\n }"}
{"idx": 20225, "target": 0, "func": "static inline void rv34_pred_b_vector ( int A [ 2 ] , int B [ 2 ] , int C [ 2 ] , int A_avail , int B_avail , int C_avail , int * mx , int * my ) {\n if ( A_avail + B_avail + C_avail != 3 ) {\n * mx = A [ 0 ] + B [ 0 ] + C [ 0 ] ;\n * my = A [ 1 ] + B [ 1 ] + C [ 1 ] ;\n if ( A_avail + B_avail + C_avail == 2 ) {\n * mx /= 2 ;\n * my /= 2 ;\n }\n }\n else {\n * mx = mid_pred ( A [ 0 ] , B [ 0 ] , C [ 0 ] ) ;\n * my = mid_pred ( A [ 1 ] , B [ 1 ] , C [ 1 ] ) ;\n }\n }"}
{"idx": 20226, "target": 0, "func": "static int avi_sync ( AVFormatContext * s , int exit_early ) {\n AVIContext * avi = s -> priv_data ;\n AVIOContext * pb = s -> pb ;\n int n ;\n unsigned int d [ 8 ] ;\n unsigned int size ;\n int64_t i , sync ;\n start_sync : memset ( d , - 1 , sizeof ( d ) ) ;\n for ( i = sync = avio_tell ( pb ) ;\n ! avio_feof ( pb ) ;\n i ++ ) {\n int j ;\n for ( j = 0 ;\n j < 7 ;\n j ++ ) d [ j ] = d [ j + 1 ] ;\n d [ 7 ] = avio_r8 ( pb ) ;\n size = d [ 4 ] + ( d [ 5 ] << 8 ) + ( d [ 6 ] << 16 ) + ( d [ 7 ] << 24 ) ;\n n = get_stream_idx ( d + 2 ) ;\n ff_tlog ( s , \"%X %X %X %X %X %X %X %X %\" PRId64 \" %u %d\\n\" , d [ 0 ] , d [ 1 ] , d [ 2 ] , d [ 3 ] , d [ 4 ] , d [ 5 ] , d [ 6 ] , d [ 7 ] , i , size , n ) ;\n if ( i * ( avi -> io_fsize > 0 ) + ( uint64_t ) size > avi -> fsize || d [ 0 ] > 127 ) continue ;\n if ( ( d [ 0 ] == 'i' && d [ 1 ] == 'x' && n < s -> nb_streams ) || ( d [ 0 ] == 'J' && d [ 1 ] == 'U' && d [ 2 ] == 'N' && d [ 3 ] == 'K' ) || ( d [ 0 ] == 'i' && d [ 1 ] == 'd' && d [ 2 ] == 'x' && d [ 3 ] == '1' ) || ( d [ 0 ] == 'i' && d [ 1 ] == 'n' && d [ 2 ] == 'd' && d [ 3 ] == 'x' ) ) {\n avio_skip ( pb , size ) ;\n goto start_sync ;\n }\n if ( d [ 0 ] == 'L' && d [ 1 ] == 'I' && d [ 2 ] == 'S' && d [ 3 ] == 'T' ) {\n avio_skip ( pb , 4 ) ;\n goto start_sync ;\n }\n n = get_stream_idx ( d ) ;\n if ( ! ( ( i - avi -> last_pkt_pos ) & 1 ) && get_stream_idx ( d + 1 ) < s -> nb_streams ) continue ;\n if ( d [ 2 ] == 'i' && d [ 3 ] == 'x' && n < s -> nb_streams ) {\n avio_skip ( pb , size ) ;\n goto start_sync ;\n }\n if ( avi -> dv_demux && n != 0 ) continue ;\n if ( n < s -> nb_streams ) {\n AVStream * st ;\n AVIStream * ast ;\n st = s -> streams [ n ] ;\n ast = st -> priv_data ;\n if ( ! ast ) {\n av_log ( s , AV_LOG_WARNING , \"Skipping foreign stream %d packet\\n\" , n ) ;\n continue ;\n }\n if ( s -> nb_streams >= 2 ) {\n AVStream * st1 = s -> streams [ 1 ] ;\n AVIStream * ast1 = st1 -> priv_data ;\n if ( d [ 2 ] == 'w' && d [ 3 ] == 'b' && n == 0 && st -> codecpar -> codec_type == AVMEDIA_TYPE_VIDEO && st1 -> codecpar -> codec_type == AVMEDIA_TYPE_AUDIO && ast -> prefix == 'd' * 256 + 'c' && ( d [ 2 ] * 256 + d [ 3 ] == ast1 -> prefix || ! ast1 -> prefix_count ) ) {\n n = 1 ;\n st = st1 ;\n ast = ast1 ;\n av_log ( s , AV_LOG_WARNING , \"Invalid stream + prefix combination, assuming audio.\\n\" ) ;\n }\n }\n if ( ! avi -> dv_demux && ( ( st -> discard >= AVDISCARD_DEFAULT && size == 0 ) || st -> discard >= AVDISCARD_ALL ) ) {\n if ( ! exit_early ) {\n ast -> frame_offset += get_duration ( ast , size ) ;\n avio_skip ( pb , size ) ;\n goto start_sync ;\n }\n }\n if ( d [ 2 ] == 'p' && d [ 3 ] == 'c' && size <= 4 * 256 + 4 ) {\n int k = avio_r8 ( pb ) ;\n int last = ( k + avio_r8 ( pb ) - 1 ) & 0xFF ;\n avio_rl16 ( pb ) ;\n for ( ;\n k <= last ;\n k ++ ) ast -> pal [ k ] = 0xFFU << 24 | avio_rb32 ( pb ) >> 8 ;\n ast -> has_pal = 1 ;\n goto start_sync ;\n }\n else if ( ( ( ast -> prefix_count < 5 || sync + 9 > i ) && d [ 2 ] < 128 && d [ 3 ] < 128 ) || d [ 2 ] * 256 + d [ 3 ] == ast -> prefix ) {\n if ( exit_early ) return 0 ;\n if ( d [ 2 ] * 256 + d [ 3 ] == ast -> prefix ) ast -> prefix_count ++ ;\n else {\n ast -> prefix = d [ 2 ] * 256 + d [ 3 ] ;\n ast -> prefix_count = 0 ;\n }\n avi -> stream_index = n ;\n ast -> packet_size = size + 8 ;\n ast -> remaining = size ;\n if ( size ) {\n uint64_t pos = avio_tell ( pb ) - 8 ;\n if ( ! st -> index_entries || ! st -> nb_index_entries || st -> index_entries [ st -> nb_index_entries - 1 ] . pos < pos ) {\n av_add_index_entry ( st , pos , ast -> frame_offset , size , 0 , AVINDEX_KEYFRAME ) ;\n }\n }\n return 0 ;\n }\n }\n }\n if ( pb -> error ) return pb -> error ;\n return AVERROR_EOF ;\n }"}
{"idx": 20227, "target": 0, "func": "int tls_construct_cert_status ( SSL * s ) {\n unsigned char * p ;\n if ( ! BUF_MEM_grow ( s -> init_buf , 8 + s -> tlsext_ocsp_resplen ) ) {\n ossl_statem_set_error ( s ) ;\n return 0 ;\n }\n p = ( unsigned char * ) s -> init_buf -> data ;\n * ( p ++ ) = SSL3_MT_CERTIFICATE_STATUS ;\n l2n3 ( s -> tlsext_ocsp_resplen + 4 , p ) ;\n * ( p ++ ) = s -> tlsext_status_type ;\n l2n3 ( s -> tlsext_ocsp_resplen , p ) ;\n memcpy ( p , s -> tlsext_ocsp_resp , s -> tlsext_ocsp_resplen ) ;\n s -> init_num = 8 + s -> tlsext_ocsp_resplen ;\n s -> init_off = 0 ;\n return 1 ;\n }"}
{"idx": 20228, "target": 0, "func": "static void dissect_glabel_g709 ( proto_tree * ti _U_ , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset ) {\n guint8 t1 , t2 , t3 ;\n proto_tree * g709_tree ;\n g709_tree = proto_tree_add_subtree ( rsvp_object_tree , tvb , offset , 4 , TREE ( TT_G709 ) , NULL , \"G.709 ODUk Label\" ) ;\n proto_tree_add_item ( g709_tree , hf_rsvp_g709_t3 , tvb , offset + 2 , 2 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( g709_tree , hf_rsvp_g709_t2 , tvb , offset + 3 , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( g709_tree , hf_rsvp_g709_t1 , tvb , offset + 3 , 1 , ENC_BIG_ENDIAN ) ;\n t2 = ( ( tvb_get_guint8 ( tvb , offset + 3 ) & 0x0E ) >> 1 ) ;\n t1 = ( ( tvb_get_guint8 ( tvb , offset + 3 ) & 0x01 ) >> 0 ) ;\n t3 = ( ( tvb_get_guint8 ( tvb , offset + 2 ) & 0x03 ) << 4 ) ;\n t3 |= ( ( tvb_get_guint8 ( tvb , offset + 3 ) & 0xF0 ) >> 4 ) ;\n proto_item_append_text ( ti , \": G.709 ODUk: \" \"t3=%u, \" \"t2=%u, \" \"t1=%u\" , t3 , t2 , t1 ) ;\n }"}
{"idx": 20229, "target": 0, "func": "static int dissect_ipmi_trace ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {\n guint block_type , chn_num , data_type , tmp ;\n tvbuff_t * next_tvb ;\n if ( tvb_captured_length ( tvb ) < 11 ) {\n call_data_dissector ( tvb , pinfo , tree ) ;\n return tvb_captured_length ( tvb ) ;\n }\n tmp = tvb_get_guint8 ( tvb , 0 ) ;\n block_type = ( tmp >> 4 ) & 3 ;\n chn_num = tmp & 0xF ;\n data_type = tvb_get_guint8 ( tvb , 7 ) ;\n col_add_fstr ( pinfo -> cinfo , COL_DEF_SRC , \"Channel %d\" , chn_num ) ;\n col_add_str ( pinfo -> cinfo , COL_PROTOCOL , val_to_str ( data_type , str_protocol_types , \"Reserved (0x%02x)\" ) ) ;\n col_clear ( pinfo -> cinfo , COL_INFO ) ;\n if ( block_type == HPM2_TRACE_PACKET_DATA ) {\n col_set_str ( pinfo -> cinfo , COL_INFO , \"Trace Packet Data\" ) ;\n }\n else if ( block_type == HPM2_CHN_STATE_NOTIFY ) {\n col_set_str ( pinfo -> cinfo , COL_INFO , \"Channel State Change Notification\" ) ;\n }\n else if ( block_type == HPM2_EMBED_ASCII_MSG ) {\n char str [ 257 ] ;\n guint str_len = tvb_get_guint8 ( tvb , 10 ) ;\n if ( str_len ) {\n tvb_memcpy ( tvb , str , 11 , str_len ) ;\n str [ str_len ] = 0 ;\n col_add_str ( pinfo -> cinfo , COL_INFO , str ) ;\n }\n }\n else {\n col_set_str ( pinfo -> cinfo , COL_INFO , \"Reserved\" ) ;\n }\n if ( tree ) {\n proto_item * ti ;\n proto_tree * trace_tree ;\n proto_tree * stamp_tree ;\n nstime_t timestamp ;\n ti = proto_tree_add_item ( tree , proto_ipmi_trace , tvb , 0 , - 1 , ENC_NA ) ;\n trace_tree = proto_item_add_subtree ( ti , ett_ipmi_trace ) ;\n proto_tree_add_bitmask ( trace_tree , tvb , 0 , hf_trace_block_type , ett_trace_block_type , bits_trace_block_type , ENC_LITTLE_ENDIAN ) ;\n timestamp . secs = tvb_get_letohl ( tvb , 1 ) ;\n timestamp . nsecs = ( int ) tvb_get_letohs ( tvb , 5 ) * 1000000 ;\n ti = proto_tree_add_time ( trace_tree , hf_trace_timestamp , tvb , 1 , 6 , & timestamp ) ;\n stamp_tree = proto_item_add_subtree ( ti , ett_trace_timestamp ) ;\n proto_tree_add_item ( stamp_tree , hf_trace_timestamp_sec , tvb , 1 , 4 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( stamp_tree , hf_trace_timestamp_msec , tvb , 5 , 2 , ENC_LITTLE_ENDIAN ) ;\n proto_tree_add_item ( trace_tree , hf_trace_data_type , tvb , 7 , 1 , ENC_LITTLE_ENDIAN ) ;\n if ( data_type == IPMI_PROTO_IPMB_1_0 ) {\n proto_tree_add_bitmask ( trace_tree , tvb , 8 , hf_trace_protocol_data , ett_trace_protocol_data , bits_ipmb_protocol_data , ENC_LITTLE_ENDIAN ) ;\n }\n else if ( data_type == IPMI_PROTO_KCS || data_type == IPMI_PROTO_SMIC || data_type == IPMI_PROTO_BT_10 || data_type == IPMI_PROTO_BT_15 ) {\n proto_tree_add_bitmask ( trace_tree , tvb , 8 , hf_trace_protocol_data , ett_trace_protocol_data , bits_host_protocol_data , ENC_LITTLE_ENDIAN ) ;\n }\n else {\n proto_tree_add_item ( trace_tree , hf_trace_protocol_data , tvb , 8 , 2 , ENC_LITTLE_ENDIAN ) ;\n }\n proto_tree_add_item ( trace_tree , hf_trace_data_len , tvb , 10 , 1 , ENC_LITTLE_ENDIAN ) ;\n }\n next_tvb = tvb_new_subset_remaining ( tvb , 11 ) ;\n if ( block_type == HPM2_TRACE_PACKET_DATA ) {\n ipmi_dissect_arg_t arg ;\n arg . context = IPMI_E_NONE ;\n arg . channel = chn_num ;\n arg . flags = tvb_get_guint8 ( tvb , 8 ) ;\n if ( ! dissector_try_uint_new ( proto_dissector_table , data_type , next_tvb , pinfo , tree , TRUE , & arg ) ) {\n call_data_dissector ( next_tvb , pinfo , tree ) ;\n }\n }\n else if ( block_type == HPM2_CHN_STATE_NOTIFY && data_type == IPMI_PROTO_IPMB_1_0 ) {\n dissect_ipmb_state_notify ( next_tvb , tree ) ;\n }\n else {\n call_data_dissector ( next_tvb , pinfo , tree ) ;\n }\n return tvb_captured_length ( tvb ) ;\n }"}
{"idx": 20230, "target": 0, "func": "static void cpu_devinit ( const char * cpu_model , unsigned int id , uint64_t prom_addr , qemu_irq * * cpu_irqs ) {\n CPUState * cs ;\n SPARCCPU * cpu ;\n CPUSPARCState * env ;\n cpu = cpu_sparc_init ( cpu_model ) ;\n if ( cpu == NULL ) {\n fprintf ( stderr , \"qemu: Unable to find Sparc CPU definition\\n\" ) ;\n exit ( 1 ) ;\n }\n env = & cpu -> env ;\n cpu_sparc_set_id ( env , id ) ;\n if ( id == 0 ) {\n qemu_register_reset ( main_cpu_reset , cpu ) ;\n }\n else {\n qemu_register_reset ( secondary_cpu_reset , cpu ) ;\n cs = CPU ( cpu ) ;\n cs -> halted = 1 ;\n }\n * cpu_irqs = qemu_allocate_irqs ( cpu_set_irq , cpu , MAX_PILS ) ;\n env -> prom_addr = prom_addr ;\n }"}
{"idx": 20231, "target": 0, "func": "int vp9_full_pixel_diamond ( const VP9_COMP * cpi , MACROBLOCK * x , MV * mvp_full , int step_param , int sadpb , int further_steps , int do_refine , const vp9_variance_fn_ptr_t * fn_ptr , const MV * ref_mv , MV * dst_mv ) {\n MV temp_mv ;\n int thissme , n , num00 = 0 ;\n int bestsme = cpi -> diamond_search_sad ( x , & cpi -> ss_cfg , mvp_full , & temp_mv , step_param , sadpb , & n , fn_ptr , ref_mv ) ;\n if ( bestsme < INT_MAX ) bestsme = vp9_get_mvpred_var ( x , & temp_mv , ref_mv , fn_ptr , 1 ) ;\n * dst_mv = temp_mv ;\n if ( n > further_steps ) do_refine = 0 ;\n while ( n < further_steps ) {\n ++ n ;\n if ( num00 ) {\n num00 -- ;\n }\n else {\n thissme = cpi -> diamond_search_sad ( x , & cpi -> ss_cfg , mvp_full , & temp_mv , step_param + n , sadpb , & num00 , fn_ptr , ref_mv ) ;\n if ( thissme < INT_MAX ) thissme = vp9_get_mvpred_var ( x , & temp_mv , ref_mv , fn_ptr , 1 ) ;\n if ( num00 > further_steps - n ) do_refine = 0 ;\n if ( thissme < bestsme ) {\n bestsme = thissme ;\n * dst_mv = temp_mv ;\n }\n }\n }\n if ( do_refine ) {\n const int search_range = 8 ;\n MV best_mv = * dst_mv ;\n thissme = cpi -> refining_search_sad ( x , & best_mv , sadpb , search_range , fn_ptr , ref_mv ) ;\n if ( thissme < INT_MAX ) thissme = vp9_get_mvpred_var ( x , & best_mv , ref_mv , fn_ptr , 1 ) ;\n if ( thissme < bestsme ) {\n bestsme = thissme ;\n * dst_mv = best_mv ;\n }\n }\n return bestsme ;\n }"}
{"idx": 20232, "target": 0, "func": "TEST_F ( ProfileInfoCacheTest , EmptyGAIAInfo ) {\n base : : string16 profile_name = ASCIIToUTF16 ( \"name_1\" ) ;\n int id = profiles : : GetDefaultAvatarIconResourceIDAtIndex ( 0 ) ;\n const gfx : : Image & profile_image ( ResourceBundle : : GetSharedInstance ( ) . GetImageNamed ( id ) ) ;\n GetCache ( ) -> AddProfileToCache ( GetProfilePath ( \"path_1\" ) , profile_name , base : : string16 ( ) , 0 , std : : string ( ) ) ;\n GetCache ( ) -> SetGAIANameOfProfileAtIndex ( 0 , base : : string16 ( ) ) ;\n GetCache ( ) -> SetGAIAPictureOfProfileAtIndex ( 0 , NULL ) ;\n GetCache ( ) -> SetIsUsingGAIAPictureOfProfileAtIndex ( 0 , true ) ;\n EXPECT_EQ ( profile_name , GetCache ( ) -> GetNameOfProfileAtIndex ( 0 ) ) ;\n EXPECT_TRUE ( gfx : : test : : IsEqual ( profile_image , GetCache ( ) -> GetAvatarIconOfProfileAtIndex ( 0 ) ) ) ;\n }"}
{"idx": 20233, "target": 0, "func": "TEST_F ( WebFrameTest , PrintDetachedIframe ) {\n RegisterMockedHttpURLLoad ( \"print-detached-iframe.html\" ) ;\n FrameTestHelpers : : WebViewHelper web_view_helper ;\n web_view_helper . InitializeAndLoad ( base_url_ + \"print-detached-iframe.html\" ) ;\n TestFramePrinting ( ToWebLocalFrameImpl ( web_view_helper . LocalMainFrame ( ) -> FirstChild ( ) ) ) ;\n }"}
{"idx": 20234, "target": 0, "func": "static void cirrus_vga_write_cr ( CirrusVGAState * s , int reg_value ) {\n switch ( s -> vga . cr_index ) {\n case 0x00 : case 0x01 : case 0x02 : case 0x03 : case 0x04 : case 0x05 : case 0x06 : case 0x07 : case 0x08 : case 0x09 : case 0x0a : case 0x0b : case 0x0c : case 0x0d : case 0x0e : case 0x0f : case 0x10 : case 0x11 : case 0x12 : case 0x13 : case 0x14 : case 0x15 : case 0x16 : case 0x17 : case 0x18 : if ( ( s -> vga . cr [ 0x11 ] & 0x80 ) && s -> vga . cr_index <= 7 ) {\n if ( s -> vga . cr_index == 7 ) s -> vga . cr [ 7 ] = ( s -> vga . cr [ 7 ] & ~ 0x10 ) | ( reg_value & 0x10 ) ;\n return ;\n }\n s -> vga . cr [ s -> vga . cr_index ] = reg_value ;\n switch ( s -> vga . cr_index ) {\n case 0x00 : case 0x04 : case 0x05 : case 0x06 : case 0x07 : case 0x11 : case 0x17 : s -> vga . update_retrace_info ( & s -> vga ) ;\n break ;\n }\n break ;\n case 0x19 : case 0x1a : case 0x1b : case 0x1c : case 0x1d : s -> vga . cr [ s -> vga . cr_index ] = reg_value ;\n # ifdef DEBUG_CIRRUS printf ( \"cirrus: handled outport cr_index %02x, cr_value %02x\\n\" , s -> vga . cr_index , reg_value ) ;\n # endif break ;\n case 0x22 : case 0x24 : case 0x26 : case 0x27 : break ;\n case 0x25 : default : # ifdef DEBUG_CIRRUS printf ( \"cirrus: outport cr_index %02x, cr_value %02x\\n\" , s -> vga . cr_index , reg_value ) ;\n # endif break ;\n }\n }"}
{"idx": 20235, "target": 0, "func": "static void U_CALLCONV _ASCIIToUnicodeWithOffsets ( UConverterToUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {\n const uint8_t * source , * sourceLimit ;\n UChar * target , * oldTarget ;\n int32_t targetCapacity , length ;\n int32_t * offsets ;\n int32_t sourceIndex ;\n uint8_t c ;\n source = ( const uint8_t * ) pArgs -> source ;\n sourceLimit = ( const uint8_t * ) pArgs -> sourceLimit ;\n target = oldTarget = pArgs -> target ;\n targetCapacity = ( int32_t ) ( pArgs -> targetLimit - pArgs -> target ) ;\n offsets = pArgs -> offsets ;\n sourceIndex = 0 ;\n length = ( int32_t ) ( sourceLimit - source ) ;\n if ( length < targetCapacity ) {\n targetCapacity = length ;\n }\n if ( targetCapacity >= 8 ) {\n int32_t count , loops ;\n UChar oredChars ;\n loops = count = targetCapacity >> 3 ;\n do {\n oredChars = target [ 0 ] = source [ 0 ] ;\n oredChars |= target [ 1 ] = source [ 1 ] ;\n oredChars |= target [ 2 ] = source [ 2 ] ;\n oredChars |= target [ 3 ] = source [ 3 ] ;\n oredChars |= target [ 4 ] = source [ 4 ] ;\n oredChars |= target [ 5 ] = source [ 5 ] ;\n oredChars |= target [ 6 ] = source [ 6 ] ;\n oredChars |= target [ 7 ] = source [ 7 ] ;\n if ( oredChars > 0x7f ) {\n break ;\n }\n source += 8 ;\n target += 8 ;\n }\n while ( -- count > 0 ) ;\n count = loops - count ;\n targetCapacity -= count * 8 ;\n if ( offsets != NULL ) {\n oldTarget += count * 8 ;\n while ( count > 0 ) {\n offsets [ 0 ] = sourceIndex ++ ;\n offsets [ 1 ] = sourceIndex ++ ;\n offsets [ 2 ] = sourceIndex ++ ;\n offsets [ 3 ] = sourceIndex ++ ;\n offsets [ 4 ] = sourceIndex ++ ;\n offsets [ 5 ] = sourceIndex ++ ;\n offsets [ 6 ] = sourceIndex ++ ;\n offsets [ 7 ] = sourceIndex ++ ;\n offsets += 8 ;\n -- count ;\n }\n }\n }\n c = 0 ;\n while ( targetCapacity > 0 && ( c = * source ++ ) <= 0x7f ) {\n * target ++ = c ;\n -- targetCapacity ;\n }\n if ( c > 0x7f ) {\n UConverter * cnv = pArgs -> converter ;\n cnv -> toUBytes [ 0 ] = c ;\n cnv -> toULength = 1 ;\n * pErrorCode = U_ILLEGAL_CHAR_FOUND ;\n }\n else if ( source < sourceLimit && target >= pArgs -> targetLimit ) {\n * pErrorCode = U_BUFFER_OVERFLOW_ERROR ;\n }\n if ( offsets != NULL ) {\n size_t count = target - oldTarget ;\n while ( count > 0 ) {\n * offsets ++ = sourceIndex ++ ;\n -- count ;\n }\n }\n pArgs -> source = ( const char * ) source ;\n pArgs -> target = target ;\n pArgs -> offsets = offsets ;\n }"}
{"idx": 20236, "target": 0, "func": "static int dissect_h225_IsupNumber ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_IsupNumber , IsupNumber_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 20237, "target": 1, "func": "SPL_METHOD ( SplFileObject , valid ) {\n spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;\n if ( zend_parse_parameters_none ( ) == FAILURE ) {\n return ;\n }\n if ( SPL_HAS_FLAG ( intern -> flags , SPL_FILE_OBJECT_READ_AHEAD ) ) {\n RETURN_BOOL ( intern -> u . file . current_line || intern -> u . file . current_zval ) ;\n }\n else {\n RETVAL_BOOL ( ! php_stream_eof ( intern -> u . file . stream ) ) ;\n }\n }"}
{"idx": 20238, "target": 0, "func": "afs_int32 SPR_ChangeEntry ( struct rx_call * call , afs_int32 aid , char * name , afs_int32 oid , afs_int32 newid ) {\n afs_int32 code ;\n afs_int32 cid = ANONYMOUSID ;\n code = changeEntry ( call , aid , name , oid , newid , & cid ) ;\n osi_auditU ( call , PTS_ChgEntEvent , code , AUD_ID , aid , AUD_STR , name , AUD_LONG , oid , AUD_LONG , newid , AUD_END ) ;\n ViceLog ( 5 , ( \"PTS_ChangeEntry: code %d cid %d aid %d name %s oid %d newid %d\\n\" , code , cid , aid , name , oid , newid ) ) ;\n return code ;\n }"}
{"idx": 20239, "target": 0, "func": "static guint16 de_clg_party_bcd_num ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len , gchar * add_string , int string_len ) {\n const gchar * extr_addr ;\n de_bcd_num ( tvb , tree , pinfo , offset , len , hf_gsm_a_dtap_clg_party_bcd_num , & extr_addr ) ;\n if ( extr_addr && add_string ) g_snprintf ( add_string , string_len , \" - (%s)\" , extr_addr ) ;\n return ( len ) ;\n }"}
{"idx": 20240, "target": 0, "func": "static inline void set_num_711 ( unsigned char * p , unsigned char value ) {\n * p = value ;\n }"}
{"idx": 20241, "target": 0, "func": "TEST_F ( TemplateURLTest , ParseParameterUnknown ) {\n std : : string parsed_url ( \"{\nfhqwhgads}\nabc\" ) ;\n TemplateURLData data ;\n data . SetURL ( parsed_url ) ;\n TemplateURL url ( data ) ;\n TemplateURLRef : : Replacements replacements ;\n EXPECT_FALSE ( url . url_ref ( ) . ParseParameter ( 0 , 10 , & parsed_url , & replacements ) ) ;\n EXPECT_EQ ( \"{\nfhqwhgads}\nabc\" , parsed_url ) ;\n EXPECT_TRUE ( replacements . empty ( ) ) ;\n parsed_url = \"{\nfhqwhgads}\nabc\" ;\n data . prepopulate_id = 1 ;\n TemplateURL url2 ( data ) ;\n EXPECT_TRUE ( url2 . url_ref ( ) . ParseParameter ( 0 , 10 , & parsed_url , & replacements ) ) ;\n EXPECT_EQ ( \"abc\" , parsed_url ) ;\n EXPECT_TRUE ( replacements . empty ( ) ) ;\n }"}
{"idx": 20242, "target": 0, "func": "static void ps2_set_ledstate ( PS2KbdState * s , int ledstate ) {\n trace_ps2_set_ledstate ( s , ledstate ) ;\n s -> ledstate = ledstate ;\n kbd_put_ledstate ( ledstate ) ;\n }"}
{"idx": 20243, "target": 0, "func": "static void remap_codebooks ( RoqContext * enc , RoqTempdata * tempData ) {\n int i , j , idx = 0 ;\n for ( i = 0 ;\n i < MAX_CBS_4x4 ;\n i ++ ) {\n if ( tempData -> codebooks . usedCB4 [ i ] ) {\n tempData -> i2f4 [ i ] = idx ;\n tempData -> f2i4 [ idx ] = i ;\n for ( j = 0 ;\n j < 4 ;\n j ++ ) tempData -> codebooks . usedCB2 [ enc -> cb4x4 [ i ] . idx [ j ] ] ++ ;\n idx ++ ;\n }\n }\n tempData -> numCB4 = idx ;\n idx = 0 ;\n for ( i = 0 ;\n i < MAX_CBS_2x2 ;\n i ++ ) {\n if ( tempData -> codebooks . usedCB2 [ i ] ) {\n tempData -> i2f2 [ i ] = idx ;\n tempData -> f2i2 [ idx ] = i ;\n idx ++ ;\n }\n }\n tempData -> numCB2 = idx ;\n }"}
{"idx": 20244, "target": 0, "func": "void ff_cavs_init_top_lines ( AVSContext * h ) {\n h -> top_qp = av_mallocz ( h -> mb_width ) ;\n h -> top_mv [ 0 ] = av_mallocz ( ( h -> mb_width * 2 + 1 ) * sizeof ( cavs_vector ) ) ;\n h -> top_mv [ 1 ] = av_mallocz ( ( h -> mb_width * 2 + 1 ) * sizeof ( cavs_vector ) ) ;\n h -> top_pred_Y = av_mallocz ( h -> mb_width * 2 * sizeof ( * h -> top_pred_Y ) ) ;\n h -> top_border_y = av_mallocz ( ( h -> mb_width + 1 ) * 16 ) ;\n h -> top_border_u = av_mallocz ( h -> mb_width * 10 ) ;\n h -> top_border_v = av_mallocz ( h -> mb_width * 10 ) ;\n h -> col_mv = av_mallocz ( h -> mb_width * h -> mb_height * 4 * sizeof ( cavs_vector ) ) ;\n h -> col_type_base = av_mallocz ( h -> mb_width * h -> mb_height ) ;\n h -> block = av_mallocz ( 64 * sizeof ( int16_t ) ) ;\n }"}
{"idx": 20245, "target": 0, "func": "rfbBool rfbSendSupportedEncodings ( rfbClientPtr cl ) {\n rfbFramebufferUpdateRectHeader rect ;\n static uint32_t supported [ ] = {\n rfbEncodingRaw , rfbEncodingCopyRect , rfbEncodingRRE , rfbEncodingCoRRE , rfbEncodingHextile , # ifdef LIBVNCSERVER_HAVE_LIBZ rfbEncodingZlib , rfbEncodingZRLE , rfbEncodingZYWRLE , # endif # ifdef LIBVNCSERVER_HAVE_LIBJPEG rfbEncodingTight , # endif # ifdef LIBVNCSERVER_HAVE_LIBPNG rfbEncodingTightPng , # endif rfbEncodingUltra , rfbEncodingUltraZip , rfbEncodingXCursor , rfbEncodingRichCursor , rfbEncodingPointerPos , rfbEncodingLastRect , rfbEncodingNewFBSize , rfbEncodingKeyboardLedState , rfbEncodingSupportedMessages , rfbEncodingSupportedEncodings , rfbEncodingServerIdentity , }\n ;\n uint32_t nEncodings = sizeof ( supported ) / sizeof ( supported [ 0 ] ) , i ;\n if ( cl -> ublen + sz_rfbFramebufferUpdateRectHeader + ( nEncodings * sizeof ( uint32_t ) ) > UPDATE_BUF_SIZE ) {\n if ( ! rfbSendUpdateBuf ( cl ) ) return FALSE ;\n }\n rect . encoding = Swap32IfLE ( rfbEncodingSupportedEncodings ) ;\n rect . r . x = 0 ;\n rect . r . y = 0 ;\n rect . r . w = Swap16IfLE ( nEncodings * sizeof ( uint32_t ) ) ;\n rect . r . h = Swap16IfLE ( nEncodings ) ;\n memcpy ( & cl -> updateBuf [ cl -> ublen ] , ( char * ) & rect , sz_rfbFramebufferUpdateRectHeader ) ;\n cl -> ublen += sz_rfbFramebufferUpdateRectHeader ;\n for ( i = 0 ;\n i < nEncodings ;\n i ++ ) {\n uint32_t encoding = Swap32IfLE ( supported [ i ] ) ;\n memcpy ( & cl -> updateBuf [ cl -> ublen ] , ( char * ) & encoding , sizeof ( encoding ) ) ;\n cl -> ublen += sizeof ( encoding ) ;\n }\n rfbStatRecordEncodingSent ( cl , rfbEncodingSupportedEncodings , sz_rfbFramebufferUpdateRectHeader + ( nEncodings * sizeof ( uint32_t ) ) , sz_rfbFramebufferUpdateRectHeader + ( nEncodings * sizeof ( uint32_t ) ) ) ;\n if ( ! rfbSendUpdateBuf ( cl ) ) return FALSE ;\n return TRUE ;\n }"}
{"idx": 20246, "target": 0, "func": "static inline void qemu_get_be16s ( QEMUFile * f , uint16_t * pv ) {\n * pv = qemu_get_be16 ( f ) ;\n }"}
{"idx": 20247, "target": 0, "func": "static int proc_get_capabilities ( struct usb_dev_state * ps , void __user * arg ) {\n __u32 caps ;\n caps = USBDEVFS_CAP_ZERO_PACKET | USBDEVFS_CAP_NO_PACKET_SIZE_LIM | USBDEVFS_CAP_REAP_AFTER_DISCONNECT | USBDEVFS_CAP_MMAP | USBDEVFS_CAP_DROP_PRIVILEGES ;\n if ( ! ps -> dev -> bus -> no_stop_on_short ) caps |= USBDEVFS_CAP_BULK_CONTINUATION ;\n if ( ps -> dev -> bus -> sg_tablesize ) caps |= USBDEVFS_CAP_BULK_SCATTER_GATHER ;\n if ( put_user ( caps , ( __u32 __user * ) arg ) ) return - EFAULT ;\n return 0 ;\n }"}
{"idx": 20248, "target": 0, "func": "static void e1000e_set_itr ( E1000ECore * core , int index , uint32_t val ) {\n uint32_t interval = val & 0xffff ;\n trace_e1000e_irq_itr_set ( val ) ;\n core -> itr_guest_value = interval ;\n core -> mac [ index ] = MAX ( interval , E1000E_MIN_XITR ) ;\n }"}
{"idx": 20249, "target": 0, "func": "static int matroska_aac_profile ( char * codec_id ) {\n static const char * const aac_profiles [ ] = {\n \"MAIN\" , \"LC\" , \"SSR\" }\n ;\n int profile ;\n for ( profile = 0 ;\n profile < FF_ARRAY_ELEMS ( aac_profiles ) ;\n profile ++ ) if ( strstr ( codec_id , aac_profiles [ profile ] ) ) break ;\n return profile + 1 ;\n }"}
{"idx": 20250, "target": 0, "func": "static void cleanst ( struct vars * v ) {\n struct subre * t ;\n struct subre * next ;\n for ( t = v -> treechain ;\n t != NULL ;\n t = next ) {\n next = t -> chain ;\n if ( ! ( t -> flags & INUSE ) ) FREE ( t ) ;\n }\n v -> treechain = NULL ;\n v -> treefree = NULL ;\n }"}
{"idx": 20251, "target": 0, "func": "int mi_repair ( MI_CHECK * param , register MI_INFO * info , char * name , int rep_quick , my_bool no_copy_stat ) {\n int error , got_error ;\n ha_rows start_records , new_header_length ;\n my_off_t del ;\n File new_file ;\n MYISAM_SHARE * share = info -> s ;\n char llbuff [ 22 ] , llbuff2 [ 22 ] ;\n SORT_INFO sort_info ;\n MI_SORT_PARAM sort_param ;\n DBUG_ENTER ( \"mi_repair\" ) ;\n bzero ( ( char * ) & sort_info , sizeof ( sort_info ) ) ;\n bzero ( ( char * ) & sort_param , sizeof ( sort_param ) ) ;\n start_records = info -> state -> records ;\n new_header_length = ( param -> testflag & T_UNPACK ) ? 0L : share -> pack . header_length ;\n got_error = 1 ;\n new_file = - 1 ;\n sort_param . sort_info = & sort_info ;\n if ( ! ( param -> testflag & T_SILENT ) ) {\n printf ( \"- recovering (with keycache) MyISAM-table '%s'\\n\" , name ) ;\n printf ( \"Data records: %s\\n\" , llstr ( info -> state -> records , llbuff ) ) ;\n }\n param -> testflag |= T_REP ;\n if ( info -> s -> options & ( HA_OPTION_CHECKSUM | HA_OPTION_COMPRESS_RECORD ) ) param -> testflag |= T_CALC_CHECKSUM ;\n DBUG_ASSERT ( param -> use_buffers < SIZE_T_MAX ) ;\n if ( ! param -> using_global_keycache ) ( void ) init_key_cache ( dflt_key_cache , param -> key_cache_block_size , param -> use_buffers , 0 , 0 ) ;\n if ( init_io_cache ( & param -> read_cache , info -> dfile , ( uint ) param -> read_buffer_length , READ_CACHE , share -> pack . header_length , 1 , MYF ( MY_WME ) ) ) {\n bzero ( & info -> rec_cache , sizeof ( info -> rec_cache ) ) ;\n goto err ;\n }\n if ( ! rep_quick ) if ( init_io_cache ( & info -> rec_cache , - 1 , ( uint ) param -> write_buffer_length , WRITE_CACHE , new_header_length , 1 , MYF ( MY_WME | MY_WAIT_IF_FULL ) ) ) goto err ;\n info -> opt_flag |= WRITE_CACHE_USED ;\n if ( ! mi_alloc_rec_buff ( info , - 1 , & sort_param . record ) || ! mi_alloc_rec_buff ( info , - 1 , & sort_param . rec_buff ) ) {\n mi_check_print_error ( param , \"Not enough memory for extra record\" ) ;\n goto err ;\n }\n if ( ! rep_quick ) {\n if ( ( new_file = mysql_file_create ( mi_key_file_datatmp , fn_format ( param -> temp_filename , share -> data_file_name , \"\" , DATA_TMP_EXT , 2 + 4 ) , 0 , param -> tmpfile_createflag , MYF ( 0 ) ) ) < 0 ) {\n mi_check_print_error ( param , \"Can't create new tempfile: '%s'\" , param -> temp_filename ) ;\n goto err ;\n }\n if ( new_header_length && filecopy ( param , new_file , info -> dfile , 0L , new_header_length , \"datafile-header\" ) ) goto err ;\n info -> s -> state . dellink = HA_OFFSET_ERROR ;\n info -> rec_cache . file = new_file ;\n if ( param -> testflag & T_UNPACK ) {\n share -> options &= ~ HA_OPTION_COMPRESS_RECORD ;\n mi_int2store ( share -> state . header . options , share -> options ) ;\n }\n }\n sort_info . info = info ;\n sort_info . param = param ;\n sort_param . read_cache = param -> read_cache ;\n sort_param . pos = sort_param . max_pos = share -> pack . header_length ;\n sort_param . filepos = new_header_length ;\n param -> read_cache . end_of_file = sort_info . filelength = mysql_file_seek ( info -> dfile , 0L , MY_SEEK_END , MYF ( 0 ) ) ;\n sort_info . dupp = 0 ;\n sort_param . fix_datafile = ( my_bool ) ( ! rep_quick ) ;\n sort_param . master = 1 ;\n sort_info . max_records = ~ ( ha_rows ) 0 ;\n set_data_file_type ( & sort_info , share ) ;\n del = info -> state -> del ;\n info -> state -> records = info -> state -> del = share -> state . split = 0 ;\n info -> state -> empty = 0 ;\n param -> glob_crc = 0 ;\n if ( param -> testflag & T_CALC_CHECKSUM ) sort_param . calc_checksum = 1 ;\n info -> update = ( short ) ( HA_STATE_CHANGED | HA_STATE_ROW_CHANGED ) ;\n if ( param -> testflag & T_CREATE_MISSING_KEYS ) mi_set_all_keys_active ( share -> state . key_map , share -> base . keys ) ;\n mi_drop_all_indexes ( param , info , TRUE ) ;\n lock_memory ( param ) ;\n while ( ! ( error = sort_get_next_record ( & sort_param ) ) ) {\n if ( writekeys ( & sort_param ) ) {\n if ( my_errno != HA_ERR_FOUND_DUPP_KEY ) goto err ;\n DBUG_DUMP ( \"record\" , ( uchar * ) sort_param . record , share -> base . pack_reclength ) ;\n mi_check_print_info ( param , \"Duplicate key %2d for record at %10s against new record at %10s\" , info -> errkey + 1 , llstr ( sort_param . start_recpos , llbuff ) , llstr ( info -> dupp_key_pos , llbuff2 ) ) ;\n if ( param -> testflag & T_VERBOSE ) {\n ( void ) _mi_make_key ( info , ( uint ) info -> errkey , info -> lastkey , sort_param . record , 0L ) ;\n _mi_print_key ( stdout , share -> keyinfo [ info -> errkey ] . seg , info -> lastkey , USE_WHOLE_KEY ) ;\n }\n sort_info . dupp ++ ;\n if ( ( param -> testflag & ( T_FORCE_UNIQUENESS | T_QUICK ) ) == T_QUICK ) {\n param -> testflag |= T_RETRY_WITHOUT_QUICK ;\n param -> error_printed = 1 ;\n goto err ;\n }\n continue ;\n }\n if ( sort_write_record ( & sort_param ) ) goto err ;\n }\n if ( error > 0 || write_data_suffix ( & sort_info , ( my_bool ) ! rep_quick ) || flush_io_cache ( & info -> rec_cache ) || param -> read_cache . error < 0 ) goto err ;\n if ( param -> testflag & T_WRITE_LOOP ) {\n ( void ) fputs ( \" \\r\" , stdout ) ;\n ( void ) fflush ( stdout ) ;\n }\n if ( mysql_file_chsize ( share -> kfile , info -> state -> key_file_length , 0 , MYF ( 0 ) ) ) {\n mi_check_print_warning ( param , \"Can't change size of indexfile, error: %d\" , my_errno ) ;\n goto err ;\n }\n if ( rep_quick && del + sort_info . dupp != info -> state -> del ) {\n mi_check_print_error ( param , \"Couldn't fix table with quick recovery: Found wrong number of deleted records\" ) ;\n mi_check_print_error ( param , \"Run recovery again without -q\" ) ;\n got_error = 1 ;\n param -> retry_repair = 1 ;\n param -> testflag |= T_RETRY_WITHOUT_QUICK ;\n goto err ;\n }\n if ( param -> testflag & T_SAFE_REPAIR ) {\n if ( info -> state -> records + 1 < start_records ) {\n info -> state -> records = start_records ;\n got_error = 1 ;\n goto err ;\n }\n }\n if ( ! rep_quick ) {\n mysql_file_close ( info -> dfile , MYF ( 0 ) ) ;\n info -> dfile = new_file ;\n info -> state -> data_file_length = sort_param . filepos ;\n share -> state . version = ( ulong ) time ( ( time_t * ) 0 ) ;\n }\n else {\n info -> state -> data_file_length = sort_param . max_pos ;\n }\n if ( param -> testflag & T_CALC_CHECKSUM ) info -> state -> checksum = param -> glob_crc ;\n if ( ! ( param -> testflag & T_SILENT ) ) {\n if ( start_records != info -> state -> records ) printf ( \"Data records: %s\\n\" , llstr ( info -> state -> records , llbuff ) ) ;\n if ( sort_info . dupp ) mi_check_print_warning ( param , \"%s records have been removed\" , llstr ( sort_info . dupp , llbuff ) ) ;\n }\n got_error = 0 ;\n if ( & share -> state . state != info -> state ) memcpy ( & share -> state . state , info -> state , sizeof ( * info -> state ) ) ;\n err : if ( ! got_error ) {\n if ( new_file >= 0 ) {\n myf flags = 0 ;\n if ( param -> testflag & T_BACKUP_DATA ) flags |= MY_REDEL_MAKE_BACKUP ;\n if ( no_copy_stat ) flags |= MY_REDEL_NO_COPY_STAT ;\n mysql_file_close ( new_file , MYF ( 0 ) ) ;\n info -> dfile = new_file = - 1 ;\n if ( info -> s -> file_map ) {\n ( void ) my_munmap ( ( char * ) info -> s -> file_map , ( size_t ) info -> s -> mmaped_length ) ;\n info -> s -> file_map = NULL ;\n }\n if ( change_to_newfile ( share -> data_file_name , MI_NAME_DEXT , DATA_TMP_EXT , flags ) || mi_open_datafile ( info , share , name , - 1 ) ) got_error = 1 ;\n param -> retry_repair = 0 ;\n }\n }\n if ( got_error ) {\n if ( ! param -> error_printed ) mi_check_print_error ( param , \"%d for record at pos %s\" , my_errno , llstr ( sort_param . start_recpos , llbuff ) ) ;\n if ( new_file >= 0 ) {\n ( void ) mysql_file_close ( new_file , MYF ( 0 ) ) ;\n ( void ) mysql_file_delete ( mi_key_file_datatmp , param -> temp_filename , MYF ( MY_WME ) ) ;\n info -> rec_cache . file = - 1 ;\n }\n mi_mark_crashed_on_repair ( info ) ;\n }\n my_free ( mi_get_rec_buff_ptr ( info , sort_param . rec_buff ) ) ;\n my_free ( mi_get_rec_buff_ptr ( info , sort_param . record ) ) ;\n my_free ( sort_info . buff ) ;\n ( void ) end_io_cache ( & param -> read_cache ) ;\n info -> opt_flag &= ~ ( READ_CACHE_USED | WRITE_CACHE_USED ) ;\n ( void ) end_io_cache ( & info -> rec_cache ) ;\n got_error |= flush_blocks ( param , share -> key_cache , share -> kfile ) ;\n if ( ! got_error && param -> testflag & T_UNPACK ) {\n share -> state . header . options [ 0 ] &= ( uchar ) ~ HA_OPTION_COMPRESS_RECORD ;\n share -> pack . header_length = 0 ;\n share -> data_file_type = sort_info . new_data_file_type ;\n }\n share -> state . changed |= ( STATE_NOT_OPTIMIZED_KEYS | STATE_NOT_SORTED_PAGES | STATE_NOT_ANALYZED ) ;\n DBUG_RETURN ( got_error ) ;\n }"}
{"idx": 20252, "target": 0, "func": "static int open_input_file ( InputFile * ifile , const char * filename ) {\n int err , i ;\n AVFormatContext * fmt_ctx = NULL ;\n AVDictionaryEntry * t ;\n int scan_all_pmts_set = 0 ;\n fmt_ctx = avformat_alloc_context ( ) ;\n if ( ! fmt_ctx ) {\n print_error ( filename , AVERROR ( ENOMEM ) ) ;\n exit_program ( 1 ) ;\n }\n fmt_ctx -> flags |= AVFMT_FLAG_KEEP_SIDE_DATA ;\n if ( ! av_dict_get ( format_opts , \"scan_all_pmts\" , NULL , AV_DICT_MATCH_CASE ) ) {\n av_dict_set ( & format_opts , \"scan_all_pmts\" , \"1\" , AV_DICT_DONT_OVERWRITE ) ;\n scan_all_pmts_set = 1 ;\n }\n if ( ( err = avformat_open_input ( & fmt_ctx , filename , iformat , & format_opts ) ) < 0 ) {\n print_error ( filename , err ) ;\n return err ;\n }\n ifile -> fmt_ctx = fmt_ctx ;\n if ( scan_all_pmts_set ) av_dict_set ( & format_opts , \"scan_all_pmts\" , NULL , AV_DICT_MATCH_CASE ) ;\n if ( ( t = av_dict_get ( format_opts , \"\" , NULL , AV_DICT_IGNORE_SUFFIX ) ) ) {\n av_log ( NULL , AV_LOG_ERROR , \"Option %s not found.\\n\" , t -> key ) ;\n return AVERROR_OPTION_NOT_FOUND ;\n }\n if ( find_stream_info ) {\n AVDictionary * * opts = setup_find_stream_info_opts ( fmt_ctx , codec_opts ) ;\n int orig_nb_streams = fmt_ctx -> nb_streams ;\n err = avformat_find_stream_info ( fmt_ctx , opts ) ;\n for ( i = 0 ;\n i < orig_nb_streams ;\n i ++ ) av_dict_free ( & opts [ i ] ) ;\n av_freep ( & opts ) ;\n if ( err < 0 ) {\n print_error ( filename , err ) ;\n return err ;\n }\n }\n av_dump_format ( fmt_ctx , 0 , filename , 0 ) ;\n ifile -> streams = av_mallocz_array ( fmt_ctx -> nb_streams , sizeof ( * ifile -> streams ) ) ;\n if ( ! ifile -> streams ) exit ( 1 ) ;\n ifile -> nb_streams = fmt_ctx -> nb_streams ;\n for ( i = 0 ;\n i < fmt_ctx -> nb_streams ;\n i ++ ) {\n InputStream * ist = & ifile -> streams [ i ] ;\n AVStream * stream = fmt_ctx -> streams [ i ] ;\n AVCodec * codec ;\n ist -> st = stream ;\n if ( stream -> codecpar -> codec_id == AV_CODEC_ID_PROBE ) {\n av_log ( NULL , AV_LOG_WARNING , \"Failed to probe codec for input stream %d\\n\" , stream -> index ) ;\n continue ;\n }\n codec = avcodec_find_decoder ( stream -> codecpar -> codec_id ) ;\n if ( ! codec ) {\n av_log ( NULL , AV_LOG_WARNING , \"Unsupported codec with id %d for input stream %d\\n\" , stream -> codecpar -> codec_id , stream -> index ) ;\n continue ;\n }\n {\n AVDictionary * opts = filter_codec_opts ( codec_opts , stream -> codecpar -> codec_id , fmt_ctx , stream , codec ) ;\n ist -> dec_ctx = avcodec_alloc_context3 ( codec ) ;\n if ( ! ist -> dec_ctx ) exit ( 1 ) ;\n err = avcodec_parameters_to_context ( ist -> dec_ctx , stream -> codecpar ) ;\n if ( err < 0 ) exit ( 1 ) ;\n if ( do_show_log ) {\n av_dict_set ( & codec_opts , \"threads\" , \"1\" , 0 ) ;\n }\n av_codec_set_pkt_timebase ( ist -> dec_ctx , stream -> time_base ) ;\n ist -> dec_ctx -> framerate = stream -> avg_frame_rate ;\n if ( avcodec_open2 ( ist -> dec_ctx , codec , & opts ) < 0 ) {\n av_log ( NULL , AV_LOG_WARNING , \"Could not open codec for input stream %d\\n\" , stream -> index ) ;\n exit ( 1 ) ;\n }\n if ( ( t = av_dict_get ( opts , \"\" , NULL , AV_DICT_IGNORE_SUFFIX ) ) ) {\n av_log ( NULL , AV_LOG_ERROR , \"Option %s for input stream %d not found\\n\" , t -> key , stream -> index ) ;\n return AVERROR_OPTION_NOT_FOUND ;\n }\n }\n }\n ifile -> fmt_ctx = fmt_ctx ;\n return 0 ;\n }"}
{"idx": 20253, "target": 1, "func": "extern int name ( int ) __THROW __exctype ( isalnum ) ;\n __exctype ( isalpha ) ;\n __exctype ( iscntrl ) ;\n __exctype ( isdigit ) ;\n __exctype ( islower ) ;\n __exctype ( isgraph ) ;\n __exctype ( isprint ) ;\n __exctype ( ispunct ) ;\n __exctype ( isspace ) ;\n __exctype ( isupper ) ;\n __exctype ( isxdigit ) ;\n extern int tolower ( int __c ) __THROW ;\n extern int toupper ( int __c ) __THROW ;\n # ifdef __USE_ISOC99 __exctype ( isblank ) ;\n # endif # ifdef __USE_GNU extern int isctype ( int __c , int __mask ) __THROW ;\n # endif # if defined __USE_MISC || defined __USE_XOPEN extern int isascii ( int __c ) __THROW ;\n extern int toascii ( int __c ) __THROW ;\n __exctype ( _toupper )"}
{"idx": 20254, "target": 0, "func": "static gboolean file_was_not_mounted ( NautilusFile * file ) {\n GError * error ;\n error = nautilus_file_get_file_info_error ( file ) ;\n return error != NULL && error -> domain == G_IO_ERROR && error -> code == G_IO_ERROR_NOT_MOUNTED ;\n }"}
{"idx": 20255, "target": 0, "func": "static uint64_t mpc8544_guts_read ( void * opaque , hwaddr addr , unsigned size ) {\n uint32_t value = 0 ;\n PowerPCCPU * cpu = POWERPC_CPU ( current_cpu ) ;\n CPUPPCState * env = & cpu -> env ;\n addr &= MPC8544_GUTS_MMIO_SIZE - 1 ;\n switch ( addr ) {\n case MPC8544_GUTS_ADDR_PVR : value = env -> spr [ SPR_PVR ] ;\n break ;\n case MPC8544_GUTS_ADDR_SVR : value = env -> spr [ SPR_E500_SVR ] ;\n break ;\n default : fprintf ( stderr , \"guts: Unknown register read: %x\\n\" , ( int ) addr ) ;\n break ;\n }\n return value ;\n }"}
{"idx": 20256, "target": 0, "func": "static void xhci_init_epctx ( XHCIEPContext * epctx , dma_addr_t pctx , uint32_t * ctx ) {\n dma_addr_t dequeue ;\n dequeue = xhci_addr64 ( ctx [ 2 ] & ~ 0xf , ctx [ 3 ] ) ;\n epctx -> type = ( ctx [ 1 ] >> EP_TYPE_SHIFT ) & EP_TYPE_MASK ;\n epctx -> pctx = pctx ;\n epctx -> max_psize = ctx [ 1 ] >> 16 ;\n epctx -> max_psize *= 1 + ( ( ctx [ 1 ] >> 8 ) & 0xff ) ;\n epctx -> max_pstreams = ( ctx [ 0 ] >> 10 ) & epctx -> xhci -> max_pstreams_mask ;\n epctx -> lsa = ( ctx [ 0 ] >> 15 ) & 1 ;\n if ( epctx -> max_pstreams ) {\n xhci_alloc_streams ( epctx , dequeue ) ;\n }\n else {\n xhci_ring_init ( epctx -> xhci , & epctx -> ring , dequeue ) ;\n epctx -> ring . ccs = ctx [ 2 ] & 1 ;\n }\n epctx -> interval = 1 << ( ( ctx [ 0 ] >> 16 ) & 0xff ) ;\n }"}
{"idx": 20257, "target": 0, "func": "static int main_pipe_copier ( uint8_t * pipe_buf , usize_t pipe_bufsize , size_t nread , main_file * ifile , int outfd ) {\n int ret ;\n xoff_t skipped = 0 ;\n struct sigaction sa ;\n sa . sa_handler = SIG_IGN ;\n sigaction ( SIGPIPE , & sa , NULL ) ;\n for ( ;\n ;\n ) {\n int force_drain = 0 ;\n if ( nread > 0 && ( ret = main_pipe_write ( outfd , pipe_buf , nread ) ) ) {\n if ( ret == EPIPE ) {\n skipped += nread ;\n force_drain = 1 ;\n }\n else {\n XPR ( NT \"pipe write failed: %s\\n\" , xd3_mainerror ( ret ) ) ;\n return ret ;\n }\n }\n if ( nread < pipe_bufsize && ! force_drain ) {\n break ;\n }\n if ( ( ret = main_file_read ( ifile , pipe_buf , pipe_bufsize , & nread , \"pipe read failed\" ) ) < 0 ) {\n return ret ;\n }\n }\n if ( option_verbose && skipped != 0 ) {\n XPR ( NT \"skipping %\" Q \"u bytes in %s\\n\" , skipped , ifile -> filename ) ;\n }\n return 0 ;\n }"}
{"idx": 20258, "target": 0, "func": "TEST_F ( PrintPreviewUIUnitTest , PrintPreviewDraftPages ) {\n WebContents * initiator = browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) ;\n ASSERT_TRUE ( initiator ) ;\n printing : : PrintPreviewDialogController * controller = printing : : PrintPreviewDialogController : : GetInstance ( ) ;\n ASSERT_TRUE ( controller ) ;\n printing : : PrintViewManager * print_view_manager = printing : : PrintViewManager : : FromWebContents ( initiator ) ;\n print_view_manager -> PrintPreviewNow ( initiator -> GetMainFrame ( ) , false ) ;\n WebContents * preview_dialog = controller -> GetOrCreatePreviewDialog ( initiator ) ;\n EXPECT_NE ( initiator , preview_dialog ) ;\n EXPECT_EQ ( 1 , browser ( ) -> tab_strip_model ( ) -> count ( ) ) ;\n EXPECT_TRUE ( IsShowingWebContentsModalDialog ( initiator ) ) ;\n PrintPreviewUI * preview_ui = static_cast < PrintPreviewUI * > ( preview_dialog -> GetWebUI ( ) -> GetController ( ) ) ;\n ASSERT_TRUE ( preview_ui != NULL ) ;\n scoped_refptr < base : : RefCountedBytes > data ;\n preview_ui -> GetPrintPreviewDataForIndex ( printing : : FIRST_PAGE_INDEX , & data ) ;\n EXPECT_EQ ( NULL , data . get ( ) ) ;\n scoped_refptr < base : : RefCountedBytes > dummy_data = CreateTestData ( ) ;\n preview_ui -> SetPrintPreviewDataForIndex ( printing : : FIRST_PAGE_INDEX , dummy_data . get ( ) ) ;\n preview_ui -> GetPrintPreviewDataForIndex ( printing : : FIRST_PAGE_INDEX , & data ) ;\n EXPECT_EQ ( dummy_data -> size ( ) , data -> size ( ) ) ;\n EXPECT_EQ ( dummy_data . get ( ) , data . get ( ) ) ;\n preview_ui -> SetPrintPreviewDataForIndex ( printing : : FIRST_PAGE_INDEX + 2 , dummy_data . get ( ) ) ;\n preview_ui -> GetPrintPreviewDataForIndex ( printing : : FIRST_PAGE_INDEX + 2 , & data ) ;\n EXPECT_EQ ( dummy_data -> size ( ) , data -> size ( ) ) ;\n EXPECT_EQ ( dummy_data . get ( ) , data . get ( ) ) ;\n preview_ui -> GetPrintPreviewDataForIndex ( printing : : FIRST_PAGE_INDEX + 1 , & data ) ;\n EXPECT_EQ ( NULL , data . get ( ) ) ;\n preview_ui -> SetPrintPreviewDataForIndex ( printing : : FIRST_PAGE_INDEX + 1 , dummy_data . get ( ) ) ;\n preview_ui -> GetPrintPreviewDataForIndex ( printing : : FIRST_PAGE_INDEX + 1 , & data ) ;\n EXPECT_EQ ( dummy_data -> size ( ) , data -> size ( ) ) ;\n EXPECT_EQ ( dummy_data . get ( ) , data . get ( ) ) ;\n preview_ui -> ClearAllPreviewData ( ) ;\n preview_ui -> GetPrintPreviewDataForIndex ( printing : : FIRST_PAGE_INDEX , & data ) ;\n EXPECT_EQ ( NULL , data . get ( ) ) ;\n }"}
{"idx": 20259, "target": 0, "func": "uint32_t pcnet_bcr_readw ( PCNetState * s , uint32_t rap ) {\n uint32_t val ;\n rap &= 127 ;\n switch ( rap ) {\n case BCR_LNKST : case BCR_LED1 : case BCR_LED2 : case BCR_LED3 : val = s -> bcr [ rap ] & ~ 0x8000 ;\n val |= ( val & 0x017f & s -> lnkst ) ? 0x8000 : 0 ;\n break ;\n default : val = rap < 32 ? s -> bcr [ rap ] : 0 ;\n break ;\n }\n # ifdef PCNET_DEBUG_BCR printf ( \"pcnet_bcr_readw rap=%d val=0x%04x\\n\" , rap , val ) ;\n # endif return val ;\n }"}
{"idx": 20260, "target": 0, "func": "TEST_F ( ExternalProtocolHandlerTest , TestGetBlockStateDefaultDontBlock ) {\n ExternalProtocolHandler : : BlockState block_state = ExternalProtocolHandler : : GetBlockState ( \"mailto\" , profile_ . get ( ) ) ;\n EXPECT_EQ ( ExternalProtocolHandler : : DONT_BLOCK , block_state ) ;\n EXPECT_TRUE ( local_state_ -> GetDictionary ( prefs : : kExcludedSchemes ) -> empty ( ) ) ;\n EXPECT_TRUE ( profile_ -> GetPrefs ( ) -> GetDictionary ( prefs : : kExcludedSchemes ) -> empty ( ) ) ;\n }"}
{"idx": 20261, "target": 0, "func": "void printEachForward ( UBreakIterator * boundary , UChar * str ) {\n int32_t end ;\n int32_t start = ubrk_first ( boundary ) ;\n for ( end = ubrk_next ( boundary ) ;\n end != UBRK_DONE ;\n start = end , end = ubrk_next ( boundary ) ) {\n printTextRange ( str , start , end ) ;\n }\n }"}
{"idx": 20262, "target": 0, "func": "static int nsv_parse_NSVf_header ( AVFormatContext * s ) {\n NSVContext * nsv = s -> priv_data ;\n AVIOContext * pb = s -> pb ;\n unsigned int av_unused file_size ;\n unsigned int size ;\n int64_t duration ;\n int strings_size ;\n int table_entries ;\n int table_entries_used ;\n nsv -> state = NSV_UNSYNC ;\n size = avio_rl32 ( pb ) ;\n if ( size < 28 ) return - 1 ;\n nsv -> NSVf_end = size ;\n file_size = ( uint32_t ) avio_rl32 ( pb ) ;\n av_log ( s , AV_LOG_TRACE , \"NSV NSVf chunk_size %u\\n\" , size ) ;\n av_log ( s , AV_LOG_TRACE , \"NSV NSVf file_size %u\\n\" , file_size ) ;\n nsv -> duration = duration = avio_rl32 ( pb ) ;\n av_log ( s , AV_LOG_TRACE , \"NSV NSVf duration %\" PRId64 \" ms\\n\" , duration ) ;\n strings_size = avio_rl32 ( pb ) ;\n table_entries = avio_rl32 ( pb ) ;\n table_entries_used = avio_rl32 ( pb ) ;\n av_log ( s , AV_LOG_TRACE , \"NSV NSVf info-strings size: %d, table entries: %d, bis %d\\n\" , strings_size , table_entries , table_entries_used ) ;\n if ( avio_feof ( pb ) ) return - 1 ;\n av_log ( s , AV_LOG_TRACE , \"NSV got header;\n filepos %\" PRId64 \"\\n\" , avio_tell ( pb ) ) ;\n if ( strings_size > 0 ) {\n char * strings ;\n char * p , * endp ;\n char * token , * value ;\n char quote ;\n p = strings = av_mallocz ( ( size_t ) strings_size + 1 ) ;\n if ( ! p ) return AVERROR ( ENOMEM ) ;\n endp = strings + strings_size ;\n avio_read ( pb , strings , strings_size ) ;\n while ( p < endp ) {\n while ( * p == ' ' ) p ++ ;\n if ( p >= endp - 2 ) break ;\n token = p ;\n p = strchr ( p , '=' ) ;\n if ( ! p || p >= endp - 2 ) break ;\n * p ++ = '\\0' ;\n quote = * p ++ ;\n value = p ;\n p = strchr ( p , quote ) ;\n if ( ! p || p >= endp ) break ;\n * p ++ = '\\0' ;\n av_log ( s , AV_LOG_TRACE , \"NSV NSVf INFO: %s='%s'\\n\" , token , value ) ;\n av_dict_set ( & s -> metadata , token , value , 0 ) ;\n }\n av_free ( strings ) ;\n }\n if ( avio_feof ( pb ) ) return - 1 ;\n av_log ( s , AV_LOG_TRACE , \"NSV got infos;\n filepos %\" PRId64 \"\\n\" , avio_tell ( pb ) ) ;\n if ( table_entries_used > 0 ) {\n int i ;\n nsv -> index_entries = table_entries_used ;\n if ( ( unsigned ) table_entries_used >= UINT_MAX / sizeof ( uint32_t ) ) return - 1 ;\n nsv -> nsvs_file_offset = av_malloc_array ( ( unsigned ) table_entries_used , sizeof ( uint32_t ) ) ;\n if ( ! nsv -> nsvs_file_offset ) return AVERROR ( ENOMEM ) ;\n for ( i = 0 ;\n i < table_entries_used ;\n i ++ ) {\n if ( avio_feof ( pb ) ) return AVERROR_INVALIDDATA ;\n nsv -> nsvs_file_offset [ i ] = avio_rl32 ( pb ) + size ;\n }\n if ( table_entries > table_entries_used && avio_rl32 ( pb ) == MKTAG ( 'T' , 'O' , 'C' , '2' ) ) {\n nsv -> nsvs_timestamps = av_malloc_array ( ( unsigned ) table_entries_used , sizeof ( uint32_t ) ) ;\n if ( ! nsv -> nsvs_timestamps ) return AVERROR ( ENOMEM ) ;\n for ( i = 0 ;\n i < table_entries_used ;\n i ++ ) {\n nsv -> nsvs_timestamps [ i ] = avio_rl32 ( pb ) ;\n }\n }\n }\n av_log ( s , AV_LOG_TRACE , \"NSV got index;\n filepos %\" PRId64 \"\\n\" , avio_tell ( pb ) ) ;\n avio_seek ( pb , nsv -> base_offset + size , SEEK_SET ) ;\n if ( avio_feof ( pb ) ) return - 1 ;\n nsv -> state = NSV_HAS_READ_NSVF ;\n return 0 ;\n }"}
{"idx": 20263, "target": 1, "func": "static int mss1_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n const uint8_t * buf = avpkt -> data ;\n int buf_size = avpkt -> size ;\n MSS1Context * ctx = avctx -> priv_data ;\n MSS12Context * c = & ctx -> ctx ;\n GetBitContext gb ;\n ArithCoder acoder ;\n int pal_changed = 0 ;\n int ret ;\n init_get_bits ( & gb , buf , buf_size * 8 ) ;\n arith_init ( & acoder , & gb ) ;\n ctx -> pic . reference = 3 ;\n ctx -> pic . buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_READABLE | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE ;\n if ( ( ret = avctx -> reget_buffer ( avctx , & ctx -> pic ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n c -> pal_pic = ctx -> pic . data [ 0 ] + ctx -> pic . linesize [ 0 ] * ( avctx -> height - 1 ) ;\n c -> pal_stride = - ctx -> pic . linesize [ 0 ] ;\n c -> keyframe = ! arith_get_bit ( & acoder ) ;\n if ( c -> keyframe ) {\n c -> corrupted = 0 ;\n ff_mss12_slicecontext_reset ( & ctx -> sc ) ;\n pal_changed = decode_pal ( c , & acoder ) ;\n ctx -> pic . key_frame = 1 ;\n ctx -> pic . pict_type = AV_PICTURE_TYPE_I ;\n }\n else {\n if ( c -> corrupted ) return AVERROR_INVALIDDATA ;\n ctx -> pic . key_frame = 0 ;\n ctx -> pic . pict_type = AV_PICTURE_TYPE_P ;\n }\n c -> corrupted = ff_mss12_decode_rect ( & ctx -> sc , & acoder , 0 , 0 , avctx -> width , avctx -> height ) ;\n if ( c -> corrupted ) return AVERROR_INVALIDDATA ;\n memcpy ( ctx -> pic . data [ 1 ] , c -> pal , AVPALETTE_SIZE ) ;\n ctx -> pic . palette_has_changed = pal_changed ;\n * got_frame = 1 ;\n * ( AVFrame * ) data = ctx -> pic ;\n return buf_size ;\n }"}
{"idx": 20264, "target": 0, "func": "static int qcow2_probe ( const uint8_t * buf , int buf_size , const char * filename ) {\n const QCowHeader * cow_header = ( const void * ) buf ;\n if ( buf_size >= sizeof ( QCowHeader ) && be32_to_cpu ( cow_header -> magic ) == QCOW_MAGIC && be32_to_cpu ( cow_header -> version ) >= 2 ) return 100 ;\n else return 0 ;\n }"}
{"idx": 20265, "target": 1, "func": "void ff_MPV_common_defaults ( MpegEncContext * s ) {\n s -> y_dc_scale_table = s -> c_dc_scale_table = ff_mpeg1_dc_scale_table ;\n s -> chroma_qscale_table = ff_default_chroma_qscale_table ;\n s -> progressive_frame = 1 ;\n s -> progressive_sequence = 1 ;\n s -> picture_structure = PICT_FRAME ;\n s -> coded_picture_number = 0 ;\n s -> picture_number = 0 ;\n s -> input_picture_number = 0 ;\n s -> picture_in_gop_number = 0 ;\n s -> f_code = 1 ;\n s -> b_code = 1 ;\n s -> picture_range_start = 0 ;\n s -> picture_range_end = MAX_PICTURE_COUNT ;\n s -> slice_context_count = 1 ;\n }"}
{"idx": 20266, "target": 0, "func": "static int zzstop ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n uint count ;\n check_type ( * op , t_integer ) ;\n count = count_to_stopped ( i_ctx_p , op -> value . intval ) ;\n if ( count ) {\n ref save_result ;\n check_op ( 2 ) ;\n save_result = op [ - 1 ] ;\n pop ( 2 ) ;\n pop_estack ( i_ctx_p , count ) ;\n op = osp ;\n push ( 1 ) ;\n * op = save_result ;\n return o_pop_estack ;\n }\n return unmatched_exit ( op , zzstop ) ;\n }"}
{"idx": 20267, "target": 0, "func": "static void forward_query ( int bind_fd , struct query * q ) {\n char buf [ 64 * 1024 ] ;\n int len ;\n struct fw_query fwq ;\n struct sockaddr_in * myaddr ;\n in_addr_t newaddr ;\n len = dns_encode ( buf , sizeof ( buf ) , q , QR_QUERY , q -> name , strlen ( q -> name ) ) ;\n if ( len < 1 ) {\n warnx ( \"dns_encode doesn't fit\" ) ;\n return ;\n }\n memcpy ( & ( fwq . addr ) , & ( q -> from ) , q -> fromlen ) ;\n fwq . addrlen = q -> fromlen ;\n fwq . id = q -> id ;\n fw_query_put ( & fwq ) ;\n newaddr = inet_addr ( \"127.0.0.1\" ) ;\n myaddr = ( struct sockaddr_in * ) & ( q -> from ) ;\n memcpy ( & ( myaddr -> sin_addr ) , & newaddr , sizeof ( in_addr_t ) ) ;\n myaddr -> sin_port = htons ( bind_port ) ;\n if ( debug >= 2 ) {\n fprintf ( stderr , \"TX: NS reply \\n\" ) ;\n }\n if ( sendto ( bind_fd , buf , len , 0 , ( struct sockaddr * ) & q -> from , q -> fromlen ) <= 0 ) {\n warn ( \"forward query error\" ) ;\n }\n }"}
{"idx": 20268, "target": 0, "func": "void hb_set_destroy ( hb_set_t * set ) {\n if ( ! hb_object_destroy ( set ) ) return ;\n set -> fini ( ) ;\n free ( set ) ;\n }"}
{"idx": 20269, "target": 0, "func": "static gboolean job_aborted ( CommonJob * job ) {\n return g_cancellable_is_cancelled ( job -> cancellable ) ;\n }"}
{"idx": 20270, "target": 0, "func": "static void do_vapic_enable ( void * data ) {\n VAPICROMState * s = data ;\n vapic_enable ( s , first_cpu ) ;\n }"}
{"idx": 20271, "target": 0, "func": "static void ctl_putadr ( const char * tag , u_int32 addr32 , sockaddr_u * addr ) {\n register char * cp ;\n register const char * cq ;\n char buffer [ 200 ] ;\n cp = buffer ;\n cq = tag ;\n while ( * cq != '\\0' ) * cp ++ = * cq ++ ;\n * cp ++ = '=' ;\n if ( NULL == addr ) cq = numtoa ( addr32 ) ;\n else cq = stoa ( addr ) ;\n INSIST ( ( cp - buffer ) < ( int ) sizeof ( buffer ) ) ;\n snprintf ( cp , sizeof ( buffer ) - ( cp - buffer ) , \"%s\" , cq ) ;\n cp += strlen ( cp ) ;\n ctl_putdata ( buffer , ( unsigned ) ( cp - buffer ) , 0 ) ;\n }"}
{"idx": 20272, "target": 1, "func": "static int dissect_h225_UnregRequestReason ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n # line 603 \"./asn1/h225/h225.cnf\" gint32 value ;\n h225_packet_info * h225_pi ;\n h225_pi = ( h225_packet_info * ) p_get_proto_data ( wmem_packet_scope ( ) , actx -> pinfo , proto_h225 , 0 ) ;\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_UnregRequestReason , UnregRequestReason_choice , & value ) ;\n if ( h225_pi != NULL ) {\n h225_pi -> reason = value ;\n }\n return offset ;\n }"}
{"idx": 20273, "target": 0, "func": "static uint32_t vmsvga_value_read ( void * opaque , uint32_t address ) {\n uint32_t caps ;\n struct vmsvga_state_s * s = opaque ;\n DisplaySurface * surface = qemu_console_surface ( s -> vga . con ) ;\n PixelFormat pf ;\n uint32_t ret ;\n switch ( s -> index ) {\n case SVGA_REG_ID : ret = s -> svgaid ;\n break ;\n case SVGA_REG_ENABLE : ret = s -> enable ;\n break ;\n case SVGA_REG_WIDTH : ret = s -> new_width ? s -> new_width : surface_width ( surface ) ;\n break ;\n case SVGA_REG_HEIGHT : ret = s -> new_height ? s -> new_height : surface_height ( surface ) ;\n break ;\n case SVGA_REG_MAX_WIDTH : ret = SVGA_MAX_WIDTH ;\n break ;\n case SVGA_REG_MAX_HEIGHT : ret = SVGA_MAX_HEIGHT ;\n break ;\n case SVGA_REG_DEPTH : ret = ( s -> new_depth == 32 ) ? 24 : s -> new_depth ;\n break ;\n case SVGA_REG_BITS_PER_PIXEL : case SVGA_REG_HOST_BITS_PER_PIXEL : ret = s -> new_depth ;\n break ;\n case SVGA_REG_PSEUDOCOLOR : ret = 0x0 ;\n break ;\n case SVGA_REG_RED_MASK : pf = qemu_default_pixelformat ( s -> new_depth ) ;\n ret = pf . rmask ;\n break ;\n case SVGA_REG_GREEN_MASK : pf = qemu_default_pixelformat ( s -> new_depth ) ;\n ret = pf . gmask ;\n break ;\n case SVGA_REG_BLUE_MASK : pf = qemu_default_pixelformat ( s -> new_depth ) ;\n ret = pf . bmask ;\n break ;\n case SVGA_REG_BYTES_PER_LINE : if ( s -> new_width ) {\n ret = ( s -> new_depth * s -> new_width ) / 8 ;\n }\n else {\n ret = surface_stride ( surface ) ;\n }\n break ;\n case SVGA_REG_FB_START : {\n struct pci_vmsvga_state_s * pci_vmsvga = container_of ( s , struct pci_vmsvga_state_s , chip ) ;\n ret = pci_get_bar_addr ( PCI_DEVICE ( pci_vmsvga ) , 1 ) ;\n break ;\n }\n case SVGA_REG_FB_OFFSET : ret = 0x0 ;\n break ;\n case SVGA_REG_VRAM_SIZE : ret = s -> vga . vram_size ;\n break ;\n case SVGA_REG_FB_SIZE : ret = s -> vga . vram_size ;\n break ;\n case SVGA_REG_CAPABILITIES : caps = SVGA_CAP_NONE ;\n # ifdef HW_RECT_ACCEL caps |= SVGA_CAP_RECT_COPY ;\n # endif # ifdef HW_FILL_ACCEL caps |= SVGA_CAP_RECT_FILL ;\n # endif # ifdef HW_MOUSE_ACCEL if ( dpy_cursor_define_supported ( s -> vga . con ) ) {\n caps |= SVGA_CAP_CURSOR | SVGA_CAP_CURSOR_BYPASS_2 | SVGA_CAP_CURSOR_BYPASS ;\n }\n # endif ret = caps ;\n break ;\n case SVGA_REG_MEM_START : {\n struct pci_vmsvga_state_s * pci_vmsvga = container_of ( s , struct pci_vmsvga_state_s , chip ) ;\n ret = pci_get_bar_addr ( PCI_DEVICE ( pci_vmsvga ) , 2 ) ;\n break ;\n }\n case SVGA_REG_MEM_SIZE : ret = s -> fifo_size ;\n break ;\n case SVGA_REG_CONFIG_DONE : ret = s -> config ;\n break ;\n case SVGA_REG_SYNC : case SVGA_REG_BUSY : ret = s -> syncing ;\n break ;\n case SVGA_REG_GUEST_ID : ret = s -> guest ;\n break ;\n case SVGA_REG_CURSOR_ID : ret = s -> cursor . id ;\n break ;\n case SVGA_REG_CURSOR_X : ret = s -> cursor . x ;\n break ;\n case SVGA_REG_CURSOR_Y : ret = s -> cursor . y ;\n break ;\n case SVGA_REG_CURSOR_ON : ret = s -> cursor . on ;\n break ;\n case SVGA_REG_SCRATCH_SIZE : ret = s -> scratch_size ;\n break ;\n case SVGA_REG_MEM_REGS : case SVGA_REG_NUM_DISPLAYS : case SVGA_REG_PITCHLOCK : case SVGA_PALETTE_BASE ... SVGA_PALETTE_END : ret = 0 ;\n break ;\n default : if ( s -> index >= SVGA_SCRATCH_BASE && s -> index < SVGA_SCRATCH_BASE + s -> scratch_size ) {\n ret = s -> scratch [ s -> index - SVGA_SCRATCH_BASE ] ;\n break ;\n }\n printf ( \"%s: Bad register %02x\\n\" , __func__ , s -> index ) ;\n ret = 0 ;\n break ;\n }\n if ( s -> index >= SVGA_SCRATCH_BASE ) {\n trace_vmware_scratch_read ( s -> index , ret ) ;\n }\n else if ( s -> index >= SVGA_PALETTE_BASE ) {\n trace_vmware_palette_read ( s -> index , ret ) ;\n }\n else {\n trace_vmware_value_read ( s -> index , ret ) ;\n }\n return ret ;\n }"}
{"idx": 20274, "target": 0, "func": "static int dissect_h245_Clc_reason ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_Clc_reason , Clc_reason_choice , NULL ) ;\n return offset ;\n }"}
{"idx": 20275, "target": 0, "func": "static void sig_connect_failed ( SERVER_REC * server , gchar * msg ) {\n g_return_if_fail ( server != NULL ) ;\n if ( msg == NULL ) {\n printformat ( server , NULL , MSGLEVEL_CLIENTNOTICE , TXT_CONNECTION_LOST , server -> connrec -> address ) ;\n }\n else {\n printformat ( server , NULL , MSGLEVEL_CLIENTERROR , TXT_CANT_CONNECT , server -> connrec -> address , server -> connrec -> port , msg ) ;\n }\n }"}
{"idx": 20276, "target": 0, "func": "void handle_connections_sockets ( ) {\n my_socket UNINIT_VAR ( sock ) , UNINIT_VAR ( new_sock ) ;\n uint error_count = 0 ;\n THD * thd ;\n struct sockaddr_storage cAddr ;\n int ip_flags __attribute__ ( ( unused ) ) = 0 ;\n int socket_flags __attribute__ ( ( unused ) ) = 0 ;\n int extra_ip_flags __attribute__ ( ( unused ) ) = 0 ;\n int flags = 0 , retval ;\n st_vio * vio_tmp ;\n # ifdef HAVE_POLL int socket_count = 0 ;\n struct pollfd fds [ 3 ] ;\n # define setup_fds ( X ) fds [ socket_count ] . fd = X ;\n fds [ socket_count ] . events = POLLIN ;\n socket_count ++ # else fd_set readFDs , clientFDs ;\n uint max_used_connection = ( uint ) max ( max ( base_ip_sock , unix_sock ) , extra_ip_sock ) + 1 ;\n # define setup_fds ( X ) FD_SET ( X , & clientFDs ) FD_ZERO ( & clientFDs ) ;\n # endif DBUG_ENTER ( \"handle_connections_sockets\" ) ;\n if ( base_ip_sock != INVALID_SOCKET ) {\n setup_fds ( base_ip_sock ) ;\n ip_flags = fcntl ( base_ip_sock , F_GETFL , 0 ) ;\n }\n if ( extra_ip_sock != INVALID_SOCKET ) {\n setup_fds ( extra_ip_sock ) ;\n extra_ip_flags = fcntl ( extra_ip_sock , F_GETFL , 0 ) ;\n }\n # ifdef HAVE_SYS_UN_H setup_fds ( unix_sock ) ;\n socket_flags = fcntl ( unix_sock , F_GETFL , 0 ) ;\n # endif DBUG_PRINT ( \"general\" , ( \"Waiting for connections.\" ) ) ;\n MAYBE_BROKEN_SYSCALL ;\n while ( ! abort_loop ) {\n # ifdef HAVE_POLL retval = poll ( fds , socket_count , - 1 ) ;\n # else readFDs = clientFDs ;\n retval = select ( ( int ) max_used_connection , & readFDs , 0 , 0 , 0 ) ;\n # endif if ( retval < 0 ) {\n if ( socket_errno != SOCKET_EINTR ) {\n if ( ! select_errors ++ && ! abort_loop ) sql_print_error ( \"mysqld: Got error %d from select\" , socket_errno ) ;\n }\n MAYBE_BROKEN_SYSCALL continue ;\n }\n if ( abort_loop ) {\n MAYBE_BROKEN_SYSCALL ;\n break ;\n }\n # ifdef HAVE_POLL for ( int i = 0 ;\n i < socket_count ;\n ++ i ) {\n if ( fds [ i ] . revents & POLLIN ) {\n sock = fds [ i ] . fd ;\n flags = fcntl ( sock , F_GETFL , 0 ) ;\n break ;\n }\n }\n # else if ( FD_ISSET ( base_ip_sock , & readFDs ) ) {\n sock = base_ip_sock ;\n flags = ip_flags ;\n }\n else if ( FD_ISSET ( extra_ip_sock , & readFDs ) ) {\n sock = extra_ip_sock ;\n flags = extra_ip_flags ;\n }\n else {\n sock = unix_sock ;\n flags = socket_flags ;\n }\n # endif # if ! defined ( NO_FCNTL_NONBLOCK ) if ( ! ( test_flags & TEST_BLOCKING ) ) {\n # if defined ( O_NONBLOCK ) fcntl ( sock , F_SETFL , flags | O_NONBLOCK ) ;\n # elif defined ( O_NDELAY ) fcntl ( sock , F_SETFL , flags | O_NDELAY ) ;\n # endif }\n # endif for ( uint retry = 0 ;\n retry < MAX_ACCEPT_RETRY ;\n retry ++ ) {\n size_socket length = sizeof ( struct sockaddr_storage ) ;\n new_sock = accept ( sock , ( struct sockaddr * ) ( & cAddr ) , & length ) ;\n if ( new_sock != INVALID_SOCKET || ( socket_errno != SOCKET_EINTR && socket_errno != SOCKET_EAGAIN ) ) break ;\n MAYBE_BROKEN_SYSCALL ;\n # if ! defined ( NO_FCNTL_NONBLOCK ) if ( ! ( test_flags & TEST_BLOCKING ) ) {\n if ( retry == MAX_ACCEPT_RETRY - 1 ) fcntl ( sock , F_SETFL , flags ) ;\n }\n # endif }\n # if ! defined ( NO_FCNTL_NONBLOCK ) if ( ! ( test_flags & TEST_BLOCKING ) ) fcntl ( sock , F_SETFL , flags ) ;\n # endif if ( new_sock == INVALID_SOCKET ) {\n if ( ( error_count ++ & 255 ) == 0 ) sql_perror ( \"Error in accept\" ) ;\n MAYBE_BROKEN_SYSCALL ;\n if ( socket_errno == SOCKET_ENFILE || socket_errno == SOCKET_EMFILE ) sleep ( 1 ) ;\n continue ;\n }\n # ifdef HAVE_LIBWRAP {\n if ( sock == base_ip_sock || sock == extra_ip_sock ) {\n struct request_info req ;\n signal ( SIGCHLD , SIG_DFL ) ;\n request_init ( & req , RQ_DAEMON , libwrapName , RQ_FILE , new_sock , NULL ) ;\n my_fromhost ( & req ) ;\n if ( ! my_hosts_access ( & req ) ) {\n syslog ( deny_severity , \"refused connect from %s\" , my_eval_client ( & req ) ) ;\n if ( req . sink ) ( ( void ( * ) ( int ) ) req . sink ) ( req . fd ) ;\n ( void ) mysql_socket_shutdown ( new_sock , SHUT_RDWR ) ;\n ( void ) closesocket ( new_sock ) ;\n continue ;\n }\n }\n }\n # endif {\n size_socket dummyLen ;\n struct sockaddr_storage dummy ;\n dummyLen = sizeof ( dummy ) ;\n if ( getsockname ( new_sock , ( struct sockaddr * ) & dummy , ( SOCKET_SIZE_TYPE * ) & dummyLen ) < 0 ) {\n sql_perror ( \"Error on new connection socket\" ) ;\n ( void ) mysql_socket_shutdown ( new_sock , SHUT_RDWR ) ;\n ( void ) closesocket ( new_sock ) ;\n continue ;\n }\n }\n if ( ! ( thd = new THD ) ) {\n ( void ) mysql_socket_shutdown ( new_sock , SHUT_RDWR ) ;\n ( void ) closesocket ( new_sock ) ;\n continue ;\n }\n if ( ! ( vio_tmp = vio_new ( new_sock , sock == unix_sock ? VIO_TYPE_SOCKET : VIO_TYPE_TCPIP , sock == unix_sock ? VIO_LOCALHOST : 0 ) ) || my_net_init ( & thd -> net , vio_tmp ) ) {\n if ( vio_tmp && thd -> net . vio != vio_tmp ) vio_delete ( vio_tmp ) ;\n else {\n ( void ) mysql_socket_shutdown ( new_sock , SHUT_RDWR ) ;\n ( void ) closesocket ( new_sock ) ;\n }\n delete thd ;\n continue ;\n }\n if ( sock == unix_sock ) thd -> security_ctx -> host = ( char * ) my_localhost ;\n if ( sock == extra_ip_sock ) {\n thd -> extra_port = 1 ;\n thd -> scheduler = extra_thread_scheduler ;\n }\n create_new_thread ( thd ) ;\n }\n DBUG_VOID_RETURN ;\n }"}
{"idx": 20277, "target": 0, "func": "TEST_F ( AutocompleteResultTest , SortAndCullEmptyDestinationURLs ) {\n TestData data [ ] = {\n {\n 1 , 1 , 500 , true }\n , {\n 0 , 1 , 1100 , true }\n , {\n 1 , 1 , 1000 , true }\n , {\n 0 , 1 , 1300 , true }\n , {\n 0 , 1 , 1200 , true }\n , }\n ;\n ACMatches matches ;\n PopulateAutocompleteMatches ( data , arraysize ( data ) , & matches ) ;\n matches [ 1 ] . destination_url = GURL ( ) ;\n matches [ 3 ] . destination_url = GURL ( ) ;\n matches [ 4 ] . destination_url = GURL ( ) ;\n AutocompleteInput input ( base : : string16 ( ) , base : : string16 : : npos , std : : string ( ) , GURL ( ) , OmniboxEventProto : : INVALID_SPEC , false , false , false , true , false , TestSchemeClassifier ( ) ) ;\n AutocompleteResult result ;\n result . AppendMatches ( input , matches ) ;\n result . SortAndCull ( input , template_url_service_ . get ( ) ) ;\n ASSERT_EQ ( 4U , result . size ( ) ) ;\n EXPECT_TRUE ( result . match_at ( 0 ) -> destination_url . is_empty ( ) ) ;\n EXPECT_EQ ( 1300 , result . match_at ( 0 ) -> relevance ) ;\n EXPECT_TRUE ( result . match_at ( 1 ) -> destination_url . is_empty ( ) ) ;\n EXPECT_EQ ( 1200 , result . match_at ( 1 ) -> relevance ) ;\n EXPECT_TRUE ( result . match_at ( 2 ) -> destination_url . is_empty ( ) ) ;\n EXPECT_EQ ( 1100 , result . match_at ( 2 ) -> relevance ) ;\n EXPECT_EQ ( \"http://b/\" , result . match_at ( 3 ) -> destination_url . spec ( ) ) ;\n EXPECT_EQ ( 1000 , result . match_at ( 3 ) -> relevance ) ;\n }"}
{"idx": 20278, "target": 0, "func": "static int total_adj_strong_thresh ( BLOCK_SIZE bs , int increase_denoising ) {\n return widths [ bs ] * heights [ bs ] * ( increase_denoising ? 3 : 2 ) ;\n }"}
{"idx": 20279, "target": 0, "func": "static void config_trap ( config_tree * ptree ) {\n addr_opts_node * curr_trap ;\n attr_val * curr_opt ;\n sockaddr_u addr_sock ;\n sockaddr_u peeraddr ;\n struct interface * localaddr ;\n struct addrinfo hints ;\n char port_text [ 8 ] ;\n settrap_parms * pstp ;\n u_short port ;\n int err_flag ;\n int rc ;\n AF ( & addr_sock ) = AF_UNSPEC ;\n curr_trap = HEAD_PFIFO ( ptree -> trap ) ;\n for ( ;\n curr_trap != NULL ;\n curr_trap = curr_trap -> link ) {\n err_flag = 0 ;\n port = 0 ;\n localaddr = NULL ;\n curr_opt = HEAD_PFIFO ( curr_trap -> options ) ;\n for ( ;\n curr_opt != NULL ;\n curr_opt = curr_opt -> link ) {\n if ( T_Port == curr_opt -> attr ) {\n if ( curr_opt -> value . i < 1 || curr_opt -> value . i > USHRT_MAX ) {\n msyslog ( LOG_ERR , \"invalid port number \" \"%d, trap ignored\" , curr_opt -> value . i ) ;\n err_flag = 1 ;\n }\n port = ( u_short ) curr_opt -> value . i ;\n }\n else if ( T_Interface == curr_opt -> attr ) {\n ZERO_SOCK ( & addr_sock ) ;\n if ( getnetnum ( curr_opt -> value . s , & addr_sock , 1 , t_UNK ) != 1 ) {\n err_flag = 1 ;\n break ;\n }\n localaddr = findinterface ( & addr_sock ) ;\n if ( NULL == localaddr ) {\n msyslog ( LOG_ERR , \"can't find interface with address %s\" , stoa ( & addr_sock ) ) ;\n err_flag = 1 ;\n }\n }\n }\n if ( ! err_flag ) {\n if ( ! port ) port = TRAPPORT ;\n ZERO_SOCK ( & peeraddr ) ;\n rc = getnetnum ( curr_trap -> addr -> address , & peeraddr , 1 , t_UNK ) ;\n if ( 1 != rc ) {\n # ifndef WORKER msyslog ( LOG_ERR , \"trap: unable to use IP address %s.\" , curr_trap -> addr -> address ) ;\n # else memset ( & hints , 0 , sizeof ( hints ) ) ;\n hints . ai_protocol = IPPROTO_UDP ;\n hints . ai_socktype = SOCK_DGRAM ;\n snprintf ( port_text , sizeof ( port_text ) , \"%u\" , port ) ;\n hints . ai_flags = Z_AI_NUMERICSERV ;\n pstp = emalloc_zero ( sizeof ( * pstp ) ) ;\n if ( localaddr != NULL ) {\n hints . ai_family = localaddr -> family ;\n pstp -> ifaddr_nonnull = 1 ;\n memcpy ( & pstp -> ifaddr , & localaddr -> sin , sizeof ( pstp -> ifaddr ) ) ;\n }\n rc = getaddrinfo_sometime ( curr_trap -> addr -> address , port_text , & hints , INITIAL_DNS_RETRY , & trap_name_resolved , pstp ) ;\n if ( ! rc ) msyslog ( LOG_ERR , \"config_trap: getaddrinfo_sometime(%s,%s): %m\" , curr_trap -> addr -> address , port_text ) ;\n # endif continue ;\n }\n SET_PORT ( & peeraddr , port ) ;\n if ( NULL == localaddr ) localaddr = ANY_INTERFACE_CHOOSE ( & peeraddr ) ;\n else AF ( & peeraddr ) = AF ( & addr_sock ) ;\n if ( ! ctlsettrap ( & peeraddr , localaddr , 0 , NTP_VERSION ) ) msyslog ( LOG_ERR , \"set trap %s -> %s failed.\" , latoa ( localaddr ) , stoa ( & peeraddr ) ) ;\n }\n }\n }"}
{"idx": 20280, "target": 1, "func": "static void test_rfc822_parse_quoted_string ( void ) {\n const struct {\n const char * input , * output ;\n int ret ;\n }\n tests [ ] = {\n {\n \"\\\"\" , \"\" , - 1 }\n , {\n \"\\\"\\\"\" , \"\" , 0 }\n , {\n \"\\\"foo\\\"\" , \"foo\" , 0 }\n , {\n \"\\\"\\\"foo\" , \"\" , 1 }\n , {\n \"\\\"\\\"\\\"\" , \"\" , 1 }\n , {\n \"\\\"\\\\\\\"\\\"\" , \"\\\"\" , 0 }\n , {\n \"\\\"\\\\\\\\\\\"\" , \"\\\\\" , 0 }\n , {\n \"\\\"\\\\\\\\foo\\\\\\\\foo\\\\\\\\\\\"\" , \"\\\\foo\\\\foo\\\\\" , 0 }\n }\n ;\n struct rfc822_parser_context parser ;\n string_t * str = t_str_new ( 64 ) ;\n unsigned int i = 0 ;\n test_begin ( \"rfc822 parse quoted string\" ) ;\n for ( i = 0 ;\n i < N_ELEMENTS ( tests ) ;\n i ++ ) {\n rfc822_parser_init ( & parser , ( const void * ) tests [ i ] . input , strlen ( tests [ i ] . input ) , NULL ) ;\n test_assert_idx ( rfc822_parse_quoted_string ( & parser , str ) == tests [ i ] . ret , i ) ;\n test_assert_idx ( tests [ i ] . ret < 0 || strcmp ( tests [ i ] . output , str_c ( str ) ) == 0 , i ) ;\n str_truncate ( str , 0 ) ;\n }\n test_end ( ) ;\n }"}
{"idx": 20281, "target": 0, "func": "static int find_fp_qindex ( vpx_bit_depth_t bit_depth ) {\n int i ;\n for ( i = 0 ;\n i < QINDEX_RANGE ;\n ++ i ) if ( vp9_convert_qindex_to_q ( i , bit_depth ) >= FIRST_PASS_Q ) break ;\n if ( i == QINDEX_RANGE ) i -- ;\n return i ;\n }"}
{"idx": 20282, "target": 0, "func": "static int dissect_pvfs2_create_request ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) {\n offset = dissect_pvfs_fs_id ( tvb , tree , offset ) ;\n offset = dissect_pvfs2_ds_type ( tvb , tree , offset , NULL ) ;\n offset += 4 ;\n offset = dissect_pvfs_handle_extent_array ( tvb , tree , offset , pinfo ) ;\n return offset ;\n }"}
{"idx": 20283, "target": 0, "func": "static void purple_chat_msg ( struct groupchat * gc , char * message , int flags ) {\n PurpleConversation * pc = gc -> data ;\n purple_conv_chat_send ( purple_conversation_get_chat_data ( pc ) , message ) ;\n }"}
{"idx": 20284, "target": 0, "func": "int test_gf2m_mod_mul ( BIO * bp , BN_CTX * ctx ) {\n BIGNUM * a , * b [ 2 ] , * c , * d , * e , * f , * g , * h ;\n int i , j , ret = 0 ;\n int p0 [ ] = {\n 163 , 7 , 6 , 3 , 0 , - 1 }\n ;\n int p1 [ ] = {\n 193 , 15 , 0 , - 1 }\n ;\n a = BN_new ( ) ;\n b [ 0 ] = BN_new ( ) ;\n b [ 1 ] = BN_new ( ) ;\n c = BN_new ( ) ;\n d = BN_new ( ) ;\n e = BN_new ( ) ;\n f = BN_new ( ) ;\n g = BN_new ( ) ;\n h = BN_new ( ) ;\n BN_GF2m_arr2poly ( p0 , b [ 0 ] ) ;\n BN_GF2m_arr2poly ( p1 , b [ 1 ] ) ;\n for ( i = 0 ;\n i < num0 ;\n i ++ ) {\n BN_bntest_rand ( a , 1024 , 0 , 0 ) ;\n BN_bntest_rand ( c , 1024 , 0 , 0 ) ;\n BN_bntest_rand ( d , 1024 , 0 , 0 ) ;\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n BN_GF2m_mod_mul ( e , a , c , b [ j ] , ctx ) ;\n # if 0 if ( bp != NULL ) {\n if ( ! results ) {\n BN_print ( bp , a ) ;\n BIO_puts ( bp , \" * \" ) ;\n BN_print ( bp , c ) ;\n BIO_puts ( bp , \" % \" ) ;\n BN_print ( bp , b [ j ] ) ;\n BIO_puts ( bp , \" - \" ) ;\n BN_print ( bp , e ) ;\n BIO_puts ( bp , \"\\n\" ) ;\n }\n }\n # endif BN_GF2m_add ( f , a , d ) ;\n BN_GF2m_mod_mul ( g , f , c , b [ j ] , ctx ) ;\n BN_GF2m_mod_mul ( h , d , c , b [ j ] , ctx ) ;\n BN_GF2m_add ( f , e , g ) ;\n BN_GF2m_add ( f , f , h ) ;\n if ( ! BN_is_zero ( f ) ) {\n fprintf ( stderr , \"GF(2^m) modular multiplication test failed!\\n\" ) ;\n goto err ;\n }\n }\n }\n ret = 1 ;\n err : BN_free ( a ) ;\n BN_free ( b [ 0 ] ) ;\n BN_free ( b [ 1 ] ) ;\n BN_free ( c ) ;\n BN_free ( d ) ;\n BN_free ( e ) ;\n BN_free ( f ) ;\n BN_free ( g ) ;\n BN_free ( h ) ;\n return ret ;\n }"}
{"idx": 20285, "target": 0, "func": "static int execute_decode_slices ( H264Context * h , int context_count ) {\n AVCodecContext * const avctx = h -> avctx ;\n H264Context * hx ;\n int i ;\n if ( h -> avctx -> hwaccel || h -> avctx -> codec -> capabilities & CODEC_CAP_HWACCEL_VDPAU ) return 0 ;\n if ( context_count == 1 ) {\n return decode_slice ( avctx , & h ) ;\n }\n else {\n av_assert0 ( context_count > 0 ) ;\n for ( i = 1 ;\n i < context_count ;\n i ++ ) {\n hx = h -> thread_context [ i ] ;\n if ( CONFIG_ERROR_RESILIENCE ) {\n hx -> er . error_count = 0 ;\n }\n hx -> x264_build = h -> x264_build ;\n }\n avctx -> execute ( avctx , decode_slice , h -> thread_context , NULL , context_count , sizeof ( void * ) ) ;\n hx = h -> thread_context [ context_count - 1 ] ;\n h -> mb_x = hx -> mb_x ;\n h -> mb_y = hx -> mb_y ;\n h -> droppable = hx -> droppable ;\n h -> picture_structure = hx -> picture_structure ;\n if ( CONFIG_ERROR_RESILIENCE ) {\n for ( i = 1 ;\n i < context_count ;\n i ++ ) h -> er . error_count += h -> thread_context [ i ] -> er . error_count ;\n }\n }\n return 0 ;\n }"}
{"idx": 20286, "target": 0, "func": "static void test_prepare_syntax ( ) {\n MYSQL_STMT * stmt ;\n int rc ;\n char query [ MAX_TEST_QUERY_LENGTH ] ;\n myheader ( \"test_prepare_syntax\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_prepare_syntax\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_prepare_syntax(\" \"id int, name varchar(50), extra int)\" ) ;\n myquery ( rc ) ;\n strmov ( query , \"INSERT INTO test_prepare_syntax VALUES(?\" ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt_r ( stmt ) ;\n strmov ( query , \"SELECT id, name FROM test_prepare_syntax WHERE id=? AND WHERE\" ) ;\n stmt = mysql_simple_prepare ( mysql , query ) ;\n check_stmt_r ( stmt ) ;\n rc = mysql_commit ( mysql ) ;\n myquery ( rc ) ;\n }"}
{"idx": 20287, "target": 0, "func": "static void message ( BIO * out , char * m ) {\n fprintf ( stderr , \"test %s\\n\" , m ) ;\n BIO_puts ( out , \"print \\\"test \" ) ;\n BIO_puts ( out , m ) ;\n BIO_puts ( out , \"\\\\n\\\"\\n\" ) ;\n }"}
{"idx": 20288, "target": 0, "func": "static PyObject * string_repeat ( register PyStringObject * a , register Py_ssize_t n ) {\n register Py_ssize_t i ;\n register Py_ssize_t j ;\n register Py_ssize_t size ;\n register PyStringObject * op ;\n size_t nbytes ;\n if ( n < 0 ) n = 0 ;\n if ( n && Py_SIZE ( a ) > PY_SSIZE_T_MAX / n ) {\n PyErr_SetString ( PyExc_OverflowError , \"repeated string is too long\" ) ;\n return NULL ;\n }\n size = Py_SIZE ( a ) * n ;\n if ( size == Py_SIZE ( a ) && PyString_CheckExact ( a ) ) {\n Py_INCREF ( a ) ;\n return ( PyObject * ) a ;\n }\n nbytes = ( size_t ) size ;\n if ( nbytes + PyStringObject_SIZE <= nbytes ) {\n PyErr_SetString ( PyExc_OverflowError , \"repeated string is too long\" ) ;\n return NULL ;\n }\n op = ( PyStringObject * ) PyObject_MALLOC ( PyStringObject_SIZE + nbytes ) ;\n if ( op == NULL ) return PyErr_NoMemory ( ) ;\n ( void ) PyObject_INIT_VAR ( op , & PyString_Type , size ) ;\n op -> ob_shash = - 1 ;\n op -> ob_sstate = SSTATE_NOT_INTERNED ;\n op -> ob_sval [ size ] = '\\0' ;\n if ( Py_SIZE ( a ) == 1 && n > 0 ) {\n memset ( op -> ob_sval , a -> ob_sval [ 0 ] , n ) ;\n return ( PyObject * ) op ;\n }\n i = 0 ;\n if ( i < size ) {\n Py_MEMCPY ( op -> ob_sval , a -> ob_sval , Py_SIZE ( a ) ) ;\n i = Py_SIZE ( a ) ;\n }\n while ( i < size ) {\n j = ( i <= size - i ) ? i : size - i ;\n Py_MEMCPY ( op -> ob_sval + i , op -> ob_sval , j ) ;\n i += j ;\n }\n return ( PyObject * ) op ;\n }"}
{"idx": 20289, "target": 0, "func": "static debugCBContext * debugCB_clone ( debugCBContext * ctx ) {\n debugCBContext * newCtx ;\n newCtx = malloc ( sizeof ( debugCBContext ) ) ;\n newCtx -> serial = debugCB_nextSerial ( ) ;\n newCtx -> magic = 0xC0FFEE ;\n newCtx -> subCallback = ctx -> subCallback ;\n newCtx -> subContext = ctx -> subContext ;\n # if DEBUG_TMI printf ( \"debugCB_clone: %p:%d -> new context %p:%d\\n\" , ctx , ctx -> serial , newCtx , newCtx -> serial ) ;\n # endif return newCtx ;\n }"}
{"idx": 20290, "target": 0, "func": "static Datum ExecEvalFieldSelect ( FieldSelectState * fstate , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {\n FieldSelect * fselect = ( FieldSelect * ) fstate -> xprstate . expr ;\n AttrNumber fieldnum = fselect -> fieldnum ;\n Datum result ;\n Datum tupDatum ;\n HeapTupleHeader tuple ;\n Oid tupType ;\n int32 tupTypmod ;\n TupleDesc tupDesc ;\n Form_pg_attribute attr ;\n HeapTupleData tmptup ;\n tupDatum = ExecEvalExpr ( fstate -> arg , econtext , isNull , isDone ) ;\n if ( * isNull ) return tupDatum ;\n tuple = DatumGetHeapTupleHeader ( tupDatum ) ;\n tupType = HeapTupleHeaderGetTypeId ( tuple ) ;\n tupTypmod = HeapTupleHeaderGetTypMod ( tuple ) ;\n tupDesc = get_cached_rowtype ( tupType , tupTypmod , & fstate -> argdesc , econtext ) ;\n if ( fieldnum <= 0 ) elog ( ERROR , \"unsupported reference to system column %d in FieldSelect\" , fieldnum ) ;\n if ( fieldnum > tupDesc -> natts ) elog ( ERROR , \"attribute number %d exceeds number of columns %d\" , fieldnum , tupDesc -> natts ) ;\n attr = tupDesc -> attrs [ fieldnum - 1 ] ;\n if ( attr -> attisdropped ) {\n * isNull = true ;\n return ( Datum ) 0 ;\n }\n if ( fselect -> resulttype != attr -> atttypid ) ereport ( ERROR , ( errcode ( ERRCODE_DATATYPE_MISMATCH ) , errmsg ( \"attribute %d has wrong type\" , fieldnum ) , errdetail ( \"Table has type %s, but query expects %s.\" , format_type_be ( attr -> atttypid ) , format_type_be ( fselect -> resulttype ) ) ) ) ;\n tmptup . t_len = HeapTupleHeaderGetDatumLength ( tuple ) ;\n tmptup . t_data = tuple ;\n result = heap_getattr ( & tmptup , fieldnum , tupDesc , isNull ) ;\n return result ;\n }"}
{"idx": 20291, "target": 0, "func": "static void _pack_alloc_list_del ( void * x ) {\n resource_allocation_response_msg_t * job_info_resp_msg ;\n job_info_resp_msg = ( resource_allocation_response_msg_t * ) x ;\n job_info_resp_msg -> working_cluster_rec = NULL ;\n slurm_free_resource_allocation_response_msg_members ( job_info_resp_msg ) ;\n xfree ( job_info_resp_msg ) ;\n }"}
{"idx": 20292, "target": 0, "func": "static void DecoderPlayAudio ( decoder_t * p_dec , block_t * p_audio , int * pi_played_sum , int * pi_lost_sum ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n audio_output_t * p_aout = p_owner -> p_aout ;\n if ( p_audio && p_audio -> i_pts <= VLC_TS_INVALID ) {\n msg_Warn ( p_dec , \"non-dated audio buffer received\" ) ;\n * pi_lost_sum += 1 ;\n block_Release ( p_audio ) ;\n return ;\n }\n vlc_mutex_lock ( & p_owner -> lock ) ;\n if ( p_audio && p_owner -> b_waiting ) {\n p_owner -> b_has_data = true ;\n vlc_cond_signal ( & p_owner -> wait_acknowledge ) ;\n }\n for ( ;\n ;\n ) {\n bool b_paused ;\n bool b_reject = DecoderWaitUnblock ( p_dec ) ;\n b_paused = p_owner -> b_paused ;\n if ( ! p_audio ) break ;\n int i_rate = INPUT_RATE_DEFAULT ;\n DecoderFixTs ( p_dec , & p_audio -> i_pts , NULL , & p_audio -> i_length , & i_rate , AOUT_MAX_ADVANCE_TIME ) ;\n if ( p_audio -> i_pts <= VLC_TS_INVALID || i_rate < INPUT_RATE_DEFAULT / AOUT_MAX_INPUT_RATE || i_rate > INPUT_RATE_DEFAULT * AOUT_MAX_INPUT_RATE ) b_reject = true ;\n DecoderWaitDate ( p_dec , & b_reject , p_audio -> i_pts - AOUT_MAX_PREPARE_TIME ) ;\n if ( unlikely ( p_owner -> b_paused != b_paused ) ) continue ;\n if ( p_aout == NULL ) b_reject = true ;\n if ( ! b_reject ) {\n assert ( ! p_owner -> b_paused ) ;\n if ( ! aout_DecPlay ( p_aout , p_audio , i_rate ) ) * pi_played_sum += 1 ;\n * pi_lost_sum += aout_DecGetResetLost ( p_aout ) ;\n }\n else {\n msg_Dbg ( p_dec , \"discarded audio buffer\" ) ;\n * pi_lost_sum += 1 ;\n block_Release ( p_audio ) ;\n }\n break ;\n }\n vlc_mutex_unlock ( & p_owner -> lock ) ;\n }"}
{"idx": 20293, "target": 1, "func": "static void _LMBCSOpen ## n ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err ) \\ {\n _LMBCSOpenWorker ( _this , pArgs , err , n ) ;\n }\n static void _LMBCSOpenWorker ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err , ulmbcs_byte_t OptGroup ) {\n UConverterDataLMBCS * extraInfo = _this -> extraInfo = ( UConverterDataLMBCS * ) uprv_malloc ( sizeof ( UConverterDataLMBCS ) ) ;\n if ( extraInfo != NULL ) {\n UConverterNamePieces stackPieces ;\n UConverterLoadArgs stackArgs = {\n ( int32_t ) sizeof ( UConverterLoadArgs ) }\n ;\n ulmbcs_byte_t i ;\n uprv_memset ( extraInfo , 0 , sizeof ( UConverterDataLMBCS ) ) ;\n stackArgs . onlyTestIsLoadable = pArgs -> onlyTestIsLoadable ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST && U_SUCCESS ( * err ) ;\n i ++ ) {\n if ( OptGroupByteToCPName [ i ] != NULL ) {\n extraInfo -> OptGrpConverter [ i ] = ucnv_loadSharedData ( OptGroupByteToCPName [ i ] , & stackPieces , & stackArgs , err ) ;\n }\n }\n if ( U_FAILURE ( * err ) || pArgs -> onlyTestIsLoadable ) {\n _LMBCSClose ( _this ) ;\n return ;\n }\n extraInfo -> OptGroup = OptGroup ;\n extraInfo -> localeConverterIndex = FindLMBCSLocale ( pArgs -> locale ) ;\n }\n else {\n * err = U_MEMORY_ALLOCATION_ERROR ;\n }\n }\n static void _LMBCSClose ( UConverter * _this ) {\n if ( _this -> extraInfo != NULL ) {\n ulmbcs_byte_t Ix ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) _this -> extraInfo ;\n for ( Ix = 0 ;\n Ix <= ULMBCS_GRP_LAST ;\n Ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ Ix ] != NULL ) ucnv_unloadSharedDataIfReady ( extraInfo -> OptGrpConverter [ Ix ] ) ;\n }\n if ( ! _this -> isExtraLocal ) {\n uprv_free ( _this -> extraInfo ) ;\n _this -> extraInfo = NULL ;\n }\n }\n }\n typedef struct LMBCSClone {\n UConverter cnv ;\n UConverterDataLMBCS lmbcs ;\n }\n LMBCSClone ;\n static UConverter * _LMBCSSafeClone ( const UConverter * cnv , void * stackBuffer , int32_t * pBufferSize , UErrorCode * status ) {\n LMBCSClone * newLMBCS ;\n UConverterDataLMBCS * extraInfo ;\n int32_t i ;\n if ( * pBufferSize <= 0 ) {\n * pBufferSize = ( int32_t ) sizeof ( LMBCSClone ) ;\n return NULL ;\n }\n extraInfo = ( UConverterDataLMBCS * ) cnv -> extraInfo ;\n newLMBCS = ( LMBCSClone * ) stackBuffer ;\n uprv_memcpy ( & newLMBCS -> lmbcs , extraInfo , sizeof ( UConverterDataLMBCS ) ) ;\n for ( i = 0 ;\n i <= ULMBCS_GRP_LAST ;\n ++ i ) {\n if ( extraInfo -> OptGrpConverter [ i ] != NULL ) {\n ucnv_incrementRefCount ( extraInfo -> OptGrpConverter [ i ] ) ;\n }\n }\n newLMBCS -> cnv . extraInfo = & newLMBCS -> lmbcs ;\n newLMBCS -> cnv . isExtraLocal = TRUE ;\n return & newLMBCS -> cnv ;\n }\n static size_t LMBCSConversionWorker ( UConverterDataLMBCS * extraInfo , ulmbcs_byte_t group , ulmbcs_byte_t * pStartLMBCS , UChar * pUniChar , ulmbcs_byte_t * lastConverterIndex , UBool * groups_tried ) {\n ulmbcs_byte_t * pLMBCS = pStartLMBCS ;\n UConverterSharedData * xcnv = extraInfo -> OptGrpConverter [ group ] ;\n int bytesConverted ;\n uint32_t value ;\n ulmbcs_byte_t firstByte ;\n U_ASSERT ( xcnv ) ;\n U_ASSERT ( group < ULMBCS_GRP_UNICODE ) ;\n bytesConverted = ucnv_MBCSFromUChar32 ( xcnv , * pUniChar , & value , FALSE ) ;\n if ( bytesConverted > 0 ) {\n firstByte = ( ulmbcs_byte_t ) ( value >> ( ( bytesConverted - 1 ) * 8 ) ) ;\n }\n else {\n groups_tried [ group ] = TRUE ;\n return 0 ;\n }\n * lastConverterIndex = group ;\n U_ASSERT ( ( firstByte <= ULMBCS_C0END ) || ( firstByte >= ULMBCS_C1START ) || ( group == ULMBCS_GRP_EXCEPT ) ) ;\n if ( group != ULMBCS_GRP_EXCEPT && extraInfo -> OptGroup != group ) {\n * pLMBCS ++ = group ;\n if ( bytesConverted == 1 && group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n * pLMBCS ++ = group ;\n }\n }\n if ( bytesConverted == 1 && firstByte < 0x20 ) return 0 ;\n switch ( bytesConverted ) {\n case 4 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 24 ) ;\n U_FALLTHROUGH ;\n case 3 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 16 ) ;\n U_FALLTHROUGH ;\n case 2 : * pLMBCS ++ = ( ulmbcs_byte_t ) ( value >> 8 ) ;\n U_FALLTHROUGH ;\n case 1 : * pLMBCS ++ = ( ulmbcs_byte_t ) value ;\n U_FALLTHROUGH ;\n default : break ;\n }\n return ( pLMBCS - pStartLMBCS ) ;\n }\n static size_t LMBCSConvertUni ( ulmbcs_byte_t * pLMBCS , UChar uniChar ) {\n uint8_t LowCh = ( uint8_t ) ( uniChar & 0x00FF ) ;\n uint8_t HighCh = ( uint8_t ) ( uniChar >> 8 ) ;\n * pLMBCS ++ = ULMBCS_GRP_UNICODE ;\n if ( LowCh == 0 ) {\n * pLMBCS ++ = ULMBCS_UNICOMPATZERO ;\n * pLMBCS ++ = HighCh ;\n }\n else {\n * pLMBCS ++ = HighCh ;\n * pLMBCS ++ = LowCh ;\n }\n return ULMBCS_UNICODE_SIZE ;\n }\n static void _LMBCSFromUnicode ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {\n ulmbcs_byte_t lastConverterIndex = 0 ;\n UChar uniChar ;\n ulmbcs_byte_t LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n ulmbcs_byte_t * pLMBCS ;\n int32_t bytes_written ;\n UBool groups_tried [ ULMBCS_GRP_LAST + 1 ] ;\n UConverterDataLMBCS * extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n int sourceIndex = 0 ;\n ulmbcs_byte_t OldConverterIndex = 0 ;\n while ( args -> source < args -> sourceLimit && ! U_FAILURE ( * err ) ) {\n OldConverterIndex = extraInfo -> localeConverterIndex ;\n if ( args -> target >= args -> targetLimit ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n break ;\n }\n uniChar = * ( args -> source ) ;\n bytes_written = 0 ;\n pLMBCS = LMBCS ;\n if ( ( uniChar >= 0x80 ) && ( uniChar <= 0xff ) && ( uniChar != 0xB1 ) && ( uniChar != 0xD7 ) && ( uniChar != 0xF7 ) && ( uniChar != 0xB0 ) && ( uniChar != 0xB4 ) && ( uniChar != 0xB6 ) && ( uniChar != 0xA7 ) && ( uniChar != 0xA8 ) ) {\n extraInfo -> localeConverterIndex = ULMBCS_GRP_L1 ;\n }\n if ( ( ( uniChar > ULMBCS_C0END ) && ( uniChar < ULMBCS_C1START ) ) || uniChar == 0 || uniChar == ULMBCS_HT || uniChar == ULMBCS_CR || uniChar == ULMBCS_LF || uniChar == ULMBCS_123SYSTEMRANGE ) {\n * pLMBCS ++ = ( ulmbcs_byte_t ) uniChar ;\n bytes_written = 1 ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t group = FindLMBCSUniRange ( uniChar ) ;\n if ( group == ULMBCS_GRP_UNICODE ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group == ULMBCS_GRP_CTRL ) {\n if ( uniChar <= ULMBCS_C0END ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( ULMBCS_CTRLOFFSET + uniChar ) ;\n }\n else if ( uniChar >= ULMBCS_C1START && uniChar <= ULMBCS_C1START + ULMBCS_CTRLOFFSET ) {\n * pLMBCS ++ = ULMBCS_GRP_CTRL ;\n * pLMBCS ++ = ( ulmbcs_byte_t ) ( uniChar & 0x00FF ) ;\n }\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n else if ( group < ULMBCS_GRP_UNICODE ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , group , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n uprv_memset ( groups_tried , 0 , sizeof ( groups_tried ) ) ;\n if ( ( extraInfo -> OptGroup != 1 ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> OptGroup ) ) ) {\n if ( extraInfo -> localeConverterIndex < ULMBCS_DOUBLEOPTGROUP_START ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_L1 , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n else {\n bytes_written = LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && ( extraInfo -> localeConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , extraInfo -> localeConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , extraInfo -> localeConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written && ( lastConverterIndex ) && ( ULMBCS_AMBIGUOUS_MATCH ( group , lastConverterIndex ) ) ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , lastConverterIndex , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n if ( ! bytes_written ) {\n ulmbcs_byte_t grp_start ;\n ulmbcs_byte_t grp_end ;\n ulmbcs_byte_t grp_ix ;\n grp_start = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_DOUBLEOPTGROUP_START : ULMBCS_GRP_L1 ) ;\n grp_end = ( ulmbcs_byte_t ) ( ( group == ULMBCS_AMBIGUOUS_MBCS ) ? ULMBCS_GRP_LAST : ULMBCS_GRP_TH ) ;\n if ( group == ULMBCS_AMBIGUOUS_ALL ) {\n grp_start = ULMBCS_GRP_L1 ;\n grp_end = ULMBCS_GRP_LAST ;\n }\n for ( grp_ix = grp_start ;\n grp_ix <= grp_end && ! bytes_written ;\n grp_ix ++ ) {\n if ( extraInfo -> OptGrpConverter [ grp_ix ] && ! groups_tried [ grp_ix ] ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , grp_ix , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written && grp_start == ULMBCS_GRP_L1 ) {\n bytes_written = ( int32_t ) LMBCSConversionWorker ( extraInfo , ULMBCS_GRP_EXCEPT , pLMBCS , & uniChar , & lastConverterIndex , groups_tried ) ;\n }\n }\n if ( ! bytes_written ) {\n pLMBCS += LMBCSConvertUni ( pLMBCS , uniChar ) ;\n bytes_written = ( int32_t ) ( pLMBCS - LMBCS ) ;\n }\n }\n }\n args -> source ++ ;\n pLMBCS = LMBCS ;\n while ( args -> target < args -> targetLimit && bytes_written -- ) {\n * ( args -> target ) ++ = * pLMBCS ++ ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = sourceIndex ;\n }\n }\n sourceIndex ++ ;\n if ( bytes_written > 0 ) {\n uint8_t * pErrorBuffer = args -> converter -> charErrorBuffer ;\n * err = U_BUFFER_OVERFLOW_ERROR ;\n args -> converter -> charErrorBufferLength = ( int8_t ) bytes_written ;\n while ( bytes_written -- ) {\n * pErrorBuffer ++ = * pLMBCS ++ ;\n }\n }\n extraInfo -> localeConverterIndex = OldConverterIndex ;\n }\n }\n static UChar GetUniFromLMBCSUni ( char const * * ppLMBCSin ) {\n uint8_t HighCh = * ( * ppLMBCSin ) ++ ;\n uint8_t LowCh = * ( * ppLMBCSin ) ++ ;\n if ( HighCh == ULMBCS_UNICOMPATZERO ) {\n HighCh = LowCh ;\n LowCh = 0 ;\n }\n return ( UChar ) ( ( HighCh << 8 ) | LowCh ) ;\n }\n # define CHECK_SOURCE_LIMIT ( index ) if ( args -> source + index > args -> sourceLimit ) {\n * err = U_TRUNCATED_CHAR_FOUND ;\n args -> source = args -> sourceLimit ;\n return 0xffff ;\n }\n static UChar32 _LMBCSGetNextUCharWorker ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n UChar32 uniChar = 0 ;\n ulmbcs_byte_t CurByte ;\n if ( args -> source >= args -> sourceLimit ) {\n * err = U_ILLEGAL_ARGUMENT_ERROR ;\n return 0xffff ;\n }\n CurByte = * ( ( ulmbcs_byte_t * ) ( args -> source ++ ) ) ;\n if ( ( ( CurByte > ULMBCS_C0END ) && ( CurByte < ULMBCS_C1START ) ) || ( CurByte == 0 ) || CurByte == ULMBCS_HT || CurByte == ULMBCS_CR || CurByte == ULMBCS_LF || CurByte == ULMBCS_123SYSTEMRANGE ) {\n uniChar = CurByte ;\n }\n else {\n UConverterDataLMBCS * extraInfo ;\n ulmbcs_byte_t group ;\n UConverterSharedData * cnv ;\n if ( CurByte == ULMBCS_GRP_CTRL ) {\n ulmbcs_byte_t C0C1byte ;\n CHECK_SOURCE_LIMIT ( 1 ) ;\n C0C1byte = * ( args -> source ) ++ ;\n uniChar = ( C0C1byte < ULMBCS_C1START ) ? C0C1byte - ULMBCS_CTRLOFFSET : C0C1byte ;\n }\n else if ( CurByte == ULMBCS_GRP_UNICODE ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n return GetUniFromLMBCSUni ( & ( args -> source ) ) ;\n }\n else if ( CurByte <= ULMBCS_CTRLOFFSET ) {\n group = CurByte ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n if ( group > ULMBCS_GRP_LAST || ( cnv = extraInfo -> OptGrpConverter [ group ] ) == NULL ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n CHECK_SOURCE_LIMIT ( 2 ) ;\n if ( * args -> source == group ) {\n ++ args -> source ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 1 , FALSE ) ;\n ++ args -> source ;\n }\n else {\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source , 2 , FALSE ) ;\n args -> source += 2 ;\n }\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n CurByte = * ( args -> source ) ++ ;\n if ( CurByte >= ULMBCS_C1START ) {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n else {\n char bytes [ 2 ] ;\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n cnv = extraInfo -> OptGrpConverter [ ULMBCS_GRP_EXCEPT ] ;\n bytes [ 0 ] = group ;\n bytes [ 1 ] = CurByte ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , bytes , 2 , FALSE ) ;\n }\n }\n }\n else if ( CurByte >= ULMBCS_C1START ) {\n extraInfo = ( UConverterDataLMBCS * ) args -> converter -> extraInfo ;\n group = extraInfo -> OptGroup ;\n cnv = extraInfo -> OptGrpConverter [ group ] ;\n if ( group >= ULMBCS_DOUBLEOPTGROUP_START ) {\n if ( ! ucnv_MBCSIsLeadByte ( cnv , CurByte ) ) {\n CHECK_SOURCE_LIMIT ( 0 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 1 , FALSE ) ;\n }\n else {\n CHECK_SOURCE_LIMIT ( 1 ) ;\n uniChar = ucnv_MBCSSimpleGetNextUChar ( cnv , args -> source - 1 , 2 , FALSE ) ;\n ++ args -> source ;\n }\n }\n else {\n uniChar = _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP ( cnv , CurByte ) ;\n }\n }\n }\n return uniChar ;\n }\n static void _LMBCSToUnicodeWithOffsets ( UConverterToUnicodeArgs * args , UErrorCode * err ) {\n char LMBCS [ ULMBCS_CHARSIZE_MAX ] ;\n UChar uniChar ;\n const char * saveSource ;\n const char * pStartLMBCS = args -> source ;\n const char * errSource = NULL ;\n int8_t savebytes = 0 ;\n while ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit > args -> target ) {\n saveSource = args -> source ;\n if ( args -> converter -> toULength ) {\n const char * saveSourceLimit ;\n size_t size_old = args -> converter -> toULength ;\n size_t size_new_maybe_1 = sizeof ( LMBCS ) - size_old ;\n size_t size_new_maybe_2 = args -> sourceLimit - args -> source ;\n size_t size_new = ( size_new_maybe_1 < size_new_maybe_2 ) ? size_new_maybe_1 : size_new_maybe_2 ;\n uprv_memcpy ( LMBCS , args -> converter -> toUBytes , size_old ) ;\n uprv_memcpy ( LMBCS + size_old , args -> source , size_new ) ;\n saveSourceLimit = args -> sourceLimit ;\n args -> source = errSource = LMBCS ;\n args -> sourceLimit = LMBCS + size_old + size_new ;\n savebytes = ( int8_t ) ( size_old + size_new ) ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n args -> source = saveSource + ( ( args -> source - LMBCS ) - size_old ) ;\n args -> sourceLimit = saveSourceLimit ;\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n args -> converter -> toULength = savebytes ;\n uprv_memcpy ( args -> converter -> toUBytes , LMBCS , savebytes ) ;\n args -> source = args -> sourceLimit ;\n * err = U_ZERO_ERROR ;\n return ;\n }\n else {\n args -> converter -> toULength = 0 ;\n }\n }\n else {\n errSource = saveSource ;\n uniChar = ( UChar ) _LMBCSGetNextUCharWorker ( args , err ) ;\n savebytes = ( int8_t ) ( args -> source - saveSource ) ;\n }\n if ( U_SUCCESS ( * err ) ) {\n if ( uniChar < 0xfffe ) {\n * ( args -> target ) ++ = uniChar ;\n if ( args -> offsets ) {\n * ( args -> offsets ) ++ = ( int32_t ) ( saveSource - pStartLMBCS ) ;\n }\n }\n else if ( uniChar == 0xfffe ) {\n * err = U_INVALID_CHAR_FOUND ;\n }\n else {\n * err = U_ILLEGAL_CHAR_FOUND ;\n }\n }\n }\n if ( U_SUCCESS ( * err ) && args -> sourceLimit > args -> source && args -> targetLimit <= args -> target ) {\n * err = U_BUFFER_OVERFLOW_ERROR ;\n }\n else if ( U_FAILURE ( * err ) ) {\n args -> converter -> toULength = savebytes ;\n if ( savebytes > 0 ) {\n uprv_memcpy ( args -> converter -> toUBytes , errSource , savebytes ) ;\n }\n if ( * err == U_TRUNCATED_CHAR_FOUND ) {\n * err = U_ZERO_ERROR ;\n }\n }\n }\n DEFINE_LMBCS_OPEN ( 1 ) DEFINE_LMBCS_OPEN ( 2 ) DEFINE_LMBCS_OPEN ( 3 ) DEFINE_LMBCS_OPEN ( 4 ) DEFINE_LMBCS_OPEN ( 5 ) DEFINE_LMBCS_OPEN ( 6 ) DEFINE_LMBCS_OPEN ( 8 )"}
{"idx": 20294, "target": 0, "func": "static VALUE ossl_asn1_class2sym ( int tc ) {\n if ( ( tc & V_ASN1_PRIVATE ) == V_ASN1_PRIVATE ) return sym_PRIVATE ;\n else if ( ( tc & V_ASN1_CONTEXT_SPECIFIC ) == V_ASN1_CONTEXT_SPECIFIC ) return sym_CONTEXT_SPECIFIC ;\n else if ( ( tc & V_ASN1_APPLICATION ) == V_ASN1_APPLICATION ) return sym_APPLICATION ;\n else return sym_UNIVERSAL ;\n }"}
{"idx": 20295, "target": 0, "func": "static afs_int32 addWildCards ( struct ubik_trans * tt , prlist * alist , afs_uint32 host ) {\n afs_int32 temp ;\n struct prentry tentry ;\n prlist wlist ;\n unsigned wild = htonl ( 0xffffff00 ) ;\n struct in_addr iaddr ;\n afs_int32 hostid ;\n int size = 0 , i , code ;\n int added = 0 ;\n char hoststr [ 16 ] ;\n while ( ( host = ( host & wild ) ) ) {\n wild = htonl ( ntohl ( wild ) << 8 ) ;\n iaddr . s_addr = host ;\n code = NameToID ( tt , afs_inet_ntoa_r ( iaddr . s_addr , hoststr ) , & hostid ) ;\n if ( code == PRSUCCESS && hostid != 0 ) {\n temp = FindByID ( tt , hostid ) ;\n if ( temp ) {\n code = pr_ReadEntry ( tt , 0 , temp , & tentry ) ;\n if ( code != PRSUCCESS ) continue ;\n }\n else continue ;\n }\n else continue ;\n wlist . prlist_len = 0 ;\n wlist . prlist_val = NULL ;\n code = GetList ( tt , & tentry , & wlist , 0 ) ;\n if ( code ) return code ;\n added += wlist . prlist_len ;\n for ( i = 0 ;\n i < wlist . prlist_len ;\n i ++ ) {\n if ( ! inCPS ( * alist , wlist . prlist_val [ i ] ) ) if ( ( code = AddToPRList ( alist , & size , wlist . prlist_val [ i ] ) ) ) {\n free ( wlist . prlist_val ) ;\n return ( code ) ;\n }\n }\n if ( wlist . prlist_val ) free ( wlist . prlist_val ) ;\n }\n if ( added ) qsort ( alist -> prlist_val , alist -> prlist_len , sizeof ( afs_int32 ) , IDCmp ) ;\n return 0 ;\n }"}
{"idx": 20296, "target": 0, "func": "static void ttafilter_init ( TTAFilter * c , int32_t shift ) {\n memset ( c , 0 , sizeof ( TTAFilter ) ) ;\n c -> shift = shift ;\n c -> round = shift_1 [ shift - 1 ] ;\n }"}
{"idx": 20297, "target": 0, "func": "int key_instantiate_and_link ( struct key * key , const void * data , size_t datalen , struct key * keyring , struct key * authkey ) {\n struct key_preparsed_payload prep ;\n struct assoc_array_edit * edit ;\n int ret ;\n memset ( & prep , 0 , sizeof ( prep ) ) ;\n prep . data = data ;\n prep . datalen = datalen ;\n prep . quotalen = key -> type -> def_datalen ;\n prep . expiry = TIME_T_MAX ;\n if ( key -> type -> preparse ) {\n ret = key -> type -> preparse ( & prep ) ;\n if ( ret < 0 ) goto error ;\n }\n if ( keyring ) {\n if ( keyring -> restrict_link ) {\n ret = keyring -> restrict_link ( keyring , key -> type , & prep . payload ) ;\n if ( ret < 0 ) goto error ;\n }\n ret = __key_link_begin ( keyring , & key -> index_key , & edit ) ;\n if ( ret < 0 ) goto error ;\n }\n ret = __key_instantiate_and_link ( key , & prep , keyring , authkey , & edit ) ;\n if ( keyring ) __key_link_end ( keyring , & key -> index_key , edit ) ;\n error : if ( key -> type -> preparse ) key -> type -> free_preparse ( & prep ) ;\n return ret ;\n }"}
{"idx": 20298, "target": 0, "func": "static int __tipc_nl_compat_publ_dump ( struct tipc_nl_compat_msg * msg , struct nlattr * * attrs ) {\n u32 type , lower , upper ;\n struct nlattr * publ [ TIPC_NLA_PUBL_MAX + 1 ] ;\n int err ;\n if ( ! attrs [ TIPC_NLA_PUBL ] ) return - EINVAL ;\n err = nla_parse_nested ( publ , TIPC_NLA_PUBL_MAX , attrs [ TIPC_NLA_PUBL ] , NULL ) ;\n if ( err ) return err ;\n type = nla_get_u32 ( publ [ TIPC_NLA_PUBL_TYPE ] ) ;\n lower = nla_get_u32 ( publ [ TIPC_NLA_PUBL_LOWER ] ) ;\n upper = nla_get_u32 ( publ [ TIPC_NLA_PUBL_UPPER ] ) ;\n if ( lower == upper ) tipc_tlv_sprintf ( msg -> rep , \" {\n%u,%u}\n\" , type , lower ) ;\n else tipc_tlv_sprintf ( msg -> rep , \" {\n%u,%u,%u}\n\" , type , lower , upper ) ;\n return 0 ;\n }"}
{"idx": 20299, "target": 0, "func": "char * xmlrpc_string ( char * buf , const char * value ) {\n char encoded [ XMLRPC_BUFSIZE ] ;\n * buf = '\\0' ;\n xmlrpc_char_encode ( encoded , value ) ;\n snprintf ( buf , XMLRPC_BUFSIZE , \"<string>%s</string>\" , encoded ) ;\n return buf ;\n }"}
{"idx": 20300, "target": 0, "func": "static void scope_chunk_ret ( Operation * op , ID2 * scopes ) {\n struct mdb_info * mdb = ( struct mdb_info * ) op -> o_bd -> be_private ;\n void * ret = NULL ;\n ldap_pvt_thread_pool_getkey ( op -> o_threadctx , ( void * ) scope_chunk_get , & ret , NULL ) ;\n scopes [ 0 ] . mval . mv_data = ret ;\n ldap_pvt_thread_pool_setkey ( op -> o_threadctx , ( void * ) scope_chunk_get , ( void * ) scopes , scope_chunk_free , NULL , NULL ) ;\n }"}
{"idx": 20301, "target": 0, "func": "static void exsltDynMapFunction ( xmlXPathParserContextPtr ctxt , int nargs ) {\n xmlChar * str = NULL ;\n xmlNodeSetPtr nodeset = NULL ;\n xsltTransformContextPtr tctxt ;\n xmlXPathCompExprPtr comp = NULL ;\n xmlXPathObjectPtr ret = NULL ;\n xmlDocPtr oldDoc , container = NULL ;\n xmlNodePtr oldNode ;\n int oldContextSize ;\n int oldProximityPosition ;\n int i , j ;\n if ( nargs != 2 ) {\n xmlXPathSetArityError ( ctxt ) ;\n return ;\n }\n str = xmlXPathPopString ( ctxt ) ;\n if ( xmlXPathCheckError ( ctxt ) ) {\n xmlXPathSetTypeError ( ctxt ) ;\n return ;\n }\n nodeset = xmlXPathPopNodeSet ( ctxt ) ;\n if ( xmlXPathCheckError ( ctxt ) ) {\n xmlXPathSetTypeError ( ctxt ) ;\n return ;\n }\n if ( str == NULL || ! xmlStrlen ( str ) || ! ( comp = xmlXPathCompile ( str ) ) ) {\n if ( nodeset != NULL ) xmlXPathFreeNodeSet ( nodeset ) ;\n if ( str != NULL ) xmlFree ( str ) ;\n valuePush ( ctxt , xmlXPathNewNodeSet ( NULL ) ) ;\n return ;\n }\n ret = xmlXPathNewNodeSet ( NULL ) ;\n if ( ret == NULL ) {\n xsltGenericError ( xsltGenericErrorContext , \"exsltDynMapFunction: ret == NULL\\n\" ) ;\n goto cleanup ;\n }\n oldDoc = ctxt -> context -> doc ;\n oldNode = ctxt -> context -> node ;\n oldContextSize = ctxt -> context -> contextSize ;\n oldProximityPosition = ctxt -> context -> proximityPosition ;\n tctxt = xsltXPathGetTransformContext ( ctxt ) ;\n if ( tctxt == NULL ) {\n xsltTransformError ( xsltXPathGetTransformContext ( ctxt ) , NULL , NULL , \"dyn:map : internal error tctxt == NULL\\n\" ) ;\n goto cleanup ;\n }\n container = xsltCreateRVT ( tctxt ) ;\n if ( container == NULL ) {\n xsltTransformError ( tctxt , NULL , NULL , \"dyn:map : internal error container == NULL\\n\" ) ;\n goto cleanup ;\n }\n xsltRegisterLocalRVT ( tctxt , container ) ;\n if ( nodeset && nodeset -> nodeNr > 0 ) {\n xmlXPathNodeSetSort ( nodeset ) ;\n ctxt -> context -> contextSize = nodeset -> nodeNr ;\n ctxt -> context -> proximityPosition = 0 ;\n for ( i = 0 ;\n i < nodeset -> nodeNr ;\n i ++ ) {\n xmlXPathObjectPtr subResult = NULL ;\n ctxt -> context -> proximityPosition ++ ;\n ctxt -> context -> node = nodeset -> nodeTab [ i ] ;\n ctxt -> context -> doc = nodeset -> nodeTab [ i ] -> doc ;\n subResult = xmlXPathCompiledEval ( comp , ctxt -> context ) ;\n if ( subResult != NULL ) {\n switch ( subResult -> type ) {\n case XPATH_NODESET : if ( subResult -> nodesetval != NULL ) for ( j = 0 ;\n j < subResult -> nodesetval -> nodeNr ;\n j ++ ) xmlXPathNodeSetAdd ( ret -> nodesetval , subResult -> nodesetval -> nodeTab [ j ] ) ;\n break ;\n case XPATH_BOOLEAN : if ( container != NULL ) {\n xmlNodePtr cur = xmlNewChild ( ( xmlNodePtr ) container , NULL , BAD_CAST \"boolean\" , BAD_CAST ( subResult -> boolval ? \"true\" : \"\" ) ) ;\n if ( cur != NULL ) {\n cur -> ns = xmlNewNs ( cur , BAD_CAST \"http://exslt.org/common\" , BAD_CAST \"exsl\" ) ;\n xmlXPathNodeSetAddUnique ( ret -> nodesetval , cur ) ;\n }\n xsltExtensionInstructionResultRegister ( tctxt , ret ) ;\n }\n break ;\n case XPATH_NUMBER : if ( container != NULL ) {\n xmlChar * val = xmlXPathCastNumberToString ( subResult -> floatval ) ;\n xmlNodePtr cur = xmlNewChild ( ( xmlNodePtr ) container , NULL , BAD_CAST \"number\" , val ) ;\n if ( val != NULL ) xmlFree ( val ) ;\n if ( cur != NULL ) {\n cur -> ns = xmlNewNs ( cur , BAD_CAST \"http://exslt.org/common\" , BAD_CAST \"exsl\" ) ;\n xmlXPathNodeSetAddUnique ( ret -> nodesetval , cur ) ;\n }\n xsltExtensionInstructionResultRegister ( tctxt , ret ) ;\n }\n break ;\n case XPATH_STRING : if ( container != NULL ) {\n xmlNodePtr cur = xmlNewChild ( ( xmlNodePtr ) container , NULL , BAD_CAST \"string\" , subResult -> stringval ) ;\n if ( cur != NULL ) {\n cur -> ns = xmlNewNs ( cur , BAD_CAST \"http://exslt.org/common\" , BAD_CAST \"exsl\" ) ;\n xmlXPathNodeSetAddUnique ( ret -> nodesetval , cur ) ;\n }\n xsltExtensionInstructionResultRegister ( tctxt , ret ) ;\n }\n break ;\n default : break ;\n }\n xmlXPathFreeObject ( subResult ) ;\n }\n }\n }\n ctxt -> context -> doc = oldDoc ;\n ctxt -> context -> node = oldNode ;\n ctxt -> context -> contextSize = oldContextSize ;\n ctxt -> context -> proximityPosition = oldProximityPosition ;\n cleanup : if ( comp != NULL ) xmlXPathFreeCompExpr ( comp ) ;\n if ( nodeset != NULL ) xmlXPathFreeNodeSet ( nodeset ) ;\n if ( str != NULL ) xmlFree ( str ) ;\n valuePush ( ctxt , ret ) ;\n return ;\n }"}
{"idx": 20302, "target": 0, "func": "static int tipc_nl_compat_sk_dump ( struct tipc_nl_compat_msg * msg , struct nlattr * * attrs ) {\n int err ;\n u32 sock_ref ;\n struct nlattr * sock [ TIPC_NLA_SOCK_MAX + 1 ] ;\n if ( ! attrs [ TIPC_NLA_SOCK ] ) return - EINVAL ;\n err = nla_parse_nested ( sock , TIPC_NLA_SOCK_MAX , attrs [ TIPC_NLA_SOCK ] , NULL ) ;\n if ( err ) return err ;\n sock_ref = nla_get_u32 ( sock [ TIPC_NLA_SOCK_REF ] ) ;\n tipc_tlv_sprintf ( msg -> rep , \"%u:\" , sock_ref ) ;\n if ( sock [ TIPC_NLA_SOCK_CON ] ) {\n u32 node ;\n struct nlattr * con [ TIPC_NLA_CON_MAX + 1 ] ;\n nla_parse_nested ( con , TIPC_NLA_CON_MAX , sock [ TIPC_NLA_SOCK_CON ] , NULL ) ;\n node = nla_get_u32 ( con [ TIPC_NLA_CON_NODE ] ) ;\n tipc_tlv_sprintf ( msg -> rep , \" connected to <%u.%u.%u:%u>\" , tipc_zone ( node ) , tipc_cluster ( node ) , tipc_node ( node ) , nla_get_u32 ( con [ TIPC_NLA_CON_SOCK ] ) ) ;\n if ( con [ TIPC_NLA_CON_FLAG ] ) tipc_tlv_sprintf ( msg -> rep , \" via {\n%u,%u}\n\\n\" , nla_get_u32 ( con [ TIPC_NLA_CON_TYPE ] ) , nla_get_u32 ( con [ TIPC_NLA_CON_INST ] ) ) ;\n else tipc_tlv_sprintf ( msg -> rep , \"\\n\" ) ;\n }\n else if ( sock [ TIPC_NLA_SOCK_HAS_PUBL ] ) {\n tipc_tlv_sprintf ( msg -> rep , \" bound to\" ) ;\n err = tipc_nl_compat_publ_dump ( msg , sock_ref ) ;\n if ( err ) return err ;\n }\n tipc_tlv_sprintf ( msg -> rep , \"\\n\" ) ;\n return 0 ;\n }"}
{"idx": 20303, "target": 0, "func": "static void print_table_data_xml ( MYSQL_RES * result ) {\n MYSQL_ROW cur ;\n MYSQL_FIELD * fields ;\n mysql_field_seek ( result , 0 ) ;\n tee_fputs ( \"<?xml version=\\\"1.0\\\"?>\\n\\n<resultset statement=\\\"\" , PAGER ) ;\n xmlencode_print ( glob_buffer . ptr ( ) , ( int ) strlen ( glob_buffer . ptr ( ) ) ) ;\n tee_fputs ( \"\\\" xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\">\" , PAGER ) ;\n fields = mysql_fetch_fields ( result ) ;\n while ( ( cur = mysql_fetch_row ( result ) ) ) {\n if ( interrupted_query ) break ;\n ulong * lengths = mysql_fetch_lengths ( result ) ;\n ( void ) tee_fputs ( \"\\n <row>\\n\" , PAGER ) ;\n for ( uint i = 0 ;\n i < mysql_num_fields ( result ) ;\n i ++ ) {\n tee_fprintf ( PAGER , \"\\t<field name=\\\"\" ) ;\n xmlencode_print ( fields [ i ] . name , ( uint ) strlen ( fields [ i ] . name ) ) ;\n if ( cur [ i ] ) {\n tee_fprintf ( PAGER , \"\\\">\" ) ;\n xmlencode_print ( cur [ i ] , lengths [ i ] ) ;\n tee_fprintf ( PAGER , \"</field>\\n\" ) ;\n }\n else tee_fprintf ( PAGER , \"\\\" xsi:nil=\\\"true\\\" />\\n\" ) ;\n }\n ( void ) tee_fputs ( \" </row>\\n\" , PAGER ) ;\n }\n ( void ) tee_fputs ( \"</resultset>\\n\" , PAGER ) ;\n }"}
{"idx": 20304, "target": 0, "func": "static void * counter_func ( void * arg ) {\n {\n set_pid_priority ( 0 , SCHED_FIFO , sched_get_priority_min ( SCHED_FIFO ) , \"Unable to set SCHED_FIFO for %d (\\\"%s\\\"). (%s)\" , \"the counter_func\" ) ;\n }\n for ( ;\n ;\n ) {\n counter ++ ;\n if ( verbose ) print_error ( stderr , \"counter set to %d\" , counter ) ;\n sleep ( increasetime ) ;\n }\n return NULL ;\n }"}
{"idx": 20305, "target": 0, "func": "Datum arraycontsel ( PG_FUNCTION_ARGS ) {\n PlannerInfo * root = ( PlannerInfo * ) PG_GETARG_POINTER ( 0 ) ;\n Oid operator = PG_GETARG_OID ( 1 ) ;\n List * args = ( List * ) PG_GETARG_POINTER ( 2 ) ;\n int varRelid = PG_GETARG_INT32 ( 3 ) ;\n VariableStatData vardata ;\n Node * other ;\n bool varonleft ;\n Selectivity selec ;\n Oid element_typeid ;\n if ( ! get_restriction_variable ( root , args , varRelid , & vardata , & other , & varonleft ) ) PG_RETURN_FLOAT8 ( DEFAULT_SEL ( operator ) ) ;\n if ( ! IsA ( other , Const ) ) {\n ReleaseVariableStats ( vardata ) ;\n PG_RETURN_FLOAT8 ( DEFAULT_SEL ( operator ) ) ;\n }\n if ( ( ( Const * ) other ) -> constisnull ) {\n ReleaseVariableStats ( vardata ) ;\n PG_RETURN_FLOAT8 ( 0.0 ) ;\n }\n if ( ! varonleft ) {\n if ( operator == OID_ARRAY_CONTAINS_OP ) operator = OID_ARRAY_CONTAINED_OP ;\n else if ( operator == OID_ARRAY_CONTAINED_OP ) operator = OID_ARRAY_CONTAINS_OP ;\n }\n element_typeid = get_base_element_type ( ( ( Const * ) other ) -> consttype ) ;\n if ( element_typeid != InvalidOid && element_typeid == get_base_element_type ( vardata . vartype ) ) {\n selec = calc_arraycontsel ( & vardata , ( ( Const * ) other ) -> constvalue , element_typeid , operator ) ;\n }\n else {\n selec = DEFAULT_SEL ( operator ) ;\n }\n ReleaseVariableStats ( vardata ) ;\n CLAMP_PROBABILITY ( selec ) ;\n PG_RETURN_FLOAT8 ( ( float8 ) selec ) ;\n }"}
{"idx": 20306, "target": 0, "func": "static inline int decode_mb ( ASV1Context * a , int16_t block [ 6 ] [ 64 ] ) {\n int i ;\n a -> dsp . clear_blocks ( block [ 0 ] ) ;\n if ( a -> avctx -> codec_id == AV_CODEC_ID_ASV1 ) {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( asv1_decode_block ( a , block [ i ] ) < 0 ) return - 1 ;\n }\n }\n else {\n for ( i = 0 ;\n i < 6 ;\n i ++ ) {\n if ( asv2_decode_block ( a , block [ i ] ) < 0 ) return - 1 ;\n }\n }\n return 0 ;\n }"}
{"idx": 20307, "target": 0, "func": "static int mv_read_packet ( AVFormatContext * avctx , AVPacket * pkt ) {\n MvContext * mv = avctx -> priv_data ;\n AVIOContext * pb = avctx -> pb ;\n AVStream * st = avctx -> streams [ mv -> stream_index ] ;\n const AVIndexEntry * index ;\n int frame = mv -> frame [ mv -> stream_index ] ;\n int64_t ret ;\n uint64_t pos ;\n if ( frame < st -> nb_index_entries ) {\n index = & st -> index_entries [ frame ] ;\n pos = avio_tell ( pb ) ;\n if ( index -> pos > pos ) avio_skip ( pb , index -> pos - pos ) ;\n else if ( index -> pos < pos ) {\n if ( ! ( pb -> seekable & AVIO_SEEKABLE_NORMAL ) ) return AVERROR ( EIO ) ;\n ret = avio_seek ( pb , index -> pos , SEEK_SET ) ;\n if ( ret < 0 ) return ret ;\n }\n ret = av_get_packet ( pb , pkt , index -> size ) ;\n if ( ret < 0 ) return ret ;\n pkt -> stream_index = mv -> stream_index ;\n pkt -> pts = index -> timestamp ;\n pkt -> flags |= AV_PKT_FLAG_KEY ;\n mv -> frame [ mv -> stream_index ] ++ ;\n mv -> eof_count = 0 ;\n }\n else {\n mv -> eof_count ++ ;\n if ( mv -> eof_count >= avctx -> nb_streams ) return AVERROR_EOF ;\n return AVERROR ( EAGAIN ) ;\n }\n mv -> stream_index ++ ;\n if ( mv -> stream_index >= avctx -> nb_streams ) mv -> stream_index = 0 ;\n return 0 ;\n }"}
{"idx": 20308, "target": 0, "func": "int jas_stream_isseekable ( jas_stream_t * stream ) {\n if ( stream -> ops_ == & jas_stream_memops ) {\n return 1 ;\n }\n else if ( stream -> ops_ == & jas_stream_fileops ) {\n if ( ( * stream -> ops_ -> seek_ ) ( stream -> obj_ , 0 , SEEK_CUR ) < 0 ) {\n return 0 ;\n }\n return 1 ;\n }\n else {\n return 0 ;\n }\n }"}
{"idx": 20309, "target": 1, "func": "static int test_read_integer_error ( xd3_stream * stream , usize_t trunto , const char * msg ) {\n uint64_t eval = 1ULL << 34 ;\n uint32_t rval ;\n xd3_output * buf = NULL ;\n const uint8_t * max ;\n const uint8_t * inp ;\n int ret ;\n buf = xd3_alloc_output ( stream , buf ) ;\n if ( ( ret = xd3_emit_uint64_t ( stream , & buf , eval ) ) ) {\n goto fail ;\n }\n again : inp = buf -> base ;\n max = buf -> base + buf -> next - trunto ;\n if ( ( ret = xd3_read_uint32_t ( stream , & inp , max , & rval ) ) != XD3_INVALID_INPUT || ! MSG_IS ( msg ) ) {\n ret = XD3_INTERNAL ;\n }\n else if ( trunto && trunto < buf -> next ) {\n trunto += 1 ;\n goto again ;\n }\n else {\n ret = 0 ;\n }\n fail : xd3_free_output ( stream , buf ) ;\n return ret ;\n }"}
{"idx": 20310, "target": 0, "func": "char * get_namespace_name_or_temp ( Oid nspid ) {\n if ( isTempNamespace ( nspid ) ) return \"pg_temp\" ;\n else return get_namespace_name ( nspid ) ;\n }"}
{"idx": 20311, "target": 0, "func": "static void stroke_unroute ( private_stroke_socket_t * this , stroke_msg_t * msg , FILE * out ) {\n pop_string ( msg , & msg -> terminate . name ) ;\n DBG1 ( DBG_CFG , \"received stroke: unroute '%s'\" , msg -> route . name ) ;\n this -> control -> unroute ( this -> control , msg , out ) ;\n }"}
{"idx": 20312, "target": 0, "func": "err_status_t srtp_shutdown ( ) {\n err_status_t status ;\n status = crypto_kernel_shutdown ( ) ;\n if ( status ) return status ;\n return err_status_ok ;\n }"}
{"idx": 20313, "target": 0, "func": "static void call_rlc ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , proto_item * ti , guint8 lchid , void * data ) {\n switch ( lchId_type_table [ lchid ] ) {\n case MAC_CONTENT_DCCH : proto_item_append_text ( ti , \" (DCCH)\" ) ;\n call_dissector_with_data ( rlc_dcch_handle , tvb , pinfo , tree , data ) ;\n break ;\n case MAC_CONTENT_PS_DTCH : proto_item_append_text ( ti , \" (PS DTCH)\" ) ;\n call_dissector_with_data ( rlc_ps_dtch_handle , tvb , pinfo , tree , data ) ;\n break ;\n case MAC_CONTENT_CS_DTCH : proto_item_append_text ( ti , \" (CS DTCH)\" ) ;\n break ;\n default : proto_item_append_text ( ti , \" (Unknown EDCH Content)\" ) ;\n expert_add_info_format ( pinfo , ti , & ei_mac_unknown_content , \"Unknown EDCH Content\" ) ;\n break ;\n }\n }"}
{"idx": 20314, "target": 0, "func": "static int dissect_h245_SEQUENCE_OF_RedundancyEncodingDTModeElement ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h245_SEQUENCE_OF_RedundancyEncodingDTModeElement , SEQUENCE_OF_RedundancyEncodingDTModeElement_sequence_of ) ;\n return offset ;\n }"}
{"idx": 20315, "target": 0, "func": "gcry_error_t gcry_mpi_scan ( struct gcry_mpi * * ret_mpi , enum gcry_mpi_format format , const void * buffer_arg , size_t buflen , size_t * nscanned ) {\n const unsigned char * buffer = ( const unsigned char * ) buffer_arg ;\n struct gcry_mpi * a = NULL ;\n unsigned int len ;\n int secure = ( buffer && gcry_is_secure ( buffer ) ) ;\n if ( format == GCRYMPI_FMT_SSH ) len = 0 ;\n else len = buflen ;\n if ( format == GCRYMPI_FMT_STD ) {\n const unsigned char * s = buffer ;\n a = secure ? mpi_alloc_secure ( ( len + BYTES_PER_MPI_LIMB - 1 ) / BYTES_PER_MPI_LIMB ) : mpi_alloc ( ( len + BYTES_PER_MPI_LIMB - 1 ) / BYTES_PER_MPI_LIMB ) ;\n if ( len ) {\n a -> sign = ! ! ( * s & 0x80 ) ;\n if ( a -> sign ) {\n mpi_free ( a ) ;\n return gcry_error ( GPG_ERR_INTERNAL ) ;\n }\n else _gcry_mpi_set_buffer ( a , s , len , 0 ) ;\n }\n if ( ret_mpi ) {\n mpi_normalize ( a ) ;\n * ret_mpi = a ;\n }\n else mpi_free ( a ) ;\n return 0 ;\n }\n else if ( format == GCRYMPI_FMT_USG ) {\n a = secure ? mpi_alloc_secure ( ( len + BYTES_PER_MPI_LIMB - 1 ) / BYTES_PER_MPI_LIMB ) : mpi_alloc ( ( len + BYTES_PER_MPI_LIMB - 1 ) / BYTES_PER_MPI_LIMB ) ;\n if ( len ) _gcry_mpi_set_buffer ( a , buffer , len , 0 ) ;\n if ( ret_mpi ) {\n mpi_normalize ( a ) ;\n * ret_mpi = a ;\n }\n else mpi_free ( a ) ;\n return 0 ;\n }\n else if ( format == GCRYMPI_FMT_PGP ) {\n a = mpi_read_from_buffer ( buffer , & len , secure ) ;\n if ( nscanned ) * nscanned = len ;\n if ( ret_mpi && a ) {\n mpi_normalize ( a ) ;\n * ret_mpi = a ;\n }\n else if ( a ) {\n mpi_free ( a ) ;\n a = NULL ;\n }\n return a ? 0 : gcry_error ( GPG_ERR_INV_OBJ ) ;\n }\n else if ( format == GCRYMPI_FMT_SSH ) {\n const unsigned char * s = buffer ;\n size_t n ;\n if ( len && len < 4 ) return gcry_error ( GPG_ERR_TOO_SHORT ) ;\n n = ( s [ 0 ] << 24 | s [ 1 ] << 16 | s [ 2 ] << 8 | s [ 3 ] ) ;\n s += 4 ;\n if ( len ) len -= 4 ;\n if ( len && n > len ) return gcry_error ( GPG_ERR_TOO_LARGE ) ;\n a = secure ? mpi_alloc_secure ( ( n + BYTES_PER_MPI_LIMB - 1 ) / BYTES_PER_MPI_LIMB ) : mpi_alloc ( ( n + BYTES_PER_MPI_LIMB - 1 ) / BYTES_PER_MPI_LIMB ) ;\n if ( n ) {\n a -> sign = ! ! ( * s & 0x80 ) ;\n if ( a -> sign ) {\n mpi_free ( a ) ;\n return gcry_error ( GPG_ERR_INTERNAL ) ;\n }\n else _gcry_mpi_set_buffer ( a , s , n , 0 ) ;\n }\n if ( nscanned ) * nscanned = n + 4 ;\n if ( ret_mpi ) {\n mpi_normalize ( a ) ;\n * ret_mpi = a ;\n }\n else mpi_free ( a ) ;\n return 0 ;\n }\n else if ( format == GCRYMPI_FMT_HEX ) {\n if ( buflen ) return gcry_error ( GPG_ERR_INV_ARG ) ;\n a = secure ? mpi_alloc_secure ( 0 ) : mpi_alloc ( 0 ) ;\n if ( mpi_fromstr ( a , ( const char * ) buffer ) ) {\n mpi_free ( a ) ;\n return gcry_error ( GPG_ERR_INV_OBJ ) ;\n }\n if ( ret_mpi ) {\n mpi_normalize ( a ) ;\n * ret_mpi = a ;\n }\n else mpi_free ( a ) ;\n return 0 ;\n }\n else return gcry_error ( GPG_ERR_INV_ARG ) ;\n }"}
{"idx": 20316, "target": 0, "func": "static void send_version_response ( int fd , version_ack_t ack , uint32_t payload , int userid , struct query * q ) {\n char out [ 9 ] ;\n switch ( ack ) {\n case VERSION_ACK : strncpy ( out , \"VACK\" , sizeof ( out ) ) ;\n break ;\n case VERSION_NACK : strncpy ( out , \"VNAK\" , sizeof ( out ) ) ;\n break ;\n case VERSION_FULL : strncpy ( out , \"VFUL\" , sizeof ( out ) ) ;\n break ;\n }\n out [ 4 ] = ( ( payload >> 24 ) & 0xff ) ;\n out [ 5 ] = ( ( payload >> 16 ) & 0xff ) ;\n out [ 6 ] = ( ( payload >> 8 ) & 0xff ) ;\n out [ 7 ] = ( ( payload ) & 0xff ) ;\n out [ 8 ] = userid & 0xff ;\n write_dns ( fd , q , out , sizeof ( out ) , users [ userid ] . downenc ) ;\n }"}
{"idx": 20317, "target": 0, "func": "static bool restricted_shell ( const char * shell ) {\n char * line ;\n setusershell ( ) ;\n while ( ( line = getusershell ( ) ) != NULL ) {\n if ( * line != '#' && ! strcmp ( line , shell ) ) {\n endusershell ( ) ;\n return false ;\n }\n }\n endusershell ( ) ;\n return true ;\n }"}
{"idx": 20318, "target": 0, "func": "ATF_TC_BODY ( pretty_print_option , tc ) {\n struct option * option ;\n unsigned code ;\n unsigned char bad_data [ 32 * 1024 ] ;\n unsigned char good_data [ ] = {\n 1 , 2 , 3 , 4 , 5 , 6 }\n ;\n int emit_commas = 1 ;\n int emit_quotes = 1 ;\n const char * output_buf ;\n memset ( bad_data , 0x1f , sizeof ( bad_data ) ) ;\n initialize_common_option_spaces ( ) ;\n code = 61 ;\n option = NULL ;\n if ( ! option_code_hash_lookup ( & option , dhcp_universe . code_hash , & code , 0 , MDL ) ) {\n atf_tc_fail ( \"can't find option %d\" , code ) ;\n }\n if ( option == NULL ) {\n atf_tc_fail ( \"option is NULL\" ) ;\n }\n output_buf = pretty_print_option ( option , good_data , sizeof ( good_data ) , emit_commas , emit_quotes ) ;\n if ( ! output_buf || strcmp ( output_buf , \"1:2:3:4:5:6\" ) ) {\n atf_tc_fail ( \"pretty_print_option did not return \\\"<error>\\\"\" ) ;\n }\n output_buf = pretty_print_option ( option , bad_data , sizeof ( bad_data ) , emit_commas , emit_quotes ) ;\n if ( ! output_buf || strcmp ( output_buf , \"<error>\" ) ) {\n atf_tc_fail ( \"pretty_print_option did not return \\\"<error>\\\"\" ) ;\n }\n }"}
{"idx": 20319, "target": 0, "func": "static struct search_state * search_state_new ( void ) {\n struct search_state * state = ( struct search_state * ) malloc ( sizeof ( struct search_state ) ) ;\n if ( ! state ) return NULL ;\n memset ( state , 0 , sizeof ( struct search_state ) ) ;\n state -> refcount = 1 ;\n state -> ndots = 1 ;\n return state ;\n }"}
{"idx": 20320, "target": 0, "func": "static int isoent_cmp_node ( const struct archive_rb_node * n1 , const struct archive_rb_node * n2 ) {\n const struct isoent * e1 = ( const struct isoent * ) n1 ;\n const struct isoent * e2 = ( const struct isoent * ) n2 ;\n return ( strcmp ( e1 -> file -> basename . s , e2 -> file -> basename . s ) ) ;\n }"}
{"idx": 20321, "target": 0, "func": "static unsigned get_current_codepage ( void ) {\n return ( - 1 ) ;\n }"}
{"idx": 20322, "target": 1, "func": "static int dissect_pbb_tlvblock ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , guint offset , guint maxoffset , gint8 addrCount , guint tlvCat ) {\n guint16 tlvblockLength ;\n guint tlvblockEnd ;\n proto_tree * tlvblock_tree = NULL ;\n proto_tree * tlv_tree = NULL ;\n proto_tree * tlv_flags_tree = NULL ;\n proto_tree * tlvValue_tree = NULL ;\n proto_item * tlvBlock_item = NULL ;\n proto_item * tlv_item = NULL ;\n proto_item * tlvFlags_item = NULL ;\n proto_item * tlvValue_item = NULL ;\n proto_item * ti = NULL ;\n int tlvCount = 0 ;\n int hf_packetbb_tlv_type = 0 ;\n const value_string * tlv_type_vals = NULL ;\n if ( maxoffset < offset + 2 ) {\n proto_tree_add_expert_format ( tree , pinfo , & ei_packetbb_error , tvb , offset , maxoffset - offset , \"Not enough octets for minimal tlvblock\" ) ;\n return maxoffset ;\n }\n tlvblockLength = tvb_get_ntohs ( tvb , offset ) ;\n tlvblockEnd = offset + 2 + tlvblockLength ;\n if ( maxoffset < tlvblockEnd ) {\n proto_tree_add_expert_format ( tree , pinfo , & ei_packetbb_error , tvb , offset , maxoffset - offset , \"Not enough octets for tlvblock\" ) ;\n return maxoffset ;\n }\n tlvBlock_item = proto_tree_add_item ( tree , hf_packetbb_tlvblock , tvb , offset , tlvblockEnd - offset , ENC_NA ) ;\n tlvblock_tree = proto_item_add_subtree ( tlvBlock_item , ett_packetbb_tlvblock ) ;\n proto_tree_add_item ( tlvblock_tree , hf_packetbb_tlvblock_length , tvb , offset , 2 , ENC_BIG_ENDIAN ) ;\n offset += 2 ;\n while ( offset < tlvblockEnd ) {\n guint tlvStart , tlvLength ;\n guint8 tlvType , tlvFlags , tlvExtType , indexStart , indexEnd ;\n guint16 length = 0 ;\n tlvStart = offset ;\n tlvType = tvb_get_guint8 ( tvb , offset ++ ) ;\n tlvFlags = tvb_get_guint8 ( tvb , offset ++ ) ;\n indexStart = 0 ;\n indexEnd = addrCount ? ( addrCount - 1 ) : 0 ;\n tlvExtType = 0 ;\n if ( ( tlvFlags & TLV_HAS_TYPEEXT ) != 0 ) {\n tlvExtType = tvb_get_guint8 ( tvb , offset ++ ) ;\n }\n if ( ( tlvFlags & TLV_HAS_SINGLEINDEX ) != 0 ) {\n indexStart = indexEnd = tvb_get_guint8 ( tvb , offset ++ ) ;\n }\n else if ( ( tlvFlags & TLV_HAS_MULTIINDEX ) != 0 ) {\n indexStart = tvb_get_guint8 ( tvb , offset ++ ) ;\n indexEnd = tvb_get_guint8 ( tvb , offset ++ ) ;\n }\n if ( ( tlvFlags & TLV_HAS_VALUE ) != 0 ) {\n if ( ( tlvFlags & TLV_HAS_EXTLEN ) != 0 ) {\n length = tvb_get_ntohs ( tvb , offset ++ ) ;\n }\n else {\n length = tvb_get_guint8 ( tvb , offset ++ ) ;\n }\n }\n tlvLength = offset - tlvStart + length ;\n offset = tlvStart ;\n tlv_item = proto_tree_add_item ( tlvBlock_item , hf_packetbb_tlv , tvb , tlvStart , tlvLength , ENC_NA ) ;\n tlv_tree = proto_item_add_subtree ( tlv_item , ett_packetbb_tlv [ tlvType ] ) ;\n if ( tlvCat == TLV_CAT_PACKET ) {\n hf_packetbb_tlv_type = hf_packetbb_pkttlv_type ;\n tlv_type_vals = pkttlv_type_vals ;\n }\n else if ( tlvCat == TLV_CAT_MESSAGE ) {\n hf_packetbb_tlv_type = hf_packetbb_msgtlv_type ;\n tlv_type_vals = msgtlv_type_vals ;\n }\n else {\n hf_packetbb_tlv_type = hf_packetbb_addrtlv_type ;\n tlv_type_vals = addrtlv_type_vals ;\n }\n if ( ( tlvFlags & TLV_HAS_TYPEEXT ) == 0 ) {\n proto_item_append_text ( tlv_item , \" (%s)\" , val_to_str_const ( tlvType , tlv_type_vals , \"Unknown type\" ) ) ;\n }\n else {\n proto_item_append_text ( tlv_item , \" (%s / %d)\" , val_to_str_const ( tlvType , tlv_type_vals , \"Unknown type\" ) , tlvExtType ) ;\n }\n proto_tree_add_item ( tlv_tree , hf_packetbb_tlv_type , tvb , offset ++ , 1 , ENC_BIG_ENDIAN ) ;\n tlvFlags_item = proto_tree_add_item ( tlv_tree , hf_packetbb_tlv_flags , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n tlv_flags_tree = proto_item_add_subtree ( tlvFlags_item , ett_packetbb_tlv_flags ) ;\n proto_tree_add_item ( tlv_flags_tree , hf_packetbb_tlv_flags_hastypext , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tlv_flags_tree , hf_packetbb_tlv_flags_hassingleindex , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tlv_flags_tree , hf_packetbb_tlv_flags_hasmultiindex , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tlv_flags_tree , hf_packetbb_tlv_flags_hasvalue , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tlv_flags_tree , hf_packetbb_tlv_flags_hasextlen , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( tlv_flags_tree , hf_packetbb_tlv_flags_hasmultivalue , tvb , offset , 1 , ENC_BIG_ENDIAN ) ;\n offset ++ ;\n if ( ( tlvFlags & TLV_HAS_TYPEEXT ) != 0 ) {\n proto_tree_add_item ( tlv_tree , hf_packetbb_tlv_typeext , tvb , offset ++ , 1 , ENC_BIG_ENDIAN ) ;\n }\n if ( addrCount > 0 ) {\n if ( ( tlvFlags & TLV_HAS_SINGLEINDEX ) != 0 ) {\n proto_tree_add_uint ( tlv_tree , hf_packetbb_tlv_indexstart , tvb , offset ++ , 1 , indexStart ) ;\n ti = proto_tree_add_uint ( tlv_tree , hf_packetbb_tlv_indexend , tvb , offset , 0 , indexEnd ) ;\n proto_item_append_text ( ti , \" (implicit)\" ) ;\n }\n else if ( ( tlvFlags & TLV_HAS_MULTIINDEX ) != 0 ) {\n proto_tree_add_uint ( tlv_tree , hf_packetbb_tlv_indexstart , tvb , offset ++ , 1 , indexStart ) ;\n proto_tree_add_uint ( tlv_tree , hf_packetbb_tlv_indexend , tvb , offset ++ , 1 , indexEnd ) ;\n }\n else {\n ti = proto_tree_add_uint ( tlv_tree , hf_packetbb_tlv_indexstart , tvb , offset , 0 , indexStart ) ;\n proto_item_append_text ( ti , \" (implicit)\" ) ;\n ti = proto_tree_add_uint ( tlv_tree , hf_packetbb_tlv_indexend , tvb , offset , 0 , indexEnd ) ;\n proto_item_append_text ( ti , \" (implicit)\" ) ;\n }\n }\n if ( ( tlvFlags & TLV_HAS_VALUE ) != 0 ) {\n if ( ( tlvFlags & TLV_HAS_EXTLEN ) != 0 ) {\n proto_tree_add_uint ( tlv_tree , hf_packetbb_tlv_length , tvb , offset , 2 , length ) ;\n offset += 2 ;\n }\n else {\n proto_tree_add_uint ( tlv_tree , hf_packetbb_tlv_length , tvb , offset ++ , 1 , length ) ;\n }\n }\n else {\n ti = proto_tree_add_uint ( tlv_tree , hf_packetbb_tlv_length , tvb , offset , 0 , 0 ) ;\n proto_item_append_text ( ti , \" (implicit)\" ) ;\n }\n if ( length > 0 ) {\n tlvValue_item = proto_tree_add_item ( tlv_tree , hf_packetbb_tlv_value , tvb , offset , length , ENC_NA ) ;\n if ( ( tlvFlags & TLV_HAS_MULTIVALUE ) == 0 ) {\n offset += length ;\n }\n else {\n int i ;\n guint8 c = indexEnd - indexStart + 1 ;\n tlvValue_tree = proto_item_add_subtree ( tlvValue_item , ett_packetbb_tlv_value ) ;\n for ( i = indexStart ;\n i <= indexEnd ;\n i ++ ) {\n proto_tree_add_item ( tlvValue_tree , hf_packetbb_tlv_multivalue , tvb , offset , length / c , ENC_NA ) ;\n offset += ( length / c ) ;\n }\n }\n }\n tlvCount ++ ;\n }\n proto_item_append_text ( tlvBlock_item , \" (%d TLVs)\" , tlvCount ) ;\n return offset ;\n }"}
{"idx": 20323, "target": 0, "func": "void run_query_stmt ( struct st_connection * cn , struct st_command * command , char * query , int query_len , DYNAMIC_STRING * ds , DYNAMIC_STRING * ds_warnings ) {\n MYSQL_RES * res = NULL ;\n MYSQL * mysql = cn -> mysql ;\n MYSQL_STMT * stmt ;\n DYNAMIC_STRING ds_prepare_warnings ;\n DYNAMIC_STRING ds_execute_warnings ;\n DBUG_ENTER ( \"run_query_stmt\" ) ;\n DBUG_PRINT ( \"query\" , ( \"'%-.60s'\" , query ) ) ;\n if ( ! ( stmt = cn -> stmt ) ) {\n if ( ! ( stmt = mysql_stmt_init ( mysql ) ) ) die ( \"unable to init stmt structure\" ) ;\n cn -> stmt = stmt ;\n }\n if ( ! disable_warnings ) {\n init_dynamic_string ( & ds_prepare_warnings , NULL , 0 , 256 ) ;\n init_dynamic_string ( & ds_execute_warnings , NULL , 0 , 256 ) ;\n }\n if ( do_stmt_prepare ( cn , query , query_len ) ) {\n handle_error ( command , mysql_stmt_errno ( stmt ) , mysql_stmt_error ( stmt ) , mysql_stmt_sqlstate ( stmt ) , ds ) ;\n goto end ;\n }\n if ( ! disable_warnings ) append_warnings ( & ds_prepare_warnings , mysql ) ;\n # if MYSQL_VERSION_ID >= 50000 if ( cursor_protocol_enabled ) {\n ulong type = CURSOR_TYPE_READ_ONLY ;\n if ( mysql_stmt_attr_set ( stmt , STMT_ATTR_CURSOR_TYPE , ( void * ) & type ) ) die ( \"mysql_stmt_attr_set(STMT_ATTR_CURSOR_TYPE) failed': %d %s\" , mysql_stmt_errno ( stmt ) , mysql_stmt_error ( stmt ) ) ;\n }\n # endif if ( do_stmt_execute ( cn ) ) {\n handle_error ( command , mysql_stmt_errno ( stmt ) , mysql_stmt_error ( stmt ) , mysql_stmt_sqlstate ( stmt ) , ds ) ;\n goto end ;\n }\n if ( cursor_protocol_enabled && ! disable_warnings ) append_warnings ( & ds_execute_warnings , mysql ) ;\n {\n my_bool one = 1 ;\n if ( mysql_stmt_attr_set ( stmt , STMT_ATTR_UPDATE_MAX_LENGTH , ( void * ) & one ) ) die ( \"mysql_stmt_attr_set(STMT_ATTR_UPDATE_MAX_LENGTH) failed': %d %s\" , mysql_stmt_errno ( stmt ) , mysql_stmt_error ( stmt ) ) ;\n }\n if ( mysql_stmt_field_count ( stmt ) && mysql_stmt_store_result ( stmt ) ) {\n handle_error ( command , mysql_stmt_errno ( stmt ) , mysql_stmt_error ( stmt ) , mysql_stmt_sqlstate ( stmt ) , ds ) ;\n goto end ;\n }\n handle_no_error ( command ) ;\n if ( ! disable_result_log ) {\n if ( ( res = mysql_stmt_result_metadata ( stmt ) ) != NULL ) {\n MYSQL_FIELD * fields = mysql_fetch_fields ( res ) ;\n uint num_fields = mysql_num_fields ( res ) ;\n if ( display_metadata ) append_metadata ( ds , fields , num_fields ) ;\n if ( ! display_result_vertically ) append_table_headings ( ds , fields , num_fields ) ;\n append_stmt_result ( ds , stmt , fields , num_fields ) ;\n mysql_free_result ( res ) ;\n if ( ! disable_warnings && ! prepare_warnings_enabled ) dynstr_set ( & ds_prepare_warnings , NULL ) ;\n }\n else {\n }\n if ( ! disable_info ) append_info ( ds , mysql_stmt_affected_rows ( stmt ) , mysql_info ( mysql ) ) ;\n if ( ! disable_warnings ) {\n if ( append_warnings ( & ds_execute_warnings , mysql ) || ds_execute_warnings . length || ds_prepare_warnings . length || ds_warnings -> length ) {\n dynstr_append_mem ( ds , \"Warnings:\\n\" , 10 ) ;\n if ( ds_warnings -> length ) dynstr_append_mem ( ds , ds_warnings -> str , ds_warnings -> length ) ;\n if ( ds_prepare_warnings . length ) dynstr_append_mem ( ds , ds_prepare_warnings . str , ds_prepare_warnings . length ) ;\n if ( ds_execute_warnings . length ) dynstr_append_mem ( ds , ds_execute_warnings . str , ds_execute_warnings . length ) ;\n }\n }\n }\n end : if ( ! disable_warnings ) {\n dynstr_free ( & ds_prepare_warnings ) ;\n dynstr_free ( & ds_execute_warnings ) ;\n }\n var_set_errno ( mysql_stmt_errno ( stmt ) ) ;\n revert_properties ( ) ;\n if ( mysql -> reconnect ) {\n mysql_stmt_close ( stmt ) ;\n cn -> stmt = NULL ;\n }\n DBUG_VOID_RETURN ;\n }"}
{"idx": 20324, "target": 0, "func": "static void DecoderDecodeVideo ( decoder_t * p_dec , block_t * p_block ) {\n decoder_owner_sys_t * p_owner = p_dec -> p_owner ;\n picture_t * p_pic ;\n int i_lost = 0 ;\n int i_decoded = 0 ;\n int i_displayed = 0 ;\n while ( ( p_pic = p_dec -> pf_decode_video ( p_dec , & p_block ) ) ) {\n vout_thread_t * p_vout = p_owner -> p_vout ;\n if ( DecoderIsExitRequested ( p_dec ) ) {\n vout_ReleasePicture ( p_vout , p_pic ) ;\n if ( p_block ) block_Release ( p_block ) ;\n break ;\n }\n i_decoded ++ ;\n if ( p_owner -> i_preroll_end > VLC_TS_INVALID && p_pic -> date < p_owner -> i_preroll_end ) {\n vout_ReleasePicture ( p_vout , p_pic ) ;\n continue ;\n }\n if ( p_owner -> i_preroll_end > VLC_TS_INVALID ) {\n msg_Dbg ( p_dec , \"End of video preroll\" ) ;\n if ( p_vout ) vout_Flush ( p_vout , VLC_TS_INVALID + 1 ) ;\n p_owner -> i_preroll_end = VLC_TS_INVALID ;\n }\n if ( p_dec -> pf_get_cc && ( ! p_owner -> p_packetizer || ! p_owner -> p_packetizer -> pf_get_cc ) ) DecoderGetCc ( p_dec , p_dec ) ;\n DecoderPlayVideo ( p_dec , p_pic , & i_displayed , & i_lost ) ;\n }\n input_thread_t * p_input = p_owner -> p_input ;\n if ( p_input != NULL && ( i_decoded > 0 || i_lost > 0 || i_displayed > 0 ) ) {\n vlc_mutex_lock ( & p_input -> p -> counters . counters_lock ) ;\n stats_Update ( p_input -> p -> counters . p_decoded_video , i_decoded , NULL ) ;\n stats_Update ( p_input -> p -> counters . p_lost_pictures , i_lost , NULL ) ;\n stats_Update ( p_input -> p -> counters . p_displayed_pictures , i_displayed , NULL ) ;\n vlc_mutex_unlock ( & p_input -> p -> counters . counters_lock ) ;\n }\n }"}
{"idx": 20325, "target": 0, "func": "static UBool U_CALLCONV _enumPropertyStartsRange ( const void * context , UChar32 start , UChar32 end , uint32_t value ) {\n const USetAdder * sa = ( const USetAdder * ) context ;\n sa -> add ( sa -> set , start ) ;\n ( void ) end ;\n ( void ) value ;\n return TRUE ;\n }"}
{"idx": 20326, "target": 0, "func": "static int xhci_setup_packet ( XHCITransfer * xfer ) {\n USBEndpoint * ep ;\n int dir ;\n dir = xfer -> in_xfer ? USB_TOKEN_IN : USB_TOKEN_OUT ;\n if ( xfer -> packet . ep ) {\n ep = xfer -> packet . ep ;\n }\n else {\n ep = xhci_epid_to_usbep ( xfer -> epctx ) ;\n if ( ! ep ) {\n DPRINTF ( \"xhci: slot %d has no device\\n\" , xfer -> slotid ) ;\n return - 1 ;\n }\n }\n xhci_xfer_create_sgl ( xfer , dir == USB_TOKEN_IN ) ;\n usb_packet_setup ( & xfer -> packet , dir , ep , xfer -> streamid , xfer -> trbs [ 0 ] . addr , false , xfer -> int_req ) ;\n usb_packet_map ( & xfer -> packet , & xfer -> sgl ) ;\n DPRINTF ( \"xhci: setup packet pid 0x%x addr %d ep %d\\n\" , xfer -> packet . pid , ep -> dev -> addr , ep -> nr ) ;\n return 0 ;\n }"}
{"idx": 20327, "target": 0, "func": "int setup_interp_filter_search_mask ( VP9_COMP * cpi ) {\n INTERP_FILTER ifilter ;\n int ref_total [ MAX_REF_FRAMES ] = {\n 0 }\n ;\n MV_REFERENCE_FRAME ref ;\n int mask = 0 ;\n if ( cpi -> common . last_frame_type == KEY_FRAME || cpi -> refresh_alt_ref_frame ) return mask ;\n for ( ref = LAST_FRAME ;\n ref <= ALTREF_FRAME ;\n ++ ref ) for ( ifilter = EIGHTTAP ;\n ifilter <= EIGHTTAP_SHARP ;\n ++ ifilter ) ref_total [ ref ] += cpi -> interp_filter_selected [ ref ] [ ifilter ] ;\n for ( ifilter = EIGHTTAP ;\n ifilter <= EIGHTTAP_SHARP ;\n ++ ifilter ) {\n if ( ( ref_total [ LAST_FRAME ] && cpi -> interp_filter_selected [ LAST_FRAME ] [ ifilter ] == 0 ) && ( ref_total [ GOLDEN_FRAME ] == 0 || cpi -> interp_filter_selected [ GOLDEN_FRAME ] [ ifilter ] * 50 < ref_total [ GOLDEN_FRAME ] ) && ( ref_total [ ALTREF_FRAME ] == 0 || cpi -> interp_filter_selected [ ALTREF_FRAME ] [ ifilter ] * 50 < ref_total [ ALTREF_FRAME ] ) ) mask |= 1 << ifilter ;\n }\n return mask ;\n }"}
{"idx": 20328, "target": 0, "func": "static void print_xml_row ( FILE * xml_file , const char * row_name , MYSQL_RES * tableRes , MYSQL_ROW * row , const char * str_create ) {\n uint i ;\n my_bool body_found __attribute__ ( ( unused ) ) = 0 ;\n char * create_stmt_ptr = NULL ;\n ulong create_stmt_len = 0 ;\n MYSQL_FIELD * field ;\n ulong * lengths = mysql_fetch_lengths ( tableRes ) ;\n fprintf ( xml_file , \"\\t\\t<%s\" , row_name ) ;\n check_io ( xml_file ) ;\n mysql_field_seek ( tableRes , 0 ) ;\n for ( i = 0 ;\n ( field = mysql_fetch_field ( tableRes ) ) ;\n i ++ ) {\n if ( ( * row ) [ i ] ) {\n if ( ( str_create ) && ( strcmp ( str_create , field -> name ) == 0 ) ) {\n create_stmt_ptr = ( * row ) [ i ] ;\n create_stmt_len = lengths [ i ] ;\n # ifndef DBUG_OFF body_found = 1 ;\n # endif }\n else {\n fputc ( ' ' , xml_file ) ;\n print_quoted_xml ( xml_file , field -> name , field -> name_length , 1 ) ;\n fputs ( \"=\\\"\" , xml_file ) ;\n print_quoted_xml ( xml_file , ( * row ) [ i ] , lengths [ i ] , 0 ) ;\n fputc ( '\"' , xml_file ) ;\n check_io ( xml_file ) ;\n }\n }\n }\n if ( create_stmt_len ) {\n DBUG_ASSERT ( body_found ) ;\n fputs ( \">\\n\" , xml_file ) ;\n print_xml_cdata ( xml_file , create_stmt_ptr , create_stmt_len ) ;\n fprintf ( xml_file , \"\\t\\t</%s>\\n\" , row_name ) ;\n }\n else fputs ( \" />\\n\" , xml_file ) ;\n check_io ( xml_file ) ;\n }"}
{"idx": 20329, "target": 0, "func": "void vp9_loop_filter_frame ( YV12_BUFFER_CONFIG * frame , VP9_COMMON * cm , MACROBLOCKD * xd , int frame_filter_level , int y_only , int partial_frame ) {\n int start_mi_row , end_mi_row , mi_rows_to_filter ;\n if ( ! frame_filter_level ) return ;\n start_mi_row = 0 ;\n mi_rows_to_filter = cm -> mi_rows ;\n if ( partial_frame && cm -> mi_rows > 8 ) {\n start_mi_row = cm -> mi_rows >> 1 ;\n start_mi_row &= 0xfffffff8 ;\n mi_rows_to_filter = MAX ( cm -> mi_rows / 8 , 8 ) ;\n }\n end_mi_row = start_mi_row + mi_rows_to_filter ;\n vp9_loop_filter_frame_init ( cm , frame_filter_level ) ;\n vp9_loop_filter_rows ( frame , cm , xd -> plane , start_mi_row , end_mi_row , y_only ) ;\n }"}
{"idx": 20330, "target": 0, "func": "TEST_F ( FullscreenControllerStateUnitTest , OneCapturedFullscreenedTab ) {\n content : : WebContentsDelegate * const wc_delegate = static_cast < content : : WebContentsDelegate * > ( browser ( ) ) ;\n ASSERT_TRUE ( wc_delegate -> EmbedsFullscreenWidget ( ) ) ;\n AddTab ( browser ( ) , GURL ( url : : kAboutBlankURL ) ) ;\n AddTab ( browser ( ) , GURL ( url : : kAboutBlankURL ) ) ;\n content : : WebContents * const first_tab = browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 0 ) ;\n content : : WebContents * const second_tab = browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 1 ) ;\n browser ( ) -> tab_strip_model ( ) -> ActivateTabAt ( 0 , true ) ;\n const gfx : : Size kCaptureSize ( 1280 , 720 ) ;\n first_tab -> IncrementCapturerCount ( kCaptureSize ) ;\n ASSERT_FALSE ( browser ( ) -> window ( ) -> IsFullscreen ( ) ) ;\n ASSERT_FALSE ( wc_delegate -> IsFullscreenForTabOrPending ( first_tab ) ) ;\n ASSERT_FALSE ( wc_delegate -> IsFullscreenForTabOrPending ( second_tab ) ) ;\n ASSERT_FALSE ( GetFullscreenController ( ) -> IsWindowFullscreenForTabOrPending ( ) ) ;\n ASSERT_TRUE ( InvokeEvent ( TAB_FULLSCREEN_TRUE ) ) ;\n EXPECT_FALSE ( browser ( ) -> window ( ) -> IsFullscreen ( ) ) ;\n EXPECT_TRUE ( wc_delegate -> IsFullscreenForTabOrPending ( first_tab ) ) ;\n EXPECT_FALSE ( wc_delegate -> IsFullscreenForTabOrPending ( second_tab ) ) ;\n EXPECT_FALSE ( GetFullscreenController ( ) -> IsWindowFullscreenForTabOrPending ( ) ) ;\n browser ( ) -> tab_strip_model ( ) -> ActivateTabAt ( 1 , true ) ;\n EXPECT_FALSE ( browser ( ) -> window ( ) -> IsFullscreen ( ) ) ;\n EXPECT_TRUE ( wc_delegate -> IsFullscreenForTabOrPending ( first_tab ) ) ;\n EXPECT_FALSE ( wc_delegate -> IsFullscreenForTabOrPending ( second_tab ) ) ;\n EXPECT_FALSE ( GetFullscreenController ( ) -> IsWindowFullscreenForTabOrPending ( ) ) ;\n # if ! defined ( OS_MACOSX ) EXPECT_EQ ( kCaptureSize , first_tab -> GetViewBounds ( ) . size ( ) ) ;\n # endif browser ( ) -> tab_strip_model ( ) -> ActivateTabAt ( 0 , true ) ;\n EXPECT_FALSE ( browser ( ) -> window ( ) -> IsFullscreen ( ) ) ;\n EXPECT_TRUE ( wc_delegate -> IsFullscreenForTabOrPending ( first_tab ) ) ;\n EXPECT_FALSE ( wc_delegate -> IsFullscreenForTabOrPending ( second_tab ) ) ;\n EXPECT_FALSE ( GetFullscreenController ( ) -> IsWindowFullscreenForTabOrPending ( ) ) ;\n ASSERT_TRUE ( InvokeEvent ( TAB_FULLSCREEN_FALSE ) ) ;\n EXPECT_FALSE ( browser ( ) -> window ( ) -> IsFullscreen ( ) ) ;\n EXPECT_FALSE ( wc_delegate -> IsFullscreenForTabOrPending ( first_tab ) ) ;\n EXPECT_FALSE ( wc_delegate -> IsFullscreenForTabOrPending ( second_tab ) ) ;\n EXPECT_FALSE ( GetFullscreenController ( ) -> IsWindowFullscreenForTabOrPending ( ) ) ;\n }"}
{"idx": 20331, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( FastUnloadTest , DISABLED_WindowCloseFinishesUnload ) {\n NavigateToPage ( \"no_listeners\" ) ;\n EXPECT_EQ ( \"unloaded=ohyeah\" , GetCookies ( \"no_listeners\" ) ) ;\n }"}
{"idx": 20332, "target": 0, "func": "static int parse_CRowSeekByBookmark ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , const char * fmt , ... ) {\n proto_tree * tree ;\n proto_item * item ;\n guint32 num ;\n const char * txt ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CRowsSeekByBookmark , & item , txt ) ;\n num = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_mswsp_crowseekbybookmark_cbookmarks , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n offset = parse_UInt32Array ( tvb , offset , tree , num , \"abookmark\" , \"abookmarks\" ) ;\n num = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_mswsp_crowseekbybookmark_maxret , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n offset = parse_UInt32Array ( tvb , offset , tree , num , \"ascret\" , \"ascret\" ) ;\n proto_item_set_end ( item , tvb , offset ) ;\n return offset ;\n }"}
{"idx": 20333, "target": 0, "func": "static PXA2xxFIrState * pxa2xx_fir_init ( MemoryRegion * sysmem , hwaddr base , qemu_irq irq , qemu_irq rx_dma , qemu_irq tx_dma , CharDriverState * chr ) {\n PXA2xxFIrState * s = ( PXA2xxFIrState * ) g_malloc0 ( sizeof ( PXA2xxFIrState ) ) ;\n s -> irq = irq ;\n s -> rx_dma = rx_dma ;\n s -> tx_dma = tx_dma ;\n s -> chr = chr ;\n pxa2xx_fir_reset ( s ) ;\n memory_region_init_io ( & s -> iomem , NULL , & pxa2xx_fir_ops , s , \"pxa2xx-fir\" , 0x1000 ) ;\n memory_region_add_subregion ( sysmem , base , & s -> iomem ) ;\n if ( chr ) {\n qemu_chr_fe_claim_no_fail ( chr ) ;\n qemu_chr_add_handlers ( chr , pxa2xx_fir_is_empty , pxa2xx_fir_rx , pxa2xx_fir_event , s ) ;\n }\n register_savevm ( NULL , \"pxa2xx_fir\" , 0 , 0 , pxa2xx_fir_save , pxa2xx_fir_load , s ) ;\n return s ;\n }"}
{"idx": 20334, "target": 0, "func": "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 ) {\n uint8_t comp_pred [ m * n ] ;\n vp9_comp_avg_pred ( comp_pred , second_pred , m , n , ref , ref_stride ) ;\n return sad ( src , src_stride , comp_pred , m , m , n ) ;\n \\ }\n # define sadMxNxK ( m , n , k ) void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 )"}
{"idx": 20335, "target": 0, "func": "static void array_cleanup ( char * arr [ ] , int arr_size ) {\n int i = 0 ;\n for ( i = 0 ;\n i < arr_size ;\n i ++ ) {\n if ( arr [ i * 2 ] ) {\n efree ( arr [ i * 2 ] ) ;\n }\n }\n efree ( arr ) ;\n }"}
{"idx": 20336, "target": 0, "func": "static inline size_t SALEN ( struct sockaddr * sa ) {\n switch ( sa -> sa_family ) {\n case AF_INET : return ( sizeof ( struct sockaddr_in ) ) ;\n case AF_INET6 : return ( sizeof ( struct sockaddr_in6 ) ) ;\n default : return 0 ;\n }\n }"}
{"idx": 20337, "target": 0, "func": "static int nntp_msg_open ( struct Context * ctx , struct Message * msg , int msgno ) {\n struct NntpData * nntp_data = ctx -> data ;\n struct Header * hdr = ctx -> hdrs [ msgno ] ;\n char article [ 16 ] ;\n struct NntpAcache * acache = & nntp_data -> acache [ hdr -> index % NNTP_ACACHE_LEN ] ;\n if ( acache -> path ) {\n if ( acache -> index == hdr -> index ) {\n msg -> fp = mutt_file_fopen ( acache -> path , \"r\" ) ;\n if ( msg -> fp ) return 0 ;\n }\n else {\n unlink ( acache -> path ) ;\n FREE ( & acache -> path ) ;\n }\n }\n snprintf ( article , sizeof ( article ) , \"%d\" , NHDR ( hdr ) -> article_num ) ;\n msg -> fp = mutt_bcache_get ( nntp_data -> bcache , article ) ;\n if ( msg -> fp ) {\n if ( NHDR ( hdr ) -> parsed ) return 0 ;\n }\n else {\n char buf [ PATH_MAX ] ;\n if ( nntp_data -> deleted ) return - 1 ;\n const char * fetch_msg = _ ( \"Fetching message...\" ) ;\n mutt_message ( fetch_msg ) ;\n msg -> fp = mutt_bcache_put ( nntp_data -> bcache , article ) ;\n if ( ! msg -> fp ) {\n mutt_mktemp ( buf , sizeof ( buf ) ) ;\n acache -> path = mutt_str_strdup ( buf ) ;\n acache -> index = hdr -> index ;\n msg -> fp = mutt_file_fopen ( acache -> path , \"w+\" ) ;\n if ( ! msg -> fp ) {\n mutt_perror ( acache -> path ) ;\n unlink ( acache -> path ) ;\n FREE ( & acache -> path ) ;\n return - 1 ;\n }\n }\n snprintf ( buf , sizeof ( buf ) , \"ARTICLE %s\\r\\n\" , NHDR ( hdr ) -> article_num ? article : hdr -> env -> message_id ) ;\n const int rc = nntp_fetch_lines ( nntp_data , buf , sizeof ( buf ) , fetch_msg , fetch_tempfile , msg -> fp ) ;\n if ( rc ) {\n mutt_file_fclose ( & msg -> fp ) ;\n if ( acache -> path ) {\n unlink ( acache -> path ) ;\n FREE ( & acache -> path ) ;\n }\n if ( rc > 0 ) {\n if ( mutt_str_strncmp ( NHDR ( hdr ) -> article_num ? \"423\" : \"430\" , buf , 3 ) == 0 ) {\n mutt_error ( _ ( \"Article %d not found on the server.\" ) , NHDR ( hdr ) -> article_num ? article : hdr -> env -> message_id ) ;\n }\n else mutt_error ( \"ARTICLE: %s\" , buf ) ;\n }\n return - 1 ;\n }\n if ( ! acache -> path ) mutt_bcache_commit ( nntp_data -> bcache , article ) ;\n }\n if ( ctx -> id_hash && hdr -> env -> message_id ) mutt_hash_delete ( ctx -> id_hash , hdr -> env -> message_id , hdr ) ;\n if ( ctx -> subj_hash && hdr -> env -> real_subj ) mutt_hash_delete ( ctx -> subj_hash , hdr -> env -> real_subj , hdr ) ;\n mutt_env_free ( & hdr -> env ) ;\n hdr -> env = mutt_rfc822_read_header ( msg -> fp , hdr , 0 , 0 ) ;\n if ( ctx -> id_hash && hdr -> env -> message_id ) mutt_hash_insert ( ctx -> id_hash , hdr -> env -> message_id , hdr ) ;\n if ( ctx -> subj_hash && hdr -> env -> real_subj ) mutt_hash_insert ( ctx -> subj_hash , hdr -> env -> real_subj , hdr ) ;\n fseek ( msg -> fp , 0 , SEEK_END ) ;\n hdr -> content -> length = ftell ( msg -> fp ) - hdr -> content -> offset ;\n NHDR ( hdr ) -> parsed = true ;\n mutt_parse_mime_message ( ctx , hdr ) ;\n if ( WithCrypto ) hdr -> security = crypt_query ( hdr -> content ) ;\n rewind ( msg -> fp ) ;\n mutt_clear_error ( ) ;\n return 0 ;\n }"}
{"idx": 20338, "target": 0, "func": "int dtls1_send_server_certificate ( SSL * s ) {\n unsigned long l ;\n X509 * x ;\n if ( s -> state == SSL3_ST_SW_CERT_A ) {\n x = ssl_get_server_send_cert ( s ) ;\n if ( x == NULL ) {\n if ( ( s -> s3 -> tmp . new_cipher -> algorithm_mkey != SSL_kKRB5 ) || ( s -> s3 -> tmp . new_cipher -> algorithm_auth != SSL_aKRB5 ) ) {\n SSLerr ( SSL_F_DTLS1_SEND_SERVER_CERTIFICATE , ERR_R_INTERNAL_ERROR ) ;\n return ( 0 ) ;\n }\n }\n l = dtls1_output_cert_chain ( s , x ) ;\n if ( ! l ) {\n SSLerr ( SSL_F_DTLS1_SEND_SERVER_CERTIFICATE , ERR_R_INTERNAL_ERROR ) ;\n return ( 0 ) ;\n }\n s -> state = SSL3_ST_SW_CERT_B ;\n s -> init_num = ( int ) l ;\n s -> init_off = 0 ;\n dtls1_buffer_message ( s , 0 ) ;\n }\n return ( dtls1_do_write ( s , SSL3_RT_HANDSHAKE ) ) ;\n }"}
{"idx": 20339, "target": 0, "func": "static bool feature_control_needed ( void * opaque ) {\n X86CPU * cpu = opaque ;\n CPUX86State * env = & cpu -> env ;\n return env -> msr_ia32_feature_control != 0 ;\n }"}
{"idx": 20340, "target": 0, "func": "METHOD ( stroke_socket_t , destroy , void , private_stroke_socket_t * this ) {\n DESTROY_IF ( this -> service ) ;\n lib -> credmgr -> remove_set ( lib -> credmgr , & this -> ca -> set ) ;\n lib -> credmgr -> remove_set ( lib -> credmgr , & this -> cred -> set ) ;\n charon -> backends -> remove_backend ( charon -> backends , & this -> config -> backend ) ;\n charon -> attributes -> remove_provider ( charon -> attributes , & this -> attribute -> provider ) ;\n charon -> attributes -> remove_handler ( charon -> attributes , & this -> handler -> handler ) ;\n this -> cred -> destroy ( this -> cred ) ;\n this -> ca -> destroy ( this -> ca ) ;\n this -> config -> destroy ( this -> config ) ;\n this -> attribute -> destroy ( this -> attribute ) ;\n this -> handler -> destroy ( this -> handler ) ;\n this -> control -> destroy ( this -> control ) ;\n this -> list -> destroy ( this -> list ) ;\n this -> counter -> destroy ( this -> counter ) ;\n free ( this ) ;\n }"}
{"idx": 20341, "target": 1, "func": "static int qtrle_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n QtrleContext * s = avctx -> priv_data ;\n int header , start_line ;\n int height , row_ptr ;\n int has_palette = 0 ;\n int ret ;\n bytestream2_init ( & s -> g , avpkt -> data , avpkt -> size ) ;\n s -> frame . reference = 1 ;\n s -> frame . buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE | FF_BUFFER_HINTS_READABLE ;\n if ( ( ret = avctx -> reget_buffer ( avctx , & s -> frame ) ) < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"reget_buffer() failed\\n\" ) ;\n return ret ;\n }\n if ( avpkt -> size < 8 ) goto done ;\n bytestream2_seek ( & s -> g , 4 , SEEK_SET ) ;\n header = bytestream2_get_be16 ( & s -> g ) ;\n if ( header & 0x0008 ) {\n if ( avpkt -> size < 14 ) goto done ;\n start_line = bytestream2_get_be16 ( & s -> g ) ;\n bytestream2_skip ( & s -> g , 2 ) ;\n height = bytestream2_get_be16 ( & s -> g ) ;\n bytestream2_skip ( & s -> g , 2 ) ;\n }\n else {\n start_line = 0 ;\n height = s -> avctx -> height ;\n }\n row_ptr = s -> frame . linesize [ 0 ] * start_line ;\n switch ( avctx -> bits_per_coded_sample ) {\n case 1 : case 33 : qtrle_decode_1bpp ( s , row_ptr , height ) ;\n break ;\n case 2 : case 34 : qtrle_decode_2n4bpp ( s , row_ptr , height , 2 ) ;\n has_palette = 1 ;\n break ;\n case 4 : case 36 : qtrle_decode_2n4bpp ( s , row_ptr , height , 4 ) ;\n has_palette = 1 ;\n break ;\n case 8 : case 40 : qtrle_decode_8bpp ( s , row_ptr , height ) ;\n has_palette = 1 ;\n break ;\n case 16 : qtrle_decode_16bpp ( s , row_ptr , height ) ;\n break ;\n case 24 : qtrle_decode_24bpp ( s , row_ptr , height ) ;\n break ;\n case 32 : qtrle_decode_32bpp ( s , row_ptr , height ) ;\n break ;\n default : av_log ( s -> avctx , AV_LOG_ERROR , \"Unsupported colorspace: %d bits/sample?\\n\" , avctx -> bits_per_coded_sample ) ;\n break ;\n }\n if ( has_palette ) {\n const uint8_t * pal = av_packet_get_side_data ( avpkt , AV_PKT_DATA_PALETTE , NULL ) ;\n if ( pal ) {\n s -> frame . palette_has_changed = 1 ;\n memcpy ( s -> pal , pal , AVPALETTE_SIZE ) ;\n }\n memcpy ( s -> frame . data [ 1 ] , s -> pal , AVPALETTE_SIZE ) ;\n }\n done : * got_frame = 1 ;\n * ( AVFrame * ) data = s -> frame ;\n return avpkt -> size ;\n }"}
{"idx": 20342, "target": 1, "func": "static void fill_vaapi_pic ( VAPictureH264 * va_pic , Picture * pic , int pic_structure ) {\n if ( pic_structure == 0 ) pic_structure = pic -> f . reference ;\n pic_structure &= PICT_FRAME ;\n va_pic -> picture_id = ff_vaapi_get_surface_id ( pic ) ;\n va_pic -> frame_idx = pic -> long_ref ? pic -> pic_id : pic -> frame_num ;\n va_pic -> flags = 0 ;\n if ( pic_structure != PICT_FRAME ) va_pic -> flags |= ( pic_structure & PICT_TOP_FIELD ) ? VA_PICTURE_H264_TOP_FIELD : VA_PICTURE_H264_BOTTOM_FIELD ;\n if ( pic -> f . reference ) va_pic -> flags |= pic -> long_ref ? VA_PICTURE_H264_LONG_TERM_REFERENCE : VA_PICTURE_H264_SHORT_TERM_REFERENCE ;\n va_pic -> TopFieldOrderCnt = 0 ;\n if ( pic -> field_poc [ 0 ] != INT_MAX ) va_pic -> TopFieldOrderCnt = pic -> field_poc [ 0 ] ;\n va_pic -> BottomFieldOrderCnt = 0 ;\n if ( pic -> field_poc [ 1 ] != INT_MAX ) va_pic -> BottomFieldOrderCnt = pic -> field_poc [ 1 ] ;\n }"}
{"idx": 20343, "target": 0, "func": "static int archive_read_format_ar_read_data ( struct archive_read * a , const void * * buff , size_t * size , int64_t * offset ) {\n ssize_t bytes_read ;\n struct ar * ar ;\n ar = ( struct ar * ) ( a -> format -> data ) ;\n if ( ar -> entry_bytes_unconsumed ) {\n __archive_read_consume ( a , ar -> entry_bytes_unconsumed ) ;\n ar -> entry_bytes_unconsumed = 0 ;\n }\n if ( ar -> entry_bytes_remaining > 0 ) {\n * buff = __archive_read_ahead ( a , 1 , & bytes_read ) ;\n if ( bytes_read == 0 ) {\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"Truncated ar archive\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n if ( bytes_read < 0 ) return ( ARCHIVE_FATAL ) ;\n if ( bytes_read > ar -> entry_bytes_remaining ) bytes_read = ( ssize_t ) ar -> entry_bytes_remaining ;\n * size = bytes_read ;\n ar -> entry_bytes_unconsumed = bytes_read ;\n * offset = ar -> entry_offset ;\n ar -> entry_offset += bytes_read ;\n ar -> entry_bytes_remaining -= bytes_read ;\n return ( ARCHIVE_OK ) ;\n }\n else {\n int64_t skipped = __archive_read_consume ( a , ar -> entry_padding ) ;\n if ( skipped >= 0 ) {\n ar -> entry_padding -= skipped ;\n }\n if ( ar -> entry_padding ) {\n if ( skipped >= 0 ) {\n archive_set_error ( & a -> archive , ARCHIVE_ERRNO_MISC , \"Truncated ar archive- failed consuming padding\" ) ;\n }\n return ( ARCHIVE_FATAL ) ;\n }\n * buff = NULL ;\n * size = 0 ;\n * offset = ar -> entry_offset ;\n return ( ARCHIVE_EOF ) ;\n }\n }"}
{"idx": 20344, "target": 0, "func": "static void SRP_gN_free ( SRP_gN_cache * gN_cache ) {\n if ( gN_cache == NULL ) return ;\n OPENSSL_free ( gN_cache -> b64_bn ) ;\n BN_free ( gN_cache -> bn ) ;\n OPENSSL_free ( gN_cache ) ;\n }"}
{"idx": 20345, "target": 0, "func": "void proto_register_fields_manual ( const int parent , header_field_info * * hfi , const int num_records ) {\n int i ;\n protocol_t * proto ;\n proto = find_protocol_by_id ( parent ) ;\n for ( i = 0 ;\n i < num_records ;\n i ++ ) {\n if ( hfi [ i ] -> id != - 1 ) {\n fprintf ( stderr , \"Duplicate field detected in call to proto_register_fields: %s is already registered\\n\" , hfi [ i ] -> abbrev ) ;\n return ;\n }\n proto_register_field_common ( proto , hfi [ i ] , parent ) ;\n }\n }"}
{"idx": 20346, "target": 0, "func": "static int jas_strtoopenmode ( const char * s ) {\n int openmode = 0 ;\n while ( * s != '\\0' ) {\n switch ( * s ) {\n case 'r' : openmode |= JAS_STREAM_READ ;\n break ;\n case 'w' : openmode |= JAS_STREAM_WRITE | JAS_STREAM_CREATE ;\n break ;\n case 'b' : openmode |= JAS_STREAM_BINARY ;\n break ;\n case 'a' : openmode |= JAS_STREAM_APPEND ;\n break ;\n case '+' : openmode |= JAS_STREAM_READ | JAS_STREAM_WRITE ;\n break ;\n default : break ;\n }\n ++ s ;\n }\n return openmode ;\n }"}
{"idx": 20347, "target": 0, "func": "static inline bool is_joiner ( const hb_glyph_info_t & info ) {\n return is_one_of ( info , JOINER_FLAGS ) ;\n }"}
{"idx": 20348, "target": 0, "func": "static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {\n int h , w , ret ;\n AVFrame * pic = data ;\n const uint32_t * src = ( const uint32_t * ) avpkt -> data ;\n int aligned_width = FFALIGN ( avctx -> width , 64 ) ;\n uint8_t * dst_line ;\n if ( avpkt -> size < 4 * aligned_width * avctx -> height ) {\n av_log ( avctx , AV_LOG_ERROR , \"packet too small\\n\" ) ;\n return AVERROR_INVALIDDATA ;\n }\n if ( ( ret = ff_get_buffer ( avctx , pic , 0 ) ) < 0 ) return ret ;\n pic -> pict_type = AV_PICTURE_TYPE_I ;\n pic -> key_frame = 1 ;\n dst_line = pic -> data [ 0 ] ;\n for ( h = 0 ;\n h < avctx -> height ;\n h ++ ) {\n uint16_t * dst = ( uint16_t * ) dst_line ;\n for ( w = 0 ;\n w < avctx -> width ;\n w ++ ) {\n uint32_t pixel = av_be2ne32 ( * src ++ ) ;\n uint16_t r , g , b ;\n if ( avctx -> codec_id == AV_CODEC_ID_R210 ) {\n b = pixel << 6 ;\n g = ( pixel >> 4 ) & 0xffc0 ;\n r = ( pixel >> 14 ) & 0xffc0 ;\n }\n else {\n b = pixel << 4 ;\n g = ( pixel >> 6 ) & 0xffc0 ;\n r = ( pixel >> 16 ) & 0xffc0 ;\n }\n * dst ++ = r | ( r >> 10 ) ;\n * dst ++ = g | ( g >> 10 ) ;\n * dst ++ = b | ( b >> 10 ) ;\n }\n src += aligned_width - avctx -> width ;\n dst_line += pic -> linesize [ 0 ] ;\n }\n * got_frame = 1 ;\n return avpkt -> size ;\n }"}
{"idx": 20349, "target": 0, "func": "static void fz_md5_icc ( fz_context * ctx , fz_iccprofile * profile ) {\n if ( profile ) fz_md5_buffer ( ctx , profile -> buffer , profile -> md5 ) ;\n }"}
{"idx": 20350, "target": 0, "func": "static int print_lcp_config_options ( netdissect_options * ndo , const u_char * p , int length ) {\n int len , opt ;\n if ( length < 2 ) return 0 ;\n ND_TCHECK2 ( * p , 2 ) ;\n len = p [ 1 ] ;\n opt = p [ 0 ] ;\n if ( length < len ) return 0 ;\n if ( len < 2 ) {\n if ( ( opt >= LCPOPT_MIN ) && ( opt <= LCPOPT_MAX ) ) ND_PRINT ( ( ndo , \"\\n\\t %s Option (0x%02x), length %u (length bogus, should be >= 2)\" , lcpconfopts [ opt ] , opt , len ) ) ;\n else ND_PRINT ( ( ndo , \"\\n\\tunknown LCP option 0x%02x\" , opt ) ) ;\n return 0 ;\n }\n if ( ( opt >= LCPOPT_MIN ) && ( opt <= LCPOPT_MAX ) ) ND_PRINT ( ( ndo , \"\\n\\t %s Option (0x%02x), length %u\" , lcpconfopts [ opt ] , opt , len ) ) ;\n else {\n ND_PRINT ( ( ndo , \"\\n\\tunknown LCP option 0x%02x\" , opt ) ) ;\n return len ;\n }\n switch ( opt ) {\n case LCPOPT_VEXT : if ( len < 6 ) {\n ND_PRINT ( ( ndo , \" (length bogus, should be >= 6)\" ) ) ;\n return len ;\n }\n ND_TCHECK2 ( * ( p + 2 ) , 3 ) ;\n ND_PRINT ( ( ndo , \": Vendor: %s (%u)\" , tok2str ( oui_values , \"Unknown\" , EXTRACT_24BITS ( p + 2 ) ) , EXTRACT_24BITS ( p + 2 ) ) ) ;\n # if 0 ND_TCHECK ( p [ 5 ] ) ;\n ND_PRINT ( ( ndo , \", kind: 0x%02x\" , p [ 5 ] ) ) ;\n ND_PRINT ( ( ndo , \", Value: 0x\" ) ) ;\n for ( i = 0 ;\n i < len - 6 ;\n i ++ ) {\n ND_TCHECK ( p [ 6 + i ] ) ;\n ND_PRINT ( ( ndo , \"%02x\" , p [ 6 + i ] ) ) ;\n }\n # endif break ;\n case LCPOPT_MRU : if ( len != 4 ) {\n ND_PRINT ( ( ndo , \" (length bogus, should be = 4)\" ) ) ;\n return len ;\n }\n ND_TCHECK2 ( * ( p + 2 ) , 2 ) ;\n ND_PRINT ( ( ndo , \": %u\" , EXTRACT_16BITS ( p + 2 ) ) ) ;\n break ;\n case LCPOPT_ACCM : if ( len != 6 ) {\n ND_PRINT ( ( ndo , \" (length bogus, should be = 6)\" ) ) ;\n return len ;\n }\n ND_TCHECK2 ( * ( p + 2 ) , 4 ) ;\n ND_PRINT ( ( ndo , \": 0x%08x\" , EXTRACT_32BITS ( p + 2 ) ) ) ;\n break ;\n case LCPOPT_AP : if ( len < 4 ) {\n ND_PRINT ( ( ndo , \" (length bogus, should be >= 4)\" ) ) ;\n return len ;\n }\n ND_TCHECK2 ( * ( p + 2 ) , 2 ) ;\n ND_PRINT ( ( ndo , \": %s\" , tok2str ( ppptype2str , \"Unknown Auth Proto (0x04x)\" , EXTRACT_16BITS ( p + 2 ) ) ) ) ;\n switch ( EXTRACT_16BITS ( p + 2 ) ) {\n case PPP_CHAP : ND_TCHECK ( p [ 4 ] ) ;\n ND_PRINT ( ( ndo , \", %s\" , tok2str ( authalg_values , \"Unknown Auth Alg %u\" , p [ 4 ] ) ) ) ;\n break ;\n case PPP_PAP : case PPP_EAP : case PPP_SPAP : case PPP_SPAP_OLD : break ;\n default : print_unknown_data ( ndo , p , \"\\n\\t\" , len ) ;\n }\n break ;\n case LCPOPT_QP : if ( len < 4 ) {\n ND_PRINT ( ( ndo , \" (length bogus, should be >= 4)\" ) ) ;\n return 0 ;\n }\n ND_TCHECK2 ( * ( p + 2 ) , 2 ) ;\n if ( EXTRACT_16BITS ( p + 2 ) == PPP_LQM ) ND_PRINT ( ( ndo , \": LQR\" ) ) ;\n else ND_PRINT ( ( ndo , \": unknown\" ) ) ;\n break ;\n case LCPOPT_MN : if ( len != 6 ) {\n ND_PRINT ( ( ndo , \" (length bogus, should be = 6)\" ) ) ;\n return 0 ;\n }\n ND_TCHECK2 ( * ( p + 2 ) , 4 ) ;\n ND_PRINT ( ( ndo , \": 0x%08x\" , EXTRACT_32BITS ( p + 2 ) ) ) ;\n break ;\n case LCPOPT_PFC : break ;\n case LCPOPT_ACFC : break ;\n case LCPOPT_LD : if ( len != 4 ) {\n ND_PRINT ( ( ndo , \" (length bogus, should be = 4)\" ) ) ;\n return 0 ;\n }\n ND_TCHECK2 ( * ( p + 2 ) , 2 ) ;\n ND_PRINT ( ( ndo , \": 0x%04x\" , EXTRACT_16BITS ( p + 2 ) ) ) ;\n break ;\n case LCPOPT_CBACK : if ( len < 3 ) {\n ND_PRINT ( ( ndo , \" (length bogus, should be >= 3)\" ) ) ;\n return 0 ;\n }\n ND_PRINT ( ( ndo , \": \" ) ) ;\n ND_TCHECK ( p [ 2 ] ) ;\n ND_PRINT ( ( ndo , \": Callback Operation %s (%u)\" , tok2str ( ppp_callback_values , \"Unknown\" , p [ 2 ] ) , p [ 2 ] ) ) ;\n break ;\n case LCPOPT_MLMRRU : if ( len != 4 ) {\n ND_PRINT ( ( ndo , \" (length bogus, should be = 4)\" ) ) ;\n return 0 ;\n }\n ND_TCHECK2 ( * ( p + 2 ) , 2 ) ;\n ND_PRINT ( ( ndo , \": %u\" , EXTRACT_16BITS ( p + 2 ) ) ) ;\n break ;\n case LCPOPT_MLED : if ( len < 3 ) {\n ND_PRINT ( ( ndo , \" (length bogus, should be >= 3)\" ) ) ;\n return 0 ;\n }\n ND_TCHECK ( p [ 2 ] ) ;\n switch ( p [ 2 ] ) {\n case MEDCLASS_NULL : ND_PRINT ( ( ndo , \": Null\" ) ) ;\n break ;\n case MEDCLASS_LOCAL : ND_PRINT ( ( ndo , \": Local\" ) ) ;\n break ;\n case MEDCLASS_IPV4 : if ( len != 7 ) {\n ND_PRINT ( ( ndo , \" (length bogus, should be = 7)\" ) ) ;\n return 0 ;\n }\n ND_TCHECK2 ( * ( p + 3 ) , 4 ) ;\n ND_PRINT ( ( ndo , \": IPv4 %s\" , ipaddr_string ( ndo , p + 3 ) ) ) ;\n break ;\n case MEDCLASS_MAC : if ( len != 9 ) {\n ND_PRINT ( ( ndo , \" (length bogus, should be = 9)\" ) ) ;\n return 0 ;\n }\n ND_TCHECK2 ( * ( p + 3 ) , 6 ) ;\n ND_PRINT ( ( ndo , \": MAC %s\" , etheraddr_string ( ndo , p + 3 ) ) ) ;\n break ;\n case MEDCLASS_MNB : ND_PRINT ( ( ndo , \": Magic-Num-Block\" ) ) ;\n break ;\n case MEDCLASS_PSNDN : ND_PRINT ( ( ndo , \": PSNDN\" ) ) ;\n break ;\n default : ND_PRINT ( ( ndo , \": Unknown class %u\" , p [ 2 ] ) ) ;\n break ;\n }\n break ;\n # if 0 case LCPOPT_DEP6 : case LCPOPT_FCSALT : case LCPOPT_SDP : case LCPOPT_NUMMODE : case LCPOPT_DEP12 : case LCPOPT_DEP14 : case LCPOPT_DEP15 : case LCPOPT_DEP16 : case LCPOPT_MLSSNHF : case LCPOPT_PROP : case LCPOPT_DCEID : case LCPOPT_MPP : case LCPOPT_LCPAOPT : case LCPOPT_COBS : case LCPOPT_PE : case LCPOPT_MLHF : case LCPOPT_I18N : case LCPOPT_SDLOS : case LCPOPT_PPPMUX : break ;\n # endif default : if ( ndo -> ndo_vflag < 2 ) print_unknown_data ( ndo , & p [ 2 ] , \"\\n\\t \" , len - 2 ) ;\n break ;\n }\n if ( ndo -> ndo_vflag > 1 ) print_unknown_data ( ndo , & p [ 2 ] , \"\\n\\t \" , len - 2 ) ;\n return len ;\n trunc : ND_PRINT ( ( ndo , \"[|lcp]\" ) ) ;\n return 0 ;\n }"}
{"idx": 20351, "target": 0, "func": "Oid get_range_subtype ( Oid rangeOid ) {\n HeapTuple tp ;\n tp = SearchSysCache1 ( RANGETYPE , ObjectIdGetDatum ( rangeOid ) ) ;\n if ( HeapTupleIsValid ( tp ) ) {\n Form_pg_range rngtup = ( Form_pg_range ) GETSTRUCT ( tp ) ;\n Oid result ;\n result = rngtup -> rngsubtype ;\n ReleaseSysCache ( tp ) ;\n return result ;\n }\n else return InvalidOid ;\n }"}
{"idx": 20352, "target": 0, "func": "TSUuid TSProcessUuidGet ( void ) {\n Machine * machine = Machine : : instance ( ) ;\n return ( TSUuid ) ( & machine -> uuid ) ;\n }"}
{"idx": 20353, "target": 0, "func": "static AVRational var_read_float ( AVIOContext * pb , int size ) {\n AVRational v ;\n char * s = var_read_string ( pb , size ) ;\n if ( ! s ) return ( AVRational ) {\n 0 , 0 }\n ;\n v = av_d2q ( av_strtod ( s , NULL ) , INT_MAX ) ;\n av_free ( s ) ;\n return v ;\n }"}
{"idx": 20354, "target": 0, "func": "const char * TSUrlPathGet ( TSMBuffer bufp , TSMLoc obj , int * length ) {\n return URLPartGet ( bufp , obj , length , & URL : : path_get ) ;\n }"}
{"idx": 20355, "target": 0, "func": "static int ipvideo_decode_block_opcode_0x6 ( IpvideoContext * s , AVFrame * frame ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \" Interplay video: Help! Mystery opcode 0x6 seen\\n\" ) ;\n return 0 ;\n }"}
{"idx": 20356, "target": 0, "func": "u_char * evbuffer_find ( struct evbuffer * buffer , const u_char * what , size_t len ) {\n u_char * search = buffer -> buffer , * end = search + buffer -> off ;\n u_char * p ;\n while ( search < end && ( p = memchr ( search , * what , end - search ) ) != NULL ) {\n if ( p + len > end ) break ;\n if ( memcmp ( p , what , len ) == 0 ) return ( p ) ;\n search = p + 1 ;\n }\n return ( NULL ) ;\n }"}
{"idx": 20357, "target": 0, "func": "static void xmlencode_print ( const char * src , uint length ) {\n if ( ! src ) tee_fputs ( \"NULL\" , PAGER ) ;\n else {\n for ( const char * p = src ;\n length ;\n p ++ , length -- ) {\n const char * t ;\n if ( ( t = array_value ( xmlmeta , * p ) ) ) tee_fputs ( t , PAGER ) ;\n else tee_putc ( * p , PAGER ) ;\n }\n }\n }"}
{"idx": 20358, "target": 0, "func": "void parseResultMask ( proto_tree * tree , tvbuff_t * tvb , packet_info * pinfo _U_ , gint * pOffset ) {\n static const int * browseresult_mask [ ] = {\n & hf_opcua_resultMask_referencetype , & hf_opcua_resultMask_isforward , & hf_opcua_resultMask_nodeclass , & hf_opcua_resultMask_browsename , & hf_opcua_resultMask_displayname , & hf_opcua_resultMask_typedefinition , NULL }\n ;\n guint8 ResultMask = tvb_get_guint8 ( tvb , * pOffset ) ;\n if ( ResultMask == RESULTMASK_ALL ) {\n proto_tree_add_item ( tree , hf_opcua_resultMask_all , tvb , * pOffset , 4 , ENC_LITTLE_ENDIAN ) ;\n }\n else {\n proto_tree_add_bitmask ( tree , tvb , * pOffset , hf_opcua_resultMask , ett_opcua_resultMask , browseresult_mask , ENC_LITTLE_ENDIAN ) ;\n }\n * pOffset += 4 ;\n }"}
{"idx": 20359, "target": 1, "func": "static inline int rawv6_rcv_skb ( struct sock * sk , struct sk_buff * skb ) {\n if ( ( raw6_sk ( sk ) -> checksum || sk -> sk_filter ) && skb_checksum_complete ( skb ) ) {\n atomic_inc ( & sk -> sk_drops ) ;\n kfree_skb ( skb ) ;\n return NET_RX_DROP ;\n }\n if ( sock_queue_rcv_skb ( sk , skb ) < 0 ) {\n kfree_skb ( skb ) ;\n return NET_RX_DROP ;\n }\n return 0 ;\n }"}
{"idx": 20360, "target": 0, "func": "static void U_CALLCONV lenient8IteratorSetState ( UCharIterator * iter , uint32_t state , UErrorCode * pErrorCode ) {\n if ( pErrorCode == NULL || U_FAILURE ( * pErrorCode ) ) {\n }\n else if ( iter == NULL ) {\n * pErrorCode = U_ILLEGAL_ARGUMENT_ERROR ;\n }\n else if ( state == lenient8IteratorGetState ( iter ) ) {\n }\n else {\n int32_t index = ( int32_t ) ( state >> 1 ) ;\n state &= 1 ;\n if ( ( state == 0 ? index < 0 : index < 4 ) || iter -> limit < index ) {\n * pErrorCode = U_INDEX_OUTOFBOUNDS_ERROR ;\n }\n else {\n iter -> start = index ;\n if ( index <= 1 ) {\n iter -> index = index ;\n }\n else {\n iter -> index = - 1 ;\n }\n if ( state == 0 ) {\n iter -> reservedField = 0 ;\n }\n else {\n UChar32 c ;\n L8_PREV ( ( const uint8_t * ) iter -> context , 0 , index , c ) ;\n if ( c <= 0xffff ) {\n * pErrorCode = U_INDEX_OUTOFBOUNDS_ERROR ;\n }\n else {\n iter -> reservedField = c ;\n }\n }\n }\n }\n }"}
{"idx": 20361, "target": 0, "func": "static int selinux_set_mnt_opts ( struct super_block * sb , struct security_mnt_opts * opts , unsigned long kern_flags , unsigned long * set_kern_flags ) {\n const struct cred * cred = current_cred ( ) ;\n int rc = 0 , i ;\n struct superblock_security_struct * sbsec = sb -> s_security ;\n const char * name = sb -> s_type -> name ;\n struct dentry * root = sbsec -> sb -> s_root ;\n struct inode_security_struct * root_isec ;\n u32 fscontext_sid = 0 , context_sid = 0 , rootcontext_sid = 0 ;\n u32 defcontext_sid = 0 ;\n char * * mount_options = opts -> mnt_opts ;\n int * flags = opts -> mnt_opts_flags ;\n int num_opts = opts -> num_mnt_opts ;\n mutex_lock ( & sbsec -> lock ) ;\n if ( ! ss_initialized ) {\n if ( ! num_opts ) {\n goto out ;\n }\n rc = - EINVAL ;\n printk ( KERN_WARNING \"SELinux: Unable to set superblock options \" \"before the security server is initialized\\n\" ) ;\n goto out ;\n }\n if ( kern_flags && ! set_kern_flags ) {\n rc = - EINVAL ;\n goto out ;\n }\n if ( ( sbsec -> flags & SE_SBINITIALIZED ) && ( sb -> s_type -> fs_flags & FS_BINARY_MOUNTDATA ) && ( num_opts == 0 ) ) goto out ;\n root_isec = backing_inode_security_novalidate ( root ) ;\n for ( i = 0 ;\n i < num_opts ;\n i ++ ) {\n u32 sid ;\n if ( flags [ i ] == SBLABEL_MNT ) continue ;\n rc = security_context_str_to_sid ( mount_options [ i ] , & sid , GFP_KERNEL ) ;\n if ( rc ) {\n printk ( KERN_WARNING \"SELinux: security_context_str_to_sid\" \"(%s) failed for (dev %s, type %s) errno=%d\\n\" , mount_options [ i ] , sb -> s_id , name , rc ) ;\n goto out ;\n }\n switch ( flags [ i ] ) {\n case FSCONTEXT_MNT : fscontext_sid = sid ;\n if ( bad_option ( sbsec , FSCONTEXT_MNT , sbsec -> sid , fscontext_sid ) ) goto out_double_mount ;\n sbsec -> flags |= FSCONTEXT_MNT ;\n break ;\n case CONTEXT_MNT : context_sid = sid ;\n if ( bad_option ( sbsec , CONTEXT_MNT , sbsec -> mntpoint_sid , context_sid ) ) goto out_double_mount ;\n sbsec -> flags |= CONTEXT_MNT ;\n break ;\n case ROOTCONTEXT_MNT : rootcontext_sid = sid ;\n if ( bad_option ( sbsec , ROOTCONTEXT_MNT , root_isec -> sid , rootcontext_sid ) ) goto out_double_mount ;\n sbsec -> flags |= ROOTCONTEXT_MNT ;\n break ;\n case DEFCONTEXT_MNT : defcontext_sid = sid ;\n if ( bad_option ( sbsec , DEFCONTEXT_MNT , sbsec -> def_sid , defcontext_sid ) ) goto out_double_mount ;\n sbsec -> flags |= DEFCONTEXT_MNT ;\n break ;\n default : rc = - EINVAL ;\n goto out ;\n }\n }\n if ( sbsec -> flags & SE_SBINITIALIZED ) {\n if ( ( sbsec -> flags & SE_MNTMASK ) && ! num_opts ) goto out_double_mount ;\n rc = 0 ;\n goto out ;\n }\n if ( strcmp ( sb -> s_type -> name , \"proc\" ) == 0 ) sbsec -> flags |= SE_SBPROC | SE_SBGENFS ;\n if ( ! strcmp ( sb -> s_type -> name , \"debugfs\" ) || ! strcmp ( sb -> s_type -> name , \"sysfs\" ) || ! strcmp ( sb -> s_type -> name , \"pstore\" ) ) sbsec -> flags |= SE_SBGENFS ;\n if ( ! sbsec -> behavior ) {\n rc = security_fs_use ( sb ) ;\n if ( rc ) {\n printk ( KERN_WARNING \"%s: security_fs_use(%s) returned %d\\n\" , __func__ , sb -> s_type -> name , rc ) ;\n goto out ;\n }\n }\n if ( sb -> s_user_ns != & init_user_ns ) {\n if ( context_sid || fscontext_sid || rootcontext_sid || defcontext_sid ) {\n rc = - EACCES ;\n goto out ;\n }\n if ( sbsec -> behavior == SECURITY_FS_USE_XATTR ) {\n sbsec -> behavior = SECURITY_FS_USE_MNTPOINT ;\n rc = security_transition_sid ( current_sid ( ) , current_sid ( ) , SECCLASS_FILE , NULL , & sbsec -> mntpoint_sid ) ;\n if ( rc ) goto out ;\n }\n goto out_set_opts ;\n }\n if ( fscontext_sid ) {\n rc = may_context_mount_sb_relabel ( fscontext_sid , sbsec , cred ) ;\n if ( rc ) goto out ;\n sbsec -> sid = fscontext_sid ;\n }\n if ( kern_flags & SECURITY_LSM_NATIVE_LABELS && ! context_sid ) {\n sbsec -> behavior = SECURITY_FS_USE_NATIVE ;\n * set_kern_flags |= SECURITY_LSM_NATIVE_LABELS ;\n }\n if ( context_sid ) {\n if ( ! fscontext_sid ) {\n rc = may_context_mount_sb_relabel ( context_sid , sbsec , cred ) ;\n if ( rc ) goto out ;\n sbsec -> sid = context_sid ;\n }\n else {\n rc = may_context_mount_inode_relabel ( context_sid , sbsec , cred ) ;\n if ( rc ) goto out ;\n }\n if ( ! rootcontext_sid ) rootcontext_sid = context_sid ;\n sbsec -> mntpoint_sid = context_sid ;\n sbsec -> behavior = SECURITY_FS_USE_MNTPOINT ;\n }\n if ( rootcontext_sid ) {\n rc = may_context_mount_inode_relabel ( rootcontext_sid , sbsec , cred ) ;\n if ( rc ) goto out ;\n root_isec -> sid = rootcontext_sid ;\n root_isec -> initialized = LABEL_INITIALIZED ;\n }\n if ( defcontext_sid ) {\n if ( sbsec -> behavior != SECURITY_FS_USE_XATTR && sbsec -> behavior != SECURITY_FS_USE_NATIVE ) {\n rc = - EINVAL ;\n printk ( KERN_WARNING \"SELinux: defcontext option is \" \"invalid for this filesystem type\\n\" ) ;\n goto out ;\n }\n if ( defcontext_sid != sbsec -> def_sid ) {\n rc = may_context_mount_inode_relabel ( defcontext_sid , sbsec , cred ) ;\n if ( rc ) goto out ;\n }\n sbsec -> def_sid = defcontext_sid ;\n }\n out_set_opts : rc = sb_finish_set_opts ( sb ) ;\n out : mutex_unlock ( & sbsec -> lock ) ;\n return rc ;\n out_double_mount : rc = - EINVAL ;\n printk ( KERN_WARNING \"SELinux: mount invalid. Same superblock, different \" \"security settings for (dev %s, type %s)\\n\" , sb -> s_id , name ) ;\n goto out ;\n }"}
{"idx": 20362, "target": 0, "func": "static int parse_PropertySetArray ( tvbuff_t * tvb , packet_info * pinfo , int offset , int size_offset , proto_tree * parent_tree , proto_tree * pad_tree , const char * fmt , ... ) {\n const int offset_in = offset ;\n guint32 size , num ;\n int i ;\n proto_tree * tree ;\n proto_item * item ;\n const char * txt ;\n va_list ap ;\n va_start ( ap , fmt ) ;\n txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ;\n va_end ( ap ) ;\n tree = proto_tree_add_subtree ( parent_tree , tvb , offset , 0 , ett_CDbPropSet_Array , & item , txt ) ;\n size = tvb_get_letohl ( tvb , size_offset ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_ConnectIn_Blob1 , tvb , size_offset , 4 , ENC_LITTLE_ENDIAN ) ;\n num = tvb_get_letohl ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_mswsp_msg_ConnectIn_PropSets_num , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ;\n offset += 4 ;\n for ( i = 0 ;\n i < ( int ) num ;\n i ++ ) {\n offset = parse_CDbPropSet ( tvb , pinfo , offset , tree , pad_tree , \"PropertySet[%d]\" , i ) ;\n }\n proto_item_set_end ( item , tvb , offset ) ;\n DISSECTOR_ASSERT ( offset - offset_in == ( int ) size ) ;\n return offset ;\n }"}
{"idx": 20363, "target": 0, "func": "static int ioctl_has_perm ( const struct cred * cred , struct file * file , u32 requested , u16 cmd ) {\n struct common_audit_data ad ;\n struct file_security_struct * fsec = file -> f_security ;\n struct inode * inode = file_inode ( file ) ;\n struct inode_security_struct * isec ;\n struct lsm_ioctlop_audit ioctl ;\n u32 ssid = cred_sid ( cred ) ;\n int rc ;\n u8 driver = cmd >> 8 ;\n u8 xperm = cmd & 0xff ;\n ad . type = LSM_AUDIT_DATA_IOCTL_OP ;\n ad . u . op = & ioctl ;\n ad . u . op -> cmd = cmd ;\n ad . u . op -> path = file -> f_path ;\n if ( ssid != fsec -> sid ) {\n rc = avc_has_perm ( ssid , fsec -> sid , SECCLASS_FD , FD__USE , & ad ) ;\n if ( rc ) goto out ;\n }\n if ( unlikely ( IS_PRIVATE ( inode ) ) ) return 0 ;\n isec = inode_security ( inode ) ;\n rc = avc_has_extended_perms ( ssid , isec -> sid , isec -> sclass , requested , driver , xperm , & ad ) ;\n out : return rc ;\n }"}
{"idx": 20364, "target": 0, "func": "int kvm_arch_release_virq_post ( int virq ) {\n MSIRouteEntry * entry , * next ;\n QLIST_FOREACH_SAFE ( entry , & msi_route_list , list , next ) {\n if ( entry -> virq == virq ) {\n trace_kvm_x86_remove_msi_route ( virq ) ;\n QLIST_REMOVE ( entry , list ) ;\n g_free ( entry ) ;\n break ;\n }\n }\n return 0 ;\n }"}
{"idx": 20365, "target": 0, "func": "static int dissect_h245_V42bis ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_V42bis , V42bis_sequence ) ;\n return offset ;\n }"}
{"idx": 20366, "target": 0, "func": "int zsave ( i_ctx_t * i_ctx_p ) {\n os_ptr op = osp ;\n uint space = icurrent_space ;\n vm_save_t * vmsave ;\n ulong sid ;\n int code ;\n gs_gstate * prev ;\n if ( I_VALIDATE_BEFORE_SAVE ) ivalidate_clean_spaces ( i_ctx_p ) ;\n ialloc_set_space ( idmemory , avm_local ) ;\n vmsave = ialloc_struct ( vm_save_t , & st_vm_save , \"zsave\" ) ;\n ialloc_set_space ( idmemory , space ) ;\n if ( vmsave == 0 ) return_error ( gs_error_VMerror ) ;\n vmsave -> gsave = NULL ;\n code = alloc_save_state ( idmemory , vmsave , & sid ) ;\n if ( code < 0 ) return code ;\n if ( sid == 0 ) {\n ifree_object ( vmsave , \"zsave\" ) ;\n return_error ( gs_error_VMerror ) ;\n }\n if_debug2m ( 'u' , imemory , \"[u]vmsave 0x%lx, id = %lu\\n\" , ( ulong ) vmsave , ( ulong ) sid ) ;\n code = gs_gsave_for_save ( igs , & prev ) ;\n if ( code < 0 ) return code ;\n code = gs_gsave ( igs ) ;\n if ( code < 0 ) return code ;\n vmsave -> gsave = prev ;\n push ( 1 ) ;\n make_tav ( op , t_save , 0 , saveid , sid ) ;\n if ( I_VALIDATE_AFTER_SAVE ) ivalidate_clean_spaces ( i_ctx_p ) ;\n return 0 ;\n }"}
{"idx": 20367, "target": 0, "func": "TEST_F ( ExtensionServiceSyncTest , IgnoreSyncChangesWhenLocalStateIsMoreRecent ) {\n base : : FilePath source_install_dir = data_dir ( ) . AppendASCII ( \"good\" ) . AppendASCII ( \"Extensions\" ) ;\n base : : FilePath pref_path = source_install_dir . DirName ( ) . Append ( chrome : : kPreferencesFilename ) ;\n InitializeInstalledExtensionService ( pref_path , source_install_dir ) ;\n browser_sync : : ProfileSyncService * sync_service = ProfileSyncServiceFactory : : GetForProfile ( profile ( ) ) ;\n sync_service -> SetFirstSetupComplete ( ) ;\n extension_sync_service ( ) ;\n service ( ) -> Init ( ) ;\n ASSERT_TRUE ( service ( ) -> is_ready ( ) ) ;\n ASSERT_EQ ( 3u , loaded_ . size ( ) ) ;\n ASSERT_TRUE ( service ( ) -> IsExtensionEnabled ( good0 ) ) ;\n ASSERT_TRUE ( service ( ) -> IsExtensionEnabled ( good2 ) ) ;\n service ( ) -> DisableExtension ( good0 , extensions : : disable_reason : : DISABLE_USER_ACTION ) ;\n ASSERT_FALSE ( service ( ) -> IsExtensionEnabled ( good0 ) ) ;\n service ( ) -> EnableExtension ( good0 ) ;\n ASSERT_TRUE ( service ( ) -> IsExtensionEnabled ( good0 ) ) ;\n service ( ) -> DisableExtension ( good2 , extensions : : disable_reason : : DISABLE_USER_ACTION ) ;\n ASSERT_FALSE ( service ( ) -> IsExtensionEnabled ( good2 ) ) ;\n const Extension * extension0 = service ( ) -> GetExtensionById ( good0 , true ) ;\n const Extension * extension2 = service ( ) -> GetExtensionById ( good2 , true ) ;\n ASSERT_TRUE ( extensions : : sync_helper : : IsSyncable ( extension0 ) ) ;\n ASSERT_TRUE ( extensions : : sync_helper : : IsSyncable ( extension2 ) ) ;\n ExtensionSyncData disable_good0 ( * extension0 , false , extensions : : disable_reason : : DISABLE_USER_ACTION , false , false , ExtensionSyncData : : BOOLEAN_UNSET , false ) ;\n ExtensionSyncData enable_good2 ( * extension2 , true , extensions : : disable_reason : : DISABLE_NONE , false , false , ExtensionSyncData : : BOOLEAN_UNSET , false ) ;\n syncer : : SyncDataList sync_data ;\n sync_data . push_back ( disable_good0 . GetSyncData ( ) ) ;\n sync_data . push_back ( enable_good2 . GetSyncData ( ) ) ;\n extension_sync_service ( ) -> MergeDataAndStartSyncing ( syncer : : EXTENSIONS , sync_data , base : : MakeUnique < syncer : : FakeSyncChangeProcessor > ( ) , base : : MakeUnique < syncer : : SyncErrorFactoryMock > ( ) ) ;\n EXPECT_TRUE ( service ( ) -> IsExtensionEnabled ( good0 ) ) ;\n EXPECT_FALSE ( service ( ) -> IsExtensionEnabled ( good2 ) ) ;\n }"}
{"idx": 20368, "target": 0, "func": "static gint dissect_ac_if_hdr_body ( tvbuff_t * tvb , gint offset , packet_info * pinfo _U_ , proto_tree * tree , usb_conv_info_t * usb_conv_info ) {\n gint offset_start ;\n guint16 bcdADC ;\n guint8 ver_major ;\n double ver ;\n guint8 if_in_collection , i ;\n audio_conv_info_t * audio_conv_info ;\n offset_start = offset ;\n bcdADC = tvb_get_letohs ( tvb , offset ) ;\n ver_major = USB_AUDIO_BCD44_TO_DEC ( bcdADC >> 8 ) ;\n ver = ver_major + USB_AUDIO_BCD44_TO_DEC ( bcdADC & 0xFF ) / 100.0 ;\n proto_tree_add_double_format_value ( tree , hf_ac_if_hdr_ver , tvb , offset , 2 , ver , \"%2.2f\" , ver ) ;\n audio_conv_info = ( audio_conv_info_t * ) usb_conv_info -> class_data ;\n if ( ! audio_conv_info ) {\n audio_conv_info = wmem_new ( wmem_file_scope ( ) , audio_conv_info_t ) ;\n usb_conv_info -> class_data = audio_conv_info ;\n usb_conv_info -> class_data_type = USB_CONV_AUDIO ;\n }\n else if ( usb_conv_info -> class_data_type != USB_CONV_AUDIO ) {\n return 0 ;\n }\n audio_conv_info -> ver_major = ver_major ;\n offset += 2 ;\n if ( ver_major == 1 ) {\n proto_tree_add_item ( tree , hf_ac_if_hdr_total_len , tvb , offset , 2 , ENC_LITTLE_ENDIAN ) ;\n offset += 2 ;\n if_in_collection = tvb_get_guint8 ( tvb , offset ) ;\n proto_tree_add_item ( tree , hf_ac_if_hdr_bInCollection , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset ++ ;\n for ( i = 0 ;\n i < if_in_collection ;\n i ++ ) {\n proto_tree_add_item ( tree , hf_ac_if_hdr_if_num , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;\n offset ++ ;\n }\n }\n return offset - offset_start ;\n }"}
{"idx": 20369, "target": 0, "func": "static guint16 de_emerg_num_list ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {\n guint32 curr_offset ;\n guint8 en_len ;\n guint8 count ;\n proto_tree * subtree ;\n proto_item * item ;\n const char * digit_str ;\n curr_offset = offset ;\n count = 1 ;\n while ( ( curr_offset - offset ) < len ) {\n en_len = tvb_get_guint8 ( tvb , curr_offset ) ;\n item = proto_tree_add_uint ( tree , hf_gsm_a_dtap_emergency_number_information , tvb , curr_offset , en_len + 1 , count ) ;\n subtree = proto_item_add_subtree ( item , ett_gsm_dtap_elem [ DE_EMERGENCY_NUM_LIST ] ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_emerg_num_info_length , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n proto_tree_add_bits_item ( subtree , hf_gsm_a_spare_bits , tvb , curr_offset << 3 , 3 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_serv_cat_b5 , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_serv_cat_b4 , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_serv_cat_b3 , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_serv_cat_b2 , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n proto_tree_add_item ( subtree , hf_gsm_a_dtap_serv_cat_b1 , tvb , curr_offset , 1 , ENC_BIG_ENDIAN ) ;\n curr_offset ++ ;\n en_len -- ;\n digit_str = tvb_bcd_dig_to_wmem_packet_str ( tvb , curr_offset , en_len , NULL , FALSE ) ;\n item = proto_tree_add_string ( subtree , hf_gsm_a_dtap_emergency_bcd_num , tvb , curr_offset , en_len , digit_str ) ;\n if ( strchr ( digit_str , '?' ) ) {\n expert_add_info ( pinfo , item , & ei_gsm_a_dtap_not_digit ) ;\n }\n curr_offset = curr_offset + en_len ;\n count ++ ;\n }\n return ( len ) ;\n }"}
{"idx": 20370, "target": 0, "func": "static gint handle_message_sasl ( tvbuff_t * tvb , packet_info * pinfo , gint offset , proto_tree * message_tree ) {\n gint return_value = offset ;\n const sasl_cmd * command ;\n command = find_sasl_command ( tvb , offset ) ;\n if ( command ) {\n gint newline_offset = tvb_find_guint8 ( tvb , offset + command -> length , - 1 , '\\n' ) + 1 ;\n if ( 0 == newline_offset ) {\n if ( ( guint ) tvb_captured_length_remaining ( tvb , offset ) < MAX_SASL_PACKET_LENGTH && set_pinfo_desegment ( pinfo , offset , DESEGMENT_ONE_MORE_SEGMENT ) ) {\n return_value = offset + command -> length ;\n }\n else {\n return_value = 0 ;\n }\n return return_value ;\n }\n if ( newline_offset > 0 ) {\n gint length = command -> length ;\n col_add_fstr ( pinfo -> cinfo , COL_INFO , \"SASL-%s\" , command -> text ) ;\n proto_tree_add_item ( message_tree , hf_alljoyn_sasl_command , tvb , offset , length , ENC_ASCII | ENC_NA ) ;\n offset += length ;\n length = newline_offset - offset ;\n proto_tree_add_item ( message_tree , hf_alljoyn_sasl_parameter , tvb , offset , length , ENC_ASCII | ENC_NA ) ;\n return_value = newline_offset ;\n }\n }\n return return_value ;\n }"}
{"idx": 20371, "target": 0, "func": "static void cpu_halt_signal ( void * opaque , int irq , int level ) {\n if ( level && current_cpu ) {\n cpu_interrupt ( current_cpu , CPU_INTERRUPT_HALT ) ;\n }\n }"}
{"idx": 20372, "target": 0, "func": "void e1000e_start_recv ( E1000ECore * core ) {\n int i ;\n trace_e1000e_rx_start_recv ( ) ;\n for ( i = 0 ;\n i <= core -> max_queue_num ;\n i ++ ) {\n qemu_flush_queued_packets ( qemu_get_subqueue ( core -> owner_nic , i ) ) ;\n }\n }"}
{"idx": 20373, "target": 0, "func": "static void * Type_Measurement_Dup ( struct _cms_typehandler_struct * self , const void * Ptr , cmsUInt32Number n ) {\n return _cmsDupMem ( self -> ContextID , Ptr , sizeof ( cmsICCMeasurementConditions ) ) ;\n cmsUNUSED_PARAMETER ( n ) ;\n }"}
{"idx": 20374, "target": 0, "func": "void EndRestoreBlob ( ArchiveHandle * AH , Oid oid ) {\n if ( AH -> lo_buf_used > 0 ) {\n dump_lo_buf ( AH ) ;\n }\n AH -> writingBlob = 0 ;\n if ( AH -> connection ) {\n lo_close ( AH -> connection , AH -> loFd ) ;\n AH -> loFd = - 1 ;\n }\n else {\n ahprintf ( AH , \"SELECT pg_catalog.lo_close(0);\n\\n\\n\" ) ;\n }\n }"}
{"idx": 20375, "target": 1, "func": "static int array_min_int16 ( const int16_t * array , int nel ) {\n int i , min = array [ 0 ] ;\n for ( i = 1 ;\n i < nel ;\n i ++ ) min = FFMIN ( array [ i ] , min ) ;\n return min ;\n }"}
{"idx": 20376, "target": 0, "func": "static uint64_t cirrus_linear_bitblt_read ( void * opaque , hwaddr addr , unsigned size ) {\n CirrusVGAState * s = opaque ;\n uint32_t ret ;\n ( void ) s ;\n ret = 0xff ;\n return ret ;\n }"}
{"idx": 20377, "target": 0, "func": "void crypto_policy_set_rtp_default ( crypto_policy_t * p ) {\n p -> cipher_type = AES_ICM ;\n p -> cipher_key_len = 30 ;\n p -> auth_type = HMAC_SHA1 ;\n p -> auth_key_len = 20 ;\n p -> auth_tag_len = 10 ;\n p -> sec_serv = sec_serv_conf_and_auth ;\n }"}
{"idx": 20378, "target": 0, "func": "static void test_bufferevent ( void ) {\n struct bufferevent * bev1 , * bev2 ;\n char buffer [ 8333 ] ;\n int i ;\n setup_test ( \"Bufferevent: \" ) ;\n bev1 = bufferevent_new ( pair [ 0 ] , readcb , writecb , errorcb , NULL ) ;\n bev2 = bufferevent_new ( pair [ 1 ] , readcb , writecb , errorcb , NULL ) ;\n bufferevent_disable ( bev1 , EV_READ ) ;\n bufferevent_enable ( bev2 , EV_READ ) ;\n for ( i = 0 ;\n i < sizeof ( buffer ) ;\n i ++ ) buffer [ i ] = i ;\n bufferevent_write ( bev1 , buffer , sizeof ( buffer ) ) ;\n event_dispatch ( ) ;\n bufferevent_free ( bev1 ) ;\n bufferevent_free ( bev2 ) ;\n if ( test_ok != 2 ) test_ok = 0 ;\n cleanup_test ( ) ;\n }"}
{"idx": 20379, "target": 0, "func": "static int get_active_cq_level ( const RATE_CONTROL * rc , const VP9EncoderConfig * const oxcf ) {\n static const double cq_adjust_threshold = 0.5 ;\n int active_cq_level = oxcf -> cq_level ;\n if ( oxcf -> rc_mode == VPX_CQ && rc -> total_target_bits > 0 ) {\n const double x = ( double ) rc -> total_actual_bits / rc -> total_target_bits ;\n if ( x < cq_adjust_threshold ) {\n active_cq_level = ( int ) ( active_cq_level * x / cq_adjust_threshold ) ;\n }\n }\n return active_cq_level ;\n }"}
{"idx": 20380, "target": 0, "func": "TEST_F ( PrintPreviewUIUnitTest , GetCurrentPrintPreviewStatus ) {\n WebContents * initiator = browser ( ) -> tab_strip_model ( ) -> GetActiveWebContents ( ) ;\n ASSERT_TRUE ( initiator ) ;\n printing : : PrintPreviewDialogController * controller = printing : : PrintPreviewDialogController : : GetInstance ( ) ;\n ASSERT_TRUE ( controller ) ;\n printing : : PrintViewManager * print_view_manager = printing : : PrintViewManager : : FromWebContents ( initiator ) ;\n print_view_manager -> PrintPreviewNow ( initiator -> GetMainFrame ( ) , false ) ;\n WebContents * preview_dialog = controller -> GetOrCreatePreviewDialog ( initiator ) ;\n EXPECT_NE ( initiator , preview_dialog ) ;\n EXPECT_EQ ( 1 , browser ( ) -> tab_strip_model ( ) -> count ( ) ) ;\n EXPECT_TRUE ( IsShowingWebContentsModalDialog ( initiator ) ) ;\n PrintPreviewUI * preview_ui = static_cast < PrintPreviewUI * > ( preview_dialog -> GetWebUI ( ) -> GetController ( ) ) ;\n ASSERT_TRUE ( preview_ui != NULL ) ;\n bool cancel = false ;\n const int32_t kInvalidId = - 5 ;\n preview_ui -> GetCurrentPrintPreviewStatus ( kInvalidId , 0 , & cancel ) ;\n EXPECT_TRUE ( cancel ) ;\n const int kFirstRequestId = 1000 ;\n const int kSecondRequestId = 1001 ;\n const int32_t preview_ui_addr = preview_ui -> GetIDForPrintPreviewUI ( ) ;\n preview_ui -> OnPrintPreviewRequest ( kFirstRequestId ) ;\n cancel = true ;\n preview_ui -> GetCurrentPrintPreviewStatus ( preview_ui_addr , kFirstRequestId , & cancel ) ;\n EXPECT_FALSE ( cancel ) ;\n cancel = false ;\n preview_ui -> GetCurrentPrintPreviewStatus ( preview_ui_addr , kSecondRequestId , & cancel ) ;\n EXPECT_TRUE ( cancel ) ;\n preview_ui -> OnPrintPreviewRequest ( kSecondRequestId ) ;\n cancel = false ;\n preview_ui -> GetCurrentPrintPreviewStatus ( preview_ui_addr , kFirstRequestId , & cancel ) ;\n EXPECT_TRUE ( cancel ) ;\n cancel = true ;\n preview_ui -> GetCurrentPrintPreviewStatus ( preview_ui_addr , kSecondRequestId , & cancel ) ;\n EXPECT_FALSE ( cancel ) ;\n }"}
{"idx": 20381, "target": 0, "func": "static int ts_lua_http_set_debug ( lua_State * L ) {\n int value ;\n ts_lua_http_ctx * http_ctx ;\n GET_HTTP_CONTEXT ( http_ctx , L ) ;\n value = luaL_checkinteger ( L , 1 ) ;\n TSDebug ( TS_LUA_DEBUG_TAG , \"set debug\" ) ;\n TSHttpTxnDebugSet ( http_ctx -> txnp , value ) ;\n return 0 ;\n }"}
{"idx": 20382, "target": 0, "func": "char op_volatile ( Oid opno ) {\n RegProcedure funcid = get_opcode ( opno ) ;\n if ( funcid == ( RegProcedure ) InvalidOid ) elog ( ERROR , \"operator %u does not exist\" , opno ) ;\n return func_volatile ( ( Oid ) funcid ) ;\n }"}
{"idx": 20383, "target": 0, "func": "static const char * name ## _get_name ( void * ctx ) \\ {\n return # name ;\n \\ }\n static const AVClass name ## _class = {\n . class_name = # name , . item_name = name ## _get_name , . option = name ## _options \\ }\n typedef struct DefaultContext {\n const AVClass * class ;\n int nokey ;\n int noprint_wrappers ;\n int nested_section [ SECTION_MAX_NB_LEVELS ] ;\n }\n DefaultContext ;\n # undef OFFSET # define OFFSET ( x ) offsetof ( DefaultContext , x ) static const AVOption default_options [ ] = {\n {\n \"noprint_wrappers\" , \"do not print headers and footers\" , OFFSET ( noprint_wrappers ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n \"nw\" , \"do not print headers and footers\" , OFFSET ( noprint_wrappers ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n \"nokey\" , \"force no key printing\" , OFFSET ( nokey ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n \"nk\" , \"force no key printing\" , OFFSET ( nokey ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n NULL }\n , }\n ;\n DEFINE_WRITER_CLASS ( default ) ;\n static inline char * upcase_string ( char * dst , size_t dst_size , const char * src ) {\n int i ;\n for ( i = 0 ;\n src [ i ] && i < dst_size - 1 ;\n i ++ ) dst [ i ] = av_toupper ( src [ i ] ) ;\n dst [ i ] = 0 ;\n return dst ;\n }\n static void default_print_section_header ( WriterContext * wctx ) {\n DefaultContext * def = wctx -> priv ;\n char buf [ 32 ] ;\n const struct section * section = wctx -> section [ wctx -> level ] ;\n const struct section * parent_section = wctx -> level ? wctx -> section [ wctx -> level - 1 ] : NULL ;\n av_bprint_clear ( & wctx -> section_pbuf [ wctx -> level ] ) ;\n if ( parent_section && ! ( parent_section -> flags & ( SECTION_FLAG_IS_WRAPPER | SECTION_FLAG_IS_ARRAY ) ) ) {\n def -> nested_section [ wctx -> level ] = 1 ;\n av_bprintf ( & wctx -> section_pbuf [ wctx -> level ] , \"%s%s:\" , wctx -> section_pbuf [ wctx -> level - 1 ] . str , upcase_string ( buf , sizeof ( buf ) , av_x_if_null ( section -> element_name , section -> name ) ) ) ;\n }\n if ( def -> noprint_wrappers || def -> nested_section [ wctx -> level ] ) return ;\n if ( ! ( section -> flags & ( SECTION_FLAG_IS_WRAPPER | SECTION_FLAG_IS_ARRAY ) ) ) printf ( \"[%s]\\n\" , upcase_string ( buf , sizeof ( buf ) , section -> name ) ) ;\n }\n static void default_print_section_footer ( WriterContext * wctx ) {\n DefaultContext * def = wctx -> priv ;\n const struct section * section = wctx -> section [ wctx -> level ] ;\n char buf [ 32 ] ;\n if ( def -> noprint_wrappers || def -> nested_section [ wctx -> level ] ) return ;\n if ( ! ( section -> flags & ( SECTION_FLAG_IS_WRAPPER | SECTION_FLAG_IS_ARRAY ) ) ) printf ( \"[/%s]\\n\" , upcase_string ( buf , sizeof ( buf ) , section -> name ) ) ;\n }\n static void default_print_str ( WriterContext * wctx , const char * key , const char * value ) {\n DefaultContext * def = wctx -> priv ;\n if ( ! def -> nokey ) printf ( \"%s%s=\" , wctx -> section_pbuf [ wctx -> level ] . str , key ) ;\n printf ( \"%s\\n\" , value ) ;\n }\n static void default_print_int ( WriterContext * wctx , const char * key , long long int value ) {\n DefaultContext * def = wctx -> priv ;\n if ( ! def -> nokey ) printf ( \"%s%s=\" , wctx -> section_pbuf [ wctx -> level ] . str , key ) ;\n printf ( \"%lld\\n\" , value ) ;\n }\n static const Writer default_writer = {\n . name = \"default\" , . priv_size = sizeof ( DefaultContext ) , . print_section_header = default_print_section_header , . print_section_footer = default_print_section_footer , . print_integer = default_print_int , . print_string = default_print_str , . flags = WRITER_FLAG_DISPLAY_OPTIONAL_FIELDS , . priv_class = & default_class , }\n ;\n static const char * c_escape_str ( AVBPrint * dst , const char * src , const char sep , void * log_ctx ) {\n const char * p ;\n for ( p = src ;\n * p ;\n p ++ ) {\n switch ( * p ) {\n case '\\b' : av_bprintf ( dst , \"%s\" , \"\\\\b\" ) ;\n break ;\n case '\\f' : av_bprintf ( dst , \"%s\" , \"\\\\f\" ) ;\n break ;\n case '\\n' : av_bprintf ( dst , \"%s\" , \"\\\\n\" ) ;\n break ;\n case '\\r' : av_bprintf ( dst , \"%s\" , \"\\\\r\" ) ;\n break ;\n case '\\\\' : av_bprintf ( dst , \"%s\" , \"\\\\\\\\\" ) ;\n break ;\n default : if ( * p == sep ) av_bprint_chars ( dst , '\\\\' , 1 ) ;\n av_bprint_chars ( dst , * p , 1 ) ;\n }\n }\n return dst -> str ;\n }\n static const char * csv_escape_str ( AVBPrint * dst , const char * src , const char sep , void * log_ctx ) {\n char meta_chars [ ] = {\n sep , '\"' , '\\n' , '\\r' , '\\0' }\n ;\n int needs_quoting = ! ! src [ strcspn ( src , meta_chars ) ] ;\n if ( needs_quoting ) av_bprint_chars ( dst , '\"' , 1 ) ;\n for ( ;\n * src ;\n src ++ ) {\n if ( * src == '\"' ) av_bprint_chars ( dst , '\"' , 1 ) ;\n av_bprint_chars ( dst , * src , 1 ) ;\n }\n if ( needs_quoting ) av_bprint_chars ( dst , '\"' , 1 ) ;\n return dst -> str ;\n }\n static const char * none_escape_str ( AVBPrint * dst , const char * src , const char sep , void * log_ctx ) {\n return src ;\n }\n typedef struct CompactContext {\n const AVClass * class ;\n char * item_sep_str ;\n char item_sep ;\n int nokey ;\n int print_section ;\n char * escape_mode_str ;\n const char * ( * escape_str ) ( AVBPrint * dst , const char * src , const char sep , void * log_ctx ) ;\n int nested_section [ SECTION_MAX_NB_LEVELS ] ;\n int has_nested_elems [ SECTION_MAX_NB_LEVELS ] ;\n int terminate_line [ SECTION_MAX_NB_LEVELS ] ;\n }\n CompactContext ;\n # undef OFFSET # define OFFSET ( x ) offsetof ( CompactContext , x ) static const AVOption compact_options [ ] = {\n {\n \"item_sep\" , \"set item separator\" , OFFSET ( item_sep_str ) , AV_OPT_TYPE_STRING , {\n . str = \"|\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"s\" , \"set item separator\" , OFFSET ( item_sep_str ) , AV_OPT_TYPE_STRING , {\n . str = \"|\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"nokey\" , \"force no key printing\" , OFFSET ( nokey ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n \"nk\" , \"force no key printing\" , OFFSET ( nokey ) , AV_OPT_TYPE_BOOL , {\n . i64 = 0 }\n , 0 , 1 }\n , {\n \"escape\" , \"set escape mode\" , OFFSET ( escape_mode_str ) , AV_OPT_TYPE_STRING , {\n . str = \"c\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"e\" , \"set escape mode\" , OFFSET ( escape_mode_str ) , AV_OPT_TYPE_STRING , {\n . str = \"c\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"print_section\" , \"print section name\" , OFFSET ( print_section ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n \"p\" , \"print section name\" , OFFSET ( print_section ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n NULL }\n , }\n ;\n DEFINE_WRITER_CLASS ( compact ) ;\n static av_cold int compact_init ( WriterContext * wctx ) {\n CompactContext * compact = wctx -> priv ;\n if ( strlen ( compact -> item_sep_str ) != 1 ) {\n av_log ( wctx , AV_LOG_ERROR , \"Item separator '%s' specified, but must contain a single character\\n\" , compact -> item_sep_str ) ;\n return AVERROR ( EINVAL ) ;\n }\n compact -> item_sep = compact -> item_sep_str [ 0 ] ;\n if ( ! strcmp ( compact -> escape_mode_str , \"none\" ) ) compact -> escape_str = none_escape_str ;\n else if ( ! strcmp ( compact -> escape_mode_str , \"c\" ) ) compact -> escape_str = c_escape_str ;\n else if ( ! strcmp ( compact -> escape_mode_str , \"csv\" ) ) compact -> escape_str = csv_escape_str ;\n else {\n av_log ( wctx , AV_LOG_ERROR , \"Unknown escape mode '%s'\\n\" , compact -> escape_mode_str ) ;\n return AVERROR ( EINVAL ) ;\n }\n return 0 ;\n }\n static void compact_print_section_header ( WriterContext * wctx ) {\n CompactContext * compact = wctx -> priv ;\n const struct section * section = wctx -> section [ wctx -> level ] ;\n const struct section * parent_section = wctx -> level ? wctx -> section [ wctx -> level - 1 ] : NULL ;\n compact -> terminate_line [ wctx -> level ] = 1 ;\n compact -> has_nested_elems [ wctx -> level ] = 0 ;\n av_bprint_clear ( & wctx -> section_pbuf [ wctx -> level ] ) ;\n if ( ! ( section -> flags & SECTION_FLAG_IS_ARRAY ) && parent_section && ! ( parent_section -> flags & ( SECTION_FLAG_IS_WRAPPER | SECTION_FLAG_IS_ARRAY ) ) ) {\n compact -> nested_section [ wctx -> level ] = 1 ;\n compact -> has_nested_elems [ wctx -> level - 1 ] = 1 ;\n av_bprintf ( & wctx -> section_pbuf [ wctx -> level ] , \"%s%s:\" , wctx -> section_pbuf [ wctx -> level - 1 ] . str , ( char * ) av_x_if_null ( section -> element_name , section -> name ) ) ;\n wctx -> nb_item [ wctx -> level ] = wctx -> nb_item [ wctx -> level - 1 ] ;\n }\n else {\n if ( parent_section && compact -> has_nested_elems [ wctx -> level - 1 ] && ( section -> flags & SECTION_FLAG_IS_ARRAY ) ) {\n compact -> terminate_line [ wctx -> level - 1 ] = 0 ;\n printf ( \"\\n\" ) ;\n }\n if ( compact -> print_section && ! ( section -> flags & ( SECTION_FLAG_IS_WRAPPER | SECTION_FLAG_IS_ARRAY ) ) ) printf ( \"%s%c\" , section -> name , compact -> item_sep ) ;\n }\n }\n static void compact_print_section_footer ( WriterContext * wctx ) {\n CompactContext * compact = wctx -> priv ;\n if ( ! compact -> nested_section [ wctx -> level ] && compact -> terminate_line [ wctx -> level ] && ! ( wctx -> section [ wctx -> level ] -> flags & ( SECTION_FLAG_IS_WRAPPER | SECTION_FLAG_IS_ARRAY ) ) ) printf ( \"\\n\" ) ;\n }\n static void compact_print_str ( WriterContext * wctx , const char * key , const char * value ) {\n CompactContext * compact = wctx -> priv ;\n AVBPrint buf ;\n if ( wctx -> nb_item [ wctx -> level ] ) printf ( \"%c\" , compact -> item_sep ) ;\n if ( ! compact -> nokey ) printf ( \"%s%s=\" , wctx -> section_pbuf [ wctx -> level ] . str , key ) ;\n av_bprint_init ( & buf , 1 , AV_BPRINT_SIZE_UNLIMITED ) ;\n printf ( \"%s\" , compact -> escape_str ( & buf , value , compact -> item_sep , wctx ) ) ;\n av_bprint_finalize ( & buf , NULL ) ;\n }\n static void compact_print_int ( WriterContext * wctx , const char * key , long long int value ) {\n CompactContext * compact = wctx -> priv ;\n if ( wctx -> nb_item [ wctx -> level ] ) printf ( \"%c\" , compact -> item_sep ) ;\n if ( ! compact -> nokey ) printf ( \"%s%s=\" , wctx -> section_pbuf [ wctx -> level ] . str , key ) ;\n printf ( \"%lld\" , value ) ;\n }\n static const Writer compact_writer = {\n . name = \"compact\" , . priv_size = sizeof ( CompactContext ) , . init = compact_init , . print_section_header = compact_print_section_header , . print_section_footer = compact_print_section_footer , . print_integer = compact_print_int , . print_string = compact_print_str , . flags = WRITER_FLAG_DISPLAY_OPTIONAL_FIELDS , . priv_class = & compact_class , }\n ;\n # undef OFFSET # define OFFSET ( x ) offsetof ( CompactContext , x ) static const AVOption csv_options [ ] = {\n {\n \"item_sep\" , \"set item separator\" , OFFSET ( item_sep_str ) , AV_OPT_TYPE_STRING , {\n . str = \",\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"s\" , \"set item separator\" , OFFSET ( item_sep_str ) , AV_OPT_TYPE_STRING , {\n . str = \",\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"nokey\" , \"force no key printing\" , OFFSET ( nokey ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n \"nk\" , \"force no key printing\" , OFFSET ( nokey ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n \"escape\" , \"set escape mode\" , OFFSET ( escape_mode_str ) , AV_OPT_TYPE_STRING , {\n . str = \"csv\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"e\" , \"set escape mode\" , OFFSET ( escape_mode_str ) , AV_OPT_TYPE_STRING , {\n . str = \"csv\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"print_section\" , \"print section name\" , OFFSET ( print_section ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n \"p\" , \"print section name\" , OFFSET ( print_section ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n NULL }\n , }\n ;\n DEFINE_WRITER_CLASS ( csv ) ;\n static const Writer csv_writer = {\n . name = \"csv\" , . priv_size = sizeof ( CompactContext ) , . init = compact_init , . print_section_header = compact_print_section_header , . print_section_footer = compact_print_section_footer , . print_integer = compact_print_int , . print_string = compact_print_str , . flags = WRITER_FLAG_DISPLAY_OPTIONAL_FIELDS , . priv_class = & csv_class , }\n ;\n typedef struct FlatContext {\n const AVClass * class ;\n const char * sep_str ;\n char sep ;\n int hierarchical ;\n }\n FlatContext ;\n # undef OFFSET # define OFFSET ( x ) offsetof ( FlatContext , x ) static const AVOption flat_options [ ] = {\n {\n \"sep_char\" , \"set separator\" , OFFSET ( sep_str ) , AV_OPT_TYPE_STRING , {\n . str = \".\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"s\" , \"set separator\" , OFFSET ( sep_str ) , AV_OPT_TYPE_STRING , {\n . str = \".\" }\n , CHAR_MIN , CHAR_MAX }\n , {\n \"hierarchical\" , \"specify if the section specification should be hierarchical\" , OFFSET ( hierarchical ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n \"h\" , \"specify if the section specification should be hierarchical\" , OFFSET ( hierarchical ) , AV_OPT_TYPE_BOOL , {\n . i64 = 1 }\n , 0 , 1 }\n , {\n NULL }\n , }\n ;\n DEFINE_WRITER_CLASS ( flat )"}
{"idx": 20384, "target": 0, "func": "int web_server_set_alias ( const char * alias_name , const char * alias_content , size_t alias_content_length , time_t last_modified ) {\n int ret_code ;\n struct xml_alias_t alias ;\n alias_release ( & gAliasDoc ) ;\n if ( alias_name == NULL ) {\n return 0 ;\n }\n assert ( alias_content != NULL ) ;\n membuffer_init ( & alias . doc ) ;\n membuffer_init ( & alias . name ) ;\n alias . ct = NULL ;\n do {\n if ( * alias_name != '/' ) if ( membuffer_assign_str ( & alias . name , \"/\" ) != 0 ) break ;\n ret_code = membuffer_append_str ( & alias . name , alias_name ) ;\n if ( ret_code != 0 ) break ;\n if ( ( alias . ct = ( int * ) malloc ( sizeof ( int ) ) ) == NULL ) break ;\n * alias . ct = 1 ;\n membuffer_attach ( & alias . doc , ( char * ) alias_content , alias_content_length ) ;\n alias . last_modified = last_modified ;\n ithread_mutex_lock ( & gWebMutex ) ;\n gAliasDoc = alias ;\n ithread_mutex_unlock ( & gWebMutex ) ;\n return 0 ;\n }\n while ( FALSE ) ;\n membuffer_destroy ( & alias . name ) ;\n membuffer_destroy ( & alias . doc ) ;\n free ( alias . ct ) ;\n return UPNP_E_OUTOF_MEMORY ;\n }"}
{"idx": 20385, "target": 0, "func": "REGRESSION_TEST ( SDK_API_TSTrafficServerVersionGet ) ( RegressionTest * test , int , int * pstatus ) {\n * pstatus = REGRESSION_TEST_INPROGRESS ;\n const char * ts_version = TSTrafficServerVersionGet ( ) ;\n if ( ! ts_version ) {\n SDK_RPRINT ( test , \"TSTrafficServerVersionGet\" , \"TestCase1\" , TC_FAIL , \"can't get traffic server version\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n return ;\n }\n int major_ts_version = 0 ;\n int minor_ts_version = 0 ;\n int patch_ts_version = 0 ;\n if ( sscanf ( ts_version , \"%d.%d.%d\" , & major_ts_version , & minor_ts_version , & patch_ts_version ) != 3 ) {\n SDK_RPRINT ( test , \"TSTrafficServerVersionGet\" , \"TestCase2\" , TC_FAIL , \"traffic server version format is incorrect\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n return ;\n }\n if ( major_ts_version < 2 ) {\n SDK_RPRINT ( test , \"TSTrafficServerVersionGet\" , \"TestCase3\" , TC_FAIL , \"traffic server major version is incorrect\" ) ;\n * pstatus = REGRESSION_TEST_FAILED ;\n return ;\n }\n SDK_RPRINT ( test , \"TSTrafficServerVersionGet\" , \"TestCase1\" , TC_PASS , \"ok\" ) ;\n * pstatus = REGRESSION_TEST_PASSED ;\n return ;\n }"}
{"idx": 20386, "target": 0, "func": "static cmsBool Write16bitTables ( cmsContext ContextID , cmsIOHANDLER * io , _cmsStageToneCurvesData * Tables ) {\n int j ;\n cmsUInt32Number i ;\n cmsUInt16Number val ;\n int nEntries ;\n _cmsAssert ( Tables != NULL ) ;\n nEntries = Tables -> TheCurves [ 0 ] -> nEntries ;\n for ( i = 0 ;\n i < Tables -> nCurves ;\n i ++ ) {\n for ( j = 0 ;\n j < nEntries ;\n j ++ ) {\n val = Tables -> TheCurves [ i ] -> Table16 [ j ] ;\n if ( ! _cmsWriteUInt16Number ( io , val ) ) return FALSE ;\n }\n }\n return TRUE ;\n cmsUNUSED_PARAMETER ( ContextID ) ;\n }"}
{"idx": 20387, "target": 0, "func": "static inline void idx_to_quant ( MPCContext * c , GetBitContext * gb , int idx , int * dst ) {\n int i , i1 , t ;\n switch ( idx ) {\n case - 1 : for ( i = 0 ;\n i < SAMPLES_PER_BAND ;\n i ++ ) {\n * dst ++ = ( av_lfg_get ( & c -> rnd ) & 0x3FC ) - 510 ;\n }\n break ;\n case 1 : i1 = get_bits1 ( gb ) ;\n for ( i = 0 ;\n i < SAMPLES_PER_BAND / 3 ;\n i ++ ) {\n t = get_vlc2 ( gb , quant_vlc [ 0 ] [ i1 ] . table , 9 , 2 ) ;\n * dst ++ = mpc7_idx30 [ t ] ;\n * dst ++ = mpc7_idx31 [ t ] ;\n * dst ++ = mpc7_idx32 [ t ] ;\n }\n break ;\n case 2 : i1 = get_bits1 ( gb ) ;\n for ( i = 0 ;\n i < SAMPLES_PER_BAND / 2 ;\n i ++ ) {\n t = get_vlc2 ( gb , quant_vlc [ 1 ] [ i1 ] . table , 9 , 2 ) ;\n * dst ++ = mpc7_idx50 [ t ] ;\n * dst ++ = mpc7_idx51 [ t ] ;\n }\n break ;\n case 3 : case 4 : case 5 : case 6 : case 7 : i1 = get_bits1 ( gb ) ;\n for ( i = 0 ;\n i < SAMPLES_PER_BAND ;\n i ++ ) * dst ++ = get_vlc2 ( gb , quant_vlc [ idx - 1 ] [ i1 ] . table , 9 , 2 ) - mpc7_quant_vlc_off [ idx - 1 ] ;\n break ;\n case 8 : case 9 : case 10 : case 11 : case 12 : case 13 : case 14 : case 15 : case 16 : case 17 : t = ( 1 << ( idx - 2 ) ) - 1 ;\n for ( i = 0 ;\n i < SAMPLES_PER_BAND ;\n i ++ ) * dst ++ = get_bits ( gb , idx - 1 ) - t ;\n break ;\n default : return ;\n }\n }"}
{"idx": 20388, "target": 0, "func": "static void file_list_start_or_stop ( NautilusDirectory * directory ) {\n if ( nautilus_directory_is_anyone_monitoring_file_list ( directory ) ) {\n start_monitoring_file_list ( directory ) ;\n }\n else {\n nautilus_directory_stop_monitoring_file_list ( directory ) ;\n }\n }"}
{"idx": 20389, "target": 0, "func": "static void dumpintoper ( FILE * cfff , int v , int oper ) {\n dumpint ( cfff , v ) ;\n dumpoper ( cfff , oper ) ;\n }"}
{"idx": 20390, "target": 0, "func": "static void merge_context_after_me ( MpegEncContext * dst , MpegEncContext * src ) {\n MERGE ( me . scene_change_score ) ;\n MERGE ( me . mc_mb_var_sum_temp ) ;\n MERGE ( me . mb_var_sum_temp ) ;\n }"}
{"idx": 20391, "target": 1, "func": "int jbig2_immediate_generic_region ( Jbig2Ctx * ctx , Jbig2Segment * segment , const byte * segment_data ) {\n Jbig2RegionSegmentInfo rsi ;\n byte seg_flags ;\n int8_t gbat [ 8 ] ;\n int offset ;\n int gbat_bytes = 0 ;\n Jbig2GenericRegionParams params ;\n int code = 0 ;\n Jbig2Image * image = NULL ;\n Jbig2WordStream * ws = NULL ;\n Jbig2ArithState * as = NULL ;\n Jbig2ArithCx * GB_stats = NULL ;\n if ( segment -> data_length < 18 ) return jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"Segment too short\" ) ;\n jbig2_get_region_segment_info ( & rsi , segment_data ) ;\n jbig2_error ( ctx , JBIG2_SEVERITY_INFO , segment -> number , \"generic region: %d x %d @ (%d, %d), flags = %02x\" , rsi . width , rsi . height , rsi . x , rsi . y , rsi . flags ) ;\n seg_flags = segment_data [ 17 ] ;\n jbig2_error ( ctx , JBIG2_SEVERITY_INFO , segment -> number , \"segment flags = %02x\" , seg_flags ) ;\n if ( ( seg_flags & 1 ) && ( seg_flags & 6 ) ) jbig2_error ( ctx , JBIG2_SEVERITY_WARNING , segment -> number , \"MMR is 1, but GBTEMPLATE is not 0\" ) ;\n if ( ! ( seg_flags & 1 ) ) {\n gbat_bytes = ( seg_flags & 6 ) ? 2 : 8 ;\n if ( 18 + gbat_bytes > segment -> data_length ) return jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"Segment too short\" ) ;\n memcpy ( gbat , segment_data + 18 , gbat_bytes ) ;\n jbig2_error ( ctx , JBIG2_SEVERITY_INFO , segment -> number , \"gbat: %d, %d\" , gbat [ 0 ] , gbat [ 1 ] ) ;\n }\n offset = 18 + gbat_bytes ;\n params . MMR = seg_flags & 1 ;\n params . GBTEMPLATE = ( seg_flags & 6 ) >> 1 ;\n params . TPGDON = ( seg_flags & 8 ) >> 3 ;\n params . USESKIP = 0 ;\n memcpy ( params . gbat , gbat , gbat_bytes ) ;\n image = jbig2_image_new ( ctx , rsi . width , rsi . height ) ;\n if ( image == NULL ) return jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"unable to allocate generic image\" ) ;\n jbig2_error ( ctx , JBIG2_SEVERITY_DEBUG , segment -> number , \"allocated %d x %d image buffer for region decode results\" , rsi . width , rsi . height ) ;\n if ( params . MMR ) {\n code = jbig2_decode_generic_mmr ( ctx , segment , & params , segment_data + offset , segment -> data_length - offset , image ) ;\n }\n else {\n int stats_size = jbig2_generic_stats_size ( ctx , params . GBTEMPLATE ) ;\n GB_stats = jbig2_new ( ctx , Jbig2ArithCx , stats_size ) ;\n if ( GB_stats == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"unable to allocate GB_stats in jbig2_immediate_generic_region\" ) ;\n goto cleanup ;\n }\n memset ( GB_stats , 0 , stats_size ) ;\n ws = jbig2_word_stream_buf_new ( ctx , segment_data + offset , segment -> data_length - offset ) ;\n if ( ws == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"unable to allocate ws in jbig2_immediate_generic_region\" ) ;\n goto cleanup ;\n }\n as = jbig2_arith_new ( ctx , ws ) ;\n if ( as == NULL ) {\n code = jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"unable to allocate as in jbig2_immediate_generic_region\" ) ;\n goto cleanup ;\n }\n code = jbig2_decode_generic_region ( ctx , segment , & params , as , image , GB_stats ) ;\n }\n if ( code >= 0 ) jbig2_page_add_result ( ctx , & ctx -> pages [ ctx -> current_page ] , image , rsi . x , rsi . y , rsi . op ) ;\n else jbig2_error ( ctx , JBIG2_SEVERITY_FATAL , segment -> number , \"error while decoding immediate_generic_region\" ) ;\n cleanup : jbig2_free ( ctx -> allocator , as ) ;\n jbig2_word_stream_buf_free ( ctx , ws ) ;\n jbig2_free ( ctx -> allocator , GB_stats ) ;\n jbig2_image_release ( ctx , image ) ;\n return code ;\n }"}
{"idx": 20392, "target": 0, "func": "char * curl_pushheader_bynum ( struct curl_pushheaders * h , size_t num ) {\n ( void ) h ;\n ( void ) num ;\n return NULL ;\n }"}
{"idx": 20393, "target": 0, "func": "int RECORD_LAYER_set_data ( RECORD_LAYER * rl , const unsigned char * buf , int len ) {\n rl -> packet_length = len ;\n if ( len != 0 ) {\n rl -> rstate = SSL_ST_READ_HEADER ;\n if ( ! SSL3_BUFFER_is_initialised ( & rl -> rbuf ) ) if ( ! ssl3_setup_read_buffer ( rl -> s ) ) return 0 ;\n }\n rl -> packet = SSL3_BUFFER_get_buf ( & rl -> rbuf ) ;\n SSL3_BUFFER_set_data ( & rl -> rbuf , buf , len ) ;\n return 1 ;\n }"}
{"idx": 20394, "target": 0, "func": "int test_mod_exp ( BIO * bp , BN_CTX * ctx ) {\n BIGNUM * a , * b , * c , * d , * e ;\n int i ;\n a = BN_new ( ) ;\n b = BN_new ( ) ;\n c = BN_new ( ) ;\n d = BN_new ( ) ;\n e = BN_new ( ) ;\n BN_bntest_rand ( c , 30 , 0 , 1 ) ;\n for ( i = 0 ;\n i < num2 ;\n i ++ ) {\n BN_bntest_rand ( a , 20 + i * 5 , 0 , 0 ) ;\n BN_bntest_rand ( b , 2 + i , 0 , 0 ) ;\n if ( ! BN_mod_exp ( d , a , b , c , ctx ) ) return ( 0 ) ;\n if ( bp != NULL ) {\n if ( ! results ) {\n BN_print ( bp , a ) ;\n BIO_puts ( bp , \" ^ \" ) ;\n BN_print ( bp , b ) ;\n BIO_puts ( bp , \" % \" ) ;\n BN_print ( bp , c ) ;\n BIO_puts ( bp , \" - \" ) ;\n }\n BN_print ( bp , d ) ;\n BIO_puts ( bp , \"\\n\" ) ;\n }\n BN_exp ( e , a , b , ctx ) ;\n BN_sub ( e , e , d ) ;\n BN_div ( a , b , e , c , ctx ) ;\n if ( ! BN_is_zero ( b ) ) {\n fprintf ( stderr , \"Modulo exponentiation test failed!\\n\" ) ;\n return 0 ;\n }\n }\n BN_free ( a ) ;\n BN_free ( b ) ;\n BN_free ( c ) ;\n BN_free ( d ) ;\n BN_free ( e ) ;\n return ( 1 ) ;\n }"}
{"idx": 20395, "target": 0, "func": "static void model_rd_norm ( int xsq_q10 , int * r_q10 , int * d_q10 ) {\n static const int rate_tab_q10 [ ] = {\n 65536 , 6086 , 5574 , 5275 , 5063 , 4899 , 4764 , 4651 , 4553 , 4389 , 4255 , 4142 , 4044 , 3958 , 3881 , 3811 , 3748 , 3635 , 3538 , 3453 , 3376 , 3307 , 3244 , 3186 , 3133 , 3037 , 2952 , 2877 , 2809 , 2747 , 2690 , 2638 , 2589 , 2501 , 2423 , 2353 , 2290 , 2232 , 2179 , 2130 , 2084 , 2001 , 1928 , 1862 , 1802 , 1748 , 1698 , 1651 , 1608 , 1530 , 1460 , 1398 , 1342 , 1290 , 1243 , 1199 , 1159 , 1086 , 1021 , 963 , 911 , 864 , 821 , 781 , 745 , 680 , 623 , 574 , 530 , 490 , 455 , 424 , 395 , 345 , 304 , 269 , 239 , 213 , 190 , 171 , 154 , 126 , 104 , 87 , 73 , 61 , 52 , 44 , 38 , 28 , 21 , 16 , 12 , 10 , 8 , 6 , 5 , 3 , 2 , 1 , 1 , 1 , 0 , 0 , }\n ;\n static const int dist_tab_q10 [ ] = {\n 0 , 0 , 1 , 1 , 1 , 2 , 2 , 2 , 3 , 3 , 4 , 5 , 5 , 6 , 7 , 7 , 8 , 9 , 11 , 12 , 13 , 15 , 16 , 17 , 18 , 21 , 24 , 26 , 29 , 31 , 34 , 36 , 39 , 44 , 49 , 54 , 59 , 64 , 69 , 73 , 78 , 88 , 97 , 106 , 115 , 124 , 133 , 142 , 151 , 167 , 184 , 200 , 215 , 231 , 245 , 260 , 274 , 301 , 327 , 351 , 375 , 397 , 418 , 439 , 458 , 495 , 528 , 559 , 587 , 613 , 637 , 659 , 680 , 717 , 749 , 777 , 801 , 823 , 842 , 859 , 874 , 899 , 919 , 936 , 949 , 960 , 969 , 977 , 983 , 994 , 1001 , 1006 , 1010 , 1013 , 1015 , 1017 , 1018 , 1020 , 1022 , 1022 , 1023 , 1023 , 1023 , 1024 , }\n ;\n static const int xsq_iq_q10 [ ] = {\n 0 , 4 , 8 , 12 , 16 , 20 , 24 , 28 , 32 , 40 , 48 , 56 , 64 , 72 , 80 , 88 , 96 , 112 , 128 , 144 , 160 , 176 , 192 , 208 , 224 , 256 , 288 , 320 , 352 , 384 , 416 , 448 , 480 , 544 , 608 , 672 , 736 , 800 , 864 , 928 , 992 , 1120 , 1248 , 1376 , 1504 , 1632 , 1760 , 1888 , 2016 , 2272 , 2528 , 2784 , 3040 , 3296 , 3552 , 3808 , 4064 , 4576 , 5088 , 5600 , 6112 , 6624 , 7136 , 7648 , 8160 , 9184 , 10208 , 11232 , 12256 , 13280 , 14304 , 15328 , 16352 , 18400 , 20448 , 22496 , 24544 , 26592 , 28640 , 30688 , 32736 , 36832 , 40928 , 45024 , 49120 , 53216 , 57312 , 61408 , 65504 , 73696 , 81888 , 90080 , 98272 , 106464 , 114656 , 122848 , 131040 , 147424 , 163808 , 180192 , 196576 , 212960 , 229344 , 245728 , }\n ;\n const int tmp = ( xsq_q10 >> 2 ) + 8 ;\n const int k = get_msb ( tmp ) - 3 ;\n const int xq = ( k << 3 ) + ( ( tmp >> k ) & 0x7 ) ;\n const int one_q10 = 1 << 10 ;\n const int a_q10 = ( ( xsq_q10 - xsq_iq_q10 [ xq ] ) << 10 ) >> ( 2 + k ) ;\n const int b_q10 = one_q10 - a_q10 ;\n * r_q10 = ( rate_tab_q10 [ xq ] * b_q10 + rate_tab_q10 [ xq + 1 ] * a_q10 ) >> 10 ;\n * d_q10 = ( dist_tab_q10 [ xq ] * b_q10 + dist_tab_q10 [ xq + 1 ] * a_q10 ) >> 10 ;\n }"}
{"idx": 20396, "target": 0, "func": "static int vdpau_h264_end_frame ( AVCodecContext * avctx ) {\n AVVDPAUContext * hwctx = avctx -> hwaccel_context ;\n H264Context * h = avctx -> priv_data ;\n VdpVideoSurface surf = ff_vdpau_get_surface_id ( h -> cur_pic_ptr ) ;\n hwctx -> render ( hwctx -> decoder , surf , ( void * ) & hwctx -> info , hwctx -> bitstream_buffers_used , hwctx -> bitstream_buffers ) ;\n ff_h264_draw_horiz_band ( h , 0 , h -> avctx -> height ) ;\n hwctx -> bitstream_buffers_used = 0 ;\n return 0 ;\n }"}
{"idx": 20397, "target": 0, "func": "static uint64_t nvic_sysreg_read ( void * opaque , hwaddr addr , unsigned size ) {\n nvic_state * s = ( nvic_state * ) opaque ;\n uint32_t offset = addr ;\n int i ;\n uint32_t val ;\n switch ( offset ) {\n case 0xd18 ... 0xd23 : val = 0 ;\n for ( i = 0 ;\n i < size ;\n i ++ ) {\n val |= s -> gic . priority1 [ ( offset - 0xd14 ) + i ] [ 0 ] << ( i * 8 ) ;\n }\n return val ;\n case 0xfe0 ... 0xfff : if ( offset & 3 ) {\n return 0 ;\n }\n return nvic_id [ ( offset - 0xfe0 ) >> 2 ] ;\n }\n if ( size == 4 ) {\n return nvic_readl ( s , offset ) ;\n }\n qemu_log_mask ( LOG_GUEST_ERROR , \"NVIC: Bad read of size %d at offset 0x%x\\n\" , size , offset ) ;\n return 0 ;\n }"}
{"idx": 20398, "target": 0, "func": "int PEM_write_ ## name ( FILE * fp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # endif # define DECLARE_PEM_read_bio ( name , type ) type * PEM_read_bio_ ## name ( BIO * bp , type * * x , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;\n # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;\n # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n # define DECLARE_PEM_write ( name , type ) DECLARE_PEM_write_bio ( name , type ) DECLARE_PEM_write_fp ( name , type ) # define DECLARE_PEM_write_const ( name , type ) DECLARE_PEM_write_bio_const ( name , type ) DECLARE_PEM_write_fp_const ( name , type ) # define DECLARE_PEM_write_cb ( name , type ) DECLARE_PEM_write_cb_bio ( name , type ) DECLARE_PEM_write_cb_fp ( name , type ) # define DECLARE_PEM_read ( name , type ) DECLARE_PEM_read_bio ( name , type ) DECLARE_PEM_read_fp ( name , type ) # define DECLARE_PEM_rw ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write ( name , type ) # define DECLARE_PEM_rw_const ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_const ( name , type ) # define DECLARE_PEM_rw_cb ( name , type ) DECLARE_PEM_read ( name , type ) DECLARE_PEM_write_cb ( name , type ) typedef int pem_password_cb ( char * buf , int size , int rwflag , void * userdata ) ;\n int PEM_get_EVP_CIPHER_INFO ( char * header , EVP_CIPHER_INFO * cipher ) ;\n int PEM_do_header ( EVP_CIPHER_INFO * cipher , unsigned char * data , long * len , pem_password_cb * callback , void * u ) ;\n int PEM_read_bio ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n # define PEM_FLAG_SECURE 0x1 # define PEM_FLAG_EAY_COMPATIBLE 0x2 # define PEM_FLAG_ONLY_B64 0x4 int PEM_read_bio_ex ( BIO * bp , char * * name , char * * header , unsigned char * * data , long * len , unsigned int flags ) ;\n int PEM_bytes_read_bio_secmem ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n int PEM_write_bio ( BIO * bp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n int PEM_bytes_read_bio ( unsigned char * * pdata , long * plen , char * * pnm , const char * name , BIO * bp , pem_password_cb * cb , void * u ) ;\n void * PEM_ASN1_read_bio ( d2i_of_void * d2i , const char * name , BIO * bp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write_bio ( i2d_of_void * i2d , const char * name , BIO * bp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cb , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read_bio ( BIO * bp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n int PEM_X509_INFO_write_bio ( BIO * bp , X509_INFO * xi , EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * cd , void * u ) ;\n # ifndef OPENSSL_NO_STDIO int PEM_read ( FILE * fp , char * * name , char * * header , unsigned char * * data , long * len ) ;\n int PEM_write ( FILE * fp , const char * name , const char * hdr , const unsigned char * data , long len ) ;\n void * PEM_ASN1_read ( d2i_of_void * d2i , const char * name , FILE * fp , void * * x , pem_password_cb * cb , void * u ) ;\n int PEM_ASN1_write ( i2d_of_void * i2d , const char * name , FILE * fp , void * x , const EVP_CIPHER * enc , unsigned char * kstr , int klen , pem_password_cb * callback , void * u ) ;\n STACK_OF ( X509_INFO ) * PEM_X509_INFO_read ( FILE * fp , STACK_OF ( X509_INFO ) * sk , pem_password_cb * cb , void * u ) ;\n # endif int PEM_SignInit ( EVP_MD_CTX * ctx , EVP_MD * type ) ;\n int PEM_SignUpdate ( EVP_MD_CTX * ctx , unsigned char * d , unsigned int cnt ) ;\n int PEM_SignFinal ( EVP_MD_CTX * ctx , unsigned char * sigret , unsigned int * siglen , EVP_PKEY * pkey ) ;\n int PEM_def_callback ( char * buf , int num , int rwflag , void * userdata ) ;\n void PEM_proc_type ( char * buf , int type ) ;\n void PEM_dek_info ( char * buf , const char * type , int len , char * str ) ;\n # include < openssl / symhacks . h > DECLARE_PEM_rw ( X509 , X509 ) DECLARE_PEM_rw ( X509_AUX , X509 ) DECLARE_PEM_rw ( X509_REQ , X509_REQ ) DECLARE_PEM_write ( X509_REQ_NEW , X509_REQ ) DECLARE_PEM_rw ( X509_CRL , X509_CRL ) DECLARE_PEM_rw ( PKCS7 , PKCS7 ) DECLARE_PEM_rw ( NETSCAPE_CERT_SEQUENCE , NETSCAPE_CERT_SEQUENCE ) DECLARE_PEM_rw ( PKCS8 , X509_SIG ) DECLARE_PEM_rw ( PKCS8_PRIV_KEY_INFO , PKCS8_PRIV_KEY_INFO ) # ifndef OPENSSL_NO_RSA DECLARE_PEM_rw_cb ( RSAPrivateKey , RSA ) DECLARE_PEM_rw_const ( RSAPublicKey , RSA ) DECLARE_PEM_rw ( RSA_PUBKEY , RSA ) # endif # ifndef OPENSSL_NO_DSA DECLARE_PEM_rw_cb ( DSAPrivateKey , DSA )"}
{"idx": 20399, "target": 0, "func": "static uint ms_to_precision ( uint ms ) {\n uint cut , precision ;\n for ( cut = 10 , precision = 6 ;\n precision > 0 ;\n cut *= 10 , precision -- ) {\n if ( ms % cut ) return precision ;\n }\n return 0 ;\n }"}
{"idx": 20400, "target": 0, "func": "void SFDummyUpCIDs ( struct glyphinfo * gi , SplineFont * sf ) {\n int i , j , k , max ;\n int * bygid ;\n max = 0 ;\n for ( k = 0 ;\n k < sf -> subfontcnt ;\n ++ k ) if ( sf -> subfonts [ k ] -> glyphcnt > max ) max = sf -> subfonts [ k ] -> glyphcnt ;\n if ( max == 0 ) return ;\n sf -> glyphs = calloc ( max , sizeof ( SplineChar * ) ) ;\n sf -> glyphcnt = sf -> glyphmax = max ;\n for ( k = 0 ;\n k < sf -> subfontcnt ;\n ++ k ) for ( i = 0 ;\n i < sf -> subfonts [ k ] -> glyphcnt ;\n ++ i ) if ( sf -> subfonts [ k ] -> glyphs [ i ] != NULL ) sf -> glyphs [ i ] = sf -> subfonts [ k ] -> glyphs [ i ] ;\n if ( gi == NULL ) return ;\n bygid = malloc ( ( sf -> glyphcnt + 3 ) * sizeof ( int ) ) ;\n memset ( bygid , 0xff , ( sf -> glyphcnt + 3 ) * sizeof ( int ) ) ;\n j = 1 ;\n for ( i = 0 ;\n i < sf -> glyphcnt ;\n ++ i ) if ( sf -> glyphs [ i ] != NULL ) {\n if ( bygid [ 0 ] == - 1 && strcmp ( sf -> glyphs [ i ] -> name , \".notdef\" ) == 0 ) {\n sf -> glyphs [ i ] -> ttf_glyph = 0 ;\n bygid [ 0 ] = i ;\n }\n else if ( SCWorthOutputting ( sf -> glyphs [ i ] ) ) {\n sf -> glyphs [ i ] -> ttf_glyph = j ;\n bygid [ j ++ ] = i ;\n }\n }\n gi -> bygid = bygid ;\n gi -> gcnt = j ;\n }"}
{"idx": 20401, "target": 1, "func": "static int decode_frame ( WmallDecodeCtx * s ) {\n GetBitContext * gb = & s -> gb ;\n int more_frames = 0 , len = 0 , i , ret ;\n s -> frame . nb_samples = s -> samples_per_frame ;\n if ( ( ret = ff_get_buffer ( s -> avctx , & s -> frame ) ) < 0 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"not enough space for the output samples\\n\" ) ;\n s -> packet_loss = 1 ;\n return ret ;\n }\n for ( i = 0 ;\n i < s -> num_channels ;\n i ++ ) {\n s -> samples_16 [ i ] = ( int16_t * ) s -> frame . extended_data [ i ] ;\n s -> samples_32 [ i ] = ( int32_t * ) s -> frame . extended_data [ i ] ;\n }\n if ( s -> len_prefix ) len = get_bits ( gb , s -> log2_frame_size ) ;\n if ( decode_tilehdr ( s ) ) {\n s -> packet_loss = 1 ;\n return 0 ;\n }\n if ( s -> dynamic_range_compression ) s -> drc_gain = get_bits ( gb , 8 ) ;\n if ( get_bits1 ( gb ) ) {\n int av_unused skip ;\n if ( get_bits1 ( gb ) ) {\n skip = get_bits ( gb , av_log2 ( s -> samples_per_frame * 2 ) ) ;\n av_dlog ( s -> avctx , \"start skip: %i\\n\" , skip ) ;\n }\n if ( get_bits1 ( gb ) ) {\n skip = get_bits ( gb , av_log2 ( s -> samples_per_frame * 2 ) ) ;\n av_dlog ( s -> avctx , \"end skip: %i\\n\" , skip ) ;\n }\n }\n s -> parsed_all_subframes = 0 ;\n for ( i = 0 ;\n i < s -> num_channels ;\n i ++ ) {\n s -> channel [ i ] . decoded_samples = 0 ;\n s -> channel [ i ] . cur_subframe = 0 ;\n }\n while ( ! s -> parsed_all_subframes ) {\n if ( decode_subframe ( s ) < 0 ) {\n s -> packet_loss = 1 ;\n return 0 ;\n }\n }\n av_dlog ( s -> avctx , \"Frame done\\n\" ) ;\n if ( s -> skip_frame ) s -> skip_frame = 0 ;\n if ( s -> len_prefix ) {\n if ( len != ( get_bits_count ( gb ) - s -> frame_offset ) + 2 ) {\n av_log ( s -> avctx , AV_LOG_ERROR , \"frame[%i] would have to skip %i bits\\n\" , s -> frame_num , len - ( get_bits_count ( gb ) - s -> frame_offset ) - 1 ) ;\n s -> packet_loss = 1 ;\n return 0 ;\n }\n skip_bits_long ( gb , len - ( get_bits_count ( gb ) - s -> frame_offset ) - 1 ) ;\n }\n more_frames = get_bits1 ( gb ) ;\n ++ s -> frame_num ;\n return more_frames ;\n }"}
{"idx": 20402, "target": 0, "func": "MIMEHdrImpl * mime_hdr_create ( HdrHeap * heap ) {\n MIMEHdrImpl * mh ;\n mh = ( MIMEHdrImpl * ) heap -> allocate_obj ( sizeof ( MIMEHdrImpl ) , HDR_HEAP_OBJ_MIME_HEADER ) ;\n mime_hdr_init ( mh ) ;\n return mh ;\n }"}
{"idx": 20403, "target": 0, "func": "static int dissect_h225_SEQUENCE_SIZE_1_512_OF_EnumeratedParameter ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_constrained_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_SEQUENCE_SIZE_1_512_OF_EnumeratedParameter , SEQUENCE_SIZE_1_512_OF_EnumeratedParameter_sequence_of , 1 , 512 , FALSE ) ;\n return offset ;\n }"}
{"idx": 20404, "target": 0, "func": "static int rtp_packetize_mpv ( sout_stream_id_sys_t * id , block_t * in ) {\n int i_max = rtp_mtu ( id ) - 4 ;\n int i_count = ( in -> i_buffer + i_max - 1 ) / i_max ;\n uint8_t * p_data = in -> p_buffer ;\n int i_data = in -> i_buffer ;\n int i ;\n int b_sequence_start = 0 ;\n int i_temporal_ref = 0 ;\n int i_picture_coding_type = 0 ;\n int i_fbv = 0 , i_bfc = 0 , i_ffv = 0 , i_ffc = 0 ;\n int b_start_slice = 0 ;\n if ( in -> i_buffer > 4 ) {\n uint8_t * p = p_data ;\n int i_rest = in -> i_buffer ;\n for ( ;\n ;\n ) {\n while ( i_rest > 4 && ( p [ 0 ] != 0x00 || p [ 1 ] != 0x00 || p [ 2 ] != 0x01 ) ) {\n p ++ ;\n i_rest -- ;\n }\n if ( i_rest <= 4 ) {\n break ;\n }\n p += 3 ;\n i_rest -= 4 ;\n if ( * p == 0xb3 ) {\n b_sequence_start = 1 ;\n }\n else if ( * p == 0x00 && i_rest >= 4 ) {\n i_temporal_ref = ( p [ 1 ] << 2 ) | ( ( p [ 2 ] >> 6 ) & 0x03 ) ;\n i_picture_coding_type = ( p [ 2 ] >> 3 ) & 0x07 ;\n if ( i_rest >= 4 && ( i_picture_coding_type == 2 || i_picture_coding_type == 3 ) ) {\n i_ffv = ( p [ 3 ] >> 2 ) & 0x01 ;\n i_ffc = ( ( p [ 3 ] & 0x03 ) << 1 ) | ( ( p [ 4 ] >> 7 ) & 0x01 ) ;\n if ( i_rest > 4 && i_picture_coding_type == 3 ) {\n i_fbv = ( p [ 4 ] >> 6 ) & 0x01 ;\n i_bfc = ( p [ 4 ] >> 3 ) & 0x07 ;\n }\n }\n }\n else if ( * p <= 0xaf ) {\n b_start_slice = 1 ;\n }\n }\n }\n for ( i = 0 ;\n i < i_count ;\n i ++ ) {\n int i_payload = __MIN ( i_max , i_data ) ;\n block_t * out = block_Alloc ( 16 + i_payload ) ;\n uint32_t h = ( i_temporal_ref << 16 ) | ( b_sequence_start << 13 ) | ( b_start_slice << 12 ) | ( i == i_count - 1 ? 1 << 11 : 0 ) | ( i_picture_coding_type << 8 ) | ( i_fbv << 7 ) | ( i_bfc << 4 ) | ( i_ffv << 3 ) | i_ffc ;\n rtp_packetize_common ( id , out , ( i == i_count - 1 ) ? 1 : 0 , in -> i_pts > VLC_TS_INVALID ? in -> i_pts : in -> i_dts ) ;\n SetDWBE ( out -> p_buffer + 12 , h ) ;\n memcpy ( & out -> p_buffer [ 16 ] , p_data , i_payload ) ;\n out -> i_dts = in -> i_dts + i * in -> i_length / i_count ;\n out -> i_length = in -> i_length / i_count ;\n rtp_packetize_send ( id , out ) ;\n p_data += i_payload ;\n i_data -= i_payload ;\n }\n block_Release ( in ) ;\n return VLC_SUCCESS ;\n }"}
{"idx": 20405, "target": 0, "func": "static int dissect_h225_RasUsageInformation ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_RasUsageInformation , RasUsageInformation_sequence ) ;\n return offset ;\n }"}
{"idx": 20406, "target": 0, "func": "static void link_info_read_state_free ( LinkInfoReadState * state ) {\n g_object_unref ( state -> cancellable ) ;\n g_free ( state ) ;\n }"}
{"idx": 20407, "target": 0, "func": "static void rv34_output_intra ( RV34DecContext * r , int8_t * intra_types , int cbp ) {\n MpegEncContext * s = & r -> s ;\n uint8_t * dst = s -> dest [ 0 ] ;\n int avail [ 6 * 8 ] = {\n 0 }\n ;\n int i , j , k ;\n int idx , q_ac , q_dc ;\n if ( r -> avail_cache [ 1 ] ) avail [ 0 ] = 1 ;\n if ( r -> avail_cache [ 2 ] ) avail [ 1 ] = avail [ 2 ] = 1 ;\n if ( r -> avail_cache [ 3 ] ) avail [ 3 ] = avail [ 4 ] = 1 ;\n if ( r -> avail_cache [ 4 ] ) avail [ 5 ] = 1 ;\n if ( r -> avail_cache [ 5 ] ) avail [ 8 ] = avail [ 16 ] = 1 ;\n if ( r -> avail_cache [ 9 ] ) avail [ 24 ] = avail [ 32 ] = 1 ;\n q_ac = rv34_qscale_tab [ s -> qscale ] ;\n for ( j = 0 ;\n j < 4 ;\n j ++ ) {\n idx = 9 + j * 8 ;\n for ( i = 0 ;\n i < 4 ;\n i ++ , cbp >>= 1 , dst += 4 , idx ++ ) {\n rv34_pred_4x4_block ( r , dst , s -> linesize , ittrans [ intra_types [ i ] ] , avail [ idx - 8 ] , avail [ idx - 1 ] , avail [ idx + 7 ] , avail [ idx - 7 ] ) ;\n avail [ idx ] = 1 ;\n if ( ! ( cbp & 1 ) ) continue ;\n rv34_process_block ( r , dst , s -> linesize , r -> luma_vlc , 0 , q_ac , q_ac ) ;\n }\n dst += s -> linesize * 4 - 4 * 4 ;\n intra_types += r -> intra_types_stride ;\n }\n intra_types -= r -> intra_types_stride * 4 ;\n q_dc = rv34_qscale_tab [ rv34_chroma_quant [ 1 ] [ s -> qscale ] ] ;\n q_ac = rv34_qscale_tab [ rv34_chroma_quant [ 0 ] [ s -> qscale ] ] ;\n for ( k = 0 ;\n k < 2 ;\n k ++ ) {\n dst = s -> dest [ 1 + k ] ;\n fill_rectangle ( r -> avail_cache + 6 , 2 , 2 , 4 , 0 , 4 ) ;\n for ( j = 0 ;\n j < 2 ;\n j ++ ) {\n int * acache = r -> avail_cache + 6 + j * 4 ;\n for ( i = 0 ;\n i < 2 ;\n i ++ , cbp >>= 1 , acache ++ ) {\n int itype = ittrans [ intra_types [ i * 2 + j * 2 * r -> intra_types_stride ] ] ;\n rv34_pred_4x4_block ( r , dst + 4 * i , s -> uvlinesize , itype , acache [ - 4 ] , acache [ - 1 ] , ! i && ! j , acache [ - 3 ] ) ;\n acache [ 0 ] = 1 ;\n if ( ! ( cbp & 1 ) ) continue ;\n rv34_process_block ( r , dst + 4 * i , s -> uvlinesize , r -> chroma_vlc , 1 , q_dc , q_ac ) ;\n }\n dst += 4 * s -> uvlinesize ;\n }\n }\n }"}
{"idx": 20408, "target": 0, "func": "TEST_F ( NativeBackendLibsecretTest , RemoveLoginsSyncedBetween ) {\n CheckRemoveLoginsBetween ( SYNCED ) ;\n }"}
{"idx": 20409, "target": 1, "func": "uint32_t mt_random ( mtrand * mt ) {\n uint32_t y ;\n unsigned long mag01 [ 2 ] ;\n mag01 [ 0 ] = 0 ;\n mag01 [ 1 ] = MATRIX_A ;\n if ( mt -> mt_index_ >= MT_LEN ) {\n int kk ;\n for ( kk = 0 ;\n kk < MT_LEN - MT_IA ;\n kk ++ ) {\n y = ( mt -> mt_buffer_ [ kk ] & UPPER_MASK ) | ( mt -> mt_buffer_ [ kk + 1 ] & LOWER_MASK ) ;\n mt -> mt_buffer_ [ kk ] = mt -> mt_buffer_ [ kk + MT_IA ] ^ ( y >> 1 ) ^ mag01 [ y & 0x1UL ] ;\n }\n for ( ;\n kk < MT_LEN - 1 ;\n kk ++ ) {\n y = ( mt -> mt_buffer_ [ kk ] & UPPER_MASK ) | ( mt -> mt_buffer_ [ kk + 1 ] & LOWER_MASK ) ;\n mt -> mt_buffer_ [ kk ] = mt -> mt_buffer_ [ kk + ( MT_IA - MT_LEN ) ] ^ ( y >> 1 ) ^ mag01 [ y & 0x1UL ] ;\n }\n y = ( mt -> mt_buffer_ [ MT_LEN - 1 ] & UPPER_MASK ) | ( mt -> mt_buffer_ [ 0 ] & LOWER_MASK ) ;\n mt -> mt_buffer_ [ MT_LEN - 1 ] = mt -> mt_buffer_ [ MT_IA - 1 ] ^ ( y >> 1 ) ^ mag01 [ y & 0x1UL ] ;\n mt -> mt_index_ = 0 ;\n }\n y = mt -> mt_buffer_ [ mt -> mt_index_ ++ ] ;\n y ^= ( y >> 11 ) ;\n y ^= ( y << 7 ) & 0x9d2c5680UL ;\n y ^= ( y << 15 ) & 0xefc60000UL ;\n y ^= ( y >> 18 ) ;\n return y ;\n }"}
{"idx": 20410, "target": 0, "func": "static inline void next_char ( hb_buffer_t * buffer , hb_codepoint_t glyph ) {\n buffer -> cur ( ) . glyph_index ( ) = glyph ;\n buffer -> next_glyph ( ) ;\n }"}
{"idx": 20411, "target": 0, "func": "static int sfile_read ( jas_stream_obj_t * obj , char * buf , int cnt ) {\n FILE * fp ;\n fp = JAS_CAST ( FILE * , obj ) ;\n return fread ( buf , 1 , cnt , fp ) ;\n }"}
{"idx": 20412, "target": 0, "func": "static void set_local_port_range ( int range [ 2 ] ) {\n write_seqlock ( & sysctl_local_ports . lock ) ;\n sysctl_local_ports . range [ 0 ] = range [ 0 ] ;\n sysctl_local_ports . range [ 1 ] = range [ 1 ] ;\n write_sequnlock ( & sysctl_local_ports . lock ) ;\n }"}
{"idx": 20413, "target": 0, "func": "static PGconn * _connectDB ( ArchiveHandle * AH , const char * reqdb , const char * requser ) {\n PQExpBufferData connstr ;\n PGconn * newConn ;\n const char * newdb ;\n const char * newuser ;\n char * password ;\n bool new_pass ;\n if ( ! reqdb ) newdb = PQdb ( AH -> connection ) ;\n else newdb = reqdb ;\n if ( ! requser || strlen ( requser ) == 0 ) newuser = PQuser ( AH -> connection ) ;\n else newuser = requser ;\n ahlog ( AH , 1 , \"connecting to database \\\"%s\\\" as user \\\"%s\\\"\\n\" , newdb , newuser ) ;\n password = AH -> savedPassword ? pg_strdup ( AH -> savedPassword ) : NULL ;\n if ( AH -> promptPassword == TRI_YES && password == NULL ) {\n password = simple_prompt ( \"Password: \" , 100 , false ) ;\n if ( password == NULL ) exit_horribly ( modulename , \"out of memory\\n\" ) ;\n }\n initPQExpBuffer ( & connstr ) ;\n appendPQExpBuffer ( & connstr , \"dbname=\" ) ;\n appendConnStrVal ( & connstr , newdb ) ;\n do {\n const char * keywords [ 7 ] ;\n const char * values [ 7 ] ;\n keywords [ 0 ] = \"host\" ;\n values [ 0 ] = PQhost ( AH -> connection ) ;\n keywords [ 1 ] = \"port\" ;\n values [ 1 ] = PQport ( AH -> connection ) ;\n keywords [ 2 ] = \"user\" ;\n values [ 2 ] = newuser ;\n keywords [ 3 ] = \"password\" ;\n values [ 3 ] = password ;\n keywords [ 4 ] = \"dbname\" ;\n values [ 4 ] = connstr . data ;\n keywords [ 5 ] = \"fallback_application_name\" ;\n values [ 5 ] = progname ;\n keywords [ 6 ] = NULL ;\n values [ 6 ] = NULL ;\n new_pass = false ;\n newConn = PQconnectdbParams ( keywords , values , true ) ;\n if ( ! newConn ) exit_horribly ( modulename , \"failed to reconnect to database\\n\" ) ;\n if ( PQstatus ( newConn ) == CONNECTION_BAD ) {\n if ( ! PQconnectionNeedsPassword ( newConn ) ) exit_horribly ( modulename , \"could not reconnect to database: %s\" , PQerrorMessage ( newConn ) ) ;\n PQfinish ( newConn ) ;\n if ( password ) fprintf ( stderr , \"Password incorrect\\n\" ) ;\n fprintf ( stderr , \"Connecting to %s as %s\\n\" , newdb , newuser ) ;\n if ( password ) free ( password ) ;\n if ( AH -> promptPassword != TRI_NO ) password = simple_prompt ( \"Password: \" , 100 , false ) ;\n else exit_horribly ( modulename , \"connection needs password\\n\" ) ;\n if ( password == NULL ) exit_horribly ( modulename , \"out of memory\\n\" ) ;\n new_pass = true ;\n }\n }\n while ( new_pass ) ;\n if ( PQconnectionUsedPassword ( newConn ) ) {\n if ( AH -> savedPassword ) free ( AH -> savedPassword ) ;\n AH -> savedPassword = pg_strdup ( PQpass ( newConn ) ) ;\n }\n if ( password ) free ( password ) ;\n termPQExpBuffer ( & connstr ) ;\n _check_database_version ( AH ) ;\n PQsetNoticeProcessor ( newConn , notice_processor , NULL ) ;\n return newConn ;\n }"}
{"idx": 20414, "target": 0, "func": "static inline struct isoent * path_table_last_entry ( struct path_table * pathtbl ) {\n if ( pathtbl -> first == NULL ) return ( NULL ) ;\n return ( ( ( struct isoent * ) ( void * ) ( ( char * ) ( pathtbl -> last ) - offsetof ( struct isoent , ptnext ) ) ) ) ;\n }"}
{"idx": 20415, "target": 0, "func": "static void SetHeaderFromIPL ( Image * image , IPLInfo * ipl ) {\n image -> columns = ipl -> width ;\n image -> rows = ipl -> height ;\n image -> depth = ipl -> depth ;\n image -> x_resolution = 1 ;\n image -> y_resolution = 1 ;\n }"}
{"idx": 20416, "target": 0, "func": "unsigned int vp9_sad ## m ## x ## n ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride ) {\n return sad ( src , src_stride , ref , ref_stride , m , n ) ;\n \\ }\n 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 ) {\n uint8_t comp_pred [ m * n ] ;\n vp9_comp_avg_pred ( comp_pred , second_pred , m , n , ref , ref_stride ) ;\n return sad ( src , src_stride , comp_pred , m , m , n ) ;\n \\ }\n # define sadMxNxK ( m , n , k ) void vp9_sad ## m ## x ## n ## x ## k ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < k ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , & ref [ i ] , ref_stride ) ;\n \\ }\n # define sadMxNx4D ( m , n ) void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) {\n int i ;\n for ( i = 0 ;\n i < 4 ;\n ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ;\n \\ }\n sadMxN ( 64 , 64 )"}
{"idx": 20417, "target": 0, "func": "unsigned int srtp_profile_get_master_salt_length ( srtp_profile_t profile ) {\n switch ( profile ) {\n case srtp_profile_aes128_cm_sha1_80 : return 14 ;\n break ;\n case srtp_profile_aes128_cm_sha1_32 : return 14 ;\n break ;\n case srtp_profile_null_sha1_80 : return 14 ;\n break ;\n case srtp_profile_aes256_cm_sha1_80 : return 14 ;\n break ;\n case srtp_profile_aes256_cm_sha1_32 : return 14 ;\n break ;\n case srtp_profile_null_sha1_32 : default : return 0 ;\n }\n }"}
{"idx": 20418, "target": 0, "func": "int mainwindow_set_statusbar_lines ( MAIN_WINDOW_REC * window , int top , int bottom ) {\n int ret ;\n ret = - 1 ;\n if ( top != 0 ) {\n ret = window -> statusbar_lines_top ;\n window -> statusbar_lines_top += top ;\n window -> statusbar_lines += top ;\n }\n if ( bottom != 0 ) {\n ret = window -> statusbar_lines_bottom ;\n window -> statusbar_lines_bottom += bottom ;\n window -> statusbar_lines += bottom ;\n }\n if ( top + bottom != 0 ) window -> size_dirty = TRUE ;\n return ret ;\n }"}
{"idx": 20419, "target": 0, "func": "static Image * ReadARTImage ( const ImageInfo * image_info , ExceptionInfo * exception ) {\n const unsigned char * pixels ;\n Image * image ;\n QuantumInfo * quantum_info ;\n QuantumType quantum_type ;\n MagickBooleanType status ;\n size_t length ;\n ssize_t count , y ;\n assert ( image_info != ( const ImageInfo * ) NULL ) ;\n assert ( image_info -> signature == MagickSignature ) ;\n if ( image_info -> debug != MagickFalse ) ( void ) LogMagickEvent ( TraceEvent , GetMagickModule ( ) , \"%s\" , image_info -> filename ) ;\n assert ( exception != ( ExceptionInfo * ) NULL ) ;\n assert ( exception -> signature == MagickSignature ) ;\n image = AcquireImage ( image_info ) ;\n status = OpenBlob ( image_info , image , ReadBinaryBlobMode , exception ) ;\n if ( status == MagickFalse ) {\n image = DestroyImageList ( image ) ;\n return ( ( Image * ) NULL ) ;\n }\n image -> depth = 1 ;\n image -> endian = MSBEndian ;\n ( void ) ReadBlobLSBShort ( image ) ;\n image -> columns = ( size_t ) ReadBlobLSBShort ( image ) ;\n ( void ) ReadBlobLSBShort ( image ) ;\n image -> rows = ( size_t ) ReadBlobLSBShort ( image ) ;\n if ( ( image -> columns == 0 ) || ( image -> rows == 0 ) ) ThrowReaderException ( CorruptImageError , \"ImproperImageHeader\" ) ;\n if ( AcquireImageColormap ( image , 2 ) == MagickFalse ) ThrowReaderException ( ResourceLimitError , \"MemoryAllocationFailed\" ) ;\n if ( image_info -> ping != MagickFalse ) {\n ( void ) CloseBlob ( image ) ;\n return ( GetFirstImageInList ( image ) ) ;\n }\n status = SetImageExtent ( image , image -> columns , image -> rows ) ;\n if ( status == MagickFalse ) {\n InheritException ( exception , & image -> exception ) ;\n return ( DestroyImageList ( image ) ) ;\n }\n SetImageColorspace ( image , GRAYColorspace ) ;\n quantum_type = IndexQuantum ;\n quantum_info = AcquireQuantumInfo ( image_info , image ) ;\n if ( quantum_info == ( QuantumInfo * ) NULL ) ThrowReaderException ( ResourceLimitError , \"MemoryAllocationFailed\" ) ;\n length = GetQuantumExtent ( image , quantum_info , quantum_type ) ;\n for ( y = 0 ;\n y < ( ssize_t ) image -> rows ;\n y ++ ) {\n register PixelPacket * magick_restrict q ;\n q = QueueAuthenticPixels ( image , 0 , y , image -> columns , 1 , exception ) ;\n if ( q == ( PixelPacket * ) NULL ) break ;\n pixels = ( const unsigned char * ) ReadBlobStream ( image , length , GetQuantumPixels ( quantum_info ) , & count ) ;\n if ( count != ( ssize_t ) length ) {\n quantum_info = DestroyQuantumInfo ( quantum_info ) ;\n ThrowReaderException ( CorruptImageError , \"UnableToReadImageData\" ) ;\n }\n ( void ) ImportQuantumPixels ( image , ( CacheView * ) NULL , quantum_info , quantum_type , pixels , exception ) ;\n ( void ) ReadBlobStream ( image , ( size_t ) ( - ( ssize_t ) length ) & 0x01 , GetQuantumPixels ( quantum_info ) , & count ) ;\n if ( SyncAuthenticPixels ( image , exception ) == MagickFalse ) break ;\n status = SetImageProgress ( image , LoadImageTag , ( MagickOffsetType ) y , image -> rows ) ;\n if ( status == MagickFalse ) break ;\n }\n SetQuantumImageType ( image , quantum_type ) ;\n quantum_info = DestroyQuantumInfo ( quantum_info ) ;\n if ( EOFBlob ( image ) != MagickFalse ) ThrowFileException ( exception , CorruptImageError , \"UnexpectedEndOfFile\" , image -> filename ) ;\n ( void ) CloseBlob ( image ) ;\n return ( GetFirstImageInList ( image ) ) ;\n }"}
{"idx": 20420, "target": 0, "func": "int psf_ftruncate ( SF_PRIVATE * psf , sf_count_t len ) {\n int retval ;\n if ( len < 0 ) return - 1 ;\n if ( ( sizeof ( off_t ) < sizeof ( sf_count_t ) ) && len > 0x7FFFFFFF ) return - 1 ;\n retval = ftruncate ( psf -> file . filedes , len ) ;\n if ( retval == - 1 ) psf_log_syserr ( psf , errno ) ;\n return retval ;\n }"}
{"idx": 20421, "target": 0, "func": "static int SpoolssRRPCN_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) {\n offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_rrpcn_unk0 , NULL ) ;\n offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ;\n return offset ;\n }"}
{"idx": 20422, "target": 0, "func": "TSMLoc TSMimeHdrFieldNextDup ( TSMBuffer bufp , TSMLoc hdr , TSMLoc field ) {\n sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ;\n sdk_assert ( ( sdk_sanity_check_mime_hdr_handle ( hdr ) == TS_SUCCESS ) || ( sdk_sanity_check_http_hdr_handle ( hdr ) == TS_SUCCESS ) ) ;\n sdk_assert ( sdk_sanity_check_field_handle ( field , hdr ) == TS_SUCCESS ) ;\n MIMEHdrImpl * mh = _hdr_mloc_to_mime_hdr_impl ( hdr ) ;\n MIMEFieldSDKHandle * field_handle = ( MIMEFieldSDKHandle * ) field ;\n MIMEField * next = field_handle -> field_ptr -> m_next_dup ;\n if ( next == nullptr ) {\n return TS_NULL_MLOC ;\n }\n MIMEFieldSDKHandle * next_handle = sdk_alloc_field_handle ( bufp , mh ) ;\n next_handle -> field_ptr = next ;\n return ( TSMLoc ) next_handle ;\n }"}
{"idx": 20423, "target": 0, "func": "PyObject * PyString_AsEncodedObject ( PyObject * str , const char * encoding , const char * errors ) {\n PyObject * v ;\n if ( ! PyString_Check ( str ) ) {\n PyErr_BadArgument ( ) ;\n goto onError ;\n }\n if ( encoding == NULL ) {\n # ifdef Py_USING_UNICODE encoding = PyUnicode_GetDefaultEncoding ( ) ;\n # else PyErr_SetString ( PyExc_ValueError , \"no encoding specified\" ) ;\n goto onError ;\n # endif }\n v = _PyCodec_EncodeText ( str , encoding , errors ) ;\n if ( v == NULL ) goto onError ;\n return v ;\n onError : return NULL ;\n }"}
{"idx": 20424, "target": 0, "func": "static int aura_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * pkt ) {\n AVFrame * frame = data ;\n uint8_t * Y , * U , * V ;\n uint8_t val ;\n int x , y , ret ;\n const uint8_t * buf = pkt -> data ;\n const int8_t * delta_table = ( const int8_t * ) buf + 16 ;\n if ( pkt -> size != 48 + avctx -> height * avctx -> width ) {\n av_log ( avctx , AV_LOG_ERROR , \"got a buffer with %d bytes when %d were expected\\n\" , pkt -> size , 48 + avctx -> height * avctx -> width ) ;\n return AVERROR_INVALIDDATA ;\n }\n buf += 48 ;\n if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) {\n av_log ( avctx , AV_LOG_ERROR , \"get_buffer() failed\\n\" ) ;\n return ret ;\n }\n Y = frame -> data [ 0 ] ;\n U = frame -> data [ 1 ] ;\n V = frame -> data [ 2 ] ;\n for ( y = 0 ;\n y < avctx -> height ;\n y ++ ) {\n val = * buf ++ ;\n U [ 0 ] = val & 0xF0 ;\n Y [ 0 ] = val << 4 ;\n val = * buf ++ ;\n V [ 0 ] = val & 0xF0 ;\n Y [ 1 ] = Y [ 0 ] + delta_table [ val & 0xF ] ;\n Y += 2 ;\n U ++ ;\n V ++ ;\n for ( x = 1 ;\n x < ( avctx -> width >> 1 ) ;\n x ++ ) {\n val = * buf ++ ;\n U [ 0 ] = U [ - 1 ] + delta_table [ val >> 4 ] ;\n Y [ 0 ] = Y [ - 1 ] + delta_table [ val & 0xF ] ;\n val = * buf ++ ;\n V [ 0 ] = V [ - 1 ] + delta_table [ val >> 4 ] ;\n Y [ 1 ] = Y [ 0 ] + delta_table [ val & 0xF ] ;\n Y += 2 ;\n U ++ ;\n V ++ ;\n }\n Y += frame -> linesize [ 0 ] - avctx -> width ;\n U += frame -> linesize [ 1 ] - ( avctx -> width >> 1 ) ;\n V += frame -> linesize [ 2 ] - ( avctx -> width >> 1 ) ;\n }\n * got_frame = 1 ;\n return pkt -> size ;\n }"}
{"idx": 20425, "target": 0, "func": "int archive_mstring_update_utf8 ( struct archive * a , struct archive_mstring * aes , const char * utf8 ) {\n struct archive_string_conv * sc ;\n int r ;\n if ( utf8 == NULL ) {\n aes -> aes_set = 0 ;\n return ( 0 ) ;\n }\n archive_strcpy ( & ( aes -> aes_utf8 ) , utf8 ) ;\n archive_string_empty ( & ( aes -> aes_mbs ) ) ;\n archive_wstring_empty ( & ( aes -> aes_wcs ) ) ;\n aes -> aes_set = AES_SET_UTF8 ;\n sc = archive_string_conversion_from_charset ( a , \"UTF-8\" , 1 ) ;\n if ( sc == NULL ) return ( - 1 ) ;\n r = archive_strcpy_l ( & ( aes -> aes_mbs ) , utf8 , sc ) ;\n if ( a == NULL ) free_sconv_object ( sc ) ;\n if ( r != 0 ) return ( - 1 ) ;\n aes -> aes_set = AES_SET_UTF8 | AES_SET_MBS ;\n if ( archive_wstring_append_from_mbs ( & ( aes -> aes_wcs ) , aes -> aes_mbs . s , aes -> aes_mbs . length ) ) return ( - 1 ) ;\n aes -> aes_set = AES_SET_UTF8 | AES_SET_WCS | AES_SET_MBS ;\n return ( 0 ) ;\n }"}
{"idx": 20426, "target": 0, "func": "static guint32 dissect_netb_session_end ( tvbuff_t * tvb , packet_info * pinfo _U_ , int offset , proto_tree * tree ) {\n nb_data2 ( hf_netb_termination_indicator , tvb , offset , tree ) ;\n nb_remote_session ( tvb , offset , tree ) ;\n nb_local_session ( tvb , offset , tree ) ;\n return 0 ;\n }"}
{"idx": 20427, "target": 0, "func": "err_status_t srtp_protect ( srtp_ctx_t * ctx , void * rtp_hdr , int * pkt_octet_len ) {\n srtp_hdr_t * hdr = ( srtp_hdr_t * ) rtp_hdr ;\n uint32_t * enc_start ;\n uint32_t * auth_start ;\n unsigned int enc_octet_len = 0 ;\n xtd_seq_num_t est ;\n int delta ;\n uint8_t * auth_tag = NULL ;\n err_status_t status ;\n int tag_len ;\n srtp_stream_ctx_t * stream ;\n int prefix_len ;\n debug_print ( mod_srtp , \"function srtp_protect\" , NULL ) ;\n status = srtp_validate_rtp_header ( rtp_hdr , pkt_octet_len ) ;\n if ( status ) return status ;\n if ( * pkt_octet_len < octets_in_rtp_header ) return err_status_bad_param ;\n stream = srtp_get_stream ( ctx , hdr -> ssrc ) ;\n if ( stream == NULL ) {\n if ( ctx -> stream_template != NULL ) {\n srtp_stream_ctx_t * new_stream ;\n status = srtp_stream_clone ( ctx -> stream_template , hdr -> ssrc , & new_stream ) ;\n if ( status ) return status ;\n new_stream -> next = ctx -> stream_list ;\n ctx -> stream_list = new_stream ;\n new_stream -> direction = dir_srtp_sender ;\n stream = new_stream ;\n }\n else {\n return err_status_no_ctx ;\n }\n }\n if ( stream -> direction != dir_srtp_sender ) {\n if ( stream -> direction == dir_unknown ) {\n stream -> direction = dir_srtp_sender ;\n }\n else {\n srtp_handle_event ( ctx , stream , event_ssrc_collision ) ;\n }\n }\n if ( stream -> rtp_cipher -> algorithm == AES_128_GCM || stream -> rtp_cipher -> algorithm == AES_256_GCM ) {\n return srtp_protect_aead ( ctx , stream , rtp_hdr , ( unsigned int * ) pkt_octet_len ) ;\n }\n switch ( key_limit_update ( stream -> limit ) ) {\n case key_event_normal : break ;\n case key_event_soft_limit : srtp_handle_event ( ctx , stream , event_key_soft_limit ) ;\n break ;\n case key_event_hard_limit : srtp_handle_event ( ctx , stream , event_key_hard_limit ) ;\n return err_status_key_expired ;\n default : break ;\n }\n tag_len = auth_get_tag_length ( stream -> rtp_auth ) ;\n if ( stream -> rtp_services & sec_serv_conf ) {\n enc_start = ( uint32_t * ) hdr + uint32s_in_rtp_header + hdr -> cc ;\n if ( hdr -> x == 1 ) {\n srtp_hdr_xtnd_t * xtn_hdr = ( srtp_hdr_xtnd_t * ) enc_start ;\n enc_start += ( ntohs ( xtn_hdr -> length ) + 1 ) ;\n }\n if ( ! ( ( uint8_t * ) enc_start < ( uint8_t * ) hdr + * pkt_octet_len ) ) return err_status_parse_err ;\n enc_octet_len = ( unsigned int ) ( * pkt_octet_len - ( ( uint8_t * ) enc_start - ( uint8_t * ) hdr ) ) ;\n }\n else {\n enc_start = NULL ;\n }\n if ( stream -> rtp_services & sec_serv_auth ) {\n auth_start = ( uint32_t * ) hdr ;\n auth_tag = ( uint8_t * ) hdr + * pkt_octet_len ;\n }\n else {\n auth_start = NULL ;\n auth_tag = NULL ;\n }\n delta = rdbx_estimate_index ( & stream -> rtp_rdbx , & est , ntohs ( hdr -> seq ) ) ;\n status = rdbx_check ( & stream -> rtp_rdbx , delta ) ;\n if ( status ) {\n if ( status != err_status_replay_fail || ! stream -> allow_repeat_tx ) return status ;\n }\n else rdbx_add_index ( & stream -> rtp_rdbx , delta ) ;\n # ifdef NO_64BIT_MATH debug_print2 ( mod_srtp , \"estimated packet index: %08x%08x\" , high32 ( est ) , low32 ( est ) ) ;\n # else debug_print ( mod_srtp , \"estimated packet index: %016llx\" , est ) ;\n # endif if ( stream -> rtp_cipher -> type -> id == AES_ICM || stream -> rtp_cipher -> type -> id == AES_256_ICM ) {\n v128_t iv ;\n iv . v32 [ 0 ] = 0 ;\n iv . v32 [ 1 ] = hdr -> ssrc ;\n # ifdef NO_64BIT_MATH iv . v64 [ 1 ] = be64_to_cpu ( make64 ( ( high32 ( est ) << 16 ) | ( low32 ( est ) >> 16 ) , low32 ( est ) << 16 ) ) ;\n # else iv . v64 [ 1 ] = be64_to_cpu ( est << 16 ) ;\n # endif status = cipher_set_iv ( stream -> rtp_cipher , & iv , direction_encrypt ) ;\n }\n else {\n v128_t iv ;\n # ifdef NO_64BIT_MATH iv . v32 [ 0 ] = 0 ;\n iv . v32 [ 1 ] = 0 ;\n # else iv . v64 [ 0 ] = 0 ;\n # endif iv . v64 [ 1 ] = be64_to_cpu ( est ) ;\n status = cipher_set_iv ( stream -> rtp_cipher , & iv , direction_encrypt ) ;\n }\n if ( status ) return err_status_cipher_fail ;\n # ifdef NO_64BIT_MATH est = be64_to_cpu ( make64 ( ( high32 ( est ) << 16 ) | ( low32 ( est ) >> 16 ) , low32 ( est ) << 16 ) ) ;\n # else est = be64_to_cpu ( est << 16 ) ;\n # endif if ( auth_start ) {\n prefix_len = auth_get_prefix_length ( stream -> rtp_auth ) ;\n if ( prefix_len ) {\n status = cipher_output ( stream -> rtp_cipher , auth_tag , prefix_len ) ;\n if ( status ) return err_status_cipher_fail ;\n debug_print ( mod_srtp , \"keystream prefix: %s\" , octet_string_hex_string ( auth_tag , prefix_len ) ) ;\n }\n }\n if ( enc_start ) {\n status = cipher_encrypt ( stream -> rtp_cipher , ( uint8_t * ) enc_start , & enc_octet_len ) ;\n if ( status ) return err_status_cipher_fail ;\n }\n if ( auth_start ) {\n status = auth_start ( stream -> rtp_auth ) ;\n if ( status ) return status ;\n status = auth_update ( stream -> rtp_auth , ( uint8_t * ) auth_start , * pkt_octet_len ) ;\n if ( status ) return status ;\n debug_print ( mod_srtp , \"estimated packet index: %016llx\" , est ) ;\n status = auth_compute ( stream -> rtp_auth , ( uint8_t * ) & est , 4 , auth_tag ) ;\n debug_print ( mod_srtp , \"srtp auth tag: %s\" , octet_string_hex_string ( auth_tag , tag_len ) ) ;\n if ( status ) return err_status_auth_fail ;\n }\n if ( auth_tag ) {\n * pkt_octet_len += tag_len ;\n }\n return err_status_ok ;\n }"}
{"idx": 20428, "target": 0, "func": "static int qemuMonitorJSONIOProcessEvent ( qemuMonitorPtr mon , virJSONValuePtr obj ) {\n const char * type ;\n int i ;\n VIR_DEBUG ( \"mon=%p obj=%p\" , mon , obj ) ;\n type = virJSONValueObjectGetString ( obj , \"event\" ) ;\n if ( ! type ) {\n VIR_WARN ( \"missing event type in message\" ) ;\n errno = EINVAL ;\n return - 1 ;\n }\n for ( i = 0 ;\n i < ARRAY_CARDINALITY ( eventHandlers ) ;\n i ++ ) {\n if ( STREQ ( eventHandlers [ i ] . type , type ) ) {\n virJSONValuePtr data = virJSONValueObjectGet ( obj , \"data\" ) ;\n VIR_DEBUG ( \"handle %s handler=%p data=%p\" , type , eventHandlers [ i ] . handler , data ) ;\n ( eventHandlers [ i ] . handler ) ( mon , data ) ;\n break ;\n }\n }\n return 0 ;\n }"}
{"idx": 20429, "target": 0, "func": "int libevt_record_values_get_type ( libevt_record_values_t * record_values , uint8_t * type , libcerror_error_t * * error ) {\n static char * function = \"libevt_record_values_get_type\" ;\n if ( record_values == NULL ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_ARGUMENTS , LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE , \"%s: invalid record values.\" , function ) ;\n return ( - 1 ) ;\n }\n if ( type == NULL ) {\n libcerror_error_set ( error , LIBCERROR_ERROR_DOMAIN_ARGUMENTS , LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE , \"%s: invalid type.\" , function ) ;\n return ( - 1 ) ;\n }\n * type = record_values -> type ;\n return ( 1 ) ;\n }"}
{"idx": 20430, "target": 0, "func": "int X509_sign_ctx ( X509 * x , EVP_MD_CTX * ctx ) {\n x -> cert_info -> enc . modified = 1 ;\n return ASN1_item_sign_ctx ( ASN1_ITEM_rptr ( X509_CINF ) , x -> cert_info -> signature , x -> sig_alg , x -> signature , x -> cert_info , ctx ) ;\n }"}
{"idx": 20431, "target": 0, "func": "static void test_ushort_bug ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_BIND my_bind [ 4 ] ;\n ushort short_value ;\n uint32 long_value ;\n ulong s_length , l_length , ll_length , t_length ;\n ulonglong longlong_value ;\n int rc ;\n uchar tiny_value ;\n char llbuf [ 22 ] ;\n myheader ( \"test_ushort_bug\" ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_ushort\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_ushort(a smallint unsigned, \\ b smallint unsigned, \\ c smallint unsigned, \\ d smallint unsigned)\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"INSERT INTO test_ushort VALUES(35999, 35999, 35999, 200)\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"SELECT * FROM test_ushort\" ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n memset ( my_bind , 0 , sizeof ( my_bind ) ) ;\n my_bind [ 0 ] . buffer_type = MYSQL_TYPE_SHORT ;\n my_bind [ 0 ] . buffer = ( void * ) & short_value ;\n my_bind [ 0 ] . is_unsigned = TRUE ;\n my_bind [ 0 ] . length = & s_length ;\n my_bind [ 1 ] . buffer_type = MYSQL_TYPE_LONG ;\n my_bind [ 1 ] . buffer = ( void * ) & long_value ;\n my_bind [ 1 ] . length = & l_length ;\n my_bind [ 2 ] . buffer_type = MYSQL_TYPE_LONGLONG ;\n my_bind [ 2 ] . buffer = ( void * ) & longlong_value ;\n my_bind [ 2 ] . length = & ll_length ;\n my_bind [ 3 ] . buffer_type = MYSQL_TYPE_TINY ;\n my_bind [ 3 ] . buffer = ( void * ) & tiny_value ;\n my_bind [ 3 ] . is_unsigned = TRUE ;\n my_bind [ 3 ] . length = & t_length ;\n rc = mysql_stmt_bind_result ( stmt , my_bind ) ;\n check_execute ( stmt , rc ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n check_execute ( stmt , rc ) ;\n if ( ! opt_silent ) {\n fprintf ( stdout , \"\\n ushort : %d (%ld)\" , short_value , s_length ) ;\n fprintf ( stdout , \"\\n ulong : %lu (%ld)\" , ( ulong ) long_value , l_length ) ;\n fprintf ( stdout , \"\\n longlong : %s (%ld)\" , llstr ( longlong_value , llbuf ) , ll_length ) ;\n fprintf ( stdout , \"\\n tinyint : %d (%ld)\" , tiny_value , t_length ) ;\n }\n DIE_UNLESS ( short_value == 35999 ) ;\n DIE_UNLESS ( s_length == 2 ) ;\n DIE_UNLESS ( long_value == 35999 ) ;\n DIE_UNLESS ( l_length == 4 ) ;\n DIE_UNLESS ( longlong_value == 35999 ) ;\n DIE_UNLESS ( ll_length == 8 ) ;\n DIE_UNLESS ( tiny_value == 200 ) ;\n DIE_UNLESS ( t_length == 1 ) ;\n rc = mysql_stmt_fetch ( stmt ) ;\n DIE_UNLESS ( rc == MYSQL_NO_DATA ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 20432, "target": 0, "func": "static inline MIMEField * rebase ( MIMEField * dest_ptr , void * dest_base , void * src_base ) {\n return reinterpret_cast < MIMEField * > ( reinterpret_cast < char * > ( dest_ptr ) + ( static_cast < char * > ( dest_base ) - static_cast < char * > ( src_base ) ) ) ;\n }"}
{"idx": 20433, "target": 0, "func": "static struct hash_list * parse_merge ( unsigned int * count ) {\n struct hash_list * list = NULL , * * tail = & list , * n ;\n const char * from ;\n struct branch * s ;\n * count = 0 ;\n while ( skip_prefix ( command_buf . buf , \"merge \" , & from ) ) {\n n = xmalloc ( sizeof ( * n ) ) ;\n s = lookup_branch ( from ) ;\n if ( s ) hashcpy ( n -> sha1 , s -> sha1 ) ;\n else if ( * from == ':' ) {\n uintmax_t idnum = parse_mark_ref_eol ( from ) ;\n struct object_entry * oe = find_mark ( idnum ) ;\n if ( oe -> type != OBJ_COMMIT ) die ( \"Mark :%\" PRIuMAX \" not a commit\" , idnum ) ;\n hashcpy ( n -> sha1 , oe -> idx . sha1 ) ;\n }\n else if ( ! get_sha1 ( from , n -> sha1 ) ) {\n unsigned long size ;\n char * buf = read_object_with_reference ( n -> sha1 , commit_type , & size , n -> sha1 ) ;\n if ( ! buf || size < 46 ) die ( \"Not a valid commit: %s\" , from ) ;\n free ( buf ) ;\n }\n else die ( \"Invalid ref name or SHA1 expression: %s\" , from ) ;\n n -> next = NULL ;\n * tail = n ;\n tail = & n -> next ;\n ( * count ) ++ ;\n read_next_command ( ) ;\n }\n return list ;\n }"}
{"idx": 20434, "target": 0, "func": "static struct qcms_modular_transform * qcms_modular_transform_create ( qcms_profile * in , qcms_profile * out ) {\n struct qcms_modular_transform * first_transform = NULL ;\n struct qcms_modular_transform * * next_transform = & first_transform ;\n if ( in -> color_space == RGB_SIGNATURE ) {\n struct qcms_modular_transform * rgb_to_pcs ;\n rgb_to_pcs = qcms_modular_transform_create_input ( in ) ;\n if ( ! rgb_to_pcs ) goto fail ;\n append_transform ( rgb_to_pcs , & next_transform ) ;\n }\n else {\n assert ( 0 && \"input color space not supported\" ) ;\n goto fail ;\n }\n if ( in -> pcs == LAB_SIGNATURE && out -> pcs == XYZ_SIGNATURE ) {\n struct qcms_modular_transform * lab_to_pcs ;\n lab_to_pcs = qcms_modular_transform_alloc ( ) ;\n if ( ! lab_to_pcs ) goto fail ;\n append_transform ( lab_to_pcs , & next_transform ) ;\n lab_to_pcs -> transform_module_fn = qcms_transform_module_LAB_to_XYZ ;\n }\n if ( in -> pcs == XYZ_SIGNATURE && out -> pcs == LAB_SIGNATURE ) {\n struct qcms_modular_transform * pcs_to_lab ;\n pcs_to_lab = qcms_modular_transform_alloc ( ) ;\n if ( ! pcs_to_lab ) goto fail ;\n append_transform ( pcs_to_lab , & next_transform ) ;\n pcs_to_lab -> transform_module_fn = qcms_transform_module_XYZ_to_LAB ;\n }\n if ( out -> color_space == RGB_SIGNATURE ) {\n struct qcms_modular_transform * pcs_to_rgb ;\n pcs_to_rgb = qcms_modular_transform_create_output ( out ) ;\n if ( ! pcs_to_rgb ) goto fail ;\n append_transform ( pcs_to_rgb , & next_transform ) ;\n }\n else {\n assert ( 0 && \"output color space not supported\" ) ;\n goto fail ;\n }\n return first_transform ;\n fail : qcms_modular_transform_release ( first_transform ) ;\n return EMPTY_TRANSFORM_LIST ;\n }"}
{"idx": 20435, "target": 0, "func": "gboolean logcat_text_brief_dump_open ( wtap_dumper * wdh , int * err _U_ ) {\n struct dumper_t * dumper ;\n dumper = ( struct dumper_t * ) g_malloc ( sizeof ( struct dumper_t ) ) ;\n dumper -> type = DUMP_BRIEF ;\n wdh -> priv = dumper ;\n wdh -> subtype_write = logcat_dump_text ;\n wdh -> subtype_close = NULL ;\n return TRUE ;\n }"}
{"idx": 20436, "target": 0, "func": "GAppInfo * nautilus_mime_get_default_application_for_files ( GList * files ) {\n GList * l , * sorted_files ;\n NautilusFile * file ;\n GAppInfo * app , * one_app ;\n g_assert ( files != NULL ) ;\n sorted_files = g_list_sort ( g_list_copy ( files ) , ( GCompareFunc ) file_compare_by_mime_type ) ;\n app = NULL ;\n for ( l = sorted_files ;\n l != NULL ;\n l = l -> next ) {\n file = l -> data ;\n if ( l -> prev && file_compare_by_mime_type ( file , l -> prev -> data ) == 0 && file_compare_by_parent_uri ( file , l -> prev -> data ) == 0 ) {\n continue ;\n }\n one_app = nautilus_mime_get_default_application_for_file ( file ) ;\n if ( one_app == NULL || ( app != NULL && ! g_app_info_equal ( app , one_app ) ) ) {\n if ( app ) {\n g_object_unref ( app ) ;\n }\n if ( one_app ) {\n g_object_unref ( one_app ) ;\n }\n app = NULL ;\n break ;\n }\n if ( app == NULL ) {\n app = one_app ;\n }\n else {\n g_object_unref ( one_app ) ;\n }\n }\n g_list_free ( sorted_files ) ;\n return app ;\n }"}
{"idx": 20437, "target": 0, "func": "static void test_explain_bug ( ) {\n MYSQL_STMT * stmt ;\n MYSQL_RES * result ;\n int rc ;\n myheader ( \"test_explain_bug\" ) ;\n mysql_autocommit ( mysql , TRUE ) ;\n rc = mysql_query ( mysql , \"DROP TABLE IF EXISTS test_explain\" ) ;\n myquery ( rc ) ;\n rc = mysql_query ( mysql , \"CREATE TABLE test_explain(id int, name char(2))\" ) ;\n myquery ( rc ) ;\n stmt = mysql_simple_prepare ( mysql , \"explain test_explain\" ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( rc == 2 ) ;\n result = mysql_stmt_result_metadata ( stmt ) ;\n mytest ( result ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n total fields in the result: %d\" , mysql_num_fields ( result ) ) ;\n DIE_UNLESS ( 6 == mysql_num_fields ( result ) ) ;\n verify_prepare_field ( result , 0 , \"Field\" , \"COLUMN_NAME\" , mysql_get_server_version ( mysql ) <= 50000 ? MYSQL_TYPE_STRING : MYSQL_TYPE_VAR_STRING , 0 , 0 , \"information_schema\" , 64 , 0 ) ;\n verify_prepare_field ( result , 1 , \"Type\" , \"COLUMN_TYPE\" , MYSQL_TYPE_BLOB , 0 , 0 , \"information_schema\" , 0 , 0 ) ;\n verify_prepare_field ( result , 2 , \"Null\" , \"IS_NULLABLE\" , mysql_get_server_version ( mysql ) <= 50000 ? MYSQL_TYPE_STRING : MYSQL_TYPE_VAR_STRING , 0 , 0 , \"information_schema\" , 3 , 0 ) ;\n verify_prepare_field ( result , 3 , \"Key\" , \"COLUMN_KEY\" , mysql_get_server_version ( mysql ) <= 50000 ? MYSQL_TYPE_STRING : MYSQL_TYPE_VAR_STRING , 0 , 0 , \"information_schema\" , 3 , 0 ) ;\n if ( mysql_get_server_version ( mysql ) >= 50027 ) {\n verify_prepare_field ( result , 4 , \"Default\" , \"COLUMN_DEFAULT\" , MYSQL_TYPE_BLOB , 0 , 0 , \"information_schema\" , 0 , 0 ) ;\n }\n else {\n verify_prepare_field ( result , 4 , \"Default\" , \"COLUMN_DEFAULT\" , mysql_get_server_version ( mysql ) >= 50027 ? MYSQL_TYPE_BLOB : mysql_get_server_version ( mysql ) <= 50000 ? MYSQL_TYPE_STRING : MYSQL_TYPE_VAR_STRING , 0 , 0 , \"information_schema\" , mysql_get_server_version ( mysql ) >= 50027 ? 0 : 64 , 0 ) ;\n }\n verify_prepare_field ( result , 5 , \"Extra\" , \"EXTRA\" , mysql_get_server_version ( mysql ) <= 50000 ? MYSQL_TYPE_STRING : MYSQL_TYPE_VAR_STRING , 0 , 0 , \"information_schema\" , mysql_get_server_version ( mysql ) <= 50602 ? 27 : 30 , 0 ) ;\n mysql_free_result ( result ) ;\n mysql_stmt_close ( stmt ) ;\n stmt = mysql_simple_prepare ( mysql , \"explain select id, name FROM test_explain\" ) ;\n check_stmt ( stmt ) ;\n rc = mysql_stmt_execute ( stmt ) ;\n check_execute ( stmt , rc ) ;\n rc = my_process_stmt_result ( stmt ) ;\n DIE_UNLESS ( rc == 1 ) ;\n result = mysql_stmt_result_metadata ( stmt ) ;\n mytest ( result ) ;\n if ( ! opt_silent ) fprintf ( stdout , \"\\n total fields in the result: %d\" , mysql_num_fields ( result ) ) ;\n DIE_UNLESS ( 10 == mysql_num_fields ( result ) ) ;\n verify_prepare_field ( result , 0 , \"id\" , \"\" , MYSQL_TYPE_LONGLONG , \"\" , \"\" , \"\" , 3 , 0 ) ;\n verify_prepare_field ( result , 1 , \"select_type\" , \"\" , MYSQL_TYPE_VAR_STRING , \"\" , \"\" , \"\" , 19 , 0 ) ;\n verify_prepare_field ( result , 2 , \"table\" , \"\" , MYSQL_TYPE_VAR_STRING , \"\" , \"\" , \"\" , NAME_CHAR_LEN , 0 ) ;\n verify_prepare_field ( result , 3 , \"type\" , \"\" , MYSQL_TYPE_VAR_STRING , \"\" , \"\" , \"\" , 10 , 0 ) ;\n verify_prepare_field ( result , 4 , \"possible_keys\" , \"\" , MYSQL_TYPE_VAR_STRING , \"\" , \"\" , \"\" , NAME_CHAR_LEN * MAX_KEY , 0 ) ;\n verify_prepare_field ( result , 5 , \"key\" , \"\" , MYSQL_TYPE_VAR_STRING , \"\" , \"\" , \"\" , NAME_CHAR_LEN , 0 ) ;\n if ( mysql_get_server_version ( mysql ) <= 50000 ) {\n verify_prepare_field ( result , 6 , \"key_len\" , \"\" , MYSQL_TYPE_LONGLONG , \"\" , \"\" , \"\" , 3 , 0 ) ;\n }\n else {\n verify_prepare_field ( result , 6 , \"key_len\" , \"\" , MYSQL_TYPE_VAR_STRING , \"\" , \"\" , \"\" , NAME_CHAR_LEN * MAX_KEY , 0 ) ;\n }\n verify_prepare_field ( result , 7 , \"ref\" , \"\" , MYSQL_TYPE_VAR_STRING , \"\" , \"\" , \"\" , NAME_CHAR_LEN * 16 , 0 ) ;\n verify_prepare_field ( result , 8 , \"rows\" , \"\" , MYSQL_TYPE_LONGLONG , \"\" , \"\" , \"\" , 10 , 0 ) ;\n verify_prepare_field ( result , 9 , \"Extra\" , \"\" , MYSQL_TYPE_VAR_STRING , \"\" , \"\" , \"\" , 255 , 0 ) ;\n mysql_free_result ( result ) ;\n mysql_stmt_close ( stmt ) ;\n }"}
{"idx": 20438, "target": 0, "func": "static int dissect_h225_SEQUENCE_OF_BandwidthDetails ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_SEQUENCE_OF_BandwidthDetails , SEQUENCE_OF_BandwidthDetails_sequence_of ) ;\n return offset ;\n }"}
{"idx": 20439, "target": 0, "func": "static int get_slice_offset ( AVCodecContext * avctx , const uint8_t * buf , int n ) {\n if ( avctx -> slice_count ) return avctx -> slice_offset [ n ] ;\n else return AV_RL32 ( buf + n * 8 ) ;\n }"}
{"idx": 20440, "target": 0, "func": "void pic_info ( Monitor * mon ) {\n }"}
{"idx": 20441, "target": 0, "func": "static const char * hfinfo_number_vals_format ( const header_field_info * hfinfo , char buf [ 32 ] , guint32 value ) {\n int display = hfinfo -> display & FIELD_DISPLAY_E_MASK ;\n if ( display == BASE_NONE ) return NULL ;\n if ( display == BASE_DEC_HEX ) display = BASE_DEC ;\n if ( display == BASE_HEX_DEC ) display = BASE_HEX ;\n return hfinfo_number_value_format_display ( hfinfo , display , buf , value ) ;\n }"}
{"idx": 20442, "target": 0, "func": "static int dissect_h245_BEnhancementParameters ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {\n offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_BEnhancementParameters , BEnhancementParameters_sequence ) ;\n return offset ;\n }"}
{"idx": 20443, "target": 0, "func": "TEST_F ( SSLErrorAssistantTest , DynamicInterstitialListMatch ) {\n ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;\n EXPECT_EQ ( 1u , ssl_info ( ) . public_key_hashes . size ( ) ) ;\n auto config_proto = std : : make_unique < chrome_browser_ssl : : SSLErrorAssistantConfig > ( ) ;\n config_proto -> set_version_id ( kLargeVersionId ) ;\n chrome_browser_ssl : : DynamicInterstitial * filter = config_proto -> add_dynamic_interstitial ( ) ;\n filter -> set_interstitial_type ( chrome_browser_ssl : : DynamicInterstitial : : INTERSTITIAL_PAGE_CAPTIVE_PORTAL ) ;\n filter -> set_cert_error ( chrome_browser_ssl : : DynamicInterstitial : : UNKNOWN_CERT_ERROR ) ;\n filter -> add_sha256_hash ( \"sha256ightjar\" ) ;\n filter -> add_sha256_hash ( \"sha256/frogmouth\" ) ;\n filter -> add_sha256_hash ( \"sha256/poorwill\" ) ;\n filter -> set_mitm_software_name ( \"UwS\" ) ;\n filter -> set_issuer_common_name_regex ( \"whippoorwill\" ) ;\n filter = config_proto -> add_dynamic_interstitial ( ) ;\n filter -> set_interstitial_type ( chrome_browser_ssl : : DynamicInterstitial : : INTERSTITIAL_PAGE_SSL ) ;\n filter -> set_cert_error ( chrome_browser_ssl : : DynamicInterstitial : : ERR_CERT_COMMON_NAME_INVALID ) ;\n filter -> add_sha256_hash ( \"sha256uthatch\" ) ;\n filter -> add_sha256_hash ( ssl_info ( ) . public_key_hashes [ 0 ] . ToString ( ) ) ;\n filter -> add_sha256_hash ( \"sha256/treecreeper\" ) ;\n filter -> set_mitm_software_name ( \"UwS\" ) ;\n filter -> set_issuer_common_name_regex ( issuer_common_name ( ) ) ;\n filter -> set_issuer_organization_regex ( issuer_organization_name ( ) ) ;\n error_assistant ( ) -> SetErrorAssistantProto ( std : : move ( config_proto ) ) ;\n base : : Optional < DynamicInterstitialInfo > dynamic_interstitial = error_assistant ( ) -> MatchDynamicInterstitial ( ssl_info ( ) ) ;\n ASSERT_TRUE ( dynamic_interstitial ) ;\n EXPECT_EQ ( chrome_browser_ssl : : DynamicInterstitial : : INTERSTITIAL_PAGE_SSL , dynamic_interstitial -> interstitial_type ) ;\n }"}
{"idx": 20444, "target": 0, "func": "static int openhost ( const char * hname , int fam ) {\n const char svc [ ] = \"ntp\" ;\n char temphost [ LENHOSTNAME ] ;\n int a_info , i ;\n struct addrinfo hints , * ai ;\n sockaddr_u addr ;\n size_t octets ;\n register const char * cp ;\n char name [ LENHOSTNAME ] ;\n cp = hname ;\n if ( * cp == '[' ) {\n cp ++ ;\n for ( i = 0 ;\n * cp && * cp != ']' ;\n cp ++ , i ++ ) name [ i ] = * cp ;\n if ( * cp == ']' ) {\n name [ i ] = '\\0' ;\n hname = name ;\n }\n else {\n return 0 ;\n }\n }\n ZERO ( hints ) ;\n hints . ai_family = fam ;\n hints . ai_protocol = IPPROTO_UDP ;\n hints . ai_socktype = SOCK_DGRAM ;\n hints . ai_flags = Z_AI_NUMERICHOST ;\n ai = NULL ;\n a_info = getaddrinfo ( hname , svc , & hints , & ai ) ;\n if ( a_info == EAI_NONAME # ifdef EAI_NODATA || a_info == EAI_NODATA # endif ) {\n hints . ai_flags = AI_CANONNAME ;\n # ifdef AI_ADDRCONFIG hints . ai_flags |= AI_ADDRCONFIG ;\n # endif a_info = getaddrinfo ( hname , svc , & hints , & ai ) ;\n }\n # ifdef AI_ADDRCONFIG if ( a_info == EAI_BADFLAGS ) {\n hints . ai_flags &= ~ AI_ADDRCONFIG ;\n a_info = getaddrinfo ( hname , svc , & hints , & ai ) ;\n }\n # endif if ( a_info != 0 ) {\n fprintf ( stderr , \"%s\\n\" , gai_strerror ( a_info ) ) ;\n return 0 ;\n }\n INSIST ( ai != NULL ) ;\n ZERO ( addr ) ;\n octets = min ( sizeof ( addr ) , ai -> ai_addrlen ) ;\n memcpy ( & addr , ai -> ai_addr , octets ) ;\n if ( ai -> ai_canonname == NULL ) {\n strlcpy ( temphost , stoa ( & addr ) , sizeof ( temphost ) ) ;\n currenthostisnum = TRUE ;\n }\n else {\n strlcpy ( temphost , ai -> ai_canonname , sizeof ( temphost ) ) ;\n currenthostisnum = FALSE ;\n }\n if ( debug > 2 ) printf ( \"Opening host %s (%s)\\n\" , temphost , ( ai -> ai_family == AF_INET ) ? \"AF_INET\" : ( ai -> ai_family == AF_INET6 ) ? \"AF_INET6\" : \"AF-???\" ) ;\n if ( havehost == 1 ) {\n if ( debug > 2 ) printf ( \"Closing old host %s\\n\" , currenthost ) ;\n closesocket ( sockfd ) ;\n havehost = 0 ;\n }\n strlcpy ( currenthost , temphost , sizeof ( currenthost ) ) ;\n s_port = NSRCPORT ( & addr ) ;\n # ifdef SYS_VXWORKS ( ( struct sockaddr_in6 * ) & hostaddr ) -> sin6_port = htons ( SERVER_PORT_NUM ) ;\n if ( ai -> ai_family == AF_INET ) * ( struct sockaddr_in * ) & hostaddr = * ( ( struct sockaddr_in * ) ai -> ai_addr ) ;\n else * ( struct sockaddr_in6 * ) & hostaddr = * ( ( struct sockaddr_in6 * ) ai -> ai_addr ) ;\n # endif # ifdef SYS_WINNT {\n int optionValue = SO_SYNCHRONOUS_NONALERT ;\n int err ;\n err = setsockopt ( INVALID_SOCKET , SOL_SOCKET , SO_OPENTYPE , ( char * ) & optionValue , sizeof ( optionValue ) ) ;\n if ( err ) {\n mfprintf ( stderr , \"setsockopt(SO_SYNCHRONOUS_NONALERT)\" \" error: %m\\n\" ) ;\n freeaddrinfo ( ai ) ;\n exit ( 1 ) ;\n }\n }\n # endif sockfd = socket ( ai -> ai_family , ai -> ai_socktype , ai -> ai_protocol ) ;\n if ( sockfd == INVALID_SOCKET ) {\n error ( \"socket\" ) ;\n freeaddrinfo ( ai ) ;\n return 0 ;\n }\n # ifdef NEED_RCVBUF_SLOP # ifdef SO_RCVBUF {\n int rbufsize = DATASIZE + 2048 ;\n if ( setsockopt ( sockfd , SOL_SOCKET , SO_RCVBUF , & rbufsize , sizeof ( int ) ) == - 1 ) error ( \"setsockopt\" ) ;\n }\n # endif # endif if # ifdef SYS_VXWORKS ( connect ( sockfd , ( struct sockaddr * ) & hostaddr , sizeof ( hostaddr ) ) == - 1 ) # else ( connect ( sockfd , ( struct sockaddr * ) ai -> ai_addr , ai -> ai_addrlen ) == - 1 ) # endif {\n error ( \"connect\" ) ;\n freeaddrinfo ( ai ) ;\n return 0 ;\n }\n freeaddrinfo ( ai ) ;\n havehost = 1 ;\n numassoc = 0 ;\n return 1 ;\n }"}
{"idx": 20445, "target": 0, "func": "int qemuMonitorJSONGetBlockExtent ( qemuMonitorPtr mon , const char * dev_name , unsigned long long * extent ) {\n int ret = - 1 ;\n int i ;\n int found = 0 ;\n virJSONValuePtr cmd = qemuMonitorJSONMakeCommand ( \"query-blockstats\" , NULL ) ;\n virJSONValuePtr reply = NULL ;\n virJSONValuePtr devices ;\n * extent = 0 ;\n if ( ! cmd ) return - 1 ;\n ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;\n if ( ret == 0 ) ret = qemuMonitorJSONCheckError ( cmd , reply ) ;\n if ( ret < 0 ) goto cleanup ;\n ret = - 1 ;\n devices = virJSONValueObjectGet ( reply , \"return\" ) ;\n if ( ! devices || devices -> type != VIR_JSON_TYPE_ARRAY ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"blockstats reply was missing device list\" ) ) ;\n goto cleanup ;\n }\n for ( i = 0 ;\n i < virJSONValueArraySize ( devices ) ;\n i ++ ) {\n virJSONValuePtr dev = virJSONValueArrayGet ( devices , i ) ;\n virJSONValuePtr stats ;\n virJSONValuePtr parent ;\n const char * thisdev ;\n if ( ! dev || dev -> type != VIR_JSON_TYPE_OBJECT ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"blockstats device entry was not in expected format\" ) ) ;\n goto cleanup ;\n }\n if ( ( thisdev = virJSONValueObjectGetString ( dev , \"device\" ) ) == NULL ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"blockstats device entry was not in expected format\" ) ) ;\n goto cleanup ;\n }\n if ( STRPREFIX ( thisdev , QEMU_DRIVE_HOST_PREFIX ) ) thisdev += strlen ( QEMU_DRIVE_HOST_PREFIX ) ;\n if ( STRNEQ ( thisdev , dev_name ) ) continue ;\n found = 1 ;\n if ( ( parent = virJSONValueObjectGet ( dev , \"parent\" ) ) == NULL || parent -> type != VIR_JSON_TYPE_OBJECT ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"blockstats parent entry was not in expected format\" ) ) ;\n goto cleanup ;\n }\n if ( ( stats = virJSONValueObjectGet ( parent , \"stats\" ) ) == NULL || stats -> type != VIR_JSON_TYPE_OBJECT ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , \"%s\" , _ ( \"blockstats stats entry was not in expected format\" ) ) ;\n goto cleanup ;\n }\n if ( virJSONValueObjectGetNumberUlong ( stats , \"wr_highest_offset\" , extent ) < 0 ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"cannot read %s statistic\" ) , \"wr_highest_offset\" ) ;\n goto cleanup ;\n }\n }\n if ( ! found ) {\n qemuReportError ( VIR_ERR_INTERNAL_ERROR , _ ( \"cannot find statistics for device '%s'\" ) , dev_name ) ;\n goto cleanup ;\n }\n ret = 0 ;\n cleanup : virJSONValueFree ( cmd ) ;\n virJSONValueFree ( reply ) ;\n return ret ;\n }"}
{"idx": 20446, "target": 0, "func": "static void lpc_weighting ( float * out , const float * lpc , float gamma , int size ) {\n int i ;\n float fac = gamma ;\n for ( i = 0 ;\n i < size ;\n i ++ ) {\n out [ i ] = lpc [ i ] * fac ;\n fac *= gamma ;\n }\n }"}
{"idx": 20447, "target": 0, "func": "IN_PROC_BROWSER_TEST_F ( PrefsFunctionalTest , TestPrivacySecurityPrefs ) {\n PrefService * prefs = browser ( ) -> profile ( ) -> GetPrefs ( ) ;\n EXPECT_EQ ( chrome_browser_net : : NETWORK_PREDICTION_NEVER , prefs -> GetInteger ( prefs : : kNetworkPredictionOptions ) ) ;\n EXPECT_FALSE ( prefs -> GetBoolean ( prefs : : kSafeBrowsingEnabled ) ) ;\n EXPECT_FALSE ( prefs -> GetBoolean ( prefs : : kAlternateErrorPagesEnabled ) ) ;\n EXPECT_FALSE ( prefs -> GetBoolean ( prefs : : kSearchSuggestEnabled ) ) ;\n }"}
{"idx": 20448, "target": 0, "func": "int dissect_ber_UTCTime ( gboolean implicit_tag , asn1_ctx_t * actx , proto_tree * tree , tvbuff_t * tvb , int offset , gint hf_id ) {\n char outstr [ 33 ] ;\n char * outstrptr = outstr ;\n const guint8 * instr ;\n gint8 ber_class ;\n gboolean pc ;\n gint32 tag ;\n guint32 len , i , n ;\n int hoffset ;\n proto_item * cause ;\n proto_tree * error_tree ;\n const gchar * error_str = NULL ;\n if ( ! implicit_tag ) {\n hoffset = offset ;\n offset = dissect_ber_identifier ( actx -> pinfo , tree , tvb , offset , & ber_class , & pc , & tag ) ;\n offset = dissect_ber_length ( actx -> pinfo , tree , tvb , offset , & len , NULL ) ;\n if ( ( ber_class != BER_CLASS_UNI ) || ( tag != BER_UNI_TAG_UTCTime ) ) {\n tvb_ensure_bytes_exist ( tvb , hoffset , 2 ) ;\n cause = proto_tree_add_string_format_value ( tree , hf_ber_error , tvb , offset , len , \"utctime_expected\" , \"UTCTime expected but class:%s(%d) %s tag:%d was unexpected\" , val_to_str_const ( ber_class , ber_class_codes , \"Unknown\" ) , ber_class , pc ? ber_pc_codes_short . true_string : ber_pc_codes_short . false_string , tag ) ;\n expert_add_info ( actx -> pinfo , cause , & ei_ber_expected_utc_time ) ;\n if ( decode_unexpected ) {\n proto_tree * unknown_tree = proto_item_add_subtree ( cause , ett_ber_unknown ) ;\n dissect_unknown_ber ( actx -> pinfo , tvb , hoffset , unknown_tree ) ;\n }\n return offset + len ;\n }\n }\n else {\n len = tvb_reported_length_remaining ( tvb , offset ) ;\n }\n if ( ( len < 10 ) || ( len > 19 ) ) {\n error_str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"BER Error: UTCTime invalid length: %u\" , len ) ;\n instr = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset , len > 19 ? 19 : len , ENC_ASCII ) ;\n goto malformed ;\n }\n instr = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset , len , ENC_ASCII ) ;\n for ( i = 0 ;\n i < 10 ;\n i ++ ) {\n if ( ( instr [ i ] < '0' ) || ( instr [ i ] > '9' ) ) {\n error_str = \"BER Error: malformed UTCTime encoding, \" \"first 10 octets have to contain YYMMDDhhmm in digits\" ;\n goto malformed ;\n }\n }\n g_snprintf ( outstrptr , 15 , \"%.2s-%.2s-%.2s %.2s:%.2s\" , instr , instr + 2 , instr + 4 , instr + 6 , instr + 8 ) ;\n outstrptr += 14 ;\n if ( len >= 12 ) {\n if ( ( instr [ i ] >= '0' ) && ( instr [ i ] <= '9' ) ) {\n i ++ ;\n if ( ( instr [ i ] >= '0' ) && ( instr [ i ] <= '9' ) ) {\n i ++ ;\n g_snprintf ( outstrptr , 4 , \":%.2s\" , instr + 10 ) ;\n outstrptr += 3 ;\n }\n else {\n error_str = \"BER Error: malformed UTCTime encoding, \" \"if 11th octet is a digit for seconds, \" \"the 12th octet has to be a digit, too\" ;\n goto malformed ;\n }\n }\n }\n switch ( instr [ i ] ) {\n case 'Z' : if ( len != ( i + 1 ) ) {\n error_str = \"BER Error: malformed UTCTime encoding, \" \"there must be no further octets after \\'Z\\'\" ;\n goto malformed ;\n }\n g_snprintf ( outstrptr , 7 , \" (UTC)\" ) ;\n i ++ ;\n break ;\n case '-' : case '+' : if ( len != ( i + 5 ) ) {\n error_str = \"BER Error: malformed UTCTime encoding, \" \"4 digits must follow on \\'+\\' resp. \\'-\\'\" ;\n goto malformed ;\n }\n for ( n = i + 1 ;\n n < i + 5 ;\n n ++ ) {\n if ( ( instr [ n ] < '0' ) || ( instr [ n ] > '9' ) ) {\n error_str = \"BER Error: malformed UTCTime encoding, \" \"4 digits must follow on \\'+\\' resp. \\'-\\'\" ;\n goto malformed ;\n }\n }\n g_snprintf ( outstrptr , 12 , \" (UTC%c%.4s)\" , instr [ i ] , instr + i + 1 ) ;\n i += 5 ;\n break ;\n default : error_str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"BER Error: malformed UTCTime encoding, \" \"unexpected character in %dth octet, \" \"must be \\'Z\\', \\'+\\' or \\'-\\'\" , i + 1 ) ;\n goto malformed ;\n break ;\n }\n if ( len != i ) {\n error_str = wmem_strdup_printf ( wmem_packet_scope ( ) , \"BER Error: malformed UTCTime encoding, %d unexpected character%s after %dth octet\" , len - i , ( len == ( i - 1 ) ? \"s\" : \"\" ) , i ) ;\n goto malformed ;\n }\n if ( hf_id >= 0 ) {\n proto_tree_add_string ( tree , hf_id , tvb , offset , len , outstr ) ;\n }\n return offset + len ;\n malformed : if ( hf_id >= 0 ) {\n cause = proto_tree_add_string ( tree , hf_id , tvb , offset , len , instr ) ;\n error_tree = proto_item_add_subtree ( cause , ett_ber_unknown ) ;\n }\n else {\n error_tree = tree ;\n }\n cause = proto_tree_add_string_format ( error_tree , hf_ber_error , tvb , offset , len , \"invalid_utctime\" , \"%s\" , error_str ) ;\n expert_add_info ( actx -> pinfo , cause , & ei_ber_invalid_format_utctime ) ;\n return offset + len ;\n }"}
{"idx": 20449, "target": 0, "func": "static void init_buffer_indices ( VP9_COMP * cpi ) {\n cpi -> lst_fb_idx = 0 ;\n cpi -> gld_fb_idx = 1 ;\n cpi -> alt_fb_idx = 2 ;\n }"}
{"idx": 20450, "target": 0, "func": "static int selinux_ptrace_access_check ( struct task_struct * child , unsigned int mode ) {\n if ( mode & PTRACE_MODE_READ ) {\n u32 sid = current_sid ( ) ;\n u32 csid = task_sid ( child ) ;\n return avc_has_perm ( sid , csid , SECCLASS_FILE , FILE__READ , NULL ) ;\n }\n return current_has_perm ( child , PROCESS__PTRACE ) ;\n }"}
{"idx": 20451, "target": 0, "func": "void printvars ( int length , const char * data , int status , int sttype , int quiet , FILE * fp ) {\n if ( rawmode ) rawprint ( sttype , length , data , status , quiet , fp ) ;\n else cookedprint ( sttype , length , data , status , quiet , fp ) ;\n }"}
{"idx": 20452, "target": 0, "func": "static void ohci_td_pkt ( const char * msg , const uint8_t * buf , size_t len ) {\n }"}
{"idx": 20453, "target": 1, "func": "TSReturnCode TSHttpTxnConfigFind ( const char * name , int length , TSOverridableConfigKey * conf , TSRecordDataType * type ) {\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) name ) == TS_SUCCESS ) ;\n sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) conf ) == TS_SUCCESS ) ;\n TSOverridableConfigKey cnf = TS_CONFIG_NULL ;\n TSRecordDataType typ = TS_RECORDDATATYPE_INT ;\n if ( length == - 1 ) {\n length = strlen ( name ) ;\n }\n switch ( length ) {\n case 24 : if ( ! strncmp ( name , \"proxy.config.srv_enabled\" , length ) ) {\n cnf = TS_CONFIG_SRV_ENABLED ;\n }\n break ;\n case 28 : if ( ! strncmp ( name , \"proxy.config.http.cache.http\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_HTTP ;\n }\n break ;\n case 29 : if ( ! strncmp ( name , \"proxy.config.ssl.hsts_max_age\" , length ) ) {\n cnf = TS_CONFIG_SSL_HSTS_MAX_AGE ;\n }\n break ;\n case 31 : if ( ! strncmp ( name , \"proxy.config.http.chunking.size\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CHUNKING_SIZE ;\n }\n break ;\n case 33 : if ( ! strncmp ( name , \"proxy.config.http.cache.fuzz.time\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_FUZZ_TIME ;\n }\n else if ( ! strncmp ( name , \"proxy.config.ssl.client.cert.path\" , length ) ) {\n cnf = TS_CONFIG_SSL_CERT_FILEPATH ;\n typ = TS_RECORDDATATYPE_STRING ;\n }\n break ;\n case 34 : if ( ! strncmp ( name , \"proxy.config.http.chunking_enabled\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CHUNKING_ENABLED ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.cache.generation\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_GENERATION ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.insert_client_ip\" , length ) ) {\n cnf = TS_CONFIG_HTTP_ANONYMIZE_INSERT_CLIENT_IP ;\n }\n break ;\n case 35 : switch ( name [ length - 1 ] ) {\n case 'e' : if ( ! strncmp ( name , \"proxy.config.http.cache.range.write\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_RANGE_WRITE ;\n }\n break ;\n case 'p' : if ( ! strncmp ( name , \"proxy.config.http.normalize_ae_gzip\" , length ) ) {\n cnf = TS_CONFIG_HTTP_NORMALIZE_AE_GZIP ;\n }\n break ;\n }\n break ;\n case 36 : switch ( name [ length - 1 ] ) {\n case 'p' : if ( ! strncmp ( name , \"proxy.config.http.cache.range.lookup\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_RANGE_LOOKUP ;\n }\n break ;\n case 't' : if ( ! strncmp ( name , \"proxy.config.net.sock_packet_tos_out\" , length ) ) {\n cnf = TS_CONFIG_NET_SOCK_PACKET_TOS_OUT ;\n }\n break ;\n case 'd' : if ( ! strncmp ( name , \"proxy.config.http.slow.log.threshold\" , length ) ) {\n cnf = TS_CONFIG_HTTP_SLOW_LOG_THRESHOLD ;\n }\n break ;\n }\n break ;\n case 37 : switch ( name [ length - 1 ] ) {\n case 'd' : if ( ! strncmp ( name , \"proxy.config.http.redirection_enabled\" , length ) ) {\n cnf = TS_CONFIG_HTTP_ENABLE_REDIRECTION ;\n }\n break ;\n case 'e' : if ( ! strncmp ( name , \"proxy.config.http.cache.max_stale_age\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_MAX_STALE_AGE ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.cache.fuzz.min_time\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_FUZZ_MIN_TIME ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.default_buffer_size\" , length ) ) {\n cnf = TS_CONFIG_HTTP_DEFAULT_BUFFER_SIZE ;\n }\n else if ( ! strncmp ( name , \"proxy.config.ssl.client.cert.filename\" , length ) ) {\n cnf = TS_CONFIG_SSL_CERT_FILENAME ;\n typ = TS_RECORDDATATYPE_STRING ;\n }\n break ;\n case 'r' : if ( ! strncmp ( name , \"proxy.config.http.response_server_str\" , length ) ) {\n cnf = TS_CONFIG_HTTP_RESPONSE_SERVER_STR ;\n typ = TS_RECORDDATATYPE_STRING ;\n }\n else if ( ! strncmp ( name , \"proxy.config.ssl.client.verify.server\" , length ) ) {\n cnf = TS_CONFIG_SSL_CLIENT_VERIFY_SERVER ;\n }\n break ;\n case 't' : if ( ! strncmp ( name , \"proxy.config.http.keep_alive_post_out\" , length ) ) {\n cnf = TS_CONFIG_HTTP_KEEP_ALIVE_POST_OUT ;\n }\n else if ( ! strncmp ( name , \"proxy.config.net.sock_option_flag_out\" , length ) ) {\n cnf = TS_CONFIG_NET_SOCK_OPTION_FLAG_OUT ;\n }\n else if ( ! strncmp ( name , \"proxy.config.net.sock_packet_mark_out\" , length ) ) {\n cnf = TS_CONFIG_NET_SOCK_PACKET_MARK_OUT ;\n }\n else if ( ! strncmp ( name , \"proxy.config.websocket.active_timeout\" , length ) ) {\n cnf = TS_CONFIG_WEBSOCKET_ACTIVE_TIMEOUT ;\n }\n break ;\n }\n break ;\n case 38 : switch ( name [ length - 1 ] ) {\n case 'd' : if ( ! strncmp ( name , \"proxy.config.http.server_tcp_init_cwnd\" , length ) ) {\n cnf = TS_CONFIG_HTTP_SERVER_TCP_INIT_CWND ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.flow_control.enabled\" , length ) ) {\n cnf = TS_CONFIG_HTTP_FLOW_CONTROL_ENABLED ;\n }\n break ;\n break ;\n case 's' : if ( ! strncmp ( name , \"proxy.config.http.send_http11_requests\" , length ) ) {\n cnf = TS_CONFIG_HTTP_SEND_HTTP11_REQUESTS ;\n }\n break ;\n }\n break ;\n case 39 : switch ( name [ length - 1 ] ) {\n case 'e' : if ( ! strncmp ( name , \"proxy.config.body_factory.template_base\" , length ) ) {\n cnf = TS_CONFIG_BODY_FACTORY_TEMPLATE_BASE ;\n typ = TS_RECORDDATATYPE_STRING ;\n }\n break ;\n case 'm' : if ( ! strncmp ( name , \"proxy.config.http.anonymize_remove_from\" , length ) ) {\n cnf = TS_CONFIG_HTTP_ANONYMIZE_REMOVE_FROM ;\n }\n break ;\n case 'n' : if ( ! strncmp ( name , \"proxy.config.http.keep_alive_enabled_in\" , length ) ) {\n cnf = TS_CONFIG_HTTP_KEEP_ALIVE_ENABLED_IN ;\n }\n break ;\n case 's' : if ( ! strncmp ( name , \"proxy.config.http.doc_in_cache_skip_dns\" , length ) ) {\n cnf = TS_CONFIG_HTTP_DOC_IN_CACHE_SKIP_DNS ;\n }\n break ;\n }\n break ;\n case 40 : switch ( name [ length - 1 ] ) {\n case 'd' : if ( ! strncmp ( name , \"proxy.config.http.forward_connect_method\" , length ) ) {\n cnf = TS_CONFIG_HTTP_FORWARD_CONNECT_METHOD ;\n }\n break ;\n case 'e' : if ( ! strncmp ( name , \"proxy.config.http.down_server.cache_time\" , length ) ) {\n cnf = TS_CONFIG_HTTP_DOWN_SERVER_CACHE_TIME ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.insert_age_in_response\" , length ) ) {\n cnf = TS_CONFIG_HTTP_INSERT_AGE_IN_RESPONSE ;\n }\n break ;\n case 'r' : if ( ! strncmp ( name , \"proxy.config.url_remap.pristine_host_hdr\" , length ) ) {\n cnf = TS_CONFIG_URL_REMAP_PRISTINE_HOST_HDR ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.insert_request_via_str\" , length ) ) {\n cnf = TS_CONFIG_HTTP_INSERT_REQUEST_VIA_STR ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.flow_control.low_water\" , length ) ) {\n cnf = TS_CONFIG_HTTP_FLOW_CONTROL_LOW_WATER_MARK ;\n }\n break ;\n case 's' : if ( ! strncmp ( name , \"proxy.config.http.origin_max_connections\" , length ) ) {\n cnf = TS_CONFIG_HTTP_ORIGIN_MAX_CONNECTIONS ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.cache.required_headers\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_REQUIRED_HEADERS ;\n }\n else if ( ! strncmp ( name , \"proxy.config.ssl.hsts_include_subdomains\" , length ) ) {\n cnf = TS_CONFIG_SSL_HSTS_INCLUDE_SUBDOMAINS ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.number_of_redirections\" , length ) ) {\n cnf = TS_CONFIG_HTTP_NUMBER_OF_REDIRECTIONS ;\n }\n break ;\n case 't' : if ( ! strncmp ( name , \"proxy.config.http.keep_alive_enabled_out\" , length ) ) {\n cnf = TS_CONFIG_HTTP_KEEP_ALIVE_ENABLED_OUT ;\n }\n break ;\n case 'y' : if ( ! strncmp ( name , \"proxy.config.http.cache.fuzz.probability\" , length ) ) {\n typ = TS_RECORDDATATYPE_FLOAT ;\n cnf = TS_CONFIG_HTTP_CACHE_FUZZ_PROBABILITY ;\n }\n break ;\n }\n break ;\n case 41 : switch ( name [ length - 1 ] ) {\n case 'd' : if ( ! strncmp ( name , \"proxy.config.http.response_server_enabled\" , length ) ) {\n cnf = TS_CONFIG_HTTP_RESPONSE_SERVER_ENABLED ;\n }\n break ;\n case 'e' : if ( ! strncmp ( name , \"proxy.config.http.anonymize_remove_cookie\" , length ) ) {\n cnf = TS_CONFIG_HTTP_ANONYMIZE_REMOVE_COOKIE ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.request_header_max_size\" , length ) ) {\n cnf = TS_CONFIG_HTTP_REQUEST_HEADER_MAX_SIZE ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.safe_requests_retryable\" , length ) ) {\n cnf = TS_CONFIG_HTTP_SAFE_REQUESTS_RETRYABLE ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.parent_proxy.retry_time\" , length ) ) {\n cnf = TS_CONFIG_HTTP_PARENT_PROXY_RETRY_TIME ;\n }\n break ;\n case 'r' : if ( ! strncmp ( name , \"proxy.config.http.insert_response_via_str\" , length ) ) {\n cnf = TS_CONFIG_HTTP_INSERT_RESPONSE_VIA_STR ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.flow_control.high_water\" , length ) ) {\n cnf = TS_CONFIG_HTTP_FLOW_CONTROL_HIGH_WATER_MARK ;\n }\n break ;\n }\n break ;\n case 42 : switch ( name [ length - 1 ] ) {\n case 'd' : if ( ! strncmp ( name , \"proxy.config.http.negative_caching_enabled\" , length ) ) {\n cnf = TS_CONFIG_HTTP_NEGATIVE_CACHING_ENABLED ;\n }\n break ;\n case 'e' : if ( ! strncmp ( name , \"proxy.config.http.cache.when_to_revalidate\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_WHEN_TO_REVALIDATE ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.response_header_max_size\" , length ) ) {\n cnf = TS_CONFIG_HTTP_RESPONSE_HEADER_MAX_SIZE ;\n }\n break ;\n case 'r' : if ( ! strncmp ( name , \"proxy.config.http.anonymize_remove_referer\" , length ) ) {\n cnf = TS_CONFIG_HTTP_ANONYMIZE_REMOVE_REFERER ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.global_user_agent_header\" , length ) ) {\n cnf = TS_CONFIG_HTTP_GLOBAL_USER_AGENT_HEADER ;\n typ = TS_RECORDDATATYPE_STRING ;\n }\n break ;\n case 't' : if ( ! strncmp ( name , \"proxy.config.net.sock_recv_buffer_size_out\" , length ) ) {\n cnf = TS_CONFIG_NET_SOCK_RECV_BUFFER_SIZE_OUT ;\n }\n else if ( ! strncmp ( name , \"proxy.config.net.sock_send_buffer_size_out\" , length ) ) {\n cnf = TS_CONFIG_NET_SOCK_SEND_BUFFER_SIZE_OUT ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.connect_attempts_timeout\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CONNECT_ATTEMPTS_TIMEOUT ;\n }\n else if ( ! strncmp ( name , \"proxy.config.websocket.no_activity_timeout\" , length ) ) {\n cnf = TS_CONFIG_WEBSOCKET_NO_ACTIVITY_TIMEOUT ;\n }\n break ;\n }\n break ;\n case 43 : switch ( name [ length - 1 ] ) {\n case 'e' : if ( ! strncmp ( name , \"proxy.config.http.negative_caching_lifetime\" , length ) ) {\n cnf = TS_CONFIG_HTTP_NEGATIVE_CACHING_LIFETIME ;\n }\n break ;\n case 'k' : if ( ! strncmp ( name , \"proxy.config.http.default_buffer_water_mark\" , length ) ) {\n cnf = TS_CONFIG_HTTP_DEFAULT_BUFFER_WATER_MARK ;\n }\n break ;\n case 'l' : if ( ! strncmp ( name , \"proxy.config.http.cache.cluster_cache_local\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_CLUSTER_CACHE_LOCAL ;\n }\n break ;\n case 'r' : if ( ! strncmp ( name , \"proxy.config.http.cache.heuristic_lm_factor\" , length ) ) {\n typ = TS_RECORDDATATYPE_FLOAT ;\n cnf = TS_CONFIG_HTTP_CACHE_HEURISTIC_LM_FACTOR ;\n }\n break ;\n }\n break ;\n case 44 : switch ( name [ length - 1 ] ) {\n case 'p' : if ( ! strncmp ( name , \"proxy.config.http.anonymize_remove_client_ip\" , length ) ) {\n cnf = TS_CONFIG_HTTP_ANONYMIZE_REMOVE_CLIENT_IP ;\n }\n break ;\n case 'e' : if ( ! strncmp ( name , \"proxy.config.http.cache.open_read_retry_time\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_OPEN_READ_RETRY_TIME ;\n }\n break ;\n }\n break ;\n case 45 : switch ( name [ length - 1 ] ) {\n case 'd' : if ( ! strncmp ( name , \"proxy.config.http.down_server.abort_threshold\" , length ) ) {\n cnf = TS_CONFIG_HTTP_DOWN_SERVER_ABORT_THRESHOLD ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.parent_proxy.fail_threshold\" , length ) ) {\n cnf = TS_CONFIG_HTTP_PARENT_PROXY_FAIL_THRESHOLD ;\n }\n break ;\n case 'n' : if ( ! strncmp ( name , \"proxy.config.http.cache.ignore_authentication\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_IGNORE_AUTHENTICATION ;\n }\n break ;\n case 't' : if ( ! strncmp ( name , \"proxy.config.http.anonymize_remove_user_agent\" , length ) ) {\n cnf = TS_CONFIG_HTTP_ANONYMIZE_REMOVE_USER_AGENT ;\n }\n break ;\n case 's' : if ( ! strncmp ( name , \"proxy.config.http.connect_attempts_rr_retries\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CONNECT_ATTEMPTS_RR_RETRIES ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.cache.max_open_read_retries\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_MAX_OPEN_READ_RETRIES ;\n }\n break ;\n case 'e' : if ( 0 == strncmp ( name , \"proxy.config.http.auth_server_session_private\" , length ) ) {\n cnf = TS_CONFIG_HTTP_AUTH_SERVER_SESSION_PRIVATE ;\n }\n break ;\n case 'y' : if ( ! strncmp ( name , \"proxy.config.http.redirect_use_orig_cache_key\" , length ) ) {\n cnf = TS_CONFIG_HTTP_REDIRECT_USE_ORIG_CACHE_KEY ;\n }\n break ;\n }\n break ;\n case 46 : switch ( name [ length - 1 ] ) {\n case 'e' : if ( ! strncmp ( name , \"proxy.config.http.cache.ignore_client_no_cache\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_IGNORE_CLIENT_NO_CACHE ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.cache.ims_on_client_no_cache\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_IMS_ON_CLIENT_NO_CACHE ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.cache.ignore_server_no_cache\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_IGNORE_SERVER_NO_CACHE ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.cache.heuristic_min_lifetime\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_HEURISTIC_MIN_LIFETIME ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.cache.heuristic_max_lifetime\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_HEURISTIC_MAX_LIFETIME ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.origin_max_connections_queue\" , length ) ) {\n cnf = TS_CONFIG_HTTP_ORIGIN_MAX_CONNECTIONS_QUEUE ;\n }\n break ;\n case 'r' : if ( ! strncmp ( name , \"proxy.config.http.insert_squid_x_forwarded_for\" , length ) ) {\n cnf = TS_CONFIG_HTTP_INSERT_SQUID_X_FORWARDED_FOR ;\n }\n break ;\n case 's' : if ( ! strncmp ( name , \"proxy.config.http.connect_attempts_max_retries\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CONNECT_ATTEMPTS_MAX_RETRIES ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.cache.max_open_write_retries\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_MAX_OPEN_WRITE_RETRIES ;\n }\n break ;\n case 't' : if ( ! strncmp ( name , \"proxy.config.http.forward.proxy_auth_to_parent\" , length ) ) {\n cnf = TS_CONFIG_HTTP_FORWARD_PROXY_AUTH_TO_PARENT ;\n }\n break ;\n case 'h' : if ( 0 == strncmp ( name , \"proxy.config.http.server_session_sharing.match\" , length ) ) {\n cnf = TS_CONFIG_HTTP_SERVER_SESSION_SHARING_MATCH ;\n }\n break ;\n case 'n' : if ( ! strncmp ( name , \"proxy.config.http.cache.open_write_fail_action\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_OPEN_WRITE_FAIL_ACTION ;\n }\n break ;\n }\n break ;\n case 47 : switch ( name [ length - 1 ] ) {\n case 'b' : if ( ! strncmp ( name , \"proxy.config.http.parent_proxy.mark_down_hostdb\" , length ) ) {\n cnf = TS_CONFIG_PARENT_FAILURES_UPDATE_HOSTDB ;\n }\n break ;\n case 'd' : if ( ! strncmp ( name , \"proxy.config.http.negative_revalidating_enabled\" , length ) ) {\n cnf = TS_CONFIG_HTTP_NEGATIVE_REVALIDATING_ENABLED ;\n }\n break ;\n case 'e' : if ( ! strncmp ( name , \"proxy.config.http.cache.guaranteed_min_lifetime\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_GUARANTEED_MIN_LIFETIME ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.cache.guaranteed_max_lifetime\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_GUARANTEED_MAX_LIFETIME ;\n }\n break ;\n case 'n' : if ( ! strncmp ( name , \"proxy.config.http.transaction_active_timeout_in\" , length ) ) {\n cnf = TS_CONFIG_HTTP_TRANSACTION_ACTIVE_TIMEOUT_IN ;\n }\n break ;\n case 't' : if ( ! strncmp ( name , \"proxy.config.http.post_connect_attempts_timeout\" , length ) ) {\n cnf = TS_CONFIG_HTTP_POST_CONNECT_ATTEMPTS_TIMEOUT ;\n }\n break ;\n }\n break ;\n case 48 : switch ( name [ length - 1 ] ) {\n case 'e' : if ( ! strncmp ( name , \"proxy.config.http.cache.ignore_client_cc_max_age\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_IGNORE_CLIENT_CC_MAX_AGE ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.negative_revalidating_lifetime\" , length ) ) {\n cnf = TS_CONFIG_HTTP_NEGATIVE_REVALIDATING_LIFETIME ;\n }\n break ;\n case 't' : switch ( name [ length - 4 ] ) {\n case '_' : if ( ! strncmp ( name , \"proxy.config.http.transaction_active_timeout_out\" , length ) ) {\n cnf = TS_CONFIG_HTTP_TRANSACTION_ACTIVE_TIMEOUT_OUT ;\n }\n break ;\n case 'e' : if ( ! strncmp ( name , \"proxy.config.http.background_fill_active_timeout\" , length ) ) {\n cnf = TS_CONFIG_HTTP_BACKGROUND_FILL_ACTIVE_TIMEOUT ;\n }\n break ;\n }\n break ;\n }\n break ;\n case 49 : if ( ! strncmp ( name , \"proxy.config.http.attach_server_session_to_client\" , length ) ) {\n cnf = TS_CONFIG_HTTP_ATTACH_SERVER_SESSION_TO_CLIENT ;\n }\n break ;\n case 50 : if ( ! strncmp ( name , \"proxy.config.http.cache.cache_responses_to_cookies\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_CACHE_RESPONSES_TO_COOKIES ;\n }\n break ;\n case 51 : switch ( name [ length - 1 ] ) {\n case 'n' : if ( ! strncmp ( name , \"proxy.config.http.keep_alive_no_activity_timeout_in\" , length ) ) {\n cnf = TS_CONFIG_HTTP_KEEP_ALIVE_NO_ACTIVITY_TIMEOUT_IN ;\n }\n break ;\n case 'd' : if ( ! strncmp ( name , \"proxy.config.http.post.check.content_length.enabled\" , length ) ) {\n cnf = TS_CONFIG_HTTP_POST_CHECK_CONTENT_LENGTH_ENABLED ;\n }\n break ;\n }\n break ;\n case 52 : switch ( name [ length - 1 ] ) {\n case 'c' : if ( ! strncmp ( name , \"proxy.config.http.cache.cache_urls_that_look_dynamic\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CACHE_CACHE_URLS_THAT_LOOK_DYNAMIC ;\n }\n break ;\n case 'n' : if ( ! strncmp ( name , \"proxy.config.http.transaction_no_activity_timeout_in\" , length ) ) {\n cnf = TS_CONFIG_HTTP_TRANSACTION_NO_ACTIVITY_TIMEOUT_IN ;\n }\n break ;\n case 't' : if ( ! strncmp ( name , \"proxy.config.http.keep_alive_no_activity_timeout_out\" , length ) ) {\n cnf = TS_CONFIG_HTTP_KEEP_ALIVE_NO_ACTIVITY_TIMEOUT_OUT ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.uncacheable_requests_bypass_parent\" , length ) ) {\n cnf = TS_CONFIG_HTTP_UNCACHEABLE_REQUESTS_BYPASS_PARENT ;\n }\n break ;\n }\n break ;\n case 53 : switch ( name [ length - 1 ] ) {\n case 't' : if ( ! strncmp ( name , \"proxy.config.http.transaction_no_activity_timeout_out\" , length ) ) {\n cnf = TS_CONFIG_HTTP_TRANSACTION_NO_ACTIVITY_TIMEOUT_OUT ;\n }\n break ;\n case 'd' : if ( ! strncmp ( name , \"proxy.config.http.background_fill_completed_threshold\" , length ) ) {\n typ = TS_RECORDDATATYPE_FLOAT ;\n cnf = TS_CONFIG_HTTP_BACKGROUND_FILL_COMPLETED_THRESHOLD ;\n }\n break ;\n case 's' : if ( ! strncmp ( name , \"proxy.config.http.parent_proxy.total_connect_attempts\" , length ) ) {\n cnf = TS_CONFIG_HTTP_PARENT_PROXY_TOTAL_CONNECT_ATTEMPTS ;\n }\n break ;\n }\n break ;\n case 55 : if ( ! strncmp ( name , \"proxy.config.http.parent_proxy.connect_attempts_timeout\" , length ) ) {\n cnf = TS_CONFIG_HTTP_PARENT_CONNECT_ATTEMPT_TIMEOUT ;\n }\n break ;\n case 58 : if ( ! strncmp ( name , \"proxy.config.http.connect_attempts_max_retries_dead_server\" , length ) ) {\n cnf = TS_CONFIG_HTTP_CONNECT_ATTEMPTS_MAX_RETRIES_DEAD_SERVER ;\n }\n else if ( ! strncmp ( name , \"proxy.config.http.parent_proxy.per_parent_connect_attempts\" , length ) ) {\n cnf = TS_CONFIG_HTTP_PER_PARENT_CONNECT_ATTEMPTS ;\n }\n break ;\n }\n * conf = cnf ;\n if ( type ) {\n * type = typ ;\n }\n return ( ( cnf != TS_CONFIG_NULL ) ? TS_SUCCESS : TS_ERROR ) ;\n }"}
{"idx": 20454, "target": 0, "func": "static int isoent_make_path_table_2 ( struct archive_write * a , struct vdd * vdd , int depth , int * dir_number ) {\n struct isoent * np ;\n struct isoent * * enttbl ;\n struct path_table * pt ;\n int i ;\n pt = & vdd -> pathtbl [ depth ] ;\n if ( pt -> cnt == 0 ) {\n pt -> sorted = NULL ;\n return ( ARCHIVE_OK ) ;\n }\n enttbl = malloc ( pt -> cnt * sizeof ( struct isoent * ) ) ;\n if ( enttbl == NULL ) {\n archive_set_error ( & a -> archive , ENOMEM , \"Can't allocate memory\" ) ;\n return ( ARCHIVE_FATAL ) ;\n }\n pt -> sorted = enttbl ;\n for ( np = pt -> first ;\n np != NULL ;\n np = np -> ptnext ) * enttbl ++ = np ;\n enttbl = pt -> sorted ;\n switch ( vdd -> vdd_type ) {\n case VDD_PRIMARY : case VDD_ENHANCED : # ifdef __COMPAR_FN_T qsort ( enttbl , pt -> cnt , sizeof ( struct isoent * ) , ( __compar_fn_t ) _compare_path_table ) ;\n # else qsort ( enttbl , pt -> cnt , sizeof ( struct isoent * ) , _compare_path_table ) ;\n # endif break ;\n case VDD_JOLIET : # ifdef __COMPAR_FN_T qsort ( enttbl , pt -> cnt , sizeof ( struct isoent * ) , ( __compar_fn_t ) _compare_path_table_joliet ) ;\n # else qsort ( enttbl , pt -> cnt , sizeof ( struct isoent * ) , _compare_path_table_joliet ) ;\n # endif break ;\n }\n for ( i = 0 ;\n i < pt -> cnt ;\n i ++ ) enttbl [ i ] -> dir_number = ( * dir_number ) ++ ;\n return ( ARCHIVE_OK ) ;\n }"}
{"idx": 20455, "target": 1, "func": "static rfbBool rectSwapIfLEAndClip ( uint16_t * x , uint16_t * y , uint16_t * w , uint16_t * h , rfbClientPtr cl ) {\n int x1 = Swap16IfLE ( * x ) ;\n int y1 = Swap16IfLE ( * y ) ;\n int w1 = Swap16IfLE ( * w ) ;\n int h1 = Swap16IfLE ( * h ) ;\n rfbScaledCorrection ( cl -> scaledScreen , cl -> screen , & x1 , & y1 , & w1 , & h1 , \"rectSwapIfLEAndClip\" ) ;\n * x = x1 ;\n * y = y1 ;\n * w = w1 ;\n * h = h1 ;\n if ( * w > cl -> screen -> width - * x ) * w = cl -> screen -> width - * x ;\n if ( * w > cl -> screen -> width - * x ) return FALSE ;\n if ( * h > cl -> screen -> height - * y ) * h = cl -> screen -> height - * y ;\n if ( * h > cl -> screen -> height - * y ) return FALSE ;\n return TRUE ;\n }"}
{"idx": 20456, "target": 0, "func": "static void tvb_raw_text_add ( tvbuff_t * tvb , proto_tree * tree ) {\n proto_tree * raw_tree = NULL ;\n proto_item * ti = NULL ;\n int offset , next_offset , linelen ;\n if ( tree ) {\n ti = proto_tree_add_item ( tree , proto_raw_sigcomp , tvb , 0 , - 1 , ENC_NA ) ;\n raw_tree = proto_item_add_subtree ( ti , ett_raw_text ) ;\n }\n offset = 0 ;\n while ( tvb_offset_exists ( tvb , offset ) ) {\n tvb_find_line_end ( tvb , offset , - 1 , & next_offset , FALSE ) ;\n linelen = next_offset - offset ;\n proto_tree_add_format_text ( raw_tree , tvb , offset , linelen ) ;\n offset = next_offset ;\n }\n }"}
{"idx": 20457, "target": 0, "func": "static vpx_codec_alg_priv_t * get_alg_priv ( vpx_codec_ctx_t * ctx ) {\n return ( vpx_codec_alg_priv_t * ) ctx -> priv ;\n }"}
{"idx": 20458, "target": 0, "func": "static void spl_ptr_llist_unshift ( spl_ptr_llist * llist , void * data TSRMLS_DC ) {\n spl_ptr_llist_element * elem = emalloc ( sizeof ( spl_ptr_llist_element ) ) ;\n elem -> data = data ;\n elem -> rc = 1 ;\n elem -> prev = NULL ;\n elem -> next = llist -> head ;\n if ( llist -> head ) {\n llist -> head -> prev = elem ;\n }\n else {\n llist -> tail = elem ;\n }\n llist -> head = elem ;\n llist -> count ++ ;\n if ( llist -> ctor ) {\n llist -> ctor ( elem TSRMLS_CC ) ;\n }\n }"}
{"idx": 20459, "target": 0, "func": "static void pdf_run_Tstar ( fz_context * ctx , pdf_processor * proc ) {\n pdf_run_processor * pr = ( pdf_run_processor * ) proc ;\n pdf_gstate * gstate = pr -> gstate + pr -> gtop ;\n pdf_tos_newline ( & pr -> tos , gstate -> text . leading ) ;\n }"}
{"idx": 20460, "target": 0, "func": "static void control_unspec ( struct recvbuf * rbufp , int restrict_mask ) {\n struct peer * peer ;\n if ( res_associd ) {\n peer = findpeerbyassoc ( res_associd ) ;\n if ( NULL == peer ) {\n ctl_error ( CERR_BADASSOC ) ;\n return ;\n }\n rpkt . status = htons ( ctlpeerstatus ( peer ) ) ;\n }\n else rpkt . status = htons ( ctlsysstatus ( ) ) ;\n ctl_flushpkt ( 0 ) ;\n }"}
